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