Example #1
0
	public function login($token,$openid) {
		$thisRouter=M('Router')->where(array('token'=>$token))->find();
		$wxuser=M('Wxuser')->where(array('token'=>$token))->find();
		$str='source_id='.$openid.'&target_id='.$wxuser['weixin'].'&type=1';
		$enstr=Router::ecryptdString($str,substr(trim(C('router_key')),0,16));
		//return 'http://verify.Saivi.cn/login/?gw_address=192.168.1.1&gw_port=2060&gw_id='.$thisRouter['gw_id'].'&mac=f8:2f:a8:f8:0e:39&url=wwws.Saivi.cn/index.html?a='.$enstr.'&b='.substr(trim(C('router_key')),0,16);
		return 'http://vvvv.Saivi.cn/verify.wifi?a='.$enstr.'&b='.substr(trim(C('router_key')),0,16);
	}