* Refactore zanodeModel::restoreSnapshot.

This commit is contained in:
xieqiyu
2023-12-27 14:06:03 +08:00
parent bdf25de232
commit bf4e2d991e
6 changed files with 103 additions and 14 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ class zanode extends control
public function restoreSnapshot(int $nodeID, int $snapshotID)
{
$this->zanode->restoreSnapshot($nodeID, $snapshotID);
if(dao::isError()) return $this->sendError(dao::getError());
if(dao::isError()) return $this->sendError(dao::getError(), true);
return $this->sendSuccess(array('message' => $this->lang->zanode->actionSuccess, 'load' => true));
}