正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\Setting; | @@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\Setting; | ||
| 4 | 4 | ||
| 5 | use App\Http\Logic\Bside\BaseLogic; | 5 | use App\Http\Logic\Bside\BaseLogic; |
| 6 | use App\Models\Project\Country as CountryModel; | 6 | use App\Models\Project\Country as CountryModel; |
| 7 | +use App\Models\Project\CountryCustom; | ||
| 7 | use App\Models\WebSetting\WebLanguage; | 8 | use App\Models\WebSetting\WebLanguage; |
| 8 | 9 | ||
| 9 | class ProjectCountryLogic extends BaseLogic | 10 | class ProjectCountryLogic extends BaseLogic |
| @@ -60,6 +61,11 @@ class ProjectCountryLogic extends BaseLogic | @@ -60,6 +61,11 @@ class ProjectCountryLogic extends BaseLogic | ||
| 60 | if($rs === false){ | 61 | if($rs === false){ |
| 61 | $this->fail('当前数据不存在'); | 62 | $this->fail('当前数据不存在'); |
| 62 | } | 63 | } |
| 64 | + | ||
| 65 | + //将未勾选的设置了自定义跳转的语种,置为不可用 | ||
| 66 | + $custom_model = new CountryCustom(); | ||
| 67 | + $custom_model->edit(['status'=>0],['project_id'=>$this->user['project_id'],'language_id'=>['not in',explode(',',$this->param['country_lists'])]]); | ||
| 68 | + | ||
| 63 | return $this->success(); | 69 | return $this->success(); |
| 64 | } | 70 | } |
| 65 | 71 |
-
请 注册 或 登录 后发表评论