This commit is contained in:
aozhiwei 2024-10-09 13:26:14 +08:00
parent 52b8da81a9
commit d359937c1b

View File

@ -99,17 +99,19 @@ class BattleBoxService {
}
}
if ($boxNum > 0) {
SqlHelper::insert(
myself()->_getSelfMysql(),
't_box_alloc',
array(
'room_uuid' => $roomUuid,
'account_id' => myself()->_getAccountId(),
'box_num' => $boxNum,
'createtime' => myself()->_getNowTime(),
'modifytime' => myself()->_getNowTime(),
)
);
if (getReqVal('c', '') != 'Tools') {
SqlHelper::insert(
myself()->_getSelfMysql(),
't_box_alloc',
array(
'room_uuid' => $roomUuid,
'account_id' => myself()->_getAccountId(),
'box_num' => $boxNum,
'createtime' => myself()->_getNowTime(),
'modifytime' => myself()->_getNowTime(),
)
);
}
self::incAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds(), $boxNum);
}
return $boxNum;