oldvalue = $this->value; $this->value = DefaultConfig::default_value($this->key)['value']; $this->operator_id = $user->id; $this->operator_name = ('[恢复默认] - ' . $user->user_name); $this->operator_email = $user->email; $this->last_update = time(); $this->save(); } }