laowu 2 недель назад
Родитель
Сommit
5e597c4b2a
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/Services/SuperballActivityService.php

+ 3 - 1
app/Services/SuperballActivityService.php

@@ -841,12 +841,14 @@ class SuperballActivityService
         if (Redis::exists($existsKey)) {
             return;
         }
+        $totalPrize =  $ballCount * $basePrize * $multiplier + $hitCount * 10;
         PrivateMail::sendMail(
             2,
             $userId,
             'Your Lucky Ball Results!',
             "Yesterday you earned {$ballCount} balls and your lucky number was {$luckyNumber}. 
-            You matched {$hitCount} balls, winning a base prize of {$basePrize} with a {$multiplier}x reward multiplier.",
+            You matched {$hitCount} balls, winning a base prize of {$basePrize} with a {$multiplier}x reward multiplier.
+            Total Prize: {$ballCount}*{$basePrize}*{$multiplier}+{$hitCount}*10={$totalPrize}",
             '',
             '');
         Redis::setex($existsKey, 86400 * 2, 1);