Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9152b37f
authored
Aug 17, 2021
by
Jadon-jiang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图片本地上传BUG修复,以及yml配置文件更新
1 parent
5c234341
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/common/CommonController.java
linkwe-admin/src/main/resources/application.yml
linkwe-admin/src/main/java/com/linkwechat/web/controller/common/CommonController.java
View file @
9152b37
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
;
/**
/**
* 通用请求处理
* 通用请求处理
...
...
linkwe-admin/src/main/resources/application.yml
View file @
9152b37
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment