From a0b7fe1b1feda4d5a13c8f5a7a79d3f64aa5e72a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 2 Feb 2021 13:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0custom=20data=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/TeamController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/controller/TeamController.class.php b/webapp/controller/TeamController.class.php index d41a8e2..e8c890b 100644 --- a/webapp/controller/TeamController.class.php +++ b/webapp/controller/TeamController.class.php @@ -92,6 +92,7 @@ class TeamController{ 'win_times' => $row['win_times'], 'kills' => $row['kills'], 'create_time' => $row['create_time'], + 'custom_data' => empty($_REQUEST['custom_data']) ? '' : $_REQUEST['custom_data'], ) )); @@ -144,6 +145,7 @@ class TeamController{ 'win_times' => $member['win_times'], 'kills' => $member['kills'], 'create_time' => $member['create_time'], + 'custom_data' => $member['custom_data'], )); } echo json_encode(array( @@ -241,6 +243,7 @@ class TeamController{ 'win_times' => $row['win_times'], 'kills' => $row['kills'], 'create_time' => $row['create_time'], + 'custom_data' => empty($_REQUEST['custom_data']) ? '' : $_REQUEST['custom_data'], )); $r->set(TEAMID_KEY . $team_uuid, json_encode($user_db)); $r -> pexpire(TEAMID_KEY . $team_uuid, 1000 * 600);