|
@@ -618,6 +618,8 @@ class TelegramWebHook extends Controller
|
|
|
|
|
|
|
|
$stepStatus = Cache::get(get_step_key($chatId), -1);
|
|
$stepStatus = Cache::get(get_step_key($chatId), -1);
|
|
|
$stepStatus = intval($stepStatus);
|
|
$stepStatus = intval($stepStatus);
|
|
|
|
|
+ $res = QianBaoWithdrawService::onMessage($chatId, $text, $messageId, $stepStatus);
|
|
|
|
|
+ if (!empty($res)) return $res;
|
|
|
switch ($stepStatus) {
|
|
switch ($stepStatus) {
|
|
|
case StepStatus::INPUT_TOP_UP_MONEY:
|
|
case StepStatus::INPUT_TOP_UP_MONEY:
|
|
|
$res = TopUpService::inputAmount($chatId, $text, $messageId);
|
|
$res = TopUpService::inputAmount($chatId, $text, $messageId);
|
|
@@ -627,22 +629,6 @@ class TelegramWebHook extends Controller
|
|
|
$res = (new WithdrawService())->inputAmount($chatId, $text, $messageId);
|
|
$res = (new WithdrawService())->inputAmount($chatId, $text, $messageId);
|
|
|
return $res[0];
|
|
return $res[0];
|
|
|
break;
|
|
break;
|
|
|
- case StepStatus::INPUT_WITHDRAW_QB_MONEY:
|
|
|
|
|
- $res = QianBaoWithdrawService::inputQbAmount($chatId, $text, $messageId);
|
|
|
|
|
- return $res;
|
|
|
|
|
- break;
|
|
|
|
|
- case StepStatus::QB_INPUT_BANK_NAME:
|
|
|
|
|
- $res = QianBaoWithdrawService::inputBankName($chatId, $text, $messageId);
|
|
|
|
|
- return $res;
|
|
|
|
|
- case StepStatus::QB_INPUT_CARD_NO:
|
|
|
|
|
- $res = QianBaoWithdrawService::inputCardNo($chatId, $text, $messageId);
|
|
|
|
|
- return $res;
|
|
|
|
|
- break;
|
|
|
|
|
- case StepStatus::QB_INPUT_ACCOUNT:
|
|
|
|
|
- $res = QianBaoWithdrawService::inputAccount($chatId, $text, $messageId);
|
|
|
|
|
- return $res;
|
|
|
|
|
- break;
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
case StepStatus::INPUT_ADDRESS_TRC20:
|
|
case StepStatus::INPUT_ADDRESS_TRC20:
|
|
|
$res = WithdrawService::inputAddress($chatId, $text, $messageId);
|
|
$res = WithdrawService::inputAddress($chatId, $text, $messageId);
|