|
...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Logic\Bside\Setting;
|
|
|
|
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Project\Country as CountryModel;
|
|
|
|
use App\Models\WebSetting\WebSettingCountry;
|
|
|
|
|
|
|
|
class WebSettingCountryLogic extends BaseLogic
|
|
...
|
...
|
@@ -14,4 +15,33 @@ class WebSettingCountryLogic extends BaseLogic |
|
|
|
$this->model = new WebSettingCountry();
|
|
|
|
$this->param = $this->requestAll;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :(获取多语言国家)user_country_list
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/4/28 16:18
|
|
|
|
*/
|
|
|
|
public function country_list(){
|
|
|
|
$countryModel = new CountryModel();
|
|
|
|
$lists = $countryModel->list($this->param,'id',['id','name','image']);
|
|
|
|
if (empty($lists)){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
$this->success($lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :(获取当前项目关联的多语言)get_country_info
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/4/28 17:03
|
|
|
|
*/
|
|
|
|
public function get_country_info(){
|
|
|
|
$lists = $this->model->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
if (empty($lists)){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
$this->success($lists);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|