Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
______--______
ShopXO
提交
094afbdd
ShopXO
项目概览
______--______
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
094afbdd
编写于
1月 03, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
前端展示友情链接
上级
3ede56f9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
20 deletion
+6
-20
application/index/controller/Common.php
application/index/controller/Common.php
+1
-1
application/service/LinkService.php
application/service/LinkService.php
+2
-16
thinkphp/tpl/think_exception.tpl
thinkphp/tpl/think_exception.tpl
+3
-3
未找到文件。
application/index/controller/Common.php
浏览文件 @
094afbdd
...
...
@@ -208,7 +208,7 @@ class Common extends Controller
$this
->
assign
(
'common_shop_notice'
,
MyC
(
'common_shop_notice'
));
// 友情链接
$link
=
LinkService
::
Link
ShowList
(
);
$link
=
LinkService
::
Link
List
([
'where'
=>
[
'is_enable'
=>
1
]]
);
$this
->
assign
(
'link_list'
,
$link
[
'data'
]);
}
...
...
application/service/LinkService.php
浏览文件 @
094afbdd
...
...
@@ -22,21 +22,6 @@ use app\service\GoodsService;
*/
class
LinkService
{
/**
* 前端展示
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2018-09-29
* @desc description
* @param [array] $params [输入参数]
*/
public
static
function
LinkShowList
(
$params
=
[])
{
$data
=
Db
::
name
(
'Link'
)
->
where
([
'is_enable'
=>
1
])
->
order
(
'sort asc'
)
->
select
();
return
DataReturn
(
'处理成功'
,
0
,
$data
);
}
/**
* 列表
* @author Devil
...
...
@@ -48,7 +33,8 @@ class LinkService
*/
public
static
function
LinkList
(
$params
=
[])
{
$data
=
Db
::
name
(
'Link'
)
->
order
(
'sort asc'
)
->
select
();
$where
=
empty
(
$params
[
'where'
])
?
[]
:
$params
[
'where'
];
$data
=
Db
::
name
(
'Link'
)
->
where
(
$where
)
->
order
(
'sort asc'
)
->
select
();
return
DataReturn
(
'处理成功'
,
0
,
$data
);
}
...
...
thinkphp/tpl/think_exception.tpl
浏览文件 @
094afbdd
...
...
@@ -410,9 +410,9 @@
<?php } ?>
<div
class=
"copyright"
>
<a
title=
"官方网站"
href=
"http://www.
thinkphp.cn"
>
ThinkPHP
</a>
<span>
V
<?php echo \think\facade\App::version()
; ?>
</span>
<span>
{
十年磨一剑-为API开发设计的高性能框架
}
</span>
<a
title=
"官方网站"
href=
"http://www.
shopxo.net"
>
ShopXO
</a>
<span>
<?php echo APPLICATION_VERSION
; ?>
</span>
<span>
{
国内领先企业级B2C免费开源电商系统!
}
</span>
</div>
<?php if(\think\facade\App::isDebug()) { ?>
<script>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录