Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
6a5e5ab0
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6a5e5ab0
编写于
5月 26, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
隐私协议优化
上级
3e1dc0c9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
7 deletion
+5
-7
application/admin/controller/Common.php
application/admin/controller/Common.php
+1
-3
application/admin/view/default/agreement/nav.html
application/admin/view/default/agreement/nav.html
+2
-2
application/index/controller/Agreement.php
application/index/controller/Agreement.php
+2
-2
未找到文件。
application/admin/controller/Common.php
浏览文件 @
6a5e5ab0
...
...
@@ -270,12 +270,10 @@ class Common extends Controller
// 站点商店信息
$site_store_info
=
StoreService
::
SiteStoreInfo
();
//print_r($site_store_info);
if
(
empty
(
$site_store_info
))
{
$res
=
StoreService
::
SiteStoreAccountsBindHandle
();
if
(
$res
[
'code'
]
==
0
)
if
(
!
empty
(
$res
)
&&
isset
(
$res
[
'code'
])
&&
$res
[
'code'
]
==
0
)
{
$site_store_info
=
StoreService
::
SiteStoreInfo
();
}
...
...
application/admin/view/default/agreement/nav.html
浏览文件 @
6a5e5ab0
...
...
@@ -5,7 +5,7 @@
</li>
{{/foreach}}
</ul>
<div
class=
"am-alert am-margin-
sm
"
data-am-alert
>
<div
class=
"am-alert am-margin-
horizontal-sm am-margin-bottom-0
"
data-am-alert
>
<button
type=
"button"
class=
"am-close"
>
×
</button>
<p>
前端访问协议地址增加参数 is_content=
0
则仅展示纯协议内容
</p>
<p>
前端访问协议地址增加参数 is_content=
1
则仅展示纯协议内容
</p>
</div>
\ No newline at end of file
application/index/controller/Agreement.php
浏览文件 @
6a5e5ab0
...
...
@@ -63,8 +63,8 @@ class Agreement extends Common
$data
=
$ret
[
'data'
];
}
// 是否
隐藏头尾、默认显示
$is_content
=
isset
(
$params
[
'is_content'
])
?
intval
(
$params
[
'is_content'
])
:
1
;
// 是否
仅展示内容
$is_content
=
(
isset
(
$params
[
'is_content'
])
&&
$params
[
'is_content'
]
==
1
)
?
0
:
1
;
$this
->
assign
(
'is_header'
,
$is_content
);
$this
->
assign
(
'is_footer'
,
$is_content
);
$this
->
assign
(
'data'
,
$data
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录