mirror of
https://github.com/easychen/pushdeer.git
synced 2025-02-22 16:04:56 +08:00
添加用户禁用逻辑
This commit is contained in:
parent
034e93d3c7
commit
c706d83e2f
@ -71,7 +71,10 @@ class PushDeerMessageController extends Controller
|
||||
|
||||
foreach ($keys as $thekey) {
|
||||
$key = PushDeerKey::where('key', $thekey)->get()->first();
|
||||
|
||||
$user = PushDeerUser::where('id', $key->uid)->get()->first();
|
||||
if ($user->level < 1) {
|
||||
return send_error('此账号已被停用', ErrorCode('ARGS'));
|
||||
}
|
||||
|
||||
if ($key) {
|
||||
$readkey = Str::random(32);
|
||||
|
Loading…
x
Reference in New Issue
Block a user