mirror of
https://github.com/easychen/pushdeer.git
synced 2025-02-23 00:14:56 +08:00
添加用户禁用逻辑
This commit is contained in:
parent
034e93d3c7
commit
c706d83e2f
@ -71,7 +71,10 @@ class PushDeerMessageController extends Controller
|
|||||||
|
|
||||||
foreach ($keys as $thekey) {
|
foreach ($keys as $thekey) {
|
||||||
$key = PushDeerKey::where('key', $thekey)->get()->first();
|
$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) {
|
if ($key) {
|
||||||
$readkey = Str::random(32);
|
$readkey = Str::random(32);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user