1
This commit is contained in:
parent
6b6c685006
commit
21c9103d1b
@ -436,7 +436,8 @@ class BattleController extends BaseAuthedController {
|
|||||||
{
|
{
|
||||||
$rawData = file_get_contents('php://input');
|
$rawData = file_get_contents('php://input');
|
||||||
error_log($rawData);
|
error_log($rawData);
|
||||||
$sign = strstr($rawData, '|', true);
|
$headStr = strstr($rawData, '|', true);
|
||||||
|
$sign = strstr($headStr, ':', true);
|
||||||
$customData = strstr($rawData, '|');
|
$customData = strstr($rawData, '|');
|
||||||
$customData = substr($customData, 1);
|
$customData = substr($customData, 1);
|
||||||
error_log(json_encode(array(
|
error_log(json_encode(array(
|
||||||
|
@ -144,7 +144,7 @@ class MatchController extends BaseAuthedController {
|
|||||||
} else {
|
} else {
|
||||||
foreach ($currMatchDb as $key => $val) {
|
foreach ($currMatchDb as $key => $val) {
|
||||||
$tmpTeamDb = $this->readTeamDb($r, $key);
|
$tmpTeamDb = $this->readTeamDb($r, $key);
|
||||||
if (!empty($tmpTeamDb) || $this->_getNowTime() - $tmpTeamDb['match_time'] > 120) {
|
if (!empty($tmpTeamDb) && $this->_getNowTime() - $val['match_time'] > 120) {
|
||||||
array_push($delTeams, $key);
|
array_push($delTeams, $key);
|
||||||
} else {
|
} else {
|
||||||
$found = false;
|
$found = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user