bug修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user