|
@@ -119,7 +119,7 @@ class RechargeController
|
|
|
$income = $memberAccount->member_account_income + $payAmount;
|
|
|
$memberAccount->member_account_added = $added;
|
|
|
$memberAccount->member_account_income = $income;
|
|
|
- $memberAccount->member_account_surplus = $income - $memberAccount->member_account_expend;
|
|
|
+ $memberAccount->member_account_surplus = $memberAccount->member_account_surplus + $payAmount;
|
|
|
$memberAccount->save();
|
|
|
|
|
|
// 根据最新的数据,更新用户等级
|