!40 2022-1-19 Carl

Merge pull request !40 from Admin/sit-Carl-V3
This commit is contained in:
Admin 2022-01-19 06:47:39 +00:00 committed by Gitee
commit 5b2329a75b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -180,7 +180,7 @@ public class OrderController {
String orderInfo = orderService.query(queryEntity); String orderInfo = orderService.query(queryEntity);
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(orderInfo); com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(orderInfo);
JSONObject jsonObject = (JSONObject)jsonArray.get(0); JSONObject jsonObject = (JSONObject)jsonArray.get(0);
if(jsonObject.getString("status") == "0") { if(jsonObject.getString("status").equals("0")) {
WxPayEntity wxPayEntity = new WxPayEntity(); WxPayEntity wxPayEntity = new WxPayEntity();
wxPayEntity.setProduct_id(ordersEntity.getProductCode()); wxPayEntity.setProduct_id(ordersEntity.getProductCode());
wxPayEntity.setTotal_fee(jsonObject.getString("salesAmount")); wxPayEntity.setTotal_fee(jsonObject.getString("salesAmount"));