@@ -18,8 +18,8 @@ namespace KeyAuth {
18
18
std::string name, ownerid, version, url, path;
19
19
static bool debug;
20
20
21
- api (std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debug = true ) {
22
- debug = debug;
21
+ api (std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debugParameter = true ) {
22
+ setDebug (debugParameter);
23
23
}
24
24
25
25
void ban (std::string reason = " " );
@@ -107,7 +107,9 @@ namespace KeyAuth {
107
107
108
108
static std::string req (std::string data, std::string url);
109
109
110
- static void debugInfo (std::string data, std::string url, std::string response, std::string headers);
110
+ void debugInfo (std::string data, std::string url, std::string response, std::string headers);
111
+
112
+ static void setDebug (bool value);
111
113
112
114
113
115
void load_user_data (nlohmann::json data) {
@@ -136,8 +138,10 @@ namespace KeyAuth {
136
138
api::app_data.numKeys = data[XorStr (" numKeys" )];
137
139
api::app_data.version = data[XorStr (" version" )];
138
140
api::app_data.customerPanelLink = data[XorStr (" customerPanelLink" )];
141
+ std::cout << data;
142
+ // api::app_data.downloadLink = data[XorStr("download")];
139
143
}
140
-
144
+
141
145
void load_response_data (nlohmann::json data) {
142
146
api::response.success = data[XorStr (" success" )];
143
147
api::response.message = data[" message" ];
0 commit comments