anncic-api 2.0.12 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0xbced(_0x5e725e,_0x244c9d){var _0x3aef3d=a0_0x1a23();return a0_0xbced=function(_0x39668d,_0xabd44c){_0x39668d=_0x39668d-0x197;var _0x1a2351=_0x3aef3d[_0x39668d];return _0x1a2351;},a0_0xbced(_0x5e725e,_0x244c9d);}function a0_0x1a23(){var _0x3c4da0=['appDir','search','defineProperty','default','form','59953GsDxjl','xml','20mb','3006536ultFAE','1721844QHqrOI','json','7116pLaLDv','22ZFwqWR','(((.+)+)+)+$','toString','text','24060BeEORt','dhauo1234420123gg3234901','172ZodNSn','245388kBLcOd','9611330DYGssH','constructor','apply','756oVtxnx','8848xjQvFL','9jKjVYw'];a0_0x1a23=function(){return _0x3c4da0;};return a0_0x1a23();}var a0_0x2a9e12=a0_0xbced;(function(_0xf25171,_0x182f02){var _0x38b673=a0_0xbced,_0x5707c9=_0xf25171();while(!![]){try{var _0x1a816d=-parseInt(_0x38b673(0x197))/0x1*(parseInt(_0x38b673(0x19e))/0x2)+parseInt(_0x38b673(0x19b))/0x3+parseInt(_0x38b673(0x1a4))/0x4*(-parseInt(_0x38b673(0x1a2))/0x5)+parseInt(_0x38b673(0x19d))/0x6*(-parseInt(_0x38b673(0x1aa))/0x7)+parseInt(_0x38b673(0x19a))/0x8+parseInt(_0x38b673(0x1ab))/0x9*(parseInt(_0x38b673(0x1a6))/0xa)+-parseInt(_0x38b673(0x1a5))/0xb*(-parseInt(_0x38b673(0x1a9))/0xc);if(_0x1a816d===_0x182f02)break;else _0x5707c9['push'](_0x5707c9['shift']());}catch(_0x56543f){_0x5707c9['push'](_0x5707c9['shift']());}}}(a0_0x1a23,0xe820f));var a0_0xabd44c=(function(){var _0xfb4782=!![];return function(_0x21f89f,_0x36fdcb){var _0x2980f5=_0xfb4782?function(){var _0x1f5b18=a0_0xbced;if(_0x36fdcb){var _0x42f2ad=_0x36fdcb[_0x1f5b18(0x1a8)](_0x21f89f,arguments);return _0x36fdcb=null,_0x42f2ad;}}:function(){};return _0xfb4782=![],_0x2980f5;};}()),a0_0x39668d=a0_0xabd44c(this,function(){var _0x4aed0c=a0_0xbced;return a0_0x39668d[_0x4aed0c(0x1a0)]()['search'](_0x4aed0c(0x19f))[_0x4aed0c(0x1a0)]()[_0x4aed0c(0x1a7)](a0_0x39668d)[_0x4aed0c(0x1ad)](_0x4aed0c(0x19f));});a0_0x39668d();'use strict';Object[a0_0x2a9e12(0x1ae)](exports,'__esModule',{'value':!![]}),exports[a0_0x2a9e12(0x1af)]=_0x1faa40=>{var _0x539de5=a0_0x2a9e12;return{'apitest':!![],'keys':_0x1faa40['name'],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x539de5(0x1a3),'checkcode':_0x539de5(0x1a3)}}},'bodyParser':{'enableTypes':[_0x539de5(0x19c),_0x539de5(0x1b0),_0x539de5(0x1a1),_0x539de5(0x198)],'formLimit':_0x539de5(0x199),'jsonLimit':'20mb','textLimit':'20mb','xmlLimit':'20mb'},'upload':{'tmpdir':_0x1faa40[_0x539de5(0x1ac)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x11c75b=a1_0x4990;(function(_0x5a9986,_0x5beb45){var _0x243e2a=a1_0x4990,_0x1cf076=_0x5a9986();while(!![]){try{var _0x167063=-parseInt(_0x243e2a(0x1af))/0x1+-parseInt(_0x243e2a(0x1ab))/0x2+-parseInt(_0x243e2a(0x1aa))/0x3+parseInt(_0x243e2a(0x1ac))/0x4*(parseInt(_0x243e2a(0x1ae))/0x5)+-parseInt(_0x243e2a(0x1a2))/0x6+parseInt(_0x243e2a(0x1a1))/0x7+parseInt(_0x243e2a(0x1a8))/0x8*(parseInt(_0x243e2a(0x1a6))/0x9);if(_0x167063===_0x5beb45)break;else _0x1cf076['push'](_0x1cf076['shift']());}catch(_0x34e094){_0x1cf076['push'](_0x1cf076['shift']());}}}(a1_0x258b,0x9edd0));var a1_0x2b9549=(function(){var _0xdfc8f2=!![];return function(_0x12bf09,_0xeab04e){var _0x32616b=_0xdfc8f2?function(){var _0x20b4aa=a1_0x4990;if(_0xeab04e){var _0x1cd849=_0xeab04e[_0x20b4aa(0x1a3)](_0x12bf09,arguments);return _0xeab04e=null,_0x1cd849;}}:function(){};return _0xdfc8f2=![],_0x32616b;};}()),a1_0x2ca4a3=a1_0x2b9549(this,function(){var _0xe78e3=a1_0x4990;return a1_0x2ca4a3[_0xe78e3(0x1a4)]()[_0xe78e3(0x1a9)](_0xe78e3(0x1a5))[_0xe78e3(0x1a4)]()['constructor'](a1_0x2ca4a3)['search'](_0xe78e3(0x1a5));});a1_0x2ca4a3();function a1_0x258b(){var _0x1a7981=['search','3504873nInXxs','226598rUICHX','210980mqbuxF','defineProperty','55ZSOPsU','1158983YMQfUN','5875681hfzkTi','1328418SKsFMK','apply','toString','(((.+)+)+)+$','9xCTjEC','default','15144816byAoWS'];a1_0x258b=function(){return _0x1a7981;};return a1_0x258b();}function a1_0x4990(_0x1ce419,_0x527f6c){var _0x46a567=a1_0x258b();return a1_0x4990=function(_0x2ca4a3,_0x2b9549){_0x2ca4a3=_0x2ca4a3-0x1a1;var _0x258bbd=_0x46a567[_0x2ca4a3];return _0x258bbd;},a1_0x4990(_0x1ce419,_0x527f6c);}'use strict';Object[a1_0x11c75b(0x1ad)](exports,'__esModule',{'value':!![]}),exports[a1_0x11c75b(0x1a7)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x25c1a6=a2_0x34e5;(function(_0x395dac,_0x156386){const _0x3c69be=a2_0x34e5,_0x39deeb=_0x395dac();while(!![]){try{const _0x356343=parseInt(_0x3c69be(0x1ca))/0x1*(parseInt(_0x3c69be(0x196))/0x2)+-parseInt(_0x3c69be(0x1b2))/0x3+parseInt(_0x3c69be(0x1cc))/0x4*(-parseInt(_0x3c69be(0x199))/0x5)+parseInt(_0x3c69be(0x1e6))/0x6*(-parseInt(_0x3c69be(0x1e2))/0x7)+-parseInt(_0x3c69be(0x188))/0x8+-parseInt(_0x3c69be(0x183))/0x9*(-parseInt(_0x3c69be(0x187))/0xa)+-parseInt(_0x3c69be(0x192))/0xb*(-parseInt(_0x3c69be(0x1d7))/0xc);if(_0x356343===_0x156386)break;else _0x39deeb['push'](_0x39deeb['shift']());}catch(_0x37ae1e){_0x39deeb['push'](_0x39deeb['shift']());}}}(a2_0x3812,0xbb4ca));const a2_0x460060=(function(){let _0x5e870a=!![];return function(_0x57077d,_0x53d045){const _0x3f0de8=_0x5e870a?function(){const _0x15c54e=a2_0x34e5;if(_0x53d045){const _0x914d13=_0x53d045[_0x15c54e(0x1d6)](_0x57077d,arguments);return _0x53d045=null,_0x914d13;}}:function(){};return _0x5e870a=![],_0x3f0de8;};}()),a2_0x2431af=a2_0x460060(this,function(){const _0x110ab7=a2_0x34e5;return a2_0x2431af[_0x110ab7(0x1f8)]()[_0x110ab7(0x197)](_0x110ab7(0x1f7))[_0x110ab7(0x1f8)]()[_0x110ab7(0x18f)](a2_0x2431af)['search'](_0x110ab7(0x1f7));});function a2_0x3812(){const _0x482102=['dirs','dir','(((.+)+)+)+$','toString','@midwayjs/i18n','mkdirSync','./types/intercept','proceed','readdirSync','HEADERS_SIGNATURE','default','2547TIJtdN','decorate','handler','./types/action','34690waeNuw','11378032uwedrF','handlerActionRoute','REQUEST_OBJ_CTX_KEY','devices','checkConfigKeys','__metadata','clients','constructor','文件不存在','apimit','1562sdmTWF','match','anncic-apihelper','_matchedRoute','289258FRDSBA','search','-log','235HyezrP','assign','Types','getConfiguration','anncic-api','config','Inject','/runtime/apps-','toLowerCase','@anncic-api/validator','getAppDir','@midwayjs/upload','INTERCEPT_KEY','filterConfig','intercept','MidwayApplicationManager','device','Configuration','onReady','MidwayConfigService','upload','@midwayjs/core','koa','DEFAULT','CustomConfiguration','1449630VqlGpX','App','getBaseDir','loggerConfig','getAsync','existsSync','app','getOwnPropertyDescriptor','addObject','koa-send','isString','ApiService','ApiError','isFunction','MidwayEnvironmentService','/apps','environment','string','request','./config/config.default','keys','/apps/','log','isDirectory','7VCqfKL','isDevelopmentEnvironment','107636QgKSaL','@anncic-api/event','@midwayjs/koa','./config/config.production','@anncic-api/cache','checksign','./exception/ApiError','isClass','staticFile','prototype','apply','179904EnJxbW','registerMethodHandler','headers','design:type','tmpdir','requestContext','MidwayDecoratorService','function','getClassMetadata','context','isNull','35119pVvoZj','bodyXml','__esModule','ACTION_ROUTE_KEY','222RgxUOn','/runtime','length','query','target','method','defaultsDeep','attachment','body','object','application','midwayLogger','@anncic-api/typeorm','statSync','anncicapi'];a2_0x3812=function(){return _0x482102;};return a2_0x3812();}function a2_0x34e5(_0x5b271d,_0x1d10c6){const _0x167870=a2_0x3812();return a2_0x34e5=function(_0x2431af,_0x460060){_0x2431af=_0x2431af-0x17f;let _0x381283=_0x167870[_0x2431af];return _0x381283;},a2_0x34e5(_0x5b271d,_0x1d10c6);}a2_0x2431af();'use strict';var __decorate=this&&this['__decorate']||function(_0x3ce582,_0x410769,_0x1fbeaf,_0x879540){const _0x452bea=a2_0x34e5;var _0x56089a=arguments[_0x452bea(0x1e8)],_0x4489cf=_0x56089a<0x3?_0x410769:_0x879540===null?_0x879540=Object[_0x452bea(0x1b9)](_0x410769,_0x1fbeaf):_0x879540,_0x2f70d1;if(typeof Reflect===_0x452bea(0x1ef)&&typeof Reflect[_0x452bea(0x184)]===_0x452bea(0x1de))_0x4489cf=Reflect['decorate'](_0x3ce582,_0x410769,_0x1fbeaf,_0x879540);else{for(var _0x3647dc=_0x3ce582[_0x452bea(0x1e8)]-0x1;_0x3647dc>=0x0;_0x3647dc--)if(_0x2f70d1=_0x3ce582[_0x3647dc])_0x4489cf=(_0x56089a<0x3?_0x2f70d1(_0x4489cf):_0x56089a>0x3?_0x2f70d1(_0x410769,_0x1fbeaf,_0x4489cf):_0x2f70d1(_0x410769,_0x1fbeaf))||_0x4489cf;}return _0x56089a>0x3&&_0x4489cf&&Object['defineProperty'](_0x410769,_0x1fbeaf,_0x4489cf),_0x4489cf;},__metadata=this&&this[a2_0x25c1a6(0x18d)]||function(_0x5e884c,_0x54f327){const _0x2c6d6f=a2_0x25c1a6;if(typeof Reflect===_0x2c6d6f(0x1ef)&&typeof Reflect['metadata']===_0x2c6d6f(0x1de))return Reflect['metadata'](_0x5e884c,_0x54f327);};Object['defineProperty'](exports,a2_0x25c1a6(0x1e4),{'value':!![]}),exports[a2_0x25c1a6(0x1b1)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x25c1a6(0x1ae)),ApiError_1=require(a2_0x25c1a6(0x1d2)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x25c1a6(0x186)),intercept_1=require(a2_0x25c1a6(0x1fb)),fs=require('fs'),koasend=require(a2_0x25c1a6(0x1bb)),koa=require(a2_0x25c1a6(0x1ce)),i18n=require(a2_0x25c1a6(0x1f9)),upload=require(a2_0x25c1a6(0x1a4)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x25c1a6(0x1c5)),ConfigProduction=require(a2_0x25c1a6(0x1cf)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x25c1a6(0x1d0)),anncicEvent=require(a2_0x25c1a6(0x1cd)),anncicTypeorm=require(a2_0x25c1a6(0x1f2)),anncicValidator=require(a2_0x25c1a6(0x1a2)),anncicHelper=require(a2_0x25c1a6(0x194));let CustomConfiguration=class CustomConfiguration{async[a2_0x25c1a6(0x1ab)](){const _0x3db6d3=a2_0x25c1a6;await this[_0x3db6d3(0x1a6)](),await this[_0x3db6d3(0x1b5)](),await this[_0x3db6d3(0x18c)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x25c1a6(0x18c)](){}async[a2_0x25c1a6(0x189)](){const _0x253d82=a2_0x25c1a6,_0x261fc9=(0x0,core_1[_0x253d82(0x1df)])(intercept_1[_0x253d82(0x1a5)],intercept_1['InterceptTargetTmp'])||{};this['decorator'][_0x253d82(0x1d8)](action_1[_0x253d82(0x1e5)],_0x1178b3=>{const _0x38b917=_0x1178b3['metadata'];return{'before':async _0x374edf=>{const _0x4373af=a2_0x34e5;var _0x457fdb,_0x1354ba;const _0x9ad8be=(_0x457fdb=_0x374edf===null||_0x374edf===void 0x0?void 0x0:_0x374edf['target'])===null||_0x457fdb===void 0x0?void 0x0:_0x457fdb[core_2[_0x4373af(0x18a)]];if(_0x9ad8be&&(_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917[_0x4373af(0x191)])){if(!this[_0x4373af(0x1bd)][_0x4373af(0x1d1)]((_0x1354ba=_0x9ad8be===null||_0x9ad8be===void 0x0?void 0x0:_0x9ad8be[_0x4373af(0x1c4)])===null||_0x1354ba===void 0x0?void 0x0:_0x1354ba[_0x4373af(0x1d9)]))throw new AnnError(ApiError_1[_0x4373af(0x1be)][_0x4373af(0x181)]);}},'around':async _0x39a686=>{const _0x2268c3=a2_0x34e5;var _0x48f11a,_0x240aeb,_0x3aec28;const _0x2bf381=(_0x48f11a=_0x39a686===null||_0x39a686===void 0x0?void 0x0:_0x39a686[_0x2268c3(0x1ea)])===null||_0x48f11a===void 0x0?void 0x0:_0x48f11a[core_2[_0x2268c3(0x18a)]];if(_0x2bf381&&(_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917[_0x2268c3(0x191)])&&((_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917['intercept'])||typeof(_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917[_0x2268c3(0x1a7)])=='undefined')){if(((_0x240aeb=_0x2bf381['headers'])===null||_0x240aeb===void 0x0?void 0x0:_0x240aeb[_0x2268c3(0x1a9)])&&((_0x3aec28=_0x261fc9===null||_0x261fc9===void 0x0?void 0x0:_0x261fc9[_0x2bf381[_0x2268c3(0x1d9)][_0x2268c3(0x1a9)]])===null||_0x3aec28===void 0x0?void 0x0:_0x3aec28[_0x2268c3(0x1e8)])>0x0)for(const _0x37957b of _0x261fc9[_0x2bf381[_0x2268c3(0x1d9)][_0x2268c3(0x1a9)]]||[]){if(core_1[_0x2268c3(0x19b)][_0x2268c3(0x1d3)](_0x37957b)){const _0xee7145=await _0x2bf381[_0x2268c3(0x1dc)][_0x2268c3(0x1b6)](_0x37957b);typeof(_0xee7145===null||_0xee7145===void 0x0?void 0x0:_0xee7145[_0x2268c3(0x193)])==_0x2268c3(0x1de)?await _0xee7145[_0x2268c3(0x193)](_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['method'])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)])?_0x2bf381[_0x2268c3(0x1eb)][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917)&&await _0xee7145[_0x2268c3(0x185)](_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['method'])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['_matchedRoute'])?_0x2bf381['method'][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917):await _0xee7145['handler'](_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x1eb)])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)])?_0x2bf381[_0x2268c3(0x1eb)][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917);}else core_1[_0x2268c3(0x19b)][_0x2268c3(0x1bf)](_0x37957b)&&await _0x37957b(_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x1eb)])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['_matchedRoute'])?_0x2bf381[_0x2268c3(0x1eb)][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917);}}return await _0x39a686[_0x2268c3(0x17f)](..._0x39a686['args']);},'afterThrow':(_0x2eb660,_0x10a201)=>{throw _0x10a201;}};});}async['hanlderApplications'](){const _0x4781cf=a2_0x25c1a6;this[_0x4781cf(0x1f0)]['getApplications']([_0x4781cf(0x1af)])['forEach'](_0x52015d=>{const _0x4fd913=_0x4781cf;(_0x52015d===null||_0x52015d===void 0x0?void 0x0:_0x52015d[_0x4fd913(0x1e0)])&&Object['defineProperties'](_0x52015d[_0x4fd913(0x1e0)],{'ok':{'value':function(_0x41785e,_0x5db0da,_0x11c0a1=0x0){return{'code':_0x11c0a1,'data':_0x41785e,'extra':_0x5db0da};}},'input':{'value':function(_0x5a58e7,_0xfc2f9){const _0x51f1b8=_0x4fd913;var _0x1eca21;const _0x4fad5c=lodash[_0x51f1b8(0x1ec)]({},this['request'][_0x51f1b8(0x1ee)]||this[_0x51f1b8(0x1c4)][((_0x1eca21=config===null||config===void 0x0?void 0x0:config[_0x51f1b8(0x1e3)])===null||_0x1eca21===void 0x0?void 0x0:_0x1eca21['key'])||'body']||{},this[_0x51f1b8(0x1c4)][_0x51f1b8(0x1e9)]||{});return _0x5a58e7?lodash['get'](_0x4fad5c,_0x5a58e7,_0xfc2f9):_0x4fad5c;}},'when':{'value':async function(_0x31114d,_0x3f24ff){const _0xac489a=_0x4fd913,_0x19ce4d=this['input'](_0x31114d,null);if(!lodash[_0xac489a(0x1e1)](_0x19ce4d))return await _0x3f24ff(_0x19ce4d);}},'only':{'value':function(_0x42b563){const _0x24ea95=_0x4fd913,_0xb4dd12={};for(let _0x1e494f=0x0;_0x1e494f<_0x42b563[_0x24ea95(0x1e8)];_0x1e494f++){lodash['isArray'](_0x42b563[_0x1e494f])&&_0x42b563[_0x1e494f]['length']>0x0&&lodash[_0x24ea95(0x1bc)](_0x42b563[_0x1e494f][0x0])&&(_0xb4dd12[_0x42b563[_0x1e494f][0x0]]=this['input'](_0x42b563[_0x1e494f][0x0],_0x42b563[_0x1e494f][_0x24ea95(0x1e8)]>0x1?_0x42b563[_0x1e494f][0x1]:null));}return _0xb4dd12;}},'koasend':{'value':function(_0x660108,_0x3e981b){const _0x315003=_0x4fd913;if(!fs[_0x315003(0x1b7)](this[_0x315003(0x1b8)][_0x315003(0x1a3)]()+'/'+_0x660108))return _0x315003(0x190);return this[_0x315003(0x1ed)](_0x3e981b||_0x660108),koasend(this,_0x660108);}}});});}async[a2_0x25c1a6(0x1b5)](){const _0x458d6c=a2_0x25c1a6;var _0x48b0bd,_0x2abce8;if(fs[_0x458d6c(0x1b7)](this[_0x458d6c(0x1b8)]['getBaseDir']()+'/apps')&&fs['statSync'](this[_0x458d6c(0x1b8)][_0x458d6c(0x1b4)]()+_0x458d6c(0x1c1))[_0x458d6c(0x1c9)]()){const _0x4c6114=this[_0x458d6c(0x19e)][_0x458d6c(0x19c)](),_0x41e13b=((_0x48b0bd=_0x4c6114===null||_0x4c6114===void 0x0?void 0x0:_0x4c6114[_0x458d6c(0x1f1)])===null||_0x48b0bd===void 0x0?void 0x0:_0x48b0bd['clients'])||{};for(const _0x3d1e10 of fs[_0x458d6c(0x180)](this[_0x458d6c(0x1b8)][_0x458d6c(0x1b4)]()+'/apps')){if(!fs[_0x458d6c(0x1f3)](this[_0x458d6c(0x1b8)][_0x458d6c(0x1b4)]()+_0x458d6c(0x1c7)+_0x3d1e10)[_0x458d6c(0x1c9)]())continue;if(_0x41e13b===null||_0x41e13b===void 0x0?void 0x0:_0x41e13b[_0x3d1e10])continue;_0x41e13b[_0x3d1e10]=Object[_0x458d6c(0x19a)]({},((_0x2abce8=_0x4c6114===null||_0x4c6114===void 0x0?void 0x0:_0x4c6114[_0x458d6c(0x1f1)])===null||_0x2abce8===void 0x0?void 0x0:_0x2abce8[_0x458d6c(0x182)])||{'maxSize':'1m','dir':this[_0x458d6c(0x1b8)]['getAppDir']()+_0x458d6c(0x1e7)},{'enableJSON':!![],'enableConsole':this['environment'][_0x458d6c(0x1cb)](),'fileLogName':_0x3d1e10+'.log','dir':this[_0x458d6c(0x1b8)][_0x458d6c(0x1a3)]()+_0x458d6c(0x1a0)+_0x3d1e10+_0x458d6c(0x198)});}Object[_0x458d6c(0x1c6)](_0x41e13b)[_0x458d6c(0x1e8)]>0x0&&(!_0x4c6114[_0x458d6c(0x1f1)]&&(_0x4c6114[_0x458d6c(0x1f1)]={'default':{'maxSize':'1m','dir':this[_0x458d6c(0x1b8)][_0x458d6c(0x1a3)]()+_0x458d6c(0x1e7)}}),_0x4c6114[_0x458d6c(0x1f1)][_0x458d6c(0x18e)]=_0x41e13b),this[_0x458d6c(0x19e)][_0x458d6c(0x1ba)](_0x4c6114);}}async[a2_0x25c1a6(0x1a6)](){const _0x2fb153=a2_0x25c1a6;var _0x3311df,_0x48a18e,_0x30fd82,_0x589b1a,_0x16df6d,_0x530dec;const _0x51b762=this[_0x2fb153(0x19e)][_0x2fb153(0x19c)]();((_0x48a18e=(_0x3311df=_0x51b762===null||_0x51b762===void 0x0?void 0x0:_0x51b762['anncicapi'])===null||_0x3311df===void 0x0?void 0x0:_0x3311df[_0x2fb153(0x18b)])===null||_0x48a18e===void 0x0?void 0x0:_0x48a18e['DEFAULT'])&&Object[_0x2fb153(0x1c6)](_0x51b762[_0x2fb153(0x1f4)][_0x2fb153(0x18b)])[_0x2fb153(0x1e8)]>0x1&&delete _0x51b762[_0x2fb153(0x1f4)][_0x2fb153(0x18b)][_0x2fb153(0x1b0)];if((_0x30fd82=_0x51b762===null||_0x51b762===void 0x0?void 0x0:_0x51b762['staticFile'])===null||_0x30fd82===void 0x0?void 0x0:_0x30fd82['dirs'])for(const _0x197bab in _0x51b762['staticFile'][_0x2fb153(0x1f5)]){((_0x589b1a=_0x51b762[_0x2fb153(0x1d4)][_0x2fb153(0x1f5)][_0x197bab])===null||_0x589b1a===void 0x0?void 0x0:_0x589b1a['dir'])&&typeof((_0x16df6d=_0x51b762[_0x2fb153(0x1d4)]['dirs'][_0x197bab])===null||_0x16df6d===void 0x0?void 0x0:_0x16df6d['dir'])==_0x2fb153(0x1c3)&&!fs['existsSync'](_0x51b762[_0x2fb153(0x1d4)]['dirs'][_0x197bab][_0x2fb153(0x1f6)])&&(fs[_0x2fb153(0x1fa)](_0x51b762[_0x2fb153(0x1d4)][_0x2fb153(0x1f5)][_0x197bab][_0x2fb153(0x1f6)],{'recursive':!![]}),console[_0x2fb153(0x1c8)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x51b762[_0x2fb153(0x1d4)]['dirs'][_0x197bab]['dir']));}((_0x530dec=_0x51b762===null||_0x51b762===void 0x0?void 0x0:_0x51b762[_0x2fb153(0x1ad)])===null||_0x530dec===void 0x0?void 0x0:_0x530dec[_0x2fb153(0x1db)])&&!fs[_0x2fb153(0x1b7)](_0x51b762['upload']['tmpdir'])&&(fs[_0x2fb153(0x1fa)](_0x51b762[_0x2fb153(0x1ad)]['tmpdir'],{'recursive':!![]}),console[_0x2fb153(0x1c8)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x51b762[_0x2fb153(0x1ad)][_0x2fb153(0x1db)])),this[_0x2fb153(0x19e)][_0x2fb153(0x1ba)](_0x51b762);}};__decorate([(0x0,core_1[a2_0x25c1a6(0x1b3)])(),__metadata(a2_0x25c1a6(0x1da),Object)],CustomConfiguration[a2_0x25c1a6(0x1d5)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1ac)])],CustomConfiguration[a2_0x25c1a6(0x1d5)],a2_0x25c1a6(0x19e),void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1dd)])],CustomConfiguration[a2_0x25c1a6(0x1d5)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1a8)])],CustomConfiguration['prototype'],a2_0x25c1a6(0x1f0),void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1c0)])],CustomConfiguration[a2_0x25c1a6(0x1d5)],a2_0x25c1a6(0x1c2),void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata('design:type',ApiService_1[a2_0x25c1a6(0x1bd)])],CustomConfiguration['prototype'],a2_0x25c1a6(0x1bd),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x25c1a6(0x1aa)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x25c1a6(0x19d),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x25c1a6(0x1b1)]=CustomConfiguration;
|
|
1
|
+
const a2_0x2d257c=a2_0x5920;(function(_0x341191,_0x4278b0){const _0x131248=a2_0x5920,_0x4ad6ac=_0x341191();while(!![]){try{const _0x1c31a7=parseInt(_0x131248(0xc1))/0x1*(-parseInt(_0x131248(0xc0))/0x2)+-parseInt(_0x131248(0x72))/0x3*(parseInt(_0x131248(0x7f))/0x4)+-parseInt(_0x131248(0xd3))/0x5*(parseInt(_0x131248(0x6a))/0x6)+parseInt(_0x131248(0xd7))/0x7*(-parseInt(_0x131248(0x7d))/0x8)+parseInt(_0x131248(0x6c))/0x9*(parseInt(_0x131248(0xe7))/0xa)+parseInt(_0x131248(0xdf))/0xb*(-parseInt(_0x131248(0xcd))/0xc)+-parseInt(_0x131248(0x94))/0xd*(-parseInt(_0x131248(0x89))/0xe);if(_0x1c31a7===_0x4278b0)break;else _0x4ad6ac['push'](_0x4ad6ac['shift']());}catch(_0x1d5a4a){_0x4ad6ac['push'](_0x4ad6ac['shift']());}}}(a2_0x1ce2,0x82c84));const a2_0x58851d=(function(){let _0x4b13e4=!![];return function(_0x2bacb5,_0xf9104e){const _0x42cda2=_0x4b13e4?function(){const _0x41ad1d=a2_0x5920;if(_0xf9104e){const _0x109209=_0xf9104e[_0x41ad1d(0xe6)](_0x2bacb5,arguments);return _0xf9104e=null,_0x109209;}}:function(){};return _0x4b13e4=![],_0x42cda2;};}()),a2_0xbccb5a=a2_0x58851d(this,function(){const _0x3a48e4=a2_0x5920;return a2_0xbccb5a[_0x3a48e4(0x83)]()[_0x3a48e4(0xc8)](_0x3a48e4(0x67))['toString']()[_0x3a48e4(0x9d)](a2_0xbccb5a)[_0x3a48e4(0xc8)]('(((.+)+)+)+$');});a2_0xbccb5a();'use strict';var __decorate=this&&this[a2_0x2d257c(0xc7)]||function(_0x30b0c8,_0x9d40b3,_0x232223,_0x22ca3c){const _0x34cced=a2_0x2d257c;var _0x225e4d=arguments[_0x34cced(0x98)],_0x49a301=_0x225e4d<0x3?_0x9d40b3:_0x22ca3c===null?_0x22ca3c=Object['getOwnPropertyDescriptor'](_0x9d40b3,_0x232223):_0x22ca3c,_0x16fbe5;if(typeof Reflect==='object'&&typeof Reflect[_0x34cced(0x9b)]===_0x34cced(0x73))_0x49a301=Reflect['decorate'](_0x30b0c8,_0x9d40b3,_0x232223,_0x22ca3c);else{for(var _0x1d5268=_0x30b0c8[_0x34cced(0x98)]-0x1;_0x1d5268>=0x0;_0x1d5268--)if(_0x16fbe5=_0x30b0c8[_0x1d5268])_0x49a301=(_0x225e4d<0x3?_0x16fbe5(_0x49a301):_0x225e4d>0x3?_0x16fbe5(_0x9d40b3,_0x232223,_0x49a301):_0x16fbe5(_0x9d40b3,_0x232223))||_0x49a301;}return _0x225e4d>0x3&&_0x49a301&&Object['defineProperty'](_0x9d40b3,_0x232223,_0x49a301),_0x49a301;},__metadata=this&&this[a2_0x2d257c(0xa0)]||function(_0x2f455d,_0x7528c6){const _0x5d1ef5=a2_0x2d257c;if(typeof Reflect===_0x5d1ef5(0xca)&&typeof Reflect[_0x5d1ef5(0xbb)]==='function')return Reflect['metadata'](_0x2f455d,_0x7528c6);};Object[a2_0x2d257c(0xbf)](exports,a2_0x2d257c(0xcf),{'value':!![]}),exports[a2_0x2d257c(0x90)]=void 0x0;function a2_0x5920(_0x317654,_0xe2a47d){const _0x7fb8f5=a2_0x1ce2();return a2_0x5920=function(_0xbccb5a,_0x58851d){_0xbccb5a=_0xbccb5a-0x64;let _0x1ce2fd=_0x7fb8f5[_0xbccb5a];return _0x1ce2fd;},a2_0x5920(_0x317654,_0xe2a47d);}const core_1=require('@midwayjs/core'),core_2=require(a2_0x2d257c(0x6b)),ApiError_1=require(a2_0x2d257c(0xdd)),ApiService_1=require(a2_0x2d257c(0xd4)),action_1=require('./types/action'),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x2d257c(0xbe)),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),upload=require(a2_0x2d257c(0x68)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2d257c(0x80)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x2d257c(0xb3)),anncic=require(a2_0x2d257c(0x93)),anncicCache=require(a2_0x2d257c(0xe8)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x2d257c(0x85)),anncicValidator=require(a2_0x2d257c(0xe4)),anncicHelper=require(a2_0x2d257c(0xc4));function a2_0x1ce2(){const _0x326aac=['文件不存在','8vxTfMZ','midwayLogger','90532gKhotJ','@midwayjs/cross-domain','koa','InterceptTargetTmp','toString','match','@anncic-api/typeorm','log','hanlderApplications','Inject','1204294qpfuMB','dir','addObject','existsSync','defaultsDeep','Configuration','intercept','CustomConfiguration','mkdirSync','checkConfigKeys','@anncic-api/core','533YLPcvY','get','assign','request','length','ACTION_ROUTE_KEY','dirs','decorate','toLowerCase','constructor','default','string','__metadata','requestContext','application','Anncic-api\x20static-file\x20:\x20mkdir\x20','app','body','ApiError','isClass','decorator','bodyXml','filterConfig','environment','MidwayEnvironmentService','-log','_matchedRoute','staticFile','getConfiguration','ApiService','App','./config/config.production','method','args','MidwayDecoratorService','getApplications','target','defineProperties','MidwayApplicationManager','metadata','key','clients','koa-send','defineProperty','14AvTvXK','146658KPTcuo','getAppDir','handlerActionRoute','anncic-apihelper','getBaseDir','registerMethodHandler','__decorate','search','isFunction','object','.log','config','502236ZalRoY','REQUEST_OBJ_CTX_KEY','__esModule','/apps','attachment','checksign','7485nHfSYd','./service/ApiService','anncicapi','getClassMetadata','7136661nUITYb','keys','/runtime','statSync','isString','isDirectory','./exception/ApiError','upload','99pDkctU','design:type','device','handler','DEFAULT','@anncic-api/validator','prototype','apply','10fUOBKO','@anncic-api/cache','input','isNull','devices','(((.+)+)+)+$','@midwayjs/upload','loggerConfig','1956RuHnkn','@midwayjs/core','8035830rEHsks','undefined','query','readdirSync','proceed','/runtime/apps-','129wLBpHa','function','headers','Types','isDevelopmentEnvironment','forEach','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','tmpdir','context','apimit'];a2_0x1ce2=function(){return _0x326aac;};return a2_0x1ce2();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x154247=a2_0x2d257c;await this['filterConfig'](),await this[_0x154247(0x69)](),await this[_0x154247(0x92)](),await this[_0x154247(0xc3)](),await this[_0x154247(0x87)]();}async[a2_0x2d257c(0x92)](){}async['handlerActionRoute'](){const _0x249a9b=a2_0x2d257c,_0x22c51a=(0x0,core_1[_0x249a9b(0xd6)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x249a9b(0x82)])||{};this[_0x249a9b(0xa8)][_0x249a9b(0xc6)](action_1[_0x249a9b(0x99)],_0x53cf27=>{const _0x37152c=_0x249a9b,_0x4ed998=_0x53cf27[_0x37152c(0xbb)];return{'before':async _0x535803=>{const _0x153444=_0x37152c;var _0x1480ba,_0x5c73aa;const _0x1a9031=(_0x1480ba=_0x535803===null||_0x535803===void 0x0?void 0x0:_0x535803[_0x153444(0xb8)])===null||_0x1480ba===void 0x0?void 0x0:_0x1480ba[core_2[_0x153444(0xce)]];if(_0x1a9031&&(_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998['apimit'])){if(!this[_0x153444(0xb1)][_0x153444(0xd2)]((_0x5c73aa=_0x1a9031===null||_0x1a9031===void 0x0?void 0x0:_0x1a9031[_0x153444(0x97)])===null||_0x5c73aa===void 0x0?void 0x0:_0x5c73aa[_0x153444(0x74)]))throw new AnnError(ApiError_1[_0x153444(0xa6)]['HEADERS_SIGNATURE']);}},'around':async _0x3e46b3=>{const _0x502968=_0x37152c;var _0x25ac84,_0x2aed27,_0x1ea136;const _0x3ccefc=(_0x25ac84=_0x3e46b3===null||_0x3e46b3===void 0x0?void 0x0:_0x3e46b3['target'])===null||_0x25ac84===void 0x0?void 0x0:_0x25ac84[core_2[_0x502968(0xce)]];if(_0x3ccefc&&(_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998[_0x502968(0x7b)])&&((_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998[_0x502968(0x8f)])||typeof(_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998[_0x502968(0x8f)])==_0x502968(0x6d))){if(((_0x2aed27=_0x3ccefc[_0x502968(0x74)])===null||_0x2aed27===void 0x0?void 0x0:_0x2aed27['device'])&&((_0x1ea136=_0x22c51a===null||_0x22c51a===void 0x0?void 0x0:_0x22c51a[_0x3ccefc[_0x502968(0x74)][_0x502968(0xe1)]])===null||_0x1ea136===void 0x0?void 0x0:_0x1ea136[_0x502968(0x98)])>0x0)for(const _0x51c17d of _0x22c51a[_0x3ccefc['headers'][_0x502968(0xe1)]]||[]){if(core_1[_0x502968(0x75)][_0x502968(0xa7)](_0x51c17d)){const _0x1844ff=await _0x3ccefc[_0x502968(0xa1)]['getAsync'](_0x51c17d);typeof(_0x1844ff===null||_0x1844ff===void 0x0?void 0x0:_0x1844ff[_0x502968(0x84)])=='function'?await _0x1844ff[_0x502968(0x84)](_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xb4)])==_0x502968(0x9f)&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc[_0x502968(0xb4)][_0x502968(0x9c)]()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)]):undefined,_0x4ed998)&&await _0x1844ff[_0x502968(0xe2)](_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xb4)])=='string'&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc[_0x502968(0xb4)][_0x502968(0x9c)]()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc['_matchedRoute']):undefined,_0x4ed998):await _0x1844ff[_0x502968(0xe2)](_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc['method'])==_0x502968(0x9f)&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc['method'][_0x502968(0x9c)]()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)]):undefined,_0x4ed998);}else core_1[_0x502968(0x75)][_0x502968(0xc9)](_0x51c17d)&&await _0x51c17d(_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xb4)])==_0x502968(0x9f)&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc[_0x502968(0xb4)]['toLowerCase']()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc['_matchedRoute']):undefined,_0x4ed998);}}return await _0x3e46b3[_0x502968(0x70)](..._0x3e46b3[_0x502968(0xb5)]);},'afterThrow':(_0x1edb6a,_0x14c3cd)=>{throw _0x14c3cd;}};});}async['hanlderApplications'](){const _0x44c105=a2_0x2d257c;this[_0x44c105(0xa2)][_0x44c105(0xb7)]([_0x44c105(0x81)])[_0x44c105(0x77)](_0x437196=>{const _0x1685d3=_0x44c105;(_0x437196===null||_0x437196===void 0x0?void 0x0:_0x437196['context'])&&Object[_0x1685d3(0xb9)](_0x437196[_0x1685d3(0x7a)],{'ok':{'value':function(_0x107a2e,_0x6340a4,_0x3ef723=0x0){return{'code':_0x3ef723,'data':_0x107a2e,'extra':_0x6340a4};}},'input':{'value':function(_0x1a7809,_0x5eb16f){const _0x2af072=_0x1685d3;var _0x24066b;const _0x3b5caa=lodash[_0x2af072(0x8d)]({},this[_0x2af072(0x97)][_0x2af072(0xa5)]||this[_0x2af072(0x97)][((_0x24066b=config===null||config===void 0x0?void 0x0:config[_0x2af072(0xa9)])===null||_0x24066b===void 0x0?void 0x0:_0x24066b[_0x2af072(0xbc)])||_0x2af072(0xa5)]||{},this[_0x2af072(0x97)][_0x2af072(0x6e)]||{});return _0x1a7809?lodash[_0x2af072(0x95)](_0x3b5caa,_0x1a7809,_0x5eb16f):_0x3b5caa;}},'when':{'value':async function(_0x31b302,_0xf760be){const _0xed91b8=_0x1685d3,_0xbba50d=this[_0xed91b8(0x64)](_0x31b302,null);if(!lodash[_0xed91b8(0x65)](_0xbba50d))return await _0xf760be(_0xbba50d);}},'only':{'value':function(_0x50d5c5){const _0xddc71a=_0x1685d3,_0x1fddb2={};for(let _0x3016f1=0x0;_0x3016f1<_0x50d5c5[_0xddc71a(0x98)];_0x3016f1++){lodash['isArray'](_0x50d5c5[_0x3016f1])&&_0x50d5c5[_0x3016f1]['length']>0x0&&lodash[_0xddc71a(0xdb)](_0x50d5c5[_0x3016f1][0x0])&&(_0x1fddb2[_0x50d5c5[_0x3016f1][0x0]]=this[_0xddc71a(0x64)](_0x50d5c5[_0x3016f1][0x0],_0x50d5c5[_0x3016f1][_0xddc71a(0x98)]>0x1?_0x50d5c5[_0x3016f1][0x1]:null));}return _0x1fddb2;}},'koasend':{'value':function(_0x5919c2,_0x32bf36){const _0x5c54ed=_0x1685d3;if(!fs[_0x5c54ed(0x8c)](this[_0x5c54ed(0xa4)]['getAppDir']()+'/'+_0x5919c2))return _0x5c54ed(0x7c);return this[_0x5c54ed(0xd1)](_0x32bf36||_0x5919c2),koasend(this,_0x5919c2);}}});});}async['loggerConfig'](){const _0x4214aa=a2_0x2d257c;var _0x36a1bd,_0x58a788;if(fs[_0x4214aa(0x8c)](this['app'][_0x4214aa(0xc5)]()+'/apps')&&fs[_0x4214aa(0xda)](this[_0x4214aa(0xa4)][_0x4214aa(0xc5)]()+_0x4214aa(0xd0))['isDirectory']()){const _0x1d807f=this[_0x4214aa(0xcc)][_0x4214aa(0xb0)](),_0x1bef06=((_0x36a1bd=_0x1d807f===null||_0x1d807f===void 0x0?void 0x0:_0x1d807f[_0x4214aa(0x7e)])===null||_0x36a1bd===void 0x0?void 0x0:_0x36a1bd[_0x4214aa(0xbd)])||{};for(const _0x5855c9 of fs[_0x4214aa(0x6f)](this['app']['getBaseDir']()+_0x4214aa(0xd0))){if(!fs[_0x4214aa(0xda)](this[_0x4214aa(0xa4)][_0x4214aa(0xc5)]()+'/apps/'+_0x5855c9)[_0x4214aa(0xdc)]())continue;if(_0x1bef06===null||_0x1bef06===void 0x0?void 0x0:_0x1bef06[_0x5855c9])continue;_0x1bef06[_0x5855c9]=Object[_0x4214aa(0x96)]({},((_0x58a788=_0x1d807f===null||_0x1d807f===void 0x0?void 0x0:_0x1d807f[_0x4214aa(0x7e)])===null||_0x58a788===void 0x0?void 0x0:_0x58a788[_0x4214aa(0x9e)])||{'maxSize':'1m','dir':this[_0x4214aa(0xa4)][_0x4214aa(0xc2)]()+_0x4214aa(0xd9)},{'enableJSON':!![],'enableConsole':this[_0x4214aa(0xab)][_0x4214aa(0x76)](),'fileLogName':_0x5855c9+_0x4214aa(0xcb),'dir':this[_0x4214aa(0xa4)]['getAppDir']()+_0x4214aa(0x71)+_0x5855c9+_0x4214aa(0xad)});}Object[_0x4214aa(0xd8)](_0x1bef06)['length']>0x0&&(!_0x1d807f[_0x4214aa(0x7e)]&&(_0x1d807f[_0x4214aa(0x7e)]={'default':{'maxSize':'1m','dir':this[_0x4214aa(0xa4)][_0x4214aa(0xc2)]()+'/runtime'}}),_0x1d807f[_0x4214aa(0x7e)]['clients']=_0x1bef06),this[_0x4214aa(0xcc)]['addObject'](_0x1d807f);}}async[a2_0x2d257c(0xaa)](){const _0x358deb=a2_0x2d257c;var _0x13f732,_0x24d062,_0x4915e4,_0x1ff6d5,_0x391a2e,_0x4c8f1d;const _0x511617=this[_0x358deb(0xcc)][_0x358deb(0xb0)]();((_0x24d062=(_0x13f732=_0x511617===null||_0x511617===void 0x0?void 0x0:_0x511617[_0x358deb(0xd5)])===null||_0x13f732===void 0x0?void 0x0:_0x13f732[_0x358deb(0x66)])===null||_0x24d062===void 0x0?void 0x0:_0x24d062[_0x358deb(0xe3)])&&Object[_0x358deb(0xd8)](_0x511617[_0x358deb(0xd5)][_0x358deb(0x66)])[_0x358deb(0x98)]>0x1&&delete _0x511617['anncicapi'][_0x358deb(0x66)]['DEFAULT'];if((_0x4915e4=_0x511617===null||_0x511617===void 0x0?void 0x0:_0x511617[_0x358deb(0xaf)])===null||_0x4915e4===void 0x0?void 0x0:_0x4915e4[_0x358deb(0x9a)])for(const _0x3d8325 in _0x511617['staticFile'][_0x358deb(0x9a)]){((_0x1ff6d5=_0x511617['staticFile'][_0x358deb(0x9a)][_0x3d8325])===null||_0x1ff6d5===void 0x0?void 0x0:_0x1ff6d5['dir'])&&typeof((_0x391a2e=_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325])===null||_0x391a2e===void 0x0?void 0x0:_0x391a2e[_0x358deb(0x8a)])==_0x358deb(0x9f)&&!fs[_0x358deb(0x8c)](_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325][_0x358deb(0x8a)])&&(fs['mkdirSync'](_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325][_0x358deb(0x8a)],{'recursive':!![]}),console[_0x358deb(0x86)](_0x358deb(0xa3)+_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325][_0x358deb(0x8a)]));}((_0x4c8f1d=_0x511617===null||_0x511617===void 0x0?void 0x0:_0x511617[_0x358deb(0xde)])===null||_0x4c8f1d===void 0x0?void 0x0:_0x4c8f1d[_0x358deb(0x79)])&&!fs[_0x358deb(0x8c)](_0x511617['upload'][_0x358deb(0x79)])&&(fs[_0x358deb(0x91)](_0x511617['upload'][_0x358deb(0x79)],{'recursive':!![]}),console[_0x358deb(0x86)](_0x358deb(0x78)+_0x511617['upload'][_0x358deb(0x79)])),this[_0x358deb(0xcc)][_0x358deb(0x8b)](_0x511617);}};__decorate([(0x0,core_1[a2_0x2d257c(0xb2)])(),__metadata(a2_0x2d257c(0xe0),Object)],CustomConfiguration[a2_0x2d257c(0xe5)],a2_0x2d257c(0xa4),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x2d257c(0xe5)],a2_0x2d257c(0xcc),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2[a2_0x2d257c(0xb6)])],CustomConfiguration['prototype'],a2_0x2d257c(0xa8),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2[a2_0x2d257c(0xba)])],CustomConfiguration['prototype'],a2_0x2d257c(0xa2),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2[a2_0x2d257c(0xac)])],CustomConfiguration[a2_0x2d257c(0xe5)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),ApiService_1[a2_0x2d257c(0xb1)])],CustomConfiguration[a2_0x2d257c(0xe5)],a2_0x2d257c(0xb1),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2d257c(0x8e)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2d257c(0x90)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x3ae934=a3_0x27d8;(function(_0x76135c,_0x251bb4){const _0x306d41=a3_0x27d8,_0x435c0c=_0x76135c();while(!![]){try{const _0x57b56e=parseInt(_0x306d41(0x119))/0x1*(parseInt(_0x306d41(0x13f))/0x2)+parseInt(_0x306d41(0x11f))/0x3*(-parseInt(_0x306d41(0x144))/0x4)+parseInt(_0x306d41(0x11d))/0x5+parseInt(_0x306d41(0x13b))/0x6+-parseInt(_0x306d41(0x14a))/0x7*(parseInt(_0x306d41(0x146))/0x8)+-parseInt(_0x306d41(0x12a))/0x9*(-parseInt(_0x306d41(0x123))/0xa)+-parseInt(_0x306d41(0x120))/0xb*(parseInt(_0x306d41(0x138))/0xc);if(_0x57b56e===_0x251bb4)break;else _0x435c0c['push'](_0x435c0c['shift']());}catch(_0x1e4242){_0x435c0c['push'](_0x435c0c['shift']());}}}(a3_0x4b08,0x80308));const a3_0x384cd2=(function(){let _0x35d393=!![];return function(_0x514569,_0x638aa9){const _0x1c32a2=_0x35d393?function(){if(_0x638aa9){const _0x1ae40f=_0x638aa9['apply'](_0x514569,arguments);return _0x638aa9=null,_0x1ae40f;}}:function(){};return _0x35d393=![],_0x1c32a2;};}()),a3_0x43235e=a3_0x384cd2(this,function(){const _0x3d4983=a3_0x27d8;return a3_0x43235e[_0x3d4983(0x129)]()[_0x3d4983(0x126)]('(((.+)+)+)+$')['toString']()[_0x3d4983(0x152)](a3_0x43235e)[_0x3d4983(0x126)](_0x3d4983(0x14f));});a3_0x43235e();'use strict';Object[a3_0x3ae934(0x12c)](exports,a3_0x3ae934(0x14d),{'value':!![]}),exports['parseRoute']=exports['Action']=void 0x0;function a3_0x27d8(_0x47e06c,_0x1eaf30){const _0x2d324f=a3_0x4b08();return a3_0x27d8=function(_0x43235e,_0x384cd2){_0x43235e=_0x43235e-0x119;let _0x4b08f1=_0x2d324f[_0x43235e];return _0x4b08f1;},a3_0x27d8(_0x47e06c,_0x1eaf30);}function a3_0x4b08(){const _0x7fce5f=['apps/','(((.+)+)+)+$','startsWith','trim','constructor','\x20文件请放在apps/','isArray','5lbvsuc','module','length','saveModule','2612220hfeQAo','Controller','18uYmiPr','173459XXzLoG','join','ACTION_KEY','4445710KYfceA','-action','toLowerCase','search','Action','-controller','toString','9iLHdoR','split','defineProperty','cwd','endsWith','substring','middleware','route','filepath','tagName','prefix','filter','/controller/文件下','match','348dFyDrh','rootpath','replace','1273530LwQnGr','/config.','saveClassMetadata','app/controller/','84168THIOhS','@midwayjs/core','middlewareIgnore','indexOf','parseRoute','37284oVLNaS','basic/controller/','8NJAtpm','/controller/','\x20文件请放在app/controller/文件下','AppsConfigTmp','2459793HtCmqF','/apps/','splice','__esModule'];a3_0x4b08=function(){return _0x7fce5f;};return a3_0x4b08();}const fs=require('fs'),core_1=require(a3_0x3ae934(0x140)),action_1=require('../types/action');function Action(_0x48c5ad,_0x2b74e3,_0x486a2b={'middleware':[],'sensitive':!![]}){return _0x4f9a96=>{const _0xb3f697=a3_0x27d8;var _0x2a8ea6;_0x486a2b[_0xb3f697(0x133)]=_0x2b74e3;const _0x19738c=parseRoute(_0x48c5ad);if(_0x19738c['module']){_0x486a2b[_0xb3f697(0x134)]=_0x486a2b[_0xb3f697(0x134)]?'/'+_0x19738c[_0xb3f697(0x11a)]+'/'+_0x486a2b[_0xb3f697(0x134)]:'/'+_0x19738c[_0xb3f697(0x131)];_0x19738c[_0xb3f697(0x134)]&&(_0x486a2b[_0xb3f697(0x134)]='/'+_0x19738c[_0xb3f697(0x134)]+'/'+_0x486a2b[_0xb3f697(0x134)]);if(fs['existsSync'](_0x19738c[_0xb3f697(0x139)]+_0xb3f697(0x14b)+_0x19738c['module']+'/config.'+(lodash[_0xb3f697(0x12e)](_0x19738c[_0xb3f697(0x132)],'ts')?'ts':'js'))){const _0x145684=include(_0x19738c[_0xb3f697(0x139)]+'/apps/'+_0x19738c[_0xb3f697(0x11a)]+_0xb3f697(0x13c)+(lodash[_0xb3f697(0x12e)](_0x19738c[_0xb3f697(0x132)],'ts')?'ts':'js'));if(_0x145684[_0xb3f697(0x130)]&&lodash[_0xb3f697(0x154)](_0x145684[_0xb3f697(0x130)])&&_0x145684[_0xb3f697(0x130)][_0xb3f697(0x11b)]>0x0)for(let _0xd58fc in _0x145684[_0xb3f697(0x130)]){if(((_0x2a8ea6=_0x145684===null||_0x145684===void 0x0?void 0x0:_0x145684[_0xb3f697(0x141)])===null||_0x2a8ea6===void 0x0?void 0x0:_0x2a8ea6[_0xb3f697(0x11b)])>0x0&&_0x145684[_0xb3f697(0x141)][_0xb3f697(0x142)](_0x145684[_0xb3f697(0x130)][_0xd58fc])!=-0x1)continue;_0x486a2b['middleware']['push'](_0x145684[_0xb3f697(0x130)][_0xd58fc]);}const _0x3e8de9=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0xb3f697(0x149)])||{};_0x3e8de9[''+_0x19738c['module']]=_0x145684,(0x0,core_1[_0xb3f697(0x13d)])(action_1['APPSCONFIG_KEY'],_0x3e8de9,action_1[_0xb3f697(0x149)]);}_0x486a2b['prefix']=_0x486a2b[_0xb3f697(0x134)][_0xb3f697(0x125)]()[_0xb3f697(0x13a)](/\/{2,}/g,'/'),(0x0,core_1[_0xb3f697(0x11c)])(action_1[_0xb3f697(0x122)],_0x4f9a96),(0x0,core_1['Controller'])(_0x486a2b[_0xb3f697(0x134)],_0x486a2b)(_0x4f9a96),(0x0,core_1[_0xb3f697(0x13d)])(action_1['ACTION_KEY'],{'prefix':_0x486a2b[_0xb3f697(0x134)],'pprefix':_0x19738c[_0xb3f697(0x134)],'module':_0x19738c[_0xb3f697(0x11a)],'filepath':_0x19738c['filepath'],'routerOptions':_0x486a2b},_0x4f9a96);}else _0x486a2b[_0xb3f697(0x134)]=_0x486a2b[_0xb3f697(0x134)]?'/'+_0x486a2b[_0xb3f697(0x134)]:'/'+_0x19738c[_0xb3f697(0x131)],_0x19738c[_0xb3f697(0x134)]&&(_0x486a2b[_0xb3f697(0x134)]='/'+_0x19738c[_0xb3f697(0x134)]+'/'+_0x486a2b[_0xb3f697(0x134)]),_0x486a2b[_0xb3f697(0x134)]=_0x486a2b[_0xb3f697(0x134)][_0xb3f697(0x125)]()[_0xb3f697(0x13a)](/\/{2,}/g,'/'),(0x0,core_1[_0xb3f697(0x11c)])(action_1[_0xb3f697(0x122)],_0x4f9a96),(0x0,core_1[_0xb3f697(0x11e)])(_0x486a2b[_0xb3f697(0x134)],_0x486a2b)(_0x4f9a96),(0x0,core_1[_0xb3f697(0x13d)])(action_1[_0xb3f697(0x122)],{'prefix':_0x486a2b[_0xb3f697(0x134)],'module':_0x19738c[_0xb3f697(0x11a)],'pprefix':_0x19738c[_0xb3f697(0x134)],'filepath':_0x19738c[_0xb3f697(0x132)],'routerOptions':_0x486a2b},_0x4f9a96);};}exports[a3_0x3ae934(0x127)]=Action;function parseRoute(_0x41e988){const _0x395eaf=a3_0x3ae934;_0x41e988=_0x41e988[_0x395eaf(0x13a)](/(\\|\/)/g,'/');const _0x136476=process[_0x395eaf(0x12d)]()[_0x395eaf(0x13a)](/(\\|\/)/g,'/'),_0x4ccfb9=_0x41e988['substring'](0x0,_0x136476[_0x395eaf(0x11b)]+_0x41e988['substring'](_0x136476[_0x395eaf(0x11b)]+0x1)[_0x395eaf(0x142)]('/')+0x1),_0xf64374=_0x41e988['substring'](_0x4ccfb9[_0x395eaf(0x11b)]+0x1)[_0x395eaf(0x13a)](/(\\|\/)/g,'/'),_0x30e108={'route':'','prefix':![],'module':![],'rootpath':_0x4ccfb9,'filepath':_0xf64374};if(_0xf64374['startsWith'](_0x395eaf(0x13e))||_0xf64374[_0x395eaf(0x150)]('basic/controller/')){const _0x17b24f=_0xf64374[_0x395eaf(0x12f)]((_0xf64374[_0x395eaf(0x150)](_0x395eaf(0x13e))?_0x395eaf(0x13e):_0x395eaf(0x145))[_0x395eaf(0x11b)])[_0x395eaf(0x12b)]('/')[_0x395eaf(0x135)](_0x22e32c=>_0x22e32c&&_0x22e32c[_0x395eaf(0x151)]());return _0x17b24f['length']>0x1&&(_0x30e108[_0x395eaf(0x134)]=_0x17b24f[0x0][_0x395eaf(0x125)](),_0x17b24f[_0x395eaf(0x14c)](0x0,0x1)),_0x30e108[_0x395eaf(0x131)]=('/'+_0x17b24f['join']('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x395eaf(0x137)](/[\/|A-Z]*[^A-Z]+/g)[_0x395eaf(0x121)]('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x30e108['route']['endsWith'](_0x395eaf(0x124))&&(_0x30e108['route']=_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12f)](0x0,_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x11b)]-0x7)),_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12e)](_0x395eaf(0x128))&&(_0x30e108[_0x395eaf(0x131)]=_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12f)](0x0,_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x11b)]-0xb)),_0x30e108;}else{if(_0xf64374[_0x395eaf(0x150)](_0x395eaf(0x14e))){const _0x4333a8=_0xf64374[_0x395eaf(0x12f)](0x0,_0xf64374[_0x395eaf(0x142)](_0x395eaf(0x14b))+0x5),_0x14bbf3=_0xf64374[_0x395eaf(0x12f)](_0x4333a8[_0x395eaf(0x11b)]+0x1)[_0x395eaf(0x13a)](/(\\|\/)/g,'/')[_0x395eaf(0x12b)]('/')[0x0];if(_0xf64374['startsWith'](_0x395eaf(0x14e)+_0x14bbf3+_0x395eaf(0x147))){const _0x3b47d7=_0xf64374[_0x395eaf(0x12f)]((_0x4333a8+'/'+_0x14bbf3+'/controller/')[_0x395eaf(0x11b)])[_0x395eaf(0x12b)]('/')[_0x395eaf(0x135)](_0x2a7449=>_0x2a7449&&_0x2a7449['trim']());return _0x3b47d7[_0x395eaf(0x11b)]>0x1&&(_0x30e108[_0x395eaf(0x134)]=_0x3b47d7[0x0][_0x395eaf(0x125)](),_0x3b47d7[_0x395eaf(0x14c)](0x0,0x1)),_0x30e108[_0x395eaf(0x11a)]=_0x14bbf3,_0x30e108['route']=('/'+_0x14bbf3+'/'+_0x3b47d7[_0x395eaf(0x121)]('/'))[_0x395eaf(0x13a)](/(\.ts|\.js)$/,'')[_0x395eaf(0x13a)](/\/{2,}/g,'/')[_0x395eaf(0x137)](/[\/|A-Z]*[^A-Z]+/g)[_0x395eaf(0x121)]('-')[_0x395eaf(0x125)]()[_0x395eaf(0x13a)](/\/\-/g,'/'),_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12e)](_0x395eaf(0x124))&&(_0x30e108['route']=_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12f)](0x0,_0x30e108['route']['length']-0x7)),_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12e)]('-controller')&&(_0x30e108[_0x395eaf(0x131)]=_0x30e108[_0x395eaf(0x131)][_0x395eaf(0x12f)](0x0,_0x30e108['route'][_0x395eaf(0x11b)]-0xb)),_0x30e108;}throw new Error(_0xf64374+_0x395eaf(0x153)+_0x14bbf3+_0x395eaf(0x136));}}throw new Error(_0xf64374+_0x395eaf(0x148));}exports[a3_0x3ae934(0x143)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x3d3601=a4_0x2c41;function a4_0x2c41(_0x8945b6,_0x5c14eb){const _0xc8c10f=a4_0x3482();return a4_0x2c41=function(_0x4698fe,_0x4790f1){_0x4698fe=_0x4698fe-0x1ea;let _0x348253=_0xc8c10f[_0x4698fe];return _0x348253;},a4_0x2c41(_0x8945b6,_0x5c14eb);}(function(_0x6a3e58,_0x42f125){const _0x108f69=a4_0x2c41,_0x4bf904=_0x6a3e58();while(!![]){try{const _0x579450=parseInt(_0x108f69(0x20e))/0x1*(parseInt(_0x108f69(0x1f2))/0x2)+-parseInt(_0x108f69(0x205))/0x3*(-parseInt(_0x108f69(0x1ef))/0x4)+parseInt(_0x108f69(0x206))/0x5+-parseInt(_0x108f69(0x1f9))/0x6*(-parseInt(_0x108f69(0x1ec))/0x7)+-parseInt(_0x108f69(0x1f7))/0x8*(-parseInt(_0x108f69(0x210))/0x9)+parseInt(_0x108f69(0x1fc))/0xa*(parseInt(_0x108f69(0x211))/0xb)+parseInt(_0x108f69(0x20c))/0xc*(-parseInt(_0x108f69(0x200))/0xd);if(_0x579450===_0x42f125)break;else _0x4bf904['push'](_0x4bf904['shift']());}catch(_0x1040b2){_0x4bf904['push'](_0x4bf904['shift']());}}}(a4_0x3482,0x2ceba));const a4_0x4790f1=(function(){let _0x49a067=!![];return function(_0x4d4029,_0x113036){const _0x2be34c=_0x49a067?function(){const _0x1fd47f=a4_0x2c41;if(_0x113036){const _0x2102c3=_0x113036[_0x1fd47f(0x1fa)](_0x4d4029,arguments);return _0x113036=null,_0x2102c3;}}:function(){};return _0x49a067=![],_0x2be34c;};}()),a4_0x4698fe=a4_0x4790f1(this,function(){const _0x50da83=a4_0x2c41;return a4_0x4698fe['toString']()[_0x50da83(0x1f1)](_0x50da83(0x203))['toString']()[_0x50da83(0x1ee)](a4_0x4698fe)['search']('(((.+)+)+)+$');});a4_0x4698fe();'use strict';Object[a4_0x3d3601(0x1f8)](exports,a4_0x3d3601(0x1f5),{'value':!![]}),exports[a4_0x3d3601(0x20a)]=void 0x0;const validator_1=require(a4_0x3d3601(0x20b)),core_1=require(a4_0x3d3601(0x1fb)),action_1=require(a4_0x3d3601(0x1fd));function Api(_0xec5239,_0x4fecba=a4_0x3d3601(0x1ea),_0x34d47c='/',_0x116d59={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x30f363,_0x1f476c,_0x4bb27a)=>{const _0x56748a=a4_0x2c41;var _0x2a0894,_0x41aa29,_0xb2ed7c;!_0x116d59[_0x56748a(0x209)]&&(_0x116d59['middleware']=[]);!((_0x2a0894=_0x116d59===null||_0x116d59===void 0x0?void 0x0:_0x116d59['validate'])===null||_0x2a0894===void 0x0?void 0x0:_0x2a0894[_0x56748a(0x204)])&&(_0x116d59['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x56748a(0x1f4)}});typeof _0x116d59['apimit']=='undefined'&&(_0x116d59[_0x56748a(0x1f3)]=!![]);if(((_0x41aa29=_0x116d59===null||_0x116d59===void 0x0?void 0x0:_0x116d59[_0x56748a(0x209)])===null||_0x41aa29===void 0x0?void 0x0:_0x41aa29[_0x56748a(0x208)])>0x0&&((_0xb2ed7c=_0x116d59===null||_0x116d59===void 0x0?void 0x0:_0x116d59['middlewareIgnore'])===null||_0xb2ed7c===void 0x0?void 0x0:_0xb2ed7c['length'])>0x0)for(let _0xf8ae24 in _0x116d59[_0x56748a(0x209)]){_0x116d59[_0x56748a(0x1fe)][_0x56748a(0x20d)](_0x116d59['middleware'][_0xf8ae24])!==-0x1&&(_0x116d59[_0x56748a(0x209)][_0xf8ae24]=null);}_0x116d59['routerName']=_0xec5239,(0x0,validator_1['Validator'])(_0x116d59['validate'])(_0x30f363,_0x1f476c,_0x4bb27a),(0x0,core_1['RequestMapping'])(Object[_0x56748a(0x201)](_0x116d59,{'path':_0x34d47c,'requestMethod':(_0x4fecba==_0x56748a(0x202)?_0x56748a(0x1f6):_0x4fecba)['toLowerCase']()}))(_0x30f363,_0x1f476c,_0x4bb27a),(0x0,core_1['attachClassMetadata'])(action_1[_0x56748a(0x1ed)],{'path':_0x34d47c,'method':_0x1f476c,'apimit':_0x116d59[_0x56748a(0x1f3)],'intercept':_0x116d59[_0x56748a(0x1f0)],'routerName':_0x116d59['routerName'],'description':_0x116d59[_0x56748a(0x20f)],'middleware':(_0x116d59[_0x56748a(0x209)]||[])[_0x56748a(0x1eb)](_0x1c6ac6=>!!_0x1c6ac6),'requestMethod':(_0x4fecba==_0x56748a(0x202)?_0x56748a(0x1f6):_0x4fecba)[_0x56748a(0x207)]()},_0x30f363),(0x0,core_1['createCustomMethodDecorator'])(action_1[_0x56748a(0x1ed)],{'path':_0x34d47c,'method':_0x1f476c,'apimit':_0x116d59[_0x56748a(0x1f3)],'intercept':_0x116d59[_0x56748a(0x1f0)],'routerName':_0x116d59[_0x56748a(0x1ff)],'description':_0x116d59[_0x56748a(0x20f)],'middleware':(_0x116d59[_0x56748a(0x209)]||[])[_0x56748a(0x1eb)](_0x37d966=>!!_0x37d966),'requestMethod':(_0x4fecba=='del'?_0x56748a(0x1f6):_0x4fecba)[_0x56748a(0x207)]()})(_0x30f363,_0x1f476c,_0x4bb27a);};}function a4_0x3482(){const _0x4d0953=['../types/action','middlewareIgnore','routerName','506298nhQLBO','assign','del','(((.+)+)+)+$','validationOptions','3PRyxiu','824405rPAIPz','toLowerCase','length','middleware','Api','@anncic-api/validator','228NXRxhl','indexOf','145579YDbtGo','description','2007171ZdoGIP','1035298zlECUw','get','filter','1393294VRwNMr','ACTION_ROUTE_KEY','constructor','389316twyfxD','intercept','search','2ZsSuzg','apimit','string','__esModule','delete','8NZHmwK','defineProperty','6OFUqwp','apply','@midwayjs/core','10kYXQYA'];a4_0x3482=function(){return _0x4d0953;};return a4_0x3482();}exports[a4_0x3d3601(0x20a)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x357368=a5_0x5c80;(function(_0x352f20,_0x1425ce){const _0x5d6b3f=a5_0x5c80,_0x17e440=_0x352f20();while(!![]){try{const _0x4df942=parseInt(_0x5d6b3f(0xb8))/0x1*(-parseInt(_0x5d6b3f(0xac))/0x2)+parseInt(_0x5d6b3f(0xb2))/0x3+parseInt(_0x5d6b3f(0xad))/0x4+-parseInt(_0x5d6b3f(0xb9))/0x5+parseInt(_0x5d6b3f(0xb3))/0x6*(parseInt(_0x5d6b3f(0xc1))/0x7)+-parseInt(_0x5d6b3f(0xb6))/0x8+-parseInt(_0x5d6b3f(0xc4))/0x9;if(_0x4df942===_0x1425ce)break;else _0x17e440['push'](_0x17e440['shift']());}catch(_0x1c5cb7){_0x17e440['push'](_0x17e440['shift']());}}}(a5_0x1964,0x4a7d3));const a5_0x194c26=(function(){let _0x11338d=!![];return function(_0x457ba2,_0x39555a){const _0x36475d=_0x11338d?function(){const _0x5b836c=a5_0x5c80;if(_0x39555a){const _0xa3e287=_0x39555a[_0x5b836c(0xae)](_0x457ba2,arguments);return _0x39555a=null,_0xa3e287;}}:function(){};return _0x11338d=![],_0x36475d;};}()),a5_0x31eb75=a5_0x194c26(this,function(){const _0x3791df=a5_0x5c80;return a5_0x31eb75['toString']()[_0x3791df(0xb4)]('(((.+)+)+)+$')[_0x3791df(0xbe)]()[_0x3791df(0xc0)](a5_0x31eb75)['search']('(((.+)+)+)+$');});function a5_0x1964(){const _0x4e9ef9=['2274384IayGso','Apitest','1GwhXBD','488175TRblCI','getAsync','isDevelopmentEnvironment','app','defineProperty','toString','RequestMapping','constructor','2122687cANwqa','MidwayEnvironmentService','filepath','2096820tdcTdd','REQUEST_OBJ_CTX_KEY','value','getApplicationContext','713134CbmJHR','726088haPAhk','apply','@midwayjs/core','getConfig','/apitest','1465749ChiEgr','12LztJgS','search','apidoc'];a5_0x1964=function(){return _0x4e9ef9;};return a5_0x1964();}function a5_0x5c80(_0x3fb4b1,_0x4784f5){const _0x19906e=a5_0x1964();return a5_0x5c80=function(_0x31eb75,_0x194c26){_0x31eb75=_0x31eb75-0xaa;let _0x196460=_0x19906e[_0x31eb75];return _0x196460;},a5_0x5c80(_0x3fb4b1,_0x4784f5);}a5_0x31eb75();'use strict';Object[a5_0x357368(0xbd)](exports,'__esModule',{'value':!![]}),exports[a5_0x357368(0xb7)]=void 0x0;const core_1=require(a5_0x357368(0xaf)),ApitestService_1=require('../service/ApitestService');function Apitest(_0xd3470f=a5_0x357368(0xb1),_0xadf198){return(_0x390a21,_0x298a2a,_0x5cba45)=>{const _0x29edf0=a5_0x5c80;return(0x0,core_1[_0x29edf0(0xbf)])({'path':_0xd3470f,'requestMethod':'get'})(_0x390a21,_0x298a2a,_0x5cba45),_0x5cba45[_0x29edf0(0xaa)]=async function(..._0x59dace){const _0x175e63=_0x29edf0;var _0x2a9ee9;const _0x5aa51e=(_0x2a9ee9=this[core_1[_0x175e63(0xc5)]])===null||_0x2a9ee9===void 0x0?void 0x0:_0x2a9ee9[_0x175e63(0xbc)];if(_0x5aa51e&&_0x5aa51e[_0x175e63(0xb0)]('apitest')){const _0x4df51f=await _0x5aa51e[_0x175e63(0xab)]()[_0x175e63(0xba)](ApitestService_1['ApitestService']),_0x570ac3=await _0x5aa51e[_0x175e63(0xab)]()['getAsync'](core_1[_0x175e63(0xc2)]);return _0x570ac3[_0x175e63(0xbb)]()&&(_0xadf198[_0x175e63(0xc3)]=!![]),await _0x4df51f[_0x175e63(0xb5)](_0xadf198);}return'';},_0x5cba45;};}exports[a5_0x357368(0xb7)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6_0x524c30=a6_0x369a;(function(_0x1d7876,_0x22f503){const _0x159a0f=a6_0x369a,_0x1bab50=_0x1d7876();while(!![]){try{const _0x1dd773=-parseInt(_0x159a0f(0xd0))/0x1*(parseInt(_0x159a0f(0xe0))/0x2)+parseInt(_0x159a0f(0xe5))/0x3+parseInt(_0x159a0f(0xe4))/0x4*(-parseInt(_0x159a0f(0xdc))/0x5)+-parseInt(_0x159a0f(0xe8))/0x6*(-parseInt(_0x159a0f(0xe9))/0x7)+parseInt(_0x159a0f(0xd3))/0x8*(-parseInt(_0x159a0f(0xe1))/0x9)+parseInt(_0x159a0f(0xd6))/0xa+parseInt(_0x159a0f(0xde))/0xb*(parseInt(_0x159a0f(0xea))/0xc);if(_0x1dd773===_0x22f503)break;else _0x1bab50['push'](_0x1bab50['shift']());}catch(_0x36516c){_0x1bab50['push'](_0x1bab50['shift']());}}}(a6_0x47af,0xb2d77));const a6_0x3d18bb=(function(){let _0x2be44d=!![];return function(_0x15e3b7,_0x108273){const _0x2384af=_0x2be44d?function(){const _0x1cd0fe=a6_0x369a;if(_0x108273){const _0x58e16e=_0x108273[_0x1cd0fe(0xda)](_0x15e3b7,arguments);return _0x108273=null,_0x58e16e;}}:function(){};return _0x2be44d=![],_0x2384af;};}()),a6_0x54ffa9=a6_0x3d18bb(this,function(){const _0x188739=a6_0x369a;return a6_0x54ffa9['toString']()[_0x188739(0xdd)](_0x188739(0xe7))['toString']()[_0x188739(0xd4)](a6_0x54ffa9)[_0x188739(0xdd)](_0x188739(0xe7));});function a6_0x369a(_0x3ac634,_0x359296){const _0x4ea540=a6_0x47af();return a6_0x369a=function(_0x54ffa9,_0x3d18bb){_0x54ffa9=_0x54ffa9-0xce;let _0x47afa5=_0x4ea540[_0x54ffa9];return _0x47afa5;},a6_0x369a(_0x3ac634,_0x359296);}function a6_0x47af(){const _0x54e2f2=['1056837LbmWIC','includes','(((.+)+)+)+$','444ILFBIB','116907ETKNvQ','492DvmnNH','ScopeEnum','IIntercept','447691CrYzPJ','match','toUpperCase','8pOApUR','constructor','defineProperty','5921090ADKdZs','Provide','Singleton','InterceptTargetTmp','apply','Intercept','712955RUHvQd','search','195371UkXeJl','isArray','4jWJYth','1258362GgnjXV','saveClassMetadata','getClassMetadata','32ubVFxT'];a6_0x47af=function(){return _0x54e2f2;};return a6_0x47af();}a6_0x54ffa9();'use strict';Object[a6_0x524c30(0xd5)](exports,'__esModule',{'value':!![]}),exports[a6_0x524c30(0xcf)]=exports['Intercept']=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require('../types/intercept');function Intercept(_0x464abc){return _0x4db587=>{const _0x4f830a=a6_0x369a,_0x165f87=(0x0,core_1[_0x4f830a(0xe3)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x4f830a(0xd9)])||{};for(let _0x4d075c of Array[_0x4f830a(0xdf)](_0x464abc)?_0x464abc:[_0x464abc]){_0x4d075c=_0x4d075c[_0x4f830a(0xd2)]();!(_0x165f87===null||_0x165f87===void 0x0?void 0x0:_0x165f87[_0x4d075c])&&(_0x165f87[_0x4d075c]=[]);if(_0x165f87[_0x4d075c][_0x4f830a(0xe6)](_0x4db587))continue;_0x165f87[_0x4d075c]['push'](_0x4db587);}(0x0,core_1[_0x4f830a(0xd7)])()(_0x4db587),(0x0,core_1['Scope'])(core_1[_0x4f830a(0xce)][_0x4f830a(0xd8)])(_0x4db587),(0x0,core_1[_0x4f830a(0xe2)])(intercept_1['INTERCEPT_KEY'],_0x165f87,intercept_1['InterceptTargetTmp']);};}exports[a6_0x524c30(0xdb)]=Intercept;class IIntercept{async[a6_0x524c30(0xd1)](_0xfb2de2,_0x20c4ae,_0x2773a1){return!![];}}exports[a6_0x524c30(0xcf)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x7e8b90=a7_0x159c;(function(_0x3ed123,_0x518a62){var _0x40729e=a7_0x159c,_0x4d43cc=_0x3ed123();while(!![]){try{var _0x232bde=-parseInt(_0x40729e(0x131))/0x1*(parseInt(_0x40729e(0x13b))/0x2)+-parseInt(_0x40729e(0x147))/0x3+-parseInt(_0x40729e(0x12f))/0x4*(parseInt(_0x40729e(0x128))/0x5)+parseInt(_0x40729e(0x12a))/0x6+-parseInt(_0x40729e(0x130))/0x7*(-parseInt(_0x40729e(0x146))/0x8)+-parseInt(_0x40729e(0x133))/0x9+parseInt(_0x40729e(0x12c))/0xa*(parseInt(_0x40729e(0x13a))/0xb);if(_0x232bde===_0x518a62)break;else _0x4d43cc['push'](_0x4d43cc['shift']());}catch(_0x3524c4){_0x4d43cc['push'](_0x4d43cc['shift']());}}}(a7_0x5043,0x24e6d));var a7_0x305f43=(function(){var _0x369670=!![];return function(_0x10ced4,_0xcd7067){var _0x71710e=_0x369670?function(){var _0x5dfa13=a7_0x159c;if(_0xcd7067){var _0xdb4145=_0xcd7067[_0x5dfa13(0x142)](_0x10ced4,arguments);return _0xcd7067=null,_0xdb4145;}}:function(){};return _0x369670=![],_0x71710e;};}()),a7_0x566d90=a7_0x305f43(this,function(){var _0x264ad8=a7_0x159c;return a7_0x566d90['toString']()[_0x264ad8(0x141)]('(((.+)+)+)+$')[_0x264ad8(0x13d)]()[_0x264ad8(0x148)](a7_0x566d90)['search'](_0x264ad8(0x13f));});function a7_0x159c(_0x3d9b65,_0x12c1ab){var _0x2b6408=a7_0x5043();return a7_0x159c=function(_0x566d90,_0x305f43){_0x566d90=_0x566d90-0x128;var _0x5043d6=_0x2b6408[_0x566d90];return _0x5043d6;},a7_0x159c(_0x3d9b65,_0x12c1ab);}a7_0x566d90();'use strict';var __decorate=this&&this[a7_0x7e8b90(0x12e)]||function(_0x276e3f,_0xc2e5f8,_0x5bcc7d,_0x490305){var _0x36387b=a7_0x7e8b90,_0x3033c1=arguments[_0x36387b(0x132)],_0x4d5dec=_0x3033c1<0x3?_0xc2e5f8:_0x490305===null?_0x490305=Object[_0x36387b(0x140)](_0xc2e5f8,_0x5bcc7d):_0x490305,_0x1463bd;if(typeof Reflect===_0x36387b(0x138)&&typeof Reflect['decorate']===_0x36387b(0x145))_0x4d5dec=Reflect[_0x36387b(0x14b)](_0x276e3f,_0xc2e5f8,_0x5bcc7d,_0x490305);else{for(var _0x50d422=_0x276e3f[_0x36387b(0x132)]-0x1;_0x50d422>=0x0;_0x50d422--)if(_0x1463bd=_0x276e3f[_0x50d422])_0x4d5dec=(_0x3033c1<0x3?_0x1463bd(_0x4d5dec):_0x3033c1>0x3?_0x1463bd(_0xc2e5f8,_0x5bcc7d,_0x4d5dec):_0x1463bd(_0xc2e5f8,_0x5bcc7d))||_0x4d5dec;}return _0x3033c1>0x3&&_0x4d5dec&&Object[_0x36387b(0x143)](_0xc2e5f8,_0x5bcc7d,_0x4d5dec),_0x4d5dec;},__metadata=this&&this[a7_0x7e8b90(0x149)]||function(_0x1067f1,_0x1a12ba){var _0x402cda=a7_0x7e8b90;if(typeof Reflect===_0x402cda(0x138)&&typeof Reflect[_0x402cda(0x13c)]===_0x402cda(0x145))return Reflect[_0x402cda(0x13c)](_0x1067f1,_0x1a12ba);};Object[a7_0x7e8b90(0x143)](exports,a7_0x7e8b90(0x14d),{'value':!![]}),exports[a7_0x7e8b90(0x136)]=void 0x0;function a7_0x5043(){var _0xdc744b=['__decorate','4BHapgz','84BXFfwA','12EJhpga','length','1245528YMinGl','TIMEOUT','HEADERS_CHECKCODE','ApiError','HEADERS_SIGNATURE','object','请求超时,请重试','13739lRtRuv','45278IgckZP','metadata','toString','TIMEOUT_LOGINTIME','(((.+)+)+)+$','getOwnPropertyDescriptor','search','apply','defineProperty','请使用正确的设备','function','67512cZaVKv','75357zWhqzo','constructor','__metadata','请求头信息不完整','decorate','HEADERS_LACK','__esModule','39395BVFgxX','signature验证失败','919266iPfBEy','HEADERS_DEVICE','2720KCUUsv','design:type'];a7_0x5043=function(){return _0xdc744b;};return a7_0x5043();}class ApiError extends AnnError{}ApiError[a7_0x7e8b90(0x134)]=0x19003,ApiError[a7_0x7e8b90(0x14c)]=0x18e72,ApiError[a7_0x7e8b90(0x12b)]=0x18e73,ApiError[a7_0x7e8b90(0x137)]=0x18e74,ApiError[a7_0x7e8b90(0x135)]=0x18e75,ApiError[a7_0x7e8b90(0x13e)]=0x18e76,__decorate([AnnErrorMsg(a7_0x7e8b90(0x139)),__metadata(a7_0x7e8b90(0x12d),Object)],ApiError,a7_0x7e8b90(0x134),void 0x0),__decorate([AnnErrorMsg(a7_0x7e8b90(0x14a)),__metadata('design:type',Object)],ApiError,a7_0x7e8b90(0x14c),void 0x0),__decorate([AnnErrorMsg(a7_0x7e8b90(0x144)),__metadata(a7_0x7e8b90(0x12d),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a7_0x7e8b90(0x129)),__metadata(a7_0x7e8b90(0x12d),Object)],ApiError,a7_0x7e8b90(0x137),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0x7e8b90(0x12d),Object)],ApiError,a7_0x7e8b90(0x13e),void 0x0),exports[a7_0x7e8b90(0x136)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x7369b1=a8_0x1003;function a8_0x1003(_0x5a4c8d,_0x4f70d8){const _0x538830=a8_0x5df3();return a8_0x1003=function(_0x12e82f,_0x1e103c){_0x12e82f=_0x12e82f-0xdc;let _0x5df304=_0x538830[_0x12e82f];return _0x5df304;},a8_0x1003(_0x5a4c8d,_0x4f70d8);}(function(_0x12876a,_0x41ea00){const _0x26c7fb=a8_0x1003,_0x4ce549=_0x12876a();while(!![]){try{const _0x189463=-parseInt(_0x26c7fb(0xe2))/0x1+-parseInt(_0x26c7fb(0xe7))/0x2+parseInt(_0x26c7fb(0xe4))/0x3*(-parseInt(_0x26c7fb(0xde))/0x4)+-parseInt(_0x26c7fb(0xee))/0x5*(-parseInt(_0x26c7fb(0xf1))/0x6)+-parseInt(_0x26c7fb(0xe8))/0x7*(parseInt(_0x26c7fb(0xef))/0x8)+-parseInt(_0x26c7fb(0xdd))/0x9*(-parseInt(_0x26c7fb(0xe9))/0xa)+parseInt(_0x26c7fb(0xf0))/0xb;if(_0x189463===_0x41ea00)break;else _0x4ce549['push'](_0x4ce549['shift']());}catch(_0xe1654){_0x4ce549['push'](_0x4ce549['shift']());}}}(a8_0x5df3,0x1fbe4));const a8_0x1e103c=(function(){let _0x28d7ab=!![];return function(_0x46daa0,_0x2d491d){const _0x35c37c=_0x28d7ab?function(){const _0x411198=a8_0x1003;if(_0x2d491d){const _0x3b8371=_0x2d491d[_0x411198(0xe1)](_0x46daa0,arguments);return _0x2d491d=null,_0x3b8371;}}:function(){};return _0x28d7ab=![],_0x35c37c;};}()),a8_0x12e82f=a8_0x1e103c(this,function(){const _0x294777=a8_0x1003;return a8_0x12e82f[_0x294777(0xe0)]()[_0x294777(0xe6)](_0x294777(0xdf))[_0x294777(0xe0)]()['constructor'](a8_0x12e82f)[_0x294777(0xe6)](_0x294777(0xdf));});a8_0x12e82f();'use strict';Object['defineProperty'](exports,a8_0x7369b1(0xec),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a8_0x7369b1(0xe3)),action_1=require(a8_0x7369b1(0xe5));function getAppsConfig(_0x5711b7){const _0x3c6667=a8_0x7369b1,_0x5940cc=(0x0,core_1[_0x3c6667(0xeb)])(action_1[_0x3c6667(0xdc)],action_1[_0x3c6667(0xed)])||{};return _0x5711b7?lodash['get'](_0x5940cc,_0x5711b7):_0x5940cc;}exports[a8_0x7369b1(0xea)]=getAppsConfig;function a8_0x5df3(){const _0x25fc70=['12VgmGYc','APPSCONFIG_KEY','1665396DhLYWB','177668RQvgTa','(((.+)+)+)+$','toString','apply','79311ELtwEk','@midwayjs/core','12wQGkmf','../types/action','search','414120ISLNEe','308fvuiJA','10sDNevX','getAppsConfig','getClassMetadata','__esModule','AppsConfigTmp','271160OnnKwz','45584yjJJTP','6063893jzEYtI'];a8_0x5df3=function(){return _0x25fc70;};return a8_0x5df3();}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x36d40f=a9_0x509c;(function(_0x514659,_0x40bae7){const _0x585ee9=a9_0x509c,_0x21d6be=_0x514659();while(!![]){try{const _0x40c928=parseInt(_0x585ee9(0x13a))/0x1*(-parseInt(_0x585ee9(0x148))/0x2)+-parseInt(_0x585ee9(0x10b))/0x3*(parseInt(_0x585ee9(0xff))/0x4)+-parseInt(_0x585ee9(0x10f))/0x5*(parseInt(_0x585ee9(0xfb))/0x6)+-parseInt(_0x585ee9(0x12e))/0x7*(parseInt(_0x585ee9(0x113))/0x8)+parseInt(_0x585ee9(0x147))/0x9+parseInt(_0x585ee9(0x144))/0xa+parseInt(_0x585ee9(0x106))/0xb*(parseInt(_0x585ee9(0xfc))/0xc);if(_0x40c928===_0x40bae7)break;else _0x21d6be['push'](_0x21d6be['shift']());}catch(_0x5d15ed){_0x21d6be['push'](_0x21d6be['shift']());}}}(a9_0x2d92,0x6ea5e));const a9_0x5c141e=(function(){let _0x55fbef=!![];return function(_0x138fb9,_0x505a45){const _0x4e1583=_0x55fbef?function(){const _0x553108=a9_0x509c;if(_0x505a45){const _0x3e86d5=_0x505a45[_0x553108(0x12b)](_0x138fb9,arguments);return _0x505a45=null,_0x3e86d5;}}:function(){};return _0x55fbef=![],_0x4e1583;};}()),a9_0x2751f2=a9_0x5c141e(this,function(){const _0x456cda=a9_0x509c;return a9_0x2751f2[_0x456cda(0x125)]()[_0x456cda(0x10c)](_0x456cda(0x12a))[_0x456cda(0x125)]()[_0x456cda(0x117)](a9_0x2751f2)[_0x456cda(0x10c)](_0x456cda(0x12a));});a9_0x2751f2();function a9_0x509c(_0x25de17,_0x2df0a7){const _0x1c1f8e=a9_0x2d92();return a9_0x509c=function(_0x2751f2,_0x5c141e){_0x2751f2=_0x2751f2-0xe6;let _0x2d925c=_0x1c1f8e[_0x2751f2];return _0x2d925c;},a9_0x509c(_0x25de17,_0x2df0a7);}function a9_0x2d92(){const _0x1954a7=['static/apitest','limit','module','route','push','startsWith','getClassMetadata','@midwayjs/core','__esModule','toString','items','Boolean','allow','@anncic-api/validator','(((.+)+)+)+$','apply','flags.presence','WEB_ROUTER_PARAM_KEY','32424mzHCOC','noreq','min','flags.label','QUERY','function','method','FILESTREAM','string','boolean','getRoutes','../types/action','1Ekxzxs','concat','get','test','path','flags.description','routerOptions','intercept','prefix','parameterIndex','3271920WfEmEo','propertyData','endsWith','6004053sOSRXr','1169330AOufeS','FILESSTREAM','title','rules','listModule','array','filter','indexOf','describe','file','String','Object','getMethodParamTypes','summary','routes','文件上传-','getClassExtendedMetadata','iterator','required','request','filepath','header','/static/apitest','length','3463194muiCtg','24MonHoD','pprefix','find','4468DGwbEP','max','keys','key','INJECT_CUSTOM_PARAM','ACTION_ROUTE_KEY','description','5040574CYtOTM','name','RouteParamTypes','ACTION_KEY','children','309zmnPfl','search','type','Number','5JlPGGq','flags.default','substring','default','312EqceOn','body','isArray','tagName','constructor','query','metadata','args','object'];a9_0x2d92=function(){return _0x1954a7;};return a9_0x2d92();}'use strict';Object['defineProperty'](exports,a9_0x36d40f(0x124),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x36d40f(0x129)),core_1=require(a9_0x36d40f(0x123)),core_2=require('@midwayjs/core'),core_3=require(a9_0x36d40f(0x123)),action_1=require(a9_0x36d40f(0x139));function getRoutes(_0xf639ed={'prefix':'/','module':![]}){const _0x35d8f4=a9_0x36d40f;var _0x498a50,_0x5e5012;const _0x37290b=(0x0,core_3[_0x35d8f4(0xe7)])(action_1[_0x35d8f4(0x109)]),_0x414f54={},_0x51b89b=Array['isArray'](_0xf639ed[_0x35d8f4(0xe9)]||[])?_0xf639ed[_0x35d8f4(0xe9)]||[]:[_0xf639ed['filter']];_0x1f50f0:for(const _0x1fe9b7 of _0x37290b){let _0xfd68f1=(0x0,core_3[_0x35d8f4(0x122)])(action_1['ACTION_KEY'],_0x1fe9b7),_0x4644cc=(0x0,core_3[_0x35d8f4(0x122)])(action_1[_0x35d8f4(0x104)],_0x1fe9b7);if(_0xfd68f1&&_0x4644cc){let _0x3d2559=_0xfd68f1['prefix'],_0x330ccc={};if(_0xf639ed['module']&&(0x0,lodash_1['get'])(_0xfd68f1,_0x35d8f4(0x11e),![])!=_0xf639ed['module'])continue _0x1f50f0;else{if(_0xf639ed[_0x35d8f4(0x11e)]===![]&&!!(0x0,lodash_1['get'])(_0xfd68f1,'module',null))continue _0x1f50f0;}if(_0xf639ed['prefix']&&!_0x3d2559[_0x35d8f4(0x121)](_0xf639ed[_0x35d8f4(0x142)]))continue _0x1f50f0;_0x3d2559!=='/'?(_0x330ccc['summary']=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1['routerOptions'][_0x35d8f4(0x116)])||(/^\//[_0x35d8f4(0x13d)](_0x3d2559)?_0x3d2559['split']('/')[0x1]:_0x3d2559),_0x330ccc['description']=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x140)][_0x35d8f4(0x105)])||_0x330ccc['summary'],_0x330ccc['routes']=[]):(_0x330ccc['summary']=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x140)][_0x35d8f4(0x116)])||_0x35d8f4(0x112),_0x330ccc[_0x35d8f4(0x105)]=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x140)][_0x35d8f4(0x105)])||'',_0x330ccc[_0x35d8f4(0xf1)]=[]);_0xf639ed[_0x35d8f4(0xf7)]&&(_0x330ccc[_0x35d8f4(0xf7)]=_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1['filepath']);(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0xfd)])&&(_0x330ccc[_0x35d8f4(0x142)]=_0xfd68f1['pprefix']);(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x11e)])&&(_0x330ccc[_0x35d8f4(0x11e)]=_0xfd68f1[_0x35d8f4(0x11e)]);let _0x2ea1ad=(0x0,core_3[_0x35d8f4(0x122)])(core_2[_0x35d8f4(0x103)],_0x1fe9b7)||{};if(typeof _0x4644cc[Symbol[_0x35d8f4(0xf4)]]===_0x35d8f4(0x133))for(let _0x1349c3 of _0x4644cc){if((_0xf639ed===null||_0xf639ed===void 0x0?void 0x0:_0xf639ed['intercept'])&&!(_0x1349c3===null||_0x1349c3===void 0x0?void 0x0:_0x1349c3[_0x35d8f4(0x141)]))continue;let _0x495a9a={};_0x495a9a[_0x35d8f4(0x134)]=_0x1349c3['requestMethod'],_0x495a9a['route']=(_0x3d2559+_0x1349c3[_0x35d8f4(0x13e)])['replace'](/\/{2,}/g,'/'),_0x495a9a[_0x35d8f4(0xf0)]=(_0x1349c3===null||_0x1349c3===void 0x0?void 0x0:_0x1349c3['routerName'])||_0x330ccc[_0x35d8f4(0xf0)]||_0x35d8f4(0x112),_0x495a9a[_0x35d8f4(0x105)]=(_0x1349c3===null||_0x1349c3===void 0x0?void 0x0:_0x1349c3['description'])||'',_0x495a9a['request']=[];_0x495a9a[_0x35d8f4(0x11f)][_0x35d8f4(0x146)]('/')&&(_0x495a9a[_0x35d8f4(0x11f)]=_0x495a9a[_0x35d8f4(0x11f)][_0x35d8f4(0x111)](0x0,_0x495a9a[_0x35d8f4(0x11f)][_0x35d8f4(0xfa)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x495a9a[_0x35d8f4(0x11f)],_0x35d8f4(0x11c))&&!(0x0,lodash_1[_0x35d8f4(0x121)])(_0x495a9a[_0x35d8f4(0x11f)],_0x35d8f4(0xf9))&&_0x51b89b[_0x35d8f4(0xea)](_0x495a9a['route'])===-0x1){if(!(_0xf639ed===null||_0xf639ed===void 0x0?void 0x0:_0xf639ed[_0x35d8f4(0x12f)])){let _0x166915=(0x0,core_3[_0x35d8f4(0xef)])(new _0x1fe9b7(),_0x1349c3[_0x35d8f4(0x134)]);for(const _0x23b3e7 in _0x166915){let _0x30971d=(_0x498a50=_0x2ea1ad[_0x1349c3['method']])===null||_0x498a50===void 0x0?void 0x0:_0x498a50['find'](_0x19bc4f=>_0x19bc4f[_0x35d8f4(0x143)]==_0x23b3e7&&_0x19bc4f[_0x35d8f4(0x102)]===core_2[_0x35d8f4(0x12d)]&&(_0x19bc4f===null||_0x19bc4f===void 0x0?void 0x0:_0x19bc4f['metadata']));if(_0x30971d===null||_0x30971d===void 0x0?void 0x0:_0x30971d[_0x35d8f4(0x119)]){let _0x59cdb1=convertTypeToString(_0x30971d['metadata'][_0x35d8f4(0x10d)]||0x0);if([_0x35d8f4(0x118),_0x35d8f4(0x114)]['indexOf'](_0x59cdb1)!=-0x1&&_0x30971d[_0x35d8f4(0x119)]['propertyData'][_0x35d8f4(0xea)](':')==-0x1&&!_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0xfe)](_0x562f27=>_0x562f27[_0x35d8f4(0x102)]==_0x30971d[_0x35d8f4(0x119)]['propertyData']))_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0x120)]({'key':_0x30971d[_0x35d8f4(0x119)][_0x35d8f4(0x145)],'title':_0x30971d[_0x35d8f4(0x119)][_0x35d8f4(0x145)],'type':convertSchemaType(_0x166915[_0x30971d[_0x35d8f4(0x143)]][_0x35d8f4(0x107)]),'required':![],'default':'','desc':''});else{if(_0x59cdb1==_0x35d8f4(0xec)){let _0x583400=((_0x5e5012=_0x30971d===null||_0x30971d===void 0x0?void 0x0:_0x30971d[_0x35d8f4(0x119)])===null||_0x5e5012===void 0x0?void 0x0:_0x5e5012[_0x35d8f4(0x145)])||_0x35d8f4(0xec);_0x583400['indexOf'](':')==-0x1&&!_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0xfe)](_0x5c7483=>_0x5c7483[_0x35d8f4(0x102)]==_0x583400&&_0x5c7483[_0x35d8f4(0x10d)]=='file')&&_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0x120)]({'key':_0x583400,'title':_0x35d8f4(0xf2)+_0x583400,'type':_0x35d8f4(0xec),'required':!![],'default':'','desc':''});}}}else{const _0x3ab97c=(0x0,core_3[_0x35d8f4(0xf3)])(validator_1['RULES_KEY'],_0x166915[_0x23b3e7]);_0x3ab97c&&_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0x120)](...getJoiRequest(_0x3ab97c));}}}_0x330ccc['routes'][_0x35d8f4(0x120)](_0x495a9a);}}if(_0x330ccc['routes'][_0x35d8f4(0xfa)]>0x0){let _0x10913d=_0x414f54[_0x3d2559];_0x10913d?(_0x10913d[_0x35d8f4(0xf0)]!=_0x330ccc['summary']&&(_0x10913d[_0x35d8f4(0xf0)]=_0x10913d[_0x35d8f4(0xf0)]+','+_0x330ccc[_0x35d8f4(0xf0)]),_0x10913d[_0x35d8f4(0x105)]!=_0x330ccc[_0x35d8f4(0x105)]&&(_0x10913d[_0x35d8f4(0x105)]=_0x10913d['description']+','+_0x330ccc['description']),_0x10913d[_0x35d8f4(0xf1)]=_0x10913d['routes'][_0x35d8f4(0x13b)](_0x330ccc[_0x35d8f4(0xf1)]),_0x414f54[_0x3d2559]=_0x10913d):_0x414f54[_0x3d2559]=_0x330ccc;}}}return _0x414f54;}exports[a9_0x36d40f(0x138)]=getRoutes;function getJoiRequest(_0x29f370){const _0x1b4934=a9_0x36d40f,_0xfd66fe=[];for(let _0x1a2a5c in _0x29f370){const _0x566eb0={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x158b1a=typeof _0x29f370[_0x1a2a5c][_0x1b4934(0xeb)]=='function'?_0x29f370[_0x1a2a5c][_0x1b4934(0xeb)]():_0x29f370[_0x1a2a5c];_0x566eb0[_0x1b4934(0x102)]=_0x1a2a5c,_0x566eb0[_0x1b4934(0x10d)]=_0x158b1a['type'],_0x566eb0[_0x1b4934(0x14a)]=(0x0,lodash_1['get'])(_0x158b1a,_0x1b4934(0x131),_0x1a2a5c),_0x566eb0['default']=(0x0,lodash_1[_0x1b4934(0x13c)])(_0x158b1a,_0x1b4934(0x110),''),_0x566eb0[_0x1b4934(0xf5)]=(0x0,lodash_1[_0x1b4934(0x13c)])(_0x158b1a,_0x1b4934(0x12c),'')==_0x1b4934(0xf5),_0x566eb0['description']=(0x0,lodash_1[_0x1b4934(0x13c)])(_0x158b1a,_0x1b4934(0x13f),'');if(_0x158b1a[_0x1b4934(0x10d)]=='object')_0x566eb0[_0x1b4934(0x10a)]=getJoiRequest(_0x158b1a[_0x1b4934(0x101)]);else{if(_0x158b1a[_0x1b4934(0x10d)]==_0x1b4934(0xe8)&&_0x158b1a['items']&&Array['isArray'](_0x158b1a[_0x1b4934(0x126)])&&_0x158b1a[_0x1b4934(0x126)][0x0]){}}_0x158b1a[_0x1b4934(0x128)]&&Array[_0x1b4934(0x115)](_0x158b1a[_0x1b4934(0x128)])&&_0x158b1a['allow'][_0x1b4934(0xfa)]>0x0&&(_0x566eb0['description']='只允许:['+_0x158b1a['allow']['join'](',')+'];'+_0x566eb0[_0x1b4934(0x105)]);if(_0x566eb0[_0x1b4934(0x102)]&&_0x566eb0['type']){const _0x722da9={};for(const _0x24c007 of _0x158b1a[_0x1b4934(0xe6)]||[]){if(_0x24c007[_0x1b4934(0x107)]===_0x1b4934(0x130)&&_0x24c007[_0x1b4934(0x11a)])_0x722da9[_0x1b4934(0x130)]=_0x24c007[_0x1b4934(0x11a)][_0x1b4934(0x11d)];else _0x24c007[_0x1b4934(0x107)]===_0x1b4934(0x100)&&(_0x722da9[_0x1b4934(0x100)]=_0x24c007['args'][_0x1b4934(0x11d)]);}_0x566eb0[_0x1b4934(0xe6)]=_0x722da9;}_0x566eb0[_0x1b4934(0x102)]&&_0x566eb0[_0x1b4934(0x14a)]&&_0xfd66fe[_0x1b4934(0x120)](_0x566eb0);}return _0xfd66fe;}function convertSchemaType(_0x490208){const _0x14847f=a9_0x36d40f;switch(_0x490208){case _0x14847f(0xee):return _0x14847f(0x11b);case _0x14847f(0x127):return _0x14847f(0x137);case _0x14847f(0x10e):return'number';case _0x14847f(0xed):return _0x14847f(0x136);case'File':return _0x14847f(0xec);default:return _0x14847f(0x136);}}function convertTypeToString(_0x5652c6){const _0x5c848b=a9_0x36d40f;switch(_0x5652c6){case core_1[_0x5c848b(0x108)]['HEADERS']:return'header';case core_1['RouteParamTypes'][_0x5c848b(0x132)]:return _0x5c848b(0x118);case core_1[_0x5c848b(0x108)]['PARAM']:return _0x5c848b(0x13e);case core_1[_0x5c848b(0x108)]['BODY']:return _0x5c848b(0x114);case core_1[_0x5c848b(0x108)]['FIELDS']:case core_1[_0x5c848b(0x108)][_0x5c848b(0x149)]:case core_1[_0x5c848b(0x108)][_0x5c848b(0x135)]:return _0x5c848b(0xec);default:return _0x5c848b(0xf8);}}
|
|
1
|
+
const a9_0x17ae07=a9_0x4fdb;(function(_0x10ab36,_0x374282){const _0x40ca47=a9_0x4fdb,_0x5d4c48=_0x10ab36();while(!![]){try{const _0x3f3bf8=-parseInt(_0x40ca47(0xc5))/0x1*(-parseInt(_0x40ca47(0xd7))/0x2)+-parseInt(_0x40ca47(0xa5))/0x3*(-parseInt(_0x40ca47(0xae))/0x4)+-parseInt(_0x40ca47(0xce))/0x5+-parseInt(_0x40ca47(0xc7))/0x6*(-parseInt(_0x40ca47(0xd3))/0x7)+parseInt(_0x40ca47(0xcf))/0x8+-parseInt(_0x40ca47(0xa7))/0x9*(parseInt(_0x40ca47(0x87))/0xa)+parseInt(_0x40ca47(0x9e))/0xb*(-parseInt(_0x40ca47(0x8f))/0xc);if(_0x3f3bf8===_0x374282)break;else _0x5d4c48['push'](_0x5d4c48['shift']());}catch(_0x3245f5){_0x5d4c48['push'](_0x5d4c48['shift']());}}}(a9_0x124c,0x33221));const a9_0x251ba5=(function(){let _0xe195ab=!![];return function(_0xe6a548,_0x14dd9e){const _0x21eda0=_0xe195ab?function(){if(_0x14dd9e){const _0xc49f45=_0x14dd9e['apply'](_0xe6a548,arguments);return _0x14dd9e=null,_0xc49f45;}}:function(){};return _0xe195ab=![],_0x21eda0;};}()),a9_0xdec1b8=a9_0x251ba5(this,function(){const _0x5d62e4=a9_0x4fdb;return a9_0xdec1b8[_0x5d62e4(0xc4)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a9_0xdec1b8)[_0x5d62e4(0xc2)](_0x5d62e4(0x88));});a9_0xdec1b8();'use strict';function a9_0x4fdb(_0x380131,_0x40e891){const _0x50351e=a9_0x124c();return a9_0x4fdb=function(_0xdec1b8,_0x251ba5){_0xdec1b8=_0xdec1b8-0x79;let _0x124c50=_0x50351e[_0xdec1b8];return _0x124c50;},a9_0x4fdb(_0x380131,_0x40e891);}Object[a9_0x17ae07(0x7f)](exports,a9_0x17ae07(0xbf),{'value':!![]}),exports[a9_0x17ae07(0xb3)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x17ae07(0x8e)),core_1=require(a9_0x17ae07(0x79)),core_2=require(a9_0x17ae07(0x79)),core_3=require('@midwayjs/core'),action_1=require(a9_0x17ae07(0xa8));function getRoutes(_0x2d9586={'prefix':'/','module':![]}){const _0x2eafce=a9_0x17ae07;var _0x328c7c,_0x4645c9;const _0x16ed39=(0x0,core_3[_0x2eafce(0x9f)])(action_1[_0x2eafce(0xc3)]),_0x4c88fb={},_0x354456=Array[_0x2eafce(0x8b)](_0x2d9586[_0x2eafce(0x97)]||[])?_0x2d9586[_0x2eafce(0x97)]||[]:[_0x2d9586[_0x2eafce(0x97)]];_0x4f4bcd:for(const _0x2b6e99 of _0x16ed39){let _0x46ca3d=(0x0,core_3[_0x2eafce(0xad)])(action_1[_0x2eafce(0xc3)],_0x2b6e99),_0x262cfa=(0x0,core_3[_0x2eafce(0xad)])(action_1['ACTION_ROUTE_KEY'],_0x2b6e99);if(_0x46ca3d&&_0x262cfa){let _0x444e5d=_0x46ca3d[_0x2eafce(0x93)],_0x1c8bd2={};if(_0x2d9586[_0x2eafce(0xbc)]&&(0x0,lodash_1[_0x2eafce(0x7e)])(_0x46ca3d,_0x2eafce(0xbc),![])!=_0x2d9586[_0x2eafce(0xbc)])continue _0x4f4bcd;else{if(_0x2d9586[_0x2eafce(0xbc)]===![]&&!!(0x0,lodash_1[_0x2eafce(0x7e)])(_0x46ca3d,_0x2eafce(0xbc),null))continue _0x4f4bcd;}if(_0x2d9586[_0x2eafce(0x93)]&&!_0x444e5d[_0x2eafce(0x7a)](_0x2d9586['prefix']))continue _0x4f4bcd;_0x444e5d!=='/'?(_0x1c8bd2[_0x2eafce(0xb9)]=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)][_0x2eafce(0xb8)])||(/^\//[_0x2eafce(0x9c)](_0x444e5d)?_0x444e5d[_0x2eafce(0xac)]('/')[0x1]:_0x444e5d),_0x1c8bd2[_0x2eafce(0xaa)]=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)][_0x2eafce(0xaa)])||_0x1c8bd2[_0x2eafce(0xb9)],_0x1c8bd2['routes']=[]):(_0x1c8bd2[_0x2eafce(0xb9)]=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)]['tagName'])||_0x2eafce(0x9a),_0x1c8bd2['description']=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)][_0x2eafce(0xaa)])||'',_0x1c8bd2['routes']=[]);_0x2d9586[_0x2eafce(0x8c)]&&(_0x1c8bd2[_0x2eafce(0x8c)]=_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x8c)]);(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0xab)])&&(_0x1c8bd2[_0x2eafce(0x93)]=_0x46ca3d[_0x2eafce(0xab)]);(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0xbc)])&&(_0x1c8bd2[_0x2eafce(0xbc)]=_0x46ca3d['module']);let _0x3d0c8a=(0x0,core_3[_0x2eafce(0xad)])(core_2[_0x2eafce(0xa0)],_0x2b6e99)||{};if(typeof _0x262cfa[Symbol[_0x2eafce(0xd1)]]===_0x2eafce(0xcb))for(let _0x1dac34 of _0x262cfa){if((_0x2d9586===null||_0x2d9586===void 0x0?void 0x0:_0x2d9586[_0x2eafce(0x99)])&&!(_0x1dac34===null||_0x1dac34===void 0x0?void 0x0:_0x1dac34['intercept']))continue;let _0x20c621={};_0x20c621[_0x2eafce(0xbd)]=_0x1dac34[_0x2eafce(0xcd)],_0x20c621[_0x2eafce(0x98)]=(_0x444e5d+_0x1dac34[_0x2eafce(0x9b)])[_0x2eafce(0xb7)](/\/{2,}/g,'/'),_0x20c621[_0x2eafce(0xb9)]=(_0x1dac34===null||_0x1dac34===void 0x0?void 0x0:_0x1dac34[_0x2eafce(0xd2)])||_0x1c8bd2[_0x2eafce(0xb9)]||_0x2eafce(0x9a),_0x20c621[_0x2eafce(0xaa)]=(_0x1dac34===null||_0x1dac34===void 0x0?void 0x0:_0x1dac34['description'])||'',_0x20c621[_0x2eafce(0xaf)]=[];_0x20c621[_0x2eafce(0x98)][_0x2eafce(0x90)]('/')&&(_0x20c621[_0x2eafce(0x98)]=_0x20c621[_0x2eafce(0x98)]['substring'](0x0,_0x20c621[_0x2eafce(0x98)][_0x2eafce(0xa1)]-0x1));if(!(0x0,lodash_1[_0x2eafce(0x7a)])(_0x20c621['route'],'static/apitest')&&!(0x0,lodash_1[_0x2eafce(0x7a)])(_0x20c621[_0x2eafce(0x98)],'/static/apitest')&&_0x354456[_0x2eafce(0xc9)](_0x20c621[_0x2eafce(0x98)])===-0x1){if(!(_0x2d9586===null||_0x2d9586===void 0x0?void 0x0:_0x2d9586[_0x2eafce(0xca)])){let _0x5dc4bb=(0x0,core_3['getMethodParamTypes'])(new _0x2b6e99(),_0x1dac34[_0x2eafce(0xbd)]);for(const _0x24196e in _0x5dc4bb){let _0x3a09a9=(_0x328c7c=_0x3d0c8a[_0x1dac34[_0x2eafce(0xbd)]])===null||_0x328c7c===void 0x0?void 0x0:_0x328c7c[_0x2eafce(0x8a)](_0x41d73b=>_0x41d73b[_0x2eafce(0xba)]==_0x24196e&&_0x41d73b[_0x2eafce(0x7c)]===core_2[_0x2eafce(0xa4)]&&(_0x41d73b===null||_0x41d73b===void 0x0?void 0x0:_0x41d73b[_0x2eafce(0x94)]));if(_0x3a09a9===null||_0x3a09a9===void 0x0?void 0x0:_0x3a09a9[_0x2eafce(0x94)]){let _0x849cfa=convertTypeToString(_0x3a09a9['metadata'][_0x2eafce(0xc8)]||0x0);if(['query','body'][_0x2eafce(0xc9)](_0x849cfa)!=-0x1&&_0x3a09a9[_0x2eafce(0x94)]['propertyData'][_0x2eafce(0xc9)](':')==-0x1&&!_0x20c621[_0x2eafce(0xaf)][_0x2eafce(0x8a)](_0x11e82d=>_0x11e82d[_0x2eafce(0x7c)]==_0x3a09a9['metadata']['propertyData']))_0x20c621['request']['push']({'key':_0x3a09a9[_0x2eafce(0x94)][_0x2eafce(0xc1)],'title':_0x3a09a9[_0x2eafce(0x94)][_0x2eafce(0xc1)],'type':convertSchemaType(_0x5dc4bb[_0x3a09a9[_0x2eafce(0xba)]][_0x2eafce(0xd0)]),'required':![],'default':'','desc':''});else{if(_0x849cfa==_0x2eafce(0x96)){let _0x1a8985=((_0x4645c9=_0x3a09a9===null||_0x3a09a9===void 0x0?void 0x0:_0x3a09a9[_0x2eafce(0x94)])===null||_0x4645c9===void 0x0?void 0x0:_0x4645c9[_0x2eafce(0xc1)])||'file';_0x1a8985[_0x2eafce(0xc9)](':')==-0x1&&!_0x20c621[_0x2eafce(0xaf)][_0x2eafce(0x8a)](_0x409e19=>_0x409e19[_0x2eafce(0x7c)]==_0x1a8985&&_0x409e19[_0x2eafce(0xc8)]=='file')&&_0x20c621['request']['push']({'key':_0x1a8985,'title':'文件上传-'+_0x1a8985,'type':_0x2eafce(0x96),'required':!![],'default':'','desc':''});}}}else{const _0x1204fc=(0x0,core_3[_0x2eafce(0x86)])(validator_1[_0x2eafce(0xa6)],_0x5dc4bb[_0x24196e]);_0x1204fc&&_0x20c621[_0x2eafce(0xaf)][_0x2eafce(0xa2)](...getJoiRequest(_0x1204fc));}}}_0x1c8bd2[_0x2eafce(0xd9)][_0x2eafce(0xa2)](_0x20c621);}}if(_0x1c8bd2['routes'][_0x2eafce(0xa1)]>0x0){let _0x10952d=_0x4c88fb[_0x444e5d];_0x10952d?(_0x10952d[_0x2eafce(0xb9)]!=_0x1c8bd2['summary']&&(_0x10952d[_0x2eafce(0xb9)]=_0x10952d[_0x2eafce(0xb9)]+','+_0x1c8bd2[_0x2eafce(0xb9)]),_0x10952d['description']!=_0x1c8bd2[_0x2eafce(0xaa)]&&(_0x10952d[_0x2eafce(0xaa)]=_0x10952d[_0x2eafce(0xaa)]+','+_0x1c8bd2['description']),_0x10952d['routes']=_0x10952d[_0x2eafce(0xd9)]['concat'](_0x1c8bd2[_0x2eafce(0xd9)]),_0x4c88fb[_0x444e5d]=_0x10952d):_0x4c88fb[_0x444e5d]=_0x1c8bd2;}}}return _0x4c88fb;}exports[a9_0x17ae07(0xb3)]=getRoutes;function getJoiRequest(_0xacbc27){const _0x8ba577=a9_0x17ae07,_0x694a47=[];for(let _0x3070ae in _0xacbc27){const _0xcaa72f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x20d9c2=typeof _0xacbc27[_0x3070ae][_0x8ba577(0xbb)]=='function'?_0xacbc27[_0x3070ae][_0x8ba577(0xbb)]():_0xacbc27[_0x3070ae];_0xcaa72f[_0x8ba577(0x7c)]=_0x3070ae,_0xcaa72f['type']=_0x20d9c2[_0x8ba577(0xc8)],_0xcaa72f[_0x8ba577(0xc0)]=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xb4),_0x3070ae),_0xcaa72f[_0x8ba577(0x9a)]=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xd4),''),_0xcaa72f['required']=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xb0),'')==_0x8ba577(0x89),_0xcaa72f[_0x8ba577(0xaa)]=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xb1),'');if(_0x20d9c2[_0x8ba577(0xc8)]==_0x8ba577(0xbe))_0xcaa72f[_0x8ba577(0x81)]=getJoiRequest(_0x20d9c2['keys']);else{if(_0x20d9c2[_0x8ba577(0xc8)]=='array'&&_0x20d9c2['items']&&Array[_0x8ba577(0x8b)](_0x20d9c2['items'])&&_0x20d9c2[_0x8ba577(0x8d)][0x0]){}}_0x20d9c2[_0x8ba577(0xcc)]&&Array[_0x8ba577(0x8b)](_0x20d9c2[_0x8ba577(0xcc)])&&_0x20d9c2['allow'][_0x8ba577(0xa1)]>0x0&&(_0xcaa72f[_0x8ba577(0xaa)]=_0x8ba577(0xa9)+_0x20d9c2['allow'][_0x8ba577(0xb6)](',')+'];'+_0xcaa72f['description']);if(_0xcaa72f[_0x8ba577(0x7c)]&&_0xcaa72f[_0x8ba577(0xc8)]){const _0x18f4f1={};for(const _0x2c2b84 of _0x20d9c2[_0x8ba577(0x95)]||[]){if(_0x2c2b84[_0x8ba577(0xd0)]===_0x8ba577(0xa3)&&_0x2c2b84[_0x8ba577(0xd8)])_0x18f4f1[_0x8ba577(0xa3)]=_0x2c2b84['args'][_0x8ba577(0x85)];else _0x2c2b84[_0x8ba577(0xd0)]===_0x8ba577(0x7b)&&(_0x18f4f1[_0x8ba577(0x7b)]=_0x2c2b84[_0x8ba577(0xd8)][_0x8ba577(0x85)]);}_0xcaa72f[_0x8ba577(0x95)]=_0x18f4f1;}_0xcaa72f[_0x8ba577(0x7c)]&&_0xcaa72f[_0x8ba577(0xc0)]&&_0x694a47[_0x8ba577(0xa2)](_0xcaa72f);}return _0x694a47;}function convertSchemaType(_0x5a2254){const _0x4d1bac=a9_0x17ae07;switch(_0x5a2254){case'Object':return _0x4d1bac(0xbe);case _0x4d1bac(0xd6):return _0x4d1bac(0x9d);case _0x4d1bac(0x7d):return'number';case _0x4d1bac(0xc6):return'string';case _0x4d1bac(0xb5):return _0x4d1bac(0x96);default:return'string';}}function a9_0x124c(){const _0xd095a5=['query','children','FILESTREAM','RouteParamTypes','PARAM','limit','getClassExtendedMetadata','10RsksGv','(((.+)+)+)+$','required','find','isArray','filepath','items','@anncic-api/validator','745644uOXGlx','endsWith','routerOptions','header','prefix','metadata','rules','file','filter','route','intercept','default','path','test','boolean','33aeknGV','listModule','INJECT_CUSTOM_PARAM','length','push','min','WEB_ROUTER_PARAM_KEY','18687KUXPty','RULES_KEY','2857383qqcpNK','../types/action','只允许:[','description','pprefix','split','getClassMetadata','4gGmMMx','request','flags.presence','flags.description','QUERY','getRoutes','flags.label','File','join','replace','tagName','summary','parameterIndex','describe','module','method','object','__esModule','title','propertyData','search','ACTION_KEY','toString','36226nvPiPc','String','50214CpdoTs','type','indexOf','noreq','function','allow','requestMethod','922880oDeEda','3319128zpyimz','name','iterator','routerName','217EIIVVT','flags.default','body','Boolean','12gFJskA','args','routes','@midwayjs/core','startsWith','max','key','Number','get','defineProperty'];a9_0x124c=function(){return _0xd095a5;};return a9_0x124c();}function convertTypeToString(_0x4a1661){const _0x56edb2=a9_0x17ae07;switch(_0x4a1661){case core_1['RouteParamTypes']['HEADERS']:return _0x56edb2(0x92);case core_1[_0x56edb2(0x83)][_0x56edb2(0xb2)]:return _0x56edb2(0x80);case core_1[_0x56edb2(0x83)][_0x56edb2(0x84)]:return _0x56edb2(0x9b);case core_1['RouteParamTypes']['BODY']:return _0x56edb2(0xd5);case core_1[_0x56edb2(0x83)]['FIELDS']:case core_1[_0x56edb2(0x83)]['FILESSTREAM']:case core_1['RouteParamTypes'][_0x56edb2(0x82)]:return _0x56edb2(0x96);default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x9c4771=a10_0x22fe;(function(_0x467230,_0x521d7e){var _0x489583=a10_0x22fe,_0x2b0422=_0x467230();while(!![]){try{var _0x3061d2=parseInt(_0x489583(0x96))/0x1+parseInt(_0x489583(0xc6))/0x2*(-parseInt(_0x489583(0xc5))/0x3)+parseInt(_0x489583(0x93))/0x4+parseInt(_0x489583(0x99))/0x5*(-parseInt(_0x489583(0xbd))/0x6)+parseInt(_0x489583(0xb9))/0x7+parseInt(_0x489583(0x8c))/0x8*(-parseInt(_0x489583(0x8f))/0x9)+parseInt(_0x489583(0xca))/0xa*(-parseInt(_0x489583(0xab))/0xb);if(_0x3061d2===_0x521d7e)break;else _0x2b0422['push'](_0x2b0422['shift']());}catch(_0x351a19){_0x2b0422['push'](_0x2b0422['shift']());}}}(a10_0x31f4,0x65c15));var a10_0x20e28f=(function(){var _0x322aad=!![];return function(_0xcb85d3,_0x5cfa6b){var _0x4dad13=_0x322aad?function(){var _0x4d3e3e=a10_0x22fe;if(_0x5cfa6b){var _0x342295=_0x5cfa6b[_0x4d3e3e(0x94)](_0xcb85d3,arguments);return _0x5cfa6b=null,_0x342295;}}:function(){};return _0x322aad=![],_0x4dad13;};}()),a10_0x19bc70=a10_0x20e28f(this,function(){var _0x5578e7=a10_0x22fe;return a10_0x19bc70[_0x5578e7(0xc8)]()[_0x5578e7(0x8d)]('(((.+)+)+)+$')[_0x5578e7(0xc8)]()[_0x5578e7(0xb0)](a10_0x19bc70)['search'](_0x5578e7(0xa2));});a10_0x19bc70();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a10_0x9c4771(0x8e)]?function(_0x253b3a,_0x46ddcd,_0x47d4a2,_0x27b8c6){var _0x1348c7=a10_0x9c4771;if(_0x27b8c6===undefined)_0x27b8c6=_0x47d4a2;var _0x2936c4=Object[_0x1348c7(0xc0)](_0x46ddcd,_0x47d4a2);(!_0x2936c4||(_0x1348c7(0xaf)in _0x2936c4?!_0x46ddcd[_0x1348c7(0xc2)]:_0x2936c4[_0x1348c7(0xcd)]||_0x2936c4[_0x1348c7(0xbe)]))&&(_0x2936c4={'enumerable':!![],'get':function(){return _0x46ddcd[_0x47d4a2];}}),Object[_0x1348c7(0x9d)](_0x253b3a,_0x27b8c6,_0x2936c4);}:function(_0x2568c9,_0x599395,_0x3dce17,_0x2f02d5){if(_0x2f02d5===undefined)_0x2f02d5=_0x3dce17;_0x2568c9[_0x2f02d5]=_0x599395[_0x3dce17];}),__exportStar=this&&this['__exportStar']||function(_0x4632de,_0x29fb80){var _0x3d1202=a10_0x9c4771;for(var _0x5e045f in _0x4632de)if(_0x5e045f!=='default'&&!Object[_0x3d1202(0xa6)][_0x3d1202(0xc4)]['call'](_0x29fb80,_0x5e045f))__createBinding(_0x29fb80,_0x4632de,_0x5e045f);};Object['defineProperty'](exports,a10_0x9c4771(0xc2),{'value':!![]}),exports[a10_0x9c4771(0xbb)]=exports[a10_0x9c4771(0xb6)]=exports[a10_0x9c4771(0xbf)]=exports[a10_0x9c4771(0xa8)]=exports[a10_0x9c4771(0xb1)]=exports[a10_0x9c4771(0xa4)]=exports[a10_0x9c4771(0x97)]=exports['Config']=exports['App']=exports[a10_0x9c4771(0x9c)]=exports['Headers']=exports[a10_0x9c4771(0x98)]=exports[a10_0x9c4771(0xc1)]=exports['Body']=exports['Fields']=exports[a10_0x9c4771(0xac)]=exports[a10_0x9c4771(0xc9)]=exports[a10_0x9c4771(0xbc)]=exports[a10_0x9c4771(0xb8)]=exports[a10_0x9c4771(0xba)]=exports[a10_0x9c4771(0x8b)]=exports[a10_0x9c4771(0xcb)]=exports[a10_0x9c4771(0xa3)]=exports[a10_0x9c4771(0xaa)]=exports[a10_0x9c4771(0xa1)]=exports[a10_0x9c4771(0xb7)]=exports[a10_0x9c4771(0x95)]=exports[a10_0x9c4771(0xc7)]=exports['Apitest']=exports[a10_0x9c4771(0xb4)]=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xbb),{'enumerable':!![],'get':function(){var _0x4018d9=a10_0x9c4771;return getAppsConfig_1[_0x4018d9(0xbb)];}}),__exportStar(require(a10_0x9c4771(0xb5)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a10_0x9c4771(0xb2));Object['defineProperty'](exports,a10_0x9c4771(0x9f),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a10_0x9c4771(0xc3));Object['defineProperty'](exports,a10_0x9c4771(0xb4),{'enumerable':!![],'get':function(){var _0x1e5847=a10_0x9c4771;return Action_1[_0x1e5847(0xb4)];}});var ActionApitest_1=require(a10_0x9c4771(0xa7));Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0x9e),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a10_0x9c4771(0x91));Object[a10_0x9c4771(0x9d)](exports,'Intercept',{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a10_0x9c4771(0x9d)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x219eff=a10_0x9c4771;return Intercept_1[_0x219eff(0x95)];}});var getRoutes_1=require(a10_0x9c4771(0xad));function a10_0x22fe(_0x136607,_0x15133e){var _0x53205d=a10_0x31f4();return a10_0x22fe=function(_0x19bc70,_0x20e28f){_0x19bc70=_0x19bc70-0x8b;var _0x31f43f=_0x53205d[_0x19bc70];return _0x31f43f;},a10_0x22fe(_0x136607,_0x15133e);}Object[a10_0x9c4771(0x9d)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x3dbc45=a10_0x9c4771;return getRoutes_1[_0x3dbc45(0xb7)];}});var ApiError_1=require('./exception/ApiError');Object[a10_0x9c4771(0x9d)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x50c0b2=a10_0x9c4771;return ApiError_1[_0x50c0b2(0xa1)];}});var cache_1=require(a10_0x9c4771(0xa9));Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xaa),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xa3),{'enumerable':!![],'get':function(){var _0x4f714e=a10_0x9c4771;return event_1[_0x4f714e(0xa3)];}});var ApiService_1=require(a10_0x9c4771(0xb3));Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xcb),{'enumerable':!![],'get':function(){var _0x52ad42=a10_0x9c4771;return ApiService_1[_0x52ad42(0xcb)];}});var ExcelService_1=require('./service/ExcelService');Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0x8b),{'enumerable':!![],'get':function(){var _0x2347aa=a10_0x9c4771;return ExcelService_1[_0x2347aa(0x8b)];}});var validator_1=require(a10_0x9c4771(0x92));Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xba),{'enumerable':!![],'get':function(){var _0x91f0b5=a10_0x9c4771;return validator_1[_0x91f0b5(0xba)];}}),Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x367352=a10_0x9c4771;return validator_1[_0x367352(0xb8)];}});var configuration_1=require(a10_0x9c4771(0xa0));Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xbc),{'enumerable':!![],'get':function(){var _0xe07160=a10_0x9c4771;return configuration_1[_0xe07160(0x90)];}});var core_1=require(a10_0x9c4771(0xae));Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xc9),{'enumerable':!![],'get':function(){var _0x26f8d2=a10_0x9c4771;return core_1[_0x26f8d2(0xc9)];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xac),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xa5),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0x9b),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xc1),{'enumerable':!![],'get':function(){var _0x35beaa=a10_0x9c4771;return core_1[_0x35beaa(0xc1)];}}),Object['defineProperty'](exports,a10_0x9c4771(0x98),{'enumerable':!![],'get':function(){var _0xeb1fdb=a10_0x9c4771;return core_1[_0xeb1fdb(0x98)];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xcc),{'enumerable':!![],'get':function(){var _0x486764=a10_0x9c4771;return core_1[_0x486764(0xcc)];}}),Object['defineProperty'](exports,a10_0x9c4771(0x9c),{'enumerable':!![],'get':function(){var _0x2ac10b=a10_0x9c4771;return core_1[_0x2ac10b(0x9c)];}});var core_2=require(a10_0x9c4771(0xae));function a10_0x31f4(){var _0x8b7f83=['defineProperty','Apitest','Api','./configuration','ApiError','(((.+)+)+)+$','EventService','Provide','Fields','prototype','./decorator/ActionApitest','Scope','@anncic-api/cache','CacheService','11zRaxUn','Files','./helper/getRoutes','@midwayjs/core','get','constructor','Inject','./decorator/ActionApi','./service/ApiService','Action','./types/common','ScopeEnum','getRoutes','ValidatorService','5189569HCvYmO','ValidatorError','getAppsConfig','Configuration','824934OyjLgL','configurable','Singleton','getOwnPropertyDescriptor','Param','__esModule','./decorator/Action','hasOwnProperty','149181GMaTmz','8iyLXQJ','Intercept','toString','File','5498950QiGohp','ApiService','Headers','writable','ExcelService','16XEFoMi','search','create','856161jYJiVh','CustomConfiguration','./decorator/Intercept','@anncic-api/validator','566592ISoaQw','apply','IIntercept','610324qiVmJQ','Logger','Query','5xgjIFT','App','Body','Init'];a10_0x31f4=function(){return _0x8b7f83;};return a10_0x31f4();}Object['defineProperty'](exports,a10_0x9c4771(0x9a),{'enumerable':!![],'get':function(){var _0x1be2d8=a10_0x9c4771;return core_2[_0x1be2d8(0x9a)];}}),Object[a10_0x9c4771(0x9d)](exports,'Config',{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a10_0x9c4771(0x9d)](exports,'Logger',{'enumerable':!![],'get':function(){var _0xcdae66=a10_0x9c4771;return core_2[_0xcdae66(0x97)];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xa4),{'enumerable':!![],'get':function(){var _0x187bb4=a10_0x9c4771;return core_2[_0x187bb4(0xa4)];}}),Object[a10_0x9c4771(0x9d)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x39296b=a10_0x9c4771;return core_2[_0x39296b(0xb1)];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xa8),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xbf),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a10_0x9c4771(0x9d)](exports,a10_0x9c4771(0xb6),{'enumerable':!![],'get':function(){var _0x311f99=a10_0x9c4771;return core_2[_0x311f99(0xb6)];}}),global[a10_0x9c4771(0xbb)]=getAppsConfig_1[a10_0x9c4771(0xbb)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x5c7f5f=a11_0x5af9;(function(_0x3ae267,_0x5e9c84){var _0x579c89=a11_0x5af9,_0x510f09=_0x3ae267();while(!![]){try{var _0x430314=parseInt(_0x579c89(0x17c))/0x1*(-parseInt(_0x579c89(0x14d))/0x2)+-parseInt(_0x579c89(0x13c))/0x3*(parseInt(_0x579c89(0x140))/0x4)+-parseInt(_0x579c89(0x15e))/0x5+parseInt(_0x579c89(0x168))/0x6+-parseInt(_0x579c89(0x165))/0x7*(-parseInt(_0x579c89(0x166))/0x8)+parseInt(_0x579c89(0x145))/0x9*(parseInt(_0x579c89(0x15a))/0xa)+-parseInt(_0x579c89(0x149))/0xb*(-parseInt(_0x579c89(0x16d))/0xc);if(_0x430314===_0x5e9c84)break;else _0x510f09['push'](_0x510f09['shift']());}catch(_0x46242b){_0x510f09['push'](_0x510f09['shift']());}}}(a11_0x249b,0x810af));function a11_0x5af9(_0x4e0cba,_0x3ed16c){var _0x3b6830=a11_0x249b();return a11_0x5af9=function(_0x47afeb,_0x2e3f3c){_0x47afeb=_0x47afeb-0x138;var _0x249bf9=_0x3b6830[_0x47afeb];return _0x249bf9;},a11_0x5af9(_0x4e0cba,_0x3ed16c);}var a11_0x2e3f3c=(function(){var _0x471446=!![];return function(_0x1addef,_0x5eb8cb){var _0x410d4f=_0x471446?function(){if(_0x5eb8cb){var _0x8d3496=_0x5eb8cb['apply'](_0x1addef,arguments);return _0x5eb8cb=null,_0x8d3496;}}:function(){};return _0x471446=![],_0x410d4f;};}()),a11_0x47afeb=a11_0x2e3f3c(this,function(){var _0xcdbbe7=a11_0x5af9;return a11_0x47afeb[_0xcdbbe7(0x156)]()[_0xcdbbe7(0x16c)](_0xcdbbe7(0x13b))[_0xcdbbe7(0x156)]()[_0xcdbbe7(0x15f)](a11_0x47afeb)[_0xcdbbe7(0x16c)](_0xcdbbe7(0x13b));});a11_0x47afeb();'use strict';var __decorate=this&&this[a11_0x5c7f5f(0x178)]||function(_0x1ad4e2,_0xa2fbd4,_0x499d2e,_0x39f471){var _0x438641=a11_0x5c7f5f,_0x521365=arguments[_0x438641(0x160)],_0x10bd91=_0x521365<0x3?_0xa2fbd4:_0x39f471===null?_0x39f471=Object[_0x438641(0x13e)](_0xa2fbd4,_0x499d2e):_0x39f471,_0xe1fd69;if(typeof Reflect===_0x438641(0x16f)&&typeof Reflect[_0x438641(0x13f)]===_0x438641(0x14a))_0x10bd91=Reflect[_0x438641(0x13f)](_0x1ad4e2,_0xa2fbd4,_0x499d2e,_0x39f471);else{for(var _0x49f6ac=_0x1ad4e2['length']-0x1;_0x49f6ac>=0x0;_0x49f6ac--)if(_0xe1fd69=_0x1ad4e2[_0x49f6ac])_0x10bd91=(_0x521365<0x3?_0xe1fd69(_0x10bd91):_0x521365>0x3?_0xe1fd69(_0xa2fbd4,_0x499d2e,_0x10bd91):_0xe1fd69(_0xa2fbd4,_0x499d2e))||_0x10bd91;}return _0x521365>0x3&&_0x10bd91&&Object[_0x438641(0x167)](_0xa2fbd4,_0x499d2e,_0x10bd91),_0x10bd91;},__metadata=this&&this[a11_0x5c7f5f(0x159)]||function(_0x6ac46a,_0x297836){var _0x2740c2=a11_0x5c7f5f;if(typeof Reflect===_0x2740c2(0x16f)&&typeof Reflect[_0x2740c2(0x146)]===_0x2740c2(0x14a))return Reflect['metadata'](_0x6ac46a,_0x297836);};Object[a11_0x5c7f5f(0x167)](exports,a11_0x5c7f5f(0x15b),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a11_0x5c7f5f(0x176)),ApiError_1=require(a11_0x5c7f5f(0x173));function a11_0x249b(){var _0x48aba0=['search','2175912sfmUfq','sort','object','fromEntries','prototype','logintime','../exception/ApiError','TIMEOUT','map','@midwayjs/core','HEADERS_SIGNATURE','__decorate','getcheck','abs','checkcode','2ETgqdc','config','now','HEADERS_CHECKCODE','undefined','(((.+)+)+)+$','3CTtERR','TIMEOUT_LOGINTIME','getOwnPropertyDescriptor','decorate','3308516swBJWi','design:type','MD5','ApiService','toLowerCase','24057JumerR','metadata','device','ScopeEnum','22uFSyke','function','checksign','timeout','451730XwlMtB','ApiError','HEADERS_LACK','join','Provide','logintimeout','HEADERS_DEVICE','secret=','push','toString','token','缺少头信息:signature','__metadata','1230BLDNHQ','__esModule','secret','anncicapi','979240TyOueC','constructor','length','Scope','getsign','password','Config','5957bgMKPC','3256Iszzph','defineProperty','5792868oJINqi','Singleton','requesttime','devices'];a11_0x249b=function(){return _0x48aba0;};return a11_0x249b();}let ApiService=class ApiService{['password'](_0x9ec38){var _0x4dd652=a11_0x5c7f5f,_0x1a0d9f;return _0x9ec38?(0x0,crypto_js_1[_0x4dd652(0x142)])(''+_0x9ec38+(0x0,crypto_js_1[_0x4dd652(0x142)])((0x0,crypto_js_1[_0x4dd652(0x142)])(''+_0x9ec38)['toString']()+(''+((_0x1a0d9f=this['config'])===null||_0x1a0d9f===void 0x0?void 0x0:_0x1a0d9f[_0x4dd652(0x163)])))['toString']())['toString']():'';}[a11_0x5c7f5f(0x179)](_0x4ad181,_0x40bf03,_0x5aab2b=Date[a11_0x5c7f5f(0x138)]()){var _0x3ce1cf=a11_0x5c7f5f;return{'Token':_0x4ad181,'Logintime':_0x5aab2b,'Checkcode':this[_0x3ce1cf(0x17b)](_0x4ad181,_0x40bf03,_0x5aab2b)};}[a11_0x5c7f5f(0x162)](_0x472b07={}){var _0x39d6dd=a11_0x5c7f5f,_0x5f2e17,_0x4b5451;const _0x44672f=[],_0x311f27=Object[_0x39d6dd(0x170)](Object['entries'](_0x472b07)[_0x39d6dd(0x175)](_0x5670f5=>[_0x5670f5[0x0][_0x39d6dd(0x144)](),_0x5670f5[0x1]]));for(let _0x3b2256 of['device',_0x39d6dd(0x16a),'token',_0x39d6dd(0x172),'checkcode']){if(typeof _0x311f27[_0x3b2256]==_0x39d6dd(0x13a))throw new AnnError(ApiError_1[_0x39d6dd(0x14e)]['HEADERS_LACK'],{'message':'缺少头信息:'+_0x3b2256});_0x44672f[_0x39d6dd(0x155)](_0x3b2256+'='+_0x311f27[_0x3b2256]);}_0x311f27['requesttime']&&((_0x5f2e17=_0x311f27['requesttime'])===null||_0x5f2e17===void 0x0?void 0x0:_0x5f2e17[_0x39d6dd(0x160)])==0xa&&(_0x311f27[_0x39d6dd(0x16a)]=_0x311f27['requesttime']*0x3e8);if(this['config'][_0x39d6dd(0x14c)]&&Date[_0x39d6dd(0x138)]()-Math[_0x39d6dd(0x17a)](_0x311f27[_0x39d6dd(0x16a)])>this[_0x39d6dd(0x17d)]['timeout'])throw new AnnError(ApiError_1[_0x39d6dd(0x14e)][_0x39d6dd(0x174)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x311f27['requesttime'],'timestamp':Date[_0x39d6dd(0x138)]()});if((((_0x4b5451=this[_0x39d6dd(0x17d)][_0x39d6dd(0x16b)][_0x311f27['device']])===null||_0x4b5451===void 0x0?void 0x0:_0x4b5451[_0x39d6dd(0x152)])||0x0)>0x0&&Date[_0x39d6dd(0x138)]()-Math[_0x39d6dd(0x17a)](_0x311f27[_0x39d6dd(0x172)])>this['config']['devices'][_0x311f27[_0x39d6dd(0x147)]]['logintimeout'])throw new AnnError(ApiError_1[_0x39d6dd(0x14e)][_0x39d6dd(0x13d)]);if(!this[_0x39d6dd(0x17d)]['devices'][_0x311f27[_0x39d6dd(0x147)]]||!this[_0x39d6dd(0x17d)][_0x39d6dd(0x16b)][_0x311f27[_0x39d6dd(0x147)]]['secret']||!this[_0x39d6dd(0x17d)][_0x39d6dd(0x16b)][_0x311f27[_0x39d6dd(0x147)]][_0x39d6dd(0x17b)])throw new AnnError(ApiError_1[_0x39d6dd(0x14e)][_0x39d6dd(0x153)]);if(_0x311f27['token']&&_0x311f27[_0x39d6dd(0x17b)]!=this[_0x39d6dd(0x17b)](_0x311f27[_0x39d6dd(0x157)],_0x311f27[_0x39d6dd(0x147)],_0x311f27[_0x39d6dd(0x172)]))throw new AnnError(ApiError_1[_0x39d6dd(0x14e)][_0x39d6dd(0x139)]);return _0x44672f[_0x39d6dd(0x155)](_0x39d6dd(0x154)+this[_0x39d6dd(0x17d)][_0x39d6dd(0x16b)][_0x311f27[_0x39d6dd(0x147)]][_0x39d6dd(0x15c)]),(0x0,crypto_js_1['MD5'])(_0x44672f[_0x39d6dd(0x16e)]()[_0x39d6dd(0x150)](''))['toString']();}['checkcode'](_0x3e4fe2,_0x43d156,_0x424f10=Date[a11_0x5c7f5f(0x138)]()){var _0x3d3f8d=a11_0x5c7f5f,_0x4edbd6,_0x265a8b,_0x2f1ad6;if(!((_0x4edbd6=this[_0x3d3f8d(0x17d)])===null||_0x4edbd6===void 0x0?void 0x0:_0x4edbd6[_0x3d3f8d(0x16b)][_0x43d156])||!((_0x2f1ad6=(_0x265a8b=this[_0x3d3f8d(0x17d)])===null||_0x265a8b===void 0x0?void 0x0:_0x265a8b[_0x3d3f8d(0x16b)][_0x43d156])===null||_0x2f1ad6===void 0x0?void 0x0:_0x2f1ad6['checkcode']))throw new AnnError(ApiError_1['ApiError'][_0x3d3f8d(0x153)]);return(0x0,crypto_js_1[_0x3d3f8d(0x142)])(''+_0x3e4fe2+(0x0,crypto_js_1[_0x3d3f8d(0x142)])(''+_0x424f10+(''+this[_0x3d3f8d(0x17d)][_0x3d3f8d(0x16b)][_0x43d156][_0x3d3f8d(0x17b)]))['toString']())[_0x3d3f8d(0x156)]();}[a11_0x5c7f5f(0x14b)](_0x1108c9={}){var _0x4461ed=a11_0x5c7f5f;const _0x47d9f1=Object['fromEntries'](Object['entries'](_0x1108c9)['map'](_0x4d2e8d=>[_0x4d2e8d[0x0][_0x4461ed(0x144)](),_0x4d2e8d[0x1]]));if(!(_0x47d9f1===null||_0x47d9f1===void 0x0?void 0x0:_0x47d9f1['signature']))throw new AnnError(ApiError_1[_0x4461ed(0x14e)][_0x4461ed(0x14f)],{'message':_0x4461ed(0x158)});if((_0x47d9f1===null||_0x47d9f1===void 0x0?void 0x0:_0x47d9f1['signature'])!=this[_0x4461ed(0x162)](_0x47d9f1))throw new AnnError(ApiError_1[_0x4461ed(0x14e)][_0x4461ed(0x177)]);return!![];}};__decorate([(0x0,core_1[a11_0x5c7f5f(0x164)])(a11_0x5c7f5f(0x15d)),__metadata(a11_0x5c7f5f(0x141),Object)],ApiService[a11_0x5c7f5f(0x171)],a11_0x5c7f5f(0x17d),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x5c7f5f(0x151)])(),(0x0,core_1[a11_0x5c7f5f(0x161)])(core_1[a11_0x5c7f5f(0x148)][a11_0x5c7f5f(0x169)])],ApiService),exports[a11_0x5c7f5f(0x143)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x1dc681=a12_0x1f5a;(function(_0x1a2e92,_0x26c2da){const _0x2a8936=a12_0x1f5a,_0x289251=_0x1a2e92();while(!![]){try{const _0x272d64=-parseInt(_0x2a8936(0x216))/0x1+parseInt(_0x2a8936(0x212))/0x2*(-parseInt(_0x2a8936(0x234))/0x3)+parseInt(_0x2a8936(0x226))/0x4+-parseInt(_0x2a8936(0x1ed))/0x5*(parseInt(_0x2a8936(0x211))/0x6)+-parseInt(_0x2a8936(0x223))/0x7*(-parseInt(_0x2a8936(0x1f7))/0x8)+-parseInt(_0x2a8936(0x230))/0x9*(parseInt(_0x2a8936(0x208))/0xa)+parseInt(_0x2a8936(0x220))/0xb;if(_0x272d64===_0x26c2da)break;else _0x289251['push'](_0x289251['shift']());}catch(_0x12231f){_0x289251['push'](_0x289251['shift']());}}}(a12_0x3109,0xa3552));const a12_0xc9995e=(function(){let _0xbf8b89=!![];return function(_0x50d5af,_0x28f4ed){const _0x444282=_0xbf8b89?function(){const _0x200586=a12_0x1f5a;if(_0x28f4ed){const _0x2864e9=_0x28f4ed[_0x200586(0x1ea)](_0x50d5af,arguments);return _0x28f4ed=null,_0x2864e9;}}:function(){};return _0xbf8b89=![],_0x444282;};}()),a12_0x33cbb4=a12_0xc9995e(this,function(){const _0x5d1054=a12_0x1f5a;return a12_0x33cbb4[_0x5d1054(0x1f4)]()['search'](_0x5d1054(0x1f1))[_0x5d1054(0x1f4)]()['constructor'](a12_0x33cbb4)['search'](_0x5d1054(0x1f1));});a12_0x33cbb4();'use strict';var __decorate=this&&this[a12_0x1dc681(0x1e9)]||function(_0x4aa369,_0x6eecea,_0x5cf5cf,_0xbcf376){const _0x200329=a12_0x1dc681;var _0x42da93=arguments[_0x200329(0x20f)],_0x403a93=_0x42da93<0x3?_0x6eecea:_0xbcf376===null?_0xbcf376=Object[_0x200329(0x21b)](_0x6eecea,_0x5cf5cf):_0xbcf376,_0x4070ab;if(typeof Reflect===_0x200329(0x224)&&typeof Reflect['decorate']===_0x200329(0x1fd))_0x403a93=Reflect[_0x200329(0x22d)](_0x4aa369,_0x6eecea,_0x5cf5cf,_0xbcf376);else{for(var _0x3396f7=_0x4aa369[_0x200329(0x20f)]-0x1;_0x3396f7>=0x0;_0x3396f7--)if(_0x4070ab=_0x4aa369[_0x3396f7])_0x403a93=(_0x42da93<0x3?_0x4070ab(_0x403a93):_0x42da93>0x3?_0x4070ab(_0x6eecea,_0x5cf5cf,_0x403a93):_0x4070ab(_0x6eecea,_0x5cf5cf))||_0x403a93;}return _0x42da93>0x3&&_0x403a93&&Object[_0x200329(0x1fc)](_0x6eecea,_0x5cf5cf,_0x403a93),_0x403a93;},__metadata=this&&this['__metadata']||function(_0x5d8b58,_0x7d6a44){const _0x615601=a12_0x1dc681;if(typeof Reflect==='object'&&typeof Reflect[_0x615601(0x20b)]===_0x615601(0x1fd))return Reflect['metadata'](_0x5d8b58,_0x7d6a44);},__param=this&&this[a12_0x1dc681(0x1eb)]||function(_0x5a54e9,_0x352fe3){return function(_0x36106c,_0x13b71a){_0x352fe3(_0x36106c,_0x13b71a,_0x5a54e9);};};Object[a12_0x1dc681(0x1fc)](exports,a12_0x1dc681(0x22f),{'value':!![]}),exports[a12_0x1dc681(0x239)]=exports[a12_0x1dc681(0x222)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a12_0x1dc681(0x1f6)),core_3=require(a12_0x1dc681(0x1f6)),getRoutes_1=require(a12_0x1dc681(0x21f));let ApitestService=class ApitestService{async[a12_0x1dc681(0x215)](_0x10ca8d){const _0x4a7d93=a12_0x1dc681,_0x6488e4=(0x0,getRoutes_1[_0x4a7d93(0x206)])(_0x10ca8d),_0x44994f=[];for(let _0x2dba16 in _0x6488e4){for(let _0x2d4a4e in _0x6488e4[_0x2dba16]['routes']){let _0x12c371=_0x6488e4[_0x2dba16][_0x4a7d93(0x1e5)][_0x2d4a4e],_0x3f9fca=[];for(let _0x1f5e3a in _0x12c371[_0x4a7d93(0x202)]){_0x3f9fca[_0x4a7d93(0x235)](_0x12c371[_0x4a7d93(0x202)][_0x1f5e3a]);}_0x44994f['push']({'title':_0x6488e4[_0x2dba16][_0x4a7d93(0x1f2)]+':'+_0x12c371[_0x4a7d93(0x1f2)],'prefix':_0x6488e4[_0x2dba16]['prefix'],'router':_0x12c371[_0x4a7d93(0x1e6)],'method':_0x12c371['method'],'describe':_0x12c371[_0x4a7d93(0x20d)]||'','filepath':_0x6488e4[_0x2dba16][_0x4a7d93(0x1f3)]||'','request':_0x3f9fca});}}const _0xf41449=(0x0,path_1[_0x4a7d93(0x217)])(__dirname,_0x4a7d93(0x207));return(0x0,fs_1['readFileSync'])(_0xf41449,{'encoding':_0x4a7d93(0x228)})[_0x4a7d93(0x1fb)](/__res__/g,_0x4a7d93(0x214))['replace'](_0x4a7d93(0x1fe),JSON[_0x4a7d93(0x205)](_0x44994f))[_0x4a7d93(0x1fb)](_0x4a7d93(0x1e7),JSON[_0x4a7d93(0x205)](this['config']['devices']));}};function a12_0x3109(){const _0x406d6d=['20QHbVll','MidwayEnvironmentService','isDevelopmentEnvironment','metadata','set','description','content-type','length','design:type','21246XVFswO','4dqumKf','/apiteststatic/*','/apiteststatic/','apidoc','1249726ANcWtn','join','apitesthtml','ctx','Config','getOwnPropertyDescriptor','text/css;\x20charset=utf-8','Controller','Scope','../helper/getRoutes','29036942arFIVl','Get','ApitestService','7jwCwWZ','object','Param','3165376EjgAOa','prototype','utf-8','substring','Singleton','apitest','config','decorate','cache-control','__esModule','3866742RnKVAH','application/javascript;\x20charset=utf-8','design:paramtypes','design:returntype','775122JLOnsS','push','url','extname','/apitest-:module','ApitestStaticController','routes','route','__devices__','Inject','__decorate','apply','__param','../../public/','1660bKMbpp','ScopeEnum','/apitest','/index.html','(((.+)+)+)+$','summary','filepath','toString','.css','@midwayjs/core','8314448KxbRZR','apitestmodule','Request','Environment','replace','defineProperty','function','__apiList__','public,\x20max-age=604800','module','apiteststatic','request','anncicapi','readFileSync','stringify','getRoutes','../../public/index.html'];a12_0x3109=function(){return _0x406d6d;};return a12_0x3109();}function a12_0x1f5a(_0x10f483,_0x55d130){const _0x4bffa0=a12_0x3109();return a12_0x1f5a=function(_0x33cbb4,_0xc9995e){_0x33cbb4=_0x33cbb4-0x1e5;let _0x31090=_0x4bffa0[_0x33cbb4];return _0x31090;},a12_0x1f5a(_0x10f483,_0x55d130);}__decorate([(0x0,core_3[a12_0x1dc681(0x21a)])(a12_0x1dc681(0x203)),__metadata(a12_0x1dc681(0x210),Object)],ApitestService['prototype'],a12_0x1dc681(0x22c),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])('apitest'),(0x0,core_3[a12_0x1dc681(0x21e)])(core_3[a12_0x1dc681(0x1ee)][a12_0x1dc681(0x22a)])],ApitestService),exports[a12_0x1dc681(0x222)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x1dc681(0x218)](){const _0x2c7461=a12_0x1dc681;if(this['apitest']){const _0x212101={'module':![]};return this[_0x2c7461(0x1fa)][_0x2c7461(0x20a)]()&&(_0x212101['filepath']=!![]),await this[_0x2c7461(0x222)]['apidoc'](_0x212101);}return'';}async[a12_0x1dc681(0x1f8)](_0x166857){const _0x451f19=a12_0x1dc681;if(this[_0x451f19(0x22b)]){const _0x3b910e={'module':_0x166857};return this[_0x451f19(0x1fa)]['isDevelopmentEnvironment']()&&(_0x3b910e['filepath']=!![]),await this[_0x451f19(0x222)][_0x451f19(0x215)](_0x3b910e);}return'';}async[a12_0x1dc681(0x201)](){const _0x393b17=a12_0x1dc681;if((0x0,path_1[_0x393b17(0x237)])(this[_0x393b17(0x219)]['request'][_0x393b17(0x236)])){var _0x1302ef=(0x0,path_1[_0x393b17(0x217)])(__dirname,_0x393b17(0x1ec)+this['ctx'][_0x393b17(0x202)]['url'][_0x393b17(0x1fb)](_0x393b17(0x214),'/'));if(_0x1302ef[_0x393b17(0x229)](_0x1302ef[_0x393b17(0x20f)]-0xb)!=_0x393b17(0x1f0)){this[_0x393b17(0x219)][_0x393b17(0x20c)](_0x393b17(0x22e),_0x393b17(0x1ff));if((0x0,path_1['extname'])(this['ctx'][_0x393b17(0x202)][_0x393b17(0x236)])=='.js')this['ctx']['set'](_0x393b17(0x20e),_0x393b17(0x231));else(0x0,path_1[_0x393b17(0x237)])(this[_0x393b17(0x219)][_0x393b17(0x202)][_0x393b17(0x236)])==_0x393b17(0x1f5)&&this[_0x393b17(0x219)][_0x393b17(0x20c)](_0x393b17(0x20e),_0x393b17(0x21c));return(0x0,fs_1['existsSync'])(_0x1302ef)&&(0x0,fs_1[_0x393b17(0x204)])(_0x1302ef,{'encoding':_0x393b17(0x228)});}}return'';}};__decorate([(0x0,core_3[a12_0x1dc681(0x1e8)])(),__metadata(a12_0x1dc681(0x210),Object)],ApitestStaticController[a12_0x1dc681(0x227)],a12_0x1dc681(0x219),void 0x0),__decorate([(0x0,core_3[a12_0x1dc681(0x1e8)])(),__metadata(a12_0x1dc681(0x210),core_1[a12_0x1dc681(0x209)])],ApitestStaticController[a12_0x1dc681(0x227)],'Environment',void 0x0),__decorate([(0x0,core_3[a12_0x1dc681(0x1e8)])(),__metadata(a12_0x1dc681(0x210),ApitestService)],ApitestStaticController[a12_0x1dc681(0x227)],a12_0x1dc681(0x222),void 0x0),__decorate([(0x0,core_3[a12_0x1dc681(0x21a)])(a12_0x1dc681(0x22b)),__metadata(a12_0x1dc681(0x210),Boolean)],ApitestStaticController[a12_0x1dc681(0x227)],'apitest',void 0x0),__decorate([(0x0,core_3[a12_0x1dc681(0x21a)])(a12_0x1dc681(0x203)),__metadata(a12_0x1dc681(0x210),Object)],ApitestStaticController[a12_0x1dc681(0x227)],a12_0x1dc681(0x22c),void 0x0),__decorate([(0x0,core_2[a12_0x1dc681(0x221)])(a12_0x1dc681(0x1ef)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a12_0x1dc681(0x233),Promise)],ApitestStaticController['prototype'],'apitesthtml',null),__decorate([(0x0,core_2['Get'])(a12_0x1dc681(0x238)),__param(0x0,(0x0,core_2[a12_0x1dc681(0x225)])(a12_0x1dc681(0x200))),__metadata('design:type',Function),__metadata(a12_0x1dc681(0x232),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x1dc681(0x227)],a12_0x1dc681(0x1f8),null),__decorate([(0x0,core_2[a12_0x1dc681(0x221)])(a12_0x1dc681(0x213)),__metadata(a12_0x1dc681(0x210),Function),__metadata('design:paramtypes',[]),__metadata(a12_0x1dc681(0x233),Promise)],ApitestStaticController[a12_0x1dc681(0x227)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x1dc681(0x21d)])('/'),(0x0,core_3['Scope'])(core_3[a12_0x1dc681(0x1ee)][a12_0x1dc681(0x1f9)])],ApitestStaticController),exports[a12_0x1dc681(0x239)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x2e0679=a13_0x56b4;(function(_0x13086b,_0xa5dfbd){const _0x435207=a13_0x56b4,_0x1f5ade=_0x13086b();while(!![]){try{const _0x52d54=parseInt(_0x435207(0x140))/0x1+parseInt(_0x435207(0x175))/0x2+parseInt(_0x435207(0x15f))/0x3*(-parseInt(_0x435207(0x13c))/0x4)+parseInt(_0x435207(0x14a))/0x5+parseInt(_0x435207(0x13d))/0x6*(parseInt(_0x435207(0x170))/0x7)+-parseInt(_0x435207(0x148))/0x8+-parseInt(_0x435207(0x147))/0x9;if(_0x52d54===_0xa5dfbd)break;else _0x1f5ade['push'](_0x1f5ade['shift']());}catch(_0x5e67bd){_0x1f5ade['push'](_0x1f5ade['shift']());}}}(a13_0x56c2,0xc3ef9));const a13_0x5ab745=(function(){let _0x2181ab=!![];return function(_0x566d07,_0x304408){const _0x1c4485=_0x2181ab?function(){if(_0x304408){const _0x21656a=_0x304408['apply'](_0x566d07,arguments);return _0x304408=null,_0x21656a;}}:function(){};return _0x2181ab=![],_0x1c4485;};}()),a13_0x559570=a13_0x5ab745(this,function(){const _0x5d12b1=a13_0x56b4;return a13_0x559570[_0x5d12b1(0x162)]()[_0x5d12b1(0x15c)](_0x5d12b1(0x165))[_0x5d12b1(0x162)]()[_0x5d12b1(0x164)](a13_0x559570)[_0x5d12b1(0x15c)](_0x5d12b1(0x165));});a13_0x559570();'use strict';function a13_0x56c2(){const _0x23c647=['Workbook','__esModule','getWorksheet','/public/xlsx/','getOwnPropertyDescriptor','length','2091376SwCvhI','substring','header','readFile','push','720388lGeozm','getAppDir','col','design:type','filter','getRow','Provide','parse','mkdirSync','object','getCell','YYYY/MM/DD','findRows','worksheets','defineProperty','ExcelService','eachCell','model','endsWith','44hjmvjc','6yOyesS','frozen','value','1388614qDBxoj','prototype','values','metadata','columns','log','app','4365117rYajxJ','5052896lgFDQN','Scope','3488345YKKCNG','addRow','__decorate','handler','replace','xlsx','koa-send','set','startsWith','existsSync','addWorksheet','cellCount','rowCount','key','export','Api\x20Excel\x20Error:\x20','Sheet\x201','random','search','Singleton','\x20is\x20read\x20fail','225291dunxXD','__metadata','download','toString','.xlsx','constructor','(((.+)+)+)+$','App','ScopeEnum','decorate','function'];a13_0x56c2=function(){return _0x23c647;};return a13_0x56c2();}var __decorate=this&&this[a13_0x2e0679(0x14c)]||function(_0x172bb9,_0x1ab724,_0x394184,_0x1d5dad){const _0x10e437=a13_0x2e0679;var _0x4bb495=arguments[_0x10e437(0x16f)],_0x32b89f=_0x4bb495<0x3?_0x1ab724:_0x1d5dad===null?_0x1d5dad=Object[_0x10e437(0x16e)](_0x1ab724,_0x394184):_0x1d5dad,_0x2c1031;if(typeof Reflect===_0x10e437(0x132)&&typeof Reflect['decorate']===_0x10e437(0x169))_0x32b89f=Reflect[_0x10e437(0x168)](_0x172bb9,_0x1ab724,_0x394184,_0x1d5dad);else{for(var _0x526ccf=_0x172bb9[_0x10e437(0x16f)]-0x1;_0x526ccf>=0x0;_0x526ccf--)if(_0x2c1031=_0x172bb9[_0x526ccf])_0x32b89f=(_0x4bb495<0x3?_0x2c1031(_0x32b89f):_0x4bb495>0x3?_0x2c1031(_0x1ab724,_0x394184,_0x32b89f):_0x2c1031(_0x1ab724,_0x394184))||_0x32b89f;}return _0x4bb495>0x3&&_0x32b89f&&Object['defineProperty'](_0x1ab724,_0x394184,_0x32b89f),_0x32b89f;},__metadata=this&&this[a13_0x2e0679(0x160)]||function(_0x847d95,_0xe00a4d){const _0x4f829d=a13_0x2e0679;if(typeof Reflect===_0x4f829d(0x132)&&typeof Reflect[_0x4f829d(0x143)]===_0x4f829d(0x169))return Reflect['metadata'](_0x847d95,_0xe00a4d);};Object[a13_0x2e0679(0x137)](exports,a13_0x2e0679(0x16b),{'value':!![]}),exports[a13_0x2e0679(0x138)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a13_0x2e0679(0x150)),core_1=require('@midwayjs/core');function a13_0x56b4(_0x322702,_0x335598){const _0x43776c=a13_0x56c2();return a13_0x56b4=function(_0x559570,_0x5ab745){_0x559570=_0x559570-0x12e;let _0x56c28e=_0x43776c[_0x559570];return _0x56c28e;},a13_0x56b4(_0x322702,_0x335598);}let ExcelService=class ExcelService{async[a13_0x2e0679(0x130)](_0x22cded,_0x2f85ca,_0x3b5369=[0x0]){const _0x22054c=a13_0x2e0679;var _0x31cf7a,_0x48c3da;const _0xb00d93=new exceljs[(_0x22054c(0x16a))](),_0x32cd03=[];let _0x48fa60=_0x22cded[_0x22054c(0x14e)](/(\\|\/)/g,'/')[_0x22054c(0x14e)](/\/{2,}/g,'/');!(_0x48fa60===null||_0x48fa60===void 0x0?void 0x0:_0x48fa60['startsWith']('/'))&&(_0x48fa60=this[_0x22054c(0x146)][_0x22054c(0x176)]()+'/'+_0x48fa60);try{await _0xb00d93[_0x22054c(0x14f)][_0x22054c(0x173)](_0x48fa60);}catch(_0x4833c3){return console[_0x22054c(0x145)](_0x22054c(0x159)+_0x48fa60+_0x22054c(0x15e)),_0x32cd03;}for(const _0x1595d4 of _0x3b5369){const _0x349d8c=lodash['isNumber'](_0x1595d4)?((_0x31cf7a=_0xb00d93[_0x22054c(0x136)])===null||_0x31cf7a===void 0x0?void 0x0:_0x31cf7a[_0x1595d4])||undefined:_0xb00d93[_0x22054c(0x16c)](_0x1595d4);if(_0x349d8c){var _0x3e9a13=0x1;const _0x5bae5f=_0x349d8c[_0x22054c(0x12e)](0x1),_0x25f047=await new Promise(_0x13d910=>{const _0x2f71ea=_0x22054c,_0x5058df={};_0x5bae5f[_0x2f71ea(0x139)]((_0x530961,_0x1e0a3b)=>{const _0x2c1c1c=_0x2f71ea;for(const _0x5ef774 of _0x2f85ca){if(_0x530961[_0x2c1c1c(0x13f)]==_0x5ef774[_0x2c1c1c(0x172)])_0x3e9a13=0x2,_0x5058df[_0x5ef774[_0x2c1c1c(0x157)]]={'header':_0x530961[_0x2c1c1c(0x177)],'handler':_0x5ef774['handler']};else{if(!_0x5058df[_0x5ef774[_0x2c1c1c(0x157)]])try{const _0x467399=_0x5bae5f&&_0x5bae5f[_0x2c1c1c(0x133)](_0x5ef774[_0x2c1c1c(0x172)]);_0x467399&&(_0x5058df[_0x5ef774[_0x2c1c1c(0x157)]]={'header':_0x467399[_0x2c1c1c(0x177)],'handler':_0x5ef774['handler']});}catch{}}}_0x5bae5f[_0x2c1c1c(0x155)]==_0x1e0a3b&&_0x13d910(_0x5058df);});});for(const _0x59eaa3 of _0x349d8c[_0x22054c(0x135)](_0x3e9a13,_0x349d8c[_0x22054c(0x156)])){const _0x451612={};for(const _0x5c4bc4 in _0x25f047){if(_0x25f047[_0x5c4bc4][_0x22054c(0x172)]){const _0x2bec62=_0x59eaa3&&_0x59eaa3[_0x22054c(0x133)](_0x25f047[_0x5c4bc4][_0x22054c(0x172)]);try{_0x2bec62[_0x22054c(0x162)]();}catch(_0x4b9d00){_0x2bec62['toString']=()=>{const _0xa714ed=_0x22054c;var _0x451fba;return''+(((_0x451fba=_0x2bec62===null||_0x2bec62===void 0x0?void 0x0:_0x2bec62[_0xa714ed(0x13a)])===null||_0x451fba===void 0x0?void 0x0:_0x451fba[_0xa714ed(0x13f)])||'');};}typeof((_0x48c3da=_0x25f047[_0x5c4bc4])===null||_0x48c3da===void 0x0?void 0x0:_0x48c3da[_0x22054c(0x14d)])==_0x22054c(0x169)?_0x451612[_0x5c4bc4]=await _0x25f047[_0x5c4bc4][_0x22054c(0x14d)](lodash[_0x22054c(0x151)]({},_0x5c4bc4,(_0x2bec62===null||_0x2bec62===void 0x0?void 0x0:_0x2bec62[_0x22054c(0x162)]())||''),_0x2bec62[_0x22054c(0x13a)]):_0x451612[_0x5c4bc4]=(_0x2bec62===null||_0x2bec62===void 0x0?void 0x0:_0x2bec62[_0x22054c(0x162)]())||'';}}Object['keys'](_0x451612)[_0x22054c(0x16f)]>0x0&&Object[_0x22054c(0x142)](_0x451612)[_0x22054c(0x179)](_0x4d9e6f=>_0x4d9e6f!=='')[_0x22054c(0x16f)]>0x0&&_0x32cd03[_0x22054c(0x174)](_0x451612);}}}return _0x32cd03;}async[a13_0x2e0679(0x158)](_0x148ee5,_0x37c5b7,_0x4293fa,_0x9c9c25){const _0x364c90=a13_0x2e0679;var _0x4eb443,_0x36264f;const _0x53341a=new exceljs[(_0x364c90(0x16a))](),_0x5c4a11={},_0x94ad36=[],_0x45a958=_0x53341a[_0x364c90(0x154)](_0x364c90(0x15a),{'views':[{'state':_0x364c90(0x13e),'xSplit':0x1}]});for(const _0xf0d537 in _0x37c5b7){_0x5c4a11[_0x37c5b7[_0xf0d537][_0x364c90(0x157)]]=_0x37c5b7[_0xf0d537][_0x364c90(0x172)],_0x94ad36['push']({'header':_0x37c5b7[_0xf0d537]['header'],'key':(_0x4eb443=_0x37c5b7[_0xf0d537])===null||_0x4eb443===void 0x0?void 0x0:_0x4eb443['key'][_0x364c90(0x14e)](/\./g,'_')});}_0x45a958[_0x364c90(0x144)]=_0x94ad36;for(const _0xd317ed of _0x4293fa){const _0x3cfa68={};for(const _0x198fd1 in _0x37c5b7){typeof((_0x36264f=_0x37c5b7[_0x198fd1])===null||_0x36264f===void 0x0?void 0x0:_0x36264f[_0x364c90(0x14d)])==_0x364c90(0x169)?_0x3cfa68[_0x37c5b7[_0x198fd1]['key']['replace'](/\./g,'_')]=await _0x37c5b7[_0x198fd1]['handler'](_0xd317ed):_0x3cfa68[_0x37c5b7[_0x198fd1][_0x364c90(0x157)][_0x364c90(0x14e)](/\./g,'_')]=lodash['get'](_0xd317ed,_0x37c5b7[_0x198fd1][_0x364c90(0x157)],'');}_0x45a958[_0x364c90(0x14b)](_0x3cfa68);}let _0x481195='';const _0x1efe65=_0x148ee5+'-'+lodash[_0x364c90(0x15b)](0x186a0,0xf423f)+_0x364c90(0x163);if(_0x9c9c25&&_0x9c9c25[_0x364c90(0x152)]('/'))_0x481195=''+_0x9c9c25;else _0x9c9c25&&!_0x9c9c25[_0x364c90(0x152)]('/')&&!_0x9c9c25[_0x364c90(0x152)]('\x5c')?_0x481195=this[_0x364c90(0x146)][_0x364c90(0x176)]()+'/'+_0x9c9c25:_0x481195=this['app'][_0x364c90(0x176)]()+_0x364c90(0x16d)+dayjs()['format'](_0x364c90(0x134));return(_0x481195[_0x364c90(0x13b)]('/')||_0x481195[_0x364c90(0x13b)]('\x5c'))&&(_0x481195=_0x481195[_0x364c90(0x171)](0x0,_0x481195[_0x364c90(0x16f)]-0x1)),_0x481195=_0x481195[_0x364c90(0x14e)](/(\\|\/)/g,'/')[_0x364c90(0x14e)](/\/{2,}/g,'/'),!fs[_0x364c90(0x153)](_0x481195)&&fs[_0x364c90(0x131)](_0x481195,{'recursive':!![]}),await _0x53341a[_0x364c90(0x14f)]['writeFile']((_0x481195+'/'+_0x1efe65)[_0x364c90(0x14e)](/(\\|\/)/g,'/')[_0x364c90(0x14e)](/\/{2,}/g,'/')),{'filename':_0x1efe65,'filepath':(_0x481195[_0x364c90(0x171)]((''+this[_0x364c90(0x146)][_0x364c90(0x176)]())[_0x364c90(0x16f)])+'/'+_0x1efe65)[_0x364c90(0x14e)](/(\\|\/)/g,'/')[_0x364c90(0x14e)](/\/{2,}/g,'/')};}async[a13_0x2e0679(0x161)](_0x4a66c3,_0x35660f){return await koasend(_0x4a66c3,''+_0x35660f);}};__decorate([(0x0,core_1[a13_0x2e0679(0x166)])(),__metadata(a13_0x2e0679(0x178),Object)],ExcelService[a13_0x2e0679(0x141)],a13_0x2e0679(0x146),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x2e0679(0x12f)])(),(0x0,core_1[a13_0x2e0679(0x149)])(core_1[a13_0x2e0679(0x167)][a13_0x2e0679(0x15d)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x2d768a=a14_0x1996;function a14_0x3837(){var _0x5b59f4=['defineProperty','5576784HcHiRr','1503Faerev','anncic-api:apps:config','ACTION_ROUTE_KEY','ACTION_KEY','569865ZPFJqu','33dAxCCe','2395386hYMIDu','APPSCONFIG_KEY','241060CzlwhC','search','5731080SUikvj','5CCvmYw','58516wUvzxj','anncic-api:action:route','(((.+)+)+)+$','constructor','AppsConfigTmp','apply','toString','8978081TmrPMH'];a14_0x3837=function(){return _0x5b59f4;};return a14_0x3837();}(function(_0x2cc37f,_0x2ddccd){var _0x422716=a14_0x1996,_0x35f71b=_0x2cc37f();while(!![]){try{var _0x31f1ec=parseInt(_0x422716(0x206))/0x1+parseInt(_0x422716(0x208))/0x2+-parseInt(_0x422716(0x207))/0x3*(-parseInt(_0x422716(0x1f8))/0x4)+-parseInt(_0x422716(0x1f7))/0x5*(-parseInt(_0x422716(0x201))/0x6)+parseInt(_0x422716(0x1ff))/0x7+parseInt(_0x422716(0x1f6))/0x8+parseInt(_0x422716(0x202))/0x9*(-parseInt(_0x422716(0x1f4))/0xa);if(_0x31f1ec===_0x2ddccd)break;else _0x35f71b['push'](_0x35f71b['shift']());}catch(_0x3989f1){_0x35f71b['push'](_0x35f71b['shift']());}}}(a14_0x3837,0xcaee7));var a14_0x583ac3=(function(){var _0x23cc41=!![];return function(_0x2d6330,_0x44510b){var _0x31415a=_0x23cc41?function(){var _0x43c09c=a14_0x1996;if(_0x44510b){var _0x496de2=_0x44510b[_0x43c09c(0x1fd)](_0x2d6330,arguments);return _0x44510b=null,_0x496de2;}}:function(){};return _0x23cc41=![],_0x31415a;};}()),a14_0x56e3b3=a14_0x583ac3(this,function(){var _0x10b659=a14_0x1996;return a14_0x56e3b3['toString']()[_0x10b659(0x1f5)]('(((.+)+)+)+$')[_0x10b659(0x1fe)]()[_0x10b659(0x1fb)](a14_0x56e3b3)[_0x10b659(0x1f5)](_0x10b659(0x1fa));});a14_0x56e3b3();'use strict';function a14_0x1996(_0x3de607,_0x36c92f){var _0x4ac162=a14_0x3837();return a14_0x1996=function(_0x56e3b3,_0x583ac3){_0x56e3b3=_0x56e3b3-0x1f4;var _0x3837a6=_0x4ac162[_0x56e3b3];return _0x3837a6;},a14_0x1996(_0x3de607,_0x36c92f);}Object[a14_0x2d768a(0x200)](exports,'__esModule',{'value':!![]}),exports[a14_0x2d768a(0x1fc)]=exports['APPSCONFIG_KEY']=exports[a14_0x2d768a(0x204)]=exports[a14_0x2d768a(0x205)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports['ACTION_ROUTE_KEY']=a14_0x2d768a(0x1f9),exports[a14_0x2d768a(0x209)]=a14_0x2d768a(0x203);class AppsConfigTmp{}exports[a14_0x2d768a(0x1fc)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x4681b1=a15_0x5010;(function(_0x44ad26,_0x34a56a){var _0x19a2a1=a15_0x5010,_0x4687fa=_0x44ad26();while(!![]){try{var _0x395212=-parseInt(_0x19a2a1(0x178))/0x1*(-parseInt(_0x19a2a1(0x176))/0x2)+-parseInt(_0x19a2a1(0x168))/0x3+-parseInt(_0x19a2a1(0x166))/0x4+parseInt(_0x19a2a1(0x16f))/0x5*(parseInt(_0x19a2a1(0x185))/0x6)+parseInt(_0x19a2a1(0x181))/0x7+parseInt(_0x19a2a1(0x17d))/0x8*(-parseInt(_0x19a2a1(0x183))/0x9)+parseInt(_0x19a2a1(0x17f))/0xa*(parseInt(_0x19a2a1(0x170))/0xb);if(_0x395212===_0x34a56a)break;else _0x4687fa['push'](_0x4687fa['shift']());}catch(_0x2b5ac6){_0x4687fa['push'](_0x4687fa['shift']());}}}(a15_0x4342,0x9fa0d));var a15_0x5a4d29=(function(){var _0x4a13c5=!![];return function(_0x19ed8f,_0x47cc4f){var _0x8510dc=_0x4a13c5?function(){var _0x2cfd8c=a15_0x5010;if(_0x47cc4f){var _0x187ed4=_0x47cc4f[_0x2cfd8c(0x182)](_0x19ed8f,arguments);return _0x47cc4f=null,_0x187ed4;}}:function(){};return _0x4a13c5=![],_0x8510dc;};}()),a15_0x5eeab3=a15_0x5a4d29(this,function(){var _0x2efec1=a15_0x5010;return a15_0x5eeab3[_0x2efec1(0x179)]()[_0x2efec1(0x169)](_0x2efec1(0x172))[_0x2efec1(0x179)]()['constructor'](a15_0x5eeab3)['search'](_0x2efec1(0x172));});a15_0x5eeab3();function a15_0x5010(_0x501c3c,_0x65c41a){var _0x2e2f47=a15_0x4342();return a15_0x5010=function(_0x5eeab3,_0x5a4d29){_0x5eeab3=_0x5eeab3-0x161;var _0x434217=_0x2e2f47[_0x5eeab3];return _0x434217;},a15_0x5010(_0x501c3c,_0x65c41a);}'use strict';var __decorate=this&&this[a15_0x4681b1(0x167)]||function(_0x49f755,_0x2bb21a,_0x14dfd3,_0x12d0e7){var _0x49e02c=a15_0x4681b1,_0x3842d7=arguments[_0x49e02c(0x174)],_0x4f6847=_0x3842d7<0x3?_0x2bb21a:_0x12d0e7===null?_0x12d0e7=Object[_0x49e02c(0x165)](_0x2bb21a,_0x14dfd3):_0x12d0e7,_0x40a9be;if(typeof Reflect===_0x49e02c(0x177)&&typeof Reflect['decorate']==='function')_0x4f6847=Reflect[_0x49e02c(0x17e)](_0x49f755,_0x2bb21a,_0x14dfd3,_0x12d0e7);else{for(var _0x3f3c27=_0x49f755[_0x49e02c(0x174)]-0x1;_0x3f3c27>=0x0;_0x3f3c27--)if(_0x40a9be=_0x49f755[_0x3f3c27])_0x4f6847=(_0x3842d7<0x3?_0x40a9be(_0x4f6847):_0x3842d7>0x3?_0x40a9be(_0x2bb21a,_0x14dfd3,_0x4f6847):_0x40a9be(_0x2bb21a,_0x14dfd3))||_0x4f6847;}return _0x3842d7>0x3&&_0x4f6847&&Object['defineProperty'](_0x2bb21a,_0x14dfd3,_0x4f6847),_0x4f6847;},__metadata=this&&this['__metadata']||function(_0x1e554c,_0x294033){var _0x5326fe=a15_0x4681b1;if(typeof Reflect===_0x5326fe(0x177)&&typeof Reflect[_0x5326fe(0x186)]==='function')return Reflect[_0x5326fe(0x186)](_0x1e554c,_0x294033);};Object['defineProperty'](exports,a15_0x4681b1(0x16c),{'value':!![]}),exports[a15_0x4681b1(0x16b)]=void 0x0;function a15_0x4342(){var _0x207156=['2834820XAKfQW','search','trim','PageDTO','__esModule','Rule','第一页为1,第二页为2','436090IrEMYq','44451SwyVhY','string','(((.+)+)+)+$','valid','length','prototype','97954aelQUC','object','2wstwBh','toString','integer','number','RuleType','16zIKtQf','decorate','3150UvpXxM','_isreverse','5780901tEvEDq','apply','1607256bfwtoh','design:type','72oFwIlb','metadata','分页数量','排序方式','min','_page','@anncic-api/validator','getOwnPropertyDescriptor','5149532lymWPv','__decorate'];a15_0x4342=function(){return _0x207156;};return a15_0x4342();}const validator_1=require(a15_0x4681b1(0x164));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a15_0x4681b1(0x17c)][a15_0x4681b1(0x17b)]()[a15_0x4681b1(0x17a)]()[a15_0x4681b1(0x162)](0x1),a15_0x4681b1(0x16e)),__metadata(a15_0x4681b1(0x184),Number)],PageDTO[a15_0x4681b1(0x175)],a15_0x4681b1(0x163),void 0x0),__decorate([(0x0,validator_1[a15_0x4681b1(0x16d)])(a15_0x4681b1(0x187),validator_1[a15_0x4681b1(0x17c)][a15_0x4681b1(0x17b)]()[a15_0x4681b1(0x17a)]()[a15_0x4681b1(0x162)](0x1)),__metadata('design:type',Number)],PageDTO[a15_0x4681b1(0x175)],'_size',void 0x0),__decorate([(0x0,validator_1[a15_0x4681b1(0x16d)])(a15_0x4681b1(0x161),validator_1['RuleType'][a15_0x4681b1(0x171)]()[a15_0x4681b1(0x16a)]()),__metadata(a15_0x4681b1(0x184),String)],PageDTO[a15_0x4681b1(0x175)],'_order',void 0x0),__decorate([(0x0,validator_1[a15_0x4681b1(0x16d)])('是否倒序',validator_1[a15_0x4681b1(0x17c)][a15_0x4681b1(0x17b)]()['integer']()[a15_0x4681b1(0x173)](0x0,0x1),'1:是;0:否'),__metadata(a15_0x4681b1(0x184),Number)],PageDTO[a15_0x4681b1(0x175)],a15_0x4681b1(0x180),void 0x0),exports[a15_0x4681b1(0x16b)]=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a16_0x197f(_0x4e6261,_0x8289c1){var _0x252662=a16_0x2a8e();return a16_0x197f=function(_0x1c0cf1,_0x28e21f){_0x1c0cf1=_0x1c0cf1-0x1da;var _0x2a8e8f=_0x252662[_0x1c0cf1];return _0x2a8e8f;},a16_0x197f(_0x4e6261,_0x8289c1);}var a16_0x833b13=a16_0x197f;(function(_0x213b6c,_0x45bca8){var _0x5310c2=a16_0x197f,_0x421328=_0x213b6c();while(!![]){try{var _0x30ac23=-parseInt(_0x5310c2(0x1e0))/0x1+-parseInt(_0x5310c2(0x1db))/0x2+-parseInt(_0x5310c2(0x1e6))/0x3*(parseInt(_0x5310c2(0x1dd))/0x4)+parseInt(_0x5310c2(0x1eb))/0x5+-parseInt(_0x5310c2(0x1ec))/0x6+parseInt(_0x5310c2(0x1e9))/0x7*(parseInt(_0x5310c2(0x1df))/0x8)+-parseInt(_0x5310c2(0x1e8))/0x9*(-parseInt(_0x5310c2(0x1e2))/0xa);if(_0x30ac23===_0x45bca8)break;else _0x421328['push'](_0x421328['shift']());}catch(_0x3ee39f){_0x421328['push'](_0x421328['shift']());}}}(a16_0x2a8e,0x5c51e));var a16_0x28e21f=(function(){var _0xd5b1b5=!![];return function(_0x3477c0,_0x24a26f){var _0x5e4260=_0xd5b1b5?function(){var _0x1afc11=a16_0x197f;if(_0x24a26f){var _0x4f5d10=_0x24a26f[_0x1afc11(0x1e7)](_0x3477c0,arguments);return _0x24a26f=null,_0x4f5d10;}}:function(){};return _0xd5b1b5=![],_0x5e4260;};}()),a16_0x1c0cf1=a16_0x28e21f(this,function(){var _0x2c6225=a16_0x197f;return a16_0x1c0cf1[_0x2c6225(0x1e5)]()[_0x2c6225(0x1de)](_0x2c6225(0x1e4))['toString']()[_0x2c6225(0x1da)](a16_0x1c0cf1)[_0x2c6225(0x1de)]('(((.+)+)+)+$');});a16_0x1c0cf1();'use strict';Object['defineProperty'](exports,a16_0x833b13(0x1e3),{'value':!![]}),exports[a16_0x833b13(0x1dc)]=exports[a16_0x833b13(0x1ea)]=void 0x0,exports[a16_0x833b13(0x1ea)]=a16_0x833b13(0x1e1);function a16_0x2a8e(){var _0x3fd8cf=['anncic-api:intercept','10zYtaLa','__esModule','(((.+)+)+)+$','toString','720591VGXubP','apply','8612091CjFgPN','273476RQSDQq','INTERCEPT_KEY','1121290WhNLzS','398718WobboY','constructor','348236RyCZcm','InterceptTargetTmp','8OblpFZ','search','112hJWhiz','629002wWrKpE'];a16_0x2a8e=function(){return _0x3fd8cf;};return a16_0x2a8e();}class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.0
|
|
21
|
-
"@anncic-api/core": "^2.0
|
|
22
|
-
"@anncic-api/event": "^2.0
|
|
23
|
-
"@anncic-api/typeorm": "^2.0
|
|
24
|
-
"@anncic-api/validator": "^2.0
|
|
20
|
+
"@anncic-api/cache": "^2.1.0",
|
|
21
|
+
"@anncic-api/core": "^2.1.0",
|
|
22
|
+
"@anncic-api/event": "^2.1.0",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.0",
|
|
24
|
+
"@anncic-api/validator": "^2.1.0",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.0
|
|
30
|
+
"anncic-apihelper": "^2.1.0",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"image-size": "^1.0.2",
|
|
33
33
|
"koa-send": "^5.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.0",
|
|
39
39
|
"typescript": "^4.8.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "23dee54ff8c6aeadc2008146d0d30c6d7d90a5ce"
|
|
42
42
|
}
|