protected function _before_write(&$data)
 {
     parent::_before_write($data);
     if (!empty($data['user_pass']) && strlen($data['user_pass']) < 25) {
         $data['user_pass'] = sp_password($data['user_pass']);
     }
 }
 protected function _before_write(&$data)
 {
     parent::_before_write($data);
 }
Example #3
0
 /**
  * 后台有更新/编辑则删除缓存
  * @param type $data
  */
 public function _before_write(&$data)
 {
     parent::_before_write($data);
     F("Menu", NULL);
 }
 protected function _before_write(&$data)
 {
     parent::_before_write($data);
     $data['create_time'] = $this->mGetDate();
 }