作者 刘锟

小语种自定义跳转链接

... ... @@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\Setting;
use App\Http\Logic\Bside\BaseLogic;
use App\Models\Project\Country as CountryModel;
use App\Models\Project\CountryCustom;
use App\Models\WebSetting\WebLanguage;
class ProjectCountryLogic extends BaseLogic
... ... @@ -60,6 +61,11 @@ class ProjectCountryLogic extends BaseLogic
if($rs === false){
$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'])]]);
return $this->success();
}
... ...