发票接口提示优化

This commit is contained in:
zengweihai 2024-11-30 18:04:12 +08:00
parent ad989848b3
commit 0957ee72be
1 changed files with 8 additions and 0 deletions

View File

@ -749,6 +749,8 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
JSONObject jsonObject = JSONObject.parseObject(linkPostjson); JSONObject jsonObject = JSONObject.parseObject(linkPostjson);
token = jsonObject.getString("id"); token = jsonObject.getString("id");
logger.info("获取OaToken接口返回id"+token); logger.info("获取OaToken接口返回id"+token);
}else {
this.getView().showTipNotification("OaToken接口数据异常请联系系统管理员");
} }
return token; return token;
} catch (Exception e) { } catch (Exception e) {
@ -779,6 +781,8 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
if (StringUtils.isNotEmpty(linkPostjson)) { if (StringUtils.isNotEmpty(linkPostjson)) {
JSONObject jsonObject = JSONObject.parseObject(linkPostjson); JSONObject jsonObject = JSONObject.parseObject(linkPostjson);
return jsonObject; return jsonObject;
}else {
this.getView().showTipNotification("parseOCRData接口数据异常请联系系统管理员");
} }
} catch (Exception e) { } catch (Exception e) {
logger.info(String.format("获取parseOCRData接口异常%s", e.getMessage())); logger.info(String.format("获取parseOCRData接口异常%s", e.getMessage()));
@ -808,6 +812,8 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
if (StringUtils.isNotEmpty(linkPostjson)) { if (StringUtils.isNotEmpty(linkPostjson)) {
JSONObject jsonObject = JSONObject.parseObject(linkPostjson); JSONObject jsonObject = JSONObject.parseObject(linkPostjson);
return jsonObject; return jsonObject;
}else {
this.getView().showTipNotification("saveOutInvoice接口数据异常请联系系统管理员");
} }
}catch (Exception e){ }catch (Exception e){
logger.info(String.format("saveOutInvoice接口异常%s", e.getMessage())); logger.info(String.format("saveOutInvoice接口异常%s", e.getMessage()));
@ -831,6 +837,8 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
if (StringUtils.isNotEmpty(linkPostjson)) { if (StringUtils.isNotEmpty(linkPostjson)) {
JSONObject jsonObject = JSONObject.parseObject(linkPostjson); JSONObject jsonObject = JSONObject.parseObject(linkPostjson);
return jsonObject; return jsonObject;
}else {
this.getView().showTipNotification("delInvoice接口数据异常请联系系统管理员");
} }
}catch (Exception e){ }catch (Exception e){
logger.info(String.format("delInvoice接口异常%s", e.getMessage())); logger.info(String.format("delInvoice接口异常%s", e.getMessage()));