正在显示
1 个修改的文件
包含
3 行增加
和
7 行删除
| @@ -17,6 +17,7 @@ use App\Models\Com\UpdateProgress; | @@ -17,6 +17,7 @@ use App\Models\Com\UpdateProgress; | ||
| 17 | use App\Models\Project\Country as CountryModel; | 17 | use App\Models\Project\Country as CountryModel; |
| 18 | use App\Models\Project\Project; | 18 | use App\Models\Project\Project; |
| 19 | use App\Models\RouteMap\RouteMap; | 19 | use App\Models\RouteMap\RouteMap; |
| 20 | +use App\Models\WebSetting\WebLanguage; | ||
| 20 | use App\Models\WebSetting\WebSettingCountry; | 21 | use App\Models\WebSetting\WebSettingCountry; |
| 21 | use Illuminate\Http\Request; | 22 | use Illuminate\Http\Request; |
| 22 | use Illuminate\Support\Facades\Redis; | 23 | use Illuminate\Support\Facades\Redis; |
| @@ -186,13 +187,8 @@ class CNoticeController extends BaseController | @@ -186,13 +187,8 @@ class CNoticeController extends BaseController | ||
| 186 | if($info !== false){ | 187 | if($info !== false){ |
| 187 | $ids = explode(',',$info['country_lists']); | 188 | $ids = explode(',',$info['country_lists']); |
| 188 | } | 189 | } |
| 189 | - $webSettingCountryModel = new WebSettingCountry(); | ||
| 190 | - $lists = $webSettingCountryModel->list(['id'=>['in',$ids]],'id',['id','name','country_img']); | ||
| 191 | - if (!empty($lists)){ | ||
| 192 | - foreach ($lists as $k => $v){ | ||
| 193 | - $lists[$k]['image_link'] = url('upload/country/' . $v['country_img']); | ||
| 194 | - } | ||
| 195 | - } | 190 | + $languageModel = new WebLanguage(); |
| 191 | + $lists = $languageModel->list(['id'=>['in',$ids]]); | ||
| 196 | $this->response('success',Code::SUCCESS,$lists); | 192 | $this->response('success',Code::SUCCESS,$lists); |
| 197 | } | 193 | } |
| 198 | 194 |
-
请 注册 或 登录 后发表评论