Store.php 493 字节
<?php

namespace addons\shopro\controller\store;

use addons\shopro\exception\Exception;
use addons\shopro\model\Store as ModelStore;

class Store extends Base
{

    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];


    public function index()
    {
        $params = $this->request->get();
        $store = ModelStore::info();
        if (!$store) {
            throw new Exception('门店不存在');
        }

        $this->success('获取成功', $store);
    }
    
}