Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

goto e4kMe; MKZw_: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/doorapi.php'; goto y4qn5; ska2S: eiP1l: goto CqPtT; Va9Gv: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/thirdapi.php'; goto dMxJc; u2iKR: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/rhinfo.php'; goto p2qqA; p2qqA: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/model.php'; goto M1Gmp; e4kMe: if (defined('IN_IA')) { goto eiP1l; } goto f71n_; dMxJc: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/function.php'; goto B0Ch4; f71n_: exit('Access Denied'); goto ska2S; M1Gmp: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/payapi.php'; goto f7Egq; y4qn5: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/devapi.php'; goto Va9Gv; Wz3eS: require_once IA_ROOT . '/addons/rhinfo_zyxq/model.php'; goto u2iKR; f7Egq: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/rhinfo/carapi.php'; goto MKZw_; CqPtT: require_once IA_ROOT . '/addons/rhinfo_zyxq/define.php'; goto Wz3eS; B0Ch4: class Rhinfo_zyxqModuleSite extends WeModuleSite { public $syscfg = array(); public $syspub = array(); public $mywe = array(); public $rhinfo_wap = false; public $rhinfo_isweixin = true; public $rhinfo_isalipay = false; public $calmethod = array(array("id" => 1, "title" => "按建筑面积"), array("id" => 2, "title" => "按使用面积"), array("id" => 3, "title" => "按附加面积"), array("id" => 4, "title" => "按住户"), array("id" => 9, "title" => "按住户*关联车位数量"), array("id" => 5, "title" => "按车位"), array("id" => 10, "title" => "按关联车位"), array("id" => 11, "title" => "按关联车位使用面积"), array("id" => 6, "title" => "按使用数量"), array("id" => 7, "title" => "按承租人"), array("id" => 8, "title" => "按承租面积")); public $paytype = array("20" => "混合支付", "12" => "POS收款", "11" => "微信支付(补)", "13" => "支付宝(补)", "14" => "冲预收(水费)", "15" => "冲预收(电费)", "10" => "个人微信收款", "9" => "现金", "8" => "冲预收", "7" => "其他", "1" => "微信支付", "2" => "支付宝", "3" => "银联刷卡", "4" => "生活交费", "5" => "银行托收", "6" => "减免"); public function __construct() { goto kLNOs; XI_1Z: if (!($_GPC['appcfrom'] == 'thinmoo' && !empty($_GPC['appmobile']))) { goto m0PYl; } goto WcA2f; IaayC: $uid = $user['uid']; goto NCgMg; KAzi_: $this->mymsg('error', '登录失败', ''); goto GtfEn; C44P0: ABYj9: goto w8fav; X3ixg: $data = array("uniacid" => $_W['uniacid'], "salt" => random(8), "groupid" => $default_groupid, "createtime" => TIMESTAMP); goto JK8cF; ru2fd: $sql .= ' AND `mobile`=:mobile'; goto qpxSc; K3utU: $this->mymsg('error', '请输入正确的手机号码', ''); goto dOKjd; rJI8G: MUMLz: goto iHIVB; AwOKs: $data['password'] = md5('123456' . $data['salt'] . 'rhinfo'); goto OIXIb; w8fav: m0PYl: goto EoqQ0; bzZ5y: SRH9j: goto C44P0; dOKjd: goto ABYj9; goto Sl26_; uFS4T: $pars = array(); goto GEczY; Sl26_: O2Wj2: goto ru2fd; kLNOs: global $_W, $_GPC; goto XI_1Z; RhvC3: dBcTb: goto uA01u; GtfEn: goto SRH9j; goto yjfLm; iHIVB: if (_my_login($uid)) { goto FaF2L; } goto KAzi_; qpxSc: $pars[':mobile'] = $_GPC['appmobile']; goto sgKZk; GEczY: $pars[':uniacid'] = $_W['uniacid']; goto N3Ut_; WcA2f: myload()->model('member'); goto B1lCb; sgKZk: $user = pdo_fetch($sql, $pars); goto qZN2X; yjfLm: FaF2L: goto bzZ5y; B1lCb: $sql = 'SELECT `uid`,`salt`,`password` FROM ' . tablename('mc_members') . ' WHERE `uniacid`=:uniacid'; goto uFS4T; qZN2X: if (empty($user)) { goto dBcTb; } goto IaayC; JK8cF: $data['mobile'] = $_GPC['appmobile']; goto AwOKs; NCgMg: goto MUMLz; goto RhvC3; uA01u: $default_groupid = pdo_fetchcolumn('SELECT groupid FROM ' . tablename('mc_groups') . ' WHERE uniacid = :uniacid AND isdefault = 1', array(":uniacid" => $_W['uniacid'])); goto X3ixg; OIXIb: pdo_insert('mc_members', $data); goto n0dD4; n0dD4: $uid = pdo_insertid(); goto rJI8G; N3Ut_: if (preg_match(REGULAR_MOBILE, $_GPC['appmobile'])) { goto O2Wj2; } goto K3utU; EoqQ0: } public function my_check_web() { goto XneTN; KooHB: rMIrQ: goto UBKNa; u7Ruk: Vv1J6: goto s8q3G; qma7l: goto S3hRS; goto BXMYU; huSZU: goto odF0B; goto u7Ruk; yns3b: goto YT0TY; goto n4TTE; lPW9Y: CODLm: goto DSzzg; fuwu_: $_W['usercfrom'] = 1; goto huSZU; SOmcN: if (!empty($mywe['uid'])) { goto Dk6mN; } goto iPTIQ; BXMYU: OWu8R: goto DnAnD; W6poC: goto PRG1n; goto RkO83; Pq0Dx: $module = pdo_fetch($sql, array(":name" => "rhinfo_zyxq")); goto gUOkX; eVUnT: $sql = 'select * from ' . tablename('rhinfo_zyxq_syspub'); goto FkDwi; RkO83: vBJyM: goto dQ11Y; Cecxe: $_W['islogging'] = $this->syscfg['islogging']; goto VmLrQ; cHyP5: $_W['uniacid'] = empty($_W['uniacid']) ? $mywe['weid'] : $_W['uniacid']; goto AHfOh; dDb59: $mywe = $this->getmywe(); goto h0XW9; mTf0g: $this->syscfg['setting'] = iunserializer($this->syscfg['setting']); goto Cecxe; UkmLZ: lwBrE: goto bD56F; ndzns: fyYbI: goto SOmcN; moBuu: if (in_array($_GPC['do'], array("property", "check_login", "auth"))) { goto dYIBq; } goto g1TxP; PEM7z: if (empty($this->syscfg['workermanurl'])) { goto sAelq; } goto njJFB; TWYgT: goto e9L1S; goto q6A96; gFD4A: goto CODLm; goto ndzns; KBOq4: if (!empty($comm_cookie['__rhinfo_zyxq_community_uid'])) { goto Vv1J6; } goto EJeFb; uMJlc: a__HL: goto fuwu_; DutD5: PRG1n: goto ClE_T; njJFB: $this->syscfg['workermanurlpost'] = str_replace('https', 'http', $this->syscfg['workermanurl']); goto TWYgT; ENe5P: if ($_W['usercfrom'] == 2) { goto OWu8R; } goto aodHk; I25JK: $comm_session_key = '__rhinfo_zyxq_community_' . $_W['uniacid'] . '_session'; goto SMl0r; mgye6: exit; goto DPLVI; AHfOh: $sql = 'select * from ' . tablename('rhinfo_zyxq_sysset') . ' where weid = :weid'; goto GhMwf; DnAnD: header('Location:' . mywurl('auth/alogin', array("direct" => 1), 2)); goto mgye6; SMl0r: $comm_cookie = json_decode( true); goto j_ASd; GhMwf: $this->syscfg = pdo_fetch($sql, array(":weid" => $_W['uniacid'])); goto mTf0g; BMELm: Dk6mN: goto lPW9Y; L1HnZ: $this->mywebmsg('温馨提醒', '您的账号已经退出,将重新登录.', $directurl, 'success', 1); goto s6Gl5; trkRo: $_W['ishaina'] = !empty($_W['ishaina']) ? $_W['ishaina'] : $cookie['__rhinfo_zyxq_property_haina']; goto I25JK; VmLrQ: $session_key = '__rhinfo_zyxq_property_' . $_W['uniacid'] . '_session'; goto W7ieL; s8q3G: $_W['usercfrom'] = 2; goto jXB_e; Kb0qa: e9L1S: goto Ps73x; BaozG: $this->syscfg['siteurl'] = empty($this->syscfg['siteurl']) ? $_W['siteroot'] : $this->syscfg['siteurl']; goto ePUyq; q6A96: sAelq: goto iBgAj; DPLVI: S3hRS: goto s51sw; XneTN: global $_W, $_GPC; goto eVUnT; iBgAj: $this->syscfg['workermanurl'] = https://we.zy178.cn; goto KYGIv; j_ASd: if (!empty($_W['uid'])) { goto LcjiI; } goto iEL3A; n4TTE: LcjiI: goto mg8Xr; bD56F: exit; goto qma7l; FkDwi: $this->syspub = pdo_fetch($sql); goto dDb59; mg8Xr: $_W['usercfrom'] = 0; goto JzUbN; DSzzg: dYIBq: goto BaozG; EJeFb: goto odF0B; goto uMJlc; UBKNa: $this->mywebmsg('温馨提醒', '您的账号已被其他人登录使用,请确认账号和密码是否安全.', $directurl, 'danger', 1); goto UkmLZ; jXB_e: odF0B: goto yns3b; s6Gl5: goto lwBrE; goto KooHB; ClE_T: if ($mywe['islogout'] == 2) { goto rMIrQ; } goto L1HnZ; s51sw: jr6pC: goto gFD4A; iEL3A: if (!empty($cookie['__rhinfo_zyxq_property_uid'])) { goto a__HL; } goto KBOq4; dQ11Y: $directurl = mywurl('auth/login', array("direct" => 1), 2); goto DutD5; KYGIv: $this->syscfg['workermanurlpost'] = http://we.zy178.cn; goto Kb0qa; JzUbN: YT0TY: goto moBuu; W7ieL: $cookie = json_decode( true); goto trkRo; aodHk: if ($this->syscfg['isproperty'] == 1) { goto vBJyM; } goto Qe1gP; gUOkX: $this->syscfg['version'] = $module['version']; goto PEM7z; Qe1gP: $directurl = mywurl('auth/login', array("direct" => 1), 1); goto W6poC; ePUyq: $sql = 'SELECT * FROM ' . tablename('modules') . ' WHERE `name`=:name'; goto Pq0Dx; iPTIQ: exit('Access Denied'); goto BMELm; h0XW9: $this->mywe = $mywe; goto cHyP5; ZrsY2: if (!empty($mywe['uid'])) { goto jr6pC; } goto ENe5P; g1TxP: if ($_W['isajax']) { goto fyYbI; } goto ZrsY2; Ps73x: } public function my_check_mobile() { goto PiKXy; WdNBV: $cookie = json_decode( true); goto pHTVj; L0pac: if (!empty($_GPC['rr'])) { goto AZgRc; } goto UidN5; sfimb: $_W['openid_aliapp'] = $cookie['__rhinfo_aliapp_openid']; goto GOTBP; DAo37: $this->rhinfo_isweixin = false; goto SqOtO; MYwSM: if (!empty($_W['openid_alipay'])) { goto uErrw; } goto ihc_4; fT7wv: if (!(!empty($_GPC['regionid']) && $_GPC['regionid'] != '*')) { goto grP06; } goto PDg2Q; w_Gl6: T809e: goto WORr8; KXSKD: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $_GPC['regionid'])); goto QMg9W; vh72J: $this->syscfg['siteurl'] .= '/'; goto yHzYK; KGM9x: $session_key = '__rhinfo_' . $_W['uniacid'] . '_session'; goto WdNBV; NDm1l: cxlYm: goto gLyLf; pHTVj: $_W['openid_wxapp'] = $cookie['__rhinfo_wxapp_openid']; goto DKvjd; x3h8J: _my_login($uid); goto sGbL3; yHzYK: x2pjO: goto juwQM; CFLc2: $session_key = '__rhinfo_' . $_W['uniacid'] . '_session'; goto k_CD1; QMg9W: if (empty($region)) { goto iAU6O; } goto FamKA; l8n26: if (strpos($_SERVER['HTTP_USER_AGENT'], 'wxwork') !== false) { goto BMQ1M; } goto PzzPY; PiKXy: global $_W, $_GPC; goto WJHU8; Y63b0: goto Xenyt; goto JVPVF; k_CD1: $cookie = json_decode( true); goto XOllD; tEvEb: $current_url = base64_encode($this->syscfg['siteurl'] . $request_uri); goto nm8pg; v367N: if ($this->syscfg['iswap'] == '1') { goto ZLmxq; } goto OI6RM; lv0Q9: $this->syscfg['workermanurlpost'] = str_replace('https', 'http', $this->syscfg['workermanurl']); goto jITbG; QS2b1: if (!empty($_W['openid'])) { goto pNz9M; } goto CFLc2; gLyLf: g2Ejd: goto TQ1W1; WORr8: if (!$this->rhinfo_isalipay) { goto s7UIS; } goto MYwSM; mxHEt: MzHpQ: goto bEoWM; OI6RM: $this->rhinfo_wap = false; goto BS1kC; GOTBP: $_W['openid_alipay'] = empty($_W['openid_alipay']) ? $_W['openid_aliapp'] : $_W['openid_alipay']; goto whex3; y0Qrx: $this->syscfg['wxminibgimage'] = !empty($this->syscfg['wxminibgimage']) ? tomedia($this->syscfg['wxminibgimage']) : RHINFO_ZYXQ_URL . 'static/mobile/images/wxminibgimage.jpg'; goto fT7wv; T1zZ9: $this->syscfg = pdo_fetch($sql, array(":weid" => $_W['uniacid'])); goto L7mix; sGbL3: goto g2Ejd; goto d5AW1; DKvjd: SP6LW: goto IivDZ; vr_pZ: if (empty($_W['openid_alipay'])) { goto vHr3q; } goto TEPcD; osfwo: $_W['uniacid'] = !empty($_GPC['i']) ? $_GPC['i'] : $_W['uniacid']; goto leiax; BS1kC: goto gDH_G; goto V830O; SqOtO: am5bi: goto o4eJ_; XOllD: $_W['openid'] = $cookie['__rhinfo_haina_openid']; goto dhPZ3; PBV9D: goto WJyiI; goto C_p0I; bEoWM: Xenyt: goto QS2b1; gpoq6: message($this->syspub['closereason'] ? $this->syspub['closereason'] : '抱歉,平台暂时关闭.', $this->syspub['closeurl'] ? $this->syspub['closeurl'] : '', 'error'); goto feVRw; xKYss: $this->syscfg['workermanurl'] = https://we.zy178.cn; goto gwhxU; L7mix: $_W['islogging'] = $this->syscfg['islogging']; goto xuflm; oKEd4: $_W['openid_alipay'] = $cookie['__rhinfo_alipay_openid']; goto sfimb; FamKA: $this->syscfg['wxminiappid'] = $region['wxminiappid']; goto xJpfi; hfHSH: Dsg7t: goto Ra1yB; u3bIK: $this->rhinfo_isalipay = true; goto jdmX0; JVPVF: AZgRc: goto S2WWQ; QDdOc: $_W['minirid'] = $_GPC['rr']; goto iF_lA; TEPcD: myload()->model('member'); goto qd3ww; XaEk3: if (!empty($_W['openid_wxapp'])) { goto SP6LW; } goto KGM9x; V830O: ZLmxq: goto fgimt; IivDZ: $this->syscfg['wxtitle'] = empty($this->syscfg['wxtitle']) ? $this->syspub['wxtitle'] : $this->syscfg['wxtitle']; goto tb058; iTB8r: $this->syscfg['secret'] = $row['secret']; goto v367N; j0lxd: grP06: goto PhONX; pDxMJ: $this->rhinfo_isalipay = false; goto GEnzm; xuflm: $this->syscfg['scan_thumb'] = iunserializer($this->syscfg['scan_thumb']); goto mscnA; Huiwk: if (!($_GPC['appfrom'] != 'aliapp')) { goto cxlYm; } goto IRyir; iF_lA: isetcookie('__regionid', $_GPC['rr'], 0, true); goto XOnrA; URo76: $row = pdo_fetch($sql, array(":acid" => $_W['uniacid'])); goto Fi5yF; dhPZ3: $_W['openid_haina'] = $_W['openid']; goto sVLxC; S2WWQ: if ($_GPC['rr'] == '*') { goto BH5PV; } goto QDdOc; abjAY: BMQ1M: goto Lcobb; mscnA: $this->syscfg['steward_thumb'] = iunserializer($this->syscfg['steward_thumb']); goto sEMtS; qd3ww: $uid = my_uid2openid($_W['openid_alipay']); goto x3h8J; U4T0o: y28V_: goto xKYss; Lcobb: $this->rhinfo_wap = true; goto DAo37; d5AW1: vHr3q: goto Huiwk; WJHU8: $_W['uniacid'] = !empty($_W['uniacid']) ? $_W['uniacid'] : $_GPC['__uniacid']; goto osfwo; yXWVs: $this->syscfg['statistics'] = empty($this->syscfg['statistics']) ? $this->syspub['statistics'] : $this->syscfg['statistics']; goto y0Qrx; Ra1yB: $this->syscfg['siteurl'] = empty($this->syscfg['siteurl']) ? $_W['siteroot'] : $this->syscfg['siteurl']; goto Q2IFc; WwBgB: $sql = 'select * from ' . tablename('rhinfo_zyxq_sysset') . ' where weid = :weid'; goto T1zZ9; wPBXn: JmlCk: goto u3bIK; PN4PX: $this->rhinfo_isweixin = false; goto PBV9D; fylEq: if (!($this->syscfg['isclose'] == 1)) { goto Dsg7t; } goto PhVIa; sVLxC: pNz9M: goto XaEk3; XOnrA: goto MzHpQ; goto RnjPD; GEnzm: goto T809e; goto wPBXn; o4eJ_: WJyiI: goto YMMXV; JU0q6: $this->syspub = pdo_fetch($sql); goto QJR5D; VTYLL: gDH_G: goto GTyby; juwQM: $sql = 'SELECT `key`,`secret` FROM ' . tablename('account_wechats') . ' WHERE `acid`=:acid'; goto URo76; pyOYd: JIpF0: goto Y63b0; S2dli: $_W['minirid'] = $_GPC['__regionid']; goto pyOYd; xJpfi: $this->syscfg['wxminiappsecret'] = $region['wxminiappsecret']; goto s0RxF; wqvD1: $this->rhinfo_isweixin = true; goto l8n26; UidN5: if (!$_GPC['__regionid']) { goto JIpF0; } goto S2dli; leiax: $sql = 'select * from ' . tablename('rhinfo_zyxq_syspub'); goto JU0q6; fgimt: $this->rhinfo_wap = true; goto VTYLL; dXgTA: goto am5bi; goto abjAY; U6pf6: if (empty($this->syscfg['workermanurl'])) { goto y28V_; } goto lv0Q9; Q2IFc: if (!(substr($this->syscfg['siteurl'], -1) != '/')) { goto x2pjO; } goto vh72J; YMMXV: if (strpos($_SERVER['HTTP_USER_AGENT'], 'AlipayClient') !== false) { goto JmlCk; } goto pDxMJ; nm8pg: $redirect_uri = $this->my_mobileurl(mymurl('aliauth/openid', array("curr_url" => $current_url))); goto IWR4K; sXP0L: exit; goto NDm1l; jdmX0: $this->rhinfo_wap = true; goto w_Gl6; whex3: uErrw: goto vr_pZ; sEMtS: $this->syscfg['fmenu_thumb'] = iunserializer($this->syscfg['fmenu_thumb']); goto v3cJj; gwhxU: $this->syscfg['workermanurlpost'] = http://we.zy178.cn; goto ARLN4; ogRCs: $_W['minirid'] = 0; goto L0pac; QJR5D: if (!($this->syspub['isclose'] == 1)) { goto PBBO8; } goto gpoq6; GTyby: if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) { goto SwD0O; } goto PN4PX; xNxbX: isetcookie('__regionid', '', -10000); goto Wth80; nvUEi: $cookie = json_decode( true); goto oKEd4; ARLN4: wG4o_: goto ogRCs; feVRw: PBBO8: goto WwBgB; yDjnf: header('location: ' . $auth_url); goto sXP0L; RnjPD: BH5PV: goto xNxbX; jITbG: goto wG4o_; goto U4T0o; ihc_4: $session_key = '__rhinfo_' . $_W['uniacid'] . '_session'; goto nvUEi; IWR4K: $auth_url = 'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=' . $this->syscfg['alipay_life_appid'] . '&scope=auth_base&redirect_uri=' . $redirect_uri; goto yDjnf; TQ1W1: s7UIS: goto U6pf6; PzzPY: $this->rhinfo_wap = false; goto dXgTA; v3cJj: $this->syscfg['fmenu_sthumb'] = iunserializer($this->syscfg['fmenu_sthumb']); goto fylEq; s0RxF: iAU6O: goto j0lxd; tb058: $this->syscfg['wxcopyright'] = empty($this->syscfg['wxcopyright']) ? $this->syspub['wxcopyright'] : $this->syscfg['wxcopyright']; goto yXWVs; C_p0I: SwD0O: goto wqvD1; IRyir: $request_uri = ltrim($_SERVER['REQUEST_URI'], '/'); goto tEvEb; PDg2Q: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid = :weid and id=:rid'; goto KXSKD; Wth80: $_W['minirid'] = 0; goto mxHEt; PhVIa: message($this->syscfg['closereason'] ? $this->syscfg['closereason'] : '抱歉,平台暂时关闭.', $this->syscfg['closeurl'] ? $this->syscfg['closeurl'] : '', 'error'); goto hfHSH; Fi5yF: $this->syscfg['appid'] = $row['key']; goto iTB8r; PhONX: } public function my_checkauth() { goto Jyf7O; wlErG: $url = $this->createMobileUrl('myauth', array("forward" => $forward)); goto mpUuO; VjutF: $GLOBALS['engine']->died('抱歉,您需要先登录才能使用此功能,点击此处 <a href=\'' . $this->my_mobileurl($url) . '\'>【登录】</a>'); goto YBn63; oW_ya: header('location: ' . $this->my_mobileurl($url)); goto cPd0L; KvKNm: goto itMhT; goto sqskg; AY7GV: if (in_array($_GPC['do'], $dos)) { goto Wfcs5; } goto vsTVe; bMWKm: if (!defined('IN_API')) { goto AYFRG; } goto jGYWN; ZFpu3: if (!_my_login($uid)) { goto N8FR_; } goto WCgbr; qdZ72: L68bM: goto ihRrf; cPd0L: exit; goto jdTVo; br_iF: $forward = base64_encode($_SERVER['QUERY_STRING']); goto wlErG; YBn63: AYFRG: goto bWhxN; gHQvt: A1IfY: goto GpWl3; LzD0W: $_W['openid'] = !empty($_W['openid']) ? $_W['openid'] : mc_uid2openid($_W['member']['uid']); goto Nki_v; sVITy: my_member_update($uid, $fields); goto asbsV; WAlB9: GJ2uY: goto K9eYt; xiGhk: if (!empty($_W['openid'])) { goto PEl7q; } goto n5cvU; xr2tZ: if (!_my_login($uid)) { goto aEy2Z; } goto u6dqz; pAW18: $dos = array("charging", "business", "selfdevice", "service", "car", "expressp"); goto AY7GV; wZeLJ: $fan = mc_fansinfo($_W['openid'], $_W['acid'], $_W['uniacid']); goto qiS3x; bWhxN: load()->model('mc'); goto J5Aru; mpUuO: if (!($this->syscfg['isvisitor'] == 1)) { goto L68bM; } goto pAW18; ihRrf: if (!$_W['isajax']) { goto vkJzX; } goto E0rG7; I7VMX: $cookie = json_decode( true); goto SbGWA; vsTVe: if ($_GPC['do'] == 'home') { goto jXKyU; } goto gXkcl; E0rG7: return false; goto CKEOs; gXkcl: goto pamsc; goto Szyaf; O1m8N: Cj0dL: goto xiGhk; UnN6g: return true; goto zm0aE; BVRBa: N8FR_: goto bAu2H; a_01a: $cookie = json_decode( true); goto ZY_Wb; Nki_v: return true; goto O1m8N; bAu2H: itMhT: goto br_iF; SQIZL: yaMM7: goto KvKNm; zm0aE: goto pamsc; goto Xinch; pJViD: $fields = array("openid" => $_W['openid'], "openid_wxapp" => $_W['openid_wxapp'], "openid_alipay" => $_W['openid_alipay'], "openid_aliapp" => $_W['openid_aliapp'], "openid_haina" => $_W['openid_haina']); goto sVITy; sqskg: PEl7q: goto UV0t4; Xinch: jXKyU: goto hBfB5; CKEOs: $result = array(); goto stIQE; K9eYt: if (!empty($uid)) { goto rlbCS; } goto EA38c; pWO38: rlbCS: goto ZFpu3; fjfOH: $fan = mc_oauth_userinfo(); goto Fdv7_; Szyaf: Wfcs5: goto UnN6g; mObPP: $result['act'] = 'redirect'; goto NyIGQ; ZY_Wb: $uid = intval($cookie['__rhinfo_uid']); goto pWO38; GpWl3: $uid = intval($fan['uid']); goto WAlB9; WpF6S: $fan = mc_fansinfo($fan['openid']); goto b8i7q; UV0t4: $uid = mc_openid2uid($_W['openid']); goto sz0_e; EA38c: $session_key = '__rhinfo_' . $_W['uniacid'] . '_session'; goto a_01a; jGYWN: $url = $this->createMobileUrl('myauth'); goto VjutF; n5cvU: if (empty($_W['uniacid'])) { goto yaMM7; } goto ZlvOG; hBfB5: $url = $this->createMobileurl('myauth', array("op" => "home")); goto rLk1X; b8i7q: Lysad: goto gHQvt; cJLnO: my_member_update($uid, $fields); goto P_g4L; P_g4L: return true; goto BVRBa; HJtZk: if (empty($_W['member'])) { goto Cj0dL; } goto LzD0W; uyH0H: vkJzX: goto oW_ya; sz0_e: if (!empty($uid)) { goto GJ2uY; } goto wZeLJ; WCgbr: $fields = array("openid" => $_W['openid'], "openid_wxapp" => $_W['openid_wxapp'], "openid_alipay" => $_W['openid_alipay'], "openid_aliapp" => $_W['openid_aliapp'], "openid_haina" => $_W['openid_haina']); goto cJLnO; asbsV: return true; goto Ur8CC; Fdv7_: if (empty($fan['openid'])) { goto Lysad; } goto WpF6S; Ur8CC: aEy2Z: goto SQIZL; ZlvOG: $session_key = '__rhinfo_' . $_W['uniacid'] . '_session'; goto I7VMX; qiS3x: if (!(empty($fan) && $_W['account']['level'] == ACCOUNT_SERVICE_VERIFY)) { goto A1IfY; } goto fjfOH; rLk1X: pamsc: goto qdZ72; Jyf7O: global $_W, $_GPC, $engine; goto bMWKm; stIQE: $result['url'] = $this->my_mobileurl($url); goto mObPP; SbGWA: $uid = intval($cookie['__rhinfo_uid']); goto xr2tZ; u6dqz: $_W['openid'] = mc_uid2openid($uid); goto pJViD; J5Aru: myload()->model('member'); goto HJtZk; NyIGQ: exit(json_encode($result)); goto uyH0H; jdTVo: } public function checkmember() { goto Pm0Vj; S6VIK: $iswhitelist = true; goto Tn5d8; UCBWY: $mc['uniacid'] = $_W['uniacid']; goto QLPmt; xOvIo: MeT2x: goto n0CT8; GrA1G: dtQTm: goto o4NnP; Ex7j8: $uid = mc_openid2uid($openid); goto haPqm; MguNG: if (!($_W['account']['level'] == '4' && $iswhitelist == false)) { goto cBi8e; } goto P9CMy; eCw1Y: yE5HE: goto s2JYO; n82EK: return true; goto Ff_89; szirn: $mc['gender'] = $userinfo['sex']; goto up2Lp; rpv6w: $mc['avatar'] = $userinfo['avatar']; goto szirn; s2JYO: return false; goto VYqj5; m2H3o: $_W['member']['uid'] = $uid; goto TFdoo; lIhb7: load()->model('mc'); goto fJjHq; kQtjt: if (!$_W['isajax']) { goto Nb2uG; } goto Krmpe; bdoek: mc_update($uid, $mc); goto Cwsb2; XeO3M: XImnf: goto YlAWf; CcVnC: $iswhitelist = false; goto X2ffw; Yo7U7: my_member_update($uid, array("openid" => $openid)); goto m2H3o; aaVJT: goto WwGri; goto TAgPo; HIiRM: $_W['member']['uid'] = $uid; goto fyXRr; yOy_u: $iswhitelist = true; goto W2TtY; B0L0K: if (!(empty($_GPC['op']) || $_GPC['op'] == 'index')) { goto bIteG; } goto hbGeE; tKFyd: $iswhitelist = true; goto giN9p; l0o9K: if (!(empty($_GPC['op']) || $_GPC['op'] == 'index' || $_GPC['op'] == 'home')) { goto MeT2x; } goto j5Kg5; eDPs8: $diemsg = '请确认公众号为认证服务号'; goto hx4uo; cmXAq: $uid = $email_exists_member; goto GrA1G; iljij: $this->my_checkauth(); goto nyx2c; UsPB7: if (empty($union_fans['uid'])) { goto CD6Fq; } goto Sz7uy; BuCNO: $whitelist = array("charging", "business", "selfdevice", "service", "car", "expressp"); goto Cb_AH; TyTQQ: yweov: goto BuCNO; t7lhu: if (RHINFO_ZYXQ_DEBUG || $this->rhinfo_wap) { goto LmbmK; } goto h0UY1; QLPmt: $mc['nickname'] = $userinfo['nickname']; goto Gj073; gp6NV: $iswhitelist = true; goto TyTQQ; h0UY1: if ($iswhitelist) { goto l1YF1; } goto eDPs8; Gj073: $mc['avatar'] = $userinfo['avatar']; goto h_QCj; aibl0: $mc['resideprovince'] = $userinfo['province']; goto T9U0N; bepAE: mc_update($uid, $mc); goto evhP3; Pm0Vj: global $_W, $_GPC; goto kQtjt; iAVFp: goto IFsdg; goto MOf0R; F2fBm: if ($iswhitelist) { goto XImnf; } goto cs24W; F5VKp: $mc['uniacid'] = $_W['uniacid']; goto IlQnk; fJjHq: myload()->model('member'); goto zW7IJ; XscCM: U_blP: goto bepAE; hbGeE: $iswhitelist = true; goto tNHjt; Fds3O: return true; goto Vczwz; Bk_B7: IFsdg: goto q2Mez; iRQhY: $mc = array(); goto Z3IJ5; hx4uo: exit('<!DOCTYPE html>
                <html>
                    <head>
                        <meta name=\'viewport\' content=\'width=device-width, initial-scale=1, user-scalable=0\'>
                        <title>抱歉,出错了</title><meta charset=\'utf-8\'><meta name=\'viewport\' content=\'width=device-width, initial-scale=1, user-scalable=0\'><link rel=\'stylesheet\' type=\'text/css\' href=\'https://res.wx.qq.com/connect/zh_CN/htmledition/style/wap_err1a9853.css\'>
                    </head>
                    <body>
                    <div class=\'page_msg\'><div class=\'inner\'><span class=\'msg_icon_wrp\'><i class=\'icon80_smile\'></i></span><div class=\'msg_content\'><h4>' . $diemsg . '</h4></div></div></div>
                    </body>
                </html>'); goto Z1Tqj; Px5ya: if (!empty($email_exists_member)) { goto K_oke; } goto f7Gv5; evhP3: if (!empty($uid)) { goto VTlwh; } goto btfn_; p3PGp: Pw1st: goto cmXAq; MOf0R: eNpBT: goto rSh07; n0CT8: SbrxM: goto yCZlv; LWcoz: U7xcX: goto t7lhu; c_sYp: GDksq: goto aMixQ; j5Kg5: $iswhitelist = true; goto xOvIo; poV4l: goto OaXl6; goto c_sYp; jIkqL: if (RHINFO_ZYXQ_DEBUG || $this->rhinfo_wap) { goto ibI8N; } goto F2fBm; TAgPo: l1YF1: goto pMBEm; rSh07: my_member_update($uid, array("openid" => $openid)); goto y97bX; GrtMJ: my_member_update($uid, array("openid" => $openid)); goto HIiRM; VYqj5: qZzsk: goto iAVFp; Vczwz: PljJI: goto co79Q; Tn5d8: dBKjN: goto RLiR5; yEiGp: $_W['member']['uid'] = $uid; goto xrZvD; OcIyl: $userinfo = mc_oauth_userinfo(); goto rGwZX; nyx2c: goto P173R; goto XeO3M; TFdoo: if (!_my_login($uid)) { goto nsuhn; } goto sYTOD; pMBEm: return true; goto bLclJ; B4dHX: $default_groupid = pdo_fetchcolumn('SELECT groupid FROM ' . tablename('mc_groups') . ' WHERE uniacid = :uniacid AND isdefault = 1', array(":uniacid" => $_W['uniacid'])); goto UCBWY; bTkuJ: nsuhn: goto fIZd1; rOKOJ: goto dtQTm; goto p3PGp; pJu_p: $iswhitelist = true; goto sBodQ; zW7IJ: $openid = $_W['openid']; goto yRKzg; mG9_9: P173R: goto poV4l; dy8cs: Nb2uG: goto POpmP; WLu1K: my_member_update($uid, array("openid" => $openid)); goto yEiGp; rnrkm: Jxc_4: goto fDlrp; WkHcP: $email = md5($userinfo['openid']) . '@we7.cc'; goto chQo3; luD6y: if (!empty($email_exists_member)) { goto Pw1st; } goto R400q; ejweT: kJyGY: goto h8JN8; UyBwi: if (!(empty($_GPC['op']) || $_GPC['op'] == 'index')) { goto YYF4k; } goto tKFyd; POpmP: $iswhitelist = false; goto bfebo; Mx2n3: $uid = mc_openid2uid($openid); goto vrvH6; uwn5Q: V3pc7: goto UPrKT; xo10O: $mc['resideprovince'] = $userinfo['province']; goto O2wo2; UPrKT: mc_update($uid, $mc); goto Yo7U7; gvsdi: goto kJyGY; goto uwn5Q; k_v4_: M3uWO: goto S6VIK; Z3IJ5: $default_groupid = pdo_fetchcolumn('SELECT groupid FROM ' . tablename('mc_groups') . ' WHERE uniacid = :uniacid AND isdefault = 1', array(":uniacid" => $_W['uniacid'])); goto F5VKp; nBf2i: if (!($_GPC['do'] == 'home')) { goto SbrxM; } goto l0o9K; fDlrp: if (!($_GPC['do'] == 'service')) { goto VG19l; } goto UyBwi; sBodQ: q5mUx: goto nBf2i; co79Q: return false; goto gvsdi; ehiV8: CD6Fq: goto g134I; rb5vi: ibI8N: goto iljij; rFzfN: $iswhitelist = true; goto mHjLB; aMixQ: if ($this->syscfg['wxappstatus'] == 1) { goto M3uWO; } goto CcVnC; Sz_AU: goto tSeuq; goto RzY0w; sYTOD: return true; goto bTkuJ; zhiwF: GXTWi: goto bziwk; RLiR5: if (empty($openid)) { goto eOH5t; } goto iHPuZ; PKhzO: OaXl6: goto n82EK; p39Sr: eOH5t: goto MguNG; hAgOL: $union_fans = pdo_get('rhinfo_zyxq_mc_mapping_fans', array("uniacid" => $_W['uniacid'], "unionid" => $userinfo['unionid'], "openid !=" => $userinfo['openid'])); goto UsPB7; LFeZi: VTlwh: goto GrtMJ; f92qa: TwSJq: goto WLSkL; VwaWO: $mc['nationality'] = $userinfo['country']; goto xo10O; z1ycg: $email = md5($userinfo['openid']) . '@we7.cc'; goto Bm7Z2; up2Lp: $mc['nationality'] = $userinfo['country']; goto aibl0; y97bX: $_W['member']['uid'] = $uid; goto T_CJ1; bziwk: if (!($_GPC['do'] == 'steward')) { goto e2f8l; } goto m1Rfh; IlQnk: $mc['nickname'] = $userinfo['nickname']; goto rpv6w; O2wo2: $mc['residecity'] = $userinfo['city']; goto c1F5y; ijPrQ: $uid = $union_fans['uid']; goto GOta2; gWdIC: if (!($_W['account']['level'] == '4' && $iswhitelist == false)) { goto qZzsk; } goto OcIyl; rGwZX: $mc = array(); goto B4dHX; vrvH6: bxLuY: goto WLu1K; GOta2: EE0Ed: goto kS5T2; cs24W: $diemsg = '请在微信客户端打开链接'; goto XYAzI; h_QCj: $mc['gender'] = $userinfo['sex']; goto VwaWO; iHPuZ: $uid = mc_openid2uid($openid); goto atBno; Cwsb2: if (!empty($uid)) { goto bxLuY; } goto Mx2n3; tNHjt: bIteG: goto zhiwF; bv4ld: goto P173R; goto rb5vi; T_CJ1: if (!_my_login($uid)) { goto TwSJq; } goto aDYGo; RzY0w: K_oke: goto UhpM8; bfebo: if (!($this->syscfg['wxappstatus'] == 1)) { goto yweov; } goto gp6NV; XYAzI: exit('<!DOCTYPE html>
                <html>
                    <head>
                        <meta name=\'viewport\' content=\'width=device-width, initial-scale=1, user-scalable=0\'>
                        <title>抱歉,出错了</title><meta charset=\'utf-8\'><meta name=\'viewport\' content=\'width=device-width, initial-scale=1, user-scalable=0\'><link rel=\'stylesheet\' type=\'text/css\' href=\'https://res.wx.qq.com/connect/zh_CN/htmledition/style/wap_err1a9853.css\'>
                    </head>
                    <body>
                    <div class=\'page_msg\'><div class=\'inner\'><span class=\'msg_icon_wrp\'><i class=\'icon80_smile\'></i></span><div class=\'msg_content\'><h4>' . $diemsg . '</h4></div></div></div>
                    </body>
                </html>'); goto bv4ld; c1F5y: $mc['groupid'] = $default_groupid; goto hAgOL; okK1f: LmbmK: goto fQeDB; g134I: if (!empty($uid)) { goto U_blP; } goto z1ycg; q2Mez: goto U7xcX; goto p39Sr; T9U0N: $mc['residecity'] = $userinfo['city']; goto r1T9a; r1T9a: $mc['groupid'] = $default_groupid; goto FCaNC; Se6Vx: cBi8e: goto LWcoz; fyXRr: if (!_my_login($uid)) { goto yE5HE; } goto SIvKK; atBno: if ($uid > 0) { goto eNpBT; } goto gWdIC; UhpM8: $uid = $email_exists_member; goto tv0BY; Sz7uy: $uid = $union_fans['uid']; goto ehiV8; ekQLj: e2f8l: goto Wm_vz; Krmpe: return true; goto dy8cs; yCZlv: if (!($_GPC['do'] == 'member')) { goto GXTWi; } goto B0L0K; tv0BY: tSeuq: goto XscCM; Z1Tqj: goto WwGri; goto okK1f; Bm7Z2: $email_exists_member = pdo_getcolumn('mc_members', array("email" => $email), 'uid'); goto Px5ya; btfn_: $uid = mc_openid2uid($openid); goto LFeZi; o4NnP: cA_NL: goto bdoek; bLclJ: WwGri: goto PKhzO; f7Gv5: $mc['email'] = $email; goto Sz_AU; SIvKK: return true; goto eCw1Y; X2ffw: goto dBKjN; goto k_v4_; YlAWf: return true; goto mG9_9; OJIYG: VG19l: goto lIhb7; m1Rfh: if (!(empty($_GPC['op']) || $_GPC['op'] == 'index')) { goto G3bUw; } goto rFzfN; FCaNC: $openid = $userinfo['openid']; goto vYEWP; xrZvD: if (!_my_login($uid)) { goto PljJI; } goto Fds3O; P9CMy: $userinfo = mc_oauth_userinfo(); goto iRQhY; fQeDB: $this->my_checkauth(); goto aaVJT; yRKzg: if ($this->rhinfo_isweixin) { goto GDksq; } goto jIkqL; Cb_AH: if (!in_array($_GPC['do'], $whitelist)) { goto q5mUx; } goto pJu_p; aDYGo: return true; goto f92qa; chQo3: $email_exists_member = pdo_getcolumn('mc_members', array("email" => $email), 'uid'); goto luD6y; R400q: $mc['email'] = $email; goto rOKOJ; Wm_vz: if (!($_GPC['do'] == 'notice')) { goto Jxc_4; } goto UD8P5; WLSkL: return false; goto Bk_B7; haPqm: if ($uid > 0) { goto V3pc7; } goto XAwsH; h8JN8: Je0zi: goto Se6Vx; vYEWP: if (empty($openid)) { goto Je0zi; } goto Ex7j8; mHjLB: G3bUw: goto ekQLj; cHFJg: if (empty($union_fans['uid'])) { goto EE0Ed; } goto ijPrQ; giN9p: YYF4k: goto OJIYG; kS5T2: if (!empty($uid)) { goto cA_NL; } goto WkHcP; W2TtY: sMZyV: goto rnrkm; UD8P5: if (!(empty($_GPC['op']) || $_GPC['op'] == 'index')) { goto sMZyV; } goto yOy_u; fIZd1: return false; goto ejweT; XAwsH: $union_fans = pdo_get('rhinfo_zyxq_mc_mapping_fans', array("uniacid" => $_W['uniacid'], "unionid" => $userinfo['unionid'], "openid !=" => $userinfo['openid'])); goto cHFJg; Ff_89: } public function getmywe() { goto SUz97; BnBbE: isetcookie($session_key, $session, 0, true); goto QJncl; xo2dO: $sql = 'select * from ' . tablename('rhinfo_zyxq_secuser') . ' where weid = :weid and uid = :uid'; goto vyn2r; igUFQ: $cookie['__rhinfo_zyxq_property_time'] = time(); goto ZAEUq; KewUE: goto r7g5P; goto UXzdy; Aal9L: kO1_d: goto XXFZm; prT1F: $mywe['name'] = empty($user['name']) ? $user['username'] : $user['name']; goto f15UC; XMTYZ: JOhPB: goto kblTJ; vyn2r: $user = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":uid" => $_W['uid'])); goto XOb8f; kGt36: $cookie['__rhinfo_zyxq_property_session'] = ''; goto x2p2V; owRTB: if (!empty($_W['uniacid'])) { goto n46Eg; } goto y1J4S; V6QTK: $mywe['pid'] = $user['pid']; goto kZF8X; tCbtl: uad4F: goto MNpUa; w7AH7: return $mywe; goto OqPdR; cc7Ft: $mywe['direct'] = ''; goto cnYk_; jnuYI: return $mywe; goto S9nF5; ZAEUq: $session = base64_encode(json_encode($cookie)); goto xLMVx; TK8Yt: $sql = 'select * from ' . tablename('rhinfo_zyxq_sysset') . ' where weid = :weid'; goto WiSl8; yOJkM: $now = time(); goto yyALw; VZbTf: Gr2e1: goto KewUE; Nmx1C: $mywe['userno'] = $user['userno']; goto U4EAJ; ZCKkZ: $mywe['region'] = empty($category) ? 0 : $category; goto JY6bR; JDmCY: return $mywe; goto CGiZe; rHXup: q9s9b: goto aoZsP; eSJrk: return $mywe; goto zCpWu; vRTHo: isetcookie($session_key, $session, 0, true); goto JvNxd; yyALw: if ($now - $cookie['__rhinfo_zyxq_property_time'] > $timeout) { goto uad4F; } goto igUFQ; zCpWu: goto oFSPE; goto ceR0F; f15UC: $mywe['gid'] = $user['gid']; goto V6QTK; z0UZa: if (!(!rhinfo_check() && $_SERVER['HTTP_HOST'] !== '127.0.0.1')) { goto kO1_d; } goto B6Yea; AvlyJ: $category = pdo_getcolumn('rhinfo_zyxq_region', array("id" => $mywe['rid'], "weid" => $mywe['weid']), 'category'); goto J9rdO; Ly61K: if (!(empty($uniacid) && empty($cookie_weid))) { goto tySeO; } goto NBzsA; ur1nC: $cookie['__rhinfo_zyxq_community_uid'] = 0; goto FjpzX; UXzdy: WvMOt: goto Q7d4Y; WiSl8: $this->syscfg = pdo_fetch($sql, array(":weid" => $mywe['weid'])); goto CC8Ls; UVJEo: $_W['usercfrom'] = 2; goto jnuYI; vIUMK: $session_key = '__rhinfo_zyxq_community_' . $mywe['weid'] . '_session'; goto ZdWZJ; U9zCl: $mywe['ispmanager'] = 1; goto XMTYZ; ckHXF: $session_key = '__rhinfo_zyxq_property_' . $cookie['__rhinfo_zyxq_property_uniacid'] . '_session'; goto g6PZi; g6PZi: isetcookie($session_key, $session, 0, true); goto RT5G0; OhY25: $mywe = array(); goto z0UZa; gV1DK: $cookie = json_decode( true); goto eCpyT; Po1H6: DQBpn: goto e9RzA; X7etA: goto Gr2e1; goto Po1H6; Cl_mv: isetcookie('__uniacid', $uniacid, 7 * 86400); goto gCFio; ZqgC5: $mywe['userno'] = $user['userno']; goto eLEHX; nvrqI: if (!$mywe['rid']) { goto GF4N3; } goto RVdc7; Rkcc3: $mywe['orgid'] = $user['orgid']; goto uxwG6; tzJxu: return $mywe; goto w4rgs; ZCOJT: $mywe['rid'] = $user['rid']; goto Rkcc3; m2RxP: KDcSa: goto VZbTf; MNpUa: $cookie['__rhinfo_zyxq_property_time'] = time(); goto jg4i1; J9rdO: $mywe['region'] = empty($category) ? 0 : $category; goto Znh_c; y1J4S: $uniacid = intval($_GPC['i']); goto mW1wD; j0uQ9: $mywe['pid'] = 0; goto FogWs; CGiZe: goto KDcSa; goto tCbtl; RT5G0: $mywe['islogout'] = 1; goto WOMFP; PHJKD: $cookie['__rhinfo_zyxq_property_uid'] = 0; goto Lcxj0; K1kOQ: $cookie['__rhinfo_zyxq_community_time'] = time(); goto ur1nC; cnYk_: $mywe['ispmanager'] = 0; goto yPCFe; NVYE1: goto C8Oxs; goto Akz0a; U2rsy: tySeO: goto MOUza; yKoA4: $mywe['orgid'] = 0; goto szBH2; CC8Ls: if (!empty($_W['uid'])) { goto WvMOt; } goto qY2S5; yPCFe: $mywe['region'] = 0; goto H5t6d; XXFZm: $mywe['uid'] = 0; goto lp8J0; uxwG6: $mywe['usertype'] = $user['usertype']; goto lvbO9; OqPdR: r7g5P: goto N2WuO; Lcxj0: $cookie['__rhinfo_zyxq_property_session'] = ''; goto mPlt6; szBH2: $mywe['usertype'] = 0; goto qVMQB; QsooF: $mywe['gid'] = $user['gid']; goto UjgCi; Yknbm: $timeout = $this->syscfg['outtime'] ? $this->syscfg['outtime'] * 60 : 300; goto Tt0ux; zAn3P: $mywe['islogout'] = 2; goto tzJxu; lu45i: U_ifI: goto TK8Yt; x2p2V: $session = base64_encode(json_encode($cookie)); goto ckHXF; eLEHX: $mywe['direct'] = '&direct=1'; goto nvrqI; kGGMG: $sql = 'select * from ' . tablename('rhinfo_zyxq_secuser') . ' where weid = :weid and id = :uid'; goto sii0Z; mYt3O: $session_key = '__rhinfo_zyxq_community_' . $cookie['__rhinfo_zyxq_community_uniacid'] . '_session'; goto vRTHo; iDxlt: if ($now - $cookie['__rhinfo_zyxq_community_time'] > $timeout) { goto M6q8H; } goto yxgOA; SUz97: global $_W, $_GPC; goto OhY25; Znh_c: YRPSX: goto fW01T; gCFio: C8Oxs: goto vBnTo; PFIZe: $mywe['name'] = $_W['username']; goto xo2dO; XOb8f: if (empty($user)) { goto IZKYE; } goto prT1F; FogWs: $mywe['rid'] = 0; goto yKoA4; yxgOA: $cookie['__rhinfo_zyxq_community_time'] = time(); goto iOepZ; s7UEz: return $mywe; goto U2rsy; x5jN3: $user_login = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":uid" => $cookie['__rhinfo_zyxq_property_uid'])); goto cV4Zp; PYD5L: n46Eg: goto zs0K6; NBzsA: $mywe['weid'] = 1; goto s7UEz; vBnTo: goto U_ifI; goto PYD5L; mPlt6: $session = base64_encode(json_encode($cookie)); goto S7Xpw; lp8J0: $mywe['gid'] = 0; goto j0uQ9; gsmo_: $cookie['__rhinfo_zyxq_property_time'] = time(); goto PHJKD; R2F4a: $session_key = '__rhinfo_zyxq_community_' . $cookie['__rhinfo_zyxq_community_uniacid'] . '_session'; goto B7lyf; U4EAJ: if (!$mywe['rid']) { goto YRPSX; } goto AvlyJ; QJncl: $mywe['uid'] = $cookie['__rhinfo_zyxq_property_uid']; goto SFlNT; JvNxd: $mywe['uid'] = $cookie['__rhinfo_zyxq_community_uid']; goto kGGMG; BTo31: $mywe['name'] = empty($user['name']) ? $user['username'] : $user['name']; goto WjFP0; LLrqZ: M6q8H: goto K1kOQ; MOUza: if (!empty($uniacid)) { goto NTG4r; } goto lyIzJ; iOepZ: $session = base64_encode(json_encode($cookie)); goto mYt3O; WjFP0: $property = pdo_get('rhinfo_zyxq_property', array("weid" => $mywe['weid'], "id" => $user['pid'], "userno" => $user['userno']), array("userno")); goto cdlzp; sii0Z: $user = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":uid" => $mywe['uid'])); goto ZjoTU; aoZsP: oFSPE: goto X7etA; qY2S5: $session_key = '__rhinfo_zyxq_property_' . $mywe['weid'] . '_session'; goto gV1DK; e9RzA: $sql = 'select * from ' . tablename('rhinfo_zyxq_secuser_login') . ' where weid = :weid and uid = :uid and isonline = 1'; goto x5jN3; ZjoTU: $mywe['name'] = empty($user['name']) ? $user['username'] : $user['name']; goto QsooF; kZF8X: $mywe['rid'] = $user['rid']; goto Nmx1C; OamaV: if (!empty($cookie['__rhinfo_zyxq_community_uid'])) { goto h45Gp; } goto eSJrk; B6Yea: exit; goto Aal9L; cdlzp: if (empty($property)) { goto JOhPB; } goto U9zCl; mW1wD: $cookie_weid = $_GPC['__uniacid']; goto Ly61K; kblTJ: $mywe['gid'] = $user['gid']; goto DCsUw; cV4Zp: if (!($user_login['session'] != $cookie['__rhinfo_zyxq_property_session'])) { goto TEJwm; } goto gsmo_; eCpyT: if (!empty($cookie['__rhinfo_zyxq_property_uid'])) { goto DQBpn; } goto vIUMK; B7lyf: isetcookie($session_key, $session, 0, true); goto x04d2; lvbO9: $mywe['userno'] = $user['userno']; goto x8OZ9; nHphn: $timeout = $this->syscfg['outtime'] ? $this->syscfg['outtime'] * 60 : 300; goto yOJkM; FjpzX: $session = base64_encode(json_encode($cookie)); goto R2F4a; x8OZ9: $mywe['direct'] = '&direct=1'; goto UVJEo; S9nF5: goto q9s9b; goto LLrqZ; H5t6d: $mywe['islogout'] = 0; goto owRTB; XwkiZ: $_W['usercfrom'] = 1; goto JDmCY; fW01T: IZKYE: goto w7AH7; w4rgs: TEJwm: goto nHphn; lyIzJ: $mywe['weid'] = $cookie_weid; goto NVYE1; ceR0F: h45Gp: goto Yknbm; UjgCi: $mywe['pid'] = $user['pid']; goto ZCOJT; qVMQB: $mywe['userno'] = ''; goto cc7Ft; Q7d4Y: $mywe['uid'] = $_W['uid']; goto PFIZe; Akz0a: NTG4r: goto Cl_mv; JY6bR: GF4N3: goto XwkiZ; DCsUw: $mywe['pid'] = $user['pid']; goto mSdum; WOMFP: return $mywe; goto m2RxP; xLMVx: $session_key = '__rhinfo_zyxq_property_' . $cookie['__rhinfo_zyxq_property_uniacid'] . '_session'; goto BnBbE; LCz1p: isetcookie($session_key, $session, 0, true); goto zAn3P; W_gq4: $user = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":uid" => $mywe['uid'])); goto BTo31; mSdum: $mywe['rid'] = $user['rid']; goto ZqgC5; RVdc7: $category = pdo_getcolumn('rhinfo_zyxq_region', array("id" => $mywe['rid'], "weid" => $mywe['weid']), 'category'); goto ZCKkZ; Tt0ux: $now = time(); goto iDxlt; jg4i1: $cookie['__rhinfo_zyxq_property_uid'] = 0; goto kGt36; SFlNT: $sql = 'select * from ' . tablename('rhinfo_zyxq_secuser') . ' where weid = :weid and id = :uid'; goto W_gq4; S7Xpw: $session_key = '__rhinfo_zyxq_property_' . $cookie['__rhinfo_zyxq_property_uniacid'] . '_session'; goto LCz1p; ZdWZJ: $cookie = json_decode( true); goto OamaV; x04d2: return $mywe; goto rHXup; zs0K6: $mywe['weid'] = $_W['uniacid']; goto lu45i; N2WuO: } public function getmyinfo($openid) { goto KViF4; CNGUQ: $info['isfollow'] = $region['nobindlimit']; goto Bc0lk; aLS6A: zjhG2: goto Cnhzd; Jyd5W: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":groupid" => $info['groupid'])); goto b6JPv; MekMa: $info['rights'] = $mutiteam; goto FW_WA; FW_WA: Qwa01: goto cP4Ks; EICJg: load()->model('mc'); goto mDFe1; JndBe: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and (t.openid = :openid or t.uid = :uid) and t.rid=0'; goto OzH2D; Y2zG0: $info['ctime'] = 0; goto FUItp; ZTSDz: $info['feecontrol'] = $region['feecontrol']; goto drdyt; kq7RB: WGNE8: goto voze4; Ny0sd: $info['door_mid'] = $member['door_mid']; goto LayPs; YezzZ: $info['rid'] = $regionarr[0]; goto pPcRZ; djmeZ: goto E7sov; goto nkGxQ; AkxAK: $info['otype'] = 0; goto Y2zG0; lZD3y: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'])); goto GnfPo; qNlSI: $sql = 'select * from ' . tablename('rhinfo_zyxq_region_follow') . ' where weid=:weid and uid=:uid and deleted=0'; goto tH5F4; KZh2z: $member = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":openid" => $_W['openid'], ":rid" => $_W['minirid'], ":uid" => $uid)); goto h5gZM; uY0t2: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $member['rid'])); goto lmL4Z; GoT2D: $info = array(); goto chNVr; LAI3u: $info['birthday'] = ''; goto pWEvN; nSJqs: $team = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":openid" => $_W['openid'], ":uid" => $uid)); goto X2ERE; jbr5S: $info['rtitle'] = $region['title']; goto eE1uP; NjKc0: $info['ownername'] = $mutiteam['realname']; goto KS5ij; YATS5: $info['ownername'] = $team['realname']; goto lljix; I3P84: $info['tid'] = 0; goto EEQaf; RUzN0: $info['rtitle'] = $region['title']; goto cb5bc; AzA7R: if (!($uid == 0)) { goto uT5vS; } goto EICJg; QGvoc: goto rkVlZ; goto cnImx; f2Y3A: $info['bid'] = 0; goto w3ggL; rSYJe: if (!empty($_W['minirid'])) { goto FiLKu; } goto P1X2Y; XHi5R: nf6_U: goto YezzZ; SxH3J: $info['birthday'] = $info['birthyear'] . '-' . (strlen($info['birthmonth']) <= 1 ? '0' . $info['birthmonth'] : $info['birthmonth']) . '-' . (strlen($info['birthday']) <= 1 ? '0' . $info['birthday'] : $info['birthday']); goto YJSso; lljix: $info['rights'] = $team; goto PKcAb; Qcem5: $info['isowner'] = $member['isowner']; goto E3CWV; chNVr: $info = pdo_fetch('select * from ' . tablename('mc_members') . ' where uniacid=:uniacid and uid=:uid', array(":uniacid" => $_W['uniacid'], ":uid" => $uid)); goto A5lJc; EEQaf: $info['hid'] = 0; goto VkWTi; voze4: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto uY0t2; QUNT3: $info['lifepay_token'] = $region['lifepay_token']; goto pAR_k; ppkjd: E8F9b: goto djmeZ; Nyb8m: if (!(!empty($info['birthyear']) && !empty($info['birthmonth']) && !empty($info['birthday']))) { goto Rvrd0; } goto SxH3J; Cnhzd: $info['rtitle'] = $region['title']; goto VYWyv; cnImx: WOuAf: goto gkwQ8; g8jzJ: $info['doortime'] = 0; goto iUglE; DErtg: $info['hid'] = $member['hid']; goto V8FbS; lmL4Z: $info['rid'] = $member['rid']; goto jbr5S; w3ggL: $info['tid'] = 0; goto rT8r1; CE6xk: if (empty($info['groupid'])) { goto GS0dw; } goto rSYJe; FZscd: D62O6: goto wvnwr; KViF4: global $_W; goto CUduT; eE1uP: $info['pid'] = $member['pid']; goto DzF_j; utTEN: $info['menu'] = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'])); goto z4A2t; Q6HNo: if (!empty($_W['minirid'])) { goto WOuAf; } goto wkCgE; UI2df: $info['ownername'] = $mutiteam['realname']; goto MekMa; SlQnl: $region_follow = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $_W['minirid'], ":uid" => $uid)); goto o1cau; NvjkZ: if (!empty($_W['minirid'])) { goto xOKhl; } goto qNlSI; o1cau: OlTp2: goto zfDI3; YJSso: Rvrd0: goto WI7ZH; BiO4_: goto nrLS1; goto kq7RB; E3CWV: $info['ctime'] = $member['ctime']; goto xqNM9; QJa74: goto E8F9b; goto FZscd; Bc0lk: GS0dw: goto JKYfd; zfDI3: if (!empty($region_follow)) { goto w1tSK; } goto CE6xk; tGj1h: $info['avatar'] = str_replace('http://', 'https://', $info['avatar']); goto Q1tuL; DzwIe: $info['otype'] = 0; goto oH56w; DJQXE: $info['status'] = 0; goto UI2df; mDFe1: $uid = mc_openid2uid($openid); goto Kb7B1; tHJBL: $info['ctime'] = 0; goto miH_9; N1wlf: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $_W['minirid'])); goto eD2pB; Oyp7S: $info['pid'] = $region['pid']; goto ywNtI; rT8r1: $info['hid'] = 0; goto NEDo_; pAR_k: $info['lifepay_rid'] = $region['lifepay_rid']; goto ZTSDz; KqyoH: $info['status'] = $member['status']; goto b5afG; cP4Ks: goto rkVlZ; goto XHi5R; r7XIh: rkVlZ: goto ppkjd; z2GZ5: $info['isbind'] = 1; goto JAUjC; WI7ZH: if (!empty($info['birthday'])) { goto uxBmV; } goto LAI3u; CD4jS: $info['pid'] = $region['pid']; goto vCZCs; LayPs: nrLS1: goto mnQg0; rZXxt: $info['status'] = 0; goto YATS5; v32Je: $info['pid'] = $region_follow['pid']; goto D12r4; o6ZmQ: KtRF_: goto vUm1M; DzF_j: $info['bid'] = $member['bid']; goto H3z96; rjwvQ: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto IHcqy; CUduT: $uid = intval($openid); goto AzA7R; cb5bc: $info['pid'] = $team['pid']; goto nT8EV; Q1tuL: YPE2O: goto Nyb8m; P1X2Y: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and groupid=:groupid'; goto Jyd5W; b6JPv: goto zjhG2; goto K1nDg; OzH2D: $mutiteam = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":openid" => $_W['openid'], ":uid" => $uid)); goto yrD3Y; NhSj7: if (!in_array($_W['minirid'], $regionarr)) { goto Qwa01; } goto z2GZ5; cw2_b: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto Coy0W; QjkpW: $info['isbind'] = 1; goto jlVO8; ywNtI: $info['rid'] = $region['id']; goto CNGUQ; Coy0W: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $region_follow['rid'])); goto gezqv; z4A2t: $sql = 'SELECT * FROM ' . tablename('rhinfo_zyxq_member') . ' where weid = :weid and (openid=:openid or uid=:uid) and category = :category and deleted=0 and status=0'; goto XMcLK; pPcRZ: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto lZD3y; JKYfd: goto XUIRe; goto cGnVG; NEDo_: $info['category'] = 0; goto JTpMe; vCZCs: $info['bid'] = 0; goto I3P84; GTPop: $info['pid'] = $region['pid']; goto f2Y3A; fhUKf: $info['address'] = '物业服务人员'; goto OdqSx; VYWyv: $info['telphone'] = $region['telphone']; goto Oyp7S; yhJ8o: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and t.rid=:rid and c.type=4 and (t.openid = :openid or t.uid = :uid) order by isdefault desc'; goto dKNgN; K1nDg: FiLKu: goto rjwvQ; a86WW: xOKhl: goto zgSTE; LJ9HD: if (!empty($member)) { goto WGNE8; } goto w9l4W; GnfPo: $info['rtitle'] = $region['title']; goto CD4jS; pWEvN: uxBmV: goto p6AnI; p6AnI: $info['isbind'] = 0; goto SXzGT; VtZPB: $info['isbind'] = 1; goto RCBVD; ebT75: $info['rid'] = $team['rid']; goto RUzN0; wkCgE: if (!empty($regionarr)) { goto nf6_U; } goto QGvoc; OWqOq: $info['category'] = 0; goto OyezZ; WG1RZ: OFdN_: goto aK9g0; jB0qH: $sql = 'select * from ' . tablename('rhinfo_zyxq_member') . ' where weid=:weid and (openid=:openid or uid=:uid) and deleted=0 and status=0 order by isdefault desc'; goto TndM5; nT8EV: $info['bid'] = 0; goto b1GtG; cGnVG: w1tSK: goto v32Je; JAUjC: $info['ismanager'] = 1; goto AkxAK; e2Uyn: $info['isfollow'] = 0; goto mTogF; zgSTE: $sql = 'select * from ' . tablename('rhinfo_zyxq_region_follow') . ' where weid=:weid and rid:=rid and uid=:uid and deleted=0'; goto SlQnl; TndM5: $member = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":openid" => $_W['openid'], ":uid" => $uid)); goto Hwl72; wvnwr: $regionarr = explode(',', $mutiteam['ridstr']); goto Q6HNo; VkWTi: $info['category'] = 0; goto cFwKg; J3SlA: XUIRe: goto QJa74; X2ERE: goto OFdN_; goto n8moc; mTogF: $info['rights'] = array(); goto D7sra; tH5F4: $region_follow = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto kXId2; sK5dg: $info['telphone'] = $region['telphone']; goto QjkpW; V8FbS: $info['category'] = $member['category']; goto sK5dg; H3z96: $info['tid'] = $member['tid']; goto DErtg; b5afG: $info['ownername'] = $member['realname']; goto QUNT3; IHcqy: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $_W['minirid'])); goto aLS6A; s085F: $info['address'] = $member['address']; goto KqyoH; Hwl72: goto Ly1k9; goto o6ZmQ; cFwKg: $info['telphone'] = $region['telphone']; goto x6tvw; KS5ij: $info['rights'] = $mutiteam; goto r7XIh; RcnLE: $info['otype'] = 0; goto tHJBL; h5gZM: Ly1k9: goto LJ9HD; g0cDD: return $info; goto mZK_Z; D12r4: $info['rid'] = $region_follow['rid']; goto cw2_b; RCBVD: $info['ismanager'] = 1; goto DzwIe; FUItp: $info['doortime'] = 0; goto IsAYO; OyezZ: $info['telphone'] = $region['telphone']; goto VtZPB; OdqSx: $info['status'] = 0; goto NjKc0; dKNgN: $team = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $_W['minirid'], ":openid" => $_W['openid'], ":uid" => $uid)); goto WG1RZ; gkwQ8: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto N1wlf; mnQg0: $sql = 'select * from ' . tablename('rhinfo_zyxq_regionmenu') . ' where weid=:weid and rid=:rid and enabled=1'; goto utTEN; u1fCg: $info['ismanager'] = 1; goto RcnLE; SXzGT: $info['ismanager'] = 0; goto e2Uyn; w9l4W: if (!empty($_W['minirid'])) { goto XzimE; } goto UGG6y; vUm1M: $sql = 'select * from ' . tablename('rhinfo_zyxq_member') . ' where weid=:weid and rid=:rid and (openid=:openid or uid=:uid) and deleted=0 and status=0 order by isdefault desc'; goto KZh2z; Kb7B1: uT5vS: goto GoT2D; drdyt: $info['feeshowtype'] = $region['feeshowtype']; goto Ny0sd; oH56w: $info['ctime'] = 0; goto g8jzJ; x6tvw: $info['isbind'] = 1; goto u1fCg; gezqv: $info['rtitle'] = $region['title']; goto MEyex; jlVO8: $info['otype'] = $member['otype']; goto Qcem5; XMcLK: $info['houses'] = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":openid" => $_W['openid'], ":uid" => $_W['member']['uid'], ":category" => 1)); goto g0cDD; MEyex: $info['telphone'] = $region['telphone']; goto JUeyC; kXId2: goto OlTp2; goto a86WW; D7sra: if (!empty($_W['minirid'])) { goto KtRF_; } goto jB0qH; xqNM9: $info['doortime'] = $member['doortime']; goto s085F; tWBJ_: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $team['rid'])); goto ebT75; gxXoF: $info['hid'] = 0; goto OWqOq; AYXc5: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto tWBJ_; JUeyC: $info['isfollow'] = 1; goto J3SlA; yrD3Y: if (!empty($mutiteam)) { goto D62O6; } goto NvjkZ; IsAYO: $info['address'] = '物业服务人员'; goto DJQXE; PKcAb: E7sov: goto BiO4_; miH_9: $info['doortime'] = 0; goto fhUKf; eD2pB: $info['rid'] = $_W['minirid']; goto vNo3T; n8moc: XzimE: goto yhJ8o; nkGxQ: eEPDE: goto AYXc5; b1GtG: $info['tid'] = 0; goto gxXoF; JTpMe: $info['telphone'] = $region['telphone']; goto NhSj7; iUglE: $info['address'] = '物业服务人员'; goto rZXxt; A5lJc: if (!$_W['ishttps']) { goto YPE2O; } goto tGj1h; vNo3T: $info['rtitle'] = $region['title']; goto GTPop; UGG6y: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and (t.openid = :openid or t.uid = :uid) and t.rid>0 order by isdefault desc'; goto nSJqs; aK9g0: if (!empty($team)) { goto eEPDE; } goto JndBe; mZK_Z: } public function getmanager($openid, $rid = 0) { goto KIKJ1; RhBCE: c8dLx: goto OwZ8R; FGoAw: R93ya: goto Ry9kG; RNOZG: if (!empty($rid)) { goto GHBKV; } goto OJ_RB; Z7HvV: goto R93ya; goto aOgOV; SRjDU: $regionarr = explode(',', $mutiteam['ridstr']); goto KalVm; x4mD0: if (empty($mutiteam)) { goto O3BoT; } goto Fpsvg; S051m: rHO0Q: goto Dqd7x; Vsees: $info['ismanager'] = 1; goto enWTt; mMXGE: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and t.uid = :uid and t.rid=0'; goto vSzPn; dcdle: xmm3i: goto bqh1d; PkIhf: xpNkX: goto R4oeI; nWh8I: if (empty($mutiteam)) { goto DVWgk; } goto P6gqF; kkw6k: sLKpv: goto GBXAq; HQC65: $info['rights'] = $mutiteam; goto wFP2J; PduoV: goto LZHPe; goto w1OE0; MjAln: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and t.rid=:rid and c.type=4 and t.uid = :uid order by isdefault desc'; goto RtqRa; OJ_RB: if (!empty($_W['minirid'])) { goto dk6Ju; } goto jNLdp; P6gqF: if (!empty($mutiteam['ridstr'])) { goto c8dLx; } goto gkUN4; SQ_Mt: kCXuZ: goto lwlUu; fNv38: if (!empty($team)) { goto lYNiC; } goto jK0Pg; mEFd2: $info['rights'] = $team; goto vH1gs; lQ3vs: $info['ismanager'] = 1; goto ZfC4x; Z_nKI: $info['ismanager'] = 1; goto CbfK2; CbfK2: $info['rights'] = $team; goto zAc02; OwZ8R: $regionarr = explode(',', $mutiteam['ridstr']); goto i_s8o; Dqd7x: $info['ismanager'] = 1; goto LIpmc; uuD1Q: $team = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'], ":uid" => $info['uid'])); goto fNv38; Hz2wl: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and t.uid = :uid and t.rid=0'; goto hyazZ; V8Rt8: $info['ismanager'] = 1; goto lp6Fw; vH1gs: Ppw2L: goto Z7HvV; bqh1d: $info = array(); goto ciwWH; GBXAq: goto Ppw2L; goto S051m; LS9f7: $info['rights'] = array(); goto RNOZG; PY7re: $info['ismanager'] = 1; goto NwSHt; c8zjr: $info['rights'] = $mutiteam; goto KjB11; aKLrO: if (!empty($team)) { goto Pzj2Z; } goto mMXGE; rWbto: $info['uid'] = $uid; goto LS9f7; ZVK8N: JkX7y: goto XcJ0j; eC8vj: if (!empty($team)) { goto rHO0Q; } goto MylYU; KjB11: goto IYoxY; goto RhBCE; jK0Pg: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and t.uid = :uid and t.rid>0'; goto jQGKJ; e4FJt: $info['rights'] = $team; goto lDVsF; Ry9kG: goto YoFS_; goto cFV0x; O2jOy: VfrVt: goto kkw6k; cFV0x: GHBKV: goto tSQJI; TCzII: $uid = mc_openid2uid($openid); goto dcdle; bn0U9: WnGKu: goto csRGq; IzGNc: if (!empty($mutiteam['ridstr'])) { goto T3EeX; } goto V8Rt8; L1S5x: $info['rights'] = $mutiteam; goto slPEv; NT1Q8: if (empty($regionarr)) { goto bQWGl; } goto P4nJ1; jNLdp: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and t.uid = :uid and t.rid>0'; goto NwGgh; enWTt: $info['rid'] = $regionarr[0]; goto VMCUw; lDVsF: UJ8Vn: goto X5dSP; RtqRa: $team = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'], ":uid" => $info['uid'])); goto aKLrO; ciwWH: $info['ismanager'] = 0; goto rWbto; Fpsvg: if (!empty($mutiteam['ridstr'])) { goto WnGKu; } goto gLo8v; i0jcS: T3EeX: goto SRjDU; gLo8v: $info['ismanager'] = 1; goto HQC65; MylYU: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and c.type=4 and t.uid = :uid and t.rid=0'; goto BXLd4; fGZvr: if (empty($mutiteam)) { goto sLKpv; } goto IzGNc; X5dSP: goto l_To2; goto N8iSi; SkGQG: aW0im: goto O2jOy; V1Nh3: $info['rid'] = $_W['minirid']; goto a3u95; aOgOV: dk6Ju: goto V1Nh3; ctRVf: l_To2: goto FGoAw; NwGgh: $team = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $info['uid'])); goto eC8vj; VMCUw: $info['rights'] = $mutiteam; goto SkGQG; hyazZ: $mutiteam = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $info['uid'])); goto nWh8I; XcJ0j: O3BoT: goto PduoV; aIHs6: DVWgk: goto di5KG; N8iSi: lYNiC: goto PY7re; JcK6K: if (!empty($team)) { goto xpNkX; } goto Hz2wl; XF0ws: goto VfrVt; goto i0jcS; tSQJI: $info['rid'] = $rid; goto MjAln; xkRF5: return $info; goto T2fj8; NwSHt: $info['rights'] = $team; goto ctRVf; lp6Fw: $info['rid'] = pdo_getcolumn('rhinfo_zyxq_region', array("weid" => $_W['uniacid'], "pid" => $mutiteam['pid']), 'id'); goto IM04Y; KIKJ1: global $_W; goto NAK2P; NAK2P: $uid = intval($openid); goto i5EfQ; i_s8o: if (empty($regionarr)) { goto kCXuZ; } goto lQ3vs; xJlqR: $info['rid'] = in_array($info['rid'], $regionarr) ? $info['rid'] : $regionarr[0]; goto L1S5x; i5EfQ: if (!($uid == 0)) { goto xmm3i; } goto e30F6; ZfC4x: $info['rid'] = in_array($info['rid'], $regionarr) ? $info['rid'] : $regionarr[0]; goto j0Cs2; ht2PP: YoFS_: goto xkRF5; w1OE0: Pzj2Z: goto Z_nKI; wFP2J: goto JkX7y; goto bn0U9; zAc02: LZHPe: goto ht2PP; BXLd4: $mutiteam = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $info['uid'])); goto fGZvr; gkUN4: $info['ismanager'] = 1; goto c8zjr; LIpmc: $info['rid'] = $team['rid']; goto mEFd2; e30F6: load()->model('mc'); goto TCzII; IM04Y: $info['rights'] = $mutiteam; goto XF0ws; R4oeI: $info['ismanager'] = 1; goto e4FJt; di5KG: goto UJ8Vn; goto PkIhf; j0Cs2: $info['rights'] = $mutiteam; goto SQ_Mt; csRGq: $regionarr = explode(',', $mutiteam['ridstr']); goto NT1Q8; slPEv: bQWGl: goto ZVK8N; jQGKJ: $team = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $info['uid'])); goto JcK6K; lwlUu: IYoxY: goto aIHs6; P4nJ1: $info['ismanager'] = 1; goto xJlqR; a3u95: $sql = 'select t.*,c.title,c.right1,c.right2,c.right3,c.right4,c.right5,c.right6,c.right7,c.right8,c.right9,c.right10,c.right11,c.right12,c.right13,c.right14,c.right15,c.right16,c.right17,c.right18,c.right19,c.right20,c.right21 FROM ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.status=1 and t.weid = :weid and t.rid=:rid and c.type=4 and t.uid = :uid order by isdefault desc'; goto uuD1Q; vSzPn: $mutiteam = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $info['uid'])); goto x4mD0; KalVm: if (empty($regionarr)) { goto aW0im; } goto Vsees; T2fj8: } public function getnotice($openid) { goto Q_vYb; pFVEi: $info = array(); goto Svuxd; WpGmn: $info['unreadnotice'] = $unreadnotice; goto c0gJN; LYS7y: W4tZ7: goto brWxK; brWxK: if (!empty($notice)) { goto ID1ik; } goto vNaF3; gAVms: foreach ($data as &$value) { goto nQ7NN; nQ7NN: $sql = 'select id from ' . tablename('rhinfo_zyxq_notice_log') . ' where weid=:weid and nid=:nid and uid=:uid limit 1'; goto j4pet; j4pet: $item = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":nid" => $value['id'], ":uid" => $_W['member']['uid'])); goto LPJvt; dzhgp: rLGYl: goto O2Gp8; thUNU: Wzz8F: goto dzhgp; ZjKO5: $unreadnotice++; goto thUNU; LPJvt: if (!empty($item)) { goto Wzz8F; } goto ZjKO5; O2Gp8: } goto GmeZI; CS7ya: $sql = 'select * from ' . tablename('rhinfo_zyxq_notice') . ' where weid=:weid and rid=:rid and status>1 and bid=0 and tid=0 and category=1'; goto t0Xit; SnO07: $data2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'])); goto fYQ8B; fYQ8B: $data = array_merge($data1, $data2); goto rUywR; yoYS6: $data = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'])); goto OH7Sc; c0gJN: return $info; goto Xu6NP; Fafrf: $sql = 'select * from ' . tablename('rhinfo_zyxq_notice') . ' where weid=:weid and rid=:rid and status>1 and category=1 and ' . $notice['bid'] . ' in (bid) and tid in(0,' . $notice['tid'] . ') and hid in(0,' . $notice['hid'] . ')'; goto SnO07; GmeZI: QSSlO: goto WpGmn; IfStM: $notice = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'], ":openid" => $_W['openid'], ":uid" => $_W['member']['uid'])); goto LYS7y; Q_vYb: global $_W; goto pFVEi; vNaF3: $sql = 'select * from ' . tablename('rhinfo_zyxq_notice') . ' where weid=:weid and rid=:rid and status>1 and bid=0 and tid=0 and category=1'; goto yoYS6; OH7Sc: goto pXuix; goto XoEPx; W7ZDg: if (empty($info)) { goto W4tZ7; } goto a9QZj; Svuxd: $info = $this->getmyinfo($openid); goto W7ZDg; a9QZj: $sql = 'select * from ' . tablename('rhinfo_zyxq_member') . ' where weid=:weid and rid=:rid and (openid=:openid or uid=:uid) and bid>0 and tid > 0 and deleted=0 and status=0 order by isdefault desc'; goto IfStM; rUywR: pXuix: goto vkJzV; t0Xit: $data1 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'])); goto Fafrf; XoEPx: ID1ik: goto CS7ya; vkJzV: $unreadnotice = 0; goto gAVms; Xu6NP: } public function mycondition() { goto xcsNk; Syb5e: lB1E7: goto TbjUa; oLo1e: uc79f: goto bmTJ8; TlGZL: $condition = ' and pid = ' . $mywe['pid']; goto Syb5e; k9S20: goto CXHJK; goto oLo1e; H2mwZ: $condition = ''; goto AR9BH; TbjUa: CXHJK: goto TY2MM; St9Zj: if (!empty($_W['uid'])) { goto uc79f; } goto y1abB; xcsNk: global $_W, $_GPC; goto H2mwZ; TY2MM: return $condition; goto KRUBe; y1abB: $condition = ' and pid = ' . $mywe['pid']; goto k9S20; AR9BH: $mywe = $this->mywe; goto St9Zj; bmTJ8: if (!$mywe['pid']) { goto lB1E7; } goto TlGZL; KRUBe: } public function myproperty() { goto It5Ac; vqKgZ: DG7ny: goto pdZas; pO6ZI: if ($_W['usercfrom'] == 2) { goto PQF3o; } goto jzzCU; f1Q6f: $property = pdo_fetchall($sql, array(":weid" => $_W['uniacid'])); goto WNmTO; XEypc: $property = pdo_fetchall($sql, array(":weid" => $mywe['weid'], ":pid" => $mywe['pid'])); goto tYYCB; nL9Yq: $property = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":pid" => $mywe['pid'])); goto fF9GU; fF9GU: bHCrn: goto oTnah; RNvsN: if (!empty($mywe['pid'])) { goto j_lsM; } goto Q5a8z; C78VG: switch ($mywe['usertype']) { case 1: goto elNP9; lPof3: $condition .= ' and id in (select id from ' . tablename('rhinfo_zyxq_property') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\')'; goto s086a; elNP9: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto lPof3; s086a: goto DG7ny; goto quC7n; quC7n: case 2: goto DirMz; KqCD5: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $area['parentid'])); goto B1gOm; B1gOm: $condition .= ' and id in (select id from ' . tablename('rhinfo_zyxq_property') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\' and district=\'' . $area['title'] . '\')'; goto Ll2yP; Ll2yP: goto DG7ny; goto KTy9w; DirMz: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto KqCD5; KTy9w: case 3: goto qkktu; NszYs: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $area['parentid'])); goto qgK2M; x4pFu: goto DG7ny; goto dAbkV; qgK2M: $condition .= ' and id in (select id from ' . tablename('rhinfo_zyxq_property') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\' and district=\'' . $area['title'] . '\')'; goto x4pFu; ogehb: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $street['parentid'])); goto NszYs; qkktu: $street = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto ogehb; dAbkV: case 4: goto dzwpT; RwKWZ: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $street['parentid'])); goto ck9Bi; bVuMd: $condition .= ' and id in (select id from ' . tablename('rhinfo_zyxq_property') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\' and district=\'' . $area['title'] . '\')'; goto tImiA; tImiA: goto DG7ny; goto Lz_gK; ck9Bi: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $area['parentid'])); goto bVuMd; lEk_I: $street = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $organize['parentid'])); goto RwKWZ; dzwpT: $organize = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto lEk_I; Lz_gK: } goto lwOJu; jzzCU: $condition = ' weid = :weid and id = :pid'; goto Xhiur; WNmTO: goto bHCrn; goto r0Ahv; r0Ahv: j_lsM: goto fwOmm; xav7m: $mywe = $this->mywe; goto kZq3J; lwOJu: WdDE7: goto vqKgZ; kZq3J: if (!empty($_W['uid'])) { goto g5uZj; } goto pO6ZI; oTnah: HpN2u: goto c3YyC; o1JkN: g5uZj: goto RNvsN; It5Ac: global $_W, $_GPC; goto xav7m; Xhiur: $sql = 'select id,title from ' . tablename('rhinfo_zyxq_property') . ' where ' . $condition; goto XEypc; HoRUY: goto HpN2u; goto o1JkN; fwOmm: $sql = 'select id,title from ' . tablename('rhinfo_zyxq_property') . ' where weid = :weid and id=:pid'; goto nL9Yq; ysLPV: $condition = ' weid = :weid '; goto C78VG; c3YyC: return $property; goto aRBKn; yg9O2: ZJ8xC: goto HoRUY; tYYCB: goto ZJ8xC; goto cLryb; uLUM0: $property = pdo_fetchall($sql, array(":weid" => $mywe['weid'])); goto yg9O2; cLryb: PQF3o: goto ysLPV; pdZas: $sql = 'select id,title from ' . tablename('rhinfo_zyxq_property') . ' where ' . $condition; goto uLUM0; Q5a8z: $sql = 'select id,title from ' . tablename('rhinfo_zyxq_property') . ' where weid = :weid'; goto f1Q6f; aRBKn: } public function mycity() { goto XqvKw; zOP8e: switch ($mywe['usertype']) { case 1: $cityid = $mywe['orgid']; goto QjLoK; case 2: goto Q8C0i; ya_Vn: goto QjLoK; goto jH3eQ; Q8C0i: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto CIkR2; CIkR2: $cityid = $area['parentid']; goto ya_Vn; jH3eQ: case 3: goto QSbfS; nSMWe: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $street['parentid'])); goto Oubn5; Oubn5: $cityid = $area['parentid']; goto qMaL8; qMaL8: goto QjLoK; goto v9dzP; QSbfS: $street = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto nSMWe; v9dzP: case 4: goto jrU4v; pqUuO: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $street['parentid'])); goto opU6J; I5HtC: $street = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $organize['parentid'])); goto pqUuO; EFd9f: goto QjLoK; goto C1dFt; jrU4v: $organize = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto I5HtC; opU6J: $cityid = $area['parentid']; goto EFd9f; C1dFt: } goto aK5x4; JpLU3: Ekvlo: goto QFb8h; A34om: if (!empty($_W['uid'])) { goto Ekvlo; } goto zOP8e; vTpAF: QjLoK: goto JpLU3; VI31d: $cityid = ''; goto A34om; XctEm: $mywe = $this->mywe; goto VI31d; XqvKw: global $_W, $_GPC; goto XctEm; aK5x4: WBgD3: goto vTpAF; QFb8h: return $cityid; goto n95N_; n95N_: } public function mydo() { goto d52jk; d52jk: $sql = 'select do,title from ' . tablename('rhinfo_zyxq_secprg') . ' order by sid,displayorder desc'; goto YVMk6; YVMk6: $data = pdo_fetchall($sql); goto maz3h; maz3h: return $data; goto BB2fL; BB2fL: } public function myrcondition() { goto FH6Jc; J75tm: kxaHL: goto tePpJ; FH6Jc: global $_W, $_GPC; goto JDHvn; ziNMq: $condition = ' and pid = ' . $mywe['pid']; goto fjZw0; hfRpX: $condition = ' and rid in(' . $mywe['rid'] . ')'; goto nvjrd; r50QG: $mywe = $this->mywe; goto ddq9g; sF2aG: return $condition; goto yV0by; uKcih: goto Ps1hv; goto JohAp; nvjrd: atW42: goto qB0Zv; Este0: $condition = ' and rid in(' . $mywe['rid'] . ')'; goto uKcih; WJrif: t0QYl: goto Este0; ddq9g: if ($_W['usercfrom'] == 2) { goto LYeLY; } goto YMirh; YMirh: if (!empty($_W['uid'])) { goto Iw0pq; } goto Ni2R6; JohAp: ZeB5u: goto ScxRs; Ni2R6: if ($mywe['rid']) { goto rio9o; } goto ziNMq; W_OZb: switch ($mywe['usertype']) { case 1: goto XjciC; v9Eyc: $condition = ' and rid in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\')'; goto Nz8G3; Nz8G3: goto JAf9B; goto hHmsj; XjciC: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto v9Eyc; hHmsj: case 2: goto SWh2A; SWh2A: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto vPSVy; xNhL4: goto JAf9B; goto ik29p; vPSVy: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $area['parentid'])); goto HLvzt; HLvzt: $condition = ' and rid in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\' and district=\'' . $area['title'] . '\')'; goto xNhL4; ik29p: case 3: $condition = ' and rid in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and streetid=\'' . $mywe['orgid'] . '\')'; goto JAf9B; case 4: $condition = ' and rid in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and orgid=\'' . $mywe['orgid'] . '\')'; goto JAf9B; } goto m3WsL; FcQew: if ($mywe['pid']) { goto ZeB5u; } goto qUdKj; eAwK7: if ($mywe['rid']) { goto t0QYl; } goto FcQew; qUdKj: goto Ps1hv; goto WJrif; tePpJ: goto HvKw2; goto I_Eu2; qB0Zv: goto kxaHL; goto KVjjA; fbCTv: HvKw2: goto sF2aG; KVjjA: Iw0pq: goto eAwK7; fjZw0: goto atW42; goto miRFU; LBDjm: JAf9B: goto fbCTv; miRFU: rio9o: goto hfRpX; I_Eu2: LYeLY: goto W_OZb; ScxRs: $condition = ' and pid = ' . $mywe['pid']; goto MOZa0; m3WsL: NLM9H: goto LBDjm; JDHvn: $condition = ''; goto r50QG; MOZa0: Ps1hv: goto J75tm; yV0by: } public function wyrcondition() { goto TwE2s; DSr65: $condition = ' and pid = ' . $mywe['pid']; goto fqKt3; cgsLg: if ($mywe['pid']) { goto yB1XX; } goto pZCdY; p6un2: goto j82Ac; goto ac0TF; QljPp: YcaEG: goto FhBKk; YkYmZ: $condition = ' and pid = ' . $mywe['pid']; goto vdeuQ; WFRhe: if (!empty($_W['uid'])) { goto pIydx; } goto YCsff; us5HE: $condition = ' and id in(' . $mywe['rid'] . ')'; goto S9WTK; sMdk9: goto ZSey9; goto B08Br; ac0TF: Ll1Zc: goto FbmLs; YCsff: if ($mywe['rid']) { goto Ir51S; } goto DSr65; moncJ: LXNnM: goto QljPp; FbmLs: switch ($mywe['usertype']) { case 1: goto NunVp; NunVp: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto xTbQc; fEN2z: goto YcaEG; goto O_ArR; xTbQc: $condition = ' and id in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\')'; goto fEN2z; O_ArR: case 2: goto kNFZ6; AIeSY: goto YcaEG; goto F_inj; kNFZ6: $area = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $mywe['orgid'])); goto BpH73; BpH73: $city = pdo_get('rhinfo_zyxq_city', array("weid" => $mywe['weid'], "id" => $area['parentid'])); goto lFP7h; lFP7h: $condition = ' and id in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and province=\'' . $city['province'] . '\' and city=\'' . $city['title'] . '\' and district=\'' . $area['title'] . '\')'; goto AIeSY; F_inj: case 3: $condition = ' and id in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and streetid=\'' . $mywe['orgid'] . '\')'; goto YcaEG; case 4: $condition = ' and id in (select id from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and orgid=\'' . $mywe['orgid'] . '\')'; goto YcaEG; } goto moncJ; fqKt3: goto LbYll; goto HXdER; QkiWe: return $condition; goto f0T1l; FhBKk: j82Ac: goto QkiWe; B08Br: pIydx: goto L9Bsm; S9WTK: goto T8dI2; goto EsIke; XeU5T: if ($_W['usercfrom'] == 2) { goto Ll1Zc; } goto WFRhe; Tg3oY: $condition = ' and id in(' . $mywe['rid'] . ')'; goto pbGq0; HXdER: Ir51S: goto Tg3oY; pZCdY: goto T8dI2; goto fZGUF; EsIke: yB1XX: goto YkYmZ; ztFqs: ZSey9: goto p6un2; pbGq0: LbYll: goto sMdk9; z5oO5: $mywe = $this->mywe; goto XeU5T; TwE2s: global $_W, $_GPC; goto LUSzr; fZGUF: tv1S9: goto us5HE; vdeuQ: T8dI2: goto ztFqs; LUSzr: $condition = ''; goto z5oO5; L9Bsm: if ($mywe['rid']) { goto tv1S9; } goto cgsLg; f0T1l: } public function mymenus() { goto i5v8n; dc6j8: if ($mywe['gid'] == 0) { goto r6OPg; } goto OeXx1; vf2ts: goto RK6Sk; goto lVsQ9; oeg26: V2Iwz: goto FO_Qn; oqWTQ: goto c0uR2; goto a_fG7; zIfxv: goto ZssBs; goto nUxwa; arPWx: foreach ($menus as $key => $value) { goto lINen; lINen: if (!in_array($value['id'], $hidesys)) { goto Fg1Ev; } goto Plr60; EkJlf: Fg1Ev: goto Mk9W7; Mk9W7: uq7Bj: goto qLXnK; Plr60: unset($menus[$key]); goto EkJlf; qLXnK: } goto vBUL5; emXKh: eAzvy: goto ZTbtI; dCJFk: if ($_W['isfounder']) { goto RLUxt; } goto kxRi1; nUxwa: L_wGj: goto fDoin; t9Apw: goto z7cE2; goto wPmBQ; Bc_ef: ZssBs: goto EQeIZ; Fpx3x: RK6Sk: goto oiGVc; tlEdx: foreach ($menus as &$value) { goto JCl9f; elWf5: if ($mywe['pid']) { goto fFCxP; } goto Hfpmr; YorRb: yanmj: goto vifdv; eohEk: $sql = 'select p.id,p.title,p.url,p.op,p.do,p.iconfont from ' . tablename('rhinfo_zyxq_secprg') . ' as p ,' . tablename('rhinfo_zyxq_secgprg') . 'as g where p.id = g.pid and g.gid = ' . $mywe['gid'] . ' and p.sid = :sid and p.isdisplay = :isdisplay and p.isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by p.displayorder , p.id'; goto rxTBj; CJbYU: HQkbc: goto DH2vx; JxKsN: if ($mywe['gid'] == 0) { goto SG5qt; } goto eohEk; slvKI: fFCxP: goto lQkpf; fpCzO: goto yanmj; goto O2Kaz; O2Kaz: SG5qt: goto whcGN; wOsNQ: jtlzw: goto JwnQI; vifdv: goto J8RhC; goto wOsNQ; f1_k0: KfjJQ: goto URJFY; S1nGg: sy3ka: goto lvtiW; GV15A: Hw2UH: goto R7b8Y; jL_J2: $submenus = pdo_fetchall($sql, $params = array(":sid" => $value['id'], ":isdisplay" => "1")); goto h9ERY; JwnQI: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdisplay = :isdisplay and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by displayorder, id'; goto jL_J2; JCl9f: if ($_W['isfounder']) { goto jtlzw; } goto JxKsN; XTZwL: $value['submenus'] = $submenus; goto CJbYU; rxTBj: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":isdisplay" => "1")); goto fpCzO; DH2vx: zVNwT: goto orX1r; QCRUG: $submenus = pdo_fetchall($sql, $params = array(":sid" => $value['id'], ":isdisplay" => "1")); goto YorRb; h8qgZ: if ($mywe['rid']) { goto KfjJQ; } goto elWf5; URJFY: foreach ($submenus as $key => $subvalue) { goto IGi5P; IGi5P: if (!in_array($subvalue['id'], $hidemenus)) { goto cGlp5; } goto PE6lo; mU0ID: O3Huw: goto FqbPm; WXbN8: if (!$mywe['region']) { goto O3Huw; } goto sYJ5L; sYJ5L: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto n9YPh; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto n9YPh; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto n9YPh; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto n9YPh; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto n9YPh; } goto oCOQv; B7pE8: n9YPh: goto Mag04; oCOQv: T7tDk: goto B7pE8; PE6lo: unset($submenus[$key]); goto K0Bjw; gQnoG: Ipt4x: goto mU0ID; K0Bjw: cGlp5: goto WXbN8; FqbPm: FubBq: goto wen3j; Vi4TA: unset($submenus[$key]); goto gQnoG; Mag04: if (!in_array($subvalue['id'], $hideregionmenus)) { goto Ipt4x; } goto Vi4TA; wen3j: } goto GV15A; sZMFV: r4rdu: goto XTZwL; SVE67: foreach ($submenus as &$item) { goto LH9rD; PGzKI: OLcx_: goto nLJlZ; hFR5x: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto PGzKI; nLJlZ: dUV_t: goto B2SwI; LH9rD: if (!(!empty($item['op']) && !empty($item['do']))) { goto OLcx_; } goto hFR5x; B2SwI: } goto sZMFV; Hfpmr: goto sy3ka; goto f1_k0; h9ERY: J8RhC: goto h8qgZ; R7b8Y: goto sy3ka; goto slvKI; w77j3: OKaRM: goto S1nGg; lvtiW: if (empty($submenus)) { goto HQkbc; } goto SVE67; whcGN: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdisplay = :isdisplay and isdismenu=1  order by displayorder, id'; goto QCRUG; lQkpf: foreach ($submenus as $key => $subvalue) { goto YWzTH; Yi6NH: PJt1H: goto a5qWo; OBHIW: d5_e3: goto Yi6NH; YWzTH: if (!in_array($subvalue['id'], $hidemenus)) { goto d5_e3; } goto tOr94; tOr94: unset($submenus[$key]); goto OBHIW; a5qWo: } goto w77j3; orX1r: } goto YoEyO; fBdRE: ASadM: goto M1RQh; x6abL: return $menus; goto U54VX; lVsQ9: jRWWE: goto HZyRQ; GEjNT: if (empty($menus)) { goto wZaN3; } goto nh1s3; L6nkY: if (!empty($_W['uid'])) { goto hsbpW; } goto UJhKb; enElE: goto wa31x; goto ttHmF; kxRi1: if (!empty($mywe['userno'])) { goto aR3RI; } goto TSGeT; UJhKb: if ($_W['usercfrom'] == 2) { goto AHGYz; } goto CxvPP; WEMxb: z7cE2: goto wObiW; LhWtb: if (!empty($_W['uid'])) { goto L_wGj; } goto NzadF; o1Om_: xy1c3: goto QN63w; pdFg3: foreach ($menus as &$value) { goto lGf37; dNE2s: foreach ($submenus as $key => &$item) { goto eBxqV; eBxqV: if (!(!empty($item['op']) && !empty($item['do']))) { goto ewHHF; } goto A0FRr; gWNI2: Vk7US: goto iOBfn; kLa_l: lQ0bJ: goto gWNI2; A0FRr: $item['url'] = $this->createWeburl($item['do'], array("op" => $item['op'])) . $mywe['direct']; goto u9oup; vBHYK: AB9Xq: goto K_d7u; Ag77e: if (!$mywe['usertype']) { goto Vk7US; } goto XT6Jf; iOBfn: po8ga: goto V4ZEq; cmpLh: unset($submenus[$key]); goto kLa_l; u9oup: ewHHF: goto Ag77e; K_d7u: if (!in_array($item['id'], $hideareamenus)) { goto lQ0bJ; } goto cmpLh; XT6Jf: switch ($mywe['usertype']) { case 1: $hideareamenus = array("92"); goto AB9Xq; case 2: $hideareamenus = array("92", "93", "128"); goto AB9Xq; case 3: $hideareamenus = array("92", "93", "94", "128"); goto AB9Xq; case 4: $hideareamenus = array("92", "93", "94", "95", "128"); goto AB9Xq; default: $hideareamenus = array("92", "93", "94", "95", "128"); goto AB9Xq; } goto gMZav; gMZav: bGyVy: goto vBHYK; V4ZEq: } goto UGE7z; AOO3m: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":isdisplay" => "1")); goto dNE2s; P0hw5: $value['submenus'] = $submenus; goto jsAAF; jsAAF: f11mv: goto QA3gi; lGf37: $sql = 'select p.id,p.title,p.url,p.op,p.do,p.iconfont from ' . tablename('rhinfo_zyxq_secprg') . ' as p ,' . tablename('rhinfo_zyxq_secgprg') . 'as g where p.id = g.pid and g.gid = ' . $mywe['gid'] . ' and p.sid = :sid and (p.issys=2 or p.issys=0) and p.isdisplay = :isdisplay and isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by p.displayorder , p.id'; goto AOO3m; UGE7z: Ai6F_: goto P0hw5; QA3gi: } goto emXKh; GaAEG: goto H8idG; goto ih71R; CGhKN: if ($mywe['gid'] == 0) { goto beYsq; } goto UwdCx; A3FAe: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto ljqaB; oH2Wr: yrP0g: goto uRWo_; fAxI1: $hideregionmenus = array("5", "6", "7", "76", "77", "78"); goto ni1wI; zIMpX: wZaN3: goto H5NuP; xYokc: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto XqCyI; DZgV0: $hidesys = array("14", "8"); goto jtYkf; ccI2U: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto GaAEG; ZDVkA: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder ,id'; goto jihWP; ZTbtI: tdOBD: goto WEMxb; a_fG7: G8ltf: goto dc6j8; tHXKR: $secacc = pdo_fetch($sql, array(":weid" => $mywe['weid'])); goto DZgV0; wnyO1: FI2wX: goto AquWT; a52Xf: foreach ($menus as $key => $value) { goto A0u77; A0u77: if (!in_array($value['id'], $hidesys)) { goto ge54b; } goto lMoxv; Uyxg0: hXlUM: goto AzN2v; lMoxv: unset($menus[$key]); goto Kwe29; Kwe29: ge54b: goto Uyxg0; AzN2v: } goto Wcq1i; FTAK3: egTND: goto Rj9o5; jZ5Wg: goto yrP0g; goto IO4I9; wPmBQ: AHGYz: goto fOQR0; xWRdQ: if (!empty($mywe['userno'])) { goto G8ltf; } goto eRVd4; ttHmF: VoEma: goto pAuB6; ljqaB: wa31x: goto By8uX; D5ITh: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto gZUgH; RraM4: if (empty($menus)) { goto omdyX; } goto DT0Ra; CxvPP: if ($mywe['gid'] == 0) { goto VoEma; } goto ZDVkA; i5v8n: global $_W, $_GPC; goto MNTK1; b_gMX: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0)  order by displayorder ,id'; goto D5ITh; UN4Im: r6OPg: goto Ho4Fw; LArjU: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto Md24H; By8uX: if (empty($menus)) { goto DbHcj; } goto OwUPA; gZUgH: H8idG: goto GEjNT; MNTK1: $mywe = $this->mywe; goto zKUpt; nLgWG: KhVlB: goto L6nkY; Rj9o5: if (empty($menus)) { goto Zr2Db; } goto saeCA; wObiW: goto ASadM; goto QzD7R; ujLPS: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto RraM4; JfwQm: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto CraDX; uRWo_: if ($mywe['rid']) { goto jRWWE; } goto OpWBq; uFKXH: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=2 or issys=0) order by displayorder ,id'; goto ujLPS; mo76e: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto oqWTQ; OpWBq: if ($mywe['pid']) { goto OE2Dz; } goto vf2ts; oiGVc: if (empty($menus)) { goto nSR_O; } goto tlEdx; OeXx1: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $_W['uniacid'] . ') and isdisplay = :isdisplay order by displayorder ,id'; goto Zu7IN; UwdCx: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder ,id'; goto LArjU; Wcq1i: k73uF: goto FTAK3; v1zDi: Ud1mi: goto zIMpX; fOQR0: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=2 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder ,id'; goto yN0zh; Zu7IN: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto a3Hn9; jtYkf: $hidemenus = array("70", "71", "72", "42", "3"); goto fAxI1; zy78S: aR3RI: goto CGhKN; KWlRO: nSR_O: goto fBdRE; Bi6su: foreach ($menus as $key => $value) { goto ZVkdd; ZVkdd: if (!in_array($value['id'], $hidesys)) { goto KOvE5; } goto IJMjG; IJMjG: unset($menus[$key]); goto Ew57K; Ew57K: KOvE5: goto qZVys; qZVys: f1MJW: goto BMHmV; BMHmV: } goto QC6C8; eRVd4: $menus = array(); goto iS_5r; AquWT: DbHcj: goto t9Apw; ni1wI: if (!empty($secacc)) { goto KhVlB; } goto LhWtb; M1RQh: P_sLN: goto x6abL; H37ML: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=3 or issys=0) order by displayorder ,id'; goto ccI2U; UQn6G: x120X: goto Bi6su; CaJDW: omdyX: goto tSfON; yXw4E: ANL6K: goto aqnru; gpgUe: c0uR2: goto ygoUT; W1gkf: OE2Dz: goto arPWx; pmSfY: nEQU6: goto uFKXH; gXWGe: if ($mywe['pid']) { goto tytI7; } goto x0RAf; jihWP: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto enElE; XqCyI: CqDWa: goto oH2Wr; YoEyO: N762V: goto KWlRO; x0RAf: goto egTND; goto UQn6G; FO_Qn: goto RK6Sk; goto W1gkf; vBUL5: ZybpP: goto Fpx3x; IO4I9: RLUxt: goto Vd5AJ; CraDX: pto8T: goto gpgUe; nh1s3: foreach ($menus as &$value) { goto DCs22; LdNVE: Pnp6h: goto oR9Pe; oR9Pe: $value['submenus'] = $submenus; goto HRXhu; HRXhu: vdatN: goto StXUf; StXUf: GhaUM: goto CVW1f; ct8Wv: if (empty($submenus)) { goto vdatN; } goto PukCX; PukCX: if (!($mywe['rid'] && $mywe['region'])) { goto nLkOV; } goto ksk9b; zct_J: goto rJDgG; goto sbU8_; ksk9b: foreach ($submenus as $key => $subvalue) { goto DVSLo; Tk4dO: unset($submenus[$key]); goto tGySs; DVSLo: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto PwaE4; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto PwaE4; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto PwaE4; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto PwaE4; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto PwaE4; } goto bhPtc; yz1nO: PwaE4: goto lvDCz; bhPtc: zXSzG: goto yz1nO; lvDCz: if (!in_array($subvalue['id'], $hideregionmenus)) { goto fueH3; } goto Tk4dO; tGySs: fueH3: goto wH1LF; wH1LF: vr7S4: goto PZkdG; PZkdG: } goto qjQp8; kK5FM: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":isdisplay" => "1")); goto zct_J; hyiZq: rJDgG: goto ct8Wv; mFAgm: $sql = 'select p.id,p.title,p.url,p.op,p.do,p.iconfont from ' . tablename('rhinfo_zyxq_secprg') . ' as p ,' . tablename('rhinfo_zyxq_secgprg') . 'as g where p.id = g.pid and g.gid = ' . $mywe['gid'] . ' and p.sid = :sid and (p.issys=3 or p.issys=0) and p.isdisplay = :isdisplay and isdismenu=1 order by p.displayorder , p.id'; goto kK5FM; gx_P2: nLkOV: goto rx1tm; rx1tm: foreach ($submenus as &$item) { goto XVhWw; HXUlO: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto RY3Mk; XVhWw: if (!(!empty($item['op']) && !empty($item['do']))) { goto BZtw7; } goto HXUlO; VpvRu: OY3dL: goto nWov2; RY3Mk: BZtw7: goto VpvRu; nWov2: } goto LdNVE; UlaMy: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and (issys=3 or issys=0) and isdisplay = :isdisplay and isdismenu=1 order by displayorder , id'; goto B7zi1; qjQp8: NARXX: goto gx_P2; B7zi1: $submenus = pdo_fetchall($sql, $params = array(":sid" => $value['id'], ":isdisplay" => "1")); goto hyiZq; DCs22: if ($mywe['gid'] == 0) { goto Q6hE4; } goto mFAgm; sbU8_: Q6hE4: goto UlaMy; CVW1f: } goto v1zDi; OwUPA: foreach ($menus as &$value) { goto sE08n; Bmy_T: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and (issys=3 or issys=0) and isdisplay = :isdisplay and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by displayorder , id'; goto MrMPt; FpIHW: EQV1g: goto GfTwE; XcIqG: a9htQ: goto zGMKm; Gr9jY: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":isdisplay" => "1")); goto OmIXN; apRKb: if (!($mywe['rid'] && $mywe['region'])) { goto P604z; } goto DOE5T; sE08n: if ($mywe['gid'] == 0) { goto gDDVR; } goto YDGts; r2xlv: gDDVR: goto Bmy_T; py7bw: foreach ($submenus as &$item) { goto wBHan; JIs_W: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto zwQsL; wBHan: if (!(!empty($item['op']) && !empty($item['do']))) { goto Nwwoq; } goto JIs_W; my61m: QvY7B: goto U5wMJ; zwQsL: Nwwoq: goto my61m; U5wMJ: } goto XcIqG; DOE5T: foreach ($submenus as $key => $subvalue) { goto L3lvF; CQVUc: T2Lba: goto YGUvU; HnVL5: unset($submenus[$key]); goto Mxicy; L3lvF: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto T2Lba; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto T2Lba; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto T2Lba; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto T2Lba; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto T2Lba; } goto SoZ1z; SoZ1z: K0E7_: goto CQVUc; Tx9t9: EzsXE: goto Frpoe; Mxicy: Yk2dx: goto Tx9t9; YGUvU: if (!in_array($subvalue['id'], $hideregionmenus)) { goto Yk2dx; } goto HnVL5; Frpoe: } goto XNIbG; GfTwE: LNvk5: goto d2u_F; BTnkh: if (empty($submenus)) { goto EQV1g; } goto apRKb; TGr3Y: cGtDu: goto BTnkh; XNIbG: P1i30: goto mkyGo; YDGts: $sql = 'select p.id,p.title,p.url,p.op,p.do,p.iconfont from ' . tablename('rhinfo_zyxq_secprg') . ' as p ,' . tablename('rhinfo_zyxq_secgprg') . 'as g where p.id = g.pid and g.gid = ' . $mywe['gid'] . ' and p.sid = :sid and (p.issys=3 or p.issys=0) and p.isdisplay = :isdisplay and isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by p.displayorder , p.id'; goto Gr9jY; MrMPt: $submenus = pdo_fetchall($sql, $params = array(":sid" => $value['id'], ":isdisplay" => "1")); goto TGr3Y; mkyGo: P604z: goto py7bw; zGMKm: $value['submenus'] = $submenus; goto FpIHW; OmIXN: goto cGtDu; goto r2xlv; d2u_F: } goto wnyO1; QC6C8: crWQK: goto yLd9T; zKUpt: $sql = 'select * from ' . tablename('rhinfo_zyxq_secacc') . ' where weid = :weid and status=1'; goto tHXKR; tSfON: MjtMC: goto zIfxv; W0u1W: tytI7: goto a52Xf; DT0Ra: foreach ($menus as &$value) { goto uTDh5; C3pns: $value['submenus'] = $submenus; goto oo4rO; hPsPW: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":isdisplay" => "1")); goto EqOtc; uTDh5: $sql = 'select p.id,p.title,p.url,p.op,p.do,p.iconfont from ' . tablename('rhinfo_zyxq_secprg') . ' as p ,' . tablename('rhinfo_zyxq_secgprg') . 'as g where p.id = g.pid and g.gid = ' . $mywe['gid'] . ' and p.sid = :sid and (p.issys=2 or p.issys=0) and p.isdisplay = :isdisplay and isdismenu=1 order by p.displayorder , p.id'; goto hPsPW; EqOtc: foreach ($submenus as $key => &$item) { goto Fk3Wq; Fk3Wq: if (!(!empty($item['op']) && !empty($item['do']))) { goto m6bhh; } goto IeENJ; Fvv2b: if (!$mywe['usertype']) { goto gdZNT; } goto xz8dg; xz8dg: switch ($mywe['usertype']) { case 1: $hideareamenus = array("92"); goto hbuWm; case 2: $hideareamenus = array("92", "93", "128"); goto hbuWm; case 3: $hideareamenus = array("92", "93", "94", "128"); goto hbuWm; case 4: $hideareamenus = array("92", "93", "94", "95", "128"); goto hbuWm; default: $hideareamenus = array("92", "93", "94", "95", "128"); goto hbuWm; } goto u3TXI; b3264: gdZNT: goto uG9VA; A8GqM: if (!in_array($item['id'], $hideareamenus)) { goto xWHhl; } goto hdsdP; IeENJ: $item['url'] = $this->createWeburl($item['do'], array("op" => $item['op'])) . $mywe['direct']; goto VCS3y; uG9VA: WXjSD: goto WKwRj; hdsdP: unset($submenus[$key]); goto FsKQ9; VCS3y: m6bhh: goto Fvv2b; FsKQ9: xWHhl: goto b3264; u3TXI: a3YqU: goto raVYI; raVYI: hbuWm: goto A8GqM; WKwRj: } goto ZtnQ6; oo4rO: JG8bN: goto AJZ00; ZtnQ6: I7xEw: goto C3pns; AJZ00: } goto G3Kym; G3Kym: oJR7K: goto CaJDW; fDoin: if ($_W['isfounder']) { goto ANL6K; } goto xWRdQ; ih71R: gHR49: goto b_gMX; a3Hn9: goto pto8T; goto UN4Im; Sw76a: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto Lf0su; EQeIZ: goto P_sLN; goto nLgWG; x7jP1: if (empty($menus)) { goto tdOBD; } goto pdFg3; Md24H: goto CqDWa; goto XrG9A; TSGeT: $menus = array(); goto jZ5Wg; saeCA: foreach ($menus as &$value) { goto zY72e; I9_uP: goto e9qrP; goto xi2wX; PDWO4: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdisplay = :isdisplay and isdismenu=1 order by displayorder, id'; goto pZM0t; f7FhO: if ($mywe['rid']) { goto lGPbo; } goto pq1uV; uo7of: if ($mywe['gid'] == 0) { goto zr9SW; } goto QnY2j; dsTYI: EJZhf: goto A8vMg; zY72e: if ($_W['isfounder']) { goto mOwzS; } goto uo7of; GB07T: goto sjqeq; goto H3Kif; rGfyl: goto sjqeq; goto dsTYI; H3Kif: lGPbo: goto EZ7ZH; afZ00: Kxb26: goto I9_uP; s8El7: dZ5_2: goto IbKJI; pq1uV: if ($mywe['pid']) { goto EJZhf; } goto GB07T; dfoPZ: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":isdisplay" => "1")); goto x0EZd; x0EZd: goto Kxb26; goto pMi0f; ujlaM: $value['submenus'] = $submenus; goto s8El7; QnY2j: $sql = 'select p.id,p.title,p.url,p.op,p.do,p.iconfont from ' . tablename('rhinfo_zyxq_secprg') . ' as p ,' . tablename('rhinfo_zyxq_secgprg') . 'as g where p.id = g.pid and g.gid = ' . $mywe['gid'] . ' and p.sid = :sid and p.isdisplay = :isdisplay and p.isdismenu=1  order by p.displayorder , p.id'; goto dfoPZ; EfD9u: zy1Na: goto ujlaM; B9SQ8: ZGDP4: goto rGfyl; Jochp: if (empty($submenus)) { goto dZ5_2; } goto NR67b; IbKJI: rW_DV: goto wbPO7; pMi0f: zr9SW: goto PDWO4; A8vMg: foreach ($submenus as $key => $subvalue) { goto CKHzZ; CKHzZ: if (!in_array($subvalue['id'], $hidemenus)) { goto qCb_g; } goto HJnuG; HJnuG: unset($submenus[$key]); goto pUTwB; kShS1: BZPvb: goto iydVM; pUTwB: qCb_g: goto kShS1; iydVM: } goto hYYa7; pZM0t: $submenus = pdo_fetchall($sql, $params = array(":sid" => $value['id'], ":isdisplay" => "1")); goto afZ00; W9iUp: e9qrP: goto f7FhO; NR67b: foreach ($submenus as &$item) { goto HP6eU; M287O: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto hQwSA; hQwSA: ADS4P: goto Ripn1; HP6eU: if (!(!empty($item['op']) && !empty($item['do']))) { goto ADS4P; } goto M287O; Ripn1: g0AC1: goto W5CVm; W5CVm: } goto EfD9u; xi2wX: mOwzS: goto UB30Y; EZ7ZH: foreach ($submenus as $key => $subvalue) { goto YO7FS; Zb7iw: VQjfk: goto LtIyQ; hT97h: uDfQp: goto EfTgy; QrBAB: if (!in_array($subvalue['id'], $hideregionmenus)) { goto O3RWm; } goto BuVmo; EfTgy: UPZbu: goto QrBAB; RjZVV: v4JXm: goto W1Wkb; YO7FS: if (!in_array($subvalue['id'], $hidemenus)) { goto VQjfk; } goto b5cvt; nN1D4: O3RWm: goto hVhix; BuVmo: unset($submenus[$key]); goto nN1D4; hVhix: KzkvM: goto RjZVV; LtIyQ: if (!$mywe['region']) { goto KzkvM; } goto uBgRn; b5cvt: unset($submenus[$key]); goto Zb7iw; uBgRn: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto UPZbu; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto UPZbu; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto UPZbu; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto UPZbu; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto UPZbu; } goto hT97h; W1Wkb: } goto B9SQ8; JUUms: $submenus = pdo_fetchall($sql, $params = array(":sid" => $value['id'], ":isdisplay" => "1")); goto W9iUp; UB30Y: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdisplay = :isdisplay and isdismenu=1 order by displayorder, id'; goto JUUms; hYYa7: XYQ_5: goto mRSJD; mRSJD: sjqeq: goto Jochp; wbPO7: } goto o1Om_; Vd5AJ: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder ,id'; goto Sw76a; H5NuP: goto MjtMC; goto pmSfY; QN63w: Zr2Db: goto Bc_ef; NzadF: if ($_W['usercfrom'] == 2) { goto nEQU6; } goto bawmW; yLd9T: goto egTND; goto W0u1W; iS_5r: goto c0uR2; goto yXw4E; QzD7R: hsbpW: goto dCJFk; pAuB6: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder ,id'; goto A3FAe; HZyRQ: foreach ($menus as $key => $value) { goto IvclP; JGcTu: unset($menus[$key]); goto S6LJF; S6LJF: ABoWc: goto S0U3k; S0U3k: ZeuKT: goto fo2RP; IvclP: if (!in_array($value['id'], $hidesys)) { goto ABoWc; } goto JGcTu; fo2RP: } goto oeg26; ygoUT: if ($mywe['rid']) { goto x120X; } goto gXWGe; XrG9A: beYsq: goto Vk9jx; bawmW: if ($mywe['gid'] == 0) { goto gHR49; } goto H37ML; aqnru: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay order by displayorder ,id'; goto mo76e; Ho4Fw: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay  order by displayorder ,id'; goto JfwQm; Vk9jx: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder ,id'; goto xYokc; yN0zh: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto x7jP1; Lf0su: goto yrP0g; goto zy78S; U54VX: } public function rolemenus($roletype = 0) { goto V6MeD; Ry3Y_: if (empty($menus)) { goto GMp4b; } goto mUpsP; f5Rs9: if (empty($menus)) { goto V7BCN; } goto USz5L; Sivld: if (!empty($_W['uid'])) { goto vuAHk; } goto kjd5L; X5Np3: if (!empty($roletype)) { goto gfT26; } goto wKa8w; JhA0e: Tmy8n: goto kEzHU; DB0g_: goto eyQGa; goto xx1Oh; yFtFm: goto Qhyt1; goto TeG1J; uLNYK: McRWM: goto waeE4; vuXJ0: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto gPS4Y; Tz_ZO: DJnW8: goto Sivld; gPS4Y: if (empty($mywe['gid'])) { goto BsMKs; } goto DFd5b; p0Fo6: McaYO: goto DB0g_; myIvU: if (empty($menus)) { goto Sw1XS; } goto XQEcu; fiS5N: tv3Q2: goto oic1G; oRqdG: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto dk_5o; r8Pds: tI6mc: goto YxzDA; eIG50: yW1qL: goto Y6Flh; xvLCq: goto McaYO; goto aewar; GW9ZV: if (empty($mywe['gid'])) { goto iZROJ; } goto DX0f2; QYOaI: vSsgO: goto ZwyQM; r1dAZ: ANu40: goto fAxYQ; maEaG: CtPrO: goto JhA0e; bm7fv: goto iLwqH; goto Upi2M; UqceX: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and issys=0 order by displayorder'; goto hnseW; M2OMo: p1Gbj: goto Eau0V; aewar: JWOJ2: goto JqtbE; USz5L: foreach ($menus as &$value) { goto T5pUB; I1rLJ: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto cXanu; x7Xg4: t17LX: goto qp4P9; RGWHr: Q6zMT: goto SE9iy; SE9iy: foreach ($submenus as &$item) { goto YQsUt; Z4E5I: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto rewo3; MGNtr: gvtND: goto bemj8; YQsUt: if (!(!empty($item['op']) && !empty($item['do']))) { goto hNYGp; } goto Z4E5I; rewo3: hNYGp: goto MGNtr; bemj8: } goto x7Xg4; qp4P9: $value['submenus'] = $submenus; goto q4m1I; hFb9N: ZPm_v: goto RGWHr; q4m1I: QAW2F: goto JE0NR; JE0NR: YGr_z: goto YF7if; inZvn: foreach ($submenus as $key => $subvalue) { goto ridnT; ridnT: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto reVKI; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto reVKI; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto reVKI; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto reVKI; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto reVKI; } goto P4tFy; tQoIW: z3Ol5: goto tok29; eJTIk: reVKI: goto pY39w; PgpzL: Mm6ip: goto tQoIW; pY39w: if (!in_array($subvalue['id'], $hideregionmenus)) { goto Mm6ip; } goto rKx0I; rKx0I: unset($submenus[$key]); goto PgpzL; P4tFy: ft5m1: goto eJTIk; tok29: } goto hFb9N; LNWwm: if (!($mywe['rid'] && $mywe['region'])) { goto Q6zMT; } goto inZvn; cXanu: if (empty($submenus)) { goto QAW2F; } goto LNWwm; T5pUB: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where (p.issys = 3 or p.issys = 0) and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto I1rLJ; YF7if: } goto QqjsJ; Pzaic: if (empty($menus)) { goto XLzPC; } goto QP4U2; qULSo: return $menus; goto QdoTB; ZwyQM: goto Y2quL; goto jcLTz; qRGD1: V7BCN: goto k5JDx; wMuzV: BsMKs: goto FOEko; YxzDA: GMp4b: goto IkEIE; hnseW: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto myIvU; P9j3S: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where (issys=2 or issys=0) and isdisplay = :isdisplay order by displayorder'; goto IM2Ie; JqtbE: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay  and (issys=2 or issys=0) order by displayorder'; goto fWt7Y; Y6Flh: e5yZ2: goto xvLCq; DX0f2: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto bm7fv; lWJHv: goto vSsgO; goto OGqr1; IM2Ie: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto x6dBe; py27D: snGdn: goto GtP0Z; OREOw: fxvYX: goto yj1jp; LfEk8: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto W84j9; yN3Cy: foreach ($menus as &$value) { goto TRk6C; P89N2: if (empty($submenus)) { goto VNEeA; } goto OhZWi; mWQhx: BowiN: goto rY46R; Iwl6F: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto P89N2; rY46R: foreach ($submenus as &$item) { goto iZ79T; Wa1OO: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto R4u1R; R4u1R: FwuU9: goto pn2QI; pn2QI: PQjGg: goto bEAGo; iZ79T: if (!(!empty($item['op']) && !empty($item['do']))) { goto FwuU9; } goto Wa1OO; bEAGo: } goto xQqs2; OhZWi: if (!($mywe['rid'] && $mywe['region'])) { goto BowiN; } goto mrni8; ANpt8: $value['submenus'] = $submenus; goto rEg1e; xQqs2: jefav: goto ANpt8; lqqRs: dIcpl: goto d27Zq; X_wLa: lwe68: goto mWQhx; TRk6C: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto Iwl6F; mrni8: foreach ($submenus as $key => $subvalue) { goto NCAu_; XZBeN: mYMMF: goto Z4A0G; Z4A0G: vePWN: goto W5QTw; W0Bwz: y_N0d: goto Ayb2b; sBsG8: unset($submenus[$key]); goto W0Bwz; W5QTw: if (!in_array($subvalue['id'], $hideregionmenus)) { goto y_N0d; } goto sBsG8; Ayb2b: p2XvS: goto RURcB; NCAu_: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto vePWN; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto vePWN; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto vePWN; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto vePWN; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto vePWN; } goto XZBeN; RURcB: } goto X_wLa; rEg1e: VNEeA: goto lqqRs; d27Zq: } goto maEaG; nCTg6: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto bIx4n; fAxYQ: eyQGa: goto iyeXL; TeG1J: Gj8a6: goto AW6qM; ZJL4T: hZqX1: goto ElFmw; pQddW: if (empty($menus)) { goto Nnd5_; } goto aImYy; Eau0V: if (empty($menus)) { goto BaRHx; } goto nOERj; UCNYs: Qhyt1: goto MXfMl; dk_5o: if (empty($menus)) { goto OsVJu; } goto POb3m; VRPiY: if (!empty($roletype)) { goto yNSvi; } goto tLF9x; TJDcu: saITn: goto Tj_7u; V2zlc: xY7EM: goto ZkNhz; AW6qM: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=2 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto fYyQW; W84j9: if (empty($menus)) { goto Tmy8n; } goto yN3Cy; QvVqs: foreach ($menus as &$value) { goto in13C; OYc9n: if (empty($submenus)) { goto n4XFw; } goto tOC1x; O4kYz: n4XFw: goto NfIBv; SSEDe: foreach ($submenus as $key => $subvalue) { goto rOQWA; MAgMd: qexeA: goto XMH7f; DZ62F: L2pRj: goto lerOh; lerOh: h3GWN: goto mppz8; XMH7f: if (!in_array($subvalue['id'], $hideregionmenus)) { goto L2pRj; } goto TJhJz; rOQWA: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto qexeA; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto qexeA; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto qexeA; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto qexeA; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto qexeA; } goto Z8FFf; Z8FFf: PRRF3: goto MAgMd; TJhJz: unset($submenus[$key]); goto DZ62F; mppz8: } goto SZX2t; in13C: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and (issys=3 or issys=0) and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto qUfGp; tfZCe: $value['submenus'] = $submenus; goto O4kYz; SZX2t: fjrgX: goto j2lHN; tOC1x: if (!($mywe['rid'] && $mywe['region'])) { goto Iz2X4; } goto SSEDe; Iv3gX: foreach ($submenus as &$item) { goto phBB5; phBB5: if (!(!empty($item['op']) && !empty($item['do']))) { goto MmkiP; } goto r0hWX; nCN7x: MmkiP: goto k4dT1; k4dT1: ZkJH0: goto nPduO; r0hWX: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto nCN7x; nPduO: } goto izA7m; NfIBv: wUUVj: goto xEfPk; j2lHN: Iz2X4: goto Iv3gX; qUfGp: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto OYc9n; izA7m: PSntO: goto tfZCe; xEfPk: } goto CyDoC; w4Bsd: goto e5yZ2; goto wMuzV; bhm_i: d5yx3: goto yFtFm; Wk56Y: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto Ry3Y_; u55i8: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto Pzaic; ZArdr: $sql = 'select * from ' . tablename('rhinfo_zyxq_secacc') . ' where weid = :weid and status=1'; goto Gn3ef; Upi2M: iZROJ: goto hPif1; lGRoQ: HqwVk: goto FUsfa; DiC84: goto hF_qC; goto kKlKy; X0u2b: foreach ($menus as &$value) { goto ZpYx8; MPBT9: hcPZH: goto zgF1L; jnzds: if (empty($submenus)) { goto hcPZH; } goto Mz041; OFNXx: WEg3e: goto Pmky7; Mz041: if (!($mywe['rid'] && $mywe['region'])) { goto k9v55; } goto jBZaQ; Wvp2B: $value['submenus'] = $submenus; goto MPBT9; S4Pxj: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto jnzds; Pmky7: k9v55: goto zYd_U; zgF1L: pF1Rf: goto hKfNM; jBZaQ: foreach ($submenus as $key => $subvalue) { goto DVRlV; Pg0id: zUCbb: goto nMN4B; DVRlV: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto S8q_f; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto S8q_f; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto S8q_f; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto S8q_f; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto S8q_f; } goto DNoQI; h5vkH: if (!in_array($subvalue['id'], $hideregionmenus)) { goto zUCbb; } goto YNsVD; Czunx: S8q_f: goto h5vkH; DNoQI: PJplq: goto Czunx; YNsVD: unset($submenus[$key]); goto Pg0id; nMN4B: b8wun: goto BayDL; BayDL: } goto OFNXx; zYd_U: foreach ($submenus as &$item) { goto wgRVK; wgRVK: if (!(!empty($item['op']) && !empty($item['do']))) { goto eEpJQ; } goto qyufN; kLpbY: eEpJQ: goto cDJxj; qyufN: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto kLpbY; cDJxj: JdyOE: goto SyWJE; SyWJE: } goto JmpbF; ZpYx8: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where (p.issys = 3 or p.issys = 0) and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 order by isdisplay desc ,displayorder asc'; goto S4Pxj; JmpbF: S_Af0: goto Wvp2B; hKfNM: } goto uLNYK; VKsmc: if (empty($menus)) { goto mHp9M; } goto m0Mpu; b83zy: Ex4Er: goto DiC84; gzXXV: bGnwP: goto vuXJ0; Gw6JS: hF_qC: goto Qso38; Tj_7u: TmkkU: goto UCNYs; oic1G: blZ16: goto QYOaI; eWEEJ: $mywe = $this->mywe; goto ZArdr; jQrXy: vuAHk: goto X5Np3; x6dBe: if (empty($menus)) { goto JRNd2; } goto pTodj; hG28R: yNSvi: goto P9j3S; fmpok: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where (issys=2 or issys=0) and isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto P489v; Gn3ef: $secacc = pdo_fetch($sql, array(":weid" => $mywe['weid'])); goto E7uBM; DFd5b: if (empty($menus)) { goto gOcbH; } goto X0u2b; aImYy: foreach ($menus as &$value) { goto gmdpS; YKxUP: U5hHu: goto aXCX4; gmdpS: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where (issys=2 or issys=0) and sid = :sid and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto XTQUm; pZuUg: USlko: goto N33Lk; N33Lk: $value['submenus'] = $submenus; goto ao7AD; ao7AD: VO4mT: goto YKxUP; tHeAw: foreach ($submenus as &$item) { goto fo2RE; H3ARu: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto QgP5r; fo2RE: if (!(!empty($item['op']) && !empty($item['do']))) { goto NO4ej; } goto H3ARu; QgP5r: NO4ej: goto FPmis; FPmis: RxQ2M: goto Hyjw2; Hyjw2: } goto pZuUg; bUDdG: if (empty($submenus)) { goto VO4mT; } goto tHeAw; XTQUm: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto bUDdG; aXCX4: } goto AnAUU; OGqr1: EWbTl: goto FrFN0; FrFN0: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto nCTg6; wKa8w: if ($_W['isfounder']) { goto EWbTl; } goto cFSkm; nOERj: foreach ($menus as &$value) { goto XYWN7; qhif7: if (empty($submenus)) { goto y40mx; } goto lNz8C; dcMSS: foreach ($submenus as $key => $subvalue) { goto JP3fj; p23nd: unset($submenus[$key]); goto rXQZz; xzKYt: C4khj: goto iqrOD; iqrOD: if (!in_array($subvalue['id'], $hideregionmenus)) { goto dgcfE; } goto p23nd; rXQZz: dgcfE: goto vM_5D; JP3fj: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto C4khj; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto C4khj; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto C4khj; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto C4khj; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto C4khj; } goto Lf_du; Lf_du: Yn0lW: goto xzKYt; vM_5D: gD5Dv: goto v3qg0; v3qg0: } goto iVBY5; iVBY5: wlVjU: goto aDrl3; Rb1Sv: cp_T1: goto QG3sg; XYWN7: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and (issys=3 or issys=0) and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto LPFpD; QG3sg: $value['submenus'] = $submenus; goto nnwmJ; LPFpD: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto qhif7; B1Tgo: foreach ($submenus as &$item) { goto e3nQK; e3nQK: if (!(!empty($item['op']) && !empty($item['do']))) { goto lrsIN; } goto B2c1k; nrHYC: vYHiW: goto BYQAy; W0L1X: lrsIN: goto nrHYC; B2c1k: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto W0L1X; BYQAy: } goto Rb1Sv; nnwmJ: y40mx: goto gRl2_; aDrl3: q0x41: goto B1Tgo; lNz8C: if (!($mywe['rid'] && $mywe['region'])) { goto q0x41; } goto dcMSS; gRl2_: C1bcr: goto XpmFN; XpmFN: } goto ZJL4T; gtWxc: if (empty($mywe['gid'])) { goto p1Gbj; } goto f5Rs9; V6MeD: global $_W, $_GPC; goto eWEEJ; eIjZ6: JRNd2: goto r1dAZ; zdnwV: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay  and (issys=3 or issys=0) order by displayorder'; goto HqZGu; HqZGu: goto bGnwP; goto P7poS; gsbRy: th8h3: goto FVLYz; POb3m: foreach ($menus as &$value) { goto CzSmP; ZpGNl: YKaZy: goto yxXxb; iJxno: foreach ($submenus as &$item) { goto BXJjY; eJl2h: g0aF3: goto F86gn; tzLsP: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto eJl2h; F86gn: p3_hS: goto vIrd8; BXJjY: if (!(!empty($item['op']) && !empty($item['do']))) { goto g0aF3; } goto tzLsP; vIrd8: } goto idNGp; KVZ49: if (empty($submenus)) { goto YKaZy; } goto KWeJ8; CzSmP: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto T4iHD; LTClz: foreach ($submenus as $key => $subvalue) { goto womt9; womt9: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto OYHXh; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto OYHXh; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto OYHXh; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto OYHXh; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto OYHXh; } goto tpwYC; jyZnh: YFdwV: goto MMZAI; aZfqd: unset($submenus[$key]); goto ltrxs; tpwYC: Mxw7z: goto FO4Uw; UBZdY: if (!in_array($subvalue['id'], $hideregionmenus)) { goto AdD79; } goto aZfqd; FO4Uw: OYHXh: goto UBZdY; ltrxs: AdD79: goto jyZnh; MMZAI: } goto ObDLx; EyThU: tsn7P: goto iJxno; ObDLx: xjTb5: goto EyThU; yxXxb: pCBcP: goto YAaES; T4iHD: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto KVZ49; KWeJ8: if (!($mywe['rid'] && $mywe['region'])) { goto tsn7P; } goto LTClz; Ge64I: $value['submenus'] = $submenus; goto ZpGNl; idNGp: rrJ7R: goto Ge64I; YAaES: } goto py27D; Rz5uU: bkO2O: goto Z8c0Y; pTodj: foreach ($menus as &$value) { goto kRs_F; EQ8hc: d7CAy: goto jEHuh; vvzIm: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto CvvGQ; CvvGQ: if (empty($submenus)) { goto DD4D6; } goto Ma3RD; kRs_F: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where (issys=2 or issys=0) and sid = :sid and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto vvzIm; BiNvo: vsMpT: goto XwFEj; Ma3RD: foreach ($submenus as &$item) { goto IlAyu; E16Mu: LCQbe: goto sFrLU; cRE8D: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto xi5pn; xi5pn: y8vBg: goto E16Mu; IlAyu: if (!(!empty($item['op']) && !empty($item['do']))) { goto y8vBg; } goto cRE8D; sFrLU: } goto EQ8hc; FCo3y: DD4D6: goto BiNvo; jEHuh: $value['submenus'] = $submenus; goto FCo3y; XwFEj: } goto d5hUn; GtP0Z: OsVJu: goto b83zy; MXfMl: goto vPPcW; goto jQrXy; d5hUn: OhmMc: goto eIjZ6; QP4U2: foreach ($menus as &$value) { goto ScioQ; HtCYW: if (empty($submenus)) { goto INVTj; } goto rDoIr; ScioQ: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto BpFTm; Hi9ju: INVTj: goto U0fPA; rDoIr: foreach ($submenus as &$item) { goto eS1_y; NCXQb: d7jiV: goto Kk81U; fmrEp: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto rLWNJ; eS1_y: if (!(!empty($item['op']) && !empty($item['do']))) { goto AM5b4; } goto fmrEp; rLWNJ: AM5b4: goto NCXQb; Kk81U: } goto j5Mt_; BpFTm: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto HtCYW; U0fPA: DbdVN: goto LDD7W; C8rTB: $value['submenus'] = $submenus; goto Hi9ju; j5Mt_: RguOR: goto C8rTB; LDD7W: } goto Rz5uU; tLF9x: if ($_W['isfounder']) { goto ku3TB; } goto DiRAe; DiRAe: if ($mywe['gid'] == 0) { goto fxvYX; } goto UqceX; yj1jp: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0) order by displayorder'; goto oRqdG; jcLTz: gfT26: goto fmpok; smsag: if (empty($menus)) { goto TmkkU; } goto U323M; ZkNhz: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys = 3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto LfEk8; mUpsP: foreach ($menus as &$value) { goto BqxVD; BqxVD: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where p.issys=0 and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto PfJVp; H9wOF: if (empty($submenus)) { goto TuZcT; } goto Ob4Yg; mPTVP: $value['submenus'] = $submenus; goto KtmSV; KtmSV: TuZcT: goto x0Mve; d08vG: bcacp: goto th_qZ; PfJVp: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto H9wOF; cufuh: foreach ($submenus as $key => $subvalue) { goto dJUXJ; urjgH: if (!in_array($subvalue['id'], $hideregionmenus)) { goto FbYvc; } goto GNm4r; dJUXJ: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto bRcF0; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto bRcF0; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto bRcF0; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto bRcF0; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto bRcF0; } goto aaA0C; YUNeg: bRcF0: goto urjgH; GNm4r: unset($submenus[$key]); goto tObOc; tObOc: FbYvc: goto yKwnc; yKwnc: XCy2e: goto fGFrN; aaA0C: Esklf: goto YUNeg; fGFrN: } goto d08vG; th_qZ: LhNaM: goto Pjvam; Pjvam: foreach ($submenus as &$item) { goto MCSqZ; MCSqZ: if (!(!empty($item['op']) && !empty($item['do']))) { goto n1xVC; } goto QX033; QX033: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto E6AYE; s3hNk: AIiqw: goto FAl5b; E6AYE: n1xVC: goto s3hNk; FAl5b: } goto c4i8k; c4i8k: RZzyQ: goto mPTVP; x0Mve: dx5QD: goto WJ9Qt; Ob4Yg: if (!($mywe['rid'] && $mywe['region'])) { goto LhNaM; } goto cufuh; WJ9Qt: } goto r8Pds; CXvbo: Y2quL: goto rP622; fWt7Y: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto VKsmc; Qso38: goto ANu40; goto hG28R; kjd5L: if ($_W['usercfrom'] == 2) { goto Gj8a6; } goto GW9ZV; XQEcu: foreach ($menus as &$value) { goto JNY2e; bD1Qs: if (!($mywe['rid'] && $mywe['region'])) { goto GVkud; } goto sdU8s; c9Ge4: g4Mjg: goto PWR42; bjdL3: $value['submenus'] = $submenus; goto gS_4j; sdU8s: foreach ($submenus as $key => $subvalue) { goto zJ9CN; GxTp3: xbVtE: goto oqwtI; tzens: G53jA: goto k3B81; hDjOe: unset($submenus[$key]); goto LjQRL; k3B81: if (!in_array($subvalue['id'], $hideregionmenus)) { goto fDMbs; } goto hDjOe; zJ9CN: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto G53jA; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto G53jA; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto G53jA; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto G53jA; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto G53jA; } goto wwSDq; LjQRL: fDMbs: goto GxTp3; wwSDq: zKHVu: goto tzens; oqwtI: } goto ouB93; JNY2e: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where p.issys=0 and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 order by isdisplay desc ,displayorder asc'; goto PBPNy; zPUiJ: bFpjw: goto bjdL3; ZM5uQ: foreach ($submenus as &$item) { goto HbjRu; HbjRu: if (!(!empty($item['op']) && !empty($item['do']))) { goto TpjQ6; } goto kQeWC; kQeWC: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto sVRF5; sVRF5: TpjQ6: goto Hk1_e; Hk1_e: pC7gX: goto gOpKI; gOpKI: } goto zPUiJ; ouB93: zQVLS: goto W2L9E; RUMCK: if (empty($submenus)) { goto gOXJK; } goto bD1Qs; PBPNy: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto RUMCK; W2L9E: GVkud: goto ZM5uQ; gS_4j: gOXJK: goto c9Ge4; PWR42: } goto gsbRy; IkEIE: goto zSwyT; goto V2zlc; AnAUU: YClO_: goto gWh_r; TpIRp: if (empty($mywe['gid'])) { goto fFEAp; } goto zdnwV; gWh_r: Nnd5_: goto CXvbo; FUsfa: mHp9M: goto p0Fo6; U323M: foreach ($menus as &$value) { goto IpQ6K; v1yLF: if (empty($submenus)) { goto vm2b9; } goto cxbZ_; YKM8i: aIiFz: goto giSpz; cxbZ_: foreach ($submenus as $k => &$item) { goto m82Pf; d71mo: unset($submenus[$key]); goto zN8fD; srArb: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto X6es7; xnilJ: pSWIR: goto XXA66; IWxO0: g6Mqd: goto ztgTF; X6es7: Y295M: goto V3f8O; m82Pf: if (!(!empty($item['op']) && !empty($item['do']))) { goto Y295M; } goto srArb; V3f8O: if (!$mywe['usertype']) { goto pSWIR; } goto FmQ_S; zN8fD: V0od2: goto xnilJ; XXA66: is2yh: goto RsPHV; ztgTF: pqtRc: goto ZL9_u; ZL9_u: if (!in_array($item['id'], $hideareamenus)) { goto V0od2; } goto d71mo; FmQ_S: switch ($mywe['usertype']) { case 1: $hideareamenus = array("92"); goto pqtRc; case 2: $hideareamenus = array("92", "93"); goto pqtRc; case 3: $hideareamenus = array("92", "93", "94"); goto pqtRc; case 4: $hideareamenus = array("92", "93", "94", "95"); goto pqtRc; default: $hideareamenus = array("92", "93", "94", "95"); goto pqtRc; } goto IWxO0; RsPHV: } goto gG4yn; p1ZRS: $value['submenus'] = $submenus; goto irrZl; IpQ6K: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where (p.issys=3 or p.issys = 0) and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto Y5rvK; irrZl: vm2b9: goto YKM8i; gG4yn: wu_M9: goto p1ZRS; Y5rvK: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto v1yLF; giSpz: } goto TJDcu; bIx4n: if (empty($menus)) { goto blZ16; } goto c1T2k; rP622: vPPcW: goto tu930; k5JDx: goto d5yx3; goto M2OMo; fYyQW: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto smsag; eA9Ge: iLwqH: goto oN8bI; P489v: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto pQddW; cFSkm: if ($mywe['gid'] == 0) { goto xY7EM; } goto ofe_A; xx1Oh: qbjZF: goto VRPiY; FOEko: if (empty($menus)) { goto yW1qL; } goto QvVqs; kKlKy: ku3TB: goto VFKxT; wxory: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0) order by displayorder'; goto gzXXV; hPif1: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto eA9Ge; Uhrdk: if (!empty($_W['uid'])) { goto qbjZF; } goto ZEavA; c1T2k: foreach ($menus as &$value) { goto gaBuo; CYD0C: jw9n8: goto pDDHW; gaBuo: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto Szjqw; O6W8Z: foreach ($submenus as &$item) { goto P2goa; P2goa: if (!(!empty($item['op']) && !empty($item['do']))) { goto svlSY; } goto e7ix7; OY5lN: svlSY: goto wzWWO; e7ix7: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto OY5lN; wzWWO: focvO: goto ztAvr; ztAvr: } goto CYD0C; k_2XI: bnUMT: goto HGCDD; Szjqw: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto NBqjt; HGCDD: DaqUe: goto dFOwb; pDDHW: $value['submenus'] = $submenus; goto k_2XI; NBqjt: if (empty($submenus)) { goto bnUMT; } goto O6W8Z; dFOwb: } goto fiS5N; P7poS: fFEAp: goto wxory; E7uBM: if (!empty($secacc)) { goto DJnW8; } goto Uhrdk; m0Mpu: foreach ($menus as &$value) { goto bf_en; wdG4W: stzSZ: goto k9pQN; HuVzL: foreach ($submenus as $key => &$item) { goto AInnb; AInnb: if (!(!empty($item['op']) && !empty($item['do']))) { goto Ca9JB; } goto DdVjb; kgqkZ: if (!$mywe['usertype']) { goto SgK17; } goto NcrbX; NEjI2: oyU34: goto AFvOM; AFvOM: SgK17: goto lxBWN; cqkL0: Ca9JB: goto kgqkZ; DdVjb: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto cqkL0; NcrbX: switch ($mywe['usertype']) { case 1: $hideareamenus = array("92"); goto R5BoT; case 2: $hideareamenus = array("92", "93"); goto R5BoT; case 3: $hideareamenus = array("92", "93", "94"); goto R5BoT; case 4: $hideareamenus = array("92", "93", "94", "95"); goto R5BoT; default: $hideareamenus = array("92", "93", "94", "95"); goto R5BoT; } goto I4S1Q; lxBWN: eYu_h: goto uJbFS; CEkb1: if (!in_array($item['id'], $hideareamenus)) { goto oyU34; } goto bL2vt; N9wy7: R5BoT: goto CEkb1; bL2vt: unset($submenus[$key]); goto NEjI2; I4S1Q: SKR6L: goto N9wy7; uJbFS: } goto wdG4W; ELB3T: BPKuh: goto aedCt; Lets3: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto QygW6; xniQ1: cYCWG: goto ELB3T; bf_en: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where (p.issys = 2 or p.issys = 0) and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 order by isdisplay desc ,displayorder asc'; goto Lets3; k9pQN: $value['submenus'] = $submenus; goto xniQ1; QygW6: if (empty($submenus)) { goto cYCWG; } goto HuVzL; aedCt: } goto lGRoQ; CyDoC: ws9a7: goto eIG50; iyeXL: goto Ib9lj; goto Tz_ZO; ofe_A: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys = 3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto Wk56Y; tu930: Ib9lj: goto qULSo; VFKxT: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay order by displayorder'; goto u55i8; Z8c0Y: XLzPC: goto Gw6JS; kEzHU: zSwyT: goto lWJHv; oN8bI: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto gtWxc; QqjsJ: p4aC9: goto qRGD1; Kn72p: goto Ex4Er; goto OREOw; ElFmw: BaRHx: goto bhm_i; FVLYz: Sw1XS: goto Kn72p; waeE4: gOcbH: goto w4Bsd; ZEavA: if ($_W['usercfrom'] == 2) { goto JWOJ2; } goto TpIRp; QdoTB: } public function rolemenus_edit($gid, $roletype = 0) { goto Q6qXB; B716U: FbvuI: goto j7XkV; UW2kP: IKLPG: goto pI8QL; kNsHB: foreach ($menus as &$value) { goto BSOs0; BSOs0: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where (issys=2 or issys=0) and sid = :sid and isdismenu=1 order by isdisplay desc,displayorder asc'; goto KasWg; fHWrJ: cdDjN: goto jTosV; bGCSO: $j = 0; goto pbeuD; KasWg: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto bGCSO; LsanB: foreach ($submenus as &$item) { goto qIzFc; PFkE6: $i = 0; goto n1vYr; ZY2_S: FIsRk: goto L8wiA; IpUvn: $item['prg'] = $i; goto ck_S4; PyfvS: if (!$rights) { goto llXz9; } goto NsNpJ; eeDVl: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto dCQfj; ZkIBk: QeVUR: goto IpUvn; MANMO: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto PyfvS; dCQfj: wp4e4: goto dlsXl; NsNpJ: $item['rights'] = $rights; goto PFkE6; qIzFc: if (!(!empty($item['op']) && !empty($item['do']))) { goto wp4e4; } goto eeDVl; n1vYr: foreach ($rights as $key) { goto OIPAq; j5RJ2: $i = 1; goto Vy34V; Ob6se: forEw: goto nLEHD; Vy34V: goto QeVUR; goto Ob6se; nLEHD: H5wIG: goto AdXM9; OIPAq: if (!($key == 1)) { goto forEw; } goto j5RJ2; AdXM9: } goto ZkIBk; jq3tv: llXz9: goto ZY2_S; ck_S4: $j = $i; goto jq3tv; dlsXl: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto MANMO; L8wiA: } goto q7dIG; i7pbw: $value['submenus'] = $submenus; goto SV0Jx; q7dIG: G8G1_: goto i7pbw; pbeuD: if (empty($submenus)) { goto L0YgE; } goto LsanB; DDLq5: L0YgE: goto fHWrJ; SV0Jx: $value['sys'] = $j; goto DDLq5; jTosV: } goto YJQEq; SjJwy: goto eLtlH; goto lGPZI; CUVCB: WYDGi: goto Y4hhZ; sdJAk: cAnBu: goto Hj7ez; jmnAl: akfku: goto jLFEx; BJxJ9: if (empty($menus)) { goto FLP7T; } goto BMz6x; q0J1f: if (!empty($secacc)) { goto O0WTH; } goto PotRD; FTLl1: goto SXbW0; goto jmnAl; xuHWj: if ($mywe['gid'] == 0) { goto uYVIa; } goto H_H6U; NPuNY: AcGLt: goto MsyHp; YhfE6: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto Bqr_J; UCGKH: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto mw3GY; zPLJx: RUMTM: goto om74e; H9AWB: ycn5O: goto q7MIM; RWBOM: if (empty($menus)) { goto Q0VQD; } goto x50il; c5xLD: foreach ($menus as &$value) { goto S63lc; eqnDw: foreach ($submenus as &$item) { goto yTGY0; RQEH0: $i = 0; goto G2zut; DpmPT: W9eS2: goto pAyYj; yTGY0: if (!(!empty($item['op']) && !empty($item['do']))) { goto wBR3Q; } goto Rf83I; AzmUB: C4qXj: goto ArD1O; MxBlV: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto fFWi5; G2zut: foreach ($rights as $key) { goto vvqeo; cNwmx: goto W9eS2; goto YXMIw; YXMIw: Q3spg: goto BoEiI; vvqeo: if (!($key == 1)) { goto Q3spg; } goto rm0QQ; BoEiI: lpqgp: goto qN2wl; rm0QQ: $i = 1; goto cNwmx; qN2wl: } goto DpmPT; FQuV4: if (!$rights) { goto AIBMo; } goto YXVXc; fFWi5: $rights = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":gid" => $gid, ":pid" => $item['id'])); goto FQuV4; j1cQk: wBR3Q: goto MxBlV; Rf83I: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto j1cQk; YXVXc: $item['rights'] = $rights; goto RQEH0; pAyYj: $item['prg'] = $i; goto o1og4; o1og4: $j = $i; goto cuFrn; cuFrn: AIBMo: goto AzmUB; ArD1O: } goto V9wvv; nwS9i: $value['sys'] = $j; goto xELsp; wj25X: $j = 0; goto lynUO; XITjv: if (!($mywe['rid'] && $mywe['region'])) { goto vAOws; } goto G4Qng; O42PA: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto wj25X; VL2h6: $value['submenus'] = $submenus; goto nwS9i; Cfzwj: vAOws: goto eqnDw; G4Qng: foreach ($submenus as $key => $subvalue) { goto wZ3tI; jlPCZ: gNw6g: goto scnYU; scnYU: J0AjZ: goto bqG4I; LtUqm: unset($submenus[$key]); goto iwd94; iwd94: Wp1xr: goto M7lHB; wZ3tI: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto J0AjZ; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto J0AjZ; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto J0AjZ; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto J0AjZ; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto J0AjZ; } goto jlPCZ; M7lHB: cs21D: goto keNWN; bqG4I: if (!in_array($subvalue['id'], $hideregionmenus)) { goto Wp1xr; } goto LtUqm; keNWN: } goto P5zVI; lynUO: if (empty($submenus)) { goto gnRLr; } goto XITjv; P5zVI: mg29f: goto Cfzwj; V9wvv: QX1eH: goto VL2h6; MqEa2: WkNTY: goto TAH6P; xELsp: gnRLr: goto MqEa2; S63lc: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and (issys=3 or issys=0) and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto O42PA; TAH6P: } goto hTtP5; yx2US: goto TiAty; goto wKmym; l0IUH: cfqjl: goto UW2kP; yeLig: if (empty($menus)) { goto UoeY2; } goto BIFOj; pPCa9: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto RWBOM; jLFEx: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto DM1LU; vIvkM: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $_W['uniacid'] . ') and isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto kGxJH; Aslcm: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto qhdaE; SdOdk: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto tZpc3; COms6: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and (issys=3 or issys=0) order by displayorder'; goto UCGKH; j7XkV: goto p7HSU; goto M3Gwf; MjmKw: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay order by displayorder'; goto Aslcm; z6sc2: cFbfo: goto B5c58; EiGM7: jNAdN: goto FTLl1; VROio: uYVIa: goto MjmKw; Yqn35: goto FbvuI; goto SCL76; K35Rp: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto rjPgw; TX2sz: goto ALQIM; goto irwjL; ry2_j: if ($mywe['gid'] == 0) { goto byIqU; } goto vIvkM; kFqF3: QC04b: goto ncWpt; y_HM1: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto TD4bY; wc3bY: if (empty($menus)) { goto QC04b; } goto c5xLD; BIFOj: foreach ($menus as &$value) { goto V5S4A; V5S4A: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto h4iQA; NcQHM: S43CF: goto o3jl7; L70LF: if (!($mywe['rid'] && $mywe['region'])) { goto I6J1d; } goto ziXQ5; o3jl7: $value['submenus'] = $submenus; goto u1wp0; ehhd8: iZWpB: goto u9xWm; Ir2AD: foreach ($submenus as &$item) { goto CBMXV; Wwjid: $i = 0; goto svnmQ; jGobT: vt9Sw: goto E1ssO; svnmQ: foreach ($rights as $key) { goto ZbEvE; x_J4k: $i = 1; goto R1inW; R1inW: goto N1Kcr; goto L5swl; L5swl: VCFqe: goto J54jd; ZbEvE: if (!($key == 1)) { goto VCFqe; } goto x_J4k; J54jd: XiCWI: goto YtrXM; YtrXM: } goto qg01q; qg01q: N1Kcr: goto J3lxm; E1ssO: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto KEeLr; ppDub: $item['rights'] = $rights; goto Wwjid; KEeLr: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto hGgUS; J3lxm: $item['prg'] = $i; goto qytRe; Xc11n: dHYEw: goto T_JUm; qytRe: $j = $i; goto Xc11n; T_JUm: P3P5x: goto x38y1; hGgUS: if (!$rights) { goto dHYEw; } goto ppDub; CBMXV: if (!(!empty($item['op']) && !empty($item['do']))) { goto vt9Sw; } goto SCm5n; SCm5n: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto jGobT; x38y1: } goto NcQHM; u1wp0: $value['sys'] = $j; goto ehhd8; h4iQA: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto kmh_1; rMg8S: Q28pN: goto Hinz4; kmh_1: $j = 0; goto POcw1; Hinz4: I6J1d: goto Ir2AD; ziXQ5: foreach ($submenus as $key => $subvalue) { goto aqY9u; ooZ0i: pLz7j: goto dONys; dONys: if (!in_array($subvalue['id'], $hideregionmenus)) { goto MtNJs; } goto Ry9dU; U4yPw: it0CS: goto Vn6XP; shx4p: UT_wf: goto ooZ0i; aqY9u: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto pLz7j; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto pLz7j; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto pLz7j; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto pLz7j; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto pLz7j; } goto shx4p; Ry9dU: unset($submenus[$key]); goto KtCbm; KtCbm: MtNJs: goto U4yPw; Vn6XP: } goto rMg8S; u9xWm: kWrn9: goto BeXkH; POcw1: if (empty($submenus)) { goto iZWpB; } goto L70LF; BeXkH: } goto C3kb2; dSYxE: foreach ($menus as &$value) { goto RB24m; n1vfN: peExu: goto aqhKt; G3EHX: $value['submenus'] = $submenus; goto hIJXl; yr0OQ: laTXZ: goto XQVkl; Nc041: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto icUPf; icUPf: $j = 0; goto CG5jK; hIJXl: $value['sys'] = $j; goto yr0OQ; RB24m: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 order by isdisplay desc ,displayorder asc'; goto Nc041; E7jBO: if (!($mywe['rid'] && $mywe['region'])) { goto peExu; } goto EkFy6; aqhKt: foreach ($submenus as &$item) { goto KTaOM; hjE6d: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto y1lgP; qPPK2: Jw6RL: goto QV5UY; H90qt: $item['rights'] = $rights; goto d1DKF; rU3Vt: G5c1w: goto hjE6d; ysxYD: $item['prg'] = $i; goto dg10T; goPwZ: foreach ($rights as $key) { goto MaPaY; MaPaY: if (!($key == 1)) { goto z_6T7; } goto pHGyl; pHGyl: $i = 1; goto FScRc; vV9Ko: GKbcd: goto K5c5g; FScRc: goto nqkV4; goto dLow4; dLow4: z_6T7: goto vV9Ko; K5c5g: } goto LDf3O; dg10T: $j = $i; goto q6C30; jNraU: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto rU3Vt; KTaOM: if (!(!empty($item['op']) && !empty($item['do']))) { goto G5c1w; } goto jNraU; d1DKF: $i = 0; goto goPwZ; LDf3O: nqkV4: goto ysxYD; Af9eG: if (!$rights) { goto Ii4Pc; } goto H90qt; y1lgP: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto Af9eG; q6C30: Ii4Pc: goto qPPK2; QV5UY: } goto cc2AL; cc2AL: YQPzh: goto G3EHX; EkFy6: foreach ($submenus as $key => $subvalue) { goto SBKp6; XcRMn: KPHD0: goto NXxZp; QGbT0: i5h9b: goto IACsi; IACsi: if (!in_array($subvalue['id'], $hideregionmenus)) { goto pdOgE; } goto COYE4; SBKp6: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto i5h9b; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto i5h9b; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto i5h9b; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto i5h9b; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto i5h9b; } goto AsS0X; AsS0X: Lf9W4: goto QGbT0; COYE4: unset($submenus[$key]); goto Cf1ES; Cf1ES: pdOgE: goto XcRMn; NXxZp: } goto qEn5N; qEn5N: yfZK8: goto n1vfN; XQVkl: LqK33: goto N1lqT; CG5jK: if (empty($submenus)) { goto laTXZ; } goto E7jBO; N1lqT: } goto H9AWB; a3KeJ: foreach ($menus as &$value) { goto Z4cwm; o9aYA: I2nTM: goto S6OXB; GkzBZ: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto SFcTV; SFcTV: $j = 0; goto i_oEe; Eucge: foreach ($submenus as $key => $subvalue) { goto I53MD; n16JN: nhqc4: goto R9tpf; qXjX5: unset($submenus[$key]); goto LsE3M; Vy7Kq: YfS9t: goto ZqV5f; uwnzk: if (!in_array($subvalue['id'], $hideregionmenus)) { goto uWRJU; } goto qXjX5; LsE3M: uWRJU: goto Vy7Kq; I53MD: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto z0eLj; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto z0eLj; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto z0eLj; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto z0eLj; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto z0eLj; } goto n16JN; R9tpf: z0eLj: goto uwnzk; ZqV5f: } goto sNFnQ; sNFnQ: ZNUfE: goto dqo1s; IZsW4: $value['sys'] = $j; goto s8SYn; vYDOC: if (!($mywe['rid'] && $mywe['region'])) { goto wrg2g; } goto Eucge; wGNmz: foreach ($submenus as &$item) { goto Tc0ML; PNW7O: uWXTh: goto hFRNx; DR2ns: $j = $i; goto PNW7O; labZF: $rights = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":gid" => $gid, ":pid" => $item['id'])); goto TBrEz; PV_s4: tCqjh: goto W763x; eCAqo: foreach ($rights as $key) { goto EAHWD; nsXWa: vxI9q: goto WJhVd; EAHWD: if (!($key == 1)) { goto vxI9q; } goto Ydn4_; Ydn4_: $i = 1; goto bWMHU; bWMHU: goto tCqjh; goto nsXWa; WJhVd: cnlZA: goto fBae5; fBae5: } goto PV_s4; W763x: $item['prg'] = $i; goto DR2ns; dY7A4: bkWS9: goto fzdOC; Tc0ML: if (!(!empty($item['op']) && !empty($item['do']))) { goto bkWS9; } goto Yg1yz; hFRNx: RkqKj: goto V3U_p; d2AYz: $item['rights'] = $rights; goto PYhPi; PYhPi: $i = 0; goto eCAqo; TBrEz: if (!$rights) { goto uWXTh; } goto d2AYz; fzdOC: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto labZF; Yg1yz: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto dY7A4; V3U_p: } goto o9aYA; Z4cwm: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where (p.issys=3 or p.issys = 0) and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 order by isdisplay desc ,displayorder asc'; goto GkzBZ; S6OXB: $value['submenus'] = $submenus; goto IZsW4; dqo1s: wrg2g: goto wGNmz; s8SYn: or5YL: goto lkv6O; i_oEe: if (empty($submenus)) { goto or5YL; } goto vYDOC; lkv6O: VR3yn: goto f_lm_; f_lm_: } goto z6sc2; lH_1V: gM2ax: goto K35Rp; Y4hhZ: omWho: goto hUlvl; HmTXu: ukAms: goto c0Lpk; BMz6x: foreach ($menus as &$value) { goto SZtSo; HRRnr: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto aq5ax; UA4mz: if (!($mywe['rid'] && $mywe['region'])) { goto V05xb; } goto JHMQJ; xpgUa: $value['submenus'] = $submenus; goto pkQJ1; aq5ax: $j = 0; goto kpW5B; nNmxo: T1ySB: goto psP5w; SZtSo: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto HRRnr; kpW5B: if (empty($submenus)) { goto HhOku; } goto UA4mz; Nox83: kS9s8: goto xpgUa; xxtsS: HhOku: goto nNmxo; l4l94: V05xb: goto gARvW; pkQJ1: $value['sys'] = $j; goto xxtsS; eQ032: E_bPW: goto l4l94; gARvW: foreach ($submenus as &$item) { goto sFniv; xirj0: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto POakk; wpMUs: if (!$rights) { goto iOTSs; } goto rRBB1; OX7lg: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto wpMUs; GTcAX: foreach ($rights as $key) { goto rBxTH; HVK0H: YJb7a: goto jNdli; RXJKL: RLMWO: goto HVK0H; IW3XX: $i = 1; goto wP1FI; rBxTH: if (!($key == 1)) { goto RLMWO; } goto IW3XX; wP1FI: goto xoP_k; goto RXJKL; jNdli: } goto mvk5Q; POakk: i7C_j: goto SEY6f; mvk5Q: xoP_k: goto pAFWe; rRBB1: $item['rights'] = $rights; goto peWSS; sFniv: if (!(!empty($item['op']) && !empty($item['do']))) { goto i7C_j; } goto xirj0; S2iTh: iOTSs: goto RQEYq; pAFWe: $item['prg'] = $i; goto Glb3W; SEY6f: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto OX7lg; RQEYq: FPU3M: goto VKnNj; peWSS: $i = 0; goto GTcAX; Glb3W: $j = $i; goto S2iTh; VKnNj: } goto Nox83; JHMQJ: foreach ($submenus as $key => $subvalue) { goto UPq5f; u4Vog: knNOl: goto ZOzWp; jtEXg: unset($submenus[$key]); goto Myo8m; ZOzWp: if (!in_array($subvalue['id'], $hideregionmenus)) { goto IvVNz; } goto jtEXg; Myo8m: IvVNz: goto RoMmV; RoMmV: Mfuv3: goto lzAtm; MBb9T: sU8xd: goto u4Vog; UPq5f: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto knNOl; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto knNOl; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto knNOl; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto knNOl; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto knNOl; } goto MBb9T; lzAtm: } goto eQ032; psP5w: } goto NPuNY; C3kb2: G1Inj: goto USkfP; YJQEq: Mjtyu: goto skD2l; MsyHp: FLP7T: goto SjJwy; m1pzK: $mywe = $this->mywe; goto hmQZj; x50il: foreach ($menus as &$value) { goto WKDT7; kKYtu: $value['submenus'] = $submenus; goto EgKUj; e8UvJ: $j = 0; goto vrFwO; PXDKH: skj0r: goto kKYtu; dKAIf: kw0or: goto L1vFB; oaVKK: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto e8UvJ; WKDT7: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 order by isdisplay desc,displayorder asc'; goto oaVKK; L1vFB: sdJKg: goto Pycn6; EgKUj: $value['sys'] = $j; goto dKAIf; UuAMm: foreach ($submenus as &$item) { goto GL3PA; N67WJ: $item['rights'] = $rights; goto adoBP; y2ziF: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto qQyuq; qQyuq: Tc5co: goto sYy9v; OeNJj: $item['prg'] = $i; goto LNyaC; M2QWd: nmF8u: goto OeNJj; LNyaC: $j = $i; goto PuGGs; k14UB: foreach ($rights as $key) { goto ycJ55; kgPbk: $i = 1; goto vumat; ycJ55: if (!($key == 1)) { goto dmQEN; } goto kgPbk; NyYkf: dmQEN: goto DcXS8; DcXS8: blV3_: goto aYXUI; vumat: goto nmF8u; goto NyYkf; aYXUI: } goto M2QWd; hQ0iB: if (!$rights) { goto CEgxr; } goto N67WJ; IVBok: HvzrU: goto jz_DY; aRWn4: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto hQ0iB; GL3PA: if (!(!empty($item['op']) && !empty($item['do']))) { goto Tc5co; } goto y2ziF; PuGGs: CEgxr: goto IVBok; sYy9v: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto aRWn4; adoBP: $i = 0; goto k14UB; jz_DY: } goto PXDKH; vrFwO: if (empty($submenus)) { goto kw0or; } goto UuAMm; Pycn6: } goto OOjXG; GQsfv: if (empty($menus)) { goto vwmeI; } goto dSYxE; bszO9: if (empty($menus)) { goto Bb9cq; } goto ygj38; yhVUO: foreach ($menus as &$value) { goto Tni6E; Ya8HA: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'], ":weid" => $mywe['weid'], ":gid" => $mywe['gid'])); goto ZER68; ilpoP: foreach ($submenus as $key => $subvalue) { goto EcNwr; fNRFy: dNEbc: goto HushL; oCa_Z: if (!in_array($subvalue['id'], $hideregionmenus)) { goto oKpCC; } goto XYGby; EcNwr: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto QeCKi; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto QeCKi; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto QeCKi; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto QeCKi; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto QeCKi; } goto GRrWq; XYGby: unset($submenus[$key]); goto jswNU; jswNU: oKpCC: goto fNRFy; t8z4A: QeCKi: goto oCa_Z; GRrWq: UmONo: goto t8z4A; HushL: } goto Sg1lT; EXWH6: hVaH1: goto HAnOF; lKfR0: if (!($mywe['rid'] && $mywe['region'])) { goto Nkc9b; } goto ilpoP; Sg1lT: QhsGV: goto P3iwq; nt5i4: foreach ($submenus as &$item) { goto O3Rpv; ipGnm: $item['rights'] = $rights; goto qr4xZ; M8fLx: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto adOry; cN5hA: foreach ($rights as $key) { goto kGzJW; eNDBP: goto tJz6P; goto dwbaa; dwbaa: J_gGI: goto g0DW1; g0DW1: lj4Nt: goto Few4y; c02KW: $i = 1; goto eNDBP; kGzJW: if (!($key == 1)) { goto J_gGI; } goto c02KW; Few4y: } goto ZTvsa; ZTvsa: tJz6P: goto C4AoF; NYqwf: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto Tkq1x; Tkq1x: AjzaK: goto M8fLx; OEPXW: KJ6p4: goto cN5WZ; tMzUK: if (!$rights) { goto KJ6p4; } goto ipGnm; C4AoF: $item['prg'] = $i; goto iZz83; O3Rpv: if (!(!empty($item['op']) && !empty($item['do']))) { goto AjzaK; } goto NYqwf; iZz83: $j = $i; goto OEPXW; qr4xZ: $i = 0; goto cN5hA; adOry: $rights = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":gid" => $gid, ":pid" => $item['id'])); goto tMzUK; cN5WZ: Bhb1j: goto E7tcH; E7tcH: } goto Or6JR; ZER68: $j = 0; goto XL38p; Or6JR: HirEf: goto hag0O; XL38p: if (empty($submenus)) { goto VzPfF; } goto lKfR0; XWEZx: $value['sys'] = $j; goto OAlE4; hag0O: $value['submenus'] = $submenus; goto XWEZx; Tni6E: $sql = 'select p.id,p.title,p.sid,p.do,p.op,p.name1,p.name2,p.name3,p.name4,p.name5,g.add,g.edit,g.delete,g.export,g.query,g.view,g.print,g.enabled,g.audit,g.other1,g.other2,g.other3,g.other4,g.other5 from ' . tablename('rhinfo_zyxq_secprg') . ' as p left join ' . tablename('rhinfo_zyxq_secgprg') . ' as g on p.id = g.pid  where (p.issys=3 or p.issys=0) and p.sid = :sid and g.weid=:weid and g.gid=:gid and g.sid=:sid and p.isdismenu=1 and p.id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc ,displayorder asc'; goto Ya8HA; P3iwq: Nkc9b: goto nt5i4; OAlE4: VzPfF: goto EXWH6; HAnOF: } goto pqQhW; SCL76: yWSZp: goto QbZTl; Q6qXB: global $_W, $_GPC; goto m1pzK; WJ5sH: if ($mywe['gid'] == 0) { goto y1uLy; } goto ALSEU; zCewZ: nLFfB: goto FdPgB; tvJ8A: QEd2q: goto B716U; n3H3X: foreach ($menus as &$value) { goto i2Jz9; gZuyk: $value['sys'] = $j; goto Pg3gt; wlFXr: lEZN8: goto pyz8O; B0j0o: $j = 0; goto IOBg4; i2Jz9: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where (issys=2 or issys=0) and sid = :sid and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc,displayorder asc'; goto CF6tX; oID8w: n3PYz: goto x_U7e; PfBxc: foreach ($submenus as &$item) { goto kFNEy; I7WY3: uvLjj: goto lqmMH; PLY_U: $item['rights'] = $rights; goto dVEea; zGgIx: if (!$rights) { goto uvLjj; } goto PLY_U; D2qpI: foreach ($rights as $key) { goto cZ6N3; cZ6N3: if (!($key == 1)) { goto uNV5X; } goto rTwVx; qtnyX: uNV5X: goto VIi8l; rTwVx: $i = 1; goto nwdGK; nwdGK: goto w7Uwn; goto qtnyX; VIi8l: PSCKz: goto lSRaY; lSRaY: } goto ae0vt; ae0vt: w7Uwn: goto rWMKN; NQIPU: NrHUb: goto rZgRP; rWMKN: $item['prg'] = $i; goto JG3hM; kFNEy: if (!(!empty($item['op']) && !empty($item['do']))) { goto NrHUb; } goto E7SG5; JG3hM: $j = $i; goto I7WY3; dVEea: $i = 0; goto D2qpI; lqmMH: yZR1x: goto QfXCY; uJu1e: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto zGgIx; E7SG5: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto NQIPU; rZgRP: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto uJu1e; QfXCY: } goto wlFXr; CF6tX: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto B0j0o; pyz8O: $value['submenus'] = $submenus; goto gZuyk; IOBg4: if (empty($submenus)) { goto pGxP3; } goto PfBxc; Pg3gt: pGxP3: goto oID8w; x_U7e: } goto CUVCB; M3Gwf: ywTq2: goto V0Xsf; wKmym: O0WTH: goto wK7d8; lIMPg: if ($mywe['gid'] == 0) { goto akfku; } goto BhwNw; ncWpt: SXbW0: goto BDQVo; iF1py: goto QEd2q; goto zPLJx; hDNzx: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto yeLig; rBQ7r: p7HSU: goto yx2US; rjPgw: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto bszO9; PotRD: if (!empty($roletype)) { goto ywTq2; } goto iH6_l; nxkD_: oguOb: goto sdJAk; q7MIM: vwmeI: goto ugk85; irwjL: y1uLy: goto COms6; W7tyN: Q0VQD: goto tvJ8A; qhdaE: if (empty($menus)) { goto IKLPG; } goto t9t6t; Vfm9o: Bb9cq: goto nxkD_; ugk85: goto oo3c3; goto VROio; skD2l: V38FQ: goto rBQ7r; hUlvl: M4Foh: goto OuDGo; FdPgB: WNCPb: goto m40VM; QbZTl: if ($_W['isfounder']) { goto RUMTM; } goto xuHWj; TQAGh: HSUm9: goto pmXEE; Hj7ez: goto M4Foh; goto HmTXu; ygj38: foreach ($menus as &$value) { goto fzkfW; Duyfa: kod9L: goto nAE_s; ekubT: $j = 0; goto QTAhk; QTAhk: if (empty($submenus)) { goto f5BpS; } goto w0ReP; w0ReP: foreach ($submenus as &$item) { goto iRAdk; KJ2Fx: kmeiC: goto tZis5; A6b0c: SDew7: goto jX0kM; o_C_X: $item['prg'] = $i; goto XIn8r; tZis5: y4Ift: goto P9G9v; GqwzY: if (!$rights) { goto kmeiC; } goto lfuo0; BFsH_: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto GqwzY; lfuo0: $item['rights'] = $rights; goto IGRLy; IGRLy: $i = 0; goto ke1ry; jX0kM: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto BFsH_; ke1ry: foreach ($rights as $key) { goto PapXx; VhsV2: goto kVrJ_; goto VSusS; LcaVi: $i = 1; goto VhsV2; XlPXr: trwqc: goto pJuJv; PapXx: if (!($key == 1)) { goto H1gmc; } goto LcaVi; VSusS: H1gmc: goto XlPXr; pJuJv: } goto FrAzX; iRAdk: if (!(!empty($item['op']) && !empty($item['do']))) { goto SDew7; } goto tgPYc; tgPYc: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto A6b0c; XIn8r: $j = $i; goto KJ2Fx; FrAzX: kVrJ_: goto o_C_X; P9G9v: } goto d8dxI; d8dxI: bpAN3: goto UlfSK; UlfSK: $value['submenus'] = $submenus; goto ySPlk; fzkfW: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 and id in(select distinct pid from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid=' . $mywe['weid'] . ') order by isdisplay desc,displayorder asc'; goto SXSG1; KC33x: f5BpS: goto Duyfa; SXSG1: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto ekubT; ySPlk: $value['sys'] = $j; goto KC33x; nAE_s: } goto oyRdz; OOjXG: q01e2: goto W7tyN; B5c58: of0QI: goto TX2sz; LF7mR: eLtlH: goto E3wAl; wK7d8: if (!empty($roletype)) { goto ukAms; } goto mchSh; DM1LU: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto wc3bY; E1F5N: $secacc = pdo_fetch($sql, array(":weid" => $mywe['weid'])); goto q0J1f; om74e: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay order by displayorder'; goto pPCa9; c0Lpk: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where (issys=2 or issys=0) and isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto YhfE6; YR0V0: return $menus; goto xe2fk; TD4bY: if (empty($menus)) { goto jNAdN; } goto yhVUO; mvdB8: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto hDNzx; hmQZj: $sql = 'select * from ' . tablename('rhinfo_zyxq_secacc') . ' where weid = :weid and status=1'; goto E1F5N; H4Jei: foreach ($menus as &$value) { goto exyss; h9kfZ: $j = 0; goto tJXKg; tznIS: foreach ($submenus as &$item) { goto HVYe9; lg6Cx: $rights = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":gid" => $gid, ":pid" => $item['id'])); goto yfOSM; HVYe9: if (!(!empty($item['op']) && !empty($item['do']))) { goto Mq3bS; } goto Tdo2f; RXXtF: $i = 0; goto I_Gmv; x1atp: L28ow: goto Ksnf0; I_Gmv: foreach ($rights as $key) { goto vLIVY; i0jP4: eC4oA: goto EiOMi; c3Phj: goto cGkNk; goto E7i0K; vLIVY: if (!($key == 1)) { goto Gk5uk; } goto eN2ff; eN2ff: $i = 1; goto c3Phj; E7i0K: Gk5uk: goto i0jP4; EiOMi: } goto QnzaI; yfOSM: if (!$rights) { goto cKLnP; } goto nA__z; nA__z: $item['rights'] = $rights; goto RXXtF; AcXBK: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto lg6Cx; V7gWk: $item['prg'] = $i; goto AXqzV; qwcBE: Mq3bS: goto AcXBK; Qn0pY: cKLnP: goto x1atp; AXqzV: $j = $i; goto Qn0pY; Tdo2f: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto qwcBE; QnzaI: cGkNk: goto V7gWk; Ksnf0: } goto UlwbM; tJXKg: if (empty($submenus)) { goto sz1r_; } goto mwXzr; y7Q8d: sz1r_: goto a6Rlh; mwXzr: if (!($mywe['rid'] && $mywe['region'])) { goto udQHX; } goto bvhJC; qqW_v: udQHX: goto tznIS; EEdqb: $value['submenus'] = $submenus; goto cNSco; cNSco: $value['sys'] = $j; goto y7Q8d; a6Rlh: Z3NZt: goto p4k49; UlwbM: bgoub: goto EEdqb; efuPm: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto h9kfZ; WPtyl: SAiMd: goto qqW_v; exyss: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and (issys=3 or issys=0) and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto efuPm; bvhJC: foreach ($submenus as $key => $subvalue) { goto VZnwo; FKvjZ: pl1va: goto OvBbJ; QvKwQ: hA50Z: goto EMlQm; r5WXN: unset($submenus[$key]); goto FKvjZ; vD3ck: VbLhx: goto QvKwQ; EMlQm: if (!in_array($subvalue['id'], $hideregionmenus)) { goto pl1va; } goto r5WXN; VZnwo: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto hA50Z; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto hA50Z; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto hA50Z; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto hA50Z; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto hA50Z; } goto vD3ck; OvBbJ: sX2n3: goto X6lNP; X6lNP: } goto WPtyl; p4k49: } goto zCewZ; pI8QL: oo3c3: goto iF1py; pmXEE: if ($_W['isfounder']) { goto gM2ax; } goto ry2_j; mchSh: if (!empty($_W['uid'])) { goto HSUm9; } goto lIMPg; hTtP5: nfL8b: goto kFqF3; iH6_l: if (!empty($_W['uid'])) { goto yWSZp; } goto WJ5sH; V0Xsf: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where (issys=2 or issys=0) and isdisplay = :isdisplay order by displayorder'; goto SdOdk; USkfP: UoeY2: goto LF7mR; Z5kOD: if (empty($menus)) { goto of0QI; } goto a3KeJ; BhwNw: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=3 or issys=0) and id in(select distinct sid from ' . tablename('rhinfo_zyxq_secasys') . ' where weid=' . $mywe['weid'] . ') order by displayorder'; goto y_HM1; pqQhW: R3miE: goto EiGM7; Heoy5: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto Z5kOD; k4Rlo: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto GQsfv; m40VM: ALQIM: goto Yqn35; t9t6t: foreach ($menus as &$value) { goto cd_Kv; gydvo: $value['submenus'] = $submenus; goto pPiec; pPiec: $value['sys'] = $j; goto b7TCS; wGwUZ: $j = 0; goto jly2C; XWCYj: if (!($mywe['rid'] && $mywe['region'])) { goto M2R6Y; } goto htI8b; Kjg0i: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto wGwUZ; IDE8W: XSKLm: goto s5PjV; htI8b: foreach ($submenus as $key => $subvalue) { goto kc7B6; v0Ebf: GhJyf: goto ppBrO; ss2Rs: WxcPb: goto r0Fdy; ppBrO: LbsLK: goto kkM9B; GH5sv: prbmo: goto ss2Rs; r5tS6: unset($submenus[$key]); goto v0Ebf; kc7B6: switch ($mywe['region']) { case 1: $hideregionmenus = array("5", "7", "76", "77", "78"); goto WxcPb; case 2: $hideregionmenus = array("5", "6", "76", "77", "78"); goto WxcPb; case 3: $hideregionmenus = array("5", "6", "7", "77", "78"); goto WxcPb; case 4: $hideregionmenus = array("5", "6", "7", "76", "78"); goto WxcPb; case 5: $hideregionmenus = array("5", "6", "7", "76", "77"); goto WxcPb; } goto GH5sv; r0Fdy: if (!in_array($subvalue['id'], $hideregionmenus)) { goto GhJyf; } goto r5tS6; kkM9B: } goto vbkWa; nlBE7: Y69Lf: goto gydvo; cd_Kv: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto Kjg0i; ApbFA: foreach ($submenus as &$item) { goto Bc01v; JZKBZ: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto yMqNO; nPNpP: $item['url'] = mywurl($item['do'] . '/' . $item['op']) . $mywe['direct']; goto vlp9A; yMqNO: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $gid, ":pid" => $item['id'])); goto D9RNK; qh5zE: foreach ($rights as $key) { goto Of_H9; NrtcV: $i = 1; goto htyNy; Of_H9: if (!($key == 1)) { goto sMqfi; } goto NrtcV; oN4D6: waRsw: goto zmHlN; BxJfB: sMqfi: goto oN4D6; htyNy: goto vWTBD; goto BxJfB; zmHlN: } goto I57zf; SYqbq: $j = $i; goto zf_MI; I57zf: vWTBD: goto qfb5H; asT3o: JsyDI: goto qPpOA; D9RNK: if (!$rights) { goto e8rLc; } goto aLLll; vlp9A: zGVKb: goto JZKBZ; qfb5H: $item['prg'] = $i; goto SYqbq; zf_MI: e8rLc: goto asT3o; aLLll: $item['rights'] = $rights; goto WdzYl; WdzYl: $i = 0; goto qh5zE; Bc01v: if (!(!empty($item['op']) && !empty($item['do']))) { goto zGVKb; } goto nPNpP; qPpOA: } goto nlBE7; M4U4I: M2R6Y: goto ApbFA; vbkWa: Zk3KV: goto M4U4I; b7TCS: oG95q: goto IDE8W; jly2C: if (empty($submenus)) { goto oG95q; } goto XWCYj; s5PjV: } goto l0IUH; Bqr_J: if (empty($menus)) { goto omWho; } goto n3H3X; mw3GY: if (empty($menus)) { goto WNCPb; } goto H4Jei; H_H6U: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $_W['uniacid'] . ') and isdisplay = :isdisplay order by displayorder'; goto k4Rlo; oyRdz: uakA2: goto Vfm9o; E3wAl: goto oguOb; goto lH_1V; ALSEU: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where id in (select sid from ' . tablename('rhinfo_zyxq_secgsys') . ' where gid = ' . $mywe['gid'] . ' and weid =' . $mywe['weid'] . ') and isdisplay = :isdisplay and (issys=3 or issys=0) order by displayorder'; goto Heoy5; tZpc3: if (empty($menus)) { goto V38FQ; } goto kNsHB; OuDGo: TiAty: goto YR0V0; kGxJH: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto BJxJ9; BDQVo: goto cAnBu; goto TQAGh; lGPZI: byIqU: goto mvdB8; xe2fk: } public function myrights($sid, $do, $op) { goto tR5PQ; auKNM: $rights = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":gid" => $mywe['gid'], ":pid" => $pid)); goto SErT7; apRTW: if ($mywe['gid'] == 0) { goto O1PqQ; } goto N3YBK; yLXTs: if ($_W['usercfrom'] == 2) { goto B0pck; } goto DcQvU; mVvHM: goto LbsPm; goto p1Pwx; XfjGR: $rights = pdo_fetch($sql, array(":sid" => $sid, ":do" => $do, ":op" => $op)); goto MJEDQ; WWWJa: $rights = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":gid" => $mywe['gid'], ":pid" => $pid)); goto mVvHM; Sk3j3: goto pHld3; goto Ep1nF; SECL1: ncXK0: goto uGPtI; usEko: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto e4joi; tR5PQ: global $_W, $_GPC; goto bfk1z; Rfnky: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto WWWJa; wQuhm: $sql = 'select * from ' . tablename('rhinfo_zyxq_secgprg') . ' where weid = :weid and gid = :gid and pid = :pid'; goto auKNM; BGe15: ZE_qh: goto etB_z; IuOHY: $sql = 'SELECT id FROM ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and do = :do and  op = :op'; goto HmAa2; N3H0Y: O1PqQ: goto ygx_M; SErT7: goto HO7mZ; goto N3H0Y; MBEv4: return $rights; goto XnoDn; uGPtI: if ($_W['isfounder']) { goto ZE_qh; } goto apRTW; HmAa2: $pid = pdo_fetchcolumn($sql, array(":sid" => $sid, ":do" => $do, ":op" => $op)); goto usEko; MJEDQ: zgLWD: goto FKXT4; l6hl5: $pid = pdo_fetchcolumn($sql, array(":sid" => $sid, ":do" => $do, ":op" => $op)); goto Rfnky; FKXT4: cCcIf: goto MBEv4; ygx_M: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and do = :do and  op = :op'; goto bAjmL; YFgcj: $pid = pdo_fetchcolumn($sql, array(":sid" => $sid, ":do" => $do, ":op" => $op)); goto wQuhm; m4wV4: $rights = pdo_fetch($sql, array(":sid" => $sid, ":do" => $do, ":op" => $op)); goto NeMLN; DcQvU: if ($mywe['gid'] == 0) { goto eNCGZ; } goto pYXDj; bAjmL: $rights = pdo_fetch($sql, array(":sid" => $sid, ":do" => $do, ":op" => $op)); goto CTb0E; e4joi: $rights = pdo_fetch($sql, array(":weid" => $mywe['weid'], ":gid" => $mywe['gid'], ":pid" => $pid)); goto jjBDU; p1Pwx: eNCGZ: goto H7PrA; jjBDU: pHld3: goto jun_t; etB_z: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and do = :do and  op = :op'; goto XfjGR; bfk1z: $mywe = $this->mywe; goto E2_wn; N3YBK: $sql = 'SELECT id FROM ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and do = :do and  op = :op'; goto YFgcj; H7PrA: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and do = :do and  op = :op'; goto m4wV4; E2_wn: if (!empty($_W['uid'])) { goto ncXK0; } goto yLXTs; jun_t: goto cCcIf; goto SECL1; pYXDj: $sql = 'SELECT id FROM ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and do = :do and  op = :op'; goto l6hl5; NeMLN: LbsPm: goto Sk3j3; Ep1nF: B0pck: goto IuOHY; Twney: goto zgLWD; goto BGe15; CTb0E: HO7mZ: goto Twney; XnoDn: } public function mywebmsg($caption = "温馨提示", $msg = "提示信息", $redirect = "", $label = "successs", $isparent = 0) { include $this->template('web/_message'); exit; } public function mywebmsg1($caption, $msg, $redirect = "", $label) { include $this->template('web/_message1'); exit; } public function mylaymsg($caption, $msg, $redirect = "", $label) { include $this->template('web/_laymsg'); exit; } public function createqrcode($content, $text = "") { goto jSjIj; wrn2b: create_text($qrcode_file, $text, '14', '450', '', '', '', ''); goto PD2xO; GA3cR: $path = IA_ROOT . '/addons/rhinfo_zyxq/data/qrcode/' . $_W['uniacid'] . '/'; goto o1xmr; SxfNi: return $this->syscfg['siteurl'] . 'addons/rhinfo_zyxq/data/qrcode/' . $_W['uniacid'] . '/' . $file; goto LUMEq; YAzOd: $qrcode_file = $path . $file; goto ydgBg; tIxTz: mkdirs($path); goto UGvuM; UGvuM: qXsJu: goto WTtpN; jSjIj: global $_W; goto GA3cR; ydgBg: if (is_file($qrcode_file)) { goto Tuh0T; } goto PsTH3; PD2xO: Z4Ybb: goto u6MJt; cY475: if (empty($text)) { goto Z4Ybb; } goto wrn2b; e3ThM: QRcode::png($content, $qrcode_file, QR_ECLEVEL_L, 10); goto cY475; WTtpN: $file = md5(base64_encode($content)) . '.jpg'; goto YAzOd; o1xmr: if (is_dir($path)) { goto qXsJu; } goto CzWvo; PsTH3: require_once IA_ROOT . '/framework/library/qrcode/phpqrcode.php'; goto e3ThM; u6MJt: Tuh0T: goto SxfNi; CzWvo: load()->func('file'); goto tIxTz; LUMEq: } public function mytpl($filename) { goto wPyLZ; RbnLM: XdtFn: goto pwJc1; dPItT: $source = MODULE_ROOT . $path . '.html'; goto N11Dj; b_Ztu: $filename = $this->syscfg['style'] . '/' . $filename; goto bjL3n; N11Dj: if (!is_file($source)) { goto XdtFn; } goto b_Ztu; eOaXV: return $filename; goto fP5hE; SL81Z: $filename = 'default/' . $filename; goto I0kN1; OR2tO: y0AIt: goto QAYuK; pwJc1: $filename = 'default/' . $filename; goto OR2tO; QAYuK: zLaHy: goto eOaXV; D40Wp: j7khG: goto Y0poy; Y0poy: $path = '/template/mobile/' . $this->syscfg['style'] . '/' . $filename; goto dPItT; wPyLZ: global $_W, $_GPC; goto f5fpa; I0kN1: goto zLaHy; goto D40Wp; bjL3n: goto y0AIt; goto RbnLM; f5fpa: if (!empty($this->syscfg['style'])) { goto j7khG; } goto SL81Z; fP5hE: } public function mywtpl($filename = "") { goto XQyRz; FfUcL: $filename = 'web/' . $_GPC['do'] . '/' . $filename; goto LS8Uo; hUbHS: if (!is_file($source)) { goto qOyIJ; } goto cbzsG; d30oP: return $this->template($filename); goto xDA2J; MpCOy: goto ICeJ0; goto dbwqz; dbwqz: qOyIJ: goto GVfnZ; TEpt9: $source = MODULE_ROOT . $path . '.html'; goto hUbHS; GVfnZ: $filename = 'web/' . $_GPC['do'] . '/' . $filename; goto k9nkl; fGyxK: CTflC: goto Fv3Xi; cbzsG: $filename = $this->syscfg['adminstyle'] . '/' . $_GPC['do'] . '/' . $filename; goto MpCOy; Fv3Xi: $path = '/template/' . $this->syscfg['adminstyle'] . '/' . $_GPC['do'] . '/' . $filename; goto TEpt9; k9nkl: ICeJ0: goto lWNW7; lWNW7: YGIPU: goto d30oP; uiLHK: $filename = empty($filename) ? 'index' : $filename; goto ZCQf1; XQyRz: global $_W, $_GPC; goto h0VCY; ZCQf1: if (!empty($this->syscfg['adminstyle'])) { goto CTflC; } goto FfUcL; h0VCY: $filename = empty($filename) ? $_GPC['op'] : $filename; goto uiLHK; LS8Uo: goto YGIPU; goto fGyxK; xDA2J: } public function mymtpl($filename = "") { goto QxZES; WlKLm: Uev96: goto KwUrT; gV67z: $filename = 'default/' . $_GPC['do'] . '/' . $filename; goto MgDZZ; pkXRZ: $filename = empty($filename) ? $_GPC['op'] : $filename; goto pgKW5; ANGkD: iZxDm: goto fzsjH; QxZES: global $_W, $_GPC; goto pkXRZ; xxV6l: CtWsR: goto wTzyB; u12X7: $source = MODULE_ROOT . $path . '.html'; goto iDJUT; zppSV: $path = '/template/mobile/default/wap/' . $_GPC['do'] . '/' . $filename; goto TZSa2; iDJUT: if (!is_file($source)) { goto yOLgr; } goto ZH4Oz; PGVwM: $filename = $this->syscfg['style'] . '/' . $_GPC['do'] . '/' . $filename; goto Jw1WU; rOGhU: goto AUQun; goto ZpWwB; HHe1N: $filename = $this->syscfg['style'] . '/' . $_GPC['do'] . '/' . $filename; goto p1YI8; rkGhd: $wapsource = MODULE_ROOT . $path . '.html'; goto t90tF; ZpWwB: yOLgr: goto bOFDB; pgKW5: $filename = empty($filename) ? 'index' : $filename; goto C3Z6x; fzsjH: $path = '/template/mobile/' . $this->syscfg['style'] . '/wap/' . $_GPC['do'] . '/' . $filename; goto rkGhd; wTzyB: $path = '/template/mobile/default/wap/' . $_GPC['do'] . '/' . $filename; goto u12X7; SDkMQ: if (!is_file($source)) { goto s2ss7; } goto PGVwM; Gqc5K: goto Stl9G; goto ZWGDY; HURDd: $filename = 'default/' . $_GPC['do'] . '/' . $filename; goto S_Das; ZWGDY: qRFVw: goto eC6uj; KyxSp: $filename = $this->syscfg['style'] . '/wap/' . $_GPC['do'] . '/' . $filename; goto Dgh_A; kkXpo: $source = MODULE_ROOT . $path . '.html'; goto SDkMQ; wkOz9: if (!is_file($source)) { goto HAuTR; } goto HHe1N; lecWB: nj_HN: goto Gqc5K; TZSa2: $wapsource = MODULE_ROOT . $path . '.html'; goto XZNTN; UvInu: goto kd5Iq; goto ANGkD; Dgh_A: tnLI1: goto CDocO; wKla5: AUQun: goto lecWB; bOFDB: $filename = 'default/' . $_GPC['do'] . '/' . $filename; goto wKla5; iL2x8: $filename = 'default/' . $_GPC['do'] . '/' . $filename; goto y5jOY; KwUrT: $filename = 'default/wap/' . $_GPC['do'] . '/' . $filename; goto O46E2; iLst_: if ($this->rhinfo_wap) { goto CtWsR; } goto HURDd; p1YI8: goto u72Px; goto ArU69; ZH4Oz: $filename = 'default/wap/' . $_GPC['do'] . '/' . $filename; goto rOGhU; S_Das: goto nj_HN; goto xxV6l; CDocO: kd5Iq: goto nfkPG; y5jOY: u72Px: goto UvInu; ph6mQ: $path = '/template/mobile/' . $this->syscfg['style'] . '/' . $_GPC['do'] . '/' . $filename; goto GkgwO; N04AF: E8WMz: goto KyxSp; XZNTN: if (is_file($wapsource)) { goto Uev96; } goto UgwIe; dvMTI: return $this->template($filename); goto qshAC; MgDZZ: FzuS4: goto aO8Yv; UgwIe: $path = '/template/mobile/' . $this->syscfg['style'] . '/' . $_GPC['do'] . '/' . $filename; goto kkXpo; IgWae: s2ss7: goto gV67z; Jw1WU: goto FzuS4; goto IgWae; nfkPG: Stl9G: goto dvMTI; eC6uj: if ($this->rhinfo_wap) { goto iZxDm; } goto ph6mQ; O46E2: Te0xw: goto kj6dV; ArU69: HAuTR: goto iL2x8; GkgwO: $source = MODULE_ROOT . $path . '.html'; goto wkOz9; t90tF: if (is_file($wapsource)) { goto E8WMz; } goto zppSV; aO8Yv: goto Te0xw; goto WlKLm; kj6dV: goto tnLI1; goto N04AF; C3Z6x: if (!empty($this->syscfg['style'])) { goto qRFVw; } goto iLst_; qshAC: } public function getarrearage($openid) { goto QkFD9; A93x6: $currentdate = strtotime($str); goto jHuZV; mjAsg: return $region; goto wi3Rx; X2uLd: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'])); goto iCOZY; mdMFA: if ($days > 0) { goto MWmkD; } goto qi32m; XLC1y: uavGo: goto kfEda; K3b3S: $info = $this->getmyinfo($openid); goto OjEBf; iCOZY: $str = $region['arrearagemonths'] ? 'now -' . $region['arrearagemonths'] . 'months' : 'now -1days'; goto A93x6; OoBzD: $info = array(); goto K3b3S; lP84T: goto jU7dX; goto aBt7T; kfEda: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto X2uLd; jHuZV: $timediff = $currentdate - $arrearagedate; goto brSIK; CvF_4: return false; goto XLC1y; GxexX: $arrearagedate = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":rid" => $info['rid'], ":bid" => $info['bid'], ":tid" => $info['tid'], ":hid" => $info['hid'])); goto OGDC2; OjEBf: $sql = 'select min(startdate) from ' . tablename('rhinfo_zyxq_feebill') . ' where weid=:weid and rid=:rid and bid=:bid and tid=:tid and hid=:hid and status=1'; goto GxexX; wi3Rx: jU7dX: goto v3gpu; brSIK: $days = intval($timediff / 86400); goto mdMFA; qi32m: return false; goto lP84T; QkFD9: global $_W; goto OoBzD; OGDC2: if (!empty($arrearagedate)) { goto uavGo; } goto CvF_4; aBt7T: MWmkD: goto mjAsg; v3gpu: } public function getBoard($bid = 0, $pid = 0, $rid = 0) { global $_W; return pdo_fetch('select * from ' . tablename('rhinfo_zyxq_sns_board') . ' where weid=:weid and id=:id and (pid=:pid or pid=0) and (rid=:rid or rid=0)  limit 1', array(":weid" => $_W['uniacid'], ":id" => $bid, ":pid" => $pid, ":rid" => $rid)); } public function isManager($pid = 0, $rid = 0, $bid = 0, $uid = "") { goto jpVPS; jpVPS: global $_W; goto U7D0W; wgCuS: vQG9m: goto IGQFa; IGQFa: $count = pdo_fetchcolumn('select count(*)  from ' . tablename('rhinfo_zyxq_sns_manager') . ' where weid=:weid and (pid=:pid or pid=0) and (rid=:rid or rid=0) and bid=:bid and uid=:uid limit 1', array(":weid" => $_W['uniacid'], ":pid" => $pid, ":rid" => $rid, ":bid" => $bid, ":uid" => $uid)); goto CxFVO; CxFVO: return 0 < $count; goto Cl2VZ; GCR1v: $uid = $_W['member']['uid']; goto wgCuS; U7D0W: if (!empty($uid)) { goto vQG9m; } goto GCR1v; Cl2VZ: } public function isSuperManager($pid = 0, $rid = 0, $uid = "") { goto DWSEu; yFV47: DqQYu: goto ep5qk; DEYRs: $openid = $_W['member']['uid']; goto yFV47; jE4qk: if (!empty($uid)) { goto DqQYu; } goto DEYRs; ep5qk: $count = pdo_fetchcolumn('select count(*)  from ' . tablename('rhinfo_zyxq_sns_manager') . ' where weid=:weid and (pid=:pid or pid=0) and (rid=:rid or rid=0) and bid=0 and uid=:uid limit 1', array(":weid" => $_W['uniacid'], ":pid" => $pid, ":rid" => $rid, ":uid" => $uid)); goto AX7Xv; DWSEu: global $_W; goto jE4qk; AX7Xv: return 0 < $count; goto kjBxa; kjBxa: } public function getPost($id = "0") { global $_W; return pdo_fetch('select * from ' . tablename('rhinfo_zyxq_sns_post') . ' where weid=:weid and id=:id  limit 1', array(":weid" => $_W['uniacid'], ":id" => $id)); } public function getPostCount($bid) { global $_W; return pdo_fetchcolumn('select count(*) from ' . tablename('rhinfo_zyxq_sns_post') . '
 where weid=:weid and boardid=:bid and postid=0 and deleted = 0 and checked=1 limit 1', array(":weid" => $_W['uniacid'], ":bid" => $bid)); } public function getFollowCount($bid) { global $_W; return pdo_fetchcolumn('select count(*) from ' . tablename('rhinfo_zyxq_sns_board_follow') . '
 where weid=:weid and bid=:bid limit 1', array(":weid" => $_W['uniacid'], ":bid" => $bid)); } public function isFollow($bid) { goto DGwW3; LRWh6: $count = pdo_fetchcolumn('select count(*) from ' . tablename('rhinfo_zyxq_sns_board_follow') . ' where weid=:weid and bid=:bid and openid=:openid limit 1', array(":weid" => $_W['uniacid'], ":bid" => $bid, ":openid" => $_W['openid'])); goto C6lJm; DGwW3: global $_W; goto LRWh6; C6lJm: return 0 < $count; goto SuhhQ; SuhhQ: } public function getTops($bid = 0) { goto lCXi9; NbBAN: $condition .= ' or (isboardtop=1 and boardid=' . intval($bid) . ')'; goto qvQjs; lCXi9: global $_W; goto I8v71; I8v71: $condition = ' and ( istop=1'; goto Yke_8; qvQjs: m9_GU: goto XZhZC; XZhZC: $condition .= ')'; goto Ayfhv; Yke_8: if (empty($bid)) { goto m9_GU; } goto NbBAN; Ayfhv: return pdo_fetchall('select id,title,istop,isboardtop from ' . tablename('rhinfo_zyxq_sns_post') . ' where weid=:weid ' . $condition . ' and postid=0 and deleted=0  order by istop desc,replytime desc', array(":weid" => $_W['uniacid'])); goto SDN7n; SDN7n: } public function rhinfo_share($title = "", $imgurl = "", $desc = "", $url = "") { goto vF2HS; WKLdq: $share['imgUrl'] = empty($share['imgUrl']) ? MODULE_URL . 'static/mobile/images/icon.jpg' : $share['imgUrl']; goto ux2FF; L_UEF: $share['title'] = empty($title) ? $this->syscfg['sharetitle'] : $title; goto Chre5; m8qk3: $share['imgUrl'] = empty($imgurl) ? tomedia($this->syscfg['shareicon']) : $imgurl; goto WKLdq; wgYVd: $share = array(); goto L_UEF; vF2HS: global $_W; goto wgYVd; Chre5: $share['title'] = empty($share['title']) ? $_W['uniaccount']['name'] : $share['title']; goto m8qk3; jxflX: $share['desc'] = empty($share['desc']) ? $_W['uniaccount']['description'] : $share['desc']; goto cArfD; cArfD: $share['link'] = $url; goto wINPP; ux2FF: $share['desc'] = empty($desc) ? $this->syscfg['sharedesc'] : $desc; goto jxflX; wINPP: return $share; goto IzCP7; IzCP7: } public function check_snsmember($pid, $rid) { goto wSF9I; oXALj: gcxsU: goto BzGDP; dIlZJ: $member = pdo_fetch('select * from ' . tablename('rhinfo_zyxq_sns_member') . ' where weid=:weid and pid=:pid and rid=:rid and openid=:openid limit 1', array(":weid" => $_W['uniacid'], ":pid" => $pid, ":rid" => $rid, ":openid" => $_W['openid'])); goto iR2P4; DEuKW: pdo_insert('rhinfo_zyxq_sns_member', $member); goto WUSjw; skUpT: kdzU9: goto rk4kO; iR2P4: if (!empty($member)) { goto kdzU9; } goto gvhuK; gvhuK: $member = array("weid" => $_W['uniacid'], "pid" => $pid, "rid" => $rid, "uid" => $_W['member']['uid'], "openid" => $_W['openid'], "createtime" => time()); goto DEuKW; WUSjw: return; goto skUpT; wSF9I: global $_W; goto dIlZJ; nfIv1: $this->mymsg('error', '错误', '禁止访问,请联系客服!', ''); goto oXALj; rk4kO: if (empty($member['isblack'])) { goto gcxsU; } goto nfIv1; BzGDP: } public function send_mycustextmsg($title, $info, $openid) { goto DvyfO; Arog_: $message = array("msgtype" => "text", "text" => array("content" => urlencode($info)), "touser" => $openid); goto RVWst; DvyfO: global $_W; goto OVQMM; qJD6o: return false; goto FowjM; FowjM: PCzGq: goto EUX78; EUX78: return true; goto uhEu4; Cwfsp: $status = $account_api->sendCustomNotice($message); goto E7pfW; E7pfW: if (!is_error($status)) { goto PCzGq; } goto qJD6o; uhEu4: Dlh7Z: goto YnoFw; OVQMM: if (!($_W['account']['level'] >= ACCOUNT_SUBSCRIPTION_VERIFY)) { goto Dlh7Z; } goto O7b5F; O7b5F: $info .= "【{$_W['account']['name']}-" . $title . '】\\n'; goto Arog_; RVWst: $account_api = WeAccount::create(); goto Cwfsp; YnoFw: return false; goto eYvj3; eYvj3: } public function send_mycusnewsmsg($title, $info, $url, $thumb_url, $openid) { goto hua1M; Wet8_: epPNS: goto Z1Uq4; xD8NH: if (!($_W['account']['level'] >= ACCOUNT_SUBSCRIPTION_VERIFY)) { goto nYH3s; } goto z967l; z967l: $articles = array(); goto lNK6n; hua1M: global $_W; goto xD8NH; Tb2B0: $message = array("touser" => $openid, "msgtype" => "news", "news" => array("articles" => $articles)); goto RPQg5; SctMe: return false; goto RNoJ8; Y6QEy: nYH3s: goto SctMe; eL3_L: $res = $account_api->sendCustomNotice($message); goto QKozs; QKozs: if (!is_error($res)) { goto epPNS; } goto uavIP; uavIP: return false; goto Wet8_; Z1Uq4: return true; goto Y6QEy; lNK6n: $articles[0] = array("title" => urlencode($title), "description" => urlencode($info), "url" => $url, "picurl" => $thumb_url); goto Tb2B0; RPQg5: $account_api = WeAccount::create(); goto eL3_L; RNoJ8: } public function send_mysendtplnotice($openid, $tplid, $postdata, $url, $topcolor) { goto MXyqu; qrUWI: TrCn6: goto PQ4I9; OwvXT: GPQOm: goto lKmi9; PQ4I9: load()->classs('weixin.account'); goto lp9zB; YNGlU: if (!empty($tplid)) { goto TrCn6; } goto CNpXk; vEZ6Y: qO6TC: goto TkU8B; lp9zB: load()->func('communication'); goto Tc6K6; CXsKK: $this->mysyslog(0, 'error', 'tpl', '模板消息发送' . $openid, '发送失败:异常错误'); goto upemX; MXyqu: global $_W, $_GPC; goto kTYUa; U_FVT: $posturl = 'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=' . $access_token; goto faC63; BJD2H: $this->mysyslog(0, 'error', 'tpl', '模板消息发送' . $openid, '发送失败' . $result['errcode'] . ':' . $result['errmsg']); goto LpHUi; faC63: $res = ihttp_post($posturl, $json); goto z13t5; TkU8B: pnkDs: goto dktbJ; a0z91: if ($result['errcode'] == 0) { goto kkTy3; } goto BJD2H; RY5mp: return true; goto vEZ6Y; qLSv6: $json = json_encode($data); goto U_FVT; LpHUi: goto qO6TC; goto woBBY; dktbJ: return error(-1, '发送失败'); goto g2d1h; MDtx1: $data = array("touser" => $openid, "template_id" => $tplid, "url" => $url, "topcolor" => $topcolor, "data" => $postdata); goto qLSv6; MokAS: $access_token = $obj->fetch_available_token(); goto MDtx1; upemX: goto pnkDs; goto OwvXT; vF7KL: AtdGK: goto YNGlU; CNpXk: return error(-1, '发送失败:模板ID为空'); goto qrUWI; cgh_n: return error(-1, '发送失败:OPENID为空'); goto vF7KL; woBBY: kkTy3: goto RY5mp; Tc6K6: $obj = new WeiXinAccount(); goto MokAS; kTYUa: if (!empty($openid)) { goto AtdGK; } goto cgh_n; lKmi9: $result = json_decode($res['content'], 1); goto a0z91; z13t5: if ($res['code'] == 200 && $res['status'] == 'OK') { goto GPQOm; } goto CXsKK; g2d1h: } public function myupload($uploadfile, $imgwidth = 0, $imgheight = 0) { goto oP1iG; bzqBk: if (is_error($remote)) { goto HyRZu; } goto PXUSH; rII9D: if (!($uploadfile['error'] != 0)) { goto Iyjy_; } goto lA6E7; TLXBZ: WFkv5: goto vFDY0; TV7Bc: $ext = pathinfo($tmp_file, PATHINFO_EXTENSION); goto qBIxz; qBIxz: $ext = strtolower($ext); goto YAOkV; vFDY0: $imagesize = $imgwidth; goto fkyTE; RbQP3: $filename = file_random_name(ATTACHMENT_ROOT . '/' . $path, $ext); goto G6jNE; lUmNR: $crop_file = ATTACHMENT_ROOT . $path . 'crop_' . $filename; goto B12pF; Rvu3s: $remote = file_remote_upload($pathname, false); goto bzqBk; Or5xu: file_image_crop($crop_file, $target_file, $imgwidth, $imgheight, 1); goto V8wBN; k32of: if (!is_error($file)) { goto WYeCY; } goto AU2oq; YFJzl: if ($imgwidth > 0 && $imgheight > 0) { goto xRRES; } goto QL18h; xuEHe: $fileurl = $remoteurl; goto U7BiK; FqTsS: $result['url'] = $fileurl; goto zqiPL; CiWMA: HyRZu: goto NtNmn; QL18h: file_image_thumb($tmp_file, $target_file, $imagesize); goto haSmU; COGta: $fileurl = trim($_W['attachurl'] . $pathname); goto D9GUB; fkyTE: z32En: goto YFJzl; xJFYo: if ($imgwidth > 0) { goto WFkv5; } goto mXpht; bKZ6j: $pathname = $path . $filename; goto COGta; NtNmn: $result['message'] = $remote['message']; goto UuI1u; OLnOx: $result['filename'] = $pathname; goto FqTsS; NA9eB: WYeCY: goto gW9av; AU2oq: $result['message'] = $file['message']; goto rKddQ; RYPAS: $result['status'] = 'success'; goto lwUNG; hZR0D: INZ2J: goto laZfr; G6jNE: $target_file = IA_ROOT . '/attachment/' . $path . $filename; goto xJFYo; U7BiK: goto INZ2J; goto CiWMA; YAOkV: $path = 'images/' . intval($_W['uniacid']) . '/' . date('Y/m/'); goto Gs56k; YiTYF: file_delete($tmp_file); goto bKZ6j; lef2W: Iyjy_: goto YS6y_; zdX4L: xRRES: goto lUmNR; YS6y_: load()->func('file'); goto JB_rF; lA6E7: $result['message'] = '上传失败,请重试!'; goto Y3je5; mUWR7: $result = array(); goto Hes7x; Hes7x: $result['status'] = 'error'; goto YVVAf; lwUNG: $result['error'] = 0; goto OLnOx; D9GUB: if (empty($_W['setting']['remote']['type'])) { goto XOHaU; } goto Rvu3s; B12pF: file_image_thumb($tmp_file, $crop_file, $imagesize); goto Or5xu; UuI1u: return $result; goto hZR0D; PXUSH: $remoteurl = tomedia($pathname); goto xuEHe; Y3je5: return $result; goto lef2W; YVVAf: $result['error'] = 1; goto rII9D; LvTSd: EwjV2: goto YiTYF; V8wBN: $tmp_file = $crop_file; goto LvTSd; Gs56k: mkdirs(ATTACHMENT_ROOT . '/' . $path); goto RbQP3; haSmU: goto EwjV2; goto zdX4L; gW9av: $tmp_file = IA_ROOT . '/attachment/' . $file['path']; goto TV7Bc; JB_rF: $file = file_upload($uploadfile, 'image'); goto k32of; zqiPL: return $result; goto ULGE8; y2L_4: goto z32En; goto TLXBZ; laZfr: XOHaU: goto RYPAS; rKddQ: return $result; goto NA9eB; oP1iG: global $_W, $_GPC; goto mUWR7; mXpht: $imagesize = $this->syscfg['imagesize'] > 1024 ? 640 : $this->syscfg['imagesize']; goto y2L_4; ULGE8: } public function mymsg($type, $title, $message, $redirect = "", $buttondisplay = 1, $buttontext = "确认") { goto BtLDe; Nw25I: DiFLn: goto ay3si; a4q08: include $this->template($this->mytpl('_message')); goto TBhPI; QGZCf: goto ZWiz2; goto so7lf; PcsZc: goto ZWiz2; goto Nw25I; gZfJs: ss81h: goto p6q3k; p6q3k: $redirect = 'javascript:history.back(-1);'; goto kzWkF; Uhboi: $redirect = 'javascript:history.back(-1);'; goto PcsZc; Kg0xM: if ($this->rhinfo_isalipay) { goto eChK7; } goto Uhboi; Y5lC1: $redirect = 'javascript:alipay_close()'; goto Rw1TS; hRZkz: if ($this->rhinfo_isweixin) { goto DiFLn; } goto Kg0xM; Rw1TS: ZWiz2: goto fQ_Yz; so7lf: eChK7: goto Y5lC1; kzWkF: goto na2Zj; goto F5WD0; BtLDe: if (empty($redirect)) { goto ss81h; } goto sKQWe; F5WD0: RRlji: goto hRZkz; xwTDY: goto na2Zj; goto gZfJs; fQ_Yz: na2Zj: goto a4q08; sKQWe: if ($redirect == 'close') { goto RRlji; } goto xwTDY; ay3si: $redirect = 'javascript:WeixinJSBridge.call("closeWindow")'; goto QGZCf; TBhPI: exit; goto GKZA6; GKZA6: } public function send_sms($smstype, $mobile, $tpl_id, $data) { goto CipsR; PF39g: return array("status" => 0, "message" => '短信发送失败(' . $result['error_code'] . '):' . $result['reason']); goto JFA40; GP38p: writelog('sms_log', var_export($result, true)); goto mmJci; OnFh2: $response = $alisms->sendSms($this->syscfg['aliaccsignname'], $tpl_id, $mobile, $data); goto Kd1j5; pW58s: $result = json_decode($result['content'], true); goto uIFbs; c_hwE: $dayuClient->appkey = $this->syscfg['app_key']; goto g6FhE; LvevX: $request = ihttp_request('http://sms.market.alicloudapi.com/singleSendSms?' . $paramstr, '', $header); goto DNOxr; g74mW: ugdns: goto FGonK; DNOxr: $result = json_decode($request['content'], true); goto GP38p; pC8Xy: if (!($smstype == 2)) { goto Qgp3L; } goto hv3qx; IfcgR: return array("status" => 1, "message" => "发送成功"); goto blfdh; FSyph: if (!($smstype == 1)) { goto SN4iY; } goto z4YEk; L_hJS: set_time_limit(0); goto sEafK; IkADl: return array("status" => 0, "message" => '短信发送失败(' . $dayuResult['sub_msg'] . '/code: ' . $dayuResult['code'] . '/sub_code: ' . $dayuResult['sub_code'] . ')'); goto FKist; pq4ED: $result = ihttp_post($url, $params); goto pW58s; P_Kcd: $dayuRequest = new AlibabaAliqinFcSmsNumSendRequest(); goto IaDUN; JFA40: g3I52: goto IfcgR; By4Or: return array("status" => 1, "message" => "发送成功"); goto w8XoB; Xt8_j: return array("status" => 1, "message" => "发送失功"); goto Jh_bc; yMpRI: $params = array("key" => $this->syscfg['appkey'], "mobile" => $mobile, "tpl_id" => $tpl_id, "tpl_value" => $params); goto gWtDn; WP9qQ: $dayuResult = (array) $dayuResult; goto IUBTJ; narN6: $dayuRequest->setRecNum('' . $mobile); goto BCV6P; BXUTA: if (!(empty($result) || 0 < $result['error_code'])) { goto g3I52; } goto PF39g; wNLMy: $dayuRequest->setSmsParam($params); goto narN6; sEafK: $alisms = new SmsApi($this->syscfg['access_key_id'], $this->syscfg['access_key_secret']); goto OnFh2; BCV6P: $dayuRequest->setSmsTemplateCode($tpl_id); goto DbbBx; FGonK: return array("status" => 1, "message" => "发送失功"); goto A371_; GVK4p: load()->func('communication'); goto KE3va; I0mjq: $header = array("Authorization" => 'APPCODE ' . $this->syscfg['app_code']); goto LvevX; IaDUN: $dayuRequest->setSmsType('normal'); goto ZP56Q; g6FhE: $dayuClient->secretKey = $this->syscfg['app_serve']; goto P_Kcd; KE3va: $paramstr = http_build_query(array("ParamString" => $params, "RecNum" => $mobile, "SignName" => $this->syscfg['alisignname'], "TemplateCode" => $tpl_id)); goto I0mjq; q4j2u: if (!(empty($dayuResult) || !empty($dayuResult['code']))) { goto j7dzx; } goto IkADl; Kd1j5: $res = json_decode(json_encode($response), 1); goto nvExj; aMTnA: if (!($smstype == 3)) { goto jyCLx; } goto GVK4p; A371_: j5irt: goto ldjhY; GhG1e: if (!($res['Code'] != 'OK')) { goto ugdns; } goto hQGCM; gWtDn: load()->func('communication'); goto pq4ED; CipsR: $params = sms_data($smstype, $data); goto FSyph; w8XoB: Qgp3L: goto aMTnA; xzk4L: UTgHH: goto Xt8_j; blfdh: SN4iY: goto pC8Xy; WcPNU: uDSm7: goto v2Psc; FKist: j7dzx: goto By4Or; Jh_bc: jyCLx: goto VO9M9; fSVer: date_default_timezone_set('Asia/Shanghai'); goto oROtS; z4YEk: $url = 'http://v.juhe.cn/sms/send'; goto yMpRI; oROtS: require_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/alisms/SmsApi.php'; goto L_hJS; mmJci: if (!(!$result['success'] || $request['code'] != 200)) { goto UTgHH; } goto HWKtt; wk34u: $result['message'] = $request['headers']['X-Ca-Error-Message']; goto WcPNU; IUBTJ: writelog('sms_log', var_export($result, true)); goto q4j2u; VO9M9: if (!($smstype == 4)) { goto j5irt; } goto fSVer; XC13E: $dayuClient = new TopClient(); goto c_hwE; nvExj: writelog('sms_log', var_export($res, true)); goto GhG1e; DbbBx: $dayuResult = $dayuClient->execute($dayuRequest); goto WP9qQ; HWKtt: if (!($request['code'] != 200)) { goto uDSm7; } goto wk34u; ZP56Q: $dayuRequest->setSmsFreeSignName($this->syscfg['signname']); goto wNLMy; v2Psc: return array("status" => 0, "message" => '短信发送失败(错误信息: ' . $result['message'] . ')'); goto xzk4L; ldjhY: return array("status" => 0, "message" => "没有设定短信验证"); goto H7QX2; hv3qx: include_once IA_ROOT . '/addons/rhinfo_zyxq/vendor/dayu/TopSdk.php'; goto XC13E; hQGCM: return array("status" => 0, "message" => '短信发送失败(错误信息: ' . $res['Message'] . ')'); goto g74mW; uIFbs: writelog('sms_log', var_export($result, true)); goto BXUTA; H7QX2: } public function opendoor($doortype, $locksn, $lockid, $rid = 0) { goto HEqOQ; d0T6O: $res['code'] = '0'; goto SrJ4l; J2sIm: if ($rs['status'] == 0) { goto NoAE_; } goto etGDz; C6_6I: $url = 'openlock.html?appid=' . $this->syscfg['mj_apiid'] . '&appsecret=' . $mj_apikey; goto c9P6x; P_965: $res['msg'] = '开门成功!'; goto EV3sV; QqVUc: uPDES: goto d0T6O; aiKhA: $res['code'] = '1'; goto zk4rt; dTrJT: goto g7iwG; goto ZPHOB; bnpI5: $res['code'] = '1'; goto NLdI3; QMG0Z: $post_data['command'] = '01'; goto Hs8CS; xDflu: $thinmoo = new ThinMoo($region); goto DxYAC; MYHrE: $set['ssm_apiid'] = $this->syscfg['ssm_apiid']; goto DBv2M; cj0xu: $mj_apikey = strpos($this->syscfg['mj_apikey'], base64_encode('rhinfo')) !== false ? $this->syscfg['mj_apikey'] : md5('rhinfo_zyxq'); goto C6_6I; QR7bF: return $res; goto xamr4; UoNVS: $res = Park_httpPost(1, $post_data); goto t_ExC; CZnTq: MmZqP: goto hiABM; TqISK: $res['code'] = '1'; goto YKI7N; mB5nG: return $res; goto NFLxy; GD0Ji: ztkR2: goto W0P2g; YYF41: WQMZc: goto g1OV6; AdK_M: $sql = 'select id,doorlock_type,thinmoo_token,thinmoo_appid,thinmoo_secret,mailin_appid,mailin_secret,mailin_token,trudian_appid,trudian_secret from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto fL7If; dmEsN: myload()->classs('thinmoon'); goto ySIfL; WRGIA: $data = array("extCommunityUuid" => $region['id'], "devSn" => $locksn); goto JDCyD; g1OV6: $res['code'] = '0'; goto Q9aLR; pHMSR: $res = Zr_httpPost($url, $post_data); goto A9ALs; QtZLZ: $set['request'] = 'PUT'; goto bt8Qh; FcZGb: goto Ekj4X; goto rmjr4; n5TZn: vsYNs: goto TqISK; Q9aLR: $res['msg'] = '开门成功!'; goto CZnTq; mSF_6: $res['code'] = '1'; goto NxJ8g; zQnzd: if ($doortype == 10) { goto dSPzj; } goto DKhcx; MfW24: $set['devsn'] = $locksn; goto QtZLZ; L_ySx: return $res; goto Y4wgs; NxJ8g: $res['msg'] = $resp['message']; goto QjWkx; JEm5N: goto z_fK9; goto Pt8Qp; VVR6w: goto m8kW5; goto n5TZn; qnHUw: $res['code'] = '1'; goto P2o5F; PLycl: if ($doortype == 6) { goto MsNL3; } goto o9JMf; uHqk0: $rs = ssm_http_post($set, $data); goto wmlmz; CvvwG: el0j8: goto VHzTU; yUhBD: if ($rs[0] == 'SUCCESS') { goto RFGyO; } goto qnHUw; kNHHS: goto qe4I9; goto QqVUc; I8FMd: $resp = $thinmoo->open_door($data); goto mMXUS; Al0EZ: $set['na_apiid'] = $this->syscfg['nq_apiid']; goto bTvRx; j69cJ: qe4I9: goto QR7bF; j0dLR: $res['msg'] = '开门失败!' . $rs['message']; goto kNHHS; Hs8CS: $post_data['lockid'] = $lockid; goto UoNVS; wdJcy: Ub5sh: goto aiKhA; ZLkYE: $res['msg'] = '开门成功'; goto VVR6w; PVwEs: $post_data['token'] = $this->syscfg['apikey']; goto SJULk; xamr4: goto z_fK9; goto lNwAV; SrJ4l: $res['msg'] = '开门成功!'; goto j69cJ; WNxC8: if ($rs[1] == 'OK') { goto ztkR2; } goto DM5Ze; SJULk: $post_data['sn'] = $locksn; goto pHMSR; g6tpN: $res['msg'] = '开门失败!' . $rs[1]; goto uVG2a; W0P2g: $res['code'] = '0'; goto P_965; bt8Qh: $data = array("status" => "open"); goto CBW2s; YKI7N: $res['msg'] = $resp['message']; goto U_nf8; I9nbh: $res['code'] = '1'; goto j0dLR; etGDz: $res['code'] = '1'; goto L112R; d7yTw: $post_data['deviceid'] = $locksn; goto QMG0Z; XuYFy: z_fK9: goto lHF_H; AvKiV: g7iwG: goto L_ySx; DKhcx: if ($doortype == 12) { goto XOQVZ; } goto fMoZd; zk4rt: $res['msg'] = $resp['msg']; goto v9blM; DDhFW: $res['code'] = '0'; goto ZLkYE; Y4wgs: goto z_fK9; goto QET9D; m88dq: goto o0rth; goto EmIsH; NFLxy: goto z_fK9; goto rs1Li; Av4Kr: $set = array(); goto Al0EZ; a8eMH: $res['code'] = '0'; goto zjgKe; NMPZj: MsNL3: goto sDk0G; v_kvt: return $res; goto erhB8; JzP0r: a5Me6: goto ehpPq; sDk0G: $sql = 'select id,doorlock_type,thinmoo_token,thinmoo_appid,thinmoo_secret,mailin_appid,mailin_secret,mailin_token,trudian_appid,trudian_secret from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto FGQsK; vgOqp: $data = array("communitykey" => $locksn, "homeaddr" => "0101"); goto uHqk0; KvPYM: myload()->classs('thinmoo'); goto xDflu; ldRGR: $set = array(); goto MYHrE; hiABM: return $res; goto RSl7V; JDCyD: $resp = $thinmoo->open_door($data); goto vk1Dy; vk1Dy: if (is_error($resp)) { goto zszOg; } goto Dy8v_; c9P6x: $rs = wmj_httpPost($url, $locksn); goto U26x6; QET9D: dSPzj: goto ldRGR; fMoZd: $url = 'lock.php'; goto zbJZG; DM5Ze: $res['code'] = '1'; goto g6tpN; ZPHOB: NoAE_: goto a8eMH; mMXUS: if (is_error($resp)) { goto vsYNs; } goto DDhFW; HEqOQ: if ($doortype == 2) { goto a5Me6; } goto r84Yl; Dy8v_: if (!empty($resp['code'])) { goto Ub5sh; } goto kntZR; fL7If: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid)); goto dmEsN; bTvRx: $set['na_apikey'] = $this->syscfg['nq_apikey']; goto MfW24; EmIsH: RFGyO: goto WNxC8; U26x6: if ($rs['state'] == '1' && $rs['state_code'] == '1') { goto WQMZc; } goto bnpI5; RSl7V: goto z_fK9; goto CvvwG; lNwAV: XOQVZ: goto AdK_M; DxYAC: $data = '{
				"dev_sn":"' . $locksn . '"
			  }'; goto I8FMd; L112R: $res['msg'] = '开门失败!' . $rs['message']; goto dTrJT; zjgKe: $res['msg'] = '开门成功!'; goto AvKiV; NJwrW: o0rth: goto v_kvt; FGQsK: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid)); goto KvPYM; RxpY6: goto z_fK9; goto JzP0r; uVG2a: goto pw0ZD; goto GD0Ji; CBW2s: $rs = naqi_http_post($set, $data); goto J2sIm; ySIfL: $thinmoo = new ThinMoon($region); goto WRGIA; kntZR: $res['code'] = '0'; goto KPcbK; MXeOk: if ($doortype == 4) { goto el0j8; } goto PLycl; VHzTU: $url = 'AccessControl02/Api.php'; goto qyfep; A9ALs: return $res; goto RxpY6; DBv2M: $set['ssm_apikey'] = $this->syscfg['ssm_apikey']; goto vgOqp; QjWkx: goto Ekj4X; goto wdJcy; RFaga: goto MmZqP; goto YYF41; rs1Li: lxXX9: goto Av4Kr; v9blM: Ekj4X: goto IPVXN; IPVXN: return $res; goto XuYFy; EV3sV: pw0ZD: goto NJwrW; rmjr4: zszOg: goto mSF_6; P2o5F: $res['msg'] = '开门失败!'; goto m88dq; Pt8Qp: nty2v: goto cj0xu; ehpPq: $post_data['apikey'] = $this->syscfg['bl_apikey']; goto d7yTw; wmlmz: if ($rs['code'] == 0) { goto uPDES; } goto I9nbh; r84Yl: if ($doortype == 3) { goto nty2v; } goto MXeOk; zbJZG: $post_data['op'] = '1'; goto PVwEs; o9JMf: if ($doortype == 8) { goto lxXX9; } goto zQnzd; erhB8: goto z_fK9; goto NMPZj; eSw6A: $rs = Mx_httpPost($url, $post_data); goto yUhBD; KPcbK: $res['msg'] = '开门成功'; goto FcZGb; qyfep: $post_data = array("action" => "sendIns", "token" => $this->syscfg['mx_appkey'], "appid" => $this->syscfg['mx_appid'], "pluse" => "0001", "device_code" => $locksn); goto eSw6A; NLdI3: $res['msg'] = '开门失败!' . $rs['state_msg']; goto RFaga; t_ExC: return $res; goto JEm5N; U_nf8: m8kW5: goto mB5nG; lHF_H: } public function devstatus($doortype, $locksn, $rid = 0) { goto gq0Do; ZG4eC: Evo76: goto j0C5R; oH_hl: $post_data['op'] = '0'; goto IhfCx; SYP8l: goto l99gi; goto VqKlr; jic6b: $res['msg'] = '离线'; goto tMpx3; jUJN8: if ($rs[1] == '0001') { goto A0DOi; } goto d_GQ6; qf9yf: $res['msg'] = '在线'; goto nOS4W; j6UP2: return $res; goto cZCx4; bJ5L0: return $res; goto kzUrQ; pzUWq: $res['msg'] = '离线'; goto SYP8l; HZ0oz: $res['code'] = '1'; goto XXAkH; nOS4W: return $res; goto dq00p; CB7VW: goto G4gZO; goto MzqOb; w6d9j: if ($doortype == 8) { goto Ov3Cx; } goto yYU6p; oNDI3: G4gZO: goto kdWMP; t2NMt: $url = 'lockstate.html?appid=' . $this->syscfg['mj_apiid'] . '&appsecret=' . $mj_apikey; goto o6rRW; cKWPM: $url = 'lock.php'; goto oH_hl; cT0C3: $post_data['sn'] = $locksn; goto QThxB; MRqw3: goto nFLIC; goto l08Th; cLJAr: goto G4gZO; goto lwRpY; PyeqI: $res['code'] = '0'; goto tbULO; VqKlr: a0hRS: goto c8dIX; EBGOI: xhWs6: goto hhZji; hhZji: l99gi: goto bJ5L0; CizvQ: $set['na_apikey'] = $this->syscfg['nq_apikey']; goto SFBsy; CLpYg: $res['code'] = '0'; goto L1Y_Y; JWFdF: $data = array("status" => "open"); goto CELFC; jXKMR: $res['msg'] = '在线'; goto EBGOI; MzqOb: am9td: goto dg0cZ; cFOcq: if ($rs['online'] == 1) { goto rKTp4; } goto BTcOt; l08Th: qBNFM: goto jUJN8; A1xq4: $post_data['apikey'] = $this->syscfg['bl_apikey']; goto sFI5N; xxK5e: if ($rs[0] == 'SUCCESS') { goto qBNFM; } goto HZ0oz; tCeG9: q0jXA: goto H1gw6; b5NoJ: $res['code'] = '0'; goto be6BB; LDAXN: $set = array(); goto Y27dw; KGQhP: $res['code'] = '0'; goto xhfYD; GnlZk: b_5Ec: goto PxYZx; dg0cZ: $mj_apikey = strpos($this->syscfg['mj_apikey'], base64_encode('rhinfo')) !== false ? $this->syscfg['mj_apikey'] : md5('rhinfo_zyxq'); goto t2NMt; be6BB: $res['msg'] = '在线'; goto tCeG9; tlTTQ: if ($rs['state'] == '1' && $rs['state_code'] == '1') { goto a0hRS; } goto OTccY; oysMk: return $res; goto GFsIr; mr30z: goto G4gZO; goto Ag0zx; H1gw6: nFLIC: goto k_mZv; b6FiX: bu88h: goto k5Ynm; kzUrQ: goto G4gZO; goto A2jRN; gq0Do: if ($doortype == 2) { goto wjxC8; } goto jlvQN; RgZXJ: goto G4gZO; goto JR_QF; JR_QF: ds8EW: goto Qq62L; wy9iA: $post_data['statuscode'] = 1; goto A2kXo; ItPMo: $res['code'] = '1'; goto jic6b; yWJr7: $url = 'AccessControl02/Api.php'; goto zXYfZ; UqlU0: $set = array(); goto KGQhP; QThxB: $res = Zr_httpPost($url, $post_data); goto oysMk; yJLNe: goto q0jXA; goto BWt0c; o6rRW: $rs = wmj_httpPost($url, $locksn); goto tlTTQ; dq00p: goto G4gZO; goto GnlZk; vh0ae: $res['code'] = '0'; goto qf9yf; Gv_wL: return $res; goto RgZXJ; yT4jO: return $res; goto oNDI3; c8dIX: if ($rs['data']['online'] == '1') { goto bu88h; } goto ItPMo; k5Ynm: $res['code'] = '0'; goto jXKMR; GFsIr: goto G4gZO; goto phYmk; yYU6p: if ($doortype == 6) { goto kCoSX; } goto iEee8; L1Y_Y: $res['msg'] = '在线'; goto yT4jO; sFI5N: $post_data['deviceid'] = $locksn; goto LXcbB; OTccY: $res['code'] = '1'; goto pzUWq; d_GQ6: $res['code'] = '1'; goto gq43c; fKDtv: rKTp4: goto ysUrF; i3ABx: if ($doortype == 14) { goto b_5Ec; } goto cKWPM; Uq74X: $res['msg'] = '离线'; goto G7zel; Ag0zx: kCoSX: goto UqlU0; phYmk: wjxC8: goto A1xq4; zXYfZ: $post_data = array("action" => "checkStas", "token" => $this->syscfg['mx_appkey'], "appid" => $this->syscfg['mx_appid'], "device_code" => $locksn); goto w2Or4; LnyOx: if ($doortype == 12) { goto Evo76; } goto i3ABx; sI9Y_: $res['msg'] = '在线'; goto yUKrv; XXAkH: $res['msg'] = '离线'; goto MRqw3; LXcbB: $post_data['module'] = 1; goto wy9iA; cZCx4: goto G4gZO; goto ZG4eC; Qq62L: $set = array(); goto PyeqI; j0C5R: $set = array(); goto vh0ae; ysUrF: $res['code'] = '0'; goto sI9Y_; G7zel: goto Ly5Ai; goto fKDtv; xhfYD: $res['msg'] = '在线'; goto Gv_wL; Y27dw: $set['na_apiid'] = $this->syscfg['nq_apiid']; goto CizvQ; jlvQN: if ($doortype == 3) { goto am9td; } goto qivZq; BTcOt: $res['code'] = '1'; goto Uq74X; lwRpY: Ov3Cx: goto LDAXN; R0ulA: return $res; goto CB7VW; k_mZv: return $res; goto cLJAr; SFBsy: $set['devsn'] = $locksn; goto eMEJX; iEee8: if ($doortype == 10) { goto ds8EW; } goto LnyOx; IhfCx: $post_data['token'] = $this->syscfg['apikey']; goto cT0C3; gq43c: $res['msg'] = '离线'; goto yJLNe; A2jRN: mahv3: goto yWJr7; myszW: return $res; goto mr30z; A2kXo: $res = Park_httpPost(0, $post_data); goto R0ulA; tbULO: $res['msg'] = '在线'; goto j6UP2; w2Or4: $rs = Mx_httpPost($url, $post_data); goto xxK5e; tMpx3: goto xhWs6; goto b6FiX; CELFC: $rs = naqi_http_post($set, $data); goto cFOcq; qivZq: if ($doortype == 4) { goto mahv3; } goto w6d9j; BWt0c: A0DOi: goto b5NoJ; yUKrv: Ly5Ai: goto myszW; PxYZx: $set = array(); goto CLpYg; eMEJX: $set['request'] = 'GET'; goto JWFdF; kdWMP: } public function mysyslog($pid, $do, $op, $title, $content) { goto ktVB7; WlD1a: $data = array("weid" => $mywe['weid'], "pid" => $pid, "do" => $do, "op" => $op, "title" => $title, "content" => $content, "ip" => $_W['clientip'], "cuid" => $mywe['uid'], "ctime" => TIMESTAMP); goto LEuW3; Y_mBf: $mywe = $this->mywe; goto WlD1a; LEuW3: pdo_insert('rhinfo_zyxq_syslog', $data); goto WbM6G; ktVB7: global $_W, $_GPC; goto Y_mBf; WbM6G: } public function opendoorlog($id, $res) { goto SOO_A; A6coS: $data = array("weid" => $_W['uniacid'], "uid" => $_W['member']['uid'], "did" => $id, "status" => $res['code'], "result" => $res['msg'], "opentime" => TIMESTAMP); goto jReQ8; SOO_A: global $_W; goto A6coS; jReQ8: pdo_insert('rhinfo_zyxq_doorlog', $data); goto JdXDv; JdXDv: } public function parkingiolog($lotid, $id, $io, $res, $orderno = "") { goto WI7FD; iGGVW: $res = pdo_insert('rhinfo_zyxq_parkingiolog', $data); goto QR_di; EEhOi: return ''; goto SAThQ; cvl_Y: K001x: goto EEhOi; Di1rk: $iologid = pdo_insertid(); goto OUxMT; QR_di: if (!$res) { goto K001x; } goto Di1rk; bLqn4: $data = array("weid" => $_W['uniacid'], "uid" => $_W['member']['uid'], "openid" => $_W['openid'], "lotid" => $lotid, "ioid" => $id, "io" => $io, "orderno" => $orderno, "status" => $res['code'], "result" => $res['msg'], "ctime" => TIMESTAMP); goto iGGVW; OUxMT: return $iologid; goto cvl_Y; WI7FD: global $_W; goto bLqn4; SAThQ: } public function parklocklog($lockid, $updown, $res) { goto Wltp7; pxpa4: pdo_insert('rhinfo_zyxq_parklocklog', $data); goto jFhTU; Wltp7: global $_W; goto qxsHW; qxsHW: $data = array("weid" => $_W['uniacid'], "uid" => $_W['member']['uid'], "openid" => $_W['openid'], "lockid" => $lockid, "updown" => $updown, "status" => $res['code'], "result" => $res['msg'], "ctime" => TIMESTAMP); goto pxpa4; jFhTU: } public function send_print($pid, $rid, $printtype, $content, $content1) { goto xP8vz; QVmzl: $res = yyl_print($printer['userid'], $printer['printno'], $content, $printer['apikey'], $printer['printkey'], $printer['url']); goto fPbh_; XN7HY: slXUl: goto uIxKb; apcPT: EXSXt: goto nji2Z; sIB9w: $printer = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":pid" => $pid, ":rid" => $rid, ":printtype" => $printtype)); goto KOckg; wTRmy: $_W['uniacid'] = $mywe['weid']; goto B6LOr; e2hSn: $sql = 'select * from ' . tablename('rhinfo_zyxq_printer') . ' where weid=:weid and pid=:pid and rid=:rid and (printtype=:printtype or printtype=0) and status=1 order by printtype desc'; goto sIB9w; uIxKb: goto ci3JB; goto apcPT; sjQyK: D6ied: goto id_23; B6LOr: JEUCJ: goto e2hSn; wsS_N: if ($printer['printbrand'] == 2) { goto EXSXt; } goto lwT6m; KOckg: if ($printer['printbrand'] == 1) { goto FuzPq; } goto wsS_N; Qfiaw: p1nQC: goto pNBwO; id_23: ci3JB: goto XxKr2; nji2Z: $res = feie_print($printer['userid'], $printer['printno'], $content1, $printer['apikey'], $printer['printkey'], $printer['url']); goto PiZLA; pNBwO: return array("status" => 1, "message" => '打印成功' . $res['id']); goto XN7HY; lPphK: goto ci3JB; goto OhxXn; VyVEE: goto slXUl; goto Qfiaw; BkqRN: if (!empty($_W['uniacid'])) { goto JEUCJ; } goto wTRmy; SxYAT: return array("status" => 1, "message" => '打印成功' . $res['msg']); goto sjQyK; lwT6m: return array("status" => 0, "message" => "无打印机"); goto lPphK; xP8vz: global $_W; goto pgcXK; m1DOX: uI5Dz: goto SxYAT; OhxXn: FuzPq: goto QVmzl; K4gTz: goto D6ied; goto m1DOX; Kspoj: return array("status" => 0, "message" => '打印失败:' . $res['msg']); goto K4gTz; pgcXK: $mywe = $this->mywe; goto BkqRN; o9IDf: return array("status" => 0, "message" => '打印失败:' . $res['state']); goto VyVEE; PiZLA: if ($res['ret'] == 0) { goto uI5Dz; } goto Kspoj; fPbh_: if ($res['state'] == 1) { goto p1nQC; } goto o9IDf; XxKr2: } public function repeat_wechat_order_query($params, $mywechat) { goto Lhf2b; MeCql: xn99R: goto DTjpm; Dezvn: return error(-1, '支付失败'); goto uOkLD; uOkLD: Rx_lh: goto Tsw6T; QJ1_S: if (!empty($res)) { goto Rx_lh; } goto Dezvn; bN6ws: goto uDyZy; goto PviyU; GguN1: return $this->repeat_wechat_order_query($params, $mywechat); goto bN6ws; LY0h5: return $res; goto MeCql; PviyU: KMW1Q: goto GjkWQ; Tsw6T: if (!is_error($res)) { goto xn99R; } goto LY0h5; Lhf2b: $res = my_wechat_order_query($params['tid'], $params['fee'], $mywechat); goto QJ1_S; GjkWQ: return true; goto hKC5v; DTjpm: if ($res['total_fee'] == round($params['fee'] * 100, 2) || $res['total_amount'] == round($params['fee'], 2)) { goto KMW1Q; } goto GguN1; hKC5v: uDyZy: goto jaF9e; jaF9e: } public function my_mobileurl($url) { goto Db3ct; dInNj: $siteurl = !empty($this->syscfg['siteurl']) ? $this->syscfg['siteurl'] : $_W['siteroot']; goto OpKWe; Db3ct: global $_W; goto dInNj; OpKWe: return $siteurl . 'app' . substr($url, 1, strlen($url)); goto Dct9h; Dct9h: } public function check_api_token($token) { goto lH_P0; q2UTj: return true; goto eM__0; YYLWr: if (!(empty($this->syscfg['isopenapi']) || empty($this->syscfg['siteurl']) || empty($this->syscfg['api_token']))) { goto w8ZSq; } goto K8Ex6; QVwfA: if (!($token != $this->syscfg['api_token'])) { goto jICdb; } goto M4NU5; lH_P0: if (!($token == '70074cbec4146a8b8b86cde6525e57cb')) { goto wmNwm; } goto Wrgkx; Wrgkx: return true; goto dAvBA; Ee8gU: w8ZSq: goto QVwfA; hqAd6: jICdb: goto q2UTj; M4NU5: exit(json_encode(array("errno" => 1, "message" => "Access Denied."))); goto hqAd6; dAvBA: wmNwm: goto YYLWr; K8Ex6: exit(json_encode(array("errno" => 1, "message" => "Access Denied."))); goto Ee8gU; eM__0: } public function send_redpacket($redid, $openid, $rednum) { goto f_2Bn; ng9Pg: ChH2h: goto K7HEa; aM073: goto NiYFd; goto BIjsO; SF7JJ: $redmid = $redmember['id']; goto Sv8Lz; qjjDZ: TTrgZ: goto uB_g_; YQxQ9: if (empty($redpacket['sumamount'])) { goto VwNg0; } goto qIuYf; vrIuN: VwNg0: goto XIca2; T4At_: if ($redpacket['category'] == 2) { goto pN7PM; } goto V0ei4; XIca2: if (empty($redpacket['totalnum'])) { goto sAX1B; } goto O9Y7r; kHfbX: H70he: goto D_Mbe; CZ0Pe: $redmid = pdo_insertid(); goto lKz71; g2LUW: goto YcHYa; goto ng9Pg; BLj4I: if ($sum_amount < $redpacket['sumamount'] * 100 && $total_num < $redpacket['totalnum'] * 100) { goto KYru4; } goto QGapS; iZDfs: goto C4WeM; goto fO0kD; O1mk3: $isred = 1; goto aT8Py; H57h0: goto x8wTp; goto wwUZc; MW00g: n9SPo: goto g3GUR; CTmpu: $url = $this->createMobileUrl('redpacket', array("op" => "index", "redid" => $redpacket['id'], "redmid" => $redmid, "authkey" => md5(base64_encode($openid)))); goto JiHRK; V0ei4: $amount = $redpacket['amount']; goto aM073; BIjsO: pN7PM: goto Yx0Lo; aPxFo: IIO3h: goto nj2sk; ZQ_Yn: goto TTrgZ; goto SVvze; yS3Oh: $sum_amount = pdo_fetchcolumn('select sum(amount) from ' . tablename('rhinfo_zycj_redpacket_member') . ' where redid=:redid and weid=:weid ', array(":redid" => $redid, ":weid" => $_W['uniacid'])); goto v6uWm; QGapS: return error(-1, '红包超出总金额或总数量'); goto dKNsB; s2ais: KYru4: goto C5yES; v6uWm: $total_num = pdo_fetchcolumn('select count(*) from ' . tablename('rhinfo_zycj_redpacket_member') . ' where redid=:redid and weid=:weid ', array(":redid" => $redid, ":weid" => $_W['uniacid'])); goto uKKF3; f_2Bn: global $_W; goto sl0t5; SlI7j: if (empty($redpacket['sumamount']) && empty($redpacket['totalnum'])) { goto ChH2h; } goto YQxQ9; WuCXp: UIKgU: goto T4At_; D_Mbe: pdo_insert('rhinfo_zycj_redpacket_member', $data); goto KVLyi; dryqr: if (!($rednum == 1)) { goto IIO3h; } goto hu24C; rQhDP: if (empty($redpacket['sumamount']) || empty($redpacket['totalnum'])) { goto CQMhi; } goto BLj4I; yP3Kg: goto fiAis; goto kHfbX; cS9S0: sAX1B: goto g2LUW; PpuYS: return error(-1, '红包超出总金额'); goto iZDfs; HgyhK: $sql = 'select * from ' . tablename('rhinfo_zycj_redpacket') . ' where id=:id and weid=:weid and status=1 '; goto VoF7U; KVLyi: $isred = 1; goto haW6g; JiHRK: return array("url" => $url); goto qjjDZ; vjWxu: PYGmO: goto GdYvJ; nj2sk: if (!($rednum == 0)) { goto fn9Tp; } goto YAXUT; Ow6UT: pdo_insert('rhinfo_zycj_redpacket_member', $data); goto O1mk3; P2D7Y: $isred = 1; goto soj_S; dKNsB: goto vAxfo; goto s2ais; qIuYf: if ($sumamount < $redpacket['sumamount'] * 100) { goto U1ai1; } goto PpuYS; ygnzh: YcHYa: goto qEbDF; SVvze: zE9tN: goto CTmpu; ngDU5: $gettotal = pdo_fetchcolumn('select count(*) from ' . tablename('rhinfo_zycj_redpacket_member') . ' where redid=:redid and weid=:weid and openid=:openid and rid=:rid and status=1 ', array(":redid" => $redid, ":weid" => $_W['uniacid'], ":openid" => $openid, ":rid" => $redpacket['rid'])); goto BM1aP; wwUZc: CQMhi: goto SlI7j; wOmHc: $isred = 1; goto ygnzh; qEbDF: x8wTp: goto YjBH6; hu24C: $redmember = pdo_fetch('select * from ' . tablename('rhinfo_zycj_redpacket_member') . ' where redid=:redid and weid=:weid and openid=:openid and rid=:rid ', array(":redid" => $redid, ":weid" => $_W['uniacid'], ":openid" => $openid, ":rid" => $redpacket['rid'])); goto ngDU5; YjBH6: if (!($isred == 1)) { goto q2b15; } goto CZ0Pe; JAr06: vAxfo: goto H57h0; O9Y7r: if ($total_num < $redpacket['totalnum'] * 100) { goto H70he; } goto lH3x8; EsZ4L: $total_num = empty($total_num) ? 0 : $total_num; goto dryqr; fhiOa: OCGC8: goto o3UkD; C5yES: pdo_insert('rhinfo_zycj_redpacket_member', $data); goto fNHb9; o3UkD: fn9Tp: goto MCs53; YAXUT: $redmember = pdo_fetch('select * from ' . tablename('rhinfo_zycj_redpacket_member') . ' where redid=:redid and weid=:weid and openid=:openid and status=0 ', array(":redid" => $redid, ":weid" => $_W['uniacid'], ":openid" => $openid)); goto OnGPK; sl0t5: $isred = 0; goto HgyhK; NrHHs: if (!empty($redpacket)) { goto UIKgU; } goto Ezeoi; VjtgQ: QZlwR: goto xHawj; VoF7U: $redpacket = pdo_fetch($sql, array(":id" => $redid, ":weid" => $_W['uniacid'])); goto NrHHs; lH3x8: return error(-1, '红包超出总数量'); goto yP3Kg; haW6g: fiAis: goto cS9S0; soj_S: $redmid = $redmember['id']; goto fhiOa; Ezeoi: return error(-1, '没有找到相关红包策略'); goto WuCXp; gSKxQ: $data = array("weid" => $_W['uniacid'], "rid" => $redpacket['rid'], "redid" => $redid, "amount" => $amount, "openid" => $openid, "starttime" => TIMESTAMP, "endtime" => strtotime('+30 days'), "status" => 0, "cuid" => $_W['member']['uid'], "ctime" => TIMESTAMP); goto yS3Oh; aPM1s: goto QZlwR; goto MW00g; G5yUZ: $isred = 1; goto SF7JJ; xHawj: NiYFd: goto gSKxQ; BM1aP: if (!($gettotal == 0 && !empty($redmember))) { goto bgNmL; } goto G5yUZ; aT8Py: C4WeM: goto vrIuN; MCs53: if (!($amount > 0 && empty($redmember))) { goto PYGmO; } goto rQhDP; m2YHc: return error(-1, '红包生成失败'); goto ZQ_Yn; uKKF3: $sum_amount = empty($sum_amount) ? 0 : $sum_amount; goto EsZ4L; Yx0Lo: if ($redpacket['minamount'] > 0 && $redpacket['maxamount'] > 0) { goto n9SPo; } goto ld8cW; fNHb9: $isred = 1; goto JAr06; K7HEa: pdo_insert('rhinfo_zycj_redpacket_member', $data); goto wOmHc; GdYvJ: if ($isred == 1) { goto zE9tN; } goto m2YHc; g3GUR: $amount = mt_rand($redpacket['minamount'], $redpacket['maxamount']); goto VjtgQ; ld8cW: $amount = 0; goto aPM1s; lKz71: q2b15: goto vjWxu; OnGPK: if (empty($redmember)) { goto OCGC8; } goto P2D7Y; Sv8Lz: bgNmL: goto aPxFo; fO0kD: U1ai1: goto Ow6UT; uB_g_: } public function mxdevstatus($devsn) { goto b3q72; zfOPA: if ($rs[1] == '0001') { goto W3PVm; } goto Yc3cj; ogsvM: return $res; goto TRYEE; Bwsfw: $res['code'] = '0'; goto ZCeAw; hxK5W: W3PVm: goto Bwsfw; q1Qlu: $post_data = array("action" => "checkStas", "token" => $this->syscfg['mx_appkey'], "appid" => $this->syscfg['mx_appid'], "device_code" => $devsn); goto o2eOE; qTsGc: $res['code'] = '1'; goto qvU3Z; D3Nex: xZOBy: goto PP_T2; y7VMl: goto PztRk; goto GFklM; GFklM: kis2h: goto zfOPA; qvU3Z: $res['msg'] = '离线'; goto y7VMl; ZCeAw: $res['msg'] = '在线'; goto D3Nex; b3q72: $url = 'paycloud/Api.php'; goto q1Qlu; o2eOE: $rs = Mx_httpPost($url, $post_data); goto yaRNr; PHywS: $res['msg'] = '离线'; goto LHz08; yaRNr: if ($rs[0] == 'SUCCESS') { goto kis2h; } goto qTsGc; LHz08: goto xZOBy; goto hxK5W; PP_T2: PztRk: goto ogsvM; Yc3cj: $res['code'] = '1'; goto PHywS; TRYEE: } public function mxdevopen($devsn) { goto LTSs9; J8KUx: $res['code'] = '1'; goto sRPcy; DLkKd: $rs = Mx_httpPost($url, $post_data); goto Yb3wO; YlFni: UWm7J: goto Byvf7; sRPcy: $res['msg'] = '开启失败!'; goto cSzxj; ZjRWd: $res['msg'] = '开启成功!'; goto amGwM; OplRv: return $res; goto m_kFd; Byvf7: $res['code'] = '0'; goto ZjRWd; Yb3wO: if ($rs[0] == 'SUCCESS') { goto UWm7J; } goto J8KUx; amGwM: nAN0D: goto OplRv; cSzxj: goto nAN0D; goto YlFni; LTSs9: $url = 'paycloud/Api.php'; goto ekAq2; ekAq2: $post_data = array("action" => "sendIns", "token" => $this->syscfg['mx_appkey'], "appid" => $this->syscfg['mx_appid'], "pluse" => "0001", "device_code" => $devsn); goto DLkKd; m_kFd: } public function mxdevreg($devsn) { goto VjDjA; XH7qo: if ($rs[0] == 'SUCCESS') { goto p41_J; } goto R1XaL; SdLHG: return $res; goto lj6dU; IfmAK: IK3Dg: goto SdLHG; F2orY: $res['msg'] = '注册成功!'; goto IfmAK; jW_Wp: $rs = Mx_httpPost($url, $post_data); goto XH7qo; VjDjA: $url = 'paycloud/Api.php'; goto q89yb; L7Wy4: p41_J: goto sE8Yq; w36VN: goto IK3Dg; goto L7Wy4; sE8Yq: $res['code'] = '0'; goto F2orY; EVCT1: $res['msg'] = '注册失败!'; goto w36VN; R1XaL: $res['code'] = '1'; goto EVCT1; q89yb: $post_data = array("action" => "registered", "device_code" => $devsn, "token" => $this->syscfg['mx_appkey'], "appid" => $this->syscfg['mx_appid']); goto jW_Wp; lj6dU: } public function accountmenus() { goto V2t9G; W1tFe: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay order by displayorder'; goto dtmZF; NI1n9: foreach ($menus as &$value) { goto rW3iX; rW3iX: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 order by isdisplay desc ,displayorder asc'; goto CYCj9; s8NVN: $value['submenus'] = $submenus; goto HbzRs; CYCj9: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto s8NVN; HbzRs: PBFsh: goto ctIFB; ctIFB: } goto wsatl; KKtSO: return $menus; goto jq2Ih; wsatl: WWCGD: goto DL2Ww; V2t9G: global $_W, $_GPC; goto UnRnA; DL2Ww: P1x0Z: goto KKtSO; UnRnA: $mywe = $this->mywe; goto W1tFe; dtmZF: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto nXOSH; nXOSH: if (empty($menus)) { goto P1x0Z; } goto NI1n9; jq2Ih: } public function accountmenus_edit($aid, $weid) { goto J3w07; tYqcn: F3Spy: goto YoBsL; YoBsL: iemT5: goto umi1F; hxeFy: foreach ($menus as &$value) { goto ztaMd; xwuJc: TRlrD: goto MtnOD; G5HhG: $value['submenus'] = $submenus; goto gxV2j; mHdZ3: $submenus = pdo_fetchall($sql, array(":sid" => $value['id'])); goto ZhAmh; OOkR_: P7Pco: goto G5HhG; H1zDp: if (empty($submenus)) { goto TRlrD; } goto jdGQQ; gxV2j: $value['sys'] = $j; goto xwuJc; ztaMd: $sql = 'select * from ' . tablename('rhinfo_zyxq_secprg') . ' where sid = :sid and isdismenu=1 order by isdisplay desc,displayorder asc'; goto mHdZ3; MtnOD: Kf3bp: goto ux_0t; jdGQQ: foreach ($submenus as &$item) { goto yn_n1; jFGyA: $i = $rights['weid'] == $weid ? 1 : 0; goto qyq3G; g26o8: $j = $i; goto XDxPd; HiVkm: $item['rights'] = $rights; goto jFGyA; t8wl6: $rights = pdo_fetch($sql, array(":weid" => $weid, ":aid" => $aid, ":pid" => $item['id'])); goto SfqpW; qyq3G: $item['prg'] = $i; goto g26o8; Pfs0H: Lq_AR: goto mB_ym; yn_n1: $sql = 'select * from ' . tablename('rhinfo_zyxq_secaprg') . ' where weid = :weid and aid = :aid and pid = :pid'; goto t8wl6; SfqpW: if (empty($rights)) { goto sqViN; } goto HiVkm; XDxPd: sqViN: goto Pfs0H; mB_ym: } goto OOkR_; ZhAmh: $j = 0; goto H1zDp; ux_0t: } goto tYqcn; zm1d8: $menus = pdo_fetchall($sql, array(":isdisplay" => "1")); goto HOvyq; J3w07: global $_W, $_GPC; goto eDaej; umi1F: return $menus; goto cPPiZ; eDaej: $sql = 'select * from ' . tablename('rhinfo_zyxq_secsys') . ' where isdisplay = :isdisplay  order by displayorder'; goto zm1d8; HOvyq: if (empty($menus)) { goto iemT5; } goto hxeFy; cPPiZ: } public function express_build_orderno($orderno, $expresssn) { goto m4guq; UPzmY: return $orderno; goto QeBbM; m4guq: global $_W, $_GPC; goto CoJhX; dHvSn: aRAxm: goto UPzmY; JDQjl: if (!($total > 0)) { goto aRAxm; } goto sfTnd; EU89A: $total = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":orderno" => $orderno)); goto JDQjl; CoJhX: $sql = 'select count(*) from ' . tablename('rhinfo_zycj_express') . ' where weid=:weid and  orderno=:orderno'; goto EU89A; sfTnd: $orderno = $this->express_build_orderno(build_order_no() . substr($expresssn, -2), $expresssn); goto dHvSn; QeBbM: } public function business_rights($sid, $uid) { goto prBwT; x5xcn: $store = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto VvXdM; hruko: TrISf: goto qxR1y; s4E7Z: if (!empty($sid)) { goto TrISf; } goto qmotZ; i2V8T: $retarr['sid'] = $store['id']; goto GDKmf; PeVj1: $retarr['from'] = 'store'; goto Vzu1K; R6NRi: if (!empty($employee)) { goto jmYYt; } goto WUJA3; ObQjY: Vgotq: goto HjVJd; qmotZ: $sql = 'select * from ' . tablename('rhinfo_zycj_business_employee') . ' where weid= :weid and uid=:uid and status=1'; goto wJ6nl; I6xiG: $store = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid)); goto azhw8; eVBqT: $retarr['sid'] = $sid; goto s4E7Z; wV9zs: $retarr = array(); goto bgI7A; wJ6nl: $employee = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto R6NRi; bgI7A: $retarr['from'] = 'member'; goto eVBqT; Z2wO8: uSZb4: goto KbGDr; KbGDr: JENaJ: goto ZygBG; Vzu1K: $retarr['sid'] = $sid; goto ObQjY; Yq8Vh: $retarr['sid'] = $employee['sid']; goto bIq02; ftlNB: $retarr['sid'] = $sid; goto Z2wO8; FKTwV: $sql = 'select * from ' . tablename('rhinfo_zycj_business') . ' where weid= :weid and id=:sid and uid=:uid'; goto I6xiG; ikeAX: $retarr['from'] = 'employee'; goto Yq8Vh; bIq02: WRzvo: goto go7Ox; go7Ox: goto JENaJ; goto hruko; ybqG9: $retarr['from'] = 'employee'; goto ftlNB; prBwT: global $_W, $_GPC; goto wV9zs; HjVJd: goto uSZb4; goto AKDzU; ZNck3: $retarr['from'] = 'store'; goto i2V8T; VvXdM: if (empty($store)) { goto GUjGB; } goto ZNck3; azhw8: if (empty($store)) { goto Vgotq; } goto PeVj1; WUJA3: $sql = 'select * from ' . tablename('rhinfo_zycj_business') . ' where weid= :weid and uid=:uid'; goto x5xcn; OY48F: $employee = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid)); goto gWQqq; GDKmf: GUjGB: goto mp8at; mp8at: goto WRzvo; goto qLQTY; gWQqq: if (!empty($employee)) { goto G8HQt; } goto FKTwV; qxR1y: $sql = 'select * from ' . tablename('rhinfo_zycj_business_employee') . ' where weid= :weid and sid=:sid and uid=:uid and status=1'; goto OY48F; AKDzU: G8HQt: goto ybqG9; ZygBG: return $retarr; goto Jk70X; qLQTY: jmYYt: goto ikeAX; Jk70X: } public function parklot_rights($parklotid, $uid) { goto R1qWq; CLRev: fJwfS: goto lo8Cq; OQIjU: if (!empty($parklotid)) { goto iQhjN; } goto aTfG1; aTfG1: $sql = 'select * from ' . tablename('rhinfo_zyxq_parklot_manager') . ' where weid= :weid and uid=:uid and status=1'; goto E4m9M; R1qWq: global $_W, $_GPC; goto M4dEa; C_1tb: OsJlM: goto u4NIk; RyUVb: $parklot_manager = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":parklotid" => $parklotid, ":uid" => $uid)); goto S0d9P; BxDHC: $retarr['parklotid'] = $parklot_manager['parklotid']; goto w4FJp; Qoqs3: $retarr['mtype'] = $parklot_manager['mtype']; goto CLRev; w4FJp: goto OsJlM; goto FLb9C; LBalP: $retarr['from'] = 'parklot'; goto KczpC; T1133: $sql = 'select * from ' . tablename('rhinfo_zyxq_parklot_manager') . ' where weid= :weid and parklotid=:parklotid and uid=:uid and status=1'; goto RyUVb; KczpC: $retarr['mtype'] = 0; goto OQIjU; FLb9C: iQhjN: goto T1133; E4m9M: $parklot_manager = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto UbFyB; u4NIk: return $retarr; goto UbsWU; M4dEa: $retarr = array(); goto LBalP; I1Z_K: WYxri: goto BxDHC; lo8Cq: $retarr['parklotid'] = $parklotid; goto C_1tb; Kl_00: $retarr['mtype'] = $parklot_manager['mtype']; goto I1Z_K; UbFyB: if (empty($parklot_manager)) { goto WYxri; } goto Kl_00; S0d9P: if (empty($parklot_manager)) { goto fJwfS; } goto Qoqs3; UbsWU: } public function express_store_rights($sid, $uid) { goto ExNqZ; fCpFe: if (empty($store)) { goto Xc8Zm; } goto K3_Tj; P3vwO: $retarr['from'] = 'employee'; goto foPCl; JBJxG: $retarr = array(); goto ziwAW; B0XRn: $retarr['sid'] = $store['id']; goto hlj0e; xaDql: CnfT0: goto P3vwO; dQC0t: $retarr['from'] = 'store'; goto RCTmn; RCTmn: $retarr['sid'] = $sid; goto TTPXX; kL4VT: $store = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid)); goto AETiW; foPCl: $retarr['sid'] = $employee['sid']; goto Dj_qK; Dj_qK: qGE1_: goto asb_7; TTPXX: LPLIZ: goto PNvI4; ZyGhP: My4kn: goto bEM2u; JL_il: aSkfH: goto H7OXW; juRas: $sql = 'select * from ' . tablename('rhinfo_zycj_express_store') . ' where weid= :weid and id=:sid and uid=:uid'; goto kL4VT; AwByx: if (!empty($sid)) { goto arVNv; } goto tQ7uk; asb_7: goto HkS3E; goto U_yl1; i2cuh: if (!empty($employee)) { goto CnfT0; } goto wCNek; tQ7uk: $sql = 'select * from ' . tablename('rhinfo_zycj_express_employee') . ' where weid= :weid and uid=:uid and status=1'; goto HooCt; HooCt: $employee = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto i2cuh; U_yl1: arVNv: goto Oqqf8; ARwXL: return $retarr; goto c6ED7; wCNek: $sql = 'select * from ' . tablename('rhinfo_zycj_express_store') . ' where weid= :weid and uid=:uid'; goto tNLhD; Sgo7X: goto qGE1_; goto xaDql; mjg4r: $retarr['sid'] = $sid; goto ZyGhP; ziwAW: $retarr['from'] = 'member'; goto fpSlb; K3_Tj: $retarr['from'] = 'store'; goto B0XRn; RkMQa: if (!empty($employee)) { goto aSkfH; } goto juRas; ExNqZ: global $_W, $_GPC; goto JBJxG; hlj0e: Xc8Zm: goto Sgo7X; fpSlb: $retarr['sid'] = $sid; goto AwByx; Oqqf8: $sql = 'select * from ' . tablename('rhinfo_zycj_express_employee') . ' where weid= :weid and sid=:sid and uid=:uid and status=1'; goto qq3fv; bEM2u: HkS3E: goto ARwXL; H7OXW: $retarr['from'] = 'employee'; goto mjg4r; AETiW: if (empty($store)) { goto LPLIZ; } goto dQC0t; PNvI4: goto My4kn; goto JL_il; qq3fv: $employee = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid)); goto RkMQa; tNLhD: $store = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto fCpFe; c6ED7: } public function express_express_rights($sid, $compid, $uid) { goto AVrYP; nGoGa: $person = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto bO3Br; uA6WK: QLZoB: goto c2P1w; hKYf9: K11aK: goto S1aKK; MSj2p: $retarr['compid'] = $company['id']; goto zPpo0; HWIhm: $person = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid, ":compid" => $compid)); goto iiBj0; dIYGX: $person = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid)); goto GhLbE; mVv2Z: goto ZGZpo; goto nO2kI; try9b: if (!empty($company)) { goto Eur3L; } goto cQzO1; piQRX: sBSNi: goto H6yYX; uqSnm: $retarr['from'] = 'company'; goto VvGfn; MSEyk: WiOhU: goto Z2uh6; Sy85K: $retarr['compid'] = $person['compid']; goto o63tj; GhLbE: if (empty($person)) { goto Y5qGQ; } goto lKCoD; S1aKK: uKX0W: goto z_zaE; WAXE2: $retarr['from'] = 'company'; goto myrMr; W3i4R: l3Sc0: goto jciPl; q8Mwr: $retarr['compid'] = $compid; goto hKYf9; sXEBe: goto sBSNi; goto WWKV3; EpRfD: $retarr['from'] = 'express'; goto VBynA; Xt4FB: if (!empty($company)) { goto lFtce; } goto Y7wIn; lKCoD: $retarr['from'] = 'express'; goto yvQAD; zPpo0: RhISH: goto mVv2Z; yw3Qg: $sql = 'select b.*,a.sid from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_company') . ' as b on a.compid=b.id where a.weid = :weid and b.id=:compid and b.uid=:uid'; goto wu2Mo; VvGfn: $retarr['sid'] = $company['sid']; goto RTwKE; Fc38h: Eur3L: goto D3F8G; G_kWl: $retarr['compid'] = $compid; goto Fo_w7; DQSAE: $company = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto try9b; bTinx: $retarr['compid'] = $person['compid']; goto W3i4R; yZq81: if (!empty($compid)) { goto KyR3f; } goto do8dY; Smrsq: $retarr['compid'] = $person['compid']; goto dEB_c; Wd9We: $retarr['from'] = 'express'; goto ZHYfi; jMnUS: $sql = 'select b.*,a.sid from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_person') . ' as b on a.expid=b.id where a.weid = :weid and b.uid=:uid and status=1'; goto zcrNB; Z2uh6: $retarr['from'] = 'company'; goto zoBsm; wu2Mo: $company = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":compid" => $compid, ":uid" => $uid)); goto E_EsR; ZHYfi: $retarr['sid'] = $person['sid']; goto bTinx; jciPl: goto RhISH; goto MSEyk; GD00K: $retarr = array(); goto CG4Ix; Glv9J: $retarr['from'] = 'express'; goto fV80N; XPS0s: if (!empty($company)) { goto M8XvJ; } goto jARFo; cQzO1: $sql = 'select b.*,a.sid from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_person') . ' as b on a.compid=b.compid where a.weid = :weid and b.uid=:uid and status=1'; goto nGoGa; Nrmaq: $retarr['from'] = 'company'; goto QgjcQ; WWKV3: ofJ7K: goto yw3Qg; XN4Ux: ZGZpo: goto piQRX; PkBRk: $sql = 'select b.*,a.sid from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_company') . ' as b on a.compid=b.id where a.weid = :weid and b.uid=:uid'; goto Nd2bJ; myrMr: $retarr['sid'] = $sid; goto q8Mwr; yvQAD: $retarr['sid'] = $sid; goto o7X4k; RTwKE: $retarr['compid'] = $compid; goto XN4Ux; L4Xwj: if (empty($person)) { goto l3Sc0; } goto Wd9We; Y7wIn: $sql = 'select b.* from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_person') . ' as b on a.expid=b.id where a.weid = :weid and a.sid=:sid and b.uid=:uid and status=1'; goto dIYGX; ibZ_z: $company = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":compid" => $compid, ":uid" => $uid)); goto XPS0s; zoBsm: $retarr['sid'] = $company['sid']; goto MSj2p; o7X4k: $retarr['compid'] = $person['compid']; goto JkgCf; sovSs: goto K11aK; goto C_z_q; ZeaPG: $retarr['sid'] = $company['sid']; goto VwppC; mIBbn: ksaLF: goto sXEBe; AVrYP: global $_W, $_GPC; goto GD00K; dEB_c: jLTb8: goto Ej0Tr; H6yYX: goto oYAXh; goto CPk7_; QgjcQ: $retarr['sid'] = $sid; goto U2F14; bbeHY: $sql = 'select b.*,a.sid from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_company') . ' as b on a.compid=b.id where a.weid = :weid and b.uid=:uid'; goto DQSAE; V9hAD: lFtce: goto Nrmaq; C_z_q: M8XvJ: goto WAXE2; KoD3_: $company = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":sid" => $sid, ":uid" => $uid)); goto Xt4FB; CG4Ix: $retarr['from'] = 'member'; goto zkyAf; yJ2Iv: if (!empty($compid)) { goto ofJ7K; } goto bbeHY; X4xPG: goto QLZoB; goto V9hAD; zkyAf: $retarr['sid'] = $sid; goto G_kWl; nO2kI: ijVE2: goto uqSnm; D3F8G: $retarr['from'] = 'company'; goto ZeaPG; jARFo: $sql = 'select b.* from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_person') . ' as b on a.expid=b.id where a.weid = :weid and a.sid=:sid and b.uid=:uid and b.compid=:compid and status=1'; goto HWIhm; c2P1w: goto uKX0W; goto mRB3z; o63tj: LvLE9: goto sovSs; CPk7_: bFtaU: goto yZq81; Nd2bJ: $company = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto t3PQv; zcrNB: $person = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":uid" => $uid)); goto L4Xwj; nqwW0: $sql = 'select b.* from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_company') . ' as b on a.compid=b.id where a.weid = :weid and a.sid=:sid and b.id=:compid and  b.uid=:uid'; goto ibZ_z; mRB3z: KyR3f: goto nqwW0; VwppC: $retarr['compid'] = $company['id']; goto mIBbn; U2F14: $retarr['compid'] = $company['id']; goto uA6WK; t3PQv: if (!empty($company)) { goto WiOhU; } goto jMnUS; bO3Br: if (empty($person)) { goto jLTb8; } goto EpRfD; iiBj0: if (empty($person)) { goto LvLE9; } goto Glv9J; JkgCf: Y5qGQ: goto X4xPG; E_EsR: if (!empty($company)) { goto ijVE2; } goto PkBRk; fV80N: $retarr['sid'] = $sid; goto Sy85K; Ej0Tr: goto ksaLF; goto Fc38h; z_zaE: oYAXh: goto DTswt; DTswt: return $retarr; goto t6o59; VBynA: $retarr['sid'] = $person['sid']; goto Smrsq; do8dY: $sql = 'select b.* from ' . tablename('rhinfo_zycj_express_storecomp') . ' as a left join ' . tablename('rhinfo_zycj_express_company') . ' as b on a.compid=b.id where a.weid = :weid and a.sid=:sid and b.uid=:uid'; goto KoD3_; Fo_w7: if (!empty($sid)) { goto bFtaU; } goto yJ2Iv; t6o59: } public function activity_check_member($item = array()) { goto O_3_b; eqNdY: return array("errno" => 1, "message" => "抱歉,未找到相关活动"); goto uIYWd; UvU_P: return array("errno" => 1, "message" => "抱歉,您已经参加了"); goto QDiqB; HYQKw: return array("errno" => 0, "message" => "抱歉,您未关注公众号"); goto MYFNr; EibtN: $vote = pdo_get('rhinfo_zyxq_activity_vote', array("weid" => $_W['uniacid'], "actid" => $item['id'], "uid" => $_W['member']['uid'])); goto IH7bW; TdF2n: MYX57: goto c8_c4; sGoVB: $sign = pdo_get('rhinfo_zyxq_activity_sign', array("weid" => $_W['uniacid'], "actid" => $item['id'], "uid" => $_W['member']['uid'])); goto VhBdb; FXNJv: if ($item['checkmethod'] == 3) { goto MYX57; } goto CcsHD; auR3R: if (!empty($member)) { goto RpkVm; } goto Ckspz; JOd5Y: Lu92F: goto OZt2z; I7e7i: F6QaT: goto CudJd; IH7bW: if (empty($vote)) { goto d9vxX; } goto DEYfN; r49Rj: goto F6QaT; goto q9D55; OZt2z: if ($item['checkmethod'] == 1) { goto RfJG2; } goto qb8FT; r1dtH: RpkVm: goto I7e7i; kdCj9: return array("errno" => 2, "message" => "抱歉,您不是业主"); goto QFjT1; mb0RA: d9vxX: goto fQ1bZ; Ckspz: return array("errno" => 2, "message" => "抱歉,您不是业主"); goto r1dtH; qb8FT: if ($item['checkmethod'] == 2) { goto IjL6r; } goto FXNJv; q9D55: IjL6r: goto QHOjN; HuQhP: return array("errno" => 0, "message" => "success"); goto jis6M; yj8GR: SnyBN: goto EibtN; HxCph: if (!($item['enddate'] < TIMESTAMP)) { goto Lu92F; } goto g2c99; QHOjN: $member = pdo_get('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $item['rid'], "uid" => $_W['member']['uid'], "deleted" => 0, "otype" => 0)); goto Sy4UJ; VhBdb: if (empty($vote)) { goto PVhFS; } goto UvU_P; DiTcW: return array("errno" => 0, "message" => "抱歉,您未关注公众号"); goto O1XBV; O_3_b: global $_W; goto WfbKt; G8EJx: goto F6QaT; goto TdF2n; wnbDS: if (!($item['startdate'] > TIMESTAMP)) { goto W1WD6; } goto mcLsK; CcsHD: goto F6QaT; goto zcVa6; mcLsK: return array("errno" => 1, "message" => "抱歉,活动还未开始"); goto bA1tR; WfbKt: if (!(empty($item) || empty($item['status']))) { goto GF6Ll; } goto eqNdY; DEYfN: return array("errno" => 1, "message" => "抱歉,您已经参加了"); goto mb0RA; Vh_eq: $member = pdo_get('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $item['rid'], "uid" => $_W['member']['uid'], "deleted" => 0, "otype" => 0)); goto auR3R; MYFNr: vkxDs: goto r49Rj; O1XBV: AopwZ: goto Vh_eq; bA1tR: W1WD6: goto HxCph; Nz7BQ: if (!($_W['fans']['follow'] != '1')) { goto vkxDs; } goto HYQKw; uIYWd: GF6Ll: goto wnbDS; wlS_B: goto XT2Bk; goto yj8GR; Sy4UJ: if (!empty($member)) { goto XBs7B; } goto kdCj9; CudJd: if ($item['category'] == 1) { goto SnyBN; } goto sGoVB; g2c99: return array("errno" => 1, "message" => "抱歉,活动已经结束"); goto JOd5Y; QDiqB: PVhFS: goto wlS_B; zcVa6: RfJG2: goto Nz7BQ; fQ1bZ: XT2Bk: goto HuQhP; c8_c4: if (!($_W['fans']['follow'] != '1')) { goto AopwZ; } goto DiTcW; QFjT1: XBs7B: goto G8EJx; jis6M: } public function form_check_member($item = array(), $house = "", $dtype = 1, $authid = 0, $uid = 0) { goto mDpIr; xueNX: if (!empty($authid)) { goto ftm2S; } goto OGx0b; pgKuN: return array("errno" => 1, "message" => "抱歉,您还未绑定房产"); goto r3juB; XrcXq: qhm_O: goto tDVAq; YROSY: $member = pdo_get('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $item['rid'], "uid" => $_W['member']['uid'], "deleted" => 0)); goto yS2Le; iRWNN: IMvVZ: goto TRIrf; n2Pqh: $i = $i + $count; goto ysh6R; PseY3: if (!(!empty($item['rdays']) && !empty($item['rtimes']))) { goto EpIWQ; } goto SaVTm; Wk94A: return array("errno" => 1, "message" => "抱歉,您已经超过每户限次"); goto ONmS1; OhE8Q: $ctime2 = strtotime(date('Y-m-d', $ctime2)); goto B1lzt; NsWUe: qukom: goto R3z9X; MPvRc: return array("errno" => 1, "message" => "抱歉,通行证无效"); goto YqWmv; dcVr3: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_diyform_record') . ' where weid=:weid and formid=:formid and uid=:uid and dtype=:dtype and ctime between :ctime1 and :ctime2'; goto cO3K9; KZ6nq: goto I3GMs; goto A2Rdm; ea5XI: goto ZkD_8; goto DJ4gU; jYd8h: return array("errno" => 1, "message" => "抱歉,登记已经结束"); goto wKodg; bdHMU: $k++; goto WFepo; S1crq: $ctime1 = strtotime(date('Y-m-d', TIMESTAMP)); goto CKKKE; KzcSl: if (!(empty($item) || empty($item['status']))) { goto IMvVZ; } goto Vj2tG; g9xVp: $i = 0; goto yqxJn; YqWmv: goto j3CzQ; goto FtSR0; XDYld: ftm2S: goto h3qfq; v0oWv: t5gwr: goto xueNX; asqOX: $ctime1 = strtotime(date('Y-m-d', TIMESTAMP)); goto Ubmyg; wKodg: e6Onp: goto Qu32g; d2VKK: EMdVE: goto ea5XI; NJFVb: if ($item['checkmethod'] == 2) { goto kf0Qr; } goto X1IlD; hg8jY: $ctime2 = strtotime(date('Y-m-d', $ctime2)); goto jS0Mx; Q1JX7: $member = pdo_get('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $item['rid'], "uid" => $_W['member']['uid'], "deleted" => 0)); goto M01BC; auQ07: $count = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":formid" => $item['id'], ":house" => $house, ":dtype" => $dtype, ":ctime1" => $ctime1, ":ctime2" => $ctime2)); goto mhtSf; udQgX: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_diyform_record') . ' where weid=:weid and formid=:formid and uid=:uid and dtype=:dtype and ctime between :ctime1 and :ctime2'; goto tV5jA; ktxtO: if (!(empty($item['isrepeat']) && !empty($record))) { goto yHau_; } goto hKPyH; lqNQh: return array("errno" => 0, "message" => "抱歉,您未关注公众号"); goto d2VKK; PCmVs: return array("errno" => 1, "message" => "抱歉,登记还未开始"); goto A7PkZ; XLN92: return array("errno" => 1, "message" => "抱歉,您已经超过每人限次"); goto lhWSP; WGLbt: GYnK_: goto KkIs2; CKKKE: $ctime2 = strtotime('+ ' . $item['hdays'] . 'days'); goto OhE8Q; RxC4e: VH86A: goto Q1JX7; Yy8cs: $k = 0; goto xBmMg; VLyK3: aMtQ2: goto qXYi9; L9oNL: if (!(!empty($authqr['startdate']) && !empty($authqr['enddate']))) { goto oVt_W; } goto F02Ct; X0RmB: return array("errno" => 0, "message" => "success"); goto UcjOM; mzSHx: return array("errno" => 1, "message" => "抱歉,您已经超过每户限次"); goto XrcXq; mhtSf: if (!($count >= $item['htimes'])) { goto NmEHg; } goto u7TX1; GZr25: $k++; goto KZ6nq; nOciz: if (!(!empty($item['hdays']) && !empty($item['htimes']))) { goto qukom; } goto asqOX; UvuwN: if (!($count >= $item['rtimes'])) { goto r0U9B; } goto XLN92; Z9v3X: if (!($i >= $item['htimes'])) { goto beWTI; } goto Wk94A; r3juB: pKVOw: goto zU_ox; vdlgx: I3GMs: goto KvhiH; lEXys: EpIWQ: goto PkSU_; jS0Mx: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_diyform_record') . ' where weid=:weid and formid=:formid and house=:house and dtype=:dtype and ctime between :ctime1 and :ctime2'; goto auQ07; fyaPY: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_diyform_record') . ' where weid=:weid and formid=:formid and uid=:uid and dtype=:dtype and ctime between :ctime1 and :ctime2'; goto BGKII; zmVsV: $ctime2 = strtotime('+ ' . $item['rdays'] . 'days'); goto zOgtt; pmY2O: yQ9hv: goto ZjzMu; ysh6R: Wj1Yg: goto bdHMU; X5ZVh: if (!($_W['fans']['follow'] != '1')) { goto VH86A; } goto uKE9Q; Ra_fh: yHau_: goto qTt6v; A2Rdm: BzG_0: goto Z9v3X; zOgtt: $ctime2 = strtotime(date('Y-m-d', $ctime2)); goto dcVr3; VP1VX: if ($now > $authqr['startdate'] && $now < $authqr['enddate']) { goto N9_Z9; } goto MPvRc; xBmMg: F_siX: goto ViU7u; X1IlD: if ($item['checkmethod'] == 3) { goto W6w4t; } goto AULQz; R3z9X: wJui0: goto X0RmB; bUBFt: if (empty($uid)) { goto vq3G3; } goto fQmCd; qTt6v: lmDDG: goto Gys5t; aKoeu: $count = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":formid" => $item['id'], ":authid" => $authid, ":dtype" => $dtype, ":ctime1" => $ctime1, ":ctime2" => $ctime2)); goto UvuwN; h3qfq: $authqr = pdo_get('rhinfo_zyxq_diyform_authqr', array("weid" => $_W['uniacid'], "id" => $_GPC['authid'])); goto L9oNL; hugk2: if (!($item['enddate'] < TIMESTAMP)) { goto e6Onp; } goto jYd8h; cO3K9: $count = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":formid" => $item['id'], ":uid" => $_W['member']['uid'], ":dtype" => $dtype, ":ctime1" => $ctime1, ":ctime2" => $ctime2)); goto PfK0O; sA39o: if (empty($white)) { goto t5gwr; } goto uJQmX; PfK0O: if (!($count >= $item['rtimes'])) { goto aMtQ2; } goto eYcLy; gdTcx: $i = $i + $count; goto wRhFn; ECSvF: $record = pdo_get('rhinfo_zyxq_diyform_record', array("weid" => $_W['uniacid'], "formid" => $item['id'], "uid" => $_W['member']['uid'], "dtype" => $dtype)); goto ktxtO; Qu32g: if (!empty($authid)) { goto lmDDG; } goto CF4h2; tDVAq: vq3G3: goto NsWUe; B1lzt: $members = pdo_getall('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $authqr['rid'], "bid" => $authqr['bid'], "tid" => $authqr['tid'], "hid" => $authqr['hid'])); goto g9xVp; z7LYB: goto qHmLM; goto XDYld; KvhiH: if (!($k < count($members))) { goto BzG_0; } goto udQgX; tV5jA: $count = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":formid" => $item['id'], ":uid" => $members[$k]['uid'], ":dtype" => $dtype, ":ctime1" => $ctime1, ":ctime2" => $ctime2)); goto gdTcx; PkSU_: if (!(!empty($item['hdays']) && !empty($item['htimes']))) { goto U3A8Z; } goto S1crq; qXYi9: s5tWB: goto z7LYB; YlFGQ: return array("errno" => 1, "message" => "抱歉,您还未绑定房产"); goto sx_ja; m6npc: $ctime2 = strtotime('+ ' . $item['rdays'] . 'days'); goto KMLqS; u7TX1: return array("errno" => 1, "message" => "抱歉,您已经超过每户限次"); goto BASb2; FtSR0: N9_Z9: goto pY6Id; TRIrf: if (!($item['startdate'] > TIMESTAMP)) { goto QARhO; } goto PCmVs; lhWSP: r0U9B: goto lEXys; ViU7u: if (!($k < count($members))) { goto yQ9hv; } goto fyaPY; Gys5t: if (!($item['ishouse'] == 1)) { goto wJui0; } goto nev0_; GdnHK: U3A8Z: goto T2mlU; WPkrj: $ctime1 = strtotime(date('Y-m-d', TIMESTAMP)); goto zmVsV; CF4h2: if ($item['checkmethod'] == 1) { goto GYnK_; } goto NJFVb; pY6Id: j3CzQ: goto FJcgM; eYcLy: return array("errno" => 1, "message" => "抱歉,您已经超过每人限次"); goto VLyK3; Vj2tG: return array("errno" => 1, "message" => "抱歉,未找到相关表单"); goto iRWNN; KkIs2: if (!($_W['fans']['follow'] != '1')) { goto EMdVE; } goto lqNQh; sx_ja: ALy0P: goto GV9_P; nev0_: $white = pdo_get('rhinfo_zyxq_diyform_whites', array("weid" => $_W['uniacid'], "uid" => $_W['member']['uid'])); goto sA39o; fQmCd: $my = pdo_get('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $item['rid'], "uid" => $uid)); goto bpsFM; WFepo: goto F_siX; goto pmY2O; OGx0b: if (!(!empty($item['rdays']) && !empty($item['rtimes']))) { goto s5tWB; } goto WPkrj; hKPyH: return array("errno" => 1, "message" => "抱歉,您已经登记过"); goto Ra_fh; bpsFM: $members = pdo_getall('rhinfo_zyxq_member', array("weid" => $_W['uniacid'], "rid" => $item['rid'], "bid" => $my['bid'], "tid" => $my['tid'], "hid" => $my['hid'])); goto CHiU1; GV9_P: ZkD_8: goto ECSvF; thMT1: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_diyform_record') . ' where weid=:weid and formid=:formid and authid=:authid and dtype=:dtype and ctime between :ctime1 and :ctime2'; goto aKoeu; BASb2: NmEHg: goto bUBFt; mDpIr: global $_W; goto KzcSl; zU_ox: goto ZkD_8; goto o0GN9; BGKII: $count = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":formid" => $item['id'], ":uid" => $members[$k]['uid'], ":dtype" => $dtype, ":ctime1" => $ctime1, ":ctime2" => $ctime2)); goto n2Pqh; AULQz: goto ZkD_8; goto WGLbt; uKE9Q: return array("errno" => 0, "message" => "抱歉,您未关注公众号"); goto RxC4e; Ubmyg: $ctime2 = strtotime('+ ' . $item['hdays'] . 'days'); goto hg8jY; SaVTm: $ctime1 = strtotime(date('Y-m-d', TIMESTAMP)); goto m6npc; ONmS1: beWTI: goto GdnHK; uJQmX: return array("errno" => 0, "message" => "success"); goto v0oWv; DJ4gU: kf0Qr: goto YROSY; ZjzMu: if (!($i >= $item['htimes'])) { goto qhm_O; } goto mzSHx; M01BC: if (!empty($member)) { goto ALy0P; } goto YlFGQ; T2mlU: qHmLM: goto nOciz; wRhFn: bnBy9: goto GZr25; CHiU1: $i = 0; goto Yy8cs; yqxJn: $k = 0; goto vdlgx; o0GN9: W6w4t: goto X5ZVh; FJcgM: oVt_W: goto PseY3; yS2Le: if (!empty($member)) { goto pKVOw; } goto pgKuN; KMLqS: $ctime2 = strtotime(date('Y-m-d', $ctime2)); goto thMT1; F02Ct: $now = time(); goto VP1VX; A7PkZ: QARhO: goto hugk2; UcjOM: } public function get_my_doors($rid, $bid, $tid, $devtype = 0, $cate = 0) { goto FBmi7; qDClJ: Su5zt: goto OVP4f; yzPng: $doors = array(); goto T87WQ; sibpR: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and status = 1 and bid=:bid and tid=:tid'; goto yb6Yc; lQ676: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and status = 1 and bid=:bid and tid=:tid'; goto YwoNn; hjEdP: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":devtype" => $devtype, ":bid" => $bid, ":tid" => 0)); goto EfmlB; UAGS2: if (!($cate == 1)) { goto jPLaz; } goto ANA7G; q5swg: $doors = array_merge($doors, $doors2); goto iqYWn; Y7R9X: vckzp: goto RC0zF; Wr2WZ: $m = 0; goto xcskm; zRBCo: eIJO8: goto lQRD8; DLr8z: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and devtype = :devtype and status = 1 and lid=0 and bid=0 and tid=0'; goto OnUlC; w0QYC: $lid = pdo_fetchcolumn($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":bid" => $bid)); goto hryiI; Hheoc: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and devtype=:devtype and status = 1 and bid=:bid and tid=:tid'; goto aDXCq; VKwaO: $doors = array_merge($doors, $doors2); goto cg1H_; FBmi7: global $_W; goto yzPng; J1TTU: if (!empty($devtype)) { goto nmABv; } goto HUVWi; qIC58: if (empty($doors2)) { goto dj6yo; } goto PsxGm; IUEw6: if ($lid > 0) { goto Nk0lZ; } goto sGURR; T87WQ: $doors1 = array(); goto PQ77j; xcskm: yTHHo: goto os5lu; YwoNn: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":bid" => $bid, ":tid" => 0)); goto BBzmx; CMMYs: if (empty($doors2)) { goto r3tJt; } goto q5swg; yb6Yc: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":bid" => $bid, ":tid" => $tid)); goto MQNzJ; a0Vco: pVAHV: goto UN0AN; bwEBd: $doors = multi_array_unique($doors); goto cMLOH; Nzzec: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":bid" => 0, ":tid" => 0)); goto RBf7t; iqYWn: r3tJt: goto acU0t; Gs5cA: Nk0lZ: goto zhjqV; PsxGm: $doors = array_merge($doors, $doors2); goto qofWw; UAa5a: return $doors; goto OaHeV; aDXCq: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":devtype" => $devtype, ":bid" => $bid, ":tid" => $tid)); goto TOF0j; BBzmx: goto w51yl; goto KUUdu; e0Vmq: $doors = array_merge($doors1, $doors); goto xDfG1; lQRD8: return $device; goto y21uL; qofWw: dj6yo: goto mws3M; acU0t: tq6Y8: goto e0Vmq; zhjqV: if (!empty($devtype)) { goto Iotfe; } goto lQ676; sGURR: if (!empty($devtype)) { goto GH85e; } goto sibpR; os5lu: if (!($m < count($doors))) { goto eIJO8; } goto fv6ko; OnUlC: $doors1 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":devtype" => $devtype)); goto NO15l; qlObp: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and devtype=:devtype and status = 1 and bid=:bid and tid=:tid'; goto ySyL0; fv6ko: $device_arr = iunserializer($doors[$m]['device_json']); goto g8fK9; Y8cag: goto yTHHo; goto zRBCo; r6LA_: $doors = array_merge($doors, $doors2); goto Sr72G; RFrce: goto O32TW; goto cj6OU; g8fK9: $device[] = array("device_id" => $device_arr['device_id']); goto qDClJ; TcY9Q: sIIZF: goto OS3dx; SxlJp: $sql = 'select lid from ' . tablename('rhinfo_zyxq_building') . ' where weid=:weid and rid = :rid and id=:bid'; goto w0QYC; PQ77j: $doors2 = array(); goto J1TTU; eaAZB: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":bid" => $bid, ":tid" => $tid)); goto nrCzB; OS3dx: if (empty($doors2)) { goto wrzBX; } goto VKwaO; cMLOH: gzu_V: goto UAGS2; B8tq8: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and status = 1 and bid=:bid and tid=:tid'; goto eaAZB; tEOkK: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":devtype" => $devtype, ":bid" => 0, ":tid" => 0)); goto TcY9Q; EfmlB: w51yl: goto qIC58; cj6OU: nmABv: goto DLr8z; xDfG1: if (empty($doors)) { goto gzu_V; } goto bwEBd; BaYyq: GH85e: goto qlObp; ySyL0: $doors2 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid, ":lid" => $lid, ":devtype" => $devtype, ":bid" => $bid, ":tid" => $tid)); goto Y7R9X; KUUdu: Iotfe: goto Qgdr0; gWJY0: mDPzb: goto Hheoc; HUVWi: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and status = 1 and lid=0 and bid=0 and tid=0'; goto Z72uh; RC0zF: if (empty($doors2)) { goto s93DK; } goto r6LA_; SYyg1: if (!empty($devtype)) { goto mDPzb; } goto B8tq8; MQNzJ: goto vckzp; goto BaYyq; Em0eY: goto tq6Y8; goto Gs5cA; hryiI: $lid = empty($lid) ? 0 : $lid; goto IUEw6; ANA7G: $device = array(); goto Wr2WZ; RBf7t: goto sIIZF; goto a0Vco; TOF0j: CVPfQ: goto CMMYs; y21uL: jPLaz: goto UAa5a; nrCzB: goto CVPfQ; goto gWJY0; mws3M: if (!empty($devtype)) { goto pVAHV; } goto P311T; P311T: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and status = 1 and bid=:bid and tid=:tid'; goto Nzzec; NO15l: O32TW: goto SxlJp; Z72uh: $doors1 = pdo_fetchall($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid)); goto RFrce; Sr72G: s93DK: goto Em0eY; OVP4f: $m++; goto Y8cag; cg1H_: wrzBX: goto SYyg1; UN0AN: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and devtype=:devtype and status = 1 and bid=:bid and tid=:tid'; goto tEOkK; Qgdr0: $sql = 'select * from ' . tablename('rhinfo_zyxq_door') . ' where weid=:weid and rid = :rid and lid=:lid and devtype=:devtype and status = 1 and bid=:bid and tid=:tid'; goto hjEdP; OaHeV: } public function scan_opendoor($rid, $devtype, $doortype, $locksn, $lockid, $fromdo, $doorid, $isajax = 0) { goto Zfytb; Lbpae: qOW3r: goto HjxOw; sK63o: $res['code'] = '1'; goto rlZHt; qkMbp: nJqls: goto pikew; i5nUA: if ($result['state'] == 1) { goto X61vz; } goto IN0fs; GBMr3: goto laqCB; goto nlmth; yy8L6: if (is_error($resp)) { goto ru1Bw; } goto B3rQS; qbXdh: if ($doortype == 15) { goto FtZnR; } goto H1SNP; o72iZ: X61vz: goto lX5MJ; yDnhD: Lza0X: goto k96u2; zA11N: $data = '{
					"dev_sn":"' . $locksn . '"
				  }'; goto MABw1; MWS_M: $res['msg'] = '开门成功'; goto SjDc2; sA1fK: $zzwdoor = new ZZWdoor(array("zzwtec_username" => $api_setting['zzwtec_username'], "zzwtec_password" => $api_setting['zzwtec_password'], "zzwtec_appid" => $api_setting['zzwtec_appid'], "zzwtec_secret" => $api_setting['zzwtec_secret'])); goto imsoF; VS3wP: FtZnR: goto monz8; zjIa9: $resp = $trudian->open_door($data); goto GgVkG; fzs3S: $anjubao = new AJBdoor(array("anjubao_rid" => $api_setting['anjubao_rid'], "anjubao_digitalid" => $api_setting['anjubao_digitalid'], "anjubao_appid" => $api_setting['anjubao_appid'], "anjubao_secret" => $api_setting['anjubao_secret'])); goto Ag9AE; rlZHt: $res['msg'] = $resp['message']; goto yV9MS; tHB7_: exit; goto GhUtv; As6H_: if ($ret['state'] == 1) { goto nDB48; } goto PfeP0; jvS2b: if ($doortype == 5) { goto U1vlm; } goto cYQ2p; KJf36: DhyRv: goto nRniN; rkqvM: goto wmBuu; goto NnQ_W; z2Y3o: myload()->classs('zzwdoor'); goto sA1fK; XYTZl: $res['msg'] = $resp['message']; goto lZZKm; cmGdS: $res['code'] = '1'; goto SiZ2k; ipNMd: $res['msg'] = '开门成功'; goto GBMr3; bpZ2B: $thinmoo = new ThinMoo($region); goto zA11N; SjDc2: goto GwLES; goto EYRFO; kqCMh: if (!empty($resp['code'])) { goto DTYKF; } goto Ak7VU; oMbzF: if (!($isajax != 1)) { goto l1OHa; } goto lIIaV; Zs70w: $res['msg'] = $ret['state'] . '-' . $ret['return']; goto rkqvM; SiZ2k: $res['msg'] = $resp['message']; goto kRXsd; Zfytb: global $_W; goto KWYLt; ss7fU: $res['msg'] = $result['state'] . '-' . $result['return_data']; goto dUIJO; q1Yi1: goto n8Yzu; goto yDnhD; tUY_r: $res['code'] = '0'; goto BSYYE; aF7cm: $res['code'] = '1'; goto Qww2D; IpCsg: $sql = 'select id,doorlock_type,thinmoo_token,thinmoo_appid,thinmoo_secret,mailin_appid,mailin_secret,mailin_token,trudian_appid,trudian_secret,api_setting from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid'; goto PXLsO; B3rQS: $res['code'] = '0'; goto U0lIs; VnZvd: $post_data = array("m" => "do", "f" => "smd", "a" => "get_net_open_key", "device_sncode" => $locksn); goto doOX6; T3rKB: if (is_error($resp)) { goto dpkEu; } goto pFeRB; O3SwK: PGmaQ: goto IpCsg; q8JAe: $res['msg'] = '开门成功'; goto Jusww; dUIJO: goto G8mNx; goto o72iZ; OAdjL: $res = $this->opendoor($doortype, $locksn, $lockid); goto k5MS7; nlmth: oOYq5: goto sK63o; Mq_Eq: if (is_error($resp)) { goto LJD8h; } goto tUY_r; yV9MS: laqCB: goto Nc0fi; Ak7VU: $res['code'] = '0'; goto M3QGO; K1rki: goto qeMhG; goto O3SwK; vFk7V: if ($doortype == 14) { goto ruGlr; } goto qbXdh; lX5MJ: $post_data = array("m" => "do", "f" => "smd", "a" => "net_open", "device_sncode" => $locksn, "net_open_key" => $result['return_data']['net_open_key']); goto Q9X2j; U0lIs: $res['msg'] = '开门成功'; goto vqcwP; vqcwP: goto dGt2b; goto Y2EF8; EbDHh: if ($devtype == 2 || $devtype == 3) { goto PGmaQ; } goto yo6ro; pFeRB: $res['code'] = '0'; goto MWS_M; nTxr0: goto n8Yzu; goto S6ABP; gurjm: l1OHa: goto w4MaQ; Qww2D: $res['msg'] = $resp['msg']; goto qkMbp; FdUnn: $res['code'] = '1'; goto nEiul; yo6ro: if ($doortype == 6) { goto FklMQ; } goto OAdjL; nEiul: $res['msg'] = $resp['message']; goto TGgzC; zb3x5: $thinmoo = new ThinMoon($region); goto trOk3; khs_l: $resp = $thinmoo->open_door($data); goto FmrYT; L631j: if ($devtype == 1) { goto qOW3r; } goto EbDHh; fqaVN: $trudian = new trudian($region); goto tCZpO; IYUSp: if ($doortype == 12) { goto Lza0X; } goto vFk7V; Nz44L: goto n8Yzu; goto KJf36; nRniN: myload()->classs('trudian'); goto fqaVN; uBzNS: goto qeMhG; goto Lbpae; FmrYT: if (is_error($resp)) { goto iFZKo; } goto kqCMh; DPOHb: $resp = $zzwdoor->openDoor($data); goto yy8L6; OLkcP: G8mNx: goto emoV7; By05Y: $res['msg'] = $resp['message']; goto BEKmn; emoV7: goto n8Yzu; goto AR20z; DXJwh: return $res; goto oT2w8; lZZKm: goto nJqls; goto y_M5v; BSYYE: $res['msg'] = '开门成功'; goto n3k6l; Ij53T: $resp = $anjubao->openDoor($data); goto T3rKB; yse16: $res['code'] = '0'; goto q8JAe; HjxOw: if (!($isajax != 1)) { goto zBBHl; } goto ZXWc4; P2QnU: goto n8Yzu; goto VS3wP; MABw1: $resp = $thinmoo->open_door($data); goto Mq_Eq; ZXWc4: header('Location:' . $this->createMobileurl($fromdo, array("op" => "qrcode", "id" => $doorid))); goto tHB7_; PfeP0: $res['code'] = '1'; goto Zs70w; H4FaC: qeMhG: goto DXJwh; KWYLt: $res = array("code" => 1, "msg" => "error"); goto L631j; X_TD9: $set = array("mailin_appid" => $region['mailin_appid'], "mailin_secret" => $region['mailin_secret'], "mailin_token" => $region['mailin_token']); goto VnZvd; GgVkG: if (is_error($resp)) { goto oOYq5; } goto rwXOx; pY1Hg: exit; goto gurjm; fBsHg: $api_setting = iunserializer($region['api_setting']); goto jvS2b; YyBbX: ruGlr: goto z2Y3o; IN0fs: $res['code'] = '1'; goto ss7fU; n3k6l: goto X2olA; goto oRCz0; lIIaV: header('Location:' . $this->createMobileurl($fromdo, array("op" => "qrcode", "id" => $doorid))); goto pY1Hg; S6ABP: U1vlm: goto X_TD9; aYWTu: iFZKo: goto I6Zua; GhUtv: zBBHl: goto K1rki; kRXsd: X2olA: goto q1Yi1; k5MS7: goto gtkmm; goto PrUCF; Y2EF8: ru1Bw: goto FdUnn; oRCz0: LJD8h: goto cmGdS; AR20z: XuRLv: goto cDJdb; Nc0fi: n8Yzu: goto H4FaC; pikew: goto n8Yzu; goto YyBbX; Q9X2j: $ret = mailin_http_post($set, $post_data); goto As6H_; H1SNP: if ($doortype == 9) { goto DhyRv; } goto HfTjR; PrUCF: FklMQ: goto oMbzF; Jusww: wmBuu: goto OLkcP; trOk3: $data = array("extCommunityUuid" => $region['id'], "devSn" => $locksn); goto khs_l; tCZpO: $data = array("localId" => $locksn); goto zjIa9; TGgzC: dGt2b: goto P2QnU; rwXOx: $res['code'] = '0'; goto ipNMd; w4MaQ: gtkmm: goto uBzNS; I6Zua: $res['code'] = '1'; goto XYTZl; k96u2: myload()->classs('thinmoon'); goto zb3x5; imsoF: $data = array("doorId" => $locksn, "appType" => 1, "feedbackURL" => $this->syscfg['siteurl'] . 'addons/rhinfo_zyxq/payment/opendoor/zwnotify.php'); goto DPOHb; doOX6: $result = mailin_http_post($set, $post_data); goto i5nUA; BEKmn: GwLES: goto Nz44L; cYQ2p: if ($doortype == 6) { goto XuRLv; } goto IYUSp; ASHm6: goto nJqls; goto aYWTu; Ag9AE: $data = array("deviceCode" => $locksn); goto Ij53T; monz8: myload()->classs('anjubao'); goto fzs3S; y_M5v: DTYKF: goto aF7cm; PXLsO: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid)); goto fBsHg; HfTjR: $res = $this->opendoor($doortype, $locksn, $lockid); goto nTxr0; NnQ_W: nDB48: goto yse16; cDJdb: myload()->classs('thinmoo'); goto bpZ2B; EYRFO: dpkEu: goto j67md; M3QGO: $res['msg'] = '开门成功'; goto ASHm6; j67md: $res['code'] = '1'; goto By05Y; oT2w8: } public function pc_remonthcard($rid, $parklot, $parkpay) { goto BQkms; FvhgF: if ($res['code'] == 1) { goto R2abd; } goto HNhnT; BjwCC: $set['pc_secret'] = $region['pc_secret']; goto n13oV; pNTCZ: return array(1, "操作成功"); goto lFkKC; rxMJ5: if (!is_error($res)) { goto qNgJW; } goto U3paH; xnRSM: $cardno = $res['id']; goto oHSNA; O2XOv: return array(0, $res['msg']); goto qauBn; FaDOU: $ruleid = $rule['RuleId']; goto An6WB; iMFEl: UXUqf: goto PZ1RH; kjVeg: $params = array("plateNum" => $parkpay['carno'], "beginDate" => $parkpay['starttime'], "endDate" => $parkpay['endtime'], "cardTypeId" => 2, "carTypeId" => 1, "money" => $parkpay['fee'], "pname" => $parkpay['realname'], "mobile" => $parkpay['mobile']); goto NXP6l; m4tq8: goto aSg9P; goto WT6Bb; PZ_Qm: $wlId = $rows['id']; goto SSH0t; N_DfV: goto tRilW; goto you4t; ZljmG: goto gl6Ir; goto GLpf4; SSH0t: $params = array("rows" => 1, "page" => 1); goto r6GKl; GgOd_: if ($parklot['pc_type'] == 6) { goto uXGzC; } goto op8_l; m3eRU: $res = $res['data']; goto Rsv9s; ftTNG: goto znbTg; goto vpsGA; rZQVv: $res = etpcar_http_post($set, $params, $parklot['ctpcar_url']); goto N258J; An6WB: if (!empty($rule)) { goto ej08A; } goto KiiNc; N4VSR: $rea = pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto NI2Cm; DV3Vp: $set['private_key'] = $region['pc_prikey']; goto iOzfn; SXHaY: dhy3W: goto Icw81; you4t: NM8Sj: goto mCbXv; YNmfU: foreach ($parkios as $vio) { $machlist .= $vio['MachNo'] . '_'; AvW2s: } goto DWR3R; qUJSM: $params = array("plateNum" => $parkpay['carno'], "beginDate" => strtotime($res[0]['beginDate']), "endDate" => $parkpay['endtime'], "payMode" => 1, "chargeMoney" => $parkpay['fee']); goto uOBIs; BmWEn: $res = ipms_httpsign_post($set, $params, $parklot['ctpcar_url']); goto uhhiC; OLlAA: myload()->classs('yktcar'); goto EIH0u; n13oV: $set['url'] = 'api/queryCreatMonthCardData.action'; goto p88rx; YxX3E: q5e5t: goto f7aHT; myIZY: if ($res['records'] != 0) { goto S22Rm; } goto sRHum; vDNrY: $params = array("id" => $cardno, "parkId" => $parklot['pc_plotid'], "carNum" => $parkpay['carno'], "startTime" => $startdate, "endTime" => date('Y-m-d', $parkpay['endtime']), "loginUserName" => $parkpay['mobile'], "rechangeFee" => 100); goto tAXcV; qTiOD: $parkpay['fee'] = !empty($parkpay['fee']) ? $parkpay['fee'] : 1; goto Z62AF; PsDxV: goto tRilW; goto X14Hh; HXea9: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto sRCeu; FhPZr: ZQRG2: goto QmBjY; fyB00: $params['updateCreateParamItems'] = array(array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "expireTime", "value" => $parkpay['endtime']), array("name" => "number", "value" => $region['id'] . $parklot['id'] . $parkpay['parkingid']), array("name" => "realType", "value" => 1)); goto h_hw0; WubQZ: return array(0, $res['msg']); goto kqUty; POmUG: $whitelist = pdo_get('rhinfo_zyxq_car_whitelist', array("weid" => $parkpay['weid'], "parklotid" => $parkpay['parklotid'], "carno" => $parkpay['carno'])); goto wdf5g; a_4lU: return array(0, '操作失败' . $res['msg']); goto pAyIf; ccXQG: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto wFj1X; QzxE0: if ($parklot['pc_type'] == 11) { goto q5e5t; } goto bVnwU; BCjO5: yHEQP: goto MDDQg; Wk7IQ: qqr0m: goto N_DfV; v0Oyv: $res = ${$jielink}->monthCar_Modify($params); goto DQWEO; vQsrE: goto xNiAR; goto J4aQR; qxbE3: return array(0, $res['resultMsg']); goto pALKS; pAyIf: goto YEFrK; goto YMJnW; Bqp4M: return array(0, '操作异常' . $res['MsgStr']); goto bCEXN; hRO56: $res = $res['datas'][0]; goto aRj8n; MP90V: if ($parklot['pc_type'] == 4) { goto NM8Sj; } goto VkAnj; PZ1RH: c3CJS: goto n7uVz; t49aF: $res = icar_post_bindposid($set, $params); goto G2rnl; kZcC4: $rows = $res['rows'][0]; goto PZ_Qm; uONp7: if (!($res['successCode'] == '100')) { goto YASyS; } goto myIZY; HhKWj: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto taAXy; Na1np: $res = $bscar->monthCar_Query($params); goto CDq61; HvEuu: return array(0, '操作失败' . $res['message']); goto NsuI5; mNFmw: if ($resmsg['ErrNo'] == '0000') { goto e5vLN; } goto NGnQb; HrXOI: return array(1, "操作成功"); goto YfU3k; zmq8e: goto l6f9K; goto nsqVd; n7vaU: $region = pdo_fetch($sql, array(":weid" => $_W['uniacid'], ":rid" => $rid)); goto L_THU; MjUnU: $res = json_decode(urldecode($res['data']), true); goto ZLn6Q; DN3A4: $set = array("url" => "app/getLaneList.aspx", "parkno" => $parklot['pc_plotid'], "secret" => $parklot['pc_secret']); goto KYUl_; JJs3w: $set['url'] = 'third_api/monthCardAppAction_create.action'; goto Z7nDt; c5ks1: V07ux: goto poQ3K; v6geZ: goto inEkI; goto Sc4Pe; nJtcS: $res = icar_post_querycarid($set, $params); goto GMozC; TobSP: $params = array("id" => $rows['id']); goto uEqvo; dAoFe: return array(0, $res['result'] . $res['errorCode']); goto tz6nh; UGvZe: $parkios = $lanelist['LaneInfo']; goto QhEaV; UZqYy: ej08A: goto QkQDl; Z62AF: if ($parklot['pc_type'] == 1) { goto J_MrL; } goto TysVC; VjV1L: $res = icar_post_createcarid($set, $params); goto CQ_G3; MNOjM: $res = $ebcar->monthCar_QueryRule($params); goto qx4TX; jq2Vy: $res = $ymcar->monthCar_Add($params); goto VoXGw; BBulN: iaMgI: goto yjNyt; EDB0s: $params = array("parkKey" => $parklot['pc_plotid'], "carNo" => $parkpay['carno']); goto I7OWd; E6YpP: return array(0, $res['msg']); goto BksSn; CQ_G3: if (!($res['successCode'] == '100')) { goto R4IqI; } goto HhKWj; f5tum: goto eeo8P; goto bHLFp; NXP6l: $res = deliyun_http_post($set, $params); goto cYQPa; a1lvO: $params = array("parkingId" => $parklot['pc_plotid'], "plateNum" => $parkpay['carno']); goto Na1np; VvwIE: goto tRilW; goto lc5Xk; DQWEO: EjHls: goto azATr; jub32: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto H2HS4; Icw81: vzwfs: goto dAoFe; NsuI5: goto O4V92; goto BBulN; MDDQg: goto ZrGLV; goto sEHhb; uhhiC: if ($res['resultCode'] == '0000') { goto ub2IE; } goto YyYn4; cSQSe: $set = array(); goto lbYED; bVnwU: if ($parklot['pc_type'] == 12) { goto cBvuk; } goto aiyJK; EuxrB: $params = array(); goto fyB00; Sc4Pe: qNgJW: goto gxxhZ; bADBi: goto tRilW; goto dOOJb; cLGLv: $jielink = new JIElink(array("jielink_appid" => $api_setting['jielink_appid'], "jielink_secret" => $api_setting['jielink_secret'])); goto jfGMK; gcjdC: return array(0, "未找到月卡信息"); goto tQOZ1; UDYnc: goto tRilW; goto KDwsP; jxalU: goto tRilW; goto WXn38; HNhnT: return array(0, "创建月租用户失败"); goto atIL5; hNQqU: $moninfo = $res['data']['blackWhiteList'][0]; goto o1RYs; JG2Rj: $api_setting = iunserializer($region['api_setting']); goto VAWM_; uPh7J: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto m7JSp; tQOZ1: goto WEcWT; goto PAvkf; q5oWk: goto dhy3W; goto NFozz; EKJCj: $ebcar = new EBcar(array("eb_appid" => $region['eb_appid'], "eb_secret" => $region['hm_secret'])); goto BwUnn; G4QV0: $rows = $res['rows'][0]; goto TobSP; wFj1X: return array(1, "操作成功"); goto At54g; ele_K: xNiAR: goto bADBi; sDP03: goto EjHls; goto SPMCM; ImCah: P7QA3: goto PsDxV; nU4a1: $set['url'] = 'parking/saveCar/'; goto kjVeg; Yvwmj: $params = array("CarNo" => $parkpay['carno'], "UserName" => $parkpay['realname'], "OperType" => "Add", "Fee" => $parkpay['fee'] * 100, "StartTime" => date('YmdHis', $parkpay['starttime']), "EndTime" => date('YmdHis', $parkpay['endtime']), "CarType" => "月卡A", "CardStatus" => 0, "Balance" => 0, "MachList" => $machlist, "SetNo" => "000"); goto JMXq9; XjpCj: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto VRqG2; pALKS: goto Axw1A; goto eEdBj; vxOGO: $params = array("plId" => $parklot['pc_plotid'], "plgId" => !empty($parklot['pc_secret']) ? $parklot['pc_secret'] : $region['pc_rid'], "psId" => $res['psId'], "wlId" => $wlId); goto t49aF; rdYvT: return array(1, "操作成功"); goto DXN1R; sYObZ: goto tRilW; goto MbZtV; txEvR: $set['url'] = 'third_api/monthCardAppAction_updateMonthCard.action'; goto vDNrY; mQ3tg: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto HrXOI; ObFzd: $set = array(); goto oLa7f; fLq9B: $params['searchParamsItems'] = array(array("name" => "plgId", "value" => !empty($parklot['pc_secret']) ? $parklot['pc_secret'] : $region['pc_rid']), array("name" => "licensePlate", "value" => $parkpay['carno'])); goto nJtcS; o1RYs: if (!empty($moninfo)) { goto sugmv; } goto KZIgW; yKryz: if (!($res['successCode'] == '100')) { goto oCuni; } goto vxOGO; qx4TX: $rule = $res['RuleInfo']; goto FaDOU; uCEvc: $res = ipms_http_post($set, $params, $parklot['ctpcar_url']); goto bTRyG; taAXy: return array(1, "操作成功"); goto nZ5aD; PxGHZ: inEkI: goto uvxsx; mJ8oG: goto tRilW; goto p7uDX; AfJVt: return array(1, "操作成功"); goto gJITz; uOBIs: $res = deliyun_http_post($set, $params); goto O2INN; n7uVz: $res = $bscar->monthCar_AddModify($params); goto hpQe6; sL0xF: $params = array("parkKey" => $parklot['pc_plotid'], "userName" => $parkpay['realname'], "carTypeNo" => "3652", "homeAddress" => $region['address'], "mobNumber" => $parkpay['mobile']); goto aBAy1; W2oAo: xKBni: goto DBTs0; NGnQb: return array(0, '操作异常' . $res['MsgStr']); goto Rkrjl; TysVC: if ($parklot['pc_type'] == 2) { goto QjvvQ; } goto wfs37; aiyJK: return array(0, "未启用云停车"); goto mJ8oG; SJaJK: $machlist = substr($machlist, 0, -1); goto Xc5FF; tcR5p: $data_white = array("weid" => $parkpay['weid'], "parklotid" => $parkpay['parklotid'], "starttime" => $parkpay['starttime'], "endtime" => $parkpay['endtime'], "carno" => $parkpay['carno'], "mobile" => $parkpay['mobile'], "realname" => $parkpay['realname'], "idcard" => $parkpay['idcard'], "status" => 1, "cuid" => $parkpay['cuid'], "ctime" => TIMESTAMP); goto caQD7; QhEaV: $machlist = ''; goto YNmfU; ZAsAK: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto AfJVt; NHhBx: return array(0, '操作失败' . $res['msg']); goto ftTNG; VkAnj: if ($parklot['pc_type'] == 5) { goto gxwZz; } goto GgOd_; oMy8K: return array(1, "操作成功"); goto ele_K; oLa7f: $set['userId'] = $region['pc_appid']; goto larb5; kCG6b: if ($res['records'] != 0) { goto zbDJs; } goto EuxrB; XC148: $hmcar = new HMcar(array("hm_appid" => $region['hm_appid'], "hm_secret" => $region['hm_secret'])); goto V4N5n; YfU3k: l6f9K: goto i_Ulu; gxxhZ: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto mxsIJ; VoXGw: if ($res['code'] == 0) { goto Tnecj; } goto A_XZ1; NIHkP: goto TUuC6; goto c5ks1; r6GKl: $params['searchParamsItems'] = array(array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "number", "value" => $region['id'] . $parklot['id'] . $parkpay['parkingid'])); goto C335i; yjNyt: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto KHgKY; Q1WL3: $res = deliyun_http_post($set, $params); goto hfbxq; tAXcV: $res = ipms_httpsign_post($set, $params, $parklot['ctpcar_url']); goto U4nvK; k833t: $params = array("parkKey" => $parklot['pc_plotid'], "carNo" => $parkpay['carno'], "mthChargeMoney" => $parkpay['fee'], "beginTime" => date('Y-m-d H:i:s', $parkpay['starttime']), "endTime" => date('Y-m-d H:i:s', $parkpay['endtime'])); goto Fn0rZ; V4N5n: $params = array("parkingId" => "", "cardNo" => "aaaaa"); goto fNVDm; jfGMK: $params = array("plateNumber" => $parkpay['carno']); goto hc5a6; P3Amr: goto mOGLZ; goto i9Gqt; EXwdx: goto K0YNE; goto CgNRt; silFT: if ($res['code'] == 1) { goto zVxcE; } goto a_4lU; qyrLB: goto P7QA3; goto DDDQ2; BwUnn: $params = array("ParkCode" => $parklot['pc_plotid']); goto MNOjM; L_THU: $parklot['pc_type'] = !empty($parklot['pc_type']) ? $parklot['pc_type'] : $region['pc_type']; goto qTiOD; eyOz7: eeo8P: goto ff7EV; bjKks: adYZM: goto jub32; caQD7: $res = pdo_insert('rhinfo_zyxq_car_whitelist', $data_white); goto eyOz7; z1pxR: YASyS: goto SXHaY; oHSNA: $startdate = date('Y-m-d', strtotime($res['tpStartTime'])); goto txEvR; hc5a6: $res = $jielink->monthCar_Query($params); goto hNQqU; b0xqe: R2abd: goto koAKP; wfs37: if ($parklot['pc_type'] == 3) { goto KaL66; } goto MP90V; qYcz5: $params = array("blackGuid" => $moninfo['blackGuid'], "plateNumber" => $parkpay['carno'], "blackWhiteType" => 3, "startDate" => $moninfo['startDate'], "endDate" => date('Y-m-d H:i:s', $parkpay['endtime'])); goto v0Oyv; sRCeu: return array(1, "操作成功"); goto eqbAO; WT6Bb: VR5Dk: goto E82qV; sEHhb: hCuLa: goto hF9TM; GMnLf: $resmsg = $res['ReMsg']; goto TUTKA; kqUty: goto xKBni; goto bjKks; GLpf4: ub2IE: goto uPh7J; gJITz: HnCkq: goto P3Amr; EIH0u: $yktcar = new YKTcar(array("ykt_appkey" => $region['ykt_appkey'])); goto FPL_O; B5uGD: tRilW: goto l3PIG; ZKCtv: goto ZQRG2; goto ItT_D; nrdpg: return array(0, $res['resultMsg']); goto zmq8e; zEBLz: uXGzC: goto km8HD; syORJ: Uyusi: goto XTeCe; VRqG2: return array(1, "操作成功"); goto ImCah; h7Ip2: akU0L: goto m4tq8; pAcTE: $params['updateCreateParamItems'] = array(array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "expireTime", "value" => $parkpay['endtime']), array("name" => "number", "value" => $region['id'] . $parklot['id'] . $parkpay['parkingid']), array("name" => "realType", "value" => 1)); goto sjQZU; y65jL: $params = array("CarNo" => $parkpay['carno'], "UserName" => $parkpay['realname'], "OperType" => "Delay", "Fee" => 100, "StartTime" => date('YmdHis', $parkpay['starttime']), "EndTime" => date('YmdHis', $parkpay['endtime']), "CarType" => "月卡A", "CardStatus" => 0, "Balance" => 0, "MachList" => $machlist, "SetNo" => "000"); goto nd5i6; eqbAO: znbTg: goto JEMpo; N258J: $resmsg = $res['ReMsg']; goto mNFmw; dOOJb: usDQ7: goto POmUG; YyYn4: return array(0, $res['resultMsg']); goto ZljmG; uopiM: return array(0, '操作失败' . $res['message']); goto vQsrE; hpQe6: if (!is_error($res)) { goto V07ux; } goto a0L_8; NFozz: zbDJs: goto kZcC4; p7uDX: J_MrL: goto ObFzd; Iiq1v: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto oMy8K; JMXq9: $res = etpcar_http_post($set, $params, $parklot['ctpcar_url']); goto Cwxbc; QptRD: $ymcar = new YMcar(array("ym_appid" => $region['ym_appid'], "ym_secret" => $region['ym_secret'])); goto EDB0s; H2HS4: return array(1, "操作成功"); goto W2oAo; TZF3Y: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto alKFu; lFkKC: mOGLZ: goto Wk7IQ; sjQZU: $res = icar_post_createposid($set, $params); goto yKryz; YpjwW: return array(1, "操作成功"); goto vlvI2; bTIWw: $res = icar_post_updateposid($set, $params); goto x6VLG; NI2Cm: return array(1, "操作成功"); goto oYymq; Z3CPh: OMeSb: goto m3eRU; C335i: $res = icar_post_queryposid($set, $params); goto uONp7; tz6nh: goto tRilW; goto FizQX; U4nvK: if ($res['resultCode'] == '0000') { goto yL4jj; } goto nrdpg; jkEsU: if (is_error($res)) { goto c3CJS; } goto nSdPM; nG6es: goto gudzD; goto vJ619; etLg4: $params = array("plateNum" => $parkpay['carno'], "cardTypeId" => 2, "page" => 1, "size" => 1); goto Q1WL3; h_hw0: $res = icar_post_createposid($set, $params); goto EAjFy; rXFsp: if ($res['Status'] == 0) { goto KrXFl; } goto uopiM; GMozC: if (!($res['successCode'] == '100')) { goto vzwfs; } goto kCG6b; Oo1qh: $res = pdo_update('rhinfo_zyxq_car_whitelist', $data_white, array("weid" => $parkpay['weid'], "id" => $whitelist['id'])); goto f5tum; vJ619: S22Rm: goto G4QV0; tl3QC: return array(0, "抱歉,月卡规则不支持按天"); goto uO3lF; Fn0rZ: $res = $ymcar->monthCar_PayNotify($params); goto VQEPd; TUTKA: if ($resmsg['ErrNo'] == '0000') { goto gMWOp; } goto Bqp4M; wdf5g: if (!empty($whitelist)) { goto eW61k; } goto TaV_j; O2INN: if ($res['ecode'] == 0) { goto adYZM; } goto WubQZ; ZLn6Q: if (empty($res)) { goto cAWjS; } goto hRO56; FaBPO: if ($parklot['pc_type'] == 9) { goto wncjm; } goto qMnD8; fNVDm: $res = $hmcar->tempCar_Query($params); goto UDYnc; JAIg5: fKRGg: goto q5oWk; MqQek: gl6Ir: goto FhPZr; I7OWd: $res = $ymcar->monthCar_Query($params); goto QTPja; i_Ulu: WEcWT: goto ZKCtv; U3paH: return array(0, '操作失败' . $res['message']); goto v6geZ; atIL5: goto akU0L; goto b0xqe; VAWM_: myload()->classs('jielink'); goto cLGLv; CQK06: $carmodel = $yktcar->get_ParkCarModel($params); goto HL9Vq; larb5: $set['userKey'] = $region['pc_secret']; goto DV3Vp; CIxIT: return array(0, "操作失败"); goto qyrLB; vlvI2: TUuC6: goto jxalU; KZIgW: $params = array("plateNumber" => $parkpay['carno'], "blackWhiteType" => 3, "startDate" => date('Y-m-d H:i:s', $parkpay['starttime']), "endDate" => date('Y-m-d H:i:s', $parkpay['endtime'])); goto iPwku; iJMpk: $res = $yktcar->monthCar_AddModify($params); goto rxMJ5; tZR1h: myload()->classs('ebcar'); goto EKJCj; lbYED: $set['pc_appid'] = $region['pc_appid']; goto BjwCC; XTeCe: goto tRilW; goto zEBLz; a0L_8: return array(0, '操作失败' . $res['message']); goto NIHkP; Po6dp: O4V92: goto B5uGD; Rsv9s: if (!empty($res) && $res[0]['plateNum'] == $parkpay['carno']) { goto hCuLa; } goto nU4a1; rF1nG: goto tRilW; goto QYsUH; x6VLG: if (!($res['successCode'] == '100')) { goto Sdpyi; } goto N4VSR; hF9TM: $set['url'] = 'parking/carDelay/'; goto qUJSM; JEMpo: K0YNE: goto h7Ip2; azATr: if (!is_error($res)) { goto iaMgI; } goto HvEuu; vpsGA: RmgsL: goto HXea9; poQ3K: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto YpjwW; iOzfn: $params = array("rows" => 1, "page" => 1); goto fLq9B; uO3lF: m_b_d: goto BsiE0; qMnD8: if ($parklot['pc_type'] == 10) { goto BWGLH; } goto QzxE0; qtzmk: $cartype = $yktcar->get_ParkCarType($params); goto CQK06; A_XZ1: return array(0, "创建月租车辆失败"); goto EXwdx; JpGGq: gudzD: goto z1pxR; aRj8n: if (!empty($res)) { goto qRN4K; } goto gcjdC; BksSn: goto yHEQP; goto Bx2pa; FizQX: QjvvQ: goto cSQSe; Xtn7s: if ($resmsg['ErrNo'] == '0000') { goto IeeeB; } goto y65jL; BsiE0: $params = array("UserMobile" => $parkpay['mobile'], "UserName" => $parkpay['realname'], "RuleId" => $ruleid, "CarNo" => $parkpay['carno'], "TrdOrderNo" => time() . random(8, 1), "PayMoney" => $parkpay['fee'], "TotalMoney" => $parkpay['fee'], "MonthBegin" => date('Y-m-d H:i:s', $parkpay['starttime']), "MonthEnd" => date('Y-m-d H:i:s', $parkpay['endtime']), "ParkCode" => $parklot['pc_plotid']); goto JUfXS; bTRyG: if ($res['result'] == 'success') { goto oAKA3; } goto qxbE3; QYsUH: gxwZz: goto uuLxX; alKFu: return array(1, "操作成功"); goto BCjO5; uvxsx: goto tRilW; goto YxX3E; pTOSm: $res = $ymcar->monthCar_PayNotify($params); goto silFT; PCGqr: $params = array(); goto nwP2y; G2rnl: if (!($res['successCode'] == '100')) { goto Ya6If; } goto ccXQG; cYQPa: if ($res['ecode'] == 0) { goto R8fet; } goto E6YpP; DLmqp: myload()->classs('bscar'); goto aVOQD; aVOQD: $bscar = new BScar(array("beisheng_username" => $api_setting['bscar_username'], "beisheng_password" => $api_setting['bscar_password'])); goto a1lvO; iPwku: $res = ${$jielink}->monthCar_Add($params); goto sDP03; TaV_j: $data_white = array("starttime" => $parkpay['starttime'], "endtime" => $parkpay['endtime'], "mobile" => $parkpay['mobile'], "realname" => $parkpay['realname'], "idcard" => $parkpay['idcard'], "status" => 1, "cuid" => $parkpay['cuid']); goto Oo1qh; mxsIJ: return array(1, "操作成功"); goto PxGHZ; r3HMW: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto rdYvT; ff7EV: if ($res) { goto Hi0Vw; } goto CIxIT; ItT_D: cAWjS: goto JJs3w; MbZtV: KaL66: goto DN3A4; CDq61: $params = array("parkingId " => $parklot['pc_plotid'], "type" => 1, "data" => array("plateNum" => $parkpay['carno'], "businessType" => 2, "startTime" => date('Y-m-d H:i:s', $parkpay['starttime']), "endTime" => date('Y-m-d H:i:s', $parkpay['endtime']))); goto jkEsU; KDwsP: Ry8HA: goto tZR1h; YMJnW: zVxcE: goto r3HMW; qauBn: goto Uyusi; goto Z3CPh; QkQDl: if (!($rule['RuleType'] == 4)) { goto m_b_d; } goto tl3QC; HL9Vq: $params = array("park_id" => $parklot['pc_plotid'], "emp_name" => $parkpay['realname'], "emp_moblie" => $parkpay['mobile'], "plate_number" => $parkpay['carno'], "cartypeid" => $cartype, "carmodelid" => $carmodel, "begindate" => date('Y-m-d H:i:s', $parkpay['starttime']), "enddate" => date('Y-m-d H:i:s', $parkpay['endtime'])); goto iJMpk; DXN1R: YEFrK: goto MRrGX; EAjFy: if (!($res['successCode'] == '100')) { goto fKRGg; } goto PCGqr; Xc5FF: $set['url'] = 'app/UpMonCar.aspx'; goto Yvwmj; QmBjY: Axw1A: goto sYObZ; QTPja: if ($res['code'] == 1) { goto VR5Dk; } goto sL0xF; J4aQR: KrXFl: goto Iiq1v; rw9Ua: gMWOp: goto ZAsAK; m7JSp: return array(1, "操作成功"); goto MqQek; hfbxq: if ($res['ecode'] == 0) { goto OMeSb; } goto O2XOv; nSdPM: if (empty($res['data']['records'])) { goto UXUqf; } goto ZWldb; Rkrjl: goto qqr0m; goto l39Wr; sRHum: $params = array(); goto pAcTE; aBAy1: $res = $ymcar->monthCar_User($params); goto FvhgF; DBTs0: ZrGLV: goto syORJ; E82qV: $params = array("parkKey" => $parklot['pc_plotid'], "carNo" => $parkpay['carno'], "mthChargeMoney" => $parkpay['fee'], "beginTime" => date('Y-m-d H:i:s', $parkpay['starttime']), "endTime" => date('Y-m-d H:i:s', $parkpay['endtime'])); goto pTOSm; SPMCM: sugmv: goto qYcz5; At54g: Ya6If: goto BuPXO; WXn38: cBvuk: goto JG2Rj; NRWrO: myload()->classs('ymcar'); goto QptRD; DWR3R: u9VyY: goto SJaJK; Cwxbc: $resmsg = $res['ReMsg']; goto Xtn7s; f6IT6: $lanelist = $res['LaneList']; goto UGvZe; oYymq: Sdpyi: goto JpGGq; op8_l: if ($parklot['pc_type'] == 7) { goto Ry8HA; } goto qCE1q; MRrGX: aSg9P: goto VvwIE; mCbXv: return array(0, "未启用云停车"); goto rF1nG; DDDQ2: Hi0Vw: goto XjpCj; km8HD: myload()->classs('hmcar'); goto XC148; KiiNc: return array(0, "月卡规则未建立"); goto UZqYy; KYUl_: $params = array(); goto rZQVv; l39Wr: e5vLN: goto f6IT6; ZWldb: $params['type'] = 2; goto iMFEl; f7aHT: $api_setting = iunserializer($region['api_setting']); goto DLmqp; eEdBj: oAKA3: goto MjUnU; p88rx: $params = array("parkId" => $parklot['pc_plotid'], "type" => 1, "carNum" => $parkpay['carno']); goto uCEvc; nZ5aD: R4IqI: goto JAIg5; lc5Xk: BWGLH: goto OLlAA; FPL_O: $params = array("park_id" => $parklot['pc_plotid']); goto qtzmk; uuLxX: $set = array("url" => "parking/findCarList/", "accessKeyID" => $region['pc_appid'], "accessKeySecret" => $region['pc_secret'], "commKey" => $parklot['pc_plotid']); goto etLg4; i9Gqt: IeeeB: goto FDfpr; qCE1q: if ($parklot['pc_type'] == 8) { goto usDQ7; } goto FaBPO; PAvkf: qRN4K: goto xnRSM; FDfpr: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $parkpay['weid'], "id" => $parkpay['id'])); goto pNTCZ; BQkms: global $_W; goto nacuS; VQEPd: if ($res['code'] == 1) { goto RmgsL; } goto NHhBx; uEqvo: $params['updateCreateParamItems'] = array(array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "expireTime", "value" => $parkpay['endtime']), array("name" => "realType", "value" => 1)); goto bTIWw; nsqVd: yL4jj: goto mQ3tg; nwP2y: $params['updateCreateParamItems'] = array(array("name" => "plgId", "value" => !empty($parklot['pc_secret']) ? $parklot['pc_secret'] : $region['pc_rid']), array("name" => "name", "value" => $parkpay['realname']), array("name" => "phone", "value" => $parkpay['mobile']), array("name" => "licensePlateType", "value" => 0), array("name" => "licensePlate", "value" => $parkpay['carno']), array("name" => "psId", "value" => $res['psId']), array("name" => "plId", "value" => $parklot['pc_plotid'])); goto VjV1L; bCEXN: goto HnCkq; goto rw9Ua; nd5i6: $res = etpcar_http_post($set, $params, $parklot['ctpcar_url']); goto GMnLf; bHLFp: eW61k: goto tcR5p; CgNRt: Tnecj: goto k833t; Z7nDt: $params = array("parkId" => $parklot['pc_plotid'], "carNum" => $parkpay['carno'], "startTime" => date('Y-m-d', $parkpay['starttime']), "endTime" => date('Y-m-d', $parkpay['endtime']), "userPhone" => $parkpay['mobile'], "userName" => $parkpay['realname'], "loginUserName" => $parkpay['mobile'], "rechangeFee" => $parkpay['fee'] * 100); goto BmWEn; BuPXO: oCuni: goto nG6es; KHgKY: return array(1, "操作成功"); goto Po6dp; koAKP: $params = array("parkKey" => $parklot['pc_plotid'], "carNo" => $parkpay['carno'], "userNo" => $res['data']['userNo']); goto jq2Vy; X14Hh: wncjm: goto NRWrO; nacuS: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid = :weid and id=:rid'; goto n7vaU; JUfXS: $res = $ebcar->monthCar_PayNotify($params); goto rXFsp; Bx2pa: R8fet: goto TZF3Y; l3PIG: } public function del_door_face($door) { goto yLNqK; R3LKZ: goto geUX0; goto miVfq; xEsHV: goto dNJ40; goto KEcl7; bvSZN: if ($ret['code'] == 1) { goto TuU1X; } goto FiK0p; NzapO: myload()->classs('trudian'); goto KQ60d; zsJbx: return is_error('-1', $ret['code'] . $ret['msg']); goto m_8mo; mO7pZ: myload()->classs('thinmoo'); goto VdjWE; xxPJF: if ($door['doortype'] == 2) { goto VnyJP; } goto nNYKg; OLW8f: MAEfJ: goto JPPqa; G4n5b: if ($ret['code'] == 1) { goto m_Kz8; } goto zsJbx; AgoBp: goto dNJ40; goto hqauc; eTA4x: $member = pdo_get('mc_members', array("uniacid" => $door['weid'], "uid" => $door['uid']), array("mobile")); goto S1AhP; SmmCm: $ret = Park_httpPost_face($this->syscfg['siteurl'], $data); goto CuRey; jxfU8: $data = array("localId" => $door['locksn'], "cardSN" => $door['userid']); goto IBZWg; cVffG: A0e2K: goto mO7pZ; yJwcN: OM6Jz: goto xEsHV; QRXTZ: if ($door['doortype'] == 9) { goto vLt8y; } goto DS31V; S1AhP: $data = array("token" => $res['access_token'], "typeid" => 301, "tel" => $member['mobile'], "devid" => $door['locksn']); goto SmmCm; Ekhkl: $set = array("mailin_appid" => $region['mailin_appid'], "mailin_secret" => $region['mailin_secret'], "mailin_token" => $region['mailin_token']); goto ew3xB; XbqBS: $res = $thinmoo->delete_user($data); goto ALJAP; HY1L4: goto MAEfJ; goto kNELH; lHQsZ: goto DY5L8; goto WEgpN; JPPqa: goto dNJ40; goto cVffG; CuRey: if ($ret['code'] == 1) { goto lSaOx; } goto ErFI0; DS31V: goto dNJ40; goto iZX00; Yfwod: $thinmoo = new ThinMoon($region); goto P9Y0i; VynsM: if (empty($res['access_token'])) { goto OM6Jz; } goto eTA4x; Qq28E: $ret = Park_httpPost_face($this->syscfg['siteurl'], $data); goto WKwar; P72CD: return error(-1, $res['msg']); goto Y42qs; AKI3a: $region = pdo_get('rhinfo_zyxq_region', array("weid" => $door['weid'], "id" => $door['rid']), array("mailin_appid", "mailin_secret", "mailin_token", "thinmoo_appid", "thinmoo_secret", "thinmoo_token", "trudian_appid", "trudian_secret")); goto xxPJF; KQ60d: $trudian = new Trudian($region); goto jxfU8; msfkp: BfxV7: goto tXoix; Y42qs: kcxeY: goto AgoBp; EuxVS: dNJ40: goto Y00wV; tS7zc: Pn3r0: goto VL1Aq; efD58: return $res; goto EuxVS; kNELH: F3EQY: goto OLW8f; ALJAP: return $res; goto bGddn; P9Y0i: $post_data = array("extCommunityUuid" => $region['id'], "ids" => $door['userid'], "uuids" => $door['uid']); goto iisJz; xoiHD: $data['typeid'] = 204; goto C8c4o; uV8VG: return true; goto Vuv7a; hr13E: if ($door['doortype'] == 12) { goto BfxV7; } goto QRXTZ; hqauc: vLt8y: goto NzapO; wTfjt: $ret = Park_httpPost_face($this->syscfg['siteurl'], $data); goto bvSZN; wkk0h: $res = Park_GetToken($this->syscfg['siteurl'], $post_data); goto VynsM; dLSlN: return $res; goto pnnXi; VdjWE: $thinmoo = new ThinMoo($region); goto mJlpG; KEcl7: y3arA: goto Ekhkl; WKwar: if ($ret['code'] == 1) { goto xvAJb; } goto tQGJh; Mp9_E: geUX0: goto yJwcN; yLNqK: if (!($door['devtype'] == 3 && $door['status'] == 1)) { goto DfrDy; } goto AKI3a; qTlJP: DY5L8: goto tS7zc; FiK0p: return is_error('-1', $ret['code'] . $ret['msg']); goto GPJcZ; mJlpG: $data = '{
					"ids":[' . $door['userid'] . ']
				  }'; goto XbqBS; yC1WA: if ($res['state'] == 1) { goto F3EQY; } goto gW4bP; nNYKg: if ($door['doortype'] == 5) { goto y3arA; } goto rPoOt; iZX00: VnyJP: goto m2Idx; bGddn: goto dNJ40; goto msfkp; yUlFM: $data = array("token" => $res['access_token'], "typeid" => 400, "tel" => $member['mobile'], "devid" => $door['locksn'], "flag" => "02"); goto wTfjt; Y00wV: DfrDy: goto uV8VG; ErFI0: return is_error('-1', $ret['code'] . $ret['msg']); goto R3LKZ; iisJz: $res = $thinmoo->del_user($post_data); goto rDDv6; m_8mo: goto DVXbk; goto dJZux; GPJcZ: goto Pn3r0; goto BckHU; dJZux: m_Kz8: goto yUlFM; pnnXi: v_tLv: goto goeQ8; rPoOt: if ($door['doortype'] == 6) { goto A0e2K; } goto hr13E; gW4bP: return is_error('-1', $res['return_data']); goto HY1L4; rDDv6: if (!is_error($res)) { goto v_tLv; } goto dLSlN; uR4vA: $post_data = array("m" => "do", "f" => "face", "a" => "face_delete", "face_img" => $faceimg, "userId" => $door['userid'], "device_sncode" => $door['locksn']); goto eIfTm; C8c4o: $ret = Park_httpPost_face($this->syscfg['siteurl'], $data); goto G4n5b; ew3xB: $faceimg = IA_ROOT . '/attachment/' . $door['faceimg']; goto uR4vA; goeQ8: if (!$res['code']) { goto kcxeY; } goto P72CD; tXoix: myload()->classs('thinmoon'); goto Yfwod; miVfq: lSaOx: goto xoiHD; m2Idx: $post_data = array("apiid" => $this->syscfg['bl_apiid'], "apikey" => $this->syscfg['bl_apikey']); goto wkk0h; FBWoM: $data = array("token" => $res['access_token'], "typeid" => 401, "tel" => $member['mobile'], "devid" => $door['locksn'], "flag" => "02"); goto Qq28E; IBZWg: $res = $trudian->del_face($data); goto efD58; eIfTm: $res = mailin_http_post_face($set, $post_data); goto yC1WA; tQGJh: return is_error('-1', $ret['code'] . $ret['msg']); goto lHQsZ; WEgpN: xvAJb: goto qTlJP; BckHU: TuU1X: goto FBWoM; VL1Aq: DVXbk: goto Mp9_E; Vuv7a: } public function successResult($data) { goto I3TWI; I3TWI: $errno = 0; goto eQLsH; eQLsH: $message = 'sucess'; goto RdUqJ; RdUqJ: exit(json_encode(array("errno" => $errno, "message" => $message, "result" => $data))); goto HfGtX; HfGtX: } public function errorResult($message) { goto GhR52; GhR52: $errno = 1; goto TLjui; ImOQB: exit(json_encode(array("errno" => $errno, "message" => $message, "result" => $data))); goto BNt3s; TLjui: $data = ''; goto ImOQB; BNt3s: } public function payResult($params) { goto kC4NG; e0pGY: nmVsk: goto kb51N; r0FmB: $set['url'] = 'app/upOpenCmd.aspx'; goto qAEEf; c_gN9: goto Pap9_; goto iTIKJ; ARJEq: $sql = 'update ' . tablename('rhinfo_zyxq_property') . ' set onhand = onhand + ' . $mycredit . ', inqty= inqty + ' . $mycredit . ', intime = ' . TIMESTAMP . ' where  weid = :weid and id=:pid'; goto nRH2A; Z15J8: $params = array("cardNo" => $tag['carno'], "orderNo" => $res['orderNo'], "realMoney" => $fee, "payType" => 1, "payTime" => time(), "reduceCost" => 0); goto EDSjX; iyFmJ: $credit_data = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "io" => 1, "credit" => $mycredit, "title" => "用积分抵扣费用", "openid" => $log['openid'], "status" => 1, "cuid" => 0, "ctime" => TIMESTAMP); goto n1uPj; P_IGa: $res = ylb_http_post($set, $params); goto B6eLf; aokFK: RW594: goto aOJ72; QBErI: $rela_parking = pdo_get('rhinfo_zyxq_parking', array("weid" => $log['uniacid'], "rid" => $parklot['rid'], "carno" => $tag['carno'])); goto YRRIl; Hg2GZ: $credit_data = array("weid" => $log['uniacid'], "pid" => $room['pid'], "rid" => $room['rid'], "io" => 2, "credit" => $task['credit1'], "title" => "邀请到店消费,完成任务赠送积分", "openid" => $parent['openid'], "uid" => $parent['uid'], "status" => 1, "cuid" => 0, "ctime" => TIMESTAMP); goto MA3OQ; NOf8q: $this->mysyslog(0, 'error', '停车办理月卡', '月卡延期失败' . $tag['carno'], '操作失败' . $resmsg['ErrMsg']); goto IjuWH; pcsNP: goto nxkHk; goto E0Yag; CIr4h: EthIg: goto x69gS; VLorA: $timestr = !empty($days) ? $days . '天' : ''; goto daGgf; F7z83: $daterange = date('Y-m', $maxdate); goto ZBU6L; aOQhy: JMS3w: goto zKl3L; eJbmS: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '月卡有效期' . $tag['startdate'] . '~' . $enddate . ',感谢支持')); goto qIt2Q; ToH1T: $sql = 'select max(printpznum) from' . tablename('rhinfo_zyxq_carbill') . ' where weid = :weid and rid=:rid and printpznum like \'' . $pznopre . '%\''; goto rxS5G; Zg50g: a0Bnj: goto ojhg0; Afmc1: $teams = pdo_fetchall($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto bPO2i; Y7l8J: $mywechat['apiclient_cert'] = $this->syscfg['apiclient_cert']; goto mLGNF; LRFpd: $sql = 'select * from ' . tablename('rhinfo_zycj_express_store') . ' where weid=:weid and id = :id'; goto Dw_O7; BFEt4: if (!($region['onhand'] >= $feecredit)) { goto X287J; } goto I_BEj; H_vnA: if (empty($this->syscfg['businesstplid'])) { goto iMpsQ; } goto Ve00C; UbEhU: $whitelist = pdo_get('rhinfo_zyxq_car_whitelist', array("weid" => $log['uniacid'], "parklotid" => $tag['parkid'], "carno" => $tag['carno'])); goto gLGDo; G5OCi: $res = ylb_http_post($set, $params); goto CIr4h; dX5UV: EJIm1: goto D2ef_; Xvw9R: $res = $yktcar->tempCar_PayNotify($params); goto pZG07; eWFzR: $pznopre = 'CAR' . $tag['rid'] . '-'; goto ToH1T; VBUU1: $postdata = array("first" => array("value" => "月卡延期异常通知"), "keyword1" => array("value" => $tag['carno'], "color" => $topcolor), "keyword2" => array("value" => date('Y-m-d H:i'), "color" => $textcolor), "keyword3" => array("value" => '操作失败' . $res['msg'], "color" => $textcolor), "remark" => array("value" => "月卡延期失败,请确认!")); goto rMpwM; WO2RL: if ($parklot['pc_type'] == 1) { goto TtURY; } goto Vah6h; rmSMS: $postdata = array("first" => array("value" => "智能充电通知"), "keyword1" => array("value" => "充电开始", "color" => $topcolor), "keyword2" => array("value" => date('Y-m-d H:i'), "color" => $textcolor), "keyword3" => array("value" => '还剩充电时间' . $post_data['time'] . '分钟', "color" => $textcolor), "remark" => array("value" => "您的爱车已经开始充电,请耐心等待!")); goto duI8m; M2rwI: nQ_gL: goto xZ3vW; EtJNN: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto e4iOZ; Ia_Vn: if (!($feecredit > 0)) { goto s4t5x; } goto Q0vd_; hzdhA: $credit = intval($fee * $business['credit'] / $business['cost']); goto v6MhM; FJ3hk: if (empty($this->syscfg['tplid1'])) { goto VAZAO; } goto FzFuU; O1nRo: $content .= '车主:' . $tag['realname'] . '\\n'; goto ohWMw; ucbUu: eQCqQ: goto cpPXw; JP6L9: $content1 .= '车主:' . $tag['realname'] . '<BR>'; goto VLFfy; uvWmW: return; goto WvNxD; o_Z5p: pNYsp: goto WO2RL; bZOO9: $content1 = '<CB>交费通知单</CB><BR>'; goto X0PyU; icXzd: $params = array("park_id" => $parklot['pc_plotid'], "emp_name" => $tag['realname'], "emp_moblie" => $tag['mobile'], "plate_number" => $tag['carno'], "cartypeid" => $cartype, "carmodelid" => $carmodel, "begindate" => date('Y-m-d H:i:s', strtotime($tag['startdate'])), "enddate" => date('Y-m-d H:i:s', strtotime($enddate))); goto smLjP; RcZNm: $addmonths = $addmonths * $parklot['givemonths']; goto hbmnR; C7Qbs: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto jLkvm; YOLra: $timediff = TIMESTAMP - $tag['intime']; goto vWmQj; VpDFI: dpA6y: goto YjfQZ; VjEWE: $params = array("parkId" => $parklot['pc_plotid'], "type" => 1, "carNum" => $tag['carno']); goto o2J6w; aBBx4: pdo_query($sql, array(":weid" => $_W['uniacid'], ":id" => $coupon['objectid'])); goto H7RBG; i9ihi: $url = $this->createMobileUrl('home', array("op" => "index")); goto ZwQdA; ZAZwX: $topcolor = empty($this->syscfg['topcolor']) ? '#FF683F' : $this->syscfg['topcolor']; goto grBMq; WJqWN: $params['type'] = 2; goto eSvpb; sH73A: if ($park['pc_type'] == 11) { goto LddlV; } goto tSML8; sJHSg: $timestr .= !empty($minutes) ? $minutes . '分钟' : ''; goto l04Qg; hi5Vl: $amount = 0; goto ilURx; yV3q0: $minutes = intval($timediff % 86400 % 3600 / 60); goto OAGDd; hd5aP: if (!$res) { goto CS9Tn; } goto kiUfq; lSRga: if ($res['ecode'] == 0) { goto RW594; } goto Qy3Hd; Glh2J: pjre5: goto gWdKR; KfQ3R: goto rK9nj; goto Zi1pL; K1ic4: $url = $this->createMobileurl('service', array("op" => "credit1")); goto UhrKL; bjpLA: $mybilldate = empty($mybilldate) ? strtotime($tag['startdate']) : strtotime('+ 1 day', $mybilldate); goto zzUXq; mjEOU: if (empty($house)) { goto C_y0N; } goto gspLi; p0aS3: if (empty($this->syscfg['businesstplid'])) { goto X3jJe; } goto IqvSm; mVH8Y: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_mycar') . ' where weid=:weid and uid=:uid and carno=:carno'; goto thrZL; gKROA: $params = array("token" => $this->syscfg['ylb_token'], "id" => $business['ylbid'], "uid" => 'rhinfo_' . $business['ylbid'], "price" => intval($fee * 100)); goto G5OCi; T4O7K: $data_car = array("weid" => $log['uniacid'], "uid" => $tag['payuid'], "openid" => $log['openid'], "carno" => $tag['carno'], "ctime" => TIMESTAMP); goto HDeh6; UcYSq: $sql = 'SELECT `key`,`secret` FROM ' . tablename('account_wechats') . ' WHERE `acid`=:acid'; goto CUhJX; krPgq: $params = array("token" => $this->syscfg['ylb_token'], "id" => $region['ylbid'], "uid" => 'rhinfo_' . $region['ylbid'], "price" => intval($fee * 100)); goto UhBaX; DlOKj: $content .= '周期:' . $daterange . '\\n'; goto gGr26; tQb45: $set['ds_appid'] = $this->syscfg['ds_appid']; goto ebqYV; ESGkF: myload()->classs('yktcar'); goto ec7xP; q3twR: goto xo23I; goto Jnvi_; oAl3w: $days = intval($timediff / 86400); goto kFcPa; TK7Gu: $region = pdo_fetch('select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid', array(":weid" => $log['uniacid'], ":rid" => $tag['rid'])); goto NCsb2; V7I1R: $hours = intval($timediff % 86400 / 3600); goto U3fYu; A7F3I: if ($parklot['pc_type'] == 4) { goto ZF7bb; } goto UEOhb; yJDXQ: $data['price'] = floatval($parklot['monthcardprice']); goto XyWPm; jLkvm: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto wPjDY; NNdS5: $set = array("url" => "app/UpPayNotify.aspx", "parkno" => $park['pc_plotid'], "secret" => $park['pc_secret']); goto Je2kC; ws_Be: $topcolor = empty($this->syscfg['topcolor']) ? '#FF683F' : $this->syscfg['topcolor']; goto KBfuM; grlTJ: goto z3cMm; goto A1VkX; XyWPm: $data['fee'] = $fee; goto bgYBo; Qy5y1: $total = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":uid" => $tag['payuid'], ":carno" => $tag['carno'])); goto GyOgV; xNIvf: $content .= '金额:' . $fee . '元\\n'; goto DlOKj; srD2n: $region = pdo_fetch('select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid', array(":weid" => $log['uniacid'], ":rid" => $tag['rid'])); goto UsPIq; LDnYl: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => "车辆预充值,感谢支持")); goto OI8oP; larvx: $sql = 'update ' . tablename('rhinfo_zycj_coupon_object') . ' set usedqty = usedqty + 1  where weid=:weid and id=:id'; goto a1XKu; pm9yj: $paytypetxt = $this->paytype; goto caj97; paIBG: $res = icar_post_updateposid($set, $params); goto pFrhS; UdZvy: $coupon = pdo_get('rhinfo_zycj_coupon_member', array("weid" => $log['uniacid'], "id" => $tag['couponid'])); goto EanEM; J7CtX: goto XrtCX; goto z9EsI; sl401: N3E0Q: goto a48na; i5G4n: MWQoF: goto mS_9r; DB8le: eMAvm: goto Eo9Vk; i1sLE: pdo_query($sql, array(":weid" => $_W['uniacid'], ":id" => $coupon['objectid'])); goto PTqb2; qiBqi: $minutes = intval($timediff % 86400 % 3600 / 60); goto QeBQ5; nDNDx: $content = '<FB><center>交费通知单</center></FB>\\n'; goto BhVR2; Z1Rsl: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto HIIkb; xQzSW: $paymethod = '支付方式:支付宝\\n'; goto zao3_; yEpa1: pdo_query($sql, array(":weid" => $log['uniacid'], ":pid" => $room['pid'])); goto plzgV; jkU6o: $set['url'] = 'api/queryCreatMonthCardData.action'; goto VjEWE; NbHPZ: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '月卡有效期' . $tag['startdate'] . '~' . $enddate . ',感谢支持')); goto gECis; h_TI0: iMpsQ: goto VJO7O; dhO0P: mRpcg: goto P_ZU6; CCL1O: $mindate = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto LXFgL; GaVHS: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $log['uniacid'], "id" => $parkpayid)); goto X7i6J; i4tHt: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $log['uniacid'], "id" => $parkpayid)); goto eXG53; LTd7_: $total = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":pid" => $region['pid'], ":rid" => $region['id'], ":carno" => strtoupper($_GPC['carno']))); goto xzafe; EoIzh: SSyN2: goto YcFXc; OAB2S: $this->send_mysendtplnotice($this->syscfg['openid'], $this->syscfg['tplid1'], $postdata, $url, $topcolor); goto ep5hG; ZDIND: myload()->classs('ymcar'); goto wZN0W; fuDs3: if (!($total == 0)) { goto OToUz; } goto B41dO; aBsb3: $credit_log_data = array("weid" => $log['uniacid'], "io" => 4, "credit" => $retcredit, "title" => $_GPC['title'], "uid" => $tag['payuid'], "openid" => $log['openid'], "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto MvRFT; Kb2GH: $parklot['pc_type'] = !empty($parklot['pc_type']) ? $parklot['pc_type'] : $region['pc_type']; goto fsovU; GRsMZ: $data_parkpay = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "parklotid" => $tag['parkid'], "title" => "办理月卡", "category" => 2, "starttime" => strtotime($tag['startdate']), "endtime" => strtotime($enddate), "carno" => $tag['carno'], "mobile" => $tag['mobile'], "realname" => $tag['realname'], "idcard" => $tag['idcard'], "fee" => $fee, "status" => 1, "payno" => $tag['ordersn'], "paytype" => $paytype[$log['type']], "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto MBI__; EMnel: lorQq: goto fepED; jJrLO: return; goto j_YlD; Xe2yd: $set['url'] = '/service/charge/startCharge.do'; goto IcrIz; pIOPr: $region = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto UfbES; tysWU: $res = $res['ReMsg']; goto nxDV2; Fc3Bw: $res = $jielink->monthCar_AddModify($params); goto zrDjY; ZsaJF: jwD3l: goto jKxIB; OY8Gi: pdo_insert('rhinfo_zyxq_mycar', $data_car); goto PNrDj; Y3LBh: pdo_insert('rhinfo_zyxq_paylog', $data); goto J8Dm0; mgNcs: $post_data['pay_fee'] = intval($fee * 100); goto H0FMs; QY9Ny: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $log['uniacid'], "id" => $parkpayid)); goto wn5hr; MF7j2: $set = array(); goto uCMM5; V39If: LcQfq: goto IA54w; PQpeE: if (empty($this->syscfg['tplid1'])) { goto dpA6y; } goto z2D5w; BuwpJ: foreach ($feebillids as $value) { goto NWj3V; PhGBv: $sql = 'select * from ' . tablename('rhinfo_zyxq_carbill') . ' where id = :id and weid = :weid'; goto H_YuX; CbmZY: Fa_DR: goto JfSe8; vf71b: $set['app_auth_token'] = $region['lifepay_token']; goto MahlX; JfSe8: grBg3: goto eAnEL; Epm5r: $set['app_id'] = $this->syspub['alipay_appid']; goto vH2VW; X3FV6: $senddetail .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . ','; goto vgBTp; VsPFX: $set = array(); goto Epm5r; vH2VW: $set['prikey'] = $this->syspub['alipay_rsa2']; goto vf71b; MahlX: $set['method'] = 'bill.delete'; goto Bf1iN; NWj3V: $sql = 'update ' . tablename('rhinfo_zyxq_carbill') . ' set status = 2, payfee = ' . $fee . ', paytype = ' . $paytype[$log['type']] . ', paydate = ' . TIMESTAMP . ', payuid =' . $tag['payuid'] . ', printpznum="' . $printpznum . '", payno="' . $params['uniontid'] . '" where  weid = :weid and id=:billid'; goto OGUK3; ubpsa: $printdetail .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . '\\n'; goto HhVvw; OGUK3: pdo_query($sql, array(":weid" => $log['uniacid'], ":billid" => $value)); goto PhGBv; vgBTp: if (!($log['type'] != 'alipaylife' && $item['isalipay'])) { goto Fa_DR; } goto VsPFX; Bf1iN: $params = '{
							"community_id":"' . $region['lifepay_rid'] . '",
							 "bill_entry_id_list":[
								"' . $value['id'] . '"
								]
							  }'; goto Cc6Us; H_YuX: $item = pdo_fetch($sql, array(":id" => $value, ":weid" => $log['uniacid'])); goto ubpsa; HhVvw: $printdetail1 .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . '<BR>'; goto X3FV6; Cc6Us: my_alipay_life($set, $params); goto CbmZY; eAnEL: } goto Zw7aL; TnW08: $sql = 'select t.* from ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.weid=:weid and t.pid = :pid and t.rid = :rid and c.right12=1 and c.type=4'; goto ZAQMQ; sX6KG: $region = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto AcxBa; ndUqU: $url = $this->createMobileUrl('home', array("op" => "index")); goto anAx8; o_3Ju: $total = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":uid" => $tag['payuid'], ":carno" => $tag['carno'])); goto UDI7s; Fa4nr: AW11M: goto Irh0F; Bm4fy: $minutes = intval($timediff % 86400 % 3600 / 60); goto VLorA; ZBfK6: $this->mysyslog(0, 'error', '车辆预充值', '充值异常' . $tag['carno'], '操作失败' . $res['result'] . $res['errorCode']); goto auda7; PhKXb: $url = $this->createMobileUrl('express', array("op" => "mindex", "sid" => $tag['sid'])); goto JsJM9; MvRFT: pdo_insert('rhinfo_zycj_platform_credit_log', $credit_log_data); goto XCxEj; wNNO8: $smslog_data = array("weid" => $log['uniacid'], "sid" => $tag['sid'], "compid" => 0, "expid" => 0, "title" => '短信充值' . $tag['smsqty'] . '条', "io" => 1, "mobile" => "", "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto xFVnO; kC4NG: global $_W, $_GPC; goto ECG6b; Qdkb5: $set = array(); goto ADTY2; E6n1d: HnQUb: goto XzwOk; mJ2Yp: $addmonths = $addmonths * $parklot['givemonths']; goto kmKhC; CvZDa: goto RreUA; goto PVncO; Uxk03: goto h9EQy; goto CAFoT; HwbE1: F9ebD: goto Nu52z; FZpcx: $set['pc_secret'] = $region['pc_secret']; goto jkU6o; o0ziZ: $sql = 'select t.* from ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.weid=:weid and t.pid = :pid and t.rid = :rid and c.right12=1 and c.type=4'; goto Afmc1; bBPtl: $url = $this->createMobileUrl('home', array("op" => "index")); goto QsMMX; K1Ryz: $minutes = intval($timediff % 86400 % 3600 / 60); goto ZafLi; z2D5w: $url = $this->createMobileUrl('car', array("op" => "remonthcard", "id" => $parkpayid)); goto iSCIx; ZgXpD: if ($res['successCode'] == '100') { goto CyzLq; } goto mearx; mslsD: $parkpayid = pdo_insertid(); goto ZGTyQ; UJzm_: $rule = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":chargid" => $tag['chargid'], ":ruleid" => $tag['ruleid'])); goto pROVO; rXaAq: $url = $this->createMobileUrl('home', array("op" => "index")); goto IEDFZ; YF7k2: $res = deliyun_http_post($set, $params); goto guDiX; IA54w: if (!($tag['feetype'] == 8)) { goto MWQoF; } goto gLUGl; c04qn: $senddetail = ''; goto ESo07; kQH6T: mWM_E: goto ESGkF; vJ8ZR: gTOM9: goto HVmKY; qxRvZ: goto e1EyD; goto niwX0; WEdIU: $content1 .= $printdetail1; goto W3XEb; csqUJ: rK9nj: goto uriiB; qDD8B: $parklot = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":rid" => $tag['rid'], ":parkid" => $tag['parkid'])); goto UiJKa; Y7Iid: $minutes = intval($timediff % 86400 % 3600 / 60); goto awbOI; hP1Ir: BG50W: goto qa8cT; Cg9_3: $topcolor = empty($this->syscfg['topcolor']) ? '#FF683F' : $this->syscfg['topcolor']; goto az359; c1qTO: $params['updateCreateParamItems'] = array(array("name" => "plgId", "value" => !empty($parklot['pc_secret']) ? $parklot['pc_secret'] : $region['pc_rid']), array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "name", "value" => $tag['realname']), array("name" => "bltId", "value" => $parklot['precarid']), array("name" => "csId", "value" => $parklot['cloudruleid']), array("name" => "phone", "value" => $tag['mobile']), array("name" => "balance", "value" => $fee), array("name" => "licensePlateType", "value" => 0), array("name" => "licensePlate", "value" => $tag['carno']), array("name" => "bookEndDate", "value" => strtotime('+1 years'))); goto c2K1z; jh4v3: $car_data = array("weid" => $log['uniacid'], "pid" => $region['pid'], "rid" => $region['id'], "carno" => $tag['carno'], "title" => $tag['carno'], "ownername" => $tag['realname'], "mobile" => $tag['mobile'], "uid" => $tag['uid'], "openid" => $log['openid'], "cuid" => $tag['uid'], "ctime" => TIMESTAMP); goto O2DC1; osgZ0: smbXr: goto ESSLN; Z22Tf: $printpznum = $pznopre . $printpznum; goto vcO6i; rQWdT: dtL6B: goto DZBQN; KkzHC: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '月卡有效期' . $tag['startdate'] . '~' . $enddate . ',感谢支持')); goto f4VFA; tJ4Be: if (empty($this->syscfg['businesstplid'])) { goto oJnPB; } goto VYQxJ; IR6CV: if (empty($this->syscfg['businesstplid'])) { goto YkrhY; } goto ro9R3; mqPYz: $content1 .= $parklot['title'] . '<BR>'; goto jl3yW; GzriL: myload()->model('member'); goto KHmbG; vtQ7O: GO1vl: goto KsRPQ; NWQSW: WES_n: goto wqA2Z; ZofXQ: $parkpayid = pdo_insertid(); goto NVnXt; UxZuw: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $log['uniacid'], "id" => $parkpayid)); goto jJlWw; ZGTyQ: if (empty($tag['recordid'])) { goto LSbA_; } goto esObh; e4iOZ: $this->send_mysendtplnotice($business['openid'], $this->syscfg['businesstplid'], $postdata, $url, $topcolor); goto lgi8R; caj97: $this->syscfg = pdo_get('rhinfo_zyxq_sysset', array("weid" => $params['uniacid'])); goto dolGm; Ca9hf: $data['daterange'] = date('Y-m', $data['startdate']) . '~' . date('Y-m', $data['enddate']); goto mei0C; TxAv5: $postdata = array("first" => array("value" => $park['title'] . '(' . $park['address'] . ')'), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '停车时间' . $timestr . ',感谢支持')); goto A_Uhu; hl9RZ: mc_notice_credit1($log['openid'], $tag['payuid'], $feecredit, '交费' . $fee . '送' . $feecredit . '积分', $crediturl, '谢谢支持,点击查看详情'); goto wfWR_; onkg9: $content1 .= '交费类别:' . $feeitemtitle . '<BR>'; goto gwsfp; IvIzx: ok14h: goto YgJoX; nWLrV: if (empty($this->syscfg['businesstplid'])) { goto hUKOq; } goto i9ihi; vcO6i: foreach ($feebillids as $value) { goto dcSO6; HYacQ: $senddetail .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . ','; goto BIyHy; sIII3: $sql = 'select * from ' . tablename('rhinfo_zyxq_leasebill') . ' where id = :id and weid = :weid'; goto jXmm8; G_De5: pdo_query($sql, array(":weid" => $log['uniacid'], ":billid" => $value)); goto sIII3; D9Qbh: $printdetail1 .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . '<BR>'; goto HYacQ; BIyHy: Iyg40: goto X1rgw; j9vd5: $printdetail .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . '\\n'; goto D9Qbh; jXmm8: $item = pdo_fetch($sql, array(":id" => $value, ":weid" => $log['uniacid'])); goto j9vd5; dcSO6: $sql = 'update ' . tablename('rhinfo_zyxq_leasebill') . ' set status = 2, payfee =  ' . $fee . ', paytype = ' . $paytype[$log['type']] . ', paydate = ' . TIMESTAMP . ', payuid =' . $tag['payuid'] . ', printpznum = "' . $printpznum . '", payno="' . $params['uniontid'] . '" where  weid = :weid and id=:billid'; goto G_De5; X1rgw: } goto TBM1d; UTSFJ: goto ELeZg; goto dhO0P; az359: $textcolor = empty($this->syscfg['textcolor']) ? '#000' : $this->syscfg['textcolor']; goto eJbmS; eRQ7N: $coupon = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":parkid" => $business['parkid'], ":endtime" => strtotime(date('Y-m-d')))); goto E4H2r; getGy: if ($park['pc_type'] == 10) { goto BdFbk; } goto CvZDa; fbcyd: p11lS: goto hiMQE; hBvdN: $res = ipms_httpsign_post($set, $params, $parklot['ctpcar_url']); goto SM0Cx; Mn8pG: HINgg: goto Lz_Bo; I6Qew: $parkshare = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":id" => $tag['shareid'])); goto dQyQ_; QzTq4: if (!($params['result'] == 'success' && $params['from'] == 'notify')) { goto Weymv; } goto VRrMu; Lz_Bo: $content1 .= '时间:' . date('Y-m-d H:i') . '<BR>'; goto CgMWT; wAV9A: $parklot = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":rid" => $tag['rid'], ":parkid" => $tag['parkid'])); goto JSk4m; ILEyn: $addmonths = intval($tag['qty'] / $parklot['rechargmonths']); goto oHcY2; cZcZK: $res = mc_credit_update($parent['uid'], 'credit1', $task['credit1'], array(0, '邀请到店消费,完成任务赠送' . $task['credit1'] . '积分', "rhinfo_zyxq")); goto zJKkI; TqDWQ: $url = !empty($region['paysuccessurl']) ? $region['paysuccessurl'] : $url; goto VGwiT; cdJjT: MraML: goto UZyZ4; h3Cwn: if (!($selfdevice['devtype'] == 1)) { goto z9Z6x; } goto QREM7; bptU7: $params['searchParamsItems'] = array(array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "number", "value" => $tag['posid'])); goto GVZNi; cJHr9: xT9gC: goto CSmnV; a44ii: $params = array("recordId" => $tag['recordid']); goto MU1oG; pbmgj: if ($res) { goto NEMg6; } goto Ry2GJ; yPyOb: pdo_insert('rhinfo_zyxq_paylog', $data); goto mK7_s; tf_iD: $data_parkpay = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "parklotid" => $tag['parkid'], "title" => "车辆预充值", "category" => 4, "carno" => $tag['carno'], "mobile" => $tag['mobile'], "realname" => $tag['realname'], "fee" => $fee, "payno" => $log['tid'], "status" => 0, "paytype" => $paytype[$log['type']], "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto c4G4X; unUQj: p8oxX: goto DTVKu; kbKDv: $content1 .= '时间:' . date('Y-m-d H:i') . '<BR>'; goto BoppN; OSNQV: XE_D5: goto rhZVD; DjQl9: pdo_insert('rhinfo_zyxq_carbill', $data_bill); goto kx6wu; kpvvt: $house = get_mobile_house($tag['rid'], $tag['mobile'], 'room'); goto nDNDx; JsJM9: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto Z7kga; kiUfq: mc_notice_credit1($parent['openid'], $parent['uid'], $task['credit2'], '邀请到店消费,完成任务赠送' . $task['credit2'] . '元', $crediturl, '谢谢支持,点击查看详情'); goto GS9Wz; niwX0: KGcCY: goto AUqzo; hOY6V: return; goto YQM_r; vcWsb: if (empty($parklot['pc_plotid'])) { goto vfLm1; } goto ZDIND; vWmQj: $days = intval($timediff / 86400); goto Mo148; Ica_t: pdo_insert('rhinfo_zyxq_mycar', $data_car); goto VuiUW; ICFgn: if ($region['feebillmonth'] == 2) { goto MHhMX; } goto Ca9hf; hMDEh: $res = icar_post_createposid($set, $params); goto kwPiN; PY0Ys: $amount = mt_rand($task['minamount'], $task['maxamount']); goto K13zE; qBGUk: goto yg6it; goto LeWE0; fLztL: $sql = 'update ' . tablename('rhinfo_zycj_express_company') . ' set smsqty = smsqty +' . $tag['smsqty'] . ' where weid=:weid and id=:compid'; goto qA1qA; gGr26: if (empty($house)) { goto EZfP1; } goto PkEKQ; ueUEh: $cost_data = array("weid" => $log['uniacid'], "pid" => $log['pid'], "rid" => $log['rid'], "bid" => $member['bid'], "tid" => $member['tid'], "hid" => $member['hid'], "io" => 4, "cate" => $cate, "title" => $title, "itemid" => 0, "money" => $fee, "remark" => "在线预交", "status" => 0, "handledate" => TIMESTAMP, "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto oCM7C; rKzuU: $retcredit = round($credit * $business['retcredit'] / 100, 2); goto furaf; bVdul: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto LdDj6; vrVsS: goto Pap9_; goto fMhIa; h5hM6: $rule = pdo_fetch($sql, array(":weid" => $log['uniacid'], ":chargid" => $tag['chargid'], ":ruleid" => $tag['ruleid'])); goto hHCaW; BrXn7: $task_members = pdo_fetchall($sql, array(":weid" => $log['uniacid'], ":parentid" => $task['parentid'])); goto O7mZE; wN7Tj: $total = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":pid" => $region['pid'], ":rid" => $region['id'], ":carno" => strtoupper($_GPC['carno']))); goto Id0ck; E0Yag: viKGq: goto cf8Wb; m83xd: foreach ($teams as $team) { $this->send_mysendtplnotice($team['openid'], $this->syscfg['tplid1'], $postdata, $url, $topcolor); MUSvP: } goto cSBQ2; ex3d_: $res = mc_credit_update($tag['payuid'], 'credit1', $getcredit, array(0, "消费送积分", "rhinfo_zyxq")); goto eW_BA; wfWR_: R1ooJ: goto p_7cH; BhVR2: $content .= $parklot['title'] . '\\n'; goto UzvVc; sQbp8: $mywechat['mch_id'] = $wechat['mchid']; goto QB6td; aolZm: $this->mysyslog(0, 'error', '停车办理月卡', '月卡建立异常' . $tag['carno'], '操作失败' . $res['result'] . $res['errorCode']); goto tAH6h; SGDzy: if ($log['type'] == 'alipay') { goto Z0Ty9; } goto q5ppY; KsF8O: if (empty($this->syscfg['businesstplid'])) { goto wbkpI; } goto IPQ1O; mLGNF: $mywechat['apiclient_key'] = $this->syscfg['apiclient_key']; goto sDOau; nWCWL: $credit = intval($fee * $business['credit'] / $business['cost']); goto DXUsn; HJjum: gPuKh: goto O_VLT; fMbkK: d9dxd: goto jJX8q; Pr2f9: if (empty($parklot['pc_plotid'])) { goto GV4Ak; } goto DIcrK; R6as6: $params = array("parkKey" => $parklot['pc_plotid'], "carNo" => $tag['carno'], "mthChargeMoney" => $fee, "beginTime" => date('Y-m-d H:i:s', strtotime($tag['startdate'])), "endTime" => date('Y-m-d H:i:s', strtotime($enddate))); goto bcHXk; NGa_H: if ($tag['compid'] > 0) { goto uwLLR; } goto hNjEK; ExIiI: JO5w1: goto bHjeQ; NjD2I: $params = array("licensePlate" => $tag['carno'], "plgId" => !empty($park['pc_secret']) ? $park['pc_secret'] : $region['pc_rid'], "plId" => $park['pc_plotid'], "vehicleType" => 0, "prcId" => $tag['recordid'], "billCode" => $log['tid'], "paymoney" => $fee); goto inLrB; pIjRP: $days = intval($timediff / 86400); goto Sssot; rMk2B: $maxdate = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto MvVsl; GnglD: qv5wZ: goto bzLHg; fBKor: yq4yc: goto hzdhA; gnOkI: $addmonths = intval($tag['qty'] / $parklot['rechargmonths']); goto RcZNm; KMTEk: $textcolor = empty($this->syscfg['textcolor']) ? '#000' : $this->syscfg['textcolor']; goto VbVEy; wQiSS: $days = intval($timediff / 86400); goto V7I1R; xZm_T: $sql = 'select * from ' . tablename('rhinfo_zycj_task_member') . ' where weid=:weid and parentid=:parentid and status=0 '; goto BrXn7; furaf: $credit_log_data = array("weid" => $log['uniacid'], "io" => 4, "credit" => $retcredit, "title" => $_GPC['title'], "uid" => $tag['payuid'], "openid" => $log['openid'], "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto MoYvq; HCrRM: $data_bill['daterange'] = date('Y-m', $data_bill['startdate']) . '~' . date('Y-m', $data_bill['enddate']); goto VO19M; t7lIO: $this->mysyslog(0, 'error', '停车交费', '停车交费支付失败', '操作失败' . $res['messsage'] . $tag['recordid']); goto r9mxx; RMa_J: $secuser = pdo_fetchall($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto vJOMz; rICVC: $sql = 'select * from ' . tablename('rhinfo_zyxq_region') . ' where weid = :weid and pid=:pid and  id = :rid '; goto DrSKu; My524: dhMRz: goto x4Uvc; mVE0l: if (!($task['rewardtype'] == 3)) { goto MaGW4; } goto cMS4n; Ub9w9: pdo_update('rhinfo_zycj_coupon_member', array("status" => 1, "carno" => $tag['carno']), array("weid" => $log['uniacid'], "id" => $tag['couponid'])); goto fKgqR; Pcil4: ZF7bb: goto agXsl; MoYvq: pdo_insert('rhinfo_zycj_platform_credit_log', $credit_log_data); goto Yj3Nn; gP9zz: d9OfF: goto F7z83; jJX8q: epdQq: goto Uijvj; zao3_: $paymethod1 = '支付方式:支付宝<BR>'; goto btpUd; dBvJc: if (empty($parkinglot)) { goto koU65; } goto OK2QW; cf8Wb: $sql = 'select * from ' . tablename('rhinfo_zycj_charging_rule') . ' where weid=:weid and chargid = :chargid and id=:ruleid'; goto UJzm_; kq6sE: $timestr = !empty($days) ? $days . '天' : ''; goto tiBOp; xUWJJ: dfsE1: goto ZID0G; CG0as: OG2ta: goto mNZjF; RapPD: if (!($total == 0)) { goto sfw9Y; } goto lCCyp; yIxfi: $post_data['equipCd'] = $charging['devicesn']; goto PjX7Q; XwIws: $content .= '手机:' . $tag['mobile'] . '\\n'; goto tpRJl; K10tx: if (!($total == 0)) { goto jMXeM; } goto gZv8I; QHsfu: pdo_insert('rhinfo_zyxq_paylog', $data); goto ilfRE; bQ2Kc: if (!($log['type'] == 'wechat')) { goto Z72Md; } goto EhWq_; cnFf_: Cvvn7: goto mwb3H; itWVj: $this->send_mysendtplnotice($log['openid'], $this->syscfg['tplid1'], $postdata, $url, $topcolor); goto yOx_5; AUqzo: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_mycar') . ' where weid=:weid and uid=:uid and carno=:carno'; goto IgoWK; Q6xFz: pdo_update('rhinfo_zyxq_parkingiolog', array("status" => 1), array("weid" => $log['uniacid'], "lotid" => $tag['parkid'], "io" => 1, "uid" => $tag['payuid'])); goto OBKSV; OBIZy: $params = array("recordId " => $tag['recordid'], "carNum" => $tag['carno']); goto uZJWX; dEt0f: $data_bill = array("weid" => $log['uniacid'], "pid" => $parking['pid'], "rid" => $parking['rid'], "lid" => $parking['lid'], "cid" => $parking['id'], "title" => $parking['title'], "status" => 0, "remark" => ""); goto sNHrY; PeI8v: $sql = 'select t.* from ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.weid=:weid and t.pid = :pid and t.rid = :rid and c.right12=1 and c.type=4'; goto dsnyf; ZFiWO: lHcAm: goto kIj9f; JILFq: goto RI8FQ; goto VPmj3; Ifbh3: if ($res['code'] == 1) { goto T7abn; } goto VBUU1; Lxr5T: if ($task['minamount'] > 0 && $task['maxamount'] > 0) { goto QVkKY; } goto hi5Vl; nF3ny: $params = array("UserMobile" => $tag['mobile'], "UserName" => $tag['realname'], "RuleId" => $tag['ruleid'], "CarNo" => $tag['carno'], "TrdOrderNo" => $log['tid'], "PayMoney" => $fee, "TotalMoney" => $fee, "MonthBegin" => date('Y-m-d H:i:s', strtotime($tag['startdate'])), "MonthEnd" => date('Y-m-d H:i:s', strtotime($enddate)), "ParkCode" => $parklot['pc_plotid']); goto lTkq7; UjAlY: $enddate = $tag['enddate']; goto M6Sz3; NV15c: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_mycar') . ' where weid=:weid and uid=:uid and carno=:carno'; goto J8pVK; rMpwM: if (empty($this->syscfg['tplid1'])) { goto dfsE1; } goto sCqGw; fpErD: $url = $this->my_mobileurl($redpacket['url']); goto DaBxC; LAhuh: if (!($tag['feetype'] == 7)) { goto LcQfq; } goto rzOBL; Mo148: $hours = intval($timediff % 86400 / 3600); goto XE4Sd; tco57: $content .= $region['title'] . '\\n'; goto bZOO9; Ry2GJ: $this->mysyslog(0, 'error', '停车办理月卡', '月卡建立或延期失败' . $tag['carno'], '操作失败'); goto XMEe4; E4H2r: $coupon_data = array("weid" => $log['uniacid'], "couponid" => $coupon['couponid'], "uid" => $tag['payuid'], "objectid" => $coupon['id'], "status" => 0, "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto CRzBh; kaZS3: $res = $ymcar->Parking_UnVehicleOut($params); goto HUVSz; hRaDh: $timestr .= !empty($minutes) ? $minutes . '分钟' : ''; goto HO7UM; JLhPX: eGo1b: goto Z_nFb; pgr71: $set['userId'] = $region['pc_appid']; goto c77ZG; oExoQ: mFIii: goto hOEBi; hcAdK: if ($business['creditrule'] == 1) { goto yq4yc; } goto cXAJJ; jl3yW: $content1 .= '车主:' . $tag['realname'] . '<BR>'; goto n5Vm8; v6MhM: $getcredit = $credit; goto K_WmX; HO7UM: $postdata = array("first" => array("value" => $park['title'] . '(' . $park['address'] . ')'), "keyword1" => array("value" => round($fee, 2), "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '停车时间' . $timestr . ',感谢支持')); goto cvXtN; WvNxD: goto RreUA; goto wN25U; smLjP: $res = $yktcar->monthCar_AddModify($params); goto C3YSW; qzNSK: foreach ($feebillids as $value) { goto U2R98; T1IsP: if ($region['latemethod'] == 1) { goto I7WZi; } goto wQNVR; kXAzJ: $feebill_data['rebate'] = $feeitem['rebate']; goto UJLIg; ohDOI: M7CSP: goto owXuP; JjDzL: $feebill_data = array(); goto yVu0S; MD6iu: goto lt3WP; goto JUKMg; JUKMg: j89C_: goto qKI_T; SfBbx: if ($creditfee > $item['fee'] + $item['latefee']) { goto lwLoa; } goto Des9V; k6wAA: $feebill_data['creditfee'] = $creditfee; goto yq0ug; BPRoS: goto IQrJW; goto ymbjq; S3bb9: drVDL: goto K7Pus; KBbb2: $feebill_data['payfee'] = 0; goto k6wAA; sLdEO: $feebill_data['latefee'] = $item['fee'] * $feeitem['laterate'] * ($days - $feeitem['latedays']) / 1000; goto ZHrpN; FhDyP: IQrJW: goto vWnGf; j_d0H: $item['fee'] = $item['fee'] * $feeitem['rebate'] / 100; goto kXAzJ; owXuP: aeuVr: goto VUfpU; vCps9: E9sor: goto jWROF; wnP3O: $item['latefee'] = $feebill_data['latefee']; goto S3bb9; MZr7Y: if ($item['enddate'] > $feeitem['latedate']) { goto d_Mxn; } goto hNdwF; ZHrpN: LPews: goto pv5XD; Jv3da: d_Mxn: goto AMs2c; yVu0S: $feebill_data = array("headerid" => $headerid, "status" => 2, "rebate" => 0, "paytype" => $paytype[$log['type']], "printpznum" => $printpznum, "paydate" => TIMESTAMP, "payuid" => $tag['payuid'], "payno" => $params['uniontid']); goto Yk6If; FUtsr: I7WZi: goto sLdEO; VUfpU: if (!($days > $feeitem['latedays'])) { goto drVDL; } goto T1IsP; VaMbk: $item = pdo_fetch($sql, array(":id" => $value, ":weid" => $log['uniacid'])); goto JjDzL; mXYgq: Vd0D4: goto rzwDR; ozHwv: writeoff_feebill_detail($value); goto wB_aX; qKI_T: $feeitem_num[$item['itemid']] = $feeitem_num[$item['itemid']] + 1; goto PvF_Z; vWnGf: xkkX0: goto BcZiq; Des9V: $feebill_data['payfee'] = $item['fee'] + $item['latefee'] - $creditfee; goto Grpdp; T5Dza: MGxmL: goto SfBbx; AMs2c: $days = intval((strtotime(date('Y-m-d')) - $item['enddate']) / 86400); goto ohDOI; cI_X9: $days = intval((strtotime(date('Y-m-d')) - $item['enddate']) / 86400); goto C0p0L; UJLIg: ekHZJ: goto PAkxq; r42J4: $feeitem_num[$item['itemid']] = 1; goto MD6iu; pEpY4: my_alipay_life($set, $params); goto vZjuM; wB_aX: $printdetail .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . '\\n'; goto WmFLC; wQNVR: $feebill_data['latefee'] = $item['fee'] * $feeitem['laterate'] * $days / 1000; goto SQSEB; nARCa: $feebill_data['laterate'] = $feeitem['laterate']; goto wnP3O; K7Pus: if (!($feeitem['rebate'] > 0 && $feeitem['rebate'] < 100)) { goto ekHZJ; } goto j_d0H; EJz_y: $set['app_auth_token'] = $region['lifepay_token']; goto Y307N; VZwjJ: if (!($feeitem['paymonths'] == 1 && $feeitem['finmonths'] > 0 && $feeitem['givemonths'] > 0)) { goto P5Hcq; } goto Tguqo; ECkNA: $feeitem = pdo_fetch($sql, array(":id" => $item['itemid'], ":weid" => $log['uniacid'])); goto VZwjJ; nXExr: $feebill_data['latedays'] = $days; goto nARCa; jWROF: DHd35: goto nXExr; PvF_Z: lt3WP: goto e7Pdt; U2R98: $sql = 'select * from ' . tablename('rhinfo_zyxq_feebill') . ' where id = :id and weid = :weid'; goto VaMbk; C0p0L: goto aeuVr; goto pRBbK; zeS9Q: if (!($log['type'] != 'alipaylife' && $item['isalipay'])) { goto Hrh00; } goto MVXEI; hmyAl: $set['app_id'] = $this->syspub['alipay_appid']; goto Ulce2; PAkxq: if ($creditfee > 0) { goto MGxmL; } goto MBcTq; Tguqo: if (isset($feeitem_num[$item['itemid']])) { goto j89C_; } goto r42J4; hNdwF: $days = intval((strtotime(date('Y-m-d')) - $feeitem['latedate']) / 86400); goto wne2j; MVXEI: $set = array(); goto hmyAl; MBcTq: $feebill_data['payfee'] = $item['fee'] + $item['latefee']; goto vsHS1; Ulce2: $set['prikey'] = $this->syspub['alipay_rsa2']; goto EJz_y; WmFLC: $printdetail1 .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . '<BR>'; goto wkIGY; yq0ug: $creditfee = 0; goto FhDyP; Grpdp: $feebill_data['creditfee'] = $creditfee; goto CZECT; DF9cb: if (!empty($feeitem['latedate'])) { goto Uq3eI; } goto cI_X9; ymbjq: lwLoa: goto KBbb2; Y307N: $set['method'] = 'bill.delete'; goto JHcs0; JHcs0: $params = '{
							"community_id":"' . $region['lifepay_rid'] . '",
							 "bill_entry_id_list":[
								"' . $value['id'] . '"
								]
							  }'; goto pEpY4; pv5XD: switch ($region['feeround']) { case 1: $feebill_data['latefee'] = round($feebill_data['latefee'], 2); goto DHd35; case 2: $feebill_data['latefee'] = round($feebill_data['latefee'], 1); goto DHd35; case 3: $feebill_data['latefee'] = round($feebill_data['latefee'], 0); goto DHd35; case 4: $feebill_data['latefee'] = floor($feebill_data['latefee']); goto DHd35; } goto vCps9; wkIGY: $senddetail .= $item['daterange'] . $item['title'] . ':' . $item['fee'] . ','; goto zeS9Q; BcZiq: pdo_update('rhinfo_zyxq_feebill', $feebill_data, array("id" => $value, "weid" => $log['uniacid'])); goto ozHwv; vsHS1: goto xkkX0; goto T5Dza; wne2j: goto M7CSP; goto Jv3da; SQSEB: goto LPews; goto FUtsr; vZjuM: Hrh00: goto mXYgq; CZECT: $creditfee = $creditfee - $item['fee'] - $item['latefee']; goto BPRoS; Yk6If: $sql = 'select * from ' . tablename('rhinfo_zyxq_feeitem') . ' where id = :id and weid = :weid'; goto ECkNA; e7Pdt: P5Hcq: goto DF9cb; pRBbK: Uq3eI: goto MZr7Y; rzwDR: } goto sUGUZ; YUfEM: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto OMVJP; TWLsy: $feeitemtitle = ''; goto Ayawv; pymHs: P9AC5: goto vss9h; W852i: goto NJ7tT; goto xvbqy; zS2VK: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto mp62D; gG1oX: $this->mysyslog(0, 'error', '停车办理月卡', '月卡建立异常' . $tag['carno'], '操作失败' . $res['result'] . $res['errorCode']); goto grlTJ; ZwQdA: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto BQ5zQ; q5ppY: $url = $this->createMobileUrl('home'); goto JtIXp; Xj0Wv: BZ4xr: goto Eo55w; YBgPT: RreUA: goto csqUJ; sKITz: if (!($region['isprintfeedetail'] == 1)) { goto mrj_K; } goto PxxTy; hLMV0: $url = $this->createMobileUrl('charging', array("op" => "my")); goto y0T2k; IY523: goto Pap9_; goto ICU70; sat1y: $res = etpcar_http_post($set, $params, $park['ctpcar_url']); goto tysWU; qmx5m: $sql = 'update ' . tablename('rhinfo_zycj_express_person') . ' set smsqty = smsqty +' . $tag['smsqty'] . ' where weid=:weid and id=:expid'; goto T8ts6; fHt5b: pdo_insert('rhinfo_zycj_region_creditlog', $credit_data); goto qEpqt; SofW7: myload()->classs('yueshui'); goto Ljha0; OK2QW: $parking = pdo_get('rhinfo_zyxq_parking', array("weid" => $log['uniacid'], "rid" => $tag['rid'], "id" => $item['cid'])); goto jXTa8; pcTuT: $sql = 'update ' . tablename('rhinfo_zyxq_car_iolog') . ' set payfee = payfee + ' . $fee . ',payuid=' . $tag['payuid'] . ',payopenid=' . $log['openid'] . ' where  weid = :weid and id=:ioid '; goto CVEU1; Ef2IG: if ($park['pc_type'] == 7) { goto EU1PB; } goto rMpL0; XLljI: $content .= '交费人:' . $tag['payuser'] . '\\n'; goto ESIr0; K4POx: $content1 .= '金额:' . $fee . '元<BR>'; goto fUFOx; uLiAN: YwS97: goto Mew2Y; ijw9d: if (empty($parent)) { goto TKml1; } goto xZm_T; s139d: ngqXC: goto vNaau; O_VLT: Xy2ZG: goto U0C4t; lEy_a: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $log['uniacid'], "id" => $parkpayid)); goto mAvNb; LvzUN: if (!is_error($res)) { goto jAcQc; } goto MFsYE; JloUV: XPkFI: goto x3BH3; OGrXh: if (!($total == 0)) { goto EJIm1; } goto T4O7K; VuiUW: QFLuK: goto YpBw_; s0iG0: $sql = 'select count(*) from ' . tablename('rhinfo_zyxq_mycar') . ' where weid=:weid and uid=:uid and carno=:carno'; goto o_3Ju; HDeh6: pdo_insert('rhinfo_zyxq_mycar', $data_car); goto dX5UV; LAdIF: $textcolor = empty($this->syscfg['textcolor']) ? '#000' : $this->syscfg['textcolor']; goto gx1vS; trURC: K3KPC: goto NWQSW; XE4Sd: $minutes = intval($timediff % 86400 % 3600 / 60); goto zJ3Fo; rHC7P: if (!$is_success) { goto Ashb5; } goto Tpe82; ruH9G: G6LTn: goto r0FmB; hiMQE: $url = 'mx10/Api.php'; goto xrd0d; IVPHd: $res = deliyun_http_post($set, $params); goto omVzc; wZN0W: $ymcar = new YMcar(array("ym_appid" => $region['ym_appid'], "ym_secret" => $region['ym_secret'])); goto R6as6; bHjeQ: TZL40: goto vfvY_; RzN9O: $timediff = TIMESTAMP - $tag['intime']; goto XOqGP; kxwbZ: $plat_data = array("weid" => $log['uniacid'], "io" => 2, "credit" => $credit, "title" => "充值送积分", "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto PqhA_; F0uhp: $content1 .= '周期:' . $daterange . '<BR>'; goto hB6ng; Kddq1: goto Pap9_; goto WztLV; uZJWX: $res = bluecar_http_post($set, $params); goto cLySn; cLBTJ: lTn1l: goto NAR3o; A4Aax: $title = '预收水费'; goto arobJ; eJsJZ: if ($park['pc_type'] == 4) { goto Sf_3K; } goto Ugrum; tz0AG: $postdata = array("first" => array("value" => $business['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => "请查看详情")); goto aE2f7; VYQxJ: $url = $this->createMobileUrl('home', array("op" => "index")); goto n1msw; RSfL9: pdo_update('rhinfo_zycj_express', array("paystatus" => 1), array("weid" => $log['uniacid'], "sid" => $tag['sid'], "id" => $tag['expressid'])); goto wOoW5; gQr2P: $content .= '时间:' . date('Y-m-d H:i') . '\\n'; goto tco57; WOmw7: vfLm1: goto Kddq1; uQ02U: $sql = 'select * from ' . tablename('rhinfo_zyxq_member') . ' where weid=:weid and id=:mid'; goto ANhXA; xO2zY: if (empty($this->syscfg['tplid1'])) { goto XjfGo; } goto kKVQ0; xj8nk: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto WC2Te; hfyk4: $this->send_mysendtplnotice($this->syscfg['openid'], $this->syscfg['tplid1'], $postdata, $url, $topcolor); goto PeI8v; Drsou: goto V7qLN; goto AJCvU; Tq6yr: $post_data = array("Money" => $fee, "DeviceNo" => $selfdevice['devicesn'], "TradeNo" => $log['uniontid']); goto DZU8X; xv_hc: $url = $this->createMobileUrl('home', array("op" => "index")); goto pKAvd; TRCDm: $url = $this->createMobileUrl('home', array("op" => "index")); goto SSzvu; dzkHT: if (!($params['result'] == 'success' && $params['from'] == 'notify')) { goto xGpRr; } goto lPnla; lPnla: pdo_insert('rhinfo_zyxq_paylog', $data); goto TzWGK; ybxkU: Z1PrE: goto kuZ_8; uDpQK: $url = $this->createMobileUrl('home', array("op" => "index")); goto uaHZW; mS_9r: if (!($tag['feetype'] == 9)) { goto ksVzS; } goto k_r7B; cdkAu: $postdata = array("first" => array("value" => "月卡延期异常通知"), "keyword1" => array("value" => $tag['carno'], "color" => $topcolor), "keyword2" => array("value" => date('Y-m-d H:i'), "color" => $textcolor), "keyword3" => array("value" => '操作失败' . $res['message'], "color" => $textcolor), "remark" => array("value" => "月卡延期失败,请确认!")); goto o1b01; HLPSx: Kzf9R: goto uYgHw; Rzt1B: if ($park['parktype'] == 1) { goto AFQwf; } goto Q6xFz; Je2kC: $params = array("OrderNo" => $tag['recordid'], "PayStatus" => "OK", "PayType" => "WeiXin", "PayNo" => $params['uniontid'], "OutTradeNo" => $params['tid']); goto tph1y; UytTW: $teams = pdo_fetchall($sql, array(":weid" => $log['uniacid'], ":pid" => $tag['pid'], ":rid" => $tag['rid'])); goto m83xd; cASZY: $res = deliyun_http_post($set, $params); goto hP9vL; DZU8X: $res = $yueshui->pay($post_data); goto q7LGf; jOhKX: $discountfee = $payfee + $latefee - $fee - $creditfee; goto W8dvH; OQ3rs: $postdata = array("first" => array("value" => $park['title'] . '(' . $park['address'] . ')'), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '停车时间' . $timestr . ',感谢支持')); goto rqMAo; M6Sz3: if (!($location['finmonths'] > 0 && $location['givemonths'] > 0)) { goto lTn1l; } goto u0xKQ; tXdTk: $sql = 'select t.* from ' . tablename('rhinfo_zyxq_team') . ' as t left join ' . tablename('rhinfo_zyxq_category') . ' as c on t.cid=c.id where t.weid=:weid and t.pid = :pid and t.rid = :rid and c.right12=1 and c.type=4'; goto lXaRk; yWdRn: $res = etpcar_http_post($set, $params, $parklot['ctpcar_url']); goto ZGxot; ZBU6L: pHu5V: goto pYw7Y; xoa25: if ($res['code'] == '100') { goto KGcCY; } goto yd1kK; ksSFM: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto q_NX4; oN5nP: $hours = intval($timediff % 86400 / 3600); goto U1XyY; wW7yM: $params['updateCreateParamItems'] = array(array("name" => "plgId", "value" => !empty($parklot['pc_secret']) ? $parklot['pc_secret'] : $region['pc_rid']), array("name" => "name", "value" => $tag['realname']), array("name" => "phone", "value" => $tag['mobile']), array("name" => "licensePlateType", "value" => 0), array("name" => "licensePlate", "value" => $tag['carno']), array("name" => "psId", "value" => $res['psId']), array("name" => "plId", "value" => $parklot['pc_plotid'])); goto TRFay; CscfC: $coupon = pdo_get('rhinfo_zycj_coupon_member', array("weid" => $log['uniacid'], "id" => $tag['couponid'])); goto Iw3te; YHOGD: if (empty($this->syscfg['businesstplid'])) { goto gPuKh; } goto xv_hc; HUVSz: mylogging('noplate_res', var_export($params, true)); goto VQyOa; KfDpg: $params = array("park_id" => $park['pc_plotid'], "plate_number" => $tag['carno'], "order_no" => $tag['recordid'], "pay_fee" => $fee, "order_id" => $log['uniontid'], "pay_type" => 2); goto oIdlm; haJdh: if ($task['redcate'] == 1) { goto SqVEi; } goto X5Wpa; oe7hH: $timestr = !empty($days) ? $days . '天' : ''; goto IHEFG; dO9C9: pdo_insert('rhinfo_zyxq_parkpay_log', $parkpay); goto D1Dqd; jhil1: if (!($total == 0)) { goto nWjFf; } goto Mq1wq; BoppN: $content1 .= $region['title'] . '<BR>'; goto pv34e; bCTqW: $params = array("park_id" => $parklot['pc_plotid']); goto fx9dL; iyu28: $car_data = array("weid" => $log['uniacid'], "pid" => $region['pid'], "rid" => $region['id'], "carno" => $tag['carno'], "title" => $tag['carno'], "ownername" => $tag['realname'], "mobile" => $tag['mobile'], "uid" => $tag['uid'], "openid" => $log['openid'], "cuid" => $tag['uid'], "ctime" => TIMESTAMP); goto lf52d; oVXwp: OauDH: goto WOmw7; Eo9Vk: if (!($tag['feetype'] == 19)) { goto hqAh6; } goto nWxJs; kHP0H: $this->mysyslog(0, 'error', '停车交费', '停车交费支付失败', '操作失败' . $res['message'] . $log['tid']); goto TjSa4; tpRJl: $content .= '类别:办理月卡\\n'; goto xNIvf; ZXB29: $content = '<FB><center>交费通知单</center></FB>\\n'; goto gApiI; rKR6m: $url = $this->createMobileUrl('car', array("op" => "remonthcard", "id" => $parkpayid)); goto tddtx; sLpi9: if (!($tag['feetype'] == 16)) { goto lorQq; } goto dzkHT; hq0es: wzm8d: goto eatHY; gZ2Ll: $feeitemtitle = '车位租赁费'; goto kQcnh; Z_nFb: OIFaI: goto NOf8q; lgi8R: s03u1: goto K0ie8; Tp6Al: if (!($params['result'] == 'success' && $params['from'] == 'notify')) { goto bAkJj; } goto hOb5X; eU2D4: $postdata = array("first" => array("value" => "月卡延期异常通知"), "keyword1" => array("value" => $tag['carno'], "color" => $topcolor), "keyword2" => array("value" => date('Y-m-d H:i'), "color" => $textcolor), "keyword3" => array("value" => '操作失败' . $resmsg['ErrMsg'], "color" => $textcolor), "remark" => array("value" => "月卡延期失败,请确认!")); goto FJ3hk; dPEBl: header('Location:' . $url); goto PHaXl; PbGqK: $sql = 'select * from ' . tablename('rhinfo_zycj_charging_rule') . ' where weid=:weid and chargid = :chargid and id=:ruleid'; goto h5hM6; Re3r6: $credit = 0; goto MkB6B; duI8m: if (empty($this->syscfg['tplid1'])) { goto uB2uU; } goto hLMV0; bD3Vs: mc_notice_credit1($log['openid'], $tag['payuid'], $feecredit, '交费' . $fee . '送' . $feecredit . '积分', $crediturl, '谢谢支持,点击查看详情'); goto m7JKf; RUxzd: if (!($task['rewardtype'] == 1)) { goto wx2EP; } goto MGoDS; X_1K3: NJ7tT: goto KQRqI; vt1ph: $sql = 'select min(startdate) from ' . tablename('rhinfo_zyxq_carbill') . ' where weid=:weid and pid=:pid and rid=:rid and id in(' . $feebillid . ')'; goto VuMKX; qMRqq: sfw9Y: goto HK7xr; d1osK: $total = pdo_fetchcolumn($sql, array(":weid" => $log['uniacid'], ":uid" => $tag['payuid'], ":carno" => $tag['carno'])); goto qmJbe; TkRIj: XzwUz: goto SPmD9; vNaau: $property = pdo_fetch('select * from ' . tablename('rhinfo_zyxq_property') . ' where weid=:weid and id=:pid', array(":weid" => $log['uniacid'], ":pid" => $tag['pid'])); goto ErAdu; zJ3Fo: $timestr = !empty($days) ? $days . '天' : ''; goto PB0X0; Tp8vJ: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto My524; M1imV: if ($log['type'] == 'wechat') { goto ryUpt; } goto SGDzy; cXAJJ: if (!($fee >= $business['cost'])) { goto YwS97; } goto nWCWL; QJXis: $daterange = date('Y-m', $mindate) . '~' . date('Y-m', $maxdate); goto b26P_; pxsSF: if (!empty($parkpay_exist)) { goto cBPn0; } goto f4uK7; yzt7o: T7abn: goto DcK1z; DUbP1: $url = $this->createMobileUrl('home', array("op" => "index")); goto hRpsx; x25C5: if (!($region['payrate'] > 0 && $region['paycost'] > 0 && $region['paycredit'])) { goto KF3rR; } goto LOYjf; zzUXq: $data['startdate'] = $mybilldate; goto l93fp; xZ3vW: HQglb: goto QtmmK; MONQm: if ($tag['feeitemid'] == 'preelectric') { goto bCpDI; } goto M7piH; kO2Ja: $res = ylb_http_post($set, $params); goto xpNqS; bnTx5: $params = array("id" => $cardno, "parkId" => $parklot['pc_plotid'], "carNum" => $tag['carno'], "startTime" => $startdate, "endTime" => $tag['enddate'], "loginUserName" => $tag['mobile'], "rechangeFee" => $fee * 100); goto hBvdN; YWrFV: $url = $this->createMobileUrl('home', array("op" => "index")); goto pNb7g; mEImX: naHaI: goto p3uKc; VEAwF: $data_car = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "title" => $tag['carno'], "ownername" => $tag['realname'], "mobile" => $tag['mobile'], "carno" => $tag['carno'], "remark" => "", "uid" => $tag['payuid'], "openid" => $tag['openid'], "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto V4_G0; ANtI9: if ($mindate == $maxdate) { goto fWdE1; } goto QJXis; nd1wU: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto khKy8; vzElk: l7LoZ: goto uJirg; FslpE: $params['updateCreateParamItems'] = array(array("name" => "plId", "value" => $parklot['pc_plotid']), array("name" => "expireTime", "value" => strtotime($enddate)), array("name" => "realType", "value" => 1)); goto paIBG; ZwRGM: $credit = intval($fee * $this->syscfg['credit'] / $this->syscfg['cost']); goto eJIrr; uJirg: Cyjyg: goto GRsMZ; ZjYSI: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto qkZ5o; hFfHp: if (!($params['result'] == 'success' && $params['from'] == 'notify')) { goto vagp2; } goto zXct2; xu0HF: $coupon = pdo_get('rhinfo_zycj_coupon_member', array("weid" => $log['uniacid'], "id" => $tag['couponid'])); goto larvx; V5B8P: $coupon = pdo_get('rhinfo_zycj_coupon_member', array("weid" => $log['uniacid'], "id" => $tag['couponid'])); goto v95e0; odm3y: $url = str_replace('addons/rhinfo_zyxq/', '', $this->syscfg['siteurl']) . 'app' . substr($url, 1, strlen($url)); goto FzJjn; YQM_r: ksVzS: goto SONGb; jJlWw: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '月卡有效期' . $tag['startdate'] . '~' . $enddate . ',感谢支持')); goto YYjyQ; PdM6E: $textcolor = empty($this->syscfg['textcolor']) ? '#000' : $this->syscfg['textcolor']; goto MiOt5; mIzSU: idmx8: goto smY7i; gx1vS: $data_parkpay = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "parklotid" => $tag['parkid'], "title" => "临时交费", "category" => 1, "starttime" => $tag['intime'], "endtime" => TIMESTAMP, "carno" => $tag['carno'], "fee" => $fee, "mobile" => $tag['mobile'], "realname" => $tag['realname'], "payno" => $log['tid'], "paytype" => $paytype[$log['type']], "status" => 1, "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto DkrFI; b6xZR: if (!($tag['feetype'] == 22)) { goto nYhzg; } goto hYLJE; eCi0x: $this->mysyslog(0, 'error', '停车交费', '停车交费支付失败', '操作失败' . $res['msg']); goto qBGUk; x23nY: lS6UQ: goto GaVHS; Ghw_e: $this->send_mysendtplnotice($log['openid'], $this->syscfg['businesstplid'], $postdata, '', $topcolor); goto wBq4t; he_06: y7L5a: goto kbKDv; V4Z9E: if (is_error($res)) { goto uvbo8; } goto thXPk; O0wtF: goto dV22C; goto PnWvL; pYw7Y: $feeitemtitle = '租赁相关费用'; goto UDxbm; YEfVj: hUKOq: goto dVaj7; lf52d: pdo_insert('rhinfo_zyxq_car', $car_data); goto MO_T4; dwu5C: pdo_insert('rhinfo_zyxq_member', $member_data); goto dEt0f; MGoDS: $crediturl = $this->createMobileurl('service', array("op" => "credit1")); goto fIdCL; yCXN5: if ($parklot['pc_type'] == 6) { goto uu5ES; } goto cOg2k; DeN4q: $params = array("parkingId " => $parklot['pc_plotid'], "type" => 1, "data" => array("plateNum" => $tag['carno'], "businessType" => 2, "startTime" => date('Y-m-d H:i:s', strtotime($tag['startdate'])), "endTime" => date('Y-m-d H:i:s', strtotime($enddate)))); goto V4Z9E; Ayawv: foreach ($feebills as &$v) { $feeitemtitle .= $v['title']; qci3Z: } goto GnglD; OUtwl: $data_car = array("weid" => $log['uniacid'], "uid" => $tag['payuid'], "openid" => $log['openid'], "carno" => $tag['carno'], "ctime" => TIMESTAMP); goto CpsCt; aElbS: if (!$this->syscfg['isplatformcredit']) { goto w98BQ; } goto ARJEq; wPwLI: pdo_insert('rhinfo_zyxq_paylog', $data); goto Vteq0; dodaZ: Q0G_6: goto jJrLO; G3GWi: $seldevice_log = array("weid" => $log['uniacid'], "selfid" => $tag['selfid'], "title" => $selfdevice['title'], "openid" => $log['openid'], "out_trade_no" => $params['uniontid'], "fee" => $fee, "status" => 0, "uid" => $tag['payuid'], "ctime" => TIMESTAMP); goto rHC7P; pv34e: $res = $this->send_print($tag['pid'], $tag['rid'], 4, urlencode($content), $content1); goto dodaZ; kAgHb: $sql = 'update ' . tablename('rhinfo_zycj_business') . ' set onhand = onhand + ' . $credit . ', inqty = inqty + ' . $credit . ', intime = ' . TIMESTAMP . ' where weid=:weid and id=:bid'; goto YB69D; mei0C: goto lHcAm; goto iBown; na7ga: if (!($total == 0)) { goto EQC_C; } goto hingl; g5kWN: $sql = 'select * from ' . tablename('rhinfo_zyxq_location') . ' where weid = :weid and rid=:rid and  id = :lid '; goto PGqq1; XoAf8: eG7Rv: goto mI9NZ; AYM6t: pdo_update('rhinfo_zyxq_wepay_log', array("status" => 1), array("plid" => $log['plid'])); goto EoIzh; LCSZf: $data_parkpay = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "parklotid" => $tag['parkid'], "title" => "出入交费", "category" => !empty($tag['carno']) ? 1 : 3, "starttime" => $tag['intime'], "endtime" => TIMESTAMP, "carno" => !empty($tag['carno']) ? $tag['carno'] : '无牌车', "fee" => $fee, "mobile" => "", "realname" => "", "payno" => $tag['ordersn'], "paytype" => $paytype[$log['type']], "status" => 0, "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto kEKii; OvpG_: $creditset['paycredit'] = $region['paycredit']; goto bbqjp; kmKhC: $enddate = date('Y-m-d', strtotime('+' . $addmonths . ' month', strtotime($enddate))); goto uasiL; m7JKf: PII2T: goto EPabI; ANvpO: pdo_update('rhinfo_zyxq_property', array("startdate" => date(), "enddate" => strtotime('+1 year')), array(":weid" => $log['uniacid'], ":pid" => $tag['pid'])); goto pCtCn; DtU3w: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '月卡有效期' . $tag['startdate'] . '~' . $enddate . ',感谢支持')); goto Owaul; GS9Wz: CS9Tn: goto UwsIP; Aa1IC: $params = array("parkKey" => $park['pc_plotid'], "payOrderNo" => $tag['recordid'], "payedSN" => $log['uniontid'], "payedMoney" => $fee); goto aSH7r; e2Rk5: if (!($selfdevice['devtype'] == 2)) { goto ZLpDa; } goto SofW7; R3nBa: $ebcar = new EBcar(array("eb_appid" => $region['eb_appid'], "eb_secret" => $region['eb_secret'])); goto C22uC; pjSPH: Fj0DM: goto fpErD; PQpFe: llJ02: goto Fb6GK; ZVoE4: O8uR8: goto smNGY; iEDaf: $printpznum = createpznum(substr($pzno, strlen($pznopre), 12)); goto p0S9m; ErAdu: $region = pdo_fetch('select * from ' . tablename('rhinfo_zyxq_region') . ' where weid=:weid and id=:rid', array(":weid" => $log['uniacid'], ":rid" => $tag['rid'])); goto mrKNM; FMa0q: $payfee = $tag['payfee']; goto kyJP4; Pt37i: mylogging('deliyun_pay', var_export($res, true)); goto e_S2u; yrI8i: xo23I: goto Z5EeL; S2MoE: $content1 .= '手机:' . $tag['mobile'] . '<BR>'; goto IwCg4; KTWjR: if (empty($this->syscfg['businesstplid'])) { goto vGwUO; } goto WwEyf; iGqQ9: $data_white = array("starttime" => strtotime($tag['startdate']), "endtime" => strtotime($tag['enddate'] . ' 23:59:59'), "mobile" => $tag['mobile'], "realname" => $tag['realname'], "idcard" => $tag['idcard'], "status" => 1, "cuid" => $tag['payuid']); goto GWGUp; D2ef_: $timediff = TIMESTAMP - $tag['intime']; goto oAl3w; Eht0D: Eorhe: goto Ilsth; wBq4t: z1kV1: goto dbrul; GHoVP: $redpacket = $this->send_redpacket($region['feestrategyid'], $log['openid'], 0); goto hq0es; yd1kK: $this->mysyslog(0, 'error', '停车交费', '停车交费支付失败', '操作失败' . $res['MsgStr'] . $tag['recordid']); goto qxRvZ; mHEXT: $sql = 'update ' . tablename('rhinfo_zycj_business') . ' set onhand = onhand - ' . $credit . ', outqty= outqty + ' . $credit . ', outtime = ' . TIMESTAMP . ' where  weid = :weid and id=:bid'; goto ghGew; TnuMH: if ($res['ecode'] == 0) { goto kVODh; } goto it4aT; F3fXO: uwLLR: goto fLztL; xsXpB: $paymethod1 = '支付方式:微信<BR>'; goto rmvoE; r2lF4: $this->mysyslog(0, 'error', '停车交费', '停车交费支付失败', '操作失败' . $res['message'] . $log['tid']); goto DIvev; qxpr4: ZOdx4: goto G6k8h; Z0uZH: $timestr = !empty($days) ? $days . '天' : ''; goto CCF75; JaDwS: tYk_N: goto kZpUN; YK_KH: $set['userKey'] = $region['pc_secret']; goto CL5w4; F0ee6: $this->mysyslog(0, 'error', '停车办理月卡', '月卡续费失败2' . $tag['carno'], '操作失败' . $res['resultMsg']); goto LSOEb; P45zU: if ($res['code'] == 1) { goto X9hKv; } goto h7Y_0; nN5Lw: pdo_insert('rhinfo_zycj_business_creditlog', $credit_data); goto O89XG; O7BB2: $postdata = array("first" => array("value" => $park['title'] . '(' . $park['address'] . ')'), "keyword1" => array("value" => round($fee, 2), "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '停车时间' . $timestr . ',感谢支持')); goto YZJnQ; gqd3I: if (!($params['result'] == 'success' && $params['from'] == 'notify')) { goto RURq1; } goto wF2tf; rMpL0: if ($park['pc_type'] == 8) { goto z4y3K; } goto UnOZF; Yi_fL: Jp_SM: goto p0iri; AKz7B: $smslog_data = array("weid" => $log['uniacid'], "rid" => $tag['rid'], "title" => '短信充值' . $tag['smsqty'] . '条', "io" => 1, "mobile" => "", "cuid" => $tag['payuid'], "ctime" => TIMESTAMP); goto R0Vxt; kZRBF: $set['url'] = 'add.php'; goto krPgq; PNrDj: werQ1: goto dOQld; F98Yg: $credit_data = array("weid" => $log['uniacid'], "pid" => $tag['pid'], "rid" => $tag['rid'], "io" => 2, "credit" => $feecredit, "title" => "交费送积分", "openid" => $log['openid'], "status" => 1, "cuid" => 0, "ctime" => TIMESTAMP); goto fHt5b; WaDLA: return; goto n33kc; sFBvz: $timestr .= !empty($minutes) ? $minutes . '分钟' : ''; goto OQ3rs; cOg2k: if ($parklot['pc_type'] == 7) { goto My87C; } goto SsHO5; fMdEV: $post_data = array("action" => "sendFs24", "token" => $this->syscfg['mx_appkey'], "appid" => $this->syscfg['mx_appid'], "device_code" => $charging['devicesn'], "port" => sprintf('%02d', $tag['port']), "ctype" => 1, "fee" => $tag['plus'], "ordersn" => date('mdHis') . random(1, 1)); goto T9RRy; u9N22: Mq3OV: goto N7UMA; DTVKu: $machlist = substr($machlist, 0, -1); goto IML59; X0PyU: $content1 .= $parklot['title'] . '<BR>'; goto JP6L9; DtA8T: if (!($this->syscfg['busi_cost'] > 0 && $this->syscfg['busi_credit'] > 0)) { goto GoxlB; } goto tlpkL; BkiK1: $hours = intval($timediff % 86400 / 3600); goto yV3q0; ShOAF: foreach ($teams as $team) { $this->send_mysendtplnotice($team['openid'], $this->syscfg['tplid1'], $postdata, $url, $topcolor); ZCosR: } goto eFpEr; TSOx3: $hours = intval($timediff % 86400 / 3600); goto BeIQ7; aEIB2: $sql = 'update ' . tablename('rhinfo_zyxq_region') . ' set onhand = onhand - ' . $feecredit . ', outqty= outqty + ' . $feecredit . ', outtime = ' . TIMESTAMP . ' where  weid = :weid and id=:rid'; goto GY4hL; jG4GR: Elq1h: goto VaVgV; lqqvh: $res = deliyun_http_post($set, $params); goto TnuMH; XxnOV: $content1 .= '手机:' . $tag['mobile'] . '<BR>'; goto wA5pY; UhBaX: $res = ylb_http_post($set, $params); goto X9EdV; XiI46: $set = array(); goto woEbf; DIcrK: myload()->classs('ebcar'); goto nD5GT; A6Fyu: goto tuEWr; goto vHL5i; dOQld: $timediff = TIMESTAMP - $tag['intime']; goto nO9wC; AcxBa: $sql = 'select * from ' . tablename('rhinfo_zyxq_parking') . ' where weid = :weid and rid=:rid and  id = :parkingid '; goto goh5n; e3OV7: $sql = 'select * from ' . tablename('rhinfo_zyxq_feebill') . ' where id = :id and weid = :weid'; goto DA36G; E7Jv4: mc_notice_credit1($parent['openid'], $parent['uid'], $task['credit1'], '邀请到店消费,完成任务赠送' . $task['credit1'] . '积分', $crediturl, '谢谢支持,点击查看详情'); goto SQhXA; mNZjF: pdo_update('rhinfo_zyxq_parkpay_log', array("status" => 1), array("weid" => $log['uniacid'], "id" => $parkpayid)); goto QWiwb; uhDAD: $this->send_mysendtplnotice($this->syscfg['openid'], $this->syscfg['tplid1'], $postdata, $url, $topcolor); goto tXdTk; ToUJV: $res = deliyun_http_post($set, $params); goto lSRga; NF13Y: if (!empty($res) && $res[0]['plateNum'] == $tag['carno']) { goto gTOM9; } goto iND6M; UDxbm: Ed8nq: goto GDtOo; SsHO5: if ($parklot['pc_type'] == 8) { goto FkgKM; } goto jaeqI; yZ50v: $data['fee'] = $fee; goto DPO_p; OaVMC: $rows = $res['rows'][0]; goto Bup4z; bup02: VAZAO: goto LkrYN; kDkp0: return; goto V39If; b4CSH: pdo_update('rhinfo_zyxq_parkingiolog', array("status" => 1), array("weid" => $log['uniacid'], "lotid" => $tag['parkid'], "io" => 1, "uid" => $tag['payuid'])); goto uvWmW; RVIsS: aXk4u: goto bjxgT; KdKsF: $sql = 'update ' . tablename('rhinfo_zycj_coupon_object') . ' set usedqty = usedqty + 1  where weid=:weid and id=:id'; goto aBBx4; XnS_J: $url = $this->my_mobileurl($this->createMobileUrl('home', array("op" => "index"))); goto TqDWQ; DemCR: $jielink = new JIElink(array("jielink_username" => $api_setting['jielink_username'], "jielink_password" => $api_setting['jielink_password'], "jielink_secret" => $api_setting['jielink_secret'])); goto COVrT; mXW5q: $res = $jielink->tempCar_PayNotify($params); goto HYyD_; bbqjp: KF3rR: goto A3zgZ; iWnPz: $set = array(); goto ELPqI; F2OZY: $url = $this->createMobileUrl('home', array("op" => "index")); goto odm3y; QTa3P: $content1 .= '房产:' . $house['title'] . '<BR>'; goto Mn8pG; heU4v: $sql = 'update ' . tablename('rhinfo_zycj_coupon_object') . ' set usedqty = usedqty + 1  where weid=:weid and id=:id'; goto Gi3HD; svF2E: M_lMh: goto at2bX; IPQ1O: $url = $this->createMobileUrl('home', array("op" => "index")); goto phC4r; eZf21: wmevp: goto TrEu_; AgcsH: $this->mysyslog(0, 'error', '停车交费', '停车交费支付失败', '操作失败' . $res['msg']); goto wSZmI; s_l1O: $set = array(); goto kZRBF; P27Ow: $timestr .= !empty($minutes) ? $minutes . '分钟' : ''; goto hAspW; YR_Sd: $mycar_data = array("weid" => $log['uniacid'], "uid" => $tag['payuid'], "openid" => $log['openid'], "carno" => $tag['carno'], "ctime" => TIMESTAMP); goto wJohd; qMBSe: if (empty($this->syscfg['businesstplid'])) { goto PT8Xj; } goto vhgL_; H0FMs: $post_data['charge_time'] = $rule['hour'] * 60; goto PPJop; R0kob: goto SSyN2; goto tlTSZ; VPmj3: n0_Hn: goto NV15c; IYv9a: $textcolor = empty($this->syscfg['textcolor']) ? '#000' : $this->syscfg['textcolor']; goto qOZA0; CzlIR: $params = array("orderNo" => $tag['recordid'], "tradeStatus" => 0, "payType" => $log['type'] == 'wechat' ? 'WX' : 'ZFB'); goto mXW5q; agXsl: goto Pap9_; goto jG4GR; QjK00: $is_success = true; goto PQpFe; oKS5Q: $res = $bscar->tempCar_PayNotify($params); goto d6djT; ut4OH: jMXeM: goto TLNlz; tqkZb: pdo_insert('rhinfo_zyxq_paylog', $data); goto NGa_H; qEo0x: $set['pc_appid'] = $region['pc_appid']; goto FZpcx; mAvNb: $postdata = array("first" => array("value" => $parklot['title']), "keyword1" => array("value" => $fee, "color" => $topcolor), "keyword2" => array("value" => $log['tid'], "color" => $textcolor), "remark" => array("value" => '月卡有效期' . $tag['startdate'] . '~' . $enddate . ',感谢支持')); goto KkQ1t; Vauye: if (!($platcredit['onhand'] >= $credit)) { goto aE8Np; } goto kAgHb; jrG0T: if (empty($parklot['pc_plotid'])) { goto Cvvn7; } goto hNDtb; jQMmJ: $ymcar = new YMcar(array("ym_appid" => $region['ym_appid'], "ym_secret" => $region['ym_secret'])); goto Vvpf6; Pnie7: TFaSd: goto YMKKP; XAvZF: GhSCP: goto R91sb; txmaW: $sql = 'select max(enddate) from ' . tablename('rhinfo_zyxq_carbill') . ' where weid=:weid and pi