本人这几天也在整ROS的HOTSPOT。感觉他这个就简单得多,为什么简单呢,他的面页可以自己改。改完了可以达到您所想要的,这个树熊做到了,唯一不足就是微信认证。ROS上做微信认证很简单很简单。怎么简单法?看下面代码
<html>
<head><title>....</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<center>If you are not redirected in a few seconds, click 'continue' below<br>
<form name="redirect" action="http://192.168.1.22/Home/" method="post">
<input type="hidden" name="mac" value="$(mac)">//隐藏域包含MAC
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="username" value="$(username)">//登录用户名
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
<input type="hidden" name="chap-id" value="$(chap-id)"
<input type="hidden" name="chap-challenge" value="$(chap-challenge)">
<input type="hidden" name="link-login-only" value="$(link-login-only)">
<input type="hidden" name="link-orig-esc" value="$(link-orig-esc)">//网关认证地址
<input type="hidden" name="mac-esc" value="$(mac-esc)">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
document.redirect.submit();
//-->
</script>
</body>
</html>
上面代码是ROS HOTSPOT的LOGIN.HTML代码,懂WEB前端的能理解其中的意思。
我们所要做的就是在微信公众平台设置一条文本回复,回复一条带认证参数的链接,这条链接直接返回到ROS上。由ROS来处理剩下的事情。至于带什么参数,都是自己定的,而且是公用的。等于说每个公众平台都可以用这条链接。而不需要去更改已正常运营的微信平台。补充一下回复链。可以直接回复:点击<a href="http://10.5.50.1/login?username=admin&password=&dst=http://192.168.1.22/auth/">我要上网</a>完成验证。
这些都是在已有微信平台的基础上实现的,根本就不需要去修改url和token。