Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

普通用户和管理员用户是否有区别? #35

Open
ZherKing opened this issue Jul 20, 2024 · 1 comment
Open

普通用户和管理员用户是否有区别? #35

ZherKing opened this issue Jul 20, 2024 · 1 comment

Comments

@ZherKing
Copy link

在进行MC服务器测试中(MOD很多)
普通用户的无法正常进入游戏 一直显示连接中断
而管理员用户却没事 尝试加大了普通用户的带宽也是一样的结果
请问这是怎么回事?两个组之间有什么区别

@ZherKing
Copy link
Author

ZherKing commented Jul 20, 2024

在api那边发现的 我将 max-in&out 改得和admin一样的值还是会卡

						if($uinfo) {
							if($uinfo['group'] == "admin") {
								Utils::sendJson(Array(
									'status' => 200,
									'max-in' => 1000000,
									'max-out' => 1000000
								));
							}
							$group = Database::escape($uinfo['group']);
							$gs    = Database::querySingleLine("groups", ["name" => $group]);
							if($gs) {
								Utils::sendJson(Array(
									'status' => 200,
									'max-in' => Floatval($gs['inbound']),
									'max-out' => Floatval($gs['outbound'])
								));
							} else {
								Utils::sendJson(Array(
									'status' => 200,
									'max-in' => 1024,
									'max-out' => 1024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant