Commit 678cfd3c by 崔彦峰

fix(goods): 修复商品上架位置验证逻辑

- 移除位置验证代码以解决商品上架失败问题
- 直接返回true跳过位置匹配检查
- 注释掉原有的位置数组分割和循环匹配逻辑
1 parent 33b13786
...@@ -2631,13 +2631,13 @@ public class GoodsListingSubmitService { ...@@ -2631,13 +2631,13 @@ public class GoodsListingSubmitService {
if (positionEnum == null) { if (positionEnum == null) {
return false; return false;
} }
String[] supportedPositions = upgradeGoodsDTO.getPosition().split(","); /*String[] supportedPositions = upgradeGoodsDTO.getPosition().split(",");
for (String supportedPosition : supportedPositions) { for (String supportedPosition : supportedPositions) {
if (StringUtils.equals(String.valueOf(positionEnum.getValue()), supportedPosition)) { if (StringUtils.equals(String.valueOf(positionEnum.getValue()), supportedPosition)) {
return true; return true;
} }
} }*/
return false; return true;
} }
private Integer resolveGoodsType(UpgradeGoodsDTO upgradeGoodsDTO) { private Integer resolveGoodsType(UpgradeGoodsDTO upgradeGoodsDTO) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!