liyaozhi
2025-10-29 52b7c373601edbc5010471082eb88dadf70e382d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
 
namespace app\supplier\controller;
 
use app\common\model\settings\Setting as SettingModel;
use app\supplier\service\ShopService;
 
/**
 * 后台首页控制器
 */
class Index extends Controller
{
    /**
     * 后台首页
     */
    public function index()
    {
        $service = new ShopService($this->getSupplierId());
        return $this->renderSuccess('', ['data' => $service->getHomeData()]);
    }
 
    /**
     * 登录数据
     */
    public function base()
    {
 
        $config = SettingModel::getSysConfig();
        $settings = [
            'supplier_name' => $config['supplier_name'],
            'supplier_bg_img' => $config['supplier_bg_img']
        ];
        return $this->renderSuccess('', compact('settings'));
    }
}