调整消息推送

This commit is contained in:
mzl
2025-08-22 16:27:50 +08:00
parent 5dc515f712
commit 8b91924d1a
5 changed files with 158 additions and 88 deletions
+14 -8
View File
@@ -116,21 +116,27 @@ class IndexController
// 'recipient' => [1],
// ];
$data['recipient'] = [1, 74];
// // 同步推送
// (new MessageNotificationsService())->pushNotice($data);
// // 异步推送
// \Webman\RedisQueue\Redis::send('notice', $data);
// 异步推送
\Webman\RedisQueue\Redis::send('notice', $data);
return 'success';
// return json($data);
$phone = '';
$email = '';
// $phone = '';
// $email = '';
$userByPhone = User::where('corp_id', 2)->where('phone', $phone)->where('phone', '!=', '')->first();
$userByEmail = User::where('corp_id', 2)->where('email', $email)->where('email', '!=', '')->first();
$user = $userByPhone ?: $userByEmail;
// $userByPhone = User::where('corp_id', 2)->where('phone', $phone)->where('phone', '!=', '')->first();
// $userByEmail = User::where('corp_id', 2)->where('email', $email)->where('email', '!=', '')->first();
// $user = $userByPhone ?: $userByEmail;
return json($user);
// return json($user);
}
}