新增二维码支付接口

This commit is contained in:
602090531@qq.com 2022-03-25 19:54:44 +08:00
parent 3e31386efa
commit d10b60f22f

View File

@ -97,7 +97,6 @@ public class OrderController {
String afterDecodeResult = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY); String afterDecodeResult = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(afterDecodeResult); com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(afterDecodeResult);
JSONObject jsonObjectResult = (JSONObject)jsonArray.get(0); JSONObject jsonObjectResult = (JSONObject)jsonArray.get(0);
WxPayEntity wxPayEntity = new WxPayEntity(); WxPayEntity wxPayEntity = new WxPayEntity();
wxPayEntity.setProduct_id(order.getProductCode()); wxPayEntity.setProduct_id(order.getProductCode());
wxPayEntity.setTotal_fee(StringUtil.toString(jsonObjectResult.getString("salesAmount"))); wxPayEntity.setTotal_fee(StringUtil.toString(jsonObjectResult.getString("salesAmount")));