修复了主要问题

This commit is contained in:
2023-12-15 10:52:18 +00:00
parent 467e6e2a61
commit 89acc8f025
2 changed files with 13 additions and 7 deletions

View File

@ -65,7 +65,7 @@ void BookStoreMain(bool is_server, std::string config_dir) {
}
if (session_map[session_token].login_stack.empty() ||
session_map[session_token].login_stack.top().first != "root") {
std::cout << session_token << ' ' << operation_token << " -1"
std::cout << session_token << ' ' << operation_token << " 1\nInvalid"
<< std::endl;
std::cout.flush();
continue;