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;
|
||||||
@ -22,7 +23,7 @@ use Webman\RedisQueue\Redis;
|
|||||||
|
|
||||||
class IndexController extends BaseApiController
|
class IndexController extends BaseApiController
|
||||||
{
|
{
|
||||||
public $notNeedLogin = ['index', 'app_update', 'express_list', 'province', 'city', 'area', 'street','village','brigade','config'];
|
public $notNeedLogin = ['index', 'app_update', 'express_list', 'province', 'city', 'area', 'street', 'village', 'brigade', 'config'];
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
@ -173,7 +174,7 @@ class IndexController extends BaseApiController
|
|||||||
$list = Db::name('geo_village')->where('street_code', $area_code)->select()?->toArray();
|
$list = Db::name('geo_village')->where('street_code', $area_code)->select()?->toArray();
|
||||||
return $this->success('ok', $list);
|
return $this->success('ok', $list);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @notes 获取队列表
|
* @notes 获取队列表
|
||||||
*/
|
*/
|
||||||
public function brigade()
|
public function brigade()
|
||||||
@ -182,14 +183,16 @@ class IndexController extends BaseApiController
|
|||||||
return $this->success('ok', $list);
|
return $this->success('ok', $list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notes 获取队列表
|
* @notes 获取队列表
|
||||||
*/
|
*/
|
||||||
public function config()
|
public function config()
|
||||||
{
|
{
|
||||||
$list=[
|
$store_id = getenv('STORE_ID') ?? 1;
|
||||||
'id'=>5,
|
$find = SystemStore::where('id', $store_id)->find();
|
||||||
'store_name'=>'测试',
|
$list = [
|
||||||
|
'id' => $find['id'],
|
||||||
|
'store_name' => $find['name'],
|
||||||
];
|
];
|
||||||
return $this->success('ok', $list);
|
return $this->success('ok', $list);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user