fix a stupid bug
This commit is contained in:
@ -99,6 +99,7 @@ class SessionClass {
|
|||||||
std::stack<std::pair<std::string, int>> login_stack;
|
std::stack<std::pair<std::string, int>> login_stack;
|
||||||
std::string SessionToken;
|
std::string SessionToken;
|
||||||
std::string OuthorizationKey;
|
std::string OuthorizationKey;
|
||||||
|
SessionClass() = default;
|
||||||
SessionClass(std::string _SessionToken, std::string _OuthorizationKey)
|
SessionClass(std::string _SessionToken, std::string _OuthorizationKey)
|
||||||
: SessionToken(_SessionToken), OuthorizationKey(_OuthorizationKey) {}
|
: SessionToken(_SessionToken), OuthorizationKey(_OuthorizationKey) {}
|
||||||
};
|
};
|
||||||
|
@ -103,8 +103,7 @@ void BookStoreMain(bool is_server, std::string config_dir) {
|
|||||||
}
|
}
|
||||||
std::getline(std::cin, cmd);
|
std::getline(std::cin, cmd);
|
||||||
auto ret = std::move(
|
auto ret = std::move(
|
||||||
engine.ExecuteRegister(cmd,
|
engine.Execute(cmd, session_map[session_token].login_stack));
|
||||||
session_map[session_token].login_stack));
|
|
||||||
std::cout << session_token << ' ' << operation_token << " "
|
std::cout << session_token << ' ' << operation_token << " "
|
||||||
<< ret.size() << std::endl;
|
<< ret.size() << std::endl;
|
||||||
for (auto &line : ret) std::cout << line << std::endl;
|
for (auto &line : ret) std::cout << line << std::endl;
|
||||||
|
Reference in New Issue
Block a user