|
|
@ -343,9 +343,12 @@ public class UserLoginServiceImpl extends ServiceImpl<UserLoginDao, UserEntity> |
|
|
|
System.out.println(line); //这里需要使用fastjson来提取一下内容
|
|
|
|
System.out.println(line); //这里需要使用fastjson来提取一下内容
|
|
|
|
JSONObject jsonObject= JSON.parseObject(line); |
|
|
|
JSONObject jsonObject= JSON.parseObject(line); |
|
|
|
Login login=new Login(); |
|
|
|
Login login=new Login(); |
|
|
|
|
|
|
|
System.out.println("jsonObject====================="+jsonObject); |
|
|
|
|
|
|
|
System.out.println("unionId==================="+jsonObject.getString("unionid")); |
|
|
|
login.setOpenid(jsonObject.getString("openid")); |
|
|
|
login.setOpenid(jsonObject.getString("openid")); |
|
|
|
login.setSession_key(jsonObject.getString("session_key")); |
|
|
|
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()); |
|
|
|
System.out.println(result.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|