Ken há 2 dias atrás
pai
commit
6a6d708637
1 ficheiros alterados com 5 adições e 3 exclusões
  1. 5 3
      app/Services/QianBaoWithdrawService.php

+ 5 - 3
app/Services/QianBaoWithdrawService.php

@@ -425,21 +425,24 @@ class QianBaoWithdrawService
     private static function bankDetails($chatId, $messageId, $id)
     {
 
-        $text = "*银行卡管理*\n\n";
+
         $bank = Bank::where('id', $id)
             ->where('member_id', $chatId)->first();
         switch ($bank->channel) {
             case "DF001":
+                $text = "*银行卡管理*\n\n";
                 $text .= "姓名:{$bank->account}\n";
                 $text .= "银行:{$bank->bank_name}\n";
                 $text .= "卡号:{$bank->card_no}\n";
                 break;
             case "DF002":
+                $text = "*支付宝管理*\n\n";
                 $text .= "姓名:{$bank->account}\n";
                 $text .= "银行:{$bank->bank_name}\n";
                 $text .= "账号:{$bank->card_no}\n";
                 break;
             default:
+                $text = "*银行卡管理*\n\n";
                 $text .= "姓名:{$bank->account}\n";
                 $text .= "银行:{$bank->bank_name}\n";
                 $text .= "卡号:{$bank->card_no}\n";
@@ -448,8 +451,7 @@ class QianBaoWithdrawService
 
 
         $keyboard = [
-            [['text' => '❌删除该地址', 'callback_data' => "withdraw@@bank_del_{$id}"]],
-            [['text' => '↩️返回列表', 'callback_data' => 'withdraw@@banks']]
+            [['text' => '❌删除', 'callback_data' => "withdraw@@bank_del_{$id}"], ['text' => '↩️返回列表', 'callback_data' => 'withdraw@@banks']],
         ];
         return [
             'chat_id' => $chatId,