lip 3 tygodni temu
rodzic
commit
7c0540f26d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/Services/BetService.php

+ 2 - 2
app/Services/BetService.php

@@ -975,9 +975,9 @@ class BetService extends BaseService
             }
 
             if ($total_amount > 0) {
-                LhcOrder::where("id", $v['id'])->update(['lottery_status' => '1']);
-            } else {
                 LhcOrder::where("id", $v['id'])->update(['lottery_status' => '2', 'win_amount' => $total_amount]);
+            } else {
+                LhcOrder::where("id", $v['id'])->update(['lottery_status' => '1', 'win_amount' => 0]);
             }
         }
         $openList = array_merge($openList, $fakeOpenData['list']);