示例#1
0
 public function actionUser($mode = false, $key = false, $id = false, $provider = false)
 {
     $response = User::Initial()->Run($mode, $key, $id, $provider)->getResponse();
     if (Yii::$app->request->isAjax) {
         echo json_encode($response['data']);
         exit;
     } else {
         return $this->render($response['render'], ['data' => $response['data']]);
     }
 }