|
|
@@ -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", '');
|