mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 02:36:39 +08:00
commit
5b2329a75b
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user