From 8b6804b8889e9a90e0c398c699d173a1a34e0a78 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Fri, 29 Jan 2021 14:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=BF=94=E5=9B=9EunionId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial/hrauth/service/impl/UserLoginServiceImpl.java | 5 ++++- .../main/java/com/daqing/framework/domain/hrms/Login.java | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; + }