1
This commit is contained in:
parent
b1db45ae0c
commit
de78be818b
@ -169,14 +169,8 @@ class EventRankingController extends BaseAuthedController
|
||||
if (!$userInfo['guild_id']){
|
||||
$this->myRanked['guild'] = array();
|
||||
}
|
||||
$guildDb = Guild::find($row['guild_id']);
|
||||
error_log('*********************************');
|
||||
error_log(json_encode($row));
|
||||
error_log(json_encode(array(
|
||||
'guild'=>$guildDb
|
||||
)));
|
||||
if($userInfo['guild_id'] && $userInfo['guild_id'] == $row['guild_id']){
|
||||
// $guildDb = Guild::find($row['guild_id']);
|
||||
$guildDb = Guild::find($row['guild_id']);
|
||||
$this->myRanked['ranked'] = $ranked;
|
||||
$this->myRanked['user'] = array();
|
||||
$this->myRanked['guild'] = Guild::toSimple($guildDb);
|
||||
@ -200,6 +194,7 @@ error_log(json_encode(array(
|
||||
$this->myRanked['guild'] =Guild::toSimple($guildDb);
|
||||
$this->myRanked['value'] =$value[0]['value'];
|
||||
}
|
||||
$guildDb = Guild::find($row['guild_id']);
|
||||
array_push($rankingList, array(
|
||||
'ranked' => $ranked,
|
||||
'user' => array(),
|
||||
@ -218,6 +213,7 @@ error_log(json_encode(array(
|
||||
'rows' => $rankingList,
|
||||
'my_ranked' => $this->myRanked
|
||||
);
|
||||
error_log("*************************************");
|
||||
error_log(json_encode(
|
||||
array(
|
||||
'account_id'=>$userInfo['account_id'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user