ShopHbController.php 702 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace hd\controllers;
  3. use biz\shop\services\ShopCouponService;
  4. use common\components\util;
  5. use Yii;
  6. class ShopHbController extends BaseController
  7. {
  8. public $guestAccess = [];
  9. //门店列表 ssh 2021.5.15
  10. public function actionList()
  11. {
  12. $get = Yii::$app->request->get();
  13. $where = [];
  14. $where['shopId'] = $this->shopId;
  15. $status = $get['status'] ?? 0;
  16. if (!empty($status)) {
  17. $where['status'] = $status;
  18. }
  19. $ghsId = $get['ghsId'] ?? 0;
  20. if (!empty($ghsId)) {
  21. $where['ghsId'] = $ghsId;
  22. }
  23. $list = ShopCouponService::getCouponList($where);
  24. util::success($list);
  25. }
  26. }