This commit is contained in:
hufangzhou
2022-04-26 16:12:26 +08:00
parent fe221fec43
commit 21197a36da
+3 -3
View File
@@ -160,16 +160,16 @@ class apiModel extends model
*/
public function updateStruct($id)
{
$old = $this->dao->findByID($id)->from(TABLE_APISTRUCT)->fetch();
$now = helper::now();
$data = fixer::input('post')
->skipSpecial('attribute')
->add('lib', $struct->lib)
->add('lib', $old->lib)
->add('editedBy', $this->app->user->account)
->add('editedDate', $now)
->get();
$old = $this->dao->findByID($id)->from(TABLE_APISTRUCT)->fetch();
unset($data->addedBy);
unset($data->addedDate);