renderSuccess($data); } public function verifyTicket() { $xmlData = file_get_contents("php://input"); $obj = new \app\common\library\wxserver\Server(); $obj->getVerifyTicket($xmlData); echo 'success'; } /** * @notes:授权回调 * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author: wanghousheng */ 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'; } public function callback($appid) { echo 'success'; } }