|
|
@ -85,14 +85,14 @@ public class ChiefController {
|
|
|
|
JSONObject jsonObj = JSONUtil.parseObj(response.body());
|
|
|
|
JSONObject jsonObj = JSONUtil.parseObj(response.body());
|
|
|
|
ThirdUserInfoResponse res = JSONUtil.toBean(jsonObj.get("data").toString(), ThirdUserInfoResponse.class);
|
|
|
|
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();
|
|
|
|
HttpResponse getMain = HttpRequest.get(getInfo).execute();
|
|
|
|
if (getMain.getStatus() == 200) {
|
|
|
|
if (getMain.getStatus() == 200) {
|
|
|
|
JSONObject dataJson = JSONUtil.parseObj(getMain.body());
|
|
|
|
JSONObject dataJson = JSONUtil.parseObj(getMain.body());
|
|
|
|
ChiefResponse bean = JSONUtil.toBean(dataJson, ChiefResponse.class);
|
|
|
|
ChiefResponse bean = JSONUtil.toBean(dataJson, ChiefResponse.class);
|
|
|
|
//判断几个政务端用户,等待商量结果
|
|
|
|
//判断几个政务端用户,等待商量结果
|
|
|
|
//lj 102 其他是100 //要给dept部门id
|
|
|
|
//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);
|
|
|
|
return AjaxResult.success(bean);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
throw new ServiceException("登陆失败");
|
|
|
|
throw new ServiceException("登陆失败");
|
|
|
|