新需求-活动需求-盲盒转盘调通盘-巡乐会-调试
This commit is contained in:
@@ -319,10 +319,11 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
|||||||
for ($i = 0; $i < $userRemainingAllocation; $i++) {
|
for ($i = 0; $i < $userRemainingAllocation; $i++) {
|
||||||
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
||||||
if ($selectedGift) {
|
if ($selectedGift) {
|
||||||
$gift = $giftInfoMap[$selectedGift['foreign_id']] ?? null;
|
$gift = $giftInfoMap[$selectedGift['foreign_id']];
|
||||||
if (empty($gift)) {
|
if (empty($gift)) {
|
||||||
|
Log::record('数据报错:'.json_encode($selectedGift),"info");
|
||||||
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
||||||
$gift = $giftInfoMap[$selectedGift['foreign_id']] ?? null;
|
$gift = $giftInfoMap[$selectedGift['foreign_id']];
|
||||||
}
|
}
|
||||||
if(!$gift){
|
if(!$gift){
|
||||||
throw new \Exception('礼物信息不存在');
|
throw new \Exception('礼物信息不存在');
|
||||||
|
|||||||
Reference in New Issue
Block a user