diff --git a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java index e178d779..da918f7e 100644 --- a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java +++ b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java @@ -343,9 +343,12 @@ public class UserLoginServiceImpl extends ServiceImpl System.out.println(line); //这里需要使用fastjson来提取一下内容 JSONObject jsonObject= JSON.parseObject(line); Login login=new Login(); + System.out.println("jsonObject====================="+jsonObject); + System.out.println("unionId==================="+jsonObject.getString("unionid")); login.setOpenid(jsonObject.getString("openid")); login.setSession_key(jsonObject.getString("session_key")); - result.append(login.getOpenid()); + login.setUnionid(jsonObject.getString("unionid")); + result.append(login.getUnionid()); System.out.println(result.toString()); } } catch (IOException e) { diff --git a/dq-framework-model/src/main/java/com/daqing/framework/domain/hrms/Login.java b/dq-framework-model/src/main/java/com/daqing/framework/domain/hrms/Login.java index 50f9d581..3509a3a6 100644 --- a/dq-framework-model/src/main/java/com/daqing/framework/domain/hrms/Login.java +++ b/dq-framework-model/src/main/java/com/daqing/framework/domain/hrms/Login.java @@ -28,4 +28,6 @@ public class Login implements Serializable { private String session_key; + private String unionid; + }