소스 검색

fix give unit

laowu 1 일 전
부모
커밋
8281875961
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
                 }
             }
         }