anncic-api 3.2.12 → 3.2.14
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/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- 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/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x4d082d=a0_0xab4f;(function(_0x9d2187,_0x346f24){var _0x58e245=a0_0xab4f,_0x10da4c=_0x9d2187();while(!![]){try{var _0x25f585=parseInt(_0x58e245(0x1e2))/0x1*(-parseInt(_0x58e245(0x1df))/0x2)+parseInt(_0x58e245(0x1e5))/0x3*(parseInt(_0x58e245(0x1e6))/0x4)+-parseInt(_0x58e245(0x1ee))/0x5+parseInt(_0x58e245(0x1dd))/0x6+parseInt(_0x58e245(0x1e9))/0x7+-parseInt(_0x58e245(0x1e4))/0x8*(-parseInt(_0x58e245(0x1e8))/0x9)+parseInt(_0x58e245(0x1dc))/0xa*(-parseInt(_0x58e245(0x1e7))/0xb);if(_0x25f585===_0x346f24)break;else _0x10da4c['push'](_0x10da4c['shift']());}catch(_0x1268d9){_0x10da4c['push'](_0x10da4c['shift']());}}}(a0_0x2ccb,0x9f6fc));function a0_0xab4f(_0x58a48d,_0x2eacc8){var _0x5c1471=a0_0x2ccb();return a0_0xab4f=function(_0x26a91b,_0x1f279b){_0x26a91b=_0x26a91b-0x1db;var _0x2ccb6a=_0x5c1471[_0x26a91b];return _0x2ccb6a;},a0_0xab4f(_0x58a48d,_0x2eacc8);}var a0_0x1f279b=(function(){var _0x2ac5ce=!![];return function(_0x483e02,_0xebaa28){var _0xf54826=_0x2ac5ce?function(){var _0x18cf1f=a0_0xab4f;if(_0xebaa28){var _0x5b29d8=_0xebaa28[_0x18cf1f(0x1e0)](_0x483e02,arguments);return _0xebaa28=null,_0x5b29d8;}}:function(){};return _0x2ac5ce=![],_0xf54826;};}()),a0_0x26a91b=a0_0x1f279b(this,function(){var _0x51e1b5=a0_0xab4f;return a0_0x26a91b[_0x51e1b5(0x1e1)]()['search']('(((.+)+)+)+$')['toString']()[_0x51e1b5(0x1db)](a0_0x26a91b)['search'](_0x51e1b5(0x1f1));});a0_0x26a91b();'use strict';function a0_0x2ccb(){var _0x195f02=['name','(((.+)+)+)+$','20mb','zhiulanuiy7892387985hnoi','default','constructor','7707020PYuczl','2945694UTBOeS','form','8746OHzyoz','apply','toString','73kQFrap','dhauo1234420123gg3234901','9850264eqDDdw','32133SYhfuh','212TUAAsa','11COSxAS','9exguOL','1533679GpXTGk','/runtime/.upload','json','_token','__esModule','3830145MZuKfn','appDir'];a0_0x2ccb=function(){return _0x195f02;};return a0_0x2ccb();}Object['defineProperty'](exports,a0_0x4d082d(0x1ed),{'value':!![]}),exports[a0_0x4d082d(0x1f4)]=_0x408fd9=>{var _0x47c67a=a0_0x4d082d;return{'apitest':!![],'keys':_0x408fd9[_0x47c67a(0x1f0)],'anncicapi':{'requestKey':_0x47c67a(0x1ec),'password':_0x47c67a(0x1f3),'devices':{'DEFAULT':{'secret':_0x47c67a(0x1e3),'checkcode':_0x47c67a(0x1e3)}}},'bodyParser':{'enableTypes':[_0x47c67a(0x1eb),_0x47c67a(0x1de),'text','xml'],'formLimit':_0x47c67a(0x1f2),'jsonLimit':_0x47c67a(0x1f2),'textLimit':_0x47c67a(0x1f2),'xmlLimit':_0x47c67a(0x1f2),'enable':!![]},'upload':{'tmpdir':_0x408fd9[_0x47c67a(0x1ef)]+_0x47c67a(0x1ea),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x373282=a1_0x468e;function a1_0x18e4(){var _0x529b52=['default','29847590BVHObi','3931753GXGIdM','search','toString','18165oEwQvY','594900vQOwrK','354TQbmRI','4957lexDDZ','__esModule','184dnAliK','304912PdHDkD','6YDndsQ','5185985JNIgsB','constructor'];a1_0x18e4=function(){return _0x529b52;};return a1_0x18e4();}(function(_0x2ca98a,_0x1e8b95){var _0x224b61=a1_0x468e,_0x2f66ae=_0x2ca98a();while(!![]){try{var _0x7932b7=-parseInt(_0x224b61(0x17a))/0x1+parseInt(_0x224b61(0x179))/0x2*(-parseInt(_0x224b61(0x177))/0x3)+-parseInt(_0x224b61(0x17d))/0x4+parseInt(_0x224b61(0x170))/0x5+parseInt(_0x224b61(0x16f))/0x6*(-parseInt(_0x224b61(0x174))/0x7)+parseInt(_0x224b61(0x17c))/0x8*(-parseInt(_0x224b61(0x178))/0x9)+parseInt(_0x224b61(0x173))/0xa;if(_0x7932b7===_0x1e8b95)break;else _0x2f66ae['push'](_0x2f66ae['shift']());}catch(_0x1a081f){_0x2f66ae['push'](_0x2f66ae['shift']());}}}(a1_0x18e4,0xc0271));function a1_0x468e(_0x405223,_0x469e18){var _0x5520d0=a1_0x18e4();return a1_0x468e=function(_0x4e5baa,_0x584609){_0x4e5baa=_0x4e5baa-0x16f;var _0x18e415=_0x5520d0[_0x4e5baa];return _0x18e415;},a1_0x468e(_0x405223,_0x469e18);}var a1_0x584609=(function(){var _0x1dac2a=!![];return function(_0x3c1b3a,_0x2e37dd){var _0x5d4c54=_0x1dac2a?function(){if(_0x2e37dd){var _0x45f3fd=_0x2e37dd['apply'](_0x3c1b3a,arguments);return _0x2e37dd=null,_0x45f3fd;}}:function(){};return _0x1dac2a=![],_0x5d4c54;};}()),a1_0x4e5baa=a1_0x584609(this,function(){var _0x259bd7=a1_0x468e;return a1_0x4e5baa[_0x259bd7(0x176)]()[_0x259bd7(0x175)]('(((.+)+)+)+$')[_0x259bd7(0x176)]()[_0x259bd7(0x171)](a1_0x4e5baa)[_0x259bd7(0x175)]('(((.+)+)+)+$');});a1_0x4e5baa();'use strict';Object['defineProperty'](exports,a1_0x373282(0x17b),{'value':!![]}),exports[a1_0x373282(0x172)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x89b914=a2_0x463a;(function(_0x3fc803,_0x4398fb){const _0x28e45f=a2_0x463a,_0xe905ce=_0x3fc803();while(!![]){try{const _0x4c0fc2=-parseInt(_0x28e45f(0x269))/0x1*(-parseInt(_0x28e45f(0x22f))/0x2)+-parseInt(_0x28e45f(0x1f6))/0x3*(parseInt(_0x28e45f(0x258))/0x4)+parseInt(_0x28e45f(0x244))/0x5+parseInt(_0x28e45f(0x22b))/0x6*(-parseInt(_0x28e45f(0x206))/0x7)+-parseInt(_0x28e45f(0x276))/0x8+parseInt(_0x28e45f(0x1f4))/0x9+parseInt(_0x28e45f(0x26f))/0xa*(parseInt(_0x28e45f(0x25f))/0xb);if(_0x4c0fc2===_0x4398fb)break;else _0xe905ce['push'](_0xe905ce['shift']());}catch(_0x3e2d25){_0xe905ce['push'](_0xe905ce['shift']());}}}(a2_0x3e3c,0x3d11a));const a2_0x18c99d=(function(){let _0x2513d6=!![];return function(_0x2bd60b,_0x136eb7){const _0x5d143e=_0x2513d6?function(){const _0x142ee1=a2_0x463a;if(_0x136eb7){const _0x136735=_0x136eb7[_0x142ee1(0x242)](_0x2bd60b,arguments);return _0x136eb7=null,_0x136735;}}:function(){};return _0x2513d6=![],_0x5d143e;};}()),a2_0x312557=a2_0x18c99d(this,function(){const _0xf80df8=a2_0x463a;return a2_0x312557[_0xf80df8(0x264)]()[_0xf80df8(0x1ee)]('(((.+)+)+)+$')['toString']()[_0xf80df8(0x21c)](a2_0x312557)['search']('(((.+)+)+)+$');});a2_0x312557();function a2_0x3e3c(){const _0x56d70f=['@midwayjs/upload','_UNKNOW_','apply','handlerActionRoute','1392840paoRvD','@midwayjs/core','checksign','existsSync','MidwayConfigService','intercept','req','headers','mkdirSync','@midwayjs/static-file','@anncic-api/event','statSync','body','string','midwayLogger','anncicapi','getOwnPropertyDescriptor','_matchedRoute','getClassMetadata','INTERCEPT_KEY','10556HHTeOG','handler','anncic-apihelper','443','defineProperties','/apps','https://','77DfdZfc','anncic-api','match','DEFAULT','/runtime/apps-','toString','bodyXml','split','context','upload','216EQpdRX','getApplications','defaultsDeep','length','koa-send','apimit','55870RPfAiz','HEADERS_SIGNATURE','@anncic-api/typeorm','ApiService','CustomConfiguration','dir','Types','2212408jnqQxZ','./exception/ApiError','search','requestKey','input','key','assign','function','285984dYbjvW','-log','51WrCUOO','environment','useMiddleware','isNull','method','Inject','hosturl','parse','getConfiguration','attachment','ApiError','__esModule','registerMethodHandler','getAppDir','isClass','./config/config.default','178059vBESHV','log','staticFile','InterceptTargetTmp','object','/runtime','decorate','connection','@midwayjs/cross-domain','config','requestContext','application','MidwayDecoratorService','isDevelopmentEnvironment','addObject','hanlderApplications','query','http://','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','filterConfig','loggerConfig','/apps/','constructor','args','design:type','isFunction','@midwayjs/koa','isArray','./types/action','device','target','REQUEST_OBJ_CTX_KEY','keys','request','getAsync','decorator','dirs','6UGezfr','getBaseDir','isString','encrypted','2292ednZAU','Anncic-api\x20static-file\x20:\x20mkdir\x20','clients','./service/ApiService','default','startsWith','defineProperty','forEach','host','toLowerCase','metadata','tmpdir','koa','proceed','app','devices','prototype'];a2_0x3e3c=function(){return _0x56d70f;};return a2_0x3e3c();}'use strict';var __decorate=this&&this['__decorate']||function(_0x5a6be5,_0x18e8b1,_0x5ccba3,_0xde59fe){const _0x1f41a8=a2_0x463a;var _0x52c2e6=arguments[_0x1f41a8(0x26c)],_0x3679ed=_0x52c2e6<0x3?_0x18e8b1:_0xde59fe===null?_0xde59fe=Object[_0x1f41a8(0x254)](_0x18e8b1,_0x5ccba3):_0xde59fe,_0x2f4e63;if(typeof Reflect===_0x1f41a8(0x20a)&&typeof Reflect[_0x1f41a8(0x20c)]===_0x1f41a8(0x1f3))_0x3679ed=Reflect[_0x1f41a8(0x20c)](_0x5a6be5,_0x18e8b1,_0x5ccba3,_0xde59fe);else{for(var _0x5db558=_0x5a6be5[_0x1f41a8(0x26c)]-0x1;_0x5db558>=0x0;_0x5db558--)if(_0x2f4e63=_0x5a6be5[_0x5db558])_0x3679ed=(_0x52c2e6<0x3?_0x2f4e63(_0x3679ed):_0x52c2e6>0x3?_0x2f4e63(_0x18e8b1,_0x5ccba3,_0x3679ed):_0x2f4e63(_0x18e8b1,_0x5ccba3))||_0x3679ed;}return _0x52c2e6>0x3&&_0x3679ed&&Object[_0x1f41a8(0x235)](_0x18e8b1,_0x5ccba3,_0x3679ed),_0x3679ed;},__metadata=this&&this['__metadata']||function(_0x19796a,_0x56cf57){const _0x1d258e=a2_0x463a;if(typeof Reflect===_0x1d258e(0x20a)&&typeof Reflect[_0x1d258e(0x239)]===_0x1d258e(0x1f3))return Reflect['metadata'](_0x19796a,_0x56cf57);};Object['defineProperty'](exports,a2_0x89b914(0x201),{'value':!![]}),exports[a2_0x89b914(0x273)]=void 0x0;function a2_0x463a(_0x2f1a4c,_0x26112e){const _0x3c7bd0=a2_0x3e3c();return a2_0x463a=function(_0x312557,_0x18c99d){_0x312557=_0x312557-0x1ee;let _0x3e3c48=_0x3c7bd0[_0x312557];return _0x3e3c48;},a2_0x463a(_0x2f1a4c,_0x26112e);}const core_1=require(a2_0x89b914(0x245)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x89b914(0x277)),ApiService_1=require(a2_0x89b914(0x232)),action_1=require(a2_0x89b914(0x222)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x89b914(0x26d)),koa=require(a2_0x89b914(0x220)),upload=require(a2_0x89b914(0x240)),staticFile=require(a2_0x89b914(0x24d)),crossDomain=require(a2_0x89b914(0x20e)),ConfigDefault=require(a2_0x89b914(0x205)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x89b914(0x24e)),anncicTypeorm=require(a2_0x89b914(0x271)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x89b914(0x25a));let CustomConfiguration=exports[a2_0x89b914(0x273)]=class CustomConfiguration{async['onReady'](){const _0x350711=a2_0x89b914;await this['filterConfig'](),await this[_0x350711(0x21a)](),await this['handlerActionRoute'](),await this[_0x350711(0x215)]();}async[a2_0x89b914(0x243)](){const _0x2fda53=a2_0x89b914,_0x31da64=this[_0x2fda53(0x20f)]['getConfiguration'](),_0x3a6e46=(0x0,core_1[_0x2fda53(0x256)])(intercept_1[_0x2fda53(0x257)],intercept_1[_0x2fda53(0x209)])||{};this[_0x2fda53(0x229)][_0x2fda53(0x202)](action_1['ACTION_ROUTE_KEY'],_0x2ad86d=>{const _0xb406a8=_0x2fda53,_0x1d6cd4=_0x2ad86d[_0xb406a8(0x239)];return{'before':async _0xe102f0=>{const _0x4131fc=_0xb406a8;var _0xba7521,_0x4afe66,_0x5f167f,_0xb7f4a8;const _0x358d34=(_0xba7521=_0xe102f0===null||_0xe102f0===void 0x0?void 0x0:_0xe102f0[_0x4131fc(0x224)])===null||_0xba7521===void 0x0?void 0x0:_0xba7521[core_2[_0x4131fc(0x225)]],_0x18a66e=lodash[_0x4131fc(0x26b)]({},_0x358d34['request'][_0x4131fc(0x250)]||_0x358d34[_0x4131fc(0x227)][((_0x4afe66=_0x31da64===null||_0x31da64===void 0x0?void 0x0:_0x31da64[_0x4131fc(0x265)])===null||_0x4afe66===void 0x0?void 0x0:_0x4afe66[_0x4131fc(0x1f1)])||_0x4131fc(0x250)]||{},_0x358d34[_0x4131fc(0x227)][_0x4131fc(0x216)]||{});if(_0x358d34&&(_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4[_0x4131fc(0x26e)]))try{const _0x89222=((_0x5f167f=_0x31da64===null||_0x31da64===void 0x0?void 0x0:_0x31da64[_0x4131fc(0x253)])===null||_0x5f167f===void 0x0?void 0x0:_0x5f167f[_0x4131fc(0x1ef)])&&typeof(_0x18a66e===null||_0x18a66e===void 0x0?void 0x0:_0x18a66e[_0x31da64['anncicapi'][_0x4131fc(0x1ef)]])=='string'?JSON[_0x4131fc(0x1fd)](base64_decode(_0x18a66e[_0x31da64[_0x4131fc(0x253)][_0x4131fc(0x1ef)]])||'{}')||{}:((_0xb7f4a8=_0x358d34===null||_0x358d34===void 0x0?void 0x0:_0x358d34[_0x4131fc(0x227)])===null||_0xb7f4a8===void 0x0?void 0x0:_0xb7f4a8['headers'])||{};if(!this[_0x4131fc(0x272)][_0x4131fc(0x246)](_0x89222))throw new AnnError(ApiError_1[_0x4131fc(0x200)][_0x4131fc(0x270)]);}catch(_0x5772b6){if(_0x5772b6 instanceof AnnError)throw _0x5772b6;else throw new AnnError(ApiError_1[_0x4131fc(0x200)][_0x4131fc(0x241)]);}},'around':async _0xe490b2=>{const _0x5701eb=_0xb406a8;var _0x2ccee4,_0x513046,_0x48210b;const _0x2484a1=(_0x2ccee4=_0xe490b2===null||_0xe490b2===void 0x0?void 0x0:_0xe490b2['target'])===null||_0x2ccee4===void 0x0?void 0x0:_0x2ccee4[core_2[_0x5701eb(0x225)]];if(_0x2484a1&&(_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4[_0x5701eb(0x26e)])&&((_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4[_0x5701eb(0x249)])||typeof(_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4['intercept'])=='undefined')){if(((_0x513046=_0x2484a1[_0x5701eb(0x24b)])===null||_0x513046===void 0x0?void 0x0:_0x513046[_0x5701eb(0x223)])&&((_0x48210b=_0x3a6e46===null||_0x3a6e46===void 0x0?void 0x0:_0x3a6e46[_0x2484a1[_0x5701eb(0x24b)][_0x5701eb(0x223)]])===null||_0x48210b===void 0x0?void 0x0:_0x48210b['length'])>0x0)for(const _0x53a4f3 of _0x3a6e46[_0x2484a1[_0x5701eb(0x24b)][_0x5701eb(0x223)]]||[]){if(core_1['Types'][_0x5701eb(0x204)](_0x53a4f3)){const _0x38b56c=await _0x2484a1[_0x5701eb(0x210)][_0x5701eb(0x228)](_0x53a4f3);typeof(_0x38b56c===null||_0x38b56c===void 0x0?void 0x0:_0x38b56c[_0x5701eb(0x261)])==_0x5701eb(0x1f3)?await _0x38b56c[_0x5701eb(0x261)](_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])==_0x5701eb(0x251)&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)])?_0x2484a1['method'][_0x5701eb(0x238)]()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)]):undefined,_0x1d6cd4)&&await _0x38b56c[_0x5701eb(0x259)](_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])==_0x5701eb(0x251)&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)])?_0x2484a1[_0x5701eb(0x1fa)]['toLowerCase']()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)]):undefined,_0x1d6cd4):await _0x38b56c[_0x5701eb(0x259)](_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])==_0x5701eb(0x251)&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1['_matchedRoute'])?_0x2484a1[_0x5701eb(0x1fa)][_0x5701eb(0x238)]()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)]):undefined,_0x1d6cd4);}else core_1[_0x5701eb(0x275)][_0x5701eb(0x21f)](_0x53a4f3)&&await _0x53a4f3(_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])=='string'&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)])?_0x2484a1[_0x5701eb(0x1fa)]['toLowerCase']()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1['_matchedRoute']):undefined,_0x1d6cd4);}}return await _0xe490b2[_0x5701eb(0x23c)](..._0xe490b2[_0x5701eb(0x21d)]);},'afterThrow':(_0x26261f,_0x27c908)=>{throw _0x27c908;}};});}async[a2_0x89b914(0x215)](){const _0x25b52d=a2_0x89b914,_0x287c91=this['config'][_0x25b52d(0x1fe)]();this['application'][_0x25b52d(0x26a)]([_0x25b52d(0x23b)])[_0x25b52d(0x236)](_0x1c4f6f=>{const _0x3329f8=_0x25b52d;typeof _0x1c4f6f[_0x3329f8(0x1f8)]==_0x3329f8(0x1f3)&&_0x1c4f6f[_0x3329f8(0x1f8)](async(_0x18c618,_0x1f81c0)=>{const _0x322b74=_0x3329f8;var _0x44c359,_0x2d0115,_0x48ea75,_0x47b29a;if((_0x18c618===null||_0x18c618===void 0x0?void 0x0:_0x18c618['host'])&&!_0x18c618[_0x322b74(0x237)][_0x322b74(0x234)]('http')){let _0x546c86=_0x18c618[_0x322b74(0x237)][_0x322b74(0x266)](':');['80',_0x322b74(0x25b)]['includes'](_0x546c86===null||_0x546c86===void 0x0?void 0x0:_0x546c86[0x1])?_0x18c618['hosturl']=''+(!!((_0x2d0115=(_0x44c359=_0x18c618===null||_0x18c618===void 0x0?void 0x0:_0x18c618[_0x322b74(0x24a)])===null||_0x44c359===void 0x0?void 0x0:_0x44c359['connection'])===null||_0x2d0115===void 0x0?void 0x0:_0x2d0115['encrypted'])||(_0x546c86===null||_0x546c86===void 0x0?void 0x0:_0x546c86[0x1])==_0x322b74(0x25b)?_0x322b74(0x25e):_0x322b74(0x217))+_0x546c86[0x0]:_0x18c618[_0x322b74(0x1fc)]=''+(!!((_0x47b29a=(_0x48ea75=_0x18c618===null||_0x18c618===void 0x0?void 0x0:_0x18c618[_0x322b74(0x24a)])===null||_0x48ea75===void 0x0?void 0x0:_0x48ea75[_0x322b74(0x20d)])===null||_0x47b29a===void 0x0?void 0x0:_0x47b29a[_0x322b74(0x22e)])?_0x322b74(0x25e):_0x322b74(0x217))+_0x18c618['host'];}await _0x1f81c0();}),(_0x1c4f6f===null||_0x1c4f6f===void 0x0?void 0x0:_0x1c4f6f[_0x3329f8(0x267)])&&Object[_0x3329f8(0x25c)](_0x1c4f6f['context'],{'ok':{'value':function(_0x2e4de7,_0x315da5,_0xd496a5=0x0){return{'code':_0xd496a5,'data':_0x2e4de7,'extra':_0x315da5};}},'input':{'value':function(_0x56702d,_0x137b6a){const _0x164303=_0x3329f8;var _0x4e5937;const _0x1818ec=lodash['defaultsDeep']({},this[_0x164303(0x227)][_0x164303(0x250)]||this[_0x164303(0x227)][((_0x4e5937=_0x287c91===null||_0x287c91===void 0x0?void 0x0:_0x287c91[_0x164303(0x265)])===null||_0x4e5937===void 0x0?void 0x0:_0x4e5937[_0x164303(0x1f1)])||_0x164303(0x250)]||{},this['request']['query']||{});return _0x56702d?lodash['get'](_0x1818ec,_0x56702d,_0x137b6a):_0x1818ec;}},'when':{'value':async function(_0x1507fa,_0x2ccd71){const _0x336582=_0x3329f8,_0x246373=this[_0x336582(0x1f0)](_0x1507fa,null);if(!lodash[_0x336582(0x1f9)](_0x246373))return await _0x2ccd71(_0x246373);}},'only':{'value':function(_0x59400a){const _0x55ab67=_0x3329f8,_0x4ec137={};for(let _0x2cffd2=0x0;_0x2cffd2<_0x59400a['length'];_0x2cffd2++){lodash[_0x55ab67(0x221)](_0x59400a[_0x2cffd2])&&_0x59400a[_0x2cffd2][_0x55ab67(0x26c)]>0x0&&lodash[_0x55ab67(0x22d)](_0x59400a[_0x2cffd2][0x0])&&(_0x4ec137[_0x59400a[_0x2cffd2][0x0]]=this[_0x55ab67(0x1f0)](_0x59400a[_0x2cffd2][0x0],_0x59400a[_0x2cffd2][_0x55ab67(0x26c)]>0x1?_0x59400a[_0x2cffd2][0x1]:null));}return _0x4ec137;}},'koasend':{'value':function(_0x347889,_0x1757ac){const _0x581cf6=_0x3329f8;if(_0x347889&&!fs[_0x581cf6(0x247)](_0x347889)&&!fs[_0x581cf6(0x247)](this[_0x581cf6(0x23d)][_0x581cf6(0x203)]()+'/'+_0x347889))return'文件不存在';return _0x347889=fs[_0x581cf6(0x247)](_0x347889)?_0x347889:this['app']['getAppDir']()+'/'+_0x347889,this[_0x581cf6(0x1ff)](_0x1757ac||_0x347889),koasend(this,_0x347889);}}});});}async[a2_0x89b914(0x21a)](){const _0x38cd48=a2_0x89b914;var _0xad8f22,_0x1f0a67;if(fs[_0x38cd48(0x247)](this[_0x38cd48(0x23d)][_0x38cd48(0x22c)]()+'/apps')&&fs[_0x38cd48(0x24f)](this[_0x38cd48(0x23d)][_0x38cd48(0x22c)]()+_0x38cd48(0x25d))['isDirectory']()){const _0x1b29c2=this[_0x38cd48(0x20f)][_0x38cd48(0x1fe)](),_0xbc5e75=((_0xad8f22=_0x1b29c2===null||_0x1b29c2===void 0x0?void 0x0:_0x1b29c2[_0x38cd48(0x252)])===null||_0xad8f22===void 0x0?void 0x0:_0xad8f22[_0x38cd48(0x231)])||{};for(const _0x213d20 of fs['readdirSync'](this[_0x38cd48(0x23d)][_0x38cd48(0x22c)]()+_0x38cd48(0x25d))){if(!fs[_0x38cd48(0x24f)](this['app'][_0x38cd48(0x22c)]()+_0x38cd48(0x21b)+_0x213d20)['isDirectory']())continue;if(_0xbc5e75===null||_0xbc5e75===void 0x0?void 0x0:_0xbc5e75[_0x213d20])continue;_0xbc5e75[_0x213d20]=Object[_0x38cd48(0x1f2)]({},((_0x1f0a67=_0x1b29c2===null||_0x1b29c2===void 0x0?void 0x0:_0x1b29c2[_0x38cd48(0x252)])===null||_0x1f0a67===void 0x0?void 0x0:_0x1f0a67[_0x38cd48(0x233)])||{'maxSize':'1m','dir':this[_0x38cd48(0x23d)][_0x38cd48(0x203)]()+_0x38cd48(0x20b)},{'enableJSON':!![],'enableConsole':this['environment'][_0x38cd48(0x213)](),'fileLogName':_0x213d20+'.log','dir':this[_0x38cd48(0x23d)][_0x38cd48(0x203)]()+_0x38cd48(0x263)+_0x213d20+_0x38cd48(0x1f5)});}Object['keys'](_0xbc5e75)['length']>0x0&&(!_0x1b29c2[_0x38cd48(0x252)]&&(_0x1b29c2[_0x38cd48(0x252)]={'default':{'maxSize':'1m','dir':this[_0x38cd48(0x23d)]['getAppDir']()+_0x38cd48(0x20b)}}),_0x1b29c2[_0x38cd48(0x252)][_0x38cd48(0x231)]=_0xbc5e75),this[_0x38cd48(0x20f)][_0x38cd48(0x214)](_0x1b29c2);}}async[a2_0x89b914(0x219)](){const _0x26fb57=a2_0x89b914;var _0x5b9578,_0xf04e1c,_0x25fbf9,_0x3c9592,_0x2e0d93,_0x2e144b;const _0x58d63e=this[_0x26fb57(0x20f)][_0x26fb57(0x1fe)]();((_0xf04e1c=(_0x5b9578=_0x58d63e===null||_0x58d63e===void 0x0?void 0x0:_0x58d63e['anncicapi'])===null||_0x5b9578===void 0x0?void 0x0:_0x5b9578[_0x26fb57(0x23e)])===null||_0xf04e1c===void 0x0?void 0x0:_0xf04e1c[_0x26fb57(0x262)])&&Object[_0x26fb57(0x226)](_0x58d63e['anncicapi']['devices'])[_0x26fb57(0x26c)]>0x1&&delete _0x58d63e['anncicapi'][_0x26fb57(0x23e)][_0x26fb57(0x262)];if((_0x25fbf9=_0x58d63e===null||_0x58d63e===void 0x0?void 0x0:_0x58d63e[_0x26fb57(0x208)])===null||_0x25fbf9===void 0x0?void 0x0:_0x25fbf9['dirs'])for(const _0x5d85fb in _0x58d63e[_0x26fb57(0x208)][_0x26fb57(0x22a)]){((_0x3c9592=_0x58d63e['staticFile'][_0x26fb57(0x22a)][_0x5d85fb])===null||_0x3c9592===void 0x0?void 0x0:_0x3c9592[_0x26fb57(0x274)])&&typeof((_0x2e0d93=_0x58d63e[_0x26fb57(0x208)][_0x26fb57(0x22a)][_0x5d85fb])===null||_0x2e0d93===void 0x0?void 0x0:_0x2e0d93[_0x26fb57(0x274)])==_0x26fb57(0x251)&&!fs[_0x26fb57(0x247)](_0x58d63e['staticFile']['dirs'][_0x5d85fb]['dir'])&&(fs[_0x26fb57(0x24c)](_0x58d63e['staticFile']['dirs'][_0x5d85fb][_0x26fb57(0x274)],{'recursive':!![]}),console[_0x26fb57(0x207)](_0x26fb57(0x230)+_0x58d63e[_0x26fb57(0x208)][_0x26fb57(0x22a)][_0x5d85fb][_0x26fb57(0x274)]));}((_0x2e144b=_0x58d63e===null||_0x58d63e===void 0x0?void 0x0:_0x58d63e[_0x26fb57(0x268)])===null||_0x2e144b===void 0x0?void 0x0:_0x2e144b[_0x26fb57(0x23a)])&&!fs[_0x26fb57(0x247)](_0x58d63e[_0x26fb57(0x268)][_0x26fb57(0x23a)])&&(fs[_0x26fb57(0x24c)](_0x58d63e['upload']['tmpdir'],{'recursive':!![]}),console[_0x26fb57(0x207)](_0x26fb57(0x218)+_0x58d63e[_0x26fb57(0x268)][_0x26fb57(0x23a)])),this[_0x26fb57(0x20f)][_0x26fb57(0x214)](_0x58d63e);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x89b914(0x21e),Object)],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x23d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x89b914(0x21e),core_2[a2_0x89b914(0x248)])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x20f),void 0x0),__decorate([(0x0,core_1[a2_0x89b914(0x1fb)])(),__metadata('design:type',core_2[a2_0x89b914(0x212)])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x229),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x89b914(0x21e),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x211),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x89b914(0x21e),core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x89b914(0x1f7),void 0x0),__decorate([(0x0,core_1[a2_0x89b914(0x1fb)])(),__metadata('design:type',ApiService_1[a2_0x89b914(0x272)])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x272),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x89b914(0x260),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x298a47=a2_0x357f;(function(_0x4e8a25,_0x56230a){const _0xb45a43=a2_0x357f,_0x1ee024=_0x4e8a25();while(!![]){try{const _0x1d80a4=-parseInt(_0xb45a43(0x1bb))/0x1+parseInt(_0xb45a43(0x220))/0x2+-parseInt(_0xb45a43(0x208))/0x3+parseInt(_0xb45a43(0x1f4))/0x4*(-parseInt(_0xb45a43(0x238))/0x5)+-parseInt(_0xb45a43(0x1dc))/0x6+-parseInt(_0xb45a43(0x21d))/0x7+parseInt(_0xb45a43(0x1ec))/0x8;if(_0x1d80a4===_0x56230a)break;else _0x1ee024['push'](_0x1ee024['shift']());}catch(_0x5a9f1d){_0x1ee024['push'](_0x1ee024['shift']());}}}(a2_0x3567,0xed9a1));const a2_0x36a743=(function(){let _0x406479=!![];return function(_0x79ae6f,_0xdcdfa8){const _0x44ff23=_0x406479?function(){const _0x379fa3=a2_0x357f;if(_0xdcdfa8){const _0x37de94=_0xdcdfa8[_0x379fa3(0x212)](_0x79ae6f,arguments);return _0xdcdfa8=null,_0x37de94;}}:function(){};return _0x406479=![],_0x44ff23;};}()),a2_0x1600cd=a2_0x36a743(this,function(){const _0x33b24a=a2_0x357f;return a2_0x1600cd[_0x33b24a(0x20a)]()[_0x33b24a(0x1ee)]('(((.+)+)+)+$')[_0x33b24a(0x20a)]()[_0x33b24a(0x21c)](a2_0x1600cd)[_0x33b24a(0x1ee)](_0x33b24a(0x1b5));});a2_0x1600cd();'use strict';function a2_0x3567(){const _0x342015=['koa-send','includes','__decorate','CustomConfiguration','constructor','4904466bmIRbh','useMiddleware','/apps/','1657546RwyHsh','function','-log','./types/intercept','isString','decorator','apimit','encrypted','defineProperty','443','environment','/apps','Anncic-api\x20static-file\x20:\x20mkdir\x20','http','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','defineProperties','./types/action','undefined','request','_matchedRoute','existsSync','split','@midwayjs/upload','mkdirSync','78955wNCEnS','ApiError','query','Configuration','getClassMetadata','connection','(((.+)+)+)+$','assign','ApiService','Types','MidwayDecoratorService','string','782490yWYLWG','./config/config.default','metadata','get','statSync','key','@anncic-api/event','isDirectory','length','HEADERS_SIGNATURE','intercept','App','getApplications','attachment','startsWith','req','anncic-api','requestKey','design:type','@midwayjs/core','context','addObject','Inject','handler','filterConfig','host','app','body','https://','@anncic-api/cache','__esModule','DEFAULT','isNull','10707426Lsbgbl','http://','anncicapi','getBaseDir','loggerConfig','devices','defaultsDeep','tmpdir','./service/ApiService','prototype','application','registerMethodHandler','log','default','readdirSync','config','44138544lofxgq','REQUEST_OBJ_CTX_KEY','search','upload','__metadata','device','midwayLogger','dirs','328ASlAcI','target','object','toLowerCase','method','forEach','/runtime/apps-','文件不存在','@anncic-api/validator','hosturl','getOwnPropertyDescriptor','dir','hanlderApplications','MidwayApplicationManager','handlerActionRoute','headers','onReady','isClass','clients','match','2430939HFbyPL','requestContext','toString','decorate','parse','@midwayjs/static-file','getAppDir','proceed','input','isArray','apply','.log','staticFile','MidwayEnvironmentService','keys','getConfiguration'];a2_0x3567=function(){return _0x342015;};return a2_0x3567();}var __decorate=this&&this[a2_0x298a47(0x21a)]||function(_0x3b6abe,_0x28c27f,_0x25ebb3,_0x3022f2){const _0x1596f7=a2_0x298a47;var _0x4bbf75=arguments[_0x1596f7(0x1c3)],_0x376986=_0x4bbf75<0x3?_0x28c27f:_0x3022f2===null?_0x3022f2=Object[_0x1596f7(0x1fe)](_0x28c27f,_0x25ebb3):_0x3022f2,_0x230b1f;if(typeof Reflect===_0x1596f7(0x1f6)&&typeof Reflect[_0x1596f7(0x20b)]===_0x1596f7(0x221))_0x376986=Reflect['decorate'](_0x3b6abe,_0x28c27f,_0x25ebb3,_0x3022f2);else{for(var _0x33b869=_0x3b6abe['length']-0x1;_0x33b869>=0x0;_0x33b869--)if(_0x230b1f=_0x3b6abe[_0x33b869])_0x376986=(_0x4bbf75<0x3?_0x230b1f(_0x376986):_0x4bbf75>0x3?_0x230b1f(_0x28c27f,_0x25ebb3,_0x376986):_0x230b1f(_0x28c27f,_0x25ebb3))||_0x376986;}return _0x4bbf75>0x3&&_0x376986&&Object[_0x1596f7(0x228)](_0x28c27f,_0x25ebb3,_0x376986),_0x376986;},__metadata=this&&this[a2_0x298a47(0x1f0)]||function(_0x104799,_0x4f728e){const _0x5f45de=a2_0x298a47;if(typeof Reflect===_0x5f45de(0x1f6)&&typeof Reflect[_0x5f45de(0x1bd)]===_0x5f45de(0x221))return Reflect[_0x5f45de(0x1bd)](_0x104799,_0x4f728e);};Object['defineProperty'](exports,a2_0x298a47(0x1d9),{'value':!![]}),exports[a2_0x298a47(0x21b)]=void 0x0;const core_1=require(a2_0x298a47(0x1ce)),core_2=require(a2_0x298a47(0x1ce)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x298a47(0x1e4)),action_1=require(a2_0x298a47(0x230)),intercept_1=require(a2_0x298a47(0x223)),fs=require('fs'),koasend=require(a2_0x298a47(0x218)),koa=require('@midwayjs/koa'),upload=require(a2_0x298a47(0x236)),staticFile=require(a2_0x298a47(0x20d)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x298a47(0x1bc)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x298a47(0x1d8)),anncicEvent=require(a2_0x298a47(0x1c1)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x298a47(0x1fc)),anncicHelper=require('anncic-apihelper');function a2_0x357f(_0x198d67,_0x463740){const _0x3918ea=a2_0x3567();return a2_0x357f=function(_0x1600cd,_0x36a743){_0x1600cd=_0x1600cd-0x1b0;let _0x356754=_0x3918ea[_0x1600cd];return _0x356754;},a2_0x357f(_0x198d67,_0x463740);}let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a2_0x298a47(0x204)](){const _0xc5195d=a2_0x298a47;await this[_0xc5195d(0x1d3)](),await this[_0xc5195d(0x1e0)](),await this[_0xc5195d(0x202)](),await this[_0xc5195d(0x200)]();}async[a2_0x298a47(0x202)](){const _0x31197f=a2_0x298a47,_0x2740a4=this[_0x31197f(0x1eb)][_0x31197f(0x217)](),_0xe24c03=(0x0,core_1[_0x31197f(0x1b3)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};this[_0x31197f(0x225)][_0x31197f(0x1e7)](action_1['ACTION_ROUTE_KEY'],_0x9d12a0=>{const _0x9a8e66=_0x31197f,_0x41bb52=_0x9d12a0[_0x9a8e66(0x1bd)];return{'before':async _0x2d30e5=>{const _0x383189=_0x9a8e66;var _0x5bb720,_0x1e41b1,_0x48fde7,_0x2ffe28;const _0x4a5f2=(_0x5bb720=_0x2d30e5===null||_0x2d30e5===void 0x0?void 0x0:_0x2d30e5['target'])===null||_0x5bb720===void 0x0?void 0x0:_0x5bb720[core_2[_0x383189(0x1ed)]],_0x59685d=lodash['defaultsDeep']({},_0x4a5f2[_0x383189(0x232)][_0x383189(0x1d6)]||_0x4a5f2['request'][((_0x1e41b1=_0x2740a4===null||_0x2740a4===void 0x0?void 0x0:_0x2740a4['bodyXml'])===null||_0x1e41b1===void 0x0?void 0x0:_0x1e41b1[_0x383189(0x1c0)])||_0x383189(0x1d6)]||{},_0x4a5f2[_0x383189(0x232)][_0x383189(0x1b1)]||{});if(_0x4a5f2&&(_0x41bb52===null||_0x41bb52===void 0x0?void 0x0:_0x41bb52[_0x383189(0x226)]))try{const _0x28c5d3=((_0x48fde7=_0x2740a4===null||_0x2740a4===void 0x0?void 0x0:_0x2740a4[_0x383189(0x1de)])===null||_0x48fde7===void 0x0?void 0x0:_0x48fde7[_0x383189(0x1cc)])&&typeof(_0x59685d===null||_0x59685d===void 0x0?void 0x0:_0x59685d[_0x2740a4[_0x383189(0x1de)][_0x383189(0x1cc)]])==_0x383189(0x1ba)?JSON[_0x383189(0x20c)](base64_decode(_0x59685d[_0x2740a4[_0x383189(0x1de)][_0x383189(0x1cc)]])||'{}')||{}:((_0x2ffe28=_0x4a5f2===null||_0x4a5f2===void 0x0?void 0x0:_0x4a5f2['request'])===null||_0x2ffe28===void 0x0?void 0x0:_0x2ffe28[_0x383189(0x203)])||{};if(!this[_0x383189(0x1b7)]['checksign'](_0x28c5d3))throw new AnnError(ApiError_1[_0x383189(0x1b0)][_0x383189(0x1c4)]);}catch(_0x29195f){if(_0x29195f instanceof AnnError)throw _0x29195f;else throw new AnnError(ApiError_1[_0x383189(0x1b0)]['_UNKNOW_']);}},'around':async _0x1751fb=>{const _0x2252a2=_0x9a8e66;var _0xa05199,_0x110035,_0x204ae6;const _0x114207=(_0xa05199=_0x1751fb===null||_0x1751fb===void 0x0?void 0x0:_0x1751fb[_0x2252a2(0x1f5)])===null||_0xa05199===void 0x0?void 0x0:_0xa05199[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x114207&&(_0x41bb52===null||_0x41bb52===void 0x0?void 0x0:_0x41bb52[_0x2252a2(0x226)])&&((_0x41bb52===null||_0x41bb52===void 0x0?void 0x0:_0x41bb52[_0x2252a2(0x1c5)])||typeof(_0x41bb52===null||_0x41bb52===void 0x0?void 0x0:_0x41bb52[_0x2252a2(0x1c5)])==_0x2252a2(0x231))){if(((_0x110035=_0x114207[_0x2252a2(0x203)])===null||_0x110035===void 0x0?void 0x0:_0x110035['device'])&&((_0x204ae6=_0xe24c03===null||_0xe24c03===void 0x0?void 0x0:_0xe24c03[_0x114207[_0x2252a2(0x203)][_0x2252a2(0x1f1)]])===null||_0x204ae6===void 0x0?void 0x0:_0x204ae6['length'])>0x0)for(const _0xbb4488 of _0xe24c03[_0x114207[_0x2252a2(0x203)][_0x2252a2(0x1f1)]]||[]){if(core_1[_0x2252a2(0x1b8)][_0x2252a2(0x205)](_0xbb4488)){const _0x51c065=await _0x114207[_0x2252a2(0x209)]['getAsync'](_0xbb4488);typeof(_0x51c065===null||_0x51c065===void 0x0?void 0x0:_0x51c065[_0x2252a2(0x207)])==_0x2252a2(0x221)?await _0x51c065[_0x2252a2(0x207)](_0x114207,typeof(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x1f8)])==_0x2252a2(0x1ba)&&(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x233)])?_0x114207['method'][_0x2252a2(0x1f7)]()+'@'+(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x233)]):undefined,_0x41bb52)&&await _0x51c065[_0x2252a2(0x1d2)](_0x114207,typeof(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x1f8)])=='string'&&(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x233)])?_0x114207['method'][_0x2252a2(0x1f7)]()+'@'+(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x233)]):undefined,_0x41bb52):await _0x51c065[_0x2252a2(0x1d2)](_0x114207,typeof(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x1f8)])==_0x2252a2(0x1ba)&&(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x233)])?_0x114207['method'][_0x2252a2(0x1f7)]()+'@'+(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207[_0x2252a2(0x233)]):undefined,_0x41bb52);}else core_1[_0x2252a2(0x1b8)]['isFunction'](_0xbb4488)&&await _0xbb4488(_0x114207,typeof(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207['method'])=='string'&&(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207['_matchedRoute'])?_0x114207['method']['toLowerCase']()+'@'+(_0x114207===null||_0x114207===void 0x0?void 0x0:_0x114207['_matchedRoute']):undefined,_0x41bb52);}}return await _0x1751fb[_0x2252a2(0x20f)](..._0x1751fb['args']);},'afterThrow':(_0x1c3e19,_0x3fae33)=>{throw _0x3fae33;}};});}async['hanlderApplications'](){const _0x2e49cd=a2_0x298a47,_0x3bb057=this[_0x2e49cd(0x1eb)]['getConfiguration']();this[_0x2e49cd(0x1e6)][_0x2e49cd(0x1c7)](['koa'])[_0x2e49cd(0x1f9)](_0x1d055b=>{const _0x220890=_0x2e49cd;typeof _0x1d055b[_0x220890(0x21e)]==_0x220890(0x221)&&_0x1d055b['useMiddleware'](async(_0x3690be,_0x4f74e6)=>{const _0x204aeb=_0x220890;var _0x3a0ae5,_0x30f9db,_0x58d3b2,_0x7a2d92;if((_0x3690be===null||_0x3690be===void 0x0?void 0x0:_0x3690be['host'])&&!_0x3690be[_0x204aeb(0x1d4)][_0x204aeb(0x1c9)](_0x204aeb(0x22d))){let _0x129d34=_0x3690be['host'][_0x204aeb(0x235)](':');['80',_0x204aeb(0x229)][_0x204aeb(0x219)](_0x129d34===null||_0x129d34===void 0x0?void 0x0:_0x129d34[0x1])?_0x3690be[_0x204aeb(0x1fd)]=''+(!!((_0x30f9db=(_0x3a0ae5=_0x3690be===null||_0x3690be===void 0x0?void 0x0:_0x3690be['req'])===null||_0x3a0ae5===void 0x0?void 0x0:_0x3a0ae5[_0x204aeb(0x1b4)])===null||_0x30f9db===void 0x0?void 0x0:_0x30f9db['encrypted'])||(_0x129d34===null||_0x129d34===void 0x0?void 0x0:_0x129d34[0x1])==_0x204aeb(0x229)?_0x204aeb(0x1d7):_0x204aeb(0x1dd))+_0x129d34[0x0]:_0x3690be['hosturl']=''+(!!((_0x7a2d92=(_0x58d3b2=_0x3690be===null||_0x3690be===void 0x0?void 0x0:_0x3690be[_0x204aeb(0x1ca)])===null||_0x58d3b2===void 0x0?void 0x0:_0x58d3b2[_0x204aeb(0x1b4)])===null||_0x7a2d92===void 0x0?void 0x0:_0x7a2d92[_0x204aeb(0x227)])?'https://':_0x204aeb(0x1dd))+_0x3690be[_0x204aeb(0x1d4)];}await _0x4f74e6();}),(_0x1d055b===null||_0x1d055b===void 0x0?void 0x0:_0x1d055b['context'])&&Object[_0x220890(0x22f)](_0x1d055b[_0x220890(0x1cf)],{'ok':{'value':function(_0x35a0da,_0x2ecdb6,_0x5b5a89=0x0){return{'code':_0x5b5a89,'data':_0x35a0da,'extra':_0x2ecdb6};}},'input':{'value':function(_0x1e3963,_0x39fd02){const _0x2090f0=_0x220890;var _0x2a54cb;const _0x1e569f=lodash[_0x2090f0(0x1e2)]({},this['request'][_0x2090f0(0x1d6)]||this[_0x2090f0(0x232)][((_0x2a54cb=_0x3bb057===null||_0x3bb057===void 0x0?void 0x0:_0x3bb057['bodyXml'])===null||_0x2a54cb===void 0x0?void 0x0:_0x2a54cb[_0x2090f0(0x1c0)])||_0x2090f0(0x1d6)]||{},this[_0x2090f0(0x232)][_0x2090f0(0x1b1)]||{});return _0x1e3963?lodash[_0x2090f0(0x1be)](_0x1e569f,_0x1e3963,_0x39fd02):_0x1e569f;}},'when':{'value':async function(_0x36f3ea,_0xb2b529){const _0x55324e=_0x220890,_0x59c545=this[_0x55324e(0x210)](_0x36f3ea,null);if(!lodash[_0x55324e(0x1db)](_0x59c545))return await _0xb2b529(_0x59c545);}},'only':{'value':function(_0x4d23d1){const _0x5b420b=_0x220890,_0x6ae103={};for(let _0x4548f7=0x0;_0x4548f7<_0x4d23d1[_0x5b420b(0x1c3)];_0x4548f7++){lodash[_0x5b420b(0x211)](_0x4d23d1[_0x4548f7])&&_0x4d23d1[_0x4548f7][_0x5b420b(0x1c3)]>0x0&&lodash[_0x5b420b(0x224)](_0x4d23d1[_0x4548f7][0x0])&&(_0x6ae103[_0x4d23d1[_0x4548f7][0x0]]=this[_0x5b420b(0x210)](_0x4d23d1[_0x4548f7][0x0],_0x4d23d1[_0x4548f7][_0x5b420b(0x1c3)]>0x1?_0x4d23d1[_0x4548f7][0x1]:null));}return _0x6ae103;}},'koasend':{'value':function(_0x2133b5,_0x16b809){const _0x4af66e=_0x220890;if(_0x2133b5&&!fs[_0x4af66e(0x234)](_0x2133b5)&&!fs[_0x4af66e(0x234)](this[_0x4af66e(0x1d5)][_0x4af66e(0x20e)]()+'/'+_0x2133b5))return _0x4af66e(0x1fb);return _0x2133b5=fs[_0x4af66e(0x234)](_0x2133b5)?_0x2133b5:this[_0x4af66e(0x1d5)][_0x4af66e(0x20e)]()+'/'+_0x2133b5,this[_0x4af66e(0x1c8)](_0x16b809||_0x2133b5),koasend(this,_0x2133b5);}}});});}async[a2_0x298a47(0x1e0)](){const _0x3257f3=a2_0x298a47;var _0x331b02,_0xdc6e3a;if(fs['existsSync'](this[_0x3257f3(0x1d5)]['getBaseDir']()+_0x3257f3(0x22b))&&fs[_0x3257f3(0x1bf)](this[_0x3257f3(0x1d5)][_0x3257f3(0x1df)]()+_0x3257f3(0x22b))[_0x3257f3(0x1c2)]()){const _0x547438=this[_0x3257f3(0x1eb)][_0x3257f3(0x217)](),_0x384d55=((_0x331b02=_0x547438===null||_0x547438===void 0x0?void 0x0:_0x547438[_0x3257f3(0x1f2)])===null||_0x331b02===void 0x0?void 0x0:_0x331b02[_0x3257f3(0x206)])||{};for(const _0x4ac06d of fs[_0x3257f3(0x1ea)](this[_0x3257f3(0x1d5)][_0x3257f3(0x1df)]()+_0x3257f3(0x22b))){if(!fs[_0x3257f3(0x1bf)](this[_0x3257f3(0x1d5)][_0x3257f3(0x1df)]()+_0x3257f3(0x21f)+_0x4ac06d)[_0x3257f3(0x1c2)]())continue;if(_0x384d55===null||_0x384d55===void 0x0?void 0x0:_0x384d55[_0x4ac06d])continue;_0x384d55[_0x4ac06d]=Object[_0x3257f3(0x1b6)]({},((_0xdc6e3a=_0x547438===null||_0x547438===void 0x0?void 0x0:_0x547438[_0x3257f3(0x1f2)])===null||_0xdc6e3a===void 0x0?void 0x0:_0xdc6e3a[_0x3257f3(0x1e9)])||{'maxSize':'1m','dir':this[_0x3257f3(0x1d5)][_0x3257f3(0x20e)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x3257f3(0x22a)]['isDevelopmentEnvironment'](),'fileLogName':_0x4ac06d+_0x3257f3(0x213),'dir':this[_0x3257f3(0x1d5)][_0x3257f3(0x20e)]()+_0x3257f3(0x1fa)+_0x4ac06d+_0x3257f3(0x222)});}Object[_0x3257f3(0x216)](_0x384d55)[_0x3257f3(0x1c3)]>0x0&&(!_0x547438[_0x3257f3(0x1f2)]&&(_0x547438[_0x3257f3(0x1f2)]={'default':{'maxSize':'1m','dir':this[_0x3257f3(0x1d5)][_0x3257f3(0x20e)]()+'/runtime'}}),_0x547438[_0x3257f3(0x1f2)][_0x3257f3(0x206)]=_0x384d55),this[_0x3257f3(0x1eb)][_0x3257f3(0x1d0)](_0x547438);}}async[a2_0x298a47(0x1d3)](){const _0x5e7cbb=a2_0x298a47;var _0x1d5749,_0x536967,_0x4b5168,_0x52601e,_0x233255,_0x4f5430;const _0xff9252=this[_0x5e7cbb(0x1eb)][_0x5e7cbb(0x217)]();((_0x536967=(_0x1d5749=_0xff9252===null||_0xff9252===void 0x0?void 0x0:_0xff9252[_0x5e7cbb(0x1de)])===null||_0x1d5749===void 0x0?void 0x0:_0x1d5749['devices'])===null||_0x536967===void 0x0?void 0x0:_0x536967[_0x5e7cbb(0x1da)])&&Object['keys'](_0xff9252['anncicapi'][_0x5e7cbb(0x1e1)])[_0x5e7cbb(0x1c3)]>0x1&&delete _0xff9252[_0x5e7cbb(0x1de)]['devices'][_0x5e7cbb(0x1da)];if((_0x4b5168=_0xff9252===null||_0xff9252===void 0x0?void 0x0:_0xff9252[_0x5e7cbb(0x214)])===null||_0x4b5168===void 0x0?void 0x0:_0x4b5168[_0x5e7cbb(0x1f3)])for(const _0x456c5a in _0xff9252['staticFile']['dirs']){((_0x52601e=_0xff9252[_0x5e7cbb(0x214)][_0x5e7cbb(0x1f3)][_0x456c5a])===null||_0x52601e===void 0x0?void 0x0:_0x52601e[_0x5e7cbb(0x1ff)])&&typeof((_0x233255=_0xff9252[_0x5e7cbb(0x214)][_0x5e7cbb(0x1f3)][_0x456c5a])===null||_0x233255===void 0x0?void 0x0:_0x233255[_0x5e7cbb(0x1ff)])==_0x5e7cbb(0x1ba)&&!fs[_0x5e7cbb(0x234)](_0xff9252[_0x5e7cbb(0x214)]['dirs'][_0x456c5a][_0x5e7cbb(0x1ff)])&&(fs[_0x5e7cbb(0x237)](_0xff9252[_0x5e7cbb(0x214)][_0x5e7cbb(0x1f3)][_0x456c5a]['dir'],{'recursive':!![]}),console[_0x5e7cbb(0x1e8)](_0x5e7cbb(0x22c)+_0xff9252['staticFile']['dirs'][_0x456c5a]['dir']));}((_0x4f5430=_0xff9252===null||_0xff9252===void 0x0?void 0x0:_0xff9252[_0x5e7cbb(0x1ef)])===null||_0x4f5430===void 0x0?void 0x0:_0x4f5430[_0x5e7cbb(0x1e3)])&&!fs[_0x5e7cbb(0x234)](_0xff9252[_0x5e7cbb(0x1ef)]['tmpdir'])&&(fs['mkdirSync'](_0xff9252[_0x5e7cbb(0x1ef)][_0x5e7cbb(0x1e3)],{'recursive':!![]}),console[_0x5e7cbb(0x1e8)](_0x5e7cbb(0x22e)+_0xff9252[_0x5e7cbb(0x1ef)][_0x5e7cbb(0x1e3)])),this['config']['addObject'](_0xff9252);}};__decorate([(0x0,core_1[a2_0x298a47(0x1c6)])(),__metadata(a2_0x298a47(0x1cd),Object)],CustomConfiguration[a2_0x298a47(0x1e5)],a2_0x298a47(0x1d5),void 0x0),__decorate([(0x0,core_1[a2_0x298a47(0x1d1)])(),__metadata(a2_0x298a47(0x1cd),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x298a47(0x1cd),core_2[a2_0x298a47(0x1b9)])],CustomConfiguration[a2_0x298a47(0x1e5)],a2_0x298a47(0x225),void 0x0),__decorate([(0x0,core_1[a2_0x298a47(0x1d1)])(),__metadata('design:type',core_2[a2_0x298a47(0x201)])],CustomConfiguration[a2_0x298a47(0x1e5)],a2_0x298a47(0x1e6),void 0x0),__decorate([(0x0,core_1[a2_0x298a47(0x1d1)])(),__metadata('design:type',core_2[a2_0x298a47(0x215)])],CustomConfiguration[a2_0x298a47(0x1e5)],a2_0x298a47(0x22a),void 0x0),__decorate([(0x0,core_1[a2_0x298a47(0x1d1)])(),__metadata(a2_0x298a47(0x1cd),ApiService_1[a2_0x298a47(0x1b7)])],CustomConfiguration[a2_0x298a47(0x1e5)],a2_0x298a47(0x1b7),void 0x0),exports[a2_0x298a47(0x21b)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x298a47(0x1b2)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x298a47(0x1cb),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x5500(){const _0x123d3e=['getClassMetadata','Controller','description','filter','ACTION_KEY','post','@anncic-api/validator','/apps/','indexOf','ACTION_ROUTE_KEY','length','parseRoute','../types/action','basic/controller/','saveModule','trim','Action','assign','\x20文件请放在app/controller/文件下','createCustomMethodDecorator','2506164aBJzYP','6783iVrJoH','filepath','splice','-controller','apps/','6501573dAWCWa','existsSync','middleware','app/controller/','RequestMapping','split','505439SifXNg','search','/config.','string','intercept','22aFtSbA','4548FtlPIo','1256GOBPdR','endsWith','12cAsxnP','constructor','10141jyWuwK','get','/controller/','isArray','rootpath','route','substring','match','replace','@midwayjs/core','toLowerCase','routerName','validate','(((.+)+)+)+$','push','apply','module','defineProperty','1494GibAoo','Validator','apimit','toString','middlewareIgnore','16290yAFsVD','1030MehTDs','3UrTcpL','ActionApi','startsWith','\x20文件请放在apps/','AppsConfigTmp','-action','join','prefix'];a3_0x5500=function(){return _0x123d3e;};return a3_0x5500();}const a3_0x5c6e32=a3_0x5485;(function(_0x44c40,_0x33775f){const _0x3354d9=a3_0x5485,_0x1309da=_0x44c40();while(!![]){try{const _0x54dbdd=-parseInt(_0x3354d9(0x15c))/0x1*(-parseInt(_0x3354d9(0x156))/0x2)+parseInt(_0x3354d9(0x129))/0x3*(parseInt(_0x3354d9(0x145))/0x4)+-parseInt(_0x3354d9(0x174))/0x5*(-parseInt(_0x3354d9(0x157))/0x6)+-parseInt(_0x3354d9(0x146))/0x7*(-parseInt(_0x3354d9(0x158))/0x8)+-parseInt(_0x3354d9(0x16e))/0x9*(parseInt(_0x3354d9(0x173))/0xa)+parseInt(_0x3354d9(0x151))/0xb*(parseInt(_0x3354d9(0x15a))/0xc)+-parseInt(_0x3354d9(0x14b))/0xd;if(_0x54dbdd===_0x33775f)break;else _0x1309da['push'](_0x1309da['shift']());}catch(_0x317c32){_0x1309da['push'](_0x1309da['shift']());}}}(a3_0x5500,0x4e8fb));const a3_0x51eb42=(function(){let _0x6af0e=!![];return function(_0x49d96f,_0x5ca782){const _0x51c35f=_0x6af0e?function(){const _0x2f671b=a3_0x5485;if(_0x5ca782){const _0x52c87e=_0x5ca782[_0x2f671b(0x16b)](_0x49d96f,arguments);return _0x5ca782=null,_0x52c87e;}}:function(){};return _0x6af0e=![],_0x51c35f;};}()),a3_0x10ca6e=a3_0x51eb42(this,function(){const _0x441c89=a3_0x5485;return a3_0x10ca6e['toString']()[_0x441c89(0x152)](_0x441c89(0x169))[_0x441c89(0x171)]()[_0x441c89(0x15b)](a3_0x10ca6e)[_0x441c89(0x152)]('(((.+)+)+)+$');});function a3_0x5485(_0x4fcc02,_0x4710ef){const _0x46a317=a3_0x5500();return a3_0x5485=function(_0x10ca6e,_0x51eb42){_0x10ca6e=_0x10ca6e-0x129;let _0x550085=_0x46a317[_0x10ca6e];return _0x550085;},a3_0x5485(_0x4fcc02,_0x4710ef);}a3_0x10ca6e();'use strict';Object[a3_0x5c6e32(0x16d)](exports,'__esModule',{'value':!![]}),exports[a3_0x5c6e32(0x13c)]=exports[a3_0x5c6e32(0x12a)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x5c6e32(0x137)),core_1=require(a3_0x5c6e32(0x165)),core_2=require('@midwayjs/core'),action_1=require(a3_0x5c6e32(0x13d));function Action(_0x2bc126,_0x1eacd1,_0x57d6c4={'middleware':[],'sensitive':!![]}){return _0x4c153e=>{const _0x10d54f=a3_0x5485;var _0x39c0ce;_0x57d6c4['tagName']=_0x1eacd1;const _0x486a72=parseRoute(_0x2bc126);if(_0x486a72[_0x10d54f(0x16c)]){_0x57d6c4[_0x10d54f(0x130)]=_0x57d6c4[_0x10d54f(0x130)]?'/'+_0x486a72[_0x10d54f(0x16c)]+'/'+_0x57d6c4[_0x10d54f(0x130)]:'/'+_0x486a72[_0x10d54f(0x161)];_0x486a72[_0x10d54f(0x130)]&&(_0x57d6c4[_0x10d54f(0x130)]='/'+_0x486a72[_0x10d54f(0x130)]+'/'+_0x57d6c4[_0x10d54f(0x130)]);if(fs[_0x10d54f(0x14c)](_0x486a72[_0x10d54f(0x160)]+_0x10d54f(0x138)+_0x486a72['module']+_0x10d54f(0x153)+(lodash[_0x10d54f(0x159)](_0x486a72['filepath'],'ts')?'ts':'js'))){const _0x177f10=include(_0x486a72['rootpath']+_0x10d54f(0x138)+_0x486a72[_0x10d54f(0x16c)]+_0x10d54f(0x153)+(lodash[_0x10d54f(0x159)](_0x486a72[_0x10d54f(0x147)],'ts')?'ts':'js'));if(_0x177f10[_0x10d54f(0x14d)]&&lodash[_0x10d54f(0x15f)](_0x177f10['middleware'])&&_0x177f10[_0x10d54f(0x14d)][_0x10d54f(0x13b)]>0x0)for(let _0x1904e0 in _0x177f10[_0x10d54f(0x14d)]){if(((_0x39c0ce=_0x177f10===null||_0x177f10===void 0x0?void 0x0:_0x177f10['middlewareIgnore'])===null||_0x39c0ce===void 0x0?void 0x0:_0x39c0ce[_0x10d54f(0x13b)])>0x0&&_0x177f10[_0x10d54f(0x172)][_0x10d54f(0x139)](_0x177f10['middleware'][_0x1904e0])!=-0x1)continue;_0x57d6c4[_0x10d54f(0x14d)][_0x10d54f(0x16a)](_0x177f10[_0x10d54f(0x14d)][_0x1904e0]);}const _0x6ace89=(0x0,core_1[_0x10d54f(0x131)])(action_1['APPSCONFIG_KEY'],action_1[_0x10d54f(0x12d)])||{};_0x6ace89[''+_0x486a72[_0x10d54f(0x16c)]]=_0x177f10,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],_0x6ace89,action_1['AppsConfigTmp']);}_0x57d6c4[_0x10d54f(0x130)]=_0x57d6c4[_0x10d54f(0x130)][_0x10d54f(0x166)]()[_0x10d54f(0x164)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x4c153e),(0x0,core_1[_0x10d54f(0x132)])(_0x57d6c4[_0x10d54f(0x130)],_0x57d6c4)(_0x4c153e),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x57d6c4[_0x10d54f(0x130)],'pprefix':_0x486a72[_0x10d54f(0x130)],'module':_0x486a72['module'],'filepath':_0x486a72[_0x10d54f(0x147)],'routerOptions':_0x57d6c4},_0x4c153e);}else _0x57d6c4['prefix']=_0x57d6c4[_0x10d54f(0x130)]?'/'+_0x57d6c4[_0x10d54f(0x130)]:'/'+_0x486a72[_0x10d54f(0x161)],_0x486a72[_0x10d54f(0x130)]&&(_0x57d6c4[_0x10d54f(0x130)]='/'+_0x486a72[_0x10d54f(0x130)]+'/'+_0x57d6c4['prefix']),_0x57d6c4[_0x10d54f(0x130)]=_0x57d6c4[_0x10d54f(0x130)]['toLowerCase']()[_0x10d54f(0x164)](/\/{2,}/g,'/'),(0x0,core_1[_0x10d54f(0x13f)])(action_1[_0x10d54f(0x135)],_0x4c153e),(0x0,core_1[_0x10d54f(0x132)])(_0x57d6c4[_0x10d54f(0x130)],_0x57d6c4)(_0x4c153e),(0x0,core_1['saveClassMetadata'])(action_1[_0x10d54f(0x135)],{'prefix':_0x57d6c4['prefix'],'module':_0x486a72[_0x10d54f(0x16c)],'pprefix':_0x486a72[_0x10d54f(0x130)],'filepath':_0x486a72[_0x10d54f(0x147)],'routerOptions':_0x57d6c4},_0x4c153e);};}exports[a3_0x5c6e32(0x141)]=Action,Action[a3_0x5c6e32(0x15d)]=function(_0x627c3b,_0x14cc21='/',_0x55bcf2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1d553b,_0x36fa9b,_0x142ee8)=>{const _0x4d06d5=a3_0x5485;ActionApi(_0x627c3b,_0x4d06d5(0x15d),_0x14cc21,_0x55bcf2)(_0x1d553b,_0x36fa9b,_0x142ee8);};},Action[a3_0x5c6e32(0x136)]=function(_0x5e2a91,_0x57acfa='/',_0x3e6ca4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2fed0a,_0x2a05ea,_0x43119e)=>{const _0x260958=a3_0x5485;ActionApi(_0x5e2a91,_0x260958(0x136),_0x57acfa,_0x3e6ca4)(_0x2fed0a,_0x2a05ea,_0x43119e);};};function ActionApi(_0x26a770,_0x43cbac=a3_0x5c6e32(0x15d),_0x3a80c7='/',_0x3f525b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4e612f,_0xa50b8a,_0x655059)=>{const _0x31f80b=a3_0x5485;var _0x1d7302,_0x596221,_0xcdaea2;!_0x3f525b[_0x31f80b(0x14d)]&&(_0x3f525b[_0x31f80b(0x14d)]=[]);!((_0x1d7302=_0x3f525b===null||_0x3f525b===void 0x0?void 0x0:_0x3f525b[_0x31f80b(0x168)])===null||_0x1d7302===void 0x0?void 0x0:_0x1d7302['validationOptions'])&&(_0x3f525b[_0x31f80b(0x168)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x31f80b(0x154)}});if(!_0x3a80c7)_0x3a80c7='/';else typeof _0x3a80c7=='string'&&(!_0x3a80c7[_0x31f80b(0x12b)]('/')&&!_0x3a80c7[_0x31f80b(0x12b)]('-')&&(_0x3a80c7='/'+_0x3a80c7));typeof _0x3f525b[_0x31f80b(0x170)]=='undefined'&&(_0x3f525b[_0x31f80b(0x170)]=!![]);if(((_0x596221=_0x3f525b===null||_0x3f525b===void 0x0?void 0x0:_0x3f525b[_0x31f80b(0x14d)])===null||_0x596221===void 0x0?void 0x0:_0x596221[_0x31f80b(0x13b)])>0x0&&((_0xcdaea2=_0x3f525b===null||_0x3f525b===void 0x0?void 0x0:_0x3f525b[_0x31f80b(0x172)])===null||_0xcdaea2===void 0x0?void 0x0:_0xcdaea2['length'])>0x0)for(let _0x2c5a1d in _0x3f525b['middleware']){_0x3f525b[_0x31f80b(0x172)][_0x31f80b(0x139)](_0x3f525b[_0x31f80b(0x14d)][_0x2c5a1d])!==-0x1&&(_0x3f525b[_0x31f80b(0x14d)][_0x2c5a1d]=null);}_0x3f525b['routerName']=_0x26a770,(0x0,validator_1[_0x31f80b(0x16f)])(_0x3f525b[_0x31f80b(0x168)])(_0x4e612f,_0xa50b8a,_0x655059),(0x0,core_2[_0x31f80b(0x14f)])(Object[_0x31f80b(0x142)](_0x3f525b,{'path':_0x3a80c7,'requestMethod':(_0x43cbac||_0x31f80b(0x15d))['toLowerCase']()}))(_0x4e612f,_0xa50b8a,_0x655059),(0x0,core_2['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3a80c7,'method':_0xa50b8a,'apimit':_0x3f525b['apimit'],'intercept':_0x3f525b['intercept'],'routerName':_0x3f525b[_0x31f80b(0x167)],'description':_0x3f525b[_0x31f80b(0x133)],'middleware':(_0x3f525b[_0x31f80b(0x14d)]||[])['filter'](_0x8a17de=>!!_0x8a17de),'requestMethod':(_0x43cbac||_0x31f80b(0x15d))[_0x31f80b(0x166)]()},_0x4e612f),(0x0,core_2[_0x31f80b(0x144)])(action_1[_0x31f80b(0x13a)],{'path':_0x3a80c7,'method':_0xa50b8a,'apimit':_0x3f525b['apimit'],'intercept':_0x3f525b[_0x31f80b(0x155)],'routerName':_0x3f525b[_0x31f80b(0x167)],'description':_0x3f525b[_0x31f80b(0x133)],'middleware':(_0x3f525b['middleware']||[])[_0x31f80b(0x134)](_0x162d62=>!!_0x162d62),'requestMethod':(_0x43cbac||_0x31f80b(0x15d))['toLowerCase']()})(_0x4e612f,_0xa50b8a,_0x655059);};}exports[a3_0x5c6e32(0x12a)]=ActionApi;function parseRoute(_0x5cec31){const _0x1b9b3e=a3_0x5c6e32;_0x5cec31=_0x5cec31[_0x1b9b3e(0x164)](/(\\|\/)/g,'/');const _0x5185ea=process['cwd']()[_0x1b9b3e(0x164)](/(\\|\/)/g,'/'),_0x3b4f2d=_0x5cec31[_0x1b9b3e(0x162)](0x0,_0x5185ea[_0x1b9b3e(0x13b)]+_0x5cec31[_0x1b9b3e(0x162)](_0x5185ea[_0x1b9b3e(0x13b)]+0x1)[_0x1b9b3e(0x139)]('/')+0x1),_0x49952f=_0x5cec31[_0x1b9b3e(0x162)](_0x3b4f2d[_0x1b9b3e(0x13b)]+0x1)[_0x1b9b3e(0x164)](/(\\|\/)/g,'/'),_0x2b250e={'route':'','prefix':![],'module':![],'rootpath':_0x3b4f2d,'filepath':_0x49952f};if(_0x49952f['startsWith']('app/controller/')||_0x49952f[_0x1b9b3e(0x12b)](_0x1b9b3e(0x13e))){const _0x2fe372=_0x49952f[_0x1b9b3e(0x162)]((_0x49952f['startsWith']('app/controller/')?_0x1b9b3e(0x14e):'basic/controller/')[_0x1b9b3e(0x13b)])[_0x1b9b3e(0x150)]('/')[_0x1b9b3e(0x134)](_0xd7c7f9=>_0xd7c7f9&&_0xd7c7f9['trim']());return _0x2fe372[_0x1b9b3e(0x13b)]>0x1&&(_0x2b250e[_0x1b9b3e(0x130)]=_0x2fe372[0x0][_0x1b9b3e(0x166)](),_0x2fe372[_0x1b9b3e(0x148)](0x0,0x1)),_0x2b250e[_0x1b9b3e(0x161)]=('/'+_0x2fe372[_0x1b9b3e(0x12f)]('/'))[_0x1b9b3e(0x164)](/(\.ts|\.js)$/,'')[_0x1b9b3e(0x164)](/\/{2,}/g,'/')[_0x1b9b3e(0x163)](/[\/|A-Z]*[^A-Z]+/g)[_0x1b9b3e(0x12f)]('-')[_0x1b9b3e(0x166)]()[_0x1b9b3e(0x164)](/\/\-/g,'/'),_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x159)](_0x1b9b3e(0x12e))&&(_0x2b250e[_0x1b9b3e(0x161)]=_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x162)](0x0,_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x13b)]-0x7)),_0x2b250e[_0x1b9b3e(0x161)]['endsWith'](_0x1b9b3e(0x149))&&(_0x2b250e[_0x1b9b3e(0x161)]=_0x2b250e['route']['substring'](0x0,_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x13b)]-0xb)),_0x2b250e;}else{if(_0x49952f['startsWith'](_0x1b9b3e(0x14a))){const _0x234177=_0x49952f['substring'](0x0,_0x49952f['indexOf'](_0x1b9b3e(0x138))+0x5),_0x22fd30=_0x49952f[_0x1b9b3e(0x162)](_0x234177[_0x1b9b3e(0x13b)]+0x1)[_0x1b9b3e(0x164)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x49952f[_0x1b9b3e(0x12b)]('apps/'+_0x22fd30+_0x1b9b3e(0x15e))){const _0x5da2b7=_0x49952f[_0x1b9b3e(0x162)]((_0x234177+'/'+_0x22fd30+_0x1b9b3e(0x15e))[_0x1b9b3e(0x13b)])[_0x1b9b3e(0x150)]('/')['filter'](_0x2a5727=>_0x2a5727&&_0x2a5727[_0x1b9b3e(0x140)]());return _0x5da2b7[_0x1b9b3e(0x13b)]>0x1&&(_0x2b250e[_0x1b9b3e(0x130)]=_0x5da2b7[0x0][_0x1b9b3e(0x166)](),_0x5da2b7[_0x1b9b3e(0x148)](0x0,0x1)),_0x2b250e[_0x1b9b3e(0x16c)]=_0x22fd30,_0x2b250e['route']=('/'+_0x22fd30+'/'+_0x5da2b7['join']('/'))[_0x1b9b3e(0x164)](/(\.ts|\.js)$/,'')[_0x1b9b3e(0x164)](/\/{2,}/g,'/')[_0x1b9b3e(0x163)](/[\/|A-Z]*[^A-Z]+/g)[_0x1b9b3e(0x12f)]('-')['toLowerCase']()[_0x1b9b3e(0x164)](/\/\-/g,'/'),_0x2b250e['route'][_0x1b9b3e(0x159)]('-action')&&(_0x2b250e['route']=_0x2b250e['route'][_0x1b9b3e(0x162)](0x0,_0x2b250e['route']['length']-0x7)),_0x2b250e['route']['endsWith'](_0x1b9b3e(0x149))&&(_0x2b250e[_0x1b9b3e(0x161)]=_0x2b250e[_0x1b9b3e(0x161)]['substring'](0x0,_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x13b)]-0xb)),_0x2b250e;}throw new Error(_0x49952f+_0x1b9b3e(0x12c)+_0x22fd30+'/controller/文件下');}}throw new Error(_0x49952f+_0x1b9b3e(0x143));}exports[a3_0x5c6e32(0x13c)]=parseRoute;
|
|
1
|
+
const a3_0x6182fb=a3_0x1574;function a3_0x1431(){const _0x356e48=['11115ttNLLD','split','string','saveModule','/apps/','Validator','routerName','description','1360rTnrGZ','-action','route','(((.+)+)+)+$','/controller/文件下','Controller','saveClassMetadata','__esModule','middlewareIgnore','length','APPSCONFIG_KEY','validate','ACTION_KEY','existsSync','basic/controller/','RequestMapping','constructor','splice','69535NWlIxS','11538cXvQid','7240gRNgSG','middleware','\x20文件请放在apps/','join','toLowerCase','Action','post','substring','2213525lOMYgO','parseRoute','62ECBSeI','prefix','endsWith','filter','4RfRPpI','search','/controller/','get','../types/action','replace','module','app/controller/','filepath','/config.','rootpath','ACTION_ROUTE_KEY','intercept','@anncic-api/validator','getClassMetadata','tagName','apimit','-controller','apps/','isArray','@midwayjs/core','1690150UpJGoB','push','validationOptions','AppsConfigTmp','89276giZwiH','trim','cwd','toString','224982grUUUf','indexOf','match','undefined','startsWith','defineProperty','\x20文件请放在app/controller/文件下'];a3_0x1431=function(){return _0x356e48;};return a3_0x1431();}(function(_0x335749,_0x2f194a){const _0x2a93e9=a3_0x1574,_0x2d35b8=_0x335749();while(!![]){try{const _0x27bb87=parseInt(_0x2a93e9(0x219))/0x1+parseInt(_0x2a93e9(0x1d7))/0x2*(-parseInt(_0x2a93e9(0x21a))/0x3)+-parseInt(_0x2a93e9(0x1db))/0x4*(-parseInt(_0x2a93e9(0x1d5))/0x5)+-parseInt(_0x2a93e9(0x1f8))/0x6+parseInt(_0x2a93e9(0x1f0))/0x7+-parseInt(_0x2a93e9(0x21b))/0x8*(parseInt(_0x2a93e9(0x1ff))/0x9)+-parseInt(_0x2a93e9(0x207))/0xa*(-parseInt(_0x2a93e9(0x1f4))/0xb);if(_0x27bb87===_0x2f194a)break;else _0x2d35b8['push'](_0x2d35b8['shift']());}catch(_0x76b808){_0x2d35b8['push'](_0x2d35b8['shift']());}}}(a3_0x1431,0x8e59c));const a3_0x1ae705=(function(){let _0x16790c=!![];return function(_0x502cee,_0x5d7ba4){const _0x977d56=_0x16790c?function(){if(_0x5d7ba4){const _0x2649ea=_0x5d7ba4['apply'](_0x502cee,arguments);return _0x5d7ba4=null,_0x2649ea;}}:function(){};return _0x16790c=![],_0x977d56;};}()),a3_0x58adfa=a3_0x1ae705(this,function(){const _0xc23423=a3_0x1574;return a3_0x58adfa[_0xc23423(0x1f7)]()[_0xc23423(0x1dc)](_0xc23423(0x20a))[_0xc23423(0x1f7)]()[_0xc23423(0x217)](a3_0x58adfa)[_0xc23423(0x1dc)]('(((.+)+)+)+$');});a3_0x58adfa();'use strict';Object[a3_0x6182fb(0x1fd)](exports,a3_0x6182fb(0x20e),{'value':!![]}),exports[a3_0x6182fb(0x1d6)]=exports['ActionApi']=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x6182fb(0x1e8)),core_1=require(a3_0x6182fb(0x1ef)),core_2=require(a3_0x6182fb(0x1ef)),action_1=require(a3_0x6182fb(0x1df));function Action(_0x58a514,_0x3b4e17,_0x9cfe4={'middleware':[],'sensitive':!![]}){return _0x2f95d4=>{const _0x446fed=a3_0x1574;var _0x3ff440;_0x9cfe4[_0x446fed(0x1ea)]=_0x3b4e17;const _0x2386e6=parseRoute(_0x58a514);if(_0x2386e6[_0x446fed(0x1e1)]){_0x9cfe4[_0x446fed(0x1d8)]=_0x9cfe4[_0x446fed(0x1d8)]?'/'+_0x2386e6['module']+'/'+_0x9cfe4['prefix']:'/'+_0x2386e6[_0x446fed(0x209)];_0x2386e6['prefix']&&(_0x9cfe4[_0x446fed(0x1d8)]='/'+_0x2386e6['prefix']+'/'+_0x9cfe4[_0x446fed(0x1d8)]);if(fs[_0x446fed(0x214)](_0x2386e6[_0x446fed(0x1e5)]+_0x446fed(0x203)+_0x2386e6[_0x446fed(0x1e1)]+_0x446fed(0x1e4)+(lodash[_0x446fed(0x1d9)](_0x2386e6[_0x446fed(0x1e3)],'ts')?'ts':'js'))){const _0x3bb228=include(_0x2386e6['rootpath']+_0x446fed(0x203)+_0x2386e6[_0x446fed(0x1e1)]+_0x446fed(0x1e4)+(lodash[_0x446fed(0x1d9)](_0x2386e6[_0x446fed(0x1e3)],'ts')?'ts':'js'));if(_0x3bb228[_0x446fed(0x21c)]&&lodash[_0x446fed(0x1ee)](_0x3bb228['middleware'])&&_0x3bb228['middleware'][_0x446fed(0x210)]>0x0)for(let _0x36bd32 in _0x3bb228['middleware']){if(((_0x3ff440=_0x3bb228===null||_0x3bb228===void 0x0?void 0x0:_0x3bb228['middlewareIgnore'])===null||_0x3ff440===void 0x0?void 0x0:_0x3ff440[_0x446fed(0x210)])>0x0&&_0x3bb228[_0x446fed(0x20f)][_0x446fed(0x1f9)](_0x3bb228[_0x446fed(0x21c)][_0x36bd32])!=-0x1)continue;_0x9cfe4[_0x446fed(0x21c)][_0x446fed(0x1f1)](_0x3bb228[_0x446fed(0x21c)][_0x36bd32]);}const _0x158e63=(0x0,core_1[_0x446fed(0x1e9)])(action_1[_0x446fed(0x211)],action_1[_0x446fed(0x1f3)])||{};_0x158e63[''+_0x2386e6[_0x446fed(0x1e1)]]=_0x3bb228,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],_0x158e63,action_1['AppsConfigTmp']);}_0x9cfe4['prefix']=_0x9cfe4['prefix']['toLowerCase']()[_0x446fed(0x1e0)](/\/{2,}/g,'/'),(0x0,core_1[_0x446fed(0x202)])(action_1['ACTION_KEY'],_0x2f95d4),(0x0,core_1['Controller'])(_0x9cfe4['prefix'],_0x9cfe4)(_0x2f95d4),(0x0,core_1[_0x446fed(0x20d)])(action_1[_0x446fed(0x213)],{'prefix':_0x9cfe4[_0x446fed(0x1d8)],'pprefix':_0x2386e6[_0x446fed(0x1d8)],'module':_0x2386e6['module'],'filepath':_0x2386e6[_0x446fed(0x1e3)],'routerOptions':_0x9cfe4},_0x2f95d4);}else _0x9cfe4[_0x446fed(0x1d8)]=_0x9cfe4['prefix']?'/'+_0x9cfe4[_0x446fed(0x1d8)]:'/'+_0x2386e6[_0x446fed(0x209)],_0x2386e6[_0x446fed(0x1d8)]&&(_0x9cfe4[_0x446fed(0x1d8)]='/'+_0x2386e6['prefix']+'/'+_0x9cfe4['prefix']),_0x9cfe4[_0x446fed(0x1d8)]=_0x9cfe4[_0x446fed(0x1d8)][_0x446fed(0x21f)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x446fed(0x213)],_0x2f95d4),(0x0,core_1[_0x446fed(0x20c)])(_0x9cfe4[_0x446fed(0x1d8)],_0x9cfe4)(_0x2f95d4),(0x0,core_1[_0x446fed(0x20d)])(action_1[_0x446fed(0x213)],{'prefix':_0x9cfe4['prefix'],'module':_0x2386e6[_0x446fed(0x1e1)],'pprefix':_0x2386e6[_0x446fed(0x1d8)],'filepath':_0x2386e6[_0x446fed(0x1e3)],'routerOptions':_0x9cfe4},_0x2f95d4);};}exports[a3_0x6182fb(0x1d2)]=Action,Action[a3_0x6182fb(0x1de)]=function(_0xf28b02,_0x15730b='/',_0x518a2b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x289c89,_0x53a07c,_0x23651f)=>{const _0x38f8d0=a3_0x1574;ActionApi(_0xf28b02,_0x38f8d0(0x1de),_0x15730b,_0x518a2b)(_0x289c89,_0x53a07c,_0x23651f);};},Action[a3_0x6182fb(0x1d3)]=function(_0x481c95,_0x3bf1a4='/',_0x10ac88={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5cb8ee,_0x4ced1d,_0x1e3822)=>{ActionApi(_0x481c95,'post',_0x3bf1a4,_0x10ac88)(_0x5cb8ee,_0x4ced1d,_0x1e3822);};};function ActionApi(_0x437a3f,_0x57b154=a3_0x6182fb(0x1de),_0x5c86e8='/',_0x57dbeb={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xc9ec17,_0x28b57a,_0x27261b)=>{const _0x5691eb=a3_0x1574;var _0x110c3f,_0x488f02,_0x654c68;!_0x57dbeb[_0x5691eb(0x21c)]&&(_0x57dbeb[_0x5691eb(0x21c)]=[]);!((_0x110c3f=_0x57dbeb===null||_0x57dbeb===void 0x0?void 0x0:_0x57dbeb[_0x5691eb(0x212)])===null||_0x110c3f===void 0x0?void 0x0:_0x110c3f[_0x5691eb(0x1f2)])&&(_0x57dbeb[_0x5691eb(0x212)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5691eb(0x201)}});if(!_0x5c86e8)_0x5c86e8='/';else typeof _0x5c86e8=='string'&&(!_0x5c86e8[_0x5691eb(0x1fc)]('/')&&!_0x5c86e8[_0x5691eb(0x1fc)]('-')&&(_0x5c86e8='/'+_0x5c86e8));typeof _0x57dbeb[_0x5691eb(0x1eb)]==_0x5691eb(0x1fb)&&(_0x57dbeb[_0x5691eb(0x1eb)]=!![]);if(((_0x488f02=_0x57dbeb===null||_0x57dbeb===void 0x0?void 0x0:_0x57dbeb[_0x5691eb(0x21c)])===null||_0x488f02===void 0x0?void 0x0:_0x488f02[_0x5691eb(0x210)])>0x0&&((_0x654c68=_0x57dbeb===null||_0x57dbeb===void 0x0?void 0x0:_0x57dbeb[_0x5691eb(0x20f)])===null||_0x654c68===void 0x0?void 0x0:_0x654c68['length'])>0x0)for(let _0x41bacc in _0x57dbeb[_0x5691eb(0x21c)]){_0x57dbeb[_0x5691eb(0x20f)][_0x5691eb(0x1f9)](_0x57dbeb[_0x5691eb(0x21c)][_0x41bacc])!==-0x1&&(_0x57dbeb[_0x5691eb(0x21c)][_0x41bacc]=null);}_0x57dbeb['routerName']=_0x437a3f,(0x0,validator_1[_0x5691eb(0x204)])(_0x57dbeb[_0x5691eb(0x212)])(_0xc9ec17,_0x28b57a,_0x27261b),(0x0,core_2[_0x5691eb(0x216)])(Object['assign'](_0x57dbeb,{'path':_0x5c86e8,'requestMethod':(_0x57b154||_0x5691eb(0x1de))[_0x5691eb(0x21f)]()}))(_0xc9ec17,_0x28b57a,_0x27261b),(0x0,core_2['attachClassMetadata'])(action_1[_0x5691eb(0x1e6)],{'path':_0x5c86e8,'method':_0x28b57a,'apimit':_0x57dbeb[_0x5691eb(0x1eb)],'intercept':_0x57dbeb[_0x5691eb(0x1e7)],'routerName':_0x57dbeb[_0x5691eb(0x205)],'description':_0x57dbeb['description'],'middleware':(_0x57dbeb['middleware']||[])['filter'](_0x5de599=>!!_0x5de599),'requestMethod':(_0x57b154||_0x5691eb(0x1de))[_0x5691eb(0x21f)]()},_0xc9ec17),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x5691eb(0x1e6)],{'path':_0x5c86e8,'method':_0x28b57a,'apimit':_0x57dbeb[_0x5691eb(0x1eb)],'intercept':_0x57dbeb[_0x5691eb(0x1e7)],'routerName':_0x57dbeb['routerName'],'description':_0x57dbeb[_0x5691eb(0x206)],'middleware':(_0x57dbeb[_0x5691eb(0x21c)]||[])[_0x5691eb(0x1da)](_0x59d00a=>!!_0x59d00a),'requestMethod':(_0x57b154||'get')['toLowerCase']()})(_0xc9ec17,_0x28b57a,_0x27261b);};}exports['ActionApi']=ActionApi;function parseRoute(_0x2be1e4){const _0x53a686=a3_0x6182fb;_0x2be1e4=_0x2be1e4[_0x53a686(0x1e0)](/(\\|\/)/g,'/');const _0x1beec8=process[_0x53a686(0x1f6)]()['replace'](/(\\|\/)/g,'/'),_0x5a337d=_0x2be1e4[_0x53a686(0x1d4)](0x0,_0x1beec8[_0x53a686(0x210)]+_0x2be1e4[_0x53a686(0x1d4)](_0x1beec8['length']+0x1)['indexOf']('/')+0x1),_0x2568a2=_0x2be1e4['substring'](_0x5a337d[_0x53a686(0x210)]+0x1)[_0x53a686(0x1e0)](/(\\|\/)/g,'/'),_0x1ef603={'route':'','prefix':![],'module':![],'rootpath':_0x5a337d,'filepath':_0x2568a2};if(_0x2568a2[_0x53a686(0x1fc)](_0x53a686(0x1e2))||_0x2568a2[_0x53a686(0x1fc)]('basic/controller/')){const _0xf844bf=_0x2568a2['substring']((_0x2568a2[_0x53a686(0x1fc)](_0x53a686(0x1e2))?_0x53a686(0x1e2):_0x53a686(0x215))[_0x53a686(0x210)])[_0x53a686(0x200)]('/')['filter'](_0x5c3fab=>_0x5c3fab&&_0x5c3fab[_0x53a686(0x1f5)]());return _0xf844bf[_0x53a686(0x210)]>0x1&&(_0x1ef603[_0x53a686(0x1d8)]=_0xf844bf[0x0][_0x53a686(0x21f)](),_0xf844bf[_0x53a686(0x218)](0x0,0x1)),_0x1ef603[_0x53a686(0x209)]=('/'+_0xf844bf['join']('/'))[_0x53a686(0x1e0)](/(\.ts|\.js)$/,'')[_0x53a686(0x1e0)](/\/{2,}/g,'/')[_0x53a686(0x1fa)](/[\/|A-Z]*[^A-Z]+/g)[_0x53a686(0x21e)]('-')[_0x53a686(0x21f)]()[_0x53a686(0x1e0)](/\/\-/g,'/'),_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d9)](_0x53a686(0x208))&&(_0x1ef603['route']=_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d4)](0x0,_0x1ef603[_0x53a686(0x209)][_0x53a686(0x210)]-0x7)),_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d9)](_0x53a686(0x1ec))&&(_0x1ef603['route']=_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d4)](0x0,_0x1ef603[_0x53a686(0x209)][_0x53a686(0x210)]-0xb)),_0x1ef603;}else{if(_0x2568a2[_0x53a686(0x1fc)](_0x53a686(0x1ed))){const _0x5798a6=_0x2568a2[_0x53a686(0x1d4)](0x0,_0x2568a2[_0x53a686(0x1f9)]('/apps/')+0x5),_0x49044c=_0x2568a2[_0x53a686(0x1d4)](_0x5798a6[_0x53a686(0x210)]+0x1)[_0x53a686(0x1e0)](/(\\|\/)/g,'/')[_0x53a686(0x200)]('/')[0x0];if(_0x2568a2[_0x53a686(0x1fc)]('apps/'+_0x49044c+_0x53a686(0x1dd))){const _0x1c7703=_0x2568a2[_0x53a686(0x1d4)]((_0x5798a6+'/'+_0x49044c+_0x53a686(0x1dd))['length'])['split']('/')['filter'](_0x209d02=>_0x209d02&&_0x209d02['trim']());return _0x1c7703[_0x53a686(0x210)]>0x1&&(_0x1ef603[_0x53a686(0x1d8)]=_0x1c7703[0x0][_0x53a686(0x21f)](),_0x1c7703['splice'](0x0,0x1)),_0x1ef603[_0x53a686(0x1e1)]=_0x49044c,_0x1ef603[_0x53a686(0x209)]=('/'+_0x49044c+'/'+_0x1c7703['join']('/'))[_0x53a686(0x1e0)](/(\.ts|\.js)$/,'')[_0x53a686(0x1e0)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x53a686(0x21e)]('-')[_0x53a686(0x21f)]()['replace'](/\/\-/g,'/'),_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d9)](_0x53a686(0x208))&&(_0x1ef603[_0x53a686(0x209)]=_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d4)](0x0,_0x1ef603[_0x53a686(0x209)][_0x53a686(0x210)]-0x7)),_0x1ef603[_0x53a686(0x209)]['endsWith'](_0x53a686(0x1ec))&&(_0x1ef603['route']=_0x1ef603[_0x53a686(0x209)][_0x53a686(0x1d4)](0x0,_0x1ef603[_0x53a686(0x209)]['length']-0xb)),_0x1ef603;}throw new Error(_0x2568a2+_0x53a686(0x21d)+_0x49044c+_0x53a686(0x20b));}}throw new Error(_0x2568a2+_0x53a686(0x1fe));}function a3_0x1574(_0x512416,_0x316d44){const _0x4ad395=a3_0x1431();return a3_0x1574=function(_0x58adfa,_0x1ae705){_0x58adfa=_0x58adfa-0x1d2;let _0x14317a=_0x4ad395[_0x58adfa];return _0x14317a;},a3_0x1574(_0x512416,_0x316d44);}exports[a3_0x6182fb(0x1d6)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x9d79f0=a4_0x4940;(function(_0x489a96,_0x44c19f){const _0x41f73d=a4_0x4940,_0x20d8f3=_0x489a96();while(!![]){try{const _0x1c553d=parseInt(_0x41f73d(0x172))/0x1+parseInt(_0x41f73d(0x161))/0x2+-parseInt(_0x41f73d(0x16d))/0x3+parseInt(_0x41f73d(0x168))/0x4*(-parseInt(_0x41f73d(0x157))/0x5)+parseInt(_0x41f73d(0x162))/0x6*(parseInt(_0x41f73d(0x15f))/0x7)+-parseInt(_0x41f73d(0x174))/0x8*(-parseInt(_0x41f73d(0x166))/0x9)+-parseInt(_0x41f73d(0x16c))/0xa;if(_0x1c553d===_0x44c19f)break;else _0x20d8f3['push'](_0x20d8f3['shift']());}catch(_0x14c325){_0x20d8f3['push'](_0x20d8f3['shift']());}}}(a4_0x4942,0x37197));const a4_0x542d00=(function(){let _0x2459f4=!![];return function(_0x428374,_0x45d144){const _0x3f05e5=_0x2459f4?function(){const _0x41cd68=a4_0x4940;if(_0x45d144){const _0x4adae0=_0x45d144[_0x41cd68(0x15d)](_0x428374,arguments);return _0x45d144=null,_0x4adae0;}}:function(){};return _0x2459f4=![],_0x3f05e5;};}()),a4_0x14cf4b=a4_0x542d00(this,function(){const _0x2a9e98=a4_0x4940;return a4_0x14cf4b[_0x2a9e98(0x160)]()['search'](_0x2a9e98(0x15a))[_0x2a9e98(0x160)]()['constructor'](a4_0x14cf4b)[_0x2a9e98(0x15c)](_0x2a9e98(0x15a));});a4_0x14cf4b();function a4_0x4940(_0x175c8c,_0x41913a){const _0x85660e=a4_0x4942();return a4_0x4940=function(_0x14cf4b,_0x542d00){_0x14cf4b=_0x14cf4b-0x157;let _0x4942f0=_0x85660e[_0x14cf4b];return _0x4942f0;},a4_0x4940(_0x175c8c,_0x41913a);}'use strict';function a4_0x4942(){const _0x4f0d22=['REQUEST_OBJ_CTX_KEY','423367gLMHUw','isDevelopmentEnvironment','289096lHXXtY','10rxbrgU','filepath','Apitest','(((.+)+)+)+$','value','search','apply','getApplicationContext','123837veCZfd','toString','646526oHHETs','24mqosQT','__esModule','/apitest','../service/ApitestService','72NXvoTi','apitest','361276DthwHA','apidoc','getAsync','RequestMapping','6969570fLdJCJ','9624ORvjJd','ApitestService','app','@midwayjs/core'];a4_0x4942=function(){return _0x4f0d22;};return a4_0x4942();}Object['defineProperty'](exports,a4_0x9d79f0(0x163),{'value':!![]}),exports[a4_0x9d79f0(0x159)]=void 0x0;const core_1=require(a4_0x9d79f0(0x170)),ApitestService_1=require(a4_0x9d79f0(0x165));function Apitest(_0x23fee3=a4_0x9d79f0(0x164),_0x167f67){return(_0x41a97d,_0x43fdda,_0x40d667)=>{const _0x53d664=a4_0x4940;return(0x0,core_1[_0x53d664(0x16b)])({'path':_0x23fee3,'requestMethod':'get'})(_0x41a97d,_0x43fdda,_0x40d667),_0x40d667[_0x53d664(0x15b)]=async function(..._0xe2d2ce){const _0x19a57d=_0x53d664;var _0x2134fb;const _0x25d7b6=(_0x2134fb=this[core_1[_0x19a57d(0x171)]])===null||_0x2134fb===void 0x0?void 0x0:_0x2134fb[_0x19a57d(0x16f)];if(_0x25d7b6&&_0x25d7b6['getConfig'](_0x19a57d(0x167))){const _0x4cbd49=await _0x25d7b6['getApplicationContext']()[_0x19a57d(0x16a)](ApitestService_1[_0x19a57d(0x16e)]),_0x3a296b=await _0x25d7b6[_0x19a57d(0x15e)]()[_0x19a57d(0x16a)](core_1['MidwayEnvironmentService']);return _0x3a296b[_0x19a57d(0x173)]()&&(_0x167f67[_0x19a57d(0x158)]=!![]),await _0x4cbd49[_0x19a57d(0x169)](_0x167f67);}return'';},_0x40d667;};}exports[a4_0x9d79f0(0x159)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x58d8da=a5_0xd328;(function(_0x5912ea,_0x3e47c4){const _0x2e0849=a5_0xd328,_0x23b146=_0x5912ea();while(!![]){try{const _0x559147=-parseInt(_0x2e0849(0xbe))/0x1*(parseInt(_0x2e0849(0xbb))/0x2)+-parseInt(_0x2e0849(0xc0))/0x3*(-parseInt(_0x2e0849(0xcb))/0x4)+-parseInt(_0x2e0849(0xc7))/0x5*(-parseInt(_0x2e0849(0xd1))/0x6)+-parseInt(_0x2e0849(0xd3))/0x7+parseInt(_0x2e0849(0xc9))/0x8+parseInt(_0x2e0849(0xca))/0x9+-parseInt(_0x2e0849(0xd0))/0xa;if(_0x559147===_0x3e47c4)break;else _0x23b146['push'](_0x23b146['shift']());}catch(_0x2c8ef3){_0x23b146['push'](_0x23b146['shift']());}}}(a5_0x8a84,0x5e21d));function a5_0x8a84(){const _0x423d15=['6HhfFRN','Intercept','4903465vziyQl','InterceptTargetTmp','Singleton','2SfiyHk','push','toString','78734AiUBLT','ScopeEnum','3SwRCQD','IIntercept','__esModule','includes','INTERCEPT_KEY','getClassMetadata','saveClassMetadata','1410305VadKlv','match','3799704gbfder','3163266UDiccS','2418308FKmiou','Provide','../types/intercept','(((.+)+)+)+$','search','5482810AyLBzK'];a5_0x8a84=function(){return _0x423d15;};return a5_0x8a84();}const a5_0x777aa4=(function(){let _0x275502=!![];return function(_0x46ec58,_0xbe18bf){const _0x4af08d=_0x275502?function(){if(_0xbe18bf){const _0x32760e=_0xbe18bf['apply'](_0x46ec58,arguments);return _0xbe18bf=null,_0x32760e;}}:function(){};return _0x275502=![],_0x4af08d;};}()),a5_0x1fef7e=a5_0x777aa4(this,function(){const _0x3014a7=a5_0xd328;return a5_0x1fef7e[_0x3014a7(0xbd)]()[_0x3014a7(0xcf)]('(((.+)+)+)+$')[_0x3014a7(0xbd)]()['constructor'](a5_0x1fef7e)[_0x3014a7(0xcf)](_0x3014a7(0xce));});a5_0x1fef7e();'use strict';Object['defineProperty'](exports,a5_0x58d8da(0xc2),{'value':!![]}),exports[a5_0x58d8da(0xc1)]=exports[a5_0x58d8da(0xd2)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a5_0x58d8da(0xcd));function Intercept(_0x2ff474){return _0x2cae89=>{const _0x11fba9=a5_0xd328,_0x5bd823=(0x0,core_1[_0x11fba9(0xc5)])(intercept_1[_0x11fba9(0xc4)],intercept_1[_0x11fba9(0xb9)])||{};for(let _0x485fcb of Array['isArray'](_0x2ff474)?_0x2ff474:[_0x2ff474]){_0x485fcb=_0x485fcb['toUpperCase']();!(_0x5bd823===null||_0x5bd823===void 0x0?void 0x0:_0x5bd823[_0x485fcb])&&(_0x5bd823[_0x485fcb]=[]);if(_0x5bd823[_0x485fcb][_0x11fba9(0xc3)](_0x2cae89))continue;_0x5bd823[_0x485fcb][_0x11fba9(0xbc)](_0x2cae89);}(0x0,core_1[_0x11fba9(0xcc)])()(_0x2cae89),(0x0,core_1['Scope'])(core_1[_0x11fba9(0xbf)][_0x11fba9(0xba)])(_0x2cae89),(0x0,core_1[_0x11fba9(0xc6)])(intercept_1[_0x11fba9(0xc4)],_0x5bd823,intercept_1['InterceptTargetTmp']);};}exports[a5_0x58d8da(0xd2)]=Intercept;class IIntercept{async[a5_0x58d8da(0xc8)](_0x5812c4,_0xab73c4,_0x1471bf){return!![];}}function a5_0xd328(_0x4ae577,_0x22b995){const _0x146171=a5_0x8a84();return a5_0xd328=function(_0x1fef7e,_0x777aa4){_0x1fef7e=_0x1fef7e-0xb9;let _0x8a8471=_0x146171[_0x1fef7e];return _0x8a8471;},a5_0xd328(_0x4ae577,_0x22b995);}exports[a5_0x58d8da(0xc1)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x6cdd66=a6_0x5bf6;(function(_0x569d66,_0x200d85){var _0x34dfa3=a6_0x5bf6,_0x168969=_0x569d66();while(!![]){try{var _0x19821c=parseInt(_0x34dfa3(0x12c))/0x1+parseInt(_0x34dfa3(0x142))/0x2*(-parseInt(_0x34dfa3(0x12d))/0x3)+-parseInt(_0x34dfa3(0x139))/0x4+parseInt(_0x34dfa3(0x143))/0x5+-parseInt(_0x34dfa3(0x128))/0x6+parseInt(_0x34dfa3(0x12a))/0x7+-parseInt(_0x34dfa3(0x124))/0x8*(-parseInt(_0x34dfa3(0x126))/0x9);if(_0x19821c===_0x200d85)break;else _0x168969['push'](_0x168969['shift']());}catch(_0x545e3f){_0x168969['push'](_0x168969['shift']());}}}(a6_0x16c1,0xcf0de));var a6_0x5e4e38=(function(){var _0x56cc54=!![];return function(_0x9e9bc7,_0x27e0d7){var _0x42e9df=_0x56cc54?function(){var _0x41e005=a6_0x5bf6;if(_0x27e0d7){var _0x4cf7dd=_0x27e0d7[_0x41e005(0x130)](_0x9e9bc7,arguments);return _0x27e0d7=null,_0x4cf7dd;}}:function(){};return _0x56cc54=![],_0x42e9df;};}()),a6_0xdc7bcf=a6_0x5e4e38(this,function(){var _0x4243f7=a6_0x5bf6;return a6_0xdc7bcf[_0x4243f7(0x13e)]()[_0x4243f7(0x134)](_0x4243f7(0x144))[_0x4243f7(0x13e)]()[_0x4243f7(0x127)](a6_0xdc7bcf)[_0x4243f7(0x134)](_0x4243f7(0x144));});function a6_0x16c1(){var _0x1e2b17=['constructor','7881162qbVnrW','TIMEOUT','9775647ESQckr','length','992360JaPwMe','18945FzBVqC','decorate','signature验证失败','apply','metadata','登录超时,请重新登录','TIMEOUT_LOGINTIME','search','defineProperty','object','design:type','__decorate','4643048jXhuxn','请求头信息不完整','验证失败,请重新登录','请使用正确的设备','HEADERS_DEVICE','toString','function','__metadata','请求超时,请重试','216ZvOtkx','7482185zjvJhZ','(((.+)+)+)+$','HEADERS_CHECKCODE','HEADERS_LACK','ApiError','120vYbPrx','HEADERS_SIGNATURE','71451FTmKLG'];a6_0x16c1=function(){return _0x1e2b17;};return a6_0x16c1();}a6_0xdc7bcf();'use strict';var __decorate=this&&this[a6_0x6cdd66(0x138)]||function(_0xe8756d,_0x13646b,_0x56e7e0,_0x215bac){var _0x2d4145=a6_0x6cdd66,_0x618967=arguments[_0x2d4145(0x12b)],_0x4964cc=_0x618967<0x3?_0x13646b:_0x215bac===null?_0x215bac=Object['getOwnPropertyDescriptor'](_0x13646b,_0x56e7e0):_0x215bac,_0x459c24;if(typeof Reflect===_0x2d4145(0x136)&&typeof Reflect[_0x2d4145(0x12e)]==='function')_0x4964cc=Reflect[_0x2d4145(0x12e)](_0xe8756d,_0x13646b,_0x56e7e0,_0x215bac);else{for(var _0x11548f=_0xe8756d[_0x2d4145(0x12b)]-0x1;_0x11548f>=0x0;_0x11548f--)if(_0x459c24=_0xe8756d[_0x11548f])_0x4964cc=(_0x618967<0x3?_0x459c24(_0x4964cc):_0x618967>0x3?_0x459c24(_0x13646b,_0x56e7e0,_0x4964cc):_0x459c24(_0x13646b,_0x56e7e0))||_0x4964cc;}return _0x618967>0x3&&_0x4964cc&&Object[_0x2d4145(0x135)](_0x13646b,_0x56e7e0,_0x4964cc),_0x4964cc;},__metadata=this&&this[a6_0x6cdd66(0x140)]||function(_0x2511fb,_0x39c6a7){var _0x56a324=a6_0x6cdd66;if(typeof Reflect===_0x56a324(0x136)&&typeof Reflect[_0x56a324(0x131)]===_0x56a324(0x13f))return Reflect[_0x56a324(0x131)](_0x2511fb,_0x39c6a7);};function a6_0x5bf6(_0x3722c2,_0x5eb65f){var _0x14b407=a6_0x16c1();return a6_0x5bf6=function(_0xdc7bcf,_0x5e4e38){_0xdc7bcf=_0xdc7bcf-0x121;var _0x16c16a=_0x14b407[_0xdc7bcf];return _0x16c16a;},a6_0x5bf6(_0x3722c2,_0x5eb65f);}Object[a6_0x6cdd66(0x135)](exports,'__esModule',{'value':!![]}),exports[a6_0x6cdd66(0x123)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x6cdd66(0x123)]=ApiError,ApiError[a6_0x6cdd66(0x129)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a6_0x6cdd66(0x13d)]=0x18e73,ApiError[a6_0x6cdd66(0x125)]=0x18e74,ApiError[a6_0x6cdd66(0x121)]=0x18e75,ApiError[a6_0x6cdd66(0x133)]=0x18e76,__decorate([AnnErrorMsg(a6_0x6cdd66(0x141)),__metadata(a6_0x6cdd66(0x137),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x6cdd66(0x13a)),__metadata(a6_0x6cdd66(0x137),Object)],ApiError,a6_0x6cdd66(0x122),void 0x0),__decorate([AnnErrorMsg(a6_0x6cdd66(0x13c)),__metadata(a6_0x6cdd66(0x137),Object)],ApiError,a6_0x6cdd66(0x13d),void 0x0),__decorate([AnnErrorMsg(a6_0x6cdd66(0x12f)),__metadata(a6_0x6cdd66(0x137),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a6_0x6cdd66(0x13b)),__metadata('design:type',Object)],ApiError,a6_0x6cdd66(0x121),void 0x0),__decorate([AnnErrorMsg(a6_0x6cdd66(0x132)),__metadata('design:type',Object)],ApiError,a6_0x6cdd66(0x133),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0xb70ba5=a7_0x1b32;(function(_0x1a0b59,_0x25938c){const _0x5957f9=a7_0x1b32,_0x1b7712=_0x1a0b59();while(!![]){try{const _0x283597=-parseInt(_0x5957f9(0x1aa))/0x1*(parseInt(_0x5957f9(0x198))/0x2)+-parseInt(_0x5957f9(0x1ab))/0x3+parseInt(_0x5957f9(0x19d))/0x4*(-parseInt(_0x5957f9(0x19a))/0x5)+-parseInt(_0x5957f9(0x19b))/0x6*(parseInt(_0x5957f9(0x1a9))/0x7)+parseInt(_0x5957f9(0x1a8))/0x8+-parseInt(_0x5957f9(0x1a7))/0x9+parseInt(_0x5957f9(0x1a6))/0xa*(parseInt(_0x5957f9(0x19e))/0xb);if(_0x283597===_0x25938c)break;else _0x1b7712['push'](_0x1b7712['shift']());}catch(_0x5137d6){_0x1b7712['push'](_0x1b7712['shift']());}}}(a7_0x9858,0x8811e));function a7_0x1b32(_0x4ac629,_0x45faef){const _0x47e913=a7_0x9858();return a7_0x1b32=function(_0x4d3d6b,_0x166682){_0x4d3d6b=_0x4d3d6b-0x198;let _0x9858e4=_0x47e913[_0x4d3d6b];return _0x9858e4;},a7_0x1b32(_0x4ac629,_0x45faef);}const a7_0x166682=(function(){let _0x1d77e5=!![];return function(_0x55cac6,_0x2cd051){const _0x5a7ad8=_0x1d77e5?function(){if(_0x2cd051){const _0x543768=_0x2cd051['apply'](_0x55cac6,arguments);return _0x2cd051=null,_0x543768;}}:function(){};return _0x1d77e5=![],_0x5a7ad8;};}()),a7_0x4d3d6b=a7_0x166682(this,function(){const _0xaa053d=a7_0x1b32;return a7_0x4d3d6b['toString']()['search'](_0xaa053d(0x1ad))[_0xaa053d(0x1a0)]()[_0xaa053d(0x19c)](a7_0x4d3d6b)[_0xaa053d(0x1a4)](_0xaa053d(0x1ad));});a7_0x4d3d6b();'use strict';Object[a7_0xb70ba5(0x1a3)](exports,a7_0xb70ba5(0x199),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0xb70ba5(0x1a1)),action_1=require(a7_0xb70ba5(0x1a5));function getAppsConfig(_0x1acde0){const _0x18edfb=a7_0xb70ba5,_0x28aa02=(0x0,core_1[_0x18edfb(0x19f)])(action_1[_0x18edfb(0x1ae)],action_1[_0x18edfb(0x1a2)])||{};return _0x1acde0?lodash['get'](_0x28aa02,_0x1acde0):_0x28aa02;}exports[a7_0xb70ba5(0x1ac)]=getAppsConfig;function a7_0x9858(){const _0x8ad38c=['11rSpWOL','getClassMetadata','toString','@midwayjs/core','AppsConfigTmp','defineProperty','search','../types/action','24948230mXGqDX','6749073aCOIgq','6016728MUmVyo','490ykorKK','143184GEAVSu','2195970xmIOtz','getAppsConfig','(((.+)+)+)+$','APPSCONFIG_KEY','12zFChuL','__esModule','5BOdjUA','27240sGGrmi','constructor','123124IYYjRR'];a7_0x9858=function(){return _0x8ad38c;};return a7_0x9858();}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x26d479=a8_0x16d1;(function(_0x5a6332,_0x5eff32){const _0x4a7c75=a8_0x16d1,_0x5948e2=_0x5a6332();while(!![]){try{const _0x30532e=parseInt(_0x4a7c75(0x1e8))/0x1+parseInt(_0x4a7c75(0x1d2))/0x2+-parseInt(_0x4a7c75(0x1f0))/0x3+parseInt(_0x4a7c75(0x1ae))/0x4+parseInt(_0x4a7c75(0x1b5))/0x5+parseInt(_0x4a7c75(0x1ca))/0x6+-parseInt(_0x4a7c75(0x1ed))/0x7;if(_0x30532e===_0x5eff32)break;else _0x5948e2['push'](_0x5948e2['shift']());}catch(_0x4fb402){_0x5948e2['push'](_0x5948e2['shift']());}}}(a8_0x7890,0x48ea6));const a8_0x15a8aa=(function(){let _0x3a03cd=!![];return function(_0x474eff,_0x1c393b){const _0x2f3b4b=_0x3a03cd?function(){if(_0x1c393b){const _0x46495a=_0x1c393b['apply'](_0x474eff,arguments);return _0x1c393b=null,_0x46495a;}}:function(){};return _0x3a03cd=![],_0x2f3b4b;};}()),a8_0x272ddd=a8_0x15a8aa(this,function(){const _0x559424=a8_0x16d1;return a8_0x272ddd[_0x559424(0x199)]()['search'](_0x559424(0x1a9))['toString']()[_0x559424(0x1be)](a8_0x272ddd)['search'](_0x559424(0x1a9));});a8_0x272ddd();'use strict';Object[a8_0x26d479(0x1c4)](exports,a8_0x26d479(0x1cd),{'value':!![]}),exports[a8_0x26d479(0x1c6)]=void 0x0;function a8_0x16d1(_0xb77211,_0x3d9fd3){const _0x388104=a8_0x7890();return a8_0x16d1=function(_0x272ddd,_0x15a8aa){_0x272ddd=_0x272ddd-0x196;let _0x7890f=_0x388104[_0x272ddd];return _0x7890f;},a8_0x16d1(_0xb77211,_0x3d9fd3);}const lodash_1=require(a8_0x26d479(0x1b1)),validator_1=require(a8_0x26d479(0x1a4)),core_1=require(a8_0x26d479(0x197)),core_2=require(a8_0x26d479(0x197)),core_3=require(a8_0x26d479(0x197)),action_1=require(a8_0x26d479(0x1e4));function getRoutes(_0x40934b={'prefix':'/','module':![]}){const _0x2e7ef3=a8_0x26d479;var _0x1fd872,_0x19f34c;const _0x9e56eb=(0x0,core_3['listModule'])(action_1[_0x2e7ef3(0x1ac)]),_0xb71e5={},_0x575fe0=Array[_0x2e7ef3(0x1ee)](_0x40934b[_0x2e7ef3(0x1e1)]||[])?_0x40934b[_0x2e7ef3(0x1e1)]||[]:[_0x40934b['filter']];_0x3e2bff:for(const _0x32b085 of _0x9e56eb){let _0xa59d94=(0x0,core_3[_0x2e7ef3(0x1c8)])(action_1['ACTION_KEY'],_0x32b085),_0x1ae0cf=(0x0,core_3[_0x2e7ef3(0x1c8)])(action_1[_0x2e7ef3(0x1de)],_0x32b085);if(_0xa59d94&&_0x1ae0cf){let _0x43a219=_0xa59d94['prefix'],_0xd3988d={};if(_0x40934b[_0x2e7ef3(0x1d7)]&&(0x0,lodash_1['get'])(_0xa59d94,_0x2e7ef3(0x1d7),![])!=_0x40934b[_0x2e7ef3(0x1d7)])continue _0x3e2bff;else{if(_0x40934b['module']===![]&&!!(0x0,lodash_1['get'])(_0xa59d94,_0x2e7ef3(0x1d7),null))continue _0x3e2bff;}if(_0x40934b[_0x2e7ef3(0x19a)]&&!_0x43a219[_0x2e7ef3(0x1d1)](_0x40934b['prefix']))continue _0x3e2bff;_0x43a219!=='/'?(_0xd3988d[_0x2e7ef3(0x1bd)]=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1e9)][_0x2e7ef3(0x1b6)])||(/^\//['test'](_0x43a219)?_0x43a219[_0x2e7ef3(0x1e6)]('/')[0x1]:_0x43a219),_0xd3988d['description']=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1e9)][_0x2e7ef3(0x1e2)])||_0xd3988d[_0x2e7ef3(0x1bd)],_0xd3988d['routes']=[]):(_0xd3988d[_0x2e7ef3(0x1bd)]=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1e9)][_0x2e7ef3(0x1b6)])||'default',_0xd3988d[_0x2e7ef3(0x1e2)]=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94['routerOptions']['description'])||'',_0xd3988d[_0x2e7ef3(0x1a6)]=[]);_0x40934b[_0x2e7ef3(0x1b3)]&&(_0xd3988d['filepath']=_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1b3)]);(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1c5)])&&(_0xd3988d['prefix']=_0xa59d94[_0x2e7ef3(0x1c5)]);(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1d7)])&&(_0xd3988d[_0x2e7ef3(0x1d7)]=_0xa59d94[_0x2e7ef3(0x1d7)]);let _0x474ed8=(0x0,core_3['getClassMetadata'])(core_2['INJECT_CUSTOM_PARAM'],_0x32b085)||{};if(typeof _0x1ae0cf[Symbol[_0x2e7ef3(0x1d3)]]===_0x2e7ef3(0x1dd))for(let _0x8f7ee3 of _0x1ae0cf){if((_0x40934b===null||_0x40934b===void 0x0?void 0x0:_0x40934b[_0x2e7ef3(0x1b0)])&&!(_0x8f7ee3===null||_0x8f7ee3===void 0x0?void 0x0:_0x8f7ee3[_0x2e7ef3(0x1b0)]))continue;let _0x504ad9={};_0x504ad9[_0x2e7ef3(0x1a5)]=_0x8f7ee3[_0x2e7ef3(0x1c7)],_0x504ad9[_0x2e7ef3(0x19e)]=(_0x43a219+_0x8f7ee3[_0x2e7ef3(0x1bc)])['replace'](/\/{2,}/g,'/'),_0x504ad9['summary']=(_0x8f7ee3===null||_0x8f7ee3===void 0x0?void 0x0:_0x8f7ee3['routerName'])||_0xd3988d['summary']||_0x2e7ef3(0x1ba),_0x504ad9[_0x2e7ef3(0x1e2)]=(_0x8f7ee3===null||_0x8f7ee3===void 0x0?void 0x0:_0x8f7ee3['description'])||'',_0x504ad9[_0x2e7ef3(0x1dc)]=[];_0x504ad9[_0x2e7ef3(0x19e)][_0x2e7ef3(0x1f2)]('/')&&(_0x504ad9[_0x2e7ef3(0x19e)]=_0x504ad9['route'][_0x2e7ef3(0x1a0)](0x0,_0x504ad9[_0x2e7ef3(0x19e)][_0x2e7ef3(0x1ec)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x504ad9[_0x2e7ef3(0x19e)],_0x2e7ef3(0x1e7))&&!(0x0,lodash_1[_0x2e7ef3(0x1d1)])(_0x504ad9[_0x2e7ef3(0x19e)],'/static/apitest')&&_0x575fe0[_0x2e7ef3(0x1a8)](_0x504ad9[_0x2e7ef3(0x19e)])===-0x1){if(!(_0x40934b===null||_0x40934b===void 0x0?void 0x0:_0x40934b[_0x2e7ef3(0x1d6)])){let _0x25a253=(0x0,core_3[_0x2e7ef3(0x1c2)])(new _0x32b085(),_0x8f7ee3[_0x2e7ef3(0x1a5)]);for(const _0x16a760 in _0x25a253){let _0x7a368d=(_0x1fd872=_0x474ed8[_0x8f7ee3[_0x2e7ef3(0x1a5)]])===null||_0x1fd872===void 0x0?void 0x0:_0x1fd872[_0x2e7ef3(0x1e0)](_0x3b1cd0=>_0x3b1cd0['parameterIndex']==_0x16a760&&_0x3b1cd0[_0x2e7ef3(0x1d8)]===core_2[_0x2e7ef3(0x19f)]&&(_0x3b1cd0===null||_0x3b1cd0===void 0x0?void 0x0:_0x3b1cd0[_0x2e7ef3(0x19c)]));if(_0x7a368d===null||_0x7a368d===void 0x0?void 0x0:_0x7a368d[_0x2e7ef3(0x19c)]){let _0x2515b6=convertTypeToString(_0x7a368d[_0x2e7ef3(0x19c)]['type']||0x0);if([_0x2e7ef3(0x1c0),_0x2e7ef3(0x1ce)][_0x2e7ef3(0x1a8)](_0x2515b6)!=-0x1&&_0x7a368d['metadata']['propertyData'][_0x2e7ef3(0x1a8)](':')==-0x1&&!_0x504ad9[_0x2e7ef3(0x1dc)]['find'](_0x12b68a=>_0x12b68a['key']==_0x7a368d['metadata'][_0x2e7ef3(0x1cb)]))_0x504ad9[_0x2e7ef3(0x1dc)][_0x2e7ef3(0x1c1)]({'key':_0x7a368d[_0x2e7ef3(0x19c)]['propertyData'],'title':_0x7a368d[_0x2e7ef3(0x19c)][_0x2e7ef3(0x1cb)],'type':convertSchemaType(_0x25a253[_0x7a368d[_0x2e7ef3(0x1cc)]]['name']),'required':![],'default':'','desc':''});else{if(_0x2515b6==_0x2e7ef3(0x1d5)){let _0x124f10=((_0x19f34c=_0x7a368d===null||_0x7a368d===void 0x0?void 0x0:_0x7a368d[_0x2e7ef3(0x19c)])===null||_0x19f34c===void 0x0?void 0x0:_0x19f34c[_0x2e7ef3(0x1cb)])||'file';_0x124f10[_0x2e7ef3(0x1a8)](':')==-0x1&&!_0x504ad9['request'][_0x2e7ef3(0x1e0)](_0x21eed7=>_0x21eed7[_0x2e7ef3(0x1d8)]==_0x124f10&&_0x21eed7['type']==_0x2e7ef3(0x1d5))&&_0x504ad9[_0x2e7ef3(0x1dc)][_0x2e7ef3(0x1c1)]({'key':_0x124f10,'title':'文件上传-'+_0x124f10,'type':_0x2e7ef3(0x1d5),'required':!![],'default':'','desc':''});}}}else{const _0x4fef56=(0x0,core_3[_0x2e7ef3(0x19b)])(validator_1[_0x2e7ef3(0x1bf)],_0x25a253[_0x16a760]);_0x4fef56&&_0x504ad9[_0x2e7ef3(0x1dc)]['push'](...getJoiRequest(_0x4fef56));}}}_0xd3988d[_0x2e7ef3(0x1a6)]['push'](_0x504ad9);}}if(_0xd3988d['routes'][_0x2e7ef3(0x1ec)]>0x0){let _0x3569dc=_0xb71e5[_0x43a219];_0x3569dc?(_0x3569dc['summary']!=_0xd3988d[_0x2e7ef3(0x1bd)]&&(_0x3569dc['summary']=_0x3569dc[_0x2e7ef3(0x1bd)]+','+_0xd3988d[_0x2e7ef3(0x1bd)]),_0x3569dc[_0x2e7ef3(0x1e2)]!=_0xd3988d['description']&&(_0x3569dc[_0x2e7ef3(0x1e2)]=_0x3569dc[_0x2e7ef3(0x1e2)]+','+_0xd3988d[_0x2e7ef3(0x1e2)]),_0x3569dc['routes']=_0x3569dc[_0x2e7ef3(0x1a6)]['concat'](_0xd3988d[_0x2e7ef3(0x1a6)]),_0xb71e5[_0x43a219]=_0x3569dc):_0xb71e5[_0x43a219]=_0xd3988d;}}}return _0xb71e5;}exports['getRoutes']=getRoutes;function a8_0x7890(){const _0x575e28=['7307090EHjzBF','isArray','flags.default','172629eCoBYJ','args','endsWith','RouteParamTypes','items','@midwayjs/core','keys','toString','prefix','getClassExtendedMetadata','metadata','rules','route','WEB_ROUTER_PARAM_KEY','substring','Boolean','flags.presence','type','@anncic-api/validator','method','routes','number','indexOf','(((.+)+)+)+$','limit','QUERY','ACTION_KEY','object','1489836AepkmA','get','intercept','lodash','name','filepath','只允许:[','75000CEjErn','tagName','string','join','flags.description','default','Object','path','summary','constructor','RULES_KEY','query','push','getMethodParamTypes','min','defineProperty','pprefix','getRoutes','requestMethod','getClassMetadata','BODY','2100438xgesyg','propertyData','parameterIndex','__esModule','body','FIELDS','FILESTREAM','startsWith','1091130aFEkNt','iterator','boolean','file','noreq','module','key','describe','required','array','request','function','ACTION_ROUTE_KEY','allow','find','filter','description','FILESSTREAM','../types/action','header','split','static/apitest','116978GJncSU','routerOptions','PARAM','max','length'];a8_0x7890=function(){return _0x575e28;};return a8_0x7890();}function getJoiRequest(_0x38fcb5){const _0x1b3e73=a8_0x26d479,_0x16f621=[];for(let _0x5e248a in _0x38fcb5){const _0x2114cc={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5a6574=typeof _0x38fcb5[_0x5e248a][_0x1b3e73(0x1d9)]==_0x1b3e73(0x1dd)?_0x38fcb5[_0x5e248a][_0x1b3e73(0x1d9)]():_0x38fcb5[_0x5e248a];_0x2114cc[_0x1b3e73(0x1d8)]=_0x5e248a,_0x2114cc[_0x1b3e73(0x1a3)]=_0x5a6574[_0x1b3e73(0x1a3)],_0x2114cc['title']=(0x0,lodash_1[_0x1b3e73(0x1af)])(_0x5a6574,'flags.label',_0x5e248a),_0x2114cc['default']=(0x0,lodash_1[_0x1b3e73(0x1af)])(_0x5a6574,_0x1b3e73(0x1ef),''),_0x2114cc[_0x1b3e73(0x1da)]=(0x0,lodash_1[_0x1b3e73(0x1af)])(_0x5a6574,_0x1b3e73(0x1a2),'')==_0x1b3e73(0x1da),_0x2114cc[_0x1b3e73(0x1e2)]=(0x0,lodash_1['get'])(_0x5a6574,_0x1b3e73(0x1b9),'');if(_0x5a6574[_0x1b3e73(0x1a3)]=='object')_0x2114cc['children']=getJoiRequest(_0x5a6574[_0x1b3e73(0x198)]);else{if(_0x5a6574[_0x1b3e73(0x1a3)]==_0x1b3e73(0x1db)&&_0x5a6574[_0x1b3e73(0x196)]&&Array[_0x1b3e73(0x1ee)](_0x5a6574['items'])&&_0x5a6574['items'][0x0]){}}_0x5a6574['allow']&&Array[_0x1b3e73(0x1ee)](_0x5a6574['allow'])&&_0x5a6574[_0x1b3e73(0x1df)][_0x1b3e73(0x1ec)]>0x0&&(_0x2114cc[_0x1b3e73(0x1e2)]=_0x1b3e73(0x1b4)+_0x5a6574[_0x1b3e73(0x1df)][_0x1b3e73(0x1b8)](',')+'];'+_0x2114cc[_0x1b3e73(0x1e2)]);if(_0x2114cc[_0x1b3e73(0x1d8)]&&_0x2114cc[_0x1b3e73(0x1a3)]){const _0x1f0fa6={};for(const _0x2bfbe4 of _0x5a6574['rules']||[]){if(_0x2bfbe4['name']===_0x1b3e73(0x1c3)&&_0x2bfbe4['args'])_0x1f0fa6[_0x1b3e73(0x1c3)]=_0x2bfbe4['args'][_0x1b3e73(0x1aa)];else _0x2bfbe4[_0x1b3e73(0x1b2)]===_0x1b3e73(0x1eb)&&(_0x1f0fa6[_0x1b3e73(0x1eb)]=_0x2bfbe4[_0x1b3e73(0x1f1)]['limit']);}_0x2114cc[_0x1b3e73(0x19d)]=_0x1f0fa6;}_0x2114cc[_0x1b3e73(0x1d8)]&&_0x2114cc['title']&&_0x16f621[_0x1b3e73(0x1c1)](_0x2114cc);}return _0x16f621;}function convertSchemaType(_0x28c1fa){const _0x2d2980=a8_0x26d479;switch(_0x28c1fa){case _0x2d2980(0x1bb):return _0x2d2980(0x1ad);case _0x2d2980(0x1a1):return _0x2d2980(0x1d4);case'Number':return _0x2d2980(0x1a7);case'String':return _0x2d2980(0x1b7);case'File':return _0x2d2980(0x1d5);default:return _0x2d2980(0x1b7);}}function convertTypeToString(_0x42f103){const _0x5aaa8b=a8_0x26d479;switch(_0x42f103){case core_1[_0x5aaa8b(0x1f3)]['HEADERS']:return'header';case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1ab)]:return _0x5aaa8b(0x1c0);case core_1['RouteParamTypes'][_0x5aaa8b(0x1ea)]:return _0x5aaa8b(0x1bc);case core_1['RouteParamTypes'][_0x5aaa8b(0x1c9)]:return _0x5aaa8b(0x1ce);case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1cf)]:case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1e3)]:case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1d0)]:return _0x5aaa8b(0x1d5);default:return _0x5aaa8b(0x1e5);}}
|
|
1
|
+
const a8_0x292f6f=a8_0x5307;(function(_0x25c5e1,_0x3492b6){const _0x282526=a8_0x5307,_0x1bd81d=_0x25c5e1();while(!![]){try{const _0x635db7=parseInt(_0x282526(0x136))/0x1+-parseInt(_0x282526(0x132))/0x2*(-parseInt(_0x282526(0x138))/0x3)+-parseInt(_0x282526(0x16b))/0x4*(parseInt(_0x282526(0x173))/0x5)+-parseInt(_0x282526(0x154))/0x6+-parseInt(_0x282526(0x16f))/0x7+parseInt(_0x282526(0x186))/0x8+parseInt(_0x282526(0x14e))/0x9*(parseInt(_0x282526(0x134))/0xa);if(_0x635db7===_0x3492b6)break;else _0x1bd81d['push'](_0x1bd81d['shift']());}catch(_0x4c34de){_0x1bd81d['push'](_0x1bd81d['shift']());}}}(a8_0x57bb,0xc0566));const a8_0x3d0348=(function(){let _0x619fd0=!![];return function(_0x270ae,_0x169ac5){const _0x3269d6=_0x619fd0?function(){const _0x1a872d=a8_0x5307;if(_0x169ac5){const _0x459a59=_0x169ac5[_0x1a872d(0x14d)](_0x270ae,arguments);return _0x169ac5=null,_0x459a59;}}:function(){};return _0x619fd0=![],_0x3269d6;};}()),a8_0x14544e=a8_0x3d0348(this,function(){const _0x1ef116=a8_0x5307;return a8_0x14544e[_0x1ef116(0x151)]()[_0x1ef116(0x13b)](_0x1ef116(0x180))[_0x1ef116(0x151)]()[_0x1ef116(0x167)](a8_0x14544e)['search']('(((.+)+)+)+$');});a8_0x14544e();'use strict';Object['defineProperty'](exports,a8_0x292f6f(0x18d),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x57bb(){const _0x15316e=['flags.default','allow','flags.label','type','query','test','method','lodash','key','ACTION_KEY','apply','8541KEuuLA','Object','concat','toString','function','Boolean','1472112VUFhlJ','FILESTREAM','INJECT_CUSTOM_PARAM','文件上传-','routerOptions','module','args','children','default','request','max','route','file','routerName','getClassExtendedMetadata','min','routes','join','summary','constructor','object','split','description','32LJjKPn','parameterIndex','limit','@anncic-api/validator','6476421RnWsvu','FILESSTREAM','number','pprefix','515605eNQmml','get','PARAM','name','getRoutes','Number','listModule','propertyData','required','flags.presence','WEB_ROUTER_PARAM_KEY','length','getClassMetadata','(((.+)+)+)+$','push','describe','../types/action','items','array','6936568ebrWDo','/static/apitest','title','startsWith','RouteParamTypes','只允许:[','filepath','__esModule','prefix','File','HEADERS','metadata','indexOf','string','4014wiMzSu','flags.description','12770UkEADF','endsWith','573938iiZCDO','isArray','195rVIUBX','rules','body','search','replace','String','requestMethod','tagName','filter','intercept','@midwayjs/core'];a8_0x57bb=function(){return _0x15316e;};return a8_0x57bb();}const lodash_1=require(a8_0x292f6f(0x14a)),validator_1=require(a8_0x292f6f(0x16e)),core_1=require(a8_0x292f6f(0x142)),core_2=require(a8_0x292f6f(0x142)),core_3=require('@midwayjs/core'),action_1=require(a8_0x292f6f(0x183));function a8_0x5307(_0x1dabab,_0xf63a8){const _0x5c1975=a8_0x57bb();return a8_0x5307=function(_0x14544e,_0x3d0348){_0x14544e=_0x14544e-0x12f;let _0x57bbd7=_0x5c1975[_0x14544e];return _0x57bbd7;},a8_0x5307(_0x1dabab,_0xf63a8);}function getRoutes(_0xfe121b={'prefix':'/','module':![]}){const _0x4018f3=a8_0x292f6f;var _0xb5df17,_0xc4026f;const _0x44514d=(0x0,core_3[_0x4018f3(0x179)])(action_1[_0x4018f3(0x14c)]),_0x23b66d={},_0x2d78ff=Array[_0x4018f3(0x137)](_0xfe121b[_0x4018f3(0x140)]||[])?_0xfe121b[_0x4018f3(0x140)]||[]:[_0xfe121b['filter']];_0x4d6107:for(const _0x1244b4 of _0x44514d){let _0x32995d=(0x0,core_3[_0x4018f3(0x17f)])(action_1['ACTION_KEY'],_0x1244b4),_0x3dd74d=(0x0,core_3[_0x4018f3(0x17f)])(action_1['ACTION_ROUTE_KEY'],_0x1244b4);if(_0x32995d&&_0x3dd74d){let _0x576bc2=_0x32995d[_0x4018f3(0x18e)],_0x101dc3={};if(_0xfe121b[_0x4018f3(0x159)]&&(0x0,lodash_1[_0x4018f3(0x174)])(_0x32995d,_0x4018f3(0x159),![])!=_0xfe121b[_0x4018f3(0x159)])continue _0x4d6107;else{if(_0xfe121b[_0x4018f3(0x159)]===![]&&!!(0x0,lodash_1['get'])(_0x32995d,'module',null))continue _0x4d6107;}if(_0xfe121b['prefix']&&!_0x576bc2['startsWith'](_0xfe121b['prefix']))continue _0x4d6107;_0x576bc2!=='/'?(_0x101dc3[_0x4018f3(0x166)]=(_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d[_0x4018f3(0x158)][_0x4018f3(0x13f)])||(/^\//[_0x4018f3(0x148)](_0x576bc2)?_0x576bc2[_0x4018f3(0x169)]('/')[0x1]:_0x576bc2),_0x101dc3['description']=(_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d['routerOptions'][_0x4018f3(0x16a)])||_0x101dc3[_0x4018f3(0x166)],_0x101dc3[_0x4018f3(0x164)]=[]):(_0x101dc3[_0x4018f3(0x166)]=(_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d[_0x4018f3(0x158)][_0x4018f3(0x13f)])||'default',_0x101dc3['description']=(_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d[_0x4018f3(0x158)][_0x4018f3(0x16a)])||'',_0x101dc3['routes']=[]);_0xfe121b[_0x4018f3(0x18c)]&&(_0x101dc3[_0x4018f3(0x18c)]=_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d[_0x4018f3(0x18c)]);(_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d['pprefix'])&&(_0x101dc3[_0x4018f3(0x18e)]=_0x32995d[_0x4018f3(0x172)]);(_0x32995d===null||_0x32995d===void 0x0?void 0x0:_0x32995d[_0x4018f3(0x159)])&&(_0x101dc3[_0x4018f3(0x159)]=_0x32995d[_0x4018f3(0x159)]);let _0x1cce97=(0x0,core_3['getClassMetadata'])(core_2[_0x4018f3(0x156)],_0x1244b4)||{};if(typeof _0x3dd74d[Symbol['iterator']]===_0x4018f3(0x152))for(let _0x590e95 of _0x3dd74d){if((_0xfe121b===null||_0xfe121b===void 0x0?void 0x0:_0xfe121b['intercept'])&&!(_0x590e95===null||_0x590e95===void 0x0?void 0x0:_0x590e95[_0x4018f3(0x141)]))continue;let _0x65b64e={};_0x65b64e[_0x4018f3(0x149)]=_0x590e95[_0x4018f3(0x13e)],_0x65b64e[_0x4018f3(0x15f)]=(_0x576bc2+_0x590e95['path'])[_0x4018f3(0x13c)](/\/{2,}/g,'/'),_0x65b64e[_0x4018f3(0x166)]=(_0x590e95===null||_0x590e95===void 0x0?void 0x0:_0x590e95[_0x4018f3(0x161)])||_0x101dc3[_0x4018f3(0x166)]||_0x4018f3(0x15c),_0x65b64e[_0x4018f3(0x16a)]=(_0x590e95===null||_0x590e95===void 0x0?void 0x0:_0x590e95['description'])||'',_0x65b64e[_0x4018f3(0x15d)]=[];_0x65b64e[_0x4018f3(0x15f)][_0x4018f3(0x135)]('/')&&(_0x65b64e[_0x4018f3(0x15f)]=_0x65b64e['route']['substring'](0x0,_0x65b64e[_0x4018f3(0x15f)][_0x4018f3(0x17e)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x65b64e[_0x4018f3(0x15f)],'static/apitest')&&!(0x0,lodash_1[_0x4018f3(0x189)])(_0x65b64e[_0x4018f3(0x15f)],_0x4018f3(0x187))&&_0x2d78ff[_0x4018f3(0x130)](_0x65b64e['route'])===-0x1){if(!(_0xfe121b===null||_0xfe121b===void 0x0?void 0x0:_0xfe121b['noreq'])){let _0x3da03d=(0x0,core_3['getMethodParamTypes'])(new _0x1244b4(),_0x590e95[_0x4018f3(0x149)]);for(const _0x1af745 in _0x3da03d){let _0x2db2d4=(_0xb5df17=_0x1cce97[_0x590e95[_0x4018f3(0x149)]])===null||_0xb5df17===void 0x0?void 0x0:_0xb5df17['find'](_0x921a79=>_0x921a79[_0x4018f3(0x16c)]==_0x1af745&&_0x921a79['key']===core_2[_0x4018f3(0x17d)]&&(_0x921a79===null||_0x921a79===void 0x0?void 0x0:_0x921a79[_0x4018f3(0x12f)]));if(_0x2db2d4===null||_0x2db2d4===void 0x0?void 0x0:_0x2db2d4[_0x4018f3(0x12f)]){let _0x379043=convertTypeToString(_0x2db2d4[_0x4018f3(0x12f)][_0x4018f3(0x146)]||0x0);if([_0x4018f3(0x147),_0x4018f3(0x13a)][_0x4018f3(0x130)](_0x379043)!=-0x1&&_0x2db2d4[_0x4018f3(0x12f)][_0x4018f3(0x17a)][_0x4018f3(0x130)](':')==-0x1&&!_0x65b64e['request']['find'](_0x5a4d93=>_0x5a4d93[_0x4018f3(0x14b)]==_0x2db2d4[_0x4018f3(0x12f)][_0x4018f3(0x17a)]))_0x65b64e[_0x4018f3(0x15d)][_0x4018f3(0x181)]({'key':_0x2db2d4[_0x4018f3(0x12f)][_0x4018f3(0x17a)],'title':_0x2db2d4[_0x4018f3(0x12f)][_0x4018f3(0x17a)],'type':convertSchemaType(_0x3da03d[_0x2db2d4[_0x4018f3(0x16c)]]['name']),'required':![],'default':'','desc':''});else{if(_0x379043==_0x4018f3(0x160)){let _0x1bd23b=((_0xc4026f=_0x2db2d4===null||_0x2db2d4===void 0x0?void 0x0:_0x2db2d4['metadata'])===null||_0xc4026f===void 0x0?void 0x0:_0xc4026f[_0x4018f3(0x17a)])||_0x4018f3(0x160);_0x1bd23b[_0x4018f3(0x130)](':')==-0x1&&!_0x65b64e[_0x4018f3(0x15d)]['find'](_0x87ee47=>_0x87ee47[_0x4018f3(0x14b)]==_0x1bd23b&&_0x87ee47[_0x4018f3(0x146)]==_0x4018f3(0x160))&&_0x65b64e['request']['push']({'key':_0x1bd23b,'title':_0x4018f3(0x157)+_0x1bd23b,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0xf2bb05=(0x0,core_3[_0x4018f3(0x162)])(validator_1['RULES_KEY'],_0x3da03d[_0x1af745]);_0xf2bb05&&_0x65b64e['request']['push'](...getJoiRequest(_0xf2bb05));}}}_0x101dc3[_0x4018f3(0x164)][_0x4018f3(0x181)](_0x65b64e);}}if(_0x101dc3[_0x4018f3(0x164)][_0x4018f3(0x17e)]>0x0){let _0x1a7898=_0x23b66d[_0x576bc2];_0x1a7898?(_0x1a7898[_0x4018f3(0x166)]!=_0x101dc3[_0x4018f3(0x166)]&&(_0x1a7898[_0x4018f3(0x166)]=_0x1a7898[_0x4018f3(0x166)]+','+_0x101dc3[_0x4018f3(0x166)]),_0x1a7898[_0x4018f3(0x16a)]!=_0x101dc3[_0x4018f3(0x16a)]&&(_0x1a7898[_0x4018f3(0x16a)]=_0x1a7898['description']+','+_0x101dc3['description']),_0x1a7898['routes']=_0x1a7898[_0x4018f3(0x164)][_0x4018f3(0x150)](_0x101dc3[_0x4018f3(0x164)]),_0x23b66d[_0x576bc2]=_0x1a7898):_0x23b66d[_0x576bc2]=_0x101dc3;}}}return _0x23b66d;}exports[a8_0x292f6f(0x177)]=getRoutes;function getJoiRequest(_0x43abc4){const _0xac2d44=a8_0x292f6f,_0x31679f=[];for(let _0x572fa5 in _0x43abc4){const _0x5087da={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x29638a=typeof _0x43abc4[_0x572fa5][_0xac2d44(0x182)]==_0xac2d44(0x152)?_0x43abc4[_0x572fa5]['describe']():_0x43abc4[_0x572fa5];_0x5087da[_0xac2d44(0x14b)]=_0x572fa5,_0x5087da[_0xac2d44(0x146)]=_0x29638a[_0xac2d44(0x146)],_0x5087da[_0xac2d44(0x188)]=(0x0,lodash_1[_0xac2d44(0x174)])(_0x29638a,_0xac2d44(0x145),_0x572fa5),_0x5087da['default']=(0x0,lodash_1[_0xac2d44(0x174)])(_0x29638a,_0xac2d44(0x143),''),_0x5087da[_0xac2d44(0x17b)]=(0x0,lodash_1[_0xac2d44(0x174)])(_0x29638a,_0xac2d44(0x17c),'')==_0xac2d44(0x17b),_0x5087da[_0xac2d44(0x16a)]=(0x0,lodash_1[_0xac2d44(0x174)])(_0x29638a,_0xac2d44(0x133),'');if(_0x29638a[_0xac2d44(0x146)]==_0xac2d44(0x168))_0x5087da[_0xac2d44(0x15b)]=getJoiRequest(_0x29638a['keys']);else{if(_0x29638a[_0xac2d44(0x146)]==_0xac2d44(0x185)&&_0x29638a[_0xac2d44(0x184)]&&Array[_0xac2d44(0x137)](_0x29638a[_0xac2d44(0x184)])&&_0x29638a[_0xac2d44(0x184)][0x0]){}}_0x29638a[_0xac2d44(0x144)]&&Array[_0xac2d44(0x137)](_0x29638a[_0xac2d44(0x144)])&&_0x29638a['allow'][_0xac2d44(0x17e)]>0x0&&(_0x5087da[_0xac2d44(0x16a)]=_0xac2d44(0x18b)+_0x29638a[_0xac2d44(0x144)][_0xac2d44(0x165)](',')+'];'+_0x5087da[_0xac2d44(0x16a)]);if(_0x5087da['key']&&_0x5087da[_0xac2d44(0x146)]){const _0x2f2cb6={};for(const _0x53f2ef of _0x29638a[_0xac2d44(0x139)]||[]){if(_0x53f2ef[_0xac2d44(0x176)]===_0xac2d44(0x163)&&_0x53f2ef[_0xac2d44(0x15a)])_0x2f2cb6[_0xac2d44(0x163)]=_0x53f2ef['args'][_0xac2d44(0x16d)];else _0x53f2ef[_0xac2d44(0x176)]===_0xac2d44(0x15e)&&(_0x2f2cb6[_0xac2d44(0x15e)]=_0x53f2ef[_0xac2d44(0x15a)][_0xac2d44(0x16d)]);}_0x5087da[_0xac2d44(0x139)]=_0x2f2cb6;}_0x5087da['key']&&_0x5087da[_0xac2d44(0x188)]&&_0x31679f[_0xac2d44(0x181)](_0x5087da);}return _0x31679f;}function convertSchemaType(_0x2c9a55){const _0x10e9f8=a8_0x292f6f;switch(_0x2c9a55){case _0x10e9f8(0x14f):return _0x10e9f8(0x168);case _0x10e9f8(0x153):return'boolean';case _0x10e9f8(0x178):return _0x10e9f8(0x171);case _0x10e9f8(0x13d):return _0x10e9f8(0x131);case _0x10e9f8(0x18f):return _0x10e9f8(0x160);default:return _0x10e9f8(0x131);}}function convertTypeToString(_0x54c3a5){const _0x35931a=a8_0x292f6f;switch(_0x54c3a5){case core_1['RouteParamTypes'][_0x35931a(0x190)]:return'header';case core_1[_0x35931a(0x18a)]['QUERY']:return _0x35931a(0x147);case core_1['RouteParamTypes'][_0x35931a(0x175)]:return'path';case core_1['RouteParamTypes']['BODY']:return'body';case core_1[_0x35931a(0x18a)]['FIELDS']:case core_1[_0x35931a(0x18a)][_0x35931a(0x170)]:case core_1['RouteParamTypes'][_0x35931a(0x155)]:return _0x35931a(0x160);default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x31e843=a9_0x126d;(function(_0x8af654,_0x17fe18){var _0x2fd2ea=a9_0x126d,_0x18d5e7=_0x8af654();while(!![]){try{var _0x11392d=-parseInt(_0x2fd2ea(0xde))/0x1+-parseInt(_0x2fd2ea(0xda))/0x2+parseInt(_0x2fd2ea(0xf0))/0x3*(-parseInt(_0x2fd2ea(0x106))/0x4)+-parseInt(_0x2fd2ea(0xe6))/0x5+-parseInt(_0x2fd2ea(0xd8))/0x6*(parseInt(_0x2fd2ea(0xdd))/0x7)+parseInt(_0x2fd2ea(0xe5))/0x8*(-parseInt(_0x2fd2ea(0x102))/0x9)+parseInt(_0x2fd2ea(0x104))/0xa;if(_0x11392d===_0x17fe18)break;else _0x18d5e7['push'](_0x18d5e7['shift']());}catch(_0x392da5){_0x18d5e7['push'](_0x18d5e7['shift']());}}}(a9_0x4009,0x4758d));var a9_0x5b0a76=(function(){var _0xab0eea=!![];return function(_0x1742eb,_0x4640a4){var _0x3acaa8=_0xab0eea?function(){if(_0x4640a4){var _0x3ae488=_0x4640a4['apply'](_0x1742eb,arguments);return _0x4640a4=null,_0x3ae488;}}:function(){};return _0xab0eea=![],_0x3acaa8;};}()),a9_0x52d293=a9_0x5b0a76(this,function(){var _0x16c8e8=a9_0x126d;return a9_0x52d293[_0x16c8e8(0x103)]()['search'](_0x16c8e8(0xf7))[_0x16c8e8(0x103)]()[_0x16c8e8(0xd2)](a9_0x52d293)[_0x16c8e8(0xea)]('(((.+)+)+)+$');});a9_0x52d293();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a9_0x31e843(0xd4)]?function(_0x4cd3ae,_0x2b2fc0,_0x5dc474,_0x2efed0){var _0x36c1b2=a9_0x31e843;if(_0x2efed0===undefined)_0x2efed0=_0x5dc474;var _0x197e2c=Object['getOwnPropertyDescriptor'](_0x2b2fc0,_0x5dc474);(!_0x197e2c||(_0x36c1b2(0xed)in _0x197e2c?!_0x2b2fc0[_0x36c1b2(0xeb)]:_0x197e2c[_0x36c1b2(0xcd)]||_0x197e2c[_0x36c1b2(0xf2)]))&&(_0x197e2c={'enumerable':!![],'get':function(){return _0x2b2fc0[_0x5dc474];}}),Object[_0x36c1b2(0x10b)](_0x4cd3ae,_0x2efed0,_0x197e2c);}:function(_0x261da4,_0x2d2134,_0x99ded9,_0x250e12){if(_0x250e12===undefined)_0x250e12=_0x99ded9;_0x261da4[_0x250e12]=_0x2d2134[_0x99ded9];}),__exportStar=this&&this[a9_0x31e843(0xd3)]||function(_0x3ee347,_0x1445f1){var _0x377e07=a9_0x31e843;for(var _0x5083f1 in _0x3ee347)if(_0x5083f1!==_0x377e07(0xfe)&&!Object[_0x377e07(0xe7)][_0x377e07(0xf1)][_0x377e07(0xef)](_0x1445f1,_0x5083f1))__createBinding(_0x1445f1,_0x3ee347,_0x5083f1);};Object['defineProperty'](exports,a9_0x31e843(0xeb),{'value':!![]}),exports[a9_0x31e843(0xfa)]=exports[a9_0x31e843(0x100)]=exports[a9_0x31e843(0xcf)]=exports[a9_0x31e843(0xd0)]=exports[a9_0x31e843(0xff)]=exports[a9_0x31e843(0xdc)]=exports[a9_0x31e843(0xec)]=exports[a9_0x31e843(0xe3)]=exports[a9_0x31e843(0xf9)]=exports[a9_0x31e843(0x10c)]=exports[a9_0x31e843(0xe1)]=exports[a9_0x31e843(0xe0)]=exports[a9_0x31e843(0xfb)]=exports[a9_0x31e843(0x10d)]=exports['Fields']=exports[a9_0x31e843(0xfd)]=exports[a9_0x31e843(0xd9)]=exports[a9_0x31e843(0x109)]=exports[a9_0x31e843(0xcc)]=exports[a9_0x31e843(0x10a)]=exports['ExcelService']=exports[a9_0x31e843(0xd7)]=exports['EventService']=exports[a9_0x31e843(0x107)]=exports[a9_0x31e843(0xd5)]=exports[a9_0x31e843(0xf4)]=exports[a9_0x31e843(0xdb)]=exports[a9_0x31e843(0xf3)]=exports[a9_0x31e843(0x101)]=exports[a9_0x31e843(0xce)]=void 0x0;const getAppsConfig_1=require(a9_0x31e843(0xee));function a9_0x4009(){var _0x518bc7=['create','ApiError','./exception/ApiError','ApiService','9864FZyIKM','File','1068376agBFtV','IIntercept','Provide','112pAASZp','419674PXSOaQ','CustomConfiguration','Query','Headers','./service/ExcelService','Config','./service/ApitestService','32FuAuuT','418410SKYuMa','prototype','./helper/getRoutes','./decorator/ActionApitest','search','__esModule','Logger','get','./helper/getAppsConfig','call','10821XjzATS','hasOwnProperty','configurable','Intercept','getRoutes','ExcelService','./types/common','(((.+)+)+)+$','Fields','App','getAppsConfig','Param','@anncic-api/validator','Files','default','Inject','ScopeEnum','Apitest','556812TWPfLh','toString','20075410oBapaT','EventService','448rEYXBe','CacheService','@anncic-api/event','Configuration','ValidatorError','defineProperty','Init','Body','./configuration','./decorator/Action','ValidatorService','writable','Action','Singleton','Scope','./service/ApiService','constructor','__exportStar'];a9_0x4009=function(){return _0x518bc7;};return a9_0x4009();}Object['defineProperty'](exports,a9_0x31e843(0xfa),{'enumerable':!![],'get':function(){var _0x1f7013=a9_0x31e843;return getAppsConfig_1[_0x1f7013(0xfa)];}}),__exportStar(require(a9_0x31e843(0xf6)),exports),__exportStar(require(a9_0x31e843(0xe4)),exports);var Action_1=require(a9_0x31e843(0xcb));Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xce),{'enumerable':!![],'get':function(){var _0x1d8317=a9_0x31e843;return Action_1[_0x1d8317(0xce)];}});var ActionApitest_1=require(a9_0x31e843(0xe9));Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0x101),{'enumerable':!![],'get':function(){var _0x171fb6=a9_0x31e843;return ActionApitest_1[_0x171fb6(0x101)];}});var Intercept_1=require('./decorator/Intercept');Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xf3),{'enumerable':!![],'get':function(){var _0x3570aa=a9_0x31e843;return Intercept_1[_0x3570aa(0xf3)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xdb),{'enumerable':!![],'get':function(){var _0x338925=a9_0x31e843;return Intercept_1[_0x338925(0xdb)];}});var getRoutes_1=require(a9_0x31e843(0xe8));Object[a9_0x31e843(0x10b)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x211e8e=a9_0x31e843;return getRoutes_1[_0x211e8e(0xf4)];}});var ApiError_1=require(a9_0x31e843(0xd6));Object['defineProperty'](exports,a9_0x31e843(0xd5),{'enumerable':!![],'get':function(){var _0x59ef5d=a9_0x31e843;return ApiError_1[_0x59ef5d(0xd5)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0x107),{'enumerable':!![],'get':function(){var _0x2c198b=a9_0x31e843;return cache_1[_0x2c198b(0x107)];}});var event_1=require(a9_0x31e843(0x108));Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0x105),{'enumerable':!![],'get':function(){var _0x28921c=a9_0x31e843;return event_1[_0x28921c(0x105)];}});var ApiService_1=require(a9_0x31e843(0xd1));Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xd7),{'enumerable':!![],'get':function(){var _0x3e7a8a=a9_0x31e843;return ApiService_1[_0x3e7a8a(0xd7)];}});var ExcelService_1=require(a9_0x31e843(0xe2));Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xf5),{'enumerable':!![],'get':function(){var _0x344112=a9_0x31e843;return ExcelService_1[_0x344112(0xf5)];}});var validator_1=require(a9_0x31e843(0xfc));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x29b463=a9_0x31e843;return validator_1[_0x29b463(0x10a)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xcc),{'enumerable':!![],'get':function(){var _0x3d4d56=a9_0x31e843;return validator_1[_0x3d4d56(0xcc)];}});var configuration_1=require(a9_0x31e843(0x10e));Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0x109),{'enumerable':!![],'get':function(){var _0x5d202a=a9_0x31e843;return configuration_1[_0x5d202a(0xdf)];}});var core_1=require('@midwayjs/core');function a9_0x126d(_0x32efba,_0x25a5f6){var _0x5c69c8=a9_0x4009();return a9_0x126d=function(_0x52d293,_0x5b0a76){_0x52d293=_0x52d293-0xcb;var _0x400913=_0x5c69c8[_0x52d293];return _0x400913;},a9_0x126d(_0x32efba,_0x25a5f6);}Object[a9_0x31e843(0x10b)](exports,'File',{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xfd),{'enumerable':!![],'get':function(){var _0x36a26c=a9_0x31e843;return core_1[_0x36a26c(0xfd)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xf8),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0x10d),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object['defineProperty'](exports,a9_0x31e843(0xfb),{'enumerable':!![],'get':function(){var _0x48caf1=a9_0x31e843;return core_1[_0x48caf1(0xfb)];}}),Object['defineProperty'](exports,a9_0x31e843(0xe0),{'enumerable':!![],'get':function(){var _0x4ae096=a9_0x31e843;return core_1[_0x4ae096(0xe0)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xe1),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){var _0x282859=a9_0x31e843;return core_1[_0x282859(0x10c)];}});var core_2=require('@midwayjs/core');Object[a9_0x31e843(0x10b)](exports,'App',{'enumerable':!![],'get':function(){var _0xd34f75=a9_0x31e843;return core_2[_0xd34f75(0xf9)];}}),Object['defineProperty'](exports,a9_0x31e843(0xe3),{'enumerable':!![],'get':function(){var _0x2d3ee0=a9_0x31e843;return core_2[_0x2d3ee0(0xe3)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xec),{'enumerable':!![],'get':function(){var _0x2d0e37=a9_0x31e843;return core_2[_0x2d0e37(0xec)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0xdc),{'enumerable':!![],'get':function(){var _0x44575c=a9_0x31e843;return core_2[_0x44575c(0xdc)];}}),Object[a9_0x31e843(0x10b)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object['defineProperty'](exports,a9_0x31e843(0xd0),{'enumerable':!![],'get':function(){var _0x295e0d=a9_0x31e843;return core_2[_0x295e0d(0xd0)];}}),Object['defineProperty'](exports,a9_0x31e843(0xcf),{'enumerable':!![],'get':function(){var _0x3d0496=a9_0x31e843;return core_2[_0x3d0496(0xcf)];}}),Object[a9_0x31e843(0x10b)](exports,a9_0x31e843(0x100),{'enumerable':!![],'get':function(){var _0x34bcbb=a9_0x31e843;return core_2[_0x34bcbb(0x100)];}}),global[a9_0x31e843(0xfa)]=getAppsConfig_1[a9_0x31e843(0xfa)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a10_0x40e7d9=a10_0x6948;(function(_0x377cd9,_0x4a34aa){var _0x1867a1=a10_0x6948,_0x4590d8=_0x377cd9();while(!![]){try{var _0xc77c70=-parseInt(_0x1867a1(0x136))/0x1+parseInt(_0x1867a1(0x131))/0x2+-parseInt(_0x1867a1(0x140))/0x3+-parseInt(_0x1867a1(0x13c))/0x4+-parseInt(_0x1867a1(0x13a))/0x5+parseInt(_0x1867a1(0x132))/0x6+parseInt(_0x1867a1(0x13d))/0x7;if(_0xc77c70===_0x4a34aa)break;else _0x4590d8['push'](_0x4590d8['shift']());}catch(_0x3c9371){_0x4590d8['push'](_0x4590d8['shift']());}}}(a10_0x352e,0x614eb));var a10_0x3bcf4c=(function(){var _0x310852=!![];return function(_0x1e2f59,_0x45e564){var _0x154690=_0x310852?function(){var _0x12bf3a=a10_0x6948;if(_0x45e564){var _0x3a6424=_0x45e564[_0x12bf3a(0x124)](_0x1e2f59,arguments);return _0x45e564=null,_0x3a6424;}}:function(){};return _0x310852=![],_0x154690;};}()),a10_0x14d6f8=a10_0x3bcf4c(this,function(){var _0x2c0f90=a10_0x6948;return a10_0x14d6f8[_0x2c0f90(0x128)]()['search'](_0x2c0f90(0x120))[_0x2c0f90(0x128)]()['constructor'](a10_0x14d6f8)[_0x2c0f90(0x121)](_0x2c0f90(0x120));});a10_0x14d6f8();'use strict';var __decorate=this&&this[a10_0x40e7d9(0x141)]||function(_0x3ee701,_0x228456,_0x8933ae,_0x150f02){var _0x148e24=a10_0x40e7d9,_0x2b5408=arguments[_0x148e24(0x137)],_0x2b0879=_0x2b5408<0x3?_0x228456:_0x150f02===null?_0x150f02=Object['getOwnPropertyDescriptor'](_0x228456,_0x8933ae):_0x150f02,_0x2609e4;if(typeof Reflect===_0x148e24(0x122)&&typeof Reflect[_0x148e24(0x11e)]==='function')_0x2b0879=Reflect[_0x148e24(0x11e)](_0x3ee701,_0x228456,_0x8933ae,_0x150f02);else{for(var _0xef24b=_0x3ee701[_0x148e24(0x137)]-0x1;_0xef24b>=0x0;_0xef24b--)if(_0x2609e4=_0x3ee701[_0xef24b])_0x2b0879=(_0x2b5408<0x3?_0x2609e4(_0x2b0879):_0x2b5408>0x3?_0x2609e4(_0x228456,_0x8933ae,_0x2b0879):_0x2609e4(_0x228456,_0x8933ae))||_0x2b0879;}return _0x2b5408>0x3&&_0x2b0879&&Object[_0x148e24(0x123)](_0x228456,_0x8933ae,_0x2b0879),_0x2b0879;},__metadata=this&&this[a10_0x40e7d9(0x114)]||function(_0x1cf5fd,_0xaaf993){var _0x5d8b8b=a10_0x40e7d9;if(typeof Reflect===_0x5d8b8b(0x122)&&typeof Reflect[_0x5d8b8b(0x11c)]===_0x5d8b8b(0x129))return Reflect[_0x5d8b8b(0x11c)](_0x1cf5fd,_0xaaf993);};function a10_0x6948(_0x27bbe7,_0x75df28){var _0x58eea4=a10_0x352e();return a10_0x6948=function(_0x14d6f8,_0x3bcf4c){_0x14d6f8=_0x14d6f8-0x10b;var _0x352e09=_0x58eea4[_0x14d6f8];return _0x352e09;},a10_0x6948(_0x27bbe7,_0x75df28);}Object[a10_0x40e7d9(0x123)](exports,a10_0x40e7d9(0x10f),{'value':!![]}),exports[a10_0x40e7d9(0x12d)]=void 0x0;function a10_0x352e(){var _0x48de1e=['metadata','MD5','decorate','getcheck','(((.+)+)+)+$','search','object','defineProperty','apply','device','验证失败','@midwayjs/core','toString','function','getsign','checksign','Singleton','ApiService','token','../exception/ApiError','design:type','265450rZWgpb','2733768VrBiZN','requesttime','timeout','abs','651886Bkspqz','length','HEADERS_LACK','now','701795CrfZfK','password','1651108ZDLdWM','7304801SGlGiY','config','fromEntries','84909EXYRAE','__decorate','map','ScopeEnum','crypto-js','TIMEOUT','TIMEOUT_LOGINTIME','toLowerCase','Config','secret=','signature','HEADERS_DEVICE','__esModule','HEADERS_SIGNATURE','ApiError','devices','请求超时,请重试或改善网络环境','__metadata','secret','checkcode','logintime','anncicapi','HEADERS_CHECKCODE','push','undefined'];a10_0x352e=function(){return _0x48de1e;};return a10_0x352e();}const crypto_js_1=require(a10_0x40e7d9(0x144)),core_1=require(a10_0x40e7d9(0x127)),ApiError_1=require(a10_0x40e7d9(0x12f));let ApiService=exports['ApiService']=class ApiService{[a10_0x40e7d9(0x13b)](_0x42e7a1){var _0x12306b=a10_0x40e7d9,_0x436a3f;return _0x42e7a1?(0x0,crypto_js_1[_0x12306b(0x11d)])(''+_0x42e7a1+(0x0,crypto_js_1[_0x12306b(0x11d)])((0x0,crypto_js_1[_0x12306b(0x11d)])(''+_0x42e7a1)[_0x12306b(0x128)]()+(''+((_0x436a3f=this[_0x12306b(0x13e)])===null||_0x436a3f===void 0x0?void 0x0:_0x436a3f[_0x12306b(0x13b)])))['toString']())[_0x12306b(0x128)]():'';}[a10_0x40e7d9(0x11f)](_0x1052d9,_0x44d084,_0x592155=Date[a10_0x40e7d9(0x139)]()){var _0x507eff=a10_0x40e7d9;return{'Token':_0x1052d9,'Logintime':_0x592155,'Checkcode':this[_0x507eff(0x116)](_0x1052d9,_0x44d084,_0x592155)};}[a10_0x40e7d9(0x12a)](_0x413afe={}){var _0x3db599=a10_0x40e7d9,_0x2a8fd5,_0x100744;const _0x470784=[],_0x59329d=Object[_0x3db599(0x13f)](Object['entries'](_0x413afe)[_0x3db599(0x142)](_0x17138b=>[_0x17138b[0x0][_0x3db599(0x147)](),_0x17138b[0x1]]));for(let _0x3eae1c of['device',_0x3db599(0x133),_0x3db599(0x12e),_0x3db599(0x117),_0x3db599(0x116)]){if(typeof _0x59329d[_0x3eae1c]==_0x3db599(0x11b))throw new AnnError(ApiError_1[_0x3db599(0x111)][_0x3db599(0x138)],{'message':_0x3db599(0x126)});_0x470784[_0x3db599(0x11a)](_0x3eae1c+'='+_0x59329d[_0x3eae1c]);}_0x59329d[_0x3db599(0x133)]&&((_0x2a8fd5=_0x59329d['requesttime'])===null||_0x2a8fd5===void 0x0?void 0x0:_0x2a8fd5['length'])==0xa&&(_0x59329d[_0x3db599(0x133)]=_0x59329d[_0x3db599(0x133)]*0x3e8);if(this[_0x3db599(0x13e)][_0x3db599(0x134)]&&Date[_0x3db599(0x139)]()-Math[_0x3db599(0x135)](_0x59329d['requesttime'])>this[_0x3db599(0x13e)][_0x3db599(0x134)])throw new AnnError(ApiError_1[_0x3db599(0x111)][_0x3db599(0x145)],{'message':_0x3db599(0x113),'requesttime':_0x59329d[_0x3db599(0x133)],'timestamp':Date['now']()});if((((_0x100744=this[_0x3db599(0x13e)][_0x3db599(0x112)][_0x59329d[_0x3db599(0x125)]])===null||_0x100744===void 0x0?void 0x0:_0x100744['logintimeout'])||0x0)>0x0&&Date['now']()-Math[_0x3db599(0x135)](_0x59329d[_0x3db599(0x117)])>this['config'][_0x3db599(0x112)][_0x59329d[_0x3db599(0x125)]]['logintimeout'])throw new AnnError(ApiError_1['ApiError'][_0x3db599(0x146)]);if(!this[_0x3db599(0x13e)][_0x3db599(0x112)][_0x59329d[_0x3db599(0x125)]]||!this['config'][_0x3db599(0x112)][_0x59329d[_0x3db599(0x125)]]['secret']||!this['config'][_0x3db599(0x112)][_0x59329d[_0x3db599(0x125)]][_0x3db599(0x116)])throw new AnnError(ApiError_1[_0x3db599(0x111)][_0x3db599(0x10e)]);if(_0x59329d['token']&&_0x59329d[_0x3db599(0x116)]!=this[_0x3db599(0x116)](_0x59329d[_0x3db599(0x12e)],_0x59329d[_0x3db599(0x125)],_0x59329d['logintime']))throw new AnnError(ApiError_1[_0x3db599(0x111)][_0x3db599(0x119)]);return _0x470784['push'](_0x3db599(0x10c)+this[_0x3db599(0x13e)][_0x3db599(0x112)][_0x59329d['device']][_0x3db599(0x115)]),(0x0,crypto_js_1[_0x3db599(0x11d)])(_0x470784['sort']()['join'](''))['toString']();}['checkcode'](_0x344017,_0x10da51,_0x9ab4db=Date[a10_0x40e7d9(0x139)]()){var _0x23156a=a10_0x40e7d9,_0x5f825f,_0x5b28a6,_0x3c5078;if(!((_0x5f825f=this[_0x23156a(0x13e)])===null||_0x5f825f===void 0x0?void 0x0:_0x5f825f[_0x23156a(0x112)][_0x10da51])||!((_0x3c5078=(_0x5b28a6=this['config'])===null||_0x5b28a6===void 0x0?void 0x0:_0x5b28a6['devices'][_0x10da51])===null||_0x3c5078===void 0x0?void 0x0:_0x3c5078[_0x23156a(0x116)]))throw new AnnError(ApiError_1[_0x23156a(0x111)][_0x23156a(0x10e)]);return(0x0,crypto_js_1['MD5'])(''+_0x344017+(0x0,crypto_js_1['MD5'])(''+_0x9ab4db+(''+this['config'][_0x23156a(0x112)][_0x10da51][_0x23156a(0x116)]))[_0x23156a(0x128)]())['toString']();}[a10_0x40e7d9(0x12b)](_0xa7c681={}){var _0x191b17=a10_0x40e7d9;const _0x4e7c4c=Object['fromEntries'](Object['entries'](_0xa7c681)[_0x191b17(0x142)](_0x1a8646=>[_0x1a8646[0x0][_0x191b17(0x147)](),_0x1a8646[0x1]]));if(!(_0x4e7c4c===null||_0x4e7c4c===void 0x0?void 0x0:_0x4e7c4c['signature']))throw new AnnError(ApiError_1['ApiError'][_0x191b17(0x138)],{'message':_0x191b17(0x126)});if((_0x4e7c4c===null||_0x4e7c4c===void 0x0?void 0x0:_0x4e7c4c[_0x191b17(0x10d)])!=this['getsign'](_0x4e7c4c))throw new AnnError(ApiError_1[_0x191b17(0x111)][_0x191b17(0x110)],{'message':_0x191b17(0x126)});return!![];}};__decorate([(0x0,core_1[a10_0x40e7d9(0x10b)])(a10_0x40e7d9(0x118)),__metadata(a10_0x40e7d9(0x130),Object)],ApiService['prototype'],'config',void 0x0),exports[a10_0x40e7d9(0x12d)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a10_0x40e7d9(0x143)][a10_0x40e7d9(0x12c)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x453f47=a11_0x2a99;(function(_0x49aec3,_0x141c27){const _0x28385b=a11_0x2a99,_0x17fd95=_0x49aec3();while(!![]){try{const _0x4c64b4=parseInt(_0x28385b(0xec))/0x1+parseInt(_0x28385b(0xf0))/0x2+parseInt(_0x28385b(0xdc))/0x3+parseInt(_0x28385b(0xd3))/0x4*(-parseInt(_0x28385b(0x109))/0x5)+-parseInt(_0x28385b(0xd1))/0x6+parseInt(_0x28385b(0x116))/0x7+-parseInt(_0x28385b(0x114))/0x8*(parseInt(_0x28385b(0xde))/0x9);if(_0x4c64b4===_0x141c27)break;else _0x17fd95['push'](_0x17fd95['shift']());}catch(_0x228146){_0x17fd95['push'](_0x17fd95['shift']());}}}(a11_0x18b6,0xcdc3c));const a11_0x3b8baa=(function(){let _0x2a95f6=!![];return function(_0x1c4864,_0x31b955){const _0x54917c=_0x2a95f6?function(){const _0x52a066=a11_0x2a99;if(_0x31b955){const _0xab7962=_0x31b955[_0x52a066(0x10e)](_0x1c4864,arguments);return _0x31b955=null,_0xab7962;}}:function(){};return _0x2a95f6=![],_0x54917c;};}()),a11_0x5c10d7=a11_0x3b8baa(this,function(){const _0x56cb86=a11_0x2a99;return a11_0x5c10d7[_0x56cb86(0x11e)]()[_0x56cb86(0x102)](_0x56cb86(0x11a))[_0x56cb86(0x11e)]()[_0x56cb86(0x100)](a11_0x5c10d7)[_0x56cb86(0x102)](_0x56cb86(0x11a));});a11_0x5c10d7();'use strict';var __decorate=this&&this[a11_0x453f47(0xf2)]||function(_0x32b4af,_0x402382,_0x552864,_0x5ce322){const _0x37d10f=a11_0x453f47;var _0x2cabf9=arguments[_0x37d10f(0x120)],_0x2b180f=_0x2cabf9<0x3?_0x402382:_0x5ce322===null?_0x5ce322=Object['getOwnPropertyDescriptor'](_0x402382,_0x552864):_0x5ce322,_0x410e91;if(typeof Reflect===_0x37d10f(0xe2)&&typeof Reflect[_0x37d10f(0x11f)]===_0x37d10f(0x103))_0x2b180f=Reflect[_0x37d10f(0x11f)](_0x32b4af,_0x402382,_0x552864,_0x5ce322);else{for(var _0x5d23d9=_0x32b4af['length']-0x1;_0x5d23d9>=0x0;_0x5d23d9--)if(_0x410e91=_0x32b4af[_0x5d23d9])_0x2b180f=(_0x2cabf9<0x3?_0x410e91(_0x2b180f):_0x2cabf9>0x3?_0x410e91(_0x402382,_0x552864,_0x2b180f):_0x410e91(_0x402382,_0x552864))||_0x2b180f;}return _0x2cabf9>0x3&&_0x2b180f&&Object['defineProperty'](_0x402382,_0x552864,_0x2b180f),_0x2b180f;},__metadata=this&&this[a11_0x453f47(0xd8)]||function(_0x1010c8,_0x344acc){const _0x6f3c25=a11_0x453f47;if(typeof Reflect===_0x6f3c25(0xe2)&&typeof Reflect[_0x6f3c25(0x10c)]===_0x6f3c25(0x103))return Reflect[_0x6f3c25(0x10c)](_0x1010c8,_0x344acc);},__param=this&&this['__param']||function(_0x5b0766,_0x3414c2){return function(_0x17c1ed,_0x300b88){_0x3414c2(_0x17c1ed,_0x300b88,_0x5b0766);};};Object[a11_0x453f47(0xfe)](exports,a11_0x453f47(0xda),{'value':!![]}),exports[a11_0x453f47(0xe8)]=exports[a11_0x453f47(0xcf)]=void 0x0;const path_1=require(a11_0x453f47(0xe3)),fs_1=require('fs'),core_1=require(a11_0x453f47(0xe9)),core_2=require('@midwayjs/core'),core_3=require(a11_0x453f47(0xe9)),getRoutes_1=require(a11_0x453f47(0x11c));let ApitestService=exports[a11_0x453f47(0xcf)]=class ApitestService{async[a11_0x453f47(0x101)](_0x4ac80c){const _0x2ef434=a11_0x453f47,_0x46c9d2=(0x0,getRoutes_1['getRoutes'])(_0x4ac80c),_0x159c80=[];for(let _0x3fba75 in _0x46c9d2){for(let _0x21fd71 in _0x46c9d2[_0x3fba75][_0x2ef434(0xf3)]){let _0x15c1a7=_0x46c9d2[_0x3fba75][_0x2ef434(0xf3)][_0x21fd71],_0x44a7a6=[];for(let _0x42ed98 in _0x15c1a7[_0x2ef434(0xd9)]){_0x44a7a6[_0x2ef434(0xd2)](_0x15c1a7['request'][_0x42ed98]);}_0x159c80[_0x2ef434(0xd2)]({'title':_0x46c9d2[_0x3fba75][_0x2ef434(0xf4)]+':'+_0x15c1a7[_0x2ef434(0xf4)],'prefix':_0x46c9d2[_0x3fba75]['prefix'],'router':_0x15c1a7['route'],'method':_0x15c1a7[_0x2ef434(0xe0)],'describe':_0x15c1a7[_0x2ef434(0x108)]||'','filepath':_0x46c9d2[_0x3fba75][_0x2ef434(0x117)]||'','request':_0x44a7a6});}}const _0x2c92fc=(0x0,path_1[_0x2ef434(0xed)])(__dirname,_0x2ef434(0x10a));return(0x0,fs_1[_0x2ef434(0x118)])(_0x2c92fc,{'encoding':_0x2ef434(0xeb)})[_0x2ef434(0xf1)](/__res__/g,_0x2ef434(0x104))[_0x2ef434(0xf1)]('__apiList__',JSON['stringify'](_0x159c80))[_0x2ef434(0xf1)](_0x2ef434(0xf5),JSON[_0x2ef434(0xd7)](this[_0x2ef434(0xe5)]['devices']));}};function a11_0x2a99(_0x2cceae,_0xd29373){const _0x369e1e=a11_0x18b6();return a11_0x2a99=function(_0x5c10d7,_0x3b8baa){_0x5c10d7=_0x5c10d7-0xcf;let _0x18b6fc=_0x369e1e[_0x5c10d7];return _0x18b6fc;},a11_0x2a99(_0x2cceae,_0xd29373);}function a11_0x18b6(){const _0x57d415=['summary','__devices__','extname','.css','module','/apitest','cache-control','design:returntype','/apiteststatic/*','application/javascript;\x20charset=utf-8','defineProperty','url','constructor','apidoc','search','function','/apiteststatic/','existsSync','Controller','.js','description','1234915FNsrPq','../../public/index.html','ctx','metadata','design:paramtypes','apply','Config','Request','public,\x20max-age=604800','MidwayEnvironmentService','design:type','2404592tjJAiA','Inject','2238782qthAXE','filepath','readFileSync','/index.html','(((.+)+)+)+$','apitestmodule','../helper/getRoutes','prototype','toString','decorate','length','ApitestService','Environment','2307084kTweVs','push','12RimAuI','set','Get','Singleton','stringify','__metadata','request','__esModule','apiteststatic','1059393yRBXIf','Scope','18WSIkFv','ScopeEnum','method','apitest','object','path','../../public/','config','apitesthtml','isDevelopmentEnvironment','ApitestStaticController','@midwayjs/core','anncicapi','utf-8','992544pNozmA','join','content-type','text/css;\x20charset=utf-8','1807844ghLfPg','replace','__decorate','routes'];a11_0x18b6=function(){return _0x57d415;};return a11_0x18b6();}__decorate([(0x0,core_3[a11_0x453f47(0x10f)])(a11_0x453f47(0xea)),__metadata(a11_0x453f47(0x113),Object)],ApitestService[a11_0x453f47(0x11d)],a11_0x453f47(0xe5),void 0x0),exports[a11_0x453f47(0xcf)]=ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x453f47(0xe1)),(0x0,core_3[a11_0x453f47(0xdd)])(core_3[a11_0x453f47(0xdf)][a11_0x453f47(0xd6)])],ApitestService);let ApitestStaticController=exports['ApitestStaticController']=class ApitestStaticController{async[a11_0x453f47(0xe6)](){const _0x1a1bf1=a11_0x453f47;if(this[_0x1a1bf1(0xe1)]){const _0x85ec00={'module':![]};return this[_0x1a1bf1(0xd0)][_0x1a1bf1(0xe7)]()&&(_0x85ec00[_0x1a1bf1(0x117)]=!![]),await this[_0x1a1bf1(0xcf)][_0x1a1bf1(0x101)](_0x85ec00);}return'';}async['apitestmodule'](_0x56d2c2){const _0x433cb7=a11_0x453f47;if(this['apitest']){const _0x57d9b2={'module':_0x56d2c2};return this['Environment'][_0x433cb7(0xe7)]()&&(_0x57d9b2[_0x433cb7(0x117)]=!![]),await this['ApitestService'][_0x433cb7(0x101)](_0x57d9b2);}return'';}async[a11_0x453f47(0xdb)](){const _0x273b85=a11_0x453f47;if((0x0,path_1[_0x273b85(0xf6)])(this[_0x273b85(0x10b)]['request'][_0x273b85(0xff)])){var _0x4635bd=(0x0,path_1[_0x273b85(0xed)])(__dirname,_0x273b85(0xe4)+this['ctx'][_0x273b85(0xd9)]['url'][_0x273b85(0xf1)](_0x273b85(0x104),'/'));if(_0x4635bd['substring'](_0x4635bd[_0x273b85(0x120)]-0xb)!=_0x273b85(0x119)){this[_0x273b85(0x10b)][_0x273b85(0xd4)](_0x273b85(0xfa),_0x273b85(0x111));if((0x0,path_1['extname'])(this['ctx'][_0x273b85(0xd9)][_0x273b85(0xff)])==_0x273b85(0x107))this[_0x273b85(0x10b)][_0x273b85(0xd4)]('content-type',_0x273b85(0xfd));else(0x0,path_1['extname'])(this[_0x273b85(0x10b)][_0x273b85(0xd9)][_0x273b85(0xff)])==_0x273b85(0xf7)&&this[_0x273b85(0x10b)][_0x273b85(0xd4)](_0x273b85(0xee),_0x273b85(0xef));return(0x0,fs_1[_0x273b85(0x105)])(_0x4635bd)&&(0x0,fs_1[_0x273b85(0x118)])(_0x4635bd,{'encoding':_0x273b85(0xeb)});}}return'';}};__decorate([(0x0,core_3[a11_0x453f47(0x115)])(),__metadata(a11_0x453f47(0x113),Object)],ApitestStaticController[a11_0x453f47(0x11d)],a11_0x453f47(0x10b),void 0x0),__decorate([(0x0,core_3[a11_0x453f47(0x115)])(),__metadata(a11_0x453f47(0x113),core_1[a11_0x453f47(0x112)])],ApitestStaticController[a11_0x453f47(0x11d)],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x453f47(0x115)])(),__metadata(a11_0x453f47(0x113),ApitestService)],ApitestStaticController['prototype'],a11_0x453f47(0xcf),void 0x0),__decorate([(0x0,core_3[a11_0x453f47(0x10f)])(a11_0x453f47(0xe1)),__metadata(a11_0x453f47(0x113),Boolean)],ApitestStaticController['prototype'],a11_0x453f47(0xe1),void 0x0),__decorate([(0x0,core_3[a11_0x453f47(0x10f)])(a11_0x453f47(0xea)),__metadata('design:type',Object)],ApitestStaticController[a11_0x453f47(0x11d)],a11_0x453f47(0xe5),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x453f47(0xf9)),__metadata(a11_0x453f47(0x113),Function),__metadata(a11_0x453f47(0x10d),[]),__metadata(a11_0x453f47(0xfb),Promise)],ApitestStaticController[a11_0x453f47(0x11d)],a11_0x453f47(0xe6),null),__decorate([(0x0,core_2[a11_0x453f47(0xd5)])('/apitest-:module'),__param(0x0,(0x0,core_2['Param'])(a11_0x453f47(0xf8))),__metadata(a11_0x453f47(0x113),Function),__metadata(a11_0x453f47(0x10d),[String]),__metadata(a11_0x453f47(0xfb),Promise)],ApitestStaticController[a11_0x453f47(0x11d)],a11_0x453f47(0x11b),null),__decorate([(0x0,core_2[a11_0x453f47(0xd5)])(a11_0x453f47(0xfc)),__metadata(a11_0x453f47(0x113),Function),__metadata(a11_0x453f47(0x10d),[]),__metadata(a11_0x453f47(0xfb),Promise)],ApitestStaticController[a11_0x453f47(0x11d)],a11_0x453f47(0xdb),null),exports[a11_0x453f47(0xe8)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x453f47(0x106)])('/'),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a11_0x453f47(0x110)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2d9672=a12_0x126f;(function(_0x12cf95,_0x493c7c){const _0x4f70fd=a12_0x126f,_0x436bf5=_0x12cf95();while(!![]){try{const _0x2be1ff=-parseInt(_0x4f70fd(0xd5))/0x1+parseInt(_0x4f70fd(0xe1))/0x2*(parseInt(_0x4f70fd(0xe3))/0x3)+parseInt(_0x4f70fd(0xfa))/0x4*(parseInt(_0x4f70fd(0x109))/0x5)+parseInt(_0x4f70fd(0xd7))/0x6*(parseInt(_0x4f70fd(0x100))/0x7)+parseInt(_0x4f70fd(0x10d))/0x8+parseInt(_0x4f70fd(0x102))/0x9+parseInt(_0x4f70fd(0xda))/0xa*(-parseInt(_0x4f70fd(0x113))/0xb);if(_0x2be1ff===_0x493c7c)break;else _0x436bf5['push'](_0x436bf5['shift']());}catch(_0x21e0d9){_0x436bf5['push'](_0x436bf5['shift']());}}}(a12_0x5c57,0x68a65));const a12_0x3bc334=(function(){let _0x214b09=!![];return function(_0x24bba3,_0x3ec708){const _0x274f30=_0x214b09?function(){const _0x5ca953=a12_0x126f;if(_0x3ec708){const _0x471ad3=_0x3ec708[_0x5ca953(0x110)](_0x24bba3,arguments);return _0x3ec708=null,_0x471ad3;}}:function(){};return _0x214b09=![],_0x274f30;};}()),a12_0x9bbbe8=a12_0x3bc334(this,function(){const _0x3dfd9b=a12_0x126f;return a12_0x9bbbe8[_0x3dfd9b(0xf4)]()[_0x3dfd9b(0xed)]('(((.+)+)+)+$')['toString']()[_0x3dfd9b(0x114)](a12_0x9bbbe8)[_0x3dfd9b(0xed)]('(((.+)+)+)+$');});a12_0x9bbbe8();'use strict';var __decorate=this&&this[a12_0x2d9672(0x105)]||function(_0x16586c,_0x3f218d,_0x369d26,_0x18f42c){const _0x4c71ba=a12_0x2d9672;var _0x298dbc=arguments['length'],_0x283990=_0x298dbc<0x3?_0x3f218d:_0x18f42c===null?_0x18f42c=Object['getOwnPropertyDescriptor'](_0x3f218d,_0x369d26):_0x18f42c,_0x162918;if(typeof Reflect===_0x4c71ba(0x112)&&typeof Reflect[_0x4c71ba(0xf0)]==='function')_0x283990=Reflect[_0x4c71ba(0xf0)](_0x16586c,_0x3f218d,_0x369d26,_0x18f42c);else{for(var _0xb5e0e4=_0x16586c[_0x4c71ba(0xdb)]-0x1;_0xb5e0e4>=0x0;_0xb5e0e4--)if(_0x162918=_0x16586c[_0xb5e0e4])_0x283990=(_0x298dbc<0x3?_0x162918(_0x283990):_0x298dbc>0x3?_0x162918(_0x3f218d,_0x369d26,_0x283990):_0x162918(_0x3f218d,_0x369d26))||_0x283990;}return _0x298dbc>0x3&&_0x283990&&Object[_0x4c71ba(0xef)](_0x3f218d,_0x369d26,_0x283990),_0x283990;},__metadata=this&&this[a12_0x2d9672(0x104)]||function(_0x27fb1e,_0x312604){const _0x1f0ed5=a12_0x2d9672;if(typeof Reflect===_0x1f0ed5(0x112)&&typeof Reflect[_0x1f0ed5(0xce)]===_0x1f0ed5(0x10a))return Reflect['metadata'](_0x27fb1e,_0x312604);};function a12_0x5c57(){const _0x4e228d=['177815KvPhtn','Api\x20Excel\x20Error:\x20','22404gwGqyG','model','worksheets','10wZAIUY','length','substring','startsWith','getAppDir','columns','Workbook','2iAhNUw','writeFile','1751694fYJiVV','header','@midwayjs/core','xlsx','frozen','format','log','App','__esModule','filter','search','Singleton','defineProperty','decorate','value','ScopeEnum','replace','toString','cellCount','col','prototype','get','endsWith','8rwzScd','app','mkdirSync','Scope','handler','eachCell','959RjMTDj','isNumber','4380651eQVdvQ','Provide','__metadata','__decorate','values','key','YYYY/MM/DD','1333795iFBhfS','function','addWorksheet','ExcelService','6424736uNOfiA','/public/xlsx/','design:type','apply','.xlsx','object','25435795xnLGYD','constructor','findRows','rowCount','exceljs','getWorksheet','metadata','keys','push','addRow','getCell','parse','set'];a12_0x5c57=function(){return _0x4e228d;};return a12_0x5c57();}Object['defineProperty'](exports,a12_0x2d9672(0xeb),{'value':!![]}),exports['ExcelService']=void 0x0;function a12_0x126f(_0x4ad035,_0x144924){const _0x49afa0=a12_0x5c57();return a12_0x126f=function(_0x9bbbe8,_0x3bc334){_0x9bbbe8=_0x9bbbe8-0xcd;let _0x5c571d=_0x49afa0[_0x9bbbe8];return _0x5c571d;},a12_0x126f(_0x4ad035,_0x144924);}const fs=require('fs'),exceljs=require(a12_0x2d9672(0x117)),koasend=require('koa-send'),core_1=require(a12_0x2d9672(0xe5));let ExcelService=exports[a12_0x2d9672(0x10c)]=class ExcelService{async[a12_0x2d9672(0xd3)](_0x59aeaf,_0x3e9b53,_0x648304=[0x0]){const _0x59d834=a12_0x2d9672;var _0x108b92,_0x51d8bd;const _0x5f2ce4=new exceljs['Workbook'](),_0x18a064=[];let _0x594b96=_0x59aeaf[_0x59d834(0xf3)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x594b96===null||_0x594b96===void 0x0?void 0x0:_0x594b96['startsWith']('/'))&&(_0x594b96=this[_0x59d834(0xfb)][_0x59d834(0xde)]()+'/'+_0x594b96);try{await _0x5f2ce4['xlsx']['readFile'](_0x594b96);}catch(_0x3efffb){return console[_0x59d834(0xe9)](_0x59d834(0xd6)+_0x594b96+'\x20is\x20read\x20fail'),_0x18a064;}for(const _0x1df27d of _0x648304){const _0x1cb2e5=lodash[_0x59d834(0x101)](_0x1df27d)?((_0x108b92=_0x5f2ce4[_0x59d834(0xd9)])===null||_0x108b92===void 0x0?void 0x0:_0x108b92[_0x1df27d])||undefined:_0x5f2ce4[_0x59d834(0xcd)](_0x1df27d);if(_0x1cb2e5){var _0x352296=0x1;const _0x15105b=_0x1cb2e5['getRow'](0x1),_0x37b77a=await new Promise(_0x12953a=>{const _0x37262d=_0x59d834,_0x591759={};_0x15105b[_0x37262d(0xff)]((_0x36da47,_0x3fe6ff)=>{const _0x3199b2=_0x37262d;for(const _0x16a246 of _0x3e9b53){if(_0x36da47[_0x3199b2(0xf1)]==_0x16a246[_0x3199b2(0xe4)])_0x352296=0x2,_0x591759[_0x16a246[_0x3199b2(0x107)]]={'header':_0x36da47[_0x3199b2(0xf6)],'handler':_0x16a246['handler']};else{if(!_0x591759[_0x16a246['key']])try{const _0x24d1c9=_0x15105b&&_0x15105b[_0x3199b2(0xd2)](_0x16a246[_0x3199b2(0xe4)]);_0x24d1c9&&(_0x591759[_0x16a246[_0x3199b2(0x107)]]={'header':_0x24d1c9[_0x3199b2(0xf6)],'handler':_0x16a246[_0x3199b2(0xfe)]});}catch{}}}_0x15105b[_0x3199b2(0xf5)]==_0x3fe6ff&&_0x12953a(_0x591759);});});_0x42211e:for(const _0x40a4d2 of _0x1cb2e5[_0x59d834(0x115)](_0x352296,_0x1cb2e5[_0x59d834(0x116)])){if(typeof(_0x40a4d2===null||_0x40a4d2===void 0x0?void 0x0:_0x40a4d2[_0x59d834(0xd2)])!='function')continue _0x42211e;const _0x1e52a4={};_0x117537:for(const _0x34ed36 in _0x37b77a){if(_0x37b77a[_0x34ed36][_0x59d834(0xe4)]){const _0x297145=_0x40a4d2[_0x59d834(0xd2)](_0x37b77a[_0x34ed36][_0x59d834(0xe4)]);if(!_0x297145)continue _0x117537;try{_0x297145[_0x59d834(0xf4)]();}catch(_0x3ff74c){_0x297145[_0x59d834(0xf4)]=()=>{const _0x1929ab=_0x59d834;var _0x53d50a;return''+(((_0x53d50a=_0x297145===null||_0x297145===void 0x0?void 0x0:_0x297145[_0x1929ab(0xd8)])===null||_0x53d50a===void 0x0?void 0x0:_0x53d50a[_0x1929ab(0xf1)])||'');};}typeof((_0x51d8bd=_0x37b77a[_0x34ed36])===null||_0x51d8bd===void 0x0?void 0x0:_0x51d8bd[_0x59d834(0xfe)])==_0x59d834(0x10a)?_0x1e52a4[_0x34ed36]=await _0x37b77a[_0x34ed36]['handler'](lodash[_0x59d834(0xd4)]({},_0x34ed36,(_0x297145===null||_0x297145===void 0x0?void 0x0:_0x297145[_0x59d834(0xf4)]())||''),_0x297145['model']):_0x1e52a4[_0x34ed36]=(_0x297145===null||_0x297145===void 0x0?void 0x0:_0x297145['toString']())||'';}}Object[_0x59d834(0xcf)](_0x1e52a4)['length']>0x0&&Object[_0x59d834(0x106)](_0x1e52a4)[_0x59d834(0xec)](_0x257ee1=>_0x257ee1!='')[_0x59d834(0xdb)]>0x0&&_0x18a064[_0x59d834(0xd0)](_0x1e52a4);}}}return _0x18a064;}async['export'](_0x322848,_0x49eba2,_0xda21db,_0x2e0653){const _0x272fe1=a12_0x2d9672;var _0x291319,_0x5a9ac2;const _0x89653f=new exceljs[(_0x272fe1(0xe0))](),_0x4decae={},_0x454616=[],_0x35a38d=_0x89653f[_0x272fe1(0x10b)]('Sheet\x201',{'views':[{'state':_0x272fe1(0xe7),'xSplit':0x1}]});for(const _0x2f190c in _0x49eba2){_0x4decae[_0x49eba2[_0x2f190c][_0x272fe1(0x107)]]=_0x49eba2[_0x2f190c][_0x272fe1(0xe4)],_0x454616[_0x272fe1(0xd0)]({'header':_0x49eba2[_0x2f190c][_0x272fe1(0xe4)],'key':(_0x291319=_0x49eba2[_0x2f190c])===null||_0x291319===void 0x0?void 0x0:_0x291319[_0x272fe1(0x107)][_0x272fe1(0xf3)](/\./g,'_')});}_0x35a38d[_0x272fe1(0xdf)]=_0x454616;for(const _0x58c9da of _0xda21db){const _0x982065={};for(const _0x543dfa in _0x49eba2){typeof((_0x5a9ac2=_0x49eba2[_0x543dfa])===null||_0x5a9ac2===void 0x0?void 0x0:_0x5a9ac2[_0x272fe1(0xfe)])==_0x272fe1(0x10a)?_0x982065[_0x49eba2[_0x543dfa][_0x272fe1(0x107)]['replace'](/\./g,'_')]=await _0x49eba2[_0x543dfa][_0x272fe1(0xfe)](_0x58c9da):_0x982065[_0x49eba2[_0x543dfa][_0x272fe1(0x107)]['replace'](/\./g,'_')]=lodash[_0x272fe1(0xf8)](_0x58c9da,_0x49eba2[_0x543dfa][_0x272fe1(0x107)],'');}_0x35a38d[_0x272fe1(0xd1)](_0x982065);}let _0x2ff604='';const _0x16f7d9=_0x322848+'-'+lodash['random'](0x186a0,0xf423f)+_0x272fe1(0x111);if(_0x2e0653&&_0x2e0653[_0x272fe1(0xdd)]('/'))_0x2ff604=''+_0x2e0653;else _0x2e0653&&!_0x2e0653[_0x272fe1(0xdd)]('/')&&!_0x2e0653[_0x272fe1(0xdd)]('\x5c')?_0x2ff604=this[_0x272fe1(0xfb)][_0x272fe1(0xde)]()+'/'+_0x2e0653:_0x2ff604=this['app'][_0x272fe1(0xde)]()+_0x272fe1(0x10e)+dayjs()[_0x272fe1(0xe8)](_0x272fe1(0x108));return(_0x2ff604['endsWith']('/')||_0x2ff604[_0x272fe1(0xf9)]('\x5c'))&&(_0x2ff604=_0x2ff604[_0x272fe1(0xdc)](0x0,_0x2ff604['length']-0x1)),_0x2ff604=_0x2ff604[_0x272fe1(0xf3)](/(\\|\/)/g,'/')[_0x272fe1(0xf3)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2ff604)&&fs[_0x272fe1(0xfc)](_0x2ff604,{'recursive':!![]}),await _0x89653f[_0x272fe1(0xe6)][_0x272fe1(0xe2)]((_0x2ff604+'/'+_0x16f7d9)[_0x272fe1(0xf3)](/(\\|\/)/g,'/')[_0x272fe1(0xf3)](/\/{2,}/g,'/')),{'filename':_0x16f7d9,'filepath':(_0x2ff604[_0x272fe1(0xdc)]((''+this['app'][_0x272fe1(0xde)]())[_0x272fe1(0xdb)])+'/'+_0x16f7d9)[_0x272fe1(0xf3)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0x4d5cbe,_0x248c9a){return await koasend(_0x4d5cbe,''+_0x248c9a);}};__decorate([(0x0,core_1[a12_0x2d9672(0xea)])(),__metadata(a12_0x2d9672(0x10f),Object)],ExcelService[a12_0x2d9672(0xf7)],'app',void 0x0),exports[a12_0x2d9672(0x10c)]=ExcelService=__decorate([(0x0,core_1[a12_0x2d9672(0x103)])(),(0x0,core_1[a12_0x2d9672(0xfd)])(core_1[a12_0x2d9672(0xf2)][a12_0x2d9672(0xee)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0x2dc329=a13_0x12d4;(function(_0x12ace3,_0xd8fd54){var _0x42d27a=a13_0x12d4,_0x536eb8=_0x12ace3();while(!![]){try{var _0x5d3da6=-parseInt(_0x42d27a(0x1b2))/0x1+-parseInt(_0x42d27a(0x1b9))/0x2*(parseInt(_0x42d27a(0x1b0))/0x3)+parseInt(_0x42d27a(0x1bb))/0x4+-parseInt(_0x42d27a(0x1b1))/0x5*(-parseInt(_0x42d27a(0x1c0))/0x6)+-parseInt(_0x42d27a(0x1ab))/0x7*(parseInt(_0x42d27a(0x1ad))/0x8)+-parseInt(_0x42d27a(0x1b5))/0x9*(parseInt(_0x42d27a(0x1af))/0xa)+-parseInt(_0x42d27a(0x1c2))/0xb*(-parseInt(_0x42d27a(0x1bc))/0xc);if(_0x5d3da6===_0xd8fd54)break;else _0x536eb8['push'](_0x536eb8['shift']());}catch(_0x487416){_0x536eb8['push'](_0x536eb8['shift']());}}}(a13_0xc262,0x47c2d));var a13_0x4526d9=(function(){var _0x1cf58c=!![];return function(_0x38837f,_0x2f0e17){var _0x414d71=_0x1cf58c?function(){if(_0x2f0e17){var _0x30aeb8=_0x2f0e17['apply'](_0x38837f,arguments);return _0x2f0e17=null,_0x30aeb8;}}:function(){};return _0x1cf58c=![],_0x414d71;};}()),a13_0xe99363=a13_0x4526d9(this,function(){var _0x2ad4e9=a13_0x12d4;return a13_0xe99363[_0x2ad4e9(0x1b4)]()[_0x2ad4e9(0x1c1)]('(((.+)+)+)+$')[_0x2ad4e9(0x1b4)]()[_0x2ad4e9(0x1b3)](a13_0xe99363)[_0x2ad4e9(0x1c1)](_0x2ad4e9(0x1be));});a13_0xe99363();function a13_0xc262(){var _0x37117c=['14LNPPxp','AppsConfigTmp','1275992WqaVNe','anncic-api:action','17830iqKLtD','414gxXvPE','2660vEQsuS','295664bwibwB','constructor','toString','2862TRZPIo','anncic-api:action:route','defineProperty','ACTION_KEY','8186RCmqJp','ACTION_ROUTE_KEY','303308wxmXJT','111396GGLdxu','__esModule','(((.+)+)+)+$','APPSCONFIG_KEY','1218eyQPQG','search','2200pIdTWR'];a13_0xc262=function(){return _0x37117c;};return a13_0xc262();}'use strict';Object[a13_0x2dc329(0x1b7)](exports,a13_0x2dc329(0x1bd),{'value':!![]}),exports[a13_0x2dc329(0x1ac)]=exports[a13_0x2dc329(0x1bf)]=exports[a13_0x2dc329(0x1ba)]=exports[a13_0x2dc329(0x1b8)]=void 0x0,exports[a13_0x2dc329(0x1b8)]=a13_0x2dc329(0x1ae),exports['ACTION_ROUTE_KEY']=a13_0x2dc329(0x1b6),exports['APPSCONFIG_KEY']='anncic-api:apps:config';class AppsConfigTmp{}function a13_0x12d4(_0x424e74,_0x68d1ac){var _0x20a2f3=a13_0xc262();return a13_0x12d4=function(_0xe99363,_0x4526d9){_0xe99363=_0xe99363-0x1ab;var _0xc2626d=_0x20a2f3[_0xe99363];return _0xc2626d;},a13_0x12d4(_0x424e74,_0x68d1ac);}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a14_0x2498ab=a14_0xe770;(function(_0x5a38be,_0x5b586c){var _0x287615=a14_0xe770,_0x5868c5=_0x5a38be();while(!![]){try{var _0x549d06=-parseInt(_0x287615(0xb6))/0x1+-parseInt(_0x287615(0xb3))/0x2+parseInt(_0x287615(0xd7))/0x3*(-parseInt(_0x287615(0xcb))/0x4)+-parseInt(_0x287615(0xd2))/0x5*(-parseInt(_0x287615(0xc2))/0x6)+parseInt(_0x287615(0xd4))/0x7*(parseInt(_0x287615(0xcc))/0x8)+parseInt(_0x287615(0xcf))/0x9*(parseInt(_0x287615(0xd6))/0xa)+parseInt(_0x287615(0xd3))/0xb;if(_0x549d06===_0x5b586c)break;else _0x5868c5['push'](_0x5868c5['shift']());}catch(_0x4f2af4){_0x5868c5['push'](_0x5868c5['shift']());}}}(a14_0x3ad6,0x2b1e7));var a14_0xa30bad=(function(){var _0x276036=!![];return function(_0x3ebdd7,_0x114742){var _0x798942=_0x276036?function(){var _0x54a59a=a14_0xe770;if(_0x114742){var _0x2ed58e=_0x114742[_0x54a59a(0xd5)](_0x3ebdd7,arguments);return _0x114742=null,_0x2ed58e;}}:function(){};return _0x276036=![],_0x798942;};}()),a14_0x490841=a14_0xa30bad(this,function(){var _0x132a78=a14_0xe770;return a14_0x490841[_0x132a78(0xca)]()['search'](_0x132a78(0xc1))[_0x132a78(0xca)]()['constructor'](a14_0x490841)[_0x132a78(0xc7)]('(((.+)+)+)+$');});a14_0x490841();'use strict';var __decorate=this&&this[a14_0x2498ab(0xb9)]||function(_0x4e914d,_0x351555,_0x19b047,_0x4424ba){var _0x4b0d0d=a14_0x2498ab,_0x7a49fc=arguments['length'],_0x158b7f=_0x7a49fc<0x3?_0x351555:_0x4424ba===null?_0x4424ba=Object[_0x4b0d0d(0xc9)](_0x351555,_0x19b047):_0x4424ba,_0x4f30ae;if(typeof Reflect==='object'&&typeof Reflect[_0x4b0d0d(0xbc)]===_0x4b0d0d(0xc4))_0x158b7f=Reflect['decorate'](_0x4e914d,_0x351555,_0x19b047,_0x4424ba);else{for(var _0x51fd43=_0x4e914d[_0x4b0d0d(0xbd)]-0x1;_0x51fd43>=0x0;_0x51fd43--)if(_0x4f30ae=_0x4e914d[_0x51fd43])_0x158b7f=(_0x7a49fc<0x3?_0x4f30ae(_0x158b7f):_0x7a49fc>0x3?_0x4f30ae(_0x351555,_0x19b047,_0x158b7f):_0x4f30ae(_0x351555,_0x19b047))||_0x158b7f;}return _0x7a49fc>0x3&&_0x158b7f&&Object['defineProperty'](_0x351555,_0x19b047,_0x158b7f),_0x158b7f;},__metadata=this&&this['__metadata']||function(_0xd9731c,_0x259062){var _0x2b357a=a14_0x2498ab;if(typeof Reflect==='object'&&typeof Reflect[_0x2b357a(0xcd)]===_0x2b357a(0xc4))return Reflect[_0x2b357a(0xcd)](_0xd9731c,_0x259062);};Object[a14_0x2498ab(0xbf)](exports,a14_0x2498ab(0xb4),{'value':!![]}),exports[a14_0x2498ab(0xb2)]=void 0x0;const validator_1=require(a14_0x2498ab(0xba));class PageDTO{}exports[a14_0x2498ab(0xb2)]=PageDTO,__decorate([(0x0,validator_1[a14_0x2498ab(0xc3)])('分页',validator_1[a14_0x2498ab(0xb5)][a14_0x2498ab(0xc0)]()['integer']()[a14_0x2498ab(0xbe)](0x1),a14_0x2498ab(0xd8)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0x2498ab(0xb7),void 0x0),__decorate([(0x0,validator_1[a14_0x2498ab(0xc3)])(a14_0x2498ab(0xda),validator_1[a14_0x2498ab(0xb5)][a14_0x2498ab(0xc0)]()[a14_0x2498ab(0xb8)]()['min'](0x1)),__metadata(a14_0x2498ab(0xd0),Number)],PageDTO['prototype'],a14_0x2498ab(0xdb),void 0x0),__decorate([(0x0,validator_1[a14_0x2498ab(0xc3)])(a14_0x2498ab(0xc8),validator_1['RuleType'][a14_0x2498ab(0xce)]()[a14_0x2498ab(0xc6)]()),__metadata(a14_0x2498ab(0xd0),String)],PageDTO['prototype'],a14_0x2498ab(0xbb),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x2498ab(0xd9),validator_1[a14_0x2498ab(0xb5)][a14_0x2498ab(0xc0)]()[a14_0x2498ab(0xb8)]()['valid'](0x0,0x1),a14_0x2498ab(0xd1)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0x2498ab(0xc5),void 0x0);function a14_0xe770(_0x57aef3,_0x313603){var _0x5c4c22=a14_0x3ad6();return a14_0xe770=function(_0x490841,_0xa30bad){_0x490841=_0x490841-0xb2;var _0x3ad62c=_0x5c4c22[_0x490841];return _0x3ad62c;},a14_0xe770(_0x57aef3,_0x313603);}function a14_0x3ad6(){var _0x263370=['integer','__decorate','@anncic-api/validator','_order','decorate','length','min','defineProperty','number','(((.+)+)+)+$','17826bLuHcJ','Rule','function','_isreverse','trim','search','排序方式','getOwnPropertyDescriptor','toString','244852mlvoQW','712BhSPgi','metadata','string','45dyFjHc','design:type','1:是;0:否','430IPxjAj','1101793glklxg','3143yWXuHX','apply','424420IcNvNr','3BdVWLH','第一页为1,第二页为2','是否倒序','分页数量','_size','PageDTO','453946ddpCUS','__esModule','RuleType','143039LUJnJj','_page'];a14_0x3ad6=function(){return _0x263370;};return a14_0x3ad6();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x4e6933=a15_0x5411;function a15_0x5c2e(){var _0x1a54ef=['909012AfMunk','apply','(((.+)+)+)+$','8kwjBre','defineProperty','139355QwlIot','InterceptTargetTmp','10321866sPRnVp','toString','6871540DxKleS','3230395WXonYr','40tXFgoQ','search','5617359zRKKQt','6KXkffc','35745MgZzty','anncic-api:intercept','constructor','4fdvhrM','__esModule','INTERCEPT_KEY'];a15_0x5c2e=function(){return _0x1a54ef;};return a15_0x5c2e();}(function(_0x18049d,_0x12f640){var _0x4c93f2=a15_0x5411,_0x582fa0=_0x18049d();while(!![]){try{var _0x21b43a=parseInt(_0x4c93f2(0x167))/0x1*(parseInt(_0x4c93f2(0x15b))/0x2)+parseInt(_0x4c93f2(0x15c))/0x3*(parseInt(_0x4c93f2(0x15f))/0x4)+parseInt(_0x4c93f2(0x158))/0x5*(-parseInt(_0x4c93f2(0x162))/0x6)+parseInt(_0x4c93f2(0x157))/0x7+parseInt(_0x4c93f2(0x165))/0x8*(parseInt(_0x4c93f2(0x169))/0x9)+-parseInt(_0x4c93f2(0x156))/0xa+parseInt(_0x4c93f2(0x15a))/0xb;if(_0x21b43a===_0x12f640)break;else _0x582fa0['push'](_0x582fa0['shift']());}catch(_0x348c58){_0x582fa0['push'](_0x582fa0['shift']());}}}(a15_0x5c2e,0x9ea6e));var a15_0x218ae2=(function(){var _0x2b65d2=!![];return function(_0x340cc4,_0x4fbf3d){var _0x289f35=_0x2b65d2?function(){var _0x1312e4=a15_0x5411;if(_0x4fbf3d){var _0x33f905=_0x4fbf3d[_0x1312e4(0x163)](_0x340cc4,arguments);return _0x4fbf3d=null,_0x33f905;}}:function(){};return _0x2b65d2=![],_0x289f35;};}()),a15_0xa27c9b=a15_0x218ae2(this,function(){var _0xc65ee9=a15_0x5411;return a15_0xa27c9b[_0xc65ee9(0x16a)]()[_0xc65ee9(0x159)](_0xc65ee9(0x164))[_0xc65ee9(0x16a)]()[_0xc65ee9(0x15e)](a15_0xa27c9b)[_0xc65ee9(0x159)]('(((.+)+)+)+$');});function a15_0x5411(_0x5dfcfc,_0x2837e2){var _0x3202b8=a15_0x5c2e();return a15_0x5411=function(_0xa27c9b,_0x218ae2){_0xa27c9b=_0xa27c9b-0x156;var _0x5c2efe=_0x3202b8[_0xa27c9b];return _0x5c2efe;},a15_0x5411(_0x5dfcfc,_0x2837e2);}a15_0xa27c9b();'use strict';Object[a15_0x4e6933(0x166)](exports,a15_0x4e6933(0x160),{'value':!![]}),exports[a15_0x4e6933(0x168)]=exports[a15_0x4e6933(0x161)]=void 0x0,exports['INTERCEPT_KEY']=a15_0x4e6933(0x15d);class InterceptTargetTmp{}exports[a15_0x4e6933(0x168)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.2.
|
|
21
|
-
"@anncic-api/core": "^3.2.
|
|
22
|
-
"@anncic-api/event": "^3.2.
|
|
23
|
-
"@anncic-api/typeorm": "^3.2.
|
|
24
|
-
"@anncic-api/validator": "^3.2.
|
|
20
|
+
"@anncic-api/cache": "^3.2.14",
|
|
21
|
+
"@anncic-api/core": "^3.2.14",
|
|
22
|
+
"@anncic-api/event": "^3.2.14",
|
|
23
|
+
"@anncic-api/typeorm": "^3.2.14",
|
|
24
|
+
"@anncic-api/validator": "^3.2.14",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.2.
|
|
29
|
+
"anncic-apihelper": "^3.2.14",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "61959aea3609a9f62f8285809317a9ab95697041"
|
|
39
39
|
}
|