mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
25 lines
90 KiB
JavaScript
25 lines
90 KiB
JavaScript
|
/*
|
|||
|
活动名称:关注店铺有礼 · 超级无线/超级会员
|
|||
|
活动链接:https://cjhy-isv.isvjcloud.com/wxShopFollowActivity/activity?activityId=<活动id>
|
|||
|
https://lzkj-isv.isvjcloud.com/wxShopFollowActivity/activity/activity?activityId=<活动id>
|
|||
|
环境变量:jd_wxShopFollowActivity_activityUrl // 活动链接
|
|||
|
jd_wxShopFollowActivity_joinMember // 是否开卡,默认不开卡
|
|||
|
jd_wxShopFollowActivity_notify // 是否推送通知,默认不推送
|
|||
|
|
|||
|
7 7 7 7 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('关注店铺有礼(超级无线/超级会员)')
|
|||
|
const jdCookie = require('./jdCookie')
|
|||
|
const common = require('./function/jdCommon')
|
|||
|
const notify = require('./function/sendJDNotify')
|
|||
|
const getToken = require('./function/getToken')
|
|||
|
const { wuxianDefense } = require('./function/jdCrypto')
|
|||
|
const { wuxian_savePrize } = require('./function/savePrize')
|
|||
|
|
|||
|
var iil='jsjiami.com.v7';const Ii1iiIl=I111111I;function IliiiI(){const III111iI=(function(){return[...[iil,'QxjUqlsCjUGiHSaBmiD.coOPmy.kGvWUH7eSCwBS==','oI5Kqmo0','W5ldNr8jWOFcKLjwWRNdGa','WRzPiq','WQCUwcJdQa','CsBcQmki','W784W6GcFa','tJlcKrKo','aLmQW41Xhmk0WQ4ftrhcQG','x3xcSruWua','WRPEW40jymomWPL0k8ovjG','bCkaW4TNW5lcPSkHC8kg','wvZdG8oKWQW','W4GjW7qoFG','rCkDWQZcP8ksE8kS','WOOFuSkjW5C','WQFcM8ogCJO','yIBcTCkD','tmoZWRH2ha','W4RcV8oPDw3cQ1CXc1ikWRO','zUE7UUAER+++Q+s5MEASPoAuRUEdRUACLEwtOtG','W4tdOSol','W77cR8o+C1e','WPNcGsRdTKVcVGHAhG','5Rw05yU45lUQ6zMX5BIy6zgW5l2m5zo+5y2x5lQ3','WQFcU8orEWy','4PYkcEIhQUAEI+I+GUIHIEMcGowjP+s7TUMxN+IUQuK','qHDeW5ldM3C6qW','taLDW7FdMq','vHVcVt4r','EsJcUW','W4ldSKP0AW','W4NcTtVdM1BdOZZcTG','W4VcSmk5W5JdPCk/W7lcQCoXW4NdL8oGW6DNDa','5lIB5Awn6yoy556v','W5aOW5xcPbHids1KW4NcN8ourq','W4hcQYG','EbyLWOHRuq','zHrDvca','WP0Ij8oaWPxcRG','BNDLaCo7W6hcPhdcVW','sCoXWOfBpq','5ywf6ygy6kcB6AgZ5yY5','6i2S5B6Q776J','CthcS8kmWQO','cr9DAmoeW7NcH3hdJN4','obbYW7yMj8oi','W4BdMmomtSot','WPKPj8owWOBcVCoi','5yYQ6icB5lIs5ykG77YY','5RwO5yIP5BAw5lQvWQy','WQCMCmoXW5a','W6ZcGqFdTMBdLaBcLCokyG','4P2gxUAEL+IaJ+ASOUEILowKLEEsTCke','W4BdOmocW7q6','fgCPW5fn','rSkFWQVcG8kVzCkNWRy','tSoqb8k1n2Ln','W4NdRSoyW6W8leGPW5tcHa','WPaJoSoa','WRCcDI7dOa','aSkiW4zGW5O','W48oW78nyG','ErJcKYCw','AH5gWRBcQsu','WRzpkHNdIW','n8oCWPORta','WOdcLmo7qd1jdq','uCo9W6RcLSo1W51aW4FdHG','vmoVW47cPCo7','kt9DtmoUW74gW4/dUW','W4pcT8oWCa','WOfRWQJdUuuCxbS','W4tcUIZdLG','WQ4fFa','WQBcUJtdThK','W4tdS1n/wG','uCoLW6NcImoi','bxSSW4Dc','ktLx','e8kUwdjmbCoMWPZdRq','5RsM5yQ65BE057QG5P+b5OQd5lU55A2b5z+5','WOP5WPBdUx0mvq','qXDxW4RdUK4WqmkioGxdGG','8koTGXW','W54SamoKFCozW7BcSa','rbzsEZa','eCkfFG9i','bdPFtCok','pFcBH6e','FevmcCop','F8ozW7hcTmkG','iuZcHmoKpwRcRd4vWPaNlYxcGG','q8orW53cKa','W4BcTcRdMKldSWNcRmoT','BavArGe','W4aHhmoNvCoqW7u','8kA+VU+5LW','uwxdR8o4WONdKmoTW4vTba','WQjMWQrYhq','rmodW73cKmkcWP/dQsu','WPb/p8oswq','Bmo+WObqiCk5dq','WOXQWOtdQ20msWzh','EmoLW7NcSq','WPJcIYZdMexcPtnAfCoTW4pcHHJcNW','rh7cSquUua','ArD4CJ8','wZ7dPwO','e2/cQSongW','FfZdHmoqWRRdQSogW6XTlG','pSoKf2JdP8ktW48','BSopW5RcOmo5W6n+W7ddQSo8W5K','p8oUaW','W64RaCoGuCozW6tdSHyeW5JcRW','w8kxWR/cKSkN','xJZdPwiUWQ3cN8oNBce','qL7dQCoBWPq','BWZdJ8kDm8k3DmoaW5D+W4SG','a0aSW4m','WP1deG','pdHauCobW6S7W4m','6i2i5yY4EmoRq8kKdfWBW57dJmok5AwC6lEF776c','6i6I5y6rWOFcVCkaW6JcVCkMgowLOoI1MG','WQSfWRveWOy','W7T4W6zVzvlcUmkI','WOKIW6iIeG','rCoCda','WPyZuSk0W6K','qMpdQSoKWPRdISoT','FthcJrCcW7ZcMCo8WPdcL0OnEbdcNwe','xSo/W77cUSke','WQ04WPvIWPu','vXjYWQpcIG','fSkRsce','W4RdR8oEW7aI','5PYj6igi6i+d5yYq55w+5OI56yMC5P+T5l6l5Ocd772L','W5ldNr8jWOFcKLjwWRpdI8kiW5KfuMO','W4BcO8k4W6tdSSkCW7pcISoWW4hdISoG','cSkhjCoC','WOZcIZVdQu/cVGHAhG','BEwTQoEkRmkk','tSorW4tcLSkh','imoPc2VdJ8kq','W47dJCo6Cmob','WQqUW4CxeG','uSkeWQtcOmktESkTWQG','W6FcISodumk9pSkPyd7dVIDGW7hOR5BMSO3LPyFOTjRdVUkFTGlMLAhLKydLUQhMLlNMJRO','WOpORkBMSOJLPRROTQxdSEkCISoz5PwJ5zgT5BI55PE15O+h','p1dcICoEF0JcINOuWQjMcXJdNCo0wG','xCoDW7lcJmkb','h+IUQoAZK+wKUUI1VCoK4P23WR4','qqbrW7BdOw4Lx8kEgGhdK8oOrazlWR4D','6lo86lgo5y+q5lMf','WO99WPhdJ0etsqvqW4lcVCoswuNdSCoLWQG1loACNUIbP+IoM+wmJ+w4GUMrR+s+GUAbTG','ahaXW5TW','WRafCsddTK0YCq','tbbU','4PQcWRxORBlLHQNLRkBKU7NLV6tOPkhNMkFNJj3LOAFLJQVPHz3LKBJLHipOV63OOzJOHk/MNBy','W6RdJCojw8oXWPu','W4JcRYZdH1dcVxBdQG','E8obW6NcJSoV','bmknCqjc','b8kBW5i','CqBcNYeV','WRGNW78QeSkLW7X9','W60EW5eH','WR5NmSo5','WO/XJjYA','W4lcSSk+W6ldTSk4W6lcGmoaW4/dG8oXW4X8Bq','kConWPKg','5BsZ57Qi5y+J5lUv6l225lQ15zoLW4G','u8keWRFcUmkYq8kNWQVdK8kQWPxcHa','W6qXk8oKra','BSo8WPPZomk5f8oKWQFcHK/dLG','WOWFzmkRW5K','W4ZcOtpdNq7dRIRcS8kTrstcP1Xup27dGSkr','W4xcUmkY','WRhcOsCNxrOpgwtdRa','d8kdW7P5W7a','brL7uSo0','WOdXIAgU','cNpcR8oMf1BcMaC5WOG','tcVdO2i2WQpcGSo4xa','W50xhmoZta','DuRdJmoWWPG','W5RdKaGmWOtcN0nC','WOr3WOi','zSoSWQn/i8kYbSoV','aSotW4xcHSkBWPldOtjnW6JdNYtcLWKajK3dJL8','5yQF5ys65BIg6zoX5l2c5zkC5OU75yIb','le3cR8oqkLBcRZGaWOaPlZZcImoUDSk+bSowWObbr1i9WOhcLSkAkhFdGSoJCZtdOa','WPrklWddRG','W7OlW5CPEwZcRNtcVW','eLe8W4n3nmksWRiywbpcOsG','WRTLjCo9CdaoW4BcNG','FdtcKCkmWOldOCk9WRO','WPSYsmkzW4y','W4KphSoFDG','xSoeW5hcH8kBWQNdPtPA','c8kiwdD8','uCo+W6ZcKCoUW4vp','6i6b5y+
|
|||
|
|
|||
|
// 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.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):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:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"])
|