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::string SessionToken;
|
||||
std::string OuthorizationKey;
|
||||
SessionClass() = default;
|
||||
SessionClass(std::string _SessionToken, std::string _OuthorizationKey)
|
||||
: SessionToken(_SessionToken), OuthorizationKey(_OuthorizationKey) {}
|
||||
};
|
||||
|
@ -103,8 +103,7 @@ void BookStoreMain(bool is_server, std::string config_dir) {
|
||||
}
|
||||
std::getline(std::cin, cmd);
|
||||
auto ret = std::move(
|
||||
engine.ExecuteRegister(cmd,
|
||||
session_map[session_token].login_stack));
|
||||
engine.Execute(cmd, session_map[session_token].login_stack));
|
||||
std::cout << session_token << ' ' << operation_token << " "
|
||||
<< ret.size() << std::endl;
|
||||
for (auto &line : ret) std::cout << line << std::endl;
|
||||
|
Reference in New Issue
Block a user