|
@@ -408,6 +408,24 @@ class QianBaoWithdrawService
|
|
|
|
|
|
|
|
private static function confirm($chatId, $messageId)
|
|
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");
|
|
$id = Cache::get("{$chatId}_QB_BANK_ID");
|
|
|
$bank = Bank::where('id', $id)->first();
|
|
$bank = Bank::where('id', $id)->first();
|
|
|
$amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY");
|
|
$amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY");
|