|
|
|
@@ -33,15 +33,15 @@ public class WxCUserServiceAdapter implements CUserServiceApapter{ |
|
|
|
if ((!StringUtils.isBlank(token))) { |
|
|
|
String[] tokens = token.split(":"); |
|
|
|
if (null == tokens || tokens.length != 3) { |
|
|
|
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(), "WxCUserServiceAdapter token失效"); |
|
|
|
throw new MallinkException(ErrorCode.NET_TOKEN_INVALID.getCode(), "WxCUserServiceAdapter token失效"); |
|
|
|
} |
|
|
|
WxCUser wxCUser = wxCUserMapper.findByToken(token,tokens[1]); |
|
|
|
if (null == wxCUser) { |
|
|
|
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(), "WxCUserServiceAdapter token失效"); |
|
|
|
throw new MallinkException(ErrorCode.NET_TOKEN_INVALID.getCode(), "WxCUserServiceAdapter token失效"); |
|
|
|
} |
|
|
|
return generateBaseEntity(wxCUser); |
|
|
|
}else { |
|
|
|
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(), "WxCUserServiceAdapter token失效"); |
|
|
|
throw new MallinkException(ErrorCode.NET_TOKEN_INVALID.getCode(), "WxCUserServiceAdapter token失效"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|