正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
| @@ -5,6 +5,7 @@ namespace App\Http\Logic\Bside\Setting; | @@ -5,6 +5,7 @@ namespace App\Http\Logic\Bside\Setting; | ||
| 5 | use App\Http\Logic\Bside\BaseLogic; | 5 | use App\Http\Logic\Bside\BaseLogic; |
| 6 | use App\Models\Project\Country; | 6 | use App\Models\Project\Country; |
| 7 | use App\Models\WebSetting\Proofreading; | 7 | use App\Models\WebSetting\Proofreading; |
| 8 | +use App\Models\WebSetting\WebSettingCountry; | ||
| 8 | 9 | ||
| 9 | class ProofreadingLogic extends BaseLogic | 10 | class ProofreadingLogic extends BaseLogic |
| 10 | { | 11 | { |
| @@ -58,8 +59,15 @@ class ProofreadingLogic extends BaseLogic | @@ -58,8 +59,15 @@ class ProofreadingLogic extends BaseLogic | ||
| 58 | * @time :2023/6/12 15:54 | 59 | * @time :2023/6/12 15:54 |
| 59 | */ | 60 | */ |
| 60 | public function countryLanguageList($map,$order = 'created_at'){ | 61 | public function countryLanguageList($map,$order = 'created_at'){ |
| 62 | + $map['project_id'] = $this->user['project_id']; | ||
| 61 | $projectCountryModel = new Country(); | 63 | $projectCountryModel = new Country(); |
| 62 | - $list = $projectCountryModel->list($map,$order); | 64 | + $countryInfo = $projectCountryModel->read($map); |
| 65 | + $list = []; | ||
| 66 | + if(!empty($countryInfo['country_lists'])){ | ||
| 67 | + $countryArr = explode(".",$countryInfo['country_lists']); | ||
| 68 | + $webCountryModel = new WebSettingCountry(); | ||
| 69 | + $list = $webCountryModel->list(['id'=>['in',$countryArr]]); | ||
| 70 | + } | ||
| 63 | return $this->success($list); | 71 | return $this->success($list); |
| 64 | } | 72 | } |
| 65 | } | 73 | } |
-
请 注册 或 登录 后发表评论