123456789101112131415161718192021 |
- <?php
- goto jgsmB; Bdj_X: defined('IN_IA') or exit('Access Denied'); goto cqeA1; J8lHs: if (!file_exists('../addons/qidong_app_plugin_wx/json/config.json')) { goto lsCHK; } goto xHKXc; jgsmB: ini_set('display_errors', 'off'); goto Bdj_X; PtkFA: $datas = json_decode($datas, true); goto JtRoL; xuOad: define('Appsecret', $datas['Appsecret']); goto YTiUa; YTiUa: define('bakuniacid', $datas['bakuniacid']); goto gH0Kw; mzzII: define('AppID', $datas['AppID']); goto xuOad; xHKXc: $datas = file_get_contents('../addons/qidong_app_plugin_wx/json/config.json'); goto PtkFA; gH0Kw: define('shangyong', $datas['shangyong']); goto Ddtfv; JtRoL: define('TOKEN', 'eqcxcx'); goto mzzII; Ddtfv: lsCHK: goto qtNLb; cqeA1: define('MD_ROOT', '../addons/qidong_app/'); goto J8lHs; qtNLb: class Qidong_appModuleSite extends WeModuleSite { public function Finduser($tablename, $openid, $culname, $findname) { goto c294e; c294e: global $_GPC, $_W; goto NubW1; NubW1: $website = $_W['siteroot']; goto WUdNM; fu13j: goto eOaD5; goto nqljB; qMhD7: $wxapp = pdo_fetchcolumn('SELECT nickname FROM hjmall_user WHERE wechat_open_id = :openid', array(":openid" => $openid)); goto cyVH3; h0bQZ: return $wxapp; goto RJR6U; WUdNM: if ($tablename == 'hjmall_user') { goto WPZ0n; } goto qCW28; qCW28: $wxapp = pdo_getcolumn($tablename, array($culname => $openid), $findname); goto fu13j; nqljB: WPZ0n: goto qMhD7; cyVH3: eOaD5: goto h0bQZ; RJR6U: } public function doWebfindtableuid() { goto MeVdQ; vCLbT: $tablename = $result['tablename']; goto BSMos; AViV9: $i = 0; goto avYDW; MeVdQ: global $_W, $_GPC; goto oucYF; EEB2F: echo '查询:' . $uniacid . $tablename . $culname . $findname; goto nXFHQ; nXFHQ: echo '<br>'; goto Fjs6B; Ssqfx: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}.json", true); goto xw766; Fjs6B: $wxapp = pdo_getall('qidongapp_user', array("uniacid" => $_W['uniacid'])); goto AViV9; oVH8N: CJ1Lv: goto EFskU; avYDW: $all = count($wxapp); goto trz8S; Ihpod: NdtwV: goto qVVpx; ZKphe: $findname = $result['findname']; goto EEB2F; foFd5: if (!($result['tablename'] == '')) { goto NdtwV; } goto ZNZ8I; EFskU: $msg = '总计' . $all . '个用户,更新' . $i . '个'; goto rq4EJ; xw766: $result = json_decode($file, true); goto foFd5; ZNZ8I: message('尚未配置昵称源数据库信息'); goto Ihpod; lR3oz: echo $ifok; goto hW_X9; qVVpx: $uniacid = $_W['uniacid']; goto vCLbT; BSMos: $culname = $result['culname']; goto ZKphe; rq4EJ: message($msg, '', 'success'); goto lR3oz; trz8S: foreach ($wxapp as $name) { goto wYVIN; oRXl1: FgIdG: goto Z7uFc; p_lDN: if (!($ifok == 1)) { goto LxLUQ; } goto llpeH; j0vlV: $data = pdo_update('qidongapp_user', $usermgs, array("openid" => trim($name['openid']))); goto SqghL; SqghL: $ifok = $data ? 1 : 0; goto p_lDN; b3M2a: if (!($nickname != '')) { goto gn3qf; } goto BD51X; wYVIN: $nickname = $this->Finduser($tablename, $name['openid'], $culname, $findname); goto b3M2a; BD51X: $usermgs = array("nickname" => $nickname); goto j0vlV; Bj0zO: gn3qf: goto oRXl1; llpeH: $i++; goto SyEnA; SyEnA: LxLUQ: goto Bj0zO; Z7uFc: } goto oVH8N; oucYF: $jsonid = $_W['account']['original']; goto Ssqfx; hW_X9: } public function doWebfinduidwx() { goto yp6RH; NXwEG: $jsonid = $_W['account']['original']; goto DRwez; AT4Oc: $wxapp = pdo_getall('qidongapp_user', array("uniacid" => $_W['uniacid'])); goto jsBeZ; jHFXb: message($msg, '', 'success'); goto IASkT; L2s9P: $result = json_decode($file, true); goto JRIc0; Tlc9Z: urUml: goto jL7FL; ie52A: goto ceVYR; goto PiyYi; PiyYi: ck7MT: goto XdBFG; J36HZ: $all = count($wxapp); goto SyHJj; kLAqs: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto L2s9P; J2HPH: $result = json_decode($file, true); goto J6EJw; jsBeZ: $i = 0; goto J36HZ; J6EJw: $Atoken = $result['authorizer_access_token']; goto wPTkt; SyHJj: foreach ($wxapp as $name) { goto q0XDU; dmADb: exit; goto YUh2s; XI3NU: if (!($i > 10)) { goto fRh9E; } goto rjYHb; I9rOb: if (!($ifok == 1)) { goto t3Og1; } goto h02N6; h02N6: $i++; goto XI3NU; Seqxo: TJ9ii: goto mjtnx; isex6: if (!($uids['errcode'] == 40001)) { goto USFRj; } goto Wjx6k; pCEMs: $data = pdo_update('qidongapp_user', $usermgs, array("openid" => trim($name['openid']))); goto FlTLs; YUh2s: USFRj: goto N3ms9; ovVoG: $url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={$Atoken}&openid={$name['openid']}&lang=zh_CN"; goto OxfBZ; Ic2Wk: $usermgs = array("nickname" => $uids['nickname'] . '[' . $uids['city'] . ']', "avartar" => $uids['headimgurl']); goto HW5rQ; mjtnx: phNyL: goto ztiQ3; HW5rQ: echo '<img width=100 src=\'' . $uids['headimgurl'] . '\'>'; goto pCEMs; q0XDU: if (!($wxapp['avartar'] == '')) { goto TJ9ii; } goto ovVoG; OxfBZ: $uids = json_decode(ihttp_get($url)['content'], true); goto isex6; v6jIX: SrD_t: goto Seqxo; N3ms9: if (!($uids['nickname'] != '')) { goto SrD_t; } goto Ic2Wk; rjYHb: fRh9E: goto Eg8iA; Wjx6k: message('出现错误.确认公众号在2个小时内有过聊天?' . $uids['errmsg']); goto dmADb; FlTLs: $ifok = $data ? 1 : 0; goto I9rOb; Eg8iA: t3Og1: goto v6jIX; ztiQ3: } goto Tlc9Z; wPTkt: ceVYR: goto AT4Oc; JRIc0: $Atoken = $result['access_token']; goto ie52A; jL7FL: $msg = '总计' . $all . '个用户,更新' . $i . '个'; goto jHFXb; XdBFG: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json", true); goto NZ_jm; mI5xQ: $uniacid = $_W['uniacid']; goto NXwEG; yp6RH: global $_W, $_GPC; goto mI5xQ; Xm8fh: $appid = $result['authorization_info']['authorizer_appid']; goto ZGX6o; ZGX6o: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto J2HPH; DRwez: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto ck7MT; } goto kLAqs; NZ_jm: $result = json_decode($file, true); goto Xm8fh; IASkT: } public function doWebfinduid() { goto EC16k; G6Rbd: $wxapp = pdo_getall('qidongapp_user', array("uniacid" => $_W['uniacid'])); goto VJ0IE; LvfGI: SJamU: goto jFBiO; hemwu: message($msg, '', 'success'); goto JD3dq; azFAY: foreach ($wxapp as $name) { goto E1Ol3; tDsbj: $usermgs = array("nickname" => $uids['nickname'], "avartar" => $uids['avatar']); goto a4KXV; E1Ol3: $uids = mc_fetch($name['openid']); goto tDsbj; hham1: if (!($ifok == 1)) { goto s3AEz; } goto UHRAb; N3SGv: A0l3a: goto GIeGp; UHRAb: $i++; goto UUTsP; a4KXV: $data = pdo_update('qidongapp_user', $usermgs, array("openid" => trim($name['openid']))); goto TtKgD; TtKgD: $ifok = $data ? 1 : 0; goto hham1; UUTsP: s3AEz: goto N3SGv; GIeGp: } goto LvfGI; VJ0IE: $i = 0; goto R2irh; Eirqs: echo $uniacid; goto PtYCK; EC16k: global $_W, $_GPC; goto MNUUZ; jFBiO: $msg = '总计' . $all . '个用户,更新' . $i . '个'; goto hemwu; R2irh: $all = count($wxapp); goto azFAY; MNUUZ: $uniacid = $_W['uniacid']; goto Eirqs; PtYCK: $jsonid = $_W['account']['original']; goto G6Rbd; JD3dq: } public function payResult($params) { goto yoGAL; obr2f: $openids = $arr['openids']; goto b8Wy6; vsHTB: $arr = json_decode($file, true); goto obr2f; l9lRY: pdo_insert('qidong_pay_lishi', $data1); goto MasZS; P_cQO: VZjFk: goto XQiDC; gyjS9: message('支付失败!', '', 'error'); goto Bkpq2; MVyZY: $openid = $_W['fans']['from_user']; goto gQpHd; yW8UQ: bLW5Q: goto lMv43; F_mP9: krJiB: goto Ilpho; K5_MD: qMO57: goto GqJdP; IxyqA: $uid = explode('|', $tid, -1)[0]; goto nAhzH; yoGAL: global $_W, $_GPC; goto bMp1M; Zyz2X: $kefu = json_decode(file_get_contents('../../addons/qidong_app/json/' . $uniacid . '_kefu.json'), true); goto sA6ab; d6r7U: goto VZjFk; goto MOkjz; P7cj3: $data1 = array("laiyuan" => "用户充值", "updatetime" => time(), "uniacid" => $uniacid, "tid" => $tid, "fromopenid" => $openid, "fromname" => $myname, "jine" => $fee, "beizhu" => $myname . '充值' . $fee . '元'); goto l9lRY; bMp1M: $uniacid = $_W['uniacid']; goto T2GvS; qvKEV: if (empty($openid)) { goto qMO57; } goto pLW_z; MasZS: $file = file_get_contents("../../addons/qidong_app/json/{$jsonid}.json", true); goto vsHTB; pLW_z: $this->sendmsg($openid, 'text', "你成功支付{$fee}元,请稍后", '', $url); goto Zyz2X; T2GvS: $jsonid = $_W['account']['original']; goto LTMII; H0wef: if (count($list) == 0) { goto LBVm4; } goto Ih2fm; GqJdP: $msg = "你成功支付{$fee}元,请稍后"; goto P_cQO; UqMkK: if ($params['result'] == 'success') { goto krJiB; } goto gyjS9; Ilpho: $tid = trim($params['tid']); goto DZOWT; B0Dqf: $this->logger(json_encode($params)); goto yW8UQ; r0cLn: $url = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' . $Atoken; goto y4c_3; sA6ab: $tokefuopenid = array_search($openid, $kefu, true); goto nVSib; Bkpq2: goto XYY45; goto F_mP9; xw1WD: XYY45: goto Dta5G; b8Wy6: $Atoken = getToken(AppID, Appsecret, $jsonid); goto r0cLn; byq2k: $this->sendmsg($openids, 'text', $keyword, '', $url); goto qvKEV; gQpHd: $myname = $_W['fans']['nickname']; goto P7cj3; MOkjz: LBVm4: goto IxyqA; nAhzH: $fee = explode('|', $tid, -1)[1]; goto MVyZY; Ih2fm: message('该订单已经处理,请勿重复刷新'); goto d6r7U; nVSib: $this->sendmsg($tokefuopenid, 'text', $keyword . '[当前客户]', '', $url); goto K5_MD; LTMII: if (!($params['result'] == 'success' && $params['from'] == 'notify')) { goto bLW5Q; } goto B0Dqf; y4c_3: $keyword = '[客户支付通知]
- ' . $myname . '充值' . $fee . '元'; goto byq2k; DZOWT: print_r($params['tid']); goto l9cbc; Dta5G: NTg5E: goto KxhvZ; l9cbc: $list = pdo_getall('qidong_pay_lishi', array("tid" => $tid)); goto H0wef; XQiDC: message('支付成功!', $this->createMobileUrl('Wpay') . '&msg=' . $msg, 'success'); goto xw1WD; lMv43: if (!($params['from'] == 'return')) { goto NTg5E; } goto UqMkK; KxhvZ: } public function getAtoken($a, $b, $jsonid) { goto mVJmP; mVJmP: $ComponentVerifyTicket = file_get_contents('../addons/qidong_app_plugin_wx/json/VerifyTicket.json'); goto ex_BV; HiU5G: $signature = $info['authorizer_info']['signature']; goto olzi5; i4GzK: return $Atoken; goto LWslt; uEzb2: $Atoken = $this->getCToken($a, $Cappid, $refresh_token, $Mtoken); goto i4GzK; olzi5: $Cappid = $info['authorization_info']['authorizer_appid']; goto Jdc4r; QJrck: $mini = $info['authorizer_info']['MiniProgramInfo']; goto Undhz; ex_BV: $Mtoken = $this->getMToken($a, $b, $ComponentVerifyTicket, '11111'); goto vqBGj; Jdc4r: $refresh_token = $info['authorization_info']['authorizer_refresh_token']; goto uEzb2; vqBGj: $info = json_decode(file_get_contents('../addons/qidong_app_plugin_wx/jsonX/info_' . $jsonid . '.json'), true); goto QJrck; Undhz: $name = $info['authorizer_info']['nick_name']; goto HiU5G; LWslt: } public function doMobileWchat() { goto XjIPq; XjIPq: global $_W, $_GPC; goto tb70u; PxZ85: include $this->template('chat'); goto gyOr7; tb70u: $uniacid = $_W['uniacid']; goto AhSRz; AhSRz: $jsonid = $_W['account']['original']; goto PxZ85; gyOr7: } public function doMobilePay() { goto CFxd4; nhqMR: dWJhj: goto nQrcV; e6Mso: if (!($fee <= 0)) { goto dWJhj; } goto ZZOLZ; i_1eB: $uniacid = $_W['uniacid']; goto ygoj4; ygoj4: $fee = floatval($_GPC['money']); goto zAYBY; ZZOLZ: message('支付错误, 金额小于0'); goto nhqMR; CFxd4: global $_W, $_GPC; goto i_1eB; d2cvt: $params = array("tid" => $chargerecord['tid'], "ordersn" => $chargerecord['tid'], "title" => $title . '支付' . $fee . '元', "fee" => $chargerecord['fee'], "user" => $_W['member']['uid']); goto Ii8Kx; zAYBY: $jsonid = trim($_GPC['jsonid']); goto CovAc; CovAc: $title = trim($_GPC['title']); goto e6Mso; nQrcV: $tid = "{$uniacid}|{$fee}|" . time(); goto Gwnq8; Gwnq8: $chargerecord = array("tid" => $tid, "fee" => $fee); goto d2cvt; Ii8Kx: $this->pay($params); goto iNG2T; iNG2T: } public function doMobileWpay() { goto JeZhx; Oz5Oy: if (count($wxapp) > 0) { goto JPS14; } goto WlKyo; V0fiA: $title = $t['title']; goto ZiKOU; Us_od: $payimg = $t['image']; goto zH5wB; ZiKOU: $kefuid = $t['kefuid']; goto g_Jie; Go6Bl: Fk1kd: goto G2C6d; KNoNe: $description = '轻松一点,快速充值'; goto xVq10; iXFi1: JPS14: goto p59My; V21p3: $title = "{$_W['account']['name']}充值中心"; goto KNoNe; WYmLY: if (!(count($navmsg) == 0)) { goto bPGF2; } goto GOu3_; fXvez: if (!file_exists("../addons/qidong_app/json/{$uniacid}_pay.json")) { goto ps0Jj; } goto SxIPP; Dcgdq: goto TJoi3; goto iXFi1; AAF2q: bPGF2: goto SUX6z; JeZhx: global $_W, $_GPC; goto RISt9; G2C6d: include $this->template('pay1'); goto nhbGq; IXwjk: $nickname = $_W['fans']['nickname']; goto Y_0O2; RISt9: $openid = trim($_W['fans']['from_user']); goto Xfh2W; mxbhw: $t = json_decode($t, true); goto V0fiA; Xfh2W: $uniacid = $_W['uniacid']; goto IimaB; joMMh: $fromlist = pdo_getall('qidongapp_user', array("uniacid" => $uniacid, "fromopenid" => $openid)); goto Go6Bl; bsxCu: $params = $_GPC['params']; goto V21p3; nfIig: pdo_insert('qidongapp_user', $data); goto Dcgdq; XVBR9: TJoi3: goto bsxCu; WlKyo: $avatar = $_W['fans']['avatar']; goto IXwjk; xVq10: $msg = '请选择要支付的产品'; goto fXvez; SUX6z: $bobao = pdo_getall('qidongapp_bobao', array("uniacid" => $uniacid)); goto ZZR6L; g_Jie: $description = $t['description']; goto g3lWM; IimaB: $jsonid = $_W['account']['original']; goto ia8zV; ia8zV: $fromopenid = $_GPC['fromopenid']; goto wJWPH; Y_0O2: $data = array("openid" => $openid, "nickname" => $nickname, "avartar" => $avatar, "jsonid" => $jsonid, "uniacid" => $uniacid, "fromopenid" => $fromopenid); goto nfIig; GOu3_: message('尚未设置售卖的产品'); goto AAF2q; iiw_q: $avartar = $wxapp[0]['avartar']; goto XVBR9; SxIPP: $t = file_get_contents("../addons/qidong_app/json/{$uniacid}_pay.json"); goto mxbhw; g3lWM: $msg = $t['msg']; goto Us_od; p59My: $nickname = $wxapp[0]['nickname']; goto iiw_q; wJWPH: $wxapp = pdo_getall('qidongapp_user', array("uniacid" => $uniacid, "openid" => $openid)); goto Oz5Oy; ZZR6L: if (empty($openid)) { goto Fk1kd; } goto joMMh; YLB23: $navmsg = pdo_getall('qidong_feetype', array("uniacid" => $uniacid)); goto WYmLY; zH5wB: ps0Jj: goto YLB23; nhbGq: } public function doMobileWpayDetail() { goto LVUoI; gO_q8: Cy4Na: goto GvGM8; RnKa8: message('尚未设置售卖的产品'); goto gO_q8; BxWVT: if (!(count($navmsg) == 0)) { goto Cy4Na; } goto RnKa8; k6OAN: $jsonid = $_W['account']['original']; goto dX3wa; YIhpf: $navmsg = pdo_getall('qidong_feetype', array("uniacid" => $uniacid, "id" => $id)); goto BxWVT; MWM7B: $uniacid = $_W['uniacid']; goto k6OAN; SRRLx: $id = $_GPC['id']; goto YIhpf; LVUoI: global $_W, $_GPC; goto ef36Y; dX3wa: $fromopenid = $_GPC['fromopenid']; goto SRRLx; GvGM8: include $this->template('pay_detail'); goto GMN0n; ef36Y: $openid = trim($_W['fans']['from_user']); goto MWM7B; GMN0n: } public function doMobileWpay1() { goto kX3Xt; RDfU3: RGovI: goto jwPPP; V1dls: $wxapp1 = pdo_getall('qidongapp_user', array("jsonid" => $jsonid, "openid" => $fromopenid)); goto iD7o1; mTV_H: OSjOf: goto yE1eu; IfNLS: goto mgtDo; goto RDfU3; O5nN7: $avartar = $wxapp[0]['avartar']; goto ERTM3; dtOyN: $description = $t['description']; goto yriBW; tmZzC: $kefuid = $t['kefuid']; goto dtOyN; ERTM3: mgtDo: goto xyH7U; njbHv: yGMwp: goto CEfBm; yE1eu: if (empty($openid)) { goto yIwvK; } goto Awb_B; n4_TR: $title = $t['title']; goto tmZzC; CEfBm: $navmsg = pdo_getall('qidong_feetype', array("uniacid" => $uniacid)); goto O2JUC; OTBQ4: $title = "{$_W['account']['name']}充值中心"; goto iss9L; kLZyB: w5jR7: goto Sy0ta; O2JUC: if (!(count($navmsg) == 0)) { goto w5jR7; } goto C645C; XkzaL: $t = file_get_contents("../addons/qidong_app/json/{$uniacid}_pay.json"); goto kCIjR; oOmA9: if (count($wxapp) > 0) { goto RGovI; } goto pQMNH; eyQUx: if (!empty($openid)) { goto OSjOf; } goto XuTGR; ixjkW: $fromopenid = $_GPC['fromopenid']; goto OFrYQ; jwPPP: $nickname = $wxapp[0]['nickname']; goto O5nN7; XLydm: $uniacid = $_W['uniacid']; goto RuHGq; Awb_B: $fromlist = pdo_getall('qidongapp_user', array("uniacid" => $uniacid, "fromopenid" => $openid)); goto ClAwE; DcH_b: pdo_insert('qidongapp_bobao', $data1); goto KYSBO; oUCPQ: $openid = trim($_W['fans']['from_user']); goto XLydm; kX3Xt: global $_W, $_GPC; goto oUCPQ; xyH7U: $params = $_GPC['params']; goto OTBQ4; karrw: if (!file_exists("../addons/qidong_app/json/{$uniacid}_pay.json")) { goto yGMwp; } goto XkzaL; XuTGR: $openid = $_GPC['f']; goto mTV_H; AAvee: $payimg = $t['image']; goto njbHv; OFrYQ: $wxapp = pdo_getall('qidongapp_user', array("jsonid" => $jsonid, "openid" => $openid)); goto oOmA9; RuHGq: $jsonid = $_W['account']['original']; goto ixjkW; a5Ps9: include $this->template('pay1'); goto Egq24; O7uzb: pdo_insert('qidongapp_user', $data); goto JeKkq; KYSBO: i2L3C: goto IfNLS; ClAwE: yIwvK: goto a5Ps9; mkJLP: $data = array("openid" => $openid, "nickname" => $nickname, "avartar" => $avatar, "jsonid" => $jsonid, "uniacid" => $uniacid, "fromopenid" => $fromopenid); goto O7uzb; kCIjR: $t = json_decode($t, true); goto n4_TR; JeKkq: if (!($fromopenid != '')) { goto i2L3C; } goto V1dls; C645C: message('尚未设置售卖的产品'); goto kLZyB; Sy0ta: $bobao = pdo_getall('qidongapp_bobao', array("uniacid" => $uniacid)); goto eyQUx; pQMNH: $avatar = $_W['fans']['avatar']; goto UlljY; PQNq1: $msg = '请选择要支付的产品'; goto karrw; iD7o1: $data1 = array("uniacid" => $uniacid, "jsonid" => $jsonid, "nickname" => "粉丝", "title" => $wxapp1[0]['nickname'] . '新增粉丝:' . $nickname, "addtime" => time()); goto DcH_b; iss9L: $description = '轻松一点,快速充值'; goto PQNq1; UlljY: $nickname = $_W['fans']['nickname']; goto mkJLP; yriBW: $msg = $t['msg']; goto AAvee; Egq24: } public function doMobile2weima() { goto UGRl9; dOtD2: $openid = trim($_W['fans']['from_user']); goto MkW7N; sVOgL: $atoken = $this->getAtoken(AppID, Appsecret, $jsonid); goto CdzDh; aV_Wu: $filename = MD_ROOT . 'temp/' . $openid . '_fx.png'; goto KOzO8; dkIS1: checkauth(); goto W7x5L; s9Upd: $output = MD_ROOT . 'temp/' . $openid . '_out.png'; goto Kv200; QMA0p: $url = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token={$atoken}"; goto xzlbm; xzlbm: $data = '{"action_name": "QR_LIMIT_STR_SCENE", "action_info": {"scene": {"scene_str": "^|' . $openid . '|' . $nickname . '"}}}'; goto XW_Fj; lQ4bt: HwXiR: goto VT9iw; Wrl_c: $x1 = 320; goto gl0Fh; W7x5L: require_once MD_ROOT . '/php/phpqrcode.php'; goto iIk7m; MkW7N: $avatar = MD_ROOT . 'temp/' . $openid . '.png'; goto ilWFY; fZIIH: $this->hechengwenzi($output, 30, $x2, $y2, $text); goto vyU18; ilWFY: $jsonid = $_W['account']['original']; goto sVOgL; tkb3L: $x2 = 100; goto HabMA; yp6fw: r5D8c: goto aV_Wu; vyU18: include $this->template('daiyan'); goto nkxbp; HabMA: $y2 = 1080; goto dOtD2; gl0Fh: $y1 = 820; goto tkb3L; CdzDh: $nickname = $_W['fans']['nickname']; goto QMA0p; CM1mY: $template = MD_ROOT . 'temp/1pay.png'; goto ARa3z; KOzO8: $this->hechengewm($avatar, $url, $filename); goto CM1mY; ARa3z: $last = $filename; goto s9Upd; UGRl9: global $_W, $_GPC; goto dkIS1; iIk7m: $avatarurl = $_W['fans']['avatar']; goto Wrl_c; XI4WW: if ($result['errcode'] != 0) { goto HwXiR; } goto B0ZWZ; XW_Fj: $result = json_decode(ihttp_post($url, $data)['content'], true); goto XI4WW; PA1ea: $text = '我是' . $nickname . ',我为' . $_W['account']['name'] . '代言!'; goto fZIIH; VT9iw: message($result['errmsg']); goto yp6fw; Kv200: $this->hechengtu($template, $last, $output, $x1, $y1); goto PA1ea; jH_vs: goto r5D8c; goto lQ4bt; B0ZWZ: $url = $result['url']; goto jH_vs; nkxbp: } public function hechengewm($logo, $url, $filename) { goto cy0Zs; CVLRk: if (imagecopyresampled($QR, $logo, $from_width, $from_width, 0, 0, $logo_qr_width, $logo_qr_height, $logo_width, $logo_height)) { goto aGRmf; } goto ekYoQ; ITTvu: return 0; goto TR8it; cy0Zs: global $_W, $_GPC; goto GM4tX; Lp0fS: $logo_qr_width = $QR_width / 5; goto lK7Je; j0SUy: goto hz4Q1; goto vk5Sj; UYmU6: return 1; goto j0SUy; OG5UY: $from_width = ($QR_width - $logo_qr_width) / 2; goto CVLRk; ekYoQ: goto PEgU1; goto pXlKV; hNy4q: $logo_qr_height = $logo_height / $scale; goto OG5UY; b2D2j: PEgU1: goto qTvUR; AYW5C: $logo = imagecreatefromstring(file_get_contents($logo)); goto pRDJS; qTvUR: imagepng($QR, $last); goto F_Zxc; F_Zxc: if (file_exists($filename)) { goto v2Dlx; } goto UYmU6; vk5Sj: v2Dlx: goto ITTvu; lK7Je: $scale = $logo_width / $logo_qr_width; goto hNy4q; CIL2l: $logo_width = imagesx($logo); goto vshrZ; pXlKV: aGRmf: goto b2D2j; YGGFf: $matrixPointSize = 6; goto Jn5mN; Jn5mN: QRcode::png($url, $QR, $errorCorrectionLevel, $matrixPointSize, 1); goto iwQ9G; iwQ9G: $QR = imagecreatefromstring(file_get_contents($QR)); goto AYW5C; cFzp_: $errorCorrectionLevel = 'Q'; goto YGGFf; GM4tX: $QR = MD_ROOT . 'temp/base.png'; goto KvsDk; TR8it: hz4Q1: goto nIYJd; vshrZ: $logo_height = imagesy($logo); goto Lp0fS; pRDJS: $QR_width = imagesx($QR); goto CIL2l; KvsDk: $last = $filename; goto cFzp_; nIYJd: } public function hechengtu($template, $last, $output, $x, $y) { goto W3YSk; W3YSk: $path_1 = $template; goto P8_c2; V7qya: At7BP: goto x6Fqz; NNelP: DfxJo: goto uGyx0; vv0K6: imagepng($image_3, $EchoPath); goto JznA7; N1nQI: goto At7BP; goto NNelP; hPOPt: imagefill($image_3, 0, 0, $color); goto N5qBG; G_hxV: $EchoPath = $output; goto vv0K6; s00vY: $image_1 = imagecreatefrompng($path_1); goto SfzZH; SfzZH: $image_2 = imagecreatefrompng($path_2); goto Tv3_a; Tv3_a: $image_3 = imageCreatetruecolor(imagesx($image_1), imagesy($image_1)); goto pgQbW; uPgiu: return 0; goto N1nQI; JznA7: imagedestroy($image_3); goto hQQZe; hQQZe: if (file_exists($output)) { goto DfxJo; } goto uPgiu; ZCauM: imagecopymerge($image_3, $image_2, $x, $y, 0, 0, imagesx($image_2), imagesy($image_2), 100); goto G_hxV; uGyx0: return 1; goto V7qya; V53zZ: imagecopyresampled($image_3, $image_1, 0, 0, 0, 0, imagesx($image_1), imagesy($image_1), imagesx($image_1), imagesy($image_1)); goto ZCauM; P8_c2: $path_2 = $last; goto s00vY; N5qBG: imageColorTransparent($image_3, $color); goto V53zZ; pgQbW: $color = imagecolorallocate($image_3, 255, 255, 255); goto hPOPt; x6Fqz: } public function hechengwenzi($t, $sizi, $x, $y, $text) { goto mBE4j; mBE4j: $bigImgPath = $t; goto WpIaB; C054h: imagedestroy($img); goto aRX_c; td3D2: $circleSize = 0; goto BaX4n; sfqkD: imagepng($img, $t); goto C054h; WpIaB: $img = imagecreatefromstring(file_get_contents($bigImgPath)); goto hBCNR; BaX4n: $left = $x; goto LJQii; hBCNR: $font = MD_ROOT . 'temp/msyhbd.ttf'; goto L6bk_; s6P8I: imagefttext($img, $fontSize, $circleSize, $left, $top, $black, $font, $text); goto sfqkD; L6bk_: $black = imagecolorallocate($img, 0, 0, 128); goto bG56y; bG56y: $fontSize = $sizi; goto td3D2; LJQii: $top = $y; goto s6P8I; aRX_c: } public function GrabImage($url, $filename = "") { goto feJiz; wDv6H: $size = strlen($img); goto zbY_E; MQ80q: if (!($filename == '')) { goto fHucG; } goto mdRFQ; OqmRO: ob_start(); goto PzxtJ; PzxtJ: readfile($url); goto U7d5z; cZYy6: return false; goto NLVYm; feJiz: if (!($url == '')) { goto Q5FEY; } goto cZYy6; jqKIs: $filename = date('dMYHis') . $ext; goto eGthc; U7d5z: $img = ob_get_contents(); goto Nv0sf; mdRFQ: $ext = strrchr($url, '.'); goto jqKIs; Nv0sf: ob_end_clean(); goto wDv6H; zbY_E: $fp2 = @fopen($filename, 'a'); goto RAK3O; RAK3O: fwrite($fp2, $img); goto omHbk; NLVYm: Q5FEY: goto MQ80q; eGthc: fHucG: goto OqmRO; y0pTi: return $filename; goto Bc2Gn; omHbk: fclose($fp2); goto y0pTi; Bc2Gn: } public function doMobileWurl() { goto lBOCY; VyFYr: $qianmian = count($kefuarr); goto m4Gvl; QFWxj: if (!array_key_exists($openid, $kefuarr)) { goto HEfb5; } goto A5lfL; m4Gvl: $kefustr = json_decode(file_get_contents('../addons/qidong_app/json/' . $uniacid . '_kefu.json'), true); goto t2hws; rYKk_: $openid = trim($_W['fans']['from_user']); goto iIWAl; OQx3E: if (!($kefu != '')) { goto UJUIG; } goto qTC_r; Ib2DU: $zhuangtai = '正在对话'; goto vduVF; iIWAl: if (!empty($_W['fans']['from_user'])) { goto vmpWU; } goto JUM73; zgLRv: $jsonid = $_W['account']['original']; goto VaH11; qTC_r: $message = '您正在对话,请返回主界面.'; goto Ib2DU; JUM73: $message = '请在微信浏览器中打开!'; goto Fsi_l; W6QC3: UJUIG: goto QFWxj; tktsh: $kefuarr = json_decode($json, true); goto VyFYr; VaH11: $id = $_GPC['id']; goto wpv2b; fBiEs: include $this->template('kefuurl'); goto vsefZ; vduVF: $paidui = true; goto W6QC3; JaMQt: $wx = true; goto rYKk_; Fsi_l: $wx = false; goto BK5Pf; wpv2b: $sucailist = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid, "id " => $id), '', '', array("sid")); goto JaMQt; xZxik: $json = file_get_contents('../addons/qidong_app/json/' . $uniacid . '_paidui.json'); goto tktsh; lBOCY: global $_W, $_GPC; goto AylZI; A5lfL: $message = '排队中,请耐心等待.排队人数:' . $qianmian; goto LQ0N2; BK5Pf: vmpWU: goto xZxik; uPAJk: $paidui = true; goto u29LX; AylZI: $uniacid = $_W['uniacid']; goto zgLRv; LQ0N2: $zhuangtai = '排队中'; goto uPAJk; t2hws: $kefu = array_search($openid, $kefustr, true); goto OQx3E; u29LX: HEfb5: goto fBiEs; vsefZ: } public function doMobileWtest() { goto wCeQI; PvX4i: lFwkp: goto rUhCX; nbOIK: wpq3B: goto zwXWW; dNV79: $url = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' . $Atoken; goto WuZtn; FBI39: $signature = $info['authorizer_info']['signature']; goto VW9hQ; psWTv: $zhuangtai = '正在对话'; goto AAOFR; BYzJx: $ComponentVerifyTicket = file_get_contents('../addons/qidong_app_plugin_wx/json/VerifyTicket.json'); goto toCSA; XLUcI: goto mgVIO; goto RalKK; Wr3hH: $refresh_token = $info['authorization_info']['authorizer_refresh_token']; goto x_XvW; fNTO6: $openid = trim($_W['fans']['from_user']); goto GELEm; kcjv7: $kefustr[$kongkefu] = $openid; goto YRBJK; fzcyI: $this->sendmsg($kongkefu, 'text', $keyword, '', $url); goto IWojr; gjrfK: $userinfo = array("id" => 0, "nickname" => $_W['fans']['nickname'], "beizhu" => $_W['fans']['city'], "openid" => $openid, "message" => trim($_GPC['message'])); goto hC3ft; Utkf0: $qianmian = count($kefuarr); goto cmaGG; FmUBQ: mc_oauth_userinfo(); goto X_EUP; De_Vr: if (!empty($_W['fans']['nickname'])) { goto pmC33; } goto FmUBQ; vpiFh: ABjDe: goto wPe5K; ifBdy: $zhuangtai = '正在对话'; goto rIgag; ZgHVF: $this->sendmsg($openid, 'text', $_W['fans']['nickname'] . '你好!' . $message, '', $url); goto QMGob; RalKK: ATjTy: goto kcjv7; A_06A: $xcx = true; goto PvX4i; eeH3E: xrWhn: goto A_06A; u5Qfx: $caidan = json_decode(file_get_contents('../addons/qidong_app/json/' . $uniacid . '_caidan.json'), true); goto FouQm; QMGob: $paidui = true; goto g_7Xw; hC3ft: $kefuarr[$openid] = $userinfo; goto emnwQ; kLHlR: $json = file_get_contents('../addons/qidong_app/json/' . $uniacid . '_paidui.json'); goto J7J8e; AaZJZ: $keyword = '用户' . $_W['fans']['nickname'] . '
- ' . $_GPC['message']; goto fzcyI; CTYgQ: if (is_array($mini)) { goto xrWhn; } goto z5h4_; ZXDcr: $uniacid = $_W['uniacid']; goto OLfch; WKU5M: $message = '请在微信浏览器中打开!'; goto oQG4R; pUoMa: $wx = true; goto LLF6h; rUhCX: $name = $info['authorizer_info']['nick_name']; goto FBI39; x_XvW: $Atoken = $this->getCToken(AppID, $Cappid, $refresh_token, $Mtoken); goto dNV79; hQNt0: $message = '已接入客服中心,有' . $qianmian . '人排队,请耐心等待.请进入公众号等待回复.客服将会直接通过公众号给您回复.'; goto ZgHVF; IWojr: $this->sendmsg($openid, 'text', $_W['fans']['nickname'] . '你好!直接回复和我聊天', '', $url); goto X1FZu; VW9hQ: $Cappid = $info['authorization_info']['authorizer_appid']; goto Wr3hH; a2DUW: nSIki: goto DzlJ3; EDHtD: goto lFwkp; goto eeH3E; X1FZu: $paidui = true; goto psWTv; OLfch: $jsonid = $_W['account']['original']; goto fNTO6; z6AM1: include $this->template('kefu'); goto lgo73; J7J8e: $kefuarr = json_decode($json, true); goto Utkf0; a5xHn: if (!($kefu != '')) { goto t5VGU; } goto Ln6EZ; wPe5K: $arr = json_decode(file_get_contents('../addons/qidong_app/json/' . $jsonid . '.json'), true); goto HQMTU; ICqXV: if (!(trim($_GPC['message']) != '')) { goto wpq3B; } goto HZzho; m83Uo: t5VGU: goto czpyS; toCSA: $Mtoken = $this->getMToken(AppID, Appsecret, $ComponentVerifyTicket, '11111'); goto XlDW8; yiEn8: $mini = $info['authorizer_info']['MiniProgramInfo']; goto CTYgQ; XlDW8: $info = json_decode(file_get_contents('../addons/qidong_app_plugin_wx/jsonX/info_' . $jsonid . '.json'), true); goto yiEn8; zwXWW: goto h6Rzs; goto a2DUW; lgo73: exit; goto m83Uo; DzlJ3: $message = '排队中,请耐心等待,点击返回主界面.排队人数:' . $qianmian; goto xPaCS; cmaGG: $kefustr = json_decode(file_get_contents('../addons/qidong_app/json/' . $uniacid . '_kefu.json'), true); goto VSpKU; KtFZj: include $this->template('kefu'); goto aQDtJ; VSpKU: $kefu = array_search($openid, $kefustr, true); goto a5xHn; GELEm: $from = $_GPC['from']; goto De_Vr; oQG4R: $wx = false; goto vpiFh; wCeQI: global $_W, $_GPC; goto ZXDcr; z5h4_: $xcx = false; goto EDHtD; xPaCS: $zhuangtai = '排队中'; goto pLATF; UVQ5X: mgVIO: goto nbOIK; ppq2N: $this->sendmsg($arr['openids'], 'text', '[管理员通知]
- 用户排队:' . $_W['fans']['nickname'] . trim($_GPC['message']), '', $url); goto XLUcI; LLF6h: if (!empty($_W['fans']['from_user'])) { goto ABjDe; } goto WKU5M; g_7Xw: $zhuangtai = '排队中'; goto ppq2N; HQMTU: $kefulist = json_decode(file_get_contents('../addons/qidong_app/json/' . $uniacid . '_kefulist.json'), true); goto u5Qfx; AAOFR: $message = '您已经进入对话,点击返回主界面即可和客服对话.'; goto UVQ5X; X_EUP: pmC33: goto pUoMa; LS2HM: $res = @file_put_contents('../addons/qidong_app/json/' . $uniacid . '_paidui.json', $userjson); goto hQNt0; WuZtn: if ($kongkefu != '') { goto ATjTy; } goto gjrfK; Ln6EZ: $message = '您正在和' . $kefulist[$openid] . '对话,点击返回主界面.'; goto ifBdy; pLATF: $paidui = true; goto HaRLF; czpyS: if (array_key_exists($openid, $kefuarr)) { goto nSIki; } goto ICqXV; HZzho: $kongkefu = array_search('空闲', $kefustr, true); goto BYzJx; HaRLF: h6Rzs: goto KtFZj; rIgag: $paidui = true; goto z6AM1; emnwQ: $userjson = json_encode($kefuarr); goto LS2HM; FouQm: $helplist = array_keys($caidan); goto kLHlR; YRBJK: $res = file_put_contents('../addons/qidong_app/json/' . $uniacid . '_kefu.json', json_encode($kefustr)); goto AaZJZ; aQDtJ: } public function doWebDefaultset() { goto JrZ9y; xbz1L: print_r($result); goto fMP_U; lNRWi: include $this->template('defaultset'); goto K9u8x; fMP_U: QjJQF: goto TyH2g; KKadQ: if (empty($oldmsg['0'])) { goto QjJQF; } goto xbz1L; cB5Z5: $uniacid = $_W['uniacid']; goto N5vF_; JrZ9y: global $_W, $_GPC; goto NDGGp; fmya3: $jsonid = $_W['account']['original']; goto W3_95; jiFv_: $active = 'active'; goto lNRWi; N5vF_: $website = $_W['siteroot']; goto fmya3; TyH2g: load()->func('communication'); goto jiFv_; W3_95: $oldmsg = pdo_getall('qidongapp', array("uniacid" => $uniacid)); goto KKadQ; NDGGp: checklogin(); goto cB5Z5; K9u8x: } public function doWebkefuset() { goto tJQQQ; q_mh9: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto lujgP; } goto Y_WkL; tJQQQ: global $_W, $_GPC; goto JoHHx; lKEIv: $navmsg = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid, "sid <" => 10), array("sid", "keywords"), '', array("sid")); goto bIG76; bpksG: goto dfv9g; goto dO1l_; ZYoq8: e8TXL: goto S_NFK; MQ0vN: BOhBY: goto ONCaK; qN4Ex: dfv9g: goto I61WZ; wzVb4: $isxz = true; goto WDCkN; HJC2t: $website = $_W['siteroot']; goto oWH1t; WDCkN: aEslN: goto q_mh9; eGmYX: $active5 = 'active'; goto j2TbL; VQqTa: $ktcount = pdo_getall('qidongapp_kefu', array()); goto swmCt; dO1l_: lujgP: goto qTl_N; pF6a0: goto hBMn4; goto MQ0vN; lytT5: $etime = $list[0]['etime']; goto ectaf; o8f0T: Nq20A: goto ivqYJ; E29_q: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}.json", true); goto SIUom; bXCee: $newmsg = json_decode(file_get_contents("../addons/qidong_app/json/{$jsonid}.json", true), true); goto XVN1D; Eno2X: if (file_exists('../addons/qidong_app/json/' . $uniacid . '_keywords.json')) { goto e8TXL; } goto os3mI; os3mI: $zhuangtai .= '请先添加知识库.'; goto ovHTF; ectaf: CyZUR: goto QpPti; oWNg8: $isgzh = true; goto T6S6b; MMJf9: FLMHp: goto VQqTa; gFjYW: sqJWX: goto Eno2X; j2TbL: include $this->template('kefuset'); goto pF6a0; kWU9w: if (!file_exists('../addons/qidong_app/template/mobile/pay.html')) { goto DUuKY; } goto oWNg8; V_0iP: $zhuangtai = '尚未开始对接'; goto VKN_z; JoHHx: checklogin(); goto LCaIj; SIUom: $result = json_decode($file, true); goto f67eG; oWH1t: $isfounder = $_W['isfounder']; goto uhZor; D8tYO: $list = pdo_getall('qidong_kehu', array("ToUserName" => $jsonid)); goto nB2uH; uhZor: $username = $_W['username']; goto kWU9w; XVN1D: if (empty($oldmsg['0'])) { goto mB8x1; } goto XwIf0; Y_WkL: $moshi = '接口模式'; goto bpksG; KEHWi: load()->func('communication'); goto pd7Fj; LCaIj: $uniacid = $_W['uniacid']; goto c1mT6; c1mT6: $jsonid = $_W['account']['original']; goto HJC2t; T6S6b: DUuKY: goto dGq2M; f67eG: $lopenid = $result['openids']; goto D8tYO; nB2uH: if (!(count($list) > 0)) { goto CyZUR; } goto lytT5; S_NFK: $zhuangtai .= '已添加知识库'; goto ZwCnO; QdW2W: hBMn4: goto f25QY; pd7Fj: if (!(substr($website, 0, 5) != 'https')) { goto FLMHp; } goto VWp1H; VWp1H: $website = 'https' . substr($website, 4); goto MMJf9; qTl_N: $moshi = '授权模式'; goto E29_q; ZwCnO: VA3mQ: goto lKEIv; ivqYJ: $zhuangtai = '已生成对接文件.'; goto gFjYW; bIG76: $oldmsg = pdo_getall('qidongapp_kefu', array("uniacid" => $uniacid)); goto bXCee; ONCaK: message('超过设置数量.请升级高级版.'); goto QdW2W; VKN_z: goto sqJWX; goto o8f0T; dGq2M: if (!file_exists('../addons/qidong_app/xzapp.php')) { goto aEslN; } goto wzVb4; ovHTF: goto VA3mQ; goto ZYoq8; XwIf0: mB8x1: goto KEHWi; QpPti: $Tdatas = json_decode(file_get_contents('../addons/qidong_app_plugin_wx/json/tuiguang_config.json', true), true); goto qN4Ex; swmCt: if (count($ktcount) > 2000) { goto BOhBY; } goto eGmYX; I61WZ: if (file_exists('../addons/qidong_app/json/' . $jsonid . '.json')) { goto Nq20A; } goto V_0iP; f25QY: } public function doWebkefupost() { goto o6qaa; PiLgH: load()->func('communication'); goto qS5Ff; Yc5lK: include $this->template('kefuset'); goto CjIR_; o6qaa: global $_W, $_GPC; goto bYKkS; qS5Ff: $jsonarr = json_encode($oldmsg); goto uZ2jh; H8Z9c: $uniacid = $_W['uniacid']; goto lY3bH; bYKkS: checklogin(); goto H8Z9c; uZ2jh: $active6 = 'active'; goto Yc5lK; lY3bH: $website = $_W['siteroot']; goto PiLgH; CjIR_: } public function doWebSavedefault() { goto esWxW; GJNTd: $insertdata = array("store_id" => $store_id, "store_name" => $store_name, "store_logo" => $store_logo, "wxweb" => $wxweb, "qidongimg" => $qidongimg, "shareContent" => $shareContent, "Androidurl" => $Androidurl, "iosdownweb" => $iosdownweb, "leftBackgroundImage" => $leftBackgroundImage, "navBackgroundImage" => $navBackgroundImage, "zjcolor" => $zjcolor, "hytxt" => $hytxt, "bbcolor" => $bbcolor, "ttcolor" => $ttcolor, "whcolor" => $whcolor); goto R8nr1; X5U_S: $store_id = $_GPC['store_id']; goto v_6Az; k0XJy: BHv4e: goto LiekL; IzaF_: $qidongimg = $_GPC['qidongimg']; goto QlAKQ; pmZKB: $bbcolor = $_GPC['bbcolor']; goto Qboz7; GFYWD: EgG71: goto WZpwS; pF1iU: $baidu_ad_ios = $_GPC['baidu_ad_ios']; goto IzaF_; Vq7z7: $Androidurl = $_GPC['Androidurl']; goto Fww0i; t3Quv: $uniacid = $_W['uniacid']; goto u8L4b; R8nr1: $result = pdo_update('qidongapp', $insertdata, array("uniacid" => $uniacid)); goto SwtIW; zUq_8: $leftBackgroundImage = $_GPC['leftBackgroundImage']; goto njHQ6; TP2MQ: goto BHv4e; goto j1HPH; OVqIo: include $this->template('defaulset'); goto XhvkI; xO0ou: message('添加成功'); goto IOgzK; cxRuz: $whcolor = $_GPC['whcolor']; goto zUq_8; g4HYF: tqx1X: goto xO0ou; ecd4F: rlq41: goto GJNTd; GcHpf: $shareContent = $_GPC['shareContent']; goto Vq7z7; esWxW: global $_W, $_GPC; goto iSqxO; oS2Ew: $data = array("uniacid" => $uniacid, "store_id" => $store_id, "store_logo" => $store_logo, "store_name" => $store_name, "wxweb" => $wxweb, "qidongimg" => $qidongimg, "shareContent" => $shareContent, "Androidurl" => $Androidurl, "iosdownweb" => $iosdownweb, "leftBackgroundImage" => $leftBackgroundImage, "navBackgroundImage" => $navBackgroundImage, "zjcolor" => $zjcolor, "hytxt" => $hytxt, "bbcolor" => $bbcolor, "ttcolor" => $ttcolor, "whcolor" => $whcolor); goto xSK2k; de6kZ: message('修改失败' . $result); goto TP2MQ; YVrcn: $store_name = $_GPC['store_name']; goto X6yQu; oD39I: message('安装不正确,请重新安装数据表.'); goto SWZ_E; u8L4b: $result = pdo_getall('qidongapp', array("uniacid" => $uniacid)); goto oG5zu; TqJfB: message('添加失败' . $result); goto qjbEv; X6yQu: $wxweb = $_GPC['wxweb']; goto GcHpf; qjbEv: goto E5AuV; goto g4HYF; njHQ6: $navBackgroundImage = $_GPC['navBackgroundImage']; goto t3Quv; Fww0i: $iosdownweb = $_GPC['iosdownweb']; goto M217m; JV4c_: $baidu_ad_ard = $_GPC['baidu_ad_ard']; goto pF1iU; Qboz7: $ttcolor = $_GPC['ttcolor']; goto cxRuz; SWZ_E: exit; goto GFYWD; Irz6L: $zjcolor = $_GPC['zjcolor']; goto X2jDj; QlAKQ: $qidongurl = $_GPC['qidongurl']; goto Irz6L; GmUAm: message('修改成功'); goto k0XJy; LiekL: yFoed: goto OVqIo; IOgzK: E5AuV: goto jHMvw; M217m: $iosdownweb = $_GPC['iosdownweb']; goto JV4c_; iSqxO: if (pdo_tableexists('qidongapp_kefu')) { goto EgG71; } goto oD39I; IBgxJ: if (!empty($result)) { goto tqx1X; } goto TqJfB; xSK2k: $result = pdo_insert('qidongapp', $data); goto IBgxJ; j1HPH: YdyQf: goto GmUAm; X2jDj: $hytxt = $_GPC['hytxt']; goto pmZKB; v_6Az: $store_logo = $_GPC['store_logo']; goto YVrcn; oG5zu: if (!empty($result['0'])) { goto rlq41; } goto oS2Ew; jHMvw: goto yFoed; goto ecd4F; SwtIW: if (!empty($result)) { goto YdyQf; } goto de6kZ; WZpwS: $website = $_W['siteroot']; goto X5U_S; XhvkI: } public function doWebquxiaokefu() { goto Kc2AT; uBNRG: message('修改成功!', referer(), 'success'); goto PAaki; Kc2AT: global $_W, $_GPC; goto bamT2; WspB1: message('设置失败,请确保qidong_app/json目录有777权限.'); goto RRgje; yXYvg: unlink('../addons/qidong_app_plugin_wx/jsonX/info_' . $jsonid . '.json'); goto h3nzH; PAaki: goto PJBeP; goto EaRiI; bamT2: $jsonid = $_GPC['jsonid']; goto yXYvg; EaRiI: H20Uk: goto WspB1; RRgje: PJBeP: goto iGcyi; h3nzH: if (file_exists('../addons/qidong_app_plugin_wx/jsonX/info_' . $jsonid . '.json')) { goto H20Uk; } goto uBNRG; iGcyi: } public function doWebsavekefu() { goto qtWnZ; TrAkW: H8hOy: goto Ei7l1; v04mn: aYh8R: goto PDGci; cB7jp: $list = pdo_getall('qidong_kehu', array("ToUserName" => $jsonid)); goto Vbzpv; IqU7K: $demo_arr['ID'] = $jsonid; goto go9Xt; Qx6Iu: $etime = $list[0]['etime']; goto TrAkW; ae3Ci: if (!empty($result)) { goto YirBH; } goto avCQu; VifMr: $res = @file_put_contents('../addons/qidong_app/json/' . $jsonid . '.json', $ok_json); goto st6Q_; w_K8y: $result = pdo_insert('qidongapp_kefu', $data); goto WhxOv; VEQhG: $qita = $_GPC['qita']; goto xLL5b; Fnana: $demo_arr['Gjsonid'] = $caidan; goto VcfNo; niXUS: $uniacid = $_W['uniacid']; goto gAMf8; nWA27: message('修改成功!', referer(), 'success'); goto GtCVS; BBJYf: exit; goto oxwy3; VcfNo: $demo_arr['Gappid'] = $guanzhu_title; goto IKGnF; GtfoW: $demo_arr['paidui'] = $_GPC['paidui']; goto w_0dy; IDy5K: $demo_arr['Mobanid'] = $guanzhu_logo; goto bQ6K7; Oks64: $demo_arr['结束语'] = $call; goto A4GeI; tlKmC: fwrite($fp, $jsonStr); goto mfMwM; Pv_wY: goto Uxf3u; goto v04mn; QfKxk: $demo_arr['APPSECRET'] = trim($appsecret); goto bryE5; YB8PY: $demo_arr['openids'] = trim($openid); goto QfKxk; QT_wK: $jsonStr = json_encode($data); goto bDA_w; eCX5B: $json = file_get_contents('json/demo.json'); goto ZLvGB; RURYh: $demo_arr['culname'] = $qq_des; goto Pp0er; bZU_l: $demo_arr['mang'] = $_GPC['mang']; goto GtfoW; H23eB: VCNYt: goto mBAXh; XfEnq: $openid = $_GPC['openid']; goto KfVfx; gAMf8: $jsonid = $_W['account']['original']; goto Ylio9; v3I1F: $caidan = str_replace('{br}', '
- ', $caidan); goto Fnana; GZWRX: Uxf3u: goto VlcPD; KKGRH: $data = array("uniacid" => $uniacid, "jsonid" => $jsonid, "appid" => $appid, "appsecret" => $appsecret, "moren" => $moren, "qita" => $qita, "caidan" => $caidan, "guanzhu_title" => $guanzhu_title, "guanzhu_des" => $guanzhu_des, "guanzhu_url" => $guanzhu_url, "guanzhu_logo" => $guanzhu_logo, "qq_title" => $qq_title, "qq_des" => $qq_des, "qq_url" => $qq_url, "qq_logo" => $qq_logo, "call" => $call); goto w_K8y; ojChP: goto KsXsM; goto H23eB; q8mvQ: $website = $_W['siteroot']; goto CDdEZ; mBAXh: KsXsM: goto y31MN; YwWbs: $result = json_decode($response['content'], true); goto vGtBp; WYXZ1: $demo_arr['uniacid'] = $uniacid; goto hFFXB; yAR61: include $this->template('kefuset'); goto XnqHb; E7t1U: if (!($sok != 'ok')) { goto HhdA1; } goto ARwMq; CocZK: $ifok = 'appsecret正确'; goto Kt9WU; KfVfx: $appsecret = $_GPC['appsecret']; goto AXLrj; A6mBI: $guanzhu_title = $_GPC['guanzhu_title']; goto MP033; c3l21: unlink('../addons/qidong_app/json/' . $jsonid . '.json'); goto VifMr; W5Lgv: if (!empty($result['0'])) { goto ecKFP; } goto KKGRH; T_sDw: $qq_title = $_GPC['qq_title']; goto M286S; eZ0Nf: goto evZQN; goto Vw_KV; heZir: $call = $_GPC['call']; goto niXUS; w_0dy: $demo_arr['kaishi'] = $_GPC['kaishi']; goto Oks64; HX5FN: goto AJSMI; goto CqpSK; IKGnF: $demo_arr['GAPPSECRET'] = $guanzhu_des; goto HjdFq; A6JZ1: $sok = $response['content']; goto E7t1U; GtCVS: AJSMI: goto SZda7; CDdEZ: $appid = $_GPC['appid']; goto XfEnq; qtWnZ: global $_W, $_GPC; goto q8mvQ; ARwMq: message($sok); goto BBJYf; HjdFq: $demo_arr['Gopenids'] = $guanzhu_url; goto IDy5K; vfx8H: goto sOAIL; goto AY73V; bDA_w: $fp = fopen("../addons/qidong_app/json/{$jsonid}_token.json", 'w'); goto tlKmC; vQEOh: if (file_exists('../addons/qidong_app/json/' . $caidan . '.json')) { goto VCNYt; } goto b1waX; CqpSK: NdYM3: goto nWA27; SZda7: $response = ihttp_get('http://vmall.woshangtong.com/ok.php?store=' . $_W['siteroot']); goto A6JZ1; Vbzpv: if (!(count($list) > 0)) { goto H8hOy; } goto Qx6Iu; aurz5: $result = pdo_update('qidongapp_kefu', $insertdata, array("uniacid" => $uniacid)); goto ae3Ci; y31MN: SvEHh: goto v3I1F; UaLPb: $response = ihttp_get($token_access_url); goto YwWbs; vGtBp: $Atoken = $result['access_token']; goto L7eRv; PDGci: message('添加成功,现在编辑知识库后,重新提交下,才能完成对接.' . $ifok); goto GZWRX; htoaW: $guanzhu_url = $_GPC['guanzhu_url']; goto TkAkl; A4XOD: if (!($qita == '公众号客服')) { goto SvEHh; } goto vQEOh; s1YEm: message('设置失败,请确保qidong_app/json目录有777权限.'); goto HX5FN; mfMwM: fclose($fp); goto BL8oK; avCQu: message('修改失败' . $result); goto eZ0Nf; DNOfs: jXF7w: goto yAR61; AXLrj: $moren = $_GPC['moren']; goto VEQhG; bQ6K7: $demo_arr['tablename'] = $qq_title; goto RURYh; jqVuY: message('添加失败' . $result); goto Pv_wY; Vgrm7: $data['expires'] = time() + 7200; goto QT_wK; st6Q_: if (file_exists('../addons/qidong_app/json/' . $jsonid . '.json')) { goto NdYM3; } goto s1YEm; L7eRv: if ($Atoken != '') { goto vOPdG; } goto vfx8H; qfUmi: $demo_arr['其他'] = $qita; goto UrnqO; U6k31: $qq_logo = $_GPC['qq_logo']; goto heZir; DThUP: $qq_url = $_GPC['qq_url']; goto U6k31; A4GeI: $ok_json = json_encode($demo_arr); goto c3l21; xLL5b: $caidan = $_GPC['caidan']; goto A6mBI; Vw_KV: YirBH: goto eCX5B; Kt9WU: $data['access_token'] = $Atoken; goto Vgrm7; xJYs3: ecKFP: goto crpqK; J4P0J: exit; goto ojChP; TkAkl: $guanzhu_logo = $_GPC['guanzhu_logo']; goto T_sDw; Pp0er: $demo_arr['findname'] = $qq_url; goto bZU_l; M286S: $qq_des = $_GPC['qq_des']; goto DThUP; crpqK: $insertdata = array("jsonid" => $jsonid, "appid" => $appid, "openid" => $openid, "appsecret" => $appsecret, "moren" => $moren, "qita" => $qita, "caidan" => $caidan, "guanzhu_title" => $guanzhu_title, "guanzhu_des" => $guanzhu_des, "guanzhu_url" => $guanzhu_url, "guanzhu_logo" => $guanzhu_logo, "qq_title" => $qq_title, "qq_des" => $qq_des, "qq_url" => $qq_url, "qq_logo" => $qq_logo, "call" => $call, "updatetime" => time()); goto aurz5; oxwy3: HhdA1: goto x_AHZ; UrnqO: $demo_arr['etime'] = $etime; goto A4XOD; VlcPD: goto jXF7w; goto xJYs3; bryE5: $demo_arr['默认'] = $moren; goto qfUmi; Ylio9: $token_access_url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' . $appid . '&secret=' . $appsecret; goto UaLPb; ZLvGB: $demo_arr = json_decode($json, true); goto IqU7K; BL8oK: sOAIL: goto cB7jp; Ei7l1: $result = pdo_getall('qidongapp_kefu', array("uniacid" => $uniacid)); goto W5Lgv; AY73V: vOPdG: goto CocZK; hFFXB: $demo_arr['website'] = $_W['siteroot']; goto YB8PY; WhxOv: if (!empty($result)) { goto aYh8R; } goto jqVuY; x_AHZ: evZQN: goto DNOfs; b1waX: message('选择公众号客服,需要新建一个小程序去对接公众号!'); goto J4P0J; MP033: $guanzhu_des = $_GPC['guanzhu_des']; goto htoaW; go9Xt: $demo_arr['APPID'] = $appid; goto WYXZ1; XnqHb: } public function doWebNavset() { goto eHfA3; eHfA3: global $_W, $_GPC; goto x2ki2; lQfDX: $website = $_W['siteroot']; goto wbskc; J_v21: $active1 = 'active'; goto lQfDX; x2ki2: checklogin(); goto J_v21; FjAdP: include $this->template('defaultset'); goto PNz2K; wbskc: load()->func('communication'); goto FjAdP; PNz2K: } public function doWebSavenav() { goto OnceJ; i9IP6: $wecha_id = '0'; goto vX_RI; Bsl_2: goto c9Sqk; goto hwsq2; OhRnQ: $name = $_GPC['name']; goto z7K3c; z7K3c: $likes = $_GPC['likes']; goto q7Uhx; z2oC0: $website = $_W['siteroot']; goto gc0Vb; gc0Vb: $uniacid = $_W['uniacid']; goto P96In; vX_RI: $navdata = array("uniacid" => $uniacid, "user_id" => $user_id, "name" => $name, "likes" => $likes, "wlogo" => $wlogo, "ordid" => $ordid, "zjcolor" => $zjcolor, "linktype" => $linktype, "bbcolor" => $bbcolor, "ttcolor" => $ttcolor); goto jxN63; jxN63: $result = pdo_insert('qidongapp_msg', $navdata); goto iTtBg; YIMJ2: $zjcolor = $_GPC['zjcolor']; goto a0Ljh; a0Ljh: $linktype = $_GPC['linktype']; goto YX_h6; wBkgc: $ttcolor = $_GPC['ttcolor']; goto i9IP6; KlmRI: $this->doWebList(); goto rdioI; rdioI: c9Sqk: goto Q9s8Y; RDikk: $ordid = $_GPC['ordid']; goto YIMJ2; YX_h6: $bbcolor = $_GPC['bbcolor']; goto wBkgc; iTtBg: if (!empty($result)) { goto F95SC; } goto UeMAj; OnceJ: global $_W, $_GPC; goto z2oC0; P96In: $user_id = $_GPC['user_id']; goto OhRnQ; q7Uhx: $wlogo = $_GPC['siteroot'] . 'attachment/' . $_GPC['wlogo']; goto RDikk; hwsq2: F95SC: goto KlmRI; UeMAj: message('添加失败' . $result); goto Bsl_2; Q9s8Y: } public function doWebsucaiDel() { goto Vj5US; MRST2: if (empty($result)) { goto pob_s; } goto NjHS2; OgjId: $id = $_GPC['id']; goto g907d; rZq50: pob_s: goto vhYAX; g907d: $result = pdo_delete('qidongapp_sucai', array("id" => $id)); goto MRST2; Vj5US: global $_W, $_GPC; goto OgjId; NjHS2: $this->doWebsucaiList(); goto rZq50; vhYAX: } public function doWebsucaiList() { goto GCft5; dcYOb: $count_hc = count($navmsg); goto qkNs6; lruvm: b5BRf: goto R9Ynm; m3t2x: $active1 = 'active'; goto LaGAW; ugLfI: $keylist[$navmsg[$x]['keywords']] = $numbers; goto qz0GH; kTEFw: $keyjson = json_encode($keyid); goto NRQIF; tMNb7: $navmsg = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid), array(), '', 'sid '); goto dcYOb; tqsnS: iGn5x: goto CNm92; a3Ezl: q8okp: goto vatex; qkNs6: $x = 0; goto UQyhu; z1BtB: UArp3: goto ugLfI; CNm92: $navmsg = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid, "stype" => $stype)); goto lruvm; A6FC5: WFqPL: goto z1BtB; ogWQU: goto cyYGy; goto Xlbdr; yE113: $x++; goto ogWQU; tSP9y: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_keywords.json', $userjson); goto AyC6d; R9Ynm: include $this->template('sucaiset'); goto aSPUK; YgPgL: unlink('../addons/qidong_app/json/' . $_W['uniacid'] . '_keys.json'); goto isnIV; LaGAW: $uniacid = $_W['uniacid']; goto VBmNC; qz0GH: $keyid[$navmsg[$x]['sid']] = $navmsg[$x]['keywords']; goto djItw; K_a3V: switch ($navmsg[$x]['stype']) { case 'news': goto jJeWe; hbfEf: XPqla: goto Zg4Qm; M6cxC: $y = 0; goto hbfEf; Zg4Qm: if (!($y < count($dtlist))) { goto N0K1m; } goto kOfXi; yAqkg: $dtlist = explode('|', $title, -1); goto M6cxC; jJeWe: $title = $navmsg[$x]['title'] . '|'; goto yAqkg; kOfXi: $dtwapp = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid, "sid" => $dtlist[$y])); goto qIvpf; OpqlR: N0K1m: goto cY3CA; oDR0N: goto UArp3; goto SGBUK; qIvpf: if (!($dtwapp[0]['stype'] == 'link')) { goto AdQF3; } goto M0idM; TDu0p: AdQF3: goto xfKzu; cY3CA: $articles = array("articles" => $articles); goto xlo_Y; u4uJH: goto XPqla; goto OpqlR; xfKzu: tCkOg: goto K89jy; xlo_Y: $numbers = array("msgtype" => "news", "news" => $articles); goto oDR0N; M0idM: $articles[$y] = array("title" => $dtwapp[0]['title'], "description" => $dtwapp[0]['description'], "url" => $dtwapp[0]['url'], "picurl" => $_W['attachurl'] . $dtwapp[0]['thumb_url']); goto TDu0p; K89jy: $y++; goto u4uJH; SGBUK: case 'text': goto ty1oL; bcuAH: $userinfo = array("content" => $title); goto Irkpj; ty1oL: $title = $navmsg[$x]['title']; goto PsVqH; joiW4: goto UArp3; goto LgjCG; Irkpj: $numbers = array("msgtype" => "text", "text" => $userinfo); goto joiW4; PsVqH: $title = str_replace('{br}', '
- ', $title); goto bcuAH; LgjCG: case 'link': goto orXPf; INUPq: $numbers = array("msgtype" => "link", "link" => $userinfo); goto hk0sy; hk0sy: goto UArp3; goto g_cZM; orXPf: $userinfo = array("title" => $navmsg[$x]['title'], "description" => $navmsg[$x]['description'], "url" => $navmsg[$x]['url'], "thumb_url" => $_W['attachurl'] . $navmsg[$x]['thumb_url']); goto INUPq; g_cZM: case 'image': goto ygQXD; ygQXD: $userinfo = array("media_id" => trim($navmsg[$x]['description'])); goto WWwLF; WWwLF: $numbers = array("msgtype" => "image", "image" => $userinfo); goto g08Km; g08Km: goto UArp3; goto WjdM3; WjdM3: case 'voice': goto WDWWB; gLjOn: $numbers = array("msgtype" => "voice", "voice" => $userinfo); goto Tv_rO; Tv_rO: goto UArp3; goto xQhoQ; WDWWB: $userinfo = array("media_id" => trim($navmsg[$x]['description'])); goto gLjOn; xQhoQ: case 'miniprogrampage': goto tZnAk; ifEJJ: goto UArp3; goto aARt_; GgQp2: $numbers = array("msgtype" => "miniprogrampage", "miniprogrampage" => $userinfo); goto ifEJJ; tZnAk: $userinfo = array("title" => $navmsg[$x]['title'], "pagepath" => $navmsg[$x]['url'], "thumb_media_id" => trim($navmsg[$x]['description']), "appid" => trim($navmsg[$x]['appid'])); goto GgQp2; aARt_: default: $userinfo = array("content" => "未知回复"); $numbers = array("msgtype" => "text", "text" => $userinfo); } goto A6FC5; vatex: goto b5BRf; goto tqsnS; VBmNC: $stype = $_GPC['stype']; goto dWIXw; LqtJ3: checklogin(); goto m3t2x; UQyhu: cyYGy: goto GPMWz; isnIV: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_keys.json', $keyjson); goto tSP9y; F8dNm: $huancun = '生成数据缓存成功.'; goto a3Ezl; dWIXw: if ($stype != '') { goto iGn5x; } goto tMNb7; Xlbdr: ESv1S: goto I_bll; GCft5: global $_W, $_GPC; goto LqtJ3; AyC6d: if (!file_exists('../addons/qidong_app/json/' . $_W['uniacid'] . '_keywords.json')) { goto q8okp; } goto F8dNm; NRQIF: unlink('../addons/qidong_app/json/' . $_W['uniacid'] . '_keywords.json'); goto YgPgL; djItw: nhUJs: goto yE113; I_bll: $userjson = json_encode($keylist, JSON_UNESCAPED_UNICODE); goto kTEFw; GPMWz: if (!($x < count($navmsg))) { goto ESv1S; } goto K_a3V; aSPUK: } public function doWebduokefuDel() { goto cpUJe; ezzhR: message('删除成功!', referer(), 'success'); goto h3fGv; IomkE: $kefulist = json_decode($file, true); goto zElyM; hZ5Eq: if (!empty($result)) { goto Q8mzD; } goto bKyCE; Ax66c: $file = file_get_contents("../addons/qidong_app/json/{$uniacid}_kefu.json", true); goto DGfjO; CUFT1: if (!($shouquan['leixing'] != '')) { goto C2PBM; } goto xhBB7; rodA0: message('添加成功,等待审核!', referer(), 'success'); goto nG2no; iorpU: message('修改成功!', referer(), 'success'); goto H1pd1; xhBB7: message($shouquan['leixing']); goto DkYNx; guDr9: $shouquan = array("website" => $_W['uniaccount']['name'], "hyleixing" => "审核中", "uid" => $uniacid, "uniacid" => $uniacid, "maxnum" => 0); goto ZJWI4; UJLOm: if (!empty($result['0'])) { goto UyZVe; } goto S5x_w; x2hrq: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_kefu.json', json_encode($kefulist)); goto Qc1B3; JGcwG: $shouquan = $result['0']; goto HgUmY; C2Cht: goto KmU54; goto Zrz50; Wa0O1: $uniacid = $_W['uniacid']; goto Y1X94; h3fGv: UW0GD: goto PloU4; xdGU1: $openid = $_GPC['openid']; goto Wa0O1; cpUJe: global $_W, $_GPC; goto UAxom; H1pd1: WJJCH: goto sWEjK; IKz81: KmU54: goto CUFT1; HgUmY: message('已经申请过了..'); goto VGjYc; DGDu4: $file = file_get_contents("../addons/qidong_app/json/{$uniacid}_kefu.json", true); goto IomkE; Qc1B3: message('修改成功!', referer(), 'success'); goto dtCG2; ZJWI4: $result = pdo_insert('eqchuiyuan_ucid', $shouquan); goto hZ5Eq; Zrz50: UyZVe: goto JGcwG; UAxom: $id = $_GPC['id']; goto xdGU1; zElyM: $kefulist[$openid] = '空闲'; goto jjyvJ; dtCG2: QUNVT: goto YpeQ1; bKyCE: message('添加失败' . $result); goto KfXUW; S5x_w: $website = $_W['siteroot']; goto guDr9; VGjYc: exit; goto IKz81; DkYNx: C2PBM: goto iorpU; KfXUW: goto vQMQW; goto pKXl6; sWEjK: if (!($_GPC['action'] == 'deng')) { goto QUNVT; } goto Ax66c; u7RTN: message('修改成功!', referer(), 'success'); goto s0XMf; UJoU4: $result = pdo_getall('eqchuiyuan_ucid', array("uid" => $uniacid)); goto UJLOm; td2p1: if (!($_GPC['action'] == 'del')) { goto UW0GD; } goto vpgNk; DGfjO: $kefulist = json_decode($file, true); goto TFvWV; vpgNk: $result = pdo_delete('qidongapp_admin', array("id" => $id)); goto ezzhR; Y1X94: if (!($_GPC['action'] == 'kaitong')) { goto WJJCH; } goto UJoU4; s0XMf: CeBBO: goto td2p1; nG2no: vQMQW: goto C2Cht; YpeQ1: if (!($_GPC['action'] == 'kong')) { goto CeBBO; } goto DGDu4; pKXl6: Q8mzD: goto rodA0; jjyvJ: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_kefu.json', json_encode($kefulist)); goto u7RTN; TFvWV: $kefulist[$openid] = '隐身'; goto x2hrq; PloU4: } public function doWebduokefuset() { goto sJMs4; Rn95o: $uniacid = $_W['uniacid']; goto gifV9; m52NI: Zb3XP: goto OLC1U; aXX1X: $jsonid = $_W['account']['original']; goto e9sfL; PSdLD: message('生成数据缓存成功.'); goto m52NI; Ok_MI: $kefu[$wxapp[$x]['openid']] = $morenzt; goto EYtOm; XKC7C: KtsSU: goto oe_ZT; gzPrM: goto L32iG; goto SbJIF; TKZkL: $file = file_get_contents("../addons/qidong_app/json/{$uniacid}_kefu.json", true); goto zXMA5; gifV9: $bianji = $_GPC['bianji']; goto TKZkL; IZQ5f: if (!file_exists('../addons/qidong_app/json/' . $_W['uniacid'] . '_user.json')) { goto Zb3XP; } goto PSdLD; pMMq3: $userjson = json_encode($numbers); goto gQ4Bq; ePIGu: $json = file_get_contents('../addons/qidong_app/json/' . $jsonid . '.json'); goto nFNdx; OZN28: $zongshu = '{"website":"","leixing":"2","ucid":null,"maxnum":"100"}'; goto n8ny0; Ch4FL: $shouquan = array("website" => $website, "hyleixing" => null, "ucid" => $uniacid, "maxnum" => 0); goto gzPrM; sugt9: $navmsg = pdo_getall('eqchuiyuan_ucid', 'hyleixing=\'多客服\''); goto ORIVp; SbJIF: Qlbyd: goto owwla; sJMs4: global $_W, $_GPC; goto mjomn; fHzzd: if (!(substr($website, 0, 5) != 'https')) { goto KtsSU; } goto kyaaV; Ryi4O: $morenzt = '空闲'; goto Sh_qu; dGjZQ: SAETA: goto S3Tlw; ORIVp: $shiyongnum = count($navmsg); goto okF2k; e9sfL: if (!($_GPC['shengcheng'] == 1)) { goto Q4z8r; } goto bqnGJ; k8xKz: unlink('../addons/qidong_app/json/' . $jsonid . '_kefulist.json'); goto gSd0S; XZ3k1: if (array_key_exists($wxapp[$x]['openid'], $kefulist)) { goto cmclK; } goto Ryi4O; Fk7Tx: $active20 = 'active'; goto xaeVY; Xmodl: if (!($x < count($wxapp))) { goto DNC0U; } goto CoAbL; enL9l: PU5t_: goto M651w; zXMA5: $kefulist = json_decode($file, true); goto OZN28; CoAbL: $morenzt = '空闲'; goto XZ3k1; cmsD1: goto UdyxN; goto Z23_m; AORWZ: $morenzt = $kefulist[$wxapp[$x]['openid']]; goto enL9l; owwla: $shouquan = $result['0']; goto WG1MR; wCaQP: $website = $_W['siteroot']; goto fHzzd; WG1MR: L32iG: goto nNHnQ; lMKIF: $numbers[$wxapp[$x]['openid']] = $wxapp[$x]['nickname']; goto Ok_MI; M651w: $kefustr = $kefustr . '-' . $wxapp[$x]['nickname']; goto lMKIF; KPAzh: $x++; goto cmsD1; rKCE0: unlink('../addons/qidong_app/json/' . $_W['uniacid'] . '_kefu.json'); goto mALns; Sh_qu: goto PU5t_; goto kuRPc; okF2k: $result = pdo_getall('eqchuiyuan_ucid', array("hyleixing" => "多客服", "uid" => $uniacid)); goto oRSPT; gSd0S: $res = @file_put_contents('../addons/qidong_app/json/' . $jsonid . '_kefulist.json', $userjson); goto M1jkR; pVFo5: $demo_arr['kefustr'] = $kefustr; goto hrSfq; USSzZ: $isfounder = $_W['isfounder']; goto Rn95o; bqnGJ: $x = 0; goto gA5yu; mALns: unlink('../addons/qidong_app/json/' . $_W['uniacid'] . '_kefulist.json'); goto ByEgx; oe_ZT: include $this->template('kefuset'); goto A1pT4; bw7cH: exit; goto dGjZQ; nFNdx: $demo_arr = json_decode($json, true); goto pVFo5; ByEgx: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_kefulist.json', $userjson); goto Ny4Qo; gA5yu: UdyxN: goto Xmodl; xaeVY: $id = $_GPC['id']; goto USSzZ; n8ny0: $zongshu = json_decode($zongshu, true); goto sugt9; gQ4Bq: $kefujson = json_encode($kefu); goto rKCE0; Z23_m: DNC0U: goto ePIGu; oRSPT: if (!empty($result['0'])) { goto Qlbyd; } goto Ch4FL; nNHnQ: if (!($shouquan['leixing'] == '停用')) { goto SAETA; } goto lrzyU; kuRPc: cmclK: goto AORWZ; M1jkR: $res = @file_put_contents('../addons/qidong_app/json/' . $jsonid . '_kefu.json', $kefujson); goto IZQ5f; Ny4Qo: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_kefu.json', $kefujson); goto tK5mS; OLC1U: Q4z8r: goto wCaQP; a_AJT: $nownum = count($wxapp); goto aXX1X; mjomn: checklogin(); goto Fk7Tx; EYtOm: rpQ5F: goto KPAzh; S3Tlw: $wxapp = pdo_getall('qidongapp_admin', array("uniacid" => $_W['uniacid'])); goto a_AJT; tK5mS: unlink('../addons/qidong_app/json/' . $jsonid . '_kefu.json'); goto k8xKz; kyaaV: $website = 'https' . substr($website, 4); goto XKC7C; lrzyU: message('账号已经停用.'); goto bw7cH; hrSfq: $res = @file_put_contents('../addons/qidong_app/json/' . $jsonid . '.json', json_encode($demo_arr)); goto pMMq3; A1pT4: } public function doWebduokefusave() { goto hCcVf; DdPk6: $website = $_W['siteroot']; goto o0YyD; MBjFL: $result = pdo_insert('qidongapp_admin', $navdata); goto JxOOW; XJZom: $active20 = 'active'; goto mvlpr; NNPRk: $uniacid = trim($_W['uniacid']); goto gFPQY; hCcVf: global $_W, $_GPC; goto DQOhW; o0YyD: include $this->template('kefuset'); goto BHcSN; E9fIa: wj34D: goto DdPk6; N5Ge7: aT22_: goto MNfYb; mHN_R: goto wj34D; goto N5Ge7; JxOOW: if (!empty($result)) { goto aT22_; } goto fgdBc; fgdBc: message('添加失败' . $result); goto mHN_R; MokL3: $navdata = array("uniacid" => $uniacid, "nickname" => $kfname, "openid" => $kfopenid); goto MBjFL; DQOhW: checklogin(); goto XJZom; gFPQY: $kfname = trim($_GPC['kfname']); goto MokL3; mvlpr: $kfopenid = trim($_GPC['kfopenid']); goto NNPRk; MNfYb: message('修改成功!', referer(), 'success'); goto E9fIa; BHcSN: } public function doWebSucaiset() { goto yhIyg; MDI99: $bianji = $_GPC['bianji']; goto CgFNs; cqMvg: load()->func('communication'); goto PginR; yhIyg: global $_W, $_GPC; goto H10AU; CgFNs: $helplist = pdo_getall('qidongapp_helptype', array("uniacid" => $uniacid)); goto tyWHu; agy5s: $id = $_GPC['id']; goto yEVxS; tyWHu: if (!($bianji == '1')) { goto ONJGI; } goto HvBYJ; xq4Pc: ObKCx: goto cqMvg; Zg53P: pv2xx: goto yb3Hq; iL0nL: $navmsg1 = json_encode($navmsg[0]); goto YVOvq; zRu7L: $website = $_W['siteroot']; goto eCEIF; HvBYJ: $navmsg = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid, "id" => $id)); goto iL0nL; H10AU: checklogin(); goto agy5s; yb3Hq: $active9 = 'active'; goto xq4Pc; gvrn5: $active = 'active'; goto eQZ7I; eQZ7I: goto ObKCx; goto Zg53P; yEVxS: $uniacid = $_W['uniacid']; goto MDI99; eCEIF: if ($_GPC['rich'] == 1) { goto pv2xx; } goto gvrn5; YVOvq: ONJGI: goto zRu7L; PginR: include $this->template('sucaiset'); goto iUwWY; iUwWY: } public function doWebSavesucai() { goto FutV0; bQcm1: $uniacid = $_W['uniacid']; goto wqknF; Oegc6: fVmhd: goto pTg7p; is2dB: $htype = $_GPC['htype']; goto B6P1O; BoFD8: message('添加失败' . $result); goto uxw5B; C_CeC: $token = $result['authorizer_access_token']; goto iPK18; tgYgu: if (!($result == '')) { goto OcA78; } goto IYh9o; CjNN1: $token = $result['access_token']; goto mcLi3; GzloP: $stype = ''; goto l5yc8; FutV0: global $_W, $_GPC; goto ZHWX7; c9jxs: $url = $_GPC['url']; goto UZZVO; N3ps7: $data = array("media" => '@' . $add); goto KLMOk; z_9LT: load()->func('communication'); goto ndKzb; uYAnI: gEWiM: goto GzloP; h13MJ: $navdata = array("uniacid" => $uniacid, "jsonid" => $jsonid, "sid" => $sid, "keywords" => $keywords, "stype" => $stype, "zhuangtai" => $htype, "title" => $title, "description" => $description, "url" => $url, "thumb_url" => $thumb_url, "appid" => $_GPC['appid'], "edittime" => time()); goto ahwxn; ZHWX7: if (pdo_tableexists('qidongapp_sucai')) { goto Chfzn; } goto c0WzG; pTg7p: Xymla: goto IG04n; K_ULF: $imgs = ihttp_request($img); goto I3I7g; AQWly: $result = json_decode($file, true); goto C_CeC; PIDcF: if (!empty($result)) { goto gEWiM; } goto BoFD8; wqknF: $id = $_GPC['id']; goto BJfb1; i99_p: $description = $result; goto Hi5mA; sLxOh: qLtcv: goto kVUuX; FGo_w: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto xjuQ_; I3gHk: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto qLtcv; } goto FGo_w; TQlCA: $add = '../addons/qidong_app/temp/' . $id . '.png'; goto K_ULF; BJfb1: $sid = $_GPC['sid']; goto NxzZ5; rrNg9: $title = $_GPC['title']; goto yO2CL; bLAb8: goto fVmhd; goto yRsbX; BDWcY: $type = 'image'; goto SUJSu; I3I7g: $res = @file_put_contents($add, $imgs['content']); goto BDWcY; JaXbv: OcA78: goto rJ9Qo; rBo4l: $img = $_W['attachurl'] . $_GPC['thumb_url']; goto TQlCA; UZZVO: $thumb_url = $_GPC['thumb_url']; goto mHSjo; SUJSu: if (!($thumb_url != '')) { goto NUUWD; } goto z_9LT; NxzZ5: $keywords = $_GPC['keywords']; goto is2dB; A44wn: IsQGq: goto q0eEr; q9RD3: EdCOD: goto i99_p; uxw5B: goto IsQGq; goto uYAnI; rJ9Qo: NUUWD: goto q9RD3; c0WzG: message('安装不正确,少知识库表,请联系安装.'); goto tQoTR; B6P1O: $stype = $_GPC['stype']; goto rrNg9; LmSSj: $result = pdo_update('qidongapp_sucai', $navdata, array("uniacid" => $uniacid, "id" => $id)); goto PW5hZ; NhVu4: $result = json_decode($file, true); goto fwpTV; yydpY: Chfzn: goto bQcm1; Thtxw: message('编辑失败!'); goto bLAb8; l5yc8: message('修改成功!', referer(), 'success'); goto A44wn; mFFka: zkcWM: goto h13MJ; Hi5mA: rename($add, '../addons/qidong_app/temp/' . $result . '.png'); goto mFFka; q0eEr: goto Xymla; goto vz467; ndKzb: $url1 = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={$token}&type={$type}"; goto N3ps7; IYh9o: $result = '转换发送错误,请重试.'; goto xjONs; xjONs: message($result); goto JaXbv; o2YGi: if (!($token != '')) { goto EdCOD; } goto rBo4l; mHSjo: $jsonid = $_W['account']['original']; goto yz01k; kVUuX: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json", true); goto NhVu4; yz01k: if (!($stype == 'image' or $stype == 'miniprogrampage')) { goto zkcWM; } goto I3gHk; KLMOk: $requsetdata = ihttp_request($url1, $data)['content']; goto SUvD_; SUvD_: $result = json_decode($requsetdata, true)['media_id']; goto tgYgu; fwpTV: $appid = $result['authorization_info']['authorizer_appid']; goto WQmgw; B0w0k: $this->doWebsucaiList(); goto Oegc6; yRsbX: US6VY: goto B0w0k; yO2CL: $description = $_GPC['description']; goto c9jxs; mcLi3: goto Ur7lw; goto sLxOh; iPK18: Ur7lw: goto o2YGi; xjuQ_: $result = json_decode($file, true); goto CjNN1; ahwxn: if ($_GPC['bianji'] == 1) { goto SKZ_B; } goto Q8xsR; tQoTR: exit; goto yydpY; WQmgw: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto AQWly; vz467: SKZ_B: goto LmSSj; Q8xsR: $result = pdo_insert('qidongapp_sucai', $navdata); goto PIDcF; PW5hZ: if (!empty($result)) { goto US6VY; } goto Thtxw; IG04n: } public function doWebSavesucai_detail() { goto d4g56; oliNN: if (!empty($result)) { goto q5qLt; } goto MD0Fo; E9kN4: N1iqQ: goto R45E0; MD0Fo: message('编辑失败!'); goto oBKne; dXNMk: $navdata = array("uniacid" => $uniacid, "beizhu" => $beizhu); goto MTkbQ; Nw2xe: message('修改成功!', referer(), 'success'); goto E9kN4; bsj5P: $id = $_GPC['id']; goto Hz3dT; An8LE: $uniacid = $_W['uniacid']; goto bsj5P; d4g56: global $_W, $_GPC; goto An8LE; vodsB: q5qLt: goto Nw2xe; oBKne: goto N1iqQ; goto vodsB; Hz3dT: $beizhu = $_GPC['beizhu']; goto dXNMk; MTkbQ: $result = pdo_update('qidongapp_sucai', $navdata, array("uniacid" => $uniacid, "id" => $id)); goto oliNN; R45E0: } public function doWebList() { goto PFNRH; axhZu: checklogin(); goto lxPim; ZH8dk: $uniacid = $_W['uniacid']; goto Feflr; PFNRH: global $_W, $_GPC; goto axhZu; lxPim: $active2 = 'active'; goto ZH8dk; Feflr: $navmsg = pdo_getall('qidongapp_msg', array("uniacid" => $uniacid)); goto uXq3P; uXq3P: include $this->template('defaultset'); goto GaVso; GaVso: } public function doWebDel() { goto i2jlT; by9Pg: $result = pdo_delete('qidongapp_msg', array("id" => $id)); goto aO8Uz; aO8Uz: if (empty($result)) { goto UDMIn; } goto cIEXT; nThP_: $id = $_GPC['id']; goto by9Pg; cIEXT: $this->doWebList(); goto J6pFL; i2jlT: global $_W, $_GPC; goto nThP_; J6pFL: UDMIn: goto FKk3n; FKk3n: } public function doWebUploadimg() { goto j8FFP; XYw2P: $url1 = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={$token}&type={$type}"; goto AZTT9; sih8T: $url = $_W['attachurl'] . $_GPC['img']; goto cKkfD; bJEYh: $res = @file_put_contents($add, $img['content']); goto wSYId; wSYId: load()->func('communication'); goto XYw2P; xO0uV: $content = 'token过期,用管理员微信进入小程序可自动更新.'; goto VHpwD; MqeHO: $token = $result['access_token']; goto OcmeG; B0sWj: $jsonid = $_W['account']['original']; goto ni5T3; N0xyc: $result = json_decode($requsetdata, true)['media_id']; goto f9Lei; ni5T3: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto dS1uS; cKkfD: $ext = strrchr($url, '.'); goto l2QEm; WmfSO: T8myI: goto Rod7T; j8FFP: global $_W, $_GPC; goto TfNlQ; dCgPp: $type = $_GPC['stype']; goto Mh9wu; l2QEm: $add = '../addons/qidong_app/json/1' . $ext; goto muLPg; zyewP: $result = $result; goto U_mwj; TfNlQ: checklogin(); goto B3Skn; CMxDb: $url = $_W['attachurl'] . $_GPC['img']; goto dCgPp; f9Lei: if (!($result == '')) { goto T8myI; } goto ZNFi8; OcmeG: if (!($url != '')) { goto Xs4Bm; } goto sih8T; B3Skn: $active9 = 'active'; goto B0sWj; g8rVc: YWsrD: goto xO0uV; U_mwj: include $this->template('sucaiset'); goto KodsG; XIs7C: $requsetdata = ihttp_request($url1, $data)['content']; goto N0xyc; gd5ob: goto DLf6k; goto g8rVc; AZTT9: $data = array("media" => '@' . $add); goto XIs7C; ZNFi8: $result = '发生错误.请检查.'; goto WmfSO; dS1uS: $result = json_decode($file, true); goto CMxDb; Mh9wu: if (time() > $result['expires']) { goto YWsrD; } goto MqeHO; VHpwD: DLf6k: goto zyewP; Rod7T: Xs4Bm: goto gd5ob; muLPg: $img = ihttp_request($url); goto bJEYh; KodsG: } public function doWebjson() { goto LtsjH; SOSnN: goto dUEjw; goto ZGFgg; kIvEy: $naven = '{"List": [' . json_encode($wx[0]) . ']}'; goto lMWC0; MApN4: $jsonid = $store_id . $uniacid; goto QKziy; EIiFV: $i = 0; goto W4fX8; BFEeW: $str .= json_encode('db=2->null'); goto iiHm8; WXtpA: $active3 = 'active'; goto hPwy3; B5mWx: $i++; goto SOSnN; vi5zf: $nav[$i]['wlogo'] = $_W['siteroot'] . $nav[$i]['wlogo']; goto hkyr0; pesTr: goto cQnzL; goto dnMeC; iiHm8: $str .= ']}'; goto pesTr; hPwy3: $uniacid = $_W['uniacid']; goto cHkCw; dnMeC: vEoyB: goto w6YD2; naXjU: $store_id = $wx[0]['store_id']; goto MApN4; rhS4z: $wx[0]['leftBackgroundImage'] = $_W['siteroot'] . 'attachment/' . $wx[0]['leftBackgroundImage']; goto WsBzp; XIpMP: $store_name = trim($wx[0]['store_name']); goto naXjU; ZGFgg: S0a9G: goto plA93; lMWC0: $store_logo = $wx[0]['store_logo']; goto WUDIu; WsBzp: $wx[0]['navBackgroundImage'] = $_W['siteroot'] . 'attachment/' . $wx[0]['navBackgroundImage']; goto XIpMP; ZKDtb: $str = '{"List": ['; goto BFEeW; ZwRwA: $str .= ']}'; goto HAp1O; NRX1H: $jsonall = '{"store": ' . $naven . ',"wxmenu": ' . $str . '}'; goto Kmegj; HAp1O: cQnzL: goto NRX1H; LtsjH: global $_W, $_GPC; goto WXtpA; plA93: $str = substr($str, 0, strlen($str) - 1); goto ZwRwA; w6YD2: $str = '{"List": ['; goto EIiFV; Hjj1K: $nav = pdo_getall('qidongapp_msg', array("uniacid" => $uniacid)); goto kIvEy; cHkCw: $wx = pdo_getall('qidongapp', array("uniacid" => $uniacid)); goto sHEie; Kmegj: include $this->template('defaultset'); goto aTKYY; w1BLP: ZhSCQ: goto B5mWx; W4fX8: dUEjw: goto nN8_E; sHEie: $wx[0]['store_logo'] = $_W['siteroot'] . 'attachment/' . $wx[0]['store_logo']; goto rhS4z; nN8_E: if (!($i < count($nav))) { goto S0a9G; } goto vi5zf; hkyr0: $str .= json_encode($nav[$i]) . ','; goto w1BLP; QKziy: $website = $_W['siteroot']; goto iVoQO; iVoQO: $wxapp = '{"List": ' . json_encode($wx) . '}'; goto Hjj1K; WUDIu: if (count($nav) > 0) { goto vEoyB; } goto ZKDtb; aTKYY: } public function doWebappdown() { goto IDCPP; chvnQ: $active4 = 'active'; goto dfd3E; l_a8q: $jsonid = $store_id . $uniacid; goto ImEiF; L0nzk: include $this->template('defaultset'); goto pK52i; dfd3E: $uniacid = $_W['uniacid']; goto oncyL; oncyL: $wx = pdo_getall('qidongapp', array("uniacid" => $uniacid)); goto GgQ8X; xNARH: $downapp = 'http://vmall.woshangtong.com/data/files/store_' . $jsonid . '/client/we_mall.apk'; goto L0nzk; IDCPP: global $_W, $_GPC; goto chvnQ; ImEiF: $store_logo = $wx[0]['store_logo']; goto xNARH; GgQ8X: $store_name = trim($wx[0]['store_name']); goto n95fu; n95fu: $store_id = $wx[0]['store_id']; goto l_a8q; pK52i: } public function doWebGetuserlist() { goto GrpBx; Y3Cw1: fkJRW: goto Na9Ni; CHspy: waSwy: goto A1FON; VqqgV: unlink('../addons/qidong_app/json/' . $_W['uniacid'] . '_user.json'); goto QNzO0; dWXhX: hLln_: goto axvBy; Gn8yq: $wxapp_list = pdo_getslice('qidongapp_user', array("uniacid" => $_W['uniacid']), array($page, $pagelist), $total, array(), ''); goto oZAqR; QNzO0: $res = @file_put_contents('../addons/qidong_app/json/' . $_W['uniacid'] . '_user.json', $userjson); goto qrD8S; axvBy: $x++; goto Vdko5; RMD8y: $huancun = '生成数据缓存成功.'; goto OSAc3; E2ION: $page = 1; goto dG1Ck; Na9Ni: if (!($x < $pagecount)) { goto w7yA2; } goto jvFZm; TX0Cr: $wxapp = pdo_getall('qidongapp_user', array("uniacid" => $_W['uniacid'])); goto CAAsn; Vdko5: goto fkJRW; goto oWDiq; ysr1g: $sjd = strtotime('-2 day'); goto L0zjj; hYV9c: $x = 0; goto RzrO1; F3noI: $userinfo = array("id" => $wxapp_hc[$x]['id'], "nickname" => $wxapp_hc[$x]['nickname'], "lastliao" => $wxapp_hc[$x]['lastliao']); goto j6bB2; L0zjj: $wxapp_hc = pdo_getall('qidongapp_user', array("uniacid" => $_W['uniacid'], "lasttime >" => $sjd)); goto TX0Cr; plv89: L0xn5: goto nZwnw; PKDv9: $count = count($wxapp_list); goto U9NfV; qrD8S: if (!file_exists('../addons/qidong_app/json/' . $_W['uniacid'] . '_user.json')) { goto i_BYp; } goto RMD8y; qzj6K: if (!($x < count($wxapp_hc))) { goto HGrau; } goto F3noI; ofKY3: HGrau: goto tolMg; RzrO1: zw3Pb: goto qzj6K; oZAqR: UI1cx: goto fxnZR; ZkRDE: $isall = $_GPC['isall']; goto ysr1g; n6sqN: $page = $_GPC['page']; goto u4Xm0; oWDiq: w7yA2: goto Gn8yq; nZwnw: $wxapp_list = $wxapp; goto n6sqN; YFjy4: $pages = array(); goto IK5E3; qx3Qg: goto UI1cx; goto plv89; OSAc3: i_BYp: goto G8nFq; U9NfV: $pagelist = 30; goto Kq1CV; jvFZm: $pages[$x] = $x; goto dWXhX; G8nFq: if ($isall == 1) { goto L0xn5; } goto ZD4NV; u4Xm0: if (!($page == '')) { goto urJ2j; } goto E2ION; TYYa1: $count_hc = count($wxapp_hc); goto hYV9c; szjh6: goto zw3Pb; goto ofKY3; j6bB2: $numbers[$wxapp_hc[$x]['openid']] = $userinfo; goto CHspy; dG1Ck: urJ2j: goto PKDv9; fxnZR: $active8 = 'active'; goto nL6jP; ZD4NV: $wxapp_list = $wxapp_hc; goto qx3Qg; tolMg: $userjson = json_encode($numbers); goto VqqgV; A1FON: $x++; goto szjh6; nL6jP: include $this->template('xiaoxicenter'); goto qia1X; LELlN: $isadmin = $_GPC['isadmin']; goto ZkRDE; GrpBx: global $_GPC, $_W; goto LELlN; Kq1CV: $pagecount = floor($count / $pagelist) + 1; goto YFjy4; CAAsn: $alluser = count($wxapp); goto TYYa1; IK5E3: $x = 1; goto Y3Cw1; qia1X: } public function doWebEdituser() { goto nfrQe; VEl9O: $uniacid = $_W['uniacid']; goto Ds1yB; Ds1yB: $nickname = $_GPC['nickname']; goto l0eSz; l0eSz: $usermgs = array("jsonid" => $jsonid); goto QcXec; QcXec: $data = pdo_update('qidongapp_user', $usermgs, array("uniacid" => $uniacid)); goto PS0ay; q_Ay0: $id = $_GPC['id']; goto VEl9O; J6dV1: zqRjw: goto gdFxT; plXaI: $active7 = 'active'; goto VLa4q; PS0ay: $ifok = $data ? 1 : 0; goto wtYSI; VLa4q: $jsonid = $_W['account']['original']; goto q_Ay0; wtYSI: if (!($ifok == 1)) { goto zqRjw; } goto evIYm; nfrQe: global $_GPC, $_W; goto plXaI; evIYm: message('更新成功!'); goto J6dV1; gdFxT: } public function getToken($appid, $appsecret, $jsonid) { goto nPFYD; Mp8b4: if (time() > $result['expires']) { goto p1C1I; } goto EI0zP; BeMYm: $data = array(); goto OyW62; bTCTu: p1C1I: goto BeMYm; VpzgE: goto Ew24u; goto bTCTu; CRNTd: $data['expires'] = time() + 7200; goto xy4vR; kknBf: fclose($fp); goto bPYK_; EI0zP: return $result['access_token']; goto VpzgE; OyW62: $data['access_token'] = getNewToken($appid, $appsecret); goto CRNTd; dThMT: Ew24u: goto xQLWd; bPYK_: return $data['access_token']; goto dThMT; bw8NJ: fwrite($fp, $jsonStr); goto kknBf; nPFYD: $file = file_get_contents("json/{$jsonid}_token.json", true); goto LH2dk; xy4vR: $jsonStr = json_encode($data); goto ye7Ce; ye7Ce: $fp = fopen("json/{$jsonid}_token.json", 'w'); goto bw8NJ; LH2dk: $result = json_decode($file, true); goto Mp8b4; xQLWd: } public function doWebgetNewToken($appid, $appsecret) { goto Xa061; NqLDt: $response = ihttp_get($token_access_url); goto e_LS3; yFiE3: return $result['access_token']; goto FLXkW; Xa061: $token_access_url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' . $appid . '&secret=' . $appsecret; goto NqLDt; e_LS3: $result = json_decode($response['content'], true); goto yFiE3; FLXkW: } public function doWebgetcaidan($appid, $appsecret) { goto bTZN8; ZpUzj: goto I3Ze3; goto aICxn; j0Rsx: $result = ihttp_request($url_g, $postData)['content']; goto BUOSB; uX2zs: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto EG4Xw; EG4Xw: $result = json_decode($file, true); goto lsx3C; SANBn: $moshi = '[接口模式]'; goto MS8kb; cLj9Z: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json", true); goto U3AXt; fSDN9: $result = json_decode($file, true); goto JbqNg; cpeaK: $active11 = 'active'; goto AA7CY; Dj4XF: $result = '设置成功! 菜单编号:' . $result['menuid']; goto NMeZZ; KxYgp: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto bGIz_; yyqvb: aLYFn: goto XDmKv; mvjYH: $url_d = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token={$token}"; goto W2Y0V; a8UMG: I4WwE: goto DLH4r; MlwnZ: $token = $result['access_token']; goto ZpUzj; BUOSB: $result = json_decode($result, true); goto jfe_R; qiwqF: goto VhRtg; goto eLbKB; KWnQu: if (file_exists("../addons/qidong_app/json/{$jsonid}_glymenu.json")) { goto qdmgp; } goto D6ZRE; FlaZs: $appid = $result['authorization_info']['authorizer_appid']; goto rqZ1c; oLfZ3: goto pfdQY; goto FKBAn; JbqNg: $appid = $result['authorization_info']['authorizer_appid']; goto NS1r5; U3AXt: $result = json_decode($file, true); goto FlaZs; blQ85: $biaoqian = ihttp_get($url_g)['content']; goto AaGED; NaKRR: j5Eq0: goto NjOqR; TqRzg: $token = $result['authorizer_access_token']; goto Ku91E; IEHNm: $result = json_decode($file, true); goto a4OIw; Ku91E: pfdQY: goto LhEg1; jfe_R: if ($result['menuid'] != '') { goto aLYFn; } goto j7Vn_; NriqS: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto sMm_g; } goto SANBn; e3W8e: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto NOtAX; } goto KxYgp; D6ZRE: $postData = file_get_contents('../addons/qidong_app/json/demo_g.json', true); goto X36Bt; X36Bt: goto ykK80; goto rCSgy; FtvmV: if (!($juese == 'gly')) { goto Kugn5; } goto oX0yP; XDmKv: $res = @file_put_contents("../addons/qidong_app/json/{$jsonid}_glymenu.json", $postData); goto Dj4XF; NS1r5: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto IEHNm; AA7CY: load()->func('communication'); goto frOAw; MS8kb: goto I4WwE; goto yyEF6; a4OIw: $token = $result['authorizer_access_token']; goto BbhbY; BbhbY: I3Ze3: goto cpeaK; W2Y0V: include $this->template('kefuset'); goto A0ObT; rqZ1c: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto eyVV5; zvmJH: ykK80: goto t6hPi; NjOqR: Kugn5: goto e3W8e; bGIz_: $result = json_decode($file, true); goto MlwnZ; FKBAn: ko_Il: goto cLj9Z; pOl2m: $moshi = '[授权模式]'; goto a8UMG; bTZN8: global $_W, $_GPC; goto bin6g; RL0jC: VhRtg: goto ce1F5; frOAw: $url_g = "https://api.weixin.qq.com/cgi-bin/tags/get?access_token={$token}"; goto blQ85; NMeZZ: message('设置成功,稍后生效.请往微信公众号查看.'); goto NaKRR; GctKf: $url_g = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token={$token}"; goto LmsFU; ZgyLb: load()->func('communication'); goto GctKf; v2bHl: if (!($juese == '')) { goto orMEp; } goto FiVr1; LhEg1: $active11 = 'active'; goto ZgyLb; qn5IZ: $postData = str_replace('"', '"', $postData); goto j0Rsx; IA1yW: $jsonid = $_W['account']['original']; goto NriqS; K9rdn: $postData = file_get_contents("../addons/qidong_app/json/{$jsonid}_glymenu.json", true); goto zvmJH; eLbKB: QrmIb: goto RL0jC; oX0yP: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto ko_Il; } goto uX2zs; DLH4r: $juese = $_GPC['juese']; goto v2bHl; eyVV5: $result = json_decode($file, true); goto TqRzg; MWc8w: goto j5Eq0; goto yyqvb; lsx3C: $token = $result['access_token']; goto oLfZ3; bin6g: checklogin(); goto IA1yW; bhEty: message('设置出错:Token可能过期.' . $result); goto MWc8w; yyEF6: sMm_g: goto pOl2m; rCSgy: qdmgp: goto K9rdn; AaGED: if ($result['errcode'] == 0) { goto QrmIb; } goto qiwqF; j7Vn_: $result = $result['errcode'] . $result['errmsg']; goto bhEty; ce1F5: $url_1 = "https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token={$token}"; goto C3d9J; C3d9J: $url2 = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token={$token}"; goto mvjYH; IcMz6: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json", true); goto fSDN9; LmsFU: $postData = trim($_GPC['postData']); goto qn5IZ; FiVr1: $active11 = 'active'; goto KWnQu; aICxn: NOtAX: goto IcMz6; t6hPi: orMEp: goto FtvmV; A0ObT: } public function doWebgetcaidankh($appid, $appsecret) { goto Frplv; yZ46A: $result = json_decode($file, true); goto B5Rna; mwcVd: $result = '设置成功!'; goto wIa4t; a91kY: w91Bg: goto fI6J2; kRs1L: goto dRLFG; goto NfJ6M; M0CL7: $result = ihttp_request($url1, $postData)['content']; goto bP4Pt; zutdA: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto uMRZA; juXxw: $result = json_decode($file, true); goto f0VI7; f0VI7: $appid = $result['authorization_info']['authorizer_appid']; goto v12wd; IMcSY: $token = $result['access_token']; goto zeF6S; ZP0ww: $postData = trim($_GPC['postData']); goto c8Zy6; RxKk_: VGJpA: goto ntmNt; uMRZA: $result = json_decode($file, true); goto LVQoJ; KgwhC: C6dzT: goto vv1Kp; qCN2H: $moshi = '[授权模式]'; goto NUzTw; fc2jT: $result = json_decode($file, true); goto f0tb6; C858x: NKH93: goto qCN2H; aj6PQ: Xj9Ub: goto jeA5Z; TwiM5: goto C6dzT; goto aj6PQ; fAGkR: $postData = file_get_contents('../addons/qidong_app/json/demo_k.json', true); goto KlzDr; HxSOt: $result = ihttp_get($url_d); goto G4Y_x; fI6J2: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json", true); goto juXxw; mVW0C: $token = $result['authorizer_access_token']; goto wILgQ; vv1Kp: $active12 = 'active'; goto e1qy0; KFzMn: goto iUt6z; goto m36QI; e1qy0: $url_d = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token={$token}"; goto HxSOt; m36QI: O3UZr: goto bhGZc; KlzDr: goto WEOBo; goto NqniJ; NUzTw: vb7kb: goto ZTK4q; NmBiw: $postData = file_get_contents("../addons/qidong_app/json/{$jsonid}_kehumenu.json", true); goto vjFQN; vjFQN: WEOBo: goto GwLWi; ZTK4q: $juese = $_GPC['juese']; goto RjJyL; LVQoJ: $token = $result['authorizer_access_token']; goto KgwhC; I8H4y: $result = $result['errmsg']; goto cxe6p; G4Y_x: if ($result['errcode'] == 0) { goto O3UZr; } goto A83Rr; xFh2r: $result = json_decode($result, true); goto mH0Op; ljfRW: message('设置成功,稍后生效.请往微信公众号查看.'); goto h2Hg1; f0tb6: $appid = $result['authorization_info']['authorizer_appid']; goto zutdA; JGfzJ: $url2 = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token={$token}"; goto yBqbi; dlGZy: message('设置出错:' . $result); goto KFzMn; H_xjl: $jsonid = $_W['account']['original']; goto WRAMj; GwLWi: TlXH2: goto Qf7Tz; kmQiV: $active12 = 'active'; goto rdgdW; RjJyL: if (!($juese == '')) { goto TlXH2; } goto lBWAL; Uz17m: iUt6z: goto RxKk_; Box2s: $moshi = '[接口模式]'; goto o3T8F; NfJ6M: u9TzC: goto mwcVd; NqniJ: pFy8c: goto NmBiw; A83Rr: $result = $result['errmsg']; goto dlGZy; Qf7Tz: if (!($juese == 'del')) { goto VGJpA; } goto SnfXv; jeA5Z: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json", true); goto fc2jT; Tc3y7: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto w91Bg; } goto Z25OM; h2Hg1: dRLFG: goto yKnWy; ixcY7: $result = json_decode($file, true); goto IMcSY; Z25OM: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto ixcY7; yKnWy: bLIP2: goto wGg2w; wIa4t: $res = @file_put_contents("../addons/qidong_app/json/{$jsonid}_kehumenu.json", $postData); goto ljfRW; lBWAL: $active12 = 'active'; goto l4xXI; cxe6p: message('设置出错:Token可能过期,在公众号内随便说点什么.' . $result); goto kRs1L; mH0Op: if ($result['errcode'] == 0) { goto u9TzC; } goto I8H4y; Frplv: global $_W, $_GPC; goto I_PNZ; c8Zy6: $postData = str_replace('"', '"', $postData); goto M0CL7; rdgdW: load()->func('communication'); goto LOpFT; WRAMj: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto NKH93; } goto Box2s; WZFhH: include $this->template('kefuset'); goto LiZYo; LOpFT: $url1 = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$token}"; goto ZP0ww; v12wd: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto TNVHS; SnfXv: if (file_exists("../addons/qidong_app_plugin_wx/jsonX/info_{$jsonid}.json")) { goto Xj9Ub; } goto HkE3M; zeF6S: goto wTmea; goto a91kY; B5Rna: $token = $result['access_token']; goto TwiM5; bhGZc: message('删除成功,稍后生效.请往微信公众号查看.'); goto Uz17m; l4xXI: if (file_exists("../addons/qidong_app/json/{$jsonid}_kehumenu.json")) { goto pFy8c; } goto fAGkR; wGg2w: $url_1 = "https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token={$token}"; goto JGfzJ; yBqbi: $url1 = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$token}"; goto WZFhH; bP4Pt: print_r($result); goto xFh2r; HkE3M: $file = file_get_contents("../addons/qidong_app/json/{$jsonid}_token.json", true); goto yZ46A; o3T8F: goto vb7kb; goto C858x; wILgQ: wTmea: goto kmQiV; TNVHS: $result = json_decode($file, true); goto mVW0C; I_PNZ: checklogin(); goto H_xjl; ntmNt: if (!($juese == 'kehu')) { goto bLIP2; } goto Tc3y7; LiZYo: } public function doWebhuiyuanList() { goto OQpZf; CFOKX: $shouquan = json_decode($shouquan, true); goto kbQtY; neZZZ: include $this->template('huiyuanset'); goto OQL8Y; wYl61: $shouquan = '{"website":"","leixing":"2","ucid":null,"maxnum":"100"}'; goto CFOKX; OQpZf: global $_W, $_GPC; goto KRkEk; KRkEk: checklogin(); goto Td0cb; tOju5: $role = $_W['role']; goto wYl61; Td0cb: $active2 = 'active'; goto FaPuP; zvrYf: $shiyongnum = count($navmsg); goto neZZZ; FaPuP: $uniacid = $_W['uniacid']; goto HbMwX; HbMwX: $isfounder = $_W['isfounder']; goto tOju5; kbQtY: $navmsg = pdo_getall('eqchuiyuan_ucid', 'hyleixing=\'多客服\'', '', '', '', array(1, $shouquan['maxnum'])); goto zvrYf; OQL8Y: } public function doWebfeiyuanList() { goto tsylh; gkN4J: $uniacid = $_W['uniacid']; goto YSzzE; Ts5GO: $active3 = 'active'; goto gkN4J; lHxQv: include $this->template('huiyuanset'); goto QsLg5; tsylh: global $_W, $_GPC; goto E0lHq; D7Gah: $shiyongnum = count($navmsg); goto VJYAx; E0lHq: checklogin(); goto Ts5GO; FARUm: $role = $_W['role']; goto wOoQm; dvai8: $navmsg = pdo_getall('eqchuiyuan_ucid', 'hyleixing=\'多客服\''); goto D7Gah; hH1wD: $feiyongnum = count($navmsg); goto lHxQv; VJYAx: $navmsg = pdo_getall('eqchuiyuan_ucid', 'hyleixing<>\'多客服\''); goto hH1wD; YSzzE: $isfounder = $_W['isfounder']; goto FARUm; wOoQm: $shouquan = '{"website":"","leixing":"2","ucid":null,"maxnum":"100"}'; goto mPgld; mPgld: $shouquan = json_decode($shouquan, true); goto dvai8; QsLg5: } public function doWebedithuiyuan() { goto xtMtu; xIc0H: $result = pdo_update('eqchuiyuan_ucid', $navdata, array("id" => $id)); goto kb3_0; NMqDO: if ($isfounder) { goto E2PAP; } goto IzifJ; QUZPZ: exit; goto PArbm; TC_Dp: $isfounder = $_W['isfounder']; goto dkNlt; HKy7u: $uniacid = $_W['uniacid']; goto oQbL3; kb3_0: if (!empty($result)) { goto iXlTK; } goto fWp08; PArbm: E2PAP: goto vUDtH; vUDtH: $navdata = array("hyleixing" => $_GPC['hyleixing'], "maxnum" => $_GPC['maxnum']); goto xIc0H; oQbL3: $id = $_GPC['id']; goto TC_Dp; ZdHar: $this->doWebhuiyuanList(); goto Rp5tE; IzifJ: message($isfounder . $role . $_W['uid'] . '无权限'); goto QUZPZ; dkNlt: $role = $_W['role']; goto NMqDO; X81fZ: iXlTK: goto ZdHar; WkYHt: checklogin(); goto HKy7u; Rp5tE: Fpxxs: goto wU8XH; fWp08: message('编辑失败!'); goto ztkKD; ztkKD: goto Fpxxs; goto X81fZ; xtMtu: global $_W, $_GPC; goto WkYHt; wU8XH: } public function doWebshouquan() { goto zSa4C; Hoxea: define('Appsecret', $datas['Appsecret']); goto THUxY; usk5A: $openurl = 'https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=' . AppID . "&pre_auth_code={$pre_auth_code}&redirect_uri={$redirect_url}&auth_type="; goto WMOXX; RUsYU: $website = $_W['siteroot']; goto vR6dp; p40l0: $isfounder = $_W['isfounder']; goto RsU_d; Tb6wV: $pre_auth_code = ihttp_post($url, $data); goto Ypc4o; v7wpd: $redirect_url = "{$website}/addons/qidong_app/redirect_url.php"; goto usk5A; y8XWu: define('TOKEN', 'eqcxcx'); goto RubSt; K0rVl: checklogin(); goto RUsYU; zSa4C: global $_W, $_GPC; goto K0rVl; hIDHz: $data = '{"component_appid":"' . AppID . '" }'; goto XRImA; RsU_d: $datas = json_decode($datas, true); goto y8XWu; RubSt: define('AppID', $datas['AppID']); goto Hoxea; XRImA: $url = 'https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token=' . $Mtoken; goto Tb6wV; vR6dp: $datas = file_get_contents('../addons/qidong_app/json/config.json'); goto p40l0; Ypc4o: $pre_auth_code = json_decode($pre_auth_code['content'], true)['pre_auth_code']; goto v7wpd; dzSA6: $result = json_decode($file, true); goto Yy0cs; THUxY: define('EncodingAESKey', '53o42sbbzslie4tjbll3ta5zlwe11rrk53o42sbbzsl'); goto d2e5N; WMOXX: $active2 = 'active'; goto nmzhn; d2e5N: $file = file_get_contents('../addons/qidong_app/jsonX/' . AppID . '_token.json', true); goto dzSA6; Yy0cs: $Mtoken = $result['component_access_token']; goto hIDHz; nmzhn: include $this->template('shouquan'); goto QWZXm; QWZXm: } public function doWebshouquanset() { goto uBqo_; kecny: $datas = json_decode(file_get_contents('../addons/qidong_app/json/config.json'), true); goto EopdH; MykDe: chmod('../addons/qidong_app/json/config.json', 777); goto TubY2; kWuiD: if (file_exists('../addons/qidong_app/json/config.json')) { goto xYGX3; } goto khbEG; Ir9o3: $website = $_W['siteroot']; goto bW2tU; yStBC: exit; goto UwhWP; uSBmA: checklogin(); goto Ir9o3; yJxwC: $AppID = trim($_GPC['AppID']); goto XgLOj; khbEG: message('设置文件不存在,请联系开发者.'); goto yStBC; KBCWd: $data = array("AppID" => $AppID, "Appsecret" => $Appsecret); goto ZfFrC; lyoiX: message('编辑失败!,请检查目录权限!'); goto wMelz; PJ3gF: nrZLn: goto olXTI; bW2tU: $active3 = 'active'; goto kWuiD; wMelz: goto whsB3; goto PJ3gF; k4eGx: if (!($AppID != '')) { goto ZjmhG; } goto KBCWd; TubY2: $res = @file_put_contents('../addons/qidong_app/json/config.json', $postData); goto N5AeI; UwhWP: xYGX3: goto kecny; ZfFrC: $postData = json_encode($data); goto MykDe; N5AeI: if (!empty($res)) { goto nrZLn; } goto lyoiX; wMQZv: whsB3: goto TN7Q8; EopdH: $isfounder = $_W['isfounder']; goto yJxwC; olXTI: message('保存成功!'); goto wMQZv; XgLOj: $Appsecret = trim($_GPC['Appsecret']); goto k4eGx; uBqo_: global $_W, $_GPC; goto uSBmA; TN7Q8: ZjmhG: goto FL4cX; FL4cX: include $this->template('shouquan'); goto NXl4_; NXl4_: } public function doWebTikuList() { goto m3u7w; AG7RQ: $openurl = $website . 'app/index.php?i=' . $uniacid . '&c=entry&id=4&do=Wtest&m=qidong_app'; goto hlKEd; rmikg: if (!($x < count($navmsg))) { goto SsZ2y; } goto BP6WN; Tb9JS: Di8Gk: goto rmikg; y3hCr: $website = $_W['siteroot']; goto AG7RQ; QYWrO: $x = 0; goto Tb9JS; c7yw2: goto Di8Gk; goto WDfbS; R39YQ: checklogin(); goto MOjQ0; WDfbS: SsZ2y: goto TGp88; m3u7w: global $_W, $_GPC; goto R39YQ; TGp88: $res = @file_put_contents('../addons/qidong_app/json/' . $uniacid . '_caidan.json', json_encode($caidan)); goto yJ9wU; BP6WN: $sucai = pdo_getall('qidongapp_sucai', array("uniacid" => $uniacid, "zhuangtai" => trim($navmsg[$x]['stype']))); goto swNHI; anLty: LIfiE: goto ClLpU; MOjQ0: $active4 = 'active'; goto yK3Jh; yK3Jh: $uniacid = $_W['uniacid']; goto y3hCr; ClLpU: $x++; goto c7yw2; t8vw5: $caidan = array(); goto QYWrO; yJ9wU: include $this->template('sucaiset'); goto PS806; hlKEd: $navmsg = pdo_getall('qidongapp_helptype', array("uniacid" => $uniacid)); goto t8vw5; swNHI: $caidan[$navmsg[$x]['sid']] = array("stype" => trim($navmsg[$x]['stype']), "kefu" => trim($navmsg[$x]['kefu']), "sucai" => $sucai); goto anLty; PS806: } public function doWebSavetiku() { goto lyYsh; V6X1m: GWBbV: goto o3QX0; vYpI0: $website = $_W['siteroot']; goto AwJU6; Wu6xe: goto TXSrE; goto V6X1m; ELWbV: if (!empty($result)) { goto GWBbV; } goto dNEoH; dNEoH: message('添加失败' . $result); goto Wu6xe; c_a2P: $navdata = array("uniacid" => $uniacid, "stype" => $stype, "sid" => $sid, "kefu" => trim($_GPC['kefu'])); goto z4__2; Fq8VZ: $sid = trim($_GPC['sid']); goto q4MK2; AwJU6: $uniacid = $_W['uniacid']; goto Fq8VZ; GnMF1: TXSrE: goto d0zDJ; q4MK2: $stype = trim($_GPC['stype']); goto IhJ8u; z4__2: $result = pdo_insert('qidongapp_helptype', $navdata); goto ELWbV; IhJ8u: $wecha_id = '0'; goto c_a2P; o3QX0: message('修改成功!', referer(), 'success'); goto GnMF1; lyYsh: global $_W, $_GPC; goto vYpI0; d0zDJ: } public function doWebDeltype() { goto H11Cv; gaz0k: if (empty($result)) { goto bmi2N; } goto M12Q7; bKNdl: $result = pdo_delete('qidongapp_helptype', array("id" => $id)); goto gaz0k; uua0U: bmi2N: goto I3hD2; M12Q7: message('删除成功', referer(), 'success'); goto uua0U; T9hIG: $id = $_GPC['id']; goto bKNdl; H11Cv: global $_W, $_GPC; goto T9hIG; I3hD2: } public function getMToken($appid, $appsecret, $ComponentVerifyTicket, $jsonid) { goto wn_lU; J0pEP: if (time() > $result['expires']) { goto CZi1M; } goto BuOvK; oLDGk: fclose($fp); goto g7lox; wn_lU: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", true); goto ouU1N; l7tgN: $data['expires'] = time() + 6200; goto WiYC3; rBikU: CZi1M: goto ec2xh; SZAKI: YjbHv: goto Q4_Ek; ATPft: $fp = fopen("../addons/qidong_app_plugin_wx/jsonX/{$appid}_token.json", 'w'); goto qfIf7; nJaMl: goto YjbHv; goto rBikU; WiYC3: $jsonStr = json_encode($data); goto ATPft; qfIf7: fwrite($fp, $jsonStr); goto oLDGk; EDfrV: $data['component_access_token'] = $this->getNewToken($appid, $appsecret, $ComponentVerifyTicket); goto l7tgN; ouU1N: $result = json_decode($file, true); goto J0pEP; BuOvK: return $result['component_access_token']; goto nJaMl; g7lox: return $data['component_access_token']; goto SZAKI; ec2xh: $data = array(); goto EDfrV; Q4_Ek: } public function getNewToken($appid, $appsecret, $ComponentVerifyTicket) { goto F6gi_; k035I: $access_token_Arr = ihttp_post('https://api.weixin.qq.com/cgi-bin/component/api_component_token', $data_string); goto L2cFI; F6gi_: $data_string = '{
- "component_appid":"' . $appid . '" ,
- "component_appsecret": "' . $appsecret . '",
- "component_verify_ticket": "' . $ComponentVerifyTicket . '"
- }'; goto k035I; L2cFI: $access_token_Arr = json_decode($access_token_Arr['content'], true); goto vAgFV; vAgFV: return $access_token_Arr['component_access_token']; goto vIs0S; vIs0S: } public function getNewCToken($Mappid, $Cappid, $refresh_token, $Mtoken) { goto W9gbi; W9gbi: $data_string = '{
- "component_appid":"' . $Mappid . '",
- "authorizer_appid":"' . $Cappid . '",
- "authorizer_refresh_token":"' . $refresh_token . '",
- }'; goto p5bjw; p5bjw: $access_token_Arr = ihttp_post("https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token={$Mtoken}", $data_string); goto Q2iDM; Q2iDM: return $access_token_Arr['content']; goto dHzXp; dHzXp: } public function getCToken($Mappid, $Cappid, $refresh_token, $Mtoken) { goto EFx4k; lRG18: C6s4o: goto ysDbO; EFx4k: $file = file_get_contents("../addons/qidong_app_plugin_wx/jsonX/{$Cappid}_token.json", true); goto AwT22; CLWwp: goto C6s4o; goto YIR30; yCmBs: $data = json_decode($jsonStr, true); goto WdiZn; hJMU5: $jsonStr = $this->getNewCToken($Mappid, $Cappid, $refresh_token, $Mtoken); goto BmI7q; MNWrA: fwrite($fp, $jsonStr); goto yQgTr; JIRYO: return $result['authorizer_access_token']; goto CLWwp; yQgTr: fclose($fp); goto yCmBs; BmI7q: $fp = fopen("../addons/qidong_app_plugin_wx/jsonX/{$Cappid}_token.json", 'w'); goto MNWrA; WdiZn: return $data['authorizer_access_token']; goto lRG18; AwT22: $result = json_decode($file, true); goto quYqt; YIR30: LYXRI: goto hJMU5; quYqt: if (time() > $result['expires']) { goto LYXRI; } goto JIRYO; ysDbO: } public function sendmsg($openid, $msgtype, $keyword, $postObj, $url) { goto EPJ23; Em3Jg: $aaa = ihttp_post($url, $data1); goto eJSaH; eJSaH: return $aaa['content']; goto yi956; KE5bX: VnOYk: goto Em3Jg; S5wyo: aHrXB: goto KE5bX; EPJ23: switch ($msgtype) { case 'text': $data1 = '{ "touser":"' . $openid . '", "msgtype":"text",
- "text": { "content":" ' . $keyword . ' " } }'; goto VnOYk; case 'image': goto zhZgK; zhZgK: $MediaId = $postObj->MediaId; goto LhNH4; QAUKa: goto VnOYk; goto RVoxb; LhNH4: $data1 = ' { "touser":"' . $openid . '", "msgtype":"image",
- "image": { "media_id":"' . $MediaId . '" }}'; goto QAUKa; RVoxb: case 'voice': goto l3Z0c; n3Lna: goto VnOYk; goto CjYCH; l3Z0c: $MediaId = $postObj->MediaId; goto wb5W5; UgMFq: $data1 = ' { "touser":"' . $openid . '", "msgtype":"voice",
- "voice": { "media_id":"' . $MediaId . '" }}'; goto n3Lna; wb5W5: $Recognition = $postObj->Recognition; goto UgMFq; CjYCH: case 'miniprogrampage': $data1 = ''; goto VnOYk; default: $data1 = ''; } goto S5wyo; yi956: } public function logger($log_content) { goto Dcfan; OFRdT: l5W_t: goto bkpUe; nB9kT: $max_size = 500000; goto i9bBX; n2Y0V: sae_set_display_errors(true); goto K_9vw; ayZ0E: file_put_contents($log_filename, date('Y-m-d H:i:s') . $log_content . '
- ', FILE_APPEND); goto OFRdT; i9bBX: $log_filename = '../addons/qidong_app/log_wx_site.xml'; goto U4_6Z; ap9Dm: FQllJ: goto R9fIV; Fvp7w: Y1m6y: goto ayZ0E; azPOL: if (!($_SERVER['REMOTE_ADDR'] != '127.0.0.1')) { goto l5W_t; } goto nB9kT; K_9vw: rd8i3: goto KXK7Q; U4_6Z: if (!(file_exists($log_filename) and abs(filesize($log_filename)) > $max_size)) { goto Y1m6y; } goto NBdiF; NBdiF: unlink($log_filename); goto Fvp7w; Dcfan: if (isset($_SERVER['HTTP_APPNAME'])) { goto FQllJ; } goto azPOL; R9fIV: sae_set_display_errors(false); goto GoqTT; bkpUe: goto rd8i3; goto ap9Dm; GoqTT: sae_debug($log_content); goto n2Y0V; KXK7Q: } public function traceHttp() { $this->logger('
- REMOTE_ADDR:' . $_SERVER['REMOTE_ADDR'] . (strstr($_SERVER['REMOTE_ADDR'], '101.226') ? ' FROM WeiXin' : 'Unknown IP')); $this->logger('QUERY_STRING:' . $_SERVER['QUERY_STRING']); } public function doWebtypeList() { goto KPlFn; awuPt: IV_Bd: goto Z_t_0; iqfUD: r_AUD: goto GJfY0; Z_t_0: $add = false; goto qs1rV; o8QM8: $t = json_decode($data, true); goto awuPt; WxeQT: if (file_exists($erweima)) { goto r_AUD; } goto biX_C; KPlFn: global $_W, $_GPC; goto Mcqrk; QAjMU: $add = true; goto zt9fW; pqEIW: $website = $_W['siteroot']; goto b53Pc; k8n7S: $active8 = 'active'; goto cjqJq; zt9fW: TjhEs: goto chBEK; A6j3B: $uniacid = $_W['uniacid']; goto pqEIW; chBEK: include $this->template('paycenter'); goto u98sf; GOC0h: $data = file_get_contents('../addons/qidong_app/json/' . $uniacid . '_pay.json'); goto o8QM8; qs1rV: if (!($_GPC['sid'] != '')) { goto TjhEs; } goto fpUgg; biX_C: load()->func('communication'); goto dGMpb; GJfY0: if (!file_exists('../addons/qidong_app/json/' . $uniacid . '_pay.json')) { goto IV_Bd; } goto GOC0h; b53Pc: $openurl = $website . 'app/index.php?i=' . $uniacid . '&c=entry&do=wpay&m=qidong_app'; goto F0GlB; cA6bT: $goto = $website . 'addons/qidong_app/qrcode_1.php'; goto rBcz0; F0GlB: $navmsg = pdo_getall('qidong_feetype', array("uniacid" => $uniacid)); goto lbrhY; rBcz0: $pre_auth_code = ihttp_post($goto, $data); goto iqfUD; fpUgg: $s = pdo_getall('qidong_feetype', array("id" => $_GPC['sid'])); goto QAjMU; lbrhY: $erweima = '../addons/qidong_app/temp/' . $uniacid . 'wpay.png'; goto WxeQT; cjqJq: $jsonid = $_W['account']['original']; goto A6j3B; KyPA6: $isfounder = $_W['isfounder']; goto k8n7S; dGMpb: $data = array("id" => $uniacid . 'wpay', "url" => $openurl . '&jsonid=' . $jsonid, "data" => $website . 'addons/qidong_app/pay.png'); goto cA6bT; Mcqrk: checklogin(); goto KyPA6; u98sf: } public function doWebDelfeetype() { goto lmVPx; BjXUC: message('删除成功', referer(), 'success'); goto FBxVG; E6y35: $result = pdo_delete('qidong_feetype', array("id" => $id)); goto RD0Mc; lmVPx: global $_W, $_GPC; goto rjVCK; rjVCK: $id = $_GPC['id']; goto E6y35; FBxVG: qS9Ih: goto P0dMz; RD0Mc: if (empty($result)) { goto qS9Ih; } goto BjXUC; P0dMz: } public function doWebsavepayfx() { goto UjSnX; Bcj0M: $res = @file_put_contents('../addons/qidong_app/json/' . $uniacid . '_pay.json', json_encode($data)); goto dg9la; UqtlF: zM21U: goto DzZJZ; RduM3: goto uJRf8; goto UqtlF; a0fZF: $data = array("image" => $img, "title" => $title, "msg" => $msg, "description" => $description, "kefuid" => $_GPC['kefuid']); goto Bcj0M; s0kzr: $uniacid = $_W['uniacid']; goto KkOix; lQjNU: $website = $_W['siteroot']; goto s0kzr; M5XpR: $img = $_GPC['image']; goto a0fZF; UjSnX: global $_W, $_GPC; goto lQjNU; DzZJZ: message('成功', referer(), 'success'); goto HhSrL; HhSrL: uJRf8: goto bW49H; QqVS8: $description = trim($_GPC['description']); goto M5XpR; lhp9l: $msg = trim($_GPC['msg']); goto QqVS8; KkOix: $title = trim($_GPC['title']); goto lhp9l; dg9la: if (!empty($res)) { goto zM21U; } goto NssN9; NssN9: message('失败'); goto RduM3; bW49H: } public function doWebsavefeetype() { goto EPvSY; MB62l: $add1 = $_GPC['add1']; goto PGSQ0; WRAHd: iNNwx: goto cRCgt; gEa1s: $title = trim($_GPC['title']); goto TsDHn; h51Gb: $jifen = trim($_GPC['jifen']); goto gEa1s; Ojh7r: $result = pdo_update('qidong_feetype', $navdata, array("id" => $sid)); goto E9zMI; b2NVC: $add = $_GPC['add']; goto MB62l; TsDHn: $type = trim($_GPC['type']); goto b2NVC; sAaEr: $navdata = array("uniacid" => $uniacid, "type" => $type, "title" => $title, "jiage" => $jiage, "jifen" => $jifen, "add1" => $add1, "detail" => $_GPC['detail']); goto N9eqG; OhZ5e: $result = pdo_insert('qidong_feetype', $navdata); goto pxae9; lWL07: $website = $_W['siteroot']; goto uHdbW; lcSBw: if (!empty($result)) { goto iNNwx; } goto Hthtl; N9eqG: if ($add) { goto iU6Jo; } goto OhZ5e; Q9hQj: oCny7: goto Swq5Y; cRCgt: message('添加成功!', referer(), 'success'); goto Q9hQj; E9zMI: dr0BE: goto lcSBw; V86sR: iU6Jo: goto Ojh7r; uHdbW: $uniacid = $_W['uniacid']; goto YyR02; EPvSY: global $_W, $_GPC; goto lWL07; Hthtl: message('添加失败' . $result); goto v5Yel; v5Yel: goto oCny7; goto WRAHd; pxae9: goto dr0BE; goto V86sR; YyR02: $jiage = trim($_GPC['jiage']); goto h51Gb; PGSQ0: $sid = $_GPC['sid']; goto sAaEr; Swq5Y: } public function doWebpayList() { goto UuYzy; k1xqL: include $this->template('paycenter'); goto h7aBB; m3Ku_: $isfounder = $_W['isfounder']; goto yaHhy; Z7e3Y: $alllist = pdo_getall('qidong_pay_lishi', array("uniacid" => $uniacid)); goto YLJMZ; YLJMZ: $count = count($alllist); goto k1xqL; yaHhy: $ToUserName = trim($_GPC['ToUserName']); goto Z7e3Y; ptXC9: $active7 = 'active'; goto m3Ku_; iLXq9: checklogin(); goto OHV_C; UuYzy: global $_W, $_GPC; goto iLXq9; OHV_C: $website = $_W['siteroot']; goto NL7Fb; NL7Fb: $uniacid = $_W['uniacid']; goto ptXC9; h7aBB: } public function doWebxiaoxiList() { goto e1HW4; z5X_Q: goto YGlFv; goto vic61; vic61: I386B: goto kHVWQ; NRuuk: if (!($_GPC['khopenid'] != '')) { goto dzShe; } goto d4fKE; wZF5i: $jsonid = $_W['account']['original']; goto CEa04; FILB_: if ($_GPC['search'] != '') { goto I386B; } goto oTeHf; ZbKvG: $x = 1; goto hCtwh; urUC1: Q7upV: goto bT3UF; gJqA_: if (!($x < $pagecount)) { goto wr6bD; } goto rs5QH; mogAV: $page = $_GPC['page']; goto jaPuv; DdshJ: $active7 = 'active'; goto bLLWr; di0eW: wr6bD: goto FILB_; hCtwh: lcB9P: goto gJqA_; ww3ab: dzShe: goto xBvO7; emU80: include $this->template('xiaoxicenter'); goto d2VAC; jaPuv: $pagelist = 20; goto NKKug; NKKug: $pagecount = floor($count / $pagelist) + 1; goto i_pqj; tyra0: $sarray = array("ToUserName" => $jsonid); goto NRuuk; CEa04: $uniacid = $_W['uniacid']; goto DdshJ; bLLWr: if (!($page == '')) { goto UVIjp; } goto i9_zx; oTeHf: $count = count($alllist1); goto AJQl6; d4fKE: $sarray = array("khopenid" => $_GPC['khopenid']); goto ww3ab; i9_zx: $page = 1; goto M8w5s; wDCbT: YGlFv: goto emU80; e1HW4: global $_W, $_GPC; goto N33ax; xBvO7: $alllist1 = pdo_getall('qidongapp_history', $sarray); goto dDpjC; rs5QH: $pages[$x] = $x; goto urUC1; kHVWQ: $alllist = pdo_fetchall('SELECT * FROM ' . tablename('qidongapp_history') . ' WHERE keyword LIKE :keyword', array(":keyword" => '%' . $_GPC['search'] . '%')); goto wDCbT; i_pqj: $pages = array(); goto ZbKvG; Sl8xi: goto lcB9P; goto di0eW; N33ax: checklogin(); goto flxs1; M8w5s: UVIjp: goto AWdOm; bT3UF: $x++; goto Sl8xi; flxs1: $website = $_W['siteroot']; goto wZF5i; dDpjC: $count = count($alllist1); goto mogAV; AWdOm: $ToUserName = trim($_GPC['ToUserName']); goto tyra0; AJQl6: $alllist = pdo_getslice('qidongapp_history', $sarray, array($page, $pagelist), $total, array(), ''); goto z5X_Q; d2VAC: } } ?>
|