Commit e82d7e59 by zhouhaibao

fix(store): 解决批量上架模式下多场景文件验证问题

- 添加场景文件数量验证逻辑
- 当场景文件数量大于1时返回参数错误
- 确保批量上架模式只支持单场景操作
1 parent bc9a5ffc
......@@ -88,6 +88,12 @@ public class StoreApproveService {
}
createBusinessApproveDTO.setMerchantId(merchantId);
createBusinessApproveDTO.setMerchantName(merchantName);
}else{
List<SceneFileDTO> sceneFiles = request.getSceneFiles();
if (sceneFiles.size()>1){
return RpcResponse.error(DefaultErrorEnum.PARAMETER_NULL,
"批量上架模式,只能支持单场景");
}
}
createBusinessApproveDTO.setShelfType(shelfType);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!