|
|
|
@ -96,12 +96,13 @@ public class AutonomousSqServiceImpl implements AutonomousSqService { |
|
|
|
|
return AjaxResult.success("未查询到该流水号相关信息,请确认后输入"); |
|
|
|
|
} |
|
|
|
|
if ("F000".equals(invoiceAllLoginResult.getCode())) { |
|
|
|
|
String[] splitResult = invoiceAllLoginResult.getMsg().split(":"); |
|
|
|
|
if (StringUtils.isNotBlank(splitResult[1])){ |
|
|
|
|
return AjaxResult.error(splitResult[1]); |
|
|
|
|
}else { |
|
|
|
|
return AjaxResult.error(splitResult[0]); |
|
|
|
|
} |
|
|
|
|
// String[] splitResult = invoiceAllLoginResult.getMsg().split(":");
|
|
|
|
|
// if (StringUtils.isNotBlank(splitResult[1])){
|
|
|
|
|
// return AjaxResult.error(splitResult[1]);
|
|
|
|
|
// }else {
|
|
|
|
|
// return AjaxResult.error(splitResult[0]);
|
|
|
|
|
// }
|
|
|
|
|
return AjaxResult.error(invoiceAllLoginResult.getMsg()); |
|
|
|
|
} else if ("S000".equals(invoiceAllLoginResult.getCode())) { |
|
|
|
|
return AjaxResult.success("10012"); |
|
|
|
|
} else if ("SMS".equals(invoiceAllLoginResult.getCode())){ |
|
|
|
@ -219,9 +220,9 @@ public class AutonomousSqServiceImpl implements AutonomousSqService { |
|
|
|
|
// 回调地址
|
|
|
|
|
inoviceAllQdLoginDTO.setLoginType("1"); |
|
|
|
|
inoviceAllQdLoginDTO.setCallback("http://dev.goldentaxcloud.com:8081/api/invoice_all/v1/autonomousAuthorization"); |
|
|
|
|
log.info("全电登录接口,请求上游,地址:{},参数:{}", "http://221.222.184.98:8880/login/getLogin2", JSONUtil.toJsonStr(inoviceAllQdLoginDTO)); |
|
|
|
|
log.info("全电登录接口,请求上游,地址:{},参数:{}", "http://zzsq.jcsk100.com/login/getLogin2", JSONUtil.toJsonStr(inoviceAllQdLoginDTO)); |
|
|
|
|
Thread requestThread = new Thread(() -> { |
|
|
|
|
HttpUtils.sendJsonPost("http://221.222.184.98:8880/login/getLogin2", inoviceAllQdLoginDTO); |
|
|
|
|
HttpUtils.sendJsonPost("http://zzsq.jcsk100.com/login/getLogin2", inoviceAllQdLoginDTO); |
|
|
|
|
}); |
|
|
|
|
requestThread.start(); |
|
|
|
|
// 用户信息封装
|
|
|
|
@ -239,7 +240,7 @@ public class AutonomousSqServiceImpl implements AutonomousSqService { |
|
|
|
|
invoiceAllApiLog.setCreateTime(new Date()); |
|
|
|
|
invoiceAllApiLog.setCompany(companyservice.getSellertax()); |
|
|
|
|
invoiceAllApiLog.setIdentityId(companyservice.getIdentity()); |
|
|
|
|
invoiceAllApiLog.setUrl("http://221.222.184.98:8880/login/getLogin2"); |
|
|
|
|
invoiceAllApiLog.setUrl("http://zzsq.jcsk100.com/login/getLogin2"); |
|
|
|
|
invoiceAllApiLog.setSendMsg(JSONUtil.toJsonStr(inoviceAllQdLoginDTO)); |
|
|
|
|
invoiceAllApiLog.setRequestId(qqlsh); |
|
|
|
|
allApiLogMapper.insert(invoiceAllApiLog); |
|
|
|
|