增加后台消息通知管理
This commit is contained in:
@@ -122,6 +122,15 @@ class IndexController
|
||||
// // 异步推送
|
||||
// \Webman\RedisQueue\Redis::send('notice', $data);
|
||||
|
||||
return json($data);
|
||||
// return json($data);
|
||||
|
||||
$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;
|
||||
|
||||
return json($user);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user