diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 183ab189..d8f30fb3 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -966,7 +966,8 @@ class BattleController extends BaseAuthedController { $info['match_mode'] = 1; } } - { + if (count($member['battle_items']) > 0) { + $hasBattleItems = true; $info['items'] = array(); array_push($info['items'], array( 'item_id' => 900007, @@ -990,6 +991,16 @@ class BattleController extends BaseAuthedController { myself()->_rspData($data); } + private function decBattleItem($r, $roomUuid, &$info, $member) + { + $key = 'dec.battle.item.' . $roomUuid . ':' . myself()->_getAccountId(); + $data = $r->get($key); + if (empty($data)) { + } else { + $info['items'] = json_decode($data, true); + } + } + public function getMobaBattleData() { $sign = '';