This commit is contained in:
aozhiwei 2024-10-14 14:34:09 +08:00
parent a431c927a1
commit 37e6e4d462

View File

@ -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 = '';