{"action":"created","issue":{"url":"https://api.github.com/repos/claw6148/EsDialerGD/issues/10","repository_url":"https://api.github.com/repos/claw6148/EsDialerGD","labels_url":"https://api.github.com/repos/claw6148/EsDialerGD/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/claw6148/EsDialerGD/issues/10/comments","events_url":"https://api.github.com/repos/claw6148/EsDialerGD/issues/10/events","html_url":"https://github.com/claw6148/EsDialerGD/issues/10","id":358463463,"node_id":"MDU6SXNzdWUzNTg0NjM0NjM=","number":10,"title":"2018.9.10测试KEEP解码之后貌似为乱码","user":{"login":"TheSmallMain","id":28684663,"node_id":"MDQ6VXNlcjI4Njg0NjYz","avatar_url":"https://avatars0.githubusercontent.com/u/28684663?v=4","gravatar_id":"","url":"https://api.github.com/users/TheSmallMain","html_url":"https://github.com/TheSmallMain","followers_url":"https://api.github.com/users/TheSmallMain/followers","following_url":"https://api.github.com/users/TheSmallMain/following{/other_user}","gists_url":"https://api.github.com/users/TheSmallMain/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSmallMain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSmallMain/subscriptions","organizations_url":"https://api.github.com/users/TheSmallMain/orgs","repos_url":"https://api.github.com/users/TheSmallMain/repos","events_url":"https://api.github.com/users/TheSmallMain/events{/privacy}","received_events_url":"https://api.github.com/users/TheSmallMain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-10T04:23:29Z","updated_at":"2018-09-13T05:06:44Z","closed_at":null,"author_association":"NONE","body":"如题，请问是否解码文件出现变化，还有希望能出一个解码的文章"},"comment":{"url":"https://api.github.com/repos/claw6148/EsDialerGD/issues/comments/420884697","html_url":"https://github.com/claw6148/EsDialerGD/issues/10#issuecomment-420884697","issue_url":"https://api.github.com/repos/claw6148/EsDialerGD/issues/10","id":420884697,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDg4NDY5Nw==","user":{"login":"TheSmallMain","id":28684663,"node_id":"MDQ6VXNlcjI4Njg0NjYz","avatar_url":"https://avatars0.githubusercontent.com/u/28684663?v=4","gravatar_id":"","url":"https://api.github.com/users/TheSmallMain","html_url":"https://github.com/TheSmallMain","followers_url":"https://api.github.com/users/TheSmallMain/followers","following_url":"https://api.github.com/users/TheSmallMain/following{/other_user}","gists_url":"https://api.github.com/users/TheSmallMain/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSmallMain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSmallMain/subscriptions","organizations_url":"https://api.github.com/users/TheSmallMain/orgs","repos_url":"https://api.github.com/users/TheSmallMain/repos","events_url":"https://api.github.com/users/TheSmallMain/events{/privacy}","received_events_url":"https://api.github.com/users/TheSmallMain/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T05:06:44Z","updated_at":"2018-09-13T05:06:44Z","author_association":"NONE","body":"> hello\r\n> \r\n> http_req_send确实没正常工作，curl的callback函数curl_recv_cb有个地方写得不对，改了之后本地测试过了。\r\n> \r\n> 想问一下在你这边，get_basic_info中的http_req_send返回的内容是什么？\r\n> 我这里是：\r\n> \r\n> ```\r\n> <html>\r\n> <head>\r\n> <script type=\"text/javascript\">location.href=\"http://125.88.59.131:10001/?wlanacip=219.128.230.1&wlanuserip=10.XX.XX.XX\"</script>\r\n> </head>\r\n> <body>\r\n> Authentication is required. Click <a href=\"http://125.88.59.131:10001/?wlanacip=219.128.230.1&wlanuserip=10.XX.XX.XX\">here</a> to open the authentication page.\r\n> </body>\r\n> </html>\r\n> ```\r\n> 因此在我这边根据`>location.href=`能获取到redir_url\r\n\r\n感谢，希望能解决，我们这访问任何一个网页会先是一个 302 重定向到\r\n\r\nhttp://enet.10000.gd.cn:10001/?wlanacip=113.98.172.69&wlanuserip=10.110.32.4\r\n\r\n如果是普通的 UA 访问，内容是：\r\n```\r\n\r\n\r\n  |  \r\n-- | --\r\n  |  \r\n  |  \r\n  | <!doctype html>\r\n  | <html class=\"no-js\">\r\n  | <head>\r\n  | <meta charset=\"utf-8\">\r\n  | <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n  | <meta name=\"description\" content=\"\">\r\n  | <meta name=\"keywords\" content=\"\">\r\n  | <meta name=\"viewport\"\r\n  | content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\">\r\n  | <title>天翼校园网</title>\r\n  |  \r\n  | <!-- Set render engine for 360 browser -->\r\n  | <meta name=\"renderer\" content=\"webkit\">\r\n  |  \r\n  | <!-- No Baidu Siteapp-->\r\n  | <meta http-equiv=\"Cache-Control\" content=\"no-siteapp\"/>\r\n  |  \r\n  | <link rel=\"icon\" type=\"image/png\" href=\"assets/i/favicon.png\">\r\n  |  \r\n  | <!-- Add to homescreen for Chrome on Android -->\r\n  | <meta name=\"mobile-web-app-capable\" content=\"yes\">\r\n  | <link rel=\"icon\" sizes=\"192x192\" href=\"assets/i/app-icon72x72@2x.png\">\r\n  |  \r\n  | <!-- Add to homescreen for Safari on iOS -->\r\n  | <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\r\n  | <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\r\n  | <meta name=\"apple-mobile-web-app-title\" content=\"Amaze UI\"/>\r\n  | <link rel=\"apple-touch-icon-precomposed\" href=\"assets/i/app-icon72x72@2x.png\">\r\n  |  \r\n  | <!-- Tile icon for Win8 (144x144 + tile color) -->\r\n  | <meta name=\"msapplication-TileImage\" content=\"assets/i/app-icon72x72@2x.png\">\r\n  | <meta name=\"msapplication-TileColor\" content=\"#0e90d2\">\r\n  |  \r\n  | <!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->\r\n  | <!--\r\n  | <link rel=\"canonical\" href=\"http://www.example.com/\">\r\n  | -->\r\n  |  \r\n  | <link rel=\"stylesheet\" href=\"assets/css/amazeui.css\">\r\n  | <link rel=\"stylesheet\" href=\"assets/css/custom.css\">\r\n  | <script type=\"text/javascript\">\r\n  | function loadan() {\r\n  | $.ajax({\r\n  | type : 'POST',\r\n  | url : '/announcement.do?method=json',\r\n  | cache : false,\r\n  | dataType : 'json',\r\n  | success : function(data, textStatus) {\r\n  | if(data.anns == null \\|\\| data.anns.length == 0) {\r\n  | $(\"#an_content\").append(\"暂时没有公告内容\");\r\n  | } else {\r\n  | $.each(data.anns, function(i, row) {\r\n  | $(\"#an_content\").append(\"<a href='\" + row.url + \"' target='_blank'>\"  + (i+1) + \"、\"+ row.title + \"</a>\");\r\n  | $(\"#an_content\").append(\"<br/>\");\r\n  | });\r\n  | }\r\n  |  \r\n  | if(data.moreurl != null) {\r\n  | $(\"#more\").append(\"more>>\");\r\n  | $(\"#more\").attr(\"href\",data.moreurl);\r\n  | }\r\n  | }\r\n  | });\r\n  | }\r\n  |  \r\n  | function getQueryString(name) {\r\n  | var reg = new RegExp(\"(^\\|&)\" + name + \"=([^&]*)(&\\|$)\", \"i\");\r\n  | var r = location.search.substr(1).match(reg);\r\n  | if (r != null) return unescape(decodeURI(r[2])); return null;\r\n  | }\r\n  |  \r\n  | function addPasswordUrl() {\r\n  | $(\"#passwordurl\").click(function(){\r\n  | window.open(\"password.jsp?wlanuserip=\" + getQueryString(\"wlanuserip\") + \"&wlanacip=\" + getQueryString(\"wlanacip\") );\r\n  | });\r\n  | }\r\n  | </script>\r\n  | <style type=\"text/css\">\r\n  | .banner_02\r\n  | {\r\n  | width:100%;\r\n  | height:400px;\r\n  | background-image: url(assets/images/banner02.png);\r\n  | background-repeat: no-repeat;\r\n  | background-color: #a2d3c0;\r\n  | overflow:hidden;\r\n  | }\r\n  |  \r\n  | .dl{\r\n  | margin-left: auto;\r\n  | margin-right: auto;\r\n  | margin-top: 220px;\r\n  | overflow:hidden;\r\n  | }\r\n  | .dl_2{\r\n  | float: right;\r\n  | margin-right: 20px;\r\n  | overflow:hidden;\r\n  | }\r\n  | .dl_2_d{\r\n  | margin-bottom: 3px;\r\n  | }\r\n  | </style>\r\n  | </head>\r\n  | <body onload=\"loadan();addPasswordUrl();\">\r\n  |  \r\n  | <!-- 页面内容 开发时删除 -->\r\n  | <div class=\"am-g am-g-fixed\">\r\n  | <div class=\"am-u-sm-12\">\r\n  | <img src=\"assets/images/logo.jpg\" class=\"am-img-responsive\">\r\n  | </div>\r\n  | </div>\r\n  | <div class=\"am-g am-g-fixed am-margin-top\">\r\n  | <div class=\"am-u-sm-12 am-u-md-8\">\r\n  | <div class=\"am-container\">\r\n  | <div class=\"am-u-sm-6 am-u-md-3\" style=\"padding: 2px;\">\r\n  | <button type=\"button\" class=\"am-btn  am-btn-primary am-btn-block am-radius\" onclick=\"window.open('http://zsteduapp.10000.gd.cn/index.html?schoolid=203')\">客户端下载</button>\r\n  | </div>\r\n  | <div class=\"am-u-sm-6 am-u-md-3\" style=\"padding: 2px;\">\r\n  | <button type=\"button\" class=\"am-btn  am-btn-success am-btn-block am-radius\" onclick=\"window.open('http://zsteduapp.10000.gd.cn/More/QuickStartGuide/index.html?schoolid=203')\">快速入门</button>\r\n  | </div>\r\n  | <div class=\"am-u-sm-6 am-u-md-3\" style=\"padding: 2px;\">\r\n  | <button type=\"button\" class=\"am-btn  am-btn-secondary am-btn-block am-radius\" onclick=\"window.open('http://zsteduapp.10000.gd.cn/More/Faultguideline/01.html?schoolid=203')\">故障指引</button>\r\n  | </div>\r\n  | <div class=\"am-u-sm-6 am-u-md-3\" style=\"padding: 2px;\">\r\n  | <button id=\"passwordurl\" type=\"button\" class=\"am-btn  am-btn-warning am-btn-block am-radius\">密码修改</button>\r\n  | </div>\r\n  | </div>\r\n  | <div style=\"margin-top:10px;\">\r\n  | <img src=\"assets/images/banner01.png\" class=\"am-img-responsive\">\r\n  | </div>\r\n  | <div class=\"banner_02  am-show-lg-only\">\r\n  | <!--\r\n  | <div class=\"dl\">\r\n  | <div class=\"dl_2\"><img src=\"app/images/ios_2.png\" width=\"150\" height=\"170\" alt=\"\"/></div>\r\n  | <div class=\"dl_2\"><img src=\"app/images/android_2.png\" width=\"150\" height=\"170\" alt=\"\"/></div>\r\n  | <div class=\"dl_2\">\r\n  | <div class=\"dl_2_d\"><a href=\"http://zsteduapp.10000.gd.cn/EsurfingClient/GetClient.aspx?areaCode=gd&amp;osType=windows&amp;dialType=portal\r\n  | \" target=\"_blank\"><img src=\"app/images/win.png\" width=\"150\" height=\"40\" alt=\"\"/></a></div>\r\n  | <div class=\"dl_2_d\"><a href=\"http://zsteduapp.10000.gd.cn/EsurfingClient/GetClient.aspx?areaCode=gd&amp;osType=androidPhone&amp;dialType=portal\" target=\"_blank\"><img src=\"app/images/android.png\" width=\"150\" height=\"40\" alt=\"\"/></a></div>\r\n  | <div class=\"dl_2_d\"><a href=\"http://zsteduapp.10000.gd.cn/EsurfingClient/GetClient.aspx?areaCode=gd&amp;osType=iOSPhone&amp;dialType=portal\r\n  | \" target=\"_blank\"><img src=\"app/images/ios.png\" width=\"150\" height=\"40\" alt=\"\"/></a></div>\r\n  | <div class=\"dl_2_d\"><a href=\"http://zsteduapp.10000.gd.cn/EsurfingClient/GetClient.aspx?areaCode=gd&amp;osType=macos&amp;dialType=portal\r\n  | \" target=\"_blank\"><img src=\"app/images/mac.png\" width=\"150\" height=\"40\" alt=\"\"/></a></div>\r\n  | </div></div>\r\n  | -->\r\n  | <div style=\"margin-top:210px;margin-left: 100px;\"><iframe src=\"http://zsteduapp.10000.gd.cn/index_yx.html?schoolid=203\" width=\"540px\" height=\"200px\"></iframe></div>\r\n  | </div>\r\n  | </div>\r\n  | <div class=\"am-u-sm-12 am-u-md-4\">\r\n  | <div class=\"am-panel am-panel-primary\">\r\n  | <header class=\"am-panel-hd\">\r\n  | <h3 class=\"am-panel-title\"><span>学校公告</span> <a id=\"more\" target=\"_blank\" style=\"float: right;\" href=\"javascript:void\"></a></h3>\r\n  | </header>\r\n  | <div class=\"am-panel-bd\" id=\"an_content\">\r\n  | </div>\r\n  | </div>\r\n  | </div>\r\n  | <div class=\"am-u-sm-12 am-u-md-4\">\r\n  | <div class=\"am-panel am-panel-primary\">\r\n  | <header class=\"am-panel-hd\">\r\n  | <h3 class=\"am-panel-title\">天翼客户端使用说明</h3>\r\n  | </header>\r\n  | <div class=\"am-panel-bd\">\r\n  | <strong>一、为什么要用天翼校园客户端？</strong><br>\r\n  | <small>天翼校园客户端是实现多类型终端上网的重要工具！使用客户端拨号，电脑、手机、平板都能联网，上网更方便，信息更安全，网络更稳定！</small><br>\r\n  | <strong>二、使用天翼校园客户端有什么条件？</strong><br>\r\n  | <small>只要是校园电信宽带用户，即可实现一人一号多终端。</small><br>\r\n  | <strong>三、若天翼校园客户端出现使用问题怎么办？</strong><br>\r\n  | <small>请点击查看“故障指引”，可根据提示错误码进行自行排查处理，谢谢。</small>\r\n  | </div>\r\n  | </div>\r\n  | </div>\r\n  | </div>\r\n  |  \r\n  | <!-- 以上页面内容 开发时删除 -->\r\n  |  \r\n  | <!--[if lt IE 9]>\r\n  | <script src=\"http://libs.baidu.com/jquery/1.11.1/jquery.min.js\"></script>\r\n  | <script src=\"http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js\"></script>\r\n  | <script src=\"assets/js/polyfill/rem.min.js\"></script>\r\n  | <script src=\"assets/js/polyfill/respond.min.js\"></script>\r\n  | <script src=\"assets/js/amazeui.legacy.js\"></script>\r\n  | <![endif]-->\r\n  |  \r\n  | <!--[if (gte IE 9)\\|!(IE)]><!-->\r\n  | <script src=\"assets/js/jquery.min.js\"></script>\r\n  | <script src=\"assets/js/amazeui.min.js\"></script>\r\n  | <!--<![endif]-->\r\n  |  \r\n  | </body>\r\n  | </html>\r\n  |  \r\n\r\n\r\n```\r\n\r\n——————\r\n\r\n暂时不好用 CCTP 来截取，但是以下可以确认：\r\n\r\n得到302重定向的网址后，就得到了 wlanuserip ，然后使用 CCTP 访问这个网址，里面会包含 ticket 和 auth 的正确 url 。现在确认的是我和我朋友的两间学校都是 302 重定向，而不是现在这个代码的获取方式。"}}
{"actor":{"display_login":"TheSmallMain"}}