| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace hd\controllers;
- use biz\shop\services\ShopCouponService;
- use common\components\util;
- use Yii;
- class ShopHbController extends BaseController
- {
- public $guestAccess = [];
- //门店列表 ssh 2021.5.15
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $where = [];
- $where['shopId'] = $this->shopId;
- $status = $get['status'] ?? 0;
- if (!empty($status)) {
- $where['status'] = $status;
- }
- $ghsId = $get['ghsId'] ?? 0;
- if (!empty($ghsId)) {
- $where['ghsId'] = $ghsId;
- }
- $list = ShopCouponService::getCouponList($where);
- util::success($list);
- }
- }
|