|
@@ -229,31 +229,16 @@ class TelegramWebHook extends BaseController
|
|
|
//关键字回复
|
|
//关键字回复
|
|
|
$res = KeyboardService::getKeyWordReply($chatId, $text);
|
|
$res = KeyboardService::getKeyWordReply($chatId, $text);
|
|
|
if (!empty($res)) return $res;
|
|
if (!empty($res)) return $res;
|
|
|
-
|
|
|
|
|
$stepStatus = intval(Cache::get(get_step_key($chatId), -1));
|
|
$stepStatus = intval(Cache::get(get_step_key($chatId), -1));
|
|
|
-
|
|
|
|
|
$res = QianBaoWithdrawService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
$res = QianBaoWithdrawService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
if (empty($res)) $res = SanJinRechargeService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
if (empty($res)) $res = SanJinRechargeService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
if (empty($res)) $res = SecretService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
if (empty($res)) $res = SecretService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
|
|
+ if (empty($res)) $res = WithdrawService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
|
|
+ if (empty($res)) $res = TopUpService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
|
|
+ if (empty($res)) $res = BetService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
if (!empty($res)) return $res;
|
|
if (!empty($res)) return $res;
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- switch ($stepStatus) {
|
|
|
|
|
- case StepStatus::INPUT_TOP_UP_MONEY:
|
|
|
|
|
- return TopUpService::inputAmount($chatId, $text, $messageId);
|
|
|
|
|
- case StepStatus::INPUT_WITHDRAW_MONEY:
|
|
|
|
|
- return (new WithdrawService())->inputAmount($chatId, $text, $messageId)[0];
|
|
|
|
|
- case StepStatus::INPUT_ADDRESS_TRC20:
|
|
|
|
|
- return WithdrawService::inputAddress($chatId, $text, $messageId);
|
|
|
|
|
- case StepStatus::INPUT_ADDRESS_ALIAS:
|
|
|
|
|
- return WithdrawService::inputAlias($chatId, $text, $messageId);
|
|
|
|
|
- default:
|
|
|
|
|
- $returnMsg = BetService::bet($chatId, $text, $messageId);
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ return BetService::bet($chatId, $text, $messageId);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
return $returnMsg;
|
|
return $returnMsg;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|