Example #1
0
 /**
  * 获取业务信息
  *
  * @param license
  * @param openId 普通用户的标识,对当前公众号唯一
  * @return
  */
 public static BizJsonRtn getBizInfo(License license, String openId, String message) {
   if (StringUtils.isEmpty(openId)) {
     return null;
   }
   if (StringUtils.isEmpty(message)) {
     return null;
   }
   Map<String, String> paramMap = ImmutableMap.of("openid", openId, "msg", message);
   return HttpUtil.getRequest(BizRequest.SEND_BIZ_MSG, license, paramMap, BizJsonRtn.class);
 }
Example #2
0
 public static BizJsonRtn getBiz(License license, String nextOpenId) {
   Map<String, String> paramMap =
       ImmutableMap.of("next_openid", StringUtils.defaultString(nextOpenId));
   return HttpUtil.getRequest(WechatRequest.GET_USERS, license, paramMap, BizJsonRtn.class);
 }