Update View.php

This commit is contained in:
邹景立 2021-05-10 12:48:18 +08:00
parent e5a3816acb
commit eb4395ddc0

View File

@ -28,7 +28,7 @@ class View extends Controller
/** /**
* 图文列表展示 * 图文列表展示
* @param integer $id 图文ID编号 * @param string|integer $id 图文ID编号
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
@ -42,7 +42,7 @@ class View extends Controller
/** /**
* 文章内容展示 * 文章内容展示
* @param integer $id 文章ID编号 * @param string|integer $id 文章ID编号
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
@ -104,5 +104,4 @@ class View extends Controller
$this->title = strip_tags(input('title', ''), '<a><img>'); $this->title = strip_tags(input('title', ''), '<a><img>');
$this->fetch(); $this->fetch();
} }
} }