|
|
@@ -277,8 +277,8 @@ class RechargeClass extends BaseClass
|
|
|
$addIntegralAndGrowth = bccomp($changeAmount, 0, 2) === 1; // 如果变化金额大于0,则计算积分与成长值
|
|
|
if ($addIntegralAndGrowth) {
|
|
|
//积分与成长值
|
|
|
- $custom->integral = bcadd($custom->integral, $changeAmount);
|
|
|
- $custom->growth = bcadd($custom->growth, $changeAmount);
|
|
|
+ $custom->integral = bcadd($custom->integral, $changeAmount, 2);
|
|
|
+ $custom->growth = bcadd($custom->growth, $changeAmount, 2);
|
|
|
|
|
|
// 由于没有更新 buyAmount,所以得额外添加更新等级
|
|
|
$memberData = CustomClass::getCustomExpenseLevel($custom->growth, $mainId); // 设置等级多处需要同步修改的,请搜索:getCustomExpenseLevel
|