@tmsfe/tms-core 0.0.208 → 0.0.209
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.
- package/package.json +1 -1
- package/src/request.js +1 -1
package/package.json
CHANGED
package/src/request.js
CHANGED
|
@@ -421,7 +421,7 @@ export default class Request {
|
|
|
421
421
|
// X-Gateway-Code必须首字母大写,否则真机取不到
|
|
422
422
|
const gatewayCode = res?.header?.['X-Gateway-Code'];
|
|
423
423
|
// 判断网关框架码重试白名单
|
|
424
|
-
const isGwCodeRetryPathWhite = requestRetryFlag?.gwCodeReTryPath.includes(path);
|
|
424
|
+
const isGwCodeRetryPathWhite = (requestRetryFlag?.gwCodeReTryPath || []).includes(path);
|
|
425
425
|
if (isGwCodeRetryPathWhite && isGatewayCodeNeedRetry(gatewayCode)) {
|
|
426
426
|
return await this.handleReTry(path, param, method, header, {
|
|
427
427
|
reportMsg: {
|