[ 'class' => ContentNegotiator::className(), 'formats' => [ 'application/json' => Response::FORMAT_JSON ], ] ]; } public function actionIndex() { $content = [ ]; return $content; } /** * @return stdClass */ public function actionErrorPageInfo() { $e = new stdClass(); $e->success = true; $e->head = ''; $e->content = ''; $req = Yii::$app->request; $code = $req->get('code'); if (UserStatus::BLOCK_STOP == $code) { $e->head = '账户被封'; $e->content = '该账户因违规操作已经被封'; } elseif (SysSettingModel::MAINTAIN_STOP == $code) { $siteInfo = SysSettingModel::getClientSiteInfo(); $e->head = $siteInfo['stop_head']; $e->content = $siteInfo['stop_content']; } else { } return $e; } public function actionMinaQuery() { //echo "mina query"; $xml = file_get_contents('php://input', 'r'); AppLog::DEBUG('== actionMinaQuery =='); } }