微信支付完成后需要跳转自己指定的页面,同时需要防止微信回调多次调用
解决思路:(第一次回调成功跳转自己设定的页面,第二次回调成功判断业务是否处理完成,处理完成则告知微信服务器已处理)
import java.io.OutputStream;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.fasterxml.jackson.core.type.TypeReference;
/**
* @Description:微信h5支付回调
* @return
* @throws Exception
* @throws WeixinException
* @date
*/
@RequestMapping("/weixinH5CallBack")
pub