anncic-api 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +9 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x1851(){var _0x4e0167=['2RYILIv','form','20mb','1218ljBkqv','apply','name','/runtime/.upload','xml','114KTbiKK','constructor','248260nzvtVg','dhauo1234420123gg3234901','14211LVWrES','(((.+)+)+)+$','385537cNKbuh','search','default','toString','json','410JUfshj','6aKpmsl','zhiulanuiy7892387985hnoi','111540QotVRH','57352SpWPjB','15112DMOtdJ','1124004CAqqZo','110itdrnh','3899FLAEvI'];a0_0x1851=function(){return _0x4e0167;};return a0_0x1851();}function a0_0x5e51(_0x5ace30,_0x53e7cc){var _0x187a7d=a0_0x1851();return a0_0x5e51=function(_0x4eff17,_0x3bb52f){_0x4eff17=_0x4eff17-0x165;var _0x18515d=_0x187a7d[_0x4eff17];return _0x18515d;},a0_0x5e51(_0x5ace30,_0x53e7cc);}var a0_0x300d17=a0_0x5e51;(function(_0x381f1f,_0x1eb3af){var _0x39726e=a0_0x5e51,_0x3269fe=_0x381f1f();while(!![]){try{var _0x32d337=parseInt(_0x39726e(0x174))/0x1*(parseInt(_0x39726e(0x166))/0x2)+-parseInt(_0x39726e(0x17a))/0x3*(parseInt(_0x39726e(0x17d))/0x4)+-parseInt(_0x39726e(0x170))/0x5*(parseInt(_0x39726e(0x16e))/0x6)+-parseInt(_0x39726e(0x165))/0x7*(-parseInt(_0x39726e(0x17e))/0x8)+parseInt(_0x39726e(0x172))/0x9*(-parseInt(_0x39726e(0x179))/0xa)+-parseInt(_0x39726e(0x180))/0xb*(-parseInt(_0x39726e(0x17f))/0xc)+parseInt(_0x39726e(0x17c))/0xd*(-parseInt(_0x39726e(0x169))/0xe);if(_0x32d337===_0x1eb3af)break;else _0x3269fe['push'](_0x3269fe['shift']());}catch(_0x276bad){_0x3269fe['push'](_0x3269fe['shift']());}}}(a0_0x1851,0x9050d));var a0_0x3bb52f=(function(){var _0x34ab2d=!![];return function(_0x4658ad,_0x409f12){var _0x276e2c=_0x34ab2d?function(){var _0x39583c=a0_0x5e51;if(_0x409f12){var _0x46441d=_0x409f12[_0x39583c(0x16a)](_0x4658ad,arguments);return _0x409f12=null,_0x46441d;}}:function(){};return _0x34ab2d=![],_0x276e2c;};}()),a0_0x4eff17=a0_0x3bb52f(this,function(){var _0x2556f3=a0_0x5e51;return a0_0x4eff17[_0x2556f3(0x177)]()[_0x2556f3(0x175)](_0x2556f3(0x173))['toString']()[_0x2556f3(0x16f)](a0_0x4eff17)[_0x2556f3(0x175)]('(((.+)+)+)+$');});a0_0x4eff17();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x300d17(0x176)]=_0x1134d4=>{var _0x1657bf=a0_0x300d17;return{'apitest':!![],'keys':_0x1134d4[_0x1657bf(0x16b)],'anncicapi':{'password':_0x1657bf(0x17b),'devices':{'DEFAULT':{'secret':_0x1657bf(0x171),'checkcode':_0x1657bf(0x171)}}},'bodyParser':{'enableTypes':[_0x1657bf(0x178),_0x1657bf(0x167),'text',_0x1657bf(0x16d)],'formLimit':_0x1657bf(0x168),'jsonLimit':_0x1657bf(0x168),'textLimit':_0x1657bf(0x168),'xmlLimit':_0x1657bf(0x168)},'upload':{'tmpdir':_0x1134d4['appDir']+_0x1657bf(0x16c),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x198897=a1_0x5247;function a1_0x29f6(){var _0x55cb29=['search','1567908BfPbtZ','178203wMIgoh','88rmdWzA','405558yiODkU','apply','13401XuHqSY','defineProperty','(((.+)+)+)+$','default','167166kxFFeT','35guwzSo','11aASiML','1294330ZwDPHF','129059yVezRA','48xOjDkO','18OcYYxK'];a1_0x29f6=function(){return _0x55cb29;};return a1_0x29f6();}(function(_0x56a9b6,_0x55f041){var _0x6cd41b=a1_0x5247,_0x5456b8=_0x56a9b6();while(!![]){try{var _0x3fc9ea=-parseInt(_0x6cd41b(0x87))/0x1+-parseInt(_0x6cd41b(0x89))/0x2+parseInt(_0x6cd41b(0x8b))/0x3*(parseInt(_0x6cd41b(0x88))/0x4)+parseInt(_0x6cd41b(0x7f))/0x5*(parseInt(_0x6cd41b(0x7e))/0x6)+-parseInt(_0x6cd41b(0x82))/0x7*(-parseInt(_0x6cd41b(0x83))/0x8)+parseInt(_0x6cd41b(0x84))/0x9*(parseInt(_0x6cd41b(0x81))/0xa)+parseInt(_0x6cd41b(0x80))/0xb*(-parseInt(_0x6cd41b(0x86))/0xc);if(_0x3fc9ea===_0x55f041)break;else _0x5456b8['push'](_0x5456b8['shift']());}catch(_0x349368){_0x5456b8['push'](_0x5456b8['shift']());}}}(a1_0x29f6,0x24e6c));var a1_0x1070c5=(function(){var _0x34143f=!![];return function(_0x91173b,_0x3f9ace){var _0x4dd923=_0x34143f?function(){var _0x107599=a1_0x5247;if(_0x3f9ace){var _0x3e5182=_0x3f9ace[_0x107599(0x8a)](_0x91173b,arguments);return _0x3f9ace=null,_0x3e5182;}}:function(){};return _0x34143f=![],_0x4dd923;};}()),a1_0x5239db=a1_0x1070c5(this,function(){var _0x1ef693=a1_0x5247;return a1_0x5239db['toString']()[_0x1ef693(0x85)](_0x1ef693(0x8d))['toString']()['constructor'](a1_0x5239db)[_0x1ef693(0x85)](_0x1ef693(0x8d));});a1_0x5239db();function a1_0x5247(_0x5aebcd,_0x1e3e79){var _0x57c8e9=a1_0x29f6();return a1_0x5247=function(_0x5239db,_0x1070c5){_0x5239db=_0x5239db-0x7e;var _0x29f62a=_0x57c8e9[_0x5239db];return _0x29f62a;},a1_0x5247(_0x5aebcd,_0x1e3e79);}'use strict';Object[a1_0x198897(0x8c)](exports,'__esModule',{'value':!![]}),exports[a1_0x198897(0x8e)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a2_0x5876(_0x509461,_0x10e05e){const _0x38c23f=a2_0x18ef();return a2_0x5876=function(_0x3b3b8a,_0x429f1d){_0x3b3b8a=_0x3b3b8a-0x173;let _0x18ef32=_0x38c23f[_0x3b3b8a];return _0x18ef32;},a2_0x5876(_0x509461,_0x10e05e);}const a2_0x2e1201=a2_0x5876;(function(_0x3de749,_0x1ce444){const _0x173909=a2_0x5876,_0x2c0d6c=_0x3de749();while(!![]){try{const _0x1032be=parseInt(_0x173909(0x1a9))/0x1+-parseInt(_0x173909(0x17a))/0x2+-parseInt(_0x173909(0x1cd))/0x3*(-parseInt(_0x173909(0x184))/0x4)+-parseInt(_0x173909(0x176))/0x5+parseInt(_0x173909(0x180))/0x6+parseInt(_0x173909(0x1d3))/0x7*(parseInt(_0x173909(0x1a7))/0x8)+-parseInt(_0x173909(0x1df))/0x9;if(_0x1032be===_0x1ce444)break;else _0x2c0d6c['push'](_0x2c0d6c['shift']());}catch(_0x18aed0){_0x2c0d6c['push'](_0x2c0d6c['shift']());}}}(a2_0x18ef,0x85a4c));const a2_0x429f1d=(function(){let _0x3ac02e=!![];return function(_0x493f4a,_0x1a993d){const _0x510c8b=_0x3ac02e?function(){const _0x2a6f5e=a2_0x5876;if(_0x1a993d){const _0x32f41f=_0x1a993d[_0x2a6f5e(0x1e1)](_0x493f4a,arguments);return _0x1a993d=null,_0x32f41f;}}:function(){};return _0x3ac02e=![],_0x510c8b;};}()),a2_0x3b3b8a=a2_0x429f1d(this,function(){const _0x2bafee=a2_0x5876;return a2_0x3b3b8a[_0x2bafee(0x1e9)]()[_0x2bafee(0x18e)](_0x2bafee(0x18a))['toString']()[_0x2bafee(0x1f1)](a2_0x3b3b8a)[_0x2bafee(0x18e)](_0x2bafee(0x18a));});a2_0x3b3b8a();'use strict';function a2_0x18ef(){const _0x1d408b=['defineProperties','__metadata','getClassMetadata','method','key','toString','requestContext','anncic-apihelper','@anncic-api/validator','MidwayEnvironmentService','MidwayApplicationManager','upload','HEADERS_SIGNATURE','constructor','__esModule','length','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','_matchedRoute','intercept','4772785OaRXfo','context','getOwnPropertyDescriptor','args','987274KfqTpJ','Anncic-api\x20static-file\x20:\x20mkdir\x20','request','addObject','decorate','defaultsDeep','3998244KvymRS','isClass','loggerConfig','dirs','3983244EONAys','getAppDir','keys','metadata','default','@anncic-api/core','(((.+)+)+)+$','INTERCEPT_KEY','@midwayjs/i18n','onReady','search','/runtime/apps-','@anncic-api/cache','koa-send','ApiError','device','readdirSync','design:type','MidwayConfigService','ApiService','-log','isNull','anncicapi','/runtime','log','anncic-api','CustomConfiguration','@midwayjs/core','target','./types/intercept','statSync','headers','hanlderApplications','@anncic-api/event','ACTION_ROUTE_KEY','328XMGPTk','undefined','146681yVJRQc','Configuration','existsSync','dir','isFunction','__decorate','checkConfigKeys','devices','string','apimit','tmpdir','@anncic-api/typeorm','getConfiguration','MidwayDecoratorService','clients','environment','@midwayjs/static-file','/apps','staticFile','getBaseDir','prototype','defineProperty','.log','InterceptTargetTmp','assign','forEach','./config/config.production','koa','handlerActionRoute','config','toLowerCase','match','/apps/','isDirectory','Inject','bodyXml','3eVOpLX','registerMethodHandler','application','input','body','App','181216FlrCHc','function','midwayLogger','mkdirSync','./config/config.default','@midwayjs/koa','attachment','get','isDevelopmentEnvironment','handler','object','app','7872084nkZnvk','REQUEST_OBJ_CTX_KEY','apply','filterConfig','Types'];a2_0x18ef=function(){return _0x1d408b;};return a2_0x18ef();}var __decorate=this&&this[a2_0x2e1201(0x1ae)]||function(_0x187e42,_0xf34df1,_0x78c46c,_0x1a45a5){const _0x33d5c4=a2_0x2e1201;var _0x5e1556=arguments[_0x33d5c4(0x1f3)],_0x3661f0=_0x5e1556<0x3?_0xf34df1:_0x1a45a5===null?_0x1a45a5=Object[_0x33d5c4(0x178)](_0xf34df1,_0x78c46c):_0x1a45a5,_0x345ee1;if(typeof Reflect===_0x33d5c4(0x1dd)&&typeof Reflect[_0x33d5c4(0x17e)]===_0x33d5c4(0x1d4))_0x3661f0=Reflect[_0x33d5c4(0x17e)](_0x187e42,_0xf34df1,_0x78c46c,_0x1a45a5);else{for(var _0x1945ef=_0x187e42[_0x33d5c4(0x1f3)]-0x1;_0x1945ef>=0x0;_0x1945ef--)if(_0x345ee1=_0x187e42[_0x1945ef])_0x3661f0=(_0x5e1556<0x3?_0x345ee1(_0x3661f0):_0x5e1556>0x3?_0x345ee1(_0xf34df1,_0x78c46c,_0x3661f0):_0x345ee1(_0xf34df1,_0x78c46c))||_0x3661f0;}return _0x5e1556>0x3&&_0x3661f0&&Object[_0x33d5c4(0x1be)](_0xf34df1,_0x78c46c,_0x3661f0),_0x3661f0;},__metadata=this&&this[a2_0x2e1201(0x1e5)]||function(_0x431255,_0x59947d){const _0x1c6651=a2_0x2e1201;if(typeof Reflect==='object'&&typeof Reflect[_0x1c6651(0x187)]==='function')return Reflect[_0x1c6651(0x187)](_0x431255,_0x59947d);};Object[a2_0x2e1201(0x1be)](exports,a2_0x2e1201(0x1f2),{'value':!![]}),exports[a2_0x2e1201(0x19e)]=void 0x0;const core_1=require(a2_0x2e1201(0x19f)),core_2=require(a2_0x2e1201(0x19f)),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),action_1=require('./types/action'),intercept_1=require(a2_0x2e1201(0x1a1)),fs=require('fs'),koasend=require(a2_0x2e1201(0x191)),koa=require(a2_0x2e1201(0x1d8)),i18n=require(a2_0x2e1201(0x18c)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x2e1201(0x1b9)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x2e1201(0x1d7)),ConfigProduction=require(a2_0x2e1201(0x1c3)),anncic=require(a2_0x2e1201(0x189)),anncicCache=require(a2_0x2e1201(0x190)),anncicEvent=require(a2_0x2e1201(0x1a5)),anncicTypeorm=require(a2_0x2e1201(0x1b4)),anncicValidator=require(a2_0x2e1201(0x1ec)),anncicHelper=require(a2_0x2e1201(0x1eb));let CustomConfiguration=class CustomConfiguration{async[a2_0x2e1201(0x18d)](){const _0x3b30e1=a2_0x2e1201;await this[_0x3b30e1(0x1e2)](),await this[_0x3b30e1(0x182)](),await this[_0x3b30e1(0x1af)](),await this[_0x3b30e1(0x1c5)](),await this[_0x3b30e1(0x1a4)]();}async[a2_0x2e1201(0x1af)](){}async[a2_0x2e1201(0x1c5)](){const _0xca324b=a2_0x2e1201,_0x32afc5=(0x0,core_1[_0xca324b(0x1e6)])(intercept_1[_0xca324b(0x18b)],intercept_1[_0xca324b(0x1c0)])||{};this['decorator'][_0xca324b(0x1ce)](action_1[_0xca324b(0x1a6)],_0x1e2f7a=>{const _0xf1617f=_0xca324b,_0x190d48=_0x1e2f7a[_0xf1617f(0x187)];return{'before':async _0x30ba5d=>{const _0x15c015=_0xf1617f;var _0xa885d4,_0xa5174f;const _0x77863a=(_0xa885d4=_0x30ba5d===null||_0x30ba5d===void 0x0?void 0x0:_0x30ba5d[_0x15c015(0x1a0)])===null||_0xa885d4===void 0x0?void 0x0:_0xa885d4[core_2[_0x15c015(0x1e0)]];if(_0x77863a&&(_0x190d48===null||_0x190d48===void 0x0?void 0x0:_0x190d48[_0x15c015(0x1b2)])){if(!this['ApiService']['checksign']((_0xa5174f=_0x77863a===null||_0x77863a===void 0x0?void 0x0:_0x77863a['request'])===null||_0xa5174f===void 0x0?void 0x0:_0xa5174f['headers']))throw new AnnError(ApiError_1[_0x15c015(0x192)][_0x15c015(0x1f0)]);}},'around':async _0x491ab4=>{const _0x144dad=_0xf1617f;var _0x2b22bd,_0x2c48bf,_0x4d4d4a;const _0xe62125=(_0x2b22bd=_0x491ab4===null||_0x491ab4===void 0x0?void 0x0:_0x491ab4[_0x144dad(0x1a0)])===null||_0x2b22bd===void 0x0?void 0x0:_0x2b22bd[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xe62125&&(_0x190d48===null||_0x190d48===void 0x0?void 0x0:_0x190d48[_0x144dad(0x1b2)])&&((_0x190d48===null||_0x190d48===void 0x0?void 0x0:_0x190d48[_0x144dad(0x175)])||typeof(_0x190d48===null||_0x190d48===void 0x0?void 0x0:_0x190d48[_0x144dad(0x175)])==_0x144dad(0x1a8))){if(((_0x2c48bf=_0xe62125[_0x144dad(0x1a3)])===null||_0x2c48bf===void 0x0?void 0x0:_0x2c48bf[_0x144dad(0x193)])&&((_0x4d4d4a=_0x32afc5===null||_0x32afc5===void 0x0?void 0x0:_0x32afc5[_0xe62125[_0x144dad(0x1a3)][_0x144dad(0x193)]])===null||_0x4d4d4a===void 0x0?void 0x0:_0x4d4d4a[_0x144dad(0x1f3)])>0x0)for(const _0x2f1fb8 of _0x32afc5[_0xe62125[_0x144dad(0x1a3)][_0x144dad(0x193)]]||[]){if(core_1[_0x144dad(0x1e3)][_0x144dad(0x181)](_0x2f1fb8)){const _0x2991eb=await _0xe62125[_0x144dad(0x1ea)]['getAsync'](_0x2f1fb8);typeof(_0x2991eb===null||_0x2991eb===void 0x0?void 0x0:_0x2991eb[_0x144dad(0x1c8)])==_0x144dad(0x1d4)?await _0x2991eb[_0x144dad(0x1c8)](_0xe62125,typeof(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125['method'])==_0x144dad(0x1b1)&&(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x174)])?_0xe62125[_0x144dad(0x1e7)][_0x144dad(0x1c7)]()+'@'+(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125['_matchedRoute']):undefined,_0x190d48)&&await _0x2991eb[_0x144dad(0x1dc)](_0xe62125,typeof(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125['method'])==_0x144dad(0x1b1)&&(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125['_matchedRoute'])?_0xe62125[_0x144dad(0x1e7)][_0x144dad(0x1c7)]()+'@'+(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x174)]):undefined,_0x190d48):await _0x2991eb[_0x144dad(0x1dc)](_0xe62125,typeof(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x1e7)])=='string'&&(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x174)])?_0xe62125[_0x144dad(0x1e7)][_0x144dad(0x1c7)]()+'@'+(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x174)]):undefined,_0x190d48);}else core_1['Types'][_0x144dad(0x1ad)](_0x2f1fb8)&&await _0x2f1fb8(_0xe62125,typeof(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x1e7)])==_0x144dad(0x1b1)&&(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x174)])?_0xe62125['method'][_0x144dad(0x1c7)]()+'@'+(_0xe62125===null||_0xe62125===void 0x0?void 0x0:_0xe62125[_0x144dad(0x174)]):undefined,_0x190d48);}}return await _0x491ab4['proceed'](..._0x491ab4[_0x144dad(0x179)]);},'afterThrow':(_0x74f96f,_0x3fd627)=>{throw _0x3fd627;}};});}async[a2_0x2e1201(0x1a4)](){const _0x5ba882=a2_0x2e1201;this[_0x5ba882(0x1cf)]['getApplications']([_0x5ba882(0x1c4)])[_0x5ba882(0x1c2)](_0x5b0c86=>{const _0x13cb4a=_0x5ba882;(_0x5b0c86===null||_0x5b0c86===void 0x0?void 0x0:_0x5b0c86['context'])&&Object[_0x13cb4a(0x1e4)](_0x5b0c86[_0x13cb4a(0x177)],{'ok':{'value':function(_0x3b5572,_0x5819f0,_0x405d69=0x0){return{'code':_0x405d69,'data':_0x3b5572,'extra':_0x5819f0};}},'input':{'value':function(_0x2aa5e9,_0x2d6c96){const _0x3633d1=_0x13cb4a;var _0x122b46;const _0x239808=lodash[_0x3633d1(0x17f)]({},this[_0x3633d1(0x17c)][_0x3633d1(0x1d1)]||this[_0x3633d1(0x17c)][((_0x122b46=config===null||config===void 0x0?void 0x0:config[_0x3633d1(0x1cc)])===null||_0x122b46===void 0x0?void 0x0:_0x122b46[_0x3633d1(0x1e8)])||_0x3633d1(0x1d1)]||{},this[_0x3633d1(0x17c)]['query']||{});return _0x2aa5e9?lodash[_0x3633d1(0x1da)](_0x239808,_0x2aa5e9,_0x2d6c96):_0x239808;}},'when':{'value':async function(_0x5d801a,_0x404a28){const _0x4e9da3=_0x13cb4a,_0x159104=this[_0x4e9da3(0x1d0)](_0x5d801a,null);if(!lodash[_0x4e9da3(0x199)](_0x159104))return await _0x404a28(_0x159104);}},'only':{'value':function(_0x5d90a8){const _0x8e2a4f=_0x13cb4a,_0x3cb58c={};for(let _0x211b62=0x0;_0x211b62<_0x5d90a8[_0x8e2a4f(0x1f3)];_0x211b62++){lodash['isArray'](_0x5d90a8[_0x211b62])&&_0x5d90a8[_0x211b62][_0x8e2a4f(0x1f3)]>0x0&&lodash['isString'](_0x5d90a8[_0x211b62][0x0])&&(_0x3cb58c[_0x5d90a8[_0x211b62][0x0]]=this[_0x8e2a4f(0x1d0)](_0x5d90a8[_0x211b62][0x0],_0x5d90a8[_0x211b62]['length']>0x1?_0x5d90a8[_0x211b62][0x1]:null));}return _0x3cb58c;}},'koasend':{'value':function(_0x29c073,_0x4b7315){const _0x1383e8=_0x13cb4a;if(!fs[_0x1383e8(0x1ab)](this[_0x1383e8(0x1de)][_0x1383e8(0x185)]()+'/'+_0x29c073))return'文件不存在';return this[_0x1383e8(0x1d9)](_0x4b7315||_0x29c073),koasend(this,_0x29c073);}}});});}async[a2_0x2e1201(0x182)](){const _0x47096d=a2_0x2e1201;var _0x6e196b,_0x48e1b6;if(fs[_0x47096d(0x1ab)](this['app'][_0x47096d(0x1bc)]()+'/apps')&&fs['statSync'](this[_0x47096d(0x1de)][_0x47096d(0x1bc)]()+'/apps')[_0x47096d(0x1ca)]()){const _0x5349bb=this[_0x47096d(0x1c6)][_0x47096d(0x1b5)](),_0xe6de5=((_0x6e196b=_0x5349bb===null||_0x5349bb===void 0x0?void 0x0:_0x5349bb[_0x47096d(0x1d5)])===null||_0x6e196b===void 0x0?void 0x0:_0x6e196b[_0x47096d(0x1b7)])||{};for(const _0x55c13f of fs[_0x47096d(0x194)](this['app']['getBaseDir']()+_0x47096d(0x1ba))){if(!fs[_0x47096d(0x1a2)](this[_0x47096d(0x1de)]['getBaseDir']()+_0x47096d(0x1c9)+_0x55c13f)[_0x47096d(0x1ca)]())continue;if(_0xe6de5===null||_0xe6de5===void 0x0?void 0x0:_0xe6de5[_0x55c13f])continue;_0xe6de5[_0x55c13f]=Object[_0x47096d(0x1c1)]({},((_0x48e1b6=_0x5349bb===null||_0x5349bb===void 0x0?void 0x0:_0x5349bb[_0x47096d(0x1d5)])===null||_0x48e1b6===void 0x0?void 0x0:_0x48e1b6[_0x47096d(0x188)])||{'maxSize':'1m','dir':this[_0x47096d(0x1de)][_0x47096d(0x185)]()+_0x47096d(0x19b)},{'enableJSON':!![],'enableConsole':this[_0x47096d(0x1b8)][_0x47096d(0x1db)](),'fileLogName':_0x55c13f+_0x47096d(0x1bf),'dir':this['app'][_0x47096d(0x185)]()+_0x47096d(0x18f)+_0x55c13f+_0x47096d(0x198)});}Object['keys'](_0xe6de5)[_0x47096d(0x1f3)]>0x0&&(!_0x5349bb[_0x47096d(0x1d5)]&&(_0x5349bb[_0x47096d(0x1d5)]={'default':{'maxSize':'1m','dir':this[_0x47096d(0x1de)][_0x47096d(0x185)]()+'/runtime'}}),_0x5349bb[_0x47096d(0x1d5)][_0x47096d(0x1b7)]=_0xe6de5),this[_0x47096d(0x1c6)][_0x47096d(0x17d)](_0x5349bb);}}async[a2_0x2e1201(0x1e2)](){const _0x51c240=a2_0x2e1201;var _0x1a63bd,_0x390e2a,_0x5bd395,_0x824eea,_0x5201ca,_0xb3a871;const _0x596755=this[_0x51c240(0x1c6)][_0x51c240(0x1b5)]();((_0x390e2a=(_0x1a63bd=_0x596755===null||_0x596755===void 0x0?void 0x0:_0x596755[_0x51c240(0x19a)])===null||_0x1a63bd===void 0x0?void 0x0:_0x1a63bd[_0x51c240(0x1b0)])===null||_0x390e2a===void 0x0?void 0x0:_0x390e2a['DEFAULT'])&&Object[_0x51c240(0x186)](_0x596755[_0x51c240(0x19a)]['devices'])[_0x51c240(0x1f3)]>0x1&&delete _0x596755['anncicapi'][_0x51c240(0x1b0)]['DEFAULT'];if((_0x5bd395=_0x596755===null||_0x596755===void 0x0?void 0x0:_0x596755[_0x51c240(0x1bb)])===null||_0x5bd395===void 0x0?void 0x0:_0x5bd395[_0x51c240(0x183)])for(const _0x55bc1f in _0x596755[_0x51c240(0x1bb)]['dirs']){((_0x824eea=_0x596755[_0x51c240(0x1bb)][_0x51c240(0x183)][_0x55bc1f])===null||_0x824eea===void 0x0?void 0x0:_0x824eea[_0x51c240(0x1ac)])&&typeof((_0x5201ca=_0x596755[_0x51c240(0x1bb)][_0x51c240(0x183)][_0x55bc1f])===null||_0x5201ca===void 0x0?void 0x0:_0x5201ca[_0x51c240(0x1ac)])==_0x51c240(0x1b1)&&!fs[_0x51c240(0x1ab)](_0x596755[_0x51c240(0x1bb)]['dirs'][_0x55bc1f]['dir'])&&(fs['mkdirSync'](_0x596755[_0x51c240(0x1bb)]['dirs'][_0x55bc1f][_0x51c240(0x1ac)],{'recursive':!![]}),console['log'](_0x51c240(0x17b)+_0x596755[_0x51c240(0x1bb)][_0x51c240(0x183)][_0x55bc1f][_0x51c240(0x1ac)]));}((_0xb3a871=_0x596755===null||_0x596755===void 0x0?void 0x0:_0x596755['upload'])===null||_0xb3a871===void 0x0?void 0x0:_0xb3a871[_0x51c240(0x1b3)])&&!fs[_0x51c240(0x1ab)](_0x596755[_0x51c240(0x1ef)][_0x51c240(0x1b3)])&&(fs[_0x51c240(0x1d6)](_0x596755[_0x51c240(0x1ef)][_0x51c240(0x1b3)],{'recursive':!![]}),console[_0x51c240(0x19c)](_0x51c240(0x173)+_0x596755[_0x51c240(0x1ef)][_0x51c240(0x1b3)])),this[_0x51c240(0x1c6)][_0x51c240(0x17d)](_0x596755);}};__decorate([(0x0,core_1[a2_0x2e1201(0x1d2)])(),__metadata(a2_0x2e1201(0x195),Object)],CustomConfiguration[a2_0x2e1201(0x1bd)],a2_0x2e1201(0x1de),void 0x0),__decorate([(0x0,core_1[a2_0x2e1201(0x1cb)])(),__metadata(a2_0x2e1201(0x195),core_2[a2_0x2e1201(0x196)])],CustomConfiguration[a2_0x2e1201(0x1bd)],a2_0x2e1201(0x1c6),void 0x0),__decorate([(0x0,core_1[a2_0x2e1201(0x1cb)])(),__metadata(a2_0x2e1201(0x195),core_2[a2_0x2e1201(0x1b6)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x2e1201(0x1cb)])(),__metadata('design:type',core_2[a2_0x2e1201(0x1ee)])],CustomConfiguration[a2_0x2e1201(0x1bd)],'application',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x2e1201(0x1ed)])],CustomConfiguration[a2_0x2e1201(0x1bd)],a2_0x2e1201(0x1b8),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',ApiService_1[a2_0x2e1201(0x197)])],CustomConfiguration['prototype'],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2e1201(0x1aa)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2e1201(0x19d),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
function a2_0x24b2(_0xc3cbb1,_0x2cbed9){const _0x532c3f=a2_0x3942();return a2_0x24b2=function(_0x395e25,_0x34a444){_0x395e25=_0x395e25-0xf2;let _0x39428f=_0x532c3f[_0x395e25];return _0x39428f;},a2_0x24b2(_0xc3cbb1,_0x2cbed9);}const a2_0x5400dc=a2_0x24b2;(function(_0x115d18,_0x2a8ec8){const _0x4eb6e6=a2_0x24b2,_0x48059d=_0x115d18();while(!![]){try{const _0xd1322b=parseInt(_0x4eb6e6(0x11c))/0x1+parseInt(_0x4eb6e6(0x12e))/0x2*(parseInt(_0x4eb6e6(0x11b))/0x3)+-parseInt(_0x4eb6e6(0x16d))/0x4+-parseInt(_0x4eb6e6(0x111))/0x5*(-parseInt(_0x4eb6e6(0x109))/0x6)+parseInt(_0x4eb6e6(0x126))/0x7*(-parseInt(_0x4eb6e6(0x101))/0x8)+parseInt(_0x4eb6e6(0x12b))/0x9*(-parseInt(_0x4eb6e6(0x149))/0xa)+-parseInt(_0x4eb6e6(0xf3))/0xb*(parseInt(_0x4eb6e6(0xf7))/0xc);if(_0xd1322b===_0x2a8ec8)break;else _0x48059d['push'](_0x48059d['shift']());}catch(_0x4a9e04){_0x48059d['push'](_0x48059d['shift']());}}}(a2_0x3942,0x7f908));const a2_0x34a444=(function(){let _0x8ad172=!![];return function(_0x559a9d,_0x5b55d6){const _0x5a15ab=_0x8ad172?function(){if(_0x5b55d6){const _0x5d4d11=_0x5b55d6['apply'](_0x559a9d,arguments);return _0x5b55d6=null,_0x5d4d11;}}:function(){};return _0x8ad172=![],_0x5a15ab;};}()),a2_0x395e25=a2_0x34a444(this,function(){const _0x48305a=a2_0x24b2;return a2_0x395e25[_0x48305a(0xfc)]()[_0x48305a(0x15e)]('(((.+)+)+)+$')[_0x48305a(0xfc)]()[_0x48305a(0x16b)](a2_0x395e25)['search'](_0x48305a(0xf4));});a2_0x395e25();'use strict';function a2_0x3942(){const _0x54961f=['./types/action','handler','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','CustomConfiguration','@midwayjs/core','handlerActionRoute','/apps/','application','proceed','DEFAULT','isDirectory','key','.log','__decorate','checkConfigKeys','defineProperties','match','@midwayjs/static-file','args','undefined','upload','existsSync','anncic-apihelper','ACTION_ROUTE_KEY','4819560MzaNYK','bodyXml','anncic-api','tmpdir','requestContext','__metadata','isClass','defineProperty','filterConfig','string','object','dirs','@anncic-api/core','dir','Anncic-api\x20static-file\x20:\x20mkdir\x20','method','length','target','body','@midwayjs/i18n','/runtime/apps-','search','keys','getAppDir','intercept','clients','onReady','mkdirSync','staticFile','assign','log','input','isDevelopmentEnvironment','@midwayjs/cross-domain','constructor','__esModule','199764NMOvVD','getClassMetadata','decorate','metadata','440671eIjrSB','(((.+)+)+)+$','app','statSync','204FcNWcE','apimit','loggerConfig','decorator','isNull','toString','headers','config','design:type','function','1168VSASlc','@anncic-api/event','query','addObject','getConfiguration','MidwayApplicationManager','MidwayDecoratorService','ApiService','67962cExndY','toLowerCase','_matchedRoute','request','defaultsDeep','Configuration','devices','koa','390bDaBtA','INTERCEPT_KEY','get','midwayLogger','anncicapi','device','forEach','registerMethodHandler','getApplications','REQUEST_OBJ_CTX_KEY','87BaaCFC','450356HCWfwi','InterceptTargetTmp','default','Types','/runtime','isArray','App','prototype','attachment','koa-send','30562kQQoya','Inject','@anncic-api/typeorm','@midwayjs/upload','isString','9MkAzGE','/apps','@anncic-api/validator','71656STPhqa','-log','getBaseDir'];a2_0x3942=function(){return _0x54961f;};return a2_0x3942();}var __decorate=this&&this[a2_0x5400dc(0x13e)]||function(_0x3d489f,_0x3f92dc,_0x5ba79f,_0x4c857d){const _0x1b4870=a2_0x5400dc;var _0x2c526c=arguments['length'],_0x4b15e1=_0x2c526c<0x3?_0x3f92dc:_0x4c857d===null?_0x4c857d=Object['getOwnPropertyDescriptor'](_0x3f92dc,_0x5ba79f):_0x4c857d,_0x162055;if(typeof Reflect===_0x1b4870(0x153)&&typeof Reflect[_0x1b4870(0x16f)]===_0x1b4870(0x100))_0x4b15e1=Reflect[_0x1b4870(0x16f)](_0x3d489f,_0x3f92dc,_0x5ba79f,_0x4c857d);else{for(var _0x13d6dc=_0x3d489f[_0x1b4870(0x159)]-0x1;_0x13d6dc>=0x0;_0x13d6dc--)if(_0x162055=_0x3d489f[_0x13d6dc])_0x4b15e1=(_0x2c526c<0x3?_0x162055(_0x4b15e1):_0x2c526c>0x3?_0x162055(_0x3f92dc,_0x5ba79f,_0x4b15e1):_0x162055(_0x3f92dc,_0x5ba79f))||_0x4b15e1;}return _0x2c526c>0x3&&_0x4b15e1&&Object[_0x1b4870(0x150)](_0x3f92dc,_0x5ba79f,_0x4b15e1),_0x4b15e1;},__metadata=this&&this[a2_0x5400dc(0x14e)]||function(_0x1db097,_0x47747e){const _0x554def=a2_0x5400dc;if(typeof Reflect===_0x554def(0x153)&&typeof Reflect[_0x554def(0xf2)]==='function')return Reflect[_0x554def(0xf2)](_0x1db097,_0x47747e);};Object['defineProperty'](exports,a2_0x5400dc(0x16c),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x5400dc(0x135)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x5400dc(0x131)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x5400dc(0x125)),koa=require('@midwayjs/koa'),i18n=require(a2_0x5400dc(0x15c)),upload=require(a2_0x5400dc(0x129)),staticFile=require(a2_0x5400dc(0x142)),crossDomain=require(a2_0x5400dc(0x16a)),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x5400dc(0x155)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x5400dc(0x102)),anncicTypeorm=require(a2_0x5400dc(0x128)),anncicValidator=require(a2_0x5400dc(0x12d)),anncicHelper=require(a2_0x5400dc(0x147));let CustomConfiguration=class CustomConfiguration{async[a2_0x5400dc(0x163)](){const _0x122381=a2_0x5400dc;await this[_0x122381(0x151)](),await this[_0x122381(0xf9)](),await this[_0x122381(0x13f)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x5400dc(0x13f)](){}async[a2_0x5400dc(0x136)](){const _0x3518d0=a2_0x5400dc,_0x528646=(0x0,core_1[_0x3518d0(0x16e)])(intercept_1[_0x3518d0(0x112)],intercept_1[_0x3518d0(0x11d)])||{};this[_0x3518d0(0xfa)][_0x3518d0(0x118)](action_1[_0x3518d0(0x148)],_0x4b2150=>{const _0x476dfc=_0x3518d0,_0x207240=_0x4b2150[_0x476dfc(0xf2)];return{'before':async _0x5ed1a9=>{const _0x5ec0d2=_0x476dfc;var _0x52e93f,_0x47f4f6;const _0x2dc10b=(_0x52e93f=_0x5ed1a9===null||_0x5ed1a9===void 0x0?void 0x0:_0x5ed1a9[_0x5ec0d2(0x15a)])===null||_0x52e93f===void 0x0?void 0x0:_0x52e93f[core_2[_0x5ec0d2(0x11a)]];if(_0x2dc10b&&(_0x207240===null||_0x207240===void 0x0?void 0x0:_0x207240[_0x5ec0d2(0xf8)])){if(!this[_0x5ec0d2(0x108)]['checksign']((_0x47f4f6=_0x2dc10b===null||_0x2dc10b===void 0x0?void 0x0:_0x2dc10b[_0x5ec0d2(0x10c)])===null||_0x47f4f6===void 0x0?void 0x0:_0x47f4f6[_0x5ec0d2(0xfd)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x4f6a4b=>{const _0x181e11=_0x476dfc;var _0x30b8da,_0x3248c5,_0x19035e;const _0xa8c072=(_0x30b8da=_0x4f6a4b===null||_0x4f6a4b===void 0x0?void 0x0:_0x4f6a4b[_0x181e11(0x15a)])===null||_0x30b8da===void 0x0?void 0x0:_0x30b8da[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xa8c072&&(_0x207240===null||_0x207240===void 0x0?void 0x0:_0x207240[_0x181e11(0xf8)])&&((_0x207240===null||_0x207240===void 0x0?void 0x0:_0x207240[_0x181e11(0x161)])||typeof(_0x207240===null||_0x207240===void 0x0?void 0x0:_0x207240[_0x181e11(0x161)])==_0x181e11(0x144))){if(((_0x3248c5=_0xa8c072[_0x181e11(0xfd)])===null||_0x3248c5===void 0x0?void 0x0:_0x3248c5[_0x181e11(0x116)])&&((_0x19035e=_0x528646===null||_0x528646===void 0x0?void 0x0:_0x528646[_0xa8c072[_0x181e11(0xfd)][_0x181e11(0x116)]])===null||_0x19035e===void 0x0?void 0x0:_0x19035e[_0x181e11(0x159)])>0x0)for(const _0x20c04f of _0x528646[_0xa8c072['headers'][_0x181e11(0x116)]]||[]){if(core_1[_0x181e11(0x11f)][_0x181e11(0x14f)](_0x20c04f)){const _0x1bd4b0=await _0xa8c072[_0x181e11(0x14d)]['getAsync'](_0x20c04f);typeof(_0x1bd4b0===null||_0x1bd4b0===void 0x0?void 0x0:_0x1bd4b0[_0x181e11(0x141)])==_0x181e11(0x100)?await _0x1bd4b0[_0x181e11(0x141)](_0xa8c072,typeof(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072['method'])=='string'&&(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x10b)])?_0xa8c072[_0x181e11(0x158)][_0x181e11(0x10a)]()+'@'+(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x10b)]):undefined,_0x207240)&&await _0x1bd4b0[_0x181e11(0x132)](_0xa8c072,typeof(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x158)])=='string'&&(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072['_matchedRoute'])?_0xa8c072['method'][_0x181e11(0x10a)]()+'@'+(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x10b)]):undefined,_0x207240):await _0x1bd4b0[_0x181e11(0x132)](_0xa8c072,typeof(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072['method'])==_0x181e11(0x152)&&(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072['_matchedRoute'])?_0xa8c072[_0x181e11(0x158)]['toLowerCase']()+'@'+(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x10b)]):undefined,_0x207240);}else core_1[_0x181e11(0x11f)]['isFunction'](_0x20c04f)&&await _0x20c04f(_0xa8c072,typeof(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072['method'])==_0x181e11(0x152)&&(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x10b)])?_0xa8c072['method'][_0x181e11(0x10a)]()+'@'+(_0xa8c072===null||_0xa8c072===void 0x0?void 0x0:_0xa8c072[_0x181e11(0x10b)]):undefined,_0x207240);}}return await _0x4f6a4b[_0x181e11(0x139)](..._0x4f6a4b[_0x181e11(0x143)]);},'afterThrow':(_0x1521ea,_0x2c4fdb)=>{throw _0x2c4fdb;}};});}async['hanlderApplications'](){const _0x9a2bb8=a2_0x5400dc;this[_0x9a2bb8(0x138)][_0x9a2bb8(0x119)]([_0x9a2bb8(0x110)])[_0x9a2bb8(0x117)](_0x32e17f=>{const _0xc77c1c=_0x9a2bb8;(_0x32e17f===null||_0x32e17f===void 0x0?void 0x0:_0x32e17f['context'])&&Object[_0xc77c1c(0x140)](_0x32e17f['context'],{'ok':{'value':function(_0x3a1761,_0x2d8f33,_0x4f5e7e=0x0){return{'code':_0x4f5e7e,'data':_0x3a1761,'extra':_0x2d8f33};}},'input':{'value':function(_0x28dadb,_0x3145d3){const _0x4538d5=_0xc77c1c;var _0x2f458c;const _0x51ee65=lodash[_0x4538d5(0x10d)]({},this[_0x4538d5(0x10c)][_0x4538d5(0x15b)]||this['request'][((_0x2f458c=config===null||config===void 0x0?void 0x0:config[_0x4538d5(0x14a)])===null||_0x2f458c===void 0x0?void 0x0:_0x2f458c[_0x4538d5(0x13c)])||'body']||{},this['request'][_0x4538d5(0x103)]||{});return _0x28dadb?lodash[_0x4538d5(0x113)](_0x51ee65,_0x28dadb,_0x3145d3):_0x51ee65;}},'when':{'value':async function(_0x377907,_0x1f57e3){const _0x140cf8=_0xc77c1c,_0x346b8a=this[_0x140cf8(0x168)](_0x377907,null);if(!lodash[_0x140cf8(0xfb)](_0x346b8a))return await _0x1f57e3(_0x346b8a);}},'only':{'value':function(_0x174d52){const _0x11291c=_0xc77c1c,_0x417f56={};for(let _0x2683a4=0x0;_0x2683a4<_0x174d52['length'];_0x2683a4++){lodash[_0x11291c(0x121)](_0x174d52[_0x2683a4])&&_0x174d52[_0x2683a4][_0x11291c(0x159)]>0x0&&lodash[_0x11291c(0x12a)](_0x174d52[_0x2683a4][0x0])&&(_0x417f56[_0x174d52[_0x2683a4][0x0]]=this[_0x11291c(0x168)](_0x174d52[_0x2683a4][0x0],_0x174d52[_0x2683a4]['length']>0x1?_0x174d52[_0x2683a4][0x1]:null));}return _0x417f56;}},'koasend':{'value':function(_0x493c8b,_0x1a0425){const _0x514739=_0xc77c1c;if(!fs[_0x514739(0x146)](this[_0x514739(0xf5)][_0x514739(0x160)]()+'/'+_0x493c8b))return'文件不存在';return this[_0x514739(0x124)](_0x1a0425||_0x493c8b),koasend(this,_0x493c8b);}}});});}async['loggerConfig'](){const _0x5bae27=a2_0x5400dc;var _0x5512e3,_0x24cfe0;if(fs[_0x5bae27(0x146)](this[_0x5bae27(0xf5)][_0x5bae27(0x130)]()+_0x5bae27(0x12c))&&fs['statSync'](this[_0x5bae27(0xf5)][_0x5bae27(0x130)]()+'/apps')[_0x5bae27(0x13b)]()){const _0x591aa9=this[_0x5bae27(0xfe)][_0x5bae27(0x105)](),_0x4b6b5f=((_0x5512e3=_0x591aa9===null||_0x591aa9===void 0x0?void 0x0:_0x591aa9[_0x5bae27(0x114)])===null||_0x5512e3===void 0x0?void 0x0:_0x5512e3[_0x5bae27(0x162)])||{};for(const _0x21bb3b of fs['readdirSync'](this[_0x5bae27(0xf5)][_0x5bae27(0x130)]()+_0x5bae27(0x12c))){if(!fs[_0x5bae27(0xf6)](this[_0x5bae27(0xf5)]['getBaseDir']()+_0x5bae27(0x137)+_0x21bb3b)[_0x5bae27(0x13b)]())continue;if(_0x4b6b5f===null||_0x4b6b5f===void 0x0?void 0x0:_0x4b6b5f[_0x21bb3b])continue;_0x4b6b5f[_0x21bb3b]=Object[_0x5bae27(0x166)]({},((_0x24cfe0=_0x591aa9===null||_0x591aa9===void 0x0?void 0x0:_0x591aa9['midwayLogger'])===null||_0x24cfe0===void 0x0?void 0x0:_0x24cfe0[_0x5bae27(0x11e)])||{'maxSize':'1m','dir':this['app'][_0x5bae27(0x160)]()+_0x5bae27(0x120)},{'enableJSON':!![],'enableConsole':this['environment'][_0x5bae27(0x169)](),'fileLogName':_0x21bb3b+_0x5bae27(0x13d),'dir':this[_0x5bae27(0xf5)]['getAppDir']()+_0x5bae27(0x15d)+_0x21bb3b+_0x5bae27(0x12f)});}Object['keys'](_0x4b6b5f)['length']>0x0&&(!_0x591aa9[_0x5bae27(0x114)]&&(_0x591aa9[_0x5bae27(0x114)]={'default':{'maxSize':'1m','dir':this[_0x5bae27(0xf5)][_0x5bae27(0x160)]()+'/runtime'}}),_0x591aa9[_0x5bae27(0x114)][_0x5bae27(0x162)]=_0x4b6b5f),this[_0x5bae27(0xfe)][_0x5bae27(0x104)](_0x591aa9);}}async['filterConfig'](){const _0x1fe3df=a2_0x5400dc;var _0x4f6670,_0x254f7a,_0x570517,_0x5ec39c,_0x346dc7,_0x800a6a;const _0x2edfe0=this[_0x1fe3df(0xfe)][_0x1fe3df(0x105)]();((_0x254f7a=(_0x4f6670=_0x2edfe0===null||_0x2edfe0===void 0x0?void 0x0:_0x2edfe0[_0x1fe3df(0x115)])===null||_0x4f6670===void 0x0?void 0x0:_0x4f6670[_0x1fe3df(0x10f)])===null||_0x254f7a===void 0x0?void 0x0:_0x254f7a[_0x1fe3df(0x13a)])&&Object[_0x1fe3df(0x15f)](_0x2edfe0[_0x1fe3df(0x115)][_0x1fe3df(0x10f)])[_0x1fe3df(0x159)]>0x1&&delete _0x2edfe0[_0x1fe3df(0x115)][_0x1fe3df(0x10f)]['DEFAULT'];if((_0x570517=_0x2edfe0===null||_0x2edfe0===void 0x0?void 0x0:_0x2edfe0[_0x1fe3df(0x165)])===null||_0x570517===void 0x0?void 0x0:_0x570517['dirs'])for(const _0x5a26e9 in _0x2edfe0[_0x1fe3df(0x165)][_0x1fe3df(0x154)]){((_0x5ec39c=_0x2edfe0[_0x1fe3df(0x165)][_0x1fe3df(0x154)][_0x5a26e9])===null||_0x5ec39c===void 0x0?void 0x0:_0x5ec39c['dir'])&&typeof((_0x346dc7=_0x2edfe0['staticFile'][_0x1fe3df(0x154)][_0x5a26e9])===null||_0x346dc7===void 0x0?void 0x0:_0x346dc7['dir'])==_0x1fe3df(0x152)&&!fs[_0x1fe3df(0x146)](_0x2edfe0[_0x1fe3df(0x165)][_0x1fe3df(0x154)][_0x5a26e9][_0x1fe3df(0x156)])&&(fs['mkdirSync'](_0x2edfe0[_0x1fe3df(0x165)][_0x1fe3df(0x154)][_0x5a26e9][_0x1fe3df(0x156)],{'recursive':!![]}),console['log'](_0x1fe3df(0x157)+_0x2edfe0[_0x1fe3df(0x165)][_0x1fe3df(0x154)][_0x5a26e9][_0x1fe3df(0x156)]));}((_0x800a6a=_0x2edfe0===null||_0x2edfe0===void 0x0?void 0x0:_0x2edfe0[_0x1fe3df(0x145)])===null||_0x800a6a===void 0x0?void 0x0:_0x800a6a[_0x1fe3df(0x14c)])&&!fs[_0x1fe3df(0x146)](_0x2edfe0[_0x1fe3df(0x145)][_0x1fe3df(0x14c)])&&(fs[_0x1fe3df(0x164)](_0x2edfe0[_0x1fe3df(0x145)][_0x1fe3df(0x14c)],{'recursive':!![]}),console[_0x1fe3df(0x167)](_0x1fe3df(0x133)+_0x2edfe0[_0x1fe3df(0x145)][_0x1fe3df(0x14c)])),this['config'][_0x1fe3df(0x104)](_0x2edfe0);}};__decorate([(0x0,core_1[a2_0x5400dc(0x122)])(),__metadata(a2_0x5400dc(0xff),Object)],CustomConfiguration[a2_0x5400dc(0x123)],a2_0x5400dc(0xf5),void 0x0),__decorate([(0x0,core_1[a2_0x5400dc(0x127)])(),__metadata(a2_0x5400dc(0xff),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x5400dc(0xfe),void 0x0),__decorate([(0x0,core_1[a2_0x5400dc(0x127)])(),__metadata('design:type',core_2[a2_0x5400dc(0x107)])],CustomConfiguration[a2_0x5400dc(0x123)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x5400dc(0x127)])(),__metadata(a2_0x5400dc(0xff),core_2[a2_0x5400dc(0x106)])],CustomConfiguration[a2_0x5400dc(0x123)],a2_0x5400dc(0x138),void 0x0),__decorate([(0x0,core_1[a2_0x5400dc(0x127)])(),__metadata(a2_0x5400dc(0xff),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x5400dc(0x123)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x5400dc(0x127)])(),__metadata(a2_0x5400dc(0xff),ApiService_1[a2_0x5400dc(0x108)])],CustomConfiguration[a2_0x5400dc(0x123)],a2_0x5400dc(0x108),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x5400dc(0x10e)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x5400dc(0x14b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x5400dc(0x134)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x3a7c98=a3_0x2c0b;(function(_0x416f4d,_0x5e109e){const _0xa68e92=a3_0x2c0b,_0x35a195=_0x416f4d();while(!![]){try{const _0x4592d4=-parseInt(_0xa68e92(0x169))/0x1*(parseInt(_0xa68e92(0x160))/0x2)+-parseInt(_0xa68e92(0x14d))/0x3*(-parseInt(_0xa68e92(0x164))/0x4)+parseInt(_0xa68e92(0x17b))/0x5*(parseInt(_0xa68e92(0x150))/0x6)+-parseInt(_0xa68e92(0x17a))/0x7*(-parseInt(_0xa68e92(0x178))/0x8)+-parseInt(_0xa68e92(0x146))/0x9+-parseInt(_0xa68e92(0x158))/0xa*(parseInt(_0xa68e92(0x177))/0xb)+-parseInt(_0xa68e92(0x171))/0xc;if(_0x4592d4===_0x5e109e)break;else _0x35a195['push'](_0x35a195['shift']());}catch(_0x9aff54){_0x35a195['push'](_0x35a195['shift']());}}}(a3_0x3d7e,0x22b2d));function a3_0x3d7e(){const _0x21b412=['module','saveClassMetadata','22368ZHNTTw','AppsConfigTmp','trim','/controller/','saveModule','Action','push','/config.','40CswSiF','join','filter','apply','/controller/文件下','indexOf','defineProperty','getClassMetadata','201874aChgcN','Controller','endsWith','(((.+)+)+)+$','4BlRXps','-controller','match','splice','middlewareIgnore','1JYCdnx','replace','\x20文件请放在apps/','\x20文件请放在app/controller/文件下','cwd','@midwayjs/core','app/controller/','APPSCONFIG_KEY','1389216IVvYGY','toString','route','search','split','prefix','661001OCQHBE','2166456CXOxUZ','middleware','7OnGitY','270ZEqadW','isArray','length','-action','basic/controller/','constructor','filepath','apps/','toLowerCase','parseRoute','1347651TjcbWy','/apps/','substring','ACTION_KEY','rootpath','tagName','startsWith','830442TkEtOi'];a3_0x3d7e=function(){return _0x21b412;};return a3_0x3d7e();}const a3_0x149411=(function(){let _0x2f205f=!![];return function(_0x49edbc,_0xde9368){const _0x1088ed=_0x2f205f?function(){const _0x4606da=a3_0x2c0b;if(_0xde9368){const _0xf25c13=_0xde9368[_0x4606da(0x15b)](_0x49edbc,arguments);return _0xde9368=null,_0xf25c13;}}:function(){};return _0x2f205f=![],_0x1088ed;};}()),a3_0x518988=a3_0x149411(this,function(){const _0x5d87d1=a3_0x2c0b;return a3_0x518988[_0x5d87d1(0x172)]()[_0x5d87d1(0x174)]('(((.+)+)+)+$')[_0x5d87d1(0x172)]()[_0x5d87d1(0x141)](a3_0x518988)[_0x5d87d1(0x174)](_0x5d87d1(0x163));});a3_0x518988();'use strict';Object[a3_0x3a7c98(0x15e)](exports,'__esModule',{'value':!![]}),exports[a3_0x3a7c98(0x145)]=exports[a3_0x3a7c98(0x155)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x3a7c98(0x16e)),action_1=require('../types/action');function Action(_0x3d85d0,_0x849ba3,_0xc75884={'middleware':[],'sensitive':!![]}){return _0x58d473=>{const _0x1385e8=a3_0x2c0b;var _0x523353;_0xc75884[_0x1385e8(0x14b)]=_0x849ba3;const _0x420251=parseRoute(_0x3d85d0);if(_0x420251['module']){_0xc75884[_0x1385e8(0x176)]=_0xc75884[_0x1385e8(0x176)]?'/'+_0x420251[_0x1385e8(0x14e)]+'/'+_0xc75884[_0x1385e8(0x176)]:'/'+_0x420251[_0x1385e8(0x173)];_0x420251[_0x1385e8(0x176)]&&(_0xc75884[_0x1385e8(0x176)]='/'+_0x420251[_0x1385e8(0x176)]+'/'+_0xc75884[_0x1385e8(0x176)]);if(fs['existsSync'](_0x420251['rootpath']+_0x1385e8(0x147)+_0x420251[_0x1385e8(0x14e)]+_0x1385e8(0x157)+(lodash[_0x1385e8(0x162)](_0x420251['filepath'],'ts')?'ts':'js'))){const _0x3f5509=include(_0x420251[_0x1385e8(0x14a)]+_0x1385e8(0x147)+_0x420251[_0x1385e8(0x14e)]+_0x1385e8(0x157)+(lodash[_0x1385e8(0x162)](_0x420251[_0x1385e8(0x142)],'ts')?'ts':'js'));if(_0x3f5509[_0x1385e8(0x179)]&&lodash[_0x1385e8(0x13d)](_0x3f5509[_0x1385e8(0x179)])&&_0x3f5509['middleware']['length']>0x0)for(let _0x26d7f5 in _0x3f5509[_0x1385e8(0x179)]){if(((_0x523353=_0x3f5509===null||_0x3f5509===void 0x0?void 0x0:_0x3f5509[_0x1385e8(0x168)])===null||_0x523353===void 0x0?void 0x0:_0x523353[_0x1385e8(0x13e)])>0x0&&_0x3f5509['middlewareIgnore']['indexOf'](_0x3f5509[_0x1385e8(0x179)][_0x26d7f5])!=-0x1)continue;_0xc75884[_0x1385e8(0x179)][_0x1385e8(0x156)](_0x3f5509['middleware'][_0x26d7f5]);}const _0x28f630=(0x0,core_1[_0x1385e8(0x15f)])(action_1[_0x1385e8(0x170)],action_1[_0x1385e8(0x151)])||{};_0x28f630[''+_0x420251[_0x1385e8(0x14e)]]=_0x3f5509,(0x0,core_1[_0x1385e8(0x14f)])(action_1['APPSCONFIG_KEY'],_0x28f630,action_1[_0x1385e8(0x151)]);}_0xc75884['prefix']=_0xc75884[_0x1385e8(0x176)][_0x1385e8(0x144)]()[_0x1385e8(0x16a)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x58d473),(0x0,core_1[_0x1385e8(0x161)])(_0xc75884[_0x1385e8(0x176)],_0xc75884)(_0x58d473),(0x0,core_1['saveClassMetadata'])(action_1[_0x1385e8(0x149)],{'prefix':_0xc75884[_0x1385e8(0x176)],'pprefix':_0x420251[_0x1385e8(0x176)],'module':_0x420251[_0x1385e8(0x14e)],'filepath':_0x420251['filepath'],'routerOptions':_0xc75884},_0x58d473);}else _0xc75884[_0x1385e8(0x176)]=_0xc75884[_0x1385e8(0x176)]?'/'+_0xc75884[_0x1385e8(0x176)]:'/'+_0x420251[_0x1385e8(0x173)],_0x420251[_0x1385e8(0x176)]&&(_0xc75884[_0x1385e8(0x176)]='/'+_0x420251[_0x1385e8(0x176)]+'/'+_0xc75884[_0x1385e8(0x176)]),_0xc75884[_0x1385e8(0x176)]=_0xc75884[_0x1385e8(0x176)]['toLowerCase']()[_0x1385e8(0x16a)](/\/{2,}/g,'/'),(0x0,core_1[_0x1385e8(0x154)])(action_1['ACTION_KEY'],_0x58d473),(0x0,core_1[_0x1385e8(0x161)])(_0xc75884[_0x1385e8(0x176)],_0xc75884)(_0x58d473),(0x0,core_1[_0x1385e8(0x14f)])(action_1[_0x1385e8(0x149)],{'prefix':_0xc75884[_0x1385e8(0x176)],'module':_0x420251['module'],'pprefix':_0x420251[_0x1385e8(0x176)],'filepath':_0x420251[_0x1385e8(0x142)],'routerOptions':_0xc75884},_0x58d473);};}exports['Action']=Action;function a3_0x2c0b(_0x23590e,_0x2abf0e){const _0x1f908c=a3_0x3d7e();return a3_0x2c0b=function(_0x518988,_0x149411){_0x518988=_0x518988-0x13d;let _0x3d7e5b=_0x1f908c[_0x518988];return _0x3d7e5b;},a3_0x2c0b(_0x23590e,_0x2abf0e);}function parseRoute(_0x26f50a){const _0x1b5fa3=a3_0x3a7c98;_0x26f50a=_0x26f50a[_0x1b5fa3(0x16a)](/(\\|\/)/g,'/');const _0x20cfc0=process[_0x1b5fa3(0x16d)]()['replace'](/(\\|\/)/g,'/'),_0x4bc14b=_0x26f50a['substring'](0x0,_0x20cfc0[_0x1b5fa3(0x13e)]+_0x26f50a['substring'](_0x20cfc0[_0x1b5fa3(0x13e)]+0x1)['indexOf']('/')+0x1),_0x1b31d6=_0x26f50a[_0x1b5fa3(0x148)](_0x4bc14b['length']+0x1)[_0x1b5fa3(0x16a)](/(\\|\/)/g,'/'),_0x2e9fed={'route':'','prefix':![],'module':![],'rootpath':_0x4bc14b,'filepath':_0x1b31d6};if(_0x1b31d6[_0x1b5fa3(0x14c)](_0x1b5fa3(0x16f))||_0x1b31d6[_0x1b5fa3(0x14c)](_0x1b5fa3(0x140))){const _0x237da4=_0x1b31d6[_0x1b5fa3(0x148)]((_0x1b31d6[_0x1b5fa3(0x14c)](_0x1b5fa3(0x16f))?'app/controller/':'basic/controller/')['length'])[_0x1b5fa3(0x175)]('/')['filter'](_0x2c8747=>_0x2c8747&&_0x2c8747[_0x1b5fa3(0x152)]());return _0x237da4[_0x1b5fa3(0x13e)]>0x1&&(_0x2e9fed[_0x1b5fa3(0x176)]=_0x237da4[0x0][_0x1b5fa3(0x144)](),_0x237da4[_0x1b5fa3(0x167)](0x0,0x1)),_0x2e9fed[_0x1b5fa3(0x173)]=('/'+_0x237da4[_0x1b5fa3(0x159)]('/'))[_0x1b5fa3(0x16a)](/(\.ts|\.js)$/,'')[_0x1b5fa3(0x16a)](/\/{2,}/g,'/')[_0x1b5fa3(0x166)](/[\/|A-Z]*[^A-Z]+/g)[_0x1b5fa3(0x159)]('-')[_0x1b5fa3(0x144)]()[_0x1b5fa3(0x16a)](/\/\-/g,'/'),_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x162)](_0x1b5fa3(0x13f))&&(_0x2e9fed[_0x1b5fa3(0x173)]=_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x148)](0x0,_0x2e9fed['route'][_0x1b5fa3(0x13e)]-0x7)),_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x162)](_0x1b5fa3(0x165))&&(_0x2e9fed[_0x1b5fa3(0x173)]=_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x148)](0x0,_0x2e9fed[_0x1b5fa3(0x173)]['length']-0xb)),_0x2e9fed;}else{if(_0x1b31d6[_0x1b5fa3(0x14c)](_0x1b5fa3(0x143))){const _0x2e717f=_0x1b31d6[_0x1b5fa3(0x148)](0x0,_0x1b31d6[_0x1b5fa3(0x15d)](_0x1b5fa3(0x147))+0x5),_0x5d8c2f=_0x1b31d6[_0x1b5fa3(0x148)](_0x2e717f[_0x1b5fa3(0x13e)]+0x1)[_0x1b5fa3(0x16a)](/(\\|\/)/g,'/')[_0x1b5fa3(0x175)]('/')[0x0];if(_0x1b31d6['startsWith'](_0x1b5fa3(0x143)+_0x5d8c2f+_0x1b5fa3(0x153))){const _0x5e6b7e=_0x1b31d6[_0x1b5fa3(0x148)]((_0x2e717f+'/'+_0x5d8c2f+'/controller/')['length'])[_0x1b5fa3(0x175)]('/')[_0x1b5fa3(0x15a)](_0x340127=>_0x340127&&_0x340127['trim']());return _0x5e6b7e[_0x1b5fa3(0x13e)]>0x1&&(_0x2e9fed[_0x1b5fa3(0x176)]=_0x5e6b7e[0x0][_0x1b5fa3(0x144)](),_0x5e6b7e[_0x1b5fa3(0x167)](0x0,0x1)),_0x2e9fed[_0x1b5fa3(0x14e)]=_0x5d8c2f,_0x2e9fed[_0x1b5fa3(0x173)]=('/'+_0x5d8c2f+'/'+_0x5e6b7e[_0x1b5fa3(0x159)]('/'))[_0x1b5fa3(0x16a)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x1b5fa3(0x166)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x1b5fa3(0x144)]()[_0x1b5fa3(0x16a)](/\/\-/g,'/'),_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x162)](_0x1b5fa3(0x13f))&&(_0x2e9fed[_0x1b5fa3(0x173)]=_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x148)](0x0,_0x2e9fed[_0x1b5fa3(0x173)]['length']-0x7)),_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x162)]('-controller')&&(_0x2e9fed[_0x1b5fa3(0x173)]=_0x2e9fed[_0x1b5fa3(0x173)][_0x1b5fa3(0x148)](0x0,_0x2e9fed['route'][_0x1b5fa3(0x13e)]-0xb)),_0x2e9fed;}throw new Error(_0x1b31d6+_0x1b5fa3(0x16b)+_0x5d8c2f+_0x1b5fa3(0x15c));}}throw new Error(_0x1b31d6+_0x1b5fa3(0x16c));}exports[a3_0x3a7c98(0x145)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a4_0x1997(){const _0x10d9e4=['validationOptions','validate','delete','string','(((.+)+)+)+$','8563170ZXoFMo','constructor','length','ACTION_ROUTE_KEY','../types/action','search','5rCfmVU','@anncic-api/validator','del','4628bJOomi','createCustomMethodDecorator','filter','indexOf','Api','assign','undefined','description','toLowerCase','__esModule','middleware','2218674zroezI','apimit','510603rqRcuM','get','toString','middlewareIgnore','16969590DAVoxz','defineProperty','1121432yFHlbo','3909dlZuIk','routerName','2198810KjfCXX'];a4_0x1997=function(){return _0x10d9e4;};return a4_0x1997();}const a4_0x1ac501=a4_0x57e8;(function(_0x2e3f9e,_0x1196fc){const _0x31165d=a4_0x57e8,_0x567af5=_0x2e3f9e();while(!![]){try{const _0x3f02e6=-parseInt(_0x31165d(0x9e))/0x1+-parseInt(_0x31165d(0xa7))/0x2+parseInt(_0x31165d(0xa5))/0x3*(parseInt(_0x31165d(0xb6))/0x4)+parseInt(_0x31165d(0xb3))/0x5*(parseInt(_0x31165d(0x9c))/0x6)+-parseInt(_0x31165d(0xad))/0x7+-parseInt(_0x31165d(0xa4))/0x8+parseInt(_0x31165d(0xa2))/0x9;if(_0x3f02e6===_0x1196fc)break;else _0x567af5['push'](_0x567af5['shift']());}catch(_0x53f489){_0x567af5['push'](_0x567af5['shift']());}}}(a4_0x1997,0xc0b73));const a4_0x4adade=(function(){let _0x5792eb=!![];return function(_0x4bf2af,_0x29cd90){const _0x1a6f9d=_0x5792eb?function(){if(_0x29cd90){const _0x205582=_0x29cd90['apply'](_0x4bf2af,arguments);return _0x29cd90=null,_0x205582;}}:function(){};return _0x5792eb=![],_0x1a6f9d;};}()),a4_0x222f99=a4_0x4adade(this,function(){const _0xdf3ff0=a4_0x57e8;return a4_0x222f99[_0xdf3ff0(0xa0)]()[_0xdf3ff0(0xb2)](_0xdf3ff0(0xac))[_0xdf3ff0(0xa0)]()[_0xdf3ff0(0xae)](a4_0x222f99)[_0xdf3ff0(0xb2)](_0xdf3ff0(0xac));});a4_0x222f99();'use strict';Object[a4_0x1ac501(0xa3)](exports,a4_0x1ac501(0xbf),{'value':!![]}),exports[a4_0x1ac501(0xba)]=void 0x0;const validator_1=require(a4_0x1ac501(0xb4)),core_1=require('@midwayjs/core'),action_1=require(a4_0x1ac501(0xb1));function a4_0x57e8(_0x2d55d7,_0x149155){const _0x57b64e=a4_0x1997();return a4_0x57e8=function(_0x222f99,_0x4adade){_0x222f99=_0x222f99-0x9b;let _0x199767=_0x57b64e[_0x222f99];return _0x199767;},a4_0x57e8(_0x2d55d7,_0x149155);}function Api(_0x14c52c,_0x55be14=a4_0x1ac501(0x9f),_0x2afc79='/',_0x507c7e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2a0dd3,_0x2b2c2b,_0x250754)=>{const _0x2f2ebb=a4_0x57e8;var _0x14845f,_0x3f6ce4,_0x4be56d;!_0x507c7e['middleware']&&(_0x507c7e[_0x2f2ebb(0x9b)]=[]);!((_0x14845f=_0x507c7e===null||_0x507c7e===void 0x0?void 0x0:_0x507c7e['validate'])===null||_0x14845f===void 0x0?void 0x0:_0x14845f[_0x2f2ebb(0xa8)])&&(_0x507c7e[_0x2f2ebb(0xa9)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x2f2ebb(0xab)}});typeof _0x507c7e[_0x2f2ebb(0x9d)]==_0x2f2ebb(0xbc)&&(_0x507c7e[_0x2f2ebb(0x9d)]=!![]);if(((_0x3f6ce4=_0x507c7e===null||_0x507c7e===void 0x0?void 0x0:_0x507c7e['middleware'])===null||_0x3f6ce4===void 0x0?void 0x0:_0x3f6ce4[_0x2f2ebb(0xaf)])>0x0&&((_0x4be56d=_0x507c7e===null||_0x507c7e===void 0x0?void 0x0:_0x507c7e[_0x2f2ebb(0xa1)])===null||_0x4be56d===void 0x0?void 0x0:_0x4be56d[_0x2f2ebb(0xaf)])>0x0)for(let _0x6b682f in _0x507c7e[_0x2f2ebb(0x9b)]){_0x507c7e[_0x2f2ebb(0xa1)][_0x2f2ebb(0xb9)](_0x507c7e[_0x2f2ebb(0x9b)][_0x6b682f])!==-0x1&&(_0x507c7e[_0x2f2ebb(0x9b)][_0x6b682f]=null);}_0x507c7e[_0x2f2ebb(0xa6)]=_0x14c52c,(0x0,validator_1['Validator'])(_0x507c7e[_0x2f2ebb(0xa9)])(_0x2a0dd3,_0x2b2c2b,_0x250754),(0x0,core_1['RequestMapping'])(Object[_0x2f2ebb(0xbb)](_0x507c7e,{'path':_0x2afc79,'requestMethod':(_0x55be14==_0x2f2ebb(0xb5)?_0x2f2ebb(0xaa):_0x55be14)[_0x2f2ebb(0xbe)]()}))(_0x2a0dd3,_0x2b2c2b,_0x250754),(0x0,core_1['attachClassMetadata'])(action_1[_0x2f2ebb(0xb0)],{'path':_0x2afc79,'method':_0x2b2c2b,'apimit':_0x507c7e['apimit'],'intercept':_0x507c7e['intercept'],'routerName':_0x507c7e[_0x2f2ebb(0xa6)],'description':_0x507c7e[_0x2f2ebb(0xbd)],'middleware':(_0x507c7e[_0x2f2ebb(0x9b)]||[])['filter'](_0xba1ca7=>!!_0xba1ca7),'requestMethod':(_0x55be14==_0x2f2ebb(0xb5)?_0x2f2ebb(0xaa):_0x55be14)[_0x2f2ebb(0xbe)]()},_0x2a0dd3),(0x0,core_1[_0x2f2ebb(0xb7)])(action_1[_0x2f2ebb(0xb0)],{'path':_0x2afc79,'method':_0x2b2c2b,'apimit':_0x507c7e[_0x2f2ebb(0x9d)],'intercept':_0x507c7e['intercept'],'routerName':_0x507c7e[_0x2f2ebb(0xa6)],'description':_0x507c7e[_0x2f2ebb(0xbd)],'middleware':(_0x507c7e[_0x2f2ebb(0x9b)]||[])[_0x2f2ebb(0xb8)](_0x2c0aa5=>!!_0x2c0aa5),'requestMethod':(_0x55be14==_0x2f2ebb(0xb5)?_0x2f2ebb(0xaa):_0x55be14)['toLowerCase']()})(_0x2a0dd3,_0x2b2c2b,_0x250754);};}exports[a4_0x1ac501(0xba)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x519e6c=a5_0x267c;(function(_0x2364c2,_0x177540){const _0x4514ba=a5_0x267c,_0x336bcb=_0x2364c2();while(!![]){try{const _0x319780=parseInt(_0x4514ba(0x7f))/0x1*(parseInt(_0x4514ba(0x81))/0x2)+-parseInt(_0x4514ba(0x80))/0x3*(-parseInt(_0x4514ba(0x83))/0x4)+-parseInt(_0x4514ba(0x74))/0x5*(-parseInt(_0x4514ba(0x6e))/0x6)+-parseInt(_0x4514ba(0x79))/0x7+-parseInt(_0x4514ba(0x6f))/0x8*(parseInt(_0x4514ba(0x6a))/0x9)+parseInt(_0x4514ba(0x65))/0xa*(parseInt(_0x4514ba(0x76))/0xb)+parseInt(_0x4514ba(0x7e))/0xc*(-parseInt(_0x4514ba(0x73))/0xd);if(_0x319780===_0x177540)break;else _0x336bcb['push'](_0x336bcb['shift']());}catch(_0x3ab3c4){_0x336bcb['push'](_0x336bcb['shift']());}}}(a5_0x2414,0xe19ca));const a5_0x3e1009=(function(){let _0x42dc98=!![];return function(_0x356cc2,_0x47c55c){const _0x16b1e2=_0x42dc98?function(){const _0x54faef=a5_0x267c;if(_0x47c55c){const _0x58e6ee=_0x47c55c[_0x54faef(0x6d)](_0x356cc2,arguments);return _0x47c55c=null,_0x58e6ee;}}:function(){};return _0x42dc98=![],_0x16b1e2;};}()),a5_0x253bc5=a5_0x3e1009(this,function(){const _0x2f9207=a5_0x267c;return a5_0x253bc5[_0x2f9207(0x68)]()[_0x2f9207(0x6b)](_0x2f9207(0x7c))[_0x2f9207(0x68)]()[_0x2f9207(0x7d)](a5_0x253bc5)[_0x2f9207(0x6b)](_0x2f9207(0x7c));});function a5_0x267c(_0x21e3a5,_0x2700d9){const _0x827ac7=a5_0x2414();return a5_0x267c=function(_0x253bc5,_0x3e1009){_0x253bc5=_0x253bc5-0x64;let _0x24145c=_0x827ac7[_0x253bc5];return _0x24145c;},a5_0x267c(_0x21e3a5,_0x2700d9);}function a5_0x2414(){const _0x1b0749=['REQUEST_OBJ_CTX_KEY','8BeaLBK','app','763410fRIxOE','@midwayjs/core','apidoc','toString','value','342VUXHvJ','search','getApplicationContext','apply','492HZOhjL','321312mXymiM','ApitestService','getAsync','defineProperty','13gdJAKS','27695BXEBiR','Apitest','77OtmKtO','filepath','RequestMapping','5463717jGHMaY','isDevelopmentEnvironment','get','(((.+)+)+)+$','constructor','9157476OSeTYn','427aLMzWP','1805841psYeun','8438FiuyTD'];a5_0x2414=function(){return _0x1b0749;};return a5_0x2414();}a5_0x253bc5();'use strict';Object[a5_0x519e6c(0x72)](exports,'__esModule',{'value':!![]}),exports[a5_0x519e6c(0x75)]=void 0x0;const core_1=require(a5_0x519e6c(0x66)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x16bd44='/apitest',_0x234fb8){return(_0x2adb3e,_0x25029f,_0x263c12)=>{const _0x341437=a5_0x267c;return(0x0,core_1[_0x341437(0x78)])({'path':_0x16bd44,'requestMethod':_0x341437(0x7b)})(_0x2adb3e,_0x25029f,_0x263c12),_0x263c12[_0x341437(0x69)]=async function(..._0x45c611){const _0x46f110=_0x341437;var _0x8ad94c;const _0x274a51=(_0x8ad94c=this[core_1[_0x46f110(0x82)]])===null||_0x8ad94c===void 0x0?void 0x0:_0x8ad94c[_0x46f110(0x64)];if(_0x274a51&&_0x274a51['getConfig']('apitest')){const _0x4cf0b8=await _0x274a51[_0x46f110(0x6c)]()[_0x46f110(0x71)](ApitestService_1[_0x46f110(0x70)]),_0x496621=await _0x274a51[_0x46f110(0x6c)]()[_0x46f110(0x71)](core_1['MidwayEnvironmentService']);return _0x496621[_0x46f110(0x7a)]()&&(_0x234fb8[_0x46f110(0x77)]=!![]),await _0x4cf0b8[_0x46f110(0x67)](_0x234fb8);}return'';},_0x263c12;};}exports[a5_0x519e6c(0x75)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x58dcbc=a6_0x13a8;(function(_0xbefc4c,_0x3a0288){const _0x230e38=a6_0x13a8,_0x2212af=_0xbefc4c();while(!![]){try{const _0xce80d6=parseInt(_0x230e38(0x184))/0x1*(-parseInt(_0x230e38(0x194))/0x2)+-parseInt(_0x230e38(0x182))/0x3*(parseInt(_0x230e38(0x17d))/0x4)+parseInt(_0x230e38(0x18b))/0x5*(parseInt(_0x230e38(0x186))/0x6)+-parseInt(_0x230e38(0x193))/0x7*(-parseInt(_0x230e38(0x18f))/0x8)+-parseInt(_0x230e38(0x181))/0x9+-parseInt(_0x230e38(0x192))/0xa*(parseInt(_0x230e38(0x188))/0xb)+parseInt(_0x230e38(0x187))/0xc*(parseInt(_0x230e38(0x17c))/0xd);if(_0xce80d6===_0x3a0288)break;else _0x2212af['push'](_0x2212af['shift']());}catch(_0x380083){_0x2212af['push'](_0x2212af['shift']());}}}(a6_0x3002,0xd8c6b));const a6_0x37f4c1=(function(){let _0x3ce428=!![];return function(_0x1b86fc,_0x5b8da5){const _0xedcdde=_0x3ce428?function(){const _0xfb328d=a6_0x13a8;if(_0x5b8da5){const _0x3ee493=_0x5b8da5[_0xfb328d(0x18c)](_0x1b86fc,arguments);return _0x5b8da5=null,_0x3ee493;}}:function(){};return _0x3ce428=![],_0xedcdde;};}()),a6_0x24dd4b=a6_0x37f4c1(this,function(){const _0x30cb11=a6_0x13a8;return a6_0x24dd4b[_0x30cb11(0x18e)]()[_0x30cb11(0x180)](_0x30cb11(0x19d))[_0x30cb11(0x18e)]()['constructor'](a6_0x24dd4b)['search'](_0x30cb11(0x19d));});function a6_0x3002(){const _0x35916c=['3080oWWEOD','../types/intercept','toUpperCase','2410CHPlcN','16548eFbEOT','10652SugkWL','match','Scope','IIntercept','Intercept','ScopeEnum','getClassMetadata','isArray','Singleton','(((.+)+)+)+$','includes','18133817NvnGAH','6156244LdsUyg','@midwayjs/core','__esModule','search','15629175McgmtS','3ELscAk','InterceptTargetTmp','157pUZqyU','defineProperty','186414RuORLR','36rRNgge','17105dzfNJR','push','saveClassMetadata','45HFRcAC','apply','Provide','toString'];a6_0x3002=function(){return _0x35916c;};return a6_0x3002();}a6_0x24dd4b();'use strict';Object[a6_0x58dcbc(0x185)](exports,a6_0x58dcbc(0x17f),{'value':!![]}),exports[a6_0x58dcbc(0x197)]=exports[a6_0x58dcbc(0x198)]=void 0x0;function a6_0x13a8(_0x560d79,_0x5656fe){const _0x1eb4a6=a6_0x3002();return a6_0x13a8=function(_0x24dd4b,_0x37f4c1){_0x24dd4b=_0x24dd4b-0x17b;let _0x3002e4=_0x1eb4a6[_0x24dd4b];return _0x3002e4;},a6_0x13a8(_0x560d79,_0x5656fe);}const core_1=require(a6_0x58dcbc(0x17e)),intercept_1=require(a6_0x58dcbc(0x190));function Intercept(_0x5e5c9b){return _0x1bad3a=>{const _0x4c97b7=a6_0x13a8,_0x2d7744=(0x0,core_1[_0x4c97b7(0x19a)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x4c97b7(0x183)])||{};for(let _0x2a7267 of Array[_0x4c97b7(0x19b)](_0x5e5c9b)?_0x5e5c9b:[_0x5e5c9b]){_0x2a7267=_0x2a7267[_0x4c97b7(0x191)]();!(_0x2d7744===null||_0x2d7744===void 0x0?void 0x0:_0x2d7744[_0x2a7267])&&(_0x2d7744[_0x2a7267]=[]);if(_0x2d7744[_0x2a7267][_0x4c97b7(0x17b)](_0x1bad3a))continue;_0x2d7744[_0x2a7267][_0x4c97b7(0x189)](_0x1bad3a);}(0x0,core_1[_0x4c97b7(0x18d)])()(_0x1bad3a),(0x0,core_1[_0x4c97b7(0x196)])(core_1[_0x4c97b7(0x199)][_0x4c97b7(0x19c)])(_0x1bad3a),(0x0,core_1[_0x4c97b7(0x18a)])(intercept_1['INTERCEPT_KEY'],_0x2d7744,intercept_1[_0x4c97b7(0x183)]);};}exports['Intercept']=Intercept;class IIntercept{async[a6_0x58dcbc(0x195)](_0x37c152,_0x1f4992,_0x5cf5b9){return!![];}}exports[a6_0x58dcbc(0x197)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7_0x131459=a7_0xfcc8;(function(_0x48ad61,_0x804784){var _0x18aee8=a7_0xfcc8,_0x163e30=_0x48ad61();while(!![]){try{var _0x287f71=-parseInt(_0x18aee8(0x1f6))/0x1+-parseInt(_0x18aee8(0x1fa))/0x2*(-parseInt(_0x18aee8(0x20a))/0x3)+parseInt(_0x18aee8(0x1ef))/0x4*(parseInt(_0x18aee8(0x207))/0x5)+parseInt(_0x18aee8(0x205))/0x6*(parseInt(_0x18aee8(0x206))/0x7)+parseInt(_0x18aee8(0x1ed))/0x8+-parseInt(_0x18aee8(0x20b))/0x9*(-parseInt(_0x18aee8(0x1f9))/0xa)+-parseInt(_0x18aee8(0x1f1))/0xb;if(_0x287f71===_0x804784)break;else _0x163e30['push'](_0x163e30['shift']());}catch(_0x80c944){_0x163e30['push'](_0x163e30['shift']());}}}(a7_0x10b5,0xa66d1));var a7_0x10f9dd=(function(){var _0x54d1a5=!![];return function(_0x1f5060,_0x329b59){var _0x5587db=_0x54d1a5?function(){var _0x2c9450=a7_0xfcc8;if(_0x329b59){var _0x5b10de=_0x329b59[_0x2c9450(0x1f4)](_0x1f5060,arguments);return _0x329b59=null,_0x5b10de;}}:function(){};return _0x54d1a5=![],_0x5587db;};}()),a7_0x14136f=a7_0x10f9dd(this,function(){var _0x1f621b=a7_0xfcc8;return a7_0x14136f['toString']()[_0x1f621b(0x1f2)]('(((.+)+)+)+$')['toString']()[_0x1f621b(0x1f8)](a7_0x14136f)[_0x1f621b(0x1f2)]('(((.+)+)+)+$');});function a7_0x10b5(){var _0x586b6d=['405JJrlpj','请求超时,请重试','defineProperty','decorate','TIMEOUT','4824216kxZFNu','TIMEOUT_LOGINTIME','4VNXFVR','metadata','9296012bUjenF','search','function','apply','HEADERS_DEVICE','1160540YWQZRh','getOwnPropertyDescriptor','constructor','111310pfoJYK','4YLWmlo','验证失败,请重新登录','__metadata','__decorate','ApiError','HEADERS_SIGNATURE','signature验证失败','请使用正确的设备','HEADERS_LACK','design:type','length','5019954QnCTFC','7rUFQJL','3712190GlarBT','HEADERS_CHECKCODE','object','6441hkgoOL'];a7_0x10b5=function(){return _0x586b6d;};return a7_0x10b5();}a7_0x14136f();'use strict';var __decorate=this&&this[a7_0x131459(0x1fd)]||function(_0x1503da,_0x3e001f,_0x3b479d,_0x52e6a9){var _0x3c5033=a7_0x131459,_0x1139f9=arguments[_0x3c5033(0x204)],_0x3f69af=_0x1139f9<0x3?_0x3e001f:_0x52e6a9===null?_0x52e6a9=Object[_0x3c5033(0x1f7)](_0x3e001f,_0x3b479d):_0x52e6a9,_0x3c4a9c;if(typeof Reflect==='object'&&typeof Reflect[_0x3c5033(0x1eb)]===_0x3c5033(0x1f3))_0x3f69af=Reflect[_0x3c5033(0x1eb)](_0x1503da,_0x3e001f,_0x3b479d,_0x52e6a9);else{for(var _0x45a9c7=_0x1503da['length']-0x1;_0x45a9c7>=0x0;_0x45a9c7--)if(_0x3c4a9c=_0x1503da[_0x45a9c7])_0x3f69af=(_0x1139f9<0x3?_0x3c4a9c(_0x3f69af):_0x1139f9>0x3?_0x3c4a9c(_0x3e001f,_0x3b479d,_0x3f69af):_0x3c4a9c(_0x3e001f,_0x3b479d))||_0x3f69af;}return _0x1139f9>0x3&&_0x3f69af&&Object[_0x3c5033(0x1ea)](_0x3e001f,_0x3b479d,_0x3f69af),_0x3f69af;},__metadata=this&&this[a7_0x131459(0x1fc)]||function(_0x3a9e98,_0xc3c584){var _0x1a3916=a7_0x131459;if(typeof Reflect===_0x1a3916(0x209)&&typeof Reflect[_0x1a3916(0x1f0)]===_0x1a3916(0x1f3))return Reflect['metadata'](_0x3a9e98,_0xc3c584);};Object[a7_0x131459(0x1ea)](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}function a7_0xfcc8(_0x4f5ddd,_0x274b5d){var _0x31d7c1=a7_0x10b5();return a7_0xfcc8=function(_0x14136f,_0x10f9dd){_0x14136f=_0x14136f-0x1e9;var _0x10b5b6=_0x31d7c1[_0x14136f];return _0x10b5b6;},a7_0xfcc8(_0x4f5ddd,_0x274b5d);}ApiError[a7_0x131459(0x1ec)]=0x19003,ApiError[a7_0x131459(0x202)]=0x18e72,ApiError[a7_0x131459(0x1f5)]=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError[a7_0x131459(0x208)]=0x18e75,ApiError[a7_0x131459(0x1ee)]=0x18e76,__decorate([AnnErrorMsg(a7_0x131459(0x1e9)),__metadata(a7_0x131459(0x203),Object)],ApiError,a7_0x131459(0x1ec),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a7_0x131459(0x202),void 0x0),__decorate([AnnErrorMsg(a7_0x131459(0x201)),__metadata(a7_0x131459(0x203),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a7_0x131459(0x200)),__metadata(a7_0x131459(0x203),Object)],ApiError,a7_0x131459(0x1ff),void 0x0),__decorate([AnnErrorMsg(a7_0x131459(0x1fb)),__metadata('design:type',Object)],ApiError,a7_0x131459(0x208),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0x131459(0x203),Object)],ApiError,a7_0x131459(0x1ee),void 0x0),exports[a7_0x131459(0x1fe)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x28f3(){const _0x5035b9=['8CEQQkL','AppsConfigTmp','651362QgOUjK','apply','26929FpNupg','687108okvYoC','2454UQRTot','3004065onUsKd','constructor','__esModule','4CKlQhU','(((.+)+)+)+$','search','957OqKaEV','309015EDmAZV','defineProperty','@midwayjs/core','13350730cXzTNf','1809QMSKtY','toString','2804oLVotr','getAppsConfig'];a8_0x28f3=function(){return _0x5035b9;};return a8_0x28f3();}function a8_0x55f1(_0x3c91d9,_0x4cc93c){const _0x37d0cc=a8_0x28f3();return a8_0x55f1=function(_0x450fd5,_0x93974f){_0x450fd5=_0x450fd5-0x11d;let _0x28f3a2=_0x37d0cc[_0x450fd5];return _0x28f3a2;},a8_0x55f1(_0x3c91d9,_0x4cc93c);}const a8_0x5aa319=a8_0x55f1;(function(_0x5b5919,_0x55e254){const _0x34b0c1=a8_0x55f1,_0x5af96c=_0x5b5919();while(!![]){try{const _0x3320ec=parseInt(_0x34b0c1(0x11d))/0x1*(-parseInt(_0x34b0c1(0x125))/0x2)+-parseInt(_0x34b0c1(0x12d))/0x3*(-parseInt(_0x34b0c1(0x12f))/0x4)+-parseInt(_0x34b0c1(0x129))/0x5+parseInt(_0x34b0c1(0x121))/0x6*(-parseInt(_0x34b0c1(0x11f))/0x7)+parseInt(_0x34b0c1(0x131))/0x8*(-parseInt(_0x34b0c1(0x122))/0x9)+-parseInt(_0x34b0c1(0x12c))/0xa+parseInt(_0x34b0c1(0x128))/0xb*(parseInt(_0x34b0c1(0x120))/0xc);if(_0x3320ec===_0x55e254)break;else _0x5af96c['push'](_0x5af96c['shift']());}catch(_0x3acb2c){_0x5af96c['push'](_0x5af96c['shift']());}}}(a8_0x28f3,0xc2af4));const a8_0x93974f=(function(){let _0x4daca7=!![];return function(_0x4b3cd6,_0x1765a2){const _0x23d4ba=_0x4daca7?function(){const _0x1c1a32=a8_0x55f1;if(_0x1765a2){const _0x288ac6=_0x1765a2[_0x1c1a32(0x11e)](_0x4b3cd6,arguments);return _0x1765a2=null,_0x288ac6;}}:function(){};return _0x4daca7=![],_0x23d4ba;};}()),a8_0x450fd5=a8_0x93974f(this,function(){const _0x576b04=a8_0x55f1;return a8_0x450fd5[_0x576b04(0x12e)]()[_0x576b04(0x127)]('(((.+)+)+)+$')['toString']()[_0x576b04(0x123)](a8_0x450fd5)[_0x576b04(0x127)](_0x576b04(0x126));});a8_0x450fd5();'use strict';Object[a8_0x5aa319(0x12a)](exports,a8_0x5aa319(0x124),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a8_0x5aa319(0x12b)),action_1=require('../types/action');function getAppsConfig(_0x4f7b79){const _0x547947=a8_0x5aa319,_0x40afa6=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x547947(0x132)])||{};return _0x4f7b79?lodash['get'](_0x40afa6,_0x4f7b79):_0x40afa6;}exports[a8_0x5aa319(0x130)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x65ba6d=a9_0x984e;(function(_0x265586,_0x5916de){const _0x93ccdf=a9_0x984e,_0x154767=_0x265586();while(!![]){try{const _0x56648c=parseInt(_0x93ccdf(0xf7))/0x1+-parseInt(_0x93ccdf(0xd8))/0x2*(-parseInt(_0x93ccdf(0x104))/0x3)+parseInt(_0x93ccdf(0x113))/0x4+-parseInt(_0x93ccdf(0xcb))/0x5+parseInt(_0x93ccdf(0xd2))/0x6*(parseInt(_0x93ccdf(0x111))/0x7)+-parseInt(_0x93ccdf(0x11b))/0x8*(parseInt(_0x93ccdf(0x117))/0x9)+-parseInt(_0x93ccdf(0xc8))/0xa*(-parseInt(_0x93ccdf(0x10b))/0xb);if(_0x56648c===_0x5916de)break;else _0x154767['push'](_0x154767['shift']());}catch(_0x3aa3de){_0x154767['push'](_0x154767['shift']());}}}(a9_0x31d2,0x370d6));const a9_0x48ce33=(function(){let _0x5c7f25=!![];return function(_0x22743e,_0x22f2d8){const _0x10cf1e=_0x5c7f25?function(){const _0x404f7c=a9_0x984e;if(_0x22f2d8){const _0xb479bd=_0x22f2d8[_0x404f7c(0xdf)](_0x22743e,arguments);return _0x22f2d8=null,_0xb479bd;}}:function(){};return _0x5c7f25=![],_0x10cf1e;};}()),a9_0x2d151e=a9_0x48ce33(this,function(){const _0x3ec957=a9_0x984e;return a9_0x2d151e[_0x3ec957(0x11d)]()[_0x3ec957(0xce)](_0x3ec957(0xf9))['toString']()['constructor'](a9_0x2d151e)[_0x3ec957(0xce)](_0x3ec957(0xf9));});a9_0x2d151e();function a9_0x31d2(){const _0x63fc8=['summary','lodash','tagName','string','name','apply','flags.default','split','Object','function','routerOptions','find','pprefix','Number','@midwayjs/core','allow','filepath','getClassExtendedMetadata','items','args','endsWith','HEADERS','文件上传-','default','flags.presence','startsWith','test','../types/action','indexOf','47456yQlvso','flags.label','(((.+)+)+)+$','routes','object','FIELDS','FILESSTREAM','type','substring','title','description','length','limit','3abcyRu','parameterIndex','push','propertyData','prefix','@anncic-api/validator','metadata','473550empjnE','ACTION_KEY','key','method','request','header','246113DhLyOL','getClassMetadata','1799496XtuybA','max','get','body','3502269OaSORx','getMethodParamTypes','requestMethod','isArray','8vfrRUR','keys','toString','File','listModule','getRoutes','QUERY','join','array','route','PARAM','file','ACTION_ROUTE_KEY','rules','50rsbuZc','children','filter','2058320QWyVVB','required','boolean','search','intercept','query','replace','6GeWryH','min','defineProperty','module','RouteParamTypes','-array','557120qRdBmK','path'];a9_0x31d2=function(){return _0x63fc8;};return a9_0x31d2();}'use strict';Object[a9_0x65ba6d(0xd4)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a9_0x65ba6d(0xdb)),validator_1=require(a9_0x65ba6d(0x109)),core_1=require(a9_0x65ba6d(0xe8)),core_2=require(a9_0x65ba6d(0xe8)),core_3=require(a9_0x65ba6d(0xe8)),action_1=require(a9_0x65ba6d(0xf5));function getRoutes(_0x2d4011={'prefix':'/','module':![]}){const _0x52573a=a9_0x65ba6d;var _0x41c36d,_0x3dd8cc;const _0x18b749=(0x0,core_3[_0x52573a(0x11f)])(action_1[_0x52573a(0x10c)]),_0x42e505={},_0x573b3b=Array[_0x52573a(0x11a)](_0x2d4011['filter']||[])?_0x2d4011[_0x52573a(0xca)]||[]:[_0x2d4011[_0x52573a(0xca)]];_0x2497fa:for(const _0xd3b6f1 of _0x18b749){let _0x52ab45=(0x0,core_3[_0x52573a(0x112)])(action_1[_0x52573a(0x10c)],_0xd3b6f1),_0x4bf521=(0x0,core_3['getClassMetadata'])(action_1[_0x52573a(0xc6)],_0xd3b6f1);if(_0x52ab45&&_0x4bf521){let _0x4acbca=_0x52ab45[_0x52573a(0x108)],_0x4e4102={};if(_0x2d4011[_0x52573a(0xd5)]&&(0x0,lodash_1[_0x52573a(0x115)])(_0x52ab45,'module',![])!=_0x2d4011['module'])continue _0x2497fa;else{if(_0x2d4011['module']===![]&&!!(0x0,lodash_1[_0x52573a(0x115)])(_0x52ab45,_0x52573a(0xd5),null))continue _0x2497fa;}if(_0x2d4011[_0x52573a(0x108)]&&!_0x4acbca[_0x52573a(0xf3)](_0x2d4011[_0x52573a(0x108)]))continue _0x2497fa;_0x4acbca!=='/'?(_0x4e4102['summary']=(_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45['routerOptions'][_0x52573a(0xdc)])||(/^\//[_0x52573a(0xf4)](_0x4acbca)?_0x4acbca[_0x52573a(0xe1)]('/')[0x1]:_0x4acbca),_0x4e4102[_0x52573a(0x101)]=(_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45[_0x52573a(0xe4)][_0x52573a(0x101)])||_0x4e4102[_0x52573a(0xda)],_0x4e4102[_0x52573a(0xfa)]=[]):(_0x4e4102['summary']=(_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45[_0x52573a(0xe4)]['tagName'])||_0x52573a(0xf1),_0x4e4102[_0x52573a(0x101)]=(_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45[_0x52573a(0xe4)][_0x52573a(0x101)])||'',_0x4e4102[_0x52573a(0xfa)]=[]);_0x2d4011[_0x52573a(0xea)]&&(_0x4e4102[_0x52573a(0xea)]=_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45['filepath']);(_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45[_0x52573a(0xe6)])&&(_0x4e4102[_0x52573a(0x108)]=_0x52ab45[_0x52573a(0xe6)]);(_0x52ab45===null||_0x52ab45===void 0x0?void 0x0:_0x52ab45['module'])&&(_0x4e4102['module']=_0x52ab45[_0x52573a(0xd5)]);let _0x4b5994=(0x0,core_3[_0x52573a(0x112)])(core_2['INJECT_CUSTOM_PARAM'],_0xd3b6f1)||{};if(typeof _0x4bf521[Symbol['iterator']]===_0x52573a(0xe3))for(let _0x445bab of _0x4bf521){if((_0x2d4011===null||_0x2d4011===void 0x0?void 0x0:_0x2d4011[_0x52573a(0xcf)])&&!(_0x445bab===null||_0x445bab===void 0x0?void 0x0:_0x445bab[_0x52573a(0xcf)]))continue;let _0x933ed1={};_0x933ed1['method']=_0x445bab[_0x52573a(0x119)],_0x933ed1['route']=(_0x4acbca+_0x445bab[_0x52573a(0xd9)])[_0x52573a(0xd1)](/\/{2,}/g,'/'),_0x933ed1[_0x52573a(0xda)]=(_0x445bab===null||_0x445bab===void 0x0?void 0x0:_0x445bab['routerName'])||_0x4e4102['summary']||_0x52573a(0xf1),_0x933ed1[_0x52573a(0x101)]=(_0x445bab===null||_0x445bab===void 0x0?void 0x0:_0x445bab['description'])||'',_0x933ed1['request']=[];_0x933ed1[_0x52573a(0xc3)][_0x52573a(0xee)]('/')&&(_0x933ed1['route']=_0x933ed1[_0x52573a(0xc3)][_0x52573a(0xff)](0x0,_0x933ed1[_0x52573a(0xc3)][_0x52573a(0x102)]-0x1));if(!(0x0,lodash_1[_0x52573a(0xf3)])(_0x933ed1[_0x52573a(0xc3)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x933ed1['route'],'/static/apitest')&&_0x573b3b[_0x52573a(0xf6)](_0x933ed1[_0x52573a(0xc3)])===-0x1){if(!(_0x2d4011===null||_0x2d4011===void 0x0?void 0x0:_0x2d4011['noreq'])){let _0x21ed8d=(0x0,core_3[_0x52573a(0x118)])(new _0xd3b6f1(),_0x445bab[_0x52573a(0x10e)]);for(const _0x54f0f1 in _0x21ed8d){let _0x1a3c27=(_0x41c36d=_0x4b5994[_0x445bab[_0x52573a(0x10e)]])===null||_0x41c36d===void 0x0?void 0x0:_0x41c36d['find'](_0x2f4d16=>_0x2f4d16['parameterIndex']==_0x54f0f1&&_0x2f4d16[_0x52573a(0x10d)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x2f4d16===null||_0x2f4d16===void 0x0?void 0x0:_0x2f4d16[_0x52573a(0x10a)]));if(_0x1a3c27===null||_0x1a3c27===void 0x0?void 0x0:_0x1a3c27['metadata']){let _0x550535=convertTypeToString(_0x1a3c27[_0x52573a(0x10a)][_0x52573a(0xfe)]||0x0);if([_0x52573a(0xd0),_0x52573a(0x116)]['indexOf'](_0x550535)!=-0x1&&_0x1a3c27[_0x52573a(0x10a)][_0x52573a(0x107)][_0x52573a(0xf6)](':')==-0x1&&!_0x933ed1[_0x52573a(0x10f)][_0x52573a(0xe5)](_0x2ed654=>_0x2ed654['key']==_0x1a3c27['metadata']['propertyData']))_0x933ed1['request'][_0x52573a(0x106)]({'key':_0x1a3c27['metadata'][_0x52573a(0x107)],'title':_0x1a3c27[_0x52573a(0x10a)][_0x52573a(0x107)],'type':convertSchemaType(_0x21ed8d[_0x1a3c27[_0x52573a(0x105)]][_0x52573a(0xde)]),'required':![],'default':'','desc':''});else{if(_0x550535==_0x52573a(0xc5)){let _0x5d256e=((_0x3dd8cc=_0x1a3c27===null||_0x1a3c27===void 0x0?void 0x0:_0x1a3c27['metadata'])===null||_0x3dd8cc===void 0x0?void 0x0:_0x3dd8cc['propertyData'])||_0x52573a(0xc5);_0x5d256e['indexOf'](':')==-0x1&&!_0x933ed1[_0x52573a(0x10f)][_0x52573a(0xe5)](_0x4f9857=>_0x4f9857[_0x52573a(0x10d)]==_0x5d256e&&_0x4f9857[_0x52573a(0xfe)]==_0x52573a(0xc5))&&_0x933ed1['request'][_0x52573a(0x106)]({'key':_0x5d256e,'title':_0x52573a(0xf0)+_0x5d256e,'type':_0x52573a(0xc5),'required':!![],'default':'','desc':''});}}}else{const _0x54a268=(0x0,core_3[_0x52573a(0xeb)])(validator_1['RULES_KEY'],_0x21ed8d[_0x54f0f1]);_0x54a268&&_0x933ed1['request'][_0x52573a(0x106)](...getJoiRequest(_0x54a268));}}}_0x4e4102['routes'][_0x52573a(0x106)](_0x933ed1);}}if(_0x4e4102[_0x52573a(0xfa)]['length']>0x0){let _0x3d43f4=_0x42e505[_0x4acbca];_0x3d43f4?(_0x3d43f4['summary']!=_0x4e4102[_0x52573a(0xda)]&&(_0x3d43f4[_0x52573a(0xda)]=_0x3d43f4[_0x52573a(0xda)]+','+_0x4e4102[_0x52573a(0xda)]),_0x3d43f4[_0x52573a(0x101)]!=_0x4e4102['description']&&(_0x3d43f4[_0x52573a(0x101)]=_0x3d43f4[_0x52573a(0x101)]+','+_0x4e4102[_0x52573a(0x101)]),_0x3d43f4[_0x52573a(0xfa)]=_0x3d43f4[_0x52573a(0xfa)]['concat'](_0x4e4102[_0x52573a(0xfa)]),_0x42e505[_0x4acbca]=_0x3d43f4):_0x42e505[_0x4acbca]=_0x4e4102;}}}return _0x42e505;}exports[a9_0x65ba6d(0x120)]=getRoutes;function getJoiRequest(_0x33ded7){const _0x18a447=a9_0x65ba6d,_0x59639f=[];for(let _0x49828f in _0x33ded7){const _0x171fcc={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x59fe85=typeof _0x33ded7[_0x49828f]['describe']==_0x18a447(0xe3)?_0x33ded7[_0x49828f]['describe']():_0x33ded7[_0x49828f];_0x171fcc['key']=_0x49828f,_0x171fcc[_0x18a447(0xfe)]=_0x59fe85[_0x18a447(0xfe)],_0x171fcc[_0x18a447(0x100)]=(0x0,lodash_1[_0x18a447(0x115)])(_0x59fe85,_0x18a447(0xf8),_0x49828f),_0x171fcc[_0x18a447(0xf1)]=(0x0,lodash_1[_0x18a447(0x115)])(_0x59fe85,_0x18a447(0xe0),''),_0x171fcc['required']=(0x0,lodash_1[_0x18a447(0x115)])(_0x59fe85,_0x18a447(0xf2),'')==_0x18a447(0xcc),_0x171fcc['description']=(0x0,lodash_1[_0x18a447(0x115)])(_0x59fe85,'flags.description','');if(_0x59fe85[_0x18a447(0xfe)]==_0x18a447(0xfb))_0x171fcc[_0x18a447(0xc9)]=getJoiRequest(_0x59fe85[_0x18a447(0x11c)]);else _0x59fe85['type']==_0x18a447(0xc2)&&_0x59fe85[_0x18a447(0xec)]&&Array[_0x18a447(0x11a)](_0x59fe85[_0x18a447(0xec)])&&_0x59fe85['items'][0x0]&&console['log'](_0x49828f+_0x18a447(0xd7),_0x59fe85);_0x59fe85[_0x18a447(0xe9)]&&Array[_0x18a447(0x11a)](_0x59fe85[_0x18a447(0xe9)])&&_0x59fe85[_0x18a447(0xe9)][_0x18a447(0x102)]>0x0&&(_0x171fcc[_0x18a447(0x101)]='只允许:['+_0x59fe85[_0x18a447(0xe9)][_0x18a447(0x122)](',')+'];'+_0x171fcc[_0x18a447(0x101)]);if(_0x171fcc[_0x18a447(0x10d)]&&_0x171fcc['type']){const _0x56181b={};for(const _0x3b715a of _0x59fe85[_0x18a447(0xc7)]||[]){if(_0x3b715a[_0x18a447(0xde)]===_0x18a447(0xd3)&&_0x3b715a[_0x18a447(0xed)])_0x56181b[_0x18a447(0xd3)]=_0x3b715a[_0x18a447(0xed)][_0x18a447(0x103)];else _0x3b715a['name']===_0x18a447(0x114)&&(_0x56181b['max']=_0x3b715a[_0x18a447(0xed)][_0x18a447(0x103)]);}_0x171fcc[_0x18a447(0xc7)]=_0x56181b;}_0x171fcc[_0x18a447(0x10d)]&&_0x171fcc[_0x18a447(0x100)]&&_0x59639f['push'](_0x171fcc);}return _0x59639f;}function convertSchemaType(_0x50c4d5){const _0x8e2a48=a9_0x65ba6d;switch(_0x50c4d5){case _0x8e2a48(0xe2):return _0x8e2a48(0xfb);case'Boolean':return _0x8e2a48(0xcd);case _0x8e2a48(0xe7):return'number';case'String':return'string';case _0x8e2a48(0x11e):return _0x8e2a48(0xc5);default:return _0x8e2a48(0xdd);}}function a9_0x984e(_0x2618be,_0x59b685){const _0x21c9f9=a9_0x31d2();return a9_0x984e=function(_0x2d151e,_0x48ce33){_0x2d151e=_0x2d151e-0xc2;let _0x31d21c=_0x21c9f9[_0x2d151e];return _0x31d21c;},a9_0x984e(_0x2618be,_0x59b685);}function convertTypeToString(_0x446c2f){const _0x2df366=a9_0x65ba6d;switch(_0x446c2f){case core_1['RouteParamTypes'][_0x2df366(0xef)]:return'header';case core_1[_0x2df366(0xd6)][_0x2df366(0x121)]:return _0x2df366(0xd0);case core_1[_0x2df366(0xd6)][_0x2df366(0xc4)]:return _0x2df366(0xd9);case core_1[_0x2df366(0xd6)]['BODY']:return _0x2df366(0x116);case core_1[_0x2df366(0xd6)][_0x2df366(0xfc)]:case core_1[_0x2df366(0xd6)][_0x2df366(0xfd)]:case core_1[_0x2df366(0xd6)]['FILESTREAM']:return _0x2df366(0xc5);default:return _0x2df366(0x110);}}
|
|
1
|
+
function a9_0x2cc6(_0x5949ef,_0x2ac961){const _0x27639a=a9_0x48e4();return a9_0x2cc6=function(_0x31683f,_0x16e824){_0x31683f=_0x31683f-0xae;let _0x48e483=_0x27639a[_0x31683f];return _0x48e483;},a9_0x2cc6(_0x5949ef,_0x2ac961);}const a9_0x39c853=a9_0x2cc6;(function(_0x53a1de,_0xfffedc){const _0x1ad2b3=a9_0x2cc6,_0x37d08d=_0x53a1de();while(!![]){try{const _0x26d782=parseInt(_0x1ad2b3(0xc4))/0x1+parseInt(_0x1ad2b3(0xec))/0x2+-parseInt(_0x1ad2b3(0xfd))/0x3*(-parseInt(_0x1ad2b3(0x106))/0x4)+parseInt(_0x1ad2b3(0xbe))/0x5*(parseInt(_0x1ad2b3(0xe9))/0x6)+parseInt(_0x1ad2b3(0xc6))/0x7*(parseInt(_0x1ad2b3(0xc7))/0x8)+-parseInt(_0x1ad2b3(0xe1))/0x9+parseInt(_0x1ad2b3(0x100))/0xa*(-parseInt(_0x1ad2b3(0xd5))/0xb);if(_0x26d782===_0xfffedc)break;else _0x37d08d['push'](_0x37d08d['shift']());}catch(_0x3ac3ca){_0x37d08d['push'](_0x37d08d['shift']());}}}(a9_0x48e4,0x5fa24));const a9_0x16e824=(function(){let _0x3b82b1=!![];return function(_0x9ca749,_0x347579){const _0x4823f5=_0x3b82b1?function(){const _0x476dd4=a9_0x2cc6;if(_0x347579){const _0x3e1330=_0x347579[_0x476dd4(0xaf)](_0x9ca749,arguments);return _0x347579=null,_0x3e1330;}}:function(){};return _0x3b82b1=![],_0x4823f5;};}()),a9_0x31683f=a9_0x16e824(this,function(){const _0x265c33=a9_0x2cc6;return a9_0x31683f['toString']()[_0x265c33(0xc9)]('(((.+)+)+)+$')[_0x265c33(0xca)]()[_0x265c33(0xe0)](a9_0x31683f)['search'](_0x265c33(0x113));});a9_0x31683f();function a9_0x48e4(){const _0x164621=['static/apitest','793210qKgoSg','metadata','flags.presence','文件上传-','boolean','lodash','156896tmSvQs','prefix','filepath','limit','defineProperty','file','ACTION_ROUTE_KEY','pprefix','length','children','function','iterator','keys','(((.+)+)+)+$','HEADERS','intercept','ACTION_KEY','default','apply','PARAM','只允许:[','summary','BODY','title','body','number','query','listModule','flags.default','min','File','@anncic-api/validator','name','125110Amxvju','RULES_KEY','key','propertyData','parameterIndex','args','10539Yllzjw','flags.description','14igwKSv','3083120ewWKnU','FIELDS','search','toString','route','RouteParamTypes','replace','log','String','find','required','@midwayjs/core','FILESSTREAM','isArray','154jDvFuV','description','Boolean','startsWith','split','method','header','describe','array','items','push','constructor','293598rwZiIV','filter','flags.label','get','allow','rules','max','getClassMetadata','84ahtJqj','QUERY','join','727962MQAVCm','routerName','module','request','routes','WEB_ROUTER_PARAM_KEY','string','__esModule','type','-array','getMethodParamTypes','routerOptions','concat','indexOf','../types/action','tagName','getClassExtendedMetadata','3dkxFbK','Number'];a9_0x48e4=function(){return _0x164621;};return a9_0x48e4();}'use strict';Object[a9_0x39c853(0x10a)](exports,a9_0x39c853(0xf3),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a9_0x39c853(0x105)),validator_1=require(a9_0x39c853(0xbc)),core_1=require('@midwayjs/core'),core_2=require(a9_0x39c853(0xd2)),core_3=require(a9_0x39c853(0xd2)),action_1=require(a9_0x39c853(0xfa));function getRoutes(_0x2ec1ff={'prefix':'/','module':![]}){const _0x209f5b=a9_0x39c853;var _0x2edebc,_0x1a26ec;const _0x34659f=(0x0,core_3[_0x209f5b(0xb8)])(action_1[_0x209f5b(0x116)]),_0x4a3121={},_0x5c0b8a=Array[_0x209f5b(0xd4)](_0x2ec1ff[_0x209f5b(0xe2)]||[])?_0x2ec1ff[_0x209f5b(0xe2)]||[]:[_0x2ec1ff[_0x209f5b(0xe2)]];_0x20d62b:for(const _0x5892da of _0x34659f){let _0x2af13c=(0x0,core_3['getClassMetadata'])(action_1[_0x209f5b(0x116)],_0x5892da),_0x1026c1=(0x0,core_3['getClassMetadata'])(action_1[_0x209f5b(0x10c)],_0x5892da);if(_0x2af13c&&_0x1026c1){let _0x1c1f17=_0x2af13c[_0x209f5b(0x107)],_0x13af88={};if(_0x2ec1ff[_0x209f5b(0xee)]&&(0x0,lodash_1[_0x209f5b(0xe4)])(_0x2af13c,_0x209f5b(0xee),![])!=_0x2ec1ff[_0x209f5b(0xee)])continue _0x20d62b;else{if(_0x2ec1ff['module']===![]&&!!(0x0,lodash_1[_0x209f5b(0xe4)])(_0x2af13c,_0x209f5b(0xee),null))continue _0x20d62b;}if(_0x2ec1ff[_0x209f5b(0x107)]&&!_0x1c1f17['startsWith'](_0x2ec1ff[_0x209f5b(0x107)]))continue _0x20d62b;_0x1c1f17!=='/'?(_0x13af88['summary']=(_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0xf7)][_0x209f5b(0xfb)])||(/^\//['test'](_0x1c1f17)?_0x1c1f17[_0x209f5b(0xd9)]('/')[0x1]:_0x1c1f17),_0x13af88[_0x209f5b(0xd6)]=(_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0xf7)][_0x209f5b(0xd6)])||_0x13af88[_0x209f5b(0xb2)],_0x13af88[_0x209f5b(0xf0)]=[]):(_0x13af88[_0x209f5b(0xb2)]=(_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0xf7)]['tagName'])||_0x209f5b(0xae),_0x13af88[_0x209f5b(0xd6)]=(_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0xf7)][_0x209f5b(0xd6)])||'',_0x13af88[_0x209f5b(0xf0)]=[]);_0x2ec1ff[_0x209f5b(0x108)]&&(_0x13af88[_0x209f5b(0x108)]=_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0x108)]);(_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0x10d)])&&(_0x13af88['prefix']=_0x2af13c[_0x209f5b(0x10d)]);(_0x2af13c===null||_0x2af13c===void 0x0?void 0x0:_0x2af13c[_0x209f5b(0xee)])&&(_0x13af88[_0x209f5b(0xee)]=_0x2af13c[_0x209f5b(0xee)]);let _0x276ff4=(0x0,core_3[_0x209f5b(0xe8)])(core_2['INJECT_CUSTOM_PARAM'],_0x5892da)||{};if(typeof _0x1026c1[Symbol[_0x209f5b(0x111)]]===_0x209f5b(0x110))for(let _0x1a808b of _0x1026c1){if((_0x2ec1ff===null||_0x2ec1ff===void 0x0?void 0x0:_0x2ec1ff[_0x209f5b(0x115)])&&!(_0x1a808b===null||_0x1a808b===void 0x0?void 0x0:_0x1a808b[_0x209f5b(0x115)]))continue;let _0x3bf14b={};_0x3bf14b[_0x209f5b(0xda)]=_0x1a808b['requestMethod'],_0x3bf14b[_0x209f5b(0xcb)]=(_0x1c1f17+_0x1a808b['path'])[_0x209f5b(0xcd)](/\/{2,}/g,'/'),_0x3bf14b[_0x209f5b(0xb2)]=(_0x1a808b===null||_0x1a808b===void 0x0?void 0x0:_0x1a808b[_0x209f5b(0xed)])||_0x13af88['summary']||_0x209f5b(0xae),_0x3bf14b[_0x209f5b(0xd6)]=(_0x1a808b===null||_0x1a808b===void 0x0?void 0x0:_0x1a808b['description'])||'',_0x3bf14b[_0x209f5b(0xef)]=[];_0x3bf14b[_0x209f5b(0xcb)]['endsWith']('/')&&(_0x3bf14b[_0x209f5b(0xcb)]=_0x3bf14b[_0x209f5b(0xcb)]['substring'](0x0,_0x3bf14b[_0x209f5b(0xcb)][_0x209f5b(0x10e)]-0x1));if(!(0x0,lodash_1[_0x209f5b(0xd8)])(_0x3bf14b[_0x209f5b(0xcb)],_0x209f5b(0xff))&&!(0x0,lodash_1['startsWith'])(_0x3bf14b['route'],'/static/apitest')&&_0x5c0b8a['indexOf'](_0x3bf14b['route'])===-0x1){if(!(_0x2ec1ff===null||_0x2ec1ff===void 0x0?void 0x0:_0x2ec1ff['noreq'])){let _0x996254=(0x0,core_3[_0x209f5b(0xf6)])(new _0x5892da(),_0x1a808b[_0x209f5b(0xda)]);for(const _0x4c65a1 in _0x996254){let _0xbb2ca6=(_0x2edebc=_0x276ff4[_0x1a808b[_0x209f5b(0xda)]])===null||_0x2edebc===void 0x0?void 0x0:_0x2edebc['find'](_0x41073e=>_0x41073e['parameterIndex']==_0x4c65a1&&_0x41073e[_0x209f5b(0xc0)]===core_2[_0x209f5b(0xf1)]&&(_0x41073e===null||_0x41073e===void 0x0?void 0x0:_0x41073e[_0x209f5b(0x101)]));if(_0xbb2ca6===null||_0xbb2ca6===void 0x0?void 0x0:_0xbb2ca6[_0x209f5b(0x101)]){let _0x1eb6bd=convertTypeToString(_0xbb2ca6[_0x209f5b(0x101)][_0x209f5b(0xf4)]||0x0);if([_0x209f5b(0xb7),_0x209f5b(0xb5)][_0x209f5b(0xf9)](_0x1eb6bd)!=-0x1&&_0xbb2ca6['metadata']['propertyData'][_0x209f5b(0xf9)](':')==-0x1&&!_0x3bf14b['request'][_0x209f5b(0xd0)](_0x5eedfa=>_0x5eedfa[_0x209f5b(0xc0)]==_0xbb2ca6['metadata'][_0x209f5b(0xc1)]))_0x3bf14b[_0x209f5b(0xef)][_0x209f5b(0xdf)]({'key':_0xbb2ca6[_0x209f5b(0x101)][_0x209f5b(0xc1)],'title':_0xbb2ca6[_0x209f5b(0x101)][_0x209f5b(0xc1)],'type':convertSchemaType(_0x996254[_0xbb2ca6[_0x209f5b(0xc2)]][_0x209f5b(0xbd)]),'required':![],'default':'','desc':''});else{if(_0x1eb6bd==_0x209f5b(0x10b)){let _0x2c8d3e=((_0x1a26ec=_0xbb2ca6===null||_0xbb2ca6===void 0x0?void 0x0:_0xbb2ca6[_0x209f5b(0x101)])===null||_0x1a26ec===void 0x0?void 0x0:_0x1a26ec['propertyData'])||_0x209f5b(0x10b);_0x2c8d3e[_0x209f5b(0xf9)](':')==-0x1&&!_0x3bf14b[_0x209f5b(0xef)][_0x209f5b(0xd0)](_0x520832=>_0x520832[_0x209f5b(0xc0)]==_0x2c8d3e&&_0x520832[_0x209f5b(0xf4)]=='file')&&_0x3bf14b[_0x209f5b(0xef)]['push']({'key':_0x2c8d3e,'title':_0x209f5b(0x103)+_0x2c8d3e,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x3dba4f=(0x0,core_3[_0x209f5b(0xfc)])(validator_1[_0x209f5b(0xbf)],_0x996254[_0x4c65a1]);_0x3dba4f&&_0x3bf14b[_0x209f5b(0xef)][_0x209f5b(0xdf)](...getJoiRequest(_0x3dba4f));}}}_0x13af88[_0x209f5b(0xf0)]['push'](_0x3bf14b);}}if(_0x13af88['routes'][_0x209f5b(0x10e)]>0x0){let _0x5639bc=_0x4a3121[_0x1c1f17];_0x5639bc?(_0x5639bc['summary']!=_0x13af88[_0x209f5b(0xb2)]&&(_0x5639bc[_0x209f5b(0xb2)]=_0x5639bc[_0x209f5b(0xb2)]+','+_0x13af88['summary']),_0x5639bc['description']!=_0x13af88[_0x209f5b(0xd6)]&&(_0x5639bc[_0x209f5b(0xd6)]=_0x5639bc[_0x209f5b(0xd6)]+','+_0x13af88['description']),_0x5639bc[_0x209f5b(0xf0)]=_0x5639bc[_0x209f5b(0xf0)][_0x209f5b(0xf8)](_0x13af88['routes']),_0x4a3121[_0x1c1f17]=_0x5639bc):_0x4a3121[_0x1c1f17]=_0x13af88;}}}return _0x4a3121;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x34b014){const _0x49805e=a9_0x39c853,_0x4b20ca=[];for(let _0x3dacac in _0x34b014){const _0xebfe={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4d8f3e=typeof _0x34b014[_0x3dacac]['describe']==_0x49805e(0x110)?_0x34b014[_0x3dacac][_0x49805e(0xdc)]():_0x34b014[_0x3dacac];_0xebfe[_0x49805e(0xc0)]=_0x3dacac,_0xebfe['type']=_0x4d8f3e[_0x49805e(0xf4)],_0xebfe[_0x49805e(0xb4)]=(0x0,lodash_1['get'])(_0x4d8f3e,_0x49805e(0xe3),_0x3dacac),_0xebfe['default']=(0x0,lodash_1['get'])(_0x4d8f3e,_0x49805e(0xb9),''),_0xebfe[_0x49805e(0xd1)]=(0x0,lodash_1[_0x49805e(0xe4)])(_0x4d8f3e,_0x49805e(0x102),'')==_0x49805e(0xd1),_0xebfe[_0x49805e(0xd6)]=(0x0,lodash_1[_0x49805e(0xe4)])(_0x4d8f3e,_0x49805e(0xc5),'');if(_0x4d8f3e[_0x49805e(0xf4)]=='object')_0xebfe[_0x49805e(0x10f)]=getJoiRequest(_0x4d8f3e[_0x49805e(0x112)]);else _0x4d8f3e[_0x49805e(0xf4)]==_0x49805e(0xdd)&&_0x4d8f3e[_0x49805e(0xde)]&&Array[_0x49805e(0xd4)](_0x4d8f3e[_0x49805e(0xde)])&&_0x4d8f3e[_0x49805e(0xde)][0x0]&&console[_0x49805e(0xce)](_0x3dacac+_0x49805e(0xf5),_0x4d8f3e);_0x4d8f3e['allow']&&Array[_0x49805e(0xd4)](_0x4d8f3e['allow'])&&_0x4d8f3e[_0x49805e(0xe5)][_0x49805e(0x10e)]>0x0&&(_0xebfe[_0x49805e(0xd6)]=_0x49805e(0xb1)+_0x4d8f3e[_0x49805e(0xe5)][_0x49805e(0xeb)](',')+'];'+_0xebfe[_0x49805e(0xd6)]);if(_0xebfe[_0x49805e(0xc0)]&&_0xebfe[_0x49805e(0xf4)]){const _0x3eb854={};for(const _0x2c70be of _0x4d8f3e[_0x49805e(0xe6)]||[]){if(_0x2c70be[_0x49805e(0xbd)]===_0x49805e(0xba)&&_0x2c70be['args'])_0x3eb854[_0x49805e(0xba)]=_0x2c70be[_0x49805e(0xc3)]['limit'];else _0x2c70be[_0x49805e(0xbd)]===_0x49805e(0xe7)&&(_0x3eb854[_0x49805e(0xe7)]=_0x2c70be[_0x49805e(0xc3)][_0x49805e(0x109)]);}_0xebfe['rules']=_0x3eb854;}_0xebfe[_0x49805e(0xc0)]&&_0xebfe[_0x49805e(0xb4)]&&_0x4b20ca['push'](_0xebfe);}return _0x4b20ca;}function convertSchemaType(_0x15df34){const _0x160045=a9_0x39c853;switch(_0x15df34){case'Object':return'object';case _0x160045(0xd7):return _0x160045(0x104);case _0x160045(0xfe):return _0x160045(0xb6);case _0x160045(0xcf):return _0x160045(0xf2);case _0x160045(0xbb):return _0x160045(0x10b);default:return _0x160045(0xf2);}}function convertTypeToString(_0x4301bc){const _0x4421bc=a9_0x39c853;switch(_0x4301bc){case core_1[_0x4421bc(0xcc)][_0x4421bc(0x114)]:return _0x4421bc(0xdb);case core_1['RouteParamTypes'][_0x4421bc(0xea)]:return _0x4421bc(0xb7);case core_1[_0x4421bc(0xcc)][_0x4421bc(0xb0)]:return'path';case core_1['RouteParamTypes'][_0x4421bc(0xb3)]:return _0x4421bc(0xb5);case core_1[_0x4421bc(0xcc)][_0x4421bc(0xc8)]:case core_1[_0x4421bc(0xcc)][_0x4421bc(0xd3)]:case core_1[_0x4421bc(0xcc)]['FILESTREAM']:return _0x4421bc(0x10b);default:return _0x4421bc(0xdb);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x1df4f3=a10_0x423b;(function(_0x51b6df,_0x4b6d54){var _0x3b3349=a10_0x423b,_0x5d2ebe=_0x51b6df();while(!![]){try{var _0x394f5c=parseInt(_0x3b3349(0x21a))/0x1*(parseInt(_0x3b3349(0x1fc))/0x2)+parseInt(_0x3b3349(0x228))/0x3+-parseInt(_0x3b3349(0x220))/0x4*(-parseInt(_0x3b3349(0x21c))/0x5)+parseInt(_0x3b3349(0x1f1))/0x6*(parseInt(_0x3b3349(0x218))/0x7)+-parseInt(_0x3b3349(0x210))/0x8+-parseInt(_0x3b3349(0x205))/0x9*(parseInt(_0x3b3349(0x227))/0xa)+-parseInt(_0x3b3349(0x20e))/0xb;if(_0x394f5c===_0x4b6d54)break;else _0x5d2ebe['push'](_0x5d2ebe['shift']());}catch(_0x1f06e8){_0x5d2ebe['push'](_0x5d2ebe['shift']());}}}(a10_0x1741,0xd3eb4));var a10_0x2494b1=(function(){var _0x8f9572=!![];return function(_0x1c4b56,_0x77dfcd){var _0x223d02=_0x8f9572?function(){var _0x1eb66c=a10_0x423b;if(_0x77dfcd){var _0x14eb98=_0x77dfcd[_0x1eb66c(0x21e)](_0x1c4b56,arguments);return _0x77dfcd=null,_0x14eb98;}}:function(){};return _0x8f9572=![],_0x223d02;};}()),a10_0x2aea90=a10_0x2494b1(this,function(){var _0x3007d2=a10_0x423b;return a10_0x2aea90[_0x3007d2(0x20c)]()['search'](_0x3007d2(0x213))[_0x3007d2(0x20c)]()[_0x3007d2(0x1e9)](a10_0x2aea90)[_0x3007d2(0x1f0)](_0x3007d2(0x213));});a10_0x2aea90();'use strict';var __createBinding=this&&this[a10_0x1df4f3(0x1fa)]||(Object[a10_0x1df4f3(0x1ee)]?function(_0x471542,_0x202ba2,_0x5df90a,_0x3f3d){var _0x2e806b=a10_0x1df4f3;if(_0x3f3d===undefined)_0x3f3d=_0x5df90a;var _0x32716e=Object[_0x2e806b(0x21f)](_0x202ba2,_0x5df90a);(!_0x32716e||('get'in _0x32716e?!_0x202ba2['__esModule']:_0x32716e[_0x2e806b(0x21b)]||_0x32716e[_0x2e806b(0x1f9)]))&&(_0x32716e={'enumerable':!![],'get':function(){return _0x202ba2[_0x5df90a];}}),Object[_0x2e806b(0x1ec)](_0x471542,_0x3f3d,_0x32716e);}:function(_0x3009cd,_0x56f9a,_0x159ba5,_0x2decd1){if(_0x2decd1===undefined)_0x2decd1=_0x159ba5;_0x3009cd[_0x2decd1]=_0x56f9a[_0x159ba5];}),__exportStar=this&&this[a10_0x1df4f3(0x225)]||function(_0xaac911,_0x5986e7){var _0x3ee7fe=a10_0x1df4f3;for(var _0x362fc0 in _0xaac911)if(_0x362fc0!=='default'&&!Object[_0x3ee7fe(0x1f6)][_0x3ee7fe(0x22a)][_0x3ee7fe(0x203)](_0x5986e7,_0x362fc0))__createBinding(_0x5986e7,_0xaac911,_0x362fc0);};Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x22c),{'value':!![]}),exports[a10_0x1df4f3(0x208)]=exports[a10_0x1df4f3(0x1ed)]=exports['Singleton']=exports['Scope']=exports[a10_0x1df4f3(0x219)]=exports[a10_0x1df4f3(0x216)]=exports[a10_0x1df4f3(0x1f2)]=exports[a10_0x1df4f3(0x22b)]=exports['App']=exports[a10_0x1df4f3(0x222)]=exports[a10_0x1df4f3(0x224)]=exports[a10_0x1df4f3(0x215)]=exports[a10_0x1df4f3(0x20b)]=exports[a10_0x1df4f3(0x202)]=exports[a10_0x1df4f3(0x1eb)]=exports[a10_0x1df4f3(0x1f5)]=exports['File']=exports['Configuration']=exports[a10_0x1df4f3(0x21d)]=exports['ValidatorError']=exports[a10_0x1df4f3(0x201)]=exports[a10_0x1df4f3(0x221)]=exports[a10_0x1df4f3(0x1ea)]=exports['CacheService']=exports[a10_0x1df4f3(0x223)]=exports['getRoutes']=exports['IIntercept']=exports[a10_0x1df4f3(0x1f8)]=exports[a10_0x1df4f3(0x214)]=exports[a10_0x1df4f3(0x200)]=exports[a10_0x1df4f3(0x207)]=void 0x0;const getAppsConfig_1=require(a10_0x1df4f3(0x20a));Object['defineProperty'](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x1d26b5=a10_0x1df4f3;return getAppsConfig_1[_0x1d26b5(0x208)];}}),__exportStar(require(a10_0x1df4f3(0x1ef)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a10_0x1df4f3(0x217));Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x207),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a10_0x1df4f3(0x20f));Object['defineProperty'](exports,a10_0x1df4f3(0x200),{'enumerable':!![],'get':function(){var _0x5844ff=a10_0x1df4f3;return Action_1[_0x5844ff(0x200)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a10_0x1df4f3(0x1ec)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x388bf6=a10_0x1df4f3;return ActionApitest_1[_0x388bf6(0x214)];}});var Intercept_1=require('./decorator/Intercept');Object['defineProperty'](exports,a10_0x1df4f3(0x1f8),{'enumerable':!![],'get':function(){var _0x6afc62=a10_0x1df4f3;return Intercept_1[_0x6afc62(0x1f8)];}}),Object[a10_0x1df4f3(0x1ec)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x1d1429=a10_0x1df4f3;return Intercept_1[_0x1d1429(0x229)];}});var getRoutes_1=require(a10_0x1df4f3(0x1f3));Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x209),{'enumerable':!![],'get':function(){var _0x2fc0b2=a10_0x1df4f3;return getRoutes_1[_0x2fc0b2(0x209)];}});var ApiError_1=require('./exception/ApiError');Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x223),{'enumerable':!![],'get':function(){var _0x186224=a10_0x1df4f3;return ApiError_1[_0x186224(0x223)];}});var cache_1=require(a10_0x1df4f3(0x1fb));Object[a10_0x1df4f3(0x1ec)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x3d6827=a10_0x1df4f3;return cache_1[_0x3d6827(0x206)];}});var event_1=require('@anncic-api/event');Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x1ea),{'enumerable':!![],'get':function(){var _0x5f38d0=a10_0x1df4f3;return event_1[_0x5f38d0(0x1ea)];}});var ApiService_1=require(a10_0x1df4f3(0x204));Object[a10_0x1df4f3(0x1ec)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x56e254=a10_0x1df4f3;return ApiService_1[_0x56e254(0x221)];}});var ExcelService_1=require(a10_0x1df4f3(0x1fe));Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x201),{'enumerable':!![],'get':function(){var _0xc89ea1=a10_0x1df4f3;return ExcelService_1[_0xc89ea1(0x201)];}});var validator_1=require(a10_0x1df4f3(0x226));Object[a10_0x1df4f3(0x1ec)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x27aeca=a10_0x1df4f3;return validator_1[_0x27aeca(0x211)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x21d),{'enumerable':!![],'get':function(){var _0x2f2aec=a10_0x1df4f3;return validator_1[_0x2f2aec(0x21d)];}});var configuration_1=require(a10_0x1df4f3(0x1f4));Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x1ff),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a10_0x423b(_0x1bf8ec,_0xae88e8){var _0x226708=a10_0x1741();return a10_0x423b=function(_0x2aea90,_0x2494b1){_0x2aea90=_0x2aea90-0x1e8;var _0x174130=_0x226708[_0x2aea90];return _0x174130;},a10_0x423b(_0x1bf8ec,_0xae88e8);}var core_1=require(a10_0x1df4f3(0x1f7));Object['defineProperty'](exports,a10_0x1df4f3(0x212),{'enumerable':!![],'get':function(){var _0x1f0988=a10_0x1df4f3;return core_1[_0x1f0988(0x212)];}}),Object[a10_0x1df4f3(0x1ec)](exports,'Files',{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x609dbe=a10_0x1df4f3;return core_1[_0x609dbe(0x1eb)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x202),{'enumerable':!![],'get':function(){var _0x1ac58e=a10_0x1df4f3;return core_1[_0x1ac58e(0x202)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x20b),{'enumerable':!![],'get':function(){var _0x17b46b=a10_0x1df4f3;return core_1[_0x17b46b(0x20b)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x215),{'enumerable':!![],'get':function(){var _0x348e2a=a10_0x1df4f3;return core_1[_0x348e2a(0x215)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x224),{'enumerable':!![],'get':function(){var _0x25efbe=a10_0x1df4f3;return core_1[_0x25efbe(0x224)];}}),Object[a10_0x1df4f3(0x1ec)](exports,'Init',{'enumerable':!![],'get':function(){var _0x3d76ca=a10_0x1df4f3;return core_1[_0x3d76ca(0x222)];}});var core_2=require(a10_0x1df4f3(0x1f7));function a10_0x1741(){var _0x52a4b9=['ValidatorService','apply','getOwnPropertyDescriptor','6131124HmfjEu','ApiService','Init','ApiError','Headers','__exportStar','@anncic-api/validator','10KoEpyY','2105397yPjGmn','IIntercept','hasOwnProperty','Config','__esModule','App','constructor','EventService','Fields','defineProperty','ScopeEnum','create','./types/common','search','6UnHpVF','Logger','./helper/getRoutes','./configuration','Files','prototype','@midwayjs/core','Intercept','configurable','__createBinding','@anncic-api/cache','2940068EfXLth','Singleton','./service/ExcelService','Configuration','Action','ExcelService','Body','call','./service/ApiService','3320667fJrZXX','CacheService','Api','getAppsConfig','getRoutes','./helper/getAppsConfig','Param','toString','Scope','25350611GEhmnh','./decorator/Action','4870272nSgSYa','ValidatorError','File','(((.+)+)+)+$','Apitest','Query','Provide','./decorator/ActionApi','3120278iHaTwa','Inject','1KoCuBw','writable','5ISkycA'];a10_0x1741=function(){return _0x52a4b9;};return a10_0x1741();}Object['defineProperty'](exports,a10_0x1df4f3(0x1e8),{'enumerable':!![],'get':function(){var _0x2ff18a=a10_0x1df4f3;return core_2[_0x2ff18a(0x1e8)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x22b),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x1f2),{'enumerable':!![],'get':function(){var _0x193653=a10_0x1df4f3;return core_2[_0x193653(0x1f2)];}}),Object[a10_0x1df4f3(0x1ec)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x3b4cb9=a10_0x1df4f3;return core_2[_0x3b4cb9(0x216)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x219),{'enumerable':!![],'get':function(){var _0xc6488a=a10_0x1df4f3;return core_2[_0xc6488a(0x219)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x20d),{'enumerable':!![],'get':function(){var _0x24e9a1=a10_0x1df4f3;return core_2[_0x24e9a1(0x20d)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x1fd),{'enumerable':!![],'get':function(){var _0x25edb1=a10_0x1df4f3;return core_2[_0x25edb1(0x1fd)];}}),Object[a10_0x1df4f3(0x1ec)](exports,a10_0x1df4f3(0x1ed),{'enumerable':!![],'get':function(){var _0x1a1529=a10_0x1df4f3;return core_2[_0x1a1529(0x1ed)];}}),global[a10_0x1df4f3(0x208)]=getAppsConfig_1[a10_0x1df4f3(0x208)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a11_0x534e(){var _0x16e9fe=['requesttime','signature','function','decorate','entries','length','design:type','ApiError','crypto-js','secret','TIMEOUT_LOGINTIME','1355LzUtKe','checksign','1617826EBlgmT','secret=','map','MD5','anncicapi','20uxDVuw','HEADERS_CHECKCODE','17163gNnbaz','metadata','toLowerCase','search','devices','Scope','@midwayjs/core','getcheck','timeout','defineProperty','sort','145392RqaHyW','device','6378xXLLtZ','缺少头信息:','constructor','22oHDsHp','HEADERS_SIGNATURE','__esModule','now','HEADERS_DEVICE','logintimeout','logintime','Singleton','66324HtYBsk','abs','join','config','fromEntries','213914XwBNUx','TIMEOUT','checkcode','__decorate','toString','getOwnPropertyDescriptor','getsign','password','ApiService','107883pxBKbL','token','(((.+)+)+)+$','object','HEADERS_LACK','缺少头信息:signature','push','undefined','ScopeEnum'];a11_0x534e=function(){return _0x16e9fe;};return a11_0x534e();}var a11_0x380267=a11_0x5b00;(function(_0x4a3ef8,_0x1a1b21){var _0x2615f1=a11_0x5b00,_0x1a1bb8=_0x4a3ef8();while(!![]){try{var _0x59a21a=-parseInt(_0x2615f1(0x224))/0x1+-parseInt(_0x2615f1(0x217))/0x2*(-parseInt(_0x2615f1(0x207))/0x3)+parseInt(_0x2615f1(0x21f))/0x4+parseInt(_0x2615f1(0x1fe))/0x5*(parseInt(_0x2615f1(0x214))/0x6)+parseInt(_0x2615f1(0x200))/0x7+-parseInt(_0x2615f1(0x212))/0x8+-parseInt(_0x2615f1(0x1ea))/0x9*(parseInt(_0x2615f1(0x205))/0xa);if(_0x59a21a===_0x1a1b21)break;else _0x1a1bb8['push'](_0x1a1bb8['shift']());}catch(_0x307994){_0x1a1bb8['push'](_0x1a1bb8['shift']());}}}(a11_0x534e,0x53a71));var a11_0x14efe6=(function(){var _0xced742=!![];return function(_0x258e7b,_0x42e157){var _0x39f7e9=_0xced742?function(){if(_0x42e157){var _0x21b461=_0x42e157['apply'](_0x258e7b,arguments);return _0x42e157=null,_0x21b461;}}:function(){};return _0xced742=![],_0x39f7e9;};}()),a11_0x1c89ab=a11_0x14efe6(this,function(){var _0xe894d=a11_0x5b00;return a11_0x1c89ab[_0xe894d(0x1e5)]()[_0xe894d(0x20a)]('(((.+)+)+)+$')[_0xe894d(0x1e5)]()[_0xe894d(0x216)](a11_0x1c89ab)[_0xe894d(0x20a)](_0xe894d(0x1ec));});a11_0x1c89ab();function a11_0x5b00(_0x40ac8b,_0x41901e){var _0x3749f8=a11_0x534e();return a11_0x5b00=function(_0x1c89ab,_0x14efe6){_0x1c89ab=_0x1c89ab-0x1e3;var _0x534ec1=_0x3749f8[_0x1c89ab];return _0x534ec1;},a11_0x5b00(_0x40ac8b,_0x41901e);}'use strict';var __decorate=this&&this[a11_0x380267(0x1e4)]||function(_0x465c7e,_0x102e32,_0x3d87b1,_0x496fa3){var _0xc17774=a11_0x380267,_0x467947=arguments['length'],_0x89d7a2=_0x467947<0x3?_0x102e32:_0x496fa3===null?_0x496fa3=Object[_0xc17774(0x1e6)](_0x102e32,_0x3d87b1):_0x496fa3,_0x31d5ef;if(typeof Reflect==='object'&&typeof Reflect[_0xc17774(0x1f6)]===_0xc17774(0x1f5))_0x89d7a2=Reflect[_0xc17774(0x1f6)](_0x465c7e,_0x102e32,_0x3d87b1,_0x496fa3);else{for(var _0xcbab15=_0x465c7e[_0xc17774(0x1f8)]-0x1;_0xcbab15>=0x0;_0xcbab15--)if(_0x31d5ef=_0x465c7e[_0xcbab15])_0x89d7a2=(_0x467947<0x3?_0x31d5ef(_0x89d7a2):_0x467947>0x3?_0x31d5ef(_0x102e32,_0x3d87b1,_0x89d7a2):_0x31d5ef(_0x102e32,_0x3d87b1))||_0x89d7a2;}return _0x467947>0x3&&_0x89d7a2&&Object[_0xc17774(0x210)](_0x102e32,_0x3d87b1,_0x89d7a2),_0x89d7a2;},__metadata=this&&this['__metadata']||function(_0x332841,_0x3e1e38){var _0x1e8ccc=a11_0x380267;if(typeof Reflect===_0x1e8ccc(0x1ed)&&typeof Reflect[_0x1e8ccc(0x208)]===_0x1e8ccc(0x1f5))return Reflect[_0x1e8ccc(0x208)](_0x332841,_0x3e1e38);};Object[a11_0x380267(0x210)](exports,a11_0x380267(0x219),{'value':!![]}),exports[a11_0x380267(0x1e9)]=void 0x0;const crypto_js_1=require(a11_0x380267(0x1fb)),core_1=require(a11_0x380267(0x20d)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a11_0x380267(0x1e8)](_0x128f00){var _0x5de8f0=a11_0x380267,_0x56170d;return _0x128f00?(0x0,crypto_js_1[_0x5de8f0(0x203)])(''+_0x128f00+(0x0,crypto_js_1[_0x5de8f0(0x203)])((0x0,crypto_js_1['MD5'])(''+_0x128f00)[_0x5de8f0(0x1e5)]()+(''+((_0x56170d=this['config'])===null||_0x56170d===void 0x0?void 0x0:_0x56170d[_0x5de8f0(0x1e8)])))['toString']())[_0x5de8f0(0x1e5)]():'';}[a11_0x380267(0x20e)](_0x525c0d,_0x47129e,_0x41b5cb=Date['now']()){return{'Token':_0x525c0d,'Logintime':_0x41b5cb,'Checkcode':this['checkcode'](_0x525c0d,_0x47129e,_0x41b5cb)};}[a11_0x380267(0x1e7)](_0x5ddfa7={}){var _0x4d3678=a11_0x380267,_0x1b286f,_0x189da;const _0x3ffdab=[],_0x1b07ba=Object[_0x4d3678(0x223)](Object[_0x4d3678(0x1f7)](_0x5ddfa7)[_0x4d3678(0x202)](_0x261751=>[_0x261751[0x0]['toLowerCase'](),_0x261751[0x1]]));for(let _0x39137e of[_0x4d3678(0x213),'requesttime',_0x4d3678(0x1eb),_0x4d3678(0x21d),_0x4d3678(0x1e3)]){if(typeof _0x1b07ba[_0x39137e]==_0x4d3678(0x1f1))throw new AnnError(ApiError_1[_0x4d3678(0x1fa)][_0x4d3678(0x1ee)],{'message':_0x4d3678(0x215)+_0x39137e});_0x3ffdab[_0x4d3678(0x1f0)](_0x39137e+'='+_0x1b07ba[_0x39137e]);}_0x1b07ba['requesttime']&&((_0x1b286f=_0x1b07ba[_0x4d3678(0x1f3)])===null||_0x1b286f===void 0x0?void 0x0:_0x1b286f[_0x4d3678(0x1f8)])==0xa&&(_0x1b07ba[_0x4d3678(0x1f3)]=_0x1b07ba[_0x4d3678(0x1f3)]*0x3e8);if(this['config'][_0x4d3678(0x20f)]&&Date[_0x4d3678(0x21a)]()-Math[_0x4d3678(0x220)](_0x1b07ba[_0x4d3678(0x1f3)])>this['config'][_0x4d3678(0x20f)])throw new AnnError(ApiError_1['ApiError'][_0x4d3678(0x225)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x1b07ba[_0x4d3678(0x1f3)],'timestamp':Date['now']()});if((((_0x189da=this['config'][_0x4d3678(0x20b)][_0x1b07ba['device']])===null||_0x189da===void 0x0?void 0x0:_0x189da[_0x4d3678(0x21c)])||0x0)>0x0&&Date[_0x4d3678(0x21a)]()-Math[_0x4d3678(0x220)](_0x1b07ba[_0x4d3678(0x21d)])>this[_0x4d3678(0x222)][_0x4d3678(0x20b)][_0x1b07ba['device']][_0x4d3678(0x21c)])throw new AnnError(ApiError_1[_0x4d3678(0x1fa)][_0x4d3678(0x1fd)]);if(!this[_0x4d3678(0x222)][_0x4d3678(0x20b)][_0x1b07ba[_0x4d3678(0x213)]]||!this[_0x4d3678(0x222)]['devices'][_0x1b07ba[_0x4d3678(0x213)]][_0x4d3678(0x1fc)]||!this[_0x4d3678(0x222)][_0x4d3678(0x20b)][_0x1b07ba['device']][_0x4d3678(0x1e3)])throw new AnnError(ApiError_1[_0x4d3678(0x1fa)][_0x4d3678(0x21b)]);if(_0x1b07ba[_0x4d3678(0x1eb)]&&_0x1b07ba[_0x4d3678(0x1e3)]!=this['checkcode'](_0x1b07ba['token'],_0x1b07ba['device'],_0x1b07ba[_0x4d3678(0x21d)]))throw new AnnError(ApiError_1[_0x4d3678(0x1fa)][_0x4d3678(0x206)]);return _0x3ffdab[_0x4d3678(0x1f0)](_0x4d3678(0x201)+this[_0x4d3678(0x222)][_0x4d3678(0x20b)][_0x1b07ba[_0x4d3678(0x213)]]['secret']),(0x0,crypto_js_1['MD5'])(_0x3ffdab[_0x4d3678(0x211)]()[_0x4d3678(0x221)](''))[_0x4d3678(0x1e5)]();}[a11_0x380267(0x1e3)](_0x4e5dc1,_0x120542,_0x5500c5=Date[a11_0x380267(0x21a)]()){var _0x441d76=a11_0x380267,_0xe7b996,_0x40e174,_0x1b8bb7;if(!((_0xe7b996=this[_0x441d76(0x222)])===null||_0xe7b996===void 0x0?void 0x0:_0xe7b996[_0x441d76(0x20b)][_0x120542])||!((_0x1b8bb7=(_0x40e174=this['config'])===null||_0x40e174===void 0x0?void 0x0:_0x40e174[_0x441d76(0x20b)][_0x120542])===null||_0x1b8bb7===void 0x0?void 0x0:_0x1b8bb7[_0x441d76(0x1e3)]))throw new AnnError(ApiError_1[_0x441d76(0x1fa)][_0x441d76(0x21b)]);return(0x0,crypto_js_1[_0x441d76(0x203)])(''+_0x4e5dc1+(0x0,crypto_js_1[_0x441d76(0x203)])(''+_0x5500c5+(''+this['config'][_0x441d76(0x20b)][_0x120542]['checkcode']))[_0x441d76(0x1e5)]())[_0x441d76(0x1e5)]();}[a11_0x380267(0x1ff)](_0x5a1a41={}){var _0x20e9a1=a11_0x380267;const _0x13d726=Object[_0x20e9a1(0x223)](Object['entries'](_0x5a1a41)['map'](_0x568f61=>[_0x568f61[0x0][_0x20e9a1(0x209)](),_0x568f61[0x1]]));if(!(_0x13d726===null||_0x13d726===void 0x0?void 0x0:_0x13d726['signature']))throw new AnnError(ApiError_1[_0x20e9a1(0x1fa)][_0x20e9a1(0x1ee)],{'message':_0x20e9a1(0x1ef)});if((_0x13d726===null||_0x13d726===void 0x0?void 0x0:_0x13d726[_0x20e9a1(0x1f4)])!=this[_0x20e9a1(0x1e7)](_0x13d726))throw new AnnError(ApiError_1['ApiError'][_0x20e9a1(0x218)]);return!![];}};__decorate([(0x0,core_1['Config'])(a11_0x380267(0x204)),__metadata(a11_0x380267(0x1f9),Object)],ApiService['prototype'],a11_0x380267(0x222),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a11_0x380267(0x20c)])(core_1[a11_0x380267(0x1f2)][a11_0x380267(0x21e)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a12_0xc2f8(_0x49e3a2,_0x2f9163){const _0x4f0a85=a12_0x25db();return a12_0xc2f8=function(_0x23f4cc,_0xbb5ee0){_0x23f4cc=_0x23f4cc-0xe9;let _0x25db49=_0x4f0a85[_0x23f4cc];return _0x25db49;},a12_0xc2f8(_0x49e3a2,_0x2f9163);}const a12_0x2195c0=a12_0xc2f8;(function(_0x310c3f,_0x2c4384){const _0x393fe4=a12_0xc2f8,_0xab444b=_0x310c3f();while(!![]){try{const _0x5a1357=-parseInt(_0x393fe4(0xf5))/0x1*(-parseInt(_0x393fe4(0x127))/0x2)+parseInt(_0x393fe4(0x12a))/0x3+parseInt(_0x393fe4(0x12d))/0x4+parseInt(_0x393fe4(0xeb))/0x5*(parseInt(_0x393fe4(0xfd))/0x6)+parseInt(_0x393fe4(0xea))/0x7+-parseInt(_0x393fe4(0x107))/0x8+-parseInt(_0x393fe4(0xf0))/0x9*(parseInt(_0x393fe4(0x117))/0xa);if(_0x5a1357===_0x2c4384)break;else _0xab444b['push'](_0xab444b['shift']());}catch(_0x3901d8){_0xab444b['push'](_0xab444b['shift']());}}}(a12_0x25db,0x58760));const a12_0xbb5ee0=(function(){let _0x1de1c7=!![];return function(_0x23fa96,_0x552107){const _0x2d9e46=_0x1de1c7?function(){const _0x54b61b=a12_0xc2f8;if(_0x552107){const _0x2b03e7=_0x552107[_0x54b61b(0x10e)](_0x23fa96,arguments);return _0x552107=null,_0x2b03e7;}}:function(){};return _0x1de1c7=![],_0x2d9e46;};}()),a12_0x23f4cc=a12_0xbb5ee0(this,function(){const _0x4706b1=a12_0xc2f8;return a12_0x23f4cc['toString']()[_0x4706b1(0x129)](_0x4706b1(0x105))[_0x4706b1(0x137)]()[_0x4706b1(0xfe)](a12_0x23f4cc)[_0x4706b1(0x129)](_0x4706b1(0x105));});a12_0x23f4cc();'use strict';var __decorate=this&&this['__decorate']||function(_0x338861,_0x3ae628,_0x132c6a,_0x436c50){const _0x55183d=a12_0xc2f8;var _0x3172b8=arguments[_0x55183d(0x11f)],_0x127dbe=_0x3172b8<0x3?_0x3ae628:_0x436c50===null?_0x436c50=Object[_0x55183d(0xf3)](_0x3ae628,_0x132c6a):_0x436c50,_0x2abf29;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x55183d(0x118))_0x127dbe=Reflect[_0x55183d(0x10d)](_0x338861,_0x3ae628,_0x132c6a,_0x436c50);else{for(var _0x2ecccb=_0x338861['length']-0x1;_0x2ecccb>=0x0;_0x2ecccb--)if(_0x2abf29=_0x338861[_0x2ecccb])_0x127dbe=(_0x3172b8<0x3?_0x2abf29(_0x127dbe):_0x3172b8>0x3?_0x2abf29(_0x3ae628,_0x132c6a,_0x127dbe):_0x2abf29(_0x3ae628,_0x132c6a))||_0x127dbe;}return _0x3172b8>0x3&&_0x127dbe&&Object[_0x55183d(0x131)](_0x3ae628,_0x132c6a,_0x127dbe),_0x127dbe;},__metadata=this&&this['__metadata']||function(_0x15baa5,_0x456dd3){const _0x8c877d=a12_0xc2f8;if(typeof Reflect===_0x8c877d(0x11e)&&typeof Reflect[_0x8c877d(0xff)]===_0x8c877d(0x118))return Reflect[_0x8c877d(0xff)](_0x15baa5,_0x456dd3);},__param=this&&this[a12_0x2195c0(0x122)]||function(_0x30a903,_0x43b46b){return function(_0x287078,_0x1f43d5){_0x43b46b(_0x287078,_0x1f43d5,_0x30a903);};};function a12_0x25db(){const _0x10cf18=['method','substring','object','length','ApitestStaticController','content-type','__param','routes','Singleton','summary','../../public/index.html','20VtTpZp','config','search','665643gSjVPB','apitestmodule','stringify','2508092KujbXc','apidoc','design:type','replace','defineProperty','Get','set','Inject','/index.html','url','toString','ApitestService','977221ASRZbx','475BTWuSt','/apiteststatic/','Request','module','@midwayjs/core','9SbKpvg','.js','design:paramtypes','getOwnPropertyDescriptor','join','12689IxOaKJ','public,\x20max-age=604800','Scope','apitesthtml','__devices__','request','readFileSync','extname','15684QigfNu','constructor','metadata','route','path','../helper/getRoutes','/apiteststatic/*','/apitest','(((.+)+)+)+$','Environment','3963504DGASeQ','existsSync','apitest','anncicapi','filepath','/apitest-:module','decorate','apply','../../public/','__esModule','design:returntype','application/javascript;\x20charset=utf-8','utf-8','ScopeEnum','push','Controller','5059530yljpfm','function','apiteststatic','ctx','prototype'];a12_0x25db=function(){return _0x10cf18;};return a12_0x25db();}Object[a12_0x2195c0(0x131)](exports,a12_0x2195c0(0x110),{'value':!![]}),exports[a12_0x2195c0(0x120)]=exports[a12_0x2195c0(0xe9)]=void 0x0;const path_1=require(a12_0x2195c0(0x101)),fs_1=require('fs'),core_1=require(a12_0x2195c0(0xef)),core_2=require(a12_0x2195c0(0xef)),core_3=require(a12_0x2195c0(0xef)),getRoutes_1=require(a12_0x2195c0(0x102));let ApitestService=class ApitestService{async[a12_0x2195c0(0x12e)](_0x474005){const _0x2708c9=a12_0x2195c0,_0x106d3d=(0x0,getRoutes_1['getRoutes'])(_0x474005),_0x4eb210=[];for(let _0x33636b in _0x106d3d){for(let _0x6808c7 in _0x106d3d[_0x33636b][_0x2708c9(0x123)]){let _0x57784e=_0x106d3d[_0x33636b][_0x2708c9(0x123)][_0x6808c7],_0x1915b4=[];for(let _0x19ae66 in _0x57784e['request']){_0x1915b4[_0x2708c9(0x115)](_0x57784e[_0x2708c9(0xfa)][_0x19ae66]);}_0x4eb210[_0x2708c9(0x115)]({'title':_0x106d3d[_0x33636b][_0x2708c9(0x125)]+':'+_0x57784e[_0x2708c9(0x125)],'prefix':_0x106d3d[_0x33636b]['prefix'],'router':_0x57784e[_0x2708c9(0x100)],'method':_0x57784e[_0x2708c9(0x11c)],'describe':_0x57784e['description']||'','filepath':_0x106d3d[_0x33636b]['filepath']||'','request':_0x1915b4});}}const _0x137bb8=(0x0,path_1[_0x2708c9(0xf4)])(__dirname,_0x2708c9(0x126));return(0x0,fs_1[_0x2708c9(0xfb)])(_0x137bb8,{'encoding':_0x2708c9(0x113)})[_0x2708c9(0x130)](/__res__/g,_0x2708c9(0xec))[_0x2708c9(0x130)]('__apiList__',JSON[_0x2708c9(0x12c)](_0x4eb210))['replace'](_0x2708c9(0xf9),JSON[_0x2708c9(0x12c)](this[_0x2708c9(0x128)]['devices']));}};__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata(a12_0x2195c0(0x12f),Object)],ApitestService[a12_0x2195c0(0x11b)],a12_0x2195c0(0x128),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a12_0x2195c0(0x109)),(0x0,core_3['Scope'])(core_3[a12_0x2195c0(0x114)][a12_0x2195c0(0x124)])],ApitestService),exports[a12_0x2195c0(0xe9)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x2195c0(0xf8)](){const _0x4873be=a12_0x2195c0;if(this['apitest']){const _0x56f4e7={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x56f4e7['filepath']=!![]),await this[_0x4873be(0xe9)][_0x4873be(0x12e)](_0x56f4e7);}return'';}async[a12_0x2195c0(0x12b)](_0x2aca30){const _0x224ce9=a12_0x2195c0;if(this[_0x224ce9(0x109)]){const _0x4d0672={'module':_0x2aca30};return this[_0x224ce9(0x106)]['isDevelopmentEnvironment']()&&(_0x4d0672[_0x224ce9(0x10b)]=!![]),await this[_0x224ce9(0xe9)][_0x224ce9(0x12e)](_0x4d0672);}return'';}async['apiteststatic'](){const _0x4ce0fe=a12_0x2195c0;if((0x0,path_1[_0x4ce0fe(0xfc)])(this['ctx'][_0x4ce0fe(0xfa)][_0x4ce0fe(0x136)])){var _0x2a1803=(0x0,path_1[_0x4ce0fe(0xf4)])(__dirname,_0x4ce0fe(0x10f)+this[_0x4ce0fe(0x11a)][_0x4ce0fe(0xfa)]['url'][_0x4ce0fe(0x130)](_0x4ce0fe(0xec),'/'));if(_0x2a1803[_0x4ce0fe(0x11d)](_0x2a1803[_0x4ce0fe(0x11f)]-0xb)!=_0x4ce0fe(0x135)){this[_0x4ce0fe(0x11a)][_0x4ce0fe(0x133)]('cache-control',_0x4ce0fe(0xf6));if((0x0,path_1[_0x4ce0fe(0xfc)])(this['ctx']['request'][_0x4ce0fe(0x136)])==_0x4ce0fe(0xf1))this[_0x4ce0fe(0x11a)][_0x4ce0fe(0x133)](_0x4ce0fe(0x121),_0x4ce0fe(0x112));else(0x0,path_1[_0x4ce0fe(0xfc)])(this['ctx'][_0x4ce0fe(0xfa)][_0x4ce0fe(0x136)])=='.css'&&this['ctx'][_0x4ce0fe(0x133)](_0x4ce0fe(0x121),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x4ce0fe(0x108)])(_0x2a1803)&&(0x0,fs_1[_0x4ce0fe(0xfb)])(_0x2a1803,{'encoding':_0x4ce0fe(0x113)});}}return'';}};__decorate([(0x0,core_3[a12_0x2195c0(0x134)])(),__metadata('design:type',Object)],ApitestStaticController[a12_0x2195c0(0x11b)],'ctx',void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x2195c0(0x12f),core_1['MidwayEnvironmentService'])],ApitestStaticController['prototype'],a12_0x2195c0(0x106),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x2195c0(0x12f),ApitestService)],ApitestStaticController[a12_0x2195c0(0x11b)],a12_0x2195c0(0xe9),void 0x0),__decorate([(0x0,core_3['Config'])('apitest'),__metadata(a12_0x2195c0(0x12f),Boolean)],ApitestStaticController[a12_0x2195c0(0x11b)],a12_0x2195c0(0x109),void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x2195c0(0x10a)),__metadata(a12_0x2195c0(0x12f),Object)],ApitestStaticController[a12_0x2195c0(0x11b)],a12_0x2195c0(0x128),void 0x0),__decorate([(0x0,core_2[a12_0x2195c0(0x132)])(a12_0x2195c0(0x104)),__metadata(a12_0x2195c0(0x12f),Function),__metadata('design:paramtypes',[]),__metadata(a12_0x2195c0(0x111),Promise)],ApitestStaticController[a12_0x2195c0(0x11b)],a12_0x2195c0(0xf8),null),__decorate([(0x0,core_2['Get'])(a12_0x2195c0(0x10c)),__param(0x0,(0x0,core_2['Param'])(a12_0x2195c0(0xee))),__metadata(a12_0x2195c0(0x12f),Function),__metadata(a12_0x2195c0(0xf2),[String]),__metadata(a12_0x2195c0(0x111),Promise)],ApitestStaticController[a12_0x2195c0(0x11b)],'apitestmodule',null),__decorate([(0x0,core_2['Get'])(a12_0x2195c0(0x103)),__metadata(a12_0x2195c0(0x12f),Function),__metadata(a12_0x2195c0(0xf2),[]),__metadata(a12_0x2195c0(0x111),Promise)],ApitestStaticController[a12_0x2195c0(0x11b)],a12_0x2195c0(0x119),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x2195c0(0x116)])('/'),(0x0,core_3[a12_0x2195c0(0xf7)])(core_3['ScopeEnum'][a12_0x2195c0(0xed)])],ApitestStaticController),exports[a12_0x2195c0(0x120)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x2141(){const _0x50ad05=['export','getWorksheet','log','rowCount','readFile','values','1256524RYtqaf','getRow','decorate','App','69HWXhzy','replace','parse','\x20is\x20read\x20fail','length','design:type','1979840RRgnru','getCell','object','search','col','Singleton','27080oSePVB','Provide','apply','toString','Api\x20Excel\x20Error:\x20','eachCell','keys','koa-send','isNumber','value','/public/xlsx/','header','startsWith','substring','addRow','YYYY/MM/DD','handler','exceljs','mkdirSync','function','6kLqwjq','26990WYZiRm','prototype','metadata','415542JVKjye','push','defineProperty','worksheets','getAppDir','app','endsWith','xlsx','format','ExcelService','model','3123iyiFcZ','key','.xlsx','Workbook','1827119qXEicP','addWorksheet','__metadata','Sheet\x201','1575000UMsNtT','ScopeEnum','frozen','(((.+)+)+)+$'];a13_0x2141=function(){return _0x50ad05;};return a13_0x2141();}const a13_0x7689f2=a13_0x52e7;(function(_0x259c5b,_0x1b8742){const _0x4991eb=a13_0x52e7,_0x8b5b74=_0x259c5b();while(!![]){try{const _0x5798fd=parseInt(_0x4991eb(0x179))/0x1+-parseInt(_0x4991eb(0x1a6))/0x2*(-parseInt(_0x4991eb(0x19a))/0x3)+-parseInt(_0x4991eb(0x196))/0x4+parseInt(_0x4991eb(0x18c))/0x5+parseInt(_0x4991eb(0x175))/0x6*(parseInt(_0x4991eb(0x188))/0x7)+parseInt(_0x4991eb(0x1a0))/0x8+parseInt(_0x4991eb(0x184))/0x9*(-parseInt(_0x4991eb(0x176))/0xa);if(_0x5798fd===_0x1b8742)break;else _0x8b5b74['push'](_0x8b5b74['shift']());}catch(_0x504c17){_0x8b5b74['push'](_0x8b5b74['shift']());}}}(a13_0x2141,0x492ff));const a13_0x1c762b=(function(){let _0x1be667=!![];return function(_0x2b36a9,_0x410f31){const _0x3987b9=_0x1be667?function(){const _0x26a539=a13_0x52e7;if(_0x410f31){const _0x33cf7c=_0x410f31[_0x26a539(0x1a8)](_0x2b36a9,arguments);return _0x410f31=null,_0x33cf7c;}}:function(){};return _0x1be667=![],_0x3987b9;};}()),a13_0x1fe3c1=a13_0x1c762b(this,function(){const _0x3e9208=a13_0x52e7;return a13_0x1fe3c1['toString']()[_0x3e9208(0x1a3)]('(((.+)+)+)+$')['toString']()['constructor'](a13_0x1fe3c1)[_0x3e9208(0x1a3)](_0x3e9208(0x18f));});a13_0x1fe3c1();function a13_0x52e7(_0x4a42d8,_0x5b1db1){const _0x333aad=a13_0x2141();return a13_0x52e7=function(_0x1fe3c1,_0x1c762b){_0x1fe3c1=_0x1fe3c1-0x175;let _0x2141c7=_0x333aad[_0x1fe3c1];return _0x2141c7;},a13_0x52e7(_0x4a42d8,_0x5b1db1);}'use strict';var __decorate=this&&this['__decorate']||function(_0x173ce3,_0x337462,_0x3fa141,_0x57d020){const _0xd7f258=a13_0x52e7;var _0x121692=arguments['length'],_0x105be9=_0x121692<0x3?_0x337462:_0x57d020===null?_0x57d020=Object['getOwnPropertyDescriptor'](_0x337462,_0x3fa141):_0x57d020,_0x32d761;if(typeof Reflect===_0xd7f258(0x1a2)&&typeof Reflect[_0xd7f258(0x198)]===_0xd7f258(0x1b9))_0x105be9=Reflect['decorate'](_0x173ce3,_0x337462,_0x3fa141,_0x57d020);else{for(var _0x5683ea=_0x173ce3[_0xd7f258(0x19e)]-0x1;_0x5683ea>=0x0;_0x5683ea--)if(_0x32d761=_0x173ce3[_0x5683ea])_0x105be9=(_0x121692<0x3?_0x32d761(_0x105be9):_0x121692>0x3?_0x32d761(_0x337462,_0x3fa141,_0x105be9):_0x32d761(_0x337462,_0x3fa141))||_0x105be9;}return _0x121692>0x3&&_0x105be9&&Object['defineProperty'](_0x337462,_0x3fa141,_0x105be9),_0x105be9;},__metadata=this&&this[a13_0x7689f2(0x18a)]||function(_0x12cd1a,_0x48ccb8){const _0x2b2f17=a13_0x7689f2;if(typeof Reflect===_0x2b2f17(0x1a2)&&typeof Reflect[_0x2b2f17(0x178)]===_0x2b2f17(0x1b9))return Reflect[_0x2b2f17(0x178)](_0x12cd1a,_0x48ccb8);};Object[a13_0x7689f2(0x17b)](exports,'__esModule',{'value':!![]}),exports[a13_0x7689f2(0x182)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x7689f2(0x1b7)),koasend=require(a13_0x7689f2(0x1ad)),core_1=require('@midwayjs/core');let ExcelService=class ExcelService{async[a13_0x7689f2(0x19c)](_0x543217,_0x4bfdbe,_0x3e3ba1=[0x0]){const _0x58278f=a13_0x7689f2;var _0x5e9144,_0x195884;const _0x1c5b90=new exceljs[(_0x58278f(0x187))](),_0x396afb=[];let _0x1307cc=_0x543217[_0x58278f(0x19b)](/(\\|\/)/g,'/')[_0x58278f(0x19b)](/\/{2,}/g,'/');!(_0x1307cc===null||_0x1307cc===void 0x0?void 0x0:_0x1307cc[_0x58278f(0x1b2)]('/'))&&(_0x1307cc=this['app']['getAppDir']()+'/'+_0x1307cc);try{await _0x1c5b90['xlsx'][_0x58278f(0x194)](_0x1307cc);}catch(_0x291b2a){return console[_0x58278f(0x192)](_0x58278f(0x1aa)+_0x1307cc+_0x58278f(0x19d)),_0x396afb;}for(const _0x21239e of _0x3e3ba1){const _0x4c8c1a=lodash[_0x58278f(0x1ae)](_0x21239e)?((_0x5e9144=_0x1c5b90[_0x58278f(0x17c)])===null||_0x5e9144===void 0x0?void 0x0:_0x5e9144[_0x21239e])||undefined:_0x1c5b90[_0x58278f(0x191)](_0x21239e);if(_0x4c8c1a){var _0x3218cb=0x1;const _0x12126f=_0x4c8c1a[_0x58278f(0x197)](0x1),_0x32fbe6=await new Promise(_0x379c19=>{const _0x4b0c27=_0x58278f,_0x288c39={};_0x12126f[_0x4b0c27(0x1ab)]((_0xfe3f39,_0x30de9f)=>{const _0x4fbb5a=_0x4b0c27;for(const _0x265c9c of _0x4bfdbe){if(_0xfe3f39[_0x4fbb5a(0x1af)]==_0x265c9c[_0x4fbb5a(0x1b1)])_0x3218cb=0x2,_0x288c39[_0x265c9c['key']]={'header':_0xfe3f39['col'],'handler':_0x265c9c[_0x4fbb5a(0x1b6)]};else{if(!_0x288c39[_0x265c9c[_0x4fbb5a(0x185)]])try{const _0x5b4630=_0x12126f&&_0x12126f[_0x4fbb5a(0x1a1)](_0x265c9c[_0x4fbb5a(0x1b1)]);_0x5b4630&&(_0x288c39[_0x265c9c[_0x4fbb5a(0x185)]]={'header':_0x5b4630[_0x4fbb5a(0x1a4)],'handler':_0x265c9c[_0x4fbb5a(0x1b6)]});}catch{}}}_0x12126f['cellCount']==_0x30de9f&&_0x379c19(_0x288c39);});});for(const _0x575393 of _0x4c8c1a['findRows'](_0x3218cb,_0x4c8c1a[_0x58278f(0x193)])){const _0x1da338={};for(const _0x1830b6 in _0x32fbe6){if(_0x32fbe6[_0x1830b6][_0x58278f(0x1b1)]){const _0x42fc73=_0x575393&&_0x575393['getCell'](_0x32fbe6[_0x1830b6]['header']);typeof((_0x195884=_0x32fbe6[_0x1830b6])===null||_0x195884===void 0x0?void 0x0:_0x195884[_0x58278f(0x1b6)])==_0x58278f(0x1b9)?_0x1da338[_0x1830b6]=await _0x32fbe6[_0x1830b6][_0x58278f(0x1b6)](lodash['set']({},_0x1830b6,(_0x42fc73===null||_0x42fc73===void 0x0?void 0x0:_0x42fc73['toString']())||''),_0x42fc73[_0x58278f(0x183)]):_0x1da338[_0x1830b6]=(_0x42fc73===null||_0x42fc73===void 0x0?void 0x0:_0x42fc73[_0x58278f(0x1a9)]())||'';}}Object[_0x58278f(0x1ac)](_0x1da338)[_0x58278f(0x19e)]>0x0&&Object[_0x58278f(0x195)](_0x1da338)['filter'](_0x59a0ff=>_0x59a0ff!=='')[_0x58278f(0x19e)]>0x0&&_0x396afb[_0x58278f(0x17a)](_0x1da338);}}}return _0x396afb;}async[a13_0x7689f2(0x190)](_0x2e7b3c,_0x139192,_0x5eafca,_0x480156){const _0x28301a=a13_0x7689f2;var _0x40f015,_0x346d8d;const _0x24f9eb=new exceljs[(_0x28301a(0x187))](),_0x2ea18d={},_0x424c16=[],_0x454ae5=_0x24f9eb[_0x28301a(0x189)](_0x28301a(0x18b),{'views':[{'state':_0x28301a(0x18e),'xSplit':0x1}]});for(const _0x3e611f in _0x139192){_0x2ea18d[_0x139192[_0x3e611f][_0x28301a(0x185)]]=_0x139192[_0x3e611f][_0x28301a(0x1b1)],_0x424c16[_0x28301a(0x17a)]({'header':_0x139192[_0x3e611f]['header'],'key':(_0x40f015=_0x139192[_0x3e611f])===null||_0x40f015===void 0x0?void 0x0:_0x40f015[_0x28301a(0x185)][_0x28301a(0x19b)](/\./g,'_')});}_0x454ae5['columns']=_0x424c16;for(const _0x1d9cee of _0x5eafca){const _0x4a3f70={};for(const _0x120c01 in _0x139192){typeof((_0x346d8d=_0x139192[_0x120c01])===null||_0x346d8d===void 0x0?void 0x0:_0x346d8d['handler'])==_0x28301a(0x1b9)?_0x4a3f70[_0x139192[_0x120c01][_0x28301a(0x185)][_0x28301a(0x19b)](/\./g,'_')]=await _0x139192[_0x120c01][_0x28301a(0x1b6)](_0x1d9cee):_0x4a3f70[_0x139192[_0x120c01][_0x28301a(0x185)][_0x28301a(0x19b)](/\./g,'_')]=lodash['get'](_0x1d9cee,_0x139192[_0x120c01][_0x28301a(0x185)],'');}_0x454ae5[_0x28301a(0x1b4)](_0x4a3f70);}let _0x44f64b='';const _0x520383=_0x2e7b3c+'-'+lodash['random'](0x186a0,0xf423f)+_0x28301a(0x186);if(_0x480156&&_0x480156[_0x28301a(0x1b2)]('/'))_0x44f64b=''+_0x480156;else _0x480156&&!_0x480156[_0x28301a(0x1b2)]('/')&&!_0x480156[_0x28301a(0x1b2)]('\x5c')?_0x44f64b=this['app']['getAppDir']()+'/'+_0x480156:_0x44f64b=this[_0x28301a(0x17e)][_0x28301a(0x17d)]()+_0x28301a(0x1b0)+dayjs()[_0x28301a(0x181)](_0x28301a(0x1b5));return(_0x44f64b[_0x28301a(0x17f)]('/')||_0x44f64b[_0x28301a(0x17f)]('\x5c'))&&(_0x44f64b=_0x44f64b[_0x28301a(0x1b3)](0x0,_0x44f64b['length']-0x1)),_0x44f64b=_0x44f64b[_0x28301a(0x19b)](/(\\|\/)/g,'/')[_0x28301a(0x19b)](/\/{2,}/g,'/'),!fs['existsSync'](_0x44f64b)&&fs[_0x28301a(0x1b8)](_0x44f64b,{'recursive':!![]}),await _0x24f9eb[_0x28301a(0x180)]['writeFile']((_0x44f64b+'/'+_0x520383)[_0x28301a(0x19b)](/(\\|\/)/g,'/')[_0x28301a(0x19b)](/\/{2,}/g,'/')),{'filename':_0x520383,'filepath':(_0x44f64b[_0x28301a(0x1b3)]((''+this[_0x28301a(0x17e)][_0x28301a(0x17d)]())['length'])+'/'+_0x520383)[_0x28301a(0x19b)](/(\\|\/)/g,'/')[_0x28301a(0x19b)](/\/{2,}/g,'/')};}async['download'](_0x57ea7a,_0x1aac17){return await koasend(_0x57ea7a,''+_0x1aac17);}};__decorate([(0x0,core_1[a13_0x7689f2(0x199)])(),__metadata(a13_0x7689f2(0x19f),Object)],ExcelService[a13_0x7689f2(0x177)],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x7689f2(0x1a7)])(),(0x0,core_1['Scope'])(core_1[a13_0x7689f2(0x18d)][a13_0x7689f2(0x1a5)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x4810c7=a14_0x2a97;(function(_0x13f8b9,_0xd4fc40){var _0x585b37=a14_0x2a97,_0x3b6ab0=_0x13f8b9();while(!![]){try{var _0x421c27=-parseInt(_0x585b37(0xb7))/0x1*(parseInt(_0x585b37(0xad))/0x2)+parseInt(_0x585b37(0xb4))/0x3+-parseInt(_0x585b37(0xb3))/0x4+parseInt(_0x585b37(0xbb))/0x5+parseInt(_0x585b37(0xab))/0x6*(-parseInt(_0x585b37(0xb9))/0x7)+parseInt(_0x585b37(0xb5))/0x8+-parseInt(_0x585b37(0xb2))/0x9;if(_0x421c27===_0xd4fc40)break;else _0x3b6ab0['push'](_0x3b6ab0['shift']());}catch(_0x2a82b6){_0x3b6ab0['push'](_0x3b6ab0['shift']());}}}(a14_0x1520,0x7b1f3));var a14_0x4c36e5=(function(){var _0x1bbbf5=!![];return function(_0x35f3a0,_0x333f3f){var _0x5a9a45=_0x1bbbf5?function(){var _0x5680cd=a14_0x2a97;if(_0x333f3f){var _0x36d55e=_0x333f3f[_0x5680cd(0xac)](_0x35f3a0,arguments);return _0x333f3f=null,_0x36d55e;}}:function(){};return _0x1bbbf5=![],_0x5a9a45;};}()),a14_0x4526a0=a14_0x4c36e5(this,function(){var _0x22c81d=a14_0x2a97;return a14_0x4526a0[_0x22c81d(0xae)]()[_0x22c81d(0xb1)](_0x22c81d(0xb0))[_0x22c81d(0xae)]()['constructor'](a14_0x4526a0)['search'](_0x22c81d(0xb0));});a14_0x4526a0();'use strict';Object[a14_0x4810c7(0xb8)](exports,'__esModule',{'value':!![]}),exports['AppsConfigTmp']=exports[a14_0x4810c7(0xbc)]=exports[a14_0x4810c7(0xba)]=exports[a14_0x4810c7(0xaa)]=void 0x0,exports[a14_0x4810c7(0xaa)]='anncic-api:action',exports[a14_0x4810c7(0xba)]='anncic-api:action:route',exports[a14_0x4810c7(0xbc)]=a14_0x4810c7(0xaf);class AppsConfigTmp{}function a14_0x2a97(_0x10a212,_0x1d5c3d){var _0x370063=a14_0x1520();return a14_0x2a97=function(_0x4526a0,_0x4c36e5){_0x4526a0=_0x4526a0-0xaa;var _0x15206d=_0x370063[_0x4526a0];return _0x15206d;},a14_0x2a97(_0x10a212,_0x1d5c3d);}function a14_0x1520(){var _0xdae000=['8124IJJMMF','apply','27754iZyEbV','toString','anncic-api:apps:config','(((.+)+)+)+$','search','245511XpSWlu','2916604skBCbQ','2554740VIojnk','3595808ddejlf','AppsConfigTmp','11KnvTtp','defineProperty','2317kZZzKi','ACTION_ROUTE_KEY','2802510IbGDRU','APPSCONFIG_KEY','ACTION_KEY'];a14_0x1520=function(){return _0xdae000;};return a14_0x1520();}exports[a14_0x4810c7(0xb6)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x5c5607=a15_0x47d6;function a15_0x47d6(_0x580a6d,_0x17f397){var _0x76f70f=a15_0x1efb();return a15_0x47d6=function(_0x42448d,_0x179b87){_0x42448d=_0x42448d-0x1bc;var _0x1efbd5=_0x76f70f[_0x42448d];return _0x1efbd5;},a15_0x47d6(_0x580a6d,_0x17f397);}function a15_0x1efb(){var _0x407a41=['185466WFHsfY','1532sleUcm','4noUQiI','design:type','分页数量','2204910SIRzYs','1986gCYLlo','prototype','PageDTO','valid','string','排序方式','是否倒序','第一页为1,第二页为2','apply','(((.+)+)+)+$','metadata','196579NWXStk','6605145SXFgmv','min','decorate','getOwnPropertyDescriptor','45PULZgM','__esModule','number','RuleType','length','constructor','object','integer','search','Rule','2255048WhFtrP','function','44548779uxmLVt','28eoQqHH','toString','_page','defineProperty','trim'];a15_0x1efb=function(){return _0x407a41;};return a15_0x1efb();}(function(_0x352bfb,_0x541ace){var _0x31b900=a15_0x47d6,_0xea99=_0x352bfb();while(!![]){try{var _0x495102=parseInt(_0x31b900(0x1d6))/0x1*(parseInt(_0x31b900(0x1c7))/0x2)+-parseInt(_0x31b900(0x1cb))/0x3*(parseInt(_0x31b900(0x1c6))/0x4)+-parseInt(_0x31b900(0x1d7))/0x5+parseInt(_0x31b900(0x1c5))/0x6+parseInt(_0x31b900(0x1c0))/0x7*(-parseInt(_0x31b900(0x1bd))/0x8)+parseInt(_0x31b900(0x1db))/0x9*(-parseInt(_0x31b900(0x1ca))/0xa)+parseInt(_0x31b900(0x1bf))/0xb;if(_0x495102===_0x541ace)break;else _0xea99['push'](_0xea99['shift']());}catch(_0x3be88d){_0xea99['push'](_0xea99['shift']());}}}(a15_0x1efb,0xa36dc));var a15_0x179b87=(function(){var _0x3964c4=!![];return function(_0x14b3ba,_0x40a5d8){var _0x481c06=_0x3964c4?function(){var _0x5848b6=a15_0x47d6;if(_0x40a5d8){var _0x2ea795=_0x40a5d8[_0x5848b6(0x1d3)](_0x14b3ba,arguments);return _0x40a5d8=null,_0x2ea795;}}:function(){};return _0x3964c4=![],_0x481c06;};}()),a15_0x42448d=a15_0x179b87(this,function(){var _0x183974=a15_0x47d6;return a15_0x42448d[_0x183974(0x1c1)]()[_0x183974(0x1e3)]('(((.+)+)+)+$')[_0x183974(0x1c1)]()[_0x183974(0x1e0)](a15_0x42448d)[_0x183974(0x1e3)](_0x183974(0x1d4));});a15_0x42448d();'use strict';var __decorate=this&&this['__decorate']||function(_0x42d0e7,_0x600874,_0x195e63,_0x30b438){var _0x2460d6=a15_0x47d6,_0x2ad294=arguments[_0x2460d6(0x1df)],_0x3d846f=_0x2ad294<0x3?_0x600874:_0x30b438===null?_0x30b438=Object[_0x2460d6(0x1da)](_0x600874,_0x195e63):_0x30b438,_0x516b1d;if(typeof Reflect===_0x2460d6(0x1e1)&&typeof Reflect['decorate']===_0x2460d6(0x1be))_0x3d846f=Reflect[_0x2460d6(0x1d9)](_0x42d0e7,_0x600874,_0x195e63,_0x30b438);else{for(var _0x2de8be=_0x42d0e7['length']-0x1;_0x2de8be>=0x0;_0x2de8be--)if(_0x516b1d=_0x42d0e7[_0x2de8be])_0x3d846f=(_0x2ad294<0x3?_0x516b1d(_0x3d846f):_0x2ad294>0x3?_0x516b1d(_0x600874,_0x195e63,_0x3d846f):_0x516b1d(_0x600874,_0x195e63))||_0x3d846f;}return _0x2ad294>0x3&&_0x3d846f&&Object[_0x2460d6(0x1c3)](_0x600874,_0x195e63,_0x3d846f),_0x3d846f;},__metadata=this&&this['__metadata']||function(_0x140c98,_0x59b5a8){var _0x49a1e1=a15_0x47d6;if(typeof Reflect===_0x49a1e1(0x1e1)&&typeof Reflect[_0x49a1e1(0x1d5)]===_0x49a1e1(0x1be))return Reflect[_0x49a1e1(0x1d5)](_0x140c98,_0x59b5a8);};Object[a15_0x5c5607(0x1c3)](exports,a15_0x5c5607(0x1dc),{'value':!![]}),exports[a15_0x5c5607(0x1cd)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a15_0x5c5607(0x1de)][a15_0x5c5607(0x1dd)]()[a15_0x5c5607(0x1e2)]()[a15_0x5c5607(0x1d8)](0x1),a15_0x5c5607(0x1d2)),__metadata(a15_0x5c5607(0x1c8),Number)],PageDTO[a15_0x5c5607(0x1cc)],a15_0x5c5607(0x1c2),void 0x0),__decorate([(0x0,validator_1[a15_0x5c5607(0x1bc)])(a15_0x5c5607(0x1c9),validator_1[a15_0x5c5607(0x1de)][a15_0x5c5607(0x1dd)]()[a15_0x5c5607(0x1e2)]()[a15_0x5c5607(0x1d8)](0x1)),__metadata(a15_0x5c5607(0x1c8),Number)],PageDTO[a15_0x5c5607(0x1cc)],'_size',void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x5c5607(0x1d0),validator_1[a15_0x5c5607(0x1de)][a15_0x5c5607(0x1cf)]()[a15_0x5c5607(0x1c4)]()),__metadata(a15_0x5c5607(0x1c8),String)],PageDTO[a15_0x5c5607(0x1cc)],'_order',void 0x0),__decorate([(0x0,validator_1[a15_0x5c5607(0x1bc)])(a15_0x5c5607(0x1d1),validator_1[a15_0x5c5607(0x1de)][a15_0x5c5607(0x1dd)]()['integer']()[a15_0x5c5607(0x1ce)](0x0,0x1),'1:是;0:否'),__metadata(a15_0x5c5607(0x1c8),Number)],PageDTO[a15_0x5c5607(0x1cc)],'_isreverse',void 0x0),exports[a15_0x5c5607(0x1cd)]=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a16_0x1172(_0x3ca7e8,_0x38be71){var _0x27bd16=a16_0x56c7();return a16_0x1172=function(_0x986bdf,_0x557638){_0x986bdf=_0x986bdf-0x125;var _0x56c7bd=_0x27bd16[_0x986bdf];return _0x56c7bd;},a16_0x1172(_0x3ca7e8,_0x38be71);}var a16_0x4f5ae4=a16_0x1172;(function(_0xbaa9bf,_0x2d3a64){var _0x4f29dd=a16_0x1172,_0xbba570=_0xbaa9bf();while(!![]){try{var _0x1735c2=-parseInt(_0x4f29dd(0x12f))/0x1*(-parseInt(_0x4f29dd(0x133))/0x2)+parseInt(_0x4f29dd(0x135))/0x3+-parseInt(_0x4f29dd(0x132))/0x4+parseInt(_0x4f29dd(0x12b))/0x5*(parseInt(_0x4f29dd(0x131))/0x6)+-parseInt(_0x4f29dd(0x134))/0x7+-parseInt(_0x4f29dd(0x128))/0x8+-parseInt(_0x4f29dd(0x129))/0x9*(parseInt(_0x4f29dd(0x12c))/0xa);if(_0x1735c2===_0x2d3a64)break;else _0xbba570['push'](_0xbba570['shift']());}catch(_0x2b0ee3){_0xbba570['push'](_0xbba570['shift']());}}}(a16_0x56c7,0xba09a));var a16_0x557638=(function(){var _0x41e181=!![];return function(_0x574062,_0x2492e3){var _0x253e02=_0x41e181?function(){var _0x5dd691=a16_0x1172;if(_0x2492e3){var _0x44d899=_0x2492e3[_0x5dd691(0x127)](_0x574062,arguments);return _0x2492e3=null,_0x44d899;}}:function(){};return _0x41e181=![],_0x253e02;};}()),a16_0x986bdf=a16_0x557638(this,function(){var _0x16b3e8=a16_0x1172;return a16_0x986bdf[_0x16b3e8(0x126)]()[_0x16b3e8(0x12e)](_0x16b3e8(0x12d))[_0x16b3e8(0x126)]()['constructor'](a16_0x986bdf)[_0x16b3e8(0x12e)](_0x16b3e8(0x12d));});a16_0x986bdf();'use strict';Object['defineProperty'](exports,a16_0x4f5ae4(0x130),{'value':!![]}),exports[a16_0x4f5ae4(0x125)]=exports[a16_0x4f5ae4(0x12a)]=void 0x0,exports[a16_0x4f5ae4(0x12a)]='anncic-api:intercept';class InterceptTargetTmp{}exports[a16_0x4f5ae4(0x125)]=InterceptTargetTmp;function a16_0x56c7(){var _0x3077c6=['apply','5949400mZCMzU','1125SEHFfC','INTERCEPT_KEY','235195qyrOeO','2390jVOyYU','(((.+)+)+)+$','search','37BxSZNa','__esModule','186sbVcWG','1802732ZFSdqc','10124XhTiJl','97440SXTkSB','1063980tMoTPQ','InterceptTargetTmp','toString'];a16_0x56c7=function(){return _0x3077c6;};return a16_0x56c7();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,18 +17,19 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.0.
|
|
21
|
-
"@anncic-api/core": "^2.0.
|
|
22
|
-
"@anncic-api/event": "^2.0.
|
|
23
|
-
"@anncic-api/typeorm": "^2.0.
|
|
24
|
-
"@anncic-api/validator": "^2.0.
|
|
20
|
+
"@anncic-api/cache": "^2.0.3",
|
|
21
|
+
"@anncic-api/core": "^2.0.3",
|
|
22
|
+
"@anncic-api/event": "^2.0.3",
|
|
23
|
+
"@anncic-api/typeorm": "^2.0.3",
|
|
24
|
+
"@anncic-api/validator": "^2.0.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.0.
|
|
30
|
+
"anncic-apihelper": "^2.0.3",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
|
+
"image-size": "^1.0.2",
|
|
32
33
|
"koa-send": "^5.0.1"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
@@ -37,5 +38,5 @@
|
|
|
37
38
|
"javascript-obfuscator": "^4.0.0",
|
|
38
39
|
"typescript": "^4.8.4"
|
|
39
40
|
},
|
|
40
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "859ce71093651dd0e1e22451c9410e4328fe23ba"
|
|
41
42
|
}
|