|
@@ -133,17 +133,17 @@ function fetchResult (request) {
|
|
|
return resultJson
|
|
return resultJson
|
|
|
} else {
|
|
} else {
|
|
|
if (result.exceptionInfo) {
|
|
if (result.exceptionInfo) {
|
|
|
- if (result.exceptionInfo.length > 80) {
|
|
|
|
|
- throw '接口请求异常'
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ // if (result.exceptionInfo.length > 80) {
|
|
|
|
|
+ // throw '接口请求异常'
|
|
|
|
|
+ // } else {
|
|
|
throw result.exceptionInfo.replace(/<[\/\!]*[^<>]*>/ig, '')
|
|
throw result.exceptionInfo.replace(/<[\/\!]*[^<>]*>/ig, '')
|
|
|
- }
|
|
|
|
|
|
|
+ // }
|
|
|
} else if (result.message) {
|
|
} else if (result.message) {
|
|
|
- if (result.message.length > 80) {
|
|
|
|
|
- throw '接口请求异常'
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ // if (result.message.length > 80) {
|
|
|
|
|
+ // throw '接口请求异常'
|
|
|
|
|
+ // } else {
|
|
|
throw result.message.replace(/<[\/\!]*[^<>]*>/ig, '')
|
|
throw result.message.replace(/<[\/\!]*[^<>]*>/ig, '')
|
|
|
- }
|
|
|
|
|
|
|
+ // }
|
|
|
} else {
|
|
} else {
|
|
|
throw result
|
|
throw result
|
|
|
}
|
|
}
|