OrderController.php
1.1 KB
<?php
// +----------------------------------------------------------------------
// | bronet [ 以客户为中心 以奋斗者为本 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
namespace app\portal\controller;
use cmf\controller\HomeBaseController;
use EasyWeChat\Foundation\Application;
use think\Db;
//订单
class OrderController extends CommentController
{
// 我要免押金
public function deposit()
{
$where_art['type'] = 3;
$where_art['status'] = array('neq',9);
$art = Db::name('Art')->where($where_art)->order('score desc,create_time desc')->limit(1)->find();
if($art){
$art['content'] = htmlspecialchars_decode($art['content']);
}
$this->assign('art',$art);
return $this->fetch('Order/deposit');
}
}