Ken 1 месяц назад
Родитель
Сommit
d4cbaed9a6
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      app/Services/QianBaoWithdrawService.php

+ 4 - 6
app/Services/QianBaoWithdrawService.php

@@ -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,