Ken il y a 8 heures
Parent
commit
4a4cbb3965
2 fichiers modifiés avec 3 ajouts et 14 suppressions
  1. 0 2
      app/Models/Bank.php
  2. 3 12
      app/Services/QianBaoWithdrawService.php

+ 0 - 2
app/Models/Bank.php

@@ -1,13 +1,11 @@
 <?php
 
-
 namespace App\Models;
 
 use Illuminate\Database\Eloquent\Builder;
 use Illuminate\Foundation\Auth\User as Authenticatable;
 use Illuminate\Notifications\Notifiable;
 use Laravel\Sanctum\HasApiTokens;
-
 /**
  * Admin
  * @mixin Builder

+ 3 - 12
app/Services/QianBaoWithdrawService.php

@@ -574,35 +574,26 @@ class QianBaoWithdrawService
     }
 
     //输入姓名,并保存到数据库
-    private static function inputAccount($chatId, $account, $messageId)
+    private static function inputAccount($chatId, $account, $messageId): array
     {
-
         Cache::put("{$chatId}_QB_ACCOUNT", $account);
         Cache::put(get_step_key($chatId), StepStatus::QB_INPUT_ALIAS);
         $channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
         $text = "请输入别名";
         switch ($channel) {
-            case "DF001":
-                $text = "请输入账号别名";
-                break;
-            case "DF002":
-                $text = "请输入别名";
-                break;
             case "DF005":
+            case "DF001":
                 $text = "请输入账号别名";
                 break;
         }
-
         return [
             'chat_id' => $chatId,
             'text' => $text,
             'message_id' => $messageId,
         ];
-
-
     }
 
-    private static function inputAliAs($chatId, $alias, $messageId)
+    private static function inputAliAs($chatId, $alias, $messageId):array
     {
         $channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
         $cardNo = Cache::get("{$chatId}_QB_WITHDRAW_CARD_NO");