新需求-活动需求-盲盒转盘调通盘-巡乐会-调试
This commit is contained in:
@@ -66,6 +66,11 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
||||
return $precomputeResult;
|
||||
}
|
||||
$precomputedResults = $precomputeResult['data']['results'];
|
||||
foreach ($precomputedResults as $key => $result) {
|
||||
if ($result['gift'] == null) {
|
||||
Log::record('数据报错-3:'.json_encode($result),"info");
|
||||
}
|
||||
}
|
||||
$availableGiftss = $precomputeResult['data']['availableGifts'];
|
||||
$currentXlhPeriodsNum = $precomputeResult['data']['current_xlh_periods_num'];
|
||||
$addcurrentXlhPeriodsNum = $precomputeResult['data']['addcurrentXlhPeriodsNum'];
|
||||
@@ -320,17 +325,6 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
||||
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
|
||||
if ($selectedGift) {
|
||||
$gift = $giftInfoMap[$selectedGift['foreign_id']];
|
||||
if($gift == null){
|
||||
Log::record('数据报错:'.json_encode($giftInfoMap)."数据2".json_encode($selectedGift['foreign_id']),"info");
|
||||
}
|
||||
// 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,
|
||||
|
||||
Reference in New Issue
Block a user