|
|
@@ -188,12 +188,14 @@ class BetService extends BaseService
|
|
|
$text .= "--------\n";
|
|
|
$errText = "";
|
|
|
$success = false;
|
|
|
+ $sumAmount = 0;
|
|
|
foreach ($betResult as $item) {
|
|
|
$keywords = $item['rule'];
|
|
|
$amount = $item['amount'];
|
|
|
$error = $issueNo = "";
|
|
|
$b = static::singleNote($memberId, $keywords, $amount, $issueNo, $text, $error);
|
|
|
if ($b) {
|
|
|
+ $sumAmount+= $amount;
|
|
|
$text = str_replace("{issue_no}", $issueNo, $text);
|
|
|
$success = true;
|
|
|
$text .= "\n";
|
|
|
@@ -204,6 +206,7 @@ class BetService extends BaseService
|
|
|
}
|
|
|
|
|
|
$text .= "--------\n";
|
|
|
+ $text .=lang("合计金额").":{$sumAmount}\n";
|
|
|
$text .= lang("下注成功");
|
|
|
if (!$success) {
|
|
|
$msg['text'] = $errText;
|