作者 lyh
@@ -278,7 +278,7 @@ class LoginController extends BaseController @@ -278,7 +278,7 @@ class LoginController extends BaseController
278 ]; 278 ];
279 }else{ 279 }else{
280 //有from_order_id, 找到对应的项目并登录主账号 280 //有from_order_id, 找到对应的项目并登录主账号
281 - $project = (new Project())->read(['from_order_id'=>$arr['from_order_id']]); 281 + $project = (new Project())->read(['from_order_id'=>$arr['from_order_id'], 'delete_status' => Project::IS_DEL_FALSE]);
282 if(!$project){ 282 if(!$project){
283 $this->response('项目不存在,请联系管理员',Code::USER_ERROR); 283 $this->response('项目不存在,请联系管理员',Code::USER_ERROR);
284 } 284 }
@@ -303,8 +303,8 @@ class DomainInfoLogic extends BaseLogic @@ -303,8 +303,8 @@ class DomainInfoLogic extends BaseLogic
303 303
304 //保存301跳转数据+其他域名 304 //保存301跳转数据+其他域名
305 $data = [ 305 $data = [
306 - 'other_domain'=>json_encode($this->param['other_domain'] ?? []),  
307 - 'extend_config'=>json_encode($this->param['extend_config'] ?? []), 306 + 'other_domain'=>json_encode(array_filter($this->param['other_domain'] ?? [])),
  307 + 'extend_config'=>json_encode(array_filter($this->param['extend_config'] ?? [])),
308 'type'=>$this->param['type'], 308 'type'=>$this->param['type'],
309 'private_key' => $this->param['key'] ?? '', 309 'private_key' => $this->param['key'] ?? '',
310 'private_cert' => $this->param['cert'] ?? '', 310 'private_cert' => $this->param['cert'] ?? '',
@@ -313,8 +313,8 @@ class DomainInfoLogic extends BaseLogic @@ -313,8 +313,8 @@ class DomainInfoLogic extends BaseLogic
313 'amp_type' => $this->param['amp_type'] ?? 0, 313 'amp_type' => $this->param['amp_type'] ?? 0,
314 'amp_private_key' => $this->param['amp_key'] ?? '', 314 'amp_private_key' => $this->param['amp_key'] ?? '',
315 'amp_private_cert' => $this->param['amp_cert'] ?? '', 315 'amp_private_cert' => $this->param['amp_cert'] ?? '',
316 - 'not_allow_country'=>json_encode($this->param['not_allow_country'] ?? []),  
317 - 'not_allow_ip'=>json_encode($this->param['not_allow_ip'] ?? []), 316 + 'not_allow_country'=>json_encode(array_filter($this->param['not_allow_country'] ?? [])),
  317 + 'not_allow_ip'=>json_encode(array_filter($this->param['not_allow_ip'] ?? [])),
318 ]; 318 ];
319 $this->model->edit($data,['id'=>$this->param['id']]); 319 $this->model->edit($data,['id'=>$this->param['id']]);
320 //主站生成证书 320 //主站生成证书
@@ -35,6 +35,9 @@ class Project extends Base @@ -35,6 +35,9 @@ class Project extends Base
35 const IS_UPGRADE_FALSE = 0; 35 const IS_UPGRADE_FALSE = 0;
36 const IS_UPGRADE_TRUE = 1; 36 const IS_UPGRADE_TRUE = 1;
37 37
  38 + const IS_DEL_FALSE = 0;
  39 + const IS_DEL_TRUE = 1;
  40 +
38 /** 41 /**
39 * 星级客户 42 * 星级客户
40 * @return string[] 43 * @return string[]