anncic-api 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x5f3be6=a0_0x21e4;(function(_0x552d5b,_0x456e54){var _0x3b7386=a0_0x21e4,_0x1b436b=_0x552d5b();while(!![]){try{var _0x29165e=parseInt(_0x3b7386(0x150))/0x1*(-parseInt(_0x3b7386(0x15f))/0x2)+-parseInt(_0x3b7386(0x157))/0x3+parseInt(_0x3b7386(0x15c))/0x4+-parseInt(_0x3b7386(0x147))/0x5*(-parseInt(_0x3b7386(0x14e))/0x6)+parseInt(_0x3b7386(0x155))/0x7*(-parseInt(_0x3b7386(0x151))/0x8)+parseInt(_0x3b7386(0x15d))/0x9+-parseInt(_0x3b7386(0x15b))/0xa*(-parseInt(_0x3b7386(0x14a))/0xb);if(_0x29165e===_0x456e54)break;else _0x1b436b['push'](_0x1b436b['shift']());}catch(_0x43db2d){_0x1b436b['push'](_0x1b436b['shift']());}}}(a0_0x4d11,0x6ef5e));var a0_0x5aac62=(function(){var _0x586d3d=!![];return function(_0x3dae7e,_0x19ec68){var _0x201858=_0x586d3d?function(){var _0x403b1d=a0_0x21e4;if(_0x19ec68){var _0x53c8ab=_0x19ec68[_0x403b1d(0x154)](_0x3dae7e,arguments);return _0x19ec68=null,_0x53c8ab;}}:function(){};return _0x586d3d=![],_0x201858;};}()),a0_0xdefc0f=a0_0x5aac62(this,function(){var _0x369af8=a0_0x21e4;return a0_0xdefc0f[_0x369af8(0x148)]()[_0x369af8(0x153)]('(((.+)+)+)+$')[_0x369af8(0x148)]()[_0x369af8(0x158)](a0_0xdefc0f)[_0x369af8(0x153)](_0x369af8(0x149));});function a0_0x4d11(){var _0x39cb7d=['6092944ShSBLj','name','__esModule','defineProperty','24zfUnwn','dhauo1234420123gg3234901','34601rAXyZJ','397352fCFeUw','xml','search','apply','28QHnOiu','20mb','708147DTegVA','constructor','form','json','10OWcYeA','549612BHptDI','3800403LrvDFN','/runtime/.upload','38mJHSpT','default','appDir','541330HdMrOF','toString','(((.+)+)+)+$'];a0_0x4d11=function(){return _0x39cb7d;};return a0_0x4d11();}function a0_0x21e4(_0x158158,_0x5ba1a8){var _0x3edd2b=a0_0x4d11();return a0_0x21e4=function(_0xdefc0f,_0x5aac62){_0xdefc0f=_0xdefc0f-0x146;var _0x4d1171=_0x3edd2b[_0xdefc0f];return _0x4d1171;},a0_0x21e4(_0x158158,_0x5ba1a8);}a0_0xdefc0f();'use strict';Object[a0_0x5f3be6(0x14d)](exports,a0_0x5f3be6(0x14c),{'value':!![]}),exports[a0_0x5f3be6(0x160)]=_0x10f933=>{var _0x2ffc7a=a0_0x5f3be6;return{'apitest':!![],'keys':_0x10f933[_0x2ffc7a(0x14b)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x2ffc7a(0x14f),'checkcode':_0x2ffc7a(0x14f)}}},'bodyParser':{'enableTypes':[_0x2ffc7a(0x15a),_0x2ffc7a(0x159),'text',_0x2ffc7a(0x152)],'formLimit':_0x2ffc7a(0x156),'jsonLimit':_0x2ffc7a(0x156),'textLimit':'20mb','xmlLimit':_0x2ffc7a(0x156)},'upload':{'tmpdir':_0x10f933[_0x2ffc7a(0x146)]+_0x2ffc7a(0x15e),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x451fee=a1_0x4756;function a1_0x4756(_0x2ddbd5,_0x168997){var _0x5e2853=a1_0x2336();return a1_0x4756=function(_0x36b7f0,_0x47be46){_0x36b7f0=_0x36b7f0-0x1e2;var _0x23368b=_0x5e2853[_0x36b7f0];return _0x23368b;},a1_0x4756(_0x2ddbd5,_0x168997);}function a1_0x2336(){var _0x25924c=['default','1097025FBhcUU','133101euiaDA','39595430dEmqQx','1150905AgbNey','__esModule','toString','2062rdmcdf','(((.+)+)+)+$','2934PoIInk','6bBCrdg','apply','1281487bhwgvH','defineProperty','850224acPGrU','168PdqfmN','constructor'];a1_0x2336=function(){return _0x25924c;};return a1_0x2336();}(function(_0x52a9d9,_0x256772){var _0x45e379=a1_0x4756,_0x517fd0=_0x52a9d9();while(!![]){try{var _0x13ac32=-parseInt(_0x45e379(0x1ef))/0x1+parseInt(_0x45e379(0x1ea))/0x2*(-parseInt(_0x45e379(0x1ec))/0x3)+-parseInt(_0x45e379(0x1f1))/0x4+-parseInt(_0x45e379(0x1e4))/0x5+parseInt(_0x45e379(0x1ed))/0x6*(-parseInt(_0x45e379(0x1e7))/0x7)+-parseInt(_0x45e379(0x1f2))/0x8*(parseInt(_0x45e379(0x1e5))/0x9)+parseInt(_0x45e379(0x1e6))/0xa;if(_0x13ac32===_0x256772)break;else _0x517fd0['push'](_0x517fd0['shift']());}catch(_0x1c697d){_0x517fd0['push'](_0x517fd0['shift']());}}}(a1_0x2336,0xba3a9));var a1_0x47be46=(function(){var _0x3a6ed6=!![];return function(_0x3c32e3,_0x17f2a7){var _0x24fbdd=_0x3a6ed6?function(){var _0x4a3e2c=a1_0x4756;if(_0x17f2a7){var _0x56d061=_0x17f2a7[_0x4a3e2c(0x1ee)](_0x3c32e3,arguments);return _0x17f2a7=null,_0x56d061;}}:function(){};return _0x3a6ed6=![],_0x24fbdd;};}()),a1_0x36b7f0=a1_0x47be46(this,function(){var _0x55a0b3=a1_0x4756;return a1_0x36b7f0[_0x55a0b3(0x1e9)]()['search'](_0x55a0b3(0x1eb))[_0x55a0b3(0x1e9)]()[_0x55a0b3(0x1e2)](a1_0x36b7f0)['search'](_0x55a0b3(0x1eb));});a1_0x36b7f0();'use strict';Object[a1_0x451fee(0x1f0)](exports,a1_0x451fee(0x1e8),{'value':!![]}),exports[a1_0x451fee(0x1e3)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x378731=a2_0x4fa1;function a2_0x4fa1(_0x1a9f7f,_0x70a88){const _0x16a7bb=a2_0x540e();return a2_0x4fa1=function(_0x561a50,_0x1a7f84){_0x561a50=_0x561a50-0x121;let _0x540e30=_0x16a7bb[_0x561a50];return _0x540e30;},a2_0x4fa1(_0x1a9f7f,_0x70a88);}(function(_0x2e61b6,_0x399da5){const _0x421ec0=a2_0x4fa1,_0x271a3a=_0x2e61b6();while(!![]){try{const _0x254dba=-parseInt(_0x421ec0(0x136))/0x1+-parseInt(_0x421ec0(0x15b))/0x2*(-parseInt(_0x421ec0(0x186))/0x3)+parseInt(_0x421ec0(0x132))/0x4+parseInt(_0x421ec0(0x176))/0x5+parseInt(_0x421ec0(0x188))/0x6*(-parseInt(_0x421ec0(0x14d))/0x7)+parseInt(_0x421ec0(0x168))/0x8+-parseInt(_0x421ec0(0x18e))/0x9*(parseInt(_0x421ec0(0x157))/0xa);if(_0x254dba===_0x399da5)break;else _0x271a3a['push'](_0x271a3a['shift']());}catch(_0x3b0828){_0x271a3a['push'](_0x271a3a['shift']());}}}(a2_0x540e,0x7ae0b));const a2_0x1a7f84=(function(){let _0x2d78d9=!![];return function(_0x2a69c4,_0x2aa058){const _0x3ce7b6=_0x2d78d9?function(){const _0x3e46d9=a2_0x4fa1;if(_0x2aa058){const _0x8a4974=_0x2aa058[_0x3e46d9(0x139)](_0x2a69c4,arguments);return _0x2aa058=null,_0x8a4974;}}:function(){};return _0x2d78d9=![],_0x3ce7b6;};}()),a2_0x561a50=a2_0x1a7f84(this,function(){const _0x3d82ff=a2_0x4fa1;return a2_0x561a50[_0x3d82ff(0x140)]()[_0x3d82ff(0x154)]('(((.+)+)+)+$')[_0x3d82ff(0x140)]()['constructor'](a2_0x561a50)[_0x3d82ff(0x154)]('(((.+)+)+)+$');});a2_0x561a50();'use strict';function a2_0x540e(){const _0x50e3d2=['/runtime/apps-','InterceptTargetTmp','handler','context','45CZMIJd','addObject','headers','string','getOwnPropertyDescriptor','MidwayApplicationManager','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','request','design:type','dirs','@midwayjs/cross-domain','onReady','__esModule','./types/action','REQUEST_OBJ_CTX_KEY','/apps','CustomConfiguration','anncicapi','MidwayConfigService','handlerActionRoute','registerMethodHandler','config','proceed','metadata','MidwayDecoratorService','function','device','filterConfig','isDirectory','getConfiguration','tmpdir','-log','environment','dir','749396yNHZZK','log','App','Inject','953837PGPcTS','getAppDir','getBaseDir','apply','Types','hanlderApplications','keys','ACTION_ROUTE_KEY','INTERCEPT_KEY','anncic-apihelper','toString','./types/intercept','devices','app','prototype','isNull','anncic-api','@midwayjs/upload','@midwayjs/i18n','readdirSync','getAsync','checkConfigKeys','@anncic-api/event','9037JGkLdk','Configuration','@midwayjs/static-file','HEADERS_SIGNATURE','apimit','intercept','/runtime','search','defineProperty','existsSync','1822610KERRwS','key','isArray','decorator','14144hYoeEL','forEach','method','mkdirSync','application','_matchedRoute','input','./exception/ApiError','ApiService','getClassMetadata','undefined','@anncic-api/cache','loggerConfig','3374536NCKGKT','.log','ApiError','文件不存在','./config/config.default','decorate','match','upload','isDevelopmentEnvironment','__decorate','query','MidwayEnvironmentService','@midwayjs/koa','DEFAULT','4503000BDVJfQ','midwayLogger','get','@midwayjs/core','body','bodyXml','getApplications','object','koa-send','staticFile','requestContext','length','isFunction','toLowerCase','@anncic-api/core','attachment','390RsHIlI','default','282tUIDDl','statSync'];a2_0x540e=function(){return _0x50e3d2;};return a2_0x540e();}var __decorate=this&&this[a2_0x378731(0x171)]||function(_0x54f9c3,_0x415a4a,_0x31428a,_0x1f3a67){const _0x267a2c=a2_0x378731;var _0x1937c6=arguments[_0x267a2c(0x181)],_0x5bf722=_0x1937c6<0x3?_0x415a4a:_0x1f3a67===null?_0x1f3a67=Object[_0x267a2c(0x192)](_0x415a4a,_0x31428a):_0x1f3a67,_0x3bcb95;if(typeof Reflect==='object'&&typeof Reflect[_0x267a2c(0x16d)]===_0x267a2c(0x129))_0x5bf722=Reflect[_0x267a2c(0x16d)](_0x54f9c3,_0x415a4a,_0x31428a,_0x1f3a67);else{for(var _0x19815b=_0x54f9c3[_0x267a2c(0x181)]-0x1;_0x19815b>=0x0;_0x19815b--)if(_0x3bcb95=_0x54f9c3[_0x19815b])_0x5bf722=(_0x1937c6<0x3?_0x3bcb95(_0x5bf722):_0x1937c6>0x3?_0x3bcb95(_0x415a4a,_0x31428a,_0x5bf722):_0x3bcb95(_0x415a4a,_0x31428a))||_0x5bf722;}return _0x1937c6>0x3&&_0x5bf722&&Object['defineProperty'](_0x415a4a,_0x31428a,_0x5bf722),_0x5bf722;},__metadata=this&&this['__metadata']||function(_0x5b8ffc,_0x4ba58d){const _0x409155=a2_0x378731;if(typeof Reflect===_0x409155(0x17d)&&typeof Reflect[_0x409155(0x127)]==='function')return Reflect['metadata'](_0x5b8ffc,_0x4ba58d);};Object[a2_0x378731(0x155)](exports,a2_0x378731(0x19a),{'value':!![]}),exports[a2_0x378731(0x19e)]=void 0x0;const core_1=require(a2_0x378731(0x179)),core_2=require(a2_0x378731(0x179)),ApiError_1=require(a2_0x378731(0x162)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x378731(0x19b)),intercept_1=require(a2_0x378731(0x141)),fs=require('fs'),koasend=require(a2_0x378731(0x17e)),koa=require(a2_0x378731(0x174)),i18n=require(a2_0x378731(0x148)),upload=require(a2_0x378731(0x147)),staticFile=require(a2_0x378731(0x14f)),crossDomain=require(a2_0x378731(0x198)),ConfigDefault=require(a2_0x378731(0x16c)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x378731(0x184)),anncicCache=require(a2_0x378731(0x166)),anncicEvent=require(a2_0x378731(0x14c)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x378731(0x13f));let CustomConfiguration=class CustomConfiguration{async[a2_0x378731(0x199)](){const _0x7cb9ce=a2_0x378731;await this[_0x7cb9ce(0x12b)](),await this[_0x7cb9ce(0x167)](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x7cb9ce(0x13b)]();}async[a2_0x378731(0x14b)](){}async[a2_0x378731(0x123)](){const _0x169b0a=a2_0x378731,_0x593fa0=(0x0,core_1[_0x169b0a(0x164)])(intercept_1[_0x169b0a(0x13e)],intercept_1[_0x169b0a(0x18b)])||{};this[_0x169b0a(0x15a)][_0x169b0a(0x124)](action_1[_0x169b0a(0x13d)],_0x41d7a3=>{const _0x1d515d=_0x41d7a3['metadata'];return{'before':async _0x1aa5fb=>{const _0x1e3e70=a2_0x4fa1;var _0x42fe8a,_0x43ff15;const _0x4331d0=(_0x42fe8a=_0x1aa5fb===null||_0x1aa5fb===void 0x0?void 0x0:_0x1aa5fb['target'])===null||_0x42fe8a===void 0x0?void 0x0:_0x42fe8a[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x4331d0&&(_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d[_0x1e3e70(0x151)])){if(!this[_0x1e3e70(0x163)]['checksign']((_0x43ff15=_0x4331d0===null||_0x4331d0===void 0x0?void 0x0:_0x4331d0[_0x1e3e70(0x195)])===null||_0x43ff15===void 0x0?void 0x0:_0x43ff15[_0x1e3e70(0x190)]))throw new AnnError(ApiError_1[_0x1e3e70(0x16a)][_0x1e3e70(0x150)]);}},'around':async _0x24b9ac=>{const _0x3900c6=a2_0x4fa1;var _0xd6b8f6,_0xbbb439,_0x375132;const _0x5f0a84=(_0xd6b8f6=_0x24b9ac===null||_0x24b9ac===void 0x0?void 0x0:_0x24b9ac['target'])===null||_0xd6b8f6===void 0x0?void 0x0:_0xd6b8f6[core_2[_0x3900c6(0x19c)]];if(_0x5f0a84&&(_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d[_0x3900c6(0x151)])&&((_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d['intercept'])||typeof(_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d[_0x3900c6(0x152)])==_0x3900c6(0x165))){if(((_0xbbb439=_0x5f0a84['headers'])===null||_0xbbb439===void 0x0?void 0x0:_0xbbb439[_0x3900c6(0x12a)])&&((_0x375132=_0x593fa0===null||_0x593fa0===void 0x0?void 0x0:_0x593fa0[_0x5f0a84[_0x3900c6(0x190)][_0x3900c6(0x12a)]])===null||_0x375132===void 0x0?void 0x0:_0x375132[_0x3900c6(0x181)])>0x0)for(const _0x39c716 of _0x593fa0[_0x5f0a84[_0x3900c6(0x190)][_0x3900c6(0x12a)]]||[]){if(core_1['Types']['isClass'](_0x39c716)){const _0xc17b18=await _0x5f0a84[_0x3900c6(0x180)][_0x3900c6(0x14a)](_0x39c716);typeof(_0xc17b18===null||_0xc17b18===void 0x0?void 0x0:_0xc17b18[_0x3900c6(0x16e)])==_0x3900c6(0x129)?await _0xc17b18[_0x3900c6(0x16e)](_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x15d)])=='string'&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute'])?_0x5f0a84[_0x3900c6(0x15d)][_0x3900c6(0x183)]()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)]):undefined,_0x1d515d)&&await _0xc17b18[_0x3900c6(0x18c)](_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['method'])==_0x3900c6(0x191)&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute'])?_0x5f0a84['method'][_0x3900c6(0x183)]()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute']):undefined,_0x1d515d):await _0xc17b18[_0x3900c6(0x18c)](_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x15d)])==_0x3900c6(0x191)&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute'])?_0x5f0a84[_0x3900c6(0x15d)]['toLowerCase']()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)]):undefined,_0x1d515d);}else core_1[_0x3900c6(0x13a)][_0x3900c6(0x182)](_0x39c716)&&await _0x39c716(_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x15d)])==_0x3900c6(0x191)&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)])?_0x5f0a84[_0x3900c6(0x15d)]['toLowerCase']()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)]):undefined,_0x1d515d);}}return await _0x24b9ac[_0x3900c6(0x126)](..._0x24b9ac['args']);},'afterThrow':(_0x2698a0,_0x12d471)=>{throw _0x12d471;}};});}async[a2_0x378731(0x13b)](){const _0x5c1639=a2_0x378731;this[_0x5c1639(0x15f)][_0x5c1639(0x17c)](['koa'])[_0x5c1639(0x15c)](_0x361079=>{const _0x4825b7=_0x5c1639;(_0x361079===null||_0x361079===void 0x0?void 0x0:_0x361079[_0x4825b7(0x18d)])&&Object['defineProperties'](_0x361079['context'],{'ok':{'value':function(_0x15e581,_0x596b8f,_0x38ade8=0x0){return{'code':_0x38ade8,'data':_0x15e581,'extra':_0x596b8f};}},'input':{'value':function(_0x1a35c8,_0x12c99b){const _0x37f288=_0x4825b7;var _0x6812cd;const _0x3c150a=lodash['defaultsDeep']({},this[_0x37f288(0x195)][_0x37f288(0x17a)]||this[_0x37f288(0x195)][((_0x6812cd=config===null||config===void 0x0?void 0x0:config[_0x37f288(0x17b)])===null||_0x6812cd===void 0x0?void 0x0:_0x6812cd[_0x37f288(0x158)])||_0x37f288(0x17a)]||{},this[_0x37f288(0x195)][_0x37f288(0x172)]||{});return _0x1a35c8?lodash[_0x37f288(0x178)](_0x3c150a,_0x1a35c8,_0x12c99b):_0x3c150a;}},'when':{'value':async function(_0x5d3535,_0x4cfa7c){const _0x174f2c=_0x4825b7,_0x26339c=this[_0x174f2c(0x161)](_0x5d3535,null);if(!lodash[_0x174f2c(0x145)](_0x26339c))return await _0x4cfa7c(_0x26339c);}},'only':{'value':function(_0x32ce11){const _0x201b73=_0x4825b7,_0x29532c={};for(let _0x4503c3=0x0;_0x4503c3<_0x32ce11[_0x201b73(0x181)];_0x4503c3++){lodash[_0x201b73(0x159)](_0x32ce11[_0x4503c3])&&_0x32ce11[_0x4503c3][_0x201b73(0x181)]>0x0&&lodash['isString'](_0x32ce11[_0x4503c3][0x0])&&(_0x29532c[_0x32ce11[_0x4503c3][0x0]]=this[_0x201b73(0x161)](_0x32ce11[_0x4503c3][0x0],_0x32ce11[_0x4503c3]['length']>0x1?_0x32ce11[_0x4503c3][0x1]:null));}return _0x29532c;}},'koasend':{'value':function(_0x5c890f,_0x244d9b){const _0xb635af=_0x4825b7;if(!fs['existsSync'](this[_0xb635af(0x143)][_0xb635af(0x137)]()+'/'+_0x5c890f))return _0xb635af(0x16b);return this[_0xb635af(0x185)](_0x244d9b||_0x5c890f),koasend(this,_0x5c890f);}}});});}async[a2_0x378731(0x167)](){const _0x4afd57=a2_0x378731;var _0x434db6,_0x3f8354;if(fs[_0x4afd57(0x156)](this[_0x4afd57(0x143)][_0x4afd57(0x138)]()+'/apps')&&fs[_0x4afd57(0x189)](this['app'][_0x4afd57(0x138)]()+_0x4afd57(0x19d))[_0x4afd57(0x12c)]()){const _0x22ce02=this[_0x4afd57(0x125)][_0x4afd57(0x12d)](),_0x5bfbf9=((_0x434db6=_0x22ce02===null||_0x22ce02===void 0x0?void 0x0:_0x22ce02[_0x4afd57(0x177)])===null||_0x434db6===void 0x0?void 0x0:_0x434db6['clients'])||{};for(const _0x7e644a of fs[_0x4afd57(0x149)](this['app'][_0x4afd57(0x138)]()+_0x4afd57(0x19d))){if(!fs[_0x4afd57(0x189)](this['app'][_0x4afd57(0x138)]()+'/apps/'+_0x7e644a)['isDirectory']())continue;if(_0x5bfbf9===null||_0x5bfbf9===void 0x0?void 0x0:_0x5bfbf9[_0x7e644a])continue;_0x5bfbf9[_0x7e644a]=Object['assign']({},((_0x3f8354=_0x22ce02===null||_0x22ce02===void 0x0?void 0x0:_0x22ce02[_0x4afd57(0x177)])===null||_0x3f8354===void 0x0?void 0x0:_0x3f8354[_0x4afd57(0x187)])||{'maxSize':'1m','dir':this['app'][_0x4afd57(0x137)]()+_0x4afd57(0x153)},{'enableJSON':!![],'enableConsole':this['environment'][_0x4afd57(0x170)](),'fileLogName':_0x7e644a+_0x4afd57(0x169),'dir':this[_0x4afd57(0x143)]['getAppDir']()+_0x4afd57(0x18a)+_0x7e644a+_0x4afd57(0x12f)});}Object[_0x4afd57(0x13c)](_0x5bfbf9)[_0x4afd57(0x181)]>0x0&&(!_0x22ce02['midwayLogger']&&(_0x22ce02[_0x4afd57(0x177)]={'default':{'maxSize':'1m','dir':this[_0x4afd57(0x143)][_0x4afd57(0x137)]()+_0x4afd57(0x153)}}),_0x22ce02[_0x4afd57(0x177)]['clients']=_0x5bfbf9),this['config'][_0x4afd57(0x18f)](_0x22ce02);}}async[a2_0x378731(0x12b)](){const _0x34b884=a2_0x378731;var _0x1c4cc7,_0x9607d1,_0x96a918,_0xdf8b98,_0x1be644,_0x2ff0b2;const _0xc38433=this['config']['getConfiguration']();((_0x9607d1=(_0x1c4cc7=_0xc38433===null||_0xc38433===void 0x0?void 0x0:_0xc38433['anncicapi'])===null||_0x1c4cc7===void 0x0?void 0x0:_0x1c4cc7['devices'])===null||_0x9607d1===void 0x0?void 0x0:_0x9607d1[_0x34b884(0x175)])&&Object[_0x34b884(0x13c)](_0xc38433[_0x34b884(0x121)][_0x34b884(0x142)])['length']>0x1&&delete _0xc38433[_0x34b884(0x121)][_0x34b884(0x142)][_0x34b884(0x175)];if((_0x96a918=_0xc38433===null||_0xc38433===void 0x0?void 0x0:_0xc38433['staticFile'])===null||_0x96a918===void 0x0?void 0x0:_0x96a918[_0x34b884(0x197)])for(const _0xfe4f4 in _0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)]){((_0xdf8b98=_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4])===null||_0xdf8b98===void 0x0?void 0x0:_0xdf8b98[_0x34b884(0x131)])&&typeof((_0x1be644=_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4])===null||_0x1be644===void 0x0?void 0x0:_0x1be644[_0x34b884(0x131)])==_0x34b884(0x191)&&!fs[_0x34b884(0x156)](_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4][_0x34b884(0x131)])&&(fs['mkdirSync'](_0xc38433['staticFile']['dirs'][_0xfe4f4][_0x34b884(0x131)],{'recursive':!![]}),console[_0x34b884(0x133)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4][_0x34b884(0x131)]));}((_0x2ff0b2=_0xc38433===null||_0xc38433===void 0x0?void 0x0:_0xc38433[_0x34b884(0x16f)])===null||_0x2ff0b2===void 0x0?void 0x0:_0x2ff0b2['tmpdir'])&&!fs[_0x34b884(0x156)](_0xc38433['upload'][_0x34b884(0x12e)])&&(fs[_0x34b884(0x15e)](_0xc38433[_0x34b884(0x16f)]['tmpdir'],{'recursive':!![]}),console[_0x34b884(0x133)](_0x34b884(0x194)+_0xc38433[_0x34b884(0x16f)][_0x34b884(0x12e)])),this[_0x34b884(0x125)]['addObject'](_0xc38433);}};__decorate([(0x0,core_1[a2_0x378731(0x134)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x378731(0x144)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x378731(0x135)])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x122)])],CustomConfiguration[a2_0x378731(0x144)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x378731(0x135)])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x128)])],CustomConfiguration[a2_0x378731(0x144)],a2_0x378731(0x15a),void 0x0),__decorate([(0x0,core_1[a2_0x378731(0x135)])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x193)])],CustomConfiguration['prototype'],a2_0x378731(0x15f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x173)])],CustomConfiguration[a2_0x378731(0x144)],a2_0x378731(0x130),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x378731(0x196),ApiService_1[a2_0x378731(0x163)])],CustomConfiguration[a2_0x378731(0x144)],a2_0x378731(0x163),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x378731(0x14e)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x378731(0x146),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x378731(0x19e)]=CustomConfiguration;
|
|
1
|
+
function a2_0x3b88(_0x423d2e,_0x253ac2){const _0x4d8ade=a2_0xa7bd();return a2_0x3b88=function(_0x21d267,_0x4c9118){_0x21d267=_0x21d267-0xa9;let _0xa7bd64=_0x4d8ade[_0x21d267];return _0xa7bd64;},a2_0x3b88(_0x423d2e,_0x253ac2);}const a2_0x3f1598=a2_0x3b88;(function(_0x29dbc0,_0x4f5d61){const _0x16a421=a2_0x3b88,_0x47768c=_0x29dbc0();while(!![]){try{const _0x14444f=-parseInt(_0x16a421(0xe3))/0x1+-parseInt(_0x16a421(0xdd))/0x2+-parseInt(_0x16a421(0xde))/0x3+-parseInt(_0x16a421(0x10c))/0x4+-parseInt(_0x16a421(0xd7))/0x5*(parseInt(_0x16a421(0x115))/0x6)+-parseInt(_0x16a421(0xb9))/0x7*(-parseInt(_0x16a421(0xe0))/0x8)+parseInt(_0x16a421(0xf0))/0x9*(parseInt(_0x16a421(0xb6))/0xa);if(_0x14444f===_0x4f5d61)break;else _0x47768c['push'](_0x47768c['shift']());}catch(_0x4e2efc){_0x47768c['push'](_0x47768c['shift']());}}}(a2_0xa7bd,0x28633));const a2_0x4c9118=(function(){let _0x21d012=!![];return function(_0x5b8702,_0x23379b){const _0x518997=_0x21d012?function(){const _0x1db3e1=a2_0x3b88;if(_0x23379b){const _0x5ecf4f=_0x23379b[_0x1db3e1(0xcc)](_0x5b8702,arguments);return _0x23379b=null,_0x5ecf4f;}}:function(){};return _0x21d012=![],_0x518997;};}()),a2_0x21d267=a2_0x4c9118(this,function(){const _0x3559f6=a2_0x3b88;return a2_0x21d267['toString']()[_0x3559f6(0xdf)](_0x3559f6(0x114))[_0x3559f6(0xaf)]()[_0x3559f6(0xf4)](a2_0x21d267)['search']('(((.+)+)+)+$');});a2_0x21d267();'use strict';var __decorate=this&&this[a2_0x3f1598(0x120)]||function(_0x118505,_0x291ffe,_0x3a9bce,_0x6413bf){const _0x5cd99a=a2_0x3f1598;var _0x1d6f8a=arguments[_0x5cd99a(0x100)],_0x4c0768=_0x1d6f8a<0x3?_0x291ffe:_0x6413bf===null?_0x6413bf=Object['getOwnPropertyDescriptor'](_0x291ffe,_0x3a9bce):_0x6413bf,_0x3269f9;if(typeof Reflect===_0x5cd99a(0xfa)&&typeof Reflect[_0x5cd99a(0xda)]===_0x5cd99a(0xdc))_0x4c0768=Reflect[_0x5cd99a(0xda)](_0x118505,_0x291ffe,_0x3a9bce,_0x6413bf);else{for(var _0x30ba6b=_0x118505[_0x5cd99a(0x100)]-0x1;_0x30ba6b>=0x0;_0x30ba6b--)if(_0x3269f9=_0x118505[_0x30ba6b])_0x4c0768=(_0x1d6f8a<0x3?_0x3269f9(_0x4c0768):_0x1d6f8a>0x3?_0x3269f9(_0x291ffe,_0x3a9bce,_0x4c0768):_0x3269f9(_0x291ffe,_0x3a9bce))||_0x4c0768;}return _0x1d6f8a>0x3&&_0x4c0768&&Object[_0x5cd99a(0xea)](_0x291ffe,_0x3a9bce,_0x4c0768),_0x4c0768;},__metadata=this&&this[a2_0x3f1598(0xa9)]||function(_0x4dc1b8,_0x16ecfe){const _0xa281d4=a2_0x3f1598;if(typeof Reflect===_0xa281d4(0xfa)&&typeof Reflect[_0xa281d4(0xe4)]===_0xa281d4(0xdc))return Reflect['metadata'](_0x4dc1b8,_0x16ecfe);};function a2_0xa7bd(){const _0x2888bc=['dir','getConfiguration','loggerConfig','prototype','__metadata','handlerActionRoute','string','keys','defaultsDeep','environment','toString','forEach','@midwayjs/core','key','staticFile','InterceptTargetTmp','headers','60KSsexG','@anncic-api/validator','.log','5404IXuynb','isArray','statSync','dirs','Types','midwayLogger','CustomConfiguration','onReady','@midwayjs/koa','config','DEFAULT','match','context','application','REQUEST_OBJ_CTX_KEY','INTERCEPT_KEY','isString','@midwayjs/i18n','intercept','apply','MidwayApplicationManager','devices','checksign','default','get','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','_matchedRoute','anncicapi','Anncic-api\x20static-file\x20:\x20mkdir\x20','design:type','25050xagFcu','args','apimit','decorate','@anncic-api/event','function','47410dQiVuf','362736VZdjWk','search','864IsFquR','./types/action','__esModule','325881ASfqWm','metadata','bodyXml','@anncic-api/typeorm','mkdirSync','@anncic-api/core','handler','defineProperty','query','Inject','MidwayEnvironmentService','isDevelopmentEnvironment','device','1055034bjrVIS','target','method','decorator','constructor','ApiError','./service/ApiService','getAsync','文件不存在','ApiService','object','input','upload','registerMethodHandler','readdirSync','filterConfig','length','getAppDir','app','MidwayConfigService','getBaseDir','./exception/ApiError','undefined','hanlderApplications','HEADERS_SIGNATURE','addObject','attachment','log','563148BXofDr','clients','./config/config.production','isClass','isNull','getApplications','@midwayjs/upload','Configuration','(((.+)+)+)+$','12LvAPQT','/runtime/apps-','checkConfigKeys','tmpdir','./types/intercept','defineProperties','koa-send','/runtime','toLowerCase','getClassMetadata','existsSync','__decorate','isDirectory','@anncic-api/cache','request'];a2_0xa7bd=function(){return _0x2888bc;};return a2_0xa7bd();}Object[a2_0x3f1598(0xea)](exports,a2_0x3f1598(0xe2),{'value':!![]}),exports[a2_0x3f1598(0xbf)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x3f1598(0xb1)),ApiError_1=require(a2_0x3f1598(0x105)),ApiService_1=require(a2_0x3f1598(0xf6)),action_1=require(a2_0x3f1598(0xe1)),intercept_1=require(a2_0x3f1598(0x119)),fs=require('fs'),koasend=require(a2_0x3f1598(0x11b)),koa=require(a2_0x3f1598(0xc1)),i18n=require(a2_0x3f1598(0xca)),upload=require(a2_0x3f1598(0x112)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x3f1598(0x10e)),anncic=require(a2_0x3f1598(0xe8)),anncicCache=require(a2_0x3f1598(0x122)),anncicEvent=require(a2_0x3f1598(0xdb)),anncicTypeorm=require(a2_0x3f1598(0xe6)),anncicValidator=require(a2_0x3f1598(0xb7)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x3f1598(0xc0)](){const _0x252c73=a2_0x3f1598;await this[_0x252c73(0xff)](),await this[_0x252c73(0x126)](),await this['checkConfigKeys'](),await this[_0x252c73(0xaa)](),await this[_0x252c73(0x107)]();}async[a2_0x3f1598(0x117)](){}async['handlerActionRoute'](){const _0x19ba9c=a2_0x3f1598,_0x17d7cb=(0x0,core_1[_0x19ba9c(0x11e)])(intercept_1[_0x19ba9c(0xc8)],intercept_1[_0x19ba9c(0xb4)])||{};this[_0x19ba9c(0xf3)][_0x19ba9c(0xfd)](action_1['ACTION_ROUTE_KEY'],_0x4b461b=>{const _0x34107f=_0x19ba9c,_0x15ffe5=_0x4b461b[_0x34107f(0xe4)];return{'before':async _0x50bbbe=>{const _0x47a1b5=_0x34107f;var _0x38064e,_0x4c17b5;const _0xf97c77=(_0x38064e=_0x50bbbe===null||_0x50bbbe===void 0x0?void 0x0:_0x50bbbe['target'])===null||_0x38064e===void 0x0?void 0x0:_0x38064e[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xf97c77&&(_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5[_0x47a1b5(0xd9)])){if(!this['ApiService'][_0x47a1b5(0xcf)]((_0x4c17b5=_0xf97c77===null||_0xf97c77===void 0x0?void 0x0:_0xf97c77[_0x47a1b5(0x123)])===null||_0x4c17b5===void 0x0?void 0x0:_0x4c17b5[_0x47a1b5(0xb5)]))throw new AnnError(ApiError_1[_0x47a1b5(0xf5)][_0x47a1b5(0x108)]);}},'around':async _0xef4dde=>{const _0x2f52d4=_0x34107f;var _0x42047a,_0x18e038,_0x1092f4;const _0x4fa64c=(_0x42047a=_0xef4dde===null||_0xef4dde===void 0x0?void 0x0:_0xef4dde[_0x2f52d4(0xf1)])===null||_0x42047a===void 0x0?void 0x0:_0x42047a[core_2[_0x2f52d4(0xc7)]];if(_0x4fa64c&&(_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5['apimit'])&&((_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5[_0x2f52d4(0xcb)])||typeof(_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5[_0x2f52d4(0xcb)])==_0x2f52d4(0x106))){if(((_0x18e038=_0x4fa64c[_0x2f52d4(0xb5)])===null||_0x18e038===void 0x0?void 0x0:_0x18e038[_0x2f52d4(0xef)])&&((_0x1092f4=_0x17d7cb===null||_0x17d7cb===void 0x0?void 0x0:_0x17d7cb[_0x4fa64c[_0x2f52d4(0xb5)][_0x2f52d4(0xef)]])===null||_0x1092f4===void 0x0?void 0x0:_0x1092f4[_0x2f52d4(0x100)])>0x0)for(const _0x352c2a of _0x17d7cb[_0x4fa64c[_0x2f52d4(0xb5)]['device']]||[]){if(core_1[_0x2f52d4(0xbd)][_0x2f52d4(0x10f)](_0x352c2a)){const _0x3b5fe9=await _0x4fa64c['requestContext'][_0x2f52d4(0xf7)](_0x352c2a);typeof(_0x3b5fe9===null||_0x3b5fe9===void 0x0?void 0x0:_0x3b5fe9[_0x2f52d4(0xc4)])==_0x2f52d4(0xdc)?await _0x3b5fe9['match'](_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c['method'])==_0x2f52d4(0xab)&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)])?_0x4fa64c[_0x2f52d4(0xf2)][_0x2f52d4(0x11d)]()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)]):undefined,_0x15ffe5)&&await _0x3b5fe9[_0x2f52d4(0xe9)](_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xf2)])=='string'&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)])?_0x4fa64c['method'][_0x2f52d4(0x11d)]()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)]):undefined,_0x15ffe5):await _0x3b5fe9[_0x2f52d4(0xe9)](_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xf2)])==_0x2f52d4(0xab)&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)])?_0x4fa64c[_0x2f52d4(0xf2)]['toLowerCase']()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c['_matchedRoute']):undefined,_0x15ffe5);}else core_1['Types']['isFunction'](_0x352c2a)&&await _0x352c2a(_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xf2)])==_0x2f52d4(0xab)&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c['_matchedRoute'])?_0x4fa64c[_0x2f52d4(0xf2)]['toLowerCase']()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)]):undefined,_0x15ffe5);}}return await _0xef4dde['proceed'](..._0xef4dde[_0x2f52d4(0xd8)]);},'afterThrow':(_0xd8fd1a,_0x10b79f)=>{throw _0x10b79f;}};});}async[a2_0x3f1598(0x107)](){const _0x22e266=a2_0x3f1598;this[_0x22e266(0xc6)][_0x22e266(0x111)](['koa'])[_0x22e266(0xb0)](_0x368183=>{const _0x14d43f=_0x22e266;(_0x368183===null||_0x368183===void 0x0?void 0x0:_0x368183[_0x14d43f(0xc5)])&&Object[_0x14d43f(0x11a)](_0x368183[_0x14d43f(0xc5)],{'ok':{'value':function(_0x8ec441,_0xc32b5e,_0x5293d3=0x0){return{'code':_0x5293d3,'data':_0x8ec441,'extra':_0xc32b5e};}},'input':{'value':function(_0x55e154,_0x392d15){const _0x1e7eed=_0x14d43f;var _0x551ba4;const _0x459322=lodash[_0x1e7eed(0xad)]({},this[_0x1e7eed(0x123)]['body']||this[_0x1e7eed(0x123)][((_0x551ba4=config===null||config===void 0x0?void 0x0:config[_0x1e7eed(0xe5)])===null||_0x551ba4===void 0x0?void 0x0:_0x551ba4[_0x1e7eed(0xb2)])||'body']||{},this['request'][_0x1e7eed(0xeb)]||{});return _0x55e154?lodash[_0x1e7eed(0xd1)](_0x459322,_0x55e154,_0x392d15):_0x459322;}},'when':{'value':async function(_0x59dc17,_0x1922aa){const _0x369dd2=_0x14d43f,_0x284310=this[_0x369dd2(0xfb)](_0x59dc17,null);if(!lodash[_0x369dd2(0x110)](_0x284310))return await _0x1922aa(_0x284310);}},'only':{'value':function(_0x423238){const _0x219657=_0x14d43f,_0x10d0b5={};for(let _0x29b46e=0x0;_0x29b46e<_0x423238[_0x219657(0x100)];_0x29b46e++){lodash[_0x219657(0xba)](_0x423238[_0x29b46e])&&_0x423238[_0x29b46e][_0x219657(0x100)]>0x0&&lodash[_0x219657(0xc9)](_0x423238[_0x29b46e][0x0])&&(_0x10d0b5[_0x423238[_0x29b46e][0x0]]=this[_0x219657(0xfb)](_0x423238[_0x29b46e][0x0],_0x423238[_0x29b46e][_0x219657(0x100)]>0x1?_0x423238[_0x29b46e][0x1]:null));}return _0x10d0b5;}},'koasend':{'value':function(_0x35e3bf,_0x11c5b3){const _0x5ca498=_0x14d43f;if(!fs[_0x5ca498(0x11f)](this[_0x5ca498(0x102)][_0x5ca498(0x101)]()+'/'+_0x35e3bf))return _0x5ca498(0xf8);return this[_0x5ca498(0x10a)](_0x11c5b3||_0x35e3bf),koasend(this,_0x35e3bf);}}});});}async[a2_0x3f1598(0x126)](){const _0xb4001=a2_0x3f1598;var _0x254fb8,_0xf3cce7;if(fs[_0xb4001(0x11f)](this[_0xb4001(0x102)][_0xb4001(0x104)]()+'/apps')&&fs['statSync'](this['app'][_0xb4001(0x104)]()+'/apps')[_0xb4001(0x121)]()){const _0x4d1197=this[_0xb4001(0xc2)][_0xb4001(0x125)](),_0x442309=((_0x254fb8=_0x4d1197===null||_0x4d1197===void 0x0?void 0x0:_0x4d1197['midwayLogger'])===null||_0x254fb8===void 0x0?void 0x0:_0x254fb8[_0xb4001(0x10d)])||{};for(const _0xfb0479 of fs[_0xb4001(0xfe)](this[_0xb4001(0x102)]['getBaseDir']()+'/apps')){if(!fs[_0xb4001(0xbb)](this[_0xb4001(0x102)]['getBaseDir']()+'/apps/'+_0xfb0479)['isDirectory']())continue;if(_0x442309===null||_0x442309===void 0x0?void 0x0:_0x442309[_0xfb0479])continue;_0x442309[_0xfb0479]=Object['assign']({},((_0xf3cce7=_0x4d1197===null||_0x4d1197===void 0x0?void 0x0:_0x4d1197[_0xb4001(0xbe)])===null||_0xf3cce7===void 0x0?void 0x0:_0xf3cce7[_0xb4001(0xd0)])||{'maxSize':'1m','dir':this[_0xb4001(0x102)][_0xb4001(0x101)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0xb4001(0xae)][_0xb4001(0xee)](),'fileLogName':_0xfb0479+_0xb4001(0xb8),'dir':this['app'][_0xb4001(0x101)]()+_0xb4001(0x116)+_0xfb0479+'-log'});}Object[_0xb4001(0xac)](_0x442309)['length']>0x0&&(!_0x4d1197[_0xb4001(0xbe)]&&(_0x4d1197[_0xb4001(0xbe)]={'default':{'maxSize':'1m','dir':this['app'][_0xb4001(0x101)]()+_0xb4001(0x11c)}}),_0x4d1197[_0xb4001(0xbe)][_0xb4001(0x10d)]=_0x442309),this[_0xb4001(0xc2)][_0xb4001(0x109)](_0x4d1197);}}async[a2_0x3f1598(0xff)](){const _0x1a4c06=a2_0x3f1598;var _0x23bb9d,_0x3e4700,_0x68e925,_0xe0e6dc,_0x26c272,_0xc37e05;const _0x37bdd9=this[_0x1a4c06(0xc2)]['getConfiguration']();((_0x3e4700=(_0x23bb9d=_0x37bdd9===null||_0x37bdd9===void 0x0?void 0x0:_0x37bdd9[_0x1a4c06(0xd4)])===null||_0x23bb9d===void 0x0?void 0x0:_0x23bb9d[_0x1a4c06(0xce)])===null||_0x3e4700===void 0x0?void 0x0:_0x3e4700[_0x1a4c06(0xc3)])&&Object[_0x1a4c06(0xac)](_0x37bdd9[_0x1a4c06(0xd4)][_0x1a4c06(0xce)])['length']>0x1&&delete _0x37bdd9[_0x1a4c06(0xd4)][_0x1a4c06(0xce)]['DEFAULT'];if((_0x68e925=_0x37bdd9===null||_0x37bdd9===void 0x0?void 0x0:_0x37bdd9['staticFile'])===null||_0x68e925===void 0x0?void 0x0:_0x68e925[_0x1a4c06(0xbc)])for(const _0x458448 in _0x37bdd9[_0x1a4c06(0xb3)]['dirs']){((_0xe0e6dc=_0x37bdd9[_0x1a4c06(0xb3)]['dirs'][_0x458448])===null||_0xe0e6dc===void 0x0?void 0x0:_0xe0e6dc[_0x1a4c06(0x124)])&&typeof((_0x26c272=_0x37bdd9[_0x1a4c06(0xb3)][_0x1a4c06(0xbc)][_0x458448])===null||_0x26c272===void 0x0?void 0x0:_0x26c272['dir'])==_0x1a4c06(0xab)&&!fs[_0x1a4c06(0x11f)](_0x37bdd9[_0x1a4c06(0xb3)][_0x1a4c06(0xbc)][_0x458448][_0x1a4c06(0x124)])&&(fs[_0x1a4c06(0xe7)](_0x37bdd9['staticFile'][_0x1a4c06(0xbc)][_0x458448][_0x1a4c06(0x124)],{'recursive':!![]}),console[_0x1a4c06(0x10b)](_0x1a4c06(0xd5)+_0x37bdd9['staticFile'][_0x1a4c06(0xbc)][_0x458448][_0x1a4c06(0x124)]));}((_0xc37e05=_0x37bdd9===null||_0x37bdd9===void 0x0?void 0x0:_0x37bdd9['upload'])===null||_0xc37e05===void 0x0?void 0x0:_0xc37e05[_0x1a4c06(0x118)])&&!fs[_0x1a4c06(0x11f)](_0x37bdd9['upload'][_0x1a4c06(0x118)])&&(fs[_0x1a4c06(0xe7)](_0x37bdd9[_0x1a4c06(0xfc)][_0x1a4c06(0x118)],{'recursive':!![]}),console[_0x1a4c06(0x10b)](_0x1a4c06(0xd2)+_0x37bdd9[_0x1a4c06(0xfc)][_0x1a4c06(0x118)])),this[_0x1a4c06(0xc2)][_0x1a4c06(0x109)](_0x37bdd9);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x3f1598(0xd6),Object)],CustomConfiguration[a2_0x3f1598(0x127)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata(a2_0x3f1598(0xd6),core_2[a2_0x3f1598(0x103)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xc2),void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xf3),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x3f1598(0xd6),core_2[a2_0x3f1598(0xcd)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xc6),void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata(a2_0x3f1598(0xd6),core_2[a2_0x3f1598(0xed)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xae),void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata('design:type',ApiService_1[a2_0x3f1598(0xf9)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xf9),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x3f1598(0x113)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x3f1598(0xbf)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x33538b=a3_0x3475;(function(_0x516ad2,_0x4db5ed){const _0x5141fb=a3_0x3475,_0x264352=_0x516ad2();while(!![]){try{const _0x318946=parseInt(_0x5141fb(0x159))/0x1*(-parseInt(_0x5141fb(0x14a))/0x2)+parseInt(_0x5141fb(0x177))/0x3+-parseInt(_0x5141fb(0x143))/0x4*(-parseInt(_0x5141fb(0x176))/0x5)+parseInt(_0x5141fb(0x144))/0x6*(parseInt(_0x5141fb(0x174))/0x7)+-parseInt(_0x5141fb(0x16f))/0x8+parseInt(_0x5141fb(0x14c))/0x9+parseInt(_0x5141fb(0x155))/0xa;if(_0x318946===_0x4db5ed)break;else _0x264352['push'](_0x264352['shift']());}catch(_0x2e7037){_0x264352['push'](_0x264352['shift']());}}}(a3_0x5f29,0x81fd9));const a3_0x21ae92=(function(){let _0x4539d0=!![];return function(_0xa0f528,_0x1a1d04){const _0x1dcb51=_0x4539d0?function(){const _0x5a0dfe=a3_0x3475;if(_0x1a1d04){const _0x2d617d=_0x1a1d04[_0x5a0dfe(0x157)](_0xa0f528,arguments);return _0x1a1d04=null,_0x2d617d;}}:function(){};return _0x4539d0=![],_0x1dcb51;};}()),a3_0x580a41=a3_0x21ae92(this,function(){const _0x3a6495=a3_0x3475;return a3_0x580a41[_0x3a6495(0x154)]()[_0x3a6495(0x169)](_0x3a6495(0x16e))['toString']()[_0x3a6495(0x152)](a3_0x580a41)[_0x3a6495(0x169)]('(((.+)+)+)+$');});function a3_0x3475(_0xb8192b,_0x33f83a){const _0x415f71=a3_0x5f29();return a3_0x3475=function(_0x580a41,_0x21ae92){_0x580a41=_0x580a41-0x141;let _0x5f2928=_0x415f71[_0x580a41];return _0x5f2928;},a3_0x3475(_0xb8192b,_0x33f83a);}a3_0x580a41();'use strict';function a3_0x5f29(){const _0x4d96b9=['match','211798jWYerU','module','1894527nhxTRs','apps/','app/controller/','filepath','substring','/config.','constructor','endsWith','toString','1141080CvHtfP','replace','apply','ACTION_KEY','7mxmVAJ','\x20文件请放在apps/','middlewareIgnore','@midwayjs/core','trim','-action','tagName','existsSync','__esModule','/controller/文件下','middleware','defineProperty','/apps/','saveModule','length','prefix','search','join','route','splice','split','(((.+)+)+)+$','1289000swospo','basic/controller/','saveClassMetadata','rootpath','getClassMetadata','15659qFqweR','startsWith','5MdogxB','506931QkVFho','APPSCONFIG_KEY','toLowerCase','parseRoute','Controller','2861336DKgOUP','606BczCIQ','filter','Action','indexOf','../types/action'];a3_0x5f29=function(){return _0x4d96b9;};return a3_0x5f29();}Object[a3_0x33538b(0x164)](exports,a3_0x33538b(0x161),{'value':!![]}),exports[a3_0x33538b(0x141)]=exports[a3_0x33538b(0x146)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x33538b(0x15c)),action_1=require(a3_0x33538b(0x148));function Action(_0x4c33b3,_0x1c7ddc,_0x7423ff={'middleware':[],'sensitive':!![]}){return _0x24ebe5=>{const _0x5632bf=a3_0x3475;var _0x86ad72;_0x7423ff[_0x5632bf(0x15f)]=_0x1c7ddc;const _0x4e01dd=parseRoute(_0x4c33b3);if(_0x4e01dd[_0x5632bf(0x14b)]){_0x7423ff[_0x5632bf(0x168)]=_0x7423ff[_0x5632bf(0x168)]?'/'+_0x4e01dd[_0x5632bf(0x14b)]+'/'+_0x7423ff['prefix']:'/'+_0x4e01dd[_0x5632bf(0x16b)];_0x4e01dd['prefix']&&(_0x7423ff[_0x5632bf(0x168)]='/'+_0x4e01dd[_0x5632bf(0x168)]+'/'+_0x7423ff[_0x5632bf(0x168)]);if(fs[_0x5632bf(0x160)](_0x4e01dd['rootpath']+_0x5632bf(0x165)+_0x4e01dd['module']+_0x5632bf(0x151)+(lodash['endsWith'](_0x4e01dd[_0x5632bf(0x14f)],'ts')?'ts':'js'))){const _0x40cab1=include(_0x4e01dd[_0x5632bf(0x172)]+_0x5632bf(0x165)+_0x4e01dd[_0x5632bf(0x14b)]+_0x5632bf(0x151)+(lodash['endsWith'](_0x4e01dd[_0x5632bf(0x14f)],'ts')?'ts':'js'));if(_0x40cab1['middleware']&&lodash['isArray'](_0x40cab1[_0x5632bf(0x163)])&&_0x40cab1[_0x5632bf(0x163)][_0x5632bf(0x167)]>0x0)for(let _0x157e38 in _0x40cab1[_0x5632bf(0x163)]){if(((_0x86ad72=_0x40cab1===null||_0x40cab1===void 0x0?void 0x0:_0x40cab1[_0x5632bf(0x15b)])===null||_0x86ad72===void 0x0?void 0x0:_0x86ad72[_0x5632bf(0x167)])>0x0&&_0x40cab1['middlewareIgnore']['indexOf'](_0x40cab1[_0x5632bf(0x163)][_0x157e38])!=-0x1)continue;_0x7423ff['middleware']['push'](_0x40cab1[_0x5632bf(0x163)][_0x157e38]);}const _0x3dcb69=(0x0,core_1[_0x5632bf(0x173)])(action_1[_0x5632bf(0x178)],action_1['AppsConfigTmp'])||{};_0x3dcb69[''+_0x4e01dd[_0x5632bf(0x14b)]]=_0x40cab1,(0x0,core_1[_0x5632bf(0x171)])(action_1['APPSCONFIG_KEY'],_0x3dcb69,action_1['AppsConfigTmp']);}_0x7423ff[_0x5632bf(0x168)]=_0x7423ff['prefix'][_0x5632bf(0x179)]()[_0x5632bf(0x156)](/\/{2,}/g,'/'),(0x0,core_1[_0x5632bf(0x166)])(action_1['ACTION_KEY'],_0x24ebe5),(0x0,core_1['Controller'])(_0x7423ff[_0x5632bf(0x168)],_0x7423ff)(_0x24ebe5),(0x0,core_1[_0x5632bf(0x171)])(action_1[_0x5632bf(0x158)],{'prefix':_0x7423ff['prefix'],'pprefix':_0x4e01dd[_0x5632bf(0x168)],'module':_0x4e01dd['module'],'filepath':_0x4e01dd['filepath'],'routerOptions':_0x7423ff},_0x24ebe5);}else _0x7423ff[_0x5632bf(0x168)]=_0x7423ff['prefix']?'/'+_0x7423ff[_0x5632bf(0x168)]:'/'+_0x4e01dd[_0x5632bf(0x16b)],_0x4e01dd[_0x5632bf(0x168)]&&(_0x7423ff[_0x5632bf(0x168)]='/'+_0x4e01dd[_0x5632bf(0x168)]+'/'+_0x7423ff[_0x5632bf(0x168)]),_0x7423ff[_0x5632bf(0x168)]=_0x7423ff[_0x5632bf(0x168)][_0x5632bf(0x179)]()[_0x5632bf(0x156)](/\/{2,}/g,'/'),(0x0,core_1[_0x5632bf(0x166)])(action_1[_0x5632bf(0x158)],_0x24ebe5),(0x0,core_1[_0x5632bf(0x142)])(_0x7423ff['prefix'],_0x7423ff)(_0x24ebe5),(0x0,core_1['saveClassMetadata'])(action_1[_0x5632bf(0x158)],{'prefix':_0x7423ff[_0x5632bf(0x168)],'module':_0x4e01dd[_0x5632bf(0x14b)],'pprefix':_0x4e01dd['prefix'],'filepath':_0x4e01dd[_0x5632bf(0x14f)],'routerOptions':_0x7423ff},_0x24ebe5);};}exports[a3_0x33538b(0x146)]=Action;function parseRoute(_0x49bd76){const _0x11f647=a3_0x33538b;_0x49bd76=_0x49bd76[_0x11f647(0x156)](/(\\|\/)/g,'/');const _0x6f0ea4=process['cwd']()[_0x11f647(0x156)](/(\\|\/)/g,'/'),_0x5e2a8d=_0x49bd76[_0x11f647(0x150)](0x0,_0x6f0ea4['length']+_0x49bd76[_0x11f647(0x150)](_0x6f0ea4[_0x11f647(0x167)]+0x1)[_0x11f647(0x147)]('/')+0x1),_0x4e6520=_0x49bd76[_0x11f647(0x150)](_0x5e2a8d[_0x11f647(0x167)]+0x1)[_0x11f647(0x156)](/(\\|\/)/g,'/'),_0xcffe5a={'route':'','prefix':![],'module':![],'rootpath':_0x5e2a8d,'filepath':_0x4e6520};if(_0x4e6520[_0x11f647(0x175)]('app/controller/')||_0x4e6520[_0x11f647(0x175)](_0x11f647(0x170))){const _0x5cc4df=_0x4e6520[_0x11f647(0x150)]((_0x4e6520[_0x11f647(0x175)]('app/controller/')?_0x11f647(0x14e):'basic/controller/')[_0x11f647(0x167)])[_0x11f647(0x16d)]('/')[_0x11f647(0x145)](_0x238545=>_0x238545&&_0x238545[_0x11f647(0x15d)]());return _0x5cc4df[_0x11f647(0x167)]>0x1&&(_0xcffe5a[_0x11f647(0x168)]=_0x5cc4df[0x0][_0x11f647(0x179)](),_0x5cc4df[_0x11f647(0x16c)](0x0,0x1)),_0xcffe5a[_0x11f647(0x16b)]=('/'+_0x5cc4df[_0x11f647(0x16a)]('/'))[_0x11f647(0x156)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x11f647(0x149)](/[\/|A-Z]*[^A-Z]+/g)[_0x11f647(0x16a)]('-')[_0x11f647(0x179)]()['replace'](/\/\-/g,'/'),_0xcffe5a['route'][_0x11f647(0x153)]('-action')&&(_0xcffe5a[_0x11f647(0x16b)]=_0xcffe5a[_0x11f647(0x16b)]['substring'](0x0,_0xcffe5a[_0x11f647(0x16b)]['length']-0x7)),_0xcffe5a[_0x11f647(0x16b)]['endsWith']('-controller')&&(_0xcffe5a[_0x11f647(0x16b)]=_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x150)](0x0,_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x167)]-0xb)),_0xcffe5a;}else{if(_0x4e6520[_0x11f647(0x175)](_0x11f647(0x14d))){const _0x1a70af=_0x4e6520[_0x11f647(0x150)](0x0,_0x4e6520[_0x11f647(0x147)]('/apps/')+0x5),_0x575d50=_0x4e6520[_0x11f647(0x150)](_0x1a70af[_0x11f647(0x167)]+0x1)[_0x11f647(0x156)](/(\\|\/)/g,'/')[_0x11f647(0x16d)]('/')[0x0];if(_0x4e6520['startsWith'](_0x11f647(0x14d)+_0x575d50+'/controller/')){const _0x2a5bdc=_0x4e6520[_0x11f647(0x150)]((_0x1a70af+'/'+_0x575d50+'/controller/')[_0x11f647(0x167)])['split']('/')[_0x11f647(0x145)](_0x3ae4ba=>_0x3ae4ba&&_0x3ae4ba[_0x11f647(0x15d)]());return _0x2a5bdc[_0x11f647(0x167)]>0x1&&(_0xcffe5a['prefix']=_0x2a5bdc[0x0]['toLowerCase'](),_0x2a5bdc[_0x11f647(0x16c)](0x0,0x1)),_0xcffe5a[_0x11f647(0x14b)]=_0x575d50,_0xcffe5a[_0x11f647(0x16b)]=('/'+_0x575d50+'/'+_0x2a5bdc['join']('/'))[_0x11f647(0x156)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x11f647(0x16a)]('-')[_0x11f647(0x179)]()[_0x11f647(0x156)](/\/\-/g,'/'),_0xcffe5a[_0x11f647(0x16b)]['endsWith'](_0x11f647(0x15e))&&(_0xcffe5a['route']=_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x150)](0x0,_0xcffe5a['route'][_0x11f647(0x167)]-0x7)),_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x153)]('-controller')&&(_0xcffe5a[_0x11f647(0x16b)]=_0xcffe5a['route'][_0x11f647(0x150)](0x0,_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x167)]-0xb)),_0xcffe5a;}throw new Error(_0x4e6520+_0x11f647(0x15a)+_0x575d50+_0x11f647(0x162));}}throw new Error(_0x4e6520+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x448121=a4_0x4a5a;(function(_0x2c15b6,_0x4b0ba4){const _0x157169=a4_0x4a5a,_0xd5b53=_0x2c15b6();while(!![]){try{const _0x3ad42d=parseInt(_0x157169(0xee))/0x1+parseInt(_0x157169(0xfd))/0x2+-parseInt(_0x157169(0xf6))/0x3+-parseInt(_0x157169(0x103))/0x4*(-parseInt(_0x157169(0xf8))/0x5)+-parseInt(_0x157169(0xf2))/0x6+-parseInt(_0x157169(0x10c))/0x7*(-parseInt(_0x157169(0x105))/0x8)+-parseInt(_0x157169(0xff))/0x9;if(_0x3ad42d===_0x4b0ba4)break;else _0xd5b53['push'](_0xd5b53['shift']());}catch(_0x384adf){_0xd5b53['push'](_0xd5b53['shift']());}}}(a4_0x200d,0xd64a1));const a4_0x32fc5d=(function(){let _0x45f414=!![];return function(_0x1bcf91,_0x18a560){const _0x15b493=_0x45f414?function(){const _0x309c5b=a4_0x4a5a;if(_0x18a560){const _0xd7cbfb=_0x18a560[_0x309c5b(0x10a)](_0x1bcf91,arguments);return _0x18a560=null,_0xd7cbfb;}}:function(){};return _0x45f414=![],_0x15b493;};}()),a4_0x31d86a=a4_0x32fc5d(this,function(){const _0x54beb7=a4_0x4a5a;return a4_0x31d86a[_0x54beb7(0xed)]()[_0x54beb7(0x109)](_0x54beb7(0xf4))['toString']()['constructor'](a4_0x31d86a)[_0x54beb7(0x109)](_0x54beb7(0xf4));});a4_0x31d86a();function a4_0x4a5a(_0x49a61a,_0x37a4ba){const _0x2ad92c=a4_0x200d();return a4_0x4a5a=function(_0x31d86a,_0x32fc5d){_0x31d86a=_0x31d86a-0xe9;let _0x200d5e=_0x2ad92c[_0x31d86a];return _0x200d5e;},a4_0x4a5a(_0x49a61a,_0x37a4ba);}'use strict';function a4_0x200d(){const _0x76e239=['24EimqZs','middleware','RequestMapping','@anncic-api/validator','search','apply','validate','2275084jaGFDt','del','attachClassMetadata','filter','string','toString','865924tCJrCu','Api','createCustomMethodDecorator','Validator','6677934aXztGK','middlewareIgnore','(((.+)+)+)+$','delete','890439VoVDiG','length','5GlFHHZ','ACTION_ROUTE_KEY','__esModule','get','intercept','3464210mYBqYu','routerName','16667100VIuSPZ','defineProperty','apimit','undefined','2265464HTCLRc','toLowerCase'];a4_0x200d=function(){return _0x76e239;};return a4_0x200d();}Object[a4_0x448121(0x100)](exports,a4_0x448121(0xfa),{'value':!![]}),exports[a4_0x448121(0xef)]=void 0x0;const validator_1=require(a4_0x448121(0x108)),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Api(_0x188a7a,_0x1e4de1=a4_0x448121(0xfb),_0x78080='/',_0x3f6f78={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3b4fdd,_0x4944e2,_0x5905ea)=>{const _0x20ef5f=a4_0x4a5a;var _0x2eeaa4,_0xb529db,_0x443e61;!_0x3f6f78[_0x20ef5f(0x106)]&&(_0x3f6f78['middleware']=[]);!((_0x2eeaa4=_0x3f6f78===null||_0x3f6f78===void 0x0?void 0x0:_0x3f6f78[_0x20ef5f(0x10b)])===null||_0x2eeaa4===void 0x0?void 0x0:_0x2eeaa4['validationOptions'])&&(_0x3f6f78['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x20ef5f(0xec)}});typeof _0x3f6f78[_0x20ef5f(0x101)]==_0x20ef5f(0x102)&&(_0x3f6f78['apimit']=!![]);if(((_0xb529db=_0x3f6f78===null||_0x3f6f78===void 0x0?void 0x0:_0x3f6f78['middleware'])===null||_0xb529db===void 0x0?void 0x0:_0xb529db['length'])>0x0&&((_0x443e61=_0x3f6f78===null||_0x3f6f78===void 0x0?void 0x0:_0x3f6f78[_0x20ef5f(0xf3)])===null||_0x443e61===void 0x0?void 0x0:_0x443e61[_0x20ef5f(0xf7)])>0x0)for(let _0xab7ac5 in _0x3f6f78[_0x20ef5f(0x106)]){_0x3f6f78[_0x20ef5f(0xf3)]['indexOf'](_0x3f6f78['middleware'][_0xab7ac5])!==-0x1&&(_0x3f6f78[_0x20ef5f(0x106)][_0xab7ac5]=null);}_0x3f6f78[_0x20ef5f(0xfe)]=_0x188a7a,(0x0,validator_1[_0x20ef5f(0xf1)])(_0x3f6f78['validate'])(_0x3b4fdd,_0x4944e2,_0x5905ea),(0x0,core_1[_0x20ef5f(0x107)])(Object['assign'](_0x3f6f78,{'path':_0x78080,'requestMethod':(_0x1e4de1==_0x20ef5f(0xe9)?_0x20ef5f(0xf5):_0x1e4de1)[_0x20ef5f(0x104)]()}))(_0x3b4fdd,_0x4944e2,_0x5905ea),(0x0,core_1[_0x20ef5f(0xea)])(action_1[_0x20ef5f(0xf9)],{'path':_0x78080,'method':_0x4944e2,'apimit':_0x3f6f78['apimit'],'intercept':_0x3f6f78['intercept'],'routerName':_0x3f6f78[_0x20ef5f(0xfe)],'description':_0x3f6f78['description'],'middleware':(_0x3f6f78[_0x20ef5f(0x106)]||[])[_0x20ef5f(0xeb)](_0x23df74=>!!_0x23df74),'requestMethod':(_0x1e4de1==_0x20ef5f(0xe9)?_0x20ef5f(0xf5):_0x1e4de1)['toLowerCase']()},_0x3b4fdd),(0x0,core_1[_0x20ef5f(0xf0)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x78080,'method':_0x4944e2,'apimit':_0x3f6f78['apimit'],'intercept':_0x3f6f78[_0x20ef5f(0xfc)],'routerName':_0x3f6f78[_0x20ef5f(0xfe)],'description':_0x3f6f78['description'],'middleware':(_0x3f6f78['middleware']||[])['filter'](_0x5bfc1d=>!!_0x5bfc1d),'requestMethod':(_0x1e4de1==_0x20ef5f(0xe9)?_0x20ef5f(0xf5):_0x1e4de1)['toLowerCase']()})(_0x3b4fdd,_0x4944e2,_0x5905ea);};}exports[a4_0x448121(0xef)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x103285=a5_0x4075;(function(_0x26c268,_0x226a19){const _0x2ab69e=a5_0x4075,_0x189b3b=_0x26c268();while(!![]){try{const _0x5e1d9f=parseInt(_0x2ab69e(0x11d))/0x1*(parseInt(_0x2ab69e(0x113))/0x2)+parseInt(_0x2ab69e(0x111))/0x3+parseInt(_0x2ab69e(0x116))/0x4+parseInt(_0x2ab69e(0x10e))/0x5*(parseInt(_0x2ab69e(0x11e))/0x6)+-parseInt(_0x2ab69e(0x117))/0x7*(parseInt(_0x2ab69e(0x11f))/0x8)+-parseInt(_0x2ab69e(0x114))/0x9*(-parseInt(_0x2ab69e(0x10d))/0xa)+-parseInt(_0x2ab69e(0x11c))/0xb*(-parseInt(_0x2ab69e(0x10c))/0xc);if(_0x5e1d9f===_0x226a19)break;else _0x189b3b['push'](_0x189b3b['shift']());}catch(_0x40aa54){_0x189b3b['push'](_0x189b3b['shift']());}}}(a5_0x2b9c,0xd4a9c));const a5_0x5d765a=(function(){let _0x2584c4=!![];return function(_0x53755a,_0x4dd5c9){const _0x564c74=_0x2584c4?function(){const _0x35539a=a5_0x4075;if(_0x4dd5c9){const _0x48cf98=_0x4dd5c9[_0x35539a(0x115)](_0x53755a,arguments);return _0x4dd5c9=null,_0x48cf98;}}:function(){};return _0x2584c4=![],_0x564c74;};}()),a5_0x121181=a5_0x5d765a(this,function(){const _0x1982c2=a5_0x4075;return a5_0x121181[_0x1982c2(0x124)]()[_0x1982c2(0x12b)](_0x1982c2(0x123))[_0x1982c2(0x124)]()[_0x1982c2(0x11a)](a5_0x121181)['search'](_0x1982c2(0x123));});a5_0x121181();'use strict';function a5_0x4075(_0x447f3a,_0x3685cf){const _0x373815=a5_0x2b9c();return a5_0x4075=function(_0x121181,_0x5d765a){_0x121181=_0x121181-0x109;let _0x2b9c0e=_0x373815[_0x121181];return _0x2b9c0e;},a5_0x4075(_0x447f3a,_0x3685cf);}function a5_0x2b9c(){const _0x354623=['114vxoRvI','36153HmpfGF','apply','144908BnDwwW','7LmbEio','ApitestService','get','constructor','getApplicationContext','11VWEajM','2347OnWPwX','22434lcedrp','11173472rEekHB','getAsync','app','getConfig','(((.+)+)+)+$','toString','defineProperty','filepath','RequestMapping','isDevelopmentEnvironment','apitest','__esModule','search','Apitest','@midwayjs/core','REQUEST_OBJ_CTX_KEY','551388yXXyDB','290FLqxqx','1865wZLSXr','/apitest','value','1621971GFCsnz','MidwayEnvironmentService'];a5_0x2b9c=function(){return _0x354623;};return a5_0x2b9c();}Object[a5_0x103285(0x125)](exports,a5_0x103285(0x12a),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a5_0x103285(0x10a)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x121a22=a5_0x103285(0x10f),_0x348719){return(_0x3b7298,_0x2581dd,_0x4901d4)=>{const _0x281eb4=a5_0x4075;return(0x0,core_1[_0x281eb4(0x127)])({'path':_0x121a22,'requestMethod':_0x281eb4(0x119)})(_0x3b7298,_0x2581dd,_0x4901d4),_0x4901d4[_0x281eb4(0x110)]=async function(..._0xdd29eb){const _0x21b2a8=_0x281eb4;var _0x1a7d96;const _0x5b3fdb=(_0x1a7d96=this[core_1[_0x21b2a8(0x10b)]])===null||_0x1a7d96===void 0x0?void 0x0:_0x1a7d96[_0x21b2a8(0x121)];if(_0x5b3fdb&&_0x5b3fdb[_0x21b2a8(0x122)](_0x21b2a8(0x129))){const _0x1ab3f5=await _0x5b3fdb[_0x21b2a8(0x11b)]()['getAsync'](ApitestService_1[_0x21b2a8(0x118)]),_0x5cd5c5=await _0x5b3fdb[_0x21b2a8(0x11b)]()[_0x21b2a8(0x120)](core_1[_0x21b2a8(0x112)]);return _0x5cd5c5[_0x21b2a8(0x128)]()&&(_0x348719[_0x21b2a8(0x126)]=!![]),await _0x1ab3f5['apidoc'](_0x348719);}return'';},_0x4901d4;};}exports[a5_0x103285(0x109)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x7d3158=a6_0x320d;(function(_0x2b528a,_0x1049ac){const _0x5032f1=a6_0x320d,_0x501c7f=_0x2b528a();while(!![]){try{const _0x14e672=parseInt(_0x5032f1(0x198))/0x1*(parseInt(_0x5032f1(0x180))/0x2)+-parseInt(_0x5032f1(0x192))/0x3*(-parseInt(_0x5032f1(0x191))/0x4)+-parseInt(_0x5032f1(0x199))/0x5+parseInt(_0x5032f1(0x183))/0x6*(-parseInt(_0x5032f1(0x18a))/0x7)+parseInt(_0x5032f1(0x188))/0x8*(parseInt(_0x5032f1(0x184))/0x9)+parseInt(_0x5032f1(0x17f))/0xa+parseInt(_0x5032f1(0x18b))/0xb;if(_0x14e672===_0x1049ac)break;else _0x501c7f['push'](_0x501c7f['shift']());}catch(_0x3cbd34){_0x501c7f['push'](_0x501c7f['shift']());}}}(a6_0x5724,0x4c57e));const a6_0x46e0a4=(function(){let _0x444577=!![];return function(_0x51d1f6,_0x856e76){const _0x39a0ee=_0x444577?function(){const _0x6ff4d6=a6_0x320d;if(_0x856e76){const _0x4a407c=_0x856e76[_0x6ff4d6(0x19a)](_0x51d1f6,arguments);return _0x856e76=null,_0x4a407c;}}:function(){};return _0x444577=![],_0x39a0ee;};}()),a6_0x29c28e=a6_0x46e0a4(this,function(){const _0x582a1c=a6_0x320d;return a6_0x29c28e[_0x582a1c(0x190)]()['search'](_0x582a1c(0x196))[_0x582a1c(0x190)]()[_0x582a1c(0x186)](a6_0x29c28e)[_0x582a1c(0x18f)](_0x582a1c(0x196));});a6_0x29c28e();'use strict';Object[a6_0x7d3158(0x187)](exports,a6_0x7d3158(0x195),{'value':!![]}),exports[a6_0x7d3158(0x17e)]=exports[a6_0x7d3158(0x197)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a6_0x7d3158(0x193));function Intercept(_0x161241){return _0x1a705f=>{const _0x242cb6=a6_0x320d,_0xd22f68=(0x0,core_1['getClassMetadata'])(intercept_1[_0x242cb6(0x185)],intercept_1['InterceptTargetTmp'])||{};for(let _0x8586f1 of Array[_0x242cb6(0x189)](_0x161241)?_0x161241:[_0x161241]){_0x8586f1=_0x8586f1[_0x242cb6(0x182)]();!(_0xd22f68===null||_0xd22f68===void 0x0?void 0x0:_0xd22f68[_0x8586f1])&&(_0xd22f68[_0x8586f1]=[]);if(_0xd22f68[_0x8586f1][_0x242cb6(0x181)](_0x1a705f))continue;_0xd22f68[_0x8586f1][_0x242cb6(0x17c)](_0x1a705f);}(0x0,core_1[_0x242cb6(0x17b)])()(_0x1a705f),(0x0,core_1[_0x242cb6(0x18c)])(core_1[_0x242cb6(0x18d)]['Singleton'])(_0x1a705f),(0x0,core_1[_0x242cb6(0x17d)])(intercept_1[_0x242cb6(0x185)],_0xd22f68,intercept_1[_0x242cb6(0x194)]);};}exports[a6_0x7d3158(0x197)]=Intercept;function a6_0x320d(_0x2b5531,_0x2af471){const _0x3f58be=a6_0x5724();return a6_0x320d=function(_0x29c28e,_0x46e0a4){_0x29c28e=_0x29c28e-0x17b;let _0x572461=_0x3f58be[_0x29c28e];return _0x572461;},a6_0x320d(_0x2b5531,_0x2af471);}function a6_0x5724(){const _0x41cca7=['IIntercept','4374280aEpjVZ','39366OoswiI','includes','toUpperCase','24OZwspn','9TvBxlr','INTERCEPT_KEY','constructor','defineProperty','4774648UpvQys','isArray','1023939fsWXLL','741873BXzZFG','Scope','ScopeEnum','match','search','toString','1097736gdkqsG','3WsUEdI','../types/intercept','InterceptTargetTmp','__esModule','(((.+)+)+)+$','Intercept','7PhlmYH','3080535VHDMYB','apply','Provide','push','saveClassMetadata'];a6_0x5724=function(){return _0x41cca7;};return a6_0x5724();}class IIntercept{async[a6_0x7d3158(0x18e)](_0x2c75bb,_0x171143,_0x16ac96){return!![];}}exports[a6_0x7d3158(0x17e)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7_0x136e6d=a7_0xb9f0;(function(_0x4e3fe2,_0x26daab){var _0x23782c=a7_0xb9f0,_0x3e5476=_0x4e3fe2();while(!![]){try{var _0x593457=parseInt(_0x23782c(0xc0))/0x1*(-parseInt(_0x23782c(0xbb))/0x2)+parseInt(_0x23782c(0xb3))/0x3+-parseInt(_0x23782c(0xae))/0x4*(-parseInt(_0x23782c(0xbf))/0x5)+-parseInt(_0x23782c(0xc4))/0x6+parseInt(_0x23782c(0xb9))/0x7+parseInt(_0x23782c(0xaf))/0x8*(-parseInt(_0x23782c(0xba))/0x9)+parseInt(_0x23782c(0xaa))/0xa;if(_0x593457===_0x26daab)break;else _0x3e5476['push'](_0x3e5476['shift']());}catch(_0x24d68d){_0x3e5476['push'](_0x3e5476['shift']());}}}(a7_0x32aa,0xd5ace));function a7_0x32aa(){var _0x54f704=['getOwnPropertyDescriptor','3598338mOTbuR','TIMEOUT_LOGINTIME','请求超时,请重试','constructor','HEADERS_LACK','TIMEOUT','登录超时,请重新登录','metadata','search','__esModule','6828210xklgTg','design:type','decorate','defineProperty','14104oKEwDd','8fLUghl','__metadata','验证失败,请重新登录','__decorate','1661334PmVdxD','toString','(((.+)+)+)+$','ApiError','object','HEADERS_DEVICE','4291140ghdpzW','1134639wCEtqy','2kVWGop','HEADERS_SIGNATURE','请使用正确的设备','HEADERS_CHECKCODE','905rxDFLQ','886817rcLubh','length','function'];a7_0x32aa=function(){return _0x54f704;};return a7_0x32aa();}function a7_0xb9f0(_0x3de90f,_0x213b03){var _0x496ede=a7_0x32aa();return a7_0xb9f0=function(_0x2d719d,_0x2887b4){_0x2d719d=_0x2d719d-0xa1;var _0x32aac5=_0x496ede[_0x2d719d];return _0x32aac5;},a7_0xb9f0(_0x3de90f,_0x213b03);}var a7_0x2887b4=(function(){var _0x281b04=!![];return function(_0x187e04,_0x120c5a){var _0x48bef9=_0x281b04?function(){if(_0x120c5a){var _0x4959d7=_0x120c5a['apply'](_0x187e04,arguments);return _0x120c5a=null,_0x4959d7;}}:function(){};return _0x281b04=![],_0x48bef9;};}()),a7_0x2d719d=a7_0x2887b4(this,function(){var _0x68bc64=a7_0xb9f0;return a7_0x2d719d['toString']()['search'](_0x68bc64(0xb5))[_0x68bc64(0xb4)]()[_0x68bc64(0xa3)](a7_0x2d719d)[_0x68bc64(0xa8)](_0x68bc64(0xb5));});a7_0x2d719d();'use strict';var __decorate=this&&this[a7_0x136e6d(0xb2)]||function(_0x4885fb,_0x194104,_0x286694,_0x37d9f4){var _0x24f0fd=a7_0x136e6d,_0x4bf10b=arguments['length'],_0x470184=_0x4bf10b<0x3?_0x194104:_0x37d9f4===null?_0x37d9f4=Object[_0x24f0fd(0xc3)](_0x194104,_0x286694):_0x37d9f4,_0x436fdc;if(typeof Reflect===_0x24f0fd(0xb7)&&typeof Reflect[_0x24f0fd(0xac)]===_0x24f0fd(0xc2))_0x470184=Reflect[_0x24f0fd(0xac)](_0x4885fb,_0x194104,_0x286694,_0x37d9f4);else{for(var _0x2302e9=_0x4885fb[_0x24f0fd(0xc1)]-0x1;_0x2302e9>=0x0;_0x2302e9--)if(_0x436fdc=_0x4885fb[_0x2302e9])_0x470184=(_0x4bf10b<0x3?_0x436fdc(_0x470184):_0x4bf10b>0x3?_0x436fdc(_0x194104,_0x286694,_0x470184):_0x436fdc(_0x194104,_0x286694))||_0x470184;}return _0x4bf10b>0x3&&_0x470184&&Object[_0x24f0fd(0xad)](_0x194104,_0x286694,_0x470184),_0x470184;},__metadata=this&&this[a7_0x136e6d(0xb0)]||function(_0x42c5c3,_0x9197cd){var _0x257854=a7_0x136e6d;if(typeof Reflect===_0x257854(0xb7)&&typeof Reflect[_0x257854(0xa7)]===_0x257854(0xc2))return Reflect['metadata'](_0x42c5c3,_0x9197cd);};Object['defineProperty'](exports,a7_0x136e6d(0xa9),{'value':!![]}),exports[a7_0x136e6d(0xb6)]=void 0x0;class ApiError extends AnnError{}ApiError[a7_0x136e6d(0xa5)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError[a7_0x136e6d(0xbc)]=0x18e74,ApiError[a7_0x136e6d(0xbe)]=0x18e75,ApiError[a7_0x136e6d(0xa1)]=0x18e76,__decorate([AnnErrorMsg(a7_0x136e6d(0xa2)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a7_0x136e6d(0xab),Object)],ApiError,a7_0x136e6d(0xa4),void 0x0),__decorate([AnnErrorMsg(a7_0x136e6d(0xbd)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,a7_0x136e6d(0xb8),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a7_0x136e6d(0xbc),void 0x0),__decorate([AnnErrorMsg(a7_0x136e6d(0xb1)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,a7_0x136e6d(0xbe),void 0x0),__decorate([AnnErrorMsg(a7_0x136e6d(0xa6)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a8_0x35f7ee=a8_0x2767;(function(_0x56f44b,_0x181f94){const _0x4fefdc=a8_0x2767,_0x4306e2=_0x56f44b();while(!![]){try{const _0x1a8bc8=-parseInt(_0x4fefdc(0x1ba))/0x1*(-parseInt(_0x4fefdc(0x1ab))/0x2)+parseInt(_0x4fefdc(0x1a7))/0x3+-parseInt(_0x4fefdc(0x1aa))/0x4*(parseInt(_0x4fefdc(0x1b2))/0x5)+-parseInt(_0x4fefdc(0x1b8))/0x6*(-parseInt(_0x4fefdc(0x1b4))/0x7)+parseInt(_0x4fefdc(0x1b3))/0x8+-parseInt(_0x4fefdc(0x1ad))/0x9*(parseInt(_0x4fefdc(0x1ac))/0xa)+-parseInt(_0x4fefdc(0x1bb))/0xb*(parseInt(_0x4fefdc(0x1af))/0xc);if(_0x1a8bc8===_0x181f94)break;else _0x4306e2['push'](_0x4306e2['shift']());}catch(_0x15eb26){_0x4306e2['push'](_0x4306e2['shift']());}}}(a8_0x4a0c,0x467a6));const a8_0x258d22=(function(){let _0x3a9f52=!![];return function(_0x4e8bb8,_0x2e8bc3){const _0x45b1d6=_0x3a9f52?function(){const _0x19c779=a8_0x2767;if(_0x2e8bc3){const _0x41e95a=_0x2e8bc3[_0x19c779(0x1bc)](_0x4e8bb8,arguments);return _0x2e8bc3=null,_0x41e95a;}}:function(){};return _0x3a9f52=![],_0x45b1d6;};}()),a8_0x575377=a8_0x258d22(this,function(){const _0x38d694=a8_0x2767;return a8_0x575377['toString']()['search'](_0x38d694(0x1b7))['toString']()['constructor'](a8_0x575377)[_0x38d694(0x1b1)](_0x38d694(0x1b7));});a8_0x575377();'use strict';Object[a8_0x35f7ee(0x1b0)](exports,a8_0x35f7ee(0x1b9),{'value':!![]}),exports[a8_0x35f7ee(0x1a8)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x2e2da9){const _0x41c548=a8_0x35f7ee,_0x2382c0=(0x0,core_1[_0x41c548(0x1b5)])(action_1[_0x41c548(0x1a9)],action_1[_0x41c548(0x1b6)])||{};return _0x2e2da9?lodash[_0x41c548(0x1ae)](_0x2382c0,_0x2e2da9):_0x2382c0;}exports[a8_0x35f7ee(0x1a8)]=getAppsConfig;function a8_0x2767(_0xa9483d,_0x320679){const _0x9e149b=a8_0x4a0c();return a8_0x2767=function(_0x575377,_0x258d22){_0x575377=_0x575377-0x1a7;let _0x4a0ccc=_0x9e149b[_0x575377];return _0x4a0ccc;},a8_0x2767(_0xa9483d,_0x320679);}function a8_0x4a0c(){const _0x14cf1f=['396aGWSNd','22TnRyeM','apply','1691613yaHFOp','getAppsConfig','APPSCONFIG_KEY','7544VbLxss','1342bvDCPj','10iQkDDk','4645638vbomgL','get','3333612OjhHsS','defineProperty','search','545ETnwZa','2358872IvYgyD','618226joheNJ','getClassMetadata','AppsConfigTmp','(((.+)+)+)+$','30juvAfu','__esModule'];a8_0x4a0c=function(){return _0x14cf1f;};return a8_0x4a0c();}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x48c4af=a9_0x2f8b;(function(_0x4b822c,_0xe22b1b){const _0x5beef7=a9_0x2f8b,_0x311ac1=_0x4b822c();while(!![]){try{const _0x1b3c57=parseInt(_0x5beef7(0xf4))/0x1+parseInt(_0x5beef7(0x103))/0x2+parseInt(_0x5beef7(0xfe))/0x3+-parseInt(_0x5beef7(0xd2))/0x4+parseInt(_0x5beef7(0xfc))/0x5*(-parseInt(_0x5beef7(0xb0))/0x6)+-parseInt(_0x5beef7(0xda))/0x7+parseInt(_0x5beef7(0xca))/0x8;if(_0x1b3c57===_0xe22b1b)break;else _0x311ac1['push'](_0x311ac1['shift']());}catch(_0x58a464){_0x311ac1['push'](_0x311ac1['shift']());}}}(a9_0x1c4e,0x74cc7));const a9_0x3eb41a=(function(){let _0x18194a=!![];return function(_0x37fbe2,_0x55a4be){const _0x674f9f=_0x18194a?function(){const _0x30ba95=a9_0x2f8b;if(_0x55a4be){const _0x484c1b=_0x55a4be[_0x30ba95(0xd7)](_0x37fbe2,arguments);return _0x55a4be=null,_0x484c1b;}}:function(){};return _0x18194a=![],_0x674f9f;};}()),a9_0x2400d4=a9_0x3eb41a(this,function(){const _0x394ab9=a9_0x2f8b;return a9_0x2400d4[_0x394ab9(0xd0)]()[_0x394ab9(0xd4)](_0x394ab9(0xee))[_0x394ab9(0xd0)]()[_0x394ab9(0xd5)](a9_0x2400d4)[_0x394ab9(0xd4)]('(((.+)+)+)+$');});a9_0x2400d4();function a9_0x2f8b(_0x55c0f2,_0x524e82){const _0x511977=a9_0x1c4e();return a9_0x2f8b=function(_0x2400d4,_0x3eb41a){_0x2400d4=_0x2400d4-0xa9;let _0x1c4e3d=_0x511977[_0x2400d4];return _0x1c4e3d;},a9_0x2f8b(_0x55c0f2,_0x524e82);}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x48c4af(0xc2)]=void 0x0;function a9_0x1c4e(){const _0x51f011=['min','getRoutes','header','allow','只允许:[','method','Boolean','module','request','2468896LqOtBQ','File','flags.default','isArray','summary','push','toString','length','1749076lXcFUH','title','search','constructor','find','apply','number','body','833882dCDZMm','args','query','replace','object','children','getClassMetadata','limit','listModule','iterator','name','propertyData','BODY','getMethodParamTypes','RouteParamTypes','default','type','filepath','function','rules','(((.+)+)+)+$','filter','endsWith','string','RULES_KEY','FIELDS','801204gdjQyi','tagName','join','keys','split','path','ACTION_ROUTE_KEY','test','4095RVLBTo','intercept','1541487nCRtBG','describe','array','get','prefix','352206HjkNYF','@anncic-api/validator','@midwayjs/core','pprefix','flags.label','Object','metadata','route','max','required','indexOf','5604UKbNIB','/static/apitest','description','parameterIndex','../types/action','concat','FILESTREAM','FILESSTREAM','noreq','WEB_ROUTER_PARAM_KEY','QUERY','INJECT_CUSTOM_PARAM','file','key','startsWith','routerOptions','routes'];a9_0x1c4e=function(){return _0x51f011;};return a9_0x1c4e();}const lodash_1=require('lodash'),validator_1=require(a9_0x48c4af(0x104)),core_1=require(a9_0x48c4af(0x105)),core_2=require(a9_0x48c4af(0x105)),core_3=require(a9_0x48c4af(0x105)),action_1=require(a9_0x48c4af(0xb4));function getRoutes(_0x188eb9={'prefix':'/','module':![]}){const _0x33826c=a9_0x48c4af;var _0x54c427,_0xedaf7a;const _0x4925e0=(0x0,core_3[_0x33826c(0xe2)])(action_1['ACTION_KEY']),_0x546546={},_0x41fda9=Array[_0x33826c(0xcd)](_0x188eb9[_0x33826c(0xef)]||[])?_0x188eb9[_0x33826c(0xef)]||[]:[_0x188eb9[_0x33826c(0xef)]];_0x2a7595:for(const _0x213089 of _0x4925e0){let _0x2d4cff=(0x0,core_3[_0x33826c(0xe0)])(action_1['ACTION_KEY'],_0x213089),_0x257df9=(0x0,core_3['getClassMetadata'])(action_1[_0x33826c(0xfa)],_0x213089);if(_0x2d4cff&&_0x257df9){let _0x5f1338=_0x2d4cff['prefix'],_0x545130={};if(_0x188eb9[_0x33826c(0xc8)]&&(0x0,lodash_1[_0x33826c(0x101)])(_0x2d4cff,'module',![])!=_0x188eb9[_0x33826c(0xc8)])continue _0x2a7595;else{if(_0x188eb9[_0x33826c(0xc8)]===![]&&!!(0x0,lodash_1[_0x33826c(0x101)])(_0x2d4cff,'module',null))continue _0x2a7595;}if(_0x188eb9[_0x33826c(0x102)]&&!_0x5f1338[_0x33826c(0xbe)](_0x188eb9[_0x33826c(0x102)]))continue _0x2a7595;_0x5f1338!=='/'?(_0x545130[_0x33826c(0xce)]=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)]['tagName'])||(/^\//[_0x33826c(0xfb)](_0x5f1338)?_0x5f1338[_0x33826c(0xf8)]('/')[0x1]:_0x5f1338),_0x545130[_0x33826c(0xb2)]=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)][_0x33826c(0xb2)])||_0x545130[_0x33826c(0xce)],_0x545130[_0x33826c(0xc0)]=[]):(_0x545130['summary']=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)][_0x33826c(0xf5)])||_0x33826c(0xe9),_0x545130[_0x33826c(0xb2)]=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)]['description'])||'',_0x545130[_0x33826c(0xc0)]=[]);_0x188eb9[_0x33826c(0xeb)]&&(_0x545130[_0x33826c(0xeb)]=_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff['filepath']);(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff['pprefix'])&&(_0x545130['prefix']=_0x2d4cff[_0x33826c(0x106)]);(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xc8)])&&(_0x545130[_0x33826c(0xc8)]=_0x2d4cff[_0x33826c(0xc8)]);let _0x3e44de=(0x0,core_3[_0x33826c(0xe0)])(core_2[_0x33826c(0xbb)],_0x213089)||{};if(typeof _0x257df9[Symbol[_0x33826c(0xe3)]]==='function')for(let _0x43593b of _0x257df9){if((_0x188eb9===null||_0x188eb9===void 0x0?void 0x0:_0x188eb9[_0x33826c(0xfd)])&&!(_0x43593b===null||_0x43593b===void 0x0?void 0x0:_0x43593b[_0x33826c(0xfd)]))continue;let _0x47b0d8={};_0x47b0d8['method']=_0x43593b['requestMethod'],_0x47b0d8[_0x33826c(0xac)]=(_0x5f1338+_0x43593b[_0x33826c(0xf9)])[_0x33826c(0xdd)](/\/{2,}/g,'/'),_0x47b0d8[_0x33826c(0xce)]=(_0x43593b===null||_0x43593b===void 0x0?void 0x0:_0x43593b['routerName'])||_0x545130['summary']||'default',_0x47b0d8[_0x33826c(0xb2)]=(_0x43593b===null||_0x43593b===void 0x0?void 0x0:_0x43593b['description'])||'',_0x47b0d8[_0x33826c(0xc9)]=[];_0x47b0d8['route'][_0x33826c(0xf0)]('/')&&(_0x47b0d8[_0x33826c(0xac)]=_0x47b0d8[_0x33826c(0xac)]['substring'](0x0,_0x47b0d8['route']['length']-0x1));if(!(0x0,lodash_1[_0x33826c(0xbe)])(_0x47b0d8[_0x33826c(0xac)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x47b0d8[_0x33826c(0xac)],_0x33826c(0xb1))&&_0x41fda9[_0x33826c(0xaf)](_0x47b0d8[_0x33826c(0xac)])===-0x1){if(!(_0x188eb9===null||_0x188eb9===void 0x0?void 0x0:_0x188eb9[_0x33826c(0xb8)])){let _0x503b1b=(0x0,core_3[_0x33826c(0xe7)])(new _0x213089(),_0x43593b[_0x33826c(0xc6)]);for(const _0xe05dd2 in _0x503b1b){let _0x3edc56=(_0x54c427=_0x3e44de[_0x43593b[_0x33826c(0xc6)]])===null||_0x54c427===void 0x0?void 0x0:_0x54c427['find'](_0x13b0cc=>_0x13b0cc[_0x33826c(0xb3)]==_0xe05dd2&&_0x13b0cc['key']===core_2[_0x33826c(0xb9)]&&(_0x13b0cc===null||_0x13b0cc===void 0x0?void 0x0:_0x13b0cc[_0x33826c(0xab)]));if(_0x3edc56===null||_0x3edc56===void 0x0?void 0x0:_0x3edc56[_0x33826c(0xab)]){let _0x27ffea=convertTypeToString(_0x3edc56[_0x33826c(0xab)]['type']||0x0);if(['query',_0x33826c(0xd9)][_0x33826c(0xaf)](_0x27ffea)!=-0x1&&_0x3edc56['metadata'][_0x33826c(0xe5)][_0x33826c(0xaf)](':')==-0x1&&!_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xd6)](_0x28104f=>_0x28104f[_0x33826c(0xbd)]==_0x3edc56[_0x33826c(0xab)][_0x33826c(0xe5)]))_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xcf)]({'key':_0x3edc56['metadata'][_0x33826c(0xe5)],'title':_0x3edc56['metadata'][_0x33826c(0xe5)],'type':convertSchemaType(_0x503b1b[_0x3edc56[_0x33826c(0xb3)]]['name']),'required':![],'default':'','desc':''});else{if(_0x27ffea==_0x33826c(0xbc)){let _0x3a783c=((_0xedaf7a=_0x3edc56===null||_0x3edc56===void 0x0?void 0x0:_0x3edc56[_0x33826c(0xab)])===null||_0xedaf7a===void 0x0?void 0x0:_0xedaf7a['propertyData'])||_0x33826c(0xbc);_0x3a783c[_0x33826c(0xaf)](':')==-0x1&&!_0x47b0d8['request'][_0x33826c(0xd6)](_0x12d771=>_0x12d771[_0x33826c(0xbd)]==_0x3a783c&&_0x12d771[_0x33826c(0xea)]==_0x33826c(0xbc))&&_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xcf)]({'key':_0x3a783c,'title':'文件上传-'+_0x3a783c,'type':_0x33826c(0xbc),'required':!![],'default':'','desc':''});}}}else{const _0x2783db=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x33826c(0xf2)],_0x503b1b[_0xe05dd2]);_0x2783db&&_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xcf)](...getJoiRequest(_0x2783db));}}}_0x545130[_0x33826c(0xc0)][_0x33826c(0xcf)](_0x47b0d8);}}if(_0x545130[_0x33826c(0xc0)]['length']>0x0){let _0x53f440=_0x546546[_0x5f1338];_0x53f440?(_0x53f440[_0x33826c(0xce)]!=_0x545130[_0x33826c(0xce)]&&(_0x53f440['summary']=_0x53f440[_0x33826c(0xce)]+','+_0x545130[_0x33826c(0xce)]),_0x53f440[_0x33826c(0xb2)]!=_0x545130[_0x33826c(0xb2)]&&(_0x53f440[_0x33826c(0xb2)]=_0x53f440['description']+','+_0x545130['description']),_0x53f440[_0x33826c(0xc0)]=_0x53f440['routes'][_0x33826c(0xb5)](_0x545130[_0x33826c(0xc0)]),_0x546546[_0x5f1338]=_0x53f440):_0x546546[_0x5f1338]=_0x545130;}}}return _0x546546;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x4a4664){const _0x17aee0=a9_0x48c4af,_0xbc7da=[];for(let _0x3f3a6a in _0x4a4664){const _0x17e885={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x348ed0=typeof _0x4a4664[_0x3f3a6a][_0x17aee0(0xff)]==_0x17aee0(0xec)?_0x4a4664[_0x3f3a6a][_0x17aee0(0xff)]():_0x4a4664[_0x3f3a6a];_0x17e885[_0x17aee0(0xbd)]=_0x3f3a6a,_0x17e885[_0x17aee0(0xea)]=_0x348ed0[_0x17aee0(0xea)],_0x17e885['title']=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,_0x17aee0(0xa9),_0x3f3a6a),_0x17e885[_0x17aee0(0xe9)]=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,_0x17aee0(0xcc),''),_0x17e885[_0x17aee0(0xae)]=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,'flags.presence','')==_0x17aee0(0xae),_0x17e885[_0x17aee0(0xb2)]=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,'flags.description','');if(_0x348ed0['type']==_0x17aee0(0xde))_0x17e885[_0x17aee0(0xdf)]=getJoiRequest(_0x348ed0[_0x17aee0(0xf7)]);else{if(_0x348ed0[_0x17aee0(0xea)]==_0x17aee0(0x100)&&_0x348ed0['items']&&Array[_0x17aee0(0xcd)](_0x348ed0['items'])&&_0x348ed0['items'][0x0]){}}_0x348ed0[_0x17aee0(0xc4)]&&Array[_0x17aee0(0xcd)](_0x348ed0['allow'])&&_0x348ed0[_0x17aee0(0xc4)][_0x17aee0(0xd1)]>0x0&&(_0x17e885[_0x17aee0(0xb2)]=_0x17aee0(0xc5)+_0x348ed0[_0x17aee0(0xc4)][_0x17aee0(0xf6)](',')+'];'+_0x17e885['description']);if(_0x17e885[_0x17aee0(0xbd)]&&_0x17e885[_0x17aee0(0xea)]){const _0x565b3e={};for(const _0x4597e0 of _0x348ed0[_0x17aee0(0xed)]||[]){if(_0x4597e0[_0x17aee0(0xe4)]===_0x17aee0(0xc1)&&_0x4597e0['args'])_0x565b3e[_0x17aee0(0xc1)]=_0x4597e0[_0x17aee0(0xdb)][_0x17aee0(0xe1)];else _0x4597e0['name']===_0x17aee0(0xad)&&(_0x565b3e['max']=_0x4597e0[_0x17aee0(0xdb)][_0x17aee0(0xe1)]);}_0x17e885[_0x17aee0(0xed)]=_0x565b3e;}_0x17e885[_0x17aee0(0xbd)]&&_0x17e885[_0x17aee0(0xd3)]&&_0xbc7da[_0x17aee0(0xcf)](_0x17e885);}return _0xbc7da;}function convertSchemaType(_0xe3f017){const _0x6b6c5b=a9_0x48c4af;switch(_0xe3f017){case _0x6b6c5b(0xaa):return _0x6b6c5b(0xde);case _0x6b6c5b(0xc7):return'boolean';case'Number':return _0x6b6c5b(0xd8);case'String':return'string';case _0x6b6c5b(0xcb):return _0x6b6c5b(0xbc);default:return _0x6b6c5b(0xf1);}}function convertTypeToString(_0x2c2eb4){const _0x4bf493=a9_0x48c4af;switch(_0x2c2eb4){case core_1['RouteParamTypes']['HEADERS']:return _0x4bf493(0xc3);case core_1[_0x4bf493(0xe8)][_0x4bf493(0xba)]:return _0x4bf493(0xdc);case core_1['RouteParamTypes']['PARAM']:return _0x4bf493(0xf9);case core_1['RouteParamTypes'][_0x4bf493(0xe6)]:return'body';case core_1[_0x4bf493(0xe8)][_0x4bf493(0xf3)]:case core_1['RouteParamTypes'][_0x4bf493(0xb7)]:case core_1[_0x4bf493(0xe8)][_0x4bf493(0xb6)]:return _0x4bf493(0xbc);default:return _0x4bf493(0xc3);}}
|
|
1
|
+
const a9_0x2009de=a9_0x3cbb;(function(_0x139b7d,_0x1a3792){const _0x5c8933=a9_0x3cbb,_0x23856c=_0x139b7d();while(!![]){try{const _0x2d2d44=parseInt(_0x5c8933(0xa4))/0x1+-parseInt(_0x5c8933(0x9c))/0x2*(parseInt(_0x5c8933(0x88))/0x3)+-parseInt(_0x5c8933(0x8c))/0x4*(-parseInt(_0x5c8933(0x95))/0x5)+parseInt(_0x5c8933(0xaa))/0x6*(-parseInt(_0x5c8933(0xc8))/0x7)+parseInt(_0x5c8933(0xb7))/0x8*(-parseInt(_0x5c8933(0x7c))/0x9)+parseInt(_0x5c8933(0xc6))/0xa+parseInt(_0x5c8933(0xbb))/0xb;if(_0x2d2d44===_0x1a3792)break;else _0x23856c['push'](_0x23856c['shift']());}catch(_0x433022){_0x23856c['push'](_0x23856c['shift']());}}}(a9_0x5433,0x1a177));const a9_0x1174f5=(function(){let _0x3b0e13=!![];return function(_0x3831c5,_0x246bfe){const _0x33a20c=_0x3b0e13?function(){const _0x174246=a9_0x3cbb;if(_0x246bfe){const _0x3cf75e=_0x246bfe[_0x174246(0x9e)](_0x3831c5,arguments);return _0x246bfe=null,_0x3cf75e;}}:function(){};return _0x3b0e13=![],_0x33a20c;};}()),a9_0x503d5a=a9_0x1174f5(this,function(){const _0x14d71a=a9_0x3cbb;return a9_0x503d5a['toString']()[_0x14d71a(0xc1)](_0x14d71a(0xcc))[_0x14d71a(0x8a)]()[_0x14d71a(0x80)](a9_0x503d5a)['search'](_0x14d71a(0xcc));});function a9_0x3cbb(_0x252953,_0x3426c7){const _0xff6278=a9_0x5433();return a9_0x3cbb=function(_0x503d5a,_0x1174f5){_0x503d5a=_0x503d5a-0x6d;let _0x5433cb=_0xff6278[_0x503d5a];return _0x5433cb;},a9_0x3cbb(_0x252953,_0x3426c7);}a9_0x503d5a();'use strict';Object[a9_0x2009de(0x6d)](exports,'__esModule',{'value':!![]}),exports[a9_0x2009de(0xa6)]=void 0x0;const lodash_1=require(a9_0x2009de(0x7a)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a9_0x2009de(0x76)),action_1=require(a9_0x2009de(0xaf));function getRoutes(_0x39d0f6={'prefix':'/','module':![]}){const _0x2e98d8=a9_0x2009de;var _0x2d0c47,_0x5b840a;const _0x4aea8a=(0x0,core_3[_0x2e98d8(0x8b)])(action_1[_0x2e98d8(0x90)]),_0x97ea1d={},_0x460b01=Array[_0x2e98d8(0xb1)](_0x39d0f6[_0x2e98d8(0xbe)]||[])?_0x39d0f6[_0x2e98d8(0xbe)]||[]:[_0x39d0f6[_0x2e98d8(0xbe)]];_0x14d045:for(const _0x514d56 of _0x4aea8a){let _0x2bccdf=(0x0,core_3['getClassMetadata'])(action_1[_0x2e98d8(0x90)],_0x514d56),_0x2e86ea=(0x0,core_3[_0x2e98d8(0xc3)])(action_1[_0x2e98d8(0x98)],_0x514d56);if(_0x2bccdf&&_0x2e86ea){let _0x835b0b=_0x2bccdf['prefix'],_0x2ee4eb={};if(_0x39d0f6['module']&&(0x0,lodash_1['get'])(_0x2bccdf,_0x2e98d8(0x92),![])!=_0x39d0f6['module'])continue _0x14d045;else{if(_0x39d0f6[_0x2e98d8(0x92)]===![]&&!!(0x0,lodash_1[_0x2e98d8(0x71)])(_0x2bccdf,_0x2e98d8(0x92),null))continue _0x14d045;}if(_0x39d0f6[_0x2e98d8(0xbd)]&&!_0x835b0b[_0x2e98d8(0x82)](_0x39d0f6[_0x2e98d8(0xbd)]))continue _0x14d045;_0x835b0b!=='/'?(_0x2ee4eb[_0x2e98d8(0xae)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xa3)]['tagName'])||(/^\//[_0x2e98d8(0x9a)](_0x835b0b)?_0x835b0b[_0x2e98d8(0x78)]('/')[0x1]:_0x835b0b),_0x2ee4eb[_0x2e98d8(0x89)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xa3)]['description'])||_0x2ee4eb[_0x2e98d8(0xae)],_0x2ee4eb[_0x2e98d8(0xb6)]=[]):(_0x2ee4eb[_0x2e98d8(0xae)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xa3)]['tagName'])||_0x2e98d8(0xc2),_0x2ee4eb[_0x2e98d8(0x89)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf['routerOptions'][_0x2e98d8(0x89)])||'',_0x2ee4eb[_0x2e98d8(0xb6)]=[]);_0x39d0f6[_0x2e98d8(0xc0)]&&(_0x2ee4eb[_0x2e98d8(0xc0)]=_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xc0)]);(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xcf)])&&(_0x2ee4eb[_0x2e98d8(0xbd)]=_0x2bccdf[_0x2e98d8(0xcf)]);(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0x92)])&&(_0x2ee4eb[_0x2e98d8(0x92)]=_0x2bccdf['module']);let _0x4ff9b4=(0x0,core_3['getClassMetadata'])(core_2[_0x2e98d8(0x81)],_0x514d56)||{};if(typeof _0x2e86ea[Symbol[_0x2e98d8(0xb9)]]===_0x2e98d8(0x86))for(let _0x523704 of _0x2e86ea){if((_0x39d0f6===null||_0x39d0f6===void 0x0?void 0x0:_0x39d0f6[_0x2e98d8(0xbc)])&&!(_0x523704===null||_0x523704===void 0x0?void 0x0:_0x523704[_0x2e98d8(0xbc)]))continue;let _0x4d439b={};_0x4d439b[_0x2e98d8(0xa2)]=_0x523704['requestMethod'],_0x4d439b[_0x2e98d8(0xb3)]=(_0x835b0b+_0x523704['path'])['replace'](/\/{2,}/g,'/'),_0x4d439b[_0x2e98d8(0xae)]=(_0x523704===null||_0x523704===void 0x0?void 0x0:_0x523704[_0x2e98d8(0x9b)])||_0x2ee4eb[_0x2e98d8(0xae)]||_0x2e98d8(0xc2),_0x4d439b[_0x2e98d8(0x89)]=(_0x523704===null||_0x523704===void 0x0?void 0x0:_0x523704['description'])||'',_0x4d439b[_0x2e98d8(0xa0)]=[];_0x4d439b['route'][_0x2e98d8(0xa1)]('/')&&(_0x4d439b[_0x2e98d8(0xb3)]=_0x4d439b[_0x2e98d8(0xb3)][_0x2e98d8(0xb5)](0x0,_0x4d439b['route']['length']-0x1));if(!(0x0,lodash_1[_0x2e98d8(0x82)])(_0x4d439b[_0x2e98d8(0xb3)],_0x2e98d8(0x9f))&&!(0x0,lodash_1['startsWith'])(_0x4d439b[_0x2e98d8(0xb3)],_0x2e98d8(0x6e))&&_0x460b01[_0x2e98d8(0xbf)](_0x4d439b['route'])===-0x1){if(!(_0x39d0f6===null||_0x39d0f6===void 0x0?void 0x0:_0x39d0f6[_0x2e98d8(0x75)])){let _0x1cce41=(0x0,core_3[_0x2e98d8(0xca)])(new _0x514d56(),_0x523704[_0x2e98d8(0xa2)]);for(const _0xcdaf43 in _0x1cce41){let _0x1ec195=(_0x2d0c47=_0x4ff9b4[_0x523704[_0x2e98d8(0xa2)]])===null||_0x2d0c47===void 0x0?void 0x0:_0x2d0c47[_0x2e98d8(0x7f)](_0xc299fd=>_0xc299fd[_0x2e98d8(0x9d)]==_0xcdaf43&&_0xc299fd[_0x2e98d8(0x77)]===core_2[_0x2e98d8(0xd0)]&&(_0xc299fd===null||_0xc299fd===void 0x0?void 0x0:_0xc299fd[_0x2e98d8(0xd1)]));if(_0x1ec195===null||_0x1ec195===void 0x0?void 0x0:_0x1ec195['metadata']){let _0x45a99c=convertTypeToString(_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0xce)]||0x0);if([_0x2e98d8(0x84),_0x2e98d8(0x70)][_0x2e98d8(0xbf)](_0x45a99c)!=-0x1&&_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0x8d)][_0x2e98d8(0xbf)](':')==-0x1&&!_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0x7f)](_0x3ac879=>_0x3ac879[_0x2e98d8(0x77)]==_0x1ec195[_0x2e98d8(0xd1)]['propertyData']))_0x4d439b['request'][_0x2e98d8(0xba)]({'key':_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0x8d)],'title':_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0x8d)],'type':convertSchemaType(_0x1cce41[_0x1ec195[_0x2e98d8(0x9d)]][_0x2e98d8(0xa9)]),'required':![],'default':'','desc':''});else{if(_0x45a99c==_0x2e98d8(0xcd)){let _0x4b00cd=((_0x5b840a=_0x1ec195===null||_0x1ec195===void 0x0?void 0x0:_0x1ec195['metadata'])===null||_0x5b840a===void 0x0?void 0x0:_0x5b840a[_0x2e98d8(0x8d)])||_0x2e98d8(0xcd);_0x4b00cd[_0x2e98d8(0xbf)](':')==-0x1&&!_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0x7f)](_0x1500f2=>_0x1500f2[_0x2e98d8(0x77)]==_0x4b00cd&&_0x1500f2['type']==_0x2e98d8(0xcd))&&_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0xba)]({'key':_0x4b00cd,'title':'文件上传-'+_0x4b00cd,'type':_0x2e98d8(0xcd),'required':!![],'default':'','desc':''});}}}else{const _0x24ca33=(0x0,core_3[_0x2e98d8(0xa8)])(validator_1[_0x2e98d8(0x8e)],_0x1cce41[_0xcdaf43]);_0x24ca33&&_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0xba)](...getJoiRequest(_0x24ca33));}}}_0x2ee4eb['routes'][_0x2e98d8(0xba)](_0x4d439b);}}if(_0x2ee4eb['routes'][_0x2e98d8(0xb2)]>0x0){let _0x495cda=_0x97ea1d[_0x835b0b];_0x495cda?(_0x495cda['summary']!=_0x2ee4eb['summary']&&(_0x495cda[_0x2e98d8(0xae)]=_0x495cda[_0x2e98d8(0xae)]+','+_0x2ee4eb[_0x2e98d8(0xae)]),_0x495cda[_0x2e98d8(0x89)]!=_0x2ee4eb['description']&&(_0x495cda[_0x2e98d8(0x89)]=_0x495cda[_0x2e98d8(0x89)]+','+_0x2ee4eb[_0x2e98d8(0x89)]),_0x495cda[_0x2e98d8(0xb6)]=_0x495cda[_0x2e98d8(0xb6)]['concat'](_0x2ee4eb[_0x2e98d8(0xb6)]),_0x97ea1d[_0x835b0b]=_0x495cda):_0x97ea1d[_0x835b0b]=_0x2ee4eb;}}}return _0x97ea1d;}exports[a9_0x2009de(0xa6)]=getRoutes;function getJoiRequest(_0x3f1a2b){const _0x5be9a8=a9_0x2009de,_0x4468ec=[];for(let _0x57bfd4 in _0x3f1a2b){const _0x361cf3={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x12ffa1=typeof _0x3f1a2b[_0x57bfd4][_0x5be9a8(0xc9)]==_0x5be9a8(0x86)?_0x3f1a2b[_0x57bfd4]['describe']():_0x3f1a2b[_0x57bfd4];_0x361cf3['key']=_0x57bfd4,_0x361cf3[_0x5be9a8(0xce)]=_0x12ffa1[_0x5be9a8(0xce)],_0x361cf3[_0x5be9a8(0x85)]=(0x0,lodash_1[_0x5be9a8(0x71)])(_0x12ffa1,'flags.label',_0x57bfd4),_0x361cf3[_0x5be9a8(0xc2)]=(0x0,lodash_1[_0x5be9a8(0x71)])(_0x12ffa1,_0x5be9a8(0x99),''),_0x361cf3[_0x5be9a8(0xd2)]=(0x0,lodash_1['get'])(_0x12ffa1,_0x5be9a8(0x79),'')=='required',_0x361cf3[_0x5be9a8(0x89)]=(0x0,lodash_1[_0x5be9a8(0x71)])(_0x12ffa1,_0x5be9a8(0x74),'');if(_0x12ffa1[_0x5be9a8(0xce)]==_0x5be9a8(0xc5))_0x361cf3[_0x5be9a8(0x97)]=getJoiRequest(_0x12ffa1[_0x5be9a8(0xb8)]);else{if(_0x12ffa1[_0x5be9a8(0xce)]==_0x5be9a8(0x87)&&_0x12ffa1[_0x5be9a8(0xad)]&&Array[_0x5be9a8(0xb1)](_0x12ffa1[_0x5be9a8(0xad)])&&_0x12ffa1['items'][0x0]){}}_0x12ffa1[_0x5be9a8(0xb4)]&&Array[_0x5be9a8(0xb1)](_0x12ffa1[_0x5be9a8(0xb4)])&&_0x12ffa1['allow'][_0x5be9a8(0xb2)]>0x0&&(_0x361cf3[_0x5be9a8(0x89)]=_0x5be9a8(0x83)+_0x12ffa1['allow'][_0x5be9a8(0xb0)](',')+'];'+_0x361cf3[_0x5be9a8(0x89)]);if(_0x361cf3['key']&&_0x361cf3['type']){const _0x1a973b={};for(const _0x29bce7 of _0x12ffa1['rules']||[]){if(_0x29bce7[_0x5be9a8(0xa9)]===_0x5be9a8(0x91)&&_0x29bce7[_0x5be9a8(0xc7)])_0x1a973b['min']=_0x29bce7[_0x5be9a8(0xc7)][_0x5be9a8(0xcb)];else _0x29bce7[_0x5be9a8(0xa9)]===_0x5be9a8(0xa7)&&(_0x1a973b[_0x5be9a8(0xa7)]=_0x29bce7['args']['limit']);}_0x361cf3[_0x5be9a8(0xac)]=_0x1a973b;}_0x361cf3[_0x5be9a8(0x77)]&&_0x361cf3[_0x5be9a8(0x85)]&&_0x4468ec[_0x5be9a8(0xba)](_0x361cf3);}return _0x4468ec;}function convertSchemaType(_0x5d1a1b){const _0x440cac=a9_0x2009de;switch(_0x5d1a1b){case _0x440cac(0xab):return _0x440cac(0xc5);case _0x440cac(0xd3):return _0x440cac(0x7e);case _0x440cac(0x93):return _0x440cac(0x96);case'String':return _0x440cac(0x72);case _0x440cac(0x7b):return _0x440cac(0xcd);default:return _0x440cac(0x72);}}function a9_0x5433(){const _0x570af4=['module','Number','PARAM','10zySbfC','number','children','ACTION_ROUTE_KEY','flags.default','test','routerName','34002LrkvJD','parameterIndex','apply','static/apitest','request','endsWith','method','routerOptions','183726rQdpYw','header','getRoutes','max','getClassExtendedMetadata','name','24vNZSEM','Object','rules','items','summary','../types/action','join','isArray','length','route','allow','substring','routes','135096VlULrt','keys','iterator','push','715550fVseas','intercept','prefix','filter','indexOf','filepath','search','default','getClassMetadata','RouteParamTypes','object','2107890qrcUQg','args','221886aDOLxH','describe','getMethodParamTypes','limit','(((.+)+)+)+$','file','type','pprefix','WEB_ROUTER_PARAM_KEY','metadata','required','Boolean','HEADERS','QUERY','defineProperty','/static/apitest','FILESTREAM','body','get','string','path','flags.description','noreq','@midwayjs/core','key','split','flags.presence','lodash','File','81PLTsWI','BODY','boolean','find','constructor','INJECT_CUSTOM_PARAM','startsWith','只允许:[','query','title','function','array','33AxHpTx','description','toString','listModule','226184SjCRdi','propertyData','RULES_KEY','FIELDS','ACTION_KEY','min'];a9_0x5433=function(){return _0x570af4;};return a9_0x5433();}function convertTypeToString(_0x2034b6){const _0x78d078=a9_0x2009de;switch(_0x2034b6){case core_1[_0x78d078(0xc4)][_0x78d078(0xd4)]:return _0x78d078(0xa5);case core_1[_0x78d078(0xc4)][_0x78d078(0xd5)]:return'query';case core_1['RouteParamTypes'][_0x78d078(0x94)]:return _0x78d078(0x73);case core_1[_0x78d078(0xc4)][_0x78d078(0x7d)]:return _0x78d078(0x70);case core_1[_0x78d078(0xc4)][_0x78d078(0x8f)]:case core_1[_0x78d078(0xc4)]['FILESSTREAM']:case core_1[_0x78d078(0xc4)][_0x78d078(0x6f)]:return'file';default:return _0x78d078(0xa5);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x3116b2=a10_0x38e1;(function(_0xfb5d9b,_0x6eabe3){var _0x4fef9a=a10_0x38e1,_0x5b83a2=_0xfb5d9b();while(!![]){try{var _0x1013cb=-parseInt(_0x4fef9a(0xed))/0x1*(parseInt(_0x4fef9a(0xd8))/0x2)+parseInt(_0x4fef9a(0xd1))/0x3*(parseInt(_0x4fef9a(0xc3))/0x4)+-parseInt(_0x4fef9a(0xd4))/0x5+-parseInt(_0x4fef9a(0xdb))/0x6+-parseInt(_0x4fef9a(0xc2))/0x7+-parseInt(_0x4fef9a(0xbc))/0x8+parseInt(_0x4fef9a(0xe7))/0x9*(parseInt(_0x4fef9a(0xeb))/0xa);if(_0x1013cb===_0x6eabe3)break;else _0x5b83a2['push'](_0x5b83a2['shift']());}catch(_0x3168e1){_0x5b83a2['push'](_0x5b83a2['shift']());}}}(a10_0x3ade,0xdeb8b));var a10_0x32c583=(function(){var _0x5cbdb0=!![];return function(_0x31497f,_0x4aecf5){var _0xcb0005=_0x5cbdb0?function(){if(_0x4aecf5){var _0x1f3fb5=_0x4aecf5['apply'](_0x31497f,arguments);return _0x4aecf5=null,_0x1f3fb5;}}:function(){};return _0x5cbdb0=![],_0xcb0005;};}()),a10_0x54bbda=a10_0x32c583(this,function(){var _0x258515=a10_0x38e1;return a10_0x54bbda[_0x258515(0xee)]()[_0x258515(0xc7)](_0x258515(0xba))['toString']()['constructor'](a10_0x54bbda)[_0x258515(0xc7)](_0x258515(0xba));});a10_0x54bbda();'use strict';var __createBinding=this&&this[a10_0x3116b2(0xec)]||(Object[a10_0x3116b2(0xc4)]?function(_0x311fed,_0x2b7b10,_0x365977,_0x3af0c0){var _0x315b6d=a10_0x3116b2;if(_0x3af0c0===undefined)_0x3af0c0=_0x365977;var _0xdabeed=Object[_0x315b6d(0xc9)](_0x2b7b10,_0x365977);(!_0xdabeed||('get'in _0xdabeed?!_0x2b7b10[_0x315b6d(0xce)]:_0xdabeed[_0x315b6d(0xe1)]||_0xdabeed[_0x315b6d(0xf6)]))&&(_0xdabeed={'enumerable':!![],'get':function(){return _0x2b7b10[_0x365977];}}),Object[_0x315b6d(0xb9)](_0x311fed,_0x3af0c0,_0xdabeed);}:function(_0x2fc6ee,_0x121613,_0x4419d1,_0x43970d){if(_0x43970d===undefined)_0x43970d=_0x4419d1;_0x2fc6ee[_0x43970d]=_0x121613[_0x4419d1];}),__exportStar=this&&this[a10_0x3116b2(0xf1)]||function(_0x246cb4,_0x479829){var _0x6a4e10=a10_0x3116b2;for(var _0x481a32 in _0x246cb4)if(_0x481a32!==_0x6a4e10(0xda)&&!Object['prototype']['hasOwnProperty'][_0x6a4e10(0xc1)](_0x479829,_0x481a32))__createBinding(_0x479829,_0x246cb4,_0x481a32);};Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xce),{'value':!![]}),exports[a10_0x3116b2(0xe4)]=exports[a10_0x3116b2(0xbe)]=exports[a10_0x3116b2(0xf3)]=exports['Scope']=exports['Inject']=exports[a10_0x3116b2(0xcb)]=exports['Logger']=exports['Config']=exports[a10_0x3116b2(0xd0)]=exports[a10_0x3116b2(0xdd)]=exports['Headers']=exports[a10_0x3116b2(0xd9)]=exports[a10_0x3116b2(0xc5)]=exports[a10_0x3116b2(0xca)]=exports['Fields']=exports[a10_0x3116b2(0xcd)]=exports[a10_0x3116b2(0xf5)]=exports['Configuration']=exports[a10_0x3116b2(0xde)]=exports[a10_0x3116b2(0xbd)]=exports[a10_0x3116b2(0xd7)]=exports[a10_0x3116b2(0xc6)]=exports['EventService']=exports[a10_0x3116b2(0xd6)]=exports[a10_0x3116b2(0xc0)]=exports[a10_0x3116b2(0xcc)]=exports[a10_0x3116b2(0xea)]=exports[a10_0x3116b2(0xf4)]=exports[a10_0x3116b2(0xd2)]=exports[a10_0x3116b2(0xd5)]=exports[a10_0x3116b2(0xe5)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe4),{'enumerable':!![],'get':function(){var _0x5115ae=a10_0x3116b2;return getAppsConfig_1[_0x5115ae(0xe4)];}}),__exportStar(require(a10_0x3116b2(0xcf)),exports),__exportStar(require(a10_0x3116b2(0xd3)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe5),{'enumerable':!![],'get':function(){var _0xa06964=a10_0x3116b2;return ActionApi_1[_0xa06964(0xe5)];}});var Action_1=require('./decorator/Action');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd5),{'enumerable':!![],'get':function(){var _0x51569c=a10_0x3116b2;return Action_1[_0x51569c(0xd5)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd2),{'enumerable':!![],'get':function(){var _0x5b4d94=a10_0x3116b2;return ActionApitest_1[_0x5b4d94(0xd2)];}});var Intercept_1=require('./decorator/Intercept');Object['defineProperty'](exports,'Intercept',{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a10_0x3116b2(0xb9)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x2d4992=a10_0x3116b2;return Intercept_1[_0x2d4992(0xea)];}});var getRoutes_1=require(a10_0x3116b2(0xe8));Object[a10_0x3116b2(0xb9)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x2061c2=a10_0x3116b2;return getRoutes_1[_0x2061c2(0xcc)];}});var ApiError_1=require(a10_0x3116b2(0xf2));Object[a10_0x3116b2(0xb9)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x369940=a10_0x3116b2;return ApiError_1[_0x369940(0xc0)];}});var cache_1=require('@anncic-api/cache');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd6),{'enumerable':!![],'get':function(){var _0x1ad376=a10_0x3116b2;return cache_1[_0x1ad376(0xd6)];}});var event_1=require('@anncic-api/event');Object['defineProperty'](exports,a10_0x3116b2(0xbf),{'enumerable':!![],'get':function(){var _0x24add2=a10_0x3116b2;return event_1[_0x24add2(0xbf)];}});function a10_0x38e1(_0x2b021e,_0x5ca503){var _0x28009c=a10_0x3ade();return a10_0x38e1=function(_0x54bbda,_0x32c583){_0x54bbda=_0x54bbda-0xb9;var _0x3ade7f=_0x28009c[_0x54bbda];return _0x3ade7f;},a10_0x38e1(_0x2b021e,_0x5ca503);}var ApiService_1=require(a10_0x3116b2(0xe6));Object['defineProperty'](exports,a10_0x3116b2(0xc6),{'enumerable':!![],'get':function(){var _0xa82e19=a10_0x3116b2;return ApiService_1[_0xa82e19(0xc6)];}});var ExcelService_1=require(a10_0x3116b2(0xef));Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd7),{'enumerable':!![],'get':function(){var _0x3757fc=a10_0x3116b2;return ExcelService_1[_0x3757fc(0xd7)];}});var validator_1=require(a10_0x3116b2(0xc8));Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xbd),{'enumerable':!![],'get':function(){var _0x22cf30=a10_0x3116b2;return validator_1[_0x22cf30(0xbd)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xde),{'enumerable':!![],'get':function(){var _0x4c1d3b=a10_0x3116b2;return validator_1[_0x4c1d3b(0xde)];}});var configuration_1=require(a10_0x3116b2(0xe0));Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe3),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a10_0x3116b2(0xdf));function a10_0x3ade(){var _0x4aa1ad=['__esModule','./types/common','App','2817ukkmeo','Apitest','./service/ApitestService','7320695SEgQwu','Action','CacheService','ExcelService','10JlAnDB','Query','default','2042832xwmbep','Scope','Init','ValidatorService','@midwayjs/core','./configuration','writable','Headers','Configuration','getAppsConfig','Api','./service/ApiService','2120265EauzPW','./helper/getRoutes','Logger','IIntercept','170BTqylT','__createBinding','62509WBdvHq','toString','./service/ExcelService','Fields','__exportStar','./exception/ApiError','Singleton','Intercept','File','configurable','defineProperty','(((.+)+)+)+$','Config','11132840LYjVJf','ValidatorError','ScopeEnum','EventService','ApiError','call','5606027PvFuNO','5184enWtlE','create','Param','ApiService','search','@anncic-api/validator','getOwnPropertyDescriptor','Body','Provide','getRoutes','Files'];a10_0x3ade=function(){return _0x4aa1ad;};return a10_0x3ade();}Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xf5),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xcd),{'enumerable':!![],'get':function(){var _0x31bfe8=a10_0x3116b2;return core_1[_0x31bfe8(0xcd)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xf0),{'enumerable':!![],'get':function(){var _0x1e9f53=a10_0x3116b2;return core_1[_0x1e9f53(0xf0)];}}),Object['defineProperty'](exports,a10_0x3116b2(0xca),{'enumerable':!![],'get':function(){var _0x4c3544=a10_0x3116b2;return core_1[_0x4c3544(0xca)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xc5),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd9),{'enumerable':!![],'get':function(){var _0x1a9cfd=a10_0x3116b2;return core_1[_0x1a9cfd(0xd9)];}}),Object[a10_0x3116b2(0xb9)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x153e30=a10_0x3116b2;return core_1[_0x153e30(0xe2)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xdd),{'enumerable':!![],'get':function(){var _0x579d8b=a10_0x3116b2;return core_1[_0x579d8b(0xdd)];}});var core_2=require(a10_0x3116b2(0xdf));Object[a10_0x3116b2(0xb9)](exports,'App',{'enumerable':!![],'get':function(){var _0x360621=a10_0x3116b2;return core_2[_0x360621(0xd0)];}}),Object[a10_0x3116b2(0xb9)](exports,'Config',{'enumerable':!![],'get':function(){var _0x4a7da5=a10_0x3116b2;return core_2[_0x4a7da5(0xbb)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe9),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a10_0x3116b2(0xb9)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x37c4b2=a10_0x3116b2;return core_2[_0x37c4b2(0xcb)];}}),Object[a10_0x3116b2(0xb9)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xdc),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xf3),{'enumerable':!![],'get':function(){var _0x163fbd=a10_0x3116b2;return core_2[_0x163fbd(0xf3)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xbe),{'enumerable':!![],'get':function(){var _0x5003a7=a10_0x3116b2;return core_2[_0x5003a7(0xbe)];}}),global[a10_0x3116b2(0xe4)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x121449=a11_0x3cca;(function(_0x58dddb,_0x2d9977){var _0x59ba6d=a11_0x3cca,_0x5af7e6=_0x58dddb();while(!![]){try{var _0x35b233=parseInt(_0x59ba6d(0x1c6))/0x1*(-parseInt(_0x59ba6d(0x1ce))/0x2)+-parseInt(_0x59ba6d(0x1f5))/0x3+-parseInt(_0x59ba6d(0x1e2))/0x4*(parseInt(_0x59ba6d(0x1cd))/0x5)+-parseInt(_0x59ba6d(0x1f2))/0x6*(parseInt(_0x59ba6d(0x1b6))/0x7)+-parseInt(_0x59ba6d(0x1cf))/0x8+-parseInt(_0x59ba6d(0x1ca))/0x9*(parseInt(_0x59ba6d(0x1f1))/0xa)+-parseInt(_0x59ba6d(0x1bf))/0xb*(-parseInt(_0x59ba6d(0x1d2))/0xc);if(_0x35b233===_0x2d9977)break;else _0x5af7e6['push'](_0x5af7e6['shift']());}catch(_0x2cd2b6){_0x5af7e6['push'](_0x5af7e6['shift']());}}}(a11_0x55f1,0x8b029));var a11_0x1f0432=(function(){var _0x24b0da=!![];return function(_0x1341d8,_0x1e5424){var _0x27d4ab=_0x24b0da?function(){var _0xac7746=a11_0x3cca;if(_0x1e5424){var _0x3fb029=_0x1e5424[_0xac7746(0x1c9)](_0x1341d8,arguments);return _0x1e5424=null,_0x3fb029;}}:function(){};return _0x24b0da=![],_0x27d4ab;};}()),a11_0x22cb52=a11_0x1f0432(this,function(){var _0x2baffc=a11_0x3cca;return a11_0x22cb52['toString']()['search'](_0x2baffc(0x1ea))[_0x2baffc(0x1dd)]()['constructor'](a11_0x22cb52)[_0x2baffc(0x1e7)](_0x2baffc(0x1ea));});function a11_0x55f1(){var _0x56f666=['TIMEOUT','1420416isMrTO','entries','toLowerCase','decorate','HEADERS_CHECKCODE','anncicapi','__esModule','218351mTbuNc','请求超时,请重试或改善网络环境','push','password','Config','Provide','Singleton','device','object','8129jpBbSu','__decorate','MD5','join','crypto-js','../exception/ApiError','function','7tHQAGM','checksign','token','apply','1269KtsIFe','config','length','5nIwqle','93342smpdEH','6941000PTPXng','secret','design:type','60264PboxbY','getOwnPropertyDescriptor','HEADERS_LACK','logintime','signature','devices','requesttime','abs','@midwayjs/core','Scope','secret=','toString','sort','fromEntries','checkcode','prototype','3169764DTwciV','undefined','getcheck','map','ApiService','search','HEADERS_DEVICE','logintimeout','(((.+)+)+)+$','ApiError','HEADERS_SIGNATURE','metadata','__metadata','TIMEOUT_LOGINTIME','缺少头信息:signature','6310gJHyAc','114hPUBAz','now'];a11_0x55f1=function(){return _0x56f666;};return a11_0x55f1();}function a11_0x3cca(_0x3a4fde,_0x5de07b){var _0x1329eb=a11_0x55f1();return a11_0x3cca=function(_0x22cb52,_0x1f0432){_0x22cb52=_0x22cb52-0x1b2;var _0x55f184=_0x1329eb[_0x22cb52];return _0x55f184;},a11_0x3cca(_0x3a4fde,_0x5de07b);}a11_0x22cb52();'use strict';var __decorate=this&&this[a11_0x121449(0x1c0)]||function(_0x58216c,_0x1502bb,_0x49703f,_0x721b8e){var _0x43ea1f=a11_0x121449,_0x179463=arguments[_0x43ea1f(0x1cc)],_0x9559be=_0x179463<0x3?_0x1502bb:_0x721b8e===null?_0x721b8e=Object[_0x43ea1f(0x1d3)](_0x1502bb,_0x49703f):_0x721b8e,_0x5925ba;if(typeof Reflect==='object'&&typeof Reflect[_0x43ea1f(0x1b2)]===_0x43ea1f(0x1c5))_0x9559be=Reflect['decorate'](_0x58216c,_0x1502bb,_0x49703f,_0x721b8e);else{for(var _0x6f9e1b=_0x58216c[_0x43ea1f(0x1cc)]-0x1;_0x6f9e1b>=0x0;_0x6f9e1b--)if(_0x5925ba=_0x58216c[_0x6f9e1b])_0x9559be=(_0x179463<0x3?_0x5925ba(_0x9559be):_0x179463>0x3?_0x5925ba(_0x1502bb,_0x49703f,_0x9559be):_0x5925ba(_0x1502bb,_0x49703f))||_0x9559be;}return _0x179463>0x3&&_0x9559be&&Object['defineProperty'](_0x1502bb,_0x49703f,_0x9559be),_0x9559be;},__metadata=this&&this[a11_0x121449(0x1ee)]||function(_0x17b13f,_0x2b9b72){var _0x3794f7=a11_0x121449;if(typeof Reflect===_0x3794f7(0x1be)&&typeof Reflect[_0x3794f7(0x1ed)]===_0x3794f7(0x1c5))return Reflect[_0x3794f7(0x1ed)](_0x17b13f,_0x2b9b72);};Object['defineProperty'](exports,a11_0x121449(0x1b5),{'value':!![]}),exports[a11_0x121449(0x1e6)]=void 0x0;const crypto_js_1=require(a11_0x121449(0x1c3)),core_1=require(a11_0x121449(0x1da)),ApiError_1=require(a11_0x121449(0x1c4));let ApiService=class ApiService{['password'](_0x577746){var _0x1c5deb=a11_0x121449,_0x26b01a;return _0x577746?(0x0,crypto_js_1[_0x1c5deb(0x1c1)])(''+_0x577746+(0x0,crypto_js_1[_0x1c5deb(0x1c1)])((0x0,crypto_js_1[_0x1c5deb(0x1c1)])(''+_0x577746)[_0x1c5deb(0x1dd)]()+(''+((_0x26b01a=this[_0x1c5deb(0x1cb)])===null||_0x26b01a===void 0x0?void 0x0:_0x26b01a[_0x1c5deb(0x1b9)])))[_0x1c5deb(0x1dd)]())[_0x1c5deb(0x1dd)]():'';}[a11_0x121449(0x1e4)](_0x524f4e,_0x544e3e,_0x182401=Date[a11_0x121449(0x1f3)]()){var _0x2d7e83=a11_0x121449;return{'Token':_0x524f4e,'Logintime':_0x182401,'Checkcode':this[_0x2d7e83(0x1e0)](_0x524f4e,_0x544e3e,_0x182401)};}['getsign'](_0x4a69c9={}){var _0x58a1f6=a11_0x121449,_0x3c6d9c,_0x3227e6;const _0x41721a=[],_0x3c764a=Object[_0x58a1f6(0x1df)](Object[_0x58a1f6(0x1f6)](_0x4a69c9)['map'](_0xc05fd7=>[_0xc05fd7[0x0][_0x58a1f6(0x1f7)](),_0xc05fd7[0x1]]));for(let _0x3b1d8d of[_0x58a1f6(0x1bd),_0x58a1f6(0x1d8),_0x58a1f6(0x1c8),_0x58a1f6(0x1d5),_0x58a1f6(0x1e0)]){if(typeof _0x3c764a[_0x3b1d8d]==_0x58a1f6(0x1e3))throw new AnnError(ApiError_1['ApiError'][_0x58a1f6(0x1d4)],{'message':'缺少头信息:'+_0x3b1d8d});_0x41721a[_0x58a1f6(0x1b8)](_0x3b1d8d+'='+_0x3c764a[_0x3b1d8d]);}_0x3c764a[_0x58a1f6(0x1d8)]&&((_0x3c6d9c=_0x3c764a[_0x58a1f6(0x1d8)])===null||_0x3c6d9c===void 0x0?void 0x0:_0x3c6d9c[_0x58a1f6(0x1cc)])==0xa&&(_0x3c764a[_0x58a1f6(0x1d8)]=_0x3c764a['requesttime']*0x3e8);if(this[_0x58a1f6(0x1cb)]['timeout']&&Date['now']()-Math[_0x58a1f6(0x1d9)](_0x3c764a[_0x58a1f6(0x1d8)])>this[_0x58a1f6(0x1cb)]['timeout'])throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1f4)],{'message':_0x58a1f6(0x1b7),'requesttime':_0x3c764a[_0x58a1f6(0x1d8)],'timestamp':Date[_0x58a1f6(0x1f3)]()});if((((_0x3227e6=this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]])===null||_0x3227e6===void 0x0?void 0x0:_0x3227e6[_0x58a1f6(0x1e9)])||0x0)>0x0&&Date[_0x58a1f6(0x1f3)]()-Math[_0x58a1f6(0x1d9)](_0x3c764a['logintime'])>this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a['device']]['logintimeout'])throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1ef)]);if(!this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]]||!this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a['device']]['secret']||!this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]]['checkcode'])throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1e8)]);if(_0x3c764a[_0x58a1f6(0x1c8)]&&_0x3c764a[_0x58a1f6(0x1e0)]!=this[_0x58a1f6(0x1e0)](_0x3c764a['token'],_0x3c764a[_0x58a1f6(0x1bd)],_0x3c764a[_0x58a1f6(0x1d5)]))throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1b3)]);return _0x41721a[_0x58a1f6(0x1b8)](_0x58a1f6(0x1dc)+this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]][_0x58a1f6(0x1d0)]),(0x0,crypto_js_1['MD5'])(_0x41721a[_0x58a1f6(0x1de)]()[_0x58a1f6(0x1c2)](''))[_0x58a1f6(0x1dd)]();}[a11_0x121449(0x1e0)](_0x232939,_0x3e920a,_0x36a5b4=Date[a11_0x121449(0x1f3)]()){var _0x2621e5=a11_0x121449,_0x343659,_0x4168c3,_0x3fafcd;if(!((_0x343659=this[_0x2621e5(0x1cb)])===null||_0x343659===void 0x0?void 0x0:_0x343659[_0x2621e5(0x1d7)][_0x3e920a])||!((_0x3fafcd=(_0x4168c3=this[_0x2621e5(0x1cb)])===null||_0x4168c3===void 0x0?void 0x0:_0x4168c3['devices'][_0x3e920a])===null||_0x3fafcd===void 0x0?void 0x0:_0x3fafcd[_0x2621e5(0x1e0)]))throw new AnnError(ApiError_1[_0x2621e5(0x1eb)][_0x2621e5(0x1e8)]);return(0x0,crypto_js_1[_0x2621e5(0x1c1)])(''+_0x232939+(0x0,crypto_js_1['MD5'])(''+_0x36a5b4+(''+this[_0x2621e5(0x1cb)]['devices'][_0x3e920a][_0x2621e5(0x1e0)]))['toString']())[_0x2621e5(0x1dd)]();}[a11_0x121449(0x1c7)](_0x10f59e={}){var _0x42a770=a11_0x121449;const _0x5410a7=Object[_0x42a770(0x1df)](Object[_0x42a770(0x1f6)](_0x10f59e)[_0x42a770(0x1e5)](_0x3940e6=>[_0x3940e6[0x0][_0x42a770(0x1f7)](),_0x3940e6[0x1]]));if(!(_0x5410a7===null||_0x5410a7===void 0x0?void 0x0:_0x5410a7[_0x42a770(0x1d6)]))throw new AnnError(ApiError_1[_0x42a770(0x1eb)][_0x42a770(0x1d4)],{'message':_0x42a770(0x1f0)});if((_0x5410a7===null||_0x5410a7===void 0x0?void 0x0:_0x5410a7[_0x42a770(0x1d6)])!=this['getsign'](_0x5410a7))throw new AnnError(ApiError_1[_0x42a770(0x1eb)][_0x42a770(0x1ec)]);return!![];}};__decorate([(0x0,core_1[a11_0x121449(0x1ba)])(a11_0x121449(0x1b4)),__metadata(a11_0x121449(0x1d1),Object)],ApiService[a11_0x121449(0x1e1)],a11_0x121449(0x1cb),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x121449(0x1bb)])(),(0x0,core_1[a11_0x121449(0x1db)])(core_1['ScopeEnum'][a11_0x121449(0x1bc)])],ApiService),exports[a11_0x121449(0x1e6)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x52bd8a=a12_0x137c;(function(_0x5934b2,_0x185a1e){const _0x350543=a12_0x137c,_0x3b9b75=_0x5934b2();while(!![]){try{const _0x33a01c=-parseInt(_0x350543(0x157))/0x1+parseInt(_0x350543(0x170))/0x2*(-parseInt(_0x350543(0x13d))/0x3)+-parseInt(_0x350543(0x13b))/0x4+-parseInt(_0x350543(0x147))/0x5*(parseInt(_0x350543(0x146))/0x6)+-parseInt(_0x350543(0x143))/0x7+-parseInt(_0x350543(0x15d))/0x8+parseInt(_0x350543(0x15a))/0x9;if(_0x33a01c===_0x185a1e)break;else _0x3b9b75['push'](_0x3b9b75['shift']());}catch(_0x3bdb92){_0x3b9b75['push'](_0x3b9b75['shift']());}}}(a12_0x5ca5,0x356a8));const a12_0x9c5c61=(function(){let _0x27d7b4=!![];return function(_0x3e9f58,_0x45406f){const _0x708a68=_0x27d7b4?function(){const _0x446469=a12_0x137c;if(_0x45406f){const _0x4194d2=_0x45406f[_0x446469(0x166)](_0x3e9f58,arguments);return _0x45406f=null,_0x4194d2;}}:function(){};return _0x27d7b4=![],_0x708a68;};}()),a12_0x3b92d1=a12_0x9c5c61(this,function(){const _0x22d096=a12_0x137c;return a12_0x3b92d1[_0x22d096(0x185)]()['search'](_0x22d096(0x14a))[_0x22d096(0x185)]()[_0x22d096(0x158)](a12_0x3b92d1)[_0x22d096(0x159)](_0x22d096(0x14a));});a12_0x3b92d1();'use strict';var __decorate=this&&this['__decorate']||function(_0xd84258,_0x20af70,_0x478661,_0x1eeaf5){const _0x1aadad=a12_0x137c;var _0x38c84d=arguments['length'],_0x4ca54f=_0x38c84d<0x3?_0x20af70:_0x1eeaf5===null?_0x1eeaf5=Object[_0x1aadad(0x139)](_0x20af70,_0x478661):_0x1eeaf5,_0x6d0399;if(typeof Reflect===_0x1aadad(0x14f)&&typeof Reflect[_0x1aadad(0x17b)]==='function')_0x4ca54f=Reflect[_0x1aadad(0x17b)](_0xd84258,_0x20af70,_0x478661,_0x1eeaf5);else{for(var _0x25d3df=_0xd84258[_0x1aadad(0x160)]-0x1;_0x25d3df>=0x0;_0x25d3df--)if(_0x6d0399=_0xd84258[_0x25d3df])_0x4ca54f=(_0x38c84d<0x3?_0x6d0399(_0x4ca54f):_0x38c84d>0x3?_0x6d0399(_0x20af70,_0x478661,_0x4ca54f):_0x6d0399(_0x20af70,_0x478661))||_0x4ca54f;}return _0x38c84d>0x3&&_0x4ca54f&&Object[_0x1aadad(0x150)](_0x20af70,_0x478661,_0x4ca54f),_0x4ca54f;},__metadata=this&&this['__metadata']||function(_0x5bdcdf,_0x175797){const _0x1aceae=a12_0x137c;if(typeof Reflect===_0x1aceae(0x14f)&&typeof Reflect[_0x1aceae(0x165)]===_0x1aceae(0x175))return Reflect[_0x1aceae(0x165)](_0x5bdcdf,_0x175797);},__param=this&&this[a12_0x52bd8a(0x16f)]||function(_0xa23b31,_0x3ff43e){return function(_0x5832a3,_0x4b61bf){_0x3ff43e(_0x5832a3,_0x4b61bf,_0xa23b31);};};Object[a12_0x52bd8a(0x150)](exports,'__esModule',{'value':!![]}),exports['ApitestStaticController']=exports['ApitestService']=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a12_0x52bd8a(0x15e)),core_2=require(a12_0x52bd8a(0x15e)),core_3=require(a12_0x52bd8a(0x15e)),getRoutes_1=require('../helper/getRoutes');function a12_0x137c(_0x33f3ad,_0x2a5aba){const _0x4045ad=a12_0x5ca5();return a12_0x137c=function(_0x3b92d1,_0x9c5c61){_0x3b92d1=_0x3b92d1-0x138;let _0x5ca55b=_0x4045ad[_0x3b92d1];return _0x5ca55b;},a12_0x137c(_0x33f3ad,_0x2a5aba);}let ApitestService=class ApitestService{async[a12_0x52bd8a(0x183)](_0x327e4f){const _0x575bd0=a12_0x52bd8a,_0x568343=(0x0,getRoutes_1['getRoutes'])(_0x327e4f),_0x5e9945=[];for(let _0x27fb6c in _0x568343){for(let _0x46bd06 in _0x568343[_0x27fb6c]['routes']){let _0x3f3cd7=_0x568343[_0x27fb6c][_0x575bd0(0x14d)][_0x46bd06],_0x59e66b=[];for(let _0x1f4ab4 in _0x3f3cd7['request']){_0x59e66b['push'](_0x3f3cd7[_0x575bd0(0x17c)][_0x1f4ab4]);}_0x5e9945[_0x575bd0(0x17e)]({'title':_0x568343[_0x27fb6c][_0x575bd0(0x16b)]+':'+_0x3f3cd7[_0x575bd0(0x16b)],'prefix':_0x568343[_0x27fb6c][_0x575bd0(0x173)],'router':_0x3f3cd7['route'],'method':_0x3f3cd7[_0x575bd0(0x13a)],'describe':_0x3f3cd7[_0x575bd0(0x153)]||'','filepath':_0x568343[_0x27fb6c][_0x575bd0(0x155)]||'','request':_0x59e66b});}}const _0x505090=(0x0,path_1[_0x575bd0(0x16d)])(__dirname,_0x575bd0(0x167));return(0x0,fs_1[_0x575bd0(0x151)])(_0x505090,{'encoding':'utf-8'})[_0x575bd0(0x142)](/__res__/g,_0x575bd0(0x179))[_0x575bd0(0x142)](_0x575bd0(0x186),JSON[_0x575bd0(0x148)](_0x5e9945))['replace'](_0x575bd0(0x13f),JSON[_0x575bd0(0x148)](this[_0x575bd0(0x184)]['devices']));}};__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata('design:type',Object)],ApitestService[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x184),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a12_0x52bd8a(0x15b)),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a12_0x52bd8a(0x149)])],ApitestService),exports[a12_0x52bd8a(0x171)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x52bd8a(0x169)](){const _0x3c261f=a12_0x52bd8a;if(this[_0x3c261f(0x15b)]){const _0x1daa03={'module':![]};return this[_0x3c261f(0x17f)][_0x3c261f(0x168)]()&&(_0x1daa03[_0x3c261f(0x155)]=!![]),await this['ApitestService'][_0x3c261f(0x183)](_0x1daa03);}return'';}async[a12_0x52bd8a(0x17a)](_0x4e200a){const _0x599ee1=a12_0x52bd8a;if(this[_0x599ee1(0x15b)]){const _0x27cdb8={'module':_0x4e200a};return this[_0x599ee1(0x17f)][_0x599ee1(0x168)]()&&(_0x27cdb8[_0x599ee1(0x155)]=!![]),await this[_0x599ee1(0x171)][_0x599ee1(0x183)](_0x27cdb8);}return'';}async['apiteststatic'](){const _0x18fc10=a12_0x52bd8a;if((0x0,path_1[_0x18fc10(0x180)])(this[_0x18fc10(0x177)][_0x18fc10(0x17c)][_0x18fc10(0x17d)])){var _0x252381=(0x0,path_1[_0x18fc10(0x16d)])(__dirname,_0x18fc10(0x15c)+this[_0x18fc10(0x177)][_0x18fc10(0x17c)]['url'][_0x18fc10(0x142)](_0x18fc10(0x179),'/'));if(_0x252381[_0x18fc10(0x174)](_0x252381[_0x18fc10(0x160)]-0xb)!='/index.html'){this[_0x18fc10(0x177)]['set'](_0x18fc10(0x15f),'public,\x20max-age=604800');if((0x0,path_1[_0x18fc10(0x180)])(this[_0x18fc10(0x177)][_0x18fc10(0x17c)][_0x18fc10(0x17d)])==_0x18fc10(0x154))this[_0x18fc10(0x177)][_0x18fc10(0x163)](_0x18fc10(0x161),_0x18fc10(0x182));else(0x0,path_1[_0x18fc10(0x180)])(this[_0x18fc10(0x177)][_0x18fc10(0x17c)][_0x18fc10(0x17d)])==_0x18fc10(0x140)&&this[_0x18fc10(0x177)][_0x18fc10(0x163)](_0x18fc10(0x161),_0x18fc10(0x138));return(0x0,fs_1[_0x18fc10(0x144)])(_0x252381)&&(0x0,fs_1[_0x18fc10(0x151)])(_0x252381,{'encoding':_0x18fc10(0x13c)});}}return'';}};__decorate([(0x0,core_3[a12_0x52bd8a(0x14b)])(),__metadata('design:type',Object)],ApitestStaticController[a12_0x52bd8a(0x152)],'ctx',void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x14b)])(),__metadata(a12_0x52bd8a(0x14c),core_1['MidwayEnvironmentService'])],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x17f),void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x14b)])(),__metadata(a12_0x52bd8a(0x14c),ApitestService)],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x171),void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x178)])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x15b),void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x178)])(a12_0x52bd8a(0x16a)),__metadata(a12_0x52bd8a(0x14c),Object)],ApitestStaticController[a12_0x52bd8a(0x152)],'config',void 0x0),__decorate([(0x0,core_2['Get'])('/apitest'),__metadata('design:type',Function),__metadata(a12_0x52bd8a(0x187),[]),__metadata(a12_0x52bd8a(0x172),Promise)],ApitestStaticController[a12_0x52bd8a(0x152)],'apitesthtml',null),__decorate([(0x0,core_2[a12_0x52bd8a(0x156)])(a12_0x52bd8a(0x13e)),__param(0x0,(0x0,core_2[a12_0x52bd8a(0x176)])(a12_0x52bd8a(0x164))),__metadata(a12_0x52bd8a(0x14c),Function),__metadata(a12_0x52bd8a(0x187),[String]),__metadata(a12_0x52bd8a(0x172),Promise)],ApitestStaticController[a12_0x52bd8a(0x152)],'apitestmodule',null),__decorate([(0x0,core_2[a12_0x52bd8a(0x156)])(a12_0x52bd8a(0x181)),__metadata(a12_0x52bd8a(0x14c),Function),__metadata('design:paramtypes',[]),__metadata(a12_0x52bd8a(0x172),Promise)],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x14e),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x52bd8a(0x141)])('/'),(0x0,core_3[a12_0x52bd8a(0x162)])(core_3[a12_0x52bd8a(0x16c)][a12_0x52bd8a(0x145)])],ApitestStaticController),exports[a12_0x52bd8a(0x16e)]=ApitestStaticController;function a12_0x5ca5(){const _0x3db52f=['(((.+)+)+)+$','Inject','design:type','routes','apiteststatic','object','defineProperty','readFileSync','prototype','description','.js','filepath','Get','407QljeSi','constructor','search','11870199ejxzma','apitest','../../public/','770144kKatUa','@midwayjs/core','cache-control','length','content-type','Scope','set','module','metadata','apply','../../public/index.html','isDevelopmentEnvironment','apitesthtml','anncicapi','summary','ScopeEnum','join','ApitestStaticController','__param','247058ievKoP','ApitestService','design:returntype','prefix','substring','function','Param','ctx','Config','/apiteststatic/','apitestmodule','decorate','request','url','push','Environment','extname','/apiteststatic/*','application/javascript;\x20charset=utf-8','apidoc','config','toString','__apiList__','design:paramtypes','text/css;\x20charset=utf-8','getOwnPropertyDescriptor','method','663992yglKWD','utf-8','9OWozNw','/apitest-:module','__devices__','.css','Controller','replace','2161530xyzoox','existsSync','Request','948414hxjzHE','5BxtwMj','stringify','Singleton'];a12_0x5ca5=function(){return _0x3db52f;};return a12_0x5ca5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13_0x22003c=a13_0x584d;(function(_0x32abf0,_0x577864){const _0x59c9b0=a13_0x584d,_0x2db2f4=_0x32abf0();while(!![]){try{const _0x4d9196=-parseInt(_0x59c9b0(0x15b))/0x1+parseInt(_0x59c9b0(0x16f))/0x2+-parseInt(_0x59c9b0(0x14c))/0x3+parseInt(_0x59c9b0(0x180))/0x4*(-parseInt(_0x59c9b0(0x169))/0x5)+parseInt(_0x59c9b0(0x185))/0x6*(-parseInt(_0x59c9b0(0x16c))/0x7)+-parseInt(_0x59c9b0(0x175))/0x8+-parseInt(_0x59c9b0(0x17e))/0x9*(-parseInt(_0x59c9b0(0x166))/0xa);if(_0x4d9196===_0x577864)break;else _0x2db2f4['push'](_0x2db2f4['shift']());}catch(_0x4d5668){_0x2db2f4['push'](_0x2db2f4['shift']());}}}(a13_0x46ed,0x93848));const a13_0x5499be=(function(){let _0x242aed=!![];return function(_0x48cbab,_0x44ae5f){const _0x3388dd=_0x242aed?function(){if(_0x44ae5f){const _0x505fe5=_0x44ae5f['apply'](_0x48cbab,arguments);return _0x44ae5f=null,_0x505fe5;}}:function(){};return _0x242aed=![],_0x3388dd;};}()),a13_0x406d3d=a13_0x5499be(this,function(){const _0x30271e=a13_0x584d;return a13_0x406d3d[_0x30271e(0x151)]()['search'](_0x30271e(0x153))[_0x30271e(0x151)]()[_0x30271e(0x16e)](a13_0x406d3d)[_0x30271e(0x148)](_0x30271e(0x153));});a13_0x406d3d();'use strict';function a13_0x46ed(){const _0x3d63f9=['object','toString','substring','(((.+)+)+)+$','function','decorate','col','defineProperty','Singleton','isNumber','parse','455209ZfKpTo','Provide','koa-send','header','startsWith','cellCount','key','download','Sheet\x201','readFile','getAppDir','19370deCPYH','endsWith','replace','1290jZwiIN','mkdirSync','random','2485gmhNVY','value','constructor','1534700SXhGZz','model','/public/xlsx/','length','filter','__metadata','1301624puehfu','App','__decorate','existsSync','design:type','Api\x20Excel\x20Error:\x20','handler','getCell','@midwayjs/core','12609ucIHcI','metadata','14716aCxnTf','__esModule','xlsx','ExcelService','columns','8376hjjllx','get','getRow','values','app','keys','set','.xlsx','YYYY/MM/DD','getWorksheet','search','log','writeFile','exceljs','2442543LkGJzF','addWorksheet','addRow','export'];a13_0x46ed=function(){return _0x3d63f9;};return a13_0x46ed();}var __decorate=this&&this[a13_0x22003c(0x177)]||function(_0x3f7aa9,_0x2406f8,_0x216629,_0x25dab4){const _0x22c28b=a13_0x22003c;var _0x3fc4cf=arguments[_0x22c28b(0x172)],_0x486a74=_0x3fc4cf<0x3?_0x2406f8:_0x25dab4===null?_0x25dab4=Object['getOwnPropertyDescriptor'](_0x2406f8,_0x216629):_0x25dab4,_0x57c5ed;if(typeof Reflect===_0x22c28b(0x150)&&typeof Reflect[_0x22c28b(0x155)]===_0x22c28b(0x154))_0x486a74=Reflect[_0x22c28b(0x155)](_0x3f7aa9,_0x2406f8,_0x216629,_0x25dab4);else{for(var _0xa7d867=_0x3f7aa9[_0x22c28b(0x172)]-0x1;_0xa7d867>=0x0;_0xa7d867--)if(_0x57c5ed=_0x3f7aa9[_0xa7d867])_0x486a74=(_0x3fc4cf<0x3?_0x57c5ed(_0x486a74):_0x3fc4cf>0x3?_0x57c5ed(_0x2406f8,_0x216629,_0x486a74):_0x57c5ed(_0x2406f8,_0x216629))||_0x486a74;}return _0x3fc4cf>0x3&&_0x486a74&&Object[_0x22c28b(0x157)](_0x2406f8,_0x216629,_0x486a74),_0x486a74;},__metadata=this&&this[a13_0x22003c(0x174)]||function(_0x312c1e,_0x23c8e3){const _0x52a9c5=a13_0x22003c;if(typeof Reflect===_0x52a9c5(0x150)&&typeof Reflect['metadata']===_0x52a9c5(0x154))return Reflect[_0x52a9c5(0x17f)](_0x312c1e,_0x23c8e3);};Object[a13_0x22003c(0x157)](exports,a13_0x22003c(0x181),{'value':!![]}),exports[a13_0x22003c(0x183)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x22003c(0x14b)),koasend=require(a13_0x22003c(0x15d)),core_1=require(a13_0x22003c(0x17d));let ExcelService=class ExcelService{async[a13_0x22003c(0x15a)](_0x114328,_0x3d1859,_0x4d9f85=[0x0]){const _0x5950fa=a13_0x22003c;var _0x3eb3b4,_0x1caa2a;const _0x595975=new exceljs['Workbook'](),_0x3f51aa=[];let _0x2a10b3=_0x114328['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x2a10b3===null||_0x2a10b3===void 0x0?void 0x0:_0x2a10b3[_0x5950fa(0x15f)]('/'))&&(_0x2a10b3=this['app'][_0x5950fa(0x165)]()+'/'+_0x2a10b3);try{await _0x595975[_0x5950fa(0x182)][_0x5950fa(0x164)](_0x2a10b3);}catch(_0x17a07d){return console[_0x5950fa(0x149)](_0x5950fa(0x17a)+_0x2a10b3+'\x20is\x20read\x20fail'),_0x3f51aa;}for(const _0x4f6e21 of _0x4d9f85){const _0x5cbcf7=lodash[_0x5950fa(0x159)](_0x4f6e21)?((_0x3eb3b4=_0x595975['worksheets'])===null||_0x3eb3b4===void 0x0?void 0x0:_0x3eb3b4[_0x4f6e21])||undefined:_0x595975[_0x5950fa(0x147)](_0x4f6e21);if(_0x5cbcf7){var _0xec1f5d=0x1;const _0x5b76fd=_0x5cbcf7[_0x5950fa(0x187)](0x1),_0x289acf=await new Promise(_0x3d5fd9=>{const _0x1e4cbd={};_0x5b76fd['eachCell']((_0x197282,_0x5db042)=>{const _0x378306=a13_0x584d;for(const _0x3f01df of _0x3d1859){if(_0x197282[_0x378306(0x16d)]==_0x3f01df['header'])_0xec1f5d=0x2,_0x1e4cbd[_0x3f01df[_0x378306(0x161)]]={'header':_0x197282[_0x378306(0x156)],'handler':_0x3f01df[_0x378306(0x17b)]};else{if(!_0x1e4cbd[_0x3f01df[_0x378306(0x161)]])try{const _0x20fc5e=_0x5b76fd&&_0x5b76fd['getCell'](_0x3f01df['header']);_0x20fc5e&&(_0x1e4cbd[_0x3f01df[_0x378306(0x161)]]={'header':_0x20fc5e[_0x378306(0x156)],'handler':_0x3f01df[_0x378306(0x17b)]});}catch{}}}_0x5b76fd[_0x378306(0x160)]==_0x5db042&&_0x3d5fd9(_0x1e4cbd);});});for(const _0x5da2ca of _0x5cbcf7['findRows'](_0xec1f5d,_0x5cbcf7['rowCount'])){const _0x1637bd={};for(const _0x41caf3 in _0x289acf){if(_0x289acf[_0x41caf3][_0x5950fa(0x15e)]){const _0x116b85=_0x5da2ca&&_0x5da2ca[_0x5950fa(0x17c)](_0x289acf[_0x41caf3]['header']);try{_0x116b85['toString']();}catch(_0x31dc17){_0x116b85['toString']=()=>{const _0x12377a=_0x5950fa;var _0x5c16ca;return''+(((_0x5c16ca=_0x116b85===null||_0x116b85===void 0x0?void 0x0:_0x116b85[_0x12377a(0x170)])===null||_0x5c16ca===void 0x0?void 0x0:_0x5c16ca[_0x12377a(0x16d)])||'');};}typeof((_0x1caa2a=_0x289acf[_0x41caf3])===null||_0x1caa2a===void 0x0?void 0x0:_0x1caa2a['handler'])==_0x5950fa(0x154)?_0x1637bd[_0x41caf3]=await _0x289acf[_0x41caf3][_0x5950fa(0x17b)](lodash[_0x5950fa(0x18b)]({},_0x41caf3,(_0x116b85===null||_0x116b85===void 0x0?void 0x0:_0x116b85[_0x5950fa(0x151)]())||''),_0x116b85[_0x5950fa(0x170)]):_0x1637bd[_0x41caf3]=(_0x116b85===null||_0x116b85===void 0x0?void 0x0:_0x116b85[_0x5950fa(0x151)]())||'';}}Object[_0x5950fa(0x18a)](_0x1637bd)[_0x5950fa(0x172)]>0x0&&Object[_0x5950fa(0x188)](_0x1637bd)[_0x5950fa(0x173)](_0x28eb1c=>_0x28eb1c!=='')[_0x5950fa(0x172)]>0x0&&_0x3f51aa['push'](_0x1637bd);}}}return _0x3f51aa;}async[a13_0x22003c(0x14f)](_0x88597c,_0x58b3d4,_0x5e049e,_0x1da6e5){const _0x265742=a13_0x22003c;var _0x2005d6,_0x5ed3e8;const _0x216450=new exceljs['Workbook'](),_0x5332ec={},_0x5849e2=[],_0x4ee9a3=_0x216450[_0x265742(0x14d)](_0x265742(0x163),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x49c17e in _0x58b3d4){_0x5332ec[_0x58b3d4[_0x49c17e][_0x265742(0x161)]]=_0x58b3d4[_0x49c17e]['header'],_0x5849e2['push']({'header':_0x58b3d4[_0x49c17e][_0x265742(0x15e)],'key':(_0x2005d6=_0x58b3d4[_0x49c17e])===null||_0x2005d6===void 0x0?void 0x0:_0x2005d6[_0x265742(0x161)][_0x265742(0x168)](/\./g,'_')});}_0x4ee9a3[_0x265742(0x184)]=_0x5849e2;for(const _0x259c3d of _0x5e049e){const _0x4a7bcd={};for(const _0x20abe9 in _0x58b3d4){typeof((_0x5ed3e8=_0x58b3d4[_0x20abe9])===null||_0x5ed3e8===void 0x0?void 0x0:_0x5ed3e8[_0x265742(0x17b)])=='function'?_0x4a7bcd[_0x58b3d4[_0x20abe9]['key'][_0x265742(0x168)](/\./g,'_')]=await _0x58b3d4[_0x20abe9]['handler'](_0x259c3d):_0x4a7bcd[_0x58b3d4[_0x20abe9][_0x265742(0x161)][_0x265742(0x168)](/\./g,'_')]=lodash[_0x265742(0x186)](_0x259c3d,_0x58b3d4[_0x20abe9][_0x265742(0x161)],'');}_0x4ee9a3[_0x265742(0x14e)](_0x4a7bcd);}let _0x33c692='';const _0x321535=_0x88597c+'-'+lodash[_0x265742(0x16b)](0x186a0,0xf423f)+_0x265742(0x18c);if(_0x1da6e5&&_0x1da6e5['startsWith']('/'))_0x33c692=''+_0x1da6e5;else _0x1da6e5&&!_0x1da6e5[_0x265742(0x15f)]('/')&&!_0x1da6e5['startsWith']('\x5c')?_0x33c692=this['app'][_0x265742(0x165)]()+'/'+_0x1da6e5:_0x33c692=this[_0x265742(0x189)][_0x265742(0x165)]()+_0x265742(0x171)+dayjs()['format'](_0x265742(0x18d));return(_0x33c692[_0x265742(0x167)]('/')||_0x33c692['endsWith']('\x5c'))&&(_0x33c692=_0x33c692[_0x265742(0x152)](0x0,_0x33c692[_0x265742(0x172)]-0x1)),_0x33c692=_0x33c692[_0x265742(0x168)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x265742(0x178)](_0x33c692)&&fs[_0x265742(0x16a)](_0x33c692,{'recursive':!![]}),await _0x216450['xlsx'][_0x265742(0x14a)]((_0x33c692+'/'+_0x321535)[_0x265742(0x168)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x321535,'filepath':(_0x33c692[_0x265742(0x152)]((''+this[_0x265742(0x189)][_0x265742(0x165)]())['length'])+'/'+_0x321535)['replace'](/(\\|\/)/g,'/')[_0x265742(0x168)](/\/{2,}/g,'/')};}async[a13_0x22003c(0x162)](_0x5647b1,_0x394e4d){return await koasend(_0x5647b1,''+_0x394e4d);}};function a13_0x584d(_0x2f281d,_0xc5264b){const _0x423ee7=a13_0x46ed();return a13_0x584d=function(_0x406d3d,_0x5499be){_0x406d3d=_0x406d3d-0x147;let _0x46ed57=_0x423ee7[_0x406d3d];return _0x46ed57;},a13_0x584d(_0x2f281d,_0xc5264b);}__decorate([(0x0,core_1[a13_0x22003c(0x176)])(),__metadata(a13_0x22003c(0x179),Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x22003c(0x15c)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a13_0x22003c(0x158)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x18ec03=a14_0x5df9;(function(_0xe460b8,_0x1ff36d){var _0x3cd4b8=a14_0x5df9,_0x479791=_0xe460b8();while(!![]){try{var _0x574f1c=-parseInt(_0x3cd4b8(0x18a))/0x1+parseInt(_0x3cd4b8(0x181))/0x2+parseInt(_0x3cd4b8(0x184))/0x3+parseInt(_0x3cd4b8(0x18b))/0x4*(parseInt(_0x3cd4b8(0x18c))/0x5)+parseInt(_0x3cd4b8(0x193))/0x6*(-parseInt(_0x3cd4b8(0x18e))/0x7)+-parseInt(_0x3cd4b8(0x18f))/0x8*(parseInt(_0x3cd4b8(0x180))/0x9)+parseInt(_0x3cd4b8(0x191))/0xa*(-parseInt(_0x3cd4b8(0x18d))/0xb);if(_0x574f1c===_0x1ff36d)break;else _0x479791['push'](_0x479791['shift']());}catch(_0x3334a5){_0x479791['push'](_0x479791['shift']());}}}(a14_0x446e,0x7afe2));var a14_0xd766e8=(function(){var _0x32eb17=!![];return function(_0x5d48ed,_0x146bb8){var _0x3d5790=_0x32eb17?function(){var _0x180f95=a14_0x5df9;if(_0x146bb8){var _0x189c57=_0x146bb8[_0x180f95(0x190)](_0x5d48ed,arguments);return _0x146bb8=null,_0x189c57;}}:function(){};return _0x32eb17=![],_0x3d5790;};}()),a14_0x3450ea=a14_0xd766e8(this,function(){var _0x46868b=a14_0x5df9;return a14_0x3450ea['toString']()[_0x46868b(0x17f)](_0x46868b(0x188))[_0x46868b(0x185)]()[_0x46868b(0x183)](a14_0x3450ea)[_0x46868b(0x17f)](_0x46868b(0x188));});a14_0x3450ea();'use strict';Object['defineProperty'](exports,a14_0x18ec03(0x192),{'value':!![]}),exports['AppsConfigTmp']=exports[a14_0x18ec03(0x189)]=exports[a14_0x18ec03(0x187)]=exports[a14_0x18ec03(0x182)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a14_0x18ec03(0x187)]=a14_0x18ec03(0x186),exports[a14_0x18ec03(0x189)]='anncic-api:apps:config';function a14_0x5df9(_0x3945b3,_0xbfd8b4){var _0x22ad9e=a14_0x446e();return a14_0x5df9=function(_0x3450ea,_0xd766e8){_0x3450ea=_0x3450ea-0x17f;var _0x446e8f=_0x22ad9e[_0x3450ea];return _0x446e8f;},a14_0x5df9(_0x3945b3,_0xbfd8b4);}function a14_0x446e(){var _0x1458e5=['anncic-api:action:route','ACTION_ROUTE_KEY','(((.+)+)+)+$','APPSCONFIG_KEY','444785UiHrwY','3564668zfsedz','5ZYTQzh','484IAFnnJ','154xCxQkX','713672ERWSoj','apply','25250Rhhmox','__esModule','224274cYWHQl','search','27DxPtbg','701336ZtWQth','ACTION_KEY','constructor','2723379Vuygsu','toString'];a14_0x446e=function(){return _0x1458e5;};return a14_0x446e();}class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a15_0x3c91(_0x187cdd,_0x2c752a){var _0x265285=a15_0x28e9();return a15_0x3c91=function(_0x34b2b0,_0x4cbe1f){_0x34b2b0=_0x34b2b0-0x99;var _0x28e941=_0x265285[_0x34b2b0];return _0x28e941;},a15_0x3c91(_0x187cdd,_0x2c752a);}var a15_0x473e19=a15_0x3c91;(function(_0xbfc201,_0x1f0fa3){var _0x299d2a=a15_0x3c91,_0xa85fee=_0xbfc201();while(!![]){try{var _0x475b9f=parseInt(_0x299d2a(0xa2))/0x1+-parseInt(_0x299d2a(0xa6))/0x2+-parseInt(_0x299d2a(0xb9))/0x3*(parseInt(_0x299d2a(0xa5))/0x4)+parseInt(_0x299d2a(0xae))/0x5+-parseInt(_0x299d2a(0x9d))/0x6*(parseInt(_0x299d2a(0xaa))/0x7)+parseInt(_0x299d2a(0xb6))/0x8+parseInt(_0x299d2a(0xb1))/0x9*(parseInt(_0x299d2a(0xb7))/0xa);if(_0x475b9f===_0x1f0fa3)break;else _0xa85fee['push'](_0xa85fee['shift']());}catch(_0x545db1){_0xa85fee['push'](_0xa85fee['shift']());}}}(a15_0x28e9,0x838de));var a15_0x4cbe1f=(function(){var _0x4f7b75=!![];return function(_0x3c0157,_0x296b29){var _0x52e2cb=_0x4f7b75?function(){if(_0x296b29){var _0x100db0=_0x296b29['apply'](_0x3c0157,arguments);return _0x296b29=null,_0x100db0;}}:function(){};return _0x4f7b75=![],_0x52e2cb;};}()),a15_0x34b2b0=a15_0x4cbe1f(this,function(){var _0x16d5dd=a15_0x3c91;return a15_0x34b2b0[_0x16d5dd(0x9b)]()[_0x16d5dd(0xb5)]('(((.+)+)+)+$')[_0x16d5dd(0x9b)]()['constructor'](a15_0x34b2b0)['search'](_0x16d5dd(0x99));});a15_0x34b2b0();'use strict';var __decorate=this&&this[a15_0x473e19(0x9a)]||function(_0x5a185a,_0x199375,_0x541628,_0x5df561){var _0x526a30=a15_0x473e19,_0x4236ed=arguments[_0x526a30(0xb3)],_0xe7c8b9=_0x4236ed<0x3?_0x199375:_0x5df561===null?_0x5df561=Object['getOwnPropertyDescriptor'](_0x199375,_0x541628):_0x5df561,_0x385be3;if(typeof Reflect===_0x526a30(0x9f)&&typeof Reflect[_0x526a30(0xb2)]===_0x526a30(0xb0))_0xe7c8b9=Reflect[_0x526a30(0xb2)](_0x5a185a,_0x199375,_0x541628,_0x5df561);else{for(var _0x367dc0=_0x5a185a[_0x526a30(0xb3)]-0x1;_0x367dc0>=0x0;_0x367dc0--)if(_0x385be3=_0x5a185a[_0x367dc0])_0xe7c8b9=(_0x4236ed<0x3?_0x385be3(_0xe7c8b9):_0x4236ed>0x3?_0x385be3(_0x199375,_0x541628,_0xe7c8b9):_0x385be3(_0x199375,_0x541628))||_0xe7c8b9;}return _0x4236ed>0x3&&_0xe7c8b9&&Object[_0x526a30(0xa1)](_0x199375,_0x541628,_0xe7c8b9),_0xe7c8b9;},__metadata=this&&this[a15_0x473e19(0xba)]||function(_0x50fd89,_0x5ee13a){var _0x5f366c=a15_0x473e19;if(typeof Reflect===_0x5f366c(0x9f)&&typeof Reflect[_0x5f366c(0xa0)]===_0x5f366c(0xb0))return Reflect[_0x5f366c(0xa0)](_0x50fd89,_0x5ee13a);};Object[a15_0x473e19(0xa1)](exports,a15_0x473e19(0xa3),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x473e19(0xbc));class PageDTO{}__decorate([(0x0,validator_1[a15_0x473e19(0x9e)])('分页',validator_1[a15_0x473e19(0xad)][a15_0x473e19(0xab)]()[a15_0x473e19(0xa8)]()[a15_0x473e19(0xbb)](0x1),'第一页为1,第二页为2'),__metadata(a15_0x473e19(0xac),Number)],PageDTO['prototype'],a15_0x473e19(0xb4),void 0x0),__decorate([(0x0,validator_1[a15_0x473e19(0x9e)])('分页数量',validator_1['RuleType'][a15_0x473e19(0xab)]()[a15_0x473e19(0xa8)]()[a15_0x473e19(0xbb)](0x1)),__metadata(a15_0x473e19(0xac),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x473e19(0xa4),validator_1['RuleType'][a15_0x473e19(0x9c)]()[a15_0x473e19(0xa9)]()),__metadata(a15_0x473e19(0xac),String)],PageDTO[a15_0x473e19(0xaf)],'_order',void 0x0),__decorate([(0x0,validator_1[a15_0x473e19(0x9e)])(a15_0x473e19(0xb8),validator_1[a15_0x473e19(0xad)][a15_0x473e19(0xab)]()[a15_0x473e19(0xa8)]()['valid'](0x0,0x1),a15_0x473e19(0xa7)),__metadata('design:type',Number)],PageDTO[a15_0x473e19(0xaf)],'_isreverse',void 0x0),exports['PageDTO']=PageDTO;function a15_0x28e9(){var _0x5b6b5c=['__esModule','排序方式','2891128TpvWDE','120780AnGqUG','1:是;0:否','integer','trim','996989VCiFpm','number','design:type','RuleType','4659055qeqoFd','prototype','function','5785794uNYHfi','decorate','length','_page','search','1645512JTWEXM','10fwRNUU','是否倒序','3mXqSAa','__metadata','min','@anncic-api/validator','(((.+)+)+)+$','__decorate','toString','string','42KQuORS','Rule','object','metadata','defineProperty','538641NPyZOb'];a15_0x28e9=function(){return _0x5b6b5c;};return a15_0x28e9();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x32b481=a16_0x11c9;(function(_0x512ca2,_0x5f2bc0){var _0xe9b9f6=a16_0x11c9,_0x3ca8d8=_0x512ca2();while(!![]){try{var _0x49da59=parseInt(_0xe9b9f6(0x80))/0x1*(-parseInt(_0xe9b9f6(0x7c))/0x2)+-parseInt(_0xe9b9f6(0x7d))/0x3+parseInt(_0xe9b9f6(0x7b))/0x4+-parseInt(_0xe9b9f6(0x76))/0x5*(-parseInt(_0xe9b9f6(0x6c))/0x6)+parseInt(_0xe9b9f6(0x73))/0x7*(parseInt(_0xe9b9f6(0x77))/0x8)+parseInt(_0xe9b9f6(0x7e))/0x9*(parseInt(_0xe9b9f6(0x7f))/0xa)+-parseInt(_0xe9b9f6(0x74))/0xb*(parseInt(_0xe9b9f6(0x6f))/0xc);if(_0x49da59===_0x5f2bc0)break;else _0x3ca8d8['push'](_0x3ca8d8['shift']());}catch(_0x4cf1ca){_0x3ca8d8['push'](_0x3ca8d8['shift']());}}}(a16_0x54e6,0x9faea));function a16_0x11c9(_0x48c024,_0x3e36d3){var _0x13ef67=a16_0x54e6();return a16_0x11c9=function(_0x45f1ff,_0x202d3c){_0x45f1ff=_0x45f1ff-0x6c;var _0x54e64f=_0x13ef67[_0x45f1ff];return _0x54e64f;},a16_0x11c9(_0x48c024,_0x3e36d3);}var a16_0x202d3c=(function(){var _0x5676e2=!![];return function(_0x384f05,_0x537255){var _0x9307ab=_0x5676e2?function(){var _0x21ccc5=a16_0x11c9;if(_0x537255){var _0x1bdf5e=_0x537255[_0x21ccc5(0x78)](_0x384f05,arguments);return _0x537255=null,_0x1bdf5e;}}:function(){};return _0x5676e2=![],_0x9307ab;};}()),a16_0x45f1ff=a16_0x202d3c(this,function(){var _0x3c363a=a16_0x11c9;return a16_0x45f1ff[_0x3c363a(0x79)]()[_0x3c363a(0x7a)](_0x3c363a(0x71))['toString']()['constructor'](a16_0x45f1ff)['search'](_0x3c363a(0x71));});a16_0x45f1ff();'use strict';function a16_0x54e6(){var _0x19e045=['apply','toString','search','3678640XLiXnj','2520qoLXhc','669372nUobwl','844551Tyykzj','10oOocGL','896kxtDCN','39540SJFUFi','anncic-api:intercept','defineProperty','13074324yPFOFX','InterceptTargetTmp','(((.+)+)+)+$','__esModule','7ZwaQql','11YIWczP','INTERCEPT_KEY','910SFYIes','7062320VblEqt'];a16_0x54e6=function(){return _0x19e045;};return a16_0x54e6();}Object[a16_0x32b481(0x6e)](exports,a16_0x32b481(0x72),{'value':!![]}),exports[a16_0x32b481(0x70)]=exports[a16_0x32b481(0x75)]=void 0x0,exports['INTERCEPT_KEY']=a16_0x32b481(0x6d);class InterceptTargetTmp{}exports[a16_0x32b481(0x70)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.1.
|
|
21
|
-
"@anncic-api/core": "^2.1.
|
|
22
|
-
"@anncic-api/event": "^2.1.
|
|
23
|
-
"@anncic-api/typeorm": "^2.1.
|
|
24
|
-
"@anncic-api/validator": "^2.1.
|
|
20
|
+
"@anncic-api/cache": "^2.1.3",
|
|
21
|
+
"@anncic-api/core": "^2.1.3",
|
|
22
|
+
"@anncic-api/event": "^2.1.3",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.3",
|
|
24
|
+
"@anncic-api/validator": "^2.1.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.1.
|
|
30
|
+
"anncic-apihelper": "^2.1.3",
|
|
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": "733c560da89ce47deb5efa9fde7866390828ff73"
|
|
42
42
|
}
|