用户信息bug
This commit is contained in:
@@ -37,7 +37,7 @@ public class AccountCheckServiceImpl implements AccountCheckService {
|
||||
String result = HttpUtils.doPost(WX_OPENID_URL, param);
|
||||
String openid = (String) JsonUtils.decode(result,Map.class).get("openid");
|
||||
String uid = userMapper.getUserByOpenid(openid);
|
||||
if (StringUtils.isEmpty(uid) && StringUtils.isEmpty(openid)){
|
||||
if (StringUtils.isEmpty(uid) && !StringUtils.isEmpty(openid)){
|
||||
// 没有这个用户,需要构建用户对象
|
||||
User user = new User();
|
||||
uid = QuinnUtils.getUuid();
|
||||
|
||||
Reference in New Issue
Block a user