mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 16:20:43 +08:00
处理小程序登录问题
This commit is contained in:
@@ -97,9 +97,9 @@ public class LoginServiceImpl implements ILoginService {
|
||||
|
||||
try {
|
||||
WxMaJscode2SessionResult sessionResult = wxMaService.getUserService().getSessionInfo(code);
|
||||
String openId = sessionResult.getOpenid();
|
||||
String openId = sessionResult.getOpenid();
|
||||
String uniId = sessionResult.getUnionid();
|
||||
String unionId = uniId == null ? "" : uniId;
|
||||
String unionId = uniId == null ? "0" : uniId;
|
||||
|
||||
UserAuth userAuth = userAuthMapper.selectOne(new QueryWrapper<UserAuth>()
|
||||
.eq("client", client)
|
||||
|
||||
Reference in New Issue
Block a user