Files
lsky-pro/application/index/controller/Index.php
T
WispX 3c0582ef9b up
2019-01-01 19:48:32 +08:00

27 lines
451 B
PHP

<?php
/**
* User: Wisp X
* Date: 2018/9/27
* Time: 下午4:00
* Link: https://github.com/wisp-x
*/
namespace app\index\controller;
use app\common\model\Images;
class Index extends Base
{
public function index()
{
$this->assign('imageCount', Images::count());
return $this->fetch();
}
public function api()
{
$this->assign('domain', $this->request->domain());
return $this->fetch();
}
}