Browse Source

fixed 未登录加购物车bug修复

fushengqian 11 months ago
parent
commit
6bd53cffb7

+ 4 - 0
fuint-application/src/main/java/com/fuint/module/clientApi/controller/ClientCartController.java

@@ -102,6 +102,10 @@ public class ClientCartController extends BaseController {
             return getFailureResult(1001);
         }
 
+        if (mtUser == null) {
+            return getFailureResult(1001);
+        }
+
         // 通过商品条码操作
         if (StringUtil.isNotEmpty(skuNo)) {
             MtGoodsSku mtGoodsSku = goodsService.getSkuInfoBySkuNo(skuNo);