This commit is contained in:
aozhiwei 2020-01-08 20:23:58 +08:00
parent 0c6cee4ece
commit a692b5e488

View File

@ -71,7 +71,7 @@ class RankController{
$myname = $row['user_name'];
$myavatar_url = $row['avatar_url'];
}
$myavatar_url = json_decode($myavatar_url);
array_push($user_list, array(
'account_id' => $account_id,
'name' => $myname,
@ -101,6 +101,7 @@ class RankController{
//财富榜
$coin_rank_db = $r->get("game2003api:coin_rank");
$coin_db = json_decode($coin_rank_db);
$coin_list = $this->getRank($account_id, $coin_db, $myname, $myavatar_url);
$i = 0;
foreach ($coin_db as $coin) {
$name = '';
@ -113,7 +114,6 @@ class RankController{
}
$i++;
}
$coin_list = $this->getRank($account_id, $coin_db, $myname, $myavatar_url);
echo json_encode(array(
'errcode' => 0,
'errmsg' => "",