anncic-api 3.3.4 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x2a8474=a0_0xf9bf;(function(_0x211848,_0x2aa0f5){var _0x4bd8b9=a0_0xf9bf,_0x100c65=_0x211848();while(!![]){try{var _0x4c948d=-parseInt(_0x4bd8b9(0xba))/0x1*(parseInt(_0x4bd8b9(0xaf))/0x2)+-parseInt(_0x4bd8b9(0xb7))/0x3+parseInt(_0x4bd8b9(0xb3))/0x4*(parseInt(_0x4bd8b9(0xbb))/0x5)+parseInt(_0x4bd8b9(0xb1))/0x6*(-parseInt(_0x4bd8b9(0xb0))/0x7)+-parseInt(_0x4bd8b9(0xc0))/0x8*(parseInt(_0x4bd8b9(0xb9))/0x9)+parseInt(_0x4bd8b9(0xbd))/0xa*(parseInt(_0x4bd8b9(0xbc))/0xb)+parseInt(_0x4bd8b9(0xc2))/0xc*(parseInt(_0x4bd8b9(0xbe))/0xd);if(_0x4c948d===_0x2aa0f5)break;else _0x100c65['push'](_0x100c65['shift']());}catch(_0x2b070b){_0x100c65['push'](_0x100c65['shift']());}}}(a0_0x3caf,0x561b5));function a0_0x3caf(){var _0x37ea74=['8PAovMd','default','60UOwqzj','text','20mb','/runtime/.upload','search','zhiulanuiy7892387985hnoi','106XzuEaS','35gHmGCF','425094AAFfca','defineProperty','4VEwBCd','toString','constructor','name','816675AcUKjA','xml','6235713ucJXDc','9256ravEVv','565910OvLZZD','11WsqmDp','6625310uNClWm','3605875bilNzm','form'];a0_0x3caf=function(){return _0x37ea74;};return a0_0x3caf();}var a0_0x1dbeda=(function(){var _0x6ab55e=!![];return function(_0x452693,_0x5adb52){var _0x8bf7a9=_0x6ab55e?function(){if(_0x5adb52){var _0x3c0a1c=_0x5adb52['apply'](_0x452693,arguments);return _0x5adb52=null,_0x3c0a1c;}}:function(){};return _0x6ab55e=![],_0x8bf7a9;};}()),a0_0x102e47=a0_0x1dbeda(this,function(){var _0xa0159c=a0_0xf9bf;return a0_0x102e47[_0xa0159c(0xb4)]()[_0xa0159c(0xad)]('(((.+)+)+)+$')[_0xa0159c(0xb4)]()[_0xa0159c(0xb5)](a0_0x102e47)['search']('(((.+)+)+)+$');});a0_0x102e47();'use strict';function a0_0xf9bf(_0x575c0f,_0xfd6bdc){var _0x4d14d8=a0_0x3caf();return a0_0xf9bf=function(_0x102e47,_0x1dbeda){_0x102e47=_0x102e47-0xab;var _0x3caf50=_0x4d14d8[_0x102e47];return _0x3caf50;},a0_0xf9bf(_0x575c0f,_0xfd6bdc);}Object[a0_0x2a8474(0xb2)](exports,'__esModule',{'value':!![]}),exports[a0_0x2a8474(0xc1)]=_0x37d274=>{var _0x66acd5=a0_0x2a8474;return{'apitest':!![],'keys':_0x37d274[_0x66acd5(0xb6)],'anncicapi':{'requestKey':'_token','password':_0x66acd5(0xae),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':['json',_0x66acd5(0xbf),_0x66acd5(0xc3),_0x66acd5(0xb8)],'formLimit':_0x66acd5(0xab),'jsonLimit':_0x66acd5(0xab),'textLimit':_0x66acd5(0xab),'xmlLimit':_0x66acd5(0xab),'enable':!![]},'upload':{'tmpdir':_0x37d274['appDir']+_0x66acd5(0xac),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a1_0x5a40(_0x4b24cf,_0x3be238){var _0x3447bf=a1_0x1ebc();return a1_0x5a40=function(_0x1ed87f,_0x389a9b){_0x1ed87f=_0x1ed87f-0xc4;var _0x1ebc32=_0x3447bf[_0x1ed87f];return _0x1ebc32;},a1_0x5a40(_0x4b24cf,_0x3be238);}function a1_0x1ebc(){var _0x26e5ec=['toString','834dgyKRx','constructor','2754280EBklyz','375903INlIqq','apply','default','377489AyFoDg','search','351705BKAJKu','64iqINIA','4lcWBWy','11085xjLCTO','3652540npMHEv','2015751EekfYS','(((.+)+)+)+$'];a1_0x1ebc=function(){return _0x26e5ec;};return a1_0x1ebc();}var a1_0x450406=a1_0x5a40;(function(_0xf47672,_0x140033){var _0x4a3d83=a1_0x5a40,_0x4e4a79=_0xf47672();while(!![]){try{var _0x1fce8b=-parseInt(_0x4a3d83(0xca))/0x1*(-parseInt(_0x4a3d83(0xcc))/0x2)+-parseInt(_0x4a3d83(0xcf))/0x3+parseInt(_0x4a3d83(0xc4))/0x4+parseInt(_0x4a3d83(0xcd))/0x5*(-parseInt(_0x4a3d83(0xd2))/0x6)+-parseInt(_0x4a3d83(0xc8))/0x7*(parseInt(_0x4a3d83(0xcb))/0x8)+parseInt(_0x4a3d83(0xc5))/0x9+parseInt(_0x4a3d83(0xce))/0xa;if(_0x1fce8b===_0x140033)break;else _0x4e4a79['push'](_0x4e4a79['shift']());}catch(_0x352441){_0x4e4a79['push'](_0x4e4a79['shift']());}}}(a1_0x1ebc,0x5e9b1));var a1_0x389a9b=(function(){var _0x89a7a0=!![];return function(_0x567425,_0x155e93){var _0x2e2ef2=_0x89a7a0?function(){var _0x5f3901=a1_0x5a40;if(_0x155e93){var _0x5849b6=_0x155e93[_0x5f3901(0xc6)](_0x567425,arguments);return _0x155e93=null,_0x5849b6;}}:function(){};return _0x89a7a0=![],_0x2e2ef2;};}()),a1_0x1ed87f=a1_0x389a9b(this,function(){var _0x9e7799=a1_0x5a40;return a1_0x1ed87f[_0x9e7799(0xd1)]()[_0x9e7799(0xc9)](_0x9e7799(0xd0))[_0x9e7799(0xd1)]()[_0x9e7799(0xd3)](a1_0x1ed87f)[_0x9e7799(0xc9)](_0x9e7799(0xd0));});a1_0x1ed87f();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x450406(0xc7)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x299dc2=a2_0x5aa4;(function(_0x4ded2f,_0x562ca8){const _0x1bacb1=a2_0x5aa4,_0x430bf6=_0x4ded2f();while(!![]){try{const _0x3eeadf=-parseInt(_0x1bacb1(0x1d5))/0x1*(parseInt(_0x1bacb1(0x1d2))/0x2)+-parseInt(_0x1bacb1(0x1c9))/0x3*(-parseInt(_0x1bacb1(0x1ac))/0x4)+-parseInt(_0x1bacb1(0x1c4))/0x5*(-parseInt(_0x1bacb1(0x161))/0x6)+-parseInt(_0x1bacb1(0x1a7))/0x7+parseInt(_0x1bacb1(0x1a2))/0x8*(parseInt(_0x1bacb1(0x168))/0x9)+parseInt(_0x1bacb1(0x19c))/0xa+parseInt(_0x1bacb1(0x18d))/0xb;if(_0x3eeadf===_0x562ca8)break;else _0x430bf6['push'](_0x430bf6['shift']());}catch(_0x198b9c){_0x430bf6['push'](_0x430bf6['shift']());}}}(a2_0x3e0d,0xf0d2c));const a2_0x53276c=(function(){let _0x2234ea=!![];return function(_0x29b788,_0x3951fc){const _0x11170d=_0x2234ea?function(){const _0x157129=a2_0x5aa4;if(_0x3951fc){const _0x5167bc=_0x3951fc[_0x157129(0x156)](_0x29b788,arguments);return _0x3951fc=null,_0x5167bc;}}:function(){};return _0x2234ea=![],_0x11170d;};}()),a2_0x4a5d7e=a2_0x53276c(this,function(){const _0x33d033=a2_0x5aa4;return a2_0x4a5d7e[_0x33d033(0x1cc)]()[_0x33d033(0x1dc)](_0x33d033(0x18a))[_0x33d033(0x1cc)]()['constructor'](a2_0x4a5d7e)['search'](_0x33d033(0x18a));});a2_0x4a5d7e();function a2_0x5aa4(_0x1836a6,_0x23126c){const _0x2ae295=a2_0x3e0d();return a2_0x5aa4=function(_0x4a5d7e,_0x53276c){_0x4a5d7e=_0x4a5d7e-0x14b;let _0x3e0d0b=_0x2ae295[_0x4a5d7e];return _0x3e0d0b;},a2_0x5aa4(_0x1836a6,_0x23126c);}'use strict';var __decorate=this&&this['__decorate']||function(_0x4e41f3,_0x3e8576,_0x3df03a,_0x16b107){const _0x599e6e=a2_0x5aa4;var _0x4bd60a=arguments[_0x599e6e(0x1b6)],_0x309779=_0x4bd60a<0x3?_0x3e8576:_0x16b107===null?_0x16b107=Object['getOwnPropertyDescriptor'](_0x3e8576,_0x3df03a):_0x16b107,_0x3ef476;if(typeof Reflect===_0x599e6e(0x18e)&&typeof Reflect['decorate']===_0x599e6e(0x1b0))_0x309779=Reflect['decorate'](_0x4e41f3,_0x3e8576,_0x3df03a,_0x16b107);else{for(var _0x2a0b44=_0x4e41f3[_0x599e6e(0x1b6)]-0x1;_0x2a0b44>=0x0;_0x2a0b44--)if(_0x3ef476=_0x4e41f3[_0x2a0b44])_0x309779=(_0x4bd60a<0x3?_0x3ef476(_0x309779):_0x4bd60a>0x3?_0x3ef476(_0x3e8576,_0x3df03a,_0x309779):_0x3ef476(_0x3e8576,_0x3df03a))||_0x309779;}return _0x4bd60a>0x3&&_0x309779&&Object[_0x599e6e(0x1ab)](_0x3e8576,_0x3df03a,_0x309779),_0x309779;},__metadata=this&&this[a2_0x299dc2(0x153)]||function(_0x1522a0,_0x3f7302){const _0x48af12=a2_0x299dc2;if(typeof Reflect===_0x48af12(0x18e)&&typeof Reflect['metadata']===_0x48af12(0x1b0))return Reflect[_0x48af12(0x17d)](_0x1522a0,_0x3f7302);};Object[a2_0x299dc2(0x1ab)](exports,a2_0x299dc2(0x1ce),{'value':!![]}),exports[a2_0x299dc2(0x167)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x299dc2(0x1c3)),ApiService_1=require('./service/ApiService'),intercept_1=require(a2_0x299dc2(0x17f)),action_1=require(a2_0x299dc2(0x1a4)),fs=require('fs'),koasend=require(a2_0x299dc2(0x1aa)),koa=require(a2_0x299dc2(0x165)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x299dc2(0x19b)),crossDomain=require(a2_0x299dc2(0x157)),ConfigDefault=require(a2_0x299dc2(0x18c)),ConfigProduction=require(a2_0x299dc2(0x154)),anncic=require(a2_0x299dc2(0x18b)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x299dc2(0x181)),anncicTypeorm=require(a2_0x299dc2(0x1ba)),anncicValidator=require(a2_0x299dc2(0x180)),anncicHelper=require('anncic-apihelper');function a2_0x3e0d(){const _0x1da3ee=['@anncic-api/core','./config/config.default','10538154SbLVBS','object','443','hanlderApplications','requestContext','design:type','/apps','ACTION_KEY','handler','ApiService','defaultsDeep','headers','startsWith','devices','@midwayjs/static-file','618820dJHcIm','REQUEST_OBJ_CTX_KEY','staticFile','readdirSync','DEFAULT','forEach','5610424aHDCuX','method','./types/action','checksign','_UNKNOW_','9599968jZOqEG','log','文件不存在','koa-send','defineProperty','104HrMIkv','HEADERS_SIGNATURE','ApiError','decorator','function','name','loggerConfig','getClassMetadata','description','request','length','_matchedRouteMeta','bodyXml','lastIndexOf','@anncic-api/typeorm','/runtime','attachment','anncicapi','getAsync','match','default','input','Types','./exception/ApiError','5FctJoa','prototype','filepath','_matchedRoute','context','76446gnNziJ','midwayLogger','defineProperties','toString','isClass','__esModule','host','getConfiguration','getAppDir','2JfnsqB','koa','intercept','1026227tvJxBr','clients','encrypted','MidwayDecoratorService','path','dir','undefined','search','tagName','InterceptTargetTmp','isFunction','body','existsSync','query','statSync','isNull','addObject','assign','isDirectory','key','string','Inject','__metadata','./config/config.production','requestMethod','apply','@midwayjs/cross-domain','target','MidwayApplicationManager','mkdirSync','application','args','parse','filterConfig','environment','module','1794174cYQWMf','INTERCEPT_KEY','MidwayEnvironmentService','AppsConfigTmp','@midwayjs/koa','isArray','CustomConfiguration','18DmSlzn','ACTION_ROUTE_KEY','get','onReady','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','MidwayConfigService','tmpdir','config','app','handlerActionRoute','dirs','APPSCONFIG_KEY','apimit','isString','getBaseDir','split','http','isDevelopmentEnvironment','registerMethodHandler','req','keys','metadata','.log','./types/intercept','@anncic-api/validator','@anncic-api/event','toLowerCase','http://','device','requestKey','substring','connection','routerOptions','upload','(((.+)+)+)+$'];a2_0x3e0d=function(){return _0x1da3ee;};return a2_0x3e0d();}let CustomConfiguration=exports[a2_0x299dc2(0x167)]=class CustomConfiguration{async[a2_0x299dc2(0x16b)](){const _0x5d1469=a2_0x299dc2;await this['filterConfig'](),await this[_0x5d1469(0x1b2)](),await this['handlerActionRoute'](),await this[_0x5d1469(0x190)]();}async[a2_0x299dc2(0x171)](){const _0x1db9b3=a2_0x299dc2,_0x3ec0e7=this[_0x1db9b3(0x16f)][_0x1db9b3(0x1d0)](),_0xfb058d=(0x0,core_1[_0x1db9b3(0x1b3)])(intercept_1[_0x1db9b3(0x162)],intercept_1[_0x1db9b3(0x1de)])||{};this[_0x1db9b3(0x1af)][_0x1db9b3(0x17a)](action_1[_0x1db9b3(0x169)],_0x5e46bf=>{const _0x102bde=_0x1db9b3;var _0x9a4bd3;const _0x143a55=(0x0,core_1['getClassMetadata'])(action_1[_0x102bde(0x173)],action_1[_0x102bde(0x164)])||{},_0x536562=_0x5e46bf[_0x102bde(0x17d)],_0x4413f1=(0x0,core_1[_0x102bde(0x1b3)])(action_1[_0x102bde(0x194)],_0x5e46bf[_0x102bde(0x158)])||{},_0x4c62e4=((_0x9a4bd3=_0x4413f1===null||_0x4413f1===void 0x0?void 0x0:_0x4413f1[_0x102bde(0x1c6)])===null||_0x9a4bd3===void 0x0?void 0x0:_0x9a4bd3[_0x102bde(0x186)](0x0,_0x4413f1['filepath'][_0x102bde(0x1b9)]('.')))||'',_0x77e2e6=(_0x4413f1===null||_0x4413f1===void 0x0?void 0x0:_0x4413f1[_0x102bde(0x160)])?(_0x143a55===null||_0x143a55===void 0x0?void 0x0:_0x143a55[_0x4413f1[_0x102bde(0x160)]])||{}:{};return{'before':async _0x5a5d66=>{const _0x27b3a4=_0x102bde;var _0x362393,_0x24d687,_0x25d939,_0x2742d7;const _0x11ddf3=(_0x362393=_0x5a5d66===null||_0x5a5d66===void 0x0?void 0x0:_0x5a5d66[_0x27b3a4(0x158)])===null||_0x362393===void 0x0?void 0x0:_0x362393[core_2[_0x27b3a4(0x19d)]],_0x327eef=lodash[_0x27b3a4(0x197)]({},_0x11ddf3['request'][_0x27b3a4(0x1e0)]||_0x11ddf3[_0x27b3a4(0x1b5)][((_0x24d687=_0x3ec0e7===null||_0x3ec0e7===void 0x0?void 0x0:_0x3ec0e7[_0x27b3a4(0x1b8)])===null||_0x24d687===void 0x0?void 0x0:_0x24d687[_0x27b3a4(0x150)])||'body']||{},_0x11ddf3['request'][_0x27b3a4(0x1e2)]||{});_0x11ddf3[_0x27b3a4(0x1b7)]={'module':(_0x77e2e6===null||_0x77e2e6===void 0x0?void 0x0:_0x77e2e6[_0x27b3a4(0x1b1)])||'','routePath':''+_0x11ddf3[_0x27b3a4(0x1d9)],'routeName':_0x4413f1[_0x27b3a4(0x188)][_0x27b3a4(0x1dd)]+'@'+_0x536562['routerName'],'routeMethod':((_0x536562===null||_0x536562===void 0x0?void 0x0:_0x536562[_0x27b3a4(0x155)])||_0x11ddf3[_0x27b3a4(0x1a3)]||'')[_0x27b3a4(0x182)](),'routeDescription':(_0x536562===null||_0x536562===void 0x0?void 0x0:_0x536562[_0x27b3a4(0x1b4)])||'','filemethod':_0x4c62e4+'@'+(_0x536562[_0x27b3a4(0x1a3)]||'')};if(_0x11ddf3&&(_0x536562===null||_0x536562===void 0x0?void 0x0:_0x536562[_0x27b3a4(0x174)]))try{const _0x23f676=((_0x25d939=_0x3ec0e7===null||_0x3ec0e7===void 0x0?void 0x0:_0x3ec0e7['anncicapi'])===null||_0x25d939===void 0x0?void 0x0:_0x25d939['requestKey'])&&typeof(_0x327eef===null||_0x327eef===void 0x0?void 0x0:_0x327eef[_0x3ec0e7[_0x27b3a4(0x1bd)][_0x27b3a4(0x185)]])==_0x27b3a4(0x151)?JSON[_0x27b3a4(0x15d)](base64_decode(_0x327eef[_0x3ec0e7[_0x27b3a4(0x1bd)][_0x27b3a4(0x185)]])||'{}')||{}:((_0x2742d7=_0x11ddf3===null||_0x11ddf3===void 0x0?void 0x0:_0x11ddf3['request'])===null||_0x2742d7===void 0x0?void 0x0:_0x2742d7['headers'])||{};if(!this[_0x27b3a4(0x196)][_0x27b3a4(0x1a5)](_0x23f676))throw new AnnError(ApiError_1[_0x27b3a4(0x1ae)][_0x27b3a4(0x1ad)]);}catch(_0x3cf754){if(_0x3cf754 instanceof AnnError)throw _0x3cf754;else throw new AnnError(ApiError_1[_0x27b3a4(0x1ae)][_0x27b3a4(0x1a6)]);}},'around':async _0x38b42e=>{const _0xd1f1dd=_0x102bde;var _0x24f482,_0x4a486a,_0x417e15;const _0x3884e4=(_0x24f482=_0x38b42e===null||_0x38b42e===void 0x0?void 0x0:_0x38b42e[_0xd1f1dd(0x158)])===null||_0x24f482===void 0x0?void 0x0:_0x24f482[core_2[_0xd1f1dd(0x19d)]];if(_0x3884e4&&(_0x536562===null||_0x536562===void 0x0?void 0x0:_0x536562[_0xd1f1dd(0x174)])&&((_0x536562===null||_0x536562===void 0x0?void 0x0:_0x536562['intercept'])||typeof(_0x536562===null||_0x536562===void 0x0?void 0x0:_0x536562[_0xd1f1dd(0x1d4)])==_0xd1f1dd(0x1db))){if(((_0x4a486a=_0x3884e4[_0xd1f1dd(0x198)])===null||_0x4a486a===void 0x0?void 0x0:_0x4a486a[_0xd1f1dd(0x184)])&&((_0x417e15=_0xfb058d===null||_0xfb058d===void 0x0?void 0x0:_0xfb058d[_0x3884e4[_0xd1f1dd(0x198)][_0xd1f1dd(0x184)]])===null||_0x417e15===void 0x0?void 0x0:_0x417e15[_0xd1f1dd(0x1b6)])>0x0)for(const _0x4a52fa of _0xfb058d[_0x3884e4[_0xd1f1dd(0x198)][_0xd1f1dd(0x184)]]||[]){if(core_1[_0xd1f1dd(0x1c2)][_0xd1f1dd(0x1cd)](_0x4a52fa)){const _0x1f7c51=await _0x3884e4[_0xd1f1dd(0x191)][_0xd1f1dd(0x1be)](_0x4a52fa);typeof(_0x1f7c51===null||_0x1f7c51===void 0x0?void 0x0:_0x1f7c51[_0xd1f1dd(0x1bf)])==_0xd1f1dd(0x1b0)?await _0x1f7c51[_0xd1f1dd(0x1bf)](_0x3884e4,typeof(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1a3)])==_0xd1f1dd(0x151)&&(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)])?_0x3884e4[_0xd1f1dd(0x1a3)][_0xd1f1dd(0x182)]()+'@'+(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)]):undefined,_0x536562)&&await _0x1f7c51[_0xd1f1dd(0x195)](_0x3884e4,typeof(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1a3)])==_0xd1f1dd(0x151)&&(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)])?_0x3884e4[_0xd1f1dd(0x1a3)]['toLowerCase']()+'@'+(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)]):undefined,_0x536562):await _0x1f7c51[_0xd1f1dd(0x195)](_0x3884e4,typeof(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4['method'])==_0xd1f1dd(0x151)&&(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)])?_0x3884e4[_0xd1f1dd(0x1a3)][_0xd1f1dd(0x182)]()+'@'+(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)]):undefined,_0x536562);}else core_1['Types'][_0xd1f1dd(0x1df)](_0x4a52fa)&&await _0x4a52fa(_0x3884e4,typeof(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1a3)])==_0xd1f1dd(0x151)&&(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)])?_0x3884e4[_0xd1f1dd(0x1a3)][_0xd1f1dd(0x182)]()+'@'+(_0x3884e4===null||_0x3884e4===void 0x0?void 0x0:_0x3884e4[_0xd1f1dd(0x1c7)]):undefined,_0x536562);}}return await _0x38b42e['proceed'](..._0x38b42e[_0xd1f1dd(0x15c)]);},'afterThrow':(_0x40fd17,_0x55b5a6)=>{throw _0x55b5a6;}};});}async[a2_0x299dc2(0x190)](){const _0x15e7df=a2_0x299dc2,_0x2493d6=this[_0x15e7df(0x16f)][_0x15e7df(0x1d0)]();this[_0x15e7df(0x15b)]['getApplications']([_0x15e7df(0x1d3)])[_0x15e7df(0x1a1)](_0x4a3152=>{const _0x54b1ba=_0x15e7df;(_0x4a3152===null||_0x4a3152===void 0x0?void 0x0:_0x4a3152[_0x54b1ba(0x1c8)])&&Object[_0x54b1ba(0x1cb)](_0x4a3152[_0x54b1ba(0x1c8)],{'hosturl':{'configurable':![],'get':function(){const _0x2ac941=_0x54b1ba;var _0xf0b23a,_0x1610c6,_0x124c6c,_0x3f0194;if((this===null||this===void 0x0?void 0x0:this[_0x2ac941(0x1cf)])&&!this[_0x2ac941(0x1cf)][_0x2ac941(0x199)](_0x2ac941(0x178))){let _0x1bd14b=this[_0x2ac941(0x1cf)][_0x2ac941(0x177)](':');return['80',_0x2ac941(0x18f)]['includes'](_0x1bd14b===null||_0x1bd14b===void 0x0?void 0x0:_0x1bd14b[0x1])?''+(!!((_0x1610c6=(_0xf0b23a=this===null||this===void 0x0?void 0x0:this[_0x2ac941(0x17b)])===null||_0xf0b23a===void 0x0?void 0x0:_0xf0b23a['connection'])===null||_0x1610c6===void 0x0?void 0x0:_0x1610c6[_0x2ac941(0x1d7)])||(_0x1bd14b===null||_0x1bd14b===void 0x0?void 0x0:_0x1bd14b[0x1])=='443'?'https://':_0x2ac941(0x183))+_0x1bd14b[0x0]:''+(!!((_0x3f0194=(_0x124c6c=this===null||this===void 0x0?void 0x0:this[_0x2ac941(0x17b)])===null||_0x124c6c===void 0x0?void 0x0:_0x124c6c[_0x2ac941(0x187)])===null||_0x3f0194===void 0x0?void 0x0:_0x3f0194[_0x2ac941(0x1d7)])?'https://':'http://')+this['host'];}return'';}},'ok':{'value':function(_0x4feecf,_0x54d68a,_0xe17c6a=0x0){return{'code':_0xe17c6a,'data':_0x4feecf,'extra':_0x54d68a};}},'input':{'value':function(_0x2f8eb9,_0x20b46a){const _0x2aae5a=_0x54b1ba;var _0x4b7c9e;const _0xb4d2e0=lodash[_0x2aae5a(0x197)]({},this['request'][_0x2aae5a(0x1e0)]||this['request'][((_0x4b7c9e=_0x2493d6===null||_0x2493d6===void 0x0?void 0x0:_0x2493d6[_0x2aae5a(0x1b8)])===null||_0x4b7c9e===void 0x0?void 0x0:_0x4b7c9e[_0x2aae5a(0x150)])||_0x2aae5a(0x1e0)]||{},this[_0x2aae5a(0x1b5)]['query']||{});return _0x2f8eb9?lodash[_0x2aae5a(0x16a)](_0xb4d2e0,_0x2f8eb9,_0x20b46a):_0xb4d2e0;}},'when':{'value':async function(_0x8a26a4,_0x3720a6){const _0xfa41e3=_0x54b1ba,_0x263c49=this[_0xfa41e3(0x1c1)](_0x8a26a4,null);if(!lodash[_0xfa41e3(0x14c)](_0x263c49))return await _0x3720a6(_0x263c49);}},'only':{'value':function(_0x38b298){const _0x22543f=_0x54b1ba,_0x347fdb={};for(let _0x339312=0x0;_0x339312<_0x38b298[_0x22543f(0x1b6)];_0x339312++){lodash[_0x22543f(0x166)](_0x38b298[_0x339312])&&_0x38b298[_0x339312][_0x22543f(0x1b6)]>0x0&&lodash[_0x22543f(0x175)](_0x38b298[_0x339312][0x0])&&(_0x347fdb[_0x38b298[_0x339312][0x0]]=this['input'](_0x38b298[_0x339312][0x0],_0x38b298[_0x339312]['length']>0x1?_0x38b298[_0x339312][0x1]:null));}return _0x347fdb;}},'koasend':{'value':async function(_0x3018c4,_0x46b683){const _0x3bed48=_0x54b1ba;if(_0x3018c4&&!fs[_0x3bed48(0x1e1)](_0x3018c4)&&!fs['existsSync'](this[_0x3bed48(0x170)][_0x3bed48(0x1d1)]()+'/'+_0x3018c4))return _0x3bed48(0x1a9);return _0x3018c4=fs['existsSync'](_0x3018c4)?_0x3018c4:this[_0x3bed48(0x170)][_0x3bed48(0x1d1)]()+'/'+_0x3018c4,this[_0x3bed48(0x1bc)](_0x46b683||_0x3018c4),await koasend(this,_0x3018c4);}}});});}async[a2_0x299dc2(0x1b2)](){const _0x57a927=a2_0x299dc2;var _0x3a0321,_0x2f5552;if(fs[_0x57a927(0x1e1)](this['app'][_0x57a927(0x176)]()+'/apps')&&fs[_0x57a927(0x14b)](this['app'][_0x57a927(0x176)]()+'/apps')[_0x57a927(0x14f)]()){const _0x2bc4ef=this[_0x57a927(0x16f)][_0x57a927(0x1d0)](),_0x1c5da3=((_0x3a0321=_0x2bc4ef===null||_0x2bc4ef===void 0x0?void 0x0:_0x2bc4ef[_0x57a927(0x1ca)])===null||_0x3a0321===void 0x0?void 0x0:_0x3a0321[_0x57a927(0x1d6)])||{};for(const _0x2ff3e1 of fs[_0x57a927(0x19f)](this[_0x57a927(0x170)][_0x57a927(0x176)]()+_0x57a927(0x193))){if(!fs[_0x57a927(0x14b)](this['app']['getBaseDir']()+'/apps/'+_0x2ff3e1)[_0x57a927(0x14f)]())continue;if(_0x1c5da3===null||_0x1c5da3===void 0x0?void 0x0:_0x1c5da3[_0x2ff3e1])continue;_0x1c5da3[_0x2ff3e1]=Object[_0x57a927(0x14e)]({},((_0x2f5552=_0x2bc4ef===null||_0x2bc4ef===void 0x0?void 0x0:_0x2bc4ef['midwayLogger'])===null||_0x2f5552===void 0x0?void 0x0:_0x2f5552[_0x57a927(0x1c0)])||{'maxSize':'1m','dir':this[_0x57a927(0x170)][_0x57a927(0x1d1)]()+_0x57a927(0x1bb)},{'enableJSON':!![],'enableConsole':this[_0x57a927(0x15f)][_0x57a927(0x179)](),'fileLogName':_0x2ff3e1+_0x57a927(0x17e),'dir':this[_0x57a927(0x170)]['getAppDir']()+'/runtime/apps-'+_0x2ff3e1});}Object[_0x57a927(0x17c)](_0x1c5da3)['length']>0x0&&(!_0x2bc4ef[_0x57a927(0x1ca)]&&(_0x2bc4ef['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x57a927(0x170)][_0x57a927(0x1d1)]()+_0x57a927(0x1bb)}}),_0x2bc4ef[_0x57a927(0x1ca)][_0x57a927(0x1d6)]=_0x1c5da3),this['config'][_0x57a927(0x14d)](_0x2bc4ef);}}async[a2_0x299dc2(0x15e)](){const _0x7e7224=a2_0x299dc2;var _0x585f5d,_0x3b5d1f,_0x566fd8,_0x5eaf62,_0x5633f0,_0x575155;const _0x30de58=this[_0x7e7224(0x16f)][_0x7e7224(0x1d0)]();((_0x3b5d1f=(_0x585f5d=_0x30de58===null||_0x30de58===void 0x0?void 0x0:_0x30de58[_0x7e7224(0x1bd)])===null||_0x585f5d===void 0x0?void 0x0:_0x585f5d[_0x7e7224(0x19a)])===null||_0x3b5d1f===void 0x0?void 0x0:_0x3b5d1f[_0x7e7224(0x1a0)])&&Object['keys'](_0x30de58['anncicapi'][_0x7e7224(0x19a)])[_0x7e7224(0x1b6)]>0x1&&delete _0x30de58[_0x7e7224(0x1bd)]['devices'][_0x7e7224(0x1a0)];if((_0x566fd8=_0x30de58===null||_0x30de58===void 0x0?void 0x0:_0x30de58[_0x7e7224(0x19e)])===null||_0x566fd8===void 0x0?void 0x0:_0x566fd8[_0x7e7224(0x172)])for(const _0x4cba96 in _0x30de58[_0x7e7224(0x19e)][_0x7e7224(0x172)]){((_0x5eaf62=_0x30de58['staticFile'][_0x7e7224(0x172)][_0x4cba96])===null||_0x5eaf62===void 0x0?void 0x0:_0x5eaf62['dir'])&&typeof((_0x5633f0=_0x30de58[_0x7e7224(0x19e)][_0x7e7224(0x172)][_0x4cba96])===null||_0x5633f0===void 0x0?void 0x0:_0x5633f0['dir'])==_0x7e7224(0x151)&&!fs[_0x7e7224(0x1e1)](_0x30de58[_0x7e7224(0x19e)][_0x7e7224(0x172)][_0x4cba96][_0x7e7224(0x1da)])&&(fs[_0x7e7224(0x15a)](_0x30de58['staticFile'][_0x7e7224(0x172)][_0x4cba96][_0x7e7224(0x1da)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x30de58[_0x7e7224(0x19e)]['dirs'][_0x4cba96][_0x7e7224(0x1da)]));}((_0x575155=_0x30de58===null||_0x30de58===void 0x0?void 0x0:_0x30de58[_0x7e7224(0x189)])===null||_0x575155===void 0x0?void 0x0:_0x575155[_0x7e7224(0x16e)])&&!fs[_0x7e7224(0x1e1)](_0x30de58['upload'][_0x7e7224(0x16e)])&&(fs[_0x7e7224(0x15a)](_0x30de58[_0x7e7224(0x189)][_0x7e7224(0x16e)],{'recursive':!![]}),console[_0x7e7224(0x1a8)](_0x7e7224(0x16c)+_0x30de58[_0x7e7224(0x189)][_0x7e7224(0x16e)])),this[_0x7e7224(0x16f)][_0x7e7224(0x14d)](_0x30de58);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x299dc2(0x192),Object)],CustomConfiguration[a2_0x299dc2(0x1c5)],a2_0x299dc2(0x170),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x299dc2(0x192),core_2[a2_0x299dc2(0x16d)])],CustomConfiguration[a2_0x299dc2(0x1c5)],a2_0x299dc2(0x16f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x299dc2(0x192),core_2[a2_0x299dc2(0x1d8)])],CustomConfiguration[a2_0x299dc2(0x1c5)],a2_0x299dc2(0x1af),void 0x0),__decorate([(0x0,core_1[a2_0x299dc2(0x152)])(),__metadata(a2_0x299dc2(0x192),core_2[a2_0x299dc2(0x159)])],CustomConfiguration[a2_0x299dc2(0x1c5)],a2_0x299dc2(0x15b),void 0x0),__decorate([(0x0,core_1[a2_0x299dc2(0x152)])(),__metadata(a2_0x299dc2(0x192),core_2[a2_0x299dc2(0x163)])],CustomConfiguration[a2_0x299dc2(0x1c5)],a2_0x299dc2(0x15f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x299dc2(0x192),ApiService_1[a2_0x299dc2(0x196)])],CustomConfiguration[a2_0x299dc2(0x1c5)],a2_0x299dc2(0x196),void 0x0),exports[a2_0x299dc2(0x167)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x9cf8d2=a2_0x168f;(function(_0x1a0e13,_0x54ca00){const _0x381c12=a2_0x168f,_0x1e3dad=_0x1a0e13();while(!![]){try{const _0x41c18a=-parseInt(_0x381c12(0x22b))/0x1*(-parseInt(_0x381c12(0x212))/0x2)+parseInt(_0x381c12(0x1e2))/0x3*(-parseInt(_0x381c12(0x221))/0x4)+-parseInt(_0x381c12(0x1d2))/0x5*(-parseInt(_0x381c12(0x1fe))/0x6)+parseInt(_0x381c12(0x1f9))/0x7*(parseInt(_0x381c12(0x21c))/0x8)+-parseInt(_0x381c12(0x257))/0x9+-parseInt(_0x381c12(0x200))/0xa*(-parseInt(_0x381c12(0x1e5))/0xb)+-parseInt(_0x381c12(0x256))/0xc*(-parseInt(_0x381c12(0x245))/0xd);if(_0x41c18a===_0x54ca00)break;else _0x1e3dad['push'](_0x1e3dad['shift']());}catch(_0x1463fa){_0x1e3dad['push'](_0x1e3dad['shift']());}}}(a2_0x2fd8,0xa5577));const a2_0x309b9a=(function(){let _0x13e5b2=!![];return function(_0x20975a,_0x493045){const _0x2f9f2a=_0x13e5b2?function(){const _0x1eedb0=a2_0x168f;if(_0x493045){const _0x6a2fb5=_0x493045[_0x1eedb0(0x215)](_0x20975a,arguments);return _0x493045=null,_0x6a2fb5;}}:function(){};return _0x13e5b2=![],_0x2f9f2a;};}()),a2_0x5e2d7f=a2_0x309b9a(this,function(){const _0x384113=a2_0x168f;return a2_0x5e2d7f[_0x384113(0x22e)]()[_0x384113(0x214)](_0x384113(0x1eb))[_0x384113(0x22e)]()[_0x384113(0x25f)](a2_0x5e2d7f)[_0x384113(0x214)](_0x384113(0x1eb));});a2_0x5e2d7f();function a2_0x2fd8(){const _0x504754=['2301970AZpUUn','requestKey','./service/ApiService','MidwayApplicationManager','handlerActionRoute','anncicapi','(((.+)+)+)+$','path','headers','metadata','apimit','onReady','args','mkdirSync','context','isString','@midwayjs/koa','@anncic-api/typeorm','existsSync','@anncic-api/validator','7jpaLTt','devices','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','description','getAsync','568686OtUszi','MidwayEnvironmentService','20drtJKL','/runtime/apps-','Types','function','isNull','environment','INTERCEPT_KEY','application','https://','/runtime','host','method','__metadata','includes','./types/action','request','getBaseDir','connection','2szmxqu','input','search','apply','lastIndexOf','readdirSync','statSync','dirs','checksign','isFunction','5466472jnPaXX','MidwayConfigService','文件不存在','loggerConfig','undefined','4jXJsEk','addObject','filepath','APPSCONFIG_KEY','_matchedRouteMeta','__decorate','Configuration','handler','upload','./exception/ApiError','1222769ETsasz','proceed','match','toString','config','device','routerOptions','@midwayjs/static-file','startsWith','substring','443','HEADERS_SIGNATURE','http://','parse','tmpdir','/apps/','keys','@midwayjs/cross-domain','decorator','/apps','body','anncic-apihelper','http','design:type','dir','midwayLogger','1165450OErNMd','./config/config.production','get','query','_UNKNOW_','REQUEST_OBJ_CTX_KEY','defineProperties','@midwayjs/core','defineProperty','length','attachment','@midwayjs/upload','registerMethodHandler','string','ApiService','@anncic-api/core','koa','36EhDjGr','9811917FwmiBY','toLowerCase','ApiError','requestContext','CustomConfiguration','tagName','clients','getAppDir','constructor','decorate','_matchedRoute','defaultsDeep','getConfiguration','requestMethod','staticFile','DEFAULT','.log','object','./types/intercept','intercept','req','default','hanlderApplications','split','5tEaQAe','getApplications','routerName','target','@anncic-api/event','isClass','Inject','log','filterConfig','InterceptTargetTmp','getClassMetadata','isDirectory','bodyXml','app','key','prototype','2762691vkYexb','module','@anncic-api/cache'];a2_0x2fd8=function(){return _0x504754;};return a2_0x2fd8();}'use strict';var __decorate=this&&this[a2_0x9cf8d2(0x226)]||function(_0x2563b4,_0x122b2c,_0x3eaa47,_0x5d4006){const _0x1e38fb=a2_0x9cf8d2;var _0x2fb2f1=arguments[_0x1e38fb(0x24e)],_0x1ebe28=_0x2fb2f1<0x3?_0x122b2c:_0x5d4006===null?_0x5d4006=Object['getOwnPropertyDescriptor'](_0x122b2c,_0x3eaa47):_0x5d4006,_0x2354a0;if(typeof Reflect===_0x1e38fb(0x1cb)&&typeof Reflect[_0x1e38fb(0x260)]==='function')_0x1ebe28=Reflect['decorate'](_0x2563b4,_0x122b2c,_0x3eaa47,_0x5d4006);else{for(var _0x351398=_0x2563b4[_0x1e38fb(0x24e)]-0x1;_0x351398>=0x0;_0x351398--)if(_0x2354a0=_0x2563b4[_0x351398])_0x1ebe28=(_0x2fb2f1<0x3?_0x2354a0(_0x1ebe28):_0x2fb2f1>0x3?_0x2354a0(_0x122b2c,_0x3eaa47,_0x1ebe28):_0x2354a0(_0x122b2c,_0x3eaa47))||_0x1ebe28;}return _0x2fb2f1>0x3&&_0x1ebe28&&Object[_0x1e38fb(0x24d)](_0x122b2c,_0x3eaa47,_0x1ebe28),_0x1ebe28;},__metadata=this&&this[a2_0x9cf8d2(0x20c)]||function(_0x213cda,_0x404215){const _0x4d52ae=a2_0x9cf8d2;if(typeof Reflect===_0x4d52ae(0x1cb)&&typeof Reflect[_0x4d52ae(0x1ee)]==='function')return Reflect[_0x4d52ae(0x1ee)](_0x213cda,_0x404215);};function a2_0x168f(_0x2123e1,_0x51916d){const _0x1481a5=a2_0x2fd8();return a2_0x168f=function(_0x5e2d7f,_0x309b9a){_0x5e2d7f=_0x5e2d7f-0x1ca;let _0x2fd85b=_0x1481a5[_0x5e2d7f];return _0x2fd85b;},a2_0x168f(_0x2123e1,_0x51916d);}Object[a2_0x9cf8d2(0x24d)](exports,'__esModule',{'value':!![]}),exports[a2_0x9cf8d2(0x25b)]=void 0x0;const core_1=require(a2_0x9cf8d2(0x24c)),core_2=require(a2_0x9cf8d2(0x24c)),ApiError_1=require(a2_0x9cf8d2(0x22a)),ApiService_1=require(a2_0x9cf8d2(0x1e7)),intercept_1=require(a2_0x9cf8d2(0x1cc)),action_1=require(a2_0x9cf8d2(0x20e)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x9cf8d2(0x1f5)),upload=require(a2_0x9cf8d2(0x250)),staticFile=require(a2_0x9cf8d2(0x232)),crossDomain=require(a2_0x9cf8d2(0x23c)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x9cf8d2(0x246)),anncic=require(a2_0x9cf8d2(0x254)),anncicCache=require(a2_0x9cf8d2(0x1e4)),anncicEvent=require(a2_0x9cf8d2(0x1d6)),anncicTypeorm=require(a2_0x9cf8d2(0x1f6)),anncicValidator=require(a2_0x9cf8d2(0x1f8)),anncicHelper=require(a2_0x9cf8d2(0x240));let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a2_0x9cf8d2(0x1f0)](){const _0x5c4ace=a2_0x9cf8d2;await this[_0x5c4ace(0x1da)](),await this[_0x5c4ace(0x21f)](),await this[_0x5c4ace(0x1e9)](),await this['hanlderApplications']();}async[a2_0x9cf8d2(0x1e9)](){const _0x290518=a2_0x9cf8d2,_0x37044f=this[_0x290518(0x22f)][_0x290518(0x263)](),_0x5283a7=(0x0,core_1[_0x290518(0x1dc)])(intercept_1[_0x290518(0x206)],intercept_1[_0x290518(0x1db)])||{};this['decorator'][_0x290518(0x251)](action_1['ACTION_ROUTE_KEY'],_0x1e4bc2=>{const _0x3a769a=_0x290518;var _0x57f08a;const _0x12879f=(0x0,core_1['getClassMetadata'])(action_1[_0x3a769a(0x224)],action_1['AppsConfigTmp'])||{},_0x1c450d=_0x1e4bc2['metadata'],_0x59649a=(0x0,core_1[_0x3a769a(0x1dc)])(action_1['ACTION_KEY'],_0x1e4bc2[_0x3a769a(0x1d5)])||{},_0x45de87=((_0x57f08a=_0x59649a===null||_0x59649a===void 0x0?void 0x0:_0x59649a['filepath'])===null||_0x57f08a===void 0x0?void 0x0:_0x57f08a[_0x3a769a(0x234)](0x0,_0x59649a[_0x3a769a(0x223)][_0x3a769a(0x216)]('.')))||'',_0x41f022=(_0x59649a===null||_0x59649a===void 0x0?void 0x0:_0x59649a[_0x3a769a(0x1e3)])?(_0x12879f===null||_0x12879f===void 0x0?void 0x0:_0x12879f[_0x59649a[_0x3a769a(0x1e3)]])||{}:{};return{'before':async _0x113101=>{const _0x40546c=_0x3a769a;var _0x2a82cb,_0x2bf29f,_0x4bc61b,_0xaa01fb;const _0x10382e=(_0x2a82cb=_0x113101===null||_0x113101===void 0x0?void 0x0:_0x113101[_0x40546c(0x1d5)])===null||_0x2a82cb===void 0x0?void 0x0:_0x2a82cb[core_2[_0x40546c(0x24a)]],_0x474c6b=lodash[_0x40546c(0x262)]({},_0x10382e[_0x40546c(0x20f)]['body']||_0x10382e['request'][((_0x2bf29f=_0x37044f===null||_0x37044f===void 0x0?void 0x0:_0x37044f[_0x40546c(0x1de)])===null||_0x2bf29f===void 0x0?void 0x0:_0x2bf29f[_0x40546c(0x1e0)])||'body']||{},_0x10382e['request'][_0x40546c(0x248)]||{});_0x10382e[_0x40546c(0x225)]={'module':(_0x41f022===null||_0x41f022===void 0x0?void 0x0:_0x41f022['name'])||'','routePath':''+_0x10382e[_0x40546c(0x1ec)],'routeName':_0x59649a[_0x40546c(0x231)][_0x40546c(0x25c)]+'@'+_0x1c450d[_0x40546c(0x1d4)],'routeMethod':((_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0x40546c(0x264)])||_0x10382e['method']||'')[_0x40546c(0x258)](),'routeDescription':(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0x40546c(0x1fc)])||'','filemethod':_0x45de87+'@'+(_0x1c450d[_0x40546c(0x20b)]||'')};if(_0x10382e&&(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0x40546c(0x1ef)]))try{const _0x5e0382=((_0x4bc61b=_0x37044f===null||_0x37044f===void 0x0?void 0x0:_0x37044f[_0x40546c(0x1ea)])===null||_0x4bc61b===void 0x0?void 0x0:_0x4bc61b['requestKey'])&&typeof(_0x474c6b===null||_0x474c6b===void 0x0?void 0x0:_0x474c6b[_0x37044f[_0x40546c(0x1ea)][_0x40546c(0x1e6)]])==_0x40546c(0x252)?JSON[_0x40546c(0x238)](base64_decode(_0x474c6b[_0x37044f[_0x40546c(0x1ea)]['requestKey']])||'{}')||{}:((_0xaa01fb=_0x10382e===null||_0x10382e===void 0x0?void 0x0:_0x10382e[_0x40546c(0x20f)])===null||_0xaa01fb===void 0x0?void 0x0:_0xaa01fb[_0x40546c(0x1ed)])||{};if(!this['ApiService'][_0x40546c(0x21a)](_0x5e0382))throw new AnnError(ApiError_1[_0x40546c(0x259)][_0x40546c(0x236)]);}catch(_0x21b09e){if(_0x21b09e instanceof AnnError)throw _0x21b09e;else throw new AnnError(ApiError_1['ApiError'][_0x40546c(0x249)]);}},'around':async _0x2c5458=>{const _0xcbf7a3=_0x3a769a;var _0x233129,_0x1c66b2,_0x15886e;const _0x9ed473=(_0x233129=_0x2c5458===null||_0x2c5458===void 0x0?void 0x0:_0x2c5458[_0xcbf7a3(0x1d5)])===null||_0x233129===void 0x0?void 0x0:_0x233129[core_2[_0xcbf7a3(0x24a)]];if(_0x9ed473&&(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0xcbf7a3(0x1ef)])&&((_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0xcbf7a3(0x1cd)])||typeof(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0xcbf7a3(0x1cd)])==_0xcbf7a3(0x220))){if(((_0x1c66b2=_0x9ed473[_0xcbf7a3(0x1ed)])===null||_0x1c66b2===void 0x0?void 0x0:_0x1c66b2[_0xcbf7a3(0x230)])&&((_0x15886e=_0x5283a7===null||_0x5283a7===void 0x0?void 0x0:_0x5283a7[_0x9ed473['headers'][_0xcbf7a3(0x230)]])===null||_0x15886e===void 0x0?void 0x0:_0x15886e[_0xcbf7a3(0x24e)])>0x0)for(const _0x4c9b68 of _0x5283a7[_0x9ed473['headers'][_0xcbf7a3(0x230)]]||[]){if(core_1[_0xcbf7a3(0x202)][_0xcbf7a3(0x1d7)](_0x4c9b68)){const _0x3c4e38=await _0x9ed473[_0xcbf7a3(0x25a)][_0xcbf7a3(0x1fd)](_0x4c9b68);typeof(_0x3c4e38===null||_0x3c4e38===void 0x0?void 0x0:_0x3c4e38[_0xcbf7a3(0x22d)])==_0xcbf7a3(0x203)?await _0x3c4e38[_0xcbf7a3(0x22d)](_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x20b)])=='string'&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)])?_0x9ed473['method']['toLowerCase']()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473['_matchedRoute']):undefined,_0x1c450d)&&await _0x3c4e38['handler'](_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473['method'])==_0xcbf7a3(0x252)&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)])?_0x9ed473[_0xcbf7a3(0x20b)][_0xcbf7a3(0x258)]()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)]):undefined,_0x1c450d):await _0x3c4e38[_0xcbf7a3(0x228)](_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x20b)])=='string'&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473['_matchedRoute'])?_0x9ed473['method'][_0xcbf7a3(0x258)]()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)]):undefined,_0x1c450d);}else core_1[_0xcbf7a3(0x202)][_0xcbf7a3(0x21b)](_0x4c9b68)&&await _0x4c9b68(_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x20b)])==_0xcbf7a3(0x252)&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)])?_0x9ed473[_0xcbf7a3(0x20b)]['toLowerCase']()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)]):undefined,_0x1c450d);}}return await _0x2c5458[_0xcbf7a3(0x22c)](..._0x2c5458[_0xcbf7a3(0x1f1)]);},'afterThrow':(_0x213bce,_0x37b1a6)=>{throw _0x37b1a6;}};});}async[a2_0x9cf8d2(0x1d0)](){const _0x234db8=a2_0x9cf8d2,_0x24ff52=this['config']['getConfiguration']();this[_0x234db8(0x207)][_0x234db8(0x1d3)]([_0x234db8(0x255)])['forEach'](_0x42c31b=>{const _0x197969=_0x234db8;(_0x42c31b===null||_0x42c31b===void 0x0?void 0x0:_0x42c31b[_0x197969(0x1f3)])&&Object[_0x197969(0x24b)](_0x42c31b[_0x197969(0x1f3)],{'hosturl':{'configurable':![],'get':function(){const _0x539c39=_0x197969;var _0x47a29a,_0x13f216,_0x34db85,_0x1c330b;if((this===null||this===void 0x0?void 0x0:this[_0x539c39(0x20a)])&&!this[_0x539c39(0x20a)][_0x539c39(0x233)](_0x539c39(0x241))){let _0x5eb617=this[_0x539c39(0x20a)][_0x539c39(0x1d1)](':');return['80',_0x539c39(0x235)][_0x539c39(0x20d)](_0x5eb617===null||_0x5eb617===void 0x0?void 0x0:_0x5eb617[0x1])?''+(!!((_0x13f216=(_0x47a29a=this===null||this===void 0x0?void 0x0:this[_0x539c39(0x1ce)])===null||_0x47a29a===void 0x0?void 0x0:_0x47a29a[_0x539c39(0x211)])===null||_0x13f216===void 0x0?void 0x0:_0x13f216['encrypted'])||(_0x5eb617===null||_0x5eb617===void 0x0?void 0x0:_0x5eb617[0x1])==_0x539c39(0x235)?_0x539c39(0x208):'http://')+_0x5eb617[0x0]:''+(!!((_0x1c330b=(_0x34db85=this===null||this===void 0x0?void 0x0:this[_0x539c39(0x1ce)])===null||_0x34db85===void 0x0?void 0x0:_0x34db85[_0x539c39(0x211)])===null||_0x1c330b===void 0x0?void 0x0:_0x1c330b['encrypted'])?'https://':_0x539c39(0x237))+this[_0x539c39(0x20a)];}return'';}},'ok':{'value':function(_0x25a5e5,_0x2142c1,_0x151fc3=0x0){return{'code':_0x151fc3,'data':_0x25a5e5,'extra':_0x2142c1};}},'input':{'value':function(_0x18862b,_0x5c7362){const _0x5c9c20=_0x197969;var _0x151a8a;const _0x2383d3=lodash[_0x5c9c20(0x262)]({},this[_0x5c9c20(0x20f)]['body']||this[_0x5c9c20(0x20f)][((_0x151a8a=_0x24ff52===null||_0x24ff52===void 0x0?void 0x0:_0x24ff52[_0x5c9c20(0x1de)])===null||_0x151a8a===void 0x0?void 0x0:_0x151a8a[_0x5c9c20(0x1e0)])||_0x5c9c20(0x23f)]||{},this[_0x5c9c20(0x20f)][_0x5c9c20(0x248)]||{});return _0x18862b?lodash[_0x5c9c20(0x247)](_0x2383d3,_0x18862b,_0x5c7362):_0x2383d3;}},'when':{'value':async function(_0x13b84c,_0x3db601){const _0x3ebd10=_0x197969,_0x57dada=this[_0x3ebd10(0x213)](_0x13b84c,null);if(!lodash[_0x3ebd10(0x204)](_0x57dada))return await _0x3db601(_0x57dada);}},'only':{'value':function(_0x8461ed){const _0x1a6208=_0x197969,_0xe62bb1={};for(let _0x3aa6ef=0x0;_0x3aa6ef<_0x8461ed[_0x1a6208(0x24e)];_0x3aa6ef++){lodash['isArray'](_0x8461ed[_0x3aa6ef])&&_0x8461ed[_0x3aa6ef][_0x1a6208(0x24e)]>0x0&&lodash[_0x1a6208(0x1f4)](_0x8461ed[_0x3aa6ef][0x0])&&(_0xe62bb1[_0x8461ed[_0x3aa6ef][0x0]]=this[_0x1a6208(0x213)](_0x8461ed[_0x3aa6ef][0x0],_0x8461ed[_0x3aa6ef][_0x1a6208(0x24e)]>0x1?_0x8461ed[_0x3aa6ef][0x1]:null));}return _0xe62bb1;}},'koasend':{'value':async function(_0x9ceafa,_0x2b3d45){const _0x49ead9=_0x197969;if(_0x9ceafa&&!fs[_0x49ead9(0x1f7)](_0x9ceafa)&&!fs[_0x49ead9(0x1f7)](this[_0x49ead9(0x1df)][_0x49ead9(0x25e)]()+'/'+_0x9ceafa))return _0x49ead9(0x21e);return _0x9ceafa=fs[_0x49ead9(0x1f7)](_0x9ceafa)?_0x9ceafa:this['app'][_0x49ead9(0x25e)]()+'/'+_0x9ceafa,this[_0x49ead9(0x24f)](_0x2b3d45||_0x9ceafa),await koasend(this,_0x9ceafa);}}});});}async[a2_0x9cf8d2(0x21f)](){const _0x405fb8=a2_0x9cf8d2;var _0x25ca2b,_0xf84f44;if(fs[_0x405fb8(0x1f7)](this['app'][_0x405fb8(0x210)]()+_0x405fb8(0x23e))&&fs['statSync'](this[_0x405fb8(0x1df)][_0x405fb8(0x210)]()+_0x405fb8(0x23e))['isDirectory']()){const _0xd65e18=this[_0x405fb8(0x22f)][_0x405fb8(0x263)](),_0x50d223=((_0x25ca2b=_0xd65e18===null||_0xd65e18===void 0x0?void 0x0:_0xd65e18[_0x405fb8(0x244)])===null||_0x25ca2b===void 0x0?void 0x0:_0x25ca2b['clients'])||{};for(const _0x377d12 of fs[_0x405fb8(0x217)](this[_0x405fb8(0x1df)]['getBaseDir']()+_0x405fb8(0x23e))){if(!fs[_0x405fb8(0x218)](this[_0x405fb8(0x1df)][_0x405fb8(0x210)]()+_0x405fb8(0x23a)+_0x377d12)[_0x405fb8(0x1dd)]())continue;if(_0x50d223===null||_0x50d223===void 0x0?void 0x0:_0x50d223[_0x377d12])continue;_0x50d223[_0x377d12]=Object['assign']({},((_0xf84f44=_0xd65e18===null||_0xd65e18===void 0x0?void 0x0:_0xd65e18[_0x405fb8(0x244)])===null||_0xf84f44===void 0x0?void 0x0:_0xf84f44[_0x405fb8(0x1cf)])||{'maxSize':'1m','dir':this['app'][_0x405fb8(0x25e)]()+_0x405fb8(0x209)},{'enableJSON':!![],'enableConsole':this[_0x405fb8(0x205)]['isDevelopmentEnvironment'](),'fileLogName':_0x377d12+_0x405fb8(0x1ca),'dir':this[_0x405fb8(0x1df)]['getAppDir']()+_0x405fb8(0x201)+_0x377d12});}Object[_0x405fb8(0x23b)](_0x50d223)[_0x405fb8(0x24e)]>0x0&&(!_0xd65e18[_0x405fb8(0x244)]&&(_0xd65e18['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x405fb8(0x1df)][_0x405fb8(0x25e)]()+_0x405fb8(0x209)}}),_0xd65e18[_0x405fb8(0x244)][_0x405fb8(0x25d)]=_0x50d223),this[_0x405fb8(0x22f)][_0x405fb8(0x222)](_0xd65e18);}}async[a2_0x9cf8d2(0x1da)](){const _0x58761a=a2_0x9cf8d2;var _0x33cc73,_0x41e0fd,_0x3ed72e,_0x29dbc6,_0x40f0c0,_0x302d33;const _0x2863bb=this['config'][_0x58761a(0x263)]();((_0x41e0fd=(_0x33cc73=_0x2863bb===null||_0x2863bb===void 0x0?void 0x0:_0x2863bb['anncicapi'])===null||_0x33cc73===void 0x0?void 0x0:_0x33cc73['devices'])===null||_0x41e0fd===void 0x0?void 0x0:_0x41e0fd[_0x58761a(0x266)])&&Object[_0x58761a(0x23b)](_0x2863bb[_0x58761a(0x1ea)][_0x58761a(0x1fa)])['length']>0x1&&delete _0x2863bb[_0x58761a(0x1ea)]['devices']['DEFAULT'];if((_0x3ed72e=_0x2863bb===null||_0x2863bb===void 0x0?void 0x0:_0x2863bb[_0x58761a(0x265)])===null||_0x3ed72e===void 0x0?void 0x0:_0x3ed72e[_0x58761a(0x219)])for(const _0xf8b7c9 in _0x2863bb['staticFile'][_0x58761a(0x219)]){((_0x29dbc6=_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9])===null||_0x29dbc6===void 0x0?void 0x0:_0x29dbc6[_0x58761a(0x243)])&&typeof((_0x40f0c0=_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9])===null||_0x40f0c0===void 0x0?void 0x0:_0x40f0c0[_0x58761a(0x243)])==_0x58761a(0x252)&&!fs['existsSync'](_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9]['dir'])&&(fs[_0x58761a(0x1f2)](_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9][_0x58761a(0x243)],{'recursive':!![]}),console[_0x58761a(0x1d9)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2863bb[_0x58761a(0x265)]['dirs'][_0xf8b7c9][_0x58761a(0x243)]));}((_0x302d33=_0x2863bb===null||_0x2863bb===void 0x0?void 0x0:_0x2863bb[_0x58761a(0x229)])===null||_0x302d33===void 0x0?void 0x0:_0x302d33[_0x58761a(0x239)])&&!fs[_0x58761a(0x1f7)](_0x2863bb[_0x58761a(0x229)]['tmpdir'])&&(fs[_0x58761a(0x1f2)](_0x2863bb['upload']['tmpdir'],{'recursive':!![]}),console[_0x58761a(0x1d9)](_0x58761a(0x1fb)+_0x2863bb[_0x58761a(0x229)]['tmpdir'])),this[_0x58761a(0x22f)][_0x58761a(0x222)](_0x2863bb);}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x1df),void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),core_2[a2_0x9cf8d2(0x21d)])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x22f),void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x23d),void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),core_2[a2_0x9cf8d2(0x1e8)])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x207),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x9cf8d2(0x242),core_2[a2_0x9cf8d2(0x1ff)])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x9cf8d2(0x253),void 0x0),exports[a2_0x9cf8d2(0x25b)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x9cf8d2(0x227)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x34ff44=a3_0x57f3;(function(_0x28781b,_0x153812){const _0x2f01a4=a3_0x57f3,_0x15e07b=_0x28781b();while(!![]){try{const _0xf77a8b=-parseInt(_0x2f01a4(0x190))/0x1+parseInt(_0x2f01a4(0x1c7))/0x2+parseInt(_0x2f01a4(0x1ae))/0x3+-parseInt(_0x2f01a4(0x19d))/0x4*(parseInt(_0x2f01a4(0x196))/0x5)+-parseInt(_0x2f01a4(0x1a1))/0x6+-parseInt(_0x2f01a4(0x1c1))/0x7*(parseInt(_0x2f01a4(0x198))/0x8)+parseInt(_0x2f01a4(0x1cf))/0x9*(parseInt(_0x2f01a4(0x1c5))/0xa);if(_0xf77a8b===_0x153812)break;else _0x15e07b['push'](_0x15e07b['shift']());}catch(_0x2fc8f3){_0x15e07b['push'](_0x15e07b['shift']());}}}(a3_0x45b1,0x24449));const a3_0x4fd837=(function(){let _0x208132=!![];return function(_0x2053c9,_0x30226e){const _0xdbabdb=_0x208132?function(){if(_0x30226e){const _0x8ef3df=_0x30226e['apply'](_0x2053c9,arguments);return _0x30226e=null,_0x8ef3df;}}:function(){};return _0x208132=![],_0xdbabdb;};}()),a3_0x30d5b6=a3_0x4fd837(this,function(){const _0x37b4c2=a3_0x57f3;return a3_0x30d5b6[_0x37b4c2(0x1b4)]()[_0x37b4c2(0x1ba)](_0x37b4c2(0x1cc))[_0x37b4c2(0x1b4)]()[_0x37b4c2(0x1b1)](a3_0x30d5b6)[_0x37b4c2(0x1ba)](_0x37b4c2(0x1cc));});a3_0x30d5b6();'use strict';Object[a3_0x34ff44(0x1c4)](exports,a3_0x34ff44(0x19a),{'value':!![]}),exports[a3_0x34ff44(0x193)]=exports[a3_0x34ff44(0x1c2)]=exports[a3_0x34ff44(0x192)]=void 0x0;function a3_0x57f3(_0x189c01,_0x227a39){const _0x475026=a3_0x45b1();return a3_0x57f3=function(_0x30d5b6,_0x4fd837){_0x30d5b6=_0x30d5b6-0x189;let _0x45b11c=_0x475026[_0x30d5b6];return _0x45b11c;},a3_0x57f3(_0x189c01,_0x227a39);}const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a3_0x34ff44(0x1a6)),core_2=require(a3_0x34ff44(0x1a6)),action_1=require(a3_0x34ff44(0x1c6));function Action(_0xb70fc6,_0x350f4d,_0x113b3f={'middleware':[],'sensitive':!![]}){return _0x114399=>{const _0x41ae72=a3_0x57f3;var _0x4163d3;_0x113b3f[_0x41ae72(0x1b8)]=_0x350f4d;const _0x55adb4=parseRoute(_0xb70fc6);if(_0x55adb4[_0x41ae72(0x1a7)]){_0x113b3f['prefix']=_0x113b3f[_0x41ae72(0x1b3)]?'/'+_0x55adb4[_0x41ae72(0x1a7)]+'/'+_0x113b3f['prefix']:'/'+_0x55adb4[_0x41ae72(0x1b0)];_0x55adb4[_0x41ae72(0x1b3)]&&(_0x113b3f[_0x41ae72(0x1b3)]='/'+_0x55adb4[_0x41ae72(0x1b3)]+'/'+_0x113b3f['prefix']);if(fs['existsSync'](_0x55adb4['rootpath']+_0x41ae72(0x1b7)+_0x55adb4['module']+_0x41ae72(0x1b2)+(lodash[_0x41ae72(0x1bb)](_0x55adb4[_0x41ae72(0x191)],'ts')?'ts':'js'))){const _0x2f0775=include(_0x55adb4['rootpath']+_0x41ae72(0x1b7)+_0x55adb4['module']+'/config.'+(lodash['endsWith'](_0x55adb4[_0x41ae72(0x191)],'ts')?'ts':'js'));if(lodash[_0x41ae72(0x1cb)](_0x2f0775[_0x41ae72(0x18a)])&&_0x2f0775[_0x41ae72(0x18a)][_0x41ae72(0x1a4)]>0x0)for(let _0xbbcf06 in _0x2f0775['middleware']){if(((_0x4163d3=_0x2f0775===null||_0x2f0775===void 0x0?void 0x0:_0x2f0775['middlewareIgnore'])===null||_0x4163d3===void 0x0?void 0x0:_0x4163d3[_0x41ae72(0x1a4)])>0x0&&_0x2f0775[_0x41ae72(0x19f)][_0x41ae72(0x18f)](_0x2f0775[_0x41ae72(0x18a)][_0xbbcf06])!=-0x1)continue;_0x113b3f[_0x41ae72(0x18a)][_0x41ae72(0x1be)](_0x2f0775['middleware'][_0xbbcf06]);}const _0x282770=(0x0,core_1['getClassMetadata'])(action_1[_0x41ae72(0x1bd)],action_1[_0x41ae72(0x1af)])||{};_0x282770[''+_0x55adb4[_0x41ae72(0x1a7)]]=_0x2f0775,(0x0,core_1['saveClassMetadata'])(action_1[_0x41ae72(0x1bd)],_0x282770,action_1[_0x41ae72(0x1af)]);}_0x113b3f['prefix']=_0x113b3f[_0x41ae72(0x1b3)][_0x41ae72(0x18b)]()[_0x41ae72(0x18e)](/\/{2,}/g,'/'),(0x0,core_1[_0x41ae72(0x194)])(action_1[_0x41ae72(0x1d0)],_0x114399),(0x0,core_1[_0x41ae72(0x19c)])(_0x113b3f['prefix'],_0x113b3f)(_0x114399),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x113b3f[_0x41ae72(0x1b3)],'pprefix':_0x55adb4['prefix'],'module':_0x55adb4[_0x41ae72(0x1a7)],'filepath':_0x55adb4['filepath'],'routerOptions':_0x113b3f},_0x114399);}else _0x113b3f[_0x41ae72(0x1b3)]=_0x113b3f[_0x41ae72(0x1b3)]?'/'+_0x113b3f[_0x41ae72(0x1b3)]:'/'+_0x55adb4[_0x41ae72(0x1b0)],_0x55adb4['prefix']&&(_0x113b3f[_0x41ae72(0x1b3)]='/'+_0x55adb4['prefix']+'/'+_0x113b3f['prefix']),_0x113b3f['prefix']=_0x113b3f[_0x41ae72(0x1b3)][_0x41ae72(0x18b)]()[_0x41ae72(0x18e)](/\/{2,}/g,'/'),(0x0,core_1[_0x41ae72(0x194)])(action_1[_0x41ae72(0x1d0)],_0x114399),(0x0,core_1[_0x41ae72(0x19c)])(_0x113b3f[_0x41ae72(0x1b3)],_0x113b3f)(_0x114399),(0x0,core_1[_0x41ae72(0x1a5)])(action_1['ACTION_KEY'],{'prefix':_0x113b3f[_0x41ae72(0x1b3)],'module':_0x55adb4[_0x41ae72(0x1a7)],'pprefix':_0x55adb4[_0x41ae72(0x1b3)],'filepath':_0x55adb4['filepath'],'routerOptions':_0x113b3f},_0x114399);};}exports['Action']=Action,Action['get']=function(_0x279896,_0x347602='/',_0x9158af={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x29d3f3,_0xaeb5c8,_0x5c9984)=>{ActionApi(_0x279896,'get',_0x347602,_0x9158af)(_0x29d3f3,_0xaeb5c8,_0x5c9984);};},Action['post']=function(_0x1775fc,_0x46a1b7='/',_0xf0af8e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xd3087e,_0x5ee02b,_0x4ae91c)=>{const _0x7e488c=a3_0x57f3;ActionApi(_0x1775fc,_0x7e488c(0x1c0),_0x46a1b7,_0xf0af8e)(_0xd3087e,_0x5ee02b,_0x4ae91c);};};function a3_0x45b1(){const _0x38f46e=['saveClassMetadata','@midwayjs/core','module','split','join','description','get','undefined','routerName','237879bIouBK','AppsConfigTmp','route','constructor','/config.','prefix','toString','-action','attachClassMetadata','/apps/','tagName','createCustomMethodDecorator','search','endsWith','/controller/文件下','APPSCONFIG_KEY','push','basic/controller/','post','7jsKYPT','ActionApi','match','defineProperty','80XxXkbZ','../types/action','181454AaLGiA','startsWith','validationOptions','apimit','isArray','(((.+)+)+)+$','Validator','validate','766332xMKuFo','ACTION_KEY','app/controller/','middleware','toLowerCase','intercept','/controller/','replace','indexOf','255147WdkPkB','filepath','Action','parseRoute','saveModule','splice','1305550YwvZjs','filter','396456HKfEiN','substring','__esModule','cwd','Controller','4HxSYqB','assign','middlewareIgnore','ACTION_ROUTE_KEY','821022iHEvGo','string','RequestMapping','length'];a3_0x45b1=function(){return _0x38f46e;};return a3_0x45b1();}function ActionApi(_0x241f46,_0x10ca42=a3_0x34ff44(0x1ab),_0xc72775='/',_0x49f737={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3139f6,_0x44a65c,_0x16c227)=>{const _0xee106b=a3_0x57f3;var _0x3cb418,_0x4817c4,_0x30ed71;!_0x49f737['middleware']&&(_0x49f737[_0xee106b(0x18a)]=[]);!((_0x3cb418=_0x49f737===null||_0x49f737===void 0x0?void 0x0:_0x49f737[_0xee106b(0x1ce)])===null||_0x3cb418===void 0x0?void 0x0:_0x3cb418[_0xee106b(0x1c9)])&&(_0x49f737['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0xee106b(0x1a2)}});if(!_0xc72775)_0xc72775='/';else typeof _0xc72775==_0xee106b(0x1a2)&&(!_0xc72775['startsWith']('/')&&!_0xc72775['startsWith']('-')&&(_0xc72775='/'+_0xc72775));typeof _0x49f737['apimit']==_0xee106b(0x1ac)&&(_0x49f737[_0xee106b(0x1ca)]=!![]);if(((_0x4817c4=_0x49f737===null||_0x49f737===void 0x0?void 0x0:_0x49f737[_0xee106b(0x18a)])===null||_0x4817c4===void 0x0?void 0x0:_0x4817c4['length'])>0x0&&((_0x30ed71=_0x49f737===null||_0x49f737===void 0x0?void 0x0:_0x49f737[_0xee106b(0x19f)])===null||_0x30ed71===void 0x0?void 0x0:_0x30ed71[_0xee106b(0x1a4)])>0x0)for(let _0x33b27c in _0x49f737[_0xee106b(0x18a)]){_0x49f737[_0xee106b(0x19f)][_0xee106b(0x18f)](_0x49f737[_0xee106b(0x18a)][_0x33b27c])!==-0x1&&(_0x49f737[_0xee106b(0x18a)][_0x33b27c]=null);}_0x49f737['routerName']=_0x241f46,(0x0,validator_1[_0xee106b(0x1cd)])(_0x49f737[_0xee106b(0x1ce)])(_0x3139f6,_0x44a65c,_0x16c227),(0x0,core_2[_0xee106b(0x1a3)])(Object[_0xee106b(0x19e)](_0x49f737,{'path':_0xc72775,'requestMethod':(_0x10ca42||_0xee106b(0x1ab))[_0xee106b(0x18b)]()}))(_0x3139f6,_0x44a65c,_0x16c227),(0x0,core_2[_0xee106b(0x1b6)])(action_1[_0xee106b(0x1a0)],{'path':_0xc72775,'method':_0x44a65c,'apimit':_0x49f737['apimit'],'intercept':_0x49f737['intercept'],'routerName':_0x49f737[_0xee106b(0x1ad)],'description':_0x49f737[_0xee106b(0x1aa)],'middleware':(_0x49f737['middleware']||[])[_0xee106b(0x197)](_0x2b62c2=>!!_0x2b62c2),'requestMethod':(_0x10ca42||_0xee106b(0x1ab))[_0xee106b(0x18b)]()},_0x3139f6),(0x0,core_2[_0xee106b(0x1b9)])(action_1[_0xee106b(0x1a0)],{'path':_0xc72775,'method':_0x44a65c,'apimit':_0x49f737[_0xee106b(0x1ca)],'intercept':_0x49f737[_0xee106b(0x18c)],'routerName':_0x49f737[_0xee106b(0x1ad)],'description':_0x49f737[_0xee106b(0x1aa)],'middleware':(_0x49f737[_0xee106b(0x18a)]||[])[_0xee106b(0x197)](_0x524d64=>!!_0x524d64),'requestMethod':(_0x10ca42||'get')[_0xee106b(0x18b)]()})(_0x3139f6,_0x44a65c,_0x16c227);};}exports[a3_0x34ff44(0x1c2)]=ActionApi;function parseRoute(_0x51bc82){const _0x7864a9=a3_0x34ff44;_0x51bc82=_0x51bc82[_0x7864a9(0x18e)](/(\\|\/)/g,'/');const _0x295032=process[_0x7864a9(0x19b)]()[_0x7864a9(0x18e)](/(\\|\/)/g,'/'),_0x3c2196=_0x51bc82[_0x7864a9(0x199)](0x0,_0x295032[_0x7864a9(0x1a4)]+_0x51bc82[_0x7864a9(0x199)](_0x295032['length']+0x1)[_0x7864a9(0x18f)]('/')+0x1),_0x19ac1f=_0x51bc82[_0x7864a9(0x199)](_0x3c2196[_0x7864a9(0x1a4)]+0x1)[_0x7864a9(0x18e)](/(\\|\/)/g,'/'),_0x40c6c9={'route':'','prefix':![],'module':![],'rootpath':_0x3c2196,'filepath':_0x19ac1f};if(_0x19ac1f[_0x7864a9(0x1c8)](_0x7864a9(0x189))||_0x19ac1f[_0x7864a9(0x1c8)](_0x7864a9(0x1bf))){const _0x3f1a30=_0x19ac1f[_0x7864a9(0x199)]((_0x19ac1f['startsWith'](_0x7864a9(0x189))?_0x7864a9(0x189):_0x7864a9(0x1bf))[_0x7864a9(0x1a4)])[_0x7864a9(0x1a8)]('/')[_0x7864a9(0x197)](_0x912e36=>_0x912e36&&_0x912e36['trim']());return _0x3f1a30['length']>0x1&&(_0x40c6c9['prefix']=_0x3f1a30[0x0][_0x7864a9(0x18b)](),_0x3f1a30[_0x7864a9(0x195)](0x0,0x1)),_0x40c6c9[_0x7864a9(0x1b0)]=('/'+_0x3f1a30[_0x7864a9(0x1a9)]('/'))[_0x7864a9(0x18e)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x7864a9(0x1a9)]('-')[_0x7864a9(0x18b)]()[_0x7864a9(0x18e)](/\/\-/g,'/'),_0x40c6c9[_0x7864a9(0x1b0)][_0x7864a9(0x1bb)](_0x7864a9(0x1b5))&&(_0x40c6c9[_0x7864a9(0x1b0)]=_0x40c6c9[_0x7864a9(0x1b0)][_0x7864a9(0x199)](0x0,_0x40c6c9[_0x7864a9(0x1b0)][_0x7864a9(0x1a4)]-0x7)),_0x40c6c9[_0x7864a9(0x1b0)]['endsWith']('-controller')&&(_0x40c6c9['route']=_0x40c6c9[_0x7864a9(0x1b0)]['substring'](0x0,_0x40c6c9[_0x7864a9(0x1b0)][_0x7864a9(0x1a4)]-0xb)),_0x40c6c9;}else{if(_0x19ac1f[_0x7864a9(0x1c8)]('apps/')){const _0x55e664=_0x19ac1f[_0x7864a9(0x199)](0x0,_0x19ac1f[_0x7864a9(0x18f)](_0x7864a9(0x1b7))+0x5),_0x31b082=_0x19ac1f['substring'](_0x55e664[_0x7864a9(0x1a4)]+0x1)[_0x7864a9(0x18e)](/(\\|\/)/g,'/')[_0x7864a9(0x1a8)]('/')[0x0];if(_0x19ac1f['startsWith']('apps/'+_0x31b082+_0x7864a9(0x18d))){const _0x2024b6=_0x19ac1f[_0x7864a9(0x199)]((_0x55e664+'/'+_0x31b082+'/controller/')[_0x7864a9(0x1a4)])[_0x7864a9(0x1a8)]('/')[_0x7864a9(0x197)](_0x1fba8e=>_0x1fba8e&&_0x1fba8e['trim']());return _0x2024b6[_0x7864a9(0x1a4)]>0x1&&(_0x40c6c9[_0x7864a9(0x1b3)]=_0x2024b6[0x0][_0x7864a9(0x18b)](),_0x2024b6[_0x7864a9(0x195)](0x0,0x1)),_0x40c6c9[_0x7864a9(0x1a7)]=_0x31b082,_0x40c6c9[_0x7864a9(0x1b0)]=('/'+_0x31b082+'/'+_0x2024b6[_0x7864a9(0x1a9)]('/'))[_0x7864a9(0x18e)](/(\.ts|\.js)$/,'')[_0x7864a9(0x18e)](/\/{2,}/g,'/')[_0x7864a9(0x1c3)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x40c6c9['route'][_0x7864a9(0x1bb)](_0x7864a9(0x1b5))&&(_0x40c6c9[_0x7864a9(0x1b0)]=_0x40c6c9['route'][_0x7864a9(0x199)](0x0,_0x40c6c9[_0x7864a9(0x1b0)]['length']-0x7)),_0x40c6c9[_0x7864a9(0x1b0)]['endsWith']('-controller')&&(_0x40c6c9['route']=_0x40c6c9[_0x7864a9(0x1b0)][_0x7864a9(0x199)](0x0,_0x40c6c9['route'][_0x7864a9(0x1a4)]-0xb)),_0x40c6c9;}throw new Error(_0x19ac1f+'\x20文件请放在apps/'+_0x31b082+_0x7864a9(0x1bc));}}throw new Error(_0x19ac1f+'\x20文件请放在app/controller/文件下');}exports[a3_0x34ff44(0x193)]=parseRoute;
|
|
1
|
+
const a3_0x262986=a3_0x3bf4;(function(_0x5afec0,_0x280a8f){const _0x3b379d=a3_0x3bf4,_0x164c35=_0x5afec0();while(!![]){try{const _0x529683=-parseInt(_0x3b379d(0x1a1))/0x1+-parseInt(_0x3b379d(0x1b4))/0x2*(-parseInt(_0x3b379d(0x199))/0x3)+parseInt(_0x3b379d(0x187))/0x4*(-parseInt(_0x3b379d(0x19e))/0x5)+-parseInt(_0x3b379d(0x173))/0x6*(-parseInt(_0x3b379d(0x172))/0x7)+-parseInt(_0x3b379d(0x1a7))/0x8+parseInt(_0x3b379d(0x1b0))/0x9*(parseInt(_0x3b379d(0x1ae))/0xa)+parseInt(_0x3b379d(0x17c))/0xb;if(_0x529683===_0x280a8f)break;else _0x164c35['push'](_0x164c35['shift']());}catch(_0xffabde){_0x164c35['push'](_0x164c35['shift']());}}}(a3_0x2d65,0x1b240));function a3_0x2d65(){const _0x30f8d8=['prefix','165FyJYzQ','tagName','rootpath','193854zIocRS','ACTION_KEY','join','push','/config.','intercept','1061848IdncPh','createCustomMethodDecorator','validationOptions','app/controller/','@anncic-api/validator','(((.+)+)+)+$','module','510HIIScn','-action','24201qEVLoW','splice','__esModule','@midwayjs/core','2OVibUr','../types/action','post','filepath','middleware','apps/','string','basic/controller/','ActionApi','Controller','validate','AppsConfigTmp','6076KTBaSx','24gXupfm','middlewareIgnore','trim','/controller/','\x20文件请放在apps/','saveModule','defineProperty','saveClassMetadata','Action','1765511JgLuOb','match','indexOf','ACTION_ROUTE_KEY','routerName','/apps/','toString','description','undefined','isArray','constructor','7496bYeeEv','-controller','split','get','substring','parseRoute','existsSync','APPSCONFIG_KEY','search','apimit','replace','attachClassMetadata','RequestMapping','route','startsWith','assign','endsWith','filter','595449xpidOP','toLowerCase','length','Validator'];a3_0x2d65=function(){return _0x30f8d8;};return a3_0x2d65();}const a3_0x4b6812=(function(){let _0x1d83be=!![];return function(_0x1a20a8,_0x3b4b92){const _0x393613=_0x1d83be?function(){if(_0x3b4b92){const _0x108612=_0x3b4b92['apply'](_0x1a20a8,arguments);return _0x3b4b92=null,_0x108612;}}:function(){};return _0x1d83be=![],_0x393613;};}()),a3_0x1139cd=a3_0x4b6812(this,function(){const _0x5519a6=a3_0x3bf4;return a3_0x1139cd[_0x5519a6(0x182)]()['search'](_0x5519a6(0x1ac))[_0x5519a6(0x182)]()[_0x5519a6(0x186)](a3_0x1139cd)[_0x5519a6(0x18f)]('(((.+)+)+)+$');});a3_0x1139cd();'use strict';function a3_0x3bf4(_0x51bc5a,_0x231c00){const _0x3c6f4a=a3_0x2d65();return a3_0x3bf4=function(_0x1139cd,_0x4b6812){_0x1139cd=_0x1139cd-0x16b;let _0x2d6529=_0x3c6f4a[_0x1139cd];return _0x2d6529;},a3_0x3bf4(_0x51bc5a,_0x231c00);}Object[a3_0x262986(0x179)](exports,a3_0x262986(0x1b2),{'value':!![]}),exports[a3_0x262986(0x18c)]=exports[a3_0x262986(0x16e)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x262986(0x1ab)),core_1=require(a3_0x262986(0x1b3)),core_2=require('@midwayjs/core'),action_1=require(a3_0x262986(0x1b5));function Action(_0x260aea,_0x93e770,_0xf30f2d={'middleware':[],'sensitive':!![]}){return _0x4a9faf=>{const _0x19308e=a3_0x3bf4;var _0x573424;_0xf30f2d[_0x19308e(0x19f)]=_0x93e770;const _0x5cc465=parseRoute(_0x260aea);if(_0x5cc465['module']){_0xf30f2d['prefix']=_0xf30f2d[_0x19308e(0x19d)]?'/'+_0x5cc465['module']+'/'+_0xf30f2d[_0x19308e(0x19d)]:'/'+_0x5cc465[_0x19308e(0x194)];_0x5cc465[_0x19308e(0x19d)]&&(_0xf30f2d['prefix']='/'+_0x5cc465[_0x19308e(0x19d)]+'/'+_0xf30f2d[_0x19308e(0x19d)]);if(fs[_0x19308e(0x18d)](_0x5cc465[_0x19308e(0x1a0)]+'/apps/'+_0x5cc465[_0x19308e(0x1ad)]+_0x19308e(0x1a5)+(lodash[_0x19308e(0x197)](_0x5cc465[_0x19308e(0x1b7)],'ts')?'ts':'js'))){const _0x54cfb4=include(_0x5cc465['rootpath']+_0x19308e(0x181)+_0x5cc465['module']+_0x19308e(0x1a5)+(lodash[_0x19308e(0x197)](_0x5cc465[_0x19308e(0x1b7)],'ts')?'ts':'js'));if(lodash[_0x19308e(0x185)](_0x54cfb4[_0x19308e(0x1b8)])&&_0x54cfb4['middleware'][_0x19308e(0x19b)]>0x0)for(let _0x30093d in _0x54cfb4[_0x19308e(0x1b8)]){if(((_0x573424=_0x54cfb4===null||_0x54cfb4===void 0x0?void 0x0:_0x54cfb4[_0x19308e(0x174)])===null||_0x573424===void 0x0?void 0x0:_0x573424[_0x19308e(0x19b)])>0x0&&_0x54cfb4[_0x19308e(0x174)]['indexOf'](_0x54cfb4[_0x19308e(0x1b8)][_0x30093d])!=-0x1)continue;_0xf30f2d[_0x19308e(0x1b8)][_0x19308e(0x1a4)](_0x54cfb4[_0x19308e(0x1b8)][_0x30093d]);}const _0x2991cb=(0x0,core_1['getClassMetadata'])(action_1[_0x19308e(0x18e)],action_1['AppsConfigTmp'])||{};_0x2991cb[''+_0x5cc465[_0x19308e(0x1ad)]]=_0x54cfb4,(0x0,core_1[_0x19308e(0x17a)])(action_1[_0x19308e(0x18e)],_0x2991cb,action_1[_0x19308e(0x171)]);}_0xf30f2d[_0x19308e(0x19d)]=_0xf30f2d['prefix'][_0x19308e(0x19a)]()[_0x19308e(0x191)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x19308e(0x1a2)],_0x4a9faf),(0x0,core_1[_0x19308e(0x16f)])(_0xf30f2d[_0x19308e(0x19d)],_0xf30f2d)(_0x4a9faf),(0x0,core_1[_0x19308e(0x17a)])(action_1[_0x19308e(0x1a2)],{'prefix':_0xf30f2d[_0x19308e(0x19d)],'pprefix':_0x5cc465[_0x19308e(0x19d)],'module':_0x5cc465[_0x19308e(0x1ad)],'filepath':_0x5cc465[_0x19308e(0x1b7)],'routerOptions':_0xf30f2d},_0x4a9faf);}else _0xf30f2d[_0x19308e(0x19d)]=_0xf30f2d['prefix']?'/'+_0xf30f2d['prefix']:'/'+_0x5cc465[_0x19308e(0x194)],_0x5cc465['prefix']&&(_0xf30f2d['prefix']='/'+_0x5cc465[_0x19308e(0x19d)]+'/'+_0xf30f2d[_0x19308e(0x19d)]),_0xf30f2d[_0x19308e(0x19d)]=_0xf30f2d[_0x19308e(0x19d)][_0x19308e(0x19a)]()[_0x19308e(0x191)](/\/{2,}/g,'/'),(0x0,core_1[_0x19308e(0x178)])(action_1['ACTION_KEY'],_0x4a9faf),(0x0,core_1[_0x19308e(0x16f)])(_0xf30f2d[_0x19308e(0x19d)],_0xf30f2d)(_0x4a9faf),(0x0,core_1[_0x19308e(0x17a)])(action_1[_0x19308e(0x1a2)],{'prefix':_0xf30f2d['prefix'],'module':_0x5cc465[_0x19308e(0x1ad)],'pprefix':_0x5cc465[_0x19308e(0x19d)],'filepath':_0x5cc465[_0x19308e(0x1b7)],'routerOptions':_0xf30f2d},_0x4a9faf);};}exports[a3_0x262986(0x17b)]=Action,Action[a3_0x262986(0x18a)]=function(_0x1ad3bf,_0x5c0656='/',_0x398988={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x141b81,_0x514919,_0x7c5f98)=>{ActionApi(_0x1ad3bf,'get',_0x5c0656,_0x398988)(_0x141b81,_0x514919,_0x7c5f98);};},Action['post']=function(_0x49b4f8,_0x4fbfe8='/',_0x99c128={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xe22499,_0x1d47f9,_0x2f7c31)=>{const _0x43b3e4=a3_0x3bf4;ActionApi(_0x49b4f8,_0x43b3e4(0x1b6),_0x4fbfe8,_0x99c128)(_0xe22499,_0x1d47f9,_0x2f7c31);};};function ActionApi(_0x33074a,_0x3daf44=a3_0x262986(0x18a),_0x1ac279='/',_0x217eb5={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1e6714,_0x5b40fe,_0x3e9d55)=>{const _0x26c1e0=a3_0x3bf4;var _0x42f170,_0x23173e,_0xf4f29b;!_0x217eb5[_0x26c1e0(0x1b8)]&&(_0x217eb5[_0x26c1e0(0x1b8)]=[]);!((_0x42f170=_0x217eb5===null||_0x217eb5===void 0x0?void 0x0:_0x217eb5[_0x26c1e0(0x170)])===null||_0x42f170===void 0x0?void 0x0:_0x42f170[_0x26c1e0(0x1a9)])&&(_0x217eb5[_0x26c1e0(0x170)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x1ac279)_0x1ac279='/';else typeof _0x1ac279==_0x26c1e0(0x16c)&&(!_0x1ac279[_0x26c1e0(0x195)]('/')&&!_0x1ac279[_0x26c1e0(0x195)]('-')&&(_0x1ac279='/'+_0x1ac279));typeof _0x217eb5['apimit']==_0x26c1e0(0x184)&&(_0x217eb5['apimit']=!![]);if(((_0x23173e=_0x217eb5===null||_0x217eb5===void 0x0?void 0x0:_0x217eb5['middleware'])===null||_0x23173e===void 0x0?void 0x0:_0x23173e[_0x26c1e0(0x19b)])>0x0&&((_0xf4f29b=_0x217eb5===null||_0x217eb5===void 0x0?void 0x0:_0x217eb5[_0x26c1e0(0x174)])===null||_0xf4f29b===void 0x0?void 0x0:_0xf4f29b['length'])>0x0)for(let _0x2e0483 in _0x217eb5[_0x26c1e0(0x1b8)]){_0x217eb5[_0x26c1e0(0x174)][_0x26c1e0(0x17e)](_0x217eb5['middleware'][_0x2e0483])!==-0x1&&(_0x217eb5[_0x26c1e0(0x1b8)][_0x2e0483]=null);}_0x217eb5[_0x26c1e0(0x180)]=_0x33074a,(0x0,validator_1[_0x26c1e0(0x19c)])(_0x217eb5['validate'])(_0x1e6714,_0x5b40fe,_0x3e9d55),(0x0,core_2[_0x26c1e0(0x193)])(Object[_0x26c1e0(0x196)](_0x217eb5,{'path':_0x1ac279,'requestMethod':(_0x3daf44||_0x26c1e0(0x18a))[_0x26c1e0(0x19a)]()}))(_0x1e6714,_0x5b40fe,_0x3e9d55),(0x0,core_2[_0x26c1e0(0x192)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x1ac279,'method':_0x5b40fe,'apimit':_0x217eb5['apimit'],'intercept':_0x217eb5[_0x26c1e0(0x1a6)],'routerName':_0x217eb5['routerName'],'description':_0x217eb5[_0x26c1e0(0x183)],'middleware':(_0x217eb5[_0x26c1e0(0x1b8)]||[])[_0x26c1e0(0x198)](_0x37e36f=>!!_0x37e36f),'requestMethod':(_0x3daf44||_0x26c1e0(0x18a))['toLowerCase']()},_0x1e6714),(0x0,core_2[_0x26c1e0(0x1a8)])(action_1[_0x26c1e0(0x17f)],{'path':_0x1ac279,'method':_0x5b40fe,'apimit':_0x217eb5[_0x26c1e0(0x190)],'intercept':_0x217eb5[_0x26c1e0(0x1a6)],'routerName':_0x217eb5['routerName'],'description':_0x217eb5[_0x26c1e0(0x183)],'middleware':(_0x217eb5[_0x26c1e0(0x1b8)]||[])[_0x26c1e0(0x198)](_0x364713=>!!_0x364713),'requestMethod':(_0x3daf44||'get')['toLowerCase']()})(_0x1e6714,_0x5b40fe,_0x3e9d55);};}exports[a3_0x262986(0x16e)]=ActionApi;function parseRoute(_0x207fb3){const _0x3bfa8c=a3_0x262986;_0x207fb3=_0x207fb3[_0x3bfa8c(0x191)](/(\\|\/)/g,'/');const _0x133c57=process['cwd']()['replace'](/(\\|\/)/g,'/'),_0x219445=_0x207fb3[_0x3bfa8c(0x18b)](0x0,_0x133c57[_0x3bfa8c(0x19b)]+_0x207fb3[_0x3bfa8c(0x18b)](_0x133c57['length']+0x1)[_0x3bfa8c(0x17e)]('/')+0x1),_0x48055e=_0x207fb3[_0x3bfa8c(0x18b)](_0x219445[_0x3bfa8c(0x19b)]+0x1)[_0x3bfa8c(0x191)](/(\\|\/)/g,'/'),_0x2f3a47={'route':'','prefix':![],'module':![],'rootpath':_0x219445,'filepath':_0x48055e};if(_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x1aa))||_0x48055e['startsWith'](_0x3bfa8c(0x16d))){const _0x496055=_0x48055e[_0x3bfa8c(0x18b)]((_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x1aa))?_0x3bfa8c(0x1aa):_0x3bfa8c(0x16d))['length'])[_0x3bfa8c(0x189)]('/')['filter'](_0x5beed9=>_0x5beed9&&_0x5beed9[_0x3bfa8c(0x175)]());return _0x496055['length']>0x1&&(_0x2f3a47[_0x3bfa8c(0x19d)]=_0x496055[0x0][_0x3bfa8c(0x19a)](),_0x496055[_0x3bfa8c(0x1b1)](0x0,0x1)),_0x2f3a47[_0x3bfa8c(0x194)]=('/'+_0x496055['join']('/'))[_0x3bfa8c(0x191)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x3bfa8c(0x17d)](/[\/|A-Z]*[^A-Z]+/g)[_0x3bfa8c(0x1a3)]('-')[_0x3bfa8c(0x19a)]()[_0x3bfa8c(0x191)](/\/\-/g,'/'),_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x197)]('-action')&&(_0x2f3a47[_0x3bfa8c(0x194)]=_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x18b)](0x0,_0x2f3a47['route'][_0x3bfa8c(0x19b)]-0x7)),_0x2f3a47['route']['endsWith'](_0x3bfa8c(0x188))&&(_0x2f3a47[_0x3bfa8c(0x194)]=_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x18b)](0x0,_0x2f3a47['route'][_0x3bfa8c(0x19b)]-0xb)),_0x2f3a47;}else{if(_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x16b))){const _0x456158=_0x48055e[_0x3bfa8c(0x18b)](0x0,_0x48055e[_0x3bfa8c(0x17e)](_0x3bfa8c(0x181))+0x5),_0x265054=_0x48055e[_0x3bfa8c(0x18b)](_0x456158['length']+0x1)[_0x3bfa8c(0x191)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x16b)+_0x265054+_0x3bfa8c(0x176))){const _0x2fed12=_0x48055e[_0x3bfa8c(0x18b)]((_0x456158+'/'+_0x265054+_0x3bfa8c(0x176))[_0x3bfa8c(0x19b)])[_0x3bfa8c(0x189)]('/')['filter'](_0x25615e=>_0x25615e&&_0x25615e[_0x3bfa8c(0x175)]());return _0x2fed12['length']>0x1&&(_0x2f3a47[_0x3bfa8c(0x19d)]=_0x2fed12[0x0]['toLowerCase'](),_0x2fed12[_0x3bfa8c(0x1b1)](0x0,0x1)),_0x2f3a47[_0x3bfa8c(0x1ad)]=_0x265054,_0x2f3a47['route']=('/'+_0x265054+'/'+_0x2fed12[_0x3bfa8c(0x1a3)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x3bfa8c(0x1a3)]('-')[_0x3bfa8c(0x19a)]()[_0x3bfa8c(0x191)](/\/\-/g,'/'),_0x2f3a47[_0x3bfa8c(0x194)]['endsWith'](_0x3bfa8c(0x1af))&&(_0x2f3a47[_0x3bfa8c(0x194)]=_0x2f3a47[_0x3bfa8c(0x194)]['substring'](0x0,_0x2f3a47[_0x3bfa8c(0x194)]['length']-0x7)),_0x2f3a47['route']['endsWith']('-controller')&&(_0x2f3a47['route']=_0x2f3a47[_0x3bfa8c(0x194)]['substring'](0x0,_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x19b)]-0xb)),_0x2f3a47;}throw new Error(_0x48055e+_0x3bfa8c(0x177)+_0x265054+'/controller/文件下');}}throw new Error(_0x48055e+'\x20文件请放在app/controller/文件下');}exports[a3_0x262986(0x18c)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x35e54d=a4_0x3298;(function(_0x2576cf,_0x500cb8){const _0x4c9cb2=a4_0x3298,_0x4645d6=_0x2576cf();while(!![]){try{const _0x4bdec8=parseInt(_0x4c9cb2(0xa8))/0x1+parseInt(_0x4c9cb2(0xb3))/0x2+-parseInt(_0x4c9cb2(0xbd))/0x3+-parseInt(_0x4c9cb2(0xbc))/0x4+parseInt(_0x4c9cb2(0xb8))/0x5*(-parseInt(_0x4c9cb2(0xc2))/0x6)+parseInt(_0x4c9cb2(0xad))/0x7+parseInt(_0x4c9cb2(0xbf))/0x8*(parseInt(_0x4c9cb2(0xb5))/0x9);if(_0x4bdec8===_0x500cb8)break;else _0x4645d6['push'](_0x4645d6['shift']());}catch(_0x49ed4f){_0x4645d6['push'](_0x4645d6['shift']());}}}(a4_0x1d9d,0xcd6f4));const a4_0x14075a=(function(){let _0x39c246=!![];return function(_0x2accc4,_0x470c52){const _0x4affe9=_0x39c246?function(){if(_0x470c52){const _0x22d084=_0x470c52['apply'](_0x2accc4,arguments);return _0x470c52=null,_0x22d084;}}:function(){};return _0x39c246=![],_0x4affe9;};}()),a4_0x2d23af=a4_0x14075a(this,function(){const _0x10f402=a4_0x3298;return a4_0x2d23af[_0x10f402(0xb0)]()[_0x10f402(0xab)](_0x10f402(0xaa))['toString']()[_0x10f402(0xba)](a4_0x2d23af)[_0x10f402(0xab)](_0x10f402(0xaa));});function a4_0x3298(_0x1f51bf,_0x5d1f91){const _0x1f317e=a4_0x1d9d();return a4_0x3298=function(_0x2d23af,_0x14075a){_0x2d23af=_0x2d23af-0xa7;let _0x1d9d16=_0x1f317e[_0x2d23af];return _0x1d9d16;},a4_0x3298(_0x1f51bf,_0x5d1f91);}function a4_0x1d9d(){const _0xb2c6a0=['6973813PuUfKw','/apitest','MidwayEnvironmentService','toString','getAsync','getApplicationContext','827214iVPESU','apidoc','9018mKyctf','app','apitest','7791405fHBYFR','@midwayjs/core','constructor','value','6450496WhBZvb','3994506RIkKAR','REQUEST_OBJ_CTX_KEY','21784VGxTAH','RequestMapping','Apitest','6efVVQA','filepath','__esModule','1205555ZqGHiv','isDevelopmentEnvironment','(((.+)+)+)+$','search','../service/ApitestService'];a4_0x1d9d=function(){return _0xb2c6a0;};return a4_0x1d9d();}a4_0x2d23af();'use strict';Object['defineProperty'](exports,a4_0x35e54d(0xa7),{'value':!![]}),exports[a4_0x35e54d(0xc1)]=void 0x0;const core_1=require(a4_0x35e54d(0xb9)),ApitestService_1=require(a4_0x35e54d(0xac));function Apitest(_0x55fcdf=a4_0x35e54d(0xae),_0x4e6a85){return(_0x8f81d9,_0x335f60,_0x2aec37)=>{const _0x2d64d5=a4_0x3298;return(0x0,core_1[_0x2d64d5(0xc0)])({'path':_0x55fcdf,'requestMethod':'get'})(_0x8f81d9,_0x335f60,_0x2aec37),_0x2aec37[_0x2d64d5(0xbb)]=async function(..._0x39b915){const _0x2633ca=_0x2d64d5;var _0x5aedaa;const _0x287eef=(_0x5aedaa=this[core_1[_0x2633ca(0xbe)]])===null||_0x5aedaa===void 0x0?void 0x0:_0x5aedaa[_0x2633ca(0xb6)];if(_0x287eef&&_0x287eef['getConfig'](_0x2633ca(0xb7))){const _0x1508ac=await _0x287eef[_0x2633ca(0xb2)]()[_0x2633ca(0xb1)](ApitestService_1['ApitestService']),_0x322710=await _0x287eef[_0x2633ca(0xb2)]()[_0x2633ca(0xb1)](core_1[_0x2633ca(0xaf)]);return _0x322710[_0x2633ca(0xa9)]()&&(_0x4e6a85[_0x2633ca(0xc3)]=!![]),await _0x1508ac[_0x2633ca(0xb4)](_0x4e6a85);}return'';},_0x2aec37;};}exports[a4_0x35e54d(0xc1)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x3c28be=a5_0x5b3b;(function(_0x2f50a9,_0x28e69a){const _0x2eb2e4=a5_0x5b3b,_0x423a7b=_0x2f50a9();while(!![]){try{const _0x4bac6d=parseInt(_0x2eb2e4(0xd0))/0x1*(parseInt(_0x2eb2e4(0xdf))/0x2)+parseInt(_0x2eb2e4(0xd2))/0x3*(-parseInt(_0x2eb2e4(0xdb))/0x4)+parseInt(_0x2eb2e4(0xe8))/0x5+-parseInt(_0x2eb2e4(0xd3))/0x6+-parseInt(_0x2eb2e4(0xc7))/0x7*(parseInt(_0x2eb2e4(0xce))/0x8)+-parseInt(_0x2eb2e4(0xc8))/0x9*(-parseInt(_0x2eb2e4(0xd1))/0xa)+-parseInt(_0x2eb2e4(0xd4))/0xb*(-parseInt(_0x2eb2e4(0xe9))/0xc);if(_0x4bac6d===_0x28e69a)break;else _0x423a7b['push'](_0x423a7b['shift']());}catch(_0x5928e9){_0x423a7b['push'](_0x423a7b['shift']());}}}(a5_0x539b,0x315de));const a5_0x21c1c5=(function(){let _0x6c8e5b=!![];return function(_0x5affdf,_0x28599d){const _0x26c287=_0x6c8e5b?function(){const _0x28fae0=a5_0x5b3b;if(_0x28599d){const _0x15630f=_0x28599d[_0x28fae0(0xe0)](_0x5affdf,arguments);return _0x28599d=null,_0x15630f;}}:function(){};return _0x6c8e5b=![],_0x26c287;};}()),a5_0x1477a7=a5_0x21c1c5(this,function(){const _0x2ae5e9=a5_0x5b3b;return a5_0x1477a7[_0x2ae5e9(0xca)]()[_0x2ae5e9(0xd9)](_0x2ae5e9(0xe4))['toString']()[_0x2ae5e9(0xd5)](a5_0x1477a7)[_0x2ae5e9(0xd9)](_0x2ae5e9(0xe4));});a5_0x1477a7();'use strict';Object[a5_0x3c28be(0xdd)](exports,a5_0x3c28be(0xdc),{'value':!![]}),exports[a5_0x3c28be(0xcc)]=exports[a5_0x3c28be(0xe2)]=void 0x0;function a5_0x5b3b(_0x4e4ef0,_0x4359eb){const _0x141e58=a5_0x539b();return a5_0x5b3b=function(_0x1477a7,_0x21c1c5){_0x1477a7=_0x1477a7-0xc7;let _0x539bc3=_0x141e58[_0x1477a7];return _0x539bc3;},a5_0x5b3b(_0x4e4ef0,_0x4359eb);}const core_1=require(a5_0x3c28be(0xe3)),intercept_1=require(a5_0x3c28be(0xe5));function Intercept(_0x1e1d6f){return _0x20fdbc=>{const _0x13b5db=a5_0x5b3b,_0x4cdd06=(0x0,core_1[_0x13b5db(0xcf)])(intercept_1[_0x13b5db(0xc9)],intercept_1[_0x13b5db(0xcb)])||{};for(let _0x4877a8 of Array[_0x13b5db(0xe7)](_0x1e1d6f)?_0x1e1d6f:[_0x1e1d6f]){_0x4877a8=_0x4877a8[_0x13b5db(0xd7)]();!(_0x4cdd06===null||_0x4cdd06===void 0x0?void 0x0:_0x4cdd06[_0x4877a8])&&(_0x4cdd06[_0x4877a8]=[]);if(_0x4cdd06[_0x4877a8][_0x13b5db(0xd8)](_0x20fdbc))continue;_0x4cdd06[_0x4877a8][_0x13b5db(0xcd)](_0x20fdbc);}(0x0,core_1['Provide'])()(_0x20fdbc),(0x0,core_1[_0x13b5db(0xda)])(core_1[_0x13b5db(0xd6)][_0x13b5db(0xe1)])(_0x20fdbc),(0x0,core_1[_0x13b5db(0xe6)])(intercept_1[_0x13b5db(0xc9)],_0x4cdd06,intercept_1['InterceptTargetTmp']);};}exports[a5_0x3c28be(0xe2)]=Intercept;class IIntercept{async[a5_0x3c28be(0xde)](_0x22df47,_0xb57ca7,_0x3ff170){return!![];}}exports['IIntercept']=IIntercept;function a5_0x539b(){const _0x5e5ce9=['Singleton','Intercept','@midwayjs/core','(((.+)+)+)+$','../types/intercept','saveClassMetadata','isArray','665145rwelro','336RMUQOt','7ojuajS','8001OWzuFW','INTERCEPT_KEY','toString','InterceptTargetTmp','IIntercept','push','3202376YRcfGe','getClassMetadata','22CkGiak','3190MEeHMb','3MGzgrl','1999680UfacQE','168487mrurjq','constructor','ScopeEnum','toUpperCase','includes','search','Scope','492188oRmqtj','__esModule','defineProperty','match','19394AyYStI','apply'];a5_0x539b=function(){return _0x5e5ce9;};return a5_0x539b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x6dc9f2=a6_0x425b;(function(_0x58dc49,_0x5e4e5d){var _0x3eced4=a6_0x425b,_0x41bc58=_0x58dc49();while(!![]){try{var _0x5ba76d=parseInt(_0x3eced4(0xe8))/0x1*(-parseInt(_0x3eced4(0xe4))/0x2)+parseInt(_0x3eced4(0xfe))/0x3+-parseInt(_0x3eced4(0xf0))/0x4+-parseInt(_0x3eced4(0xfa))/0x5*(parseInt(_0x3eced4(0xdd))/0x6)+parseInt(_0x3eced4(0xec))/0x7+-parseInt(_0x3eced4(0xe6))/0x8*(parseInt(_0x3eced4(0xf8))/0x9)+parseInt(_0x3eced4(0xf7))/0xa;if(_0x5ba76d===_0x5e4e5d)break;else _0x41bc58['push'](_0x41bc58['shift']());}catch(_0xaa50b0){_0x41bc58['push'](_0x41bc58['shift']());}}}(a6_0x3b6b,0x495f0));var a6_0x5d0a08=(function(){var _0x3d7be7=!![];return function(_0x5a20d8,_0x3f70c2){var _0x2f85ea=_0x3d7be7?function(){var _0x118fc0=a6_0x425b;if(_0x3f70c2){var _0xc20f13=_0x3f70c2[_0x118fc0(0xf2)](_0x5a20d8,arguments);return _0x3f70c2=null,_0xc20f13;}}:function(){};return _0x3d7be7=![],_0x2f85ea;};}()),a6_0x28c435=a6_0x5d0a08(this,function(){var _0xe18cf8=a6_0x425b;return a6_0x28c435[_0xe18cf8(0xfb)]()[_0xe18cf8(0xf3)](_0xe18cf8(0xea))[_0xe18cf8(0xfb)]()[_0xe18cf8(0xde)](a6_0x28c435)['search'](_0xe18cf8(0xea));});a6_0x28c435();'use strict';function a6_0x425b(_0x494c8d,_0x2d3d0c){var _0x5d6f6e=a6_0x3b6b();return a6_0x425b=function(_0x28c435,_0x5d0a08){_0x28c435=_0x28c435-0xdc;var _0x3b6bb5=_0x5d6f6e[_0x28c435];return _0x3b6bb5;},a6_0x425b(_0x494c8d,_0x2d3d0c);}var __decorate=this&&this[a6_0x6dc9f2(0xed)]||function(_0x450fda,_0x2e9138,_0x57e104,_0x512986){var _0x3b4445=a6_0x6dc9f2,_0x11e944=arguments[_0x3b4445(0xe2)],_0x3acd55=_0x11e944<0x3?_0x2e9138:_0x512986===null?_0x512986=Object['getOwnPropertyDescriptor'](_0x2e9138,_0x57e104):_0x512986,_0x442ea7;if(typeof Reflect===_0x3b4445(0xfc)&&typeof Reflect[_0x3b4445(0xfd)]===_0x3b4445(0xe3))_0x3acd55=Reflect[_0x3b4445(0xfd)](_0x450fda,_0x2e9138,_0x57e104,_0x512986);else{for(var _0xe3cd6b=_0x450fda[_0x3b4445(0xe2)]-0x1;_0xe3cd6b>=0x0;_0xe3cd6b--)if(_0x442ea7=_0x450fda[_0xe3cd6b])_0x3acd55=(_0x11e944<0x3?_0x442ea7(_0x3acd55):_0x11e944>0x3?_0x442ea7(_0x2e9138,_0x57e104,_0x3acd55):_0x442ea7(_0x2e9138,_0x57e104))||_0x3acd55;}return _0x11e944>0x3&&_0x3acd55&&Object['defineProperty'](_0x2e9138,_0x57e104,_0x3acd55),_0x3acd55;},__metadata=this&&this['__metadata']||function(_0x1a1b54,_0x5e9d26){var _0x546d4b=a6_0x6dc9f2;if(typeof Reflect===_0x546d4b(0xfc)&&typeof Reflect['metadata']===_0x546d4b(0xe3))return Reflect[_0x546d4b(0xdc)](_0x1a1b54,_0x5e9d26);};Object[a6_0x6dc9f2(0xe1)](exports,a6_0x6dc9f2(0xf9),{'value':!![]}),exports[a6_0x6dc9f2(0xee)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x6dc9f2(0xee)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError[a6_0x6dc9f2(0xdf)]=0x18e74,ApiError[a6_0x6dc9f2(0xe0)]=0x18e75,ApiError[a6_0x6dc9f2(0xe7)]=0x18e76,__decorate([AnnErrorMsg(a6_0x6dc9f2(0xf6)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xeb),void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xef)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xf4)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xe9)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xdf),void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xe5)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xe0),void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xf5)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xe7),void 0x0);function a6_0x3b6b(){var _0x3d6274=['1806956uctTHq','design:type','apply','search','请使用正确的设备','登录超时,请重新登录','请求超时,请重试','11372530yCIwNa','3576078Putinh','__esModule','10GeadnL','toString','object','decorate','906300ujtTCu','metadata','123258sNJSPS','constructor','HEADERS_SIGNATURE','HEADERS_CHECKCODE','defineProperty','length','function','58AwRowG','验证失败,请重新登录','8PVlSjy','TIMEOUT_LOGINTIME','18089RmiqBO','signature验证失败','(((.+)+)+)+$','TIMEOUT','1931461PBMYoM','__decorate','ApiError','请求头信息不完整'];a6_0x3b6b=function(){return _0x3d6274;};return a6_0x3b6b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x425b(){const _0x55c049=['125676ePVENO','6ZrdJmX','constructor','@midwayjs/core','APPSCONFIG_KEY','search','70XACDHy','toString','AppsConfigTmp','(((.+)+)+)+$','48792490CKsDZI','9013655XFTBIl','get','3994155xvQxIx','getAppsConfig','29596yUlXJl','2494224UqnQeZ','40zfViDx','apply','3679380fzwRnB','__esModule','getClassMetadata'];a7_0x425b=function(){return _0x55c049;};return a7_0x425b();}const a7_0x18d4d0=a7_0x14c8;(function(_0x4454b7,_0x229abc){const _0x167be9=a7_0x14c8,_0x54c714=_0x4454b7();while(!![]){try{const _0x387f67=parseInt(_0x167be9(0xd4))/0x1*(-parseInt(_0x167be9(0xdd))/0x2)+-parseInt(_0x167be9(0xcb))/0x3+-parseInt(_0x167be9(0xce))/0x4+parseInt(_0x167be9(0xdb))/0x5+-parseInt(_0x167be9(0xcf))/0x6*(parseInt(_0x167be9(0xd9))/0x7)+parseInt(_0x167be9(0xc9))/0x8*(-parseInt(_0x167be9(0xde))/0x9)+parseInt(_0x167be9(0xd8))/0xa;if(_0x387f67===_0x229abc)break;else _0x54c714['push'](_0x54c714['shift']());}catch(_0x21b607){_0x54c714['push'](_0x54c714['shift']());}}}(a7_0x425b,0xad954));const a7_0x2932fd=(function(){let _0x58835e=!![];return function(_0x17f75b,_0x3d2e22){const _0x4521d4=_0x58835e?function(){const _0x483a8e=a7_0x14c8;if(_0x3d2e22){const _0x22fc55=_0x3d2e22[_0x483a8e(0xca)](_0x17f75b,arguments);return _0x3d2e22=null,_0x22fc55;}}:function(){};return _0x58835e=![],_0x4521d4;};}()),a7_0x3121c9=a7_0x2932fd(this,function(){const _0x607ffa=a7_0x14c8;return a7_0x3121c9['toString']()[_0x607ffa(0xd3)](_0x607ffa(0xd7))[_0x607ffa(0xd5)]()[_0x607ffa(0xd0)](a7_0x3121c9)[_0x607ffa(0xd3)](_0x607ffa(0xd7));});a7_0x3121c9();'use strict';function a7_0x14c8(_0x1b299f,_0x1d6bf4){const _0x34912d=a7_0x425b();return a7_0x14c8=function(_0x3121c9,_0x2932fd){_0x3121c9=_0x3121c9-0xc9;let _0x425b76=_0x34912d[_0x3121c9];return _0x425b76;},a7_0x14c8(_0x1b299f,_0x1d6bf4);}Object['defineProperty'](exports,a7_0x18d4d0(0xcc),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0x18d4d0(0xd1)),action_1=require('../types/action');function getAppsConfig(_0x33e826){const _0x521c41=a7_0x18d4d0,_0x29d603=(0x0,core_1[_0x521c41(0xcd)])(action_1[_0x521c41(0xd2)],action_1[_0x521c41(0xd6)])||{};return _0x33e826?lodash[_0x521c41(0xda)](_0x29d603,_0x33e826):_0x29d603;}exports[a7_0x18d4d0(0xdc)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x571b05=a8_0x2e0f;(function(_0x2a16a4,_0x2ac368){const _0x37717e=a8_0x2e0f,_0x599581=_0x2a16a4();while(!![]){try{const _0x1518ab=-parseInt(_0x37717e(0xff))/0x1+-parseInt(_0x37717e(0x10d))/0x2*(-parseInt(_0x37717e(0x126))/0x3)+-parseInt(_0x37717e(0x11c))/0x4*(-parseInt(_0x37717e(0x11a))/0x5)+parseInt(_0x37717e(0xfa))/0x6+parseInt(_0x37717e(0xf1))/0x7*(parseInt(_0x37717e(0xe0))/0x8)+-parseInt(_0x37717e(0xdf))/0x9*(-parseInt(_0x37717e(0x129))/0xa)+-parseInt(_0x37717e(0x120))/0xb*(parseInt(_0x37717e(0xd7))/0xc);if(_0x1518ab===_0x2ac368)break;else _0x599581['push'](_0x599581['shift']());}catch(_0x29a0e4){_0x599581['push'](_0x599581['shift']());}}}(a8_0x1f68,0x8f8b1));const a8_0x705684=(function(){let _0x5ffcdc=!![];return function(_0x46f9b7,_0x5be07e){const _0x172543=_0x5ffcdc?function(){const _0x7b117a=a8_0x2e0f;if(_0x5be07e){const _0x2de8b1=_0x5be07e[_0x7b117a(0xf8)](_0x46f9b7,arguments);return _0x5be07e=null,_0x2de8b1;}}:function(){};return _0x5ffcdc=![],_0x172543;};}()),a8_0x109379=a8_0x705684(this,function(){const _0x588462=a8_0x2e0f;return a8_0x109379['toString']()['search'](_0x588462(0xcf))[_0x588462(0xf4)]()['constructor'](a8_0x109379)['search'](_0x588462(0xcf));});a8_0x109379();'use strict';Object[a8_0x571b05(0xe7)](exports,a8_0x571b05(0xeb),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x2e0f(_0x153a62,_0x26d27c){const _0x580d81=a8_0x1f68();return a8_0x2e0f=function(_0x109379,_0x705684){_0x109379=_0x109379-0xc6;let _0x1f68dc=_0x580d81[_0x109379];return _0x1f68dc;},a8_0x2e0f(_0x153a62,_0x26d27c);}const lodash_1=require(a8_0x571b05(0xf6)),validator_1=require(a8_0x571b05(0x102)),core_1=require(a8_0x571b05(0xea)),core_2=require(a8_0x571b05(0xea)),core_3=require(a8_0x571b05(0xea)),action_1=require(a8_0x571b05(0x10b));function getRoutes(_0x3397c7={'prefix':'/','module':![]}){const _0x4ef178=a8_0x571b05;var _0x36d841,_0x4eaa5f;const _0x4faba5=(0x0,core_3[_0x4ef178(0x10c)])(action_1[_0x4ef178(0xf9)]),_0x573612={},_0x286c6b=Array[_0x4ef178(0xf7)](_0x3397c7[_0x4ef178(0xcc)]||[])?_0x3397c7['filter']||[]:[_0x3397c7[_0x4ef178(0xcc)]];_0x45156d:for(const _0x532919 of _0x4faba5){let _0x51e29c=(0x0,core_3[_0x4ef178(0xdb)])(action_1[_0x4ef178(0xf9)],_0x532919),_0x1bf923=(0x0,core_3[_0x4ef178(0xdb)])(action_1[_0x4ef178(0xd4)],_0x532919);if(_0x51e29c&&_0x1bf923){let _0x174b31=_0x51e29c[_0x4ef178(0x117)],_0x17d6df={};if(_0x3397c7[_0x4ef178(0xd2)]&&(0x0,lodash_1['get'])(_0x51e29c,_0x4ef178(0xd2),![])!=_0x3397c7[_0x4ef178(0xd2)])continue _0x45156d;else{if(_0x3397c7[_0x4ef178(0xd2)]===![]&&!!(0x0,lodash_1[_0x4ef178(0x118)])(_0x51e29c,_0x4ef178(0xd2),null))continue _0x45156d;}if(_0x3397c7[_0x4ef178(0x117)]&&!_0x174b31['startsWith'](_0x3397c7[_0x4ef178(0x117)]))continue _0x45156d;_0x174b31!=='/'?(_0x17d6df['summary']=(_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c['routerOptions'][_0x4ef178(0x113)])||(/^\//[_0x4ef178(0xcd)](_0x174b31)?_0x174b31['split']('/')[0x1]:_0x174b31),_0x17d6df[_0x4ef178(0x100)]=(_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c[_0x4ef178(0x115)][_0x4ef178(0x100)])||_0x17d6df[_0x4ef178(0xd1)],_0x17d6df[_0x4ef178(0xc7)]=[]):(_0x17d6df[_0x4ef178(0xd1)]=(_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c[_0x4ef178(0x115)][_0x4ef178(0x113)])||_0x4ef178(0xe9),_0x17d6df[_0x4ef178(0x100)]=(_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c[_0x4ef178(0x115)][_0x4ef178(0x100)])||'',_0x17d6df[_0x4ef178(0xc7)]=[]);_0x3397c7[_0x4ef178(0xee)]&&(_0x17d6df[_0x4ef178(0xee)]=_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c['filepath']);(_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c[_0x4ef178(0x11d)])&&(_0x17d6df['prefix']=_0x51e29c[_0x4ef178(0x11d)]);(_0x51e29c===null||_0x51e29c===void 0x0?void 0x0:_0x51e29c[_0x4ef178(0xd2)])&&(_0x17d6df['module']=_0x51e29c[_0x4ef178(0xd2)]);let _0x2281e1=(0x0,core_3['getClassMetadata'])(core_2[_0x4ef178(0x104)],_0x532919)||{};if(typeof _0x1bf923[Symbol[_0x4ef178(0x11e)]]===_0x4ef178(0xf2))for(let _0x467854 of _0x1bf923){if((_0x3397c7===null||_0x3397c7===void 0x0?void 0x0:_0x3397c7['intercept'])&&!(_0x467854===null||_0x467854===void 0x0?void 0x0:_0x467854[_0x4ef178(0xc9)]))continue;let _0x15472f={};_0x15472f[_0x4ef178(0xe6)]=_0x467854[_0x4ef178(0x112)],_0x15472f['route']=(_0x174b31+_0x467854[_0x4ef178(0x123)])[_0x4ef178(0x12a)](/\/{2,}/g,'/'),_0x15472f[_0x4ef178(0xd1)]=(_0x467854===null||_0x467854===void 0x0?void 0x0:_0x467854[_0x4ef178(0xed)])||_0x17d6df[_0x4ef178(0xd1)]||_0x4ef178(0xe9),_0x15472f[_0x4ef178(0x100)]=(_0x467854===null||_0x467854===void 0x0?void 0x0:_0x467854[_0x4ef178(0x100)])||'',_0x15472f[_0x4ef178(0xf0)]=[];_0x15472f['route'][_0x4ef178(0x124)]('/')&&(_0x15472f['route']=_0x15472f['route'][_0x4ef178(0x108)](0x0,_0x15472f[_0x4ef178(0xd9)][_0x4ef178(0x111)]-0x1));if(!(0x0,lodash_1[_0x4ef178(0xd5)])(_0x15472f['route'],'static/apitest')&&!(0x0,lodash_1[_0x4ef178(0xd5)])(_0x15472f['route'],_0x4ef178(0xdd))&&_0x286c6b['indexOf'](_0x15472f['route'])===-0x1){if(!(_0x3397c7===null||_0x3397c7===void 0x0?void 0x0:_0x3397c7[_0x4ef178(0xda)])){let _0x3ba605=(0x0,core_3[_0x4ef178(0xe8)])(new _0x532919(),_0x467854[_0x4ef178(0xe6)]);for(const _0x450b4c in _0x3ba605){let _0x45c8fb=(_0x36d841=_0x2281e1[_0x467854['method']])===null||_0x36d841===void 0x0?void 0x0:_0x36d841[_0x4ef178(0x107)](_0x52ea0c=>_0x52ea0c[_0x4ef178(0xd8)]==_0x450b4c&&_0x52ea0c['key']===core_2[_0x4ef178(0x119)]&&(_0x52ea0c===null||_0x52ea0c===void 0x0?void 0x0:_0x52ea0c['metadata']));if(_0x45c8fb===null||_0x45c8fb===void 0x0?void 0x0:_0x45c8fb[_0x4ef178(0x109)]){let _0x32eb47=convertTypeToString(_0x45c8fb[_0x4ef178(0x109)][_0x4ef178(0xd0)]||0x0);if([_0x4ef178(0xe3),_0x4ef178(0x103)][_0x4ef178(0x116)](_0x32eb47)!=-0x1&&_0x45c8fb[_0x4ef178(0x109)][_0x4ef178(0xef)][_0x4ef178(0x116)](':')==-0x1&&!_0x15472f[_0x4ef178(0xf0)][_0x4ef178(0x107)](_0x47ac7e=>_0x47ac7e[_0x4ef178(0x11f)]==_0x45c8fb[_0x4ef178(0x109)][_0x4ef178(0xef)]))_0x15472f[_0x4ef178(0xf0)]['push']({'key':_0x45c8fb[_0x4ef178(0x109)][_0x4ef178(0xef)],'title':_0x45c8fb['metadata'][_0x4ef178(0xef)],'type':convertSchemaType(_0x3ba605[_0x45c8fb[_0x4ef178(0xd8)]]['name']),'required':![],'default':'','desc':''});else{if(_0x32eb47==_0x4ef178(0xf3)){let _0x37705a=((_0x4eaa5f=_0x45c8fb===null||_0x45c8fb===void 0x0?void 0x0:_0x45c8fb[_0x4ef178(0x109)])===null||_0x4eaa5f===void 0x0?void 0x0:_0x4eaa5f[_0x4ef178(0xef)])||'file';_0x37705a[_0x4ef178(0x116)](':')==-0x1&&!_0x15472f[_0x4ef178(0xf0)][_0x4ef178(0x107)](_0x40f53f=>_0x40f53f[_0x4ef178(0x11f)]==_0x37705a&&_0x40f53f['type']==_0x4ef178(0xf3))&&_0x15472f[_0x4ef178(0xf0)][_0x4ef178(0x10f)]({'key':_0x37705a,'title':_0x4ef178(0xc8)+_0x37705a,'type':_0x4ef178(0xf3),'required':!![],'default':'','desc':''});}}}else{const _0x1d8b6c=(0x0,core_3[_0x4ef178(0xc6)])(validator_1['RULES_KEY'],_0x3ba605[_0x450b4c]);_0x1d8b6c&&_0x15472f['request'][_0x4ef178(0x10f)](...getJoiRequest(_0x1d8b6c));}}}_0x17d6df['routes'][_0x4ef178(0x10f)](_0x15472f);}}if(_0x17d6df[_0x4ef178(0xc7)][_0x4ef178(0x111)]>0x0){let _0x17d9be=_0x573612[_0x174b31];_0x17d9be?(_0x17d9be[_0x4ef178(0xd1)]!=_0x17d6df['summary']&&(_0x17d9be[_0x4ef178(0xd1)]=_0x17d9be[_0x4ef178(0xd1)]+','+_0x17d6df[_0x4ef178(0xd1)]),_0x17d9be[_0x4ef178(0x100)]!=_0x17d6df['description']&&(_0x17d9be[_0x4ef178(0x100)]=_0x17d9be['description']+','+_0x17d6df[_0x4ef178(0x100)]),_0x17d9be[_0x4ef178(0xc7)]=_0x17d9be['routes'][_0x4ef178(0xec)](_0x17d6df[_0x4ef178(0xc7)]),_0x573612[_0x174b31]=_0x17d9be):_0x573612[_0x174b31]=_0x17d6df;}}}return _0x573612;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x3efe45){const _0x1522bb=a8_0x571b05,_0x1cf12f=[];for(let _0x5c155d in _0x3efe45){const _0x27a7c9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x55a0b7=typeof _0x3efe45[_0x5c155d]['describe']=='function'?_0x3efe45[_0x5c155d][_0x1522bb(0x11b)]():_0x3efe45[_0x5c155d];_0x27a7c9[_0x1522bb(0x11f)]=_0x5c155d,_0x27a7c9[_0x1522bb(0xd0)]=_0x55a0b7[_0x1522bb(0xd0)],_0x27a7c9['title']=(0x0,lodash_1[_0x1522bb(0x118)])(_0x55a0b7,'flags.label',_0x5c155d),_0x27a7c9[_0x1522bb(0xe9)]=(0x0,lodash_1[_0x1522bb(0x118)])(_0x55a0b7,_0x1522bb(0x114),''),_0x27a7c9[_0x1522bb(0x125)]=(0x0,lodash_1[_0x1522bb(0x118)])(_0x55a0b7,'flags.presence','')==_0x1522bb(0x125),_0x27a7c9[_0x1522bb(0x100)]=(0x0,lodash_1[_0x1522bb(0x118)])(_0x55a0b7,_0x1522bb(0xcb),'');if(_0x55a0b7[_0x1522bb(0xd0)]==_0x1522bb(0x10a))_0x27a7c9['children']=getJoiRequest(_0x55a0b7['keys']);else{if(_0x55a0b7[_0x1522bb(0xd0)]==_0x1522bb(0xd3)&&_0x55a0b7['items']&&Array[_0x1522bb(0xf7)](_0x55a0b7['items'])&&_0x55a0b7['items'][0x0]){}}_0x55a0b7[_0x1522bb(0xfd)]&&Array['isArray'](_0x55a0b7[_0x1522bb(0xfd)])&&_0x55a0b7[_0x1522bb(0xfd)][_0x1522bb(0x111)]>0x0&&(_0x27a7c9[_0x1522bb(0x100)]=_0x1522bb(0x106)+_0x55a0b7[_0x1522bb(0xfd)][_0x1522bb(0xdc)](',')+'];'+_0x27a7c9[_0x1522bb(0x100)]);if(_0x27a7c9[_0x1522bb(0x11f)]&&_0x27a7c9[_0x1522bb(0xd0)]){const _0x572a40={};for(const _0x593046 of _0x55a0b7[_0x1522bb(0xf5)]||[]){if(_0x593046[_0x1522bb(0xe5)]===_0x1522bb(0xca)&&_0x593046[_0x1522bb(0x122)])_0x572a40[_0x1522bb(0xca)]=_0x593046['args'][_0x1522bb(0xce)];else _0x593046[_0x1522bb(0xe5)]===_0x1522bb(0x101)&&(_0x572a40[_0x1522bb(0x101)]=_0x593046[_0x1522bb(0x122)][_0x1522bb(0xce)]);}_0x27a7c9[_0x1522bb(0xf5)]=_0x572a40;}_0x27a7c9[_0x1522bb(0x11f)]&&_0x27a7c9[_0x1522bb(0x10e)]&&_0x1cf12f[_0x1522bb(0x10f)](_0x27a7c9);}return _0x1cf12f;}function a8_0x1f68(){const _0x11c102=['@midwayjs/core','__esModule','concat','routerName','filepath','propertyData','request','7YYVIkK','function','file','toString','rules','lodash','isArray','apply','ACTION_KEY','6331440AMrTzA','HEADERS','BODY','allow','Object','569429MRHtWq','description','max','@anncic-api/validator','body','INJECT_CUSTOM_PARAM','QUERY','只允许:[','find','substring','metadata','object','../types/action','listModule','2054mvbHTm','title','push','RouteParamTypes','length','requestMethod','tagName','flags.default','routerOptions','indexOf','prefix','get','WEB_ROUTER_PARAM_KEY','395495hVjsrn','describe','20SAPDYG','pprefix','iterator','key','22utCCMo','FIELDS','args','path','endsWith','required','1731jwWtUY','string','Number','51070LDwqHN','replace','getClassExtendedMetadata','routes','文件上传-','intercept','min','flags.description','filter','test','limit','(((.+)+)+)+$','type','summary','module','array','ACTION_ROUTE_KEY','startsWith','number','17913516oWGjEn','parameterIndex','route','noreq','getClassMetadata','join','/static/apitest','File','1737YRLepp','8912024qEWRMr','String','header','query','FILESTREAM','name','method','defineProperty','getMethodParamTypes','default'];a8_0x1f68=function(){return _0x11c102;};return a8_0x1f68();}function convertSchemaType(_0x1e18f1){const _0x34bf2a=a8_0x571b05;switch(_0x1e18f1){case _0x34bf2a(0xfe):return'object';case'Boolean':return'boolean';case _0x34bf2a(0x128):return _0x34bf2a(0xd6);case _0x34bf2a(0xe1):return _0x34bf2a(0x127);case _0x34bf2a(0xde):return _0x34bf2a(0xf3);default:return _0x34bf2a(0x127);}}function convertTypeToString(_0x3dc2bd){const _0x305c64=a8_0x571b05;switch(_0x3dc2bd){case core_1[_0x305c64(0x110)][_0x305c64(0xfb)]:return _0x305c64(0xe2);case core_1['RouteParamTypes'][_0x305c64(0x105)]:return _0x305c64(0xe3);case core_1[_0x305c64(0x110)]['PARAM']:return'path';case core_1[_0x305c64(0x110)][_0x305c64(0xfc)]:return _0x305c64(0x103);case core_1[_0x305c64(0x110)][_0x305c64(0x121)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0x305c64(0x110)][_0x305c64(0xe4)]:return _0x305c64(0xf3);default:return _0x305c64(0xe2);}}
|
|
1
|
+
function a8_0x24db(){const _0x20cba1=['File','args','36kdkFSY','filepath','endsWith','2529TbhaAq','BODY','ACTION_KEY','只允许:[','routes','21375651rFiQNb','describe','name','metadata','getRoutes','isArray','__esModule','tagName','static/apitest','get','summary','array','/static/apitest','propertyData','lodash','number','min','492CMmUSl','HEADERS','INJECT_CUSTOM_PARAM','file','FILESTREAM','35katnrt','startsWith','parameterIndex','header','query','join','noreq','flags.label','default','(((.+)+)+)+$','routerName','substring','flags.description','iterator','2699841wqTOgh','request','description','59616jYlxPi','FIELDS','constructor','Boolean','function','RouteParamTypes','key','prefix','RULES_KEY','title','WEB_ROUTER_PARAM_KEY','body','indexOf','method','intercept','type','flags.presence','split','73895akIaNU','3148072RPSmhV','routerOptions','items','10710SucMAb','keys','limit','push','filter','required','43PFhigq','@anncic-api/validator','allow','pprefix','module','Number','956520VSbSGb','object','@midwayjs/core','PARAM','toString','max','FILESSTREAM','string','route','children','length'];a8_0x24db=function(){return _0x20cba1;};return a8_0x24db();}const a8_0x55fbee=a8_0x2dbb;(function(_0x556708,_0xa46a71){const _0x16e2c2=a8_0x2dbb,_0x3c25b6=_0x556708();while(!![]){try{const _0x5d1632=-parseInt(_0x16e2c2(0x1cb))/0x1*(parseInt(_0x16e2c2(0x1af))/0x2)+-parseInt(_0x16e2c2(0x20a))/0x3+-parseInt(_0x16e2c2(0x1c2))/0x4+parseInt(_0x16e2c2(0x1c1))/0x5*(-parseInt(_0x16e2c2(0x1f7))/0x6)+-parseInt(_0x16e2c2(0x1fc))/0x7*(parseInt(_0x16e2c2(0x1d1))/0x8)+-parseInt(_0x16e2c2(0x1e1))/0x9*(parseInt(_0x16e2c2(0x1c5))/0xa)+parseInt(_0x16e2c2(0x1e6))/0xb*(parseInt(_0x16e2c2(0x1de))/0xc);if(_0x5d1632===_0xa46a71)break;else _0x3c25b6['push'](_0x3c25b6['shift']());}catch(_0x26fd59){_0x3c25b6['push'](_0x3c25b6['shift']());}}}(a8_0x24db,0xb7318));const a8_0x2e964d=(function(){let _0x52f0e0=!![];return function(_0x16452,_0x57cea6){const _0x48d32c=_0x52f0e0?function(){if(_0x57cea6){const _0x36ba16=_0x57cea6['apply'](_0x16452,arguments);return _0x57cea6=null,_0x36ba16;}}:function(){};return _0x52f0e0=![],_0x48d32c;};}()),a8_0x1e4f3=a8_0x2e964d(this,function(){const _0x1e37cb=a8_0x2dbb;return a8_0x1e4f3[_0x1e37cb(0x1d5)]()['search'](_0x1e37cb(0x205))['toString']()[_0x1e37cb(0x1b1)](a8_0x1e4f3)['search'](_0x1e37cb(0x205));});a8_0x1e4f3();'use strict';Object['defineProperty'](exports,a8_0x55fbee(0x1ec),{'value':!![]}),exports[a8_0x55fbee(0x1ea)]=void 0x0;const lodash_1=require(a8_0x55fbee(0x1f4)),validator_1=require(a8_0x55fbee(0x1cc)),core_1=require(a8_0x55fbee(0x1d3)),core_2=require(a8_0x55fbee(0x1d3)),core_3=require(a8_0x55fbee(0x1d3)),action_1=require('../types/action');function getRoutes(_0x3242dd={'prefix':'/','module':![]}){const _0x413508=a8_0x55fbee;var _0x4a2e30,_0x217870;const _0x10cbae=(0x0,core_3['listModule'])(action_1[_0x413508(0x1e3)]),_0x26eab7={},_0x4e0f72=Array['isArray'](_0x3242dd[_0x413508(0x1c9)]||[])?_0x3242dd['filter']||[]:[_0x3242dd[_0x413508(0x1c9)]];_0x5b872f:for(const _0x1eecbf of _0x10cbae){let _0x455907=(0x0,core_3['getClassMetadata'])(action_1[_0x413508(0x1e3)],_0x1eecbf),_0x4b4d04=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x1eecbf);if(_0x455907&&_0x4b4d04){let _0x313cfd=_0x455907['prefix'],_0x265076={};if(_0x3242dd['module']&&(0x0,lodash_1[_0x413508(0x1ef)])(_0x455907,_0x413508(0x1cf),![])!=_0x3242dd['module'])continue _0x5b872f;else{if(_0x3242dd[_0x413508(0x1cf)]===![]&&!!(0x0,lodash_1[_0x413508(0x1ef)])(_0x455907,_0x413508(0x1cf),null))continue _0x5b872f;}if(_0x3242dd[_0x413508(0x1b6)]&&!_0x313cfd[_0x413508(0x1fd)](_0x3242dd[_0x413508(0x1b6)]))continue _0x5b872f;_0x313cfd!=='/'?(_0x265076['summary']=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1c3)][_0x413508(0x1ed)])||(/^\//['test'](_0x313cfd)?_0x313cfd[_0x413508(0x1c0)]('/')[0x1]:_0x313cfd),_0x265076['description']=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1c3)][_0x413508(0x20c)])||_0x265076[_0x413508(0x1f0)],_0x265076[_0x413508(0x1e5)]=[]):(_0x265076[_0x413508(0x1f0)]=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1c3)][_0x413508(0x1ed)])||_0x413508(0x204),_0x265076[_0x413508(0x20c)]=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907['routerOptions'][_0x413508(0x20c)])||'',_0x265076[_0x413508(0x1e5)]=[]);_0x3242dd[_0x413508(0x1df)]&&(_0x265076['filepath']=_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1df)]);(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907['pprefix'])&&(_0x265076['prefix']=_0x455907[_0x413508(0x1ce)]);(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907['module'])&&(_0x265076[_0x413508(0x1cf)]=_0x455907['module']);let _0x2d8e90=(0x0,core_3['getClassMetadata'])(core_2[_0x413508(0x1f9)],_0x1eecbf)||{};if(typeof _0x4b4d04[Symbol[_0x413508(0x209)]]===_0x413508(0x1b3))for(let _0x2440f3 of _0x4b4d04){if((_0x3242dd===null||_0x3242dd===void 0x0?void 0x0:_0x3242dd[_0x413508(0x1bd)])&&!(_0x2440f3===null||_0x2440f3===void 0x0?void 0x0:_0x2440f3[_0x413508(0x1bd)]))continue;let _0x2acb9b={};_0x2acb9b[_0x413508(0x1bc)]=_0x2440f3['requestMethod'],_0x2acb9b[_0x413508(0x1d9)]=(_0x313cfd+_0x2440f3['path'])['replace'](/\/{2,}/g,'/'),_0x2acb9b['summary']=(_0x2440f3===null||_0x2440f3===void 0x0?void 0x0:_0x2440f3[_0x413508(0x206)])||_0x265076['summary']||_0x413508(0x204),_0x2acb9b[_0x413508(0x20c)]=(_0x2440f3===null||_0x2440f3===void 0x0?void 0x0:_0x2440f3[_0x413508(0x20c)])||'',_0x2acb9b['request']=[];_0x2acb9b['route'][_0x413508(0x1e0)]('/')&&(_0x2acb9b[_0x413508(0x1d9)]=_0x2acb9b[_0x413508(0x1d9)][_0x413508(0x207)](0x0,_0x2acb9b[_0x413508(0x1d9)]['length']-0x1));if(!(0x0,lodash_1[_0x413508(0x1fd)])(_0x2acb9b[_0x413508(0x1d9)],_0x413508(0x1ee))&&!(0x0,lodash_1[_0x413508(0x1fd)])(_0x2acb9b['route'],_0x413508(0x1f2))&&_0x4e0f72[_0x413508(0x1bb)](_0x2acb9b['route'])===-0x1){if(!(_0x3242dd===null||_0x3242dd===void 0x0?void 0x0:_0x3242dd[_0x413508(0x202)])){let _0x388ad6=(0x0,core_3['getMethodParamTypes'])(new _0x1eecbf(),_0x2440f3[_0x413508(0x1bc)]);for(const _0x20de50 in _0x388ad6){let _0x2b5974=(_0x4a2e30=_0x2d8e90[_0x2440f3['method']])===null||_0x4a2e30===void 0x0?void 0x0:_0x4a2e30['find'](_0x5c9f0f=>_0x5c9f0f[_0x413508(0x1fe)]==_0x20de50&&_0x5c9f0f[_0x413508(0x1b5)]===core_2[_0x413508(0x1b9)]&&(_0x5c9f0f===null||_0x5c9f0f===void 0x0?void 0x0:_0x5c9f0f['metadata']));if(_0x2b5974===null||_0x2b5974===void 0x0?void 0x0:_0x2b5974['metadata']){let _0x18f683=convertTypeToString(_0x2b5974[_0x413508(0x1e9)]['type']||0x0);if([_0x413508(0x200),_0x413508(0x1ba)][_0x413508(0x1bb)](_0x18f683)!=-0x1&&_0x2b5974['metadata'][_0x413508(0x1f3)][_0x413508(0x1bb)](':')==-0x1&&!_0x2acb9b[_0x413508(0x20b)]['find'](_0x25ff73=>_0x25ff73['key']==_0x2b5974[_0x413508(0x1e9)][_0x413508(0x1f3)]))_0x2acb9b[_0x413508(0x20b)]['push']({'key':_0x2b5974[_0x413508(0x1e9)]['propertyData'],'title':_0x2b5974[_0x413508(0x1e9)][_0x413508(0x1f3)],'type':convertSchemaType(_0x388ad6[_0x2b5974[_0x413508(0x1fe)]][_0x413508(0x1e8)]),'required':![],'default':'','desc':''});else{if(_0x18f683==_0x413508(0x1fa)){let _0x423569=((_0x217870=_0x2b5974===null||_0x2b5974===void 0x0?void 0x0:_0x2b5974['metadata'])===null||_0x217870===void 0x0?void 0x0:_0x217870[_0x413508(0x1f3)])||'file';_0x423569['indexOf'](':')==-0x1&&!_0x2acb9b['request']['find'](_0x268bf7=>_0x268bf7[_0x413508(0x1b5)]==_0x423569&&_0x268bf7[_0x413508(0x1be)]==_0x413508(0x1fa))&&_0x2acb9b[_0x413508(0x20b)][_0x413508(0x1c8)]({'key':_0x423569,'title':'文件上传-'+_0x423569,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x21dd90=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x413508(0x1b7)],_0x388ad6[_0x20de50]);_0x21dd90&&_0x2acb9b['request'][_0x413508(0x1c8)](...getJoiRequest(_0x21dd90));}}}_0x265076['routes'][_0x413508(0x1c8)](_0x2acb9b);}}if(_0x265076[_0x413508(0x1e5)][_0x413508(0x1db)]>0x0){let _0x507fd1=_0x26eab7[_0x313cfd];_0x507fd1?(_0x507fd1[_0x413508(0x1f0)]!=_0x265076[_0x413508(0x1f0)]&&(_0x507fd1[_0x413508(0x1f0)]=_0x507fd1[_0x413508(0x1f0)]+','+_0x265076[_0x413508(0x1f0)]),_0x507fd1['description']!=_0x265076[_0x413508(0x20c)]&&(_0x507fd1[_0x413508(0x20c)]=_0x507fd1[_0x413508(0x20c)]+','+_0x265076[_0x413508(0x20c)]),_0x507fd1[_0x413508(0x1e5)]=_0x507fd1[_0x413508(0x1e5)]['concat'](_0x265076[_0x413508(0x1e5)]),_0x26eab7[_0x313cfd]=_0x507fd1):_0x26eab7[_0x313cfd]=_0x265076;}}}return _0x26eab7;}exports[a8_0x55fbee(0x1ea)]=getRoutes;function getJoiRequest(_0x291d2d){const _0x2727ef=a8_0x55fbee,_0x1ef85e=[];for(let _0x584cc2 in _0x291d2d){const _0x166e0d={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1a0aad=typeof _0x291d2d[_0x584cc2][_0x2727ef(0x1e7)]==_0x2727ef(0x1b3)?_0x291d2d[_0x584cc2][_0x2727ef(0x1e7)]():_0x291d2d[_0x584cc2];_0x166e0d['key']=_0x584cc2,_0x166e0d['type']=_0x1a0aad['type'],_0x166e0d['title']=(0x0,lodash_1[_0x2727ef(0x1ef)])(_0x1a0aad,_0x2727ef(0x203),_0x584cc2),_0x166e0d[_0x2727ef(0x204)]=(0x0,lodash_1[_0x2727ef(0x1ef)])(_0x1a0aad,'flags.default',''),_0x166e0d[_0x2727ef(0x1ca)]=(0x0,lodash_1[_0x2727ef(0x1ef)])(_0x1a0aad,_0x2727ef(0x1bf),'')==_0x2727ef(0x1ca),_0x166e0d[_0x2727ef(0x20c)]=(0x0,lodash_1['get'])(_0x1a0aad,_0x2727ef(0x208),'');if(_0x1a0aad[_0x2727ef(0x1be)]==_0x2727ef(0x1d2))_0x166e0d[_0x2727ef(0x1da)]=getJoiRequest(_0x1a0aad[_0x2727ef(0x1c6)]);else{if(_0x1a0aad[_0x2727ef(0x1be)]==_0x2727ef(0x1f1)&&_0x1a0aad[_0x2727ef(0x1c4)]&&Array[_0x2727ef(0x1eb)](_0x1a0aad['items'])&&_0x1a0aad['items'][0x0]){}}_0x1a0aad['allow']&&Array['isArray'](_0x1a0aad[_0x2727ef(0x1cd)])&&_0x1a0aad[_0x2727ef(0x1cd)][_0x2727ef(0x1db)]>0x0&&(_0x166e0d[_0x2727ef(0x20c)]=_0x2727ef(0x1e4)+_0x1a0aad[_0x2727ef(0x1cd)][_0x2727ef(0x201)](',')+'];'+_0x166e0d[_0x2727ef(0x20c)]);if(_0x166e0d[_0x2727ef(0x1b5)]&&_0x166e0d[_0x2727ef(0x1be)]){const _0x269233={};for(const _0x3e23a1 of _0x1a0aad['rules']||[]){if(_0x3e23a1[_0x2727ef(0x1e8)]===_0x2727ef(0x1f6)&&_0x3e23a1[_0x2727ef(0x1dd)])_0x269233['min']=_0x3e23a1[_0x2727ef(0x1dd)][_0x2727ef(0x1c7)];else _0x3e23a1['name']===_0x2727ef(0x1d6)&&(_0x269233[_0x2727ef(0x1d6)]=_0x3e23a1[_0x2727ef(0x1dd)][_0x2727ef(0x1c7)]);}_0x166e0d['rules']=_0x269233;}_0x166e0d[_0x2727ef(0x1b5)]&&_0x166e0d[_0x2727ef(0x1b8)]&&_0x1ef85e[_0x2727ef(0x1c8)](_0x166e0d);}return _0x1ef85e;}function convertSchemaType(_0x4a1eb6){const _0x5210b3=a8_0x55fbee;switch(_0x4a1eb6){case'Object':return'object';case _0x5210b3(0x1b2):return'boolean';case _0x5210b3(0x1d0):return _0x5210b3(0x1f5);case'String':return'string';case _0x5210b3(0x1dc):return _0x5210b3(0x1fa);default:return _0x5210b3(0x1d8);}}function a8_0x2dbb(_0x195f67,_0x23996f){const _0x82563a=a8_0x24db();return a8_0x2dbb=function(_0x1e4f3,_0x2e964d){_0x1e4f3=_0x1e4f3-0x1af;let _0x24dbb6=_0x82563a[_0x1e4f3];return _0x24dbb6;},a8_0x2dbb(_0x195f67,_0x23996f);}function convertTypeToString(_0x371f64){const _0x3c1973=a8_0x55fbee;switch(_0x371f64){case core_1['RouteParamTypes'][_0x3c1973(0x1f8)]:return _0x3c1973(0x1ff);case core_1[_0x3c1973(0x1b4)]['QUERY']:return _0x3c1973(0x200);case core_1['RouteParamTypes'][_0x3c1973(0x1d4)]:return'path';case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1e2)]:return _0x3c1973(0x1ba);case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1b0)]:case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1d7)]:case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1fb)]:return _0x3c1973(0x1fa);default:return _0x3c1973(0x1ff);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x4ee8d7=a9_0x191e;(function(_0x88b378,_0x36c08f){var _0x12db02=a9_0x191e,_0x346414=_0x88b378();while(!![]){try{var _0x24b62c=parseInt(_0x12db02(0x1a9))/0x1+-parseInt(_0x12db02(0x1b3))/0x2*(-parseInt(_0x12db02(0x1a5))/0x3)+-parseInt(_0x12db02(0x196))/0x4+parseInt(_0x12db02(0x1a1))/0x5*(-parseInt(_0x12db02(0x19c))/0x6)+parseInt(_0x12db02(0x19e))/0x7*(-parseInt(_0x12db02(0x1c4))/0x8)+parseInt(_0x12db02(0x1c1))/0x9*(parseInt(_0x12db02(0x1b7))/0xa)+parseInt(_0x12db02(0x1bc))/0xb;if(_0x24b62c===_0x36c08f)break;else _0x346414['push'](_0x346414['shift']());}catch(_0x24451e){_0x346414['push'](_0x346414['shift']());}}}(a9_0x4327,0x3dfd3));var a9_0x405c13=(function(){var _0x47434e=!![];return function(_0x5af41d,_0x490a9b){var _0x5b5329=_0x47434e?function(){var _0x2d442a=a9_0x191e;if(_0x490a9b){var _0x3c0b84=_0x490a9b[_0x2d442a(0x194)](_0x5af41d,arguments);return _0x490a9b=null,_0x3c0b84;}}:function(){};return _0x47434e=![],_0x5b5329;};}()),a9_0x3ff071=a9_0x405c13(this,function(){var _0x113252=a9_0x191e;return a9_0x3ff071[_0x113252(0x1a2)]()[_0x113252(0x1b4)](_0x113252(0x1a8))[_0x113252(0x1a2)]()[_0x113252(0x188)](a9_0x3ff071)[_0x113252(0x1b4)]('(((.+)+)+)+$');});a9_0x3ff071();'use strict';var __createBinding=this&&this[a9_0x4ee8d7(0x19d)]||(Object[a9_0x4ee8d7(0x18d)]?function(_0x24e4a7,_0x205dfd,_0x39b0a4,_0x243b04){var _0x585b75=a9_0x4ee8d7;if(_0x243b04===undefined)_0x243b04=_0x39b0a4;var _0x2d68e4=Object[_0x585b75(0x193)](_0x205dfd,_0x39b0a4);(!_0x2d68e4||(_0x585b75(0x1aa)in _0x2d68e4?!_0x205dfd['__esModule']:_0x2d68e4[_0x585b75(0x1a4)]||_0x2d68e4[_0x585b75(0x191)]))&&(_0x2d68e4={'enumerable':!![],'get':function(){return _0x205dfd[_0x39b0a4];}}),Object[_0x585b75(0x18e)](_0x24e4a7,_0x243b04,_0x2d68e4);}:function(_0xbb8db8,_0x1fb6d2,_0xa5fe49,_0x1ee20c){if(_0x1ee20c===undefined)_0x1ee20c=_0xa5fe49;_0xbb8db8[_0x1ee20c]=_0x1fb6d2[_0xa5fe49];}),__exportStar=this&&this[a9_0x4ee8d7(0x1a0)]||function(_0x13f79b,_0x4c3a60){var _0x470604=a9_0x4ee8d7;for(var _0x1303d0 in _0x13f79b)if(_0x1303d0!==_0x470604(0x198)&&!Object[_0x470604(0x189)][_0x470604(0x1bb)][_0x470604(0x187)](_0x4c3a60,_0x1303d0))__createBinding(_0x4c3a60,_0x13f79b,_0x1303d0);};Object['defineProperty'](exports,a9_0x4ee8d7(0x1ab),{'value':!![]}),exports[a9_0x4ee8d7(0x18a)]=exports[a9_0x4ee8d7(0x1c3)]=exports['Singleton']=exports[a9_0x4ee8d7(0x1c5)]=exports['Inject']=exports[a9_0x4ee8d7(0x197)]=exports[a9_0x4ee8d7(0x1ae)]=exports[a9_0x4ee8d7(0x1b6)]=exports[a9_0x4ee8d7(0x199)]=exports[a9_0x4ee8d7(0x18c)]=exports[a9_0x4ee8d7(0x1b5)]=exports[a9_0x4ee8d7(0x19f)]=exports[a9_0x4ee8d7(0x1bf)]=exports[a9_0x4ee8d7(0x1a6)]=exports['Fields']=exports[a9_0x4ee8d7(0x195)]=exports[a9_0x4ee8d7(0x1c6)]=exports[a9_0x4ee8d7(0x1be)]=exports[a9_0x4ee8d7(0x1b2)]=exports['ValidatorError']=exports[a9_0x4ee8d7(0x1c8)]=exports[a9_0x4ee8d7(0x1b0)]=exports[a9_0x4ee8d7(0x1ad)]=exports[a9_0x4ee8d7(0x192)]=exports['ApiError']=exports['getRoutes']=exports['IIntercept']=exports['Intercept']=exports[a9_0x4ee8d7(0x19a)]=exports[a9_0x4ee8d7(0x1b8)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x4ee8d7(0x18e)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x4ee8d7(0x18f)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require('./decorator/Action');Object[a9_0x4ee8d7(0x18e)](exports,'Action',{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x4ee8d7(0x18b));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x19a),{'enumerable':!![],'get':function(){var _0x9e1334=a9_0x4ee8d7;return ActionApitest_1[_0x9e1334(0x19a)];}});var Intercept_1=require(a9_0x4ee8d7(0x1b1));Object[a9_0x4ee8d7(0x18e)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x330f8f=a9_0x4ee8d7;return Intercept_1[_0x330f8f(0x1ac)];}}),Object[a9_0x4ee8d7(0x18e)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x32ce51=a9_0x4ee8d7;return Intercept_1[_0x32ce51(0x190)];}});var getRoutes_1=require(a9_0x4ee8d7(0x19b));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1a7),{'enumerable':!![],'get':function(){var _0x47cb66=a9_0x4ee8d7;return getRoutes_1[_0x47cb66(0x1a7)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1c2),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a9_0x4ee8d7(0x1ba));Object['defineProperty'](exports,a9_0x4ee8d7(0x192),{'enumerable':!![],'get':function(){var _0xc850bd=a9_0x4ee8d7;return cache_1[_0xc850bd(0x192)];}});var event_1=require('@anncic-api/event');Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1ad),{'enumerable':!![],'get':function(){var _0x3d5476=a9_0x4ee8d7;return event_1[_0x3d5476(0x1ad)];}});var ApiService_1=require(a9_0x4ee8d7(0x1a3));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b0),{'enumerable':!![],'get':function(){var _0x14dbd2=a9_0x4ee8d7;return ApiService_1[_0x14dbd2(0x1b0)];}});var ExcelService_1=require(a9_0x4ee8d7(0x1af));Object['defineProperty'](exports,a9_0x4ee8d7(0x1c8),{'enumerable':!![],'get':function(){var _0x3f0829=a9_0x4ee8d7;return ExcelService_1[_0x3f0829(0x1c8)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x4ee8d7(0x18e)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x1c6cf3=a9_0x4ee8d7;return validator_1[_0x1c6cf3(0x1bd)];}}),Object['defineProperty'](exports,a9_0x4ee8d7(0x1b2),{'enumerable':!![],'get':function(){var _0x5bc1bf=a9_0x4ee8d7;return validator_1[_0x5bc1bf(0x1b2)];}});var configuration_1=require(a9_0x4ee8d7(0x1c7));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x4ee8d7(0x1c0));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1c6),{'enumerable':!![],'get':function(){var _0x43d70f=a9_0x4ee8d7;return core_1[_0x43d70f(0x1c6)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x195),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x4ee8d7(0x18e)](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1a6),{'enumerable':!![],'get':function(){var _0xc7ef6a=a9_0x4ee8d7;return core_1[_0xc7ef6a(0x1a6)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1bf),{'enumerable':!![],'get':function(){var _0x4d45c6=a9_0x4ee8d7;return core_1[_0x4d45c6(0x1bf)];}}),Object[a9_0x4ee8d7(0x18e)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b5),{'enumerable':!![],'get':function(){var _0x31e72c=a9_0x4ee8d7;return core_1[_0x31e72c(0x1b5)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x18c),{'enumerable':!![],'get':function(){var _0x4b347b=a9_0x4ee8d7;return core_1[_0x4b347b(0x18c)];}});var core_2=require(a9_0x4ee8d7(0x1c0));function a9_0x191e(_0x3c706b,_0x4ffa83){var _0x441d4d=a9_0x4327();return a9_0x191e=function(_0x3ff071,_0x405c13){_0x3ff071=_0x3ff071-0x187;var _0x4327cf=_0x441d4d[_0x3ff071];return _0x4327cf;},a9_0x191e(_0x3c706b,_0x4ffa83);}function a9_0x4327(){var _0x2ddfde=['./types/common','IIntercept','configurable','CacheService','getOwnPropertyDescriptor','apply','Files','1417076CqLNDr','Provide','default','App','Apitest','./helper/getRoutes','90rIbAXP','__createBinding','2009qHJVZR','Query','__exportStar','137285ywVMOq','toString','./service/ApiService','writable','211377owOoyC','Body','getRoutes','(((.+)+)+)+$','87221zfOHTO','get','__esModule','Intercept','EventService','Logger','./service/ExcelService','ApiService','./decorator/Intercept','ValidatorService','2AXogom','search','Headers','Config','70IuIRru','Action','Singleton','@anncic-api/cache','hasOwnProperty','7638785FPJnyX','ValidatorError','Configuration','Param','@midwayjs/core','450207GZskxK','ApiError','ScopeEnum','5080lZJWZV','Scope','File','./configuration','ExcelService','call','constructor','prototype','getAppsConfig','./decorator/ActionApitest','Init','create','defineProperty'];a9_0x4327=function(){return _0x2ddfde;};return a9_0x4327();}Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x199),{'enumerable':!![],'get':function(){var _0x4f45e5=a9_0x4ee8d7;return core_2[_0x4f45e5(0x199)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b6),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1ae),{'enumerable':!![],'get':function(){var _0x5835ab=a9_0x4ee8d7;return core_2[_0x5835ab(0x1ae)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x197),{'enumerable':!![],'get':function(){var _0xe9e71f=a9_0x4ee8d7;return core_2[_0xe9e71f(0x197)];}}),Object[a9_0x4ee8d7(0x18e)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x5ad3ae=a9_0x4ee8d7;return core_2[_0x5ad3ae(0x1c5)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b9),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1c3),{'enumerable':!![],'get':function(){var _0x1f565c=a9_0x4ee8d7;return core_2[_0x1f565c(0x1c3)];}}),global[a9_0x4ee8d7(0x18a)]=getAppsConfig_1[a9_0x4ee8d7(0x18a)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x5f03(){var _0x5122bf=['substring','defineProperty','../exception/ApiError','ScopeEnum','metadata','search','getsign','padEnd','constructor','design:type','__decorate','MD5','timeout','128GsIvbO','(((.+)+)+)+$','Singleton','570436CXRpCy','461670vtBhgs','object','getcheck','logintime','device','ApiService','map','Scope','验证失败','HEADERS_DEVICE','password','sort','请求超时,请重试或改善网络环境','__esModule','join','prototype','getOwnPropertyDescriptor','toLowerCase','entries','requesttime','undefined','devices','1128LLkXXE','now','fromEntries','@midwayjs/core','toString','Config','__metadata','ApiError','config','checkcode','HEADERS_CHECKCODE','anncicapi','crypto-js','function','198252LDvljr','decorate','14lIYVtK','360705Mjrsrg','push','abs','length','signature','token','1922GiPGlf','828138vkMMCS','202886WVJweK'];a10_0x5f03=function(){return _0x5122bf;};return a10_0x5f03();}var a10_0x55fc72=a10_0x26ca;(function(_0x539a40,_0x48485d){var _0x381569=a10_0x26ca,_0x328a66=_0x539a40();while(!![]){try{var _0x4e53aa=-parseInt(_0x381569(0x1cc))/0x1+-parseInt(_0x381569(0x1ca))/0x2*(parseInt(_0x381569(0x1b3))/0x3)+parseInt(_0x381569(0x1dd))/0x4+-parseInt(_0x381569(0x1c4))/0x5+parseInt(_0x381569(0x1cb))/0x6*(parseInt(_0x381569(0x1c3))/0x7)+parseInt(_0x381569(0x1da))/0x8*(parseInt(_0x381569(0x1c1))/0x9)+parseInt(_0x381569(0x1de))/0xa;if(_0x4e53aa===_0x48485d)break;else _0x328a66['push'](_0x328a66['shift']());}catch(_0x4571d7){_0x328a66['push'](_0x328a66['shift']());}}}(a10_0x5f03,0x2c2ab));var a10_0x3439f7=(function(){var _0x1746c1=!![];return function(_0x3f0470,_0x1fe02d){var _0x3c0d0c=_0x1746c1?function(){if(_0x1fe02d){var _0x3bc09b=_0x1fe02d['apply'](_0x3f0470,arguments);return _0x1fe02d=null,_0x3bc09b;}}:function(){};return _0x1746c1=![],_0x3c0d0c;};}()),a10_0x3a41f5=a10_0x3439f7(this,function(){var _0x2b191b=a10_0x26ca;return a10_0x3a41f5['toString']()['search'](_0x2b191b(0x1db))[_0x2b191b(0x1b7)]()[_0x2b191b(0x1d5)](a10_0x3a41f5)[_0x2b191b(0x1d2)](_0x2b191b(0x1db));});function a10_0x26ca(_0x1e0d41,_0x4a248e){var _0x543fe4=a10_0x5f03();return a10_0x26ca=function(_0x3a41f5,_0x3439f7){_0x3a41f5=_0x3a41f5-0x1a6;var _0x5f0333=_0x543fe4[_0x3a41f5];return _0x5f0333;},a10_0x26ca(_0x1e0d41,_0x4a248e);}a10_0x3a41f5();'use strict';var __decorate=this&&this[a10_0x55fc72(0x1d7)]||function(_0x28854b,_0x4989d4,_0x38036c,_0x132ae6){var _0x2b1d39=a10_0x55fc72,_0x28c0be=arguments['length'],_0x838bd8=_0x28c0be<0x3?_0x4989d4:_0x132ae6===null?_0x132ae6=Object[_0x2b1d39(0x1ad)](_0x4989d4,_0x38036c):_0x132ae6,_0x364885;if(typeof Reflect===_0x2b1d39(0x1df)&&typeof Reflect[_0x2b1d39(0x1c2)]===_0x2b1d39(0x1c0))_0x838bd8=Reflect[_0x2b1d39(0x1c2)](_0x28854b,_0x4989d4,_0x38036c,_0x132ae6);else{for(var _0x3dc10f=_0x28854b[_0x2b1d39(0x1c7)]-0x1;_0x3dc10f>=0x0;_0x3dc10f--)if(_0x364885=_0x28854b[_0x3dc10f])_0x838bd8=(_0x28c0be<0x3?_0x364885(_0x838bd8):_0x28c0be>0x3?_0x364885(_0x4989d4,_0x38036c,_0x838bd8):_0x364885(_0x4989d4,_0x38036c))||_0x838bd8;}return _0x28c0be>0x3&&_0x838bd8&&Object['defineProperty'](_0x4989d4,_0x38036c,_0x838bd8),_0x838bd8;},__metadata=this&&this[a10_0x55fc72(0x1b9)]||function(_0x597721,_0x2ad330){var _0x18744d=a10_0x55fc72;if(typeof Reflect==='object'&&typeof Reflect[_0x18744d(0x1d1)]===_0x18744d(0x1c0))return Reflect[_0x18744d(0x1d1)](_0x597721,_0x2ad330);};Object[a10_0x55fc72(0x1ce)](exports,a10_0x55fc72(0x1aa),{'value':!![]}),exports[a10_0x55fc72(0x1e3)]=void 0x0;const crypto_js_1=require(a10_0x55fc72(0x1bf)),core_1=require(a10_0x55fc72(0x1b6)),ApiError_1=require(a10_0x55fc72(0x1cf));let ApiService=exports['ApiService']=class ApiService{[a10_0x55fc72(0x1a7)](_0x3dd4c6){var _0x377ddd=a10_0x55fc72,_0x1db35f;return _0x3dd4c6?(0x0,crypto_js_1[_0x377ddd(0x1d8)])(''+_0x3dd4c6+(0x0,crypto_js_1[_0x377ddd(0x1d8)])((0x0,crypto_js_1[_0x377ddd(0x1d8)])(''+_0x3dd4c6)[_0x377ddd(0x1b7)]()+(''+((_0x1db35f=this['config'])===null||_0x1db35f===void 0x0?void 0x0:_0x1db35f['password'])))[_0x377ddd(0x1b7)]())[_0x377ddd(0x1b7)]():'';}[a10_0x55fc72(0x1e0)](_0x551843,_0x8f4416,_0x23ef2b=Date[a10_0x55fc72(0x1b4)]()){return{'Token':_0x551843,'Logintime':_0x23ef2b,'Checkcode':this['checkcode'](_0x551843,_0x8f4416,_0x23ef2b)};}['getsign'](_0x28f095={}){var _0x47cd81=a10_0x55fc72,_0x5576dc,_0x23ae70;const _0xa34d5f=[],_0x2c10a2=Object['fromEntries'](Object['entries'](_0x28f095)['map'](_0xdb0c2b=>[_0xdb0c2b[0x0]['toLowerCase'](),_0xdb0c2b[0x1]]));for(let _0x5527ac of['device',_0x47cd81(0x1b0),_0x47cd81(0x1c9),_0x47cd81(0x1e1),_0x47cd81(0x1bc)]){if(typeof _0x2c10a2[_0x5527ac]==_0x47cd81(0x1b1))throw new AnnError(ApiError_1[_0x47cd81(0x1ba)]['HEADERS_LACK'],{'message':'验证失败'});_0xa34d5f[_0x47cd81(0x1c5)](_0x5527ac+'='+_0x2c10a2[_0x5527ac]);}_0x2c10a2[_0x47cd81(0x1b0)]&&((_0x5576dc=_0x2c10a2['requesttime'])===null||_0x5576dc===void 0x0?void 0x0:_0x5576dc[_0x47cd81(0x1c7)])==0xa&&(_0x2c10a2[_0x47cd81(0x1b0)]=_0x2c10a2[_0x47cd81(0x1b0)]*0x3e8);if(this[_0x47cd81(0x1bb)][_0x47cd81(0x1d9)]&&parseInt((''+Date[_0x47cd81(0x1b4)]())['substring'](0x0,0xd)[_0x47cd81(0x1d4)](0xd,'0'))-parseInt((''+Math[_0x47cd81(0x1c6)](_0x2c10a2['requesttime']))[_0x47cd81(0x1cd)](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this[_0x47cd81(0x1bb)][_0x47cd81(0x1d9)]))throw new AnnError(ApiError_1[_0x47cd81(0x1ba)]['TIMEOUT'],{'message':_0x47cd81(0x1a9),'requesttime':_0x2c10a2['requesttime'],'timestamp':Date[_0x47cd81(0x1b4)]()});if((((_0x23ae70=this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]])===null||_0x23ae70===void 0x0?void 0x0:_0x23ae70['logintimeout'])||0x0)>0x0&&Date[_0x47cd81(0x1b4)]()-Math[_0x47cd81(0x1c6)](_0x2c10a2[_0x47cd81(0x1e1)])>this['config'][_0x47cd81(0x1b2)][_0x2c10a2['device']]['logintimeout'])throw new AnnError(ApiError_1[_0x47cd81(0x1ba)]['TIMEOUT_LOGINTIME']);if(!this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]]||!this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]]['secret']||!this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]][_0x47cd81(0x1bc)])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x2c10a2[_0x47cd81(0x1c9)]&&_0x2c10a2[_0x47cd81(0x1bc)]!=this[_0x47cd81(0x1bc)](_0x2c10a2[_0x47cd81(0x1c9)],_0x2c10a2[_0x47cd81(0x1e2)],_0x2c10a2[_0x47cd81(0x1e1)]))throw new AnnError(ApiError_1[_0x47cd81(0x1ba)][_0x47cd81(0x1bd)]);return _0xa34d5f[_0x47cd81(0x1c5)]('secret='+this[_0x47cd81(0x1bb)]['devices'][_0x2c10a2[_0x47cd81(0x1e2)]]['secret']),(0x0,crypto_js_1[_0x47cd81(0x1d8)])(_0xa34d5f[_0x47cd81(0x1a8)]()[_0x47cd81(0x1ab)](''))[_0x47cd81(0x1b7)]();}['checkcode'](_0x10c953,_0x37cdbf,_0x5d4cd1=Date[a10_0x55fc72(0x1b4)]()){var _0x6f97dc=a10_0x55fc72,_0x4133c5,_0x38ff45,_0xc14c6;if(!((_0x4133c5=this[_0x6f97dc(0x1bb)])===null||_0x4133c5===void 0x0?void 0x0:_0x4133c5[_0x6f97dc(0x1b2)][_0x37cdbf])||!((_0xc14c6=(_0x38ff45=this[_0x6f97dc(0x1bb)])===null||_0x38ff45===void 0x0?void 0x0:_0x38ff45[_0x6f97dc(0x1b2)][_0x37cdbf])===null||_0xc14c6===void 0x0?void 0x0:_0xc14c6['checkcode']))throw new AnnError(ApiError_1[_0x6f97dc(0x1ba)][_0x6f97dc(0x1a6)]);return(0x0,crypto_js_1[_0x6f97dc(0x1d8)])(''+_0x10c953+(0x0,crypto_js_1['MD5'])(''+_0x5d4cd1+(''+this[_0x6f97dc(0x1bb)]['devices'][_0x37cdbf][_0x6f97dc(0x1bc)]))[_0x6f97dc(0x1b7)]())[_0x6f97dc(0x1b7)]();}['checksign'](_0x3298bd={}){var _0xcce5d4=a10_0x55fc72;const _0x21d32b=Object[_0xcce5d4(0x1b5)](Object[_0xcce5d4(0x1af)](_0x3298bd)[_0xcce5d4(0x1e4)](_0x4bea8d=>[_0x4bea8d[0x0][_0xcce5d4(0x1ae)](),_0x4bea8d[0x1]]));if(!(_0x21d32b===null||_0x21d32b===void 0x0?void 0x0:_0x21d32b[_0xcce5d4(0x1c8)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0xcce5d4(0x1e6)});if((_0x21d32b===null||_0x21d32b===void 0x0?void 0x0:_0x21d32b[_0xcce5d4(0x1c8)])!=this[_0xcce5d4(0x1d3)](_0x21d32b))throw new AnnError(ApiError_1[_0xcce5d4(0x1ba)]['HEADERS_SIGNATURE'],{'message':'验证失败'});return!![];}};__decorate([(0x0,core_1[a10_0x55fc72(0x1b8)])(a10_0x55fc72(0x1be)),__metadata(a10_0x55fc72(0x1d6),Object)],ApiService[a10_0x55fc72(0x1ac)],'config',void 0x0),exports[a10_0x55fc72(0x1e3)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x55fc72(0x1e5)])(core_1[a10_0x55fc72(0x1d0)][a10_0x55fc72(0x1dc)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x25c977=a11_0x3037;(function(_0x1ad6c0,_0x3b98e3){const _0x12e747=a11_0x3037,_0x2cb841=_0x1ad6c0();while(!![]){try{const _0xf1fb9f=parseInt(_0x12e747(0x15b))/0x1+parseInt(_0x12e747(0x122))/0x2*(-parseInt(_0x12e747(0x135))/0x3)+-parseInt(_0x12e747(0x174))/0x4+-parseInt(_0x12e747(0x133))/0x5+-parseInt(_0x12e747(0x123))/0x6+parseInt(_0x12e747(0x168))/0x7*(-parseInt(_0x12e747(0x147))/0x8)+parseInt(_0x12e747(0x12b))/0x9*(parseInt(_0x12e747(0x155))/0xa);if(_0xf1fb9f===_0x3b98e3)break;else _0x2cb841['push'](_0x2cb841['shift']());}catch(_0x37074c){_0x2cb841['push'](_0x2cb841['shift']());}}}(a11_0xc3b5,0xcbea9));const a11_0x448933=(function(){let _0x29c71a=!![];return function(_0x4e368b,_0x15be0f){const _0x1ade15=_0x29c71a?function(){if(_0x15be0f){const _0x24686a=_0x15be0f['apply'](_0x4e368b,arguments);return _0x15be0f=null,_0x24686a;}}:function(){};return _0x29c71a=![],_0x1ade15;};}()),a11_0x509f9d=a11_0x448933(this,function(){const _0xd2c16d=a11_0x3037;return a11_0x509f9d[_0xd2c16d(0x165)]()[_0xd2c16d(0x149)](_0xd2c16d(0x16a))[_0xd2c16d(0x165)]()[_0xd2c16d(0x141)](a11_0x509f9d)['search']('(((.+)+)+)+$');});a11_0x509f9d();'use strict';var __decorate=this&&this[a11_0x25c977(0x171)]||function(_0x433875,_0x54b499,_0x5e156c,_0x1921c4){const _0x35f747=a11_0x25c977;var _0x46f2f2=arguments[_0x35f747(0x13e)],_0x231055=_0x46f2f2<0x3?_0x54b499:_0x1921c4===null?_0x1921c4=Object[_0x35f747(0x16e)](_0x54b499,_0x5e156c):_0x1921c4,_0x3b833c;if(typeof Reflect===_0x35f747(0x136)&&typeof Reflect[_0x35f747(0x125)]===_0x35f747(0x157))_0x231055=Reflect[_0x35f747(0x125)](_0x433875,_0x54b499,_0x5e156c,_0x1921c4);else{for(var _0x185213=_0x433875[_0x35f747(0x13e)]-0x1;_0x185213>=0x0;_0x185213--)if(_0x3b833c=_0x433875[_0x185213])_0x231055=(_0x46f2f2<0x3?_0x3b833c(_0x231055):_0x46f2f2>0x3?_0x3b833c(_0x54b499,_0x5e156c,_0x231055):_0x3b833c(_0x54b499,_0x5e156c))||_0x231055;}return _0x46f2f2>0x3&&_0x231055&&Object['defineProperty'](_0x54b499,_0x5e156c,_0x231055),_0x231055;},__metadata=this&&this['__metadata']||function(_0x33ebef,_0x525923){const _0x14317e=a11_0x25c977;if(typeof Reflect==='object'&&typeof Reflect[_0x14317e(0x138)]===_0x14317e(0x157))return Reflect[_0x14317e(0x138)](_0x33ebef,_0x525923);},__param=this&&this[a11_0x25c977(0x154)]||function(_0x491d09,_0x10b62c){return function(_0x448082,_0x21fe7d){_0x10b62c(_0x448082,_0x21fe7d,_0x491d09);};};Object[a11_0x25c977(0x143)](exports,a11_0x25c977(0x163),{'value':!![]}),exports[a11_0x25c977(0x156)]=exports[a11_0x25c977(0x14d)]=void 0x0;const path_1=require(a11_0x25c977(0x15d)),fs_1=require('fs'),core_1=require(a11_0x25c977(0x15a)),core_2=require(a11_0x25c977(0x15a)),core_3=require(a11_0x25c977(0x15a)),getRoutes_1=require(a11_0x25c977(0x162));function a11_0x3037(_0x35dd97,_0x5ab81c){const _0x49f08b=a11_0xc3b5();return a11_0x3037=function(_0x509f9d,_0x448933){_0x509f9d=_0x509f9d-0x122;let _0xc3b5af=_0x49f08b[_0x509f9d];return _0xc3b5af;},a11_0x3037(_0x35dd97,_0x5ab81c);}let ApitestService=exports[a11_0x25c977(0x14d)]=class ApitestService{async['apidoc'](_0x2382fe){const _0x4e10be=a11_0x25c977,_0x29c85d=(0x0,getRoutes_1['getRoutes'])(_0x2382fe),_0x9fb5b8=[];for(let _0x280716 in _0x29c85d){for(let _0x4f7783 in _0x29c85d[_0x280716][_0x4e10be(0x158)]){let _0x24e029=_0x29c85d[_0x280716][_0x4e10be(0x158)][_0x4f7783],_0x530f5d=[];for(let _0x3485f4 in _0x24e029[_0x4e10be(0x13f)]){_0x530f5d[_0x4e10be(0x169)](_0x24e029[_0x4e10be(0x13f)][_0x3485f4]);}_0x9fb5b8[_0x4e10be(0x169)]({'title':_0x29c85d[_0x280716][_0x4e10be(0x153)]+':'+_0x24e029[_0x4e10be(0x153)],'prefix':_0x29c85d[_0x280716]['prefix'],'router':_0x24e029[_0x4e10be(0x16d)],'method':_0x24e029[_0x4e10be(0x137)],'describe':_0x24e029[_0x4e10be(0x144)]||'','filepath':_0x29c85d[_0x280716][_0x4e10be(0x124)]||'','request':_0x530f5d});}}const _0xfe1c0a=(0x0,path_1[_0x4e10be(0x12f)])(__dirname,_0x4e10be(0x148));return(0x0,fs_1[_0x4e10be(0x13a)])(_0xfe1c0a,{'encoding':_0x4e10be(0x15c)})[_0x4e10be(0x130)](/__res__/g,_0x4e10be(0x13b))[_0x4e10be(0x130)](_0x4e10be(0x15e),JSON[_0x4e10be(0x14a)](_0x9fb5b8))['replace']('__devices__',JSON[_0x4e10be(0x14a)](this[_0x4e10be(0x127)][_0x4e10be(0x12a)]));}};__decorate([(0x0,core_3[a11_0x25c977(0x12d)])(a11_0x25c977(0x150)),__metadata(a11_0x25c977(0x131),Object)],ApitestService[a11_0x25c977(0x151)],a11_0x25c977(0x127),void 0x0),exports[a11_0x25c977(0x14d)]=ApitestService=__decorate([(0x0,core_2[a11_0x25c977(0x164)])(a11_0x25c977(0x161)),(0x0,core_3[a11_0x25c977(0x159)])(core_3[a11_0x25c977(0x145)][a11_0x25c977(0x146)])],ApitestService);let ApitestStaticController=exports['ApitestStaticController']=class ApitestStaticController{async[a11_0x25c977(0x129)](){const _0x358df8=a11_0x25c977;if(this[_0x358df8(0x161)]){const _0x36bff7={'module':![]};return this[_0x358df8(0x13d)]['isDevelopmentEnvironment']()&&(_0x36bff7[_0x358df8(0x124)]=!![]),await this[_0x358df8(0x14d)][_0x358df8(0x173)](_0x36bff7);}return'';}async[a11_0x25c977(0x170)](_0x1e812e){const _0x5197ca=a11_0x25c977;if(this[_0x5197ca(0x161)]){const _0x5ec6cc={'module':_0x1e812e};return this[_0x5197ca(0x13d)][_0x5197ca(0x16f)]()&&(_0x5ec6cc[_0x5197ca(0x124)]=!![]),await this[_0x5197ca(0x14d)][_0x5197ca(0x173)](_0x5ec6cc);}return'';}async[a11_0x25c977(0x175)](){const _0x316db4=a11_0x25c977;if((0x0,path_1[_0x316db4(0x140)])(this[_0x316db4(0x13c)]['request'][_0x316db4(0x14f)])){var _0x3884a3=(0x0,path_1[_0x316db4(0x12f)])(__dirname,_0x316db4(0x152)+this['ctx'][_0x316db4(0x13f)][_0x316db4(0x14f)][_0x316db4(0x130)]('/apiteststatic/','/'));if(_0x3884a3[_0x316db4(0x166)](_0x3884a3[_0x316db4(0x13e)]-0xb)!=_0x316db4(0x12e)){this[_0x316db4(0x13c)][_0x316db4(0x132)](_0x316db4(0x167),_0x316db4(0x160));if((0x0,path_1[_0x316db4(0x140)])(this[_0x316db4(0x13c)]['request'][_0x316db4(0x14f)])=='.js')this[_0x316db4(0x13c)][_0x316db4(0x132)](_0x316db4(0x16b),_0x316db4(0x134));else(0x0,path_1[_0x316db4(0x140)])(this[_0x316db4(0x13c)]['request'][_0x316db4(0x14f)])==_0x316db4(0x142)&&this['ctx']['set'](_0x316db4(0x16b),_0x316db4(0x14c));return(0x0,fs_1[_0x316db4(0x126)])(_0x3884a3)&&(0x0,fs_1[_0x316db4(0x13a)])(_0x3884a3,{'encoding':_0x316db4(0x15c)});}}return'';}};__decorate([(0x0,core_3[a11_0x25c977(0x14b)])(),__metadata(a11_0x25c977(0x131),Object)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x13c),void 0x0),__decorate([(0x0,core_3[a11_0x25c977(0x14b)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x13d),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x25c977(0x131),ApitestService)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x14d),void 0x0),__decorate([(0x0,core_3[a11_0x25c977(0x12d)])(a11_0x25c977(0x161)),__metadata(a11_0x25c977(0x131),Boolean)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x161),void 0x0),__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata(a11_0x25c977(0x131),Object)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x127),void 0x0),__decorate([(0x0,core_2[a11_0x25c977(0x128)])('/apitest'),__metadata(a11_0x25c977(0x131),Function),__metadata(a11_0x25c977(0x12c),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x25c977(0x129),null),__decorate([(0x0,core_2[a11_0x25c977(0x128)])(a11_0x25c977(0x15f)),__param(0x0,(0x0,core_2[a11_0x25c977(0x172)])('module')),__metadata(a11_0x25c977(0x131),Function),__metadata(a11_0x25c977(0x12c),[String]),__metadata(a11_0x25c977(0x16c),Promise)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x170),null),__decorate([(0x0,core_2[a11_0x25c977(0x128)])(a11_0x25c977(0x139)),__metadata(a11_0x25c977(0x131),Function),__metadata(a11_0x25c977(0x12c),[]),__metadata(a11_0x25c977(0x16c),Promise)],ApitestStaticController['prototype'],a11_0x25c977(0x175),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a11_0x25c977(0x14e)])('/'),(0x0,core_3[a11_0x25c977(0x159)])(core_3[a11_0x25c977(0x145)]['Request'])],ApitestStaticController);function a11_0xc3b5(){const _0x3f2049=['__decorate','Param','apidoc','5259128lyfTpM','apiteststatic','6EVjHiK','2022192PElNyi','filepath','decorate','existsSync','config','Get','apitesthtml','devices','9iXRBdF','design:paramtypes','Config','/index.html','join','replace','design:type','set','4834120mUABva','application/javascript;\x20charset=utf-8','1378929syjPwb','object','method','metadata','/apiteststatic/*','readFileSync','/apiteststatic/','ctx','Environment','length','request','extname','constructor','.css','defineProperty','description','ScopeEnum','Singleton','1079688KeRRTZ','../../public/index.html','search','stringify','Inject','text/css;\x20charset=utf-8','ApitestService','Controller','url','anncicapi','prototype','../../public/','summary','__param','59535010jpwGjx','ApitestStaticController','function','routes','Scope','@midwayjs/core','363878CjvojV','utf-8','path','__apiList__','/apitest-:module','public,\x20max-age=604800','apitest','../helper/getRoutes','__esModule','Provide','toString','substring','cache-control','77FqpDma','push','(((.+)+)+)+$','content-type','design:returntype','route','getOwnPropertyDescriptor','isDevelopmentEnvironment','apitestmodule'];a11_0xc3b5=function(){return _0x3f2049;};return a11_0xc3b5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x507650=a12_0x55f4;(function(_0x15ca15,_0x322c96){const _0x553bf2=a12_0x55f4,_0x52ff7d=_0x15ca15();while(!![]){try{const _0xda15be=parseInt(_0x553bf2(0x21a))/0x1*(-parseInt(_0x553bf2(0x1fd))/0x2)+-parseInt(_0x553bf2(0x225))/0x3*(-parseInt(_0x553bf2(0x217))/0x4)+parseInt(_0x553bf2(0x1fe))/0x5*(parseInt(_0x553bf2(0x206))/0x6)+-parseInt(_0x553bf2(0x204))/0x7+-parseInt(_0x553bf2(0x230))/0x8+-parseInt(_0x553bf2(0x229))/0x9+parseInt(_0x553bf2(0x228))/0xa*(parseInt(_0x553bf2(0x22f))/0xb);if(_0xda15be===_0x322c96)break;else _0x52ff7d['push'](_0x52ff7d['shift']());}catch(_0x589a0b){_0x52ff7d['push'](_0x52ff7d['shift']());}}}(a12_0x5e6f,0xf1a5a));const a12_0x5b7de8=(function(){let _0x5cd7a3=!![];return function(_0xaa7ac1,_0x2ab22e){const _0x29a56f=_0x5cd7a3?function(){if(_0x2ab22e){const _0x358670=_0x2ab22e['apply'](_0xaa7ac1,arguments);return _0x2ab22e=null,_0x358670;}}:function(){};return _0x5cd7a3=![],_0x29a56f;};}()),a12_0x2d10b2=a12_0x5b7de8(this,function(){const _0x46622e=a12_0x55f4;return a12_0x2d10b2['toString']()[_0x46622e(0x22c)]('(((.+)+)+)+$')[_0x46622e(0x20f)]()[_0x46622e(0x222)](a12_0x2d10b2)[_0x46622e(0x22c)]('(((.+)+)+)+$');});a12_0x2d10b2();'use strict';var __decorate=this&&this['__decorate']||function(_0x42cb12,_0x49878f,_0x3a44e0,_0x2a0be8){const _0x2a185b=a12_0x55f4;var _0x338221=arguments['length'],_0x8a6a97=_0x338221<0x3?_0x49878f:_0x2a0be8===null?_0x2a0be8=Object[_0x2a185b(0x215)](_0x49878f,_0x3a44e0):_0x2a0be8,_0x426310;if(typeof Reflect==='object'&&typeof Reflect[_0x2a185b(0x1fa)]===_0x2a185b(0x219))_0x8a6a97=Reflect[_0x2a185b(0x1fa)](_0x42cb12,_0x49878f,_0x3a44e0,_0x2a0be8);else{for(var _0x33f926=_0x42cb12[_0x2a185b(0x235)]-0x1;_0x33f926>=0x0;_0x33f926--)if(_0x426310=_0x42cb12[_0x33f926])_0x8a6a97=(_0x338221<0x3?_0x426310(_0x8a6a97):_0x338221>0x3?_0x426310(_0x49878f,_0x3a44e0,_0x8a6a97):_0x426310(_0x49878f,_0x3a44e0))||_0x8a6a97;}return _0x338221>0x3&&_0x8a6a97&&Object[_0x2a185b(0x212)](_0x49878f,_0x3a44e0,_0x8a6a97),_0x8a6a97;},__metadata=this&&this[a12_0x507650(0x202)]||function(_0x532111,_0x385027){const _0x17e5de=a12_0x507650;if(typeof Reflect===_0x17e5de(0x21b)&&typeof Reflect[_0x17e5de(0x22d)]===_0x17e5de(0x219))return Reflect[_0x17e5de(0x22d)](_0x532111,_0x385027);};Object[a12_0x507650(0x212)](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x507650(0x203)),koasend=require('koa-send'),core_1=require(a12_0x507650(0x238));function a12_0x5e6f(){const _0x125f53=['endsWith','findRows','__metadata','exceljs','10479700JOlTNo','key','6CsRlFX','getWorksheet','random','value','getColumn','Api\x20Excel\x20Error:\x20','/public/xlsx/','YYYY/MM/DD','getAppDir','toString','frozen','Provide','defineProperty','xlsx','filter','getOwnPropertyDescriptor','getCell','15964CtskCS','replace','function','1246CSqUhZ','object','addRow','Workbook','addWorksheet','handler','header','get','constructor','eachCell','push','516cdwNkV','app','rowCount','10tHgzqA','12769704vInTck','mkdirSync','substring','search','metadata','col','41578009xVlskl','10989984tVZWQT','.xlsx','startsWith','cellCount','parse','length','Scope','log','@midwayjs/core','format','ExcelService','set','model','Singleton','design:type','decorate','worksheets','values','178hosWdB','4620565wXmZWF','keys'];a12_0x5e6f=function(){return _0x125f53;};return a12_0x5e6f();}function a12_0x55f4(_0x446b90,_0x2dfdaa){const _0x121751=a12_0x5e6f();return a12_0x55f4=function(_0x2d10b2,_0x5b7de8){_0x2d10b2=_0x2d10b2-0x1f4;let _0x5e6f46=_0x121751[_0x2d10b2];return _0x5e6f46;},a12_0x55f4(_0x446b90,_0x2dfdaa);}let ExcelService=exports[a12_0x507650(0x1f5)]=class ExcelService{async[a12_0x507650(0x234)](_0x42edb9,_0x2c6fa3,_0x2fdba3=[0x0]){const _0x90c6ac=a12_0x507650;var _0x32128e,_0x4b4463;const _0x24d9c7=new exceljs[(_0x90c6ac(0x21d))](),_0x46994b=[];let _0x5afc52=_0x42edb9['replace'](/(\\|\/)/g,'/')[_0x90c6ac(0x218)](/\/{2,}/g,'/');!(_0x5afc52===null||_0x5afc52===void 0x0?void 0x0:_0x5afc52[_0x90c6ac(0x232)]('/'))&&(_0x5afc52=this['app'][_0x90c6ac(0x20e)]()+'/'+_0x5afc52);try{await _0x24d9c7[_0x90c6ac(0x213)]['readFile'](_0x5afc52);}catch(_0x228992){return console[_0x90c6ac(0x237)](_0x90c6ac(0x20b)+_0x5afc52+'\x20is\x20read\x20fail'),_0x46994b;}for(const _0x2d9a64 of _0x2fdba3){const _0xd09afe=lodash['isNumber'](_0x2d9a64)?((_0x32128e=_0x24d9c7[_0x90c6ac(0x1fb)])===null||_0x32128e===void 0x0?void 0x0:_0x32128e[_0x2d9a64])||undefined:_0x24d9c7[_0x90c6ac(0x207)](_0x2d9a64);if(_0xd09afe){var _0x2fd08e=0x1;const _0x428e98=_0xd09afe['getRow'](0x1),_0x241021=await new Promise(_0x186e12=>{const _0x3fd5a4=_0x90c6ac,_0x1ec113={};_0x428e98[_0x3fd5a4(0x223)]((_0x354b13,_0xc13708)=>{const _0x24d7a5=_0x3fd5a4;for(const _0x5f4fff of _0x2c6fa3){if(_0x354b13['value']==_0x5f4fff[_0x24d7a5(0x220)])_0x2fd08e=0x2,_0x1ec113[_0x5f4fff[_0x24d7a5(0x205)]]={'header':_0x354b13[_0x24d7a5(0x22e)],'handler':_0x5f4fff['handler']};else{if(!_0x1ec113[_0x5f4fff['key']])try{const _0x51331e=_0x428e98&&_0x428e98[_0x24d7a5(0x216)](_0x5f4fff[_0x24d7a5(0x220)]);_0x51331e&&(_0x1ec113[_0x5f4fff['key']]={'header':_0x51331e['col'],'handler':_0x5f4fff[_0x24d7a5(0x21f)]});}catch{}}}_0x428e98[_0x24d7a5(0x233)]==_0xc13708&&_0x186e12(_0x1ec113);});});_0x33cacf:for(const _0x3716f6 of _0xd09afe[_0x90c6ac(0x201)](_0x2fd08e,_0xd09afe[_0x90c6ac(0x227)])){if(typeof(_0x3716f6===null||_0x3716f6===void 0x0?void 0x0:_0x3716f6[_0x90c6ac(0x216)])!='function')continue _0x33cacf;const _0x377711={};_0x58ef26:for(const _0x1d83c9 in _0x241021){if(_0x241021[_0x1d83c9][_0x90c6ac(0x220)]){const _0x6e2729=_0x3716f6['getCell'](_0x241021[_0x1d83c9][_0x90c6ac(0x220)]);if(!_0x6e2729)continue _0x58ef26;try{_0x6e2729[_0x90c6ac(0x20f)]();}catch(_0x5615c9){_0x6e2729[_0x90c6ac(0x20f)]=()=>{const _0x2dbe9d=_0x90c6ac;var _0x39808f;return''+(((_0x39808f=_0x6e2729===null||_0x6e2729===void 0x0?void 0x0:_0x6e2729[_0x2dbe9d(0x1f7)])===null||_0x39808f===void 0x0?void 0x0:_0x39808f[_0x2dbe9d(0x209)])||'');};}typeof((_0x4b4463=_0x241021[_0x1d83c9])===null||_0x4b4463===void 0x0?void 0x0:_0x4b4463[_0x90c6ac(0x21f)])==_0x90c6ac(0x219)?_0x377711[_0x1d83c9]=await _0x241021[_0x1d83c9]['handler'](lodash[_0x90c6ac(0x1f6)]({},_0x1d83c9,(_0x6e2729===null||_0x6e2729===void 0x0?void 0x0:_0x6e2729[_0x90c6ac(0x20f)]())||''),_0x6e2729[_0x90c6ac(0x1f7)]):_0x377711[_0x1d83c9]=(_0x6e2729===null||_0x6e2729===void 0x0?void 0x0:_0x6e2729['toString']())||'';}}Object[_0x90c6ac(0x1ff)](_0x377711)[_0x90c6ac(0x235)]>0x0&&Object[_0x90c6ac(0x1fc)](_0x377711)[_0x90c6ac(0x214)](_0x47afde=>_0x47afde!='')[_0x90c6ac(0x235)]>0x0&&_0x46994b[_0x90c6ac(0x224)](_0x377711);}}}return _0x46994b;}async['export'](_0x2645de,_0x1e0ff0,_0x2466e9,_0x127768,_0x85668c){const _0xdb2777=a12_0x507650;var _0x321df8,_0x4cc1c1;const _0x49fd9b=new exceljs[(_0xdb2777(0x21d))](),_0x47857c={},_0x1118ae=[],_0xfd32c3=_0x49fd9b[_0xdb2777(0x21e)]('Sheet\x201',{'views':[{'state':_0xdb2777(0x210),'ySplit':0x1}]});for(const _0x41ca7c in _0x1e0ff0){_0x47857c[_0x1e0ff0[_0x41ca7c][_0xdb2777(0x205)]]=_0x1e0ff0[_0x41ca7c]['header'],_0x1118ae[_0xdb2777(0x224)]({'header':_0x1e0ff0[_0x41ca7c][_0xdb2777(0x220)],'key':(_0x321df8=_0x1e0ff0[_0x41ca7c])===null||_0x321df8===void 0x0?void 0x0:_0x321df8[_0xdb2777(0x205)][_0xdb2777(0x218)](/\./g,'_')});}_0xfd32c3['columns']=_0x1118ae;for(const _0x4245f6 in _0x2466e9){const _0xa973e1=_0x2466e9[_0x4245f6],_0x25af27=_0xfd32c3[_0xdb2777(0x21c)]({});for(let _0x13012c in _0x1e0ff0){const _0x2859a1=_0x1e0ff0[_0x13012c][_0xdb2777(0x205)][_0xdb2777(0x218)](/\./g,'_'),_0x4ded3d=_0xfd32c3[_0xdb2777(0x20a)](_0x2859a1),_0x392f80=_0x25af27===null||_0x25af27===void 0x0?void 0x0:_0x25af27['getCell'](_0x2859a1);typeof((_0x4cc1c1=_0x1e0ff0[_0x13012c])===null||_0x4cc1c1===void 0x0?void 0x0:_0x4cc1c1[_0xdb2777(0x21f)])=='function'?_0x392f80[_0xdb2777(0x209)]=await _0x1e0ff0[_0x13012c]['handler'](_0xa973e1,{'row':_0x25af27,'col':_0x4ded3d,'cell':_0x392f80,'sheet':_0xfd32c3})||'':_0x392f80[_0xdb2777(0x209)]=lodash[_0xdb2777(0x221)](_0xa973e1,_0x1e0ff0[_0x13012c][_0xdb2777(0x205)],'');}}typeof _0x85668c==_0xdb2777(0x219)&&await _0x85668c({'workbook':_0x49fd9b,'worksheet':_0xfd32c3});let _0x3eb717='';const _0x3659b2=_0x2645de+'-'+lodash[_0xdb2777(0x208)](0x186a0,0xf423f)+_0xdb2777(0x231);if(_0x127768&&_0x127768[_0xdb2777(0x232)]('/'))_0x3eb717=''+_0x127768;else _0x127768&&!_0x127768['startsWith']('/')&&!_0x127768[_0xdb2777(0x232)]('\x5c')?_0x3eb717=this[_0xdb2777(0x226)][_0xdb2777(0x20e)]()+'/'+_0x127768:_0x3eb717=this['app']['getAppDir']()+_0xdb2777(0x20c)+dayjs()[_0xdb2777(0x1f4)](_0xdb2777(0x20d));return(_0x3eb717[_0xdb2777(0x200)]('/')||_0x3eb717[_0xdb2777(0x200)]('\x5c'))&&(_0x3eb717=_0x3eb717[_0xdb2777(0x22b)](0x0,_0x3eb717[_0xdb2777(0x235)]-0x1)),_0x3eb717=_0x3eb717[_0xdb2777(0x218)](/(\\|\/)/g,'/')[_0xdb2777(0x218)](/\/{2,}/g,'/'),!fs['existsSync'](_0x3eb717)&&fs[_0xdb2777(0x22a)](_0x3eb717,{'recursive':!![]}),await _0x49fd9b[_0xdb2777(0x213)]['writeFile']((_0x3eb717+'/'+_0x3659b2)[_0xdb2777(0x218)](/(\\|\/)/g,'/')[_0xdb2777(0x218)](/\/{2,}/g,'/')),{'filename':_0x3659b2,'filepath':(_0x3eb717[_0xdb2777(0x22b)]((''+this[_0xdb2777(0x226)]['getAppDir']())[_0xdb2777(0x235)])+'/'+_0x3659b2)[_0xdb2777(0x218)](/(\\|\/)/g,'/')[_0xdb2777(0x218)](/\/{2,}/g,'/')};}async['download'](_0x11d094,_0x1abda6){return await koasend(_0x11d094,''+_0x1abda6);}};__decorate([(0x0,core_1['App'])(),__metadata(a12_0x507650(0x1f9),Object)],ExcelService['prototype'],'app',void 0x0),exports[a12_0x507650(0x1f5)]=ExcelService=__decorate([(0x0,core_1[a12_0x507650(0x211)])(),(0x0,core_1[a12_0x507650(0x236)])(core_1['ScopeEnum'][a12_0x507650(0x1f8)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a13_0x2859(_0x569afd,_0x34c1c4){var _0xd85976=a13_0x1d58();return a13_0x2859=function(_0x32332a,_0x16306e){_0x32332a=_0x32332a-0xe2;var _0x1d589f=_0xd85976[_0x32332a];return _0x1d589f;},a13_0x2859(_0x569afd,_0x34c1c4);}function a13_0x1d58(){var _0x6cda38=['1937874JEAeax','__esModule','ACTION_KEY','anncic-api:action','AppsConfigTmp','319725Iiqaoa','anncic-api:apps:config','6vhZtwC','1510165HKuJzv','444280iJFyox','APPSCONFIG_KEY','anncic-api:action:route','constructor','2091144yNBiLW','toString','search','564192vuLTlv','defineProperty','(((.+)+)+)+$','ACTION_ROUTE_KEY','144557qpjsLB'];a13_0x1d58=function(){return _0x6cda38;};return a13_0x1d58();}var a13_0x5d8dfa=a13_0x2859;(function(_0x1b2d83,_0x169841){var _0x57ac4b=a13_0x2859,_0xf985b7=_0x1b2d83();while(!![]){try{var _0x7934ac=-parseInt(_0x57ac4b(0xe3))/0x1+-parseInt(_0x57ac4b(0xeb))/0x2*(-parseInt(_0x57ac4b(0xf4))/0x3)+parseInt(_0x57ac4b(0xed))/0x4+parseInt(_0x57ac4b(0xec))/0x5+-parseInt(_0x57ac4b(0xe4))/0x6+parseInt(_0x57ac4b(0xe9))/0x7+-parseInt(_0x57ac4b(0xf1))/0x8;if(_0x7934ac===_0x169841)break;else _0xf985b7['push'](_0xf985b7['shift']());}catch(_0x3869de){_0xf985b7['push'](_0xf985b7['shift']());}}}(a13_0x1d58,0x47c99));var a13_0x16306e=(function(){var _0x3b6686=!![];return function(_0x2dbcec,_0x52737f){var _0xde8303=_0x3b6686?function(){if(_0x52737f){var _0x2889ee=_0x52737f['apply'](_0x2dbcec,arguments);return _0x52737f=null,_0x2889ee;}}:function(){};return _0x3b6686=![],_0xde8303;};}()),a13_0x32332a=a13_0x16306e(this,function(){var _0x7c5f47=a13_0x2859;return a13_0x32332a['toString']()[_0x7c5f47(0xf3)](_0x7c5f47(0xf6))[_0x7c5f47(0xf2)]()[_0x7c5f47(0xf0)](a13_0x32332a)[_0x7c5f47(0xf3)]('(((.+)+)+)+$');});a13_0x32332a();'use strict';Object[a13_0x5d8dfa(0xf5)](exports,a13_0x5d8dfa(0xe5),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x5d8dfa(0xee)]=exports[a13_0x5d8dfa(0xe2)]=exports[a13_0x5d8dfa(0xe6)]=void 0x0,exports[a13_0x5d8dfa(0xe6)]=a13_0x5d8dfa(0xe7),exports[a13_0x5d8dfa(0xe2)]=a13_0x5d8dfa(0xef),exports[a13_0x5d8dfa(0xee)]=a13_0x5d8dfa(0xea);class AppsConfigTmp{}exports[a13_0x5d8dfa(0xe8)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x33a738=a14_0x3fb7;(function(_0x196dd5,_0x30fe14){var _0x42691b=a14_0x3fb7,_0x2465bc=_0x196dd5();while(!![]){try{var _0xe32932=-parseInt(_0x42691b(0xa6))/0x1*(parseInt(_0x42691b(0xb2))/0x2)+-parseInt(_0x42691b(0xa8))/0x3+parseInt(_0x42691b(0x95))/0x4*(-parseInt(_0x42691b(0x9c))/0x5)+parseInt(_0x42691b(0x97))/0x6+parseInt(_0x42691b(0xb0))/0x7+-parseInt(_0x42691b(0xa4))/0x8*(parseInt(_0x42691b(0x98))/0x9)+parseInt(_0x42691b(0x96))/0xa;if(_0xe32932===_0x30fe14)break;else _0x2465bc['push'](_0x2465bc['shift']());}catch(_0x478cc2){_0x2465bc['push'](_0x2465bc['shift']());}}}(a14_0x44dc,0xc3389));var a14_0xe99ded=(function(){var _0x42fec2=!![];return function(_0x3ca824,_0x1eb5b5){var _0x24afb1=_0x42fec2?function(){if(_0x1eb5b5){var _0x2534f7=_0x1eb5b5['apply'](_0x3ca824,arguments);return _0x1eb5b5=null,_0x2534f7;}}:function(){};return _0x42fec2=![],_0x24afb1;};}()),a14_0x1940f7=a14_0xe99ded(this,function(){var _0x291723=a14_0x3fb7;return a14_0x1940f7['toString']()[_0x291723(0xaa)]('(((.+)+)+)+$')[_0x291723(0xa9)]()[_0x291723(0x9b)](a14_0x1940f7)[_0x291723(0xaa)]('(((.+)+)+)+$');});function a14_0x44dc(){var _0x1e996c=['number','_page','__decorate','metadata','getOwnPropertyDescriptor','12ChoXDW','26477530XhuEAx','8634444AYbDgS','2999421AsDVaJ','string','RuleType','constructor','2489630xFJUKc','排序方式','valid','trim','object','__metadata','Rule','__esModule','32AsyiLC','_order','1KtQDIg','decorate','1665324dNNyLa','toString','search','function','分页数量','@anncic-api/validator','length','integer','8405089kAXSEh','design:type','2211934aDATgx','defineProperty','第一页为1,第二页为2','prototype','是否倒序'];a14_0x44dc=function(){return _0x1e996c;};return a14_0x44dc();}a14_0x1940f7();function a14_0x3fb7(_0x25ae81,_0x36e638){var _0x58654c=a14_0x44dc();return a14_0x3fb7=function(_0x1940f7,_0xe99ded){_0x1940f7=_0x1940f7-0x8d;var _0x44dcc2=_0x58654c[_0x1940f7];return _0x44dcc2;},a14_0x3fb7(_0x25ae81,_0x36e638);}'use strict';var __decorate=this&&this[a14_0x33a738(0x92)]||function(_0x5a5856,_0x5d444f,_0x1ad59b,_0x23765d){var _0x2e7e0d=a14_0x33a738,_0x3465b2=arguments[_0x2e7e0d(0xae)],_0x540be1=_0x3465b2<0x3?_0x5d444f:_0x23765d===null?_0x23765d=Object[_0x2e7e0d(0x94)](_0x5d444f,_0x1ad59b):_0x23765d,_0x2833f2;if(typeof Reflect===_0x2e7e0d(0xa0)&&typeof Reflect[_0x2e7e0d(0xa7)]===_0x2e7e0d(0xab))_0x540be1=Reflect['decorate'](_0x5a5856,_0x5d444f,_0x1ad59b,_0x23765d);else{for(var _0xee4704=_0x5a5856[_0x2e7e0d(0xae)]-0x1;_0xee4704>=0x0;_0xee4704--)if(_0x2833f2=_0x5a5856[_0xee4704])_0x540be1=(_0x3465b2<0x3?_0x2833f2(_0x540be1):_0x3465b2>0x3?_0x2833f2(_0x5d444f,_0x1ad59b,_0x540be1):_0x2833f2(_0x5d444f,_0x1ad59b))||_0x540be1;}return _0x3465b2>0x3&&_0x540be1&&Object['defineProperty'](_0x5d444f,_0x1ad59b,_0x540be1),_0x540be1;},__metadata=this&&this[a14_0x33a738(0xa1)]||function(_0x181994,_0x421a27){var _0x5c7e1f=a14_0x33a738;if(typeof Reflect===_0x5c7e1f(0xa0)&&typeof Reflect[_0x5c7e1f(0x93)]===_0x5c7e1f(0xab))return Reflect[_0x5c7e1f(0x93)](_0x181994,_0x421a27);};Object[a14_0x33a738(0xb3)](exports,a14_0x33a738(0xa3),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a14_0x33a738(0xad));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])('分页',validator_1['RuleType'][a14_0x33a738(0x90)]()[a14_0x33a738(0xaf)]()['min'](0x1),a14_0x33a738(0x8d)),__metadata(a14_0x33a738(0xb1),Number)],PageDTO[a14_0x33a738(0x8e)],a14_0x33a738(0x91),void 0x0),__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])(a14_0x33a738(0xac),validator_1[a14_0x33a738(0x9a)][a14_0x33a738(0x90)]()[a14_0x33a738(0xaf)]()['min'](0x1)),__metadata(a14_0x33a738(0xb1),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])(a14_0x33a738(0x9d),validator_1[a14_0x33a738(0x9a)][a14_0x33a738(0x99)]()[a14_0x33a738(0x9f)]()),__metadata(a14_0x33a738(0xb1),String)],PageDTO[a14_0x33a738(0x8e)],a14_0x33a738(0xa5),void 0x0),__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])(a14_0x33a738(0x8f),validator_1['RuleType'][a14_0x33a738(0x90)]()[a14_0x33a738(0xaf)]()[a14_0x33a738(0x9e)](0x0,0x1),'1:是;0:否'),__metadata(a14_0x33a738(0xb1),Number)],PageDTO[a14_0x33a738(0x8e)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a15_0x231b38=a15_0x48ee;function a15_0x48ee(_0x546518,_0x238bd5){var _0x1f8351=a15_0x1738();return a15_0x48ee=function(_0xb1210e,_0x49383f){_0xb1210e=_0xb1210e-0x1e6;var _0x173876=_0x1f8351[_0xb1210e];return _0x173876;},a15_0x48ee(_0x546518,_0x238bd5);}(function(_0x37f74d,_0x26cd78){var _0x3f40f3=a15_0x48ee,_0x64f4a7=_0x37f74d();while(!![]){try{var _0x1a2510=-parseInt(_0x3f40f3(0x1e7))/0x1*(-parseInt(_0x3f40f3(0x1f9))/0x2)+-parseInt(_0x3f40f3(0x1f7))/0x3+-parseInt(_0x3f40f3(0x1f3))/0x4*(-parseInt(_0x3f40f3(0x1eb))/0x5)+parseInt(_0x3f40f3(0x1f2))/0x6*(-parseInt(_0x3f40f3(0x1f0))/0x7)+parseInt(_0x3f40f3(0x1ef))/0x8*(-parseInt(_0x3f40f3(0x1ee))/0x9)+-parseInt(_0x3f40f3(0x1e9))/0xa*(parseInt(_0x3f40f3(0x1e8))/0xb)+parseInt(_0x3f40f3(0x1f8))/0xc;if(_0x1a2510===_0x26cd78)break;else _0x64f4a7['push'](_0x64f4a7['shift']());}catch(_0x47c14a){_0x64f4a7['push'](_0x64f4a7['shift']());}}}(a15_0x1738,0x82f72));var a15_0x49383f=(function(){var _0x51c2a7=!![];return function(_0x467970,_0x359e10){var _0x38ee9e=_0x51c2a7?function(){if(_0x359e10){var _0x3b403a=_0x359e10['apply'](_0x467970,arguments);return _0x359e10=null,_0x3b403a;}}:function(){};return _0x51c2a7=![],_0x38ee9e;};}()),a15_0xb1210e=a15_0x49383f(this,function(){var _0x339c6a=a15_0x48ee;return a15_0xb1210e['toString']()[_0x339c6a(0x1f1)](_0x339c6a(0x1e6))[_0x339c6a(0x1f5)]()[_0x339c6a(0x1ec)](a15_0xb1210e)[_0x339c6a(0x1f1)](_0x339c6a(0x1e6));});a15_0xb1210e();function a15_0x1738(){var _0x5ced33=['6IUlPXo','122036mZtMTi','InterceptTargetTmp','toString','defineProperty','315075PCAagb','12384780DymbzP','7516GUkXfq','(((.+)+)+)+$','184CCnIkX','11qKznju','4180910SCxwlo','anncic-api:intercept','30PJCbIB','constructor','INTERCEPT_KEY','2894643aNABJf','8kOeRmL','3677898lUDAmb','search'];a15_0x1738=function(){return _0x5ced33;};return a15_0x1738();}'use strict';Object[a15_0x231b38(0x1f6)](exports,'__esModule',{'value':!![]}),exports[a15_0x231b38(0x1f4)]=exports[a15_0x231b38(0x1ed)]=void 0x0,exports['INTERCEPT_KEY']=a15_0x231b38(0x1ea);class InterceptTargetTmp{}exports[a15_0x231b38(0x1f4)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.3.
|
|
21
|
-
"@anncic-api/core": "^3.3.
|
|
22
|
-
"@anncic-api/event": "^3.3.
|
|
23
|
-
"@anncic-api/typeorm": "^3.3.
|
|
24
|
-
"@anncic-api/validator": "^3.3.
|
|
20
|
+
"@anncic-api/cache": "^3.3.6",
|
|
21
|
+
"@anncic-api/core": "^3.3.6",
|
|
22
|
+
"@anncic-api/event": "^3.3.6",
|
|
23
|
+
"@anncic-api/typeorm": "^3.3.6",
|
|
24
|
+
"@anncic-api/validator": "^3.3.6",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.3.
|
|
29
|
+
"anncic-apihelper": "^3.3.6",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "f7a0c9ae8daca8fee1103c42fb12aaf3c887d405"
|
|
39
39
|
}
|