Browse Source

fix give unit

laowu 17 hours ago
parent
commit
8281875961
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Services/OrderServices.php

+ 2 - 2
app/Services/OrderServices.php

@@ -375,7 +375,7 @@ class  OrderServices
                 ];
                 $type = $typeMap[$GiftsID] ?? 'unknown';
                 app(PaidRewardStatisticsService::class)
-                    ->incrementRecordByDateIDAndType(date('Ymd'), $type, $give);
+                    ->incrementRecordByDateIDAndType(date('Ymd'), $type, $give * NumConfig::NUM_VALUE);
             }
 
         }
@@ -391,7 +391,7 @@ class  OrderServices
                         ->where('UserID', $user_id)
                         ->increment('InsureScore', $bonus);
                     app(PaidRewardStatisticsService::class)
-                        ->incrementRecordByDateIDAndType(date('Ymd'), 'free_bonus_gift', $give);
+                        ->incrementRecordByDateIDAndType(date('Ymd'), 'free_bonus_gift', $give * NumConfig::NUM_VALUE);
                 }
             }
         }