新需求-活动需求-盲盒转盘调通盘-巡乐会-调试
This commit is contained in:
@@ -320,14 +320,14 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
|||||||
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
||||||
if ($selectedGift) {
|
if ($selectedGift) {
|
||||||
$gift = $giftInfoMap[$selectedGift['foreign_id']];
|
$gift = $giftInfoMap[$selectedGift['foreign_id']];
|
||||||
if (empty($gift)) {
|
// if (empty($gift)) {
|
||||||
Log::record('数据报错:'.json_encode($selectedGift),"info");
|
// Log::record('数据报错:'.json_encode($selectedGift),"info");
|
||||||
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
// $selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
||||||
$gift = $giftInfoMap[$selectedGift['foreign_id']];
|
// $gift = $giftInfoMap[$selectedGift['foreign_id']];
|
||||||
}
|
// }
|
||||||
if(!$gift){
|
// if(!$gift){
|
||||||
throw new \Exception('礼物信息不存在');
|
// throw new \Exception('礼物信息不存在');
|
||||||
}
|
// }
|
||||||
$precomputedResults[] = [
|
$precomputedResults[] = [
|
||||||
'gift_user_id' => $giftUserId,
|
'gift_user_id' => $giftUserId,
|
||||||
'gift_bag_detail' => $selectedGift,
|
'gift_bag_detail' => $selectedGift,
|
||||||
@@ -596,6 +596,9 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
|||||||
$batchInsertData = [];
|
$batchInsertData = [];
|
||||||
|
|
||||||
foreach ($precomputedResults as $result) {
|
foreach ($precomputedResults as $result) {
|
||||||
|
if(!isset($result['gift']['gift_price'])){
|
||||||
|
Log::record('数据报错:'.json_encode($result),"info");
|
||||||
|
}
|
||||||
$batchInsertData[] = [
|
$batchInsertData[] = [
|
||||||
'user_id' => $user_id,
|
'user_id' => $user_id,
|
||||||
'gift_user_id' => $result['gift_user_id'],
|
'gift_user_id' => $result['gift_user_id'],
|
||||||
|
|||||||
Reference in New Issue
Block a user