java微信支付異步回調接收參數
阿新 • • 發佈:2017-12-11
end 異步 eth out 微信支付 get input 支付 tin
response.setHeader( "Content-type", "text/html;charset=UTF-8" );
out = response.getWriter();
InputStream in = request.getInputStream();
BufferedReader br = new BufferedReader( new InputStreamReader( in, "UTF-8" ) );
StringBuffer result = new StringBuffer();
String line = "";
long courseId = ParamUtils.getLongParameter( request, "courseId", 0 );
while ( ( line = br.readLine() ) != null )
{
result.append(line);
}
Map<String, String> map = WXPayUtil.xmlToMap( result.toString() );
java微信支付異步回調接收參數