|
|
@@ -160,12 +160,12 @@ function fetchResult (request) {
|
|
|
return resultJson
|
|
|
} else {
|
|
|
if (result.exceptionInfo || result.message) {
|
|
|
- if ((result.exceptionInfo || result.message).length > 80) {
|
|
|
- throw '接口请求异常'
|
|
|
- } else {
|
|
|
+ // if ((result.exceptionInfo || result.message).length > 80) {
|
|
|
+ // throw '接口请求异常'
|
|
|
+ // } else {
|
|
|
throw (result.exceptionInfo || result.message).replace(
|
|
|
/<[\/\!]*[^<>]*>/ig, '')
|
|
|
- }
|
|
|
+ // }
|
|
|
} else {
|
|
|
throw result
|
|
|
}
|
|
|
@@ -173,12 +173,12 @@ function fetchResult (request) {
|
|
|
}).then(result => {
|
|
|
if (result.hasOwnProperty('success') && result.success === false) {
|
|
|
if (result.exceptionInfo || result.message) {
|
|
|
- if ((result.exceptionInfo || result.message).length > 80) {
|
|
|
- throw '接口请求异常'
|
|
|
- } else {
|
|
|
+ // if ((result.exceptionInfo || result.message).length > 80) {
|
|
|
+ // throw '接口请求异常'
|
|
|
+ // } else {
|
|
|
throw (result.exceptionInfo || result.message).replace(
|
|
|
/<[\/\!]*[^<>]*>/ig, '')
|
|
|
- }
|
|
|
+ // }
|
|
|
} else {
|
|
|
throw result
|
|
|
}
|