* Fixed errors of the edit a api.

This commit is contained in:
tianshujie
2023-10-18 09:57:39 +08:00
parent 8db9e74727
commit daba96a0b7
2 changed files with 30 additions and 12 deletions
+2
View File
@@ -242,6 +242,8 @@ class apiModel extends model
->where('id')->eq($apiID)
->exec();
if(dao::isError()) return false;
$data->id = $apiID;
$apiSpec = $this->getApiSpecByData($data);
$this->dao->replace(TABLE_API_SPEC)->data($apiSpec)->exec();