|
@@ -221,7 +221,7 @@ class WinfailLogic
|
|
|
foreach ($matchArray as $matchModel) {
|
|
foreach ($matchArray as $matchModel) {
|
|
|
$fun1 = $matchModel->odds_code;
|
|
$fun1 = $matchModel->odds_code;
|
|
|
$fun2 = $matchModel->p_code;
|
|
$fun2 = $matchModel->p_code;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$mid = $matchModel->id;
|
|
$mid = $matchModel->id;
|
|
|
try {
|
|
try {
|
|
|
if ($RefClass->hasMethod($fun1)) {
|
|
if ($RefClass->hasMethod($fun1)) {
|
|
@@ -233,7 +233,7 @@ class WinfailLogic
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
echo 'excetption: ' . print_r([$order_id, $e->getMessage(), $e->getFile(), $e->getLine()], true) . "\n";
|
|
echo 'excetption: ' . print_r([$order_id, $e->getMessage(), $e->getFile(), $e->getLine()], true) . "\n";
|
|
|
}
|
|
}
|
|
|
- echo 'winforret: ' . print_r($winorfalse, true) . "\n";
|
|
|
|
|
|
|
+
|
|
|
if (!isset($winorfalse['result']) || !isset($winorfalse['matchResult']) || !in_array($winorfalse['result'], [-1, 1, 2, 3, 4])) {
|
|
if (!isset($winorfalse['result']) || !isset($winorfalse['matchResult']) || !in_array($winorfalse['result'], [-1, 1, 2, 3, 4])) {
|
|
|
$winorfalse = $winorfalsedef;
|
|
$winorfalse = $winorfalsedef;
|
|
|
}
|
|
}
|