Ken 3 zile în urmă
părinte
comite
df03c3e114
1 a modificat fișierele cu 16 adăugiri și 0 ștergeri
  1. 16 0
      app/Services/WithdrawService.php

+ 16 - 0
app/Services/WithdrawService.php

@@ -354,6 +354,22 @@ class WithdrawService
 
     public static function done($chatId, $messageId, $firstName)
     {
+        $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,
+            ];
+        }
+
+
         $serviceCharge = (new WithdrawService())->serviceCharge;
         $amount = Cache::get("{$chatId}_WITHDRAW_MONEY", '');
         $address = Cache::get("{$chatId}_WITHDRAW_ADDRESS", '');