恢复用户卡片私信查看

This commit is contained in:
pllx
2026-05-09 11:25:28 +08:00
parent 8c1b0b0840
commit da0846c7ab
3 changed files with 73 additions and 15 deletions
@@ -457,8 +457,9 @@ class AdminCommandController extends Controller
abort(403, '仅站长可查看私信');
}
// 查询最近 50 条悄悄话(发送或接收)
// 查询最近 50 条用户之间的悄悄话,系统发给用户的私信通知不展示到管理查看里。
$messages = Message::where('is_secret', true)
->where('from_user', 'not like', '系统%')
->where(function ($q) use ($username) {
$q->where('from_user', $username)
->orWhere('to_user', $username);