This commit is contained in:
aozhiwei 2023-12-29 14:28:13 +08:00
parent 6b6c685006
commit 21c9103d1b
2 changed files with 3 additions and 2 deletions

View File

@ -436,7 +436,8 @@ class BattleController extends BaseAuthedController {
{
$rawData = file_get_contents('php://input');
error_log($rawData);
$sign = strstr($rawData, '|', true);
$headStr = strstr($rawData, '|', true);
$sign = strstr($headStr, ':', true);
$customData = strstr($rawData, '|');
$customData = substr($customData, 1);
error_log(json_encode(array(

View File

@ -144,7 +144,7 @@ class MatchController extends BaseAuthedController {
} else {
foreach ($currMatchDb as $key => $val) {
$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);
} else {
$found = false;