vali 6 years ago
parent
commit
d6f85140d5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      datainf/logic/HttpServerOnlySet.php

+ 4 - 4
datainf/logic/HttpServerOnlySet.php

@@ -267,10 +267,10 @@ class HttpServerOnlySet
         }
 
         foreach ($userMonsys as $account => $money) {
-            if ($money>0){
+            if ($money > 0) {
                 $sql = "update account_detailed  set  cash=cash-$money where identity='$account' ";
-            }else{
-                $money =abs($money);
+            } else {
+                $money = abs($money);
                 $sql = "update account_detailed  set  cash=cash+$money where identity='$account' ";
             }
             //$sql = "update account_detailed  set  cash=cash-$money where identity='$account' ";
@@ -368,7 +368,7 @@ class HttpServerOnlySet
         }
 
         $result = $this->PDatas['game_result'];
-        if ($result->status == 1) {
+        if ($result->status == 1 || $result->status == 0) {
             echo '比赛未结束,不能更改为全部已结算状态-- ' . $game_code . ' -match_id ' . $match_id . "\n";
             //未结束的比赛不改状态
             return;