Exemple #1
0
  public NutMap wx_minfo(String info, HttpServletRequest req) throws Exception {
    String uri = myWxApi.getCompleteUri(req); // 获取完整uri,否则jsticket无法使用
    Logs.get().debugf("request url=%s", uri);

    String decinfo = BlueDes.decrypt(info);
    HashMap<String, String> minfo = Json.fromJson(HashMap.class, decinfo);

    return wx_init(uri, minfo);
  }
Exemple #2
0
 // 微信页面交互JS认证
 private NutMap wx_jsconfig(String uri) throws Exception {
   NutMap jscfg = myWxApi.genJsSDKConfig(uri, "onMenuShareTimeline", "onMenuShareAppMessage");
   return jscfg;
 }