This commit is contained in:
aozhiwei 2020-07-09 19:16:01 +08:00
parent c4804cc540
commit 9312c611ba

View File

@ -62,7 +62,7 @@ class TeamController{
} }
$account_id = $_REQUEST['account_id']; $account_id = $_REQUEST['account_id'];
$conn = $this->getMysql($account_id); $conn = $this->getMysql($account_id);
$row = $conn->execQueryOne('SELECT game_times, win_times, kills FROM user WHERE accountid=:accountid;', $row = $conn->execQueryOne('SELECT game_times, win_times, kills, create_time FROM user WHERE accountid=:accountid;',
array( array(
'accountid' => $account_id, 'accountid' => $account_id,
)); ));
@ -86,6 +86,7 @@ class TeamController{
'game_times' => $row['game_times'], 'game_times' => $row['game_times'],
'win_times' => $row['win_times'], 'win_times' => $row['win_times'],
'kills' => $row['kills'], 'kills' => $row['kills'],
'create_time' => $row['create_time'],
) )
)); ));
@ -137,6 +138,7 @@ class TeamController{
'game_times' => $member['game_times'], 'game_times' => $member['game_times'],
'win_times' => $member['win_times'], 'win_times' => $member['win_times'],
'kills' => $member['kills'], 'kills' => $member['kills'],
'create_time' => $member['create_time'],
)); ));
} }
echo json_encode(array( echo json_encode(array(
@ -214,7 +216,7 @@ class TeamController{
} }
$accountid = $_REQUEST['account_id']; $accountid = $_REQUEST['account_id'];
$conn = $this->getMysql($accountid); $conn = $this->getMysql($accountid);
$row = $conn->execQueryOne('SELECT game_times, win_times, kills FROM user WHERE accountid=:accountid;', $row = $conn->execQueryOne('SELECT game_times, win_times, kills, create_time FROM user WHERE accountid=:accountid;',
array( array(
'accountid' => $accountid, 'accountid' => $accountid,
)); ));
@ -232,6 +234,7 @@ class TeamController{
'game_times' => $row['game_times'], 'game_times' => $row['game_times'],
'win_times' => $row['win_times'], 'win_times' => $row['win_times'],
'kills' => $row['kills'], 'kills' => $row['kills'],
'create_time' => $row['create_time'],
)); ));
$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);