@Test public void testCheckUserInfo() { assertTrue(this.wxService.getUserService().checkUserInfo("HyVFkGl5F5OQWJZZaNzBBg==", "{\"nickName\":\"Band\",\"gender\":1,\"language\":\"zh_CN\",\"city\":\"Guangzhou\",\"province\":\"Guangdong\",\"country\":\"CN\",\"avatarUrl\":\"http: "75e81ceda165f4ffa64f4068af58c64b8f54b88c")); }
@Override public boolean checkUserInfo(String sessionKey, String rawData, String signature) { final String generatedSignature = DigestUtils.sha1Hex(rawData + sessionKey); return generatedSignature.equals(signature); }
WxMaUserServiceImpl implements WxMaUserService { @Override public boolean checkUserInfo(String sessionKey, String rawData, String signature) { final String generatedSignature = DigestUtils.sha1Hex(rawData + sessionKey); return generatedSignature.equals(signature); } }
WxMaUserServiceImpl implements WxMaUserService { @Override public boolean checkUserInfo(String sessionKey, String rawData, String signature) { final String generatedSignature = DigestUtils.sha1Hex(rawData + sessionKey); return generatedSignature.equals(signature); } WxMaUserServiceImpl(WxMaService service); }
WxMaUserServiceImpl implements WxMaUserService { @Override public boolean checkUserInfo(String sessionKey, String rawData, String signature) { final String generatedSignature = DigestUtils.sha1Hex(rawData + sessionKey); return generatedSignature.equals(signature); } WxMaUserServiceImpl(WxMaService service); @Override WxMaJscode2SessionResult getSessionInfo(String jsCode); @Override WxMaUserInfo getUserInfo(String sessionKey, String encryptedData, String ivStr); @Override WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr); @Override boolean checkUserInfo(String sessionKey, String rawData, String signature); }
WxMaUserServiceImpl implements WxMaUserService { @Override public boolean checkUserInfo(String sessionKey, String rawData, String signature) { final String generatedSignature = DigestUtils.sha1Hex(rawData + sessionKey); return generatedSignature.equals(signature); } WxMaUserServiceImpl(WxMaService service); @Override WxMaJscode2SessionResult getSessionInfo(String jsCode); @Override WxMaUserInfo getUserInfo(String sessionKey, String encryptedData, String ivStr); @Override WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr); @Override boolean checkUserInfo(String sessionKey, String rawData, String signature);  }