Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Try fix issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed May 1, 2020
1 parent 0c132a7 commit 831359d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/AdminAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function actionSetPage()
$page->is_close_comment = $isCloseComment;
$page->save();

$page = $page->where('id', '=', $page->lastId())->findAll()->asArray();
return $this->success('页面已更新', $page[0]);
$page = self::getPagesTable()->where('page_key', '=', $pageKey)->findAll()->asArray();
return $this->success('页面已更新', $page[0] ?? []);
}
}

0 comments on commit 831359d

Please sign in to comment.