getVerifyTicket($xmlData); echo 'success'; } public function redirect() { $authorization_code = $this->request->get('auth_code'); if ($authorization_code) { $obj = new \app\common\library\wxserver\Server(); $obj->authorizationInfo($authorization_code); } echo 'success'; } }