@tmsfe/tms-core 0.0.143 → 0.0.144

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/encrypt.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.143",
3
+ "version": "0.0.144",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
package/src/encrypt.js CHANGED
@@ -263,9 +263,10 @@ function needsEncryption(url, params) {
263
263
  return false; // 匹配到规则,不需要加密
264
264
  }
265
265
  }
266
+ return true; // 此域名下,默认需要加密
266
267
  }
267
268
 
268
- return true; // 没有匹配到规则,需要加密
269
+ return false; // 没有匹配到规则,不需要加密
269
270
  }
270
271
 
271
272
  // 判断是否是加密相关的错误类型(因为rawresponse的配置,需要errcode和errmessage共同来确定加密错误类型)