diff --git a/yudao-server/src/main/java/cn/iocoder/yudao/server/YudaoServerApplication.java b/yudao-server/src/main/java/cn/iocoder/yudao/server/YudaoServerApplication.java index ae3f8f2c..689c2c30 100644 --- a/yudao-server/src/main/java/cn/iocoder/yudao/server/YudaoServerApplication.java +++ b/yudao-server/src/main/java/cn/iocoder/yudao/server/YudaoServerApplication.java @@ -16,16 +16,6 @@ import java.io.File; public class YudaoServerApplication { public static void main(String[] args) { - - ApplicationHome home = new ApplicationHome(YudaoServerApplication.class); - File jarFile = home.getSource(); - String dirPath = jarFile.getParentFile().toString(); - String filePath = dirPath + File.separator + ".dubbo"; - System.out.println(filePath); - - System.setProperty("dubbo.meta.cache.filePath", filePath); - System.setProperty("dubbo.mapping.cache.filePath",filePath); - SpringApplication.run(YudaoServerApplication.class, args); } diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/order/service/impl/YxStoreOrderServiceImpl.java b/zsw-bxg/src/main/java/co/yixiang/modules/order/service/impl/YxStoreOrderServiceImpl.java index 43a05305..04a668c3 100644 --- a/zsw-bxg/src/main/java/co/yixiang/modules/order/service/impl/YxStoreOrderServiceImpl.java +++ b/zsw-bxg/src/main/java/co/yixiang/modules/order/service/impl/YxStoreOrderServiceImpl.java @@ -2773,6 +2773,12 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl{ + if (ObjectUtil.isEmpty(c.getCartInfoMap())){ + return; + } + if (!c.getCartInfoMap().containsKey("productInfo")){ + return; + } Object info = c.getCartInfoMap().get("productInfo"); YxStoreProductQueryVo vo = JSONUtil.toBean(info.toString(), YxStoreProductQueryVo.class); if (ObjectUtil.isNotEmpty(vo)) { @@ -2783,14 +2789,19 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl