|
@@ -574,35 +574,26 @@ class QianBaoWithdrawService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//输入姓名,并保存到数据库
|
|
//输入姓名,并保存到数据库
|
|
|
- private static function inputAccount($chatId, $account, $messageId)
|
|
|
|
|
|
|
+ private static function inputAccount($chatId, $account, $messageId): array
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
Cache::put("{$chatId}_QB_ACCOUNT", $account);
|
|
Cache::put("{$chatId}_QB_ACCOUNT", $account);
|
|
|
Cache::put(get_step_key($chatId), StepStatus::QB_INPUT_ALIAS);
|
|
Cache::put(get_step_key($chatId), StepStatus::QB_INPUT_ALIAS);
|
|
|
$channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
|
|
$channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
|
|
|
$text = "请输入别名";
|
|
$text = "请输入别名";
|
|
|
switch ($channel) {
|
|
switch ($channel) {
|
|
|
- case "DF001":
|
|
|
|
|
- $text = "请输入账号别名";
|
|
|
|
|
- break;
|
|
|
|
|
- case "DF002":
|
|
|
|
|
- $text = "请输入别名";
|
|
|
|
|
- break;
|
|
|
|
|
case "DF005":
|
|
case "DF005":
|
|
|
|
|
+ case "DF001":
|
|
|
$text = "请输入账号别名";
|
|
$text = "请输入账号别名";
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
return [
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
'chat_id' => $chatId,
|
|
|
'text' => $text,
|
|
'text' => $text,
|
|
|
'message_id' => $messageId,
|
|
'message_id' => $messageId,
|
|
|
];
|
|
];
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private static function inputAliAs($chatId, $alias, $messageId)
|
|
|
|
|
|
|
+ private static function inputAliAs($chatId, $alias, $messageId):array
|
|
|
{
|
|
{
|
|
|
$channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
|
|
$channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
|
|
|
$cardNo = Cache::get("{$chatId}_QB_WITHDRAW_CARD_NO");
|
|
$cardNo = Cache::get("{$chatId}_QB_WITHDRAW_CARD_NO");
|