Commit f2eb937f authored by Hsinli's avatar Hsinli

addd

parent f9f2e306
......@@ -295,7 +295,12 @@ class CommonService extends Service {
timestamp: timestamp,
sign: md5(this.config.SHUHEMOFANG_APP_KEY + this.config.SHUHEMOFANG_APP_SECRET + timestamp),
}
let resp = await this.helper.send_request(this.config.SHUHEMOFANG_URL, params, { method: 'POST' });
let url = this.config.SHUHEMOFANG_URL + '?';
for (let i in params) {
url += i + '=' + a[i] + '&';
}
url = url.substring(0, url.Length - 1);
let resp = await this.helper.send_request(url, [], { method: 'GET' });
ctx.logger.info({ resp: JSON.stringify(resp) });
return resp.data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment