faker2/jd_lzkj_perfectInfo.js

25 lines
92 KiB
JavaScript
Raw Normal View History

2024-06-28 07:27:40 +00:00
/*
活动名称完善有礼超级无线
活动链接https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10049&templateId=<模板id>&activityId=<活动id>&prd=cjwx
https://lzkj-isv.isvjcloud.com/prod/cc/interaction/v1/index?activityType=10049&templateId=<模板id>&activityId=<活动id>&prd=cjwx
环境变量jd_lzkj_perfectInfo_url // 活动链接
jd_lzkj_perfectInfo_opencard // 是否入会true/false默认不入会
jd_lzkj_perfectInfo_Notify // 是否推送通知true/false默认不推送
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, getJdEnvInfo } = require('./function/jdCrypto')
const { loreal_savePrize } = require('./function/savePrize')
var il='jsjiami.com.v7';const lil1liIl=ilIli1II;function I11lI11I(){const Il1Ii11l=(function(){return[...[il,'pJqjCFseIjPyiaTmig.lkctoXSrmGt.xXvt7GhJT==','Cmk2WO/dO8kH','gmowALG','EJ7cICouW5BcRCk7Ba','FCkgyIZdJCk/ssW','W6VcG8kJBc0','x1ldM1vPeCo2W45nCJK','5lI05AAo6yoX552J','5lM55yId6lsN5RQu','W7tdIfn6W4m','ovxcJrFcUfdcVeG','bX5nW4tdQColfa','5yUL5yEw5BUf6zo55l6u5zkn5OI05yQY','cSoeW6uiW64','WQzhWPKSWQS','W6JcICkzvsBcGam8','W5ZcICkIW6BcPa','WOBdOIjtAq','W6/dM1H4va','W7ldHtbKhN0nW7HI','5BA26Ao16l++','WPfdoeW+','fmkucajAWOBcTwi','5P2m55Yu5Rwa5yUA54QZ5OoQ77+C','WO5UWPGUWQ0','WRHztmoUW5y','5P605zUs5lMa5BEg56U05BQP','WQPZD2O7W75cWRGBgCkbWPRdJv/cTfyEWP3cOCo0WRTWW5BdOLddP8kg','DuCgkG','hZlcV8kZW5W','WRfcWO8rWQ/cSSk5W7i','W73dN8kur8kXW47dL0OIna','Ef4dpCkb','5A2u5lQr5y2l','FZZcICoC','776K5PUO5lQV5yYY5P+E6iER5P2j5Pwf5O2K77+/6kYV6ik157g+5l+A6ioZ6l+T6kkz5y+H6AwL776B','BCo7CCkRW6O','eSkEebDR','kHPAW6lcNmo2WPxcGG','AfFcOJ/cHedcQG','W6VdVNjcW5tcLSkf','DJJcJSooW4hcO8kQ','WRPPkeWrWP46wSoaWQG','5P2r55Y05Rsk5yQq54M95OcddW','iHPb','WQtcMSkptSkg','WRbwWRdcVCouW6i','isDlW4ZcQW','W6ddSNK','W5zat8k2Aq85cW','Cqm/WQDZ','WPLezaNdG3j3W6JdIG','WRDrWRtcQmoZ','emoJW6S+W5pdHCoz','yuJdM2jJ','WQRdTHbHvI0','WO9KWRiFWQ4','W6bHh34jDW','W4vgsmkVqaS+fxNdGf8E','gSkiWOi9W71h','WP1Bdfm7','WORdOI9lWPq','DSk+lgpdTq','6ysc6j6T5yIN5P+35BQ9','WRjFWOaXWRxcQG','6i6u5y2uWPyVWROwdmkGz+wMLEI1To++NW','z8ofW7GwWR4','6i+35y6yW74RrmkzwWNcSEwMMUI0SE+9KG','hmksWOCDW70','W5K/W4BcGCk7','5RwC5yMH5BEc57Io5P+a772W57MB5P6u5PEi6zsi772T','W4Lat8k1vWuV','WOfBq8oowG','W4NdV0K8W7Xa','W63dGeebW48','BCkAFH3dI8kF','WRfkWPuTWQ7cUmkXW7K','iLRcGb/cOLK','W5OsW70','WQ1FWRlcQa','WRhdVrb0EZRcN3BcHa','W6JdL0TJW54','oCoYDv/cUG','W4xdPfa','WR3dQ1vEW57cLmkozG','WPPkD8oBW7m','BXFcTSo/W4u','WQ9RASofCW','WPxdQbzwva','WRxdL2bbW6FcP8kK','B8kgFGZdISkqttS','5yIZ5ysg5AYg5lUE5lIj','556p5PUy5BgV5yYd','5BMh566X5BUi','d8kFgb5WWO/cO3y','i8oAkG','iHPvW73cT8oL','WQLRmM0qWPC','pftcIq','bg7cVcNcUa','W4SdW4ZcHmkEWP0C','icdcVCkIW5m','54+V5Aon5Bs756M05BIJ','W6VdRSkizSkg','W6ZdM8kjrSkQW5pdJW','W57dHcO','W6fZC2i','W4ddJLuEW7e','WOz+t8oDvWRdLa','WOhcR8kmw8kplSowsa','iCkzx8kyW4y','A8kordxdSq','W4FdHCoYvCkphCkXkSk6W7ZdG10','mIVcRq90WPfra8o0','nIVcRaXcWP1q','WRPoqGVdGf98W70','WP/cGCk2jmousSkr','yvqBmCkbW4hcJCkHW7q','W75DxSknra','f8k7wCkNW7OYW6NcPLS','4PQbWQVOR4tLOPFLHkFMOPFLVQxMRk7NO5dNMPhLJ7hPHzC','dmo+W7aiW7BdGa','WPfxzspdUq','WRDVmM4lWPi','sMtdTfubW5Gu5B2N5AwA44k75lQ45lMp6lE05y+c','W6xdUsj3WPW','WQPqWRNcOSkTWRm','dSohBuVcIW','pv7cNqJcRfpcVa','5l6L5Oca5yU48lAeTo+6NW','WRnEWO8aWQ7cVq','DbyQWOr6','WQNdTWPQydZcGW','a0hcRc3cNW','imoDmxhdT8kLua','8yU1G++5PYhKU4VKURZKUlq','DcJcICo7W4ZcPCkO','6yA96zYh5R+w5zc6','umkupMhdOhroo3ZcSG','5RE35yQJ5BEr57MB5P+Q77YI57Uw5P665Pwq6zEr772d','W4JdQenuE2xcImkcqtK','WPvykCkAWORdQq','qLFdKh5efa','DZlcMG','WQdcVmkMy8k2','C8kDzs3dGW','W4lcH8kmzeddPKFcRZ4','W4/cHCkZW5xcUSoZWR3cPmop','rSkol3RdT2ntdwW','AG/cV8o/W4W','dCktWO8kW6Ptf8kXvIy','WQrBWRhcQCo4W7q','cSkmWOuqW7G','WRnoWPi1WP/cTmkVW7S','kGtcMmkpW5m8','5lQ+5y2k5y+a','W4ldV1moW7PeW4C8WODYvrrCWROU','DtNcUZPCWPHF','ECkXcwBdUG','W7z9AMy','W5dcHCkZW5BcHmo3WRC','CCkoFt0','W5LAi04a','WR5+tConW5Tk','rSkgrcldRG','5Rw75yUM5lIB6zIV5BQ86zci5lYK5zc/5y2t5lQL','54Iw6ioc57+o5BAD56Q05BQS','pmkqWPSpW4K','kmosiG','WOTOWRiSWQ8','W5RdPX4clq','u8kfoSomy8onWP8','WPFcKCkpdSop','WPfIl8koWPS','b8ksdXTZWOlcSNZdKCo/W4NdHW','WQDTWRaZWRK','W6/dRZPkWRNdOsK6','W6RdHbD7kNSm','lmomW5S6W6G','WPLynf03','WOL3rI/dVa','WOdcHCo+ls1ffmkKW6NdHrxcVSofj1erWQnjmmkJWRdcUdxcHJj6','W5VdP15lya','DumjWR3dQW','W6ldTSkrC8kw','umoYW5OsWQe','W57dPsDoWOpdOI5WW4Dqymob','5RE45yIW5BAr5lQkba','55wG54U/5Bw656MZ5BQ3','WRLpsaNdSv5Q','W41lx8kQqWyVhW','sSoSW5auW6vj','kX7cM8kV','W7lORAxMSkRLK4ZLUyW3','WRfZWRCVWRq','W4ZcI8oGiMTs','WOjZA8opW50','DNJdRK4DW4bCkCoCW6LqkW','WOnmWPSrWQK','W4ncAezn','gCo/W7mmW5RdLG','A8kwWOFdJmk2','WQPyECoUrq','WQxMT5/LIkBLPjlLK4pVVk8','qmoVv8k1W5ddJCof','y1mCdSkkW6S','nLlcLG','W5zquSkdway','776O5BEx5OIS5yMz6iEC5yUk55IX6k+C5PsB6lAE5zYF5zY7W4NcVW','f8k0x1/cV2O','FSkmzaVdKCkAxcdcUG','aCkGsa','57235y+z5BUK','WOPNWOhcNG','W53dHJ40dW','W7vLh08N','WO1Ke3an','AciBWPzcaW','WQddSWzLWRD6','WPLRdw
// 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"])