| 123456789101112131415161718192021222324 |
- <?php
- namespace hd\controllers;
- use biz\ghs\classes\GhsClass;
- use biz\recharge\classes\RechargeHbClass;
- use common\components\util;
- use Yii;
- class RechargeHbController extends BaseController
- {
- //获取供货商充值红包列表 ssh 20210930
- public function actionGetGhsHb()
- {
- $ghsId = Yii::$app->request->get('ghsId', 0);
- $ghsInfo = GhsClass::getById($ghsId, true);
- GhsClass::valid($ghsInfo, $this->shopId);
- $ghsShopId = $ghsInfo->shopId ?? 0;
- $list = RechargeHbClass::getAllByCondition(['shopId' => $ghsShopId, 'delStatus' => 0], 'amount DESC', '*', null);
- util::success(['list' => $list]);
- }
- }
|