You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
19 KiB
15 lines
19 KiB
/*
|
|
太太乐餐饮服务 微信小程序
|
|
==========
|
|
青龙变量
|
|
==========
|
|
export ttlaccount='' 手机号码#密码 ,多账号@隔开
|
|
export ttldh='' 兑换类型,@分割 633=10元手机话费(仅电信用户) 631=30元手机话费(仅移动用户) 62=5元手机话费(仅联通用户) 61=2元手机话费(仅联通用户)
|
|
==========
|
|
|
|
[task_local]
|
|
0 8-20 * * * task ttl.js
|
|
(日常跑一次就行,兑换时可以多跑几次,8-9点会签到分享,其他时间只兑换)
|
|
一天2次
|
|
*/
|
|
const x=j;(function(q,X){const I=j,o=q();while(!![]){try{const i=-parseInt(I(0xd5))/0x1*(parseInt(I(0xb4))/0x2)+parseInt(I(0x154))/0x3*(-parseInt(I(0x145))/0x4)+-parseInt(I(0x12c))/0x5+parseInt(I(0xb1))/0x6+-parseInt(I(0x156))/0x7+parseInt(I(0xbf))/0x8+parseInt(I(0xde))/0x9;if(i===X)break;else o['push'](o['shift']());}catch(A){o['push'](o['shift']());}}}(y,0x6a2f8));const $=new Env(x(0xe8));var request=require(x(0x116));const notify=$[x(0x125)]()?require(x(0x120)):'';let status;status=(status=$['getval']('ttlstatus')||'1')>0x1?''+status:'';const hour=new Date(new Date()[x(0x130)]()+new Date()[x(0x128)]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[x(0xe6)](),minute=new Date(new Date()['getTime']()+new Date()['getTimezoneOffset']()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[x(0x103)]();let giftAmount,giftNames,giftPrice,date,ttlaccounts='',ttlaccountArr=[],ttldhs='',ttldhArr=[],ttlaccount=$[x(0x125)]()?process['env'][x(0x155)]?process[x(0x15e)][x(0x155)]:'':$['getdata'](x(0x155))?$[x(0x133)](x(0x155)):'';const ttldh=$['isNode']()?process['env'][x(0x12d)]?process['env'][x(0x12d)]:'':$[x(0x133)](x(0x12d))?$['getdata'](x(0x12d)):'';let stockPrice=0x0,stockAmount2,stockName='',message='',ttlhds='';const logs=0x0,host=x(0x149);var hours=new Date()[x(0xe6)](),s=new Date()[x(0x103)](),timestamp=Math['round'](new Date()[x(0x130)]()/0x3e8)['toString']();!(async()=>{const w=x;if(typeof $request!=='undefined'){}else{if(!await checkEnv())return;console[w(0xff)]('共'+ttlaccountArr[w(0xd6)]+w(0xf0)),giftAmount={},giftNames={},giftPrice={},await ttl_gift();for(let q=0x0;q<ttlaccountArr['length'];q++){user_pwd=ttlaccountArr[q]['split']('#'),user=user_pwd[0x0],pwd=user_pwd[0x1],giftId=ttldhArr[q],stockAmount2=giftAmount[giftId],stockName=giftNames[giftId],stockPrice=giftPrice[giftId],$[w(0x105)]='',$[w(0x11a)]=q+0x1,console[w(0xff)](w(0xe5)+$[w(0x11a)]+'】'),await ttl_login(),await $['wait'](0x3e8),hour>0x7&&hour<0xa&&(await sign(),await $[w(0xb5)](0x7d0),await blog()),await $[w(0xb5)](0x3e8),await my();}}})()[x(0xb6)](q=>$[x(0x137)](q))[x(0x13b)](()=>$[x(0x13d)]());async function checkEnv(){const F=x;if(ttlaccount)for(let q of ttlaccount[F(0xb3)]('@')){if(q)ttlaccountArr[F(0x134)](q);}else return console['log']('未找到ttlaccount'),![];if(ttldh)for(let X of ttldh[F(0xb3)]('@')){if(X)ttldhArr[F(0x134)](X);}else return console['log'](F(0x106)),![];return!![];}function ttlck(){const H=x;if($request[H(0x118)][H(0xeb)](H(0xe7))>-0x1){const q=$request[H(0x11c)][H(0xfa)];if(q)$[H(0x101)](q,H(0x168)+status);$[H(0xff)](q),$[H(0xcf)]($[H(0xc9)],'',H(0xe8)+(''+q)+'数据获取成功!');}}function y(){const yr=['ckjar',',\x20错误!','env','Content-Type','giftName','CookieJar','setCookieSync','got','time','existsSync','undefined','服务器访问数据为空,请检查自身设备网络情况','ttlhd','opts','1403004GiIVdw','getScript','split','2nKOSpz','wait','catch','floor','cookieJar','isSurge','user/api/sign/today','call','user','Content-Length','method','5850016GJJgWF','&mobile=','getjson','.$1','lodash_set','data','application/json,\x20text/plain,\x20*/*','parse','concat','replace','name','GET','object','slice','@chavy_boxjs_userCfgs.httpapi','loaddata','msg','用户:','writeFileSync','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','www.ttljf.com','http://','730882oJHjRH','length','getval','\x0a分享任务:','\x20id:\x20','getSeconds','toStr','dataFile','http://www.ttljf.com/ttl_site/chargeApi.do','11713878JxOoXt','put','兑换商品\x20','\x20\x0a【积分】\x20','isNeedRewrite','method=charge&userId=','userName','\x0a开始【太太乐','getHours','user/api/my','太太乐','\x20积分\x20','isMute','indexOf','\x20积分:','\x20结果:','headers','A35D575F-C004-4717-AABC-ED9D1979C3FA','个cookie','status','gzip,compress,br,deflate','resolve','substr','statusCode','logs','post','tough-cookie','cwd','token','path','writedata','getFullYear','/v1/scripting/evaluate','log','price','setdata','setval','getMinutes','isLoon','message','未设置兑换商品代码:ttldh','runScript','gifts','assign',')\x20\x0a【登录信息】\x20','isArray','isQuanX','integral','XMLHttpRequest','giftId','initGotEnv','getDate','set-cookie','cktough','then','登录失败\x20:','request','application/x-www-form-urlencoded','url',',\x20结束!\x20🕛\x20','index','mediaUrl','body','0000','Cookie','token:','./sendNotify','get','test','http://www.ttljf.com/ttl_site/giftApi.do?mthd=searchGift&giftCategoryId=7&pageNo=1&pageSize=8','join','isNode','map','redirect','getTimezoneOffset','open-url','setjson','&platform=android','1031185BnNMpd','ttldh','setValueForKey','send','getTime','code','stringify','getdata','push','application/json','null','logErr','\x20兑换结果:','userId','http://www.ttljf.com/ttl_site/user.do','finally','getMonth','done','stockAmount',',\x20积分:\u3000','\x20库存:','string','POST','startTime','toObj','124ENIKYZ','read','\x0a签到任务:','*/*','https://www.ttljf.com/ttl_chefHub/','isMuteLog','exports','&password=','&loginToken=','openUrl','media-url','fetch',',\x20开始!','登录信息\x20','https://www.ttljf.com/ttl_chefHub/user/api/my','59703OIMzYb','ttlaccount','1943494niALho',',\x20库存:\x20','reduce','cron','\x20API请求失败,请检查网路重试','设置当天积分缓存成功!'];y=function(){return yr;};return y();}async function ttl_gift(){const n=x;let q=n(0x123),X=populateUrlObject(q);await httpRequest(n(0x121),X);if(!httpResult||httpResult[n(0xf5)]!=0xc8)return;let o=JSON[n(0xc6)](httpResult[n(0x11c)]);if(!o)return;const i=o[n(0x108)];let A='';for(let v of i){const M=parseInt(v[n(0x13e)]),W=v[n(0x160)],b=v[n(0x10f)],R=parseInt(v[n(0x100)]);A+=W+n(0xd9)+b+n(0x157)+M+n(0x13f)+R+'\x0a',giftAmount[b]=M,giftNames[b]=W,giftPrice[b]=R;}$[n(0xff)](''+A);}async function ttl_login(){const l=x;let q=l(0x13a),X='mthd=login&username='+user+l(0x14c)+pwd+l(0x12b),o=populateUrlObject(q,X);await httpRequest('post',o);if(!httpResult||httpResult[l(0xf5)]!=0xc8)return;let i=JSON['parse'](httpResult[l(0x11c)]);if(!i)return;if(i['code']===l(0x11d))$[l(0xfa)]=i['user']['loginToken'],$['userId']=i['user'][l(0x139)],$[l(0xe4)]=i[l(0xbc)][l(0xe4)],$['integral']=i[l(0xbc)][l(0x10d)],console[l(0xff)](l(0x11f)+$['token']+l(0xec)+$[l(0x10d)]),$[l(0x101)]($['integral'],date+'_'+user),console[l(0xff)](l(0x15b)),mobile=i[l(0xbc)]['mobile'],console[l(0xff)](l(0x152)+i['message']),message+='\x0a【账号】\x20'+$[l(0xe4)]+'('+mobile+l(0x10a)+i[l(0x105)]+l(0xe1)+$[l(0x10d)];else $[l(0xff)](l(0x115)+i[l(0x105)]);}async function blog(){return new Promise(q=>{const u=j;body={'id':u(0xef),'type':'blog'},request[u(0xdf)](ttl('Common/share/A35D575F-C004-4717-AABC-ED9D1979C3FA/blog',body),function(X,o,i){const h=u;try{X&&(console[h(0xff)](''+JSON[h(0x132)](err)),console[h(0xff)]($[h(0xc9)]+h(0x15a)));data=JSON[h(0xc6)](i);if(data[h(0x131)]==0x0)console[h(0xff)]('\x0a分享任务:'+data['message']);else data[h(0x131)]!=0x0&&console['log'](h(0xd8)+data[h(0x105)]);}catch(A){$['logErr'](A,resp);}finally{q(data);}});});}async function sign(){return new Promise(q=>{const C=j;request[C(0xdf)](ttl(C(0xba),''),function(X,o,i){const K=C;try{X&&(console[K(0xff)](''+JSON['stringify'](err)),console[K(0xff)]($[K(0xc9)]+'\x20API请求失败,请检查网路重试'));data=JSON['parse'](i);if(data[K(0x131)]==0x0)console[K(0xff)]('\x0a签到任务:'+data[K(0x105)]);else data[K(0x131)]!=0x0&&console[K(0xff)](K(0x147)+data[K(0x105)]);}catch(A){$[K(0x137)](A,resp);}finally{q(data);}});});}async function my(){const B=x;let q=B(0x153),X=populateUrlObject(q);await httpRequest(B(0x121),X);if(!httpResult||httpResult['statusCode']!=0xc8)return;let o=JSON[B(0xc6)](httpResult['body']);if(!o)return;if(o[B(0x131)]==0x0){let i=o[B(0xc4)]['integral'];console[B(0xff)](B(0xd0)+o[B(0xc4)][B(0xe4)]+B(0xe9)+i);if(i>=stockPrice&&stockAmount>0x0)console['log']('积分达到兑换标准,尝试开始兑换'+stockName),await ttl_dh(),$['setdata']($['integral']-stockPrice,date+'_'+user);else console[B(0xff)]('设置兑换'+stockName+B(0x140)+stockAmount2);}}async function ttl_dh(){const T=x;let q=T(0xdd),X=T(0xe3)+$[T(0x139)]+T(0x14d)+$[T(0xfa)]+T(0xc0)+user+'&giftId='+giftId,o=populateUrlObject(q,X);await httpRequest(T(0xf7),o);if(!httpResult||httpResult[T(0xf5)]!=0xc8)return;let i=JSON[T(0xc6)](httpResult[T(0x11c)]);if(!i)return;console['log'](''+JSON[T(0x132)](i));if(i['code']==0x0)console['log'](T(0xe0)+stockName+T(0x138)+i[T(0x105)]+'🎉');else $['log']('【兑换商品】\x20'+stockName+'\x20:'+i[T(0x105)]);if($[T(0x125)]())await notify['sendNotify']($[T(0xc9)],T(0xe0)+stockName+T(0xed)+i['message']+'🎉');}function ttl(q,X){const d=x;return{'url':''+host+q,'body':''+X,'headers':{'Host':d(0xd3),'Accept':d(0xc5),'content-type':d(0x135),'token':$[d(0xfa)],'X-Requested-With':'XMLHttpRequest','Accept-Encoding':d(0xf2),'User-Agent':d(0xd2),'Referer':'https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html'}};}function populateUrlObject(q,X=''){const S=x;let o=q[S(0xc8)]('//','/')[S(0xb3)]('/')[0x1],i={'url':q,'headers':{'Host':o,'Accept':S(0xc5),'content-type':S(0x135),'token':$[S(0xfa)],'X-Requested-With':S(0x10e),'Accept-Encoding':S(0xf2),'User-Agent':S(0xd2),'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[c(0xff)](q+'请求失败'),console[c(0xff)](JSON[c(0x132)](i)),$[c(0x137)](i)):httpResult=A;}catch(M){$[c(0x137)](M,A);}finally{o();}});});}function SafeGet(q){const E=x;try{if(typeof JSON[E(0xc6)](q)==E(0xcb))return!![];else console[E(0xff)](q);}catch(X){return console['log'](X),console[E(0xff)](E(0x167)),![];}}function j(q,X){const o=y();return j=function(i,A){i=i-0xb0;let v=o[i];return v;},j(q,X);}function jsonParse(q){const P=x;if(typeof q==P(0x141))try{return JSON[P(0xc6)](q);}catch(X){return console['log'](X),$['msg']($[P(0xc9)],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}}function Env(q,X){const D=x;class o{constructor(i){const m=j;this[m(0x15e)]=i;}[D(0x12f)](i,A=D(0xca)){const N=D;i=N(0x141)==typeof i?{'url':i}:i;let v=this['get'];return'POST'===A&&(v=this[N(0xf7)]),new Promise((M,W)=>{const g=N;v[g(0xbb)](this,i,(b,R,f)=>{b?W(b):M(R);});});}[D(0x121)](i){const U=D;return this[U(0x12f)][U(0xbb)](this[U(0x15e)],i);}[D(0xf7)](i){const Q=D;return this[Q(0x12f)][Q(0xbb)](this['env'],i,Q(0x142));}}return new class{constructor(i,A){const p=D;this['name']=i,this['http']=new o(this),this[p(0xc4)]=null,this[p(0xdc)]='box.dat',this[p(0xf6)]=[],this['isMute']=!0x1,this[p(0xe2)]=!0x1,this['logSeparator']='\x0a',this[p(0x143)]=new Date()[p(0x130)](),Object[p(0x109)](this,A),this[p(0xff)]('','🔔'+this['name']+p(0x151));}[D(0x125)](){const e=D;return e(0x166)!=typeof module&&!!module[e(0x14b)];}[D(0x10c)](){const O=D;return O(0x166)!=typeof $task;}[D(0xb9)](){const z=D;return z(0x166)!=typeof $httpClient&&z(0x166)==typeof $loon;}[D(0x104)](){return'undefined'!=typeof $loon;}[D(0x144)](i,A=null){const G=D;try{return JSON[G(0xc6)](i);}catch{return A;}}[D(0xdb)](i,A=null){const V=D;try{return JSON[V(0x132)](i);}catch{return A;}}[D(0xc1)](A,v){const t=D;let M=v;const W=this['getdata'](A);if(W)try{M=JSON[t(0xc6)](this[t(0x133)](A));}catch{}return M;}[D(0x12a)](i,A){const J=D;try{return this['setdata'](JSON[J(0x132)](i),A);}catch{return!0x1;}}[D(0xb2)](i){return new Promise(A=>{this['get']({'url':i},(v,M,W)=>A(W));});}[D(0x107)](i,A){const y0=D;return new Promise(v=>{const L=j;let M=this['getdata'](L(0xcd));M=M?M[L(0xc8)](/\n/g,'')['trim']():M;let W=this[L(0x133)]('@chavy_boxjs_userCfgs.httpapi_timeout');W=W?0x1*W:0x14,W=A&&A['timeout']?A['timeout']:W;const [b,R]=M[L(0xb3)]('@'),f={'url':L(0xd4)+R+L(0xfe),'body':{'script_text':i,'mock_type':L(0x159),'timeout':W},'headers':{'X-Key':b,'Accept':L(0x148)}};this['post'](f,(Z,Y,k)=>v(k));})[y0(0xb6)](v=>this['logErr'](v));}[D(0xce)](){const y1=D;if(!this[y1(0x125)]())return{};{this['fs']=this['fs']?this['fs']:require('fs'),this['path']=this['path']?this['path']:require(y1(0xfb));const A=this[y1(0xfb)][y1(0xf3)](this['dataFile']),v=this[y1(0xfb)][y1(0xf3)](process[y1(0xf9)](),this['dataFile']),M=this['fs'][y1(0x165)](A),W=!M&&this['fs']['existsSync'](v);if(!M&&!W)return{};{const b=M?A:v;try{return JSON['parse'](this['fs']['readFileSync'](b));}catch(R){return{};}}}}[D(0xfc)](){const y2=D;if(this[y2(0x125)]()){this['fs']=this['fs']?this['fs']:require('fs'),this[y2(0xfb)]=this[y2(0xfb)]?this['path']:require(y2(0xfb));const A=this['path'][y2(0xf3)](this[y2(0xdc)]),v=this[y2(0xfb)]['resolve'](process[y2(0xf9)](),this[y2(0xdc)]),M=this['fs'][y2(0x165)](A),W=!M&&this['fs'][y2(0x165)](v),b=JSON[y2(0x132)](this['data']);M?this['fs'][y2(0xd1)](A,b):W?this['fs'][y2(0xd1)](v,b):this['fs'][y2(0xd1)](A,b);}}['lodash_get'](A,v,M){const y3=D,W=v[y3(0xc8)](/\[(\d+)\]/g,y3(0xc2))[y3(0xb3)]('.');let b=A;for(const R of W)if(b=Object(b)[R],void 0x0===b)return M;return b;}[D(0xc3)](i,A,v){const y4=D;return Object(i)!==i?i:(Array[y4(0x10b)](A)||(A=A['toString']()['match'](/[^.[\]]+/g)||[]),A[y4(0xcc)](0x0,-0x1)[y4(0x158)]((M,W,b)=>Object(M[W])===M[W]?M[W]:M[W]=Math['abs'](A[b+0x1])>>0x0==+A[b+0x1]?[]:{},i)[A[A[y4(0xd6)]-0x1]]=v,i);}[D(0x133)](A){const y5=D;let v=this['getval'](A);if(/^@/['test'](A)){const [,M,W]=/^@(.*?)\.(.*?)$/['exec'](A),b=M?this[y5(0xd7)](M):'';if(b)try{const R=JSON[y5(0xc6)](b);v=R?this['lodash_get'](R,W,''):v;}catch(f){v='';}}return v;}[D(0x101)](A,v){const y6=D;let M=!0x1;if(/^@/[y6(0x122)](v)){const [,W,b]=/^@(.*?)\.(.*?)$/['exec'](v),R=this[y6(0xd7)](W),f=W?y6(0x136)===R?null:R||'{}':'{}';try{const a=JSON['parse'](f);this['lodash_set'](a,b,A),M=this[y6(0x102)](JSON[y6(0x132)](a),W);}catch(Z){const Y={};this[y6(0xc3)](Y,b,A),M=this['setval'](JSON[y6(0x132)](Y),W);}}else M=this[y6(0x102)](A,v);return M;}['getval'](i){const y7=D;return this[y7(0xb9)]()||this[y7(0x104)]()?$persistentStore[y7(0x146)](i):this[y7(0x10c)]()?$prefs['valueForKey'](i):this['isNode']()?(this[y7(0xc4)]=this[y7(0xce)](),this['data'][i]):this['data']&&this[y7(0xc4)][i]||null;}[D(0x102)](i,A){const y8=D;return this[y8(0xb9)]()||this['isLoon']()?$persistentStore['write'](i,A):this[y8(0x10c)]()?$prefs[y8(0x12e)](i,A):this[y8(0x125)]()?(this[y8(0xc4)]=this[y8(0xce)](),this[y8(0xc4)][A]=i,this[y8(0xfc)](),!0x0):this[y8(0xc4)]&&this[y8(0xc4)][A]||null;}[D(0x110)](i){const y9=D;this[y9(0x163)]=this[y9(0x163)]?this[y9(0x163)]:require(y9(0x163)),this[y9(0x113)]=this['cktough']?this[y9(0x113)]:require(y9(0xf8)),this[y9(0x15c)]=this[y9(0x15c)]?this['ckjar']:new this[(y9(0x113))][(y9(0x161))](),i&&(i[y9(0xee)]=i[y9(0xee)]?i[y9(0xee)]:{},void 0x0===i[y9(0xee)][y9(0x11e)]&&void 0x0===i[y9(0xb8)]&&(i['cookieJar']=this[y9(0x15c)]));}[D(0x121)](i,A=()=>{}){const yy=D;i['headers']&&(delete i['headers'][yy(0x15f)],delete i[yy(0xee)]['Content-Length']),this[yy(0xb9)]()||this[yy(0x104)]()?(this[yy(0xb9)]()&&this[yy(0xe2)]&&(i['headers']=i[yy(0xee)]||{},Object[yy(0x109)](i[yy(0xee)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[yy(0x121)](i,(v,M,W)=>{const yj=yy;!v&&M&&(M[yj(0x11c)]=W,M[yj(0xf5)]=M[yj(0xf1)]),A(v,M,W);})):this[yy(0x10c)]()?(this[yy(0xe2)]&&(i['opts']=i[yy(0xb0)]||{},Object[yy(0x109)](i[yy(0xb0)],{'hints':!0x1})),$task[yy(0x150)](i)['then'](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[yy(0x125)]()&&(this[yy(0x110)](i),this[yy(0x163)](i)['on'](yy(0x127),(v,M)=>{const yq=yy;try{if(v[yq(0xee)][yq(0x112)]){const W=v['headers'][yq(0x112)][yq(0x126)](this['cktough'][yq(0x11e)]['parse'])['toString']();W&&this['ckjar'][yq(0x162)](W,null),M[yq(0xb8)]=this[yq(0x15c)];}}catch(b){this[yq(0x137)](b);}})[yy(0x114)](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(0x11c)]);}));}[D(0xf7)](A,v=()=>{}){const yo=D;if(A[yo(0x11c)]&&A[yo(0xee)]&&!A[yo(0xee)][yo(0x15f)]&&(A['headers'][yo(0x15f)]=yo(0x117)),A[yo(0xee)]&&delete A[yo(0xee)][yo(0xbd)],this[yo(0xb9)]()||this['isLoon']())this[yo(0xb9)]()&&this[yo(0xe2)]&&(A[yo(0xee)]=A[yo(0xee)]||{},Object['assign'](A[yo(0xee)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[yo(0xf7)](A,(M,W,b)=>{const yi=yo;!M&&W&&(W[yi(0x11c)]=b,W[yi(0xf5)]=W['status']),v(M,W,b);});else{if(this[yo(0x10c)]())A[yo(0xbe)]=yo(0x142),this[yo(0xe2)]&&(A['opts']=A[yo(0xb0)]||{},Object[yo(0x109)](A['opts'],{'hints':!0x1})),$task[yo(0x150)](A)['then'](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(0x125)]()){this[yo(0x110)](A);const {url:M,...W}=A;this[yo(0x163)][yo(0xf7)](M,W)[yo(0x114)](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(0x11c)]);});}}}}[D(0x164)](i){const yv=D;let A={'M+':new Date()['getMonth']()+0x1,'d+':new Date()[yv(0x111)](),'H+':new Date()[yv(0xe6)](),'m+':new Date()[yv(0x103)](),'s+':new Date()[yv(0xda)](),'q+':Math[yv(0xb7)]((new Date()[yv(0x13c)]()+0x3)/0x3),'S':new Date()['getMilliseconds']()};/(y+)/[yv(0x122)](i)&&(i=i['replace'](RegExp['$1'],(new Date()[yv(0xfd)]()+'')['substr'](0x4-RegExp['$1'][yv(0xd6)])));for(let v in A)new RegExp('('+v+')')[yv(0x122)](i)&&(i=i[yv(0xc8)](RegExp['$1'],0x1==RegExp['$1'][yv(0xd6)]?A[v]:('00'+A[v])[yv(0xf4)]((''+A[v])[yv(0xd6)])));return i;}[D(0xcf)](A=q,v='',M='',W){const yW=D,b=R=>{const yM=j;if(!R)return R;if(yM(0x141)==typeof R)return this[yM(0x104)]()?R:this['isQuanX']()?{'open-url':R}:this[yM(0xb9)]()?{'url':R}:void 0x0;if(yM(0xcb)==typeof R){if(this[yM(0x104)]()){let f=R['openUrl']||R[yM(0x118)]||R[yM(0x129)],a=R[yM(0x11b)]||R[yM(0x14f)];return{'openUrl':f,'mediaUrl':a};}if(this[yM(0x10c)]()){let Z=R[yM(0x129)]||R[yM(0x118)]||R[yM(0x14e)],Y=R[yM(0x14f)]||R[yM(0x11b)];return{'open-url':Z,'media-url':Y};}if(this['isSurge']()){let k=R[yM(0x118)]||R[yM(0x14e)]||R[yM(0x129)];return{'url':k};}}};if(this[yW(0xea)]||(this[yW(0xb9)]()||this['isLoon']()?$notification[yW(0xf7)](A,v,M,b(W)):this[yW(0x10c)]()&&$notify(A,v,M,b(W))),!this[yW(0x14a)]){let R=['','==============📣系统通知📣=============='];R[yW(0x134)](A),v&&R[yW(0x134)](v),M&&R[yW(0x134)](M),console[yW(0xff)](R['join']('\x0a')),this[yW(0xf6)]=this[yW(0xf6)][yW(0xc7)](R);}}[D(0xff)](...i){const yb=D;i[yb(0xd6)]>0x0&&(this[yb(0xf6)]=[...this[yb(0xf6)],...i]),console[yb(0xff)](i[yb(0x124)](this['logSeparator']));}[D(0x137)](i,A){const yR=D,v=!this[yR(0xb9)]()&&!this[yR(0x10c)]()&&!this[yR(0x104)]();v?this[yR(0xff)]('','❗️'+this[yR(0xc9)]+yR(0x15d),i['stack']):this['log']('','❗️'+this[yR(0xc9)]+yR(0x15d),i);}[D(0xb5)](i){return new Promise(A=>setTimeout(A,i));}[D(0x13d)](i={}){const yf=D,A=new Date()[yf(0x130)](),v=(A-this['startTime'])/0x3e8;this['log']('','🔔'+this[yf(0xc9)]+yf(0x119)+v+'\x20秒'),this[yf(0xff)](),(this[yf(0xb9)]()||this['isQuanX']()||this[yf(0x104)]())&&$done(i);}}(q,X);}
|