|
|
@@ -428,17 +428,12 @@ class HttpServerOnlySet
|
|
|
$money_prize = $task['money_prize'];
|
|
|
|
|
|
//如果有一条为输的,订单直接为输了
|
|
|
- $hasfail = false;
|
|
|
foreach ($matchDatas as $val) {
|
|
|
if ($val->result == -1) {
|
|
|
- $hasfail = true;
|
|
|
- break;
|
|
|
+ $this->PushSqlToArray("update money_buy_str set wait_match_num=0, prize_note=0, game_status=3, settle_status=2, gain_money=0,settlementtime='" . date('Y-m-d H:i:s') . "' where order_id='$order_id' ");
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
- if ($hasfail) {
|
|
|
- $this->PushSqlToArray("update money_buy_str set wait_match_num=0, prize_note=0, game_status=3, settle_status=2, gain_money=0,settlementtime='" . date('Y-m-d H:i:s') . "' where order_id='$order_id' ");
|
|
|
- return true;
|
|
|
- }
|
|
|
|
|
|
foreach ($matchDatas as $val) {
|
|
|
if (!in_array($val->result, [1, 2, 3, 4])) {
|