常用方法
常用方法
常用方法
常用方法
protected function beforeSave() { if ($this->new_password) { $this->password = $this->encrypt($this->new_password); } return parent::beforeSave(); }
protected function beforeSave() { if ($this->new_password) { $this->password = $this->encrypt($this->new_password); } return parent::beforeSave(); }