作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !429
@@ -18,6 +18,7 @@ use App\Models\Project\Project; @@ -18,6 +18,7 @@ use App\Models\Project\Project;
18 use App\Models\RouteMap\RouteMap; 18 use App\Models\RouteMap\RouteMap;
19 use App\Models\WebSetting\WebLanguage; 19 use App\Models\WebSetting\WebLanguage;
20 use Illuminate\Http\Request; 20 use Illuminate\Http\Request;
  21 +use Illuminate\Support\Facades\DB;
21 22
22 23
23 /** 24 /**
@@ -169,7 +170,9 @@ class CNoticeController extends BaseController @@ -169,7 +170,9 @@ class CNoticeController extends BaseController
169 $ids = explode(',',$info['country_lists']); 170 $ids = explode(',',$info['country_lists']);
170 } 171 }
171 $languageModel = new WebLanguage(); 172 $languageModel = new WebLanguage();
172 - $lists = $languageModel->list(['id'=>['in',$ids]]); 173 + //根据排序查询选中的小语种
  174 + $lists = $languageModel->whereIn('id', $ids)->orderByRaw(DB::raw("FIND_IN_SET(id,'" . implode(',', $ids) . "'" . ')'))->get()->toArray();
  175 +// $lists = $languageModel->list(['id'=>['in',$ids]]);
173 $this->response('success',Code::SUCCESS,$lists); 176 $this->response('success',Code::SUCCESS,$lists);
174 } 177 }
175 178
@@ -410,7 +410,7 @@ class DomainInfoLogic extends BaseLogic @@ -410,7 +410,7 @@ class DomainInfoLogic extends BaseLogic
410 //创建站点,设置证书 410 //创建站点,设置证书
411 $this->param['key'] = $this->param['private_key'] ?? ''; 411 $this->param['key'] = $this->param['private_key'] ?? '';
412 $this->param['cert'] = $this->param['private_cert'] ?? ''; 412 $this->param['cert'] = $this->param['private_cert'] ?? '';
413 - $this->setDomainSsl($server_info['init_domain'],$this->param['custom_domain'],[],[],0); 413 + $this->setDomainSsl($server_info['init_domain'],$this->param['custom_domain'],[],[],1);
414 } 414 }
415 415
416 return $this->success(); 416 return $this->success();