WebSettingCountryLogic.php 924 字节
<?php

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;

class WebSettingCountryLogic extends BaseLogic
{
    public function __construct()
    {
        parent::__construct();

        $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(){
        $lists = $this->model->list($this->param,'id',['id','name','country_img']);
        if (!empty($lists)){
            foreach ($lists as $k => $v){
                $lists[$k]['image_link'] = url('upload/country/' . $v['country_img']);
            }
        }
        return $this->success($lists);
    }

}