单独授权和单独通过http://proxy.springboot.cn/pay?openid=oTgZpwfA34VP3Tr1DhKjHHaTfpsQ&orderId=1602142400573287898&returnUrl=http://sell.com 直接进行支付的方式都没问题,并且通过上面的网址进行支付后可以正常跳转回sell.com
无法通过手机微信直接进入sell.com下单后进行支付
点击支付后item显示为null
通过postman测试,接口可以正常返回item


然后通过代理抓包发现手机进入sell.com点击支付之后item里面的productId都为null[{"productId":null,"productQuantity":1},{"productId":null,"productQuantity":1}]
IDEA报错信息为
2020-12-06 21:14:41,298 - 【创建订单】参数不正确,orderForm=OrderForm(name=3,
phone=9, address=4, openid=oTgZpwfA34VP3Tr1DhKjHHaTfpsQ, item=null)2020-12-06 21:14:41,300 - Servlet.service() for servlet
[dispatcherServlet] in context with path [/sell] threw exception
[Request processing failed; nested exception is
com.imooc.exception.SellException: 购物车] with root cause
com.imooc.exception.SellException: 购物车
请问到这里应该怎么继续?
登录后可查看更多问答,登录/注册