This commit is contained in:
hujiabin 2024-09-19 17:04:58 +08:00
parent 8938934b0c
commit 635b9aa5c2
2 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class rankingInfo(object):
['name', 0, '名字'],
['head_id', 0, '头像'],
['head_frame', 0, '头像框'],
['hero_id', 0, '英雄ItemId'],
['skin_id', 0, '皮肤ItemId'],
['ranking', 0, '排名'],
['score', 0, '积分'],

View File

@ -63,6 +63,7 @@ class CircuitController extends BaseAuthedController {
$userDb = User::find($row['account_id']);
$heroDb = Hero::findByAccountId($userDb['account_id'],$userDb['hero_id']);
$skinDb = HeroSkin::find($heroDb['skin_id']);
$heroId = $heroDb ? $heroDb['hero_id']:0;
$skinId = $skinDb ? $skinDb['skin_id']:0;
$ranking = $k+1;
$rewardWeight = \mt\CircuitReward::getRewardWeight($ranking);
@ -72,6 +73,7 @@ class CircuitController extends BaseAuthedController {
'name' => utf8_encode($userDb['name']),
'head_id' => $userDb['head_id'],
'head_frame' => $userDb['head_frame'],
'hero_id' => $heroId,
'skin_id' => $skinId,
'ranking' => $ranking,
'weight' => $rewardWeight,