/* Decoded by unphp.net */ run(); goto KvtqJ; mF6Xz: autoload(); goto NTgku; PmoGL: include IA_ROOT . "/addons/hawk_multishop/func/autoload.func.php"; goto WMZ02; KvtqJ: } public function doPageTest() { goto B5rh3; VAna_: $message = "景区"; goto dvrTA; PS1KO: $errno = 0; goto VAna_; B5rh3: global $_GPC, $_W; goto PS1KO; dvrTA: return $this->result($errno, $message, "测试成功"); goto UjIjU; UjIjU: } public function doPageSquare() { goto at3fU; ETbi1: $data["globalConfig"] = $globalConfig; goto rPyln; j_FhY: $data["menu"] = $menu; goto J6DZX; VxGvT: return $this->result(1, "广告位加载失败"); goto XmTO_; J1lU0: $ProductService = new ProductService(); goto iPtyD; Mk5a8: $globalConfig = $this->module["config"]; goto ndv_i; QMorN: foreach ($advInfo as $k => $v) { goto Jv9n4; ZnrVA: $menuItem = $v; goto Lju1o; Jv9n4: $v["thumb"] = tomedia($v["thumb"]); goto Fl2Gp; WnPjb: $bannerItem = $v; goto UM7CZ; URhJ1: $imgUrlsItem = $v; goto Px_sS; nXgjH: OvHwT: goto jqPOm; Z1hzZ: if (!($v["type"] == 0)) { goto QqiPC; } goto URhJ1; jqPOm: if (!($v["type"] == 2)) { goto iN_qd; } goto WnPjb; YJTbV: W3iKN: goto LcpoQ; KNbjx: iN_qd: goto YJTbV; Lju1o: $menu[] = $menuItem; goto nXgjH; ft7x1: QqiPC: goto U4u6q; U4u6q: if (!($v["type"] == 1)) { goto OvHwT; } goto ZnrVA; Fl2Gp: $v["key"] = $v["link"]; goto Z1hzZ; UM7CZ: $banner[] = $bannerItem; goto KNbjx; Px_sS: $imgUrls[] = $imgUrlsItem; goto ft7x1; LcpoQ: } goto klU2e; U65Pa: $data["product"] = is_error($indexProductList) ? '' : $indexProductList; goto ksbZp; FeNT8: $data["banner"] = $banner; goto J1lU0; ufFkv: $globalConfig = $FormatService->formatGlobalConfig($globalConfig); goto ETbi1; g18nL: $data["flash"] = is_error($flashList) ? '' : $flashList; goto Mk5a8; i1tHR: $imgUrls = array(); goto ei2vF; Hv4PN: $advInfo = pdo_getall("hmultishop_adver", array("enabled" => 1, "uniacid" => $_W["uniacid"]), array(), '', "displayorder DESC"); goto ltaQQ; ksbZp: $flashList = $ProductService->flashListByPageSize(); goto g18nL; zsAuG: return $this->result(0, "加载成功", $data); goto FxBHs; ei2vF: $menu = array(); goto WlSdM; XmTO_: N0neY: goto i1tHR; klU2e: VwNnQ: goto j_FhY; rPyln: $data["moduleList"] = $globalConfig["moduleList"]; goto zsAuG; at3fU: global $_GPC, $_W; goto V0uoP; V0uoP: $data = array(); goto Hv4PN; WlSdM: $banner = array(); goto QMorN; ltaQQ: if ($advInfo) { goto N0neY; } goto VxGvT; ndv_i: $FormatService = new FormatService(); goto ufFkv; iPtyD: $indexProductList = $ProductService->IndexPositionProductList(); goto U65Pa; J6DZX: $data["imgUrls"] = $imgUrls; goto FeNT8; FxBHs: } public function doPageDetail() { goto hPxEq; QrmU_: $filters = array(); goto Oai6v; uPmYK: if (!$ds["pro_group_online"]) { goto bqNgs; } goto FWiTn; gW50D: boeHJ: goto zsb66; OyHch: O19dd: goto onL7w; FBirM: $groupArray = $Group->getAllByPage($filters, $pageIndex, $pageSize, $total, "group_createtime DESC"); goto n2Yym; WoNP0: $shareResult = share_handler($_W["openid"], $_GPC["u_from"], $ds["pro_code"], $ds["pro_share_coin"], 1); goto WVZxE; unVX4: j3EP4: goto yX2OS; kzssb: $newBuyer = array(); goto n4Pd0; yX2OS: $enable_coin = $this->module["config"]["enable_coin"]; goto uVkZt; WxYKZ: if (!is_array($newOrder)) { goto wm3m_; } goto KAkmO; ABYHn: g4PP4: goto kMSKh; lYBMp: $ds["poster_title"] = $poster_title; goto OZlED; VSdGa: foreach ($ds["pro_imgs"] as $k => &$v) { $v = tomedia($v); RQbFG: } goto OyHch; Xx83f: if (!$shopInfo) { goto h1xvx; } goto EsMt5; D11E2: return $this->result(1, "数据错误"); goto dVn8B; rdP1g: if (empty($ds["pro_thumb"])) { goto x4gw5; } goto xZSiu; flrph: $filters = array(); goto OCuU2; ZbpF7: $scene = $_GPC["scene"]; goto qX49O; w_RJf: return $this->result(0, "详情加载成功", $ds); goto kF4Ay; WCcvj: $total = 0; goto FBirM; kMSKh: $globalPhone = $this->module["config"]["servicePhone"]; goto taPxn; xZSiu: $ds["pro_thumb"] = tomedia($ds["pro_thumb"]); goto hnZ5m; f6dtS: if (empty($option)) { goto Z4izM; } goto waDIx; xqCuP: b4bm9: goto vTMWc; khcwI: $sceneInfo = $SM->getOneByFields($filters); goto ISRnt; yjdoL: $ds["hasCollection"] = true; goto m3_5Q; onL7w: a90EE: goto iNhbx; WVfjm: W0JoI: goto yNeuX; VbPq0: $filters["group_status"] = 0; goto SeIqc; oqqoh: $ds["enable_poster"] = 1; goto unVX4; yNeuX: wm3m_: goto QU0T4; zsb66: $starTime = strtotime($ds["pro_flash_begintime"]); goto Gmkfj; vTMWc: $OG = new OrderGood(); goto WL9dk; iIEiR: if (!($enable_poster && !empty($ds["pro_share_bgimg"]))) { goto j3EP4; } goto oqqoh; GzyZU: if (!$ds["pro_enable_option"]) { goto D5TbC; } goto ML3Gu; M0MdB: L7FVX: goto w_RJf; P0geZ: if (!($ds["pro_flash_online"] && !empty($ds["pro_flash_begintime"]) && !empty($ds["pro_flash_endtime"]) && $ds["pro_flash_endtime"] > $currentTime && $ds["pro_flash_begintime"] < $currentTime)) { goto boeHJ; } goto F0sIf; XGoiD: $ds["shopInfo"] = $shopInfo; goto vMXmB; ISRnt: if (!$sceneInfo) { goto mq2Sd; } goto KxzIu; WVZxE: $ds["shareResult"] = $shareResult; goto n4C67; DhAER: $total = 0; goto kzssb; pJmq0: kl38J: goto GzyZU; EwvO7: $ds["group_total"] = $total; goto tlyMb; P0ZjB: unset($v); goto VYDPQ; BOqfW: $ds["pro_imgs"] = unserialize($ds["pro_imgs"]); goto L0RrF; YAZYw: $filters["u_openid"] = $_W["openid"]; goto B4DDT; Ww7r1: if (empty($ds["pro_imgs"])) { goto Mxp01; } goto BOqfW; YoiNP: glpJu: goto nO_Lx; OCuU2: $filters["pro_code"] = $code; goto reGCt; PxZvN: mq2Sd: goto qSGid; taPxn: if (!empty($ds["pro_servicephone"])) { goto eNnYV; } goto XU_uR; mBJy7: $filters["pro_code"] = $code; goto VbPq0; EsMt5: $shopInfo["shop_thumb"] = tomedia($shopInfo["shop_thumb"]); goto XGoiD; fre3L: $pageSize = 2; goto DhAER; L0RrF: if (!is_array($ds["pro_imgs"])) { goto a90EE; } goto VSdGa; waDIx: $ds["option"] = $option; goto WhT_y; dVn8B: NXDH3: goto Ww7r1; SeIqc: $filters["groupfilters"] = array("type" => "and", "filters" => array("group_expiretime" => array("value" => date("Y-m-d H:i:s"), "glue" => ">"))); goto jrVT5; HlYej: bqNgs: goto Y_HrP; qSGid: kQriw: goto lxYEd; f4wIj: global $_GPC, $_W; goto Fm3lD; uEIoZ: if (!$hasCollection) { goto oxGrg; } goto yjdoL; JwgvX: eNnYV: goto fC2oM; Y_HrP: $Collection = new Collection(); goto QrmU_; WhT_y: Z4izM: goto GKSi3; QU0T4: $ds["newBuyer"] = $newBuyer; goto zUTI3; GKSi3: D5TbC: goto Mnmux; PSaGK: $shopInfo = $Shop->getOne($ds["shop_id"]); goto Xx83f; yzKzL: $filters = array(); goto mBJy7; KAkmO: foreach ($newOrder as $k => $v) { goto fQxdC; fQxdC: $memberInfo = $M->getOneByOpenid($v["u_openid"]); goto E9R2M; RC7Gm: $newBuyer[] = $memberInfo; goto RTpJN; RTpJN: SoWRb: goto n0YSk; n0YSk: uAPDl: goto a9ZiU; E9R2M: if (!$memberInfo) { goto SoWRb; } goto RC7Gm; a9ZiU: } goto WVfjm; m3_5Q: oxGrg: goto ubAac; lxYEd: if (!empty($code)) { goto glpJu; } goto Fw0ig; ML3Gu: $option = option_detail($ds["pro_id"]); goto f6dtS; aF4Wg: $ds["lefttime"] = $leftTime; goto gW50D; WL9dk: $M = new Member(); goto flrph; ubAac: $Shop = new Shop(); goto iWxYe; t4fZN: $filters["sm_key"] = $scene; goto khcwI; YWyVZ: $SM = new SceneMap(); goto bjaT4; hnZ5m: x4gw5: goto s8lGI; wY8ON: $enable_poster = $this->module["config"]["enable_poster"]; goto iIEiR; yBwzL: if ($ds) { goto NXDH3; } goto D11E2; bjaT4: $filters = array(); goto t4fZN; VYDPQ: $ds["group"] = $groupArray; goto EwvO7; s8lGI: if (empty($ds["pro_des"])) { goto g4PP4; } goto zqe5b; zqe5b: $ds["pro_des"] = htmlspecialchars_decode($ds["pro_des"]); goto ABYHn; n2Yym: if (!$groupArray) { goto cvSPj; } goto a2520; Gmkfj: $endTime = strtotime($ds["pro_flash_endtime"]); goto i8tad; nO_Lx: $ds = pdo_get("hmultishop_product", array("pro_code" => $code)); goto yBwzL; ccwcU: Mxp01: goto rdP1g; tlyMb: cvSPj: goto HlYej; Fm3lD: $code = $_GPC["code"]; goto ZbpF7; F0sIf: $leftTime = strtotime($ds["pro_flash_endtime"]) - time(); goto aF4Wg; XU_uR: $ds["pro_servicephone"] = $globalPhone; goto JwgvX; n4C67: $ds["enable_coin"] = 1; goto pJmq0; YYPIg: $_GPC["u_from"] = $sceneInfo["u_openid"]; goto PxZvN; hPxEq: autoload()->func("share"); goto v5lC1; i8tad: $timeCurrent = time(); goto PSiOQ; iWxYe: if (empty($ds["shop_id"])) { goto L7FVX; } goto PSaGK; iNhbx: unset($v); goto ccwcU; a2520: foreach ($groupArray as &$v) { goto wAF4t; wAF4t: $memberInfo = $M->getOneByOpenid($v["group_master"]); goto hFNQC; V7d_z: $v["remainTime"] = strtotime($v["group_expiretime"]) - time(); goto Zmhxb; vasUk: if (!($v["group_expiretime"] > date("Y-m-d H:i:s"))) { goto Jrv1a; } goto V7d_z; wUkR4: $v["memberInfo"] = $memberInfo; goto iTeZj; TqLYm: MrKga: goto hjbIl; Zmhxb: Jrv1a: goto TqLYm; iTeZj: nCzNZ: goto vasUk; hFNQC: if (!$memberInfo) { goto nCzNZ; } goto wUkR4; hjbIl: } goto EoRfy; reGCt: $pageIndex = 1; goto fre3L; n4Pd0: $newOrder = $OG->getAllByPage($filters, $pageIndex, $pageSize, $total, "gl_createtime DESC"); goto WxYKZ; vMXmB: h1xvx: goto M0MdB; jrVT5: $pageIndex = 1; goto BKiFe; Mnmux: $poster_title = $this->module["config"]["diy_detail_poster_name"]; goto QGd9m; zUTI3: $M = new Member(); goto uPmYK; EoRfy: YJrqJ: goto P0ZjB; KxzIu: $code = $sceneInfo["sm_code"]; goto YYPIg; Lyjj5: $ds["u_openid"] = $_W["openid"]; goto wY8ON; OZlED: $currentTime = date("Y-m-d H:i:s", time()); goto P0geZ; v5lC1: autoload()->func("qr"); goto v3tWt; FWiTn: $Group = new Group(); goto yzKzL; fC2oM: $ds["pro_share_thumb"] = tomedia($ds["pro_share_thumb"]); goto Lyjj5; l5Tlo: $filters["cl_type"] = 1; goto YAZYw; F50hj: $ds["pro_flash_online"] = 0; goto xqCuP; Oai6v: $filters["ac_id"] = $ds["pro_id"]; goto l5Tlo; PSiOQ: if (!($timeCurrent < $starTime || $endTime < $timeCurrent)) { goto b4bm9; } goto F50hj; v3tWt: autoload()->func("option"); goto f4wIj; uVkZt: if (!($enable_coin && $ds["enable_poster"] != 1)) { goto kl38J; } goto WoNP0; BKiFe: $pageSize = 50; goto WCcvj; Fw0ig: return $this->result(1, "传递参数错误"); goto YoiNP; B4DDT: $hasCollection = $Collection->getOneByFields($filters); goto uEIoZ; qX49O: if (!(!empty($scene) && $scene != "undefined")) { goto kQriw; } goto YWyVZ; QGd9m: $poster_title = !empty($poster_title) ? $poster_title : "分享赚拥金"; goto lYBMp; kF4Ay: } public function doPageUploadOrder() { goto vb1Oy; f6g5K: if (is_array($productArray)) { goto fGOkm; } goto DEYWa; eVX3L: zhkUM: goto qwxCD; KGeUy: arDSA: goto xemS_; ZAWpV: return $this->result(1, $data["message"]); goto tI3sR; bvGKO: goto arDSA; goto C_9uB; IPGQ2: $memberInfo = $M->getOneByOpenid($_W["openid"]); goto NSpXQ; wYF3F: return $this->result(1, "数据解析错误", $productArray); goto DfYhM; Dkwaa: return $this->result(1, "传递参数错误"); goto EvWW0; qwxCD: fGOkm: goto unwDp; aemXi: $config_expireTime = $this->module["config"]["expireTime"]; goto mxko0; p0Qkp: Ra0tv: goto L2gsW; vb1Oy: global $_GPC, $_W; goto vKJ_Q; D6SCo: $touristInfo = array(); goto cy_g3; eCsFr: zlPAL: goto Wt_m9; rOJJP: $receiver = $_GPC["receiver"]; goto tOFuF; fzUIt: if (!empty($_GPC["touristList"])) { goto JNsaO; } goto D6SCo; DEYWa: $productArray = array_filter(explode(";", $product)); goto F7_kb; FEgP7: NIDVy: goto JDBQI; tI3sR: OlXWN: goto Thi86; f7MGU: $touristInfo = json_decode(htmlspecialchars_decode($_GPC["touristList"]), true); goto KGeUy; xemS_: if (!(empty($product) || empty($_W["openid"]))) { goto F2re6; } goto Dkwaa; Wt_m9: $touristInfo = array(); goto uDO0g; VYFxk: $product = $_GPC["product"]; goto rOJJP; F7_kb: if (!is_array($productArray)) { goto zhkUM; } goto Uro_g; C_9uB: JNsaO: goto f7MGU; XzdNR: $touristInfo[0]["od_tourist_mobile"] = $_GPC["tourist_mobile"]; goto uBYOE; vKJ_Q: $_W["globalConfig"] = $this->module["config"]; goto s8C8Z; cy_g3: goto arDSA; goto eCsFr; uDO0g: $touristInfo[0]["od_tourist_name"] = $_GPC["tourist_name"]; goto RPGoY; s8C8Z: autoload()->func("template"); goto VYFxk; Thi86: $formId = $_GPC["formId"]; goto QShpo; Reqb4: $productArray = json_decode(htmlspecialchars_decode($product), true); goto f6g5K; mxko0: $data = $OrderService->uploadOrder($_W["openid"], $productArray, $receiver, $config_expireTime, $touristInfo); goto Lzb8v; tOFuF: if (!empty($_GPC["tourist_name"])) { goto zlPAL; } goto fzUIt; uBYOE: $touristInfo[0]["od_tourist_card"] = $_GPC["tourist_card"]; goto bvGKO; goZvL: $M = new Member(); goto IPGQ2; EvWW0: F2re6: goto Reqb4; Uro_g: foreach ($productArray as $k => &$v) { goto WBgoJ; ls4tV: $new["date"] = str_replace("date=", '', $item[6]); goto R0EAg; H_RcZ: $new["priceType"] = str_replace("pricetype=", '', $item[3]); goto nkakk; xkzJv: $new["groupJoin"] = str_replace("groupjoin=", '', $item[5]); goto ls4tV; Q3VCi: $new["total"] = str_replace("total=", '', $item[1]); goto T8kvm; nkakk: $new["groupAdd"] = str_replace("groupadd=", '', $item[4]); goto xkzJv; T8kvm: $new["optionId"] = str_replace("option=", '', $item[2]); goto H_RcZ; AH4jf: $new["code"] = str_replace("code=", '', $item[0]); goto Q3VCi; R0EAg: $v = $new; goto w5Jmw; WBgoJ: $item = explode("#", $v); goto AH4jf; w5Jmw: rCQQu: goto paq9K; paq9K: } goto FEgP7; Bkh3Y: ptE9t: goto jlSEk; JDBQI: unset($v); goto eVX3L; RPGoY: $touristInfo[0]["od_tourist_type"] = $_GPC["tourist_type"]; goto XzdNR; oqNSd: cache_write_formId($_W["openid"], $formId); goto Bkh3Y; NSpXQ: if ($memberInfo) { goto Ra0tv; } goto kqKZC; kqKZC: return $this->result(1, "未授权不可下单"); goto p0Qkp; jlSEk: return $this->result(0, "创建订单成功", $data); goto Aw5F5; Lzb8v: if (!is_error($data)) { goto OlXWN; } goto ZAWpV; DfYhM: KSUaN: goto goZvL; QShpo: if (empty($formId)) { goto ptE9t; } goto oqNSd; unwDp: if (!(!is_array($productArray) || count($productArray) < 1)) { goto KSUaN; } goto wYF3F; L2gsW: $OrderService = new OrderService(); goto aemXi; Aw5F5: } public function doPagePaySuccess() { goto rFsw2; Pe9VD: return $this->result(1, "参数错误"); goto KjZEj; IIJC9: $update["od_status"] = 1; goto Is_t4; C04qg: $code = $_GPC["code"]; goto sz0oY; tu3dD: $update = array(); goto IIJC9; QjsvQ: return $this->result(1, "更新数据错误"); goto TJrQr; rP3Hy: $O = new Order(); goto tu3dD; KjZEj: wA3rs: goto rP3Hy; mKI4B: if ($updateResult) { goto Bs6AX; } goto QjsvQ; TJrQr: Bs6AX: goto l7NQ8; l7NQ8: return $this->result(0, "订单状态更新成功", $code); goto qYRDq; Is_t4: $updateResult = $O->modify($code, $update); goto mKI4B; rFsw2: global $_GPC, $_W; goto C04qg; sz0oY: if (!empty($_GPC["code"])) { goto wA3rs; } goto Pe9VD; qYRDq: } public function doPageStrategy() { goto YIoMi; IJFJ8: $psize = 20; goto ODevq; zjVyG: if ($ds) { goto X3eUg; } goto Gxpyu; B97Bm: return $this->result(0, "加载成功", $data); goto gQUvI; y4dpM: if (empty($key)) { goto Oq71_; } goto VNCOp; cB8Ji: Oq71_: goto zqmJf; Gxpyu: return $this->result(1, "加载错误"); goto Hb2A1; voNcg: $data["tag"] = $tag; goto fA_Rj; Hb2A1: X3eUg: goto NCMie; i0Fu3: $A = new Article(); goto o3JYB; PPFgE: CgOHo: goto EqeUV; NCMie: foreach ($ds as $k => &$v) { goto AHLD_; jpY5Z: ZGylD: goto KI8aB; huHrV: $v["ac_createtime"] = date("Y-m-d", strtotime($v["ac_createtime"])); goto s2AtH; OM1rV: if (empty($v["ac_content"])) { goto u1uyL; } goto xcWEG; xcWEG: $v["ac_content"] = htmlspecialchars_decode($v["ac_content"]); goto dtY5B; mTqbF: $v["ac_thumb"] = tomedia($v["ac_thumb"]); goto TDAs_; AHLD_: if (empty($v["ac_audio"])) { goto vuTBG; } goto nmoWD; D88mt: vuTBG: goto b4_BV; nmoWD: $v["ac_audio"] = tomedia($v["ac_audio"]); goto D88mt; s2AtH: $v["type"] = 0; goto jpY5Z; b4_BV: if (empty($v["ac_thumb"])) { goto kSMLn; } goto mTqbF; dtY5B: u1uyL: goto huHrV; TDAs_: kSMLn: goto OM1rV; KI8aB: } goto rcR7b; R8M6k: $pindex = max($pindex, 1); goto IJFJ8; rcR7b: uWMyx: goto fv4CT; VNCOp: $filters["ac_keyword"] = $key; goto cB8Ji; o3JYB: $filters = array(); goto nSltt; MACbx: $tag = array_filter(explode("#", $tag)); goto voNcg; BpfA9: $key = $_GPC["key"]; goto Gxcmj; YIoMi: global $_GPC, $_W; goto PU43Q; nSltt: $filters["ac_status"] = 0; goto y4dpM; Zu0Ie: $key = $data["tag"][0]; goto PPFgE; fv4CT: $data["article"] = $ds; goto B97Bm; zqmJf: $ds = $A->getAllByPage($filters, $pindex, $psize, $total, "ac_weight DESC,ac_id DESC "); goto zjVyG; fA_Rj: TgPS7: goto BpfA9; Gxcmj: if (!(empty($key) && $data["tag"])) { goto CgOHo; } goto Zu0Ie; EqeUV: $pindex = intval($_GPC["page"]); goto R8M6k; LqKAh: if (empty($tag)) { goto TgPS7; } goto MACbx; ODevq: $total = 0; goto i0Fu3; eAba0: $tag = $this->module["config"]["strategyKeywords"]; goto LqKAh; PU43Q: $data = array(); goto eAba0; gQUvI: } public function doPageArticle() { goto CUP4v; QlQg0: $id = $_GPC["id"]; goto g7sqh; g7sqh: if (!empty($id)) { goto yiu_G; } goto qUA4I; CAsox: nL3D0: goto dcEcW; gf8EC: share_handler($_W["openid"], $_GPC["u_from"], $ds["ac_id"], $ds["ac_share_coin"]); goto S9jSq; Pvp5l: $enable_coin = $this->module["config"]["enable_coin"]; goto LwyGs; UtCZO: QS4vP: goto cTwS5; dcEcW: $ds["vipShow"] = $vipShow; goto NHB__; AVx_N: $ds["ac_view"] = $ds["ac_view"] + 1; goto RXqgG; YVUf_: if ($ds) { goto nLmEt; } goto ixNC2; h7zlZ: $isVip = $MemberService->isVip($_W["openid"]); goto NKl6x; Uu8gv: yiu_G: goto gpQsF; w_zte: $ds["ac_audio"] = tomedia($ds["ac_audio"]); goto X8HxF; NHB__: return $this->result(0, "加载成功", $ds); goto QBon9; aXWfe: $A = new Article(); goto YcNxG; fdlqC: $update["ac_view"] = $ac_view; goto pr9qR; w0d_D: $ac_view = $ds["ac_view"] + 1; goto YUowp; JIIhS: $ds["u_openid"] = $_W["openid"]; goto Pvp5l; i2qWl: $vipShow = 0; goto rlr35; QWem6: $MemberService = new MemberService(); goto h7zlZ; UB8rJ: if (!($ds["ac_require_vip"] == 1)) { goto nL3D0; } goto QWem6; gpQsF: autoload()->func("share"); goto aXWfe; YcNxG: $ds = $A->getOne($id); goto YVUf_; YUowp: $update = array(); goto fdlqC; pr9qR: $A->modify($id, $update); goto AVx_N; S9jSq: $ds["enable_coin"] = 1; goto UtCZO; ixNC2: return $this->result(1, "数据错误"); goto htT9n; qUA4I: return $this->result(1, "参数错误"); goto Uu8gv; htT9n: nLmEt: goto w0d_D; X8HxF: $ds["ac_createtime"] = date("Y-m-d", strtotime($ds["ac_createtime"])); goto sxm7T; RXqgG: $ds["ac_thumb"] = tomedia($ds["ac_thumb"]); goto w_zte; CUP4v: global $_GPC, $_W; goto QlQg0; MrKqI: $ds["ac_share_thumb"] = tomedia($ds["ac_share_thumb"]); goto JIIhS; NKl6x: if (!is_error($isVip)) { goto yVfCx; } goto i2qWl; rlr35: yVfCx: goto CAsox; LwyGs: if (!($enable_coin && $ds["ac_share_coin"] > 0)) { goto QS4vP; } goto gf8EC; cTwS5: $vipShow = 1; goto UB8rJ; sxm7T: $ds["ac_content"] = htmlspecialchars_decode($ds["ac_content"]); goto MrKqI; QBon9: } public function doPageStrategySearch() { goto xlY7T; sXuPZ: $pindex = max($pindex, 1); goto OncMi; JDvor: foreach ($ds as $k => &$v) { goto ZEZhx; Hxnzl: $v["thumb"] = $v["ac_thumb"]; goto u1aRu; yc9O0: $v["time"] = date("Y-m-d", strtotime($v["ac_createtime"])); goto rAPL8; tBypo: $v["ac_audio"] = tomedia($v["ac_audio"]); goto vs6X0; bfFRR: a1C7x: goto QXnrL; rAPL8: $v["type"] = 0; goto bfFRR; pmku2: cid5f: goto kNnHZ; vs6X0: KWXnr: goto DEQDM; Pxc9o: $v["title"] = mb_substr($v["ac_title"], 0, 15); goto Hxnzl; RDkAW: wX7Ya: goto bLm8D; nozeD: $v["ac_thumb"] = tomedia($v["ac_thumb"]); goto RDkAW; C_pOO: $v["ac_content"] = htmlspecialchars_decode($v["ac_content"]); goto pmku2; DEQDM: if (empty($v["ac_thumb"])) { goto wX7Ya; } goto nozeD; kNnHZ: $v["id"] = $v["ac_id"]; goto Pxc9o; bLm8D: if (empty($v["ac_content"])) { goto cid5f; } goto C_pOO; u1aRu: $v["des"] = $v["ac_des"]; goto yc9O0; ZEZhx: if (empty($v["ac_audio"])) { goto KWXnr; } goto tBypo; QXnrL: } goto smtXM; VEmTa: hhCS0: goto a6B4c; FPL9r: $filters["ac_keyword"] = $key; goto VEmTa; pvZWu: $total = 0; goto fw4gL; zfgV5: return $this->result(0, "加载成功", $ds); goto UM00V; P19jQ: if ($ds) { goto Pu73R; } goto rtbGD; Vn1Ar: $filters["ac_status"] = 0; goto j5GpO; OncMi: $psize = 20; goto pvZWu; smtXM: AjfNQ: goto zfgV5; j5GpO: if (empty($key)) { goto hhCS0; } goto FPL9r; MaqsW: $pindex = intval($_GPC["page"]); goto sXuPZ; a6B4c: $ds = $A->getAllByPage($filters, $pindex, $psize, $total, "ac_weight DESC,ac_id DESC "); goto P19jQ; rtbGD: return $this->result(1, "加载错误"); goto FS33h; fw4gL: $A = new Article(); goto DCkX6; xlY7T: global $_GPC, $_W; goto G3GQz; G3GQz: $key = $_GPC["key"]; goto MaqsW; FS33h: Pu73R: goto JDvor; DCkX6: $filters = array(); goto Vn1Ar; UM00V: } public function doPageProductSearch() { goto E1Oj9; rtY0j: foreach ($ds as $k => &$v) { goto Ryj1c; SUuty: $option = option_detail($v["pro_id"]); goto kVVEA; BhHQX: if (!$v["pro_enable_option"]) { goto RlSuu; } goto SUuty; HfTZO: $v["option"] = $option; goto fU_1c; kVVEA: if (empty($option)) { goto hYvj1; } goto HfTZO; k33pb: RlSuu: goto DBMjN; fU_1c: hYvj1: goto k33pb; DBMjN: lmqtl: goto tMbuu; Ryj1c: $v["pro_thumb"] = tomedia($v["pro_thumb"]); goto BhHQX; tMbuu: } goto bCJBK; MWvSQ: $P = new Product(); goto WldvH; R8yGx: k7auV: goto Q0YWo; ptW4z: return $this->result(1, "加载产品失败"); goto rmnvb; j8JZs: $filters["pro_status"] = 0; goto UwEGA; ERLs6: lj7gQ: goto ocnuz; ALjy0: $ds = $P->getAllByPage($filters, $page, $pageSize, $total, $orderSql . "pro_weight DESC"); goto Nyk4u; rmnvb: X3Bo5: goto rtY0j; UwEGA: if (empty($key)) { goto k7auV; } goto zNC27; bCJBK: jwVSF: goto OEQHu; okT4f: $orderBy = $_GPC["orderby"]; goto qqVEo; ocnuz: qr_8B: goto MWvSQ; wx5N9: $key = $_GPC["key"]; goto NF7_b; Nyk4u: if ($ds) { goto X3Bo5; } goto ptW4z; WldvH: $page = intval($_GPC["page"]); goto phHKE; Q0YWo: if (empty($_GPC["shop_id"])) { goto ZuMUR; } goto Y4kNq; zNC27: $filters["pro_keyword"] = $key; goto R8yGx; E1Oj9: autoload()->func("option"); goto AFHLC; AFHLC: global $_W, $_GPC; goto okT4f; Y4kNq: $filters["shop_id"] = $_GPC["shop_id"]; goto dro7U; phHKE: $page = max($page, 1); goto QL_hO; OEQHu: unset($v); goto BwK3I; qqVEo: $orderSql = ''; goto wx5N9; QL_hO: $pageSize = 20; goto IVzkA; BwK3I: return $this->result(0, "加载成功", $ds); goto tSrct; IVzkA: $total = 0; goto egQr7; egQr7: $filters = array(); goto j8JZs; NF7_b: switch ($orderBy) { case 1: goto qr_8B; case 2: $orderSql = " pro_sales DESC,"; goto qr_8B; case 3: $orderSql = " pro_realprice ASC,"; goto qr_8B; case 4: $orderSql = " pro_realprice DESC,"; goto qr_8B; } goto ERLs6; dro7U: ZuMUR: goto ALjy0; tSrct: } public function doPageGlobalConfig() { goto kXchU; C9TsP: $FormatService = new FormatService(); goto uJRSQ; kXchU: global $_W, $_GPC; goto RoS5s; RoS5s: $globalConfig = $this->module["config"]; goto C9TsP; EttVt: return $this->result(0, "加载全局配置", $globalConfig); goto wVg8h; uJRSQ: $globalConfig = $FormatService->formatGlobalConfig($globalConfig); goto EttVt; wVg8h: } public function doPageAddCollection() { goto dnaGC; Ffhsi: $insert = array(); goto wZSCp; HD1Mn: return $this->result(1, "参数错误"); goto JuGJz; vuu3j: if (empty($type)) { goto eAU8r; } goto A8nBV; Iw3cb: if (!$ds) { goto H0mjT; } goto PXnza; c15j7: $type = $_GPC["type"]; goto i0Cvd; zaZet: $filters["cl_type"] = 0; goto fSpzi; wZSCp: $insert["ac_id"] = $id; goto vuu3j; JuGJz: G8XFh: goto Pr0mi; Vlx35: $filters["cl_type"] = $type; goto d0jUA; OJmwa: H0mjT: goto Ffhsi; zRedb: $insertResult = $C->create($insert); goto F0yPt; xH9gQ: return $this->result(0, "添加收藏成功"); goto cwWSd; arwrJ: z2TlW: goto zaZet; FLsZQ: x6ViK: goto xH9gQ; urEpM: $insert["u_openid"] = $_W["openid"]; goto zRedb; F0yPt: if ($insertResult) { goto x6ViK; } goto dEsh0; dnaGC: global $_W, $_GPC; goto ZvzNv; fSpzi: MGgtb: goto CLBcZ; A8nBV: $insert["cl_type"] = $type; goto EbPhh; K_wFp: $filters["ac_id"] = $id; goto ICK0e; ZvzNv: $C = new Collection(); goto EhNsJ; ICK0e: if (empty($type)) { goto z2TlW; } goto Vlx35; EbPhh: eAU8r: goto urEpM; i0Cvd: if (!empty($id)) { goto G8XFh; } goto HD1Mn; d0jUA: goto MGgtb; goto arwrJ; dEsh0: return $this->result(1, "数据添加错误"); goto FLsZQ; CLBcZ: $filters["u_openid"] = $_W["openid"]; goto TCIyv; PXnza: return $this->result(1, "已收藏过了"); goto OJmwa; TCIyv: $ds = $C->getOneByFields($filters); goto Iw3cb; Pr0mi: $filters = array(); goto K_wFp; EhNsJ: $id = $_GPC["id"]; goto c15j7; cwWSd: } public function doPageCancelCollection() { goto zNhSD; YNafg: c4ce8: goto nEn_1; UoOiF: return $this->result(0, "取消收藏成功"); goto HQw88; Oi4YT: PKSUf: goto UoOiF; z9UQl: if ($deleteResult) { goto PKSUf; } goto JrOgp; xJx2d: $filters["ac_id"] = $id; goto dbuM3; nEn_1: $deleteResult = $C->delete($ds["cl_id"]); goto z9UQl; YS2UT: $filters = array(); goto xJx2d; zNhSD: global $_W, $_GPC; goto L20qs; e3L65: return $this->result(1, "收藏数据错误"); goto YNafg; nYkZ3: if (!(empty($id) || empty($_W["openid"]))) { goto fP1_l; } goto UfWjT; KlOIW: $id = $_GPC["id"]; goto nYkZ3; JrOgp: return $this->result(1, "取消收藏错误"); goto Oi4YT; dbuM3: $filters["u_openid"] = $_W["openid"]; goto VAsqo; dnHsM: if ($ds) { goto c4ce8; } goto e3L65; UfWjT: return $this->result(1, "参数错误"); goto Va14k; VAsqo: $ds = $C->getOneByFields($filters); goto dnHsM; L20qs: $C = new Collection(); goto KlOIW; Va14k: fP1_l: goto YS2UT; HQw88: } public function doPageGetAllCollection() { goto RzLYb; csBec: $data = array(); goto o7T6u; hXxUW: $A = new Article(); goto Qrvaw; H9zfe: if (!empty($_W["openid"])) { goto ScvRy; } goto fZLYS; Qrvaw: $P = new Product(); goto XHKf7; p1rnf: $total = 0; goto UNZB2; RzLYb: global $_W, $_GPC; goto LdSSK; GZvgU: ScvRy: goto RjfFe; X45vS: $page = max($page, 1); goto CuuX7; DqkJp: AzEA0: goto csBec; Gxkjj: $ds = $C->getAllByPage($filters, $page, $pageSize, $total, "cl_createtime DESC"); goto CFvvg; fZLYS: return $this->result(1, "参数错误"); goto GZvgU; RjfFe: $page = intval($_GPC["page"]); goto X45vS; XHKf7: $S = new Shop(); goto H9zfe; LdSSK: $C = new Collection(); goto hXxUW; zQSLp: return $this->result(1, "收藏数据错误"); goto DqkJp; QoA_5: AeYkF: goto TMVy0; CFvvg: if ($ds) { goto AzEA0; } goto zQSLp; o7T6u: foreach ($ds as $k => $v) { goto ubwBa; SS1RG: if (!$shopInfo) { goto Ta728; } goto QTYv_; LYTBY: $articleInfo = $A->getOne($v["ac_id"]); goto XUswX; f071Y: goto kS0ud; goto II_QC; oCmSz: Ta728: goto EeDRX; M13ty: mODoi: goto zKQs6; EqEAm: LHyWG: goto PeD2y; WvVqq: $articleInfo["type"] = 0; goto mswIg; xHnFl: if ($v["cl_type"] == 2) { goto PFwr_; } goto f071Y; nLqrx: $shopInfo = $S->getOne($v["ac_id"]); goto SS1RG; zKQs6: goto kS0ud; goto EqEAm; WKzlj: goto kS0ud; goto l_oia; U2ppn: if ($v["cl_type"] == 1) { goto LHyWG; } goto xHnFl; EeDRX: kS0ud: goto jWmRZ; QTYv_: $shopInfo["shop_thumb"] = tomedia($shopInfo["shop_thumb"]); goto Dmeay; l_oia: PFwr_: goto nLqrx; Uvc4v: $data[] = $shopInfo; goto oCmSz; mswIg: $data[] = $articleInfo; goto M13ty; II_QC: sAXyb: goto LYTBY; XUswX: if (!$articleInfo) { goto mODoi; } goto CV03Z; DOmHF: if (!$productInfo) { goto dL3x7; } goto ptrrm; tT_vL: $productInfo["type"] = 1; goto hdfML; ptrrm: $productInfo["pro_thumb"] = tomedia($productInfo["pro_thumb"]); goto tT_vL; hdfML: $data[] = $productInfo; goto b0aDF; PeD2y: $productInfo = $P->getOne($v["ac_id"]); goto DOmHF; b0aDF: dL3x7: goto WKzlj; ubwBa: if ($v["cl_type"] == 0) { goto sAXyb; } goto U2ppn; CV03Z: $articleInfo["ac_thumb"] = tomedia($articleInfo["ac_thumb"]); goto WvVqq; Dmeay: $shopInfo["type"] = 2; goto Uvc4v; jWmRZ: hURh0: goto ZYnEr; ZYnEr: } goto QoA_5; CuuX7: $pageSize = 10; goto p1rnf; dn8uA: $filters["u_openid"] = $_W["openid"]; goto Gxkjj; TMVy0: return $this->result(0, "加载收藏成功", $data); goto PGt4y; UNZB2: $filters = array(); goto dn8uA; PGt4y: } public function doPageHasCollection() { goto CGPGs; fND0c: return $this->result(0, "已收藏"); goto KIpwl; uQoYZ: return $this->result(1, "未收藏"); goto sUqs8; KIpwl: dw1kD: goto uQoYZ; uEyE8: return $this->result(1, "参数错误"); goto mtqGy; T8UNX: $id = $_GPC["id"]; goto Mo7XV; CGPGs: global $_W, $_GPC; goto IZbVB; G2ju_: $filters["u_openid"] = $_W["openid"]; goto KavpE; aXgNG: if (!$hasResult) { goto dw1kD; } goto fND0c; Mo7XV: if (!empty($id)) { goto xXgjX; } goto uEyE8; KavpE: $hasResult = $C->getOneByFields($filters); goto aXgNG; LKwP4: $filters["ac_id"] = $id; goto G2ju_; IZbVB: $C = new Collection(); goto T8UNX; VL8Kb: $filters = array(); goto LKwP4; mtqGy: xXgjX: goto VL8Kb; sUqs8: } public function doPageAddLike() { goto lMC1g; YHF2n: sngmr: goto abREA; XCoHR: $insert = array(); goto B2zU6; qU4_E: $A->modify($id, $update); goto YHF2n; jgz32: $filters = array(); goto zgKZg; JYxAc: $A = new Article(); goto bhl3i; yus8L: return $this->result(1, "数据添加错误"); goto k0R2x; k0R2x: JUmkg: goto kLw6f; udcAP: if (!empty($id)) { goto lWOgW; } goto DIj_R; QxVRn: lWOgW: goto jgz32; lMC1g: global $_W, $_GPC; goto RIHxP; abREA: return $this->result(0, "点赞成功"); goto dca5K; zgKZg: $filters["ac_id"] = $id; goto NuIZf; bhl3i: $id = $_GPC["id"]; goto udcAP; EiBag: $update = array(); goto d_nGR; OySZJ: $ds = $L->getOneByFields($filters); goto xf6NI; J3RBG: return $this->result(1, "已点赞过了"); goto X3a6v; RIHxP: $L = new Like(); goto JYxAc; MCBuS: $insertResult = $L->create($insert); goto hX4MU; pdpCV: $newUpVote = $articleInfo["ac_upvote"] + 1; goto EiBag; xf6NI: if (!$ds) { goto KZosm; } goto J3RBG; kLw6f: $articleInfo = $A->getOne($id); goto fdWPi; X3a6v: KZosm: goto XCoHR; B2zU6: $insert["ac_id"] = $id; goto dQszd; fdWPi: if (!$articleInfo) { goto sngmr; } goto pdpCV; hX4MU: if ($insertResult) { goto JUmkg; } goto yus8L; dQszd: $insert["u_openid"] = $_W["openid"]; goto MCBuS; NuIZf: $filters["u_openid"] = $_W["openid"]; goto OySZJ; DIj_R: return $this->result(1, "参数错误"); goto QxVRn; d_nGR: $update["ac_upvote"] = $newUpVote; goto qU4_E; dca5K: } public function doPageGetAllLike() { goto B8hr2; ZNWg9: hNXr7: goto ttwnn; L26CP: return $this->result(0, "加载点赞成功", $articleResult["ac_upvote"]); goto ZNWg9; ttwnn: return $this->result(1, "加载点赞数据失败"); goto pWFJr; B8hr2: global $_W, $_GPC; goto oBhTr; JdJv_: $A = new Article(); goto nK9r2; HvcGU: if (!$articleResult) { goto hNXr7; } goto L26CP; nK9r2: $articleResult = $A->getOne($id); goto HvcGU; oBhTr: $id = $_GPC["id"]; goto JdJv_; pWFJr: } public function doPageHasLike() { goto qGapE; No2SI: if (!empty($id)) { goto Zyfzy; } goto OY5o5; UIPrb: $filters = array(); goto qMFYo; yIvgA: return $this->result(0, "已点赞"); goto dSNgZ; yX8Mq: Zyfzy: goto UIPrb; z8Sem: if (!$hasResult) { goto J2K5Q; } goto yIvgA; UcR1I: return $this->result(1, "未点赞"); goto NsYW2; dsswB: $id = $_GPC["id"]; goto No2SI; qGapE: global $_W, $_GPC; goto LFaAT; qMFYo: $filters["ac_id"] = $id; goto HIbNs; U14aK: $hasResult = $L->getOneByFields($filters); goto z8Sem; dSNgZ: J2K5Q: goto UcR1I; OY5o5: return $this->result(1, "参数错误"); goto yX8Mq; HIbNs: $filters["u_openid"] = $_W["openid"]; goto U14aK; LFaAT: $L = new Like(); goto dsswB; NsYW2: } public function doPageArticleQr() { goto SJ8gy; hxLKw: M4YYo: goto AlL0J; SJ8gy: autoload()->func("wxapi"); goto mmvuZ; DdBYZ: $filePath = ATTACHMENT_ROOT . "images/hawk_multishop/qr/" . $uniKey . ".png"; goto VJMN3; IMQtS: $uniKey = md5(serialize(array("id" => $id, "openid" => $_W["openid"]))); goto O9yKC; VJMN3: $qrResult = getQr($qrConfig, $filePath); goto aToUy; AlL0J: $filePath = $qrResult["message"]; goto qidRJ; a8iow: $id = $_GPC["id"]; goto HyZBx; mmvuZ: global $_W, $_GPC; goto pMPHc; qidRJ: $fileUrl = tomedia(str_replace(ATTACHMENT_ROOT, '', $filePath)); goto mmBL5; HL6OA: return $this->result(1, "参数错误"); goto BJYf2; aToUy: if (!is_error($qrResult)) { goto M4YYo; } goto Ykw4P; pMPHc: $A = new Article(); goto a8iow; HyZBx: if (!empty($id)) { goto DE7mW; } goto HL6OA; BJYf2: DE7mW: goto IMQtS; mmBL5: return $this->result(0, "生成二维码成功", $fileUrl); goto cJeNv; O9yKC: $qrConfig = array("scene" => $id, "page" => "hawk_multishop/pages/article/article", "width" => 300, "line_color" => array("r" => 0, "g" => 139, "b" => 69)); goto DdBYZ; Ykw4P: return $this->result(1, "生成图片错误"); goto hxLKw; cJeNv: } public function doPageOrder() { goto F7qpL; meSPx: $page = intval($_GPC["page"]); goto LAvv3; Y7i0D: $filters["od_status"] = $_GPC["status"]; goto a84Fi; poAD8: M_WyG: goto mMuFB; LAvv3: $page = max($page, 1); goto qLkUh; GLXZL: if (!isset($_GPC["status"])) { goto TYKT0; } goto Y7i0D; F7qpL: global $_W, $_GPC; goto BBVws; KkJ1a: FZwoQ: goto F0KTC; lhfnn: if ($ds) { goto FZwoQ; } goto PErFk; FHuWj: $filters["u_openid"] = $_W["openid"]; goto li6RG; JBZcq: $total = 0; goto hPA9B; rEGXS: v1hW0: goto NaiKn; F0KTC: foreach ($ds as $k => &$v) { goto ZcsfK; kgL3B: jQcx3: goto aLHKM; sLAh1: if (!$goodInfo) { goto jQcx3; } goto uZtY1; tnINN: $v["good"] = $goodInfo; goto kgL3B; ry_Ww: RzNkh: goto fhWBn; ZcsfK: $filters = array(); goto VrVYB; VrVYB: $filters["od_code"] = $v["od_code"]; goto Mj3iQ; Mj3iQ: $goodInfo = $G->getAll($filters); goto sLAh1; uZtY1: foreach ($goodInfo as $key => &$value) { $value["gd_img"] = tomedia($value["gd_img"]); Wtvz9: } goto ry_Ww; fhWBn: unset($value); goto tnINN; aLHKM: qc00k: goto vFOTJ; vFOTJ: } goto poAD8; AVv3Y: $G = new OrderGood(); goto meSPx; li6RG: $ds = $O->getAllByPage($filters, $page, $pageSize, $total, "od_createtime DESC"); goto lhfnn; hPA9B: $filters = array(); goto GLXZL; mMuFB: return $this->result(0, "加载订单成功", $ds); goto bmePP; YogUI: return $this->result(1, "参数错误"); goto rEGXS; BBVws: if (!empty($_W["openid"])) { goto v1hW0; } goto YogUI; a84Fi: TYKT0: goto FHuWj; qLkUh: $pageSize = 20; goto JBZcq; PErFk: return $this->result(1, "数据不存在"); goto KkJ1a; NaiKn: $O = new Order(); goto AVv3Y; bmePP: } public function doPageOrderDelete() { goto oOKSj; GVCBb: if ($ticketResult) { goto Mawc8; } goto F4W9A; cwRlt: if ($goodResult) { goto DCtQg; } goto CC2Gg; V_Bgy: $flag = false; goto glY1n; njnBy: return $this->result(1, "订单不存在"); goto bpzrZ; gq0Jj: zhudF: goto wpBTL; qFfGE: $filters = array(); goto ePS0g; oOKSj: global $_W, $_GPC; goto eZHgQ; zEfLC: $goodResult = $G->deleteByFields($filters); goto cwRlt; aQnX5: Mawc8: goto JAErz; CkN5G: $G = new OrderGood(); goto DKp9M; BYxbJ: $O = new Order(); goto CkN5G; vs7RP: return $this->result(1, "参数错误"); goto i6d_S; ectzd: goto Zfqi4; goto gq0Jj; H3NQX: $filters = array(); goto bUU2A; JAErz: if ($flag) { goto zhudF; } goto wgpxM; bpzrZ: K6YIZ: goto L1_XM; i6d_S: WkDEQ: goto BYxbJ; ePS0g: $filters["od_code"] = $od_code; goto zEfLC; syspZ: return $this->result(0, "删除成功"); goto LrBxd; LEYjR: $ticketResult = $T->deleteByFields($filters); goto GVCBb; L1_XM: $flag = true; goto qHrtU; qHrtU: pdo_begin(); goto IxE_3; XEAvM: DCtQg: goto H3NQX; RvcJj: $hasOrder = $O->getOne($od_code); goto IqBjz; zlh38: if ($orderResult) { goto avA_t; } goto V_Bgy; IqBjz: if ($hasOrder) { goto K6YIZ; } goto njnBy; wgpxM: pdo_rollback(); goto iAIcj; glY1n: avA_t: goto qFfGE; CC2Gg: $flag = false; goto XEAvM; F4W9A: $flag = false; goto aQnX5; wpBTL: pdo_commit(); goto syspZ; iAIcj: return $this->result(1, "删除失败"); goto ectzd; DKp9M: $T = new OrderTicket(); goto RvcJj; LrBxd: Zfqi4: goto k0r_b; IxE_3: $orderResult = $O->delete($od_code); goto zlh38; eZHgQ: $od_code = $_GPC["od_code"]; goto ATkRO; ATkRO: if (!(empty($_W["openid"]) || empty($od_code))) { goto WkDEQ; } goto vs7RP; bUU2A: $filters["od_code"] = $od_code; goto LEYjR; k0r_b: } public function doPageGetOrder() { goto gp0LY; kTgnc: $mainOrders = $O->getAll($filters); goto dOcnh; hiY5z: foreach ($mainOrders as $v) { goto MfcCI; LuDRx: QTMrq: goto SpzgJ; jHqZW: $od_price += $v["od_price"]; goto LuDRx; MfcCI: $od_code = $v["main_code"]; goto jHqZW; SpzgJ: } goto BJT8F; pxldP: $filters = array(); goto QLRoB; SkKzx: h81pS: goto Kl1hL; BJT8F: P5hJB: goto eMrZ_; sy2Xu: if (!(empty($_W["openid"]) || empty($code))) { goto sbBm6; } goto tyvzw; ko1kg: return $this->result(1, "订单物品错误"); goto SkKzx; n5X3o: $data["order"] = $orderInfo; goto q8vsk; ubf1L: $T = new OrderTicket(); goto yS7z7; uZAEy: return $this->result(0, "加载订单成功", $data); goto sSTCt; q8vsk: if ($mainOrders) { goto zlH2z; } goto pxldP; NLdW0: foreach ($mainOrders as $v) { goto L6yqa; L6yqa: $filters = array(); goto JdOQu; JdOQu: $filters["od_code"] = $v["od_code"]; goto LFJbR; BeLTM: w1DX3: goto pbef8; WGCRv: foreach ($goods as $good) { $goodInfo[] = $good; jCb3m: } goto BeLTM; pbef8: ipsht: goto Jc2Gm; LFJbR: $goods = $G->getAll($filters); goto WGCRv; Jc2Gm: } goto wz8DJ; pQol6: goto KMJs_; goto o6XKZ; CXuI6: H5AHK: goto hRNnc; AlOSd: $data = array(); goto Op4Q7; Kl1hL: foreach ($goodInfo as $k => &$v) { goto ERwEo; SuFQf: $filters = array(); goto RgDQN; ERwEo: $v["gd_img"] = tomedia($v["gd_img"]); goto SuFQf; vImnD: JwIU9: goto VF0Hi; VF0Hi: xBo3W: goto EQE86; xFATj: foreach ($tickets as $ticket) { goto QhPUr; wF7AO: vLwil: goto YZBAb; NYDVw: $v["gd_date"] = $ticket["tk_date"]; goto wF7AO; QhPUr: if (empty($ticket["tk_date"])) { goto vLwil; } goto NYDVw; YZBAb: ff0AI: goto eFcGC; eFcGC: } goto vImnD; RgDQN: $filters["gd_code"] = $v["gd_code"]; goto p_lkH; fMNKX: if (!$tickets) { goto xBo3W; } goto xFATj; p_lkH: $tickets = $T->getAll($filters); goto fMNKX; EQE86: E09VP: goto HfiRT; HfiRT: } goto jhaMY; It3Ap: $filters["main_code"] = $code; goto kTgnc; Op4Q7: $code = $_GPC["code"]; goto sy2Xu; hRNnc: if (!$mainOrders) { goto pyaSI; } goto lrnql; tyvzw: return $this->result(1, "参数错误"); goto fm6EB; eMrZ_: $orderInfo["od_code"] = $od_code; goto lrEM_; is7oc: if ($goodInfo) { goto h81pS; } goto ko1kg; BhjN8: KMJs_: goto is7oc; dOcnh: if (!(!$orderInfo && !$mainOrders)) { goto H5AHK; } goto DBc8e; o6XKZ: zlH2z: goto IGHoO; PfJwu: $data["goods"] = $goodInfo; goto uZAEy; lrEM_: $orderInfo["od_price"] = floatval($od_price); goto ubY0C; IGHoO: $goodInfo = array(); goto NLdW0; gp0LY: global $_W, $_GPC; goto AlOSd; DBc8e: return $this->result(1, "订单数据错误"); goto CXuI6; yS7z7: $orderInfo = $O->getOne($code); goto yQmvs; qSRKO: $O = new Order(); goto N_tDu; QLRoB: $filters["od_code"] = $orderInfo["od_code"]; goto yOH9d; yOH9d: $goodInfo = $G->getAll($filters); goto pQol6; N_tDu: $G = new OrderGood(); goto ubf1L; ubY0C: pyaSI: goto n5X3o; yQmvs: $filters = array(); goto It3Ap; lrnql: $od_price = 0; goto hiY5z; jhaMY: CZ0Kx: goto PfJwu; wz8DJ: ii063: goto BhjN8; fm6EB: sbBm6: goto qSRKO; sSTCt: } public function doPageGetQrOrder() { goto lksVh; Odo7h: $T = new OrderTicket(); goto FmaJX; G9gd6: $data["enable_order_code"] = $this->module["config"]["enable_order_code"]; goto zfuMt; dyM3T: gdekw: goto mD3QP; IE7wJ: if (!(empty($_W["openid"]) || empty($code))) { goto Z4KJZ; } goto jJLOR; kg9Bv: $G = new OrderGood(); goto Odo7h; B7cqI: $data["goods"] = $goodInfo; goto i4SLr; i4SLr: $enable_refund = true; goto l4Dhq; uQNpl: $enable_refund = false; goto dyM3T; NGTTM: $filters["od_code"] = $orderInfo["od_code"]; goto zT3Be; yChTx: if (!(!$orderInfo || $orderInfo["od_status"] != 1)) { goto Kf5pd; } goto cmvXf; jJLOR: return $this->result(1, "参数错误"); goto LeR1V; YLBWB: $data["order"] = $orderInfo; goto uoJMJ; LeR1V: Z4KJZ: goto WTmSK; Sl2Wy: return $this->result(0, "加载二维码订单成功", $data); goto gzn4f; dpNkR: unset($v); goto B7cqI; TtFI_: $code = $_GPC["code"]; goto IE7wJ; SpPeT: if ($goodInfo) { goto qbbzM; } goto Uuv0t; zT3Be: $goodInfo = $G->getAll($filters); goto SpPeT; zfuMt: $data["enable_code_bar"] = $this->module["config"]["enable_code_bar"]; goto Sl2Wy; Uuv0t: return $this->result(1, "订单物品错误"); goto DzZjk; DzZjk: qbbzM: goto P9BeK; lksVh: autoload()->func("refund"); goto y20tO; mD3QP: $data["enable_refund"] = $enable_refund; goto SqHVU; ZaQy0: $global_refund = $this->module["config"]["enable_refund"]; goto oxxQf; SqHVU: $data["enable_face"] = $this->module["config"]["enable_face"]; goto G9gd6; l4Dhq: $refundResult = enable_refund($orderInfo["od_code"]); goto ZaQy0; ST0bk: $data = array(); goto TtFI_; FmaJX: $orderInfo = $O->getOne($code); goto yChTx; WTmSK: $O = new Order(); goto kg9Bv; P9BeK: foreach ($goodInfo as $k => &$v) { goto lXAaF; KyOgD: if (!$ticketInfo) { goto UfGHp; } goto IuTrA; ETAoc: UfGHp: goto HQBnk; lXAaF: $v["gd_img"] = tomedia($v["gd_img"]); goto Eg1pU; yEe_P: $filters["gd_code"] = $v["gd_code"]; goto hwCN9; Eg1pU: $filters = array(); goto yEe_P; GBE1f: foreach ($ticketInfo as $ticket) { goto bXWsV; cpDBF: csgxE: goto yBNfc; yBNfc: OnCMz: goto bZYlQ; bXWsV: if (empty($ticket["tk_date"])) { goto csgxE; } goto im0o9; im0o9: $v["gd_date"] = $ticket["tk_date"]; goto cpDBF; bZYlQ: } goto UQnod; IuTrA: $v["ticket"] = $ticketInfo; goto GBE1f; UQnod: GeEy4: goto ETAoc; hwCN9: $ticketInfo = $T->getAll($filters); goto KyOgD; HQBnk: RzY3U: goto Bn7g0; Bn7g0: } goto emWO5; oxxQf: if (!(is_error($refundResult) || $global_refund != 1)) { goto gdekw; } goto uQNpl; iHMQO: Kf5pd: goto YLBWB; uoJMJ: $filters = array(); goto NGTTM; emWO5: KcRwb: goto dpNkR; cmvXf: return $this->result(1, "订单数据错误"); goto iHMQO; y20tO: global $_W, $_GPC; goto ST0bk; gzn4f: } public function doPageGetQrCode() { goto gtnEm; f1Tn9: iRQ0z: goto PhplC; Zj1Ny: load()->library("qrcode"); goto ueRgR; R2IuB: Cp87w: goto CjlUz; ueRgR: QRcode::png($code, false, QR_ECLEVEL_Q, 200, 4); goto R2IuB; O_pU1: $code = $_GPC["code"]; goto v8cy4; pFH3K: return $this->result(1, "参数错误222"); goto f1Tn9; v8cy4: if (!empty($code)) { goto iRQ0z; } goto pFH3K; PhplC: if (empty($code)) { goto Cp87w; } goto Zj1Ny; gtnEm: global $_W, $_GPC; goto O_pU1; CjlUz: } public function doPageGetBarCode() { goto pvcex; STLQq: RE5bo: goto tcO7x; e2sCp: $colorFront = new BCGColor(0, 0, 0); goto q0nCP; Hw3dL: $drawing->setBarcode($code); goto Ht14q; E43xj: $code->parse($qrcode); goto rn5uh; q0nCP: $colorBack = new BCGColor(255, 255, 255); goto vHpyt; rn5uh: $drawing = new BCGDrawing('', $colorBack); goto Hw3dL; Ob2R1: $qrcode = $_GPC["code"]; goto MGw31; pvcex: global $_W, $_GPC; goto Ob2R1; dE5zC: load()->library("barcode/class/BCGDrawing"); goto e2sCp; bFYzn: header("Content-Type: image/png"); goto V12pu; kUw1c: load()->library("barcode/class/BCGcode128.barcode"); goto dE5zC; MGw31: if (!empty($qrcode)) { goto RE5bo; } goto k7Vfx; plveh: $code->setLabel(''); goto ZXcKu; V12pu: $drawing->finish(BCGDrawing::IMG_FORMAT_PNG); goto CBl3H; k7Vfx: return $this->result(1, "参数错误"); goto STLQq; vHpyt: $code = new BCGcode128(); goto plveh; ZXcKu: $code->setScale(2); goto dL4nz; tcO7x: load()->library("barcode/class/BCGColor"); goto kUw1c; dL4nz: $code->setColor($colorFront, $colorBack); goto E43xj; Ht14q: $drawing->draw(); goto bFYzn; CBl3H: } public function doPageGetScan() { goto TQg7u; ueEd1: to1W5: goto WVnik; M65F2: $ScanService = new ScanService(); goto WoRqX; bEInB: C2zVv: goto xQIwJ; WVnik: $globalConfig = $this->module["config"]; goto KoE27; WoRqX: global $_W, $_GPC; goto eoNR6; hcYgs: $shop_id = $_GPC["shop_id"]; goto mj8Em; DaDFK: return $this->result(1, $scanResult["message"]); goto bEInB; UDF5O: if (!is_error($scanResult)) { goto C2zVv; } goto DaDFK; KoE27: $scanResult = $ScanService->authCheckResult($code, $shop_id, $globalConfig); goto UDF5O; aWrBq: return $this->result(1, "参数错误"); goto ueEd1; eoNR6: $code = $_GPC["code"]; goto hcYgs; mj8Em: if (!(empty($code) || empty($shop_id))) { goto to1W5; } goto aWrBq; xQIwJ: return $this->result(0, "加载商品成功", $scanResult); goto EoOnM; TQg7u: autoload()->func("scan"); goto M65F2; EoOnM: } public function doPageScanCheck() { goto jqNva; KDWCY: global $_W, $_GPC; goto FLi6N; bjxSd: $log = "管理员(" . $memberInfo["u_nickname"] . ")小程序端扫码验票"; goto I2nP8; Ipo2L: $checkResult = $ScanService->doScanCheck($code, $log, $shopId); goto PLdZU; I2nP8: $_W["globalConfig"] = $this->module["config"]; goto Ipo2L; wc8D8: return $this->result(0, $checkResult["message"], $code); goto Mu75U; PLdZU: if (!is_error($checkResult)) { goto FCrzz; } goto m83vP; zx5G1: autoload()->func("wxapi"); goto PvsO2; FhnYd: nhA0r: goto Mt5kZ; VwHfT: $SubscribeMessageService->orderCheckNotice($code, $template_id); goto wc8D8; Mt5kZ: $M = new Member(); goto VEMLU; ofFKI: $SubscribeMessageService = new SubscribeMessageService(); goto VwHfT; zjCuV: if ($memberInfo) { goto NYSYo; } goto jdC7W; PvsO2: autoload()->func("unique"); goto KDWCY; A7ZA4: $template_id = $this->module["config"]["template_order_check"]; goto ofFKI; jqNva: autoload()->func("template"); goto zx5G1; umFbA: if (!(empty($code) || empty($_W["openid"]))) { goto nhA0r; } goto sc8JF; m83vP: return $this->result(1, $checkResult["message"]); goto NMKgp; ULo6r: $shopId = $memberInfo["shop_id"]; goto bjxSd; VEMLU: $ScanService = new ScanService(); goto QQ2gW; FLi6N: $code = $_GPC["code"]; goto umFbA; EBg87: NYSYo: goto ULo6r; NMKgp: FCrzz: goto A7ZA4; sc8JF: return $this->result(1, "参数错误"); goto FhnYd; jdC7W: return $this->result(1, "管理员信息错误"); goto EBg87; QQ2gW: $memberInfo = $M->getOneByOpenid($_W["openid"]); goto zjCuV; Mu75U: } public function doPageGetMember() { goto jGmq5; JwC87: UZEXw: goto GM2af; Z_m84: if (!(!$hasShop && $enable_shop_join)) { goto uNLmv; } goto cOYgF; KStTn: $Shop = new Shop(); goto xqhqv; DsFBL: return $this->result(1, "会员信息错误"); goto F2pfd; daBhu: $filters["u_openid"] = $_W["openid"]; goto HGNXL; cZV3E: $memberInfo["level"] = "普通会员"; goto hVPNc; G7023: $memberInfo["enable_shop_admin"] = true; goto W99fd; ayYFu: $MemberService = new MemberService(); goto roQBY; fwUuy: $memberInfo["isshow_distribution"] = $isshow_distribution; goto AjsxR; odS8I: $memberInfo["globalConfig"] = $FormatService->formatGlobalConfig($globalConfig); goto xpRoc; AjsxR: $globalConfig = $this->module["config"]; goto JIrZQ; hVPNc: if (!($memberInfo["u_grade"] > 0)) { goto nSHoq; } goto OV_Js; obsg1: $filters = array(); goto dZ6cJ; CVuGO: if (!($hasShop && $hasShop["shop_status"] == 1)) { goto QisfK; } goto G7023; xpRoc: $enable_shop_join = $this->module["config"]["enable_shop_join"]; goto KStTn; pi0Xx: if ($memberInfo) { goto k58BX; } goto DsFBL; F2pfd: k58BX: goto iqLdc; c7id2: if (!$gradeInfo["grade_name"]) { goto ZHnCY; } goto T3dDo; UhlT8: $RefereeService->RefereeEnableCheck($_W["openid"], $globalConfig["distribution_enable_type"], $globalConfig["distribution_enable_limit"]); goto cZV3E; Y1vjc: $memberInfo["balance"] = "余额:" . $memberInfo["u_balance"]; goto RNF2T; GM2af: $RefereeService = new DistributionRefereeService(); goto UhlT8; jGmq5: global $_W; goto W2ysq; JIrZQ: $FormatService = new FormatService(); goto odS8I; sfKld: $M = new Member(); goto obsg1; RNF2T: $globalConfig["credit_convert_rate"] = $globalConfig["credit_convert_rate"] > 0 ? $globalConfig["credit_convert_rate"] : 10; goto R5K42; zjGoM: return $this->result(1, "参数错误"); goto Z1gdK; spjoo: ZHnCY: goto WwPMf; WwPMf: nSHoq: goto Y1vjc; T3dDo: $memberInfo["level"] = $gradeInfo["grade_name"]; goto spjoo; eyid2: $memberInfo = $M->getOneByFields($filters); goto pi0Xx; HGNXL: $hasShop = $Shop->getOneByFields($filters); goto Z_m84; cOYgF: $memberInfo["enable_shop_join"] = true; goto nZSrn; xqhqv: $filters = array(); goto daBhu; dZ6cJ: $filters["u_openid"] = $_W["openid"]; goto eyid2; jUIwn: if (!($hasShop && $hasShop["shop_status"] == 0)) { goto UZEXw; } goto Hha5X; ZGxUj: $gradeInfo = $MemberGradeService->getGradeInfo($memberInfo["u_grade"]); goto c7id2; Hha5X: $memberInfo["enable_shop_apply"] = true; goto JwC87; W99fd: QisfK: goto jUIwn; roQBY: $MemberService->autoUpgrade($_W["openid"]); goto sfKld; Z1gdK: Em4w8: goto ayYFu; OV_Js: $MemberGradeService = new MemberGradeService(); goto ZGxUj; W2ysq: if (!empty($_W["openid"])) { goto Em4w8; } goto zjGoM; nZSrn: uNLmv: goto CVuGO; iqLdc: $isshow_distribution = $this->module["config"]["distribution_is_enable"]; goto fwUuy; R5K42: return $this->result(0, "加载会员成功", $memberInfo); goto BBXDg; BBXDg: } public function doPageMemberInfo() { goto A3kKa; YyoaJ: if (!empty($_W["openid"])) { goto PzXXH; } goto cm5s8; tm5XR: PzXXH: goto KT2o0; cm5s8: return $this->result(1, "参数错误"); goto tm5XR; ZeL6z: if ($memberInfo) { goto rzA5g; } goto jR_z5; IMjzr: return $this->result(0, "加载会员成功", $memberInfo); goto JQZPy; jR_z5: return $this->result(1, "会员信息错误"); goto W4in4; NJF_n: $filters["u_openid"] = $_W["openid"]; goto Uv3UV; A3kKa: global $_W; goto YyoaJ; W4in4: rzA5g: goto IMjzr; W1w81: $filters = array(); goto NJF_n; Uv3UV: $memberInfo = $M->getOneByFields($filters); goto ZeL6z; KT2o0: $M = new Member(); goto W1w81; JQZPy: } public function doPageAddMember() { goto jH9S8; hnK2i: jgZJG: goto qcYo4; IS4Lx: $res = $M->create($insert); goto yOPlx; j1OxQ: fHxiR: goto qmoKC; eAK7Z: $insert["u_nickname"] = $u_nickname; goto G_dgb; VhO0r: $filters = array(); goto R1Dn0; BAMu9: return $this->result(1, "参数错误"); goto uU0um; R1Dn0: $filters["u_openid"] = $_W["openid"]; goto kQavB; WOsqX: $insert["uniacid"] = $_W["uniacid"]; goto kRlw6; qmoKC: $insert = array(); goto eAK7Z; Z0krM: $M = new Member(); goto EU030; qcYo4: return $this->result(1, "添加会员失败"); goto QuIEh; On56L: return $this->result(0, "添加会员成功"); goto hnK2i; FM81g: if (!$memberInfo) { goto fHxiR; } goto plUJM; kQavB: $memberInfo = $M->getOneByFields($filters); goto FM81g; EU030: $u_nickname = $_GPC["u_nickname"]; goto HEkDK; yOPlx: if (!$res) { goto jgZJG; } goto On56L; jH9S8: global $_GPC, $_W; goto Z0krM; uU0um: i7tMX: goto VhO0r; plUJM: return $this->result(1, "会员已存在"); goto j1OxQ; Mxj1g: if (!(empty($u_nickname) || empty($u_avatar) || empty($_W["openid"]))) { goto i7tMX; } goto BAMu9; G_dgb: $insert["u_avatar"] = $u_avatar; goto WOsqX; HEkDK: $u_avatar = $_GPC["u_avatar"]; goto Mxj1g; kRlw6: $insert["u_openid"] = $_W["openid"]; goto IS4Lx; QuIEh: } public function doPagePay() { goto Mf11P; N3NhH: DOoXK: goto huYYn; cqwEN: return $this->result(0, "生成支付参数成功", $pay_params); goto ioWRJ; aYDSr: return $this->result(1, $pay_params["message"]); goto N3NhH; huYYn: if (empty($pay_params["package"])) { goto w0UKc; } goto Tvwij; p4iYk: cache_write($key, $prepay_id); goto gKHqB; ImQN4: load()->func("cache." . cache_type()); goto p4iYk; J0qhj: $order = array("tid" => $orderId, "user" => $_W["openid"], "fee" => floatval($fee), "title" => "支付"); goto gIA_Q; gKHqB: w0UKc: goto cqwEN; xY972: $prepay_id = $packageArray[1]; goto RrxDM; Mf11P: global $_GPC, $_W; goto fdjU1; gIA_Q: $pay_params = $this->pay($order); goto oE4Tv; Tvwij: $packageArray = explode("=", $pay_params["package"]); goto xY972; zXB7G: $orderId = $_GPC["orderid"]; goto J0qhj; RrxDM: $key = "hawk_multishop_pre" . $_W["openid"]; goto ImQN4; fdjU1: $fee = $_GPC["fee"]; goto zXB7G; oE4Tv: if (!is_error($pay_params)) { goto DOoXK; } goto aYDSr; ioWRJ: } public function payResult($params) { goto SZLLW; LJWMJ: $ForumService->payResultTop($params); goto BGevE; RKEZP: LK1kF: goto rIioe; X1iOm: $CardService = new CardService(); goto zpUUD; vRvEQ: goto HK7lE; goto Em0st; JfBIA: $globalConfig = $this->module["config"]; goto GWz3Z; jf3Ut: $CardService->finishRecharge($orderId, $params["tag"]["transaction_id"]); goto o4IKi; AaCTy: if (strpos($orderId, "top") === 0) { goto z7apO; } goto ULOUb; GWz3Z: incomeOtherHandler($orderId, $globalConfig, "升级VIP提成"); goto ZRMcC; S8b1s: autoload()->func("distribution"); goto JfBIA; ZRMcC: HK7lE: goto tH36S; ULOUb: if (strpos($orderId, "vip") === 0) { goto ORgsI; } goto GS_Dt; cNnM6: $_W["globalConfig"] = $this->module["config"]; goto X1iOm; o4IKi: goto HK7lE; goto cYodY; Bm7nI: global $_W; goto cNnM6; K6vV4: $ForumService = new ForumService(); goto LJWMJ; YqJWA: $CardService = new CardService(); goto jf3Ut; aHK4F: $RewardService = new RewardService(); goto MN1qp; Em0st: z7apO: goto K6vV4; o0mg0: $_W["globalConfig"] = $this->module["config"]; goto YqJWA; H3nDC: goto HK7lE; goto t2oqj; m2BNn: if (strpos($orderId, "recharge") === 0) { goto LK1kF; } goto x1yPu; CZRWq: $PayResultService = new PayResultService($globalConfig); goto wNMIN; ts81A: $MemberService = new MemberService(); goto TO7cs; ovO7r: goto HK7lE; goto RKEZP; K7VlH: $globalConfig = $this->module["config"]; goto M7UXP; x1yPu: if (strpos($orderId, "audit") === 0) { goto qg9FE; } goto qBiOx; BGevE: goto HK7lE; goto zyJgC; MN1qp: $RewardService->rewardPaySuccess($orderId, $params); goto vRvEQ; M7UXP: incomeOtherHandler($orderId, $globalConfig, "身份认证提成"); goto H3nDC; cYodY: qg9FE: goto Bm7nI; qBiOx: if (strpos($orderId, "reward") === 0) { goto nu4RK; } goto AaCTy; rIioe: global $_W; goto o0mg0; zyJgC: ORgsI: goto ts81A; TO7cs: $MemberService->payResultUpgradeVip($params); goto S8b1s; zpUUD: $CardService->finishAudit($orderId, $params["tag"]["transaction_id"]); goto YYPad; GS_Dt: $globalConfig = $this->module["config"]; goto CZRWq; wNMIN: $PayResultService->payResult($params); goto ovO7r; t2oqj: nu4RK: goto aHK4F; SZLLW: $orderId = $params["tid"]; goto m2BNn; YYPad: autoload()->func("distribution"); goto K7VlH; tH36S: } public function doPageGetMapMarkers() { goto tq0Vc; hqPLG: if (!$products) { goto OD6T8; } goto DP7Vu; tq0Vc: global $_W, $_GPC; goto Ec2CK; dGYOm: $filters = array(); goto M7tkU; zpU_L: $points = array(); goto Fxkf6; lSshx: if (!empty($markers)) { goto R1xb_; } goto rTCAr; jmyuZ: $pageSize = 20; goto gUtCj; m4LoW: r1JnG: goto sjEzw; TEbrt: $data["points"] = $points; goto CZ0fa; NSlqV: $P = new Product(); goto Wa0Sn; rTCAr: return $this->result(1, "加载标记点失败"); goto V3Xth; Ec2CK: $markers = array(); goto zpU_L; ROwuC: $data = array(); goto qYw5m; Fpkvx: $filters["pro_status"] = 0; goto NIUqk; Fxkf6: $A = new Article(); goto NSlqV; M7tkU: $filters["ac_status"] = 0; goto pjuX0; Lc27T: foreach ($articles as $k => $v) { goto ZEhpB; FjJHy: $point["latitude"] = $v["ac_latitude"]; goto eET7n; S2yYQ: $marker["latitude"] = $v["ac_latitude"]; goto td6M1; nZQGP: $marker["id"] = $markerId; goto RoDT2; Hf7WF: $points[] = $point; goto wW20K; td6M1: $marker["longitude"] = $v["ac_longitude"]; goto ZGSc_; oRPaO: NUYeQ: goto umS4n; eET7n: $point["longitude"] = $v["ac_longitude"]; goto Hf7WF; u6Qg2: $markers[] = $marker; goto SzryA; MCPhN: $marker["type"] = 0; goto u6Qg2; wW20K: $markerId++; goto oRPaO; ZGSc_: $marker["title"] = $v["ac_keyword"]; goto MCPhN; ZEhpB: $marker = array(); goto nZQGP; SzryA: $point = array(); goto FjJHy; kY11w: $marker["single"] = $v["ac_map_single"]; goto S2yYQ; RoDT2: $marker["code"] = $v["ac_id"]; goto kY11w; umS4n: } goto m4LoW; jMJAc: $markerId = 0; goto wfCCD; cZEQN: $filters = array(); goto Fpkvx; RFIwx: $articles = $A->getAllByPage($filters, $page, $pageSize, $total, "ac_weight DESC"); goto jMJAc; V3Xth: R1xb_: goto ROwuC; CZ0fa: return $this->result(0, "加载地图标记成功", $data); goto gGtOp; DP7Vu: foreach ($products as $k => $v) { goto CXz32; vwiHT: $point["longitude"] = $v["pro_longitude"]; goto Cujt8; yDe5E: $markers[] = $marker; goto H831I; Zvfjo: $marker["latitude"] = $v["pro_latitude"]; goto Y4vqn; zhGjb: $point = array(); goto Y22RL; Cujt8: $points[] = $point; goto yDe5E; RJ5fO: $marker["single"] = $v["pro_map_single"]; goto Zvfjo; NnD5_: $marker["code"] = $v["pro_code"]; goto RJ5fO; EOU33: sBBfv: goto VOjFV; H831I: $markerId++; goto EOU33; llGEU: $marker["id"] = $markerId; goto NnD5_; Zcql0: $marker["title"] = $v["pro_keyword"]; goto LjqiG; Y4vqn: $marker["longitude"] = $v["pro_longitude"]; goto Zcql0; LjqiG: $marker["type"] = $v["pro_type"]; goto zhGjb; CXz32: $marker = array(); goto llGEU; Y22RL: $point["latitude"] = $v["pro_latitude"]; goto vwiHT; VOjFV: } goto rrh33; qYw5m: $data["markers"] = $markers; goto TEbrt; NIUqk: $filters["pro_map"] = 1; goto nFvat; wfCCD: if (!$articles) { goto VIXiJ; } goto Lc27T; pjuX0: $filters["ac_map"] = 1; goto RFIwx; UDq9c: $page = max($page, 1); goto jmyuZ; rrh33: WPyv4: goto PitdM; sjEzw: VIXiJ: goto cZEQN; Wa0Sn: $page = intval($_GPC["page"]); goto UDq9c; PitdM: OD6T8: goto lSshx; nFvat: $products = $P->getAllByPage($filters, $page, $pageSize, $total, "pro_weight DESC"); goto hqPLG; gUtCj: $total = 0; goto dGYOm; gGtOp: } public function doPageDistributionQr() { goto maS2g; fF2cL: $qrLocation = $this->module["config"]["qrlocation"]; goto BRAwZ; O610_: q1G_E: goto DCQV2; PKqMs: return $this->result(0, "生成二维码成功", $qrUrl); goto p7VbL; L5RPo: $qrFile = ATTACHMENT_ROOT . "hawk_multishop/qrcode/" . $uniKey . ".png"; goto CIj5t; O_QMO: $qrUrl = str_replace(ATTACHMENT_ROOT, $_W["siteroot"] . "attachment/", $qrPath) . "?time=" . $cacheTime; goto DYws1; GAvDQ: if (!empty($cacheTime)) { goto sJI7H; } goto kOyAh; lcx7n: global $_W, $_GPC; goto ZzspS; iyAc_: $qrConfig["nickNamePosition"] = $nickNamePosition; goto NUfEc; sDI58: $avatarSize["height"] = $qrLocationArray[5]; goto zdTtb; CVL5g: $M = new Member(); goto lwXqp; GnP9V: $qrConfig["avatarPosition"] = $avatarPosition; goto iyAc_; ipJa7: $qrResult = getQr($qrConfig, $qrFile); goto ofupp; DCQV2: $qrFile = $qrResult["message"]; goto Z5uWf; l0rWT: $nickNamePosition["x"] = $qrLocationArray[8]; goto S7F7s; WTBam: sJI7H: goto wPgRm; vPV80: oUOhd: goto Uyv0z; BfJBB: $avatarPosition["y"] = $qrLocationArray[7]; goto l0rWT; r7tl3: T6QO2: goto ipJa7; M3JSG: $qrSize["height"] = $qrLocationArray[1]; goto F_Apm; Xu95a: goto Oq0HZ; goto r7tl3; kOyAh: $cacheTime = time(); goto tSjA0; dCvJu: Gv0di: goto dvhXD; mzfdf: $BgQr = new BgQr($_W["openid"], $qrConfig); goto v33If; NrYu0: $qrConfig["qrSize"] = $qrSize; goto d0KTX; Ost6D: r3SPY: goto fF2cL; l3z70: $avatarSize["width"] = $qrLocationArray[4]; goto sDI58; F_Apm: $qrPosition["x"] = $qrLocationArray[2]; goto Zgl7W; exAwU: $qrLocationArray = explode(",", $qrLocation); goto Gp_YC; dvhXD: if (empty($fonts)) { goto r3SPY; } goto z_FQl; ZzspS: if (!empty($_W["openid"])) { goto oUOhd; } goto w6w2C; IsXgp: cache_write("bgImgTime", $cacheTime); goto O_QMO; TzzsD: $qrConfig = array("scene" => $_W["openid"], "page" => "hawk_multishop/pages/distribution/distribution", "width" => 300, "line_color" => array("r" => 0, "g" => 139, "b" => 69)); goto L5RPo; Z5uWf: $bgImgUrl = tomedia($this->module["config"]["distribution_bgImg"]); goto CVL5g; S7F7s: $nickNamePosition["y"] = $qrLocationArray[9]; goto NrYu0; IxwAw: if (empty($qrFontColor)) { goto tx227; } goto BMDej; m4b2i: $cacheTime = time(); goto IsXgp; v33If: $qrPath = $BgQr->getQr($bgImgUrl, $qrFile, $avatarUrl, $memberInfo["u_nickname"]); goto m4b2i; mNt_d: $qrUrl = str_replace(ATTACHMENT_ROOT, $_W["siteroot"] . "attachment/", $qrPath) . "?time=" . $cacheTime; goto Xu95a; Gp_YC: $qrSize["width"] = $qrLocationArray[0]; goto M3JSG; wPgRm: if (!is_file($targetFile)) { goto T6QO2; } goto cgEEN; CIj5t: $targetFile = ATTACHMENT_ROOT . "hawk_multishop/target/" . $uniKey . ".png"; goto FKm4Y; w6w2C: return $this->result(1, "参数错误"); goto vPV80; d0KTX: $qrConfig["qrPosition"] = $qrPosition; goto AKdnr; FEZSQ: autoload()->classes("bgQr"); goto lcx7n; Zgl7W: $qrPosition["y"] = $qrLocationArray[3]; goto l3z70; FKm4Y: $cacheTime = cache_read("bgImgTime"); goto GAvDQ; Uyv0z: $uniKey = $_W["openid"]; goto TzzsD; NUfEc: qWUNH: goto mzfdf; n19DH: autoload()->classes("imgUtil"); goto DZouD; DYws1: Oq0HZ: goto PKqMs; QqqPp: $qrFontColor = $this->module["config"]["qrfontcolor"]; goto xBxjn; z_FQl: $qrConfig["fonts"] = $fonts; goto Ost6D; DZouD: autoload()->classes("img"); goto FEZSQ; lwXqp: $memberInfo = $M->getOneByOpenid($_W["openid"]); goto Xi6IO; RjvH_: $qrConfig = array(); goto FnDHS; s8L7P: if (empty($qrFontSize)) { goto Gv0di; } goto MTWci; zdTtb: $avatarPosition["x"] = $qrLocationArray[6]; goto BfJBB; maS2g: autoload()->func("wxapi"); goto n19DH; tSjA0: cache_write("bgImgTime", $cacheTime); goto WTBam; AKdnr: $qrConfig["avatarSize"] = $avatarSize; goto GnP9V; Xi6IO: $avatarUrl = $memberInfo["u_avatar"]; goto RjvH_; BMDej: $fonts["color"] = $qrFontColor; goto U3f7N; U3f7N: tx227: goto s8L7P; MTWci: $fonts["size"] = $qrFontSize; goto dCvJu; BRAwZ: if (empty($qrLocation)) { goto qWUNH; } goto exAwU; ofupp: if (!is_error($qrResult)) { goto q1G_E; } goto PETP1; PETP1: return $this->result(1, $qrResult["message"]); goto O610_; xBxjn: $qrFontSize = $this->module["config"]["qrfontsize"]; goto IxwAw; cgEEN: $qrPath = $targetFile; goto mNt_d; FnDHS: $fonts = array(); goto QqqPp; p7VbL: } public function doPageAddReferee() { goto tLvUz; gvlu7: $RefereeService = new DistributionRefereeService(); goto AQrbi; gffUH: $father = ''; goto ooyLx; ooyLx: goto uIWNy; goto Ot1cx; YNQL0: if (!$map) { goto I8D1X; } goto nnMSS; tLvUz: global $_W, $_GPC; goto AvX6p; Ot1cx: kyVxc: goto ed12b; YhfFa: $SM = new SceneMap(); goto IqZry; ed12b: $father = $_GPC["father"]; goto KrKrm; nnMSS: $father = $map["u_openid"]; goto Zep6T; KrKrm: uIWNy: goto xFcTO; Zep6T: I8D1X: goto MBPaC; IqZry: $filters = array(); goto oxcHI; Ywv4X: if (!is_error($refereeResult)) { goto YP2eq; } goto wyqmZ; xFcTO: if (!(!empty($_GPC["scene"]) && $_GPC["scene"] != "undefined")) { goto PDWSj; } goto YhfFa; AvX6p: if (!empty($_GPC["father"]) && $_GPC["father"] != "undefined") { goto kyVxc; } goto gffUH; uVQgH: $map = $SM->getOneByFields($filters); goto YNQL0; gz_30: YP2eq: goto dsbSY; dsbSY: return $this->result(0, "添加推荐人成功"); goto n4VYD; AQrbi: $refereeResult = $RefereeService->addReferee($_W["openid"], $father); goto Ywv4X; oxcHI: $filters["sm_key"] = $_GPC["scene"]; goto uVQgH; wyqmZ: return $this->result(1, $refereeResult["message"]); goto gz_30; MBPaC: PDWSj: goto gvlu7; n4VYD: } public function doPageSceneToReferee() { goto r4FXH; IeSXt: $code = $map["sm_code"]; goto IiMrz; V2CFg: if (!$map) { goto S84Fq; } goto hKK21; IiMrz: $data = array("code" => $code, "referee" => $father); goto HA7Wv; DQ_fl: o_UUi: goto GAdej; hKK21: $father = $map["u_openid"]; goto IeSXt; ieDzU: if (empty($_GPC["scene"])) { goto o_UUi; } goto dDXAV; gkkKy: $filters = array(); goto J_Xfs; cv19R: S84Fq: goto DQ_fl; yqvKb: $map = $SM->getOneByFields($filters); goto V2CFg; HA7Wv: return $this->result(0, "解析推荐人成功", $data); goto cv19R; J_Xfs: $filters["sm_key"] = $_GPC["scene"]; goto yqvKb; dDXAV: $SM = new SceneMap(); goto gkkKy; GAdej: return $this->result(1, "解析推荐人失败"); goto MWVTm; r4FXH: global $_W, $_GPC; goto ieDzU; MWVTm: } public function doPageDistribution() { goto yNimj; ZnZI8: $data["globalConfig"] = $FormatService->formatGlobalConfig($globalConfig); goto iN_5r; s5pY4: global $_W; goto qj2gW; vHiF7: $filters["u_openid"] = $_W["openid"]; goto JH1yF; ycixS: $data["incomeCount"] = $count; goto y_jJ9; t0_C_: $count = $count ? $count : 0; goto ycixS; UxPia: return $this->result(1, "参数错误"); goto ukyLw; ljoln: $R = new DistributionReferee(); goto ZY2RN; lzeBP: $teamArray = getMyTeamArray($_W["openid"], $level); goto OWeoX; PmeLm: $filters = array(); goto hEMHe; ZvIpn: return $this->result(1, "会员信息错误"); goto l9A9O; EsRv6: $refereeInfo["rf_allowmoney"] = $refereeInfo["rf_allowmoney"] > 0 ? floor($refereeInfo["rf_allowmoney"] * 100) / 100 : 0; goto c0Eig; r3m4B: $filters["ds_status"] = 0; goto fjX8G; xFXEf: return $this->result(1, "您还不是分销商"); goto DvaAn; yHgoc: $fatherInfo = $M->getOneByFields($filters); goto HaZtK; y_jJ9: $filters = array(); goto vHiF7; iN_5r: return $this->result(0, "加载会员成功", $data); goto BmANQ; zJpkH: $data["withdrawCount"] = $count; goto uviRM; l9A9O: Cc04U: goto QpZSD; FhdZD: $globalConfig = $this->module["config"]; goto ZnZI8; c0Eig: $data["refereeInfo"] = $refereeInfo; goto q2Yog; HWmBU: if ($memberInfo) { goto Cc04U; } goto ZvIpn; JH1yF: $count = $DW->getAllCount($filters); goto BnHNp; qj2gW: if (!empty($_W["openid"])) { goto Sj0I2; } goto UxPia; BnHNp: $count = $count ? $count : 0; goto zJpkH; OWeoX: $data["teamTotal"] = getTeamTotal($teamArray); goto Tulzn; fjX8G: $count = $DI->getAllCount($filters); goto t0_C_; ATuM7: $data = array(); goto PmeLm; C6JOY: $refereeInfo = $R->getOneByFields($filters); goto mIP9D; hEMHe: $filters["u_openid"] = $_W["openid"]; goto kbZQD; Pw7tF: $filters = array(); goto m8ILc; kygad: if (empty($refereeInfo["rf_father"])) { goto jonaF; } goto jgWNS; DvaAn: pO72H: goto JYXk0; q2Yog: fIkiS: goto kygad; HaZtK: if (!$fatherInfo) { goto ySDi2; } goto J6zxe; Tulzn: $FormatService = new FormatService(); goto FhdZD; xzfqp: $DW = new DistributionWithdraw(); goto ATuM7; NrSIM: $refereeInfo["rf_allowmoney"] = $refereeInfo["rf_totalmoney"] - $refereeInfo["rf_usedmoney"] - $refereeInfo["rf_applymoney"]; goto EsRv6; aRuhK: $M = new Member(); goto ljoln; kbZQD: $memberInfo = $M->getOneByFields($filters); goto HWmBU; Jhrnp: jonaF: goto bcJy5; jgWNS: $filters = array(); goto Ll2BO; bcJy5: $data["memberInfo"] = $memberInfo; goto AoNgO; J6zxe: $data["father"] = $fatherInfo; goto t_mYt; bGtOH: $filters["u_openid"] = $_W["openid"]; goto r3m4B; t_mYt: ySDi2: goto Jhrnp; uviRM: $level = $this->module["config"]["distribution_level"]; goto RDFF2; JYXk0: if (!$refereeInfo) { goto fIkiS; } goto NrSIM; ukyLw: Sj0I2: goto aRuhK; mIP9D: if (!($refereeInfo["rf_is_enable"] != 1)) { goto pO72H; } goto xFXEf; Ll2BO: $filters["u_openid"] = $refereeInfo["rf_father"]; goto yHgoc; QpZSD: $data["memberInfo"] = $memberInfo; goto Pw7tF; ZY2RN: $DI = new DistributionIncome(); goto xzfqp; yNimj: autoload()->func("distribution"); goto s5pY4; AoNgO: $filters = array(); goto bGtOH; m8ILc: $filters["u_openid"] = $_W["openid"]; goto C6JOY; RDFF2: $level = isset($level) ? $level : 3; goto lzeBP; BmANQ: } public function doPageGetIncome() { goto Tluo_; s5BYi: if ($ds) { goto GnZ_P; } goto iq7sZ; UeQm4: $pageSize = 20; goto Jpe2k; XNF_U: $ds = $DI->getAllByPage($filters, $page, $pageSize, $total, "ds_id DESC"); goto s5BYi; SalVE: $filters["u_openid"] = $_W["openid"]; goto sJGuO; P_kiA: $filters = array(); goto SalVE; sJGuO: $filters["ds_status"] = 0; goto XNF_U; qvOpG: return $this->result(1, "参数错误"); goto cGrhu; aebtK: if (!empty($_W["openid"])) { goto AkRAQ; } goto qvOpG; D9yxO: global $_W, $_GPC; goto aebtK; AL3Ts: $page = intval($_GPC["page"]); goto npVRC; cGrhu: AkRAQ: goto IXrj8; EtXmq: return $this->result(0, "加载收入明细成功", $ds); goto FCmBT; Jpe2k: $total = 0; goto P_kiA; iq7sZ: return $this->result(1, "数据不存在"); goto TjaJA; cWNjj: t6ddV: goto EtXmq; Tluo_: autoload()->func("distribution"); goto D9yxO; npVRC: $page = max($page, 1); goto UeQm4; TjaJA: GnZ_P: goto BXZss; IXrj8: $DI = new DistributionIncome(); goto iNa8t; BXZss: foreach ($ds as $k => &$v) { goto k7N8s; bb6Hx: $filters["u_openid"] = $v["ds_openid"]; goto u0OS8; LXI9H: rNswm: goto uj87g; ZKd6K: $v["referee"] = $fatherInfo; goto HsJcT; pjLSC: $v["memberInfo"] = $distributionMemberInfo; goto xNRhG; TXgyr: FI0gR: goto muvpb; HAmbA: $fatherInfo = get_father($v["ds_openid"]); goto Ov1Ek; u0OS8: $distributionMemberInfo = $M->getOneByFields($filters); goto AU833; Ov1Ek: if (is_error($fatherInfo)) { goto rNswm; } goto V0bTX; k7N8s: if (empty($v["ds_openid"])) { goto GnFcW; } goto OYMav; AU833: if (!$distributionMemberInfo) { goto Q8ljR; } goto pjLSC; V0bTX: if (!($fatherInfo["u_openid"] != $_W["openid"])) { goto pq7DI; } goto ZKd6K; Tg0cu: $v["ds_createtime"] = date("Y-m-d H:i", strtotime($v["ds_createtime"])); goto TXgyr; uj87g: GnFcW: goto Tg0cu; HsJcT: pq7DI: goto LXI9H; xNRhG: Q8ljR: goto HAmbA; OYMav: $filters = array(); goto bb6Hx; muvpb: } goto cWNjj; iNa8t: $M = new Member(); goto AL3Ts; FCmBT: } public function doPageGetWithdraw() { goto VKlTF; oBJv7: return $this->result(1, "参数错误"); goto q8msh; Wpl9W: $refereeInfo["waitMoney"] = floor($waitMoney) * 100 / 100; goto uc05C; ulgdH: $refereeInfo["allowMoney"] = floor($allowMoney) * 100 / 100; goto RDkOc; lugQF: $DR = new DistributionReferee(); goto wTcSU; T3TLv: $waitMoney = $waitMoney > 0 ? $waitMoney : 0; goto Wpl9W; q1l9H: if (!empty($_W["openid"])) { goto iNzH1; } goto oBJv7; q8msh: iNzH1: goto lugQF; bsfnm: if (!$refereeInfo) { goto yo672; } goto k1uSH; fWIts: $refereeInfo["minLimit"] = $withdraw_minLimit; goto GMY9G; GMY9G: return $this->result(0, "加载分销用户数据成功", $refereeInfo); goto zM6q4; QzBqM: $allowMoney = $allowMoney > 0 ? $allowMoney : 0; goto ulgdH; RDkOc: $waitMoney = $refereeInfo["rf_totalmoney"] - $refereeInfo["rf_usedmoney"]; goto T3TLv; B4UMB: $withdraw_minLimit = $withdraw_minLimit > 0 ? $withdraw_minLimit : 0; goto fWIts; zM6q4: yo672: goto Qzrbc; k1uSH: $allowMoney = $refereeInfo["rf_totalmoney"] - $refereeInfo["rf_usedmoney"] - $refereeInfo["rf_applymoney"]; goto QzBqM; VKlTF: global $_W, $_GPC; goto q1l9H; wTcSU: $refereeInfo = $DR->getOneByOpenid($_W["openid"]); goto bsfnm; uc05C: $withdraw_minLimit = $this->module["config"]["withdraw_minLimit"]; goto B4UMB; Qzrbc: return $this->result(1, "加载分销数据错误"); goto SYe_U; SYe_U: } public function doPageWithdraw() { goto iGWPc; UDZsQ: return $this->result(1, "小于最低可提现金额" . $withdraw_minLimit . "元"); goto MyIJy; fBCq0: $insert = array(); goto Sd4i3; mov2a: $updateResult = $DR->modifyByOpenid($_W["openid"], $update); goto XFXKk; iGWPc: global $_W, $_GPC; goto u2H5O; lg_Bk: $appKey = $this->module["config"]["sms_appKey"]; goto VCZkH; LdGRF: $flag = false; goto RS2IR; qGDuH: huAeM: goto rE0i5; bjP9J: bi31a: goto G8yp1; MyIJy: P6hpE: goto PNrKw; fgjNG: return $this->result(1, "可提现金额不足"); goto Kt3ZU; gYslZ: nz2nO: goto q0A29; OGIp8: $signText = $this->module["config"]["sms_signName"]; goto lg_Bk; WRvtt: PJtYm: goto EFuE7; m_o8E: return $this->result(1, "提现申请失败"); goto aLGV1; r5vYH: autoload()->func("email"); goto WjDmN; On0r1: $enable_sms = $this->module["config"]["enable_sms"]; goto zO07g; y7b2U: if (empty($_GPC["name"]) || empty($_GPC["account"])) { goto y_92u; } goto Tfso1; WarDb: if (empty($name)) { goto nz2nO; } goto hdKeR; WyCSQ: Lc_Gj: goto JLDrB; IkveP: $insertId = pdo_insertid(); goto isRN5; CHy2i: $DW = new DistributionWithdraw(); goto fBCq0; CowLX: $template_id = $this->module["config"]["sms_withdraw_templateId"]; goto mP_jz; Ct8Z8: if (!($type != "wechat" && $type != "balance")) { goto Lc_Gj; } goto y7b2U; vZpjw: if (!$enable_email) { goto KiU4Q; } goto r5vYH; jRcYm: tOpZP: goto tS5O5; zbgQ0: KiU4Q: goto wlY4h; dBRDy: return $this->result(1, "参数错误"); goto TuDID; isRN5: if ($insertResult) { goto kebp5; } goto LdGRF; c4vuc: if (!($enable_sms && $sms_mobile)) { goto CkH55; } goto XzM1n; wgKkH: $type = $_GPC["type"] ? $_GPC["type"] : "wechat"; goto Ct8Z8; m8fY1: TsJ9A: goto qnPql; JLDrB: $DR = new DistributionReferee(); goto SWpem; SWpem: $refereeInfo = $DR->getOneByOpenid($_W["openid"]); goto qGnjb; jVuxq: $M = new Member(); goto sAxrM; nNuSU: SmsDemo::sendWithdrawSms($sms_mobile, $template_id, $username, $signText); goto KFNzn; lwOvA: $body = $_W["account"]["name"] . "有用户提现,提现ID:" . $insertId . "请尽快审核"; goto w3mk9; eNFrz: require_once MODULE_ROOT . "/lib/aliyun_sms/aliyunsms.php"; goto CowLX; quHGZ: $insert["dw_fee"] = $fee; goto WarDb; hxUXk: $flag = true; goto CHy2i; Kt3ZU: zT8Oa: goto Oe_jk; eKoTW: $allowMoney = $allowMoney > 0 ? $allowMoney : 0; goto iHWg4; KFNzn: CkH55: goto mkJWI; rE0i5: pdo_commit(); goto On0r1; G8yp1: if ($flag) { goto huAeM; } goto LmqFK; EFuE7: $allowMoney = $refereeInfo["rf_totalmoney"] - $refereeInfo["rf_usedmoney"] - $refereeInfo["rf_applymoney"]; goto eKoTW; e7WJZ: $response = email_send($smtp_admin_email, $subject, $body, $config); goto zbgQ0; qrRIW: $subject = "提现审核提醒"; goto lwOvA; LmqFK: pdo_rollback(); goto m_o8E; RS2IR: kebp5: goto NEDbn; qGnjb: if ($refereeInfo) { goto PJtYm; } goto QK2vs; hec60: return $this->result(1, "提现姓名或账号错误"); goto UrjfY; wlY4h: return $this->result(0, "提现申请成功"); goto m8fY1; tS5O5: $insert["dw_type"] = $dw_type; goto JN2vb; EPel_: if (!(empty($_W["openid"]) || $fee <= 0)) { goto t0yAU; } goto dBRDy; Oe_jk: $withdraw_minLimit = $this->module["config"]["withdraw_minLimit"]; goto nb87M; QK2vs: return $this->result(1, "加载分销数据错误"); goto WRvtt; mkJWI: $enable_email = $this->module["config"]["enable_email"]; goto vZpjw; q4EB2: $insert["dw_account"] = $account; goto H3yCy; u2H5O: $fee = $_GPC["fee"]; goto EPel_; XzM1n: $filters = array(); goto bitS2; Sd4i3: $insert["u_openid"] = $_W["openid"]; goto quHGZ; UrjfY: BQWT5: goto WyCSQ; sAxrM: $memberInfo = $M->getOneByFields($filters); goto eNFrz; Tfso1: $name = $_GPC["name"]; goto KgdIJ; KgdIJ: $account = $_GPC["account"]; goto A3xXF; hdKeR: $insert["dw_name"] = $name; goto gYslZ; s31UM: $update["rf_applymoney"] = $applyMoney; goto mov2a; A3xXF: goto BQWT5; goto d6Mjr; PNrKw: pdo_begin(); goto hxUXk; d6Mjr: y_92u: goto hec60; q0A29: if (empty($account)) { goto Da_RP; } goto q4EB2; NEDbn: $applyMoney = $refereeInfo["rf_applymoney"] + $fee; goto tIsUj; iHWg4: if (!($allowMoney <= 0 || $fee > $allowMoney)) { goto zT8Oa; } goto fgjNG; JN2vb: $insertResult = $DW->create($insert); goto IkveP; AK3l9: SmsDemo::setAppConfig($appKey, $appSecret); goto nNuSU; WjDmN: $smtp_admin_email = $this->module["config"]["smtp_admin_email"]; goto qrRIW; BZV0U: utLK6: goto jRcYm; nb87M: if (!($fee < $withdraw_minLimit)) { goto P6hpE; } goto UDZsQ; H3yCy: Da_RP: goto rdtQt; w3mk9: $config = $this->module["config"]; goto e7WJZ; TuDID: t0yAU: goto wgKkH; VCZkH: $appSecret = $this->module["config"]["sms_appSecret"]; goto AK3l9; bitS2: $filters["u_openid"] = $_W["openid"]; goto jVuxq; mP_jz: $username = $memberInfo["u_nickname"]; goto OGIp8; rdtQt: switch ($type) { case "alipay": $dw_type = 1; goto tOpZP; case "bank": $dw_type = 2; goto tOpZP; case "balance": $dw_type = 3; goto tOpZP; default: $dw_type = 0; } goto BZV0U; XFXKk: if ($updateResult) { goto bi31a; } goto FCDSf; tIsUj: $update = array(); goto s31UM; aLGV1: goto TsJ9A; goto qGDuH; zO07g: $sms_mobile = $this->module["config"]["sms_mobile"]; goto c4vuc; FCDSf: $flag = false; goto bjP9J; qnPql: } public function doPageGetWithdrawList() { goto B3aQC; V6ue2: $total = 0; goto il4Ei; Pi47u: return $this->result(1, "参数错误"); goto SFHqi; B3aQC: require_once MODULE_ROOT . "/util/WithdrawEnum.util.php"; goto eVo73; yvj1Z: $ds = $DW->getAllByPage($filters, $page, $pageSize, $total, "dw_id DESC"); goto vScol; ARc9I: return $this->result(0, "加载提现列表成功", $ds); goto Cd5n7; KRflg: $filters["u_openid"] = $_W["openid"]; goto yvj1Z; CYJWO: $page = intval($_GPC["page"]); goto OXYT1; tL_pi: $DW = new DistributionWithdraw(); goto CYJWO; Z0pfX: foreach ($ds as $k => &$v) { goto sqNHl; sqNHl: $v["dw_status"] = $withdrawStatus["{$v["dw_status"]}"]; goto uduep; uduep: $v["dw_createtime"] = date("Y-m-d H:i", strtotime($v["dw_createtime"])); goto FpwSN; FpwSN: R3IPI: goto O7EqU; O7EqU: } goto shZOl; YxJ49: if (!empty($_W["openid"])) { goto LiXRf; } goto Pi47u; vScol: if ($ds) { goto cWnrS; } goto rFhOa; OXYT1: $page = max($page, 1); goto JDxjY; shZOl: I0UN2: goto ARc9I; fYciI: cWnrS: goto Z0pfX; il4Ei: $filters = array(); goto KRflg; JDxjY: $pageSize = 20; goto V6ue2; rFhOa: return $this->result(1, "数据不存在"); goto fYciI; eVo73: global $_W, $_GPC; goto YxJ49; SFHqi: LiXRf: goto tL_pi; Cd5n7: } public function doPageGetTeam() { goto h14Vu; iPdGL: if (!is_error($team)) { goto OPU0W; } goto VahnK; nvXI7: fKnn1: goto HHcvZ; A2mKo: s8ntc: goto Zk3U2; aFfhs: $tempMenu = array(); goto kEmqO; nlcn8: foreach ($team as $k => $v) { goto Ex6fO; Q4ppA: $tempMenu["total"] = count($v); goto l8czQ; CElBK: H1Ncm: goto WlI_R; l8czQ: $menu[] = $tempMenu; goto CElBK; PLMDD: $tempMenu["name"] = $levelNameArray[$k - 1]; goto Q4ppA; Ex6fO: $tempMenu = array(); goto PLMDD; WlI_R: } goto nvXI7; U3WHB: $level = isset($level) ? $level : 3; goto pUYK1; GT92K: OPU0W: goto B8scY; MRp2f: kiPFP: goto pZYSD; tXHob: if (!($i < $level)) { goto EVA1a; } goto aFfhs; jNXqH: return $this->result(0, "加载团队成功", $data); goto XHF8U; OYvaG: $data["team"] = $team; goto jNXqH; pUYK1: $team = getMyTeam($_W["openid"], $level); goto iPdGL; V5OZI: UHSKx: goto f6R5P; pZYSD: $i = 0; goto zILWR; Pya0M: $tempMenu["total"] = 0; goto wlWzq; WOyug: return $this->result(1, "参数错误"); goto V5OZI; wlWzq: $menu[] = $tempMenu; goto KrH7E; KrH7E: Wxy4B: goto h8tmU; QrsDK: global $_W; goto X0KcP; KCdS7: $level = $this->module["config"]["distribution_level"]; goto U3WHB; zILWR: NkyDZ: goto tXHob; X0KcP: if (!empty($_W["openid"])) { goto UHSKx; } goto WOyug; P40wJ: if (empty($levelName)) { goto ePOpo; } goto mZiIU; XY1F8: ePOpo: goto Mp8ea; ABgjp: EVA1a: goto A2mKo; L2GbU: $levelNameArray = array("直属会员", "二级会员", "三级会员"); goto P40wJ; Mp8ea: $menu = array(); goto VOYw2; h8tmU: $i++; goto uGC9K; Zk3U2: $data["menu"] = $menu; goto OYvaG; HHcvZ: goto s8ntc; goto MRp2f; h14Vu: autoload()->func("distribution"); goto QrsDK; mZiIU: $levelNameArray = explode(",", $levelName); goto XY1F8; VOYw2: if (empty($team)) { goto kiPFP; } goto nlcn8; f6R5P: $data = array(); goto KCdS7; kEmqO: $tempMenu["name"] = $levelNameArray[$i]; goto Pya0M; uGC9K: goto NkyDZ; goto ABgjp; VahnK: $team = array(); goto GT92K; B8scY: $levelName = $this->module["config"]["distribution_levelName"]; goto L2GbU; XHF8U: } public function doPageDistributionChart() { goto cp4lO; AGu4w: foreach ($ds as $k => &$v) { goto vQrcj; D20MU: if ($memberInfo) { goto b04Cl; } goto UZST_; rxVAB: K0eVO: goto FFq3C; kfBF3: b04Cl: goto uWo0L; GiRAG: goto vH3Sd; goto kfBF3; ktNXG: $index++; goto rxVAB; UZST_: unset($ds[$k]); goto GiRAG; L2hD0: vH3Sd: goto ktNXG; uWo0L: $v["index"] = $index; goto nZG2w; vQrcj: $memberInfo = $M->getOneByOpenid($v["u_openid"]); goto D20MU; nZG2w: $v["memberInfo"] = $memberInfo; goto L2hD0; FFq3C: } goto EAvbO; LHTCv: $index = 1; goto AGu4w; JFeQ_: $M = new Member(); goto Mt22k; EAvbO: F8GaX: goto SFQCQ; dR0Yo: if ($ds) { goto CAewS; } goto s7Kir; Xl4ky: $total = 0; goto H90zT; cp4lO: global $_W, $_GPC; goto QQxRB; fatXb: $pageSize = 100; goto Xl4ky; ym4NI: $ds = $DR->getAllByPage($filters, $page, $pageSize, $total, "rf_totalmoney DESC"); goto dR0Yo; s7Kir: return $this->result(1, "数据不存在"); goto XVpo_; Mt22k: $page = intval($_GPC["page"]); goto xg4SK; xg4SK: $page = max($page, 1); goto fatXb; L8wDa: return $this->result(0, "加载排行成功", $ds); goto ROPwv; QQxRB: $DR = new DistributionReferee(); goto JFeQ_; H90zT: $filters = array(); goto ym4NI; SFQCQ: unset($v); goto L8wDa; XVpo_: CAewS: goto LHTCv; ROPwv: } public function doPageRefund() { goto R81WI; J53fF: $sms_mobile = $this->module["config"]["sms_mobile"]; goto j2Xoq; FdZsc: $config = $this->module["config"]; goto HB0m3; j2Xoq: if (!($enable_sms && $sms_mobile)) { goto U5ASJ; } goto UzAXu; bSWHV: $enable_email = $this->module["config"]["enable_email"]; goto OOftm; xQ33n: vd_53: goto nF1LF; iRY2B: if (!empty($_W["openid"])) { goto vd_53; } goto MOLlX; bFbzj: $memberInfo = $M->getOneByFields($filters); goto l2jt6; HB0m3: $response = email_send($smtp_admin_email, $subject, $body, $config); goto imsEF; fJRcl: $subject = "退款审核提醒"; goto Lkd2v; re7y3: $appSecret = $this->module["config"]["sms_appSecret"]; goto BMEQF; XKeGP: $appKey = $this->module["config"]["sms_appKey"]; goto re7y3; FFKHg: $username = $memberInfo["u_nickname"]; goto G0BlI; nnGmM: $M = new Member(); goto bFbzj; sLNoA: if (!is_error($applyResult)) { goto gEzTI; } goto SqgkL; c1zDX: $filters["u_openid"] = $_W["openid"]; goto nnGmM; UzAXu: $filters = array(); goto c1zDX; R81WI: autoload()->func("refund"); goto H4bi0; nF1LF: $code = $_GPC["code"]; goto G_O5c; GEau_: gEzTI: goto bXEjZ; G_O5c: $applyResult = refundApply($code, $_W["openid"]); goto sLNoA; l2jt6: require_once MODULE_ROOT . "/lib/aliyun_sms/aliyunsms.php"; goto XmDRQ; LlRHl: $smtp_admin_email = $this->module["config"]["smtp_admin_email"]; goto fJRcl; OOftm: if (!$enable_email) { goto XaXb3; } goto lJAr6; oe5Pw: SmsDemo::sendRefundSms($sms_mobile, $template_id, $username, $signText); goto QVi0s; G0BlI: $signText = $this->module["config"]["sms_signName"]; goto XKeGP; imsEF: XaXb3: goto PgG2m; SqgkL: return $this->result(1, $applyResult["message"]); goto GEau_; bXEjZ: $enable_sms = $this->module["config"]["enable_sms"]; goto J53fF; PgG2m: return $this->result(0, "退款提交成功"); goto CR0yZ; MOLlX: return $this->result(1, "参数错误"); goto xQ33n; QVi0s: U5ASJ: goto bSWHV; Lkd2v: $body = $_W["account"]["name"] . "有用户申请退款,退款订单号:" . $code . "请尽快审核"; goto FdZsc; lJAr6: autoload()->func("email"); goto LlRHl; H4bi0: global $_W, $_GPC; goto iRY2B; XmDRQ: $template_id = $this->module["config"]["sms_refund_templateId"]; goto FFKHg; BMEQF: SmsDemo::setAppConfig($appKey, $appSecret); goto oe5Pw; CR0yZ: } public function doPageGetBgImg() { goto ozvri; WJJP4: return $this->result(1, $qrResult["message"]); goto Dh7fO; qVS2v: if (!($_GPC["type"] == "1")) { goto YH9nc; } goto jsvns; Ibgw1: $filters["sm_key"] = $key; goto ayAEI; q76DS: $qrResult = getSingleQr($qrConfig, $qrTarget, $bgUrl, $bgTarget, $location); goto Q2ytf; cuvjB: $qrTarget = ATTACHMENT_ROOT . "hawk_multishop/qrcode/" . $key . ".png"; goto iUdwp; vOvu7: $insert["sm_code"] = $code; goto lxF_7; syuSJ: if (!empty($cacheTime)) { goto VaqlE; } goto CWl5w; Qt1OI: fdmnj: goto q76DS; f0HEs: $qrConfig = array("scene" => $key, "page" => "hawk_multishop/pages/detail/detail", "width" => 300, "line_color" => array("r" => 0, "g" => 139, "b" => 69), "is_hyaline" => true); goto he1b_; dbkEI: if (!(empty($code) || empty($_W["openid"]))) { goto YbkwX; } goto YKuam; WfeOE: $location = explode(",", $productInfo["fs_share_qrlocation"]); goto Qt1OI; xTk3n: return $this->result(0, "加载二维码成功", $qrUrl); goto EleyN; ZNkec: $productInfo = $AF->getOneByFields($filters); goto aSf92; SD6Ux: cache_write("bgImgTime", $cacheTime); goto j2w5l; Q2ytf: if (!is_error($qrResult)) { goto BM_US; } goto WJJP4; S3LQe: $filters = array(); goto JGT6v; yaNlL: if ($productInfo) { goto u7InM; } goto DuK_x; CWl5w: $cacheTime = time(); goto Ht9Xh; FRL3X: zECtU: goto f0HEs; a5XI3: $filters = array(); goto Ibgw1; UsyyH: goto qrH0o; goto PyAqV; ae9SN: global $_W, $_GPC; goto Caija; Ht9Xh: cache_write("bgImgTime", $cacheTime); goto z1G8l; e5o6R: u7InM: goto DNlBY; PyAqV: Wa8rz: goto ZQnvv; J1y6q: $qrConfig = array("scene" => $key, "page" => "hawk_multishop/pages/detail_flashsale/detail_flashsale", "width" => 300, "line_color" => array("r" => 0, "g" => 139, "b" => 69), "is_hyaline" => true); goto ligXV; k9Xmp: if ($hasMap) { goto zECtU; } goto t8xi9; e3UoH: qrH0o: goto xTk3n; DNlBY: $SM = new SceneMap(); goto FSoBP; RB_kN: $bgTarget = ATTACHMENT_ROOT . "hawk_multishop/target/" . $key . ".png"; goto LBAj1; t8xi9: $insert = array(); goto NSh6e; rMBrT: $filters["pro_code"] = $code; goto JEAVu; soHDr: if (!is_file($bgTarget)) { goto Wa8rz; } goto HRjr0; KB8NV: $P = new Product(); goto FfV3n; CSxNn: $cacheTime = time(); goto SD6Ux; jsvns: $bgUrl = tomedia($productInfo["fs_share_bgimg"]); goto qfhkk; lh0GR: if (!($_GPC["type"] == "1")) { goto HEu5g; } goto fm0Xp; GfMRZ: if (!($_GPC["type"] == "1")) { goto fdmnj; } goto WfeOE; aSf92: HEu5g: goto yaNlL; ZQnvv: $location = explode(",", $productInfo["pro_share_qrlocation"]); goto GfMRZ; ayAEI: $hasMap = $SM->getOneByFields($filters); goto k9Xmp; DuK_x: return $this->result(1, "产品信息错误"); goto e5o6R; ozvri: autoload()->func("qr"); goto hF9wM; Eotzy: autoload()->classes("imgUtil"); goto ae9SN; qfhkk: YH9nc: goto RB_kN; ligXV: FdLWc: goto cuvjB; hmfjW: YbkwX: goto KB8NV; JGT6v: $filters["fs_code"] = $code; goto ZNkec; Caija: $code = $_GPC["code"]; goto dbkEI; y5O0m: autoload()->classes("img"); goto Eotzy; LBAj1: $cacheTime = cache_read("bgImgTime"); goto syuSJ; GcWrY: $SM->create($insert); goto FRL3X; JEAVu: $productInfo = $P->getOneByFields($filters); goto lh0GR; iUdwp: $bgUrl = tomedia($productInfo["pro_share_bgimg"]); goto qVS2v; z1G8l: VaqlE: goto soHDr; lxF_7: $insert["sm_key"] = $key; goto GcWrY; NSh6e: $insert["u_openid"] = $_W["openid"]; goto vOvu7; gOa4O: $qrUrl = tomedia(str_replace(ATTACHMENT_ROOT, '', $qrResult)) . "?time=" . $cacheTime; goto UsyyH; fm0Xp: $AF = new ActivityFlashSale(); goto S3LQe; Dh7fO: BM_US: goto CSxNn; HRjr0: $qrResult = $bgTarget; goto gOa4O; j2w5l: $qrUrl = tomedia(str_replace(ATTACHMENT_ROOT, '', $qrResult)) . "?time=" . $cacheTime; goto e3UoH; FSoBP: $key = md5($_W["openid"] . $code); goto a5XI3; FfV3n: $filters = array(); goto rMBrT; he1b_: if (!($_GPC["type"] == "1")) { goto FdLWc; } goto J1y6q; hF9wM: autoload()->func("wxapi"); goto y5O0m; YKuam: return $this->result(1, "参数错误"); goto hmfjW; EleyN: } public function doPageOptionInfo() { goto Elgoh; LqtvF: $specs = $_GPC["specs"]; goto B182n; LGddE: $filters["specs"] = $specs; goto fYuTA; Elgoh: global $_W, $_GPC; goto LqtvF; pnAFw: $filters = array(); goto LGddE; Pl1Vt: v__s_: goto iIjz9; hAxxc: return $this->result(0, "加载规格成功", $optionInfo); goto t9sOv; LaYtU: return $this->result(1, "未找到规格信息", $specs); goto KL099; iIjz9: $OP = new Option(); goto pnAFw; fYuTA: $optionInfo = $OP->getOneByFields($filters); goto CbHyU; ASGY2: return $this->result(1, "规格参数错误"); goto Pl1Vt; KL099: dMU1o: goto hAxxc; B182n: if (!empty($specs)) { goto v__s_; } goto ASGY2; CbHyU: if ($optionInfo) { goto dMU1o; } goto LaYtU; t9sOv: } public function doPageNotice() { goto LnyBp; nBJ83: ctOz5: goto sBDp4; a131X: $total = 0; goto QtBXO; wfehv: $pageSize = 30; goto a131X; xTI6Y: autoload()->func("time"); goto MZY9r; zoAPQ: return $this->result(1, "订单为空"); goto nBJ83; k23yx: ZzDTw: goto C2NAF; aVb0Y: $pageIndex = 1; goto wfehv; QtBXO: $O = new Order(); goto tn3Hv; oT735: $M = new Member(); goto J6Frf; MZY9r: $code = $_GPC["code"]; goto aVb0Y; LnyBp: global $_W, $_GPC; goto xTI6Y; J6Frf: $G = new OrderGood(); goto NoMLS; C2NAF: return $this->result(0, "通知加载成功", $notice); goto Bapbs; H1w0i: $ds = $O->getAllByPage($filters, $pageIndex, $pageSize, $total, "od_createtime DESC"); goto zGOnI; sBDp4: $notice = array(); goto oT735; zGOnI: if ($ds) { goto ctOz5; } goto zoAPQ; tn3Hv: $filters = array(); goto H1w0i; NoMLS: foreach ($ds as $v) { goto Losmr; NNOic: lxgS9: goto La7ui; NqhVp: $memberInfo = $M->getOneByOpenid($v["u_openid"]); goto KdM89; La7ui: $timeStr = human_time($orderTime); goto J3r23; AEQnU: vhKTv: goto w5cSi; Hzjmu: $noticeItem = array("avatar" => $memberInfo["u_avatar"], "message" => $message); goto a1M9r; Losmr: $message = "正在抢购"; goto PRmoz; KdM89: if (!$memberInfo) { goto VYqn1; } goto lQbDZ; i_v2Z: $message = $timeStr . $message; goto mfFNM; lQbDZ: $message = $memberInfo["u_nickname"] . $message; goto Hzjmu; J9tR_: $goods = $G->getAll($filters); goto ebsg8; D3eh_: $filters["od_code"] = $v["od_code"]; goto J9tR_; w5cSi: if (!($v["od_status"] == 1)) { goto KKFU1; } goto Nda0W; mfFNM: Uedhc: goto NqhVp; Nda0W: $message = "抢购成功"; goto jE55j; uDt1d: goto iY08A; goto NNOic; J3r23: iY08A: goto WFD1G; oRqgS: TozAr: goto bBg1l; QZO2h: $timeStr = ''; goto uDt1d; IykEs: if (time() - $orderTime < 3600) { goto lxgS9; } goto QZO2h; gxt2Q: if (!$timeStr) { goto Uedhc; } goto i_v2Z; ebsg8: foreach ($goods as $good) { goto Z3fCX; ZdP1I: CIdvH: goto upY0G; Z3fCX: if (!($good["pro_code"] == $code)) { goto xrJYK; } goto DaDFj; DaDFj: $message = "已抢购此商品"; goto A0TE8; A0TE8: xrJYK: goto ZdP1I; upY0G: } goto AEQnU; WFD1G: $filters = array(); goto D3eh_; a1M9r: $notice[] = $noticeItem; goto dQ5sD; jE55j: KKFU1: goto gxt2Q; PRmoz: $orderTime = strtotime($v["od_createtime"]); goto IykEs; dQ5sD: VYqn1: goto oRqgS; bBg1l: } goto k23yx; Bapbs: } public function doPageFlashSale() { goto Gt0pt; pQfZe: foreach ($ds as $k => &$v) { goto OWz54; lCr9R: I8ooi: goto NHdi0; OWz54: $v["pro_flash_thumb"] = tomedia($v["pro_flash_thumb"]); goto NeB_l; NeB_l: $v["remainTime"] = strtotime($v["pro_flash_endtime"]) - time(); goto lCr9R; NHdi0: } goto xtPZG; OBn79: $filters["groupfilters"] = array("type" => " AND ", "filters" => array("pro_flash_begintime" => array("value" => $currentTime, "glue" => "<"), "pro_flash_endtime" => array("value" => $currentTime, "glue" => ">"))); goto aWHfI; bVTEo: $page = intval($_GPC["page"]); goto dtAH0; Gt0pt: global $_GPC, $_W; goto lypvC; q20VW: $filters["pro_flash_online"] = 1; goto YK0iV; hPqw8: if ($ds) { goto UXz73; } goto qw0af; xtPZG: MPhBN: goto IWugM; IWugM: return $this->result(0, "加载抢购信息成功", $ds); goto m_Yax; qw0af: return $this->result(1, "加载限时抢购数据错误"); goto Fkv58; rcs7e: $pageSize = 100; goto ShZmM; tkT6S: $filters["pro_status"] = 0; goto q20VW; ShZmM: $total = 0; goto nDGpa; nDGpa: $filters = array(); goto tkT6S; dtAH0: $page = max($page, 1); goto rcs7e; aWHfI: $ds = $P->getAllByPage($filters, $page, $pageSize, $total, "pro_weight DESC,pro_id DESC"); goto hPqw8; YK0iV: $currentTime = date("Y-m-d H:i:s", time()); goto OBn79; Fkv58: UXz73: goto pQfZe; lypvC: $P = new Product(); goto bVTEo; m_Yax: } public function doPageSendVerifyCode() { goto f4KMk; Rsjlo: if ($smsResult["Code"] != "OK") { goto EeeTO; } goto DYkee; iM0o3: return $this->result(1, $smsResult["Message"]); goto cxY5f; gMqL3: $template_id = $this->module["config"]["sms_verify_templateId"]; goto rTonG; sPeRc: aH2fA: goto yghnS; WM3RQ: SmsDemo::setAppConfig($appKey, $appSecret); goto yRNjm; o016M: $sms_intervalTime = $this->module["config"]["sms_intervalTime"]; goto thilB; yghnS: $mobile = $_GPC["mobile"]; goto olOjM; rTonG: $signText = $this->module["config"]["sms_signName"]; goto bvHY1; N5JOm: $_SESSION["time"] = time(); goto Y2mBr; yRNjm: $response = SmsDemo::sendSms($mobile, $template_id, $verifyCode, $signText); goto E4BxG; wiZgz: require_once MODULE_ROOT . "/lib/aliyun_sms/aliyunsms.php"; goto RfH2B; TDYsy: e4S2a: goto EY0Ak; RfH2B: require_once MODULE_ROOT . "/func/array.func.php"; goto N2Jj8; Y2mBr: goto Qo8q7; goto GdIIm; JshiW: return $this->result(1, "短信发送频繁,请稍后重试"); goto X3zZC; cxY5f: Qo8q7: goto JJZK9; SXcZi: return $this->result(1, "用户信息错误"); goto geZW_; olOjM: if (preg_match("/^1[3456789]\d{9}$/", $mobile)) { goto e4S2a; } goto F2ZYL; bvHY1: $appKey = $this->module["config"]["sms_appKey"]; goto maGXx; o2hBt: if (!(time() - $_SESSION["time"] < $sms_intervalTime)) { goto npJek; } goto JshiW; X3zZC: npJek: goto sPeRc; JJZK9: return $this->result(0, "验证码发送成功", array("verifycode" => $verifyCode)); goto w7UG6; GdIIm: EeeTO: goto iM0o3; EY0Ak: if (!empty($_W["openid"])) { goto i0ibA; } goto SXcZi; geZW_: i0ibA: goto wiZgz; thilB: if (!(isset($_SESSION["time"]) && !empty($sms_intervalTime))) { goto aH2fA; } goto o2hBt; F2ZYL: return $this->result(1, "手机号错误"); goto TDYsy; DYkee: $key = md5("verifycode" . $_W["uniacid"] . $_W["openid"]); goto h2lLJ; f4KMk: global $_W, $_GPC; goto o016M; maGXx: $appSecret = $this->module["config"]["sms_appSecret"]; goto WM3RQ; N2Jj8: $verifyCode = random(6, true); goto gMqL3; h2lLJ: $_SESSION[$key] = $verifyCode; goto N5JOm; E4BxG: $smsResult = object_to_array($response); goto Rsjlo; w7UG6: } public function doPageShopApply() { goto j4tHZ; MCpgA: return $this->result(1, "商户申请失败"); goto z17uq; QTBe8: return $this->result(1, "你已申请过了,不能重复申请"); goto Y9yfE; nLtnv: $input = array(); goto o1uNy; a5JZg: $input["shop_thumb"] = $_GPC["shop_thumb"]; goto berdJ; iDajs: if (!(empty($_GPC["identity"]) || !preg_match("/^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/", $_GPC["identity"]))) { goto F_5YQ; } goto SLmdu; gxiMD: if ($addShopResult) { goto go5md; } goto MCpgA; JJrQS: $input["shop_mobile"] = $_GPC["mobile"]; goto vx6TZ; vx6TZ: $input["u_openid"] = $_W["openid"]; goto EfvJv; berdJ: $input["shop_license"] = $_GPC["shop_license"]; goto nJtT8; uu_ca: $S = new Shop(); goto McT_o; Y9yfE: ypJU2: goto nLtnv; iVblp: autoload()->func("template"); goto PoJt_; BATks: if (!$hasShop) { goto ypJU2; } goto QTBe8; ddQGq: return $this->result(0, "商户申请成功"); goto iihHr; AjkuK: F_5YQ: goto aL5hK; R_SPs: $key = md5("verifycode" . $_W["uniacid"] . $_W["openid"]); goto ANe54; ByzzH: dfbkf: goto uu_ca; ekRxl: return $this->result(1, "用户信息错误"); goto e9sVn; Ug8w3: if (empty($formId)) { goto dfbkf; } goto JZl4H; z17uq: go5md: goto ddQGq; xXzuC: $filters["u_openid"] = $_W["openid"]; goto T9pIW; PoJt_: $formId = $_GPC["formId"]; goto Ug8w3; McT_o: $filters = array(); goto xXzuC; T9pIW: $hasShop = $S->getOneByFields($filters); goto BATks; A1pKz: $globalConfig = $this->module["config"]; goto R_SPs; EfgJU: I_kr9: goto A1pKz; Y0YlX: return $this->result(1, "验证码错误"); goto RvAlm; o1uNy: $input["shop_name"] = $_GPC["shopname"]; goto vOhem; EfvJv: $addShopResult = $S->create($input); goto gxiMD; vOhem: $input["shop_realname"] = $_GPC["realname"]; goto a5JZg; SLmdu: return $this->result(1, "身份证错误"); goto AjkuK; ANe54: if (!($globalConfig["enable_sms"] == "1" && (empty($_GPC["verifycode"]) || $_GPC["verifycode"] != $_SESSION[$key]))) { goto puTOe; } goto Y0YlX; JZl4H: cache_write_formId($_W["openid"], $formId); goto ByzzH; e9sVn: NL7PC: goto iDajs; QVdCQ: if (!(empty($_GPC["shopname"]) || empty($_GPC["realname"]) || empty($_W["openid"]))) { goto NL7PC; } goto ekRxl; RvAlm: puTOe: goto iVblp; nJtT8: $input["shop_identity"] = $_GPC["identity"]; goto JJrQS; aL5hK: if (!(empty($_GPC["mobile"]) || !preg_match("/^1[3456789]{1}\d{9}$/", $_GPC["mobile"]))) { goto I_kr9; } goto uOCzF; uOCzF: return $this->result(1, "手机号错误"); goto EfgJU; j4tHZ: global $_W, $_GPC; goto QVdCQ; iihHr: } public function doPageShopIndex() { goto XqUue; kt9wy: $Collection = new Collection(); goto TqMUw; ILHk7: $filters["cl_type"] = 2; goto xpD9n; QX7Wh: V1nny: goto PTnYN; XZhF9: $S = new Shop(); goto uQDaQ; TqMUw: $filters = array(); goto X0vRJ; ALmKk: return $this->result(0, "商户数据加载成功", $ds); goto Un5Rd; Zo8nM: $shop_id = $_GPC["shop_id"]; goto jD1vD; PTnYN: $ds["shop_thumb"] = tomedia($ds["shop_thumb"]); goto DvP2V; X0vRJ: $filters["ac_id"] = $ds["shop_id"]; goto ILHk7; UVWx1: if ($ds) { goto V1nny; } goto U4A5T; xpD9n: $filters["u_openid"] = $_W["openid"]; goto hi97e; VkE2q: return $this->result(1, "参数错误"); goto uCYnv; DvP2V: $ds["shop_license"] = tomedia($ds["shop_license"]); goto ReVdy; XqUue: global $_GPC, $_W; goto Zo8nM; hi97e: $hasCollection = $Collection->getOneByFields($filters); goto Ag1Lm; uQDaQ: $ds = $S->getOne($shop_id); goto UVWx1; U4A5T: return $this->result(1, "商户数据错误"); goto QX7Wh; JWr_u: vbgyG: goto ALmKk; uCYnv: SVwKZ: goto XZhF9; D_Oj7: $ds["hasCollected"] = true; goto JWr_u; jD1vD: if (!empty($shop_id)) { goto SVwKZ; } goto VkE2q; ReVdy: $ds["shop_live_qrcode"] = tomedia($ds["shop_live_qrcode"]); goto kt9wy; Ag1Lm: if (!$hasCollection) { goto vbgyG; } goto D_Oj7; Un5Rd: } public function doPageShop() { goto fr22r; pk4DE: if (!$hasCollection) { goto rMte9; } goto MQUkE; VhL9a: gDajP: goto CJSId; fr22r: global $_GPC, $_W; goto yLLJX; yLLJX: $shop_id = $_GPC["shop_id"]; goto Ntan6; z8HbR: $ds["shop_license"] = tomedia($ds["shop_license"]); goto ZOOjL; sBZaw: $hasCollection = $Collection->getOneByFields($filters); goto pk4DE; bLJTH: return $this->result(1, "商户数据错误"); goto VhL9a; CJSId: $ds["shop_thumb"] = tomedia($ds["shop_thumb"]); goto z8HbR; bGE1j: return $this->result(1, "参数错误"); goto MFTzn; VtuhM: rMte9: goto dIIBJ; Ntan6: if (!empty($shop_id)) { goto IiW_4; } goto bGE1j; ZOOjL: $Collection = new Collection(); goto XjpId; MFTzn: IiW_4: goto ubZ2B; dIIBJ: return $this->result(0, "商户数据加载成功", $ds); goto ttLEr; YpsUl: if ($ds) { goto gDajP; } goto bLJTH; XjpId: $filters = array(); goto wP0D8; dfS0e: $ds = $S->getOne($shop_id); goto YpsUl; jwu9N: $filters["cl_type"] = 2; goto sBZaw; wP0D8: $filters["ac_id"] = $ds["shop_id"]; goto jwu9N; ubZ2B: $S = new Shop(); goto dfS0e; MQUkE: $ds["hasCollected"] = true; goto VtuhM; ttLEr: } public function doPageShopInfo() { goto OwnVX; hL0GA: $shop_id = $_GPC["shop_id"]; goto gxzga; gxzga: if (!empty($shop_id)) { goto x_syK; } goto HIyiI; Uy_cK: $S = new Shop(); goto S7t7a; lJ291: ZLfln: goto gL59M; rMRd3: return $this->result(0, "商户数据加载成功", $ds); goto Ix8W9; S7t7a: $ds = $S->getOne($shop_id); goto m53gc; m53gc: if ($ds) { goto ZLfln; } goto d1nuN; d1nuN: return $this->result(1, "商户数据错误"); goto lJ291; gL59M: $ds["shop_thumb"] = tomedia($ds["shop_thumb"]); goto Ou0W0; OwnVX: global $_GPC, $_W; goto hL0GA; FdPCk: x_syK: goto Uy_cK; Ou0W0: $ds["shop_license"] = tomedia($ds["shop_license"]); goto rMRd3; HIyiI: return $this->result(1, "参数错误"); goto FdPCk; Ix8W9: } public function doPageShopEdit() { goto rAmQ1; twUSg: pvPZH: goto hO427; bxoLN: $update["shop_bankname"] = $_GPC["bankname"]; goto rE52x; BezIa: $update["shop_wechat"] = $_GPC["wechat"]; goto bxoLN; nMIMK: if (!(empty($_GPC["verifycode"]) || $_GPC["verifycode"] != $_SESSION[$key])) { goto KoN1e; } goto inNgA; Xi7S0: $update["shop_realname"] = $_GPC["realname"]; goto M8V3m; B2mP7: if (!(empty($_GPC["identity"]) || !preg_match("/^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/", $_GPC["identity"]))) { goto gHLfG; } goto MJsph; qR5W9: gHLfG: goto nrVlI; PfwTh: $update["shop_mobile"] = $_GPC["mobile"]; goto BezIa; LRsX2: if (!empty($_GPC["shop_id"])) { goto pvPZH; } goto zkV45; inNgA: return $this->result(1, "验证码错误"); goto aJO1V; yUuSa: $key = md5("verifycode" . $_W["uniacid"] . $_W["openid"]); goto nMIMK; aZILR: $updateResult = $S->modify($_GPC["shop_id"], $update); goto VzmSz; hO427: if (!(empty($_GPC["shopname"]) || empty($_GPC["realname"]) || empty($_W["openid"]))) { goto glnvg; } goto fc8zg; NfIMn: $update["shop_name"] = $_GPC["shopname"]; goto Xi7S0; MJsph: return $this->result(1, "身份证错误"); goto qR5W9; llRO4: return $this->result(1, "手机号错误"); goto OfG4L; l0Lww: $update["shop_accountname"] = $_GPC["accountname"]; goto r9rEl; IhJ1O: Yb8L0: goto aZILR; yYiBf: Yv0Ob: goto vlE53; d9M8U: $update["shop_thumb"] = $_GPC["shop_thumb"]; goto IhJ1O; qvR9g: return $this->result(1, "更新商户资料失败"); goto yYiBf; OfG4L: N3MHW: goto yUuSa; zkV45: return $this->result(1, "商户参数错误"); goto twUSg; zMxQJ: $update = array(); goto NfIMn; nrVlI: if (!(empty($_GPC["mobile"]) || !preg_match("/^1[34578]{1}\d{9}$/", $_GPC["mobile"]))) { goto N3MHW; } goto llRO4; bvbJ8: glnvg: goto B2mP7; rAmQ1: global $_W, $_GPC; goto LRsX2; Mc8aq: $S = new Shop(); goto zMxQJ; VzmSz: if ($updateResult) { goto Yv0Ob; } goto qvR9g; fc8zg: return $this->result(1, "用户信息错误"); goto bvbJ8; vlE53: return $this->result(0, "更新商户资料成功", $update); goto anRkE; aJO1V: KoN1e: goto Mc8aq; M8V3m: $update["shop_identity"] = $_GPC["identity"]; goto PfwTh; r9rEl: if (empty($_GPC["shop_thumb"])) { goto Yb8L0; } goto d9M8U; rE52x: $update["shop_bankcard"] = $_GPC["bankcard"]; goto l0Lww; anRkE: } public function doPageShopSearch() { goto y1bfr; rCFQD: $filters["groupfilters"] = array("type" => "and", "filters" => array("pro_name" => array("value" => "%" . $key . "%", "glue" => "LIKE"))); goto dfVkP; MI317: return $this->result(1, "参数错误"); goto sA065; sA065: OKSSv: goto IxZcR; iWHSM: $pageSize = 20; goto Lckbv; owX02: return $this->result(0, "搜索商品加载成功", $ds); goto Lyoqb; nvTRd: $filters["pro_status"] = 0; goto o5gHd; sKX16: $page = intval($_GPC["page"]); goto oZy_T; mQ7vg: if ($ds) { goto YSqfX; } goto yZqYy; y1bfr: global $_GPC, $_W; goto s3Ksg; E6Kvg: if (!(empty($shop_id) || empty($key))) { goto OKSSv; } goto MI317; dfVkP: $ds = $P->getAllByPage($filters, $page, $pageSize, $total, "pro_weight DESC"); goto mQ7vg; yZqYy: return $this->result(1, "未找到商品"); goto SACfl; NoxaA: gOWXG: goto RJICK; IxZcR: $P = new Product(); goto sKX16; qSA2z: foreach ($ds as &$v) { $v["pro_thumb"] = tomedia($v["pro_thumb"]); xughe: } goto NoxaA; o5gHd: $filters["shop_id"] = $shop_id; goto rCFQD; SACfl: YSqfX: goto qSA2z; QDr_n: $filters = array(); goto nvTRd; jAtEF: $key = $_GPC["key"]; goto E6Kvg; oZy_T: $page = max($page, 1); goto iWHSM; s3Ksg: $shop_id = $_GPC["shop_id"]; goto jAtEF; Lckbv: $total = 0; goto QDr_n; RJICK: unset($v); goto owX02; Lyoqb: } public function doPageShopCenter() { goto MdPFR; HLtDt: return $this->result(1, "商户信息错误"); goto DfXfV; yMKt2: if (!empty($_W["openid"])) { goto oOi9D; } goto aqSno; aqSno: return $this->result(1, "会员信息错误"); goto iFQht; aGKHK: $filters["scan_createtime"] = array("start" => $beginToday, "end" => $endToday); goto R78BK; BgBta: $Shop = new Shop(); goto mEhbe; rW8II: $shopInfo["todayCount"] = $todayCount; goto q7wXy; iFQht: oOi9D: goto BgBta; i4GMh: $M = new Member(); goto DOxyN; O16q0: $total = 0; goto IfL8G; eRfNk: $pageSize = 50; goto O16q0; DOxyN: $memberInfo = $M->getOneByOpenid($_W["openid"]); goto S_3zh; WwPfY: $filters["shop_id"] = $shopInfo["shop_id"]; goto MOwjJ; VEdVZ: $endToday = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")) - 1); goto GuG2z; ZQtLt: $endThisMonth = date("Y-m-d H:i:s", mktime(23, 59, 59, date("m"), date("t"), date("Y"))); goto rYo93; PtOAN: $shopInfo["memberInfo"] = $memberInfo; goto nfloc; uGrMO: $filters["shop_id"] = $shopInfo["shop_id"]; goto aGKHK; DNTyN: if (!$scanList) { goto gx1rL; } goto vVT1Y; PpYVG: $shopInfo["shop_thumb"] = tomedia($shopInfo["shop_thumb"]); goto i4GMh; mULKv: $filters["u_openid"] = $_W["openid"]; goto FHrva; MOwjJ: $scanList = $Scan->getAllByPage($filters, $page, $pageSize, $total, "scan_createtime DESC"); goto DNTyN; RUHj9: $beginToday = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); goto VEdVZ; MK6fs: $shopInfo["monthCount"] = $monthCount; goto rW8II; g6LE2: if ($shopInfo) { goto vLljL; } goto HLtDt; FHrva: $shopInfo = $Shop->getOneByFields($filters); goto g6LE2; vVT1Y: foreach ($scanList as &$v) { $v["scan_createtime"] = date("m/d H:i", strtotime($v["scan_createtime"])); oesDp: } goto C3sDi; iDtyG: $todayCount = $todayCount ?: 0; goto MK6fs; IdFLZ: $Scan = new Scan(); goto Xir4M; Cvg12: $monthCount = $monthCount ?: 0; goto RUHj9; ba3Rb: $filters["shop_id"] = $shopInfo["shop_id"]; goto q_oNG; h2RzC: $monthCount = $Scan->getAllCount($filters); goto Cvg12; mEhbe: $filters = array(); goto mULKv; E0ilk: unset($v); goto mYMS8; q7wXy: return $this->result(0, "加载商户成功", $shopInfo); goto LpZel; IfL8G: $filters = array(); goto WwPfY; S_3zh: if (!$memberInfo) { goto s6oqn; } goto PtOAN; vLzOq: $beginThisMonth = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), 1, date("Y"))); goto ZQtLt; q_oNG: $filters["scan_createtime"] = array("start" => $beginThisMonth, "end" => $endThisMonth); goto h2RzC; nfloc: s6oqn: goto IdFLZ; MdPFR: global $_W, $_GPC; goto yMKt2; Oo3LQ: $page = max($page, 1); goto eRfNk; C3sDi: GXp7C: goto E0ilk; R78BK: $todayCount = $Scan->getAllCount($filters); goto iDtyG; CRNL8: gx1rL: goto vLzOq; DfXfV: vLljL: goto PpYVG; mYMS8: $shopInfo["scanList"] = $scanList; goto CRNL8; Xir4M: $page = intval($_GPC["page"]); goto Oo3LQ; rYo93: $filters = array(); goto ba3Rb; GuG2z: $filters = array(); goto uGrMO; LpZel: } public function doPageSearchTicket() { goto mAdVk; fB0Dk: foreach ($scanList as &$v) { $v["scan_createtime"] = date("m/d H:i", strtotime($v["scan_createtime"])); ztmy1: } goto wTYQb; lU579: $total = 0; goto a1D8H; mAdVk: global $_W, $_GPC; goto PKKY1; JDkaf: $page = max($page, 1); goto zpXTh; Ox_by: return error(1, "参数错误"); goto pzM__; DD94n: unset($v); goto zwSht; wTYQb: YuGfb: goto DD94n; Rb6AS: $scanList = $Scan->getAllByPage($filters, $page, $pageSize, $total, "scan_createtime DESC"); goto OriFM; aQjYr: $shop_id = $_GPC["shop_id"]; goto gKZ9J; V01WB: JVDNK: goto zN4Wi; vlqNh: $page = intval($_GPC["page"]); goto JDkaf; zpXTh: $pageSize = 50; goto lU579; zN4Wi: return $this->result(1, "查找票据失败"); goto QirHD; pzM__: WGz4s: goto sZOv1; OriFM: if (!$scanList) { goto JVDNK; } goto fB0Dk; PvIOD: $filters["groupfilters"] = array("type" => "and", "filters" => array("tk_code" => array("value" => "%" . $key . "%", "glue" => "LIKE"))); goto Rb6AS; sZOv1: $Scan = new Scan(); goto vlqNh; PKKY1: $key = $_GPC["key"]; goto aQjYr; gKZ9J: if (!(empty($key) || empty($shop_id))) { goto WGz4s; } goto Ox_by; zwSht: return $this->result(0, "查找票据成功", $scanList); goto V01WB; lawaC: $filters["shop_id"] = $shop_id; goto PvIOD; a1D8H: $filters = array(); goto lawaC; QirHD: } public function doPageOperatorList() { goto WORC1; q9uxN: return $this->result(0, "加载操作员成功", $ds); goto ivh3y; UezK3: $M = new Member(); goto atfIN; ZtwI2: $ds = $M->getAll($filters); goto HWL0D; lDLXV: $filters["shop_id"] = $_GPC["shop_id"]; goto ZtwI2; PrIPm: return $this->result(1, "加载操作员错误"); goto kRRFb; VI_1S: if (!empty($_GPC["shop_id"])) { goto Cd4vL; } goto nPBhf; kRRFb: Ql6fO: goto q9uxN; HWL0D: if ($ds) { goto Ql6fO; } goto PrIPm; nPBhf: return $this->result(1, "参数错误"); goto VvEMv; VvEMv: Cd4vL: goto UezK3; atfIN: $filters = array(); goto lDLXV; WORC1: global $_GPC; goto VI_1S; ivh3y: } public function doPageSearchMember() { goto Xe2jn; gKWOJ: $MemberService = new MemberService(); goto um9CR; Xe2jn: global $_GPC; goto jV9zd; tZJoN: if (!is_error($searchResult)) { goto kgHn7; } goto KBm1T; m_5gl: return $this->result(1, "参数错误"); goto XD2eL; jV9zd: if (!empty($_GPC["key"])) { goto hKQN0; } goto m_5gl; U6djC: kgHn7: goto VtmBb; um9CR: $searchResult = $MemberService->getOneMemberByName($_GPC["key"]); goto tZJoN; XD2eL: hKQN0: goto gKWOJ; KBm1T: return $this->result(1, "未找到会员"); goto U6djC; VtmBb: return $this->result(0, "搜索会员成功", $searchResult); goto PgehI; PgehI: } public function doPageAuthOperator() { goto tvcS1; icfPT: if (!(empty($_GPC["shop_id"]) || empty($_GPC["member_id"]))) { goto DyYWG; } goto n2Djy; aW7TY: $update = array(); goto XFnRD; LEgR1: $authResult = $M->modify($_GPC["member_id"], $update); goto CZIT7; CZIT7: if ($authResult) { goto UhMIA; } goto fUGXk; fUGXk: return $this->result(1, "授权操作失败"); goto dncFU; XFnRD: $update["shop_id"] = $_GPC["shop_id"]; goto hLyi0; dKQSb: $M = new Member(); goto aW7TY; SEB7o: DyYWG: goto dKQSb; dncFU: UhMIA: goto wpOXV; hLyi0: $update["u_is_admin"] = 1; goto LEgR1; wpOXV: return $this->result(0, "授权操作成功"); goto Q_uGr; n2Djy: return $this->result(1, "参数错误"); goto SEB7o; tvcS1: global $_GPC; goto icfPT; Q_uGr: } public function doPageCancelOperator() { goto SIE6w; KpqYu: $update["shop_id"] = ''; goto nfosa; XmSP2: if ($authResult) { goto TN_P5; } goto yK4nY; hgjOq: return $this->result(0, "取消授权操作成功"); goto Pmf3Q; TbAHJ: if (!empty($_GPC["member_id"])) { goto wX2PG; } goto eWRRJ; eWRRJ: return $this->result(1, "参数错误"); goto t3BrE; SIE6w: global $_GPC; goto TbAHJ; NH_en: $authResult = $M->modify($_GPC["member_id"], $update); goto XmSP2; Vwqo2: TN_P5: goto hgjOq; nfosa: $update["u_is_admin"] = 0; goto NH_en; yK4nY: return $this->result(1, "取消授权操作失败"); goto Vwqo2; fw2WO: $update = array(); goto KpqYu; t3BrE: wX2PG: goto uKs_P; uKs_P: $M = new Member(); goto fw2WO; Pmf3Q: } public function doPageTouristAdd() { goto ToqME; MlDqv: XwQM9: goto YzdWg; nX3qw: return $this->result(1, "参数错误"); goto asX_f; VKa3s: if ($insertResult) { goto BgSBX; } goto Iu7dj; Y8OQA: X3tEL: goto eomCd; Ab5Jg: $insertResult = $T->create($insert); goto VKa3s; dW8N5: if (!(empty($name) || empty($type) || empty($card) || empty($mobile) || empty($_W["openid"]))) { goto tx5mQ; } goto nX3qw; ULqff: $T = new Tourist(); goto xCuHV; N4ew2: $type = $_GPC["type"]; goto ODxot; Iu7dj: return $this->result(1, "数据添加错误"); goto L613Z; xCuHV: $name = $_GPC["name"]; goto N4ew2; aLH8E: return $this->result(1, "手机号错误"); goto MlDqv; cwzJx: $insert["tourist_name"] = $name; goto n4eia; DohTg: $insert["u_openid"] = $_W["openid"]; goto cwzJx; L613Z: BgSBX: goto FFmnF; NFwTI: if (!($type == "身份证")) { goto X3tEL; } goto C5Kgk; ToqME: global $_W, $_GPC; goto ULqff; e0S9k: $insert["tourist_mobile"] = $mobile; goto Ab5Jg; QAdeh: return $this->result(1, "身份证号错误"); goto D1jPi; asX_f: tx5mQ: goto NFwTI; FFmnF: return $this->result(0, "添加游客成功"); goto K7ebE; D1jPi: vKNP_: goto Y8OQA; Atk0y: $insert["tourist_card"] = $card; goto e0S9k; SO7ub: if (IdentityCard::isValid($card)) { goto vKNP_; } goto QAdeh; WVZS5: $mobile = $_GPC["mobile"]; goto dW8N5; ODxot: $card = $_GPC["card"]; goto WVZS5; C5Kgk: autoload()->util("IdentityCard"); goto SO7ub; eomCd: if (preg_match("/^1[3456789]\d{9}$/", $mobile)) { goto XwQM9; } goto aLH8E; YzdWg: $insert = array(); goto DohTg; n4eia: $insert["tourist_type"] = $type; goto Atk0y; K7ebE: } public function doPageTouristEdit() { goto ZPVyV; sklNH: $card = $_GPC["card"]; goto Hkbyw; Nx0Gu: $update["tourist_name"] = $name; goto xBX85; m932J: $name = $_GPC["name"]; goto uuMLL; IF7TY: return $this->result(1, "手机号错误"); goto TpV5h; xWGvJ: YqwWl: goto Gah3l; uuMLL: $type = $_GPC["type"]; goto sklNH; czT33: $update["tourist_mobile"] = $mobile; goto aNMlR; eoi0R: return $this->result(1, "数据更新错误"); goto xWGvJ; t7onR: if (!(empty($id) || empty($name) || empty($type) || empty($card) || empty($mobile) || empty($_W["openid"]))) { goto LOvMP; } goto KPqz_; aNMlR: $updateResult = $T->modify($id, $update); goto hEGdC; ZPVyV: global $_W, $_GPC; goto cYeXd; Nz2OD: $update = array(); goto Nx0Gu; MJ0ir: $update["tourist_card"] = $card; goto czT33; xBX85: $update["tourist_type"] = $type; goto MJ0ir; TpV5h: D9FSS: goto Nz2OD; dIls9: LOvMP: goto EV1ta; hEGdC: if ($updateResult) { goto YqwWl; } goto eoi0R; Gah3l: return $this->result(0, "游客更新成功"); goto rJiFj; XLp3g: $id = $_GPC["id"]; goto t7onR; cYeXd: $T = new Tourist(); goto m932J; Hkbyw: $mobile = $_GPC["mobile"]; goto XLp3g; KPqz_: return $this->result(1, "参数错误"); goto dIls9; EV1ta: if (preg_match("/^1[3456789]\d{9}$/", $mobile)) { goto D9FSS; } goto IF7TY; rJiFj: } public function doPageTourist() { goto imGKH; BunFY: $T = new Tourist(); goto jWLLB; k6oe5: Vw9DO: goto LDj5n; AsCXO: return $this->result(0, "加载游客成功", $tourist); goto W1xt1; imGKH: global $_W, $_GPC; goto BunFY; Mg66Z: return $this->result(1, "加载游客信息错误"); goto HW6n9; jWLLB: if (!empty($_W["openid"])) { goto Vw9DO; } goto knKAO; L_UOC: $filters["u_openid"] = $_W["openid"]; goto GT63R; GT63R: $tourist = $T->getAll($filters); goto sBcCz; knKAO: return $this->result(1, "用户信息错误"); goto k6oe5; LDj5n: $filters = array(); goto L_UOC; sBcCz: if ($tourist) { goto mSQ_x; } goto Mg66Z; HW6n9: mSQ_x: goto AsCXO; W1xt1: } public function doPageTouristDelete() { goto SAC1a; WTY6l: return $this->result(1, "参数错误"); goto Q4HYB; abOkr: if (!(empty($_W["openid"]) || empty($id))) { goto RLoSw; } goto WTY6l; WHnil: $id = $_GPC["id"]; goto abOkr; ZSy66: $T = new Tourist(); goto WHnil; OnnmG: return $this->result(0, "删除成功"); goto NSFH9; LxrQ_: return $this->result(1, "删除数据失败"); goto Hy6yG; Hy6yG: mB8Ej: goto OnnmG; laYyi: $deleteResult = $T->delete($id); goto Mb2wj; SAC1a: global $_W, $_GPC; goto ZSy66; Mb2wj: if ($deleteResult) { goto mB8Ej; } goto LxrQ_; Q4HYB: RLoSw: goto laYyi; NSFH9: } public function doPageTouristInfo() { goto RB11J; A9005: if (!empty($id)) { goto iP54k; } goto Ix0AI; RB11J: global $_W, $_GPC; goto F_99G; K56MD: $touristInfo = $T->getOne($id); goto rQ3Qw; GbdW1: return $this->result(0, "加载游客成功", $touristInfo); goto RN7X3; ida9t: iP54k: goto K56MD; E_Z6h: $id = $_GPC["id"]; goto A9005; Ix0AI: return $this->result(1, "参数错误"); goto ida9t; rQ3Qw: if ($touristInfo) { goto nrQ0U; } goto V2795; F_99G: $T = new Tourist(); goto E_Z6h; V2795: return $this->result(1, "加载游客信息错误"); goto vtw8i; vtw8i: nrQ0U: goto GbdW1; RN7X3: } public function doPageShopStatistics() { goto tN6C2; huyFz: $statistics = $ShopService->getStatistics($shopInfo["shop_id"]); goto D8X4O; u0Xk4: bXRBS: goto tFYbY; nyqbh: return $this->result(1, "商户信息错误"); goto RICzT; LuEJq: return $this->result(1, $statistics["message"]); goto u0Xk4; tN6C2: global $_W, $_GPC; goto Lk2az; LOrKx: $shopInfo = $Shop->getOneByFields($filters); goto CD_3I; pMrco: return $this->result(0, "加载商户信息", $shopInfo); goto nXIv3; CD_3I: if ($shopInfo) { goto MI5lE; } goto nyqbh; SGvvs: $filters["u_openid"] = $_W["openid"]; goto LOrKx; VMQX6: $ShopService = new ShopService(); goto huyFz; dkkdn: tiOHC: goto DtVhx; QVfpl: $shopInfo["shop_thumb"] = tomedia($shopInfo["shop_thumb"]); goto VMQX6; tFYbY: $shopInfo["statistics"] = $statistics; goto pMrco; SFEq0: $filters = array(); goto SGvvs; DcMtV: return $this->result(1, "会员信息错误"); goto dkkdn; Lk2az: if (!empty($_W["openid"])) { goto tiOHC; } goto DcMtV; DtVhx: $Shop = new Shop(); goto SFEq0; D8X4O: if (!is_error($statistics)) { goto bXRBS; } goto LuEJq; RICzT: MI5lE: goto QVfpl; nXIv3: } public function doPageShopWithdrawInfo() { goto lsLh0; I38hA: $data["withdrawCycle"] = $withdrawCycle; goto lJA1y; lJA1y: $data["shop_id"] = $shopInfo["shop_id"]; goto e4HCW; xg0Dc: if ($shopInfo) { goto uA6_m; } goto I4HD2; lsLh0: global $_W, $_GPC; goto EdTeX; EdTeX: if (!empty($_W["openid"])) { goto WQEO8; } goto N_q10; N_q10: return $this->result(1, "会员信息错误"); goto uhrMV; L8ktP: $data["applyMoney"] = $shopInfo["shop_applymoney"]; goto bHzUo; uuWaT: $shopInfo = $Shop->getOneByFields($filters); goto xg0Dc; B9hx8: uA6_m: goto fIFwZ; I4HD2: return $this->result(1, "商户信息错误"); goto B9hx8; bHzUo: $data["usedMoney"] = floor(($shopInfo["shop_totalmoney"] - $shopInfo["shop_balance"]) * 100) / 100; goto vm1e8; fIFwZ: $data = array(); goto lNEBx; oLTEy: $withdrawCycle = $withdrawCycle ? $withdrawCycle : 7; goto I38hA; i5kiE: $Shop = new Shop(); goto u2BKE; lNEBx: $data["balance"] = $data["allowMoney"] = $shopInfo["shop_balance"]; goto L8ktP; e4HCW: return $this->result(0, "加载提现信息", $data); goto d39i_; uhrMV: WQEO8: goto i5kiE; vm1e8: $withdrawCycle = $this->module["config"]["withdrawCycle"]; goto oLTEy; u2BKE: $filters = array(); goto OMcvc; OMcvc: $filters["u_openid"] = $_W["openid"]; goto uuWaT; d39i_: } public function doPageMakeShopWithdraw() { goto tYruR; mGQRT: EmHzL: goto Dmqa6; yMRue: if (!(empty($_W["openid"]) || $fee <= 0)) { goto EmHzL; } goto fc3N8; Dmqa6: $Shop = new Shop(); goto AYEMe; y6A3Y: RWF9A: goto vW4tf; Nyy7K: $withdrawResult = $ShopService->makeWithdraw($shopInfo["shop_id"], $fee, $rate); goto ZKTr0; AYEMe: $filters = array(); goto rPK20; tYruR: global $_W, $_GPC; goto D0qwS; ZKTr0: if (!is_error($withdrawResult)) { goto gRipM; } goto xmtyc; D0qwS: $fee = $_GPC["fee"]; goto yMRue; pi8Sn: return $this->result(0, "提现成功"); goto x2e94; rPK20: $filters["u_openid"] = $_W["openid"]; goto OwOtY; nitjA: $rate = $this->module["config"]["shop_withdraw_rate"]; goto Nyy7K; K8IFv: if ($shopInfo) { goto RWF9A; } goto SUExb; fc3N8: return $this->result(1, "参数错误"); goto mGQRT; xmtyc: return $this->result(1, $withdrawResult["message"]); goto B9QEr; SUExb: return $this->result(1, "商户信息错误"); goto y6A3Y; B9QEr: gRipM: goto pi8Sn; vW4tf: $ShopService = new ShopService(); goto nitjA; OwOtY: $shopInfo = $Shop->getOneByFields($filters); goto K8IFv; x2e94: } public function doPageShopWithdrawList() { goto IC_ua; fEoKy: if (!(empty($_W["openid"]) || empty($shop_id))) { goto p2q7J; } goto YPzKk; C20Z8: if ($ds) { goto N8tJo; } goto c0j1S; Fe1qT: j2SJb: goto u29bD; i24Wj: $shop_id = $_GPC["shop_id"]; goto fEoKy; oi90k: foreach ($ds as $k => &$v) { goto bzRCf; bzRCf: $v["dw_status"] = $withdrawStatus["{$v["dw_status"]}"]; goto nhezn; vw2Op: fNVUJ: goto rcRC2; nhezn: $v["dw_createtime"] = date("Y-m-d H:i", strtotime($v["dw_createtime"])); goto vw2Op; rcRC2: } goto Fe1qT; c0j1S: return $this->result(1, "数据不存在"); goto rc4n_; PzOyS: global $_W, $_GPC; goto i24Wj; YPzKk: return $this->result(1, "参数错误"); goto lFblI; IC_ua: require_once MODULE_ROOT . "/util/ShopWithdrawEnum.util.php"; goto PzOyS; KQ0hm: $SW = new ShopWithdraw(); goto HcPNi; HcPNi: $page = intval($_GPC["page"]); goto N1EvW; u29bD: return $this->result(0, "加载商户提现列表成功", $ds); goto pgBwJ; jvrkZ: $pageSize = 100; goto M5ds_; u_Zmo: $ds = $SW->getAllByPage($filters, $page, $pageSize, $total, "dw_id DESC"); goto C20Z8; XgsEB: $filters["shop_id"] = $shop_id; goto u_Zmo; M5ds_: $total = 0; goto zX78b; lFblI: p2q7J: goto KQ0hm; rc4n_: N8tJo: goto oi90k; N1EvW: $page = max($page, 1); goto jvrkZ; zX78b: $filters = array(); goto XgsEB; pgBwJ: } public function doPageGroupDetail() { goto aTQqZ; Q1X3C: if (!is_error($groupDetail)) { goto xmsbS; } goto FTG6_; cyN73: $id = $_GPC["id"]; goto MnVLn; pAbs2: $groupDetail = $GroupService->groupDetail($id); goto Q1X3C; FTG6_: return $this->result(1, $groupDetail["message"]); goto JPh2x; JPh2x: xmsbS: goto cHwuB; aTQqZ: global $_W, $_GPC; goto cyN73; cHwuB: return $this->result(0, "加载拼团信息成功", $groupDetail); goto nY_eF; MnVLn: $GroupService = new GroupService(); goto pAbs2; nY_eF: } public function doPageFaceAdd() { goto yCgZ0; yCgZ0: global $_W, $_GPC; goto Z3tve; EjXoa: $tempFile = $_FILES["file"]["tmp_name"]; goto UlOAA; Et3tH: PLPTv: goto EjXoa; C5lvR: $Member = new Member(); goto pNFNK; ISfuk: $appSecret = $globalConfig["face_secret"]; goto AvNmA; Z3tve: if (!empty($_FILES["file"]["tmp_name"])) { goto PvPpE; } goto Ml73p; kAVTA: if ($memberInfo) { goto PLPTv; } goto K1wxo; lB4fX: if (!empty($_W["openid"])) { goto zDKrZ; } goto qJ_Zt; E0y7G: PvPpE: goto lB4fX; qJ_Zt: return $this->result(1, "用户登录错误"); goto Rpo69; UlOAA: $globalConfig = $this->module["config"]; goto ULhIz; K1wxo: return $this->result(1, "会员信息错误"); goto Et3tH; Ml73p: return $this->result(1, "人脸错误"); goto E0y7G; FZe0X: $FaceService = new FaceService($appKey, $appSecret); goto rul7S; pNFNK: $memberInfo = $Member->getOneByOpenid($_W["openid"]); goto kAVTA; OPDhy: if (!is_error($addResult)) { goto KL2c_; } goto ZXwR_; sxODU: return $this->result(0, "人脸采集成功"); goto d2uHk; Rpo69: zDKrZ: goto C5lvR; AvNmA: $group_id = $globalConfig["face_group"]; goto X4mF1; rul7S: $addResult = $FaceService->addFace($tempFile, $user_id, $group_id); goto OPDhy; ZXwR_: return $this->result(1, $addResult["message"]); goto wkr9y; ULhIz: $appKey = $globalConfig["face_key"]; goto ISfuk; X4mF1: $user_id = $memberInfo["u_id"]; goto FZe0X; wkr9y: KL2c_: goto sxODU; d2uHk: } public function doPageHasFace() { goto ElW5z; Hd8mW: $user_id = $memberInfo["u_id"]; goto sFeA6; VvTsa: if (!empty($_W["openid"])) { goto NyRKD; } goto Ny25f; n48OW: $appKey = $globalConfig["face_key"]; goto TP9Rq; D82gl: $group_id = $globalConfig["face_group"]; goto Hd8mW; UdXTm: NyRKD: goto Wa2PA; Qkauh: if (!is_error($hasResult)) { goto TrCyK; } goto xFSRQ; vTehG: if ($memberInfo) { goto Fzt3B; } goto VhjKL; sFeA6: $FaceService = new FaceService($appKey, $appSecret); goto OdIT2; INsCZ: return $this->result(0, "已存在人脸"); goto hfTdP; TP9Rq: $appSecret = $globalConfig["face_secret"]; goto D82gl; YggeU: $memberInfo = $Member->getOneByOpenid($_W["openid"]); goto vTehG; OdIT2: $hasResult = $FaceService->faceList($user_id, $group_id); goto Qkauh; X4EWe: TrCyK: goto INsCZ; VhjKL: return $this->result(1, "会员信息错误"); goto TMSde; xFSRQ: return $this->result(1, $hasResult["message"]); goto X4EWe; Wa2PA: $Member = new Member(); goto YggeU; Ny25f: return $this->result(1, "用户登录错误"); goto UdXTm; TMSde: Fzt3B: goto WkFyJ; WkFyJ: $globalConfig = $this->module["config"]; goto n48OW; ElW5z: global $_W, $_GPC; goto VvTsa; hfTdP: } public function doPageFaceCheck() { goto rfWtM; w28te: $appKey = $globalConfig["face_key"]; goto gxTyO; qwdMJ: $shopId = $memberInfo["shop_id"]; goto lMUOP; lMUOP: if (!empty($_FILES["file"]["tmp_name"])) { goto ykiRZ; } goto C3lOb; C3lOb: return $this->result(1, "人脸错误"); goto dBZ_l; Vf8ra: $M = new Member(); goto G0hT9; gxTyO: $appSecret = $globalConfig["face_secret"]; goto qEJJP; hEHa2: LrQCe: goto qwdMJ; aOgo6: $FaceService = new FaceService($appKey, $appSecret); goto Mlkd6; KWzIt: return $this->result(0, "人脸验票成功"); goto RvqXs; cB1tW: return $this->result(1, $checkResult["message"]); goto bQXof; Mlkd6: $checkResult = $FaceService->faceCheck($tempFile, $group_id_list, $shopId, $log); goto kYnYt; lFfNh: if (!(!$memberInfo || $memberInfo["u_is_admin"] != 1 || $memberInfo["shop_id"] < 1)) { goto LrQCe; } goto G4ZGQ; kYnYt: if (!is_error($checkResult)) { goto Lvlia; } goto cB1tW; G0hT9: $memberInfo = $M->getOneByOpenid($_W["openid"]); goto lFfNh; gXBSF: $log = "管理员(" . $memberInfo["u_nickname"] . ")人脸验票"; goto GbXV2; GbXV2: $tempFile = $_FILES["file"]["tmp_name"]; goto G7NMV; G4ZGQ: return $this->result(1, "管理员信息错误"); goto hEHa2; LRBxw: return $this->result(1, "验票员信息错误"); goto RXDSz; bQXof: Lvlia: goto KWzIt; dBZ_l: ykiRZ: goto gXBSF; qEJJP: $group_id_list = $globalConfig["face_group"]; goto aOgo6; rfWtM: global $_W; goto sm2HF; RXDSz: mUIjh: goto Vf8ra; G7NMV: $globalConfig = $this->module["config"]; goto w28te; sm2HF: if (!empty($_W["openid"])) { goto mUIjh; } goto LRBxw; RvqXs: } public function doPageFaceSetCode() { goto U3iry; U3iry: global $_W, $_GPC; goto PLwPn; DCZWm: $Member = new Member(); goto Pbcxn; V_j9d: $ScanService = new ScanService(); goto qRYXb; HzQJ5: if (!(empty($_W["openid"]) || empty($code))) { goto ZOY3I; } goto uaL0c; ntYKL: ZOY3I: goto DCZWm; PUcVo: return $this->result(1, "会员信息错误"); goto gy00T; Pbcxn: $memberInfo = $Member->getOneByOpenid($_W["openid"]); goto UQTC0; uaL0c: return $this->result(1, "未登录或参数错误"); goto ntYKL; nnaC9: return $this->result(0, "设置预验票成功", $code); goto MeZnE; PLwPn: $code = $_GPC["code"]; goto HzQJ5; UQTC0: if ($memberInfo) { goto Qe7f9; } goto PUcVo; gy00T: Qe7f9: goto V_j9d; qRYXb: $ScanService->setCurrentCode($code, $memberInfo["u_id"]); goto nnaC9; MeZnE: } public function doPageFaceGetCode() { goto Ja3nE; bEB31: Kchcc: goto c4hCY; iLN8L: return $this->result(1, "会员信息错误"); goto bEB31; WHyiG: $memberInfo = $Member->getOneByOpenid($_W["openid"]); goto vL2yw; RR47H: return $this->result(1, $code["message"]); goto ytGU9; KTrH3: $code = $ScanService->getCurrentCode($memberInfo["u_id"]); goto ihfE0; oxfot: KZkJ0: goto ssN0a; xL63F: return $this->result(0, "加载预验票成功", $code); goto Guoq5; Ja3nE: global $_W, $_GPC; goto xD8Lc; gPY_3: return $this->result(1, "未登录或参数错误"); goto oxfot; c4hCY: $ScanService = new ScanService(); goto KTrH3; ytGU9: jKhU1: goto xL63F; ssN0a: $Member = new Member(); goto WHyiG; vL2yw: if ($memberInfo) { goto Kchcc; } goto iLN8L; xD8Lc: if (!empty($_W["openid"])) { goto KZkJ0; } goto gPY_3; ihfE0: if (!is_error($code)) { goto jKhU1; } goto RR47H; Guoq5: } public function doPageAboutUs() { $detail = htmlspecialchars_decode($this->module["config"]["about_us"]); return $this->result(0, "加载关于我们成功", $detail); } public function doPageForum() { goto a3SNC; a3SNC: global $_W; goto Frzhq; jpDyV: foreach ($advInfo as &$item) { goto aaDy3; aaDy3: $item["thumb"] = tomedia($item["thumb"]); goto xQ3Um; bn1Qo: sol57: goto ESyPm; xQ3Um: $item["key"] = $item["link"]; goto bn1Qo; ESyPm: } goto lpSDw; JeoeB: $data["title"] = $title; goto vgUlg; i_X5p: if (!is_error($category)) { goto odt3k; } goto wckWv; kI02M: if (empty($title)) { goto I1amL; } goto JeoeB; I9dgd: $articles = $ArticleService->forumArticle(); goto HXiOM; GRGd4: return $this->result(0, "加载成功", $data); goto yzRWz; fM1ox: $ArticleService = new ArticleService(); goto I9dgd; KN0gH: uzG3m: goto GRGd4; pYjwz: goto uzG3m; goto Rfyfp; M0VoJ: if ($advInfo) { goto wdPKA; } goto aXqCL; wLh6u: wdPKA: goto jpDyV; J6sBL: $advInfo = pdo_getall("hmultishop_adver", array("enabled" => 1, "type" => 3, "uniacid" => $_W["uniacid"]), array(), '', "displayorder DESC"); goto M0VoJ; xWRNf: Ts1kW: goto fM1ox; aXqCL: $data["banner"] = array(); goto dlHev; dlHev: goto Ts1kW; goto wLh6u; pTaNF: $title = $globalConfig["forum_title"]; goto kI02M; wckWv: $category = array(); goto SbhMG; Al67B: $globalConfig = $this->module["config"]; goto hOUdg; ZYMAh: $data = array(); goto KKLcL; Rfyfp: X7eXY: goto xWHJ0; KKLcL: $data["category"] = $category; goto HC52D; HC52D: $data["thread"] = $ForumService->getAppThread(); goto pTaNF; xWHJ0: $data["articles"] = $articles; goto KN0gH; SbhMG: odt3k: goto ZYMAh; ZyS1T: $data["banner"] = $advInfo; goto xWRNf; Frzhq: $ForumService = new ForumService(); goto Al67B; gFycB: $data["articles"] = array(); goto pYjwz; vgUlg: I1amL: goto J6sBL; HXiOM: if (!is_error($articles)) { goto X7eXY; } goto gFycB; hOUdg: $category = $ForumService->formatAppCategory($globalConfig); goto i_X5p; lpSDw: D0Psp: goto ZyS1T; yzRWz: } public function doPageMoreThread() { goto cwc0Q; KHV4c: $page = $_GPC["page"]; goto uoiWB; VBylv: $threads = $ForumService->getAppThread($page, $categoryId); goto xbG_c; pRBvT: $ForumService = new ForumService(); goto VBylv; xbG_c: if (!is_error($threads)) { goto oFM1x; } goto jG2da; iYTfr: return $this->result(0, "加载成功", $threads); goto v_qkJ; uoiWB: $categoryId = $_GPC["categoryId"]; goto pRBvT; cwc0Q: global $_W, $_GPC; goto KHV4c; E176q: oFM1x: goto iYTfr; jG2da: return $this->result(1, $threads["message"]); goto E176q; v_qkJ: } public function doPageRewardInfo() { goto Jvz0Y; tkHLE: $rewardInfo = $ForumService->getThreadRewardInfo($threadId); goto LkErM; gOm8z: $threadId = $_GPC["threadId"]; goto Eb5op; wTTFU: iabXP: goto ZpVa6; QpzhR: if (!is_array($rewardMoney)) { goto iabXP; } goto WrLDJ; ZpVa6: return $this->result(0, "加载成功", $rewardInfo); goto st0Ia; Eb5op: $ForumService = new ForumService(); goto tkHLE; WBa8J: $rewardMoney = $this->module["config"]["forum_reward_money"]; goto ysO7Y; ysO7Y: if (!empty($rewardMoney)) { goto nTD0u; } goto ahKdZ; Jvz0Y: global $_W, $_GPC; goto gOm8z; GCRAP: return $this->result(1, $rewardInfo["message"]); goto ZH8Gl; LkErM: if (!is_error($rewardInfo)) { goto n3nDd; } goto GCRAP; ZH8Gl: n3nDd: goto WBa8J; VDFgE: nTD0u: goto kzmX0; ahKdZ: $rewardMoney = "1#2#5#10#20#50"; goto VDFgE; kzmX0: $rewardMoney = explode("#", $rewardMoney); goto QpzhR; WrLDJ: $rewardInfo["moneyConfig"] = $rewardMoney; goto wTTFU; st0Ia: } public function doPageReward() { goto gNLFi; CB2Ko: pHQb0: goto JLjWe; lM43G: return $this->result(1, $orderId["message"]); goto CB2Ko; IuFNV: $orderId = $RewardService->doReward($threadId, $money, $_W["openid"]); goto gVitG; JLjWe: return $this->result(0, "打赏成功", $orderId); goto cCPiE; gNLFi: global $_W, $_GPC; goto zMbdr; IDRJg: $RewardService = new RewardService(); goto IuFNV; zMbdr: $threadId = $_GPC["threadId"]; goto GAUh8; GAUh8: $money = $_GPC["money"]; goto IDRJg; gVitG: if (!is_error($orderId)) { goto pHQb0; } goto lM43G; cCPiE: } public function doPageRewardSuccess() { goto MMFm2; EUqum: $orderId = $_GPC["orderId"]; goto r_xUQ; iqcIF: if (!is_error($result)) { goto ik3d8; } goto m0c5s; MMFm2: global $_W, $_GPC; goto EUqum; Vp9MS: return $this->result(0, "打赏支付成功"); goto Y3GLZ; dIY74: ik3d8: goto Vp9MS; m0c5s: return $this->result(1, $result["message"]); goto dIY74; r_xUQ: $RewardService = new RewardService(); goto qVq7R; qVq7R: $result = $RewardService->rewardPaySuccess($orderId); goto iqcIF; Y3GLZ: } public function doPageComment() { goto DG3tH; kQfsZ: return $this->result(1, $commentResult["message"]); goto RkK3R; haSu5: $ForumService = new ForumService(); goto Fs9C8; DG3tH: global $_W, $_GPC; goto OXooT; OXooT: $threadId = $_GPC["threadId"]; goto q9IRY; UFwfu: if (!is_error($commentResult)) { goto vPzJU; } goto kQfsZ; q9IRY: $content = $_GPC["content"]; goto haSu5; Fs9C8: $commentResult = $ForumService->doComment($threadId, $_W["openid"], $content); goto UFwfu; i60ca: return $this->result(0, "评论成功"); goto JnVi1; RkK3R: vPzJU: goto i60ca; JnVi1: } public function doPageVote() { goto U8bQd; P9ySR: $voteResult = $ForumService->doVote($threadId, $_W["openid"]); goto LTvQD; rXTOY: RkFas: goto PiG2U; e1yHR: $threadId = $_GPC["threadId"]; goto WrvGe; WrvGe: $ForumService = new ForumService(); goto P9ySR; Vr7oV: return $this->result(1, $voteResult["message"]); goto rXTOY; LTvQD: if (!is_error($voteResult)) { goto RkFas; } goto Vr7oV; PiG2U: return $this->result(0, "点赞成功"); goto qypxs; U8bQd: global $_W, $_GPC; goto e1yHR; qypxs: } public function doPageThread() { goto np3BR; np3BR: global $_W, $_GPC; goto j9wDj; fsaMU: $topConfig = $this->module["config"]["forum_top"]; goto nhHdQ; YRbCC: if (is_error($category)) { goto RJJVi; } goto ZzVaw; ZzVaw: $data["category"] = $category; goto rUZ33; nhHdQ: $data["top"] = $ForumService->formatTop($topConfig); goto AXtrS; Xsz8o: $data["enable_video"] = $this->module["config"]["forum_enable_video"]; goto rePLw; zpg5l: $ForumService = new ForumService(); goto xOcui; xOcui: $category = $ForumService->getThreadCategory(); goto YRbCC; rUZ33: RJJVi: goto fsaMU; rePLw: return $this->result(0, "加载帖子信息成功", $data); goto YSt1N; AXtrS: $data["enable_voice"] = $this->module["config"]["forum_enable_voice"]; goto Xsz8o; j9wDj: $data = array(); goto zpg5l; YSt1N: } public function doPageParseLocation() { goto jtLFB; QJHRb: $data["address"] = $address; goto Re6Sj; jKtK6: $address = $data["province"] . "·" . $data["city"] . "·" . $data["district"]; goto QJHRb; kStXG: $data = $LocationService->parseDistrict($latitude, $longitude, $mapKey); goto jKtK6; kAaDM: $latitude = $_GPC["latitude"]; goto rdn9O; YZ4Uy: return $this->result(0, "解析地址成功", $data); goto kV0jP; U7XDq: mAIi0: goto YZ4Uy; RAxiF: $LocationService = new LocationService(); goto kStXG; Re6Sj: if (!is_error($data)) { goto mAIi0; } goto I7vIf; I7vIf: return $this->result(1, $data["message"]); goto U7XDq; rdn9O: $longitude = $_GPC["longitude"]; goto MD9uk; jtLFB: global $_W, $_GPC; goto kAaDM; MD9uk: $mapKey = $this->module["config"]["map_key"]; goto RAxiF; kV0jP: } public function doPageSendThread() { goto icZdH; icZdH: global $_W, $_GPC; goto cyN2C; whyft: $topConfig = $this->module["config"]["forum_top"]; goto bLkBa; NaAlJ: return $this->result(1, $sendResult["message"]); goto NW2nn; NW2nn: ieXwJ: goto f52tl; cyN2C: $_GPC["openid"] = $_W["openid"]; goto KPE6T; KPE6T: $_GPC["images"] = htmlspecialchars_decode($_GPC["images"]); goto whyft; jgabv: $sendResult = $ForumService->sendThread($_GPC, $topConfig); goto qS7G8; f52tl: return $this->result(0, "发帖成功", $sendResult); goto cQLFB; qS7G8: if (!is_error($sendResult)) { goto ieXwJ; } goto NaAlJ; bLkBa: $ForumService = new ForumService(); goto jgabv; cQLFB: } public function doPagePaySuccessThread() { goto Ad1bt; R3OIC: $ForumService = new ForumService(); goto vZuf6; hmfuT: return $this->result(0, "帖子激活成功"); goto immvi; Ad1bt: global $_W, $_GPC; goto LB1Kt; hGdzd: return $this->result(1, $result["message"]); goto ZQdZU; vZuf6: $result = $ForumService->paySuccessThread($threadId); goto qfj6w; LB1Kt: $threadId = $_GPC["threadId"]; goto R3OIC; qfj6w: if (!is_error($result)) { goto bfTES; } goto hGdzd; ZQdZU: bfTES: goto hmfuT; immvi: } public function doPageUpgradeVip() { goto RlNVj; Slelh: $upgradeResult = $MemberService->upgradeVip($_W["openid"]); goto Kdkcl; tKtke: $MemberService = new MemberService(); goto Slelh; Kdkcl: if (!is_error($upgradeResult)) { goto uKRKm; } goto DbxZn; RlNVj: global $_W, $_GPC; goto tKtke; TvZLh: uKRKm: goto tnp72; tnp72: return $this->result(0, "升级VIP成功"); goto PvQbn; DbxZn: return $this->result(1, $upgradeResult["message"]); goto TvZLh; PvQbn: } public function doPageAddVipPayLog() { goto pEa3l; pEa3l: global $_W, $_GPC; goto z6iF9; BJ9i0: if (!is_error($result)) { goto fPCU4; } goto NZUpO; NZUpO: return $this->result(1, $result["message"]); goto oAMvW; lcMAu: $result = $PayLogService->addVipLog($fee, $_W["openid"]); goto BJ9i0; z6iF9: $PayLogService = new PayLogService(); goto nGE0T; zqcGY: $data["code"] = $result; goto xTdsk; xTdsk: return $this->result(0, "添加日志成功", $data); goto PRbJH; NQOd0: $data = array(); goto G8nUC; G8nUC: $data["fee"] = $fee; goto zqcGY; oAMvW: fPCU4: goto NQOd0; nGE0T: $fee = $this->module["config"]["vip_money"]; goto lcMAu; PRbJH: } public function doPageSearch() { goto So6oI; BhOte: $articles = $ArticleService->searchArticle($keyword); goto gFsQI; fg85M: return $this->result(0, "加载文章成功", $articles); goto vNEvx; F6klG: return $this->result(1, $articles["message"]); goto S0L5t; gFsQI: if (!is_error($articles)) { goto ysG3M; } goto F6klG; vNEvx: goto TrGxr; goto YhkXK; VLWQT: if ($type == "product") { goto vwEvz; } goto Wxrjq; s4wGx: $ProductService = new ProductService(); goto NSnJO; So6oI: global $_W, $_GPC; goto izN82; YhkXK: vwEvz: goto s4wGx; S0L5t: ysG3M: goto fg85M; iNWWj: return $this->result(0, "加载商品成功", $products); goto vECb9; onGlR: sza2v: goto iNWWj; vECb9: TrGxr: goto KD3nY; tiSje: return $this->result(1, $products["message"]); goto onGlR; izN82: $keyword = $_GPC["keyword"]; goto PYKXE; NSnJO: $products = $ProductService->searchProduct($keyword); goto QKaxS; QKaxS: if (!is_error($products)) { goto sza2v; } goto tiSje; Wxrjq: $ArticleService = new ArticleService(); goto BhOte; PYKXE: $type = $_GPC["type"]; goto VLWQT; KD3nY: } public function doPageBalanceWithdraw() { goto ANIy3; PrJk_: return $this->result(1, $withdrawResult["message"]); goto Tlgiq; q7Fyy: $withdrawResult = $MemberService->balanceWithdraw($_W["openid"]); goto UnqKw; qi_ur: $MemberService = new MemberService(); goto q7Fyy; ANIy3: global $_W, $_GPC; goto qi_ur; nWHJb: return $this->result(0, "提现成功"); goto tzBKN; UnqKw: if (!is_error($withdrawResult)) { goto LAZy3; } goto PrJk_; Tlgiq: LAZy3: goto nWHJb; tzBKN: } public function doPageMapKey() { goto g8WpI; I9S0w: $map_key = $this->module["config"]["map_key"]; goto LIyHh; LIyHh: return $this->result(0, "加载地图Key成功", $map_key); goto f8cFD; g8WpI: global $_W; goto I9S0w; f8cFD: } public function doPageShopNearby() { goto CR2v9; jOcYH: h1TWw: goto TYgk4; cGaBE: return $this->result(1, "位置参数或地图KEY错误"); goto NBgIL; CR2v9: global $_W, $_GPC; goto thi93; tDNJP: if (!($showMobile == 1)) { goto h1TWw; } goto FJn8i; CQ6_7: return $this->result(1, $areas["message"]); goto NExDV; u7N1j: $longitude = $_GPC["longitude"]; goto I2c0U; unsBH: hQWzK: goto tpqGw; NExDV: HwNyk: goto oTdfX; fNww3: if (!is_error($areas)) { goto HwNyk; } goto CQ6_7; I2c0U: $key = $this->module["config"]["map_key"]; goto Mu7wx; FJn8i: foreach ($areas as &$area) { unset($area["group_mobile"]); OLwDL: } goto unsBH; tpqGw: unset($area); goto jOcYH; oTdfX: $showMobile = $this->module["config"]["is_show_mobile"]; goto tDNJP; Mu7wx: if (!(empty($latitude) || empty($longitude) || empty($key))) { goto jHS1k; } goto cGaBE; TYgk4: return $this->result(0, "加载小区成功", $areas); goto ZAmWY; IdlvA: $areas = $LocationService->getAreaByLbs($latitude, $longitude, $key, $city); goto fNww3; E7dfu: $LocationService = new LocationService(); goto IdlvA; thi93: $latitude = $_GPC["latitude"]; goto u7N1j; NBgIL: jHS1k: goto E7dfu; ZAmWY: } public function doPageClockMapData() { goto bUkNa; bUkNa: $ClockService = new ClockService(); goto CmRV0; X9l3P: if (!is_error($mapData)) { goto PmCIA; } goto X8bNa; pz2gN: return $this->result(0, "加载打卡活动成功", $mapData); goto aqZSG; ta7xU: PmCIA: goto pz2gN; CmRV0: $mapData = $ClockService->getClockPage(); goto X9l3P; X8bNa: return $this->result(1, $mapData["message"]); goto ta7xU; aqZSG: } public function doPageClockDetail() { goto tC382; tC382: global $_W, $_GPC; goto OcEjY; ZtgCj: $detail = $ClockService->getDetailPage($id); goto rphJM; OcEjY: $id = $_GPC["id"]; goto FX1pQ; xqGwA: return $this->result(1, $detail["message"]); goto FJOlI; FX1pQ: $ClockService = new ClockService(); goto ZtgCj; FJOlI: Bz7cw: goto a1OqY; a1OqY: return $this->result(0, "加载打卡活动成功", $detail); goto C5G_i; rphJM: if (!is_error($detail)) { goto Bz7cw; } goto xqGwA; C5G_i: } public function doPageDoClock() { goto U7ClF; zUbex: $longitude = $_GPC["longitude"]; goto DsGDt; S32is: return $this->result(0, "打卡成功"); goto PsFMd; S0koR: return $this->result(1, $result["message"]); goto GtunE; KE9VS: hDUsq: goto BKQji; SfpKX: if (!is_error($result)) { goto KDRV_; } goto S0koR; ifDyB: $result = $ClockService->doClockPage($clockId, $memberId, $latitude, $longitude, $mapKey, $share_image); goto SfpKX; N4SMq: $ClockService = new ClockService(); goto ifDyB; DWfmL: $Member = new Member(); goto EH8HS; UmOWE: $latitude = $_GPC["latitude"]; goto zUbex; V9h0K: if ($memberInfo) { goto hDUsq; } goto Yxb9q; KFfWg: $mapKey = $this->module["config"]["map_key"]; goto N4SMq; DsGDt: $share_image = $_GPC["share_image"]; goto DWfmL; BKQji: $memberId = $memberInfo["u_id"]; goto KFfWg; A27fX: $clockId = $_GPC["id"]; goto UmOWE; U7ClF: global $_W, $_GPC; goto A27fX; Yxb9q: return $this->result(1, "会员信息错误"); goto KE9VS; EH8HS: $memberInfo = $Member->getOneByOpenid($_W["openid"]); goto V9h0K; GtunE: KDRV_: goto S32is; PsFMd: } public function doPageCreditConvert() { goto j9Tdw; j9Tdw: global $_W; goto V72Mg; QAWW_: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto nHH00; pJEbB: if (!is_error($creditResult)) { goto TzVRd; } goto Z6V30; DGTdp: $globalConfig = $this->module["config"]; goto LuLAI; JxZ7Y: return $this->result(0, "积分兑换成功"); goto TSMS_; LuLAI: $creditResult = $MemberService->creditConvert($memberInfo, $globalConfig); goto pJEbB; Bgpla: return $this->result(1, $memberInfo["message"]); goto ju7Vt; Z6V30: return $this->result(1, $creditResult["message"]); goto mIxtX; V72Mg: $MemberService = new MemberService(); goto QAWW_; nHH00: if (!is_error($memberInfo)) { goto UIUMa; } goto Bgpla; ju7Vt: UIUMa: goto DGTdp; mIxtX: TzVRd: goto JxZ7Y; TSMS_: } public function doPageBalancePay() { goto HhB6o; HhB6o: global $_W, $_GPC; goto tjzIy; UD734: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto ewDI_; Kyot9: Kg9AZ: goto z7NYh; tjzIy: $fee = $_GPC["fee"]; goto ZeGB1; ysPVY: $PayResultService = new PayResultService($globalConfig); goto yyLH0; TZjLo: $orderResult = $PayResultService->payResult($params); goto yDCaj; z7NYh: $payResult = $MemberService->balancePay($memberInfo, $fee); goto EzA8M; rKwTx: $MemberService = new MemberService(); goto UD734; skktW: $params["tag"]["transaction_id"] = ''; goto GPtV8; ewDI_: if (!is_error($memberInfo)) { goto Kg9AZ; } goto ZaJR2; Otq7w: $params["from"] = "notify"; goto TZjLo; Zsz6G: return $this->result(1, $orderResult["message"]); goto jkdos; k7aEI: $globalConfig = $this->module["config"]; goto ysPVY; ZeGB1: $code = $_GPC["code"]; goto rKwTx; ZaJR2: return $this->result(1, $memberInfo["message"]); goto Kyot9; jkdos: ZuPsk: goto cqMHj; yDCaj: if (!is_error($orderResult)) { goto ZuPsk; } goto Zsz6G; EzA8M: if (!is_error($payResult)) { goto UiaYw; } goto tHcse; tHcse: return $this->result(1, $payResult["message"]); goto JXIHn; yyLH0: $params["tid"] = $code; goto skktW; cqMHj: return $this->result(0, "余额支付成功"); goto J20cA; JXIHn: UiaYw: goto k7aEI; GPtV8: $params["result"] = "success"; goto Otq7w; J20cA: } public function doPageCardInfo() { goto kxZ0s; cU5zm: return $this->result(0, "加载会员卡成功", $cardInfo); goto TjRoy; EFM5J: $cardInfo = $CardService->hasCard($memberInfo["u_id"]); goto XHJ7S; Y7LQj: ukCPZ: goto LsdVb; xxYGR: if (!(time() - $cardInfo["card_refresh_time"] > $refreshTime)) { goto qVFFC; } goto At1y8; fasgz: $FormatService = new FormatService(); goto q5RxY; EJRxa: KbjxU: goto aBYln; Zni12: if (!is_error($memberInfo)) { goto ukCPZ; } goto KQou9; ebJpp: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto Zni12; GAqBx: $refreshTime = empty($configTime) ? 3600 : $configTime * 60; goto xxYGR; aBYln: if (!($globalConfig["card_type"] == 1 && $cardInfo["card_times"] == 0)) { goto D7gFi; } goto PSeAD; N3rzV: $MemberService = new MemberService(); goto ebJpp; PSeAD: $cardInfo["expireAlert"] = 1; goto Tz3zf; q5RxY: $globalConfig = $this->module["config"]; goto ocw2z; FvuV8: $cardInfo["card_type_name"] = $cardInfo["globalConfig"]["card_identity_type_name_array"][$cardInfo["card_type"]]; goto U9tVJ; sFAmJ: return $this->result(1, $cardInfo["message"]); goto of6ob; At1y8: $cardInfo["card_code"] = $CardService->refreshCode($cardInfo["card_id"], $memberInfo["u_id"]); goto RVR8K; RVR8K: qVFFC: goto fasgz; ocw2z: $cardInfo["globalConfig"] = $FormatService->formatGlobalConfig($globalConfig); goto FvuV8; KQou9: return $this->result(1, $memberInfo["message"]); goto Y7LQj; of6ob: JzbmT: goto v62X_; XHJ7S: if (!is_error($cardInfo)) { goto JzbmT; } goto sFAmJ; G6Qye: $cardInfo["expireAlert"] = 1; goto EJRxa; Tz3zf: D7gFi: goto cU5zm; U9tVJ: if (!($globalConfig["card_type"] == 0 && strtotime($cardInfo["card_expire_time"]) < time())) { goto KbjxU; } goto G6Qye; LsdVb: $CardService = new CardService(); goto EFM5J; v62X_: $configTime = $this->module["config"]["card_refresh_time"]; goto GAqBx; kxZ0s: global $_W, $_GPC; goto N3rzV; TjRoy: } public function doPageCardApply() { goto ugaVi; a_9sO: Fdc4G: goto tI1wj; UkbtM: $MemberService = new MemberService(); goto Qr20m; UTrjJ: vv8vQ: goto R548C; z0rO1: if (is_error($cardInfo)) { goto Fdc4G; } goto aCSiM; Nrhgf: return $this->result(0, "新增会员卡成功"); goto DW3NX; aCSiM: return $this->result(1, "会员卡已存在"); goto a_9sO; EnfXZ: return $this->result(1, $addResult["message"]); goto Cjn5V; snYGP: return $this->result(1, $memberInfo["message"]); goto UTrjJ; bVayW: $addResult = $CardService->addCard($memberInfo["u_id"], $_GPC, $globalConfig); goto EOZr_; Cjn5V: FppzV: goto Nrhgf; EOZr_: if (!is_error($addResult)) { goto FppzV; } goto EnfXZ; ugaVi: global $_W, $_GPC; goto UkbtM; JGnj_: $cardInfo = $CardService->hasCard($memberInfo["u_id"]); goto z0rO1; RPd1R: if (!is_error($memberInfo)) { goto vv8vQ; } goto snYGP; tI1wj: $globalConfig = $this->module["config"]; goto bVayW; Qr20m: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto RPd1R; R548C: $CardService = new CardService(); goto JGnj_; DW3NX: } public function doPageCardRecharge() { goto a0qbI; NPmwJ: $result = $PayLogService->addRechargeLog($fee, $_W["openid"], $cardId); goto Dik6i; yOIZK: $MemberService = new MemberService(); goto WW6FP; adJhE: YL50c: goto O55Rd; aPcOA: FQOA_: goto XOhwy; O55Rd: return $this->result(0, "充值提交成功", $result); goto bHsmM; PQhR5: if (!is_error($memberInfo)) { goto FQOA_; } goto bipSQ; sQNN8: $fee = $_GPC["fee"]; goto H74JG; H74JG: $PayLogService = new PayLogService(); goto NPmwJ; Dik6i: if (!is_error($result)) { goto YL50c; } goto caWT1; a0qbI: global $_W, $_GPC; goto yOIZK; bipSQ: return $this->result(1, $memberInfo["message"]); goto aPcOA; XOhwy: $cardId = $_GPC["cardId"]; goto sQNN8; WW6FP: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto PQhR5; caWT1: return $this->result(1, $result["message"]); goto adJhE; bHsmM: } public function doPageCardAudit() { goto XlJPn; MqQT0: $cardId = $_GPC["cardId"]; goto JYlVa; bDOe2: return $this->result(1, $memberInfo["message"]); goto qVqTj; eaW6m: $PayLogService = new PayLogService(); goto TMFNW; TMFNW: $result = $PayLogService->addAuditLog($fee, $_W["openid"], $cardId); goto nD7DJ; fYiKR: return $this->result(1, $result["message"]); goto O668X; HrFxZ: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto c6i7B; XlJPn: global $_W, $_GPC; goto aSxxy; aSxxy: $MemberService = new MemberService(); goto HrFxZ; c6i7B: if (!is_error($memberInfo)) { goto ArnzO; } goto bDOe2; qVqTj: ArnzO: goto MqQT0; O668X: hWOPV: goto ppqWH; nD7DJ: if (!is_error($result)) { goto hWOPV; } goto fYiKR; ppqWH: return $this->result(0, "认证提交成功", $result); goto ZdIk3; JYlVa: $fee = $_GPC["fee"]; goto eaW6m; ZdIk3: } public function doPageCardAuditFinish() { goto qd0Oh; m3z4R: $auditResult = $CardService->auditCardHandler($cardId); goto y7VIC; DcA0m: $cardId = $_GPC["cardId"]; goto iOWcP; cKn2I: if (!is_error($memberInfo)) { goto TfiCX; } goto vTUN7; sP1Zw: TfiCX: goto DcA0m; Fh27z: return $this->result(1, $auditResult["message"]); goto QdWAD; qd0Oh: global $_W, $_GPC; goto HdTkR; iOWcP: $CardService = new CardService(); goto m3z4R; q0d0y: return $this->result(0, "身份认证完成"); goto AYIXE; QdWAD: oTdJS: goto q0d0y; JiKCu: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto cKn2I; vTUN7: return $this->result(1, $memberInfo["message"]); goto sP1Zw; y7VIC: if (!is_error($auditResult)) { goto oTdJS; } goto Fh27z; HdTkR: $MemberService = new MemberService(); goto JiKCu; AYIXE: } public function doPageCardWithdraw() { goto BWV2f; E2tPR: AfJgq: goto Ctphz; Ctphz: return $this->result(0, "会员卡提现到会员余额成功"); goto aSV8I; Llc5w: if (!is_error($withdrawResult)) { goto AfJgq; } goto hGbX2; gYkDI: $withdrawResult = $CardService->withdraw($cardId); goto Llc5w; Cg6Nv: $cardId = $_GPC["cardId"]; goto uWzKJ; BWV2f: global $_W, $_GPC; goto Cg6Nv; uWzKJ: $CardService = new CardService(); goto gYkDI; hGbX2: return $this->result(1, $withdrawResult["message"]); goto E2tPR; aSV8I: } public function doPageMapMarker() { goto eN01K; PMPov: return $this->result(1, $markers["message"]); goto p3Qmj; gd4LP: return $this->result(0, "加载地图标点完成", $markers); goto GQurT; eN01K: $MapMarkerService = new MapMarkerService(); goto JmaPm; p3Qmj: jKDL9: goto gd4LP; UGmLx: if (!is_error($markers)) { goto jKDL9; } goto PMPov; JmaPm: $markers = $MapMarkerService->getOnLineMarkerByAreaCategory($_GET["areaId"], $_GET["categoryId"]); goto UGmLx; GQurT: } public function doPageMapNearbyMarker() { goto oGFeF; JUlek: $markers = $MapMarkerService->getNearbyMarker($_GET["areaId"], $_GET["categoryId"], $_GET["latitude"], $_GET["longitude"], $globalConfig["map_key"], $lowMarkerTotal); goto RofiA; ZsEfB: QJET3: goto ipfh9; RofiA: if (!is_error($markers)) { goto QJET3; } goto rsEW3; rsEW3: return $this->result(1, $markers["message"]); goto ZsEfB; oGFeF: $globalConfig = $this->module["config"]; goto AhVGt; ipfh9: return $this->result(0, "加载地图标点完成", $markers); goto jbIj4; MsXWk: $MapMarkerService = new MapMarkerService(); goto JUlek; AhVGt: $lowMarkerTotal = $globalConfig["map_nearby_max"] > 0 ? $globalConfig["map_nearby_max"] : 10; goto MsXWk; jbIj4: } public function doPageMapSearchMarker() { goto wtA2w; yp_kW: $markers = $MapMarkerService->getSearchMarker($_GET["areaId"], $_GET["categoryId"], $_GET["key"]); goto FYNLV; i4BT5: souHm: goto odvDq; FYNLV: if (!is_error($markers)) { goto souHm; } goto ahq_q; odvDq: return $this->result(0, "加载地图标点完成", $markers); goto JNmnB; wtA2w: $MapMarkerService = new MapMarkerService(); goto yp_kW; ahq_q: return $this->result(1, $markers["message"]); goto i4BT5; JNmnB: } public function doPageMapAreaCategory() { goto xMv3Q; dxSSN: Pt2mH: goto widGX; jSjBK: $MapCategoryService = new MapCategoryService(); goto jQfUi; widGX: $data = array("area" => $areaList, "category" => $categoryList); goto w7PiD; ohN50: if (!is_error($areaList)) { goto t_2pu; } goto wQEqN; o4CcN: $areaList = $MapAreaService->getOnLineArea(); goto ohN50; n1p6i: return $this->result(1, $categoryList["message"]); goto dxSSN; w7PiD: return $this->result(0, "加载地图分类区域完成", $data); goto yuxSW; xMv3Q: $MapAreaService = new MapAreaService(); goto o4CcN; nFNh3: if (!is_error($categoryList)) { goto Pt2mH; } goto n1p6i; wQEqN: return $this->result(1, $areaList["message"]); goto IIMCi; IIMCi: t_2pu: goto jSjBK; jQfUi: $categoryList = $MapCategoryService->getOnLineCategory(); goto nFNh3; yuxSW: } public function doPageMapDistance() { goto l179y; mr2DP: $QQLbs = new QQLbs(); goto Tj1xP; pn5Rx: return $this->result(0, "位置计算完成", $distance); goto XerA1; ZXZ__: autoload()->classes("QQLbs"); goto mr2DP; aguQT: return $this->result(1, $distance["message"]); goto hiaNi; Tj1xP: $distance = $QQLbs->getSingleDistance($_GPC["latitude"], $_GPC["longitude"], $_GPC["targetLatitude"], $_GPC["targetLongitude"], $key); goto cMETE; hiaNi: ZT8RG: goto pn5Rx; cMETE: if (!is_error($distance)) { goto ZT8RG; } goto aguQT; GNd6s: $key = $this->module["config"]["map_key"]; goto ZXZ__; l179y: global $_GPC; goto GNd6s; XerA1: } public function doPageMyCoupon() { goto Y_pb8; uO7wp: return $this->result(1, $memberId["message"]); goto KbD8G; eoj30: $coupons = $CouponService->myCouponByMemberIdTypePage($memberId, $type, $page); goto d7zcw; ZmFTj: qM0Vl: goto s3Y0p; nRaSK: return $this->result(1, $coupons["message"]); goto ZmFTj; CPYls: $CouponService = new CouponService(); goto eoj30; Ig9LJ: if (!is_error($memberId)) { goto Qb26z; } goto uO7wp; xpWSf: $memberId = $MemberService->getMemberIdByOpenid($_W["openid"]); goto Ig9LJ; umJrB: $MemberService = new MemberService(); goto xpWSf; g83sV: $type = $_GPC["type"]; goto TxV0C; TxV0C: $page = $_GPC["page"]; goto umJrB; s3Y0p: return $this->result(0, "加载优惠券成功", $coupons); goto nN50V; d7zcw: if (!is_error($coupons)) { goto qM0Vl; } goto nRaSK; Y_pb8: global $_W, $_GPC; goto g83sV; KbD8G: Qb26z: goto CPYls; nN50V: } public function doPageCouponList() { goto oibDC; BG78U: if (!is_error($coupons)) { goto NvREx; } goto QLXec; CY6TN: if (!is_error($memberId)) { goto knOkz; } goto FZ8eA; s4esd: knOkz: goto fTYD8; NG9zp: $MemberService = new MemberService(); goto rEBPD; KtE2a: NvREx: goto JAPhc; FZ8eA: return $this->result(1, $memberId["message"]); goto s4esd; pQeQu: $coupons = $CouponService->allowCouponByMemberIdPage($memberId, $_W["uniacid"], $page); goto BG78U; Xq37T: $page = $_GPC["page"]; goto NG9zp; rEBPD: $memberId = $MemberService->getMemberIdByOpenid($_W["openid"]); goto CY6TN; fTYD8: $CouponService = new CouponService(); goto pQeQu; oibDC: global $_W, $_GPC; goto Xq37T; QLXec: return $this->result(1, $coupons["message"]); goto KtE2a; JAPhc: return $this->result(0, "加载优惠券成功", $coupons); goto A1LUe; A1LUe: } public function doPageCouponSelect() { goto jwDbN; Y_E0I: $page = $_GPC["page"]; goto nEBjq; QSNm8: PpFC1: goto b6oHM; jwDbN: global $_W, $_GPC; goto iYibg; iYibg: $fee = $_GPC["fee"]; goto Y_E0I; S6TLp: return $this->result(1, $memberId["message"]); goto xUyd1; LRHl2: $memberId = $MemberService->getMemberIdByOpenid($_W["openid"]); goto vaN3n; vaN3n: if (!is_error($memberId)) { goto aUMMf; } goto S6TLp; eJdGL: $CouponService = new CouponService(); goto JNqme; nEBjq: $MemberService = new MemberService(); goto LRHl2; xUyd1: aUMMf: goto eJdGL; bv5ik: return $this->result(1, $coupons["message"]); goto QSNm8; QdnJ3: if (!is_error($coupons)) { goto PpFC1; } goto bv5ik; b6oHM: return $this->result(0, "加载优惠券成功", $coupons); goto O5bBd; JNqme: $coupons = $CouponService->myCouponByMemberIdTypePage($memberId, 1, $page, true, $fee); goto QdnJ3; O5bBd: } public function doPageCouponReceive() { goto pqCYC; vVwLG: $couponId = $_GPC["couponId"]; goto wPU9t; E02t9: if (!is_error($receiveResult)) { goto OkU_A; } goto zBo4A; ve0PJ: WZcAA: goto rC7eu; bubAr: return $this->result(1, $memberId["message"]); goto ve0PJ; pqCYC: global $_W, $_GPC; goto vVwLG; WUDAL: return $this->result(0, "领取优惠券成功"); goto zohVk; n91nn: $memberId = $MemberService->getMemberIdByOpenid($_W["openid"]); goto NVxfj; NVxfj: if (!is_error($memberId)) { goto WZcAA; } goto bubAr; wPU9t: $MemberService = new MemberService(); goto n91nn; nUI0p: $receiveResult = $CouponService->sendCouponToMember($memberId, $couponId); goto E02t9; rC7eu: $CouponService = new CouponService(); goto nUI0p; FbQoJ: OkU_A: goto WUDAL; zBo4A: return $this->result(1, $receiveResult["message"]); goto FbQoJ; zohVk: } public function doPageMemberCouponInfo() { goto vo8IE; bbRw7: $couponInfo = $CouponService->getMemberCouponInfo($couponId); goto E616u; E616u: if (!is_error($couponInfo)) { goto GswIT; } goto CG800; m5gOC: GswIT: goto kttA8; CG800: return $this->result(1, $couponInfo["message"]); goto m5gOC; z2Q3E: $couponId = $_GPC["couponId"]; goto fwJsT; vo8IE: global $_W, $_GPC; goto z2Q3E; fwJsT: $CouponService = new CouponService(); goto bbRw7; kttA8: return $this->result(0, "加载优惠券成功", $couponInfo); goto FnaAk; FnaAk: } public function doPageCouponUsableList() { goto UpBKb; juAvf: EE5hR: goto w0mqa; oggFH: nen82: goto JKx9v; TEPRV: if (is_error($couponList)) { goto nen82; } goto IDRq9; iPPnE: $MemberService = new MemberService(); goto P1re6; cF_T3: $data["grade"] = array(); goto w8UDM; o2XEI: return $this->result(1, $memberInfo["message"]); goto jFQWF; w8UDM: if (!empty($_GPC["productList"])) { goto w09zH; } goto Ns997; ZvSMx: $MemberGradeService = new MemberGradeService(); goto NuTxh; Uqs9n: $productList = json_decode(htmlspecialchars_decode($_GPC["productList"]), true); goto n8kP3; Ns997: return $this->result(1, "数据错误"); goto Jvv_n; qF8tl: $data["grade"] = $gradeInfo; goto juAvf; uwcqV: if (!$gradeInfo) { goto EE5hR; } goto qF8tl; JKx9v: if (!($memberInfo["u_grade"] > 0)) { goto iobwV; } goto ZvSMx; xrEg3: return $this->result(0, "加载优惠数据成功", $data); goto moM3P; IDRq9: $data["all"] = $couponList["all"]; goto FdkBG; jFQWF: pcBNv: goto WlX49; b3AWy: $data["product"] = array(); goto cF_T3; Jvv_n: w09zH: goto iPPnE; P1re6: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto hYJKg; tYrUd: $couponList = $CouponService->getUsableCouponByProductArray($memberId, $productList); goto TEPRV; WlX49: $memberId = $memberInfo["u_id"]; goto Uqs9n; NuTxh: $gradeInfo = $MemberGradeService->getGradeInfo($memberInfo["u_grade"]); goto uwcqV; gGW83: $data["all"] = array(); goto b3AWy; hYJKg: if (!is_error($memberInfo)) { goto pcBNv; } goto o2XEI; w0mqa: iobwV: goto xrEg3; haVbG: $data = array(); goto gGW83; FdkBG: $data["product"] = $couponList["product"]; goto oggFH; n8kP3: $CouponService = new CouponService(); goto tYrUd; UpBKb: global $_W, $_GPC; goto haVbG; moM3P: } public function doPageZhuanPanReward() { goto VGeJS; aWTJW: $globalConfig = $this->module["config"]; goto CmNAQ; V41Yf: return $this->result(1, $rewardList["message"]); goto VgBlf; Nx_ja: $data["globalConfig"] = array("enable" => $globalConfig["enable_zhuanpan"], "credit" => $globalConfig["zhuanpan_credit"], "remark" => $globalConfig["zhuanpan_remark"], "rule" => htmlspecialchars_decode($globalConfig["zhuanpan_rule"])); goto IITVW; ngDD3: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto D5Buv; ECgTy: $data["awards"] = $rewardList; goto lvVqy; AASzP: $data["id"] = 0; goto aWTJW; lvVqy: return $this->result(0, "加载奖品成功", $data); goto hODZh; P1TzY: $data["times"] = $times; goto mzIDj; BGgEC: $rewardList = $RewardService->getOnlineList(); goto qiDyu; oYhR9: J3_00: goto yb4Nf; bDqjx: $data = array(); goto AASzP; D5Buv: if (!is_error($memberInfo)) { goto J3_00; } goto PkeMt; CmNAQ: $data["option"] = $globalConfig["zhuanpan_name"]; goto Nx_ja; IITVW: $times = floor($memberInfo["u_credit"] / $globalConfig["zhuanpan_credit"]); goto P1TzY; VGeJS: global $_W; goto Pk_sM; VgBlf: cVmPE: goto bDqjx; PkeMt: return $this->result(1, $memberInfo["message"]); goto oYhR9; yb4Nf: $RewardService = new ZhuanPanRewardService(); goto BGgEC; mzIDj: $data["useable"] = $times >= 1 ? true : false; goto ECgTy; Pk_sM: $MemberService = new MemberService(); goto ngDD3; qiDyu: if (!is_error($rewardList)) { goto cVmPE; } goto V41Yf; hODZh: } public function doPageZhuanPanAddReward() { goto c92OV; gL4zA: $LuckyService = new ZhuanPanLuckyService(); goto cTHPU; FSDSe: xGUm2: goto fmg_g; cTHPU: $luckyResult = $LuckyService->handleLucky($memberInfo["u_id"], $rewardId, $credit); goto EZJMm; EZJMm: if (!is_error($luckyResult)) { goto xGUm2; } goto Lf_P1; et52R: $rewardId = $_GPC["rewardId"]; goto tMD3P; gAtxN: if (!is_error($memberInfo)) { goto InwtE; } goto UtQim; UtQim: return $this->result(1, $memberInfo["message"]); goto UhEGv; fmg_g: return $this->result(0, "中奖处理完成"); goto CVHLv; tMD3P: $credit = $this->module["config"]["zhuanpan_credit"]; goto gL4zA; UhEGv: InwtE: goto et52R; c92OV: global $_W, $_GPC; goto k6qt7; Lf_P1: return $this->result(1, $luckyResult["message"]); goto FSDSe; k6qt7: $MemberService = new MemberService(); goto GA2gc; GA2gc: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto gAtxN; CVHLv: } public function doPageZhuanPanLuckyList() { goto n1_V8; fU3gC: return $this->result(1, $data["message"]); goto eVC4U; fOL3_: $pageIndex = $_GPC["page"]; goto UtKR_; QQPNL: if (!is_error($data)) { goto ws_oO; } goto fU3gC; n1_V8: global $_W, $_GPC; goto fOL3_; qUQoJ: return $this->result(0, "加载中奖列表成功", $data["list"]); goto TkMl6; S1kij: $data = $LuckyService->getLuckyByPage(array(), $pageIndex); goto QQPNL; eVC4U: ws_oO: goto qUQoJ; UtKR_: $LuckyService = new ZhuanPanLuckyService(); goto S1kij; TkMl6: } public function doPageZhuanPanMyLucky() { goto PQc2F; YQmbI: $LuckyService = new ZhuanPanLuckyService(); goto XyYJg; PQc2F: global $_W, $_GPC; goto UiKD6; tDHyD: return $this->result(1, $data["message"]); goto GqTxX; q_ATB: return $this->result(1, $memberInfo["message"]); goto F3kz0; UiKD6: $pageIndex = $_GPC["page"]; goto a1jp0; Jsran: if (!is_error($data)) { goto h0cSL; } goto tDHyD; a1jp0: $MemberService = new MemberService(); goto FlMI3; SAxc4: if (!is_error($memberInfo)) { goto Nt3EE; } goto q_ATB; mVs7K: return $this->result(0, "加载我的中奖列表成功", $data["list"]); goto wdnVY; GqTxX: h0cSL: goto mVs7K; F3kz0: Nt3EE: goto YQmbI; FlMI3: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto SAxc4; XyYJg: $data = $LuckyService->getMyLucky($memberInfo["u_id"], $pageIndex); goto Jsran; wdnVY: } public function doPageLiveRoom() { goto YdEWa; vJpwi: UDSYW: goto YUEuY; YdEWa: global $_W; goto vacVf; tmp_c: return $this->result(0, $roomList["message"]); goto vJpwi; vacVf: $LiveService = new LiveService(); goto h9NJg; Jw0rz: if (!is_error($roomList)) { goto UDSYW; } goto tmp_c; YUEuY: return $this->result(0, "加载直播列表成功", $roomList); goto PItTB; h9NJg: $roomList = $LiveService->readRoomList($this->module["config"]["live_room_cache_time"]); goto Jw0rz; PItTB: } public function doPageSubscribeIds() { goto uq7r8; QhSBq: $SubscribeMessageService = new SubscribeMessageService(); goto KKUg8; H9BfX: if (!is_error($messageList)) { goto o0ESK; } goto bVHYL; ffiyk: o0ESK: goto HDG0B; bVHYL: return $this->result(1, $messageList["message"]); goto ffiyk; HDG0B: return $this->result(0, "加载订阅消息列表成功", $messageList); goto ZEo8r; KKUg8: $messageList = $SubscribeMessageService->getSubscribeTemplateIds($globalConfig); goto H9BfX; uq7r8: $globalConfig = $this->module["config"]; goto QhSBq; ZEo8r: } public function doPageUpdateMember() { goto uPRs2; xUiM4: $updateResult = $MemberService->updateMemberByOpenid($_W["openid"], $_GPC); goto FYh6m; gLY5q: return $this->result(1, $updateResult["message"]); goto CNgg7; FYh6m: if (!is_error($updateResult)) { goto W7Xu3; } goto gLY5q; CNgg7: W7Xu3: goto I2fI2; I2fI2: return $this->result(0, "更新会员信息成功"); goto HIccL; Kkjc6: $MemberService = new MemberService(); goto xUiM4; uPRs2: global $_W, $_GPC; goto Kkjc6; HIccL: } public function doPageActivityList() { goto yaAT0; fcB9D: $list = $ActivityService->getAllAppActivity(); goto ie2h_; DfoH0: return $this->result(0, "加载活动预约成功", $list); goto xCdit; yaAT0: $ActivityService = new ActivityService(); goto fcB9D; cx3GN: wutOm: goto DfoH0; ie2h_: if (!is_error($list)) { goto wutOm; } goto SvnE4; SvnE4: return $this->result(1, $list["message"]); goto cx3GN; xCdit: } public function doPageActivityTime() { goto yNfRn; AfsqL: return $this->result(0, "加载活动时间成功", $time); goto LzXUF; nFm6D: $day = $_GPC["day"]; goto zLtiD; wKVpO: return $this->result(1, $time["message"]); goto PrNhy; HeXyI: if (!is_error($time)) { goto o9bGW; } goto wKVpO; yNfRn: global $_GPC; goto MgwGg; MmqAB: $time = $ActivityService->getAppActivityTime($activityId, $day); goto HeXyI; PrNhy: o9bGW: goto AfsqL; MgwGg: $activityId = $_GPC["id"]; goto nFm6D; zLtiD: $ActivityService = new ActivityService(); goto MmqAB; LzXUF: } public function doPageActivityOrder() { goto AKgZN; AKgZN: global $_W, $_GPC; goto ZEYg3; fYTtG: gFTy_: goto YZFMM; wPr6l: if (!is_error($memberInfo)) { goto gFTy_; } goto OOp02; gwvnt: $MemberService = new MemberService(); goto TJTHB; TJTHB: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto wPr6l; P2y8i: if (!is_error($orderResult)) { goto fssF6; } goto fWlRV; GvU3z: fssF6: goto AqMyf; YZFMM: $ActivityService = new ActivityService(); goto SIVVv; OOp02: return $this->result(1, $memberInfo["message"]); goto fYTtG; SIVVv: $orderResult = $ActivityService->addActivityOrder($_GPC["id"], $_GPC["day"], $_GPC["time"], $touristList, $_GPC["mobile"], $memberInfo["u_id"]); goto P2y8i; ZEYg3: $touristList = json_decode(htmlspecialchars_decode($_GPC["touristList"]), true); goto gwvnt; fWlRV: return $this->result(1, $orderResult["message"]); goto GvU3z; AqMyf: return $this->result(0, "预约成功", $orderResult); goto MOYw1; MOYw1: } public function doPageActivityMyOrder() { goto E5msy; H5WP8: GP7Cb: goto BYrBx; E5msy: global $_W, $_GPC; goto KiPpR; AdmxX: if (!is_error($memberInfo)) { goto Ddhz1; } goto lHR9M; KiPpR: $MemberService = new MemberService(); goto QFwQI; RjsNS: Ddhz1: goto l_OgC; c9I8S: $orderList = $ActivityOrderService->getAppMyOrderList($memberInfo["u_id"], $_GPC["page"]); goto tmyNv; QFwQI: $memberInfo = $MemberService->getMemberInfo($_W["openid"]); goto AdmxX; lHR9M: return $this->result(1, $memberInfo["message"]); goto RjsNS; BYrBx: return $this->result(0, "加载订购列表成功", $orderList); goto iBO6R; b179e: return $this->result(1, $orderList["message"]); goto H5WP8; l_OgC: $ActivityOrderService = new ActivityOrderService(); goto c9I8S; tmyNv: if (!is_error($orderList)) { goto GP7Cb; } goto b179e; iBO6R: } public function doPageActivityOrderDetail() { goto EZkkk; nQkXj: $orderDetail = $ActivityOrderService->getAppOrderDetail($_GPC["id"]); goto TnXNV; CCgL0: qEgbL: goto Mp_Um; TnXNV: if (!is_error($orderDetail)) { goto qEgbL; } goto n8f_x; n_H9U: $ActivityOrderService = new ActivityOrderService(); goto nQkXj; n8f_x: return $this->result(1, $orderDetail["message"]); goto CCgL0; EZkkk: global $_GPC; goto n_H9U; Mp_Um: return $this->result(0, "加载订单详情成功", $orderDetail); goto L5xt3; L5xt3: } public function doPageActivityCancelTourist() { goto rMOqp; b04Xg: return $this->result(0, "取消预订成功", $_GPC["id"]); goto uQaVt; TEjZR: c54bC: goto b04Xg; W3MXK: return $this->result(1, $cancelResult["message"]); goto TEjZR; PldFB: $cancelResult = $ActivityTouristService->cancelTourist($_GPC["id"]); goto YtMgN; CyxZS: $ActivityTouristService = new ActivityTouristService(); goto PldFB; rMOqp: global $_GPC; goto CyxZS; YtMgN: if (!is_error($cancelResult)) { goto c54bC; } goto W3MXK; uQaVt: } public function doPageShopNewOrder() { goto tB8ya; dw9gD: $list = $OrderService->getShopNewOrderByPage($shopId, $page); goto eZxnW; tB8ya: global $_GPC; goto P1ODh; cskHe: gTE5c: goto ectz6; P1ODh: $shopId = $_GPC["shopId"]; goto Gw0VS; eZxnW: if (!is_error($list)) { goto gTE5c; } goto O59Dj; jxKot: $OrderService = new OrderService(); goto dw9gD; Gw0VS: $page = $_GPC["page"]; goto jxKot; O59Dj: return $this->result(1, $list["message"]); goto cskHe; ectz6: return $this->result(0, "加载店铺订单成功", $list); goto MmxYB; MmxYB: } } ?>