|
|
@@ -37,6 +37,7 @@ export default class HttpSystem {
|
|
|
* @param async 是否异步请求
|
|
|
*/
|
|
|
public sendRequest(url, method: string = 'POST', data: string = null, isRsa: boolean = true, async = true) {
|
|
|
+ mk.console.logSingle("request:" + url, data)
|
|
|
url = gData.httpData.getServerUrl() + url;
|
|
|
return new Promise<any>((resolve: (data: any) => void, reject) => {
|
|
|
let requesttimes = 0;
|
|
|
@@ -56,7 +57,7 @@ export default class HttpSystem {
|
|
|
if (httpRequest.status === 200) {
|
|
|
var responseStr = httpRequest.responseText;
|
|
|
let response = JSON.parse(responseStr);
|
|
|
- mk.console.log('httpResponse', url, response);
|
|
|
+ mk.console.logSingle("response:", response)
|
|
|
resolve(response);
|
|
|
}
|
|
|
else {
|