From bdc0372f49b52778a9ce50fc4046d0217b4ef8b4 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Wed, 31 Dec 2025 20:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=B9=B3=E5=8F=B0=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/shop/sync/controller/ShopSyncImportController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ShopSyncImportController.java b/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ShopSyncImportController.java index a6c54ccb..23e65877 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ShopSyncImportController.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ShopSyncImportController.java @@ -1,6 +1,7 @@ package com.suisung.mall.shop.sync.controller; import com.suisung.mall.common.api.CommonResult; +import com.suisung.mall.common.exception.ApiException; import com.suisung.mall.common.service.impl.BaseControllerImpl; import com.suisung.mall.shop.sync.service.ShopSyncImportService; import io.swagger.annotations.ApiOperation; @@ -79,6 +80,9 @@ public class ShopSyncImportController extends BaseControllerImpl { @ApiOperation(value = "商品数据导入", notes = "分类数据导入") @RequestMapping(value = "/shopImportData", method = RequestMethod.POST) public CommonResult shopImportData(@RequestParam("file") MultipartFile file,@RequestParam("storeId")String storeId) { + if(!shopSyncImportService.checkIsPlate()){ + throw new ApiException("用户无权限"); + } shopSyncImportService.importShopsData(file,storeId); return CommonResult.success("服务器正则处理文件,稍后查看商品列表"); }