|
|
@@ -226,12 +226,15 @@ function QLTools(url, clientId, clientSecret) {
|
|
|
},
|
|
|
body: body,
|
|
|
};
|
|
|
+ this.log(auth);
|
|
|
+ this.log(url);
|
|
|
return new Promise(resolve => {
|
|
|
- let func = this['reqType'];
|
|
|
+ let func = this[reqType];
|
|
|
if(!func){
|
|
|
resolve();
|
|
|
return;
|
|
|
}
|
|
|
+ this.log("#############");
|
|
|
func.call(this, options, async (error, response, data) => {
|
|
|
try {
|
|
|
let result = JSON.parse(data);
|