* Return id when create object by api.

This commit is contained in:
holan20180123
2021-05-12 15:23:13 +08:00
parent 0d83fa5a31
commit 9fd362073f
4 changed files with 31 additions and 21 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ class groupModel extends model
unset($group->limited);
$group->role = 'limited';
}
return $this->dao->insert(TABLE_GROUP)->data($group)->batchCheck($this->config->group->create->requiredFields, 'notempty')->exec();
$this->dao->insert(TABLE_GROUP)->data($group)->batchCheck($this->config->group->create->requiredFields, 'notempty')->exec();
return $this->dao->lastInsertId();
}
/**