1
This commit is contained in:
parent
a431c927a1
commit
37e6e4d462
@ -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 = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user