增加后台消息通知管理

This commit is contained in:
mzl
2025-08-21 15:47:05 +08:00
parent 58dc6729d9
commit c1de258ce2
8 changed files with 197 additions and 18 deletions
+10 -1
View File
@@ -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);
}
}