UNPKG

egg-minifapp

Version:

对接各种小程序之类app的sdk

1 lines 3.92 kB
'use strict';const a3_0x23279a=a3_0x4582;(function(_0x5c1d7b,_0x3c357b){const _0x1e96b8=a3_0x4582,_0x413072=_0x5c1d7b();while(!![]){try{const _0x452a2d=-parseInt(_0x1e96b8(0xae))/0x1+parseInt(_0x1e96b8(0xb1))/0x2*(-parseInt(_0x1e96b8(0xce))/0x3)+-parseInt(_0x1e96b8(0xad))/0x4+-parseInt(_0x1e96b8(0xaf))/0x5+-parseInt(_0x1e96b8(0xcf))/0x6+parseInt(_0x1e96b8(0xc2))/0x7*(parseInt(_0x1e96b8(0xc3))/0x8)+parseInt(_0x1e96b8(0xb2))/0x9;if(_0x452a2d===_0x3c357b)break;else _0x413072['push'](_0x413072['shift']());}catch(_0x4f1ae5){_0x413072['push'](_0x413072['shift']());}}}(a3_0x304c,0x1fde5));function a3_0x4582(_0x58bf21,_0x8375f9){const _0x304cd8=a3_0x304c();return a3_0x4582=function(_0x45821d,_0x2a0eac){_0x45821d=_0x45821d-0xac;let _0x1a792b=_0x304cd8[_0x45821d];return _0x1a792b;},a3_0x4582(_0x58bf21,_0x8375f9);}var __awaiter=this&&this['__awaiter']||function(_0x3c9e02,_0x3c5015,_0x5258f8,_0x45e113){function _0x4c8288(_0x161335){return _0x161335 instanceof _0x5258f8?_0x161335:new _0x5258f8(function(_0x3bed76){_0x3bed76(_0x161335);});}return new(_0x5258f8||(_0x5258f8=Promise))(function(_0xafd0e6,_0x297acb){const _0x1e7da7=a3_0x4582;function _0x51e064(_0x29ee76){const _0x523259=a3_0x4582;try{_0x8a5a55(_0x45e113[_0x523259(0xc0)](_0x29ee76));}catch(_0x5c6185){_0x297acb(_0x5c6185);}}function _0x361cbd(_0x507b59){const _0x3bf5b7=a3_0x4582;try{_0x8a5a55(_0x45e113[_0x3bf5b7(0xc6)](_0x507b59));}catch(_0x1d30e2){_0x297acb(_0x1d30e2);}}function _0x8a5a55(_0x27733f){const _0x5cc6cf=a3_0x4582;_0x27733f[_0x5cc6cf(0xd1)]?_0xafd0e6(_0x27733f[_0x5cc6cf(0xbe)]):_0x4c8288(_0x27733f[_0x5cc6cf(0xbe)])['then'](_0x51e064,_0x361cbd);}_0x8a5a55((_0x45e113=_0x45e113[_0x1e7da7(0xb8)](_0x3c9e02,_0x3c5015||[]))[_0x1e7da7(0xc0)]());});};Object['defineProperty'](exports,a3_0x23279a(0xb3),{'value':!![]}),exports[a3_0x23279a(0xd0)]=void 0x0;function a3_0x304c(){const _0xedfbc3=['1183680HpjDXk','baseController','done','service','add','parse','356652HnwlXf','55855CjIqkJ','1279360dvKFjl','query','890FRhApk','5522274bzoFzr','__esModule','response','请求成功','GET','request','apply','code','/list','/api/','token','includes','value','header','next','body','128646YWQOqt','72ISurKu','log','router','throw','result','split','message','stringify','path','/admin/','app','339zSNYSM'];a3_0x304c=function(){return _0xedfbc3;};return a3_0x304c();}class baseController{[a3_0x23279a(0xc7)](_0x441552){const _0x3e427b=a3_0x23279a;return __awaiter(this,arguments,void 0x0,function*({code:code=0xc8,data:data='',message:message=_0x3e427b(0xb5),status:status=0xc8}){});}[a3_0x23279a(0xc4)](_0x8c5c69){const _0x66ab9a=a3_0x23279a;let {url:_0x4f7e8f}=_0x8c5c69[_0x66ab9a(0xb7)];const {method:_0x4c0431}=_0x8c5c69[_0x66ab9a(0xb7)],_0x2c4c88=JSON[_0x66ab9a(0xac)](JSON[_0x66ab9a(0xca)](_0x8c5c69[_0x66ab9a(0xcd)][_0x66ab9a(0xc5)]))['stack'],_0x248fbb=_0x2c4c88['find'](_0x1a4f9c=>_0x1a4f9c[_0x66ab9a(0xcb)]===_0x4f7e8f);if(!_0x248fbb)return;if(_0x4c0431==='GET')_0x4f7e8f=_0x4f7e8f[_0x66ab9a(0xc8)]('?')[0x0];const _0xf9ce8f=_0x4f7e8f[_0x66ab9a(0xbd)]('/api/')?_0x66ab9a(0xbb):_0x4f7e8f[_0x66ab9a(0xbd)](_0x66ab9a(0xcc))?'/admin/':'',_0x34dcdf=_0x4f7e8f[_0x66ab9a(0xbd)](_0x66ab9a(0xba));if(_0xf9ce8f===_0x66ab9a(0xbb)||_0x34dcdf)return;const _0x3d478c=_0x8c5c69[_0x66ab9a(0xb7)][_0x66ab9a(0xbf)][_0x66ab9a(0xbc)],_0x2c42bd={},_0x1ebccd=_0x8c5c69[_0x66ab9a(0xb4)][_0x66ab9a(0xc1)];let _0x1656d3=_0x8c5c69[_0x66ab9a(0xb7)]['body'];if(_0x4c0431===_0x66ab9a(0xb6))_0x1656d3=_0x8c5c69['request'][_0x66ab9a(0xb0)];const _0x4101c7=_0x8c5c69[_0x66ab9a(0xb7)][_0x66ab9a(0xbf)]['x-real-ip']||'--',_0x1ce018={'adminId':0x1,'ip':_0x4101c7,'title':_0x248fbb['name']||'','url':_0x4f7e8f,'method':_0x4c0431,'args':JSON[_0x66ab9a(0xca)](_0x1656d3),'message':_0x1ebccd[_0x66ab9a(0xc9)],'status':_0x1ebccd[_0x66ab9a(0xb9)]===0xc8?0x1:0x2};_0x8c5c69[_0x66ab9a(0xd2)][_0x66ab9a(0xc4)][_0x66ab9a(0xd3)](_0x1ce018);}}exports['baseController']=baseController;;