|
@@ -14,7 +14,9 @@ use App\Http\Controllers\Bside\BaseController; |
|
@@ -14,7 +14,9 @@ use App\Http\Controllers\Bside\BaseController; |
|
14
|
use App\Http\Logic\Bside\Setting\WebSettingLogic;
|
14
|
use App\Http\Logic\Bside\Setting\WebSettingLogic;
|
|
15
|
use App\Models\Com\UpdateNotify;
|
15
|
use App\Models\Com\UpdateNotify;
|
|
16
|
use App\Models\Com\UpdateProgress;
|
16
|
use App\Models\Com\UpdateProgress;
|
|
|
|
17
|
+use App\Models\Project\Country as CountryModel;
|
|
17
|
use App\Models\RouteMap\RouteMap;
|
18
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
19
|
+use App\Models\WebSetting\WebSettingCountry;
|
|
18
|
use Illuminate\Http\Request;
|
20
|
use Illuminate\Http\Request;
|
|
19
|
|
21
|
|
|
20
|
/**
|
22
|
/**
|
|
@@ -184,4 +186,28 @@ class CNoticeController extends BaseController |
|
@@ -184,4 +186,28 @@ class CNoticeController extends BaseController |
|
184
|
$string = http_build_query($param);
|
186
|
$string = http_build_query($param);
|
|
185
|
return $this->user['domain'].'api/updateHtmlNotify/?' . $string;
|
187
|
return $this->user['domain'].'api/updateHtmlNotify/?' . $string;
|
|
186
|
}
|
188
|
}
|
|
|
|
189
|
+
|
|
|
|
190
|
+ /**
|
|
|
|
191
|
+ * @remark :获取当前项目选中的语种
|
|
|
|
192
|
+ * @name :getCountry
|
|
|
|
193
|
+ * @author :lyh
|
|
|
|
194
|
+ * @method :post
|
|
|
|
195
|
+ * @time :2023/9/12 15:20
|
|
|
|
196
|
+ */
|
|
|
|
197
|
+ public function getCountry(){
|
|
|
|
198
|
+ $countryModel = new CountryModel();
|
|
|
|
199
|
+ $info = $countryModel->read(['project_id'=>$this->user['project_id']],['id','country_lists']);
|
|
|
|
200
|
+ $ids = [];
|
|
|
|
201
|
+ if($info !== false){
|
|
|
|
202
|
+ $ids = explode(',',$info['country_lists']);
|
|
|
|
203
|
+ }
|
|
|
|
204
|
+ $webSettingCountryModel = new WebSettingCountry();
|
|
|
|
205
|
+ $lists = $webSettingCountryModel->list(['id'=>['in',$ids]],'id',['id','name','country_img']);
|
|
|
|
206
|
+ if (!empty($lists)){
|
|
|
|
207
|
+ foreach ($lists as $k => $v){
|
|
|
|
208
|
+ $lists[$k]['image_link'] = url('upload/country/' . $v['country_img']);
|
|
|
|
209
|
+ }
|
|
|
|
210
|
+ }
|
|
|
|
211
|
+ $this->response('success',Code::SUCCESS,$lists);
|
|
|
|
212
|
+ }
|
|
187
|
} |
213
|
} |