Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
智布道
OneBlog
提交
37dec79d
O
OneBlog
项目概览
智布道
/
OneBlog
9 个月 前同步成功
通知
11
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneBlog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
37dec79d
编写于
2月 18, 2019
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🐛
解决赞赏吗不显示的问题
上级
ae4d20eb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
11 deletion
+14
-11
blog-admin/src/main/java/com/zyd/blog/controller/RestConfigController.java
...in/java/com/zyd/blog/controller/RestConfigController.java
+2
-2
blog-admin/src/main/resources/static/assets/js/zhyd.table.js
blog-admin/src/main/resources/static/assets/js/zhyd.table.js
+3
-0
blog-admin/src/main/resources/templates/config.ftl
blog-admin/src/main/resources/templates/config.ftl
+2
-2
blog-core/src/main/java/com/zyd/blog/business/service/impl/SysConfigServiceImpl.java
.../zyd/blog/business/service/impl/SysConfigServiceImpl.java
+1
-1
blog-web/src/main/resources/static/js/zhyd.js
blog-web/src/main/resources/static/js/zhyd.js
+1
-1
blog-web/src/main/resources/templates/include/macros.ftl
blog-web/src/main/resources/templates/include/macros.ftl
+5
-5
未找到文件。
blog-admin/src/main/java/com/zyd/blog/controller/RestConfigController.java
浏览文件 @
37dec79d
...
...
@@ -43,8 +43,8 @@ public class RestConfigController {
@RequestParam
(
required
=
false
)
MultipartFile
zfbPraiseCode
)
{
try
{
sysConfigService
.
saveConfig
(
configs
);
sysConfigService
.
saveFile
(
"wx
_praise_c
ode"
,
wxPraiseCode
);
sysConfigService
.
saveFile
(
"zfb
_praise_c
ode"
,
zfbPraiseCode
);
sysConfigService
.
saveFile
(
"wx
PraiseC
ode"
,
wxPraiseCode
);
sysConfigService
.
saveFile
(
"zfb
PraiseC
ode"
,
zfbPraiseCode
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResultUtil
.
error
(
"系统配置修改失败"
);
...
...
blog-admin/src/main/resources/static/assets/js/zhyd.table.js
浏览文件 @
37dec79d
...
...
@@ -225,6 +225,9 @@ function clearText($this, type, info) {
if
(
info
)
{
var
thisName
=
$this
.
attr
(
"
name
"
);
var
thisValue
=
info
[
thisName
];
if
(
type
==
'
file
'
)
{
return
false
;
}
if
(
type
==
'
radio
'
)
{
var
_typeof
=
(
typeof
thisValue
);
if
(
_typeof
==
"
boolean
"
||
_typeof
==
"
number
"
)
{
...
...
blog-admin/src/main/resources/templates/config.ftl
浏览文件 @
37dec79d
...
...
@@ -594,8 +594,8 @@
clearText($(this), this.type, data);
});
changeMaintenance(data.maintenance && data.maintenance == 1, data.maintenance);
data.zfbPraiseCode && $("#zfbPraiseCodePreview").html('<img src="' + data.
fileStoragePath + data.
zfbPraiseCode + '" alt="支付宝赞赏码" class="img-responsive img-rounded auto-shake">');
data.wxPraiseCode && $("#wxPraiseCodePreview").html('<img src="' + data.
fileStoragePath + data.
wxPraiseCode + '" alt="微信赞赏码" class="img-responsive img-rounded auto-shake">');
data.zfbPraiseCode && $("#zfbPraiseCodePreview").html('<img src="' + data.zfbPraiseCode + '" alt="支付宝赞赏码" class="img-responsive img-rounded auto-shake">');
data.wxPraiseCode && $("#wxPraiseCodePreview").html('<img src="' + data.wxPraiseCode + '" alt="微信赞赏码" class="img-responsive img-rounded auto-shake">');
}
});
...
...
blog-core/src/main/java/com/zyd/blog/business/service/impl/SysConfigServiceImpl.java
浏览文件 @
37dec79d
...
...
@@ -85,7 +85,7 @@ public class SysConfigServiceImpl implements SysConfigService {
if
(
file
!=
null
)
{
FileUploader
uploader
=
new
GlobalFileUploader
();
VirtualFile
virtualFile
=
uploader
.
upload
(
file
,
FileUploadType
.
QRCODE
.
getPath
(),
true
);
this
.
saveConfig
(
key
,
virtualFile
.
getFilePath
());
this
.
saveConfig
(
key
,
virtualFile
.
getF
ullF
ilePath
());
}
}
...
...
blog-web/src/main/resources/static/js/zhyd.js
浏览文件 @
37dec79d
...
...
@@ -149,7 +149,7 @@ function initScrollMenu() {
}
var
PaymentUtils
=
window
.
payment
||
{
config
:
[{
url
:
appConfig
.
fileStoragePath
+
appConfig
.
zfbPraiseCode
,
desc
:
'
支付宝转账
'
},
{
url
:
appConfig
.
fileStoragePath
+
appConfig
.
wxPraiseCode
,
desc
:
'
微信转账
'
}],
config
:
[{
url
:
appConfig
.
zfbPraiseCode
,
desc
:
'
支付宝转账
'
},
{
url
:
appConfig
.
wxPraiseCode
,
desc
:
'
微信转账
'
}],
show
:
function
()
{
$
(
"
#reward
"
).
modal
(
'
show
'
);
this
.
change
(
0
);
...
...
blog-web/src/main/resources/templates/include/macros.ftl
浏览文件 @
37dec79d
...
...
@@ -90,15 +90,15 @@
<
#macro
praise
>
<
#if
config.wxPraiseCode
?
if_exists
||
config.zfbPraiseCode
?
if_exists
>
<h5
class=
"custom-title"
><i
class=
"fa fa-dollar fa-fw"
></i><strong>
鼓励一下
</strong><small></small></h5>
<div
class=
"col-sm-12 col-md-12"
>
<div
class=
"col-sm-12 col-md-12"
style=
"float: initial;"
>
<
#if
config.zfbPraiseCode
?
if_exists
>
<a
href=
"${config.
fileStoragePath}${config.
zfbPraiseCode}"
class=
"showImage"
title=
"支付宝收钱码"
rel=
"external nofollow"
>
<img
src=
"${config.
fileStoragePath}${config.
zfbPraiseCode}"
alt=
"支付宝收钱码"
class=
"img-rounded"
style=
"width: 250px;height: auto;"
>
<a
href=
"${config.zfbPraiseCode}"
class=
"showImage"
title=
"支付宝收钱码"
rel=
"external nofollow"
>
<img
src=
"${config.zfbPraiseCode}"
alt=
"支付宝收钱码"
class=
"img-rounded"
style=
"width: 250px;height: auto;"
>
</a>
</
#
if>
<
#if
config.wxPraiseCode
?
if_exists
>
<a
href=
"${config.
fileStoragePath}${config.
wxPraiseCode}"
class=
"showImage"
title=
"微信收钱码"
rel=
"external nofollow"
>
<img
src=
"${config.
fileStoragePath}${config.
wxPraiseCode}"
alt=
"微信收钱码"
class=
"img-rounded"
style=
"width: 250px;height: auto;"
>
<a
href=
"${config.wxPraiseCode}"
class=
"showImage"
title=
"微信收钱码"
rel=
"external nofollow"
>
<img
src=
"${config.wxPraiseCode}"
alt=
"微信收钱码"
class=
"img-rounded"
style=
"width: 250px;height: auto;"
>
</a>
</
#
if>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录