瀏覽代碼

mail text

laowu 2 周之前
父節點
當前提交
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)) {
         if (Redis::exists($existsKey)) {
             return;
             return;
         }
         }
+        $totalPrize =  $ballCount * $basePrize * $multiplier + $hitCount * 10;
         PrivateMail::sendMail(
         PrivateMail::sendMail(
             2,
             2,
             $userId,
             $userId,
             'Your Lucky Ball Results!',
             'Your Lucky Ball Results!',
             "Yesterday you earned {$ballCount} balls and your lucky number was {$luckyNumber}. 
             "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);
         Redis::setex($existsKey, 86400 * 2, 1);