|
|
@@ -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);
|
|
|
}
|