bug修改

This commit is contained in:
wong
2025-09-28 18:06:18 +08:00
parent 9fa09bb743
commit a923615190
3 changed files with 19 additions and 1 deletions

View File

@@ -11,6 +11,23 @@ use library\ResponseHelper;
class ContentController extends BaseController
{
//===================================================== 素材管理 =====================================================
public function getAllMaterial(){
$keyword = $this->request->param('keyword', '');
$userId = $this->getUserInfo('id');
$companyId = $this->getUserInfo('companyId');
$query = Material::where(['userId' => $userId,'companyId' => $companyId,'isDel' => 0,'status' => 1])
->field('id,title,cover')
->order('id desc');
$list = $query->select()->toArray();
return ResponseHelper::success($list);
}
/**
* 素材列表
* @return \think\response\Json