/**
* 判断是否是微信访问
*
* @param request
* @return
*/
public static boolean isWeChat(HttpServletRequest request) {
String userAgent = request.getHeader("user-agent").toLowerCase();
return userAgent == null || userAgent.indexOf("micromessenger") == -1 ? false : true;
}