From 0140571d040178c6a1c4c6f66f8df0dcb46ab5ac Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Tue, 18 Feb 2025 11:01:09 +0800
Subject: [PATCH] feat(user): 重构用户注册逻辑并添加钱包功能

---
 src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallShoppingCartServiceImpl.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallShoppingCartServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallShoppingCartServiceImpl.java
index 2629f7b..ad51eb4 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallShoppingCartServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallShoppingCartServiceImpl.java
@@ -54,6 +54,11 @@
             Long skuId = null;
             Long styleId = null;
             MallShoppingCart cartGoods = null;
+
+            if (addCartDto.getType() == null) {
+                addCartDto.setType(1);
+            }
+
             if (addCartDto.getType() == 1) {
                 MallGoodsSku sku = mallGoodsSkuMapper.selectById(addCartDto.getSkuId());
 

--
Gitblit v1.9.1