anncic-api 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 'use strict';var a0_0x37622e=a0_0x16fc;function a0_0x4367(){var _0xf08fba=['134829uzjRgE','283422CRmHzR','50VGTWnG','2286200qtkABB','2273196XBOhye','default','3Vucuav','1039540YBSopH','22sCySCH','280JMgoiU','1UZDzvA','appDir','defineProperty','dhauo1234420123gg3234901','name','292262tlQxOn','2720459ifIyfl'];a0_0x4367=function(){return _0xf08fba;};return a0_0x4367();}(function(_0x4ac618,_0x578a98){var _0x1df027=a0_0x16fc,_0x39e4dc=_0x4ac618();while(!![]){try{var _0x13d250=-parseInt(_0x1df027(0xee))/0x1*(parseInt(_0x1df027(0xf3))/0x2)+parseInt(_0x1df027(0xea))/0x3*(parseInt(_0x1df027(0xeb))/0x4)+-parseInt(_0x1df027(0xe6))/0x5*(parseInt(_0x1df027(0xe5))/0x6)+parseInt(_0x1df027(0xf4))/0x7+parseInt(_0x1df027(0xe7))/0x8+-parseInt(_0x1df027(0xe4))/0x9*(parseInt(_0x1df027(0xed))/0xa)+parseInt(_0x1df027(0xec))/0xb*(parseInt(_0x1df027(0xe8))/0xc);if(_0x13d250===_0x578a98)break;else _0x39e4dc['push'](_0x39e4dc['shift']());}catch(_0x56775c){_0x39e4dc['push'](_0x39e4dc['shift']());}}}(a0_0x4367,0x432fa));function a0_0x16fc(_0x1e92ec,_0x3e2d95){var _0x4367c2=a0_0x4367();return a0_0x16fc=function(_0x16fc16,_0x1d07bc){_0x16fc16=_0x16fc16-0xe4;var _0x3200af=_0x4367c2[_0x16fc16];return _0x3200af;},a0_0x16fc(_0x1e92ec,_0x3e2d95);}Object[a0_0x37622e(0xf0)](exports,'__esModule',{'value':!![]}),exports[a0_0x37622e(0xe9)]=_0x27ed30=>{var _0x18a131=a0_0x37622e;return{'apitest':!![],'keys':_0x27ed30[_0x18a131(0xf2)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x18a131(0xf1),'checkcode':_0x18a131(0xf1)}}},'upload':{'tmpdir':_0x27ed30[_0x18a131(0xef)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
1
+ 'use strict';var a0_0x51952f=a0_0x1289;(function(_0x11721c,_0x159f2b){var _0x105304=a0_0x1289,_0x3feed7=_0x11721c();while(!![]){try{var _0x1e1578=parseInt(_0x105304(0x165))/0x1+-parseInt(_0x105304(0x170))/0x2*(parseInt(_0x105304(0x16c))/0x3)+parseInt(_0x105304(0x169))/0x4*(-parseInt(_0x105304(0x16d))/0x5)+-parseInt(_0x105304(0x174))/0x6*(-parseInt(_0x105304(0x172))/0x7)+-parseInt(_0x105304(0x16f))/0x8+parseInt(_0x105304(0x166))/0x9*(-parseInt(_0x105304(0x167))/0xa)+parseInt(_0x105304(0x16a))/0xb;if(_0x1e1578===_0x159f2b)break;else _0x3feed7['push'](_0x3feed7['shift']());}catch(_0x125102){_0x3feed7['push'](_0x3feed7['shift']());}}}(a0_0x7f16,0xd6b3d));function a0_0x1289(_0x2d616d,_0x3f0316){var _0x7f1611=a0_0x7f16();return a0_0x1289=function(_0x128920,_0x4ee005){_0x128920=_0x128920-0x165;var _0x406f73=_0x7f1611[_0x128920];return _0x406f73;},a0_0x1289(_0x2d616d,_0x3f0316);}Object[a0_0x51952f(0x171)](exports,a0_0x51952f(0x173),{'value':!![]}),exports[a0_0x51952f(0x168)]=_0x4e50af=>{var _0x41dbc2=a0_0x51952f;return{'apitest':!![],'keys':_0x4e50af['name'],'anncicapi':{'timeout':0x1388,'password':_0x41dbc2(0x16b),'devices':{'DEFAULT':{'secret':_0x41dbc2(0x16e),'checkcode':_0x41dbc2(0x16e)}}},'upload':{'tmpdir':_0x4e50af['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00}};};function a0_0x7f16(){var _0x5259ab=['default','2720CTuEHF','25018774QqIMcR','zhiulanuiy7892387985hnoi','636dbGAtx','11090WZAswl','dhauo1234420123gg3234901','3888288baRBNz','9902iZImbA','defineProperty','7Aqlila','__esModule','10026138YwroOm','202175QowDyy','9JQjaZs','2243230CRUZAo'];a0_0x7f16=function(){return _0x5259ab;};return a0_0x7f16();}
@@ -1 +1 @@
1
- 'use strict';var a1_0x59c81d=a1_0x2e24;function a1_0x2dc1(){var _0x2a96ea=['__esModule','3856304qLWAdG','10534185pWHwsk','6354xOLVMq','1631165iUfdxQ','37027660zqblIb','551QBGhBi','14ikLXcc','5806332DSrmOD','3WYfkaG','892024YpphQG'];a1_0x2dc1=function(){return _0x2a96ea;};return a1_0x2dc1();}(function(_0x6dafc7,_0x3f22cb){var _0x4246bf=a1_0x2e24,_0x409eed=_0x6dafc7();while(!![]){try{var _0x14343e=parseInt(_0x4246bf(0x1b0))/0x1*(-parseInt(_0x4246bf(0x1ad))/0x2)+parseInt(_0x4246bf(0x1b3))/0x3*(-parseInt(_0x4246bf(0x1b4))/0x4)+parseInt(_0x4246bf(0x1ae))/0x5+-parseInt(_0x4246bf(0x1b2))/0x6+parseInt(_0x4246bf(0x1b1))/0x7*(parseInt(_0x4246bf(0x1ab))/0x8)+-parseInt(_0x4246bf(0x1ac))/0x9+parseInt(_0x4246bf(0x1af))/0xa;if(_0x14343e===_0x3f22cb)break;else _0x409eed['push'](_0x409eed['shift']());}catch(_0x1ae808){_0x409eed['push'](_0x409eed['shift']());}}}(a1_0x2dc1,0xd72cb));function a1_0x2e24(_0x1e205f,_0x5190a5){var _0x2dc1bb=a1_0x2dc1();return a1_0x2e24=function(_0x2e2482,_0x5ccd2a){_0x2e2482=_0x2e2482-0x1ab;var _0x2169fe=_0x2dc1bb[_0x2e2482];return _0x2169fe;},a1_0x2e24(_0x1e205f,_0x5190a5);}Object['defineProperty'](exports,a1_0x59c81d(0x1b5),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
1
+ 'use strict';function a1_0x1674(_0x5a5df9,_0x68169c){var _0x553d7e=a1_0x553d();return a1_0x1674=function(_0x16742e,_0x5b28f0){_0x16742e=_0x16742e-0x6a;var _0x534626=_0x553d7e[_0x16742e];return _0x534626;},a1_0x1674(_0x5a5df9,_0x68169c);}function a1_0x553d(){var _0x282e37=['__esModule','defineProperty','9vupQYx','7KhpSod','1837362gxAiVO','2445948LuwmtX','1955240ZxDmuS','842931gsFEjN','5YKCjwT','4455410pZsMUU','183596DSBVhq','889964dOvsrs','default'];a1_0x553d=function(){return _0x282e37;};return a1_0x553d();}var a1_0x14aa41=a1_0x1674;(function(_0x3ab849,_0x3cb298){var _0x1a9231=a1_0x1674,_0x16ba53=_0x3ab849();while(!![]){try{var _0x2a1a00=-parseInt(_0x1a9231(0x6b))/0x1+parseInt(_0x1a9231(0x6a))/0x2+parseInt(_0x1a9231(0x74))/0x3+-parseInt(_0x1a9231(0x72))/0x4*(-parseInt(_0x1a9231(0x75))/0x5)+parseInt(_0x1a9231(0x71))/0x6*(-parseInt(_0x1a9231(0x70))/0x7)+parseInt(_0x1a9231(0x73))/0x8+parseInt(_0x1a9231(0x6f))/0x9*(parseInt(_0x1a9231(0x76))/0xa);if(_0x2a1a00===_0x3cb298)break;else _0x16ba53['push'](_0x16ba53['shift']());}catch(_0x22c991){_0x16ba53['push'](_0x16ba53['shift']());}}}(a1_0x553d,0x74b41));Object[a1_0x14aa41(0x6e)](exports,a1_0x14aa41(0x6d),{'value':!![]}),exports[a1_0x14aa41(0x6c)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
@@ -1 +1 @@
1
- 'use strict';const a2_0x15d18d=a2_0x4711;function a2_0x4711(_0x5340c5,_0x1e6f33){const _0x217dfb=a2_0x217d();return a2_0x4711=function(_0x47111d,_0x32d056){_0x47111d=_0x47111d-0x1b3;let _0x318ad6=_0x217dfb[_0x47111d];return _0x318ad6;},a2_0x4711(_0x5340c5,_0x1e6f33);}(function(_0x3d864b,_0x343c55){const _0x3d97d0=a2_0x4711,_0xc5b591=_0x3d864b();while(!![]){try{const _0x2ea049=-parseInt(_0x3d97d0(0x1e2))/0x1*(parseInt(_0x3d97d0(0x1d8))/0x2)+parseInt(_0x3d97d0(0x1bd))/0x3+-parseInt(_0x3d97d0(0x1d7))/0x4+parseInt(_0x3d97d0(0x1d5))/0x5*(parseInt(_0x3d97d0(0x1f2))/0x6)+parseInt(_0x3d97d0(0x1b7))/0x7*(-parseInt(_0x3d97d0(0x1fb))/0x8)+parseInt(_0x3d97d0(0x1fc))/0x9*(parseInt(_0x3d97d0(0x1fd))/0xa)+parseInt(_0x3d97d0(0x1df))/0xb*(-parseInt(_0x3d97d0(0x1d9))/0xc);if(_0x2ea049===_0x343c55)break;else _0xc5b591['push'](_0xc5b591['shift']());}catch(_0xac9751){_0xc5b591['push'](_0xc5b591['shift']());}}}(a2_0x217d,0x418a5));function a2_0x217d(){const _0x342a05=['device','checkConfigKeys','dir','20153SfeIAh','environment','upload','hanlderApplications','defaultsDeep','config','1173969fUhFcd','apimit','input','onReady','context','existsSync','object','getOwnPropertyDescriptor','Inject','getApplications','ApiError','target','defineProperties','devices','useMiddleware','./types/action','__esModule','@anncic-api/event','@midwayjs/task','@midwayjs/cross-domain','headers','mkdirSync','application','tmpdir','5KUJIob','string','403464raGSFk','256930NPJKWA','5465940bCtoti','HEADERS_SIGNATURE','@midwayjs/static-file','defineProperty','koa-bodyparser','Anncic-api\x20static-file\x20:\x20mkdir\x20','11oSnFYT','keys','anncic-api','1tBTNTA','MidwayDecoratorService','function','ApiService','beforeRoute','@midwayjs/upload','@midwayjs/core','decorate','MidwayApplicationManager','handlerActionRoute','bodyXml','metadata','log','CustomConfiguration','filterConfig','__decorate','2975538VAjRrz','decorator','./config/config.production','@anncic-api/core','body','request','dirs','length','prototype','832daepyV','5661cZsRaG','5810uXrdSW','staticFile','./exception/ApiError','@midwayjs/decorator','DEFAULT','addObject','Configuration','design:type','@anncic-api/typeorm','checksign','forEach','koa','__metadata','registerMethodHandler','anncicapi','ACTION_ROUTE_KEY','query','getConfiguration','./config/config.default','@anncic-api/validator','isString','_matchedRoute'];a2_0x217d=function(){return _0x342a05;};return a2_0x217d();}var __decorate=this&&this[a2_0x15d18d(0x1f1)]||function(_0x5cf387,_0x269d2c,_0x86fca8,_0x27f813){const _0x3c3f62=a2_0x15d18d;var _0x20b93b=arguments[_0x3c3f62(0x1f9)],_0x53933e=_0x20b93b<0x3?_0x269d2c:_0x27f813===null?_0x27f813=Object[_0x3c3f62(0x1c4)](_0x269d2c,_0x86fca8):_0x27f813,_0x3539d2;if(typeof Reflect===_0x3c3f62(0x1c3)&&typeof Reflect[_0x3c3f62(0x1e9)]===_0x3c3f62(0x1e4))_0x53933e=Reflect[_0x3c3f62(0x1e9)](_0x5cf387,_0x269d2c,_0x86fca8,_0x27f813);else{for(var _0x532438=_0x5cf387[_0x3c3f62(0x1f9)]-0x1;_0x532438>=0x0;_0x532438--)if(_0x3539d2=_0x5cf387[_0x532438])_0x53933e=(_0x20b93b<0x3?_0x3539d2(_0x53933e):_0x20b93b>0x3?_0x3539d2(_0x269d2c,_0x86fca8,_0x53933e):_0x3539d2(_0x269d2c,_0x86fca8))||_0x53933e;}return _0x20b93b>0x3&&_0x53933e&&Object[_0x3c3f62(0x1dc)](_0x269d2c,_0x86fca8,_0x53933e),_0x53933e;},__metadata=this&&this[a2_0x15d18d(0x209)]||function(_0x39a701,_0x36dbcc){const _0x4e3fb4=a2_0x15d18d;if(typeof Reflect===_0x4e3fb4(0x1c3)&&typeof Reflect[_0x4e3fb4(0x1ed)]===_0x4e3fb4(0x1e4))return Reflect['metadata'](_0x39a701,_0x36dbcc);};Object[a2_0x15d18d(0x1dc)](exports,a2_0x15d18d(0x1cd),{'value':!![]}),exports[a2_0x15d18d(0x1ef)]=void 0x0;const decorator_1=require(a2_0x15d18d(0x200)),core_1=require(a2_0x15d18d(0x1e8)),ApiError_1=require(a2_0x15d18d(0x1ff)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x15d18d(0x1cc)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require(a2_0x15d18d(0x1cf)),upload=require(a2_0x15d18d(0x1e7)),staticFile=require(a2_0x15d18d(0x1db)),crossDomain=require(a2_0x15d18d(0x1d0)),bodyXml=require('koa-xml-body'),bodyParser=require(a2_0x15d18d(0x1dd)),ConfigDefault=require(a2_0x15d18d(0x20f)),ConfigProduction=require(a2_0x15d18d(0x1f4)),anncic=require(a2_0x15d18d(0x1f5)),anncicEvent=require(a2_0x15d18d(0x1ce)),anncicTypeorm=require(a2_0x15d18d(0x205)),anncicValidator=require(a2_0x15d18d(0x210)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x15d18d(0x1c0)](){const _0x1f36cd=a2_0x15d18d;await this[_0x1f36cd(0x1f0)](),await this[_0x1f36cd(0x1b5)](),await this['handlerActionRoute'](),await this[_0x1f36cd(0x1ba)]();}async[a2_0x15d18d(0x1b5)](){}async[a2_0x15d18d(0x1eb)](){const _0x47351e=a2_0x15d18d,_0x261989=this['config'][_0x47351e(0x20e)]();this['decorator'][_0x47351e(0x20a)](action_1[_0x47351e(0x20c)],_0x490744=>{const _0x5405d4=_0x47351e,_0x3fc97b=_0x490744[_0x5405d4(0x1ed)];return{'before':async _0x1d6253=>{const _0x37a6ae=_0x5405d4;var _0x5b0095,_0x2ea6f8,_0x29419a,_0x1bbe5a,_0x32e4a3;const _0x366226=(_0x5b0095=_0x1d6253===null||_0x1d6253===void 0x0?void 0x0:_0x1d6253[_0x37a6ae(0x1c8)])===null||_0x5b0095===void 0x0?void 0x0:_0x5b0095[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x366226){if((_0x3fc97b===null||_0x3fc97b===void 0x0?void 0x0:_0x3fc97b[_0x37a6ae(0x1be)])&&!this['ApiService'][_0x37a6ae(0x206)]((_0x2ea6f8=_0x366226===null||_0x366226===void 0x0?void 0x0:_0x366226[_0x37a6ae(0x1f7)])===null||_0x2ea6f8===void 0x0?void 0x0:_0x2ea6f8[_0x37a6ae(0x1d1)]))throw new AnnError(ApiError_1[_0x37a6ae(0x1c7)][_0x37a6ae(0x1da)]);((_0x29419a=_0x366226[_0x37a6ae(0x1d1)])===null||_0x29419a===void 0x0?void 0x0:_0x29419a[_0x37a6ae(0x1b4)])&&((_0x32e4a3=(_0x1bbe5a=_0x261989===null||_0x261989===void 0x0?void 0x0:_0x261989[_0x37a6ae(0x20b)])===null||_0x1bbe5a===void 0x0?void 0x0:_0x1bbe5a['devices'])===null||_0x32e4a3===void 0x0?void 0x0:_0x32e4a3[_0x366226[_0x37a6ae(0x1d1)][_0x37a6ae(0x1b4)]])&&(typeof _0x261989[_0x37a6ae(0x20b)][_0x37a6ae(0x1ca)][_0x366226[_0x37a6ae(0x1d1)][_0x37a6ae(0x1b4)]][_0x37a6ae(0x1e6)]==_0x37a6ae(0x1e4)&&await _0x261989[_0x37a6ae(0x20b)]['devices'][_0x366226['headers'][_0x37a6ae(0x1b4)]][_0x37a6ae(0x1e6)]((_0x366226===null||_0x366226===void 0x0?void 0x0:_0x366226[_0x37a6ae(0x1b3)])||undefined,_0x3fc97b,_0x366226));}},'afterThrow':(_0x4b094c,_0x51b9e2)=>{throw _0x51b9e2;}};});}async['hanlderApplications'](){const _0x333b2f=a2_0x15d18d;this[_0x333b2f(0x1d3)][_0x333b2f(0x1c6)]([_0x333b2f(0x208)])[_0x333b2f(0x207)](_0x5e0f79=>{const _0x4d8513=_0x333b2f;_0x5e0f79[_0x4d8513(0x1cb)](bodyXml(this[_0x4d8513(0x1bc)][_0x4d8513(0x20e)](_0x4d8513(0x1ec)))),_0x5e0f79[_0x4d8513(0x1cb)](bodyParser(this[_0x4d8513(0x1bc)][_0x4d8513(0x20e)]('bodyParser'))),(_0x5e0f79===null||_0x5e0f79===void 0x0?void 0x0:_0x5e0f79[_0x4d8513(0x1c1)])&&Object[_0x4d8513(0x1c9)](_0x5e0f79[_0x4d8513(0x1c1)],{'ok':{'value':function(_0x3cbfcb,_0x4b26b3,_0x485650=0x0){return{'code':_0x485650,'data':_0x3cbfcb,'extra':_0x4b26b3};}},'err':{'value':function(_0x12dc23,_0x4a71a1,_0x5478d6=0x1){return{'code':_0x5478d6,'extra':_0x4a71a1,'msg':_0x12dc23};}},'input':{'value':function(_0x22acfd,_0x13bb10){const _0x3a3e6a=_0x4d8513;var _0x5cfa9c;const _0x162d3d=lodash[_0x3a3e6a(0x1bb)]({},this[_0x3a3e6a(0x1f7)][_0x3a3e6a(0x1f6)]||this[_0x3a3e6a(0x1f7)][((_0x5cfa9c=config===null||config===void 0x0?void 0x0:config[_0x3a3e6a(0x1ec)])===null||_0x5cfa9c===void 0x0?void 0x0:_0x5cfa9c['key'])||_0x3a3e6a(0x1f6)]||{},this[_0x3a3e6a(0x1f7)][_0x3a3e6a(0x20d)]||{});return _0x22acfd?lodash['get'](_0x162d3d,_0x22acfd,_0x13bb10):_0x162d3d;}},'when':{'value':async function(_0x3e2061,_0x1793ff){const _0x1fcd19=this['input'](_0x3e2061,null);if(!lodash['isNull'](_0x1fcd19))return await _0x1793ff(_0x1fcd19);}},'only':{'value':function(_0x5acd68){const _0x3314ad=_0x4d8513,_0x415b8a={};for(let _0x5b2c9c=0x0;_0x5b2c9c<_0x5acd68[_0x3314ad(0x1f9)];_0x5b2c9c++){lodash['isArray'](_0x5acd68[_0x5b2c9c])&&_0x5acd68[_0x5b2c9c][_0x3314ad(0x1f9)]>0x0&&lodash[_0x3314ad(0x211)](_0x5acd68[_0x5b2c9c][0x0])&&(_0x415b8a[_0x5acd68[_0x5b2c9c][0x0]]=this[_0x3314ad(0x1bf)](_0x5acd68[_0x5b2c9c][0x0],_0x5acd68[_0x5b2c9c]['length']>0x1?_0x5acd68[_0x5b2c9c][0x1]:null));}return _0x415b8a;}}});});}async[a2_0x15d18d(0x1f0)](){const _0x161b5b=a2_0x15d18d;var _0xe38407,_0x451ef2,_0x10b6e9,_0xc5c1d5,_0x514816,_0x4b1f76;const _0x341d14=this[_0x161b5b(0x1bc)][_0x161b5b(0x20e)]();((_0x451ef2=(_0xe38407=_0x341d14===null||_0x341d14===void 0x0?void 0x0:_0x341d14[_0x161b5b(0x20b)])===null||_0xe38407===void 0x0?void 0x0:_0xe38407['devices'])===null||_0x451ef2===void 0x0?void 0x0:_0x451ef2[_0x161b5b(0x201)])&&Object[_0x161b5b(0x1e0)](_0x341d14[_0x161b5b(0x20b)][_0x161b5b(0x1ca)])[_0x161b5b(0x1f9)]>0x1&&delete _0x341d14[_0x161b5b(0x20b)][_0x161b5b(0x1ca)]['DEFAULT'];if((_0x10b6e9=_0x341d14===null||_0x341d14===void 0x0?void 0x0:_0x341d14[_0x161b5b(0x1fe)])===null||_0x10b6e9===void 0x0?void 0x0:_0x10b6e9['dirs'])for(const _0x33920d in _0x341d14['staticFile'][_0x161b5b(0x1f8)]){((_0xc5c1d5=_0x341d14[_0x161b5b(0x1fe)][_0x161b5b(0x1f8)][_0x33920d])===null||_0xc5c1d5===void 0x0?void 0x0:_0xc5c1d5['dir'])&&typeof((_0x514816=_0x341d14[_0x161b5b(0x1fe)][_0x161b5b(0x1f8)][_0x33920d])===null||_0x514816===void 0x0?void 0x0:_0x514816[_0x161b5b(0x1b6)])==_0x161b5b(0x1d6)&&!fs[_0x161b5b(0x1c2)](_0x341d14[_0x161b5b(0x1fe)][_0x161b5b(0x1f8)][_0x33920d][_0x161b5b(0x1b6)])&&(fs[_0x161b5b(0x1d2)](_0x341d14['staticFile'][_0x161b5b(0x1f8)][_0x33920d]['dir'],{'recursive':!![]}),console[_0x161b5b(0x1ee)](_0x161b5b(0x1de)+_0x341d14['staticFile']['dirs'][_0x33920d][_0x161b5b(0x1b6)]));}((_0x4b1f76=_0x341d14===null||_0x341d14===void 0x0?void 0x0:_0x341d14[_0x161b5b(0x1b9)])===null||_0x4b1f76===void 0x0?void 0x0:_0x4b1f76['tmpdir'])&&!fs['existsSync'](_0x341d14['upload'][_0x161b5b(0x1d4)])&&(fs[_0x161b5b(0x1d2)](_0x341d14['upload'][_0x161b5b(0x1d4)],{'recursive':!![]}),console[_0x161b5b(0x1ee)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x341d14['upload'][_0x161b5b(0x1d4)])),this[_0x161b5b(0x1bc)][_0x161b5b(0x202)](_0x341d14);}};__decorate([(0x0,decorator_1[a2_0x15d18d(0x1c5)])(),__metadata(a2_0x15d18d(0x204),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x15d18d(0x1fa)],'config',void 0x0),__decorate([(0x0,decorator_1[a2_0x15d18d(0x1c5)])(),__metadata(a2_0x15d18d(0x204),core_1[a2_0x15d18d(0x1e3)])],CustomConfiguration[a2_0x15d18d(0x1fa)],a2_0x15d18d(0x1f3),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x15d18d(0x204),core_1[a2_0x15d18d(0x1ea)])],CustomConfiguration[a2_0x15d18d(0x1fa)],a2_0x15d18d(0x1d3),void 0x0),__decorate([(0x0,decorator_1[a2_0x15d18d(0x1c5)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x15d18d(0x1fa)],a2_0x15d18d(0x1b8),void 0x0),__decorate([(0x0,decorator_1[a2_0x15d18d(0x1c5)])(),__metadata(a2_0x15d18d(0x204),ApiService_1[a2_0x15d18d(0x1e5)])],CustomConfiguration['prototype'],a2_0x15d18d(0x1e5),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x15d18d(0x203)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x15d18d(0x1e1),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';function a2_0x2c9d(){const _0x52cf1d=['prototype','4763340GIWnrs','getApplications','log','isNull','REQUEST_OBJ_CTX_KEY','@midwayjs/static-file','query','decorator','string','6764142cNOOdb','input','bodyParser','existsSync','keys','object','@anncic-api/validator','defaultsDeep','get','tmpdir','./config/config.default','device','__metadata','environment','defineProperty','13893570lflaRa','checkConfigKeys','Inject','90333fvZXqC','body','dirs','56YOkeIy','function','checksign','context','bodyXml','@midwayjs/i18n','length','ACTION_ROUTE_KEY','MidwayApplicationManager','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./types/action','getConfiguration','handlerActionRoute','koa-bodyparser','dir','devices','@midwayjs/core','config','useMiddleware','anncic-apihelper','Configuration','isString','ApiService','3499904tejkDB','@midwayjs/cross-domain','upload','MidwayEnvironmentService','mkdirSync','532288ECOYKT','@anncic-api/event','ApiError','defineProperties','metadata','./config/config.production','@midwayjs/upload','decorate','design:type','headers','application','./service/ApiService','@midwayjs/task','beforeRoute','anncic-api','DEFAULT','@midwayjs/koa','__esModule','__decorate','isArray','addObject','koa','staticFile','request','filterConfig','52kwQMxI','anncicapi','CustomConfiguration','MidwayConfigService','koa-xml-body','359995dLeKQC','@midwayjs/decorator','@anncic-api/core','_matchedRoute'];a2_0x2c9d=function(){return _0x52cf1d;};return a2_0x2c9d();}const a2_0x1b49b2=a2_0x5e02;(function(_0x12b35c,_0xbba77c){const _0x48cb32=a2_0x5e02,_0x1ae262=_0x12b35c();while(!![]){try{const _0x35e062=-parseInt(_0x48cb32(0xe9))/0x1+-parseInt(_0x48cb32(0xcd))/0x2*(parseInt(_0x48cb32(0xca))/0x3)+parseInt(_0x48cb32(0x102))/0x4*(-parseInt(_0x48cb32(0x107))/0x5)+parseInt(_0x48cb32(0x10c))/0x6+parseInt(_0x48cb32(0x115))/0x7+-parseInt(_0x48cb32(0xe4))/0x8+parseInt(_0x48cb32(0xc7))/0x9;if(_0x35e062===_0xbba77c)break;else _0x1ae262['push'](_0x1ae262['shift']());}catch(_0x3d5c14){_0x1ae262['push'](_0x1ae262['shift']());}}}(a2_0x2c9d,0x8782f));function a2_0x5e02(_0x797da6,_0xba5b53){const _0x2c9de1=a2_0x2c9d();return a2_0x5e02=function(_0x5e0299,_0xe6fa95){_0x5e0299=_0x5e0299-0xbd;let _0x2163ea=_0x2c9de1[_0x5e0299];return _0x2163ea;},a2_0x5e02(_0x797da6,_0xba5b53);}var __decorate=this&&this[a2_0x1b49b2(0xfb)]||function(_0x236ad0,_0x43ba07,_0x483604,_0x5898d3){const _0x321a63=a2_0x1b49b2;var _0x59cc4e=arguments[_0x321a63(0xd3)],_0x746ca2=_0x59cc4e<0x3?_0x43ba07:_0x5898d3===null?_0x5898d3=Object['getOwnPropertyDescriptor'](_0x43ba07,_0x483604):_0x5898d3,_0x1e7143;if(typeof Reflect===_0x321a63(0xbd)&&typeof Reflect[_0x321a63(0xf0)]==='function')_0x746ca2=Reflect[_0x321a63(0xf0)](_0x236ad0,_0x43ba07,_0x483604,_0x5898d3);else{for(var _0x528317=_0x236ad0[_0x321a63(0xd3)]-0x1;_0x528317>=0x0;_0x528317--)if(_0x1e7143=_0x236ad0[_0x528317])_0x746ca2=(_0x59cc4e<0x3?_0x1e7143(_0x746ca2):_0x59cc4e>0x3?_0x1e7143(_0x43ba07,_0x483604,_0x746ca2):_0x1e7143(_0x43ba07,_0x483604))||_0x746ca2;}return _0x59cc4e>0x3&&_0x746ca2&&Object['defineProperty'](_0x43ba07,_0x483604,_0x746ca2),_0x746ca2;},__metadata=this&&this[a2_0x1b49b2(0xc4)]||function(_0x2aabda,_0x46ce5d){const _0xef59f9=a2_0x1b49b2;if(typeof Reflect==='object'&&typeof Reflect[_0xef59f9(0xed)]===_0xef59f9(0xce))return Reflect[_0xef59f9(0xed)](_0x2aabda,_0x46ce5d);};Object[a2_0x1b49b2(0xc6)](exports,a2_0x1b49b2(0xfa),{'value':!![]}),exports[a2_0x1b49b2(0x104)]=void 0x0;const decorator_1=require(a2_0x1b49b2(0x108)),core_1=require(a2_0x1b49b2(0xdd)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x1b49b2(0xf4)),action_1=require(a2_0x1b49b2(0xd7)),fs=require('fs'),koa=require(a2_0x1b49b2(0xf9)),i18n=require(a2_0x1b49b2(0xd2)),task=require(a2_0x1b49b2(0xf5)),upload=require(a2_0x1b49b2(0xef)),staticFile=require(a2_0x1b49b2(0x111)),crossDomain=require(a2_0x1b49b2(0xe5)),bodyXml=require(a2_0x1b49b2(0x106)),bodyParser=require(a2_0x1b49b2(0xda)),ConfigDefault=require(a2_0x1b49b2(0xc2)),ConfigProduction=require(a2_0x1b49b2(0xee)),anncic=require(a2_0x1b49b2(0x109)),anncicEvent=require(a2_0x1b49b2(0xea)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x1b49b2(0xbe)),anncicHelper=require(a2_0x1b49b2(0xe0));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x14f065=a2_0x1b49b2;await this['filterConfig'](),await this[_0x14f065(0xc8)](),await this[_0x14f065(0xd9)](),await this['hanlderApplications']();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x47abcc=a2_0x1b49b2,_0x3f918c=this['config'][_0x47abcc(0xd8)]();this[_0x47abcc(0x113)]['registerMethodHandler'](action_1[_0x47abcc(0xd4)],_0x28e29a=>{const _0x1cc27c=_0x47abcc,_0x1eac78=_0x28e29a[_0x1cc27c(0xed)];return{'before':async _0x50bb9c=>{const _0x496714=_0x1cc27c;var _0xae7de1,_0x6537ae,_0xe66a54,_0x2da8b0,_0x4abba0;const _0x59b5cb=(_0xae7de1=_0x50bb9c===null||_0x50bb9c===void 0x0?void 0x0:_0x50bb9c['target'])===null||_0xae7de1===void 0x0?void 0x0:_0xae7de1[core_1[_0x496714(0x110)]];if(_0x59b5cb){if((_0x1eac78===null||_0x1eac78===void 0x0?void 0x0:_0x1eac78['apimit'])&&!this['ApiService'][_0x496714(0xcf)]((_0x6537ae=_0x59b5cb===null||_0x59b5cb===void 0x0?void 0x0:_0x59b5cb[_0x496714(0x100)])===null||_0x6537ae===void 0x0?void 0x0:_0x6537ae[_0x496714(0xf2)]))throw new AnnError(ApiError_1[_0x496714(0xeb)]['HEADERS_SIGNATURE']);((_0xe66a54=_0x59b5cb['headers'])===null||_0xe66a54===void 0x0?void 0x0:_0xe66a54[_0x496714(0xc3)])&&((_0x4abba0=(_0x2da8b0=_0x3f918c===null||_0x3f918c===void 0x0?void 0x0:_0x3f918c[_0x496714(0x103)])===null||_0x2da8b0===void 0x0?void 0x0:_0x2da8b0[_0x496714(0xdc)])===null||_0x4abba0===void 0x0?void 0x0:_0x4abba0[_0x59b5cb[_0x496714(0xf2)]['device']])&&(typeof _0x3f918c[_0x496714(0x103)][_0x496714(0xdc)][_0x59b5cb[_0x496714(0xf2)]['device']]['beforeRoute']==_0x496714(0xce)&&await _0x3f918c['anncicapi']['devices'][_0x59b5cb['headers'][_0x496714(0xc3)]][_0x496714(0xf6)]((_0x59b5cb===null||_0x59b5cb===void 0x0?void 0x0:_0x59b5cb[_0x496714(0x10a)])||undefined,_0x1eac78,_0x59b5cb));}},'afterThrow':(_0x117542,_0xd40b3e)=>{throw _0xd40b3e;}};});}async['hanlderApplications'](){const _0x804f4b=a2_0x1b49b2;this[_0x804f4b(0xf3)][_0x804f4b(0x10d)]([_0x804f4b(0xfe)])['forEach'](_0x43bfe5=>{const _0x118334=_0x804f4b;_0x43bfe5[_0x118334(0xdf)](bodyXml(this[_0x118334(0xde)][_0x118334(0xd8)](_0x118334(0xd1)))),_0x43bfe5[_0x118334(0xdf)](bodyParser(this[_0x118334(0xde)][_0x118334(0xd8)](_0x118334(0x117)))),(_0x43bfe5===null||_0x43bfe5===void 0x0?void 0x0:_0x43bfe5[_0x118334(0xd0)])&&Object[_0x118334(0xec)](_0x43bfe5[_0x118334(0xd0)],{'ok':{'value':function(_0x10a758,_0x39be0b,_0x2fafb5=0x0){return{'code':_0x2fafb5,'data':_0x10a758,'extra':_0x39be0b};}},'err':{'value':function(_0x3c2871,_0x12f1f6,_0x2fd747=0x1){return{'code':_0x2fd747,'extra':_0x12f1f6,'msg':_0x3c2871};}},'input':{'value':function(_0x53c61b,_0x3c573b){const _0x5085c8=_0x118334;var _0x186c64;const _0x25888d=lodash[_0x5085c8(0xbf)]({},this[_0x5085c8(0x100)][_0x5085c8(0xcb)]||this['request'][((_0x186c64=config===null||config===void 0x0?void 0x0:config[_0x5085c8(0xd1)])===null||_0x186c64===void 0x0?void 0x0:_0x186c64['key'])||_0x5085c8(0xcb)]||{},this['request'][_0x5085c8(0x112)]||{});return _0x53c61b?lodash[_0x5085c8(0xc0)](_0x25888d,_0x53c61b,_0x3c573b):_0x25888d;}},'when':{'value':async function(_0x2503fc,_0x41a937){const _0x1904b8=_0x118334,_0x49b6a8=this[_0x1904b8(0x116)](_0x2503fc,null);if(!lodash[_0x1904b8(0x10f)](_0x49b6a8))return await _0x41a937(_0x49b6a8);}},'only':{'value':function(_0x2399b0){const _0x53d9cc=_0x118334,_0x29ec56={};for(let _0x2f9c4f=0x0;_0x2f9c4f<_0x2399b0['length'];_0x2f9c4f++){lodash[_0x53d9cc(0xfc)](_0x2399b0[_0x2f9c4f])&&_0x2399b0[_0x2f9c4f][_0x53d9cc(0xd3)]>0x0&&lodash[_0x53d9cc(0xe2)](_0x2399b0[_0x2f9c4f][0x0])&&(_0x29ec56[_0x2399b0[_0x2f9c4f][0x0]]=this[_0x53d9cc(0x116)](_0x2399b0[_0x2f9c4f][0x0],_0x2399b0[_0x2f9c4f][_0x53d9cc(0xd3)]>0x1?_0x2399b0[_0x2f9c4f][0x1]:null));}return _0x29ec56;}}});});}async[a2_0x1b49b2(0x101)](){const _0x5f2abc=a2_0x1b49b2;var _0x1f0806,_0x3cf862,_0x474dc3,_0x55b596,_0x55394f,_0x4e6577;const _0x53e245=this[_0x5f2abc(0xde)][_0x5f2abc(0xd8)]();((_0x3cf862=(_0x1f0806=_0x53e245===null||_0x53e245===void 0x0?void 0x0:_0x53e245['anncicapi'])===null||_0x1f0806===void 0x0?void 0x0:_0x1f0806[_0x5f2abc(0xdc)])===null||_0x3cf862===void 0x0?void 0x0:_0x3cf862[_0x5f2abc(0xf8)])&&Object[_0x5f2abc(0x119)](_0x53e245[_0x5f2abc(0x103)][_0x5f2abc(0xdc)])[_0x5f2abc(0xd3)]>0x1&&delete _0x53e245[_0x5f2abc(0x103)][_0x5f2abc(0xdc)][_0x5f2abc(0xf8)];if((_0x474dc3=_0x53e245===null||_0x53e245===void 0x0?void 0x0:_0x53e245['staticFile'])===null||_0x474dc3===void 0x0?void 0x0:_0x474dc3[_0x5f2abc(0xcc)])for(const _0x187829 in _0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)]){((_0x55b596=_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829])===null||_0x55b596===void 0x0?void 0x0:_0x55b596['dir'])&&typeof((_0x55394f=_0x53e245['staticFile'][_0x5f2abc(0xcc)][_0x187829])===null||_0x55394f===void 0x0?void 0x0:_0x55394f[_0x5f2abc(0xdb)])==_0x5f2abc(0x114)&&!fs[_0x5f2abc(0x118)](_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829]['dir'])&&(fs[_0x5f2abc(0xe8)](_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829][_0x5f2abc(0xdb)],{'recursive':!![]}),console[_0x5f2abc(0x10e)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829]['dir']));}((_0x4e6577=_0x53e245===null||_0x53e245===void 0x0?void 0x0:_0x53e245[_0x5f2abc(0xe6)])===null||_0x4e6577===void 0x0?void 0x0:_0x4e6577['tmpdir'])&&!fs[_0x5f2abc(0x118)](_0x53e245[_0x5f2abc(0xe6)][_0x5f2abc(0xc1)])&&(fs[_0x5f2abc(0xe8)](_0x53e245[_0x5f2abc(0xe6)]['tmpdir'],{'recursive':!![]}),console[_0x5f2abc(0x10e)](_0x5f2abc(0xd6)+_0x53e245['upload'][_0x5f2abc(0xc1)])),this[_0x5f2abc(0xde)][_0x5f2abc(0xfd)](_0x53e245);}};__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata('design:type',core_1[a2_0x1b49b2(0x105)])],CustomConfiguration[a2_0x1b49b2(0x10b)],'config',void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata(a2_0x1b49b2(0xf1),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x1b49b2(0x10b)],a2_0x1b49b2(0x113),void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata(a2_0x1b49b2(0xf1),core_1[a2_0x1b49b2(0xd5)])],CustomConfiguration[a2_0x1b49b2(0x10b)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata(a2_0x1b49b2(0xf1),core_1[a2_0x1b49b2(0xe7)])],CustomConfiguration[a2_0x1b49b2(0x10b)],a2_0x1b49b2(0xc5),void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x1b49b2(0x10b)],a2_0x1b49b2(0xe3),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1b49b2(0xe1)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1b49b2(0xf7),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1b49b2(0x104)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a3_0x515749=a3_0x1745;(function(_0x1dfd7d,_0x594cf6){const _0x190dc6=a3_0x1745,_0x1e08a5=_0x1dfd7d();while(!![]){try{const _0x53000f=parseInt(_0x190dc6(0x18e))/0x1+parseInt(_0x190dc6(0x19f))/0x2*(parseInt(_0x190dc6(0x1a1))/0x3)+-parseInt(_0x190dc6(0x190))/0x4+parseInt(_0x190dc6(0x1b5))/0x5*(parseInt(_0x190dc6(0x193))/0x6)+parseInt(_0x190dc6(0x1ab))/0x7+-parseInt(_0x190dc6(0x1a0))/0x8+-parseInt(_0x190dc6(0x1ae))/0x9;if(_0x53000f===_0x594cf6)break;else _0x1e08a5['push'](_0x1e08a5['shift']());}catch(_0x5718bd){_0x1e08a5['push'](_0x1e08a5['shift']());}}}(a3_0x37af,0x56628));function a3_0x1745(_0x315936,_0x5777d2){const _0x37afe9=a3_0x37af();return a3_0x1745=function(_0x174589,_0x4ff2fb){_0x174589=_0x174589-0x187;let _0x9ed6ea=_0x37afe9[_0x174589];return _0x9ed6ea;},a3_0x1745(_0x315936,_0x5777d2);}Object[a3_0x515749(0x198)](exports,a3_0x515749(0x1b7),{'value':!![]}),exports[a3_0x515749(0x19d)]=exports[a3_0x515749(0x192)]=void 0x0;const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x515749(0x1b6));function Action(_0x4e80c9,_0x790171,_0x55455c={'middleware':[],'sensitive':!![]}){return _0x2241cc=>{const _0x200a82=a3_0x1745;_0x55455c['tagName']=_0x790171;const _0x5b6d4c=parseRoute(_0x4e80c9);if(_0x5b6d4c[_0x200a82(0x1b3)]){_0x55455c[_0x200a82(0x196)]=_0x55455c[_0x200a82(0x196)]?'/'+_0x5b6d4c[_0x200a82(0x1b3)]+'/'+_0x55455c['prefix']:'/'+_0x5b6d4c[_0x200a82(0x18c)];_0x5b6d4c['prefix']&&(_0x55455c[_0x200a82(0x196)]='/'+_0x5b6d4c['prefix']+'/'+_0x55455c[_0x200a82(0x196)]);if(fs[_0x200a82(0x197)](_0x5b6d4c['rootpath']+_0x200a82(0x1a3)+_0x5b6d4c[_0x200a82(0x1b3)]+_0x200a82(0x1b2)+(lodash['endsWith'](_0x5b6d4c['filepath'],'ts')?'ts':'js'))){const _0x5e9be5=include(_0x5b6d4c[_0x200a82(0x19e)]+_0x200a82(0x1a3)+_0x5b6d4c[_0x200a82(0x1b3)]+_0x200a82(0x1b2)+(lodash[_0x200a82(0x189)](_0x5b6d4c['filepath'],'ts')?'ts':'js'));if(_0x5e9be5[_0x200a82(0x1a2)]&&lodash[_0x200a82(0x1a8)](_0x5e9be5[_0x200a82(0x1a2)])&&_0x5e9be5[_0x200a82(0x1a2)][_0x200a82(0x1a6)]>0x0)for(let _0x28e5ed in _0x5e9be5[_0x200a82(0x1a2)]){_0x5e9be5['middlewareIgnore'][_0x200a82(0x1b8)](_0x5e9be5[_0x200a82(0x1a2)][_0x28e5ed])==-0x1&&_0x55455c[_0x200a82(0x1a2)][_0x200a82(0x1a5)](_0x5e9be5[_0x200a82(0x1a2)][_0x28e5ed]);}}_0x55455c[_0x200a82(0x196)]=_0x55455c['prefix']['toLowerCase']()[_0x200a82(0x199)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x200a82(0x18a)])(action_1['ACTION_KEY'],_0x2241cc),(0x0,decorator_1['Controller'])(_0x55455c[_0x200a82(0x196)],_0x55455c)(_0x2241cc),(0x0,decorator_1[_0x200a82(0x188)])(action_1[_0x200a82(0x18f)],{'prefix':_0x55455c['prefix'],'pprefix':_0x5b6d4c[_0x200a82(0x196)],'module':_0x5b6d4c['module'],'filepath':_0x5b6d4c['filepath'],'routerOptions':_0x55455c},_0x2241cc);}else _0x55455c['prefix']=_0x55455c[_0x200a82(0x196)]?'/'+_0x55455c['prefix']:'/'+_0x5b6d4c[_0x200a82(0x18c)],_0x5b6d4c['prefix']&&(_0x55455c['prefix']='/'+_0x5b6d4c[_0x200a82(0x196)]+'/'+_0x55455c[_0x200a82(0x196)]),_0x55455c[_0x200a82(0x196)]=_0x55455c[_0x200a82(0x196)][_0x200a82(0x1b0)]()[_0x200a82(0x199)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x200a82(0x18a)])(action_1[_0x200a82(0x18f)],_0x2241cc),(0x0,decorator_1['Controller'])(_0x55455c[_0x200a82(0x196)],_0x55455c)(_0x2241cc),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x200a82(0x18f)],{'prefix':_0x55455c[_0x200a82(0x196)],'module':_0x5b6d4c[_0x200a82(0x1b3)],'pprefix':_0x5b6d4c['prefix'],'filepath':_0x5b6d4c[_0x200a82(0x1b4)],'routerOptions':_0x55455c},_0x2241cc);};}function a3_0x37af(){const _0x3d4cc6=['defineProperty','replace','cwd','match','split','parseRoute','rootpath','2tXwzGj','2339512VSvnuO','893112GQgtTj','middleware','/apps/','apps/','push','length','-controller','isArray','substring','trim','1343328zMZftq','splice','\x20文件请放在apps/','1705158JbRiBt','app/controller/','toLowerCase','filter','/config.','module','filepath','488335odVOfs','../types/action','__esModule','indexOf','join','saveClassMetadata','endsWith','saveModule','/controller/','route','-action','334468kyVPmk','ACTION_KEY','1125376nUbruy','/controller/文件下','Action','18FxFLVE','\x20文件请放在app/controller/文件下','startsWith','prefix','existsSync'];a3_0x37af=function(){return _0x3d4cc6;};return a3_0x37af();}exports[a3_0x515749(0x192)]=Action;function parseRoute(_0x2255a9){const _0x35c1d4=a3_0x515749;_0x2255a9=_0x2255a9[_0x35c1d4(0x199)](/(\\|\/)/g,'/');const _0x50bb69=process[_0x35c1d4(0x19a)]()['replace'](/(\\|\/)/g,'/'),_0x2889ee=_0x2255a9['substring'](0x0,_0x50bb69['length']+_0x2255a9['substring'](_0x50bb69[_0x35c1d4(0x1a6)]+0x1)['indexOf']('/')+0x1),_0x28a571=_0x2255a9['substring'](_0x2889ee['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x43fef5={'route':'','prefix':![],'module':![],'rootpath':_0x2889ee,'filepath':_0x28a571};if(_0x28a571[_0x35c1d4(0x195)](_0x35c1d4(0x1af))){const _0x3a3377=_0x28a571[_0x35c1d4(0x1a9)](_0x35c1d4(0x1af)[_0x35c1d4(0x1a6)])[_0x35c1d4(0x19c)]('/')[_0x35c1d4(0x1b1)](_0x24137b=>_0x24137b&&_0x24137b[_0x35c1d4(0x1aa)]());return _0x3a3377[_0x35c1d4(0x1a6)]>0x1&&(_0x43fef5[_0x35c1d4(0x196)]=_0x3a3377[0x0][_0x35c1d4(0x1b0)](),_0x3a3377['splice'](0x0,0x1)),_0x43fef5[_0x35c1d4(0x18c)]=('/'+_0x3a3377[_0x35c1d4(0x187)]('/'))[_0x35c1d4(0x199)](/(\.ts|\.js)$/,'')[_0x35c1d4(0x199)](/\/{2,}/g,'/')[_0x35c1d4(0x19b)](/[\/|A-Z]*[^A-Z]+/g)[_0x35c1d4(0x187)]('-')['toLowerCase']()[_0x35c1d4(0x199)](/\/\-/g,'/'),_0x43fef5[_0x35c1d4(0x18c)]['endsWith'](_0x35c1d4(0x18d))&&(_0x43fef5[_0x35c1d4(0x18c)]=_0x43fef5['route'][_0x35c1d4(0x1a9)](0x0,_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x1a6)]-0x7)),_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x189)](_0x35c1d4(0x1a7))&&(_0x43fef5[_0x35c1d4(0x18c)]=_0x43fef5['route'][_0x35c1d4(0x1a9)](0x0,_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x1a6)]-0xb)),_0x43fef5;}else{if(_0x28a571[_0x35c1d4(0x195)](_0x35c1d4(0x1a4))){const _0x2c2374=_0x28a571['substring'](0x0,_0x28a571['indexOf'](_0x35c1d4(0x1a3))+0x5),_0x1bffb9=_0x28a571['substring'](_0x2c2374['length']+0x1)[_0x35c1d4(0x199)](/(\\|\/)/g,'/')[_0x35c1d4(0x19c)]('/')[0x0];if(_0x28a571[_0x35c1d4(0x195)](_0x35c1d4(0x1a4)+_0x1bffb9+_0x35c1d4(0x18b))){const _0x5d4274=_0x28a571[_0x35c1d4(0x1a9)]((_0x2c2374+'/'+_0x1bffb9+_0x35c1d4(0x18b))[_0x35c1d4(0x1a6)])[_0x35c1d4(0x19c)]('/')[_0x35c1d4(0x1b1)](_0x5587ba=>_0x5587ba&&_0x5587ba['trim']());return _0x5d4274[_0x35c1d4(0x1a6)]>0x1&&(_0x43fef5[_0x35c1d4(0x196)]=_0x5d4274[0x0]['toLowerCase'](),_0x5d4274[_0x35c1d4(0x1ac)](0x0,0x1)),_0x43fef5[_0x35c1d4(0x1b3)]=_0x1bffb9,_0x43fef5['route']=('/'+_0x1bffb9+'/'+_0x5d4274[_0x35c1d4(0x187)]('/'))[_0x35c1d4(0x199)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x35c1d4(0x1b0)]()[_0x35c1d4(0x199)](/\/\-/g,'/'),_0x43fef5[_0x35c1d4(0x18c)]['endsWith'](_0x35c1d4(0x18d))&&(_0x43fef5['route']=_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x1a9)](0x0,_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x1a6)]-0x7)),_0x43fef5['route'][_0x35c1d4(0x189)](_0x35c1d4(0x1a7))&&(_0x43fef5[_0x35c1d4(0x18c)]=_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x1a9)](0x0,_0x43fef5[_0x35c1d4(0x18c)][_0x35c1d4(0x1a6)]-0xb)),_0x43fef5;}throw new Error(_0x28a571+_0x35c1d4(0x1ad)+_0x1bffb9+_0x35c1d4(0x191));}}throw new Error(_0x28a571+_0x35c1d4(0x194));}exports[a3_0x515749(0x19d)]=parseRoute;
1
+ 'use strict';const a3_0x2c8662=a3_0x24c1;function a3_0x3326(){const _0x3e1971=['parseRoute','existsSync','split','18XAqblj','toLowerCase','saveClassMetadata','92766kXXIwG','defineProperty','cwd','apps/','rootpath','730HCutFj','replace','tagName','2twSREp','155348hquAgC','65omylOL','../types/action','match','length','prefix','Action','filepath','app/controller/','push','/controller/','middlewareIgnore','155045WYpcRP','route','4512176heCDco','9270793KWediH','saveModule','trim','7100292AJeAFr','__esModule','Controller','indexOf','join','ACTION_KEY','/config.','endsWith','substring','splice','startsWith','isArray','/apps/','module','middleware','-controller','filter','519114XQkDjv'];a3_0x3326=function(){return _0x3e1971;};return a3_0x3326();}(function(_0x1df33a,_0x3e86e9){const _0x349184=a3_0x24c1,_0x53903f=_0x1df33a();while(!![]){try{const _0xed961=parseInt(_0x349184(0xd5))/0x1+-parseInt(_0x349184(0xb1))/0x2*(parseInt(_0x349184(0xa9))/0x3)+parseInt(_0x349184(0xb2))/0x4*(parseInt(_0x349184(0xb3))/0x5)+parseInt(_0x349184(0xc4))/0x6+-parseInt(_0x349184(0xc1))/0x7+-parseInt(_0x349184(0xc0))/0x8*(parseInt(_0x349184(0xd9))/0x9)+-parseInt(_0x349184(0xae))/0xa*(-parseInt(_0x349184(0xbe))/0xb);if(_0xed961===_0x3e86e9)break;else _0x53903f['push'](_0x53903f['shift']());}catch(_0x430bfe){_0x53903f['push'](_0x53903f['shift']());}}}(a3_0x3326,0xb7d33));Object[a3_0x2c8662(0xaa)](exports,a3_0x2c8662(0xc5),{'value':!![]}),exports[a3_0x2c8662(0xd6)]=exports[a3_0x2c8662(0xb8)]=void 0x0;function a3_0x24c1(_0x353be4,_0x2475b9){const _0x3326f7=a3_0x3326();return a3_0x24c1=function(_0x24c1e2,_0x20dc08){_0x24c1e2=_0x24c1e2-0xa8;let _0x593e03=_0x3326f7[_0x24c1e2];return _0x593e03;},a3_0x24c1(_0x353be4,_0x2475b9);}const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x2c8662(0xb4));function Action(_0x5cc3f6,_0xe8a175,_0x1ff53a={'middleware':[],'sensitive':!![]}){return _0x28254d=>{const _0x46016e=a3_0x24c1;_0x1ff53a[_0x46016e(0xb0)]=_0xe8a175;const _0x1241bf=parseRoute(_0x5cc3f6);if(_0x1241bf[_0x46016e(0xd1)]){_0x1ff53a[_0x46016e(0xb7)]=_0x1ff53a[_0x46016e(0xb7)]?'/'+_0x1241bf[_0x46016e(0xd1)]+'/'+_0x1ff53a[_0x46016e(0xb7)]:'/'+_0x1241bf[_0x46016e(0xbf)];_0x1241bf[_0x46016e(0xb7)]&&(_0x1ff53a[_0x46016e(0xb7)]='/'+_0x1241bf[_0x46016e(0xb7)]+'/'+_0x1ff53a[_0x46016e(0xb7)]);if(fs[_0x46016e(0xd7)](_0x1241bf[_0x46016e(0xad)]+_0x46016e(0xd0)+_0x1241bf[_0x46016e(0xd1)]+_0x46016e(0xca)+(lodash['endsWith'](_0x1241bf[_0x46016e(0xb9)],'ts')?'ts':'js'))){const _0x548295=include(_0x1241bf[_0x46016e(0xad)]+_0x46016e(0xd0)+_0x1241bf[_0x46016e(0xd1)]+_0x46016e(0xca)+(lodash['endsWith'](_0x1241bf['filepath'],'ts')?'ts':'js'));if(_0x548295[_0x46016e(0xd2)]&&lodash[_0x46016e(0xcf)](_0x548295[_0x46016e(0xd2)])&&_0x548295[_0x46016e(0xd2)][_0x46016e(0xb6)]>0x0)for(let _0x3c2306 in _0x548295[_0x46016e(0xd2)]){_0x548295[_0x46016e(0xbd)]['indexOf'](_0x548295[_0x46016e(0xd2)][_0x3c2306])==-0x1&&_0x1ff53a[_0x46016e(0xd2)][_0x46016e(0xbb)](_0x548295['middleware'][_0x3c2306]);}}_0x1ff53a['prefix']=_0x1ff53a[_0x46016e(0xb7)]['toLowerCase']()[_0x46016e(0xaf)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x46016e(0xc2)])(action_1[_0x46016e(0xc9)],_0x28254d),(0x0,decorator_1[_0x46016e(0xc6)])(_0x1ff53a[_0x46016e(0xb7)],_0x1ff53a)(_0x28254d),(0x0,decorator_1[_0x46016e(0xa8)])(action_1[_0x46016e(0xc9)],{'prefix':_0x1ff53a['prefix'],'pprefix':_0x1241bf[_0x46016e(0xb7)],'module':_0x1241bf[_0x46016e(0xd1)],'filepath':_0x1241bf['filepath'],'routerOptions':_0x1ff53a},_0x28254d);}else _0x1ff53a[_0x46016e(0xb7)]=_0x1ff53a[_0x46016e(0xb7)]?'/'+_0x1ff53a[_0x46016e(0xb7)]:'/'+_0x1241bf['route'],_0x1241bf[_0x46016e(0xb7)]&&(_0x1ff53a[_0x46016e(0xb7)]='/'+_0x1241bf[_0x46016e(0xb7)]+'/'+_0x1ff53a['prefix']),_0x1ff53a[_0x46016e(0xb7)]=_0x1ff53a['prefix'][_0x46016e(0xda)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x46016e(0xc2)])(action_1[_0x46016e(0xc9)],_0x28254d),(0x0,decorator_1[_0x46016e(0xc6)])(_0x1ff53a[_0x46016e(0xb7)],_0x1ff53a)(_0x28254d),(0x0,decorator_1[_0x46016e(0xa8)])(action_1['ACTION_KEY'],{'prefix':_0x1ff53a[_0x46016e(0xb7)],'module':_0x1241bf[_0x46016e(0xd1)],'pprefix':_0x1241bf[_0x46016e(0xb7)],'filepath':_0x1241bf['filepath'],'routerOptions':_0x1ff53a},_0x28254d);};}exports[a3_0x2c8662(0xb8)]=Action;function parseRoute(_0x4ac16c){const _0x32e443=a3_0x2c8662;_0x4ac16c=_0x4ac16c['replace'](/(\\|\/)/g,'/');const _0xce23a8=process[_0x32e443(0xab)]()[_0x32e443(0xaf)](/(\\|\/)/g,'/'),_0x57aea2=_0x4ac16c[_0x32e443(0xcc)](0x0,_0xce23a8[_0x32e443(0xb6)]+_0x4ac16c[_0x32e443(0xcc)](_0xce23a8['length']+0x1)[_0x32e443(0xc7)]('/')+0x1),_0x1b4895=_0x4ac16c[_0x32e443(0xcc)](_0x57aea2[_0x32e443(0xb6)]+0x1)[_0x32e443(0xaf)](/(\\|\/)/g,'/'),_0x284355={'route':'','prefix':![],'module':![],'rootpath':_0x57aea2,'filepath':_0x1b4895};if(_0x1b4895[_0x32e443(0xce)](_0x32e443(0xba))){const _0x957474=_0x1b4895[_0x32e443(0xcc)](_0x32e443(0xba)[_0x32e443(0xb6)])[_0x32e443(0xd8)]('/')['filter'](_0x4364c3=>_0x4364c3&&_0x4364c3[_0x32e443(0xc3)]());return _0x957474[_0x32e443(0xb6)]>0x1&&(_0x284355[_0x32e443(0xb7)]=_0x957474[0x0][_0x32e443(0xda)](),_0x957474[_0x32e443(0xcd)](0x0,0x1)),_0x284355[_0x32e443(0xbf)]=('/'+_0x957474[_0x32e443(0xc8)]('/'))[_0x32e443(0xaf)](/(\.ts|\.js)$/,'')[_0x32e443(0xaf)](/\/{2,}/g,'/')[_0x32e443(0xb5)](/[\/|A-Z]*[^A-Z]+/g)[_0x32e443(0xc8)]('-')[_0x32e443(0xda)]()[_0x32e443(0xaf)](/\/\-/g,'/'),_0x284355[_0x32e443(0xbf)]['endsWith']('-action')&&(_0x284355[_0x32e443(0xbf)]=_0x284355[_0x32e443(0xbf)][_0x32e443(0xcc)](0x0,_0x284355[_0x32e443(0xbf)][_0x32e443(0xb6)]-0x7)),_0x284355[_0x32e443(0xbf)][_0x32e443(0xcb)](_0x32e443(0xd3))&&(_0x284355[_0x32e443(0xbf)]=_0x284355['route'][_0x32e443(0xcc)](0x0,_0x284355[_0x32e443(0xbf)]['length']-0xb)),_0x284355;}else{if(_0x1b4895['startsWith'](_0x32e443(0xac))){const _0x25b607=_0x1b4895[_0x32e443(0xcc)](0x0,_0x1b4895[_0x32e443(0xc7)](_0x32e443(0xd0))+0x5),_0x34ce8e=_0x1b4895[_0x32e443(0xcc)](_0x25b607['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x32e443(0xd8)]('/')[0x0];if(_0x1b4895[_0x32e443(0xce)](_0x32e443(0xac)+_0x34ce8e+_0x32e443(0xbc))){const _0x4fc926=_0x1b4895['substring']((_0x25b607+'/'+_0x34ce8e+'/controller/')[_0x32e443(0xb6)])[_0x32e443(0xd8)]('/')[_0x32e443(0xd4)](_0x14d32d=>_0x14d32d&&_0x14d32d[_0x32e443(0xc3)]());return _0x4fc926[_0x32e443(0xb6)]>0x1&&(_0x284355[_0x32e443(0xb7)]=_0x4fc926[0x0][_0x32e443(0xda)](),_0x4fc926[_0x32e443(0xcd)](0x0,0x1)),_0x284355[_0x32e443(0xd1)]=_0x34ce8e,_0x284355[_0x32e443(0xbf)]=('/'+_0x34ce8e+'/'+_0x4fc926[_0x32e443(0xc8)]('/'))[_0x32e443(0xaf)](/(\.ts|\.js)$/,'')[_0x32e443(0xaf)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x32e443(0xc8)]('-')['toLowerCase']()[_0x32e443(0xaf)](/\/\-/g,'/'),_0x284355[_0x32e443(0xbf)][_0x32e443(0xcb)]('-action')&&(_0x284355[_0x32e443(0xbf)]=_0x284355[_0x32e443(0xbf)][_0x32e443(0xcc)](0x0,_0x284355['route'][_0x32e443(0xb6)]-0x7)),_0x284355[_0x32e443(0xbf)][_0x32e443(0xcb)]('-controller')&&(_0x284355['route']=_0x284355[_0x32e443(0xbf)][_0x32e443(0xcc)](0x0,_0x284355[_0x32e443(0xbf)]['length']-0xb)),_0x284355;}throw new Error(_0x1b4895+'\x20文件请放在apps/'+_0x34ce8e+'/controller/文件下');}}throw new Error(_0x1b4895+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
@@ -1 +1 @@
1
- 'use strict';const a4_0xb3f32=a4_0x2a9b;(function(_0x10960b,_0x4b325b){const _0x216e8f=a4_0x2a9b,_0x1bf000=_0x10960b();while(!![]){try{const _0x319ffe=parseInt(_0x216e8f(0x18e))/0x1*(-parseInt(_0x216e8f(0x194))/0x2)+parseInt(_0x216e8f(0x184))/0x3+-parseInt(_0x216e8f(0x1a0))/0x4+parseInt(_0x216e8f(0x189))/0x5*(parseInt(_0x216e8f(0x196))/0x6)+-parseInt(_0x216e8f(0x19d))/0x7*(parseInt(_0x216e8f(0x19b))/0x8)+parseInt(_0x216e8f(0x198))/0x9*(parseInt(_0x216e8f(0x183))/0xa)+-parseInt(_0x216e8f(0x18a))/0xb*(-parseInt(_0x216e8f(0x18d))/0xc);if(_0x319ffe===_0x4b325b)break;else _0x1bf000['push'](_0x1bf000['shift']());}catch(_0x15a448){_0x1bf000['push'](_0x1bf000['shift']());}}}(a4_0x149e,0x68455));function a4_0x2a9b(_0x20075f,_0x36b5c6){const _0x149ebf=a4_0x149e();return a4_0x2a9b=function(_0x2a9bf9,_0x1bcbfc){_0x2a9bf9=_0x2a9bf9-0x183;let _0x4724d2=_0x149ebf[_0x2a9bf9];return _0x4724d2;},a4_0x2a9b(_0x20075f,_0x36b5c6);}Object[a4_0xb3f32(0x193)](exports,a4_0xb3f32(0x190),{'value':!![]}),exports[a4_0xb3f32(0x1a1)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0xb3f32(0x19a));function a4_0x149e(){const _0x49a229=['12xXyWci','1pYWNRt','filter','__esModule','length','ACTION_ROUTE_KEY','defineProperty','1429042SWMXPK','utc','372450ReDJRP','middleware','9mIyiqZ','routerName','../types/action','568SjOWUe','toLowerCase','73374KknxrQ','indexOf','createCustomMethodDecorator','2376212ZREQqT','Api','validationOptions','attachClassMetadata','5810620YHjfoS','2201868hRZJcl','apimit','validate','middlewareIgnore','del','5FJhMHc','12130756yLjvmJ','assign','delete'];a4_0x149e=function(){return _0x49a229;};return a4_0x149e();}function Api(_0x565282,_0x4af650='get',_0x3bc7af='/',_0xcf51f6={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x52bc4c,_0x2d36ed,_0x307864)=>{const _0x270b8e=a4_0x2a9b;var _0x4f8f68,_0x459a5e,_0x323f1b;!_0xcf51f6['middleware']&&(_0xcf51f6['middleware']=[]);!((_0x4f8f68=_0xcf51f6===null||_0xcf51f6===void 0x0?void 0x0:_0xcf51f6[_0x270b8e(0x186)])===null||_0x4f8f68===void 0x0?void 0x0:_0x4f8f68[_0x270b8e(0x1a2)])&&(_0xcf51f6[_0x270b8e(0x186)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x270b8e(0x195)}});if(((_0x459a5e=_0xcf51f6===null||_0xcf51f6===void 0x0?void 0x0:_0xcf51f6[_0x270b8e(0x197)])===null||_0x459a5e===void 0x0?void 0x0:_0x459a5e[_0x270b8e(0x191)])>0x0&&((_0x323f1b=_0xcf51f6===null||_0xcf51f6===void 0x0?void 0x0:_0xcf51f6[_0x270b8e(0x187)])===null||_0x323f1b===void 0x0?void 0x0:_0x323f1b[_0x270b8e(0x191)])>0x0)for(let _0x3f9ea0 in _0xcf51f6['middleware']){_0xcf51f6[_0x270b8e(0x187)][_0x270b8e(0x19e)](_0xcf51f6[_0x270b8e(0x197)][_0x3f9ea0])!==-0x1&&(_0xcf51f6[_0x270b8e(0x197)][_0x3f9ea0]=null);}_0xcf51f6[_0x270b8e(0x199)]=_0x565282,(0x0,validator_1['Validator'])(_0xcf51f6[_0x270b8e(0x186)])(_0x52bc4c,_0x2d36ed,_0x307864),(0x0,decorator_1['RequestMapping'])(Object[_0x270b8e(0x18b)](_0xcf51f6,{'path':_0x3bc7af,'requestMethod':(_0x4af650=='del'?_0x270b8e(0x18c):_0x4af650)[_0x270b8e(0x19c)]()}))(_0x52bc4c,_0x2d36ed,_0x307864),(0x0,decorator_1[_0x270b8e(0x1a3)])(action_1[_0x270b8e(0x192)],{'path':_0x3bc7af,'method':_0x2d36ed,'apimit':_0xcf51f6['apimit'],'routerName':_0xcf51f6[_0x270b8e(0x199)],'description':_0xcf51f6['description'],'middleware':(_0xcf51f6['middleware']||[])[_0x270b8e(0x18f)](_0x104e54=>!!_0x104e54),'requestMethod':(_0x4af650==_0x270b8e(0x188)?_0x270b8e(0x18c):_0x4af650)[_0x270b8e(0x19c)]()},_0x52bc4c),(0x0,decorator_1[_0x270b8e(0x19f)])(action_1[_0x270b8e(0x192)],{'path':_0x3bc7af,'method':_0x2d36ed,'apimit':_0xcf51f6[_0x270b8e(0x185)],'routerName':_0xcf51f6[_0x270b8e(0x199)],'description':_0xcf51f6['description'],'middleware':(_0xcf51f6[_0x270b8e(0x197)]||[])[_0x270b8e(0x18f)](_0x27c2f8=>!!_0x27c2f8),'requestMethod':(_0x4af650==_0x270b8e(0x188)?_0x270b8e(0x18c):_0x4af650)[_0x270b8e(0x19c)]()})(_0x52bc4c,_0x2d36ed,_0x307864);};}exports[a4_0xb3f32(0x1a1)]=Api;
1
+ 'use strict';const a4_0x40b282=a4_0x38dd;function a4_0x2435(){const _0x54876d=['validationOptions','9982WqzMEi','del','__esModule','middleware','middlewareIgnore','986522xFLUdx','9432TUbhXO','apimit','indexOf','3806946QRxsZj','Validator','5539220WzUxMN','length','delete','102977eWqcKu','description','utc','validate','@anncic-api/validator','attachClassMetadata','routerName','@midwayjs/decorator','Api','toLowerCase','filter','ACTION_ROUTE_KEY','createCustomMethodDecorator','defineProperty','RequestMapping','3710949tSZXrM','assign','5415060gAAzKu'];a4_0x2435=function(){return _0x54876d;};return a4_0x2435();}(function(_0x55ff6c,_0x1b0eb5){const _0x3e896e=a4_0x38dd,_0x1a90cf=_0x55ff6c();while(!![]){try{const _0x4ae315=-parseInt(_0x3e896e(0x160))/0x1+-parseInt(_0x3e896e(0x157))/0x2+-parseInt(_0x3e896e(0x16f))/0x3+parseInt(_0x3e896e(0x171))/0x4+-parseInt(_0x3e896e(0x15d))/0x5+parseInt(_0x3e896e(0x15b))/0x6+parseInt(_0x3e896e(0x173))/0x7*(parseInt(_0x3e896e(0x158))/0x8);if(_0x4ae315===_0x1b0eb5)break;else _0x1a90cf['push'](_0x1a90cf['shift']());}catch(_0x4f3593){_0x1a90cf['push'](_0x1a90cf['shift']());}}}(a4_0x2435,0xb1d7d));Object[a4_0x40b282(0x16d)](exports,a4_0x40b282(0x154),{'value':!![]}),exports[a4_0x40b282(0x168)]=void 0x0;function a4_0x38dd(_0x3d77b1,_0x20c1b0){const _0x243536=a4_0x2435();return a4_0x38dd=function(_0x38dd7d,_0x2c0ba3){_0x38dd7d=_0x38dd7d-0x153;let _0x3eab78=_0x243536[_0x38dd7d];return _0x3eab78;},a4_0x38dd(_0x3d77b1,_0x20c1b0);}const validator_1=require(a4_0x40b282(0x164)),decorator_1=require(a4_0x40b282(0x167)),action_1=require('../types/action');function Api(_0x485568,_0x1ac3ee='get',_0x3d02a9='/',_0x154306={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x35142c,_0x2ed4ca,_0x58157c)=>{const _0x55065e=a4_0x38dd;var _0x24ba24,_0x47dba3,_0x27cc48;!_0x154306[_0x55065e(0x155)]&&(_0x154306[_0x55065e(0x155)]=[]);!((_0x24ba24=_0x154306===null||_0x154306===void 0x0?void 0x0:_0x154306[_0x55065e(0x163)])===null||_0x24ba24===void 0x0?void 0x0:_0x24ba24[_0x55065e(0x172)])&&(_0x154306['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x55065e(0x162)}});if(((_0x47dba3=_0x154306===null||_0x154306===void 0x0?void 0x0:_0x154306[_0x55065e(0x155)])===null||_0x47dba3===void 0x0?void 0x0:_0x47dba3[_0x55065e(0x15e)])>0x0&&((_0x27cc48=_0x154306===null||_0x154306===void 0x0?void 0x0:_0x154306[_0x55065e(0x156)])===null||_0x27cc48===void 0x0?void 0x0:_0x27cc48[_0x55065e(0x15e)])>0x0)for(let _0x4a551a in _0x154306[_0x55065e(0x155)]){_0x154306[_0x55065e(0x156)][_0x55065e(0x15a)](_0x154306[_0x55065e(0x155)][_0x4a551a])!==-0x1&&(_0x154306['middleware'][_0x4a551a]=null);}_0x154306['routerName']=_0x485568,(0x0,validator_1[_0x55065e(0x15c)])(_0x154306[_0x55065e(0x163)])(_0x35142c,_0x2ed4ca,_0x58157c),(0x0,decorator_1[_0x55065e(0x16e)])(Object[_0x55065e(0x170)](_0x154306,{'path':_0x3d02a9,'requestMethod':(_0x1ac3ee==_0x55065e(0x153)?_0x55065e(0x15f):_0x1ac3ee)['toLowerCase']()}))(_0x35142c,_0x2ed4ca,_0x58157c),(0x0,decorator_1[_0x55065e(0x165)])(action_1[_0x55065e(0x16b)],{'path':_0x3d02a9,'method':_0x2ed4ca,'apimit':_0x154306[_0x55065e(0x159)],'routerName':_0x154306[_0x55065e(0x166)],'description':_0x154306[_0x55065e(0x161)],'middleware':(_0x154306['middleware']||[])['filter'](_0x2994f4=>!!_0x2994f4),'requestMethod':(_0x1ac3ee==_0x55065e(0x153)?'delete':_0x1ac3ee)[_0x55065e(0x169)]()},_0x35142c),(0x0,decorator_1[_0x55065e(0x16c)])(action_1[_0x55065e(0x16b)],{'path':_0x3d02a9,'method':_0x2ed4ca,'apimit':_0x154306[_0x55065e(0x159)],'routerName':_0x154306[_0x55065e(0x166)],'description':_0x154306['description'],'middleware':(_0x154306['middleware']||[])[_0x55065e(0x16a)](_0x12b1e0=>!!_0x12b1e0),'requestMethod':(_0x1ac3ee==_0x55065e(0x153)?_0x55065e(0x15f):_0x1ac3ee)[_0x55065e(0x169)]()})(_0x35142c,_0x2ed4ca,_0x58157c);};}exports[a4_0x40b282(0x168)]=Api;
@@ -1 +1 @@
1
- 'use strict';const a5_0x3aa15b=a5_0x4248;(function(_0x46aa70,_0x3b6a63){const _0x28c791=a5_0x4248,_0x3190de=_0x46aa70();while(!![]){try{const _0x5a641f=parseInt(_0x28c791(0x202))/0x1+parseInt(_0x28c791(0x1f1))/0x2*(-parseInt(_0x28c791(0x1fa))/0x3)+parseInt(_0x28c791(0x1fc))/0x4*(-parseInt(_0x28c791(0x1f9))/0x5)+parseInt(_0x28c791(0x1f8))/0x6*(parseInt(_0x28c791(0x1f3))/0x7)+parseInt(_0x28c791(0x1fb))/0x8+parseInt(_0x28c791(0x1f7))/0x9*(parseInt(_0x28c791(0x203))/0xa)+parseInt(_0x28c791(0x1f4))/0xb;if(_0x5a641f===_0x3b6a63)break;else _0x3190de['push'](_0x3190de['shift']());}catch(_0x25a029){_0x3190de['push'](_0x3190de['shift']());}}}(a5_0x4860,0x55f42));function a5_0x4248(_0x5d01e9,_0xfdee89){const _0x4860c8=a5_0x4860();return a5_0x4248=function(_0x42484d,_0x5addb1){_0x42484d=_0x42484d-0x1ef;let _0x1965c1=_0x4860c8[_0x42484d];return _0x1965c1;},a5_0x4248(_0x5d01e9,_0xfdee89);}function a5_0x4860(){const _0x564d7a=['REQUEST_OBJ_CTX_KEY','filepath','81mdEnVB','6xVCBSg','166255ODCMga','2042193qDeaoF','2472224Grtmom','4nUAHyF','../service/ApitestService','apidoc','Apitest','@midwayjs/core','defineProperty','173316DhodnC','384610qMWUme','value','getConfig','MidwayEnvironmentService','app','__esModule','getApplicationContext','isDevelopmentEnvironment','2kfLfML','get','673799rCEWFy','1554278ZnzauE'];a5_0x4860=function(){return _0x564d7a;};return a5_0x4860();}Object[a5_0x3aa15b(0x201)](exports,a5_0x3aa15b(0x208),{'value':!![]}),exports[a5_0x3aa15b(0x1ff)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x3aa15b(0x200)),ApitestService_1=require(a5_0x3aa15b(0x1fd));function Apitest(_0x4b234c='/apitest',_0x52fd7f){return(_0x4e6cc6,_0x52fd1d,_0x425003)=>{const _0x423354=a5_0x4248;return(0x0,decorator_1['RequestMapping'])({'path':_0x4b234c,'requestMethod':_0x423354(0x1f2)})(_0x4e6cc6,_0x52fd1d,_0x425003),_0x425003[_0x423354(0x204)]=async function(..._0x2fb86b){const _0x2ee46f=_0x423354;var _0x5e41f8;const _0x3cb84e=(_0x5e41f8=this[core_1[_0x2ee46f(0x1f5)]])===null||_0x5e41f8===void 0x0?void 0x0:_0x5e41f8[_0x2ee46f(0x207)];if(_0x3cb84e&&_0x3cb84e[_0x2ee46f(0x205)]('apitest')){const _0xe157ee=await _0x3cb84e[_0x2ee46f(0x1ef)]()['getAsync'](ApitestService_1['ApitestService']),_0x14d9b2=await _0x3cb84e[_0x2ee46f(0x1ef)]()['getAsync'](core_1[_0x2ee46f(0x206)]);return _0x14d9b2[_0x2ee46f(0x1f0)]()&&(_0x52fd7f[_0x2ee46f(0x1f6)]=!![]),await _0xe157ee[_0x2ee46f(0x1fe)](_0x52fd7f);}return'';},_0x425003;};}exports[a5_0x3aa15b(0x1ff)]=Apitest;
1
+ 'use strict';const a5_0x275bcf=a5_0xd877;(function(_0x1b966a,_0x53ea13){const _0x4636b0=a5_0xd877,_0x38f434=_0x1b966a();while(!![]){try{const _0x20325e=-parseInt(_0x4636b0(0xfa))/0x1+-parseInt(_0x4636b0(0xf9))/0x2+-parseInt(_0x4636b0(0xfb))/0x3+-parseInt(_0x4636b0(0xf6))/0x4*(parseInt(_0x4636b0(0xf4))/0x5)+parseInt(_0x4636b0(0xee))/0x6+parseInt(_0x4636b0(0xfe))/0x7*(parseInt(_0x4636b0(0xf3))/0x8)+-parseInt(_0x4636b0(0xf2))/0x9*(-parseInt(_0x4636b0(0xff))/0xa);if(_0x20325e===_0x53ea13)break;else _0x38f434['push'](_0x38f434['shift']());}catch(_0x4bf831){_0x38f434['push'](_0x38f434['shift']());}}}(a5_0x1304,0x7e9ea));function a5_0xd877(_0x31e613,_0x4f5557){const _0x130498=a5_0x1304();return a5_0xd877=function(_0xd877f2,_0x19eb84){_0xd877f2=_0xd877f2-0xe9;let _0x1657f8=_0x130498[_0xd877f2];return _0x1657f8;},a5_0xd877(_0x31e613,_0x4f5557);}Object[a5_0x275bcf(0x102)](exports,'__esModule',{'value':!![]}),exports[a5_0x275bcf(0xea)]=void 0x0;const decorator_1=require(a5_0x275bcf(0xf1)),core_1=require(a5_0x275bcf(0xe9)),ApitestService_1=require(a5_0x275bcf(0xf5));function Apitest(_0x55339e='/apitest',_0x4092a6){return(_0xcd4e4a,_0x3ca950,_0x30d544)=>{const _0x2ef5c4=a5_0xd877;return(0x0,decorator_1[_0x2ef5c4(0xef)])({'path':_0x55339e,'requestMethod':_0x2ef5c4(0xfd)})(_0xcd4e4a,_0x3ca950,_0x30d544),_0x30d544[_0x2ef5c4(0xec)]=async function(..._0x356b2e){const _0x4cf28b=_0x2ef5c4;var _0x136abb;const _0x3d4fda=(_0x136abb=this[core_1[_0x4cf28b(0x100)]])===null||_0x136abb===void 0x0?void 0x0:_0x136abb['app'];if(_0x3d4fda&&_0x3d4fda[_0x4cf28b(0xfc)]('apitest')){const _0x3e74c8=await _0x3d4fda[_0x4cf28b(0xeb)]()[_0x4cf28b(0xf7)](ApitestService_1[_0x4cf28b(0x101)]),_0x38f1a6=await _0x3d4fda[_0x4cf28b(0xeb)]()[_0x4cf28b(0xf7)](core_1[_0x4cf28b(0xed)]);return _0x38f1a6[_0x4cf28b(0xf8)]()&&(_0x4092a6[_0x4cf28b(0xf0)]=!![]),await _0x3e74c8['apidoc'](_0x4092a6);}return'';},_0x30d544;};}function a5_0x1304(){const _0x450293=['@midwayjs/core','Apitest','getApplicationContext','value','MidwayEnvironmentService','5999610SUxsRT','RequestMapping','filepath','@midwayjs/decorator','15993bPBVCa','538760NxdOom','230frjBWR','../service/ApitestService','78568uustIE','getAsync','isDevelopmentEnvironment','1785360ewYGmG','807638TvsEgt','2812779sxKaUW','getConfig','get','63LEiQaJ','13810NTcPeG','REQUEST_OBJ_CTX_KEY','ApitestService','defineProperty'];a5_0x1304=function(){return _0x450293;};return a5_0x1304();}exports['Apitest']=Apitest;
@@ -1 +1 @@
1
- 'use strict';var a6_0x5e822b=a6_0x2eab;(function(_0x98960b,_0x583749){var _0x1e3b7b=a6_0x2eab,_0x26551e=_0x98960b();while(!![]){try{var _0x33050e=parseInt(_0x1e3b7b(0x1e3))/0x1*(-parseInt(_0x1e3b7b(0x1e9))/0x2)+parseInt(_0x1e3b7b(0x1e4))/0x3+-parseInt(_0x1e3b7b(0x1e1))/0x4+-parseInt(_0x1e3b7b(0x1e6))/0x5*(parseInt(_0x1e3b7b(0x1f2))/0x6)+parseInt(_0x1e3b7b(0x1f5))/0x7+parseInt(_0x1e3b7b(0x1e8))/0x8*(parseInt(_0x1e3b7b(0x1ea))/0x9)+parseInt(_0x1e3b7b(0x1ed))/0xa*(parseInt(_0x1e3b7b(0x1ef))/0xb);if(_0x33050e===_0x583749)break;else _0x26551e['push'](_0x26551e['shift']());}catch(_0x2ff04e){_0x26551e['push'](_0x26551e['shift']());}}}(a6_0x9b00,0xa2ec2));function a6_0x2eab(_0x5535e7,_0x1ca2b0){var _0x9b00f4=a6_0x9b00();return a6_0x2eab=function(_0x2eab2e,_0x49c7ee){_0x2eab2e=_0x2eab2e-0x1de;var _0x529335=_0x9b00f4[_0x2eab2e];return _0x529335;},a6_0x2eab(_0x5535e7,_0x1ca2b0);}var __decorate=this&&this['__decorate']||function(_0x184a70,_0x56ccb3,_0x450d6c,_0x266504){var _0x9d36a4=a6_0x2eab,_0x439839=arguments[_0x9d36a4(0x1f9)],_0x1ada2b=_0x439839<0x3?_0x56ccb3:_0x266504===null?_0x266504=Object[_0x9d36a4(0x1e0)](_0x56ccb3,_0x450d6c):_0x266504,_0x19a534;if(typeof Reflect===_0x9d36a4(0x1e2)&&typeof Reflect[_0x9d36a4(0x1f6)]===_0x9d36a4(0x1df))_0x1ada2b=Reflect[_0x9d36a4(0x1f6)](_0x184a70,_0x56ccb3,_0x450d6c,_0x266504);else{for(var _0x1a62e4=_0x184a70[_0x9d36a4(0x1f9)]-0x1;_0x1a62e4>=0x0;_0x1a62e4--)if(_0x19a534=_0x184a70[_0x1a62e4])_0x1ada2b=(_0x439839<0x3?_0x19a534(_0x1ada2b):_0x439839>0x3?_0x19a534(_0x56ccb3,_0x450d6c,_0x1ada2b):_0x19a534(_0x56ccb3,_0x450d6c))||_0x1ada2b;}return _0x439839>0x3&&_0x1ada2b&&Object[_0x9d36a4(0x1fa)](_0x56ccb3,_0x450d6c,_0x1ada2b),_0x1ada2b;},__metadata=this&&this[a6_0x5e822b(0x1f4)]||function(_0x41b435,_0xd8797b){var _0x13d8de=a6_0x5e822b;if(typeof Reflect===_0x13d8de(0x1e2)&&typeof Reflect['metadata']===_0x13d8de(0x1df))return Reflect[_0x13d8de(0x1f7)](_0x41b435,_0xd8797b);};function a6_0x9b00(){var _0x41f1ff=['__metadata','593285ehtWuJ','decorate','metadata','signature验证失败','length','defineProperty','design:type','function','getOwnPropertyDescriptor','4198608jNNJXy','object','12478SwyhXP','1956888OAuhii','checkcode验证失败','5wVcXbH','ApiError','341192athvna','62jzUszX','9jNQSDe','HEADERS_CHECKCODE','HEADERS_SIGNATURE','10HWIsSw','请求头信息不完整','19790342ObhZje','HEADERS_LACK','__esModule','2850132btqASn','HEADERS_DEVICE'];a6_0x9b00=function(){return _0x41f1ff;};return a6_0x9b00();}Object[a6_0x5e822b(0x1fa)](exports,a6_0x5e822b(0x1f1),{'value':!![]}),exports[a6_0x5e822b(0x1e7)]=void 0x0;class ApiError{}ApiError['TIMEOUT']=0x18a89,ApiError[a6_0x5e822b(0x1f0)]=0x18a8a,ApiError[a6_0x5e822b(0x1f3)]=0x18a8b,ApiError[a6_0x5e822b(0x1eb)]=0x18a8c,ApiError[a6_0x5e822b(0x1ec)]=0x18a8d,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x5e822b(0x1de),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x5e822b(0x1ee)),__metadata(a6_0x5e822b(0x1de),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x5e822b(0x1de),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x5e822b(0x1e5)),__metadata(a6_0x5e822b(0x1de),Object)],ApiError,a6_0x5e822b(0x1eb),void 0x0),__decorate([AnnErrorMsg(a6_0x5e822b(0x1f8)),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports[a6_0x5e822b(0x1e7)]=ApiError;
1
+ 'use strict';function a6_0x2ecc(){var _0x3b7f43=['HEADERS_LACK','defineProperty','2EvuLCz','object','metadata','5594310MXtiNX','1894344hAhQpx','ApiError','24TwMiQw','1824549cZMIlm','HEADERS_DEVICE','3992yuXmvJ','checkcode验证失败','483365dCOwbA','3371221LtJITx','getOwnPropertyDescriptor','294484Pqlupt','网络繁忙,请稍后重试','HEADERS_SIGNATURE','design:type','请求头信息不完整','length','HEADERS_CHECKCODE','12168PxKhTq','__metadata','signature验证失败','请使用正确的设备','__esModule','function','TIMEOUT','decorate'];a6_0x2ecc=function(){return _0x3b7f43;};return a6_0x2ecc();}var a6_0x25f8cd=a6_0x57da;(function(_0x29fed0,_0x1475df){var _0x3f5a94=a6_0x57da,_0x2877e1=_0x29fed0();while(!![]){try{var _0x15e06b=parseInt(_0x3f5a94(0x103))/0x1+-parseInt(_0x3f5a94(0xf5))/0x2*(-parseInt(_0x3f5a94(0xfc))/0x3)+-parseInt(_0x3f5a94(0xf9))/0x4+parseInt(_0x3f5a94(0x100))/0x5*(parseInt(_0x3f5a94(0xfb))/0x6)+-parseInt(_0x3f5a94(0x101))/0x7+parseInt(_0x3f5a94(0xfe))/0x8*(parseInt(_0x3f5a94(0x10a))/0x9)+-parseInt(_0x3f5a94(0xf8))/0xa;if(_0x15e06b===_0x1475df)break;else _0x2877e1['push'](_0x2877e1['shift']());}catch(_0x523d24){_0x2877e1['push'](_0x2877e1['shift']());}}}(a6_0x2ecc,0x6db6b));function a6_0x57da(_0x50e01c,_0x41b5fa){var _0x2ecc9e=a6_0x2ecc();return a6_0x57da=function(_0x57daba,_0x2e4dba){_0x57daba=_0x57daba-0xed;var _0x4caba8=_0x2ecc9e[_0x57daba];return _0x4caba8;},a6_0x57da(_0x50e01c,_0x41b5fa);}var __decorate=this&&this['__decorate']||function(_0x250668,_0xa58ed2,_0x26dc49,_0x246513){var _0x385d14=a6_0x57da,_0x302107=arguments['length'],_0x42593d=_0x302107<0x3?_0xa58ed2:_0x246513===null?_0x246513=Object[_0x385d14(0x102)](_0xa58ed2,_0x26dc49):_0x246513,_0x2b9a22;if(typeof Reflect==='object'&&typeof Reflect[_0x385d14(0xf2)]===_0x385d14(0xf0))_0x42593d=Reflect['decorate'](_0x250668,_0xa58ed2,_0x26dc49,_0x246513);else{for(var _0x40d3c8=_0x250668[_0x385d14(0x108)]-0x1;_0x40d3c8>=0x0;_0x40d3c8--)if(_0x2b9a22=_0x250668[_0x40d3c8])_0x42593d=(_0x302107<0x3?_0x2b9a22(_0x42593d):_0x302107>0x3?_0x2b9a22(_0xa58ed2,_0x26dc49,_0x42593d):_0x2b9a22(_0xa58ed2,_0x26dc49))||_0x42593d;}return _0x302107>0x3&&_0x42593d&&Object['defineProperty'](_0xa58ed2,_0x26dc49,_0x42593d),_0x42593d;},__metadata=this&&this[a6_0x25f8cd(0x10b)]||function(_0x96f390,_0x5cb31f){var _0x428a6b=a6_0x25f8cd;if(typeof Reflect===_0x428a6b(0xf6)&&typeof Reflect[_0x428a6b(0xf7)]===_0x428a6b(0xf0))return Reflect[_0x428a6b(0xf7)](_0x96f390,_0x5cb31f);};Object[a6_0x25f8cd(0xf4)](exports,a6_0x25f8cd(0xef),{'value':!![]}),exports[a6_0x25f8cd(0xfa)]=void 0x0;class ApiError{}ApiError[a6_0x25f8cd(0xf1)]=0x18a89,ApiError['HEADERS_LACK']=0x18a8a,ApiError[a6_0x25f8cd(0xfd)]=0x18a8b,ApiError[a6_0x25f8cd(0x109)]=0x18a8c,ApiError[a6_0x25f8cd(0x105)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x25f8cd(0x104)),__metadata(a6_0x25f8cd(0x106),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x25f8cd(0x107)),__metadata(a6_0x25f8cd(0x106),Object)],ApiError,a6_0x25f8cd(0xf3),void 0x0),__decorate([AnnErrorMsg(a6_0x25f8cd(0xee)),__metadata(a6_0x25f8cd(0x106),Object)],ApiError,a6_0x25f8cd(0xfd),void 0x0),__decorate([AnnErrorMsg(a6_0x25f8cd(0xff)),__metadata(a6_0x25f8cd(0x106),Object)],ApiError,a6_0x25f8cd(0x109),void 0x0),__decorate([AnnErrorMsg(a6_0x25f8cd(0xed)),__metadata(a6_0x25f8cd(0x106),Object)],ApiError,a6_0x25f8cd(0x105),void 0x0),exports['ApiError']=ApiError;
@@ -1 +1 @@
1
- 'use strict';const a7_0x345ec6=a7_0x160e;(function(_0xec0e07,_0x1c5295){const _0x5567b0=a7_0x160e,_0x42c3a6=_0xec0e07();while(!![]){try{const _0x4476eb=-parseInt(_0x5567b0(0x19c))/0x1+-parseInt(_0x5567b0(0x1c7))/0x2+-parseInt(_0x5567b0(0x190))/0x3+-parseInt(_0x5567b0(0x1c8))/0x4*(-parseInt(_0x5567b0(0x1d8))/0x5)+-parseInt(_0x5567b0(0x1d2))/0x6+-parseInt(_0x5567b0(0x19e))/0x7*(parseInt(_0x5567b0(0x191))/0x8)+-parseInt(_0x5567b0(0x1c0))/0x9*(-parseInt(_0x5567b0(0x1b1))/0xa);if(_0x4476eb===_0x1c5295)break;else _0x42c3a6['push'](_0x42c3a6['shift']());}catch(_0x3aba71){_0x42c3a6['push'](_0x42c3a6['shift']());}}}(a7_0xc8a4,0xd2f52));Object[a7_0x345ec6(0x1e2)](exports,a7_0x345ec6(0x1e1),{'value':!![]}),exports[a7_0x345ec6(0x198)]=void 0x0;const lodash_1=require(a7_0x345ec6(0x1b7)),validator_1=require(a7_0x345ec6(0x1d6)),decorator_1=require(a7_0x345ec6(0x1d4)),decorator_2=require('@midwayjs/decorator'),decorator_3=require(a7_0x345ec6(0x1d4)),action_1=require('../types/action');function a7_0x160e(_0x4129dc,_0x31549a){const _0xc8a4ff=a7_0xc8a4();return a7_0x160e=function(_0x160e78,_0x1910ff){_0x160e78=_0x160e78-0x185;let _0x2a1093=_0xc8a4ff[_0x160e78];return _0x2a1093;},a7_0x160e(_0x4129dc,_0x31549a);}function getRoutes(_0x3f88b3={'prefix':'/','module':![]}){const _0xb7d9f6=a7_0x345ec6;var _0x116186,_0x5e0dd5;const _0x3ee5d0=(0x0,decorator_3['listModule'])(action_1['ACTION_KEY']),_0x1612ee={},_0x294c0e=Array['isArray'](_0x3f88b3['filter']||[])?_0x3f88b3[_0xb7d9f6(0x1ac)]||[]:[_0x3f88b3['filter']];_0x183bbc:for(const _0x49cdcc of _0x3ee5d0){let _0x395b69=(0x0,decorator_3['getClassMetadata'])(action_1[_0xb7d9f6(0x1b2)],_0x49cdcc),_0x2cdc34=(0x0,decorator_3[_0xb7d9f6(0x1c3)])(action_1['ACTION_ROUTE_KEY'],_0x49cdcc);if(_0x395b69&&_0x2cdc34){let _0x630eca=_0x395b69[_0xb7d9f6(0x1bf)],_0x3ba04a={};if(_0x3f88b3[_0xb7d9f6(0x1cf)]&&(0x0,lodash_1[_0xb7d9f6(0x1dd)])(_0x395b69,_0xb7d9f6(0x1cf),![])!=_0x3f88b3[_0xb7d9f6(0x1cf)])continue _0x183bbc;else{if(_0x3f88b3['module']===![]&&!!(0x0,lodash_1['get'])(_0x395b69,_0xb7d9f6(0x1cf),null))continue _0x183bbc;}if(_0x3f88b3[_0xb7d9f6(0x1bf)]&&!_0x630eca[_0xb7d9f6(0x194)](_0x3f88b3['prefix']))continue _0x183bbc;_0x630eca!=='/'?(_0x3ba04a[_0xb7d9f6(0x188)]=(_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69[_0xb7d9f6(0x19a)][_0xb7d9f6(0x1e0)])||(/^\//[_0xb7d9f6(0x18d)](_0x630eca)?_0x630eca[_0xb7d9f6(0x193)]('/')[0x1]:_0x630eca),_0x3ba04a[_0xb7d9f6(0x1a7)]=(_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69[_0xb7d9f6(0x19a)]['description'])||_0x3ba04a['summary'],_0x3ba04a[_0xb7d9f6(0x1b8)]=[]):(_0x3ba04a['summary']=(_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69[_0xb7d9f6(0x19a)]['tagName'])||'default',_0x3ba04a[_0xb7d9f6(0x1a7)]=(_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69[_0xb7d9f6(0x19a)][_0xb7d9f6(0x1a7)])||'',_0x3ba04a['routes']=[]);_0x3f88b3['filepath']&&(_0x3ba04a['filepath']=_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69[_0xb7d9f6(0x1c9)]);(_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69['pprefix'])&&(_0x3ba04a[_0xb7d9f6(0x1bf)]=_0x395b69[_0xb7d9f6(0x1ad)]);(_0x395b69===null||_0x395b69===void 0x0?void 0x0:_0x395b69[_0xb7d9f6(0x1cf)])&&(_0x3ba04a[_0xb7d9f6(0x1cf)]=_0x395b69['module']);let _0x36e4b9=(0x0,decorator_3[_0xb7d9f6(0x1c3)])(decorator_2[_0xb7d9f6(0x199)],_0x49cdcc)||{};if(typeof _0x2cdc34[Symbol['iterator']]===_0xb7d9f6(0x187))for(let _0x29f56d of _0x2cdc34){let _0x27c755={};_0x27c755['method']=_0x29f56d[_0xb7d9f6(0x1ba)],_0x27c755['route']=(_0x630eca+_0x29f56d[_0xb7d9f6(0x1dc)])['replace'](/\/{1,}/,'/'),_0x27c755[_0xb7d9f6(0x188)]=(_0x29f56d===null||_0x29f56d===void 0x0?void 0x0:_0x29f56d[_0xb7d9f6(0x1db)])||_0x3ba04a[_0xb7d9f6(0x188)]||_0xb7d9f6(0x1a6),_0x27c755['description']=(_0x29f56d===null||_0x29f56d===void 0x0?void 0x0:_0x29f56d[_0xb7d9f6(0x1a7)])||'',_0x27c755[_0xb7d9f6(0x1a8)]=[];if(!(0x0,lodash_1[_0xb7d9f6(0x194)])(_0x27c755[_0xb7d9f6(0x1cd)],_0xb7d9f6(0x1b0))&&!(0x0,lodash_1['startsWith'])(_0x27c755['route'],_0xb7d9f6(0x1d3))&&_0x294c0e[_0xb7d9f6(0x1d0)](_0x27c755[_0xb7d9f6(0x1cd)])===-0x1){if(!(_0x3f88b3===null||_0x3f88b3===void 0x0?void 0x0:_0x3f88b3['noreq'])){let _0x456f70=(0x0,decorator_3[_0xb7d9f6(0x1ce)])(new _0x49cdcc(),_0x29f56d[_0xb7d9f6(0x1a3)]);for(const _0x1884e2 in _0x456f70){let _0x290ef2=(_0x116186=_0x36e4b9[_0x29f56d[_0xb7d9f6(0x1a3)]])===null||_0x116186===void 0x0?void 0x0:_0x116186[_0xb7d9f6(0x1cb)](_0x436c54=>_0x436c54[_0xb7d9f6(0x19b)]==_0x1884e2&&_0x436c54[_0xb7d9f6(0x19d)]===decorator_2[_0xb7d9f6(0x1bb)]&&(_0x436c54===null||_0x436c54===void 0x0?void 0x0:_0x436c54[_0xb7d9f6(0x1de)]));if(_0x290ef2===null||_0x290ef2===void 0x0?void 0x0:_0x290ef2[_0xb7d9f6(0x1de)]){let _0x22ff65=convertTypeToString(_0x290ef2[_0xb7d9f6(0x1de)][_0xb7d9f6(0x185)]||0x0);if([_0xb7d9f6(0x1b3),_0xb7d9f6(0x1ae)][_0xb7d9f6(0x1d0)](_0x22ff65)!=-0x1&&_0x290ef2['metadata'][_0xb7d9f6(0x1c4)][_0xb7d9f6(0x1d0)](':')==-0x1&&!_0x27c755[_0xb7d9f6(0x1a8)][_0xb7d9f6(0x1cb)](_0xf9a91e=>_0xf9a91e[_0xb7d9f6(0x19d)]==_0x290ef2[_0xb7d9f6(0x1de)][_0xb7d9f6(0x1c4)]))_0x27c755['request']['push']({'key':_0x290ef2[_0xb7d9f6(0x1de)][_0xb7d9f6(0x1c4)],'title':_0x290ef2[_0xb7d9f6(0x1de)]['propertyData'],'type':convertSchemaType(_0x456f70[_0x290ef2[_0xb7d9f6(0x19b)]][_0xb7d9f6(0x1c5)]),'required':![],'default':'','desc':''});else{if(_0x22ff65==_0xb7d9f6(0x192)){let _0x17a9c1=((_0x5e0dd5=_0x290ef2===null||_0x290ef2===void 0x0?void 0x0:_0x290ef2[_0xb7d9f6(0x1de)])===null||_0x5e0dd5===void 0x0?void 0x0:_0x5e0dd5['propertyData'])||_0xb7d9f6(0x192);_0x17a9c1[_0xb7d9f6(0x1d0)](':')==-0x1&&!_0x27c755['request'][_0xb7d9f6(0x1cb)](_0x3701ab=>_0x3701ab[_0xb7d9f6(0x19d)]==_0x17a9c1&&_0x3701ab['type']==_0xb7d9f6(0x192))&&_0x27c755[_0xb7d9f6(0x1a8)][_0xb7d9f6(0x1ab)]({'key':_0x17a9c1,'title':_0xb7d9f6(0x18a)+_0x17a9c1,'type':_0xb7d9f6(0x192),'required':!![],'default':'','desc':''});}}}else{const _0x44e504=(0x0,decorator_3[_0xb7d9f6(0x19f)])(validator_1[_0xb7d9f6(0x1c1)],_0x456f70[_0x1884e2]);_0x44e504&&_0x27c755[_0xb7d9f6(0x1a8)]['push'](...getJoiRequest(_0x44e504));}}}_0x3ba04a[_0xb7d9f6(0x1b8)][_0xb7d9f6(0x1ab)](_0x27c755);}}if(_0x3ba04a['routes'][_0xb7d9f6(0x1a9)]>0x0){let _0x239c87=_0x1612ee[_0x630eca];_0x239c87?(_0x239c87[_0xb7d9f6(0x188)]!=_0x3ba04a['summary']&&(_0x239c87[_0xb7d9f6(0x188)]=_0x239c87[_0xb7d9f6(0x188)]+','+_0x3ba04a['summary']),_0x239c87['description']!=_0x3ba04a['description']&&(_0x239c87[_0xb7d9f6(0x1a7)]=_0x239c87[_0xb7d9f6(0x1a7)]+','+_0x3ba04a[_0xb7d9f6(0x1a7)]),_0x239c87[_0xb7d9f6(0x1b8)]=_0x239c87[_0xb7d9f6(0x1b8)][_0xb7d9f6(0x1a0)](_0x3ba04a['routes']),_0x1612ee[_0x630eca]=_0x239c87):_0x1612ee[_0x630eca]=_0x3ba04a;}}}return _0x1612ee;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x229176){const _0x204881=a7_0x345ec6,_0x40d83d=[];for(let _0x465f59 in _0x229176){const _0x1e9dcb={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x837826=typeof _0x229176[_0x465f59][_0x204881(0x1bd)]==_0x204881(0x187)?_0x229176[_0x465f59][_0x204881(0x1bd)]():_0x229176[_0x465f59];_0x1e9dcb['key']=_0x465f59,_0x1e9dcb[_0x204881(0x185)]=_0x837826['type'],_0x1e9dcb[_0x204881(0x1a5)]=(0x0,lodash_1[_0x204881(0x1dd)])(_0x837826,_0x204881(0x186),_0x465f59),_0x1e9dcb['default']=(0x0,lodash_1[_0x204881(0x1dd)])(_0x837826,_0x204881(0x1d5),''),_0x1e9dcb[_0x204881(0x1a2)]=(0x0,lodash_1[_0x204881(0x1dd)])(_0x837826,_0x204881(0x18f),'')=='required',_0x1e9dcb[_0x204881(0x1a7)]=(0x0,lodash_1[_0x204881(0x1dd)])(_0x837826,'flags.description','');if(_0x837826[_0x204881(0x185)]=='object')_0x1e9dcb[_0x204881(0x189)]=getJoiRequest(_0x837826[_0x204881(0x1b6)]);else _0x837826[_0x204881(0x185)]==_0x204881(0x1ca)&&_0x837826[_0x204881(0x197)]&&Array[_0x204881(0x1c6)](_0x837826[_0x204881(0x197)])&&_0x837826[_0x204881(0x197)][0x0]&&console[_0x204881(0x195)](_0x465f59+_0x204881(0x1aa),_0x837826);_0x837826['allow']&&Array[_0x204881(0x1c6)](_0x837826[_0x204881(0x1df)])&&_0x837826[_0x204881(0x1df)]['length']>0x0&&(_0x1e9dcb[_0x204881(0x1a7)]='只允许:['+_0x837826[_0x204881(0x1df)][_0x204881(0x1bc)](',')+'];'+_0x1e9dcb['description']);if(_0x1e9dcb[_0x204881(0x19d)]&&_0x1e9dcb[_0x204881(0x185)]){const _0x4bfba7={};for(const _0x3a5355 of _0x837826['rules']||[]){if(_0x3a5355[_0x204881(0x1c5)]===_0x204881(0x18b)&&_0x3a5355['args'])_0x4bfba7[_0x204881(0x18b)]=_0x3a5355[_0x204881(0x1da)][_0x204881(0x1d7)];else _0x3a5355[_0x204881(0x1c5)]==='max'&&(_0x4bfba7[_0x204881(0x1b5)]=_0x3a5355['args'][_0x204881(0x1d7)]);}_0x1e9dcb[_0x204881(0x1b9)]=_0x4bfba7;}_0x1e9dcb[_0x204881(0x19d)]&&_0x1e9dcb[_0x204881(0x1a5)]&&_0x40d83d[_0x204881(0x1ab)](_0x1e9dcb);}return _0x40d83d;}function convertSchemaType(_0x29d874){const _0x4f8ab3=a7_0x345ec6;switch(_0x29d874){case _0x4f8ab3(0x1cc):return'object';case _0x4f8ab3(0x196):return _0x4f8ab3(0x1af);case'Number':return _0x4f8ab3(0x1d9);case'String':return _0x4f8ab3(0x1e3);case'File':return _0x4f8ab3(0x192);default:return'string';}}function convertTypeToString(_0x452dda){const _0x42acf2=a7_0x345ec6;switch(_0x452dda){case decorator_1[_0x42acf2(0x1b4)][_0x42acf2(0x1be)]:return _0x42acf2(0x1d1);case decorator_1['RouteParamTypes'][_0x42acf2(0x1c2)]:return _0x42acf2(0x1b3);case decorator_1[_0x42acf2(0x1b4)][_0x42acf2(0x1a1)]:return _0x42acf2(0x1dc);case decorator_1['RouteParamTypes'][_0x42acf2(0x18c)]:return _0x42acf2(0x1ae);case decorator_1[_0x42acf2(0x1b4)][_0x42acf2(0x18e)]:case decorator_1['RouteParamTypes'][_0x42acf2(0x1a4)]:case decorator_1['RouteParamTypes']['FILESTREAM']:return _0x42acf2(0x192);default:return _0x42acf2(0x1d1);}}function a7_0xc8a4(){const _0x383a5c=['flags.default','@anncic-api/validator','limit','1430995KLurBK','number','args','routerName','path','get','metadata','allow','tagName','__esModule','defineProperty','string','type','flags.label','function','summary','children','文件上传-','min','BODY','test','FIELDS','flags.presence','4825788vOgDon','152ABmjgE','file','split','startsWith','log','Boolean','items','getRoutes','INJECT_CUSTOM_PARAM','routerOptions','parameterIndex','967813VVuxXF','key','46249GnDAuM','getClassExtendedMetadata','concat','PARAM','required','method','FILESSTREAM','title','default','description','request','length','-array','push','filter','pprefix','body','boolean','static/apitest','130CUlAbt','ACTION_KEY','query','RouteParamTypes','max','keys','lodash','routes','rules','requestMethod','WEB_ROUTER_PARAM_KEY','join','describe','HEADERS','prefix','4042737pykOAp','RULES_KEY','QUERY','getClassMetadata','propertyData','name','isArray','1742702wzgPcK','4HLPTcI','filepath','array','find','Object','route','getMethodParamTypes','module','indexOf','header','10129998kErIiY','/static/apitest','@midwayjs/decorator'];a7_0xc8a4=function(){return _0x383a5c;};return a7_0xc8a4();}
1
+ 'use strict';const a7_0x5f50ee=a7_0x39d7;(function(_0x4532f0,_0x369b06){const _0x548a73=a7_0x39d7,_0x151676=_0x4532f0();while(!![]){try{const _0x2e99d7=-parseInt(_0x548a73(0x90))/0x1*(-parseInt(_0x548a73(0xa0))/0x2)+-parseInt(_0x548a73(0xbd))/0x3*(-parseInt(_0x548a73(0xc2))/0x4)+-parseInt(_0x548a73(0x76))/0x5+-parseInt(_0x548a73(0x79))/0x6+parseInt(_0x548a73(0x72))/0x7*(parseInt(_0x548a73(0x84))/0x8)+-parseInt(_0x548a73(0x7b))/0x9+parseInt(_0x548a73(0xae))/0xa;if(_0x2e99d7===_0x369b06)break;else _0x151676['push'](_0x151676['shift']());}catch(_0x37199d){_0x151676['push'](_0x151676['shift']());}}}(a7_0x5be0,0x3abb5));Object[a7_0x5f50ee(0xb2)](exports,a7_0x5f50ee(0x85),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a7_0x5f50ee(0xb0)),validator_1=require(a7_0x5f50ee(0x94)),decorator_1=require(a7_0x5f50ee(0x81)),decorator_2=require(a7_0x5f50ee(0x81)),decorator_3=require(a7_0x5f50ee(0x81)),action_1=require(a7_0x5f50ee(0x93));function getRoutes(_0x5f144e={'prefix':'/','module':![]}){const _0x367938=a7_0x5f50ee;var _0x28b699,_0x2fefb1;const _0x17ac00=(0x0,decorator_3['listModule'])(action_1[_0x367938(0xd1)]),_0x162e31={},_0xd3a846=Array[_0x367938(0x9c)](_0x5f144e[_0x367938(0xcd)]||[])?_0x5f144e[_0x367938(0xcd)]||[]:[_0x5f144e['filter']];_0x1e8131:for(const _0x2571e7 of _0x17ac00){let _0x4855ed=(0x0,decorator_3[_0x367938(0x7f)])(action_1[_0x367938(0xd1)],_0x2571e7),_0x148f21=(0x0,decorator_3[_0x367938(0x7f)])(action_1[_0x367938(0x75)],_0x2571e7);if(_0x4855ed&&_0x148f21){let _0x3ff4df=_0x4855ed[_0x367938(0x9a)],_0x5903bb={};if(_0x5f144e[_0x367938(0xad)]&&(0x0,lodash_1[_0x367938(0x92)])(_0x4855ed,_0x367938(0xad),![])!=_0x5f144e[_0x367938(0xad)])continue _0x1e8131;else{if(_0x5f144e[_0x367938(0xad)]===![]&&!!(0x0,lodash_1[_0x367938(0x92)])(_0x4855ed,_0x367938(0xad),null))continue _0x1e8131;}if(_0x5f144e[_0x367938(0x9a)]&&!_0x3ff4df[_0x367938(0xa6)](_0x5f144e['prefix']))continue _0x1e8131;_0x3ff4df!=='/'?(_0x5903bb['summary']=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xd2)][_0x367938(0xd0)])||(/^\//['test'](_0x3ff4df)?_0x3ff4df['split']('/')[0x1]:_0x3ff4df),_0x5903bb[_0x367938(0x89)]=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xd2)][_0x367938(0x89)])||_0x5903bb['summary'],_0x5903bb[_0x367938(0xc8)]=[]):(_0x5903bb['summary']=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed['routerOptions'][_0x367938(0xd0)])||'default',_0x5903bb[_0x367938(0x89)]=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xd2)][_0x367938(0x89)])||'',_0x5903bb[_0x367938(0xc8)]=[]);_0x5f144e[_0x367938(0xaf)]&&(_0x5903bb['filepath']=_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xaf)]);(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xcc)])&&(_0x5903bb[_0x367938(0x9a)]=_0x4855ed['pprefix']);(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed['module'])&&(_0x5903bb[_0x367938(0xad)]=_0x4855ed[_0x367938(0xad)]);let _0x78d365=(0x0,decorator_3[_0x367938(0x7f)])(decorator_2[_0x367938(0xa5)],_0x2571e7)||{};if(typeof _0x148f21[Symbol[_0x367938(0x7e)]]===_0x367938(0x8a))for(let _0x203430 of _0x148f21){let _0x5d55b4={};_0x5d55b4[_0x367938(0x86)]=_0x203430[_0x367938(0x77)],_0x5d55b4[_0x367938(0xc4)]=(_0x3ff4df+_0x203430['path'])[_0x367938(0x82)](/\/{1,}/,'/'),_0x5d55b4[_0x367938(0xa4)]=(_0x203430===null||_0x203430===void 0x0?void 0x0:_0x203430[_0x367938(0xc9)])||_0x5903bb['summary']||_0x367938(0xc5),_0x5d55b4['description']=(_0x203430===null||_0x203430===void 0x0?void 0x0:_0x203430['description'])||'',_0x5d55b4[_0x367938(0xaa)]=[];if(!(0x0,lodash_1[_0x367938(0xa6)])(_0x5d55b4[_0x367938(0xc4)],_0x367938(0xbe))&&!(0x0,lodash_1[_0x367938(0xa6)])(_0x5d55b4[_0x367938(0xc4)],_0x367938(0xb7))&&_0xd3a846[_0x367938(0xa3)](_0x5d55b4[_0x367938(0xc4)])===-0x1){if(!(_0x5f144e===null||_0x5f144e===void 0x0?void 0x0:_0x5f144e[_0x367938(0x8c)])){let _0x263e96=(0x0,decorator_3[_0x367938(0xa7)])(new _0x2571e7(),_0x203430['method']);for(const _0xade88e in _0x263e96){let _0x300414=(_0x28b699=_0x78d365[_0x203430[_0x367938(0x86)]])===null||_0x28b699===void 0x0?void 0x0:_0x28b699['find'](_0x306729=>_0x306729[_0x367938(0xa8)]==_0xade88e&&_0x306729[_0x367938(0xd3)]===decorator_2[_0x367938(0x9b)]&&(_0x306729===null||_0x306729===void 0x0?void 0x0:_0x306729['metadata']));if(_0x300414===null||_0x300414===void 0x0?void 0x0:_0x300414['metadata']){let _0x4dc549=convertTypeToString(_0x300414[_0x367938(0xa9)][_0x367938(0x8b)]||0x0);if([_0x367938(0x80),_0x367938(0xc6)]['indexOf'](_0x4dc549)!=-0x1&&_0x300414['metadata'][_0x367938(0xcb)][_0x367938(0xa3)](':')==-0x1&&!_0x5d55b4[_0x367938(0xaa)][_0x367938(0x91)](_0x128086=>_0x128086['key']==_0x300414[_0x367938(0xa9)][_0x367938(0xcb)]))_0x5d55b4[_0x367938(0xaa)][_0x367938(0x7c)]({'key':_0x300414[_0x367938(0xa9)][_0x367938(0xcb)],'title':_0x300414[_0x367938(0xa9)][_0x367938(0xcb)],'type':convertSchemaType(_0x263e96[_0x300414[_0x367938(0xa8)]]['name']),'required':![],'default':'','desc':''});else{if(_0x4dc549==_0x367938(0x87)){let _0x2179be=((_0x2fefb1=_0x300414===null||_0x300414===void 0x0?void 0x0:_0x300414[_0x367938(0xa9)])===null||_0x2fefb1===void 0x0?void 0x0:_0x2fefb1[_0x367938(0xcb)])||_0x367938(0x87);_0x2179be['indexOf'](':')==-0x1&&!_0x5d55b4[_0x367938(0xaa)][_0x367938(0x91)](_0x51c27d=>_0x51c27d[_0x367938(0xd3)]==_0x2179be&&_0x51c27d[_0x367938(0x8b)]==_0x367938(0x87))&&_0x5d55b4[_0x367938(0xaa)][_0x367938(0x7c)]({'key':_0x2179be,'title':_0x367938(0x73)+_0x2179be,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x35ba4c=(0x0,decorator_3[_0x367938(0x7a)])(validator_1['RULES_KEY'],_0x263e96[_0xade88e]);_0x35ba4c&&_0x5d55b4[_0x367938(0xaa)][_0x367938(0x7c)](...getJoiRequest(_0x35ba4c));}}}_0x5903bb[_0x367938(0xc8)][_0x367938(0x7c)](_0x5d55b4);}}if(_0x5903bb[_0x367938(0xc8)][_0x367938(0xa1)]>0x0){let _0x1298f3=_0x162e31[_0x3ff4df];_0x1298f3?(_0x1298f3[_0x367938(0xa4)]!=_0x5903bb['summary']&&(_0x1298f3[_0x367938(0xa4)]=_0x1298f3[_0x367938(0xa4)]+','+_0x5903bb[_0x367938(0xa4)]),_0x1298f3[_0x367938(0x89)]!=_0x5903bb[_0x367938(0x89)]&&(_0x1298f3[_0x367938(0x89)]=_0x1298f3[_0x367938(0x89)]+','+_0x5903bb[_0x367938(0x89)]),_0x1298f3[_0x367938(0xc8)]=_0x1298f3[_0x367938(0xc8)][_0x367938(0xb5)](_0x5903bb[_0x367938(0xc8)]),_0x162e31[_0x3ff4df]=_0x1298f3):_0x162e31[_0x3ff4df]=_0x5903bb;}}}return _0x162e31;}function a7_0x5be0(){const _0x3f4211=['route','default','body','string','routes','routerName','args','propertyData','pprefix','filter','name','flags.label','tagName','ACTION_KEY','routerOptions','key','7EwlCEd','文件上传-','File','ACTION_ROUTE_KEY','568530nedfwK','requestMethod','allow','698088vRXAYY','getClassExtendedMetadata','2556738NzckDf','push','Number','iterator','getClassMetadata','query','@midwayjs/decorator','replace','FILESSTREAM','244072uJupUY','__esModule','method','file','limit','description','function','type','noreq','HEADERS','log','flags.description','2BULDLl','find','get','../types/action','@anncic-api/validator','flags.default','number','title','FIELDS','describe','prefix','WEB_ROUTER_PARAM_KEY','isArray','PARAM','array','rules','85516qYpniF','length','object','indexOf','summary','INJECT_CUSTOM_PARAM','startsWith','getMethodParamTypes','parameterIndex','metadata','request','boolean','join','module','2246900vXqwLB','filepath','lodash','QUERY','defineProperty','只允许:[','Object','concat','FILESTREAM','/static/apitest','items','keys','required','String','getRoutes','6plVWnu','static/apitest','min','-array','RouteParamTypes','827972KlmZts','max'];a7_0x5be0=function(){return _0x3f4211;};return a7_0x5be0();}exports[a7_0x5f50ee(0xbc)]=getRoutes;function getJoiRequest(_0x2e553d){const _0x274eb9=a7_0x5f50ee,_0x35dfd5=[];for(let _0x3e3e33 in _0x2e553d){const _0x350655={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1f6d08=typeof _0x2e553d[_0x3e3e33]['describe']==_0x274eb9(0x8a)?_0x2e553d[_0x3e3e33][_0x274eb9(0x99)]():_0x2e553d[_0x3e3e33];_0x350655[_0x274eb9(0xd3)]=_0x3e3e33,_0x350655[_0x274eb9(0x8b)]=_0x1f6d08[_0x274eb9(0x8b)],_0x350655[_0x274eb9(0x97)]=(0x0,lodash_1['get'])(_0x1f6d08,_0x274eb9(0xcf),_0x3e3e33),_0x350655[_0x274eb9(0xc5)]=(0x0,lodash_1[_0x274eb9(0x92)])(_0x1f6d08,_0x274eb9(0x95),''),_0x350655['required']=(0x0,lodash_1['get'])(_0x1f6d08,'flags.presence','')==_0x274eb9(0xba),_0x350655[_0x274eb9(0x89)]=(0x0,lodash_1[_0x274eb9(0x92)])(_0x1f6d08,_0x274eb9(0x8f),'');if(_0x1f6d08[_0x274eb9(0x8b)]=='object')_0x350655['children']=getJoiRequest(_0x1f6d08[_0x274eb9(0xb9)]);else _0x1f6d08[_0x274eb9(0x8b)]==_0x274eb9(0x9e)&&_0x1f6d08[_0x274eb9(0xb8)]&&Array['isArray'](_0x1f6d08['items'])&&_0x1f6d08[_0x274eb9(0xb8)][0x0]&&console[_0x274eb9(0x8e)](_0x3e3e33+_0x274eb9(0xc0),_0x1f6d08);_0x1f6d08[_0x274eb9(0x78)]&&Array[_0x274eb9(0x9c)](_0x1f6d08[_0x274eb9(0x78)])&&_0x1f6d08['allow'][_0x274eb9(0xa1)]>0x0&&(_0x350655[_0x274eb9(0x89)]=_0x274eb9(0xb3)+_0x1f6d08['allow'][_0x274eb9(0xac)](',')+'];'+_0x350655['description']);if(_0x350655[_0x274eb9(0xd3)]&&_0x350655['type']){const _0x57f2fc={};for(const _0x5bca0f of _0x1f6d08['rules']||[]){if(_0x5bca0f[_0x274eb9(0xce)]===_0x274eb9(0xbf)&&_0x5bca0f[_0x274eb9(0xca)])_0x57f2fc[_0x274eb9(0xbf)]=_0x5bca0f['args'][_0x274eb9(0x88)];else _0x5bca0f['name']==='max'&&(_0x57f2fc[_0x274eb9(0xc3)]=_0x5bca0f[_0x274eb9(0xca)][_0x274eb9(0x88)]);}_0x350655[_0x274eb9(0x9f)]=_0x57f2fc;}_0x350655[_0x274eb9(0xd3)]&&_0x350655['title']&&_0x35dfd5[_0x274eb9(0x7c)](_0x350655);}return _0x35dfd5;}function convertSchemaType(_0x2c2c36){const _0x38e43f=a7_0x5f50ee;switch(_0x2c2c36){case _0x38e43f(0xb4):return _0x38e43f(0xa2);case'Boolean':return _0x38e43f(0xab);case _0x38e43f(0x7d):return _0x38e43f(0x96);case _0x38e43f(0xbb):return'string';case _0x38e43f(0x74):return _0x38e43f(0x87);default:return _0x38e43f(0xc7);}}function a7_0x39d7(_0x2c9890,_0x59bc04){const _0x5be009=a7_0x5be0();return a7_0x39d7=function(_0x39d7eb,_0x2e6152){_0x39d7eb=_0x39d7eb-0x72;let _0x36783=_0x5be009[_0x39d7eb];return _0x36783;},a7_0x39d7(_0x2c9890,_0x59bc04);}function convertTypeToString(_0x1d6ebf){const _0x5c5be8=a7_0x5f50ee;switch(_0x1d6ebf){case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0x8d)]:return'header';case decorator_1['RouteParamTypes'][_0x5c5be8(0xb1)]:return _0x5c5be8(0x80);case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0x9d)]:return'path';case decorator_1[_0x5c5be8(0xc1)]['BODY']:return _0x5c5be8(0xc6);case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0x98)]:case decorator_1['RouteParamTypes'][_0x5c5be8(0x83)]:case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0xb6)]:return'file';default:return'header';}}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a8_0x3365bc=a8_0x353e;(function(_0xe2a972,_0x28d6d1){var _0x5f09b5=a8_0x353e,_0x53d596=_0xe2a972();while(!![]){try{var _0x3d4f71=parseInt(_0x5f09b5(0xba))/0x1+-parseInt(_0x5f09b5(0x86))/0x2*(-parseInt(_0x5f09b5(0x91))/0x3)+parseInt(_0x5f09b5(0x9c))/0x4+-parseInt(_0x5f09b5(0xb4))/0x5*(-parseInt(_0x5f09b5(0x81))/0x6)+parseInt(_0x5f09b5(0x9b))/0x7*(parseInt(_0x5f09b5(0xae))/0x8)+-parseInt(_0x5f09b5(0x88))/0x9*(parseInt(_0x5f09b5(0x90))/0xa)+-parseInt(_0x5f09b5(0xb9))/0xb*(parseInt(_0x5f09b5(0x9a))/0xc);if(_0x3d4f71===_0x28d6d1)break;else _0x53d596['push'](_0x53d596['shift']());}catch(_0x575b6c){_0x53d596['push'](_0x53d596['shift']());}}}(a8_0x350b,0xb9ce5));function a8_0x350b(){var _0x2e8d52=['Logger','defineProperty','Inject','./helper/getRoutes','8536184VXvCtz','configurable','QueueService','getRoutes','@anncic-api/validator','Fields','15aeZNcQ','Headers','Query','default','get','110CHKIyy','908566VYPoxp','@anncic-api/event','ValidatorService','Apitest','Body','150204zOfesy','Action','Config','Scope','Param','88fYfJRK','Files','10774359QSxWjD','ScopeEnum','Api','__createBinding','App','ApiService','@midwayjs/task','@midwayjs/decorator','10xpXXgy','48291qoxblj','./service/ExcelService','prototype','CacheService','ExcelService','./decorator/ActionApitest','create','CustomConfiguration','./decorator/Action','1550196LHVBWk','7TOaUJQ','1964332QSvqBs','Provide','writable','./exception/ApiError','./decorator/ActionApi','__exportStar','Init','Configuration','ValidatorError','__esModule','File','@anncic-api/cache','ApiError','EventService'];a8_0x350b=function(){return _0x2e8d52;};return a8_0x350b();}var __createBinding=this&&this[a8_0x3365bc(0x8b)]||(Object[a8_0x3365bc(0x97)]?function(_0x4b04a0,_0x46880b,_0x39a1fd,_0x1eb058){var _0x3f2b42=a8_0x3365bc;if(_0x1eb058===undefined)_0x1eb058=_0x39a1fd;var _0x4bd778=Object['getOwnPropertyDescriptor'](_0x46880b,_0x39a1fd);(!_0x4bd778||(_0x3f2b42(0xb8)in _0x4bd778?!_0x46880b[_0x3f2b42(0xa5)]:_0x4bd778[_0x3f2b42(0x9e)]||_0x4bd778[_0x3f2b42(0xaf)]))&&(_0x4bd778={'enumerable':!![],'get':function(){return _0x46880b[_0x39a1fd];}}),Object[_0x3f2b42(0xab)](_0x4b04a0,_0x1eb058,_0x4bd778);}:function(_0x42ff50,_0x4bf994,_0xfef040,_0x142dd8){if(_0x142dd8===undefined)_0x142dd8=_0xfef040;_0x42ff50[_0x142dd8]=_0x4bf994[_0xfef040];}),__exportStar=this&&this[a8_0x3365bc(0xa1)]||function(_0x272946,_0x547dcd){var _0x23408e=a8_0x3365bc;for(var _0x3256f3 in _0x272946)if(_0x3256f3!==_0x23408e(0xb7)&&!Object[_0x23408e(0x93)]['hasOwnProperty']['call'](_0x547dcd,_0x3256f3))__createBinding(_0x547dcd,_0x272946,_0x3256f3);};Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xa5),{'value':!![]}),exports[a8_0x3365bc(0x89)]=exports[a8_0x3365bc(0x84)]=exports[a8_0x3365bc(0xac)]=exports[a8_0x3365bc(0x9d)]=exports[a8_0x3365bc(0xaa)]=exports[a8_0x3365bc(0x83)]=exports[a8_0x3365bc(0x8c)]=exports[a8_0x3365bc(0xa2)]=exports[a8_0x3365bc(0xb5)]=exports[a8_0x3365bc(0xb6)]=exports[a8_0x3365bc(0x85)]=exports[a8_0x3365bc(0xbe)]=exports[a8_0x3365bc(0xb3)]=exports[a8_0x3365bc(0x87)]=exports[a8_0x3365bc(0xa6)]=exports[a8_0x3365bc(0xa3)]=exports[a8_0x3365bc(0xbc)]=exports[a8_0x3365bc(0xa4)]=exports[a8_0x3365bc(0x95)]=exports[a8_0x3365bc(0x8d)]=exports['EventService']=exports[a8_0x3365bc(0x94)]=exports[a8_0x3365bc(0xb0)]=exports[a8_0x3365bc(0xa8)]=exports[a8_0x3365bc(0xbd)]=exports[a8_0x3365bc(0x82)]=exports[a8_0x3365bc(0x8a)]=exports[a8_0x3365bc(0xb1)]=void 0x0,__exportStar(require('./types/common'),exports),__exportStar(require('./service/ApitestService'),exports);var getRoutes_1=require(a8_0x3365bc(0xad));Object['defineProperty'](exports,a8_0x3365bc(0xb1),{'enumerable':!![],'get':function(){var _0x386be9=a8_0x3365bc;return getRoutes_1[_0x386be9(0xb1)];}});var ActionApi_1=require(a8_0x3365bc(0xa0));Object['defineProperty'](exports,'Api',{'enumerable':!![],'get':function(){var _0x190cc2=a8_0x3365bc;return ActionApi_1[_0x190cc2(0x8a)];}});var Action_1=require(a8_0x3365bc(0x99));function a8_0x353e(_0x4dcfdb,_0x453847){var _0x350bf7=a8_0x350b();return a8_0x353e=function(_0x353e0f,_0x5b6988){_0x353e0f=_0x353e0f-0x81;var _0x1181a7=_0x350bf7[_0x353e0f];return _0x1181a7;},a8_0x353e(_0x4dcfdb,_0x453847);}Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0x82),{'enumerable':!![],'get':function(){var _0x4d9c27=a8_0x3365bc;return Action_1[_0x4d9c27(0x82)];}});var ActionApitest_1=require(a8_0x3365bc(0x96));Object['defineProperty'](exports,a8_0x3365bc(0xbd),{'enumerable':!![],'get':function(){var _0x314e42=a8_0x3365bc;return ActionApitest_1[_0x314e42(0xbd)];}});var ApiError_1=require(a8_0x3365bc(0x9f));Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xa8),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a8_0x3365bc(0x8e));Object[a8_0x3365bc(0xab)](exports,'QueueService',{'enumerable':!![],'get':function(){var _0x28ad96=a8_0x3365bc;return task_1[_0x28ad96(0xb0)];}});var cache_1=require(a8_0x3365bc(0xa7));Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0x94),{'enumerable':!![],'get':function(){var _0x3410bc=a8_0x3365bc;return cache_1[_0x3410bc(0x94)];}});var event_1=require(a8_0x3365bc(0xbb));Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xa9),{'enumerable':!![],'get':function(){var _0x5109b5=a8_0x3365bc;return event_1[_0x5109b5(0xa9)];}});var ApiService_1=require('./service/ApiService');Object[a8_0x3365bc(0xab)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a8_0x3365bc(0x92));Object['defineProperty'](exports,a8_0x3365bc(0x95),{'enumerable':!![],'get':function(){var _0x44769c=a8_0x3365bc;return ExcelService_1[_0x44769c(0x95)];}});var validator_1=require(a8_0x3365bc(0xb2));Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xa4),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xbc),{'enumerable':!![],'get':function(){var _0x578476=a8_0x3365bc;return validator_1[_0x578476(0xbc)];}});var configuration_1=require('./configuration');Object[a8_0x3365bc(0xab)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x24fe49=a8_0x3365bc;return configuration_1[_0x24fe49(0x98)];}});var decorator_1=require(a8_0x3365bc(0x8f));Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xa6),{'enumerable':!![],'get':function(){var _0x50003d=a8_0x3365bc;return decorator_1[_0x50003d(0xa6)];}}),Object['defineProperty'](exports,a8_0x3365bc(0x87),{'enumerable':!![],'get':function(){var _0x254029=a8_0x3365bc;return decorator_1[_0x254029(0x87)];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xb3),{'enumerable':!![],'get':function(){var _0x310110=a8_0x3365bc;return decorator_1[_0x310110(0xb3)];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xbe),{'enumerable':!![],'get':function(){var _0x4a33b3=a8_0x3365bc;return decorator_1[_0x4a33b3(0xbe)];}}),Object['defineProperty'](exports,a8_0x3365bc(0x85),{'enumerable':!![],'get':function(){var _0x9871d8=a8_0x3365bc;return decorator_1[_0x9871d8(0x85)];}}),Object[a8_0x3365bc(0xab)](exports,'Query',{'enumerable':!![],'get':function(){var _0xd6c340=a8_0x3365bc;return decorator_1[_0xd6c340(0xb6)];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xb5),{'enumerable':!![],'get':function(){var _0x3f8fc0=a8_0x3365bc;return decorator_1[_0x3f8fc0(0xb5)];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){var _0x2dc34f=a8_0x3365bc;return decorator_1[_0x2dc34f(0xa2)];}});var decorator_2=require(a8_0x3365bc(0x8f));Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0x8c),{'enumerable':!![],'get':function(){var _0x4e811d=a8_0x3365bc;return decorator_2[_0x4e811d(0x8c)];}}),Object[a8_0x3365bc(0xab)](exports,'Config',{'enumerable':!![],'get':function(){return decorator_2['Config'];}}),Object['defineProperty'](exports,a8_0x3365bc(0xaa),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0x9d),{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0xac),{'enumerable':!![],'get':function(){var _0x597b68=a8_0x3365bc;return decorator_2[_0x597b68(0xac)];}}),Object[a8_0x3365bc(0xab)](exports,a8_0x3365bc(0x84),{'enumerable':!![],'get':function(){var _0x96dece=a8_0x3365bc;return decorator_2[_0x96dece(0x84)];}}),Object[a8_0x3365bc(0xab)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x451fda=a8_0x3365bc;return decorator_2[_0x451fda(0x89)];}});
1
+ 'use strict';var a8_0x43945d=a8_0x4135;(function(_0x569b60,_0x3c3fc7){var _0x3aaf05=a8_0x4135,_0x222251=_0x569b60();while(!![]){try{var _0xe76bb0=-parseInt(_0x3aaf05(0x109))/0x1*(parseInt(_0x3aaf05(0xfa))/0x2)+-parseInt(_0x3aaf05(0xf6))/0x3*(parseInt(_0x3aaf05(0x101))/0x4)+parseInt(_0x3aaf05(0x122))/0x5*(-parseInt(_0x3aaf05(0x11d))/0x6)+parseInt(_0x3aaf05(0x107))/0x7+-parseInt(_0x3aaf05(0x102))/0x8+parseInt(_0x3aaf05(0x10b))/0x9*(parseInt(_0x3aaf05(0x10f))/0xa)+parseInt(_0x3aaf05(0x127))/0xb;if(_0xe76bb0===_0x3c3fc7)break;else _0x222251['push'](_0x222251['shift']());}catch(_0x3d3330){_0x222251['push'](_0x222251['shift']());}}}(a8_0x39dc,0x9f533));var __createBinding=this&&this[a8_0x43945d(0x11b)]||(Object['create']?function(_0x381574,_0x43a8a0,_0x1d65bd,_0x457376){var _0x28edc0=a8_0x43945d;if(_0x457376===undefined)_0x457376=_0x1d65bd;var _0x221fee=Object['getOwnPropertyDescriptor'](_0x43a8a0,_0x1d65bd);(!_0x221fee||(_0x28edc0(0x119)in _0x221fee?!_0x43a8a0['__esModule']:_0x221fee['writable']||_0x221fee['configurable']))&&(_0x221fee={'enumerable':!![],'get':function(){return _0x43a8a0[_0x1d65bd];}}),Object[_0x28edc0(0x11e)](_0x381574,_0x457376,_0x221fee);}:function(_0x51e1e1,_0x3ae011,_0x5541c1,_0x32c271){if(_0x32c271===undefined)_0x32c271=_0x5541c1;_0x51e1e1[_0x32c271]=_0x3ae011[_0x5541c1];}),__exportStar=this&&this[a8_0x43945d(0x114)]||function(_0x967d27,_0xc7824d){var _0x42a929=a8_0x43945d;for(var _0x5328c5 in _0x967d27)if(_0x5328c5!==_0x42a929(0x10d)&&!Object[_0x42a929(0xf4)][_0x42a929(0x106)][_0x42a929(0x126)](_0xc7824d,_0x5328c5))__createBinding(_0xc7824d,_0x967d27,_0x5328c5);};Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xef),{'value':!![]}),exports[a8_0x43945d(0x11a)]=exports[a8_0x43945d(0x113)]=exports[a8_0x43945d(0x112)]=exports[a8_0x43945d(0xf7)]=exports['Logger']=exports['Config']=exports[a8_0x43945d(0x110)]=exports[a8_0x43945d(0x125)]=exports['Headers']=exports[a8_0x43945d(0x120)]=exports['Param']=exports[a8_0x43945d(0x11c)]=exports[a8_0x43945d(0x111)]=exports[a8_0x43945d(0x10a)]=exports[a8_0x43945d(0xfc)]=exports[a8_0x43945d(0xf8)]=exports['ValidatorService']=exports[a8_0x43945d(0x121)]=exports[a8_0x43945d(0x100)]=exports[a8_0x43945d(0x118)]=exports[a8_0x43945d(0xfe)]=exports[a8_0x43945d(0xf9)]=exports[a8_0x43945d(0x117)]=exports[a8_0x43945d(0x105)]=exports[a8_0x43945d(0xf2)]=exports[a8_0x43945d(0x10c)]=exports[a8_0x43945d(0x11f)]=exports['getRoutes']=void 0x0,__exportStar(require(a8_0x43945d(0x104)),exports),__exportStar(require('./service/ApitestService'),exports);var getRoutes_1=require('./helper/getRoutes');Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xff),{'enumerable':!![],'get':function(){var _0x53f8d4=a8_0x43945d;return getRoutes_1[_0x53f8d4(0xff)];}});var ActionApi_1=require(a8_0x43945d(0x103));Object['defineProperty'](exports,'Api',{'enumerable':!![],'get':function(){var _0x63e10f=a8_0x43945d;return ActionApi_1[_0x63e10f(0x11f)];}});var Action_1=require(a8_0x43945d(0xf0));function a8_0x39dc(){var _0x59e7d5=['hasOwnProperty','8337105lWTdaB','Param','11675fqcBdp','Files','2427399AKdgwg','Action','default','@midwayjs/task','30RMsNvV','App','Fields','Inject','Scope','__exportStar','./service/ApiService','@midwayjs/decorator','QueueService','ApiService','get','ScopeEnum','__createBinding','Body','3445236gyBIoD','defineProperty','Api','Query','ValidatorError','10ZqIksc','@anncic-api/validator','Config','Init','call','18045016AJDPQx','Headers','__esModule','./decorator/Action','ValidatorService','Apitest','CustomConfiguration','prototype','Logger','1923PYZrtG','Provide','Configuration','CacheService','10Wdptlb','./configuration','File','@anncic-api/event','EventService','getRoutes','ExcelService','5212ykMHmz','7567992AKfIbv','./decorator/ActionApi','./types/common','ApiError'];a8_0x39dc=function(){return _0x59e7d5;};return a8_0x39dc();}Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x10c),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xf2),{'enumerable':!![],'get':function(){var _0x21e0b5=a8_0x43945d;return ActionApitest_1[_0x21e0b5(0xf2)];}});var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a8_0x43945d(0x105),{'enumerable':!![],'get':function(){var _0x3e3095=a8_0x43945d;return ApiError_1[_0x3e3095(0x105)];}});var task_1=require(a8_0x43945d(0x10e));Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x117),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require('@anncic-api/cache');Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xf9),{'enumerable':!![],'get':function(){var _0x3f4fee=a8_0x43945d;return cache_1[_0x3f4fee(0xf9)];}});var event_1=require(a8_0x43945d(0xfd));Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xfe),{'enumerable':!![],'get':function(){return event_1['EventService'];}});function a8_0x4135(_0x6ce895,_0x2c8a65){var _0x39dcff=a8_0x39dc();return a8_0x4135=function(_0x41354f,_0x5f04c9){_0x41354f=_0x41354f-0xee;var _0x49ae37=_0x39dcff[_0x41354f];return _0x49ae37;},a8_0x4135(_0x6ce895,_0x2c8a65);}var ApiService_1=require(a8_0x43945d(0x115));Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x118),{'enumerable':!![],'get':function(){var _0x3e9b3e=a8_0x43945d;return ApiService_1[_0x3e9b3e(0x118)];}});var ExcelService_1=require('./service/ExcelService');Object['defineProperty'](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x3891ea=a8_0x43945d;return ExcelService_1[_0x3891ea(0x100)];}});var validator_1=require(a8_0x43945d(0x123));Object[a8_0x43945d(0x11e)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x4060c3=a8_0x43945d;return validator_1[_0x4060c3(0x121)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xf1),{'enumerable':!![],'get':function(){var _0x4d8b12=a8_0x43945d;return validator_1[_0x4d8b12(0xf1)];}});var configuration_1=require(a8_0x43945d(0xfb));Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xf8),{'enumerable':!![],'get':function(){var _0x333d69=a8_0x43945d;return configuration_1[_0x333d69(0xf3)];}});var decorator_1=require(a8_0x43945d(0x116));Object[a8_0x43945d(0x11e)](exports,'File',{'enumerable':!![],'get':function(){var _0x4baa09=a8_0x43945d;return decorator_1[_0x4baa09(0xfc)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x10a),{'enumerable':!![],'get':function(){var _0x254195=a8_0x43945d;return decorator_1[_0x254195(0x10a)];}}),Object['defineProperty'](exports,a8_0x43945d(0x111),{'enumerable':!![],'get':function(){var _0x1bd88f=a8_0x43945d;return decorator_1[_0x1bd88f(0x111)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x11c),{'enumerable':!![],'get':function(){var _0x1e22cf=a8_0x43945d;return decorator_1[_0x1e22cf(0x11c)];}}),Object['defineProperty'](exports,a8_0x43945d(0x108),{'enumerable':!![],'get':function(){var _0xcce8a1=a8_0x43945d;return decorator_1[_0xcce8a1(0x108)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x120),{'enumerable':!![],'get':function(){var _0x3b8805=a8_0x43945d;return decorator_1[_0x3b8805(0x120)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xee),{'enumerable':!![],'get':function(){var _0x4ca18b=a8_0x43945d;return decorator_1[_0x4ca18b(0xee)];}}),Object[a8_0x43945d(0x11e)](exports,'Init',{'enumerable':!![],'get':function(){var _0x4b591f=a8_0x43945d;return decorator_1[_0x4b591f(0x125)];}});var decorator_2=require(a8_0x43945d(0x116));Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x110),{'enumerable':!![],'get':function(){var _0x240b37=a8_0x43945d;return decorator_2[_0x240b37(0x110)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0x124),{'enumerable':!![],'get':function(){var _0x89a025=a8_0x43945d;return decorator_2[_0x89a025(0x124)];}}),Object[a8_0x43945d(0x11e)](exports,a8_0x43945d(0xf5),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object['defineProperty'](exports,a8_0x43945d(0xf7),{'enumerable':!![],'get':function(){var _0x2ebf82=a8_0x43945d;return decorator_2[_0x2ebf82(0xf7)];}}),Object['defineProperty'](exports,a8_0x43945d(0x112),{'enumerable':!![],'get':function(){var _0x39cd44=a8_0x43945d;return decorator_2[_0x39cd44(0x112)];}}),Object[a8_0x43945d(0x11e)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x3eabe7=a8_0x43945d;return decorator_2[_0x3eabe7(0x113)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x21dde6=a8_0x43945d;return decorator_2[_0x21dde6(0x11a)];}});
@@ -1 +1 @@
1
- 'use strict';function a9_0x1425(){var _0xf2d9a1=['logintime','config','25442yGLWav','TIMEOUT','Config','push','ScopeEnum','470664BvzSoa','72oWrbMx','1944SdMoIl','checksign','Scope','map','ApiService','secret','MD5','defineProperty','HEADERS_SIGNATURE','../exception/ApiError','function','device','8060iJLxRj','@midwayjs/decorator','toLowerCase','HEADERS_LACK','1041870onJhVV','undefined','join','toString','HEADERS_DEVICE','ApiError','token','anncicapi','__decorate','length','57LPnsfa','__esModule','object','devices','decorate','entries','timeout','abs','now','__metadata','sort','crypto-js','477988VOigBa','缺少头信息:signature','getsign','HEADERS_CHECKCODE','prototype','checkcode','1232476HmKjJq','requesttime','5135305LnkLyR','Provide','signature','password','metadata'];a9_0x1425=function(){return _0xf2d9a1;};return a9_0x1425();}var a9_0x185a00=a9_0x33c2;(function(_0x541950,_0x5a128d){var _0x38acbb=a9_0x33c2,_0x4c9f85=_0x541950();while(!![]){try{var _0x3c6cb1=-parseInt(_0x38acbb(0x7e))/0x1+-parseInt(_0x38acbb(0x8d))/0x2*(-parseInt(_0x38acbb(0xae))/0x3)+-parseInt(_0x38acbb(0x84))/0x4+-parseInt(_0x38acbb(0xa0))/0x5*(parseInt(_0x38acbb(0x94))/0x6)+parseInt(_0x38acbb(0x86))/0x7+-parseInt(_0x38acbb(0x92))/0x8+-parseInt(_0x38acbb(0x93))/0x9*(-parseInt(_0x38acbb(0xa4))/0xa);if(_0x3c6cb1===_0x5a128d)break;else _0x4c9f85['push'](_0x4c9f85['shift']());}catch(_0x325de4){_0x4c9f85['push'](_0x4c9f85['shift']());}}}(a9_0x1425,0x6bcee));var __decorate=this&&this[a9_0x185a00(0xac)]||function(_0x47e0c3,_0x12cd25,_0x5fa998,_0x469ee3){var _0x43bc0f=a9_0x185a00,_0x5db741=arguments[_0x43bc0f(0xad)],_0x41da1a=_0x5db741<0x3?_0x12cd25:_0x469ee3===null?_0x469ee3=Object['getOwnPropertyDescriptor'](_0x12cd25,_0x5fa998):_0x469ee3,_0x256769;if(typeof Reflect===_0x43bc0f(0xb0)&&typeof Reflect[_0x43bc0f(0xb2)]===_0x43bc0f(0x9e))_0x41da1a=Reflect[_0x43bc0f(0xb2)](_0x47e0c3,_0x12cd25,_0x5fa998,_0x469ee3);else{for(var _0x3232f2=_0x47e0c3[_0x43bc0f(0xad)]-0x1;_0x3232f2>=0x0;_0x3232f2--)if(_0x256769=_0x47e0c3[_0x3232f2])_0x41da1a=(_0x5db741<0x3?_0x256769(_0x41da1a):_0x5db741>0x3?_0x256769(_0x12cd25,_0x5fa998,_0x41da1a):_0x256769(_0x12cd25,_0x5fa998))||_0x41da1a;}return _0x5db741>0x3&&_0x41da1a&&Object[_0x43bc0f(0x9b)](_0x12cd25,_0x5fa998,_0x41da1a),_0x41da1a;},__metadata=this&&this[a9_0x185a00(0x7b)]||function(_0x54c87e,_0x3450d5){var _0x2b072f=a9_0x185a00;if(typeof Reflect===_0x2b072f(0xb0)&&typeof Reflect[_0x2b072f(0x8a)]===_0x2b072f(0x9e))return Reflect[_0x2b072f(0x8a)](_0x54c87e,_0x3450d5);};Object[a9_0x185a00(0x9b)](exports,a9_0x185a00(0xaf),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a9_0x185a00(0x7d)),decorator_1=require(a9_0x185a00(0xa1)),ApiError_1=require(a9_0x185a00(0x9d));function a9_0x33c2(_0x5e8dfb,_0x233d87){var _0x1425f3=a9_0x1425();return a9_0x33c2=function(_0x33c24b,_0x422636){_0x33c24b=_0x33c24b-0x7a;var _0x28616e=_0x1425f3[_0x33c24b];return _0x28616e;},a9_0x33c2(_0x5e8dfb,_0x233d87);}let ApiService=class ApiService{[a9_0x185a00(0x89)](_0x348bdb){var _0xe6c7b=a9_0x185a00,_0x14626b;return _0x348bdb?(0x0,crypto_js_1[_0xe6c7b(0x9a)])(_0x348bdb+(0x0,crypto_js_1[_0xe6c7b(0x9a)])((0x0,crypto_js_1['MD5'])(_0x348bdb)[_0xe6c7b(0xa7)]()+((_0x14626b=this[_0xe6c7b(0x8c)])===null||_0x14626b===void 0x0?void 0x0:_0x14626b['password']))[_0xe6c7b(0xa7)]())[_0xe6c7b(0xa7)]():'';}['getcheck'](_0x287b52,_0x44ed45,_0xf00351=Date[a9_0x185a00(0x7a)]()){var _0x4ffefb=a9_0x185a00;return{'Token':_0x287b52,'Logintime':_0xf00351,'Checkcode':this[_0x4ffefb(0x83)](_0x287b52,_0x44ed45,_0xf00351)};}['getsign'](_0x5b3c56={}){var _0x574c5a=a9_0x185a00;const _0x54d822=[],_0x4d0e60=Object['fromEntries'](Object[_0x574c5a(0xb3)](_0x5b3c56)[_0x574c5a(0x97)](_0x46346f=>[_0x46346f[0x0]['toLowerCase'](),_0x46346f[0x1]]));for(let _0x64ad52 of[_0x574c5a(0x9f),_0x574c5a(0x85),'token',_0x574c5a(0x8b),_0x574c5a(0x83)]){if(typeof _0x4d0e60[_0x64ad52]==_0x574c5a(0xa5))throw new AnnError(ApiError_1[_0x574c5a(0xa9)][_0x574c5a(0xa3)],{'message':'缺少头信息:'+_0x64ad52});_0x54d822[_0x574c5a(0x90)](_0x64ad52+'='+_0x4d0e60[_0x64ad52]);}if(Math[_0x574c5a(0xb5)](_0x4d0e60[_0x574c5a(0x85)])-Date[_0x574c5a(0x7a)]()>this[_0x574c5a(0x8c)][_0x574c5a(0xb4)])throw new AnnError(ApiError_1['ApiError'][_0x574c5a(0x8e)]);if(!this[_0x574c5a(0x8c)][_0x574c5a(0xb1)][_0x4d0e60[_0x574c5a(0x9f)]]||!this[_0x574c5a(0x8c)][_0x574c5a(0xb1)][_0x4d0e60['device']][_0x574c5a(0x99)]||!this[_0x574c5a(0x8c)][_0x574c5a(0xb1)][_0x4d0e60[_0x574c5a(0x9f)]][_0x574c5a(0x83)])throw new AnnError(ApiError_1[_0x574c5a(0xa9)][_0x574c5a(0xa8)]);if(_0x4d0e60['token']&&_0x4d0e60['checkcode']!=this[_0x574c5a(0x83)](_0x4d0e60[_0x574c5a(0xaa)],_0x4d0e60[_0x574c5a(0x9f)],_0x4d0e60[_0x574c5a(0x8b)]))throw new AnnError(ApiError_1[_0x574c5a(0xa9)][_0x574c5a(0x81)]);return _0x54d822[_0x574c5a(0x90)]('secret='+this[_0x574c5a(0x8c)][_0x574c5a(0xb1)][_0x4d0e60['device']][_0x574c5a(0x99)]),(0x0,crypto_js_1[_0x574c5a(0x9a)])(_0x54d822[_0x574c5a(0x7c)]()[_0x574c5a(0xa6)](''))[_0x574c5a(0xa7)]();}[a9_0x185a00(0x83)](_0x14b62b,_0x14847c,_0x11d782=Date[a9_0x185a00(0x7a)]()){var _0x175758=a9_0x185a00,_0xafa622,_0x139f42,_0x37bc1c;if(!((_0xafa622=this[_0x175758(0x8c)])===null||_0xafa622===void 0x0?void 0x0:_0xafa622[_0x175758(0xb1)][_0x14847c])||!((_0x37bc1c=(_0x139f42=this[_0x175758(0x8c)])===null||_0x139f42===void 0x0?void 0x0:_0x139f42['devices'][_0x14847c])===null||_0x37bc1c===void 0x0?void 0x0:_0x37bc1c[_0x175758(0x83)]))throw new AnnError(ApiError_1['ApiError'][_0x175758(0xa8)]);return(0x0,crypto_js_1[_0x175758(0x9a)])(_0x14b62b+(0x0,crypto_js_1[_0x175758(0x9a)])(_0x11d782+this[_0x175758(0x8c)][_0x175758(0xb1)][_0x14847c][_0x175758(0x83)])['toString']())[_0x175758(0xa7)]();}[a9_0x185a00(0x95)](_0x36d8e6={}){var _0xd49e8b=a9_0x185a00;const _0x3bb1ae=Object['fromEntries'](Object[_0xd49e8b(0xb3)](_0x36d8e6)[_0xd49e8b(0x97)](_0xbf1f63=>[_0xbf1f63[0x0][_0xd49e8b(0xa2)](),_0xbf1f63[0x1]]));if(!(_0x3bb1ae===null||_0x3bb1ae===void 0x0?void 0x0:_0x3bb1ae[_0xd49e8b(0x88)]))throw new AnnError(ApiError_1[_0xd49e8b(0xa9)]['HEADERS_LACK'],{'message':_0xd49e8b(0x7f)});if((_0x3bb1ae===null||_0x3bb1ae===void 0x0?void 0x0:_0x3bb1ae[_0xd49e8b(0x88)])!=this[_0xd49e8b(0x80)](_0x3bb1ae))throw new AnnError(ApiError_1[_0xd49e8b(0xa9)][_0xd49e8b(0x9c)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x185a00(0x8f)])(a9_0x185a00(0xab)),__metadata('design:type',Object)],ApiService[a9_0x185a00(0x82)],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x185a00(0x87)])(),(0x0,decorator_1[a9_0x185a00(0x96)])(decorator_1[a9_0x185a00(0x91)]['Singleton'])],ApiService),exports[a9_0x185a00(0x98)]=ApiService;
1
+ 'use strict';function a9_0x3545(){var _0x53d525=['MD5','fromEntries','HEADERS_LACK','password','entries','../exception/ApiError','defineProperty','@midwayjs/decorator','3619990jOrleU','ApiError','function','prototype','__esModule','HEADERS_DEVICE','getOwnPropertyDescriptor','secret=','665835hZcJGK','4002411Hwlyns','16414785MXktxu','anncicapi','design:type','timeout','ScopeEnum','requesttime','3971956nGHwrK','78TFhivp','secret','config','TIMEOUT','ApiService','getsign','缺少头信息:','160CsRnZp','metadata','logintime','toString','8qTzVwA','signature','token','checkcode','join','Singleton','decorate','crypto-js','Provide','HEADERS_SIGNATURE','device','4215987duhNII','2DQsQWY','now','toLowerCase','devices','object','getcheck','abs','map','push','569791emNemv','undefined'];a9_0x3545=function(){return _0x53d525;};return a9_0x3545();}var a9_0x1a99e0=a9_0x3d75;(function(_0xdc6129,_0x1a1a47){var _0x88eb44=a9_0x3d75,_0x570c57=_0xdc6129();while(!![]){try{var _0x4a88ff=-parseInt(_0x88eb44(0x14e))/0x1+-parseInt(_0x88eb44(0x180))/0x2*(-parseInt(_0x88eb44(0x17f))/0x3)+-parseInt(_0x88eb44(0x168))/0x4+-parseInt(_0x88eb44(0x160))/0x5*(parseInt(_0x88eb44(0x169))/0x6)+parseInt(_0x88eb44(0x161))/0x7*(-parseInt(_0x88eb44(0x174))/0x8)+-parseInt(_0x88eb44(0x162))/0x9+parseInt(_0x88eb44(0x170))/0xa*(parseInt(_0x88eb44(0x158))/0xb);if(_0x4a88ff===_0x1a1a47)break;else _0x570c57['push'](_0x570c57['shift']());}catch(_0x118e36){_0x570c57['push'](_0x570c57['shift']());}}}(a9_0x3545,0xef8bc));var __decorate=this&&this['__decorate']||function(_0x2a2fce,_0x3d2a92,_0x1b7b3e,_0x5e3aaf){var _0x1f0390=a9_0x3d75,_0x4408b7=arguments['length'],_0x1b8625=_0x4408b7<0x3?_0x3d2a92:_0x5e3aaf===null?_0x5e3aaf=Object[_0x1f0390(0x15e)](_0x3d2a92,_0x1b7b3e):_0x5e3aaf,_0x517f25;if(typeof Reflect===_0x1f0390(0x184)&&typeof Reflect[_0x1f0390(0x17a)]===_0x1f0390(0x15a))_0x1b8625=Reflect[_0x1f0390(0x17a)](_0x2a2fce,_0x3d2a92,_0x1b7b3e,_0x5e3aaf);else{for(var _0x17a8c6=_0x2a2fce['length']-0x1;_0x17a8c6>=0x0;_0x17a8c6--)if(_0x517f25=_0x2a2fce[_0x17a8c6])_0x1b8625=(_0x4408b7<0x3?_0x517f25(_0x1b8625):_0x4408b7>0x3?_0x517f25(_0x3d2a92,_0x1b7b3e,_0x1b8625):_0x517f25(_0x3d2a92,_0x1b7b3e))||_0x1b8625;}return _0x4408b7>0x3&&_0x1b8625&&Object[_0x1f0390(0x156)](_0x3d2a92,_0x1b7b3e,_0x1b8625),_0x1b8625;},__metadata=this&&this['__metadata']||function(_0x253876,_0x243e47){var _0x3334d4=a9_0x3d75;if(typeof Reflect===_0x3334d4(0x184)&&typeof Reflect[_0x3334d4(0x171)]===_0x3334d4(0x15a))return Reflect[_0x3334d4(0x171)](_0x253876,_0x243e47);};function a9_0x3d75(_0x50644d,_0x57226f){var _0x354562=a9_0x3545();return a9_0x3d75=function(_0x3d7547,_0x48df81){_0x3d7547=_0x3d7547-0x14a;var _0x177b15=_0x354562[_0x3d7547];return _0x177b15;},a9_0x3d75(_0x50644d,_0x57226f);}Object[a9_0x1a99e0(0x156)](exports,a9_0x1a99e0(0x15c),{'value':!![]}),exports[a9_0x1a99e0(0x16d)]=void 0x0;const crypto_js_1=require(a9_0x1a99e0(0x17b)),decorator_1=require(a9_0x1a99e0(0x157)),ApiError_1=require(a9_0x1a99e0(0x155));let ApiService=class ApiService{[a9_0x1a99e0(0x153)](_0x207e1c){var _0x150c98=a9_0x1a99e0,_0x28dc8c;return _0x207e1c?(0x0,crypto_js_1[_0x150c98(0x150)])(_0x207e1c+(0x0,crypto_js_1[_0x150c98(0x150)])((0x0,crypto_js_1[_0x150c98(0x150)])(_0x207e1c)[_0x150c98(0x173)]()+((_0x28dc8c=this[_0x150c98(0x16b)])===null||_0x28dc8c===void 0x0?void 0x0:_0x28dc8c['password']))['toString']())['toString']():'';}[a9_0x1a99e0(0x14a)](_0x19fbb3,_0x2fb3d2,_0x20ccde=Date[a9_0x1a99e0(0x181)]()){return{'Token':_0x19fbb3,'Logintime':_0x20ccde,'Checkcode':this['checkcode'](_0x19fbb3,_0x2fb3d2,_0x20ccde)};}['getsign'](_0x1d4c27={}){var _0x3e20d8=a9_0x1a99e0;const _0x1c72d9=[],_0xbf9583=Object[_0x3e20d8(0x151)](Object[_0x3e20d8(0x154)](_0x1d4c27)[_0x3e20d8(0x14c)](_0x125130=>[_0x125130[0x0][_0x3e20d8(0x182)](),_0x125130[0x1]]));for(let _0x4285bf of[_0x3e20d8(0x17e),_0x3e20d8(0x167),'token',_0x3e20d8(0x172),_0x3e20d8(0x177)]){if(typeof _0xbf9583[_0x4285bf]==_0x3e20d8(0x14f))throw new AnnError(ApiError_1['ApiError'][_0x3e20d8(0x152)],{'message':_0x3e20d8(0x16f)+_0x4285bf});_0x1c72d9[_0x3e20d8(0x14d)](_0x4285bf+'='+_0xbf9583[_0x4285bf]);}if(Math[_0x3e20d8(0x14b)](_0xbf9583[_0x3e20d8(0x167)])-Date[_0x3e20d8(0x181)]()>this[_0x3e20d8(0x16b)][_0x3e20d8(0x165)])throw new AnnError(ApiError_1[_0x3e20d8(0x159)][_0x3e20d8(0x16c)]);if(!this[_0x3e20d8(0x16b)][_0x3e20d8(0x183)][_0xbf9583[_0x3e20d8(0x17e)]]||!this[_0x3e20d8(0x16b)]['devices'][_0xbf9583[_0x3e20d8(0x17e)]][_0x3e20d8(0x16a)]||!this['config'][_0x3e20d8(0x183)][_0xbf9583[_0x3e20d8(0x17e)]][_0x3e20d8(0x177)])throw new AnnError(ApiError_1[_0x3e20d8(0x159)][_0x3e20d8(0x15d)]);if(_0xbf9583[_0x3e20d8(0x176)]&&_0xbf9583[_0x3e20d8(0x177)]!=this[_0x3e20d8(0x177)](_0xbf9583[_0x3e20d8(0x176)],_0xbf9583[_0x3e20d8(0x17e)],_0xbf9583[_0x3e20d8(0x172)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_CHECKCODE']);return _0x1c72d9[_0x3e20d8(0x14d)](_0x3e20d8(0x15f)+this[_0x3e20d8(0x16b)]['devices'][_0xbf9583['device']]['secret']),(0x0,crypto_js_1[_0x3e20d8(0x150)])(_0x1c72d9['sort']()[_0x3e20d8(0x178)](''))[_0x3e20d8(0x173)]();}['checkcode'](_0x142885,_0x3082c8,_0x6046f3=Date[a9_0x1a99e0(0x181)]()){var _0x797a9d=a9_0x1a99e0,_0x4c9f63,_0x5d3fff,_0x71d9d2;if(!((_0x4c9f63=this[_0x797a9d(0x16b)])===null||_0x4c9f63===void 0x0?void 0x0:_0x4c9f63['devices'][_0x3082c8])||!((_0x71d9d2=(_0x5d3fff=this[_0x797a9d(0x16b)])===null||_0x5d3fff===void 0x0?void 0x0:_0x5d3fff[_0x797a9d(0x183)][_0x3082c8])===null||_0x71d9d2===void 0x0?void 0x0:_0x71d9d2['checkcode']))throw new AnnError(ApiError_1[_0x797a9d(0x159)][_0x797a9d(0x15d)]);return(0x0,crypto_js_1[_0x797a9d(0x150)])(_0x142885+(0x0,crypto_js_1[_0x797a9d(0x150)])(_0x6046f3+this[_0x797a9d(0x16b)][_0x797a9d(0x183)][_0x3082c8][_0x797a9d(0x177)])[_0x797a9d(0x173)]())[_0x797a9d(0x173)]();}['checksign'](_0x47c014={}){var _0x5ac16c=a9_0x1a99e0;const _0x50bc2b=Object[_0x5ac16c(0x151)](Object['entries'](_0x47c014)['map'](_0x2984ea=>[_0x2984ea[0x0][_0x5ac16c(0x182)](),_0x2984ea[0x1]]));if(!(_0x50bc2b===null||_0x50bc2b===void 0x0?void 0x0:_0x50bc2b[_0x5ac16c(0x175)]))throw new AnnError(ApiError_1[_0x5ac16c(0x159)][_0x5ac16c(0x152)],{'message':'缺少头信息:signature'});if((_0x50bc2b===null||_0x50bc2b===void 0x0?void 0x0:_0x50bc2b['signature'])!=this[_0x5ac16c(0x16e)](_0x50bc2b))throw new AnnError(ApiError_1[_0x5ac16c(0x159)][_0x5ac16c(0x17d)]);return!![];}};__decorate([(0x0,decorator_1['Config'])(a9_0x1a99e0(0x163)),__metadata(a9_0x1a99e0(0x164),Object)],ApiService[a9_0x1a99e0(0x15b)],a9_0x1a99e0(0x16b),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x1a99e0(0x17c)])(),(0x0,decorator_1['Scope'])(decorator_1[a9_0x1a99e0(0x166)][a9_0x1a99e0(0x179)])],ApiService),exports[a9_0x1a99e0(0x16d)]=ApiService;
@@ -1 +1 @@
1
- 'use strict';const a10_0xacc7a4=a10_0x384e;(function(_0x1aa971,_0x5754ae){const _0x149e6c=a10_0x384e,_0x17fa60=_0x1aa971();while(!![]){try{const _0x4d565e=parseInt(_0x149e6c(0x163))/0x1*(parseInt(_0x149e6c(0x166))/0x2)+parseInt(_0x149e6c(0x15e))/0x3*(-parseInt(_0x149e6c(0x130))/0x4)+-parseInt(_0x149e6c(0x12c))/0x5*(parseInt(_0x149e6c(0x165))/0x6)+parseInt(_0x149e6c(0x134))/0x7+parseInt(_0x149e6c(0x11b))/0x8+parseInt(_0x149e6c(0x148))/0x9+-parseInt(_0x149e6c(0x11c))/0xa;if(_0x4d565e===_0x5754ae)break;else _0x17fa60['push'](_0x17fa60['shift']());}catch(_0x1dd816){_0x17fa60['push'](_0x17fa60['shift']());}}}(a10_0x5259,0x54ceb));function a10_0x384e(_0x8d8d76,_0xfe0c99){const _0x52593c=a10_0x5259();return a10_0x384e=function(_0x384e68,_0x37750b){_0x384e68=_0x384e68-0x117;let _0xacc565=_0x52593c[_0x384e68];return _0xacc565;},a10_0x384e(_0x8d8d76,_0xfe0c99);}var __decorate=this&&this[a10_0xacc7a4(0x15d)]||function(_0x2415b3,_0x334ef9,_0x110d08,_0x5b2390){const _0x4556a0=a10_0xacc7a4;var _0x41931c=arguments[_0x4556a0(0x160)],_0x1b6593=_0x41931c<0x3?_0x334ef9:_0x5b2390===null?_0x5b2390=Object[_0x4556a0(0x142)](_0x334ef9,_0x110d08):_0x5b2390,_0x3bd3a0;if(typeof Reflect===_0x4556a0(0x11a)&&typeof Reflect[_0x4556a0(0x164)]===_0x4556a0(0x120))_0x1b6593=Reflect['decorate'](_0x2415b3,_0x334ef9,_0x110d08,_0x5b2390);else{for(var _0x18064d=_0x2415b3['length']-0x1;_0x18064d>=0x0;_0x18064d--)if(_0x3bd3a0=_0x2415b3[_0x18064d])_0x1b6593=(_0x41931c<0x3?_0x3bd3a0(_0x1b6593):_0x41931c>0x3?_0x3bd3a0(_0x334ef9,_0x110d08,_0x1b6593):_0x3bd3a0(_0x334ef9,_0x110d08))||_0x1b6593;}return _0x41931c>0x3&&_0x1b6593&&Object[_0x4556a0(0x123)](_0x334ef9,_0x110d08,_0x1b6593),_0x1b6593;},__metadata=this&&this['__metadata']||function(_0x6ff674,_0x50e4f6){const _0x39b2b0=a10_0xacc7a4;if(typeof Reflect===_0x39b2b0(0x11a)&&typeof Reflect['metadata']===_0x39b2b0(0x120))return Reflect[_0x39b2b0(0x12d)](_0x6ff674,_0x50e4f6);},__param=this&&this[a10_0xacc7a4(0x119)]||function(_0x1d4d3e,_0xe2ba54){return function(_0x2b68d0,_0x53f2c8){_0xe2ba54(_0x2b68d0,_0x53f2c8,_0x1d4d3e);};};Object['defineProperty'](exports,a10_0xacc7a4(0x144),{'value':!![]}),exports[a10_0xacc7a4(0x121)]=exports[a10_0xacc7a4(0x12b)]=void 0x0;const path_1=require(a10_0xacc7a4(0x137)),fs_1=require('fs'),core_1=require(a10_0xacc7a4(0x161)),decorator_1=require(a10_0xacc7a4(0x15c)),decorator_2=require(a10_0xacc7a4(0x15c)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a10_0xacc7a4(0x14e)](_0x4ab98c){const _0x43f78c=a10_0xacc7a4,_0xbcad9d=(0x0,getRoutes_1[_0x43f78c(0x12f)])(_0x4ab98c),_0x17c481=[];for(let _0x49d34b in _0xbcad9d){for(let _0x500b6a in _0xbcad9d[_0x49d34b]['routes']){let _0x419ce0=_0xbcad9d[_0x49d34b][_0x43f78c(0x138)][_0x500b6a],_0x413aec=[];for(let _0x10b18e in _0x419ce0[_0x43f78c(0x145)]){_0x413aec[_0x43f78c(0x122)](_0x419ce0[_0x43f78c(0x145)][_0x10b18e]);}_0x17c481[_0x43f78c(0x122)]({'title':_0xbcad9d[_0x49d34b][_0x43f78c(0x126)]+':'+_0x419ce0[_0x43f78c(0x126)],'prefix':_0xbcad9d[_0x49d34b][_0x43f78c(0x13b)],'router':_0x419ce0[_0x43f78c(0x149)],'method':_0x419ce0['method'],'describe':_0x419ce0['description']||'','filepath':_0xbcad9d[_0x49d34b][_0x43f78c(0x11d)]||'','request':_0x413aec});}}const _0x195911=(0x0,path_1[_0x43f78c(0x136)])(__dirname,_0x43f78c(0x128));return(0x0,fs_1[_0x43f78c(0x156)])(_0x195911,{'encoding':_0x43f78c(0x125)})[_0x43f78c(0x153)](/__res__/g,_0x43f78c(0x150))[_0x43f78c(0x153)](_0x43f78c(0x13c),JSON[_0x43f78c(0x14c)](_0x17c481))[_0x43f78c(0x153)]('__devices__',JSON[_0x43f78c(0x14c)](this['config']['devices']));}};__decorate([(0x0,decorator_2[a10_0xacc7a4(0x13a)])('anncicapi'),__metadata(a10_0xacc7a4(0x12a),Object)],ApitestService[a10_0xacc7a4(0x15b)],a10_0xacc7a4(0x147),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0xacc7a4(0x133)])(a10_0xacc7a4(0x155)),(0x0,decorator_2[a10_0xacc7a4(0x14f)])(decorator_2[a10_0xacc7a4(0x13d)][a10_0xacc7a4(0x15f)])],ApitestService),exports[a10_0xacc7a4(0x12b)]=ApitestService;function a10_0x5259(){const _0x490ebb=['ctx','__param','object','3606032TdKsYI','11713910CWgFtM','filepath','Request','/apitest-:module','function','ApitestStaticController','push','defineProperty','cache-control','utf-8','summary','text/css;\x20charset=utf-8','../../public/index.html','design:paramtypes','design:type','ApitestService','51395yBHshY','metadata','/index.html','getRoutes','33064dVQxhR','design:returntype','application/javascript;\x20charset=utf-8','Provide','4442326WZovLC','module','join','path','routes','../../public/','Config','prefix','__apiList__','ScopeEnum','set','anncicapi','Controller','existsSync','getOwnPropertyDescriptor','.css','__esModule','request','apiteststatic','config','5100786OMxNDi','route','apitesthtml','extname','stringify','/apitest','apidoc','Scope','/apiteststatic/','Get','Environment','replace','substring','apitest','readFileSync','apitestmodule','url','isDevelopmentEnvironment','content-type','prototype','@midwayjs/decorator','__decorate','54TqZlFO','Singleton','length','@midwayjs/core','.js','5ziyUiD','decorate','354BPMvHf','248754xqsFyc','Inject','MidwayEnvironmentService'];a10_0x5259=function(){return _0x490ebb;};return a10_0x5259();}let ApitestStaticController=class ApitestStaticController{async[a10_0xacc7a4(0x14a)](){const _0x354fa8=a10_0xacc7a4;if(this[_0x354fa8(0x155)]){const _0x30ea31={'module':![]};return this[_0x354fa8(0x152)][_0x354fa8(0x159)]()&&(_0x30ea31[_0x354fa8(0x11d)]=!![]),await this[_0x354fa8(0x12b)][_0x354fa8(0x14e)](_0x30ea31);}return'';}async['apitestmodule'](_0x512bfd){const _0x279a75=a10_0xacc7a4;if(this['apitest']){const _0x1d440e={'module':_0x512bfd};return this['Environment'][_0x279a75(0x159)]()&&(_0x1d440e[_0x279a75(0x11d)]=!![]),await this['ApitestService'][_0x279a75(0x14e)](_0x1d440e);}return'';}async[a10_0xacc7a4(0x146)](){const _0x4f12bd=a10_0xacc7a4;if((0x0,path_1[_0x4f12bd(0x14b)])(this['ctx'][_0x4f12bd(0x145)][_0x4f12bd(0x158)])){var _0x8cd65a=(0x0,path_1[_0x4f12bd(0x136)])(__dirname,_0x4f12bd(0x139)+this[_0x4f12bd(0x118)][_0x4f12bd(0x145)][_0x4f12bd(0x158)][_0x4f12bd(0x153)]('/apiteststatic/','/'));if(_0x8cd65a[_0x4f12bd(0x154)](_0x8cd65a[_0x4f12bd(0x160)]-0xb)!=_0x4f12bd(0x12e)){this[_0x4f12bd(0x118)][_0x4f12bd(0x13e)](_0x4f12bd(0x124),'public,\x20max-age=604800');if((0x0,path_1[_0x4f12bd(0x14b)])(this[_0x4f12bd(0x118)][_0x4f12bd(0x145)][_0x4f12bd(0x158)])==_0x4f12bd(0x162))this[_0x4f12bd(0x118)]['set'](_0x4f12bd(0x15a),_0x4f12bd(0x132));else(0x0,path_1[_0x4f12bd(0x14b)])(this[_0x4f12bd(0x118)][_0x4f12bd(0x145)][_0x4f12bd(0x158)])==_0x4f12bd(0x143)&&this[_0x4f12bd(0x118)][_0x4f12bd(0x13e)](_0x4f12bd(0x15a),_0x4f12bd(0x127));return(0x0,fs_1[_0x4f12bd(0x141)])(_0x8cd65a)&&(0x0,fs_1[_0x4f12bd(0x156)])(_0x8cd65a,{'encoding':_0x4f12bd(0x125)});}}return'';}};__decorate([(0x0,decorator_2[a10_0xacc7a4(0x167)])(),__metadata(a10_0xacc7a4(0x12a),Object)],ApitestStaticController[a10_0xacc7a4(0x15b)],'ctx',void 0x0),__decorate([(0x0,decorator_2[a10_0xacc7a4(0x167)])(),__metadata('design:type',core_1[a10_0xacc7a4(0x117)])],ApitestStaticController[a10_0xacc7a4(0x15b)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a10_0xacc7a4(0x167)])(),__metadata(a10_0xacc7a4(0x12a),ApitestService)],ApitestStaticController[a10_0xacc7a4(0x15b)],a10_0xacc7a4(0x12b),void 0x0),__decorate([(0x0,decorator_2[a10_0xacc7a4(0x13a)])(a10_0xacc7a4(0x155)),__metadata(a10_0xacc7a4(0x12a),Boolean)],ApitestStaticController[a10_0xacc7a4(0x15b)],a10_0xacc7a4(0x155),void 0x0),__decorate([(0x0,decorator_2[a10_0xacc7a4(0x13a)])(a10_0xacc7a4(0x13f)),__metadata(a10_0xacc7a4(0x12a),Object)],ApitestStaticController[a10_0xacc7a4(0x15b)],a10_0xacc7a4(0x147),void 0x0),__decorate([(0x0,decorator_1[a10_0xacc7a4(0x151)])(a10_0xacc7a4(0x14d)),__metadata('design:type',Function),__metadata(a10_0xacc7a4(0x129),[]),__metadata(a10_0xacc7a4(0x131),Promise)],ApitestStaticController['prototype'],a10_0xacc7a4(0x14a),null),__decorate([(0x0,decorator_1[a10_0xacc7a4(0x151)])(a10_0xacc7a4(0x11f)),__param(0x0,(0x0,decorator_1['Param'])(a10_0xacc7a4(0x135))),__metadata(a10_0xacc7a4(0x12a),Function),__metadata('design:paramtypes',[String]),__metadata(a10_0xacc7a4(0x131),Promise)],ApitestStaticController[a10_0xacc7a4(0x15b)],a10_0xacc7a4(0x157),null),__decorate([(0x0,decorator_1[a10_0xacc7a4(0x151)])('/apiteststatic/*'),__metadata(a10_0xacc7a4(0x12a),Function),__metadata('design:paramtypes',[]),__metadata(a10_0xacc7a4(0x131),Promise)],ApitestStaticController[a10_0xacc7a4(0x15b)],a10_0xacc7a4(0x146),null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0xacc7a4(0x140)])('/'),(0x0,decorator_2['Scope'])(decorator_2[a10_0xacc7a4(0x13d)][a10_0xacc7a4(0x11e)])],ApitestStaticController),exports[a10_0xacc7a4(0x121)]=ApitestStaticController;
1
+ 'use strict';const a10_0x46b75e=a10_0x33e9;(function(_0x1159d2,_0x4202a2){const _0x41c725=a10_0x33e9,_0x397eee=_0x1159d2();while(!![]){try{const _0x4f6add=parseInt(_0x41c725(0x217))/0x1+parseInt(_0x41c725(0x212))/0x2*(parseInt(_0x41c725(0x1ef))/0x3)+parseInt(_0x41c725(0x218))/0x4+-parseInt(_0x41c725(0x22b))/0x5*(parseInt(_0x41c725(0x230))/0x6)+parseInt(_0x41c725(0x20f))/0x7+parseInt(_0x41c725(0x22f))/0x8+-parseInt(_0x41c725(0x235))/0x9;if(_0x4f6add===_0x4202a2)break;else _0x397eee['push'](_0x397eee['shift']());}catch(_0x18d942){_0x397eee['push'](_0x397eee['shift']());}}}(a10_0x3484,0x32c26));function a10_0x3484(){const _0x5b71bf=['__metadata','push','Environment','anncicapi','replace','decorate','ctx','.js','/apitest-:module','cache-control','370dATSEN','@midwayjs/decorator','/apitest','content-type','2404040WXqoiB','18552ypPLZB','join','ApitestService','length','object','2561508hlvwmz','design:paramtypes','config','/index.html','/apiteststatic/','summary','design:returntype','Inject','5037bXEtoI','request','Config','ApitestStaticController','Provide','path','stringify','extname','/apiteststatic/*','Get','method','__devices__','__decorate','filepath','apitestmodule','apitesthtml','defineProperty','getOwnPropertyDescriptor','module','prototype','__esModule','isDevelopmentEnvironment','public,\x20max-age=604800','url','Request','Singleton','ScopeEnum','design:type','__apiList__','apiteststatic','Scope','existsSync','928333xPyYRN','../../public/','Param','134RXCWym','prefix','utf-8','function','routes','94320iZmaKB','325572iTfemG','description','MidwayEnvironmentService','readFileSync','set','devices','apitest','apidoc','route'];a10_0x3484=function(){return _0x5b71bf;};return a10_0x3484();}var __decorate=this&&this[a10_0x46b75e(0x1fb)]||function(_0x56b9c5,_0x17744f,_0xd4765f,_0x5ebf4){const _0x11556e=a10_0x46b75e;var _0x36d336=arguments[_0x11556e(0x233)],_0x65e34d=_0x36d336<0x3?_0x17744f:_0x5ebf4===null?_0x5ebf4=Object[_0x11556e(0x200)](_0x17744f,_0xd4765f):_0x5ebf4,_0x3634be;if(typeof Reflect==='object'&&typeof Reflect[_0x11556e(0x226)]===_0x11556e(0x215))_0x65e34d=Reflect[_0x11556e(0x226)](_0x56b9c5,_0x17744f,_0xd4765f,_0x5ebf4);else{for(var _0x4ed8d6=_0x56b9c5[_0x11556e(0x233)]-0x1;_0x4ed8d6>=0x0;_0x4ed8d6--)if(_0x3634be=_0x56b9c5[_0x4ed8d6])_0x65e34d=(_0x36d336<0x3?_0x3634be(_0x65e34d):_0x36d336>0x3?_0x3634be(_0x17744f,_0xd4765f,_0x65e34d):_0x3634be(_0x17744f,_0xd4765f))||_0x65e34d;}return _0x36d336>0x3&&_0x65e34d&&Object[_0x11556e(0x1ff)](_0x17744f,_0xd4765f,_0x65e34d),_0x65e34d;},__metadata=this&&this[a10_0x46b75e(0x221)]||function(_0x3d175a,_0x1e9b1d){const _0x5bf486=a10_0x46b75e;if(typeof Reflect===_0x5bf486(0x234)&&typeof Reflect['metadata']===_0x5bf486(0x215))return Reflect['metadata'](_0x3d175a,_0x1e9b1d);},__param=this&&this['__param']||function(_0xa8c7a,_0x5e1101){return function(_0x476192,_0x1cffe8){_0x5e1101(_0x476192,_0x1cffe8,_0xa8c7a);};};Object[a10_0x46b75e(0x1ff)](exports,a10_0x46b75e(0x203),{'value':!![]}),exports[a10_0x46b75e(0x1f2)]=exports[a10_0x46b75e(0x232)]=void 0x0;const path_1=require(a10_0x46b75e(0x1f4)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x46b75e(0x22c)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a10_0x46b75e(0x21f)](_0x4cf196){const _0x3a14f6=a10_0x46b75e,_0x1ea034=(0x0,getRoutes_1['getRoutes'])(_0x4cf196),_0x388202=[];for(let _0x256dbb in _0x1ea034){for(let _0x235273 in _0x1ea034[_0x256dbb][_0x3a14f6(0x216)]){let _0x1a1f1f=_0x1ea034[_0x256dbb]['routes'][_0x235273],_0x5a6b42=[];for(let _0x20702f in _0x1a1f1f[_0x3a14f6(0x1f0)]){_0x5a6b42[_0x3a14f6(0x222)](_0x1a1f1f['request'][_0x20702f]);}_0x388202[_0x3a14f6(0x222)]({'title':_0x1ea034[_0x256dbb][_0x3a14f6(0x1ec)]+':'+_0x1a1f1f[_0x3a14f6(0x1ec)],'prefix':_0x1ea034[_0x256dbb][_0x3a14f6(0x213)],'router':_0x1a1f1f[_0x3a14f6(0x220)],'method':_0x1a1f1f[_0x3a14f6(0x1f9)],'describe':_0x1a1f1f[_0x3a14f6(0x219)]||'','filepath':_0x1ea034[_0x256dbb][_0x3a14f6(0x1fc)]||'','request':_0x5a6b42});}}const _0x4a2f5a=(0x0,path_1[_0x3a14f6(0x231)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x3a14f6(0x21b)])(_0x4a2f5a,{'encoding':_0x3a14f6(0x214)})[_0x3a14f6(0x225)](/__res__/g,_0x3a14f6(0x1eb))[_0x3a14f6(0x225)](_0x3a14f6(0x20b),JSON[_0x3a14f6(0x1f5)](_0x388202))['replace'](_0x3a14f6(0x1fa),JSON[_0x3a14f6(0x1f5)](this[_0x3a14f6(0x237)][_0x3a14f6(0x21d)]));}};__decorate([(0x0,decorator_2[a10_0x46b75e(0x1f1)])('anncicapi'),__metadata('design:type',Object)],ApitestService[a10_0x46b75e(0x202)],a10_0x46b75e(0x237),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x46b75e(0x1f3)])(a10_0x46b75e(0x21e)),(0x0,decorator_2[a10_0x46b75e(0x20d)])(decorator_2[a10_0x46b75e(0x209)][a10_0x46b75e(0x208)])],ApitestService),exports[a10_0x46b75e(0x232)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x46b75e(0x1fe)](){const _0x4267f8=a10_0x46b75e;if(this[_0x4267f8(0x21e)]){const _0x3eb7fe={'module':![]};return this[_0x4267f8(0x223)]['isDevelopmentEnvironment']()&&(_0x3eb7fe[_0x4267f8(0x1fc)]=!![]),await this[_0x4267f8(0x232)]['apidoc'](_0x3eb7fe);}return'';}async[a10_0x46b75e(0x1fd)](_0xd7ee78){const _0x15ed41=a10_0x46b75e;if(this[_0x15ed41(0x21e)]){const _0xc4e7e={'module':_0xd7ee78};return this['Environment'][_0x15ed41(0x204)]()&&(_0xc4e7e[_0x15ed41(0x1fc)]=!![]),await this[_0x15ed41(0x232)][_0x15ed41(0x21f)](_0xc4e7e);}return'';}async[a10_0x46b75e(0x20c)](){const _0x191aeb=a10_0x46b75e;if((0x0,path_1[_0x191aeb(0x1f6)])(this[_0x191aeb(0x227)][_0x191aeb(0x1f0)][_0x191aeb(0x206)])){var _0x2a7c94=(0x0,path_1['join'])(__dirname,_0x191aeb(0x210)+this['ctx'][_0x191aeb(0x1f0)][_0x191aeb(0x206)]['replace']('/apiteststatic/','/'));if(_0x2a7c94['substring'](_0x2a7c94[_0x191aeb(0x233)]-0xb)!=_0x191aeb(0x238)){this[_0x191aeb(0x227)][_0x191aeb(0x21c)](_0x191aeb(0x22a),_0x191aeb(0x205));if((0x0,path_1['extname'])(this[_0x191aeb(0x227)][_0x191aeb(0x1f0)][_0x191aeb(0x206)])==_0x191aeb(0x228))this[_0x191aeb(0x227)][_0x191aeb(0x21c)](_0x191aeb(0x22e),'application/javascript;\x20charset=utf-8');else(0x0,path_1['extname'])(this[_0x191aeb(0x227)]['request']['url'])=='.css'&&this[_0x191aeb(0x227)][_0x191aeb(0x21c)](_0x191aeb(0x22e),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x191aeb(0x20e)])(_0x2a7c94)&&(0x0,fs_1[_0x191aeb(0x21b)])(_0x2a7c94,{'encoding':_0x191aeb(0x214)});}}return'';}};function a10_0x33e9(_0x51130a,_0x44b482){const _0x348489=a10_0x3484();return a10_0x33e9=function(_0x33e942,_0x44dc16){_0x33e942=_0x33e942-0x1eb;let _0x161048=_0x348489[_0x33e942];return _0x161048;},a10_0x33e9(_0x51130a,_0x44b482);}__decorate([(0x0,decorator_2[a10_0x46b75e(0x1ee)])(),__metadata(a10_0x46b75e(0x20a),Object)],ApitestStaticController[a10_0x46b75e(0x202)],'ctx',void 0x0),__decorate([(0x0,decorator_2[a10_0x46b75e(0x1ee)])(),__metadata(a10_0x46b75e(0x20a),core_1[a10_0x46b75e(0x21a)])],ApitestStaticController[a10_0x46b75e(0x202)],a10_0x46b75e(0x223),void 0x0),__decorate([(0x0,decorator_2[a10_0x46b75e(0x1ee)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a10_0x46b75e(0x202)],a10_0x46b75e(0x232),void 0x0),__decorate([(0x0,decorator_2[a10_0x46b75e(0x1f1)])(a10_0x46b75e(0x21e)),__metadata(a10_0x46b75e(0x20a),Boolean)],ApitestStaticController[a10_0x46b75e(0x202)],a10_0x46b75e(0x21e),void 0x0),__decorate([(0x0,decorator_2[a10_0x46b75e(0x1f1)])(a10_0x46b75e(0x224)),__metadata(a10_0x46b75e(0x20a),Object)],ApitestStaticController[a10_0x46b75e(0x202)],a10_0x46b75e(0x237),void 0x0),__decorate([(0x0,decorator_1['Get'])(a10_0x46b75e(0x22d)),__metadata(a10_0x46b75e(0x20a),Function),__metadata(a10_0x46b75e(0x236),[]),__metadata(a10_0x46b75e(0x1ed),Promise)],ApitestStaticController['prototype'],a10_0x46b75e(0x1fe),null),__decorate([(0x0,decorator_1[a10_0x46b75e(0x1f8)])(a10_0x46b75e(0x229)),__param(0x0,(0x0,decorator_1[a10_0x46b75e(0x211)])(a10_0x46b75e(0x201))),__metadata('design:type',Function),__metadata(a10_0x46b75e(0x236),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a10_0x46b75e(0x1fd),null),__decorate([(0x0,decorator_1['Get'])(a10_0x46b75e(0x1f7)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a10_0x46b75e(0x1ed),Promise)],ApitestStaticController['prototype'],a10_0x46b75e(0x20c),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2[a10_0x46b75e(0x20d)])(decorator_2[a10_0x46b75e(0x209)][a10_0x46b75e(0x207)])],ApitestStaticController),exports[a10_0x46b75e(0x1f2)]=ApitestStaticController;
@@ -1 +1 @@
1
- 'use strict';const a11_0x486760=a11_0x319a;function a11_0x25a8(){const _0x503234=['47935RCQOOb','app','log','handler','getRow','value','getAppDir','defineProperty','key','isNumber','frozen','xlsx','koa-send','Singleton','replace','findRows','columns','__esModule','__decorate','5666276zAyoVG','App','Provide','decorate','rowCount','386874bxkTsK','length','Scope','toString','getWorksheet','readFile','Sheet\x201','function','worksheets','download','38927328JJEGJW','6692189NjvUNj','design:type','substring','trim','addRow','2226075hKYAge','random','parse','startsWith','/public/xlsx','2615590Vtdltw','Api\x20Excel\x20Error:\x20','metadata','object','18MiKmrT','Workbook','public/xlsx','.xlsx','prototype','@midwayjs/decorator','ExcelService','getCell','endsWith','header','writeFile','/public/xlsx/','eachCell'];a11_0x25a8=function(){return _0x503234;};return a11_0x25a8();}(function(_0x10cd6d,_0x2164ac){const _0x5c18b3=a11_0x319a,_0x3da0b7=_0x10cd6d();while(!![]){try{const _0x3f2740=parseInt(_0x5c18b3(0x1c0))/0x1+-parseInt(_0x5c18b3(0x1d5))/0x2+-parseInt(_0x5c18b3(0x1d0))/0x3+-parseInt(_0x5c18b3(0x1bb))/0x4+-parseInt(_0x5c18b3(0x1e6))/0x5*(parseInt(_0x5c18b3(0x1d9))/0x6)+-parseInt(_0x5c18b3(0x1cb))/0x7+parseInt(_0x5c18b3(0x1ca))/0x8;if(_0x3f2740===_0x2164ac)break;else _0x3da0b7['push'](_0x3da0b7['shift']());}catch(_0xb6b295){_0x3da0b7['push'](_0x3da0b7['shift']());}}}(a11_0x25a8,0xc3b4d));var __decorate=this&&this[a11_0x486760(0x1ba)]||function(_0x30d4e6,_0x44d3c4,_0x5a1113,_0x1da441){const _0x256917=a11_0x486760;var _0x38eb7a=arguments[_0x256917(0x1c1)],_0x5d5c1f=_0x38eb7a<0x3?_0x44d3c4:_0x1da441===null?_0x1da441=Object['getOwnPropertyDescriptor'](_0x44d3c4,_0x5a1113):_0x1da441,_0x40eb7a;if(typeof Reflect==='object'&&typeof Reflect[_0x256917(0x1be)]===_0x256917(0x1c7))_0x5d5c1f=Reflect[_0x256917(0x1be)](_0x30d4e6,_0x44d3c4,_0x5a1113,_0x1da441);else{for(var _0x1d7d4e=_0x30d4e6[_0x256917(0x1c1)]-0x1;_0x1d7d4e>=0x0;_0x1d7d4e--)if(_0x40eb7a=_0x30d4e6[_0x1d7d4e])_0x5d5c1f=(_0x38eb7a<0x3?_0x40eb7a(_0x5d5c1f):_0x38eb7a>0x3?_0x40eb7a(_0x44d3c4,_0x5a1113,_0x5d5c1f):_0x40eb7a(_0x44d3c4,_0x5a1113))||_0x5d5c1f;}return _0x38eb7a>0x3&&_0x5d5c1f&&Object[_0x256917(0x1af)](_0x44d3c4,_0x5a1113,_0x5d5c1f),_0x5d5c1f;},__metadata=this&&this['__metadata']||function(_0x4048e5,_0x47da1d){const _0x2cffd9=a11_0x486760;if(typeof Reflect===_0x2cffd9(0x1d8)&&typeof Reflect[_0x2cffd9(0x1d7)]===_0x2cffd9(0x1c7))return Reflect[_0x2cffd9(0x1d7)](_0x4048e5,_0x47da1d);};Object[a11_0x486760(0x1af)](exports,a11_0x486760(0x1b9),{'value':!![]}),exports[a11_0x486760(0x1df)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a11_0x486760(0x1b4)),decorator_1=require(a11_0x486760(0x1de));function a11_0x319a(_0x3ba638,_0x2a9946){const _0x25a82a=a11_0x25a8();return a11_0x319a=function(_0x319a20,_0x5ac873){_0x319a20=_0x319a20-0x1ae;let _0x1f23d0=_0x25a82a[_0x319a20];return _0x1f23d0;},a11_0x319a(_0x3ba638,_0x2a9946);}let ExcelService=class ExcelService{async[a11_0x486760(0x1d2)](_0x488000,_0x939d68,_0x5248ae=[0x0]){const _0x39697d=a11_0x486760;var _0x1319bb,_0x2b319e;const _0xd7706c=new exceljs['Workbook'](),_0x51d4f3=[];let _0x24bc49=_0x488000[_0x39697d(0x1b6)](/(\\|\/)/g,'/')[_0x39697d(0x1b6)](/\/{2,}/g,'/');!(_0x24bc49===null||_0x24bc49===void 0x0?void 0x0:_0x24bc49[_0x39697d(0x1d3)]('/'))&&(_0x24bc49=this[_0x39697d(0x1e7)][_0x39697d(0x1ae)]()+'/'+_0x24bc49);try{await _0xd7706c[_0x39697d(0x1b3)][_0x39697d(0x1c5)](_0x24bc49);}catch(_0x105882){return console[_0x39697d(0x1e8)](_0x39697d(0x1d6)+_0x24bc49+'\x20is\x20read\x20fail'),_0x51d4f3;}for(const _0x15a610 of _0x5248ae){const _0x571b41=lodash[_0x39697d(0x1b1)](_0x15a610)?((_0x1319bb=_0xd7706c[_0x39697d(0x1c8)])===null||_0x1319bb===void 0x0?void 0x0:_0x1319bb[_0x15a610])||undefined:_0xd7706c[_0x39697d(0x1c4)](_0x15a610);if(_0x571b41){var _0x17ce38=0x1;const _0xe3ddfd=_0x571b41[_0x39697d(0x1ea)](0x1),_0x1069d8=await new Promise(_0x3d62e1=>{const _0x448da6=_0x39697d,_0x38c9d9={};_0xe3ddfd[_0x448da6(0x1e5)]((_0x152cd0,_0x52e7aa)=>{const _0x3754a9=_0x448da6;for(const _0x35ee90 of _0x939d68){if(_0x152cd0[_0x3754a9(0x1eb)]==_0x35ee90[_0x3754a9(0x1e2)])_0x17ce38=0x2,_0x38c9d9[_0x35ee90[_0x3754a9(0x1b0)]]={'header':_0x152cd0['col'],'handler':_0x35ee90[_0x3754a9(0x1e9)]};else{if(!_0x38c9d9[_0x35ee90[_0x3754a9(0x1b0)]])try{const _0x46b0ab=_0xe3ddfd[_0x3754a9(0x1e0)](_0x35ee90[_0x3754a9(0x1e2)]);_0x46b0ab&&(_0x38c9d9[_0x35ee90[_0x3754a9(0x1b0)]]={'header':_0x46b0ab['col'],'handler':_0x35ee90[_0x3754a9(0x1e9)]});}catch{}}}_0xe3ddfd['cellCount']==_0x52e7aa&&_0x3d62e1(_0x38c9d9);});});for(const _0x28e6a7 of _0x571b41[_0x39697d(0x1b7)](_0x17ce38,_0x571b41[_0x39697d(0x1bf)])){const _0x226ec3={};for(const _0x53886e in _0x1069d8){_0x1069d8[_0x53886e][_0x39697d(0x1e2)]&&(typeof((_0x2b319e=_0x1069d8[_0x53886e])===null||_0x2b319e===void 0x0?void 0x0:_0x2b319e[_0x39697d(0x1e9)])==_0x39697d(0x1c7)?_0x226ec3[_0x53886e]=_0x1069d8[_0x53886e][_0x39697d(0x1e9)](_0x28e6a7[_0x39697d(0x1e0)](lodash[_0x39697d(0x1ce)](''+_0x1069d8[_0x53886e]['header'],'\x20'))[_0x39697d(0x1c3)]()):_0x226ec3[_0x53886e]=_0x28e6a7[_0x39697d(0x1e0)](_0x1069d8[_0x53886e][_0x39697d(0x1e2)])[_0x39697d(0x1c3)]());}Object['keys'](_0x226ec3)['length']>0x0&&_0x51d4f3['push'](_0x226ec3);}}}return _0x51d4f3;}async['export'](_0x12d7f1,_0x48147c,_0xba5db1,_0x35ad93=a11_0x486760(0x1db)){const _0x274491=a11_0x486760;var _0x4cf75e,_0x5b21c;const _0x46f22c=new exceljs[(_0x274491(0x1da))](),_0x3af5da={},_0x207b15=[],_0x3156e3=_0x46f22c['addWorksheet'](_0x274491(0x1c6),{'views':[{'state':_0x274491(0x1b2),'xSplit':0x1}]});for(const _0x3cff62 in _0x48147c){_0x3af5da[_0x48147c[_0x3cff62][_0x274491(0x1b0)]]=_0x48147c[_0x3cff62][_0x274491(0x1e2)],_0x207b15['push']({'header':_0x48147c[_0x3cff62]['header'],'key':(_0x4cf75e=_0x48147c[_0x3cff62])===null||_0x4cf75e===void 0x0?void 0x0:_0x4cf75e[_0x274491(0x1b0)]['replace'](/\./g,'_')});}_0x3156e3[_0x274491(0x1b8)]=_0x207b15;for(const _0x277c21 of _0xba5db1){const _0x5f062e={};for(const _0x353269 in _0x48147c){typeof((_0x5b21c=_0x48147c[_0x353269])===null||_0x5b21c===void 0x0?void 0x0:_0x5b21c['handler'])=='function'?_0x5f062e[_0x48147c[_0x353269][_0x274491(0x1b0)][_0x274491(0x1b6)](/\./g,'_')]=await _0x48147c[_0x353269][_0x274491(0x1e9)](_0x277c21):_0x5f062e[_0x48147c[_0x353269][_0x274491(0x1b0)][_0x274491(0x1b6)](/\./g,'_')]=lodash['get'](_0x277c21,_0x48147c[_0x353269][_0x274491(0x1b0)],'');}_0x3156e3[_0x274491(0x1cf)](_0x5f062e);}let _0x5c56db='';const _0x4562ef=_0x12d7f1+'-'+lodash[_0x274491(0x1d1)](0x2710,0x1869f)+_0x274491(0x1dc);if(_0x35ad93&&_0x35ad93['startsWith']('/'))_0x5c56db=_0x35ad93+'/'+_0x4562ef;else _0x35ad93&&!_0x35ad93[_0x274491(0x1d3)]('/')&&!_0x35ad93['startsWith']('\x5c')?_0x5c56db=this[_0x274491(0x1e7)][_0x274491(0x1ae)]()+'/'+_0x35ad93+'/'+_0x4562ef:_0x5c56db=this[_0x274491(0x1e7)][_0x274491(0x1ae)]()+_0x274491(0x1d4);return(_0x5c56db[_0x274491(0x1e1)]('/')||_0x5c56db[_0x274491(0x1e1)]('\x5c'))&&(_0x5c56db=_0x5c56db[_0x274491(0x1cd)](0x0,_0x5c56db['length']-0x1)),_0x5c56db=_0x5c56db['replace'](/(\\|\/)/g,'/')[_0x274491(0x1b6)](/\/{2,}/g,'/'),!fs['existsSync'](_0x5c56db)&&fs['mkdirSync'](_0x5c56db,{'recursive':!![]}),await _0x46f22c[_0x274491(0x1b3)][_0x274491(0x1e3)]((_0x5c56db+'/'+_0x4562ef)['replace'](/(\\|\/)/g,'/')[_0x274491(0x1b6)](/\/{2,}/g,'/')),{'filename':_0x4562ef,'filepath':_0x5c56db};}async[a11_0x486760(0x1c9)](_0x32ec38,_0x33f50){const _0x5a27e8=a11_0x486760;await koasend(_0x32ec38,_0x5a27e8(0x1e4)+_0x33f50);}};__decorate([(0x0,decorator_1[a11_0x486760(0x1bc)])(),__metadata(a11_0x486760(0x1cc),Object)],ExcelService[a11_0x486760(0x1dd)],a11_0x486760(0x1e7),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x486760(0x1bd)])(),(0x0,decorator_1[a11_0x486760(0x1c2)])(decorator_1['ScopeEnum'][a11_0x486760(0x1b5)])],ExcelService),exports[a11_0x486760(0x1df)]=ExcelService;
1
+ 'use strict';const a11_0x3c510f=a11_0x5b5e;function a11_0x3a61(){const _0x1e68cc=['1128948dJZxaY','10245699BXTyrw','get','columns','.xlsx','push','frozen','handler','10TIXKtW','object','Workbook','findRows','function','value','cellCount','key','getRow','__decorate','ExcelService','rowCount','ScopeEnum','length','header','exceljs','download','readFile','prototype','random','col','public/xlsx','writeFile','app','/public/xlsx','endsWith','4nYNrpp','8qSyjlc','worksheets','mkdirSync','@midwayjs/decorator','keys','trim','replace','startsWith','App','1141693PurCaM','__metadata','parse','defineProperty','decorate','Scope','\x20is\x20read\x20fail','getCell','Sheet\x201','xlsx','addWorksheet','13989041QWNFZp','eachCell','758392mnRqcl','5WnDEIz','9969954bauCvA','getAppDir','log','4525968EmhjQB','metadata','toString'];a11_0x3a61=function(){return _0x1e68cc;};return a11_0x3a61();}(function(_0x2c86ce,_0x13771e){const _0x77343b=a11_0x5b5e,_0x2b4118=_0x2c86ce();while(!![]){try{const _0x22cb43=-parseInt(_0x77343b(0x1be))/0x1*(-parseInt(_0x77343b(0x1d5))/0x2)+-parseInt(_0x77343b(0x1dd))/0x3*(-parseInt(_0x77343b(0x1bf))/0x4)+parseInt(_0x77343b(0x1d6))/0x5*(-parseInt(_0x77343b(0x1d7))/0x6)+-parseInt(_0x77343b(0x1c8))/0x7+parseInt(_0x77343b(0x1da))/0x8+-parseInt(_0x77343b(0x1de))/0x9*(-parseInt(_0x77343b(0x1e5))/0xa)+-parseInt(_0x77343b(0x1d3))/0xb;if(_0x22cb43===_0x13771e)break;else _0x2b4118['push'](_0x2b4118['shift']());}catch(_0x354cdd){_0x2b4118['push'](_0x2b4118['shift']());}}}(a11_0x3a61,0xd621c));function a11_0x5b5e(_0x29ed37,_0x5a977f){const _0x3a6103=a11_0x3a61();return a11_0x5b5e=function(_0x5b5efe,_0x5b4da8){_0x5b5efe=_0x5b5efe-0x1ab;let _0x2e6441=_0x3a6103[_0x5b5efe];return _0x2e6441;},a11_0x5b5e(_0x29ed37,_0x5a977f);}var __decorate=this&&this[a11_0x3c510f(0x1ad)]||function(_0x79501a,_0x45ae49,_0x347968,_0x26a069){const _0x554747=a11_0x3c510f;var _0x1b198c=arguments[_0x554747(0x1b1)],_0x108cce=_0x1b198c<0x3?_0x45ae49:_0x26a069===null?_0x26a069=Object['getOwnPropertyDescriptor'](_0x45ae49,_0x347968):_0x26a069,_0x148473;if(typeof Reflect===_0x554747(0x1e6)&&typeof Reflect[_0x554747(0x1cc)]===_0x554747(0x1e9))_0x108cce=Reflect[_0x554747(0x1cc)](_0x79501a,_0x45ae49,_0x347968,_0x26a069);else{for(var _0x3a77fc=_0x79501a[_0x554747(0x1b1)]-0x1;_0x3a77fc>=0x0;_0x3a77fc--)if(_0x148473=_0x79501a[_0x3a77fc])_0x108cce=(_0x1b198c<0x3?_0x148473(_0x108cce):_0x1b198c>0x3?_0x148473(_0x45ae49,_0x347968,_0x108cce):_0x148473(_0x45ae49,_0x347968))||_0x108cce;}return _0x1b198c>0x3&&_0x108cce&&Object['defineProperty'](_0x45ae49,_0x347968,_0x108cce),_0x108cce;},__metadata=this&&this[a11_0x3c510f(0x1c9)]||function(_0x5ace1e,_0x1b56d1){const _0x17d624=a11_0x3c510f;if(typeof Reflect===_0x17d624(0x1e6)&&typeof Reflect['metadata']===_0x17d624(0x1e9))return Reflect[_0x17d624(0x1db)](_0x5ace1e,_0x1b56d1);};Object[a11_0x3c510f(0x1cb)](exports,'__esModule',{'value':!![]}),exports[a11_0x3c510f(0x1ae)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x3c510f(0x1b3)),koasend=require('koa-send'),decorator_1=require(a11_0x3c510f(0x1c2));let ExcelService=class ExcelService{async[a11_0x3c510f(0x1ca)](_0x58ff49,_0x385efd,_0x985f3e=[0x0]){const _0x21206f=a11_0x3c510f;var _0x176096,_0x4c95c5;const _0x1e4557=new exceljs[(_0x21206f(0x1e7))](),_0x3a9922=[];let _0x28f0a1=_0x58ff49[_0x21206f(0x1c5)](/(\\|\/)/g,'/')[_0x21206f(0x1c5)](/\/{2,}/g,'/');!(_0x28f0a1===null||_0x28f0a1===void 0x0?void 0x0:_0x28f0a1['startsWith']('/'))&&(_0x28f0a1=this['app'][_0x21206f(0x1d8)]()+'/'+_0x28f0a1);try{await _0x1e4557[_0x21206f(0x1d1)][_0x21206f(0x1b5)](_0x28f0a1);}catch(_0x4bf4fa){return console[_0x21206f(0x1d9)]('Api\x20Excel\x20Error:\x20'+_0x28f0a1+_0x21206f(0x1ce)),_0x3a9922;}for(const _0x31ed92 of _0x985f3e){const _0x564281=lodash['isNumber'](_0x31ed92)?((_0x176096=_0x1e4557[_0x21206f(0x1c0)])===null||_0x176096===void 0x0?void 0x0:_0x176096[_0x31ed92])||undefined:_0x1e4557['getWorksheet'](_0x31ed92);if(_0x564281){var _0xe8461b=0x1;const _0x1ae942=_0x564281[_0x21206f(0x1ac)](0x1),_0x329823=await new Promise(_0x54a582=>{const _0x30cd85=_0x21206f,_0x37871c={};_0x1ae942[_0x30cd85(0x1d4)]((_0x1aac0a,_0xb27a24)=>{const _0x3afe0b=_0x30cd85;for(const _0x5d727f of _0x385efd){if(_0x1aac0a[_0x3afe0b(0x1ea)]==_0x5d727f[_0x3afe0b(0x1b2)])_0xe8461b=0x2,_0x37871c[_0x5d727f['key']]={'header':_0x1aac0a[_0x3afe0b(0x1b8)],'handler':_0x5d727f[_0x3afe0b(0x1e4)]};else{if(!_0x37871c[_0x5d727f['key']])try{const _0x3ac071=_0x1ae942[_0x3afe0b(0x1cf)](_0x5d727f[_0x3afe0b(0x1b2)]);_0x3ac071&&(_0x37871c[_0x5d727f[_0x3afe0b(0x1ab)]]={'header':_0x3ac071[_0x3afe0b(0x1b8)],'handler':_0x5d727f[_0x3afe0b(0x1e4)]});}catch{}}}_0x1ae942[_0x3afe0b(0x1eb)]==_0xb27a24&&_0x54a582(_0x37871c);});});for(const _0x5bb1c5 of _0x564281[_0x21206f(0x1e8)](_0xe8461b,_0x564281[_0x21206f(0x1af)])){const _0x80a57b={};for(const _0x14da9e in _0x329823){_0x329823[_0x14da9e][_0x21206f(0x1b2)]&&(typeof((_0x4c95c5=_0x329823[_0x14da9e])===null||_0x4c95c5===void 0x0?void 0x0:_0x4c95c5[_0x21206f(0x1e4)])==_0x21206f(0x1e9)?_0x80a57b[_0x14da9e]=_0x329823[_0x14da9e][_0x21206f(0x1e4)](_0x5bb1c5[_0x21206f(0x1cf)](lodash[_0x21206f(0x1c4)](''+_0x329823[_0x14da9e][_0x21206f(0x1b2)],'\x20'))[_0x21206f(0x1dc)]()):_0x80a57b[_0x14da9e]=_0x5bb1c5['getCell'](_0x329823[_0x14da9e]['header'])[_0x21206f(0x1dc)]());}Object[_0x21206f(0x1c3)](_0x80a57b)[_0x21206f(0x1b1)]>0x0&&_0x3a9922['push'](_0x80a57b);}}}return _0x3a9922;}async['export'](_0x303bd4,_0x424881,_0x1d302d,_0x4bf4fe=a11_0x3c510f(0x1b9)){const _0x138e6e=a11_0x3c510f;var _0x2f3052,_0x4aef82;const _0x22b18a=new exceljs[(_0x138e6e(0x1e7))](),_0x3af351={},_0x47f6e6=[],_0x3702e2=_0x22b18a[_0x138e6e(0x1d2)](_0x138e6e(0x1d0),{'views':[{'state':_0x138e6e(0x1e3),'xSplit':0x1}]});for(const _0x1b0447 in _0x424881){_0x3af351[_0x424881[_0x1b0447][_0x138e6e(0x1ab)]]=_0x424881[_0x1b0447][_0x138e6e(0x1b2)],_0x47f6e6[_0x138e6e(0x1e2)]({'header':_0x424881[_0x1b0447][_0x138e6e(0x1b2)],'key':(_0x2f3052=_0x424881[_0x1b0447])===null||_0x2f3052===void 0x0?void 0x0:_0x2f3052['key'][_0x138e6e(0x1c5)](/\./g,'_')});}_0x3702e2[_0x138e6e(0x1e0)]=_0x47f6e6;for(const _0x46103a of _0x1d302d){const _0x42b38a={};for(const _0x4764b0 in _0x424881){typeof((_0x4aef82=_0x424881[_0x4764b0])===null||_0x4aef82===void 0x0?void 0x0:_0x4aef82[_0x138e6e(0x1e4)])==_0x138e6e(0x1e9)?_0x42b38a[_0x424881[_0x4764b0][_0x138e6e(0x1ab)][_0x138e6e(0x1c5)](/\./g,'_')]=await _0x424881[_0x4764b0]['handler'](_0x46103a):_0x42b38a[_0x424881[_0x4764b0][_0x138e6e(0x1ab)]['replace'](/\./g,'_')]=lodash[_0x138e6e(0x1df)](_0x46103a,_0x424881[_0x4764b0][_0x138e6e(0x1ab)],'');}_0x3702e2['addRow'](_0x42b38a);}let _0x1f0af0='';const _0x205ec8=_0x303bd4+'-'+lodash[_0x138e6e(0x1b7)](0x2710,0x1869f)+_0x138e6e(0x1e1);if(_0x4bf4fe&&_0x4bf4fe['startsWith']('/'))_0x1f0af0=_0x4bf4fe+'/'+_0x205ec8;else _0x4bf4fe&&!_0x4bf4fe[_0x138e6e(0x1c6)]('/')&&!_0x4bf4fe[_0x138e6e(0x1c6)]('\x5c')?_0x1f0af0=this[_0x138e6e(0x1bb)][_0x138e6e(0x1d8)]()+'/'+_0x4bf4fe+'/'+_0x205ec8:_0x1f0af0=this[_0x138e6e(0x1bb)][_0x138e6e(0x1d8)]()+_0x138e6e(0x1bc);return(_0x1f0af0[_0x138e6e(0x1bd)]('/')||_0x1f0af0['endsWith']('\x5c'))&&(_0x1f0af0=_0x1f0af0['substring'](0x0,_0x1f0af0[_0x138e6e(0x1b1)]-0x1)),_0x1f0af0=_0x1f0af0[_0x138e6e(0x1c5)](/(\\|\/)/g,'/')[_0x138e6e(0x1c5)](/\/{2,}/g,'/'),!fs['existsSync'](_0x1f0af0)&&fs[_0x138e6e(0x1c1)](_0x1f0af0,{'recursive':!![]}),await _0x22b18a[_0x138e6e(0x1d1)][_0x138e6e(0x1ba)]((_0x1f0af0+'/'+_0x205ec8)[_0x138e6e(0x1c5)](/(\\|\/)/g,'/')[_0x138e6e(0x1c5)](/\/{2,}/g,'/')),{'filename':_0x205ec8,'filepath':_0x1f0af0};}async[a11_0x3c510f(0x1b4)](_0x4edb53,_0x599f8e){await koasend(_0x4edb53,'/public/xlsx/'+_0x599f8e);}};__decorate([(0x0,decorator_1[a11_0x3c510f(0x1c7)])(),__metadata('design:type',Object)],ExcelService[a11_0x3c510f(0x1b6)],a11_0x3c510f(0x1bb),void 0x0),ExcelService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a11_0x3c510f(0x1cd)])(decorator_1[a11_0x3c510f(0x1b0)]['Singleton'])],ExcelService),exports[a11_0x3c510f(0x1ae)]=ExcelService;
@@ -1 +1 @@
1
- 'use strict';var a12_0x166438=a12_0x1e0c;(function(_0x14a6c9,_0x4f9424){var _0x510df=a12_0x1e0c,_0x2e08e8=_0x14a6c9();while(!![]){try{var _0x3f7817=parseInt(_0x510df(0x99))/0x1+-parseInt(_0x510df(0x9f))/0x2+parseInt(_0x510df(0x9a))/0x3+parseInt(_0x510df(0xa1))/0x4+parseInt(_0x510df(0x96))/0x5*(-parseInt(_0x510df(0x9b))/0x6)+-parseInt(_0x510df(0xa0))/0x7*(parseInt(_0x510df(0x97))/0x8)+-parseInt(_0x510df(0x95))/0x9*(-parseInt(_0x510df(0x9e))/0xa);if(_0x3f7817===_0x4f9424)break;else _0x2e08e8['push'](_0x2e08e8['shift']());}catch(_0x4203ba){_0x2e08e8['push'](_0x2e08e8['shift']());}}}(a12_0x1a84,0x9d008));function a12_0x1a84(){var _0x1a9fa7=['ACTION_ROUTE_KEY','__esModule','10ZXfPGR','2431216maqWbV','7356881FtczUE','1950720RFlHLT','anncic-api:action:route','14540598RCeeWo','175UQszsZ','8PMXaXG','ACTION_KEY','384362guIsae','2679321bnJLKJ','80760fjJpZp'];a12_0x1a84=function(){return _0x1a9fa7;};return a12_0x1a84();}function a12_0x1e0c(_0x281f1c,_0x179513){var _0x1a844a=a12_0x1a84();return a12_0x1e0c=function(_0x1e0ceb,_0x4b6770){_0x1e0ceb=_0x1e0ceb-0x95;var _0x493e57=_0x1a844a[_0x1e0ceb];return _0x493e57;},a12_0x1e0c(_0x281f1c,_0x179513);}Object['defineProperty'](exports,a12_0x166438(0x9d),{'value':!![]}),exports[a12_0x166438(0x9c)]=exports[a12_0x166438(0x98)]=void 0x0,exports[a12_0x166438(0x98)]='anncic-api:action',exports[a12_0x166438(0x9c)]=a12_0x166438(0xa2);
1
+ 'use strict';var a12_0x4ea054=a12_0x4cf3;function a12_0x4cf3(_0x239841,_0x5c99a7){var _0x16f7a5=a12_0x16f7();return a12_0x4cf3=function(_0x4cf3c2,_0x76cce6){_0x4cf3c2=_0x4cf3c2-0x194;var _0x9bae9=_0x16f7a5[_0x4cf3c2];return _0x9bae9;},a12_0x4cf3(_0x239841,_0x5c99a7);}(function(_0x2c567f,_0x4c679e){var _0x58b269=a12_0x4cf3,_0xba35f=_0x2c567f();while(!![]){try{var _0x246f54=parseInt(_0x58b269(0x194))/0x1*(-parseInt(_0x58b269(0x196))/0x2)+parseInt(_0x58b269(0x197))/0x3*(parseInt(_0x58b269(0x19c))/0x4)+-parseInt(_0x58b269(0x1a0))/0x5+-parseInt(_0x58b269(0x19d))/0x6*(-parseInt(_0x58b269(0x1a1))/0x7)+-parseInt(_0x58b269(0x1a2))/0x8*(parseInt(_0x58b269(0x195))/0x9)+-parseInt(_0x58b269(0x199))/0xa+-parseInt(_0x58b269(0x19b))/0xb*(-parseInt(_0x58b269(0x1a3))/0xc);if(_0x246f54===_0x4c679e)break;else _0xba35f['push'](_0xba35f['shift']());}catch(_0x15a208){_0xba35f['push'](_0xba35f['shift']());}}}(a12_0x16f7,0x40cd5));Object[a12_0x4ea054(0x19a)](exports,a12_0x4ea054(0x198),{'value':!![]}),exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a12_0x4ea054(0x19e)]=a12_0x4ea054(0x19f);function a12_0x16f7(){var _0x52dfa7=['11HsTclR','1754488VFcKRi','12EUWYMy','ACTION_ROUTE_KEY','anncic-api:action:route','22395SoNBSs','120169qQrhFr','982456QJDYlr','7041828ATQOUN','25ymukgv','9iIrfBo','40750tlJFBs','3WZycKl','__esModule','1576850mlGYLj','defineProperty'];a12_0x16f7=function(){return _0x52dfa7;};return a12_0x16f7();}
@@ -1 +1 @@
1
- 'use strict';var a13_0x29862c=a13_0x55be;(function(_0x5c357f,_0x5956b7){var _0x49cc5d=a13_0x55be,_0x22ab06=_0x5c357f();while(!![]){try{var _0x3e0830=parseInt(_0x49cc5d(0x1da))/0x1+parseInt(_0x49cc5d(0x1d5))/0x2*(parseInt(_0x49cc5d(0x1d6))/0x3)+parseInt(_0x49cc5d(0x1f1))/0x4+parseInt(_0x49cc5d(0x1e2))/0x5+-parseInt(_0x49cc5d(0x1de))/0x6*(-parseInt(_0x49cc5d(0x1ed))/0x7)+parseInt(_0x49cc5d(0x1d4))/0x8+-parseInt(_0x49cc5d(0x1e9))/0x9*(parseInt(_0x49cc5d(0x1dc))/0xa);if(_0x3e0830===_0x5956b7)break;else _0x22ab06['push'](_0x22ab06['shift']());}catch(_0x312edb){_0x22ab06['push'](_0x22ab06['shift']());}}}(a13_0x3f9a,0xdf721));var __decorate=this&&this[a13_0x29862c(0x1eb)]||function(_0x2a22ff,_0x34cc96,_0x16363b,_0x590b15){var _0x5f5756=a13_0x29862c,_0x120966=arguments['length'],_0x6f2474=_0x120966<0x3?_0x34cc96:_0x590b15===null?_0x590b15=Object[_0x5f5756(0x1e4)](_0x34cc96,_0x16363b):_0x590b15,_0x1b7fd1;if(typeof Reflect==='object'&&typeof Reflect[_0x5f5756(0x1ea)]===_0x5f5756(0x1cc))_0x6f2474=Reflect[_0x5f5756(0x1ea)](_0x2a22ff,_0x34cc96,_0x16363b,_0x590b15);else{for(var _0x38b5cd=_0x2a22ff[_0x5f5756(0x1e7)]-0x1;_0x38b5cd>=0x0;_0x38b5cd--)if(_0x1b7fd1=_0x2a22ff[_0x38b5cd])_0x6f2474=(_0x120966<0x3?_0x1b7fd1(_0x6f2474):_0x120966>0x3?_0x1b7fd1(_0x34cc96,_0x16363b,_0x6f2474):_0x1b7fd1(_0x34cc96,_0x16363b))||_0x6f2474;}return _0x120966>0x3&&_0x6f2474&&Object[_0x5f5756(0x1d9)](_0x34cc96,_0x16363b,_0x6f2474),_0x6f2474;},__metadata=this&&this[a13_0x29862c(0x1e3)]||function(_0x1d73bd,_0x4c5e23){var _0x3e4d63=a13_0x29862c;if(typeof Reflect===_0x3e4d63(0x1e8)&&typeof Reflect[_0x3e4d63(0x1cd)]===_0x3e4d63(0x1cc))return Reflect[_0x3e4d63(0x1cd)](_0x1d73bd,_0x4c5e23);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a13_0x29862c(0x1df));class PageDTO{}function a13_0x55be(_0x4f4531,_0x2a6a2d){var _0x3f9a5c=a13_0x3f9a();return a13_0x55be=function(_0x55be0b,_0x5563e1){_0x55be0b=_0x55be0b-0x1cb;var _0x3f5fb5=_0x3f9a5c[_0x55be0b];return _0x3f5fb5;},a13_0x55be(_0x4f4531,_0x2a6a2d);}function a13_0x3f9a(){var _0x472fba=['metadata','number','min','PageDTO','_size','1:是;0:否','_page','10398184qnxCrZ','3544bylsmx','75gZsMKg','第一页为1,第二页为2','design:type','defineProperty','368956VgdjQd','integer','43671770qoltEi','Rule','180NzkbNw','@anncic-api/validator','是否倒序','prototype','1445165RubnqT','__metadata','getOwnPropertyDescriptor','valid','trim','length','object','9TVHhvC','decorate','__decorate','RuleType','380317pinmYX','_isreverse','_order','分页数量','6601672YkjZjq','排序方式','function'];a13_0x3f9a=function(){return _0x472fba;};return a13_0x3f9a();}__decorate([(0x0,validator_1['Rule'])('分页',validator_1['RuleType'][a13_0x29862c(0x1ce)]()['integer']()[a13_0x29862c(0x1cf)](0x1),a13_0x29862c(0x1d7)),__metadata(a13_0x29862c(0x1d8),Number)],PageDTO[a13_0x29862c(0x1e1)],a13_0x29862c(0x1d3),void 0x0),__decorate([(0x0,validator_1[a13_0x29862c(0x1dd)])(a13_0x29862c(0x1f0),validator_1['RuleType'][a13_0x29862c(0x1ce)]()[a13_0x29862c(0x1db)]()[a13_0x29862c(0x1cf)](0x1)),__metadata(a13_0x29862c(0x1d8),Number)],PageDTO['prototype'],a13_0x29862c(0x1d1),void 0x0),__decorate([(0x0,validator_1['Rule'])(a13_0x29862c(0x1cb),validator_1['RuleType']['string']()[a13_0x29862c(0x1e6)]()),__metadata('design:type',String)],PageDTO['prototype'],a13_0x29862c(0x1ef),void 0x0),__decorate([(0x0,validator_1[a13_0x29862c(0x1dd)])(a13_0x29862c(0x1e0),validator_1[a13_0x29862c(0x1ec)]['number']()[a13_0x29862c(0x1db)]()[a13_0x29862c(0x1e5)](0x0,0x1),a13_0x29862c(0x1d2)),__metadata(a13_0x29862c(0x1d8),Number)],PageDTO[a13_0x29862c(0x1e1)],a13_0x29862c(0x1ee),void 0x0),exports[a13_0x29862c(0x1d0)]=PageDTO;
1
+ 'use strict';var a13_0x23ae82=a13_0x4a36;(function(_0x8404fc,_0x4ec5df){var _0x4c2e16=a13_0x4a36,_0x9e04ab=_0x8404fc();while(!![]){try{var _0x31d335=parseInt(_0x4c2e16(0xa2))/0x1+parseInt(_0x4c2e16(0x9e))/0x2*(-parseInt(_0x4c2e16(0x91))/0x3)+parseInt(_0x4c2e16(0xa6))/0x4*(parseInt(_0x4c2e16(0xac))/0x5)+-parseInt(_0x4c2e16(0xb3))/0x6*(-parseInt(_0x4c2e16(0x93))/0x7)+parseInt(_0x4c2e16(0x9c))/0x8+-parseInt(_0x4c2e16(0x98))/0x9*(parseInt(_0x4c2e16(0xa7))/0xa)+parseInt(_0x4c2e16(0xa8))/0xb*(-parseInt(_0x4c2e16(0xa3))/0xc);if(_0x31d335===_0x4ec5df)break;else _0x9e04ab['push'](_0x9e04ab['shift']());}catch(_0x1d9ba1){_0x9e04ab['push'](_0x9e04ab['shift']());}}}(a13_0x3fcb,0x4f1fd));function a13_0x4a36(_0x350e77,_0x1d6b53){var _0x3fcb37=a13_0x3fcb();return a13_0x4a36=function(_0x4a36da,_0x267302){_0x4a36da=_0x4a36da-0x91;var _0x2e0f30=_0x3fcb37[_0x4a36da];return _0x2e0f30;},a13_0x4a36(_0x350e77,_0x1d6b53);}var __decorate=this&&this[a13_0x23ae82(0xb2)]||function(_0x84d0c1,_0x1369ba,_0xc61d0b,_0x547c10){var _0x5b6295=a13_0x23ae82,_0x53f2f5=arguments['length'],_0x296c6b=_0x53f2f5<0x3?_0x1369ba:_0x547c10===null?_0x547c10=Object[_0x5b6295(0x99)](_0x1369ba,_0xc61d0b):_0x547c10,_0x530c57;if(typeof Reflect===_0x5b6295(0xa4)&&typeof Reflect[_0x5b6295(0xaa)]===_0x5b6295(0x92))_0x296c6b=Reflect[_0x5b6295(0xaa)](_0x84d0c1,_0x1369ba,_0xc61d0b,_0x547c10);else{for(var _0xfbb080=_0x84d0c1[_0x5b6295(0x95)]-0x1;_0xfbb080>=0x0;_0xfbb080--)if(_0x530c57=_0x84d0c1[_0xfbb080])_0x296c6b=(_0x53f2f5<0x3?_0x530c57(_0x296c6b):_0x53f2f5>0x3?_0x530c57(_0x1369ba,_0xc61d0b,_0x296c6b):_0x530c57(_0x1369ba,_0xc61d0b))||_0x296c6b;}return _0x53f2f5>0x3&&_0x296c6b&&Object['defineProperty'](_0x1369ba,_0xc61d0b,_0x296c6b),_0x296c6b;},__metadata=this&&this['__metadata']||function(_0xeaab92,_0x380a4f){var _0x2ce220=a13_0x23ae82;if(typeof Reflect===_0x2ce220(0xa4)&&typeof Reflect[_0x2ce220(0xad)]==='function')return Reflect[_0x2ce220(0xad)](_0xeaab92,_0x380a4f);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a13_0x23ae82(0x9a));function a13_0x3fcb(){var _0x842d23=['decorate','design:type','30PlIzrG','metadata','prototype','string','_page','第一页为1,第二页为2','__decorate','270xATphn','84030YNuyOp','function','55545bMRenh','PageDTO','length','_order','min','54BIkyKa','getOwnPropertyDescriptor','@anncic-api/validator','valid','3143440fzBlZu','RuleType','20hbbCkj','_isreverse','排序方式','integer','587483FXBSNL','2292GTCOjW','object','Rule','67356SdJPDw','320630uBUYLP','36971iYlRhG','number'];a13_0x3fcb=function(){return _0x842d23;};return a13_0x3fcb();}class PageDTO{}__decorate([(0x0,validator_1[a13_0x23ae82(0xa5)])('分页',validator_1[a13_0x23ae82(0x9d)]['number']()[a13_0x23ae82(0xa1)]()[a13_0x23ae82(0x97)](0x1),a13_0x23ae82(0xb1)),__metadata('design:type',Number)],PageDTO[a13_0x23ae82(0xae)],a13_0x23ae82(0xb0),void 0x0),__decorate([(0x0,validator_1[a13_0x23ae82(0xa5)])('分页数量',validator_1[a13_0x23ae82(0x9d)][a13_0x23ae82(0xa9)]()[a13_0x23ae82(0xa1)]()[a13_0x23ae82(0x97)](0x1)),__metadata(a13_0x23ae82(0xab),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a13_0x23ae82(0xa5)])(a13_0x23ae82(0xa0),validator_1[a13_0x23ae82(0x9d)][a13_0x23ae82(0xaf)]()['trim']()),__metadata('design:type',String)],PageDTO[a13_0x23ae82(0xae)],a13_0x23ae82(0x96),void 0x0),__decorate([(0x0,validator_1[a13_0x23ae82(0xa5)])('是否倒序',validator_1[a13_0x23ae82(0x9d)][a13_0x23ae82(0xa9)]()[a13_0x23ae82(0xa1)]()[a13_0x23ae82(0x9b)](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO[a13_0x23ae82(0xae)],a13_0x23ae82(0x9f),void 0x0),exports[a13_0x23ae82(0x94)]=PageDTO;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anncic-api",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "files": [
@@ -17,11 +17,11 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/cache": "^1.0.15",
21
- "@anncic-api/core": "^1.0.15",
22
- "@anncic-api/event": "^1.0.15",
23
- "@anncic-api/typeorm": "^1.0.15",
24
- "@anncic-api/validator": "^1.0.15",
20
+ "@anncic-api/cache": "^1.0.16",
21
+ "@anncic-api/core": "^1.0.16",
22
+ "@anncic-api/event": "^1.0.16",
23
+ "@anncic-api/typeorm": "^1.0.16",
24
+ "@anncic-api/validator": "^1.0.16",
25
25
  "@midwayjs/cross-domain": "^3.4.12",
26
26
  "@midwayjs/i18n": "^3.4.12",
27
27
  "@midwayjs/koa": "^3.4.12",
@@ -29,7 +29,7 @@
29
29
  "@midwayjs/task": "^3.4.12",
30
30
  "@midwayjs/upload": "^3.4.12",
31
31
  "@types/bull": "^3.15.9",
32
- "anncic-apihelper": "^1.0.15",
32
+ "anncic-apihelper": "^1.0.16",
33
33
  "exceljs": "^4.3.0",
34
34
  "koa-bodyparser": "^4.3.0",
35
35
  "koa-send": "^5.0.1",
@@ -41,5 +41,5 @@
41
41
  "javascript-obfuscator": "2.19.0",
42
42
  "typescript": "^4.7.4"
43
43
  },
44
- "gitHead": "a13c29280dd3c6b411b873882e30df72a5e85c51"
44
+ "gitHead": "0ff6324a04283726d1e958f88999e4bbac666af5"
45
45
  }