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

38 lines
777 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?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'])->select();
}
/**
* 帮助详情
* @param $help_id
* @return null|static
* @throws \think\exception\DbException
*/
public static function detail($help_id)
{
return self::get($help_id);
}
}