|
|
@@ -83,6 +83,15 @@ class QianBaoWithdrawService
|
|
|
$telegram->editMessageText($res);
|
|
|
}
|
|
|
|
|
|
+ //添加银行卡
|
|
|
+// $pattern = "/^withdraw@@bank_add.*$/";
|
|
|
+// if (preg_match($pattern, $data)) {
|
|
|
+// $channel = preg_replace('/^withdraw@@bank_add/', '', $data);
|
|
|
+// $res = QianBaoWithdrawService::chooseChannel($chatId, $messageId,$channel);
|
|
|
+// $telegram->editMessageText($res);
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
//银行卡详情
|
|
|
$pattern = "/^withdrawAddress@@bank_detail\d+$/";
|
|
|
@@ -100,11 +109,7 @@ class QianBaoWithdrawService
|
|
|
}
|
|
|
|
|
|
|
|
|
- //添加银行卡
|
|
|
- if ($data === "withdrawAddress@@bank_add") {
|
|
|
- $res = QianBaoWithdrawService::addBank($chatId, $messageId);
|
|
|
- $telegram->editMessageText($res);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
$pattern = "/^withdrawAddress@@bank_choose_channel_.*$/";
|
|
|
if (preg_match($pattern, $data)) {
|
|
|
@@ -407,7 +412,7 @@ class QianBaoWithdrawService
|
|
|
$keyboard[] = [['text' => $item->alias, 'callback_data' => "withdrawAddress@@bank_detail{$item->id}"]];
|
|
|
}
|
|
|
if (count($list) < 5) {
|
|
|
- $keyboard[] = [['text' => "➕ 添加", 'callback_data' => "withdrawAddress@@bank_add"], ['text' => "↩️返回", 'callback_data' => "topUp@@home"]];
|
|
|
+ $keyboard[] = [['text' => "➕ 添加", 'callback_data' => "withdrawAddress@@bank_choose_channel_{$channel}"], ['text' => "↩️返回", 'callback_data' => "topUp@@home"]];
|
|
|
} else {
|
|
|
$keyboard[] = [['text' => "↩️返回", 'callback_data' => "topUp@@home"]];
|
|
|
}
|