anncic-api 1.5.8 → 1.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x15f6(){var _0x86725c=['json','xml','text','apply','dhauo1234420123gg3234901','20mb','2220770kJtneQ','12tNXvlr','toString','2726916GVNgXk','form','constructor','18GBdpIk','3TCSVfn','6164384ukdWwB','1215758zEwfBP','search','appDir','1815EjWVPU','7gbjxHi','__esModule','18028dAFuym','defineProperty','1473972FQqmdg','default','(((.+)+)+)+$','26240049HehzXa','name'];a0_0x15f6=function(){return _0x86725c;};return a0_0x15f6();}var a0_0xd764d6=a0_0x4765;(function(_0x4a01e0,_0x5c21a1){var _0x4505eb=a0_0x4765,_0x3fbacd=_0x4a01e0();while(!![]){try{var _0xd14a44=parseInt(_0x4505eb(0x119))/0x1+parseInt(_0x4505eb(0x111))/0x2*(-parseInt(_0x4505eb(0x10f))/0x3)+-parseInt(_0x4505eb(0x117))/0x4*(-parseInt(_0x4505eb(0x114))/0x5)+-parseInt(_0x4505eb(0x10b))/0x6+parseInt(_0x4505eb(0x115))/0x7*(parseInt(_0x4505eb(0x110))/0x8)+parseInt(_0x4505eb(0x10e))/0x9*(parseInt(_0x4505eb(0x108))/0xa)+-parseInt(_0x4505eb(0x11c))/0xb*(parseInt(_0x4505eb(0x109))/0xc);if(_0xd14a44===_0x5c21a1)break;else _0x3fbacd['push'](_0x3fbacd['shift']());}catch(_0xc8d68){_0x3fbacd['push'](_0x3fbacd['shift']());}}}(a0_0x15f6,0xd615b));function a0_0x4765(_0xba05b,_0x2f9fdb){var _0x4f5d05=a0_0x15f6();return a0_0x4765=function(_0xd1b92f,_0x126a44){_0xd1b92f=_0xd1b92f-0x105;var _0x15f6b9=_0x4f5d05[_0xd1b92f];return _0x15f6b9;},a0_0x4765(_0xba05b,_0x2f9fdb);}var a0_0x126a44=(function(){var _0x3deb3e=!![];return function(_0xac690e,_0x24623b){var _0x24eec4=_0x3deb3e?function(){var _0x2704fe=a0_0x4765;if(_0x24623b){var _0x4d61ae=_0x24623b[_0x2704fe(0x105)](_0xac690e,arguments);return _0x24623b=null,_0x4d61ae;}}:function(){};return _0x3deb3e=![],_0x24eec4;};}()),a0_0xd1b92f=a0_0x126a44(this,function(){var _0x3b3cc0=a0_0x4765;return a0_0xd1b92f[_0x3b3cc0(0x10a)]()['search'](_0x3b3cc0(0x11b))[_0x3b3cc0(0x10a)]()[_0x3b3cc0(0x10d)](a0_0xd1b92f)[_0x3b3cc0(0x112)](_0x3b3cc0(0x11b));});a0_0xd1b92f();'use strict';Object[a0_0xd764d6(0x118)](exports,a0_0xd764d6(0x116),{'value':!![]}),exports[a0_0xd764d6(0x11a)]=_0x8a63b0=>{var _0xa0b0aa=a0_0xd764d6;return{'apitest':!![],'keys':_0x8a63b0[_0xa0b0aa(0x11d)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0xa0b0aa(0x106),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0xa0b0aa(0x11e),_0xa0b0aa(0x10c),_0xa0b0aa(0x120),_0xa0b0aa(0x11f)],'formLimit':_0xa0b0aa(0x107),'jsonLimit':_0xa0b0aa(0x107),'textLimit':_0xa0b0aa(0x107),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x8a63b0[_0xa0b0aa(0x113)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x2d5d92=a1_0x106c;function a1_0x106c(_0x380031,_0xac489d){var _0x3a2978=a1_0x4b4a();return a1_0x106c=function(_0x49e27d,_0x10cd26){_0x49e27d=_0x49e27d-0xa2;var _0x4b4a4e=_0x3a2978[_0x49e27d];return _0x4b4a4e;},a1_0x106c(_0x380031,_0xac489d);}(function(_0x59c507,_0x35c036){var _0x57532b=a1_0x106c,_0x248316=_0x59c507();while(!![]){try{var _0x3d1526=-parseInt(_0x57532b(0xac))/0x1*(-parseInt(_0x57532b(0xae))/0x2)+parseInt(_0x57532b(0xad))/0x3*(-parseInt(_0x57532b(0xa6))/0x4)+parseInt(_0x57532b(0xa2))/0x5+parseInt(_0x57532b(0xab))/0x6+-parseInt(_0x57532b(0xa8))/0x7*(-parseInt(_0x57532b(0xa4))/0x8)+parseInt(_0x57532b(0xaf))/0x9+-parseInt(_0x57532b(0xa9))/0xa;if(_0x3d1526===_0x35c036)break;else _0x248316['push'](_0x248316['shift']());}catch(_0x5c3648){_0x248316['push'](_0x248316['shift']());}}}(a1_0x4b4a,0xae39a));function a1_0x4b4a(){var _0x24b6c0=['1779705YHUyio','apply','(((.+)+)+)+$','constructor','1321335YSoUhL','default','56CCYQOO','search','120340yGpPpP','toString','682171fxKFMr','12393900SYFAyn','__esModule','6205758KvlMIc','26800UPbdmd','108ydblJk','64BjuTkv'];a1_0x4b4a=function(){return _0x24b6c0;};return a1_0x4b4a();}var a1_0x10cd26=(function(){var _0x582e5d=!![];return function(_0x46699d,_0x24f668){var _0x1cb554=_0x582e5d?function(){var _0x492708=a1_0x106c;if(_0x24f668){var _0x178768=_0x24f668[_0x492708(0xb0)](_0x46699d,arguments);return _0x24f668=null,_0x178768;}}:function(){};return _0x582e5d=![],_0x1cb554;};}()),a1_0x49e27d=a1_0x10cd26(this,function(){var _0x48b696=a1_0x106c;return a1_0x49e27d[_0x48b696(0xa7)]()[_0x48b696(0xa5)](_0x48b696(0xb1))[_0x48b696(0xa7)]()[_0x48b696(0xb2)](a1_0x49e27d)[_0x48b696(0xa5)]('(((.+)+)+)+$');});a1_0x49e27d();'use strict';Object['defineProperty'](exports,a1_0x2d5d92(0xaa),{'value':!![]}),exports[a1_0x2d5d92(0xa3)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0xaa0b83=a2_0x3295;(function(_0x238e60,_0x515128){const _0x23ac58=a2_0x3295,_0x3682cf=_0x238e60();while(!![]){try{const _0x3df7f7=-parseInt(_0x23ac58(0x1f5))/0x1*(parseInt(_0x23ac58(0x1e9))/0x2)+parseInt(_0x23ac58(0x25b))/0x3+-parseInt(_0x23ac58(0x239))/0x4*(parseInt(_0x23ac58(0x265))/0x5)+-parseInt(_0x23ac58(0x241))/0x6+parseInt(_0x23ac58(0x209))/0x7+parseInt(_0x23ac58(0x233))/0x8*(-parseInt(_0x23ac58(0x22d))/0x9)+parseInt(_0x23ac58(0x1f4))/0xa*(parseInt(_0x23ac58(0x220))/0xb);if(_0x3df7f7===_0x515128)break;else _0x3682cf['push'](_0x3682cf['shift']());}catch(_0x28568c){_0x3682cf['push'](_0x3682cf['shift']());}}}(a2_0x3eae,0x5a3cb));const a2_0x2f28c2=(function(){let _0x25e1bf=!![];return function(_0x442e81,_0x2734b7){const _0x413088=_0x25e1bf?function(){const _0x1b9454=a2_0x3295;if(_0x2734b7){const _0x3b1070=_0x2734b7[_0x1b9454(0x205)](_0x442e81,arguments);return _0x2734b7=null,_0x3b1070;}}:function(){};return _0x25e1bf=![],_0x413088;};}()),a2_0x2e4cc8=a2_0x2f28c2(this,function(){const _0x309317=a2_0x3295;return a2_0x2e4cc8[_0x309317(0x1fc)]()['search'](_0x309317(0x216))[_0x309317(0x1fc)]()['constructor'](a2_0x2e4cc8)['search'](_0x309317(0x216));});a2_0x2e4cc8();'use strict';var __decorate=this&&this[a2_0xaa0b83(0x22b)]||function(_0x45e9c2,_0x3f8a56,_0x764f9f,_0x413326){const _0x20e6bb=a2_0xaa0b83;var _0x2c497b=arguments[_0x20e6bb(0x237)],_0xc8090b=_0x2c497b<0x3?_0x3f8a56:_0x413326===null?_0x413326=Object[_0x20e6bb(0x240)](_0x3f8a56,_0x764f9f):_0x413326,_0x3201bd;if(typeof Reflect===_0x20e6bb(0x23d)&&typeof Reflect['decorate']==='function')_0xc8090b=Reflect[_0x20e6bb(0x1f7)](_0x45e9c2,_0x3f8a56,_0x764f9f,_0x413326);else{for(var _0x4cd51b=_0x45e9c2[_0x20e6bb(0x237)]-0x1;_0x4cd51b>=0x0;_0x4cd51b--)if(_0x3201bd=_0x45e9c2[_0x4cd51b])_0xc8090b=(_0x2c497b<0x3?_0x3201bd(_0xc8090b):_0x2c497b>0x3?_0x3201bd(_0x3f8a56,_0x764f9f,_0xc8090b):_0x3201bd(_0x3f8a56,_0x764f9f))||_0xc8090b;}return _0x2c497b>0x3&&_0xc8090b&&Object[_0x20e6bb(0x1ed)](_0x3f8a56,_0x764f9f,_0xc8090b),_0xc8090b;},__metadata=this&&this[a2_0xaa0b83(0x1ff)]||function(_0x24e3cf,_0x37cd66){const _0x74ab0f=a2_0xaa0b83;if(typeof Reflect===_0x74ab0f(0x23d)&&typeof Reflect[_0x74ab0f(0x243)]===_0x74ab0f(0x25c))return Reflect[_0x74ab0f(0x243)](_0x24e3cf,_0x37cd66);};function a2_0x3eae(){const _0x31e75d=['handlerActionRoute','./config/config.default','文件不存在','koa-send','method','registerMethodHandler','dirs','.log','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','devices','(((.+)+)+)+$','attachment','CustomConfiguration','Configuration','mkdirSync','environment','defineProperties','log','/runtime','design:type','2155010DHtmdk','App','isArray','context','onReady','handler','ACTION_ROUTE_KEY','headers','@anncic-api/validator','staticFile','InterceptTargetTmp','__decorate','@midwayjs/koa','203733GCPPSP','_matchedRoute','getConfiguration','isClass','intercept','requestContext','232yailop','prototype','getApplications','DEFAULT','length','@anncic-api/event','20ZIBXQD','device','isString','getAppDir','object','app','-log','getOwnPropertyDescriptor','765624lSQKmV','@midwayjs/upload','metadata','hanlderApplications','@midwayjs/i18n','__esModule','isNull','existsSync','apimit','clients','forEach','readdirSync','anncicapi','checkConfigKeys','@midwayjs/core','/apps','application','REQUEST_OBJ_CTX_KEY','./exception/ApiError','midwayLogger','keys','string','isFunction','HEADERS_SIGNATURE','ApiService','anncic-api','171783pIvOAC','function','anncic-apihelper','target','MidwayEnvironmentService','INTERCEPT_KEY','decorator','Anncic-api\x20static-file\x20:\x20mkdir\x20','Inject','getBaseDir','156535teGUGK','addObject','toLowerCase','78548PMWYbH','dir','undefined','MidwayConfigService','defineProperty','input','@anncic-api/typeorm','@midwayjs/cross-domain','isDirectory','query','filterConfig','80CuHKmZ','16GMATxO','body','decorate','config','args','defaultsDeep','@anncic-api/core','toString','assign','statSync','__metadata','upload','tmpdir','get','bodyXml','checksign','apply','Types','/apps/','MidwayDecoratorService','2198462xQALnC','request','match'];a2_0x3eae=function(){return _0x31e75d;};return a2_0x3eae();}function a2_0x3295(_0x5d0fe8,_0x3a32ce){const _0x5ed678=a2_0x3eae();return a2_0x3295=function(_0x2e4cc8,_0x2f28c2){_0x2e4cc8=_0x2e4cc8-0x1e8;let _0x3eae39=_0x5ed678[_0x2e4cc8];return _0x3eae39;},a2_0x3295(_0x5d0fe8,_0x3a32ce);}Object[a2_0xaa0b83(0x1ed)](exports,a2_0xaa0b83(0x246),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0xaa0b83(0x24f)),core_2=require(a2_0xaa0b83(0x24f)),ApiError_1=require(a2_0xaa0b83(0x253)),ApiService_1=require('./service/ApiService'),action_1=require('./types/action'),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0xaa0b83(0x20f)),koa=require(a2_0xaa0b83(0x22c)),i18n=require(a2_0xaa0b83(0x245)),upload=require(a2_0xaa0b83(0x242)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0xaa0b83(0x1f0)),ConfigDefault=require(a2_0xaa0b83(0x20d)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0xaa0b83(0x1fb)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0xaa0b83(0x238)),anncicTypeorm=require(a2_0xaa0b83(0x1ef)),anncicValidator=require(a2_0xaa0b83(0x228)),anncicHelper=require(a2_0xaa0b83(0x25d));let CustomConfiguration=class CustomConfiguration{async[a2_0xaa0b83(0x224)](){const _0x58fbaf=a2_0xaa0b83;await this[_0x58fbaf(0x1f3)](),await this['loggerConfig'](),await this[_0x58fbaf(0x24e)](),await this[_0x58fbaf(0x20c)](),await this['hanlderApplications']();}async[a2_0xaa0b83(0x24e)](){}async[a2_0xaa0b83(0x20c)](){const _0x5432b9=a2_0xaa0b83,_0x34c9a5=(0x0,core_1['getClassMetadata'])(intercept_1[_0x5432b9(0x260)],intercept_1[_0x5432b9(0x22a)])||{};this[_0x5432b9(0x261)][_0x5432b9(0x211)](action_1[_0x5432b9(0x226)],_0x46c79b=>{const _0x1ba97b=_0x5432b9,_0x3ef07b=_0x46c79b[_0x1ba97b(0x243)];return{'before':async _0x5eb722=>{const _0x2d527c=_0x1ba97b;var _0x3de26f,_0x228767;const _0x102d00=(_0x3de26f=_0x5eb722===null||_0x5eb722===void 0x0?void 0x0:_0x5eb722[_0x2d527c(0x25e)])===null||_0x3de26f===void 0x0?void 0x0:_0x3de26f[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x102d00&&(_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x2d527c(0x249)])){if(!this[_0x2d527c(0x259)][_0x2d527c(0x204)]((_0x228767=_0x102d00===null||_0x102d00===void 0x0?void 0x0:_0x102d00['request'])===null||_0x228767===void 0x0?void 0x0:_0x228767[_0x2d527c(0x227)]))throw new AnnError(ApiError_1['ApiError'][_0x2d527c(0x258)]);}},'around':async _0x5ec50f=>{const _0x32e34b=_0x1ba97b;var _0x3dbcd9,_0x11d0b9,_0xf9f1f1;const _0x22d19c=(_0x3dbcd9=_0x5ec50f===null||_0x5ec50f===void 0x0?void 0x0:_0x5ec50f[_0x32e34b(0x25e)])===null||_0x3dbcd9===void 0x0?void 0x0:_0x3dbcd9[core_2[_0x32e34b(0x252)]];if(_0x22d19c&&(_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x32e34b(0x249)])&&((_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x32e34b(0x231)])||typeof(_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x32e34b(0x231)])==_0x32e34b(0x1eb))){if(((_0x11d0b9=_0x22d19c[_0x32e34b(0x227)])===null||_0x11d0b9===void 0x0?void 0x0:_0x11d0b9[_0x32e34b(0x23a)])&&((_0xf9f1f1=_0x34c9a5===null||_0x34c9a5===void 0x0?void 0x0:_0x34c9a5[_0x22d19c['headers'][_0x32e34b(0x23a)]])===null||_0xf9f1f1===void 0x0?void 0x0:_0xf9f1f1['length'])>0x0)for(const _0x85ae82 of _0x34c9a5[_0x22d19c[_0x32e34b(0x227)]['device']]||[]){if(core_1[_0x32e34b(0x206)][_0x32e34b(0x230)](_0x85ae82)){const _0xf99435=await _0x22d19c[_0x32e34b(0x232)]['getAsync'](_0x85ae82);typeof(_0xf99435===null||_0xf99435===void 0x0?void 0x0:_0xf99435[_0x32e34b(0x20b)])=='function'?await _0xf99435[_0x32e34b(0x20b)](_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])==_0x32e34b(0x256)&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c['_matchedRoute'])?_0x22d19c[_0x32e34b(0x210)]['toLowerCase']()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b)&&await _0xf99435[_0x32e34b(0x225)](_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])=='string'&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)])?_0x22d19c[_0x32e34b(0x210)][_0x32e34b(0x1e8)]()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b):await _0xf99435[_0x32e34b(0x225)](_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])==_0x32e34b(0x256)&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)])?_0x22d19c[_0x32e34b(0x210)][_0x32e34b(0x1e8)]()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b);}else core_1['Types'][_0x32e34b(0x257)](_0x85ae82)&&await _0x85ae82(_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])==_0x32e34b(0x256)&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)])?_0x22d19c[_0x32e34b(0x210)]['toLowerCase']()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b);}}return await _0x5ec50f['proceed'](..._0x5ec50f[_0x32e34b(0x1f9)]);},'afterThrow':(_0x516f4e,_0x4368ca)=>{throw _0x4368ca;}};});}async[a2_0xaa0b83(0x244)](){const _0x5a3de2=a2_0xaa0b83;this[_0x5a3de2(0x251)][_0x5a3de2(0x235)](['koa'])[_0x5a3de2(0x24b)](_0x49ea9a=>{const _0x4750da=_0x5a3de2;(_0x49ea9a===null||_0x49ea9a===void 0x0?void 0x0:_0x49ea9a['context'])&&Object[_0x4750da(0x21c)](_0x49ea9a[_0x4750da(0x223)],{'ok':{'value':function(_0xe95d1c,_0x20be74,_0x2a8ebb=0x0){return{'code':_0x2a8ebb,'data':_0xe95d1c,'extra':_0x20be74};}},'input':{'value':function(_0x5ed266,_0x2b694e){const _0x4538c7=_0x4750da;var _0x2f6566;const _0xc58e8d=lodash[_0x4538c7(0x1fa)]({},this['request']['body']||this[_0x4538c7(0x20a)][((_0x2f6566=config===null||config===void 0x0?void 0x0:config[_0x4538c7(0x203)])===null||_0x2f6566===void 0x0?void 0x0:_0x2f6566['key'])||_0x4538c7(0x1f6)]||{},this[_0x4538c7(0x20a)][_0x4538c7(0x1f2)]||{});return _0x5ed266?lodash[_0x4538c7(0x202)](_0xc58e8d,_0x5ed266,_0x2b694e):_0xc58e8d;}},'when':{'value':async function(_0xc0efd,_0x4f97fe){const _0x5c4a61=_0x4750da,_0x3e4e86=this[_0x5c4a61(0x1ee)](_0xc0efd,null);if(!lodash[_0x5c4a61(0x247)](_0x3e4e86))return await _0x4f97fe(_0x3e4e86);}},'only':{'value':function(_0xd303ea){const _0x2a754e=_0x4750da,_0x223e18={};for(let _0x36d947=0x0;_0x36d947<_0xd303ea[_0x2a754e(0x237)];_0x36d947++){lodash[_0x2a754e(0x222)](_0xd303ea[_0x36d947])&&_0xd303ea[_0x36d947][_0x2a754e(0x237)]>0x0&&lodash[_0x2a754e(0x23b)](_0xd303ea[_0x36d947][0x0])&&(_0x223e18[_0xd303ea[_0x36d947][0x0]]=this[_0x2a754e(0x1ee)](_0xd303ea[_0x36d947][0x0],_0xd303ea[_0x36d947]['length']>0x1?_0xd303ea[_0x36d947][0x1]:null));}return _0x223e18;}},'koasend':{'value':function(_0x3129b9,_0x220ee9){const _0xa15be=_0x4750da;if(!fs[_0xa15be(0x248)](this[_0xa15be(0x23e)][_0xa15be(0x23c)]()+'/'+_0x3129b9))return _0xa15be(0x20e);return this[_0xa15be(0x217)](_0x220ee9||_0x3129b9),koasend(this,_0x3129b9);}}});});}async['loggerConfig'](){const _0x429e68=a2_0xaa0b83;var _0x1aba69,_0x828e5f;if(fs['existsSync'](this[_0x429e68(0x23e)]['getBaseDir']()+'/apps')&&fs[_0x429e68(0x1fe)](this[_0x429e68(0x23e)][_0x429e68(0x264)]()+_0x429e68(0x250))[_0x429e68(0x1f1)]()){const _0x7ab69c=this[_0x429e68(0x1f8)][_0x429e68(0x22f)](),_0x1bae07=((_0x1aba69=_0x7ab69c===null||_0x7ab69c===void 0x0?void 0x0:_0x7ab69c['midwayLogger'])===null||_0x1aba69===void 0x0?void 0x0:_0x1aba69['clients'])||{};for(const _0x94334f of fs[_0x429e68(0x24c)](this[_0x429e68(0x23e)][_0x429e68(0x264)]()+_0x429e68(0x250))){if(!fs[_0x429e68(0x1fe)](this[_0x429e68(0x23e)][_0x429e68(0x264)]()+_0x429e68(0x207)+_0x94334f)[_0x429e68(0x1f1)]())continue;if(_0x1bae07===null||_0x1bae07===void 0x0?void 0x0:_0x1bae07[_0x94334f])continue;_0x1bae07[_0x94334f]=Object[_0x429e68(0x1fd)]({},((_0x828e5f=_0x7ab69c===null||_0x7ab69c===void 0x0?void 0x0:_0x7ab69c[_0x429e68(0x254)])===null||_0x828e5f===void 0x0?void 0x0:_0x828e5f['default'])||{'maxSize':'1m','dir':this[_0x429e68(0x23e)]['getAppDir']()+_0x429e68(0x21e)},{'enableJSON':!![],'enableConsole':this[_0x429e68(0x21b)]['isDevelopmentEnvironment'](),'fileLogName':_0x94334f+_0x429e68(0x213),'dir':this[_0x429e68(0x23e)][_0x429e68(0x23c)]()+'/runtime/apps-'+_0x94334f+_0x429e68(0x23f)});}Object[_0x429e68(0x255)](_0x1bae07)[_0x429e68(0x237)]>0x0&&(!_0x7ab69c['midwayLogger']&&(_0x7ab69c[_0x429e68(0x254)]={'default':{'maxSize':'1m','dir':this[_0x429e68(0x23e)][_0x429e68(0x23c)]()+'/runtime'}}),_0x7ab69c[_0x429e68(0x254)][_0x429e68(0x24a)]=_0x1bae07),this['config'][_0x429e68(0x266)](_0x7ab69c);}}async[a2_0xaa0b83(0x1f3)](){const _0x725f97=a2_0xaa0b83;var _0x4aa63c,_0xcc2bd6,_0x2e5825,_0x265e6a,_0x257d59,_0x2e9f45;const _0xb472c6=this[_0x725f97(0x1f8)][_0x725f97(0x22f)]();((_0xcc2bd6=(_0x4aa63c=_0xb472c6===null||_0xb472c6===void 0x0?void 0x0:_0xb472c6[_0x725f97(0x24d)])===null||_0x4aa63c===void 0x0?void 0x0:_0x4aa63c[_0x725f97(0x215)])===null||_0xcc2bd6===void 0x0?void 0x0:_0xcc2bd6['DEFAULT'])&&Object[_0x725f97(0x255)](_0xb472c6[_0x725f97(0x24d)][_0x725f97(0x215)])[_0x725f97(0x237)]>0x1&&delete _0xb472c6[_0x725f97(0x24d)][_0x725f97(0x215)][_0x725f97(0x236)];if((_0x2e5825=_0xb472c6===null||_0xb472c6===void 0x0?void 0x0:_0xb472c6[_0x725f97(0x229)])===null||_0x2e5825===void 0x0?void 0x0:_0x2e5825[_0x725f97(0x212)])for(const _0x95be88 in _0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)]){((_0x265e6a=_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88])===null||_0x265e6a===void 0x0?void 0x0:_0x265e6a[_0x725f97(0x1ea)])&&typeof((_0x257d59=_0xb472c6['staticFile'][_0x725f97(0x212)][_0x95be88])===null||_0x257d59===void 0x0?void 0x0:_0x257d59[_0x725f97(0x1ea)])=='string'&&!fs[_0x725f97(0x248)](_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88][_0x725f97(0x1ea)])&&(fs[_0x725f97(0x21a)](_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88][_0x725f97(0x1ea)],{'recursive':!![]}),console['log'](_0x725f97(0x262)+_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88][_0x725f97(0x1ea)]));}((_0x2e9f45=_0xb472c6===null||_0xb472c6===void 0x0?void 0x0:_0xb472c6['upload'])===null||_0x2e9f45===void 0x0?void 0x0:_0x2e9f45[_0x725f97(0x201)])&&!fs[_0x725f97(0x248)](_0xb472c6[_0x725f97(0x200)]['tmpdir'])&&(fs[_0x725f97(0x21a)](_0xb472c6[_0x725f97(0x200)][_0x725f97(0x201)],{'recursive':!![]}),console[_0x725f97(0x21d)](_0x725f97(0x214)+_0xb472c6[_0x725f97(0x200)][_0x725f97(0x201)])),this[_0x725f97(0x1f8)][_0x725f97(0x266)](_0xb472c6);}};__decorate([(0x0,core_1[a2_0xaa0b83(0x221)])(),__metadata(a2_0xaa0b83(0x21f),Object)],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x23e),void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata(a2_0xaa0b83(0x21f),core_2[a2_0xaa0b83(0x1ec)])],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x1f8),void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata('design:type',core_2[a2_0xaa0b83(0x208)])],CustomConfiguration[a2_0xaa0b83(0x234)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata(a2_0xaa0b83(0x21f),core_2[a2_0xaa0b83(0x25f)])],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x21b),void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata(a2_0xaa0b83(0x21f),ApiService_1['ApiService'])],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x259),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0xaa0b83(0x219)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0xaa0b83(0x25a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xaa0b83(0x218)]=CustomConfiguration;
|
|
1
|
+
const a2_0x9524d4=a2_0x4344;function a2_0x4b0e(){const _0x5a5422=['headers','__esModule','getBaseDir','key','156208pffIEM','target','input','6HoQGSs','defaultsDeep','dir','apimit','(((.+)+)+)+$','24761uMhwmN','decorator','Types','match','attachment','readdirSync','device','INTERCEPT_KEY','app','args','@anncic-api/event','./service/ApiService','filterConfig','/apps','function','tmpdir','REQUEST_OBJ_CTX_KEY','existsSync','/runtime','method','9gjviud','loggerConfig','bodyXml','forEach','_matchedRoute','getOwnPropertyDescriptor','toLowerCase','4KXxlbS','ACTION_ROUTE_KEY','2163785YZdhyP','apply','162148blLfpR','@midwayjs/i18n','upload','3923076lOXZqW','string','getConfiguration','get','./types/action','handlerActionRoute','isNull','Inject','isString','Configuration','HEADERS_SIGNATURE','metadata','282382lnivhp','body','object','default','@midwayjs/cross-domain','getApplications','keys','devices','length','文件不存在','isDevelopmentEnvironment','koa-send','assign','dirs','isDirectory','hanlderApplications','@anncic-api/core','proceed','@midwayjs/core','decorate','context','mkdirSync','ApiService','log','registerMethodHandler','application','MidwayApplicationManager','isFunction','clients','InterceptTargetTmp','isClass','addObject','checksign','@anncic-api/typeorm','MidwayDecoratorService','midwayLogger','620kDWizU','DEFAULT','defineProperty','586134ZLUdTt','prototype','constructor','search','Anncic-api\x20static-file\x20:\x20mkdir\x20','requestContext','getAsync','4HLYHnJ','CustomConfiguration','request','design:type','query','staticFile','anncicapi','checkConfigKeys','App','statSync','intercept','defineProperties','koa','toString','./config/config.production','handler','getAppDir','config'];a2_0x4b0e=function(){return _0x5a5422;};return a2_0x4b0e();}(function(_0x387a4f,_0x2bcefd){const _0x2e9c14=a2_0x4344,_0xf57e19=_0x387a4f();while(!![]){try{const _0x75b470=-parseInt(_0x2e9c14(0xef))/0x1*(-parseInt(_0x2e9c14(0x13b))/0x2)+-parseInt(_0x2e9c14(0xe8))/0x3+parseInt(_0x2e9c14(0x128))/0x4*(parseInt(_0x2e9c14(0x12a))/0x5)+-parseInt(_0x2e9c14(0x108))/0x6*(parseInt(_0x2e9c14(0x12c))/0x7)+parseInt(_0x2e9c14(0x105))/0x8*(-parseInt(_0x2e9c14(0x121))/0x9)+parseInt(_0x2e9c14(0xe5))/0xa*(-parseInt(_0x2e9c14(0x10d))/0xb)+-parseInt(_0x2e9c14(0x12f))/0xc;if(_0x75b470===_0x2bcefd)break;else _0xf57e19['push'](_0xf57e19['shift']());}catch(_0x127b4e){_0xf57e19['push'](_0xf57e19['shift']());}}}(a2_0x4b0e,0x47868));const a2_0x5896b7=(function(){let _0x3f1212=!![];return function(_0x128b4a,_0x14d921){const _0x386ff2=_0x3f1212?function(){const _0x329160=a2_0x4344;if(_0x14d921){const _0xc5328a=_0x14d921[_0x329160(0x12b)](_0x128b4a,arguments);return _0x14d921=null,_0xc5328a;}}:function(){};return _0x3f1212=![],_0x386ff2;};}()),a2_0x167d4e=a2_0x5896b7(this,function(){const _0x2eb12d=a2_0x4344;return a2_0x167d4e[_0x2eb12d(0xfc)]()[_0x2eb12d(0xeb)](_0x2eb12d(0x10c))[_0x2eb12d(0xfc)]()[_0x2eb12d(0xea)](a2_0x167d4e)[_0x2eb12d(0xeb)](_0x2eb12d(0x10c));});function a2_0x4344(_0x1b3092,_0x3196a8){const _0x5e26b2=a2_0x4b0e();return a2_0x4344=function(_0x167d4e,_0x5896b7){_0x167d4e=_0x167d4e-0xe4;let _0x4b0e0e=_0x5e26b2[_0x167d4e];return _0x4b0e0e;},a2_0x4344(_0x1b3092,_0x3196a8);}a2_0x167d4e();'use strict';var __decorate=this&&this['__decorate']||function(_0x218859,_0x50d2f0,_0x32e248,_0x13147d){const _0x52aa68=a2_0x4344;var _0x528fcf=arguments[_0x52aa68(0x143)],_0x3706e8=_0x528fcf<0x3?_0x50d2f0:_0x13147d===null?_0x13147d=Object[_0x52aa68(0x126)](_0x50d2f0,_0x32e248):_0x13147d,_0x4faf4f;if(typeof Reflect===_0x52aa68(0x13d)&&typeof Reflect[_0x52aa68(0x14e)]==='function')_0x3706e8=Reflect[_0x52aa68(0x14e)](_0x218859,_0x50d2f0,_0x32e248,_0x13147d);else{for(var _0x2d35e7=_0x218859[_0x52aa68(0x143)]-0x1;_0x2d35e7>=0x0;_0x2d35e7--)if(_0x4faf4f=_0x218859[_0x2d35e7])_0x3706e8=(_0x528fcf<0x3?_0x4faf4f(_0x3706e8):_0x528fcf>0x3?_0x4faf4f(_0x50d2f0,_0x32e248,_0x3706e8):_0x4faf4f(_0x50d2f0,_0x32e248))||_0x3706e8;}return _0x528fcf>0x3&&_0x3706e8&&Object['defineProperty'](_0x50d2f0,_0x32e248,_0x3706e8),_0x3706e8;},__metadata=this&&this['__metadata']||function(_0x3597df,_0x447ba5){const _0x3ab5da=a2_0x4344;if(typeof Reflect===_0x3ab5da(0x13d)&&typeof Reflect[_0x3ab5da(0x13a)]===_0x3ab5da(0x11b))return Reflect[_0x3ab5da(0x13a)](_0x3597df,_0x447ba5);};Object[a2_0x9524d4(0xe7)](exports,a2_0x9524d4(0x102),{'value':!![]}),exports[a2_0x9524d4(0xf0)]=void 0x0;const core_1=require(a2_0x9524d4(0x14d)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x9524d4(0x118)),action_1=require(a2_0x9524d4(0x133)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x9524d4(0x146)),koa=require('@midwayjs/koa'),i18n=require(a2_0x9524d4(0x12d)),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x9524d4(0x13f)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x9524d4(0xfd)),anncic=require(a2_0x9524d4(0x14b)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x9524d4(0x117)),anncicTypeorm=require(a2_0x9524d4(0x15c)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x1e4302=a2_0x9524d4;await this['filterConfig'](),await this['loggerConfig'](),await this['checkConfigKeys'](),await this[_0x1e4302(0x134)](),await this[_0x1e4302(0x14a)]();}async[a2_0x9524d4(0xf6)](){}async[a2_0x9524d4(0x134)](){const _0x53b301=a2_0x9524d4,_0x3c32fd=(0x0,core_1['getClassMetadata'])(intercept_1[_0x53b301(0x114)],intercept_1[_0x53b301(0x158)])||{};this['decorator'][_0x53b301(0x153)](action_1[_0x53b301(0x129)],_0x5566eb=>{const _0x137d8a=_0x5566eb['metadata'];return{'before':async _0x40a74b=>{const _0x192439=a2_0x4344;var _0x523f04,_0x4be2c8;const _0x5996aa=(_0x523f04=_0x40a74b===null||_0x40a74b===void 0x0?void 0x0:_0x40a74b[_0x192439(0x106)])===null||_0x523f04===void 0x0?void 0x0:_0x523f04[core_2[_0x192439(0x11d)]];if(_0x5996aa&&(_0x137d8a===null||_0x137d8a===void 0x0?void 0x0:_0x137d8a[_0x192439(0x10b)])){if(!this[_0x192439(0x151)][_0x192439(0x15b)]((_0x4be2c8=_0x5996aa===null||_0x5996aa===void 0x0?void 0x0:_0x5996aa['request'])===null||_0x4be2c8===void 0x0?void 0x0:_0x4be2c8[_0x192439(0x101)]))throw new AnnError(ApiError_1['ApiError'][_0x192439(0x139)]);}},'around':async _0x571f4c=>{const _0x50bbe3=a2_0x4344;var _0x1c3b6c,_0x4a99c1,_0x1d6b68;const _0x5dfafd=(_0x1c3b6c=_0x571f4c===null||_0x571f4c===void 0x0?void 0x0:_0x571f4c[_0x50bbe3(0x106)])===null||_0x1c3b6c===void 0x0?void 0x0:_0x1c3b6c[core_2[_0x50bbe3(0x11d)]];if(_0x5dfafd&&(_0x137d8a===null||_0x137d8a===void 0x0?void 0x0:_0x137d8a['apimit'])&&((_0x137d8a===null||_0x137d8a===void 0x0?void 0x0:_0x137d8a[_0x50bbe3(0xf9)])||typeof(_0x137d8a===null||_0x137d8a===void 0x0?void 0x0:_0x137d8a[_0x50bbe3(0xf9)])=='undefined')){if(((_0x4a99c1=_0x5dfafd['headers'])===null||_0x4a99c1===void 0x0?void 0x0:_0x4a99c1[_0x50bbe3(0x113)])&&((_0x1d6b68=_0x3c32fd===null||_0x3c32fd===void 0x0?void 0x0:_0x3c32fd[_0x5dfafd['headers'][_0x50bbe3(0x113)]])===null||_0x1d6b68===void 0x0?void 0x0:_0x1d6b68['length'])>0x0)for(const _0x322009 of _0x3c32fd[_0x5dfafd[_0x50bbe3(0x101)][_0x50bbe3(0x113)]]||[]){if(core_1[_0x50bbe3(0x10f)][_0x50bbe3(0x159)](_0x322009)){const _0x1cce3c=await _0x5dfafd[_0x50bbe3(0xed)][_0x50bbe3(0xee)](_0x322009);typeof(_0x1cce3c===null||_0x1cce3c===void 0x0?void 0x0:_0x1cce3c[_0x50bbe3(0x110)])==_0x50bbe3(0x11b)?await _0x1cce3c['match'](_0x5dfafd,typeof(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x120)])==_0x50bbe3(0x130)&&(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)])?_0x5dfafd['method']['toLowerCase']()+'@'+(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)]):undefined,_0x137d8a)&&await _0x1cce3c[_0x50bbe3(0xfe)](_0x5dfafd,typeof(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd['method'])==_0x50bbe3(0x130)&&(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)])?_0x5dfafd[_0x50bbe3(0x120)][_0x50bbe3(0x127)]()+'@'+(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd['_matchedRoute']):undefined,_0x137d8a):await _0x1cce3c[_0x50bbe3(0xfe)](_0x5dfafd,typeof(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd['method'])==_0x50bbe3(0x130)&&(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)])?_0x5dfafd['method'][_0x50bbe3(0x127)]()+'@'+(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)]):undefined,_0x137d8a);}else core_1[_0x50bbe3(0x10f)][_0x50bbe3(0x156)](_0x322009)&&await _0x322009(_0x5dfafd,typeof(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x120)])==_0x50bbe3(0x130)&&(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)])?_0x5dfafd[_0x50bbe3(0x120)][_0x50bbe3(0x127)]()+'@'+(_0x5dfafd===null||_0x5dfafd===void 0x0?void 0x0:_0x5dfafd[_0x50bbe3(0x125)]):undefined,_0x137d8a);}}return await _0x571f4c[_0x50bbe3(0x14c)](..._0x571f4c[_0x50bbe3(0x116)]);},'afterThrow':(_0xc0a511,_0x412a11)=>{throw _0x412a11;}};});}async[a2_0x9524d4(0x14a)](){const _0x55a3d1=a2_0x9524d4;this[_0x55a3d1(0x154)][_0x55a3d1(0x140)]([_0x55a3d1(0xfb)])[_0x55a3d1(0x124)](_0x8caaa6=>{const _0x6188b3=_0x55a3d1;(_0x8caaa6===null||_0x8caaa6===void 0x0?void 0x0:_0x8caaa6['context'])&&Object[_0x6188b3(0xfa)](_0x8caaa6[_0x6188b3(0x14f)],{'ok':{'value':function(_0x458c55,_0x298187,_0x55860a=0x0){return{'code':_0x55860a,'data':_0x458c55,'extra':_0x298187};}},'input':{'value':function(_0x52bae4,_0x39ab40){const _0x3427d4=_0x6188b3;var _0x40c39a;const _0x3aa6fc=lodash[_0x3427d4(0x109)]({},this[_0x3427d4(0xf1)]['body']||this[_0x3427d4(0xf1)][((_0x40c39a=config===null||config===void 0x0?void 0x0:config[_0x3427d4(0x123)])===null||_0x40c39a===void 0x0?void 0x0:_0x40c39a[_0x3427d4(0x104)])||_0x3427d4(0x13c)]||{},this[_0x3427d4(0xf1)][_0x3427d4(0xf3)]||{});return _0x52bae4?lodash[_0x3427d4(0x132)](_0x3aa6fc,_0x52bae4,_0x39ab40):_0x3aa6fc;}},'when':{'value':async function(_0xa86b33,_0x4f3560){const _0x3b47a9=_0x6188b3,_0x18c115=this[_0x3b47a9(0x107)](_0xa86b33,null);if(!lodash[_0x3b47a9(0x135)](_0x18c115))return await _0x4f3560(_0x18c115);}},'only':{'value':function(_0x39f307){const _0x5ba2a9=_0x6188b3,_0x4c6362={};for(let _0x3fe5e2=0x0;_0x3fe5e2<_0x39f307[_0x5ba2a9(0x143)];_0x3fe5e2++){lodash['isArray'](_0x39f307[_0x3fe5e2])&&_0x39f307[_0x3fe5e2][_0x5ba2a9(0x143)]>0x0&&lodash[_0x5ba2a9(0x137)](_0x39f307[_0x3fe5e2][0x0])&&(_0x4c6362[_0x39f307[_0x3fe5e2][0x0]]=this[_0x5ba2a9(0x107)](_0x39f307[_0x3fe5e2][0x0],_0x39f307[_0x3fe5e2]['length']>0x1?_0x39f307[_0x3fe5e2][0x1]:null));}return _0x4c6362;}},'koasend':{'value':function(_0x41c6c3,_0xca711d){const _0x5c02c0=_0x6188b3;if(!fs[_0x5c02c0(0x11e)](this[_0x5c02c0(0x115)]['getAppDir']()+'/'+_0x41c6c3))return _0x5c02c0(0x144);return this[_0x5c02c0(0x111)](_0xca711d||_0x41c6c3),koasend(this,_0x41c6c3);}}});});}async[a2_0x9524d4(0x122)](){const _0x152c41=a2_0x9524d4;var _0x863f84,_0x3d7013;if(fs[_0x152c41(0x11e)](this[_0x152c41(0x115)]['getBaseDir']()+_0x152c41(0x11a))&&fs[_0x152c41(0xf8)](this[_0x152c41(0x115)][_0x152c41(0x103)]()+_0x152c41(0x11a))[_0x152c41(0x149)]()){const _0x3f2931=this[_0x152c41(0x100)][_0x152c41(0x131)](),_0x3f44e3=((_0x863f84=_0x3f2931===null||_0x3f2931===void 0x0?void 0x0:_0x3f2931[_0x152c41(0xe4)])===null||_0x863f84===void 0x0?void 0x0:_0x863f84[_0x152c41(0x157)])||{};for(const _0x20bbcf of fs[_0x152c41(0x112)](this[_0x152c41(0x115)][_0x152c41(0x103)]()+_0x152c41(0x11a))){if(!fs[_0x152c41(0xf8)](this[_0x152c41(0x115)][_0x152c41(0x103)]()+'/apps/'+_0x20bbcf)[_0x152c41(0x149)]())continue;if(_0x3f44e3===null||_0x3f44e3===void 0x0?void 0x0:_0x3f44e3[_0x20bbcf])continue;_0x3f44e3[_0x20bbcf]=Object[_0x152c41(0x147)]({},((_0x3d7013=_0x3f2931===null||_0x3f2931===void 0x0?void 0x0:_0x3f2931[_0x152c41(0xe4)])===null||_0x3d7013===void 0x0?void 0x0:_0x3d7013[_0x152c41(0x13e)])||{'maxSize':'1m','dir':this['app'][_0x152c41(0xff)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this['environment'][_0x152c41(0x145)](),'fileLogName':_0x20bbcf+'.log','dir':this['app']['getAppDir']()+'/runtime/apps-'+_0x20bbcf+'-log'});}Object['keys'](_0x3f44e3)[_0x152c41(0x143)]>0x0&&(!_0x3f2931['midwayLogger']&&(_0x3f2931[_0x152c41(0xe4)]={'default':{'maxSize':'1m','dir':this[_0x152c41(0x115)][_0x152c41(0xff)]()+_0x152c41(0x11f)}}),_0x3f2931[_0x152c41(0xe4)][_0x152c41(0x157)]=_0x3f44e3),this[_0x152c41(0x100)][_0x152c41(0x15a)](_0x3f2931);}}async[a2_0x9524d4(0x119)](){const _0xe845e9=a2_0x9524d4;var _0x190d11,_0x8292a2,_0x2d9bb0,_0x560343,_0x5c3877,_0x1b7368;const _0x428566=this[_0xe845e9(0x100)][_0xe845e9(0x131)]();((_0x8292a2=(_0x190d11=_0x428566===null||_0x428566===void 0x0?void 0x0:_0x428566['anncicapi'])===null||_0x190d11===void 0x0?void 0x0:_0x190d11['devices'])===null||_0x8292a2===void 0x0?void 0x0:_0x8292a2[_0xe845e9(0xe6)])&&Object[_0xe845e9(0x141)](_0x428566[_0xe845e9(0xf5)][_0xe845e9(0x142)])['length']>0x1&&delete _0x428566[_0xe845e9(0xf5)][_0xe845e9(0x142)]['DEFAULT'];if((_0x2d9bb0=_0x428566===null||_0x428566===void 0x0?void 0x0:_0x428566[_0xe845e9(0xf4)])===null||_0x2d9bb0===void 0x0?void 0x0:_0x2d9bb0[_0xe845e9(0x148)])for(const _0x5b1b66 in _0x428566[_0xe845e9(0xf4)][_0xe845e9(0x148)]){((_0x560343=_0x428566[_0xe845e9(0xf4)]['dirs'][_0x5b1b66])===null||_0x560343===void 0x0?void 0x0:_0x560343[_0xe845e9(0x10a)])&&typeof((_0x5c3877=_0x428566['staticFile']['dirs'][_0x5b1b66])===null||_0x5c3877===void 0x0?void 0x0:_0x5c3877[_0xe845e9(0x10a)])==_0xe845e9(0x130)&&!fs['existsSync'](_0x428566['staticFile']['dirs'][_0x5b1b66][_0xe845e9(0x10a)])&&(fs[_0xe845e9(0x150)](_0x428566['staticFile'][_0xe845e9(0x148)][_0x5b1b66][_0xe845e9(0x10a)],{'recursive':!![]}),console[_0xe845e9(0x152)](_0xe845e9(0xec)+_0x428566['staticFile']['dirs'][_0x5b1b66][_0xe845e9(0x10a)]));}((_0x1b7368=_0x428566===null||_0x428566===void 0x0?void 0x0:_0x428566[_0xe845e9(0x12e)])===null||_0x1b7368===void 0x0?void 0x0:_0x1b7368['tmpdir'])&&!fs['existsSync'](_0x428566[_0xe845e9(0x12e)][_0xe845e9(0x11c)])&&(fs[_0xe845e9(0x150)](_0x428566[_0xe845e9(0x12e)][_0xe845e9(0x11c)],{'recursive':!![]}),console[_0xe845e9(0x152)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x428566[_0xe845e9(0x12e)][_0xe845e9(0x11c)])),this[_0xe845e9(0x100)][_0xe845e9(0x15a)](_0x428566);}};__decorate([(0x0,core_1[a2_0x9524d4(0xf7)])(),__metadata(a2_0x9524d4(0xf2),Object)],CustomConfiguration['prototype'],a2_0x9524d4(0x115),void 0x0),__decorate([(0x0,core_1[a2_0x9524d4(0x136)])(),__metadata(a2_0x9524d4(0xf2),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x9524d4(0xe9)],a2_0x9524d4(0x100),void 0x0),__decorate([(0x0,core_1[a2_0x9524d4(0x136)])(),__metadata('design:type',core_2[a2_0x9524d4(0x15d)])],CustomConfiguration[a2_0x9524d4(0xe9)],a2_0x9524d4(0x10e),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x9524d4(0x155)])],CustomConfiguration[a2_0x9524d4(0xe9)],a2_0x9524d4(0x154),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x9524d4(0xf2),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x9524d4(0xe9)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x9524d4(0x136)])(),__metadata(a2_0x9524d4(0xf2),ApiService_1[a2_0x9524d4(0x151)])],CustomConfiguration[a2_0x9524d4(0xe9)],a2_0x9524d4(0x151),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x9524d4(0x138)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x9524d4(0xf0)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a3_0x3133(_0x48d36f,_0x5d3d2f){const _0x46e13d=a3_0x8382();return a3_0x3133=function(_0x405001,_0xe40337){_0x405001=_0x405001-0x13d;let _0x83825c=_0x46e13d[_0x405001];return _0x83825c;},a3_0x3133(_0x48d36f,_0x5d3d2f);}const a3_0x499e38=a3_0x3133;function a3_0x8382(){const _0xf4247=['existsSync','app/controller/','module','middlewareIgnore','AppsConfigTmp','toLowerCase','364372zuFDMR','8cFPyJn','Action','tagName','\x20文件请放在app/controller/文件下','ACTION_KEY','APPSCONFIG_KEY','startsWith','2179002noBmXi','../types/action','22297purFhY','route','length','/controller/','10884580vdGVQA','substring','endsWith','276426xDiqYs','-action','push','/config.','60iNGRev','replace','basic/controller/','/apps/','5280399HVePyF','filter','match','split','isArray','filepath','saveClassMetadata','search','@midwayjs/core','rootpath','join','100yBQbuv','indexOf','constructor','defineProperty','(((.+)+)+)+$','45631PPFVEM','getClassMetadata','middleware','apply','splice','saveModule','trim','prefix','parseRoute','2270nnvVdk','apps/','Controller'];a3_0x8382=function(){return _0xf4247;};return a3_0x8382();}(function(_0x5d7ca0,_0x32cdc6){const _0x40bc7d=a3_0x3133,_0x2d32ab=_0x5d7ca0();while(!![]){try{const _0x3ea4bd=parseInt(_0x40bc7d(0x149))/0x1*(-parseInt(_0x40bc7d(0x170))/0x2)+parseInt(_0x40bc7d(0x174))/0x3+parseInt(_0x40bc7d(0x15b))/0x4*(-parseInt(_0x40bc7d(0x144))/0x5)+parseInt(_0x40bc7d(0x163))/0x6+parseInt(_0x40bc7d(0x169))/0x7+parseInt(_0x40bc7d(0x15c))/0x8*(-parseInt(_0x40bc7d(0x16c))/0x9)+-parseInt(_0x40bc7d(0x152))/0xa*(-parseInt(_0x40bc7d(0x165))/0xb);if(_0x3ea4bd===_0x32cdc6)break;else _0x2d32ab['push'](_0x2d32ab['shift']());}catch(_0x2d55ab){_0x2d32ab['push'](_0x2d32ab['shift']());}}}(a3_0x8382,0xdfd81));const a3_0xe40337=(function(){let _0x5a005f=!![];return function(_0x54324a,_0x15fba2){const _0x136777=_0x5a005f?function(){const _0x3965ce=a3_0x3133;if(_0x15fba2){const _0x279ed3=_0x15fba2[_0x3965ce(0x14c)](_0x54324a,arguments);return _0x15fba2=null,_0x279ed3;}}:function(){};return _0x5a005f=![],_0x136777;};}()),a3_0x405001=a3_0xe40337(this,function(){const _0x4ed4c1=a3_0x3133;return a3_0x405001['toString']()[_0x4ed4c1(0x140)]('(((.+)+)+)+$')['toString']()[_0x4ed4c1(0x146)](a3_0x405001)[_0x4ed4c1(0x140)](_0x4ed4c1(0x148));});a3_0x405001();'use strict';Object[a3_0x499e38(0x147)](exports,'__esModule',{'value':!![]}),exports[a3_0x499e38(0x151)]=exports['Action']=void 0x0;const fs=require('fs'),core_1=require(a3_0x499e38(0x141)),action_1=require(a3_0x499e38(0x164));function Action(_0x1a6cfc,_0x4e9980,_0x22da68={'middleware':[],'sensitive':!![]}){return _0x13b4ca=>{const _0x1058b4=a3_0x3133;var _0x18af74;_0x22da68[_0x1058b4(0x15e)]=_0x4e9980;const _0x8fc75e=parseRoute(_0x1a6cfc);if(_0x8fc75e[_0x1058b4(0x157)]){_0x22da68[_0x1058b4(0x150)]=_0x22da68[_0x1058b4(0x150)]?'/'+_0x8fc75e['module']+'/'+_0x22da68[_0x1058b4(0x150)]:'/'+_0x8fc75e['route'];_0x8fc75e['prefix']&&(_0x22da68[_0x1058b4(0x150)]='/'+_0x8fc75e[_0x1058b4(0x150)]+'/'+_0x22da68['prefix']);if(fs[_0x1058b4(0x155)](_0x8fc75e[_0x1058b4(0x142)]+_0x1058b4(0x173)+_0x8fc75e[_0x1058b4(0x157)]+_0x1058b4(0x16f)+(lodash[_0x1058b4(0x16b)](_0x8fc75e[_0x1058b4(0x13e)],'ts')?'ts':'js'))){const _0x500780=include(_0x8fc75e['rootpath']+_0x1058b4(0x173)+_0x8fc75e[_0x1058b4(0x157)]+_0x1058b4(0x16f)+(lodash[_0x1058b4(0x16b)](_0x8fc75e['filepath'],'ts')?'ts':'js'));if(_0x500780[_0x1058b4(0x14b)]&&lodash[_0x1058b4(0x13d)](_0x500780[_0x1058b4(0x14b)])&&_0x500780[_0x1058b4(0x14b)][_0x1058b4(0x167)]>0x0)for(let _0x1773b1 in _0x500780['middleware']){if(((_0x18af74=_0x500780===null||_0x500780===void 0x0?void 0x0:_0x500780[_0x1058b4(0x158)])===null||_0x18af74===void 0x0?void 0x0:_0x18af74[_0x1058b4(0x167)])>0x0&&_0x500780[_0x1058b4(0x158)][_0x1058b4(0x145)](_0x500780['middleware'][_0x1773b1])!=-0x1)continue;_0x22da68[_0x1058b4(0x14b)][_0x1058b4(0x16e)](_0x500780[_0x1058b4(0x14b)][_0x1773b1]);}const _0x3798e2=(0x0,core_1[_0x1058b4(0x14a)])(action_1[_0x1058b4(0x161)],action_1[_0x1058b4(0x159)])||{};_0x3798e2[''+_0x8fc75e[_0x1058b4(0x157)]]=_0x500780,(0x0,core_1[_0x1058b4(0x13f)])(action_1[_0x1058b4(0x161)],_0x3798e2,action_1[_0x1058b4(0x159)]);}_0x22da68[_0x1058b4(0x150)]=_0x22da68[_0x1058b4(0x150)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x1058b4(0x14e)])(action_1[_0x1058b4(0x160)],_0x13b4ca),(0x0,core_1[_0x1058b4(0x154)])(_0x22da68[_0x1058b4(0x150)],_0x22da68)(_0x13b4ca),(0x0,core_1[_0x1058b4(0x13f)])(action_1[_0x1058b4(0x160)],{'prefix':_0x22da68['prefix'],'pprefix':_0x8fc75e['prefix'],'module':_0x8fc75e[_0x1058b4(0x157)],'filepath':_0x8fc75e[_0x1058b4(0x13e)],'routerOptions':_0x22da68},_0x13b4ca);}else _0x22da68[_0x1058b4(0x150)]=_0x22da68['prefix']?'/'+_0x22da68['prefix']:'/'+_0x8fc75e[_0x1058b4(0x166)],_0x8fc75e[_0x1058b4(0x150)]&&(_0x22da68[_0x1058b4(0x150)]='/'+_0x8fc75e[_0x1058b4(0x150)]+'/'+_0x22da68[_0x1058b4(0x150)]),_0x22da68[_0x1058b4(0x150)]=_0x22da68[_0x1058b4(0x150)][_0x1058b4(0x15a)]()[_0x1058b4(0x171)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x1058b4(0x160)],_0x13b4ca),(0x0,core_1[_0x1058b4(0x154)])(_0x22da68[_0x1058b4(0x150)],_0x22da68)(_0x13b4ca),(0x0,core_1[_0x1058b4(0x13f)])(action_1[_0x1058b4(0x160)],{'prefix':_0x22da68[_0x1058b4(0x150)],'module':_0x8fc75e['module'],'pprefix':_0x8fc75e['prefix'],'filepath':_0x8fc75e[_0x1058b4(0x13e)],'routerOptions':_0x22da68},_0x13b4ca);};}exports[a3_0x499e38(0x15d)]=Action;function parseRoute(_0x1ee9e3){const _0x34b94e=a3_0x499e38;_0x1ee9e3=_0x1ee9e3[_0x34b94e(0x171)](/(\\|\/)/g,'/');const _0x4d849e=process['cwd']()[_0x34b94e(0x171)](/(\\|\/)/g,'/'),_0x2b5d8a=_0x1ee9e3['substring'](0x0,_0x4d849e['length']+_0x1ee9e3['substring'](_0x4d849e[_0x34b94e(0x167)]+0x1)[_0x34b94e(0x145)]('/')+0x1),_0x450406=_0x1ee9e3[_0x34b94e(0x16a)](_0x2b5d8a[_0x34b94e(0x167)]+0x1)[_0x34b94e(0x171)](/(\\|\/)/g,'/'),_0x346d85={'route':'','prefix':![],'module':![],'rootpath':_0x2b5d8a,'filepath':_0x450406};if(_0x450406[_0x34b94e(0x162)](_0x34b94e(0x156))||_0x450406[_0x34b94e(0x162)]('basic/controller/')){const _0x1c54de=_0x450406['substring']((_0x450406[_0x34b94e(0x162)]('app/controller/')?_0x34b94e(0x156):_0x34b94e(0x172))[_0x34b94e(0x167)])[_0x34b94e(0x177)]('/')['filter'](_0x2cf52a=>_0x2cf52a&&_0x2cf52a[_0x34b94e(0x14f)]());return _0x1c54de['length']>0x1&&(_0x346d85[_0x34b94e(0x150)]=_0x1c54de[0x0]['toLowerCase'](),_0x1c54de['splice'](0x0,0x1)),_0x346d85[_0x34b94e(0x166)]=('/'+_0x1c54de['join']('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x34b94e(0x176)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x34b94e(0x15a)]()[_0x34b94e(0x171)](/\/\-/g,'/'),_0x346d85[_0x34b94e(0x166)]['endsWith'](_0x34b94e(0x16d))&&(_0x346d85[_0x34b94e(0x166)]=_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x16a)](0x0,_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x167)]-0x7)),_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x16b)]('-controller')&&(_0x346d85[_0x34b94e(0x166)]=_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x16a)](0x0,_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x167)]-0xb)),_0x346d85;}else{if(_0x450406['startsWith'](_0x34b94e(0x153))){const _0x3dbc89=_0x450406[_0x34b94e(0x16a)](0x0,_0x450406['indexOf'](_0x34b94e(0x173))+0x5),_0xb2985d=_0x450406[_0x34b94e(0x16a)](_0x3dbc89[_0x34b94e(0x167)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x34b94e(0x177)]('/')[0x0];if(_0x450406[_0x34b94e(0x162)](_0x34b94e(0x153)+_0xb2985d+_0x34b94e(0x168))){const _0x44b1e3=_0x450406['substring']((_0x3dbc89+'/'+_0xb2985d+_0x34b94e(0x168))[_0x34b94e(0x167)])[_0x34b94e(0x177)]('/')[_0x34b94e(0x175)](_0x54e6a3=>_0x54e6a3&&_0x54e6a3[_0x34b94e(0x14f)]());return _0x44b1e3[_0x34b94e(0x167)]>0x1&&(_0x346d85[_0x34b94e(0x150)]=_0x44b1e3[0x0][_0x34b94e(0x15a)](),_0x44b1e3[_0x34b94e(0x14d)](0x0,0x1)),_0x346d85[_0x34b94e(0x157)]=_0xb2985d,_0x346d85[_0x34b94e(0x166)]=('/'+_0xb2985d+'/'+_0x44b1e3[_0x34b94e(0x143)]('/'))[_0x34b94e(0x171)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x34b94e(0x176)](/[\/|A-Z]*[^A-Z]+/g)[_0x34b94e(0x143)]('-')['toLowerCase']()[_0x34b94e(0x171)](/\/\-/g,'/'),_0x346d85['route'][_0x34b94e(0x16b)](_0x34b94e(0x16d))&&(_0x346d85[_0x34b94e(0x166)]=_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x16a)](0x0,_0x346d85[_0x34b94e(0x166)]['length']-0x7)),_0x346d85['route'][_0x34b94e(0x16b)]('-controller')&&(_0x346d85[_0x34b94e(0x166)]=_0x346d85[_0x34b94e(0x166)]['substring'](0x0,_0x346d85[_0x34b94e(0x166)][_0x34b94e(0x167)]-0xb)),_0x346d85;}throw new Error(_0x450406+'\x20文件请放在apps/'+_0xb2985d+'/controller/文件下');}}throw new Error(_0x450406+_0x34b94e(0x15f));}exports[a3_0x499e38(0x151)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x280489=a4_0x1aea;(function(_0x51cf39,_0xc7d4a9){const _0xe499f8=a4_0x1aea,_0xdd4b67=_0x51cf39();while(!![]){try{const _0x2a979c=-parseInt(_0xe499f8(0x1ed))/0x1+parseInt(_0xe499f8(0x1f2))/0x2*(parseInt(_0xe499f8(0x1f0))/0x3)+-parseInt(_0xe499f8(0x1e8))/0x4*(parseInt(_0xe499f8(0x203))/0x5)+parseInt(_0xe499f8(0x1ea))/0x6+parseInt(_0xe499f8(0x1eb))/0x7+-parseInt(_0xe499f8(0x202))/0x8+parseInt(_0xe499f8(0x1f9))/0x9;if(_0x2a979c===_0xc7d4a9)break;else _0xdd4b67['push'](_0xdd4b67['shift']());}catch(_0x2a9e77){_0xdd4b67['push'](_0xdd4b67['shift']());}}}(a4_0x3c32,0x470eb));const a4_0x384141=(function(){let _0x2cba40=!![];return function(_0x507651,_0x3bd904){const _0x3d07ac=_0x2cba40?function(){const _0x1be726=a4_0x1aea;if(_0x3bd904){const _0xb94581=_0x3bd904[_0x1be726(0x1f1)](_0x507651,arguments);return _0x3bd904=null,_0xb94581;}}:function(){};return _0x2cba40=![],_0x3d07ac;};}()),a4_0x544b2a=a4_0x384141(this,function(){const _0x5649ca=a4_0x1aea;return a4_0x544b2a['toString']()['search'](_0x5649ca(0x1ec))[_0x5649ca(0x1fe)]()[_0x5649ca(0x1f6)](a4_0x544b2a)[_0x5649ca(0x1fd)](_0x5649ca(0x1ec));});a4_0x544b2a();'use strict';function a4_0x3c32(){const _0x2b99fc=['constructor','validate','../types/action','1665711WzZrpT','description','routerName','apimit','search','toString','string','validationOptions','delete','2938952OvbCCB','20530HJIFJS','@midwayjs/core','__esModule','get','del','middlewareIgnore','indexOf','Api','intercept','404OTbxUd','assign','887544OtrBUs','3612833clmyAw','(((.+)+)+)+$','34474pteWCu','toLowerCase','ACTION_ROUTE_KEY','35247eWnQqq','apply','44vBddkT','filter','middleware','createCustomMethodDecorator'];a4_0x3c32=function(){return _0x2b99fc;};return a4_0x3c32();}Object['defineProperty'](exports,a4_0x280489(0x1e1),{'value':!![]}),exports[a4_0x280489(0x1e6)]=void 0x0;function a4_0x1aea(_0x31e763,_0x59b922){const _0x54ee7d=a4_0x3c32();return a4_0x1aea=function(_0x544b2a,_0x384141){_0x544b2a=_0x544b2a-0x1e1;let _0x3c3240=_0x54ee7d[_0x544b2a];return _0x3c3240;},a4_0x1aea(_0x31e763,_0x59b922);}const validator_1=require('@anncic-api/validator'),core_1=require(a4_0x280489(0x204)),action_1=require(a4_0x280489(0x1f8));function Api(_0x499936,_0x28bffb=a4_0x280489(0x1e2),_0x116318='/',_0x310686={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5e1680,_0xc8abdc,_0x381f8e)=>{const _0x8fcf3f=a4_0x1aea;var _0x121591,_0x37d7d4,_0x1216be;!_0x310686[_0x8fcf3f(0x1f4)]&&(_0x310686[_0x8fcf3f(0x1f4)]=[]);!((_0x121591=_0x310686===null||_0x310686===void 0x0?void 0x0:_0x310686['validate'])===null||_0x121591===void 0x0?void 0x0:_0x121591[_0x8fcf3f(0x200)])&&(_0x310686[_0x8fcf3f(0x1f7)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x8fcf3f(0x1ff)}});if(((_0x37d7d4=_0x310686===null||_0x310686===void 0x0?void 0x0:_0x310686[_0x8fcf3f(0x1f4)])===null||_0x37d7d4===void 0x0?void 0x0:_0x37d7d4['length'])>0x0&&((_0x1216be=_0x310686===null||_0x310686===void 0x0?void 0x0:_0x310686[_0x8fcf3f(0x1e4)])===null||_0x1216be===void 0x0?void 0x0:_0x1216be['length'])>0x0)for(let _0x297d1f in _0x310686[_0x8fcf3f(0x1f4)]){_0x310686[_0x8fcf3f(0x1e4)][_0x8fcf3f(0x1e5)](_0x310686[_0x8fcf3f(0x1f4)][_0x297d1f])!==-0x1&&(_0x310686[_0x8fcf3f(0x1f4)][_0x297d1f]=null);}_0x310686[_0x8fcf3f(0x1fb)]=_0x499936,(0x0,validator_1['Validator'])(_0x310686[_0x8fcf3f(0x1f7)])(_0x5e1680,_0xc8abdc,_0x381f8e),(0x0,core_1['RequestMapping'])(Object[_0x8fcf3f(0x1e9)](_0x310686,{'path':_0x116318,'requestMethod':(_0x28bffb=='del'?_0x8fcf3f(0x201):_0x28bffb)[_0x8fcf3f(0x1ee)]()}))(_0x5e1680,_0xc8abdc,_0x381f8e),(0x0,core_1['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x116318,'method':_0xc8abdc,'apimit':_0x310686[_0x8fcf3f(0x1fc)],'intercept':_0x310686[_0x8fcf3f(0x1e7)],'routerName':_0x310686['routerName'],'description':_0x310686['description'],'middleware':(_0x310686[_0x8fcf3f(0x1f4)]||[])['filter'](_0x5beba7=>!!_0x5beba7),'requestMethod':(_0x28bffb==_0x8fcf3f(0x1e3)?'delete':_0x28bffb)[_0x8fcf3f(0x1ee)]()},_0x5e1680),(0x0,core_1[_0x8fcf3f(0x1f5)])(action_1[_0x8fcf3f(0x1ef)],{'path':_0x116318,'method':_0xc8abdc,'apimit':_0x310686[_0x8fcf3f(0x1fc)],'intercept':_0x310686[_0x8fcf3f(0x1e7)],'routerName':_0x310686[_0x8fcf3f(0x1fb)],'description':_0x310686[_0x8fcf3f(0x1fa)],'middleware':(_0x310686[_0x8fcf3f(0x1f4)]||[])[_0x8fcf3f(0x1f3)](_0x5b695c=>!!_0x5b695c),'requestMethod':(_0x28bffb=='del'?_0x8fcf3f(0x201):_0x28bffb)[_0x8fcf3f(0x1ee)]()})(_0x5e1680,_0xc8abdc,_0x381f8e);};}exports[a4_0x280489(0x1e6)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x5a2765=a5_0x5278;(function(_0x5bc507,_0x3f3fd5){const _0x4d792a=a5_0x5278,_0x44224c=_0x5bc507();while(!![]){try{const _0x55097a=-parseInt(_0x4d792a(0x14e))/0x1*(-parseInt(_0x4d792a(0x153))/0x2)+-parseInt(_0x4d792a(0x14a))/0x3+parseInt(_0x4d792a(0x15e))/0x4*(parseInt(_0x4d792a(0x143))/0x5)+parseInt(_0x4d792a(0x151))/0x6+parseInt(_0x4d792a(0x152))/0x7*(-parseInt(_0x4d792a(0x141))/0x8)+parseInt(_0x4d792a(0x150))/0x9+parseInt(_0x4d792a(0x157))/0xa*(-parseInt(_0x4d792a(0x15d))/0xb);if(_0x55097a===_0x3f3fd5)break;else _0x44224c['push'](_0x44224c['shift']());}catch(_0x4a963e){_0x44224c['push'](_0x44224c['shift']());}}}(a5_0x233f,0x487a5));function a5_0x5278(_0x2147b3,_0x32dd03){const _0x3f7ec4=a5_0x233f();return a5_0x5278=function(_0x2ce464,_0x1d178f){_0x2ce464=_0x2ce464-0x13f;let _0x233ff1=_0x3f7ec4[_0x2ce464];return _0x233ff1;},a5_0x5278(_0x2147b3,_0x32dd03);}const a5_0x1d178f=(function(){let _0x4b25df=!![];return function(_0x4fb2a8,_0x5092c7){const _0x486446=_0x4b25df?function(){const _0x5240d8=a5_0x5278;if(_0x5092c7){const _0xe9ad94=_0x5092c7[_0x5240d8(0x15c)](_0x4fb2a8,arguments);return _0x5092c7=null,_0xe9ad94;}}:function(){};return _0x4b25df=![],_0x486446;};}()),a5_0x2ce464=a5_0x1d178f(this,function(){const _0x1791bd=a5_0x5278;return a5_0x2ce464[_0x1791bd(0x13f)]()[_0x1791bd(0x14f)]('(((.+)+)+)+$')[_0x1791bd(0x13f)]()['constructor'](a5_0x2ce464)['search'](_0x1791bd(0x148));});a5_0x2ce464();'use strict';Object[a5_0x5a2765(0x149)](exports,a5_0x5a2765(0x142),{'value':!![]}),exports[a5_0x5a2765(0x159)]=void 0x0;const core_1=require(a5_0x5a2765(0x14b)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x42f7b7=a5_0x5a2765(0x154),_0x104e03){return(_0x34018d,_0x4553c1,_0xa78699)=>{const _0x23e9ee=a5_0x5278;return(0x0,core_1['RequestMapping'])({'path':_0x42f7b7,'requestMethod':_0x23e9ee(0x155)})(_0x34018d,_0x4553c1,_0xa78699),_0xa78699['value']=async function(..._0x479786){const _0x1a0792=_0x23e9ee;var _0x288a61;const _0x3b6572=(_0x288a61=this[core_1[_0x1a0792(0x146)]])===null||_0x288a61===void 0x0?void 0x0:_0x288a61[_0x1a0792(0x15a)];if(_0x3b6572&&_0x3b6572[_0x1a0792(0x158)](_0x1a0792(0x156))){const _0x31b08d=await _0x3b6572['getApplicationContext']()[_0x1a0792(0x14c)](ApitestService_1[_0x1a0792(0x147)]),_0x518260=await _0x3b6572[_0x1a0792(0x15b)]()[_0x1a0792(0x14c)](core_1[_0x1a0792(0x145)]);return _0x518260[_0x1a0792(0x144)]()&&(_0x104e03[_0x1a0792(0x140)]=!![]),await _0x31b08d[_0x1a0792(0x14d)](_0x104e03);}return'';},_0xa78699;};}function a5_0x233f(){const _0x423901=['ApitestService','(((.+)+)+)+$','defineProperty','26013roBYRT','@midwayjs/core','getAsync','apidoc','124937dlHJVN','search','2251206RghqLz','2779878btIXyJ','7wjqYln','6YRaLlf','/apitest','get','apitest','20codOwX','getConfig','Apitest','app','getApplicationContext','apply','4246517anhImT','4AKTTRq','toString','filepath','3745608ezwaJP','__esModule','2287885Ggmmtm','isDevelopmentEnvironment','MidwayEnvironmentService','REQUEST_OBJ_CTX_KEY'];a5_0x233f=function(){return _0x423901;};return a5_0x233f();}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6_0x2f7402=a6_0x2e65;(function(_0x541818,_0x5dd3f5){const _0x4f72fc=a6_0x2e65,_0x502022=_0x541818();while(!![]){try{const _0x31a333=parseInt(_0x4f72fc(0x179))/0x1*(parseInt(_0x4f72fc(0x175))/0x2)+parseInt(_0x4f72fc(0x17d))/0x3+-parseInt(_0x4f72fc(0x18b))/0x4+parseInt(_0x4f72fc(0x187))/0x5+parseInt(_0x4f72fc(0x181))/0x6+parseInt(_0x4f72fc(0x17e))/0x7*(-parseInt(_0x4f72fc(0x184))/0x8)+parseInt(_0x4f72fc(0x17a))/0x9*(-parseInt(_0x4f72fc(0x189))/0xa);if(_0x31a333===_0x5dd3f5)break;else _0x502022['push'](_0x502022['shift']());}catch(_0x5cc143){_0x502022['push'](_0x502022['shift']());}}}(a6_0x515b,0x3ef50));const a6_0x37ca41=(function(){let _0x323ad3=!![];return function(_0x170144,_0x14b08b){const _0x226d54=_0x323ad3?function(){if(_0x14b08b){const _0x4fd089=_0x14b08b['apply'](_0x170144,arguments);return _0x14b08b=null,_0x4fd089;}}:function(){};return _0x323ad3=![],_0x226d54;};}()),a6_0x4335bd=a6_0x37ca41(this,function(){const _0x2ab6d6=a6_0x2e65;return a6_0x4335bd[_0x2ab6d6(0x17c)]()[_0x2ab6d6(0x174)](_0x2ab6d6(0x18a))[_0x2ab6d6(0x17c)]()['constructor'](a6_0x4335bd)['search'](_0x2ab6d6(0x18a));});a6_0x4335bd();'use strict';function a6_0x515b(){const _0x17673a=['ScopeEnum','50RLnOyK','(((.+)+)+)+$','1600488pKlAfs','Singleton','Scope','INTERCEPT_KEY','defineProperty','@midwayjs/core','search','58rTiwlw','Provide','../types/intercept','saveClassMetadata','10749tmDsHF','196083BcLdga','InterceptTargetTmp','toString','765117nfItpT','210zOhmgr','__esModule','IIntercept','1994526izNPLa','includes','push','128448rKMrDA','getClassMetadata','toUpperCase','1747140dUhLNE'];a6_0x515b=function(){return _0x17673a;};return a6_0x515b();}Object[a6_0x2f7402(0x18f)](exports,a6_0x2f7402(0x17f),{'value':!![]}),exports[a6_0x2f7402(0x180)]=exports['Intercept']=void 0x0;const core_1=require(a6_0x2f7402(0x173)),intercept_1=require(a6_0x2f7402(0x177));function a6_0x2e65(_0x369f9c,_0x307ba2){const _0x35e9fa=a6_0x515b();return a6_0x2e65=function(_0x4335bd,_0x37ca41){_0x4335bd=_0x4335bd-0x173;let _0x515b48=_0x35e9fa[_0x4335bd];return _0x515b48;},a6_0x2e65(_0x369f9c,_0x307ba2);}function Intercept(_0x515fcc){return _0x21583c=>{const _0x32acf5=a6_0x2e65,_0x5c6909=(0x0,core_1[_0x32acf5(0x185)])(intercept_1[_0x32acf5(0x18e)],intercept_1[_0x32acf5(0x17b)])||{};for(let _0x45317f of Array['isArray'](_0x515fcc)?_0x515fcc:[_0x515fcc]){_0x45317f=_0x45317f[_0x32acf5(0x186)]();!(_0x5c6909===null||_0x5c6909===void 0x0?void 0x0:_0x5c6909[_0x45317f])&&(_0x5c6909[_0x45317f]=[]);if(_0x5c6909[_0x45317f][_0x32acf5(0x182)](_0x21583c))continue;_0x5c6909[_0x45317f][_0x32acf5(0x183)](_0x21583c);}(0x0,core_1[_0x32acf5(0x176)])()(_0x21583c),(0x0,core_1[_0x32acf5(0x18d)])(core_1[_0x32acf5(0x188)][_0x32acf5(0x18c)])(_0x21583c),(0x0,core_1[_0x32acf5(0x178)])(intercept_1[_0x32acf5(0x18e)],_0x5c6909,intercept_1[_0x32acf5(0x17b)]);};}exports['Intercept']=Intercept;class IIntercept{async['match'](_0x2e99be,_0x5c0d35,_0x39b482){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x4806a6=a7_0x2cd7;function a7_0x1858(){var _0x50c6dd=['5979uAqumw','8ysfkDp','signature验证失败','11538900dzJKGj','__esModule','2490876wbqOfA','TIMEOUT','102888OdaBJn','search','请使用正确的设备','验证失败,请重新登录','(((.+)+)+)+$','请求头信息不完整','design:type','HEADERS_DEVICE','toString','5721820YUIfsB','434milDJj','HEADERS_CHECKCODE','TIMEOUT_LOGINTIME','ApiError','3012506JClgDB','defineProperty','HEADERS_SIGNATURE','object','656444QSbqcq','metadata','function','HEADERS_LACK','请求超时,请重试'];a7_0x1858=function(){return _0x50c6dd;};return a7_0x1858();}function a7_0x2cd7(_0x114945,_0x633773){var _0x5b3ac1=a7_0x1858();return a7_0x2cd7=function(_0x6b19dc,_0x52548f){_0x6b19dc=_0x6b19dc-0xa4;var _0x185824=_0x5b3ac1[_0x6b19dc];return _0x185824;},a7_0x2cd7(_0x114945,_0x633773);}(function(_0xaf1129,_0x5e476e){var _0x455c8=a7_0x2cd7,_0x176437=_0xaf1129();while(!![]){try{var _0x3b22b1=parseInt(_0x455c8(0xac))/0x1+parseInt(_0x455c8(0xa4))/0x2*(parseInt(_0x455c8(0xb1))/0x3)+parseInt(_0x455c8(0xb8))/0x4+parseInt(_0x455c8(0xc1))/0x5+-parseInt(_0x455c8(0xb6))/0x6+parseInt(_0x455c8(0xa8))/0x7*(parseInt(_0x455c8(0xb2))/0x8)+-parseInt(_0x455c8(0xb4))/0x9;if(_0x3b22b1===_0x5e476e)break;else _0x176437['push'](_0x176437['shift']());}catch(_0x5d7369){_0x176437['push'](_0x176437['shift']());}}}(a7_0x1858,0xf237b));var a7_0x52548f=(function(){var _0x37678f=!![];return function(_0x570ced,_0x9120c8){var _0x4f7091=_0x37678f?function(){if(_0x9120c8){var _0x46d1e8=_0x9120c8['apply'](_0x570ced,arguments);return _0x9120c8=null,_0x46d1e8;}}:function(){};return _0x37678f=![],_0x4f7091;};}()),a7_0x6b19dc=a7_0x52548f(this,function(){var _0x2f4f0f=a7_0x2cd7;return a7_0x6b19dc['toString']()[_0x2f4f0f(0xb9)]('(((.+)+)+)+$')[_0x2f4f0f(0xc0)]()['constructor'](a7_0x6b19dc)[_0x2f4f0f(0xb9)](_0x2f4f0f(0xbc));});a7_0x6b19dc();'use strict';var __decorate=this&&this['__decorate']||function(_0x5b048c,_0x3dd9e3,_0x887cdf,_0x1a9450){var _0x3609a8=a7_0x2cd7,_0x59deb3=arguments['length'],_0x266b06=_0x59deb3<0x3?_0x3dd9e3:_0x1a9450===null?_0x1a9450=Object['getOwnPropertyDescriptor'](_0x3dd9e3,_0x887cdf):_0x1a9450,_0x19ccbd;if(typeof Reflect===_0x3609a8(0xab)&&typeof Reflect['decorate']==='function')_0x266b06=Reflect['decorate'](_0x5b048c,_0x3dd9e3,_0x887cdf,_0x1a9450);else{for(var _0xab941=_0x5b048c['length']-0x1;_0xab941>=0x0;_0xab941--)if(_0x19ccbd=_0x5b048c[_0xab941])_0x266b06=(_0x59deb3<0x3?_0x19ccbd(_0x266b06):_0x59deb3>0x3?_0x19ccbd(_0x3dd9e3,_0x887cdf,_0x266b06):_0x19ccbd(_0x3dd9e3,_0x887cdf))||_0x266b06;}return _0x59deb3>0x3&&_0x266b06&&Object[_0x3609a8(0xa9)](_0x3dd9e3,_0x887cdf,_0x266b06),_0x266b06;},__metadata=this&&this['__metadata']||function(_0x57f10e,_0x139a40){var _0x2eed26=a7_0x2cd7;if(typeof Reflect===_0x2eed26(0xab)&&typeof Reflect[_0x2eed26(0xad)]===_0x2eed26(0xae))return Reflect[_0x2eed26(0xad)](_0x57f10e,_0x139a40);};Object['defineProperty'](exports,a7_0x4806a6(0xb5),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a7_0x4806a6(0xb7)]=0x3d7e31,ApiError[a7_0x4806a6(0xaf)]=0x3d7e32,ApiError[a7_0x4806a6(0xbf)]=0x3d7e33,ApiError[a7_0x4806a6(0xaa)]=0x3d7e34,ApiError[a7_0x4806a6(0xa5)]=0x3d7e35,ApiError[a7_0x4806a6(0xa6)]=0x3d7e36,__decorate([AnnErrorMsg(a7_0x4806a6(0xb0)),__metadata(a7_0x4806a6(0xbe),Object)],ApiError,a7_0x4806a6(0xb7),void 0x0),__decorate([AnnErrorMsg(a7_0x4806a6(0xbd)),__metadata(a7_0x4806a6(0xbe),Object)],ApiError,a7_0x4806a6(0xaf),void 0x0),__decorate([AnnErrorMsg(a7_0x4806a6(0xba)),__metadata(a7_0x4806a6(0xbe),Object)],ApiError,a7_0x4806a6(0xbf),void 0x0),__decorate([AnnErrorMsg(a7_0x4806a6(0xb3)),__metadata(a7_0x4806a6(0xbe),Object)],ApiError,a7_0x4806a6(0xaa),void 0x0),__decorate([AnnErrorMsg(a7_0x4806a6(0xbb)),__metadata(a7_0x4806a6(0xbe),Object)],ApiError,a7_0x4806a6(0xa5),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0x4806a6(0xbe),Object)],ApiError,a7_0x4806a6(0xa6),void 0x0),exports[a7_0x4806a6(0xa7)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x32354d=a8_0x8e8e;(function(_0x248f53,_0x28373d){const _0x57fefd=a8_0x8e8e,_0x304f29=_0x248f53();while(!![]){try{const _0x3baf2a=-parseInt(_0x57fefd(0x19d))/0x1*(-parseInt(_0x57fefd(0x1aa))/0x2)+-parseInt(_0x57fefd(0x1ac))/0x3*(parseInt(_0x57fefd(0x1ad))/0x4)+parseInt(_0x57fefd(0x1a9))/0x5+-parseInt(_0x57fefd(0x1af))/0x6+parseInt(_0x57fefd(0x19f))/0x7*(-parseInt(_0x57fefd(0x1a8))/0x8)+parseInt(_0x57fefd(0x1a1))/0x9*(parseInt(_0x57fefd(0x1a6))/0xa)+-parseInt(_0x57fefd(0x1a3))/0xb;if(_0x3baf2a===_0x28373d)break;else _0x304f29['push'](_0x304f29['shift']());}catch(_0x120951){_0x304f29['push'](_0x304f29['shift']());}}}(a8_0x34de,0xb83ca));const a8_0x3077e1=(function(){let _0x2ffff8=!![];return function(_0x123b9a,_0x4bffde){const _0x2f96dc=_0x2ffff8?function(){if(_0x4bffde){const _0x4e390d=_0x4bffde['apply'](_0x123b9a,arguments);return _0x4bffde=null,_0x4e390d;}}:function(){};return _0x2ffff8=![],_0x2f96dc;};}()),a8_0x48e0e7=a8_0x3077e1(this,function(){const _0x36387d=a8_0x8e8e;return a8_0x48e0e7[_0x36387d(0x1a5)]()['search'](_0x36387d(0x1a0))[_0x36387d(0x1a5)]()[_0x36387d(0x19c)](a8_0x48e0e7)['search'](_0x36387d(0x1a0));});a8_0x48e0e7();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x32354d(0x1a2)]=void 0x0;const core_1=require(a8_0x32354d(0x1ab)),action_1=require(a8_0x32354d(0x1ae));function a8_0x34de(){const _0x32963f=['../types/action','1108902PEsYQW','constructor','226CGmtmm','get','26593vEYDpm','(((.+)+)+)+$','796491nNdXKn','getAppsConfig','5248320dsYotI','APPSCONFIG_KEY','toString','10KvZCql','getClassMetadata','88rMblaJ','7278065LQoIeq','11686jAFIRC','@midwayjs/core','843762aQzgfh','20DymPlq'];a8_0x34de=function(){return _0x32963f;};return a8_0x34de();}function a8_0x8e8e(_0x327317,_0x4043ce){const _0x70160f=a8_0x34de();return a8_0x8e8e=function(_0x48e0e7,_0x3077e1){_0x48e0e7=_0x48e0e7-0x19c;let _0x34de77=_0x70160f[_0x48e0e7];return _0x34de77;},a8_0x8e8e(_0x327317,_0x4043ce);}function getAppsConfig(_0x1f65d2){const _0x1b4b57=a8_0x32354d,_0x237eb7=(0x0,core_1[_0x1b4b57(0x1a7)])(action_1[_0x1b4b57(0x1a4)],action_1['AppsConfigTmp'])||{};return _0x1f65d2?lodash[_0x1b4b57(0x19e)](_0x237eb7,_0x1f65d2):_0x237eb7;}exports[a8_0x32354d(0x1a2)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x218603=a9_0x30e1;(function(_0x455b84,_0x2dc075){const _0x1a4290=a9_0x30e1,_0x215a8f=_0x455b84();while(!![]){try{const _0x2ce9d8=-parseInt(_0x1a4290(0x81))/0x1+-parseInt(_0x1a4290(0xbb))/0x2*(parseInt(_0x1a4290(0xb4))/0x3)+-parseInt(_0x1a4290(0x8a))/0x4*(-parseInt(_0x1a4290(0xc3))/0x5)+-parseInt(_0x1a4290(0x8f))/0x6*(parseInt(_0x1a4290(0x9d))/0x7)+parseInt(_0x1a4290(0x78))/0x8+-parseInt(_0x1a4290(0x9c))/0x9+parseInt(_0x1a4290(0xb3))/0xa;if(_0x2ce9d8===_0x2dc075)break;else _0x215a8f['push'](_0x215a8f['shift']());}catch(_0x43f4d9){_0x215a8f['push'](_0x215a8f['shift']());}}}(a9_0x4fe7,0xc32e7));const a9_0x127793=(function(){let _0x413634=!![];return function(_0x3ab01c,_0x37a70f){const _0xa93ab6=_0x413634?function(){const _0xc841a=a9_0x30e1;if(_0x37a70f){const _0x2c441c=_0x37a70f[_0xc841a(0xaf)](_0x3ab01c,arguments);return _0x37a70f=null,_0x2c441c;}}:function(){};return _0x413634=![],_0xa93ab6;};}()),a9_0x21fdf6=a9_0x127793(this,function(){const _0x60d99c=a9_0x30e1;return a9_0x21fdf6['toString']()['search'](_0x60d99c(0x6f))[_0x60d99c(0x9b)]()[_0x60d99c(0x88)](a9_0x21fdf6)[_0x60d99c(0xbf)](_0x60d99c(0x6f));});a9_0x21fdf6();'use strict';function a9_0x30e1(_0x28f24d,_0x4e1564){const _0x25b223=a9_0x4fe7();return a9_0x30e1=function(_0x21fdf6,_0x127793){_0x21fdf6=_0x21fdf6-0x67;let _0x4fe782=_0x25b223[_0x21fdf6];return _0x4fe782;},a9_0x30e1(_0x28f24d,_0x4e1564);}Object[a9_0x218603(0xc8)](exports,a9_0x218603(0x70),{'value':!![]}),exports[a9_0x218603(0x84)]=void 0x0;const lodash_1=require(a9_0x218603(0xab)),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x218603(0x82)),core_2=require(a9_0x218603(0x82)),core_3=require(a9_0x218603(0x82)),action_1=require('../types/action');function getRoutes(_0x4772a8={'prefix':'/','module':![]}){const _0x278a4d=a9_0x218603;var _0x542a0e,_0x5f3725;const _0x97a498=(0x0,core_3[_0x278a4d(0x6e)])(action_1[_0x278a4d(0xc5)]),_0x12151e={},_0x4125dd=Array[_0x278a4d(0x7c)](_0x4772a8[_0x278a4d(0xc4)]||[])?_0x4772a8[_0x278a4d(0xc4)]||[]:[_0x4772a8[_0x278a4d(0xc4)]];_0x3ebdda:for(const _0x5edcc9 of _0x97a498){let _0x153ae7=(0x0,core_3[_0x278a4d(0xb6)])(action_1[_0x278a4d(0xc5)],_0x5edcc9),_0x57d1a9=(0x0,core_3[_0x278a4d(0xb6)])(action_1['ACTION_ROUTE_KEY'],_0x5edcc9);if(_0x153ae7&&_0x57d1a9){let _0x50e924=_0x153ae7[_0x278a4d(0xa1)],_0x585dbe={};if(_0x4772a8['module']&&(0x0,lodash_1['get'])(_0x153ae7,_0x278a4d(0xac),![])!=_0x4772a8[_0x278a4d(0xac)])continue _0x3ebdda;else{if(_0x4772a8[_0x278a4d(0xac)]===![]&&!!(0x0,lodash_1['get'])(_0x153ae7,_0x278a4d(0xac),null))continue _0x3ebdda;}if(_0x4772a8[_0x278a4d(0xa1)]&&!_0x50e924[_0x278a4d(0xa2)](_0x4772a8[_0x278a4d(0xa1)]))continue _0x3ebdda;_0x50e924!=='/'?(_0x585dbe[_0x278a4d(0x7f)]=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)][_0x278a4d(0x71)])||(/^\//[_0x278a4d(0x87)](_0x50e924)?_0x50e924[_0x278a4d(0x67)]('/')[0x1]:_0x50e924),_0x585dbe[_0x278a4d(0x74)]=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)][_0x278a4d(0x74)])||_0x585dbe[_0x278a4d(0x7f)],_0x585dbe[_0x278a4d(0xb8)]=[]):(_0x585dbe[_0x278a4d(0x7f)]=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)]['tagName'])||_0x278a4d(0x75),_0x585dbe['description']=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)][_0x278a4d(0x74)])||'',_0x585dbe['routes']=[]);_0x4772a8[_0x278a4d(0x73)]&&(_0x585dbe[_0x278a4d(0x73)]=_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0x73)]);(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xaa)])&&(_0x585dbe[_0x278a4d(0xa1)]=_0x153ae7[_0x278a4d(0xaa)]);(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xac)])&&(_0x585dbe['module']=_0x153ae7[_0x278a4d(0xac)]);let _0x3584a5=(0x0,core_3[_0x278a4d(0xb6)])(core_2[_0x278a4d(0xb9)],_0x5edcc9)||{};if(typeof _0x57d1a9[Symbol[_0x278a4d(0x7e)]]===_0x278a4d(0x8e))for(let _0x5c610c of _0x57d1a9){if((_0x4772a8===null||_0x4772a8===void 0x0?void 0x0:_0x4772a8['intercept'])&&!(_0x5c610c===null||_0x5c610c===void 0x0?void 0x0:_0x5c610c[_0x278a4d(0x96)]))continue;let _0x493126={};_0x493126[_0x278a4d(0x99)]=_0x5c610c[_0x278a4d(0xc7)],_0x493126[_0x278a4d(0xc6)]=(_0x50e924+_0x5c610c['path'])['replace'](/\/{1,}/,'/'),_0x493126[_0x278a4d(0x7f)]=(_0x5c610c===null||_0x5c610c===void 0x0?void 0x0:_0x5c610c['routerName'])||_0x585dbe[_0x278a4d(0x7f)]||'default',_0x493126['description']=(_0x5c610c===null||_0x5c610c===void 0x0?void 0x0:_0x5c610c[_0x278a4d(0x74)])||'',_0x493126[_0x278a4d(0x9e)]=[];_0x493126[_0x278a4d(0xc6)][_0x278a4d(0xbd)]('/')&&(_0x493126['route']=_0x493126[_0x278a4d(0xc6)]['substring'](0x0,_0x493126['route'][_0x278a4d(0x79)]-0x1));if(!(0x0,lodash_1[_0x278a4d(0xa2)])(_0x493126[_0x278a4d(0xc6)],_0x278a4d(0x97))&&!(0x0,lodash_1['startsWith'])(_0x493126[_0x278a4d(0xc6)],_0x278a4d(0xb5))&&_0x4125dd['indexOf'](_0x493126[_0x278a4d(0xc6)])===-0x1){if(!(_0x4772a8===null||_0x4772a8===void 0x0?void 0x0:_0x4772a8[_0x278a4d(0xa5)])){let _0x5653ce=(0x0,core_3['getMethodParamTypes'])(new _0x5edcc9(),_0x5c610c[_0x278a4d(0x99)]);for(const _0x269d68 in _0x5653ce){let _0x10c073=(_0x542a0e=_0x3584a5[_0x5c610c[_0x278a4d(0x99)]])===null||_0x542a0e===void 0x0?void 0x0:_0x542a0e[_0x278a4d(0xa7)](_0x5a0431=>_0x5a0431[_0x278a4d(0xb1)]==_0x269d68&&_0x5a0431[_0x278a4d(0x6d)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x5a0431===null||_0x5a0431===void 0x0?void 0x0:_0x5a0431[_0x278a4d(0x92)]));if(_0x10c073===null||_0x10c073===void 0x0?void 0x0:_0x10c073[_0x278a4d(0x92)]){let _0xe90a0=convertTypeToString(_0x10c073[_0x278a4d(0x92)][_0x278a4d(0x85)]||0x0);if([_0x278a4d(0x95),'body'][_0x278a4d(0x7b)](_0xe90a0)!=-0x1&&_0x10c073['metadata'][_0x278a4d(0xc2)][_0x278a4d(0x7b)](':')==-0x1&&!_0x493126[_0x278a4d(0x9e)][_0x278a4d(0xa7)](_0x34f54d=>_0x34f54d['key']==_0x10c073['metadata'][_0x278a4d(0xc2)]))_0x493126[_0x278a4d(0x9e)][_0x278a4d(0x77)]({'key':_0x10c073['metadata'][_0x278a4d(0xc2)],'title':_0x10c073[_0x278a4d(0x92)][_0x278a4d(0xc2)],'type':convertSchemaType(_0x5653ce[_0x10c073[_0x278a4d(0xb1)]][_0x278a4d(0x89)]),'required':![],'default':'','desc':''});else{if(_0xe90a0==_0x278a4d(0xbc)){let _0x3bd70f=((_0x5f3725=_0x10c073===null||_0x10c073===void 0x0?void 0x0:_0x10c073[_0x278a4d(0x92)])===null||_0x5f3725===void 0x0?void 0x0:_0x5f3725[_0x278a4d(0xc2)])||_0x278a4d(0xbc);_0x3bd70f[_0x278a4d(0x7b)](':')==-0x1&&!_0x493126[_0x278a4d(0x9e)]['find'](_0x45f285=>_0x45f285[_0x278a4d(0x6d)]==_0x3bd70f&&_0x45f285[_0x278a4d(0x85)]=='file')&&_0x493126['request'][_0x278a4d(0x77)]({'key':_0x3bd70f,'title':_0x278a4d(0x72)+_0x3bd70f,'type':_0x278a4d(0xbc),'required':!![],'default':'','desc':''});}}}else{const _0x3b88d2=(0x0,core_3[_0x278a4d(0xc0)])(validator_1[_0x278a4d(0x94)],_0x5653ce[_0x269d68]);_0x3b88d2&&_0x493126['request'][_0x278a4d(0x77)](...getJoiRequest(_0x3b88d2));}}}_0x585dbe[_0x278a4d(0xb8)]['push'](_0x493126);}}if(_0x585dbe[_0x278a4d(0xb8)][_0x278a4d(0x79)]>0x0){let _0x413a47=_0x12151e[_0x50e924];_0x413a47?(_0x413a47['summary']!=_0x585dbe[_0x278a4d(0x7f)]&&(_0x413a47[_0x278a4d(0x7f)]=_0x413a47[_0x278a4d(0x7f)]+','+_0x585dbe[_0x278a4d(0x7f)]),_0x413a47[_0x278a4d(0x74)]!=_0x585dbe[_0x278a4d(0x74)]&&(_0x413a47[_0x278a4d(0x74)]=_0x413a47[_0x278a4d(0x74)]+','+_0x585dbe[_0x278a4d(0x74)]),_0x413a47['routes']=_0x413a47['routes'][_0x278a4d(0xba)](_0x585dbe[_0x278a4d(0xb8)]),_0x12151e[_0x50e924]=_0x413a47):_0x12151e[_0x50e924]=_0x585dbe;}}}return _0x12151e;}function a9_0x4fe7(){const _0x203b65=['route','requestMethod','defineProperty','split','items','FILESTREAM','rules','describe','-array','key','listModule','(((.+)+)+)+$','__esModule','tagName','文件上传-','filepath','description','default','Boolean','push','10683120zQwjZJ','length','required','indexOf','isArray','body','iterator','summary','flags.presence','505028SbVTIr','@midwayjs/core','flags.description','getRoutes','type','object','test','constructor','name','4NlzQmZ','flags.label','limit','HEADERS','function','504408dVqMUu','File','header','metadata','get','RULES_KEY','query','intercept','static/apitest','min','method','Number','toString','13199472TcFplF','14PJWOCh','request','max','boolean','prefix','startsWith','routerOptions','number','noreq','args','find','array','BODY','pprefix','lodash','module','PARAM','log','apply','allow','parameterIndex','FILESSTREAM','13925520ykDDAK','2922gSCYlt','/static/apitest','getClassMetadata','RouteParamTypes','routes','INJECT_CUSTOM_PARAM','concat','1780dqaxqu','file','endsWith','title','search','getClassExtendedMetadata','只允许:[','propertyData','5390765BRMsEy','filter','ACTION_KEY'];a9_0x4fe7=function(){return _0x203b65;};return a9_0x4fe7();}exports[a9_0x218603(0x84)]=getRoutes;function getJoiRequest(_0x129e62){const _0x1fa458=a9_0x218603,_0x2128a2=[];for(let _0x91bbaa in _0x129e62){const _0x4a7b41={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x589ff6=typeof _0x129e62[_0x91bbaa][_0x1fa458(0x6b)]==_0x1fa458(0x8e)?_0x129e62[_0x91bbaa]['describe']():_0x129e62[_0x91bbaa];_0x4a7b41['key']=_0x91bbaa,_0x4a7b41['type']=_0x589ff6[_0x1fa458(0x85)],_0x4a7b41[_0x1fa458(0xbe)]=(0x0,lodash_1[_0x1fa458(0x93)])(_0x589ff6,_0x1fa458(0x8b),_0x91bbaa),_0x4a7b41[_0x1fa458(0x75)]=(0x0,lodash_1[_0x1fa458(0x93)])(_0x589ff6,'flags.default',''),_0x4a7b41[_0x1fa458(0x7a)]=(0x0,lodash_1[_0x1fa458(0x93)])(_0x589ff6,_0x1fa458(0x80),'')==_0x1fa458(0x7a),_0x4a7b41[_0x1fa458(0x74)]=(0x0,lodash_1['get'])(_0x589ff6,_0x1fa458(0x83),'');if(_0x589ff6[_0x1fa458(0x85)]==_0x1fa458(0x86))_0x4a7b41['children']=getJoiRequest(_0x589ff6['keys']);else _0x589ff6[_0x1fa458(0x85)]==_0x1fa458(0xa8)&&_0x589ff6['items']&&Array[_0x1fa458(0x7c)](_0x589ff6['items'])&&_0x589ff6[_0x1fa458(0x68)][0x0]&&console[_0x1fa458(0xae)](_0x91bbaa+_0x1fa458(0x6c),_0x589ff6);_0x589ff6[_0x1fa458(0xb0)]&&Array[_0x1fa458(0x7c)](_0x589ff6['allow'])&&_0x589ff6[_0x1fa458(0xb0)][_0x1fa458(0x79)]>0x0&&(_0x4a7b41[_0x1fa458(0x74)]=_0x1fa458(0xc1)+_0x589ff6[_0x1fa458(0xb0)]['join'](',')+'];'+_0x4a7b41[_0x1fa458(0x74)]);if(_0x4a7b41[_0x1fa458(0x6d)]&&_0x4a7b41[_0x1fa458(0x85)]){const _0x5d14d6={};for(const _0x8ecdf3 of _0x589ff6['rules']||[]){if(_0x8ecdf3[_0x1fa458(0x89)]===_0x1fa458(0x98)&&_0x8ecdf3[_0x1fa458(0xa6)])_0x5d14d6[_0x1fa458(0x98)]=_0x8ecdf3[_0x1fa458(0xa6)][_0x1fa458(0x8c)];else _0x8ecdf3[_0x1fa458(0x89)]===_0x1fa458(0x9f)&&(_0x5d14d6[_0x1fa458(0x9f)]=_0x8ecdf3[_0x1fa458(0xa6)][_0x1fa458(0x8c)]);}_0x4a7b41[_0x1fa458(0x6a)]=_0x5d14d6;}_0x4a7b41[_0x1fa458(0x6d)]&&_0x4a7b41[_0x1fa458(0xbe)]&&_0x2128a2[_0x1fa458(0x77)](_0x4a7b41);}return _0x2128a2;}function convertSchemaType(_0x1e27a1){const _0xf1edeb=a9_0x218603;switch(_0x1e27a1){case'Object':return'object';case _0xf1edeb(0x76):return _0xf1edeb(0xa0);case _0xf1edeb(0x9a):return _0xf1edeb(0xa4);case'String':return'string';case _0xf1edeb(0x90):return _0xf1edeb(0xbc);default:return'string';}}function convertTypeToString(_0x2bfd52){const _0x5cc4f9=a9_0x218603;switch(_0x2bfd52){case core_1['RouteParamTypes'][_0x5cc4f9(0x8d)]:return _0x5cc4f9(0x91);case core_1['RouteParamTypes']['QUERY']:return'query';case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0xad)]:return'path';case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0xa9)]:return _0x5cc4f9(0x7d);case core_1[_0x5cc4f9(0xb7)]['FIELDS']:case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0xb2)]:case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0x69)]:return _0x5cc4f9(0xbc);default:return _0x5cc4f9(0x91);}}
|
|
1
|
+
const a9_0x2f8719=a9_0x5d29;(function(_0xd8839c,_0x5eeb0f){const _0x1a21cc=a9_0x5d29,_0x488dd5=_0xd8839c();while(!![]){try{const _0x3329e8=-parseInt(_0x1a21cc(0x12c))/0x1+-parseInt(_0x1a21cc(0x15a))/0x2*(-parseInt(_0x1a21cc(0x156))/0x3)+parseInt(_0x1a21cc(0x14e))/0x4+-parseInt(_0x1a21cc(0x150))/0x5+parseInt(_0x1a21cc(0x14a))/0x6+parseInt(_0x1a21cc(0x130))/0x7+-parseInt(_0x1a21cc(0x151))/0x8;if(_0x3329e8===_0x5eeb0f)break;else _0x488dd5['push'](_0x488dd5['shift']());}catch(_0x51419d){_0x488dd5['push'](_0x488dd5['shift']());}}}(a9_0x209f,0x1f862));const a9_0x21a4bd=(function(){let _0x59f023=!![];return function(_0x7b31fa,_0x48e18e){const _0x551c81=_0x59f023?function(){const _0x2e3499=a9_0x5d29;if(_0x48e18e){const _0x4b92ed=_0x48e18e[_0x2e3499(0x129)](_0x7b31fa,arguments);return _0x48e18e=null,_0x4b92ed;}}:function(){};return _0x59f023=![],_0x551c81;};}()),a9_0x2b8a86=a9_0x21a4bd(this,function(){const _0x384084=a9_0x5d29;return a9_0x2b8a86[_0x384084(0x142)]()['search']('(((.+)+)+)+$')[_0x384084(0x142)]()[_0x384084(0x14d)](a9_0x2b8a86)['search']('(((.+)+)+)+$');});a9_0x2b8a86();'use strict';Object[a9_0x2f8719(0x13c)](exports,a9_0x2f8719(0x162),{'value':!![]}),exports[a9_0x2f8719(0x163)]=void 0x0;const lodash_1=require(a9_0x2f8719(0x132)),validator_1=require(a9_0x2f8719(0x167)),core_1=require(a9_0x2f8719(0x14c)),core_2=require(a9_0x2f8719(0x14c)),core_3=require(a9_0x2f8719(0x14c)),action_1=require(a9_0x2f8719(0x11d));function getRoutes(_0x502756={'prefix':'/','module':![]}){const _0x179fdf=a9_0x2f8719;var _0x46ad88,_0x3e19b8;const _0x31e95e=(0x0,core_3[_0x179fdf(0x13d)])(action_1[_0x179fdf(0x125)]),_0x5baffd={},_0x18af7e=Array[_0x179fdf(0x123)](_0x502756[_0x179fdf(0x10a)]||[])?_0x502756[_0x179fdf(0x10a)]||[]:[_0x502756[_0x179fdf(0x10a)]];_0x3c4781:for(const _0x2058a3 of _0x31e95e){let _0x39c657=(0x0,core_3['getClassMetadata'])(action_1[_0x179fdf(0x125)],_0x2058a3),_0x9ce4be=(0x0,core_3[_0x179fdf(0x114)])(action_1['ACTION_ROUTE_KEY'],_0x2058a3);if(_0x39c657&&_0x9ce4be){let _0xc99a6d=_0x39c657['prefix'],_0x51355b={};if(_0x502756['module']&&(0x0,lodash_1[_0x179fdf(0x153)])(_0x39c657,_0x179fdf(0x126),![])!=_0x502756[_0x179fdf(0x126)])continue _0x3c4781;else{if(_0x502756[_0x179fdf(0x126)]===![]&&!!(0x0,lodash_1['get'])(_0x39c657,'module',null))continue _0x3c4781;}if(_0x502756[_0x179fdf(0x149)]&&!_0xc99a6d['startsWith'](_0x502756[_0x179fdf(0x149)]))continue _0x3c4781;_0xc99a6d!=='/'?(_0x51355b[_0x179fdf(0x137)]=(_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657['routerOptions'][_0x179fdf(0x166)])||(/^\//[_0x179fdf(0x12f)](_0xc99a6d)?_0xc99a6d[_0x179fdf(0x121)]('/')[0x1]:_0xc99a6d),_0x51355b[_0x179fdf(0x10c)]=(_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657[_0x179fdf(0x155)][_0x179fdf(0x10c)])||_0x51355b['summary'],_0x51355b['routes']=[]):(_0x51355b[_0x179fdf(0x137)]=(_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657[_0x179fdf(0x155)][_0x179fdf(0x166)])||_0x179fdf(0x140),_0x51355b[_0x179fdf(0x10c)]=(_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657[_0x179fdf(0x155)][_0x179fdf(0x10c)])||'',_0x51355b[_0x179fdf(0x15f)]=[]);_0x502756['filepath']&&(_0x51355b['filepath']=_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657[_0x179fdf(0x15b)]);(_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657[_0x179fdf(0x159)])&&(_0x51355b[_0x179fdf(0x149)]=_0x39c657[_0x179fdf(0x159)]);(_0x39c657===null||_0x39c657===void 0x0?void 0x0:_0x39c657[_0x179fdf(0x126)])&&(_0x51355b[_0x179fdf(0x126)]=_0x39c657['module']);let _0x5c3f5b=(0x0,core_3[_0x179fdf(0x114)])(core_2['INJECT_CUSTOM_PARAM'],_0x2058a3)||{};if(typeof _0x9ce4be[Symbol['iterator']]===_0x179fdf(0x111))for(let _0x2105e2 of _0x9ce4be){if((_0x502756===null||_0x502756===void 0x0?void 0x0:_0x502756[_0x179fdf(0x112)])&&!(_0x2105e2===null||_0x2105e2===void 0x0?void 0x0:_0x2105e2[_0x179fdf(0x112)]))continue;let _0x228710={};_0x228710[_0x179fdf(0x157)]=_0x2105e2[_0x179fdf(0x110)],_0x228710['route']=(_0xc99a6d+_0x2105e2[_0x179fdf(0x11b)])['replace'](/\/{1,}/,'/'),_0x228710[_0x179fdf(0x137)]=(_0x2105e2===null||_0x2105e2===void 0x0?void 0x0:_0x2105e2[_0x179fdf(0x10b)])||_0x51355b['summary']||_0x179fdf(0x140),_0x228710['description']=(_0x2105e2===null||_0x2105e2===void 0x0?void 0x0:_0x2105e2[_0x179fdf(0x10c)])||'',_0x228710[_0x179fdf(0x164)]=[];_0x228710[_0x179fdf(0x10e)][_0x179fdf(0x139)]('/')&&(_0x228710[_0x179fdf(0x10e)]=_0x228710['route'][_0x179fdf(0x144)](0x0,_0x228710[_0x179fdf(0x10e)]['length']-0x1));if(!(0x0,lodash_1[_0x179fdf(0x15c)])(_0x228710[_0x179fdf(0x10e)],_0x179fdf(0x148))&&!(0x0,lodash_1[_0x179fdf(0x15c)])(_0x228710['route'],_0x179fdf(0x113))&&_0x18af7e[_0x179fdf(0x15d)](_0x228710[_0x179fdf(0x10e)])===-0x1){if(!(_0x502756===null||_0x502756===void 0x0?void 0x0:_0x502756[_0x179fdf(0x154)])){let _0x564e9f=(0x0,core_3[_0x179fdf(0x136)])(new _0x2058a3(),_0x2105e2['method']);for(const _0x4cb049 in _0x564e9f){let _0x2f705c=(_0x46ad88=_0x5c3f5b[_0x2105e2[_0x179fdf(0x157)]])===null||_0x46ad88===void 0x0?void 0x0:_0x46ad88[_0x179fdf(0x128)](_0x12517e=>_0x12517e[_0x179fdf(0x152)]==_0x4cb049&&_0x12517e[_0x179fdf(0x158)]===core_2[_0x179fdf(0x138)]&&(_0x12517e===null||_0x12517e===void 0x0?void 0x0:_0x12517e[_0x179fdf(0x161)]));if(_0x2f705c===null||_0x2f705c===void 0x0?void 0x0:_0x2f705c[_0x179fdf(0x161)]){let _0x2e3206=convertTypeToString(_0x2f705c[_0x179fdf(0x161)][_0x179fdf(0x13e)]||0x0);if(['query',_0x179fdf(0x115)][_0x179fdf(0x15d)](_0x2e3206)!=-0x1&&_0x2f705c['metadata'][_0x179fdf(0x12b)][_0x179fdf(0x15d)](':')==-0x1&&!_0x228710['request'][_0x179fdf(0x128)](_0x40aea9=>_0x40aea9[_0x179fdf(0x158)]==_0x2f705c[_0x179fdf(0x161)][_0x179fdf(0x12b)]))_0x228710[_0x179fdf(0x164)][_0x179fdf(0x107)]({'key':_0x2f705c[_0x179fdf(0x161)][_0x179fdf(0x12b)],'title':_0x2f705c[_0x179fdf(0x161)][_0x179fdf(0x12b)],'type':convertSchemaType(_0x564e9f[_0x2f705c[_0x179fdf(0x152)]][_0x179fdf(0x143)]),'required':![],'default':'','desc':''});else{if(_0x2e3206==_0x179fdf(0x15e)){let _0x439f14=((_0x3e19b8=_0x2f705c===null||_0x2f705c===void 0x0?void 0x0:_0x2f705c[_0x179fdf(0x161)])===null||_0x3e19b8===void 0x0?void 0x0:_0x3e19b8[_0x179fdf(0x12b)])||_0x179fdf(0x15e);_0x439f14[_0x179fdf(0x15d)](':')==-0x1&&!_0x228710['request'][_0x179fdf(0x128)](_0x8b1f26=>_0x8b1f26[_0x179fdf(0x158)]==_0x439f14&&_0x8b1f26[_0x179fdf(0x13e)]==_0x179fdf(0x15e))&&_0x228710[_0x179fdf(0x164)][_0x179fdf(0x107)]({'key':_0x439f14,'title':_0x179fdf(0x12d)+_0x439f14,'type':_0x179fdf(0x15e),'required':!![],'default':'','desc':''});}}}else{const _0x13d03f=(0x0,core_3[_0x179fdf(0x12e)])(validator_1[_0x179fdf(0x12a)],_0x564e9f[_0x4cb049]);_0x13d03f&&_0x228710['request'][_0x179fdf(0x107)](...getJoiRequest(_0x13d03f));}}}_0x51355b[_0x179fdf(0x15f)][_0x179fdf(0x107)](_0x228710);}}if(_0x51355b[_0x179fdf(0x15f)][_0x179fdf(0x147)]>0x0){let _0x159090=_0x5baffd[_0xc99a6d];_0x159090?(_0x159090[_0x179fdf(0x137)]!=_0x51355b['summary']&&(_0x159090[_0x179fdf(0x137)]=_0x159090['summary']+','+_0x51355b['summary']),_0x159090[_0x179fdf(0x10c)]!=_0x51355b[_0x179fdf(0x10c)]&&(_0x159090[_0x179fdf(0x10c)]=_0x159090['description']+','+_0x51355b['description']),_0x159090[_0x179fdf(0x15f)]=_0x159090[_0x179fdf(0x15f)]['concat'](_0x51355b[_0x179fdf(0x15f)]),_0x5baffd[_0xc99a6d]=_0x159090):_0x5baffd[_0xc99a6d]=_0x51355b;}}}return _0x5baffd;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x40a78e){const _0x43b2a7=a9_0x2f8719,_0x1f9f7c=[];for(let _0x5b7d18 in _0x40a78e){const _0x4f951b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x45d670=typeof _0x40a78e[_0x5b7d18][_0x43b2a7(0x133)]=='function'?_0x40a78e[_0x5b7d18][_0x43b2a7(0x133)]():_0x40a78e[_0x5b7d18];_0x4f951b[_0x43b2a7(0x158)]=_0x5b7d18,_0x4f951b[_0x43b2a7(0x13e)]=_0x45d670[_0x43b2a7(0x13e)],_0x4f951b[_0x43b2a7(0x116)]=(0x0,lodash_1['get'])(_0x45d670,_0x43b2a7(0x11f),_0x5b7d18),_0x4f951b[_0x43b2a7(0x140)]=(0x0,lodash_1[_0x43b2a7(0x153)])(_0x45d670,_0x43b2a7(0x165),''),_0x4f951b['required']=(0x0,lodash_1['get'])(_0x45d670,'flags.presence','')==_0x43b2a7(0x124),_0x4f951b[_0x43b2a7(0x10c)]=(0x0,lodash_1[_0x43b2a7(0x153)])(_0x45d670,_0x43b2a7(0x145),'');if(_0x45d670['type']=='object')_0x4f951b[_0x43b2a7(0x11e)]=getJoiRequest(_0x45d670[_0x43b2a7(0x131)]);else _0x45d670[_0x43b2a7(0x13e)]==_0x43b2a7(0x118)&&_0x45d670['items']&&Array[_0x43b2a7(0x123)](_0x45d670['items'])&&_0x45d670[_0x43b2a7(0x122)][0x0]&&console['log'](_0x5b7d18+_0x43b2a7(0x127),_0x45d670);_0x45d670[_0x43b2a7(0x134)]&&Array[_0x43b2a7(0x123)](_0x45d670[_0x43b2a7(0x134)])&&_0x45d670[_0x43b2a7(0x134)][_0x43b2a7(0x147)]>0x0&&(_0x4f951b['description']=_0x43b2a7(0x108)+_0x45d670[_0x43b2a7(0x134)][_0x43b2a7(0x13f)](',')+'];'+_0x4f951b['description']);if(_0x4f951b[_0x43b2a7(0x158)]&&_0x4f951b['type']){const _0x596a5b={};for(const _0x2d19d9 of _0x45d670[_0x43b2a7(0x14f)]||[]){if(_0x2d19d9['name']===_0x43b2a7(0x14b)&&_0x2d19d9['args'])_0x596a5b[_0x43b2a7(0x14b)]=_0x2d19d9[_0x43b2a7(0x146)][_0x43b2a7(0x141)];else _0x2d19d9[_0x43b2a7(0x143)]===_0x43b2a7(0x13a)&&(_0x596a5b[_0x43b2a7(0x13a)]=_0x2d19d9[_0x43b2a7(0x146)]['limit']);}_0x4f951b[_0x43b2a7(0x14f)]=_0x596a5b;}_0x4f951b[_0x43b2a7(0x158)]&&_0x4f951b[_0x43b2a7(0x116)]&&_0x1f9f7c['push'](_0x4f951b);}return _0x1f9f7c;}function a9_0x209f(){const _0x4717e3=['toString','name','substring','flags.description','args','length','static/apitest','prefix','742434OYfbvc','min','@midwayjs/core','constructor','910324TzWWvu','rules','920805GlSWTZ','1620480NialrQ','parameterIndex','get','noreq','routerOptions','6BXrCzn','method','key','pprefix','79080oRJPQp','filepath','startsWith','indexOf','file','routes','FIELDS','metadata','__esModule','getRoutes','request','flags.default','tagName','@anncic-api/validator','push','只允许:[','FILESTREAM','filter','routerName','description','header','route','number','requestMethod','function','intercept','/static/apitest','getClassMetadata','body','title','QUERY','array','Object','RouteParamTypes','path','File','../types/action','children','flags.label','string','split','items','isArray','required','ACTION_KEY','module','-array','find','apply','RULES_KEY','propertyData','77047iFgRNH','文件上传-','getClassExtendedMetadata','test','1137430cnYZdM','keys','lodash','describe','allow','Boolean','getMethodParamTypes','summary','WEB_ROUTER_PARAM_KEY','endsWith','max','boolean','defineProperty','listModule','type','join','default','limit'];a9_0x209f=function(){return _0x4717e3;};return a9_0x209f();}function convertSchemaType(_0x14b45c){const _0x4385f0=a9_0x2f8719;switch(_0x14b45c){case _0x4385f0(0x119):return'object';case _0x4385f0(0x135):return _0x4385f0(0x13b);case'Number':return _0x4385f0(0x10f);case'String':return _0x4385f0(0x120);case _0x4385f0(0x11c):return _0x4385f0(0x15e);default:return'string';}}function a9_0x5d29(_0x2d779b,_0x585d40){const _0x48fa65=a9_0x209f();return a9_0x5d29=function(_0x2b8a86,_0x21a4bd){_0x2b8a86=_0x2b8a86-0x107;let _0x209f1b=_0x48fa65[_0x2b8a86];return _0x209f1b;},a9_0x5d29(_0x2d779b,_0x585d40);}function convertTypeToString(_0x1d31c5){const _0x3a8333=a9_0x2f8719;switch(_0x1d31c5){case core_1[_0x3a8333(0x11a)]['HEADERS']:return _0x3a8333(0x10d);case core_1[_0x3a8333(0x11a)][_0x3a8333(0x117)]:return'query';case core_1[_0x3a8333(0x11a)]['PARAM']:return _0x3a8333(0x11b);case core_1[_0x3a8333(0x11a)]['BODY']:return _0x3a8333(0x115);case core_1[_0x3a8333(0x11a)][_0x3a8333(0x160)]:case core_1[_0x3a8333(0x11a)]['FILESSTREAM']:case core_1[_0x3a8333(0x11a)][_0x3a8333(0x109)]:return _0x3a8333(0x15e);default:return _0x3a8333(0x10d);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x1d311c=a10_0x5e50;(function(_0x991694,_0x172eaa){var _0x39ffec=a10_0x5e50,_0x8a3e0b=_0x991694();while(!![]){try{var _0x2cd3df=-parseInt(_0x39ffec(0x20a))/0x1+-parseInt(_0x39ffec(0x1ec))/0x2+parseInt(_0x39ffec(0x1d7))/0x3+-parseInt(_0x39ffec(0x20c))/0x4+-parseInt(_0x39ffec(0x1db))/0x5+parseInt(_0x39ffec(0x1f3))/0x6+-parseInt(_0x39ffec(0x1f6))/0x7*(-parseInt(_0x39ffec(0x1f4))/0x8);if(_0x2cd3df===_0x172eaa)break;else _0x8a3e0b['push'](_0x8a3e0b['shift']());}catch(_0xd1993d){_0x8a3e0b['push'](_0x8a3e0b['shift']());}}}(a10_0x4fc8,0x78b00));var a10_0x340896=(function(){var _0x77827b=!![];return function(_0x29ebff,_0x4d9102){var _0x360b88=_0x77827b?function(){var _0xb4a888=a10_0x5e50;if(_0x4d9102){var _0x4d1397=_0x4d9102[_0xb4a888(0x1e8)](_0x29ebff,arguments);return _0x4d9102=null,_0x4d1397;}}:function(){};return _0x77827b=![],_0x360b88;};}()),a10_0x4fc72c=a10_0x340896(this,function(){var _0x14407c=a10_0x5e50;return a10_0x4fc72c[_0x14407c(0x207)]()[_0x14407c(0x1e3)](_0x14407c(0x1dd))['toString']()[_0x14407c(0x1ea)](a10_0x4fc72c)[_0x14407c(0x1e3)]('(((.+)+)+)+$');});a10_0x4fc72c();'use strict';var __createBinding=this&&this[a10_0x1d311c(0x1dc)]||(Object[a10_0x1d311c(0x1e9)]?function(_0x178a9c,_0x2721a7,_0x21aa12,_0x429f2b){var _0x50c367=a10_0x1d311c;if(_0x429f2b===undefined)_0x429f2b=_0x21aa12;var _0x18a53a=Object[_0x50c367(0x201)](_0x2721a7,_0x21aa12);(!_0x18a53a||(_0x50c367(0x1d3)in _0x18a53a?!_0x2721a7[_0x50c367(0x1ff)]:_0x18a53a[_0x50c367(0x204)]||_0x18a53a['configurable']))&&(_0x18a53a={'enumerable':!![],'get':function(){return _0x2721a7[_0x21aa12];}}),Object[_0x50c367(0x1ce)](_0x178a9c,_0x429f2b,_0x18a53a);}:function(_0x5e3415,_0x32c1ca,_0x1b4620,_0x4e684c){if(_0x4e684c===undefined)_0x4e684c=_0x1b4620;_0x5e3415[_0x4e684c]=_0x32c1ca[_0x1b4620];}),__exportStar=this&&this[a10_0x1d311c(0x203)]||function(_0x51e156,_0x14aa83){var _0x9842fc=a10_0x1d311c;for(var _0x11b642 in _0x51e156)if(_0x11b642!==_0x9842fc(0x1d1)&&!Object['prototype'][_0x9842fc(0x1fd)]['call'](_0x14aa83,_0x11b642))__createBinding(_0x14aa83,_0x51e156,_0x11b642);};Object['defineProperty'](exports,a10_0x1d311c(0x1ff),{'value':!![]}),exports['getAppsConfig']=exports[a10_0x1d311c(0x1d4)]=exports[a10_0x1d311c(0x1ed)]=exports[a10_0x1d311c(0x1d5)]=exports[a10_0x1d311c(0x1f8)]=exports['Provide']=exports[a10_0x1d311c(0x1eb)]=exports[a10_0x1d311c(0x209)]=exports['App']=exports[a10_0x1d311c(0x205)]=exports[a10_0x1d311c(0x1ef)]=exports[a10_0x1d311c(0x202)]=exports['Param']=exports['Body']=exports[a10_0x1d311c(0x1e6)]=exports[a10_0x1d311c(0x1fb)]=exports[a10_0x1d311c(0x1de)]=exports[a10_0x1d311c(0x1cf)]=exports[a10_0x1d311c(0x1e1)]=exports[a10_0x1d311c(0x20d)]=exports[a10_0x1d311c(0x20e)]=exports[a10_0x1d311c(0x206)]=exports[a10_0x1d311c(0x200)]=exports[a10_0x1d311c(0x1fe)]=exports[a10_0x1d311c(0x1ee)]=exports['getRoutes']=exports[a10_0x1d311c(0x208)]=exports[a10_0x1d311c(0x1df)]=exports[a10_0x1d311c(0x1f0)]=exports[a10_0x1d311c(0x1f9)]=exports[a10_0x1d311c(0x1e5)]=void 0x0;function a10_0x5e50(_0x30e522,_0x5ee6c4){var _0x323502=a10_0x4fc8();return a10_0x5e50=function(_0x4fc72c,_0x340896){_0x4fc72c=_0x4fc72c-0x1ce;var _0x4fc82d=_0x323502[_0x4fc72c];return _0x4fc82d;},a10_0x5e50(_0x30e522,_0x5ee6c4);}const getAppsConfig_1=require(a10_0x1d311c(0x20b));Object['defineProperty'](exports,a10_0x1d311c(0x1d8),{'enumerable':!![],'get':function(){var _0x1fc140=a10_0x1d311c;return getAppsConfig_1[_0x1fc140(0x1d8)];}}),__exportStar(require(a10_0x1d311c(0x1f1)),exports),__exportStar(require(a10_0x1d311c(0x1e4)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x1d311c(0x1ce)](exports,'Api',{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a10_0x1d311c(0x1f2));Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1f9),{'enumerable':!![],'get':function(){var _0x5e1f79=a10_0x1d311c;return Action_1[_0x5e1f79(0x1f9)];}});var ActionApitest_1=require(a10_0x1d311c(0x1da));Object['defineProperty'](exports,a10_0x1d311c(0x1f0),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require('./decorator/Intercept');Object[a10_0x1d311c(0x1ce)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x3ce7da=a10_0x1d311c;return Intercept_1[_0x3ce7da(0x1df)];}}),Object['defineProperty'](exports,a10_0x1d311c(0x208),{'enumerable':!![],'get':function(){var _0x4c8738=a10_0x1d311c;return Intercept_1[_0x4c8738(0x208)];}});var getRoutes_1=require(a10_0x1d311c(0x1e7));Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1fc),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a10_0x1d311c(0x1f7));Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1ee),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a10_0x1d311c(0x1d6));Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1fe),{'enumerable':!![],'get':function(){var _0xa39477=a10_0x1d311c;return cache_1[_0xa39477(0x1fe)];}});var event_1=require(a10_0x1d311c(0x1fa));Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x200),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object[a10_0x1d311c(0x1ce)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x349f95=a10_0x1d311c;return ApiService_1[_0x349f95(0x206)];}});var ExcelService_1=require(a10_0x1d311c(0x1e2));Object[a10_0x1d311c(0x1ce)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x326ca6=a10_0x1d311c;return ExcelService_1[_0x326ca6(0x20e)];}});var validator_1=require(a10_0x1d311c(0x20f));Object[a10_0x1d311c(0x1ce)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x294438=a10_0x1d311c;return validator_1[_0x294438(0x20d)];}}),Object[a10_0x1d311c(0x1ce)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x4c9984=a10_0x1d311c;return validator_1[_0x4c9984(0x1e1)];}});var configuration_1=require(a10_0x1d311c(0x1d9));Object['defineProperty'](exports,a10_0x1d311c(0x1cf),{'enumerable':!![],'get':function(){var _0x3fd152=a10_0x1d311c;return configuration_1[_0x3fd152(0x1e0)];}});var core_1=require('@midwayjs/core');Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1de),{'enumerable':!![],'get':function(){var _0x4d3ec6=a10_0x1d311c;return core_1[_0x4d3ec6(0x1de)];}}),Object['defineProperty'](exports,a10_0x1d311c(0x1fb),{'enumerable':!![],'get':function(){var _0x132b02=a10_0x1d311c;return core_1[_0x132b02(0x1fb)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1e6),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object['defineProperty'](exports,a10_0x1d311c(0x1f5),{'enumerable':!![],'get':function(){var _0x4022a0=a10_0x1d311c;return core_1[_0x4022a0(0x1f5)];}}),Object[a10_0x1d311c(0x1ce)](exports,'Param',{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x202),{'enumerable':!![],'get':function(){var _0x1874a5=a10_0x1d311c;return core_1[_0x1874a5(0x202)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1ef),{'enumerable':!![],'get':function(){var _0x179797=a10_0x1d311c;return core_1[_0x179797(0x1ef)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x205),{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a10_0x1d311c(0x1d2));Object['defineProperty'](exports,a10_0x1d311c(0x1d0),{'enumerable':!![],'get':function(){var _0x50c4d6=a10_0x1d311c;return core_2[_0x50c4d6(0x1d0)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x209),{'enumerable':!![],'get':function(){var _0x1ec64d=a10_0x1d311c;return core_2[_0x1ec64d(0x209)];}}),Object['defineProperty'](exports,'Logger',{'enumerable':!![],'get':function(){var _0x1f74a1=a10_0x1d311c;return core_2[_0x1f74a1(0x1eb)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x210),{'enumerable':!![],'get':function(){var _0x42b01b=a10_0x1d311c;return core_2[_0x42b01b(0x210)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1f8),{'enumerable':!![],'get':function(){var _0x4dc52d=a10_0x1d311c;return core_2[_0x4dc52d(0x1f8)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1d5),{'enumerable':!![],'get':function(){var _0x2a420d=a10_0x1d311c;return core_2[_0x2a420d(0x1d5)];}}),Object['defineProperty'](exports,a10_0x1d311c(0x1ed),{'enumerable':!![],'get':function(){var _0x47e0fb=a10_0x1d311c;return core_2[_0x47e0fb(0x1ed)];}}),Object[a10_0x1d311c(0x1ce)](exports,a10_0x1d311c(0x1d4),{'enumerable':!![],'get':function(){var _0x3f4f13=a10_0x1d311c;return core_2[_0x3f4f13(0x1d4)];}}),global[a10_0x1d311c(0x1d8)]=getAppsConfig_1[a10_0x1d311c(0x1d8)];function a10_0x4fc8(){var _0x1a340b=['ApiService','toString','IIntercept','Config','882060ZyChXF','./helper/getAppsConfig','1620072GSxOWc','ValidatorError','ExcelService','@anncic-api/validator','Provide','defineProperty','Configuration','App','default','@midwayjs/core','get','ScopeEnum','Scope','@anncic-api/cache','2461281DiSDvq','getAppsConfig','./configuration','./decorator/ActionApitest','2218050BEOlhh','__createBinding','(((.+)+)+)+$','File','Intercept','CustomConfiguration','ValidatorService','./service/ExcelService','search','./service/ApitestService','Api','Fields','./helper/getRoutes','apply','create','constructor','Logger','177122rHuUtB','Singleton','ApiError','Headers','Apitest','./types/common','./decorator/Action','5421072QdNYfZ','4208wXwkEB','Body','7847lKQdOJ','./exception/ApiError','Inject','Action','@anncic-api/event','Files','getRoutes','hasOwnProperty','CacheService','__esModule','EventService','getOwnPropertyDescriptor','Query','__exportStar','writable','Init'];a10_0x4fc8=function(){return _0x1a340b;};return a10_0x4fc8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x27c993=a11_0x406d;(function(_0x4df612,_0x54e8ee){var _0x4b642c=a11_0x406d,_0x3fcbef=_0x4df612();while(!![]){try{var _0x1c6527=-parseInt(_0x4b642c(0x112))/0x1+parseInt(_0x4b642c(0xff))/0x2+parseInt(_0x4b642c(0xf2))/0x3*(-parseInt(_0x4b642c(0x101))/0x4)+parseInt(_0x4b642c(0xe5))/0x5+parseInt(_0x4b642c(0xec))/0x6*(parseInt(_0x4b642c(0x111))/0x7)+parseInt(_0x4b642c(0x10d))/0x8+parseInt(_0x4b642c(0x117))/0x9;if(_0x1c6527===_0x54e8ee)break;else _0x3fcbef['push'](_0x3fcbef['shift']());}catch(_0x5178e1){_0x3fcbef['push'](_0x3fcbef['shift']());}}}(a11_0x3934,0x7d5bb));var a11_0x549a42=(function(){var _0x439cf3=!![];return function(_0x379eaf,_0x5bfb5c){var _0x175463=_0x439cf3?function(){var _0x5300e8=a11_0x406d;if(_0x5bfb5c){var _0x3dec26=_0x5bfb5c[_0x5300e8(0xea)](_0x379eaf,arguments);return _0x5bfb5c=null,_0x3dec26;}}:function(){};return _0x439cf3=![],_0x175463;};}()),a11_0x152649=a11_0x549a42(this,function(){var _0x1ad94c=a11_0x406d;return a11_0x152649[_0x1ad94c(0xf3)]()[_0x1ad94c(0xf1)](_0x1ad94c(0xfe))[_0x1ad94c(0xf3)]()[_0x1ad94c(0x115)](a11_0x152649)['search'](_0x1ad94c(0xfe));});a11_0x152649();'use strict';var __decorate=this&&this[a11_0x27c993(0x102)]||function(_0x3181da,_0x187940,_0x2b02d4,_0x277a55){var _0x25233e=a11_0x27c993,_0x409ec9=arguments['length'],_0x59946f=_0x409ec9<0x3?_0x187940:_0x277a55===null?_0x277a55=Object[_0x25233e(0x105)](_0x187940,_0x2b02d4):_0x277a55,_0x11c17b;if(typeof Reflect===_0x25233e(0xf4)&&typeof Reflect['decorate']==='function')_0x59946f=Reflect[_0x25233e(0xe4)](_0x3181da,_0x187940,_0x2b02d4,_0x277a55);else{for(var _0x316969=_0x3181da['length']-0x1;_0x316969>=0x0;_0x316969--)if(_0x11c17b=_0x3181da[_0x316969])_0x59946f=(_0x409ec9<0x3?_0x11c17b(_0x59946f):_0x409ec9>0x3?_0x11c17b(_0x187940,_0x2b02d4,_0x59946f):_0x11c17b(_0x187940,_0x2b02d4))||_0x59946f;}return _0x409ec9>0x3&&_0x59946f&&Object['defineProperty'](_0x187940,_0x2b02d4,_0x59946f),_0x59946f;},__metadata=this&&this['__metadata']||function(_0x5dbfaa,_0x4909ba){var _0x144809=a11_0x27c993;if(typeof Reflect==='object'&&typeof Reflect[_0x144809(0xdd)]==='function')return Reflect[_0x144809(0xdd)](_0x5dbfaa,_0x4909ba);};function a11_0x406d(_0x2c3874,_0x425fc9){var _0x52b439=a11_0x3934();return a11_0x406d=function(_0x152649,_0x549a42){_0x152649=_0x152649-0xdb;var _0x3934e5=_0x52b439[_0x152649];return _0x3934e5;},a11_0x406d(_0x2c3874,_0x425fc9);}Object[a11_0x27c993(0xe1)](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;function a11_0x3934(){var _0x15541a=['length','metadata','Singleton','缺少头信息:','config','defineProperty','fromEntries','HEADERS_DEVICE','decorate','1861240DvfSvW','signature','undefined','devices','getcheck','apply','timeout','174FkTtaL','entries','secret','now','logintime','search','9114veAfLA','toString','object','ApiService','ApiError','getsign','checksign','MD5','toLowerCase','Config','token','checkcode','(((.+)+)+)+$','164164rJIvJQ','map','1088JrNvnO','__decorate','password','../exception/ApiError','getOwnPropertyDescriptor','prototype','Provide','abs','HEADERS_SIGNATURE','HEADERS_LACK','TIMEOUT','logintimeout','2321320tSxrzP','design:type','anncicapi','ScopeEnum','218267nFJQia','883668zyUuxZ','缺少头信息:signature','requesttime','constructor','push','5172543vzNtco','sort','device'];a11_0x3934=function(){return _0x15541a;};return a11_0x3934();}const crypto_js_1=require('crypto-js'),core_1=require('@midwayjs/core'),ApiError_1=require(a11_0x27c993(0x104));let ApiService=class ApiService{['password'](_0x4b5563){var _0x2a47da=a11_0x27c993,_0x2b1fcf;return _0x4b5563?(0x0,crypto_js_1['MD5'])(''+_0x4b5563+(0x0,crypto_js_1[_0x2a47da(0xf9)])((0x0,crypto_js_1[_0x2a47da(0xf9)])(''+_0x4b5563)[_0x2a47da(0xf3)]()+(''+((_0x2b1fcf=this['config'])===null||_0x2b1fcf===void 0x0?void 0x0:_0x2b1fcf[_0x2a47da(0x103)])))['toString']())[_0x2a47da(0xf3)]():'';}[a11_0x27c993(0xe9)](_0x263ad1,_0x43e171,_0x3bad40=Date[a11_0x27c993(0xef)]()){var _0x4159f0=a11_0x27c993;return{'Token':_0x263ad1,'Logintime':_0x3bad40,'Checkcode':this[_0x4159f0(0xfd)](_0x263ad1,_0x43e171,_0x3bad40)};}[a11_0x27c993(0xf7)](_0x41474a={}){var _0x3793fa=a11_0x27c993,_0x3ad468,_0x34ce71;const _0x23486e=[],_0x995cc8=Object[_0x3793fa(0xe2)](Object[_0x3793fa(0xed)](_0x41474a)[_0x3793fa(0x100)](_0x1745b1=>[_0x1745b1[0x0][_0x3793fa(0xfa)](),_0x1745b1[0x1]]));for(let _0x3aecbc of[_0x3793fa(0xdb),_0x3793fa(0x114),_0x3793fa(0xfc),_0x3793fa(0xf0),'checkcode']){if(typeof _0x995cc8[_0x3aecbc]==_0x3793fa(0xe7))throw new AnnError(ApiError_1[_0x3793fa(0xf6)][_0x3793fa(0x10a)],{'message':_0x3793fa(0xdf)+_0x3aecbc});_0x23486e[_0x3793fa(0x116)](_0x3aecbc+'='+_0x995cc8[_0x3aecbc]);}_0x995cc8[_0x3793fa(0x114)]&&((_0x3ad468=_0x995cc8[_0x3793fa(0x114)])===null||_0x3ad468===void 0x0?void 0x0:_0x3ad468[_0x3793fa(0xdc)])==0xa&&(_0x995cc8[_0x3793fa(0x114)]=_0x995cc8[_0x3793fa(0x114)]*0x3e8);if(this['config'][_0x3793fa(0xeb)]&&Date['now']()-Math[_0x3793fa(0x108)](_0x995cc8[_0x3793fa(0x114)])>this['config'][_0x3793fa(0xeb)])throw new AnnError(ApiError_1[_0x3793fa(0xf6)][_0x3793fa(0x10b)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x995cc8['requesttime'],'timestamp':Date['now']()});if((((_0x34ce71=this[_0x3793fa(0xe0)]['devices'][_0x995cc8[_0x3793fa(0xdb)]])===null||_0x34ce71===void 0x0?void 0x0:_0x34ce71[_0x3793fa(0x10c)])||0x0)>0x0&&Date[_0x3793fa(0xef)]()-Math[_0x3793fa(0x108)](_0x995cc8[_0x3793fa(0xf0)])>this[_0x3793fa(0xe0)][_0x3793fa(0xe8)][_0x995cc8['device']][_0x3793fa(0x10c)])throw new AnnError(ApiError_1[_0x3793fa(0xf6)]['TIMEOUT_LOGINTIME']);if(!this[_0x3793fa(0xe0)]['devices'][_0x995cc8[_0x3793fa(0xdb)]]||!this[_0x3793fa(0xe0)][_0x3793fa(0xe8)][_0x995cc8[_0x3793fa(0xdb)]][_0x3793fa(0xee)]||!this['config'][_0x3793fa(0xe8)][_0x995cc8[_0x3793fa(0xdb)]][_0x3793fa(0xfd)])throw new AnnError(ApiError_1['ApiError'][_0x3793fa(0xe3)]);if(_0x995cc8[_0x3793fa(0xfc)]&&_0x995cc8[_0x3793fa(0xfd)]!=this[_0x3793fa(0xfd)](_0x995cc8[_0x3793fa(0xfc)],_0x995cc8[_0x3793fa(0xdb)],_0x995cc8[_0x3793fa(0xf0)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_CHECKCODE']);return _0x23486e['push']('secret='+this[_0x3793fa(0xe0)]['devices'][_0x995cc8['device']]['secret']),(0x0,crypto_js_1['MD5'])(_0x23486e[_0x3793fa(0x118)]()['join'](''))[_0x3793fa(0xf3)]();}['checkcode'](_0x5d8b48,_0x15207b,_0x515028=Date[a11_0x27c993(0xef)]()){var _0x3c7e90=a11_0x27c993,_0x58cf6d,_0x15373b,_0x26a056;if(!((_0x58cf6d=this['config'])===null||_0x58cf6d===void 0x0?void 0x0:_0x58cf6d['devices'][_0x15207b])||!((_0x26a056=(_0x15373b=this[_0x3c7e90(0xe0)])===null||_0x15373b===void 0x0?void 0x0:_0x15373b[_0x3c7e90(0xe8)][_0x15207b])===null||_0x26a056===void 0x0?void 0x0:_0x26a056['checkcode']))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x3c7e90(0xf9)])(''+_0x5d8b48+(0x0,crypto_js_1[_0x3c7e90(0xf9)])(''+_0x515028+(''+this[_0x3c7e90(0xe0)][_0x3c7e90(0xe8)][_0x15207b]['checkcode']))[_0x3c7e90(0xf3)]())[_0x3c7e90(0xf3)]();}[a11_0x27c993(0xf8)](_0x4a5e5c={}){var _0x1536ed=a11_0x27c993;const _0x3326ad=Object[_0x1536ed(0xe2)](Object[_0x1536ed(0xed)](_0x4a5e5c)[_0x1536ed(0x100)](_0x117f11=>[_0x117f11[0x0][_0x1536ed(0xfa)](),_0x117f11[0x1]]));if(!(_0x3326ad===null||_0x3326ad===void 0x0?void 0x0:_0x3326ad[_0x1536ed(0xe6)]))throw new AnnError(ApiError_1[_0x1536ed(0xf6)][_0x1536ed(0x10a)],{'message':_0x1536ed(0x113)});if((_0x3326ad===null||_0x3326ad===void 0x0?void 0x0:_0x3326ad[_0x1536ed(0xe6)])!=this[_0x1536ed(0xf7)](_0x3326ad))throw new AnnError(ApiError_1[_0x1536ed(0xf6)][_0x1536ed(0x109)]);return!![];}};__decorate([(0x0,core_1[a11_0x27c993(0xfb)])(a11_0x27c993(0x10f)),__metadata(a11_0x27c993(0x10e),Object)],ApiService[a11_0x27c993(0x106)],a11_0x27c993(0xe0),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x27c993(0x107)])(),(0x0,core_1['Scope'])(core_1[a11_0x27c993(0x110)][a11_0x27c993(0xde)])],ApiService),exports[a11_0x27c993(0xf5)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x51ba89=a12_0x29ed;(function(_0x2cbd7d,_0x1d0983){const _0x4cabbc=a12_0x29ed,_0x3276ac=_0x2cbd7d();while(!![]){try{const _0x5d1689=parseInt(_0x4cabbc(0xeb))/0x1+parseInt(_0x4cabbc(0x127))/0x2*(parseInt(_0x4cabbc(0x11e))/0x3)+-parseInt(_0x4cabbc(0x13b))/0x4*(parseInt(_0x4cabbc(0x10d))/0x5)+-parseInt(_0x4cabbc(0xf2))/0x6*(-parseInt(_0x4cabbc(0xf0))/0x7)+-parseInt(_0x4cabbc(0x123))/0x8*(-parseInt(_0x4cabbc(0xfe))/0x9)+parseInt(_0x4cabbc(0xfc))/0xa*(parseInt(_0x4cabbc(0x119))/0xb)+parseInt(_0x4cabbc(0x13c))/0xc*(-parseInt(_0x4cabbc(0x103))/0xd);if(_0x5d1689===_0x1d0983)break;else _0x3276ac['push'](_0x3276ac['shift']());}catch(_0x31b1fd){_0x3276ac['push'](_0x3276ac['shift']());}}}(a12_0x3ebd,0x48381));const a12_0x3fb013=(function(){let _0x28aa46=!![];return function(_0x55980d,_0x3d2306){const _0x5ec3ca=_0x28aa46?function(){const _0x32a890=a12_0x29ed;if(_0x3d2306){const _0x116b8b=_0x3d2306[_0x32a890(0x111)](_0x55980d,arguments);return _0x3d2306=null,_0x116b8b;}}:function(){};return _0x28aa46=![],_0x5ec3ca;};}()),a12_0x2aadb7=a12_0x3fb013(this,function(){const _0x48ad13=a12_0x29ed;return a12_0x2aadb7[_0x48ad13(0xf1)]()[_0x48ad13(0x110)]('(((.+)+)+)+$')[_0x48ad13(0xf1)]()[_0x48ad13(0x100)](a12_0x2aadb7)['search'](_0x48ad13(0x11c));});a12_0x2aadb7();function a12_0x3ebd(){const _0x11d349=['existsSync','Singleton','500pwTOeZ','defineProperty','1812114zAlMor','apitesthtml','constructor','/apiteststatic/*','cache-control','864123JrTjjd','Environment','application/javascript;\x20charset=utf-8','devices','apiteststatic','url','.css','readFileSync','@midwayjs/core','prototype','5WOrZRW','join','Provide','search','apply','decorate','Request','config','Param','method','module','Scope','120692ACZEoW','Controller','Config','(((.+)+)+)+$','extname','6597CcWBkC','text/css;\x20charset=utf-8','ApitestStaticController','Get','push','8QfzjZz','/apitest','apitestmodule','request','74WOoSTm','function','prefix','MidwayEnvironmentService','ApitestService','__apiList__','design:returntype','__metadata','content-type','set','design:paramtypes','/index.html','isDevelopmentEnvironment','replace','../../public/index.html','stringify','design:type','description','ctx','length','1484636KlyZPB','192crCDkL','ScopeEnum','415936NLZycr','apidoc','Inject','summary','.js','1519PRMCpu','toString','13362FsizmP','metadata','utf-8','apitest','anncicapi','/apiteststatic/','public,\x20max-age=604800','path'];a12_0x3ebd=function(){return _0x11d349;};return a12_0x3ebd();}'use strict';var __decorate=this&&this['__decorate']||function(_0x271f4b,_0x563443,_0x992a52,_0x4561dd){const _0x3e7df6=a12_0x29ed;var _0x335663=arguments[_0x3e7df6(0x13a)],_0x4a97e5=_0x335663<0x3?_0x563443:_0x4561dd===null?_0x4561dd=Object['getOwnPropertyDescriptor'](_0x563443,_0x992a52):_0x4561dd,_0xfda35d;if(typeof Reflect==='object'&&typeof Reflect[_0x3e7df6(0x112)]===_0x3e7df6(0x128))_0x4a97e5=Reflect[_0x3e7df6(0x112)](_0x271f4b,_0x563443,_0x992a52,_0x4561dd);else{for(var _0x1b85c1=_0x271f4b[_0x3e7df6(0x13a)]-0x1;_0x1b85c1>=0x0;_0x1b85c1--)if(_0xfda35d=_0x271f4b[_0x1b85c1])_0x4a97e5=(_0x335663<0x3?_0xfda35d(_0x4a97e5):_0x335663>0x3?_0xfda35d(_0x563443,_0x992a52,_0x4a97e5):_0xfda35d(_0x563443,_0x992a52))||_0x4a97e5;}return _0x335663>0x3&&_0x4a97e5&&Object['defineProperty'](_0x563443,_0x992a52,_0x4a97e5),_0x4a97e5;},__metadata=this&&this[a12_0x51ba89(0x12e)]||function(_0x351d6a,_0x317a0d){const _0x3da8d6=a12_0x51ba89;if(typeof Reflect==='object'&&typeof Reflect[_0x3da8d6(0xf3)]===_0x3da8d6(0x128))return Reflect['metadata'](_0x351d6a,_0x317a0d);},__param=this&&this['__param']||function(_0xd0b79e,_0x11ec47){return function(_0x151e78,_0x18d5a1){_0x11ec47(_0x151e78,_0x18d5a1,_0xd0b79e);};};Object[a12_0x51ba89(0xfd)](exports,'__esModule',{'value':!![]}),exports[a12_0x51ba89(0x120)]=exports[a12_0x51ba89(0x12b)]=void 0x0;const path_1=require(a12_0x51ba89(0xf9)),fs_1=require('fs'),core_1=require(a12_0x51ba89(0x10b)),core_2=require(a12_0x51ba89(0x10b)),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async['apidoc'](_0x42e91a){const _0x2a9d3c=a12_0x51ba89,_0x133c40=(0x0,getRoutes_1['getRoutes'])(_0x42e91a),_0x1f3d93=[];for(let _0x268d3c in _0x133c40){for(let _0x1d098c in _0x133c40[_0x268d3c]['routes']){let _0x17428e=_0x133c40[_0x268d3c]['routes'][_0x1d098c],_0xefe531=[];for(let _0x1d9706 in _0x17428e[_0x2a9d3c(0x126)]){_0xefe531[_0x2a9d3c(0x122)](_0x17428e[_0x2a9d3c(0x126)][_0x1d9706]);}_0x1f3d93['push']({'title':_0x133c40[_0x268d3c][_0x2a9d3c(0xee)]+':'+_0x17428e[_0x2a9d3c(0xee)],'prefix':_0x133c40[_0x268d3c][_0x2a9d3c(0x129)],'router':_0x17428e['route'],'method':_0x17428e[_0x2a9d3c(0x116)],'describe':_0x17428e[_0x2a9d3c(0x138)]||'','filepath':_0x133c40[_0x268d3c]['filepath']||'','request':_0xefe531});}}const _0x2d8b16=(0x0,path_1['join'])(__dirname,_0x2a9d3c(0x135));return(0x0,fs_1['readFileSync'])(_0x2d8b16,{'encoding':_0x2a9d3c(0xf4)})['replace'](/__res__/g,_0x2a9d3c(0xf7))[_0x2a9d3c(0x134)](_0x2a9d3c(0x12c),JSON['stringify'](_0x1f3d93))[_0x2a9d3c(0x134)]('__devices__',JSON[_0x2a9d3c(0x136)](this[_0x2a9d3c(0x114)][_0x2a9d3c(0x106)]));}};function a12_0x29ed(_0x4c6e23,_0x4259e3){const _0x54d14f=a12_0x3ebd();return a12_0x29ed=function(_0x2aadb7,_0x3fb013){_0x2aadb7=_0x2aadb7-0xeb;let _0x3ebd34=_0x54d14f[_0x2aadb7];return _0x3ebd34;},a12_0x29ed(_0x4c6e23,_0x4259e3);}__decorate([(0x0,core_3[a12_0x51ba89(0x11b)])(a12_0x51ba89(0xf6)),__metadata(a12_0x51ba89(0x137),Object)],ApitestService[a12_0x51ba89(0x10c)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x51ba89(0x10f)])(a12_0x51ba89(0xf5)),(0x0,core_3[a12_0x51ba89(0x118)])(core_3['ScopeEnum'][a12_0x51ba89(0xfb)])],ApitestService),exports[a12_0x51ba89(0x12b)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x51ba89(0xff)](){const _0x5ab514=a12_0x51ba89;if(this[_0x5ab514(0xf5)]){const _0x4610b5={'module':![]};return this[_0x5ab514(0x104)]['isDevelopmentEnvironment']()&&(_0x4610b5['filepath']=!![]),await this[_0x5ab514(0x12b)]['apidoc'](_0x4610b5);}return'';}async['apitestmodule'](_0x374d0f){const _0xa58e53=a12_0x51ba89;if(this['apitest']){const _0x440ca1={'module':_0x374d0f};return this[_0xa58e53(0x104)][_0xa58e53(0x133)]()&&(_0x440ca1['filepath']=!![]),await this[_0xa58e53(0x12b)][_0xa58e53(0xec)](_0x440ca1);}return'';}async[a12_0x51ba89(0x107)](){const _0x572b6c=a12_0x51ba89;if((0x0,path_1[_0x572b6c(0x11d)])(this[_0x572b6c(0x139)]['request'][_0x572b6c(0x108)])){var _0x2a9662=(0x0,path_1[_0x572b6c(0x10e)])(__dirname,'../../public/'+this['ctx'][_0x572b6c(0x126)][_0x572b6c(0x108)]['replace'](_0x572b6c(0xf7),'/'));if(_0x2a9662['substring'](_0x2a9662[_0x572b6c(0x13a)]-0xb)!=_0x572b6c(0x132)){this[_0x572b6c(0x139)][_0x572b6c(0x130)](_0x572b6c(0x102),_0x572b6c(0xf8));if((0x0,path_1['extname'])(this[_0x572b6c(0x139)][_0x572b6c(0x126)][_0x572b6c(0x108)])==_0x572b6c(0xef))this[_0x572b6c(0x139)][_0x572b6c(0x130)](_0x572b6c(0x12f),_0x572b6c(0x105));else(0x0,path_1[_0x572b6c(0x11d)])(this['ctx'][_0x572b6c(0x126)][_0x572b6c(0x108)])==_0x572b6c(0x109)&&this[_0x572b6c(0x139)][_0x572b6c(0x130)](_0x572b6c(0x12f),_0x572b6c(0x11f));return(0x0,fs_1[_0x572b6c(0xfa)])(_0x2a9662)&&(0x0,fs_1[_0x572b6c(0x10a)])(_0x2a9662,{'encoding':_0x572b6c(0xf4)});}}return'';}};__decorate([(0x0,core_3[a12_0x51ba89(0xed)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a12_0x51ba89(0x139),void 0x0),__decorate([(0x0,core_3[a12_0x51ba89(0xed)])(),__metadata(a12_0x51ba89(0x137),core_1[a12_0x51ba89(0x12a)])],ApitestStaticController[a12_0x51ba89(0x10c)],a12_0x51ba89(0x104),void 0x0),__decorate([(0x0,core_3[a12_0x51ba89(0xed)])(),__metadata(a12_0x51ba89(0x137),ApitestService)],ApitestStaticController[a12_0x51ba89(0x10c)],a12_0x51ba89(0x12b),void 0x0),__decorate([(0x0,core_3['Config'])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x51ba89(0x10c)],a12_0x51ba89(0xf5),void 0x0),__decorate([(0x0,core_3[a12_0x51ba89(0x11b)])('anncicapi'),__metadata(a12_0x51ba89(0x137),Object)],ApitestStaticController[a12_0x51ba89(0x10c)],a12_0x51ba89(0x114),void 0x0),__decorate([(0x0,core_2[a12_0x51ba89(0x121)])(a12_0x51ba89(0x124)),__metadata(a12_0x51ba89(0x137),Function),__metadata(a12_0x51ba89(0x131),[]),__metadata(a12_0x51ba89(0x12d),Promise)],ApitestStaticController[a12_0x51ba89(0x10c)],a12_0x51ba89(0xff),null),__decorate([(0x0,core_2['Get'])('/apitest-:module'),__param(0x0,(0x0,core_2[a12_0x51ba89(0x115)])(a12_0x51ba89(0x117))),__metadata('design:type',Function),__metadata('design:paramtypes',[String]),__metadata(a12_0x51ba89(0x12d),Promise)],ApitestStaticController['prototype'],a12_0x51ba89(0x125),null),__decorate([(0x0,core_2[a12_0x51ba89(0x121)])(a12_0x51ba89(0x101)),__metadata(a12_0x51ba89(0x137),Function),__metadata(a12_0x51ba89(0x131),[]),__metadata(a12_0x51ba89(0x12d),Promise)],ApitestStaticController['prototype'],a12_0x51ba89(0x107),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x51ba89(0x11a)])('/'),(0x0,core_3[a12_0x51ba89(0x118)])(core_3[a12_0x51ba89(0x13d)][a12_0x51ba89(0x113)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x190453=a13_0x2046;(function(_0x3c62c0,_0x2761bc){const _0x3a3d5b=a13_0x2046,_0x4f1fd3=_0x3c62c0();while(!![]){try{const _0x3eb951=parseInt(_0x3a3d5b(0x1a0))/0x1+parseInt(_0x3a3d5b(0x17b))/0x2+parseInt(_0x3a3d5b(0x173))/0x3*(parseInt(_0x3a3d5b(0x196))/0x4)+-parseInt(_0x3a3d5b(0x1ac))/0x5*(-parseInt(_0x3a3d5b(0x19c))/0x6)+parseInt(_0x3a3d5b(0x16e))/0x7*(parseInt(_0x3a3d5b(0x1ae))/0x8)+parseInt(_0x3a3d5b(0x175))/0x9*(-parseInt(_0x3a3d5b(0x18c))/0xa)+-parseInt(_0x3a3d5b(0x18e))/0xb*(parseInt(_0x3a3d5b(0x1a9))/0xc);if(_0x3eb951===_0x2761bc)break;else _0x4f1fd3['push'](_0x4f1fd3['shift']());}catch(_0x197acc){_0x4f1fd3['push'](_0x4f1fd3['shift']());}}}(a13_0xe61b,0x1ddb7));const a13_0x29d385=(function(){let _0x14cea5=!![];return function(_0x457e20,_0x55eef0){const _0x40c4ec=_0x14cea5?function(){const _0x8e1d2=a13_0x2046;if(_0x55eef0){const _0x11f81c=_0x55eef0[_0x8e1d2(0x179)](_0x457e20,arguments);return _0x55eef0=null,_0x11f81c;}}:function(){};return _0x14cea5=![],_0x40c4ec;};}()),a13_0x520d5d=a13_0x29d385(this,function(){const _0x529501=a13_0x2046;return a13_0x520d5d[_0x529501(0x1a3)]()[_0x529501(0x19f)]('(((.+)+)+)+$')[_0x529501(0x1a3)]()[_0x529501(0x1a7)](a13_0x520d5d)[_0x529501(0x19f)](_0x529501(0x194));});function a13_0x2046(_0x2c1f81,_0x9f8197){const _0x57837d=a13_0xe61b();return a13_0x2046=function(_0x520d5d,_0x29d385){_0x520d5d=_0x520d5d-0x164;let _0xe61bb4=_0x57837d[_0x520d5d];return _0xe61bb4;},a13_0x2046(_0x2c1f81,_0x9f8197);}a13_0x520d5d();'use strict';function a13_0xe61b(){const _0x14a3e9=['metadata','/public/xlsx/','Workbook','34146ZMlOVT','getOwnPropertyDescriptor','addRow','search','226805JGQBTV','mkdirSync','set','toString','get','getCell','value','constructor','handler','2657988mvRwdu','push','object','25aWcGaL','Api\x20Excel\x20Error:\x20','2008tKjukJ','startsWith','__decorate','model','col','exceljs','substring','writeFile','length','App','__metadata','parse','worksheets','1085HlRPkO','log','download','Scope','ExcelService','3vygHxd','function','18TaKEnB','@midwayjs/core','prototype','key','apply','koa-send','148992tvoOTB','app','replace','format','getAppDir','decorate','columns','Provide','.xlsx','endsWith','cellCount','addWorksheet','header','defineProperty','__esModule','isNumber','rowCount','632630bKHpqS','\x20is\x20read\x20fail','11bvXFAE','readFile','Sheet\x201','random','YYYY/MM/DD','values','(((.+)+)+)+$','getWorksheet','406636bLIjpu','xlsx','export'];a13_0xe61b=function(){return _0x14a3e9;};return a13_0xe61b();}var __decorate=this&&this[a13_0x190453(0x1b0)]||function(_0x3b9076,_0x41d199,_0x1f41b0,_0x431d6d){const _0x41802d=a13_0x190453;var _0x312fa2=arguments[_0x41802d(0x169)],_0x404be5=_0x312fa2<0x3?_0x41d199:_0x431d6d===null?_0x431d6d=Object[_0x41802d(0x19d)](_0x41d199,_0x1f41b0):_0x431d6d,_0x5a2e0f;if(typeof Reflect===_0x41802d(0x1ab)&&typeof Reflect[_0x41802d(0x180)]===_0x41802d(0x174))_0x404be5=Reflect[_0x41802d(0x180)](_0x3b9076,_0x41d199,_0x1f41b0,_0x431d6d);else{for(var _0x2b7609=_0x3b9076[_0x41802d(0x169)]-0x1;_0x2b7609>=0x0;_0x2b7609--)if(_0x5a2e0f=_0x3b9076[_0x2b7609])_0x404be5=(_0x312fa2<0x3?_0x5a2e0f(_0x404be5):_0x312fa2>0x3?_0x5a2e0f(_0x41d199,_0x1f41b0,_0x404be5):_0x5a2e0f(_0x41d199,_0x1f41b0))||_0x404be5;}return _0x312fa2>0x3&&_0x404be5&&Object[_0x41802d(0x188)](_0x41d199,_0x1f41b0,_0x404be5),_0x404be5;},__metadata=this&&this[a13_0x190453(0x16b)]||function(_0x159941,_0x4e6a56){const _0x2ac0cb=a13_0x190453;if(typeof Reflect==='object'&&typeof Reflect[_0x2ac0cb(0x199)]===_0x2ac0cb(0x174))return Reflect[_0x2ac0cb(0x199)](_0x159941,_0x4e6a56);};Object['defineProperty'](exports,a13_0x190453(0x189),{'value':!![]}),exports[a13_0x190453(0x172)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x190453(0x166)),koasend=require(a13_0x190453(0x17a)),core_1=require(a13_0x190453(0x176));let ExcelService=class ExcelService{async[a13_0x190453(0x16c)](_0x447ee0,_0x1ab71f,_0x430ae9=[0x0]){const _0x40faa7=a13_0x190453;var _0x2c9c8a,_0x442ea6;const _0x47f98b=new exceljs[(_0x40faa7(0x19b))](),_0x5f085d=[];let _0x338a73=_0x447ee0[_0x40faa7(0x17d)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x338a73===null||_0x338a73===void 0x0?void 0x0:_0x338a73[_0x40faa7(0x1af)]('/'))&&(_0x338a73=this[_0x40faa7(0x17c)][_0x40faa7(0x17f)]()+'/'+_0x338a73);try{await _0x47f98b[_0x40faa7(0x197)][_0x40faa7(0x18f)](_0x338a73);}catch(_0x1fb0fc){return console[_0x40faa7(0x16f)](_0x40faa7(0x1ad)+_0x338a73+_0x40faa7(0x18d)),_0x5f085d;}for(const _0x163ace of _0x430ae9){const _0x483e52=lodash[_0x40faa7(0x18a)](_0x163ace)?((_0x2c9c8a=_0x47f98b[_0x40faa7(0x16d)])===null||_0x2c9c8a===void 0x0?void 0x0:_0x2c9c8a[_0x163ace])||undefined:_0x47f98b[_0x40faa7(0x195)](_0x163ace);if(_0x483e52){var _0x168e24=0x1;const _0x517dc1=_0x483e52['getRow'](0x1),_0x594d84=await new Promise(_0x1c4396=>{const _0x432d9f={};_0x517dc1['eachCell']((_0x1f03f9,_0x1c6f09)=>{const _0x15ce3d=a13_0x2046;for(const _0x49acea of _0x1ab71f){if(_0x1f03f9[_0x15ce3d(0x1a6)]==_0x49acea['header'])_0x168e24=0x2,_0x432d9f[_0x49acea[_0x15ce3d(0x178)]]={'header':_0x1f03f9['col'],'handler':_0x49acea[_0x15ce3d(0x1a8)]};else{if(!_0x432d9f[_0x49acea[_0x15ce3d(0x178)]])try{const _0x4cd7f3=_0x517dc1&&_0x517dc1[_0x15ce3d(0x1a5)](_0x49acea[_0x15ce3d(0x187)]);_0x4cd7f3&&(_0x432d9f[_0x49acea[_0x15ce3d(0x178)]]={'header':_0x4cd7f3[_0x15ce3d(0x165)],'handler':_0x49acea[_0x15ce3d(0x1a8)]});}catch{}}}_0x517dc1[_0x15ce3d(0x185)]==_0x1c6f09&&_0x1c4396(_0x432d9f);});});for(const _0x44d96d of _0x483e52['findRows'](_0x168e24,_0x483e52[_0x40faa7(0x18b)])){const _0x56b44d={};for(const _0x22752b in _0x594d84){if(_0x594d84[_0x22752b][_0x40faa7(0x187)]){const _0x595ed4=_0x44d96d&&_0x44d96d['getCell'](_0x594d84[_0x22752b][_0x40faa7(0x187)]);typeof((_0x442ea6=_0x594d84[_0x22752b])===null||_0x442ea6===void 0x0?void 0x0:_0x442ea6[_0x40faa7(0x1a8)])==_0x40faa7(0x174)?_0x56b44d[_0x22752b]=await _0x594d84[_0x22752b][_0x40faa7(0x1a8)](lodash[_0x40faa7(0x1a2)]({},_0x22752b,(_0x595ed4===null||_0x595ed4===void 0x0?void 0x0:_0x595ed4[_0x40faa7(0x1a3)]())||''),_0x595ed4[_0x40faa7(0x164)]):_0x56b44d[_0x22752b]=(_0x595ed4===null||_0x595ed4===void 0x0?void 0x0:_0x595ed4['toString']())||'';}}Object['keys'](_0x56b44d)[_0x40faa7(0x169)]>0x0&&Object[_0x40faa7(0x193)](_0x56b44d)['filter'](_0x1b6c91=>_0x1b6c91!=='')[_0x40faa7(0x169)]>0x0&&_0x5f085d['push'](_0x56b44d);}}}return _0x5f085d;}async[a13_0x190453(0x198)](_0x3d5b3e,_0x315f93,_0x5d2b88,_0x3f55e7){const _0x1d0209=a13_0x190453;var _0x5547e2,_0xc2dc97;const _0x1eeeb3=new exceljs[(_0x1d0209(0x19b))](),_0x3fef1e={},_0x37ce84=[],_0x26efa0=_0x1eeeb3[_0x1d0209(0x186)](_0x1d0209(0x190),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0xae196e in _0x315f93){_0x3fef1e[_0x315f93[_0xae196e][_0x1d0209(0x178)]]=_0x315f93[_0xae196e]['header'],_0x37ce84[_0x1d0209(0x1aa)]({'header':_0x315f93[_0xae196e][_0x1d0209(0x187)],'key':(_0x5547e2=_0x315f93[_0xae196e])===null||_0x5547e2===void 0x0?void 0x0:_0x5547e2[_0x1d0209(0x178)][_0x1d0209(0x17d)](/\./g,'_')});}_0x26efa0[_0x1d0209(0x181)]=_0x37ce84;for(const _0x4dbc70 of _0x5d2b88){const _0xab907c={};for(const _0x22a031 in _0x315f93){typeof((_0xc2dc97=_0x315f93[_0x22a031])===null||_0xc2dc97===void 0x0?void 0x0:_0xc2dc97[_0x1d0209(0x1a8)])==_0x1d0209(0x174)?_0xab907c[_0x315f93[_0x22a031][_0x1d0209(0x178)][_0x1d0209(0x17d)](/\./g,'_')]=await _0x315f93[_0x22a031][_0x1d0209(0x1a8)](_0x4dbc70):_0xab907c[_0x315f93[_0x22a031][_0x1d0209(0x178)][_0x1d0209(0x17d)](/\./g,'_')]=lodash[_0x1d0209(0x1a4)](_0x4dbc70,_0x315f93[_0x22a031][_0x1d0209(0x178)],'');}_0x26efa0[_0x1d0209(0x19e)](_0xab907c);}let _0x2876dc='';const _0x42e65d=_0x3d5b3e+'-'+lodash[_0x1d0209(0x191)](0x186a0,0xf423f)+_0x1d0209(0x183);if(_0x3f55e7&&_0x3f55e7['startsWith']('/'))_0x2876dc=''+_0x3f55e7;else _0x3f55e7&&!_0x3f55e7[_0x1d0209(0x1af)]('/')&&!_0x3f55e7[_0x1d0209(0x1af)]('\x5c')?_0x2876dc=this[_0x1d0209(0x17c)]['getAppDir']()+'/'+_0x3f55e7:_0x2876dc=this['app'][_0x1d0209(0x17f)]()+_0x1d0209(0x19a)+dayjs()[_0x1d0209(0x17e)](_0x1d0209(0x192));return(_0x2876dc['endsWith']('/')||_0x2876dc[_0x1d0209(0x184)]('\x5c'))&&(_0x2876dc=_0x2876dc[_0x1d0209(0x167)](0x0,_0x2876dc[_0x1d0209(0x169)]-0x1)),_0x2876dc=_0x2876dc['replace'](/(\\|\/)/g,'/')[_0x1d0209(0x17d)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2876dc)&&fs[_0x1d0209(0x1a1)](_0x2876dc,{'recursive':!![]}),await _0x1eeeb3[_0x1d0209(0x197)][_0x1d0209(0x168)]((_0x2876dc+'/'+_0x42e65d)[_0x1d0209(0x17d)](/(\\|\/)/g,'/')[_0x1d0209(0x17d)](/\/{2,}/g,'/')),{'filename':_0x42e65d,'filepath':(_0x2876dc[_0x1d0209(0x167)]((''+this['app']['getAppDir']())[_0x1d0209(0x169)])+'/'+_0x42e65d)[_0x1d0209(0x17d)](/(\\|\/)/g,'/')[_0x1d0209(0x17d)](/\/{2,}/g,'/')};}async[a13_0x190453(0x170)](_0x257855,_0x213143){return await koasend(_0x257855,''+_0x213143);}};__decorate([(0x0,core_1[a13_0x190453(0x16a)])(),__metadata('design:type',Object)],ExcelService[a13_0x190453(0x177)],a13_0x190453(0x17c),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x190453(0x182)])(),(0x0,core_1[a13_0x190453(0x171)])(core_1['ScopeEnum']['Singleton'])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x5957c4=a14_0x1dac;(function(_0x67cb11,_0x542fe2){var _0x4c0802=a14_0x1dac,_0x2feba2=_0x67cb11();while(!![]){try{var _0x2303e0=-parseInt(_0x4c0802(0x166))/0x1+parseInt(_0x4c0802(0x172))/0x2*(parseInt(_0x4c0802(0x16e))/0x3)+-parseInt(_0x4c0802(0x16c))/0x4+parseInt(_0x4c0802(0x168))/0x5+-parseInt(_0x4c0802(0x165))/0x6*(parseInt(_0x4c0802(0x174))/0x7)+-parseInt(_0x4c0802(0x15f))/0x8*(parseInt(_0x4c0802(0x163))/0x9)+parseInt(_0x4c0802(0x173))/0xa*(parseInt(_0x4c0802(0x15e))/0xb);if(_0x2303e0===_0x542fe2)break;else _0x2feba2['push'](_0x2feba2['shift']());}catch(_0x114c11){_0x2feba2['push'](_0x2feba2['shift']());}}}(a14_0x2daa,0x9e1e7));var a14_0x2433b8=(function(){var _0x155ec9=!![];return function(_0x4023bd,_0x487df3){var _0x36b579=_0x155ec9?function(){if(_0x487df3){var _0x108d75=_0x487df3['apply'](_0x4023bd,arguments);return _0x487df3=null,_0x108d75;}}:function(){};return _0x155ec9=![],_0x36b579;};}()),a14_0x5e82e4=a14_0x2433b8(this,function(){var _0x3ab9cb=a14_0x1dac;return a14_0x5e82e4[_0x3ab9cb(0x16b)]()[_0x3ab9cb(0x170)](_0x3ab9cb(0x162))[_0x3ab9cb(0x16b)]()[_0x3ab9cb(0x16f)](a14_0x5e82e4)[_0x3ab9cb(0x170)](_0x3ab9cb(0x162));});a14_0x5e82e4();function a14_0x1dac(_0x376bb8,_0x142c8a){var _0x559589=a14_0x2daa();return a14_0x1dac=function(_0x5e82e4,_0x2433b8){_0x5e82e4=_0x5e82e4-0x15e;var _0x2daac7=_0x559589[_0x5e82e4];return _0x2daac7;},a14_0x1dac(_0x376bb8,_0x142c8a);}'use strict';Object[a14_0x5957c4(0x164)](exports,a14_0x5957c4(0x161),{'value':!![]}),exports[a14_0x5957c4(0x169)]=exports[a14_0x5957c4(0x160)]=exports['ACTION_ROUTE_KEY']=exports[a14_0x5957c4(0x175)]=void 0x0,exports[a14_0x5957c4(0x175)]=a14_0x5957c4(0x16d),exports[a14_0x5957c4(0x167)]=a14_0x5957c4(0x16a),exports['APPSCONFIG_KEY']=a14_0x5957c4(0x171);class AppsConfigTmp{}function a14_0x2daa(){var _0x24986a=['3334iUjTYG','12775510EBzcGT','104153Luoscj','ACTION_KEY','11Zukyjg','8GeXxuu','APPSCONFIG_KEY','__esModule','(((.+)+)+)+$','2294190rKZHHy','defineProperty','84CkfdPj','267818AKDBlf','ACTION_ROUTE_KEY','1166980pkmAJa','AppsConfigTmp','anncic-api:action:route','toString','4383136NYIQhG','anncic-api:action','1734QsonhN','constructor','search','anncic-api:apps:config'];a14_0x2daa=function(){return _0x24986a;};return a14_0x2daa();}exports[a14_0x5957c4(0x169)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x50bebc=a15_0x4ad0;(function(_0x451b92,_0x2e4819){var _0x1a2e5a=a15_0x4ad0,_0x97d0ea=_0x451b92();while(!![]){try{var _0x5d4230=-parseInt(_0x1a2e5a(0x12a))/0x1*(parseInt(_0x1a2e5a(0x119))/0x2)+-parseInt(_0x1a2e5a(0x11f))/0x3*(parseInt(_0x1a2e5a(0x11e))/0x4)+parseInt(_0x1a2e5a(0x121))/0x5+-parseInt(_0x1a2e5a(0x122))/0x6*(-parseInt(_0x1a2e5a(0x120))/0x7)+-parseInt(_0x1a2e5a(0x106))/0x8*(parseInt(_0x1a2e5a(0x10f))/0x9)+-parseInt(_0x1a2e5a(0x12c))/0xa+-parseInt(_0x1a2e5a(0x127))/0xb*(-parseInt(_0x1a2e5a(0x129))/0xc);if(_0x5d4230===_0x2e4819)break;else _0x97d0ea['push'](_0x97d0ea['shift']());}catch(_0x3efe72){_0x97d0ea['push'](_0x97d0ea['shift']());}}}(a15_0x57af,0x4b1da));var a15_0x5bf194=(function(){var _0x4e4633=!![];return function(_0x3d8f7d,_0x59b84b){var _0x2a691c=_0x4e4633?function(){if(_0x59b84b){var _0x160d8e=_0x59b84b['apply'](_0x3d8f7d,arguments);return _0x59b84b=null,_0x160d8e;}}:function(){};return _0x4e4633=![],_0x2a691c;};}()),a15_0xfc992e=a15_0x5bf194(this,function(){var _0x5cc6c3=a15_0x4ad0;return a15_0xfc992e[_0x5cc6c3(0x11a)]()['search'](_0x5cc6c3(0x10a))[_0x5cc6c3(0x11a)]()['constructor'](a15_0xfc992e)[_0x5cc6c3(0x112)]('(((.+)+)+)+$');});a15_0xfc992e();'use strict';function a15_0x57af(){var _0x2015cd=['_size','2818280JYXwiA','是否倒序','第一页为1,第二页为2','分页数量','(((.+)+)+)+$','trim','_order','1:是;0:否','getOwnPropertyDescriptor','9HFBmSB','metadata','integer','search','__metadata','@anncic-api/validator','valid','RuleType','min','function','12842KoWDwM','toString','number','Rule','object','4cxIWmc','1325661rduTzo','35ogNmGd','2243985KmjlOX','196956efUyZc','defineProperty','decorate','_page','length','13052215IYaZSJ','prototype','12KqfpSv','14fIkXcS','排序方式','6077520mjwRRf','__decorate','design:type','__esModule'];a15_0x57af=function(){return _0x2015cd;};return a15_0x57af();}var __decorate=this&&this[a15_0x50bebc(0x12d)]||function(_0x49fd67,_0x2d8eb8,_0xee5eed,_0x39d3ab){var _0x2eb6d3=a15_0x50bebc,_0x2418d3=arguments[_0x2eb6d3(0x126)],_0x4aafbb=_0x2418d3<0x3?_0x2d8eb8:_0x39d3ab===null?_0x39d3ab=Object[_0x2eb6d3(0x10e)](_0x2d8eb8,_0xee5eed):_0x39d3ab,_0x3fad6c;if(typeof Reflect===_0x2eb6d3(0x11d)&&typeof Reflect['decorate']===_0x2eb6d3(0x118))_0x4aafbb=Reflect[_0x2eb6d3(0x124)](_0x49fd67,_0x2d8eb8,_0xee5eed,_0x39d3ab);else{for(var _0x4840c7=_0x49fd67[_0x2eb6d3(0x126)]-0x1;_0x4840c7>=0x0;_0x4840c7--)if(_0x3fad6c=_0x49fd67[_0x4840c7])_0x4aafbb=(_0x2418d3<0x3?_0x3fad6c(_0x4aafbb):_0x2418d3>0x3?_0x3fad6c(_0x2d8eb8,_0xee5eed,_0x4aafbb):_0x3fad6c(_0x2d8eb8,_0xee5eed))||_0x4aafbb;}return _0x2418d3>0x3&&_0x4aafbb&&Object['defineProperty'](_0x2d8eb8,_0xee5eed,_0x4aafbb),_0x4aafbb;},__metadata=this&&this[a15_0x50bebc(0x113)]||function(_0xa3c591,_0x4676e8){var _0x4acd33=a15_0x50bebc;if(typeof Reflect===_0x4acd33(0x11d)&&typeof Reflect[_0x4acd33(0x110)]==='function')return Reflect[_0x4acd33(0x110)](_0xa3c591,_0x4676e8);};function a15_0x4ad0(_0x3f75af,_0x419dac){var _0x161361=a15_0x57af();return a15_0x4ad0=function(_0xfc992e,_0x5bf194){_0xfc992e=_0xfc992e-0x104;var _0x57af47=_0x161361[_0xfc992e];return _0x57af47;},a15_0x4ad0(_0x3f75af,_0x419dac);}Object[a15_0x50bebc(0x123)](exports,a15_0x50bebc(0x104),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x50bebc(0x114));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a15_0x50bebc(0x116)][a15_0x50bebc(0x11b)]()[a15_0x50bebc(0x111)]()[a15_0x50bebc(0x117)](0x1),a15_0x50bebc(0x108)),__metadata(a15_0x50bebc(0x12e),Number)],PageDTO['prototype'],a15_0x50bebc(0x125),void 0x0),__decorate([(0x0,validator_1[a15_0x50bebc(0x11c)])(a15_0x50bebc(0x109),validator_1[a15_0x50bebc(0x116)][a15_0x50bebc(0x11b)]()[a15_0x50bebc(0x111)]()[a15_0x50bebc(0x117)](0x1)),__metadata(a15_0x50bebc(0x12e),Number)],PageDTO[a15_0x50bebc(0x128)],a15_0x50bebc(0x105),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x50bebc(0x12b),validator_1['RuleType']['string']()[a15_0x50bebc(0x10b)]()),__metadata(a15_0x50bebc(0x12e),String)],PageDTO['prototype'],a15_0x50bebc(0x10c),void 0x0),__decorate([(0x0,validator_1[a15_0x50bebc(0x11c)])(a15_0x50bebc(0x107),validator_1[a15_0x50bebc(0x116)][a15_0x50bebc(0x11b)]()[a15_0x50bebc(0x111)]()[a15_0x50bebc(0x115)](0x0,0x1),a15_0x50bebc(0x10d)),__metadata(a15_0x50bebc(0x12e),Number)],PageDTO[a15_0x50bebc(0x128)],'_isreverse',void 0x0),exports['PageDTO']=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x300f62=a16_0x253b;(function(_0x3d126b,_0x220053){var _0x2248ca=a16_0x253b,_0x3e99b0=_0x3d126b();while(!![]){try{var _0x2c1ec1=-parseInt(_0x2248ca(0x13e))/0x1*(-parseInt(_0x2248ca(0x145))/0x2)+-parseInt(_0x2248ca(0x139))/0x3*(-parseInt(_0x2248ca(0x149))/0x4)+parseInt(_0x2248ca(0x13f))/0x5+-parseInt(_0x2248ca(0x148))/0x6+parseInt(_0x2248ca(0x144))/0x7+-parseInt(_0x2248ca(0x143))/0x8*(-parseInt(_0x2248ca(0x137))/0x9)+-parseInt(_0x2248ca(0x13d))/0xa;if(_0x2c1ec1===_0x220053)break;else _0x3e99b0['push'](_0x3e99b0['shift']());}catch(_0xc04539){_0x3e99b0['push'](_0x3e99b0['shift']());}}}(a16_0x5f0e,0xa5775));var a16_0x389d3b=(function(){var _0x2c2744=!![];return function(_0x521901,_0x833931){var _0x3d4d20=_0x2c2744?function(){var _0x3d6347=a16_0x253b;if(_0x833931){var _0x52764c=_0x833931[_0x3d6347(0x138)](_0x521901,arguments);return _0x833931=null,_0x52764c;}}:function(){};return _0x2c2744=![],_0x3d4d20;};}()),a16_0x5b76e9=a16_0x389d3b(this,function(){var _0x5d0778=a16_0x253b;return a16_0x5b76e9[_0x5d0778(0x13c)]()[_0x5d0778(0x147)]('(((.+)+)+)+$')['toString']()[_0x5d0778(0x146)](a16_0x5b76e9)[_0x5d0778(0x147)](_0x5d0778(0x141));});function a16_0x253b(_0x1cc10c,_0x49381a){var _0x4b6e95=a16_0x5f0e();return a16_0x253b=function(_0x5b76e9,_0x389d3b){_0x5b76e9=_0x5b76e9-0x137;var _0x5f0e8c=_0x4b6e95[_0x5b76e9];return _0x5f0e8c;},a16_0x253b(_0x1cc10c,_0x49381a);}a16_0x5b76e9();'use strict';Object[a16_0x300f62(0x142)](exports,a16_0x300f62(0x13b),{'value':!![]}),exports[a16_0x300f62(0x140)]=exports['INTERCEPT_KEY']=void 0x0,exports[a16_0x300f62(0x13a)]='anncic-api:intercept';function a16_0x5f0e(){var _0x2a38ad=['search','8085216TNlmJI','8AOHNPJ','9NXcotb','apply','1266186oQeaLD','INTERCEPT_KEY','__esModule','toString','28808690Hrbzbw','41278DqHdbz','4441300pQfOZn','InterceptTargetTmp','(((.+)+)+)+$','defineProperty','9257512NqLNlb','5736633APRtLN','58SUQqfr','constructor'];a16_0x5f0e=function(){return _0x2a38ad;};return a16_0x5f0e();}class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.5.
|
|
21
|
-
"@anncic-api/core": "^1.5.
|
|
22
|
-
"@anncic-api/event": "^1.5.
|
|
23
|
-
"@anncic-api/typeorm": "^1.5.
|
|
24
|
-
"@anncic-api/validator": "^1.5.
|
|
20
|
+
"@anncic-api/cache": "^1.5.10",
|
|
21
|
+
"@anncic-api/core": "^1.5.10",
|
|
22
|
+
"@anncic-api/event": "^1.5.10",
|
|
23
|
+
"@anncic-api/typeorm": "^1.5.10",
|
|
24
|
+
"@anncic-api/validator": "^1.5.10",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^1.5.
|
|
30
|
+
"anncic-apihelper": "^1.5.10",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f1c4c020b95986d603e280e6757f56e6aa9722a8"
|
|
41
41
|
}
|