|
|
|
@@ -243,13 +243,13 @@ public class WxUserGrantController extends BaseController { |
|
|
|
public ResultData checkUserStatus() { |
|
|
|
Map resultMap = new HashMap(); |
|
|
|
WxCUser user = getUser(); |
|
|
|
if (!StringUtils.isBlank(user.getUnionId())) { |
|
|
|
resultMap.put("unionId", user.getUnionId()); |
|
|
|
if (!StringUtils.isBlank(user.getNickName())) { |
|
|
|
resultMap.put("nickName", user.getNickName()); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(user.getNickName())) { |
|
|
|
logger.warn("用户昵称未授权,跳转到用户授权页!"); |
|
|
|
return new ResultData(ErrorCode.NICK_NAME_NOT_FOUND.getCode(), "用户昵称未授权,请跳转到用户昵称授权页!", resultMap); |
|
|
|
} |
|
|
|
//if (StringUtils.isBlank(user.getUnionId())) { |
|
|
|
// logger.warn("用户昵称未授权,跳转到用户授权页!"); |
|
|
|
// return new ResultData(ErrorCode.NICK_NAME_NOT_FOUND.getCode(), "用户昵称未授权,请跳转到用户昵称授权页!", resultMap); |
|
|
|
//} |
|
|
|
return new ResultData(Result.SUCCESS, "是老用户,已完成所有授权", resultMap); |
|
|
|
} |
|
|
|
|
|
|
|
|