anncic-api 3.3.5 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x2a8474=a0_0xf9bf;(function(_0x211848,_0x2aa0f5){var _0x4bd8b9=a0_0xf9bf,_0x100c65=_0x211848();while(!![]){try{var _0x4c948d=-parseInt(_0x4bd8b9(0xba))/0x1*(parseInt(_0x4bd8b9(0xaf))/0x2)+-parseInt(_0x4bd8b9(0xb7))/0x3+parseInt(_0x4bd8b9(0xb3))/0x4*(parseInt(_0x4bd8b9(0xbb))/0x5)+parseInt(_0x4bd8b9(0xb1))/0x6*(-parseInt(_0x4bd8b9(0xb0))/0x7)+-parseInt(_0x4bd8b9(0xc0))/0x8*(parseInt(_0x4bd8b9(0xb9))/0x9)+parseInt(_0x4bd8b9(0xbd))/0xa*(parseInt(_0x4bd8b9(0xbc))/0xb)+parseInt(_0x4bd8b9(0xc2))/0xc*(parseInt(_0x4bd8b9(0xbe))/0xd);if(_0x4c948d===_0x2aa0f5)break;else _0x100c65['push'](_0x100c65['shift']());}catch(_0x2b070b){_0x100c65['push'](_0x100c65['shift']());}}}(a0_0x3caf,0x561b5));function a0_0x3caf(){var _0x37ea74=['8PAovMd','default','60UOwqzj','text','20mb','/runtime/.upload','search','zhiulanuiy7892387985hnoi','106XzuEaS','35gHmGCF','425094AAFfca','defineProperty','4VEwBCd','toString','constructor','name','816675AcUKjA','xml','6235713ucJXDc','9256ravEVv','565910OvLZZD','11WsqmDp','6625310uNClWm','3605875bilNzm','form'];a0_0x3caf=function(){return _0x37ea74;};return a0_0x3caf();}var a0_0x1dbeda=(function(){var _0x6ab55e=!![];return function(_0x452693,_0x5adb52){var _0x8bf7a9=_0x6ab55e?function(){if(_0x5adb52){var _0x3c0a1c=_0x5adb52['apply'](_0x452693,arguments);return _0x5adb52=null,_0x3c0a1c;}}:function(){};return _0x6ab55e=![],_0x8bf7a9;};}()),a0_0x102e47=a0_0x1dbeda(this,function(){var _0xa0159c=a0_0xf9bf;return a0_0x102e47[_0xa0159c(0xb4)]()[_0xa0159c(0xad)]('(((.+)+)+)+$')[_0xa0159c(0xb4)]()[_0xa0159c(0xb5)](a0_0x102e47)['search']('(((.+)+)+)+$');});a0_0x102e47();'use strict';function a0_0xf9bf(_0x575c0f,_0xfd6bdc){var _0x4d14d8=a0_0x3caf();return a0_0xf9bf=function(_0x102e47,_0x1dbeda){_0x102e47=_0x102e47-0xab;var _0x3caf50=_0x4d14d8[_0x102e47];return _0x3caf50;},a0_0xf9bf(_0x575c0f,_0xfd6bdc);}Object[a0_0x2a8474(0xb2)](exports,'__esModule',{'value':!![]}),exports[a0_0x2a8474(0xc1)]=_0x37d274=>{var _0x66acd5=a0_0x2a8474;return{'apitest':!![],'keys':_0x37d274[_0x66acd5(0xb6)],'anncicapi':{'requestKey':'_token','password':_0x66acd5(0xae),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':['json',_0x66acd5(0xbf),_0x66acd5(0xc3),_0x66acd5(0xb8)],'formLimit':_0x66acd5(0xab),'jsonLimit':_0x66acd5(0xab),'textLimit':_0x66acd5(0xab),'xmlLimit':_0x66acd5(0xab),'enable':!![]},'upload':{'tmpdir':_0x37d274['appDir']+_0x66acd5(0xac),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x5a40(_0x4b24cf,_0x3be238){var _0x3447bf=a1_0x1ebc();return a1_0x5a40=function(_0x1ed87f,_0x389a9b){_0x1ed87f=_0x1ed87f-0xc4;var _0x1ebc32=_0x3447bf[_0x1ed87f];return _0x1ebc32;},a1_0x5a40(_0x4b24cf,_0x3be238);}function a1_0x1ebc(){var _0x26e5ec=['toString','834dgyKRx','constructor','2754280EBklyz','375903INlIqq','apply','default','377489AyFoDg','search','351705BKAJKu','64iqINIA','4lcWBWy','11085xjLCTO','3652540npMHEv','2015751EekfYS','(((.+)+)+)+$'];a1_0x1ebc=function(){return _0x26e5ec;};return a1_0x1ebc();}var a1_0x450406=a1_0x5a40;(function(_0xf47672,_0x140033){var _0x4a3d83=a1_0x5a40,_0x4e4a79=_0xf47672();while(!![]){try{var _0x1fce8b=-parseInt(_0x4a3d83(0xca))/0x1*(-parseInt(_0x4a3d83(0xcc))/0x2)+-parseInt(_0x4a3d83(0xcf))/0x3+parseInt(_0x4a3d83(0xc4))/0x4+parseInt(_0x4a3d83(0xcd))/0x5*(-parseInt(_0x4a3d83(0xd2))/0x6)+-parseInt(_0x4a3d83(0xc8))/0x7*(parseInt(_0x4a3d83(0xcb))/0x8)+parseInt(_0x4a3d83(0xc5))/0x9+parseInt(_0x4a3d83(0xce))/0xa;if(_0x1fce8b===_0x140033)break;else _0x4e4a79['push'](_0x4e4a79['shift']());}catch(_0x352441){_0x4e4a79['push'](_0x4e4a79['shift']());}}}(a1_0x1ebc,0x5e9b1));var a1_0x389a9b=(function(){var _0x89a7a0=!![];return function(_0x567425,_0x155e93){var _0x2e2ef2=_0x89a7a0?function(){var _0x5f3901=a1_0x5a40;if(_0x155e93){var _0x5849b6=_0x155e93[_0x5f3901(0xc6)](_0x567425,arguments);return _0x155e93=null,_0x5849b6;}}:function(){};return _0x89a7a0=![],_0x2e2ef2;};}()),a1_0x1ed87f=a1_0x389a9b(this,function(){var _0x9e7799=a1_0x5a40;return a1_0x1ed87f[_0x9e7799(0xd1)]()[_0x9e7799(0xc9)](_0x9e7799(0xd0))[_0x9e7799(0xd1)]()[_0x9e7799(0xd3)](a1_0x1ed87f)[_0x9e7799(0xc9)](_0x9e7799(0xd0));});a1_0x1ed87f();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x450406(0xc7)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4e48ce=a2_0x421d;(function(_0x17210a,_0x4feabc){const _0x377d3f=a2_0x421d,_0x55805e=_0x17210a();while(!![]){try{const _0x1f8918=-parseInt(_0x377d3f(0x1f1))/0x1*(-parseInt(_0x377d3f(0x214))/0x2)+parseInt(_0x377d3f(0x1ea))/0x3+parseInt(_0x377d3f(0x197))/0x4*(-parseInt(_0x377d3f(0x1d3))/0x5)+parseInt(_0x377d3f(0x217))/0x6+-parseInt(_0x377d3f(0x1a6))/0x7*(-parseInt(_0x377d3f(0x196))/0x8)+-parseInt(_0x377d3f(0x18b))/0x9*(parseInt(_0x377d3f(0x1b8))/0xa)+parseInt(_0x377d3f(0x1bd))/0xb*(-parseInt(_0x377d3f(0x207))/0xc);if(_0x1f8918===_0x4feabc)break;else _0x55805e['push'](_0x55805e['shift']());}catch(_0x1ab042){_0x55805e['push'](_0x55805e['shift']());}}}(a2_0x839d,0xe3fbc));const a2_0x56a055=(function(){let _0x236c14=!![];return function(_0x4f12c7,_0x2ffadf){const _0x1a10d8=_0x236c14?function(){const _0xe976e6=a2_0x421d;if(_0x2ffadf){const _0x203563=_0x2ffadf[_0xe976e6(0x1c6)](_0x4f12c7,arguments);return _0x2ffadf=null,_0x203563;}}:function(){};return _0x236c14=![],_0x1a10d8;};}()),a2_0x42862b=a2_0x56a055(this,function(){const _0x360e8b=a2_0x421d;return a2_0x42862b[_0x360e8b(0x1c2)]()[_0x360e8b(0x188)](_0x360e8b(0x205))['toString']()['constructor'](a2_0x42862b)['search'](_0x360e8b(0x205));});a2_0x42862b();'use strict';var __decorate=this&&this[a2_0x4e48ce(0x199)]||function(_0x569075,_0x4b5d1c,_0x7750e1,_0x5ce867){const _0xee30b3=a2_0x4e48ce;var _0x2bae15=arguments['length'],_0x147d76=_0x2bae15<0x3?_0x4b5d1c:_0x5ce867===null?_0x5ce867=Object[_0xee30b3(0x1a7)](_0x4b5d1c,_0x7750e1):_0x5ce867,_0x23c093;if(typeof Reflect==='object'&&typeof Reflect[_0xee30b3(0x1b4)]===_0xee30b3(0x1bf))_0x147d76=Reflect[_0xee30b3(0x1b4)](_0x569075,_0x4b5d1c,_0x7750e1,_0x5ce867);else{for(var _0x10cc3b=_0x569075[_0xee30b3(0x21b)]-0x1;_0x10cc3b>=0x0;_0x10cc3b--)if(_0x23c093=_0x569075[_0x10cc3b])_0x147d76=(_0x2bae15<0x3?_0x23c093(_0x147d76):_0x2bae15>0x3?_0x23c093(_0x4b5d1c,_0x7750e1,_0x147d76):_0x23c093(_0x4b5d1c,_0x7750e1))||_0x147d76;}return _0x2bae15>0x3&&_0x147d76&&Object['defineProperty'](_0x4b5d1c,_0x7750e1,_0x147d76),_0x147d76;},__metadata=this&&this[a2_0x4e48ce(0x202)]||function(_0x15e9c3,_0x32f3a1){const _0x3b5401=a2_0x4e48ce;if(typeof Reflect===_0x3b5401(0x213)&&typeof Reflect[_0x3b5401(0x1fd)]===_0x3b5401(0x1bf))return Reflect['metadata'](_0x15e9c3,_0x32f3a1);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4e48ce(0x1e0)]=void 0x0;const core_1=require(a2_0x4e48ce(0x1d1)),core_2=require(a2_0x4e48ce(0x1d1)),ApiError_1=require(a2_0x4e48ce(0x1ae)),ApiService_1=require(a2_0x4e48ce(0x211)),intercept_1=require(a2_0x4e48ce(0x212)),action_1=require(a2_0x4e48ce(0x1be)),fs=require('fs'),koasend=require(a2_0x4e48ce(0x1c5)),koa=require(a2_0x4e48ce(0x1fe)),upload=require(a2_0x4e48ce(0x193)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4e48ce(0x1d7)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x4e48ce(0x1ce)),anncic=require(a2_0x4e48ce(0x1b2)),anncicCache=require(a2_0x4e48ce(0x19b)),anncicEvent=require(a2_0x4e48ce(0x1f6)),anncicTypeorm=require(a2_0x4e48ce(0x19f)),anncicValidator=require(a2_0x4e48ce(0x1d4)),anncicHelper=require(a2_0x4e48ce(0x1b0));function a2_0x421d(_0x5cb041,_0x36917c){const _0x56095d=a2_0x839d();return a2_0x421d=function(_0x42862b,_0x56a055){_0x42862b=_0x42862b-0x186;let _0x839dc6=_0x56095d[_0x42862b];return _0x839dc6;},a2_0x421d(_0x5cb041,_0x36917c);}let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async['onReady'](){const _0x34487d=a2_0x4e48ce;await this['filterConfig'](),await this['loggerConfig'](),await this[_0x34487d(0x190)](),await this[_0x34487d(0x20e)]();}async[a2_0x4e48ce(0x190)](){const _0xcc29cd=a2_0x4e48ce,_0x24b680=this['config']['getConfiguration'](),_0x3382c4=(0x0,core_1[_0xcc29cd(0x1b9)])(intercept_1[_0xcc29cd(0x1c3)],intercept_1['InterceptTargetTmp'])||{};this[_0xcc29cd(0x1e7)][_0xcc29cd(0x187)](action_1[_0xcc29cd(0x1a8)],_0x4911b5=>{const _0xd55f4a=_0xcc29cd;var _0x406402;const _0x1b3923=(0x0,core_1[_0xd55f4a(0x1b9)])(action_1[_0xd55f4a(0x1ff)],action_1[_0xd55f4a(0x1f9)])||{},_0x6cfa75=_0x4911b5[_0xd55f4a(0x1fd)],_0x3f9773=(0x0,core_1[_0xd55f4a(0x1b9)])(action_1[_0xd55f4a(0x1cb)],_0x4911b5[_0xd55f4a(0x18d)])||{},_0x24f92c=((_0x406402=_0x3f9773===null||_0x3f9773===void 0x0?void 0x0:_0x3f9773[_0xd55f4a(0x1f3)])===null||_0x406402===void 0x0?void 0x0:_0x406402[_0xd55f4a(0x1e1)](0x0,_0x3f9773[_0xd55f4a(0x1f3)]['lastIndexOf']('.')))||'',_0x590c53=(_0x3f9773===null||_0x3f9773===void 0x0?void 0x0:_0x3f9773[_0xd55f4a(0x20b)])?(_0x1b3923===null||_0x1b3923===void 0x0?void 0x0:_0x1b3923[_0x3f9773['module']])||{}:{};return{'before':async _0x137ade=>{const _0x44b86b=_0xd55f4a;var _0x2d1518,_0x25b2d0,_0x2dae48,_0x1a4ebd;const _0x2daec1=(_0x2d1518=_0x137ade===null||_0x137ade===void 0x0?void 0x0:_0x137ade['target'])===null||_0x2d1518===void 0x0?void 0x0:_0x2d1518[core_2[_0x44b86b(0x1f7)]],_0x3389f0=lodash[_0x44b86b(0x1b6)]({},_0x2daec1['request'][_0x44b86b(0x1f4)]||_0x2daec1[_0x44b86b(0x1fb)][((_0x25b2d0=_0x24b680===null||_0x24b680===void 0x0?void 0x0:_0x24b680[_0x44b86b(0x203)])===null||_0x25b2d0===void 0x0?void 0x0:_0x25b2d0[_0x44b86b(0x1ec)])||_0x44b86b(0x1f4)]||{},_0x2daec1[_0x44b86b(0x1fb)][_0x44b86b(0x1b5)]||{});_0x2daec1[_0x44b86b(0x1d8)]={'module':(_0x590c53===null||_0x590c53===void 0x0?void 0x0:_0x590c53[_0x44b86b(0x20a)])||'','routePath':''+_0x2daec1['path'],'routeName':_0x3f9773['routerOptions'][_0x44b86b(0x1a9)]+'@'+_0x6cfa75[_0x44b86b(0x1f0)],'routeMethod':((_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['requestMethod'])||_0x2daec1['method']||'')[_0x44b86b(0x1bc)](),'routeDescription':(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['description'])||'','filemethod':_0x24f92c+'@'+(_0x6cfa75['method']||'')};if(_0x2daec1&&(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['apimit']))try{const _0x3a3de5=((_0x2dae48=_0x24b680===null||_0x24b680===void 0x0?void 0x0:_0x24b680[_0x44b86b(0x1e6)])===null||_0x2dae48===void 0x0?void 0x0:_0x2dae48[_0x44b86b(0x218)])&&typeof(_0x3389f0===null||_0x3389f0===void 0x0?void 0x0:_0x3389f0[_0x24b680[_0x44b86b(0x1e6)][_0x44b86b(0x218)]])==_0x44b86b(0x1ba)?JSON[_0x44b86b(0x1e5)](base64_decode(_0x3389f0[_0x24b680['anncicapi']['requestKey']])||'{}')||{}:((_0x1a4ebd=_0x2daec1===null||_0x2daec1===void 0x0?void 0x0:_0x2daec1[_0x44b86b(0x1fb)])===null||_0x1a4ebd===void 0x0?void 0x0:_0x1a4ebd[_0x44b86b(0x1d2)])||{};if(!this[_0x44b86b(0x206)][_0x44b86b(0x1a2)](_0x3a3de5))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}catch(_0x19961b){if(_0x19961b instanceof AnnError)throw _0x19961b;else throw new AnnError(ApiError_1[_0x44b86b(0x215)][_0x44b86b(0x1ac)]);}},'around':async _0x3b7b82=>{const _0x450b8d=_0xd55f4a;var _0xda0d00,_0x482acc,_0x2b47cc;const _0x400216=(_0xda0d00=_0x3b7b82===null||_0x3b7b82===void 0x0?void 0x0:_0x3b7b82[_0x450b8d(0x18d)])===null||_0xda0d00===void 0x0?void 0x0:_0xda0d00[core_2[_0x450b8d(0x1f7)]];if(_0x400216&&(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75[_0x450b8d(0x1a1)])&&((_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['intercept'])||typeof(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75[_0x450b8d(0x1b1)])==_0x450b8d(0x195))){if(((_0x482acc=_0x400216[_0x450b8d(0x1d2)])===null||_0x482acc===void 0x0?void 0x0:_0x482acc[_0x450b8d(0x20c)])&&((_0x2b47cc=_0x3382c4===null||_0x3382c4===void 0x0?void 0x0:_0x3382c4[_0x400216[_0x450b8d(0x1d2)][_0x450b8d(0x20c)]])===null||_0x2b47cc===void 0x0?void 0x0:_0x2b47cc[_0x450b8d(0x21b)])>0x0)for(const _0x1df649 of _0x3382c4[_0x400216[_0x450b8d(0x1d2)]['device']]||[]){if(core_1[_0x450b8d(0x189)][_0x450b8d(0x209)](_0x1df649)){const _0x5b3fc0=await _0x400216[_0x450b8d(0x19d)][_0x450b8d(0x1e3)](_0x1df649);typeof(_0x5b3fc0===null||_0x5b3fc0===void 0x0?void 0x0:_0x5b3fc0[_0x450b8d(0x1ee)])==_0x450b8d(0x1bf)?await _0x5b3fc0['match'](_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])=='string'&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216['_matchedRoute'])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75)&&await _0x5b3fc0[_0x450b8d(0x1c0)](_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])==_0x450b8d(0x1ba)&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75):await _0x5b3fc0[_0x450b8d(0x1c0)](_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])==_0x450b8d(0x1ba)&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75);}else core_1[_0x450b8d(0x189)][_0x450b8d(0x1d5)](_0x1df649)&&await _0x1df649(_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])==_0x450b8d(0x1ba)&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216['_matchedRoute'])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75);}}return await _0x3b7b82[_0x450b8d(0x1d6)](..._0x3b7b82[_0x450b8d(0x1b7)]);},'afterThrow':(_0x2ae29b,_0x214203)=>{throw _0x214203;}};});}async[a2_0x4e48ce(0x20e)](){const _0x3ea576=a2_0x4e48ce,_0x55af44=this['config']['getConfiguration']();this[_0x3ea576(0x1eb)][_0x3ea576(0x201)]([_0x3ea576(0x204)])[_0x3ea576(0x18e)](_0x5c1951=>{const _0x2fae28=_0x3ea576;(_0x5c1951===null||_0x5c1951===void 0x0?void 0x0:_0x5c1951[_0x2fae28(0x18a)])&&Object[_0x2fae28(0x19c)](_0x5c1951[_0x2fae28(0x18a)],{'hosturl':{'configurable':![],'get':function(){const _0x144edc=_0x2fae28;var _0x129e1f,_0x32f4d9,_0x502534,_0x230e33;if((this===null||this===void 0x0?void 0x0:this[_0x144edc(0x1c7)])&&!this['host'][_0x144edc(0x1fc)](_0x144edc(0x18f))){let _0x178539=this[_0x144edc(0x1c7)][_0x144edc(0x1f8)](':');return['80',_0x144edc(0x1c4)][_0x144edc(0x1cf)](_0x178539===null||_0x178539===void 0x0?void 0x0:_0x178539[0x1])?''+(!!((_0x32f4d9=(_0x129e1f=this===null||this===void 0x0?void 0x0:this[_0x144edc(0x1ad)])===null||_0x129e1f===void 0x0?void 0x0:_0x129e1f[_0x144edc(0x19a)])===null||_0x32f4d9===void 0x0?void 0x0:_0x32f4d9['encrypted'])||(_0x178539===null||_0x178539===void 0x0?void 0x0:_0x178539[0x1])=='443'?_0x144edc(0x1ab):'http://')+_0x178539[0x0]:''+(!!((_0x230e33=(_0x502534=this===null||this===void 0x0?void 0x0:this[_0x144edc(0x1ad)])===null||_0x502534===void 0x0?void 0x0:_0x502534['connection'])===null||_0x230e33===void 0x0?void 0x0:_0x230e33[_0x144edc(0x216)])?_0x144edc(0x1ab):'http://')+this[_0x144edc(0x1c7)];}return'';}},'ok':{'value':function(_0xb3fb8b,_0x2d7c0d,_0x2d1eeb=0x0){return{'code':_0x2d1eeb,'data':_0xb3fb8b,'extra':_0x2d7c0d};}},'input':{'value':function(_0xdc4b87,_0x287709){const _0x344f4b=_0x2fae28;var _0x3f6748;const _0x24f019=lodash['defaultsDeep']({},this['request']['body']||this['request'][((_0x3f6748=_0x55af44===null||_0x55af44===void 0x0?void 0x0:_0x55af44[_0x344f4b(0x203)])===null||_0x3f6748===void 0x0?void 0x0:_0x3f6748['key'])||_0x344f4b(0x1f4)]||{},this[_0x344f4b(0x1fb)][_0x344f4b(0x1b5)]||{});return _0xdc4b87?lodash[_0x344f4b(0x1b3)](_0x24f019,_0xdc4b87,_0x287709):_0x24f019;}},'when':{'value':async function(_0x761347,_0x22c247){const _0x255e0c=_0x2fae28,_0x7d159b=this[_0x255e0c(0x1da)](_0x761347,null);if(!lodash[_0x255e0c(0x200)](_0x7d159b))return await _0x22c247(_0x7d159b);}},'only':{'value':function(_0x522ffa){const _0x2eaa0e=_0x2fae28,_0x3aa7ff={};for(let _0x5da082=0x0;_0x5da082<_0x522ffa[_0x2eaa0e(0x21b)];_0x5da082++){lodash[_0x2eaa0e(0x1de)](_0x522ffa[_0x5da082])&&_0x522ffa[_0x5da082]['length']>0x0&&lodash[_0x2eaa0e(0x1cd)](_0x522ffa[_0x5da082][0x0])&&(_0x3aa7ff[_0x522ffa[_0x5da082][0x0]]=this['input'](_0x522ffa[_0x5da082][0x0],_0x522ffa[_0x5da082][_0x2eaa0e(0x21b)]>0x1?_0x522ffa[_0x5da082][0x1]:null));}return _0x3aa7ff;}},'koasend':{'value':async function(_0x518b1c,_0x2f2eb4){const _0x33f9d6=_0x2fae28;if(_0x518b1c&&!fs[_0x33f9d6(0x1e9)](_0x518b1c)&&!fs[_0x33f9d6(0x1e9)](this[_0x33f9d6(0x1d0)][_0x33f9d6(0x192)]()+'/'+_0x518b1c))return _0x33f9d6(0x1f5);return _0x518b1c=fs['existsSync'](_0x518b1c)?_0x518b1c:this[_0x33f9d6(0x1d0)]['getAppDir']()+'/'+_0x518b1c,this[_0x33f9d6(0x1fa)](_0x2f2eb4||_0x518b1c),await koasend(this,_0x518b1c);}}});});}async['loggerConfig'](){const _0x5f3b0c=a2_0x4e48ce;var _0x301b86,_0x49d6eb;if(fs['existsSync'](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+_0x5f3b0c(0x1c1))&&fs['statSync'](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+'/apps')[_0x5f3b0c(0x1dd)]()){const _0x450545=this[_0x5f3b0c(0x208)][_0x5f3b0c(0x1af)](),_0x25dfeb=((_0x301b86=_0x450545===null||_0x450545===void 0x0?void 0x0:_0x450545[_0x5f3b0c(0x1db)])===null||_0x301b86===void 0x0?void 0x0:_0x301b86['clients'])||{};for(const _0x26ed4f of fs[_0x5f3b0c(0x186)](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+_0x5f3b0c(0x1c1))){if(!fs['statSync'](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+'/apps/'+_0x26ed4f)['isDirectory']())continue;if(_0x25dfeb===null||_0x25dfeb===void 0x0?void 0x0:_0x25dfeb[_0x26ed4f])continue;_0x25dfeb[_0x26ed4f]=Object[_0x5f3b0c(0x1c9)]({},((_0x49d6eb=_0x450545===null||_0x450545===void 0x0?void 0x0:_0x450545[_0x5f3b0c(0x1db)])===null||_0x49d6eb===void 0x0?void 0x0:_0x49d6eb[_0x5f3b0c(0x1e8)])||{'maxSize':'1m','dir':this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x192)]()+_0x5f3b0c(0x191)},{'enableJSON':!![],'enableConsole':this['environment'][_0x5f3b0c(0x1a5)](),'fileLogName':_0x26ed4f+'.log','dir':this['app'][_0x5f3b0c(0x192)]()+_0x5f3b0c(0x1df)+_0x26ed4f});}Object[_0x5f3b0c(0x1cc)](_0x25dfeb)[_0x5f3b0c(0x21b)]>0x0&&(!_0x450545['midwayLogger']&&(_0x450545[_0x5f3b0c(0x1db)]={'default':{'maxSize':'1m','dir':this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x192)]()+_0x5f3b0c(0x191)}}),_0x450545[_0x5f3b0c(0x1db)][_0x5f3b0c(0x20d)]=_0x25dfeb),this[_0x5f3b0c(0x208)][_0x5f3b0c(0x1d9)](_0x450545);}}async[a2_0x4e48ce(0x21c)](){const _0x353631=a2_0x4e48ce;var _0x19a850,_0x9f4b2,_0x4b9a7c,_0x1c6c9f,_0x5d48a1,_0x394f9b;const _0x2304eb=this['config']['getConfiguration']();((_0x9f4b2=(_0x19a850=_0x2304eb===null||_0x2304eb===void 0x0?void 0x0:_0x2304eb['anncicapi'])===null||_0x19a850===void 0x0?void 0x0:_0x19a850[_0x353631(0x1ef)])===null||_0x9f4b2===void 0x0?void 0x0:_0x9f4b2[_0x353631(0x20f)])&&Object[_0x353631(0x1cc)](_0x2304eb['anncicapi'][_0x353631(0x1ef)])['length']>0x1&&delete _0x2304eb['anncicapi']['devices']['DEFAULT'];if((_0x4b9a7c=_0x2304eb===null||_0x2304eb===void 0x0?void 0x0:_0x2304eb[_0x353631(0x1aa)])===null||_0x4b9a7c===void 0x0?void 0x0:_0x4b9a7c[_0x353631(0x1bb)])for(const _0x5d80a6 in _0x2304eb[_0x353631(0x1aa)]['dirs']){((_0x1c6c9f=_0x2304eb[_0x353631(0x1aa)]['dirs'][_0x5d80a6])===null||_0x1c6c9f===void 0x0?void 0x0:_0x1c6c9f[_0x353631(0x1a3)])&&typeof((_0x5d48a1=_0x2304eb[_0x353631(0x1aa)][_0x353631(0x1bb)][_0x5d80a6])===null||_0x5d48a1===void 0x0?void 0x0:_0x5d48a1[_0x353631(0x1a3)])==_0x353631(0x1ba)&&!fs[_0x353631(0x1e9)](_0x2304eb[_0x353631(0x1aa)][_0x353631(0x1bb)][_0x5d80a6][_0x353631(0x1a3)])&&(fs[_0x353631(0x1a0)](_0x2304eb[_0x353631(0x1aa)]['dirs'][_0x5d80a6][_0x353631(0x1a3)],{'recursive':!![]}),console[_0x353631(0x194)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2304eb[_0x353631(0x1aa)][_0x353631(0x1bb)][_0x5d80a6][_0x353631(0x1a3)]));}((_0x394f9b=_0x2304eb===null||_0x2304eb===void 0x0?void 0x0:_0x2304eb[_0x353631(0x1a4)])===null||_0x394f9b===void 0x0?void 0x0:_0x394f9b[_0x353631(0x1ed)])&&!fs[_0x353631(0x1e9)](_0x2304eb[_0x353631(0x1a4)][_0x353631(0x1ed)])&&(fs[_0x353631(0x1a0)](_0x2304eb[_0x353631(0x1a4)][_0x353631(0x1ed)],{'recursive':!![]}),console[_0x353631(0x194)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x2304eb[_0x353631(0x1a4)]['tmpdir'])),this[_0x353631(0x208)][_0x353631(0x1d9)](_0x2304eb);}};function a2_0x839d(){const _0x43465d=['requestKey','MidwayConfigService','getBaseDir','length','filterConfig','readdirSync','registerMethodHandler','search','Types','context','9175977BwCuCX','Inject','target','forEach','http','handlerActionRoute','/runtime','getAppDir','@midwayjs/upload','log','undefined','2344eYEKkO','1076BpqJZD','MidwayApplicationManager','__decorate','connection','@anncic-api/cache','defineProperties','requestContext','MidwayDecoratorService','@anncic-api/typeorm','mkdirSync','apimit','checksign','dir','upload','isDevelopmentEnvironment','20209fYKEpi','getOwnPropertyDescriptor','ACTION_ROUTE_KEY','tagName','staticFile','https://','_UNKNOW_','req','./exception/ApiError','getConfiguration','anncic-apihelper','intercept','@anncic-api/core','get','decorate','query','defaultsDeep','args','10fhxUDd','getClassMetadata','string','dirs','toLowerCase','143prmPCG','./types/action','function','handler','/apps','toString','INTERCEPT_KEY','443','koa-send','apply','host','environment','assign','_matchedRoute','ACTION_KEY','keys','isString','./config/config.production','includes','app','@midwayjs/core','headers','15005DKRpmG','@anncic-api/validator','isFunction','proceed','@midwayjs/cross-domain','_matchedRouteMeta','addObject','input','midwayLogger','Configuration','isDirectory','isArray','/runtime/apps-','CustomConfiguration','substring','design:type','getAsync','MidwayEnvironmentService','parse','anncicapi','decorator','default','existsSync','3703866rhiPpw','application','key','tmpdir','match','devices','routerName','403201MbhiCU','method','filepath','body','文件不存在','@anncic-api/event','REQUEST_OBJ_CTX_KEY','split','AppsConfigTmp','attachment','request','startsWith','metadata','@midwayjs/koa','APPSCONFIG_KEY','isNull','getApplications','__metadata','bodyXml','koa','(((.+)+)+)+$','ApiService','1472988KLqGcs','config','isClass','name','module','device','clients','hanlderApplications','DEFAULT','prototype','./service/ApiService','./types/intercept','object','6tFNnlu','ApiError','encrypted','6397578hOmBto'];a2_0x839d=function(){return _0x43465d;};return a2_0x839d();}__decorate([(0x0,core_1['App'])(),__metadata(a2_0x4e48ce(0x1e2),Object)],CustomConfiguration['prototype'],a2_0x4e48ce(0x1d0),void 0x0),__decorate([(0x0,core_1[a2_0x4e48ce(0x18c)])(),__metadata(a2_0x4e48ce(0x1e2),core_2[a2_0x4e48ce(0x219)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x208),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x4e48ce(0x19e)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x1e7),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4e48ce(0x1e2),core_2[a2_0x4e48ce(0x198)])],CustomConfiguration[a2_0x4e48ce(0x210)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x4e48ce(0x18c)])(),__metadata('design:type',core_2[a2_0x4e48ce(0x1e4)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x1c8),void 0x0),__decorate([(0x0,core_1[a2_0x4e48ce(0x18c)])(),__metadata(a2_0x4e48ce(0x1e2),ApiService_1[a2_0x4e48ce(0x206)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x206),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a2_0x4e48ce(0x1dc)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x9cf8d2=a2_0x168f;(function(_0x1a0e13,_0x54ca00){const _0x381c12=a2_0x168f,_0x1e3dad=_0x1a0e13();while(!![]){try{const _0x41c18a=-parseInt(_0x381c12(0x22b))/0x1*(-parseInt(_0x381c12(0x212))/0x2)+parseInt(_0x381c12(0x1e2))/0x3*(-parseInt(_0x381c12(0x221))/0x4)+-parseInt(_0x381c12(0x1d2))/0x5*(-parseInt(_0x381c12(0x1fe))/0x6)+parseInt(_0x381c12(0x1f9))/0x7*(parseInt(_0x381c12(0x21c))/0x8)+-parseInt(_0x381c12(0x257))/0x9+-parseInt(_0x381c12(0x200))/0xa*(-parseInt(_0x381c12(0x1e5))/0xb)+-parseInt(_0x381c12(0x256))/0xc*(-parseInt(_0x381c12(0x245))/0xd);if(_0x41c18a===_0x54ca00)break;else _0x1e3dad['push'](_0x1e3dad['shift']());}catch(_0x1463fa){_0x1e3dad['push'](_0x1e3dad['shift']());}}}(a2_0x2fd8,0xa5577));const a2_0x309b9a=(function(){let _0x13e5b2=!![];return function(_0x20975a,_0x493045){const _0x2f9f2a=_0x13e5b2?function(){const _0x1eedb0=a2_0x168f;if(_0x493045){const _0x6a2fb5=_0x493045[_0x1eedb0(0x215)](_0x20975a,arguments);return _0x493045=null,_0x6a2fb5;}}:function(){};return _0x13e5b2=![],_0x2f9f2a;};}()),a2_0x5e2d7f=a2_0x309b9a(this,function(){const _0x384113=a2_0x168f;return a2_0x5e2d7f[_0x384113(0x22e)]()[_0x384113(0x214)](_0x384113(0x1eb))[_0x384113(0x22e)]()[_0x384113(0x25f)](a2_0x5e2d7f)[_0x384113(0x214)](_0x384113(0x1eb));});a2_0x5e2d7f();function a2_0x2fd8(){const _0x504754=['2301970AZpUUn','requestKey','./service/ApiService','MidwayApplicationManager','handlerActionRoute','anncicapi','(((.+)+)+)+$','path','headers','metadata','apimit','onReady','args','mkdirSync','context','isString','@midwayjs/koa','@anncic-api/typeorm','existsSync','@anncic-api/validator','7jpaLTt','devices','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','description','getAsync','568686OtUszi','MidwayEnvironmentService','20drtJKL','/runtime/apps-','Types','function','isNull','environment','INTERCEPT_KEY','application','https://','/runtime','host','method','__metadata','includes','./types/action','request','getBaseDir','connection','2szmxqu','input','search','apply','lastIndexOf','readdirSync','statSync','dirs','checksign','isFunction','5466472jnPaXX','MidwayConfigService','文件不存在','loggerConfig','undefined','4jXJsEk','addObject','filepath','APPSCONFIG_KEY','_matchedRouteMeta','__decorate','Configuration','handler','upload','./exception/ApiError','1222769ETsasz','proceed','match','toString','config','device','routerOptions','@midwayjs/static-file','startsWith','substring','443','HEADERS_SIGNATURE','http://','parse','tmpdir','/apps/','keys','@midwayjs/cross-domain','decorator','/apps','body','anncic-apihelper','http','design:type','dir','midwayLogger','1165450OErNMd','./config/config.production','get','query','_UNKNOW_','REQUEST_OBJ_CTX_KEY','defineProperties','@midwayjs/core','defineProperty','length','attachment','@midwayjs/upload','registerMethodHandler','string','ApiService','@anncic-api/core','koa','36EhDjGr','9811917FwmiBY','toLowerCase','ApiError','requestContext','CustomConfiguration','tagName','clients','getAppDir','constructor','decorate','_matchedRoute','defaultsDeep','getConfiguration','requestMethod','staticFile','DEFAULT','.log','object','./types/intercept','intercept','req','default','hanlderApplications','split','5tEaQAe','getApplications','routerName','target','@anncic-api/event','isClass','Inject','log','filterConfig','InterceptTargetTmp','getClassMetadata','isDirectory','bodyXml','app','key','prototype','2762691vkYexb','module','@anncic-api/cache'];a2_0x2fd8=function(){return _0x504754;};return a2_0x2fd8();}'use strict';var __decorate=this&&this[a2_0x9cf8d2(0x226)]||function(_0x2563b4,_0x122b2c,_0x3eaa47,_0x5d4006){const _0x1e38fb=a2_0x9cf8d2;var _0x2fb2f1=arguments[_0x1e38fb(0x24e)],_0x1ebe28=_0x2fb2f1<0x3?_0x122b2c:_0x5d4006===null?_0x5d4006=Object['getOwnPropertyDescriptor'](_0x122b2c,_0x3eaa47):_0x5d4006,_0x2354a0;if(typeof Reflect===_0x1e38fb(0x1cb)&&typeof Reflect[_0x1e38fb(0x260)]==='function')_0x1ebe28=Reflect['decorate'](_0x2563b4,_0x122b2c,_0x3eaa47,_0x5d4006);else{for(var _0x351398=_0x2563b4[_0x1e38fb(0x24e)]-0x1;_0x351398>=0x0;_0x351398--)if(_0x2354a0=_0x2563b4[_0x351398])_0x1ebe28=(_0x2fb2f1<0x3?_0x2354a0(_0x1ebe28):_0x2fb2f1>0x3?_0x2354a0(_0x122b2c,_0x3eaa47,_0x1ebe28):_0x2354a0(_0x122b2c,_0x3eaa47))||_0x1ebe28;}return _0x2fb2f1>0x3&&_0x1ebe28&&Object[_0x1e38fb(0x24d)](_0x122b2c,_0x3eaa47,_0x1ebe28),_0x1ebe28;},__metadata=this&&this[a2_0x9cf8d2(0x20c)]||function(_0x213cda,_0x404215){const _0x4d52ae=a2_0x9cf8d2;if(typeof Reflect===_0x4d52ae(0x1cb)&&typeof Reflect[_0x4d52ae(0x1ee)]==='function')return Reflect[_0x4d52ae(0x1ee)](_0x213cda,_0x404215);};function a2_0x168f(_0x2123e1,_0x51916d){const _0x1481a5=a2_0x2fd8();return a2_0x168f=function(_0x5e2d7f,_0x309b9a){_0x5e2d7f=_0x5e2d7f-0x1ca;let _0x2fd85b=_0x1481a5[_0x5e2d7f];return _0x2fd85b;},a2_0x168f(_0x2123e1,_0x51916d);}Object[a2_0x9cf8d2(0x24d)](exports,'__esModule',{'value':!![]}),exports[a2_0x9cf8d2(0x25b)]=void 0x0;const core_1=require(a2_0x9cf8d2(0x24c)),core_2=require(a2_0x9cf8d2(0x24c)),ApiError_1=require(a2_0x9cf8d2(0x22a)),ApiService_1=require(a2_0x9cf8d2(0x1e7)),intercept_1=require(a2_0x9cf8d2(0x1cc)),action_1=require(a2_0x9cf8d2(0x20e)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x9cf8d2(0x1f5)),upload=require(a2_0x9cf8d2(0x250)),staticFile=require(a2_0x9cf8d2(0x232)),crossDomain=require(a2_0x9cf8d2(0x23c)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x9cf8d2(0x246)),anncic=require(a2_0x9cf8d2(0x254)),anncicCache=require(a2_0x9cf8d2(0x1e4)),anncicEvent=require(a2_0x9cf8d2(0x1d6)),anncicTypeorm=require(a2_0x9cf8d2(0x1f6)),anncicValidator=require(a2_0x9cf8d2(0x1f8)),anncicHelper=require(a2_0x9cf8d2(0x240));let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a2_0x9cf8d2(0x1f0)](){const _0x5c4ace=a2_0x9cf8d2;await this[_0x5c4ace(0x1da)](),await this[_0x5c4ace(0x21f)](),await this[_0x5c4ace(0x1e9)](),await this['hanlderApplications']();}async[a2_0x9cf8d2(0x1e9)](){const _0x290518=a2_0x9cf8d2,_0x37044f=this[_0x290518(0x22f)][_0x290518(0x263)](),_0x5283a7=(0x0,core_1[_0x290518(0x1dc)])(intercept_1[_0x290518(0x206)],intercept_1[_0x290518(0x1db)])||{};this['decorator'][_0x290518(0x251)](action_1['ACTION_ROUTE_KEY'],_0x1e4bc2=>{const _0x3a769a=_0x290518;var _0x57f08a;const _0x12879f=(0x0,core_1['getClassMetadata'])(action_1[_0x3a769a(0x224)],action_1['AppsConfigTmp'])||{},_0x1c450d=_0x1e4bc2['metadata'],_0x59649a=(0x0,core_1[_0x3a769a(0x1dc)])(action_1['ACTION_KEY'],_0x1e4bc2[_0x3a769a(0x1d5)])||{},_0x45de87=((_0x57f08a=_0x59649a===null||_0x59649a===void 0x0?void 0x0:_0x59649a['filepath'])===null||_0x57f08a===void 0x0?void 0x0:_0x57f08a[_0x3a769a(0x234)](0x0,_0x59649a[_0x3a769a(0x223)][_0x3a769a(0x216)]('.')))||'',_0x41f022=(_0x59649a===null||_0x59649a===void 0x0?void 0x0:_0x59649a[_0x3a769a(0x1e3)])?(_0x12879f===null||_0x12879f===void 0x0?void 0x0:_0x12879f[_0x59649a[_0x3a769a(0x1e3)]])||{}:{};return{'before':async _0x113101=>{const _0x40546c=_0x3a769a;var _0x2a82cb,_0x2bf29f,_0x4bc61b,_0xaa01fb;const _0x10382e=(_0x2a82cb=_0x113101===null||_0x113101===void 0x0?void 0x0:_0x113101[_0x40546c(0x1d5)])===null||_0x2a82cb===void 0x0?void 0x0:_0x2a82cb[core_2[_0x40546c(0x24a)]],_0x474c6b=lodash[_0x40546c(0x262)]({},_0x10382e[_0x40546c(0x20f)]['body']||_0x10382e['request'][((_0x2bf29f=_0x37044f===null||_0x37044f===void 0x0?void 0x0:_0x37044f[_0x40546c(0x1de)])===null||_0x2bf29f===void 0x0?void 0x0:_0x2bf29f[_0x40546c(0x1e0)])||'body']||{},_0x10382e['request'][_0x40546c(0x248)]||{});_0x10382e[_0x40546c(0x225)]={'module':(_0x41f022===null||_0x41f022===void 0x0?void 0x0:_0x41f022['name'])||'','routePath':''+_0x10382e[_0x40546c(0x1ec)],'routeName':_0x59649a[_0x40546c(0x231)][_0x40546c(0x25c)]+'@'+_0x1c450d[_0x40546c(0x1d4)],'routeMethod':((_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0x40546c(0x264)])||_0x10382e['method']||'')[_0x40546c(0x258)](),'routeDescription':(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0x40546c(0x1fc)])||'','filemethod':_0x45de87+'@'+(_0x1c450d[_0x40546c(0x20b)]||'')};if(_0x10382e&&(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0x40546c(0x1ef)]))try{const _0x5e0382=((_0x4bc61b=_0x37044f===null||_0x37044f===void 0x0?void 0x0:_0x37044f[_0x40546c(0x1ea)])===null||_0x4bc61b===void 0x0?void 0x0:_0x4bc61b['requestKey'])&&typeof(_0x474c6b===null||_0x474c6b===void 0x0?void 0x0:_0x474c6b[_0x37044f[_0x40546c(0x1ea)][_0x40546c(0x1e6)]])==_0x40546c(0x252)?JSON[_0x40546c(0x238)](base64_decode(_0x474c6b[_0x37044f[_0x40546c(0x1ea)]['requestKey']])||'{}')||{}:((_0xaa01fb=_0x10382e===null||_0x10382e===void 0x0?void 0x0:_0x10382e[_0x40546c(0x20f)])===null||_0xaa01fb===void 0x0?void 0x0:_0xaa01fb[_0x40546c(0x1ed)])||{};if(!this['ApiService'][_0x40546c(0x21a)](_0x5e0382))throw new AnnError(ApiError_1[_0x40546c(0x259)][_0x40546c(0x236)]);}catch(_0x21b09e){if(_0x21b09e instanceof AnnError)throw _0x21b09e;else throw new AnnError(ApiError_1['ApiError'][_0x40546c(0x249)]);}},'around':async _0x2c5458=>{const _0xcbf7a3=_0x3a769a;var _0x233129,_0x1c66b2,_0x15886e;const _0x9ed473=(_0x233129=_0x2c5458===null||_0x2c5458===void 0x0?void 0x0:_0x2c5458[_0xcbf7a3(0x1d5)])===null||_0x233129===void 0x0?void 0x0:_0x233129[core_2[_0xcbf7a3(0x24a)]];if(_0x9ed473&&(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0xcbf7a3(0x1ef)])&&((_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0xcbf7a3(0x1cd)])||typeof(_0x1c450d===null||_0x1c450d===void 0x0?void 0x0:_0x1c450d[_0xcbf7a3(0x1cd)])==_0xcbf7a3(0x220))){if(((_0x1c66b2=_0x9ed473[_0xcbf7a3(0x1ed)])===null||_0x1c66b2===void 0x0?void 0x0:_0x1c66b2[_0xcbf7a3(0x230)])&&((_0x15886e=_0x5283a7===null||_0x5283a7===void 0x0?void 0x0:_0x5283a7[_0x9ed473['headers'][_0xcbf7a3(0x230)]])===null||_0x15886e===void 0x0?void 0x0:_0x15886e[_0xcbf7a3(0x24e)])>0x0)for(const _0x4c9b68 of _0x5283a7[_0x9ed473['headers'][_0xcbf7a3(0x230)]]||[]){if(core_1[_0xcbf7a3(0x202)][_0xcbf7a3(0x1d7)](_0x4c9b68)){const _0x3c4e38=await _0x9ed473[_0xcbf7a3(0x25a)][_0xcbf7a3(0x1fd)](_0x4c9b68);typeof(_0x3c4e38===null||_0x3c4e38===void 0x0?void 0x0:_0x3c4e38[_0xcbf7a3(0x22d)])==_0xcbf7a3(0x203)?await _0x3c4e38[_0xcbf7a3(0x22d)](_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x20b)])=='string'&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)])?_0x9ed473['method']['toLowerCase']()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473['_matchedRoute']):undefined,_0x1c450d)&&await _0x3c4e38['handler'](_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473['method'])==_0xcbf7a3(0x252)&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)])?_0x9ed473[_0xcbf7a3(0x20b)][_0xcbf7a3(0x258)]()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)]):undefined,_0x1c450d):await _0x3c4e38[_0xcbf7a3(0x228)](_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x20b)])=='string'&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473['_matchedRoute'])?_0x9ed473['method'][_0xcbf7a3(0x258)]()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)]):undefined,_0x1c450d);}else core_1[_0xcbf7a3(0x202)][_0xcbf7a3(0x21b)](_0x4c9b68)&&await _0x4c9b68(_0x9ed473,typeof(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x20b)])==_0xcbf7a3(0x252)&&(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)])?_0x9ed473[_0xcbf7a3(0x20b)]['toLowerCase']()+'@'+(_0x9ed473===null||_0x9ed473===void 0x0?void 0x0:_0x9ed473[_0xcbf7a3(0x261)]):undefined,_0x1c450d);}}return await _0x2c5458[_0xcbf7a3(0x22c)](..._0x2c5458[_0xcbf7a3(0x1f1)]);},'afterThrow':(_0x213bce,_0x37b1a6)=>{throw _0x37b1a6;}};});}async[a2_0x9cf8d2(0x1d0)](){const _0x234db8=a2_0x9cf8d2,_0x24ff52=this['config']['getConfiguration']();this[_0x234db8(0x207)][_0x234db8(0x1d3)]([_0x234db8(0x255)])['forEach'](_0x42c31b=>{const _0x197969=_0x234db8;(_0x42c31b===null||_0x42c31b===void 0x0?void 0x0:_0x42c31b[_0x197969(0x1f3)])&&Object[_0x197969(0x24b)](_0x42c31b[_0x197969(0x1f3)],{'hosturl':{'configurable':![],'get':function(){const _0x539c39=_0x197969;var _0x47a29a,_0x13f216,_0x34db85,_0x1c330b;if((this===null||this===void 0x0?void 0x0:this[_0x539c39(0x20a)])&&!this[_0x539c39(0x20a)][_0x539c39(0x233)](_0x539c39(0x241))){let _0x5eb617=this[_0x539c39(0x20a)][_0x539c39(0x1d1)](':');return['80',_0x539c39(0x235)][_0x539c39(0x20d)](_0x5eb617===null||_0x5eb617===void 0x0?void 0x0:_0x5eb617[0x1])?''+(!!((_0x13f216=(_0x47a29a=this===null||this===void 0x0?void 0x0:this[_0x539c39(0x1ce)])===null||_0x47a29a===void 0x0?void 0x0:_0x47a29a[_0x539c39(0x211)])===null||_0x13f216===void 0x0?void 0x0:_0x13f216['encrypted'])||(_0x5eb617===null||_0x5eb617===void 0x0?void 0x0:_0x5eb617[0x1])==_0x539c39(0x235)?_0x539c39(0x208):'http://')+_0x5eb617[0x0]:''+(!!((_0x1c330b=(_0x34db85=this===null||this===void 0x0?void 0x0:this[_0x539c39(0x1ce)])===null||_0x34db85===void 0x0?void 0x0:_0x34db85[_0x539c39(0x211)])===null||_0x1c330b===void 0x0?void 0x0:_0x1c330b['encrypted'])?'https://':_0x539c39(0x237))+this[_0x539c39(0x20a)];}return'';}},'ok':{'value':function(_0x25a5e5,_0x2142c1,_0x151fc3=0x0){return{'code':_0x151fc3,'data':_0x25a5e5,'extra':_0x2142c1};}},'input':{'value':function(_0x18862b,_0x5c7362){const _0x5c9c20=_0x197969;var _0x151a8a;const _0x2383d3=lodash[_0x5c9c20(0x262)]({},this[_0x5c9c20(0x20f)]['body']||this[_0x5c9c20(0x20f)][((_0x151a8a=_0x24ff52===null||_0x24ff52===void 0x0?void 0x0:_0x24ff52[_0x5c9c20(0x1de)])===null||_0x151a8a===void 0x0?void 0x0:_0x151a8a[_0x5c9c20(0x1e0)])||_0x5c9c20(0x23f)]||{},this[_0x5c9c20(0x20f)][_0x5c9c20(0x248)]||{});return _0x18862b?lodash[_0x5c9c20(0x247)](_0x2383d3,_0x18862b,_0x5c7362):_0x2383d3;}},'when':{'value':async function(_0x13b84c,_0x3db601){const _0x3ebd10=_0x197969,_0x57dada=this[_0x3ebd10(0x213)](_0x13b84c,null);if(!lodash[_0x3ebd10(0x204)](_0x57dada))return await _0x3db601(_0x57dada);}},'only':{'value':function(_0x8461ed){const _0x1a6208=_0x197969,_0xe62bb1={};for(let _0x3aa6ef=0x0;_0x3aa6ef<_0x8461ed[_0x1a6208(0x24e)];_0x3aa6ef++){lodash['isArray'](_0x8461ed[_0x3aa6ef])&&_0x8461ed[_0x3aa6ef][_0x1a6208(0x24e)]>0x0&&lodash[_0x1a6208(0x1f4)](_0x8461ed[_0x3aa6ef][0x0])&&(_0xe62bb1[_0x8461ed[_0x3aa6ef][0x0]]=this[_0x1a6208(0x213)](_0x8461ed[_0x3aa6ef][0x0],_0x8461ed[_0x3aa6ef][_0x1a6208(0x24e)]>0x1?_0x8461ed[_0x3aa6ef][0x1]:null));}return _0xe62bb1;}},'koasend':{'value':async function(_0x9ceafa,_0x2b3d45){const _0x49ead9=_0x197969;if(_0x9ceafa&&!fs[_0x49ead9(0x1f7)](_0x9ceafa)&&!fs[_0x49ead9(0x1f7)](this[_0x49ead9(0x1df)][_0x49ead9(0x25e)]()+'/'+_0x9ceafa))return _0x49ead9(0x21e);return _0x9ceafa=fs[_0x49ead9(0x1f7)](_0x9ceafa)?_0x9ceafa:this['app'][_0x49ead9(0x25e)]()+'/'+_0x9ceafa,this[_0x49ead9(0x24f)](_0x2b3d45||_0x9ceafa),await koasend(this,_0x9ceafa);}}});});}async[a2_0x9cf8d2(0x21f)](){const _0x405fb8=a2_0x9cf8d2;var _0x25ca2b,_0xf84f44;if(fs[_0x405fb8(0x1f7)](this['app'][_0x405fb8(0x210)]()+_0x405fb8(0x23e))&&fs['statSync'](this[_0x405fb8(0x1df)][_0x405fb8(0x210)]()+_0x405fb8(0x23e))['isDirectory']()){const _0xd65e18=this[_0x405fb8(0x22f)][_0x405fb8(0x263)](),_0x50d223=((_0x25ca2b=_0xd65e18===null||_0xd65e18===void 0x0?void 0x0:_0xd65e18[_0x405fb8(0x244)])===null||_0x25ca2b===void 0x0?void 0x0:_0x25ca2b['clients'])||{};for(const _0x377d12 of fs[_0x405fb8(0x217)](this[_0x405fb8(0x1df)]['getBaseDir']()+_0x405fb8(0x23e))){if(!fs[_0x405fb8(0x218)](this[_0x405fb8(0x1df)][_0x405fb8(0x210)]()+_0x405fb8(0x23a)+_0x377d12)[_0x405fb8(0x1dd)]())continue;if(_0x50d223===null||_0x50d223===void 0x0?void 0x0:_0x50d223[_0x377d12])continue;_0x50d223[_0x377d12]=Object['assign']({},((_0xf84f44=_0xd65e18===null||_0xd65e18===void 0x0?void 0x0:_0xd65e18[_0x405fb8(0x244)])===null||_0xf84f44===void 0x0?void 0x0:_0xf84f44[_0x405fb8(0x1cf)])||{'maxSize':'1m','dir':this['app'][_0x405fb8(0x25e)]()+_0x405fb8(0x209)},{'enableJSON':!![],'enableConsole':this[_0x405fb8(0x205)]['isDevelopmentEnvironment'](),'fileLogName':_0x377d12+_0x405fb8(0x1ca),'dir':this[_0x405fb8(0x1df)]['getAppDir']()+_0x405fb8(0x201)+_0x377d12});}Object[_0x405fb8(0x23b)](_0x50d223)[_0x405fb8(0x24e)]>0x0&&(!_0xd65e18[_0x405fb8(0x244)]&&(_0xd65e18['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x405fb8(0x1df)][_0x405fb8(0x25e)]()+_0x405fb8(0x209)}}),_0xd65e18[_0x405fb8(0x244)][_0x405fb8(0x25d)]=_0x50d223),this[_0x405fb8(0x22f)][_0x405fb8(0x222)](_0xd65e18);}}async[a2_0x9cf8d2(0x1da)](){const _0x58761a=a2_0x9cf8d2;var _0x33cc73,_0x41e0fd,_0x3ed72e,_0x29dbc6,_0x40f0c0,_0x302d33;const _0x2863bb=this['config'][_0x58761a(0x263)]();((_0x41e0fd=(_0x33cc73=_0x2863bb===null||_0x2863bb===void 0x0?void 0x0:_0x2863bb['anncicapi'])===null||_0x33cc73===void 0x0?void 0x0:_0x33cc73['devices'])===null||_0x41e0fd===void 0x0?void 0x0:_0x41e0fd[_0x58761a(0x266)])&&Object[_0x58761a(0x23b)](_0x2863bb[_0x58761a(0x1ea)][_0x58761a(0x1fa)])['length']>0x1&&delete _0x2863bb[_0x58761a(0x1ea)]['devices']['DEFAULT'];if((_0x3ed72e=_0x2863bb===null||_0x2863bb===void 0x0?void 0x0:_0x2863bb[_0x58761a(0x265)])===null||_0x3ed72e===void 0x0?void 0x0:_0x3ed72e[_0x58761a(0x219)])for(const _0xf8b7c9 in _0x2863bb['staticFile'][_0x58761a(0x219)]){((_0x29dbc6=_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9])===null||_0x29dbc6===void 0x0?void 0x0:_0x29dbc6[_0x58761a(0x243)])&&typeof((_0x40f0c0=_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9])===null||_0x40f0c0===void 0x0?void 0x0:_0x40f0c0[_0x58761a(0x243)])==_0x58761a(0x252)&&!fs['existsSync'](_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9]['dir'])&&(fs[_0x58761a(0x1f2)](_0x2863bb[_0x58761a(0x265)][_0x58761a(0x219)][_0xf8b7c9][_0x58761a(0x243)],{'recursive':!![]}),console[_0x58761a(0x1d9)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2863bb[_0x58761a(0x265)]['dirs'][_0xf8b7c9][_0x58761a(0x243)]));}((_0x302d33=_0x2863bb===null||_0x2863bb===void 0x0?void 0x0:_0x2863bb[_0x58761a(0x229)])===null||_0x302d33===void 0x0?void 0x0:_0x302d33[_0x58761a(0x239)])&&!fs[_0x58761a(0x1f7)](_0x2863bb[_0x58761a(0x229)]['tmpdir'])&&(fs[_0x58761a(0x1f2)](_0x2863bb['upload']['tmpdir'],{'recursive':!![]}),console[_0x58761a(0x1d9)](_0x58761a(0x1fb)+_0x2863bb[_0x58761a(0x229)]['tmpdir'])),this[_0x58761a(0x22f)][_0x58761a(0x222)](_0x2863bb);}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x1df),void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),core_2[a2_0x9cf8d2(0x21d)])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x22f),void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x23d),void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),core_2[a2_0x9cf8d2(0x1e8)])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],a2_0x9cf8d2(0x207),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x9cf8d2(0x242),core_2[a2_0x9cf8d2(0x1ff)])],CustomConfiguration[a2_0x9cf8d2(0x1e1)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x9cf8d2(0x1d8)])(),__metadata(a2_0x9cf8d2(0x242),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x9cf8d2(0x253),void 0x0),exports[a2_0x9cf8d2(0x25b)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x9cf8d2(0x227)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x3504be=a3_0x43a8;(function(_0xa07d3b,_0xe24b4b){const _0x25662f=a3_0x43a8,_0x20b841=_0xa07d3b();while(!![]){try{const _0x30c5c2=-parseInt(_0x25662f(0x103))/0x1+-parseInt(_0x25662f(0x105))/0x2*(-parseInt(_0x25662f(0xd4))/0x3)+-parseInt(_0x25662f(0xd7))/0x4+parseInt(_0x25662f(0xcb))/0x5+-parseInt(_0x25662f(0xd9))/0x6+-parseInt(_0x25662f(0xfb))/0x7*(-parseInt(_0x25662f(0xde))/0x8)+parseInt(_0x25662f(0xe8))/0x9*(parseInt(_0x25662f(0x101))/0xa);if(_0x30c5c2===_0xe24b4b)break;else _0x20b841['push'](_0x20b841['shift']());}catch(_0x59a4bd){_0x20b841['push'](_0x20b841['shift']());}}}(a3_0x4a84,0x7c7b7));const a3_0x5a9602=(function(){let _0x1babb5=!![];return function(_0x5d99ec,_0xd93a9b){const _0x32157a=_0x1babb5?function(){if(_0xd93a9b){const _0x13a437=_0xd93a9b['apply'](_0x5d99ec,arguments);return _0xd93a9b=null,_0x13a437;}}:function(){};return _0x1babb5=![],_0x32157a;};}()),a3_0x4bbcaf=a3_0x5a9602(this,function(){const _0x131187=a3_0x43a8;return a3_0x4bbcaf[_0x131187(0xe1)]()[_0x131187(0xc3)](_0x131187(0xcc))[_0x131187(0xe1)]()[_0x131187(0xed)](a3_0x4bbcaf)[_0x131187(0xc3)](_0x131187(0xcc));});a3_0x4bbcaf();'use strict';Object[a3_0x3504be(0xd6)](exports,a3_0x3504be(0xf2),{'value':!![]}),exports['parseRoute']=exports[a3_0x3504be(0xe9)]=exports[a3_0x3504be(0xee)]=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a3_0x3504be(0xdb)),core_2=require(a3_0x3504be(0xdb)),action_1=require(a3_0x3504be(0xc6));function Action(_0x578d61,_0x4ba16d,_0x4fba1e={'middleware':[],'sensitive':!![]}){return _0x508af6=>{const _0x5e6256=a3_0x43a8;var _0x4a7aae;_0x4fba1e[_0x5e6256(0xdc)]=_0x4ba16d;const _0x275556=parseRoute(_0x578d61);if(_0x275556[_0x5e6256(0xf9)]){_0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e['prefix']?'/'+_0x275556[_0x5e6256(0xf9)]+'/'+_0x4fba1e[_0x5e6256(0xf8)]:'/'+_0x275556[_0x5e6256(0xec)];_0x275556[_0x5e6256(0xf8)]&&(_0x4fba1e[_0x5e6256(0xf8)]='/'+_0x275556['prefix']+'/'+_0x4fba1e[_0x5e6256(0xf8)]);if(fs['existsSync'](_0x275556[_0x5e6256(0xd1)]+_0x5e6256(0xef)+_0x275556[_0x5e6256(0xf9)]+_0x5e6256(0xfe)+(lodash[_0x5e6256(0xc8)](_0x275556[_0x5e6256(0x106)],'ts')?'ts':'js'))){const _0x4dde47=include(_0x275556[_0x5e6256(0xd1)]+_0x5e6256(0xef)+_0x275556[_0x5e6256(0xf9)]+_0x5e6256(0xfe)+(lodash[_0x5e6256(0xc8)](_0x275556[_0x5e6256(0x106)],'ts')?'ts':'js'));if(lodash[_0x5e6256(0xf3)](_0x4dde47[_0x5e6256(0x102)])&&_0x4dde47[_0x5e6256(0x102)]['length']>0x0)for(let _0x34c627 in _0x4dde47['middleware']){if(((_0x4a7aae=_0x4dde47===null||_0x4dde47===void 0x0?void 0x0:_0x4dde47[_0x5e6256(0x109)])===null||_0x4a7aae===void 0x0?void 0x0:_0x4a7aae['length'])>0x0&&_0x4dde47[_0x5e6256(0x109)][_0x5e6256(0xf5)](_0x4dde47['middleware'][_0x34c627])!=-0x1)continue;_0x4fba1e['middleware']['push'](_0x4dde47[_0x5e6256(0x102)][_0x34c627]);}const _0x518c92=(0x0,core_1[_0x5e6256(0xc9)])(action_1['APPSCONFIG_KEY'],action_1[_0x5e6256(0xc5)])||{};_0x518c92[''+_0x275556[_0x5e6256(0xf9)]]=_0x4dde47,(0x0,core_1[_0x5e6256(0xe4)])(action_1[_0x5e6256(0xd2)],_0x518c92,action_1['AppsConfigTmp']);}_0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e[_0x5e6256(0xf8)][_0x5e6256(0xc4)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x508af6),(0x0,core_1[_0x5e6256(0xd8)])(_0x4fba1e[_0x5e6256(0xf8)],_0x4fba1e)(_0x508af6),(0x0,core_1['saveClassMetadata'])(action_1[_0x5e6256(0xc0)],{'prefix':_0x4fba1e['prefix'],'pprefix':_0x275556[_0x5e6256(0xf8)],'module':_0x275556['module'],'filepath':_0x275556['filepath'],'routerOptions':_0x4fba1e},_0x508af6);}else _0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e[_0x5e6256(0xf8)]?'/'+_0x4fba1e[_0x5e6256(0xf8)]:'/'+_0x275556['route'],_0x275556[_0x5e6256(0xf8)]&&(_0x4fba1e[_0x5e6256(0xf8)]='/'+_0x275556['prefix']+'/'+_0x4fba1e['prefix']),_0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e[_0x5e6256(0xf8)][_0x5e6256(0xc4)]()[_0x5e6256(0x107)](/\/{2,}/g,'/'),(0x0,core_1[_0x5e6256(0xc2)])(action_1[_0x5e6256(0xc0)],_0x508af6),(0x0,core_1[_0x5e6256(0xd8)])(_0x4fba1e[_0x5e6256(0xf8)],_0x4fba1e)(_0x508af6),(0x0,core_1[_0x5e6256(0xe4)])(action_1[_0x5e6256(0xc0)],{'prefix':_0x4fba1e[_0x5e6256(0xf8)],'module':_0x275556['module'],'pprefix':_0x275556[_0x5e6256(0xf8)],'filepath':_0x275556[_0x5e6256(0x106)],'routerOptions':_0x4fba1e},_0x508af6);};}exports[a3_0x3504be(0xee)]=Action,Action[a3_0x3504be(0xfa)]=function(_0x2da35b,_0x451d1d='/',_0x3beb54={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x26c8b9,_0x252cbd,_0x596c01)=>{ActionApi(_0x2da35b,'get',_0x451d1d,_0x3beb54)(_0x26c8b9,_0x252cbd,_0x596c01);};},Action['post']=function(_0x51bf2d,_0x1fb2c5='/',_0x38605a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x501da1,_0x2455c6,_0x44641c)=>{const _0x22f486=a3_0x43a8;ActionApi(_0x51bf2d,_0x22f486(0xc7),_0x1fb2c5,_0x38605a)(_0x501da1,_0x2455c6,_0x44641c);};};function ActionApi(_0x180392,_0x5b0635=a3_0x3504be(0xfa),_0x3bbecf='/',_0x238031={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xb25587,_0x356bb3,_0x510d81)=>{const _0x5e1270=a3_0x43a8;var _0x3d08c7,_0x20227f,_0x217923;!_0x238031['middleware']&&(_0x238031[_0x5e1270(0x102)]=[]);!((_0x3d08c7=_0x238031===null||_0x238031===void 0x0?void 0x0:_0x238031[_0x5e1270(0xf1)])===null||_0x3d08c7===void 0x0?void 0x0:_0x3d08c7[_0x5e1270(0xff)])&&(_0x238031[_0x5e1270(0xf1)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5e1270(0xd0)}});if(!_0x3bbecf)_0x3bbecf='/';else typeof _0x3bbecf=='string'&&(!_0x3bbecf[_0x5e1270(0xeb)]('/')&&!_0x3bbecf[_0x5e1270(0xeb)]('-')&&(_0x3bbecf='/'+_0x3bbecf));typeof _0x238031[_0x5e1270(0xc1)]==_0x5e1270(0xca)&&(_0x238031[_0x5e1270(0xc1)]=!![]);if(((_0x20227f=_0x238031===null||_0x238031===void 0x0?void 0x0:_0x238031[_0x5e1270(0x102)])===null||_0x20227f===void 0x0?void 0x0:_0x20227f['length'])>0x0&&((_0x217923=_0x238031===null||_0x238031===void 0x0?void 0x0:_0x238031[_0x5e1270(0x109)])===null||_0x217923===void 0x0?void 0x0:_0x217923[_0x5e1270(0xea)])>0x0)for(let _0x1472e9 in _0x238031[_0x5e1270(0x102)]){_0x238031[_0x5e1270(0x109)][_0x5e1270(0xf5)](_0x238031['middleware'][_0x1472e9])!==-0x1&&(_0x238031[_0x5e1270(0x102)][_0x1472e9]=null);}_0x238031['routerName']=_0x180392,(0x0,validator_1['Validator'])(_0x238031['validate'])(_0xb25587,_0x356bb3,_0x510d81),(0x0,core_2[_0x5e1270(0xcd)])(Object[_0x5e1270(0xe6)](_0x238031,{'path':_0x3bbecf,'requestMethod':(_0x5b0635||_0x5e1270(0xfa))[_0x5e1270(0xc4)]()}))(_0xb25587,_0x356bb3,_0x510d81),(0x0,core_2[_0x5e1270(0xda)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3bbecf,'method':_0x356bb3,'apimit':_0x238031[_0x5e1270(0xc1)],'intercept':_0x238031[_0x5e1270(0xdf)],'routerName':_0x238031[_0x5e1270(0xe2)],'description':_0x238031[_0x5e1270(0x108)],'middleware':(_0x238031['middleware']||[])[_0x5e1270(0xfd)](_0xe0b565=>!!_0xe0b565),'requestMethod':(_0x5b0635||_0x5e1270(0xfa))['toLowerCase']()},_0xb25587),(0x0,core_2[_0x5e1270(0xe0)])(action_1[_0x5e1270(0xf0)],{'path':_0x3bbecf,'method':_0x356bb3,'apimit':_0x238031['apimit'],'intercept':_0x238031['intercept'],'routerName':_0x238031[_0x5e1270(0xe2)],'description':_0x238031['description'],'middleware':(_0x238031[_0x5e1270(0x102)]||[])['filter'](_0x37409f=>!!_0x37409f),'requestMethod':(_0x5b0635||_0x5e1270(0xfa))[_0x5e1270(0xc4)]()})(_0xb25587,_0x356bb3,_0x510d81);};}function a3_0x4a84(){const _0x140517=['22408SsTDBy','intercept','createCustomMethodDecorator','toString','routerName','trim','saveClassMetadata','split','assign','substring','63PsypmM','ActionApi','length','startsWith','route','constructor','Action','/apps/','ACTION_ROUTE_KEY','validate','__esModule','isArray','/controller/','indexOf','\x20文件请放在apps/','basic/controller/','prefix','module','get','567ZTcoba','cwd','filter','/config.','validationOptions','splice','510220KEDRxq','middleware','58100NxSEou','join','2VxtkOp','filepath','replace','description','middlewareIgnore','ACTION_KEY','apimit','saveModule','search','toLowerCase','AppsConfigTmp','../types/action','post','endsWith','getClassMetadata','undefined','3235280MDZrlw','(((.+)+)+)+$','RequestMapping','apps/','-controller','string','rootpath','APPSCONFIG_KEY','match','182319KTJJEe','app/controller/','defineProperty','700644mbhdqQ','Controller','3292344CKnxFT','attachClassMetadata','@midwayjs/core','tagName','-action'];a3_0x4a84=function(){return _0x140517;};return a3_0x4a84();}function a3_0x43a8(_0x353a78,_0x51f2d1){const _0x181945=a3_0x4a84();return a3_0x43a8=function(_0x4bbcaf,_0x5a9602){_0x4bbcaf=_0x4bbcaf-0xc0;let _0x4a84a7=_0x181945[_0x4bbcaf];return _0x4a84a7;},a3_0x43a8(_0x353a78,_0x51f2d1);}exports[a3_0x3504be(0xe9)]=ActionApi;function parseRoute(_0x461b56){const _0x3c6760=a3_0x3504be;_0x461b56=_0x461b56[_0x3c6760(0x107)](/(\\|\/)/g,'/');const _0x145d75=process[_0x3c6760(0xfc)]()[_0x3c6760(0x107)](/(\\|\/)/g,'/'),_0x230475=_0x461b56[_0x3c6760(0xe7)](0x0,_0x145d75[_0x3c6760(0xea)]+_0x461b56['substring'](_0x145d75[_0x3c6760(0xea)]+0x1)[_0x3c6760(0xf5)]('/')+0x1),_0x5f3fbf=_0x461b56[_0x3c6760(0xe7)](_0x230475[_0x3c6760(0xea)]+0x1)[_0x3c6760(0x107)](/(\\|\/)/g,'/'),_0x14cf40={'route':'','prefix':![],'module':![],'rootpath':_0x230475,'filepath':_0x5f3fbf};if(_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xd5))||_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xf7))){const _0x5d0fc5=_0x5f3fbf['substring']((_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xd5))?_0x3c6760(0xd5):_0x3c6760(0xf7))[_0x3c6760(0xea)])['split']('/')['filter'](_0x56f6eb=>_0x56f6eb&&_0x56f6eb[_0x3c6760(0xe3)]());return _0x5d0fc5[_0x3c6760(0xea)]>0x1&&(_0x14cf40['prefix']=_0x5d0fc5[0x0][_0x3c6760(0xc4)](),_0x5d0fc5[_0x3c6760(0x100)](0x0,0x1)),_0x14cf40[_0x3c6760(0xec)]=('/'+_0x5d0fc5[_0x3c6760(0x104)]('/'))[_0x3c6760(0x107)](/(\.ts|\.js)$/,'')[_0x3c6760(0x107)](/\/{2,}/g,'/')[_0x3c6760(0xd3)](/[\/|A-Z]*[^A-Z]+/g)[_0x3c6760(0x104)]('-')[_0x3c6760(0xc4)]()[_0x3c6760(0x107)](/\/\-/g,'/'),_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xc8)](_0x3c6760(0xdd))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xe7)](0x0,_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xea)]-0x7)),_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xc8)](_0x3c6760(0xcf))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xe7)](0x0,_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xea)]-0xb)),_0x14cf40;}else{if(_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xce))){const _0x955fed=_0x5f3fbf[_0x3c6760(0xe7)](0x0,_0x5f3fbf[_0x3c6760(0xf5)](_0x3c6760(0xef))+0x5),_0xf0185a=_0x5f3fbf[_0x3c6760(0xe7)](_0x955fed[_0x3c6760(0xea)]+0x1)[_0x3c6760(0x107)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xce)+_0xf0185a+'/controller/')){const _0x374cdf=_0x5f3fbf[_0x3c6760(0xe7)]((_0x955fed+'/'+_0xf0185a+_0x3c6760(0xf4))[_0x3c6760(0xea)])[_0x3c6760(0xe5)]('/')[_0x3c6760(0xfd)](_0x1e8ab7=>_0x1e8ab7&&_0x1e8ab7[_0x3c6760(0xe3)]());return _0x374cdf[_0x3c6760(0xea)]>0x1&&(_0x14cf40[_0x3c6760(0xf8)]=_0x374cdf[0x0][_0x3c6760(0xc4)](),_0x374cdf['splice'](0x0,0x1)),_0x14cf40['module']=_0xf0185a,_0x14cf40[_0x3c6760(0xec)]=('/'+_0xf0185a+'/'+_0x374cdf[_0x3c6760(0x104)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x3c6760(0xd3)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x3c6760(0x107)](/\/\-/g,'/'),_0x14cf40[_0x3c6760(0xec)]['endsWith'](_0x3c6760(0xdd))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xe7)](0x0,_0x14cf40['route'][_0x3c6760(0xea)]-0x7)),_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xc8)](_0x3c6760(0xcf))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)]['substring'](0x0,_0x14cf40[_0x3c6760(0xec)]['length']-0xb)),_0x14cf40;}throw new Error(_0x5f3fbf+_0x3c6760(0xf6)+_0xf0185a+'/controller/文件下');}}throw new Error(_0x5f3fbf+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
1
|
+
const a3_0x262986=a3_0x3bf4;(function(_0x5afec0,_0x280a8f){const _0x3b379d=a3_0x3bf4,_0x164c35=_0x5afec0();while(!![]){try{const _0x529683=-parseInt(_0x3b379d(0x1a1))/0x1+-parseInt(_0x3b379d(0x1b4))/0x2*(-parseInt(_0x3b379d(0x199))/0x3)+parseInt(_0x3b379d(0x187))/0x4*(-parseInt(_0x3b379d(0x19e))/0x5)+-parseInt(_0x3b379d(0x173))/0x6*(-parseInt(_0x3b379d(0x172))/0x7)+-parseInt(_0x3b379d(0x1a7))/0x8+parseInt(_0x3b379d(0x1b0))/0x9*(parseInt(_0x3b379d(0x1ae))/0xa)+parseInt(_0x3b379d(0x17c))/0xb;if(_0x529683===_0x280a8f)break;else _0x164c35['push'](_0x164c35['shift']());}catch(_0xffabde){_0x164c35['push'](_0x164c35['shift']());}}}(a3_0x2d65,0x1b240));function a3_0x2d65(){const _0x30f8d8=['prefix','165FyJYzQ','tagName','rootpath','193854zIocRS','ACTION_KEY','join','push','/config.','intercept','1061848IdncPh','createCustomMethodDecorator','validationOptions','app/controller/','@anncic-api/validator','(((.+)+)+)+$','module','510HIIScn','-action','24201qEVLoW','splice','__esModule','@midwayjs/core','2OVibUr','../types/action','post','filepath','middleware','apps/','string','basic/controller/','ActionApi','Controller','validate','AppsConfigTmp','6076KTBaSx','24gXupfm','middlewareIgnore','trim','/controller/','\x20文件请放在apps/','saveModule','defineProperty','saveClassMetadata','Action','1765511JgLuOb','match','indexOf','ACTION_ROUTE_KEY','routerName','/apps/','toString','description','undefined','isArray','constructor','7496bYeeEv','-controller','split','get','substring','parseRoute','existsSync','APPSCONFIG_KEY','search','apimit','replace','attachClassMetadata','RequestMapping','route','startsWith','assign','endsWith','filter','595449xpidOP','toLowerCase','length','Validator'];a3_0x2d65=function(){return _0x30f8d8;};return a3_0x2d65();}const a3_0x4b6812=(function(){let _0x1d83be=!![];return function(_0x1a20a8,_0x3b4b92){const _0x393613=_0x1d83be?function(){if(_0x3b4b92){const _0x108612=_0x3b4b92['apply'](_0x1a20a8,arguments);return _0x3b4b92=null,_0x108612;}}:function(){};return _0x1d83be=![],_0x393613;};}()),a3_0x1139cd=a3_0x4b6812(this,function(){const _0x5519a6=a3_0x3bf4;return a3_0x1139cd[_0x5519a6(0x182)]()['search'](_0x5519a6(0x1ac))[_0x5519a6(0x182)]()[_0x5519a6(0x186)](a3_0x1139cd)[_0x5519a6(0x18f)]('(((.+)+)+)+$');});a3_0x1139cd();'use strict';function a3_0x3bf4(_0x51bc5a,_0x231c00){const _0x3c6f4a=a3_0x2d65();return a3_0x3bf4=function(_0x1139cd,_0x4b6812){_0x1139cd=_0x1139cd-0x16b;let _0x2d6529=_0x3c6f4a[_0x1139cd];return _0x2d6529;},a3_0x3bf4(_0x51bc5a,_0x231c00);}Object[a3_0x262986(0x179)](exports,a3_0x262986(0x1b2),{'value':!![]}),exports[a3_0x262986(0x18c)]=exports[a3_0x262986(0x16e)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x262986(0x1ab)),core_1=require(a3_0x262986(0x1b3)),core_2=require('@midwayjs/core'),action_1=require(a3_0x262986(0x1b5));function Action(_0x260aea,_0x93e770,_0xf30f2d={'middleware':[],'sensitive':!![]}){return _0x4a9faf=>{const _0x19308e=a3_0x3bf4;var _0x573424;_0xf30f2d[_0x19308e(0x19f)]=_0x93e770;const _0x5cc465=parseRoute(_0x260aea);if(_0x5cc465['module']){_0xf30f2d['prefix']=_0xf30f2d[_0x19308e(0x19d)]?'/'+_0x5cc465['module']+'/'+_0xf30f2d[_0x19308e(0x19d)]:'/'+_0x5cc465[_0x19308e(0x194)];_0x5cc465[_0x19308e(0x19d)]&&(_0xf30f2d['prefix']='/'+_0x5cc465[_0x19308e(0x19d)]+'/'+_0xf30f2d[_0x19308e(0x19d)]);if(fs[_0x19308e(0x18d)](_0x5cc465[_0x19308e(0x1a0)]+'/apps/'+_0x5cc465[_0x19308e(0x1ad)]+_0x19308e(0x1a5)+(lodash[_0x19308e(0x197)](_0x5cc465[_0x19308e(0x1b7)],'ts')?'ts':'js'))){const _0x54cfb4=include(_0x5cc465['rootpath']+_0x19308e(0x181)+_0x5cc465['module']+_0x19308e(0x1a5)+(lodash[_0x19308e(0x197)](_0x5cc465[_0x19308e(0x1b7)],'ts')?'ts':'js'));if(lodash[_0x19308e(0x185)](_0x54cfb4[_0x19308e(0x1b8)])&&_0x54cfb4['middleware'][_0x19308e(0x19b)]>0x0)for(let _0x30093d in _0x54cfb4[_0x19308e(0x1b8)]){if(((_0x573424=_0x54cfb4===null||_0x54cfb4===void 0x0?void 0x0:_0x54cfb4[_0x19308e(0x174)])===null||_0x573424===void 0x0?void 0x0:_0x573424[_0x19308e(0x19b)])>0x0&&_0x54cfb4[_0x19308e(0x174)]['indexOf'](_0x54cfb4[_0x19308e(0x1b8)][_0x30093d])!=-0x1)continue;_0xf30f2d[_0x19308e(0x1b8)][_0x19308e(0x1a4)](_0x54cfb4[_0x19308e(0x1b8)][_0x30093d]);}const _0x2991cb=(0x0,core_1['getClassMetadata'])(action_1[_0x19308e(0x18e)],action_1['AppsConfigTmp'])||{};_0x2991cb[''+_0x5cc465[_0x19308e(0x1ad)]]=_0x54cfb4,(0x0,core_1[_0x19308e(0x17a)])(action_1[_0x19308e(0x18e)],_0x2991cb,action_1[_0x19308e(0x171)]);}_0xf30f2d[_0x19308e(0x19d)]=_0xf30f2d['prefix'][_0x19308e(0x19a)]()[_0x19308e(0x191)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x19308e(0x1a2)],_0x4a9faf),(0x0,core_1[_0x19308e(0x16f)])(_0xf30f2d[_0x19308e(0x19d)],_0xf30f2d)(_0x4a9faf),(0x0,core_1[_0x19308e(0x17a)])(action_1[_0x19308e(0x1a2)],{'prefix':_0xf30f2d[_0x19308e(0x19d)],'pprefix':_0x5cc465[_0x19308e(0x19d)],'module':_0x5cc465[_0x19308e(0x1ad)],'filepath':_0x5cc465[_0x19308e(0x1b7)],'routerOptions':_0xf30f2d},_0x4a9faf);}else _0xf30f2d[_0x19308e(0x19d)]=_0xf30f2d['prefix']?'/'+_0xf30f2d['prefix']:'/'+_0x5cc465[_0x19308e(0x194)],_0x5cc465['prefix']&&(_0xf30f2d['prefix']='/'+_0x5cc465[_0x19308e(0x19d)]+'/'+_0xf30f2d[_0x19308e(0x19d)]),_0xf30f2d[_0x19308e(0x19d)]=_0xf30f2d[_0x19308e(0x19d)][_0x19308e(0x19a)]()[_0x19308e(0x191)](/\/{2,}/g,'/'),(0x0,core_1[_0x19308e(0x178)])(action_1['ACTION_KEY'],_0x4a9faf),(0x0,core_1[_0x19308e(0x16f)])(_0xf30f2d[_0x19308e(0x19d)],_0xf30f2d)(_0x4a9faf),(0x0,core_1[_0x19308e(0x17a)])(action_1[_0x19308e(0x1a2)],{'prefix':_0xf30f2d['prefix'],'module':_0x5cc465[_0x19308e(0x1ad)],'pprefix':_0x5cc465[_0x19308e(0x19d)],'filepath':_0x5cc465[_0x19308e(0x1b7)],'routerOptions':_0xf30f2d},_0x4a9faf);};}exports[a3_0x262986(0x17b)]=Action,Action[a3_0x262986(0x18a)]=function(_0x1ad3bf,_0x5c0656='/',_0x398988={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x141b81,_0x514919,_0x7c5f98)=>{ActionApi(_0x1ad3bf,'get',_0x5c0656,_0x398988)(_0x141b81,_0x514919,_0x7c5f98);};},Action['post']=function(_0x49b4f8,_0x4fbfe8='/',_0x99c128={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xe22499,_0x1d47f9,_0x2f7c31)=>{const _0x43b3e4=a3_0x3bf4;ActionApi(_0x49b4f8,_0x43b3e4(0x1b6),_0x4fbfe8,_0x99c128)(_0xe22499,_0x1d47f9,_0x2f7c31);};};function ActionApi(_0x33074a,_0x3daf44=a3_0x262986(0x18a),_0x1ac279='/',_0x217eb5={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1e6714,_0x5b40fe,_0x3e9d55)=>{const _0x26c1e0=a3_0x3bf4;var _0x42f170,_0x23173e,_0xf4f29b;!_0x217eb5[_0x26c1e0(0x1b8)]&&(_0x217eb5[_0x26c1e0(0x1b8)]=[]);!((_0x42f170=_0x217eb5===null||_0x217eb5===void 0x0?void 0x0:_0x217eb5[_0x26c1e0(0x170)])===null||_0x42f170===void 0x0?void 0x0:_0x42f170[_0x26c1e0(0x1a9)])&&(_0x217eb5[_0x26c1e0(0x170)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x1ac279)_0x1ac279='/';else typeof _0x1ac279==_0x26c1e0(0x16c)&&(!_0x1ac279[_0x26c1e0(0x195)]('/')&&!_0x1ac279[_0x26c1e0(0x195)]('-')&&(_0x1ac279='/'+_0x1ac279));typeof _0x217eb5['apimit']==_0x26c1e0(0x184)&&(_0x217eb5['apimit']=!![]);if(((_0x23173e=_0x217eb5===null||_0x217eb5===void 0x0?void 0x0:_0x217eb5['middleware'])===null||_0x23173e===void 0x0?void 0x0:_0x23173e[_0x26c1e0(0x19b)])>0x0&&((_0xf4f29b=_0x217eb5===null||_0x217eb5===void 0x0?void 0x0:_0x217eb5[_0x26c1e0(0x174)])===null||_0xf4f29b===void 0x0?void 0x0:_0xf4f29b['length'])>0x0)for(let _0x2e0483 in _0x217eb5[_0x26c1e0(0x1b8)]){_0x217eb5[_0x26c1e0(0x174)][_0x26c1e0(0x17e)](_0x217eb5['middleware'][_0x2e0483])!==-0x1&&(_0x217eb5[_0x26c1e0(0x1b8)][_0x2e0483]=null);}_0x217eb5[_0x26c1e0(0x180)]=_0x33074a,(0x0,validator_1[_0x26c1e0(0x19c)])(_0x217eb5['validate'])(_0x1e6714,_0x5b40fe,_0x3e9d55),(0x0,core_2[_0x26c1e0(0x193)])(Object[_0x26c1e0(0x196)](_0x217eb5,{'path':_0x1ac279,'requestMethod':(_0x3daf44||_0x26c1e0(0x18a))[_0x26c1e0(0x19a)]()}))(_0x1e6714,_0x5b40fe,_0x3e9d55),(0x0,core_2[_0x26c1e0(0x192)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x1ac279,'method':_0x5b40fe,'apimit':_0x217eb5['apimit'],'intercept':_0x217eb5[_0x26c1e0(0x1a6)],'routerName':_0x217eb5['routerName'],'description':_0x217eb5[_0x26c1e0(0x183)],'middleware':(_0x217eb5[_0x26c1e0(0x1b8)]||[])[_0x26c1e0(0x198)](_0x37e36f=>!!_0x37e36f),'requestMethod':(_0x3daf44||_0x26c1e0(0x18a))['toLowerCase']()},_0x1e6714),(0x0,core_2[_0x26c1e0(0x1a8)])(action_1[_0x26c1e0(0x17f)],{'path':_0x1ac279,'method':_0x5b40fe,'apimit':_0x217eb5[_0x26c1e0(0x190)],'intercept':_0x217eb5[_0x26c1e0(0x1a6)],'routerName':_0x217eb5['routerName'],'description':_0x217eb5[_0x26c1e0(0x183)],'middleware':(_0x217eb5[_0x26c1e0(0x1b8)]||[])[_0x26c1e0(0x198)](_0x364713=>!!_0x364713),'requestMethod':(_0x3daf44||'get')['toLowerCase']()})(_0x1e6714,_0x5b40fe,_0x3e9d55);};}exports[a3_0x262986(0x16e)]=ActionApi;function parseRoute(_0x207fb3){const _0x3bfa8c=a3_0x262986;_0x207fb3=_0x207fb3[_0x3bfa8c(0x191)](/(\\|\/)/g,'/');const _0x133c57=process['cwd']()['replace'](/(\\|\/)/g,'/'),_0x219445=_0x207fb3[_0x3bfa8c(0x18b)](0x0,_0x133c57[_0x3bfa8c(0x19b)]+_0x207fb3[_0x3bfa8c(0x18b)](_0x133c57['length']+0x1)[_0x3bfa8c(0x17e)]('/')+0x1),_0x48055e=_0x207fb3[_0x3bfa8c(0x18b)](_0x219445[_0x3bfa8c(0x19b)]+0x1)[_0x3bfa8c(0x191)](/(\\|\/)/g,'/'),_0x2f3a47={'route':'','prefix':![],'module':![],'rootpath':_0x219445,'filepath':_0x48055e};if(_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x1aa))||_0x48055e['startsWith'](_0x3bfa8c(0x16d))){const _0x496055=_0x48055e[_0x3bfa8c(0x18b)]((_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x1aa))?_0x3bfa8c(0x1aa):_0x3bfa8c(0x16d))['length'])[_0x3bfa8c(0x189)]('/')['filter'](_0x5beed9=>_0x5beed9&&_0x5beed9[_0x3bfa8c(0x175)]());return _0x496055['length']>0x1&&(_0x2f3a47[_0x3bfa8c(0x19d)]=_0x496055[0x0][_0x3bfa8c(0x19a)](),_0x496055[_0x3bfa8c(0x1b1)](0x0,0x1)),_0x2f3a47[_0x3bfa8c(0x194)]=('/'+_0x496055['join']('/'))[_0x3bfa8c(0x191)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x3bfa8c(0x17d)](/[\/|A-Z]*[^A-Z]+/g)[_0x3bfa8c(0x1a3)]('-')[_0x3bfa8c(0x19a)]()[_0x3bfa8c(0x191)](/\/\-/g,'/'),_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x197)]('-action')&&(_0x2f3a47[_0x3bfa8c(0x194)]=_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x18b)](0x0,_0x2f3a47['route'][_0x3bfa8c(0x19b)]-0x7)),_0x2f3a47['route']['endsWith'](_0x3bfa8c(0x188))&&(_0x2f3a47[_0x3bfa8c(0x194)]=_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x18b)](0x0,_0x2f3a47['route'][_0x3bfa8c(0x19b)]-0xb)),_0x2f3a47;}else{if(_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x16b))){const _0x456158=_0x48055e[_0x3bfa8c(0x18b)](0x0,_0x48055e[_0x3bfa8c(0x17e)](_0x3bfa8c(0x181))+0x5),_0x265054=_0x48055e[_0x3bfa8c(0x18b)](_0x456158['length']+0x1)[_0x3bfa8c(0x191)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x48055e[_0x3bfa8c(0x195)](_0x3bfa8c(0x16b)+_0x265054+_0x3bfa8c(0x176))){const _0x2fed12=_0x48055e[_0x3bfa8c(0x18b)]((_0x456158+'/'+_0x265054+_0x3bfa8c(0x176))[_0x3bfa8c(0x19b)])[_0x3bfa8c(0x189)]('/')['filter'](_0x25615e=>_0x25615e&&_0x25615e[_0x3bfa8c(0x175)]());return _0x2fed12['length']>0x1&&(_0x2f3a47[_0x3bfa8c(0x19d)]=_0x2fed12[0x0]['toLowerCase'](),_0x2fed12[_0x3bfa8c(0x1b1)](0x0,0x1)),_0x2f3a47[_0x3bfa8c(0x1ad)]=_0x265054,_0x2f3a47['route']=('/'+_0x265054+'/'+_0x2fed12[_0x3bfa8c(0x1a3)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x3bfa8c(0x1a3)]('-')[_0x3bfa8c(0x19a)]()[_0x3bfa8c(0x191)](/\/\-/g,'/'),_0x2f3a47[_0x3bfa8c(0x194)]['endsWith'](_0x3bfa8c(0x1af))&&(_0x2f3a47[_0x3bfa8c(0x194)]=_0x2f3a47[_0x3bfa8c(0x194)]['substring'](0x0,_0x2f3a47[_0x3bfa8c(0x194)]['length']-0x7)),_0x2f3a47['route']['endsWith']('-controller')&&(_0x2f3a47['route']=_0x2f3a47[_0x3bfa8c(0x194)]['substring'](0x0,_0x2f3a47[_0x3bfa8c(0x194)][_0x3bfa8c(0x19b)]-0xb)),_0x2f3a47;}throw new Error(_0x48055e+_0x3bfa8c(0x177)+_0x265054+'/controller/文件下');}}throw new Error(_0x48055e+'\x20文件请放在app/controller/文件下');}exports[a3_0x262986(0x18c)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x35e54d=a4_0x3298;(function(_0x2576cf,_0x500cb8){const _0x4c9cb2=a4_0x3298,_0x4645d6=_0x2576cf();while(!![]){try{const _0x4bdec8=parseInt(_0x4c9cb2(0xa8))/0x1+parseInt(_0x4c9cb2(0xb3))/0x2+-parseInt(_0x4c9cb2(0xbd))/0x3+-parseInt(_0x4c9cb2(0xbc))/0x4+parseInt(_0x4c9cb2(0xb8))/0x5*(-parseInt(_0x4c9cb2(0xc2))/0x6)+parseInt(_0x4c9cb2(0xad))/0x7+parseInt(_0x4c9cb2(0xbf))/0x8*(parseInt(_0x4c9cb2(0xb5))/0x9);if(_0x4bdec8===_0x500cb8)break;else _0x4645d6['push'](_0x4645d6['shift']());}catch(_0x49ed4f){_0x4645d6['push'](_0x4645d6['shift']());}}}(a4_0x1d9d,0xcd6f4));const a4_0x14075a=(function(){let _0x39c246=!![];return function(_0x2accc4,_0x470c52){const _0x4affe9=_0x39c246?function(){if(_0x470c52){const _0x22d084=_0x470c52['apply'](_0x2accc4,arguments);return _0x470c52=null,_0x22d084;}}:function(){};return _0x39c246=![],_0x4affe9;};}()),a4_0x2d23af=a4_0x14075a(this,function(){const _0x10f402=a4_0x3298;return a4_0x2d23af[_0x10f402(0xb0)]()[_0x10f402(0xab)](_0x10f402(0xaa))['toString']()[_0x10f402(0xba)](a4_0x2d23af)[_0x10f402(0xab)](_0x10f402(0xaa));});function a4_0x3298(_0x1f51bf,_0x5d1f91){const _0x1f317e=a4_0x1d9d();return a4_0x3298=function(_0x2d23af,_0x14075a){_0x2d23af=_0x2d23af-0xa7;let _0x1d9d16=_0x1f317e[_0x2d23af];return _0x1d9d16;},a4_0x3298(_0x1f51bf,_0x5d1f91);}function a4_0x1d9d(){const _0xb2c6a0=['6973813PuUfKw','/apitest','MidwayEnvironmentService','toString','getAsync','getApplicationContext','827214iVPESU','apidoc','9018mKyctf','app','apitest','7791405fHBYFR','@midwayjs/core','constructor','value','6450496WhBZvb','3994506RIkKAR','REQUEST_OBJ_CTX_KEY','21784VGxTAH','RequestMapping','Apitest','6efVVQA','filepath','__esModule','1205555ZqGHiv','isDevelopmentEnvironment','(((.+)+)+)+$','search','../service/ApitestService'];a4_0x1d9d=function(){return _0xb2c6a0;};return a4_0x1d9d();}a4_0x2d23af();'use strict';Object['defineProperty'](exports,a4_0x35e54d(0xa7),{'value':!![]}),exports[a4_0x35e54d(0xc1)]=void 0x0;const core_1=require(a4_0x35e54d(0xb9)),ApitestService_1=require(a4_0x35e54d(0xac));function Apitest(_0x55fcdf=a4_0x35e54d(0xae),_0x4e6a85){return(_0x8f81d9,_0x335f60,_0x2aec37)=>{const _0x2d64d5=a4_0x3298;return(0x0,core_1[_0x2d64d5(0xc0)])({'path':_0x55fcdf,'requestMethod':'get'})(_0x8f81d9,_0x335f60,_0x2aec37),_0x2aec37[_0x2d64d5(0xbb)]=async function(..._0x39b915){const _0x2633ca=_0x2d64d5;var _0x5aedaa;const _0x287eef=(_0x5aedaa=this[core_1[_0x2633ca(0xbe)]])===null||_0x5aedaa===void 0x0?void 0x0:_0x5aedaa[_0x2633ca(0xb6)];if(_0x287eef&&_0x287eef['getConfig'](_0x2633ca(0xb7))){const _0x1508ac=await _0x287eef[_0x2633ca(0xb2)]()[_0x2633ca(0xb1)](ApitestService_1['ApitestService']),_0x322710=await _0x287eef[_0x2633ca(0xb2)]()[_0x2633ca(0xb1)](core_1[_0x2633ca(0xaf)]);return _0x322710[_0x2633ca(0xa9)]()&&(_0x4e6a85[_0x2633ca(0xc3)]=!![]),await _0x1508ac[_0x2633ca(0xb4)](_0x4e6a85);}return'';},_0x2aec37;};}exports[a4_0x35e54d(0xc1)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x3c28be=a5_0x5b3b;(function(_0x2f50a9,_0x28e69a){const _0x2eb2e4=a5_0x5b3b,_0x423a7b=_0x2f50a9();while(!![]){try{const _0x4bac6d=parseInt(_0x2eb2e4(0xd0))/0x1*(parseInt(_0x2eb2e4(0xdf))/0x2)+parseInt(_0x2eb2e4(0xd2))/0x3*(-parseInt(_0x2eb2e4(0xdb))/0x4)+parseInt(_0x2eb2e4(0xe8))/0x5+-parseInt(_0x2eb2e4(0xd3))/0x6+-parseInt(_0x2eb2e4(0xc7))/0x7*(parseInt(_0x2eb2e4(0xce))/0x8)+-parseInt(_0x2eb2e4(0xc8))/0x9*(-parseInt(_0x2eb2e4(0xd1))/0xa)+-parseInt(_0x2eb2e4(0xd4))/0xb*(-parseInt(_0x2eb2e4(0xe9))/0xc);if(_0x4bac6d===_0x28e69a)break;else _0x423a7b['push'](_0x423a7b['shift']());}catch(_0x5928e9){_0x423a7b['push'](_0x423a7b['shift']());}}}(a5_0x539b,0x315de));const a5_0x21c1c5=(function(){let _0x6c8e5b=!![];return function(_0x5affdf,_0x28599d){const _0x26c287=_0x6c8e5b?function(){const _0x28fae0=a5_0x5b3b;if(_0x28599d){const _0x15630f=_0x28599d[_0x28fae0(0xe0)](_0x5affdf,arguments);return _0x28599d=null,_0x15630f;}}:function(){};return _0x6c8e5b=![],_0x26c287;};}()),a5_0x1477a7=a5_0x21c1c5(this,function(){const _0x2ae5e9=a5_0x5b3b;return a5_0x1477a7[_0x2ae5e9(0xca)]()[_0x2ae5e9(0xd9)](_0x2ae5e9(0xe4))['toString']()[_0x2ae5e9(0xd5)](a5_0x1477a7)[_0x2ae5e9(0xd9)](_0x2ae5e9(0xe4));});a5_0x1477a7();'use strict';Object[a5_0x3c28be(0xdd)](exports,a5_0x3c28be(0xdc),{'value':!![]}),exports[a5_0x3c28be(0xcc)]=exports[a5_0x3c28be(0xe2)]=void 0x0;function a5_0x5b3b(_0x4e4ef0,_0x4359eb){const _0x141e58=a5_0x539b();return a5_0x5b3b=function(_0x1477a7,_0x21c1c5){_0x1477a7=_0x1477a7-0xc7;let _0x539bc3=_0x141e58[_0x1477a7];return _0x539bc3;},a5_0x5b3b(_0x4e4ef0,_0x4359eb);}const core_1=require(a5_0x3c28be(0xe3)),intercept_1=require(a5_0x3c28be(0xe5));function Intercept(_0x1e1d6f){return _0x20fdbc=>{const _0x13b5db=a5_0x5b3b,_0x4cdd06=(0x0,core_1[_0x13b5db(0xcf)])(intercept_1[_0x13b5db(0xc9)],intercept_1[_0x13b5db(0xcb)])||{};for(let _0x4877a8 of Array[_0x13b5db(0xe7)](_0x1e1d6f)?_0x1e1d6f:[_0x1e1d6f]){_0x4877a8=_0x4877a8[_0x13b5db(0xd7)]();!(_0x4cdd06===null||_0x4cdd06===void 0x0?void 0x0:_0x4cdd06[_0x4877a8])&&(_0x4cdd06[_0x4877a8]=[]);if(_0x4cdd06[_0x4877a8][_0x13b5db(0xd8)](_0x20fdbc))continue;_0x4cdd06[_0x4877a8][_0x13b5db(0xcd)](_0x20fdbc);}(0x0,core_1['Provide'])()(_0x20fdbc),(0x0,core_1[_0x13b5db(0xda)])(core_1[_0x13b5db(0xd6)][_0x13b5db(0xe1)])(_0x20fdbc),(0x0,core_1[_0x13b5db(0xe6)])(intercept_1[_0x13b5db(0xc9)],_0x4cdd06,intercept_1['InterceptTargetTmp']);};}exports[a5_0x3c28be(0xe2)]=Intercept;class IIntercept{async[a5_0x3c28be(0xde)](_0x22df47,_0xb57ca7,_0x3ff170){return!![];}}exports['IIntercept']=IIntercept;function a5_0x539b(){const _0x5e5ce9=['Singleton','Intercept','@midwayjs/core','(((.+)+)+)+$','../types/intercept','saveClassMetadata','isArray','665145rwelro','336RMUQOt','7ojuajS','8001OWzuFW','INTERCEPT_KEY','toString','InterceptTargetTmp','IIntercept','push','3202376YRcfGe','getClassMetadata','22CkGiak','3190MEeHMb','3MGzgrl','1999680UfacQE','168487mrurjq','constructor','ScopeEnum','toUpperCase','includes','search','Scope','492188oRmqtj','__esModule','defineProperty','match','19394AyYStI','apply'];a5_0x539b=function(){return _0x5e5ce9;};return a5_0x539b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x6dc9f2=a6_0x425b;(function(_0x58dc49,_0x5e4e5d){var _0x3eced4=a6_0x425b,_0x41bc58=_0x58dc49();while(!![]){try{var _0x5ba76d=parseInt(_0x3eced4(0xe8))/0x1*(-parseInt(_0x3eced4(0xe4))/0x2)+parseInt(_0x3eced4(0xfe))/0x3+-parseInt(_0x3eced4(0xf0))/0x4+-parseInt(_0x3eced4(0xfa))/0x5*(parseInt(_0x3eced4(0xdd))/0x6)+parseInt(_0x3eced4(0xec))/0x7+-parseInt(_0x3eced4(0xe6))/0x8*(parseInt(_0x3eced4(0xf8))/0x9)+parseInt(_0x3eced4(0xf7))/0xa;if(_0x5ba76d===_0x5e4e5d)break;else _0x41bc58['push'](_0x41bc58['shift']());}catch(_0xaa50b0){_0x41bc58['push'](_0x41bc58['shift']());}}}(a6_0x3b6b,0x495f0));var a6_0x5d0a08=(function(){var _0x3d7be7=!![];return function(_0x5a20d8,_0x3f70c2){var _0x2f85ea=_0x3d7be7?function(){var _0x118fc0=a6_0x425b;if(_0x3f70c2){var _0xc20f13=_0x3f70c2[_0x118fc0(0xf2)](_0x5a20d8,arguments);return _0x3f70c2=null,_0xc20f13;}}:function(){};return _0x3d7be7=![],_0x2f85ea;};}()),a6_0x28c435=a6_0x5d0a08(this,function(){var _0xe18cf8=a6_0x425b;return a6_0x28c435[_0xe18cf8(0xfb)]()[_0xe18cf8(0xf3)](_0xe18cf8(0xea))[_0xe18cf8(0xfb)]()[_0xe18cf8(0xde)](a6_0x28c435)['search'](_0xe18cf8(0xea));});a6_0x28c435();'use strict';function a6_0x425b(_0x494c8d,_0x2d3d0c){var _0x5d6f6e=a6_0x3b6b();return a6_0x425b=function(_0x28c435,_0x5d0a08){_0x28c435=_0x28c435-0xdc;var _0x3b6bb5=_0x5d6f6e[_0x28c435];return _0x3b6bb5;},a6_0x425b(_0x494c8d,_0x2d3d0c);}var __decorate=this&&this[a6_0x6dc9f2(0xed)]||function(_0x450fda,_0x2e9138,_0x57e104,_0x512986){var _0x3b4445=a6_0x6dc9f2,_0x11e944=arguments[_0x3b4445(0xe2)],_0x3acd55=_0x11e944<0x3?_0x2e9138:_0x512986===null?_0x512986=Object['getOwnPropertyDescriptor'](_0x2e9138,_0x57e104):_0x512986,_0x442ea7;if(typeof Reflect===_0x3b4445(0xfc)&&typeof Reflect[_0x3b4445(0xfd)]===_0x3b4445(0xe3))_0x3acd55=Reflect[_0x3b4445(0xfd)](_0x450fda,_0x2e9138,_0x57e104,_0x512986);else{for(var _0xe3cd6b=_0x450fda[_0x3b4445(0xe2)]-0x1;_0xe3cd6b>=0x0;_0xe3cd6b--)if(_0x442ea7=_0x450fda[_0xe3cd6b])_0x3acd55=(_0x11e944<0x3?_0x442ea7(_0x3acd55):_0x11e944>0x3?_0x442ea7(_0x2e9138,_0x57e104,_0x3acd55):_0x442ea7(_0x2e9138,_0x57e104))||_0x3acd55;}return _0x11e944>0x3&&_0x3acd55&&Object['defineProperty'](_0x2e9138,_0x57e104,_0x3acd55),_0x3acd55;},__metadata=this&&this['__metadata']||function(_0x1a1b54,_0x5e9d26){var _0x546d4b=a6_0x6dc9f2;if(typeof Reflect===_0x546d4b(0xfc)&&typeof Reflect['metadata']===_0x546d4b(0xe3))return Reflect[_0x546d4b(0xdc)](_0x1a1b54,_0x5e9d26);};Object[a6_0x6dc9f2(0xe1)](exports,a6_0x6dc9f2(0xf9),{'value':!![]}),exports[a6_0x6dc9f2(0xee)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x6dc9f2(0xee)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError[a6_0x6dc9f2(0xdf)]=0x18e74,ApiError[a6_0x6dc9f2(0xe0)]=0x18e75,ApiError[a6_0x6dc9f2(0xe7)]=0x18e76,__decorate([AnnErrorMsg(a6_0x6dc9f2(0xf6)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xeb),void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xef)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xf4)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xe9)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xdf),void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xe5)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xe0),void 0x0),__decorate([AnnErrorMsg(a6_0x6dc9f2(0xf5)),__metadata(a6_0x6dc9f2(0xf1),Object)],ApiError,a6_0x6dc9f2(0xe7),void 0x0);function a6_0x3b6b(){var _0x3d6274=['1806956uctTHq','design:type','apply','search','请使用正确的设备','登录超时,请重新登录','请求超时,请重试','11372530yCIwNa','3576078Putinh','__esModule','10GeadnL','toString','object','decorate','906300ujtTCu','metadata','123258sNJSPS','constructor','HEADERS_SIGNATURE','HEADERS_CHECKCODE','defineProperty','length','function','58AwRowG','验证失败,请重新登录','8PVlSjy','TIMEOUT_LOGINTIME','18089RmiqBO','signature验证失败','(((.+)+)+)+$','TIMEOUT','1931461PBMYoM','__decorate','ApiError','请求头信息不完整'];a6_0x3b6b=function(){return _0x3d6274;};return a6_0x3b6b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x425b(){const _0x55c049=['125676ePVENO','6ZrdJmX','constructor','@midwayjs/core','APPSCONFIG_KEY','search','70XACDHy','toString','AppsConfigTmp','(((.+)+)+)+$','48792490CKsDZI','9013655XFTBIl','get','3994155xvQxIx','getAppsConfig','29596yUlXJl','2494224UqnQeZ','40zfViDx','apply','3679380fzwRnB','__esModule','getClassMetadata'];a7_0x425b=function(){return _0x55c049;};return a7_0x425b();}const a7_0x18d4d0=a7_0x14c8;(function(_0x4454b7,_0x229abc){const _0x167be9=a7_0x14c8,_0x54c714=_0x4454b7();while(!![]){try{const _0x387f67=parseInt(_0x167be9(0xd4))/0x1*(-parseInt(_0x167be9(0xdd))/0x2)+-parseInt(_0x167be9(0xcb))/0x3+-parseInt(_0x167be9(0xce))/0x4+parseInt(_0x167be9(0xdb))/0x5+-parseInt(_0x167be9(0xcf))/0x6*(parseInt(_0x167be9(0xd9))/0x7)+parseInt(_0x167be9(0xc9))/0x8*(-parseInt(_0x167be9(0xde))/0x9)+parseInt(_0x167be9(0xd8))/0xa;if(_0x387f67===_0x229abc)break;else _0x54c714['push'](_0x54c714['shift']());}catch(_0x21b607){_0x54c714['push'](_0x54c714['shift']());}}}(a7_0x425b,0xad954));const a7_0x2932fd=(function(){let _0x58835e=!![];return function(_0x17f75b,_0x3d2e22){const _0x4521d4=_0x58835e?function(){const _0x483a8e=a7_0x14c8;if(_0x3d2e22){const _0x22fc55=_0x3d2e22[_0x483a8e(0xca)](_0x17f75b,arguments);return _0x3d2e22=null,_0x22fc55;}}:function(){};return _0x58835e=![],_0x4521d4;};}()),a7_0x3121c9=a7_0x2932fd(this,function(){const _0x607ffa=a7_0x14c8;return a7_0x3121c9['toString']()[_0x607ffa(0xd3)](_0x607ffa(0xd7))[_0x607ffa(0xd5)]()[_0x607ffa(0xd0)](a7_0x3121c9)[_0x607ffa(0xd3)](_0x607ffa(0xd7));});a7_0x3121c9();'use strict';function a7_0x14c8(_0x1b299f,_0x1d6bf4){const _0x34912d=a7_0x425b();return a7_0x14c8=function(_0x3121c9,_0x2932fd){_0x3121c9=_0x3121c9-0xc9;let _0x425b76=_0x34912d[_0x3121c9];return _0x425b76;},a7_0x14c8(_0x1b299f,_0x1d6bf4);}Object['defineProperty'](exports,a7_0x18d4d0(0xcc),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0x18d4d0(0xd1)),action_1=require('../types/action');function getAppsConfig(_0x33e826){const _0x521c41=a7_0x18d4d0,_0x29d603=(0x0,core_1[_0x521c41(0xcd)])(action_1[_0x521c41(0xd2)],action_1[_0x521c41(0xd6)])||{};return _0x33e826?lodash[_0x521c41(0xda)](_0x29d603,_0x33e826):_0x29d603;}exports[a7_0x18d4d0(0xdc)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x56dadf=a8_0x5df8;(function(_0x361a69,_0x4bff4a){const _0x5752fe=a8_0x5df8,_0x2f2fa3=_0x361a69();while(!![]){try{const _0x245fc8=-parseInt(_0x5752fe(0x11e))/0x1*(parseInt(_0x5752fe(0xd6))/0x2)+-parseInt(_0x5752fe(0x123))/0x3*(-parseInt(_0x5752fe(0xd7))/0x4)+-parseInt(_0x5752fe(0xe4))/0x5*(-parseInt(_0x5752fe(0xdd))/0x6)+parseInt(_0x5752fe(0xf2))/0x7*(-parseInt(_0x5752fe(0x135))/0x8)+parseInt(_0x5752fe(0x122))/0x9*(parseInt(_0x5752fe(0x11c))/0xa)+-parseInt(_0x5752fe(0xd8))/0xb*(parseInt(_0x5752fe(0x124))/0xc)+parseInt(_0x5752fe(0x125))/0xd*(-parseInt(_0x5752fe(0xe2))/0xe);if(_0x245fc8===_0x4bff4a)break;else _0x2f2fa3['push'](_0x2f2fa3['shift']());}catch(_0x10c8cb){_0x2f2fa3['push'](_0x2f2fa3['shift']());}}}(a8_0x5401,0x470da));const a8_0x5c241e=(function(){let _0x36e360=!![];return function(_0x3be15d,_0x5e377f){const _0x5115e2=_0x36e360?function(){const _0x232af6=a8_0x5df8;if(_0x5e377f){const _0x48b9ee=_0x5e377f[_0x232af6(0xd4)](_0x3be15d,arguments);return _0x5e377f=null,_0x48b9ee;}}:function(){};return _0x36e360=![],_0x5115e2;};}()),a8_0x44e6d7=a8_0x5c241e(this,function(){const _0x5d9021=a8_0x5df8;return a8_0x44e6d7[_0x5d9021(0x130)]()['search']('(((.+)+)+)+$')[_0x5d9021(0x130)]()[_0x5d9021(0x111)](a8_0x44e6d7)[_0x5d9021(0x12d)](_0x5d9021(0xff));});a8_0x44e6d7();function a8_0x5401(){const _0x20dd40=['endsWith','routerOptions','99CmlXPM','1100181yPJGCd','2669544xuLMbe','78eTjIam','ACTION_KEY','QUERY','/static/apitest','indexOf','flags.description','intercept','String','search','default','allow','toString','flags.label','name','INJECT_CUSTOM_PARAM','required','264664qGIMuA','只允许:[','prefix','getMethodParamTypes','module','WEB_ROUTER_PARAM_KEY','Number','method','apply','find','218XTViJN','4zCGHJE','11ePmmMP','@midwayjs/core','summary','length','concat','108iaVwgR','static/apitest','Boolean','HEADERS','propertyData','339234oEuhCI','description','91040ywqvPa','replace','keys','filepath','get','listModule','BODY','key','items','object','join','routes','file','array','35ViSzpl','__esModule','FILESTREAM','children','tagName','defineProperty','FIELDS','limit','noreq','rules','query','../types/action','requestMethod','(((.+)+)+)+$','header','pprefix','filter','request','routerName','describe','File','title','getRoutes','push','args','isArray','substring','startsWith','path','max','parameterIndex','constructor','type','getClassMetadata','iterator','FILESSTREAM','RouteParamTypes','metadata','RULES_KEY','route','min','function','291730bfxIDy','string','1753QQbAgS','split'];a8_0x5401=function(){return _0x20dd40;};return a8_0x5401();}'use strict';function a8_0x5df8(_0x369e16,_0x4e2e34){const _0x52fc86=a8_0x5401();return a8_0x5df8=function(_0x44e6d7,_0x5c241e){_0x44e6d7=_0x44e6d7-0xd2;let _0x54010e=_0x52fc86[_0x44e6d7];return _0x54010e;},a8_0x5df8(_0x369e16,_0x4e2e34);}Object[a8_0x56dadf(0xf7)](exports,a8_0x56dadf(0xf3),{'value':!![]}),exports[a8_0x56dadf(0x108)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x56dadf(0xd9)),core_2=require(a8_0x56dadf(0xd9)),core_3=require(a8_0x56dadf(0xd9)),action_1=require(a8_0x56dadf(0xfd));function getRoutes(_0x2f6aad={'prefix':'/','module':![]}){const _0x3b82e6=a8_0x56dadf;var _0x3b3633,_0x2e5cde;const _0x5aac55=(0x0,core_3[_0x3b82e6(0xe9)])(action_1[_0x3b82e6(0x126)]),_0x5f97ab={},_0x5a39c2=Array[_0x3b82e6(0x10b)](_0x2f6aad[_0x3b82e6(0x102)]||[])?_0x2f6aad[_0x3b82e6(0x102)]||[]:[_0x2f6aad[_0x3b82e6(0x102)]];_0x23c1b8:for(const _0x540714 of _0x5aac55){let _0x16a576=(0x0,core_3[_0x3b82e6(0x113)])(action_1[_0x3b82e6(0x126)],_0x540714),_0x5b8d48=(0x0,core_3[_0x3b82e6(0x113)])(action_1['ACTION_ROUTE_KEY'],_0x540714);if(_0x16a576&&_0x5b8d48){let _0x413a1a=_0x16a576[_0x3b82e6(0x137)],_0x1f645f={};if(_0x2f6aad[_0x3b82e6(0x139)]&&(0x0,lodash_1[_0x3b82e6(0xe8)])(_0x16a576,'module',![])!=_0x2f6aad[_0x3b82e6(0x139)])continue _0x23c1b8;else{if(_0x2f6aad[_0x3b82e6(0x139)]===![]&&!!(0x0,lodash_1[_0x3b82e6(0xe8)])(_0x16a576,_0x3b82e6(0x139),null))continue _0x23c1b8;}if(_0x2f6aad[_0x3b82e6(0x137)]&&!_0x413a1a[_0x3b82e6(0x10d)](_0x2f6aad[_0x3b82e6(0x137)]))continue _0x23c1b8;_0x413a1a!=='/'?(_0x1f645f['summary']=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x121)][_0x3b82e6(0xf6)])||(/^\//['test'](_0x413a1a)?_0x413a1a[_0x3b82e6(0x11f)]('/')[0x1]:_0x413a1a),_0x1f645f[_0x3b82e6(0xe3)]=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x121)]['description'])||_0x1f645f[_0x3b82e6(0xda)],_0x1f645f[_0x3b82e6(0xef)]=[]):(_0x1f645f[_0x3b82e6(0xda)]=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576['routerOptions'][_0x3b82e6(0xf6)])||_0x3b82e6(0x12e),_0x1f645f[_0x3b82e6(0xe3)]=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x121)][_0x3b82e6(0xe3)])||'',_0x1f645f[_0x3b82e6(0xef)]=[]);_0x2f6aad['filepath']&&(_0x1f645f['filepath']=_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0xe7)]);(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x101)])&&(_0x1f645f[_0x3b82e6(0x137)]=_0x16a576['pprefix']);(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x139)])&&(_0x1f645f['module']=_0x16a576[_0x3b82e6(0x139)]);let _0x36b767=(0x0,core_3['getClassMetadata'])(core_2[_0x3b82e6(0x133)],_0x540714)||{};if(typeof _0x5b8d48[Symbol[_0x3b82e6(0x114)]]===_0x3b82e6(0x11b))for(let _0x330736 of _0x5b8d48){if((_0x2f6aad===null||_0x2f6aad===void 0x0?void 0x0:_0x2f6aad[_0x3b82e6(0x12b)])&&!(_0x330736===null||_0x330736===void 0x0?void 0x0:_0x330736[_0x3b82e6(0x12b)]))continue;let _0x1b6dcd={};_0x1b6dcd['method']=_0x330736[_0x3b82e6(0xfe)],_0x1b6dcd[_0x3b82e6(0x119)]=(_0x413a1a+_0x330736[_0x3b82e6(0x10e)])[_0x3b82e6(0xe5)](/\/{2,}/g,'/'),_0x1b6dcd[_0x3b82e6(0xda)]=(_0x330736===null||_0x330736===void 0x0?void 0x0:_0x330736[_0x3b82e6(0x104)])||_0x1f645f[_0x3b82e6(0xda)]||_0x3b82e6(0x12e),_0x1b6dcd['description']=(_0x330736===null||_0x330736===void 0x0?void 0x0:_0x330736['description'])||'',_0x1b6dcd[_0x3b82e6(0x103)]=[];_0x1b6dcd['route'][_0x3b82e6(0x120)]('/')&&(_0x1b6dcd[_0x3b82e6(0x119)]=_0x1b6dcd[_0x3b82e6(0x119)][_0x3b82e6(0x10c)](0x0,_0x1b6dcd[_0x3b82e6(0x119)][_0x3b82e6(0xdb)]-0x1));if(!(0x0,lodash_1[_0x3b82e6(0x10d)])(_0x1b6dcd['route'],_0x3b82e6(0xde))&&!(0x0,lodash_1[_0x3b82e6(0x10d)])(_0x1b6dcd['route'],_0x3b82e6(0x128))&&_0x5a39c2['indexOf'](_0x1b6dcd[_0x3b82e6(0x119)])===-0x1){if(!(_0x2f6aad===null||_0x2f6aad===void 0x0?void 0x0:_0x2f6aad[_0x3b82e6(0xfa)])){let _0x1763fd=(0x0,core_3[_0x3b82e6(0x138)])(new _0x540714(),_0x330736[_0x3b82e6(0xd3)]);for(const _0x2f5d81 in _0x1763fd){let _0xa1f6e6=(_0x3b3633=_0x36b767[_0x330736[_0x3b82e6(0xd3)]])===null||_0x3b3633===void 0x0?void 0x0:_0x3b3633[_0x3b82e6(0xd5)](_0x55fe52=>_0x55fe52[_0x3b82e6(0x110)]==_0x2f5d81&&_0x55fe52[_0x3b82e6(0xeb)]===core_2[_0x3b82e6(0x13a)]&&(_0x55fe52===null||_0x55fe52===void 0x0?void 0x0:_0x55fe52[_0x3b82e6(0x117)]));if(_0xa1f6e6===null||_0xa1f6e6===void 0x0?void 0x0:_0xa1f6e6[_0x3b82e6(0x117)]){let _0x24d815=convertTypeToString(_0xa1f6e6[_0x3b82e6(0x117)]['type']||0x0);if([_0x3b82e6(0xfc),'body'][_0x3b82e6(0x129)](_0x24d815)!=-0x1&&_0xa1f6e6[_0x3b82e6(0x117)]['propertyData']['indexOf'](':')==-0x1&&!_0x1b6dcd['request'][_0x3b82e6(0xd5)](_0x446d11=>_0x446d11[_0x3b82e6(0xeb)]==_0xa1f6e6[_0x3b82e6(0x117)][_0x3b82e6(0xe1)]))_0x1b6dcd[_0x3b82e6(0x103)][_0x3b82e6(0x109)]({'key':_0xa1f6e6[_0x3b82e6(0x117)]['propertyData'],'title':_0xa1f6e6['metadata'][_0x3b82e6(0xe1)],'type':convertSchemaType(_0x1763fd[_0xa1f6e6[_0x3b82e6(0x110)]][_0x3b82e6(0x132)]),'required':![],'default':'','desc':''});else{if(_0x24d815==_0x3b82e6(0xf0)){let _0x2abf41=((_0x2e5cde=_0xa1f6e6===null||_0xa1f6e6===void 0x0?void 0x0:_0xa1f6e6[_0x3b82e6(0x117)])===null||_0x2e5cde===void 0x0?void 0x0:_0x2e5cde[_0x3b82e6(0xe1)])||'file';_0x2abf41[_0x3b82e6(0x129)](':')==-0x1&&!_0x1b6dcd[_0x3b82e6(0x103)]['find'](_0x3fadd9=>_0x3fadd9['key']==_0x2abf41&&_0x3fadd9[_0x3b82e6(0x112)]==_0x3b82e6(0xf0))&&_0x1b6dcd['request']['push']({'key':_0x2abf41,'title':'文件上传-'+_0x2abf41,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x4ec613=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x3b82e6(0x118)],_0x1763fd[_0x2f5d81]);_0x4ec613&&_0x1b6dcd[_0x3b82e6(0x103)][_0x3b82e6(0x109)](...getJoiRequest(_0x4ec613));}}}_0x1f645f['routes']['push'](_0x1b6dcd);}}if(_0x1f645f[_0x3b82e6(0xef)][_0x3b82e6(0xdb)]>0x0){let _0x1cf04b=_0x5f97ab[_0x413a1a];_0x1cf04b?(_0x1cf04b['summary']!=_0x1f645f[_0x3b82e6(0xda)]&&(_0x1cf04b[_0x3b82e6(0xda)]=_0x1cf04b[_0x3b82e6(0xda)]+','+_0x1f645f['summary']),_0x1cf04b[_0x3b82e6(0xe3)]!=_0x1f645f[_0x3b82e6(0xe3)]&&(_0x1cf04b[_0x3b82e6(0xe3)]=_0x1cf04b['description']+','+_0x1f645f['description']),_0x1cf04b[_0x3b82e6(0xef)]=_0x1cf04b[_0x3b82e6(0xef)][_0x3b82e6(0xdc)](_0x1f645f[_0x3b82e6(0xef)]),_0x5f97ab[_0x413a1a]=_0x1cf04b):_0x5f97ab[_0x413a1a]=_0x1f645f;}}}return _0x5f97ab;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x83e93){const _0x548143=a8_0x56dadf,_0x1f86ec=[];for(let _0x44874b in _0x83e93){const _0x427e40={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x360faf=typeof _0x83e93[_0x44874b][_0x548143(0x105)]==_0x548143(0x11b)?_0x83e93[_0x44874b]['describe']():_0x83e93[_0x44874b];_0x427e40['key']=_0x44874b,_0x427e40[_0x548143(0x112)]=_0x360faf[_0x548143(0x112)],_0x427e40[_0x548143(0x107)]=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,_0x548143(0x131),_0x44874b),_0x427e40[_0x548143(0x12e)]=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,'flags.default',''),_0x427e40['required']=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,'flags.presence','')==_0x548143(0x134),_0x427e40[_0x548143(0xe3)]=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,_0x548143(0x12a),'');if(_0x360faf[_0x548143(0x112)]==_0x548143(0xed))_0x427e40[_0x548143(0xf5)]=getJoiRequest(_0x360faf[_0x548143(0xe6)]);else{if(_0x360faf['type']==_0x548143(0xf1)&&_0x360faf[_0x548143(0xec)]&&Array[_0x548143(0x10b)](_0x360faf[_0x548143(0xec)])&&_0x360faf['items'][0x0]){}}_0x360faf[_0x548143(0x12f)]&&Array[_0x548143(0x10b)](_0x360faf['allow'])&&_0x360faf[_0x548143(0x12f)][_0x548143(0xdb)]>0x0&&(_0x427e40[_0x548143(0xe3)]=_0x548143(0x136)+_0x360faf[_0x548143(0x12f)][_0x548143(0xee)](',')+'];'+_0x427e40[_0x548143(0xe3)]);if(_0x427e40['key']&&_0x427e40[_0x548143(0x112)]){const _0x25e8fe={};for(const _0x3d16bb of _0x360faf['rules']||[]){if(_0x3d16bb['name']===_0x548143(0x11a)&&_0x3d16bb[_0x548143(0x10a)])_0x25e8fe[_0x548143(0x11a)]=_0x3d16bb['args'][_0x548143(0xf9)];else _0x3d16bb[_0x548143(0x132)]===_0x548143(0x10f)&&(_0x25e8fe[_0x548143(0x10f)]=_0x3d16bb[_0x548143(0x10a)][_0x548143(0xf9)]);}_0x427e40[_0x548143(0xfb)]=_0x25e8fe;}_0x427e40[_0x548143(0xeb)]&&_0x427e40[_0x548143(0x107)]&&_0x1f86ec[_0x548143(0x109)](_0x427e40);}return _0x1f86ec;}function convertSchemaType(_0x4394a1){const _0x55b23b=a8_0x56dadf;switch(_0x4394a1){case'Object':return _0x55b23b(0xed);case _0x55b23b(0xdf):return'boolean';case _0x55b23b(0xd2):return'number';case _0x55b23b(0x12c):return _0x55b23b(0x11d);case _0x55b23b(0x106):return'file';default:return _0x55b23b(0x11d);}}function convertTypeToString(_0x5f9e52){const _0x4e9517=a8_0x56dadf;switch(_0x5f9e52){case core_1['RouteParamTypes'][_0x4e9517(0xe0)]:return _0x4e9517(0x100);case core_1[_0x4e9517(0x116)][_0x4e9517(0x127)]:return _0x4e9517(0xfc);case core_1['RouteParamTypes']['PARAM']:return _0x4e9517(0x10e);case core_1[_0x4e9517(0x116)][_0x4e9517(0xea)]:return'body';case core_1['RouteParamTypes'][_0x4e9517(0xf8)]:case core_1[_0x4e9517(0x116)][_0x4e9517(0x115)]:case core_1[_0x4e9517(0x116)][_0x4e9517(0xf4)]:return _0x4e9517(0xf0);default:return'header';}}
|
|
1
|
+
function a8_0x24db(){const _0x20cba1=['File','args','36kdkFSY','filepath','endsWith','2529TbhaAq','BODY','ACTION_KEY','只允许:[','routes','21375651rFiQNb','describe','name','metadata','getRoutes','isArray','__esModule','tagName','static/apitest','get','summary','array','/static/apitest','propertyData','lodash','number','min','492CMmUSl','HEADERS','INJECT_CUSTOM_PARAM','file','FILESTREAM','35katnrt','startsWith','parameterIndex','header','query','join','noreq','flags.label','default','(((.+)+)+)+$','routerName','substring','flags.description','iterator','2699841wqTOgh','request','description','59616jYlxPi','FIELDS','constructor','Boolean','function','RouteParamTypes','key','prefix','RULES_KEY','title','WEB_ROUTER_PARAM_KEY','body','indexOf','method','intercept','type','flags.presence','split','73895akIaNU','3148072RPSmhV','routerOptions','items','10710SucMAb','keys','limit','push','filter','required','43PFhigq','@anncic-api/validator','allow','pprefix','module','Number','956520VSbSGb','object','@midwayjs/core','PARAM','toString','max','FILESSTREAM','string','route','children','length'];a8_0x24db=function(){return _0x20cba1;};return a8_0x24db();}const a8_0x55fbee=a8_0x2dbb;(function(_0x556708,_0xa46a71){const _0x16e2c2=a8_0x2dbb,_0x3c25b6=_0x556708();while(!![]){try{const _0x5d1632=-parseInt(_0x16e2c2(0x1cb))/0x1*(parseInt(_0x16e2c2(0x1af))/0x2)+-parseInt(_0x16e2c2(0x20a))/0x3+-parseInt(_0x16e2c2(0x1c2))/0x4+parseInt(_0x16e2c2(0x1c1))/0x5*(-parseInt(_0x16e2c2(0x1f7))/0x6)+-parseInt(_0x16e2c2(0x1fc))/0x7*(parseInt(_0x16e2c2(0x1d1))/0x8)+-parseInt(_0x16e2c2(0x1e1))/0x9*(parseInt(_0x16e2c2(0x1c5))/0xa)+parseInt(_0x16e2c2(0x1e6))/0xb*(parseInt(_0x16e2c2(0x1de))/0xc);if(_0x5d1632===_0xa46a71)break;else _0x3c25b6['push'](_0x3c25b6['shift']());}catch(_0x26fd59){_0x3c25b6['push'](_0x3c25b6['shift']());}}}(a8_0x24db,0xb7318));const a8_0x2e964d=(function(){let _0x52f0e0=!![];return function(_0x16452,_0x57cea6){const _0x48d32c=_0x52f0e0?function(){if(_0x57cea6){const _0x36ba16=_0x57cea6['apply'](_0x16452,arguments);return _0x57cea6=null,_0x36ba16;}}:function(){};return _0x52f0e0=![],_0x48d32c;};}()),a8_0x1e4f3=a8_0x2e964d(this,function(){const _0x1e37cb=a8_0x2dbb;return a8_0x1e4f3[_0x1e37cb(0x1d5)]()['search'](_0x1e37cb(0x205))['toString']()[_0x1e37cb(0x1b1)](a8_0x1e4f3)['search'](_0x1e37cb(0x205));});a8_0x1e4f3();'use strict';Object['defineProperty'](exports,a8_0x55fbee(0x1ec),{'value':!![]}),exports[a8_0x55fbee(0x1ea)]=void 0x0;const lodash_1=require(a8_0x55fbee(0x1f4)),validator_1=require(a8_0x55fbee(0x1cc)),core_1=require(a8_0x55fbee(0x1d3)),core_2=require(a8_0x55fbee(0x1d3)),core_3=require(a8_0x55fbee(0x1d3)),action_1=require('../types/action');function getRoutes(_0x3242dd={'prefix':'/','module':![]}){const _0x413508=a8_0x55fbee;var _0x4a2e30,_0x217870;const _0x10cbae=(0x0,core_3['listModule'])(action_1[_0x413508(0x1e3)]),_0x26eab7={},_0x4e0f72=Array['isArray'](_0x3242dd[_0x413508(0x1c9)]||[])?_0x3242dd['filter']||[]:[_0x3242dd[_0x413508(0x1c9)]];_0x5b872f:for(const _0x1eecbf of _0x10cbae){let _0x455907=(0x0,core_3['getClassMetadata'])(action_1[_0x413508(0x1e3)],_0x1eecbf),_0x4b4d04=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x1eecbf);if(_0x455907&&_0x4b4d04){let _0x313cfd=_0x455907['prefix'],_0x265076={};if(_0x3242dd['module']&&(0x0,lodash_1[_0x413508(0x1ef)])(_0x455907,_0x413508(0x1cf),![])!=_0x3242dd['module'])continue _0x5b872f;else{if(_0x3242dd[_0x413508(0x1cf)]===![]&&!!(0x0,lodash_1[_0x413508(0x1ef)])(_0x455907,_0x413508(0x1cf),null))continue _0x5b872f;}if(_0x3242dd[_0x413508(0x1b6)]&&!_0x313cfd[_0x413508(0x1fd)](_0x3242dd[_0x413508(0x1b6)]))continue _0x5b872f;_0x313cfd!=='/'?(_0x265076['summary']=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1c3)][_0x413508(0x1ed)])||(/^\//['test'](_0x313cfd)?_0x313cfd[_0x413508(0x1c0)]('/')[0x1]:_0x313cfd),_0x265076['description']=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1c3)][_0x413508(0x20c)])||_0x265076[_0x413508(0x1f0)],_0x265076[_0x413508(0x1e5)]=[]):(_0x265076[_0x413508(0x1f0)]=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1c3)][_0x413508(0x1ed)])||_0x413508(0x204),_0x265076[_0x413508(0x20c)]=(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907['routerOptions'][_0x413508(0x20c)])||'',_0x265076[_0x413508(0x1e5)]=[]);_0x3242dd[_0x413508(0x1df)]&&(_0x265076['filepath']=_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907[_0x413508(0x1df)]);(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907['pprefix'])&&(_0x265076['prefix']=_0x455907[_0x413508(0x1ce)]);(_0x455907===null||_0x455907===void 0x0?void 0x0:_0x455907['module'])&&(_0x265076[_0x413508(0x1cf)]=_0x455907['module']);let _0x2d8e90=(0x0,core_3['getClassMetadata'])(core_2[_0x413508(0x1f9)],_0x1eecbf)||{};if(typeof _0x4b4d04[Symbol[_0x413508(0x209)]]===_0x413508(0x1b3))for(let _0x2440f3 of _0x4b4d04){if((_0x3242dd===null||_0x3242dd===void 0x0?void 0x0:_0x3242dd[_0x413508(0x1bd)])&&!(_0x2440f3===null||_0x2440f3===void 0x0?void 0x0:_0x2440f3[_0x413508(0x1bd)]))continue;let _0x2acb9b={};_0x2acb9b[_0x413508(0x1bc)]=_0x2440f3['requestMethod'],_0x2acb9b[_0x413508(0x1d9)]=(_0x313cfd+_0x2440f3['path'])['replace'](/\/{2,}/g,'/'),_0x2acb9b['summary']=(_0x2440f3===null||_0x2440f3===void 0x0?void 0x0:_0x2440f3[_0x413508(0x206)])||_0x265076['summary']||_0x413508(0x204),_0x2acb9b[_0x413508(0x20c)]=(_0x2440f3===null||_0x2440f3===void 0x0?void 0x0:_0x2440f3[_0x413508(0x20c)])||'',_0x2acb9b['request']=[];_0x2acb9b['route'][_0x413508(0x1e0)]('/')&&(_0x2acb9b[_0x413508(0x1d9)]=_0x2acb9b[_0x413508(0x1d9)][_0x413508(0x207)](0x0,_0x2acb9b[_0x413508(0x1d9)]['length']-0x1));if(!(0x0,lodash_1[_0x413508(0x1fd)])(_0x2acb9b[_0x413508(0x1d9)],_0x413508(0x1ee))&&!(0x0,lodash_1[_0x413508(0x1fd)])(_0x2acb9b['route'],_0x413508(0x1f2))&&_0x4e0f72[_0x413508(0x1bb)](_0x2acb9b['route'])===-0x1){if(!(_0x3242dd===null||_0x3242dd===void 0x0?void 0x0:_0x3242dd[_0x413508(0x202)])){let _0x388ad6=(0x0,core_3['getMethodParamTypes'])(new _0x1eecbf(),_0x2440f3[_0x413508(0x1bc)]);for(const _0x20de50 in _0x388ad6){let _0x2b5974=(_0x4a2e30=_0x2d8e90[_0x2440f3['method']])===null||_0x4a2e30===void 0x0?void 0x0:_0x4a2e30['find'](_0x5c9f0f=>_0x5c9f0f[_0x413508(0x1fe)]==_0x20de50&&_0x5c9f0f[_0x413508(0x1b5)]===core_2[_0x413508(0x1b9)]&&(_0x5c9f0f===null||_0x5c9f0f===void 0x0?void 0x0:_0x5c9f0f['metadata']));if(_0x2b5974===null||_0x2b5974===void 0x0?void 0x0:_0x2b5974['metadata']){let _0x18f683=convertTypeToString(_0x2b5974[_0x413508(0x1e9)]['type']||0x0);if([_0x413508(0x200),_0x413508(0x1ba)][_0x413508(0x1bb)](_0x18f683)!=-0x1&&_0x2b5974['metadata'][_0x413508(0x1f3)][_0x413508(0x1bb)](':')==-0x1&&!_0x2acb9b[_0x413508(0x20b)]['find'](_0x25ff73=>_0x25ff73['key']==_0x2b5974[_0x413508(0x1e9)][_0x413508(0x1f3)]))_0x2acb9b[_0x413508(0x20b)]['push']({'key':_0x2b5974[_0x413508(0x1e9)]['propertyData'],'title':_0x2b5974[_0x413508(0x1e9)][_0x413508(0x1f3)],'type':convertSchemaType(_0x388ad6[_0x2b5974[_0x413508(0x1fe)]][_0x413508(0x1e8)]),'required':![],'default':'','desc':''});else{if(_0x18f683==_0x413508(0x1fa)){let _0x423569=((_0x217870=_0x2b5974===null||_0x2b5974===void 0x0?void 0x0:_0x2b5974['metadata'])===null||_0x217870===void 0x0?void 0x0:_0x217870[_0x413508(0x1f3)])||'file';_0x423569['indexOf'](':')==-0x1&&!_0x2acb9b['request']['find'](_0x268bf7=>_0x268bf7[_0x413508(0x1b5)]==_0x423569&&_0x268bf7[_0x413508(0x1be)]==_0x413508(0x1fa))&&_0x2acb9b[_0x413508(0x20b)][_0x413508(0x1c8)]({'key':_0x423569,'title':'文件上传-'+_0x423569,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x21dd90=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x413508(0x1b7)],_0x388ad6[_0x20de50]);_0x21dd90&&_0x2acb9b['request'][_0x413508(0x1c8)](...getJoiRequest(_0x21dd90));}}}_0x265076['routes'][_0x413508(0x1c8)](_0x2acb9b);}}if(_0x265076[_0x413508(0x1e5)][_0x413508(0x1db)]>0x0){let _0x507fd1=_0x26eab7[_0x313cfd];_0x507fd1?(_0x507fd1[_0x413508(0x1f0)]!=_0x265076[_0x413508(0x1f0)]&&(_0x507fd1[_0x413508(0x1f0)]=_0x507fd1[_0x413508(0x1f0)]+','+_0x265076[_0x413508(0x1f0)]),_0x507fd1['description']!=_0x265076[_0x413508(0x20c)]&&(_0x507fd1[_0x413508(0x20c)]=_0x507fd1[_0x413508(0x20c)]+','+_0x265076[_0x413508(0x20c)]),_0x507fd1[_0x413508(0x1e5)]=_0x507fd1[_0x413508(0x1e5)]['concat'](_0x265076[_0x413508(0x1e5)]),_0x26eab7[_0x313cfd]=_0x507fd1):_0x26eab7[_0x313cfd]=_0x265076;}}}return _0x26eab7;}exports[a8_0x55fbee(0x1ea)]=getRoutes;function getJoiRequest(_0x291d2d){const _0x2727ef=a8_0x55fbee,_0x1ef85e=[];for(let _0x584cc2 in _0x291d2d){const _0x166e0d={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1a0aad=typeof _0x291d2d[_0x584cc2][_0x2727ef(0x1e7)]==_0x2727ef(0x1b3)?_0x291d2d[_0x584cc2][_0x2727ef(0x1e7)]():_0x291d2d[_0x584cc2];_0x166e0d['key']=_0x584cc2,_0x166e0d['type']=_0x1a0aad['type'],_0x166e0d['title']=(0x0,lodash_1[_0x2727ef(0x1ef)])(_0x1a0aad,_0x2727ef(0x203),_0x584cc2),_0x166e0d[_0x2727ef(0x204)]=(0x0,lodash_1[_0x2727ef(0x1ef)])(_0x1a0aad,'flags.default',''),_0x166e0d[_0x2727ef(0x1ca)]=(0x0,lodash_1[_0x2727ef(0x1ef)])(_0x1a0aad,_0x2727ef(0x1bf),'')==_0x2727ef(0x1ca),_0x166e0d[_0x2727ef(0x20c)]=(0x0,lodash_1['get'])(_0x1a0aad,_0x2727ef(0x208),'');if(_0x1a0aad[_0x2727ef(0x1be)]==_0x2727ef(0x1d2))_0x166e0d[_0x2727ef(0x1da)]=getJoiRequest(_0x1a0aad[_0x2727ef(0x1c6)]);else{if(_0x1a0aad[_0x2727ef(0x1be)]==_0x2727ef(0x1f1)&&_0x1a0aad[_0x2727ef(0x1c4)]&&Array[_0x2727ef(0x1eb)](_0x1a0aad['items'])&&_0x1a0aad['items'][0x0]){}}_0x1a0aad['allow']&&Array['isArray'](_0x1a0aad[_0x2727ef(0x1cd)])&&_0x1a0aad[_0x2727ef(0x1cd)][_0x2727ef(0x1db)]>0x0&&(_0x166e0d[_0x2727ef(0x20c)]=_0x2727ef(0x1e4)+_0x1a0aad[_0x2727ef(0x1cd)][_0x2727ef(0x201)](',')+'];'+_0x166e0d[_0x2727ef(0x20c)]);if(_0x166e0d[_0x2727ef(0x1b5)]&&_0x166e0d[_0x2727ef(0x1be)]){const _0x269233={};for(const _0x3e23a1 of _0x1a0aad['rules']||[]){if(_0x3e23a1[_0x2727ef(0x1e8)]===_0x2727ef(0x1f6)&&_0x3e23a1[_0x2727ef(0x1dd)])_0x269233['min']=_0x3e23a1[_0x2727ef(0x1dd)][_0x2727ef(0x1c7)];else _0x3e23a1['name']===_0x2727ef(0x1d6)&&(_0x269233[_0x2727ef(0x1d6)]=_0x3e23a1[_0x2727ef(0x1dd)][_0x2727ef(0x1c7)]);}_0x166e0d['rules']=_0x269233;}_0x166e0d[_0x2727ef(0x1b5)]&&_0x166e0d[_0x2727ef(0x1b8)]&&_0x1ef85e[_0x2727ef(0x1c8)](_0x166e0d);}return _0x1ef85e;}function convertSchemaType(_0x4a1eb6){const _0x5210b3=a8_0x55fbee;switch(_0x4a1eb6){case'Object':return'object';case _0x5210b3(0x1b2):return'boolean';case _0x5210b3(0x1d0):return _0x5210b3(0x1f5);case'String':return'string';case _0x5210b3(0x1dc):return _0x5210b3(0x1fa);default:return _0x5210b3(0x1d8);}}function a8_0x2dbb(_0x195f67,_0x23996f){const _0x82563a=a8_0x24db();return a8_0x2dbb=function(_0x1e4f3,_0x2e964d){_0x1e4f3=_0x1e4f3-0x1af;let _0x24dbb6=_0x82563a[_0x1e4f3];return _0x24dbb6;},a8_0x2dbb(_0x195f67,_0x23996f);}function convertTypeToString(_0x371f64){const _0x3c1973=a8_0x55fbee;switch(_0x371f64){case core_1['RouteParamTypes'][_0x3c1973(0x1f8)]:return _0x3c1973(0x1ff);case core_1[_0x3c1973(0x1b4)]['QUERY']:return _0x3c1973(0x200);case core_1['RouteParamTypes'][_0x3c1973(0x1d4)]:return'path';case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1e2)]:return _0x3c1973(0x1ba);case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1b0)]:case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1d7)]:case core_1[_0x3c1973(0x1b4)][_0x3c1973(0x1fb)]:return _0x3c1973(0x1fa);default:return _0x3c1973(0x1ff);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x4ee8d7=a9_0x191e;(function(_0x88b378,_0x36c08f){var _0x12db02=a9_0x191e,_0x346414=_0x88b378();while(!![]){try{var _0x24b62c=parseInt(_0x12db02(0x1a9))/0x1+-parseInt(_0x12db02(0x1b3))/0x2*(-parseInt(_0x12db02(0x1a5))/0x3)+-parseInt(_0x12db02(0x196))/0x4+parseInt(_0x12db02(0x1a1))/0x5*(-parseInt(_0x12db02(0x19c))/0x6)+parseInt(_0x12db02(0x19e))/0x7*(-parseInt(_0x12db02(0x1c4))/0x8)+parseInt(_0x12db02(0x1c1))/0x9*(parseInt(_0x12db02(0x1b7))/0xa)+parseInt(_0x12db02(0x1bc))/0xb;if(_0x24b62c===_0x36c08f)break;else _0x346414['push'](_0x346414['shift']());}catch(_0x24451e){_0x346414['push'](_0x346414['shift']());}}}(a9_0x4327,0x3dfd3));var a9_0x405c13=(function(){var _0x47434e=!![];return function(_0x5af41d,_0x490a9b){var _0x5b5329=_0x47434e?function(){var _0x2d442a=a9_0x191e;if(_0x490a9b){var _0x3c0b84=_0x490a9b[_0x2d442a(0x194)](_0x5af41d,arguments);return _0x490a9b=null,_0x3c0b84;}}:function(){};return _0x47434e=![],_0x5b5329;};}()),a9_0x3ff071=a9_0x405c13(this,function(){var _0x113252=a9_0x191e;return a9_0x3ff071[_0x113252(0x1a2)]()[_0x113252(0x1b4)](_0x113252(0x1a8))[_0x113252(0x1a2)]()[_0x113252(0x188)](a9_0x3ff071)[_0x113252(0x1b4)]('(((.+)+)+)+$');});a9_0x3ff071();'use strict';var __createBinding=this&&this[a9_0x4ee8d7(0x19d)]||(Object[a9_0x4ee8d7(0x18d)]?function(_0x24e4a7,_0x205dfd,_0x39b0a4,_0x243b04){var _0x585b75=a9_0x4ee8d7;if(_0x243b04===undefined)_0x243b04=_0x39b0a4;var _0x2d68e4=Object[_0x585b75(0x193)](_0x205dfd,_0x39b0a4);(!_0x2d68e4||(_0x585b75(0x1aa)in _0x2d68e4?!_0x205dfd['__esModule']:_0x2d68e4[_0x585b75(0x1a4)]||_0x2d68e4[_0x585b75(0x191)]))&&(_0x2d68e4={'enumerable':!![],'get':function(){return _0x205dfd[_0x39b0a4];}}),Object[_0x585b75(0x18e)](_0x24e4a7,_0x243b04,_0x2d68e4);}:function(_0xbb8db8,_0x1fb6d2,_0xa5fe49,_0x1ee20c){if(_0x1ee20c===undefined)_0x1ee20c=_0xa5fe49;_0xbb8db8[_0x1ee20c]=_0x1fb6d2[_0xa5fe49];}),__exportStar=this&&this[a9_0x4ee8d7(0x1a0)]||function(_0x13f79b,_0x4c3a60){var _0x470604=a9_0x4ee8d7;for(var _0x1303d0 in _0x13f79b)if(_0x1303d0!==_0x470604(0x198)&&!Object[_0x470604(0x189)][_0x470604(0x1bb)][_0x470604(0x187)](_0x4c3a60,_0x1303d0))__createBinding(_0x4c3a60,_0x13f79b,_0x1303d0);};Object['defineProperty'](exports,a9_0x4ee8d7(0x1ab),{'value':!![]}),exports[a9_0x4ee8d7(0x18a)]=exports[a9_0x4ee8d7(0x1c3)]=exports['Singleton']=exports[a9_0x4ee8d7(0x1c5)]=exports['Inject']=exports[a9_0x4ee8d7(0x197)]=exports[a9_0x4ee8d7(0x1ae)]=exports[a9_0x4ee8d7(0x1b6)]=exports[a9_0x4ee8d7(0x199)]=exports[a9_0x4ee8d7(0x18c)]=exports[a9_0x4ee8d7(0x1b5)]=exports[a9_0x4ee8d7(0x19f)]=exports[a9_0x4ee8d7(0x1bf)]=exports[a9_0x4ee8d7(0x1a6)]=exports['Fields']=exports[a9_0x4ee8d7(0x195)]=exports[a9_0x4ee8d7(0x1c6)]=exports[a9_0x4ee8d7(0x1be)]=exports[a9_0x4ee8d7(0x1b2)]=exports['ValidatorError']=exports[a9_0x4ee8d7(0x1c8)]=exports[a9_0x4ee8d7(0x1b0)]=exports[a9_0x4ee8d7(0x1ad)]=exports[a9_0x4ee8d7(0x192)]=exports['ApiError']=exports['getRoutes']=exports['IIntercept']=exports['Intercept']=exports[a9_0x4ee8d7(0x19a)]=exports[a9_0x4ee8d7(0x1b8)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x4ee8d7(0x18e)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x4ee8d7(0x18f)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require('./decorator/Action');Object[a9_0x4ee8d7(0x18e)](exports,'Action',{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x4ee8d7(0x18b));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x19a),{'enumerable':!![],'get':function(){var _0x9e1334=a9_0x4ee8d7;return ActionApitest_1[_0x9e1334(0x19a)];}});var Intercept_1=require(a9_0x4ee8d7(0x1b1));Object[a9_0x4ee8d7(0x18e)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x330f8f=a9_0x4ee8d7;return Intercept_1[_0x330f8f(0x1ac)];}}),Object[a9_0x4ee8d7(0x18e)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x32ce51=a9_0x4ee8d7;return Intercept_1[_0x32ce51(0x190)];}});var getRoutes_1=require(a9_0x4ee8d7(0x19b));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1a7),{'enumerable':!![],'get':function(){var _0x47cb66=a9_0x4ee8d7;return getRoutes_1[_0x47cb66(0x1a7)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1c2),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a9_0x4ee8d7(0x1ba));Object['defineProperty'](exports,a9_0x4ee8d7(0x192),{'enumerable':!![],'get':function(){var _0xc850bd=a9_0x4ee8d7;return cache_1[_0xc850bd(0x192)];}});var event_1=require('@anncic-api/event');Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1ad),{'enumerable':!![],'get':function(){var _0x3d5476=a9_0x4ee8d7;return event_1[_0x3d5476(0x1ad)];}});var ApiService_1=require(a9_0x4ee8d7(0x1a3));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b0),{'enumerable':!![],'get':function(){var _0x14dbd2=a9_0x4ee8d7;return ApiService_1[_0x14dbd2(0x1b0)];}});var ExcelService_1=require(a9_0x4ee8d7(0x1af));Object['defineProperty'](exports,a9_0x4ee8d7(0x1c8),{'enumerable':!![],'get':function(){var _0x3f0829=a9_0x4ee8d7;return ExcelService_1[_0x3f0829(0x1c8)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x4ee8d7(0x18e)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x1c6cf3=a9_0x4ee8d7;return validator_1[_0x1c6cf3(0x1bd)];}}),Object['defineProperty'](exports,a9_0x4ee8d7(0x1b2),{'enumerable':!![],'get':function(){var _0x5bc1bf=a9_0x4ee8d7;return validator_1[_0x5bc1bf(0x1b2)];}});var configuration_1=require(a9_0x4ee8d7(0x1c7));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x4ee8d7(0x1c0));Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1c6),{'enumerable':!![],'get':function(){var _0x43d70f=a9_0x4ee8d7;return core_1[_0x43d70f(0x1c6)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x195),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x4ee8d7(0x18e)](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1a6),{'enumerable':!![],'get':function(){var _0xc7ef6a=a9_0x4ee8d7;return core_1[_0xc7ef6a(0x1a6)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1bf),{'enumerable':!![],'get':function(){var _0x4d45c6=a9_0x4ee8d7;return core_1[_0x4d45c6(0x1bf)];}}),Object[a9_0x4ee8d7(0x18e)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b5),{'enumerable':!![],'get':function(){var _0x31e72c=a9_0x4ee8d7;return core_1[_0x31e72c(0x1b5)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x18c),{'enumerable':!![],'get':function(){var _0x4b347b=a9_0x4ee8d7;return core_1[_0x4b347b(0x18c)];}});var core_2=require(a9_0x4ee8d7(0x1c0));function a9_0x191e(_0x3c706b,_0x4ffa83){var _0x441d4d=a9_0x4327();return a9_0x191e=function(_0x3ff071,_0x405c13){_0x3ff071=_0x3ff071-0x187;var _0x4327cf=_0x441d4d[_0x3ff071];return _0x4327cf;},a9_0x191e(_0x3c706b,_0x4ffa83);}function a9_0x4327(){var _0x2ddfde=['./types/common','IIntercept','configurable','CacheService','getOwnPropertyDescriptor','apply','Files','1417076CqLNDr','Provide','default','App','Apitest','./helper/getRoutes','90rIbAXP','__createBinding','2009qHJVZR','Query','__exportStar','137285ywVMOq','toString','./service/ApiService','writable','211377owOoyC','Body','getRoutes','(((.+)+)+)+$','87221zfOHTO','get','__esModule','Intercept','EventService','Logger','./service/ExcelService','ApiService','./decorator/Intercept','ValidatorService','2AXogom','search','Headers','Config','70IuIRru','Action','Singleton','@anncic-api/cache','hasOwnProperty','7638785FPJnyX','ValidatorError','Configuration','Param','@midwayjs/core','450207GZskxK','ApiError','ScopeEnum','5080lZJWZV','Scope','File','./configuration','ExcelService','call','constructor','prototype','getAppsConfig','./decorator/ActionApitest','Init','create','defineProperty'];a9_0x4327=function(){return _0x2ddfde;};return a9_0x4327();}Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x199),{'enumerable':!![],'get':function(){var _0x4f45e5=a9_0x4ee8d7;return core_2[_0x4f45e5(0x199)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b6),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1ae),{'enumerable':!![],'get':function(){var _0x5835ab=a9_0x4ee8d7;return core_2[_0x5835ab(0x1ae)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x197),{'enumerable':!![],'get':function(){var _0xe9e71f=a9_0x4ee8d7;return core_2[_0xe9e71f(0x197)];}}),Object[a9_0x4ee8d7(0x18e)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x5ad3ae=a9_0x4ee8d7;return core_2[_0x5ad3ae(0x1c5)];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1b9),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a9_0x4ee8d7(0x18e)](exports,a9_0x4ee8d7(0x1c3),{'enumerable':!![],'get':function(){var _0x1f565c=a9_0x4ee8d7;return core_2[_0x1f565c(0x1c3)];}}),global[a9_0x4ee8d7(0x18a)]=getAppsConfig_1[a9_0x4ee8d7(0x18a)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x5f03(){var _0x5122bf=['substring','defineProperty','../exception/ApiError','ScopeEnum','metadata','search','getsign','padEnd','constructor','design:type','__decorate','MD5','timeout','128GsIvbO','(((.+)+)+)+$','Singleton','570436CXRpCy','461670vtBhgs','object','getcheck','logintime','device','ApiService','map','Scope','验证失败','HEADERS_DEVICE','password','sort','请求超时,请重试或改善网络环境','__esModule','join','prototype','getOwnPropertyDescriptor','toLowerCase','entries','requesttime','undefined','devices','1128LLkXXE','now','fromEntries','@midwayjs/core','toString','Config','__metadata','ApiError','config','checkcode','HEADERS_CHECKCODE','anncicapi','crypto-js','function','198252LDvljr','decorate','14lIYVtK','360705Mjrsrg','push','abs','length','signature','token','1922GiPGlf','828138vkMMCS','202886WVJweK'];a10_0x5f03=function(){return _0x5122bf;};return a10_0x5f03();}var a10_0x55fc72=a10_0x26ca;(function(_0x539a40,_0x48485d){var _0x381569=a10_0x26ca,_0x328a66=_0x539a40();while(!![]){try{var _0x4e53aa=-parseInt(_0x381569(0x1cc))/0x1+-parseInt(_0x381569(0x1ca))/0x2*(parseInt(_0x381569(0x1b3))/0x3)+parseInt(_0x381569(0x1dd))/0x4+-parseInt(_0x381569(0x1c4))/0x5+parseInt(_0x381569(0x1cb))/0x6*(parseInt(_0x381569(0x1c3))/0x7)+parseInt(_0x381569(0x1da))/0x8*(parseInt(_0x381569(0x1c1))/0x9)+parseInt(_0x381569(0x1de))/0xa;if(_0x4e53aa===_0x48485d)break;else _0x328a66['push'](_0x328a66['shift']());}catch(_0x4571d7){_0x328a66['push'](_0x328a66['shift']());}}}(a10_0x5f03,0x2c2ab));var a10_0x3439f7=(function(){var _0x1746c1=!![];return function(_0x3f0470,_0x1fe02d){var _0x3c0d0c=_0x1746c1?function(){if(_0x1fe02d){var _0x3bc09b=_0x1fe02d['apply'](_0x3f0470,arguments);return _0x1fe02d=null,_0x3bc09b;}}:function(){};return _0x1746c1=![],_0x3c0d0c;};}()),a10_0x3a41f5=a10_0x3439f7(this,function(){var _0x2b191b=a10_0x26ca;return a10_0x3a41f5['toString']()['search'](_0x2b191b(0x1db))[_0x2b191b(0x1b7)]()[_0x2b191b(0x1d5)](a10_0x3a41f5)[_0x2b191b(0x1d2)](_0x2b191b(0x1db));});function a10_0x26ca(_0x1e0d41,_0x4a248e){var _0x543fe4=a10_0x5f03();return a10_0x26ca=function(_0x3a41f5,_0x3439f7){_0x3a41f5=_0x3a41f5-0x1a6;var _0x5f0333=_0x543fe4[_0x3a41f5];return _0x5f0333;},a10_0x26ca(_0x1e0d41,_0x4a248e);}a10_0x3a41f5();'use strict';var __decorate=this&&this[a10_0x55fc72(0x1d7)]||function(_0x28854b,_0x4989d4,_0x38036c,_0x132ae6){var _0x2b1d39=a10_0x55fc72,_0x28c0be=arguments['length'],_0x838bd8=_0x28c0be<0x3?_0x4989d4:_0x132ae6===null?_0x132ae6=Object[_0x2b1d39(0x1ad)](_0x4989d4,_0x38036c):_0x132ae6,_0x364885;if(typeof Reflect===_0x2b1d39(0x1df)&&typeof Reflect[_0x2b1d39(0x1c2)]===_0x2b1d39(0x1c0))_0x838bd8=Reflect[_0x2b1d39(0x1c2)](_0x28854b,_0x4989d4,_0x38036c,_0x132ae6);else{for(var _0x3dc10f=_0x28854b[_0x2b1d39(0x1c7)]-0x1;_0x3dc10f>=0x0;_0x3dc10f--)if(_0x364885=_0x28854b[_0x3dc10f])_0x838bd8=(_0x28c0be<0x3?_0x364885(_0x838bd8):_0x28c0be>0x3?_0x364885(_0x4989d4,_0x38036c,_0x838bd8):_0x364885(_0x4989d4,_0x38036c))||_0x838bd8;}return _0x28c0be>0x3&&_0x838bd8&&Object['defineProperty'](_0x4989d4,_0x38036c,_0x838bd8),_0x838bd8;},__metadata=this&&this[a10_0x55fc72(0x1b9)]||function(_0x597721,_0x2ad330){var _0x18744d=a10_0x55fc72;if(typeof Reflect==='object'&&typeof Reflect[_0x18744d(0x1d1)]===_0x18744d(0x1c0))return Reflect[_0x18744d(0x1d1)](_0x597721,_0x2ad330);};Object[a10_0x55fc72(0x1ce)](exports,a10_0x55fc72(0x1aa),{'value':!![]}),exports[a10_0x55fc72(0x1e3)]=void 0x0;const crypto_js_1=require(a10_0x55fc72(0x1bf)),core_1=require(a10_0x55fc72(0x1b6)),ApiError_1=require(a10_0x55fc72(0x1cf));let ApiService=exports['ApiService']=class ApiService{[a10_0x55fc72(0x1a7)](_0x3dd4c6){var _0x377ddd=a10_0x55fc72,_0x1db35f;return _0x3dd4c6?(0x0,crypto_js_1[_0x377ddd(0x1d8)])(''+_0x3dd4c6+(0x0,crypto_js_1[_0x377ddd(0x1d8)])((0x0,crypto_js_1[_0x377ddd(0x1d8)])(''+_0x3dd4c6)[_0x377ddd(0x1b7)]()+(''+((_0x1db35f=this['config'])===null||_0x1db35f===void 0x0?void 0x0:_0x1db35f['password'])))[_0x377ddd(0x1b7)]())[_0x377ddd(0x1b7)]():'';}[a10_0x55fc72(0x1e0)](_0x551843,_0x8f4416,_0x23ef2b=Date[a10_0x55fc72(0x1b4)]()){return{'Token':_0x551843,'Logintime':_0x23ef2b,'Checkcode':this['checkcode'](_0x551843,_0x8f4416,_0x23ef2b)};}['getsign'](_0x28f095={}){var _0x47cd81=a10_0x55fc72,_0x5576dc,_0x23ae70;const _0xa34d5f=[],_0x2c10a2=Object['fromEntries'](Object['entries'](_0x28f095)['map'](_0xdb0c2b=>[_0xdb0c2b[0x0]['toLowerCase'](),_0xdb0c2b[0x1]]));for(let _0x5527ac of['device',_0x47cd81(0x1b0),_0x47cd81(0x1c9),_0x47cd81(0x1e1),_0x47cd81(0x1bc)]){if(typeof _0x2c10a2[_0x5527ac]==_0x47cd81(0x1b1))throw new AnnError(ApiError_1[_0x47cd81(0x1ba)]['HEADERS_LACK'],{'message':'验证失败'});_0xa34d5f[_0x47cd81(0x1c5)](_0x5527ac+'='+_0x2c10a2[_0x5527ac]);}_0x2c10a2[_0x47cd81(0x1b0)]&&((_0x5576dc=_0x2c10a2['requesttime'])===null||_0x5576dc===void 0x0?void 0x0:_0x5576dc[_0x47cd81(0x1c7)])==0xa&&(_0x2c10a2[_0x47cd81(0x1b0)]=_0x2c10a2[_0x47cd81(0x1b0)]*0x3e8);if(this[_0x47cd81(0x1bb)][_0x47cd81(0x1d9)]&&parseInt((''+Date[_0x47cd81(0x1b4)]())['substring'](0x0,0xd)[_0x47cd81(0x1d4)](0xd,'0'))-parseInt((''+Math[_0x47cd81(0x1c6)](_0x2c10a2['requesttime']))[_0x47cd81(0x1cd)](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this[_0x47cd81(0x1bb)][_0x47cd81(0x1d9)]))throw new AnnError(ApiError_1[_0x47cd81(0x1ba)]['TIMEOUT'],{'message':_0x47cd81(0x1a9),'requesttime':_0x2c10a2['requesttime'],'timestamp':Date[_0x47cd81(0x1b4)]()});if((((_0x23ae70=this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]])===null||_0x23ae70===void 0x0?void 0x0:_0x23ae70['logintimeout'])||0x0)>0x0&&Date[_0x47cd81(0x1b4)]()-Math[_0x47cd81(0x1c6)](_0x2c10a2[_0x47cd81(0x1e1)])>this['config'][_0x47cd81(0x1b2)][_0x2c10a2['device']]['logintimeout'])throw new AnnError(ApiError_1[_0x47cd81(0x1ba)]['TIMEOUT_LOGINTIME']);if(!this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]]||!this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]]['secret']||!this[_0x47cd81(0x1bb)][_0x47cd81(0x1b2)][_0x2c10a2[_0x47cd81(0x1e2)]][_0x47cd81(0x1bc)])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x2c10a2[_0x47cd81(0x1c9)]&&_0x2c10a2[_0x47cd81(0x1bc)]!=this[_0x47cd81(0x1bc)](_0x2c10a2[_0x47cd81(0x1c9)],_0x2c10a2[_0x47cd81(0x1e2)],_0x2c10a2[_0x47cd81(0x1e1)]))throw new AnnError(ApiError_1[_0x47cd81(0x1ba)][_0x47cd81(0x1bd)]);return _0xa34d5f[_0x47cd81(0x1c5)]('secret='+this[_0x47cd81(0x1bb)]['devices'][_0x2c10a2[_0x47cd81(0x1e2)]]['secret']),(0x0,crypto_js_1[_0x47cd81(0x1d8)])(_0xa34d5f[_0x47cd81(0x1a8)]()[_0x47cd81(0x1ab)](''))[_0x47cd81(0x1b7)]();}['checkcode'](_0x10c953,_0x37cdbf,_0x5d4cd1=Date[a10_0x55fc72(0x1b4)]()){var _0x6f97dc=a10_0x55fc72,_0x4133c5,_0x38ff45,_0xc14c6;if(!((_0x4133c5=this[_0x6f97dc(0x1bb)])===null||_0x4133c5===void 0x0?void 0x0:_0x4133c5[_0x6f97dc(0x1b2)][_0x37cdbf])||!((_0xc14c6=(_0x38ff45=this[_0x6f97dc(0x1bb)])===null||_0x38ff45===void 0x0?void 0x0:_0x38ff45[_0x6f97dc(0x1b2)][_0x37cdbf])===null||_0xc14c6===void 0x0?void 0x0:_0xc14c6['checkcode']))throw new AnnError(ApiError_1[_0x6f97dc(0x1ba)][_0x6f97dc(0x1a6)]);return(0x0,crypto_js_1[_0x6f97dc(0x1d8)])(''+_0x10c953+(0x0,crypto_js_1['MD5'])(''+_0x5d4cd1+(''+this[_0x6f97dc(0x1bb)]['devices'][_0x37cdbf][_0x6f97dc(0x1bc)]))[_0x6f97dc(0x1b7)]())[_0x6f97dc(0x1b7)]();}['checksign'](_0x3298bd={}){var _0xcce5d4=a10_0x55fc72;const _0x21d32b=Object[_0xcce5d4(0x1b5)](Object[_0xcce5d4(0x1af)](_0x3298bd)[_0xcce5d4(0x1e4)](_0x4bea8d=>[_0x4bea8d[0x0][_0xcce5d4(0x1ae)](),_0x4bea8d[0x1]]));if(!(_0x21d32b===null||_0x21d32b===void 0x0?void 0x0:_0x21d32b[_0xcce5d4(0x1c8)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0xcce5d4(0x1e6)});if((_0x21d32b===null||_0x21d32b===void 0x0?void 0x0:_0x21d32b[_0xcce5d4(0x1c8)])!=this[_0xcce5d4(0x1d3)](_0x21d32b))throw new AnnError(ApiError_1[_0xcce5d4(0x1ba)]['HEADERS_SIGNATURE'],{'message':'验证失败'});return!![];}};__decorate([(0x0,core_1[a10_0x55fc72(0x1b8)])(a10_0x55fc72(0x1be)),__metadata(a10_0x55fc72(0x1d6),Object)],ApiService[a10_0x55fc72(0x1ac)],'config',void 0x0),exports[a10_0x55fc72(0x1e3)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x55fc72(0x1e5)])(core_1[a10_0x55fc72(0x1d0)][a10_0x55fc72(0x1dc)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x25c977=a11_0x3037;(function(_0x1ad6c0,_0x3b98e3){const _0x12e747=a11_0x3037,_0x2cb841=_0x1ad6c0();while(!![]){try{const _0xf1fb9f=parseInt(_0x12e747(0x15b))/0x1+parseInt(_0x12e747(0x122))/0x2*(-parseInt(_0x12e747(0x135))/0x3)+-parseInt(_0x12e747(0x174))/0x4+-parseInt(_0x12e747(0x133))/0x5+-parseInt(_0x12e747(0x123))/0x6+parseInt(_0x12e747(0x168))/0x7*(-parseInt(_0x12e747(0x147))/0x8)+parseInt(_0x12e747(0x12b))/0x9*(parseInt(_0x12e747(0x155))/0xa);if(_0xf1fb9f===_0x3b98e3)break;else _0x2cb841['push'](_0x2cb841['shift']());}catch(_0x37074c){_0x2cb841['push'](_0x2cb841['shift']());}}}(a11_0xc3b5,0xcbea9));const a11_0x448933=(function(){let _0x29c71a=!![];return function(_0x4e368b,_0x15be0f){const _0x1ade15=_0x29c71a?function(){if(_0x15be0f){const _0x24686a=_0x15be0f['apply'](_0x4e368b,arguments);return _0x15be0f=null,_0x24686a;}}:function(){};return _0x29c71a=![],_0x1ade15;};}()),a11_0x509f9d=a11_0x448933(this,function(){const _0xd2c16d=a11_0x3037;return a11_0x509f9d[_0xd2c16d(0x165)]()[_0xd2c16d(0x149)](_0xd2c16d(0x16a))[_0xd2c16d(0x165)]()[_0xd2c16d(0x141)](a11_0x509f9d)['search']('(((.+)+)+)+$');});a11_0x509f9d();'use strict';var __decorate=this&&this[a11_0x25c977(0x171)]||function(_0x433875,_0x54b499,_0x5e156c,_0x1921c4){const _0x35f747=a11_0x25c977;var _0x46f2f2=arguments[_0x35f747(0x13e)],_0x231055=_0x46f2f2<0x3?_0x54b499:_0x1921c4===null?_0x1921c4=Object[_0x35f747(0x16e)](_0x54b499,_0x5e156c):_0x1921c4,_0x3b833c;if(typeof Reflect===_0x35f747(0x136)&&typeof Reflect[_0x35f747(0x125)]===_0x35f747(0x157))_0x231055=Reflect[_0x35f747(0x125)](_0x433875,_0x54b499,_0x5e156c,_0x1921c4);else{for(var _0x185213=_0x433875[_0x35f747(0x13e)]-0x1;_0x185213>=0x0;_0x185213--)if(_0x3b833c=_0x433875[_0x185213])_0x231055=(_0x46f2f2<0x3?_0x3b833c(_0x231055):_0x46f2f2>0x3?_0x3b833c(_0x54b499,_0x5e156c,_0x231055):_0x3b833c(_0x54b499,_0x5e156c))||_0x231055;}return _0x46f2f2>0x3&&_0x231055&&Object['defineProperty'](_0x54b499,_0x5e156c,_0x231055),_0x231055;},__metadata=this&&this['__metadata']||function(_0x33ebef,_0x525923){const _0x14317e=a11_0x25c977;if(typeof Reflect==='object'&&typeof Reflect[_0x14317e(0x138)]===_0x14317e(0x157))return Reflect[_0x14317e(0x138)](_0x33ebef,_0x525923);},__param=this&&this[a11_0x25c977(0x154)]||function(_0x491d09,_0x10b62c){return function(_0x448082,_0x21fe7d){_0x10b62c(_0x448082,_0x21fe7d,_0x491d09);};};Object[a11_0x25c977(0x143)](exports,a11_0x25c977(0x163),{'value':!![]}),exports[a11_0x25c977(0x156)]=exports[a11_0x25c977(0x14d)]=void 0x0;const path_1=require(a11_0x25c977(0x15d)),fs_1=require('fs'),core_1=require(a11_0x25c977(0x15a)),core_2=require(a11_0x25c977(0x15a)),core_3=require(a11_0x25c977(0x15a)),getRoutes_1=require(a11_0x25c977(0x162));function a11_0x3037(_0x35dd97,_0x5ab81c){const _0x49f08b=a11_0xc3b5();return a11_0x3037=function(_0x509f9d,_0x448933){_0x509f9d=_0x509f9d-0x122;let _0xc3b5af=_0x49f08b[_0x509f9d];return _0xc3b5af;},a11_0x3037(_0x35dd97,_0x5ab81c);}let ApitestService=exports[a11_0x25c977(0x14d)]=class ApitestService{async['apidoc'](_0x2382fe){const _0x4e10be=a11_0x25c977,_0x29c85d=(0x0,getRoutes_1['getRoutes'])(_0x2382fe),_0x9fb5b8=[];for(let _0x280716 in _0x29c85d){for(let _0x4f7783 in _0x29c85d[_0x280716][_0x4e10be(0x158)]){let _0x24e029=_0x29c85d[_0x280716][_0x4e10be(0x158)][_0x4f7783],_0x530f5d=[];for(let _0x3485f4 in _0x24e029[_0x4e10be(0x13f)]){_0x530f5d[_0x4e10be(0x169)](_0x24e029[_0x4e10be(0x13f)][_0x3485f4]);}_0x9fb5b8[_0x4e10be(0x169)]({'title':_0x29c85d[_0x280716][_0x4e10be(0x153)]+':'+_0x24e029[_0x4e10be(0x153)],'prefix':_0x29c85d[_0x280716]['prefix'],'router':_0x24e029[_0x4e10be(0x16d)],'method':_0x24e029[_0x4e10be(0x137)],'describe':_0x24e029[_0x4e10be(0x144)]||'','filepath':_0x29c85d[_0x280716][_0x4e10be(0x124)]||'','request':_0x530f5d});}}const _0xfe1c0a=(0x0,path_1[_0x4e10be(0x12f)])(__dirname,_0x4e10be(0x148));return(0x0,fs_1[_0x4e10be(0x13a)])(_0xfe1c0a,{'encoding':_0x4e10be(0x15c)})[_0x4e10be(0x130)](/__res__/g,_0x4e10be(0x13b))[_0x4e10be(0x130)](_0x4e10be(0x15e),JSON[_0x4e10be(0x14a)](_0x9fb5b8))['replace']('__devices__',JSON[_0x4e10be(0x14a)](this[_0x4e10be(0x127)][_0x4e10be(0x12a)]));}};__decorate([(0x0,core_3[a11_0x25c977(0x12d)])(a11_0x25c977(0x150)),__metadata(a11_0x25c977(0x131),Object)],ApitestService[a11_0x25c977(0x151)],a11_0x25c977(0x127),void 0x0),exports[a11_0x25c977(0x14d)]=ApitestService=__decorate([(0x0,core_2[a11_0x25c977(0x164)])(a11_0x25c977(0x161)),(0x0,core_3[a11_0x25c977(0x159)])(core_3[a11_0x25c977(0x145)][a11_0x25c977(0x146)])],ApitestService);let ApitestStaticController=exports['ApitestStaticController']=class ApitestStaticController{async[a11_0x25c977(0x129)](){const _0x358df8=a11_0x25c977;if(this[_0x358df8(0x161)]){const _0x36bff7={'module':![]};return this[_0x358df8(0x13d)]['isDevelopmentEnvironment']()&&(_0x36bff7[_0x358df8(0x124)]=!![]),await this[_0x358df8(0x14d)][_0x358df8(0x173)](_0x36bff7);}return'';}async[a11_0x25c977(0x170)](_0x1e812e){const _0x5197ca=a11_0x25c977;if(this[_0x5197ca(0x161)]){const _0x5ec6cc={'module':_0x1e812e};return this[_0x5197ca(0x13d)][_0x5197ca(0x16f)]()&&(_0x5ec6cc[_0x5197ca(0x124)]=!![]),await this[_0x5197ca(0x14d)][_0x5197ca(0x173)](_0x5ec6cc);}return'';}async[a11_0x25c977(0x175)](){const _0x316db4=a11_0x25c977;if((0x0,path_1[_0x316db4(0x140)])(this[_0x316db4(0x13c)]['request'][_0x316db4(0x14f)])){var _0x3884a3=(0x0,path_1[_0x316db4(0x12f)])(__dirname,_0x316db4(0x152)+this['ctx'][_0x316db4(0x13f)][_0x316db4(0x14f)][_0x316db4(0x130)]('/apiteststatic/','/'));if(_0x3884a3[_0x316db4(0x166)](_0x3884a3[_0x316db4(0x13e)]-0xb)!=_0x316db4(0x12e)){this[_0x316db4(0x13c)][_0x316db4(0x132)](_0x316db4(0x167),_0x316db4(0x160));if((0x0,path_1[_0x316db4(0x140)])(this[_0x316db4(0x13c)]['request'][_0x316db4(0x14f)])=='.js')this[_0x316db4(0x13c)][_0x316db4(0x132)](_0x316db4(0x16b),_0x316db4(0x134));else(0x0,path_1[_0x316db4(0x140)])(this[_0x316db4(0x13c)]['request'][_0x316db4(0x14f)])==_0x316db4(0x142)&&this['ctx']['set'](_0x316db4(0x16b),_0x316db4(0x14c));return(0x0,fs_1[_0x316db4(0x126)])(_0x3884a3)&&(0x0,fs_1[_0x316db4(0x13a)])(_0x3884a3,{'encoding':_0x316db4(0x15c)});}}return'';}};__decorate([(0x0,core_3[a11_0x25c977(0x14b)])(),__metadata(a11_0x25c977(0x131),Object)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x13c),void 0x0),__decorate([(0x0,core_3[a11_0x25c977(0x14b)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x13d),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x25c977(0x131),ApitestService)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x14d),void 0x0),__decorate([(0x0,core_3[a11_0x25c977(0x12d)])(a11_0x25c977(0x161)),__metadata(a11_0x25c977(0x131),Boolean)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x161),void 0x0),__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata(a11_0x25c977(0x131),Object)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x127),void 0x0),__decorate([(0x0,core_2[a11_0x25c977(0x128)])('/apitest'),__metadata(a11_0x25c977(0x131),Function),__metadata(a11_0x25c977(0x12c),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x25c977(0x129),null),__decorate([(0x0,core_2[a11_0x25c977(0x128)])(a11_0x25c977(0x15f)),__param(0x0,(0x0,core_2[a11_0x25c977(0x172)])('module')),__metadata(a11_0x25c977(0x131),Function),__metadata(a11_0x25c977(0x12c),[String]),__metadata(a11_0x25c977(0x16c),Promise)],ApitestStaticController[a11_0x25c977(0x151)],a11_0x25c977(0x170),null),__decorate([(0x0,core_2[a11_0x25c977(0x128)])(a11_0x25c977(0x139)),__metadata(a11_0x25c977(0x131),Function),__metadata(a11_0x25c977(0x12c),[]),__metadata(a11_0x25c977(0x16c),Promise)],ApitestStaticController['prototype'],a11_0x25c977(0x175),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a11_0x25c977(0x14e)])('/'),(0x0,core_3[a11_0x25c977(0x159)])(core_3[a11_0x25c977(0x145)]['Request'])],ApitestStaticController);function a11_0xc3b5(){const _0x3f2049=['__decorate','Param','apidoc','5259128lyfTpM','apiteststatic','6EVjHiK','2022192PElNyi','filepath','decorate','existsSync','config','Get','apitesthtml','devices','9iXRBdF','design:paramtypes','Config','/index.html','join','replace','design:type','set','4834120mUABva','application/javascript;\x20charset=utf-8','1378929syjPwb','object','method','metadata','/apiteststatic/*','readFileSync','/apiteststatic/','ctx','Environment','length','request','extname','constructor','.css','defineProperty','description','ScopeEnum','Singleton','1079688KeRRTZ','../../public/index.html','search','stringify','Inject','text/css;\x20charset=utf-8','ApitestService','Controller','url','anncicapi','prototype','../../public/','summary','__param','59535010jpwGjx','ApitestStaticController','function','routes','Scope','@midwayjs/core','363878CjvojV','utf-8','path','__apiList__','/apitest-:module','public,\x20max-age=604800','apitest','../helper/getRoutes','__esModule','Provide','toString','substring','cache-control','77FqpDma','push','(((.+)+)+)+$','content-type','design:returntype','route','getOwnPropertyDescriptor','isDevelopmentEnvironment','apitestmodule'];a11_0xc3b5=function(){return _0x3f2049;};return a11_0xc3b5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x507650=a12_0x55f4;(function(_0x15ca15,_0x322c96){const _0x553bf2=a12_0x55f4,_0x52ff7d=_0x15ca15();while(!![]){try{const _0xda15be=parseInt(_0x553bf2(0x21a))/0x1*(-parseInt(_0x553bf2(0x1fd))/0x2)+-parseInt(_0x553bf2(0x225))/0x3*(-parseInt(_0x553bf2(0x217))/0x4)+parseInt(_0x553bf2(0x1fe))/0x5*(parseInt(_0x553bf2(0x206))/0x6)+-parseInt(_0x553bf2(0x204))/0x7+-parseInt(_0x553bf2(0x230))/0x8+-parseInt(_0x553bf2(0x229))/0x9+parseInt(_0x553bf2(0x228))/0xa*(parseInt(_0x553bf2(0x22f))/0xb);if(_0xda15be===_0x322c96)break;else _0x52ff7d['push'](_0x52ff7d['shift']());}catch(_0x589a0b){_0x52ff7d['push'](_0x52ff7d['shift']());}}}(a12_0x5e6f,0xf1a5a));const a12_0x5b7de8=(function(){let _0x5cd7a3=!![];return function(_0xaa7ac1,_0x2ab22e){const _0x29a56f=_0x5cd7a3?function(){if(_0x2ab22e){const _0x358670=_0x2ab22e['apply'](_0xaa7ac1,arguments);return _0x2ab22e=null,_0x358670;}}:function(){};return _0x5cd7a3=![],_0x29a56f;};}()),a12_0x2d10b2=a12_0x5b7de8(this,function(){const _0x46622e=a12_0x55f4;return a12_0x2d10b2['toString']()[_0x46622e(0x22c)]('(((.+)+)+)+$')[_0x46622e(0x20f)]()[_0x46622e(0x222)](a12_0x2d10b2)[_0x46622e(0x22c)]('(((.+)+)+)+$');});a12_0x2d10b2();'use strict';var __decorate=this&&this['__decorate']||function(_0x42cb12,_0x49878f,_0x3a44e0,_0x2a0be8){const _0x2a185b=a12_0x55f4;var _0x338221=arguments['length'],_0x8a6a97=_0x338221<0x3?_0x49878f:_0x2a0be8===null?_0x2a0be8=Object[_0x2a185b(0x215)](_0x49878f,_0x3a44e0):_0x2a0be8,_0x426310;if(typeof Reflect==='object'&&typeof Reflect[_0x2a185b(0x1fa)]===_0x2a185b(0x219))_0x8a6a97=Reflect[_0x2a185b(0x1fa)](_0x42cb12,_0x49878f,_0x3a44e0,_0x2a0be8);else{for(var _0x33f926=_0x42cb12[_0x2a185b(0x235)]-0x1;_0x33f926>=0x0;_0x33f926--)if(_0x426310=_0x42cb12[_0x33f926])_0x8a6a97=(_0x338221<0x3?_0x426310(_0x8a6a97):_0x338221>0x3?_0x426310(_0x49878f,_0x3a44e0,_0x8a6a97):_0x426310(_0x49878f,_0x3a44e0))||_0x8a6a97;}return _0x338221>0x3&&_0x8a6a97&&Object[_0x2a185b(0x212)](_0x49878f,_0x3a44e0,_0x8a6a97),_0x8a6a97;},__metadata=this&&this[a12_0x507650(0x202)]||function(_0x532111,_0x385027){const _0x17e5de=a12_0x507650;if(typeof Reflect===_0x17e5de(0x21b)&&typeof Reflect[_0x17e5de(0x22d)]===_0x17e5de(0x219))return Reflect[_0x17e5de(0x22d)](_0x532111,_0x385027);};Object[a12_0x507650(0x212)](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x507650(0x203)),koasend=require('koa-send'),core_1=require(a12_0x507650(0x238));function a12_0x5e6f(){const _0x125f53=['endsWith','findRows','__metadata','exceljs','10479700JOlTNo','key','6CsRlFX','getWorksheet','random','value','getColumn','Api\x20Excel\x20Error:\x20','/public/xlsx/','YYYY/MM/DD','getAppDir','toString','frozen','Provide','defineProperty','xlsx','filter','getOwnPropertyDescriptor','getCell','15964CtskCS','replace','function','1246CSqUhZ','object','addRow','Workbook','addWorksheet','handler','header','get','constructor','eachCell','push','516cdwNkV','app','rowCount','10tHgzqA','12769704vInTck','mkdirSync','substring','search','metadata','col','41578009xVlskl','10989984tVZWQT','.xlsx','startsWith','cellCount','parse','length','Scope','log','@midwayjs/core','format','ExcelService','set','model','Singleton','design:type','decorate','worksheets','values','178hosWdB','4620565wXmZWF','keys'];a12_0x5e6f=function(){return _0x125f53;};return a12_0x5e6f();}function a12_0x55f4(_0x446b90,_0x2dfdaa){const _0x121751=a12_0x5e6f();return a12_0x55f4=function(_0x2d10b2,_0x5b7de8){_0x2d10b2=_0x2d10b2-0x1f4;let _0x5e6f46=_0x121751[_0x2d10b2];return _0x5e6f46;},a12_0x55f4(_0x446b90,_0x2dfdaa);}let ExcelService=exports[a12_0x507650(0x1f5)]=class ExcelService{async[a12_0x507650(0x234)](_0x42edb9,_0x2c6fa3,_0x2fdba3=[0x0]){const _0x90c6ac=a12_0x507650;var _0x32128e,_0x4b4463;const _0x24d9c7=new exceljs[(_0x90c6ac(0x21d))](),_0x46994b=[];let _0x5afc52=_0x42edb9['replace'](/(\\|\/)/g,'/')[_0x90c6ac(0x218)](/\/{2,}/g,'/');!(_0x5afc52===null||_0x5afc52===void 0x0?void 0x0:_0x5afc52[_0x90c6ac(0x232)]('/'))&&(_0x5afc52=this['app'][_0x90c6ac(0x20e)]()+'/'+_0x5afc52);try{await _0x24d9c7[_0x90c6ac(0x213)]['readFile'](_0x5afc52);}catch(_0x228992){return console[_0x90c6ac(0x237)](_0x90c6ac(0x20b)+_0x5afc52+'\x20is\x20read\x20fail'),_0x46994b;}for(const _0x2d9a64 of _0x2fdba3){const _0xd09afe=lodash['isNumber'](_0x2d9a64)?((_0x32128e=_0x24d9c7[_0x90c6ac(0x1fb)])===null||_0x32128e===void 0x0?void 0x0:_0x32128e[_0x2d9a64])||undefined:_0x24d9c7[_0x90c6ac(0x207)](_0x2d9a64);if(_0xd09afe){var _0x2fd08e=0x1;const _0x428e98=_0xd09afe['getRow'](0x1),_0x241021=await new Promise(_0x186e12=>{const _0x3fd5a4=_0x90c6ac,_0x1ec113={};_0x428e98[_0x3fd5a4(0x223)]((_0x354b13,_0xc13708)=>{const _0x24d7a5=_0x3fd5a4;for(const _0x5f4fff of _0x2c6fa3){if(_0x354b13['value']==_0x5f4fff[_0x24d7a5(0x220)])_0x2fd08e=0x2,_0x1ec113[_0x5f4fff[_0x24d7a5(0x205)]]={'header':_0x354b13[_0x24d7a5(0x22e)],'handler':_0x5f4fff['handler']};else{if(!_0x1ec113[_0x5f4fff['key']])try{const _0x51331e=_0x428e98&&_0x428e98[_0x24d7a5(0x216)](_0x5f4fff[_0x24d7a5(0x220)]);_0x51331e&&(_0x1ec113[_0x5f4fff['key']]={'header':_0x51331e['col'],'handler':_0x5f4fff[_0x24d7a5(0x21f)]});}catch{}}}_0x428e98[_0x24d7a5(0x233)]==_0xc13708&&_0x186e12(_0x1ec113);});});_0x33cacf:for(const _0x3716f6 of _0xd09afe[_0x90c6ac(0x201)](_0x2fd08e,_0xd09afe[_0x90c6ac(0x227)])){if(typeof(_0x3716f6===null||_0x3716f6===void 0x0?void 0x0:_0x3716f6[_0x90c6ac(0x216)])!='function')continue _0x33cacf;const _0x377711={};_0x58ef26:for(const _0x1d83c9 in _0x241021){if(_0x241021[_0x1d83c9][_0x90c6ac(0x220)]){const _0x6e2729=_0x3716f6['getCell'](_0x241021[_0x1d83c9][_0x90c6ac(0x220)]);if(!_0x6e2729)continue _0x58ef26;try{_0x6e2729[_0x90c6ac(0x20f)]();}catch(_0x5615c9){_0x6e2729[_0x90c6ac(0x20f)]=()=>{const _0x2dbe9d=_0x90c6ac;var _0x39808f;return''+(((_0x39808f=_0x6e2729===null||_0x6e2729===void 0x0?void 0x0:_0x6e2729[_0x2dbe9d(0x1f7)])===null||_0x39808f===void 0x0?void 0x0:_0x39808f[_0x2dbe9d(0x209)])||'');};}typeof((_0x4b4463=_0x241021[_0x1d83c9])===null||_0x4b4463===void 0x0?void 0x0:_0x4b4463[_0x90c6ac(0x21f)])==_0x90c6ac(0x219)?_0x377711[_0x1d83c9]=await _0x241021[_0x1d83c9]['handler'](lodash[_0x90c6ac(0x1f6)]({},_0x1d83c9,(_0x6e2729===null||_0x6e2729===void 0x0?void 0x0:_0x6e2729[_0x90c6ac(0x20f)]())||''),_0x6e2729[_0x90c6ac(0x1f7)]):_0x377711[_0x1d83c9]=(_0x6e2729===null||_0x6e2729===void 0x0?void 0x0:_0x6e2729['toString']())||'';}}Object[_0x90c6ac(0x1ff)](_0x377711)[_0x90c6ac(0x235)]>0x0&&Object[_0x90c6ac(0x1fc)](_0x377711)[_0x90c6ac(0x214)](_0x47afde=>_0x47afde!='')[_0x90c6ac(0x235)]>0x0&&_0x46994b[_0x90c6ac(0x224)](_0x377711);}}}return _0x46994b;}async['export'](_0x2645de,_0x1e0ff0,_0x2466e9,_0x127768,_0x85668c){const _0xdb2777=a12_0x507650;var _0x321df8,_0x4cc1c1;const _0x49fd9b=new exceljs[(_0xdb2777(0x21d))](),_0x47857c={},_0x1118ae=[],_0xfd32c3=_0x49fd9b[_0xdb2777(0x21e)]('Sheet\x201',{'views':[{'state':_0xdb2777(0x210),'ySplit':0x1}]});for(const _0x41ca7c in _0x1e0ff0){_0x47857c[_0x1e0ff0[_0x41ca7c][_0xdb2777(0x205)]]=_0x1e0ff0[_0x41ca7c]['header'],_0x1118ae[_0xdb2777(0x224)]({'header':_0x1e0ff0[_0x41ca7c][_0xdb2777(0x220)],'key':(_0x321df8=_0x1e0ff0[_0x41ca7c])===null||_0x321df8===void 0x0?void 0x0:_0x321df8[_0xdb2777(0x205)][_0xdb2777(0x218)](/\./g,'_')});}_0xfd32c3['columns']=_0x1118ae;for(const _0x4245f6 in _0x2466e9){const _0xa973e1=_0x2466e9[_0x4245f6],_0x25af27=_0xfd32c3[_0xdb2777(0x21c)]({});for(let _0x13012c in _0x1e0ff0){const _0x2859a1=_0x1e0ff0[_0x13012c][_0xdb2777(0x205)][_0xdb2777(0x218)](/\./g,'_'),_0x4ded3d=_0xfd32c3[_0xdb2777(0x20a)](_0x2859a1),_0x392f80=_0x25af27===null||_0x25af27===void 0x0?void 0x0:_0x25af27['getCell'](_0x2859a1);typeof((_0x4cc1c1=_0x1e0ff0[_0x13012c])===null||_0x4cc1c1===void 0x0?void 0x0:_0x4cc1c1[_0xdb2777(0x21f)])=='function'?_0x392f80[_0xdb2777(0x209)]=await _0x1e0ff0[_0x13012c]['handler'](_0xa973e1,{'row':_0x25af27,'col':_0x4ded3d,'cell':_0x392f80,'sheet':_0xfd32c3})||'':_0x392f80[_0xdb2777(0x209)]=lodash[_0xdb2777(0x221)](_0xa973e1,_0x1e0ff0[_0x13012c][_0xdb2777(0x205)],'');}}typeof _0x85668c==_0xdb2777(0x219)&&await _0x85668c({'workbook':_0x49fd9b,'worksheet':_0xfd32c3});let _0x3eb717='';const _0x3659b2=_0x2645de+'-'+lodash[_0xdb2777(0x208)](0x186a0,0xf423f)+_0xdb2777(0x231);if(_0x127768&&_0x127768[_0xdb2777(0x232)]('/'))_0x3eb717=''+_0x127768;else _0x127768&&!_0x127768['startsWith']('/')&&!_0x127768[_0xdb2777(0x232)]('\x5c')?_0x3eb717=this[_0xdb2777(0x226)][_0xdb2777(0x20e)]()+'/'+_0x127768:_0x3eb717=this['app']['getAppDir']()+_0xdb2777(0x20c)+dayjs()[_0xdb2777(0x1f4)](_0xdb2777(0x20d));return(_0x3eb717[_0xdb2777(0x200)]('/')||_0x3eb717[_0xdb2777(0x200)]('\x5c'))&&(_0x3eb717=_0x3eb717[_0xdb2777(0x22b)](0x0,_0x3eb717[_0xdb2777(0x235)]-0x1)),_0x3eb717=_0x3eb717[_0xdb2777(0x218)](/(\\|\/)/g,'/')[_0xdb2777(0x218)](/\/{2,}/g,'/'),!fs['existsSync'](_0x3eb717)&&fs[_0xdb2777(0x22a)](_0x3eb717,{'recursive':!![]}),await _0x49fd9b[_0xdb2777(0x213)]['writeFile']((_0x3eb717+'/'+_0x3659b2)[_0xdb2777(0x218)](/(\\|\/)/g,'/')[_0xdb2777(0x218)](/\/{2,}/g,'/')),{'filename':_0x3659b2,'filepath':(_0x3eb717[_0xdb2777(0x22b)]((''+this[_0xdb2777(0x226)]['getAppDir']())[_0xdb2777(0x235)])+'/'+_0x3659b2)[_0xdb2777(0x218)](/(\\|\/)/g,'/')[_0xdb2777(0x218)](/\/{2,}/g,'/')};}async['download'](_0x11d094,_0x1abda6){return await koasend(_0x11d094,''+_0x1abda6);}};__decorate([(0x0,core_1['App'])(),__metadata(a12_0x507650(0x1f9),Object)],ExcelService['prototype'],'app',void 0x0),exports[a12_0x507650(0x1f5)]=ExcelService=__decorate([(0x0,core_1[a12_0x507650(0x211)])(),(0x0,core_1[a12_0x507650(0x236)])(core_1['ScopeEnum'][a12_0x507650(0x1f8)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a13_0x2859(_0x569afd,_0x34c1c4){var _0xd85976=a13_0x1d58();return a13_0x2859=function(_0x32332a,_0x16306e){_0x32332a=_0x32332a-0xe2;var _0x1d589f=_0xd85976[_0x32332a];return _0x1d589f;},a13_0x2859(_0x569afd,_0x34c1c4);}function a13_0x1d58(){var _0x6cda38=['1937874JEAeax','__esModule','ACTION_KEY','anncic-api:action','AppsConfigTmp','319725Iiqaoa','anncic-api:apps:config','6vhZtwC','1510165HKuJzv','444280iJFyox','APPSCONFIG_KEY','anncic-api:action:route','constructor','2091144yNBiLW','toString','search','564192vuLTlv','defineProperty','(((.+)+)+)+$','ACTION_ROUTE_KEY','144557qpjsLB'];a13_0x1d58=function(){return _0x6cda38;};return a13_0x1d58();}var a13_0x5d8dfa=a13_0x2859;(function(_0x1b2d83,_0x169841){var _0x57ac4b=a13_0x2859,_0xf985b7=_0x1b2d83();while(!![]){try{var _0x7934ac=-parseInt(_0x57ac4b(0xe3))/0x1+-parseInt(_0x57ac4b(0xeb))/0x2*(-parseInt(_0x57ac4b(0xf4))/0x3)+parseInt(_0x57ac4b(0xed))/0x4+parseInt(_0x57ac4b(0xec))/0x5+-parseInt(_0x57ac4b(0xe4))/0x6+parseInt(_0x57ac4b(0xe9))/0x7+-parseInt(_0x57ac4b(0xf1))/0x8;if(_0x7934ac===_0x169841)break;else _0xf985b7['push'](_0xf985b7['shift']());}catch(_0x3869de){_0xf985b7['push'](_0xf985b7['shift']());}}}(a13_0x1d58,0x47c99));var a13_0x16306e=(function(){var _0x3b6686=!![];return function(_0x2dbcec,_0x52737f){var _0xde8303=_0x3b6686?function(){if(_0x52737f){var _0x2889ee=_0x52737f['apply'](_0x2dbcec,arguments);return _0x52737f=null,_0x2889ee;}}:function(){};return _0x3b6686=![],_0xde8303;};}()),a13_0x32332a=a13_0x16306e(this,function(){var _0x7c5f47=a13_0x2859;return a13_0x32332a['toString']()[_0x7c5f47(0xf3)](_0x7c5f47(0xf6))[_0x7c5f47(0xf2)]()[_0x7c5f47(0xf0)](a13_0x32332a)[_0x7c5f47(0xf3)]('(((.+)+)+)+$');});a13_0x32332a();'use strict';Object[a13_0x5d8dfa(0xf5)](exports,a13_0x5d8dfa(0xe5),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x5d8dfa(0xee)]=exports[a13_0x5d8dfa(0xe2)]=exports[a13_0x5d8dfa(0xe6)]=void 0x0,exports[a13_0x5d8dfa(0xe6)]=a13_0x5d8dfa(0xe7),exports[a13_0x5d8dfa(0xe2)]=a13_0x5d8dfa(0xef),exports[a13_0x5d8dfa(0xee)]=a13_0x5d8dfa(0xea);class AppsConfigTmp{}exports[a13_0x5d8dfa(0xe8)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x33a738=a14_0x3fb7;(function(_0x196dd5,_0x30fe14){var _0x42691b=a14_0x3fb7,_0x2465bc=_0x196dd5();while(!![]){try{var _0xe32932=-parseInt(_0x42691b(0xa6))/0x1*(parseInt(_0x42691b(0xb2))/0x2)+-parseInt(_0x42691b(0xa8))/0x3+parseInt(_0x42691b(0x95))/0x4*(-parseInt(_0x42691b(0x9c))/0x5)+parseInt(_0x42691b(0x97))/0x6+parseInt(_0x42691b(0xb0))/0x7+-parseInt(_0x42691b(0xa4))/0x8*(parseInt(_0x42691b(0x98))/0x9)+parseInt(_0x42691b(0x96))/0xa;if(_0xe32932===_0x30fe14)break;else _0x2465bc['push'](_0x2465bc['shift']());}catch(_0x478cc2){_0x2465bc['push'](_0x2465bc['shift']());}}}(a14_0x44dc,0xc3389));var a14_0xe99ded=(function(){var _0x42fec2=!![];return function(_0x3ca824,_0x1eb5b5){var _0x24afb1=_0x42fec2?function(){if(_0x1eb5b5){var _0x2534f7=_0x1eb5b5['apply'](_0x3ca824,arguments);return _0x1eb5b5=null,_0x2534f7;}}:function(){};return _0x42fec2=![],_0x24afb1;};}()),a14_0x1940f7=a14_0xe99ded(this,function(){var _0x291723=a14_0x3fb7;return a14_0x1940f7['toString']()[_0x291723(0xaa)]('(((.+)+)+)+$')[_0x291723(0xa9)]()[_0x291723(0x9b)](a14_0x1940f7)[_0x291723(0xaa)]('(((.+)+)+)+$');});function a14_0x44dc(){var _0x1e996c=['number','_page','__decorate','metadata','getOwnPropertyDescriptor','12ChoXDW','26477530XhuEAx','8634444AYbDgS','2999421AsDVaJ','string','RuleType','constructor','2489630xFJUKc','排序方式','valid','trim','object','__metadata','Rule','__esModule','32AsyiLC','_order','1KtQDIg','decorate','1665324dNNyLa','toString','search','function','分页数量','@anncic-api/validator','length','integer','8405089kAXSEh','design:type','2211934aDATgx','defineProperty','第一页为1,第二页为2','prototype','是否倒序'];a14_0x44dc=function(){return _0x1e996c;};return a14_0x44dc();}a14_0x1940f7();function a14_0x3fb7(_0x25ae81,_0x36e638){var _0x58654c=a14_0x44dc();return a14_0x3fb7=function(_0x1940f7,_0xe99ded){_0x1940f7=_0x1940f7-0x8d;var _0x44dcc2=_0x58654c[_0x1940f7];return _0x44dcc2;},a14_0x3fb7(_0x25ae81,_0x36e638);}'use strict';var __decorate=this&&this[a14_0x33a738(0x92)]||function(_0x5a5856,_0x5d444f,_0x1ad59b,_0x23765d){var _0x2e7e0d=a14_0x33a738,_0x3465b2=arguments[_0x2e7e0d(0xae)],_0x540be1=_0x3465b2<0x3?_0x5d444f:_0x23765d===null?_0x23765d=Object[_0x2e7e0d(0x94)](_0x5d444f,_0x1ad59b):_0x23765d,_0x2833f2;if(typeof Reflect===_0x2e7e0d(0xa0)&&typeof Reflect[_0x2e7e0d(0xa7)]===_0x2e7e0d(0xab))_0x540be1=Reflect['decorate'](_0x5a5856,_0x5d444f,_0x1ad59b,_0x23765d);else{for(var _0xee4704=_0x5a5856[_0x2e7e0d(0xae)]-0x1;_0xee4704>=0x0;_0xee4704--)if(_0x2833f2=_0x5a5856[_0xee4704])_0x540be1=(_0x3465b2<0x3?_0x2833f2(_0x540be1):_0x3465b2>0x3?_0x2833f2(_0x5d444f,_0x1ad59b,_0x540be1):_0x2833f2(_0x5d444f,_0x1ad59b))||_0x540be1;}return _0x3465b2>0x3&&_0x540be1&&Object['defineProperty'](_0x5d444f,_0x1ad59b,_0x540be1),_0x540be1;},__metadata=this&&this[a14_0x33a738(0xa1)]||function(_0x181994,_0x421a27){var _0x5c7e1f=a14_0x33a738;if(typeof Reflect===_0x5c7e1f(0xa0)&&typeof Reflect[_0x5c7e1f(0x93)]===_0x5c7e1f(0xab))return Reflect[_0x5c7e1f(0x93)](_0x181994,_0x421a27);};Object[a14_0x33a738(0xb3)](exports,a14_0x33a738(0xa3),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a14_0x33a738(0xad));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])('分页',validator_1['RuleType'][a14_0x33a738(0x90)]()[a14_0x33a738(0xaf)]()['min'](0x1),a14_0x33a738(0x8d)),__metadata(a14_0x33a738(0xb1),Number)],PageDTO[a14_0x33a738(0x8e)],a14_0x33a738(0x91),void 0x0),__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])(a14_0x33a738(0xac),validator_1[a14_0x33a738(0x9a)][a14_0x33a738(0x90)]()[a14_0x33a738(0xaf)]()['min'](0x1)),__metadata(a14_0x33a738(0xb1),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])(a14_0x33a738(0x9d),validator_1[a14_0x33a738(0x9a)][a14_0x33a738(0x99)]()[a14_0x33a738(0x9f)]()),__metadata(a14_0x33a738(0xb1),String)],PageDTO[a14_0x33a738(0x8e)],a14_0x33a738(0xa5),void 0x0),__decorate([(0x0,validator_1[a14_0x33a738(0xa2)])(a14_0x33a738(0x8f),validator_1['RuleType'][a14_0x33a738(0x90)]()[a14_0x33a738(0xaf)]()[a14_0x33a738(0x9e)](0x0,0x1),'1:是;0:否'),__metadata(a14_0x33a738(0xb1),Number)],PageDTO[a14_0x33a738(0x8e)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x231b38=a15_0x48ee;function a15_0x48ee(_0x546518,_0x238bd5){var _0x1f8351=a15_0x1738();return a15_0x48ee=function(_0xb1210e,_0x49383f){_0xb1210e=_0xb1210e-0x1e6;var _0x173876=_0x1f8351[_0xb1210e];return _0x173876;},a15_0x48ee(_0x546518,_0x238bd5);}(function(_0x37f74d,_0x26cd78){var _0x3f40f3=a15_0x48ee,_0x64f4a7=_0x37f74d();while(!![]){try{var _0x1a2510=-parseInt(_0x3f40f3(0x1e7))/0x1*(-parseInt(_0x3f40f3(0x1f9))/0x2)+-parseInt(_0x3f40f3(0x1f7))/0x3+-parseInt(_0x3f40f3(0x1f3))/0x4*(-parseInt(_0x3f40f3(0x1eb))/0x5)+parseInt(_0x3f40f3(0x1f2))/0x6*(-parseInt(_0x3f40f3(0x1f0))/0x7)+parseInt(_0x3f40f3(0x1ef))/0x8*(-parseInt(_0x3f40f3(0x1ee))/0x9)+-parseInt(_0x3f40f3(0x1e9))/0xa*(parseInt(_0x3f40f3(0x1e8))/0xb)+parseInt(_0x3f40f3(0x1f8))/0xc;if(_0x1a2510===_0x26cd78)break;else _0x64f4a7['push'](_0x64f4a7['shift']());}catch(_0x47c14a){_0x64f4a7['push'](_0x64f4a7['shift']());}}}(a15_0x1738,0x82f72));var a15_0x49383f=(function(){var _0x51c2a7=!![];return function(_0x467970,_0x359e10){var _0x38ee9e=_0x51c2a7?function(){if(_0x359e10){var _0x3b403a=_0x359e10['apply'](_0x467970,arguments);return _0x359e10=null,_0x3b403a;}}:function(){};return _0x51c2a7=![],_0x38ee9e;};}()),a15_0xb1210e=a15_0x49383f(this,function(){var _0x339c6a=a15_0x48ee;return a15_0xb1210e['toString']()[_0x339c6a(0x1f1)](_0x339c6a(0x1e6))[_0x339c6a(0x1f5)]()[_0x339c6a(0x1ec)](a15_0xb1210e)[_0x339c6a(0x1f1)](_0x339c6a(0x1e6));});a15_0xb1210e();function a15_0x1738(){var _0x5ced33=['6IUlPXo','122036mZtMTi','InterceptTargetTmp','toString','defineProperty','315075PCAagb','12384780DymbzP','7516GUkXfq','(((.+)+)+)+$','184CCnIkX','11qKznju','4180910SCxwlo','anncic-api:intercept','30PJCbIB','constructor','INTERCEPT_KEY','2894643aNABJf','8kOeRmL','3677898lUDAmb','search'];a15_0x1738=function(){return _0x5ced33;};return a15_0x1738();}'use strict';Object[a15_0x231b38(0x1f6)](exports,'__esModule',{'value':!![]}),exports[a15_0x231b38(0x1f4)]=exports[a15_0x231b38(0x1ed)]=void 0x0,exports['INTERCEPT_KEY']=a15_0x231b38(0x1ea);class InterceptTargetTmp{}exports[a15_0x231b38(0x1f4)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.3.
|
|
21
|
-
"@anncic-api/core": "^3.3.
|
|
22
|
-
"@anncic-api/event": "^3.3.
|
|
23
|
-
"@anncic-api/typeorm": "^3.3.
|
|
24
|
-
"@anncic-api/validator": "^3.3.
|
|
20
|
+
"@anncic-api/cache": "^3.3.6",
|
|
21
|
+
"@anncic-api/core": "^3.3.6",
|
|
22
|
+
"@anncic-api/event": "^3.3.6",
|
|
23
|
+
"@anncic-api/typeorm": "^3.3.6",
|
|
24
|
+
"@anncic-api/validator": "^3.3.6",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.3.
|
|
29
|
+
"anncic-apihelper": "^3.3.6",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "f7a0c9ae8daca8fee1103c42fb12aaf3c887d405"
|
|
39
39
|
}
|