添加custom data字段

This commit is contained in:
aozhiwei 2021-02-02 13:46:48 +08:00
parent bc706444b0
commit a0b7fe1b1f

View File

@ -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);