1
This commit is contained in:
parent
508ba7aff0
commit
20e46c17c8
@ -273,9 +273,11 @@ class BattleController extends BaseAuthedController {
|
||||
$chipPageDb = ChipPage::find($userPresetInfo['presetInfo']['chip_page']);
|
||||
$info['chip_page'] = ChipPage::toDtoBattle($chipPageDb);
|
||||
$battleDb = Battle::find($account_id);
|
||||
if ($battleDb){
|
||||
$battleData = json_decode($battleDb['battle_data'], true);
|
||||
$seasonBattleData = isset($battleData) ? getXVal($battleData, 'data', array()) : array();
|
||||
$info['battle_times'] = getXVal($seasonBattleData, 'total_battle_times', 0);
|
||||
}
|
||||
|
||||
}else{
|
||||
$info['errcode'] = 51;
|
||||
@ -294,16 +296,16 @@ class BattleController extends BaseAuthedController {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
for ($i = 1; $i <= 2; ++$i) {
|
||||
if (isset($info['weapon_uuid' . $i])) {
|
||||
$gunDb = Gun::findByAccountId($account_id, $info['weapon_uuid' . $i]);
|
||||
if ($gunDb) {
|
||||
$info['weapon_dto' . $i] = Gun::toDto($gunDb);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// {
|
||||
// for ($i = 1; $i <= 2; ++$i) {
|
||||
// if (isset($info['weapon_uuid' . $i])) {
|
||||
// $gunDb = Gun::findByAccountId($account_id, $info['weapon_uuid' . $i]);
|
||||
// if ($gunDb) {
|
||||
// $info['weapon_dto' . $i] = Gun::toDto($gunDb);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
{
|
||||
$itemDb = Bag::findEx($account_id, V_ITEM_REVIVE_COIN);
|
||||
|
@ -17,6 +17,9 @@ class AwardService extends BaseService {
|
||||
}
|
||||
}
|
||||
$itemMeta = Item::get($itemId);
|
||||
if (!$itemMeta){
|
||||
return;
|
||||
}
|
||||
if (!in_array(
|
||||
$itemMeta['type'],array(
|
||||
Item::RANDOM_BOX_TYPE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user