提交 094afbdd 编写于 作者: D devil_gong

前端展示友情链接

上级 3ede56f9
......@@ -208,7 +208,7 @@ class Common extends Controller
$this->assign('common_shop_notice', MyC('common_shop_notice'));
// 友情链接
$link = LinkService::LinkShowList();
$link = LinkService::LinkList(['where'=>['is_enable'=>1]]);
$this->assign('link_list', $link['data']);
}
......
......@@ -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);
}
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册