1、进行了内网穿透,将本地地址暴露在公网上面
2、沙箱的notifyUrl配置
notifyUrl: http://q6entp.natappfree.cc/alipay/notify #每次启动需要重新复制
3、沙箱的setReturnUrl
//request.setReturnUrl("http://localhost/orders.html?userId="+orderInfo.getUserId());
request.setReturnUrl("http://127.0.0.1:9999/orders.html?userId="+orderInfo.getUserId());
4、原因 :和session的作用范围有关,session只在一次会话中有效,使用127.0.0.1或者localhost统一即可