diff --git a/service/src/main/java/com/hfkj/service/order/Impl/BsOrderServiceImpl.java b/service/src/main/java/com/hfkj/service/order/Impl/BsOrderServiceImpl.java index 538eced..e269e8e 100644 --- a/service/src/main/java/com/hfkj/service/order/Impl/BsOrderServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/order/Impl/BsOrderServiceImpl.java @@ -66,13 +66,13 @@ public class BsOrderServiceImpl implements BsOrderService { order.setUserPhone(body.getString("phone")); order.setUserId(body.getLong("userId")); - Map map = new HashMap<>(); + JSONObject map = new JSONObject(); map.put("orderNo", order.getOrderNo()); map.put("uid", order.getUserId()); map.put("searchId", body.getString("searchId")); map.put("goodsSign", body.getString("goodsSign")); map.put("url", body.getString("url")); - order.setCustomparameters(map.toString()); + order.setCustomparameters(map.toJSONString()); order.setGoodsName(body.getString("goodsName")); order.setType(body.getInteger("type")); order.setImg(body.getString("img"));