@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/request.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.208",
3
+ "version": "0.0.209",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
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: {