通过微信测试工具调用接口拿不到参数。请问是什么原因?
public void getWxApiQueryNoLogin(HttpServletRequest request,HttpServletResponse response) throws IOException, AesException, SAXException, ParserConfigurationException { System.out.println( "========================以下为微信明文返回的数据=============================" ); //开发者微信号 String ToUserName = request.getParameter( "ToUserName" ); //发送方帐号(一个OpenID) String FromUserName=request.getParameter( "FromUserName" ); //消息创建时间 (整型) String CreateTime=request.getParameter( "CreateTime" ); //消息类型(小程序widget消息为 event ) String MsgType=request.getParameter( "MsgType" ); //第三方收到请求之后需要验证签名和解密 String nonce = request.getParameter( "nonce" ); //事件类型,小程序widget消息固定为wxa_widget_data String Event=request.getParameter( "Event" ); //消息query参数 String Query=request.getParameter( "Query" ); //场景值,固定为1 String Scene=request.getParameter( "Scene" ); String ToUserNameB=request.getParameter( "ToUserName" ); String Encrypt=request.getParameter( "Encrypt" ); String aba= "接收微信服务端明文信息ToUserName=" +ToUserName+ "FromUserName=" +FromUserName+ "=CreateTime=" +CreateTime+ "=MsgType=" +MsgType+ "Event=" +Event+ "Query=" +Query+ "Scene" +Scene; Logger.info( "接收微信服务端明文信息ToUserName=" +ToUserName+ "FromUserName=" +FromUserName+ "=CreateTime=" +CreateTime+ "=MsgType=" +MsgType+ "Event=" +Event+ "Query=" +Query+ "Scene" +Scene); Logger.info( "接收微信服务端密文信息ToUserName=" +ToUserNameB+ "Encrypt=" +Encrypt); String abb= "接收微信服务端密文信息ToUserName=" +ToUserNameB+ "Encrypt=" +Encrypt; |
日志打印出了是null
求大神解答
`这么久了还是没回复啊
这个和搜索直达有关系吗?
差不多,是一个查询服务