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 think\Db; use think\Cache; use app\admin\servi..

Decoded Output download

<?php 
 namespace appdmin\controller; use think\Db; use think\Cache; use appdmin\service\LivePlayerService; use appdmin\service\WechatService; class Liveplayer extends Base { public function index() { goto FS7eN; u0vAn: f1WOd: goto roYRF; aD_Ga: $page = $list->render(); goto OQ2HS; hv6rw: $conf_info = Db::name("ybmp_config")->field("value")->where(["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH"])->find(); goto jLiqS; lJ0WM: gFybB: goto Y37Jt; bLCa4: $data = ["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH", "value" => json_encode(["switch" => 0]), "info" => ""]; goto F8eRM; cLbCo: return view(); goto dDFIl; Z3WIu: $condition["name"] = ["like", "%" . $name . "%"]; goto u0vAn; W73Kj: goto XdfPA; goto lJ0WM; Cg7Wt: $livePlayerService->checkLivePlayerRoom($this->bus_id); goto ccXaV; Ma0_V: $this->assign("switch", $switch); goto cLbCo; F0jED: $this->assign("name", $name); goto hv6rw; OQ2HS: $this->assign("list", $list); goto qrbDq; iBVd3: if (!empty($conf_info["value"])) { goto gFybB; } goto bLCa4; F8eRM: Db::name("ybmp_config")->insert($data); goto W73Kj; ISbfq: $list = Db::name("ybmp_live_player_room")->where($condition)->order("roomid desc")->paginate(10, false, $config = ["query" => ["s" => $querys["s"]]])->each(function ($item, $key) use($livePlayerService) { goto iNMZv; PTcFQ: $item["start_time"] = date("Y-m-d H:i:s", $item["start_time"]); goto NWZ5F; DTC68: return $item; goto jX0sf; iNMZv: $item["live_status_txt"] = $livePlayerService->getLiveStatus($item["live_status"], $item["end_time"]); goto PTcFQ; NWZ5F: $item["end_time"] = date("Y-m-d H:i:s", $item["end_time"]); goto DTC68; jX0sf: }); goto aD_Ga; mAtf1: XdfPA: goto Ma0_V; eXCcp: $switch = isset($value["switch"]) ? $value["switch"] : 0; goto mAtf1; deMwE: $condition["delete_time"] = 0; goto nYQC7; Y37Jt: $value = json_decode($conf_info["value"], true); goto eXCcp; nYQC7: if (!$name) { goto f1WOd; } goto Z3WIu; kBvNM: $livePlayerService = new LivePlayerService(); goto Cg7Wt; ccXaV: $condition["mch_id"] = $this->bus_id; goto deMwE; FS7eN: $name = $this->request->param("name", ''); goto kBvNM; roYRF: $querys = urlQueryToArr(); goto ISbfq; qrbDq: $this->assign("page", $page); goto F0jED; jLiqS: $switch = 0; goto iBVd3; dDFIl: } public function updLivePlayerRoomData() { goto zMn1t; H011J: $livePlayerService->checkLivePlayerRoom($this->bus_id); goto K8pMx; pcMJ6: exit(json_encode($rs, true)); goto sbSnN; K8pMx: $rs = ["code" => 1]; goto pcMJ6; VgSwe: $livePlayerService = new LivePlayerService(); goto H011J; zMn1t: Cache::set("room_expire_time_" . $this->bus_id, time() - 10); goto VgSwe; sbSnN: } public function replay() { goto v8r8t; C4yHE: foreach ($list as &$v) { goto RFsUF; tbG3c: $v["create_time"] = date("Y-m-d H:i:s", $v["create_time"]); goto K95EX; K95EX: qC5wQ: goto Z268S; RFsUF: $v["expire_time"] = date("Y-m-d H:i:s", $v["expire_time"]); goto tbG3c; Z268S: } goto RmvjJ; mXalW: $livePlayerService->checkLivePlayerRoomReplay($this->bus_id, $roomid, $live_player_roomid); goto DZGz6; UKv29: $livePlayerService = new LivePlayerService(); goto mXalW; f5PwQ: $live_player_roomid = request()->param("live_player_roomid", 0); goto UKv29; DZGz6: $list = Db::name("ybmp_live_player_room_replay")->where("mch_id", $this->bus_id)->where("roomid", $roomid)->where("live_player_roomid", $live_player_roomid)->order("create_time asc")->select(); goto C4yHE; v8r8t: $roomid = request()->param("roomid", 0); goto f5PwQ; hPw0d: $this->assign("list", $list); goto UgAre; RmvjJ: oHdMQ: goto hPw0d; UgAre: return view(); goto Sx41b; Sx41b: } public function liveSwitch() { goto vu5H7; yqnBx: if (empty($conf_info["value"])) { goto Ch28R; } goto S3Vb4; S3Vb4: $value = json_decode($conf_info["value"], true); goto AkDN4; AkDN4: $switch = $value["switch"] == 1 ? 0 : 1; goto BL6tW; WvAof: $conf_info = Db::name("ybmp_config")->field("id,value")->where(["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH"])->find(); goto D3MTE; vu5H7: if (!(request()->isAjax() && request()->isPost())) { goto ehAg5; } goto WvAof; tAfRW: $rs = ["code" => $res]; goto AHVek; D3MTE: $res = 0; goto yqnBx; gUfHP: Ch28R: goto tAfRW; AHVek: exit(json_encode($rs, true)); goto ZL_0V; BL6tW: $res = Db::name("ybmp_config")->where(["id" => $conf_info["id"]])->update(["value" => json_encode(["switch" => $switch]), "modify_time" => time()]); goto gUfHP; ZL_0V: ehAg5: goto nJ97j; nJ97j: } public function live_del() { goto VLgp2; M4gz3: $id = request()->param("id"); goto M4lBt; fFlci: mUmU7: goto jrGRL; M4lBt: $res = Db::name("ybmp_live_player_room")->where("id", $id)->delete(); goto EdTJo; EdTJo: if (!$res) { goto o3trD; } goto wt7OE; VLgp2: if (!(request()->isAjax() && request()->isPost())) { goto mUmU7; } goto M4gz3; EeLMJ: $rs = ["code" => $res]; goto pIktx; wt7OE: Db::name("ybmp_live_player_room_replay")->where("mch_id", $this->bus_id)->where("live_player_roomid", $id)->delete(); goto viv7f; pIktx: exit(json_encode($rs, true)); goto fFlci; viv7f: o3trD: goto EeLMJ; jrGRL: } public function add_room() { goto jDeoU; jDeoU: if (!(request()->isAjax() && request()->isPost())) { goto eFKxW; } goto teaen; Etue_: $cover_img = $data["cover_img"]; goto iOchU; kNx_F: OCbzV: goto Bzv8L; wI5vg: $end_time = strtotime($data["end_time"]); goto EMN1M; Hd2bF: $data["mch_id"] = $this->bus_id; goto AmALo; uTejW: if (!($start_time < $now_time + 600 || $start_time > $now_time + 60 * 60 * 24 * 180)) { goto Rw0y9; } goto F6Mah; EAzOJ: $this->assign("anchor_list", $anchor_list ? json_encode($anchor_list) : []); goto AKQcy; weyZG: $data = request()->param(); goto BRYoA; Hh9rc: $data["start_time"] = $start_time; goto dUJfy; Uzxqx: $share_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $share_img, "image", []); goto hQj1O; XqCdH: $share_img = $data["share_img"]; goto Uzxqx; F6Mah: $rs = ["code" => 0, "msg" => "106"]; goto yRxCa; hQj1O: $data["share_media_id"] = $share_media_id; goto Etue_; LuoLa: $data["create_time"] = time(); goto HJGdh; hJuyV: $data["cover_media_id"] = $cover_media_id; goto hdJkO; CL7za: $this->assign("now", date("Y-m-d H:i:s")); goto EAzOJ; Bzv8L: $data["roomid"] = $result["roomid"]; goto v5lFz; wcU2r: rNFnI: goto Hh9rc; ynM3Y: exit(json_encode($result)); goto kNx_F; I0OWo: $rs = ["code" => 0, "msg" => "3012"]; goto oVtDM; hdJkO: $start_time = strtotime($data["start_time"]); goto wI5vg; yRxCa: exit(json_encode($rs)); goto q0vpS; teaen: $rs = ["code" => 1, "msg" => '']; goto weyZG; zXVo5: if (!($result["code"] == 0)) { goto OCbzV; } goto ynM3Y; dUJfy: $data["end_time"] = $end_time; goto LuoLa; XsCvz: Cache::set("room_expire_time_" . $this->bus_id, time() - 10); goto s12RP; s12RP: $livePlayerService->checkLivePlayerRoom($this->bus_id); goto sy2_9; iOchU: $cover_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $cover_img, "image", []); goto hJuyV; v5lFz: Db::name("ybmp_live_player_room_info")->insert($data); goto XsCvz; AmALo: $wechatService = new WechatService(); goto XqCdH; w87DG: $anchor_list = Db::name("ybmp_live_player_anchor")->field("id,user_id,anchor_name,anchor_wechat")->where(["status" => 1, "delete_time" => 0, "mch_id" => $this->bus_id])->order("id desc")->select(); goto CL7za; BRYoA: $livePlayerService = new LivePlayerService(); goto Hd2bF; sy2_9: exit(json_encode($rs)); goto J8jf4; AKQcy: return view(); goto JU1n6; EMN1M: $now_time = time(); goto uTejW; J8jf4: eFKxW: goto w87DG; HJGdh: $result = $livePlayerService->addLivePlayerRoom($data); goto zXVo5; q0vpS: Rw0y9: goto wG8Bq; oVtDM: exit(json_encode($rs)); goto wcU2r; wG8Bq: if (!($start_time + 60 * 30 > $end_time || $start_time + 60 * 60 * 12 < $end_time)) { goto rNFnI; } goto I0OWo; JU1n6: } public function goods() { goto vgvHc; VBzdx: $querys = urlQueryToArr(); goto q5XuS; XiBax: $this->assign("list", $list); goto HE30_; fvOXB: $this->assign("switch", $switch); goto iMrC3; Fj1U8: e2PzV: goto n_kNq; T6KDw: $conf_info = Db::name("ybmp_config")->field("value")->where(["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH"])->find(); goto dj1jl; iMrC3: return view(); goto Fiuz1; QUiZu: $condition["mch_id"] = $this->bus_id; goto TAJNu; TAJNu: $condition["delete_time"] = 0; goto VBzdx; yhA3g: $livePlayerService->checkLivePlayerGoods($this->bus_id, 1); goto b3vBs; OSYkE: $switch = isset($value["switch"]) ? $value["switch"] : 0; goto xkS9a; dV_XX: $data = ["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH", "value" => json_encode(["switch" => 0]), "info" => ""]; goto pYViv; YNOEz: $livePlayerService->checkLivePlayerGoods($this->bus_id); goto yhA3g; tMBX4: goto gMtwG; goto Fj1U8; d7UK1: $page = $list->render(); goto XiBax; vgvHc: $livePlayerService = new LivePlayerService(); goto YNOEz; b3vBs: $livePlayerService->checkLivePlayerGoods($this->bus_id, 2); goto QUiZu; HE30_: $this->assign("page", $page); goto T6KDw; q5XuS: $list = Db::name("ybmp_live_player_goods")->where($condition)->order("goods_id desc")->paginate(10, false, $config = ["query" => ["s" => $querys["s"]]])->each(function ($item, $key) use($livePlayerService) { $item["audit_status_txt"] = $livePlayerService->audit_status_txt[$item["audit_status"]]; return $item; }); goto d7UK1; dj1jl: $switch = 0; goto kbd_N; pYViv: Db::name("ybmp_config")->insert($data); goto tMBX4; xkS9a: gMtwG: goto fvOXB; kbd_N: if (!empty($conf_info["value"])) { goto e2PzV; } goto dV_XX; n_kNq: $value = json_decode($conf_info["value"], true); goto OSYkE; Fiuz1: } public function add_goods() { goto Ls_hm; VF3yD: $data["cover_media_id"] = $cover_media_id; goto wZ8ON; BaHi8: $data["audit_id"] = $result["audit_id"]; goto raPyG; fFTwO: $data["create_time"] = time(); goto OeVz2; TPmro: rgyCH: goto lym8w; gnzME: if (!($result["code"] == 0)) { goto yLOy2; } goto cX4MW; mFESL: $data = request()->param(); goto Ztakl; K3MHB: $rs = ["code" => 1, "msg" => '']; goto ugGWn; serXO: $cover_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $cover_img_url, "image", []); goto VF3yD; FhrzK: $wechatService = new WechatService(); goto rkiKB; lym8w: return view(); goto psN0_; YhFQ2: $result = $livePlayerService->addLivePlayerGoods($data); goto gnzME; cX4MW: $rs = ["code" => 0, "msg" => $result["msg"]]; goto hGfNv; rkiKB: $cover_img_url = $data["cover_img_url"]; goto serXO; OeVz2: $data["goods_id"] = $result["goods_id"]; goto BaHi8; wZ8ON: $livePlayerService = new LivePlayerService(); goto YhFQ2; Ls_hm: if (!(request()->isAjax() && request()->isPost())) { goto rgyCH; } goto mFESL; Ztakl: $data["mch_id"] = $this->bus_id; goto FhrzK; raPyG: Db::name("ybmp_live_player_goods_info")->insert($data); goto K3MHB; hGfNv: exit(json_encode($rs)); goto IGDgv; IGDgv: yLOy2: goto fFTwO; ugGWn: exit(json_encode($rs, true)); goto TPmro; psN0_: } public function edit_goods() { goto GsSg3; Lnp5C: $cover_media_id = $live_player_goods_info["cover_media_id"]; goto NzQR6; un4qF: $data["cover_media_id"] = $cover_media_id; goto oJCQ8; a5wC2: exit(json_encode($rs)); goto gxaGI; Hm2R9: if ($cover_img_url != $live_player_goods_info["cover_img_url"]) { goto QQvKT; } goto Lnp5C; ndNjE: $result = $livePlayerService->updLivePlayerGoods($data, $live_player_goods["audit_status"]); goto Wm_DJ; GsSg3: $goods_id = request()->param("goods_id"); goto zSV0N; wliyB: XDOUV: goto j83_R; SVWCo: goto yYLJF; goto ERbn9; gxaGI: iKcXu: goto HrgAh; Wm_DJ: if (!($result["code"] == 0)) { goto XDOUV; } goto oBTEn; G6NBW: if ($live_player_goods["audit_status"] == 0) { goto QasZN; } goto a0x29; DRXTp: $livePlayerService = new LivePlayerService(); goto ndNjE; oJCQ8: yYLJF: goto VmVpm; zSV0N: $live_player_goods_info = Db::name("ybmp_live_player_goods_info")->field("cover_img_url,cover_media_id")->where("goods_id", $goods_id)->where("mch_id", $this->bus_id)->find(); goto Nydzl; a0x29: unset($data["name"], $data["cover_img_url"], $data["url"]); goto SVWCo; j83_R: $data["update_time"] = time(); goto ZJbBV; f4y5R: unset($data["cover_media_id"]); goto SV7sE; SV7sE: Db::name("ybmp_live_player_goods")->where("goods_id", $goods_id)->where("mch_id", $this->bus_id)->update($data); goto a5wC2; oEcDy: $data["mch_id"] = $this->bus_id; goto G6NBW; ZJbBV: Db::name("ybmp_live_player_goods_info")->where("goods_id", $goods_id)->where("mch_id", $this->bus_id)->update($data); goto f4y5R; vkv7m: $this->assign("goods", $live_player_goods); goto WaSLj; iQG0K: ZMWYl: goto un4qF; Nydzl: $live_player_goods = Db::name("ybmp_live_player_goods")->where("goods_id", $goods_id)->where("mch_id", $this->bus_id)->find(); goto GHkpu; f1_Ex: QQvKT: goto nIdie; VmVpm: $data["goods_id"] = $live_player_goods["goods_id"]; goto DRXTp; HrgAh: $this->assign("info", $live_player_goods_info); goto vkv7m; nIdie: $cover_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $cover_img_url, "image", []); goto iQG0K; KX9Q6: $rs = ["code" => 1, "msg" => '']; goto CRxrU; xciNH: $wechatService = new WechatService(); goto eeeUu; oBTEn: exit(json_encode($result)); goto wliyB; WaSLj: return view(); goto IPZAe; ERbn9: QasZN: goto xciNH; NzQR6: goto ZMWYl; goto f1_Ex; CRxrU: $data = request()->param("goods_info/a"); goto oEcDy; eeeUu: $cover_img_url = $data["cover_img_url"]; goto Hm2R9; GHkpu: if (!(request()->isAjax() && request()->isPost())) { goto iKcXu; } goto KX9Q6; IPZAe: } public function del_goods() { goto p23kv; bQUys: if (!($result["code"] == 0)) { goto rG3n7; } goto uJp6R; maQuJ: $goods_id = request()->param("goods_id"); goto oLiSV; GKgzQ: $result = $livePlayerService->delLivePlayerGoods($this->bus_id, $goods_id); goto bQUys; uJp6R: exit(json_encode($result)); goto mhoBy; oLiSV: $livePlayerService = new LivePlayerService(); goto GKgzQ; p23kv: if (!(request()->isAjax() && request()->isPost())) { goto F1Dja; } goto maQuJ; mhoBy: rG3n7: goto azJiE; Erecc: $rs = ["code" => $res, "msg" => '']; goto lRD8D; lRD8D: exit(json_encode($rs, true)); goto AATbz; AATbz: F1Dja: goto CCh_J; azJiE: $res = Db::name("ybmp_live_player_goods")->where(["mch_id" => $this->bus_id, "goods_id" => $goods_id])->delete(); goto Erecc; CCh_J: } public function resetAudit() { goto AiNeV; xu17k: TgiM0: goto k_aMM; YzAI5: $rs = ["code" => $res]; goto S_UHb; k_aMM: $res = Db::name("ybmp_live_player_goods")->where(["mch_id" => $this->bus_id, "goods_id" => $goods_id])->update(["update_time" => time(), "audit_status" => 0]); goto YzAI5; QfL0u: $livePlayerService = new LivePlayerService(); goto cnTMD; CJWgq: if (!($result["code"] == 0)) { goto TgiM0; } goto F8Xbd; QlQyG: $goods_id = request()->param("goods_id"); goto nXWJv; zferE: BUVdt: goto sKUcS; F8Xbd: exit(json_encode($result)); goto xu17k; cnTMD: $result = $livePlayerService->resetLivePlayerGoodsAudit($this->bus_id, $goods_id, $audit_id); goto CJWgq; S_UHb: exit(json_encode($rs, true)); goto zferE; nXWJv: $goods_info = Db::name("ybmp_live_player_goods_info")->field("audit_id")->where(["mch_id" => $this->bus_id, "goods_id" => $goods_id])->find(); goto oELVY; oELVY: $audit_id = $goods_info ? $goods_info["audit_id"] : 0; goto QfL0u; AiNeV: if (!(request()->isAjax() && request()->isPost())) { goto BUVdt; } goto QlQyG; sKUcS: } public function submitAudit() { goto DscQ0; JDSBs: exit(json_encode($rs, true)); goto tX6vZ; TFH71: $result = $livePlayerService->submitLivePlayerGoodsAudit($this->bus_id, $goods_id); goto NSLrk; gfVhE: $goods_id = request()->param("goods_id"); goto E1Yaa; tX6vZ: AbsoA: goto AjrBr; NSLrk: if (!($result["code"] == 0)) { goto Rqswx; } goto nWn8d; E1Yaa: $livePlayerService = new LivePlayerService(); goto TFH71; DscQ0: if (!(request()->isAjax() && request()->isPost())) { goto AbsoA; } goto gfVhE; Mc_Zz: $rs = ["code" => $res]; goto JDSBs; uMlM3: Rqswx: goto s1_ze; nWn8d: exit(json_encode($result)); goto uMlM3; sMF7S: Db::name("ybmp_live_player_goods_info")->where(["mch_id" => $this->bus_id, "goods_id" => $goods_id])->update(["update_time" => time(), "audit_id" => $result["audit_id"]]); goto Mc_Zz; s1_ze: $res = Db::name("ybmp_live_player_goods")->where(["mch_id" => $this->bus_id, "goods_id" => $goods_id])->update(["update_time" => time(), "audit_id" => $result["audit_id"], "audit_status" => 1]); goto sMF7S; AjrBr: } public function updLivePlayerGoodsData() { goto cWimr; fKGdS: $livePlayerService->checkLivePlayerGoods($this->bus_id, 2); goto RvF2J; bVgds: $livePlayerService->checkLivePlayerGoods($this->bus_id); goto yBkTZ; RQpMO: Cache::set("goods_expire_time_" . $this->bus_id, time() - 10); goto ICP9x; OsJfZ: exit(json_encode($rs, true)); goto oCgPd; RvF2J: $rs = ["code" => 1]; goto OsJfZ; cWimr: $livePlayerService = new LivePlayerService(); goto iCl_M; CPJwt: $livePlayerService->checkLivePlayerGoods($this->bus_id, 1); goto RQpMO; yBkTZ: Cache::set("goods_expire_time_" . $this->bus_id, time() - 10); goto CPJwt; ICP9x: Cache::set("goods_status_expire_time_" . $this->bus_id, time() - 10); goto fKGdS; iCl_M: Cache::set("goods_expire_time_" . $this->bus_id, time() - 10); goto bVgds; oCgPd: } public function setting() { goto LaZrc; Hd9H2: $switch = isset($value["switch"]) ? $value["switch"] : 0; goto KnXUF; ZmJh5: $conf_info = Db::name("ybmp_config")->field("value")->where(["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH"])->find(); goto L_rPJ; y__RN: $data["update_time"] = time(); goto A5PCX; EiR1z: $id = Db::name("ybmp_live_player_setting")->insertGetId($data); goto xrY7p; RIyu8: $data = ["mch_id" => $this->bus_id, "create_time" => time()]; goto EiR1z; m6nNK: goto ObssV; goto wmN5w; OrnHe: $rs = ["code" => $res]; goto cTgZe; CYClV: $value = json_decode($conf_info["value"], true); goto Hd9H2; wmN5w: UnHRW: goto CYClV; KnXUF: ObssV: goto Y6b3G; FFx6x: return view(); goto KIAOR; L_rPJ: $switch = 0; goto jlV7y; KxP7d: IU_0E: goto wBNLq; rInoy: mZYxP: goto xqmFf; WJyFN: $data = ["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH", "value" => json_encode(["switch" => 0]), "info" => ""]; goto ryzhL; A5PCX: $res = Db::name("ybmp_live_player_setting")->where("mch_id", $this->bus_id)->update($data); goto OrnHe; cTgZe: exit(json_encode($rs, true)); goto KxP7d; xqmFf: $this->assign("info", $info); goto ZmJh5; l0dnb: if (!(request()->isAjax() && request()->isPost())) { goto IU_0E; } goto rtCPp; Y6b3G: $this->assign("switch", $switch); goto FFx6x; ryzhL: Db::name("ybmp_config")->insert($data); goto m6nNK; jlV7y: if (!empty($conf_info["value"])) { goto UnHRW; } goto WJyFN; LaZrc: $info = Db::name("ybmp_live_player_setting")->where("mch_id", $this->bus_id)->find(); goto l0dnb; rtCPp: $data = request()->param(); goto y__RN; wBNLq: if (!empty($info)) { goto mZYxP; } goto RIyu8; xrY7p: $info = Db::name("ybmp_live_player_setting")->where("id", $id)->find(); goto rInoy; KIAOR: } public function anchor() { goto QJwna; ozzne: $condition["delete_time"] = 0; goto VmC7J; mj2LQ: $condition["anchor_name"] = ["like", "%" . $anchor_name . "%"]; goto CwlZO; MB66q: $data = ["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH", "value" => json_encode(["switch" => 0]), "info" => ""]; goto L5Fq_; xt6iu: Mq6M8: goto Aff1R; Aff1R: $value = json_decode($conf_info["value"], true); goto OyLNa; Eo6wk: return view(); goto r0A61; eH82R: $this->assign("switch", $switch); goto Eo6wk; OyLNa: $switch = isset($value["switch"]) ? $value["switch"] : 0; goto PXZig; NfEuU: $livePlayerService = new LivePlayerService(); goto FL23d; qHcyG: $page = $list->render(); goto rI84p; XRT_M: $this->assign("page", $page); goto FD1g0; L5Fq_: Db::name("ybmp_config")->insert($data); goto Ak5sj; VmC7J: $querys = urlQueryToArr(); goto i8JmK; ntwGn: $list = Db::name("ybmp_live_player_anchor")->where($condition)->order("id desc")->paginate(10, false, $config = ["query" => ["s" => $querys["s"]]])->each(function ($item, $key) use($livePlayerService) { $item["status_txt"] = $livePlayerService->status_txt[$item["status"]]; return $item; }); goto qHcyG; QJwna: $anchor_name = $this->request->param("anchor_name", ''); goto NfEuU; rI84p: $this->assign("list", $list); goto XRT_M; W9KGc: $switch = 0; goto Hs3tb; FD1g0: $conf_info = Db::name("ybmp_config")->field("value")->where(["mch_id" => $this->bus_id, "key" => "LIVE_SWITCH"])->find(); goto W9KGc; PXZig: aRKc5: goto eH82R; CwlZO: iadwG: goto ntwGn; Ak5sj: goto aRKc5; goto xt6iu; i8JmK: if (!$anchor_name) { goto iadwG; } goto mj2LQ; Hs3tb: if (!empty($conf_info["value"])) { goto Mq6M8; } goto MB66q; FL23d: $condition["mch_id"] = $this->bus_id; goto ozzne; r0A61: } public function anchorAudit() { goto Rf5US; QE71P: $rs = ["code" => $res]; goto kv3tj; bCIkj: BsvCa: goto Thcmz; kv3tj: exit(json_encode($rs, true)); goto bCIkj; piMe0: $up_data = ["status" => $type == 1 ? 1 : 2, "remarks" => $remarks, "update_time" => time()]; goto UcESJ; KQyST: $type = request()->param("type", 1); goto xCUKP; Rf5US: if (!(request()->isAjax() && request()->isPost())) { goto BsvCa; } goto Mdvdd; xCUKP: $remarks = request()->param("remarks", ''); goto piMe0; UcESJ: $res = Db::name("ybmp_live_player_anchor")->where("id", $id)->update($up_data); goto QE71P; Mdvdd: $id = request()->param("id"); goto KQyST; Thcmz: } public function anchor_del() { goto S1f98; Uk_WL: zgTs8: goto D0UXH; FMXGx: exit(json_encode($rs, true)); goto Uk_WL; S1f98: if (!(request()->isAjax() && request()->isPost())) { goto zgTs8; } goto p0STU; p0STU: $id = request()->param("id"); goto deSxn; deSxn: $res = Db::name("ybmp_live_player_anchor")->where(["id" => $id])->update(["delete_time" => time(), "update_time" => time()]); goto DmGj6; DmGj6: $rs = ["code" => $res]; goto FMXGx; D0UXH: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
 namespace app\admin\controller; use think\Db; use think\Cache; use app\admin\service\LivePlayerService; use app\admin\service\WechatService; class Liveplayer extends Base { public function index() { goto FS7eN; u0vAn: f1WOd: goto roYRF; aD_Ga: $page = $list->render(); goto OQ2HS; hv6rw: $conf_info = Db::name("\171\x62\155\x70\x5f\143\x6f\156\146\151\x67")->field("\166\x61\154\x75\x65")->where(["\155\x63\x68\137\x69\x64" => $this->bus_id, "\153\x65\x79" => "\114\x49\126\105\137\123\127\111\124\103\110"])->find(); goto jLiqS; lJ0WM: gFybB: goto Y37Jt; bLCa4: $data = ["\155\143\150\137\151\x64" => $this->bus_id, "\153\x65\171" => "\x4c\111\x56\x45\x5f\x53\127\x49\x54\x43\110", "\166\141\154\165\145" => json_encode(["\163\x77\x69\x74\x63\x68" => 0]), "\x69\156\146\157" => "\347\x9b\xb4\346\222\255\345\274\200\345\x85\263"]; goto F8eRM; cLbCo: return view(); goto dDFIl; Z3WIu: $condition["\156\141\x6d\145"] = ["\x6c\x69\153\x65", "\45" . $name . "\45"]; goto u0vAn; W73Kj: goto XdfPA; goto lJ0WM; Cg7Wt: $livePlayerService->checkLivePlayerRoom($this->bus_id); goto ccXaV; Ma0_V: $this->assign("\x73\167\x69\x74\x63\x68", $switch); goto cLbCo; F0jED: $this->assign("\156\x61\x6d\x65", $name); goto hv6rw; OQ2HS: $this->assign("\154\x69\163\164", $list); goto qrbDq; iBVd3: if (!empty($conf_info["\x76\x61\154\165\x65"])) { goto gFybB; } goto bLCa4; F8eRM: Db::name("\x79\142\155\160\x5f\x63\x6f\156\x66\x69\147")->insert($data); goto W73Kj; ISbfq: $list = Db::name("\x79\142\x6d\x70\x5f\154\151\x76\x65\137\160\x6c\x61\x79\145\162\137\x72\157\x6f\x6d")->where($condition)->order("\x72\x6f\x6f\x6d\151\x64\40\144\x65\163\143")->paginate(10, false, $config = ["\161\165\x65\x72\171" => ["\x73" => $querys["\x73"]]])->each(function ($item, $key) use($livePlayerService) { goto iNMZv; PTcFQ: $item["\x73\164\x61\162\164\x5f\164\151\155\x65"] = date("\x59\55\x6d\x2d\x64\x20\110\x3a\x69\x3a\x73", $item["\x73\x74\x61\x72\x74\x5f\x74\x69\155\145"]); goto NWZ5F; DTC68: return $item; goto jX0sf; iNMZv: $item["\x6c\151\x76\x65\x5f\x73\164\x61\164\165\x73\137\164\170\x74"] = $livePlayerService->getLiveStatus($item["\x6c\x69\166\145\137\163\x74\x61\164\x75\163"], $item["\145\x6e\144\x5f\164\151\x6d\145"]); goto PTcFQ; NWZ5F: $item["\145\156\x64\137\x74\x69\x6d\x65"] = date("\131\55\155\x2d\144\x20\110\72\151\x3a\163", $item["\145\156\144\x5f\x74\x69\155\145"]); goto DTC68; jX0sf: }); goto aD_Ga; mAtf1: XdfPA: goto Ma0_V; eXCcp: $switch = isset($value["\x73\x77\151\164\143\150"]) ? $value["\x73\167\x69\164\143\150"] : 0; goto mAtf1; deMwE: $condition["\144\145\x6c\x65\x74\x65\137\x74\x69\x6d\x65"] = 0; goto nYQC7; Y37Jt: $value = json_decode($conf_info["\x76\141\154\x75\145"], true); goto eXCcp; nYQC7: if (!$name) { goto f1WOd; } goto Z3WIu; kBvNM: $livePlayerService = new LivePlayerService(); goto Cg7Wt; ccXaV: $condition["\x6d\x63\150\x5f\151\x64"] = $this->bus_id; goto deMwE; FS7eN: $name = $this->request->param("\x6e\x61\x6d\145", ''); goto kBvNM; roYRF: $querys = urlQueryToArr(); goto ISbfq; qrbDq: $this->assign("\x70\x61\147\x65", $page); goto F0jED; jLiqS: $switch = 0; goto iBVd3; dDFIl: } public function updLivePlayerRoomData() { goto zMn1t; H011J: $livePlayerService->checkLivePlayerRoom($this->bus_id); goto K8pMx; pcMJ6: exit(json_encode($rs, true)); goto sbSnN; K8pMx: $rs = ["\x63\x6f\x64\x65" => 1]; goto pcMJ6; VgSwe: $livePlayerService = new LivePlayerService(); goto H011J; zMn1t: Cache::set("\162\x6f\157\x6d\137\145\x78\x70\151\162\145\137\164\x69\x6d\x65\x5f" . $this->bus_id, time() - 10); goto VgSwe; sbSnN: } public function replay() { goto v8r8t; C4yHE: foreach ($list as &$v) { goto RFsUF; tbG3c: $v["\x63\x72\145\x61\x74\x65\x5f\x74\x69\155\x65"] = date("\x59\x2d\155\x2d\144\x20\x48\x3a\151\x3a\x73", $v["\x63\162\x65\141\164\145\137\164\151\x6d\145"]); goto K95EX; K95EX: qC5wQ: goto Z268S; RFsUF: $v["\145\170\x70\151\162\x65\137\x74\x69\x6d\145"] = date("\x59\55\155\x2d\144\x20\110\x3a\151\x3a\163", $v["\x65\x78\160\151\162\145\137\x74\151\x6d\x65"]); goto tbG3c; Z268S: } goto RmvjJ; mXalW: $livePlayerService->checkLivePlayerRoomReplay($this->bus_id, $roomid, $live_player_roomid); goto DZGz6; UKv29: $livePlayerService = new LivePlayerService(); goto mXalW; f5PwQ: $live_player_roomid = request()->param("\x6c\151\166\145\x5f\x70\154\141\171\145\162\137\x72\x6f\157\x6d\151\x64", 0); goto UKv29; DZGz6: $list = Db::name("\x79\x62\x6d\x70\137\x6c\x69\166\145\137\160\x6c\141\171\x65\x72\137\x72\157\157\155\137\x72\x65\160\154\141\x79")->where("\x6d\143\x68\137\151\144", $this->bus_id)->where("\162\x6f\157\155\151\x64", $roomid)->where("\154\x69\166\x65\x5f\160\x6c\x61\x79\145\x72\137\x72\157\157\155\x69\144", $live_player_roomid)->order("\x63\162\x65\x61\x74\145\137\164\151\155\x65\40\141\x73\x63")->select(); goto C4yHE; v8r8t: $roomid = request()->param("\162\x6f\x6f\x6d\151\x64", 0); goto f5PwQ; hPw0d: $this->assign("\x6c\x69\163\164", $list); goto UgAre; RmvjJ: oHdMQ: goto hPw0d; UgAre: return view(); goto Sx41b; Sx41b: } public function liveSwitch() { goto vu5H7; yqnBx: if (empty($conf_info["\166\141\x6c\x75\145"])) { goto Ch28R; } goto S3Vb4; S3Vb4: $value = json_decode($conf_info["\166\x61\154\165\145"], true); goto AkDN4; AkDN4: $switch = $value["\x73\x77\151\164\143\x68"] == 1 ? 0 : 1; goto BL6tW; WvAof: $conf_info = Db::name("\x79\x62\155\160\137\x63\x6f\x6e\146\x69\x67")->field("\151\144\54\x76\141\154\165\145")->where(["\x6d\143\150\137\151\x64" => $this->bus_id, "\x6b\145\171" => "\x4c\x49\x56\x45\x5f\x53\127\x49\124\103\110"])->find(); goto D3MTE; vu5H7: if (!(request()->isAjax() && request()->isPost())) { goto ehAg5; } goto WvAof; tAfRW: $rs = ["\x63\157\x64\145" => $res]; goto AHVek; D3MTE: $res = 0; goto yqnBx; gUfHP: Ch28R: goto tAfRW; AHVek: exit(json_encode($rs, true)); goto ZL_0V; BL6tW: $res = Db::name("\x79\x62\x6d\x70\137\x63\x6f\156\146\x69\x67")->where(["\x69\144" => $conf_info["\x69\144"]])->update(["\166\141\154\165\x65" => json_encode(["\163\x77\151\x74\x63\x68" => $switch]), "\x6d\157\144\151\146\x79\137\164\151\155\x65" => time()]); goto gUfHP; ZL_0V: ehAg5: goto nJ97j; nJ97j: } public function live_del() { goto VLgp2; M4gz3: $id = request()->param("\x69\x64"); goto M4lBt; fFlci: mUmU7: goto jrGRL; M4lBt: $res = Db::name("\x79\x62\155\160\137\x6c\151\166\145\137\160\x6c\141\x79\145\162\137\162\x6f\157\x6d")->where("\151\x64", $id)->delete(); goto EdTJo; EdTJo: if (!$res) { goto o3trD; } goto wt7OE; VLgp2: if (!(request()->isAjax() && request()->isPost())) { goto mUmU7; } goto M4gz3; EeLMJ: $rs = ["\143\157\x64\x65" => $res]; goto pIktx; wt7OE: Db::name("\x79\x62\155\x70\x5f\154\151\166\145\137\160\x6c\141\x79\x65\x72\x5f\162\157\x6f\155\137\162\145\x70\154\141\171")->where("\155\143\x68\x5f\x69\144", $this->bus_id)->where("\x6c\x69\x76\x65\x5f\160\x6c\141\171\145\x72\137\162\157\x6f\x6d\151\x64", $id)->delete(); goto viv7f; pIktx: exit(json_encode($rs, true)); goto fFlci; viv7f: o3trD: goto EeLMJ; jrGRL: } public function add_room() { goto jDeoU; jDeoU: if (!(request()->isAjax() && request()->isPost())) { goto eFKxW; } goto teaen; Etue_: $cover_img = $data["\143\157\x76\145\x72\137\x69\155\x67"]; goto iOchU; kNx_F: OCbzV: goto Bzv8L; wI5vg: $end_time = strtotime($data["\x65\156\144\x5f\x74\151\x6d\145"]); goto EMN1M; Hd2bF: $data["\155\x63\150\x5f\x69\x64"] = $this->bus_id; goto AmALo; uTejW: if (!($start_time < $now_time + 600 || $start_time > $now_time + 60 * 60 * 24 * 180)) { goto Rw0y9; } goto F6Mah; EAzOJ: $this->assign("\x61\156\x63\150\x6f\x72\x5f\x6c\x69\163\x74", $anchor_list ? json_encode($anchor_list) : []); goto AKQcy; weyZG: $data = request()->param(); goto BRYoA; Hh9rc: $data["\x73\x74\141\162\164\x5f\164\151\x6d\145"] = $start_time; goto dUJfy; Uzxqx: $share_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $share_img, "\x69\x6d\x61\147\145", []); goto hQj1O; XqCdH: $share_img = $data["\163\150\141\x72\x65\137\151\x6d\147"]; goto Uzxqx; F6Mah: $rs = ["\143\157\144\145" => 0, "\x6d\x73\147" => "\345\xbc\200\346\222\255\346\x97\266\xe9\227\xb4\351\234\x80\350\xa6\x81\xe5\234\xa8\345\xbd\223\345\211\215\xe6\227\266\351\227\xb4\xe7\232\x84\61\x30\xe5\x88\x86\xe9\x92\237\xe5\x90\x8e\xef\xbc\x8c\345\xb9\266\344\270\224\345\xbc\200\xe5\xa7\213\346\x97\xb6\xe9\x97\xb4\344\270\x8d\350\203\275\345\234\250\x36\xe4\270\xaa\346\234\x88\xe5\220\x8e"]; goto yRxCa; hQj1O: $data["\x73\x68\x61\x72\145\137\x6d\145\144\151\x61\137\x69\144"] = $share_media_id; goto Etue_; LuoLa: $data["\x63\x72\145\x61\164\x65\137\164\x69\155\145"] = time(); goto HJGdh; hJuyV: $data["\143\x6f\x76\145\x72\x5f\155\x65\x64\x69\141\x5f\x69\144"] = $cover_media_id; goto hdJkO; CL7za: $this->assign("\x6e\x6f\167", date("\131\x2d\155\x2d\144\x20\110\72\x69\72\x73")); goto EAzOJ; Bzv8L: $data["\x72\x6f\157\x6d\151\x64"] = $result["\162\x6f\157\x6d\151\x64"]; goto v5lFz; wcU2r: rNFnI: goto Hh9rc; ynM3Y: exit(json_encode($result)); goto kNx_F; I0OWo: $rs = ["\143\157\x64\145" => 0, "\x6d\x73\147" => "\345\274\x80\xe6\222\xad\346\x97\xb6\351\x97\264\345\222\214\347\xbb\x93\346\x9d\237\xe6\x97\266\351\227\264\351\227\xb4\xe9\232\x94\344\xb8\215\345\xbe\227\xe7\237\xad\344\xba\x8e\x33\60\345\x88\206\xe9\222\x9f\357\274\x8c\344\270\x8d\345\276\x97\xe8\xb6\205\xe8\277\x87\61\62\xe5\xb0\217\346\227\266"]; goto oVtDM; hdJkO: $start_time = strtotime($data["\x73\x74\x61\x72\x74\137\164\151\155\145"]); goto wI5vg; yRxCa: exit(json_encode($rs)); goto q0vpS; teaen: $rs = ["\x63\157\144\145" => 1, "\x6d\163\147" => '']; goto weyZG; zXVo5: if (!($result["\x63\x6f\x64\x65"] == 0)) { goto OCbzV; } goto ynM3Y; dUJfy: $data["\145\x6e\x64\x5f\x74\x69\155\145"] = $end_time; goto LuoLa; XsCvz: Cache::set("\x72\157\157\155\x5f\x65\170\160\x69\x72\x65\x5f\x74\151\x6d\145\x5f" . $this->bus_id, time() - 10); goto s12RP; s12RP: $livePlayerService->checkLivePlayerRoom($this->bus_id); goto sy2_9; iOchU: $cover_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $cover_img, "\151\155\141\x67\145", []); goto hJuyV; v5lFz: Db::name("\171\x62\155\x70\x5f\154\151\x76\x65\x5f\x70\x6c\x61\x79\145\x72\x5f\162\157\x6f\155\x5f\x69\x6e\146\x6f")->insert($data); goto XsCvz; AmALo: $wechatService = new WechatService(); goto XqCdH; w87DG: $anchor_list = Db::name("\171\x62\155\160\137\x6c\x69\166\x65\x5f\160\154\x61\x79\145\x72\137\141\156\x63\150\x6f\162")->field("\x69\x64\x2c\x75\163\x65\162\137\x69\144\54\141\x6e\143\150\157\x72\x5f\156\141\155\x65\54\x61\x6e\x63\150\157\x72\x5f\x77\145\143\150\141\164")->where(["\163\164\x61\164\x75\x73" => 1, "\x64\145\154\145\x74\145\137\x74\x69\x6d\x65" => 0, "\x6d\143\150\x5f\151\x64" => $this->bus_id])->order("\x69\x64\40\144\145\x73\143")->select(); goto CL7za; BRYoA: $livePlayerService = new LivePlayerService(); goto Hd2bF; sy2_9: exit(json_encode($rs)); goto J8jf4; AKQcy: return view(); goto JU1n6; EMN1M: $now_time = time(); goto uTejW; J8jf4: eFKxW: goto w87DG; HJGdh: $result = $livePlayerService->addLivePlayerRoom($data); goto zXVo5; q0vpS: Rw0y9: goto wG8Bq; oVtDM: exit(json_encode($rs)); goto wcU2r; wG8Bq: if (!($start_time + 60 * 30 > $end_time || $start_time + 60 * 60 * 12 < $end_time)) { goto rNFnI; } goto I0OWo; JU1n6: } public function goods() { goto vgvHc; VBzdx: $querys = urlQueryToArr(); goto q5XuS; XiBax: $this->assign("\154\x69\163\x74", $list); goto HE30_; fvOXB: $this->assign("\x73\x77\x69\164\143\x68", $switch); goto iMrC3; Fj1U8: e2PzV: goto n_kNq; T6KDw: $conf_info = Db::name("\171\x62\155\160\137\143\157\x6e\146\151\x67")->field("\x76\141\x6c\x75\145")->where(["\x6d\x63\x68\137\x69\x64" => $this->bus_id, "\153\145\x79" => "\114\x49\126\x45\137\x53\127\x49\x54\103\110"])->find(); goto dj1jl; iMrC3: return view(); goto Fiuz1; QUiZu: $condition["\x6d\x63\150\x5f\x69\144"] = $this->bus_id; goto TAJNu; TAJNu: $condition["\x64\145\154\x65\x74\145\x5f\x74\x69\155\145"] = 0; goto VBzdx; yhA3g: $livePlayerService->checkLivePlayerGoods($this->bus_id, 1); goto b3vBs; OSYkE: $switch = isset($value["\x73\x77\x69\164\x63\150"]) ? $value["\x73\x77\x69\164\x63\150"] : 0; goto xkS9a; dV_XX: $data = ["\155\143\x68\x5f\151\x64" => $this->bus_id, "\153\145\171" => "\114\111\126\x45\x5f\x53\x57\111\124\103\110", "\x76\x61\154\165\145" => json_encode(["\x73\167\151\x74\143\x68" => 0]), "\x69\x6e\146\157" => "\347\233\264\xe6\x92\xad\xe5\274\x80\345\x85\xb3"]; goto pYViv; YNOEz: $livePlayerService->checkLivePlayerGoods($this->bus_id); goto yhA3g; tMBX4: goto gMtwG; goto Fj1U8; d7UK1: $page = $list->render(); goto XiBax; vgvHc: $livePlayerService = new LivePlayerService(); goto YNOEz; b3vBs: $livePlayerService->checkLivePlayerGoods($this->bus_id, 2); goto QUiZu; HE30_: $this->assign("\x70\x61\x67\x65", $page); goto T6KDw; q5XuS: $list = Db::name("\x79\142\x6d\160\x5f\x6c\x69\166\145\137\x70\x6c\x61\171\145\x72\137\x67\157\x6f\x64\x73")->where($condition)->order("\x67\x6f\x6f\144\163\x5f\151\144\x20\x64\145\163\x63")->paginate(10, false, $config = ["\161\x75\145\x72\171" => ["\x73" => $querys["\163"]]])->each(function ($item, $key) use($livePlayerService) { $item["\x61\x75\x64\151\x74\x5f\x73\164\141\x74\165\x73\137\164\170\x74"] = $livePlayerService->audit_status_txt[$item["\141\165\144\x69\x74\x5f\x73\x74\x61\x74\165\x73"]]; return $item; }); goto d7UK1; dj1jl: $switch = 0; goto kbd_N; pYViv: Db::name("\x79\142\x6d\160\137\143\157\x6e\146\x69\x67")->insert($data); goto tMBX4; xkS9a: gMtwG: goto fvOXB; kbd_N: if (!empty($conf_info["\166\141\154\165\x65"])) { goto e2PzV; } goto dV_XX; n_kNq: $value = json_decode($conf_info["\x76\141\x6c\165\145"], true); goto OSYkE; Fiuz1: } public function add_goods() { goto Ls_hm; VF3yD: $data["\143\157\x76\x65\162\137\x6d\145\x64\x69\141\137\x69\144"] = $cover_media_id; goto wZ8ON; BaHi8: $data["\141\x75\144\x69\x74\x5f\x69\x64"] = $result["\x61\x75\x64\x69\164\137\x69\144"]; goto raPyG; fFTwO: $data["\x63\x72\x65\x61\x74\x65\x5f\x74\151\155\x65"] = time(); goto OeVz2; TPmro: rgyCH: goto lym8w; gnzME: if (!($result["\x63\x6f\144\145"] == 0)) { goto yLOy2; } goto cX4MW; mFESL: $data = request()->param(); goto Ztakl; K3MHB: $rs = ["\143\x6f\x64\x65" => 1, "\155\163\x67" => '']; goto ugGWn; serXO: $cover_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $cover_img_url, "\x69\155\x61\147\145", []); goto VF3yD; FhrzK: $wechatService = new WechatService(); goto rkiKB; lym8w: return view(); goto psN0_; YhFQ2: $result = $livePlayerService->addLivePlayerGoods($data); goto gnzME; cX4MW: $rs = ["\143\157\x64\x65" => 0, "\155\x73\147" => $result["\x6d\163\x67"]]; goto hGfNv; rkiKB: $cover_img_url = $data["\143\157\x76\x65\x72\137\x69\x6d\x67\137\x75\162\x6c"]; goto serXO; OeVz2: $data["\x67\157\x6f\x64\x73\x5f\x69\x64"] = $result["\147\157\157\144\163\x5f\x69\x64"]; goto BaHi8; wZ8ON: $livePlayerService = new LivePlayerService(); goto YhFQ2; Ls_hm: if (!(request()->isAjax() && request()->isPost())) { goto rgyCH; } goto mFESL; Ztakl: $data["\x6d\x63\150\137\151\144"] = $this->bus_id; goto FhrzK; raPyG: Db::name("\x79\x62\x6d\x70\137\x6c\x69\166\x65\x5f\x70\154\x61\171\x65\162\x5f\x67\x6f\x6f\144\x73\137\151\x6e\146\x6f")->insert($data); goto K3MHB; hGfNv: exit(json_encode($rs)); goto IGDgv; IGDgv: yLOy2: goto fFTwO; ugGWn: exit(json_encode($rs, true)); goto TPmro; psN0_: } public function edit_goods() { goto GsSg3; Lnp5C: $cover_media_id = $live_player_goods_info["\143\x6f\x76\x65\x72\x5f\x6d\145\x64\x69\x61\x5f\x69\144"]; goto NzQR6; un4qF: $data["\x63\157\166\145\x72\137\x6d\145\x64\x69\141\x5f\151\x64"] = $cover_media_id; goto oJCQ8; a5wC2: exit(json_encode($rs)); goto gxaGI; Hm2R9: if ($cover_img_url != $live_player_goods_info["\x63\157\x76\145\162\x5f\x69\x6d\x67\137\x75\x72\154"]) { goto QQvKT; } goto Lnp5C; ndNjE: $result = $livePlayerService->updLivePlayerGoods($data, $live_player_goods["\141\x75\144\151\164\137\163\164\x61\x74\165\x73"]); goto Wm_DJ; GsSg3: $goods_id = request()->param("\147\x6f\x6f\144\163\x5f\x69\x64"); goto zSV0N; wliyB: XDOUV: goto j83_R; SVWCo: goto yYLJF; goto ERbn9; gxaGI: iKcXu: goto HrgAh; Wm_DJ: if (!($result["\x63\x6f\x64\x65"] == 0)) { goto XDOUV; } goto oBTEn; G6NBW: if ($live_player_goods["\x61\x75\144\x69\164\x5f\x73\164\141\x74\x75\163"] == 0) { goto QasZN; } goto a0x29; DRXTp: $livePlayerService = new LivePlayerService(); goto ndNjE; oJCQ8: yYLJF: goto VmVpm; zSV0N: $live_player_goods_info = Db::name("\171\x62\x6d\160\x5f\x6c\151\x76\x65\x5f\x70\x6c\x61\x79\145\162\x5f\x67\x6f\157\144\x73\137\x69\x6e\x66\x6f")->field("\x63\x6f\166\145\162\137\x69\155\x67\137\165\x72\154\54\143\157\x76\x65\162\x5f\x6d\145\144\x69\x61\x5f\151\144")->where("\x67\x6f\157\x64\163\137\x69\x64", $goods_id)->where("\x6d\143\x68\x5f\x69\x64", $this->bus_id)->find(); goto Nydzl; a0x29: unset($data["\156\141\x6d\145"], $data["\143\157\166\x65\x72\x5f\151\155\147\137\165\162\154"], $data["\165\x72\154"]); goto SVWCo; j83_R: $data["\165\x70\x64\x61\164\x65\137\164\151\155\x65"] = time(); goto ZJbBV; f4y5R: unset($data["\x63\x6f\166\145\x72\x5f\x6d\x65\x64\x69\141\x5f\x69\x64"]); goto SV7sE; SV7sE: Db::name("\x79\142\x6d\160\x5f\x6c\x69\166\145\x5f\x70\154\x61\171\x65\x72\137\147\x6f\x6f\x64\163")->where("\x67\x6f\157\144\x73\x5f\x69\144", $goods_id)->where("\x6d\143\150\x5f\x69\x64", $this->bus_id)->update($data); goto a5wC2; oEcDy: $data["\x6d\x63\150\137\151\144"] = $this->bus_id; goto G6NBW; ZJbBV: Db::name("\171\142\x6d\160\x5f\154\151\x76\145\137\160\154\141\x79\145\x72\137\147\x6f\x6f\x64\163\137\x69\156\x66\157")->where("\x67\157\x6f\144\163\137\x69\144", $goods_id)->where("\x6d\x63\150\x5f\151\144", $this->bus_id)->update($data); goto f4y5R; vkv7m: $this->assign("\x67\157\157\x64\x73", $live_player_goods); goto WaSLj; iQG0K: ZMWYl: goto un4qF; Nydzl: $live_player_goods = Db::name("\171\x62\x6d\x70\137\154\151\166\x65\x5f\x70\154\141\171\x65\x72\137\147\157\157\144\163")->where("\x67\x6f\x6f\x64\x73\137\151\x64", $goods_id)->where("\155\143\x68\137\x69\144", $this->bus_id)->find(); goto GHkpu; f1_Ex: QQvKT: goto nIdie; VmVpm: $data["\x67\x6f\x6f\144\x73\137\151\144"] = $live_player_goods["\x67\157\157\x64\163\x5f\151\x64"]; goto DRXTp; HrgAh: $this->assign("\151\156\146\x6f", $live_player_goods_info); goto vkv7m; nIdie: $cover_media_id = $wechatService->uploadMedia($this->bus_id, 2, 0, $cover_img_url, "\151\155\x61\x67\145", []); goto iQG0K; KX9Q6: $rs = ["\143\157\x64\145" => 1, "\x6d\163\147" => '']; goto CRxrU; xciNH: $wechatService = new WechatService(); goto eeeUu; oBTEn: exit(json_encode($result)); goto wliyB; WaSLj: return view(); goto IPZAe; ERbn9: QasZN: goto xciNH; NzQR6: goto ZMWYl; goto f1_Ex; CRxrU: $data = request()->param("\147\x6f\157\144\x73\137\151\x6e\x66\157\x2f\141"); goto oEcDy; eeeUu: $cover_img_url = $data["\x63\157\x76\x65\x72\x5f\151\x6d\147\x5f\x75\x72\154"]; goto Hm2R9; GHkpu: if (!(request()->isAjax() && request()->isPost())) { goto iKcXu; } goto KX9Q6; IPZAe: } public function del_goods() { goto p23kv; bQUys: if (!($result["\143\157\144\145"] == 0)) { goto rG3n7; } goto uJp6R; maQuJ: $goods_id = request()->param("\x67\x6f\x6f\x64\163\x5f\x69\x64"); goto oLiSV; GKgzQ: $result = $livePlayerService->delLivePlayerGoods($this->bus_id, $goods_id); goto bQUys; uJp6R: exit(json_encode($result)); goto mhoBy; oLiSV: $livePlayerService = new LivePlayerService(); goto GKgzQ; p23kv: if (!(request()->isAjax() && request()->isPost())) { goto F1Dja; } goto maQuJ; mhoBy: rG3n7: goto azJiE; Erecc: $rs = ["\143\x6f\x64\145" => $res, "\x6d\x73\147" => '']; goto lRD8D; lRD8D: exit(json_encode($rs, true)); goto AATbz; AATbz: F1Dja: goto CCh_J; azJiE: $res = Db::name("\171\142\x6d\x70\x5f\154\x69\x76\145\x5f\160\154\141\x79\145\x72\x5f\x67\157\157\x64\x73")->where(["\155\x63\x68\x5f\151\x64" => $this->bus_id, "\147\x6f\x6f\144\x73\x5f\x69\144" => $goods_id])->delete(); goto Erecc; CCh_J: } public function resetAudit() { goto AiNeV; xu17k: TgiM0: goto k_aMM; YzAI5: $rs = ["\x63\157\x64\x65" => $res]; goto S_UHb; k_aMM: $res = Db::name("\171\142\x6d\x70\x5f\154\x69\x76\145\137\160\154\141\x79\145\x72\x5f\x67\x6f\157\144\x73")->where(["\155\143\150\137\x69\144" => $this->bus_id, "\147\157\157\x64\x73\x5f\x69\x64" => $goods_id])->update(["\165\x70\144\x61\164\145\137\164\x69\x6d\x65" => time(), "\141\x75\144\x69\164\x5f\x73\164\141\x74\165\163" => 0]); goto YzAI5; QfL0u: $livePlayerService = new LivePlayerService(); goto cnTMD; CJWgq: if (!($result["\143\157\144\x65"] == 0)) { goto TgiM0; } goto F8Xbd; QlQyG: $goods_id = request()->param("\x67\x6f\157\144\163\137\x69\x64"); goto nXWJv; zferE: BUVdt: goto sKUcS; F8Xbd: exit(json_encode($result)); goto xu17k; cnTMD: $result = $livePlayerService->resetLivePlayerGoodsAudit($this->bus_id, $goods_id, $audit_id); goto CJWgq; S_UHb: exit(json_encode($rs, true)); goto zferE; nXWJv: $goods_info = Db::name("\x79\x62\155\160\137\x6c\x69\166\145\137\160\154\141\x79\145\x72\137\x67\157\x6f\x64\x73\x5f\151\x6e\146\157")->field("\141\165\x64\x69\x74\137\151\x64")->where(["\155\x63\150\x5f\x69\144" => $this->bus_id, "\x67\x6f\157\x64\x73\x5f\151\x64" => $goods_id])->find(); goto oELVY; oELVY: $audit_id = $goods_info ? $goods_info["\x61\x75\x64\151\164\137\x69\x64"] : 0; goto QfL0u; AiNeV: if (!(request()->isAjax() && request()->isPost())) { goto BUVdt; } goto QlQyG; sKUcS: } public function submitAudit() { goto DscQ0; JDSBs: exit(json_encode($rs, true)); goto tX6vZ; TFH71: $result = $livePlayerService->submitLivePlayerGoodsAudit($this->bus_id, $goods_id); goto NSLrk; gfVhE: $goods_id = request()->param("\147\157\x6f\144\x73\x5f\151\144"); goto E1Yaa; tX6vZ: AbsoA: goto AjrBr; NSLrk: if (!($result["\x63\x6f\144\145"] == 0)) { goto Rqswx; } goto nWn8d; E1Yaa: $livePlayerService = new LivePlayerService(); goto TFH71; DscQ0: if (!(request()->isAjax() && request()->isPost())) { goto AbsoA; } goto gfVhE; Mc_Zz: $rs = ["\x63\157\144\145" => $res]; goto JDSBs; uMlM3: Rqswx: goto s1_ze; nWn8d: exit(json_encode($result)); goto uMlM3; sMF7S: Db::name("\171\142\x6d\160\137\154\151\166\x65\x5f\x70\154\141\x79\x65\162\x5f\147\x6f\157\x64\163\x5f\x69\x6e\146\x6f")->where(["\x6d\x63\x68\137\x69\x64" => $this->bus_id, "\x67\157\x6f\x64\x73\137\151\x64" => $goods_id])->update(["\x75\160\x64\141\x74\x65\137\x74\x69\155\145" => time(), "\x61\165\144\x69\x74\137\151\x64" => $result["\x61\165\x64\x69\x74\137\x69\144"]]); goto Mc_Zz; s1_ze: $res = Db::name("\x79\x62\x6d\160\137\x6c\x69\x76\145\137\x70\x6c\x61\171\x65\162\x5f\x67\157\x6f\x64\x73")->where(["\155\143\x68\x5f\x69\x64" => $this->bus_id, "\x67\157\157\144\163\x5f\151\144" => $goods_id])->update(["\165\160\x64\x61\x74\x65\x5f\x74\151\155\x65" => time(), "\x61\165\x64\x69\x74\137\151\144" => $result["\141\x75\x64\151\x74\x5f\151\x64"], "\141\165\x64\151\x74\x5f\163\x74\141\164\165\x73" => 1]); goto sMF7S; AjrBr: } public function updLivePlayerGoodsData() { goto cWimr; fKGdS: $livePlayerService->checkLivePlayerGoods($this->bus_id, 2); goto RvF2J; bVgds: $livePlayerService->checkLivePlayerGoods($this->bus_id); goto yBkTZ; RQpMO: Cache::set("\147\157\x6f\144\x73\137\x65\x78\160\151\x72\145\x5f\164\x69\155\145\x5f" . $this->bus_id, time() - 10); goto ICP9x; OsJfZ: exit(json_encode($rs, true)); goto oCgPd; RvF2J: $rs = ["\143\157\144\x65" => 1]; goto OsJfZ; cWimr: $livePlayerService = new LivePlayerService(); goto iCl_M; CPJwt: $livePlayerService->checkLivePlayerGoods($this->bus_id, 1); goto RQpMO; yBkTZ: Cache::set("\147\x6f\x6f\144\163\x5f\x65\170\160\151\x72\145\137\x74\x69\x6d\145\137" . $this->bus_id, time() - 10); goto CPJwt; ICP9x: Cache::set("\x67\157\157\x64\x73\x5f\x73\x74\x61\x74\165\x73\x5f\145\170\x70\x69\x72\x65\137\x74\151\155\145\x5f" . $this->bus_id, time() - 10); goto fKGdS; iCl_M: Cache::set("\147\157\157\x64\x73\137\145\x78\160\151\162\145\x5f\x74\x69\x6d\145\137" . $this->bus_id, time() - 10); goto bVgds; oCgPd: } public function setting() { goto LaZrc; Hd9H2: $switch = isset($value["\163\x77\x69\x74\143\150"]) ? $value["\163\167\151\x74\x63\x68"] : 0; goto KnXUF; ZmJh5: $conf_info = Db::name("\171\x62\155\x70\x5f\x63\x6f\156\146\151\x67")->field("\x76\141\x6c\165\x65")->where(["\x6d\143\x68\x5f\x69\x64" => $this->bus_id, "\153\x65\x79" => "\x4c\111\126\x45\x5f\x53\x57\x49\x54\x43\110"])->find(); goto L_rPJ; y__RN: $data["\165\x70\x64\141\x74\x65\x5f\x74\x69\x6d\x65"] = time(); goto A5PCX; EiR1z: $id = Db::name("\171\x62\155\160\x5f\x6c\151\x76\x65\137\160\154\141\x79\x65\x72\x5f\x73\x65\x74\164\x69\x6e\x67")->insertGetId($data); goto xrY7p; RIyu8: $data = ["\155\x63\150\x5f\x69\x64" => $this->bus_id, "\x63\x72\145\x61\164\x65\x5f\164\x69\x6d\145" => time()]; goto EiR1z; m6nNK: goto ObssV; goto wmN5w; OrnHe: $rs = ["\x63\157\x64\x65" => $res]; goto cTgZe; CYClV: $value = json_decode($conf_info["\x76\141\x6c\165\x65"], true); goto Hd9H2; wmN5w: UnHRW: goto CYClV; KnXUF: ObssV: goto Y6b3G; FFx6x: return view(); goto KIAOR; L_rPJ: $switch = 0; goto jlV7y; KxP7d: IU_0E: goto wBNLq; rInoy: mZYxP: goto xqmFf; WJyFN: $data = ["\155\143\150\137\x69\x64" => $this->bus_id, "\153\145\171" => "\x4c\111\126\x45\x5f\123\127\111\124\103\110", "\x76\141\154\x75\x65" => json_encode(["\x73\167\151\164\143\x68" => 0]), "\151\x6e\x66\157" => "\347\233\264\xe6\222\255\345\xbc\x80\345\205\xb3"]; goto ryzhL; A5PCX: $res = Db::name("\171\142\155\160\x5f\x6c\x69\x76\x65\137\x70\x6c\141\171\x65\x72\x5f\163\145\164\x74\151\x6e\x67")->where("\155\x63\x68\x5f\151\x64", $this->bus_id)->update($data); goto OrnHe; cTgZe: exit(json_encode($rs, true)); goto KxP7d; xqmFf: $this->assign("\151\x6e\146\157", $info); goto ZmJh5; l0dnb: if (!(request()->isAjax() && request()->isPost())) { goto IU_0E; } goto rtCPp; Y6b3G: $this->assign("\163\167\x69\164\143\x68", $switch); goto FFx6x; ryzhL: Db::name("\171\142\x6d\x70\137\143\157\x6e\146\151\147")->insert($data); goto m6nNK; jlV7y: if (!empty($conf_info["\166\141\154\x75\x65"])) { goto UnHRW; } goto WJyFN; LaZrc: $info = Db::name("\171\142\155\x70\x5f\x6c\x69\x76\x65\x5f\160\154\141\x79\145\162\137\163\x65\164\x74\x69\156\147")->where("\x6d\x63\150\137\x69\x64", $this->bus_id)->find(); goto l0dnb; rtCPp: $data = request()->param(); goto y__RN; wBNLq: if (!empty($info)) { goto mZYxP; } goto RIyu8; xrY7p: $info = Db::name("\171\x62\155\x70\x5f\x6c\x69\x76\145\137\x70\x6c\x61\171\145\x72\137\x73\145\x74\164\151\x6e\147")->where("\x69\144", $id)->find(); goto rInoy; KIAOR: } public function anchor() { goto QJwna; ozzne: $condition["\144\x65\154\x65\164\145\137\x74\151\155\145"] = 0; goto VmC7J; mj2LQ: $condition["\x61\156\x63\x68\157\162\x5f\156\x61\x6d\x65"] = ["\154\151\x6b\145", "\45" . $anchor_name . "\x25"]; goto CwlZO; MB66q: $data = ["\155\143\x68\x5f\x69\144" => $this->bus_id, "\x6b\x65\171" => "\114\x49\126\x45\137\x53\x57\x49\124\103\110", "\x76\x61\154\x75\145" => json_encode(["\163\x77\151\x74\x63\150" => 0]), "\151\x6e\x66\157" => "\xe7\x9b\264\346\222\xad\xe5\274\x80\345\205\xb3"]; goto L5Fq_; xt6iu: Mq6M8: goto Aff1R; Aff1R: $value = json_decode($conf_info["\166\x61\154\165\x65"], true); goto OyLNa; Eo6wk: return view(); goto r0A61; eH82R: $this->assign("\163\x77\151\x74\143\x68", $switch); goto Eo6wk; OyLNa: $switch = isset($value["\163\167\151\164\x63\x68"]) ? $value["\163\167\x69\x74\x63\x68"] : 0; goto PXZig; NfEuU: $livePlayerService = new LivePlayerService(); goto FL23d; qHcyG: $page = $list->render(); goto rI84p; XRT_M: $this->assign("\160\141\147\x65", $page); goto FD1g0; L5Fq_: Db::name("\171\x62\155\160\x5f\143\157\156\x66\151\147")->insert($data); goto Ak5sj; VmC7J: $querys = urlQueryToArr(); goto i8JmK; ntwGn: $list = Db::name("\171\x62\x6d\x70\137\x6c\x69\166\x65\x5f\x70\x6c\x61\x79\145\x72\x5f\141\x6e\x63\x68\x6f\162")->where($condition)->order("\151\144\40\144\145\163\x63")->paginate(10, false, $config = ["\x71\165\x65\162\x79" => ["\163" => $querys["\163"]]])->each(function ($item, $key) use($livePlayerService) { $item["\163\164\141\x74\165\x73\x5f\x74\x78\164"] = $livePlayerService->status_txt[$item["\163\164\141\x74\165\x73"]]; return $item; }); goto qHcyG; QJwna: $anchor_name = $this->request->param("\141\156\143\150\x6f\162\137\x6e\141\x6d\145", ''); goto NfEuU; rI84p: $this->assign("\154\x69\x73\164", $list); goto XRT_M; W9KGc: $switch = 0; goto Hs3tb; FD1g0: $conf_info = Db::name("\x79\142\x6d\x70\x5f\143\157\156\x66\x69\147")->field("\x76\141\x6c\x75\145")->where(["\155\143\150\x5f\x69\144" => $this->bus_id, "\x6b\145\171" => "\x4c\x49\126\x45\x5f\123\127\111\x54\x43\110"])->find(); goto W9KGc; PXZig: aRKc5: goto eH82R; CwlZO: iadwG: goto ntwGn; Ak5sj: goto aRKc5; goto xt6iu; i8JmK: if (!$anchor_name) { goto iadwG; } goto mj2LQ; Hs3tb: if (!empty($conf_info["\x76\x61\x6c\x75\145"])) { goto Mq6M8; } goto MB66q; FL23d: $condition["\x6d\x63\x68\137\x69\x64"] = $this->bus_id; goto ozzne; r0A61: } public function anchorAudit() { goto Rf5US; QE71P: $rs = ["\x63\x6f\144\145" => $res]; goto kv3tj; bCIkj: BsvCa: goto Thcmz; kv3tj: exit(json_encode($rs, true)); goto bCIkj; piMe0: $up_data = ["\x73\x74\x61\x74\x75\163" => $type == 1 ? 1 : 2, "\x72\x65\x6d\x61\162\x6b\x73" => $remarks, "\x75\x70\144\141\164\145\137\164\x69\155\x65" => time()]; goto UcESJ; KQyST: $type = request()->param("\164\171\x70\x65", 1); goto xCUKP; Rf5US: if (!(request()->isAjax() && request()->isPost())) { goto BsvCa; } goto Mdvdd; xCUKP: $remarks = request()->param("\162\145\155\x61\162\x6b\163", ''); goto piMe0; UcESJ: $res = Db::name("\171\142\155\x70\x5f\x6c\151\166\145\x5f\160\x6c\x61\171\145\162\x5f\x61\x6e\x63\x68\x6f\x72")->where("\x69\x64", $id)->update($up_data); goto QE71P; Mdvdd: $id = request()->param("\151\x64"); goto KQyST; Thcmz: } public function anchor_del() { goto S1f98; Uk_WL: zgTs8: goto D0UXH; FMXGx: exit(json_encode($rs, true)); goto Uk_WL; S1f98: if (!(request()->isAjax() && request()->isPost())) { goto zgTs8; } goto p0STU; p0STU: $id = request()->param("\x69\144"); goto deSxn; deSxn: $res = Db::name("\x79\142\155\160\x5f\154\151\x76\x65\x5f\160\x6c\x61\171\145\x72\x5f\141\156\143\150\157\x72")->where(["\151\144" => $id])->update(["\x64\x65\154\145\x74\x65\137\164\151\155\145" => time(), "\165\160\144\x61\164\x65\137\164\x69\155\x65" => time()]); goto DmGj6; DmGj6: $rs = ["\x63\157\144\145" => $res]; goto FMXGx; D0UXH: } }

Function Calls

None

Variables

None

Stats

MD5 fbde90d1b0342e7a65ad55cf7b5350b5
Eval Count 0
Decode Time 107 ms