public function initialize()
 {
     $this->setConnectionService('db');
     // 可修改连接的数据库
     $this->addBehavior(new SoftDelete(array('field' => 'isdeleted', 'value' => BaseModel::DELETED)));
     $operationLog = new OperationLog();
     $cacheToken = json_decode($this->getDI()->getSession()->get('token'));
     if (null !== $cacheToken) {
         // 一些公共的接口是没有登录信息的
         $operationLog->setUserId($cacheToken->user_id);
     }
     $this->addBehavior($operationLog);
 }