From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java index 3f374e1..99d1c5f 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java @@ -51,7 +51,8 @@ @PostMapping public R add(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){ comSanshuoExpertDTO.setCreateBy(this.getLoginUserInfo().getName()); - comSanshuoExpertDTO.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId()); +// comSanshuoExpertDTO.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId()); + comSanshuoExpertDTO.setAppId(getAppId()); return comSanShuoExpertService.addOrUpdateExpert(comSanshuoExpertDTO); } @@ -86,7 +87,8 @@ @RequestParam(value = "size",required = false)Integer size, @RequestParam(value = "level",required = false)Integer level){ LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); - loginUserInfo.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId()); +// loginUserInfo.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId()); + loginUserInfo.setAppId(getAppId()); return comSanShuoExpertService.expertPage(keyWord,page,size,loginUserInfo,level); } @@ -136,7 +138,8 @@ * */ @GetMapping("/expertRange") public R expertRange(){ - LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); + LoginUserInfoVO loginUserInfo1=getLoginUserInfo(); + LoginUserInfoVO loginUserInfo = userService.detailUser(loginUserInfo1.getUserId()).getData(); return comSanShuoExpertService.expertRange(loginUserInfo); } -- Gitblit v1.7.1