1
This commit is contained in:
parent
fada385007
commit
40c07d2a1b
@ -1074,18 +1074,18 @@ class UserController extends BaseAuthedController {
|
||||
}
|
||||
|
||||
public function getBattleGoldModeTimes(){
|
||||
$userInfo = $this->_getOrmUserInfo();
|
||||
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_id']);
|
||||
if (!$heroDb){
|
||||
$this->_rspErr(1, 'battle hero does not exist');
|
||||
return;
|
||||
}
|
||||
$heroMeta = \mt\Item::get($heroDb['hero_id']);
|
||||
$heroAtteMeta = mt\EconomyAttribute::findByGrade($heroMeta['relationship'],$heroDb['quality']);
|
||||
// $userInfo = $this->_getOrmUserInfo();
|
||||
// $heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_id']);
|
||||
// if (!$heroDb){
|
||||
// $this->_rspErr(1, 'battle hero does not exist');
|
||||
// return;
|
||||
// }
|
||||
// $heroMeta = \mt\Item::get($heroDb['hero_id']);
|
||||
// $heroAtteMeta = mt\EconomyAttribute::findByGrade($heroMeta['relationship'],$heroDb['quality']);
|
||||
|
||||
$this->_rspData(array(
|
||||
"current_times" => myself()->_getDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0),
|
||||
"total_times" => $heroAtteMeta['roundPerDay'],
|
||||
// "total_times" => $heroAtteMeta['roundPerDay'],
|
||||
));
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user