|
|
@@ -165,14 +165,8 @@ class BetService extends BaseService
|
|
|
{
|
|
|
$msg = [];
|
|
|
$msg['chat_id'] = $memberId;
|
|
|
-
|
|
|
- // 钱包生成
|
|
|
- // $walletInfo = WalletService::getUserWallet($memberId);
|
|
|
-
|
|
|
-
|
|
|
// 分解投注的内容
|
|
|
$betResult = GameplayRuleService::bettingRuleVerify($input);
|
|
|
-
|
|
|
$serviceAccount = Config::where('field', 'service_customer')->first()->val;
|
|
|
if ($betResult == null) {
|
|
|
$text = lang("消息格式错误!") . "\n";
|
|
|
@@ -191,22 +185,21 @@ class BetService extends BaseService
|
|
|
$text .= "--------\n";
|
|
|
$errText = "";
|
|
|
$success = false;
|
|
|
+ $issueNo = "";
|
|
|
foreach ($betResult as $item) {
|
|
|
$keywords = $item['rule'];
|
|
|
$amount = $item['amount'];
|
|
|
$error = $issueNo = "";
|
|
|
$b = static::singleNote($memberId, $keywords, $amount, $issueNo, $text, $error);
|
|
|
if ($b) {
|
|
|
- $text = str_replace("{issue_no}", $issueNo, $text);
|
|
|
$success = true;
|
|
|
$text .= "\n";
|
|
|
} else {
|
|
|
$errText .= $error;
|
|
|
$errText .= "\n";
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
+ $text = str_replace("{issue_no}", $issueNo, $text);
|
|
|
$text .= "--------\n";
|
|
|
$text .= lang("下注成功");
|
|
|
if (!$success) {
|
|
|
@@ -217,7 +210,7 @@ class BetService extends BaseService
|
|
|
} else {
|
|
|
$msg['text'] = $text;
|
|
|
$msg['text'] .= "\n";
|
|
|
- if(!empty($errText)){
|
|
|
+ if (!empty($errText)) {
|
|
|
$msg['text'] .= "------------------------\n";
|
|
|
$msg['text'] .= $errText;
|
|
|
}
|