feat(IndexController): 添加系统商店功能
This commit is contained in:
parent
17706c1f98
commit
3a789a3726
@ -7,6 +7,7 @@ use app\admin\validate\tools\GenerateTableValidate;
|
|||||||
use app\admin\logic\tools\GeneratorLogic;
|
use app\admin\logic\tools\GeneratorLogic;
|
||||||
use app\common\logic\store_order\StoreOrderLogic;
|
use app\common\logic\store_order\StoreOrderLogic;
|
||||||
use app\common\model\store_branch_product\StoreBranchProduct;
|
use app\common\model\store_branch_product\StoreBranchProduct;
|
||||||
|
use app\common\model\system_store\SystemStore;
|
||||||
use app\common\service\pay\PayService;
|
use app\common\service\pay\PayService;
|
||||||
use app\common\service\wechat\WechatTemplate;
|
use app\common\service\wechat\WechatTemplate;
|
||||||
use Exception;
|
use Exception;
|
||||||
@ -187,9 +188,11 @@ class IndexController extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function config()
|
public function config()
|
||||||
{
|
{
|
||||||
|
$store_id = getenv('STORE_ID') ?? 1;
|
||||||
|
$find = SystemStore::where('id', $store_id)->find();
|
||||||
$list = [
|
$list = [
|
||||||
'id'=>5,
|
'id' => $find['id'],
|
||||||
'store_name'=>'测试',
|
'store_name' => $find['name'],
|
||||||
];
|
];
|
||||||
return $this->success('ok', $list);
|
return $this->success('ok', $list);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user