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