wushunjie
杜函宇 8 months ago
commit 0cb1e24d69

@ -85,14 +85,14 @@ public class ChiefController {
JSONObject jsonObj = JSONUtil.parseObj(response.body());
ThirdUserInfoResponse res = JSONUtil.toBean(jsonObj.get("data").toString(), ThirdUserInfoResponse.class);
//政务通获取用户信息接口(可选)
String getInfo = getAllInfo+"?id=" + res.getUserId() + "&appkey=" + appkey;
String getInfo = getAllInfo + "?id=" + res.getUserId() + "&appkey=" + appkey;
HttpResponse getMain = HttpRequest.get(getInfo).execute();
if (getMain.getStatus() == 200) {
JSONObject dataJson = JSONUtil.parseObj(getMain.body());
ChiefResponse bean = JSONUtil.toBean(dataJson, ChiefResponse.class);
//判断几个政务端用户,等待商量结果
//lj 102 其他是100 //要给dept部门id
bean.setToken(singleLoginService.singleLogin(bean.getAccountName(),bean.getName(),null,"02",bean.getMobile()));
bean.setToken(singleLoginService.singleLogin(bean.getAccountName(), bean.getName(), null, "02", bean.getMobile()));
return AjaxResult.success(bean);
} else {
throw new ServiceException("登陆失败");

@ -76,7 +76,7 @@ public class SingleLoginController {
@GetMapping("/login")
public void login(HttpServletResponse response) throws IOException {
//变成参数模式,appid 用于校验提交的来源地址,生产环境会校验,试用环境暂不校验
String scUrl = "clientUrl=" + URLEncoder.encode(returnUrl, "UTF-8") + "?appid=b40b40e3-f188-4e00-b67a-6ec5701ce02b";
String scUrl = "clientUrl=" + URLEncoder.encode(returnUrl, "UTF-8") + "?appid=BwAWS8uh";
//加密后的客户端地址
scUrl = Base64.getEncoder().encodeToString(scUrl.getBytes());
//最终跳转地址

@ -65,4 +65,27 @@ spring:
returnUrl: http://39.101.188.84:9999/demo/JinJiHu
#returnUrl: http://192.168.0.114:80
#定时任务更新企业信息和联系人的开启
isTiming: false
isTiming: false
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 9040
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数默认为100
accept-count: 1000
threads:
# tomcat最大线程数默认为200
max: 800
# Tomcat启动初始化的线程数默认值10
min-spare: 100
#企业端单点登陆url
url: http://114.216.202.175:8008/api/usercenter/User/ssoLogin
#企业端用户信息url
infoUrl: http://114.216.202.175:8008/api/usercenter/User/getInfo

@ -112,4 +112,9 @@ spring:
#自己客户端地址
returnUrl: https://idp.sipac.gov.cn/bms
#定时任务更新企业信息和联系人的开启
isTiming: true
isTiming: true
#企业端单点登陆url
url: https://qytt.sipac.gov.cn/api/usercenter/User/ssoLogin
#企业端用户信息url
infoUrl: https://qytt.sipac.gov.cn/api/usercenter/User/getInfo

@ -13,24 +13,6 @@ ruoyi:
# 验证码类型 math 数字计算 char 字符验证
captchaType: math
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 9041
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数默认为100
accept-count: 1000
threads:
# tomcat最大线程数默认为200
max: 800
# Tomcat启动初始化的线程数默认值10
min-spare: 100
# 日志配置
logging:
level:
@ -126,10 +108,6 @@ xss:
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
#企业端单点登陆url
url: https://qytt.sipac.gov.cn/api/usercenter/User/ssoLogin
#企业端用户信息url
infoUrl: https://qytt.sipac.gov.cn/api/usercenter/User/getInfo
#企业端退出登录url
logoutUrl: https://qytt.sipac.gov.cn/api/usercenter/User/ssoLogOut
#政务端clientId
@ -144,6 +122,7 @@ getInfoId: https://qyt.sipac.gov.cn/enterprise-gateway/sipsg-enterprise/sys/thir
getAllInfo: http://uid.sipac.gov.cn/open/api/identity/data/FindUserById
#法人库-企业联络人员(统一社会信用代码)和法人库-法人基本信息(统一社会信用代码)生产环境
enterpriseUrl: http://172.21.10.46/api/invoke
#自己客户端地址
returnUrl: https://idp.sipac.gov.cn/bms

Loading…
Cancel
Save