refactor: 文章回收站相关接口修改
This commit is contained in:
@@ -50,7 +50,7 @@ class ArticleTrash
|
|||||||
return error('参数错误');
|
return error('参数错误');
|
||||||
}
|
}
|
||||||
|
|
||||||
$article = ArticleModel::onlyTrashed()->id($id)->find();
|
$article = ArticleModel::onlyTrashed()->bypk($id)->find();
|
||||||
if (is_null($article)) {
|
if (is_null($article)) {
|
||||||
return error('请确认操作对象');
|
return error('请确认操作对象');
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ class ArticleTrash
|
|||||||
return error('参数错误');
|
return error('参数错误');
|
||||||
}
|
}
|
||||||
|
|
||||||
$article = ArticleModel::onlyTrashed()->id($id)->find();
|
$article = ArticleModel::onlyTrashed()->bypk($id)->find();
|
||||||
if (is_null($article)) {
|
if (is_null($article)) {
|
||||||
return error('请确认操作对象');
|
return error('请确认操作对象');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user