增加分类

This commit is contained in:
Alone
2024-06-17 16:26:13 +08:00
parent 4ea74f9551
commit 3dd3fd6a3e
11 changed files with 739 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace app\model;
use app\model\QfShop;
class SourceCategory extends QfShop
{
/**
* 获取列表
* @access public
* @param array $data 外部数据
* @return array|false
* @throws
*/
public function getList(array $data)
{
// 搜索条件
$map = [];
$map[] = ['status', '=', 0];
$result = $this->where($map)->order('sort', 'desc')->select();
return $result;
}
}