|
...
|
...
|
@@ -62,9 +62,11 @@ class ProjectCountryLogic extends BaseLogic |
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
|
|
|
|
//将未勾选的设置了自定义跳转的语种,置为不可用
|
|
|
|
$custom_model = new CountryCustom();
|
|
|
|
//将未勾选的设置了自定义跳转的语种,置为不可用
|
|
|
|
$custom_model->edit(['status'=>0],['project_id'=>$this->user['project_id'],'language_id'=>['not in',explode(',',$this->param['country_lists'])]]);
|
|
|
|
//将勾选的设置了自定义跳转的语种,置为可用
|
|
|
|
$custom_model->edit(['status'=>1],['project_id'=>$this->user['project_id'],'language_id'=>['in',explode(',',$this->param['country_lists'])]]);
|
|
|
|
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|