Sfoglia il codice sorgente

wesmiler 抢表商城

APPLE 3 anni fa
parent
commit
76391502e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;