38 lines
813 B
PHP
38 lines
813 B
PHP
<?php
|
|
|
|
namespace app\api\controller\store;
|
|
|
|
use app\api\lists\store\SystemStoreLists;
|
|
use app\api\controller\BaseApiController;
|
|
use app\api\logic\store\StoreLogic;
|
|
use app\common\service\pay\PayService;
|
|
use Webman\Config;
|
|
use hg\apidoc\annotation as ApiDoc;
|
|
#[ApiDoc\NotParse()]
|
|
|
|
class StoreController extends BaseApiController
|
|
{
|
|
public $notNeedLogin = ['detail'];
|
|
public function lists()
|
|
{
|
|
return $this->dataLists(new SystemStoreLists());
|
|
}
|
|
|
|
|
|
public function detail()
|
|
{
|
|
$store_id = (int)$this->request->get('store_id');
|
|
$where = [
|
|
'id' => $store_id
|
|
];
|
|
$info = StoreLogic::search($where);
|
|
if ($info) {
|
|
return $this->data($info);
|
|
} else {
|
|
return $this->fail('店铺不存在');
|
|
}
|
|
}
|
|
|
|
|
|
}
|