新需求-活动需求-盲盒转盘调通盘-巡乐会-调试

This commit is contained in:
2025-10-16 21:27:28 +08:00
parent 21890b3fcd
commit aa9bf9232e

View File

@@ -320,14 +320,14 @@ class BlindBoxTurntableGiftDrawWorld extends Model
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
if ($selectedGift) {
$gift = $giftInfoMap[$selectedGift['foreign_id']];
if (empty($gift)) {
Log::record('数据报错:'.json_encode($selectedGift),"info");
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
$gift = $giftInfoMap[$selectedGift['foreign_id']];
}
if(!$gift){
throw new \Exception('礼物信息不存在');
}
// if (empty($gift)) {
// Log::record('数据报错:'.json_encode($selectedGift),"info");
// $selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
// $gift = $giftInfoMap[$selectedGift['foreign_id']];
// }
// if(!$gift){
// throw new \Exception('礼物信息不存在');
// }
$precomputedResults[] = [
'gift_user_id' => $giftUserId,
'gift_bag_detail' => $selectedGift,
@@ -596,6 +596,9 @@ class BlindBoxTurntableGiftDrawWorld extends Model
$batchInsertData = [];
foreach ($precomputedResults as $result) {
if(!isset($result['gift']['gift_price'])){
Log::record('数据报错:'.json_encode($result),"info");
}
$batchInsertData[] = [
'user_id' => $user_id,
'gift_user_id' => $result['gift_user_id'],