package com.gree.mall.manager.utils;

/**
 * Created by Administrator on 2019/5/24 0024.
 */
//public class WeiXinUtils extends HttpServlet {
//
//    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(WeiXinUtils.class);
//    @Override
//    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//        //微信加密签名，signature结合了开发者填写的token参数和请求中的timestamp，nonce参数
//        String signature = request.getParameter("signature");
//        //时间戳
//        String timestamp = request.getParameter("timestamp");
//        //随机数
//        String nonce = request.getParameter("nonce");
//        //随机字符串
//        String echostr = request.getParameter("echostr");
//
//        if (SignUtil.checkSignature(signature, timestamp, nonce)) {
//            logger.info("[signature: "+signature + "]<-->[timestamp: "+ timestamp+"]<-->[nonce: "+nonce+"]<-->[echostr: "+echostr+"]");
//            response.getOutputStream().println(echostr);
//        }
//    }
//
//    @Override
//    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        doGet(req,resp);
//    }
//}
public class WeiXinUtils{

}
