Commit 57ef7cb6 by Jadon-jiang

图片本地上传BUG修复,以及yml配置文件更新

1 parent 36135b67
package com.linkwechat.web.controller.common; package com.linkwechat.web.controller.common;
import com.linkwechat.common.config.CosConfig;
import com.linkwechat.common.config.RuoYiConfig; import com.linkwechat.common.config.RuoYiConfig;
import com.linkwechat.common.config.ServerConfig; import com.linkwechat.common.config.ServerConfig;
import com.linkwechat.common.constant.Constants; import com.linkwechat.common.constant.Constants;
...@@ -9,7 +8,6 @@ import com.linkwechat.common.core.domain.FileVo; ...@@ -9,7 +8,6 @@ import com.linkwechat.common.core.domain.FileVo;
import com.linkwechat.common.utils.StringUtils; import com.linkwechat.common.utils.StringUtils;
import com.linkwechat.common.utils.file.FileUploadUtils; import com.linkwechat.common.utils.file.FileUploadUtils;
import com.linkwechat.common.utils.file.FileUtils; import com.linkwechat.common.utils.file.FileUtils;
import com.linkwechat.common.utils.file.MimeTypeUtils;
import com.linkwechat.framework.web.domain.server.SysFile; import com.linkwechat.framework.web.domain.server.SysFile;
import com.linkwechat.framework.web.service.FileService; import com.linkwechat.framework.web.service.FileService;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -17,13 +15,11 @@ import org.slf4j.LoggerFactory; ...@@ -17,13 +15,11 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/** /**
* 通用请求处理 * 通用请求处理
......
...@@ -7,11 +7,15 @@ ruoyi: ...@@ -7,11 +7,15 @@ ruoyi:
# 版权年份 # 版权年份
copyrightYear: 2019 copyrightYear: 2019
startTenant: false startTenant: false
editPwd: false
# 实例演示开关 # 实例演示开关
demoEnabled: true demoEnabled: true
# 是否开启文件云上传(使用的是腾讯云,如果开启了,则需要配置腾讯云存储相关信息;如果关闭了则文件存储再本地,需要配置本地路径)
file: file:
startCosUpload: true startCosUpload: false
#腾讯云对象存储 #如果startCosUpload为false时必须设置,则文件资源放在本地服务器上,该配置为文件访问前缀,配置到nginx上可以直接访问
imgUrlPrefix: /lwImg
#腾讯云对象存储
cos: cos:
secretId: secretId:
secretKey: secretKey:
...@@ -81,6 +85,7 @@ logging: ...@@ -81,6 +85,7 @@ logging:
level: level:
com.ruoyi: debug com.ruoyi: debug
org.springframework: warn org.springframework: warn
path: ./logs
path: path:
log: ./logs log: ./logs
...@@ -246,9 +251,9 @@ xss: ...@@ -246,9 +251,9 @@ xss:
# elasticsearch配置 # elasticsearch配置
#elasticsearch: #elasticsearch:
# schema: http # schema: http
# address: # address: 47.112.117.15:7200,47.112.117.15:7201,47.112.117.15:7202
# userName: "" # userName: "elastic"
# password: "" # password: "0p-0p-0p-"
# connectTimeout: 10000 # connectTimeout: 10000
# socketTimeout: 10000 # socketTimeout: 10000
# connectionRequestTimeout: 10000 # connectionRequestTimeout: 10000
...@@ -262,7 +267,7 @@ forest: ...@@ -262,7 +267,7 @@ forest:
max-retry-interval: 1000 #重试间隔时间 max-retry-interval: 1000 #重试间隔时间
connect-timeout: 3000 #链接超时时间 connect-timeout: 3000 #链接超时时间
timeout: 3000 # 请求超时时间 timeout: 3000 # 请求超时时间
variables: #全局变量 企微和微信接口地址 variables:
weComServerUrl: https://qyapi.weixin.qq.com/ weComServerUrl: https://qyapi.weixin.qq.com/
weComePrefix: cgi-bin weComePrefix: cgi-bin
wxServerUrl: https://api.weixin.qq.com/ wxServerUrl: https://api.weixin.qq.com/
...@@ -332,14 +337,14 @@ wecome: ...@@ -332,14 +337,14 @@ wecome:
- we_tag - we_tag
#企微回调通知配置 #企微回调通知配置
callBack: callBack:
appIdOrCorpId: appIdOrCorpId: ww38152475d1bca752
token: token: Fm05d6n0NpuFrvOlgVxIbeSXtjgz
encodingAesKey: encodingAesKey: laevP8xCEG7BUqv5GuYXfg9HaRecxe4MU5F5cmnAI7n
# JS SDK 身份校验url # JS SDK 身份校验url
authorizeUrl: https://open.weixin.qq.com/connect/oauth2/authorize authorizeUrl: https://open.weixin.qq.com/connect/oauth2/authorize
# JS SDK身份校验成功后的redirect url # JS SDK身份校验成功后的redirect url
authorizeRedirectUrl: authorizeRedirectUrl: http://linkwechat.cn/mobile/#/task
weixin: weixin:
appid:
secret:
\ No newline at end of file \ No newline at end of file
appid: wxa57479bcd3f15461
secret: f23f4becdcac9819f292a3754fd8f84e
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!