anncic-api 1.1.33 → 1.1.35
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.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.d.ts +5 -5
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x4c0391=a0_0x34b0;(function(_0x55282d,_0x844d49){var _0x32c8f7=a0_0x34b0,_0x4954c7=_0x55282d();while(!![]){try{var _0x291d1c=parseInt(_0x32c8f7(0xe1))/0x1*(parseInt(_0x32c8f7(0xea))/0x2)+-parseInt(_0x32c8f7(0xe6))/0x3*(parseInt(_0x32c8f7(0xda))/0x4)+-parseInt(_0x32c8f7(0xd6))/0x5*(-parseInt(_0x32c8f7(0xde))/0x6)+-parseInt(_0x32c8f7(0xe2))/0x7*(parseInt(_0x32c8f7(0xdb))/0x8)+-parseInt(_0x32c8f7(0xe9))/0x9*(parseInt(_0x32c8f7(0xd7))/0xa)+-parseInt(_0x32c8f7(0xe5))/0xb*(-parseInt(_0x32c8f7(0xd3))/0xc)+parseInt(_0x32c8f7(0xd8))/0xd*(-parseInt(_0x32c8f7(0xe8))/0xe);if(_0x291d1c===_0x844d49)break;else _0x4954c7['push'](_0x4954c7['shift']());}catch(_0x30707e){_0x4954c7['push'](_0x4954c7['shift']());}}}(a0_0x54e4,0x699c9));function a0_0x34b0(_0x177359,_0x53e069){var _0x54e4ac=a0_0x54e4();return a0_0x34b0=function(_0x34b024,_0x1f4873){_0x34b024=_0x34b024-0xd2;var _0x4a7b5a=_0x54e4ac[_0x34b024];return _0x4a7b5a;},a0_0x34b0(_0x177359,_0x53e069);}function a0_0x54e4(){var _0xc0cfce=['3322SVrNsJ','24GzjLAE','default','10262fRpXfq','1646874dMglpS','1510CExfzG','zhiulanuiy7892387985hnoi','defineProperty','33240OgafFU','appDir','name','4710ZBOzam','10XTkNmY','91SJSBpd','text','364508DMgrQb','1804648PJedsV','/runtime/.upload','xml','3912oOMEgH','20mb','form','165UjTSEI','7YWVkUe','dhauo1234420123gg3234901','__esModule'];a0_0x54e4=function(){return _0xc0cfce;};return a0_0x54e4();}Object[a0_0x4c0391(0xd2)](exports,a0_0x4c0391(0xe4),{'value':!![]}),exports[a0_0x4c0391(0xe7)]=_0x3d8b52=>{var _0x569ceb=a0_0x4c0391;return{'apitest':!![],'keys':_0x3d8b52[_0x569ceb(0xd5)],'anncicapi':{'timeout':0x1388,'password':_0x569ceb(0xeb),'devices':{'DEFAULT':{'secret':_0x569ceb(0xe3),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':['json',_0x569ceb(0xe0),_0x569ceb(0xd9),_0x569ceb(0xdd)],'formLimit':_0x569ceb(0xdf),'jsonLimit':_0x569ceb(0xdf),'textLimit':_0x569ceb(0xdf),'xmlLimit':_0x569ceb(0xdf)},'upload':{'tmpdir':_0x3d8b52[_0x569ceb(0xd4)]+_0x569ceb(0xdc),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x19b7ab=a1_0xca25;(function(_0x3e22f2,_0x41ded8){var _0xb65ce9=a1_0xca25,_0x3b6591=_0x3e22f2();while(!![]){try{var _0x38651e=-parseInt(_0xb65ce9(0x181))/0x1+parseInt(_0xb65ce9(0x188))/0x2+-parseInt(_0xb65ce9(0x18c))/0x3*(parseInt(_0xb65ce9(0x185))/0x4)+parseInt(_0xb65ce9(0x18a))/0x5+parseInt(_0xb65ce9(0x189))/0x6+parseInt(_0xb65ce9(0x18d))/0x7*(-parseInt(_0xb65ce9(0x184))/0x8)+-parseInt(_0xb65ce9(0x186))/0x9*(-parseInt(_0xb65ce9(0x183))/0xa);if(_0x38651e===_0x41ded8)break;else _0x3b6591['push'](_0x3b6591['shift']());}catch(_0x2e6665){_0x3b6591['push'](_0x3b6591['shift']());}}}(a1_0x3515,0x6d758));function a1_0x3515(){var _0x24d51d=['477944Ezpgon','3377910TcdEvK','815745OFhWKk','default','6kJURUo','532406CbNNzs','315010YJEXmy','defineProperty','515230slVLYu','16JLfDTm','305364UxAIhg','18zQYpQz','__esModule'];a1_0x3515=function(){return _0x24d51d;};return a1_0x3515();}function a1_0xca25(_0x3ec7ef,_0x36de66){var _0x351599=a1_0x3515();return a1_0xca25=function(_0xca2500,_0x7b0d02){_0xca2500=_0xca2500-0x181;var _0x320320=_0x351599[_0xca2500];return _0x320320;},a1_0xca25(_0x3ec7ef,_0x36de66);}Object[a1_0x19b7ab(0x182)](exports,a1_0x19b7ab(0x187),{'value':!![]}),exports[a1_0x19b7ab(0x18b)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x45cd28=a2_0x9b8f;(function(_0x5b094c,_0x59670e){const _0x392493=a2_0x9b8f,_0x1193a7=_0x5b094c();while(!![]){try{const _0xbcdaf9=-parseInt(_0x392493(0x120))/0x1*(parseInt(_0x392493(0x143))/0x2)+-parseInt(_0x392493(0x150))/0x3*(parseInt(_0x392493(0x127))/0x4)+-parseInt(_0x392493(0x122))/0x5+-parseInt(_0x392493(0x165))/0x6+-parseInt(_0x392493(0x140))/0x7+-parseInt(_0x392493(0x162))/0x8+parseInt(_0x392493(0x137))/0x9*(parseInt(_0x392493(0x141))/0xa);if(_0xbcdaf9===_0x59670e)break;else _0x1193a7['push'](_0x1193a7['shift']());}catch(_0x3ea04b){_0x1193a7['push'](_0x1193a7['shift']());}}}(a2_0x1307,0x8f837));var __decorate=this&&this[a2_0x45cd28(0x134)]||function(_0x3713ae,_0xb40945,_0x4bbc4b,_0x16047f){const _0x1ee8f3=a2_0x45cd28;var _0x16ed39=arguments['length'],_0x1c49c0=_0x16ed39<0x3?_0xb40945:_0x16047f===null?_0x16047f=Object['getOwnPropertyDescriptor'](_0xb40945,_0x4bbc4b):_0x16047f,_0x226b1b;if(typeof Reflect===_0x1ee8f3(0x124)&&typeof Reflect[_0x1ee8f3(0x155)]==='function')_0x1c49c0=Reflect['decorate'](_0x3713ae,_0xb40945,_0x4bbc4b,_0x16047f);else{for(var _0x519f2d=_0x3713ae[_0x1ee8f3(0x151)]-0x1;_0x519f2d>=0x0;_0x519f2d--)if(_0x226b1b=_0x3713ae[_0x519f2d])_0x1c49c0=(_0x16ed39<0x3?_0x226b1b(_0x1c49c0):_0x16ed39>0x3?_0x226b1b(_0xb40945,_0x4bbc4b,_0x1c49c0):_0x226b1b(_0xb40945,_0x4bbc4b))||_0x1c49c0;}return _0x16ed39>0x3&&_0x1c49c0&&Object[_0x1ee8f3(0x125)](_0xb40945,_0x4bbc4b,_0x1c49c0),_0x1c49c0;},__metadata=this&&this[a2_0x45cd28(0x161)]||function(_0x5e3bfb,_0x626d81){const _0x5a2de2=a2_0x45cd28;if(typeof Reflect===_0x5a2de2(0x124)&&typeof Reflect[_0x5a2de2(0x121)]==='function')return Reflect[_0x5a2de2(0x121)](_0x5e3bfb,_0x626d81);};Object['defineProperty'](exports,a2_0x45cd28(0x11c),{'value':!![]}),exports[a2_0x45cd28(0x14f)]=void 0x0;const decorator_1=require(a2_0x45cd28(0x15c)),core_1=require(a2_0x45cd28(0x13d)),ApiError_1=require(a2_0x45cd28(0x166)),ApiService_1=require(a2_0x45cd28(0x11e)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x45cd28(0x152)),i18n=require(a2_0x45cd28(0x160)),task=require(a2_0x45cd28(0x128)),upload=require(a2_0x45cd28(0x159)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x45cd28(0x129)),ConfigDefault=require(a2_0x45cd28(0x12f)),ConfigProduction=require(a2_0x45cd28(0x15a)),anncic=require(a2_0x45cd28(0x167)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x45cd28(0x176)),anncicTypeorm=require(a2_0x45cd28(0x13f)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x45cd28(0x16b));function a2_0x9b8f(_0x1466a,_0x42d4fc){const _0x130764=a2_0x1307();return a2_0x9b8f=function(_0x9b8fee,_0x2b97fe){_0x9b8fee=_0x9b8fee-0x11b;let _0x95c6ff=_0x130764[_0x9b8fee];return _0x95c6ff;},a2_0x9b8f(_0x1466a,_0x42d4fc);}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x3e0ec2=a2_0x45cd28;await this['filterConfig'](),await this[_0x3e0ec2(0x15d)](),await this[_0x3e0ec2(0x156)](),await this['hanlderApplications']();}async[a2_0x45cd28(0x15d)](){}async[a2_0x45cd28(0x156)](){const _0x211a07=a2_0x45cd28,_0x430e28=this['config'][_0x211a07(0x149)]();this[_0x211a07(0x168)][_0x211a07(0x11f)](action_1['ACTION_ROUTE_KEY'],_0x1db559=>{const _0x24a244=_0x211a07,_0x1157ac=_0x1db559[_0x24a244(0x121)];return{'before':async _0x23cc3a=>{const _0x2fd470=_0x24a244;var _0x2dc8bc,_0x3fd6d7;const _0x5d3979=(_0x2dc8bc=_0x23cc3a===null||_0x23cc3a===void 0x0?void 0x0:_0x23cc3a['target'])===null||_0x2dc8bc===void 0x0?void 0x0:_0x2dc8bc[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x5d3979&&(_0x1157ac===null||_0x1157ac===void 0x0?void 0x0:_0x1157ac[_0x2fd470(0x130)])){if(!this[_0x2fd470(0x154)][_0x2fd470(0x170)]((_0x3fd6d7=_0x5d3979===null||_0x5d3979===void 0x0?void 0x0:_0x5d3979['request'])===null||_0x3fd6d7===void 0x0?void 0x0:_0x3fd6d7[_0x2fd470(0x163)]))throw new AnnError(ApiError_1[_0x2fd470(0x171)]['HEADERS_SIGNATURE']);}},'around':async _0x3869c7=>{const _0x30d81a=_0x24a244;var _0x17454e,_0x40f7fd,_0x5852e8,_0x5b6c4e,_0x48cc32;const _0x5b9ade=(_0x17454e=_0x3869c7===null||_0x3869c7===void 0x0?void 0x0:_0x3869c7[_0x30d81a(0x14d)])===null||_0x17454e===void 0x0?void 0x0:_0x17454e[core_1[_0x30d81a(0x164)]];if(_0x5b9ade&&(_0x1157ac===null||_0x1157ac===void 0x0?void 0x0:_0x1157ac[_0x30d81a(0x130)])){if(((_0x40f7fd=_0x5b9ade[_0x30d81a(0x163)])===null||_0x40f7fd===void 0x0?void 0x0:_0x40f7fd[_0x30d81a(0x142)])&&((_0x48cc32=(_0x5b6c4e=(_0x5852e8=_0x430e28===null||_0x430e28===void 0x0?void 0x0:_0x430e28['anncicapi'])===null||_0x5852e8===void 0x0?void 0x0:_0x5852e8[_0x30d81a(0x132)])===null||_0x5b6c4e===void 0x0?void 0x0:_0x5b6c4e[_0x5b9ade[_0x30d81a(0x163)][_0x30d81a(0x142)]])===null||_0x48cc32===void 0x0?void 0x0:_0x48cc32[_0x30d81a(0x148)])){const _0x5e1aca=Array[_0x30d81a(0x133)](_0x430e28[_0x30d81a(0x14c)][_0x30d81a(0x132)][_0x5b9ade[_0x30d81a(0x163)][_0x30d81a(0x142)]]['intercept'])?_0x430e28[_0x30d81a(0x14c)][_0x30d81a(0x132)][_0x5b9ade[_0x30d81a(0x163)][_0x30d81a(0x142)]][_0x30d81a(0x148)]:[_0x430e28[_0x30d81a(0x14c)][_0x30d81a(0x132)][_0x5b9ade['headers'][_0x30d81a(0x142)]]['intercept']];for(const _0x14d4d1 of _0x5e1aca){if(decorator_1[_0x30d81a(0x16f)][_0x30d81a(0x16d)](_0x14d4d1)||typeof _0x14d4d1==_0x30d81a(0x123)){const _0x4f4a31=await _0x5b9ade[_0x30d81a(0x13e)]['getAsync'](_0x14d4d1);typeof(_0x4f4a31===null||_0x4f4a31===void 0x0?void 0x0:_0x4f4a31[_0x30d81a(0x173)])=='function'&&await _0x4f4a31['handler']((_0x5b9ade===null||_0x5b9ade===void 0x0?void 0x0:_0x5b9ade[_0x30d81a(0x12a)])||undefined,_0x5b9ade,_0x1157ac);}else decorator_1[_0x30d81a(0x16f)][_0x30d81a(0x15f)](_0x14d4d1)&&await _0x14d4d1((_0x5b9ade===null||_0x5b9ade===void 0x0?void 0x0:_0x5b9ade[_0x30d81a(0x12a)])||undefined,_0x5b9ade,_0x1157ac);}}}return await _0x3869c7['proceed'](..._0x3869c7[_0x30d81a(0x15b)]);},'afterThrow':(_0x5dce12,_0x440730)=>{throw _0x440730;}};});}async[a2_0x45cd28(0x12e)](){const _0x316035=a2_0x45cd28;this[_0x316035(0x126)][_0x316035(0x131)]([_0x316035(0x153)])[_0x316035(0x12b)](_0x3809bc=>{const _0x49dcc1=_0x316035;(_0x3809bc===null||_0x3809bc===void 0x0?void 0x0:_0x3809bc[_0x49dcc1(0x16e)])&&Object[_0x49dcc1(0x157)](_0x3809bc[_0x49dcc1(0x16e)],{'ok':{'value':function(_0x595c7d,_0x448326,_0x5ce149=0x0){return{'code':_0x5ce149,'data':_0x595c7d,'extra':_0x448326};}},'err':{'value':function(_0x17e84d,_0x34d7f5,_0x2c448a=0x1){return{'code':_0x2c448a,'extra':_0x34d7f5,'msg':_0x17e84d};}},'input':{'value':function(_0x5816ad,_0x3379ac){const _0x5d49df=_0x49dcc1;var _0x14ae73;const _0x5835f3=lodash[_0x5d49df(0x144)]({},this['request'][_0x5d49df(0x16c)]||this['request'][((_0x14ae73=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x14ae73===void 0x0?void 0x0:_0x14ae73['key'])||_0x5d49df(0x16c)]||{},this[_0x5d49df(0x13b)][_0x5d49df(0x135)]||{});return _0x5816ad?lodash[_0x5d49df(0x14a)](_0x5835f3,_0x5816ad,_0x3379ac):_0x5835f3;}},'when':{'value':async function(_0x28586c,_0x30a93d){const _0x112dc8=_0x49dcc1,_0x196ac3=this['input'](_0x28586c,null);if(!lodash[_0x112dc8(0x11d)](_0x196ac3))return await _0x30a93d(_0x196ac3);}},'only':{'value':function(_0x369a28){const _0x5a4bd2=_0x49dcc1,_0x4880b5={};for(let _0x1d5570=0x0;_0x1d5570<_0x369a28['length'];_0x1d5570++){lodash[_0x5a4bd2(0x133)](_0x369a28[_0x1d5570])&&_0x369a28[_0x1d5570]['length']>0x0&&lodash['isString'](_0x369a28[_0x1d5570][0x0])&&(_0x4880b5[_0x369a28[_0x1d5570][0x0]]=this[_0x5a4bd2(0x12c)](_0x369a28[_0x1d5570][0x0],_0x369a28[_0x1d5570][_0x5a4bd2(0x151)]>0x1?_0x369a28[_0x1d5570][0x1]:null));}return _0x4880b5;}}});});}async['filterConfig'](){const _0x34d88b=a2_0x45cd28;var _0x4b21b3,_0x503ee0,_0xb7f2e2,_0x405552,_0x5d3fc0,_0x502c3e;const _0x4c0907=this[_0x34d88b(0x139)][_0x34d88b(0x149)]();((_0x503ee0=(_0x4b21b3=_0x4c0907===null||_0x4c0907===void 0x0?void 0x0:_0x4c0907['anncicapi'])===null||_0x4b21b3===void 0x0?void 0x0:_0x4b21b3['devices'])===null||_0x503ee0===void 0x0?void 0x0:_0x503ee0['DEFAULT'])&&Object[_0x34d88b(0x13c)](_0x4c0907['anncicapi'][_0x34d88b(0x132)])['length']>0x1&&delete _0x4c0907[_0x34d88b(0x14c)]['devices'][_0x34d88b(0x14b)];if((_0xb7f2e2=_0x4c0907===null||_0x4c0907===void 0x0?void 0x0:_0x4c0907[_0x34d88b(0x146)])===null||_0xb7f2e2===void 0x0?void 0x0:_0xb7f2e2[_0x34d88b(0x169)])for(const _0x1c860c in _0x4c0907[_0x34d88b(0x146)]['dirs']){((_0x405552=_0x4c0907[_0x34d88b(0x146)]['dirs'][_0x1c860c])===null||_0x405552===void 0x0?void 0x0:_0x405552['dir'])&&typeof((_0x5d3fc0=_0x4c0907[_0x34d88b(0x146)]['dirs'][_0x1c860c])===null||_0x5d3fc0===void 0x0?void 0x0:_0x5d3fc0['dir'])==_0x34d88b(0x123)&&!fs['existsSync'](_0x4c0907[_0x34d88b(0x146)][_0x34d88b(0x169)][_0x1c860c]['dir'])&&(fs[_0x34d88b(0x11b)](_0x4c0907[_0x34d88b(0x146)][_0x34d88b(0x169)][_0x1c860c][_0x34d88b(0x13a)],{'recursive':!![]}),console[_0x34d88b(0x158)](_0x34d88b(0x145)+_0x4c0907[_0x34d88b(0x146)]['dirs'][_0x1c860c][_0x34d88b(0x13a)]));}((_0x502c3e=_0x4c0907===null||_0x4c0907===void 0x0?void 0x0:_0x4c0907[_0x34d88b(0x14e)])===null||_0x502c3e===void 0x0?void 0x0:_0x502c3e['tmpdir'])&&!fs['existsSync'](_0x4c0907[_0x34d88b(0x14e)][_0x34d88b(0x136)])&&(fs[_0x34d88b(0x11b)](_0x4c0907[_0x34d88b(0x14e)][_0x34d88b(0x136)],{'recursive':!![]}),console[_0x34d88b(0x158)](_0x34d88b(0x138)+_0x4c0907['upload'][_0x34d88b(0x136)])),this[_0x34d88b(0x139)][_0x34d88b(0x15e)](_0x4c0907);}};function a2_0x1307(){const _0x35a605=['config','dir','request','keys','@midwayjs/core','requestContext','@anncic-api/typeorm','3889942rstqFu','410DClhyV','device','1333844XRrzNl','defaultsDeep','Anncic-api\x20static-file\x20:\x20mkdir\x20','staticFile','Inject','intercept','getConfiguration','get','DEFAULT','anncicapi','target','upload','CustomConfiguration','1552671rRDJCB','length','@midwayjs/koa','koa','ApiService','decorate','handlerActionRoute','defineProperties','log','@midwayjs/upload','./config/config.production','args','@midwayjs/decorator','checkConfigKeys','addObject','isFunction','@midwayjs/i18n','__metadata','3325672mqhadW','headers','REQUEST_OBJ_CTX_KEY','980814QlQVPE','./exception/ApiError','@anncic-api/core','decorator','dirs','prototype','anncic-apihelper','body','isClass','context','Types','checksign','ApiError','design:type','handler','MidwayEnvironmentService','MidwayDecoratorService','@anncic-api/event','mkdirSync','__esModule','isNull','./service/ApiService','registerMethodHandler','1gQHfcU','metadata','3827655FNyWpP','string','object','defineProperty','application','8ZDlhyr','@midwayjs/task','@midwayjs/cross-domain','_matchedRoute','forEach','input','MidwayConfigService','hanlderApplications','./config/config.default','apimit','getApplications','devices','isArray','__decorate','query','tmpdir','919818HzabHG','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'];a2_0x1307=function(){return _0x35a605;};return a2_0x1307();}__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a2_0x45cd28(0x12d)])],CustomConfiguration[a2_0x45cd28(0x16a)],a2_0x45cd28(0x139),void 0x0),__decorate([(0x0,decorator_1[a2_0x45cd28(0x147)])(),__metadata(a2_0x45cd28(0x172),core_1[a2_0x45cd28(0x175)])],CustomConfiguration[a2_0x45cd28(0x16a)],a2_0x45cd28(0x168),void 0x0),__decorate([(0x0,decorator_1[a2_0x45cd28(0x147)])(),__metadata('design:type',core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x45cd28(0x16a)],a2_0x45cd28(0x126),void 0x0),__decorate([(0x0,decorator_1[a2_0x45cd28(0x147)])(),__metadata(a2_0x45cd28(0x172),core_1[a2_0x45cd28(0x174)])],CustomConfiguration[a2_0x45cd28(0x16a)],'environment',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x45cd28(0x172),ApiService_1[a2_0x45cd28(0x154)])],CustomConfiguration['prototype'],a2_0x45cd28(0x154),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x45cd28(0x14f)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x5df3bc=a2_0x21fc;(function(_0x477d50,_0x3942ba){const _0x1fed03=a2_0x21fc,_0x41ec56=_0x477d50();while(!![]){try{const _0x31f490=parseInt(_0x1fed03(0x154))/0x1*(parseInt(_0x1fed03(0x169))/0x2)+parseInt(_0x1fed03(0x144))/0x3+-parseInt(_0x1fed03(0x174))/0x4*(parseInt(_0x1fed03(0x143))/0x5)+-parseInt(_0x1fed03(0x14a))/0x6+parseInt(_0x1fed03(0x16a))/0x7*(-parseInt(_0x1fed03(0x126))/0x8)+parseInt(_0x1fed03(0x150))/0x9+parseInt(_0x1fed03(0x151))/0xa;if(_0x31f490===_0x3942ba)break;else _0x41ec56['push'](_0x41ec56['shift']());}catch(_0x25c173){_0x41ec56['push'](_0x41ec56['shift']());}}}(a2_0x11c3,0xe0cf7));function a2_0x21fc(_0x5eada9,_0x59eb0c){const _0x11c300=a2_0x11c3();return a2_0x21fc=function(_0x21fcad,_0xee9f41){_0x21fcad=_0x21fcad-0x125;let _0x1c893e=_0x11c300[_0x21fcad];return _0x1c893e;},a2_0x21fc(_0x5eada9,_0x59eb0c);}function a2_0x11c3(){const _0x26513f=['checkConfigKeys','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/i18n','10760472vEQYIY','onReady','REQUEST_OBJ_CTX_KEY','CustomConfiguration','toLowerCase','HEADERS_SIGNATURE','4507335JpCFJu','14962810QNoiWT','requestContext','koa','146221vPRjdn','checksign','filterConfig','apimit','@anncic-api/cache','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','environment','handlerActionRoute','mkdirSync','keys','MidwayEnvironmentService','object','@midwayjs/cross-domain','body','isClass','./types/action','input','function','Configuration','MidwayConfigService','dirs','20AiGmPx','126nPDrqJ','@anncic-api/core','getAsync','_matchedRoute','devices','@anncic-api/validator','request','upload','ACTION_ROUTE_KEY','getOwnPropertyDescriptor','1538788vJtKJA','@midwayjs/core','method','device','isNull','dir','./service/ApiService','key','@anncic-api/typeorm','ApiError','isFunction','DEFAULT','defineProperty','isString','prototype','getApplications','design:type','proceed','get','Inject','bodyXml','anncicapi','162280cLZUJM','__esModule','decorate','staticFile','isArray','intercept','Types','./config/config.production','log','registerMethodHandler','headers','handler','tmpdir','query','application','target','length','config','@midwayjs/decorator','MidwayApplicationManager','string','metadata','decorator','existsSync','ApiService','defineProperties','hanlderApplications','@midwayjs/static-file','getConfiguration','20lOBRfj','3476541VUzHZV','context','__metadata'];a2_0x11c3=function(){return _0x26513f;};return a2_0x11c3();}var __decorate=this&&this['__decorate']||function(_0x4889e8,_0x16e012,_0x43eb68,_0x4ea4db){const _0x41f38f=a2_0x21fc;var _0x4c20ec=arguments[_0x41f38f(0x136)],_0x395964=_0x4c20ec<0x3?_0x16e012:_0x4ea4db===null?_0x4ea4db=Object[_0x41f38f(0x173)](_0x16e012,_0x43eb68):_0x4ea4db,_0x88fcfa;if(typeof Reflect===_0x41f38f(0x15f)&&typeof Reflect['decorate']===_0x41f38f(0x165))_0x395964=Reflect[_0x41f38f(0x128)](_0x4889e8,_0x16e012,_0x43eb68,_0x4ea4db);else{for(var _0x4f2120=_0x4889e8[_0x41f38f(0x136)]-0x1;_0x4f2120>=0x0;_0x4f2120--)if(_0x88fcfa=_0x4889e8[_0x4f2120])_0x395964=(_0x4c20ec<0x3?_0x88fcfa(_0x395964):_0x4c20ec>0x3?_0x88fcfa(_0x16e012,_0x43eb68,_0x395964):_0x88fcfa(_0x16e012,_0x43eb68))||_0x395964;}return _0x4c20ec>0x3&&_0x395964&&Object[_0x41f38f(0x180)](_0x16e012,_0x43eb68,_0x395964),_0x395964;},__metadata=this&&this[a2_0x5df3bc(0x146)]||function(_0x3bca4e,_0x55ae25){const _0x2f55c4=a2_0x5df3bc;if(typeof Reflect===_0x2f55c4(0x15f)&&typeof Reflect['metadata']===_0x2f55c4(0x165))return Reflect[_0x2f55c4(0x13b)](_0x3bca4e,_0x55ae25);};Object[a2_0x5df3bc(0x180)](exports,a2_0x5df3bc(0x127),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0x5df3bc(0x138)),core_1=require(a2_0x5df3bc(0x175)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x5df3bc(0x17a)),action_1=require(a2_0x5df3bc(0x163)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x5df3bc(0x149)),task=require('@midwayjs/task'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x5df3bc(0x141)),crossDomain=require(a2_0x5df3bc(0x160)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x5df3bc(0x12d)),anncic=require(a2_0x5df3bc(0x16b)),anncicCache=require(a2_0x5df3bc(0x158)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x5df3bc(0x17c)),anncicValidator=require(a2_0x5df3bc(0x16f)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x5df3bc(0x14b)](){const _0x505014=a2_0x5df3bc;await this[_0x505014(0x156)](),await this[_0x505014(0x147)](),await this['handlerActionRoute'](),await this[_0x505014(0x140)]();}async[a2_0x5df3bc(0x147)](){}async[a2_0x5df3bc(0x15b)](){const _0x56e90d=a2_0x5df3bc,_0x1d29cd=this[_0x56e90d(0x137)][_0x56e90d(0x142)]();this[_0x56e90d(0x13c)][_0x56e90d(0x12f)](action_1[_0x56e90d(0x172)],_0x1f80ac=>{const _0x3f26e5=_0x56e90d,_0x5872e3=_0x1f80ac[_0x3f26e5(0x13b)];return{'before':async _0x2362a7=>{const _0x487993=_0x3f26e5;var _0x48f9be,_0x3560a0;const _0x54a50b=(_0x48f9be=_0x2362a7===null||_0x2362a7===void 0x0?void 0x0:_0x2362a7[_0x487993(0x135)])===null||_0x48f9be===void 0x0?void 0x0:_0x48f9be[core_1[_0x487993(0x14c)]];if(_0x54a50b&&(_0x5872e3===null||_0x5872e3===void 0x0?void 0x0:_0x5872e3[_0x487993(0x157)])){if(!this[_0x487993(0x13e)][_0x487993(0x155)]((_0x3560a0=_0x54a50b===null||_0x54a50b===void 0x0?void 0x0:_0x54a50b[_0x487993(0x170)])===null||_0x3560a0===void 0x0?void 0x0:_0x3560a0[_0x487993(0x130)]))throw new AnnError(ApiError_1[_0x487993(0x17d)][_0x487993(0x14f)]);}},'around':async _0x13676f=>{const _0x490e33=_0x3f26e5;var _0x2ab2bc,_0x83c2e2,_0x2b1a9a,_0x2e5f13,_0x36c556;const _0x1c7cf9=(_0x2ab2bc=_0x13676f===null||_0x13676f===void 0x0?void 0x0:_0x13676f[_0x490e33(0x135)])===null||_0x2ab2bc===void 0x0?void 0x0:_0x2ab2bc[core_1[_0x490e33(0x14c)]];if(_0x1c7cf9&&(_0x5872e3===null||_0x5872e3===void 0x0?void 0x0:_0x5872e3[_0x490e33(0x157)])){if(((_0x83c2e2=_0x1c7cf9[_0x490e33(0x130)])===null||_0x83c2e2===void 0x0?void 0x0:_0x83c2e2[_0x490e33(0x177)])&&((_0x36c556=(_0x2e5f13=(_0x2b1a9a=_0x1d29cd===null||_0x1d29cd===void 0x0?void 0x0:_0x1d29cd[_0x490e33(0x125)])===null||_0x2b1a9a===void 0x0?void 0x0:_0x2b1a9a[_0x490e33(0x16e)])===null||_0x2e5f13===void 0x0?void 0x0:_0x2e5f13[_0x1c7cf9[_0x490e33(0x130)][_0x490e33(0x177)]])===null||_0x36c556===void 0x0?void 0x0:_0x36c556[_0x490e33(0x12b)])){const _0x54027a=Array[_0x490e33(0x12a)](_0x1d29cd['anncicapi'][_0x490e33(0x16e)][_0x1c7cf9[_0x490e33(0x130)]['device']][_0x490e33(0x12b)])?_0x1d29cd[_0x490e33(0x125)]['devices'][_0x1c7cf9[_0x490e33(0x130)][_0x490e33(0x177)]]['intercept']:[_0x1d29cd[_0x490e33(0x125)][_0x490e33(0x16e)][_0x1c7cf9[_0x490e33(0x130)][_0x490e33(0x177)]]['intercept']];for(const _0x358588 of _0x54027a){if(decorator_1['Types'][_0x490e33(0x162)](_0x358588)||typeof _0x358588==_0x490e33(0x13a)){const _0x460ab5=await _0x1c7cf9[_0x490e33(0x152)][_0x490e33(0x16c)](_0x358588);typeof(_0x460ab5===null||_0x460ab5===void 0x0?void 0x0:_0x460ab5[_0x490e33(0x131)])==_0x490e33(0x165)&&await _0x460ab5[_0x490e33(0x131)](typeof(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9['method'])==_0x490e33(0x13a)&&(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9[_0x490e33(0x16d)])?_0x1c7cf9[_0x490e33(0x176)][_0x490e33(0x14e)]()+'@'+(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9[_0x490e33(0x16d)]):undefined,_0x1c7cf9,_0x5872e3);}else decorator_1[_0x490e33(0x12c)][_0x490e33(0x17e)](_0x358588)&&await _0x358588(typeof(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9['method'])==_0x490e33(0x13a)&&(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9['_matchedRoute'])?_0x1c7cf9[_0x490e33(0x176)][_0x490e33(0x14e)]()+'@'+(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9[_0x490e33(0x16d)]):undefined,_0x1c7cf9,_0x5872e3);}}}return await _0x13676f[_0x490e33(0x185)](..._0x13676f['args']);},'afterThrow':(_0x529b19,_0x20bd0d)=>{throw _0x20bd0d;}};});}async['hanlderApplications'](){const _0x7b9b09=a2_0x5df3bc;this[_0x7b9b09(0x134)][_0x7b9b09(0x183)]([_0x7b9b09(0x153)])['forEach'](_0x18fd0c=>{const _0x456170=_0x7b9b09;(_0x18fd0c===null||_0x18fd0c===void 0x0?void 0x0:_0x18fd0c['context'])&&Object[_0x456170(0x13f)](_0x18fd0c[_0x456170(0x145)],{'ok':{'value':function(_0x15e3a1,_0x10c240,_0x195c6d=0x0){return{'code':_0x195c6d,'data':_0x15e3a1,'extra':_0x10c240};}},'err':{'value':function(_0x15472d,_0x2768ae,_0x5ed4be=0x1){return{'code':_0x5ed4be,'extra':_0x2768ae,'msg':_0x15472d};}},'input':{'value':function(_0x204de,_0x4bc5d5){const _0x1dc97c=_0x456170;var _0x3b1513;const _0x2a2b76=lodash['defaultsDeep']({},this[_0x1dc97c(0x170)]['body']||this['request'][((_0x3b1513=config===null||config===void 0x0?void 0x0:config[_0x1dc97c(0x188)])===null||_0x3b1513===void 0x0?void 0x0:_0x3b1513[_0x1dc97c(0x17b)])||_0x1dc97c(0x161)]||{},this[_0x1dc97c(0x170)][_0x1dc97c(0x133)]||{});return _0x204de?lodash[_0x1dc97c(0x186)](_0x2a2b76,_0x204de,_0x4bc5d5):_0x2a2b76;}},'when':{'value':async function(_0x58ea7a,_0x3a53e9){const _0x47c9b5=_0x456170,_0x2d233e=this['input'](_0x58ea7a,null);if(!lodash[_0x47c9b5(0x178)](_0x2d233e))return await _0x3a53e9(_0x2d233e);}},'only':{'value':function(_0x560b01){const _0x23cc6e=_0x456170,_0x358f9d={};for(let _0x1b564a=0x0;_0x1b564a<_0x560b01[_0x23cc6e(0x136)];_0x1b564a++){lodash[_0x23cc6e(0x12a)](_0x560b01[_0x1b564a])&&_0x560b01[_0x1b564a][_0x23cc6e(0x136)]>0x0&&lodash[_0x23cc6e(0x181)](_0x560b01[_0x1b564a][0x0])&&(_0x358f9d[_0x560b01[_0x1b564a][0x0]]=this[_0x23cc6e(0x164)](_0x560b01[_0x1b564a][0x0],_0x560b01[_0x1b564a][_0x23cc6e(0x136)]>0x1?_0x560b01[_0x1b564a][0x1]:null));}return _0x358f9d;}}});});}async[a2_0x5df3bc(0x156)](){const _0x21993f=a2_0x5df3bc;var _0x24d54a,_0x189241,_0x305673,_0x5327c7,_0x12d2e2,_0x3643e6;const _0x557876=this[_0x21993f(0x137)]['getConfiguration']();((_0x189241=(_0x24d54a=_0x557876===null||_0x557876===void 0x0?void 0x0:_0x557876['anncicapi'])===null||_0x24d54a===void 0x0?void 0x0:_0x24d54a['devices'])===null||_0x189241===void 0x0?void 0x0:_0x189241['DEFAULT'])&&Object[_0x21993f(0x15d)](_0x557876[_0x21993f(0x125)][_0x21993f(0x16e)])[_0x21993f(0x136)]>0x1&&delete _0x557876['anncicapi'][_0x21993f(0x16e)][_0x21993f(0x17f)];if((_0x305673=_0x557876===null||_0x557876===void 0x0?void 0x0:_0x557876[_0x21993f(0x129)])===null||_0x305673===void 0x0?void 0x0:_0x305673[_0x21993f(0x168)])for(const _0x131c5b in _0x557876[_0x21993f(0x129)]['dirs']){((_0x5327c7=_0x557876[_0x21993f(0x129)][_0x21993f(0x168)][_0x131c5b])===null||_0x5327c7===void 0x0?void 0x0:_0x5327c7[_0x21993f(0x179)])&&typeof((_0x12d2e2=_0x557876[_0x21993f(0x129)][_0x21993f(0x168)][_0x131c5b])===null||_0x12d2e2===void 0x0?void 0x0:_0x12d2e2[_0x21993f(0x179)])==_0x21993f(0x13a)&&!fs[_0x21993f(0x13d)](_0x557876[_0x21993f(0x129)][_0x21993f(0x168)][_0x131c5b][_0x21993f(0x179)])&&(fs[_0x21993f(0x15c)](_0x557876[_0x21993f(0x129)]['dirs'][_0x131c5b][_0x21993f(0x179)],{'recursive':!![]}),console['log'](_0x21993f(0x148)+_0x557876['staticFile'][_0x21993f(0x168)][_0x131c5b][_0x21993f(0x179)]));}((_0x3643e6=_0x557876===null||_0x557876===void 0x0?void 0x0:_0x557876[_0x21993f(0x171)])===null||_0x3643e6===void 0x0?void 0x0:_0x3643e6[_0x21993f(0x132)])&&!fs[_0x21993f(0x13d)](_0x557876[_0x21993f(0x171)]['tmpdir'])&&(fs[_0x21993f(0x15c)](_0x557876[_0x21993f(0x171)]['tmpdir'],{'recursive':!![]}),console[_0x21993f(0x12e)](_0x21993f(0x159)+_0x557876['upload'][_0x21993f(0x132)])),this[_0x21993f(0x137)]['addObject'](_0x557876);}};__decorate([(0x0,decorator_1[a2_0x5df3bc(0x187)])(),__metadata(a2_0x5df3bc(0x184),core_1[a2_0x5df3bc(0x167)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x137),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x5df3bc(0x184),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x13c),void 0x0),__decorate([(0x0,decorator_1[a2_0x5df3bc(0x187)])(),__metadata(a2_0x5df3bc(0x184),core_1[a2_0x5df3bc(0x139)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x134),void 0x0),__decorate([(0x0,decorator_1[a2_0x5df3bc(0x187)])(),__metadata(a2_0x5df3bc(0x184),core_1[a2_0x5df3bc(0x15e)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x15a),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x5df3bc(0x184),ApiService_1[a2_0x5df3bc(0x13e)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x13e),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x5df3bc(0x166)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x5df3bc(0x14d)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x5b8eb6=a3_0x1b00;(function(_0xd9896c,_0xd4a280){const _0xf32a7b=a3_0x1b00,_0x57c48f=_0xd9896c();while(!![]){try{const _0x5354f1=-parseInt(_0xf32a7b(0x174))/0x1+-parseInt(_0xf32a7b(0x16b))/0x2+-parseInt(_0xf32a7b(0x149))/0x3+-parseInt(_0xf32a7b(0x152))/0x4+-parseInt(_0xf32a7b(0x167))/0x5+parseInt(_0xf32a7b(0x158))/0x6+parseInt(_0xf32a7b(0x16d))/0x7*(parseInt(_0xf32a7b(0x14f))/0x8);if(_0x5354f1===_0xd4a280)break;else _0x57c48f['push'](_0x57c48f['shift']());}catch(_0x1df8e0){_0x57c48f['push'](_0x57c48f['shift']());}}}(a3_0x4627,0x77369));Object[a3_0x5b8eb6(0x15f)](exports,a3_0x5b8eb6(0x169),{'value':!![]}),exports[a3_0x5b8eb6(0x15e)]=exports[a3_0x5b8eb6(0x16f)]=void 0x0;function a3_0x4627(){const _0x16c352=['16161KaRDGW','rootpath','isArray','trim','join','2548401bCaeUS','prefix','splice','indexOf','/controller/文件下','-action','704NgTuAT','saveClassMetadata','replace','3328380wzESHn','app/controller/','/controller/','module','route','filter','1857552DbqPYL','push','endsWith','-controller','middleware','/config.','parseRoute','defineProperty','toLowerCase','ACTION_KEY','Controller','length','APPSCONFIG_KEY','match','startsWith','4361100focari','substring','__esModule','/apps/','911920iYcQuV','@midwayjs/decorator','254912YsviqQ','saveModule','Action','filepath','apps/','AppsConfigTmp','\x20文件请放在apps/'];a3_0x4627=function(){return _0x16c352;};return a3_0x4627();}const fs=require('fs'),decorator_1=require(a3_0x5b8eb6(0x16c)),action_1=require('../types/action');function a3_0x1b00(_0x572d30,_0x30a316){const _0x462767=a3_0x4627();return a3_0x1b00=function(_0x1b0059,_0x500b26){_0x1b0059=_0x1b0059-0x147;let _0x49e83b=_0x462767[_0x1b0059];return _0x49e83b;},a3_0x1b00(_0x572d30,_0x30a316);}function Action(_0x21f0bf,_0x152d78,_0x4786b9={'middleware':[],'sensitive':!![]}){return _0x459ad5=>{const _0x4504c1=a3_0x1b00;_0x4786b9['tagName']=_0x152d78;const _0x190bf7=parseRoute(_0x21f0bf);if(_0x190bf7[_0x4504c1(0x155)]){_0x4786b9[_0x4504c1(0x14a)]=_0x4786b9[_0x4504c1(0x14a)]?'/'+_0x190bf7[_0x4504c1(0x155)]+'/'+_0x4786b9[_0x4504c1(0x14a)]:'/'+_0x190bf7[_0x4504c1(0x156)];_0x190bf7['prefix']&&(_0x4786b9[_0x4504c1(0x14a)]='/'+_0x190bf7['prefix']+'/'+_0x4786b9['prefix']);if(fs['existsSync'](_0x190bf7[_0x4504c1(0x175)]+'/apps/'+_0x190bf7[_0x4504c1(0x155)]+_0x4504c1(0x15d)+(lodash['endsWith'](_0x190bf7['filepath'],'ts')?'ts':'js'))){const _0x315f4f=include(_0x190bf7[_0x4504c1(0x175)]+_0x4504c1(0x16a)+_0x190bf7[_0x4504c1(0x155)]+_0x4504c1(0x15d)+(lodash[_0x4504c1(0x15a)](_0x190bf7[_0x4504c1(0x170)],'ts')?'ts':'js'));if(_0x315f4f[_0x4504c1(0x15c)]&&lodash[_0x4504c1(0x176)](_0x315f4f[_0x4504c1(0x15c)])&&_0x315f4f[_0x4504c1(0x15c)][_0x4504c1(0x163)]>0x0)for(let _0x27e219 in _0x315f4f[_0x4504c1(0x15c)]){_0x315f4f['middlewareIgnore'][_0x4504c1(0x14c)](_0x315f4f[_0x4504c1(0x15c)][_0x27e219])==-0x1&&_0x4786b9[_0x4504c1(0x15c)][_0x4504c1(0x159)](_0x315f4f[_0x4504c1(0x15c)][_0x27e219]);}const _0x492532=(0x0,decorator_1['getClassMetadata'])(action_1[_0x4504c1(0x164)],action_1[_0x4504c1(0x172)])||{};_0x492532[''+_0x190bf7[_0x4504c1(0x155)]]=_0x315f4f,(0x0,decorator_1[_0x4504c1(0x150)])(action_1[_0x4504c1(0x164)],_0x492532,action_1[_0x4504c1(0x172)]);}_0x4786b9['prefix']=_0x4786b9['prefix']['toLowerCase']()[_0x4504c1(0x151)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x4504c1(0x16e)])(action_1[_0x4504c1(0x161)],_0x459ad5),(0x0,decorator_1[_0x4504c1(0x162)])(_0x4786b9[_0x4504c1(0x14a)],_0x4786b9)(_0x459ad5),(0x0,decorator_1[_0x4504c1(0x150)])(action_1[_0x4504c1(0x161)],{'prefix':_0x4786b9[_0x4504c1(0x14a)],'pprefix':_0x190bf7['prefix'],'module':_0x190bf7['module'],'filepath':_0x190bf7[_0x4504c1(0x170)],'routerOptions':_0x4786b9},_0x459ad5);}else _0x4786b9[_0x4504c1(0x14a)]=_0x4786b9[_0x4504c1(0x14a)]?'/'+_0x4786b9[_0x4504c1(0x14a)]:'/'+_0x190bf7['route'],_0x190bf7[_0x4504c1(0x14a)]&&(_0x4786b9[_0x4504c1(0x14a)]='/'+_0x190bf7['prefix']+'/'+_0x4786b9[_0x4504c1(0x14a)]),_0x4786b9[_0x4504c1(0x14a)]=_0x4786b9[_0x4504c1(0x14a)][_0x4504c1(0x160)]()[_0x4504c1(0x151)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x4504c1(0x161)],_0x459ad5),(0x0,decorator_1['Controller'])(_0x4786b9[_0x4504c1(0x14a)],_0x4786b9)(_0x459ad5),(0x0,decorator_1[_0x4504c1(0x150)])(action_1[_0x4504c1(0x161)],{'prefix':_0x4786b9[_0x4504c1(0x14a)],'module':_0x190bf7[_0x4504c1(0x155)],'pprefix':_0x190bf7['prefix'],'filepath':_0x190bf7['filepath'],'routerOptions':_0x4786b9},_0x459ad5);};}exports[a3_0x5b8eb6(0x16f)]=Action;function parseRoute(_0x9b80b3){const _0x4e0bfb=a3_0x5b8eb6;_0x9b80b3=_0x9b80b3[_0x4e0bfb(0x151)](/(\\|\/)/g,'/');const _0x9b8b7=process['cwd']()[_0x4e0bfb(0x151)](/(\\|\/)/g,'/'),_0x3aa96f=_0x9b80b3[_0x4e0bfb(0x168)](0x0,_0x9b8b7[_0x4e0bfb(0x163)]+_0x9b80b3[_0x4e0bfb(0x168)](_0x9b8b7[_0x4e0bfb(0x163)]+0x1)['indexOf']('/')+0x1),_0x35dce8=_0x9b80b3['substring'](_0x3aa96f[_0x4e0bfb(0x163)]+0x1)[_0x4e0bfb(0x151)](/(\\|\/)/g,'/'),_0x2938d1={'route':'','prefix':![],'module':![],'rootpath':_0x3aa96f,'filepath':_0x35dce8};if(_0x35dce8['startsWith']('app/controller/')){const _0x220475=_0x35dce8['substring'](_0x4e0bfb(0x153)[_0x4e0bfb(0x163)])['split']('/')[_0x4e0bfb(0x157)](_0x3d8b30=>_0x3d8b30&&_0x3d8b30[_0x4e0bfb(0x147)]());return _0x220475['length']>0x1&&(_0x2938d1[_0x4e0bfb(0x14a)]=_0x220475[0x0][_0x4e0bfb(0x160)](),_0x220475[_0x4e0bfb(0x14b)](0x0,0x1)),_0x2938d1[_0x4e0bfb(0x156)]=('/'+_0x220475[_0x4e0bfb(0x148)]('/'))[_0x4e0bfb(0x151)](/(\.ts|\.js)$/,'')[_0x4e0bfb(0x151)](/\/{2,}/g,'/')[_0x4e0bfb(0x165)](/[\/|A-Z]*[^A-Z]+/g)[_0x4e0bfb(0x148)]('-')[_0x4e0bfb(0x160)]()[_0x4e0bfb(0x151)](/\/\-/g,'/'),_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x15a)](_0x4e0bfb(0x14e))&&(_0x2938d1['route']=_0x2938d1[_0x4e0bfb(0x156)]['substring'](0x0,_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x163)]-0x7)),_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x15a)](_0x4e0bfb(0x15b))&&(_0x2938d1[_0x4e0bfb(0x156)]=_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x168)](0x0,_0x2938d1[_0x4e0bfb(0x156)]['length']-0xb)),_0x2938d1;}else{if(_0x35dce8[_0x4e0bfb(0x166)]('apps/')){const _0x408fbd=_0x35dce8[_0x4e0bfb(0x168)](0x0,_0x35dce8[_0x4e0bfb(0x14c)](_0x4e0bfb(0x16a))+0x5),_0x39fb43=_0x35dce8[_0x4e0bfb(0x168)](_0x408fbd[_0x4e0bfb(0x163)]+0x1)[_0x4e0bfb(0x151)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x35dce8['startsWith'](_0x4e0bfb(0x171)+_0x39fb43+'/controller/')){const _0x24dc3a=_0x35dce8[_0x4e0bfb(0x168)]((_0x408fbd+'/'+_0x39fb43+_0x4e0bfb(0x154))[_0x4e0bfb(0x163)])['split']('/')[_0x4e0bfb(0x157)](_0x2d4d13=>_0x2d4d13&&_0x2d4d13['trim']());return _0x24dc3a['length']>0x1&&(_0x2938d1[_0x4e0bfb(0x14a)]=_0x24dc3a[0x0]['toLowerCase'](),_0x24dc3a['splice'](0x0,0x1)),_0x2938d1[_0x4e0bfb(0x155)]=_0x39fb43,_0x2938d1[_0x4e0bfb(0x156)]=('/'+_0x39fb43+'/'+_0x24dc3a[_0x4e0bfb(0x148)]('/'))[_0x4e0bfb(0x151)](/(\.ts|\.js)$/,'')[_0x4e0bfb(0x151)](/\/{2,}/,'/')[_0x4e0bfb(0x165)](/[\/|A-Z]*[^A-Z]+/g)[_0x4e0bfb(0x148)]('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x15a)](_0x4e0bfb(0x14e))&&(_0x2938d1[_0x4e0bfb(0x156)]=_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x168)](0x0,_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x163)]-0x7)),_0x2938d1['route'][_0x4e0bfb(0x15a)](_0x4e0bfb(0x15b))&&(_0x2938d1[_0x4e0bfb(0x156)]=_0x2938d1[_0x4e0bfb(0x156)][_0x4e0bfb(0x168)](0x0,_0x2938d1['route'][_0x4e0bfb(0x163)]-0xb)),_0x2938d1;}throw new Error(_0x35dce8+_0x4e0bfb(0x173)+_0x39fb43+_0x4e0bfb(0x14d));}}throw new Error(_0x35dce8+'\x20文件请放在app/controller/文件下');}exports[a3_0x5b8eb6(0x15e)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x39c5cf=a4_0x1953;(function(_0x332bbb,_0x3a1963){const _0x4b3e4e=a4_0x1953,_0x5c3e1e=_0x332bbb();while(!![]){try{const _0x4355b1=parseInt(_0x4b3e4e(0x124))/0x1+-parseInt(_0x4b3e4e(0x126))/0x2*(parseInt(_0x4b3e4e(0x12b))/0x3)+-parseInt(_0x4b3e4e(0x125))/0x4+parseInt(_0x4b3e4e(0x115))/0x5+-parseInt(_0x4b3e4e(0x122))/0x6+-parseInt(_0x4b3e4e(0x12a))/0x7*(-parseInt(_0x4b3e4e(0x118))/0x8)+-parseInt(_0x4b3e4e(0x120))/0x9*(-parseInt(_0x4b3e4e(0x11a))/0xa);if(_0x4355b1===_0x3a1963)break;else _0x5c3e1e['push'](_0x5c3e1e['shift']());}catch(_0x3b9b15){_0x5c3e1e['push'](_0x5c3e1e['shift']());}}}(a4_0x42db,0x5b1bf));function a4_0x42db(){const _0x506a84=['middlewareIgnore','202580PsPHFL','length','../types/action','routerName','del','assign','459DQrgBL','toLowerCase','3701880lHzitz','delete','426335xPSlpX','1757112OrJQRw','1423210wJDGnr','defineProperty','ACTION_ROUTE_KEY','validate','4493951lrAOpN','3EMDJNt','attachClassMetadata','Api','middleware','utc','filter','validationOptions','__esModule','RequestMapping','@anncic-api/validator','197800sGVPba','get','description','8LLBuXG'];a4_0x42db=function(){return _0x506a84;};return a4_0x42db();}Object[a4_0x39c5cf(0x127)](exports,a4_0x39c5cf(0x112),{'value':!![]}),exports[a4_0x39c5cf(0x12d)]=void 0x0;const validator_1=require(a4_0x39c5cf(0x114)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x39c5cf(0x11c));function a4_0x1953(_0x50aed,_0x490009){const _0x42db62=a4_0x42db();return a4_0x1953=function(_0x19539a,_0xb30708){_0x19539a=_0x19539a-0x111;let _0x25da9e=_0x42db62[_0x19539a];return _0x25da9e;},a4_0x1953(_0x50aed,_0x490009);}function Api(_0x391ab9,_0x4c9383=a4_0x39c5cf(0x116),_0x38623c='/',_0xea48b6={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x13e7cf,_0x200558,_0x45c921)=>{const _0x5087d9=a4_0x1953;var _0x2c35de,_0x3a8155,_0x309411;!_0xea48b6[_0x5087d9(0x12e)]&&(_0xea48b6['middleware']=[]);!((_0x2c35de=_0xea48b6===null||_0xea48b6===void 0x0?void 0x0:_0xea48b6[_0x5087d9(0x129)])===null||_0x2c35de===void 0x0?void 0x0:_0x2c35de[_0x5087d9(0x111)])&&(_0xea48b6[_0x5087d9(0x129)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5087d9(0x12f)}});if(((_0x3a8155=_0xea48b6===null||_0xea48b6===void 0x0?void 0x0:_0xea48b6[_0x5087d9(0x12e)])===null||_0x3a8155===void 0x0?void 0x0:_0x3a8155[_0x5087d9(0x11b)])>0x0&&((_0x309411=_0xea48b6===null||_0xea48b6===void 0x0?void 0x0:_0xea48b6[_0x5087d9(0x119)])===null||_0x309411===void 0x0?void 0x0:_0x309411[_0x5087d9(0x11b)])>0x0)for(let _0x584cb8 in _0xea48b6[_0x5087d9(0x12e)]){_0xea48b6['middlewareIgnore']['indexOf'](_0xea48b6[_0x5087d9(0x12e)][_0x584cb8])!==-0x1&&(_0xea48b6[_0x5087d9(0x12e)][_0x584cb8]=null);}_0xea48b6[_0x5087d9(0x11d)]=_0x391ab9,(0x0,validator_1['Validator'])(_0xea48b6[_0x5087d9(0x129)])(_0x13e7cf,_0x200558,_0x45c921),(0x0,decorator_1[_0x5087d9(0x113)])(Object[_0x5087d9(0x11f)](_0xea48b6,{'path':_0x38623c,'requestMethod':(_0x4c9383==_0x5087d9(0x11e)?_0x5087d9(0x123):_0x4c9383)['toLowerCase']()}))(_0x13e7cf,_0x200558,_0x45c921),(0x0,decorator_1[_0x5087d9(0x12c)])(action_1[_0x5087d9(0x128)],{'path':_0x38623c,'method':_0x200558,'apimit':_0xea48b6['apimit'],'routerName':_0xea48b6[_0x5087d9(0x11d)],'description':_0xea48b6['description'],'middleware':(_0xea48b6['middleware']||[])['filter'](_0x5f0bf6=>!!_0x5f0bf6),'requestMethod':(_0x4c9383=='del'?_0x5087d9(0x123):_0x4c9383)['toLowerCase']()},_0x13e7cf),(0x0,decorator_1['createCustomMethodDecorator'])(action_1[_0x5087d9(0x128)],{'path':_0x38623c,'method':_0x200558,'apimit':_0xea48b6['apimit'],'routerName':_0xea48b6[_0x5087d9(0x11d)],'description':_0xea48b6[_0x5087d9(0x117)],'middleware':(_0xea48b6[_0x5087d9(0x12e)]||[])[_0x5087d9(0x130)](_0x2b72ad=>!!_0x2b72ad),'requestMethod':(_0x4c9383==_0x5087d9(0x11e)?_0x5087d9(0x123):_0x4c9383)[_0x5087d9(0x121)]()})(_0x13e7cf,_0x200558,_0x45c921);};}exports[a4_0x39c5cf(0x12d)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x45b2f6=a5_0x2c88;function a5_0xc885(){const _0x57d8b2=['280984EDSzxg','value','589962rmmhjZ','651515OPGMST','defineProperty','apidoc','getAsync','filepath','RequestMapping','@midwayjs/decorator','MidwayEnvironmentService','21266271oNMptG','2064COsHcT','3426yLnTXS','getConfig','getApplicationContext','get','25krnXXj','2478210ZzichU','app','apitest','482936Vnwgzn'];a5_0xc885=function(){return _0x57d8b2;};return a5_0xc885();}function a5_0x2c88(_0x1a848c,_0x444326){const _0xc885c=a5_0xc885();return a5_0x2c88=function(_0x2c8800,_0x2c1a73){_0x2c8800=_0x2c8800-0x11b;let _0xf33c48=_0xc885c[_0x2c8800];return _0xf33c48;},a5_0x2c88(_0x1a848c,_0x444326);}(function(_0x4227f4,_0x3c87bd){const _0x1267d0=a5_0x2c88,_0x40baed=_0x4227f4();while(!![]){try{const _0xa03759=-parseInt(_0x1267d0(0x12c))/0x1+parseInt(_0x1267d0(0x128))/0x2+-parseInt(_0x1267d0(0x120))/0x3*(parseInt(_0x1267d0(0x11f))/0x4)+parseInt(_0x1267d0(0x124))/0x5*(-parseInt(_0x1267d0(0x12b))/0x6)+-parseInt(_0x1267d0(0x125))/0x7+parseInt(_0x1267d0(0x129))/0x8+parseInt(_0x1267d0(0x11e))/0x9;if(_0xa03759===_0x3c87bd)break;else _0x40baed['push'](_0x40baed['shift']());}catch(_0x32f469){_0x40baed['push'](_0x40baed['shift']());}}}(a5_0xc885,0x87062));Object[a5_0x45b2f6(0x12d)](exports,'__esModule',{'value':!![]}),exports['Apitest']=void 0x0;const decorator_1=require(a5_0x45b2f6(0x11c)),core_1=require('@midwayjs/core'),ApitestService_1=require('../service/ApitestService');function Apitest(_0x2dcbe9='/apitest',_0x272877){return(_0x3b4f07,_0x15aa92,_0x25e43e)=>{const _0x23ad6e=a5_0x2c88;return(0x0,decorator_1[_0x23ad6e(0x11b)])({'path':_0x2dcbe9,'requestMethod':_0x23ad6e(0x123)})(_0x3b4f07,_0x15aa92,_0x25e43e),_0x25e43e[_0x23ad6e(0x12a)]=async function(..._0x244e24){const _0x118d4b=_0x23ad6e;var _0x530806;const _0x5b9288=(_0x530806=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x530806===void 0x0?void 0x0:_0x530806[_0x118d4b(0x126)];if(_0x5b9288&&_0x5b9288[_0x118d4b(0x121)](_0x118d4b(0x127))){const _0x32267f=await _0x5b9288[_0x118d4b(0x122)]()[_0x118d4b(0x12f)](ApitestService_1['ApitestService']),_0x445a59=await _0x5b9288[_0x118d4b(0x122)]()['getAsync'](core_1[_0x118d4b(0x11d)]);return _0x445a59['isDevelopmentEnvironment']()&&(_0x272877[_0x118d4b(0x130)]=!![]),await _0x32267f[_0x118d4b(0x12e)](_0x272877);}return'';},_0x25e43e;};}exports['Apitest']=Apitest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class ApiError {
|
|
2
|
-
static readonly TIMEOUT =
|
|
3
|
-
static readonly HEADERS_LACK =
|
|
4
|
-
static readonly HEADERS_DEVICE =
|
|
5
|
-
static readonly HEADERS_CHECKCODE =
|
|
6
|
-
static readonly HEADERS_SIGNATURE =
|
|
2
|
+
static readonly TIMEOUT = 4030001;
|
|
3
|
+
static readonly HEADERS_LACK = 4030002;
|
|
4
|
+
static readonly HEADERS_DEVICE = 4030003;
|
|
5
|
+
static readonly HEADERS_CHECKCODE = 4030004;
|
|
6
|
+
static readonly HEADERS_SIGNATURE = 4030005;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x45fb5d=a6_0x3eed;(function(_0x1951a2,_0x10fcc2){var _0x37d39e=a6_0x3eed,_0x3a2c25=_0x1951a2();while(!![]){try{var _0x1333c7=parseInt(_0x37d39e(0x79))/0x1+parseInt(_0x37d39e(0x7e))/0x2+-parseInt(_0x37d39e(0x8a))/0x3*(parseInt(_0x37d39e(0x7f))/0x4)+-parseInt(_0x37d39e(0x86))/0x5+-parseInt(_0x37d39e(0x84))/0x6*(-parseInt(_0x37d39e(0x89))/0x7)+-parseInt(_0x37d39e(0x8e))/0x8+-parseInt(_0x37d39e(0x85))/0x9;if(_0x1333c7===_0x10fcc2)break;else _0x3a2c25['push'](_0x3a2c25['shift']());}catch(_0x3e63fc){_0x3a2c25['push'](_0x3a2c25['shift']());}}}(a6_0x1386,0xd8bfd));var __decorate=this&&this[a6_0x45fb5d(0x8c)]||function(_0x1d60a1,_0x4e1001,_0x4df4a1,_0x472b36){var _0x214ad0=a6_0x45fb5d,_0x422a6d=arguments[_0x214ad0(0x8d)],_0xd1a1b=_0x422a6d<0x3?_0x4e1001:_0x472b36===null?_0x472b36=Object['getOwnPropertyDescriptor'](_0x4e1001,_0x4df4a1):_0x472b36,_0x3b7475;if(typeof Reflect==='object'&&typeof Reflect[_0x214ad0(0x72)]==='function')_0xd1a1b=Reflect['decorate'](_0x1d60a1,_0x4e1001,_0x4df4a1,_0x472b36);else{for(var _0x386ac5=_0x1d60a1[_0x214ad0(0x8d)]-0x1;_0x386ac5>=0x0;_0x386ac5--)if(_0x3b7475=_0x1d60a1[_0x386ac5])_0xd1a1b=(_0x422a6d<0x3?_0x3b7475(_0xd1a1b):_0x422a6d>0x3?_0x3b7475(_0x4e1001,_0x4df4a1,_0xd1a1b):_0x3b7475(_0x4e1001,_0x4df4a1))||_0xd1a1b;}return _0x422a6d>0x3&&_0xd1a1b&&Object[_0x214ad0(0x83)](_0x4e1001,_0x4df4a1,_0xd1a1b),_0xd1a1b;},__metadata=this&&this[a6_0x45fb5d(0x81)]||function(_0xdb15d3,_0x20d070){var _0xccaf0c=a6_0x45fb5d;if(typeof Reflect===_0xccaf0c(0x80)&&typeof Reflect[_0xccaf0c(0x7d)]===_0xccaf0c(0x88))return Reflect[_0xccaf0c(0x7d)](_0xdb15d3,_0x20d070);};function a6_0x1386(){var _0x41860b=['design:type','signature验证失败','checkcode验证失败','metadata','2752526VOtRKg','12ZJRZtM','object','__metadata','TIMEOUT','defineProperty','8444088SdeCEk','12771819nymJJB','6753890RArpdk','HEADERS_LACK','function','7rrYBPZ','474339PHXxKS','__esModule','__decorate','length','1142232oKXLPx','decorate','HEADERS_DEVICE','ApiError','网络繁忙,请稍后重试','请求头信息不完整','HEADERS_SIGNATURE','HEADERS_CHECKCODE','1491181Onjmbv'];a6_0x1386=function(){return _0x41860b;};return a6_0x1386();}Object[a6_0x45fb5d(0x83)](exports,a6_0x45fb5d(0x8b),{'value':!![]}),exports[a6_0x45fb5d(0x74)]=void 0x0;function a6_0x3eed(_0xbf24f6,_0x2e7af1){var _0x1386de=a6_0x1386();return a6_0x3eed=function(_0x3eed85,_0x50ec90){_0x3eed85=_0x3eed85-0x72;var _0x322c8e=_0x1386de[_0x3eed85];return _0x322c8e;},a6_0x3eed(_0xbf24f6,_0x2e7af1);}class ApiError{}ApiError['TIMEOUT']=0x3d7e31,ApiError[a6_0x45fb5d(0x87)]=0x3d7e32,ApiError[a6_0x45fb5d(0x73)]=0x3d7e33,ApiError[a6_0x45fb5d(0x78)]=0x3d7e34,ApiError[a6_0x45fb5d(0x77)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x45fb5d(0x75)),__metadata(a6_0x45fb5d(0x7a),Object)],ApiError,a6_0x45fb5d(0x82),void 0x0),__decorate([AnnErrorMsg(a6_0x45fb5d(0x76)),__metadata(a6_0x45fb5d(0x7a),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x45fb5d(0x7a),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x45fb5d(0x7c)),__metadata('design:type',Object)],ApiError,a6_0x45fb5d(0x78),void 0x0),__decorate([AnnErrorMsg(a6_0x45fb5d(0x7b)),__metadata(a6_0x45fb5d(0x7a),Object)],ApiError,a6_0x45fb5d(0x77),void 0x0),exports[a6_0x45fb5d(0x74)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x299547=a7_0x1448;(function(_0x335f3d,_0x4d1710){const _0x25fdd8=a7_0x1448,_0x4df2f0=_0x335f3d();while(!![]){try{const _0x2c5f14=parseInt(_0x25fdd8(0x6f))/0x1*(parseInt(_0x25fdd8(0x68))/0x2)+-parseInt(_0x25fdd8(0x72))/0x3+-parseInt(_0x25fdd8(0x6e))/0x4+parseInt(_0x25fdd8(0x6b))/0x5*(-parseInt(_0x25fdd8(0x71))/0x6)+-parseInt(_0x25fdd8(0x78))/0x7+parseInt(_0x25fdd8(0x73))/0x8+parseInt(_0x25fdd8(0x79))/0x9*(parseInt(_0x25fdd8(0x70))/0xa);if(_0x2c5f14===_0x4d1710)break;else _0x4df2f0['push'](_0x4df2f0['shift']());}catch(_0x748f11){_0x4df2f0['push'](_0x4df2f0['shift']());}}}(a7_0x55c2,0xb9d1b));Object[a7_0x299547(0x77)](exports,a7_0x299547(0x6c),{'value':!![]}),exports['getAppsConfig']=void 0x0;function a7_0x1448(_0x18a74d,_0x532bb1){const _0x55c29b=a7_0x55c2();return a7_0x1448=function(_0x144855,_0xecc126){_0x144855=_0x144855-0x68;let _0x55a4e8=_0x55c29b[_0x144855];return _0x55a4e8;},a7_0x1448(_0x18a74d,_0x532bb1);}function a7_0x55c2(){const _0xb3ff9a=['310MlAeTU','102198eztErg','3462201mChXXG','6276136eJoZum','get','../types/action','@midwayjs/decorator','defineProperty','8778406sKrZVR','744111cXnKYm','14trQSXU','getClassMetadata','AppsConfigTmp','175wgdfpP','__esModule','APPSCONFIG_KEY','1574808DInjNr','115933dRwLsa'];a7_0x55c2=function(){return _0xb3ff9a;};return a7_0x55c2();}const decorator_1=require(a7_0x299547(0x76)),action_1=require(a7_0x299547(0x75));function getAppsConfig(_0x5b6dcc){const _0x3e1797=a7_0x299547,_0x3ac79f=(0x0,decorator_1[_0x3e1797(0x69)])(action_1[_0x3e1797(0x6d)],action_1[_0x3e1797(0x6a)])||{};return _0x5b6dcc?lodash[_0x3e1797(0x74)](_0x3ac79f,_0x5b6dcc):_0x3ac79f;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x1ca8d8=a8_0x3730;(function(_0x3e2e7a,_0x409346){const _0x2f7099=a8_0x3730,_0x21e851=_0x3e2e7a();while(!![]){try{const _0x2dc45e=-parseInt(_0x2f7099(0x1ee))/0x1+parseInt(_0x2f7099(0x1e8))/0x2*(parseInt(_0x2f7099(0x242))/0x3)+-parseInt(_0x2f7099(0x1e5))/0x4+-parseInt(_0x2f7099(0x1ea))/0x5+-parseInt(_0x2f7099(0x205))/0x6*(-parseInt(_0x2f7099(0x235))/0x7)+parseInt(_0x2f7099(0x1f1))/0x8+parseInt(_0x2f7099(0x23d))/0x9;if(_0x2dc45e===_0x409346)break;else _0x21e851['push'](_0x21e851['shift']());}catch(_0x3e924c){_0x21e851['push'](_0x21e851['shift']());}}}(a8_0x4c12,0x61baa));function a8_0x3730(_0x5376da,_0x3c216a){const _0x4c129a=a8_0x4c12();return a8_0x3730=function(_0x373038,_0x7e4a90){_0x373038=_0x373038-0x1e5;let _0x45752f=_0x4c129a[_0x373038];return _0x45752f;},a8_0x3730(_0x5376da,_0x3c216a);}function a8_0x4c12(){const _0xbbbbb5=['rules','split','getRoutes','flags.label','HEADERS','body','query','default','metadata','RULES_KEY','describe','indexOf','allow','method','noreq','file','6fsUndj','length','flags.default','INJECT_CUSTOM_PARAM','required','isArray','title','boolean','@anncic-api/validator','Object','requestMethod','getClassMetadata','items','keys','defineProperty','ACTION_KEY','../types/action','min','function','type','module','push','parameterIndex','__esModule','文件上传-','replace','string','name','join','log','只允许:[','iterator','request','prefix','static/apitest','listModule','WEB_ROUTER_PARAM_KEY','RouteParamTypes','String','summary','object','route','@midwayjs/decorator','path','FILESSTREAM','args','description','/static/apitest','4613651jrtxlG','limit','Number','getMethodParamTypes','startsWith','routes','File','array','2321523HCiYNe','getClassExtendedMetadata','ACTION_ROUTE_KEY','pprefix','propertyData','3FUpWat','find','3163132cLAXXB','FIELDS','Boolean','817058PIcIml','filter','1697325aRbdor','key','routerOptions','QUERY','51931hjOVSo','max','filepath','2055264OLaMes','header','get','flags.description'];a8_0x4c12=function(){return _0xbbbbb5;};return a8_0x4c12();}Object[a8_0x1ca8d8(0x213)](exports,a8_0x1ca8d8(0x21c),{'value':!![]}),exports[a8_0x1ca8d8(0x1f7)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x1ca8d8(0x20d)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x1ca8d8(0x22f)),decorator_3=require(a8_0x1ca8d8(0x22f)),action_1=require(a8_0x1ca8d8(0x215));function getRoutes(_0x23e46f={'prefix':'/','module':![]}){const _0xb1551f=a8_0x1ca8d8;var _0x58abd2,_0xd45649;const _0x2eeb6b=(0x0,decorator_3[_0xb1551f(0x228)])(action_1[_0xb1551f(0x214)]),_0x1b0aa5={},_0x353d1a=Array[_0xb1551f(0x20a)](_0x23e46f[_0xb1551f(0x1e9)]||[])?_0x23e46f['filter']||[]:[_0x23e46f[_0xb1551f(0x1e9)]];_0x19ccca:for(const _0x43b27f of _0x2eeb6b){let _0x1adbab=(0x0,decorator_3[_0xb1551f(0x210)])(action_1[_0xb1551f(0x214)],_0x43b27f),_0x3d238b=(0x0,decorator_3['getClassMetadata'])(action_1[_0xb1551f(0x23f)],_0x43b27f);if(_0x1adbab&&_0x3d238b){let _0x1a83f6=_0x1adbab[_0xb1551f(0x226)],_0x1c6582={};if(_0x23e46f[_0xb1551f(0x219)]&&(0x0,lodash_1[_0xb1551f(0x1f3)])(_0x1adbab,'module',![])!=_0x23e46f[_0xb1551f(0x219)])continue _0x19ccca;else{if(_0x23e46f[_0xb1551f(0x219)]===![]&&!!(0x0,lodash_1[_0xb1551f(0x1f3)])(_0x1adbab,_0xb1551f(0x219),null))continue _0x19ccca;}if(_0x23e46f[_0xb1551f(0x226)]&&!_0x1a83f6['startsWith'](_0x23e46f[_0xb1551f(0x226)]))continue _0x19ccca;_0x1a83f6!=='/'?(_0x1c6582['summary']=(_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab[_0xb1551f(0x1ec)]['tagName'])||(/^\//['test'](_0x1a83f6)?_0x1a83f6[_0xb1551f(0x1f6)]('/')[0x1]:_0x1a83f6),_0x1c6582[_0xb1551f(0x233)]=(_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab[_0xb1551f(0x1ec)][_0xb1551f(0x233)])||_0x1c6582[_0xb1551f(0x22c)],_0x1c6582[_0xb1551f(0x23a)]=[]):(_0x1c6582[_0xb1551f(0x22c)]=(_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab['routerOptions']['tagName'])||'default',_0x1c6582[_0xb1551f(0x233)]=(_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab[_0xb1551f(0x1ec)][_0xb1551f(0x233)])||'',_0x1c6582[_0xb1551f(0x23a)]=[]);_0x23e46f[_0xb1551f(0x1f0)]&&(_0x1c6582[_0xb1551f(0x1f0)]=_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab['filepath']);(_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab[_0xb1551f(0x240)])&&(_0x1c6582[_0xb1551f(0x226)]=_0x1adbab[_0xb1551f(0x240)]);(_0x1adbab===null||_0x1adbab===void 0x0?void 0x0:_0x1adbab[_0xb1551f(0x219)])&&(_0x1c6582[_0xb1551f(0x219)]=_0x1adbab[_0xb1551f(0x219)]);let _0x51d26e=(0x0,decorator_3[_0xb1551f(0x210)])(decorator_2[_0xb1551f(0x208)],_0x43b27f)||{};if(typeof _0x3d238b[Symbol[_0xb1551f(0x224)]]===_0xb1551f(0x217))for(let _0x1ce4b8 of _0x3d238b){let _0x33c992={};_0x33c992[_0xb1551f(0x202)]=_0x1ce4b8[_0xb1551f(0x20f)],_0x33c992[_0xb1551f(0x22e)]=(_0x1a83f6+_0x1ce4b8[_0xb1551f(0x230)])[_0xb1551f(0x21e)](/\/{1,}/,'/'),_0x33c992[_0xb1551f(0x22c)]=(_0x1ce4b8===null||_0x1ce4b8===void 0x0?void 0x0:_0x1ce4b8['routerName'])||_0x1c6582[_0xb1551f(0x22c)]||_0xb1551f(0x1fc),_0x33c992['description']=(_0x1ce4b8===null||_0x1ce4b8===void 0x0?void 0x0:_0x1ce4b8[_0xb1551f(0x233)])||'',_0x33c992['request']=[];if(!(0x0,lodash_1['startsWith'])(_0x33c992[_0xb1551f(0x22e)],_0xb1551f(0x227))&&!(0x0,lodash_1[_0xb1551f(0x239)])(_0x33c992[_0xb1551f(0x22e)],_0xb1551f(0x234))&&_0x353d1a[_0xb1551f(0x200)](_0x33c992['route'])===-0x1){if(!(_0x23e46f===null||_0x23e46f===void 0x0?void 0x0:_0x23e46f[_0xb1551f(0x203)])){let _0xa1bdad=(0x0,decorator_3[_0xb1551f(0x238)])(new _0x43b27f(),_0x1ce4b8[_0xb1551f(0x202)]);for(const _0x2cbd27 in _0xa1bdad){let _0x5fdf43=(_0x58abd2=_0x51d26e[_0x1ce4b8['method']])===null||_0x58abd2===void 0x0?void 0x0:_0x58abd2[_0xb1551f(0x243)](_0x473177=>_0x473177[_0xb1551f(0x21b)]==_0x2cbd27&&_0x473177[_0xb1551f(0x1eb)]===decorator_2[_0xb1551f(0x229)]&&(_0x473177===null||_0x473177===void 0x0?void 0x0:_0x473177[_0xb1551f(0x1fd)]));if(_0x5fdf43===null||_0x5fdf43===void 0x0?void 0x0:_0x5fdf43[_0xb1551f(0x1fd)]){let _0x4854e5=convertTypeToString(_0x5fdf43['metadata'][_0xb1551f(0x218)]||0x0);if([_0xb1551f(0x1fb),_0xb1551f(0x1fa)][_0xb1551f(0x200)](_0x4854e5)!=-0x1&&_0x5fdf43['metadata']['propertyData'][_0xb1551f(0x200)](':')==-0x1&&!_0x33c992[_0xb1551f(0x225)][_0xb1551f(0x243)](_0x746926=>_0x746926[_0xb1551f(0x1eb)]==_0x5fdf43['metadata'][_0xb1551f(0x241)]))_0x33c992['request'][_0xb1551f(0x21a)]({'key':_0x5fdf43['metadata'][_0xb1551f(0x241)],'title':_0x5fdf43['metadata'][_0xb1551f(0x241)],'type':convertSchemaType(_0xa1bdad[_0x5fdf43['parameterIndex']][_0xb1551f(0x220)]),'required':![],'default':'','desc':''});else{if(_0x4854e5=='file'){let _0x3adf3d=((_0xd45649=_0x5fdf43===null||_0x5fdf43===void 0x0?void 0x0:_0x5fdf43[_0xb1551f(0x1fd)])===null||_0xd45649===void 0x0?void 0x0:_0xd45649['propertyData'])||_0xb1551f(0x204);_0x3adf3d[_0xb1551f(0x200)](':')==-0x1&&!_0x33c992['request'][_0xb1551f(0x243)](_0x58786e=>_0x58786e['key']==_0x3adf3d&&_0x58786e['type']==_0xb1551f(0x204))&&_0x33c992[_0xb1551f(0x225)][_0xb1551f(0x21a)]({'key':_0x3adf3d,'title':_0xb1551f(0x21d)+_0x3adf3d,'type':_0xb1551f(0x204),'required':!![],'default':'','desc':''});}}}else{const _0x330760=(0x0,decorator_3[_0xb1551f(0x23e)])(validator_1[_0xb1551f(0x1fe)],_0xa1bdad[_0x2cbd27]);_0x330760&&_0x33c992['request'][_0xb1551f(0x21a)](...getJoiRequest(_0x330760));}}}_0x1c6582['routes'][_0xb1551f(0x21a)](_0x33c992);}}if(_0x1c6582[_0xb1551f(0x23a)][_0xb1551f(0x206)]>0x0){let _0x32e70f=_0x1b0aa5[_0x1a83f6];_0x32e70f?(_0x32e70f['summary']!=_0x1c6582[_0xb1551f(0x22c)]&&(_0x32e70f['summary']=_0x32e70f['summary']+','+_0x1c6582[_0xb1551f(0x22c)]),_0x32e70f[_0xb1551f(0x233)]!=_0x1c6582[_0xb1551f(0x233)]&&(_0x32e70f[_0xb1551f(0x233)]=_0x32e70f[_0xb1551f(0x233)]+','+_0x1c6582[_0xb1551f(0x233)]),_0x32e70f[_0xb1551f(0x23a)]=_0x32e70f['routes']['concat'](_0x1c6582[_0xb1551f(0x23a)]),_0x1b0aa5[_0x1a83f6]=_0x32e70f):_0x1b0aa5[_0x1a83f6]=_0x1c6582;}}}return _0x1b0aa5;}exports[a8_0x1ca8d8(0x1f7)]=getRoutes;function getJoiRequest(_0x3181ce){const _0x301ccb=a8_0x1ca8d8,_0x180192=[];for(let _0x2a3cb7 in _0x3181ce){const _0x3994f0={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x515cf8=typeof _0x3181ce[_0x2a3cb7][_0x301ccb(0x1ff)]=='function'?_0x3181ce[_0x2a3cb7]['describe']():_0x3181ce[_0x2a3cb7];_0x3994f0[_0x301ccb(0x1eb)]=_0x2a3cb7,_0x3994f0[_0x301ccb(0x218)]=_0x515cf8[_0x301ccb(0x218)],_0x3994f0['title']=(0x0,lodash_1[_0x301ccb(0x1f3)])(_0x515cf8,_0x301ccb(0x1f8),_0x2a3cb7),_0x3994f0['default']=(0x0,lodash_1[_0x301ccb(0x1f3)])(_0x515cf8,_0x301ccb(0x207),''),_0x3994f0[_0x301ccb(0x209)]=(0x0,lodash_1[_0x301ccb(0x1f3)])(_0x515cf8,'flags.presence','')==_0x301ccb(0x209),_0x3994f0[_0x301ccb(0x233)]=(0x0,lodash_1['get'])(_0x515cf8,_0x301ccb(0x1f4),'');if(_0x515cf8['type']==_0x301ccb(0x22d))_0x3994f0['children']=getJoiRequest(_0x515cf8[_0x301ccb(0x212)]);else _0x515cf8['type']==_0x301ccb(0x23c)&&_0x515cf8[_0x301ccb(0x211)]&&Array[_0x301ccb(0x20a)](_0x515cf8[_0x301ccb(0x211)])&&_0x515cf8[_0x301ccb(0x211)][0x0]&&console[_0x301ccb(0x222)](_0x2a3cb7+'-array',_0x515cf8);_0x515cf8['allow']&&Array['isArray'](_0x515cf8[_0x301ccb(0x201)])&&_0x515cf8[_0x301ccb(0x201)][_0x301ccb(0x206)]>0x0&&(_0x3994f0[_0x301ccb(0x233)]=_0x301ccb(0x223)+_0x515cf8[_0x301ccb(0x201)][_0x301ccb(0x221)](',')+'];'+_0x3994f0[_0x301ccb(0x233)]);if(_0x3994f0['key']&&_0x3994f0[_0x301ccb(0x218)]){const _0xcb60e1={};for(const _0x3b546e of _0x515cf8[_0x301ccb(0x1f5)]||[]){if(_0x3b546e[_0x301ccb(0x220)]===_0x301ccb(0x216)&&_0x3b546e[_0x301ccb(0x232)])_0xcb60e1['min']=_0x3b546e[_0x301ccb(0x232)]['limit'];else _0x3b546e[_0x301ccb(0x220)]===_0x301ccb(0x1ef)&&(_0xcb60e1[_0x301ccb(0x1ef)]=_0x3b546e['args'][_0x301ccb(0x236)]);}_0x3994f0[_0x301ccb(0x1f5)]=_0xcb60e1;}_0x3994f0[_0x301ccb(0x1eb)]&&_0x3994f0[_0x301ccb(0x20b)]&&_0x180192['push'](_0x3994f0);}return _0x180192;}function convertSchemaType(_0x474a09){const _0x5454df=a8_0x1ca8d8;switch(_0x474a09){case _0x5454df(0x20e):return _0x5454df(0x22d);case _0x5454df(0x1e7):return _0x5454df(0x20c);case _0x5454df(0x237):return'number';case _0x5454df(0x22b):return'string';case _0x5454df(0x23b):return _0x5454df(0x204);default:return _0x5454df(0x21f);}}function convertTypeToString(_0x3758d6){const _0x1bd11a=a8_0x1ca8d8;switch(_0x3758d6){case decorator_1[_0x1bd11a(0x22a)][_0x1bd11a(0x1f9)]:return _0x1bd11a(0x1f2);case decorator_1['RouteParamTypes'][_0x1bd11a(0x1ed)]:return'query';case decorator_1['RouteParamTypes']['PARAM']:return _0x1bd11a(0x230);case decorator_1['RouteParamTypes']['BODY']:return'body';case decorator_1['RouteParamTypes'][_0x1bd11a(0x1e6)]:case decorator_1[_0x1bd11a(0x22a)][_0x1bd11a(0x231)]:case decorator_1['RouteParamTypes']['FILESTREAM']:return _0x1bd11a(0x204);default:return'header';}}
|
|
1
|
+
'use strict';function a8_0xded8(_0x24f0d6,_0xb60f8f){const _0x624c4e=a8_0x624c();return a8_0xded8=function(_0xded8a8,_0x4ecaa0){_0xded8a8=_0xded8a8-0x10e;let _0x3dc70b=_0x624c4e[_0xded8a8];return _0x3dc70b;},a8_0xded8(_0x24f0d6,_0xb60f8f);}function a8_0x624c(){const _0x2eaa4e=['number','array','RULES_KEY','describe','../types/action','function','145351aiOtNa','header','flags.description','/static/apitest','__esModule','metadata','HEADERS','String','Object','request','pprefix','module','default','getMethodParamTypes','文件上传-','concat','BODY','length','QUERY','items','test','rules','max','Number','iterator','noreq','getRoutes','replace','getClassMetadata','split','filter','RouteParamTypes','@midwayjs/decorator','122965xmTTEZ','indexOf','file','isArray','key','2931832GjNHpM','156646jSrZrA','filepath','route','ACTION_ROUTE_KEY','routerOptions','object','9MHyLef','parameterIndex','prefix','INJECT_CUSTOM_PARAM','type','WEB_ROUTER_PARAM_KEY','description','1366788RaVrxj','listModule','allow','required','method','find','body','join','args','title','name','930HylyqW','routes','ACTION_KEY','propertyData','summary','11EiLzNx','tagName','static/apitest','3IFYccN','get','flags.presence','10178xEgClz','-array','children','push','只允许:[','flags.label','limit','log','query','startsWith','11167570fLvKWo','string','Boolean'];a8_0x624c=function(){return _0x2eaa4e;};return a8_0x624c();}const a8_0x2c3d22=a8_0xded8;(function(_0x250d10,_0x5b3237){const _0xc4eaad=a8_0xded8,_0x3d0088=_0x250d10();while(!![]){try{const _0x4406e8=-parseInt(_0xc4eaad(0x153))/0x1+-parseInt(_0xc4eaad(0x11d))/0x2+parseInt(_0xc4eaad(0x13d))/0x3*(-parseInt(_0xc4eaad(0x12a))/0x4)+-parseInt(_0xc4eaad(0x117))/0x5+parseInt(_0xc4eaad(0x135))/0x6*(parseInt(_0xc4eaad(0x140))/0x7)+parseInt(_0xc4eaad(0x11c))/0x8*(-parseInt(_0xc4eaad(0x123))/0x9)+-parseInt(_0xc4eaad(0x14a))/0xa*(-parseInt(_0xc4eaad(0x13a))/0xb);if(_0x4406e8===_0x5b3237)break;else _0x3d0088['push'](_0x3d0088['shift']());}catch(_0x402b7c){_0x3d0088['push'](_0x3d0088['shift']());}}}(a8_0x624c,0x5e294));Object['defineProperty'](exports,a8_0x2c3d22(0x157),{'value':!![]}),exports[a8_0x2c3d22(0x110)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0x2c3d22(0x116)),decorator_2=require(a8_0x2c3d22(0x116)),decorator_3=require('@midwayjs/decorator'),action_1=require(a8_0x2c3d22(0x151));function getRoutes(_0x5f0b8c={'prefix':'/','module':![]}){const _0x1e0e03=a8_0x2c3d22;var _0x43579d,_0x2a9929;const _0xb6dfc0=(0x0,decorator_3[_0x1e0e03(0x12b)])(action_1[_0x1e0e03(0x137)]),_0x3966b9={},_0x23766f=Array[_0x1e0e03(0x11a)](_0x5f0b8c[_0x1e0e03(0x114)]||[])?_0x5f0b8c[_0x1e0e03(0x114)]||[]:[_0x5f0b8c[_0x1e0e03(0x114)]];_0x3e35f2:for(const _0x3453c2 of _0xb6dfc0){let _0x4e6407=(0x0,decorator_3['getClassMetadata'])(action_1[_0x1e0e03(0x137)],_0x3453c2),_0x963a1d=(0x0,decorator_3[_0x1e0e03(0x112)])(action_1[_0x1e0e03(0x120)],_0x3453c2);if(_0x4e6407&&_0x963a1d){let _0x28d96e=_0x4e6407[_0x1e0e03(0x125)],_0x4920b8={};if(_0x5f0b8c[_0x1e0e03(0x15e)]&&(0x0,lodash_1[_0x1e0e03(0x13e)])(_0x4e6407,_0x1e0e03(0x15e),![])!=_0x5f0b8c[_0x1e0e03(0x15e)])continue _0x3e35f2;else{if(_0x5f0b8c[_0x1e0e03(0x15e)]===![]&&!!(0x0,lodash_1[_0x1e0e03(0x13e)])(_0x4e6407,_0x1e0e03(0x15e),null))continue _0x3e35f2;}if(_0x5f0b8c[_0x1e0e03(0x125)]&&!_0x28d96e[_0x1e0e03(0x149)](_0x5f0b8c['prefix']))continue _0x3e35f2;_0x28d96e!=='/'?(_0x4920b8['summary']=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407['routerOptions']['tagName'])||(/^\//[_0x1e0e03(0x167)](_0x28d96e)?_0x28d96e[_0x1e0e03(0x113)]('/')[0x1]:_0x28d96e),_0x4920b8[_0x1e0e03(0x129)]=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x121)]['description'])||_0x4920b8['summary'],_0x4920b8[_0x1e0e03(0x136)]=[]):(_0x4920b8[_0x1e0e03(0x139)]=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407['routerOptions'][_0x1e0e03(0x13b)])||_0x1e0e03(0x15f),_0x4920b8['description']=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x121)][_0x1e0e03(0x129)])||'',_0x4920b8[_0x1e0e03(0x136)]=[]);_0x5f0b8c['filepath']&&(_0x4920b8[_0x1e0e03(0x11e)]=_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x11e)]);(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x15d)])&&(_0x4920b8[_0x1e0e03(0x125)]=_0x4e6407['pprefix']);(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x15e)])&&(_0x4920b8[_0x1e0e03(0x15e)]=_0x4e6407[_0x1e0e03(0x15e)]);let _0x8d1a2=(0x0,decorator_3[_0x1e0e03(0x112)])(decorator_2[_0x1e0e03(0x126)],_0x3453c2)||{};if(typeof _0x963a1d[Symbol[_0x1e0e03(0x10e)]]===_0x1e0e03(0x152))for(let _0x283588 of _0x963a1d){let _0x2c77ac={};_0x2c77ac['method']=_0x283588['requestMethod'],_0x2c77ac['route']=(_0x28d96e+_0x283588['path'])[_0x1e0e03(0x111)](/\/{1,}/,'/'),_0x2c77ac[_0x1e0e03(0x139)]=(_0x283588===null||_0x283588===void 0x0?void 0x0:_0x283588['routerName'])||_0x4920b8[_0x1e0e03(0x139)]||_0x1e0e03(0x15f),_0x2c77ac[_0x1e0e03(0x129)]=(_0x283588===null||_0x283588===void 0x0?void 0x0:_0x283588[_0x1e0e03(0x129)])||'',_0x2c77ac[_0x1e0e03(0x15c)]=[];if(!(0x0,lodash_1[_0x1e0e03(0x149)])(_0x2c77ac['route'],_0x1e0e03(0x13c))&&!(0x0,lodash_1['startsWith'])(_0x2c77ac[_0x1e0e03(0x11f)],_0x1e0e03(0x156))&&_0x23766f[_0x1e0e03(0x118)](_0x2c77ac[_0x1e0e03(0x11f)])===-0x1){if(!(_0x5f0b8c===null||_0x5f0b8c===void 0x0?void 0x0:_0x5f0b8c[_0x1e0e03(0x10f)])){let _0x5d1bdb=(0x0,decorator_3[_0x1e0e03(0x160)])(new _0x3453c2(),_0x283588[_0x1e0e03(0x12e)]);for(const _0x5274b9 in _0x5d1bdb){let _0x36eeae=(_0x43579d=_0x8d1a2[_0x283588['method']])===null||_0x43579d===void 0x0?void 0x0:_0x43579d['find'](_0xa17c0f=>_0xa17c0f[_0x1e0e03(0x124)]==_0x5274b9&&_0xa17c0f[_0x1e0e03(0x11b)]===decorator_2[_0x1e0e03(0x128)]&&(_0xa17c0f===null||_0xa17c0f===void 0x0?void 0x0:_0xa17c0f['metadata']));if(_0x36eeae===null||_0x36eeae===void 0x0?void 0x0:_0x36eeae['metadata']){let _0x577773=convertTypeToString(_0x36eeae['metadata'][_0x1e0e03(0x127)]||0x0);if([_0x1e0e03(0x148),'body']['indexOf'](_0x577773)!=-0x1&&_0x36eeae['metadata'][_0x1e0e03(0x138)][_0x1e0e03(0x118)](':')==-0x1&&!_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x12f)](_0x5e1501=>_0x5e1501[_0x1e0e03(0x11b)]==_0x36eeae[_0x1e0e03(0x158)][_0x1e0e03(0x138)]))_0x2c77ac['request']['push']({'key':_0x36eeae['metadata'][_0x1e0e03(0x138)],'title':_0x36eeae[_0x1e0e03(0x158)][_0x1e0e03(0x138)],'type':convertSchemaType(_0x5d1bdb[_0x36eeae[_0x1e0e03(0x124)]]['name']),'required':![],'default':'','desc':''});else{if(_0x577773=='file'){let _0x124b8e=((_0x2a9929=_0x36eeae===null||_0x36eeae===void 0x0?void 0x0:_0x36eeae[_0x1e0e03(0x158)])===null||_0x2a9929===void 0x0?void 0x0:_0x2a9929['propertyData'])||'file';_0x124b8e[_0x1e0e03(0x118)](':')==-0x1&&!_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x12f)](_0x2a5c5a=>_0x2a5c5a[_0x1e0e03(0x11b)]==_0x124b8e&&_0x2a5c5a[_0x1e0e03(0x127)]==_0x1e0e03(0x119))&&_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x143)]({'key':_0x124b8e,'title':_0x1e0e03(0x161)+_0x124b8e,'type':_0x1e0e03(0x119),'required':!![],'default':'','desc':''});}}}else{const _0x1e401e=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x1e0e03(0x14f)],_0x5d1bdb[_0x5274b9]);_0x1e401e&&_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x143)](...getJoiRequest(_0x1e401e));}}}_0x4920b8[_0x1e0e03(0x136)][_0x1e0e03(0x143)](_0x2c77ac);}}if(_0x4920b8[_0x1e0e03(0x136)][_0x1e0e03(0x164)]>0x0){let _0x4eb6ba=_0x3966b9[_0x28d96e];_0x4eb6ba?(_0x4eb6ba[_0x1e0e03(0x139)]!=_0x4920b8['summary']&&(_0x4eb6ba['summary']=_0x4eb6ba['summary']+','+_0x4920b8[_0x1e0e03(0x139)]),_0x4eb6ba[_0x1e0e03(0x129)]!=_0x4920b8[_0x1e0e03(0x129)]&&(_0x4eb6ba['description']=_0x4eb6ba[_0x1e0e03(0x129)]+','+_0x4920b8[_0x1e0e03(0x129)]),_0x4eb6ba['routes']=_0x4eb6ba[_0x1e0e03(0x136)][_0x1e0e03(0x162)](_0x4920b8[_0x1e0e03(0x136)]),_0x3966b9[_0x28d96e]=_0x4eb6ba):_0x3966b9[_0x28d96e]=_0x4920b8;}}}return _0x3966b9;}exports[a8_0x2c3d22(0x110)]=getRoutes;function getJoiRequest(_0x60b0f3){const _0x1a642a=a8_0x2c3d22,_0x246391=[];for(let _0x41478d in _0x60b0f3){const _0x719e98={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3e2074=typeof _0x60b0f3[_0x41478d][_0x1a642a(0x150)]=='function'?_0x60b0f3[_0x41478d]['describe']():_0x60b0f3[_0x41478d];_0x719e98[_0x1a642a(0x11b)]=_0x41478d,_0x719e98['type']=_0x3e2074[_0x1a642a(0x127)],_0x719e98[_0x1a642a(0x133)]=(0x0,lodash_1[_0x1a642a(0x13e)])(_0x3e2074,_0x1a642a(0x145),_0x41478d),_0x719e98[_0x1a642a(0x15f)]=(0x0,lodash_1[_0x1a642a(0x13e)])(_0x3e2074,'flags.default',''),_0x719e98[_0x1a642a(0x12d)]=(0x0,lodash_1['get'])(_0x3e2074,_0x1a642a(0x13f),'')=='required',_0x719e98[_0x1a642a(0x129)]=(0x0,lodash_1[_0x1a642a(0x13e)])(_0x3e2074,_0x1a642a(0x155),'');if(_0x3e2074[_0x1a642a(0x127)]==_0x1a642a(0x122))_0x719e98[_0x1a642a(0x142)]=getJoiRequest(_0x3e2074['keys']);else _0x3e2074[_0x1a642a(0x127)]==_0x1a642a(0x14e)&&_0x3e2074[_0x1a642a(0x166)]&&Array[_0x1a642a(0x11a)](_0x3e2074['items'])&&_0x3e2074[_0x1a642a(0x166)][0x0]&&console[_0x1a642a(0x147)](_0x41478d+_0x1a642a(0x141),_0x3e2074);_0x3e2074[_0x1a642a(0x12c)]&&Array[_0x1a642a(0x11a)](_0x3e2074['allow'])&&_0x3e2074[_0x1a642a(0x12c)]['length']>0x0&&(_0x719e98['description']=_0x1a642a(0x144)+_0x3e2074[_0x1a642a(0x12c)][_0x1a642a(0x131)](',')+'];'+_0x719e98[_0x1a642a(0x129)]);if(_0x719e98[_0x1a642a(0x11b)]&&_0x719e98[_0x1a642a(0x127)]){const _0x49d6b5={};for(const _0xcff0fa of _0x3e2074[_0x1a642a(0x168)]||[]){if(_0xcff0fa[_0x1a642a(0x134)]==='min'&&_0xcff0fa[_0x1a642a(0x132)])_0x49d6b5['min']=_0xcff0fa[_0x1a642a(0x132)][_0x1a642a(0x146)];else _0xcff0fa[_0x1a642a(0x134)]===_0x1a642a(0x169)&&(_0x49d6b5['max']=_0xcff0fa['args'][_0x1a642a(0x146)]);}_0x719e98['rules']=_0x49d6b5;}_0x719e98[_0x1a642a(0x11b)]&&_0x719e98[_0x1a642a(0x133)]&&_0x246391['push'](_0x719e98);}return _0x246391;}function convertSchemaType(_0x4bc9e5){const _0x402f5c=a8_0x2c3d22;switch(_0x4bc9e5){case _0x402f5c(0x15b):return _0x402f5c(0x122);case _0x402f5c(0x14c):return'boolean';case _0x402f5c(0x16a):return _0x402f5c(0x14d);case _0x402f5c(0x15a):return'string';case'File':return _0x402f5c(0x119);default:return _0x402f5c(0x14b);}}function convertTypeToString(_0x281d3a){const _0xae6498=a8_0x2c3d22;switch(_0x281d3a){case decorator_1[_0xae6498(0x115)][_0xae6498(0x159)]:return'header';case decorator_1['RouteParamTypes'][_0xae6498(0x165)]:return _0xae6498(0x148);case decorator_1['RouteParamTypes']['PARAM']:return'path';case decorator_1['RouteParamTypes'][_0xae6498(0x163)]:return _0xae6498(0x130);case decorator_1[_0xae6498(0x115)]['FIELDS']:case decorator_1[_0xae6498(0x115)]['FILESSTREAM']:case decorator_1[_0xae6498(0x115)]['FILESTREAM']:return _0xae6498(0x119);default:return _0xae6498(0x154);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x175ae7=a9_0x1bdc;(function(_0x825aae,_0xc4180b){var _0x5db1aa=a9_0x1bdc,_0xbdb09e=_0x825aae();while(!![]){try{var _0x51386c=parseInt(_0x5db1aa(0x1a6))/0x1*(-parseInt(_0x5db1aa(0x191))/0x2)+parseInt(_0x5db1aa(0x177))/0x3*(-parseInt(_0x5db1aa(0x195))/0x4)+parseInt(_0x5db1aa(0x1a9))/0x5+-parseInt(_0x5db1aa(0x180))/0x6*(parseInt(_0x5db1aa(0x16e))/0x7)+parseInt(_0x5db1aa(0x196))/0x8+-parseInt(_0x5db1aa(0x1aa))/0x9*(parseInt(_0x5db1aa(0x18a))/0xa)+parseInt(_0x5db1aa(0x1a3))/0xb;if(_0x51386c===_0xc4180b)break;else _0xbdb09e['push'](_0xbdb09e['shift']());}catch(_0x1bff39){_0xbdb09e['push'](_0xbdb09e['shift']());}}}(a9_0x6827,0xc7a1d));var __createBinding=this&&this[a9_0x175ae7(0x184)]||(Object['create']?function(_0x2f2627,_0x368c81,_0x20a946,_0x4049e8){var _0x3e03ea=a9_0x175ae7;if(_0x4049e8===undefined)_0x4049e8=_0x20a946;var _0x42c3f5=Object[_0x3e03ea(0x182)](_0x368c81,_0x20a946);(!_0x42c3f5||(_0x3e03ea(0x188)in _0x42c3f5?!_0x368c81['__esModule']:_0x42c3f5[_0x3e03ea(0x176)]||_0x42c3f5[_0x3e03ea(0x172)]))&&(_0x42c3f5={'enumerable':!![],'get':function(){return _0x368c81[_0x20a946];}}),Object['defineProperty'](_0x2f2627,_0x4049e8,_0x42c3f5);}:function(_0x3d817b,_0x44d08d,_0x86bced,_0x165274){if(_0x165274===undefined)_0x165274=_0x86bced;_0x3d817b[_0x165274]=_0x44d08d[_0x86bced];}),__exportStar=this&&this['__exportStar']||function(_0xc3d9f3,_0x239ee5){var _0x30b180=a9_0x175ae7;for(var _0x319708 in _0xc3d9f3)if(_0x319708!=='default'&&!Object[_0x30b180(0x186)][_0x30b180(0x183)]['call'](_0x239ee5,_0x319708))__createBinding(_0x239ee5,_0xc3d9f3,_0x319708);};Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x19c),{'value':!![]}),exports[a9_0x175ae7(0x199)]=exports[a9_0x175ae7(0x197)]=exports['Scope']=exports['Inject']=exports[a9_0x175ae7(0x1a7)]=exports[a9_0x175ae7(0x17a)]=exports['Config']=exports[a9_0x175ae7(0x18f)]=exports['Init']=exports[a9_0x175ae7(0x17b)]=exports[a9_0x175ae7(0x16f)]=exports[a9_0x175ae7(0x18b)]=exports['Body']=exports['Fields']=exports[a9_0x175ae7(0x1a5)]=exports['File']=exports[a9_0x175ae7(0x187)]=exports[a9_0x175ae7(0x192)]=exports['ValidatorError']=exports[a9_0x175ae7(0x16d)]=exports['ApiService']=exports[a9_0x175ae7(0x1a8)]=exports[a9_0x175ae7(0x171)]=exports[a9_0x175ae7(0x175)]=exports[a9_0x175ae7(0x1a4)]=exports[a9_0x175ae7(0x1a2)]=exports['Apitest']=exports[a9_0x175ae7(0x173)]=exports[a9_0x175ae7(0x19b)]=void 0x0;const getAppsConfig_1=require(a9_0x175ae7(0x170));Object['defineProperty'](exports,a9_0x175ae7(0x199),{'enumerable':!![],'get':function(){var _0x470adf=a9_0x175ae7;return getAppsConfig_1[_0x470adf(0x199)];}}),__exportStar(require('./types/common'),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x175ae7(0x18c));Object[a9_0x175ae7(0x19d)](exports,'Api',{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a9_0x175ae7(0x174));Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x173),{'enumerable':!![],'get':function(){var _0x53c084=a9_0x175ae7;return Action_1[_0x53c084(0x173)];}});var ActionApitest_1=require(a9_0x175ae7(0x19a));Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x17d),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x1a2),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x175ae7(0x198));function a9_0x1bdc(_0x27f8de,_0x5c19bc){var _0x68274e=a9_0x6827();return a9_0x1bdc=function(_0x1bdc58,_0x54d9cc){_0x1bdc58=_0x1bdc58-0x16d;var _0x2ae593=_0x68274e[_0x1bdc58];return _0x2ae593;},a9_0x1bdc(_0x27f8de,_0x5c19bc);}Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x1a4),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a9_0x175ae7(0x18d));Object[a9_0x175ae7(0x19d)](exports,'QueueService',{'enumerable':!![],'get':function(){var _0x3c5b73=a9_0x175ae7;return task_1[_0x3c5b73(0x175)];}});var cache_1=require(a9_0x175ae7(0x1a1));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x133fe4=a9_0x175ae7;return cache_1[_0x133fe4(0x171)];}});var event_1=require(a9_0x175ae7(0x17f));Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x1a8),{'enumerable':!![],'get':function(){var _0x39c5df=a9_0x175ae7;return event_1[_0x39c5df(0x1a8)];}});function a9_0x6827(){var _0xe9f4d3=['1652050nlGITl','2763BrhDMw','ExcelService','10852233cHNLIF','Query','./helper/getAppsConfig','CacheService','configurable','Action','./decorator/Action','QueueService','writable','404367eWOxQb','ApiService','Body','Logger','Headers','@midwayjs/decorator','Apitest','Fields','@anncic-api/event','6xVOoUh','Config','getOwnPropertyDescriptor','hasOwnProperty','__createBinding','File','prototype','Configuration','get','Inject','6530bzvuPJ','Param','./decorator/ActionApi','@midwayjs/task','./service/ExcelService','App','ValidatorError','88TooVsU','ValidatorService','./service/ApiService','CustomConfiguration','28zRolUa','11386480RWhbjS','ScopeEnum','./exception/ApiError','getAppsConfig','./decorator/ActionApitest','Api','__esModule','defineProperty','Init','Scope','./configuration','@anncic-api/cache','getRoutes','30051582hJJozo','ApiError','Files','22129ZeHdym','Provide','EventService'];a9_0x6827=function(){return _0xe9f4d3;};return a9_0x6827();}var ApiService_1=require(a9_0x175ae7(0x193));Object['defineProperty'](exports,a9_0x175ae7(0x178),{'enumerable':!![],'get':function(){var _0x332074=a9_0x175ae7;return ApiService_1[_0x332074(0x178)];}});var ExcelService_1=require(a9_0x175ae7(0x18e));Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x16d),{'enumerable':!![],'get':function(){var _0x2b8e5b=a9_0x175ae7;return ExcelService_1[_0x2b8e5b(0x16d)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x190),{'enumerable':!![],'get':function(){var _0x15b60c=a9_0x175ae7;return validator_1[_0x15b60c(0x190)];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x192),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x175ae7(0x1a0));Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x187),{'enumerable':!![],'get':function(){var _0xed1499=a9_0x175ae7;return configuration_1[_0xed1499(0x194)];}});var decorator_1=require(a9_0x175ae7(0x17c));Object['defineProperty'](exports,a9_0x175ae7(0x185),{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x1a5),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x17e),{'enumerable':!![],'get':function(){var _0x344ef4=a9_0x175ae7;return decorator_1[_0x344ef4(0x17e)];}}),Object['defineProperty'](exports,a9_0x175ae7(0x179),{'enumerable':!![],'get':function(){var _0x2c6ce8=a9_0x175ae7;return decorator_1[_0x2c6ce8(0x179)];}}),Object[a9_0x175ae7(0x19d)](exports,'Param',{'enumerable':!![],'get':function(){var _0xe5650c=a9_0x175ae7;return decorator_1[_0xe5650c(0x18b)];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x16f),{'enumerable':!![],'get':function(){var _0x3d593e=a9_0x175ae7;return decorator_1[_0x3d593e(0x16f)];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x17b),{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){var _0x440464=a9_0x175ae7;return decorator_1[_0x440464(0x19e)];}});var decorator_2=require(a9_0x175ae7(0x17c));Object[a9_0x175ae7(0x19d)](exports,'App',{'enumerable':!![],'get':function(){var _0x4f66ec=a9_0x175ae7;return decorator_2[_0x4f66ec(0x18f)];}}),Object[a9_0x175ae7(0x19d)](exports,'Config',{'enumerable':!![],'get':function(){var _0x560280=a9_0x175ae7;return decorator_2[_0x560280(0x181)];}}),Object['defineProperty'](exports,a9_0x175ae7(0x17a),{'enumerable':!![],'get':function(){var _0x3763b0=a9_0x175ae7;return decorator_2[_0x3763b0(0x17a)];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x1a7),{'enumerable':!![],'get':function(){var _0x416f75=a9_0x175ae7;return decorator_2[_0x416f75(0x1a7)];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x189),{'enumerable':!![],'get':function(){var _0x2e2a5a=a9_0x175ae7;return decorator_2[_0x2e2a5a(0x189)];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x19f),{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a9_0x175ae7(0x19d)](exports,a9_0x175ae7(0x197),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}}),global[a9_0x175ae7(0x199)]=getAppsConfig_1[a9_0x175ae7(0x199)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x4d3ab1=a10_0x4527;(function(_0x54fa55,_0x29aa3f){var _0x28f237=a10_0x4527,_0x42dfde=_0x54fa55();while(!![]){try{var _0x1d4c4b=-parseInt(_0x28f237(0x1a9))/0x1+parseInt(_0x28f237(0x195))/0x2+parseInt(_0x28f237(0x1a4))/0x3*(parseInt(_0x28f237(0x193))/0x4)+-parseInt(_0x28f237(0x187))/0x5+parseInt(_0x28f237(0x1a8))/0x6+parseInt(_0x28f237(0x1ac))/0x7*(parseInt(_0x28f237(0x1b2))/0x8)+-parseInt(_0x28f237(0x197))/0x9*(-parseInt(_0x28f237(0x18c))/0xa);if(_0x1d4c4b===_0x29aa3f)break;else _0x42dfde['push'](_0x42dfde['shift']());}catch(_0x59b700){_0x42dfde['push'](_0x42dfde['shift']());}}}(a10_0x1722,0xb052f));function a10_0x4527(_0x35402f,_0x2e28c2){var _0x17223e=a10_0x1722();return a10_0x4527=function(_0x452751,_0x8ef40e){_0x452751=_0x452751-0x183;var _0x128e66=_0x17223e[_0x452751];return _0x128e66;},a10_0x4527(_0x35402f,_0x2e28c2);}var __decorate=this&&this[a10_0x4d3ab1(0x194)]||function(_0x145c41,_0xe9421a,_0x58aaab,_0x2283c4){var _0x4e2763=a10_0x4d3ab1,_0x1ad23e=arguments['length'],_0x3a8776=_0x1ad23e<0x3?_0xe9421a:_0x2283c4===null?_0x2283c4=Object[_0x4e2763(0x18e)](_0xe9421a,_0x58aaab):_0x2283c4,_0x430c4c;if(typeof Reflect===_0x4e2763(0x1a6)&&typeof Reflect[_0x4e2763(0x19f)]==='function')_0x3a8776=Reflect[_0x4e2763(0x19f)](_0x145c41,_0xe9421a,_0x58aaab,_0x2283c4);else{for(var _0x5e9bee=_0x145c41[_0x4e2763(0x1ab)]-0x1;_0x5e9bee>=0x0;_0x5e9bee--)if(_0x430c4c=_0x145c41[_0x5e9bee])_0x3a8776=(_0x1ad23e<0x3?_0x430c4c(_0x3a8776):_0x1ad23e>0x3?_0x430c4c(_0xe9421a,_0x58aaab,_0x3a8776):_0x430c4c(_0xe9421a,_0x58aaab))||_0x3a8776;}return _0x1ad23e>0x3&&_0x3a8776&&Object['defineProperty'](_0xe9421a,_0x58aaab,_0x3a8776),_0x3a8776;},__metadata=this&&this['__metadata']||function(_0x1171e8,_0x2708db){var _0x18538f=a10_0x4d3ab1;if(typeof Reflect===_0x18538f(0x1a6)&&typeof Reflect['metadata']===_0x18538f(0x1ad))return Reflect[_0x18538f(0x1b4)](_0x1171e8,_0x2708db);};Object[a10_0x4d3ab1(0x19d)](exports,'__esModule',{'value':!![]}),exports[a10_0x4d3ab1(0x1a7)]=void 0x0;const crypto_js_1=require(a10_0x4d3ab1(0x189)),decorator_1=require(a10_0x4d3ab1(0x1a1)),ApiError_1=require(a10_0x4d3ab1(0x1b6));let ApiService=class ApiService{[a10_0x4d3ab1(0x1aa)](_0x1734e8){var _0xf278aa=a10_0x4d3ab1,_0x2664ac;return _0x1734e8?(0x0,crypto_js_1[_0xf278aa(0x19b)])(_0x1734e8+(0x0,crypto_js_1[_0xf278aa(0x19b)])((0x0,crypto_js_1[_0xf278aa(0x19b)])(_0x1734e8)[_0xf278aa(0x1b7)]()+((_0x2664ac=this['config'])===null||_0x2664ac===void 0x0?void 0x0:_0x2664ac['password']))['toString']())[_0xf278aa(0x1b7)]():'';}[a10_0x4d3ab1(0x1bd)](_0x391f9d,_0x36d0f0,_0x2ef4d4=Date['now']()){var _0x10da38=a10_0x4d3ab1;return{'Token':_0x391f9d,'Logintime':_0x2ef4d4,'Checkcode':this[_0x10da38(0x1af)](_0x391f9d,_0x36d0f0,_0x2ef4d4)};}[a10_0x4d3ab1(0x1ba)](_0x4e76d9={}){var _0x4ce749=a10_0x4d3ab1;const _0x16f25d=[],_0x445430=Object[_0x4ce749(0x18f)](Object[_0x4ce749(0x1a2)](_0x4e76d9)['map'](_0x2ba4c4=>[_0x2ba4c4[0x0][_0x4ce749(0x1b0)](),_0x2ba4c4[0x1]]));for(let _0x3dae3f of[_0x4ce749(0x190),_0x4ce749(0x1a0),_0x4ce749(0x185),_0x4ce749(0x1bb),'checkcode']){if(typeof _0x445430[_0x3dae3f]==_0x4ce749(0x1ae))throw new AnnError(ApiError_1['ApiError'][_0x4ce749(0x1b1)],{'message':'缺少头信息:'+_0x3dae3f});_0x16f25d['push'](_0x3dae3f+'='+_0x445430[_0x3dae3f]);}if(Math[_0x4ce749(0x18b)](_0x445430['requesttime'])-Date[_0x4ce749(0x1bc)]()>this[_0x4ce749(0x1b5)][_0x4ce749(0x1b3)])throw new AnnError(ApiError_1[_0x4ce749(0x192)][_0x4ce749(0x18d)]);if(!this['config'][_0x4ce749(0x19c)][_0x445430['device']]||!this[_0x4ce749(0x1b5)][_0x4ce749(0x19c)][_0x445430[_0x4ce749(0x190)]][_0x4ce749(0x19a)]||!this['config'][_0x4ce749(0x19c)][_0x445430[_0x4ce749(0x190)]]['checkcode'])throw new AnnError(ApiError_1[_0x4ce749(0x192)][_0x4ce749(0x1a3)]);if(_0x445430['token']&&_0x445430[_0x4ce749(0x1af)]!=this[_0x4ce749(0x1af)](_0x445430[_0x4ce749(0x185)],_0x445430[_0x4ce749(0x190)],_0x445430[_0x4ce749(0x1bb)]))throw new AnnError(ApiError_1[_0x4ce749(0x192)]['HEADERS_CHECKCODE']);return _0x16f25d[_0x4ce749(0x199)](_0x4ce749(0x191)+this[_0x4ce749(0x1b5)][_0x4ce749(0x19c)][_0x445430['device']][_0x4ce749(0x19a)]),(0x0,crypto_js_1['MD5'])(_0x16f25d['sort']()[_0x4ce749(0x1b9)](''))[_0x4ce749(0x1b7)]();}[a10_0x4d3ab1(0x1af)](_0xd6def1,_0x3b6441,_0xc3ad1e=Date['now']()){var _0x434d50=a10_0x4d3ab1,_0x4d5e98,_0x472b31,_0x29294b;if(!((_0x4d5e98=this[_0x434d50(0x1b5)])===null||_0x4d5e98===void 0x0?void 0x0:_0x4d5e98[_0x434d50(0x19c)][_0x3b6441])||!((_0x29294b=(_0x472b31=this[_0x434d50(0x1b5)])===null||_0x472b31===void 0x0?void 0x0:_0x472b31['devices'][_0x3b6441])===null||_0x29294b===void 0x0?void 0x0:_0x29294b[_0x434d50(0x1af)]))throw new AnnError(ApiError_1[_0x434d50(0x192)][_0x434d50(0x1a3)]);return(0x0,crypto_js_1[_0x434d50(0x19b)])(_0xd6def1+(0x0,crypto_js_1['MD5'])(_0xc3ad1e+this[_0x434d50(0x1b5)][_0x434d50(0x19c)][_0x3b6441][_0x434d50(0x1af)])['toString']())[_0x434d50(0x1b7)]();}[a10_0x4d3ab1(0x1be)](_0x292efd={}){var _0x2f12e1=a10_0x4d3ab1;const _0x5d59c9=Object[_0x2f12e1(0x18f)](Object[_0x2f12e1(0x1a2)](_0x292efd)[_0x2f12e1(0x198)](_0x372bb0=>[_0x372bb0[0x0][_0x2f12e1(0x1b0)](),_0x372bb0[0x1]]));if(!(_0x5d59c9===null||_0x5d59c9===void 0x0?void 0x0:_0x5d59c9[_0x2f12e1(0x1b8)]))throw new AnnError(ApiError_1[_0x2f12e1(0x192)][_0x2f12e1(0x1b1)],{'message':_0x2f12e1(0x186)});if((_0x5d59c9===null||_0x5d59c9===void 0x0?void 0x0:_0x5d59c9[_0x2f12e1(0x1b8)])!=this[_0x2f12e1(0x1ba)](_0x5d59c9))throw new AnnError(ApiError_1[_0x2f12e1(0x192)][_0x2f12e1(0x18a)]);return!![];}};function a10_0x1722(){var _0x13e7dc=['420424CxKtJV','timeout','metadata','config','../exception/ApiError','toString','signature','join','getsign','logintime','now','getcheck','checksign','anncicapi','Singleton','token','缺少头信息:signature','4598200lbaYKK','prototype','crypto-js','HEADERS_SIGNATURE','abs','10Hweygg','TIMEOUT','getOwnPropertyDescriptor','fromEntries','device','secret=','ApiError','4XccaNP','__decorate','467940rRrKyz','Config','3748446eNOEjb','map','push','secret','MD5','devices','defineProperty','ScopeEnum','decorate','requesttime','@midwayjs/decorator','entries','HEADERS_DEVICE','1447401jxlONY','design:type','object','ApiService','4908210MfWbkZ','519315JtNVoa','password','length','28LuKgsd','function','undefined','checkcode','toLowerCase','HEADERS_LACK'];a10_0x1722=function(){return _0x13e7dc;};return a10_0x1722();}__decorate([(0x0,decorator_1[a10_0x4d3ab1(0x196)])(a10_0x4d3ab1(0x183)),__metadata(a10_0x4d3ab1(0x1a5),Object)],ApiService[a10_0x4d3ab1(0x188)],a10_0x4d3ab1(0x1b5),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1['Scope'])(decorator_1[a10_0x4d3ab1(0x19e)][a10_0x4d3ab1(0x184)])],ApiService),exports[a10_0x4d3ab1(0x1a7)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x45101e=a11_0x493f;(function(_0x37a02c,_0x3653ae){const _0x52715d=a11_0x493f,_0x269a49=_0x37a02c();while(!![]){try{const _0x49cb34=-parseInt(_0x52715d(0x1c4))/0x1+-parseInt(_0x52715d(0x1e6))/0x2+-parseInt(_0x52715d(0x20e))/0x3*(parseInt(_0x52715d(0x1fd))/0x4)+parseInt(_0x52715d(0x1cd))/0x5+-parseInt(_0x52715d(0x201))/0x6*(-parseInt(_0x52715d(0x1e0))/0x7)+parseInt(_0x52715d(0x1c5))/0x8*(-parseInt(_0x52715d(0x1d9))/0x9)+parseInt(_0x52715d(0x1df))/0xa;if(_0x49cb34===_0x3653ae)break;else _0x269a49['push'](_0x269a49['shift']());}catch(_0x40f3c8){_0x269a49['push'](_0x269a49['shift']());}}}(a11_0x3d55,0xc303f));var __decorate=this&&this[a11_0x45101e(0x1da)]||function(_0x13e353,_0x2ed29a,_0x55bfa0,_0x4649b7){const _0x7b368c=a11_0x45101e;var _0xedf6cf=arguments[_0x7b368c(0x1e9)],_0x43c012=_0xedf6cf<0x3?_0x2ed29a:_0x4649b7===null?_0x4649b7=Object[_0x7b368c(0x1f4)](_0x2ed29a,_0x55bfa0):_0x4649b7,_0x3a0800;if(typeof Reflect===_0x7b368c(0x1f0)&&typeof Reflect[_0x7b368c(0x209)]===_0x7b368c(0x20b))_0x43c012=Reflect['decorate'](_0x13e353,_0x2ed29a,_0x55bfa0,_0x4649b7);else{for(var _0x5bec2c=_0x13e353[_0x7b368c(0x1e9)]-0x1;_0x5bec2c>=0x0;_0x5bec2c--)if(_0x3a0800=_0x13e353[_0x5bec2c])_0x43c012=(_0xedf6cf<0x3?_0x3a0800(_0x43c012):_0xedf6cf>0x3?_0x3a0800(_0x2ed29a,_0x55bfa0,_0x43c012):_0x3a0800(_0x2ed29a,_0x55bfa0))||_0x43c012;}return _0xedf6cf>0x3&&_0x43c012&&Object[_0x7b368c(0x1e8)](_0x2ed29a,_0x55bfa0,_0x43c012),_0x43c012;},__metadata=this&&this[a11_0x45101e(0x1ef)]||function(_0x1bb687,_0x8dca85){const _0x253fea=a11_0x45101e;if(typeof Reflect===_0x253fea(0x1f0)&&typeof Reflect[_0x253fea(0x1dc)]===_0x253fea(0x20b))return Reflect[_0x253fea(0x1dc)](_0x1bb687,_0x8dca85);},__param=this&&this[a11_0x45101e(0x1d2)]||function(_0x17535c,_0x40928c){return function(_0x3c25aa,_0x5c6497){_0x40928c(_0x3c25aa,_0x5c6497,_0x17535c);};};Object[a11_0x45101e(0x1e8)](exports,'__esModule',{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x45101e(0x1d5)]=void 0x0;function a11_0x493f(_0x2eb827,_0xb12fd6){const _0x3d5510=a11_0x3d55();return a11_0x493f=function(_0x493f07,_0x13ff42){_0x493f07=_0x493f07-0x1c3;let _0x117d6f=_0x3d5510[_0x493f07];return _0x117d6f;},a11_0x493f(_0x2eb827,_0xb12fd6);}const path_1=require(a11_0x45101e(0x1ed)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require(a11_0x45101e(0x1ec)),decorator_2=require(a11_0x45101e(0x1ec)),getRoutes_1=require(a11_0x45101e(0x1d7));function a11_0x3d55(){const _0x45aa00=['design:paramtypes','MidwayEnvironmentService','__param','Inject','apiteststatic','ApitestService','apitest','../helper/getRoutes','route','27huxlkj','__decorate','apitestmodule','metadata','.js','Environment','13375300RfcWFG','320747BBMmsv','extname','filepath','__devices__','Request','readFileSync','2077596cPBBkR','ctx','defineProperty','length','design:type','Scope','@midwayjs/decorator','path','stringify','__metadata','object','prefix','ScopeEnum','apidoc','getOwnPropertyDescriptor','../../public/','push','url','anncicapi','request','description','isDevelopmentEnvironment','/apiteststatic/','625936iQHbnx','.css','getRoutes','set','144zSOMva','__apiList__','/index.html','replace','substring','Singleton','module','/apiteststatic/*','decorate','public,\x20max-age=604800','function','devices','join','3lWzfiw','Get','Config','Param','config','510698xyASwV','3220024eiCnfo','apitesthtml','/apitest-:module','content-type','text/css;\x20charset=utf-8','utf-8','routes','method','6375190jCcOrA','design:returntype','prototype'];a11_0x3d55=function(){return _0x45aa00;};return a11_0x3d55();}let ApitestService=class ApitestService{async[a11_0x45101e(0x1f3)](_0x4a92ab){const _0x5cd636=a11_0x45101e,_0x3e6f54=(0x0,getRoutes_1[_0x5cd636(0x1ff)])(_0x4a92ab),_0x8dc9b=[];for(let _0x2d8832 in _0x3e6f54){for(let _0x5e035d in _0x3e6f54[_0x2d8832][_0x5cd636(0x1cb)]){let _0x2b4c91=_0x3e6f54[_0x2d8832][_0x5cd636(0x1cb)][_0x5e035d],_0x1bf1db=[];for(let _0x27faed in _0x2b4c91['request']){_0x1bf1db[_0x5cd636(0x1f6)](_0x2b4c91['request'][_0x27faed]);}_0x8dc9b['push']({'title':_0x3e6f54[_0x2d8832]['summary']+':'+_0x2b4c91['summary'],'prefix':_0x3e6f54[_0x2d8832][_0x5cd636(0x1f1)],'router':_0x2b4c91[_0x5cd636(0x1d8)],'method':_0x2b4c91[_0x5cd636(0x1cc)],'describe':_0x2b4c91[_0x5cd636(0x1fa)]||'','filepath':_0x3e6f54[_0x2d8832]['filepath']||'','request':_0x1bf1db});}}const _0x395769=(0x0,path_1[_0x5cd636(0x20d)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x5cd636(0x1e5)])(_0x395769,{'encoding':'utf-8'})[_0x5cd636(0x204)](/__res__/g,_0x5cd636(0x1fc))['replace'](_0x5cd636(0x202),JSON[_0x5cd636(0x1ee)](_0x8dc9b))[_0x5cd636(0x204)](_0x5cd636(0x1e3),JSON['stringify'](this[_0x5cd636(0x1c3)][_0x5cd636(0x20c)]));}};__decorate([(0x0,decorator_2[a11_0x45101e(0x210)])('anncicapi'),__metadata(a11_0x45101e(0x1ea),Object)],ApitestService[a11_0x45101e(0x1cf)],a11_0x45101e(0x1c3),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])(a11_0x45101e(0x1d6)),(0x0,decorator_2[a11_0x45101e(0x1eb)])(decorator_2[a11_0x45101e(0x1f2)][a11_0x45101e(0x206)])],ApitestService),exports[a11_0x45101e(0x1d5)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x1021f0=a11_0x45101e;if(this[_0x1021f0(0x1d6)]){const _0x37b41f={'module':![]};return this[_0x1021f0(0x1de)]['isDevelopmentEnvironment']()&&(_0x37b41f['filepath']=!![]),await this[_0x1021f0(0x1d5)][_0x1021f0(0x1f3)](_0x37b41f);}return'';}async[a11_0x45101e(0x1db)](_0x5a0397){const _0x2e60f4=a11_0x45101e;if(this[_0x2e60f4(0x1d6)]){const _0x22f169={'module':_0x5a0397};return this[_0x2e60f4(0x1de)][_0x2e60f4(0x1fb)]()&&(_0x22f169[_0x2e60f4(0x1e2)]=!![]),await this[_0x2e60f4(0x1d5)]['apidoc'](_0x22f169);}return'';}async[a11_0x45101e(0x1d4)](){const _0x241520=a11_0x45101e;if((0x0,path_1[_0x241520(0x1e1)])(this[_0x241520(0x1e7)][_0x241520(0x1f9)]['url'])){var _0x2c5fd0=(0x0,path_1['join'])(__dirname,_0x241520(0x1f5)+this[_0x241520(0x1e7)][_0x241520(0x1f9)]['url'][_0x241520(0x204)](_0x241520(0x1fc),'/'));if(_0x2c5fd0[_0x241520(0x205)](_0x2c5fd0[_0x241520(0x1e9)]-0xb)!=_0x241520(0x203)){this['ctx'][_0x241520(0x200)]('cache-control',_0x241520(0x20a));if((0x0,path_1['extname'])(this['ctx'][_0x241520(0x1f9)][_0x241520(0x1f7)])==_0x241520(0x1dd))this[_0x241520(0x1e7)][_0x241520(0x200)](_0x241520(0x1c8),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x241520(0x1e1)])(this[_0x241520(0x1e7)][_0x241520(0x1f9)]['url'])==_0x241520(0x1fe)&&this[_0x241520(0x1e7)][_0x241520(0x200)](_0x241520(0x1c8),_0x241520(0x1c9));return(0x0,fs_1['existsSync'])(_0x2c5fd0)&&(0x0,fs_1['readFileSync'])(_0x2c5fd0,{'encoding':_0x241520(0x1ca)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x45101e(0x1d3)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x45101e(0x1cf)],a11_0x45101e(0x1e7),void 0x0),__decorate([(0x0,decorator_2[a11_0x45101e(0x1d3)])(),__metadata(a11_0x45101e(0x1ea),core_1[a11_0x45101e(0x1d1)])],ApitestStaticController[a11_0x45101e(0x1cf)],a11_0x45101e(0x1de),void 0x0),__decorate([(0x0,decorator_2[a11_0x45101e(0x1d3)])(),__metadata(a11_0x45101e(0x1ea),ApitestService)],ApitestStaticController[a11_0x45101e(0x1cf)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a11_0x45101e(0x210)])(a11_0x45101e(0x1d6)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x45101e(0x1cf)],a11_0x45101e(0x1d6),void 0x0),__decorate([(0x0,decorator_2[a11_0x45101e(0x210)])(a11_0x45101e(0x1f8)),__metadata('design:type',Object)],ApitestStaticController[a11_0x45101e(0x1cf)],a11_0x45101e(0x1c3),void 0x0),__decorate([(0x0,decorator_1[a11_0x45101e(0x20f)])('/apitest'),__metadata('design:type',Function),__metadata(a11_0x45101e(0x1d0),[]),__metadata(a11_0x45101e(0x1ce),Promise)],ApitestStaticController[a11_0x45101e(0x1cf)],a11_0x45101e(0x1c6),null),__decorate([(0x0,decorator_1['Get'])(a11_0x45101e(0x1c7)),__param(0x0,(0x0,decorator_1[a11_0x45101e(0x211)])(a11_0x45101e(0x207))),__metadata('design:type',Function),__metadata(a11_0x45101e(0x1d0),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x45101e(0x1db),null),__decorate([(0x0,decorator_1[a11_0x45101e(0x20f)])(a11_0x45101e(0x208)),__metadata(a11_0x45101e(0x1ea),Function),__metadata(a11_0x45101e(0x1d0),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x45101e(0x1cf)],a11_0x45101e(0x1d4),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2['Scope'])(decorator_2[a11_0x45101e(0x1f2)][a11_0x45101e(0x1e4)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x3e2776=a12_0x4e4a;(function(_0x474699,_0x59e53c){const _0x2334a0=a12_0x4e4a,_0x716be4=_0x474699();while(!![]){try{const _0x635a=parseInt(_0x2334a0(0x111))/0x1*(parseInt(_0x2334a0(0x13e))/0x2)+parseInt(_0x2334a0(0x114))/0x3*(-parseInt(_0x2334a0(0x138))/0x4)+parseInt(_0x2334a0(0x12b))/0x5*(-parseInt(_0x2334a0(0x118))/0x6)+parseInt(_0x2334a0(0x139))/0x7+parseInt(_0x2334a0(0x115))/0x8+-parseInt(_0x2334a0(0x124))/0x9+parseInt(_0x2334a0(0x113))/0xa*(parseInt(_0x2334a0(0x13b))/0xb);if(_0x635a===_0x59e53c)break;else _0x716be4['push'](_0x716be4['shift']());}catch(_0x26dd7c){_0x716be4['push'](_0x716be4['shift']());}}}(a12_0x1f16,0x26123));var __decorate=this&&this[a12_0x3e2776(0x103)]||function(_0x557a96,_0x317c1d,_0x33dbf3,_0x49a593){const _0xfcf2f1=a12_0x3e2776;var _0xcd0073=arguments['length'],_0x5aa58f=_0xcd0073<0x3?_0x317c1d:_0x49a593===null?_0x49a593=Object[_0xfcf2f1(0x120)](_0x317c1d,_0x33dbf3):_0x49a593,_0x200012;if(typeof Reflect===_0xfcf2f1(0x136)&&typeof Reflect['decorate']==='function')_0x5aa58f=Reflect[_0xfcf2f1(0x13d)](_0x557a96,_0x317c1d,_0x33dbf3,_0x49a593);else{for(var _0x35b862=_0x557a96[_0xfcf2f1(0x12d)]-0x1;_0x35b862>=0x0;_0x35b862--)if(_0x200012=_0x557a96[_0x35b862])_0x5aa58f=(_0xcd0073<0x3?_0x200012(_0x5aa58f):_0xcd0073>0x3?_0x200012(_0x317c1d,_0x33dbf3,_0x5aa58f):_0x200012(_0x317c1d,_0x33dbf3))||_0x5aa58f;}return _0xcd0073>0x3&&_0x5aa58f&&Object[_0xfcf2f1(0x12c)](_0x317c1d,_0x33dbf3,_0x5aa58f),_0x5aa58f;},__metadata=this&&this['__metadata']||function(_0x23d20f,_0x22c949){const _0x5ad8f2=a12_0x3e2776;if(typeof Reflect===_0x5ad8f2(0x136)&&typeof Reflect[_0x5ad8f2(0x125)]===_0x5ad8f2(0x135))return Reflect['metadata'](_0x23d20f,_0x22c949);};Object[a12_0x3e2776(0x12c)](exports,'__esModule',{'value':!![]}),exports[a12_0x3e2776(0x128)]=void 0x0;function a12_0x1f16(){const _0x3acddd=['value','Scope','existsSync','findRows','Singleton','function','object','endsWith','2612vzVHBa','1892191ddfEZa','isNumber','3562955ZheOpn','handler','decorate','2JJfjBE','header','addRow','substring','replace','parse','prototype','App','__decorate','Sheet\x201','download','getWorksheet','exceljs','toString','app','getAppDir','cellCount','key','Workbook','mkdirSync','col','trim','156425QLTqOi','koa-send','10BEuLgi','321mRsDwa','387320pAaPkP','public/xlsx','startsWith','18JhaLyH','ScopeEnum','readFile','Api\x20Excel\x20Error:\x20','\x20is\x20read\x20fail','get','xlsx','writeFile','getOwnPropertyDescriptor','@midwayjs/decorator','random','keys','2684763LGqXjC','metadata','rowCount','eachCell','ExcelService','Provide','getCell','458235fWHXdt','defineProperty','length','addWorksheet','columns'];a12_0x1f16=function(){return _0x3acddd;};return a12_0x1f16();}const fs=require('fs'),exceljs=require(a12_0x3e2776(0x107)),koasend=require(a12_0x3e2776(0x112)),decorator_1=require(a12_0x3e2776(0x121));function a12_0x4e4a(_0x180292,_0x9601a){const _0x1f1685=a12_0x1f16();return a12_0x4e4a=function(_0x4e4a4a,_0x33a0d3){_0x4e4a4a=_0x4e4a4a-0xfe;let _0x174685=_0x1f1685[_0x4e4a4a];return _0x174685;},a12_0x4e4a(_0x180292,_0x9601a);}let ExcelService=class ExcelService{async[a12_0x3e2776(0x100)](_0x5da9bf,_0x1e0fe2,_0x315f7c=[0x0]){const _0xd04908=a12_0x3e2776;var _0xac8983,_0x203ac8;const _0xfd5cdf=new exceljs[(_0xd04908(0x10d))](),_0x9f5e5a=[];let _0x3b98f4=_0x5da9bf['replace'](/(\\|\/)/g,'/')[_0xd04908(0xff)](/\/{2,}/g,'/');!(_0x3b98f4===null||_0x3b98f4===void 0x0?void 0x0:_0x3b98f4[_0xd04908(0x117)]('/'))&&(_0x3b98f4=this[_0xd04908(0x109)][_0xd04908(0x10a)]()+'/'+_0x3b98f4);try{await _0xfd5cdf[_0xd04908(0x11e)][_0xd04908(0x11a)](_0x3b98f4);}catch(_0x28eaa0){return console['log'](_0xd04908(0x11b)+_0x3b98f4+_0xd04908(0x11c)),_0x9f5e5a;}for(const _0x42f0e0 of _0x315f7c){const _0xa68185=lodash[_0xd04908(0x13a)](_0x42f0e0)?((_0xac8983=_0xfd5cdf['worksheets'])===null||_0xac8983===void 0x0?void 0x0:_0xac8983[_0x42f0e0])||undefined:_0xfd5cdf[_0xd04908(0x106)](_0x42f0e0);if(_0xa68185){var _0x4cea77=0x1;const _0x51da5b=_0xa68185['getRow'](0x1),_0x227cdc=await new Promise(_0x4312ec=>{const _0x172682=_0xd04908,_0x38f4fd={};_0x51da5b[_0x172682(0x127)]((_0x339a89,_0x21175f)=>{const _0x196d50=_0x172682;for(const _0x1e34aa of _0x1e0fe2){if(_0x339a89[_0x196d50(0x130)]==_0x1e34aa[_0x196d50(0x13f)])_0x4cea77=0x2,_0x38f4fd[_0x1e34aa[_0x196d50(0x10c)]]={'header':_0x339a89['col'],'handler':_0x1e34aa['handler']};else{if(!_0x38f4fd[_0x1e34aa['key']])try{const _0x20b37b=_0x51da5b[_0x196d50(0x12a)](_0x1e34aa['header']);_0x20b37b&&(_0x38f4fd[_0x1e34aa[_0x196d50(0x10c)]]={'header':_0x20b37b[_0x196d50(0x10f)],'handler':_0x1e34aa[_0x196d50(0x13c)]});}catch{}}}_0x51da5b[_0x196d50(0x10b)]==_0x21175f&&_0x4312ec(_0x38f4fd);});});for(const _0x3e4d7c of _0xa68185[_0xd04908(0x133)](_0x4cea77,_0xa68185[_0xd04908(0x126)])){const _0x2f90ab={};for(const _0x3345da in _0x227cdc){_0x227cdc[_0x3345da][_0xd04908(0x13f)]&&(typeof((_0x203ac8=_0x227cdc[_0x3345da])===null||_0x203ac8===void 0x0?void 0x0:_0x203ac8['handler'])==_0xd04908(0x135)?_0x2f90ab[_0x3345da]=_0x227cdc[_0x3345da][_0xd04908(0x13c)](_0x3e4d7c[_0xd04908(0x12a)](lodash[_0xd04908(0x110)](''+_0x227cdc[_0x3345da]['header'],'\x20'))['toString']()):_0x2f90ab[_0x3345da]=_0x3e4d7c[_0xd04908(0x12a)](_0x227cdc[_0x3345da][_0xd04908(0x13f)])[_0xd04908(0x108)]());}Object[_0xd04908(0x123)](_0x2f90ab)[_0xd04908(0x12d)]>0x0&&_0x9f5e5a['push'](_0x2f90ab);}}}return _0x9f5e5a;}async['export'](_0x1062ec,_0x12f459,_0xc846c9,_0x603a05=a12_0x3e2776(0x116)){const _0x58b30d=a12_0x3e2776;var _0xf0a790,_0x3465c1;const _0xa6b942=new exceljs['Workbook'](),_0x5d0282={},_0x38e235=[],_0x31de18=_0xa6b942[_0x58b30d(0x12e)](_0x58b30d(0x104),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x2ad19d in _0x12f459){_0x5d0282[_0x12f459[_0x2ad19d][_0x58b30d(0x10c)]]=_0x12f459[_0x2ad19d][_0x58b30d(0x13f)],_0x38e235['push']({'header':_0x12f459[_0x2ad19d][_0x58b30d(0x13f)],'key':(_0xf0a790=_0x12f459[_0x2ad19d])===null||_0xf0a790===void 0x0?void 0x0:_0xf0a790['key'][_0x58b30d(0xff)](/\./g,'_')});}_0x31de18[_0x58b30d(0x12f)]=_0x38e235;for(const _0x2b1490 of _0xc846c9){const _0x4fa42a={};for(const _0x2af6cc in _0x12f459){typeof((_0x3465c1=_0x12f459[_0x2af6cc])===null||_0x3465c1===void 0x0?void 0x0:_0x3465c1['handler'])=='function'?_0x4fa42a[_0x12f459[_0x2af6cc][_0x58b30d(0x10c)][_0x58b30d(0xff)](/\./g,'_')]=await _0x12f459[_0x2af6cc]['handler'](_0x2b1490):_0x4fa42a[_0x12f459[_0x2af6cc][_0x58b30d(0x10c)]['replace'](/\./g,'_')]=lodash[_0x58b30d(0x11d)](_0x2b1490,_0x12f459[_0x2af6cc][_0x58b30d(0x10c)],'');}_0x31de18[_0x58b30d(0x140)](_0x4fa42a);}let _0x46f5a3='';const _0x295880=_0x1062ec+'-'+lodash[_0x58b30d(0x122)](0x2710,0x1869f)+'.xlsx';if(_0x603a05&&_0x603a05[_0x58b30d(0x117)]('/'))_0x46f5a3=''+_0x603a05;else _0x603a05&&!_0x603a05[_0x58b30d(0x117)]('/')&&!_0x603a05[_0x58b30d(0x117)]('\x5c')?_0x46f5a3=this[_0x58b30d(0x109)]['getAppDir']()+'/'+_0x603a05:_0x46f5a3=this[_0x58b30d(0x109)][_0x58b30d(0x10a)]()+'/public/xlsx';return(_0x46f5a3[_0x58b30d(0x137)]('/')||_0x46f5a3['endsWith']('\x5c'))&&(_0x46f5a3=_0x46f5a3[_0x58b30d(0xfe)](0x0,_0x46f5a3[_0x58b30d(0x12d)]-0x1)),_0x46f5a3=_0x46f5a3['replace'](/(\\|\/)/g,'/')[_0x58b30d(0xff)](/\/{2,}/g,'/'),!fs[_0x58b30d(0x132)](_0x46f5a3)&&fs[_0x58b30d(0x10e)](_0x46f5a3,{'recursive':!![]}),await _0xa6b942[_0x58b30d(0x11e)][_0x58b30d(0x11f)]((_0x46f5a3+'/'+_0x295880)[_0x58b30d(0xff)](/(\\|\/)/g,'/')[_0x58b30d(0xff)](/\/{2,}/g,'/')),{'filename':_0x295880,'filepath':(_0x46f5a3[_0x58b30d(0xfe)]((''+this['app']['getAppDir']())[_0x58b30d(0x12d)])+'/'+_0x295880)[_0x58b30d(0xff)](/(\\|\/)/g,'/')[_0x58b30d(0xff)](/\/{2,}/g,'/')};}async[a12_0x3e2776(0x105)](_0x4cff91,_0x1e2f28){return await koasend(_0x4cff91,''+_0x1e2f28);}};__decorate([(0x0,decorator_1[a12_0x3e2776(0x102)])(),__metadata('design:type',Object)],ExcelService[a12_0x3e2776(0x101)],a12_0x3e2776(0x109),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x3e2776(0x129)])(),(0x0,decorator_1[a12_0x3e2776(0x131)])(decorator_1[a12_0x3e2776(0x119)][a12_0x3e2776(0x134)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x39faad=a13_0x5f24;(function(_0x147f25,_0x26a847){var _0x3dbac=a13_0x5f24,_0x357016=_0x147f25();while(!![]){try{var _0x1053bf=-parseInt(_0x3dbac(0x89))/0x1+-parseInt(_0x3dbac(0x8b))/0x2+parseInt(_0x3dbac(0x8a))/0x3+-parseInt(_0x3dbac(0x8c))/0x4*(parseInt(_0x3dbac(0x85))/0x5)+-parseInt(_0x3dbac(0x87))/0x6*(parseInt(_0x3dbac(0x83))/0x7)+parseInt(_0x3dbac(0x8d))/0x8*(parseInt(_0x3dbac(0x88))/0x9)+parseInt(_0x3dbac(0x90))/0xa;if(_0x1053bf===_0x26a847)break;else _0x357016['push'](_0x357016['shift']());}catch(_0x30d7d6){_0x357016['push'](_0x357016['shift']());}}}(a13_0x4f58,0x2ac69));Object[a13_0x39faad(0x92)](exports,a13_0x39faad(0x91),{'value':!![]}),exports[a13_0x39faad(0x84)]=exports['APPSCONFIG_KEY']=exports[a13_0x39faad(0x8f)]=exports[a13_0x39faad(0x82)]=void 0x0,exports[a13_0x39faad(0x82)]='anncic-api:action',exports[a13_0x39faad(0x8f)]=a13_0x39faad(0x86),exports[a13_0x39faad(0x8e)]=a13_0x39faad(0x81);function a13_0x5f24(_0x3d607c,_0x3122bd){var _0x4f58d6=a13_0x4f58();return a13_0x5f24=function(_0x5f2474,_0x1b9a3b){_0x5f2474=_0x5f2474-0x81;var _0xfe80d5=_0x4f58d6[_0x5f2474];return _0xfe80d5;},a13_0x5f24(_0x3d607c,_0x3122bd);}class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;function a13_0x4f58(){var _0x4b3608=['202974QjyZdt','4VlwXCO','25952GsWBCM','APPSCONFIG_KEY','ACTION_ROUTE_KEY','5937730sqhqRR','__esModule','defineProperty','anncic-api:apps:config','ACTION_KEY','883358yLuGVW','AppsConfigTmp','1091045Stduow','anncic-api:action:route','12XHDrZE','459dGoylA','260640QnaVlD','746148CvlALf'];a13_0x4f58=function(){return _0x4b3608;};return a13_0x4f58();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x5dc999=a14_0x44be;(function(_0x3a1ce0,_0x455f1b){var _0x33d249=a14_0x44be,_0x2cb50a=_0x3a1ce0();while(!![]){try{var _0x12728b=-parseInt(_0x33d249(0x168))/0x1*(-parseInt(_0x33d249(0x18a))/0x2)+-parseInt(_0x33d249(0x16d))/0x3*(-parseInt(_0x33d249(0x176))/0x4)+parseInt(_0x33d249(0x183))/0x5*(parseInt(_0x33d249(0x17d))/0x6)+-parseInt(_0x33d249(0x185))/0x7*(parseInt(_0x33d249(0x170))/0x8)+-parseInt(_0x33d249(0x16a))/0x9+-parseInt(_0x33d249(0x188))/0xa+parseInt(_0x33d249(0x173))/0xb;if(_0x12728b===_0x455f1b)break;else _0x2cb50a['push'](_0x2cb50a['shift']());}catch(_0x944921){_0x2cb50a['push'](_0x2cb50a['shift']());}}}(a14_0x536c,0xc2981));function a14_0x536c(){var _0x7fee69=['@anncic-api/validator','排序方式','35558479XQYOvV','number','_size','8SbZqTQ','integer','PageDTO','valid','trim','_isreverse','object','258NbbTqg','RuleType','1:是;0:否','Rule','_order','是否倒序','65785VwIlrt','defineProperty','28RnwUJA','min','design:type','13491740olkDbK','__metadata','2IavMBo','string','第一页为1,第二页为2','214543DadQwW','__esModule','7654734FHTXiO','prototype','分页数量','557637sZLrbM','metadata','function','2775768hFqdSX'];a14_0x536c=function(){return _0x7fee69;};return a14_0x536c();}function a14_0x44be(_0x1eba2d,_0x567685){var _0x536c26=a14_0x536c();return a14_0x44be=function(_0x44be8a,_0x27c5b9){_0x44be8a=_0x44be8a-0x166;var _0x5bd714=_0x536c26[_0x44be8a];return _0x5bd714;},a14_0x44be(_0x1eba2d,_0x567685);}var __decorate=this&&this['__decorate']||function(_0x2b89f2,_0x3d8075,_0x2f3eb6,_0x4513c8){var _0x1c749f=a14_0x44be,_0x3a439f=arguments['length'],_0x15b569=_0x3a439f<0x3?_0x3d8075:_0x4513c8===null?_0x4513c8=Object['getOwnPropertyDescriptor'](_0x3d8075,_0x2f3eb6):_0x4513c8,_0x53a401;if(typeof Reflect===_0x1c749f(0x17c)&&typeof Reflect['decorate']===_0x1c749f(0x16f))_0x15b569=Reflect['decorate'](_0x2b89f2,_0x3d8075,_0x2f3eb6,_0x4513c8);else{for(var _0x3bf44c=_0x2b89f2['length']-0x1;_0x3bf44c>=0x0;_0x3bf44c--)if(_0x53a401=_0x2b89f2[_0x3bf44c])_0x15b569=(_0x3a439f<0x3?_0x53a401(_0x15b569):_0x3a439f>0x3?_0x53a401(_0x3d8075,_0x2f3eb6,_0x15b569):_0x53a401(_0x3d8075,_0x2f3eb6))||_0x15b569;}return _0x3a439f>0x3&&_0x15b569&&Object[_0x1c749f(0x184)](_0x3d8075,_0x2f3eb6,_0x15b569),_0x15b569;},__metadata=this&&this[a14_0x5dc999(0x189)]||function(_0x53f2ac,_0x39075d){var _0x3afc1d=a14_0x5dc999;if(typeof Reflect===_0x3afc1d(0x17c)&&typeof Reflect[_0x3afc1d(0x16e)]===_0x3afc1d(0x16f))return Reflect[_0x3afc1d(0x16e)](_0x53f2ac,_0x39075d);};Object[a14_0x5dc999(0x184)](exports,a14_0x5dc999(0x169),{'value':!![]}),exports[a14_0x5dc999(0x178)]=void 0x0;const validator_1=require(a14_0x5dc999(0x171));class PageDTO{}__decorate([(0x0,validator_1[a14_0x5dc999(0x180)])('分页',validator_1[a14_0x5dc999(0x17e)][a14_0x5dc999(0x174)]()[a14_0x5dc999(0x177)]()[a14_0x5dc999(0x186)](0x1),a14_0x5dc999(0x167)),__metadata(a14_0x5dc999(0x187),Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x5dc999(0x180)])(a14_0x5dc999(0x16c),validator_1['RuleType'][a14_0x5dc999(0x174)]()[a14_0x5dc999(0x177)]()[a14_0x5dc999(0x186)](0x1)),__metadata(a14_0x5dc999(0x187),Number)],PageDTO[a14_0x5dc999(0x16b)],a14_0x5dc999(0x175),void 0x0),__decorate([(0x0,validator_1[a14_0x5dc999(0x180)])(a14_0x5dc999(0x172),validator_1[a14_0x5dc999(0x17e)][a14_0x5dc999(0x166)]()[a14_0x5dc999(0x17a)]()),__metadata(a14_0x5dc999(0x187),String)],PageDTO['prototype'],a14_0x5dc999(0x181),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x5dc999(0x182),validator_1[a14_0x5dc999(0x17e)][a14_0x5dc999(0x174)]()[a14_0x5dc999(0x177)]()[a14_0x5dc999(0x179)](0x0,0x1),a14_0x5dc999(0x17f)),__metadata(a14_0x5dc999(0x187),Number)],PageDTO['prototype'],a14_0x5dc999(0x17b),void 0x0),exports[a14_0x5dc999(0x178)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.35",
|
|
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.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.35",
|
|
21
|
+
"@anncic-api/core": "^1.1.35",
|
|
22
|
+
"@anncic-api/event": "^1.1.35",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.35",
|
|
24
|
+
"@anncic-api/validator": "^1.1.35",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.35",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "be5da25c254e8310bf4c21c9d9e8ac1b7f05b67b"
|
|
43
43
|
}
|