laowu 1 сар өмнө
parent
commit
7454468da5

+ 1 - 1
app/Services/OrderServices.php

@@ -373,7 +373,7 @@ class  OrderServices
                     305 => 'vip_inactive_gift',
                     402 => 'christmas_gift',
                 ];
-                $type = $typeMap[$GiftsID] ?? 'unknown_gift';
+                $type = $typeMap[intval($GiftsID)] ?? 'unknown_gift';
                 app(PaidRewardStatisticsService::class)
                     ->incrementRecordByDateIDAndType(date('Ymd'), $type, $give * NumConfig::NUM_VALUE);
             }