@tmsfe/tms-core 0.0.115 → 0.0.116
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 +4 -2
package/package.json
CHANGED
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
|
|