|
|
|
@ -151,19 +151,19 @@ public class AutonomousSqServiceImpl implements AutonomousSqService { |
|
|
|
|
return AjaxResult.error("未查询到该流水号相关信息,请确认后输入"); |
|
|
|
|
} |
|
|
|
|
if ("SMS".equals(invoiceAllLogin.getCode())) { |
|
|
|
|
JSONObject result = new JSONObject(); |
|
|
|
|
try { |
|
|
|
|
// 请求封装
|
|
|
|
|
log.info("自主授权短信提交接口,请求上游地址:{},入参:{}", "http://221.222.184.98:8880/login/submitSms", JSONUtil.toJsonStr(invoiceAllSubmitNoteDTO)); |
|
|
|
|
String sendFormPost = HttpUtils.sendJsonPost("http://221.222.184.98:8880/login/submitSms", invoiceAllSubmitNoteDTO); |
|
|
|
|
log.info("自主授权短信提交接口,请求上游返回结果:{}", sendFormPost); |
|
|
|
|
Thread requestThread = new Thread(() -> { |
|
|
|
|
HttpUtils.sendJsonPost("http://221.222.184.98:8880/login/submitSms", invoiceAllSubmitNoteDTO); |
|
|
|
|
}); |
|
|
|
|
requestThread.start(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
log.error("【金四服务类】【金财数科】【自主授权提交短信验证码】API请求异常,外部报文返回code非S000。错误信息:{}", e.getMessage()); |
|
|
|
|
return AjaxResult.error(ErrorCode.INCOME_ERROR); |
|
|
|
|
} |
|
|
|
|
log.error("自主授权短信提交接口,提交短信成功,结果:{}", result); |
|
|
|
|
return AjaxResult.success(result); |
|
|
|
|
return AjaxResult.success(); |
|
|
|
|
} else { |
|
|
|
|
log.error("自主授权短信提交接口,提交短信失败,失败原因:{}", "登录失败,请重新登录"); |
|
|
|
|
return AjaxResult.error("登录失败,请重新登录"); |
|
|
|
|