diff --git a/src/core/helpers/api.js b/src/core/helpers/api.js index 0c0e7fba12084183e745f886461bf324cb24ec40..9b7a2a8b2afbdcc8d64f28e1ac8e242198170a10 100644 --- a/src/core/helpers/api.js +++ b/src/core/helpers/api.js @@ -164,7 +164,7 @@ function createApiCallback (apiName, params = {}, extras = {}) { } else if (res.errMsg.indexOf(':cancel') !== -1) { res.errMsg = apiName + ':cancel' } else if (res.errMsg.indexOf(':fail') !== -1) { - res.errMsg = apiName + ':fail' + res.errMsg = apiName + ':fail' + res.errMsg.substr(res.errMsg.indexOf(' ')) } const errMsg = res.errMsg diff --git a/src/platforms/app-plus/service/api/network/request.js b/src/platforms/app-plus/service/api/network/request.js index 7e3936a2bc704464b94ce3fa40e4b6a098dc2812..4aa4c1369a76b795173fc976636a18d617be1ffd 100644 --- a/src/platforms/app-plus/service/api/network/request.js +++ b/src/platforms/app-plus/service/api/network/request.js @@ -102,7 +102,7 @@ export function createRequestTaskById (requestTaskId, { requestTaskId, state: 'fail', statusCode, - errMsg: 'abort' + errMsg: 'abort statusCode:' + statusCode }) } })