Xj.php
610 字节
<?php
namespace app\app\controller;
use app\common\controller\Frontend;
use think\Db;
/**
* 巡检APP下载页
* Class Xj
*/
class Xj extends Frontend
{
protected $noNeedLogin = '*';
protected $noNeedRight = '*';
protected $layout = '';
/**
* 巡检APP下载
*/
public function index()
{
$where = [
"app_type" => "xunjian",
"status" => "1"
];
$version = Db::name("appversion")->where($where)->order("version desc")->find();
$this->view->assign("version", $version);
return $this->view->fetch();
}
}