xw 3 недель назад
Родитель
Сommit
db45cb2702

+ 1 - 1
deploy.sh

@@ -3,7 +3,7 @@
 # 各服务对应的远程服务器配置 北京卓美
 declare -A SERVER_CONFIG=(
     # 服务名:IP地址
-    ["fs-live-app"]="114.132.218.150"
+    ["fs-live-app"]="1.95.68.215"
 )
 
 # 通用配置(所有服务器相同)

+ 1 - 8
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreCartScrmServiceImpl.java

@@ -87,14 +87,7 @@ public class FsStoreCartScrmServiceImpl implements IFsStoreCartScrmService
             // 检查是否超过限购数量
             if (totalPurchased > attrValue.getPurchaseLimit()) {
                 int remaining = attrValue.getPurchaseLimit() - purchasedCount;
-                String message = "商品规格【" + attrValue.getSku() + "】限购" + attrValue.getPurchaseLimit() + "件";
-                message += ",您已购买" + purchasedCount + "件";
-
-                if (remaining > 0) {
-                    message += ",本次最多可购买" + remaining + "件";
-                } else {
-                    message += ",已达到购买上限";
-                }
+                String message = "本商品每人<span style='font-weight: bold;'>限购" + attrValue.getPurchaseLimit() + "件</span>";
 
                 return R.error(message);
             }

+ 1 - 8
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreOrderScrmServiceImpl.java

@@ -920,14 +920,7 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
                     // 检查是否超过限购数量
                     if (totalPurchased > attrValue.getPurchaseLimit()) {
                         int remaining = attrValue.getPurchaseLimit() - purchasedCount;
-                        String message = "商品规格【" + attrValue.getSku() + "】限购" + attrValue.getPurchaseLimit() + "件";
-                        message += ",您已购买" + purchasedCount + "件";
-
-                        if (remaining > 0) {
-                            message += ",本次最多可购买" + remaining + "件";
-                        } else {
-                            message += ",已达到购买上限";
-                        }
+                        String message = "本商品每人限购<span style='font-weight: bold;'>限购</span><span  font-weight: bold;'>" + attrValue.getPurchaseLimit() + "件</span>";
 
                         return R.error(message);
                     }