Ken пре 2 недеља
родитељ
комит
e7b2b40e7c
1 измењених фајлова са 15 додато и 0 уклоњено
  1. 15 0
      app/Services/QianBaoWithdrawService.php

+ 15 - 0
app/Services/QianBaoWithdrawService.php

@@ -136,6 +136,21 @@ class QianBaoWithdrawService
 
     private static function chooseType($chatId, $messageId)
     {
+        $serviceAccount = Config::where('field', 'service_customer')->first()->val;
+        //是否封号
+        $isBanned = UserService::getIsBanned($chatId);
+        if ($isBanned) {
+            $text = lang("账号异常") . "\n";
+            $text .= lang("任何疑问都可以联系唯一客服") . ":@{$serviceAccount}";
+            return [
+                'chat_id' => $chatId,
+                'text' => $text,
+                'message_id' => $messageId,
+            ];
+        }
+
+
+
         $keyboard = [
             [
                 ['text' => lang("USDT"), 'callback_data' => "withdraw@@apply"],