@tmsfe/tms-core 0.0.156 → 0.0.157

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.156",
3
+ "version": "0.0.157",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -166,8 +166,14 @@ const eccUtil = {
166
166
  }
167
167
  case 11307: // 加密未开启
168
168
  return { retry: false, success: false };
169
- default:
169
+ case 11301:
170
+ case 11302:
171
+ case 11303:
172
+ case 11304:
173
+ case 11308:
170
174
  return { retry: false, success: false };
175
+ default: // 其他网关错误码
176
+ return { retry: false, success: true };
171
177
  }
172
178
  },
173
179
  execEncrypt: (input: string, ignoreNull = false): BaseResp<{
@@ -87,7 +87,8 @@ function proxyWxRequest(): void {
87
87
  return;
88
88
  }
89
89
  // 加密请求数据
90
- const { data: formatData, header: formatHeader, msg, cryptoKeyInfo } = util.reqEncrypt({ url, method, data, header });
90
+ const { data: formatData, header: formatHeader, msg, cryptoKeyInfo } = util
91
+ .reqEncrypt({ url, method, data, header });
91
92
  if (!cryptoKeyInfo) {
92
93
  // 如果没有加密信息,则不走加密
93
94
  util.logInfo(url, traceparent, msg);
@@ -103,8 +104,9 @@ function proxyWxRequest(): void {
103
104
  }
104
105
 
105
106
  let completeResolver;
106
- const completePromp = new Promise(resolve => { completeResolver = resolve; });
107
-
107
+ const completePromp = new Promise((resolve) => {
108
+ completeResolver = resolve;
109
+ });
108
110
  originalRequestApi.call(this, {
109
111
  ...originalOptions,
110
112
  data: formatData,