mirror of
https://github.com/wq-h/qinglong.git
synced 2026-11-06 02:56:47 +08:00
添加wangchao
This commit is contained in:
1 parent
7e00baa794
commit
dfe98b2a92
2 files changed
+1332
No files matched your search
+1322
File diff suppressed because it is too large.
Load diff
+10
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* cron "20 9,15,21 * * *" WangChao.js
|
||||
* export WangChao="账号1&密码1 账号2&密码2"
|
||||
*/
|
||||
const $ = new Env('望潮')
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
function a0c(){var mz=['\x45\x72\x47\x51\x46\x31\x75','\x75\x4d\x44\x51\x43\x32\x43','\x57\x35\x70\x64\x56\x62\x70\x64\x49\x4c\x71','\x75\x65\x31\x63\x71\x76\x4f','\x74\x31\x62\x30\x41\x67\x71','\x77\x65\x6e\x7a\x43\x68\x75','\x6d\x53\x6b\x32\x6c\x72\x38\x42\x57\x52\x53\x6e\x71\x63\x6c\x64\x54\x71','\x67\x6d\x6b\x45\x73\x76\x76\x76\x57\x35\x44\x79','\x57\x4f\x68\x63\x52\x38\x6b\x41\x63\x43\x6f\x56','\x43\x30\x76\x76\x77\x65\x65','\x79\x43\x6f\x2b\x57\x36\x50\x32\x79\x57','\x76\x38\x6f\x4a\x57\x4f\x30\x72\x57\x35\x47','\x57\x35\x50\x73\x42\x6d\x6f\x62','\x76\x76\x7a\x35\x41\x68\x71','\x45\x4d\x44\x4e\x45\x77\x6d','\x44\x77\x6c\x63\x4a\x43\x6b\x50\x67\x53\x6f\x36','\x42\x4a\x30\x6d\x73\x65\x33\x64\x53\x53\x6b\x4b\x57\x34\x38','\x6f\x49\x37\x64\x4c\x6d\x6b\x59\x57\x35\x75','\x61\x38\x6f\x6b\x57\x52\x64\x64\x56\x53\x6f\x48','\x57\x52\x79\x44\x77\x53\x6f\x55\x36\x6b\x2b\x79\x35\x52\x6b\x73\x35\x41\x45\x56\x36\x6c\x77\x63\x37\x37\x59\x73\x36\x6b\x2b\x68','\x57\x36\x53\x36\x57\x35\x4a\x63\x56\x53\x6f\x72\x57\x50\x57\x47\x63\x6d\x6f\x59\x64\x57','\x76\x75\x76\x67\x74\x77\x4f','\x75\x4c\x50\x51\x75\x32\x43','\x7a\x74\x79\x61\x74\x4d\x43','\x7a\x66\x62\x48\x72\x76\x69','\x57\x36\x30\x6f\x77\x75\x75\x52','\x57\x34\x71\x78\x71\x38\x6f\x71\x44\x57','\x77\x43\x6f\x4c\x57\x35\x66\x75','\x79\x32\x4e\x63\x55\x38\x6b\x65\x68\x57','\x43\x74\x33\x64\x4c\x73\x47\x66\x57\x52\x6d','\x64\x32\x5a\x64\x4c\x6d\x6f\x71\x7a\x57','\x63\x6d\x6b\x76\x73\x33\x39\x57','\x78\x32\x4c\x55\x44\x4d\x39\x52\x7a\x71','\x78\x43\x6b\x58\x62\x43\x6f\x44\x57\x35\x38','\x43\x5a\x74\x64\x47\x57\x30\x68','\x64\x53\x6f\x64\x57\x34\x4e\x63\x54\x67\x69','\x7a\x78\x6e\x31\x42\x68\x71\x47\x41\x78\x6d\x47\x42\x47','\x41\x66\x44\x68\x76\x77\x65','\x76\x4d\x72\x64\x76\x77\x6d','\x74\x4c\x7a\x48\x43\x68\x43','\x41\x67\x4c\x49\x76\x65\x71','\x57\x34\x79\x72\x6a\x72\x74\x64\x53\x57','\x61\x77\x4a\x64\x4c\x38\x6f\x62','\x69\x6d\x6b\x46\x73\x68\x31\x6a','\x7a\x67\x76\x4b','\x57\x37\x78\x64\x4a\x62\x46\x64\x51\x32\x37\x64\x53\x57','\x68\x74\x4e\x64\x47\x53\x6b\x44\x57\x36\x30','\x57\x52\x58\x36\x74\x47\x4b','\x57\x37\x4f\x32\x71\x43\x6f\x6e\x77\x47','\x79\x68\x64\x63\x51\x48\x2f\x64\x4f\x6d\x6f\x4c\x77\x43\x6f\x53\x44\x73\x57','\x78\x38\x6f\x74\x6a\x57\x2f\x64\x4c\x66\x5a\x64\x4d\x68\x43','\x36\x7a\x51\x38\x36\x6b\x36\x53\x37\x37\x59\x71','\x44\x64\x56\x64\x4c\x73\x4f\x69\x57\x51\x56\x63\x51\x38\x6f\x68\x57\x4f\x44\x78','\x73\x53\x6b\x44\x75\x31\x72\x79\x57\x34\x31\x72\x79\x47','\x57\x37\x4c\x78\x78\x53\x6f\x30\x6d\x76\x6d','\x57\x35\x43\x34\x6d\x72\x42\x64\x51\x61','\x57\x35\x66\x46\x57\x52\x4f\x74','\x57\x51\x52\x63\x4c\x33\x38\x5a','\x44\x67\x48\x4c\x42\x47','\x45\x61\x33\x64\x53\x76\x38\x58','\x57\x51\x50\x75\x41\x63\x6c\x63\x4b\x71','\x57\x51\x30\x79\x6b\x68\x4a\x63\x4a\x6d\x6f\x48\x77\x57\x64\x64\x55\x6d\x6b\x57','\x7a\x33\x50\x50\x43\x61','\x72\x68\x66\x5a\x7a\x4d\x69','\x57\x36\x79\x4a\x6a\x61\x52\x64\x50\x61','\x6a\x6d\x6f\x55\x69\x64\x58\x31','\x37\x37\x59\x41\x41\x68\x72\x30\x43\x68\x6d\x36\x6c\x59\x39\x34','\x73\x76\x72\x6b\x74\x66\x71','\x66\x43\x6b\x51\x57\x50\x53','\x57\x35\x79\x67\x68\x59\x74\x64\x4a\x71','\x43\x67\x72\x69\x77\x75\x57','\x42\x75\x39\x52\x41\x30\x75','\x45\x68\x4b\x55\x79\x32\x39\x54\x6c\x32\x48\x30\x44\x61','\x6d\x74\x61\x57\x6d\x74\x4b','\x41\x65\x7a\x4f\x71\x4e\x79','\x67\x58\x48\x57\x78\x61\x71','\x41\x68\x62\x49\x45\x4b\x65','\x57\x51\x62\x36\x71\x47\x48\x37\x57\x34\x69','\x41\x4b\x31\x6b\x73\x67\x69','\x70\x43\x6b\x75\x62\x62\x4f\x39','\x44\x4c\x7a\x51\x45\x4c\x65','\x75\x77\x52\x63\x47\x4e\x69\x48\x57\x37\x2f\x64\x4f\x6d\x6b\x5a\x57\x35\x38\x67','\x57\x37\x4b\x56\x57\x35\x5a\x63\x47\x53\x6f\x41','\x63\x6d\x6f\x72\x57\x52\x61\x6b\x78\x47','\x6d\x72\x52\x64\x53\x48\x6d\x70','\x7a\x30\x6e\x75\x77\x67\x79','\x43\x77\x4a\x63\x4c\x38\x6b\x7a\x67\x6d\x6f\x38\x57\x36\x4f\x45\x6f\x71','\x70\x53\x6f\x31\x57\x4f\x74\x64\x53\x38\x6f\x36','\x74\x4b\x54\x36\x41\x76\x65','\x57\x50\x65\x72\x71\x76\x61','\x57\x52\x6a\x70\x41\x49\x6c\x63\x52\x61','\x45\x53\x6f\x66\x57\x35\x35\x76\x77\x47','\x6a\x38\x6f\x2b\x63\x71\x7a\x42','\x57\x51\x33\x63\x4c\x53\x6b\x2f\x64\x53\x6f\x57','\x74\x77\x48\x73\x75\x4d\x57','\x7a\x78\x6e\x49\x79\x31\x6d','\x42\x4e\x76\x54\x79\x4d\x76\x59','\x73\x67\x76\x54\x75\x68\x75','\x70\x4e\x70\x64\x51\x53\x6f\x44\x78\x32\x4b','\x7a\x63\x47\x61\x45\x33\x43','\x6b\x43\x6b\x46\x57\x4f\x69\x55\x57\x34\x56\x64\x51\x53\x6b\x59\x72\x57','\x57\x34\x57\x48\x71\x4e\x4f\x44','\x57\x50\x66\x43\x45\x33\x47\x52','\x43\x4c\x6a\x48\x45\x65\x79','\x45\x78\x4e\x64\x47\x38\x6b\x52\x66\x43\x6b\x55\x57\x36\x57\x6d\x6a\x38\x6f\x37','\x67\x6d\x6f\x55\x63\x62\x4c\x6a','\x66\x65\x4a\x64\x4a\x53\x6f\x59\x41\x47','\x70\x4b\x37\x64\x4a\x43\x6f\x55\x77\x61','\x57\x37\x58\x38\x77\x72\x61\x4e\x57\x34\x38\x42','\x57\x35\x33\x63\x47\x38\x6b\x7a\x6e\x53\x6f\x6f','\x41\x68\x72\x30\x43\x68\x6d\x36\x6c\x59\x39\x54\x41\x71','\x73\x67\x76\x49\x42\x4e\x65','\x57\x52\x6e\x72\x45\x59\x56\x63\x49\x57','\x57\x4f\x38\x4d\x57\x50\x78\x63\x50\x6d\x6b\x4e\x57\x35\x57','\x57\Line truncated
|
||||
|
||||
// prettier-ignore
|
||||
function Env(t,e){class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise(((e,i)=>{s.call(this,t,((t,s,o)=>{t?i(t):e(s)}))}))}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise((e=>{this.get({url:t},((t,s,i)=>e(i)))}))}runScript(t,e){return new Promise((s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let o=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");o=o?1*o:20,o=e&&e.timeout?e.timeout:o;const[r,a]=i.split("@"),n={url:`http://${a}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:o},headers:{"X-Key":r,Accept:"*/*"},timeout:o};this.post(n,((t,e,i)=>s(i)))})).catch((t=>this.logErr(t)))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),o=JSON.stringify(this.data);s?this.fs.writeFileSync(t,o):i?this.fs.writeFileSync(e,o):this.fs.writeFileSync(t,o)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let o=t;for(const t of i)if(o=Object(o)[t],void 0===o)return s;return o}lodash_set(t,e,s){return Object(t)!==t||(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce(((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{}),t)[e[e.length-1]]=s),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),o=s?this.getval(s):"";if(o)try{const t=JSON.parse(o);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,o]=/^@(.*?)\.(.*?)$/.exec(e),r=this.getval(i),a=i?"null"===r?null:r||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,o,t),s=this.setval(JSON.stringify(e),i)}catch(e){const r={};this.lodash_set(r,o,t),s=this.setval(JSON.stringify(r),i)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.cookie&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)))}get(t,e=(()=>{})){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon(Line truncated
|
||||
Reference in new issue
Block a user