添加用户禁用逻辑

This commit is contained in:
Easy 2022-06-27 00:33:35 +08:00
parent 034e93d3c7
commit c706d83e2f

View File

@ -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);