调整消息推送
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user