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 30868e6c
authored
Jun 08, 2021
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改群活码二维码生成BUG
1 parent
d6bb3485
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/common/CommonController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupCodeController.java
linkwe-framework/src/main/java/com/linkwechat/framework/web/service/FileService.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/common/CommonController.java
View file @
30868e6
...
...
@@ -125,7 +125,7 @@ public class CommonController {
=
fileService
.
upload
(
file
);
AjaxResult
ajax
=
AjaxResult
.
success
();
ajax
.
put
(
"fileName"
,
sysFile
.
getFileName
());
ajax
.
put
(
"url"
,
sysFile
.
getFileName
());
ajax
.
put
(
"url"
,
sysFile
.
get
ImgUrlPrefix
()+
sysFile
.
get
FileName
());
return
ajax
;
}
catch
(
Exception
e
)
{
return
AjaxResult
.
error
(
e
.
getMessage
());
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupCodeController.java
View file @
30868e6
...
...
@@ -44,13 +44,14 @@ import java.util.zip.ZipOutputStream;
public
class
WeGroupCodeController
extends
BaseController
{
@Autowired
private
IWeGroupCodeService
groupCodeService
;
/**
* 查询客户群活码列表
*/
// @PreAuthorize("@ss.hasPermi('drainageCode:group:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeGroupCode
weGroupCode
)
{
startPage
();
List
<
WeGroupCode
>
list
=
groupCodeService
.
selectWeGroupCodeList
(
weGroupCode
);
return
getDataTable
(
list
);
...
...
linkwe-framework/src/main/java/com/linkwechat/framework/web/service/FileService.java
View file @
30868e6
...
...
@@ -44,19 +44,22 @@ public class FileService {
*/
public
SysFile
upload
(
MultipartFile
file
)
throws
IOException
{
String
fileName
=
""
;
String
imgUrlPrefix
=
""
;
if
(
ruoYiConfig
.
getFile
().
isStartCosUpload
()){
//开启云上传
//开启云上传开关则云上传,不然上传本地
fileName
=
FileUploadUtils
.
upload2Cos
(
file
,
ruoYiConfig
.
getFile
().
getCos
());
imgUrlPrefix
=
ruoYiConfig
.
getFile
().
getCos
().
getCosImgUrlPrefix
();
}
else
{
//本地上传
File
osFile
=
OsUtils
.
isWindows
()?
new
File
(
WINDOWSFILEPATH
):
new
File
(
LINUXFILEPATH
);
if
(!
osFile
.
exists
()){
osFile
.
mkdirs
();
}
fileName
=
FileUploadUtils
.
upload
(
osFile
.
getPath
(),
file
);
imgUrlPrefix
=
ruoYiConfig
.
getFile
().
getImgUrlPrefix
();
}
return
SysFile
.
builder
()
.
fileName
(
fileName
)
.
imgUrlPrefix
(
ruoYiConfig
.
getFile
().
getImgUrlPrefix
()
)
.
imgUrlPrefix
(
imgUrlPrefix
)
.
build
();
}
...
...
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