Ken 1 month ago
parent
commit
147b1a8445
1 changed files with 18 additions and 0 deletions
  1. 18 0
      app/Services/QianBaoWithdrawService.php

+ 18 - 0
app/Services/QianBaoWithdrawService.php

@@ -408,6 +408,24 @@ class QianBaoWithdrawService
 
     private static function confirm($chatId, $messageId)
     {
+        $serviceAccount = Config::where('field', 'service_customer')->first()->val;
+        $activityUser = ActivityUserService::findOne([
+            'member_id' => $chatId,
+            'status' => 0
+        ]);
+        if ($activityUser) {
+            $text = lang("您有未完成的活动") . "\n";
+            $text .= lang("任何疑问都可以联系唯一客服") . ":@{$serviceAccount}";
+            return [
+                'chat_id' => $chatId,
+                'text' => $text,
+                'message_id' => $messageId,
+            ];
+        }
+
+
+
+
         $id = Cache::get("{$chatId}_QB_BANK_ID");
         $bank = Bank::where('id', $id)->first();
         $amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY");