anncic-api 1.5.0 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/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
|
-
var
|
|
1
|
+
var a0_0x4e6dd9=a0_0xd8f0;(function(_0x12dc56,_0x4b6ac3){var _0xae93d5=a0_0xd8f0,_0x4e0f99=_0x12dc56();while(!![]){try{var _0x31850a=-parseInt(_0xae93d5(0x1ec))/0x1*(-parseInt(_0xae93d5(0x1ee))/0x2)+parseInt(_0xae93d5(0x1ef))/0x3+-parseInt(_0xae93d5(0x1e9))/0x4+-parseInt(_0xae93d5(0x1f8))/0x5+-parseInt(_0xae93d5(0x1ea))/0x6*(parseInt(_0xae93d5(0x1f1))/0x7)+parseInt(_0xae93d5(0x1e5))/0x8*(-parseInt(_0xae93d5(0x1fa))/0x9)+-parseInt(_0xae93d5(0x1e6))/0xa*(-parseInt(_0xae93d5(0x1f9))/0xb);if(_0x31850a===_0x4b6ac3)break;else _0x4e0f99['push'](_0x4e0f99['shift']());}catch(_0x1bbea2){_0x4e0f99['push'](_0x4e0f99['shift']());}}}(a0_0x2313,0xb9c2b));function a0_0xd8f0(_0x424bbf,_0x138816){var _0x27ed92=a0_0x2313();return a0_0xd8f0=function(_0x895404,_0x505fb3){_0x895404=_0x895404-0x1e4;var _0x2313e5=_0x27ed92[_0x895404];return _0x2313e5;},a0_0xd8f0(_0x424bbf,_0x138816);}var a0_0x505fb3=(function(){var _0x1e0584=!![];return function(_0x1b3645,_0x40bc78){var _0x27c45c=_0x1e0584?function(){if(_0x40bc78){var _0x4d4864=_0x40bc78['apply'](_0x1b3645,arguments);return _0x40bc78=null,_0x4d4864;}}:function(){};return _0x1e0584=![],_0x27c45c;};}()),a0_0x895404=a0_0x505fb3(this,function(){var _0x28dbbf=a0_0xd8f0;return a0_0x895404[_0x28dbbf(0x1f0)]()[_0x28dbbf(0x1ed)](_0x28dbbf(0x1e7))[_0x28dbbf(0x1f0)]()[_0x28dbbf(0x1f4)](a0_0x895404)['search'](_0x28dbbf(0x1e7));});a0_0x895404();'use strict';Object[a0_0x4e6dd9(0x1f2)](exports,a0_0x4e6dd9(0x1f5),{'value':!![]}),exports[a0_0x4e6dd9(0x1f6)]=_0x317169=>{var _0x5e81e2=a0_0x4e6dd9;return{'apitest':!![],'keys':_0x317169[_0x5e81e2(0x1f3)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':['json',_0x5e81e2(0x1e4),_0x5e81e2(0x1e8),'xml'],'formLimit':_0x5e81e2(0x1f7),'jsonLimit':_0x5e81e2(0x1f7),'textLimit':_0x5e81e2(0x1f7),'xmlLimit':_0x5e81e2(0x1f7)},'upload':{'tmpdir':_0x317169[_0x5e81e2(0x1eb)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};function a0_0x2313(){var _0x340bce=['1420qKIXyj','(((.+)+)+)+$','text','3169504jJpExY','6tjSHgr','appDir','8mxkpEQ','search','21088abyMin','1098819pAMnEj','toString','435449KYplqP','defineProperty','name','constructor','__esModule','default','20mb','7019140cTlSik','272063HHwTub','81wvztVG','form','838600WhOvTC'];a0_0x2313=function(){return _0x340bce;};return a0_0x2313();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x17d637=a1_0x5dac;function a1_0x5dac(_0x3ca454,_0x3aa575){var _0x414e48=a1_0x54a9();return a1_0x5dac=function(_0x2a77ea,_0xf07bd9){_0x2a77ea=_0x2a77ea-0x72;var _0x54a96b=_0x414e48[_0x2a77ea];return _0x54a96b;},a1_0x5dac(_0x3ca454,_0x3aa575);}(function(_0x360ca3,_0x477547){var _0x3b53b7=a1_0x5dac,_0x4fca51=_0x360ca3();while(!![]){try{var _0x3fe27d=-parseInt(_0x3b53b7(0x7d))/0x1*(parseInt(_0x3b53b7(0x79))/0x2)+parseInt(_0x3b53b7(0x7b))/0x3*(-parseInt(_0x3b53b7(0x76))/0x4)+parseInt(_0x3b53b7(0x80))/0x5+parseInt(_0x3b53b7(0x74))/0x6*(parseInt(_0x3b53b7(0x7f))/0x7)+parseInt(_0x3b53b7(0x7e))/0x8+-parseInt(_0x3b53b7(0x72))/0x9*(parseInt(_0x3b53b7(0x73))/0xa)+parseInt(_0x3b53b7(0x77))/0xb;if(_0x3fe27d===_0x477547)break;else _0x4fca51['push'](_0x4fca51['shift']());}catch(_0x5ee889){_0x4fca51['push'](_0x4fca51['shift']());}}}(a1_0x54a9,0x557b6));function a1_0x54a9(){var _0xb0c061=['110fbWNxV','12LEZqpx','search','596PPHsPd','5841726qsgpwF','toString','1064yVDfTg','__esModule','8673jEcleg','(((.+)+)+)+$','910QHlxRP','3895688PIwSEm','1955779wIjtxT','1030250DfJYBB','423702eIzCLw'];a1_0x54a9=function(){return _0xb0c061;};return a1_0x54a9();}var a1_0xf07bd9=(function(){var _0x284bba=!![];return function(_0x3e81e8,_0x5163ba){var _0x4938b6=_0x284bba?function(){if(_0x5163ba){var _0x57f863=_0x5163ba['apply'](_0x3e81e8,arguments);return _0x5163ba=null,_0x57f863;}}:function(){};return _0x284bba=![],_0x4938b6;};}()),a1_0x2a77ea=a1_0xf07bd9(this,function(){var _0x381417=a1_0x5dac;return a1_0x2a77ea[_0x381417(0x78)]()[_0x381417(0x75)](_0x381417(0x7c))[_0x381417(0x78)]()['constructor'](a1_0x2a77ea)[_0x381417(0x75)](_0x381417(0x7c));});a1_0x2a77ea();'use strict';Object['defineProperty'](exports,a1_0x17d637(0x7a),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x8bb00c=a2_0x49ef;(function(_0x2b9537,_0x18e3f6){const _0x477568=a2_0x49ef,_0x25d160=_0x2b9537();while(!![]){try{const _0x492989=parseInt(_0x477568(0xd8))/0x1+parseInt(_0x477568(0x75))/0x2+-parseInt(_0x477568(0xbc))/0x3+parseInt(_0x477568(0xda))/0x4+parseInt(_0x477568(0x90))/0x5+parseInt(_0x477568(0xd7))/0x6*(parseInt(_0x477568(0xb3))/0x7)+parseInt(_0x477568(0xca))/0x8*(-parseInt(_0x477568(0xb0))/0x9);if(_0x492989===_0x18e3f6)break;else _0x25d160['push'](_0x25d160['shift']());}catch(_0x11f3c6){_0x25d160['push'](_0x25d160['shift']());}}}(a2_0x2a18,0xd040a));const a2_0x46174b=(function(){let _0x1be252=!![];return function(_0x5cebe9,_0x3bd111){const _0x1f6655=_0x1be252?function(){const _0x1c3173=a2_0x49ef;if(_0x3bd111){const _0x3df178=_0x3bd111[_0x1c3173(0xa1)](_0x5cebe9,arguments);return _0x3bd111=null,_0x3df178;}}:function(){};return _0x1be252=![],_0x1f6655;};}()),a2_0x2e0a00=a2_0x46174b(this,function(){const _0x237731=a2_0x49ef;return a2_0x2e0a00[_0x237731(0xd3)]()[_0x237731(0xc0)](_0x237731(0xd5))[_0x237731(0xd3)]()[_0x237731(0xaa)](a2_0x2e0a00)[_0x237731(0xc0)](_0x237731(0xd5));});a2_0x2e0a00();'use strict';var __decorate=this&&this['__decorate']||function(_0x1b1d7d,_0x5c19af,_0x51b411,_0x48d2e7){const _0x299ac9=a2_0x49ef;var _0x37ec03=arguments['length'],_0x3fed28=_0x37ec03<0x3?_0x5c19af:_0x48d2e7===null?_0x48d2e7=Object[_0x299ac9(0xc5)](_0x5c19af,_0x51b411):_0x48d2e7,_0x8fe53a;if(typeof Reflect===_0x299ac9(0x92)&&typeof Reflect[_0x299ac9(0xc6)]==='function')_0x3fed28=Reflect[_0x299ac9(0xc6)](_0x1b1d7d,_0x5c19af,_0x51b411,_0x48d2e7);else{for(var _0x2213db=_0x1b1d7d['length']-0x1;_0x2213db>=0x0;_0x2213db--)if(_0x8fe53a=_0x1b1d7d[_0x2213db])_0x3fed28=(_0x37ec03<0x3?_0x8fe53a(_0x3fed28):_0x37ec03>0x3?_0x8fe53a(_0x5c19af,_0x51b411,_0x3fed28):_0x8fe53a(_0x5c19af,_0x51b411))||_0x3fed28;}return _0x37ec03>0x3&&_0x3fed28&&Object[_0x299ac9(0xae)](_0x5c19af,_0x51b411,_0x3fed28),_0x3fed28;},__metadata=this&&this['__metadata']||function(_0x511837,_0x5449c5){const _0x34aa53=a2_0x49ef;if(typeof Reflect===_0x34aa53(0x92)&&typeof Reflect[_0x34aa53(0xac)]===_0x34aa53(0xaf))return Reflect[_0x34aa53(0xac)](_0x511837,_0x5449c5);};Object[a2_0x8bb00c(0xae)](exports,a2_0x8bb00c(0xe6),{'value':!![]}),exports[a2_0x8bb00c(0x8a)]=void 0x0;function a2_0x49ef(_0x5eb871,_0x5563da){const _0x14494a=a2_0x2a18();return a2_0x49ef=function(_0x2e0a00,_0x46174b){_0x2e0a00=_0x2e0a00-0x6a;let _0x2a18b5=_0x14494a[_0x2e0a00];return _0x2a18b5;},a2_0x49ef(_0x5eb871,_0x5563da);}function a2_0x2a18(){const _0xeb84b6=['upload','_matchedRoute','device','./service/ApiService','attachment','constructor','statSync','metadata','@anncic-api/cache','defineProperty','function','9noTEXC','target','@midwayjs/i18n','259DlegDX','decorator','anncicapi','Types','anncic-apihelper','forEach','@anncic-api/validator','/apps','mkdirSync','2135964GvCSJd','devices','@midwayjs/koa','@anncic-api/event','search','assign','tmpdir','args','MidwayEnvironmentService','getOwnPropertyDescriptor','decorate','hanlderApplications','checksign','HEADERS_SIGNATURE','15100128KXCJUi','Anncic-api\x20static-file\x20:\x20mkdir\x20','Configuration','.log','isDevelopmentEnvironment','request','getClassMetadata','./config/config.production','midwayLogger','toString','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','(((.+)+)+)+$','log','71130LZGZqp','898538seyUxo','prototype','3406048xLqbAy','context','isArray','getBaseDir','getApplications','/runtime','design:type','koa','DEFAULT','getAsync','isFunction','match','__esModule','@midwayjs/core','loggerConfig','isNull','/apps/','string','./config/config.default','MidwayConfigService','keys','method','getAppDir','defaultsDeep','文件不存在','checkConfigKeys','toLowerCase','2318058KDNEIo','./types/action','headers','ApiService','./types/intercept','Inject','filterConfig','requestContext','REQUEST_OBJ_CTX_KEY','addObject','body','bodyXml','INTERCEPT_KEY','ApiError','environment','registerMethodHandler','intercept','MidwayDecoratorService','config','input','@midwayjs/static-file','CustomConfiguration','-log','apimit','application','handler','dir','523960ylXaVy','dirs','object','staticFile','App','default','@anncic-api/typeorm','/runtime/apps-','clients','readdirSync','anncic-api','@anncic-api/core','proceed','app','./exception/ApiError','length','isDirectory','apply','getConfiguration','isClass','handlerActionRoute'];a2_0x2a18=function(){return _0xeb84b6;};return a2_0x2a18();}const core_1=require('@midwayjs/core'),core_2=require(a2_0x8bb00c(0xe7)),ApiError_1=require(a2_0x8bb00c(0x9e)),ApiService_1=require(a2_0x8bb00c(0xa8)),action_1=require(a2_0x8bb00c(0x76)),intercept_1=require(a2_0x8bb00c(0x79)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x8bb00c(0xbe)),i18n=require(a2_0x8bb00c(0xb2)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x8bb00c(0x89)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x8bb00c(0x6c)),ConfigProduction=require(a2_0x8bb00c(0xd1)),anncic=require(a2_0x8bb00c(0x9b)),anncicCache=require(a2_0x8bb00c(0xad)),anncicEvent=require(a2_0x8bb00c(0xbf)),anncicTypeorm=require(a2_0x8bb00c(0x96)),anncicValidator=require(a2_0x8bb00c(0xb9)),anncicHelper=require(a2_0x8bb00c(0xb7));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x457b8f=a2_0x8bb00c;await this[_0x457b8f(0x7b)](),await this[_0x457b8f(0xe8)](),await this['checkConfigKeys'](),await this[_0x457b8f(0xa4)](),await this[_0x457b8f(0xc7)]();}async[a2_0x8bb00c(0x73)](){}async[a2_0x8bb00c(0xa4)](){const _0x47980c=a2_0x8bb00c,_0x7fa399=(0x0,core_1[_0x47980c(0xd0)])(intercept_1[_0x47980c(0x81)],intercept_1['InterceptTargetTmp'])||{};this[_0x47980c(0xb4)][_0x47980c(0x84)](action_1['ACTION_ROUTE_KEY'],_0x3133b4=>{const _0x475a2c=_0x47980c,_0x4d2560=_0x3133b4[_0x475a2c(0xac)];return{'before':async _0x338896=>{const _0x1f7482=_0x475a2c;var _0xd4411a,_0x385b90;const _0x3397d4=(_0xd4411a=_0x338896===null||_0x338896===void 0x0?void 0x0:_0x338896[_0x1f7482(0xb1)])===null||_0xd4411a===void 0x0?void 0x0:_0xd4411a[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x3397d4&&(_0x4d2560===null||_0x4d2560===void 0x0?void 0x0:_0x4d2560['apimit'])){if(!this[_0x1f7482(0x78)][_0x1f7482(0xc8)]((_0x385b90=_0x3397d4===null||_0x3397d4===void 0x0?void 0x0:_0x3397d4[_0x1f7482(0xcf)])===null||_0x385b90===void 0x0?void 0x0:_0x385b90['headers']))throw new AnnError(ApiError_1[_0x1f7482(0x82)][_0x1f7482(0xc9)]);}},'around':async _0x261d8e=>{const _0x30904f=_0x475a2c;var _0x165004,_0x3e2a00,_0x470911;const _0x2a8da2=(_0x165004=_0x261d8e===null||_0x261d8e===void 0x0?void 0x0:_0x261d8e['target'])===null||_0x165004===void 0x0?void 0x0:_0x165004[core_2[_0x30904f(0x7d)]];if(_0x2a8da2&&(_0x4d2560===null||_0x4d2560===void 0x0?void 0x0:_0x4d2560[_0x30904f(0x8c)])&&((_0x4d2560===null||_0x4d2560===void 0x0?void 0x0:_0x4d2560[_0x30904f(0x85)])||typeof(_0x4d2560===null||_0x4d2560===void 0x0?void 0x0:_0x4d2560[_0x30904f(0x85)])=='undefined')){if(((_0x3e2a00=_0x2a8da2[_0x30904f(0x77)])===null||_0x3e2a00===void 0x0?void 0x0:_0x3e2a00[_0x30904f(0xa7)])&&((_0x470911=_0x7fa399===null||_0x7fa399===void 0x0?void 0x0:_0x7fa399[_0x2a8da2[_0x30904f(0x77)][_0x30904f(0xa7)]])===null||_0x470911===void 0x0?void 0x0:_0x470911[_0x30904f(0x9f)])>0x0)for(const _0x30eb1a of _0x7fa399[_0x2a8da2[_0x30904f(0x77)][_0x30904f(0xa7)]]||[]){if(core_1[_0x30904f(0xb6)][_0x30904f(0xa3)](_0x30eb1a)){const _0x3cc9d9=await _0x2a8da2[_0x30904f(0x7c)][_0x30904f(0xe3)](_0x30eb1a);typeof(_0x3cc9d9===null||_0x3cc9d9===void 0x0?void 0x0:_0x3cc9d9[_0x30904f(0xe5)])==_0x30904f(0xaf)?await _0x3cc9d9['match'](_0x2a8da2,typeof(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2['method'])==_0x30904f(0x6b)&&(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)])?_0x2a8da2[_0x30904f(0x6f)][_0x30904f(0x74)]()+'@'+(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)]):undefined,_0x4d2560)&&await _0x3cc9d9[_0x30904f(0x8e)](_0x2a8da2,typeof(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0x6f)])==_0x30904f(0x6b)&&(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)])?_0x2a8da2[_0x30904f(0x6f)]['toLowerCase']()+'@'+(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)]):undefined,_0x4d2560):await _0x3cc9d9[_0x30904f(0x8e)](_0x2a8da2,typeof(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0x6f)])==_0x30904f(0x6b)&&(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)])?_0x2a8da2[_0x30904f(0x6f)][_0x30904f(0x74)]()+'@'+(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)]):undefined,_0x4d2560);}else core_1[_0x30904f(0xb6)][_0x30904f(0xe4)](_0x30eb1a)&&await _0x30eb1a(_0x2a8da2,typeof(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0x6f)])==_0x30904f(0x6b)&&(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2['_matchedRoute'])?_0x2a8da2[_0x30904f(0x6f)][_0x30904f(0x74)]()+'@'+(_0x2a8da2===null||_0x2a8da2===void 0x0?void 0x0:_0x2a8da2[_0x30904f(0xa6)]):undefined,_0x4d2560);}}return await _0x261d8e[_0x30904f(0x9c)](..._0x261d8e[_0x30904f(0xc3)]);},'afterThrow':(_0x521ae2,_0x3527e5)=>{throw _0x3527e5;}};});}async[a2_0x8bb00c(0xc7)](){const _0x3dde1b=a2_0x8bb00c;this[_0x3dde1b(0x8d)][_0x3dde1b(0xde)]([_0x3dde1b(0xe1)])[_0x3dde1b(0xb8)](_0x611dd7=>{const _0x2d2a27=_0x3dde1b;(_0x611dd7===null||_0x611dd7===void 0x0?void 0x0:_0x611dd7[_0x2d2a27(0xdb)])&&Object['defineProperties'](_0x611dd7['context'],{'ok':{'value':function(_0x4ac6ba,_0x426f9c,_0x17eb55=0x0){return{'code':_0x17eb55,'data':_0x4ac6ba,'extra':_0x426f9c};}},'input':{'value':function(_0x1f0037,_0x1012b8){const _0x182611=_0x2d2a27;var _0x5cb1a1;const _0x3bd347=lodash[_0x182611(0x71)]({},this[_0x182611(0xcf)][_0x182611(0x7f)]||this[_0x182611(0xcf)][((_0x5cb1a1=config===null||config===void 0x0?void 0x0:config[_0x182611(0x80)])===null||_0x5cb1a1===void 0x0?void 0x0:_0x5cb1a1['key'])||_0x182611(0x7f)]||{},this[_0x182611(0xcf)]['query']||{});return _0x1f0037?lodash['get'](_0x3bd347,_0x1f0037,_0x1012b8):_0x3bd347;}},'when':{'value':async function(_0x3aa9df,_0x21b88a){const _0x29cb40=_0x2d2a27,_0x1ee256=this[_0x29cb40(0x88)](_0x3aa9df,null);if(!lodash[_0x29cb40(0xe9)](_0x1ee256))return await _0x21b88a(_0x1ee256);}},'only':{'value':function(_0x1ffa89){const _0x89a017=_0x2d2a27,_0x2915a6={};for(let _0x5cadfd=0x0;_0x5cadfd<_0x1ffa89[_0x89a017(0x9f)];_0x5cadfd++){lodash[_0x89a017(0xdc)](_0x1ffa89[_0x5cadfd])&&_0x1ffa89[_0x5cadfd][_0x89a017(0x9f)]>0x0&&lodash['isString'](_0x1ffa89[_0x5cadfd][0x0])&&(_0x2915a6[_0x1ffa89[_0x5cadfd][0x0]]=this['input'](_0x1ffa89[_0x5cadfd][0x0],_0x1ffa89[_0x5cadfd][_0x89a017(0x9f)]>0x1?_0x1ffa89[_0x5cadfd][0x1]:null));}return _0x2915a6;}},'koasend':{'value':function(_0x38db93,_0x2574e1){const _0x6154fd=_0x2d2a27;if(!fs['existsSync'](this['app'][_0x6154fd(0x70)]()+'/'+_0x38db93))return _0x6154fd(0x72);return this[_0x6154fd(0xa9)](_0x2574e1||_0x38db93),koasend(this,_0x38db93);}}});});}async[a2_0x8bb00c(0xe8)](){const _0x54b6cb=a2_0x8bb00c;var _0x50bfdf,_0x1e3c1a;if(fs['existsSync'](this[_0x54b6cb(0x9d)]['getBaseDir']()+_0x54b6cb(0xba))&&fs[_0x54b6cb(0xab)](this[_0x54b6cb(0x9d)]['getBaseDir']()+_0x54b6cb(0xba))['isDirectory']()){const _0x3fa2d5=this[_0x54b6cb(0x87)][_0x54b6cb(0xa2)](),_0x456878=((_0x50bfdf=_0x3fa2d5===null||_0x3fa2d5===void 0x0?void 0x0:_0x3fa2d5[_0x54b6cb(0xd2)])===null||_0x50bfdf===void 0x0?void 0x0:_0x50bfdf['clients'])||{};for(const _0x13190d of fs[_0x54b6cb(0x99)](this[_0x54b6cb(0x9d)][_0x54b6cb(0xdd)]()+'/apps')){if(!fs[_0x54b6cb(0xab)](this[_0x54b6cb(0x9d)]['getBaseDir']()+_0x54b6cb(0x6a)+_0x13190d)[_0x54b6cb(0xa0)]())continue;if(_0x456878===null||_0x456878===void 0x0?void 0x0:_0x456878[_0x13190d])continue;_0x456878[_0x13190d]=Object[_0x54b6cb(0xc1)]({},((_0x1e3c1a=_0x3fa2d5===null||_0x3fa2d5===void 0x0?void 0x0:_0x3fa2d5[_0x54b6cb(0xd2)])===null||_0x1e3c1a===void 0x0?void 0x0:_0x1e3c1a[_0x54b6cb(0x95)])||{'maxSize':'1m','dir':this[_0x54b6cb(0x9d)][_0x54b6cb(0x70)]()+_0x54b6cb(0xdf)},{'enableJSON':!![],'enableConsole':this[_0x54b6cb(0x83)][_0x54b6cb(0xce)](),'fileLogName':_0x13190d+_0x54b6cb(0xcd),'dir':this['app'][_0x54b6cb(0x70)]()+_0x54b6cb(0x97)+_0x13190d+_0x54b6cb(0x8b)});}Object[_0x54b6cb(0x6e)](_0x456878)['length']>0x0&&(!_0x3fa2d5[_0x54b6cb(0xd2)]&&(_0x3fa2d5['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x54b6cb(0x9d)][_0x54b6cb(0x70)]()+_0x54b6cb(0xdf)}}),_0x3fa2d5[_0x54b6cb(0xd2)][_0x54b6cb(0x98)]=_0x456878),this[_0x54b6cb(0x87)]['addObject'](_0x3fa2d5);}}async['filterConfig'](){const _0x3561fe=a2_0x8bb00c;var _0x5cc9c4,_0x2e5446,_0x3395bf,_0x3986a8,_0x503f6a,_0x16cb9c;const _0x220936=this[_0x3561fe(0x87)][_0x3561fe(0xa2)]();((_0x2e5446=(_0x5cc9c4=_0x220936===null||_0x220936===void 0x0?void 0x0:_0x220936[_0x3561fe(0xb5)])===null||_0x5cc9c4===void 0x0?void 0x0:_0x5cc9c4[_0x3561fe(0xbd)])===null||_0x2e5446===void 0x0?void 0x0:_0x2e5446[_0x3561fe(0xe2)])&&Object['keys'](_0x220936[_0x3561fe(0xb5)]['devices'])[_0x3561fe(0x9f)]>0x1&&delete _0x220936[_0x3561fe(0xb5)][_0x3561fe(0xbd)][_0x3561fe(0xe2)];if((_0x3395bf=_0x220936===null||_0x220936===void 0x0?void 0x0:_0x220936['staticFile'])===null||_0x3395bf===void 0x0?void 0x0:_0x3395bf[_0x3561fe(0x91)])for(const _0x2d612b in _0x220936['staticFile'][_0x3561fe(0x91)]){((_0x3986a8=_0x220936['staticFile']['dirs'][_0x2d612b])===null||_0x3986a8===void 0x0?void 0x0:_0x3986a8[_0x3561fe(0x8f)])&&typeof((_0x503f6a=_0x220936[_0x3561fe(0x93)][_0x3561fe(0x91)][_0x2d612b])===null||_0x503f6a===void 0x0?void 0x0:_0x503f6a[_0x3561fe(0x8f)])==_0x3561fe(0x6b)&&!fs['existsSync'](_0x220936[_0x3561fe(0x93)][_0x3561fe(0x91)][_0x2d612b][_0x3561fe(0x8f)])&&(fs[_0x3561fe(0xbb)](_0x220936[_0x3561fe(0x93)][_0x3561fe(0x91)][_0x2d612b]['dir'],{'recursive':!![]}),console[_0x3561fe(0xd6)](_0x3561fe(0xcb)+_0x220936['staticFile'][_0x3561fe(0x91)][_0x2d612b][_0x3561fe(0x8f)]));}((_0x16cb9c=_0x220936===null||_0x220936===void 0x0?void 0x0:_0x220936[_0x3561fe(0xa5)])===null||_0x16cb9c===void 0x0?void 0x0:_0x16cb9c['tmpdir'])&&!fs['existsSync'](_0x220936['upload'][_0x3561fe(0xc2)])&&(fs[_0x3561fe(0xbb)](_0x220936[_0x3561fe(0xa5)]['tmpdir'],{'recursive':!![]}),console[_0x3561fe(0xd6)](_0x3561fe(0xd4)+_0x220936[_0x3561fe(0xa5)][_0x3561fe(0xc2)])),this['config'][_0x3561fe(0x7e)](_0x220936);}};__decorate([(0x0,core_1[a2_0x8bb00c(0x94)])(),__metadata(a2_0x8bb00c(0xe0),Object)],CustomConfiguration[a2_0x8bb00c(0xd9)],a2_0x8bb00c(0x9d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x8bb00c(0x6d)])],CustomConfiguration[a2_0x8bb00c(0xd9)],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x8bb00c(0xe0),core_2[a2_0x8bb00c(0x86)])],CustomConfiguration[a2_0x8bb00c(0xd9)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x8bb00c(0x7a)])(),__metadata(a2_0x8bb00c(0xe0),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x8bb00c(0xd9)],a2_0x8bb00c(0x8d),void 0x0),__decorate([(0x0,core_1[a2_0x8bb00c(0x7a)])(),__metadata('design:type',core_2[a2_0x8bb00c(0xc4)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x8bb00c(0xd9)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x8bb00c(0xcc)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x8bb00c(0x9a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x8bb00c(0x8a)]=CustomConfiguration;
|
|
1
|
+
const a2_0x4a21ae=a2_0x2fed;(function(_0x1c4264,_0x5e9820){const _0x176ad1=a2_0x2fed,_0x4c8f91=_0x1c4264();while(!![]){try{const _0x129565=parseInt(_0x176ad1(0xec))/0x1+-parseInt(_0x176ad1(0xa6))/0x2+parseInt(_0x176ad1(0xc7))/0x3+-parseInt(_0x176ad1(0xa4))/0x4*(parseInt(_0x176ad1(0x8b))/0x5)+parseInt(_0x176ad1(0xc6))/0x6*(-parseInt(_0x176ad1(0xb0))/0x7)+parseInt(_0x176ad1(0xef))/0x8*(-parseInt(_0x176ad1(0xd0))/0x9)+parseInt(_0x176ad1(0xb5))/0xa;if(_0x129565===_0x5e9820)break;else _0x4c8f91['push'](_0x4c8f91['shift']());}catch(_0x3e1991){_0x4c8f91['push'](_0x4c8f91['shift']());}}}(a2_0x137d,0x5321c));const a2_0x50ff72=(function(){let _0x35a6f3=!![];return function(_0x4b3540,_0x39df80){const _0x4f217c=_0x35a6f3?function(){const _0x507597=a2_0x2fed;if(_0x39df80){const _0x5cecbd=_0x39df80[_0x507597(0x7b)](_0x4b3540,arguments);return _0x39df80=null,_0x5cecbd;}}:function(){};return _0x35a6f3=![],_0x4f217c;};}()),a2_0x4c29ca=a2_0x50ff72(this,function(){const _0x418f0=a2_0x2fed;return a2_0x4c29ca[_0x418f0(0x90)]()[_0x418f0(0xd3)](_0x418f0(0x84))[_0x418f0(0x90)]()[_0x418f0(0x99)](a2_0x4c29ca)[_0x418f0(0xd3)](_0x418f0(0x84));});a2_0x4c29ca();'use strict';var __decorate=this&&this[a2_0x4a21ae(0x83)]||function(_0x51bb37,_0x582ad9,_0x2ab79f,_0x3a833e){const _0x31b333=a2_0x4a21ae;var _0x3fea35=arguments[_0x31b333(0xb8)],_0x31efb6=_0x3fea35<0x3?_0x582ad9:_0x3a833e===null?_0x3a833e=Object[_0x31b333(0xe1)](_0x582ad9,_0x2ab79f):_0x3a833e,_0x3e7794;if(typeof Reflect===_0x31b333(0xcb)&&typeof Reflect['decorate']==='function')_0x31efb6=Reflect[_0x31b333(0xde)](_0x51bb37,_0x582ad9,_0x2ab79f,_0x3a833e);else{for(var _0xa5206c=_0x51bb37[_0x31b333(0xb8)]-0x1;_0xa5206c>=0x0;_0xa5206c--)if(_0x3e7794=_0x51bb37[_0xa5206c])_0x31efb6=(_0x3fea35<0x3?_0x3e7794(_0x31efb6):_0x3fea35>0x3?_0x3e7794(_0x582ad9,_0x2ab79f,_0x31efb6):_0x3e7794(_0x582ad9,_0x2ab79f))||_0x31efb6;}return _0x3fea35>0x3&&_0x31efb6&&Object['defineProperty'](_0x582ad9,_0x2ab79f,_0x31efb6),_0x31efb6;},__metadata=this&&this[a2_0x4a21ae(0xdd)]||function(_0x123585,_0xa17a78){const _0x190ba7=a2_0x4a21ae;if(typeof Reflect===_0x190ba7(0xcb)&&typeof Reflect[_0x190ba7(0xd1)]===_0x190ba7(0xda))return Reflect['metadata'](_0x123585,_0xa17a78);};Object[a2_0x4a21ae(0xb3)](exports,'__esModule',{'value':!![]}),exports[a2_0x4a21ae(0xd7)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4a21ae(0xaa)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x4a21ae(0xe2)),intercept_1=require(a2_0x4a21ae(0xb4)),fs=require('fs'),koasend=require('koa-send'),koa=require('@midwayjs/koa'),i18n=require(a2_0x4a21ae(0xa2)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x4a21ae(0xe8)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x4a21ae(0xdf)),ConfigProduction=require(a2_0x4a21ae(0xe3)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x4a21ae(0xd8)),anncicEvent=require(a2_0x4a21ae(0x94)),anncicTypeorm=require(a2_0x4a21ae(0xeb)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x4a21ae(0x78));function a2_0x137d(){const _0x50a417=['request','constructor','isDirectory','dirs','_matchedRoute','onReady','dir','isDevelopmentEnvironment','Anncic-api\x20static-file\x20:\x20mkdir\x20','toLowerCase','@midwayjs/i18n','target','1240LHSxyW','/apps/','1043466vQQUmd','filterConfig','method','anncic-api','./exception/ApiError','文件不存在','input','getConfiguration','/runtime','statSync','1522143cOmGdZ','keys','isArray','defineProperty','./types/intercept','21565360PAhwGX','Configuration','device','length','environment','bodyXml','ApiService','App','existsSync','attachment','headers','query','clients','app','handlerActionRoute','InterceptTargetTmp','MidwayDecoratorService','18WAPvqd','314889LDayUn','/apps','Inject','getAsync','object','decorator','isFunction','addObject','defaultsDeep','9CSnaCs','metadata','apimit','search','isClass','string','MidwayEnvironmentService','CustomConfiguration','@anncic-api/cache','getAppDir','function','application','prototype','__metadata','decorate','./config/config.default','staticFile','getOwnPropertyDescriptor','./types/action','./config/config.production','tmpdir','intercept','isNull','checkConfigKeys','@midwayjs/static-file','upload','requestContext','@anncic-api/typeorm','141840CiMxax','midwayLogger','readdirSync','4486168KiZxsI','INTERCEPT_KEY','assign','hanlderApplications','anncic-apihelper','Types','body','apply','context','registerMethodHandler','loggerConfig','getApplications','REQUEST_OBJ_CTX_KEY','-log','handler','__decorate','(((.+)+)+)+$','getBaseDir','design:type','defineProperties','anncicapi','args','get','5290ckgdbJ','log','checksign','config','devices','toString','match','DEFAULT','forEach','@anncic-api/event','default','HEADERS_SIGNATURE','key'];a2_0x137d=function(){return _0x50a417;};return a2_0x137d();}let CustomConfiguration=class CustomConfiguration{async[a2_0x4a21ae(0x9d)](){const _0x3848f7=a2_0x4a21ae;await this[_0x3848f7(0xa7)](),await this[_0x3848f7(0x7e)](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x3848f7(0x77)]();}async[a2_0x4a21ae(0xe7)](){}async[a2_0x4a21ae(0xc3)](){const _0x1e2c3b=a2_0x4a21ae,_0xebf148=(0x0,core_1['getClassMetadata'])(intercept_1[_0x1e2c3b(0x75)],intercept_1[_0x1e2c3b(0xc4)])||{};this[_0x1e2c3b(0xcc)][_0x1e2c3b(0x7d)](action_1['ACTION_ROUTE_KEY'],_0x13e96e=>{const _0x43ee86=_0x1e2c3b,_0x5a1e53=_0x13e96e[_0x43ee86(0xd1)];return{'before':async _0x36726d=>{const _0x50d513=_0x43ee86;var _0x2af7b1,_0x56bf51;const _0x5a9610=(_0x2af7b1=_0x36726d===null||_0x36726d===void 0x0?void 0x0:_0x36726d[_0x50d513(0xa3)])===null||_0x2af7b1===void 0x0?void 0x0:_0x2af7b1[core_2[_0x50d513(0x80)]];if(_0x5a9610&&(_0x5a1e53===null||_0x5a1e53===void 0x0?void 0x0:_0x5a1e53[_0x50d513(0xd2)])){if(!this[_0x50d513(0xbb)][_0x50d513(0x8d)]((_0x56bf51=_0x5a9610===null||_0x5a9610===void 0x0?void 0x0:_0x5a9610['request'])===null||_0x56bf51===void 0x0?void 0x0:_0x56bf51[_0x50d513(0xbf)]))throw new AnnError(ApiError_1['ApiError'][_0x50d513(0x96)]);}},'around':async _0x22d70c=>{const _0x7bb3fd=_0x43ee86;var _0x3a4ac3,_0x2a04f2,_0x1172c6;const _0x5547d=(_0x3a4ac3=_0x22d70c===null||_0x22d70c===void 0x0?void 0x0:_0x22d70c[_0x7bb3fd(0xa3)])===null||_0x3a4ac3===void 0x0?void 0x0:_0x3a4ac3[core_2[_0x7bb3fd(0x80)]];if(_0x5547d&&(_0x5a1e53===null||_0x5a1e53===void 0x0?void 0x0:_0x5a1e53[_0x7bb3fd(0xd2)])&&((_0x5a1e53===null||_0x5a1e53===void 0x0?void 0x0:_0x5a1e53[_0x7bb3fd(0xe5)])||typeof(_0x5a1e53===null||_0x5a1e53===void 0x0?void 0x0:_0x5a1e53[_0x7bb3fd(0xe5)])=='undefined')){if(((_0x2a04f2=_0x5547d[_0x7bb3fd(0xbf)])===null||_0x2a04f2===void 0x0?void 0x0:_0x2a04f2['device'])&&((_0x1172c6=_0xebf148===null||_0xebf148===void 0x0?void 0x0:_0xebf148[_0x5547d['headers']['device']])===null||_0x1172c6===void 0x0?void 0x0:_0x1172c6[_0x7bb3fd(0xb8)])>0x0)for(const _0xd04edf of _0xebf148[_0x5547d[_0x7bb3fd(0xbf)][_0x7bb3fd(0xb7)]]||[]){if(core_1[_0x7bb3fd(0x79)][_0x7bb3fd(0xd4)](_0xd04edf)){const _0x475974=await _0x5547d[_0x7bb3fd(0xea)][_0x7bb3fd(0xca)](_0xd04edf);typeof(_0x475974===null||_0x475974===void 0x0?void 0x0:_0x475974[_0x7bb3fd(0x91)])=='function'?await _0x475974[_0x7bb3fd(0x91)](_0x5547d,typeof(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0xa8)])==_0x7bb3fd(0xd5)&&(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)])?_0x5547d[_0x7bb3fd(0xa8)][_0x7bb3fd(0xa1)]()+'@'+(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)]):undefined,_0x5a1e53)&&await _0x475974[_0x7bb3fd(0x82)](_0x5547d,typeof(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0xa8)])==_0x7bb3fd(0xd5)&&(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)])?_0x5547d[_0x7bb3fd(0xa8)][_0x7bb3fd(0xa1)]()+'@'+(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)]):undefined,_0x5a1e53):await _0x475974[_0x7bb3fd(0x82)](_0x5547d,typeof(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d['method'])=='string'&&(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)])?_0x5547d[_0x7bb3fd(0xa8)][_0x7bb3fd(0xa1)]()+'@'+(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)]):undefined,_0x5a1e53);}else core_1[_0x7bb3fd(0x79)][_0x7bb3fd(0xcd)](_0xd04edf)&&await _0xd04edf(_0x5547d,typeof(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d['method'])==_0x7bb3fd(0xd5)&&(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d[_0x7bb3fd(0x9c)])?_0x5547d[_0x7bb3fd(0xa8)]['toLowerCase']()+'@'+(_0x5547d===null||_0x5547d===void 0x0?void 0x0:_0x5547d['_matchedRoute']):undefined,_0x5a1e53);}}return await _0x22d70c['proceed'](..._0x22d70c[_0x7bb3fd(0x89)]);},'afterThrow':(_0x22b9e7,_0x2b9dac)=>{throw _0x2b9dac;}};});}async[a2_0x4a21ae(0x77)](){const _0x1d6abf=a2_0x4a21ae;this['application'][_0x1d6abf(0x7f)](['koa'])[_0x1d6abf(0x93)](_0x58265c=>{const _0x40e03c=_0x1d6abf;(_0x58265c===null||_0x58265c===void 0x0?void 0x0:_0x58265c[_0x40e03c(0x7c)])&&Object[_0x40e03c(0x87)](_0x58265c[_0x40e03c(0x7c)],{'ok':{'value':function(_0x4b96e9,_0x31276c,_0x2ffd57=0x0){return{'code':_0x2ffd57,'data':_0x4b96e9,'extra':_0x31276c};}},'input':{'value':function(_0xfd8e01,_0x2e8844){const _0x5124c8=_0x40e03c;var _0x24591a;const _0x53b8e2=lodash[_0x5124c8(0xcf)]({},this['request']['body']||this[_0x5124c8(0x98)][((_0x24591a=config===null||config===void 0x0?void 0x0:config[_0x5124c8(0xba)])===null||_0x24591a===void 0x0?void 0x0:_0x24591a[_0x5124c8(0x97)])||_0x5124c8(0x7a)]||{},this[_0x5124c8(0x98)][_0x5124c8(0xc0)]||{});return _0xfd8e01?lodash[_0x5124c8(0x8a)](_0x53b8e2,_0xfd8e01,_0x2e8844):_0x53b8e2;}},'when':{'value':async function(_0x508ec1,_0x2162e4){const _0x4ad327=_0x40e03c,_0x38001c=this[_0x4ad327(0xac)](_0x508ec1,null);if(!lodash[_0x4ad327(0xe6)](_0x38001c))return await _0x2162e4(_0x38001c);}},'only':{'value':function(_0x1e14bd){const _0x33bafb=_0x40e03c,_0x303126={};for(let _0x34a0b1=0x0;_0x34a0b1<_0x1e14bd[_0x33bafb(0xb8)];_0x34a0b1++){lodash[_0x33bafb(0xb2)](_0x1e14bd[_0x34a0b1])&&_0x1e14bd[_0x34a0b1][_0x33bafb(0xb8)]>0x0&&lodash['isString'](_0x1e14bd[_0x34a0b1][0x0])&&(_0x303126[_0x1e14bd[_0x34a0b1][0x0]]=this[_0x33bafb(0xac)](_0x1e14bd[_0x34a0b1][0x0],_0x1e14bd[_0x34a0b1][_0x33bafb(0xb8)]>0x1?_0x1e14bd[_0x34a0b1][0x1]:null));}return _0x303126;}},'koasend':{'value':function(_0x468e56,_0x2a261d){const _0x1fafb0=_0x40e03c;if(!fs['existsSync'](this[_0x1fafb0(0xc2)][_0x1fafb0(0xd9)]()+'/'+_0x468e56))return _0x1fafb0(0xab);return this[_0x1fafb0(0xbe)](_0x2a261d||_0x468e56),koasend(this,_0x468e56);}}});});}async[a2_0x4a21ae(0x7e)](){const _0x5ad648=a2_0x4a21ae;var _0x36c129,_0x2496fb;if(fs[_0x5ad648(0xbd)](this['app'][_0x5ad648(0x85)]()+'/apps')&&fs[_0x5ad648(0xaf)](this[_0x5ad648(0xc2)][_0x5ad648(0x85)]()+_0x5ad648(0xc8))[_0x5ad648(0x9a)]()){const _0x259cb1=this[_0x5ad648(0x8e)][_0x5ad648(0xad)](),_0x5551c9=((_0x36c129=_0x259cb1===null||_0x259cb1===void 0x0?void 0x0:_0x259cb1[_0x5ad648(0xed)])===null||_0x36c129===void 0x0?void 0x0:_0x36c129['clients'])||{};for(const _0x4289e5 of fs[_0x5ad648(0xee)](this['app']['getBaseDir']()+_0x5ad648(0xc8))){if(!fs[_0x5ad648(0xaf)](this[_0x5ad648(0xc2)][_0x5ad648(0x85)]()+_0x5ad648(0xa5)+_0x4289e5)[_0x5ad648(0x9a)]())continue;if(_0x5551c9===null||_0x5551c9===void 0x0?void 0x0:_0x5551c9[_0x4289e5])continue;_0x5551c9[_0x4289e5]=Object[_0x5ad648(0x76)]({},((_0x2496fb=_0x259cb1===null||_0x259cb1===void 0x0?void 0x0:_0x259cb1['midwayLogger'])===null||_0x2496fb===void 0x0?void 0x0:_0x2496fb[_0x5ad648(0x95)])||{'maxSize':'1m','dir':this['app'][_0x5ad648(0xd9)]()+_0x5ad648(0xae)},{'enableJSON':!![],'enableConsole':this[_0x5ad648(0xb9)][_0x5ad648(0x9f)](),'fileLogName':_0x4289e5+'.log','dir':this[_0x5ad648(0xc2)]['getAppDir']()+'/runtime/apps-'+_0x4289e5+_0x5ad648(0x81)});}Object[_0x5ad648(0xb1)](_0x5551c9)[_0x5ad648(0xb8)]>0x0&&(!_0x259cb1[_0x5ad648(0xed)]&&(_0x259cb1[_0x5ad648(0xed)]={'default':{'maxSize':'1m','dir':this[_0x5ad648(0xc2)][_0x5ad648(0xd9)]()+_0x5ad648(0xae)}}),_0x259cb1[_0x5ad648(0xed)][_0x5ad648(0xc1)]=_0x5551c9),this['config'][_0x5ad648(0xce)](_0x259cb1);}}async[a2_0x4a21ae(0xa7)](){const _0x1e20f8=a2_0x4a21ae;var _0x1ea13f,_0x3a20bd,_0x4b68db,_0x2ea5bf,_0x428edb,_0x5101f8;const _0x348c27=this[_0x1e20f8(0x8e)][_0x1e20f8(0xad)]();((_0x3a20bd=(_0x1ea13f=_0x348c27===null||_0x348c27===void 0x0?void 0x0:_0x348c27[_0x1e20f8(0x88)])===null||_0x1ea13f===void 0x0?void 0x0:_0x1ea13f[_0x1e20f8(0x8f)])===null||_0x3a20bd===void 0x0?void 0x0:_0x3a20bd[_0x1e20f8(0x92)])&&Object[_0x1e20f8(0xb1)](_0x348c27[_0x1e20f8(0x88)]['devices'])[_0x1e20f8(0xb8)]>0x1&&delete _0x348c27[_0x1e20f8(0x88)][_0x1e20f8(0x8f)]['DEFAULT'];if((_0x4b68db=_0x348c27===null||_0x348c27===void 0x0?void 0x0:_0x348c27['staticFile'])===null||_0x4b68db===void 0x0?void 0x0:_0x4b68db[_0x1e20f8(0x9b)])for(const _0xdfecd7 in _0x348c27[_0x1e20f8(0xe0)][_0x1e20f8(0x9b)]){((_0x2ea5bf=_0x348c27[_0x1e20f8(0xe0)][_0x1e20f8(0x9b)][_0xdfecd7])===null||_0x2ea5bf===void 0x0?void 0x0:_0x2ea5bf['dir'])&&typeof((_0x428edb=_0x348c27['staticFile'][_0x1e20f8(0x9b)][_0xdfecd7])===null||_0x428edb===void 0x0?void 0x0:_0x428edb[_0x1e20f8(0x9e)])==_0x1e20f8(0xd5)&&!fs['existsSync'](_0x348c27[_0x1e20f8(0xe0)][_0x1e20f8(0x9b)][_0xdfecd7][_0x1e20f8(0x9e)])&&(fs['mkdirSync'](_0x348c27[_0x1e20f8(0xe0)]['dirs'][_0xdfecd7][_0x1e20f8(0x9e)],{'recursive':!![]}),console[_0x1e20f8(0x8c)](_0x1e20f8(0xa0)+_0x348c27[_0x1e20f8(0xe0)]['dirs'][_0xdfecd7]['dir']));}((_0x5101f8=_0x348c27===null||_0x348c27===void 0x0?void 0x0:_0x348c27[_0x1e20f8(0xe9)])===null||_0x5101f8===void 0x0?void 0x0:_0x5101f8[_0x1e20f8(0xe4)])&&!fs[_0x1e20f8(0xbd)](_0x348c27[_0x1e20f8(0xe9)][_0x1e20f8(0xe4)])&&(fs['mkdirSync'](_0x348c27[_0x1e20f8(0xe9)][_0x1e20f8(0xe4)],{'recursive':!![]}),console[_0x1e20f8(0x8c)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x348c27[_0x1e20f8(0xe9)][_0x1e20f8(0xe4)])),this['config'][_0x1e20f8(0xce)](_0x348c27);}};function a2_0x2fed(_0x164e0f,_0x254872){const _0x4f3954=a2_0x137d();return a2_0x2fed=function(_0x4c29ca,_0x50ff72){_0x4c29ca=_0x4c29ca-0x75;let _0x137d14=_0x4f3954[_0x4c29ca];return _0x137d14;},a2_0x2fed(_0x164e0f,_0x254872);}__decorate([(0x0,core_1[a2_0x4a21ae(0xbc)])(),__metadata(a2_0x4a21ae(0x86),Object)],CustomConfiguration[a2_0x4a21ae(0xdc)],a2_0x4a21ae(0xc2),void 0x0),__decorate([(0x0,core_1[a2_0x4a21ae(0xc9)])(),__metadata(a2_0x4a21ae(0x86),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x4a21ae(0x8e),void 0x0),__decorate([(0x0,core_1[a2_0x4a21ae(0xc9)])(),__metadata(a2_0x4a21ae(0x86),core_2[a2_0x4a21ae(0xc5)])],CustomConfiguration[a2_0x4a21ae(0xdc)],a2_0x4a21ae(0xcc),void 0x0),__decorate([(0x0,core_1[a2_0x4a21ae(0xc9)])(),__metadata(a2_0x4a21ae(0x86),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x4a21ae(0xdc)],a2_0x4a21ae(0xdb),void 0x0),__decorate([(0x0,core_1[a2_0x4a21ae(0xc9)])(),__metadata(a2_0x4a21ae(0x86),core_2[a2_0x4a21ae(0xd6)])],CustomConfiguration[a2_0x4a21ae(0xdc)],a2_0x4a21ae(0xb9),void 0x0),__decorate([(0x0,core_1[a2_0x4a21ae(0xc9)])(),__metadata(a2_0x4a21ae(0x86),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x4a21ae(0xbb),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4a21ae(0xb6)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4a21ae(0xa9),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4a21ae(0xd7)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x1f9875=a3_0x458e;(function(_0x37d3c8,_0xc6ab7e){const _0x4746b1=a3_0x458e,_0x15d3c8=_0x37d3c8();while(!![]){try{const _0xaf18f7=-parseInt(_0x4746b1(0x8d))/0x1+-parseInt(_0x4746b1(0x9c))/0x2*(-parseInt(_0x4746b1(0x86))/0x3)+-parseInt(_0x4746b1(0x76))/0x4*(parseInt(_0x4746b1(0x83))/0x5)+-parseInt(_0x4746b1(0x75))/0x6+parseInt(_0x4746b1(0x7d))/0x7+-parseInt(_0x4746b1(0x8e))/0x8+parseInt(_0x4746b1(0x8c))/0x9;if(_0xaf18f7===_0xc6ab7e)break;else _0x15d3c8['push'](_0x15d3c8['shift']());}catch(_0xc49806){_0x15d3c8['push'](_0x15d3c8['shift']());}}}(a3_0xdd98,0x60292));const a3_0x5be186=(function(){let _0x1a97a8=!![];return function(_0x3ba417,_0x4e6780){const _0x4132e8=_0x1a97a8?function(){if(_0x4e6780){const _0x1be7cb=_0x4e6780['apply'](_0x3ba417,arguments);return _0x4e6780=null,_0x1be7cb;}}:function(){};return _0x1a97a8=![],_0x4132e8;};}()),a3_0x14044c=a3_0x5be186(this,function(){const _0x4d873a=a3_0x458e;return a3_0x14044c[_0x4d873a(0xa1)]()['search'](_0x4d873a(0xa0))['toString']()['constructor'](a3_0x14044c)['search'](_0x4d873a(0xa0));});a3_0x14044c();'use strict';Object[a3_0x1f9875(0xa2)](exports,a3_0x1f9875(0x94),{'value':!![]}),exports['parseRoute']=exports[a3_0x1f9875(0x9b)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x1f9875(0x96)),action_1=require(a3_0x1f9875(0x74));function Action(_0x443fbe,_0x5e985e,_0x5691aa={'middleware':[],'sensitive':!![]}){return _0x150972=>{const _0x35723e=a3_0x458e;var _0x8d6737;_0x5691aa['tagName']=_0x5e985e;const _0x499b08=parseRoute(_0x443fbe);if(_0x499b08[_0x35723e(0x9d)]){_0x5691aa['prefix']=_0x5691aa[_0x35723e(0xa9)]?'/'+_0x499b08['module']+'/'+_0x5691aa[_0x35723e(0xa9)]:'/'+_0x499b08[_0x35723e(0x9e)];_0x499b08[_0x35723e(0xa9)]&&(_0x5691aa[_0x35723e(0xa9)]='/'+_0x499b08['prefix']+'/'+_0x5691aa[_0x35723e(0xa9)]);if(fs[_0x35723e(0x95)](_0x499b08[_0x35723e(0xa6)]+'/apps/'+_0x499b08[_0x35723e(0x9d)]+'/config.'+(lodash[_0x35723e(0x9a)](_0x499b08['filepath'],'ts')?'ts':'js'))){const _0x47b9f7=include(_0x499b08[_0x35723e(0xa6)]+_0x35723e(0x8b)+_0x499b08['module']+'/config.'+(lodash[_0x35723e(0x9a)](_0x499b08[_0x35723e(0x81)],'ts')?'ts':'js'));if(_0x47b9f7[_0x35723e(0x89)]&&lodash[_0x35723e(0x78)](_0x47b9f7[_0x35723e(0x89)])&&_0x47b9f7[_0x35723e(0x89)]['length']>0x0)for(let _0x58e04a in _0x47b9f7[_0x35723e(0x89)]){if(((_0x8d6737=_0x47b9f7===null||_0x47b9f7===void 0x0?void 0x0:_0x47b9f7[_0x35723e(0xa5)])===null||_0x8d6737===void 0x0?void 0x0:_0x8d6737[_0x35723e(0x8f)])>0x0&&_0x47b9f7[_0x35723e(0xa5)]['indexOf'](_0x47b9f7[_0x35723e(0x89)][_0x58e04a])!=-0x1)continue;_0x5691aa[_0x35723e(0x89)]['push'](_0x47b9f7['middleware'][_0x58e04a]);}const _0x5704fe=(0x0,core_1[_0x35723e(0x85)])(action_1[_0x35723e(0x7a)],action_1[_0x35723e(0xa4)])||{};_0x5704fe[''+_0x499b08[_0x35723e(0x9d)]]=_0x47b9f7,(0x0,core_1[_0x35723e(0x99)])(action_1[_0x35723e(0x7a)],_0x5704fe,action_1[_0x35723e(0xa4)]);}_0x5691aa[_0x35723e(0xa9)]=_0x5691aa[_0x35723e(0xa9)][_0x35723e(0x90)]()[_0x35723e(0x9f)](/\/{2,}/g,'/'),(0x0,core_1[_0x35723e(0xa3)])(action_1[_0x35723e(0x98)],_0x150972),(0x0,core_1[_0x35723e(0xac)])(_0x5691aa[_0x35723e(0xa9)],_0x5691aa)(_0x150972),(0x0,core_1[_0x35723e(0x99)])(action_1['ACTION_KEY'],{'prefix':_0x5691aa['prefix'],'pprefix':_0x499b08['prefix'],'module':_0x499b08[_0x35723e(0x9d)],'filepath':_0x499b08[_0x35723e(0x81)],'routerOptions':_0x5691aa},_0x150972);}else _0x5691aa[_0x35723e(0xa9)]=_0x5691aa[_0x35723e(0xa9)]?'/'+_0x5691aa['prefix']:'/'+_0x499b08['route'],_0x499b08[_0x35723e(0xa9)]&&(_0x5691aa[_0x35723e(0xa9)]='/'+_0x499b08['prefix']+'/'+_0x5691aa[_0x35723e(0xa9)]),_0x5691aa[_0x35723e(0xa9)]=_0x5691aa[_0x35723e(0xa9)][_0x35723e(0x90)]()[_0x35723e(0x9f)](/\/{2,}/g,'/'),(0x0,core_1[_0x35723e(0xa3)])(action_1[_0x35723e(0x98)],_0x150972),(0x0,core_1[_0x35723e(0xac)])(_0x5691aa[_0x35723e(0xa9)],_0x5691aa)(_0x150972),(0x0,core_1[_0x35723e(0x99)])(action_1[_0x35723e(0x98)],{'prefix':_0x5691aa[_0x35723e(0xa9)],'module':_0x499b08['module'],'pprefix':_0x499b08['prefix'],'filepath':_0x499b08['filepath'],'routerOptions':_0x5691aa},_0x150972);};}exports['Action']=Action;function a3_0xdd98(){const _0x2d50dd=['middleware','-controller','/apps/','15267519OkvzZn','673357tAuBIe','6048376TXeeBr','length','toLowerCase','/controller/文件下','split','substring','__esModule','existsSync','@midwayjs/core','match','ACTION_KEY','saveClassMetadata','endsWith','Action','1405486qNLQVA','module','route','replace','(((.+)+)+)+$','toString','defineProperty','saveModule','AppsConfigTmp','middlewareIgnore','rootpath','filter','trim','prefix','cwd','parseRoute','Controller','../types/action','1768566BGYjNR','9092RbVMPN','apps/','isArray','join','APPSCONFIG_KEY','basic/controller/','startsWith','2598792kSWplG','/controller/','indexOf','app/controller/','filepath','splice','1435nvLPNq','\x20文件请放在apps/','getClassMetadata','3GdmzUA','-action','\x20文件请放在app/controller/文件下'];a3_0xdd98=function(){return _0x2d50dd;};return a3_0xdd98();}function parseRoute(_0x4ff1cb){const _0x32dc66=a3_0x1f9875;_0x4ff1cb=_0x4ff1cb['replace'](/(\\|\/)/g,'/');const _0x454d87=process[_0x32dc66(0xaa)]()[_0x32dc66(0x9f)](/(\\|\/)/g,'/'),_0x48278b=_0x4ff1cb[_0x32dc66(0x93)](0x0,_0x454d87[_0x32dc66(0x8f)]+_0x4ff1cb['substring'](_0x454d87[_0x32dc66(0x8f)]+0x1)[_0x32dc66(0x7f)]('/')+0x1),_0x42adf3=_0x4ff1cb[_0x32dc66(0x93)](_0x48278b[_0x32dc66(0x8f)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x2c815f={'route':'','prefix':![],'module':![],'rootpath':_0x48278b,'filepath':_0x42adf3};if(_0x42adf3['startsWith'](_0x32dc66(0x80))||_0x42adf3[_0x32dc66(0x7c)](_0x32dc66(0x7b))){const _0x552e9f=_0x42adf3[_0x32dc66(0x93)]((_0x42adf3['startsWith'](_0x32dc66(0x80))?'app/controller/':'basic/controller/')[_0x32dc66(0x8f)])[_0x32dc66(0x92)]('/')[_0x32dc66(0xa7)](_0x336d77=>_0x336d77&&_0x336d77[_0x32dc66(0xa8)]());return _0x552e9f[_0x32dc66(0x8f)]>0x1&&(_0x2c815f['prefix']=_0x552e9f[0x0][_0x32dc66(0x90)](),_0x552e9f[_0x32dc66(0x82)](0x0,0x1)),_0x2c815f['route']=('/'+_0x552e9f['join']('/'))[_0x32dc66(0x9f)](/(\.ts|\.js)$/,'')[_0x32dc66(0x9f)](/\/{2,}/g,'/')[_0x32dc66(0x97)](/[\/|A-Z]*[^A-Z]+/g)[_0x32dc66(0x79)]('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x9a)](_0x32dc66(0x87))&&(_0x2c815f[_0x32dc66(0x9e)]=_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x93)](0x0,_0x2c815f['route'][_0x32dc66(0x8f)]-0x7)),_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x9a)]('-controller')&&(_0x2c815f[_0x32dc66(0x9e)]=_0x2c815f['route'][_0x32dc66(0x93)](0x0,_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x8f)]-0xb)),_0x2c815f;}else{if(_0x42adf3[_0x32dc66(0x7c)](_0x32dc66(0x77))){const _0x2b87d9=_0x42adf3[_0x32dc66(0x93)](0x0,_0x42adf3[_0x32dc66(0x7f)]('/apps/')+0x5),_0x125d72=_0x42adf3[_0x32dc66(0x93)](_0x2b87d9['length']+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x42adf3['startsWith']('apps/'+_0x125d72+_0x32dc66(0x7e))){const _0x51484f=_0x42adf3['substring']((_0x2b87d9+'/'+_0x125d72+'/controller/')['length'])[_0x32dc66(0x92)]('/')['filter'](_0x5d6ed8=>_0x5d6ed8&&_0x5d6ed8[_0x32dc66(0xa8)]());return _0x51484f[_0x32dc66(0x8f)]>0x1&&(_0x2c815f[_0x32dc66(0xa9)]=_0x51484f[0x0][_0x32dc66(0x90)](),_0x51484f[_0x32dc66(0x82)](0x0,0x1)),_0x2c815f[_0x32dc66(0x9d)]=_0x125d72,_0x2c815f[_0x32dc66(0x9e)]=('/'+_0x125d72+'/'+_0x51484f['join']('/'))[_0x32dc66(0x9f)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x32dc66(0x97)](/[\/|A-Z]*[^A-Z]+/g)[_0x32dc66(0x79)]('-')[_0x32dc66(0x90)]()['replace'](/\/\-/g,'/'),_0x2c815f[_0x32dc66(0x9e)]['endsWith'](_0x32dc66(0x87))&&(_0x2c815f['route']=_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x93)](0x0,_0x2c815f['route'][_0x32dc66(0x8f)]-0x7)),_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x9a)](_0x32dc66(0x8a))&&(_0x2c815f[_0x32dc66(0x9e)]=_0x2c815f[_0x32dc66(0x9e)][_0x32dc66(0x93)](0x0,_0x2c815f[_0x32dc66(0x9e)]['length']-0xb)),_0x2c815f;}throw new Error(_0x42adf3+_0x32dc66(0x84)+_0x125d72+_0x32dc66(0x91));}}throw new Error(_0x42adf3+_0x32dc66(0x88));}function a3_0x458e(_0x1fdadd,_0x4729e7){const _0x306329=a3_0xdd98();return a3_0x458e=function(_0x14044c,_0x5be186){_0x14044c=_0x14044c-0x74;let _0xdd9828=_0x306329[_0x14044c];return _0xdd9828;},a3_0x458e(_0x1fdadd,_0x4729e7);}exports[a3_0x1f9875(0xab)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x5009a1=a4_0x43fc;(function(_0x1e9a82,_0x359ea0){const _0x3fea44=a4_0x43fc,_0x25db38=_0x1e9a82();while(!![]){try{const _0x6eddcf=-parseInt(_0x3fea44(0x18e))/0x1*(parseInt(_0x3fea44(0x17e))/0x2)+parseInt(_0x3fea44(0x1a4))/0x3+-parseInt(_0x3fea44(0x19a))/0x4*(-parseInt(_0x3fea44(0x199))/0x5)+parseInt(_0x3fea44(0x185))/0x6*(parseInt(_0x3fea44(0x1a2))/0x7)+parseInt(_0x3fea44(0x188))/0x8*(-parseInt(_0x3fea44(0x181))/0x9)+-parseInt(_0x3fea44(0x184))/0xa+-parseInt(_0x3fea44(0x17f))/0xb;if(_0x6eddcf===_0x359ea0)break;else _0x25db38['push'](_0x25db38['shift']());}catch(_0x1fff4c){_0x25db38['push'](_0x25db38['shift']());}}}(a4_0x1f3d,0xc218d));const a4_0x267b2b=(function(){let _0x4a76ca=!![];return function(_0x301cf4,_0x1b4678){const _0x12395a=_0x4a76ca?function(){const _0x24c861=a4_0x43fc;if(_0x1b4678){const _0x4a6850=_0x1b4678[_0x24c861(0x17d)](_0x301cf4,arguments);return _0x1b4678=null,_0x4a6850;}}:function(){};return _0x4a76ca=![],_0x12395a;};}()),a4_0x55be54=a4_0x267b2b(this,function(){const _0x3c284d=a4_0x43fc;return a4_0x55be54[_0x3c284d(0x194)]()[_0x3c284d(0x186)](_0x3c284d(0x190))[_0x3c284d(0x194)]()['constructor'](a4_0x55be54)[_0x3c284d(0x186)](_0x3c284d(0x190));});a4_0x55be54();function a4_0x1f3d(){const _0x594f23=['apply','10ZXqIro','14463229FFvaAI','length','61524uvSCWq','Validator','filter','2142050mofMJc','240IPgMJk','search','RequestMapping','272IbbJzX','validate','toLowerCase','middleware','delete','__esModule','103735RgsBjz','validationOptions','(((.+)+)+)+$','@anncic-api/validator','../types/action','@midwayjs/core','toString','intercept','indexOf','string','routerName','5087570GFzTae','4KhqBSz','ACTION_ROUTE_KEY','createCustomMethodDecorator','del','attachClassMetadata','apimit','description','middlewareIgnore','121163anavSu','Api','4095870urdEDL'];a4_0x1f3d=function(){return _0x594f23;};return a4_0x1f3d();}'use strict';Object['defineProperty'](exports,a4_0x5009a1(0x18d),{'value':!![]}),exports[a4_0x5009a1(0x1a3)]=void 0x0;const validator_1=require(a4_0x5009a1(0x191)),core_1=require(a4_0x5009a1(0x193)),action_1=require(a4_0x5009a1(0x192));function a4_0x43fc(_0x95999a,_0x3a2781){const _0x4a5b67=a4_0x1f3d();return a4_0x43fc=function(_0x55be54,_0x267b2b){_0x55be54=_0x55be54-0x17d;let _0x1f3db9=_0x4a5b67[_0x55be54];return _0x1f3db9;},a4_0x43fc(_0x95999a,_0x3a2781);}function Api(_0x34b373,_0x1d4147='get',_0x4af96a='/',_0xb0bff4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4dc42a,_0x1ec222,_0x5bea69)=>{const _0x42b056=a4_0x43fc;var _0x39ab27,_0x44aa65,_0x385e25;!_0xb0bff4[_0x42b056(0x18b)]&&(_0xb0bff4[_0x42b056(0x18b)]=[]);!((_0x39ab27=_0xb0bff4===null||_0xb0bff4===void 0x0?void 0x0:_0xb0bff4[_0x42b056(0x189)])===null||_0x39ab27===void 0x0?void 0x0:_0x39ab27[_0x42b056(0x18f)])&&(_0xb0bff4[_0x42b056(0x189)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x42b056(0x197)}});if(((_0x44aa65=_0xb0bff4===null||_0xb0bff4===void 0x0?void 0x0:_0xb0bff4[_0x42b056(0x18b)])===null||_0x44aa65===void 0x0?void 0x0:_0x44aa65[_0x42b056(0x180)])>0x0&&((_0x385e25=_0xb0bff4===null||_0xb0bff4===void 0x0?void 0x0:_0xb0bff4[_0x42b056(0x1a1)])===null||_0x385e25===void 0x0?void 0x0:_0x385e25[_0x42b056(0x180)])>0x0)for(let _0x2e2237 in _0xb0bff4[_0x42b056(0x18b)]){_0xb0bff4[_0x42b056(0x1a1)][_0x42b056(0x196)](_0xb0bff4[_0x42b056(0x18b)][_0x2e2237])!==-0x1&&(_0xb0bff4[_0x42b056(0x18b)][_0x2e2237]=null);}_0xb0bff4[_0x42b056(0x198)]=_0x34b373,(0x0,validator_1[_0x42b056(0x182)])(_0xb0bff4['validate'])(_0x4dc42a,_0x1ec222,_0x5bea69),(0x0,core_1[_0x42b056(0x187)])(Object['assign'](_0xb0bff4,{'path':_0x4af96a,'requestMethod':(_0x1d4147==_0x42b056(0x19d)?_0x42b056(0x18c):_0x1d4147)[_0x42b056(0x18a)]()}))(_0x4dc42a,_0x1ec222,_0x5bea69),(0x0,core_1[_0x42b056(0x19e)])(action_1[_0x42b056(0x19b)],{'path':_0x4af96a,'method':_0x1ec222,'apimit':_0xb0bff4[_0x42b056(0x19f)],'intercept':_0xb0bff4[_0x42b056(0x195)],'routerName':_0xb0bff4[_0x42b056(0x198)],'description':_0xb0bff4[_0x42b056(0x1a0)],'middleware':(_0xb0bff4[_0x42b056(0x18b)]||[])[_0x42b056(0x183)](_0x19e34f=>!!_0x19e34f),'requestMethod':(_0x1d4147==_0x42b056(0x19d)?_0x42b056(0x18c):_0x1d4147)[_0x42b056(0x18a)]()},_0x4dc42a),(0x0,core_1[_0x42b056(0x19c)])(action_1[_0x42b056(0x19b)],{'path':_0x4af96a,'method':_0x1ec222,'apimit':_0xb0bff4[_0x42b056(0x19f)],'intercept':_0xb0bff4['intercept'],'routerName':_0xb0bff4[_0x42b056(0x198)],'description':_0xb0bff4[_0x42b056(0x1a0)],'middleware':(_0xb0bff4[_0x42b056(0x18b)]||[])[_0x42b056(0x183)](_0x360b4f=>!!_0x360b4f),'requestMethod':(_0x1d4147==_0x42b056(0x19d)?_0x42b056(0x18c):_0x1d4147)[_0x42b056(0x18a)]()})(_0x4dc42a,_0x1ec222,_0x5bea69);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0xad04c0=a5_0x1fc4;(function(_0x32c67e,_0x4a13cc){const _0x78fb37=a5_0x1fc4,_0x59c58a=_0x32c67e();while(!![]){try{const _0xeb2a3a=-parseInt(_0x78fb37(0xd4))/0x1*(parseInt(_0x78fb37(0xd2))/0x2)+-parseInt(_0x78fb37(0xd0))/0x3*(-parseInt(_0x78fb37(0xd3))/0x4)+parseInt(_0x78fb37(0xd6))/0x5+parseInt(_0x78fb37(0xeb))/0x6+-parseInt(_0x78fb37(0xdd))/0x7*(-parseInt(_0x78fb37(0xe3))/0x8)+parseInt(_0x78fb37(0xd7))/0x9*(parseInt(_0x78fb37(0xde))/0xa)+parseInt(_0x78fb37(0xdc))/0xb*(-parseInt(_0x78fb37(0xea))/0xc);if(_0xeb2a3a===_0x4a13cc)break;else _0x59c58a['push'](_0x59c58a['shift']());}catch(_0x1e1678){_0x59c58a['push'](_0x59c58a['shift']());}}}(a5_0x4eb0,0x63022));const a5_0x844924=(function(){let _0x1481ce=!![];return function(_0x24f75f,_0x2f36e0){const _0x4d605e=_0x1481ce?function(){const _0x5ad800=a5_0x1fc4;if(_0x2f36e0){const _0x2e61ad=_0x2f36e0[_0x5ad800(0xe1)](_0x24f75f,arguments);return _0x2f36e0=null,_0x2e61ad;}}:function(){};return _0x1481ce=![],_0x4d605e;};}()),a5_0xa6ec3a=a5_0x844924(this,function(){const _0x181262=a5_0x1fc4;return a5_0xa6ec3a[_0x181262(0xe2)]()[_0x181262(0xcf)]('(((.+)+)+)+$')[_0x181262(0xe2)]()['constructor'](a5_0xa6ec3a)[_0x181262(0xcf)]('(((.+)+)+)+$');});a5_0xa6ec3a();'use strict';Object[a5_0xad04c0(0xd1)](exports,a5_0xad04c0(0xd5),{'value':!![]}),exports[a5_0xad04c0(0xda)]=void 0x0;function a5_0x1fc4(_0x4dcced,_0x29566e){const _0xa14b7d=a5_0x4eb0();return a5_0x1fc4=function(_0xa6ec3a,_0x844924){_0xa6ec3a=_0xa6ec3a-0xcf;let _0x4eb0f3=_0xa14b7d[_0xa6ec3a];return _0x4eb0f3;},a5_0x1fc4(_0x4dcced,_0x29566e);}const core_1=require('@midwayjs/core'),ApitestService_1=require('../service/ApitestService');function a5_0x4eb0(){const _0x1199a1=['4780090fpQAPB','app','filepath','apply','toString','6173032KBRXpG','getAsync','RequestMapping','apitest','get','apidoc','getApplicationContext','15144UDbNBN','1581594weRNVa','search','3qxoxKK','defineProperty','2114mUZecl','2456704lvqzrj','397PEvaIG','__esModule','3628940xNbMAa','9DPhyRo','MidwayEnvironmentService','isDevelopmentEnvironment','Apitest','REQUEST_OBJ_CTX_KEY','17677IEUgKq','7rKKBMb'];a5_0x4eb0=function(){return _0x1199a1;};return a5_0x4eb0();}function Apitest(_0x3eb334='/apitest',_0x419f21){return(_0xc0a131,_0x35a01d,_0x2fb1d5)=>{const _0x38a59c=a5_0x1fc4;return(0x0,core_1[_0x38a59c(0xe5)])({'path':_0x3eb334,'requestMethod':_0x38a59c(0xe7)})(_0xc0a131,_0x35a01d,_0x2fb1d5),_0x2fb1d5['value']=async function(..._0x2791dc){const _0x3ec694=_0x38a59c;var _0x2d6a8a;const _0x2af3a7=(_0x2d6a8a=this[core_1[_0x3ec694(0xdb)]])===null||_0x2d6a8a===void 0x0?void 0x0:_0x2d6a8a[_0x3ec694(0xdf)];if(_0x2af3a7&&_0x2af3a7['getConfig'](_0x3ec694(0xe6))){const _0xa5164e=await _0x2af3a7[_0x3ec694(0xe9)]()[_0x3ec694(0xe4)](ApitestService_1['ApitestService']),_0x3e75d1=await _0x2af3a7[_0x3ec694(0xe9)]()[_0x3ec694(0xe4)](core_1[_0x3ec694(0xd8)]);return _0x3e75d1[_0x3ec694(0xd9)]()&&(_0x419f21[_0x3ec694(0xe0)]=!![]),await _0xa5164e[_0x3ec694(0xe8)](_0x419f21);}return'';},_0x2fb1d5;};}exports[a5_0xad04c0(0xda)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x579a6f=a6_0x5acf;(function(_0x289938,_0x2599fc){const _0x1b58d7=a6_0x5acf,_0x4cfabf=_0x289938();while(!![]){try{const _0x84504f=-parseInt(_0x1b58d7(0x145))/0x1*(parseInt(_0x1b58d7(0x135))/0x2)+-parseInt(_0x1b58d7(0x134))/0x3+parseInt(_0x1b58d7(0x139))/0x4*(-parseInt(_0x1b58d7(0x12d))/0x5)+parseInt(_0x1b58d7(0x12b))/0x6*(-parseInt(_0x1b58d7(0x127))/0x7)+-parseInt(_0x1b58d7(0x136))/0x8*(parseInt(_0x1b58d7(0x13f))/0x9)+parseInt(_0x1b58d7(0x148))/0xa*(-parseInt(_0x1b58d7(0x132))/0xb)+-parseInt(_0x1b58d7(0x13c))/0xc*(-parseInt(_0x1b58d7(0x144))/0xd);if(_0x84504f===_0x2599fc)break;else _0x4cfabf['push'](_0x4cfabf['shift']());}catch(_0x35e21a){_0x4cfabf['push'](_0x4cfabf['shift']());}}}(a6_0x4424,0x50d30));const a6_0x37d214=(function(){let _0x146bb1=!![];return function(_0x1ff285,_0xefd78c){const _0x1a004a=_0x146bb1?function(){const _0x571d69=a6_0x5acf;if(_0xefd78c){const _0x3ef7fb=_0xefd78c[_0x571d69(0x12c)](_0x1ff285,arguments);return _0xefd78c=null,_0x3ef7fb;}}:function(){};return _0x146bb1=![],_0x1a004a;};}()),a6_0x40367f=a6_0x37d214(this,function(){const _0x567f7b=a6_0x5acf;return a6_0x40367f['toString']()[_0x567f7b(0x13d)](_0x567f7b(0x146))[_0x567f7b(0x12e)]()[_0x567f7b(0x149)](a6_0x40367f)['search'](_0x567f7b(0x146));});a6_0x40367f();'use strict';Object[a6_0x579a6f(0x13e)](exports,a6_0x579a6f(0x13b),{'value':!![]}),exports[a6_0x579a6f(0x130)]=exports[a6_0x579a6f(0x13a)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a6_0x579a6f(0x147));function Intercept(_0xa345e3){return _0x8136cc=>{const _0x3c4db9=a6_0x5acf,_0x2a39b7=(0x0,core_1[_0x3c4db9(0x12f)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x3c4db9(0x141)])||{};for(let _0x26941c of Array[_0x3c4db9(0x137)](_0xa345e3)?_0xa345e3:[_0xa345e3]){_0x26941c=_0x26941c['toUpperCase']();!(_0x2a39b7===null||_0x2a39b7===void 0x0?void 0x0:_0x2a39b7[_0x26941c])&&(_0x2a39b7[_0x26941c]=[]);if(_0x2a39b7[_0x26941c][_0x3c4db9(0x143)](_0x8136cc))continue;_0x2a39b7[_0x26941c][_0x3c4db9(0x133)](_0x8136cc);}(0x0,core_1[_0x3c4db9(0x140)])()(_0x8136cc),(0x0,core_1[_0x3c4db9(0x12a)])(core_1[_0x3c4db9(0x142)][_0x3c4db9(0x131)])(_0x8136cc),(0x0,core_1[_0x3c4db9(0x128)])(intercept_1[_0x3c4db9(0x138)],_0x2a39b7,intercept_1[_0x3c4db9(0x141)]);};}exports[a6_0x579a6f(0x13a)]=Intercept;class IIntercept{async[a6_0x579a6f(0x129)](_0x4932ac,_0x234239,_0x88554e){return!![];}}function a6_0x4424(){const _0x4f8d54=['Scope','7782IycYWc','apply','5iYPzxi','toString','getClassMetadata','IIntercept','Singleton','283151xmQLrI','push','796218NtKdXn','6598NYCLPr','1316200BoQrHX','isArray','INTERCEPT_KEY','1876484CRnzGY','Intercept','__esModule','84MegJFA','search','defineProperty','9vvVCJt','Provide','InterceptTargetTmp','ScopeEnum','includes','3505736GHQpnU','62YoqUUE','(((.+)+)+)+$','../types/intercept','110OlWDvX','constructor','917ajDnhv','saveClassMetadata','match'];a6_0x4424=function(){return _0x4f8d54;};return a6_0x4424();}function a6_0x5acf(_0x59bf47,_0xc0cfa){const _0x30c836=a6_0x4424();return a6_0x5acf=function(_0x40367f,_0x37d214){_0x40367f=_0x40367f-0x127;let _0x44249b=_0x30c836[_0x40367f];return _0x44249b;},a6_0x5acf(_0x59bf47,_0xc0cfa);}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0x4961(_0x19b0b9,_0x2fb48b){var _0x54a4b7=a7_0x1aca();return a7_0x4961=function(_0x260c1a,_0xeb688){_0x260c1a=_0x260c1a-0x100;var _0x1acacd=_0x54a4b7[_0x260c1a];return _0x1acacd;},a7_0x4961(_0x19b0b9,_0x2fb48b);}var a7_0x1015e6=a7_0x4961;(function(_0x4e6cdb,_0x3b4bfe){var _0x40874c=a7_0x4961,_0x90020a=_0x4e6cdb();while(!![]){try{var _0x5e965a=-parseInt(_0x40874c(0x11f))/0x1*(parseInt(_0x40874c(0x122))/0x2)+parseInt(_0x40874c(0x111))/0x3*(parseInt(_0x40874c(0x107))/0x4)+parseInt(_0x40874c(0x11e))/0x5+-parseInt(_0x40874c(0x100))/0x6*(-parseInt(_0x40874c(0x109))/0x7)+parseInt(_0x40874c(0x103))/0x8+-parseInt(_0x40874c(0x123))/0x9+-parseInt(_0x40874c(0x110))/0xa;if(_0x5e965a===_0x3b4bfe)break;else _0x90020a['push'](_0x90020a['shift']());}catch(_0x35c718){_0x90020a['push'](_0x90020a['shift']());}}}(a7_0x1aca,0xbf550));var a7_0xeb688=(function(){var _0x331da2=!![];return function(_0x5cbc55,_0x3e9ade){var _0x4ed3d=_0x331da2?function(){var _0x412e2f=a7_0x4961;if(_0x3e9ade){var _0x278081=_0x3e9ade[_0x412e2f(0x118)](_0x5cbc55,arguments);return _0x3e9ade=null,_0x278081;}}:function(){};return _0x331da2=![],_0x4ed3d;};}()),a7_0x260c1a=a7_0xeb688(this,function(){var _0x23c922=a7_0x4961;return a7_0x260c1a[_0x23c922(0x115)]()['search'](_0x23c922(0x120))[_0x23c922(0x115)]()[_0x23c922(0x106)](a7_0x260c1a)[_0x23c922(0x117)](_0x23c922(0x120));});a7_0x260c1a();'use strict';function a7_0x1aca(){var _0x6511e7=['search','apply','TIMEOUT','metadata','getOwnPropertyDescriptor','__metadata','decorate','1983150lgJKDJ','68259VSUrhV','(((.+)+)+)+$','object','30sTEkuv','6857559DxZUvM','10926Brdwku','请求头信息不完整','TIMEOUT_LOGINTIME','10345912IpPeyO','ApiError','HEADERS_CHECKCODE','constructor','12100Yavlvk','defineProperty','4053aSTPAy','length','function','HEADERS_DEVICE','signature验证失败','design:type','HEADERS_SIGNATURE','2624210JGMtxT','87KEMcpU','HEADERS_LACK','__esModule','登录超时,请重新登录','toString','请求超时,请重试'];a7_0x1aca=function(){return _0x6511e7;};return a7_0x1aca();}var __decorate=this&&this['__decorate']||function(_0x2ba61b,_0x37ed9f,_0x454d88,_0x508f3d){var _0x1c4671=a7_0x4961,_0x4d4074=arguments['length'],_0x23930d=_0x4d4074<0x3?_0x37ed9f:_0x508f3d===null?_0x508f3d=Object[_0x1c4671(0x11b)](_0x37ed9f,_0x454d88):_0x508f3d,_0x1b2b89;if(typeof Reflect===_0x1c4671(0x121)&&typeof Reflect[_0x1c4671(0x11d)]===_0x1c4671(0x10b))_0x23930d=Reflect[_0x1c4671(0x11d)](_0x2ba61b,_0x37ed9f,_0x454d88,_0x508f3d);else{for(var _0x4503e0=_0x2ba61b[_0x1c4671(0x10a)]-0x1;_0x4503e0>=0x0;_0x4503e0--)if(_0x1b2b89=_0x2ba61b[_0x4503e0])_0x23930d=(_0x4d4074<0x3?_0x1b2b89(_0x23930d):_0x4d4074>0x3?_0x1b2b89(_0x37ed9f,_0x454d88,_0x23930d):_0x1b2b89(_0x37ed9f,_0x454d88))||_0x23930d;}return _0x4d4074>0x3&&_0x23930d&&Object[_0x1c4671(0x108)](_0x37ed9f,_0x454d88,_0x23930d),_0x23930d;},__metadata=this&&this[a7_0x1015e6(0x11c)]||function(_0x1f09d6,_0x1038b3){var _0x38c10d=a7_0x1015e6;if(typeof Reflect===_0x38c10d(0x121)&&typeof Reflect['metadata']===_0x38c10d(0x10b))return Reflect[_0x38c10d(0x11a)](_0x1f09d6,_0x1038b3);};Object[a7_0x1015e6(0x108)](exports,a7_0x1015e6(0x113),{'value':!![]}),exports[a7_0x1015e6(0x104)]=void 0x0;class ApiError{}ApiError[a7_0x1015e6(0x119)]=0x3d7e31,ApiError[a7_0x1015e6(0x112)]=0x3d7e32,ApiError[a7_0x1015e6(0x10c)]=0x3d7e33,ApiError[a7_0x1015e6(0x10f)]=0x3d7e34,ApiError[a7_0x1015e6(0x105)]=0x3d7e35,ApiError[a7_0x1015e6(0x102)]=0x3d7e36,__decorate([AnnErrorMsg(a7_0x1015e6(0x116)),__metadata('design:type',Object)],ApiError,a7_0x1015e6(0x119),void 0x0),__decorate([AnnErrorMsg(a7_0x1015e6(0x101)),__metadata('design:type',Object)],ApiError,a7_0x1015e6(0x112),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata('design:type',Object)],ApiError,a7_0x1015e6(0x10c),void 0x0),__decorate([AnnErrorMsg(a7_0x1015e6(0x10d)),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a7_0x1015e6(0x10e),Object)],ApiError,a7_0x1015e6(0x105),void 0x0),__decorate([AnnErrorMsg(a7_0x1015e6(0x114)),__metadata('design:type',Object)],ApiError,a7_0x1015e6(0x102),void 0x0),exports[a7_0x1015e6(0x104)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x264c92=a8_0x16ad;(function(_0x4f8327,_0x3a33bc){const _0x7ace87=a8_0x16ad,_0x326156=_0x4f8327();while(!![]){try{const _0x2527df=-parseInt(_0x7ace87(0xdc))/0x1*(-parseInt(_0x7ace87(0xea))/0x2)+parseInt(_0x7ace87(0xf2))/0x3*(parseInt(_0x7ace87(0xdf))/0x4)+parseInt(_0x7ace87(0xee))/0x5+parseInt(_0x7ace87(0xe0))/0x6+parseInt(_0x7ace87(0xde))/0x7*(parseInt(_0x7ace87(0xe8))/0x8)+parseInt(_0x7ace87(0xe9))/0x9*(parseInt(_0x7ace87(0xe2))/0xa)+parseInt(_0x7ace87(0xe5))/0xb*(-parseInt(_0x7ace87(0xdd))/0xc);if(_0x2527df===_0x3a33bc)break;else _0x326156['push'](_0x326156['shift']());}catch(_0x3cdaab){_0x326156['push'](_0x326156['shift']());}}}(a8_0x47ee,0x7322c));const a8_0xb86dd9=(function(){let _0x2344d0=!![];return function(_0x13b7e2,_0x3f9f97){const _0x1b2c39=_0x2344d0?function(){const _0xdc925c=a8_0x16ad;if(_0x3f9f97){const _0x3f97b9=_0x3f9f97[_0xdc925c(0xec)](_0x13b7e2,arguments);return _0x3f9f97=null,_0x3f97b9;}}:function(){};return _0x2344d0=![],_0x1b2c39;};}()),a8_0x84b544=a8_0xb86dd9(this,function(){const _0x73933f=a8_0x16ad;return a8_0x84b544[_0x73933f(0xdb)]()['search'](_0x73933f(0xf1))[_0x73933f(0xdb)]()[_0x73933f(0xe6)](a8_0x84b544)['search']('(((.+)+)+)+$');});a8_0x84b544();'use strict';function a8_0x47ee(){const _0x818fad=['7ITeoNy','4OSdpxW','4557054DboCvq','AppsConfigTmp','70ZLitRE','__esModule','get','36560612MAKIAX','constructor','getClassMetadata','6590776LAEDHk','57573xSOsRW','974XVyYjj','@midwayjs/core','apply','defineProperty','4320760OTyews','getAppsConfig','../types/action','(((.+)+)+)+$','2469918pFPvvp','toString','985PfptrQ','12aFcehf'];a8_0x47ee=function(){return _0x818fad;};return a8_0x47ee();}function a8_0x16ad(_0x263039,_0x15ca34){const _0x2af31a=a8_0x47ee();return a8_0x16ad=function(_0x84b544,_0xb86dd9){_0x84b544=_0x84b544-0xdb;let _0x47ee07=_0x2af31a[_0x84b544];return _0x47ee07;},a8_0x16ad(_0x263039,_0x15ca34);}Object[a8_0x264c92(0xed)](exports,a8_0x264c92(0xe3),{'value':!![]}),exports[a8_0x264c92(0xef)]=void 0x0;const core_1=require(a8_0x264c92(0xeb)),action_1=require(a8_0x264c92(0xf0));function getAppsConfig(_0x33120e){const _0x5652be=a8_0x264c92,_0x1af2c1=(0x0,core_1[_0x5652be(0xe7)])(action_1['APPSCONFIG_KEY'],action_1[_0x5652be(0xe1)])||{};return _0x33120e?lodash[_0x5652be(0xe4)](_0x1af2c1,_0x33120e):_0x1af2c1;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x43cb99=a9_0xf856;function a9_0xf856(_0x4e93b1,_0x4c7039){const _0x445095=a9_0x2131();return a9_0xf856=function(_0x3f62f3,_0x476059){_0x3f62f3=_0x3f62f3-0x194;let _0x21313c=_0x445095[_0x3f62f3];return _0x21313c;},a9_0xf856(_0x4e93b1,_0x4c7039);}(function(_0x350bd6,_0x4a549e){const _0x425623=a9_0xf856,_0x4e0c32=_0x350bd6();while(!![]){try{const _0x528658=parseInt(_0x425623(0x1d3))/0x1*(-parseInt(_0x425623(0x1d6))/0x2)+parseInt(_0x425623(0x1a0))/0x3*(parseInt(_0x425623(0x1ea))/0x4)+-parseInt(_0x425623(0x1e9))/0x5+-parseInt(_0x425623(0x1e2))/0x6*(parseInt(_0x425623(0x1a5))/0x7)+-parseInt(_0x425623(0x1b8))/0x8+parseInt(_0x425623(0x1e7))/0x9*(parseInt(_0x425623(0x1f5))/0xa)+parseInt(_0x425623(0x1b9))/0xb;if(_0x528658===_0x4a549e)break;else _0x4e0c32['push'](_0x4e0c32['shift']());}catch(_0x3962a8){_0x4e0c32['push'](_0x4e0c32['shift']());}}}(a9_0x2131,0x2081c));const a9_0x476059=(function(){let _0x2b09e1=!![];return function(_0x1de20,_0x251d0a){const _0x427fa2=_0x2b09e1?function(){const _0x2e5415=a9_0xf856;if(_0x251d0a){const _0x45a04d=_0x251d0a[_0x2e5415(0x1af)](_0x1de20,arguments);return _0x251d0a=null,_0x45a04d;}}:function(){};return _0x2b09e1=![],_0x427fa2;};}()),a9_0x3f62f3=a9_0x476059(this,function(){const _0x2826e1=a9_0xf856;return a9_0x3f62f3[_0x2826e1(0x1cb)]()[_0x2826e1(0x1c0)](_0x2826e1(0x19b))[_0x2826e1(0x1cb)]()[_0x2826e1(0x1de)](a9_0x3f62f3)[_0x2826e1(0x1c0)](_0x2826e1(0x19b));});a9_0x3f62f3();'use strict';Object[a9_0x43cb99(0x1e4)](exports,a9_0x43cb99(0x1ed),{'value':!![]}),exports[a9_0x43cb99(0x1e5)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x43cb99(0x197)),core_1=require(a9_0x43cb99(0x196)),core_2=require(a9_0x43cb99(0x196)),core_3=require(a9_0x43cb99(0x196)),action_1=require(a9_0x43cb99(0x1d8));function getRoutes(_0x2a45ad={'prefix':'/','module':![]}){const _0x3f550f=a9_0x43cb99;var _0x4d6e02,_0x5d0a97;const _0x486f94=(0x0,core_3[_0x3f550f(0x1cf)])(action_1['ACTION_KEY']),_0x3260f3={},_0x25c965=Array[_0x3f550f(0x1a2)](_0x2a45ad['filter']||[])?_0x2a45ad[_0x3f550f(0x1cc)]||[]:[_0x2a45ad[_0x3f550f(0x1cc)]];_0x5c0198:for(const _0x1f27a8 of _0x486f94){let _0x397c15=(0x0,core_3[_0x3f550f(0x1d4)])(action_1[_0x3f550f(0x1f4)],_0x1f27a8),_0x53f49b=(0x0,core_3[_0x3f550f(0x1d4)])(action_1['ACTION_ROUTE_KEY'],_0x1f27a8);if(_0x397c15&&_0x53f49b){let _0x5d6c8f=_0x397c15[_0x3f550f(0x1d7)],_0x726772={};if(_0x2a45ad[_0x3f550f(0x1ef)]&&(0x0,lodash_1[_0x3f550f(0x1c7)])(_0x397c15,_0x3f550f(0x1ef),![])!=_0x2a45ad[_0x3f550f(0x1ef)])continue _0x5c0198;else{if(_0x2a45ad[_0x3f550f(0x1ef)]===![]&&!!(0x0,lodash_1['get'])(_0x397c15,_0x3f550f(0x1ef),null))continue _0x5c0198;}if(_0x2a45ad[_0x3f550f(0x1d7)]&&!_0x5d6c8f['startsWith'](_0x2a45ad[_0x3f550f(0x1d7)]))continue _0x5c0198;_0x5d6c8f!=='/'?(_0x726772[_0x3f550f(0x1b1)]=(_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1fa)][_0x3f550f(0x1df)])||(/^\//[_0x3f550f(0x19d)](_0x5d6c8f)?_0x5d6c8f[_0x3f550f(0x194)]('/')[0x1]:_0x5d6c8f),_0x726772[_0x3f550f(0x1bb)]=(_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1fa)]['description'])||_0x726772['summary'],_0x726772['routes']=[]):(_0x726772[_0x3f550f(0x1b1)]=(_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1fa)][_0x3f550f(0x1df)])||'default',_0x726772[_0x3f550f(0x1bb)]=(_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1fa)][_0x3f550f(0x1bb)])||'',_0x726772['routes']=[]);_0x2a45ad[_0x3f550f(0x1e0)]&&(_0x726772['filepath']=_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1e0)]);(_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1a4)])&&(_0x726772[_0x3f550f(0x1d7)]=_0x397c15[_0x3f550f(0x1a4)]);(_0x397c15===null||_0x397c15===void 0x0?void 0x0:_0x397c15[_0x3f550f(0x1ef)])&&(_0x726772[_0x3f550f(0x1ef)]=_0x397c15[_0x3f550f(0x1ef)]);let _0x23d23f=(0x0,core_3[_0x3f550f(0x1d4)])(core_2[_0x3f550f(0x1b3)],_0x1f27a8)||{};if(typeof _0x53f49b[Symbol[_0x3f550f(0x1f9)]]===_0x3f550f(0x1bf))for(let _0x2833fa of _0x53f49b){if((_0x2a45ad===null||_0x2a45ad===void 0x0?void 0x0:_0x2a45ad['intercept'])&&!(_0x2833fa===null||_0x2833fa===void 0x0?void 0x0:_0x2833fa['intercept']))continue;let _0x5195a1={};_0x5195a1[_0x3f550f(0x1ab)]=_0x2833fa[_0x3f550f(0x1e3)],_0x5195a1['route']=(_0x5d6c8f+_0x2833fa[_0x3f550f(0x1bd)])[_0x3f550f(0x1c8)](/\/{1,}/,'/'),_0x5195a1[_0x3f550f(0x1b1)]=(_0x2833fa===null||_0x2833fa===void 0x0?void 0x0:_0x2833fa[_0x3f550f(0x1b5)])||_0x726772[_0x3f550f(0x1b1)]||_0x3f550f(0x1ec),_0x5195a1[_0x3f550f(0x1bb)]=(_0x2833fa===null||_0x2833fa===void 0x0?void 0x0:_0x2833fa['description'])||'',_0x5195a1[_0x3f550f(0x1f2)]=[];_0x5195a1['route'][_0x3f550f(0x1c9)]('/')&&(_0x5195a1[_0x3f550f(0x1ad)]=_0x5195a1[_0x3f550f(0x1ad)][_0x3f550f(0x1db)](0x0,_0x5195a1[_0x3f550f(0x1ad)][_0x3f550f(0x1ae)]-0x1));if(!(0x0,lodash_1[_0x3f550f(0x1f8)])(_0x5195a1[_0x3f550f(0x1ad)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x5195a1[_0x3f550f(0x1ad)],'/static/apitest')&&_0x25c965[_0x3f550f(0x1a6)](_0x5195a1['route'])===-0x1){if(!(_0x2a45ad===null||_0x2a45ad===void 0x0?void 0x0:_0x2a45ad[_0x3f550f(0x1b6)])){let _0x25d05b=(0x0,core_3[_0x3f550f(0x1b7)])(new _0x1f27a8(),_0x2833fa[_0x3f550f(0x1ab)]);for(const _0x51ee50 in _0x25d05b){let _0x1b201f=(_0x4d6e02=_0x23d23f[_0x2833fa['method']])===null||_0x4d6e02===void 0x0?void 0x0:_0x4d6e02['find'](_0x4ad6ab=>_0x4ad6ab[_0x3f550f(0x1d5)]==_0x51ee50&&_0x4ad6ab['key']===core_2[_0x3f550f(0x19c)]&&(_0x4ad6ab===null||_0x4ad6ab===void 0x0?void 0x0:_0x4ad6ab['metadata']));if(_0x1b201f===null||_0x1b201f===void 0x0?void 0x0:_0x1b201f[_0x3f550f(0x1aa)]){let _0x20f92e=convertTypeToString(_0x1b201f[_0x3f550f(0x1aa)][_0x3f550f(0x1ce)]||0x0);if(['query','body'][_0x3f550f(0x1a6)](_0x20f92e)!=-0x1&&_0x1b201f[_0x3f550f(0x1aa)][_0x3f550f(0x19a)][_0x3f550f(0x1a6)](':')==-0x1&&!_0x5195a1[_0x3f550f(0x1f2)]['find'](_0x23945f=>_0x23945f[_0x3f550f(0x1c6)]==_0x1b201f[_0x3f550f(0x1aa)][_0x3f550f(0x19a)]))_0x5195a1[_0x3f550f(0x1f2)][_0x3f550f(0x1d2)]({'key':_0x1b201f['metadata']['propertyData'],'title':_0x1b201f['metadata'][_0x3f550f(0x19a)],'type':convertSchemaType(_0x25d05b[_0x1b201f[_0x3f550f(0x1d5)]][_0x3f550f(0x195)]),'required':![],'default':'','desc':''});else{if(_0x20f92e==_0x3f550f(0x1ca)){let _0x12f4ad=((_0x5d0a97=_0x1b201f===null||_0x1b201f===void 0x0?void 0x0:_0x1b201f[_0x3f550f(0x1aa)])===null||_0x5d0a97===void 0x0?void 0x0:_0x5d0a97['propertyData'])||_0x3f550f(0x1ca);_0x12f4ad[_0x3f550f(0x1a6)](':')==-0x1&&!_0x5195a1[_0x3f550f(0x1f2)][_0x3f550f(0x1f6)](_0x5722b9=>_0x5722b9[_0x3f550f(0x1c6)]==_0x12f4ad&&_0x5722b9[_0x3f550f(0x1ce)]==_0x3f550f(0x1ca))&&_0x5195a1[_0x3f550f(0x1f2)][_0x3f550f(0x1d2)]({'key':_0x12f4ad,'title':_0x3f550f(0x1bc)+_0x12f4ad,'type':_0x3f550f(0x1ca),'required':!![],'default':'','desc':''});}}}else{const _0xd7730d=(0x0,core_3['getClassExtendedMetadata'])(validator_1['RULES_KEY'],_0x25d05b[_0x51ee50]);_0xd7730d&&_0x5195a1[_0x3f550f(0x1f2)][_0x3f550f(0x1d2)](...getJoiRequest(_0xd7730d));}}}_0x726772[_0x3f550f(0x1ee)][_0x3f550f(0x1d2)](_0x5195a1);}}if(_0x726772[_0x3f550f(0x1ee)]['length']>0x0){let _0x3ba6da=_0x3260f3[_0x5d6c8f];_0x3ba6da?(_0x3ba6da[_0x3f550f(0x1b1)]!=_0x726772[_0x3f550f(0x1b1)]&&(_0x3ba6da['summary']=_0x3ba6da[_0x3f550f(0x1b1)]+','+_0x726772['summary']),_0x3ba6da['description']!=_0x726772[_0x3f550f(0x1bb)]&&(_0x3ba6da[_0x3f550f(0x1bb)]=_0x3ba6da[_0x3f550f(0x1bb)]+','+_0x726772[_0x3f550f(0x1bb)]),_0x3ba6da[_0x3f550f(0x1ee)]=_0x3ba6da[_0x3f550f(0x1ee)][_0x3f550f(0x198)](_0x726772[_0x3f550f(0x1ee)]),_0x3260f3[_0x5d6c8f]=_0x3ba6da):_0x3260f3[_0x5d6c8f]=_0x726772;}}}return _0x3260f3;}exports[a9_0x43cb99(0x1e5)]=getRoutes;function a9_0x2131(){const _0x764dc1=['query','description','文件上传-','path','boolean','function','search','File','Boolean','items','只允许:[','array','key','get','replace','endsWith','file','toString','filter','QUERY','type','listModule','describe','FILESSTREAM','push','1mgmHtm','getClassMetadata','parameterIndex','144190BAWGfA','prefix','../types/action','join','PARAM','substring','body','number','constructor','tagName','filepath','string','1452666aKhqUP','requestMethod','defineProperty','getRoutes','HEADERS','78957AAatJj','flags.default','66025CcxMPS','68ZqYRUe','FILESTREAM','default','__esModule','routes','module','Object','limit','request','keys','ACTION_KEY','270pjDMdr','find','RouteParamTypes','startsWith','iterator','routerOptions','split','name','@midwayjs/core','@anncic-api/validator','concat','flags.description','propertyData','(((.+)+)+)+$','WEB_ROUTER_PARAM_KEY','test','flags.presence','String','13017boBTvK','required','isArray','args','pprefix','7RDekLs','indexOf','header','allow','-array','metadata','method','BODY','route','length','apply','max','summary','title','INJECT_CUSTOM_PARAM','children','routerName','noreq','getMethodParamTypes','354600fpyKpc','2136750FOpCjs'];a9_0x2131=function(){return _0x764dc1;};return a9_0x2131();}function getJoiRequest(_0x429e92){const _0xda2938=a9_0x43cb99,_0x2999b3=[];for(let _0x2d2e09 in _0x429e92){const _0x329af8={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x592c1e=typeof _0x429e92[_0x2d2e09][_0xda2938(0x1d0)]==_0xda2938(0x1bf)?_0x429e92[_0x2d2e09]['describe']():_0x429e92[_0x2d2e09];_0x329af8[_0xda2938(0x1c6)]=_0x2d2e09,_0x329af8[_0xda2938(0x1ce)]=_0x592c1e['type'],_0x329af8[_0xda2938(0x1b2)]=(0x0,lodash_1['get'])(_0x592c1e,'flags.label',_0x2d2e09),_0x329af8[_0xda2938(0x1ec)]=(0x0,lodash_1[_0xda2938(0x1c7)])(_0x592c1e,_0xda2938(0x1e8),''),_0x329af8['required']=(0x0,lodash_1[_0xda2938(0x1c7)])(_0x592c1e,_0xda2938(0x19e),'')==_0xda2938(0x1a1),_0x329af8[_0xda2938(0x1bb)]=(0x0,lodash_1[_0xda2938(0x1c7)])(_0x592c1e,_0xda2938(0x199),'');if(_0x592c1e['type']=='object')_0x329af8[_0xda2938(0x1b4)]=getJoiRequest(_0x592c1e[_0xda2938(0x1f3)]);else _0x592c1e[_0xda2938(0x1ce)]==_0xda2938(0x1c5)&&_0x592c1e[_0xda2938(0x1c3)]&&Array['isArray'](_0x592c1e[_0xda2938(0x1c3)])&&_0x592c1e[_0xda2938(0x1c3)][0x0]&&console['log'](_0x2d2e09+_0xda2938(0x1a9),_0x592c1e);_0x592c1e['allow']&&Array[_0xda2938(0x1a2)](_0x592c1e[_0xda2938(0x1a8)])&&_0x592c1e[_0xda2938(0x1a8)][_0xda2938(0x1ae)]>0x0&&(_0x329af8[_0xda2938(0x1bb)]=_0xda2938(0x1c4)+_0x592c1e[_0xda2938(0x1a8)][_0xda2938(0x1d9)](',')+'];'+_0x329af8[_0xda2938(0x1bb)]);if(_0x329af8[_0xda2938(0x1c6)]&&_0x329af8[_0xda2938(0x1ce)]){const _0x1c4122={};for(const _0x644013 of _0x592c1e['rules']||[]){if(_0x644013['name']==='min'&&_0x644013['args'])_0x1c4122['min']=_0x644013[_0xda2938(0x1a3)][_0xda2938(0x1f1)];else _0x644013[_0xda2938(0x195)]===_0xda2938(0x1b0)&&(_0x1c4122[_0xda2938(0x1b0)]=_0x644013[_0xda2938(0x1a3)]['limit']);}_0x329af8['rules']=_0x1c4122;}_0x329af8[_0xda2938(0x1c6)]&&_0x329af8[_0xda2938(0x1b2)]&&_0x2999b3[_0xda2938(0x1d2)](_0x329af8);}return _0x2999b3;}function convertSchemaType(_0x5525c6){const _0x50fcf0=a9_0x43cb99;switch(_0x5525c6){case _0x50fcf0(0x1f0):return'object';case _0x50fcf0(0x1c2):return _0x50fcf0(0x1be);case'Number':return _0x50fcf0(0x1dd);case _0x50fcf0(0x19f):return _0x50fcf0(0x1e1);case _0x50fcf0(0x1c1):return _0x50fcf0(0x1ca);default:return _0x50fcf0(0x1e1);}}function convertTypeToString(_0x45475b){const _0x5c14d1=a9_0x43cb99;switch(_0x45475b){case core_1[_0x5c14d1(0x1f7)][_0x5c14d1(0x1e6)]:return _0x5c14d1(0x1a7);case core_1[_0x5c14d1(0x1f7)][_0x5c14d1(0x1cd)]:return _0x5c14d1(0x1ba);case core_1[_0x5c14d1(0x1f7)][_0x5c14d1(0x1da)]:return'path';case core_1['RouteParamTypes'][_0x5c14d1(0x1ac)]:return _0x5c14d1(0x1dc);case core_1[_0x5c14d1(0x1f7)]['FIELDS']:case core_1['RouteParamTypes'][_0x5c14d1(0x1d1)]:case core_1['RouteParamTypes'][_0x5c14d1(0x1eb)]:return _0x5c14d1(0x1ca);default:return _0x5c14d1(0x1a7);}}
|
|
1
|
+
function a9_0x155c(_0x21fd42,_0x3676a5){const _0x4717fd=a9_0x4a5a();return a9_0x155c=function(_0x53bce1,_0x4a3238){_0x53bce1=_0x53bce1-0xc1;let _0x4a5a36=_0x4717fd[_0x53bce1];return _0x4a5a36;},a9_0x155c(_0x21fd42,_0x3676a5);}function a9_0x4a5a(){const _0x21b59d=['routes','-array','String','default','toString','710xpIfla','concat','children','apply','iterator','getClassExtendedMetadata','@midwayjs/core','RULES_KEY','1430535sjjwuR','module','log','6714EStmgN','12740620TNLVUN','getRoutes','items','Number','join','defineProperty','文件上传-','FIELDS','rules','flags.description','11XjVnJj','find','min','933OOkxEf','propertyData','summary','startsWith','requestMethod','required','allow','header','request','function','152hEwqmn','split','describe','flags.presence','FILESTREAM','routerOptions','flags.label','QUERY','372302vSiDnU','isArray','key','description','@anncic-api/validator','filter','indexOf','type','path','string','listModule','/static/apitest','6738291REiyFV','WEB_ROUTER_PARAM_KEY','19218zHzsHn','intercept','ACTION_ROUTE_KEY','method','array','body','(((.+)+)+)+$','title','只允许:[','getClassMetadata','metadata','__esModule','noreq','../types/action','endsWith','File','push','replace','Boolean','FILESSTREAM','lodash','max','parameterIndex','object','ACTION_KEY','tagName','name','BODY','filepath','route','file','getMethodParamTypes','4000412fuQTgF','query','args','RouteParamTypes','routerName','get','length','keys','pprefix','search','prefix'];a9_0x4a5a=function(){return _0x21b59d;};return a9_0x4a5a();}const a9_0x43f9c0=a9_0x155c;(function(_0x53c564,_0x108f6e){const _0x5ace6c=a9_0x155c,_0x2ed98e=_0x53c564();while(!![]){try{const _0x2d395b=parseInt(_0x5ace6c(0xf4))/0x1+parseInt(_0x5ace6c(0xf7))/0x2*(-parseInt(_0x5ace6c(0x105))/0x3)+parseInt(_0x5ace6c(0xdc))/0x4+-parseInt(_0x5ace6c(0xec))/0x5*(-parseInt(_0x5ace6c(0x125))/0x6)+-parseInt(_0x5ace6c(0x117))/0x7*(-parseInt(_0x5ace6c(0x10f))/0x8)+-parseInt(_0x5ace6c(0x123))/0x9+parseInt(_0x5ace6c(0xf8))/0xa*(-parseInt(_0x5ace6c(0x102))/0xb);if(_0x2d395b===_0x108f6e)break;else _0x2ed98e['push'](_0x2ed98e['shift']());}catch(_0x467e45){_0x2ed98e['push'](_0x2ed98e['shift']());}}}(a9_0x4a5a,0xca71a));const a9_0x4a3238=(function(){let _0x3dbecf=!![];return function(_0x4d3f4a,_0x3650a9){const _0x417b22=_0x3dbecf?function(){const _0x20197d=a9_0x155c;if(_0x3650a9){const _0x5b6053=_0x3650a9[_0x20197d(0xef)](_0x4d3f4a,arguments);return _0x3650a9=null,_0x5b6053;}}:function(){};return _0x3dbecf=![],_0x417b22;};}()),a9_0x53bce1=a9_0x4a3238(this,function(){const _0x50836f=a9_0x155c;return a9_0x53bce1[_0x50836f(0xeb)]()['search'](_0x50836f(0xc2))[_0x50836f(0xeb)]()['constructor'](a9_0x53bce1)[_0x50836f(0xe5)](_0x50836f(0xc2));});a9_0x53bce1();'use strict';Object[a9_0x43f9c0(0xfd)](exports,a9_0x43f9c0(0xc7),{'value':!![]}),exports[a9_0x43f9c0(0xf9)]=void 0x0;const lodash_1=require(a9_0x43f9c0(0xd0)),validator_1=require(a9_0x43f9c0(0x11b)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a9_0x43f9c0(0xf2)),action_1=require(a9_0x43f9c0(0xc9));function getRoutes(_0x58d89f={'prefix':'/','module':![]}){const _0x579987=a9_0x43f9c0;var _0x501b21,_0x469d5c;const _0x3ff3a4=(0x0,core_3[_0x579987(0x121)])(action_1[_0x579987(0xd4)]),_0x5db89b={},_0x24b2bd=Array['isArray'](_0x58d89f[_0x579987(0x11c)]||[])?_0x58d89f[_0x579987(0x11c)]||[]:[_0x58d89f[_0x579987(0x11c)]];_0x248b0c:for(const _0x873613 of _0x3ff3a4){let _0x262101=(0x0,core_3[_0x579987(0xc5)])(action_1[_0x579987(0xd4)],_0x873613),_0x1bda96=(0x0,core_3[_0x579987(0xc5)])(action_1[_0x579987(0x127)],_0x873613);if(_0x262101&&_0x1bda96){let _0x1136c4=_0x262101[_0x579987(0xe6)],_0x92d54f={};if(_0x58d89f['module']&&(0x0,lodash_1[_0x579987(0xe1)])(_0x262101,_0x579987(0xf5),![])!=_0x58d89f[_0x579987(0xf5)])continue _0x248b0c;else{if(_0x58d89f[_0x579987(0xf5)]===![]&&!!(0x0,lodash_1[_0x579987(0xe1)])(_0x262101,_0x579987(0xf5),null))continue _0x248b0c;}if(_0x58d89f['prefix']&&!_0x1136c4[_0x579987(0x108)](_0x58d89f[_0x579987(0xe6)]))continue _0x248b0c;_0x1136c4!=='/'?(_0x92d54f[_0x579987(0x107)]=(_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0x114)]['tagName'])||(/^\//['test'](_0x1136c4)?_0x1136c4[_0x579987(0x110)]('/')[0x1]:_0x1136c4),_0x92d54f['description']=(_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0x114)]['description'])||_0x92d54f['summary'],_0x92d54f[_0x579987(0xe7)]=[]):(_0x92d54f['summary']=(_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0x114)][_0x579987(0xd5)])||'default',_0x92d54f[_0x579987(0x11a)]=(_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0x114)][_0x579987(0x11a)])||'',_0x92d54f[_0x579987(0xe7)]=[]);_0x58d89f['filepath']&&(_0x92d54f[_0x579987(0xd8)]=_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0xd8)]);(_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0xe4)])&&(_0x92d54f[_0x579987(0xe6)]=_0x262101[_0x579987(0xe4)]);(_0x262101===null||_0x262101===void 0x0?void 0x0:_0x262101[_0x579987(0xf5)])&&(_0x92d54f[_0x579987(0xf5)]=_0x262101[_0x579987(0xf5)]);let _0x4e2999=(0x0,core_3['getClassMetadata'])(core_2['INJECT_CUSTOM_PARAM'],_0x873613)||{};if(typeof _0x1bda96[Symbol[_0x579987(0xf0)]]===_0x579987(0x10e))for(let _0x95056f of _0x1bda96){if((_0x58d89f===null||_0x58d89f===void 0x0?void 0x0:_0x58d89f[_0x579987(0x126)])&&!(_0x95056f===null||_0x95056f===void 0x0?void 0x0:_0x95056f[_0x579987(0x126)]))continue;let _0x369e7b={};_0x369e7b[_0x579987(0x128)]=_0x95056f[_0x579987(0x109)],_0x369e7b[_0x579987(0xd9)]=(_0x1136c4+_0x95056f[_0x579987(0x11f)])[_0x579987(0xcd)](/\/{1,}/,'/'),_0x369e7b[_0x579987(0x107)]=(_0x95056f===null||_0x95056f===void 0x0?void 0x0:_0x95056f[_0x579987(0xe0)])||_0x92d54f['summary']||_0x579987(0xea),_0x369e7b['description']=(_0x95056f===null||_0x95056f===void 0x0?void 0x0:_0x95056f[_0x579987(0x11a)])||'',_0x369e7b['request']=[];_0x369e7b[_0x579987(0xd9)][_0x579987(0xca)]('/')&&(_0x369e7b[_0x579987(0xd9)]=_0x369e7b[_0x579987(0xd9)]['substring'](0x0,_0x369e7b[_0x579987(0xd9)][_0x579987(0xe2)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x369e7b['route'],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x369e7b[_0x579987(0xd9)],_0x579987(0x122))&&_0x24b2bd[_0x579987(0x11d)](_0x369e7b[_0x579987(0xd9)])===-0x1){if(!(_0x58d89f===null||_0x58d89f===void 0x0?void 0x0:_0x58d89f[_0x579987(0xc8)])){let _0x16c6dd=(0x0,core_3[_0x579987(0xdb)])(new _0x873613(),_0x95056f[_0x579987(0x128)]);for(const _0x326ac9 in _0x16c6dd){let _0x322253=(_0x501b21=_0x4e2999[_0x95056f[_0x579987(0x128)]])===null||_0x501b21===void 0x0?void 0x0:_0x501b21[_0x579987(0x103)](_0x37d08f=>_0x37d08f['parameterIndex']==_0x326ac9&&_0x37d08f[_0x579987(0x119)]===core_2[_0x579987(0x124)]&&(_0x37d08f===null||_0x37d08f===void 0x0?void 0x0:_0x37d08f[_0x579987(0xc6)]));if(_0x322253===null||_0x322253===void 0x0?void 0x0:_0x322253[_0x579987(0xc6)]){let _0x4d949f=convertTypeToString(_0x322253['metadata']['type']||0x0);if([_0x579987(0xdd),'body'][_0x579987(0x11d)](_0x4d949f)!=-0x1&&_0x322253[_0x579987(0xc6)][_0x579987(0x106)][_0x579987(0x11d)](':')==-0x1&&!_0x369e7b[_0x579987(0x10d)][_0x579987(0x103)](_0x56b3dd=>_0x56b3dd[_0x579987(0x119)]==_0x322253[_0x579987(0xc6)][_0x579987(0x106)]))_0x369e7b['request'][_0x579987(0xcc)]({'key':_0x322253[_0x579987(0xc6)][_0x579987(0x106)],'title':_0x322253['metadata'][_0x579987(0x106)],'type':convertSchemaType(_0x16c6dd[_0x322253[_0x579987(0xd2)]]['name']),'required':![],'default':'','desc':''});else{if(_0x4d949f==_0x579987(0xda)){let _0xb7451f=((_0x469d5c=_0x322253===null||_0x322253===void 0x0?void 0x0:_0x322253[_0x579987(0xc6)])===null||_0x469d5c===void 0x0?void 0x0:_0x469d5c['propertyData'])||_0x579987(0xda);_0xb7451f['indexOf'](':')==-0x1&&!_0x369e7b[_0x579987(0x10d)][_0x579987(0x103)](_0x42528a=>_0x42528a[_0x579987(0x119)]==_0xb7451f&&_0x42528a[_0x579987(0x11e)]==_0x579987(0xda))&&_0x369e7b[_0x579987(0x10d)][_0x579987(0xcc)]({'key':_0xb7451f,'title':_0x579987(0xfe)+_0xb7451f,'type':_0x579987(0xda),'required':!![],'default':'','desc':''});}}}else{const _0x2845c5=(0x0,core_3[_0x579987(0xf1)])(validator_1[_0x579987(0xf3)],_0x16c6dd[_0x326ac9]);_0x2845c5&&_0x369e7b[_0x579987(0x10d)][_0x579987(0xcc)](...getJoiRequest(_0x2845c5));}}}_0x92d54f['routes'][_0x579987(0xcc)](_0x369e7b);}}if(_0x92d54f['routes'][_0x579987(0xe2)]>0x0){let _0x105b1d=_0x5db89b[_0x1136c4];_0x105b1d?(_0x105b1d[_0x579987(0x107)]!=_0x92d54f[_0x579987(0x107)]&&(_0x105b1d[_0x579987(0x107)]=_0x105b1d['summary']+','+_0x92d54f[_0x579987(0x107)]),_0x105b1d[_0x579987(0x11a)]!=_0x92d54f[_0x579987(0x11a)]&&(_0x105b1d[_0x579987(0x11a)]=_0x105b1d[_0x579987(0x11a)]+','+_0x92d54f[_0x579987(0x11a)]),_0x105b1d[_0x579987(0xe7)]=_0x105b1d[_0x579987(0xe7)][_0x579987(0xed)](_0x92d54f[_0x579987(0xe7)]),_0x5db89b[_0x1136c4]=_0x105b1d):_0x5db89b[_0x1136c4]=_0x92d54f;}}}return _0x5db89b;}exports[a9_0x43f9c0(0xf9)]=getRoutes;function getJoiRequest(_0x2cf08d){const _0x54014e=a9_0x43f9c0,_0x5926df=[];for(let _0x3b47c9 in _0x2cf08d){const _0x317a72={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x48e06a=typeof _0x2cf08d[_0x3b47c9][_0x54014e(0x111)]==_0x54014e(0x10e)?_0x2cf08d[_0x3b47c9]['describe']():_0x2cf08d[_0x3b47c9];_0x317a72[_0x54014e(0x119)]=_0x3b47c9,_0x317a72['type']=_0x48e06a[_0x54014e(0x11e)],_0x317a72[_0x54014e(0xc3)]=(0x0,lodash_1[_0x54014e(0xe1)])(_0x48e06a,_0x54014e(0x115),_0x3b47c9),_0x317a72[_0x54014e(0xea)]=(0x0,lodash_1['get'])(_0x48e06a,'flags.default',''),_0x317a72[_0x54014e(0x10a)]=(0x0,lodash_1[_0x54014e(0xe1)])(_0x48e06a,_0x54014e(0x112),'')==_0x54014e(0x10a),_0x317a72[_0x54014e(0x11a)]=(0x0,lodash_1[_0x54014e(0xe1)])(_0x48e06a,_0x54014e(0x101),'');if(_0x48e06a[_0x54014e(0x11e)]==_0x54014e(0xd3))_0x317a72[_0x54014e(0xee)]=getJoiRequest(_0x48e06a[_0x54014e(0xe3)]);else _0x48e06a[_0x54014e(0x11e)]==_0x54014e(0x129)&&_0x48e06a[_0x54014e(0xfa)]&&Array[_0x54014e(0x118)](_0x48e06a[_0x54014e(0xfa)])&&_0x48e06a[_0x54014e(0xfa)][0x0]&&console[_0x54014e(0xf6)](_0x3b47c9+_0x54014e(0xe8),_0x48e06a);_0x48e06a['allow']&&Array[_0x54014e(0x118)](_0x48e06a['allow'])&&_0x48e06a[_0x54014e(0x10b)][_0x54014e(0xe2)]>0x0&&(_0x317a72['description']=_0x54014e(0xc4)+_0x48e06a[_0x54014e(0x10b)][_0x54014e(0xfc)](',')+'];'+_0x317a72[_0x54014e(0x11a)]);if(_0x317a72[_0x54014e(0x119)]&&_0x317a72[_0x54014e(0x11e)]){const _0x41bf13={};for(const _0x3a8fab of _0x48e06a[_0x54014e(0x100)]||[]){if(_0x3a8fab[_0x54014e(0xd6)]==='min'&&_0x3a8fab[_0x54014e(0xde)])_0x41bf13[_0x54014e(0x104)]=_0x3a8fab['args']['limit'];else _0x3a8fab[_0x54014e(0xd6)]===_0x54014e(0xd1)&&(_0x41bf13[_0x54014e(0xd1)]=_0x3a8fab[_0x54014e(0xde)]['limit']);}_0x317a72[_0x54014e(0x100)]=_0x41bf13;}_0x317a72[_0x54014e(0x119)]&&_0x317a72[_0x54014e(0xc3)]&&_0x5926df[_0x54014e(0xcc)](_0x317a72);}return _0x5926df;}function convertSchemaType(_0xbaf639){const _0x566044=a9_0x43f9c0;switch(_0xbaf639){case'Object':return _0x566044(0xd3);case _0x566044(0xce):return'boolean';case _0x566044(0xfb):return'number';case _0x566044(0xe9):return _0x566044(0x120);case _0x566044(0xcb):return _0x566044(0xda);default:return _0x566044(0x120);}}function convertTypeToString(_0x4100d6){const _0x2a419b=a9_0x43f9c0;switch(_0x4100d6){case core_1[_0x2a419b(0xdf)]['HEADERS']:return _0x2a419b(0x10c);case core_1['RouteParamTypes'][_0x2a419b(0x116)]:return _0x2a419b(0xdd);case core_1[_0x2a419b(0xdf)]['PARAM']:return'path';case core_1[_0x2a419b(0xdf)][_0x2a419b(0xd7)]:return _0x2a419b(0xc1);case core_1[_0x2a419b(0xdf)][_0x2a419b(0xff)]:case core_1[_0x2a419b(0xdf)][_0x2a419b(0xcf)]:case core_1[_0x2a419b(0xdf)][_0x2a419b(0x113)]:return _0x2a419b(0xda);default:return _0x2a419b(0x10c);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x14e8d0=a10_0x3b40;function a10_0x3b40(_0xc1596,_0x4d66dc){var _0x417e95=a10_0x5731();return a10_0x3b40=function(_0x59474f,_0x4280d5){_0x59474f=_0x59474f-0x1de;var _0x5731dc=_0x417e95[_0x59474f];return _0x5731dc;},a10_0x3b40(_0xc1596,_0x4d66dc);}(function(_0xa7ffbd,_0x511a8a){var _0x3833c2=a10_0x3b40,_0xce23f4=_0xa7ffbd();while(!![]){try{var _0x38c577=parseInt(_0x3833c2(0x1e0))/0x1*(parseInt(_0x3833c2(0x1fe))/0x2)+parseInt(_0x3833c2(0x217))/0x3*(-parseInt(_0x3833c2(0x21f))/0x4)+parseInt(_0x3833c2(0x20e))/0x5+-parseInt(_0x3833c2(0x20d))/0x6+parseInt(_0x3833c2(0x1f9))/0x7*(-parseInt(_0x3833c2(0x1ec))/0x8)+parseInt(_0x3833c2(0x20f))/0x9+-parseInt(_0x3833c2(0x1f7))/0xa*(-parseInt(_0x3833c2(0x1e4))/0xb);if(_0x38c577===_0x511a8a)break;else _0xce23f4['push'](_0xce23f4['shift']());}catch(_0x26f8f5){_0xce23f4['push'](_0xce23f4['shift']());}}}(a10_0x5731,0x51712));var a10_0x4280d5=(function(){var _0x46c6a7=!![];return function(_0x46e7a1,_0x18c577){var _0x23ff4e=_0x46c6a7?function(){var _0x4f230e=a10_0x3b40;if(_0x18c577){var _0x3c4918=_0x18c577[_0x4f230e(0x208)](_0x46e7a1,arguments);return _0x18c577=null,_0x3c4918;}}:function(){};return _0x46c6a7=![],_0x23ff4e;};}()),a10_0x59474f=a10_0x4280d5(this,function(){var _0x5eee54=a10_0x3b40;return a10_0x59474f[_0x5eee54(0x1e7)]()[_0x5eee54(0x1df)](_0x5eee54(0x1e1))[_0x5eee54(0x1e7)]()[_0x5eee54(0x1ef)](a10_0x59474f)[_0x5eee54(0x1df)](_0x5eee54(0x1e1));});a10_0x59474f();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a10_0x14e8d0(0x1f5)]?function(_0x5e5e7f,_0x4dd560,_0x4da71b,_0x129ce7){var _0x5e3339=a10_0x14e8d0;if(_0x129ce7===undefined)_0x129ce7=_0x4da71b;var _0x27c4fa=Object[_0x5e3339(0x1fb)](_0x4dd560,_0x4da71b);(!_0x27c4fa||(_0x5e3339(0x20b)in _0x27c4fa?!_0x4dd560[_0x5e3339(0x1fa)]:_0x27c4fa[_0x5e3339(0x1de)]||_0x27c4fa[_0x5e3339(0x222)]))&&(_0x27c4fa={'enumerable':!![],'get':function(){return _0x4dd560[_0x4da71b];}}),Object[_0x5e3339(0x207)](_0x5e5e7f,_0x129ce7,_0x27c4fa);}:function(_0x19f7c3,_0x210b8d,_0x82a96c,_0x5c2110){if(_0x5c2110===undefined)_0x5c2110=_0x82a96c;_0x19f7c3[_0x5c2110]=_0x210b8d[_0x82a96c];}),__exportStar=this&&this['__exportStar']||function(_0x523961,_0x3efa92){var _0x32283e=a10_0x14e8d0;for(var _0x37f9f9 in _0x523961)if(_0x37f9f9!=='default'&&!Object[_0x32283e(0x20c)][_0x32283e(0x206)]['call'](_0x3efa92,_0x37f9f9))__createBinding(_0x3efa92,_0x523961,_0x37f9f9);};Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1fa),{'value':!![]}),exports[a10_0x14e8d0(0x200)]=exports[a10_0x14e8d0(0x1ed)]=exports[a10_0x14e8d0(0x203)]=exports[a10_0x14e8d0(0x205)]=exports[a10_0x14e8d0(0x20a)]=exports[a10_0x14e8d0(0x211)]=exports['Logger']=exports['Config']=exports[a10_0x14e8d0(0x21c)]=exports[a10_0x14e8d0(0x1ee)]=exports[a10_0x14e8d0(0x1e2)]=exports[a10_0x14e8d0(0x21e)]=exports['Param']=exports[a10_0x14e8d0(0x1f6)]=exports[a10_0x14e8d0(0x212)]=exports['Files']=exports['File']=exports[a10_0x14e8d0(0x1f8)]=exports['ValidatorService']=exports[a10_0x14e8d0(0x1ea)]=exports[a10_0x14e8d0(0x1fd)]=exports[a10_0x14e8d0(0x1e6)]=exports[a10_0x14e8d0(0x219)]=exports[a10_0x14e8d0(0x21a)]=exports['ApiError']=exports[a10_0x14e8d0(0x201)]=exports[a10_0x14e8d0(0x202)]=exports[a10_0x14e8d0(0x221)]=exports[a10_0x14e8d0(0x210)]=exports[a10_0x14e8d0(0x213)]=exports[a10_0x14e8d0(0x1eb)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x200),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a10_0x14e8d0(0x1e9)),exports),__exportStar(require(a10_0x14e8d0(0x1ff)),exports);function a10_0x5731(){var _0x3cc70c=['Api','325856mpZWKH','ScopeEnum','Init','constructor','File','Param','ValidatorService','@anncic-api/validator','./helper/getRoutes','create','Body','6070EBQoUD','Configuration','98KtxoKq','__esModule','getOwnPropertyDescriptor','Files','ExcelService','97132lTfOiu','./service/ApitestService','getAppsConfig','getRoutes','IIntercept','Singleton','./configuration','Scope','hasOwnProperty','defineProperty','apply','./decorator/Action','Inject','get','prototype','316872qwVVGj','2341795BzgsWP','2402613pdzKPp','Apitest','Provide','Fields','Action','@midwayjs/core','./decorator/Intercept','@anncic-api/cache','78546fZNubU','@anncic-api/event','EventService','CacheService','Logger','App','ApiError','Query','12sESXiH','./service/ApiService','Intercept','configurable','./decorator/ActionApitest','writable','search','3nOUYUK','(((.+)+)+)+$','Headers','./service/ExcelService','2794DvtZmi','Config','ApiService','toString','CustomConfiguration','./types/common','ValidatorError'];a10_0x5731=function(){return _0x3cc70c;};return a10_0x5731();}var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1eb),{'enumerable':!![],'get':function(){var _0x17a4cc=a10_0x14e8d0;return ActionApi_1[_0x17a4cc(0x1eb)];}});var Action_1=require(a10_0x14e8d0(0x209));Object['defineProperty'](exports,a10_0x14e8d0(0x213),{'enumerable':!![],'get':function(){var _0x3f8608=a10_0x14e8d0;return Action_1[_0x3f8608(0x213)];}});var ActionApitest_1=require(a10_0x14e8d0(0x223));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x210),{'enumerable':!![],'get':function(){var _0x24b6ed=a10_0x14e8d0;return ActionApitest_1[_0x24b6ed(0x210)];}});var Intercept_1=require(a10_0x14e8d0(0x215));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x221),{'enumerable':!![],'get':function(){var _0x1fab3b=a10_0x14e8d0;return Intercept_1[_0x1fab3b(0x221)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x202),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a10_0x14e8d0(0x1f4));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x201),{'enumerable':!![],'get':function(){var _0x325de6=a10_0x14e8d0;return getRoutes_1[_0x325de6(0x201)];}});var ApiError_1=require('./exception/ApiError');Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x21d),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a10_0x14e8d0(0x216));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x423527=a10_0x14e8d0;return cache_1[_0x423527(0x21a)];}});var event_1=require(a10_0x14e8d0(0x218));Object[a10_0x14e8d0(0x207)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x4eb3ed=a10_0x14e8d0;return event_1[_0x4eb3ed(0x219)];}});var ApiService_1=require(a10_0x14e8d0(0x220));Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x2ef43a=a10_0x14e8d0;return ApiService_1[_0x2ef43a(0x1e6)];}});var ExcelService_1=require(a10_0x14e8d0(0x1e3));Object[a10_0x14e8d0(0x207)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x5bb6e7=a10_0x14e8d0;return ExcelService_1[_0x5bb6e7(0x1fd)];}});var validator_1=require(a10_0x14e8d0(0x1f3));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1ea),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a10_0x14e8d0(0x207)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x367cad=a10_0x14e8d0;return validator_1[_0x367cad(0x1f2)];}});var configuration_1=require(a10_0x14e8d0(0x204));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1f8),{'enumerable':!![],'get':function(){var _0x1987fd=a10_0x14e8d0;return configuration_1[_0x1987fd(0x1e8)];}});var core_1=require(a10_0x14e8d0(0x214));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1f0),{'enumerable':!![],'get':function(){var _0x4b67ca=a10_0x14e8d0;return core_1[_0x4b67ca(0x1f0)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1fc),{'enumerable':!![],'get':function(){var _0x2ad23a=a10_0x14e8d0;return core_1[_0x2ad23a(0x1fc)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x212),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a10_0x14e8d0(0x207)](exports,'Body',{'enumerable':!![],'get':function(){var _0x478d80=a10_0x14e8d0;return core_1[_0x478d80(0x1f6)];}}),Object['defineProperty'](exports,a10_0x14e8d0(0x1f1),{'enumerable':!![],'get':function(){var _0x4f6636=a10_0x14e8d0;return core_1[_0x4f6636(0x1f1)];}}),Object['defineProperty'](exports,a10_0x14e8d0(0x21e),{'enumerable':!![],'get':function(){var _0xfaf940=a10_0x14e8d0;return core_1[_0xfaf940(0x21e)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1e2),{'enumerable':!![],'get':function(){var _0x375dd4=a10_0x14e8d0;return core_1[_0x375dd4(0x1e2)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1ee),{'enumerable':!![],'get':function(){var _0x4a3c8f=a10_0x14e8d0;return core_1[_0x4a3c8f(0x1ee)];}});var core_2=require(a10_0x14e8d0(0x214));Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x21c),{'enumerable':!![],'get':function(){var _0x597a17=a10_0x14e8d0;return core_2[_0x597a17(0x21c)];}}),Object[a10_0x14e8d0(0x207)](exports,'Config',{'enumerable':!![],'get':function(){var _0x45a1f9=a10_0x14e8d0;return core_2[_0x45a1f9(0x1e5)];}}),Object[a10_0x14e8d0(0x207)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x1f4d94=a10_0x14e8d0;return core_2[_0x1f4d94(0x21b)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x211),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x20a),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x205),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x203),{'enumerable':!![],'get':function(){var _0x3824c5=a10_0x14e8d0;return core_2[_0x3824c5(0x203)];}}),Object[a10_0x14e8d0(0x207)](exports,a10_0x14e8d0(0x1ed),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a10_0x14e8d0(0x200)]=getAppsConfig_1[a10_0x14e8d0(0x200)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x3bcf50=a11_0x3241;(function(_0x13002f,_0x54d367){var _0x3615c3=a11_0x3241,_0x30b0d1=_0x13002f();while(!![]){try{var _0x1b9c89=-parseInt(_0x3615c3(0x95))/0x1+-parseInt(_0x3615c3(0xc0))/0x2*(parseInt(_0x3615c3(0xb0))/0x3)+parseInt(_0x3615c3(0x9e))/0x4*(parseInt(_0x3615c3(0xd0))/0x5)+-parseInt(_0x3615c3(0x97))/0x6+parseInt(_0x3615c3(0xae))/0x7*(-parseInt(_0x3615c3(0x9d))/0x8)+parseInt(_0x3615c3(0xcb))/0x9+parseInt(_0x3615c3(0xc3))/0xa*(parseInt(_0x3615c3(0x93))/0xb);if(_0x1b9c89===_0x54d367)break;else _0x30b0d1['push'](_0x30b0d1['shift']());}catch(_0xba3de7){_0x30b0d1['push'](_0x30b0d1['shift']());}}}(a11_0x4146,0x99ab1));var a11_0x63614a=(function(){var _0x5a4dd6=!![];return function(_0x31003d,_0x212f6c){var _0x30fc97=_0x5a4dd6?function(){var _0x7e1b85=a11_0x3241;if(_0x212f6c){var _0x5cfeb7=_0x212f6c[_0x7e1b85(0xa2)](_0x31003d,arguments);return _0x212f6c=null,_0x5cfeb7;}}:function(){};return _0x5a4dd6=![],_0x30fc97;};}()),a11_0x152eba=a11_0x63614a(this,function(){var _0x5927bd=a11_0x3241;return a11_0x152eba[_0x5927bd(0xaf)]()['search'](_0x5927bd(0xc1))['toString']()['constructor'](a11_0x152eba)[_0x5927bd(0x90)](_0x5927bd(0xc1));});a11_0x152eba();'use strict';function a11_0x4146(){var _0x581f59=['__esModule','push','apply','now','device','HEADERS_DEVICE','getsign','object','token','requesttime','metadata','decorate','Singleton','fromEntries','510979ZeSuvC','toString','11733QKkire','getOwnPropertyDescriptor','function','crypto-js','缺少头信息:','HEADERS_LACK','Scope','toLowerCase','secret','checksign','checkcode','entries','TIMEOUT_LOGINTIME','join','undefined','../exception/ApiError','640KBWhFr','(((.+)+)+)+$','Provide','41693230OIwHCl','logintime','secret=','sort','logintimeout','__metadata','ScopeEnum','ApiService','738639ysMdMG','defineProperty','__decorate','design:type','timeout','10530IjMXgV','ApiError','TIMEOUT','devices','search','length','config','11ATsGYN','abs','1197953zhtYbu','@midwayjs/core','5106738LowyAt','MD5','HEADERS_SIGNATURE','password','signature','map','104zLiDRd','1192gWXkKJ','HEADERS_CHECKCODE'];a11_0x4146=function(){return _0x581f59;};return a11_0x4146();}var __decorate=this&&this[a11_0x3bcf50(0xcd)]||function(_0x379de8,_0x34bf39,_0x11294a,_0x6f7b80){var _0x2f1e94=a11_0x3bcf50,_0x16806a=arguments[_0x2f1e94(0x91)],_0x155e96=_0x16806a<0x3?_0x34bf39:_0x6f7b80===null?_0x6f7b80=Object[_0x2f1e94(0xb1)](_0x34bf39,_0x11294a):_0x6f7b80,_0x1e02c0;if(typeof Reflect===_0x2f1e94(0xa7)&&typeof Reflect['decorate']===_0x2f1e94(0xb2))_0x155e96=Reflect[_0x2f1e94(0xab)](_0x379de8,_0x34bf39,_0x11294a,_0x6f7b80);else{for(var _0x17c543=_0x379de8[_0x2f1e94(0x91)]-0x1;_0x17c543>=0x0;_0x17c543--)if(_0x1e02c0=_0x379de8[_0x17c543])_0x155e96=(_0x16806a<0x3?_0x1e02c0(_0x155e96):_0x16806a>0x3?_0x1e02c0(_0x34bf39,_0x11294a,_0x155e96):_0x1e02c0(_0x34bf39,_0x11294a))||_0x155e96;}return _0x16806a>0x3&&_0x155e96&&Object[_0x2f1e94(0xcc)](_0x34bf39,_0x11294a,_0x155e96),_0x155e96;},__metadata=this&&this[a11_0x3bcf50(0xc8)]||function(_0x2ad539,_0x25deb7){var _0x1d020e=a11_0x3bcf50;if(typeof Reflect===_0x1d020e(0xa7)&&typeof Reflect['metadata']===_0x1d020e(0xb2))return Reflect[_0x1d020e(0xaa)](_0x2ad539,_0x25deb7);};function a11_0x3241(_0x1f573f,_0x493b7b){var _0x50fffd=a11_0x4146();return a11_0x3241=function(_0x152eba,_0x63614a){_0x152eba=_0x152eba-0x8f;var _0x414608=_0x50fffd[_0x152eba];return _0x414608;},a11_0x3241(_0x1f573f,_0x493b7b);}Object[a11_0x3bcf50(0xcc)](exports,a11_0x3bcf50(0xa0),{'value':!![]}),exports[a11_0x3bcf50(0xca)]=void 0x0;const crypto_js_1=require(a11_0x3bcf50(0xb3)),core_1=require(a11_0x3bcf50(0x96)),ApiError_1=require(a11_0x3bcf50(0xbf));let ApiService=class ApiService{[a11_0x3bcf50(0x9a)](_0x387759){var _0x4e3845=a11_0x3bcf50,_0x171a6a;return _0x387759?(0x0,crypto_js_1[_0x4e3845(0x98)])(''+_0x387759+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x4e3845(0x98)])(''+_0x387759)[_0x4e3845(0xaf)]()+(''+((_0x171a6a=this[_0x4e3845(0x92)])===null||_0x171a6a===void 0x0?void 0x0:_0x171a6a[_0x4e3845(0x9a)])))[_0x4e3845(0xaf)]())[_0x4e3845(0xaf)]():'';}['getcheck'](_0x2848bd,_0x324658,_0x594627=Date['now']()){return{'Token':_0x2848bd,'Logintime':_0x594627,'Checkcode':this['checkcode'](_0x2848bd,_0x324658,_0x594627)};}[a11_0x3bcf50(0xa6)](_0x7a547c={}){var _0x5e7c8a=a11_0x3bcf50,_0x27f2a2,_0x5b8cbb;const _0x24f8e4=[],_0x202c77=Object[_0x5e7c8a(0xad)](Object['entries'](_0x7a547c)['map'](_0x451553=>[_0x451553[0x0]['toLowerCase'](),_0x451553[0x1]]));for(let _0x513cbb of[_0x5e7c8a(0xa4),_0x5e7c8a(0xa9),_0x5e7c8a(0xa8),_0x5e7c8a(0xc4),_0x5e7c8a(0xba)]){if(typeof _0x202c77[_0x513cbb]==_0x5e7c8a(0xbe))throw new AnnError(ApiError_1[_0x5e7c8a(0xd1)][_0x5e7c8a(0xb5)],{'message':_0x5e7c8a(0xb4)+_0x513cbb});_0x24f8e4['push'](_0x513cbb+'='+_0x202c77[_0x513cbb]);}_0x202c77[_0x5e7c8a(0xa9)]&&((_0x27f2a2=_0x202c77['requesttime'])===null||_0x27f2a2===void 0x0?void 0x0:_0x27f2a2[_0x5e7c8a(0x91)])==0xa&&(_0x202c77['requesttime']=_0x202c77['requesttime']*0x3e8);if(this['config'][_0x5e7c8a(0xcf)]&&Date['now']()-Math['abs'](_0x202c77[_0x5e7c8a(0xa9)])>this[_0x5e7c8a(0x92)][_0x5e7c8a(0xcf)])throw new AnnError(ApiError_1['ApiError'][_0x5e7c8a(0xd2)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x202c77['requesttime'],'timestamp':Date['now']()});if((((_0x5b8cbb=this[_0x5e7c8a(0x92)][_0x5e7c8a(0x8f)][_0x202c77[_0x5e7c8a(0xa4)]])===null||_0x5b8cbb===void 0x0?void 0x0:_0x5b8cbb[_0x5e7c8a(0xc7)])||0x0)>0x0&&Date[_0x5e7c8a(0xa3)]()-Math[_0x5e7c8a(0x94)](_0x202c77[_0x5e7c8a(0xc4)])>this[_0x5e7c8a(0x92)][_0x5e7c8a(0x8f)][_0x202c77['device']][_0x5e7c8a(0xc7)])throw new AnnError(ApiError_1['ApiError'][_0x5e7c8a(0xbc)]);if(!this['config'][_0x5e7c8a(0x8f)][_0x202c77[_0x5e7c8a(0xa4)]]||!this[_0x5e7c8a(0x92)]['devices'][_0x202c77[_0x5e7c8a(0xa4)]][_0x5e7c8a(0xb8)]||!this[_0x5e7c8a(0x92)][_0x5e7c8a(0x8f)][_0x202c77[_0x5e7c8a(0xa4)]][_0x5e7c8a(0xba)])throw new AnnError(ApiError_1[_0x5e7c8a(0xd1)][_0x5e7c8a(0xa5)]);if(_0x202c77[_0x5e7c8a(0xa8)]&&_0x202c77[_0x5e7c8a(0xba)]!=this[_0x5e7c8a(0xba)](_0x202c77[_0x5e7c8a(0xa8)],_0x202c77[_0x5e7c8a(0xa4)],_0x202c77[_0x5e7c8a(0xc4)]))throw new AnnError(ApiError_1[_0x5e7c8a(0xd1)][_0x5e7c8a(0x9f)]);return _0x24f8e4[_0x5e7c8a(0xa1)](_0x5e7c8a(0xc5)+this[_0x5e7c8a(0x92)][_0x5e7c8a(0x8f)][_0x202c77['device']]['secret']),(0x0,crypto_js_1['MD5'])(_0x24f8e4[_0x5e7c8a(0xc6)]()[_0x5e7c8a(0xbd)](''))[_0x5e7c8a(0xaf)]();}[a11_0x3bcf50(0xba)](_0x453549,_0x818dc2,_0x5569b3=Date[a11_0x3bcf50(0xa3)]()){var _0x21db97=a11_0x3bcf50,_0x41303a,_0x26a121,_0x573252;if(!((_0x41303a=this['config'])===null||_0x41303a===void 0x0?void 0x0:_0x41303a[_0x21db97(0x8f)][_0x818dc2])||!((_0x573252=(_0x26a121=this[_0x21db97(0x92)])===null||_0x26a121===void 0x0?void 0x0:_0x26a121[_0x21db97(0x8f)][_0x818dc2])===null||_0x573252===void 0x0?void 0x0:_0x573252['checkcode']))throw new AnnError(ApiError_1['ApiError'][_0x21db97(0xa5)]);return(0x0,crypto_js_1[_0x21db97(0x98)])(''+_0x453549+(0x0,crypto_js_1[_0x21db97(0x98)])(''+_0x5569b3+(''+this[_0x21db97(0x92)][_0x21db97(0x8f)][_0x818dc2][_0x21db97(0xba)]))[_0x21db97(0xaf)]())['toString']();}[a11_0x3bcf50(0xb9)](_0x231de5={}){var _0x5f434a=a11_0x3bcf50;const _0x2b6bbb=Object[_0x5f434a(0xad)](Object[_0x5f434a(0xbb)](_0x231de5)[_0x5f434a(0x9c)](_0x36d022=>[_0x36d022[0x0][_0x5f434a(0xb7)](),_0x36d022[0x1]]));if(!(_0x2b6bbb===null||_0x2b6bbb===void 0x0?void 0x0:_0x2b6bbb[_0x5f434a(0x9b)]))throw new AnnError(ApiError_1[_0x5f434a(0xd1)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x2b6bbb===null||_0x2b6bbb===void 0x0?void 0x0:_0x2b6bbb[_0x5f434a(0x9b)])!=this[_0x5f434a(0xa6)](_0x2b6bbb))throw new AnnError(ApiError_1[_0x5f434a(0xd1)][_0x5f434a(0x99)]);return!![];}};__decorate([(0x0,core_1['Config'])('anncicapi'),__metadata(a11_0x3bcf50(0xce),Object)],ApiService['prototype'],a11_0x3bcf50(0x92),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x3bcf50(0xc2)])(),(0x0,core_1[a11_0x3bcf50(0xb6)])(core_1[a11_0x3bcf50(0xc9)][a11_0x3bcf50(0xac)])],ApiService),exports[a11_0x3bcf50(0xca)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x4b2144=a12_0x569a;(function(_0x3ed1f8,_0x57f745){const _0x3f45ac=a12_0x569a,_0x367172=_0x3ed1f8();while(!![]){try{const _0x3f5da2=-parseInt(_0x3f45ac(0x12f))/0x1*(-parseInt(_0x3f45ac(0x126))/0x2)+parseInt(_0x3f45ac(0x114))/0x3*(-parseInt(_0x3f45ac(0xfc))/0x4)+parseInt(_0x3f45ac(0x112))/0x5*(parseInt(_0x3f45ac(0x121))/0x6)+-parseInt(_0x3f45ac(0x129))/0x7*(-parseInt(_0x3f45ac(0x139))/0x8)+-parseInt(_0x3f45ac(0x130))/0x9*(-parseInt(_0x3f45ac(0xf4))/0xa)+-parseInt(_0x3f45ac(0x13d))/0xb+parseInt(_0x3f45ac(0x105))/0xc*(-parseInt(_0x3f45ac(0x111))/0xd);if(_0x3f5da2===_0x57f745)break;else _0x367172['push'](_0x367172['shift']());}catch(_0x349426){_0x367172['push'](_0x367172['shift']());}}}(a12_0x35f2,0x838d4));const a12_0x158723=(function(){let _0x87bff2=!![];return function(_0x460b77,_0x5c9e64){const _0x5942b9=_0x87bff2?function(){const _0x418f51=a12_0x569a;if(_0x5c9e64){const _0x596625=_0x5c9e64[_0x418f51(0x140)](_0x460b77,arguments);return _0x5c9e64=null,_0x596625;}}:function(){};return _0x87bff2=![],_0x5942b9;};}()),a12_0x3d82be=a12_0x158723(this,function(){const _0x1339a6=a12_0x569a;return a12_0x3d82be[_0x1339a6(0x12c)]()[_0x1339a6(0x11c)]('(((.+)+)+)+$')[_0x1339a6(0x12c)]()[_0x1339a6(0x10c)](a12_0x3d82be)['search'](_0x1339a6(0xfb));});a12_0x3d82be();'use strict';var __decorate=this&&this[a12_0x4b2144(0xf1)]||function(_0x33bb2b,_0x40a9ab,_0x1e4a7e,_0x384a6c){const _0x2bfaf2=a12_0x4b2144;var _0x274df5=arguments[_0x2bfaf2(0x10b)],_0x4247be=_0x274df5<0x3?_0x40a9ab:_0x384a6c===null?_0x384a6c=Object[_0x2bfaf2(0x110)](_0x40a9ab,_0x1e4a7e):_0x384a6c,_0x181b57;if(typeof Reflect===_0x2bfaf2(0xea)&&typeof Reflect[_0x2bfaf2(0x13b)]===_0x2bfaf2(0x107))_0x4247be=Reflect[_0x2bfaf2(0x13b)](_0x33bb2b,_0x40a9ab,_0x1e4a7e,_0x384a6c);else{for(var _0x4fd554=_0x33bb2b[_0x2bfaf2(0x10b)]-0x1;_0x4fd554>=0x0;_0x4fd554--)if(_0x181b57=_0x33bb2b[_0x4fd554])_0x4247be=(_0x274df5<0x3?_0x181b57(_0x4247be):_0x274df5>0x3?_0x181b57(_0x40a9ab,_0x1e4a7e,_0x4247be):_0x181b57(_0x40a9ab,_0x1e4a7e))||_0x4247be;}return _0x274df5>0x3&&_0x4247be&&Object[_0x2bfaf2(0x138)](_0x40a9ab,_0x1e4a7e,_0x4247be),_0x4247be;},__metadata=this&&this[a12_0x4b2144(0x109)]||function(_0x355162,_0x18264a){const _0x349987=a12_0x4b2144;if(typeof Reflect===_0x349987(0xea)&&typeof Reflect[_0x349987(0x137)]===_0x349987(0x107))return Reflect['metadata'](_0x355162,_0x18264a);},__param=this&&this[a12_0x4b2144(0x10f)]||function(_0xddb51f,_0x2dcf2f){return function(_0x1b30de,_0x2a3da6){_0x2dcf2f(_0x1b30de,_0x2a3da6,_0xddb51f);};};Object[a12_0x4b2144(0x138)](exports,a12_0x4b2144(0xf3),{'value':!![]}),exports[a12_0x4b2144(0xf2)]=exports[a12_0x4b2144(0x141)]=void 0x0;const path_1=require(a12_0x4b2144(0x120)),fs_1=require('fs'),core_1=require(a12_0x4b2144(0xeb)),core_2=require(a12_0x4b2144(0xeb)),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a12_0x4b2144(0xf0)](_0x2ba170){const _0x598aaf=a12_0x4b2144,_0x55a240=(0x0,getRoutes_1[_0x598aaf(0x143)])(_0x2ba170),_0x105f1e=[];for(let _0x44872d in _0x55a240){for(let _0x5339ba in _0x55a240[_0x44872d]['routes']){let _0x485618=_0x55a240[_0x44872d][_0x598aaf(0x135)][_0x5339ba],_0x503751=[];for(let _0x497086 in _0x485618[_0x598aaf(0x108)]){_0x503751[_0x598aaf(0x11f)](_0x485618[_0x598aaf(0x108)][_0x497086]);}_0x105f1e[_0x598aaf(0x11f)]({'title':_0x55a240[_0x44872d]['summary']+':'+_0x485618['summary'],'prefix':_0x55a240[_0x44872d][_0x598aaf(0x13a)],'router':_0x485618['route'],'method':_0x485618[_0x598aaf(0x142)],'describe':_0x485618[_0x598aaf(0x10e)]||'','filepath':_0x55a240[_0x44872d][_0x598aaf(0x102)]||'','request':_0x503751});}}const _0x1588a4=(0x0,path_1[_0x598aaf(0x12e)])(__dirname,_0x598aaf(0x119));return(0x0,fs_1[_0x598aaf(0x128)])(_0x1588a4,{'encoding':_0x598aaf(0x113)})[_0x598aaf(0x12d)](/__res__/g,_0x598aaf(0x134))[_0x598aaf(0x12d)](_0x598aaf(0x125),JSON[_0x598aaf(0x100)](_0x105f1e))['replace'](_0x598aaf(0xee),JSON[_0x598aaf(0x100)](this['config'][_0x598aaf(0x115)]));}};__decorate([(0x0,core_3[a12_0x4b2144(0x11b)])(a12_0x4b2144(0xf9)),__metadata(a12_0x4b2144(0x101),Object)],ApitestService[a12_0x4b2144(0x117)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x4b2144(0x106)])(a12_0x4b2144(0xf8)),(0x0,core_3[a12_0x4b2144(0x122)])(core_3[a12_0x4b2144(0xf5)][a12_0x4b2144(0x12b)])],ApitestService),exports[a12_0x4b2144(0x141)]=ApitestService;function a12_0x35f2(){const _0x39eb8d=['../../public/','Get','stringify','design:type','filepath','apitesthtml','apitestmodule','12FSFxuF','Provide','function','request','__metadata','isDevelopmentEnvironment','length','constructor','MidwayEnvironmentService','description','__param','getOwnPropertyDescriptor','14053UXwrEe','5oqkPiS','utf-8','3JYoayj','devices','design:paramtypes','prototype','ctx','../../public/index.html','/apitest-:module','Config','search','/apiteststatic/*','text/css;\x20charset=utf-8','push','path','3189486DhzHdb','Scope','Environment','existsSync','__apiList__','2cyNuYE','public,\x20max-age=604800','readFileSync','119iCQGwO','substring','Singleton','toString','replace','join','419578EyiIdB','81JoJWLk','Inject','/index.html','/apitest','/apiteststatic/','routes','content-type','metadata','defineProperty','369632Wzlqzy','prefix','decorate','set','11588082eWtSTx','extname','.js','apply','ApitestService','method','getRoutes','apiteststatic','url','object','@midwayjs/core','Request','design:returntype','__devices__','application/javascript;\x20charset=utf-8','apidoc','__decorate','ApitestStaticController','__esModule','318950ymplXr','ScopeEnum','.css','config','apitest','anncicapi','cache-control','(((.+)+)+)+$','1721212PEQPlU','Param'];a12_0x35f2=function(){return _0x39eb8d;};return a12_0x35f2();}function a12_0x569a(_0x4e7891,_0x40c51f){const _0x3d5659=a12_0x35f2();return a12_0x569a=function(_0x3d82be,_0x158723){_0x3d82be=_0x3d82be-0xea;let _0x35f2bb=_0x3d5659[_0x3d82be];return _0x35f2bb;},a12_0x569a(_0x4e7891,_0x40c51f);}let ApitestStaticController=class ApitestStaticController{async[a12_0x4b2144(0x103)](){const _0x1f3d2f=a12_0x4b2144;if(this[_0x1f3d2f(0xf8)]){const _0x2f3ab2={'module':![]};return this[_0x1f3d2f(0x123)][_0x1f3d2f(0x10a)]()&&(_0x2f3ab2[_0x1f3d2f(0x102)]=!![]),await this[_0x1f3d2f(0x141)][_0x1f3d2f(0xf0)](_0x2f3ab2);}return'';}async[a12_0x4b2144(0x104)](_0x500004){const _0x57f58f=a12_0x4b2144;if(this[_0x57f58f(0xf8)]){const _0x2bfc11={'module':_0x500004};return this[_0x57f58f(0x123)]['isDevelopmentEnvironment']()&&(_0x2bfc11['filepath']=!![]),await this[_0x57f58f(0x141)][_0x57f58f(0xf0)](_0x2bfc11);}return'';}async[a12_0x4b2144(0x144)](){const _0xc2dcca=a12_0x4b2144;if((0x0,path_1['extname'])(this[_0xc2dcca(0x118)][_0xc2dcca(0x108)][_0xc2dcca(0x145)])){var _0x9863e=(0x0,path_1['join'])(__dirname,_0xc2dcca(0xfe)+this['ctx'][_0xc2dcca(0x108)]['url']['replace'](_0xc2dcca(0x134),'/'));if(_0x9863e[_0xc2dcca(0x12a)](_0x9863e['length']-0xb)!=_0xc2dcca(0x132)){this[_0xc2dcca(0x118)]['set'](_0xc2dcca(0xfa),_0xc2dcca(0x127));if((0x0,path_1[_0xc2dcca(0x13e)])(this[_0xc2dcca(0x118)]['request']['url'])==_0xc2dcca(0x13f))this['ctx'][_0xc2dcca(0x13c)]('content-type',_0xc2dcca(0xef));else(0x0,path_1['extname'])(this[_0xc2dcca(0x118)]['request'][_0xc2dcca(0x145)])==_0xc2dcca(0xf6)&&this[_0xc2dcca(0x118)]['set'](_0xc2dcca(0x136),_0xc2dcca(0x11e));return(0x0,fs_1[_0xc2dcca(0x124)])(_0x9863e)&&(0x0,fs_1[_0xc2dcca(0x128)])(_0x9863e,{'encoding':_0xc2dcca(0x113)});}}return'';}};__decorate([(0x0,core_3[a12_0x4b2144(0x131)])(),__metadata(a12_0x4b2144(0x101),Object)],ApitestStaticController[a12_0x4b2144(0x117)],'ctx',void 0x0),__decorate([(0x0,core_3[a12_0x4b2144(0x131)])(),__metadata(a12_0x4b2144(0x101),core_1[a12_0x4b2144(0x10d)])],ApitestStaticController[a12_0x4b2144(0x117)],a12_0x4b2144(0x123),void 0x0),__decorate([(0x0,core_3[a12_0x4b2144(0x131)])(),__metadata(a12_0x4b2144(0x101),ApitestService)],ApitestStaticController[a12_0x4b2144(0x117)],a12_0x4b2144(0x141),void 0x0),__decorate([(0x0,core_3[a12_0x4b2144(0x11b)])('apitest'),__metadata(a12_0x4b2144(0x101),Boolean)],ApitestStaticController[a12_0x4b2144(0x117)],'apitest',void 0x0),__decorate([(0x0,core_3[a12_0x4b2144(0x11b)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a12_0x4b2144(0x117)],a12_0x4b2144(0xf7),void 0x0),__decorate([(0x0,core_2[a12_0x4b2144(0xff)])(a12_0x4b2144(0x133)),__metadata(a12_0x4b2144(0x101),Function),__metadata(a12_0x4b2144(0x116),[]),__metadata(a12_0x4b2144(0xed),Promise)],ApitestStaticController[a12_0x4b2144(0x117)],a12_0x4b2144(0x103),null),__decorate([(0x0,core_2[a12_0x4b2144(0xff)])(a12_0x4b2144(0x11a)),__param(0x0,(0x0,core_2[a12_0x4b2144(0xfd)])('module')),__metadata(a12_0x4b2144(0x101),Function),__metadata(a12_0x4b2144(0x116),[String]),__metadata(a12_0x4b2144(0xed),Promise)],ApitestStaticController[a12_0x4b2144(0x117)],'apitestmodule',null),__decorate([(0x0,core_2['Get'])(a12_0x4b2144(0x11d)),__metadata(a12_0x4b2144(0x101),Function),__metadata(a12_0x4b2144(0x116),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a12_0x4b2144(0x144),null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a12_0x4b2144(0x122)])(core_3[a12_0x4b2144(0xf5)][a12_0x4b2144(0xec)])],ApitestStaticController),exports[a12_0x4b2144(0xf2)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x4d1b76=a13_0x59db;function a13_0x2d15(){const _0x23143f=['Scope','Workbook','cellCount','__decorate','value','ExcelService','addRow','replace','Sheet\x201','get','xlsx','8IWixhk','628552fTiEsb','push','Singleton','format','__metadata','getWorksheet','koa-send','mkdirSync','(((.+)+)+)+$','handler','columns','564588YNeLtp','addWorksheet','function','endsWith','random','Provide','.xlsx','keys','design:type','ScopeEnum','length','__esModule','473130OHLJRQ','decorate','eachCell','substring','startsWith','191501UUhThO','getCell','rowCount','readFile','3fdLBTa','key','getAppDir','exceljs','header','prototype','isNumber','constructor','\x20is\x20read\x20fail','1402180LUhUbT','Api\x20Excel\x20Error:\x20','app','121877bwKuRe','metadata','frozen','@midwayjs/core','parse','App','existsSync','defineProperty','96700uSUvyA','export','getOwnPropertyDescriptor','search','toString'];a13_0x2d15=function(){return _0x23143f;};return a13_0x2d15();}(function(_0x4aac14,_0x3a1032){const _0x18d92b=a13_0x59db,_0x1bee6d=_0x4aac14();while(!![]){try{const _0x26e3fd=parseInt(_0x18d92b(0x76))/0x1+-parseInt(_0x18d92b(0x8e))/0x2*(-parseInt(_0x18d92b(0x7a))/0x3)+parseInt(_0x18d92b(0x9f))/0x4+-parseInt(_0x18d92b(0x83))/0x5+parseInt(_0x18d92b(0xb6))/0x6+parseInt(_0x18d92b(0x86))/0x7*(parseInt(_0x18d92b(0x9e))/0x8)+-parseInt(_0x18d92b(0xaa))/0x9;if(_0x26e3fd===_0x3a1032)break;else _0x1bee6d['push'](_0x1bee6d['shift']());}catch(_0x183ea7){_0x1bee6d['push'](_0x1bee6d['shift']());}}}(a13_0x2d15,0x24a47));const a13_0x2b14fc=(function(){let _0x297687=!![];return function(_0x23b79e,_0x4cc3a0){const _0x467eec=_0x297687?function(){if(_0x4cc3a0){const _0x25fc04=_0x4cc3a0['apply'](_0x23b79e,arguments);return _0x4cc3a0=null,_0x25fc04;}}:function(){};return _0x297687=![],_0x467eec;};}()),a13_0xbf3da1=a13_0x2b14fc(this,function(){const _0x3a1a6a=a13_0x59db;return a13_0xbf3da1[_0x3a1a6a(0x92)]()[_0x3a1a6a(0x91)](_0x3a1a6a(0xa7))[_0x3a1a6a(0x92)]()[_0x3a1a6a(0x81)](a13_0xbf3da1)[_0x3a1a6a(0x91)](_0x3a1a6a(0xa7));});a13_0xbf3da1();'use strict';var __decorate=this&&this[a13_0x4d1b76(0x96)]||function(_0x2205a3,_0x4f695d,_0x4b00c3,_0x408a84){const _0x45ec22=a13_0x4d1b76;var _0x30971b=arguments['length'],_0x22d3a8=_0x30971b<0x3?_0x4f695d:_0x408a84===null?_0x408a84=Object[_0x45ec22(0x90)](_0x4f695d,_0x4b00c3):_0x408a84,_0x43da83;if(typeof Reflect==='object'&&typeof Reflect[_0x45ec22(0xb7)]===_0x45ec22(0xac))_0x22d3a8=Reflect['decorate'](_0x2205a3,_0x4f695d,_0x4b00c3,_0x408a84);else{for(var _0x1bf8f6=_0x2205a3[_0x45ec22(0xb4)]-0x1;_0x1bf8f6>=0x0;_0x1bf8f6--)if(_0x43da83=_0x2205a3[_0x1bf8f6])_0x22d3a8=(_0x30971b<0x3?_0x43da83(_0x22d3a8):_0x30971b>0x3?_0x43da83(_0x4f695d,_0x4b00c3,_0x22d3a8):_0x43da83(_0x4f695d,_0x4b00c3))||_0x22d3a8;}return _0x30971b>0x3&&_0x22d3a8&&Object[_0x45ec22(0x8d)](_0x4f695d,_0x4b00c3,_0x22d3a8),_0x22d3a8;},__metadata=this&&this[a13_0x4d1b76(0xa3)]||function(_0x2036b4,_0x4640fb){const _0x5e1301=a13_0x4d1b76;if(typeof Reflect==='object'&&typeof Reflect[_0x5e1301(0x87)]===_0x5e1301(0xac))return Reflect[_0x5e1301(0x87)](_0x2036b4,_0x4640fb);};Object[a13_0x4d1b76(0x8d)](exports,a13_0x4d1b76(0xb5),{'value':!![]}),exports[a13_0x4d1b76(0x98)]=void 0x0;function a13_0x59db(_0x363eca,_0x14d668){const _0x9bfd98=a13_0x2d15();return a13_0x59db=function(_0xbf3da1,_0x2b14fc){_0xbf3da1=_0xbf3da1-0x75;let _0x2d1551=_0x9bfd98[_0xbf3da1];return _0x2d1551;},a13_0x59db(_0x363eca,_0x14d668);}const fs=require('fs'),exceljs=require(a13_0x4d1b76(0x7d)),koasend=require(a13_0x4d1b76(0xa5)),core_1=require(a13_0x4d1b76(0x89));let ExcelService=class ExcelService{async[a13_0x4d1b76(0x8a)](_0x254d95,_0x4ad3f5,_0x3c7234=[0x0]){const _0x42a847=a13_0x4d1b76;var _0x5901a5,_0x5d5a6c;const _0x5d0070=new exceljs[(_0x42a847(0x94))](),_0x928344=[];let _0x95509b=_0x254d95['replace'](/(\\|\/)/g,'/')[_0x42a847(0x9a)](/\/{2,}/g,'/');!(_0x95509b===null||_0x95509b===void 0x0?void 0x0:_0x95509b[_0x42a847(0x75)]('/'))&&(_0x95509b=this[_0x42a847(0x85)][_0x42a847(0x7c)]()+'/'+_0x95509b);try{await _0x5d0070[_0x42a847(0x9d)][_0x42a847(0x79)](_0x95509b);}catch(_0x59ef25){return console['log'](_0x42a847(0x84)+_0x95509b+_0x42a847(0x82)),_0x928344;}for(const _0x33d4a1 of _0x3c7234){const _0x370c5e=lodash[_0x42a847(0x80)](_0x33d4a1)?((_0x5901a5=_0x5d0070['worksheets'])===null||_0x5901a5===void 0x0?void 0x0:_0x5901a5[_0x33d4a1])||undefined:_0x5d0070[_0x42a847(0xa4)](_0x33d4a1);if(_0x370c5e){var _0x2d7094=0x1;const _0x9b869=_0x370c5e['getRow'](0x1),_0x40fbd1=await new Promise(_0x2dd00e=>{const _0x5c7336=_0x42a847,_0x35201a={};_0x9b869[_0x5c7336(0xb8)]((_0x1decf4,_0x2983d1)=>{const _0x192b7a=_0x5c7336;for(const _0x3f4fd6 of _0x4ad3f5){if(_0x1decf4[_0x192b7a(0x97)]==_0x3f4fd6[_0x192b7a(0x7e)])_0x2d7094=0x2,_0x35201a[_0x3f4fd6[_0x192b7a(0x7b)]]={'header':_0x1decf4['col'],'handler':_0x3f4fd6[_0x192b7a(0xa8)]};else{if(!_0x35201a[_0x3f4fd6[_0x192b7a(0x7b)]])try{const _0x614dfe=_0x9b869&&_0x9b869[_0x192b7a(0x77)](_0x3f4fd6[_0x192b7a(0x7e)]);_0x614dfe&&(_0x35201a[_0x3f4fd6[_0x192b7a(0x7b)]]={'header':_0x614dfe['col'],'handler':_0x3f4fd6['handler']});}catch{}}}_0x9b869[_0x192b7a(0x95)]==_0x2983d1&&_0x2dd00e(_0x35201a);});});for(const _0x236cfc of _0x370c5e['findRows'](_0x2d7094,_0x370c5e[_0x42a847(0x78)])){const _0xad73b2={};for(const _0x328cc3 in _0x40fbd1){if(_0x40fbd1[_0x328cc3][_0x42a847(0x7e)]){const _0x27af40=_0x236cfc&&_0x236cfc[_0x42a847(0x77)](_0x40fbd1[_0x328cc3][_0x42a847(0x7e)]);typeof((_0x5d5a6c=_0x40fbd1[_0x328cc3])===null||_0x5d5a6c===void 0x0?void 0x0:_0x5d5a6c[_0x42a847(0xa8)])=='function'?_0xad73b2[_0x328cc3]=await _0x40fbd1[_0x328cc3][_0x42a847(0xa8)](lodash['set']({},_0x328cc3,(_0x27af40===null||_0x27af40===void 0x0?void 0x0:_0x27af40[_0x42a847(0x92)]())||''),_0x27af40['model']):_0xad73b2[_0x328cc3]=(_0x27af40===null||_0x27af40===void 0x0?void 0x0:_0x27af40[_0x42a847(0x92)]())||'';}}Object[_0x42a847(0xb1)](_0xad73b2)[_0x42a847(0xb4)]>0x0&&Object['values'](_0xad73b2)['filter'](_0x14a5f9=>_0x14a5f9!=='')[_0x42a847(0xb4)]>0x0&&_0x928344['push'](_0xad73b2);}}}return _0x928344;}async[a13_0x4d1b76(0x8f)](_0x5a4076,_0x26155e,_0x256cd2,_0x1f6e02){const _0x3fdc92=a13_0x4d1b76;var _0xace0f4,_0x1ad093;const _0x5234ec=new exceljs['Workbook'](),_0x3fd371={},_0x24119b=[],_0x31fa10=_0x5234ec[_0x3fdc92(0xab)](_0x3fdc92(0x9b),{'views':[{'state':_0x3fdc92(0x88),'xSplit':0x1}]});for(const _0x1398e7 in _0x26155e){_0x3fd371[_0x26155e[_0x1398e7][_0x3fdc92(0x7b)]]=_0x26155e[_0x1398e7]['header'],_0x24119b[_0x3fdc92(0xa0)]({'header':_0x26155e[_0x1398e7][_0x3fdc92(0x7e)],'key':(_0xace0f4=_0x26155e[_0x1398e7])===null||_0xace0f4===void 0x0?void 0x0:_0xace0f4[_0x3fdc92(0x7b)][_0x3fdc92(0x9a)](/\./g,'_')});}_0x31fa10[_0x3fdc92(0xa9)]=_0x24119b;for(const _0xf4f23e of _0x256cd2){const _0x21ab70={};for(const _0x39b20c in _0x26155e){typeof((_0x1ad093=_0x26155e[_0x39b20c])===null||_0x1ad093===void 0x0?void 0x0:_0x1ad093['handler'])==_0x3fdc92(0xac)?_0x21ab70[_0x26155e[_0x39b20c][_0x3fdc92(0x7b)]['replace'](/\./g,'_')]=await _0x26155e[_0x39b20c][_0x3fdc92(0xa8)](_0xf4f23e):_0x21ab70[_0x26155e[_0x39b20c][_0x3fdc92(0x7b)][_0x3fdc92(0x9a)](/\./g,'_')]=lodash[_0x3fdc92(0x9c)](_0xf4f23e,_0x26155e[_0x39b20c][_0x3fdc92(0x7b)],'');}_0x31fa10[_0x3fdc92(0x99)](_0x21ab70);}let _0x46b31d='';const _0x14b8e8=_0x5a4076+'-'+lodash[_0x3fdc92(0xae)](0x186a0,0xf423f)+_0x3fdc92(0xb0);if(_0x1f6e02&&_0x1f6e02['startsWith']('/'))_0x46b31d=''+_0x1f6e02;else _0x1f6e02&&!_0x1f6e02['startsWith']('/')&&!_0x1f6e02['startsWith']('\x5c')?_0x46b31d=this[_0x3fdc92(0x85)][_0x3fdc92(0x7c)]()+'/'+_0x1f6e02:_0x46b31d=this[_0x3fdc92(0x85)][_0x3fdc92(0x7c)]()+'/public/xlsx/'+dayjs()[_0x3fdc92(0xa2)]('YYYY/MM/DD');return(_0x46b31d['endsWith']('/')||_0x46b31d[_0x3fdc92(0xad)]('\x5c'))&&(_0x46b31d=_0x46b31d[_0x3fdc92(0xb9)](0x0,_0x46b31d[_0x3fdc92(0xb4)]-0x1)),_0x46b31d=_0x46b31d[_0x3fdc92(0x9a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x3fdc92(0x8c)](_0x46b31d)&&fs[_0x3fdc92(0xa6)](_0x46b31d,{'recursive':!![]}),await _0x5234ec[_0x3fdc92(0x9d)]['writeFile']((_0x46b31d+'/'+_0x14b8e8)[_0x3fdc92(0x9a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x14b8e8,'filepath':(_0x46b31d[_0x3fdc92(0xb9)]((''+this[_0x3fdc92(0x85)][_0x3fdc92(0x7c)]())[_0x3fdc92(0xb4)])+'/'+_0x14b8e8)[_0x3fdc92(0x9a)](/(\\|\/)/g,'/')[_0x3fdc92(0x9a)](/\/{2,}/g,'/')};}async['download'](_0x10f711,_0xb77af1){return await koasend(_0x10f711,''+_0xb77af1);}};__decorate([(0x0,core_1[a13_0x4d1b76(0x8b)])(),__metadata(a13_0x4d1b76(0xb2),Object)],ExcelService[a13_0x4d1b76(0x7f)],a13_0x4d1b76(0x85),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x4d1b76(0xaf)])(),(0x0,core_1[a13_0x4d1b76(0x93)])(core_1[a13_0x4d1b76(0xb3)][a13_0x4d1b76(0xa1)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x31cdf4=a14_0x1915;(function(_0x126451,_0xe6c91c){var _0x3e4e22=a14_0x1915,_0x9f75c4=_0x126451();while(!![]){try{var _0x301b06=-parseInt(_0x3e4e22(0x136))/0x1*(-parseInt(_0x3e4e22(0x143))/0x2)+-parseInt(_0x3e4e22(0x134))/0x3+-parseInt(_0x3e4e22(0x139))/0x4*(-parseInt(_0x3e4e22(0x132))/0x5)+parseInt(_0x3e4e22(0x12e))/0x6*(parseInt(_0x3e4e22(0x130))/0x7)+-parseInt(_0x3e4e22(0x12d))/0x8*(-parseInt(_0x3e4e22(0x13b))/0x9)+parseInt(_0x3e4e22(0x138))/0xa*(parseInt(_0x3e4e22(0x13a))/0xb)+-parseInt(_0x3e4e22(0x141))/0xc;if(_0x301b06===_0xe6c91c)break;else _0x9f75c4['push'](_0x9f75c4['shift']());}catch(_0x428142){_0x9f75c4['push'](_0x9f75c4['shift']());}}}(a14_0x5040,0x2e2e0));var a14_0x3cccee=(function(){var _0x489f9c=!![];return function(_0x403a37,_0x53a4cf){var _0x1c90cf=_0x489f9c?function(){if(_0x53a4cf){var _0x41b6f3=_0x53a4cf['apply'](_0x403a37,arguments);return _0x53a4cf=null,_0x41b6f3;}}:function(){};return _0x489f9c=![],_0x1c90cf;};}()),a14_0x273818=a14_0x3cccee(this,function(){var _0x265869=a14_0x1915;return a14_0x273818['toString']()[_0x265869(0x12b)](_0x265869(0x135))[_0x265869(0x140)]()[_0x265869(0x133)](a14_0x273818)['search']('(((.+)+)+)+$');});a14_0x273818();'use strict';Object[a14_0x31cdf4(0x12c)](exports,a14_0x31cdf4(0x12f),{'value':!![]}),exports[a14_0x31cdf4(0x13d)]=exports[a14_0x31cdf4(0x13c)]=exports[a14_0x31cdf4(0x142)]=exports[a14_0x31cdf4(0x131)]=void 0x0,exports[a14_0x31cdf4(0x131)]=a14_0x31cdf4(0x137),exports[a14_0x31cdf4(0x142)]=a14_0x31cdf4(0x13e),exports[a14_0x31cdf4(0x13c)]=a14_0x31cdf4(0x13f);class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;function a14_0x1915(_0xcef3f9,_0x1d6dc1){var _0x499c7b=a14_0x5040();return a14_0x1915=function(_0x273818,_0x3cccee){_0x273818=_0x273818-0x12b;var _0x5040f9=_0x499c7b[_0x273818];return _0x5040f9;},a14_0x1915(_0xcef3f9,_0x1d6dc1);}function a14_0x5040(){var _0x530342=['(((.+)+)+)+$','117373fhZPHe','anncic-api:action','800qdmDtB','8avEAZQ','9185CmLhPb','54PbZNrv','APPSCONFIG_KEY','AppsConfigTmp','anncic-api:action:route','anncic-api:apps:config','toString','7478916eMWpZT','ACTION_ROUTE_KEY','2rkPDOR','search','defineProperty','325216XFiVDq','583890VtXvjf','__esModule','21NlBJkV','ACTION_KEY','749770aHsnlq','constructor','622629VBPtxd'];a14_0x5040=function(){return _0x530342;};return a14_0x5040();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x53b97b=a15_0x29f4;(function(_0x562b73,_0xf0d343){var _0xed2bf2=a15_0x29f4,_0x2e5e01=_0x562b73();while(!![]){try{var _0xd93edd=-parseInt(_0xed2bf2(0x11c))/0x1*(parseInt(_0xed2bf2(0x123))/0x2)+parseInt(_0xed2bf2(0x10d))/0x3*(-parseInt(_0xed2bf2(0x11b))/0x4)+-parseInt(_0xed2bf2(0x10f))/0x5+-parseInt(_0xed2bf2(0x117))/0x6+-parseInt(_0xed2bf2(0x113))/0x7*(-parseInt(_0xed2bf2(0x114))/0x8)+-parseInt(_0xed2bf2(0x119))/0x9+parseInt(_0xed2bf2(0x10c))/0xa;if(_0xd93edd===_0xf0d343)break;else _0x2e5e01['push'](_0x2e5e01['shift']());}catch(_0x4dcab9){_0x2e5e01['push'](_0x2e5e01['shift']());}}}(a15_0x43f6,0x889e2));function a15_0x29f4(_0x441058,_0x1cd732){var _0xd99e72=a15_0x43f6();return a15_0x29f4=function(_0x23564c,_0x46205e){_0x23564c=_0x23564c-0xfc;var _0x43f6bb=_0xd99e72[_0x23564c];return _0x43f6bb;},a15_0x29f4(_0x441058,_0x1cd732);}var a15_0x46205e=(function(){var _0x44e99a=!![];return function(_0x1c8745,_0x541245){var _0x21379d=_0x44e99a?function(){if(_0x541245){var _0x3f3580=_0x541245['apply'](_0x1c8745,arguments);return _0x541245=null,_0x3f3580;}}:function(){};return _0x44e99a=![],_0x21379d;};}()),a15_0x23564c=a15_0x46205e(this,function(){var _0x253c84=a15_0x29f4;return a15_0x23564c[_0x253c84(0x10a)]()[_0x253c84(0x107)](_0x253c84(0xff))[_0x253c84(0x10a)]()[_0x253c84(0x121)](a15_0x23564c)[_0x253c84(0x107)](_0x253c84(0xff));});a15_0x23564c();'use strict';var __decorate=this&&this[a15_0x53b97b(0x11a)]||function(_0x46b2ee,_0x385b9b,_0x46c2cf,_0x5124ec){var _0x4f1141=a15_0x53b97b,_0x368fff=arguments[_0x4f1141(0x105)],_0x59f345=_0x368fff<0x3?_0x385b9b:_0x5124ec===null?_0x5124ec=Object[_0x4f1141(0x124)](_0x385b9b,_0x46c2cf):_0x5124ec,_0x2ba8e5;if(typeof Reflect===_0x4f1141(0x11e)&&typeof Reflect[_0x4f1141(0x103)]===_0x4f1141(0x102))_0x59f345=Reflect[_0x4f1141(0x103)](_0x46b2ee,_0x385b9b,_0x46c2cf,_0x5124ec);else{for(var _0x411de6=_0x46b2ee[_0x4f1141(0x105)]-0x1;_0x411de6>=0x0;_0x411de6--)if(_0x2ba8e5=_0x46b2ee[_0x411de6])_0x59f345=(_0x368fff<0x3?_0x2ba8e5(_0x59f345):_0x368fff>0x3?_0x2ba8e5(_0x385b9b,_0x46c2cf,_0x59f345):_0x2ba8e5(_0x385b9b,_0x46c2cf))||_0x59f345;}return _0x368fff>0x3&&_0x59f345&&Object[_0x4f1141(0x11d)](_0x385b9b,_0x46c2cf,_0x59f345),_0x59f345;},__metadata=this&&this[a15_0x53b97b(0x110)]||function(_0x441548,_0x37d9bd){var _0x301782=a15_0x53b97b;if(typeof Reflect===_0x301782(0x11e)&&typeof Reflect[_0x301782(0x11f)]===_0x301782(0x102))return Reflect[_0x301782(0x11f)](_0x441548,_0x37d9bd);};Object[a15_0x53b97b(0x11d)](exports,a15_0x53b97b(0x104),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x53b97b(0x120));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a15_0x53b97b(0xfd)][a15_0x53b97b(0x106)]()[a15_0x53b97b(0x112)]()[a15_0x53b97b(0xfe)](0x1),'第一页为1,第二页为2'),__metadata('design:type',Number)],PageDTO[a15_0x53b97b(0x10e)],a15_0x53b97b(0x111),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x53b97b(0x122),validator_1[a15_0x53b97b(0xfd)][a15_0x53b97b(0x106)]()['integer']()[a15_0x53b97b(0xfe)](0x1)),__metadata(a15_0x53b97b(0x101),Number)],PageDTO['prototype'],a15_0x53b97b(0x116),void 0x0),__decorate([(0x0,validator_1[a15_0x53b97b(0x109)])('排序方式',validator_1[a15_0x53b97b(0xfd)]['string']()[a15_0x53b97b(0x10b)]()),__metadata(a15_0x53b97b(0x101),String)],PageDTO[a15_0x53b97b(0x10e)],a15_0x53b97b(0xfc),void 0x0),__decorate([(0x0,validator_1[a15_0x53b97b(0x109)])(a15_0x53b97b(0x108),validator_1[a15_0x53b97b(0xfd)][a15_0x53b97b(0x106)]()[a15_0x53b97b(0x112)]()[a15_0x53b97b(0x115)](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO[a15_0x53b97b(0x10e)],a15_0x53b97b(0x100),void 0x0),exports[a15_0x53b97b(0x118)]=PageDTO;function a15_0x43f6(){var _0x3dd3fe=['_order','RuleType','min','(((.+)+)+)+$','_isreverse','design:type','function','decorate','__esModule','length','number','search','是否倒序','Rule','toString','trim','19688500pzIdIt','12JMzAjc','prototype','743145jYfBim','__metadata','_page','integer','120183sDbRDc','488TzOtIL','valid','_size','2194290hsImQW','PageDTO','4253634Pxdxfw','__decorate','1082580cYKsJf','7SnVKwU','defineProperty','object','metadata','@anncic-api/validator','constructor','分页数量','110578ApPmtK','getOwnPropertyDescriptor'];a15_0x43f6=function(){return _0x3dd3fe;};return a15_0x43f6();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a16_0x2b37(){var _0x1205f7=['(((.+)+)+)+$','11xTPgux','search','INTERCEPT_KEY','25epqvCJ','5074332ilNQdg','19625964mBHCvs','defineProperty','InterceptTargetTmp','238338zDTsoV','1249743nrGPMD','anncic-api:intercept','154932giPXCR','apply','110WthynJ','9Qagpxh','7mlpthF','8042288bwWiMz','constructor','__esModule','898598VvwbyW'];a16_0x2b37=function(){return _0x1205f7;};return a16_0x2b37();}var a16_0x30e335=a16_0x269f;function a16_0x269f(_0xe31b25,_0x3e37a9){var _0x51aac1=a16_0x2b37();return a16_0x269f=function(_0x5bb7f8,_0x4f2df6){_0x5bb7f8=_0x5bb7f8-0x1d8;var _0x2b37aa=_0x51aac1[_0x5bb7f8];return _0x2b37aa;},a16_0x269f(_0xe31b25,_0x3e37a9);}(function(_0x4fd3ae,_0x261452){var _0x309bd4=a16_0x269f,_0x2d78bc=_0x4fd3ae();while(!![]){try{var _0xd5a98c=parseInt(_0x309bd4(0x1e5))/0x1+parseInt(_0x309bd4(0x1da))/0x2*(-parseInt(_0x309bd4(0x1ea))/0x3)+-parseInt(_0x309bd4(0x1e7))/0x4*(parseInt(_0x309bd4(0x1df))/0x5)+-parseInt(_0x309bd4(0x1e0))/0x6*(-parseInt(_0x309bd4(0x1eb))/0x7)+-parseInt(_0x309bd4(0x1ec))/0x8+parseInt(_0x309bd4(0x1e4))/0x9*(-parseInt(_0x309bd4(0x1e9))/0xa)+parseInt(_0x309bd4(0x1dc))/0xb*(parseInt(_0x309bd4(0x1e1))/0xc);if(_0xd5a98c===_0x261452)break;else _0x2d78bc['push'](_0x2d78bc['shift']());}catch(_0x2a093e){_0x2d78bc['push'](_0x2d78bc['shift']());}}}(a16_0x2b37,0xd9f8c));var a16_0x4f2df6=(function(){var _0x867f0b=!![];return function(_0x18171a,_0x25cf0b){var _0x28c216=_0x867f0b?function(){var _0x1daf7f=a16_0x269f;if(_0x25cf0b){var _0x4f5c3b=_0x25cf0b[_0x1daf7f(0x1e8)](_0x18171a,arguments);return _0x25cf0b=null,_0x4f5c3b;}}:function(){};return _0x867f0b=![],_0x28c216;};}()),a16_0x5bb7f8=a16_0x4f2df6(this,function(){var _0x33f838=a16_0x269f;return a16_0x5bb7f8['toString']()[_0x33f838(0x1dd)](_0x33f838(0x1db))['toString']()[_0x33f838(0x1d8)](a16_0x5bb7f8)[_0x33f838(0x1dd)](_0x33f838(0x1db));});a16_0x5bb7f8();'use strict';Object[a16_0x30e335(0x1e2)](exports,a16_0x30e335(0x1d9),{'value':!![]}),exports[a16_0x30e335(0x1e3)]=exports[a16_0x30e335(0x1de)]=void 0x0,exports[a16_0x30e335(0x1de)]=a16_0x30e335(0x1e6);class InterceptTargetTmp{}exports[a16_0x30e335(0x1e3)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.5.
|
|
21
|
-
"@anncic-api/core": "^1.5.
|
|
22
|
-
"@anncic-api/event": "^1.5.
|
|
23
|
-
"@anncic-api/typeorm": "^1.5.
|
|
24
|
-
"@anncic-api/validator": "^1.5.
|
|
20
|
+
"@anncic-api/cache": "^1.5.3",
|
|
21
|
+
"@anncic-api/core": "^1.5.3",
|
|
22
|
+
"@anncic-api/event": "^1.5.3",
|
|
23
|
+
"@anncic-api/typeorm": "^1.5.3",
|
|
24
|
+
"@anncic-api/validator": "^1.5.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^1.5.
|
|
30
|
+
"anncic-apihelper": "^1.5.3",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3b35a65d8f1cf2ed7797297cf967581c78cb5b3a"
|
|
41
41
|
}
|