@Test public void testGetPhoneNoInfo() { WxMaPhoneNumberInfo phoneNoInfo = this.wxService.getUserService().getPhoneNoInfo("tiihtNczf5v6AKRyjwEUhQ==", "CiyLU1Aw2KjvrjMdj8YKliAjtP4gsMZMQmRzooG2xrDcvSnxIMXFufNstNGTyaGS9uT5geRa0W4oTOb1WT7fJlAC+oNPdbB+3hVbJSRgv+4lGOETKUQz6OYStslQ142dNCuabNPGBzlooOmB231qMM85d2/fV6ChevvXvQP8Hkue1poOFtnEtpyxVLW1zAo6/1Xx1COxFvrc2d7UL/lmHInNlxuacJXwu0fjpXfz/YqYzBIBzD6WUfTIF9GRHpOn/Hz7saL8xz+W "r7BXXKkLb8qrSNn05n0qiA=="); assertNotNull(phoneNoInfo); System.out.println(phoneNoInfo.toString()); }
@Override public WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr) { return WxMaPhoneNumberInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr)); }
WxMaUserServiceImpl implements WxMaUserService { @Override public WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr) { return WxMaPhoneNumberInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr)); } }
WxMaUserServiceImpl implements WxMaUserService { @Override public WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr) { return WxMaPhoneNumberInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr)); } WxMaUserServiceImpl(WxMaService service); }
WxMaUserServiceImpl implements WxMaUserService { @Override public WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr) { return WxMaPhoneNumberInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr)); } 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 WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr) { return WxMaPhoneNumberInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr)); } 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);  }