RechargeHbController.php 665 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace hd\controllers;
  3. use biz\ghs\classes\GhsClass;
  4. use biz\recharge\classes\RechargeHbClass;
  5. use common\components\util;
  6. use Yii;
  7. class RechargeHbController extends BaseController
  8. {
  9. //获取供货商充值红包列表 ssh 20210930
  10. public function actionGetGhsHb()
  11. {
  12. $ghsId = Yii::$app->request->get('ghsId', 0);
  13. $ghsInfo = GhsClass::getById($ghsId, true);
  14. GhsClass::valid($ghsInfo, $this->shopId);
  15. $ghsShopId = $ghsInfo->shopId ?? 0;
  16. $list = RechargeHbClass::getAllByCondition(['shopId' => $ghsShopId, 'delStatus' => 0], 'amount DESC', '*', null);
  17. util::success(['list' => $list]);
  18. }
  19. }