@cc-component/cc-core 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -163,7 +163,9 @@ export class HttpManager {
|
|
|
163
163
|
let url: string = r[0];
|
|
164
164
|
let key: string = r[1];
|
|
165
165
|
let pss: string = r[2];
|
|
166
|
-
|
|
166
|
+
if (method == HttpMethod.POST) {
|
|
167
|
+
pss = JSON.stringify(params);
|
|
168
|
+
}
|
|
167
169
|
let hrd = urls.get(key);
|
|
168
170
|
if (hrd && hrd.pss == pss) {
|
|
169
171
|
Logger.warn(`地址【${key}】已正在请求中,不能重复请求`);
|
|
@@ -196,7 +198,7 @@ export class HttpManager {
|
|
|
196
198
|
resolve(ret);
|
|
197
199
|
}
|
|
198
200
|
xhr.onloadend = (ev: ProgressEvent) => {
|
|
199
|
-
if (xhr.status == 500) {
|
|
201
|
+
if (xhr.status == 500 || xhr.status > 500) {
|
|
200
202
|
urls.delete(key);
|
|
201
203
|
|
|
202
204
|
ret.isSucc = false;
|