GhsRechargeController.php 594 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace hd\controllers;
  3. use bizHd\ghs\classes\GhsClass;
  4. use bizHd\ghs\classes\GhsRechargeClass;
  5. use common\components\util;
  6. use Yii;
  7. class GhsRechargeController extends BaseController
  8. {
  9. //充值记录 ssh 20240507
  10. public function actionList()
  11. {
  12. $get = Yii::$app->request->get();
  13. $ghsId = $get['ghsId'] ?? 0;
  14. $ghs = GhsClass::getById($ghsId, true);
  15. GhsClass::valid($ghs, $this->shopId);
  16. $where = [];
  17. $where['ghsId'] = $ghsId;
  18. $list = GhsRechargeClass::getRechargeList($where);
  19. util::success($list);
  20. }
  21. }