|
...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Logic\Bside\Setting;
|
|
|
|
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Project\Country;
|
|
|
|
use App\Models\Project\Country as CountryModel;
|
|
|
|
use App\Models\WebSetting\WebSettingCountry;
|
|
|
|
|
|
...
|
...
|
@@ -23,8 +24,7 @@ class WebSettingCountryLogic extends BaseLogic |
|
|
|
* @time :2023/4/28 16:18
|
|
|
|
*/
|
|
|
|
public function country_list(){
|
|
|
|
$settingCountryModel = new WebSettingCountry();
|
|
|
|
$lists = $settingCountryModel->list($this->param,'id',['id','name','image']);
|
|
|
|
$lists = $this->model->list($this->param,'id',['id','name','image']);
|
|
|
|
if (empty($lists)){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
...
|
...
|
@@ -38,7 +38,8 @@ class WebSettingCountryLogic extends BaseLogic |
|
|
|
* @time :2023/4/28 17:03
|
|
|
|
*/
|
|
|
|
public function get_country_info(){
|
|
|
|
$lists = $this->model->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
$countryModel = new CountryModel();
|
|
|
|
$lists = $countryModel->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
if (empty($lists)){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
...
|
...
|
|