微信付款金额与数据库记录不一致

来源:9-5 卖家订单-controller-取消订单

夏析

2018-01-13

2018-01-13 23:52:56.174  INFO 37313 --- [nio-8080-exec-4] c.example.sell.controller.PayController  : 【创建的订单】orderDTO=OrderDTO(orderId=151585877576338742, buyerName=A , buyerPhone=A , buyerAddress=A , buyerOpenid=o45x30oFyv4kYKFMW2kBduZ98hkk, orderAmount=0.03, orderStatus=0, payStatus=0, createTime=2018-01-13 15:52:55.0, updateTime=2018-01-13 15:52:55.0, orderDetailList=[OrderDetail(detailId=151585877577897914, orderId=151585877576338742, productId=123456, productName=皮蛋瘦肉粥, productPrice=0.01, productQuantity=3, productIcon=http://fuss10.elemecdn.com/9/93/91994e8456818dfe7b0bd95f10a50jpeg.jpeg)])


2018-01-13 23:52:56.968  INFO 37313 --- [nio-8080-exec-4] c.e.sell.service.impl.PayServiceImpl     : 【微信支付】request={

  "payTypeEnum": "WXPAY_H5",

  "orderId": "151585877576338742",

  "orderAmount": 0.03,

  "orderName": "微信点餐支付",

  "openid": "o45x30oFyv4kYKFMW2kBduZ98hkk"

}


2018-01-13 23:52:56.969  INFO 37313 --- [nio-8080-exec-4] c.e.sell.service.impl.PayServiceImpl     : 【微信支付】response={

  "appId": "wx08e68d499c03b4ce",

  "timeStamp": "1515858776",

  "nonceStr": "Ef4RvjwUsBieujWZ",

  "packAge": "prepay_id\u003dwx20180113235256f181f9b8640423357917",

  "signType": "MD5",

  "paySign": "BE6E7193780A76B65070E897496D6ACC"

}


2018-01-13 23:53:02.550  INFO 37313 --- [nio-8080-exec-5] c.e.sell.service.impl.PayServiceImpl     : 【微信支付】异步通知,payResponse={

  "orderAmount": 0.02,

  "orderId": "151585877576338742",

  "outTradeNo": "4200000100201801133585714535"

}


写回答

1回答

夏析

提问者

2018-01-14

测试的数据:

付款 1件是 0.01

付款2件是 0.02

付款3件是0.02

付款4件是0.04   




只有付款3件是有问题的

0
4
qq_青年早报_0
回复
廖师兄
哦哦 好哒
2018-08-21
共4条回复

Spring Boot双版本(1.5/2.1) 打造企业级微信点餐系统

从0到1开发中小型企业级Java应用,并学会迭代重构技巧

6410 学习 · 5247 问题

查看课程