Эх сурвалжийг харах

fix error: xhCutom查询遗漏了growth字段

shizhongqi 5 сар өмнө
parent
commit
7e2b6e32a7

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

@@ -748,7 +748,7 @@ class CustomController extends BaseController
             foreach ($allShops as $shop) {
                 $shopId = $shop['id'];
                 $mainId = $shop['mainId'];
-                $customs = CustomClass::getAllByCondition(['shopId' => $shopId], null, 'id, userId, buyAmount, member, memberName', null, true);
+                $customs = CustomClass::getAllByCondition(['shopId' => $shopId], null, 'id, userId, buyAmount, growth, member, memberName', null, true);
                 $levelDatas = MemberLevelClass::getAllByCondition(['mainId' => $mainId], 'amount DESC', 'id, name, level, amount');
                 if (!empty($customs) && !empty($levelDatas)) {
                     foreach ($customs as $c) {

+ 1 - 1
biz-hd/custom/classes/CustomClass.php

@@ -893,7 +893,7 @@ class CustomClass extends BaseClass
     {
         $shopId = $data['shopId'];
         $mainId = $data['mainId'];
-        $customs = self::getAllByCondition(['shopId' => $shopId], null, 'id, userId, buyAmount, member, memberName', null, true);
+        $customs = self::getAllByCondition(['shopId' => $shopId], null, 'id, userId, buyAmount, growth, member, memberName', null, true);
         $levelDatas = MemberLevelClass::getAllByCondition(['mainId' => $mainId], 'amount DESC', 'id, name, level, amount');
         if (!empty($customs) && !empty($levelDatas)) {
             foreach ($customs as $c) {