APPLE 3 лет назад
Родитель
Сommit
76391502e0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Common/TradeService.php

+ 1 - 1
app/Services/Common/TradeService.php

@@ -628,7 +628,7 @@ class TradeService extends BaseService
                     return true;
                 }
 
-                if (!MemberModel::where(['id' => $parentId, 'mark' => 1])->update(['bonus' => $parentInfo['bonus'] + $bonus, 'update_time' => time()])) {
+                if (!MemberModel::where(['id' => $parentId, 'mark' => 1])->update(['bonus' => $parentInfo['bonus'] + $bonus,'bonus_total'=> $parentInfo['bonus_total']+$bonus, 'update_time' => time()])) {
                     $this->error = 2051;
                     DB::rollBack();
                     return true;