mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-15 00:09:20 +08:00
25 lines
108 KiB
JavaScript
25 lines
108 KiB
JavaScript
|
/*
|
|||
|
活动名称:游戏赢大礼 · 超级无线/超级会员
|
|||
|
活动链接:https://lzkj-isv.isvjd.com/wxGameActivity/activity/activity?activityId=<活动id>
|
|||
|
https://cjhy-isv.isvjcloud.com/wxGameActivity/activity?activityId=<活动id>
|
|||
|
环境变量:jd_wxGameActivity_activityUrl // 活动链接
|
|||
|
jd_wxGameActivity_openCard // 是否开卡,默认不开卡
|
|||
|
jd_wxGameActivity_endScore // 指定游戏分数,默认不指定,填0也为不指定
|
|||
|
|
|||
|
7 7 7 7 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('游戏赢大礼(超级无线/超级会员)')
|
|||
|
const jdCookieNode = $.isNode() ? require('./jdCookie') : ''
|
|||
|
const notify = $.isNode() ? require('./sendNotify') : ''
|
|||
|
const getH5st = require('./function/getH5st3_0')
|
|||
|
const getToken = require('./function/getToken')
|
|||
|
const { wxSavePrize } = require('./function/savePrize')
|
|||
|
const CryptoJS = require('crypto-js')
|
|||
|
|
|||
|
var version_='jsjiami.com.v7';const _0x118950=_0x21a8;function _0x56ff(){const _0x49ad59=(function(){return[version_,'pMdOjpsrgjxgGiXakmigf.lcBqqomWS.SvM7Vrtt==','fCkygYxdNW','5QkL5Qch6kku','F8krW6W','WOFdO8k2','77Yw5OQ/6z6p5RMu5OIo5yU+5PAo5l2v5lIL','WQFcKmk9WQFdImk1xLSWW4JcLgndWPBORjdMSRtLP5JOTlxVVQNORkVMOl/MN6RNVyFOTjdPH6tOR4e','WRZcSCo7s8o8','su/cQCkY','c17cVmk0kGdcHSonDq','p8oLW7S4p8og','qqJdVqC+','tmkAngTqoG','WQ5fWOVdJSoZu8orW5OiWPzb','gCknWQuEW48','W7VdTSoiWPfR','nsSMvMFdKqBdOq','W7Wyj8kYWPu','WRGLCNWP','kYe8Dg7dGIG','AmkwpmoMtmoN','D8kiW5KUvq','WRhcGmo2pwy','eevoWQPUW6uuW7BdKSkhW5n+lCkffaS','nmkPWQRcIYa','5RII5OQ/5BYs5AwY5Aw06lAw','nmkImGddLa','WRFcTtOtWOS','WRFdTNXyWPC','W7P1pqG6WQy','W4DsWRRdIfOYW5O','WR0gnmoLW40','WP/cRSouECou','WOldOSkYWRldTCoHW5et','W7hdPSojWRXxW7GcW4ejW6ddRq','pI15W6lcOa','W5ybEsvFpSkFyaLMWQit','BCkKiCoewG','WRHSk3ddHq','iSk8nbxdG8oGWOya','W6SjsanJ','ACo9WRKuWOO','W4JdJuH0WPuWWQJdUCkiWR/dI8odWP9fWQG','6Aob6ksR5zIo54QP772U','B8orWR8dWRXCr8oQW4y','bmkwaZ8SW5uHBmo4W67dRmoP','wLNcRCkEfq','WPvMq8opmmoRW4RdNa','W4RcICocfSotyCoBqq','W4ldGSkNoXZcM8k9tq','W4jwWRRdVLuX','oSorW6CQja','mmoqWQu','5z6o57Iv55QO5PoT','lCo5WQ9rA8oACq','WOpcPSo9mei','W4epcW','hKbkWObRW6Cs','m0eGqmogW5BcQHBdJCokeuNcN8k+','WRzozJu','tSkzkM1B','WPS8WQ8IlmkWWRNdGwtcGW','s8kDp2PwpmkB','WQ7cGSkbWQBdIW','cCkAebmOW44','W6ddL8oEWO9w','W5pdPhPIWPC','cmkjcYtdQW','W7BcSYyYWQe','WPHDfLddPx41W5q','W6bQiJyH','W4nZWRTkma','W7TtWP3dNSocxSoYW5XAWOvuW4C','WOhcVSoAvCof','v1zrWQjIWRS','pSoCWPLCza','nCk6jai','W4GocmkyWRRcNJfR','DmksiSo2','dmkyWPmFW4G','iwOlw8oS','W5hdUa4uWRO','WRGLpa','W5tcS8oLpCoX','5OI76z6t5lYW5zck','CSoyWPrbW6e','WP0Tqgud','tCoPWOHsxmkIpSkXl8oRWRn7W7vzW6/dKCkEhHSYW74nW77dPmo5WOblW4ZcOa/cIYj4WPVdHfS/WPBdISomtCkGESoDCbZdHf8NW44CbmkwgSoEWR9gFrVdU8kTj8oDWORcNmklymoKjd7cRCo+xSoHtJ3cR8o/W4bcWQFcUd7dHupcNSoB','A8k2bgjW','imkFWQqXW4K','W5zLWQT3jCkdBmkRB8kNeSk/','m8o2W6KkeSonBSk5WOnudw4eW7q','WPfsWQ/dJSoe','WQhcLZW','WO7dOSkwWPhdOW','W7mHW5ldICoGnvvQW5KQWQqfca','W7xdQ8ol','E8otzSoqm8oAhHuCzSkq','WPZdK3LDWOq','a35TWRft','CSoEWQGGWRvzrCoGW5u','xmkCpCo+qCoNW4bFWPm','eoImIow9JowVUoEkSXu','jZqbxLS','W6pdUYyXWO0','BYOwh8kFi8oCWQmqW5/dNXPwCW','zZCq','W40tWRmMgG','s8ohW6XoWPBcHaLqA8kocSkC','tmoCWPbTW74','nYeSu3VdOc7dQ8kgBcqMBNC','W7/dPCkro8kyW4yrnhDrW5TlgstcPJe','CmoYWRKWWPq','WQ5BzJRdVG','WRroWOVdKmoJq8oNW4O','amkhbtKOW7eWzSoFW7BdU8oP','ECoExSo6aW','W4/cNCokea','jvyYqSoPW40','WONcSCkWWRNdSq','WPBcSCo6aetcKCoJswHFWR3dI8kHWRNcIIu','wN/cRSkWka','iCoGW70Sma','W5ZcKtmhWO0','5lIa5Aw46yoh55Y2','WQ4Qwg4OW4y','WRbBzdhdHSoyz8oWW6bRv8oW','W4X4adS8','wf/cKCkXaa','W7LdF8o/hmoFW7BdR8oZWR/dPmo7','WPJcNbGLW5n1W5pcRSowW5JcK8kfW4qWW5NcOG','w1HfW543','wCkAWPeYWPi','ECoAESoa','E8otCCoCnSoajGm+','WOVdSNHoWPm','WPejs8opW40','xmoBrxHQ','WPpcOCo4e2lcMmk9dd8cW73cQmoyW70','iGjvW6FcJNTh','D8kFbmolvq','mSo2W7Osi8oVzCk+WPvBhL0','WPnWWQBcICky','nxP1WObZ','qWaUb8kZ','WQTszCkcEmonW47dGmo0nM8','zc7dTG','6k+f5Aga5yAq5Q+456ct55I+5RAk5yU/6zo25O6U','BSoyWQfEW4K','W4WdgmkIWQ/cMdD3CI4/','fSkwWRey','WP52nuBdQq','W45wWR3dMG','p2bdumoVgmoLWPGqW6FdKW','uCkEaCoKuW','W7hcIXCqWQrGW5ddNJOdW6OXW4hdRgr2W6NcLmkZWPpdJ8oQ','qJtdVdK8','nmoLWQjoDSoBDLCF','5zIv5yA657If','fmk0lrSu','WOXoc0S','aSobWOvzDW','W6T6jGq','WOZdLmk/WO/dQa','WO7cICoamMy','gCkuWQGuW5tdNtnOs8kSpW','8jMSTSo75Ocl5zwg6i6c5B6+5AYr54UlW60','55QC5BIn5OMQ','wJmulSkU','W5fJWPPkja','WO5ae0BdR0C','umkimMDh','bSk6lWtdPW','ixOormoj','EISgk8k1','Bd0d','5y6055s95P29','lt4fb8kXgmolWQCqWOZdQHXjjSoCoSo0W6dcSmo6WOm','jmkaWOtcHWlcJxPRWRlcNSkD','qCo8WOHd','WPGMnmoRW7a','tCoPWOHsxmkIpSkXpCoZWRuLW7usW6JdL8ovd1OYW78eW7BcO8o/WOfsW40','FYddUbu','ACoQWR9drq','iSkgWOq','DSkqW6G','W6u9W4xcKSk5yqLIW640W4TDEa3cGmoHW7qde8k5c8oYWRq8W6LgW6ylz0L2WPFdNa','8ysLSU+4MHtKV6JMG4pLIQm','WOLjWPZdTCof','ySkbj8oEyG','WO4Mk8o5W6i','BZKdcq','WR5ByZO','v8kxdxPb','n8o/WQreCSo2y1mmzCkjy2i8','WOroWQZdPSof','W57dImkIlJBcGq','nc8HrG','ffTD','W7BdHwu','W7hcLSoagCos','W49fWRVdLeKyW5OiWRpdIgFdNq','W44/WQKVlCkMWRG','W73cNHCb','W50axYvV','WPJdUmkWWQZdTmorW50nga','jmkaWOtcHWlcJxPRWRlcNG','DSoeWOPhAG','c8khWRauW5y','5lUj5lQF5lU6','yKjN','W790WPf7kq','vSoCWRKkWQ8','W6ncWRDwga','WRHsW
|
|||
|
|
|||
|
// prettier-ignore
|
|||
|
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); 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, r) => { 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.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.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) 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 r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; 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), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== 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), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d
|