getNewsById()
getNewsById(integer $id, array $where = array()) : array
通过图文ID读取图文信息
Parameters
integer | $id | 本地图文ID |
array | $where | 额外的查询条件 |
Throws
- \think\db\exception\DataNotFoundException
- \think\db\exception\ModelNotFoundException
- \think\exception\DbException