validate()){ return $this->getModelError(); } \Yii::$app->user->logout(); UserToken::destory($this->user_id, $this->token_type, $this->cx_mch_id); return [ 'code' => 0, 'msg' => 'ok' ]; } }