|
@@ -303,7 +303,7 @@ class WqRule
|
|
|
$tmpobj['winner'] = ($all_datas[$i]['home'] > $all_datas[$i]['guest']) ? 'home' : 'guest';
|
|
$tmpobj['winner'] = ($all_datas[$i]['home'] > $all_datas[$i]['guest']) ? 'home' : 'guest';
|
|
|
$return[$i] = json_decode(json_encode($tmpobj, 256));
|
|
$return[$i] = json_decode(json_encode($tmpobj, 256));
|
|
|
}
|
|
}
|
|
|
- if (empty($return) || !in_array($return, [3, 5])) {
|
|
|
|
|
|
|
+ if (empty($return) || !in_array(count($return), [3, 5])) {
|
|
|
throw new \Exception("篮球结果数据不正确,( matchid= $imatch_id 主客结果)不能为空或数据量不为3,5");
|
|
throw new \Exception("篮球结果数据不正确,( matchid= $imatch_id 主客结果)不能为空或数据量不为3,5");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|