Ken 2 miesięcy temu
rodzic
commit
d631dd86af
1 zmienionych plików z 14 dodań i 14 usunięć
  1. 14 14
      app/Services/WithdrawService.php

+ 14 - 14
app/Services/WithdrawService.php

@@ -489,13 +489,20 @@ class WithdrawService
          * @return {*}
          */
 //        PaymentOrderService::createPayout($chatId, $amount, $channel, $bank_name, $account, $card_no);
-        Bank::create([
-            'member_id' => $chatId,
-            'channel' => 'DF001',
-            'bank_name' => '工商银行',
-            'account' => '提供商',
-            'card_no'=>'6856325475896584521'
-        ]);
+
+        $amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY", '');
+        if ($amount) return WithdrawService::index($chatId, $firstName, $messageId);
+    }
+
+    //输入钱宝提现金额
+    static function inputQbAmount($chatId, $amount, $messageId)
+    {Bank::create([
+        'member_id' => $chatId,
+        'channel' => 'DF001',
+        'bank_name' => '工商银行',
+        'account' => '提供商',
+        'card_no'=>'6856325475896584521'
+    ]);
         Bank::create([
             'member_id' => $chatId,
             'channel' => 'DF002',
@@ -503,13 +510,6 @@ class WithdrawService
             'account' => '提供商',
             'card_no'=>'18888888888'
         ]);
-        $amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY", '');
-        if ($amount) return WithdrawService::index($chatId, $firstName, $messageId);
-    }
-
-    //输入钱宝提现金额
-    static function inputQbAmount($chatId, $amount, $messageId)
-    {
         if (!preg_match('/^\d+(\.\d{1,2})?$/', $amount)) {
             return [
                 'chat_id' => $chatId,