%@ page language="java" import="java.util.*"
contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page language="java"
import="cn.ralee.wechat.util.WeixinUtil,cn.ralee.wechat.pojo.WeixinUserInfo,java.lang.*"%>
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
会员信息
<%
Logger log = LoggerFactory.getLogger(this.getClass());
Map ret = new HashMap();
ret = WeixinUtil.getWxConfig(request);
if (null == ret || ret.isEmpty()) {
log.info("map集合为空:" + ret);
request.setAttribute("appId", "");
request.setAttribute("timestamp", "");
request.setAttribute("nonceStr", "");
request.setAttribute("signature", "");
} else {
log.info("map集合不为空:" + ret);
request.setAttribute("appId", ret.get("appId"));
request.setAttribute("timestamp", ret.get("timestamp"));
request.setAttribute("nonceStr", ret.get("nonceStr"));
request.setAttribute("signature", ret.get("signature"));
}
%>