function C20Pr() { $_IMPORT =& $this->IMPORT; //创建微信号系统自动创建接待大厅和取消关注组 if ($_IMPORT['f_wxin_1412311029_010'] != "") { $cPrsVAL["f_wxin_1501071059_001"] = "接待大厅"; //组名 $cPrsVAL["f_wxin_1501071059_002"] = 0; //用户数量 $cPrsVAL["f_wxin_1501071059_003"] = 1; //系统组 $cPrsVAL["f_wxin_1501071059_E01"] = $_IMPORT['f_wxin_1412311029_010']; //公众号 $cPrsVAL["IM_HND"] = "20"; $cPrsVAL["IM_PST"] = "1"; $cPrsVAL["IM_Range"] = "f_wxin_1501071059_000||0"; $mPrsVAL["f_wxin_1501071059_001"] = "取消关注"; //组名 $mPrsVAL["f_wxin_1501071059_002"] = 0; //用户数量 $mPrsVAL["f_wxin_1501071059_003"] = 1; //系统组 $mPrsVAL["f_wxin_1501071059_E01"] = $_IMPORT['f_wxin_1412311029_010']; //公众号 $mPrsVAL["IM_HND"] = "20"; $mPrsVAL["IM_PST"] = "1"; $mPrsVAL["IM_Range"] = "f_wxin_1501071059_000||0"; Common::Start("141231094102", "", $cPrsVAL); Common::Start("141231094102", "", $mPrsVAL); } parent::C20Pr(); }
function SaoYSao($WInfo, $DevInfo) { $_OBJECT =& $this->APPObj; $_IMPORT =& $this->IMPORT; $mMod = isset($_IMPORT["IM_Mod"]) ? $_IMPORT["IM_Mod"] : ""; //接入模块 $mUsrID = ""; $mUsrNA = ""; //获取设备接入历史数据 $sIf_AA = "{~}f_wire_1411121421_P01{_}=={_}" . $DevInfo["UserMac"] . "{~}f_wire_1411121421_010{_}=={_}" . $DevInfo["Vlan"]; $sRs_AA = $this->GetInfo($this->sSql, $sIf_AA); //获取关联的用户信息 $uIf_AA = "{~}f_wire_1506031750_003{_}%%{_}" . $DevInfo["UserMac"] . "|" . $DevInfo["Vlan"]; $uRs_AA = $this->GetInfo($this->uSql, $uIf_AA); if ($_OBJECT["DB"]->RowsCT($uRs_AA->Resval) == 0) { //检测是否存在关联用户 $AccUsrName = $this->MakeUsrID("SUR"); $uPrsVAL["f_wire_1506031750_P01"] = $AccUsrName; //接入用户ID $uPrsVAL["f_wire_1506031750_E01"] = $WInfo["Group"][2]; //用户分组 $uPrsVAL["f_wire_1506031750_002"] = "123456"; //登录密码 $uPrsVAL["f_wire_1506031750_003"] = $DevInfo["UserMac"] . "|" . $DevInfo["Vlan"]; //设备MAC $uPrsVAL["f_wire_1506031750_004"] = 0; //启用状态 $uPrsVAL["f_wire_1506031750_011"] = $AccUsrName; //接入用户名称 $uPrsVAL["AreID"] = $this->areID; //接入区域 $uPrsVAL["IM_PST"] = "1"; $uPrsVAL["IM_HND"] = "20"; $uPrsVAL["IM_Range"] = "f_wire_1506031750_000||0"; Common::Start("150605101704", "", $uPrsVAL); $mUsrID = $AccUsrName; //接入用户ID $mUsrNA = $AccUsrName; //接入用户名称 } else { $mUsrID = $uRs_AA->GetField("f_wire_1506031750_P01", 0); //接入用户ID $mUsrNA = $uRs_AA->GetField("f_wire_1506031750_011", 0); //接入用户名称 } //设备接入系统检测 $_IMPORT["f_wire_1411121421_002"] = $mUsrID; //接入用户ID $_IMPORT["f_wire_1411121421_003"] = $mUsrNA; //接入用户名称 $_IMPORT["f_wire_1411121421_011"] = 3; //认证模式 if ($_OBJECT["DB"]->RowsCT($sRs_AA->Resval) > 0) { //更新接入信息 $_IMPORT["IM_HND"] = "22"; $_IMPORT["IM_PST"] = "1"; $_IMPORT["IM_Range"] = "f_wire_1411121421_P01||" . $DevInfo["UserMac"]; $_IMPORT["IM_Where"] = "{~}f_wire_1411121421_010{_}=={_}" . $DevInfo["Vlan"]; parent::C22Pr(); } else { //新增接入信息 $_IMPORT["f_wire_1411121421_P01"] = $DevInfo["UserMac"]; //终端设备编号 $_IMPORT["f_wire_1411121421_004"] = $DevInfo["DevId"]; //AP出口名称 $_IMPORT["f_wire_1411121421_005"] = 1; //状态,0-禁用,1-启用 $_IMPORT["f_wire_1411121421_006"] = date('Y-m-d H:i:s', time()); //接入时间 $_IMPORT["f_wire_1411121421_007"] = $DevInfo["Params"]; //跳转参数 $_IMPORT["f_wire_1411121421_009"] = $mMod; //接入模式 $_IMPORT["f_wire_1411121421_010"] = $DevInfo["Vlan"]; //vlan $_IMPORT["IM_HND"] = "20"; $_IMPORT["IM_PST"] = "1"; $_IMPORT["IM_Range"] = "f_wire_1411121421_000||0"; parent::C20Pr(); } }