|
@@ -388,7 +388,7 @@ public class EmailParseService {
|
|
|
try {
|
|
|
String body = HttpUtil.post(this.pyBaseUrl + api, JSONUtil.toJsonStr(params));
|
|
|
PythonResult<?> result = PythonReportConverter.convert(JSONUtil.parseObj(body), type);
|
|
|
- if (Objects.equals(0, result.getStatus())) {
|
|
|
+ if (!Objects.equals(1, result.getStatus())) {
|
|
|
log.warn("报告{} 解析失败:{}", params, result.getMsg());
|
|
|
return null;
|
|
|
}
|