@Test public void testGetActivateTempInfo() throws Exception { String activateTicket = "fDZv9eMQAFfrNr3XBoqhb8eUX67DFb6h8yXDelGSMDLfg2OAIGQcU7mEKecnWZBK%2B%2Bvm%2FtZxZJrbRkdJB%2FUmpVoJkEsbeH%2BOefcntAsYDKA%3D"; WxMpMemberCardService memberCardService = this.wxService.getMemberCardService(); WxMpMemberCardActivateTempInfoResult result = memberCardService.getActivateTempInfo(activateTicket); assertNotNull(result); System.out.println(result); }
@Override public WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket) throws WxErrorException { JsonObject params = new JsonObject(); params.addProperty("activate_ticket", activateTicket); String response = this.wxMpService.post(MEMBER_CARD_ACTIVATE_TEMP_INFO, GSON.toJson(params)); WxMpMemberCardActivateTempInfoResult result = GSON.fromJson(response, WxMpMemberCardActivateTempInfoResult.class); return result; }
WxMpMemberCardServiceImpl implements WxMpMemberCardService { @Override public WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket) throws WxErrorException { JsonObject params = new JsonObject(); params.addProperty("activate_ticket", activateTicket); String response = this.wxMpService.post(MEMBER_CARD_ACTIVATE_TEMP_INFO, GSON.toJson(params)); WxMpMemberCardActivateTempInfoResult result = GSON.fromJson(response, WxMpMemberCardActivateTempInfoResult.class); return result; } }
WxMpMemberCardServiceImpl implements WxMpMemberCardService { @Override public WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket) throws WxErrorException { JsonObject params = new JsonObject(); params.addProperty("activate_ticket", activateTicket); String response = this.wxMpService.post(MEMBER_CARD_ACTIVATE_TEMP_INFO, GSON.toJson(params)); WxMpMemberCardActivateTempInfoResult result = GSON.fromJson(response, WxMpMemberCardActivateTempInfoResult.class); return result; } WxMpMemberCardServiceImpl(WxMpService wxMpService); }
WxMpMemberCardServiceImpl implements WxMpMemberCardService { @Override public WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket) throws WxErrorException { JsonObject params = new JsonObject(); params.addProperty("activate_ticket", activateTicket); String response = this.wxMpService.post(MEMBER_CARD_ACTIVATE_TEMP_INFO, GSON.toJson(params)); WxMpMemberCardActivateTempInfoResult result = GSON.fromJson(response, WxMpMemberCardActivateTempInfoResult.class); return result; } WxMpMemberCardServiceImpl(WxMpService wxMpService); @Override WxMpService getWxMpService(); @Override WxMpCardCreateResult createMemberCard(String createJson); @Override WxMpCardCreateResult createMemberCard(WxMpMemberCardCreateMessage createMessageMessage); @Override String activateMemberCard(WxMpMemberCardActivatedMessage activatedMessage); @Override WxMpMemberCardUserInfoResult getUserInfo(String cardId, String code); @Override WxMpMemberCardUpdateResult updateUserMemberCard(WxMpMemberCardUpdateMessage updateUserMessage); @Override MemberCardActivateUserFormResult setActivateUserForm(MemberCardActivateUserFormRequest userFormRequest); @Override ActivatePluginParam getActivatePluginParam(String cardId, String outStr); @Override CardUpdateResult updateCardInfo(MemberCardUpdateRequest memberCardUpdateRequest); @Override WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket); static Map<String, String> parseRequestUrl(String url); }
WxMpMemberCardServiceImpl implements WxMpMemberCardService { @Override public WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket) throws WxErrorException { JsonObject params = new JsonObject(); params.addProperty("activate_ticket", activateTicket); String response = this.wxMpService.post(MEMBER_CARD_ACTIVATE_TEMP_INFO, GSON.toJson(params)); WxMpMemberCardActivateTempInfoResult result = GSON.fromJson(response, WxMpMemberCardActivateTempInfoResult.class); return result; } WxMpMemberCardServiceImpl(WxMpService wxMpService); @Override WxMpService getWxMpService(); @Override WxMpCardCreateResult createMemberCard(String createJson); @Override WxMpCardCreateResult createMemberCard(WxMpMemberCardCreateMessage createMessageMessage); @Override String activateMemberCard(WxMpMemberCardActivatedMessage activatedMessage); @Override WxMpMemberCardUserInfoResult getUserInfo(String cardId, String code); @Override WxMpMemberCardUpdateResult updateUserMemberCard(WxMpMemberCardUpdateMessage updateUserMessage); @Override MemberCardActivateUserFormResult setActivateUserForm(MemberCardActivateUserFormRequest userFormRequest); @Override ActivatePluginParam getActivatePluginParam(String cardId, String outStr); @Override CardUpdateResult updateCardInfo(MemberCardUpdateRequest memberCardUpdateRequest); @Override WxMpMemberCardActivateTempInfoResult getActivateTempInfo(String activateTicket); static Map<String, String> parseRequestUrl(String url);  }