From dedd0c24b29e148de071ae32ffa6c33c37e7443c Mon Sep 17 00:00:00 2001 From: XinYi Song <2037158277@qq.com> Date: Tue, 21 Dec 2021 16:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=80=BB=E9=83=A8?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=A6=81=E5=AE=A1=E6=A0=B8=E7=9A=84=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E7=9A=84=E4=BF=A1=E6=81=AF=E7=9A=84=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/controller/MerchantSettlementController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xkrs/controller/MerchantSettlementController.java b/src/main/java/com/xkrs/controller/MerchantSettlementController.java index 12710a5..04c62ac 100644 --- a/src/main/java/com/xkrs/controller/MerchantSettlementController.java +++ b/src/main/java/com/xkrs/controller/MerchantSettlementController.java @@ -153,7 +153,8 @@ public class MerchantSettlementController { * @return */ @PostMapping("/selectDefaultBusiness") - public String selectDefaultBusiness(@RequestBody Map map){ + @PreAuthorize("hasAnyAuthority('auth_administor')") + public String selectDefaultBusiness(@RequestBody Map map,@RequestHeader(value="Authorization") String token){ String businessCity = (String) map.get("businessCity"); String businessCountry = (String) map.get("businessCountry"); String businessName = (String) map.get("businessName");