This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/common/model/WxappHelp.php
2020-08-28 10:38:52 +08:00

38 lines
803 B
PHP

<?php
namespace app\common\model;
/**
* 小程序帮助中心
* Class WxappHelp
* @package app\common\model
*/
class WxappHelp extends BaseModel
{
protected $name = 'wxapp_help';
/**
* 获取帮助列表
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getList()
{
return $this->order(['sort' => 'asc', $this->getPk() => 'desc'])->select();
}
/**
* 帮助详情
* @param $help_id
* @return null|static
* @throws \think\exception\DbException
*/
public static function detail($help_id)
{
return self::get($help_id);
}
}