添加custom data字段
This commit is contained in:
parent
bc706444b0
commit
a0b7fe1b1f
@ -92,6 +92,7 @@ class TeamController{
|
|||||||
'win_times' => $row['win_times'],
|
'win_times' => $row['win_times'],
|
||||||
'kills' => $row['kills'],
|
'kills' => $row['kills'],
|
||||||
'create_time' => $row['create_time'],
|
'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'],
|
'win_times' => $member['win_times'],
|
||||||
'kills' => $member['kills'],
|
'kills' => $member['kills'],
|
||||||
'create_time' => $member['create_time'],
|
'create_time' => $member['create_time'],
|
||||||
|
'custom_data' => $member['custom_data'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
@ -241,6 +243,7 @@ class TeamController{
|
|||||||
'win_times' => $row['win_times'],
|
'win_times' => $row['win_times'],
|
||||||
'kills' => $row['kills'],
|
'kills' => $row['kills'],
|
||||||
'create_time' => $row['create_time'],
|
'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->set(TEAMID_KEY . $team_uuid, json_encode($user_db));
|
||||||
$r -> pexpire(TEAMID_KEY . $team_uuid, 1000 * 600);
|
$r -> pexpire(TEAMID_KEY . $team_uuid, 1000 * 600);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user