This commit is contained in:
wispx
2018-12-29 17:23:51 +08:00
parent 96f0384646
commit 2dc068110a
+1 -1
View File
@@ -152,7 +152,7 @@ class User extends Base
public function moveImages($ids = [], $folderId)
{
if ($this->request->isPost()) {
if (Folders::where('id', $folderId)->count()) {
if ($this->user->folders()->where('id', $folderId)->count()) {
if (Images::where('id', 'in', $ids)->setField('folder_id', $folderId)) {
return $this->success('移动成功');
}