egg-minifapp
Version:
对接各种小程序之类app的sdk
1 lines • 3 kB
JavaScript
;const a4_0x57a615=a4_0x5eff;(function(_0x430c53,_0x2bc851){const _0x1a7edb=a4_0x5eff,_0x51bbf7=_0x430c53();while(!![]){try{const _0x418b0a=-parseInt(_0x1a7edb(0x13a))/0x1*(parseInt(_0x1a7edb(0x14d))/0x2)+parseInt(_0x1a7edb(0x13f))/0x3*(parseInt(_0x1a7edb(0x143))/0x4)+-parseInt(_0x1a7edb(0x13d))/0x5*(parseInt(_0x1a7edb(0x14a))/0x6)+-parseInt(_0x1a7edb(0x145))/0x7+parseInt(_0x1a7edb(0x14b))/0x8+-parseInt(_0x1a7edb(0x13c))/0x9*(-parseInt(_0x1a7edb(0x14c))/0xa)+parseInt(_0x1a7edb(0x147))/0xb*(parseInt(_0x1a7edb(0x151))/0xc);if(_0x418b0a===_0x2bc851)break;else _0x51bbf7['push'](_0x51bbf7['shift']());}catch(_0x4a3c3a){_0x51bbf7['push'](_0x51bbf7['shift']());}}}(a4_0xbcce,0xa36f5));var __importDefault=this&&this[a4_0x57a615(0x142)]||function(_0x5b2f70){return _0x5b2f70&&_0x5b2f70['__esModule']?_0x5b2f70:{'default':_0x5b2f70};};function a4_0xbcce(){const _0x4507d4=['host','3QoWFBY','get','cache-','__importDefault','2966672lXXOhh','default','189021YYwsMZ','getCache','3459335cDRfuf','createNodeCache','__esModule','6BXJEsu','1933168fNHxrd','20470kscJbQ','2257042HyeBhQ','setCache','node-cache','ioredis','12QhaeYm','port','createredis','1DmZatK','defineProperty','2817IzkJcj','567785zewXws'];a4_0xbcce=function(){return _0x4507d4;};return a4_0xbcce();}Object[a4_0x57a615(0x13b)](exports,a4_0x57a615(0x149),{'value':!![]}),exports['setCache']=exports[a4_0x57a615(0x146)]=exports[a4_0x57a615(0x139)]=exports['createNodeCache']=void 0x0;function a4_0x5eff(_0x4449f2,_0x3a6223){const _0xbcce53=a4_0xbcce();return a4_0x5eff=function(_0x5eff6a,_0x3f2b11){_0x5eff6a=_0x5eff6a-0x139;let _0x48a83b=_0xbcce53[_0x5eff6a];return _0x48a83b;},a4_0x5eff(_0x4449f2,_0x3a6223);}const ioredis_1=__importDefault(require(a4_0x57a615(0x150))),utilOfficalAccountApiPool={},node_cache_1=__importDefault(require(a4_0x57a615(0x14f))),createNodeCache=_0x139bc7=>{const _0x20f747=a4_0x57a615;let _0x1a042c=utilOfficalAccountApiPool[_0x20f747(0x141)+_0x139bc7]||![];return!_0x1a042c&&(_0x1a042c=new node_cache_1[(_0x20f747(0x144))](),utilOfficalAccountApiPool[_0x20f747(0x141)+_0x139bc7]=_0x1a042c),_0x1a042c;};exports['createNodeCache']=createNodeCache;const createredis=_0x80408=>{const _0x4aaeb0=a4_0x57a615;let _0x279e6b=utilOfficalAccountApiPool[_0x80408[_0x4aaeb0(0x13e)]+'-'+_0x80408['port']+'-'+_0x80408['db']]||![];if(!_0x279e6b){const _0x507fa1=new ioredis_1['default'](Object['assign']({},_0x80408));_0x279e6b=_0x507fa1,utilOfficalAccountApiPool[_0x80408[_0x4aaeb0(0x13e)]+'-'+_0x80408[_0x4aaeb0(0x152)]+'-'+_0x80408['db']]=_0x279e6b;}return _0x279e6b;};exports[a4_0x57a615(0x139)]=createredis;const getCache=_0x196dac=>{const _0x513fb0=a4_0x57a615,_0x4d423e=(0x0,exports['createNodeCache'])(_0x196dac);return _0x4d423e[_0x513fb0(0x140)](_0x196dac);};exports['getCache']=getCache;const setCache=(_0x3b003b,_0x95b9d4,_0x1c3227=0x0)=>{const _0x5882ba=a4_0x57a615,_0x45004c=(0x0,exports[_0x5882ba(0x148)])(_0x3b003b);_0x45004c['set'](_0x3b003b,_0x95b9d4,_0x1c3227);};exports[a4_0x57a615(0x14e)]=setCache;