|
|
@@ -199,7 +199,6 @@ class QianBaoWithdrawService
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//钱宝账单
|
|
|
private static function bill($chatId, $firstName, $messageId, $page = 1, $limit = 5)
|
|
|
{
|
|
|
@@ -295,7 +294,6 @@ class QianBaoWithdrawService
|
|
|
];
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//3.输入钱宝提现金额
|
|
|
private static function inputQbAmount($chatId, $amount, $messageId)
|
|
|
{
|
|
|
@@ -385,7 +383,6 @@ class QianBaoWithdrawService
|
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//银行卡管理
|
|
|
private static function banks($chatId, $messageId, $channel = ""): array
|
|
|
{
|
|
|
@@ -427,8 +424,6 @@ class QianBaoWithdrawService
|
|
|
//银行卡详情
|
|
|
private static function bankDetails($chatId, $messageId, $id)
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
$bank = Bank::where('id', $id)
|
|
|
->where('member_id', $chatId)->first();
|
|
|
switch ($bank->getChannel()) {
|
|
|
@@ -474,28 +469,6 @@ class QianBaoWithdrawService
|
|
|
return static::banks($chatId, $messageId, $channel);
|
|
|
}
|
|
|
|
|
|
- //添加银行卡
|
|
|
- private static function addBank($chatId, $messageId): array
|
|
|
- {
|
|
|
- $text = "请选择 提现通道\n";
|
|
|
-
|
|
|
- $keyboard = [
|
|
|
- [
|
|
|
- ['text' => '银行卡', 'callback_data' => "withdrawAddress@@bank_choose_channel_DF001"],
|
|
|
- ['text' => '支付宝', 'callback_data' => "withdrawAddress@@bank_choose_channel_DF002"]
|
|
|
- ],
|
|
|
- [
|
|
|
- ['text' => '❌取消', 'callback_data' => "message@@close"]
|
|
|
- ]
|
|
|
- ];
|
|
|
- return [
|
|
|
- 'chat_id' => $chatId,
|
|
|
- 'text' => $text,
|
|
|
- 'message_id' => $messageId,
|
|
|
- 'reply_markup' => json_encode(['inline_keyboard' => $keyboard])
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
//选择通道
|
|
|
private static function chooseChannel($chatId, $messageId, $channel)
|
|
|
{
|
|
|
@@ -570,7 +543,7 @@ class QianBaoWithdrawService
|
|
|
];
|
|
|
}
|
|
|
|
|
|
- //输入姓名,并保存到数据库
|
|
|
+ //输入姓名
|
|
|
private static function inputAccount($chatId, $account, $messageId): array
|
|
|
{
|
|
|
Cache::put("{$chatId}_QB_ACCOUNT", $account);
|
|
|
@@ -590,6 +563,7 @@ class QianBaoWithdrawService
|
|
|
];
|
|
|
}
|
|
|
|
|
|
+ //输入别名,并保存到数据库
|
|
|
private static function inputAliAs($chatId, $alias, $messageId): array
|
|
|
{
|
|
|
$channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
|