|
|
@@ -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);
|