فهرست منبع

Merge branch 'zhongqi-optimize' into dev

shizhongqi 3 ماه پیش
والد
کامیت
9eeb729c5d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      console/controllers/CustomController.php

+ 2 - 2
console/controllers/CustomController.php

@@ -202,8 +202,8 @@ class CustomController extends Controller
                                     }
                                     }
                                 }
                                 }
                                 $c->buyAmount = $buyAmount;
                                 $c->buyAmount = $buyAmount;
-                                $c->growth = $integral + $c->balance;
-                                $c->integral = $integral  + $c->balance;
+                                $c->growth = $integral + ($c->balance > 0 ? $c->balance : 0);
+                                $c->integral = $integral  + ($c->balance > 0 ? $c->balance : 0);
 
 
                                 // 根据 growth 设置等级
                                 // 根据 growth 设置等级
                                 $memberData = CustomClass::getCustomExpenseLevel($c->growth, $mainId, $levelDatas); // 设置等级多处需要同步修改的,请搜索:getCustomExpenseLevel
                                 $memberData = CustomClass::getCustomExpenseLevel($c->growth, $mainId, $levelDatas); // 设置等级多处需要同步修改的,请搜索:getCustomExpenseLevel