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

+ 3 - 2
app/Services/QianBaoWithdrawService.php

@@ -399,10 +399,11 @@ class QianBaoWithdrawService
 
     static function inputCardNo($chatId, $cardNo, $messageId)
     {
-        if (!preg_match('/^\d+$/', $cardNo)) {
+        $channel = Cache::get("{$chatId}_QB_WITHDRAW_CHANNEL");
+        if ($channel === 'DF001' && !preg_match('/^\d+$/', $cardNo)) {
             return [
                 'chat_id' => $chatId,
-                'text' => "输入有误,请重新输入",
+                'text' => "输入的银行卡号有误,请重新输入",
                 'reply_to_message_id' => $messageId,
             ];
         }