소스 검색

红包 去掉已删除的红包

shish 4 년 전
부모
커밋
cc1b91d4a2
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app-hd/controllers/GhsController.php
  2. 1 1
      app-hd/controllers/RechargeHbController.php

+ 1 - 1
app-hd/controllers/GhsController.php

@@ -34,7 +34,7 @@ class GhsController extends BaseController
         $ghsShop = ShopClass::getById($ghsShopId, true);
         $info['hasRechargeHb'] = $ghsShop->recharge ?? 0;
 
-        $hb = RechargeHbClass::getByCondition(['shopId' => $ghsShopId], true, 'totalHb DESC');
+        $hb = RechargeHbClass::getByCondition(['shopId' => $ghsShopId, 'delStatus' => 0], true, 'totalHb DESC');
         $info['hasRechargeHbAmount'] = $hb->totalHb ?? 0;
 
         util::success($info);

+ 1 - 1
app-hd/controllers/RechargeHbController.php

@@ -17,7 +17,7 @@ class RechargeHbController extends BaseController
         $ghsInfo = GhsClass::getById($ghsId, true);
         GhsClass::valid($ghsInfo, $this->shopId);
         $ghsShopId = $ghsInfo->shopId ?? 0;
-        $list = RechargeHbClass::getAllByCondition(['shopId' => $ghsShopId], 'amount DESC', '*', null);
+        $list = RechargeHbClass::getAllByCondition(['shopId' => $ghsShopId, 'delStatus' => 0], 'amount DESC', '*', null);
         util::success(['list' => $list]);
     }