This commit is contained in:
xman 2025-06-16 21:23:52 +08:00
parent a02eaeb3a8
commit e24f5f0449

View File

@ -156,7 +156,7 @@ class Dispatchrecord extends Backend
$dispatch->record_count ++; $dispatch->record_count ++;
//$params['admin_id'] = $this->auth->id; //$params['admin_id'] = $this->auth->id;
$result = $this->model->allowField(true)->save($params); $result = $this->model->allowField(true)->save($params);
$dispatch->save(); $dispatch->allowField(true)->save();
Db::commit(); Db::commit();
} catch (ValidateException|PDOException|Exception $e) { } catch (ValidateException|PDOException|Exception $e) {
Db::rollback(); Db::rollback();