123 |
- <?php
- namespace app\service\api; use app\service\ConfServiceFacade; use laytp\traits\Error; use think\facade\Cache; use think\facade\Config; use think\facade\Request; class Ins { use Error; protected $client; protected $key; public function __construct() { goto akcS5; ZWL3U: $this->setError("\xe6\x8e\xa5\xe5\x8f\xa3\xe5\x8f\202\346\x95\260\346\234\xaa\346\255\xa3\xe7\xa1\xae\351\x85\215\347\xbd\256"); goto OMkRW; tCgPZ: if ($this->key) { goto maPVj; } goto ZWL3U; lFl32: $this->sk = $conf["\151\156\163\x5f\141\160\151\137\x73\x6b"]; goto tCgPZ; OMkRW: maPVj: goto StbBZ; SNAFY: $this->key = $conf["\x69\x6e\x73\x5f\x61\160\x69\137\x6b\x65\x79"]; goto lFl32; akcS5: $conf = ConfServiceFacade::groupGet("\x73\x79\x73\x74\145\x6d\56\x61\x69"); goto SNAFY; StbBZ: } public function chatgpt4($post = array()) { goto ozWke; Ud8yq: $post["\x6b\x65\171"] = $this->key; goto H2owq; D2lGv: return $res; goto OEOow; ozWke: $API_URL = "\150\164\x74\160\x73\x3a\x2f\57\141\160\151\x2e\x77\x69\153\145\56\x63\x63\x2f\141\160\x69\57\x73\x65\156\163\x65\141\151\57\143\150\x61\164\x67\160\164\x34"; goto Ud8yq; H2owq: $res = $this->send($API_URL, $post, "\107\105\124", true, $this->sk); goto D2lGv; OEOow: } public function gpt4($post = array()) { goto ydydy; fhZIQ: $post["\x6b\145\171"] = $this->key; goto alAmA; yc3Yt: return $res; goto XRMV3; alAmA: $res = $this->send($API_URL, $post, "\107\105\124", true, $this->sk); goto yc3Yt; ydydy: $API_URL = "\150\x74\x74\160\163\x3a\57\57\141\160\x69\56\x77\151\153\x65\x2e\143\x63\57\141\160\151\x2f\147\x70\x74\x34\x2f\x73\x65\164"; goto fhZIQ; XRMV3: } public function getproxy($type) { goto E_R8q; lJ1gU: return $res; goto CZspa; eqNsn: $post["\164\x79\x70\145"] = $type; goto Ee_Jy; E_R8q: $API_URL = "\x68\164\164\160\x73\x3a\57\x2f\x61\x70\151\56\167\x69\153\x65\x2e\x63\143\x2f\141\x70\151\57\147\x70\164\x2f\x67\145\164\160\162\157\x78\x79"; goto I_QYa; Ee_Jy: $res = $this->send($API_URL, $post, "\107\105\x54", true, $this->sk); goto lJ1gU; I_QYa: $post["\x6b\x65\171"] = $this->key; goto eqNsn; CZspa: } public function sd($post = array()) { goto e7g4R; zQNSN: $res = $this->send($API_URL, $post, "\120\x4f\123\x54", true, $this->sk); goto qIXGY; uygSZ: $notify = IS_R == 1 ? request()->domain() . SURL . "\57\141\160\x69\56\x67\x61\x6c\154\x65\x72\x79\x2f\156\157\x74\151\x66\x79" : request()->domain() . SURL . "\x2f\151\x6e\144\145\x78\x2e\x70\x68\160\x2f\x61\160\151\56\x67\141\x6c\x6c\145\x72\171\x2f\x6e\157\164\151\146\x79\x3f\165\165\x69\144\x3d" . $post["\x75\165\151\x64"]; goto eG1la; qIXGY: return $res; goto hklBk; eG1la: $post["\167\x65\142\x68\157\x6f\153"] = $notify; goto TD9y5; TD9y5: $post["\153\x65\171"] = $this->key; goto zQNSN; e7g4R: $API_URL = "\150\164\x74\160\163\x3a\57\57\141\x70\151\56\167\x69\153\145\56\143\143\x2f\141\160\x69\x2f\160\x61\x69\x6e\164\x69\156\x67\x2f\x73\x64"; goto uygSZ; hklBk: } public function opensd($post = array()) { goto J05Rg; J05Rg: $API_URL = "\x68\164\x74\160\x73\x3a\x2f\x2f\x61\x70\151\56\x77\x69\153\145\56\x63\143\x2f\141\x70\151\x2f\160\x61\151\156\x74\151\x6e\x67\57\x6f\160\145\156\163\x64"; goto duGgP; Sw3wZ: return $res; goto LDtJE; W2U3J: $res = $this->send($API_URL, $post, "\120\x4f\x53\124", true, $this->sk); goto Sw3wZ; duGgP: $post["\x6b\x65\171"] = $this->key; goto W2U3J; LDtJE: } public function opensdDetail($id) { goto lZBBQ; gC7M6: $post["\x69\144"] = $id; goto smFHp; lZBBQ: $API_URL = "\x68\x74\164\x70\163\72\57\57\x61\x70\151\56\x77\151\x6b\145\56\143\143\x2f\x61\160\x69\x2f\160\x61\151\156\164\x69\156\147\x2f\162\x65\x73\x75\154\164"; goto SGYzT; T28Z0: return $res; goto q6Svy; SGYzT: $post["\x6b\145\x79"] = $this->key; goto gC7M6; smFHp: $res = $this->send($API_URL, $post, "\x47\105\x54", true, $this->sk); goto T28Z0; q6Svy: } public function super_resolution($post = array()) { goto co0_3; GNhwN: $notify = IS_R == 1 ? request()->domain() . SURL . "\x2f\x61\x70\x69\56\x67\x61\154\x6c\x65\162\171\x2f\x6e\157\164\151\146\x79" : request()->domain() . SURL . "\57\x69\x6e\144\145\170\x2e\160\150\160\x2f\141\x70\151\x2e\x67\141\x6c\x6c\x65\162\x79\57\156\157\164\151\x66\x79\77\x75\165\151\x64\75" . $post["\165\165\x69\144"]; goto p2EkR; M1AYc: $post["\153\145\x79"] = $this->key; goto OiFhF; OnT3t: return $res; goto SA_He; p2EkR: $post["\167\x65\x62\x68\157\x6f\153"] = $notify; goto M1AYc; co0_3: $API_URL = "\x68\164\164\x70\163\72\x2f\x2f\x61\x70\x69\x2e\x77\x69\x6b\145\56\143\143\57\x61\160\151\x2f\160\141\151\x6e\x74\151\156\147\57\163\165\x70\x65\162\137\x72\145\x73\157\x6c\x75\164\151\x6f\156"; goto GNhwN; OiFhF: $res = $this->send($API_URL, $post, "\x47\x45\x54", true, $this->sk); goto OnT3t; SA_He: } public function model($engine = "\x73\x64") { goto ho02E; wYZl_: $post["\145\x6e\x67\151\156\145"] = $engine; goto qOtG4; ho02E: $API_URL = "\150\x74\x74\160\x73\72\x2f\57\141\x70\151\56\x77\x69\153\x65\x2e\x63\x63\57\141\160\151\x2f\x70\141\x69\156\164\x69\x6e\x67\x2f\155\157\144\x65\154"; goto I7Tng; qOtG4: $res = $this->send($API_URL, $post, "\x47\x45\x54", true, $this->sk); goto Ttwt0; I7Tng: $post["\x6b\x65\x79"] = $this->key; goto wYZl_; Ttwt0: return $res; goto nAZsq; nAZsq: } public function sd_result($id) { goto iL5DT; I8Rcj: return $res; goto EFYFK; lPcF1: $post["\x6b\145\x79"] = $this->key; goto KLBED; KLBED: $post["\x69\x64"] = $id; goto n9G5G; n9G5G: $res = $this->send($API_URL, $post, "\107\x45\124", true, $this->sk); goto I8Rcj; iL5DT: $API_URL = "\x68\164\164\x70\x73\72\x2f\57\141\160\151\56\x77\x69\x6b\x65\56\143\143\57\x61\160\x69\57\x70\141\151\156\x74\x69\x6e\147\57\163\144\137\162\145\163\165\x6c\164"; goto lPcF1; EFYFK: } public function mj($post = array()) { goto kB913; ChttY: $res = $this->send($API_URL, $post, "\x50\x4f\x53\124", true, $this->sk); goto TWgq2; TWgq2: return $res; goto IF2gL; fRs3F: $post["\153\x65\x79"] = $this->key; goto vy626; kB913: $API_URL = "\x68\164\x74\x70\x73\x3a\x2f\57\x61\160\x69\x2e\167\x69\x6b\145\56\143\143\x2f\x61\160\151\57\160\x61\151\x6e\164\151\x6e\x67\x2f\155\152"; goto LZqEm; vy626: $post["\143\141\x6c\154\x62\x61\143\153"] = $notify; goto ChttY; LZqEm: $notify = IS_R == 1 ? request()->domain() . SURL . "\57\141\x70\151\x2e\x67\x61\x6c\154\x65\x72\x79\57\x6d\152\116\x6f\164\151\x66\x79\x3f\165\165\151\x64\75" . $post["\x75\x75\151\x64"] : request()->domain() . SURL . "\x2f\x69\x6e\144\x65\170\x2e\160\150\x70\57\141\x70\x69\56\147\x61\154\x6c\x65\162\x79\57\x6d\152\116\x6f\x74\x69\146\x79\77\x75\165\x69\x64\x3d" . $post["\165\165\x69\144"]; goto fRs3F; IF2gL: } public function zsy($post = array()) { goto YiTA1; wmwTz: $post["\153\145\171"] = $this->key; goto JYSy3; YiTA1: $API_URL = "\150\164\164\x70\163\72\57\x2f\x61\x70\x69\x2e\x77\151\153\145\x2e\143\143\57\x61\160\151\x2f\x70\141\x69\156\164\x69\x6e\x67\57\x7a\x73\x79"; goto dF107; h1Xo7: $res = $this->send($API_URL, $post, "\120\x4f\123\x54", true, $this->sk); goto mR5Rz; dF107: $notify = IS_R == 1 ? request()->domain() . SURL . "\57\141\x70\151\x2e\x67\x61\x6c\154\x65\x72\x79\57\x6d\152\116\x6f\x74\x69\146\171\77\165\165\151\144\75" . $post["\x75\165\151\x64"] : request()->domain() . SURL . "\x2f\x69\156\x64\145\x78\x2e\160\150\160\57\141\x70\151\56\147\141\154\154\x65\x72\x79\57\155\x6a\116\157\164\x69\146\x79\x3f\165\165\x69\144\75" . $post["\x75\165\151\x64"]; goto wmwTz; JYSy3: $post["\x63\141\154\x6c\142\141\143\153"] = $notify; goto h1Xo7; mR5Rz: return $res; goto U1v5o; U1v5o: } public function getAccount() { goto RQmDh; RQmDh: $API_URL = "\x68\x74\x74\160\x73\72\57\x2f\141\x70\151\x2e\x77\x69\x6b\x65\x2e\143\143\57\141\160\x69\57\141\143\x63\157\x75\156\x74\57\x67\145\164"; goto T4MN2; T4MN2: $post["\153\x65\x79"] = $this->key; goto ix74S; ix74S: $res = $this->send($API_URL, $post, "\107\105\x54", true, $this->sk); goto FMMph; FMMph: return $res; goto K5pb8; K5pb8: } public static function send($API_URL, $get_post_data, $type, $ifsign, $sk) { goto Fa1kB; Fa1kB: $get_post_data = http_build_query($get_post_data); goto zVoPQ; a6rVa: return $res; goto KucF7; zVoPQ: if ($ifsign) { goto aYV0t; } goto EHbPy; Tb1HW: $res = self::send_curl($API_URL, $type, $get_post_data, $sign); goto rQS5V; F2tBc: $sign = md5($get_post_data . $sk); goto Tb1HW; EHbPy: $res = self::send_curl($API_URL, $type, $get_post_data, null); goto pjSvQ; vlMFE: aYV0t: goto F2tBc; rQS5V: WACWa: goto a6rVa; pjSvQ: goto WACWa; goto vlMFE; KucF7: } public static function send_curl($API_URL, $type, $get_post_data, $sign) { goto y4STI; Y7Tr9: curl_setopt($ch, CURLOPT_TIMEOUT, 300); goto jT5QP; sM_9c: JTZdB: goto DHccE; qwyyA: if ($type == "\x50\117\x53\124") { goto xVYLm; } goto g75ph; jT5QP: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); goto wlYJN; wlYJN: curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); goto TVIvV; VbFRP: curl_setopt($ch, CURLOPT_POST, true); goto yBTLD; mUQop: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); goto Y7Tr9; TVIvV: $resdata = curl_exec($ch); goto VoDKV; VoDKV: curl_close($ch); goto jp1a9; YiAeU: curl_setopt($ch, CURLOPT_HTTPHEADER, ["\163\x69\147\x6e\72" . $sign]); goto MIIOI; VNW0j: curl_setopt($ch, CURLOPT_URL, $API_URL); goto VbFRP; XVqZG: curl_setopt($ch, CURLOPT_REFERER, $API_URL); goto mUQop; MIIOI: jcVGH: goto XVqZG; ihYp1: goto JTZdB; goto RQlwb; jp1a9: return $resdata; goto xARyA; ocgN6: goto JTZdB; goto ukKE_; RQlwb: eTPvF: goto yP8io; yBTLD: curl_setopt($ch, CURLOPT_POSTFIELDS, $get_post_data); goto ihYp1; yP8io: curl_setopt($ch, CURLOPT_URL, $API_URL . "\x3f" . $get_post_data); goto sM_9c; y4STI: $ch = curl_init(); goto qwyyA; g75ph: if ($type == "\x47\x45\x54") { goto eTPvF; } goto ocgN6; DHccE: if (!$sign) { goto jcVGH; } goto YiAeU; ukKE_: xVYLm: goto VNW0j; xARyA: } public function decrypt($str, $key) { goto sdKbs; jUrqb: $i++; goto mx2f2; URWEG: return $tmp; goto EXnu6; sdKbs: $str = $this->bind_key(base64_decode($str), $key); goto bbN3O; urQQv: e4lfo: goto qh8qy; OwKMx: $tmp .= $str[$i] ^ $str[++$i]; goto Y3Y0s; VnsC5: $tmp = ''; goto JBt3H; mx2f2: goto e4lfo; goto O23Ed; Y3Y0s: o2M4N: goto jUrqb; qh8qy: if (!($i < $strLen)) { goto o3nw5; } goto OwKMx; O23Ed: o3nw5: goto URWEG; JBt3H: $i = 0; goto urQQv; bbN3O: $strLen = strlen($str); goto VnsC5; EXnu6: } public function bind_key($str, $key) { goto Gn8lK; aEgab: $j = $j == 32 ? 0 : $j; goto Zw3GQ; zuRkD: $j++; goto HIlYg; ZMChR: $j = 0; goto FlgIZ; aGmD6: if (!($i < $strLen)) { goto oAhpi; } goto aEgab; uhcXF: oAhpi: goto TAJnQ; TAJnQ: return $tmp; goto UFyT2; FlgIZ: DiSc5: goto aGmD6; DUmTe: tedSD: goto Mxs2a; Ae4Jl: $i = 0; goto ZMChR; Gn8lK: $encrypt_key = md5($key); goto zVz4y; HIlYg: goto DiSc5; goto uhcXF; Zw3GQ: $tmp .= $str[$i] ^ $encrypt_key[$j]; goto DUmTe; qga82: $strLen = strlen($str); goto Ae4Jl; Mxs2a: $i++; goto zuRkD; zVz4y: $tmp = ''; goto qga82; UFyT2: } }
- ?>
|