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

+ 14 - 9
app/Services/QianBaoWithdrawService.php

@@ -301,15 +301,6 @@ class QianBaoWithdrawService
         ];
     }
 
-    //删除银行卡
-    private static function bankDelete($chatId, $messageId, $id)
-    {
-        Bank::where('id', $id)
-            ->where('member_id', $chatId)->delete();
-
-        return static::banks($chatId, $messageId);
-    }
-
     //银行卡详情
     private static function bankDetails($chatId, $messageId, $id)
     {
@@ -350,6 +341,16 @@ class QianBaoWithdrawService
         ];
     }
 
+    //删除银行卡
+    private static function bankDelete($chatId, $messageId, $id)
+    {
+        Bank::where('id', $id)
+            ->where('member_id', $chatId)->delete();
+
+        return static::banks($chatId, $messageId);
+    }
+
+    //添加银行卡
     private static function addBank($chatId, $messageId)
     {
         $text = "请选择 提现通道\n";
@@ -371,6 +372,7 @@ class QianBaoWithdrawService
         ];
     }
 
+    //选择通道
     private static function chooseChannel($chatId, $messageId, $channel)
     {
         Cache::put("{$chatId}_QB_WITHDRAW_CHANNEL", $channel);
@@ -405,6 +407,7 @@ class QianBaoWithdrawService
 
     }
 
+    //输入银行名称
     private static function inputBankName($chatId, $bankName, $messageId)
     {
         Cache::put("{$chatId}_QB_WITHDRAW_BANK_NAME", $bankName);
@@ -416,6 +419,7 @@ class QianBaoWithdrawService
         ];
     }
 
+    //输入卡号
     private static function inputCardNo($chatId, $cardNo, $messageId)
     {
         $channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
@@ -438,6 +442,7 @@ class QianBaoWithdrawService
         ];
     }
 
+    //输入姓名
     private static function inputAccount($chatId, $account, $messageId)
     {
         $channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");