优化webman-buildadmin框架

This commit is contained in:
2026-03-19 16:30:10 +08:00
parent 6b8dfcc441
commit eb0be3fba6
7 changed files with 58 additions and 17 deletions

View File

@@ -97,6 +97,9 @@ trait Backend
if ($this->dataLimit && $this->dataLimitFieldAutoFill) {
$data[$this->dataLimitField] = $this->auth->id;
}
if ($this->autoFillAdminId && $this->dataLimitField === 'admin_id') {
$data['admin_id'] = $this->auth->id;
}
$result = false;
$this->model->startTrans();