Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace app\admin\controller; use app\admin\service\ArRedis; use app\admin\servi..
Decoded Output download
<?php
namespace appdmin\controller; use appdmin\service\ArRedis; use appdmin\service\BusActivity; use think\Db; require EXTEND_PATH . "Wxpay/WxPay.Api.php"; class Activity extends Base { protected $contr_share_set = array("1" => "", "2" => "", "3" => "", "4" => "", "5" => "", "6" => "", "7" => "", "8" => "", "9" => "", "10" => "", "11" => "", "12" => "", "13" => ""); protected $contr_pay_type = array("0" => "", "1" => "", "2" => "", "3" => ""); protected $contr_order_status = array("-1" => "", "0" => "", "1" => "", "2" => "", "3" => "", "4" => "", "5" => ""); protected $contr_share_deep = 3; public function index() { goto TlAeV; JlDX3: $url = request()->query(); goto vIr6Z; SPwq9: $list = Db::name("ybmp_business_activity")->where("activity_name", "like", "%{$actn}%")->where("mch_id", $mch_id)->order("star_time", "desc")->paginate(20, false, ["query" => ["s" => $url]]); goto JQCS6; u40_L: if ($actn) { goto DiZ5Q; } goto WQeoL; qQmjc: return view("activity/index"); goto ilc4o; mLFl_: $condition["mch_id"] = array("eq", $mch_id); goto WH00j; HHhnq: $this->assign("page", $page); goto qQmjc; lxJ5J: $actn = request()->post("search_text", ''); goto u40_L; TKuWA: $url = explode("&", $url[1]); goto HFfVC; MRhg3: $this->assign("search_text", $actn); goto hQUWB; WH00j: $list = $activity->getActivityAll($condition, '', "star_time desc"); goto sPemO; HFfVC: $url = "/" . $url[0]; goto SPwq9; WQeoL: $activity = new BusActivity(); goto mLFl_; L2iIU: $page = $list->render(); goto MRhg3; vIr6Z: $url = explode("=/", $url); goto TKuWA; JQCS6: Rl4BZ: goto L2iIU; TlAeV: $mch_id = isset($this->bus_id) ? $this->bus_id : "0"; goto lxJ5J; hQUWB: $this->assign("list", $list); goto HHhnq; sPemO: goto Rl4BZ; goto gl708; gl708: DiZ5Q: goto JlDX3; ilc4o: } public function addActivity() { goto BSqsf; QF_Wl: $satisfy_money = input("param.satisfy_money", "0"); goto Myeln; OK8QS: $activity = new BusActivity(); goto knbzF; E4FDw: return view("activity/add_activity"); goto OAUbL; FiWx1: vqxwZ: goto E4FDw; t9MfN: return AjaxReturn($res); goto FiWx1; gkGGc: $end_time = strtotime(input("param.end_time", "0")); goto Un98y; Ys0zF: $activity_name = input("param.activity_name", ''); goto QF_Wl; Un98y: $is_use = input("param.is_use"); goto xjMKw; BSqsf: $mch_id = isset($this->bus_id) ? $this->bus_id : "0"; goto OK8QS; Myeln: $discount_money = input("param.discount_money", "0"); goto YDX2B; knbzF: if (!(request()->isAjax() && request()->isPost())) { goto vqxwZ; } goto Ys0zF; YDX2B: $star_time = strtotime(input("param.star_time"), "0"); goto gkGGc; xjMKw: $res = $activity->addActivity($activity_name, $satisfy_money, $discount_money, $star_time, $end_time, $is_use, $mch_id); goto t9MfN; OAUbL: } public function editActivity() { goto RR482; ZbqhN: $satisfy_money = input("param.satisfy_money", "0"); goto ifTlN; aZ42d: $this->assign("info", $info); goto IpuWx; RR482: $mch_id = isset($this->bus_id) ? $this->bus_id : "0"; goto ZBLKY; zyv4y: $is_use = input("param.is_use"); goto rYKZc; HW7CY: $star_time = strtotime(input("param.star_time"), "0"); goto u1KHM; ifTlN: $discount_money = input("param.discount_money", "0"); goto HW7CY; u1KHM: $end_time = strtotime(input("param.end_time", "0")); goto zyv4y; rYKZc: $res = $activity->editActivity($id, $activity_name, $satisfy_money, $discount_money, $star_time, $end_time, $is_use, $mch_id); goto NCIdL; IzImi: if (!(request()->isAjax() && request()->isPost())) { goto eKlwr; } goto L68H3; zwsgR: $activity_name = input("param.activity_name", ''); goto ZbqhN; hpzDA: $id = input("param.id", "0"); goto mXkNl; IpuWx: return view("activity/edit_activity"); goto WiADm; L68H3: $id = input("param.id", "0"); goto zwsgR; t5vif: eKlwr: goto hpzDA; NCIdL: return AjaxReturn($res); goto t5vif; ZBLKY: $activity = new BusActivity(); goto IzImi; mXkNl: $info = $activity->getActivityInfo($id); goto aZ42d; WiADm: } public function delActivity() { goto S45Qg; Q84ha: $res = $activity->delActivity($id, $mch_id); goto PsYbn; S_EKp: $id = input("param.id", "0"); goto Q84ha; PsYbn: return AjaxReturn($res); goto b0Iqv; S45Qg: $mch_id = isset($this->bus_id) ? $this->bus_id : "0"; goto xjBRm; xjBRm: $activity = new BusActivity(); goto S_EKp; b0Iqv: } public function offActivity() { goto tvSv3; miVSR: $activity = new BusActivity(); goto Njf8C; tvSv3: $mch_id = isset($this->bus_id) ? $this->bus_id : "0"; goto miVSR; hICyq: return AjaxReturn($res); goto OAkcX; Cphcu: $res = $activity->offActivity($id); goto hICyq; Njf8C: $id = input("param.id", "0"); goto Cphcu; OAkcX: } public function onActivity() { goto wAaMr; zGX_o: $id = input("param.id", "0"); goto JqooD; sF18N: return AjaxReturn($res); goto H3Gdu; JqooD: $res = $activity->onActivity($id); goto sF18N; wAaMr: $mch_id = isset($this->bus_id) ? $this->bus_id : "0"; goto hws7e; hws7e: $activity = new BusActivity(); goto zGX_o; H3Gdu: } public function coupon() { goto zRD4L; qWrGl: zs9g9: goto Xaj3s; Xaj3s: $list = db::name("ybmp_business_coupon")->where("mch_id", $this->bus_id)->where($where)->where("is_del", 0)->order("end_time")->paginate(20); goto uj9W1; Sax5G: $where = array(); goto hK0O4; izQdF: $this->assign("list", $list); goto JaiBE; G6zJk: return view("activity/coupon"); goto LAfG7; hK0O4: if (empty($search_text)) { goto zs9g9; } goto k7bHG; k7bHG: $where["activity_name"] = array("like", "%" . $search_text . "%"); goto qWrGl; zRD4L: $search_text = request()->param("search_text", ''); goto Sax5G; uj9W1: $page = $list->render(); goto izQdF; JaiBE: $this->assign("page", $page); goto DF7dw; DF7dw: $this->assign("search_text", $search_text); goto G6zJk; LAfG7: } public function add_coupon() { goto y_5SC; NapJL: $data["satisfy_money"] = input("param.satisfy_money", "0"); goto ECgN4; ClVuC: $data["activity_name"] = input("param.activity_name", ''); goto NapJL; TuNDx: $data["end_time"] = strtotime(input("param.end_time", "0")); goto QHgpl; HfjfN: $data["mch_id"] = $this->bus_id; goto v7Fo_; l071f: Uig_i: goto qJfEB; ECgN4: $data["discount_money"] = input("param.discount_money", "0"); goto VkUtb; VkUtb: $data["star_time"] = strtotime(input("param.star_time"), "0"); goto TuNDx; WGS94: $data["rem_count"] = input("param.count", "10"); goto W56MK; qJfEB: return view("activity/coupon_add"); goto ubJI0; W56MK: $data["get_count"] = input("param.get_count", ''); goto x2Kdh; YcMo6: $res = db::name("ybmp_business_coupon")->insert($data); goto H_1fL; v7Fo_: $data["count"] = input("param.count", "10"); goto WGS94; QHgpl: $data["is_use"] = input("param.is_use"); goto HfjfN; H_1fL: return AjaxReturn($res); goto l071f; y_5SC: if (!(request()->isAjax() && request()->isPost())) { goto Uig_i; } goto ClVuC; x2Kdh: $data["together"] = input("param.together", "1"); goto YcMo6; ubJI0: } public function update_coupon() { goto zR0bQ; zR0bQ: if (!(request()->isAjax() && request()->isPost())) { goto rSOn_; } goto oL_Za; X85It: return AjaxReturn($res); goto H2RfK; hfibb: $data["rem_count1"] = input("param.rem_count", "10"); goto x1Kgn; N2Uuu: $data["discount_money"] = input("param.discount_money", "0"); goto hsLWI; oL_Za: $data["id"] = input("param.id", ''); goto cS4uY; H2RfK: rSOn_: goto H8npy; CJV3C: $data["rem_count"] = $data["rem_count1"] + $data["count2"]; goto MZZA4; x1Kgn: $data["count_copy"] = input("param.count_copy", ''); goto X1Pi5; Cx6jF: $data["mch_id"] = $this->bus_id; goto NKWMT; hsLWI: $data["star_time"] = strtotime(input("param.star_time"), "0"); goto xYySh; JZIa1: $data["count"] = $data["count_copy"] + $data["count2"]; goto CJV3C; MZZA4: $res = db::name("ybmp_business_coupon")->where(["id" => $data["id"]])->update(["count" => $data["count"], "rem_count" => $data["rem_count"], "activity_name" => $data["activity_name"], "star_time" => $data["star_time"], "end_time" => $data["end_time"]]); goto X85It; NKWMT: $data["count1"] = input("param.count", "10"); goto hfibb; CWZw0: $data["satisfy_money"] = input("param.satisfy_money", "0"); goto N2Uuu; cS4uY: $data["activity_name"] = input("param.activity_name", ''); goto CWZw0; X1Pi5: $data["count2"] = $data["count1"] - $data["count_copy"]; goto JZIa1; H8npy: return view("activity/coupon_edit"); goto FSxjx; xYySh: $data["end_time"] = strtotime(input("param.end_time", "0")); goto Cx6jF; FSxjx: } public function off_coupon() { goto GyPQ_; pKmIK: return AjaxReturn($res); goto Zv0Mi; QvKCY: $res = db::name("ybmp_business_coupon")->where("id", $id)->update(["is_use" => 2]); goto pKmIK; GyPQ_: $id = input("param.id", "0"); goto QvKCY; Zv0Mi: } public function on_coupon() { goto STa1L; AhHn_: $res = db::name("ybmp_business_coupon")->where("id", $id)->update(["is_use" => 1]); goto h4Jtt; h4Jtt: return AjaxReturn($res); goto oNuEM; STa1L: $id = input("param.id", "0"); goto AhHn_; oNuEM: } public function together_stop() { goto k4ifd; SaVhj: return AjaxReturn($res); goto FxbT6; isUGf: $res = db::name("ybmp_business_coupon")->where("id", $id)->update(["together" => 1]); goto SaVhj; k4ifd: $id = input("param.id", "0"); goto isUGf; FxbT6: } public function together_on() { goto uDnXs; uDnXs: $id = input("param.id", "0"); goto n6ISU; AY2Kw: return AjaxReturn($res); goto WQE6W; n6ISU: $res = db::name("ybmp_business_coupon")->where("id", $id)->update(["together" => 2]); goto AY2Kw; WQE6W: } public function coupon_del() { goto tOgyu; j1nmj: $res = db::name("ybmp_business_coupon")->where("id", $id)->update(["is_del" => 1, "is_use" => 2]); goto ybYPT; tOgyu: $id = input("param.id", "0"); goto j1nmj; ybYPT: return AjaxReturn($res); goto hRoAj; hRoAj: } public function edit_coupon() { goto dzzE2; GzhuS: return view("activity/coupon_edit"); goto B9VPd; pFusZ: $this->assign("list", $list); goto GzhuS; Lm4zC: $list = db::name("ybmp_business_coupon")->where(["id" => $id])->find(); goto pFusZ; dzzE2: $id = input("get.id", "0"); goto Lm4zC; B9VPd: } public function together_user_list() { goto Khagf; ztuzT: return view("activity/coupon_user_list"); goto NHDLY; s4xy4: $url = "/" . $url[0]; goto x9dQF; QJRbb: $this->assign("list", $list); goto pLLK8; pdkNj: $search_text = preg_replace("# #", '', input("param.search_text")); goto uRtYH; pLLK8: $this->assign("page", $page); goto E4mmS; jcVS9: $url = explode("&", $url[1]); goto s4xy4; x9dQF: $list = db::name("ybmp_user_coupon")->alias("c")->join("ybmp_user u", "u.uid=c.user_id")->where("c.mch_id", $this->bus_id)->where("c.coupon_id", $id)->where($where)->field("u.nick_name,c.*")->order("c.get_time desc")->paginate(4, false, ["query" => ["s" => $url, "id" => $id]]); goto A2bZd; Khagf: $id = input("param.id"); goto pdkNj; U6aOH: $where["c.key"] = array("like", "%" . $search_text . "%"); goto pt0v9; Dxdy3: if (empty($search_text)) { goto DvpY7; } goto U6aOH; uRtYH: $where = array(); goto Dxdy3; onmKw: $url = request()->query(); goto jYQpF; xkdSD: $end_time = db::name("ybmp_business_coupon")->where("id", $id)->value("end_time"); goto wb8OO; jYQpF: $url = explode("=/", $url); goto jcVS9; A2bZd: $page = $list->render(); goto QJRbb; wb8OO: $this->assign("end_time", $end_time); goto onmKw; E4mmS: $this->assign("id", $id); goto bem4f; pt0v9: DvpY7: goto xkdSD; bem4f: $this->assign("search_text", $search_text); goto ztuzT; NHDLY: } public function coupon_user_hx() { goto Ppn2n; Ppn2n: $id = input("param.id"); goto Wmv3m; Wmv3m: $res = db::name("ybmp_user_coupon")->where("id", $id)->update(["use_time" => time(), "status" => 1]); goto rJHeS; rJHeS: return AjaxReturn($res); goto CEa0T; CEa0T: } public function user_share() { goto m8Eb6; Ea9ak: if ($user[$i]["pid"] == 0) { goto Bb1E4; } goto Himiw; lqDHI: ZkMjI: goto H7AHA; ZqoRZ: $condition["status"] = $status; goto LRysZ; GYpM3: $this->assign("search_name", $search_name); goto KKBG5; QQOc0: pgqSs: goto Ea9ak; GGnCG: Bb1E4: goto Np9sO; VTu9h: $this->assign("deep", $deep); goto C6laC; nLCWt: $res[$i]["seller_comments"] = substr($user[$i]["seller_comments"], 0, 9) . "..."; goto QQOc0; LRysZ: wPaLd: goto rop78; SESqx: $pid = db::name("ybmp_user")->field("nick_name")->where("uid", $user[$i]["pid"])->find(); goto zn8Xf; fUjdW: d22yZ: goto VKUdG; EzyK_: $res = array(); goto uItZz; vHAdG: $res[$i]["father"] = $pid["name"]; goto B2iZa; VKUdG: if (!($status == "0" || $status == "1")) { goto wPaLd; } goto ZqoRZ; TQAM3: if (!empty($pid)) { goto trPDT; } goto SESqx; J9TMh: trPDT: goto vHAdG; rop78: $user = db::name("ybmp_user_share")->alias("s")->join("ybmp_user u", "s.user_id=u.uid")->field("s.user_id sid,mobile,name,status,create_time,seller_comments,nick_name,total_price,price,pid")->where($condition)->paginate(10, false, $config = ["query" => ["s" => $url]]); goto fldaR; zn8Xf: $res[$i]["father"] = $pid["nick_name"]; goto dzZ11; VtdO0: $deep = $d["level"]; goto qBJpH; nBgQi: goto NcxwQ; goto LzGWB; C6laC: $this->assign("page", $user->render()); goto AMgFJ; hXQeu: $res[$i]["child"] = $get_child->get_child_share($user[$i]["sid"], "-1", $deep); goto lqDHI; B2iZa: sthVM: goto Dsrl5; CVC8a: NcxwQ: goto hyen2; Z9aOK: if (empty($search_name)) { goto d22yZ; } goto ONZVa; Dsrl5: goto B8zVO; goto GGnCG; KKBG5: $this->assign("list", $res); goto VTu9h; gxYnE: $url = explode("=/", $url); goto CSW06; Np9sO: $res[$i]["father"] = ""; goto uMli_; XYs9h: $mch_id = $this->bus_id; goto LgvAU; msQLg: if (!(strlen($user[$i]["seller_comments"]) > 10)) { goto pgqSs; } goto nLCWt; dzZ11: goto sthVM; goto J9TMh; ONZVa: $condition["nick_name"] = ["like", "%" . $search_name . "%"]; goto fUjdW; gaacw: $url = request()->query(); goto gxYnE; CSW06: $url = explode("&", $url[1]); goto lTmug; Himiw: $pid = db::name("ybmp_user_share")->field("name")->where("user_id", $user[$i]["pid"])->find(); goto TQAM3; qBJpH: $get_child = new BusActivity(); goto EzyK_; fldaR: $d = db::name("ybmp_user_share_setting")->where("mch_id", $mch_id)->field("level")->find(); goto VtdO0; lTmug: $url = "/" . $url[0]; goto Vf8BN; Ogaf1: $condition["s.is_del"] = 1; goto XYs9h; AmPuH: $this->assign("status", $status); goto GYpM3; uItZz: $i = 0; goto CVC8a; uMli_: B8zVO: goto hXQeu; oOI2C: $res[$i] = $user[$i]; goto msQLg; Vf8BN: $status = request()->get("status", ''); goto HBmxT; H7AHA: $i++; goto nBgQi; hyen2: if (!($i < count($user))) { goto ggddx; } goto oOI2C; m8Eb6: @pdo_run("UPDATE " . hink\Config::get("database.prefix") . "ybmp_user SET pid=0 WHERE pid=uid AND is_distributor=1"); goto gaacw; AMgFJ: return view(); goto fDa5w; LgvAU: $condition["s.mch_id"] = $mch_id; goto Z9aOK; HBmxT: $search_name = input("param.search_name", ''); goto Ogaf1; LzGWB: ggddx: goto AmPuH; fDa5w: } public function user_share_edit() { goto SPM5s; SPM5s: $id = input("param.id", "0"); goto Z4m8b; P9y1R: goto uuTyi; goto K8Rcg; StIeE: ScbIV: goto dw34U; ImdAj: switch ($type) { case "del_share": $sql = "update " . hink\Config::get("database.prefix") . "ybmp_user_share s INNER JOIN " . hink\Config::get("database.prefix") . "ybmp_user u on s.user_id=u.uid set s.is_del = 2,u.is_distributor=0 where s.user_id=" . $id; goto ScbIV; case "is_pass": $sql = "update " . hink\Config::get("database.prefix") . "ybmp_user_share s INNER JOIN " . hink\Config::get("database.prefix") . "ybmp_user u on s.user_id=u.uid set s.status = 1,u.is_distributor=1 where s.user_id=" . $id; goto ScbIV; case "no_pass": $sql = "update " . hink\Config::get("database.prefix") . "ybmp_user_share s INNER JOIN " . hink\Config::get("database.prefix") . "ybmp_user u on s.user_id=u.uid set s.status = 2,u.is_distributor=0 where s.user_id=" . $id; goto ScbIV; case "all_pass": goto tnRVW; tnRVW: $check = new BusActivity(); goto i2Vfn; GB7yh: $sql = "update " . hink\Config::get("database.prefix") . "ybmp_user_share s INNER JOIN " . hink\Config::get("database.prefix") . "ybmp_user u on s.user_id=u.uid set s.status = 1,u.is_distributor=1 where s.user_id in ( " . $id . " )"; goto SKGMv; SKGMv: goto ScbIV; goto OKh9Q; i2Vfn: $id = $check->screen_id("ybmp_user_share", $id, "user_id", 0, "status"); goto l3RV3; s0Ju2: return 1; goto AMlc7; AMlc7: r7NGE: goto GB7yh; l3RV3: if (!(strlen($id) == 0)) { goto r7NGE; } goto s0Ju2; OKh9Q: } goto sxj7A; Z4m8b: $type = input("param.types", "0"); goto ImdAj; dw34U: if ($sql == '') { goto l1B7B; } goto ond93; ond93: @pdo_run($sql); goto Cl4iB; sxj7A: ZaZCt: goto StIeE; K8Rcg: l1B7B: goto QnKcX; QnKcX: return 0; goto PeOl8; PeOl8: uuTyi: goto KqXLP; Cl4iB: return 1; goto P9y1R; KqXLP: } public function comment_edit() { goto chm1o; cNT1O: $this->assign("data", $comment); goto qyzTx; t38r8: $comment = db::name("ybmp_user_share")->where("user_id", $id)->field("seller_comments,user_id")->find(); goto cNT1O; qyzTx: return view("activity/comment_edit"); goto xvmaV; chm1o: $id = request()->get("id", "0"); goto t38r8; xvmaV: } public function update_comment() { goto BK2L1; doeYp: return "2"; goto KmVEt; U3pEN: if (!empty($com)) { goto cUElp; } goto YCat_; OxlYL: cUElp: goto tEhI5; BK2L1: $id = input("param.id"); goto UMq8D; YCat_: return "1"; goto ipuO8; KmVEt: osqfC: goto nm0BH; UMq8D: $com = request()->post("com"); goto U3pEN; ipuO8: goto osqfC; goto OxlYL; y0G_t: pdo_run($sql); goto doeYp; tEhI5: $sql = "update " . hink\Config::get("database.prefix") . "ybmp_user_share set seller_comments='" . $com . "' where user_id=" . $id; goto y0G_t; nm0BH: } public function child_show() { goto J3p19; I1pQg: $deep = request()->get("deep"); goto Xlxrk; J3p19: $get_child = new BusActivity(); goto WpX6F; ZKRMG: $this->assign("list", $child); goto aA09R; aA09R: return view(); goto h2u3d; WpX6F: $pid = request()->get("pid"); goto I1pQg; Xlxrk: $child = $get_child->get_child_share($pid, $deep); goto ZKRMG; h2u3d: } public function recancel() { goto QZXCZ; QZXCZ: $pid = request()->post("id"); goto JicMT; jSegB: return AjaxReturn($res); goto THPAb; JicMT: $res = db::name("ybmp_user")->where("uid", $pid)->update(["pid" => 0]); goto jSegB; THPAb: } public function share_set() { goto Q4VVa; KBiGS: p7kfg: goto CylvZ; qfk62: $level = request()->post("level"); goto yimz2; oIORj: $min_money = request()->post("min_money"); goto VVyKJ; pelMk: $share["min_money"] = "0.00"; goto rETuY; Wt81j: $is_rebate = request()->post("is_rebate"); goto qfk62; oLGWv: $res = db::name("ybmp_user_share_setting")->insert(["level" => $level, "pay_type" => $pay_type, "min_money" => $min_money, "max_money" => $max_money, "content" => $content, "share_condition" => $share_condition, "agree" => $agree, "mch_id" => $this->bus_id, "is_rebate" => $is_rebate]); goto ZkkXJ; rV30N: $share["content"] = ''; goto DeqRM; rETuY: $share["max_money"] = "0.00"; goto rV30N; U2Tvh: $data = "2"; goto uX0iu; wmlKL: $content = request()->post("content"); goto iozDO; sm3iT: $pay_type = request()->post("pay_type"); goto oIORj; wAarF: neacf: goto oLGWv; ZkkXJ: m1lol: goto U2Tvh; yimz2: $count = db::name("ybmp_user_share_setting")->where("mch_id", $id)->count(); goto B3cAd; DeqRM: $share["agree"] = ''; goto vJJ4r; KAKb2: $share["is_rebate"] = 0; goto pelMk; xgqoH: if (!(count($share) == 0)) { goto YQvC2; } goto SfJg4; Q4VVa: $id = $this->bus_id; goto sm3iT; B3cAd: if (!(!empty($level) || $level == "0")) { goto p7kfg; } goto yysNN; iozDO: $agree = request()->post("agree"); goto VPycV; CylvZ: $share = db::name("ybmp_user_share_setting")->where("mch_id", $id)->find(); goto xgqoH; uX0iu: return $data; goto KBiGS; MQ3F_: $share["level"] = 0; goto KAKb2; SfJg4: $share["pay_type"] = ''; goto MQ3F_; uMbR9: $this->assign("share", $share); goto fHiD0; VVyKJ: $max_money = request()->post("max_money"); goto wmlKL; VPycV: $share_condition = request()->post("share_condition"); goto Wt81j; vJJ4r: YQvC2: goto K1CuP; tk6qZ: $res = db::name("ybmp_user_share_setting")->where("mch_id", $id)->update(["level" => $level, "pay_type" => $pay_type, "min_money" => $min_money, "max_money" => $max_money, "content" => $content, "share_condition" => $share_condition, "agree" => $agree, "mch_id" => $this->bus_id, "is_rebate" => $is_rebate]); goto P4Dlj; fHiD0: return view(); goto izJfK; P4Dlj: goto m1lol; goto wAarF; K1CuP: $share["pay_type"] = json_decode($share["pay_type"], true); goto uMbR9; yysNN: if ($count == 0) { goto neacf; } goto tk6qZ; izJfK: } public function share_pay() { goto gOYWv; FrbvP: $share["icon"] = "%"; goto u4Pso; Rfj4Z: if (!empty($share["price_type"]) && $share["price_type"] != 0) { goto wDgsr; } goto FrbvP; cxyh2: PpH5J: goto dZkO0; EM_x1: $share["price_type"] = "0"; goto zGpzo; D3la2: ga_u9: goto HVDWR; u4Pso: if (!($share["level"] == 0)) { goto z31Cv; } goto zgRa2; sSjBP: $share["level"] = 0; goto cxyh2; l0x7I: goto HLWrM; goto UTa5I; RMsKf: Cp424: goto xGPyC; cicTS: HLWrM: goto t1HKj; sMafm: return view(); goto CvBzp; D5uJ3: if (!(count($share) == 0)) { goto PpH5J; } goto sSjBP; Rjbqj: $share["third"] = "-1"; goto mpCFq; ZgvTm: return "0"; goto bwps0; dZkO0: switch ($share["level"]) { case 0: goto IPmYa; case 1: goto XBPDX; bT60D: $share["third"] = "-1"; goto oFeiV; oFeiV: goto IPmYa; goto XptN_; XBPDX: $share["second"] = "-1"; goto bT60D; XptN_: case 2: $share["third"] = "-1"; goto IPmYa; } goto RMsKf; zgRa2: $share["level"] = "6"; goto EM_x1; N_cav: $share["icon"] = ""; goto cicTS; zGpzo: $share["second"] = "-1"; goto Rjbqj; UTa5I: wDgsr: goto N_cav; pzJ2h: $this->assign("share", $share); goto sMafm; L30vp: if (request()->isAjax() && request()->isPost()) { goto ga_u9; } goto ofHxM; HVDWR: $share = db::name("ybmp_user_share_setting")->where("mch_id", $id)->update(request()->post()); goto ZgvTm; mpCFq: z31Cv: goto l0x7I; t1HKj: goto cNyEq; goto D3la2; ofHxM: $share = db::name("ybmp_user_share_setting")->where("mch_id", $id)->field("id,level,first_name,second_name,third_name,first,second,third,price_type")->find(); goto D5uJ3; bwps0: cNyEq: goto pzJ2h; xGPyC: IPmYa: goto Rfj4Z; gOYWv: $id = $this->bus_id; goto L30vp; CvBzp: } public function share_other() { goto Y0g65; Q_9tQ: $this->assign("share_default", $share_default); goto qvxHi; Y0g65: $id = $this->bus_id; goto l3ncg; Xzr2V: $share = db::name("ybmp_user_share_setting")->where("mch_id", $id)->field("other")->find(); goto QDmBm; qvxHi: return view(); goto BTWS0; edhu2: $share = db::name("ybmp_user_share_setting")->where("mch_id", $id)->update(request()->post()); goto VFYBc; piJKP: jftHn: goto EUAAS; T0YDi: goto jftHn; goto RR23O; i0iFu: $share = json_decode($share["other"], true); goto piJKP; QDmBm: $share_default = $this->contr_share_set; goto rRQCm; W4Ng0: $share = $share_default; goto T0YDi; RR23O: wPvFn: goto i0iFu; l3ncg: if (!(request()->isAjax() && request()->isPost())) { goto AnNt0; } goto edhu2; EUAAS: $this->assign("share", $share); goto Q_9tQ; VFYBc: return "0"; goto vNmfB; rRQCm: if ($share["other"]) { goto wPvFn; } goto W4Ng0; vNmfB: AnNt0: goto Xzr2V; BTWS0: } public function set_share_title() { goto QfS2Z; Gjnh3: goto s0M9H; goto m8UNo; AAkFk: s0M9H: goto J0Ipd; XUw90: return AjaxReturn($res); goto bplvO; GCfmt: $res = Db::name("ybmp_user_share_setting")->where("mch_id", $this->bus_id)->update(["other" => $new_data]); goto XUw90; m8UNo: qjh3n: goto R1IDY; QfS2Z: $type = input("param.type"); goto Updy6; R1IDY: $data = $this->contr_share_set; goto AAkFk; kfuIy: $data = json_decode($info, true); goto Gjnh3; Updy6: $val = input("param.val"); goto Pj5X5; HJK00: $new_data = json_encode($data); goto GCfmt; eI3CN: if (empty($info)) { goto qjh3n; } goto kfuIy; Pj5X5: $info = Db::name("ybmp_user_share_setting")->where("mch_id", $this->bus_id)->value("other"); goto eI3CN; J0Ipd: $data[$type] = $val; goto HJK00; bplvO: } public function share_cash() { goto ntrJp; fifS7: if (!($i < count($cash))) { goto iiFKq; } goto bweaC; M2st5: lUltz: goto PuzNo; sOmFb: if (!($nn == "2")) { goto BZqKm; } goto CKnTE; M6OU_: $cash = db::name("ybmp_user_share_cash")->alias("c")->join("ybmp_user u", "u.uid=c.user_id")->field("c.id,c.type,u.nick_name,u.price total,c.price price,c.create_time,c.status,c.bank_name,c.mobile")->where($condition)->paginate(10, false, $config = ["query" => ["s" => $url]]); goto LyUbD; V26xd: $url = "/" . $url[0]; goto mC84l; zv_FE: $i++; goto hAz_G; PWgtC: $nn = ''; goto IWtA1; SYiod: return view(); goto nMsEA; ntrJp: $url = request()->query(); goto XeYYS; hAz_G: goto ZtChX; goto gxhQb; hN20n: empty($status) ? $condition["status"] = array("in", "0,1,2,3") : ($condition["status"] = $status); goto sOmFb; pUsLb: $condition["c.is_del"] = 1; goto Dmd5k; pkKW2: $condition["status"] = "-1"; goto M2st5; Sg7Qc: utIGa: goto hN20n; aR_9J: $res = array(); goto W6eYJ; CKnTE: $condition["status"] = "0"; goto NTJCQ; gxhQb: iiFKq: goto YwKe4; NTJCQ: BZqKm: goto pUsLb; y8YRn: if ($status == "-1") { goto IIsLM; } goto PWgtC; PuzNo: empty($status) ? $condition["status"] = '' : ''; goto lIajy; peK27: IIsLM: goto PLuH3; W6eYJ: $i = 0; goto V4U3h; mC84l: $status = request()->get("status", ''); goto y8YRn; XeYYS: $url = explode("=/", $url); goto k5rW7; lCfTY: $res[$i]["create_time"] = date("Y-m-d H:i:s", $cash[$i]["create_time"]); goto K3vXw; Dmd5k: $condition["c.mch_id"] = $this->bus_id; goto M6OU_; IWtA1: goto utIGa; goto peK27; nGZx7: $res[$i]["type"] = $type[$cash[$i]["type"]]; goto lCfTY; YwKe4: if (!($nn == "2")) { goto lUltz; } goto pkKW2; K3vXw: jILcS: goto zv_FE; bweaC: $res[$i] = $cash[$i]; goto nGZx7; DPU_Z: $this->assign("page", $cash->render()); goto Dp6MN; LyUbD: $type = $this->contr_pay_type; goto aR_9J; lIajy: $this->assign("cash", $res); goto DPU_Z; Dp6MN: $this->assign("status", $condition["status"]); goto SYiod; V4U3h: ZtChX: goto fifS7; k5rW7: $url = explode("&", $url[1]); goto V26xd; PLuH3: $nn = "2"; goto Sg7Qc; nMsEA: } public function share_cash_edit() { goto cpqT4; U1FMi: try { goto N_4v3; d0FMV: $info = Db::name("ybmp_user_share_cash")->where("id", $id)->update(["status" => $status]); goto Ayn10; ird7y: Db::commit(); goto Kgfya; Ayn10: if (!($status == 3)) { goto faXH4; } goto sEcjz; eM29D: throw new Exception("0"); goto tmku5; tfDSD: faXH4: goto CY3do; OBydt: goto fW0Za; goto WrZI8; CmQ_1: $rs = Db::name("ybmp_user")->where("uid", $u["user_id"])->setInc("price", $u["price"]); goto NzGIq; tmku5: cFLaA: goto tfDSD; X18XY: $info = Db::name("ybmp_user_share_cash")->where("id", $id)->update(["is_del" => 2]); goto OBydt; N_4v3: if ($status == 0 || $status == 1 || $status == 2 || $status == 3) { goto iVg3T; } goto X18XY; sEcjz: $u = Db::name("ybmp_user_share_cash")->where("id", $id)->find(); goto CmQ_1; NzGIq: if (!empty($rs)) { goto cFLaA; } goto eM29D; WrZI8: iVg3T: goto d0FMV; CY3do: fW0Za: goto ird7y; Kgfya: } catch (\Exception $e) { Db::rollback(); return 0; } goto tpD2i; DIOo1: Db::startTrans(); goto U1FMi; tpD2i: return $info; goto BMvHz; QFIcq: $info = 0; goto DIOo1; cpqT4: $id = request()->post("id"); goto u3N4F; u3N4F: $status = request()->post("status"); goto QFIcq; BMvHz: } public function share_order() { goto Rskj0; JuaRy: $stime = strtotime($stime); goto ORsmb; dWSvC: aTmWe: goto xesuo; hRoye: $stime = input("param.stime", ''); goto XxX1s; p0vZa: $condition["o.order_no"] = ["like", "%" . $order_no . "%"]; goto eHMPV; qOPKO: $mch_id = $this->bus_id; goto IP7jQ; XxX1s: $etime = input("param.etime", ''); goto zr4vj; GbQ1W: $condition["s.create_time"] = ["between", [$eetime - 86400, $eetime]]; goto dWSvC; xesuo: if (!(!empty($stime) && !empty($etime))) { goto T6bQQ; } goto JuaRy; zr4vj: $order_no = input("param.order_no", ''); goto qOPKO; dJjTn: $this->assign("page", $page); goto ab4eN; QRXuO: if (empty($stime)) { goto xIATD; } goto xW4eP; eHMPV: o4ZUV: goto o3ZJX; s9CVY: $order_status = input("param.status", ''); goto hRoye; ORsmb: $etime = strtotime($etime); goto OcZtT; MxsjO: if (empty($etime)) { goto aTmWe; } goto WX1Y8; ab4eN: $this->assign("list", $list); goto aV8bV; F7Jg3: $stime = date("Y-m-d", $stime); goto a4Tuv; fL9fe: if (empty($order_no)) { goto o4ZUV; } goto p0vZa; HK5Iy: return view(); goto Of9hN; WwMiL: EVQIV: goto QRXuO; vIkbY: T6bQQ: goto LNsWC; LNsWC: $list = $order->get_order_list($condition, $order_no); goto GCtUn; o3ZJX: if (empty($order_status)) { goto EVQIV; } goto oZb0p; xW4eP: $sstime = strtotime($stime); goto mbefM; OcZtT: $condition["s.create_time"] = ["between", [$stime, $etime]]; goto F7Jg3; PtzX7: xIATD: goto MxsjO; aV8bV: $this->assign("stime", $stime); goto xt3Ey; oZb0p: $condition["o.order_status"] = $order_status; goto WwMiL; WX1Y8: $eetime = strtotime($etime); goto GbQ1W; TEnJV: $this->assign("order_no", $order_no); goto HK5Iy; g3RDK: $condition["s.mch_id"] = $mch_id; goto fL9fe; mbefM: $condition["s.create_time"] = ["between", [$sstime, $sstime + 86400]]; goto PtzX7; xt3Ey: $this->assign("etime", $etime); goto TEnJV; GCtUn: $page = $list->render(); goto dJjTn; a4Tuv: $etime = date("Y-m-d", $etime); goto vIkbY; Rskj0: $order = new BusActivity(); goto s9CVY; IP7jQ: $condition = array(); goto g3RDK; Of9hN: } public function order_share() { goto pKMo0; OquR6: $this->assign("end_time", $etime); goto A8NMb; riSbS: return view("staff_share"); goto RxtbO; o9lZ4: $where["a.create_time"] = ["lt", strtotime($etime)]; goto ACvK5; v7yz2: yKif5: goto HS7uv; VNxq0: $this->assign("user_name", $user_name); goto QiPxG; gQN21: $i = 0; goto tKjXC; ijj2L: $where["a.create_time"] = ["gt", strtotime($stime)]; goto SgwEn; JyuZk: goto Y9BLb; goto kMgYx; nWZTe: $this->assign("show", "staff"); goto qQnBo; u3l7q: $where["a.mch_id"] = $this->bus_id; goto jWHSc; SgwEn: BqOim: goto hVK4d; QiPxG: $this->assign("star_time", $stime); goto OquR6; A8NMb: $this->assign("page", $li->render()); goto riSbS; BuVlq: c3rF5: goto wXoOK; g8iMK: $a[$i]["status"] = $this->contr_order_status[$li[$i]["order_status"]]; goto BuVlq; qQnBo: $this->assign("list", $a); goto VNxq0; jWHSc: $li = $this->get_list($where); goto lUv87; ACvK5: OiJZ1: goto u3l7q; wXoOK: $i++; goto JyuZk; TKSI8: if (empty($user_name)) { goto yKif5; } goto Q20za; SdRbi: if (!($i < count($li))) { goto kdWif; } goto EoARF; kMgYx: kdWif: goto nWZTe; pKMo0: $user_name = request()->param("user_name", ''); goto kEglW; tKjXC: Y9BLb: goto SdRbi; EoARF: $a[$i] = $li[$i]; goto g8iMK; Q20za: $where["s.user_name"] = ["like", "%" . $user_name . "%"]; goto v7yz2; kEglW: $stime = request()->param("star_time", ''); goto N2ZMs; lUv87: $a = array(); goto gQN21; N2ZMs: $etime = request()->param("end_time", ''); goto TKSI8; hVK4d: if (empty($etime)) { goto OiJZ1; } goto o9lZ4; HS7uv: if (empty($stime)) { goto BqOim; } goto ijj2L; RxtbO: } public function send_share() { goto T27LW; zy9r4: $this->assign("user_name", $user_name); goto He8Jh; U1t9r: d75DB: goto WlmhU; pudS_: if (!($i < count($li))) { goto Ldvlw; } goto h4KRm; wAIEI: $etime = request()->param("end_time", ''); goto crSQk; ij1i0: if (empty($etime)) { goto hxdjY; } goto WkGKq; SRKtz: $stime = request()->param("star_time", ''); goto wAIEI; kCVMd: DALe1: goto Y7vk0; WlmhU: if (empty($stime)) { goto m_h0R; } goto LmDHA; kiGKw: m_h0R: goto ij1i0; ngYGO: $this->assign("list", $a); goto zy9r4; RnNZj: GZGbI: goto pudS_; BR2qo: hxdjY: goto NTNHS; h4KRm: $a[$i] = $li[$i]; goto qrwCa; R1ZwO: $where["s.user_name"] = ["like", "%" . $user_name . "%"]; goto U1t9r; Cofk3: $where["d.order_status"] = 3; goto Vj4ea; T27LW: $user_name = request()->param("user_name", ''); goto SRKtz; j1AXe: $a = array(); goto EowAB; WkGKq: $where["a.create_time"] = ["lt", strtotime($etime)]; goto BR2qo; He8Jh: $this->assign("star_time", $stime); goto WeByl; NTNHS: $where["a.mch_id"] = $this->bus_id; goto Cofk3; Vj4ea: $li = $this->get_list($where); goto j1AXe; EowAB: $i = 0; goto RnNZj; Y7vk0: $i++; goto VfxRP; igdCo: $this->assign("page", $li->render()); goto cTkEd; crSQk: if (empty($user_name)) { goto d75DB; } goto R1ZwO; qrwCa: $a[$i]["status"] = $this->contr_order_status[$li[$i]["order_status"]]; goto kCVMd; LmDHA: $where["a.create_time"] = ["gt", strtotime($stime)]; goto kiGKw; cTkEd: return view("staff_share"); goto GMTBo; ezv83: $this->assign("show", "send"); goto ngYGO; VfxRP: goto GZGbI; goto ENkCC; ENkCC: Ldvlw: goto ezv83; WeByl: $this->assign("end_time", $etime); goto igdCo; GMTBo: } public function disend_share() { goto uprJM; EZ17q: $this->assign("list", $a); goto ch1Lw; VPK0O: $li = $this->get_list($where); goto qfsgx; oG2BQ: if (empty($stime)) { goto smLyk; } goto b3owZ; EJywJ: $a[$i] = $li[$i]; goto acbhw; b3owZ: $where["a.create_time"] = ["gt", strtotime($stime)]; goto yLun6; aSHbD: $stime = request()->param("star_time", ''); goto m9LMd; EoxZ9: UJWvZ: goto q9O4W; TEabp: if (empty($user_name)) { goto eZ319; } goto IEa4w; zuaVp: IRlaO: goto Fut9u; qfsgx: $a = array(); goto hqzTY; q9O4W: $i++; goto KozTq; ch1Lw: $this->assign("user_name", $user_name); goto p5H_2; ILb4w: if (empty($etime)) { goto i9nGq; } goto zWdyn; yLun6: smLyk: goto ILb4w; PEqsd: $this->assign("end_time", $etime); goto BHhli; acbhw: $a[$i]["status"] = $this->contr_order_status[$li[$i]["order_status"]]; goto EoxZ9; KozTq: goto nwqxJ; goto zuaVp; UUVHI: $where["a.mch_id"] = $this->bus_id; goto V0zv2; Fut9u: $this->assign("show", "disend"); goto EZ17q; BHhli: $this->assign("page", $li->render()); goto rBKrt; rBKrt: return view("staff_share"); goto uKeuW; hqzTY: $i = 0; goto ZXxq9; RWjBy: if (!($i < count($li))) { goto IRlaO; } goto EJywJ; m9LMd: $etime = request()->param("end_time", ''); goto TEabp; V0ql6: i9nGq: goto UUVHI; IEa4w: $where["s.user_name"] = ["like", "%" . $user_name . "%"]; goto cP0Fk; V0zv2: $where["d.order_status"] = ["in", "0,1,2"]; goto VPK0O; uprJM: $user_name = request()->param("user_name", ''); goto aSHbD; ZXxq9: nwqxJ: goto RWjBy; cP0Fk: eZ319: goto oG2BQ; p5H_2: $this->assign("star_time", $stime); goto PEqsd; zWdyn: $where["a.create_time"] = ["lt", strtotime($etime)]; goto V0ql6; uKeuW: } public function show_order_dd() { goto MgDxe; WenCQ: $this->assign("list", $li); goto LQ0VR; uscX1: $a = db::name("ybmp_order")->where("order_id", $id)->field("order_money")->find(); goto WenCQ; Q4jf5: $send = request()->param("send"); goto Jrx5u; LQ0VR: $this->assign("send", $send); goto AbbhO; Jrx5u: $li = db::name("ybmp_order_goods")->alias("a")->join("ybmp_images s", "a.goods_images=s.img_id")->join("ybmp_user u", "a.buyer_id=u.uid")->field("a.goods_name,a.price,a.num,a.goods_money,s.img_cover,u.nick_name")->where("a.order_id", $id)->select(); goto uscX1; hfWhD: return view(); goto CgkT5; MgDxe: $id = request()->param("order_id"); goto Q4jf5; AbbhO: $this->assign("all", $a["order_money"]); goto hfWhD; CgkT5: } public function get_list($where) { goto mxGmL; VWZTK: if (!($i < count($li))) { goto FQd3s; } goto SnaL1; SnaL1: $a[$i] = $li[$i]; goto iNy66; XdW11: $url = explode("&", $url[1]); goto HaCbh; xMP43: FQd3s: goto Poi78; mxGmL: $url = request()->query(); goto irQuF; HaCbh: $url = "/" . $url[0]; goto Lxsx0; irQuF: $url = explode("=/", $url); goto XdW11; Lxsx0: $li = db::name("ybmp_order_staff")->alias("a")->join("ybmp_bus_card s", "a.staff_id=s.id", "left")->join("ybmp_order d", "a.order_id=d.order_id", "left")->field("a.money,s.user_name,s.position,s.head_photo,s.wxtel,d.order_status,d.order_id,a.create_time")->order("a.create_time", "desc")->where($where)->paginate(10, false, $config = ["query" => ["s" => $url]]); goto gJqg0; t5GCO: $i = 0; goto NZHTr; zPoxI: PfGvv: goto DhTpe; NZHTr: jWuYL: goto VWZTK; Poi78: return $li; goto hcxKU; iNy66: $a[$i]["status"] = $this->contr_order_status[$li[$i]["order_status"]]; goto zPoxI; DhTpe: $i++; goto oKD_k; gJqg0: $a = array(); goto t5GCO; oKD_k: goto jWuYL; goto xMP43; hcxKU: } public function miaosha() { goto SeuND; fq59c: $url = explode("&", $url[1]); goto lFwsk; XcHKO: $where["is_del"] = 2; goto iVsGA; i8fYy: iwZ4d: goto o4Ndp; g9Iqw: z25gW: goto HGt8p; Ua82W: if (empty($name)) { goto iwZ4d; } goto hVuEO; ZpvX2: $list[$i]["show_order"] = 1; goto KjzOY; bRB8f: $list[$i] = $res[$i]; goto YSLLL; Icm5w: $i = 0; goto d36QR; EAn29: $list[$i]["now"] = ""; goto ZpvX2; nvZNr: $list[$i]["now"] = ""; goto j4B31; KjzOY: rbHfm: goto Uv5A3; NEd1x: if (!($res[$i]["stime"] > time())) { goto FP60R; } goto d2c5M; HCynX: FP60R: goto lH46b; Gbwbq: if (!($i < count($res))) { goto z25gW; } goto bRB8f; ZxnpD: $list[$i]["etime"] = date("Y-m-d H:i:s", $res[$i]["etime"]); goto ThZQ5; hVuEO: $where["name"] = ["like", "%" . $name . "%"]; goto i8fYy; dbOBf: $url = explode("=/", $url); goto fq59c; ZmmBx: LqmVa: goto guLkM; o4Ndp: $res = Db::name("ybmp_activity")->where($where)->paginate(15, false, $config = ["query" => ["s" => $url, "name" => $name]]); goto xFuRl; SeuND: $url = request()->query(); goto dbOBf; Xzukn: $i++; goto ZBITA; x_zvU: $list[$i]["img"] = json_decode($res[$i]["img"], true); goto NEd1x; TGuQS: $where["mch_id"] = $this->bus_id; goto B0Fk9; ABZKJ: $list[$i]["is_buy"] = Db::name("ybmp_activity_order")->where($where)->count(); goto xim1C; YSLLL: $list[$i]["sell"] = Db::name("ybmp_activity_order")->where("activity_order_type", 3)->where("bargain_id", $list[$i]["id"])->count(); goto JroQ1; ThZQ5: $list[$i]["max_pre"] = $res[$i]["max_pre"] == 0 ? "" : $res[$i]["max_pre"]; goto x_zvU; l0Kbx: return view(); goto xVar5; j4B31: $list[$i]["show_order"] = 1; goto cscEk; xFuRl: $list = array(); goto Icm5w; ZBITA: goto areBR; goto g9Iqw; zNGAq: $this->assign("page", $res->render()); goto l0Kbx; d36QR: areBR: goto Gbwbq; iVsGA: $name = str_replace(" ", '', request()->param("search_text")); goto Ua82W; lH46b: if (!($res[$i]["stime"] < time() && $res[$i]["etime"] > time())) { goto Smivj; } goto nvZNr; xim1C: $list[$i]["kucun"] = intval($res[$i]["all_sell"] - $list[$i]["is_buy"]); goto gLHPu; QrIba: if (!($res[$i]["etime"] < time())) { goto rbHfm; } goto EAn29; guLkM: $where = ["activity_order_type" => 3, "order_status" => ["in", [1, 2, 3]], "pay_status" => 1, "is_deleted" => 0, "mch_id" => $where["mch_id"], "bargain_id" => $res[$i]["id"]]; goto ABZKJ; HDJF3: $list[$i]["now"] = ""; goto ZmmBx; JroQ1: $list[$i]["stime"] = date("Y-m-d H:i:s", $res[$i]["stime"]); goto ZxnpD; lFwsk: $url = "/" . $url[0]; goto TGuQS; HGt8p: $this->assign("list", $list); goto zNGAq; cscEk: Smivj: goto QrIba; d2c5M: $list[$i]["now"] = ""; goto HCynX; gLHPu: wdN78: goto Xzukn; B0Fk9: $where["type"] = 1; goto XcHKO; Uv5A3: if (!($res[$i]["status"] == 2)) { goto LqmVa; } goto HDJF3; xVar5: } public function add_miaosha() { goto GUq3G; Z5k4q: return AjaxReturn($res, json_decode($data)); goto nyMj0; rfrM9: return view($show); goto ppM67; HA7So: $show = "add_miaosha"; goto kY6px; PXX8r: $data = request()->post(); goto QGFaD; cZKq_: $data["etime"] = strtotime($data["etime"]); goto bq0E3; kY6px: Z3WIA: goto TipVC; bq0E3: $data["mch_id"] = $this->bus_id; goto l9hN7; nyMj0: T8b2H: goto rfrM9; QGFaD: $data["stime"] = strtotime($data["stime"]); goto cZKq_; u9o9e: $res = Db::name($table)->insert($data); goto Z5k4q; TipVC: if (!(request()->isPost() && request()->isAjax())) { goto T8b2H; } goto pVb2w; GUq3G: $type = request()->param("type", 1); goto cnSjZ; l9hN7: $table = "ybmp_activity"; goto DO_Ef; cnSjZ: if (!($type == 1)) { goto Z3WIA; } goto HA7So; DO_Ef: v5sjB: goto u9o9e; pVb2w: if (!($type == 1)) { goto v5sjB; } goto PXX8r; ppM67: } public function edit_miaosha() { goto I9CBH; IIbUY: $data = request()->post(); goto I2_fH; g3Zwp: if (!(request()->isPost() && request()->isAjax())) { goto asP2p; } goto A4qBC; I2_fH: unset($data["id"]); goto rUw5Y; zUJp9: $res = Db::name($table)->where($where)->update($data); goto Jb0fZ; tgVvv: $where["id"] = $id; goto hUfjc; I9CBH: $type = request()->param("type", 1); goto nxp6q; GuL8k: asP2p: goto wk2Gn; Nurax: return view($show); goto z4E09; rUw5Y: $data["stime"] = strtotime($data["stime"]); goto RJ3Dx; LDGe3: $info = Db::name("ybmp_activity")->where("id", $id)->find(); goto YtJwv; RJ3Dx: $data["etime"] = strtotime($data["etime"]); goto lrGFe; U_rLw: $show = "edit_miaosha"; goto aDbPf; YtJwv: $info["stime"] = date("Y-m-d H:i:s", $info["stime"]); goto nwdyS; nxp6q: $id = request()->param("id"); goto g3Zwp; hUfjc: xoxvb: goto zUJp9; lrGFe: $table = "ybmp_activity"; goto tgVvv; nwdyS: $info["etime"] = date("Y-m-d H:i:s", $info["etime"]); goto groF2; wk2Gn: if (!($type == 1)) { goto GdMD4; } goto LDGe3; aDbPf: GdMD4: goto Nurax; A4qBC: if (!($type == 1)) { goto xoxvb; } goto IIbUY; groF2: $this->assign("info", $info); goto U_rLw; Jb0fZ: return AjaxReturn($res, json_decode($data)); goto GuL8k; z4E09: } public function order_send() { goto WC0Nc; DVql8: return AjaxReturn($res); goto Vlum2; q0snY: $res = Db::name("ybmp_activity_order")->where("order_id", $id)->update(["order_status" => 2]); goto DVql8; WC0Nc: $id = input("param.id"); goto q0snY; Vlum2: } public function order_send_two() { goto yAzA2; GVosD: return AjaxReturn($res); goto NTdzY; yAzA2: $id = input("param.id"); goto EOclN; EOclN: $res = Db::name("ybmp_activity_order")->where("order_id", $id)->update(["order_status" => 3]); goto GVosD; NTdzY: } public function ac_order() { goto cPLDq; Fi8hs: $this->assign("list", $list); goto rL489; XnvBT: $this->assign("page", $list->render()); goto h0ZTT; jaRJ3: if ($refund_setting["switch"] != 1 || empty($refund_setting["key"]) || empty($refund_setting["cert"])) { goto EYCid; } goto kvQSS; WtZyY: goto XuFW9; goto jehE8; N5fmV: $where["s.order_status"] = array("in", "0,1,2,3,4,5,-1"); goto PrFBu; mQ3nz: if (!($type == 1)) { goto GplSf; } goto AHT3q; rU3AE: $where["s.mch_id"] = $this->bus_id; goto ue2ya; jehE8: EYCid: goto Y7rEE; b2Oet: $this->assign("search_text", $search_text); goto XnvBT; NP7FU: eiFm1: goto TRsRw; w3itg: XuFW9: goto Fi8hs; rL489: $this->assign("status", $status); goto b2Oet; nBHDt: $url = explode("&", $url[1]); goto Jvq_3; m5hqs: $where["s.is_deleted"] = 0; goto rU3AE; kvQSS: $this->assign("refund_type", 1); goto WtZyY; cPLDq: $url = request()->query(); goto kDVHl; h0ZTT: return view($show); goto A5BFf; Y7rEE: $this->assign("refund_type", 0); goto w3itg; nR0sd: $where["s.bargain_id"] = $id; goto NP7FU; ue2ya: $where["s.order_status"] = $status; goto lM5Rq; SWcQ3: $id = request()->param("acid", ''); goto cN1Ka; PrFBu: JDdVC: goto AYntU; AHT3q: $show = "miaosha_order"; goto SWcQ3; LMoOj: LDlvH: goto ZxObC; TpnmR: $refund_setting = $setting["payment"]["wechat_refund"]; goto jaRJ3; Urkxg: $status = request()->param("status", -2); goto ivELr; oPXXv: $type = request()->param("type", 1); goto Urkxg; cN1Ka: if (empty($id)) { goto eiFm1; } goto nR0sd; lM5Rq: $where["s.mailing_type"] = 1; goto kmFs3; kmFs3: if (!($status == -2)) { goto JDdVC; } goto N5fmV; Jvq_3: $url = "/" . $url[0]; goto oPXXv; ah5v5: GplSf: goto G15zI; TRsRw: $where["s.activity_order_type"] = 3; goto m5hqs; ZxObC: $list = Db::name("ybmp_activity_order")->alias("s")->join("ybmp_activity a", "s.mch_id=a.mch_id AND s.bargain_id=a.id", "left")->where($where)->field("s.order_no,a.name,a.pic,s.receiver_name,s.receiver_mobile,s.receiver_area,s.receiver_address,s.order_money,s.order_status,s.order_id,s.mention_time,s.buyer_id,s.mch_id,s.pay_status")->order("s.create_time desc")->paginate(15, false, $config = ["query" => ["s" => $url, "status" => $status, "search_text" => $search_text]])->each(function ($item, $key) { goto hDaXp; hDaXp: $item["staff_name"] = ''; goto yuysV; VitVD: return $item; goto VwdcF; AC6RR: snSoC: goto VitVD; puM6l: $item["staff_name"] = getStaffInfo($item["buyer_id"], $item["mch_id"]); goto AC6RR; yuysV: if (!($item["pay_status"] == 1)) { goto snSoC; } goto puM6l; VwdcF: }); goto ah5v5; AYntU: if (empty($search_text)) { goto LDlvH; } goto gAdti; XcJ1y: $setting = uni_setting_load("payment", $_W["uniacid"]); goto TpnmR; ivELr: $search_text = request()->param("search_text", ''); goto mQ3nz; G15zI: global $_W; goto XcJ1y; gAdti: $where["a.name"] = array("like", "%" . $search_text . "%"); goto LMoOj; kDVHl: $url = explode("=/", $url); goto nBHDt; A5BFf: } public function ac_order_two() { goto IUjxd; ky8yi: $search_text = request()->param("search_text", ''); goto OIyPh; siM2z: $where["s.order_status"] = $status; goto TMSJY; CHY9U: cARFR: goto gPdur; YEkas: if (empty($search_text)) { goto CH6ij; } goto u2zM5; VSf8U: jTke6: goto hcWqz; I5JjH: $this->assign("status", $status); goto wzhXL; q7xJh: $where["s.activity_order_type"] = 3; goto PmEka; fULHu: CH6ij: goto VX8_U; wzhXL: $this->assign("search_text", $search_text); goto SwJDE; VG0Zi: $this->assign("refund_type", 1); goto dRaeT; IUjxd: $url = request()->query(); goto seIIl; rKnEX: YniXs: goto rGT3o; gPdur: $this->assign("list", $list); goto I5JjH; CNH24: Np5O4: goto q7xJh; q_R6f: $type = request()->param("type", 1); goto LTReL; dRaeT: goto cARFR; goto rKnEX; s0HJ8: $url = explode("&", $url[1]); goto dEx1k; TMSJY: $where["s.mailing_type"] = 2; goto NDFzZ; u2zM5: $where["a.name"] = array("like", "%" . $search_text . "%"); goto fULHu; wiWYH: $id = request()->param("acid", ''); goto URF0x; sfa_y: $where["s.order_status"] = array("in", "0,1,2,3,4,5,-1"); goto d3DwH; rGT3o: $this->assign("refund_type", 0); goto CHY9U; NDFzZ: if (!($status == -2)) { goto MqMvN; } goto sfa_y; LTReL: $status = request()->param("status", -2); goto ky8yi; otSjp: $where["s.bargain_id"] = $id; goto CNH24; gFDa2: $show = "miaosha_order_two"; goto wiWYH; E0bqT: return view($show); goto g0hsk; PmEka: $where["s.is_deleted"] = 0; goto WLJFe; seIIl: $url = explode("=/", $url); goto s0HJ8; hcWqz: global $_W; goto VJeG4; dEx1k: $url = "/" . $url[0]; goto q_R6f; WLJFe: $where["s.mch_id"] = $this->bus_id; goto siM2z; VX8_U: $list = Db::name("ybmp_activity_order")->alias("s")->join("ybmp_activity a", "s.mch_id=a.mch_id AND s.bargain_id=a.id", "left")->where($where)->field("s.order_no,a.name,a.pic,s.receiver_name,s.receiver_mobile,s.receiver_area,s.receiver_address,s.order_money,s.order_status,s.order_id,s.mention_time,s.buyer_id,s.mch_id,s.pay_status")->order("s.create_time desc")->paginate(15, false, $config = ["query" => ["s" => $url, "status" => $status, "search_text" => $search_text]])->each(function ($item, $key) { goto EP2Fp; r3eRf: LAbwi: goto q6dhQ; Tqa8b: if (!($item["pay_status"] == 1)) { goto LAbwi; } goto aFnzI; EP2Fp: $item["staff_name"] = ''; goto Tqa8b; aFnzI: $item["staff_name"] = getStaffInfo($item["buyer_id"], $item["mch_id"]); goto r3eRf; q6dhQ: return $item; goto VayTp; VayTp: }); goto VSf8U; HgbCj: if ($refund_setting["switch"] != 1 || empty($refund_setting["key"]) || empty($refund_setting["cert"])) { goto YniXs; } goto VG0Zi; d3DwH: MqMvN: goto YEkas; OIyPh: if (!($type == 1)) { goto jTke6; } goto gFDa2; ZJE3l: $refund_setting = $setting["payment"]["wechat_refund"]; goto HgbCj; URF0x: if (empty($id)) { goto Np5O4; } goto otSjp; SwJDE: $this->assign("page", $list->render()); goto E0bqT; VJeG4: $setting = uni_setting_load("payment", $_W["uniacid"]); goto ZJE3l; g0hsk: } public function change() { goto zpNiJ; yw1ZG: jMiuq: goto vt1lz; JpLNw: $update["status"] = request()->param("status", 1); goto r7wtA; HBJjA: zQENF: goto CdJ1Q; B20L5: $res = Db::name($table)->where($where)->update($update); goto HBJjA; zpNiJ: $type = request()->param("type", 1); goto VOgLd; VOgLd: $id = request()->param("id"); goto Uk8Fc; lIDsB: $where["mch_id"] = $this->bus_id; goto JpLNw; Uk8Fc: if (!($type == 1)) { goto jMiuq; } goto pxZpp; gAPb0: if (!(!empty($where) && !empty($table))) { goto zQENF; } goto B20L5; r7wtA: $table = "ybmp_activity"; goto yw1ZG; pxZpp: $where["id"] = $id; goto lIDsB; vt1lz: $res = 0; goto gAPb0; CdJ1Q: return AjaxReturn($res); goto G7O8Q; G7O8Q: } public function del() { goto hXHz6; JxV7r: $where["mch_id"] = $this->bus_id; goto ZB6EB; s5H4x: $res = Db::name($table)->where($where)->update($update); goto UARNP; QHlKM: $where["id"] = $id; goto JxV7r; nNeEF: goto eY1mT; goto zo8lM; Hwnr1: $res = 0; goto ZVuW2; i0Fxl: $update["is_del"] = 1; goto lkfAH; h0U7s: if (!($type == 1)) { goto n0agR; } goto QHlKM; Nu1_V: return AjaxReturn($res); goto dfo5U; hXHz6: $type = request()->param("type", 1); goto Dq0tD; ZVuW2: if (!(!empty($where) && !empty($table))) { goto G25Bq; } goto M2tlk; bVJFt: $res = Db::name($table)->where($where)->delete(); goto nNeEF; x_ie2: G25Bq: goto Nu1_V; Dq0tD: $id = request()->param("id"); goto h0U7s; UARNP: eY1mT: goto x_ie2; lkfAH: n0agR: goto Hwnr1; M2tlk: if (!empty($update)) { goto t5XgO; } goto bVJFt; zo8lM: t5XgO: goto s5H4x; ZB6EB: $table = "ybmp_activity"; goto i0Fxl; dfo5U: } public function orderTakeRefund() { goto Yq6fr; vToSD: $data["mch_id"] = $this->bus_id; goto fo4SA; pqDp4: return 0; goto Lzf9y; n357L: if (!empty($ii)) { goto opdab; } goto JcYLJ; fcYTe: file_put_contents($cert_path, $cert); goto cIEcn; PDeHD: goto ag5qp; goto q0KRK; jP_Rz: $setting = uni_setting_load("payment", $_W["uniacid"]); goto w1gRW; fT2Ya: Z4u74: goto NBEOJ; ncyPP: return AjaxReturnMsg(0, ""); goto bK4os; xh0mg: if (!($ju == 1)) { goto fk124; } goto ONvgq; rCRNd: $data["refund_reason"] = ''; goto TmqK1; n9_i6: $input = new \WxPayRefund(); goto DvOtI; YH3UO: Db::name("ybmp_order_refund")->insert($data); goto PDeHD; Lzf9y: TVFQT: goto WPduL; Yq6fr: $order_id = request()->post("order_id", ''); goto DSSzi; DSSzi: $info = request()->param("info", ''); goto uqxW9; QxIGW: goto RZSfn; goto miRT2; k1WvN: $data["create_time"] = time(); goto g69WK; qib1i: Db::name("ybmp_order_refund")->where("id", $ii["id"])->update($data); goto G7hs0; LQzLr: $input->SetAppid($temp["APP_ID"]); goto CKwK6; KySaa: return $res; goto uwhIj; miRT2: qBWsb: goto qMZEg; qMZEg: $res = Db::name("ybmp_order_refund")->where("id", $ii["id"])->update($data); goto C86TR; bK4os: wWj13: goto HY_KS; xSerd: return AjaxReturnMsg(0, $errmsg); goto YIBmf; y42UJ: if ($param["result_code"] == "SUCCESS") { goto Z4u74; } goto h_8Xb; CKwK6: $cert = $cert; goto D01YP; v7mMO: if (!empty($ii)) { goto ua2CY; } goto YH3UO; vL2FN: global $_W; goto jP_Rz; kLacG: return 0; goto NUn1P; vJRBV: if (!$res) { goto uRwEB; } goto yU3O6; uwhIj: fk124: goto vL2FN; mT16K: $key_path = ATTACHMENT_ROOT . "public/" . $this->bus_id . "_wechat_refund_key.pem"; goto fcYTe; WPduL: if (!empty($info)) { goto vf213; } goto kLacG; fo4SA: $data["order_id"] = $order_id; goto rCRNd; sXjba: $key = authcode($refund_setting["key"], "DECODE"); goto lwTCt; iVFKG: $cert = authcode($refund_setting["cert"], "DECODE"); goto sXjba; vDHOO: $input->SetRefund_fee($order_info["pay_money"] * 100); goto G6N4m; G6N4m: $input->SetOut_refund_no($res); goto ggEVP; s8Vg1: iH49f: goto zWhy6; loQeI: if (!empty($ii)) { goto qBWsb; } goto w68ff; v5gAC: $param = \WxPayApi::refund($input); goto y42UJ; NBEOJ: $order_info = Db::name("ybmp_activity_order")->where("order_id", $order_id)->update(["order_status" => 5, "refund_money" => $order_info["pay_money"], "finish_time" => time()]); goto v7mMO; G7hs0: ag5qp: goto cTkHr; L9gJQ: $res = $temp["APP_MCHID"] . date("YmdHis") . rand(10000, 9999999); goto n9_i6; k8J35: if ($refund_setting["switch"] != 1 || empty($refund_setting["key"]) || empty($refund_setting["cert"])) { goto aWI7m; } goto iVFKG; SgNgM: $ii = Db::name("ybmp_order_refund")->where(["type" => $data["type"], "order_id" => $data["order_id"]])->order("id", "desc")->find(); goto xh0mg; qKvJh: return AjaxReturn($res); goto KvJ6u; ocEWL: goto LFIGP; goto oczz6; DvOtI: $input->SetOut_trade_no($order_info["out_trade_no"]); goto LmY6m; uqxW9: $ju = request()->param("ju", 2); goto wrkD2; KvJ6u: XWB1g: goto lMGkN; kLBYK: $data["uid"] = $uid; goto vToSD; w1gRW: $refund_setting = $setting["payment"]["wechat_refund"]; goto k8J35; C86TR: RZSfn: goto vJRBV; gQX3s: $data["refund_status"] = 1; goto loQeI; ilmmq: $data["refund_reason"] = $info; goto gQX3s; YIBmf: goto iH49f; goto fT2Ya; ggEVP: $input->SetOp_user_id($temp["APP_MCHID"]); goto LQzLr; HvdcK: uRwEB: goto KySaa; TmqK1: $data["refund_status"] = 2; goto k1WvN; LmY6m: $input->SetTotal_fee($order_info["pay_money"] * 100); goto vDHOO; Z5oof: $res = Db::name("ybmp_activity_order")->where("order_id", $order_id)->update(["order_status" => 5, "refund_money" => $item["pay_money"], "finish_time" => time()]); goto qKvJh; D01YP: $key = $key; goto Riqgp; lwTCt: $order_info = Db::name("ybmp_activity_order")->where("order_id", $order_id)->find(); goto DNBrP; s5V0V: $temp = json_decode($bus_config["value"], true); goto L9gJQ; g69WK: $data["type"] = 4; goto SgNgM; iS0Xq: LFIGP: goto Z5oof; cIEcn: file_put_contents($key_path, $key); goto v5gAC; HY_KS: $bus_config = Db::name("ybmp_config")->where("mch_id", $this->bus_id)->where("key", "WXPAY")->find(); goto s5V0V; bo1Mj: $ct = Db::name("ybmp_activity_order")->where("order_id", $order_id)->value("refund_status"); goto iK5D4; yU3O6: Db::name("ybmp_activity_order")->where("order_id", $order_id)->update(["order_status" => $status]); goto HvdcK; cTkHr: return AjaxReturn($order_info); goto s8Vg1; b8xO5: aWI7m: goto R5JGy; wrkD2: $uid = request()->param("uid", 0); goto kLBYK; JcYLJ: Db::name("ybmp_order_refund")->insert($data); goto ocEWL; w68ff: $res = Db::name("ybmp_order_refund")->insert($data); goto QxIGW; NUn1P: vf213: goto bo1Mj; oczz6: opdab: goto AFFeg; q0KRK: ua2CY: goto qib1i; AFFeg: Db::name("ybmp_order_refund")->where("id", $ii["id"])->update($data); goto iS0Xq; zWhy6: goto XWB1g; goto b8xO5; h_8Xb: $errmsg = ":" . json_encode($param, JSON_UNESCAPED_UNICODE); goto xSerd; DNBrP: if (!($order_info["pay_money"] == 0)) { goto wWj13; } goto ncyPP; iK5D4: $status = intval($ct) == 0 ? 1 : intval($ct); goto ilmmq; R5JGy: $item = Db::name("ybmp_activity_order")->where("order_id", $order_id)->find(); goto n357L; ONvgq: if (!($uid == 0)) { goto TVFQT; } goto pqDp4; Riqgp: $cert_path = ATTACHMENT_ROOT . "public/" . $this->bus_id . "_wechat_refund_cert.pem"; goto mT16K; lMGkN: } public function printer3() { goto JQOQd; tDLAg: $list = Db::name("ybmp_bargain_order")->alias("a")->join("ybmp_area s", "a.receiver_area=s.id", "left")->field("a.*,s.name shiname")->where("a.order_id", $order_id)->find(); goto AGge4; vvKrx: $type = "_2"; goto tDLAg; wxx_j: $this->assign("info", $list); goto FmLuX; JQOQd: $order_id = no_space("id"); goto iTTBE; FmLuX: return view("arliki/printer3"); goto XGNBc; GeAoQ: $this->assign("qrcode", $this->get_barcode($list["order_no"] . $type)); goto wxx_j; mF9QV: if (!($type == "kan")) { goto VLbOG; } goto vvKrx; AGge4: VLbOG: goto JAvzh; Vhjo8: $list = Db::name("ybmp_activity_order")->alias("a")->join("ybmp_area s", "a.receiver_area=s.id", "left")->field("a.*,s.name shiname")->where("a.order_id", $order_id)->find(); goto W2JY0; iTTBE: $type = no_space("type", "kan"); goto mF9QV; JAvzh: if (!($type == "miao")) { goto wfqaY; } goto PhxFk; PhxFk: $type = "_4"; goto Vhjo8; W2JY0: wfqaY: goto GeAoQ; XGNBc: } public function get_barcode($data, $width = 200, $height = 200) { $str = "<div id="bar_code"></div><script>$(function(){$("#bar_code").qrcode({width:" . $width . ",height:" . $height . ",text:"" . $data . ""});});</script>"; return $str; } }
?>
Did this file decode correctly?
Original Code
<?php
namespace app\admin\controller; use app\admin\service\ArRedis; use app\admin\service\BusActivity; use think\Db; require EXTEND_PATH . "\127\170\x70\x61\171\x2f\x57\170\x50\x61\x79\56\101\160\x69\56\160\150\160"; class Activity extends Base { protected $contr_share_set = array("\61" => "\345\x8f\xaf\xe6\217\x90\347\216\260\344\275\xa3\351\x87\221", "\62" => "\345\xb7\xb2\xe6\x8f\x90\347\216\260\xe4\xbd\243\xe9\207\221", "\x33" => "\346\x8e\xa8\350\215\x90\344\272\272", "\64" => "\346\234\xaa\347\xbb\223\347\256\227\xe4\275\243\351\207\221", "\65" => "\xe5\x88\206\xe9\224\x80\xe4\275\xa3\xe9\207\221", "\x36" => "\xe5\x88\x86\xe9\224\x80\xe8\xae\242\xe5\x8d\225", "\x37" => "\xe6\217\x90\347\216\xb0\346\x98\216\347\xbb\x86", "\x38" => "\xe6\x88\221\xe7\232\x84\345\233\xa2\351\230\x9f", "\71" => "\xe6\216\xa8\xe5\271\277\344\272\214\347\273\xb4\347\240\201", "\61\x30" => "\xe5\217\x91\345\261\225\344\xb8\213\347\272\277", "\x31\61" => "\xe5\276\x85\xe6\x89\223\xe6\254\xbe\xe4\xbd\xa3\xe9\x87\221", "\61\62" => "\345\210\x86\xe9\224\200\344\xb8\255\xe5\xbf\x83", "\61\63" => "\345\210\206\xe9\x94\200\xe5\225\206"); protected $contr_pay_type = array("\x30" => "\345\276\xae\xe4\277\xa1\346\x94\257\xe4\273\230", "\61" => "\346\224\xaf\344\xbb\x98\345\256\x9d\xe6\x94\257\344\xbb\x98", "\62" => "\351\x93\266\350\xa1\x8c\xe5\x8d\xa1\xe6\224\xaf\xe4\xbb\230", "\63" => "\344\275\x99\351\xa2\235\xe6\224\xaf\344\273\x98"); protected $contr_order_status = array("\55\61" => "\345\xb7\262\xe5\217\x96\xe6\xb6\x88", "\x30" => "\xe5\276\x85\346\x94\xaf\xe4\xbb\230", "\x31" => "\345\xbe\205\xe5\217\221\xe8\264\247", "\62" => "\xe5\276\205\346\224\xb6\xe8\xb4\247", "\x33" => "\xe5\xb7\xb2\345\256\214\346\x88\x90", "\x34" => "\xe9\200\x80\346\xac\276\xe4\270\255", "\x35" => "\xe5\267\262\351\200\200\346\xac\xbe"); protected $contr_share_deep = 3; public function index() { goto TlAeV; JlDX3: $url = request()->query(); goto vIr6Z; SPwq9: $list = Db::name("\171\x62\x6d\x70\137\x62\x75\x73\x69\156\145\x73\163\x5f\x61\143\x74\151\166\x69\x74\x79")->where("\x61\143\164\x69\166\x69\164\x79\137\156\x61\155\145", "\154\151\153\145", "\x25{$actn}\x25")->where("\x6d\x63\x68\x5f\x69\x64", $mch_id)->order("\x73\164\x61\162\137\164\151\155\x65", "\x64\x65\x73\x63")->paginate(20, false, ["\x71\x75\145\162\x79" => ["\x73" => $url]]); goto JQCS6; u40_L: if ($actn) { goto DiZ5Q; } goto WQeoL; qQmjc: return view("\141\x63\x74\x69\166\151\x74\171\57\151\156\x64\x65\x78"); goto ilc4o; mLFl_: $condition["\155\143\150\x5f\x69\x64"] = array("\145\x71", $mch_id); goto WH00j; HHhnq: $this->assign("\160\141\x67\145", $page); goto qQmjc; lxJ5J: $actn = request()->post("\x73\145\x61\x72\143\150\137\164\145\170\164", ''); goto u40_L; TKuWA: $url = explode("\x26", $url[1]); goto HFfVC; MRhg3: $this->assign("\163\x65\141\162\x63\x68\137\x74\145\170\164", $actn); goto hQUWB; WH00j: $list = $activity->getActivityAll($condition, '', "\163\164\x61\x72\x5f\164\x69\x6d\x65\40\144\x65\163\143"); goto sPemO; HFfVC: $url = "\57" . $url[0]; goto SPwq9; WQeoL: $activity = new BusActivity(); goto mLFl_; L2iIU: $page = $list->render(); goto MRhg3; vIr6Z: $url = explode("\75\57", $url); goto TKuWA; JQCS6: Rl4BZ: goto L2iIU; TlAeV: $mch_id = isset($this->bus_id) ? $this->bus_id : "\60"; goto lxJ5J; hQUWB: $this->assign("\154\151\163\x74", $list); goto HHhnq; sPemO: goto Rl4BZ; goto gl708; gl708: DiZ5Q: goto JlDX3; ilc4o: } public function addActivity() { goto BSqsf; QF_Wl: $satisfy_money = input("\x70\141\162\x61\155\56\163\141\x74\151\163\146\x79\x5f\x6d\157\x6e\145\171", "\60"); goto Myeln; OK8QS: $activity = new BusActivity(); goto knbzF; E4FDw: return view("\x61\x63\x74\151\x76\x69\x74\x79\57\x61\144\x64\x5f\x61\143\164\x69\166\x69\x74\x79"); goto OAUbL; FiWx1: vqxwZ: goto E4FDw; t9MfN: return AjaxReturn($res); goto FiWx1; gkGGc: $end_time = strtotime(input("\x70\141\x72\141\155\56\x65\156\144\137\x74\x69\155\x65", "\x30")); goto Un98y; Ys0zF: $activity_name = input("\160\141\x72\x61\x6d\x2e\x61\x63\164\x69\166\151\164\171\x5f\156\x61\155\145", ''); goto QF_Wl; Un98y: $is_use = input("\x70\x61\x72\x61\155\56\x69\x73\137\x75\x73\145"); goto xjMKw; BSqsf: $mch_id = isset($this->bus_id) ? $this->bus_id : "\x30"; goto OK8QS; Myeln: $discount_money = input("\x70\x61\162\141\155\56\144\151\163\143\157\x75\x6e\164\137\155\157\156\x65\x79", "\x30"); goto YDX2B; knbzF: if (!(request()->isAjax() && request()->isPost())) { goto vqxwZ; } goto Ys0zF; YDX2B: $star_time = strtotime(input("\160\141\162\x61\x6d\56\163\164\x61\x72\x5f\x74\151\x6d\145"), "\x30"); goto gkGGc; xjMKw: $res = $activity->addActivity($activity_name, $satisfy_money, $discount_money, $star_time, $end_time, $is_use, $mch_id); goto t9MfN; OAUbL: } public function editActivity() { goto RR482; ZbqhN: $satisfy_money = input("\x70\141\162\x61\x6d\x2e\x73\141\164\x69\163\x66\x79\137\155\157\x6e\145\171", "\x30"); goto ifTlN; aZ42d: $this->assign("\x69\156\146\157", $info); goto IpuWx; RR482: $mch_id = isset($this->bus_id) ? $this->bus_id : "\x30"; goto ZBLKY; zyv4y: $is_use = input("\160\141\x72\x61\155\56\151\x73\137\165\163\x65"); goto rYKZc; HW7CY: $star_time = strtotime(input("\x70\x61\x72\141\x6d\56\x73\164\141\162\137\164\151\155\145"), "\60"); goto u1KHM; ifTlN: $discount_money = input("\160\141\162\x61\x6d\x2e\144\x69\163\143\x6f\165\x6e\x74\137\x6d\x6f\156\145\171", "\60"); goto HW7CY; u1KHM: $end_time = strtotime(input("\160\x61\162\x61\155\x2e\145\x6e\144\x5f\164\x69\155\x65", "\60")); goto zyv4y; rYKZc: $res = $activity->editActivity($id, $activity_name, $satisfy_money, $discount_money, $star_time, $end_time, $is_use, $mch_id); goto NCIdL; IzImi: if (!(request()->isAjax() && request()->isPost())) { goto eKlwr; } goto L68H3; zwsgR: $activity_name = input("\x70\x61\x72\141\155\x2e\141\x63\x74\151\x76\151\164\171\x5f\x6e\x61\155\145", ''); goto ZbqhN; hpzDA: $id = input("\x70\x61\162\x61\155\56\151\144", "\x30"); goto mXkNl; IpuWx: return view("\x61\x63\x74\151\166\151\x74\171\x2f\x65\144\151\164\x5f\x61\x63\x74\x69\166\151\164\171"); goto WiADm; L68H3: $id = input("\x70\x61\162\x61\155\56\x69\x64", "\x30"); goto zwsgR; t5vif: eKlwr: goto hpzDA; NCIdL: return AjaxReturn($res); goto t5vif; ZBLKY: $activity = new BusActivity(); goto IzImi; mXkNl: $info = $activity->getActivityInfo($id); goto aZ42d; WiADm: } public function delActivity() { goto S45Qg; Q84ha: $res = $activity->delActivity($id, $mch_id); goto PsYbn; S_EKp: $id = input("\160\x61\x72\141\155\56\151\x64", "\x30"); goto Q84ha; PsYbn: return AjaxReturn($res); goto b0Iqv; S45Qg: $mch_id = isset($this->bus_id) ? $this->bus_id : "\60"; goto xjBRm; xjBRm: $activity = new BusActivity(); goto S_EKp; b0Iqv: } public function offActivity() { goto tvSv3; miVSR: $activity = new BusActivity(); goto Njf8C; tvSv3: $mch_id = isset($this->bus_id) ? $this->bus_id : "\x30"; goto miVSR; hICyq: return AjaxReturn($res); goto OAkcX; Cphcu: $res = $activity->offActivity($id); goto hICyq; Njf8C: $id = input("\160\141\162\141\155\x2e\151\144", "\x30"); goto Cphcu; OAkcX: } public function onActivity() { goto wAaMr; zGX_o: $id = input("\x70\x61\162\x61\155\56\x69\x64", "\60"); goto JqooD; sF18N: return AjaxReturn($res); goto H3Gdu; JqooD: $res = $activity->onActivity($id); goto sF18N; wAaMr: $mch_id = isset($this->bus_id) ? $this->bus_id : "\60"; goto hws7e; hws7e: $activity = new BusActivity(); goto zGX_o; H3Gdu: } public function coupon() { goto zRD4L; qWrGl: zs9g9: goto Xaj3s; Xaj3s: $list = db::name("\171\142\155\x70\137\142\x75\163\x69\156\145\163\163\137\x63\x6f\165\160\157\156")->where("\155\x63\x68\137\x69\144", $this->bus_id)->where($where)->where("\151\x73\x5f\x64\145\154", 0)->order("\x65\156\144\x5f\x74\x69\155\x65")->paginate(20); goto uj9W1; Sax5G: $where = array(); goto hK0O4; izQdF: $this->assign("\x6c\151\163\x74", $list); goto JaiBE; G6zJk: return view("\x61\143\164\x69\x76\151\x74\x79\57\x63\x6f\x75\160\x6f\x6e"); goto LAfG7; hK0O4: if (empty($search_text)) { goto zs9g9; } goto k7bHG; k7bHG: $where["\x61\143\164\x69\x76\151\x74\171\x5f\156\x61\155\145"] = array("\x6c\x69\153\145", "\x25" . $search_text . "\x25"); goto qWrGl; zRD4L: $search_text = request()->param("\163\145\141\162\143\150\x5f\164\145\170\164", ''); goto Sax5G; uj9W1: $page = $list->render(); goto izQdF; JaiBE: $this->assign("\x70\x61\147\x65", $page); goto DF7dw; DF7dw: $this->assign("\x73\145\x61\x72\143\150\137\164\x65\170\x74", $search_text); goto G6zJk; LAfG7: } public function add_coupon() { goto y_5SC; NapJL: $data["\163\x61\x74\x69\x73\146\171\137\155\x6f\156\x65\171"] = input("\160\141\x72\141\155\x2e\x73\x61\164\x69\x73\146\x79\137\155\157\x6e\x65\171", "\60"); goto ECgN4; ClVuC: $data["\x61\x63\x74\151\x76\151\164\x79\x5f\156\141\155\x65"] = input("\160\x61\162\141\x6d\x2e\x61\143\164\x69\166\x69\164\171\137\156\x61\x6d\145", ''); goto NapJL; TuNDx: $data["\145\x6e\144\x5f\x74\151\155\x65"] = strtotime(input("\x70\141\162\x61\x6d\56\145\x6e\x64\137\x74\151\155\x65", "\x30")); goto QHgpl; HfjfN: $data["\x6d\143\x68\x5f\151\x64"] = $this->bus_id; goto v7Fo_; l071f: Uig_i: goto qJfEB; ECgN4: $data["\x64\x69\163\x63\157\x75\156\x74\x5f\155\157\x6e\145\x79"] = input("\x70\141\x72\x61\x6d\x2e\x64\151\163\x63\157\x75\x6e\x74\137\155\157\156\145\171", "\x30"); goto VkUtb; VkUtb: $data["\x73\164\141\162\137\x74\x69\155\x65"] = strtotime(input("\x70\141\x72\x61\x6d\56\163\x74\141\x72\137\164\x69\x6d\x65"), "\x30"); goto TuNDx; WGS94: $data["\x72\x65\x6d\x5f\x63\157\x75\x6e\x74"] = input("\160\141\162\x61\155\56\143\157\165\x6e\164", "\x31\60"); goto W56MK; qJfEB: return view("\141\143\164\x69\166\151\164\x79\57\143\x6f\165\x70\x6f\x6e\x5f\x61\144\144"); goto ubJI0; W56MK: $data["\147\x65\164\x5f\143\157\x75\156\164"] = input("\160\x61\162\x61\x6d\x2e\x67\x65\164\137\x63\x6f\165\x6e\x74", ''); goto x2Kdh; YcMo6: $res = db::name("\x79\x62\155\160\137\x62\165\x73\151\156\145\163\163\x5f\x63\x6f\x75\x70\157\156")->insert($data); goto H_1fL; v7Fo_: $data["\143\157\x75\x6e\x74"] = input("\160\141\x72\141\x6d\x2e\143\x6f\165\156\x74", "\x31\x30"); goto WGS94; QHgpl: $data["\x69\x73\137\165\163\145"] = input("\160\141\x72\141\x6d\56\x69\x73\137\165\163\x65"); goto HfjfN; H_1fL: return AjaxReturn($res); goto l071f; y_5SC: if (!(request()->isAjax() && request()->isPost())) { goto Uig_i; } goto ClVuC; x2Kdh: $data["\x74\x6f\147\145\164\x68\x65\162"] = input("\160\141\162\x61\x6d\x2e\164\x6f\x67\145\164\x68\x65\x72", "\61"); goto YcMo6; ubJI0: } public function update_coupon() { goto zR0bQ; zR0bQ: if (!(request()->isAjax() && request()->isPost())) { goto rSOn_; } goto oL_Za; X85It: return AjaxReturn($res); goto H2RfK; hfibb: $data["\162\x65\155\137\143\157\165\x6e\x74\x31"] = input("\x70\x61\x72\141\155\x2e\x72\145\x6d\137\143\157\165\156\x74", "\61\60"); goto x1Kgn; N2Uuu: $data["\x64\151\163\143\157\x75\x6e\164\x5f\x6d\157\x6e\145\171"] = input("\x70\141\x72\x61\155\56\144\151\x73\143\x6f\165\156\x74\x5f\x6d\x6f\x6e\x65\x79", "\x30"); goto hsLWI; oL_Za: $data["\x69\144"] = input("\x70\x61\162\x61\155\x2e\x69\144", ''); goto cS4uY; H2RfK: rSOn_: goto H8npy; CJV3C: $data["\162\x65\x6d\x5f\143\157\x75\x6e\164"] = $data["\x72\145\155\137\143\157\165\156\164\61"] + $data["\x63\x6f\x75\156\x74\62"]; goto MZZA4; x1Kgn: $data["\x63\157\x75\156\164\x5f\143\x6f\x70\x79"] = input("\x70\141\162\x61\x6d\x2e\143\x6f\165\x6e\164\137\143\157\160\171", ''); goto X1Pi5; Cx6jF: $data["\x6d\143\x68\137\x69\x64"] = $this->bus_id; goto NKWMT; hsLWI: $data["\163\164\x61\x72\137\164\151\x6d\145"] = strtotime(input("\160\141\162\141\x6d\x2e\163\x74\141\x72\x5f\x74\151\155\145"), "\x30"); goto xYySh; JZIa1: $data["\x63\x6f\x75\x6e\164"] = $data["\x63\157\165\156\164\x5f\143\157\x70\x79"] + $data["\143\x6f\165\x6e\x74\62"]; goto CJV3C; MZZA4: $res = db::name("\171\x62\155\x70\137\142\165\163\151\156\x65\163\163\137\x63\x6f\165\x70\x6f\156")->where(["\151\x64" => $data["\x69\x64"]])->update(["\143\x6f\165\156\x74" => $data["\143\157\x75\x6e\164"], "\162\145\155\x5f\143\157\x75\156\164" => $data["\162\145\x6d\137\143\x6f\165\156\164"], "\x61\143\x74\x69\166\x69\x74\x79\137\x6e\x61\155\x65" => $data["\141\x63\x74\151\166\151\x74\171\x5f\156\x61\x6d\x65"], "\163\164\141\x72\137\x74\151\x6d\145" => $data["\163\x74\141\162\137\164\x69\x6d\145"], "\145\156\144\x5f\164\151\155\x65" => $data["\x65\x6e\x64\x5f\164\151\x6d\x65"]]); goto X85It; NKWMT: $data["\143\x6f\x75\156\164\61"] = input("\160\x61\162\141\155\x2e\x63\x6f\x75\156\x74", "\x31\x30"); goto hfibb; CWZw0: $data["\x73\141\x74\x69\x73\x66\x79\x5f\155\x6f\x6e\x65\171"] = input("\x70\141\x72\x61\x6d\x2e\x73\x61\x74\x69\163\x66\x79\x5f\155\x6f\x6e\145\171", "\60"); goto N2Uuu; cS4uY: $data["\141\143\x74\151\x76\151\x74\171\137\x6e\x61\155\x65"] = input("\160\x61\162\x61\155\x2e\x61\143\x74\x69\166\x69\x74\x79\137\x6e\141\155\x65", ''); goto CWZw0; X1Pi5: $data["\143\157\165\156\x74\62"] = $data["\x63\157\165\156\164\61"] - $data["\143\157\165\x6e\164\137\143\157\x70\171"]; goto JZIa1; H8npy: return view("\141\x63\164\151\x76\151\x74\x79\57\x63\157\165\160\x6f\x6e\137\x65\144\151\x74"); goto FSxjx; xYySh: $data["\145\x6e\144\x5f\164\151\x6d\145"] = strtotime(input("\x70\x61\x72\141\x6d\x2e\145\156\x64\137\164\x69\x6d\145", "\60")); goto Cx6jF; FSxjx: } public function off_coupon() { goto GyPQ_; pKmIK: return AjaxReturn($res); goto Zv0Mi; QvKCY: $res = db::name("\x79\x62\155\x70\137\x62\165\x73\151\x6e\x65\163\x73\x5f\143\157\165\160\157\x6e")->where("\151\144", $id)->update(["\x69\x73\x5f\165\163\x65" => 2]); goto pKmIK; GyPQ_: $id = input("\x70\141\162\141\155\56\x69\144", "\x30"); goto QvKCY; Zv0Mi: } public function on_coupon() { goto STa1L; AhHn_: $res = db::name("\171\x62\x6d\x70\137\x62\x75\163\151\x6e\x65\163\x73\x5f\x63\157\165\x70\x6f\x6e")->where("\151\144", $id)->update(["\151\163\137\165\x73\145" => 1]); goto h4Jtt; h4Jtt: return AjaxReturn($res); goto oNuEM; STa1L: $id = input("\160\x61\162\141\155\56\151\x64", "\x30"); goto AhHn_; oNuEM: } public function together_stop() { goto k4ifd; SaVhj: return AjaxReturn($res); goto FxbT6; isUGf: $res = db::name("\x79\142\155\x70\137\142\165\163\151\x6e\x65\163\163\x5f\x63\x6f\x75\160\x6f\156")->where("\x69\144", $id)->update(["\164\157\147\145\164\150\145\x72" => 1]); goto SaVhj; k4ifd: $id = input("\x70\141\162\141\x6d\x2e\x69\144", "\60"); goto isUGf; FxbT6: } public function together_on() { goto uDnXs; uDnXs: $id = input("\x70\141\162\141\x6d\56\151\144", "\60"); goto n6ISU; AY2Kw: return AjaxReturn($res); goto WQE6W; n6ISU: $res = db::name("\171\142\x6d\160\x5f\x62\165\x73\x69\156\x65\x73\163\x5f\x63\157\x75\160\157\156")->where("\x69\x64", $id)->update(["\x74\x6f\147\x65\x74\x68\145\x72" => 2]); goto AY2Kw; WQE6W: } public function coupon_del() { goto tOgyu; j1nmj: $res = db::name("\171\142\155\x70\137\142\x75\163\151\156\x65\x73\x73\137\143\x6f\x75\160\x6f\x6e")->where("\151\144", $id)->update(["\151\163\137\144\x65\x6c" => 1, "\x69\163\137\165\163\x65" => 2]); goto ybYPT; tOgyu: $id = input("\160\141\162\141\x6d\56\x69\144", "\60"); goto j1nmj; ybYPT: return AjaxReturn($res); goto hRoAj; hRoAj: } public function edit_coupon() { goto dzzE2; GzhuS: return view("\x61\143\164\x69\x76\x69\x74\171\x2f\x63\x6f\x75\160\x6f\156\137\x65\144\x69\x74"); goto B9VPd; pFusZ: $this->assign("\154\151\163\164", $list); goto GzhuS; Lm4zC: $list = db::name("\171\x62\x6d\160\137\142\x75\163\x69\156\145\163\163\x5f\143\x6f\x75\x70\157\156")->where(["\x69\x64" => $id])->find(); goto pFusZ; dzzE2: $id = input("\x67\145\164\x2e\x69\x64", "\x30"); goto Lm4zC; B9VPd: } public function together_user_list() { goto Khagf; ztuzT: return view("\x61\143\x74\x69\166\x69\x74\x79\57\143\157\165\x70\157\156\137\165\163\145\162\x5f\154\x69\x73\164"); goto NHDLY; s4xy4: $url = "\57" . $url[0]; goto x9dQF; QJRbb: $this->assign("\x6c\x69\x73\x74", $list); goto pLLK8; pdkNj: $search_text = preg_replace("\43\x20\x23", '', input("\160\141\x72\141\155\x2e\163\x65\141\x72\143\x68\x5f\x74\145\x78\164")); goto uRtYH; pLLK8: $this->assign("\x70\x61\x67\x65", $page); goto E4mmS; jcVS9: $url = explode("\46", $url[1]); goto s4xy4; x9dQF: $list = db::name("\171\142\155\160\x5f\165\x73\145\162\x5f\143\x6f\165\160\x6f\156")->alias("\x63")->join("\x79\142\155\160\137\165\x73\x65\x72\x20\165", "\x75\x2e\165\x69\x64\75\143\x2e\x75\x73\145\x72\137\x69\x64")->where("\x63\56\155\x63\150\137\x69\x64", $this->bus_id)->where("\143\56\143\157\165\160\x6f\156\x5f\x69\x64", $id)->where($where)->field("\x75\56\x6e\x69\143\x6b\x5f\x6e\141\x6d\x65\x2c\143\x2e\52")->order("\x63\56\147\145\x74\x5f\x74\x69\155\145\x20\x64\145\163\x63")->paginate(4, false, ["\161\165\145\x72\171" => ["\x73" => $url, "\151\144" => $id]]); goto A2bZd; Khagf: $id = input("\x70\141\162\x61\155\x2e\x69\x64"); goto pdkNj; U6aOH: $where["\143\x2e\153\x65\x79"] = array("\x6c\151\x6b\145", "\x25" . $search_text . "\x25"); goto pt0v9; Dxdy3: if (empty($search_text)) { goto DvpY7; } goto U6aOH; uRtYH: $where = array(); goto Dxdy3; onmKw: $url = request()->query(); goto jYQpF; xkdSD: $end_time = db::name("\171\142\x6d\160\137\142\165\163\x69\x6e\145\163\x73\137\x63\x6f\165\160\x6f\x6e")->where("\151\x64", $id)->value("\x65\156\144\137\x74\x69\155\x65"); goto wb8OO; jYQpF: $url = explode("\x3d\57", $url); goto jcVS9; A2bZd: $page = $list->render(); goto QJRbb; wb8OO: $this->assign("\145\x6e\144\137\164\x69\x6d\145", $end_time); goto onmKw; E4mmS: $this->assign("\x69\x64", $id); goto bem4f; pt0v9: DvpY7: goto xkdSD; bem4f: $this->assign("\163\145\x61\x72\x63\150\x5f\164\x65\x78\164", $search_text); goto ztuzT; NHDLY: } public function coupon_user_hx() { goto Ppn2n; Ppn2n: $id = input("\x70\141\x72\141\x6d\56\x69\144"); goto Wmv3m; Wmv3m: $res = db::name("\x79\x62\x6d\160\x5f\x75\x73\145\x72\x5f\x63\157\x75\160\157\156")->where("\x69\x64", $id)->update(["\165\x73\145\137\164\x69\155\145" => time(), "\163\x74\141\164\x75\x73" => 1]); goto rJHeS; rJHeS: return AjaxReturn($res); goto CEa0T; CEa0T: } public function user_share() { goto m8Eb6; Ea9ak: if ($user[$i]["\160\151\x64"] == 0) { goto Bb1E4; } goto Himiw; lqDHI: ZkMjI: goto H7AHA; ZqoRZ: $condition["\163\164\x61\164\165\x73"] = $status; goto LRysZ; GYpM3: $this->assign("\x73\145\x61\162\x63\x68\x5f\156\141\155\x65", $search_name); goto KKBG5; QQOc0: pgqSs: goto Ea9ak; GGnCG: Bb1E4: goto Np9sO; VTu9h: $this->assign("\x64\145\145\x70", $deep); goto C6laC; nLCWt: $res[$i]["\x73\145\154\x6c\145\x72\137\x63\x6f\x6d\x6d\x65\156\x74\x73"] = substr($user[$i]["\163\145\154\x6c\145\x72\x5f\143\157\x6d\155\145\156\x74\x73"], 0, 9) . "\x2e\56\x2e"; goto QQOc0; LRysZ: wPaLd: goto rop78; SESqx: $pid = db::name("\171\142\155\x70\137\x75\x73\145\x72")->field("\x6e\x69\x63\153\137\x6e\x61\x6d\x65")->where("\x75\151\x64", $user[$i]["\160\x69\x64"])->find(); goto zn8Xf; fUjdW: d22yZ: goto VKUdG; EzyK_: $res = array(); goto uItZz; vHAdG: $res[$i]["\146\141\x74\150\145\x72"] = $pid["\x6e\x61\155\145"]; goto B2iZa; VKUdG: if (!($status == "\x30" || $status == "\61")) { goto wPaLd; } goto ZqoRZ; TQAM3: if (!empty($pid)) { goto trPDT; } goto SESqx; J9TMh: trPDT: goto vHAdG; rop78: $user = db::name("\171\142\x6d\160\x5f\x75\163\145\x72\x5f\163\150\x61\162\145")->alias("\163")->join("\x79\x62\155\160\x5f\x75\163\145\162\40\x75", "\163\x2e\165\163\x65\162\x5f\151\x64\75\x75\x2e\165\x69\x64")->field("\163\x2e\x75\x73\145\162\137\x69\144\40\163\151\144\54\x6d\x6f\x62\151\154\145\x2c\156\141\155\x65\54\163\164\x61\x74\x75\x73\54\x63\162\x65\x61\164\x65\x5f\164\151\155\145\x2c\163\145\x6c\x6c\x65\x72\137\x63\157\155\x6d\x65\156\x74\163\x2c\156\x69\143\x6b\137\156\141\x6d\145\54\x74\157\164\x61\x6c\x5f\x70\x72\151\x63\145\54\160\162\151\143\x65\x2c\x70\x69\x64")->where($condition)->paginate(10, false, $config = ["\161\165\x65\x72\x79" => ["\x73" => $url]]); goto fldaR; zn8Xf: $res[$i]["\146\141\x74\x68\145\x72"] = $pid["\156\x69\143\x6b\137\156\x61\x6d\x65"]; goto dzZ11; VtdO0: $deep = $d["\154\145\166\x65\154"]; goto qBJpH; nBgQi: goto NcxwQ; goto LzGWB; C6laC: $this->assign("\x70\x61\147\x65", $user->render()); goto AMgFJ; hXQeu: $res[$i]["\143\150\151\154\x64"] = $get_child->get_child_share($user[$i]["\163\x69\144"], "\55\61", $deep); goto lqDHI; B2iZa: sthVM: goto Dsrl5; CVC8a: NcxwQ: goto hyen2; Z9aOK: if (empty($search_name)) { goto d22yZ; } goto ONZVa; Dsrl5: goto B8zVO; goto GGnCG; KKBG5: $this->assign("\x6c\151\163\x74", $res); goto VTu9h; gxYnE: $url = explode("\x3d\x2f", $url); goto CSW06; Np9sO: $res[$i]["\146\x61\x74\150\x65\162"] = "\346\x80\xbb\345\xba\227"; goto uMli_; XYs9h: $mch_id = $this->bus_id; goto LgvAU; msQLg: if (!(strlen($user[$i]["\163\145\x6c\154\x65\162\137\143\157\155\x6d\x65\156\164\163"]) > 10)) { goto pgqSs; } goto nLCWt; dzZ11: goto sthVM; goto J9TMh; ONZVa: $condition["\x6e\x69\x63\153\137\x6e\141\155\145"] = ["\x6c\151\153\145", "\45" . $search_name . "\x25"]; goto fUjdW; gaacw: $url = request()->query(); goto gxYnE; CSW06: $url = explode("\x26", $url[1]); goto lTmug; Himiw: $pid = db::name("\x79\142\x6d\x70\x5f\165\x73\145\x72\137\163\x68\141\162\145")->field("\156\x61\x6d\x65")->where("\165\163\145\x72\137\x69\x64", $user[$i]["\x70\x69\144"])->find(); goto TQAM3; qBJpH: $get_child = new BusActivity(); goto EzyK_; fldaR: $d = db::name("\171\142\x6d\x70\x5f\x75\x73\145\162\x5f\163\150\x61\x72\145\137\x73\145\164\164\x69\156\x67")->where("\x6d\x63\x68\137\x69\x64", $mch_id)->field("\154\145\166\x65\154")->find(); goto VtdO0; lTmug: $url = "\57" . $url[0]; goto Vf8BN; Ogaf1: $condition["\163\56\151\163\137\x64\145\154"] = 1; goto XYs9h; AmPuH: $this->assign("\163\164\141\164\x75\163", $status); goto GYpM3; uItZz: $i = 0; goto CVC8a; uMli_: B8zVO: goto hXQeu; oOI2C: $res[$i] = $user[$i]; goto msQLg; Vf8BN: $status = request()->get("\163\x74\141\164\165\163", ''); goto HBmxT; H7AHA: $i++; goto nBgQi; hyen2: if (!($i < count($user))) { goto ggddx; } goto oOI2C; m8Eb6: @pdo_run("\125\120\104\101\x54\x45\40" . \think\Config::get("\144\141\x74\x61\x62\141\x73\145\56\160\x72\x65\x66\151\x78") . "\x79\142\155\x70\x5f\165\x73\x65\x72\40\x53\105\x54\40\x70\x69\144\75\x30\x20\x57\x48\x45\x52\x45\x20\x70\151\x64\75\x75\x69\144\x20\x41\x4e\104\40\151\163\x5f\144\151\x73\164\x72\x69\142\x75\x74\x6f\162\75\61"); goto gaacw; AMgFJ: return view(); goto fDa5w; LgvAU: $condition["\163\56\155\143\150\137\x69\144"] = $mch_id; goto Z9aOK; HBmxT: $search_name = input("\160\x61\162\141\155\56\x73\145\x61\162\x63\150\137\x6e\x61\155\x65", ''); goto Ogaf1; LzGWB: ggddx: goto AmPuH; fDa5w: } public function user_share_edit() { goto SPM5s; SPM5s: $id = input("\x70\x61\162\141\155\56\x69\x64", "\60"); goto Z4m8b; P9y1R: goto uuTyi; goto K8Rcg; StIeE: ScbIV: goto dw34U; ImdAj: switch ($type) { case "\144\x65\154\137\163\x68\141\x72\145": $sql = "\165\x70\x64\x61\x74\x65\x20" . \think\Config::get("\x64\141\x74\x61\142\141\x73\145\x2e\160\x72\x65\146\151\170") . "\171\142\155\160\137\x75\163\145\162\137\163\150\x61\x72\x65\40\163\x20\x49\x4e\x4e\105\x52\x20\x4a\117\x49\116\x20" . \think\Config::get("\x64\141\164\x61\142\141\163\145\56\160\x72\x65\x66\151\x78") . "\x79\142\155\x70\137\x75\163\x65\x72\40\x75\x20\x6f\x6e\x20\163\56\165\163\145\162\137\151\144\75\x75\56\165\x69\144\x20\x73\x65\x74\40\x73\56\x69\x73\137\144\145\x6c\40\75\x20\62\x2c\165\x2e\151\163\x5f\144\151\163\x74\x72\151\142\x75\164\157\162\75\x30\x20\x77\x68\145\x72\145\40\x73\56\x75\x73\x65\162\137\151\144\x3d" . $id; goto ScbIV; case "\151\163\137\x70\x61\163\163": $sql = "\165\160\144\141\x74\145\x20" . \think\Config::get("\144\141\x74\x61\142\x61\x73\x65\x2e\160\x72\145\146\x69\x78") . "\x79\x62\155\160\x5f\165\163\145\162\137\163\150\141\x72\145\40\163\x20\111\x4e\x4e\105\x52\40\x4a\117\111\116\40" . \think\Config::get("\x64\x61\x74\141\142\x61\163\145\56\160\x72\145\x66\151\x78") . "\x79\x62\x6d\160\137\x75\163\145\162\x20\x75\40\x6f\156\x20\163\56\x75\163\145\x72\x5f\x69\x64\x3d\x75\56\x75\151\x64\40\163\x65\x74\40\x73\x2e\163\164\x61\164\x75\163\x20\x3d\x20\61\54\165\x2e\151\163\x5f\144\x69\x73\164\162\x69\142\165\x74\157\162\75\61\x20\x77\150\145\x72\145\x20\163\56\x75\x73\145\162\x5f\x69\x64\x3d" . $id; goto ScbIV; case "\x6e\x6f\137\160\141\x73\163": $sql = "\x75\160\144\x61\164\x65\x20" . \think\Config::get("\x64\141\x74\141\x62\141\x73\x65\56\x70\x72\145\146\x69\x78") . "\x79\x62\x6d\160\137\x75\x73\145\x72\x5f\163\x68\141\x72\x65\x20\163\40\111\116\x4e\105\122\x20\x4a\x4f\111\x4e\40" . \think\Config::get("\x64\x61\x74\x61\x62\x61\163\x65\56\160\x72\145\146\x69\x78") . "\x79\142\155\x70\137\x75\163\145\162\40\x75\40\x6f\x6e\40\x73\x2e\165\163\x65\162\x5f\151\x64\x3d\165\56\x75\151\x64\x20\x73\x65\x74\x20\163\x2e\x73\x74\141\164\165\x73\40\x3d\x20\x32\54\x75\56\x69\x73\x5f\144\151\x73\x74\162\151\142\x75\164\x6f\162\75\60\x20\167\x68\145\x72\145\x20\163\x2e\x75\x73\x65\162\137\151\x64\75" . $id; goto ScbIV; case "\141\154\x6c\x5f\x70\x61\163\x73": goto tnRVW; tnRVW: $check = new BusActivity(); goto i2Vfn; GB7yh: $sql = "\165\x70\x64\141\164\x65\x20" . \think\Config::get("\x64\141\x74\x61\142\x61\x73\x65\x2e\160\162\145\x66\x69\x78") . "\171\142\x6d\x70\137\x75\x73\x65\x72\x5f\x73\x68\141\x72\x65\40\163\40\x49\x4e\116\105\122\40\x4a\x4f\111\116\x20" . \think\Config::get("\144\141\164\x61\x62\141\163\145\x2e\160\x72\145\146\x69\170") . "\171\x62\155\x70\x5f\165\163\x65\162\40\165\x20\x6f\x6e\40\163\x2e\165\163\x65\x72\x5f\x69\144\75\x75\x2e\x75\151\144\40\163\145\x74\x20\x73\x2e\163\164\141\x74\x75\x73\40\x3d\x20\x31\54\165\x2e\x69\163\x5f\144\x69\x73\x74\162\x69\x62\165\164\157\162\75\x31\40\x77\x68\145\x72\x65\x20\163\x2e\165\163\145\x72\137\x69\x64\x20\x69\x6e\40\x28\40" . $id . "\40\x29"; goto SKGMv; SKGMv: goto ScbIV; goto OKh9Q; i2Vfn: $id = $check->screen_id("\x79\x62\x6d\160\x5f\x75\x73\x65\x72\137\163\150\141\x72\145", $id, "\165\163\145\x72\137\x69\x64", 0, "\x73\164\x61\164\x75\163"); goto l3RV3; s0Ju2: return 1; goto AMlc7; AMlc7: r7NGE: goto GB7yh; l3RV3: if (!(strlen($id) == 0)) { goto r7NGE; } goto s0Ju2; OKh9Q: } goto sxj7A; Z4m8b: $type = input("\160\141\x72\x61\x6d\x2e\x74\171\x70\x65\163", "\x30"); goto ImdAj; dw34U: if ($sql == '') { goto l1B7B; } goto ond93; ond93: @pdo_run($sql); goto Cl4iB; sxj7A: ZaZCt: goto StIeE; K8Rcg: l1B7B: goto QnKcX; QnKcX: return 0; goto PeOl8; PeOl8: uuTyi: goto KqXLP; Cl4iB: return 1; goto P9y1R; KqXLP: } public function comment_edit() { goto chm1o; cNT1O: $this->assign("\x64\x61\x74\141", $comment); goto qyzTx; t38r8: $comment = db::name("\171\x62\x6d\160\x5f\165\163\145\x72\137\x73\x68\141\162\x65")->where("\x75\163\145\x72\x5f\x69\x64", $id)->field("\163\145\154\154\145\x72\x5f\x63\157\155\x6d\x65\156\164\163\54\165\163\x65\x72\137\151\x64")->find(); goto cNT1O; qyzTx: return view("\141\143\x74\151\x76\151\x74\171\57\x63\x6f\155\x6d\145\x6e\x74\137\x65\x64\x69\164"); goto xvmaV; chm1o: $id = request()->get("\151\144", "\x30"); goto t38r8; xvmaV: } public function update_comment() { goto BK2L1; doeYp: return "\62"; goto KmVEt; U3pEN: if (!empty($com)) { goto cUElp; } goto YCat_; OxlYL: cUElp: goto tEhI5; BK2L1: $id = input("\160\141\162\x61\x6d\x2e\151\144"); goto UMq8D; YCat_: return "\61"; goto ipuO8; KmVEt: osqfC: goto nm0BH; UMq8D: $com = request()->post("\143\x6f\x6d"); goto U3pEN; ipuO8: goto osqfC; goto OxlYL; y0G_t: pdo_run($sql); goto doeYp; tEhI5: $sql = "\x75\x70\x64\141\x74\x65\x20" . \think\Config::get("\144\141\x74\141\x62\x61\163\x65\x2e\160\162\x65\x66\x69\170") . "\171\x62\x6d\160\137\x75\163\145\162\x5f\163\150\x61\162\x65\x20\x73\145\x74\x20\163\145\154\154\145\x72\137\143\157\x6d\155\145\x6e\164\163\75\47" . $com . "\x27\40\167\150\x65\162\x65\40\165\x73\145\x72\137\151\x64\x3d" . $id; goto y0G_t; nm0BH: } public function child_show() { goto J3p19; I1pQg: $deep = request()->get("\144\x65\x65\x70"); goto Xlxrk; J3p19: $get_child = new BusActivity(); goto WpX6F; ZKRMG: $this->assign("\x6c\151\x73\x74", $child); goto aA09R; aA09R: return view(); goto h2u3d; WpX6F: $pid = request()->get("\160\x69\144"); goto I1pQg; Xlxrk: $child = $get_child->get_child_share($pid, $deep); goto ZKRMG; h2u3d: } public function recancel() { goto QZXCZ; QZXCZ: $pid = request()->post("\151\144"); goto JicMT; jSegB: return AjaxReturn($res); goto THPAb; JicMT: $res = db::name("\x79\x62\155\x70\137\165\x73\145\x72")->where("\x75\151\144", $pid)->update(["\160\x69\x64" => 0]); goto jSegB; THPAb: } public function share_set() { goto Q4VVa; KBiGS: p7kfg: goto CylvZ; qfk62: $level = request()->post("\x6c\145\166\x65\154"); goto yimz2; oIORj: $min_money = request()->post("\x6d\151\156\137\155\157\x6e\145\171"); goto VVyKJ; pelMk: $share["\x6d\x69\156\x5f\155\157\x6e\x65\x79"] = "\60\x2e\60\60"; goto rETuY; Wt81j: $is_rebate = request()->post("\x69\x73\137\162\x65\x62\x61\164\145"); goto qfk62; oLGWv: $res = db::name("\x79\x62\x6d\160\137\165\163\x65\x72\x5f\163\x68\x61\162\145\x5f\163\x65\164\x74\151\x6e\147")->insert(["\x6c\145\166\x65\x6c" => $level, "\160\141\x79\137\164\x79\160\x65" => $pay_type, "\155\151\156\137\155\157\x6e\145\171" => $min_money, "\155\x61\170\x5f\155\x6f\x6e\145\x79" => $max_money, "\143\157\x6e\x74\145\156\x74" => $content, "\x73\150\141\162\145\x5f\143\157\x6e\x64\151\164\151\157\x6e" => $share_condition, "\141\x67\x72\145\145" => $agree, "\155\x63\150\137\151\144" => $this->bus_id, "\151\163\137\x72\x65\142\x61\x74\x65" => $is_rebate]); goto ZkkXJ; rV30N: $share["\143\x6f\156\x74\x65\x6e\164"] = ''; goto DeqRM; rETuY: $share["\155\x61\170\x5f\155\x6f\156\x65\x79"] = "\x30\56\60\60"; goto rV30N; U2Tvh: $data = "\x32"; goto uX0iu; wmlKL: $content = request()->post("\143\x6f\x6e\x74\145\156\164"); goto iozDO; sm3iT: $pay_type = request()->post("\160\141\171\137\164\x79\x70\145"); goto oIORj; wAarF: neacf: goto oLGWv; ZkkXJ: m1lol: goto U2Tvh; yimz2: $count = db::name("\x79\x62\x6d\160\x5f\x75\x73\145\162\137\163\150\141\x72\x65\x5f\x73\145\164\164\151\x6e\x67")->where("\155\x63\x68\x5f\151\x64", $id)->count(); goto B3cAd; DeqRM: $share["\141\x67\162\145\145"] = ''; goto vJJ4r; KAKb2: $share["\151\163\137\x72\145\x62\141\x74\x65"] = 0; goto pelMk; xgqoH: if (!(count($share) == 0)) { goto YQvC2; } goto SfJg4; Q4VVa: $id = $this->bus_id; goto sm3iT; B3cAd: if (!(!empty($level) || $level == "\60")) { goto p7kfg; } goto yysNN; iozDO: $agree = request()->post("\x61\147\162\x65\x65"); goto VPycV; CylvZ: $share = db::name("\171\142\155\x70\137\165\163\145\162\x5f\163\x68\141\x72\x65\x5f\x73\x65\x74\x74\151\x6e\147")->where("\x6d\x63\150\137\x69\x64", $id)->find(); goto xgqoH; uX0iu: return $data; goto KBiGS; MQ3F_: $share["\x6c\145\166\145\154"] = 0; goto KAKb2; SfJg4: $share["\x70\x61\x79\x5f\x74\171\160\x65"] = ''; goto MQ3F_; uMbR9: $this->assign("\163\x68\141\162\145", $share); goto fHiD0; VVyKJ: $max_money = request()->post("\x6d\141\x78\x5f\x6d\x6f\x6e\145\171"); goto wmlKL; VPycV: $share_condition = request()->post("\x73\x68\x61\162\x65\137\x63\x6f\156\144\x69\164\x69\157\x6e"); goto Wt81j; vJJ4r: YQvC2: goto K1CuP; tk6qZ: $res = db::name("\x79\x62\155\160\x5f\x75\x73\x65\x72\137\x73\150\141\162\145\x5f\x73\x65\164\164\151\x6e\x67")->where("\x6d\143\150\137\x69\144", $id)->update(["\x6c\145\166\x65\x6c" => $level, "\160\141\171\x5f\x74\171\160\x65" => $pay_type, "\155\x69\x6e\137\x6d\157\156\x65\171" => $min_money, "\155\141\x78\137\x6d\157\x6e\x65\x79" => $max_money, "\143\x6f\156\164\145\156\164" => $content, "\163\150\x61\162\145\x5f\143\157\156\x64\151\x74\x69\157\156" => $share_condition, "\141\147\x72\x65\x65" => $agree, "\x6d\143\x68\137\x69\x64" => $this->bus_id, "\x69\163\x5f\x72\145\x62\x61\x74\x65" => $is_rebate]); goto P4Dlj; fHiD0: return view(); goto izJfK; P4Dlj: goto m1lol; goto wAarF; K1CuP: $share["\x70\141\x79\137\x74\171\160\x65"] = json_decode($share["\160\x61\x79\x5f\x74\171\160\x65"], true); goto uMbR9; yysNN: if ($count == 0) { goto neacf; } goto tk6qZ; izJfK: } public function share_pay() { goto gOYWv; FrbvP: $share["\x69\143\x6f\x6e"] = "\45"; goto u4Pso; Rfj4Z: if (!empty($share["\x70\162\151\143\x65\137\164\171\160\145"]) && $share["\160\x72\151\143\145\137\x74\x79\160\145"] != 0) { goto wDgsr; } goto FrbvP; cxyh2: PpH5J: goto dZkO0; EM_x1: $share["\160\x72\151\x63\145\137\x74\x79\160\x65"] = "\x30"; goto zGpzo; D3la2: ga_u9: goto HVDWR; u4Pso: if (!($share["\x6c\x65\166\145\154"] == 0)) { goto z31Cv; } goto zgRa2; sSjBP: $share["\154\145\166\x65\154"] = 0; goto cxyh2; l0x7I: goto HLWrM; goto UTa5I; RMsKf: Cp424: goto xGPyC; cicTS: HLWrM: goto t1HKj; sMafm: return view(); goto CvBzp; D5uJ3: if (!(count($share) == 0)) { goto PpH5J; } goto sSjBP; Rjbqj: $share["\x74\150\x69\162\144"] = "\x2d\x31"; goto mpCFq; ZgvTm: return "\60"; goto bwps0; dZkO0: switch ($share["\x6c\x65\x76\145\x6c"]) { case 0: goto IPmYa; case 1: goto XBPDX; bT60D: $share["\164\150\151\x72\x64"] = "\x2d\x31"; goto oFeiV; oFeiV: goto IPmYa; goto XptN_; XBPDX: $share["\163\145\143\157\156\x64"] = "\x2d\61"; goto bT60D; XptN_: case 2: $share["\164\150\151\x72\144"] = "\x2d\61"; goto IPmYa; } goto RMsKf; zgRa2: $share["\154\x65\166\x65\x6c"] = "\x36"; goto EM_x1; N_cav: $share["\151\x63\x6f\x6e"] = "\xe5\x85\x83"; goto cicTS; zGpzo: $share["\163\x65\x63\x6f\x6e\x64"] = "\x2d\61"; goto Rjbqj; UTa5I: wDgsr: goto N_cav; pzJ2h: $this->assign("\x73\150\141\x72\145", $share); goto sMafm; L30vp: if (request()->isAjax() && request()->isPost()) { goto ga_u9; } goto ofHxM; HVDWR: $share = db::name("\171\x62\155\160\137\165\x73\145\162\x5f\163\150\x61\162\145\137\x73\145\x74\164\151\156\147")->where("\x6d\x63\x68\x5f\x69\144", $id)->update(request()->post()); goto ZgvTm; mpCFq: z31Cv: goto l0x7I; t1HKj: goto cNyEq; goto D3la2; ofHxM: $share = db::name("\171\142\155\160\x5f\165\163\x65\x72\x5f\x73\x68\x61\x72\x65\x5f\163\145\x74\x74\x69\x6e\x67")->where("\155\x63\x68\137\151\x64", $id)->field("\151\144\54\x6c\145\x76\x65\154\54\146\x69\x72\x73\164\137\156\x61\155\145\x2c\163\x65\x63\157\x6e\x64\x5f\x6e\141\x6d\145\54\164\150\x69\x72\x64\137\x6e\x61\x6d\145\x2c\x66\x69\x72\163\x74\x2c\x73\145\143\157\x6e\x64\54\x74\150\151\162\144\x2c\x70\x72\151\x63\x65\137\164\x79\x70\145")->find(); goto D5uJ3; bwps0: cNyEq: goto pzJ2h; xGPyC: IPmYa: goto Rfj4Z; gOYWv: $id = $this->bus_id; goto L30vp; CvBzp: } public function share_other() { goto Y0g65; Q_9tQ: $this->assign("\163\150\x61\x72\x65\x5f\144\x65\x66\141\165\154\x74", $share_default); goto qvxHi; Y0g65: $id = $this->bus_id; goto l3ncg; Xzr2V: $share = db::name("\x79\142\155\x70\x5f\x75\163\145\x72\137\x73\150\x61\162\x65\x5f\x73\145\x74\164\x69\156\x67")->where("\155\x63\150\137\151\144", $id)->field("\157\x74\150\145\162")->find(); goto QDmBm; qvxHi: return view(); goto BTWS0; edhu2: $share = db::name("\x79\x62\x6d\x70\137\165\163\145\162\x5f\163\150\x61\162\145\137\163\145\164\x74\x69\156\x67")->where("\x6d\143\150\x5f\x69\x64", $id)->update(request()->post()); goto VFYBc; piJKP: jftHn: goto EUAAS; T0YDi: goto jftHn; goto RR23O; i0iFu: $share = json_decode($share["\x6f\164\150\145\x72"], true); goto piJKP; QDmBm: $share_default = $this->contr_share_set; goto rRQCm; W4Ng0: $share = $share_default; goto T0YDi; RR23O: wPvFn: goto i0iFu; l3ncg: if (!(request()->isAjax() && request()->isPost())) { goto AnNt0; } goto edhu2; EUAAS: $this->assign("\x73\x68\x61\x72\145", $share); goto Q_9tQ; VFYBc: return "\60"; goto vNmfB; rRQCm: if ($share["\x6f\164\150\x65\x72"]) { goto wPvFn; } goto W4Ng0; vNmfB: AnNt0: goto Xzr2V; BTWS0: } public function set_share_title() { goto QfS2Z; Gjnh3: goto s0M9H; goto m8UNo; AAkFk: s0M9H: goto J0Ipd; XUw90: return AjaxReturn($res); goto bplvO; GCfmt: $res = Db::name("\171\142\x6d\160\137\x75\x73\x65\x72\137\163\150\x61\x72\145\137\163\145\164\164\x69\156\x67")->where("\155\143\150\x5f\x69\144", $this->bus_id)->update(["\x6f\164\150\145\162" => $new_data]); goto XUw90; m8UNo: qjh3n: goto R1IDY; QfS2Z: $type = input("\x70\x61\x72\x61\x6d\56\164\x79\x70\x65"); goto Updy6; R1IDY: $data = $this->contr_share_set; goto AAkFk; kfuIy: $data = json_decode($info, true); goto Gjnh3; Updy6: $val = input("\160\141\162\141\x6d\x2e\x76\141\x6c"); goto Pj5X5; HJK00: $new_data = json_encode($data); goto GCfmt; eI3CN: if (empty($info)) { goto qjh3n; } goto kfuIy; Pj5X5: $info = Db::name("\x79\x62\x6d\160\137\165\x73\145\162\x5f\163\150\x61\x72\x65\x5f\163\145\164\x74\x69\x6e\x67")->where("\155\x63\x68\137\x69\144", $this->bus_id)->value("\x6f\x74\150\145\x72"); goto eI3CN; J0Ipd: $data[$type] = $val; goto HJK00; bplvO: } public function share_cash() { goto ntrJp; fifS7: if (!($i < count($cash))) { goto iiFKq; } goto bweaC; M2st5: lUltz: goto PuzNo; sOmFb: if (!($nn == "\62")) { goto BZqKm; } goto CKnTE; M6OU_: $cash = db::name("\171\x62\x6d\160\x5f\165\163\x65\x72\x5f\x73\x68\141\162\145\x5f\143\x61\x73\150")->alias("\x63")->join("\171\142\x6d\160\137\x75\x73\x65\162\x20\165", "\165\56\165\151\144\x3d\143\56\x75\x73\x65\162\137\151\144")->field("\x63\56\151\144\x2c\x63\56\x74\x79\x70\145\54\x75\56\x6e\151\143\153\137\156\141\x6d\x65\54\165\56\160\162\151\143\145\40\x74\x6f\164\x61\x6c\54\x63\x2e\160\x72\151\143\x65\x20\x70\x72\151\143\x65\54\143\x2e\143\162\x65\141\164\145\x5f\x74\x69\x6d\x65\54\x63\56\163\164\141\x74\165\163\54\x63\x2e\142\x61\156\153\x5f\156\141\x6d\x65\54\143\56\x6d\x6f\x62\x69\154\x65")->where($condition)->paginate(10, false, $config = ["\x71\x75\x65\x72\x79" => ["\163" => $url]]); goto LyUbD; V26xd: $url = "\57" . $url[0]; goto mC84l; zv_FE: $i++; goto hAz_G; PWgtC: $nn = ''; goto IWtA1; SYiod: return view(); goto nMsEA; ntrJp: $url = request()->query(); goto XeYYS; hAz_G: goto ZtChX; goto gxhQb; hN20n: empty($status) ? $condition["\163\x74\141\x74\x75\x73"] = array("\x69\x6e", "\60\x2c\61\54\x32\x2c\63") : ($condition["\163\164\141\164\x75\163"] = $status); goto sOmFb; pUsLb: $condition["\143\x2e\151\x73\x5f\x64\x65\x6c"] = 1; goto Dmd5k; pkKW2: $condition["\163\x74\141\164\165\163"] = "\55\61"; goto M2st5; Sg7Qc: utIGa: goto hN20n; aR_9J: $res = array(); goto W6eYJ; CKnTE: $condition["\x73\x74\x61\x74\x75\163"] = "\60"; goto NTJCQ; gxhQb: iiFKq: goto YwKe4; NTJCQ: BZqKm: goto pUsLb; y8YRn: if ($status == "\55\x31") { goto IIsLM; } goto PWgtC; PuzNo: empty($status) ? $condition["\x73\164\141\x74\165\x73"] = '' : ''; goto lIajy; peK27: IIsLM: goto PLuH3; W6eYJ: $i = 0; goto V4U3h; mC84l: $status = request()->get("\163\x74\x61\164\165\x73", ''); goto y8YRn; XeYYS: $url = explode("\75\x2f", $url); goto k5rW7; lCfTY: $res[$i]["\x63\x72\145\x61\164\145\137\x74\x69\x6d\x65"] = date("\x59\x2d\x6d\55\144\x20\110\72\x69\72\163", $cash[$i]["\143\x72\145\x61\164\145\x5f\164\151\155\145"]); goto K3vXw; Dmd5k: $condition["\143\56\155\143\x68\137\151\144"] = $this->bus_id; goto M6OU_; IWtA1: goto utIGa; goto peK27; nGZx7: $res[$i]["\164\x79\x70\x65"] = $type[$cash[$i]["\x74\x79\160\x65"]]; goto lCfTY; YwKe4: if (!($nn == "\62")) { goto lUltz; } goto pkKW2; K3vXw: jILcS: goto zv_FE; bweaC: $res[$i] = $cash[$i]; goto nGZx7; DPU_Z: $this->assign("\160\141\147\145", $cash->render()); goto Dp6MN; LyUbD: $type = $this->contr_pay_type; goto aR_9J; lIajy: $this->assign("\143\x61\163\150", $res); goto DPU_Z; Dp6MN: $this->assign("\163\164\141\x74\165\163", $condition["\x73\x74\141\x74\x75\163"]); goto SYiod; V4U3h: ZtChX: goto fifS7; k5rW7: $url = explode("\x26", $url[1]); goto V26xd; PLuH3: $nn = "\62"; goto Sg7Qc; nMsEA: } public function share_cash_edit() { goto cpqT4; U1FMi: try { goto N_4v3; d0FMV: $info = Db::name("\x79\142\155\160\x5f\165\163\x65\x72\137\x73\150\x61\162\x65\137\x63\x61\163\150")->where("\151\144", $id)->update(["\x73\x74\x61\164\165\163" => $status]); goto Ayn10; ird7y: Db::commit(); goto Kgfya; Ayn10: if (!($status == 3)) { goto faXH4; } goto sEcjz; eM29D: throw new Exception("\60"); goto tmku5; tfDSD: faXH4: goto CY3do; OBydt: goto fW0Za; goto WrZI8; CmQ_1: $rs = Db::name("\x79\142\x6d\x70\137\165\163\145\x72")->where("\165\x69\x64", $u["\165\x73\145\162\137\151\x64"])->setInc("\160\162\x69\143\145", $u["\x70\x72\x69\143\x65"]); goto NzGIq; tmku5: cFLaA: goto tfDSD; X18XY: $info = Db::name("\171\142\155\x70\137\x75\163\x65\162\x5f\x73\x68\x61\162\x65\x5f\x63\x61\163\x68")->where("\x69\x64", $id)->update(["\151\163\x5f\144\145\x6c" => 2]); goto OBydt; N_4v3: if ($status == 0 || $status == 1 || $status == 2 || $status == 3) { goto iVg3T; } goto X18XY; sEcjz: $u = Db::name("\x79\x62\x6d\x70\137\x75\163\145\162\137\x73\x68\141\x72\145\137\x63\141\x73\x68")->where("\151\144", $id)->find(); goto CmQ_1; NzGIq: if (!empty($rs)) { goto cFLaA; } goto eM29D; WrZI8: iVg3T: goto d0FMV; CY3do: fW0Za: goto ird7y; Kgfya: } catch (\Exception $e) { Db::rollback(); return 0; } goto tpD2i; DIOo1: Db::startTrans(); goto U1FMi; tpD2i: return $info; goto BMvHz; QFIcq: $info = 0; goto DIOo1; cpqT4: $id = request()->post("\x69\144"); goto u3N4F; u3N4F: $status = request()->post("\163\164\x61\x74\x75\163"); goto QFIcq; BMvHz: } public function share_order() { goto Rskj0; JuaRy: $stime = strtotime($stime); goto ORsmb; dWSvC: aTmWe: goto xesuo; hRoye: $stime = input("\x70\141\x72\x61\155\56\163\164\x69\155\x65", ''); goto XxX1s; p0vZa: $condition["\x6f\56\x6f\162\144\145\x72\137\x6e\x6f"] = ["\x6c\x69\153\x65", "\x25" . $order_no . "\45"]; goto eHMPV; qOPKO: $mch_id = $this->bus_id; goto IP7jQ; XxX1s: $etime = input("\x70\141\162\141\155\x2e\x65\164\x69\x6d\x65", ''); goto zr4vj; GbQ1W: $condition["\163\56\x63\162\145\x61\164\x65\137\164\x69\x6d\x65"] = ["\x62\145\x74\167\x65\145\x6e", [$eetime - 86400, $eetime]]; goto dWSvC; xesuo: if (!(!empty($stime) && !empty($etime))) { goto T6bQQ; } goto JuaRy; zr4vj: $order_no = input("\x70\x61\162\141\x6d\x2e\157\x72\144\145\162\137\x6e\157", ''); goto qOPKO; dJjTn: $this->assign("\160\141\147\145", $page); goto ab4eN; QRXuO: if (empty($stime)) { goto xIATD; } goto xW4eP; eHMPV: o4ZUV: goto o3ZJX; s9CVY: $order_status = input("\160\x61\x72\x61\x6d\x2e\163\x74\141\164\x75\x73", ''); goto hRoye; ORsmb: $etime = strtotime($etime); goto OcZtT; MxsjO: if (empty($etime)) { goto aTmWe; } goto WX1Y8; ab4eN: $this->assign("\x6c\x69\163\x74", $list); goto aV8bV; F7Jg3: $stime = date("\x59\55\x6d\55\x64", $stime); goto a4Tuv; fL9fe: if (empty($order_no)) { goto o4ZUV; } goto p0vZa; HK5Iy: return view(); goto Of9hN; WwMiL: EVQIV: goto QRXuO; vIkbY: T6bQQ: goto LNsWC; LNsWC: $list = $order->get_order_list($condition, $order_no); goto GCtUn; o3ZJX: if (empty($order_status)) { goto EVQIV; } goto oZb0p; xW4eP: $sstime = strtotime($stime); goto mbefM; OcZtT: $condition["\163\x2e\x63\162\x65\x61\164\x65\x5f\164\x69\155\145"] = ["\142\x65\164\x77\x65\145\156", [$stime, $etime]]; goto F7Jg3; PtzX7: xIATD: goto MxsjO; aV8bV: $this->assign("\x73\x74\x69\x6d\x65", $stime); goto xt3Ey; oZb0p: $condition["\x6f\x2e\157\x72\x64\x65\x72\137\163\x74\141\164\165\x73"] = $order_status; goto WwMiL; WX1Y8: $eetime = strtotime($etime); goto GbQ1W; TEnJV: $this->assign("\157\x72\144\145\162\x5f\x6e\x6f", $order_no); goto HK5Iy; g3RDK: $condition["\x73\x2e\155\x63\x68\x5f\151\x64"] = $mch_id; goto fL9fe; mbefM: $condition["\x73\x2e\x63\x72\x65\x61\164\145\x5f\164\151\x6d\x65"] = ["\142\x65\x74\167\x65\145\x6e", [$sstime, $sstime + 86400]]; goto PtzX7; xt3Ey: $this->assign("\x65\164\151\155\145", $etime); goto TEnJV; GCtUn: $page = $list->render(); goto dJjTn; a4Tuv: $etime = date("\x59\x2d\x6d\55\x64", $etime); goto vIkbY; Rskj0: $order = new BusActivity(); goto s9CVY; IP7jQ: $condition = array(); goto g3RDK; Of9hN: } public function order_share() { goto pKMo0; OquR6: $this->assign("\x65\156\x64\x5f\164\x69\x6d\145", $etime); goto A8NMb; riSbS: return view("\x73\164\x61\x66\x66\x5f\163\x68\x61\x72\x65"); goto RxtbO; o9lZ4: $where["\141\56\x63\162\x65\141\x74\145\x5f\164\x69\x6d\145"] = ["\154\164", strtotime($etime)]; goto ACvK5; v7yz2: yKif5: goto HS7uv; VNxq0: $this->assign("\x75\163\145\x72\137\156\x61\155\x65", $user_name); goto QiPxG; gQN21: $i = 0; goto tKjXC; ijj2L: $where["\x61\x2e\143\162\145\141\x74\x65\x5f\x74\x69\x6d\145"] = ["\147\164", strtotime($stime)]; goto SgwEn; JyuZk: goto Y9BLb; goto kMgYx; nWZTe: $this->assign("\163\150\157\x77", "\x73\x74\141\146\146"); goto qQnBo; u3l7q: $where["\141\x2e\x6d\143\150\x5f\x69\x64"] = $this->bus_id; goto jWHSc; SgwEn: BqOim: goto hVK4d; QiPxG: $this->assign("\x73\x74\141\x72\137\164\151\x6d\145", $stime); goto OquR6; A8NMb: $this->assign("\160\141\x67\x65", $li->render()); goto riSbS; BuVlq: c3rF5: goto wXoOK; g8iMK: $a[$i]["\x73\x74\141\x74\x75\x73"] = $this->contr_order_status[$li[$i]["\157\x72\144\145\162\x5f\x73\164\x61\164\x75\x73"]]; goto BuVlq; qQnBo: $this->assign("\154\x69\163\164", $a); goto VNxq0; jWHSc: $li = $this->get_list($where); goto lUv87; ACvK5: OiJZ1: goto u3l7q; wXoOK: $i++; goto JyuZk; TKSI8: if (empty($user_name)) { goto yKif5; } goto Q20za; SdRbi: if (!($i < count($li))) { goto kdWif; } goto EoARF; kMgYx: kdWif: goto nWZTe; pKMo0: $user_name = request()->param("\165\163\x65\162\x5f\156\x61\x6d\x65", ''); goto kEglW; tKjXC: Y9BLb: goto SdRbi; EoARF: $a[$i] = $li[$i]; goto g8iMK; Q20za: $where["\x73\x2e\x75\163\x65\162\137\156\x61\155\x65"] = ["\x6c\151\153\x65", "\45" . $user_name . "\x25"]; goto v7yz2; kEglW: $stime = request()->param("\163\164\x61\x72\x5f\164\151\155\x65", ''); goto N2ZMs; lUv87: $a = array(); goto gQN21; N2ZMs: $etime = request()->param("\x65\156\144\137\164\151\155\x65", ''); goto TKSI8; hVK4d: if (empty($etime)) { goto OiJZ1; } goto o9lZ4; HS7uv: if (empty($stime)) { goto BqOim; } goto ijj2L; RxtbO: } public function send_share() { goto T27LW; zy9r4: $this->assign("\165\x73\x65\x72\137\x6e\x61\155\x65", $user_name); goto He8Jh; U1t9r: d75DB: goto WlmhU; pudS_: if (!($i < count($li))) { goto Ldvlw; } goto h4KRm; wAIEI: $etime = request()->param("\x65\x6e\x64\x5f\x74\151\x6d\x65", ''); goto crSQk; ij1i0: if (empty($etime)) { goto hxdjY; } goto WkGKq; SRKtz: $stime = request()->param("\163\164\x61\x72\x5f\164\x69\155\145", ''); goto wAIEI; kCVMd: DALe1: goto Y7vk0; WlmhU: if (empty($stime)) { goto m_h0R; } goto LmDHA; kiGKw: m_h0R: goto ij1i0; ngYGO: $this->assign("\154\151\163\164", $a); goto zy9r4; RnNZj: GZGbI: goto pudS_; BR2qo: hxdjY: goto NTNHS; h4KRm: $a[$i] = $li[$i]; goto qrwCa; R1ZwO: $where["\x73\56\165\x73\x65\162\137\x6e\141\155\x65"] = ["\154\x69\153\145", "\45" . $user_name . "\x25"]; goto U1t9r; Cofk3: $where["\x64\56\x6f\162\144\x65\162\x5f\x73\164\x61\x74\165\x73"] = 3; goto Vj4ea; T27LW: $user_name = request()->param("\165\x73\145\x72\137\x6e\x61\x6d\x65", ''); goto SRKtz; j1AXe: $a = array(); goto EowAB; WkGKq: $where["\141\x2e\143\162\x65\x61\x74\x65\x5f\164\x69\x6d\145"] = ["\154\164", strtotime($etime)]; goto BR2qo; He8Jh: $this->assign("\x73\x74\x61\x72\137\x74\x69\x6d\145", $stime); goto WeByl; NTNHS: $where["\141\x2e\155\143\150\x5f\x69\x64"] = $this->bus_id; goto Cofk3; Vj4ea: $li = $this->get_list($where); goto j1AXe; EowAB: $i = 0; goto RnNZj; Y7vk0: $i++; goto VfxRP; igdCo: $this->assign("\x70\x61\147\145", $li->render()); goto cTkEd; crSQk: if (empty($user_name)) { goto d75DB; } goto R1ZwO; qrwCa: $a[$i]["\x73\164\141\x74\165\x73"] = $this->contr_order_status[$li[$i]["\x6f\162\144\145\162\137\163\x74\141\x74\165\x73"]]; goto kCVMd; LmDHA: $where["\x61\x2e\x63\162\x65\141\x74\x65\137\164\151\x6d\x65"] = ["\x67\164", strtotime($stime)]; goto kiGKw; cTkEd: return view("\x73\x74\x61\146\x66\x5f\x73\x68\141\162\145"); goto GMTBo; ezv83: $this->assign("\163\150\x6f\x77", "\x73\x65\156\144"); goto ngYGO; VfxRP: goto GZGbI; goto ENkCC; ENkCC: Ldvlw: goto ezv83; WeByl: $this->assign("\x65\156\x64\137\164\151\x6d\x65", $etime); goto igdCo; GMTBo: } public function disend_share() { goto uprJM; EZ17q: $this->assign("\x6c\x69\163\x74", $a); goto ch1Lw; VPK0O: $li = $this->get_list($where); goto qfsgx; oG2BQ: if (empty($stime)) { goto smLyk; } goto b3owZ; EJywJ: $a[$i] = $li[$i]; goto acbhw; b3owZ: $where["\141\56\143\x72\x65\141\x74\x65\x5f\x74\x69\155\145"] = ["\147\164", strtotime($stime)]; goto yLun6; aSHbD: $stime = request()->param("\163\x74\141\162\x5f\x74\151\x6d\145", ''); goto m9LMd; EoxZ9: UJWvZ: goto q9O4W; TEabp: if (empty($user_name)) { goto eZ319; } goto IEa4w; zuaVp: IRlaO: goto Fut9u; qfsgx: $a = array(); goto hqzTY; q9O4W: $i++; goto KozTq; ch1Lw: $this->assign("\165\x73\145\x72\137\x6e\x61\155\x65", $user_name); goto p5H_2; ILb4w: if (empty($etime)) { goto i9nGq; } goto zWdyn; yLun6: smLyk: goto ILb4w; PEqsd: $this->assign("\x65\156\x64\137\x74\151\155\145", $etime); goto BHhli; acbhw: $a[$i]["\163\164\141\164\x75\x73"] = $this->contr_order_status[$li[$i]["\157\x72\x64\145\x72\x5f\x73\164\x61\164\x75\x73"]]; goto EoxZ9; KozTq: goto nwqxJ; goto zuaVp; UUVHI: $where["\x61\x2e\x6d\143\150\137\151\144"] = $this->bus_id; goto V0zv2; Fut9u: $this->assign("\163\x68\157\167", "\x64\x69\163\x65\156\144"); goto EZ17q; BHhli: $this->assign("\160\141\x67\145", $li->render()); goto rBKrt; rBKrt: return view("\163\164\x61\146\146\137\163\150\141\x72\145"); goto uKeuW; hqzTY: $i = 0; goto ZXxq9; RWjBy: if (!($i < count($li))) { goto IRlaO; } goto EJywJ; m9LMd: $etime = request()->param("\145\156\144\137\x74\x69\155\145", ''); goto TEabp; V0ql6: i9nGq: goto UUVHI; IEa4w: $where["\x73\56\165\x73\145\162\137\156\141\x6d\145"] = ["\x6c\151\153\x65", "\x25" . $user_name . "\45"]; goto cP0Fk; V0zv2: $where["\144\x2e\157\162\144\145\x72\137\x73\164\141\164\165\x73"] = ["\x69\x6e", "\x30\x2c\x31\x2c\62"]; goto VPK0O; uprJM: $user_name = request()->param("\x75\163\x65\x72\137\156\141\155\145", ''); goto aSHbD; ZXxq9: nwqxJ: goto RWjBy; cP0Fk: eZ319: goto oG2BQ; p5H_2: $this->assign("\163\x74\x61\162\x5f\164\x69\155\x65", $stime); goto PEqsd; zWdyn: $where["\141\x2e\143\x72\145\x61\164\x65\137\164\151\155\145"] = ["\x6c\x74", strtotime($etime)]; goto V0ql6; uKeuW: } public function show_order_dd() { goto MgDxe; WenCQ: $this->assign("\154\151\163\164", $li); goto LQ0VR; uscX1: $a = db::name("\x79\x62\x6d\x70\x5f\157\x72\x64\x65\162")->where("\x6f\x72\144\x65\x72\137\151\x64", $id)->field("\x6f\x72\x64\x65\162\137\155\x6f\x6e\x65\x79")->find(); goto WenCQ; Q4jf5: $send = request()->param("\x73\145\x6e\144"); goto Jrx5u; LQ0VR: $this->assign("\x73\145\x6e\x64", $send); goto AbbhO; Jrx5u: $li = db::name("\171\x62\155\160\x5f\x6f\x72\x64\x65\162\x5f\147\x6f\157\x64\163")->alias("\x61")->join("\171\142\x6d\x70\x5f\x69\x6d\x61\x67\145\x73\x20\x73", "\x61\x2e\147\x6f\x6f\x64\163\x5f\x69\155\141\x67\x65\163\75\163\56\x69\x6d\x67\x5f\x69\x64")->join("\171\142\155\160\x5f\165\x73\x65\162\x20\x75", "\141\x2e\142\165\171\145\x72\x5f\x69\144\x3d\x75\56\x75\151\x64")->field("\141\x2e\x67\157\x6f\x64\163\137\x6e\141\x6d\x65\x2c\x61\56\160\162\151\x63\145\x2c\141\56\x6e\x75\x6d\54\x61\56\147\157\x6f\x64\x73\137\155\157\156\x65\x79\x2c\x73\x2e\x69\155\x67\x5f\143\157\166\x65\x72\54\165\56\156\x69\x63\x6b\137\156\141\155\145")->where("\141\56\x6f\162\144\145\x72\x5f\x69\x64", $id)->select(); goto uscX1; hfWhD: return view(); goto CgkT5; MgDxe: $id = request()->param("\x6f\x72\x64\x65\162\137\x69\144"); goto Q4jf5; AbbhO: $this->assign("\141\x6c\154", $a["\x6f\x72\144\145\x72\137\x6d\157\156\x65\x79"]); goto hfWhD; CgkT5: } public function get_list($where) { goto mxGmL; VWZTK: if (!($i < count($li))) { goto FQd3s; } goto SnaL1; SnaL1: $a[$i] = $li[$i]; goto iNy66; XdW11: $url = explode("\46", $url[1]); goto HaCbh; xMP43: FQd3s: goto Poi78; mxGmL: $url = request()->query(); goto irQuF; HaCbh: $url = "\x2f" . $url[0]; goto Lxsx0; irQuF: $url = explode("\x3d\x2f", $url); goto XdW11; Lxsx0: $li = db::name("\x79\x62\155\160\137\x6f\162\144\x65\162\x5f\x73\x74\x61\146\x66")->alias("\x61")->join("\x79\142\x6d\x70\x5f\142\x75\163\137\143\141\162\144\x20\163", "\141\x2e\x73\x74\141\146\x66\x5f\x69\x64\75\x73\x2e\x69\x64", "\x6c\x65\x66\164")->join("\x79\142\x6d\160\x5f\x6f\162\144\145\162\40\144", "\x61\x2e\x6f\x72\144\x65\162\137\151\144\75\x64\56\157\x72\144\x65\162\x5f\x69\x64", "\154\145\x66\x74")->field("\141\x2e\155\x6f\x6e\x65\171\x2c\x73\x2e\x75\x73\145\x72\x5f\x6e\141\155\145\54\163\x2e\x70\157\163\151\x74\151\x6f\156\x2c\x73\x2e\x68\145\x61\x64\137\160\150\x6f\x74\x6f\x2c\163\x2e\x77\x78\164\145\154\54\x64\x2e\157\162\x64\145\x72\x5f\163\x74\x61\164\165\x73\x2c\x64\x2e\157\x72\144\145\162\x5f\x69\x64\x2c\141\x2e\143\x72\145\141\164\145\x5f\x74\151\x6d\145")->order("\141\x2e\143\x72\x65\x61\x74\x65\137\x74\x69\155\145", "\144\x65\x73\143")->where($where)->paginate(10, false, $config = ["\x71\x75\145\x72\171" => ["\163" => $url]]); goto gJqg0; t5GCO: $i = 0; goto NZHTr; zPoxI: PfGvv: goto DhTpe; NZHTr: jWuYL: goto VWZTK; Poi78: return $li; goto hcxKU; iNy66: $a[$i]["\x73\164\141\x74\x75\163"] = $this->contr_order_status[$li[$i]["\x6f\162\144\145\x72\x5f\163\164\x61\x74\x75\163"]]; goto zPoxI; DhTpe: $i++; goto oKD_k; gJqg0: $a = array(); goto t5GCO; oKD_k: goto jWuYL; goto xMP43; hcxKU: } public function miaosha() { goto SeuND; fq59c: $url = explode("\46", $url[1]); goto lFwsk; XcHKO: $where["\151\163\x5f\144\145\x6c"] = 2; goto iVsGA; i8fYy: iwZ4d: goto o4Ndp; g9Iqw: z25gW: goto HGt8p; Ua82W: if (empty($name)) { goto iwZ4d; } goto hVuEO; ZpvX2: $list[$i]["\163\x68\157\167\137\x6f\x72\x64\x65\162"] = 1; goto KjzOY; bRB8f: $list[$i] = $res[$i]; goto YSLLL; Icm5w: $i = 0; goto d36QR; EAn29: $list[$i]["\156\x6f\x77"] = "\xe5\xb7\262\xe6\210\252\346\xad\xa2"; goto ZpvX2; nvZNr: $list[$i]["\156\x6f\167"] = "\350\277\233\350\xa1\x8c\344\xb8\255"; goto j4B31; KjzOY: rbHfm: goto Uv5A3; NEd1x: if (!($res[$i]["\x73\x74\151\x6d\145"] > time())) { goto FP60R; } goto d2c5M; HCynX: FP60R: goto lH46b; Gbwbq: if (!($i < count($res))) { goto z25gW; } goto bRB8f; ZxnpD: $list[$i]["\145\164\151\x6d\x65"] = date("\131\x2d\x6d\x2d\x64\40\x48\72\x69\72\163", $res[$i]["\145\x74\x69\155\145"]); goto ThZQ5; hVuEO: $where["\156\x61\x6d\x65"] = ["\154\x69\153\145", "\x25" . $name . "\45"]; goto i8fYy; dbOBf: $url = explode("\75\57", $url); goto fq59c; ZmmBx: LqmVa: goto guLkM; o4Ndp: $res = Db::name("\171\142\155\160\137\x61\143\164\x69\x76\x69\x74\171")->where($where)->paginate(15, false, $config = ["\x71\x75\145\x72\x79" => ["\x73" => $url, "\156\x61\155\x65" => $name]]); goto xFuRl; SeuND: $url = request()->query(); goto dbOBf; Xzukn: $i++; goto ZBITA; x_zvU: $list[$i]["\x69\155\147"] = json_decode($res[$i]["\x69\x6d\x67"], true); goto NEd1x; TGuQS: $where["\x6d\143\x68\137\x69\144"] = $this->bus_id; goto B0Fk9; ABZKJ: $list[$i]["\151\x73\x5f\x62\165\x79"] = Db::name("\x79\x62\x6d\x70\137\141\x63\164\151\x76\x69\x74\171\137\157\x72\144\145\x72")->where($where)->count(); goto xim1C; YSLLL: $list[$i]["\x73\x65\154\x6c"] = Db::name("\171\x62\155\160\x5f\x61\x63\x74\x69\166\151\164\x79\137\x6f\162\x64\x65\x72")->where("\x61\143\x74\151\x76\x69\x74\171\x5f\x6f\x72\x64\x65\x72\x5f\x74\x79\x70\145", 3)->where("\x62\x61\x72\147\141\x69\x6e\x5f\151\144", $list[$i]["\151\144"])->count(); goto JroQ1; ThZQ5: $list[$i]["\x6d\x61\170\137\160\162\x65"] = $res[$i]["\155\141\x78\137\160\162\x65"] == 0 ? "\346\227\240\351\231\220" : $res[$i]["\x6d\141\x78\137\160\162\x65"]; goto x_zvU; l0Kbx: return view(); goto xVar5; j4B31: $list[$i]["\x73\x68\157\x77\137\157\x72\x64\145\162"] = 1; goto cscEk; xFuRl: $list = array(); goto Icm5w; ZBITA: goto areBR; goto g9Iqw; zNGAq: $this->assign("\160\141\147\x65", $res->render()); goto l0Kbx; d36QR: areBR: goto Gbwbq; iVsGA: $name = str_replace("\40", '', request()->param("\163\145\x61\162\x63\150\x5f\x74\145\170\x74")); goto Ua82W; lH46b: if (!($res[$i]["\x73\x74\151\x6d\145"] < time() && $res[$i]["\x65\164\x69\x6d\x65"] > time())) { goto Smivj; } goto nvZNr; xim1C: $list[$i]["\153\x75\x63\165\x6e"] = intval($res[$i]["\x61\154\x6c\x5f\163\145\x6c\x6c"] - $list[$i]["\x69\x73\137\142\x75\171"]); goto gLHPu; QrIba: if (!($res[$i]["\145\164\x69\x6d\x65"] < time())) { goto rbHfm; } goto EAn29; guLkM: $where = ["\x61\x63\x74\151\166\x69\164\x79\x5f\x6f\x72\144\x65\x72\x5f\164\171\x70\145" => 3, "\x6f\x72\144\145\x72\x5f\x73\164\x61\164\165\163" => ["\151\x6e", [1, 2, 3]], "\160\141\x79\137\163\164\x61\x74\x75\163" => 1, "\x69\x73\137\x64\x65\x6c\145\x74\145\x64" => 0, "\155\143\x68\137\151\144" => $where["\155\x63\150\137\151\x64"], "\x62\141\x72\x67\x61\x69\x6e\137\151\144" => $res[$i]["\151\x64"]]; goto ABZKJ; HDJF3: $list[$i]["\156\157\167"] = "\345\xb7\262\345\201\234\347\x94\xa8"; goto ZmmBx; JroQ1: $list[$i]["\x73\164\x69\x6d\145"] = date("\x59\55\155\55\144\x20\x48\72\151\x3a\x73", $res[$i]["\163\164\x69\x6d\145"]); goto ZxnpD; lFwsk: $url = "\57" . $url[0]; goto TGuQS; HGt8p: $this->assign("\x6c\151\163\164", $list); goto zNGAq; cscEk: Smivj: goto QrIba; d2c5M: $list[$i]["\156\157\167"] = "\xe6\234\xaa\345\274\x80\345\xa7\213"; goto HCynX; gLHPu: wdN78: goto Xzukn; B0Fk9: $where["\164\171\160\145"] = 1; goto XcHKO; Uv5A3: if (!($res[$i]["\163\164\141\x74\x75\163"] == 2)) { goto LqmVa; } goto HDJF3; xVar5: } public function add_miaosha() { goto GUq3G; Z5k4q: return AjaxReturn($res, json_decode($data)); goto nyMj0; rfrM9: return view($show); goto ppM67; HA7So: $show = "\141\144\144\x5f\155\x69\141\x6f\163\x68\141"; goto kY6px; PXX8r: $data = request()->post(); goto QGFaD; cZKq_: $data["\145\x74\x69\155\x65"] = strtotime($data["\145\x74\x69\155\x65"]); goto bq0E3; kY6px: Z3WIA: goto TipVC; bq0E3: $data["\155\143\x68\137\x69\144"] = $this->bus_id; goto l9hN7; nyMj0: T8b2H: goto rfrM9; QGFaD: $data["\x73\x74\151\x6d\x65"] = strtotime($data["\163\164\151\x6d\145"]); goto cZKq_; u9o9e: $res = Db::name($table)->insert($data); goto Z5k4q; TipVC: if (!(request()->isPost() && request()->isAjax())) { goto T8b2H; } goto pVb2w; GUq3G: $type = request()->param("\164\171\160\145", 1); goto cnSjZ; l9hN7: $table = "\x79\142\x6d\160\x5f\x61\x63\164\x69\166\x69\164\171"; goto DO_Ef; cnSjZ: if (!($type == 1)) { goto Z3WIA; } goto HA7So; DO_Ef: v5sjB: goto u9o9e; pVb2w: if (!($type == 1)) { goto v5sjB; } goto PXX8r; ppM67: } public function edit_miaosha() { goto I9CBH; IIbUY: $data = request()->post(); goto I2_fH; g3Zwp: if (!(request()->isPost() && request()->isAjax())) { goto asP2p; } goto A4qBC; I2_fH: unset($data["\151\144"]); goto rUw5Y; zUJp9: $res = Db::name($table)->where($where)->update($data); goto Jb0fZ; tgVvv: $where["\151\x64"] = $id; goto hUfjc; I9CBH: $type = request()->param("\164\171\x70\x65", 1); goto nxp6q; GuL8k: asP2p: goto wk2Gn; Nurax: return view($show); goto z4E09; rUw5Y: $data["\x73\x74\x69\x6d\x65"] = strtotime($data["\x73\164\x69\155\x65"]); goto RJ3Dx; LDGe3: $info = Db::name("\x79\142\155\x70\x5f\x61\x63\164\151\x76\151\164\171")->where("\x69\144", $id)->find(); goto YtJwv; RJ3Dx: $data["\x65\164\x69\x6d\145"] = strtotime($data["\145\164\151\x6d\145"]); goto lrGFe; U_rLw: $show = "\x65\144\x69\x74\137\155\151\141\157\x73\150\x61"; goto aDbPf; YtJwv: $info["\163\x74\x69\155\145"] = date("\131\55\x6d\x2d\x64\40\x48\x3a\x69\72\x73", $info["\x73\164\x69\x6d\145"]); goto nwdyS; nxp6q: $id = request()->param("\x69\144"); goto g3Zwp; hUfjc: xoxvb: goto zUJp9; lrGFe: $table = "\x79\142\155\x70\137\141\143\x74\151\x76\x69\164\x79"; goto tgVvv; nwdyS: $info["\x65\164\x69\155\x65"] = date("\x59\55\x6d\x2d\144\40\x48\x3a\151\x3a\163", $info["\x65\164\151\x6d\145"]); goto groF2; wk2Gn: if (!($type == 1)) { goto GdMD4; } goto LDGe3; aDbPf: GdMD4: goto Nurax; A4qBC: if (!($type == 1)) { goto xoxvb; } goto IIbUY; groF2: $this->assign("\151\156\146\x6f", $info); goto U_rLw; Jb0fZ: return AjaxReturn($res, json_decode($data)); goto GuL8k; z4E09: } public function order_send() { goto WC0Nc; DVql8: return AjaxReturn($res); goto Vlum2; q0snY: $res = Db::name("\171\142\155\x70\137\x61\143\x74\x69\x76\151\164\171\137\x6f\x72\x64\x65\x72")->where("\x6f\x72\x64\145\x72\137\151\144", $id)->update(["\x6f\162\144\145\x72\x5f\163\x74\x61\x74\x75\x73" => 2]); goto DVql8; WC0Nc: $id = input("\160\141\162\141\155\56\151\x64"); goto q0snY; Vlum2: } public function order_send_two() { goto yAzA2; GVosD: return AjaxReturn($res); goto NTdzY; yAzA2: $id = input("\160\141\162\x61\155\x2e\151\144"); goto EOclN; EOclN: $res = Db::name("\x79\142\155\160\x5f\x61\x63\164\151\166\151\164\x79\137\x6f\x72\x64\x65\162")->where("\x6f\x72\144\145\x72\x5f\151\144", $id)->update(["\x6f\162\x64\x65\162\x5f\163\164\x61\x74\165\x73" => 3]); goto GVosD; NTdzY: } public function ac_order() { goto cPLDq; Fi8hs: $this->assign("\x6c\x69\163\164", $list); goto rL489; XnvBT: $this->assign("\160\141\147\x65", $list->render()); goto h0ZTT; jaRJ3: if ($refund_setting["\x73\167\x69\164\143\150"] != 1 || empty($refund_setting["\x6b\145\x79"]) || empty($refund_setting["\x63\145\x72\164"])) { goto EYCid; } goto kvQSS; WtZyY: goto XuFW9; goto jehE8; N5fmV: $where["\x73\56\x6f\x72\144\145\x72\x5f\x73\x74\141\164\x75\x73"] = array("\x69\x6e", "\60\x2c\x31\54\x32\54\x33\x2c\64\54\65\x2c\x2d\61"); goto PrFBu; mQ3nz: if (!($type == 1)) { goto GplSf; } goto AHT3q; rU3AE: $where["\163\x2e\x6d\143\150\137\151\x64"] = $this->bus_id; goto ue2ya; jehE8: EYCid: goto Y7rEE; b2Oet: $this->assign("\x73\145\141\x72\x63\150\137\x74\x65\x78\164", $search_text); goto XnvBT; NP7FU: eiFm1: goto TRsRw; w3itg: XuFW9: goto Fi8hs; rL489: $this->assign("\163\x74\x61\x74\165\x73", $status); goto b2Oet; nBHDt: $url = explode("\x26", $url[1]); goto Jvq_3; m5hqs: $where["\163\x2e\x69\x73\x5f\144\x65\x6c\145\164\x65\144"] = 0; goto rU3AE; kvQSS: $this->assign("\162\145\146\x75\156\x64\x5f\164\x79\160\145", 1); goto WtZyY; cPLDq: $url = request()->query(); goto kDVHl; h0ZTT: return view($show); goto A5BFf; Y7rEE: $this->assign("\162\145\x66\165\156\x64\137\164\171\160\x65", 0); goto w3itg; nR0sd: $where["\163\56\142\x61\162\x67\x61\151\x6e\x5f\x69\x64"] = $id; goto NP7FU; ue2ya: $where["\x73\56\x6f\162\144\145\x72\x5f\163\x74\141\164\x75\x73"] = $status; goto lM5Rq; SWcQ3: $id = request()->param("\x61\x63\151\144", ''); goto cN1Ka; PrFBu: JDdVC: goto AYntU; AHT3q: $show = "\x6d\151\x61\157\163\x68\141\x5f\x6f\162\x64\x65\x72"; goto SWcQ3; LMoOj: LDlvH: goto ZxObC; TpnmR: $refund_setting = $setting["\160\141\x79\x6d\x65\x6e\x74"]["\167\x65\x63\150\x61\164\137\x72\x65\x66\x75\x6e\144"]; goto jaRJ3; Urkxg: $status = request()->param("\163\x74\x61\164\165\163", -2); goto ivELr; oPXXv: $type = request()->param("\x74\x79\x70\145", 1); goto Urkxg; cN1Ka: if (empty($id)) { goto eiFm1; } goto nR0sd; lM5Rq: $where["\163\56\x6d\141\x69\x6c\151\156\x67\137\164\171\x70\x65"] = 1; goto kmFs3; kmFs3: if (!($status == -2)) { goto JDdVC; } goto N5fmV; Jvq_3: $url = "\x2f" . $url[0]; goto oPXXv; ah5v5: GplSf: goto G15zI; TRsRw: $where["\x73\x2e\x61\x63\x74\151\166\x69\164\171\x5f\157\x72\x64\145\162\x5f\164\171\160\x65"] = 3; goto m5hqs; ZxObC: $list = Db::name("\x79\x62\x6d\x70\137\x61\143\x74\x69\166\151\x74\171\x5f\157\x72\x64\145\162")->alias("\x73")->join("\x79\142\x6d\160\137\141\x63\164\x69\x76\x69\164\x79\40\x61", "\163\56\155\143\x68\x5f\x69\x64\x3d\x61\56\x6d\143\150\x5f\x69\144\x20\x41\116\x44\x20\163\56\142\141\x72\x67\x61\151\156\137\x69\x64\x3d\x61\x2e\151\x64", "\154\x65\x66\164")->where($where)->field("\x73\56\157\x72\x64\x65\x72\137\x6e\157\x2c\141\56\x6e\141\x6d\145\54\141\x2e\x70\151\x63\x2c\x73\x2e\162\145\x63\145\x69\166\x65\162\137\x6e\x61\x6d\x65\54\163\56\x72\145\143\x65\151\166\145\162\x5f\x6d\x6f\x62\x69\x6c\x65\54\x73\x2e\162\x65\x63\x65\151\166\x65\x72\x5f\141\x72\x65\x61\54\x73\56\x72\145\143\x65\151\x76\145\162\137\141\144\144\x72\145\x73\x73\x2c\x73\x2e\157\162\x64\145\x72\x5f\x6d\x6f\156\x65\x79\x2c\x73\x2e\157\x72\144\145\x72\x5f\x73\x74\x61\x74\165\163\54\x73\56\x6f\162\144\145\x72\137\x69\144\54\163\x2e\155\x65\156\164\151\x6f\156\137\x74\x69\155\x65\54\163\x2e\142\x75\171\145\x72\137\x69\x64\54\163\x2e\x6d\x63\x68\137\151\x64\x2c\163\56\160\x61\x79\137\163\164\141\x74\x75\x73")->order("\x73\x2e\143\x72\145\x61\x74\x65\137\x74\151\155\145\40\144\145\163\x63")->paginate(15, false, $config = ["\x71\x75\145\x72\x79" => ["\163" => $url, "\163\x74\141\x74\165\163" => $status, "\163\145\x61\162\143\150\137\164\145\x78\164" => $search_text]])->each(function ($item, $key) { goto hDaXp; hDaXp: $item["\x73\164\x61\x66\x66\x5f\156\x61\155\145"] = ''; goto yuysV; VitVD: return $item; goto VwdcF; AC6RR: snSoC: goto VitVD; puM6l: $item["\x73\x74\141\x66\x66\x5f\x6e\x61\x6d\145"] = getStaffInfo($item["\142\x75\171\x65\162\137\151\144"], $item["\155\143\150\137\x69\144"]); goto AC6RR; yuysV: if (!($item["\x70\x61\x79\137\x73\164\x61\x74\165\163"] == 1)) { goto snSoC; } goto puM6l; VwdcF: }); goto ah5v5; AYntU: if (empty($search_text)) { goto LDlvH; } goto gAdti; XcJ1y: $setting = uni_setting_load("\x70\141\x79\x6d\145\x6e\x74", $_W["\165\156\151\141\x63\151\144"]); goto TpnmR; ivELr: $search_text = request()->param("\163\145\141\162\x63\150\x5f\x74\145\x78\x74", ''); goto mQ3nz; G15zI: global $_W; goto XcJ1y; gAdti: $where["\141\x2e\x6e\x61\155\x65"] = array("\x6c\x69\153\145", "\x25" . $search_text . "\45"); goto LMoOj; kDVHl: $url = explode("\75\x2f", $url); goto nBHDt; A5BFf: } public function ac_order_two() { goto IUjxd; ky8yi: $search_text = request()->param("\163\x65\x61\x72\x63\150\x5f\164\145\170\x74", ''); goto OIyPh; siM2z: $where["\163\56\x6f\162\144\x65\x72\137\x73\164\x61\x74\165\x73"] = $status; goto TMSJY; CHY9U: cARFR: goto gPdur; YEkas: if (empty($search_text)) { goto CH6ij; } goto u2zM5; VSf8U: jTke6: goto hcWqz; I5JjH: $this->assign("\x73\164\141\164\x75\x73", $status); goto wzhXL; q7xJh: $where["\163\x2e\x61\143\164\151\166\151\x74\x79\137\157\x72\x64\x65\x72\137\x74\x79\x70\145"] = 3; goto PmEka; fULHu: CH6ij: goto VX8_U; wzhXL: $this->assign("\163\145\x61\162\x63\150\137\x74\x65\170\x74", $search_text); goto SwJDE; VG0Zi: $this->assign("\x72\145\146\165\156\144\137\164\x79\160\145", 1); goto dRaeT; IUjxd: $url = request()->query(); goto seIIl; rKnEX: YniXs: goto rGT3o; gPdur: $this->assign("\x6c\x69\163\164", $list); goto I5JjH; CNH24: Np5O4: goto q7xJh; q_R6f: $type = request()->param("\164\171\x70\x65", 1); goto LTReL; dRaeT: goto cARFR; goto rKnEX; s0HJ8: $url = explode("\46", $url[1]); goto dEx1k; TMSJY: $where["\163\x2e\155\141\151\x6c\x69\x6e\x67\137\x74\171\x70\x65"] = 2; goto NDFzZ; u2zM5: $where["\141\56\156\141\x6d\145"] = array("\154\151\x6b\145", "\45" . $search_text . "\45"); goto fULHu; wiWYH: $id = request()->param("\141\x63\x69\x64", ''); goto URF0x; sfa_y: $where["\163\x2e\157\x72\x64\145\x72\137\163\164\141\x74\x75\163"] = array("\151\156", "\x30\x2c\61\54\x32\x2c\x33\54\x34\x2c\x35\x2c\x2d\x31"); goto d3DwH; rGT3o: $this->assign("\x72\x65\x66\165\x6e\x64\137\x74\171\x70\145", 0); goto CHY9U; NDFzZ: if (!($status == -2)) { goto MqMvN; } goto sfa_y; LTReL: $status = request()->param("\163\x74\141\x74\x75\163", -2); goto ky8yi; otSjp: $where["\163\x2e\142\141\x72\x67\x61\x69\x6e\137\x69\144"] = $id; goto CNH24; gFDa2: $show = "\x6d\151\x61\x6f\x73\x68\141\137\x6f\162\144\x65\162\137\x74\167\157"; goto wiWYH; E0bqT: return view($show); goto g0hsk; PmEka: $where["\163\56\151\163\x5f\144\x65\x6c\x65\x74\145\144"] = 0; goto WLJFe; seIIl: $url = explode("\x3d\57", $url); goto s0HJ8; hcWqz: global $_W; goto VJeG4; dEx1k: $url = "\x2f" . $url[0]; goto q_R6f; WLJFe: $where["\x73\x2e\x6d\x63\x68\137\151\144"] = $this->bus_id; goto siM2z; VX8_U: $list = Db::name("\x79\142\x6d\x70\x5f\x61\x63\164\x69\x76\x69\164\171\137\x6f\162\144\145\162")->alias("\163")->join("\171\142\x6d\x70\137\x61\x63\x74\x69\x76\151\x74\x79\x20\x61", "\163\x2e\155\x63\150\137\x69\144\75\141\56\155\x63\150\x5f\151\x64\40\101\116\x44\40\x73\56\142\x61\x72\x67\x61\151\x6e\x5f\151\x64\x3d\x61\x2e\151\x64", "\154\x65\146\x74")->where($where)->field("\x73\x2e\157\x72\x64\145\x72\137\x6e\x6f\54\141\56\x6e\x61\x6d\145\x2c\141\56\x70\151\143\54\x73\56\x72\x65\143\145\x69\x76\x65\162\x5f\156\141\155\145\x2c\163\x2e\162\145\x63\145\x69\x76\145\x72\x5f\x6d\x6f\x62\151\x6c\145\54\x73\x2e\162\x65\143\145\151\166\x65\162\137\x61\x72\x65\x61\54\x73\56\x72\x65\143\x65\x69\166\x65\162\x5f\141\x64\144\x72\x65\163\x73\x2c\163\56\x6f\x72\144\145\162\137\x6d\157\156\x65\171\54\x73\x2e\x6f\x72\144\x65\x72\137\163\x74\141\164\x75\x73\54\x73\56\x6f\162\144\145\x72\137\x69\x64\x2c\x73\x2e\x6d\145\156\164\151\157\156\x5f\164\x69\x6d\x65\54\x73\56\142\165\x79\145\162\x5f\x69\144\54\163\x2e\155\x63\150\137\x69\x64\x2c\163\x2e\x70\141\x79\x5f\163\x74\141\164\x75\163")->order("\x73\56\x63\x72\145\x61\x74\x65\137\164\x69\155\145\40\144\145\163\143")->paginate(15, false, $config = ["\161\165\x65\x72\171" => ["\163" => $url, "\163\164\141\164\x75\163" => $status, "\x73\x65\141\x72\143\150\x5f\x74\145\170\164" => $search_text]])->each(function ($item, $key) { goto EP2Fp; r3eRf: LAbwi: goto q6dhQ; Tqa8b: if (!($item["\160\141\171\x5f\163\164\x61\164\x75\x73"] == 1)) { goto LAbwi; } goto aFnzI; EP2Fp: $item["\x73\164\141\x66\146\x5f\x6e\x61\x6d\145"] = ''; goto Tqa8b; aFnzI: $item["\x73\164\x61\x66\146\x5f\156\141\x6d\x65"] = getStaffInfo($item["\x62\165\x79\x65\x72\x5f\151\144"], $item["\155\143\150\137\151\144"]); goto r3eRf; q6dhQ: return $item; goto VayTp; VayTp: }); goto VSf8U; HgbCj: if ($refund_setting["\x73\167\151\164\x63\150"] != 1 || empty($refund_setting["\x6b\145\x79"]) || empty($refund_setting["\x63\x65\x72\164"])) { goto YniXs; } goto VG0Zi; d3DwH: MqMvN: goto YEkas; OIyPh: if (!($type == 1)) { goto jTke6; } goto gFDa2; ZJE3l: $refund_setting = $setting["\x70\x61\171\x6d\145\156\164"]["\x77\145\143\150\141\164\x5f\x72\x65\146\x75\156\144"]; goto HgbCj; URF0x: if (empty($id)) { goto Np5O4; } goto otSjp; SwJDE: $this->assign("\x70\141\147\x65", $list->render()); goto E0bqT; VJeG4: $setting = uni_setting_load("\x70\x61\171\155\145\156\164", $_W["\165\x6e\x69\x61\143\151\x64"]); goto ZJE3l; g0hsk: } public function change() { goto zpNiJ; yw1ZG: jMiuq: goto vt1lz; JpLNw: $update["\163\164\141\164\x75\x73"] = request()->param("\163\x74\141\x74\x75\x73", 1); goto r7wtA; HBJjA: zQENF: goto CdJ1Q; B20L5: $res = Db::name($table)->where($where)->update($update); goto HBJjA; zpNiJ: $type = request()->param("\x74\x79\160\145", 1); goto VOgLd; VOgLd: $id = request()->param("\151\144"); goto Uk8Fc; lIDsB: $where["\x6d\x63\x68\137\151\144"] = $this->bus_id; goto JpLNw; Uk8Fc: if (!($type == 1)) { goto jMiuq; } goto pxZpp; gAPb0: if (!(!empty($where) && !empty($table))) { goto zQENF; } goto B20L5; r7wtA: $table = "\x79\142\155\160\x5f\x61\143\x74\151\166\151\164\171"; goto yw1ZG; pxZpp: $where["\151\144"] = $id; goto lIDsB; vt1lz: $res = 0; goto gAPb0; CdJ1Q: return AjaxReturn($res); goto G7O8Q; G7O8Q: } public function del() { goto hXHz6; JxV7r: $where["\155\143\x68\x5f\x69\144"] = $this->bus_id; goto ZB6EB; s5H4x: $res = Db::name($table)->where($where)->update($update); goto UARNP; QHlKM: $where["\151\x64"] = $id; goto JxV7r; nNeEF: goto eY1mT; goto zo8lM; Hwnr1: $res = 0; goto ZVuW2; i0Fxl: $update["\x69\x73\x5f\144\145\x6c"] = 1; goto lkfAH; h0U7s: if (!($type == 1)) { goto n0agR; } goto QHlKM; Nu1_V: return AjaxReturn($res); goto dfo5U; hXHz6: $type = request()->param("\164\171\x70\x65", 1); goto Dq0tD; ZVuW2: if (!(!empty($where) && !empty($table))) { goto G25Bq; } goto M2tlk; bVJFt: $res = Db::name($table)->where($where)->delete(); goto nNeEF; x_ie2: G25Bq: goto Nu1_V; Dq0tD: $id = request()->param("\x69\144"); goto h0U7s; UARNP: eY1mT: goto x_ie2; lkfAH: n0agR: goto Hwnr1; M2tlk: if (!empty($update)) { goto t5XgO; } goto bVJFt; zo8lM: t5XgO: goto s5H4x; ZB6EB: $table = "\x79\x62\155\x70\x5f\141\143\164\151\166\x69\164\x79"; goto i0Fxl; dfo5U: } public function orderTakeRefund() { goto Yq6fr; vToSD: $data["\155\143\150\x5f\x69\144"] = $this->bus_id; goto fo4SA; pqDp4: return 0; goto Lzf9y; n357L: if (!empty($ii)) { goto opdab; } goto JcYLJ; fcYTe: file_put_contents($cert_path, $cert); goto cIEcn; PDeHD: goto ag5qp; goto q0KRK; jP_Rz: $setting = uni_setting_load("\x70\141\x79\155\145\x6e\164", $_W["\x75\x6e\x69\x61\143\x69\x64"]); goto w1gRW; fT2Ya: Z4u74: goto NBEOJ; ncyPP: return AjaxReturnMsg(0, "\346\x94\257\344\xbb\x98\xe9\x87\x91\xe9\242\x9d\xe4\270\272\351\x9b\xb6\346\x97\240\xe6\xb3\225\351\x80\x80\346\xac\276"); goto bK4os; xh0mg: if (!($ju == 1)) { goto fk124; } goto ONvgq; rCRNd: $data["\162\x65\x66\x75\156\x64\x5f\162\x65\x61\x73\157\156"] = ''; goto TmqK1; n9_i6: $input = new \WxPayRefund(); goto DvOtI; YH3UO: Db::name("\171\x62\155\x70\137\x6f\x72\x64\145\x72\137\162\x65\x66\x75\156\144")->insert($data); goto PDeHD; Lzf9y: TVFQT: goto WPduL; Yq6fr: $order_id = request()->post("\x6f\162\144\145\162\137\x69\x64", ''); goto DSSzi; DSSzi: $info = request()->param("\151\x6e\146\x6f", ''); goto uqxW9; QxIGW: goto RZSfn; goto miRT2; k1WvN: $data["\x63\162\145\x61\164\x65\137\164\x69\155\145"] = time(); goto g69WK; qib1i: Db::name("\171\142\155\160\x5f\157\162\144\x65\162\x5f\162\145\x66\165\156\x64")->where("\151\x64", $ii["\151\x64"])->update($data); goto G7hs0; LQzLr: $input->SetAppid($temp["\x41\x50\120\137\111\x44"]); goto CKwK6; KySaa: return $res; goto uwhIj; miRT2: qBWsb: goto qMZEg; qMZEg: $res = Db::name("\171\x62\155\x70\137\157\x72\144\x65\162\137\162\x65\x66\x75\156\x64")->where("\151\144", $ii["\151\x64"])->update($data); goto C86TR; bK4os: wWj13: goto HY_KS; xSerd: return AjaxReturnMsg(0, $errmsg); goto YIBmf; y42UJ: if ($param["\162\145\163\x75\x6c\x74\137\143\157\x64\x65"] == "\x53\x55\x43\103\105\x53\x53") { goto Z4u74; } goto h_8Xb; CKwK6: $cert = $cert; goto D01YP; v7mMO: if (!empty($ii)) { goto ua2CY; } goto YH3UO; vL2FN: global $_W; goto jP_Rz; kLacG: return 0; goto NUn1P; vJRBV: if (!$res) { goto uRwEB; } goto yU3O6; uwhIj: fk124: goto vL2FN; mT16K: $key_path = ATTACHMENT_ROOT . "\160\165\x62\x6c\151\143\57" . $this->bus_id . "\x5f\167\145\x63\150\141\x74\x5f\162\x65\146\x75\156\x64\137\153\145\x79\56\160\x65\155"; goto fcYTe; WPduL: if (!empty($info)) { goto vf213; } goto kLacG; fo4SA: $data["\157\x72\x64\x65\x72\137\151\x64"] = $order_id; goto rCRNd; sXjba: $key = authcode($refund_setting["\153\x65\x79"], "\x44\x45\103\117\x44\x45"); goto lwTCt; iVFKG: $cert = authcode($refund_setting["\143\x65\x72\x74"], "\104\105\103\x4f\x44\105"); goto sXjba; vDHOO: $input->SetRefund_fee($order_info["\160\141\x79\x5f\x6d\157\x6e\145\x79"] * 100); goto G6N4m; G6N4m: $input->SetOut_refund_no($res); goto ggEVP; s8Vg1: iH49f: goto zWhy6; loQeI: if (!empty($ii)) { goto qBWsb; } goto w68ff; v5gAC: $param = \WxPayApi::refund($input); goto y42UJ; NBEOJ: $order_info = Db::name("\171\142\x6d\x70\x5f\141\143\164\151\166\x69\x74\171\x5f\x6f\162\x64\x65\162")->where("\x6f\x72\144\x65\162\x5f\x69\144", $order_id)->update(["\157\x72\x64\x65\x72\x5f\x73\x74\141\x74\165\x73" => 5, "\x72\145\146\x75\x6e\x64\137\x6d\x6f\x6e\x65\171" => $order_info["\160\x61\171\137\155\157\156\x65\x79"], "\146\x69\x6e\x69\163\x68\137\164\151\x6d\145" => time()]); goto v7mMO; G7hs0: ag5qp: goto cTkHr; L9gJQ: $res = $temp["\101\x50\120\x5f\115\x43\110\111\104"] . date("\x59\155\144\x48\151\x73") . rand(10000, 9999999); goto n9_i6; k8J35: if ($refund_setting["\163\167\151\x74\x63\x68"] != 1 || empty($refund_setting["\x6b\145\171"]) || empty($refund_setting["\x63\145\x72\x74"])) { goto aWI7m; } goto iVFKG; SgNgM: $ii = Db::name("\171\x62\x6d\x70\137\x6f\162\x64\x65\x72\x5f\162\x65\146\x75\156\x64")->where(["\164\171\x70\x65" => $data["\164\171\x70\x65"], "\157\162\144\145\162\137\x69\x64" => $data["\157\x72\144\x65\x72\x5f\x69\144"]])->order("\x69\x64", "\x64\145\163\143")->find(); goto xh0mg; qKvJh: return AjaxReturn($res); goto KvJ6u; ocEWL: goto LFIGP; goto oczz6; DvOtI: $input->SetOut_trade_no($order_info["\157\165\x74\x5f\164\x72\x61\x64\145\137\156\x6f"]); goto LmY6m; uqxW9: $ju = request()->param("\152\165", 2); goto wrkD2; KvJ6u: XWB1g: goto lMGkN; kLBYK: $data["\x75\151\x64"] = $uid; goto vToSD; w1gRW: $refund_setting = $setting["\x70\141\x79\x6d\145\156\164"]["\x77\x65\143\150\x61\164\x5f\162\x65\x66\x75\x6e\144"]; goto k8J35; C86TR: RZSfn: goto vJRBV; gQX3s: $data["\162\x65\146\165\x6e\x64\137\163\x74\x61\164\x75\163"] = 1; goto loQeI; ilmmq: $data["\x72\x65\146\x75\156\144\x5f\162\145\141\163\157\156"] = $info; goto gQX3s; YIBmf: goto iH49f; goto fT2Ya; ggEVP: $input->SetOp_user_id($temp["\101\x50\120\137\115\x43\x48\x49\104"]); goto LQzLr; HvdcK: uRwEB: goto KySaa; TmqK1: $data["\162\x65\146\x75\x6e\x64\137\163\x74\x61\164\165\163"] = 2; goto k1WvN; LmY6m: $input->SetTotal_fee($order_info["\160\x61\x79\137\155\x6f\x6e\x65\x79"] * 100); goto vDHOO; Z5oof: $res = Db::name("\x79\x62\x6d\x70\x5f\x61\143\164\151\166\151\164\x79\x5f\x6f\162\144\145\162")->where("\x6f\x72\144\x65\x72\137\x69\x64", $order_id)->update(["\x6f\x72\x64\x65\162\137\x73\164\141\164\165\163" => 5, "\x72\145\x66\x75\156\144\x5f\155\x6f\156\x65\x79" => $item["\x70\141\171\137\x6d\157\156\145\x79"], "\x66\151\x6e\151\x73\150\137\164\151\155\145" => time()]); goto qKvJh; D01YP: $key = $key; goto Riqgp; lwTCt: $order_info = Db::name("\x79\142\155\x70\x5f\141\x63\164\x69\166\151\x74\171\x5f\x6f\162\144\x65\162")->where("\157\x72\144\145\x72\x5f\x69\144", $order_id)->find(); goto DNBrP; s5V0V: $temp = json_decode($bus_config["\166\x61\x6c\x75\x65"], true); goto L9gJQ; g69WK: $data["\x74\x79\x70\145"] = 4; goto SgNgM; iS0Xq: LFIGP: goto Z5oof; cIEcn: file_put_contents($key_path, $key); goto v5gAC; HY_KS: $bus_config = Db::name("\171\142\x6d\160\137\143\x6f\156\x66\151\147")->where("\x6d\x63\x68\x5f\x69\x64", $this->bus_id)->where("\153\145\171", "\x57\130\x50\x41\x59")->find(); goto s5V0V; bo1Mj: $ct = Db::name("\171\x62\x6d\160\137\141\x63\164\151\166\x69\164\x79\x5f\x6f\x72\144\145\x72")->where("\x6f\x72\x64\x65\162\137\151\144", $order_id)->value("\162\145\146\x75\x6e\144\137\163\x74\x61\x74\165\163"); goto iK5D4; yU3O6: Db::name("\x79\142\x6d\160\137\141\x63\164\151\166\151\x74\171\137\x6f\x72\144\x65\162")->where("\157\x72\144\145\x72\x5f\x69\144", $order_id)->update(["\157\x72\144\x65\162\137\x73\164\141\164\165\163" => $status]); goto HvdcK; cTkHr: return AjaxReturn($order_info); goto s8Vg1; b8xO5: aWI7m: goto R5JGy; wrkD2: $uid = request()->param("\165\x69\144", 0); goto kLBYK; JcYLJ: Db::name("\x79\142\155\x70\x5f\157\162\x64\145\x72\137\x72\x65\146\x75\156\144")->insert($data); goto ocEWL; w68ff: $res = Db::name("\171\142\155\x70\x5f\x6f\162\x64\x65\162\x5f\162\x65\146\x75\x6e\144")->insert($data); goto QxIGW; NUn1P: vf213: goto bo1Mj; oczz6: opdab: goto AFFeg; q0KRK: ua2CY: goto qib1i; AFFeg: Db::name("\x79\142\x6d\160\x5f\157\x72\x64\x65\x72\137\x72\x65\146\x75\156\x64")->where("\x69\144", $ii["\x69\x64"])->update($data); goto iS0Xq; zWhy6: goto XWB1g; goto b8xO5; h_8Xb: $errmsg = "\xe9\x80\x80\xe6\254\xbe\345\244\xb1\350\264\245\x3a" . json_encode($param, JSON_UNESCAPED_UNICODE); goto xSerd; DNBrP: if (!($order_info["\160\141\x79\x5f\155\157\x6e\x65\x79"] == 0)) { goto wWj13; } goto ncyPP; iK5D4: $status = intval($ct) == 0 ? 1 : intval($ct); goto ilmmq; R5JGy: $item = Db::name("\171\142\x6d\x70\x5f\141\143\x74\151\166\x69\x74\171\137\x6f\x72\144\145\x72")->where("\x6f\162\x64\x65\x72\137\x69\144", $order_id)->find(); goto n357L; ONvgq: if (!($uid == 0)) { goto TVFQT; } goto pqDp4; Riqgp: $cert_path = ATTACHMENT_ROOT . "\160\165\x62\x6c\151\143\57" . $this->bus_id . "\x5f\167\x65\143\x68\x61\x74\x5f\162\x65\x66\165\156\144\x5f\x63\x65\162\164\56\160\x65\x6d"; goto mT16K; lMGkN: } public function printer3() { goto JQOQd; tDLAg: $list = Db::name("\171\142\155\x70\137\142\141\162\147\141\x69\156\137\157\x72\144\x65\162")->alias("\141")->join("\x79\x62\155\x70\x5f\x61\162\x65\x61\x20\163", "\141\x2e\x72\145\x63\x65\x69\166\x65\162\137\141\x72\145\141\75\163\x2e\x69\144", "\x6c\x65\146\164")->field("\x61\x2e\52\x2c\x73\56\x6e\141\x6d\145\40\x73\x68\x69\156\141\155\145")->where("\x61\56\x6f\x72\x64\145\162\137\151\144", $order_id)->find(); goto AGge4; vvKrx: $type = "\137\62"; goto tDLAg; wxx_j: $this->assign("\x69\x6e\x66\x6f", $list); goto FmLuX; JQOQd: $order_id = no_space("\x69\x64"); goto iTTBE; FmLuX: return view("\x61\x72\x6c\151\153\151\x2f\160\x72\151\x6e\164\x65\x72\63"); goto XGNBc; GeAoQ: $this->assign("\x71\162\x63\157\x64\145", $this->get_barcode($list["\157\x72\144\145\x72\137\x6e\157"] . $type)); goto wxx_j; mF9QV: if (!($type == "\x6b\x61\x6e")) { goto VLbOG; } goto vvKrx; AGge4: VLbOG: goto JAvzh; Vhjo8: $list = Db::name("\x79\x62\155\160\x5f\141\143\x74\x69\166\151\x74\x79\x5f\x6f\162\x64\145\x72")->alias("\x61")->join("\x79\x62\155\x70\x5f\x61\162\145\141\40\163", "\x61\56\x72\x65\x63\x65\x69\x76\145\162\137\141\162\x65\141\x3d\x73\x2e\x69\144", "\x6c\145\x66\x74")->field("\141\56\x2a\x2c\163\56\x6e\x61\x6d\145\40\x73\x68\x69\156\141\x6d\145")->where("\141\56\x6f\x72\x64\145\162\137\151\x64", $order_id)->find(); goto W2JY0; iTTBE: $type = no_space("\x74\x79\160\x65", "\x6b\x61\156"); goto mF9QV; JAvzh: if (!($type == "\155\x69\141\x6f")) { goto wfqaY; } goto PhxFk; PhxFk: $type = "\x5f\64"; goto Vhjo8; W2JY0: wfqaY: goto GeAoQ; XGNBc: } public function get_barcode($data, $width = 200, $height = 200) { $str = "\x3c\144\x69\x76\x20\151\144\75\42\x62\141\x72\x5f\143\x6f\x64\x65\x22\76\74\57\x64\151\166\76\x3c\x73\x63\162\x69\x70\x74\x3e\44\50\x66\165\156\143\x74\151\157\156\x28\51\x7b\44\x28\42\43\x62\141\x72\x5f\x63\x6f\x64\x65\x22\51\x2e\x71\162\x63\157\x64\x65\x28\x7b\x77\x69\144\x74\x68\x3a" . $width . "\54\x68\x65\x69\x67\150\164\x3a" . $height . "\54\x74\145\170\164\x3a\42" . $data . "\42\175\x29\73\x7d\x29\x3b\74\57\163\143\162\151\x70\x74\x3e"; return $str; } }
Function Calls
None |
Stats
MD5 | 1167d399feb5a552a8074e609db2408f |
Eval Count | 0 |
Decode Time | 189 ms |