|
|
@@ -154,12 +154,15 @@ class QianBaoWithdrawService
|
|
|
private static function showBanks($chatId, $messageId, $type)
|
|
|
{
|
|
|
$channel = '';
|
|
|
+ $card = "";
|
|
|
switch ($type) {
|
|
|
case "bank":
|
|
|
+ $card = "银行卡";
|
|
|
$text = "请选择提现的银行卡";
|
|
|
$channel = 'DF001';
|
|
|
break;
|
|
|
case "aliPay":
|
|
|
+ $card = "支付宝";
|
|
|
$text = "请选择提现的支付宝";
|
|
|
$channel = "DF002";
|
|
|
break;
|
|
|
@@ -172,13 +175,8 @@ class QianBaoWithdrawService
|
|
|
foreach ($list as $item) {
|
|
|
$keyboard[] = [['text' => $item->alias, 'callback_data' => "withdrawAddress@@choose_qb_{$item->id}"]];
|
|
|
}
|
|
|
-// if (count($list) < 5) {
|
|
|
-// $keyboard[] = [['text' => "➕ 添加", 'callback_data' => "withdrawAddress@@bank_add"]];
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
$keyboard[] = [
|
|
|
- ['text' => '支付宝管理', 'callback_data' => "withdraw@@banks"],
|
|
|
+ ['text' => "{$card}管理", 'callback_data' => "withdraw@@banks"],
|
|
|
['text' => "取消", 'callback_data' => "topUp@@home"]];
|
|
|
return [
|
|
|
'chat_id' => $chatId,
|