diff --git a/fqkk.js b/fqkk.js index 3801d7f..916c591 100644 --- a/fqkk.js +++ b/fqkk.js @@ -98,7 +98,7 @@ class UserInfo { await httpRequest('post', urlObject) if (!httpResult || httpResult.statusCode != 200) { this.flag = false; return; } let result = JSON.parse(httpResult.body); - let message=""; + let message = ""; if (!result) return //console.log(result) if (result.data) { @@ -426,7 +426,11 @@ async function resetStore (upuid) { var fqkkSettingStr = $.getdata("fqkkSetting"); var fqkkSetting = fqkkSettingStr ? JSON.parse(fqkkSettingStr) : {}; fqkkSetting.currKey = upuid; - fqkkSetting[upuid] = { fqkkWxParam: "", fqkkCookie: "", finish: false }; + if (!fqkkSetting[upuid]) { + qkkSetting[upuid] = { fqkkWxParam: "", fqkkCookie: "", finish: false }; + } + fqkkSetting[upuid].fqkkCookie = ""; + fqkkSetting[upuid].finish = false; $.setdata(JSON.stringify(fqkkSetting), "fqkkSetting"); } diff --git a/ttl2.js b/ttl2.js index cadda60..33dbe69 100644 --- a/ttl2.js +++ b/ttl2.js @@ -8,7 +8,7 @@ export ttldh='' 兑换类型,@分割 633=10元手机话费(仅电信用户 ========== [task_local] -0 8-20 * * * task ttl.js +0,20,30 8,14 * * * task ttl.js (日常跑一次就行,兑换时可以多跑几次,8-9点会签到分享,其他时间只兑换) */ -const x=j;(function(q,X){const I=j,o=q();while(!![]){try{const i=parseInt(I(0x1ec))/0x1*(parseInt(I(0x1cd))/0x2)+-parseInt(I(0x14a))/0x3*(-parseInt(I(0x188))/0x4)+parseInt(I(0x163))/0x5+-parseInt(I(0x1b7))/0x6*(parseInt(I(0x143))/0x7)+-parseInt(I(0x19d))/0x8+parseInt(I(0x15d))/0x9*(parseInt(I(0x154))/0xa)+-parseInt(I(0x18c))/0xb*(parseInt(I(0x1a5))/0xc);if(i===X)break;else o['push'](o['shift']());}catch(A){o['push'](o['shift']());}}}(y,0x21ef5));const $=new Env(x(0x13e));var request=require(x(0x1d5));const notify=$['isNode']()?require('./sendNotify'):'';let status;status=(status=$[x(0x174)](x(0x17a))||'1')>0x1?''+status:'';const hour=new Date(new Date()[x(0x1ac)]()+new Date()[x(0x1a0)]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[x(0x1b4)](),minute=new Date(new Date()[x(0x1ac)]()+new Date()[x(0x1a0)]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)['getMinutes']();let giftAmount,giftNames,giftPrice,date,ttlaccounts='',ttlaccountArr=[],ttldhs='',ttldhArr=[],ttlaccount=$[x(0x15c)]()?process[x(0x1dd)]['ttlaccount']?process[x(0x1dd)]['ttlaccount']:'':$[x(0x19b)](x(0x14f))?$['getdata'](x(0x14f)):'';const ttldh=$[x(0x15c)]()?process['env'][x(0x1c5)]?process[x(0x1dd)]['ttldh']:'':$[x(0x19b)](x(0x1c5))?$[x(0x19b)]('ttldh'):'';let stockPrice=0x0,stockAmount2,stockName='',message='',ttlhds='';const logs=0x0,host=x(0x137);var hours=new Date()['getHours'](),s=new Date()[x(0x192)](),timestamp=Math['round'](new Date()[x(0x1ac)]()/0x3e8)[x(0x1f2)]();function j(q,X){const o=y();return j=function(i,A){i=i-0x132;let v=o[i];return v;},j(q,X);}!(async()=>{const w=x;if(typeof $request!=='undefined'){}else{if(!await checkEnv())return;console[w(0x1a8)]('共'+ttlaccountArr[w(0x1dc)]+'个cookie'),giftAmount={},giftNames={},giftPrice={},await ttl_gift();for(let q=0x0;q0x7&&hour<0xa&&(await sign(),await $[w(0x161)](0x7d0),await blog()),await $['wait'](0x3e8),await my();}}})()[x(0x19e)](q=>$['logErr'](q))[x(0x1e3)](()=>$[x(0x1b9)]());async function checkEnv(){const F=x;if(ttlaccount)for(let q of ttlaccount[F(0x1a4)]('@')){if(q)ttlaccountArr['push'](q);}else return console[F(0x1a8)](F(0x1df)),![];if(ttldh)for(let X of ttldh[F(0x1a4)]('@')){if(X)ttldhArr['push'](X);}else return console[F(0x1a8)](F(0x179)),![];return!![];}function ttlck(){const H=x;if($request[H(0x180)][H(0x198)](H(0x1c3))>-0x1){const q=$request['body'][H(0x1d4)];if(q)$[H(0x16c)](q,H(0x173)+status);$['log'](q),$[H(0x186)]($[H(0x145)],'',H(0x13e)+(''+q)+H(0x1d7));}}function y(){const yr=['string','exec','setValueForKey','statusCode','A35D575F-C004-4717-AABC-ED9D1979C3FA','status','setdata','http://www.ttljf.com/ttl_site/chargeApi.do','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.14(0x18000e2f)\x20NetType/4G\x20Language/zh_CN','media-url','floor','body','\x20id:\x20','ttlhd','getval','stack',',\x20错误!','getMonth','get','未设置兑换商品代码:ttldh','ttlstatus','logSeparator','valueForKey','application/json,\x20text/plain,\x20*/*','then','open-url','url','积分达到兑换标准,尝试开始兑换','POST','user','cron','isNeedRewrite','msg','method=charge&userId=','5780VbrkTj','logErr','isArray','cookieJar','253Cjqegk','headers','&platform=android','lodash_get','getjson','\x20API请求失败,请检查网路重试','getMinutes','concat','\x20积分:','==============📣系统通知📣==============','mediaUrl','loaddata','indexOf','gzip,compress,br,deflate','startTime','getdata','resolve','1606872gZCArZ','catch','existsSync','getTimezoneOffset','\x20积分\x20','gifts','Content-Length','split','63708JPJQOa','\x0a签到任务:','getFullYear','log','setval','application/x-www-form-urlencoded','\x20结果:','getTime','write','lodash_set',',\x20积分:\u3000','map','replace','*/*','box.dat','getHours','stringify','&loginToken=','455418yexReP','&password=','done','call','openUrl','.$1','put','userName','push','parse','登录信息\x20','tough-cookie','user/api/my','object','ttldh','@chavy_boxjs_userCfgs.httpapi','isQuanX','ckjar','stockAmount','user/api/sign/today','http://','www.ttljf.com','14914alvamK','initGotEnv','join','isSurge','undefined','logs','readFileSync','token','request','setCookieSync','数据获取成功!','price','GET','timeout','code','length','env','post','未找到ttlaccount','userId','application/json','dataFile','finally','redirect','isMute',',\x20库存:\x20','/v1/scripting/evaluate',',\x20开始!','assign','XMLHttpRequest','isMuteLog','11nkFqVr','mobile','writedata','integral','reduce','read','toString','服务器访问数据为空,请检查自身设备网络情况','设置当天积分缓存成功!','data','\x20库存:','substr','fetch','giftId','0000','https://www.ttljf.com/ttl_chefHub/','toObj','http','cwd','设置兑换','message','got','太太乐','index','null','path','trim','14jhsLmb','getScript','name',')\x20\x0a【登录信息】\x20','opts','mthd=login&username=','http://www.ttljf.com/ttl_site/user.do','375Mxbpjc','Cookie','cktough','isLoon','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie','ttlaccount','Content-Type','getSeconds','giftName','Common/share/A35D575F-C004-4717-AABC-ED9D1979C3FA/blog','10RYxhJH','loginToken','set-cookie','test','writeFileSync','slice',',\x20结束!\x20🕛\x20','http://www.ttljf.com/ttl_site/giftApi.do?mthd=searchGift&giftCategoryId=7&pageNo=1&pageSize=8','isNode','834210EDFDJU','send','getDate','token:','wait','请求失败','1292135EdjGqC','blog','abs'];y=function(){return yr;};return y();}async function ttl_gift(){const n=x;let q=n(0x15b),X=populateUrlObject(q);await httpRequest(n(0x178),X);if(!httpResult||httpResult[n(0x169)]!=0xc8)return;let o=JSON['parse'](httpResult[n(0x171)]);if(!o)return;const i=o[n(0x1a2)];let A='';for(let v of i){const M=parseInt(v[n(0x1c9)]),W=v[n(0x152)],b=v[n(0x135)],R=parseInt(v[n(0x1d8)]);A+=W+n(0x172)+b+n(0x1e6)+M+n(0x1af)+R+'\x0a',giftAmount[b]=M,giftNames[b]=W,giftPrice[b]=R;}$['log'](''+A);}async function ttl_login(){const l=x;let q=l(0x149),X=l(0x148)+user+l(0x1b8)+pwd+l(0x18e),o=populateUrlObject(q,X);await httpRequest(l(0x1de),o);if(!httpResult||httpResult[l(0x169)]!=0xc8)return;let i=JSON[l(0x1c0)](httpResult['body']);if(!i)return;if(i[l(0x1db)]===l(0x136))$['token']=i['user'][l(0x155)],$[l(0x1e0)]=i['user'][l(0x1e0)],$[l(0x1be)]=i[l(0x183)][l(0x1be)],$['integral']=i[l(0x183)][l(0x1ef)],console[l(0x1a8)](l(0x160)+$[l(0x1d4)]+l(0x194)+$[l(0x1ef)]),$[l(0x16c)]($[l(0x1ef)],date+'_'+user),console[l(0x1a8)](l(0x1f4)),mobile=i[l(0x183)][l(0x1ed)],console[l(0x1a8)](l(0x1c1)+i['message']),message+='\x0a【账号】\x20'+$[l(0x1be)]+'('+mobile+l(0x146)+i[l(0x13c)]+'\x20\x0a【积分】\x20'+$[l(0x1ef)];else $[l(0x1a8)]('登录失败\x20:'+i[l(0x13c)]);}async function blog(){return new Promise(q=>{const u=j;body={'id':u(0x16a),'type':u(0x164)},request[u(0x1bd)](ttl(u(0x153),body),function(X,o,i){const h=u;try{X&&(console[h(0x1a8)](''+JSON[h(0x1b5)](err)),console['log']($[h(0x145)]+h(0x191)));data=JSON['parse'](i);if(data[h(0x1db)]==0x0)console[h(0x1a8)]('\x0a分享任务:'+data['message']);else data[h(0x1db)]!=0x0&&console[h(0x1a8)]('\x0a分享任务:'+data['message']);}catch(A){$['logErr'](A,resp);}finally{q(data);}});});}async function sign(){return new Promise(q=>{const C=j;request[C(0x1bd)](ttl(C(0x1ca),''),function(X,o,i){const K=C;try{X&&(console[K(0x1a8)](''+JSON[K(0x1b5)](err)),console[K(0x1a8)]($['name']+K(0x191)));data=JSON[K(0x1c0)](i);if(data[K(0x1db)]==0x0)console[K(0x1a8)](K(0x1a6)+data['message']);else data[K(0x1db)]!=0x0&&console[K(0x1a8)]('\x0a签到任务:'+data[K(0x13c)]);}catch(A){$[K(0x189)](A,resp);}finally{q(data);}});});}async function my(){const B=x;let q='https://www.ttljf.com/ttl_chefHub/user/api/my',X=populateUrlObject(q);await httpRequest(B(0x178),X);if(!httpResult||httpResult[B(0x169)]!=0xc8)return;let o=JSON[B(0x1c0)](httpResult[B(0x171)]);if(!o)return;if(o[B(0x1db)]==0x0){let i=o[B(0x1f5)][B(0x1ef)];console['log']('用户:'+o[B(0x1f5)][B(0x1be)]+B(0x1a1)+i);if(i>=stockPrice&&stockAmount2>0x0)console[B(0x1a8)](B(0x181)+stockName),await ttl_dh(),$[B(0x16c)]($['integral']-stockPrice,date+'_'+user);else console[B(0x1a8)](B(0x13b)+stockName+B(0x132)+stockAmount2);}}async function ttl_dh(){const T=x;let q=T(0x16d),X=T(0x187)+$[T(0x1e0)]+T(0x1b6)+$[T(0x1d4)]+'&mobile='+user+'&giftId='+giftId,o=populateUrlObject(q,X);await httpRequest(T(0x1de),o);if(!httpResult||httpResult[T(0x169)]!=0xc8)return;let i=JSON[T(0x1c0)](httpResult[T(0x171)]);if(!i)return;console[T(0x1a8)](''+JSON[T(0x1b5)](i));if(i['code']==0x0)console[T(0x1a8)]('兑换商品\x20'+stockName+'\x20兑换结果:'+i[T(0x13c)]+'🎉');else $['log']('【兑换商品】\x20'+stockName+'\x20:'+i[T(0x13c)]);if($[T(0x15c)]())await notify['sendNotify']($[T(0x145)],'兑换商品\x20'+stockName+T(0x1ab)+i[T(0x13c)]+'🎉');}function ttl(q,X){const d=x;return{'url':''+host+q,'body':''+X,'headers':{'Host':d(0x1cc),'Accept':d(0x17d),'content-type':'application/json','token':$[d(0x1d4)],'X-Requested-With':d(0x1ea),'Accept-Encoding':d(0x199),'User-Agent':d(0x16e),'Referer':'https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html'}};}function populateUrlObject(q,X=''){const S=x;let o=q[S(0x1b1)]('//','/')['split']('/')[0x1],i={'url':q,'headers':{'Host':o,'Accept':S(0x17d),'content-type':S(0x1e1),'token':$['token'],'X-Requested-With':S(0x1ea),'Accept-Encoding':'gzip,compress,br,deflate','User-Agent':S(0x16e),'Referer':'https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html'}};if(X)i['body']=X;return i;}async function httpRequest(q,X){return httpResult=null,new Promise(o=>{$[q](X,async(i,A,v)=>{const c=j;try{i?(console['log'](q+c(0x162)),console['log'](JSON['stringify'](i)),$[c(0x189)](i)):httpResult=A;}catch(M){$['logErr'](M,A);}finally{o();}});});}function SafeGet(q){const E=x;try{if(typeof JSON[E(0x1c0)](q)==E(0x1c4))return!![];else console[E(0x1a8)](q);}catch(X){return console[E(0x1a8)](X),console[E(0x1a8)](E(0x1f3)),![];}}function jsonParse(q){const P=x;if(typeof q==P(0x166))try{return JSON[P(0x1c0)](q);}catch(X){return console[P(0x1a8)](X),$[P(0x186)]($[P(0x145)],'',P(0x14e)),[];}}function Env(q,X){const m=x;class o{constructor(i){this['env']=i;}[m(0x15e)](i,A=m(0x1d9)){const D=m;i=D(0x166)==typeof i?{'url':i}:i;let v=this[D(0x178)];return D(0x182)===A&&(v=this[D(0x1de)]),new Promise((M,W)=>{const N=D;v[N(0x1ba)](this,i,(b,R,f)=>{b?W(b):M(R);});});}[m(0x178)](i){const g=m;return this[g(0x15e)]['call'](this[g(0x1dd)],i);}[m(0x1de)](i){const U=m;return this[U(0x15e)][U(0x1ba)](this[U(0x1dd)],i,U(0x182));}}return new class{constructor(i,A){const Q=m;this[Q(0x145)]=i,this[Q(0x139)]=new o(this),this['data']=null,this[Q(0x1e2)]=Q(0x1b3),this[Q(0x1d2)]=[],this['isMute']=!0x1,this[Q(0x185)]=!0x1,this[Q(0x17b)]='\x0a',this[Q(0x19a)]=new Date()[Q(0x1ac)](),Object['assign'](this,A),this[Q(0x1a8)]('','🔔'+this[Q(0x145)]+Q(0x1e8));}['isNode'](){const p=m;return p(0x1d1)!=typeof module&&!!module['exports'];}[m(0x1c7)](){const e=m;return e(0x1d1)!=typeof $task;}[m(0x1d0)](){const O=m;return O(0x1d1)!=typeof $httpClient&&O(0x1d1)==typeof $loon;}[m(0x14d)](){const z=m;return z(0x1d1)!=typeof $loon;}[m(0x138)](i,A=null){const G=m;try{return JSON[G(0x1c0)](i);}catch{return A;}}['toStr'](i,A=null){const V=m;try{return JSON[V(0x1b5)](i);}catch{return A;}}[m(0x190)](A,v){const t=m;let M=v;const W=this[t(0x19b)](A);if(W)try{M=JSON[t(0x1c0)](this[t(0x19b)](A));}catch{}return M;}['setjson'](i,A){const J=m;try{return this[J(0x16c)](JSON['stringify'](i),A);}catch{return!0x1;}}[m(0x144)](i){return new Promise(A=>{this['get']({'url':i},(v,M,W)=>A(W));});}['runScript'](i,A){const y0=m;return new Promise(v=>{const L=j;let M=this[L(0x19b)](L(0x1c6));M=M?M[L(0x1b1)](/\n/g,'')[L(0x142)]():M;let W=this[L(0x19b)]('@chavy_boxjs_userCfgs.httpapi_timeout');W=W?0x1*W:0x14,W=A&&A[L(0x1da)]?A[L(0x1da)]:W;const [b,R]=M[L(0x1a4)]('@'),f={'url':L(0x1cb)+R+L(0x1e7),'body':{'script_text':i,'mock_type':L(0x184),'timeout':W},'headers':{'X-Key':b,'Accept':L(0x1b2)}};this[L(0x1de)](f,(Z,Y,k)=>v(k));})[y0(0x19e)](v=>this[y0(0x189)](v));}[m(0x197)](){const y1=m;if(!this[y1(0x15c)]())return{};{this['fs']=this['fs']?this['fs']:require('fs'),this[y1(0x141)]=this[y1(0x141)]?this[y1(0x141)]:require(y1(0x141));const A=this['path'][y1(0x19c)](this[y1(0x1e2)]),v=this['path'][y1(0x19c)](process[y1(0x13a)](),this['dataFile']),M=this['fs'][y1(0x19f)](A),W=!M&&this['fs'][y1(0x19f)](v);if(!M&&!W)return{};{const b=M?A:v;try{return JSON['parse'](this['fs'][y1(0x1d3)](b));}catch(R){return{};}}}}[m(0x1ee)](){const y2=m;if(this['isNode']()){this['fs']=this['fs']?this['fs']:require('fs'),this['path']=this[y2(0x141)]?this['path']:require('path');const A=this[y2(0x141)][y2(0x19c)](this[y2(0x1e2)]),v=this[y2(0x141)]['resolve'](process[y2(0x13a)](),this[y2(0x1e2)]),M=this['fs'][y2(0x19f)](A),W=!M&&this['fs'][y2(0x19f)](v),b=JSON[y2(0x1b5)](this[y2(0x1f5)]);M?this['fs'][y2(0x158)](A,b):W?this['fs'][y2(0x158)](v,b):this['fs'][y2(0x158)](A,b);}}[m(0x18f)](A,v,M){const y3=m,W=v[y3(0x1b1)](/\[(\d+)\]/g,y3(0x1bc))[y3(0x1a4)]('.');let b=A;for(const R of W)if(b=Object(b)[R],void 0x0===b)return M;return b;}['lodash_set'](i,A,v){const y4=m;return Object(i)!==i?i:(Array[y4(0x18a)](A)||(A=A[y4(0x1f2)]()['match'](/[^.[\]]+/g)||[]),A[y4(0x159)](0x0,-0x1)[y4(0x1f0)]((M,W,b)=>Object(M[W])===M[W]?M[W]:M[W]=Math[y4(0x165)](A[b+0x1])>>0x0==+A[b+0x1]?[]:{},i)[A[A[y4(0x1dc)]-0x1]]=v,i);}[m(0x19b)](A){const y5=m;let v=this['getval'](A);if(/^@/[y5(0x157)](A)){const [,M,W]=/^@(.*?)\.(.*?)$/[y5(0x167)](A),b=M?this[y5(0x174)](M):'';if(b)try{const R=JSON[y5(0x1c0)](b);v=R?this['lodash_get'](R,W,''):v;}catch(f){v='';}}return v;}[m(0x16c)](A,v){const y6=m;let M=!0x1;if(/^@/[y6(0x157)](v)){const [,W,b]=/^@(.*?)\.(.*?)$/[y6(0x167)](v),R=this[y6(0x174)](W),f=W?y6(0x140)===R?null:R||'{}':'{}';try{const a=JSON[y6(0x1c0)](f);this[y6(0x1ae)](a,b,A),M=this[y6(0x1a9)](JSON[y6(0x1b5)](a),W);}catch(Z){const Y={};this[y6(0x1ae)](Y,b,A),M=this[y6(0x1a9)](JSON[y6(0x1b5)](Y),W);}}else M=this[y6(0x1a9)](A,v);return M;}[m(0x174)](i){const y7=m;return this[y7(0x1d0)]()||this[y7(0x14d)]()?$persistentStore[y7(0x1f1)](i):this[y7(0x1c7)]()?$prefs[y7(0x17c)](i):this[y7(0x15c)]()?(this[y7(0x1f5)]=this[y7(0x197)](),this[y7(0x1f5)][i]):this[y7(0x1f5)]&&this[y7(0x1f5)][i]||null;}[m(0x1a9)](i,A){const y8=m;return this[y8(0x1d0)]()||this['isLoon']()?$persistentStore[y8(0x1ad)](i,A):this[y8(0x1c7)]()?$prefs[y8(0x168)](i,A):this['isNode']()?(this[y8(0x1f5)]=this[y8(0x197)](),this[y8(0x1f5)][A]=i,this[y8(0x1ee)](),!0x0):this[y8(0x1f5)]&&this[y8(0x1f5)][A]||null;}[m(0x1ce)](i){const y9=m;this[y9(0x13d)]=this['got']?this[y9(0x13d)]:require(y9(0x13d)),this[y9(0x14c)]=this[y9(0x14c)]?this['cktough']:require(y9(0x1c2)),this[y9(0x1c8)]=this[y9(0x1c8)]?this[y9(0x1c8)]:new this['cktough']['CookieJar'](),i&&(i[y9(0x18d)]=i[y9(0x18d)]?i['headers']:{},void 0x0===i[y9(0x18d)][y9(0x14b)]&&void 0x0===i[y9(0x18b)]&&(i[y9(0x18b)]=this[y9(0x1c8)]));}['get'](i,A=()=>{}){const yy=m;i[yy(0x18d)]&&(delete i[yy(0x18d)][yy(0x150)],delete i[yy(0x18d)][yy(0x1a3)]),this['isSurge']()||this[yy(0x14d)]()?(this[yy(0x1d0)]()&&this[yy(0x185)]&&(i[yy(0x18d)]=i[yy(0x18d)]||{},Object[yy(0x1e9)](i[yy(0x18d)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[yy(0x178)](i,(v,M,W)=>{const yj=yy;!v&&M&&(M[yj(0x171)]=W,M['statusCode']=M[yj(0x16b)]),A(v,M,W);})):this[yy(0x1c7)]()?(this['isNeedRewrite']&&(i['opts']=i['opts']||{},Object[yy(0x1e9)](i[yy(0x147)],{'hints':!0x1})),$task[yy(0x134)](i)[yy(0x17e)](v=>{const {statusCode:M,statusCode:W,headers:b,body:R}=v;A(null,{'status':M,'statusCode':W,'headers':b,'body':R},R);},v=>A(v))):this['isNode']()&&(this[yy(0x1ce)](i),this['got'](i)['on'](yy(0x1e4),(v,M)=>{const yq=yy;try{if(v[yq(0x18d)]['set-cookie']){const W=v['headers'][yq(0x156)][yq(0x1b0)](this['cktough'][yq(0x14b)][yq(0x1c0)])['toString']();W&&this[yq(0x1c8)][yq(0x1d6)](W,null),M[yq(0x18b)]=this[yq(0x1c8)];}}catch(b){this['logErr'](b);}})[yy(0x17e)](v=>{const {statusCode:M,statusCode:W,headers:b,body:R}=v;A(null,{'status':M,'statusCode':W,'headers':b,'body':R},R);},v=>{const yX=yy,{message:M,response:W}=v;A(M,W,W&&W[yX(0x171)]);}));}[m(0x1de)](A,v=()=>{}){const yo=m;if(A[yo(0x171)]&&A[yo(0x18d)]&&!A[yo(0x18d)]['Content-Type']&&(A[yo(0x18d)][yo(0x150)]=yo(0x1aa)),A[yo(0x18d)]&&delete A[yo(0x18d)][yo(0x1a3)],this[yo(0x1d0)]()||this['isLoon']())this[yo(0x1d0)]()&&this['isNeedRewrite']&&(A[yo(0x18d)]=A[yo(0x18d)]||{},Object[yo(0x1e9)](A[yo(0x18d)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[yo(0x1de)](A,(M,W,b)=>{const yi=yo;!M&&W&&(W['body']=b,W[yi(0x169)]=W['status']),v(M,W,b);});else{if(this[yo(0x1c7)]())A['method']=yo(0x182),this[yo(0x185)]&&(A['opts']=A[yo(0x147)]||{},Object[yo(0x1e9)](A['opts'],{'hints':!0x1})),$task[yo(0x134)](A)[yo(0x17e)](M=>{const {statusCode:W,statusCode:b,headers:R,body:f}=M;v(null,{'status':W,'statusCode':b,'headers':R,'body':f},f);},M=>v(M));else{if(this[yo(0x15c)]()){this[yo(0x1ce)](A);const {url:M,...W}=A;this['got']['post'](M,W)[yo(0x17e)](b=>{const {statusCode:R,statusCode:f,headers:a,body:Z}=b;v(null,{'status':R,'statusCode':f,'headers':a,'body':Z},Z);},b=>{const yA=yo,{message:R,response:f}=b;v(R,f,f&&f[yA(0x171)]);});}}}}['time'](i){const yv=m;let A={'M+':new Date()[yv(0x177)]()+0x1,'d+':new Date()[yv(0x15f)](),'H+':new Date()['getHours'](),'m+':new Date()[yv(0x192)](),'s+':new Date()[yv(0x151)](),'q+':Math[yv(0x170)]((new Date()[yv(0x177)]()+0x3)/0x3),'S':new Date()['getMilliseconds']()};/(y+)/[yv(0x157)](i)&&(i=i['replace'](RegExp['$1'],(new Date()[yv(0x1a7)]()+'')[yv(0x133)](0x4-RegExp['$1']['length'])));for(let v in A)new RegExp('('+v+')')['test'](i)&&(i=i[yv(0x1b1)](RegExp['$1'],0x1==RegExp['$1']['length']?A[v]:('00'+A[v])[yv(0x133)]((''+A[v])[yv(0x1dc)])));return i;}[m(0x186)](A=q,v='',M='',W){const yW=m,b=R=>{const yM=j;if(!R)return R;if('string'==typeof R)return this[yM(0x14d)]()?R:this[yM(0x1c7)]()?{'open-url':R}:this[yM(0x1d0)]()?{'url':R}:void 0x0;if(yM(0x1c4)==typeof R){if(this[yM(0x14d)]()){let f=R[yM(0x1bb)]||R[yM(0x180)]||R[yM(0x17f)],a=R[yM(0x196)]||R[yM(0x16f)];return{'openUrl':f,'mediaUrl':a};}if(this[yM(0x1c7)]()){let Z=R[yM(0x17f)]||R[yM(0x180)]||R[yM(0x1bb)],Y=R[yM(0x16f)]||R[yM(0x196)];return{'open-url':Z,'media-url':Y};}if(this[yM(0x1d0)]()){let k=R['url']||R[yM(0x1bb)]||R['open-url'];return{'url':k};}}};if(this[yW(0x1e5)]||(this[yW(0x1d0)]()||this[yW(0x14d)]()?$notification[yW(0x1de)](A,v,M,b(W)):this[yW(0x1c7)]()&&$notify(A,v,M,b(W))),!this[yW(0x1eb)]){let R=['',yW(0x195)];R[yW(0x1bf)](A),v&&R['push'](v),M&&R[yW(0x1bf)](M),console[yW(0x1a8)](R[yW(0x1cf)]('\x0a')),this['logs']=this[yW(0x1d2)][yW(0x193)](R);}}[m(0x1a8)](...i){const yb=m;i[yb(0x1dc)]>0x0&&(this[yb(0x1d2)]=[...this[yb(0x1d2)],...i]),console[yb(0x1a8)](i['join'](this[yb(0x17b)]));}[m(0x189)](i,A){const yR=m,v=!this[yR(0x1d0)]()&&!this[yR(0x1c7)]()&&!this[yR(0x14d)]();v?this['log']('','❗️'+this[yR(0x145)]+yR(0x176),i[yR(0x175)]):this[yR(0x1a8)]('','❗️'+this[yR(0x145)]+',\x20错误!',i);}['wait'](i){return new Promise(A=>setTimeout(A,i));}[m(0x1b9)](i={}){const yf=m,A=new Date()['getTime'](),v=(A-this['startTime'])/0x3e8;this[yf(0x1a8)]('','🔔'+this[yf(0x145)]+yf(0x15a)+v+'\x20秒'),this[yf(0x1a8)](),(this[yf(0x1d0)]()||this[yf(0x1c7)]()||this[yf(0x14d)]())&&$done(i);}}(q,X);} \ No newline at end of file +const T=h;(function(G,c){const E=h,j=G();while(!![]){try{const Q=-parseInt(E(0x119))/0x1*(parseInt(E(0xb6))/0x2)+parseInt(E(0x11f))/0x3+-parseInt(E(0xec))/0x4+-parseInt(E(0x9d))/0x5*(parseInt(E(0xb3))/0x6)+parseInt(E(0xd5))/0x7+parseInt(E(0xad))/0x8*(parseInt(E(0x9a))/0x9)+parseInt(E(0x10d))/0xa;if(Q===c)break;else j['push'](j['shift']());}catch(z){j['push'](j['shift']());}}}(l,0x6f42d));const $=new Env(T(0xe9));var request=require('request');const notify=$[T(0xea)]()?require('./sendNotify'):'';let status;status=(status=$['getval'](T(0x8a))||'1')>0x1?''+status:'';const hour=new Date(new Date()[T(0x8e)]()+new Date()['getTimezoneOffset']()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)['getHours'](),minute=new Date(new Date()[T(0x8e)]()+new Date()[T(0xd1)]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[T(0x107)]();function h(G,c){const j=l();return h=function(Q,z){Q=Q-0x72;let J=j[Q];return J;},h(G,c);}function l(){const lt=[',\x20错误!','getTime','push','giftName','http://','\x20API请求失败,请检查网路重试','indexOf','==============📣系统通知📣==============','stack','setval','数据获取成功!','application/x-www-form-urlencoded','replace','9dvwiQI','write','stockAmount','65HAycFQ','gzip,compress,br,deflate','getval','logs','integral','ttlaccount','\x20兑换结果:','getMonth','headers','statusCode','user','sendNotify','userName','getdata','\x0a开始【太太乐','path','68024sYLcvJ','http://www.ttljf.com/ttl_site/giftApi.do?mthd=searchGift&giftCategoryId=7&pageNo=1&pageSize=8','&mobile=','isLoon','getHours','兑换商品\x20','230658eQpxCO','assign','设置兑换','9662WwvwvR','got','user/api/sign/today','isNeedRewrite','cron','tough-cookie','setdata','redirect','isMuteLog','GET','writedata','个cookie','readFileSync',',\x20开始!','split','trim','startTime','catch','application/json','exec','设置当天积分缓存成功!','Cookie','https://www.ttljf.com/ttl_chefHub/','\x20结果:','0000','message','登录失败\x20:','getTimezoneOffset','writeFileSync','resolve','http','4811933FYmuYY','登录信息\x20','string','dataFile','mediaUrl','\x20积分\x20','wait','ckjar','join','map',',\x20积分:\u3000','abs','read','index','\x0a【账号】\x20','&giftId=','lodash_set','Content-Length','status','https://www.ttljf.com/ttl_chefHub/user/api/my','太太乐','isNode','price','3276784WTHaVw','cwd','cookieJar','isSurge','getFullYear','media-url','application/json,\x20text/plain,\x20*/*','toObj','服务器访问数据为空,请检查自身设备网络情况','isArray','getSeconds','get','post','exports','gifts','Common/share/A35D575F-C004-4717-AABC-ED9D1979C3FA/blog','blog','body','http://www.ttljf.com/ttl_site/user.do','请求失败','initGotEnv','floor','http://www.ttljf.com/ttl_site/chargeApi.do','\x0a分享任务:','round','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.14(0x18000e2f)\x20NetType/4G\x20Language/zh_CN','fetch','getMinutes','toString','setValueForKey','userId','data','www.ttljf.com','9819200NGmXkj','method=charge&userId=','用户:','giftId','null','ttldh','length','existsSync','【兑换商品】\x20',',\x20结束!\x20🕛\x20','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie','openUrl','65VIJftA','timeout','method','concat','\x20库存:','token','1232559PzHPJF','object','undefined','opts','lodash_get','logSeparator','call','loaddata','name','msg','set-cookie','env','https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html','test','isMute','cktough','isQuanX','box.dat','time','getMilliseconds','\x20库存:','&loginToken=','stringify','code','logErr','done','\x0a签到任务:','/v1/scripting/evaluate','&password=','POST','send','\x20id:\x20','log','url','*/*','finally','open-url','Content-Type','parse','user/api/my','then','getDate','未找到ttlaccount','put','A35D575F-C004-4717-AABC-ED9D1979C3FA','mthd=login&username=','&platform=android','substr','XMLHttpRequest','\x20跳过登录','ttlhd','ttlstatus','getScript','@chavy_boxjs_userCfgs.httpapi'];l=function(){return lt;};return l();}let giftAmount,giftNames,giftPrice,date,ttlaccounts='',ttlaccountArr=[],ttldhs='',ttldhArr=[],ttlaccount=$[T(0xea)]()?process[T(0x12a)]['ttlaccount']?process[T(0x12a)]['ttlaccount']:'':$[T(0xaa)](T(0xa2))?$[T(0xaa)](T(0xa2)):'';const ttldh=$['isNode']()?process[T(0x12a)]['ttldh']?process[T(0x12a)]['ttldh']:'':$['getdata'](T(0x112))?$[T(0xaa)]('ttldh'):'';let stockPrice=0x0,stockAmount2,stockName='',message='',ttlhds='';const logs=0x0,host=T(0xcc);var hours=new Date()['getHours'](),s=new Date()[T(0x107)](),timestamp=Math[T(0x104)](new Date()[T(0x8e)]()/0x3e8)[T(0x108)]();!(async()=>{const y=T;if(typeof $request!==y(0x121)){}else{if(!await checkEnv())return;console[y(0x77)]('共'+ttlaccountArr[y(0x113)]+y(0xc1)),giftAmount={},giftNames={},giftPrice={},await ttl_gift();for(let G=0x0;G0x7&&hour<0xa&&minute<0xa)await ttl_login(),await $[y(0xdb)](0x3e8),await sign(),await $[y(0xdb)](0x7d0),await blog(),await $[y(0xdb)](0x3e8),await my();else{if(stockAmount2>0x0)await ttl_login(),await $[y(0xdb)](0x3e8),await my();else console['log']('所选商品:'+stockName+y(0x133)+stockAmount2+y(0x88));}}}})()['catch'](G=>$[T(0x137)](G))[T(0x7a)](()=>$[T(0x138)]());async function checkEnv(){const U=T;if(ttlaccount)for(let G of ttlaccount[U(0xc4)]('@')){if(G)ttlaccountArr[U(0x8f)](G);}else return console[U(0x77)](U(0x81)),![];if(ttldh)for(let c of ttldh[U(0xc4)]('@')){if(c)ttldhArr[U(0x8f)](c);}else return console[U(0x77)]('未设置兑换商品代码:ttldh'),![];return!![];}function ttlck(){const q=T;if($request[q(0x78)][q(0x93)](q(0x7e))>-0x1){const G=$request['body'][q(0x11e)];if(G)$[q(0xbc)](G,q(0x89)+status);$['log'](G),$[q(0x128)]($[q(0x127)],'',q(0xe9)+(''+G)+q(0x97));}}async function ttl_gift(){const x=T;let G=x(0xae),c=populateUrlObject(G);await httpRequest(x(0xf7),c);if(!httpResult||httpResult[x(0xa6)]!=0xc8)return;let j=JSON[x(0x7d)](httpResult[x(0xfd)]);if(!j)return;const Q=j[x(0xfa)];let z='';for(let J of Q){const S=parseInt(J[x(0x9c)]),Z=J[x(0x90)],a=J[x(0x110)],n=parseInt(J[x(0xeb)]);z+=Z+x(0x76)+a+',\x20库存:\x20'+S+x(0xdf)+n+'\x0a',giftAmount[a]=S,giftNames[a]=Z,giftPrice[a]=n;}$['log'](''+z);}async function ttl_login(){const K=T;let G=K(0xfe),c=K(0x84)+user+K(0x73)+pwd+K(0x85),j=populateUrlObject(G,c);await httpRequest(K(0xf8),j);if(!httpResult||httpResult[K(0xa6)]!=0xc8)return;let Q=JSON[K(0x7d)](httpResult[K(0xfd)]);if(!Q)return;if(Q[K(0x136)]===K(0xce))$[K(0x11e)]=Q[K(0xa7)]['loginToken'],$[K(0x10a)]=Q['user']['userId'],$[K(0xa9)]=Q[K(0xa7)][K(0xa9)],$[K(0xa1)]=Q[K(0xa7)][K(0xa1)],console[K(0x77)]('token:'+$[K(0x11e)]+'\x20积分:'+$['integral']),$[K(0xbc)]($[K(0xa1)],date+'_'+user),console[K(0x77)](K(0xca)),mobile=Q['user']['mobile'],console[K(0x77)](K(0xd6)+Q[K(0xcf)]),message+=K(0xe3)+$['userName']+'('+mobile+')\x20\x0a【登录信息】\x20'+Q[K(0xcf)]+'\x20\x0a【积分】\x20'+$[K(0xa1)];else $[K(0x77)](K(0xd0)+Q[K(0xcf)]);}async function blog(){return new Promise(G=>{const N=h;body={'id':N(0x83),'type':N(0xfc)},request[N(0x82)](ttl(N(0xfb),body),function(c,j,Q){const d=N;try{c&&(console[d(0x77)](''+JSON[d(0x135)](err)),console[d(0x77)]($[d(0x127)]+d(0x92)));data=JSON[d(0x7d)](Q);if(data['code']==0x0)console[d(0x77)]('\x0a分享任务:'+data[d(0xcf)]);else data[d(0x136)]!=0x0&&console['log'](d(0x103)+data[d(0xcf)]);}catch(z){$['logErr'](z,resp);}finally{G(data);}});});}async function sign(){return new Promise(G=>{const e=h;request[e(0x82)](ttl(e(0xb8),''),function(c,j,Q){const o=e;try{c&&(console[o(0x77)](''+JSON[o(0x135)](err)),console[o(0x77)]($[o(0x127)]+o(0x92)));data=JSON[o(0x7d)](Q);if(data[o(0x136)]==0x0)console[o(0x77)](o(0x139)+data[o(0xcf)]);else data[o(0x136)]!=0x0&&console[o(0x77)](o(0x139)+data['message']);}catch(z){$['logErr'](z,resp);}finally{G(data);}});});}async function my(){const M=T;let G=M(0xe8),c=populateUrlObject(G);await httpRequest(M(0xf7),c);if(!httpResult||httpResult['statusCode']!=0xc8)return;let j=JSON[M(0x7d)](httpResult['body']);if(!j)return;if(j[M(0x136)]==0x0){let Q=j['data'][M(0xa1)];console[M(0x77)](M(0x10f)+j[M(0x10b)][M(0xa9)]+M(0xda)+Q);if(Q>=stockPrice&&stockAmount2>0x0)console[M(0x77)]('积分达到兑换标准,尝试开始兑换'+stockName),await ttl_dh(),$[M(0xbc)]($[M(0xa1)]-stockPrice,date+'_'+user);else console['log'](M(0xb5)+stockName+M(0x11d)+stockAmount2);}}async function ttl_dh(){const A=T;let G=A(0x102),c=A(0x10e)+$[A(0x10a)]+A(0x134)+$[A(0x11e)]+A(0xaf)+user+A(0xe4)+giftId,j=populateUrlObject(G,c);await httpRequest(A(0xf8),j);if(!httpResult||httpResult['statusCode']!=0xc8)return;let Q=JSON[A(0x7d)](httpResult[A(0xfd)]);if(!Q)return;console[A(0x77)](''+JSON['stringify'](Q));if(Q[A(0x136)]==0x0)console[A(0x77)](A(0xb2)+stockName+A(0xa3)+Q[A(0xcf)]+'🎉');else $['log'](A(0x115)+stockName+'\x20:'+Q[A(0xcf)]);if($[A(0xea)]())await notify[A(0xa8)]($[A(0x127)],'兑换商品\x20'+stockName+A(0xcd)+Q[A(0xcf)]+'🎉');}function ttl(G,c){const O=T;return{'url':''+host+G,'body':''+c,'headers':{'Host':O(0x10c),'Accept':'application/json,\x20text/plain,\x20*/*','content-type':O(0xc8),'token':$[O(0x11e)],'X-Requested-With':'XMLHttpRequest','Accept-Encoding':O(0x9e),'User-Agent':O(0x105),'Referer':O(0x12b)}};}function populateUrlObject(G,c=''){const k=T;let j=G[k(0x99)]('//','/')[k(0xc4)]('/')[0x1],Q={'url':G,'headers':{'Host':j,'Accept':k(0xf2),'content-type':k(0xc8),'token':$[k(0x11e)],'X-Requested-With':k(0x87),'Accept-Encoding':k(0x9e),'User-Agent':k(0x105),'Referer':k(0x12b)}};if(c)Q[k(0xfd)]=c;return Q;}async function httpRequest(G,c){return httpResult=null,new Promise(j=>{$[G](c,async(Q,z,J)=>{const i=h;try{Q?(console[i(0x77)](G+i(0xff)),console[i(0x77)](JSON[i(0x135)](Q)),$[i(0x137)](Q)):httpResult=z;}catch(S){$['logErr'](S,z);}finally{j();}});});}function SafeGet(G){const H=T;try{if(typeof JSON[H(0x7d)](G)==H(0x120))return!![];else console[H(0x77)](G);}catch(c){return console['log'](c),console[H(0x77)](H(0xf4)),![];}}function jsonParse(G){const W=T;if(typeof G==W(0xd7))try{return JSON['parse'](G);}catch(c){return console['log'](c),$[W(0x128)]($[W(0x127)],'',W(0x117)),[];}}function Env(G,c){const F=T;class j{constructor(Q){const L=h;this[L(0x12a)]=Q;}[F(0x75)](Q,z=F(0xbf)){Q='string'==typeof Q?{'url':Q}:Q;let J=this['get'];return'POST'===z&&(J=this['post']),new Promise((S,Z)=>{const V=h;J[V(0x125)](this,Q,(a,n,B)=>{a?Z(a):S(n);});});}[F(0xf7)](Q){const b=F;return this[b(0x75)][b(0x125)](this['env'],Q);}[F(0xf8)](Q){const v=F;return this[v(0x75)][v(0x125)](this[v(0x12a)],Q,v(0x74));}}return new class{constructor(Q,z){const X=F;this[X(0x127)]=Q,this[X(0xd4)]=new j(this),this[X(0x10b)]=null,this[X(0xd8)]=X(0x130),this[X(0xa0)]=[],this['isMute']=!0x1,this[X(0xb9)]=!0x1,this['logSeparator']='\x0a',this['startTime']=new Date()[X(0x8e)](),Object[X(0xb4)](this,z),this['log']('','🔔'+this[X(0x127)]+X(0xc3));}[F(0xea)](){const P=F;return'undefined'!=typeof module&&!!module[P(0xf9)];}['isQuanX'](){const R=F;return R(0x121)!=typeof $task;}[F(0xef)](){const f=F;return'undefined'!=typeof $httpClient&&f(0x121)==typeof $loon;}[F(0xb0)](){const u=F;return u(0x121)!=typeof $loon;}[F(0xf3)](Q,z=null){const r=F;try{return JSON[r(0x7d)](Q);}catch{return z;}}['toStr'](Q,z=null){const p=F;try{return JSON[p(0x135)](Q);}catch{return z;}}['getjson'](Q,z){const w=F;let J=z;const S=this[w(0xaa)](Q);if(S)try{J=JSON[w(0x7d)](this[w(0xaa)](Q));}catch{}return J;}['setjson'](Q,z){const m=F;try{return this[m(0xbc)](JSON[m(0x135)](Q),z);}catch{return!0x1;}}[F(0x8b)](Q){return new Promise(z=>{const I=h;this[I(0xf7)]({'url':Q},(J,S,Z)=>z(Z));});}['runScript'](Q,z){const l1=F;return new Promise(J=>{const l0=h;let S=this[l0(0xaa)](l0(0x8c));S=S?S[l0(0x99)](/\n/g,'')[l0(0xc5)]():S;let Z=this[l0(0xaa)]('@chavy_boxjs_userCfgs.httpapi_timeout');Z=Z?0x1*Z:0x14,Z=z&&z[l0(0x11a)]?z[l0(0x11a)]:Z;const [n,B]=S[l0(0xc4)]('@'),g={'url':l0(0x91)+B+l0(0x72),'body':{'script_text':Q,'mock_type':l0(0xba),'timeout':Z},'headers':{'X-Key':n,'Accept':l0(0x79)}};this['post'](g,(C,Y,D)=>J(D));})[l1(0xc7)](J=>this[l1(0x137)](J));}[F(0x126)](){const l2=F;if(!this[l2(0xea)]())return{};{this['fs']=this['fs']?this['fs']:require('fs'),this['path']=this[l2(0xac)]?this[l2(0xac)]:require(l2(0xac));const Q=this[l2(0xac)]['resolve'](this[l2(0xd8)]),z=this['path']['resolve'](process['cwd'](),this[l2(0xd8)]),J=this['fs'][l2(0x114)](Q),S=!J&&this['fs'][l2(0x114)](z);if(!J&&!S)return{};{const Z=J?Q:z;try{return JSON[l2(0x7d)](this['fs'][l2(0xc2)](Z));}catch(a){return{};}}}}[F(0xc0)](){const l3=F;if(this[l3(0xea)]()){this['fs']=this['fs']?this['fs']:require('fs'),this['path']=this[l3(0xac)]?this[l3(0xac)]:require(l3(0xac));const Q=this[l3(0xac)][l3(0xd3)](this[l3(0xd8)]),z=this[l3(0xac)][l3(0xd3)](process[l3(0xed)](),this[l3(0xd8)]),J=this['fs']['existsSync'](Q),S=!J&&this['fs'][l3(0x114)](z),Z=JSON[l3(0x135)](this[l3(0x10b)]);J?this['fs']['writeFileSync'](Q,Z):S?this['fs'][l3(0xd2)](z,Z):this['fs'][l3(0xd2)](Q,Z);}}[F(0x123)](Q,z,J){const l4=F,S=z['replace'](/\[(\d+)\]/g,'.$1')[l4(0xc4)]('.');let Z=Q;for(const a of S)if(Z=Object(Z)[a],void 0x0===Z)return J;return Z;}[F(0xe5)](Q,z,J){const l5=F;return Object(Q)!==Q?Q:(Array[l5(0xf5)](z)||(z=z[l5(0x108)]()['match'](/[^.[\]]+/g)||[]),z['slice'](0x0,-0x1)['reduce']((S,Z,a)=>Object(S[Z])===S[Z]?S[Z]:S[Z]=Math[l5(0xe0)](z[a+0x1])>>0x0==+z[a+0x1]?[]:{},Q)[z[z[l5(0x113)]-0x1]]=J,Q);}['getdata'](Q){const l6=F;let z=this[l6(0x9f)](Q);if(/^@/[l6(0x12c)](Q)){const [,J,S]=/^@(.*?)\.(.*?)$/[l6(0xc9)](Q),Z=J?this['getval'](J):'';if(Z)try{const a=JSON['parse'](Z);z=a?this[l6(0x123)](a,S,''):z;}catch(n){z='';}}return z;}[F(0xbc)](Q,z){const l7=F;let J=!0x1;if(/^@/[l7(0x12c)](z)){const [,S,Z]=/^@(.*?)\.(.*?)$/[l7(0xc9)](z),a=this[l7(0x9f)](S),n=S?l7(0x111)===a?null:a||'{}':'{}';try{const B=JSON[l7(0x7d)](n);this['lodash_set'](B,Z,Q),J=this[l7(0x96)](JSON[l7(0x135)](B),S);}catch(g){const C={};this[l7(0xe5)](C,Z,Q),J=this[l7(0x96)](JSON[l7(0x135)](C),S);}}else J=this[l7(0x96)](Q,z);return J;}[F(0x9f)](Q){const l8=F;return this[l8(0xef)]()||this['isLoon']()?$persistentStore[l8(0xe1)](Q):this['isQuanX']()?$prefs['valueForKey'](Q):this['isNode']()?(this[l8(0x10b)]=this[l8(0x126)](),this[l8(0x10b)][Q]):this[l8(0x10b)]&&this[l8(0x10b)][Q]||null;}[F(0x96)](Q,z){const l9=F;return this[l9(0xef)]()||this[l9(0xb0)]()?$persistentStore[l9(0x9b)](Q,z):this[l9(0x12f)]()?$prefs[l9(0x109)](Q,z):this['isNode']()?(this[l9(0x10b)]=this[l9(0x126)](),this[l9(0x10b)][z]=Q,this['writedata'](),!0x0):this[l9(0x10b)]&&this[l9(0x10b)][z]||null;}[F(0x100)](Q){const ll=F;this[ll(0xb7)]=this[ll(0xb7)]?this[ll(0xb7)]:require('got'),this[ll(0x12e)]=this[ll(0x12e)]?this['cktough']:require(ll(0xbb)),this[ll(0xdc)]=this[ll(0xdc)]?this[ll(0xdc)]:new this[(ll(0x12e))]['CookieJar'](),Q&&(Q[ll(0xa5)]=Q[ll(0xa5)]?Q['headers']:{},void 0x0===Q[ll(0xa5)][ll(0xcb)]&&void 0x0===Q[ll(0xee)]&&(Q[ll(0xee)]=this[ll(0xdc)]));}[F(0xf7)](Q,z=()=>{}){const lh=F;Q[lh(0xa5)]&&(delete Q[lh(0xa5)][lh(0x7c)],delete Q['headers']['Content-Length']),this['isSurge']()||this[lh(0xb0)]()?(this[lh(0xef)]()&&this['isNeedRewrite']&&(Q[lh(0xa5)]=Q['headers']||{},Object['assign'](Q[lh(0xa5)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient['get'](Q,(J,S,Z)=>{const lG=lh;!J&&S&&(S[lG(0xfd)]=Z,S[lG(0xa6)]=S[lG(0xe7)]),z(J,S,Z);})):this['isQuanX']()?(this[lh(0xb9)]&&(Q[lh(0x122)]=Q[lh(0x122)]||{},Object[lh(0xb4)](Q[lh(0x122)],{'hints':!0x1})),$task[lh(0x106)](Q)[lh(0x7f)](J=>{const {statusCode:S,statusCode:Z,headers:a,body:n}=J;z(null,{'status':S,'statusCode':Z,'headers':a,'body':n},n);},J=>z(J))):this[lh(0xea)]()&&(this[lh(0x100)](Q),this[lh(0xb7)](Q)['on'](lh(0xbd),(J,S)=>{const lc=lh;try{if(J[lc(0xa5)][lc(0x129)]){const Z=J[lc(0xa5)][lc(0x129)][lc(0xde)](this[lc(0x12e)][lc(0xcb)][lc(0x7d)])[lc(0x108)]();Z&&this['ckjar']['setCookieSync'](Z,null),S['cookieJar']=this[lc(0xdc)];}}catch(a){this[lc(0x137)](a);}})['then'](J=>{const {statusCode:S,statusCode:Z,headers:a,body:n}=J;z(null,{'status':S,'statusCode':Z,'headers':a,'body':n},n);},J=>{const lj=lh,{message:S,response:Z}=J;z(S,Z,Z&&Z[lj(0xfd)]);}));}[F(0xf8)](Q,z=()=>{}){const lQ=F;if(Q[lQ(0xfd)]&&Q[lQ(0xa5)]&&!Q[lQ(0xa5)][lQ(0x7c)]&&(Q[lQ(0xa5)]['Content-Type']=lQ(0x98)),Q[lQ(0xa5)]&&delete Q[lQ(0xa5)][lQ(0xe6)],this[lQ(0xef)]()||this[lQ(0xb0)]())this['isSurge']()&&this[lQ(0xb9)]&&(Q['headers']=Q[lQ(0xa5)]||{},Object['assign'](Q['headers'],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[lQ(0xf8)](Q,(J,S,Z)=>{const lz=lQ;!J&&S&&(S[lz(0xfd)]=Z,S[lz(0xa6)]=S[lz(0xe7)]),z(J,S,Z);});else{if(this[lQ(0x12f)]())Q[lQ(0x11b)]=lQ(0x74),this['isNeedRewrite']&&(Q[lQ(0x122)]=Q[lQ(0x122)]||{},Object[lQ(0xb4)](Q[lQ(0x122)],{'hints':!0x1})),$task[lQ(0x106)](Q)[lQ(0x7f)](J=>{const {statusCode:S,statusCode:Z,headers:a,body:n}=J;z(null,{'status':S,'statusCode':Z,'headers':a,'body':n},n);},J=>z(J));else{if(this[lQ(0xea)]()){this[lQ(0x100)](Q);const {url:J,...S}=Q;this[lQ(0xb7)][lQ(0xf8)](J,S)['then'](Z=>{const {statusCode:a,statusCode:n,headers:B,body:g}=Z;z(null,{'status':a,'statusCode':n,'headers':B,'body':g},g);},Z=>{const lJ=lQ,{message:a,response:n}=Z;z(a,n,n&&n[lJ(0xfd)]);});}}}}[F(0x131)](Q){const lS=F;let z={'M+':new Date()[lS(0xa4)]()+0x1,'d+':new Date()[lS(0x80)](),'H+':new Date()[lS(0xb1)](),'m+':new Date()[lS(0x107)](),'s+':new Date()[lS(0xf6)](),'q+':Math[lS(0x101)]((new Date()[lS(0xa4)]()+0x3)/0x3),'S':new Date()[lS(0x132)]()};/(y+)/[lS(0x12c)](Q)&&(Q=Q[lS(0x99)](RegExp['$1'],(new Date()[lS(0xf0)]()+'')[lS(0x86)](0x4-RegExp['$1']['length'])));for(let J in z)new RegExp('('+J+')')[lS(0x12c)](Q)&&(Q=Q[lS(0x99)](RegExp['$1'],0x1==RegExp['$1'][lS(0x113)]?z[J]:('00'+z[J])[lS(0x86)]((''+z[J])[lS(0x113)])));return Q;}[F(0x128)](Q=G,z='',J='',S){const la=F,Z=a=>{const lZ=h;if(!a)return a;if(lZ(0xd7)==typeof a)return this['isLoon']()?a:this['isQuanX']()?{'open-url':a}:this[lZ(0xef)]()?{'url':a}:void 0x0;if(lZ(0x120)==typeof a){if(this[lZ(0xb0)]()){let n=a[lZ(0x118)]||a[lZ(0x78)]||a[lZ(0x7b)],B=a[lZ(0xd9)]||a['media-url'];return{'openUrl':n,'mediaUrl':B};}if(this[lZ(0x12f)]()){let g=a[lZ(0x7b)]||a[lZ(0x78)]||a[lZ(0x118)],C=a[lZ(0xf1)]||a[lZ(0xd9)];return{'open-url':g,'media-url':C};}if(this['isSurge']()){let Y=a[lZ(0x78)]||a[lZ(0x118)]||a['open-url'];return{'url':Y};}}};if(this[la(0x12d)]||(this[la(0xef)]()||this[la(0xb0)]()?$notification[la(0xf8)](Q,z,J,Z(S)):this[la(0x12f)]()&&$notify(Q,z,J,Z(S))),!this[la(0xbe)]){let a=['',la(0x94)];a['push'](Q),z&&a[la(0x8f)](z),J&&a[la(0x8f)](J),console[la(0x77)](a['join']('\x0a')),this[la(0xa0)]=this[la(0xa0)][la(0x11c)](a);}}[F(0x77)](...Q){const ln=F;Q['length']>0x0&&(this[ln(0xa0)]=[...this['logs'],...Q]),console[ln(0x77)](Q[ln(0xdd)](this[ln(0x124)]));}[F(0x137)](Q,z){const lB=F,J=!this[lB(0xef)]()&&!this['isQuanX']()&&!this['isLoon']();J?this[lB(0x77)]('','❗️'+this[lB(0x127)]+lB(0x8d),Q[lB(0x95)]):this[lB(0x77)]('','❗️'+this[lB(0x127)]+',\x20错误!',Q);}[F(0xdb)](Q){return new Promise(z=>setTimeout(z,Q));}[F(0x138)](Q={}){const lg=F,z=new Date()[lg(0x8e)](),J=(z-this[lg(0xc6)])/0x3e8;this[lg(0x77)]('','🔔'+this[lg(0x127)]+lg(0x116)+J+'\x20秒'),this[lg(0x77)](),(this[lg(0xef)]()||this['isQuanX']()||this[lg(0xb0)]())&&$done(Q);}}(G,c);} \ No newline at end of file