@tmsfe/tms-core 0.0.115 → 0.0.117

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 +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
package/src/request.js CHANGED
@@ -319,9 +319,11 @@ export default class Request {
319
319
  return;
320
320
  }
321
321
 
322
+ // 打车、代驾日志不截断,方便用于回放
323
+ const fullApi = path.indexOf('/takecar/') !== -1 || path.indexOf('dd/api/v2/order') !== -1;
324
+
322
325
  let result = JSON.stringify(res);
323
- // 打车日志不截断,方便用于回放
324
- if (isSuccess && path.indexOf('/takecar/') === -1 && result.length > 500) {
326
+ if (isSuccess && !fullApi && result.length > 500) {
325
327
  result = `${result.substring(0, 500)} 内容太长被截断`;
326
328
  }
327
329