anncic-api 2.0.10 → 2.0.11
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_0x34d80f=a0_0x38d0;(function(_0x2c1c77,_0x3acac5){var _0x4d8fe4=a0_0x38d0,_0x3d2b00=_0x2c1c77();while(!![]){try{var _0x173dc5=-parseInt(_0x4d8fe4(0x19e))/0x1+parseInt(_0x4d8fe4(0x1a3))/0x2*(-parseInt(_0x4d8fe4(0x19d))/0x3)+-parseInt(_0x4d8fe4(0x18f))/0x4+parseInt(_0x4d8fe4(0x18c))/0x5*(parseInt(_0x4d8fe4(0x195))/0x6)+-parseInt(_0x4d8fe4(0x19c))/0x7*(parseInt(_0x4d8fe4(0x191))/0x8)+-parseInt(_0x4d8fe4(0x1a0))/0x9*(parseInt(_0x4d8fe4(0x19f))/0xa)+parseInt(_0x4d8fe4(0x198))/0xb;if(_0x173dc5===_0x3acac5)break;else _0x3d2b00['push'](_0x3d2b00['shift']());}catch(_0x6f82ab){_0x3d2b00['push'](_0x3d2b00['shift']());}}}(a0_0x245d,0xcd947));var a0_0x3f7a6f=(function(){var _0x2d068c=!![];return function(_0x18f786,_0x4c35c2){var _0x15e6c2=_0x2d068c?function(){var _0x3260fb=a0_0x38d0;if(_0x4c35c2){var _0x59d9bc=_0x4c35c2[_0x3260fb(0x18e)](_0x18f786,arguments);return _0x4c35c2=null,_0x59d9bc;}}:function(){};return _0x2d068c=![],_0x15e6c2;};}()),a0_0x38444c=a0_0x3f7a6f(this,function(){var _0x4f739d=a0_0x38d0;return a0_0x38444c[_0x4f739d(0x197)]()['search'](_0x4f739d(0x192))[_0x4f739d(0x197)]()[_0x4f739d(0x199)](a0_0x38444c)[_0x4f739d(0x190)]('(((.+)+)+)+$');});a0_0x38444c();'use strict';function a0_0x245d(){var _0x2c180b=['20mb','appDir','14bTFeFj','1071QsLZNC','487866DMtkBg','1142990WQZwrp','27phCkJd','default','/runtime/.upload','7078NIvMMa','4167685GpWSzO','dhauo1234420123gg3234901','apply','6712476ZmsnJc','search','6540320tyfITf','(((.+)+)+)+$','name','zhiulanuiy7892387985hnoi','6WsmNnN','text','toString','59574933sakTRG','constructor'];a0_0x245d=function(){return _0x2c180b;};return a0_0x245d();}function a0_0x38d0(_0x1dce3c,_0x11bb1b){var _0x458ea8=a0_0x245d();return a0_0x38d0=function(_0x38444c,_0x3f7a6f){_0x38444c=_0x38444c-0x18c;var _0x245dfb=_0x458ea8[_0x38444c];return _0x245dfb;},a0_0x38d0(_0x1dce3c,_0x11bb1b);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x34d80f(0x1a1)]=_0x43f5d4=>{var _0x3bcfd3=a0_0x34d80f;return{'apitest':!![],'keys':_0x43f5d4[_0x3bcfd3(0x193)],'anncicapi':{'password':_0x3bcfd3(0x194),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x3bcfd3(0x18d)}}},'bodyParser':{'enableTypes':['json','form',_0x3bcfd3(0x196),'xml'],'formLimit':_0x3bcfd3(0x19a),'jsonLimit':_0x3bcfd3(0x19a),'textLimit':_0x3bcfd3(0x19a),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x43f5d4[_0x3bcfd3(0x19b)]+_0x3bcfd3(0x1a2),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x52a6c4=a1_0x2bcf;(function(_0x209a4a,_0x2fda9f){var _0x5daa60=a1_0x2bcf,_0x43f5a1=_0x209a4a();while(!![]){try{var _0x101d99=-parseInt(_0x5daa60(0x74))/0x1*(-parseInt(_0x5daa60(0x80))/0x2)+-parseInt(_0x5daa60(0x77))/0x3*(parseInt(_0x5daa60(0x76))/0x4)+parseInt(_0x5daa60(0x75))/0x5*(-parseInt(_0x5daa60(0x81))/0x6)+-parseInt(_0x5daa60(0x7b))/0x7*(-parseInt(_0x5daa60(0x72))/0x8)+-parseInt(_0x5daa60(0x70))/0x9+-parseInt(_0x5daa60(0x7c))/0xa*(parseInt(_0x5daa60(0x71))/0xb)+parseInt(_0x5daa60(0x82))/0xc;if(_0x101d99===_0x2fda9f)break;else _0x43f5a1['push'](_0x43f5a1['shift']());}catch(_0x51707c){_0x43f5a1['push'](_0x43f5a1['shift']());}}}(a1_0x39e5,0xa55fa));var a1_0x4df28b=(function(){var _0x1888b9=!![];return function(_0x14860a,_0x494dd4){var _0x9fc7f2=_0x1888b9?function(){var _0xc57f05=a1_0x2bcf;if(_0x494dd4){var _0x55657e=_0x494dd4[_0xc57f05(0x7e)](_0x14860a,arguments);return _0x494dd4=null,_0x55657e;}}:function(){};return _0x1888b9=![],_0x9fc7f2;};}()),a1_0x695588=a1_0x4df28b(this,function(){var _0x2644e3=a1_0x2bcf;return a1_0x695588[_0x2644e3(0x7f)]()[_0x2644e3(0x73)](_0x2644e3(0x78))['toString']()[_0x2644e3(0x7a)](a1_0x695588)[_0x2644e3(0x73)]('(((.+)+)+)+$');});function a1_0x2bcf(_0x3d5429,_0x5e7939){var _0x20edda=a1_0x39e5();return a1_0x2bcf=function(_0x695588,_0x4df28b){_0x695588=_0x695588-0x70;var _0x39e54f=_0x20edda[_0x695588];return _0x39e54f;},a1_0x2bcf(_0x3d5429,_0x5e7939);}function a1_0x39e5(){var _0x2680da=['336SicYkm','15044136FPQgGH','9247050KAWAOi','693TJsJzE','3907328cgnloP','search','1nrtCBc','4910nURfVC','16YgrUYA','213825tayDdf','(((.+)+)+)+$','defineProperty','constructor','14ZeBqSe','182330BQVCAi','default','apply','toString','1926162QxKrgB'];a1_0x39e5=function(){return _0x2680da;};return a1_0x39e5();}a1_0x695588();'use strict';Object[a1_0x52a6c4(0x79)](exports,'__esModule',{'value':!![]}),exports[a1_0x52a6c4(0x7d)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4c9711=a2_0x3fd2;function a2_0x3fd2(_0x21250e,_0x5ce646){const _0x564a8c=a2_0x99d4();return a2_0x3fd2=function(_0x5f0818,_0x366b03){_0x5f0818=_0x5f0818-0x17c;let _0x99d465=_0x564a8c[_0x5f0818];return _0x99d465;},a2_0x3fd2(_0x21250e,_0x5ce646);}(function(_0x214bb1,_0x8c9ead){const _0x46fa82=a2_0x3fd2,_0x1fcbf3=_0x214bb1();while(!![]){try{const _0x262dfa=parseInt(_0x46fa82(0x1f3))/0x1+-parseInt(_0x46fa82(0x189))/0x2+-parseInt(_0x46fa82(0x1e8))/0x3*(-parseInt(_0x46fa82(0x19c))/0x4)+-parseInt(_0x46fa82(0x1c5))/0x5+parseInt(_0x46fa82(0x1d6))/0x6*(-parseInt(_0x46fa82(0x1ec))/0x7)+-parseInt(_0x46fa82(0x1d4))/0x8*(parseInt(_0x46fa82(0x19b))/0x9)+parseInt(_0x46fa82(0x1ae))/0xa;if(_0x262dfa===_0x8c9ead)break;else _0x1fcbf3['push'](_0x1fcbf3['shift']());}catch(_0x23cbf0){_0x1fcbf3['push'](_0x1fcbf3['shift']());}}}(a2_0x99d4,0x81dea));const a2_0x366b03=(function(){let _0x35ec9f=!![];return function(_0x3fd6ef,_0x423899){const _0x119ed9=_0x35ec9f?function(){const _0x1a617f=a2_0x3fd2;if(_0x423899){const _0x13256d=_0x423899[_0x1a617f(0x1ee)](_0x3fd6ef,arguments);return _0x423899=null,_0x13256d;}}:function(){};return _0x35ec9f=![],_0x119ed9;};}()),a2_0x5f0818=a2_0x366b03(this,function(){const _0x58aaba=a2_0x3fd2;return a2_0x5f0818['toString']()[_0x58aaba(0x1b3)]('(((.+)+)+)+$')[_0x58aaba(0x1cd)]()['constructor'](a2_0x5f0818)[_0x58aaba(0x1b3)](_0x58aaba(0x1ce));});function a2_0x99d4(){const _0x4147db=['prototype','application','length','decorator','1514135AzORLn','./exception/ApiError','REQUEST_OBJ_CTX_KEY','./config/config.production','defineProperty','anncic-api','body','handlerActionRoute','toString','(((.+)+)+)+$','MidwayApplicationManager','文件不存在','apimit','function','getAsync','8hyaoLw','args','75318SBbhNr','forEach','isFunction','toLowerCase','__esModule','@midwayjs/static-file','DEFAULT','isArray','keys','match','koa-send','key','input','Anncic-api\x20static-file\x20:\x20mkdir\x20','query','proceed','requestContext','app','3219LSGkxQ','mkdirSync','koa','defineProperties','371ElbjkM','__decorate','apply','anncic-apihelper','handler','addObject','isDirectory','648762tbRaQl','getApplications','@midwayjs/upload','_matchedRoute','-log','/runtime/apps-','undefined','getAppDir','upload','@midwayjs/koa','decorate','clients','loggerConfig','midwayLogger','context','ApiService','INTERCEPT_KEY','design:type','staticFile','getBaseDir','@anncic-api/core','@anncic-api/event','1328070PnFNZy','defaultsDeep','__metadata','log','./service/ApiService','filterConfig','getConfiguration','tmpdir','Types','checkConfigKeys','getOwnPropertyDescriptor','getClassMetadata','MidwayDecoratorService','intercept','MidwayConfigService','target','isClass','string','189234qfBAtP','628tgsFBe','assign','devices','@midwayjs/cross-domain','hanlderApplications','request','ApiError','object','.log','registerMethodHandler','config','headers','method','metadata','HEADERS_SIGNATURE','./types/action','dir','anncicapi','13679200HmPRrd','App','ACTION_ROUTE_KEY','@midwayjs/core','CustomConfiguration','search','/apps','environment','existsSync','Configuration','isString','default','device','/runtime','Inject','dirs','@anncic-api/validator','./types/intercept','/apps/'];a2_0x99d4=function(){return _0x4147db;};return a2_0x99d4();}a2_0x5f0818();'use strict';var __decorate=this&&this[a2_0x4c9711(0x1ed)]||function(_0x273c50,_0x3d045e,_0x65ffd3,_0x2670cd){const _0x3a8a23=a2_0x4c9711;var _0x21bcfc=arguments[_0x3a8a23(0x1c3)],_0x21b992=_0x21bcfc<0x3?_0x3d045e:_0x2670cd===null?_0x2670cd=Object[_0x3a8a23(0x193)](_0x3d045e,_0x65ffd3):_0x2670cd,_0x17c389;if(typeof Reflect===_0x3a8a23(0x1a3)&&typeof Reflect['decorate']===_0x3a8a23(0x1d2))_0x21b992=Reflect[_0x3a8a23(0x17d)](_0x273c50,_0x3d045e,_0x65ffd3,_0x2670cd);else{for(var _0x2abca2=_0x273c50['length']-0x1;_0x2abca2>=0x0;_0x2abca2--)if(_0x17c389=_0x273c50[_0x2abca2])_0x21b992=(_0x21bcfc<0x3?_0x17c389(_0x21b992):_0x21bcfc>0x3?_0x17c389(_0x3d045e,_0x65ffd3,_0x21b992):_0x17c389(_0x3d045e,_0x65ffd3))||_0x21b992;}return _0x21bcfc>0x3&&_0x21b992&&Object[_0x3a8a23(0x1c9)](_0x3d045e,_0x65ffd3,_0x21b992),_0x21b992;},__metadata=this&&this[a2_0x4c9711(0x18b)]||function(_0xe4f271,_0x31c142){const _0x5dc3eb=a2_0x4c9711;if(typeof Reflect===_0x5dc3eb(0x1a3)&&typeof Reflect[_0x5dc3eb(0x1a9)]===_0x5dc3eb(0x1d2))return Reflect[_0x5dc3eb(0x1a9)](_0xe4f271,_0x31c142);};Object[a2_0x4c9711(0x1c9)](exports,a2_0x4c9711(0x1da),{'value':!![]}),exports[a2_0x4c9711(0x1b2)]=void 0x0;const core_1=require(a2_0x4c9711(0x1b1)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4c9711(0x1c6)),ApiService_1=require(a2_0x4c9711(0x18d)),action_1=require(a2_0x4c9711(0x1ab)),intercept_1=require(a2_0x4c9711(0x1bf)),fs=require('fs'),koasend=require(a2_0x4c9711(0x1e0)),koa=require(a2_0x4c9711(0x17c)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x4c9711(0x1f5)),staticFile=require(a2_0x4c9711(0x1db)),crossDomain=require(a2_0x4c9711(0x19f)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x4c9711(0x1c8)),anncic=require(a2_0x4c9711(0x187)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x4c9711(0x188)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x4c9711(0x1be)),anncicHelper=require(a2_0x4c9711(0x1ef));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x4bd6a5=a2_0x4c9711;await this['filterConfig'](),await this[_0x4bd6a5(0x17f)](),await this[_0x4bd6a5(0x192)](),await this[_0x4bd6a5(0x1cc)](),await this[_0x4bd6a5(0x1a0)]();}async[a2_0x4c9711(0x192)](){}async[a2_0x4c9711(0x1cc)](){const _0x126f7a=a2_0x4c9711,_0x24a8bf=(0x0,core_1[_0x126f7a(0x194)])(intercept_1[_0x126f7a(0x183)],intercept_1['InterceptTargetTmp'])||{};this[_0x126f7a(0x1c4)][_0x126f7a(0x1a5)](action_1[_0x126f7a(0x1b0)],_0x2946f0=>{const _0x1e8396=_0x126f7a,_0x4446f2=_0x2946f0[_0x1e8396(0x1a9)];return{'before':async _0x35e210=>{const _0xd89221=_0x1e8396;var _0x80cd45,_0xc641ae;const _0x359142=(_0x80cd45=_0x35e210===null||_0x35e210===void 0x0?void 0x0:_0x35e210[_0xd89221(0x198)])===null||_0x80cd45===void 0x0?void 0x0:_0x80cd45[core_2[_0xd89221(0x1c7)]];if(_0x359142&&(_0x4446f2===null||_0x4446f2===void 0x0?void 0x0:_0x4446f2['apimit'])){if(!this[_0xd89221(0x182)]['checksign']((_0xc641ae=_0x359142===null||_0x359142===void 0x0?void 0x0:_0x359142[_0xd89221(0x1a1)])===null||_0xc641ae===void 0x0?void 0x0:_0xc641ae[_0xd89221(0x1a7)]))throw new AnnError(ApiError_1[_0xd89221(0x1a2)][_0xd89221(0x1aa)]);}},'around':async _0x31fe40=>{const _0x2f2491=_0x1e8396;var _0x584691,_0x661086,_0x3dbaba;const _0x5834fc=(_0x584691=_0x31fe40===null||_0x31fe40===void 0x0?void 0x0:_0x31fe40['target'])===null||_0x584691===void 0x0?void 0x0:_0x584691[core_2[_0x2f2491(0x1c7)]];if(_0x5834fc&&(_0x4446f2===null||_0x4446f2===void 0x0?void 0x0:_0x4446f2[_0x2f2491(0x1d1)])&&((_0x4446f2===null||_0x4446f2===void 0x0?void 0x0:_0x4446f2[_0x2f2491(0x196)])||typeof(_0x4446f2===null||_0x4446f2===void 0x0?void 0x0:_0x4446f2[_0x2f2491(0x196)])==_0x2f2491(0x1f9))){if(((_0x661086=_0x5834fc[_0x2f2491(0x1a7)])===null||_0x661086===void 0x0?void 0x0:_0x661086[_0x2f2491(0x1ba)])&&((_0x3dbaba=_0x24a8bf===null||_0x24a8bf===void 0x0?void 0x0:_0x24a8bf[_0x5834fc[_0x2f2491(0x1a7)]['device']])===null||_0x3dbaba===void 0x0?void 0x0:_0x3dbaba['length'])>0x0)for(const _0x3f766e of _0x24a8bf[_0x5834fc[_0x2f2491(0x1a7)][_0x2f2491(0x1ba)]]||[]){if(core_1['Types'][_0x2f2491(0x199)](_0x3f766e)){const _0x43a6cf=await _0x5834fc[_0x2f2491(0x1e6)][_0x2f2491(0x1d3)](_0x3f766e);typeof(_0x43a6cf===null||_0x43a6cf===void 0x0?void 0x0:_0x43a6cf[_0x2f2491(0x1df)])=='function'?await _0x43a6cf['match'](_0x5834fc,typeof(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc['method'])==_0x2f2491(0x19a)&&(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc[_0x2f2491(0x1f6)])?_0x5834fc[_0x2f2491(0x1a8)][_0x2f2491(0x1d9)]()+'@'+(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc[_0x2f2491(0x1f6)]):undefined,_0x4446f2)&&await _0x43a6cf[_0x2f2491(0x1f0)](_0x5834fc,typeof(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc['method'])==_0x2f2491(0x19a)&&(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc['_matchedRoute'])?_0x5834fc[_0x2f2491(0x1a8)][_0x2f2491(0x1d9)]()+'@'+(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc['_matchedRoute']):undefined,_0x4446f2):await _0x43a6cf[_0x2f2491(0x1f0)](_0x5834fc,typeof(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc[_0x2f2491(0x1a8)])==_0x2f2491(0x19a)&&(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc[_0x2f2491(0x1f6)])?_0x5834fc[_0x2f2491(0x1a8)][_0x2f2491(0x1d9)]()+'@'+(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc['_matchedRoute']):undefined,_0x4446f2);}else core_1[_0x2f2491(0x191)][_0x2f2491(0x1d8)](_0x3f766e)&&await _0x3f766e(_0x5834fc,typeof(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc['method'])==_0x2f2491(0x19a)&&(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc[_0x2f2491(0x1f6)])?_0x5834fc['method']['toLowerCase']()+'@'+(_0x5834fc===null||_0x5834fc===void 0x0?void 0x0:_0x5834fc[_0x2f2491(0x1f6)]):undefined,_0x4446f2);}}return await _0x31fe40[_0x2f2491(0x1e5)](..._0x31fe40[_0x2f2491(0x1d5)]);},'afterThrow':(_0x3b48c8,_0x139528)=>{throw _0x139528;}};});}async['hanlderApplications'](){const _0x2c58a2=a2_0x4c9711;this['application'][_0x2c58a2(0x1f4)]([_0x2c58a2(0x1ea)])[_0x2c58a2(0x1d7)](_0x3b9501=>{const _0x34d8f2=_0x2c58a2;(_0x3b9501===null||_0x3b9501===void 0x0?void 0x0:_0x3b9501[_0x34d8f2(0x181)])&&Object[_0x34d8f2(0x1eb)](_0x3b9501[_0x34d8f2(0x181)],{'ok':{'value':function(_0x11b3b9,_0x401b1a,_0x5ea919=0x0){return{'code':_0x5ea919,'data':_0x11b3b9,'extra':_0x401b1a};}},'input':{'value':function(_0x3a20de,_0x26f519){const _0x103bc4=_0x34d8f2;var _0x1994b4;const _0x5eb5e0=lodash[_0x103bc4(0x18a)]({},this[_0x103bc4(0x1a1)][_0x103bc4(0x1cb)]||this[_0x103bc4(0x1a1)][((_0x1994b4=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x1994b4===void 0x0?void 0x0:_0x1994b4[_0x103bc4(0x1e1)])||_0x103bc4(0x1cb)]||{},this['request'][_0x103bc4(0x1e4)]||{});return _0x3a20de?lodash['get'](_0x5eb5e0,_0x3a20de,_0x26f519):_0x5eb5e0;}},'when':{'value':async function(_0x27c197,_0x4afeb4){const _0x4ebfc3=_0x34d8f2,_0x17b315=this[_0x4ebfc3(0x1e2)](_0x27c197,null);if(!lodash['isNull'](_0x17b315))return await _0x4afeb4(_0x17b315);}},'only':{'value':function(_0x348481){const _0x5a838d=_0x34d8f2,_0x19e395={};for(let _0x2dd6b9=0x0;_0x2dd6b9<_0x348481[_0x5a838d(0x1c3)];_0x2dd6b9++){lodash[_0x5a838d(0x1dd)](_0x348481[_0x2dd6b9])&&_0x348481[_0x2dd6b9][_0x5a838d(0x1c3)]>0x0&&lodash[_0x5a838d(0x1b8)](_0x348481[_0x2dd6b9][0x0])&&(_0x19e395[_0x348481[_0x2dd6b9][0x0]]=this['input'](_0x348481[_0x2dd6b9][0x0],_0x348481[_0x2dd6b9][_0x5a838d(0x1c3)]>0x1?_0x348481[_0x2dd6b9][0x1]:null));}return _0x19e395;}},'koasend':{'value':function(_0x2defb3,_0x7ad9aa){const _0x10f60a=_0x34d8f2;if(!fs[_0x10f60a(0x1b6)](this['app'][_0x10f60a(0x1fa)]()+'/'+_0x2defb3))return _0x10f60a(0x1d0);return this['attachment'](_0x7ad9aa||_0x2defb3),koasend(this,_0x2defb3);}}});});}async[a2_0x4c9711(0x17f)](){const _0x2b1e3e=a2_0x4c9711;var _0x36c03b,_0x3d76f0;if(fs[_0x2b1e3e(0x1b6)](this[_0x2b1e3e(0x1e7)][_0x2b1e3e(0x186)]()+_0x2b1e3e(0x1b4))&&fs['statSync'](this[_0x2b1e3e(0x1e7)]['getBaseDir']()+_0x2b1e3e(0x1b4))[_0x2b1e3e(0x1f2)]()){const _0x1254f4=this[_0x2b1e3e(0x1a6)][_0x2b1e3e(0x18f)](),_0x2567f3=((_0x36c03b=_0x1254f4===null||_0x1254f4===void 0x0?void 0x0:_0x1254f4[_0x2b1e3e(0x180)])===null||_0x36c03b===void 0x0?void 0x0:_0x36c03b['clients'])||{};for(const _0x492ec1 of fs['readdirSync'](this[_0x2b1e3e(0x1e7)][_0x2b1e3e(0x186)]()+_0x2b1e3e(0x1b4))){if(!fs['statSync'](this[_0x2b1e3e(0x1e7)][_0x2b1e3e(0x186)]()+_0x2b1e3e(0x1c0)+_0x492ec1)['isDirectory']())continue;if(_0x2567f3===null||_0x2567f3===void 0x0?void 0x0:_0x2567f3[_0x492ec1])continue;_0x2567f3[_0x492ec1]=Object[_0x2b1e3e(0x19d)]({},((_0x3d76f0=_0x1254f4===null||_0x1254f4===void 0x0?void 0x0:_0x1254f4[_0x2b1e3e(0x180)])===null||_0x3d76f0===void 0x0?void 0x0:_0x3d76f0[_0x2b1e3e(0x1b9)])||{'maxSize':'1m','dir':this[_0x2b1e3e(0x1e7)][_0x2b1e3e(0x1fa)]()+_0x2b1e3e(0x1bb)},{'enableJSON':!![],'enableConsole':this[_0x2b1e3e(0x1b5)]['isDevelopmentEnvironment'](),'fileLogName':_0x492ec1+_0x2b1e3e(0x1a4),'dir':this[_0x2b1e3e(0x1e7)][_0x2b1e3e(0x1fa)]()+_0x2b1e3e(0x1f8)+_0x492ec1+_0x2b1e3e(0x1f7)});}Object[_0x2b1e3e(0x1de)](_0x2567f3)[_0x2b1e3e(0x1c3)]>0x0&&(!_0x1254f4[_0x2b1e3e(0x180)]&&(_0x1254f4['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x2b1e3e(0x1e7)][_0x2b1e3e(0x1fa)]()+_0x2b1e3e(0x1bb)}}),_0x1254f4[_0x2b1e3e(0x180)][_0x2b1e3e(0x17e)]=_0x2567f3),this[_0x2b1e3e(0x1a6)][_0x2b1e3e(0x1f1)](_0x1254f4);}}async[a2_0x4c9711(0x18e)](){const _0x423888=a2_0x4c9711;var _0x207aa0,_0x178871,_0x1f0ebe,_0x2aa095,_0x251949,_0x4efed5;const _0x53cc59=this[_0x423888(0x1a6)][_0x423888(0x18f)]();((_0x178871=(_0x207aa0=_0x53cc59===null||_0x53cc59===void 0x0?void 0x0:_0x53cc59['anncicapi'])===null||_0x207aa0===void 0x0?void 0x0:_0x207aa0['devices'])===null||_0x178871===void 0x0?void 0x0:_0x178871[_0x423888(0x1dc)])&&Object['keys'](_0x53cc59[_0x423888(0x1ad)][_0x423888(0x19e)])[_0x423888(0x1c3)]>0x1&&delete _0x53cc59[_0x423888(0x1ad)][_0x423888(0x19e)][_0x423888(0x1dc)];if((_0x1f0ebe=_0x53cc59===null||_0x53cc59===void 0x0?void 0x0:_0x53cc59['staticFile'])===null||_0x1f0ebe===void 0x0?void 0x0:_0x1f0ebe['dirs'])for(const _0xe862b6 in _0x53cc59[_0x423888(0x185)][_0x423888(0x1bd)]){((_0x2aa095=_0x53cc59[_0x423888(0x185)][_0x423888(0x1bd)][_0xe862b6])===null||_0x2aa095===void 0x0?void 0x0:_0x2aa095[_0x423888(0x1ac)])&&typeof((_0x251949=_0x53cc59[_0x423888(0x185)][_0x423888(0x1bd)][_0xe862b6])===null||_0x251949===void 0x0?void 0x0:_0x251949[_0x423888(0x1ac)])==_0x423888(0x19a)&&!fs[_0x423888(0x1b6)](_0x53cc59[_0x423888(0x185)]['dirs'][_0xe862b6][_0x423888(0x1ac)])&&(fs[_0x423888(0x1e9)](_0x53cc59[_0x423888(0x185)][_0x423888(0x1bd)][_0xe862b6]['dir'],{'recursive':!![]}),console[_0x423888(0x18c)](_0x423888(0x1e3)+_0x53cc59['staticFile'][_0x423888(0x1bd)][_0xe862b6][_0x423888(0x1ac)]));}((_0x4efed5=_0x53cc59===null||_0x53cc59===void 0x0?void 0x0:_0x53cc59[_0x423888(0x1fb)])===null||_0x4efed5===void 0x0?void 0x0:_0x4efed5[_0x423888(0x190)])&&!fs[_0x423888(0x1b6)](_0x53cc59['upload'][_0x423888(0x190)])&&(fs[_0x423888(0x1e9)](_0x53cc59[_0x423888(0x1fb)]['tmpdir'],{'recursive':!![]}),console['log']('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x53cc59['upload']['tmpdir'])),this[_0x423888(0x1a6)][_0x423888(0x1f1)](_0x53cc59);}};__decorate([(0x0,core_1[a2_0x4c9711(0x1af)])(),__metadata(a2_0x4c9711(0x184),Object)],CustomConfiguration[a2_0x4c9711(0x1c1)],a2_0x4c9711(0x1e7),void 0x0),__decorate([(0x0,core_1[a2_0x4c9711(0x1bc)])(),__metadata('design:type',core_2[a2_0x4c9711(0x197)])],CustomConfiguration[a2_0x4c9711(0x1c1)],a2_0x4c9711(0x1a6),void 0x0),__decorate([(0x0,core_1[a2_0x4c9711(0x1bc)])(),__metadata('design:type',core_2[a2_0x4c9711(0x195)])],CustomConfiguration[a2_0x4c9711(0x1c1)],a2_0x4c9711(0x1c4),void 0x0),__decorate([(0x0,core_1[a2_0x4c9711(0x1bc)])(),__metadata(a2_0x4c9711(0x184),core_2[a2_0x4c9711(0x1cf)])],CustomConfiguration[a2_0x4c9711(0x1c1)],a2_0x4c9711(0x1c2),void 0x0),__decorate([(0x0,core_1[a2_0x4c9711(0x1bc)])(),__metadata(a2_0x4c9711(0x184),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x4c9711(0x1c1)],a2_0x4c9711(0x1b5),void 0x0),__decorate([(0x0,core_1[a2_0x4c9711(0x1bc)])(),__metadata(a2_0x4c9711(0x184),ApiService_1[a2_0x4c9711(0x182)])],CustomConfiguration[a2_0x4c9711(0x1c1)],a2_0x4c9711(0x182),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4c9711(0x1b7)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4c9711(0x1ca),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4c9711(0x1b2)]=CustomConfiguration;
|
|
1
|
+
function a2_0x4cf6(_0x316116,_0x91769c){const _0x119a25=a2_0x3edb();return a2_0x4cf6=function(_0xe5b3,_0x1097e7){_0xe5b3=_0xe5b3-0xd3;let _0x3edbf2=_0x119a25[_0xe5b3];return _0x3edbf2;},a2_0x4cf6(_0x316116,_0x91769c);}function a2_0x3edb(){const _0x4005bd=['isNull','ApiService','./service/ApiService','method','decorator','Anncic-api\x20static-file\x20:\x20mkdir\x20','getAsync','request','anncic-apihelper','MidwayApplicationManager','checksign','33846417dhZswq','filterConfig','clients','isClass','devices','toLowerCase','ApiError','input','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','metadata','ACTION_ROUTE_KEY','./config/config.production','CustomConfiguration','getConfiguration','isDevelopmentEnvironment','./types/action','REQUEST_OBJ_CTX_KEY','midwayLogger','requestContext','function','match','tmpdir','mkdirSync','getApplications','headers','apply','constructor','MidwayConfigService','target','log','query','1710YpcdhL','getClassMetadata','readdirSync','./types/intercept','Inject','Types','Configuration','defineProperty','8khzccu','anncic-api','2667399IhJCfZ','1728738DxOqLY','__metadata','staticFile','getBaseDir','upload','registerMethodHandler','object','@midwayjs/upload','DEFAULT','isFunction','defaultsDeep','handler','/runtime','getAppDir','undefined','app','@anncic-api/cache','decorate','__decorate','onReady','./config/config.default','anncicapi','handlerActionRoute','INTERCEPT_KEY','checkConfigKeys','assign','length','@midwayjs/core','get','statSync','@anncic-api/typeorm','default','@midwayjs/koa','MidwayDecoratorService','toString','config','application','dirs','@anncic-api/validator','1120596Vcptun','prototype','_matchedRoute','HEADERS_SIGNATURE','intercept','key','isString','string','isArray','getOwnPropertyDescriptor','addObject','keys','./exception/ApiError','dir','isDirectory','existsSync','design:type','(((.+)+)+)+$','context','611626PFEHre','koa','6242285kFYpvG','676aEFDto','@anncic-api/event','device','-log','@midwayjs/i18n','apimit','/apps','search'];a2_0x3edb=function(){return _0x4005bd;};return a2_0x3edb();}const a2_0x1e7b05=a2_0x4cf6;(function(_0x16f615,_0xdca57e){const _0x1660bb=a2_0x4cf6,_0x16ca6d=_0x16f615();while(!![]){try{const _0x17231e=-parseInt(_0x1660bb(0x13d))/0x1+-parseInt(_0x1660bb(0x140))/0x2*(parseInt(_0x1660bb(0xf8))/0x3)+-parseInt(_0x1660bb(0x12a))/0x4+-parseInt(_0x1660bb(0x13f))/0x5+-parseInt(_0x1660bb(0x103))/0x6+-parseInt(_0x1660bb(0x102))/0x7+-parseInt(_0x1660bb(0x100))/0x8*(-parseInt(_0x1660bb(0xd9))/0x9);if(_0x17231e===_0xdca57e)break;else _0x16ca6d['push'](_0x16ca6d['shift']());}catch(_0x379ecf){_0x16ca6d['push'](_0x16ca6d['shift']());}}}(a2_0x3edb,0xb9371));const a2_0x1097e7=(function(){let _0x108804=!![];return function(_0x5780b8,_0x1c9f4e){const _0x2805a2=_0x108804?function(){const _0x248d58=a2_0x4cf6;if(_0x1c9f4e){const _0x561791=_0x1c9f4e[_0x248d58(0xf2)](_0x5780b8,arguments);return _0x1c9f4e=null,_0x561791;}}:function(){};return _0x108804=![],_0x2805a2;};}()),a2_0xe5b3=a2_0x1097e7(this,function(){const _0x2a87a8=a2_0x4cf6;return a2_0xe5b3[_0x2a87a8(0x125)]()[_0x2a87a8(0x147)]('(((.+)+)+)+$')[_0x2a87a8(0x125)]()[_0x2a87a8(0xf3)](a2_0xe5b3)[_0x2a87a8(0x147)](_0x2a87a8(0x13b));});a2_0xe5b3();'use strict';var __decorate=this&&this[a2_0x1e7b05(0x115)]||function(_0x46c8e6,_0x27b750,_0xa0073d,_0x250a0e){const _0x87492f=a2_0x1e7b05;var _0x139f36=arguments[_0x87492f(0x11d)],_0x38cfef=_0x139f36<0x3?_0x27b750:_0x250a0e===null?_0x250a0e=Object[_0x87492f(0x133)](_0x27b750,_0xa0073d):_0x250a0e,_0x53c5be;if(typeof Reflect===_0x87492f(0x109)&&typeof Reflect[_0x87492f(0x114)]==='function')_0x38cfef=Reflect[_0x87492f(0x114)](_0x46c8e6,_0x27b750,_0xa0073d,_0x250a0e);else{for(var _0x554115=_0x46c8e6[_0x87492f(0x11d)]-0x1;_0x554115>=0x0;_0x554115--)if(_0x53c5be=_0x46c8e6[_0x554115])_0x38cfef=(_0x139f36<0x3?_0x53c5be(_0x38cfef):_0x139f36>0x3?_0x53c5be(_0x27b750,_0xa0073d,_0x38cfef):_0x53c5be(_0x27b750,_0xa0073d))||_0x38cfef;}return _0x139f36>0x3&&_0x38cfef&&Object['defineProperty'](_0x27b750,_0xa0073d,_0x38cfef),_0x38cfef;},__metadata=this&&this[a2_0x1e7b05(0x104)]||function(_0x40e855,_0x5c80e4){const _0x1771b7=a2_0x1e7b05;if(typeof Reflect===_0x1771b7(0x109)&&typeof Reflect[_0x1771b7(0xe2)]===_0x1771b7(0xec))return Reflect[_0x1771b7(0xe2)](_0x40e855,_0x5c80e4);};Object[a2_0x1e7b05(0xff)](exports,'__esModule',{'value':!![]}),exports[a2_0x1e7b05(0xe5)]=void 0x0;const core_1=require(a2_0x1e7b05(0x11e)),core_2=require(a2_0x1e7b05(0x11e)),ApiError_1=require(a2_0x1e7b05(0x136)),ApiService_1=require(a2_0x1e7b05(0x14a)),action_1=require(a2_0x1e7b05(0xe8)),intercept_1=require(a2_0x1e7b05(0xfb)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x1e7b05(0x123)),i18n=require(a2_0x1e7b05(0x144)),upload=require(a2_0x1e7b05(0x10a)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x1e7b05(0x117)),ConfigProduction=require(a2_0x1e7b05(0xe4)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x1e7b05(0x113)),anncicEvent=require(a2_0x1e7b05(0x141)),anncicTypeorm=require(a2_0x1e7b05(0x121)),anncicValidator=require(a2_0x1e7b05(0x129)),anncicHelper=require(a2_0x1e7b05(0xd6));let CustomConfiguration=class CustomConfiguration{async[a2_0x1e7b05(0x116)](){const _0x2ce9bf=a2_0x1e7b05;await this[_0x2ce9bf(0xda)](),await this['loggerConfig'](),await this[_0x2ce9bf(0x11b)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x1e7b05(0x11b)](){}async[a2_0x1e7b05(0x119)](){const _0x3a4b0a=a2_0x1e7b05,_0x169fc2=(0x0,core_1[_0x3a4b0a(0xf9)])(intercept_1[_0x3a4b0a(0x11a)],intercept_1['InterceptTargetTmp'])||{};this['decorator'][_0x3a4b0a(0x108)](action_1[_0x3a4b0a(0xe3)],_0x158fec=>{const _0x5e9621=_0x3a4b0a,_0x4b826b=_0x158fec[_0x5e9621(0xe2)];return{'before':async _0x233aea=>{const _0x23c785=_0x5e9621;var _0x3e126d,_0x4448d9;const _0xf49d81=(_0x3e126d=_0x233aea===null||_0x233aea===void 0x0?void 0x0:_0x233aea[_0x23c785(0xf5)])===null||_0x3e126d===void 0x0?void 0x0:_0x3e126d[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xf49d81&&(_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b[_0x23c785(0x145)])){if(!this[_0x23c785(0x149)][_0x23c785(0xd8)]((_0x4448d9=_0xf49d81===null||_0xf49d81===void 0x0?void 0x0:_0xf49d81[_0x23c785(0xd5)])===null||_0x4448d9===void 0x0?void 0x0:_0x4448d9[_0x23c785(0xf1)]))throw new AnnError(ApiError_1[_0x23c785(0xdf)][_0x23c785(0x12d)]);}},'around':async _0x33d552=>{const _0x17b63a=_0x5e9621;var _0x3a8ceb,_0x2fb627,_0x985447;const _0x5f03fd=(_0x3a8ceb=_0x33d552===null||_0x33d552===void 0x0?void 0x0:_0x33d552[_0x17b63a(0xf5)])===null||_0x3a8ceb===void 0x0?void 0x0:_0x3a8ceb[core_2[_0x17b63a(0xe9)]];if(_0x5f03fd&&(_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b['apimit'])&&((_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b[_0x17b63a(0x12e)])||typeof(_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b[_0x17b63a(0x12e)])==_0x17b63a(0x111))){if(((_0x2fb627=_0x5f03fd[_0x17b63a(0xf1)])===null||_0x2fb627===void 0x0?void 0x0:_0x2fb627['device'])&&((_0x985447=_0x169fc2===null||_0x169fc2===void 0x0?void 0x0:_0x169fc2[_0x5f03fd[_0x17b63a(0xf1)][_0x17b63a(0x142)]])===null||_0x985447===void 0x0?void 0x0:_0x985447['length'])>0x0)for(const _0x581981 of _0x169fc2[_0x5f03fd[_0x17b63a(0xf1)]['device']]||[]){if(core_1[_0x17b63a(0xfd)][_0x17b63a(0xdc)](_0x581981)){const _0x5c8b1e=await _0x5f03fd[_0x17b63a(0xeb)][_0x17b63a(0xd4)](_0x581981);typeof(_0x5c8b1e===null||_0x5c8b1e===void 0x0?void 0x0:_0x5c8b1e[_0x17b63a(0xed)])==_0x17b63a(0xec)?await _0x5c8b1e['match'](_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd['method'])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd[_0x17b63a(0x14b)][_0x17b63a(0xde)]()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)]):undefined,_0x4b826b)&&await _0x5c8b1e['handler'](_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x14b)])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd['method'][_0x17b63a(0xde)]()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd['_matchedRoute']):undefined,_0x4b826b):await _0x5c8b1e[_0x17b63a(0x10e)](_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x14b)])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd[_0x17b63a(0x14b)][_0x17b63a(0xde)]()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)]):undefined,_0x4b826b);}else core_1['Types'][_0x17b63a(0x10c)](_0x581981)&&await _0x581981(_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x14b)])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd[_0x17b63a(0x14b)]['toLowerCase']()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)]):undefined,_0x4b826b);}}return await _0x33d552['proceed'](..._0x33d552['args']);},'afterThrow':(_0x50e20b,_0x28e6a1)=>{throw _0x28e6a1;}};});}async['hanlderApplications'](){const _0x2c1002=a2_0x1e7b05;this['application'][_0x2c1002(0xf0)]([_0x2c1002(0x13e)])['forEach'](_0x9ed7e1=>{const _0x15cee3=_0x2c1002;(_0x9ed7e1===null||_0x9ed7e1===void 0x0?void 0x0:_0x9ed7e1[_0x15cee3(0x13c)])&&Object['defineProperties'](_0x9ed7e1[_0x15cee3(0x13c)],{'ok':{'value':function(_0x4ad8d9,_0x418ee3,_0x16ae0d=0x0){return{'code':_0x16ae0d,'data':_0x4ad8d9,'extra':_0x418ee3};}},'input':{'value':function(_0x4c4ca9,_0x50c1ff){const _0x3816de=_0x15cee3;var _0xbeb3d9;const _0x1b8ff1=lodash[_0x3816de(0x10d)]({},this[_0x3816de(0xd5)]['body']||this[_0x3816de(0xd5)][((_0xbeb3d9=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0xbeb3d9===void 0x0?void 0x0:_0xbeb3d9[_0x3816de(0x12f)])||'body']||{},this['request'][_0x3816de(0xf7)]||{});return _0x4c4ca9?lodash[_0x3816de(0x11f)](_0x1b8ff1,_0x4c4ca9,_0x50c1ff):_0x1b8ff1;}},'when':{'value':async function(_0x9779b1,_0x4f4053){const _0x3918d8=_0x15cee3,_0x258801=this['input'](_0x9779b1,null);if(!lodash[_0x3918d8(0x148)](_0x258801))return await _0x4f4053(_0x258801);}},'only':{'value':function(_0x28af9f){const _0x59e81e=_0x15cee3,_0x33895d={};for(let _0x5eb1f4=0x0;_0x5eb1f4<_0x28af9f[_0x59e81e(0x11d)];_0x5eb1f4++){lodash[_0x59e81e(0x132)](_0x28af9f[_0x5eb1f4])&&_0x28af9f[_0x5eb1f4][_0x59e81e(0x11d)]>0x0&&lodash[_0x59e81e(0x130)](_0x28af9f[_0x5eb1f4][0x0])&&(_0x33895d[_0x28af9f[_0x5eb1f4][0x0]]=this[_0x59e81e(0xe0)](_0x28af9f[_0x5eb1f4][0x0],_0x28af9f[_0x5eb1f4][_0x59e81e(0x11d)]>0x1?_0x28af9f[_0x5eb1f4][0x1]:null));}return _0x33895d;}},'koasend':{'value':function(_0x90851,_0x23a768){const _0x195777=_0x15cee3;if(!fs['existsSync'](this[_0x195777(0x112)][_0x195777(0x110)]()+'/'+_0x90851))return'文件不存在';return this['attachment'](_0x23a768||_0x90851),koasend(this,_0x90851);}}});});}async['loggerConfig'](){const _0x32fdab=a2_0x1e7b05;var _0x106c3f,_0x2f2d05;if(fs[_0x32fdab(0x139)](this['app'][_0x32fdab(0x106)]()+_0x32fdab(0x146))&&fs[_0x32fdab(0x120)](this[_0x32fdab(0x112)][_0x32fdab(0x106)]()+'/apps')[_0x32fdab(0x138)]()){const _0xfac59d=this[_0x32fdab(0x126)]['getConfiguration'](),_0x13f791=((_0x106c3f=_0xfac59d===null||_0xfac59d===void 0x0?void 0x0:_0xfac59d[_0x32fdab(0xea)])===null||_0x106c3f===void 0x0?void 0x0:_0x106c3f[_0x32fdab(0xdb)])||{};for(const _0x3260eb of fs[_0x32fdab(0xfa)](this[_0x32fdab(0x112)]['getBaseDir']()+_0x32fdab(0x146))){if(!fs[_0x32fdab(0x120)](this[_0x32fdab(0x112)][_0x32fdab(0x106)]()+'/apps/'+_0x3260eb)[_0x32fdab(0x138)]())continue;if(_0x13f791===null||_0x13f791===void 0x0?void 0x0:_0x13f791[_0x3260eb])continue;_0x13f791[_0x3260eb]=Object[_0x32fdab(0x11c)]({},((_0x2f2d05=_0xfac59d===null||_0xfac59d===void 0x0?void 0x0:_0xfac59d[_0x32fdab(0xea)])===null||_0x2f2d05===void 0x0?void 0x0:_0x2f2d05[_0x32fdab(0x122)])||{'maxSize':'1m','dir':this['app'][_0x32fdab(0x110)]()+_0x32fdab(0x10f)},{'enableJSON':!![],'enableConsole':this['environment'][_0x32fdab(0xe7)](),'fileLogName':_0x3260eb+'.log','dir':this[_0x32fdab(0x112)]['getAppDir']()+'/runtime/apps-'+_0x3260eb+_0x32fdab(0x143)});}Object[_0x32fdab(0x135)](_0x13f791)[_0x32fdab(0x11d)]>0x0&&(!_0xfac59d['midwayLogger']&&(_0xfac59d[_0x32fdab(0xea)]={'default':{'maxSize':'1m','dir':this[_0x32fdab(0x112)][_0x32fdab(0x110)]()+_0x32fdab(0x10f)}}),_0xfac59d[_0x32fdab(0xea)][_0x32fdab(0xdb)]=_0x13f791),this[_0x32fdab(0x126)][_0x32fdab(0x134)](_0xfac59d);}}async['filterConfig'](){const _0x58d2df=a2_0x1e7b05;var _0x4531cb,_0x1bd80c,_0x271283,_0x3ae2cb,_0x7c07c7,_0x488b78;const _0x2a4b7d=this[_0x58d2df(0x126)][_0x58d2df(0xe6)]();((_0x1bd80c=(_0x4531cb=_0x2a4b7d===null||_0x2a4b7d===void 0x0?void 0x0:_0x2a4b7d[_0x58d2df(0x118)])===null||_0x4531cb===void 0x0?void 0x0:_0x4531cb[_0x58d2df(0xdd)])===null||_0x1bd80c===void 0x0?void 0x0:_0x1bd80c[_0x58d2df(0x10b)])&&Object[_0x58d2df(0x135)](_0x2a4b7d[_0x58d2df(0x118)][_0x58d2df(0xdd)])[_0x58d2df(0x11d)]>0x1&&delete _0x2a4b7d['anncicapi'][_0x58d2df(0xdd)][_0x58d2df(0x10b)];if((_0x271283=_0x2a4b7d===null||_0x2a4b7d===void 0x0?void 0x0:_0x2a4b7d[_0x58d2df(0x105)])===null||_0x271283===void 0x0?void 0x0:_0x271283[_0x58d2df(0x128)])for(const _0x53bc1e in _0x2a4b7d[_0x58d2df(0x105)][_0x58d2df(0x128)]){((_0x3ae2cb=_0x2a4b7d[_0x58d2df(0x105)]['dirs'][_0x53bc1e])===null||_0x3ae2cb===void 0x0?void 0x0:_0x3ae2cb[_0x58d2df(0x137)])&&typeof((_0x7c07c7=_0x2a4b7d[_0x58d2df(0x105)]['dirs'][_0x53bc1e])===null||_0x7c07c7===void 0x0?void 0x0:_0x7c07c7[_0x58d2df(0x137)])==_0x58d2df(0x131)&&!fs[_0x58d2df(0x139)](_0x2a4b7d['staticFile']['dirs'][_0x53bc1e][_0x58d2df(0x137)])&&(fs[_0x58d2df(0xef)](_0x2a4b7d[_0x58d2df(0x105)][_0x58d2df(0x128)][_0x53bc1e]['dir'],{'recursive':!![]}),console[_0x58d2df(0xf6)](_0x58d2df(0xd3)+_0x2a4b7d['staticFile'][_0x58d2df(0x128)][_0x53bc1e]['dir']));}((_0x488b78=_0x2a4b7d===null||_0x2a4b7d===void 0x0?void 0x0:_0x2a4b7d['upload'])===null||_0x488b78===void 0x0?void 0x0:_0x488b78[_0x58d2df(0xee)])&&!fs[_0x58d2df(0x139)](_0x2a4b7d[_0x58d2df(0x107)]['tmpdir'])&&(fs[_0x58d2df(0xef)](_0x2a4b7d[_0x58d2df(0x107)]['tmpdir'],{'recursive':!![]}),console[_0x58d2df(0xf6)](_0x58d2df(0xe1)+_0x2a4b7d[_0x58d2df(0x107)]['tmpdir'])),this[_0x58d2df(0x126)][_0x58d2df(0x134)](_0x2a4b7d);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x1e7b05(0x13a),Object)],CustomConfiguration[a2_0x1e7b05(0x12b)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x1e7b05(0xfc)])(),__metadata('design:type',core_2[a2_0x1e7b05(0xf4)])],CustomConfiguration[a2_0x1e7b05(0x12b)],a2_0x1e7b05(0x126),void 0x0),__decorate([(0x0,core_1[a2_0x1e7b05(0xfc)])(),__metadata(a2_0x1e7b05(0x13a),core_2[a2_0x1e7b05(0x124)])],CustomConfiguration['prototype'],a2_0x1e7b05(0x14c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x1e7b05(0x13a),core_2[a2_0x1e7b05(0xd7)])],CustomConfiguration['prototype'],a2_0x1e7b05(0x127),void 0x0),__decorate([(0x0,core_1[a2_0x1e7b05(0xfc)])(),__metadata(a2_0x1e7b05(0x13a),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x1e7b05(0x12b)],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x1e7b05(0x13a),ApiService_1[a2_0x1e7b05(0x149)])],CustomConfiguration['prototype'],a2_0x1e7b05(0x149),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x1e7b05(0xfe)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x1e7b05(0x101),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1e7b05(0xe5)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a3_0xb8d8(){const _0xd2a475=['filepath','../types/action','route','174mFplSR','startsWith','\x20文件请放在app/controller/文件下','AppsConfigTmp','(((.+)+)+)+$','Action','match','defineProperty','/controller/文件下','@midwayjs/core','endsWith','-controller','join','10298168dXzjKW','13243653ebNIjE','split','length','ACTION_KEY','2962926Sqntfh','toString','basic/controller/','/apps/','-action','prefix','10CGXwkx','trim','replace','existsSync','apps/','21zYnSha','filter','parseRoute','11722gbdRqY','48251423SuohnJ','/controller/','app/controller/','saveModule','4PnbpOl','module','splice','constructor','middleware','7641825RpYgGj','saveClassMetadata','toLowerCase','__esModule','APPSCONFIG_KEY','indexOf','/config.','search','substring','middlewareIgnore','rootpath','apply','Controller','3917415xdxtfZ'];a3_0xb8d8=function(){return _0xd2a475;};return a3_0xb8d8();}const a3_0x11e367=a3_0x4e07;(function(_0x1705d9,_0x1bf412){const _0x218bc6=a3_0x4e07,_0x14eeac=_0x1705d9();while(!![]){try{const _0x43f974=parseInt(_0x218bc6(0x220))/0x1*(parseInt(_0x218bc6(0x205))/0x2)+parseInt(_0x218bc6(0x21c))/0x3+parseInt(_0x218bc6(0x20a))/0x4*(parseInt(_0x218bc6(0x20f))/0x5)+parseInt(_0x218bc6(0x1f7))/0x6*(parseInt(_0x218bc6(0x202))/0x7)+parseInt(_0x218bc6(0x1f2))/0x8+parseInt(_0x218bc6(0x1f3))/0x9*(-parseInt(_0x218bc6(0x1fd))/0xa)+-parseInt(_0x218bc6(0x206))/0xb;if(_0x43f974===_0x1bf412)break;else _0x14eeac['push'](_0x14eeac['shift']());}catch(_0x4a62ed){_0x14eeac['push'](_0x14eeac['shift']());}}}(a3_0xb8d8,0xbab24));const a3_0x30e781=(function(){let _0xd53b3a=!![];return function(_0x25850b,_0x434d67){const _0x9ceb10=_0xd53b3a?function(){const _0x461ceb=a3_0x4e07;if(_0x434d67){const _0x2ec2f9=_0x434d67[_0x461ceb(0x21a)](_0x25850b,arguments);return _0x434d67=null,_0x2ec2f9;}}:function(){};return _0xd53b3a=![],_0x9ceb10;};}()),a3_0x4677b6=a3_0x30e781(this,function(){const _0x15b83b=a3_0x4e07;return a3_0x4677b6[_0x15b83b(0x1f8)]()['search'](_0x15b83b(0x224))[_0x15b83b(0x1f8)]()[_0x15b83b(0x20d)](a3_0x4677b6)[_0x15b83b(0x216)](_0x15b83b(0x224));});function a3_0x4e07(_0x115080,_0x5354e6){const _0x5eeb8f=a3_0xb8d8();return a3_0x4e07=function(_0x4677b6,_0x30e781){_0x4677b6=_0x4677b6-0x1ee;let _0xb8d8f5=_0x5eeb8f[_0x4677b6];return _0xb8d8f5;},a3_0x4e07(_0x115080,_0x5354e6);}a3_0x4677b6();'use strict';Object[a3_0x11e367(0x227)](exports,a3_0x11e367(0x212),{'value':!![]}),exports['parseRoute']=exports[a3_0x11e367(0x225)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x11e367(0x1ee)),action_1=require(a3_0x11e367(0x21e));function Action(_0x57cbce,_0x59d552,_0x5da6ef={'middleware':[],'sensitive':!![]}){return _0xf1f12b=>{const _0x4683bb=a3_0x4e07;var _0x1db84a;_0x5da6ef['tagName']=_0x59d552;const _0x54136a=parseRoute(_0x57cbce);if(_0x54136a['module']){_0x5da6ef[_0x4683bb(0x1fc)]=_0x5da6ef[_0x4683bb(0x1fc)]?'/'+_0x54136a['module']+'/'+_0x5da6ef[_0x4683bb(0x1fc)]:'/'+_0x54136a['route'];_0x54136a[_0x4683bb(0x1fc)]&&(_0x5da6ef[_0x4683bb(0x1fc)]='/'+_0x54136a['prefix']+'/'+_0x5da6ef[_0x4683bb(0x1fc)]);if(fs[_0x4683bb(0x200)](_0x54136a[_0x4683bb(0x219)]+_0x4683bb(0x1fa)+_0x54136a[_0x4683bb(0x20b)]+_0x4683bb(0x215)+(lodash['endsWith'](_0x54136a[_0x4683bb(0x21d)],'ts')?'ts':'js'))){const _0x5a2377=include(_0x54136a[_0x4683bb(0x219)]+_0x4683bb(0x1fa)+_0x54136a[_0x4683bb(0x20b)]+'/config.'+(lodash[_0x4683bb(0x1ef)](_0x54136a[_0x4683bb(0x21d)],'ts')?'ts':'js'));if(_0x5a2377[_0x4683bb(0x20e)]&&lodash['isArray'](_0x5a2377[_0x4683bb(0x20e)])&&_0x5a2377[_0x4683bb(0x20e)][_0x4683bb(0x1f5)]>0x0)for(let _0x1e635a in _0x5a2377[_0x4683bb(0x20e)]){if(((_0x1db84a=_0x5a2377===null||_0x5a2377===void 0x0?void 0x0:_0x5a2377[_0x4683bb(0x218)])===null||_0x1db84a===void 0x0?void 0x0:_0x1db84a[_0x4683bb(0x1f5)])>0x0&&_0x5a2377[_0x4683bb(0x218)][_0x4683bb(0x214)](_0x5a2377[_0x4683bb(0x20e)][_0x1e635a])!=-0x1)continue;_0x5da6ef['middleware']['push'](_0x5a2377['middleware'][_0x1e635a]);}const _0x4fe35a=(0x0,core_1['getClassMetadata'])(action_1[_0x4683bb(0x213)],action_1[_0x4683bb(0x223)])||{};_0x4fe35a[''+_0x54136a[_0x4683bb(0x20b)]]=_0x5a2377,(0x0,core_1[_0x4683bb(0x210)])(action_1[_0x4683bb(0x213)],_0x4fe35a,action_1[_0x4683bb(0x223)]);}_0x5da6ef[_0x4683bb(0x1fc)]=_0x5da6ef[_0x4683bb(0x1fc)][_0x4683bb(0x211)]()[_0x4683bb(0x1ff)](/\/{2,}/g,'/'),(0x0,core_1[_0x4683bb(0x209)])(action_1[_0x4683bb(0x1f6)],_0xf1f12b),(0x0,core_1[_0x4683bb(0x21b)])(_0x5da6ef['prefix'],_0x5da6ef)(_0xf1f12b),(0x0,core_1['saveClassMetadata'])(action_1[_0x4683bb(0x1f6)],{'prefix':_0x5da6ef[_0x4683bb(0x1fc)],'pprefix':_0x54136a[_0x4683bb(0x1fc)],'module':_0x54136a[_0x4683bb(0x20b)],'filepath':_0x54136a['filepath'],'routerOptions':_0x5da6ef},_0xf1f12b);}else _0x5da6ef['prefix']=_0x5da6ef['prefix']?'/'+_0x5da6ef[_0x4683bb(0x1fc)]:'/'+_0x54136a[_0x4683bb(0x21f)],_0x54136a[_0x4683bb(0x1fc)]&&(_0x5da6ef[_0x4683bb(0x1fc)]='/'+_0x54136a[_0x4683bb(0x1fc)]+'/'+_0x5da6ef['prefix']),_0x5da6ef['prefix']=_0x5da6ef[_0x4683bb(0x1fc)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x4683bb(0x209)])(action_1['ACTION_KEY'],_0xf1f12b),(0x0,core_1[_0x4683bb(0x21b)])(_0x5da6ef['prefix'],_0x5da6ef)(_0xf1f12b),(0x0,core_1['saveClassMetadata'])(action_1[_0x4683bb(0x1f6)],{'prefix':_0x5da6ef[_0x4683bb(0x1fc)],'module':_0x54136a[_0x4683bb(0x20b)],'pprefix':_0x54136a[_0x4683bb(0x1fc)],'filepath':_0x54136a[_0x4683bb(0x21d)],'routerOptions':_0x5da6ef},_0xf1f12b);};}exports[a3_0x11e367(0x225)]=Action;function parseRoute(_0x2e3b42){const _0x14e25c=a3_0x11e367;_0x2e3b42=_0x2e3b42['replace'](/(\\|\/)/g,'/');const _0x32e1b2=process['cwd']()[_0x14e25c(0x1ff)](/(\\|\/)/g,'/'),_0x102b6f=_0x2e3b42[_0x14e25c(0x217)](0x0,_0x32e1b2['length']+_0x2e3b42[_0x14e25c(0x217)](_0x32e1b2[_0x14e25c(0x1f5)]+0x1)['indexOf']('/')+0x1),_0x419a0d=_0x2e3b42[_0x14e25c(0x217)](_0x102b6f['length']+0x1)[_0x14e25c(0x1ff)](/(\\|\/)/g,'/'),_0x339414={'route':'','prefix':![],'module':![],'rootpath':_0x102b6f,'filepath':_0x419a0d};if(_0x419a0d[_0x14e25c(0x221)]('app/controller/')||_0x419a0d['startsWith'](_0x14e25c(0x1f9))){const _0x4f3f06=_0x419a0d[_0x14e25c(0x217)]((_0x419a0d[_0x14e25c(0x221)](_0x14e25c(0x208))?_0x14e25c(0x208):'basic/controller/')[_0x14e25c(0x1f5)])[_0x14e25c(0x1f4)]('/')['filter'](_0x551cf9=>_0x551cf9&&_0x551cf9[_0x14e25c(0x1fe)]());return _0x4f3f06[_0x14e25c(0x1f5)]>0x1&&(_0x339414[_0x14e25c(0x1fc)]=_0x4f3f06[0x0][_0x14e25c(0x211)](),_0x4f3f06['splice'](0x0,0x1)),_0x339414['route']=('/'+_0x4f3f06['join']('/'))[_0x14e25c(0x1ff)](/(\.ts|\.js)$/,'')[_0x14e25c(0x1ff)](/\/{2,}/g,'/')[_0x14e25c(0x226)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x14e25c(0x211)]()[_0x14e25c(0x1ff)](/\/\-/g,'/'),_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x1ef)](_0x14e25c(0x1fb))&&(_0x339414[_0x14e25c(0x21f)]=_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x217)](0x0,_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x1f5)]-0x7)),_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x1ef)](_0x14e25c(0x1f0))&&(_0x339414[_0x14e25c(0x21f)]=_0x339414[_0x14e25c(0x21f)]['substring'](0x0,_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x1f5)]-0xb)),_0x339414;}else{if(_0x419a0d[_0x14e25c(0x221)](_0x14e25c(0x201))){const _0x38a0fc=_0x419a0d[_0x14e25c(0x217)](0x0,_0x419a0d['indexOf'](_0x14e25c(0x1fa))+0x5),_0x3aed96=_0x419a0d[_0x14e25c(0x217)](_0x38a0fc[_0x14e25c(0x1f5)]+0x1)[_0x14e25c(0x1ff)](/(\\|\/)/g,'/')[_0x14e25c(0x1f4)]('/')[0x0];if(_0x419a0d[_0x14e25c(0x221)]('apps/'+_0x3aed96+_0x14e25c(0x207))){const _0x441fe8=_0x419a0d[_0x14e25c(0x217)]((_0x38a0fc+'/'+_0x3aed96+_0x14e25c(0x207))[_0x14e25c(0x1f5)])[_0x14e25c(0x1f4)]('/')[_0x14e25c(0x203)](_0x4d5509=>_0x4d5509&&_0x4d5509[_0x14e25c(0x1fe)]());return _0x441fe8[_0x14e25c(0x1f5)]>0x1&&(_0x339414['prefix']=_0x441fe8[0x0]['toLowerCase'](),_0x441fe8[_0x14e25c(0x20c)](0x0,0x1)),_0x339414['module']=_0x3aed96,_0x339414[_0x14e25c(0x21f)]=('/'+_0x3aed96+'/'+_0x441fe8[_0x14e25c(0x1f1)]('/'))[_0x14e25c(0x1ff)](/(\.ts|\.js)$/,'')[_0x14e25c(0x1ff)](/\/{2,}/g,'/')[_0x14e25c(0x226)](/[\/|A-Z]*[^A-Z]+/g)[_0x14e25c(0x1f1)]('-')[_0x14e25c(0x211)]()[_0x14e25c(0x1ff)](/\/\-/g,'/'),_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x1ef)]('-action')&&(_0x339414[_0x14e25c(0x21f)]=_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x217)](0x0,_0x339414[_0x14e25c(0x21f)][_0x14e25c(0x1f5)]-0x7)),_0x339414[_0x14e25c(0x21f)]['endsWith'](_0x14e25c(0x1f0))&&(_0x339414[_0x14e25c(0x21f)]=_0x339414['route'][_0x14e25c(0x217)](0x0,_0x339414[_0x14e25c(0x21f)]['length']-0xb)),_0x339414;}throw new Error(_0x419a0d+'\x20文件请放在apps/'+_0x3aed96+_0x14e25c(0x228));}}throw new Error(_0x419a0d+_0x14e25c(0x222));}exports[a3_0x11e367(0x204)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x1ec1f8=a4_0x4aa7;function a4_0x4aa7(_0x4f1a13,_0x5389c9){const _0x14dae4=a4_0x3777();return a4_0x4aa7=function(_0x85fdaf,_0x38e2b3){_0x85fdaf=_0x85fdaf-0x1e5;let _0x377739=_0x14dae4[_0x85fdaf];return _0x377739;},a4_0x4aa7(_0x4f1a13,_0x5389c9);}(function(_0x5eab69,_0x3d8218){const _0x19b8c7=a4_0x4aa7,_0x454bed=_0x5eab69();while(!![]){try{const _0x4d1219=-parseInt(_0x19b8c7(0x203))/0x1+parseInt(_0x19b8c7(0x1fb))/0x2*(-parseInt(_0x19b8c7(0x209))/0x3)+parseInt(_0x19b8c7(0x1e5))/0x4*(parseInt(_0x19b8c7(0x1ee))/0x5)+parseInt(_0x19b8c7(0x204))/0x6*(parseInt(_0x19b8c7(0x1f0))/0x7)+parseInt(_0x19b8c7(0x1fd))/0x8+-parseInt(_0x19b8c7(0x201))/0x9+parseInt(_0x19b8c7(0x208))/0xa;if(_0x4d1219===_0x3d8218)break;else _0x454bed['push'](_0x454bed['shift']());}catch(_0x22813c){_0x454bed['push'](_0x454bed['shift']());}}}(a4_0x3777,0xd01c4));const a4_0x38e2b3=(function(){let _0x2a6bca=!![];return function(_0x224673,_0x15c1ce){const _0x503e8f=_0x2a6bca?function(){const _0x8638b3=a4_0x4aa7;if(_0x15c1ce){const _0x393ffc=_0x15c1ce[_0x8638b3(0x1f1)](_0x224673,arguments);return _0x15c1ce=null,_0x393ffc;}}:function(){};return _0x2a6bca=![],_0x503e8f;};}()),a4_0x85fdaf=a4_0x38e2b3(this,function(){const _0x553843=a4_0x4aa7;return a4_0x85fdaf[_0x553843(0x1eb)]()[_0x553843(0x1ec)](_0x553843(0x207))[_0x553843(0x1eb)]()[_0x553843(0x1f2)](a4_0x85fdaf)[_0x553843(0x1ec)](_0x553843(0x207));});a4_0x85fdaf();'use strict';Object[a4_0x1ec1f8(0x1ea)](exports,a4_0x1ec1f8(0x20b),{'value':!![]}),exports[a4_0x1ec1f8(0x1f3)]=void 0x0;const validator_1=require(a4_0x1ec1f8(0x202)),core_1=require(a4_0x1ec1f8(0x1f4)),action_1=require(a4_0x1ec1f8(0x1ed));function Api(_0x4a2eaa,_0xb8b3f6=a4_0x1ec1f8(0x1f8),_0x5d10a9='/',_0x4ba813={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xbae36e,_0x1f042b,_0x222b65)=>{const _0x3d1959=a4_0x4aa7;var _0x33f597,_0x54dc55,_0x178589;!_0x4ba813[_0x3d1959(0x206)]&&(_0x4ba813[_0x3d1959(0x206)]=[]);!((_0x33f597=_0x4ba813===null||_0x4ba813===void 0x0?void 0x0:_0x4ba813['validate'])===null||_0x33f597===void 0x0?void 0x0:_0x33f597[_0x3d1959(0x1fe)])&&(_0x4ba813[_0x3d1959(0x205)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3d1959(0x1f9)}});typeof _0x4ba813['apimit']==_0x3d1959(0x1e8)&&(_0x4ba813[_0x3d1959(0x1fa)]=!![]);if(((_0x54dc55=_0x4ba813===null||_0x4ba813===void 0x0?void 0x0:_0x4ba813[_0x3d1959(0x206)])===null||_0x54dc55===void 0x0?void 0x0:_0x54dc55['length'])>0x0&&((_0x178589=_0x4ba813===null||_0x4ba813===void 0x0?void 0x0:_0x4ba813['middlewareIgnore'])===null||_0x178589===void 0x0?void 0x0:_0x178589['length'])>0x0)for(let _0x1855c4 in _0x4ba813[_0x3d1959(0x206)]){_0x4ba813['middlewareIgnore']['indexOf'](_0x4ba813[_0x3d1959(0x206)][_0x1855c4])!==-0x1&&(_0x4ba813[_0x3d1959(0x206)][_0x1855c4]=null);}_0x4ba813[_0x3d1959(0x1f5)]=_0x4a2eaa,(0x0,validator_1[_0x3d1959(0x1e9)])(_0x4ba813[_0x3d1959(0x205)])(_0xbae36e,_0x1f042b,_0x222b65),(0x0,core_1[_0x3d1959(0x1ff)])(Object['assign'](_0x4ba813,{'path':_0x5d10a9,'requestMethod':(_0xb8b3f6==_0x3d1959(0x1ef)?_0x3d1959(0x1f7):_0xb8b3f6)['toLowerCase']()}))(_0xbae36e,_0x1f042b,_0x222b65),(0x0,core_1['attachClassMetadata'])(action_1[_0x3d1959(0x20a)],{'path':_0x5d10a9,'method':_0x1f042b,'apimit':_0x4ba813[_0x3d1959(0x1fa)],'intercept':_0x4ba813[_0x3d1959(0x1f6)],'routerName':_0x4ba813[_0x3d1959(0x1f5)],'description':_0x4ba813[_0x3d1959(0x1e7)],'middleware':(_0x4ba813[_0x3d1959(0x206)]||[])[_0x3d1959(0x200)](_0x351f53=>!!_0x351f53),'requestMethod':(_0xb8b3f6==_0x3d1959(0x1ef)?_0x3d1959(0x1f7):_0xb8b3f6)[_0x3d1959(0x1fc)]()},_0xbae36e),(0x0,core_1[_0x3d1959(0x1e6)])(action_1[_0x3d1959(0x20a)],{'path':_0x5d10a9,'method':_0x1f042b,'apimit':_0x4ba813[_0x3d1959(0x1fa)],'intercept':_0x4ba813[_0x3d1959(0x1f6)],'routerName':_0x4ba813[_0x3d1959(0x1f5)],'description':_0x4ba813['description'],'middleware':(_0x4ba813[_0x3d1959(0x206)]||[])[_0x3d1959(0x200)](_0x1e535b=>!!_0x1e535b),'requestMethod':(_0xb8b3f6==_0x3d1959(0x1ef)?_0x3d1959(0x1f7):_0xb8b3f6)['toLowerCase']()})(_0xbae36e,_0x1f042b,_0x222b65);};}exports[a4_0x1ec1f8(0x1f3)]=Api;function a4_0x3777(){const _0x1e84b4=['apply','constructor','Api','@midwayjs/core','routerName','intercept','delete','get','string','apimit','2sWyaGj','toLowerCase','9262240uyEvSZ','validationOptions','RequestMapping','filter','10347975AnokTY','@anncic-api/validator','1359664DIeiEv','13236WtcmcP','validate','middleware','(((.+)+)+)+$','9344860bKAXuf','3458331FqRgJg','ACTION_ROUTE_KEY','__esModule','3539152FVqezK','createCustomMethodDecorator','description','undefined','Validator','defineProperty','toString','search','../types/action','5evAxxF','del','4879HygJyH'];a4_0x3777=function(){return _0x1e84b4;};return a4_0x3777();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x284fa3=a5_0x1d67;(function(_0xd7883b,_0x3ae21c){const _0x496da5=a5_0x1d67,_0x4431e4=_0xd7883b();while(!![]){try{const _0x3f333c=-parseInt(_0x496da5(0xc8))/0x1+-parseInt(_0x496da5(0xc7))/0x2+-parseInt(_0x496da5(0xd0))/0x3+parseInt(_0x496da5(0xd4))/0x4+-parseInt(_0x496da5(0xd6))/0x5+-parseInt(_0x496da5(0xd1))/0x6*(parseInt(_0x496da5(0xcf))/0x7)+-parseInt(_0x496da5(0xd7))/0x8*(-parseInt(_0x496da5(0xbf))/0x9);if(_0x3f333c===_0x3ae21c)break;else _0x4431e4['push'](_0x4431e4['shift']());}catch(_0x59a66a){_0x4431e4['push'](_0x4431e4['shift']());}}}(a5_0x38d7,0x73233));const a5_0x113a9d=(function(){let _0x2647df=!![];return function(_0x25163c,_0x3a2240){const _0x3a71aa=_0x2647df?function(){if(_0x3a2240){const _0x37618d=_0x3a2240['apply'](_0x25163c,arguments);return _0x3a2240=null,_0x37618d;}}:function(){};return _0x2647df=![],_0x3a71aa;};}()),a5_0xa3305d=a5_0x113a9d(this,function(){const _0x168943=a5_0x1d67;return a5_0xa3305d[_0x168943(0xd2)]()['search']('(((.+)+)+)+$')['toString']()[_0x168943(0xc5)](a5_0xa3305d)[_0x168943(0xd3)](_0x168943(0xc0));});a5_0xa3305d();'use strict';function a5_0x38d7(){const _0x2973ad=['512586NJpRUw','(((.+)+)+)+$','Apitest','RequestMapping','__esModule','isDevelopmentEnvironment','constructor','apidoc','747434lFNgVv','817558CJfnoQ','get','@midwayjs/core','filepath','apitest','getApplicationContext','value','632947jxJkCq','2070258tTvQdH','54KEWAhE','toString','search','1063636oarfBf','MidwayEnvironmentService','2012440SeeYHg','464YugUaU','getAsync','../service/ApitestService','app'];a5_0x38d7=function(){return _0x2973ad;};return a5_0x38d7();}function a5_0x1d67(_0x13acf5,_0x4c9108){const _0x2917f8=a5_0x38d7();return a5_0x1d67=function(_0xa3305d,_0x113a9d){_0xa3305d=_0xa3305d-0xbf;let _0x38d78e=_0x2917f8[_0xa3305d];return _0x38d78e;},a5_0x1d67(_0x13acf5,_0x4c9108);}Object['defineProperty'](exports,a5_0x284fa3(0xc3),{'value':!![]}),exports[a5_0x284fa3(0xc1)]=void 0x0;const core_1=require(a5_0x284fa3(0xca)),ApitestService_1=require(a5_0x284fa3(0xd9));function Apitest(_0x32f118='/apitest',_0x105cdf){return(_0x22b945,_0x1c612d,_0x15e868)=>{const _0x4c052a=a5_0x1d67;return(0x0,core_1[_0x4c052a(0xc2)])({'path':_0x32f118,'requestMethod':_0x4c052a(0xc9)})(_0x22b945,_0x1c612d,_0x15e868),_0x15e868[_0x4c052a(0xce)]=async function(..._0x219fc0){const _0x424a4c=_0x4c052a;var _0x1e6cde;const _0x16f6f4=(_0x1e6cde=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x1e6cde===void 0x0?void 0x0:_0x1e6cde[_0x424a4c(0xda)];if(_0x16f6f4&&_0x16f6f4['getConfig'](_0x424a4c(0xcc))){const _0x597ea0=await _0x16f6f4[_0x424a4c(0xcd)]()['getAsync'](ApitestService_1['ApitestService']),_0x45e291=await _0x16f6f4[_0x424a4c(0xcd)]()[_0x424a4c(0xd8)](core_1[_0x424a4c(0xd5)]);return _0x45e291[_0x424a4c(0xc4)]()&&(_0x105cdf[_0x424a4c(0xcb)]=!![]),await _0x597ea0[_0x424a4c(0xc6)](_0x105cdf);}return'';},_0x15e868;};}exports[a5_0x284fa3(0xc1)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x25afec=a6_0x38d0;(function(_0x5e06c1,_0x23384e){const _0x2a1ed7=a6_0x38d0,_0x3c0c3e=_0x5e06c1();while(!![]){try{const _0x4f64a1=parseInt(_0x2a1ed7(0x1e8))/0x1+-parseInt(_0x2a1ed7(0x1f2))/0x2+parseInt(_0x2a1ed7(0x1f6))/0x3+-parseInt(_0x2a1ed7(0x1e0))/0x4*(-parseInt(_0x2a1ed7(0x1f3))/0x5)+parseInt(_0x2a1ed7(0x1f4))/0x6*(parseInt(_0x2a1ed7(0x1e3))/0x7)+parseInt(_0x2a1ed7(0x1ef))/0x8+-parseInt(_0x2a1ed7(0x1ee))/0x9;if(_0x4f64a1===_0x23384e)break;else _0x3c0c3e['push'](_0x3c0c3e['shift']());}catch(_0x2fc504){_0x3c0c3e['push'](_0x3c0c3e['shift']());}}}(a6_0x21fb,0x8d256));const a6_0x22b0c1=(function(){let _0x527f77=!![];return function(_0xa6c146,_0x412749){const _0x1059e3=_0x527f77?function(){const _0x4d52f7=a6_0x38d0;if(_0x412749){const _0x608f65=_0x412749[_0x4d52f7(0x1f8)](_0xa6c146,arguments);return _0x412749=null,_0x608f65;}}:function(){};return _0x527f77=![],_0x1059e3;};}()),a6_0x44633f=a6_0x22b0c1(this,function(){const _0x490808=a6_0x38d0;return a6_0x44633f[_0x490808(0x1ea)]()[_0x490808(0x1f5)](_0x490808(0x1ec))[_0x490808(0x1ea)]()[_0x490808(0x1fc)](a6_0x44633f)['search'](_0x490808(0x1ec));});function a6_0x21fb(){const _0x3b4bc0=['match','189rGlrnt','Intercept','isArray','includes','InterceptTargetTmp','49169rdgbIL','ScopeEnum','toString','defineProperty','(((.+)+)+)+$','getClassMetadata','16467291tbLeNE','7576944AUuHOM','Scope','../types/intercept','1475006GhrnnW','35QCavFN','50034OvsbPh','search','3271407siqLIP','INTERCEPT_KEY','apply','push','IIntercept','Singleton','constructor','saveClassMetadata','476244CSKWuo','toUpperCase'];a6_0x21fb=function(){return _0x3b4bc0;};return a6_0x21fb();}function a6_0x38d0(_0x7fe8bd,_0x555ecf){const _0x1269c9=a6_0x21fb();return a6_0x38d0=function(_0x44633f,_0x22b0c1){_0x44633f=_0x44633f-0x1df;let _0x21fb53=_0x1269c9[_0x44633f];return _0x21fb53;},a6_0x38d0(_0x7fe8bd,_0x555ecf);}a6_0x44633f();'use strict';Object[a6_0x25afec(0x1eb)](exports,'__esModule',{'value':!![]}),exports[a6_0x25afec(0x1fa)]=exports[a6_0x25afec(0x1e4)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a6_0x25afec(0x1f1));function Intercept(_0x185e8d){return _0x146377=>{const _0x2aab73=a6_0x38d0,_0x2b3043=(0x0,core_1[_0x2aab73(0x1ed)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};for(let _0x3062f of Array[_0x2aab73(0x1e5)](_0x185e8d)?_0x185e8d:[_0x185e8d]){_0x3062f=_0x3062f[_0x2aab73(0x1e1)]();!(_0x2b3043===null||_0x2b3043===void 0x0?void 0x0:_0x2b3043[_0x3062f])&&(_0x2b3043[_0x3062f]=[]);if(_0x2b3043[_0x3062f][_0x2aab73(0x1e6)](_0x146377))continue;_0x2b3043[_0x3062f][_0x2aab73(0x1f9)](_0x146377);}(0x0,core_1['Provide'])()(_0x146377),(0x0,core_1[_0x2aab73(0x1f0)])(core_1[_0x2aab73(0x1e9)][_0x2aab73(0x1fb)])(_0x146377),(0x0,core_1[_0x2aab73(0x1df)])(intercept_1[_0x2aab73(0x1f7)],_0x2b3043,intercept_1[_0x2aab73(0x1e7)]);};}exports[a6_0x25afec(0x1e4)]=Intercept;class IIntercept{async[a6_0x25afec(0x1e2)](_0x270998,_0x3d1eac,_0x27d866){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a7_0x4639(){var _0x362e77=['function','HEADERS_LACK','请求头信息不完整','823736zQkfoO','signature验证失败','toString','constructor','验证失败,请重新登录','请求超时,请重试','登录超时,请重新登录','length','(((.+)+)+)+$','metadata','TIMEOUT_LOGINTIME','TIMEOUT','apply','请使用正确的设备','search','28GCFuLY','HEADERS_SIGNATURE','decorate','defineProperty','53915QXRzYu','3525HEeBTo','303669nYkUkH','ApiError','9vcKXMg','1556730mcoJDX','HEADERS_DEVICE','__metadata','design:type','object','146284NWgzwd','508710vxCalh'];a7_0x4639=function(){return _0x362e77;};return a7_0x4639();}var a7_0x16a8eb=a7_0x433f;(function(_0x210604,_0x42c3b9){var _0x44c284=a7_0x433f,_0x7ac004=_0x210604();while(!![]){try{var _0x165ec8=parseInt(_0x44c284(0x1bf))/0x1*(-parseInt(_0x44c284(0x1ba))/0x2)+parseInt(_0x44c284(0x1c0))/0x3+parseInt(_0x44c284(0x1a6))/0x4+parseInt(_0x44c284(0x1be))/0x5+-parseInt(_0x44c284(0x1a7))/0x6+parseInt(_0x44c284(0x1c3))/0x7+-parseInt(_0x44c284(0x1ab))/0x8*(parseInt(_0x44c284(0x1c2))/0x9);if(_0x165ec8===_0x42c3b9)break;else _0x7ac004['push'](_0x7ac004['shift']());}catch(_0x5146f7){_0x7ac004['push'](_0x7ac004['shift']());}}}(a7_0x4639,0x20ae9));var a7_0xf9b64=(function(){var _0x103eb6=!![];return function(_0x2f4c2c,_0x335e36){var _0x36274d=_0x103eb6?function(){var _0x47537c=a7_0x433f;if(_0x335e36){var _0x2655b8=_0x335e36[_0x47537c(0x1b7)](_0x2f4c2c,arguments);return _0x335e36=null,_0x2655b8;}}:function(){};return _0x103eb6=![],_0x36274d;};}()),a7_0x534c1a=a7_0xf9b64(this,function(){var _0x516420=a7_0x433f;return a7_0x534c1a[_0x516420(0x1ad)]()[_0x516420(0x1b9)]('(((.+)+)+)+$')[_0x516420(0x1ad)]()[_0x516420(0x1ae)](a7_0x534c1a)[_0x516420(0x1b9)](_0x516420(0x1b3));});a7_0x534c1a();'use strict';function a7_0x433f(_0x34e318,_0x369106){var _0x205c71=a7_0x4639();return a7_0x433f=function(_0x534c1a,_0xf9b64){_0x534c1a=_0x534c1a-0x1a4;var _0x4639b8=_0x205c71[_0x534c1a];return _0x4639b8;},a7_0x433f(_0x34e318,_0x369106);}var __decorate=this&&this['__decorate']||function(_0x1becc7,_0x8d4fa9,_0x246d19,_0x7f5c82){var _0x240516=a7_0x433f,_0x120552=arguments[_0x240516(0x1b2)],_0x3b9c5f=_0x120552<0x3?_0x8d4fa9:_0x7f5c82===null?_0x7f5c82=Object['getOwnPropertyDescriptor'](_0x8d4fa9,_0x246d19):_0x7f5c82,_0x59200c;if(typeof Reflect===_0x240516(0x1a5)&&typeof Reflect[_0x240516(0x1bc)]===_0x240516(0x1a8))_0x3b9c5f=Reflect['decorate'](_0x1becc7,_0x8d4fa9,_0x246d19,_0x7f5c82);else{for(var _0x3fce72=_0x1becc7[_0x240516(0x1b2)]-0x1;_0x3fce72>=0x0;_0x3fce72--)if(_0x59200c=_0x1becc7[_0x3fce72])_0x3b9c5f=(_0x120552<0x3?_0x59200c(_0x3b9c5f):_0x120552>0x3?_0x59200c(_0x8d4fa9,_0x246d19,_0x3b9c5f):_0x59200c(_0x8d4fa9,_0x246d19))||_0x3b9c5f;}return _0x120552>0x3&&_0x3b9c5f&&Object['defineProperty'](_0x8d4fa9,_0x246d19,_0x3b9c5f),_0x3b9c5f;},__metadata=this&&this[a7_0x16a8eb(0x1c5)]||function(_0x1efdea,_0x1f9bdd){var _0x168c70=a7_0x16a8eb;if(typeof Reflect===_0x168c70(0x1a5)&&typeof Reflect[_0x168c70(0x1b4)]==='function')return Reflect[_0x168c70(0x1b4)](_0x1efdea,_0x1f9bdd);};Object[a7_0x16a8eb(0x1bd)](exports,'__esModule',{'value':!![]}),exports[a7_0x16a8eb(0x1c1)]=void 0x0;class ApiError extends AnnError{}ApiError[a7_0x16a8eb(0x1b6)]=0x19003,ApiError[a7_0x16a8eb(0x1a9)]=0x18e72,ApiError[a7_0x16a8eb(0x1c4)]=0x18e73,ApiError[a7_0x16a8eb(0x1bb)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError[a7_0x16a8eb(0x1b5)]=0x18e76,__decorate([AnnErrorMsg(a7_0x16a8eb(0x1b0)),__metadata('design:type',Object)],ApiError,a7_0x16a8eb(0x1b6),void 0x0),__decorate([AnnErrorMsg(a7_0x16a8eb(0x1aa)),__metadata('design:type',Object)],ApiError,a7_0x16a8eb(0x1a9),void 0x0),__decorate([AnnErrorMsg(a7_0x16a8eb(0x1b8)),__metadata(a7_0x16a8eb(0x1a4),Object)],ApiError,a7_0x16a8eb(0x1c4),void 0x0),__decorate([AnnErrorMsg(a7_0x16a8eb(0x1ac)),__metadata(a7_0x16a8eb(0x1a4),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a7_0x16a8eb(0x1af)),__metadata(a7_0x16a8eb(0x1a4),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a7_0x16a8eb(0x1b1)),__metadata(a7_0x16a8eb(0x1a4),Object)],ApiError,a7_0x16a8eb(0x1b5),void 0x0),exports[a7_0x16a8eb(0x1c1)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x3a2ab8=a8_0x1b7d;(function(_0x4f10ad,_0x56d4f9){const _0x43991e=a8_0x1b7d,_0x3f0f13=_0x4f10ad();while(!![]){try{const _0x30c4d8=parseInt(_0x43991e(0xbc))/0x1+-parseInt(_0x43991e(0xb4))/0x2*(parseInt(_0x43991e(0xb2))/0x3)+-parseInt(_0x43991e(0xbe))/0x4+-parseInt(_0x43991e(0xb8))/0x5+-parseInt(_0x43991e(0xba))/0x6+parseInt(_0x43991e(0xb7))/0x7*(-parseInt(_0x43991e(0xbb))/0x8)+-parseInt(_0x43991e(0xb0))/0x9*(-parseInt(_0x43991e(0xb3))/0xa);if(_0x30c4d8===_0x56d4f9)break;else _0x3f0f13['push'](_0x3f0f13['shift']());}catch(_0x39f2c6){_0x3f0f13['push'](_0x3f0f13['shift']());}}}(a8_0x1e91,0xcd99e));const a8_0x112ea8=(function(){let _0x52e6ba=!![];return function(_0x3b236c,_0x42453){const _0x534147=_0x52e6ba?function(){const _0x4bdc85=a8_0x1b7d;if(_0x42453){const _0x13faa7=_0x42453[_0x4bdc85(0xad)](_0x3b236c,arguments);return _0x42453=null,_0x13faa7;}}:function(){};return _0x52e6ba=![],_0x534147;};}()),a8_0x4f8c04=a8_0x112ea8(this,function(){const _0x57c0d7=a8_0x1b7d;return a8_0x4f8c04['toString']()[_0x57c0d7(0xb5)](_0x57c0d7(0xb9))[_0x57c0d7(0xab)]()[_0x57c0d7(0xbf)](a8_0x4f8c04)['search'](_0x57c0d7(0xb9));});a8_0x4f8c04();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x3a2ab8(0xbd)]=void 0x0;const core_1=require(a8_0x3a2ab8(0xae)),action_1=require(a8_0x3a2ab8(0xaf));function a8_0x1b7d(_0x290d35,_0x5ae5d){const _0x42fd70=a8_0x1e91();return a8_0x1b7d=function(_0x4f8c04,_0x112ea8){_0x4f8c04=_0x4f8c04-0xab;let _0x1e9142=_0x42fd70[_0x4f8c04];return _0x1e9142;},a8_0x1b7d(_0x290d35,_0x5ae5d);}function getAppsConfig(_0xdfb8e){const _0x420260=a8_0x3a2ab8,_0x2f1bab=(0x0,core_1[_0x420260(0xb6)])(action_1[_0x420260(0xb1)],action_1[_0x420260(0xac)])||{};return _0xdfb8e?lodash[_0x420260(0xc0)](_0x2f1bab,_0xdfb8e):_0x2f1bab;}function a8_0x1e91(){const _0x17b8fb=['3881523WnZlQV','1010toRhKN','2GapiXt','search','getClassMetadata','518obJEkA','876945SwHYib','(((.+)+)+)+$','6407706XeMbXw','108848wyrLoy','158421VHKooa','getAppsConfig','743412OBQsCb','constructor','get','toString','AppsConfigTmp','apply','@midwayjs/core','../types/action','393291cQylqg','APPSCONFIG_KEY'];a8_0x1e91=function(){return _0x17b8fb;};return a8_0x1e91();}exports[a8_0x3a2ab8(0xbd)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x35b764=a9_0x1b09;(function(_0x5bce31,_0x4e488c){const _0x4513f9=a9_0x1b09,_0x1d7db6=_0x5bce31();while(!![]){try{const _0x2b7264=parseInt(_0x4513f9(0x179))/0x1*(-parseInt(_0x4513f9(0x180))/0x2)+-parseInt(_0x4513f9(0x19e))/0x3+-parseInt(_0x4513f9(0x1a3))/0x4+parseInt(_0x4513f9(0x17f))/0x5+parseInt(_0x4513f9(0x18f))/0x6+parseInt(_0x4513f9(0x155))/0x7*(-parseInt(_0x4513f9(0x191))/0x8)+parseInt(_0x4513f9(0x176))/0x9*(parseInt(_0x4513f9(0x19a))/0xa);if(_0x2b7264===_0x4e488c)break;else _0x1d7db6['push'](_0x1d7db6['shift']());}catch(_0x5de892){_0x1d7db6['push'](_0x1d7db6['shift']());}}}(a9_0x58fd,0x45fda));const a9_0x4d8a77=(function(){let _0x47b20d=!![];return function(_0x1271b1,_0x5518fa){const _0x359563=_0x47b20d?function(){const _0x30176f=a9_0x1b09;if(_0x5518fa){const _0x169c56=_0x5518fa[_0x30176f(0x178)](_0x1271b1,arguments);return _0x5518fa=null,_0x169c56;}}:function(){};return _0x47b20d=![],_0x359563;};}()),a9_0xb4a1ae=a9_0x4d8a77(this,function(){const _0x1ba1f4=a9_0x1b09;return a9_0xb4a1ae[_0x1ba1f4(0x1af)]()['search'](_0x1ba1f4(0x1b8))[_0x1ba1f4(0x1af)]()[_0x1ba1f4(0x188)](a9_0xb4a1ae)[_0x1ba1f4(0x15a)]('(((.+)+)+)+$');});a9_0xb4a1ae();'use strict';Object[a9_0x35b764(0x164)](exports,a9_0x35b764(0x190),{'value':!![]}),exports[a9_0x35b764(0x196)]=void 0x0;const lodash_1=require(a9_0x35b764(0x19b)),validator_1=require(a9_0x35b764(0x1b0)),core_1=require(a9_0x35b764(0x19c)),core_2=require(a9_0x35b764(0x19c)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x73ad5={'prefix':'/','module':![]}){const _0xba5605=a9_0x35b764;var _0x2dd3ba,_0x38ca5f;const _0x51e08f=(0x0,core_3[_0xba5605(0x18c)])(action_1[_0xba5605(0x174)]),_0x2367b7={},_0x38c804=Array['isArray'](_0x73ad5[_0xba5605(0x1b7)]||[])?_0x73ad5['filter']||[]:[_0x73ad5[_0xba5605(0x1b7)]];_0x33cc7e:for(const _0x1a0189 of _0x51e08f){let _0x2ba486=(0x0,core_3[_0xba5605(0x182)])(action_1[_0xba5605(0x174)],_0x1a0189),_0x25fb36=(0x0,core_3[_0xba5605(0x182)])(action_1['ACTION_ROUTE_KEY'],_0x1a0189);if(_0x2ba486&&_0x25fb36){let _0x49ea32=_0x2ba486['prefix'],_0x48d6ab={};if(_0x73ad5[_0xba5605(0x16e)]&&(0x0,lodash_1[_0xba5605(0x16b)])(_0x2ba486,'module',![])!=_0x73ad5[_0xba5605(0x16e)])continue _0x33cc7e;else{if(_0x73ad5[_0xba5605(0x16e)]===![]&&!!(0x0,lodash_1['get'])(_0x2ba486,_0xba5605(0x16e),null))continue _0x33cc7e;}if(_0x73ad5[_0xba5605(0x189)]&&!_0x49ea32[_0xba5605(0x17d)](_0x73ad5['prefix']))continue _0x33cc7e;_0x49ea32!=='/'?(_0x48d6ab[_0xba5605(0x185)]=(_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486[_0xba5605(0x177)]['tagName'])||(/^\//[_0xba5605(0x157)](_0x49ea32)?_0x49ea32['split']('/')[0x1]:_0x49ea32),_0x48d6ab[_0xba5605(0x162)]=(_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486[_0xba5605(0x177)][_0xba5605(0x162)])||_0x48d6ab['summary'],_0x48d6ab[_0xba5605(0x1a8)]=[]):(_0x48d6ab['summary']=(_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486[_0xba5605(0x177)][_0xba5605(0x192)])||_0xba5605(0x1ab),_0x48d6ab[_0xba5605(0x162)]=(_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486[_0xba5605(0x177)][_0xba5605(0x162)])||'',_0x48d6ab['routes']=[]);_0x73ad5[_0xba5605(0x175)]&&(_0x48d6ab[_0xba5605(0x175)]=_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486[_0xba5605(0x175)]);(_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486['pprefix'])&&(_0x48d6ab[_0xba5605(0x189)]=_0x2ba486['pprefix']);(_0x2ba486===null||_0x2ba486===void 0x0?void 0x0:_0x2ba486[_0xba5605(0x16e)])&&(_0x48d6ab[_0xba5605(0x16e)]=_0x2ba486[_0xba5605(0x16e)]);let _0x30ec62=(0x0,core_3[_0xba5605(0x182)])(core_2[_0xba5605(0x18b)],_0x1a0189)||{};if(typeof _0x25fb36[Symbol[_0xba5605(0x18d)]]===_0xba5605(0x183))for(let _0x42e7c2 of _0x25fb36){if((_0x73ad5===null||_0x73ad5===void 0x0?void 0x0:_0x73ad5[_0xba5605(0x16a)])&&!(_0x42e7c2===null||_0x42e7c2===void 0x0?void 0x0:_0x42e7c2[_0xba5605(0x16a)]))continue;let _0x36502a={};_0x36502a['method']=_0x42e7c2['requestMethod'],_0x36502a[_0xba5605(0x160)]=(_0x49ea32+_0x42e7c2['path'])[_0xba5605(0x17c)](/\/{2,}/g,'/'),_0x36502a['summary']=(_0x42e7c2===null||_0x42e7c2===void 0x0?void 0x0:_0x42e7c2['routerName'])||_0x48d6ab[_0xba5605(0x185)]||_0xba5605(0x1ab),_0x36502a['description']=(_0x42e7c2===null||_0x42e7c2===void 0x0?void 0x0:_0x42e7c2[_0xba5605(0x162)])||'',_0x36502a[_0xba5605(0x16c)]=[];_0x36502a[_0xba5605(0x160)][_0xba5605(0x1a9)]('/')&&(_0x36502a['route']=_0x36502a[_0xba5605(0x160)][_0xba5605(0x169)](0x0,_0x36502a['route'][_0xba5605(0x15d)]-0x1));if(!(0x0,lodash_1[_0xba5605(0x17d)])(_0x36502a[_0xba5605(0x160)],_0xba5605(0x18e))&&!(0x0,lodash_1[_0xba5605(0x17d)])(_0x36502a['route'],'/static/apitest')&&_0x38c804['indexOf'](_0x36502a[_0xba5605(0x160)])===-0x1){if(!(_0x73ad5===null||_0x73ad5===void 0x0?void 0x0:_0x73ad5[_0xba5605(0x16f)])){let _0x89939a=(0x0,core_3['getMethodParamTypes'])(new _0x1a0189(),_0x42e7c2[_0xba5605(0x16d)]);for(const _0x17b5bd in _0x89939a){let _0x3cbae0=(_0x2dd3ba=_0x30ec62[_0x42e7c2['method']])===null||_0x2dd3ba===void 0x0?void 0x0:_0x2dd3ba[_0xba5605(0x1a4)](_0x394e45=>_0x394e45[_0xba5605(0x167)]==_0x17b5bd&&_0x394e45['key']===core_2[_0xba5605(0x195)]&&(_0x394e45===null||_0x394e45===void 0x0?void 0x0:_0x394e45['metadata']));if(_0x3cbae0===null||_0x3cbae0===void 0x0?void 0x0:_0x3cbae0[_0xba5605(0x186)]){let _0x6bb275=convertTypeToString(_0x3cbae0[_0xba5605(0x186)]['type']||0x0);if([_0xba5605(0x15e),_0xba5605(0x166)]['indexOf'](_0x6bb275)!=-0x1&&_0x3cbae0[_0xba5605(0x186)][_0xba5605(0x1b3)][_0xba5605(0x1b2)](':')==-0x1&&!_0x36502a['request']['find'](_0x4c0c50=>_0x4c0c50[_0xba5605(0x194)]==_0x3cbae0[_0xba5605(0x186)][_0xba5605(0x1b3)]))_0x36502a['request'][_0xba5605(0x168)]({'key':_0x3cbae0[_0xba5605(0x186)][_0xba5605(0x1b3)],'title':_0x3cbae0[_0xba5605(0x186)][_0xba5605(0x1b3)],'type':convertSchemaType(_0x89939a[_0x3cbae0[_0xba5605(0x167)]][_0xba5605(0x187)]),'required':![],'default':'','desc':''});else{if(_0x6bb275==_0xba5605(0x156)){let _0x5c3ed6=((_0x38ca5f=_0x3cbae0===null||_0x3cbae0===void 0x0?void 0x0:_0x3cbae0[_0xba5605(0x186)])===null||_0x38ca5f===void 0x0?void 0x0:_0x38ca5f[_0xba5605(0x1b3)])||_0xba5605(0x156);_0x5c3ed6[_0xba5605(0x1b2)](':')==-0x1&&!_0x36502a['request'][_0xba5605(0x1a4)](_0x4501fc=>_0x4501fc[_0xba5605(0x194)]==_0x5c3ed6&&_0x4501fc[_0xba5605(0x193)]==_0xba5605(0x156))&&_0x36502a['request']['push']({'key':_0x5c3ed6,'title':_0xba5605(0x199)+_0x5c3ed6,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x9f7e3c=(0x0,core_3[_0xba5605(0x198)])(validator_1['RULES_KEY'],_0x89939a[_0x17b5bd]);_0x9f7e3c&&_0x36502a[_0xba5605(0x16c)]['push'](...getJoiRequest(_0x9f7e3c));}}}_0x48d6ab[_0xba5605(0x1a8)][_0xba5605(0x168)](_0x36502a);}}if(_0x48d6ab['routes'][_0xba5605(0x15d)]>0x0){let _0x3c2c25=_0x2367b7[_0x49ea32];_0x3c2c25?(_0x3c2c25[_0xba5605(0x185)]!=_0x48d6ab[_0xba5605(0x185)]&&(_0x3c2c25['summary']=_0x3c2c25[_0xba5605(0x185)]+','+_0x48d6ab[_0xba5605(0x185)]),_0x3c2c25[_0xba5605(0x162)]!=_0x48d6ab[_0xba5605(0x162)]&&(_0x3c2c25[_0xba5605(0x162)]=_0x3c2c25[_0xba5605(0x162)]+','+_0x48d6ab[_0xba5605(0x162)]),_0x3c2c25[_0xba5605(0x1a8)]=_0x3c2c25['routes']['concat'](_0x48d6ab[_0xba5605(0x1a8)]),_0x2367b7[_0x49ea32]=_0x3c2c25):_0x2367b7[_0x49ea32]=_0x48d6ab;}}}return _0x2367b7;}function a9_0x1b09(_0x2e9033,_0x25661d){const _0x1ab6bb=a9_0x58fd();return a9_0x1b09=function(_0xb4a1ae,_0x4d8a77){_0xb4a1ae=_0xb4a1ae-0x155;let _0x58fd50=_0x1ab6bb[_0xb4a1ae];return _0x58fd50;},a9_0x1b09(_0x2e9033,_0x25661d);}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2181e4){const _0x479e2a=a9_0x35b764,_0x3623fa=[];for(let _0x232e61 in _0x2181e4){const _0x45bcfb={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1682b9=typeof _0x2181e4[_0x232e61]['describe']==_0x479e2a(0x183)?_0x2181e4[_0x232e61][_0x479e2a(0x181)]():_0x2181e4[_0x232e61];_0x45bcfb[_0x479e2a(0x194)]=_0x232e61,_0x45bcfb[_0x479e2a(0x193)]=_0x1682b9[_0x479e2a(0x193)],_0x45bcfb['title']=(0x0,lodash_1[_0x479e2a(0x16b)])(_0x1682b9,_0x479e2a(0x161),_0x232e61),_0x45bcfb[_0x479e2a(0x1ab)]=(0x0,lodash_1[_0x479e2a(0x16b)])(_0x1682b9,_0x479e2a(0x19d),''),_0x45bcfb[_0x479e2a(0x170)]=(0x0,lodash_1['get'])(_0x1682b9,_0x479e2a(0x1a5),'')==_0x479e2a(0x170),_0x45bcfb[_0x479e2a(0x162)]=(0x0,lodash_1[_0x479e2a(0x16b)])(_0x1682b9,_0x479e2a(0x1a0),'');if(_0x1682b9[_0x479e2a(0x193)]==_0x479e2a(0x172))_0x45bcfb[_0x479e2a(0x17b)]=getJoiRequest(_0x1682b9[_0x479e2a(0x1a1)]);else{if(_0x1682b9[_0x479e2a(0x193)]==_0x479e2a(0x1ae)&&_0x1682b9[_0x479e2a(0x158)]&&Array[_0x479e2a(0x18a)](_0x1682b9[_0x479e2a(0x158)])&&_0x1682b9[_0x479e2a(0x158)][0x0]){}}_0x1682b9[_0x479e2a(0x1b5)]&&Array['isArray'](_0x1682b9[_0x479e2a(0x1b5)])&&_0x1682b9[_0x479e2a(0x1b5)][_0x479e2a(0x15d)]>0x0&&(_0x45bcfb[_0x479e2a(0x162)]=_0x479e2a(0x197)+_0x1682b9[_0x479e2a(0x1b5)][_0x479e2a(0x15c)](',')+'];'+_0x45bcfb[_0x479e2a(0x162)]);if(_0x45bcfb[_0x479e2a(0x194)]&&_0x45bcfb[_0x479e2a(0x193)]){const _0x43020a={};for(const _0x2bab48 of _0x1682b9[_0x479e2a(0x173)]||[]){if(_0x2bab48['name']==='min'&&_0x2bab48['args'])_0x43020a[_0x479e2a(0x1ac)]=_0x2bab48[_0x479e2a(0x17a)][_0x479e2a(0x159)];else _0x2bab48[_0x479e2a(0x187)]===_0x479e2a(0x1a6)&&(_0x43020a[_0x479e2a(0x1a6)]=_0x2bab48[_0x479e2a(0x17a)][_0x479e2a(0x159)]);}_0x45bcfb[_0x479e2a(0x173)]=_0x43020a;}_0x45bcfb[_0x479e2a(0x194)]&&_0x45bcfb['title']&&_0x3623fa[_0x479e2a(0x168)](_0x45bcfb);}return _0x3623fa;}function a9_0x58fd(){const _0x5c9859=['lodash','@midwayjs/core','flags.default','53430drgVRA','FILESTREAM','flags.description','keys','Number','463880mXOTWo','find','flags.presence','max','FILESSTREAM','routes','endsWith','HEADERS','default','min','header','array','toString','@anncic-api/validator','File','indexOf','propertyData','FIELDS','allow','string','filter','(((.+)+)+)+$','1085pbxqsl','file','test','items','limit','search','RouteParamTypes','join','length','query','BODY','route','flags.label','description','Boolean','defineProperty','PARAM','body','parameterIndex','push','substring','intercept','get','request','method','module','noreq','required','Object','object','rules','ACTION_KEY','filepath','126eFSIan','routerOptions','apply','3PQWrks','args','children','replace','startsWith','boolean','1689340OErWJr','155594ZlkOzn','describe','getClassMetadata','function','path','summary','metadata','name','constructor','prefix','isArray','INJECT_CUSTOM_PARAM','listModule','iterator','static/apitest','2568456bEffXT','__esModule','5880lUXRNq','tagName','type','key','WEB_ROUTER_PARAM_KEY','getRoutes','只允许:[','getClassExtendedMetadata','文件上传-','1310KxpGqu'];a9_0x58fd=function(){return _0x5c9859;};return a9_0x58fd();}function convertSchemaType(_0x2c4925){const _0x5824e0=a9_0x35b764;switch(_0x2c4925){case _0x5824e0(0x171):return _0x5824e0(0x172);case _0x5824e0(0x163):return _0x5824e0(0x17e);case _0x5824e0(0x1a2):return'number';case'String':return _0x5824e0(0x1b6);case _0x5824e0(0x1b1):return _0x5824e0(0x156);default:return _0x5824e0(0x1b6);}}function convertTypeToString(_0x218b20){const _0x3230e2=a9_0x35b764;switch(_0x218b20){case core_1['RouteParamTypes'][_0x3230e2(0x1aa)]:return _0x3230e2(0x1ad);case core_1[_0x3230e2(0x15b)]['QUERY']:return _0x3230e2(0x15e);case core_1[_0x3230e2(0x15b)][_0x3230e2(0x165)]:return _0x3230e2(0x184);case core_1[_0x3230e2(0x15b)][_0x3230e2(0x15f)]:return'body';case core_1[_0x3230e2(0x15b)][_0x3230e2(0x1b4)]:case core_1[_0x3230e2(0x15b)][_0x3230e2(0x1a7)]:case core_1[_0x3230e2(0x15b)][_0x3230e2(0x19f)]:return'file';default:return'header';}}
|
|
1
|
+
const a9_0xb61890=a9_0x3b82;(function(_0x378fdb,_0x7217bb){const _0x2b94d5=a9_0x3b82,_0x257b2a=_0x378fdb();while(!![]){try{const _0x29d393=-parseInt(_0x2b94d5(0x1e3))/0x1*(-parseInt(_0x2b94d5(0x1ba))/0x2)+parseInt(_0x2b94d5(0x1b9))/0x3*(-parseInt(_0x2b94d5(0x1d7))/0x4)+-parseInt(_0x2b94d5(0x208))/0x5+-parseInt(_0x2b94d5(0x1f6))/0x6*(-parseInt(_0x2b94d5(0x1da))/0x7)+parseInt(_0x2b94d5(0x1bd))/0x8+parseInt(_0x2b94d5(0x1ef))/0x9*(parseInt(_0x2b94d5(0x1c9))/0xa)+parseInt(_0x2b94d5(0x200))/0xb*(-parseInt(_0x2b94d5(0x1ee))/0xc);if(_0x29d393===_0x7217bb)break;else _0x257b2a['push'](_0x257b2a['shift']());}catch(_0x4697e8){_0x257b2a['push'](_0x257b2a['shift']());}}}(a9_0x18e0,0xef21c));const a9_0x386b39=(function(){let _0x4cf2ac=!![];return function(_0x493229,_0x4ec38d){const _0x749cf9=_0x4cf2ac?function(){const _0x2bf857=a9_0x3b82;if(_0x4ec38d){const _0xb8a276=_0x4ec38d[_0x2bf857(0x1c7)](_0x493229,arguments);return _0x4ec38d=null,_0xb8a276;}}:function(){};return _0x4cf2ac=![],_0x749cf9;};}()),a9_0x10328a=a9_0x386b39(this,function(){const _0x3e5e7d=a9_0x3b82;return a9_0x10328a[_0x3e5e7d(0x203)]()[_0x3e5e7d(0x1c3)](_0x3e5e7d(0x1ac))['toString']()[_0x3e5e7d(0x1c1)](a9_0x10328a)['search'](_0x3e5e7d(0x1ac));});function a9_0x3b82(_0x14b386,_0x1fc689){const _0x249e5f=a9_0x18e0();return a9_0x3b82=function(_0x10328a,_0x386b39){_0x10328a=_0x10328a-0x1a6;let _0x18e06c=_0x249e5f[_0x10328a];return _0x18e06c;},a9_0x3b82(_0x14b386,_0x1fc689);}a9_0x10328a();'use strict';Object[a9_0xb61890(0x1f1)](exports,a9_0xb61890(0x1e0),{'value':!![]}),exports[a9_0xb61890(0x1e7)]=void 0x0;const lodash_1=require(a9_0xb61890(0x1aa)),validator_1=require(a9_0xb61890(0x1ad)),core_1=require('@midwayjs/core'),core_2=require(a9_0xb61890(0x1e2)),core_3=require('@midwayjs/core'),action_1=require(a9_0xb61890(0x1d6));function getRoutes(_0x223e69={'prefix':'/','module':![]}){const _0x33de7a=a9_0xb61890;var _0x45b9ab,_0x36d09d;const _0x339885=(0x0,core_3[_0x33de7a(0x1ab)])(action_1[_0x33de7a(0x1bb)]),_0x266991={},_0x355ef5=Array[_0x33de7a(0x1fa)](_0x223e69['filter']||[])?_0x223e69['filter']||[]:[_0x223e69[_0x33de7a(0x1bc)]];_0x3e0700:for(const _0x1e7e6a of _0x339885){let _0x20f504=(0x0,core_3[_0x33de7a(0x207)])(action_1[_0x33de7a(0x1bb)],_0x1e7e6a),_0x104aed=(0x0,core_3['getClassMetadata'])(action_1[_0x33de7a(0x1b6)],_0x1e7e6a);if(_0x20f504&&_0x104aed){let _0x5acd60=_0x20f504[_0x33de7a(0x1a7)],_0x152b5f={};if(_0x223e69[_0x33de7a(0x1e4)]&&(0x0,lodash_1['get'])(_0x20f504,_0x33de7a(0x1e4),![])!=_0x223e69[_0x33de7a(0x1e4)])continue _0x3e0700;else{if(_0x223e69[_0x33de7a(0x1e4)]===![]&&!!(0x0,lodash_1[_0x33de7a(0x1f8)])(_0x20f504,_0x33de7a(0x1e4),null))continue _0x3e0700;}if(_0x223e69['prefix']&&!_0x5acd60[_0x33de7a(0x1cc)](_0x223e69[_0x33de7a(0x1a7)]))continue _0x3e0700;_0x5acd60!=='/'?(_0x152b5f[_0x33de7a(0x1e8)]=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504['routerOptions'][_0x33de7a(0x1c8)])||(/^\//['test'](_0x5acd60)?_0x5acd60[_0x33de7a(0x1cb)]('/')[0x1]:_0x5acd60),_0x152b5f[_0x33de7a(0x1a6)]=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1b7)][_0x33de7a(0x1a6)])||_0x152b5f['summary'],_0x152b5f[_0x33de7a(0x1f0)]=[]):(_0x152b5f['summary']=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1b7)][_0x33de7a(0x1c8)])||_0x33de7a(0x1f3),_0x152b5f[_0x33de7a(0x1a6)]=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1b7)]['description'])||'',_0x152b5f[_0x33de7a(0x1f0)]=[]);_0x223e69['filepath']&&(_0x152b5f[_0x33de7a(0x1c4)]=_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1c4)]);(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1fe)])&&(_0x152b5f[_0x33de7a(0x1a7)]=_0x20f504[_0x33de7a(0x1fe)]);(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1e4)])&&(_0x152b5f[_0x33de7a(0x1e4)]=_0x20f504[_0x33de7a(0x1e4)]);let _0x271ad0=(0x0,core_3[_0x33de7a(0x207)])(core_2['INJECT_CUSTOM_PARAM'],_0x1e7e6a)||{};if(typeof _0x104aed[Symbol[_0x33de7a(0x1d3)]]==='function')for(let _0xd33e04 of _0x104aed){if((_0x223e69===null||_0x223e69===void 0x0?void 0x0:_0x223e69['intercept'])&&!(_0xd33e04===null||_0xd33e04===void 0x0?void 0x0:_0xd33e04['intercept']))continue;let _0x436cb8={};_0x436cb8[_0x33de7a(0x206)]=_0xd33e04[_0x33de7a(0x1ae)],_0x436cb8['route']=(_0x5acd60+_0xd33e04[_0x33de7a(0x1d2)])['replace'](/\/{2,}/g,'/'),_0x436cb8[_0x33de7a(0x1e8)]=(_0xd33e04===null||_0xd33e04===void 0x0?void 0x0:_0xd33e04[_0x33de7a(0x1c6)])||_0x152b5f['summary']||'default',_0x436cb8[_0x33de7a(0x1a6)]=(_0xd33e04===null||_0xd33e04===void 0x0?void 0x0:_0xd33e04[_0x33de7a(0x1a6)])||'',_0x436cb8[_0x33de7a(0x1f9)]=[];_0x436cb8[_0x33de7a(0x1ca)]['endsWith']('/')&&(_0x436cb8[_0x33de7a(0x1ca)]=_0x436cb8[_0x33de7a(0x1ca)][_0x33de7a(0x1b3)](0x0,_0x436cb8[_0x33de7a(0x1ca)][_0x33de7a(0x1ea)]-0x1));if(!(0x0,lodash_1[_0x33de7a(0x1cc)])(_0x436cb8['route'],'static/apitest')&&!(0x0,lodash_1[_0x33de7a(0x1cc)])(_0x436cb8['route'],_0x33de7a(0x1f4))&&_0x355ef5['indexOf'](_0x436cb8[_0x33de7a(0x1ca)])===-0x1){if(!(_0x223e69===null||_0x223e69===void 0x0?void 0x0:_0x223e69['noreq'])){let _0x5afbf0=(0x0,core_3[_0x33de7a(0x1d9)])(new _0x1e7e6a(),_0xd33e04[_0x33de7a(0x206)]);for(const _0xe9a940 in _0x5afbf0){let _0xcbaae8=(_0x45b9ab=_0x271ad0[_0xd33e04[_0x33de7a(0x206)]])===null||_0x45b9ab===void 0x0?void 0x0:_0x45b9ab[_0x33de7a(0x1dc)](_0x5f5350=>_0x5f5350['parameterIndex']==_0xe9a940&&_0x5f5350['key']===core_2[_0x33de7a(0x1a9)]&&(_0x5f5350===null||_0x5f5350===void 0x0?void 0x0:_0x5f5350[_0x33de7a(0x1a8)]));if(_0xcbaae8===null||_0xcbaae8===void 0x0?void 0x0:_0xcbaae8[_0x33de7a(0x1a8)]){let _0x115f64=convertTypeToString(_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ed)]||0x0);if([_0x33de7a(0x1cd),_0x33de7a(0x1df)][_0x33de7a(0x1cf)](_0x115f64)!=-0x1&&_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ec)][_0x33de7a(0x1cf)](':')==-0x1&&!_0x436cb8[_0x33de7a(0x1f9)][_0x33de7a(0x1dc)](_0x44a6d7=>_0x44a6d7[_0x33de7a(0x1db)]==_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ec)]))_0x436cb8[_0x33de7a(0x1f9)]['push']({'key':_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ec)],'title':_0xcbaae8['metadata'][_0x33de7a(0x1ec)],'type':convertSchemaType(_0x5afbf0[_0xcbaae8[_0x33de7a(0x1fc)]][_0x33de7a(0x202)]),'required':![],'default':'','desc':''});else{if(_0x115f64==_0x33de7a(0x1ce)){let _0x3f121b=((_0x36d09d=_0xcbaae8===null||_0xcbaae8===void 0x0?void 0x0:_0xcbaae8[_0x33de7a(0x1a8)])===null||_0x36d09d===void 0x0?void 0x0:_0x36d09d[_0x33de7a(0x1ec)])||_0x33de7a(0x1ce);_0x3f121b[_0x33de7a(0x1cf)](':')==-0x1&&!_0x436cb8[_0x33de7a(0x1f9)]['find'](_0x1ee19f=>_0x1ee19f[_0x33de7a(0x1db)]==_0x3f121b&&_0x1ee19f['type']==_0x33de7a(0x1ce))&&_0x436cb8['request']['push']({'key':_0x3f121b,'title':_0x33de7a(0x1b4)+_0x3f121b,'type':_0x33de7a(0x1ce),'required':!![],'default':'','desc':''});}}}else{const _0xf2da0e=(0x0,core_3[_0x33de7a(0x1b1)])(validator_1[_0x33de7a(0x1e6)],_0x5afbf0[_0xe9a940]);_0xf2da0e&&_0x436cb8[_0x33de7a(0x1f9)][_0x33de7a(0x1b8)](...getJoiRequest(_0xf2da0e));}}}_0x152b5f[_0x33de7a(0x1f0)][_0x33de7a(0x1b8)](_0x436cb8);}}if(_0x152b5f['routes'][_0x33de7a(0x1ea)]>0x0){let _0xd5f3cc=_0x266991[_0x5acd60];_0xd5f3cc?(_0xd5f3cc['summary']!=_0x152b5f['summary']&&(_0xd5f3cc[_0x33de7a(0x1e8)]=_0xd5f3cc['summary']+','+_0x152b5f[_0x33de7a(0x1e8)]),_0xd5f3cc['description']!=_0x152b5f[_0x33de7a(0x1a6)]&&(_0xd5f3cc[_0x33de7a(0x1a6)]=_0xd5f3cc[_0x33de7a(0x1a6)]+','+_0x152b5f[_0x33de7a(0x1a6)]),_0xd5f3cc[_0x33de7a(0x1f0)]=_0xd5f3cc[_0x33de7a(0x1f0)][_0x33de7a(0x1ff)](_0x152b5f[_0x33de7a(0x1f0)]),_0x266991[_0x5acd60]=_0xd5f3cc):_0x266991[_0x5acd60]=_0x152b5f;}}}return _0x266991;}exports[a9_0xb61890(0x1e7)]=getRoutes;function a9_0x18e0(){const _0x24529b=['2570uCOJum','route','split','startsWith','query','file','indexOf','flags.default','header','path','iterator','join','object','../types/action','4rSYZiV','allow','getMethodParamTypes','7xVecSg','key','find','FILESSTREAM','FIELDS','body','__esModule','FILESTREAM','@midwayjs/core','102nKNhYG','module','limit','RULES_KEY','getRoutes','summary','children','length','string','propertyData','type','12kmvkoU','50913MTglzw','routes','defineProperty','args','default','/static/apitest','required','1682454wtYuIy','Boolean','get','request','isArray','describe','parameterIndex','BODY','pprefix','concat','25912524OpUlEK','RouteParamTypes','name','toString','flags.label','QUERY','method','getClassMetadata','1423420YpTHRC','description','prefix','metadata','WEB_ROUTER_PARAM_KEY','lodash','listModule','(((.+)+)+)+$','@anncic-api/validator','requestMethod','max','items','getClassExtendedMetadata','rules','substring','文件上传-','min','ACTION_ROUTE_KEY','routerOptions','push','1754751ZkbKIS','13782QPxRvj','ACTION_KEY','filter','14141032hjcEet','File','boolean','array','constructor','flags.presence','search','filepath','PARAM','routerName','apply','tagName'];a9_0x18e0=function(){return _0x24529b;};return a9_0x18e0();}function getJoiRequest(_0x44640b){const _0x7427de=a9_0xb61890,_0x43a328=[];for(let _0xc80770 in _0x44640b){const _0xdc8850={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4d55a6=typeof _0x44640b[_0xc80770][_0x7427de(0x1fb)]=='function'?_0x44640b[_0xc80770][_0x7427de(0x1fb)]():_0x44640b[_0xc80770];_0xdc8850[_0x7427de(0x1db)]=_0xc80770,_0xdc8850['type']=_0x4d55a6[_0x7427de(0x1ed)],_0xdc8850['title']=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,_0x7427de(0x204),_0xc80770),_0xdc8850[_0x7427de(0x1f3)]=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,_0x7427de(0x1d0),''),_0xdc8850[_0x7427de(0x1f5)]=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,_0x7427de(0x1c2),'')==_0x7427de(0x1f5),_0xdc8850[_0x7427de(0x1a6)]=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,'flags.description','');if(_0x4d55a6['type']==_0x7427de(0x1d5))_0xdc8850[_0x7427de(0x1e9)]=getJoiRequest(_0x4d55a6['keys']);else{if(_0x4d55a6[_0x7427de(0x1ed)]==_0x7427de(0x1c0)&&_0x4d55a6[_0x7427de(0x1b0)]&&Array['isArray'](_0x4d55a6['items'])&&_0x4d55a6[_0x7427de(0x1b0)][0x0]){}}_0x4d55a6['allow']&&Array[_0x7427de(0x1fa)](_0x4d55a6['allow'])&&_0x4d55a6[_0x7427de(0x1d8)]['length']>0x0&&(_0xdc8850['description']='只允许:['+_0x4d55a6[_0x7427de(0x1d8)][_0x7427de(0x1d4)](',')+'];'+_0xdc8850[_0x7427de(0x1a6)]);if(_0xdc8850['key']&&_0xdc8850[_0x7427de(0x1ed)]){const _0x218a39={};for(const _0x7681ee of _0x4d55a6[_0x7427de(0x1b2)]||[]){if(_0x7681ee[_0x7427de(0x202)]===_0x7427de(0x1b5)&&_0x7681ee[_0x7427de(0x1f2)])_0x218a39[_0x7427de(0x1b5)]=_0x7681ee['args'][_0x7427de(0x1e5)];else _0x7681ee[_0x7427de(0x202)]===_0x7427de(0x1af)&&(_0x218a39['max']=_0x7681ee[_0x7427de(0x1f2)]['limit']);}_0xdc8850['rules']=_0x218a39;}_0xdc8850[_0x7427de(0x1db)]&&_0xdc8850['title']&&_0x43a328[_0x7427de(0x1b8)](_0xdc8850);}return _0x43a328;}function convertSchemaType(_0x367e47){const _0x12d815=a9_0xb61890;switch(_0x367e47){case'Object':return _0x12d815(0x1d5);case _0x12d815(0x1f7):return _0x12d815(0x1bf);case'Number':return'number';case'String':return _0x12d815(0x1eb);case _0x12d815(0x1be):return _0x12d815(0x1ce);default:return _0x12d815(0x1eb);}}function convertTypeToString(_0x578c68){const _0xf3c566=a9_0xb61890;switch(_0x578c68){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0xf3c566(0x201)][_0xf3c566(0x205)]:return'query';case core_1[_0xf3c566(0x201)][_0xf3c566(0x1c5)]:return'path';case core_1[_0xf3c566(0x201)][_0xf3c566(0x1fd)]:return'body';case core_1[_0xf3c566(0x201)][_0xf3c566(0x1de)]:case core_1['RouteParamTypes'][_0xf3c566(0x1dd)]:case core_1[_0xf3c566(0x201)][_0xf3c566(0x1e1)]:return _0xf3c566(0x1ce);default:return _0xf3c566(0x1d1);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x56bed5=a10_0x483f;(function(_0x35796b,_0x31bfb7){var _0xa0f377=a10_0x483f,_0x466fd4=_0x35796b();while(!![]){try{var _0x4c7333=-parseInt(_0xa0f377(0x210))/0x1*(-parseInt(_0xa0f377(0x22d))/0x2)+-parseInt(_0xa0f377(0x21b))/0x3+-parseInt(_0xa0f377(0x209))/0x4+-parseInt(_0xa0f377(0x22b))/0x5+-parseInt(_0xa0f377(0x21c))/0x6*(parseInt(_0xa0f377(0x1fd))/0x7)+parseInt(_0xa0f377(0x228))/0x8*(-parseInt(_0xa0f377(0x223))/0x9)+parseInt(_0xa0f377(0x22e))/0xa*(parseInt(_0xa0f377(0x21d))/0xb);if(_0x4c7333===_0x31bfb7)break;else _0x466fd4['push'](_0x466fd4['shift']());}catch(_0x448387){_0x466fd4['push'](_0x466fd4['shift']());}}}(a10_0x1988,0x2d51a));var a10_0x525ce4=(function(){var _0x4b135a=!![];return function(_0x3d2158,_0x4609a8){var _0x1b567f=_0x4b135a?function(){if(_0x4609a8){var _0x16d355=_0x4609a8['apply'](_0x3d2158,arguments);return _0x4609a8=null,_0x16d355;}}:function(){};return _0x4b135a=![],_0x1b567f;};}()),a10_0xd01cb5=a10_0x525ce4(this,function(){var _0x5dd7a1=a10_0x483f;return a10_0xd01cb5[_0x5dd7a1(0x215)]()[_0x5dd7a1(0x20b)]('(((.+)+)+)+$')[_0x5dd7a1(0x215)]()[_0x5dd7a1(0x201)](a10_0xd01cb5)[_0x5dd7a1(0x20b)](_0x5dd7a1(0x1f8));});a10_0xd01cb5();'use strict';var __createBinding=this&&this[a10_0x56bed5(0x229)]||(Object['create']?function(_0x314105,_0x552462,_0x28a471,_0x45ef7b){var _0x10bf90=a10_0x56bed5;if(_0x45ef7b===undefined)_0x45ef7b=_0x28a471;var _0x562082=Object['getOwnPropertyDescriptor'](_0x552462,_0x28a471);(!_0x562082||('get'in _0x562082?!_0x552462[_0x10bf90(0x20d)]:_0x562082[_0x10bf90(0x200)]||_0x562082[_0x10bf90(0x203)]))&&(_0x562082={'enumerable':!![],'get':function(){return _0x552462[_0x28a471];}}),Object[_0x10bf90(0x221)](_0x314105,_0x45ef7b,_0x562082);}:function(_0x6cc703,_0x74ff19,_0x577df9,_0x279f17){if(_0x279f17===undefined)_0x279f17=_0x577df9;_0x6cc703[_0x279f17]=_0x74ff19[_0x577df9];}),__exportStar=this&&this[a10_0x56bed5(0x234)]||function(_0x5a8bb7,_0x2df5aa){var _0x5f5c6d=a10_0x56bed5;for(var _0x3d3bf0 in _0x5a8bb7)if(_0x3d3bf0!=='default'&&!Object[_0x5f5c6d(0x20f)][_0x5f5c6d(0x20a)][_0x5f5c6d(0x226)](_0x2df5aa,_0x3d3bf0))__createBinding(_0x2df5aa,_0x5a8bb7,_0x3d3bf0);};Object[a10_0x56bed5(0x221)](exports,'__esModule',{'value':!![]}),exports[a10_0x56bed5(0x1f7)]=exports[a10_0x56bed5(0x202)]=exports[a10_0x56bed5(0x22c)]=exports[a10_0x56bed5(0x235)]=exports[a10_0x56bed5(0x233)]=exports[a10_0x56bed5(0x232)]=exports[a10_0x56bed5(0x218)]=exports['Config']=exports[a10_0x56bed5(0x1fa)]=exports['Init']=exports[a10_0x56bed5(0x212)]=exports[a10_0x56bed5(0x227)]=exports[a10_0x56bed5(0x1f9)]=exports[a10_0x56bed5(0x225)]=exports['Fields']=exports['Files']=exports[a10_0x56bed5(0x21a)]=exports[a10_0x56bed5(0x213)]=exports['ValidatorService']=exports[a10_0x56bed5(0x208)]=exports[a10_0x56bed5(0x211)]=exports[a10_0x56bed5(0x21e)]=exports[a10_0x56bed5(0x219)]=exports[a10_0x56bed5(0x1f5)]=exports[a10_0x56bed5(0x231)]=exports[a10_0x56bed5(0x1ff)]=exports[a10_0x56bed5(0x217)]=exports[a10_0x56bed5(0x214)]=exports[a10_0x56bed5(0x21f)]=exports[a10_0x56bed5(0x204)]=exports[a10_0x56bed5(0x207)]=void 0x0;const getAppsConfig_1=require(a10_0x56bed5(0x1fe));Object['defineProperty'](exports,'getAppsConfig',{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a10_0x56bed5(0x20e)),exports),__exportStar(require(a10_0x56bed5(0x22f)),exports);var ActionApi_1=require(a10_0x56bed5(0x1fb));Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x207),{'enumerable':!![],'get':function(){var _0x13cd6b=a10_0x56bed5;return ActionApi_1[_0x13cd6b(0x207)];}});var Action_1=require('./decorator/Action');Object[a10_0x56bed5(0x221)](exports,'Action',{'enumerable':!![],'get':function(){var _0x1c0e07=a10_0x56bed5;return Action_1[_0x1c0e07(0x204)];}});var ActionApitest_1=require(a10_0x56bed5(0x205));Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x21f),{'enumerable':!![],'get':function(){var _0x502154=a10_0x56bed5;return ActionApitest_1[_0x502154(0x21f)];}});var Intercept_1=require(a10_0x56bed5(0x1f6));function a10_0x1988(){var _0x31721c=['112NfTEaQ','__createBinding','CustomConfiguration','1073490mCEhQu','Singleton','497254YtdQqW','70YdmkHe','./service/ApitestService','Fields','ApiError','Provide','Inject','__exportStar','Scope','./exception/ApiError','@anncic-api/validator','CacheService','./decorator/Intercept','getAppsConfig','(((.+)+)+)+$','Param','App','./decorator/ActionApi','@midwayjs/core','1004465vOKktI','./helper/getAppsConfig','getRoutes','writable','constructor','ScopeEnum','configurable','Action','./decorator/ActionApitest','Files','Api','ValidatorError','618852WfEolh','hasOwnProperty','search','./configuration','__esModule','./types/common','prototype','1kmsksA','ExcelService','Headers','Configuration','Intercept','toString','ValidatorService','IIntercept','Logger','EventService','File','969483XjUQmN','6DkTPwv','1244870yZoqVF','ApiService','Apitest','@anncic-api/event','defineProperty','./service/ApiService','12294CErCKF','Config','Body','call','Query'];a10_0x1988=function(){return _0x31721c;};return a10_0x1988();}Object['defineProperty'](exports,a10_0x56bed5(0x214),{'enumerable':!![],'get':function(){var _0x453d03=a10_0x56bed5;return Intercept_1[_0x453d03(0x214)];}}),Object[a10_0x56bed5(0x221)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x54dafc=a10_0x56bed5;return Intercept_1[_0x54dafc(0x217)];}});var getRoutes_1=require('./helper/getRoutes');Object['defineProperty'](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x233f1b=a10_0x56bed5;return getRoutes_1[_0x233f1b(0x1ff)];}});var ApiError_1=require(a10_0x56bed5(0x236));Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x231),{'enumerable':!![],'get':function(){var _0x3622a2=a10_0x56bed5;return ApiError_1[_0x3622a2(0x231)];}});var cache_1=require('@anncic-api/cache');Object[a10_0x56bed5(0x221)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0xe9abe5=a10_0x56bed5;return cache_1[_0xe9abe5(0x1f5)];}});var event_1=require(a10_0x56bed5(0x220));Object['defineProperty'](exports,a10_0x56bed5(0x219),{'enumerable':!![],'get':function(){var _0x2aa9a5=a10_0x56bed5;return event_1[_0x2aa9a5(0x219)];}});var ApiService_1=require(a10_0x56bed5(0x222));Object[a10_0x56bed5(0x221)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require('./service/ExcelService');Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x211),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a10_0x56bed5(0x1f4));Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x208),{'enumerable':!![],'get':function(){var _0x30e2a4=a10_0x56bed5;return validator_1[_0x30e2a4(0x208)];}}),Object['defineProperty'](exports,a10_0x56bed5(0x216),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});function a10_0x483f(_0xce4f4b,_0x25736f){var _0x39b652=a10_0x1988();return a10_0x483f=function(_0xd01cb5,_0x525ce4){_0xd01cb5=_0xd01cb5-0x1f4;var _0x19884e=_0x39b652[_0xd01cb5];return _0x19884e;},a10_0x483f(_0xce4f4b,_0x25736f);}var configuration_1=require(a10_0x56bed5(0x20c));Object[a10_0x56bed5(0x221)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x1da06d=a10_0x56bed5;return configuration_1[_0x1da06d(0x22a)];}});var core_1=require(a10_0x56bed5(0x1fc));Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){var _0x488d6f=a10_0x56bed5;return core_1[_0x488d6f(0x21a)];}}),Object['defineProperty'](exports,a10_0x56bed5(0x206),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x230),{'enumerable':!![],'get':function(){var _0x5efcaa=a10_0x56bed5;return core_1[_0x5efcaa(0x230)];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x225),{'enumerable':!![],'get':function(){var _0x1a181f=a10_0x56bed5;return core_1[_0x1a181f(0x225)];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x1f9),{'enumerable':!![],'get':function(){var _0x64ff77=a10_0x56bed5;return core_1[_0x64ff77(0x1f9)];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x227),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object['defineProperty'](exports,'Headers',{'enumerable':!![],'get':function(){var _0x20b057=a10_0x56bed5;return core_1[_0x20b057(0x212)];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a10_0x56bed5(0x1fc));Object['defineProperty'](exports,a10_0x56bed5(0x1fa),{'enumerable':!![],'get':function(){var _0x55113c=a10_0x56bed5;return core_2[_0x55113c(0x1fa)];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x224),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x218),{'enumerable':!![],'get':function(){var _0x4f7522=a10_0x56bed5;return core_2[_0x4f7522(0x218)];}}),Object[a10_0x56bed5(0x221)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x42a738=a10_0x56bed5;return core_2[_0x42a738(0x232)];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x233),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x56bed5(0x221)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x50227e=a10_0x56bed5;return core_2[_0x50227e(0x235)];}}),Object[a10_0x56bed5(0x221)](exports,a10_0x56bed5(0x22c),{'enumerable':!![],'get':function(){var _0x48e1fc=a10_0x56bed5;return core_2[_0x48e1fc(0x22c)];}}),Object[a10_0x56bed5(0x221)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x17bef3=a10_0x56bed5;return core_2[_0x17bef3(0x202)];}}),global['getAppsConfig']=getAppsConfig_1[a10_0x56bed5(0x1f7)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x42b8b8=a11_0x527d;(function(_0x6febf4,_0x2161b6){var _0x54e43c=a11_0x527d,_0xa8576e=_0x6febf4();while(!![]){try{var _0x4997a2=-parseInt(_0x54e43c(0x198))/0x1+parseInt(_0x54e43c(0x1af))/0x2+-parseInt(_0x54e43c(0x19c))/0x3+parseInt(_0x54e43c(0x183))/0x4*(-parseInt(_0x54e43c(0x18b))/0x5)+parseInt(_0x54e43c(0x1a3))/0x6*(parseInt(_0x54e43c(0x1b9))/0x7)+parseInt(_0x54e43c(0x1a8))/0x8+parseInt(_0x54e43c(0x1ac))/0x9;if(_0x4997a2===_0x2161b6)break;else _0xa8576e['push'](_0xa8576e['shift']());}catch(_0x2eac1d){_0xa8576e['push'](_0xa8576e['shift']());}}}(a11_0x35a1,0xb0a22));function a11_0x527d(_0x4fc839,_0x44debf){var _0xdb90e=a11_0x35a1();return a11_0x527d=function(_0x3fde08,_0x4b845f){_0x3fde08=_0x3fde08-0x17e;var _0x35a13b=_0xdb90e[_0x3fde08];return _0x35a13b;},a11_0x527d(_0x4fc839,_0x44debf);}var a11_0x4b845f=(function(){var _0x59fec6=!![];return function(_0xaf6f1f,_0x35e0d2){var _0x4bed8f=_0x59fec6?function(){var _0x2491ec=a11_0x527d;if(_0x35e0d2){var _0x1c06f0=_0x35e0d2[_0x2491ec(0x1ae)](_0xaf6f1f,arguments);return _0x35e0d2=null,_0x1c06f0;}}:function(){};return _0x59fec6=![],_0x4bed8f;};}()),a11_0x3fde08=a11_0x4b845f(this,function(){var _0x5a8950=a11_0x527d;return a11_0x3fde08[_0x5a8950(0x1a6)]()['search'](_0x5a8950(0x194))[_0x5a8950(0x1a6)]()[_0x5a8950(0x1b2)](a11_0x3fde08)[_0x5a8950(0x1ab)](_0x5a8950(0x194));});a11_0x3fde08();'use strict';var __decorate=this&&this['__decorate']||function(_0x195d0e,_0x53a787,_0x5c343c,_0x1b8464){var _0x3f1e44=a11_0x527d,_0x48352c=arguments[_0x3f1e44(0x1a2)],_0x290fbf=_0x48352c<0x3?_0x53a787:_0x1b8464===null?_0x1b8464=Object[_0x3f1e44(0x1ba)](_0x53a787,_0x5c343c):_0x1b8464,_0x36ebb9;if(typeof Reflect===_0x3f1e44(0x199)&&typeof Reflect[_0x3f1e44(0x1b3)]===_0x3f1e44(0x1b4))_0x290fbf=Reflect['decorate'](_0x195d0e,_0x53a787,_0x5c343c,_0x1b8464);else{for(var _0x41ae23=_0x195d0e[_0x3f1e44(0x1a2)]-0x1;_0x41ae23>=0x0;_0x41ae23--)if(_0x36ebb9=_0x195d0e[_0x41ae23])_0x290fbf=(_0x48352c<0x3?_0x36ebb9(_0x290fbf):_0x48352c>0x3?_0x36ebb9(_0x53a787,_0x5c343c,_0x290fbf):_0x36ebb9(_0x53a787,_0x5c343c))||_0x290fbf;}return _0x48352c>0x3&&_0x290fbf&&Object[_0x3f1e44(0x193)](_0x53a787,_0x5c343c,_0x290fbf),_0x290fbf;},__metadata=this&&this[a11_0x42b8b8(0x181)]||function(_0x3f1740,_0x3f810a){var _0x13b4fa=a11_0x42b8b8;if(typeof Reflect===_0x13b4fa(0x199)&&typeof Reflect[_0x13b4fa(0x18d)]===_0x13b4fa(0x1b4))return Reflect[_0x13b4fa(0x18d)](_0x3f1740,_0x3f810a);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;function a11_0x35a1(){var _0x322c37=['function','entries','now','checkcode','token','14jhgSxa','getOwnPropertyDescriptor','ApiService','HEADERS_LACK','design:type','map','__metadata','abs','1284652tJroNa','HEADERS_DEVICE','checksign','Config','TIMEOUT','password','HEADERS_SIGNATURE','push','5jZAHHL','TIMEOUT_LOGINTIME','metadata','timeout','sort','config','请求超时,请重试或改善网络环境','undefined','defineProperty','(((.+)+)+)+$','getsign','logintimeout','@midwayjs/core','1222393nFRwGe','object','toLowerCase','signature','3985239iCAdmU','device','secret=','Provide','devices','缺少头信息:signature','length','3079302lHtkZm','requesttime','fromEntries','toString','MD5','9039128KhTYlZ','logintime','ScopeEnum','search','8766261SCkesr','prototype','apply','930210lBikbw','ApiError','Singleton','constructor','decorate'];a11_0x35a1=function(){return _0x322c37;};return a11_0x35a1();}const crypto_js_1=require('crypto-js'),core_1=require(a11_0x42b8b8(0x197)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a11_0x42b8b8(0x188)](_0x2a305a){var _0x281324=a11_0x42b8b8,_0x2c7747;return _0x2a305a?(0x0,crypto_js_1[_0x281324(0x1a7)])(''+_0x2a305a+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(''+_0x2a305a)['toString']()+(''+((_0x2c7747=this[_0x281324(0x190)])===null||_0x2c7747===void 0x0?void 0x0:_0x2c7747['password'])))['toString']())[_0x281324(0x1a6)]():'';}['getcheck'](_0x2bc766,_0xe18c30,_0x4e61d8=Date[a11_0x42b8b8(0x1b6)]()){return{'Token':_0x2bc766,'Logintime':_0x4e61d8,'Checkcode':this['checkcode'](_0x2bc766,_0xe18c30,_0x4e61d8)};}[a11_0x42b8b8(0x195)](_0x53ada8={}){var _0x4ef632=a11_0x42b8b8,_0x5e87d1,_0xa2ec49;const _0x5983f7=[],_0x17393d=Object[_0x4ef632(0x1a5)](Object[_0x4ef632(0x1b5)](_0x53ada8)[_0x4ef632(0x180)](_0x328663=>[_0x328663[0x0][_0x4ef632(0x19a)](),_0x328663[0x1]]));for(let _0x5a0a98 of['device',_0x4ef632(0x1a4),_0x4ef632(0x1b8),'logintime',_0x4ef632(0x1b7)]){if(typeof _0x17393d[_0x5a0a98]==_0x4ef632(0x192))throw new AnnError(ApiError_1[_0x4ef632(0x1b0)][_0x4ef632(0x17e)],{'message':'缺少头信息:'+_0x5a0a98});_0x5983f7[_0x4ef632(0x18a)](_0x5a0a98+'='+_0x17393d[_0x5a0a98]);}_0x17393d[_0x4ef632(0x1a4)]&&((_0x5e87d1=_0x17393d[_0x4ef632(0x1a4)])===null||_0x5e87d1===void 0x0?void 0x0:_0x5e87d1[_0x4ef632(0x1a2)])==0xa&&(_0x17393d['requesttime']=_0x17393d[_0x4ef632(0x1a4)]*0x3e8);if(this[_0x4ef632(0x190)][_0x4ef632(0x18e)]&&Date[_0x4ef632(0x1b6)]()-Math[_0x4ef632(0x182)](_0x17393d[_0x4ef632(0x1a4)])>this[_0x4ef632(0x190)][_0x4ef632(0x18e)])throw new AnnError(ApiError_1[_0x4ef632(0x1b0)][_0x4ef632(0x187)],{'message':_0x4ef632(0x191),'requesttime':_0x17393d['requesttime'],'timestamp':Date[_0x4ef632(0x1b6)]()});if((((_0xa2ec49=this[_0x4ef632(0x190)][_0x4ef632(0x1a0)][_0x17393d[_0x4ef632(0x19d)]])===null||_0xa2ec49===void 0x0?void 0x0:_0xa2ec49['logintimeout'])||0x0)>0x0&&Date[_0x4ef632(0x1b6)]()-Math[_0x4ef632(0x182)](_0x17393d[_0x4ef632(0x1a9)])>this[_0x4ef632(0x190)]['devices'][_0x17393d[_0x4ef632(0x19d)]][_0x4ef632(0x196)])throw new AnnError(ApiError_1[_0x4ef632(0x1b0)][_0x4ef632(0x18c)]);if(!this['config']['devices'][_0x17393d['device']]||!this[_0x4ef632(0x190)][_0x4ef632(0x1a0)][_0x17393d[_0x4ef632(0x19d)]]['secret']||!this[_0x4ef632(0x190)][_0x4ef632(0x1a0)][_0x17393d[_0x4ef632(0x19d)]][_0x4ef632(0x1b7)])throw new AnnError(ApiError_1[_0x4ef632(0x1b0)][_0x4ef632(0x184)]);if(_0x17393d[_0x4ef632(0x1b8)]&&_0x17393d['checkcode']!=this[_0x4ef632(0x1b7)](_0x17393d['token'],_0x17393d[_0x4ef632(0x19d)],_0x17393d[_0x4ef632(0x1a9)]))throw new AnnError(ApiError_1[_0x4ef632(0x1b0)]['HEADERS_CHECKCODE']);return _0x5983f7[_0x4ef632(0x18a)](_0x4ef632(0x19e)+this['config'][_0x4ef632(0x1a0)][_0x17393d['device']]['secret']),(0x0,crypto_js_1[_0x4ef632(0x1a7)])(_0x5983f7[_0x4ef632(0x18f)]()['join'](''))['toString']();}[a11_0x42b8b8(0x1b7)](_0x8647b7,_0x5e2cb1,_0x25fe05=Date[a11_0x42b8b8(0x1b6)]()){var _0x2914c1=a11_0x42b8b8,_0xe0c8bc,_0x27a6d4,_0x929ae4;if(!((_0xe0c8bc=this[_0x2914c1(0x190)])===null||_0xe0c8bc===void 0x0?void 0x0:_0xe0c8bc[_0x2914c1(0x1a0)][_0x5e2cb1])||!((_0x929ae4=(_0x27a6d4=this['config'])===null||_0x27a6d4===void 0x0?void 0x0:_0x27a6d4['devices'][_0x5e2cb1])===null||_0x929ae4===void 0x0?void 0x0:_0x929ae4[_0x2914c1(0x1b7)]))throw new AnnError(ApiError_1[_0x2914c1(0x1b0)][_0x2914c1(0x184)]);return(0x0,crypto_js_1[_0x2914c1(0x1a7)])(''+_0x8647b7+(0x0,crypto_js_1[_0x2914c1(0x1a7)])(''+_0x25fe05+(''+this[_0x2914c1(0x190)]['devices'][_0x5e2cb1][_0x2914c1(0x1b7)]))[_0x2914c1(0x1a6)]())['toString']();}[a11_0x42b8b8(0x185)](_0x2d3b22={}){var _0x2e02a1=a11_0x42b8b8;const _0x1115ba=Object[_0x2e02a1(0x1a5)](Object[_0x2e02a1(0x1b5)](_0x2d3b22)[_0x2e02a1(0x180)](_0x137596=>[_0x137596[0x0][_0x2e02a1(0x19a)](),_0x137596[0x1]]));if(!(_0x1115ba===null||_0x1115ba===void 0x0?void 0x0:_0x1115ba[_0x2e02a1(0x19b)]))throw new AnnError(ApiError_1[_0x2e02a1(0x1b0)][_0x2e02a1(0x17e)],{'message':_0x2e02a1(0x1a1)});if((_0x1115ba===null||_0x1115ba===void 0x0?void 0x0:_0x1115ba[_0x2e02a1(0x19b)])!=this['getsign'](_0x1115ba))throw new AnnError(ApiError_1[_0x2e02a1(0x1b0)][_0x2e02a1(0x189)]);return!![];}};__decorate([(0x0,core_1[a11_0x42b8b8(0x186)])('anncicapi'),__metadata(a11_0x42b8b8(0x17f),Object)],ApiService[a11_0x42b8b8(0x1ad)],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x42b8b8(0x19f)])(),(0x0,core_1['Scope'])(core_1[a11_0x42b8b8(0x1aa)][a11_0x42b8b8(0x1b1)])],ApiService),exports[a11_0x42b8b8(0x1bb)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x3cf5c1=a12_0x4c04;(function(_0x234eb7,_0x2a5c32){const _0xf79c93=a12_0x4c04,_0x3b1213=_0x234eb7();while(!![]){try{const _0x59ee98=parseInt(_0xf79c93(0x125))/0x1*(-parseInt(_0xf79c93(0x120))/0x2)+parseInt(_0xf79c93(0x116))/0x3*(parseInt(_0xf79c93(0x118))/0x4)+-parseInt(_0xf79c93(0x157))/0x5*(parseInt(_0xf79c93(0x159))/0x6)+parseInt(_0xf79c93(0x160))/0x7+parseInt(_0xf79c93(0x152))/0x8+parseInt(_0xf79c93(0x13f))/0x9*(-parseInt(_0xf79c93(0x158))/0xa)+-parseInt(_0xf79c93(0x145))/0xb;if(_0x59ee98===_0x2a5c32)break;else _0x3b1213['push'](_0x3b1213['shift']());}catch(_0x4a68a3){_0x3b1213['push'](_0x3b1213['shift']());}}}(a12_0x1583,0xc228f));const a12_0x55ff8a=(function(){let _0x543535=!![];return function(_0x263e28,_0x49a8ea){const _0x2fc360=_0x543535?function(){const _0x290e7e=a12_0x4c04;if(_0x49a8ea){const _0x564aa3=_0x49a8ea[_0x290e7e(0x132)](_0x263e28,arguments);return _0x49a8ea=null,_0x564aa3;}}:function(){};return _0x543535=![],_0x2fc360;};}()),a12_0x5d583d=a12_0x55ff8a(this,function(){const _0x25d1bd=a12_0x4c04;return a12_0x5d583d['toString']()[_0x25d1bd(0x12b)](_0x25d1bd(0x14b))[_0x25d1bd(0x153)]()['constructor'](a12_0x5d583d)['search'](_0x25d1bd(0x14b));});function a12_0x1583(){const _0x5f17f2=['/apiteststatic/*','275791xeteio','apitest','Controller','filepath','../helper/getRoutes','MidwayEnvironmentService','search','cache-control','ApitestStaticController','prefix','Inject','function','prototype','apply','stringify','Config','module','set','/apitest-:module','/apitest','replace','design:type','ScopeEnum','/apiteststatic/','push','public,\x20max-age=604800','441ISzQdl','text/css;\x20charset=utf-8','route','devices','isDevelopmentEnvironment','apidoc','2579236TlNNfk','existsSync','.css','summary','config','ApitestService','(((.+)+)+)+$','defineProperty','routes','__metadata','Singleton','request','url','10125456SaBHDF','toString','apiteststatic','../../public/index.html','object','6606695DSMOBE','131650PHqZLG','6aOUImo','path','readFileSync','design:paramtypes','decorate','length','design:returntype','5619257aRdeGi','utf-8','/index.html','__esModule','Get','.js','apitesthtml','description','Environment','metadata','__apiList__','9OeYYtQ','extname','1604716KBpNhb','@midwayjs/core','join','content-type','ctx','application/javascript;\x20charset=utf-8','anncicapi','__devices__','2LswjKQ','Provide','apitestmodule','Scope'];a12_0x1583=function(){return _0x5f17f2;};return a12_0x1583();}a12_0x5d583d();'use strict';var __decorate=this&&this['__decorate']||function(_0x3cf6a1,_0x5c5029,_0x426889,_0x25522b){const _0x435dc7=a12_0x4c04;var _0x50c68d=arguments['length'],_0x10f9f5=_0x50c68d<0x3?_0x5c5029:_0x25522b===null?_0x25522b=Object['getOwnPropertyDescriptor'](_0x5c5029,_0x426889):_0x25522b,_0x513cff;if(typeof Reflect==='object'&&typeof Reflect[_0x435dc7(0x15d)]==='function')_0x10f9f5=Reflect[_0x435dc7(0x15d)](_0x3cf6a1,_0x5c5029,_0x426889,_0x25522b);else{for(var _0x2e0e0a=_0x3cf6a1[_0x435dc7(0x15e)]-0x1;_0x2e0e0a>=0x0;_0x2e0e0a--)if(_0x513cff=_0x3cf6a1[_0x2e0e0a])_0x10f9f5=(_0x50c68d<0x3?_0x513cff(_0x10f9f5):_0x50c68d>0x3?_0x513cff(_0x5c5029,_0x426889,_0x10f9f5):_0x513cff(_0x5c5029,_0x426889))||_0x10f9f5;}return _0x50c68d>0x3&&_0x10f9f5&&Object[_0x435dc7(0x14c)](_0x5c5029,_0x426889,_0x10f9f5),_0x10f9f5;},__metadata=this&&this[a12_0x3cf5c1(0x14e)]||function(_0x4a98d6,_0x27fc4d){const _0x2c67f6=a12_0x3cf5c1;if(typeof Reflect===_0x2c67f6(0x156)&&typeof Reflect[_0x2c67f6(0x114)]===_0x2c67f6(0x130))return Reflect['metadata'](_0x4a98d6,_0x27fc4d);},__param=this&&this['__param']||function(_0x2d1f85,_0x400608){return function(_0x3f03e0,_0x114fbf){_0x400608(_0x3f03e0,_0x114fbf,_0x2d1f85);};};Object[a12_0x3cf5c1(0x14c)](exports,a12_0x3cf5c1(0x10e),{'value':!![]}),exports[a12_0x3cf5c1(0x12d)]=exports['ApitestService']=void 0x0;const path_1=require(a12_0x3cf5c1(0x15a)),fs_1=require('fs'),core_1=require(a12_0x3cf5c1(0x119)),core_2=require(a12_0x3cf5c1(0x119)),core_3=require(a12_0x3cf5c1(0x119)),getRoutes_1=require(a12_0x3cf5c1(0x129));function a12_0x4c04(_0x3aaabf,_0x19178d){const _0x3dc11a=a12_0x1583();return a12_0x4c04=function(_0x5d583d,_0x55ff8a){_0x5d583d=_0x5d583d-0x10c;let _0x158312=_0x3dc11a[_0x5d583d];return _0x158312;},a12_0x4c04(_0x3aaabf,_0x19178d);}let ApitestService=class ApitestService{async[a12_0x3cf5c1(0x144)](_0x28af4a){const _0x3d786e=a12_0x3cf5c1,_0x37588d=(0x0,getRoutes_1['getRoutes'])(_0x28af4a),_0x135e97=[];for(let _0x194153 in _0x37588d){for(let _0x1185b8 in _0x37588d[_0x194153][_0x3d786e(0x14d)]){let _0x2c55f6=_0x37588d[_0x194153]['routes'][_0x1185b8],_0x4f2822=[];for(let _0x173ab2 in _0x2c55f6[_0x3d786e(0x150)]){_0x4f2822[_0x3d786e(0x13d)](_0x2c55f6[_0x3d786e(0x150)][_0x173ab2]);}_0x135e97[_0x3d786e(0x13d)]({'title':_0x37588d[_0x194153][_0x3d786e(0x148)]+':'+_0x2c55f6[_0x3d786e(0x148)],'prefix':_0x37588d[_0x194153][_0x3d786e(0x12e)],'router':_0x2c55f6[_0x3d786e(0x141)],'method':_0x2c55f6['method'],'describe':_0x2c55f6[_0x3d786e(0x112)]||'','filepath':_0x37588d[_0x194153][_0x3d786e(0x128)]||'','request':_0x4f2822});}}const _0x4e4303=(0x0,path_1['join'])(__dirname,_0x3d786e(0x155));return(0x0,fs_1[_0x3d786e(0x15b)])(_0x4e4303,{'encoding':'utf-8'})[_0x3d786e(0x139)](/__res__/g,_0x3d786e(0x13c))['replace'](_0x3d786e(0x115),JSON[_0x3d786e(0x133)](_0x135e97))[_0x3d786e(0x139)](_0x3d786e(0x11f),JSON[_0x3d786e(0x133)](this[_0x3d786e(0x149)][_0x3d786e(0x142)]));}};__decorate([(0x0,core_3[a12_0x3cf5c1(0x134)])(a12_0x3cf5c1(0x11e)),__metadata(a12_0x3cf5c1(0x13a),Object)],ApitestService['prototype'],a12_0x3cf5c1(0x149),void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x3cf5c1(0x121)])(a12_0x3cf5c1(0x126)),(0x0,core_3[a12_0x3cf5c1(0x123)])(core_3[a12_0x3cf5c1(0x13b)][a12_0x3cf5c1(0x14f)])],ApitestService),exports[a12_0x3cf5c1(0x14a)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x3cf5c1(0x111)](){const _0xa4eb37=a12_0x3cf5c1;if(this[_0xa4eb37(0x126)]){const _0x478814={'module':![]};return this[_0xa4eb37(0x113)]['isDevelopmentEnvironment']()&&(_0x478814['filepath']=!![]),await this['ApitestService'][_0xa4eb37(0x144)](_0x478814);}return'';}async[a12_0x3cf5c1(0x122)](_0x54355d){const _0x5a7afb=a12_0x3cf5c1;if(this[_0x5a7afb(0x126)]){const _0x47f27f={'module':_0x54355d};return this['Environment'][_0x5a7afb(0x143)]()&&(_0x47f27f[_0x5a7afb(0x128)]=!![]),await this[_0x5a7afb(0x14a)][_0x5a7afb(0x144)](_0x47f27f);}return'';}async['apiteststatic'](){const _0x15e2f5=a12_0x3cf5c1;if((0x0,path_1[_0x15e2f5(0x117)])(this[_0x15e2f5(0x11c)]['request']['url'])){var _0x5245fe=(0x0,path_1[_0x15e2f5(0x11a)])(__dirname,'../../public/'+this[_0x15e2f5(0x11c)]['request'][_0x15e2f5(0x151)][_0x15e2f5(0x139)](_0x15e2f5(0x13c),'/'));if(_0x5245fe['substring'](_0x5245fe[_0x15e2f5(0x15e)]-0xb)!=_0x15e2f5(0x10d)){this[_0x15e2f5(0x11c)]['set'](_0x15e2f5(0x12c),_0x15e2f5(0x13e));if((0x0,path_1['extname'])(this[_0x15e2f5(0x11c)][_0x15e2f5(0x150)][_0x15e2f5(0x151)])==_0x15e2f5(0x110))this[_0x15e2f5(0x11c)][_0x15e2f5(0x136)](_0x15e2f5(0x11b),_0x15e2f5(0x11d));else(0x0,path_1[_0x15e2f5(0x117)])(this['ctx'][_0x15e2f5(0x150)]['url'])==_0x15e2f5(0x147)&&this[_0x15e2f5(0x11c)][_0x15e2f5(0x136)](_0x15e2f5(0x11b),_0x15e2f5(0x140));return(0x0,fs_1[_0x15e2f5(0x146)])(_0x5245fe)&&(0x0,fs_1[_0x15e2f5(0x15b)])(_0x5245fe,{'encoding':_0x15e2f5(0x10c)});}}return'';}};__decorate([(0x0,core_3[a12_0x3cf5c1(0x12f)])(),__metadata(a12_0x3cf5c1(0x13a),Object)],ApitestStaticController[a12_0x3cf5c1(0x131)],a12_0x3cf5c1(0x11c),void 0x0),__decorate([(0x0,core_3[a12_0x3cf5c1(0x12f)])(),__metadata(a12_0x3cf5c1(0x13a),core_1[a12_0x3cf5c1(0x12a)])],ApitestStaticController[a12_0x3cf5c1(0x131)],a12_0x3cf5c1(0x113),void 0x0),__decorate([(0x0,core_3[a12_0x3cf5c1(0x12f)])(),__metadata(a12_0x3cf5c1(0x13a),ApitestService)],ApitestStaticController[a12_0x3cf5c1(0x131)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a12_0x3cf5c1(0x134)])(a12_0x3cf5c1(0x126)),__metadata(a12_0x3cf5c1(0x13a),Boolean)],ApitestStaticController['prototype'],'apitest',void 0x0),__decorate([(0x0,core_3[a12_0x3cf5c1(0x134)])(a12_0x3cf5c1(0x11e)),__metadata(a12_0x3cf5c1(0x13a),Object)],ApitestStaticController[a12_0x3cf5c1(0x131)],'config',void 0x0),__decorate([(0x0,core_2[a12_0x3cf5c1(0x10f)])(a12_0x3cf5c1(0x138)),__metadata(a12_0x3cf5c1(0x13a),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],'apitesthtml',null),__decorate([(0x0,core_2['Get'])(a12_0x3cf5c1(0x137)),__param(0x0,(0x0,core_2['Param'])(a12_0x3cf5c1(0x135))),__metadata(a12_0x3cf5c1(0x13a),Function),__metadata(a12_0x3cf5c1(0x15c),[String]),__metadata(a12_0x3cf5c1(0x15f),Promise)],ApitestStaticController[a12_0x3cf5c1(0x131)],a12_0x3cf5c1(0x122),null),__decorate([(0x0,core_2[a12_0x3cf5c1(0x10f)])(a12_0x3cf5c1(0x124)),__metadata(a12_0x3cf5c1(0x13a),Function),__metadata(a12_0x3cf5c1(0x15c),[]),__metadata(a12_0x3cf5c1(0x15f),Promise)],ApitestStaticController[a12_0x3cf5c1(0x131)],a12_0x3cf5c1(0x154),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x3cf5c1(0x127)])('/'),(0x0,core_3[a12_0x3cf5c1(0x123)])(core_3[a12_0x3cf5c1(0x13b)]['Request'])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x16f4(){const _0x332448=['set','substring','__decorate','.xlsx','startsWith','mkdirSync','value','getOwnPropertyDescriptor','xlsx','Workbook','Singleton','\x20is\x20read\x20fail','ScopeEnum','getWorksheet','replace','(((.+)+)+)+$','findRows','@midwayjs/core','ExcelService','parse','cellCount','addRow','metadata','5huvcnq','download','676536tLQrdd','format','App','constructor','addWorksheet','header','66WlktSc','2661kxEHeT','log','length','keys','export','search','function','isNumber','app','eachCell','YYYY/MM/DD','random','model','588116lxBuTS','8zTHRRH','233001lXvIcg','__esModule','defineProperty','push','get','object','frozen','Sheet\x201','toString','34hlpcpK','design:type','getAppDir','apply','1245650oJBTTQ','col','key','287149CqXtSP','/public/xlsx/','handler','endsWith','getCell','readFile','3060HFaeUS'];a13_0x16f4=function(){return _0x332448;};return a13_0x16f4();}const a13_0x1cc140=a13_0x483d;(function(_0x1cfbe2,_0x2e37c4){const _0x1100f8=a13_0x483d,_0x201b28=_0x1cfbe2();while(!![]){try{const _0x58b3a2=parseInt(_0x1100f8(0xeb))/0x1+-parseInt(_0x1100f8(0xe4))/0x2*(parseInt(_0x1100f8(0x112))/0x3)+parseInt(_0x1100f8(0x11f))/0x4*(parseInt(_0x1100f8(0x109))/0x5)+-parseInt(_0x1100f8(0x10b))/0x6+-parseInt(_0x1100f8(0xe8))/0x7+-parseInt(_0x1100f8(0x120))/0x8*(-parseInt(_0x1100f8(0xdb))/0x9)+parseInt(_0x1100f8(0xf1))/0xa*(parseInt(_0x1100f8(0x111))/0xb);if(_0x58b3a2===_0x2e37c4)break;else _0x201b28['push'](_0x201b28['shift']());}catch(_0x11c8a5){_0x201b28['push'](_0x201b28['shift']());}}}(a13_0x16f4,0x261d6));const a13_0xdd92ba=(function(){let _0x16a2b5=!![];return function(_0x4ae100,_0x31d24f){const _0x1fe1c2=_0x16a2b5?function(){const _0x1e70b3=a13_0x483d;if(_0x31d24f){const _0xf7290=_0x31d24f[_0x1e70b3(0xe7)](_0x4ae100,arguments);return _0x31d24f=null,_0xf7290;}}:function(){};return _0x16a2b5=![],_0x1fe1c2;};}()),a13_0x37cbc1=a13_0xdd92ba(this,function(){const _0x4e7ead=a13_0x483d;return a13_0x37cbc1[_0x4e7ead(0xe3)]()['search']('(((.+)+)+)+$')[_0x4e7ead(0xe3)]()[_0x4e7ead(0x10e)](a13_0x37cbc1)[_0x4e7ead(0x117)](_0x4e7ead(0x101));});function a13_0x483d(_0x241ef9,_0x9fb8a4){const _0x17293e=a13_0x16f4();return a13_0x483d=function(_0x37cbc1,_0xdd92ba){_0x37cbc1=_0x37cbc1-0xdb;let _0x16f4c0=_0x17293e[_0x37cbc1];return _0x16f4c0;},a13_0x483d(_0x241ef9,_0x9fb8a4);}a13_0x37cbc1();'use strict';var __decorate=this&&this[a13_0x1cc140(0xf4)]||function(_0x2c3bde,_0x4e5cfc,_0x19db60,_0x5a0044){const _0x4aa5ac=a13_0x1cc140;var _0x1931af=arguments['length'],_0x26f7ee=_0x1931af<0x3?_0x4e5cfc:_0x5a0044===null?_0x5a0044=Object[_0x4aa5ac(0xf9)](_0x4e5cfc,_0x19db60):_0x5a0044,_0x257b00;if(typeof Reflect===_0x4aa5ac(0xe0)&&typeof Reflect['decorate']===_0x4aa5ac(0x118))_0x26f7ee=Reflect['decorate'](_0x2c3bde,_0x4e5cfc,_0x19db60,_0x5a0044);else{for(var _0x56ae37=_0x2c3bde[_0x4aa5ac(0x114)]-0x1;_0x56ae37>=0x0;_0x56ae37--)if(_0x257b00=_0x2c3bde[_0x56ae37])_0x26f7ee=(_0x1931af<0x3?_0x257b00(_0x26f7ee):_0x1931af>0x3?_0x257b00(_0x4e5cfc,_0x19db60,_0x26f7ee):_0x257b00(_0x4e5cfc,_0x19db60))||_0x26f7ee;}return _0x1931af>0x3&&_0x26f7ee&&Object[_0x4aa5ac(0xdd)](_0x4e5cfc,_0x19db60,_0x26f7ee),_0x26f7ee;},__metadata=this&&this['__metadata']||function(_0x512588,_0xde741d){const _0x327017=a13_0x1cc140;if(typeof Reflect===_0x327017(0xe0)&&typeof Reflect[_0x327017(0x108)]===_0x327017(0x118))return Reflect[_0x327017(0x108)](_0x512588,_0xde741d);};Object[a13_0x1cc140(0xdd)](exports,a13_0x1cc140(0xdc),{'value':!![]}),exports[a13_0x1cc140(0x104)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require('koa-send'),core_1=require(a13_0x1cc140(0x103));let ExcelService=class ExcelService{async[a13_0x1cc140(0x105)](_0x461654,_0x41d66b,_0x19ff96=[0x0]){const _0x39da3b=a13_0x1cc140;var _0x2318ec,_0x1d2761;const _0x7c7d30=new exceljs[(_0x39da3b(0xfb))](),_0x5d11ad=[];let _0x2186cd=_0x461654[_0x39da3b(0x100)](/(\\|\/)/g,'/')[_0x39da3b(0x100)](/\/{2,}/g,'/');!(_0x2186cd===null||_0x2186cd===void 0x0?void 0x0:_0x2186cd[_0x39da3b(0xf6)]('/'))&&(_0x2186cd=this[_0x39da3b(0x11a)][_0x39da3b(0xe6)]()+'/'+_0x2186cd);try{await _0x7c7d30[_0x39da3b(0xfa)][_0x39da3b(0xf0)](_0x2186cd);}catch(_0x45aa77){return console[_0x39da3b(0x113)]('Api\x20Excel\x20Error:\x20'+_0x2186cd+_0x39da3b(0xfd)),_0x5d11ad;}for(const _0x719a43 of _0x19ff96){const _0x305920=lodash[_0x39da3b(0x119)](_0x719a43)?((_0x2318ec=_0x7c7d30['worksheets'])===null||_0x2318ec===void 0x0?void 0x0:_0x2318ec[_0x719a43])||undefined:_0x7c7d30[_0x39da3b(0xff)](_0x719a43);if(_0x305920){var _0x26e495=0x1;const _0x35d412=_0x305920['getRow'](0x1),_0x5e05fa=await new Promise(_0x226db8=>{const _0x5f2e58=_0x39da3b,_0x342d9e={};_0x35d412[_0x5f2e58(0x11b)]((_0x143e06,_0x58764b)=>{const _0x3ca49f=_0x5f2e58;for(const _0x2616cc of _0x41d66b){if(_0x143e06[_0x3ca49f(0xf8)]==_0x2616cc['header'])_0x26e495=0x2,_0x342d9e[_0x2616cc[_0x3ca49f(0xea)]]={'header':_0x143e06[_0x3ca49f(0xe9)],'handler':_0x2616cc[_0x3ca49f(0xed)]};else{if(!_0x342d9e[_0x2616cc[_0x3ca49f(0xea)]])try{const _0x229668=_0x35d412&&_0x35d412['getCell'](_0x2616cc['header']);_0x229668&&(_0x342d9e[_0x2616cc[_0x3ca49f(0xea)]]={'header':_0x229668[_0x3ca49f(0xe9)],'handler':_0x2616cc[_0x3ca49f(0xed)]});}catch{}}}_0x35d412[_0x3ca49f(0x106)]==_0x58764b&&_0x226db8(_0x342d9e);});});for(const _0x513616 of _0x305920[_0x39da3b(0x102)](_0x26e495,_0x305920['rowCount'])){const _0x4f0d40={};for(const _0x7bc9b2 in _0x5e05fa){if(_0x5e05fa[_0x7bc9b2][_0x39da3b(0x110)]){const _0x52dbaa=_0x513616&&_0x513616[_0x39da3b(0xef)](_0x5e05fa[_0x7bc9b2]['header']);typeof((_0x1d2761=_0x5e05fa[_0x7bc9b2])===null||_0x1d2761===void 0x0?void 0x0:_0x1d2761['handler'])=='function'?_0x4f0d40[_0x7bc9b2]=await _0x5e05fa[_0x7bc9b2][_0x39da3b(0xed)](lodash[_0x39da3b(0xf2)]({},_0x7bc9b2,(_0x52dbaa===null||_0x52dbaa===void 0x0?void 0x0:_0x52dbaa['toString']())||''),_0x52dbaa[_0x39da3b(0x11e)]):_0x4f0d40[_0x7bc9b2]=(_0x52dbaa===null||_0x52dbaa===void 0x0?void 0x0:_0x52dbaa[_0x39da3b(0xe3)]())||'';}}Object[_0x39da3b(0x115)](_0x4f0d40)[_0x39da3b(0x114)]>0x0&&Object['values'](_0x4f0d40)['filter'](_0x37bee7=>_0x37bee7!=='')[_0x39da3b(0x114)]>0x0&&_0x5d11ad['push'](_0x4f0d40);}}}return _0x5d11ad;}async[a13_0x1cc140(0x116)](_0x376312,_0x37994b,_0x3e6135,_0x4c2b48){const _0x4c944e=a13_0x1cc140;var _0x3d7068,_0x32322b;const _0x11c3e2=new exceljs['Workbook'](),_0x3faee1={},_0x47e3a1=[],_0x2644ee=_0x11c3e2[_0x4c944e(0x10f)](_0x4c944e(0xe2),{'views':[{'state':_0x4c944e(0xe1),'xSplit':0x1}]});for(const _0x23330f in _0x37994b){_0x3faee1[_0x37994b[_0x23330f][_0x4c944e(0xea)]]=_0x37994b[_0x23330f][_0x4c944e(0x110)],_0x47e3a1[_0x4c944e(0xde)]({'header':_0x37994b[_0x23330f][_0x4c944e(0x110)],'key':(_0x3d7068=_0x37994b[_0x23330f])===null||_0x3d7068===void 0x0?void 0x0:_0x3d7068['key']['replace'](/\./g,'_')});}_0x2644ee['columns']=_0x47e3a1;for(const _0x19edb6 of _0x3e6135){const _0x29ed78={};for(const _0x4fe4c6 in _0x37994b){typeof((_0x32322b=_0x37994b[_0x4fe4c6])===null||_0x32322b===void 0x0?void 0x0:_0x32322b[_0x4c944e(0xed)])==_0x4c944e(0x118)?_0x29ed78[_0x37994b[_0x4fe4c6]['key'][_0x4c944e(0x100)](/\./g,'_')]=await _0x37994b[_0x4fe4c6]['handler'](_0x19edb6):_0x29ed78[_0x37994b[_0x4fe4c6][_0x4c944e(0xea)][_0x4c944e(0x100)](/\./g,'_')]=lodash[_0x4c944e(0xdf)](_0x19edb6,_0x37994b[_0x4fe4c6][_0x4c944e(0xea)],'');}_0x2644ee[_0x4c944e(0x107)](_0x29ed78);}let _0x5eb47c='';const _0x55c9b8=_0x376312+'-'+lodash[_0x4c944e(0x11d)](0x186a0,0xf423f)+_0x4c944e(0xf5);if(_0x4c2b48&&_0x4c2b48['startsWith']('/'))_0x5eb47c=''+_0x4c2b48;else _0x4c2b48&&!_0x4c2b48['startsWith']('/')&&!_0x4c2b48['startsWith']('\x5c')?_0x5eb47c=this[_0x4c944e(0x11a)][_0x4c944e(0xe6)]()+'/'+_0x4c2b48:_0x5eb47c=this['app'][_0x4c944e(0xe6)]()+_0x4c944e(0xec)+dayjs()[_0x4c944e(0x10c)](_0x4c944e(0x11c));return(_0x5eb47c[_0x4c944e(0xee)]('/')||_0x5eb47c['endsWith']('\x5c'))&&(_0x5eb47c=_0x5eb47c[_0x4c944e(0xf3)](0x0,_0x5eb47c[_0x4c944e(0x114)]-0x1)),_0x5eb47c=_0x5eb47c['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x5eb47c)&&fs[_0x4c944e(0xf7)](_0x5eb47c,{'recursive':!![]}),await _0x11c3e2[_0x4c944e(0xfa)]['writeFile']((_0x5eb47c+'/'+_0x55c9b8)['replace'](/(\\|\/)/g,'/')[_0x4c944e(0x100)](/\/{2,}/g,'/')),{'filename':_0x55c9b8,'filepath':(_0x5eb47c[_0x4c944e(0xf3)]((''+this[_0x4c944e(0x11a)][_0x4c944e(0xe6)]())[_0x4c944e(0x114)])+'/'+_0x55c9b8)[_0x4c944e(0x100)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a13_0x1cc140(0x10a)](_0x22de01,_0x21f2b3){return await koasend(_0x22de01,''+_0x21f2b3);}};__decorate([(0x0,core_1[a13_0x1cc140(0x10d)])(),__metadata(a13_0x1cc140(0xe5),Object)],ExcelService['prototype'],a13_0x1cc140(0x11a),void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a13_0x1cc140(0xfe)][a13_0x1cc140(0xfc)])],ExcelService),exports[a13_0x1cc140(0x104)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x11cbd2=a14_0x597a;(function(_0x25a1db,_0x5a545d){var _0x4a3914=a14_0x597a,_0x32472e=_0x25a1db();while(!![]){try{var _0x57efe6=parseInt(_0x4a3914(0x1b5))/0x1*(-parseInt(_0x4a3914(0x1ae))/0x2)+parseInt(_0x4a3914(0x1b0))/0x3+-parseInt(_0x4a3914(0x1af))/0x4*(parseInt(_0x4a3914(0x1a7))/0x5)+-parseInt(_0x4a3914(0x1a5))/0x6+-parseInt(_0x4a3914(0x1b4))/0x7*(-parseInt(_0x4a3914(0x1a6))/0x8)+-parseInt(_0x4a3914(0x1a4))/0x9+-parseInt(_0x4a3914(0x1ab))/0xa*(-parseInt(_0x4a3914(0x1b1))/0xb);if(_0x57efe6===_0x5a545d)break;else _0x32472e['push'](_0x32472e['shift']());}catch(_0x30e02a){_0x32472e['push'](_0x32472e['shift']());}}}(a14_0xbc52,0x2c3c6));var a14_0xa1c34f=(function(){var _0x16505f=!![];return function(_0x545783,_0x476f4e){var _0x53d7ae=_0x16505f?function(){if(_0x476f4e){var _0x20c4d3=_0x476f4e['apply'](_0x545783,arguments);return _0x476f4e=null,_0x20c4d3;}}:function(){};return _0x16505f=![],_0x53d7ae;};}()),a14_0x189ab0=a14_0xa1c34f(this,function(){var _0x1b9cfa=a14_0x597a;return a14_0x189ab0[_0x1b9cfa(0x1b7)]()[_0x1b9cfa(0x1b2)]('(((.+)+)+)+$')['toString']()[_0x1b9cfa(0x1a3)](a14_0x189ab0)[_0x1b9cfa(0x1b2)]('(((.+)+)+)+$');});function a14_0xbc52(){var _0xe3c2b8=['689135McbCGu','AppsConfigTmp','__esModule','defineProperty','42710BrOFWs','anncic-api:apps:config','APPSCONFIG_KEY','84166tgzkFo','8FkfaFf','775647KpVKHV','825bgYGTQ','search','ACTION_ROUTE_KEY','1779267DfDOJT','1NlJoAJ','anncic-api:action','toString','ACTION_KEY','constructor','2322729TrkwsU','456282eTHzpp','8arovvo'];a14_0xbc52=function(){return _0xe3c2b8;};return a14_0xbc52();}a14_0x189ab0();'use strict';Object[a14_0x11cbd2(0x1aa)](exports,a14_0x11cbd2(0x1a9),{'value':!![]}),exports[a14_0x11cbd2(0x1a8)]=exports[a14_0x11cbd2(0x1ad)]=exports[a14_0x11cbd2(0x1b3)]=exports[a14_0x11cbd2(0x1b8)]=void 0x0,exports[a14_0x11cbd2(0x1b8)]=a14_0x11cbd2(0x1b6),exports[a14_0x11cbd2(0x1b3)]='anncic-api:action:route',exports[a14_0x11cbd2(0x1ad)]=a14_0x11cbd2(0x1ac);function a14_0x597a(_0x2bcdfd,_0xb22c73){var _0x1e4449=a14_0xbc52();return a14_0x597a=function(_0x189ab0,_0xa1c34f){_0x189ab0=_0x189ab0-0x1a3;var _0xbc523c=_0x1e4449[_0x189ab0];return _0xbc523c;},a14_0x597a(_0x2bcdfd,_0xb22c73);}class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x25ee04=a15_0x4e15;(function(_0x340f1e,_0x34d725){var _0x2f5e53=a15_0x4e15,_0x5d885a=_0x340f1e();while(!![]){try{var _0x107c25=-parseInt(_0x2f5e53(0xc1))/0x1*(parseInt(_0x2f5e53(0xd4))/0x2)+-parseInt(_0x2f5e53(0xbc))/0x3+-parseInt(_0x2f5e53(0xcd))/0x4*(parseInt(_0x2f5e53(0xbd))/0x5)+parseInt(_0x2f5e53(0xc7))/0x6+-parseInt(_0x2f5e53(0xcf))/0x7+parseInt(_0x2f5e53(0xd6))/0x8*(-parseInt(_0x2f5e53(0xc6))/0x9)+parseInt(_0x2f5e53(0xc8))/0xa;if(_0x107c25===_0x34d725)break;else _0x5d885a['push'](_0x5d885a['shift']());}catch(_0x40c30d){_0x5d885a['push'](_0x5d885a['shift']());}}}(a15_0x5f26,0xd72c2));var a15_0xdb8bf1=(function(){var _0x452c10=!![];return function(_0x36f926,_0x432db9){var _0x4e0937=_0x452c10?function(){var _0x4033ae=a15_0x4e15;if(_0x432db9){var _0x5edbcc=_0x432db9[_0x4033ae(0xca)](_0x36f926,arguments);return _0x432db9=null,_0x5edbcc;}}:function(){};return _0x452c10=![],_0x4e0937;};}()),a15_0x3bd309=a15_0xdb8bf1(this,function(){var _0x26a77c=a15_0x4e15;return a15_0x3bd309[_0x26a77c(0xd8)]()['search'](_0x26a77c(0xc5))[_0x26a77c(0xd8)]()[_0x26a77c(0xd5)](a15_0x3bd309)[_0x26a77c(0xdd)](_0x26a77c(0xc5));});a15_0x3bd309();function a15_0x5f26(){var _0x159341=['function','prototype','defineProperty','__metadata','第一页为1,第二页为2','5092299uPuPtS','10erhVgb','PageDTO','valid','trim','4327xZzfxc','@anncic-api/validator','design:type','RuleType','(((.+)+)+)+$','8325693JenlwH','5073858wjTAlz','54754920jzBxAZ','1:是;0:否','apply','getOwnPropertyDescriptor','number','3347932EmzVfW','__esModule','5549782nvsUMI','_isreverse','min','_size','integer','162lofHFy','constructor','8TkhqAk','是否倒序','toString','排序方式','metadata','_page','_order','search'];a15_0x5f26=function(){return _0x159341;};return a15_0x5f26();}function a15_0x4e15(_0x5d7392,_0x3bfc14){var _0x4bdf88=a15_0x5f26();return a15_0x4e15=function(_0x3bd309,_0xdb8bf1){_0x3bd309=_0x3bd309-0xb8;var _0x5f26f=_0x4bdf88[_0x3bd309];return _0x5f26f;},a15_0x4e15(_0x5d7392,_0x3bfc14);}'use strict';var __decorate=this&&this['__decorate']||function(_0x12c6bf,_0x50dde2,_0x6f4ac0,_0x4e2ffa){var _0x3b6698=a15_0x4e15,_0x4692fd=arguments['length'],_0x17596a=_0x4692fd<0x3?_0x50dde2:_0x4e2ffa===null?_0x4e2ffa=Object[_0x3b6698(0xcb)](_0x50dde2,_0x6f4ac0):_0x4e2ffa,_0x5759f5;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3b6698(0xde))_0x17596a=Reflect['decorate'](_0x12c6bf,_0x50dde2,_0x6f4ac0,_0x4e2ffa);else{for(var _0x5779ec=_0x12c6bf['length']-0x1;_0x5779ec>=0x0;_0x5779ec--)if(_0x5759f5=_0x12c6bf[_0x5779ec])_0x17596a=(_0x4692fd<0x3?_0x5759f5(_0x17596a):_0x4692fd>0x3?_0x5759f5(_0x50dde2,_0x6f4ac0,_0x17596a):_0x5759f5(_0x50dde2,_0x6f4ac0))||_0x17596a;}return _0x4692fd>0x3&&_0x17596a&&Object[_0x3b6698(0xb9)](_0x50dde2,_0x6f4ac0,_0x17596a),_0x17596a;},__metadata=this&&this[a15_0x25ee04(0xba)]||function(_0x1c5f38,_0xc84931){var _0x2ddd46=a15_0x25ee04;if(typeof Reflect==='object'&&typeof Reflect[_0x2ddd46(0xda)]===_0x2ddd46(0xde))return Reflect[_0x2ddd46(0xda)](_0x1c5f38,_0xc84931);};Object[a15_0x25ee04(0xb9)](exports,a15_0x25ee04(0xce),{'value':!![]}),exports[a15_0x25ee04(0xbe)]=void 0x0;const validator_1=require(a15_0x25ee04(0xc2));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a15_0x25ee04(0xc4)][a15_0x25ee04(0xcc)]()[a15_0x25ee04(0xd3)]()[a15_0x25ee04(0xd1)](0x1),a15_0x25ee04(0xbb)),__metadata(a15_0x25ee04(0xc3),Number)],PageDTO[a15_0x25ee04(0xb8)],a15_0x25ee04(0xdb),void 0x0),__decorate([(0x0,validator_1['Rule'])('分页数量',validator_1[a15_0x25ee04(0xc4)][a15_0x25ee04(0xcc)]()[a15_0x25ee04(0xd3)]()['min'](0x1)),__metadata(a15_0x25ee04(0xc3),Number)],PageDTO['prototype'],a15_0x25ee04(0xd2),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x25ee04(0xd9),validator_1['RuleType']['string']()[a15_0x25ee04(0xc0)]()),__metadata('design:type',String)],PageDTO['prototype'],a15_0x25ee04(0xdc),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x25ee04(0xd7),validator_1[a15_0x25ee04(0xc4)][a15_0x25ee04(0xcc)]()[a15_0x25ee04(0xd3)]()[a15_0x25ee04(0xbf)](0x0,0x1),a15_0x25ee04(0xc9)),__metadata('design:type',Number)],PageDTO[a15_0x25ee04(0xb8)],a15_0x25ee04(0xd0),void 0x0),exports[a15_0x25ee04(0xbe)]=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x2e268a=a16_0x169f;(function(_0x3f5dc8,_0x93fd8){var _0x5557c4=a16_0x169f,_0x9dbeab=_0x3f5dc8();while(!![]){try{var _0x503882=parseInt(_0x5557c4(0xd6))/0x1*(parseInt(_0x5557c4(0xd0))/0x2)+-parseInt(_0x5557c4(0xcf))/0x3*(parseInt(_0x5557c4(0xcb))/0x4)+parseInt(_0x5557c4(0xd1))/0x5+parseInt(_0x5557c4(0xd4))/0x6+parseInt(_0x5557c4(0xce))/0x7*(parseInt(_0x5557c4(0xc9))/0x8)+parseInt(_0x5557c4(0xc6))/0x9*(parseInt(_0x5557c4(0xcc))/0xa)+-parseInt(_0x5557c4(0xd5))/0xb;if(_0x503882===_0x93fd8)break;else _0x9dbeab['push'](_0x9dbeab['shift']());}catch(_0x9f4da1){_0x9dbeab['push'](_0x9dbeab['shift']());}}}(a16_0x2bf8,0x5724f));var a16_0x12b954=(function(){var _0x317603=!![];return function(_0x5ec199,_0x4f3abe){var _0x1e829a=_0x317603?function(){var _0x2f911a=a16_0x169f;if(_0x4f3abe){var _0x1ad37e=_0x4f3abe[_0x2f911a(0xd7)](_0x5ec199,arguments);return _0x4f3abe=null,_0x1ad37e;}}:function(){};return _0x317603=![],_0x1e829a;};}()),a16_0xd83905=a16_0x12b954(this,function(){var _0x37c846=a16_0x169f;return a16_0xd83905[_0x37c846(0xc7)]()[_0x37c846(0xc5)]('(((.+)+)+)+$')[_0x37c846(0xc7)]()['constructor'](a16_0xd83905)['search'](_0x37c846(0xcd));});a16_0xd83905();'use strict';Object[a16_0x2e268a(0xd3)](exports,a16_0x2e268a(0xc8),{'value':!![]}),exports[a16_0x2e268a(0xd2)]=exports[a16_0x2e268a(0xca)]=void 0x0,exports[a16_0x2e268a(0xca)]='anncic-api:intercept';class InterceptTargetTmp{}function a16_0x169f(_0x14efd0,_0x37b8c4){var _0x658712=a16_0x2bf8();return a16_0x169f=function(_0xd83905,_0x12b954){_0xd83905=_0xd83905-0xc5;var _0x2bf878=_0x658712[_0xd83905];return _0x2bf878;},a16_0x169f(_0x14efd0,_0x37b8c4);}function a16_0x2bf8(){var _0xcbbfc0=['(((.+)+)+)+$','166187leBvzZ','9OwGMuY','342326IPiiyB','334760tTmpIw','InterceptTargetTmp','defineProperty','2823132qxNALI','10018338teRrpR','2lCbDLN','apply','search','5615361XeWTOb','toString','__esModule','120aMwNPs','INTERCEPT_KEY','789524VyjROi','10asMtRi'];a16_0x2bf8=function(){return _0xcbbfc0;};return a16_0x2bf8();}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
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": "^2.0.
|
|
21
|
-
"@anncic-api/core": "^2.0.
|
|
22
|
-
"@anncic-api/event": "^2.0.
|
|
23
|
-
"@anncic-api/typeorm": "^2.0.
|
|
24
|
-
"@anncic-api/validator": "^2.0.
|
|
20
|
+
"@anncic-api/cache": "^2.0.11",
|
|
21
|
+
"@anncic-api/core": "^2.0.11",
|
|
22
|
+
"@anncic-api/event": "^2.0.11",
|
|
23
|
+
"@anncic-api/typeorm": "^2.0.11",
|
|
24
|
+
"@anncic-api/validator": "^2.0.11",
|
|
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": "^2.0.
|
|
30
|
+
"anncic-apihelper": "^2.0.11",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"image-size": "^1.0.2",
|
|
33
33
|
"koa-send": "^5.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.0",
|
|
39
39
|
"typescript": "^4.8.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f7d64bc25045d579a610497e6c8188377e6a1423"
|
|
42
42
|
}
|