fix: 终端用户数提示错误

This commit is contained in:
kuaifan 2023-04-24 13:59:52 +08:00
parent 5fb07b7aa7
commit 8186649a9f

View File

@ -576,7 +576,7 @@ class SystemController extends AbstractController
}
}
}
if ($data['user_count'] > $data['info']['people']) {
if ($data['info']['people'] > 0 && $data['user_count'] > $data['info']['people']) {
$data['error'][] = '终端用户数超过License限制';
}
if ($data['info']['expired_at'] && strtotime($data['info']['expired_at']) <= Base::time()) {