anncic-api 2.0.11 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x1b1b05=a0_0x526a;function a0_0x526a(_0x213951,_0x3aeab8){var _0x59c964=a0_0x3603();return a0_0x526a=function(_0x50608b,_0x167245){_0x50608b=_0x50608b-0x151;var _0x36039f=_0x59c964[_0x50608b];return _0x36039f;},a0_0x526a(_0x213951,_0x3aeab8);}function a0_0x3603(){var _0x569d79=['dhauo1234420123gg3234901','default','6496840Amgtdl','zhiulanuiy7892387985hnoi','appDir','492306UXHFzu','__esModule','12857110bWsXiM','35082cGtxSn','(((.+)+)+)+$','22328922uPotoO','20mb','7BaRUgX','545QUGCDj','377934IBTmFp','form','toString','json','apply','2402RxAZkF','24rePFzf','144fJsohb','search','constructor'];a0_0x3603=function(){return _0x569d79;};return a0_0x3603();}(function(_0x24e06d,_0x12722f){var _0x27d504=a0_0x526a,_0x1fbbef=_0x24e06d();while(!![]){try{var _0x461561=-parseInt(_0x27d504(0x153))/0x1*(-parseInt(_0x27d504(0x159))/0x2)+parseInt(_0x27d504(0x154))/0x3*(parseInt(_0x27d504(0x15a))/0x4)+-parseInt(_0x27d504(0x160))/0x5+parseInt(_0x27d504(0x163))/0x6*(-parseInt(_0x27d504(0x152))/0x7)+parseInt(_0x27d504(0x15b))/0x8*(-parseInt(_0x27d504(0x166))/0x9)+-parseInt(_0x27d504(0x165))/0xa+parseInt(_0x27d504(0x168))/0xb;if(_0x461561===_0x12722f)break;else _0x1fbbef['push'](_0x1fbbef['shift']());}catch(_0x47d735){_0x1fbbef['push'](_0x1fbbef['shift']());}}}(a0_0x3603,0xaba2d));var a0_0x167245=(function(){var _0x197c6d=!![];return function(_0x22dd7c,_0x2d4e0a){var _0x3707f6=_0x197c6d?function(){var _0x39b11f=a0_0x526a;if(_0x2d4e0a){var _0x5663ee=_0x2d4e0a[_0x39b11f(0x158)](_0x22dd7c,arguments);return _0x2d4e0a=null,_0x5663ee;}}:function(){};return _0x197c6d=![],_0x3707f6;};}()),a0_0x50608b=a0_0x167245(this,function(){var _0x20bae8=a0_0x526a;return a0_0x50608b[_0x20bae8(0x156)]()[_0x20bae8(0x15c)](_0x20bae8(0x167))[_0x20bae8(0x156)]()[_0x20bae8(0x15d)](a0_0x50608b)['search'](_0x20bae8(0x167));});a0_0x50608b();'use strict';Object['defineProperty'](exports,a0_0x1b1b05(0x164),{'value':!![]}),exports[a0_0x1b1b05(0x15f)]=_0x213343=>{var _0x264d44=a0_0x1b1b05;return{'apitest':!![],'keys':_0x213343['name'],'anncicapi':{'password':_0x264d44(0x161),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x264d44(0x15e)}}},'bodyParser':{'enableTypes':[_0x264d44(0x157),_0x264d44(0x155),'text','xml'],'formLimit':_0x264d44(0x151),'jsonLimit':_0x264d44(0x151),'textLimit':_0x264d44(0x151),'xmlLimit':_0x264d44(0x151)},'upload':{'tmpdir':_0x213343[_0x264d44(0x162)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x4d6932=a1_0x6eed;function a1_0x4465(){var _0x5ed11d=['__esModule','(((.+)+)+)+$','8heZvpZ','25634feixaa','toString','8HVIwSq','search','default','4400905pUNrVE','13xChLpO','2115714iaVYEV','constructor','19894360lpLZRn','418188aFIYmT','2690595gZXPZt','410193rEPDjj'];a1_0x4465=function(){return _0x5ed11d;};return a1_0x4465();}(function(_0x234b88,_0x5aad29){var _0x450b0b=a1_0x6eed,_0x17ccea=_0x234b88();while(!![]){try{var _0x4a9e7a=-parseInt(_0x450b0b(0x1bc))/0x1*(parseInt(_0x450b0b(0x1b6))/0x2)+-parseInt(_0x450b0b(0x1c0))/0x3*(-parseInt(_0x450b0b(0x1b8))/0x4)+-parseInt(_0x450b0b(0x1bb))/0x5+-parseInt(_0x450b0b(0x1bd))/0x6+parseInt(_0x450b0b(0x1b2))/0x7+parseInt(_0x450b0b(0x1b5))/0x8*(-parseInt(_0x450b0b(0x1c1))/0x9)+parseInt(_0x450b0b(0x1bf))/0xa;if(_0x4a9e7a===_0x5aad29)break;else _0x17ccea['push'](_0x17ccea['shift']());}catch(_0x48af55){_0x17ccea['push'](_0x17ccea['shift']());}}}(a1_0x4465,0x996e3));function a1_0x6eed(_0x2c8fcd,_0x5a5100){var _0x2f8f94=a1_0x4465();return a1_0x6eed=function(_0x1c1cef,_0x57d320){_0x1c1cef=_0x1c1cef-0x1b2;var _0x446599=_0x2f8f94[_0x1c1cef];return _0x446599;},a1_0x6eed(_0x2c8fcd,_0x5a5100);}var a1_0x57d320=(function(){var _0x2e05f5=!![];return function(_0x295de9,_0x4b6069){var _0x55591d=_0x2e05f5?function(){if(_0x4b6069){var _0x2389fc=_0x4b6069['apply'](_0x295de9,arguments);return _0x4b6069=null,_0x2389fc;}}:function(){};return _0x2e05f5=![],_0x55591d;};}()),a1_0x1c1cef=a1_0x57d320(this,function(){var _0x271940=a1_0x6eed;return a1_0x1c1cef[_0x271940(0x1b7)]()[_0x271940(0x1b9)](_0x271940(0x1b4))[_0x271940(0x1b7)]()[_0x271940(0x1be)](a1_0x1c1cef)[_0x271940(0x1b9)](_0x271940(0x1b4));});a1_0x1c1cef();'use strict';Object['defineProperty'](exports,a1_0x4d6932(0x1b3),{'value':!![]}),exports[a1_0x4d6932(0x1ba)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a2_0x4cf6(_0x316116,_0x91769c){const _0x119a25=a2_0x3edb();return a2_0x4cf6=function(_0xe5b3,_0x1097e7){_0xe5b3=_0xe5b3-0xd3;let _0x3edbf2=_0x119a25[_0xe5b3];return _0x3edbf2;},a2_0x4cf6(_0x316116,_0x91769c);}function a2_0x3edb(){const _0x4005bd=['isNull','ApiService','./service/ApiService','method','decorator','Anncic-api\x20static-file\x20:\x20mkdir\x20','getAsync','request','anncic-apihelper','MidwayApplicationManager','checksign','33846417dhZswq','filterConfig','clients','isClass','devices','toLowerCase','ApiError','input','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','metadata','ACTION_ROUTE_KEY','./config/config.production','CustomConfiguration','getConfiguration','isDevelopmentEnvironment','./types/action','REQUEST_OBJ_CTX_KEY','midwayLogger','requestContext','function','match','tmpdir','mkdirSync','getApplications','headers','apply','constructor','MidwayConfigService','target','log','query','1710YpcdhL','getClassMetadata','readdirSync','./types/intercept','Inject','Types','Configuration','defineProperty','8khzccu','anncic-api','2667399IhJCfZ','1728738DxOqLY','__metadata','staticFile','getBaseDir','upload','registerMethodHandler','object','@midwayjs/upload','DEFAULT','isFunction','defaultsDeep','handler','/runtime','getAppDir','undefined','app','@anncic-api/cache','decorate','__decorate','onReady','./config/config.default','anncicapi','handlerActionRoute','INTERCEPT_KEY','checkConfigKeys','assign','length','@midwayjs/core','get','statSync','@anncic-api/typeorm','default','@midwayjs/koa','MidwayDecoratorService','toString','config','application','dirs','@anncic-api/validator','1120596Vcptun','prototype','_matchedRoute','HEADERS_SIGNATURE','intercept','key','isString','string','isArray','getOwnPropertyDescriptor','addObject','keys','./exception/ApiError','dir','isDirectory','existsSync','design:type','(((.+)+)+)+$','context','611626PFEHre','koa','6242285kFYpvG','676aEFDto','@anncic-api/event','device','-log','@midwayjs/i18n','apimit','/apps','search'];a2_0x3edb=function(){return _0x4005bd;};return a2_0x3edb();}const a2_0x1e7b05=a2_0x4cf6;(function(_0x16f615,_0xdca57e){const _0x1660bb=a2_0x4cf6,_0x16ca6d=_0x16f615();while(!![]){try{const _0x17231e=-parseInt(_0x1660bb(0x13d))/0x1+-parseInt(_0x1660bb(0x140))/0x2*(parseInt(_0x1660bb(0xf8))/0x3)+-parseInt(_0x1660bb(0x12a))/0x4+-parseInt(_0x1660bb(0x13f))/0x5+-parseInt(_0x1660bb(0x103))/0x6+-parseInt(_0x1660bb(0x102))/0x7+-parseInt(_0x1660bb(0x100))/0x8*(-parseInt(_0x1660bb(0xd9))/0x9);if(_0x17231e===_0xdca57e)break;else _0x16ca6d['push'](_0x16ca6d['shift']());}catch(_0x379ecf){_0x16ca6d['push'](_0x16ca6d['shift']());}}}(a2_0x3edb,0xb9371));const a2_0x1097e7=(function(){let _0x108804=!![];return function(_0x5780b8,_0x1c9f4e){const _0x2805a2=_0x108804?function(){const _0x248d58=a2_0x4cf6;if(_0x1c9f4e){const _0x561791=_0x1c9f4e[_0x248d58(0xf2)](_0x5780b8,arguments);return _0x1c9f4e=null,_0x561791;}}:function(){};return _0x108804=![],_0x2805a2;};}()),a2_0xe5b3=a2_0x1097e7(this,function(){const _0x2a87a8=a2_0x4cf6;return a2_0xe5b3[_0x2a87a8(0x125)]()[_0x2a87a8(0x147)]('(((.+)+)+)+$')[_0x2a87a8(0x125)]()[_0x2a87a8(0xf3)](a2_0xe5b3)[_0x2a87a8(0x147)](_0x2a87a8(0x13b));});a2_0xe5b3();'use strict';var __decorate=this&&this[a2_0x1e7b05(0x115)]||function(_0x46c8e6,_0x27b750,_0xa0073d,_0x250a0e){const _0x87492f=a2_0x1e7b05;var _0x139f36=arguments[_0x87492f(0x11d)],_0x38cfef=_0x139f36<0x3?_0x27b750:_0x250a0e===null?_0x250a0e=Object[_0x87492f(0x133)](_0x27b750,_0xa0073d):_0x250a0e,_0x53c5be;if(typeof Reflect===_0x87492f(0x109)&&typeof Reflect[_0x87492f(0x114)]==='function')_0x38cfef=Reflect[_0x87492f(0x114)](_0x46c8e6,_0x27b750,_0xa0073d,_0x250a0e);else{for(var _0x554115=_0x46c8e6[_0x87492f(0x11d)]-0x1;_0x554115>=0x0;_0x554115--)if(_0x53c5be=_0x46c8e6[_0x554115])_0x38cfef=(_0x139f36<0x3?_0x53c5be(_0x38cfef):_0x139f36>0x3?_0x53c5be(_0x27b750,_0xa0073d,_0x38cfef):_0x53c5be(_0x27b750,_0xa0073d))||_0x38cfef;}return _0x139f36>0x3&&_0x38cfef&&Object['defineProperty'](_0x27b750,_0xa0073d,_0x38cfef),_0x38cfef;},__metadata=this&&this[a2_0x1e7b05(0x104)]||function(_0x40e855,_0x5c80e4){const _0x1771b7=a2_0x1e7b05;if(typeof Reflect===_0x1771b7(0x109)&&typeof Reflect[_0x1771b7(0xe2)]===_0x1771b7(0xec))return Reflect[_0x1771b7(0xe2)](_0x40e855,_0x5c80e4);};Object[a2_0x1e7b05(0xff)](exports,'__esModule',{'value':!![]}),exports[a2_0x1e7b05(0xe5)]=void 0x0;const core_1=require(a2_0x1e7b05(0x11e)),core_2=require(a2_0x1e7b05(0x11e)),ApiError_1=require(a2_0x1e7b05(0x136)),ApiService_1=require(a2_0x1e7b05(0x14a)),action_1=require(a2_0x1e7b05(0xe8)),intercept_1=require(a2_0x1e7b05(0xfb)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x1e7b05(0x123)),i18n=require(a2_0x1e7b05(0x144)),upload=require(a2_0x1e7b05(0x10a)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x1e7b05(0x117)),ConfigProduction=require(a2_0x1e7b05(0xe4)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x1e7b05(0x113)),anncicEvent=require(a2_0x1e7b05(0x141)),anncicTypeorm=require(a2_0x1e7b05(0x121)),anncicValidator=require(a2_0x1e7b05(0x129)),anncicHelper=require(a2_0x1e7b05(0xd6));let CustomConfiguration=class CustomConfiguration{async[a2_0x1e7b05(0x116)](){const _0x2ce9bf=a2_0x1e7b05;await this[_0x2ce9bf(0xda)](),await this['loggerConfig'](),await this[_0x2ce9bf(0x11b)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x1e7b05(0x11b)](){}async[a2_0x1e7b05(0x119)](){const _0x3a4b0a=a2_0x1e7b05,_0x169fc2=(0x0,core_1[_0x3a4b0a(0xf9)])(intercept_1[_0x3a4b0a(0x11a)],intercept_1['InterceptTargetTmp'])||{};this['decorator'][_0x3a4b0a(0x108)](action_1[_0x3a4b0a(0xe3)],_0x158fec=>{const _0x5e9621=_0x3a4b0a,_0x4b826b=_0x158fec[_0x5e9621(0xe2)];return{'before':async _0x233aea=>{const _0x23c785=_0x5e9621;var _0x3e126d,_0x4448d9;const _0xf49d81=(_0x3e126d=_0x233aea===null||_0x233aea===void 0x0?void 0x0:_0x233aea[_0x23c785(0xf5)])===null||_0x3e126d===void 0x0?void 0x0:_0x3e126d[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xf49d81&&(_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b[_0x23c785(0x145)])){if(!this[_0x23c785(0x149)][_0x23c785(0xd8)]((_0x4448d9=_0xf49d81===null||_0xf49d81===void 0x0?void 0x0:_0xf49d81[_0x23c785(0xd5)])===null||_0x4448d9===void 0x0?void 0x0:_0x4448d9[_0x23c785(0xf1)]))throw new AnnError(ApiError_1[_0x23c785(0xdf)][_0x23c785(0x12d)]);}},'around':async _0x33d552=>{const _0x17b63a=_0x5e9621;var _0x3a8ceb,_0x2fb627,_0x985447;const _0x5f03fd=(_0x3a8ceb=_0x33d552===null||_0x33d552===void 0x0?void 0x0:_0x33d552[_0x17b63a(0xf5)])===null||_0x3a8ceb===void 0x0?void 0x0:_0x3a8ceb[core_2[_0x17b63a(0xe9)]];if(_0x5f03fd&&(_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b['apimit'])&&((_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b[_0x17b63a(0x12e)])||typeof(_0x4b826b===null||_0x4b826b===void 0x0?void 0x0:_0x4b826b[_0x17b63a(0x12e)])==_0x17b63a(0x111))){if(((_0x2fb627=_0x5f03fd[_0x17b63a(0xf1)])===null||_0x2fb627===void 0x0?void 0x0:_0x2fb627['device'])&&((_0x985447=_0x169fc2===null||_0x169fc2===void 0x0?void 0x0:_0x169fc2[_0x5f03fd[_0x17b63a(0xf1)][_0x17b63a(0x142)]])===null||_0x985447===void 0x0?void 0x0:_0x985447['length'])>0x0)for(const _0x581981 of _0x169fc2[_0x5f03fd[_0x17b63a(0xf1)]['device']]||[]){if(core_1[_0x17b63a(0xfd)][_0x17b63a(0xdc)](_0x581981)){const _0x5c8b1e=await _0x5f03fd[_0x17b63a(0xeb)][_0x17b63a(0xd4)](_0x581981);typeof(_0x5c8b1e===null||_0x5c8b1e===void 0x0?void 0x0:_0x5c8b1e[_0x17b63a(0xed)])==_0x17b63a(0xec)?await _0x5c8b1e['match'](_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd['method'])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd[_0x17b63a(0x14b)][_0x17b63a(0xde)]()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)]):undefined,_0x4b826b)&&await _0x5c8b1e['handler'](_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x14b)])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd['method'][_0x17b63a(0xde)]()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd['_matchedRoute']):undefined,_0x4b826b):await _0x5c8b1e[_0x17b63a(0x10e)](_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x14b)])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd[_0x17b63a(0x14b)][_0x17b63a(0xde)]()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)]):undefined,_0x4b826b);}else core_1['Types'][_0x17b63a(0x10c)](_0x581981)&&await _0x581981(_0x5f03fd,typeof(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x14b)])==_0x17b63a(0x131)&&(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)])?_0x5f03fd[_0x17b63a(0x14b)]['toLowerCase']()+'@'+(_0x5f03fd===null||_0x5f03fd===void 0x0?void 0x0:_0x5f03fd[_0x17b63a(0x12c)]):undefined,_0x4b826b);}}return await _0x33d552['proceed'](..._0x33d552['args']);},'afterThrow':(_0x50e20b,_0x28e6a1)=>{throw _0x28e6a1;}};});}async['hanlderApplications'](){const _0x2c1002=a2_0x1e7b05;this['application'][_0x2c1002(0xf0)]([_0x2c1002(0x13e)])['forEach'](_0x9ed7e1=>{const _0x15cee3=_0x2c1002;(_0x9ed7e1===null||_0x9ed7e1===void 0x0?void 0x0:_0x9ed7e1[_0x15cee3(0x13c)])&&Object['defineProperties'](_0x9ed7e1[_0x15cee3(0x13c)],{'ok':{'value':function(_0x4ad8d9,_0x418ee3,_0x16ae0d=0x0){return{'code':_0x16ae0d,'data':_0x4ad8d9,'extra':_0x418ee3};}},'input':{'value':function(_0x4c4ca9,_0x50c1ff){const _0x3816de=_0x15cee3;var _0xbeb3d9;const _0x1b8ff1=lodash[_0x3816de(0x10d)]({},this[_0x3816de(0xd5)]['body']||this[_0x3816de(0xd5)][((_0xbeb3d9=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0xbeb3d9===void 0x0?void 0x0:_0xbeb3d9[_0x3816de(0x12f)])||'body']||{},this['request'][_0x3816de(0xf7)]||{});return _0x4c4ca9?lodash[_0x3816de(0x11f)](_0x1b8ff1,_0x4c4ca9,_0x50c1ff):_0x1b8ff1;}},'when':{'value':async function(_0x9779b1,_0x4f4053){const _0x3918d8=_0x15cee3,_0x258801=this['input'](_0x9779b1,null);if(!lodash[_0x3918d8(0x148)](_0x258801))return await _0x4f4053(_0x258801);}},'only':{'value':function(_0x28af9f){const _0x59e81e=_0x15cee3,_0x33895d={};for(let _0x5eb1f4=0x0;_0x5eb1f4<_0x28af9f[_0x59e81e(0x11d)];_0x5eb1f4++){lodash[_0x59e81e(0x132)](_0x28af9f[_0x5eb1f4])&&_0x28af9f[_0x5eb1f4][_0x59e81e(0x11d)]>0x0&&lodash[_0x59e81e(0x130)](_0x28af9f[_0x5eb1f4][0x0])&&(_0x33895d[_0x28af9f[_0x5eb1f4][0x0]]=this[_0x59e81e(0xe0)](_0x28af9f[_0x5eb1f4][0x0],_0x28af9f[_0x5eb1f4][_0x59e81e(0x11d)]>0x1?_0x28af9f[_0x5eb1f4][0x1]:null));}return _0x33895d;}},'koasend':{'value':function(_0x90851,_0x23a768){const _0x195777=_0x15cee3;if(!fs['existsSync'](this[_0x195777(0x112)][_0x195777(0x110)]()+'/'+_0x90851))return'文件不存在';return this['attachment'](_0x23a768||_0x90851),koasend(this,_0x90851);}}});});}async['loggerConfig'](){const _0x32fdab=a2_0x1e7b05;var _0x106c3f,_0x2f2d05;if(fs[_0x32fdab(0x139)](this['app'][_0x32fdab(0x106)]()+_0x32fdab(0x146))&&fs[_0x32fdab(0x120)](this[_0x32fdab(0x112)][_0x32fdab(0x106)]()+'/apps')[_0x32fdab(0x138)]()){const _0xfac59d=this[_0x32fdab(0x126)]['getConfiguration'](),_0x13f791=((_0x106c3f=_0xfac59d===null||_0xfac59d===void 0x0?void 0x0:_0xfac59d[_0x32fdab(0xea)])===null||_0x106c3f===void 0x0?void 0x0:_0x106c3f[_0x32fdab(0xdb)])||{};for(const _0x3260eb of fs[_0x32fdab(0xfa)](this[_0x32fdab(0x112)]['getBaseDir']()+_0x32fdab(0x146))){if(!fs[_0x32fdab(0x120)](this[_0x32fdab(0x112)][_0x32fdab(0x106)]()+'/apps/'+_0x3260eb)[_0x32fdab(0x138)]())continue;if(_0x13f791===null||_0x13f791===void 0x0?void 0x0:_0x13f791[_0x3260eb])continue;_0x13f791[_0x3260eb]=Object[_0x32fdab(0x11c)]({},((_0x2f2d05=_0xfac59d===null||_0xfac59d===void 0x0?void 0x0:_0xfac59d[_0x32fdab(0xea)])===null||_0x2f2d05===void 0x0?void 0x0:_0x2f2d05[_0x32fdab(0x122)])||{'maxSize':'1m','dir':this['app'][_0x32fdab(0x110)]()+_0x32fdab(0x10f)},{'enableJSON':!![],'enableConsole':this['environment'][_0x32fdab(0xe7)](),'fileLogName':_0x3260eb+'.log','dir':this[_0x32fdab(0x112)]['getAppDir']()+'/runtime/apps-'+_0x3260eb+_0x32fdab(0x143)});}Object[_0x32fdab(0x135)](_0x13f791)[_0x32fdab(0x11d)]>0x0&&(!_0xfac59d['midwayLogger']&&(_0xfac59d[_0x32fdab(0xea)]={'default':{'maxSize':'1m','dir':this[_0x32fdab(0x112)][_0x32fdab(0x110)]()+_0x32fdab(0x10f)}}),_0xfac59d[_0x32fdab(0xea)][_0x32fdab(0xdb)]=_0x13f791),this[_0x32fdab(0x126)][_0x32fdab(0x134)](_0xfac59d);}}async['filterConfig'](){const _0x58d2df=a2_0x1e7b05;var _0x4531cb,_0x1bd80c,_0x271283,_0x3ae2cb,_0x7c07c7,_0x488b78;const _0x2a4b7d=this[_0x58d2df(0x126)][_0x58d2df(0xe6)]();((_0x1bd80c=(_0x4531cb=_0x2a4b7d===null||_0x2a4b7d===void 0x0?void 0x0:_0x2a4b7d[_0x58d2df(0x118)])===null||_0x4531cb===void 0x0?void 0x0:_0x4531cb[_0x58d2df(0xdd)])===null||_0x1bd80c===void 0x0?void 0x0:_0x1bd80c[_0x58d2df(0x10b)])&&Object[_0x58d2df(0x135)](_0x2a4b7d[_0x58d2df(0x118)][_0x58d2df(0xdd)])[_0x58d2df(0x11d)]>0x1&&delete _0x2a4b7d['anncicapi'][_0x58d2df(0xdd)][_0x58d2df(0x10b)];if((_0x271283=_0x2a4b7d===null||_0x2a4b7d===void 0x0?void 0x0:_0x2a4b7d[_0x58d2df(0x105)])===null||_0x271283===void 0x0?void 0x0:_0x271283[_0x58d2df(0x128)])for(const _0x53bc1e in _0x2a4b7d[_0x58d2df(0x105)][_0x58d2df(0x128)]){((_0x3ae2cb=_0x2a4b7d[_0x58d2df(0x105)]['dirs'][_0x53bc1e])===null||_0x3ae2cb===void 0x0?void 0x0:_0x3ae2cb[_0x58d2df(0x137)])&&typeof((_0x7c07c7=_0x2a4b7d[_0x58d2df(0x105)]['dirs'][_0x53bc1e])===null||_0x7c07c7===void 0x0?void 0x0:_0x7c07c7[_0x58d2df(0x137)])==_0x58d2df(0x131)&&!fs[_0x58d2df(0x139)](_0x2a4b7d['staticFile']['dirs'][_0x53bc1e][_0x58d2df(0x137)])&&(fs[_0x58d2df(0xef)](_0x2a4b7d[_0x58d2df(0x105)][_0x58d2df(0x128)][_0x53bc1e]['dir'],{'recursive':!![]}),console[_0x58d2df(0xf6)](_0x58d2df(0xd3)+_0x2a4b7d['staticFile'][_0x58d2df(0x128)][_0x53bc1e]['dir']));}((_0x488b78=_0x2a4b7d===null||_0x2a4b7d===void 0x0?void 0x0:_0x2a4b7d['upload'])===null||_0x488b78===void 0x0?void 0x0:_0x488b78[_0x58d2df(0xee)])&&!fs[_0x58d2df(0x139)](_0x2a4b7d[_0x58d2df(0x107)]['tmpdir'])&&(fs[_0x58d2df(0xef)](_0x2a4b7d[_0x58d2df(0x107)]['tmpdir'],{'recursive':!![]}),console[_0x58d2df(0xf6)](_0x58d2df(0xe1)+_0x2a4b7d[_0x58d2df(0x107)]['tmpdir'])),this[_0x58d2df(0x126)][_0x58d2df(0x134)](_0x2a4b7d);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x1e7b05(0x13a),Object)],CustomConfiguration[a2_0x1e7b05(0x12b)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x1e7b05(0xfc)])(),__metadata('design:type',core_2[a2_0x1e7b05(0xf4)])],CustomConfiguration[a2_0x1e7b05(0x12b)],a2_0x1e7b05(0x126),void 0x0),__decorate([(0x0,core_1[a2_0x1e7b05(0xfc)])(),__metadata(a2_0x1e7b05(0x13a),core_2[a2_0x1e7b05(0x124)])],CustomConfiguration['prototype'],a2_0x1e7b05(0x14c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x1e7b05(0x13a),core_2[a2_0x1e7b05(0xd7)])],CustomConfiguration['prototype'],a2_0x1e7b05(0x127),void 0x0),__decorate([(0x0,core_1[a2_0x1e7b05(0xfc)])(),__metadata(a2_0x1e7b05(0x13a),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x1e7b05(0x12b)],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x1e7b05(0x13a),ApiService_1[a2_0x1e7b05(0x149)])],CustomConfiguration['prototype'],a2_0x1e7b05(0x149),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x1e7b05(0xfe)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x1e7b05(0x101),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1e7b05(0xe5)]=CustomConfiguration;
|
|
1
|
+
const a2_0x25c1a6=a2_0x34e5;(function(_0x395dac,_0x156386){const _0x3c69be=a2_0x34e5,_0x39deeb=_0x395dac();while(!![]){try{const _0x356343=parseInt(_0x3c69be(0x1ca))/0x1*(parseInt(_0x3c69be(0x196))/0x2)+-parseInt(_0x3c69be(0x1b2))/0x3+parseInt(_0x3c69be(0x1cc))/0x4*(-parseInt(_0x3c69be(0x199))/0x5)+parseInt(_0x3c69be(0x1e6))/0x6*(-parseInt(_0x3c69be(0x1e2))/0x7)+-parseInt(_0x3c69be(0x188))/0x8+-parseInt(_0x3c69be(0x183))/0x9*(-parseInt(_0x3c69be(0x187))/0xa)+-parseInt(_0x3c69be(0x192))/0xb*(-parseInt(_0x3c69be(0x1d7))/0xc);if(_0x356343===_0x156386)break;else _0x39deeb['push'](_0x39deeb['shift']());}catch(_0x37ae1e){_0x39deeb['push'](_0x39deeb['shift']());}}}(a2_0x3812,0xbb4ca));const a2_0x460060=(function(){let _0x5e870a=!![];return function(_0x57077d,_0x53d045){const _0x3f0de8=_0x5e870a?function(){const _0x15c54e=a2_0x34e5;if(_0x53d045){const _0x914d13=_0x53d045[_0x15c54e(0x1d6)](_0x57077d,arguments);return _0x53d045=null,_0x914d13;}}:function(){};return _0x5e870a=![],_0x3f0de8;};}()),a2_0x2431af=a2_0x460060(this,function(){const _0x110ab7=a2_0x34e5;return a2_0x2431af[_0x110ab7(0x1f8)]()[_0x110ab7(0x197)](_0x110ab7(0x1f7))[_0x110ab7(0x1f8)]()[_0x110ab7(0x18f)](a2_0x2431af)['search'](_0x110ab7(0x1f7));});function a2_0x3812(){const _0x482102=['dirs','dir','(((.+)+)+)+$','toString','@midwayjs/i18n','mkdirSync','./types/intercept','proceed','readdirSync','HEADERS_SIGNATURE','default','2547TIJtdN','decorate','handler','./types/action','34690waeNuw','11378032uwedrF','handlerActionRoute','REQUEST_OBJ_CTX_KEY','devices','checkConfigKeys','__metadata','clients','constructor','文件不存在','apimit','1562sdmTWF','match','anncic-apihelper','_matchedRoute','289258FRDSBA','search','-log','235HyezrP','assign','Types','getConfiguration','anncic-api','config','Inject','/runtime/apps-','toLowerCase','@anncic-api/validator','getAppDir','@midwayjs/upload','INTERCEPT_KEY','filterConfig','intercept','MidwayApplicationManager','device','Configuration','onReady','MidwayConfigService','upload','@midwayjs/core','koa','DEFAULT','CustomConfiguration','1449630VqlGpX','App','getBaseDir','loggerConfig','getAsync','existsSync','app','getOwnPropertyDescriptor','addObject','koa-send','isString','ApiService','ApiError','isFunction','MidwayEnvironmentService','/apps','environment','string','request','./config/config.default','keys','/apps/','log','isDirectory','7VCqfKL','isDevelopmentEnvironment','107636QgKSaL','@anncic-api/event','@midwayjs/koa','./config/config.production','@anncic-api/cache','checksign','./exception/ApiError','isClass','staticFile','prototype','apply','179904EnJxbW','registerMethodHandler','headers','design:type','tmpdir','requestContext','MidwayDecoratorService','function','getClassMetadata','context','isNull','35119pVvoZj','bodyXml','__esModule','ACTION_ROUTE_KEY','222RgxUOn','/runtime','length','query','target','method','defaultsDeep','attachment','body','object','application','midwayLogger','@anncic-api/typeorm','statSync','anncicapi'];a2_0x3812=function(){return _0x482102;};return a2_0x3812();}function a2_0x34e5(_0x5b271d,_0x1d10c6){const _0x167870=a2_0x3812();return a2_0x34e5=function(_0x2431af,_0x460060){_0x2431af=_0x2431af-0x17f;let _0x381283=_0x167870[_0x2431af];return _0x381283;},a2_0x34e5(_0x5b271d,_0x1d10c6);}a2_0x2431af();'use strict';var __decorate=this&&this['__decorate']||function(_0x3ce582,_0x410769,_0x1fbeaf,_0x879540){const _0x452bea=a2_0x34e5;var _0x56089a=arguments[_0x452bea(0x1e8)],_0x4489cf=_0x56089a<0x3?_0x410769:_0x879540===null?_0x879540=Object[_0x452bea(0x1b9)](_0x410769,_0x1fbeaf):_0x879540,_0x2f70d1;if(typeof Reflect===_0x452bea(0x1ef)&&typeof Reflect[_0x452bea(0x184)]===_0x452bea(0x1de))_0x4489cf=Reflect['decorate'](_0x3ce582,_0x410769,_0x1fbeaf,_0x879540);else{for(var _0x3647dc=_0x3ce582[_0x452bea(0x1e8)]-0x1;_0x3647dc>=0x0;_0x3647dc--)if(_0x2f70d1=_0x3ce582[_0x3647dc])_0x4489cf=(_0x56089a<0x3?_0x2f70d1(_0x4489cf):_0x56089a>0x3?_0x2f70d1(_0x410769,_0x1fbeaf,_0x4489cf):_0x2f70d1(_0x410769,_0x1fbeaf))||_0x4489cf;}return _0x56089a>0x3&&_0x4489cf&&Object['defineProperty'](_0x410769,_0x1fbeaf,_0x4489cf),_0x4489cf;},__metadata=this&&this[a2_0x25c1a6(0x18d)]||function(_0x5e884c,_0x54f327){const _0x2c6d6f=a2_0x25c1a6;if(typeof Reflect===_0x2c6d6f(0x1ef)&&typeof Reflect['metadata']===_0x2c6d6f(0x1de))return Reflect['metadata'](_0x5e884c,_0x54f327);};Object['defineProperty'](exports,a2_0x25c1a6(0x1e4),{'value':!![]}),exports[a2_0x25c1a6(0x1b1)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x25c1a6(0x1ae)),ApiError_1=require(a2_0x25c1a6(0x1d2)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x25c1a6(0x186)),intercept_1=require(a2_0x25c1a6(0x1fb)),fs=require('fs'),koasend=require(a2_0x25c1a6(0x1bb)),koa=require(a2_0x25c1a6(0x1ce)),i18n=require(a2_0x25c1a6(0x1f9)),upload=require(a2_0x25c1a6(0x1a4)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x25c1a6(0x1c5)),ConfigProduction=require(a2_0x25c1a6(0x1cf)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x25c1a6(0x1d0)),anncicEvent=require(a2_0x25c1a6(0x1cd)),anncicTypeorm=require(a2_0x25c1a6(0x1f2)),anncicValidator=require(a2_0x25c1a6(0x1a2)),anncicHelper=require(a2_0x25c1a6(0x194));let CustomConfiguration=class CustomConfiguration{async[a2_0x25c1a6(0x1ab)](){const _0x3db6d3=a2_0x25c1a6;await this[_0x3db6d3(0x1a6)](),await this[_0x3db6d3(0x1b5)](),await this[_0x3db6d3(0x18c)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x25c1a6(0x18c)](){}async[a2_0x25c1a6(0x189)](){const _0x253d82=a2_0x25c1a6,_0x261fc9=(0x0,core_1[_0x253d82(0x1df)])(intercept_1[_0x253d82(0x1a5)],intercept_1['InterceptTargetTmp'])||{};this['decorator'][_0x253d82(0x1d8)](action_1[_0x253d82(0x1e5)],_0x1178b3=>{const _0x38b917=_0x1178b3['metadata'];return{'before':async _0x374edf=>{const _0x4373af=a2_0x34e5;var _0x457fdb,_0x1354ba;const _0x9ad8be=(_0x457fdb=_0x374edf===null||_0x374edf===void 0x0?void 0x0:_0x374edf['target'])===null||_0x457fdb===void 0x0?void 0x0:_0x457fdb[core_2[_0x4373af(0x18a)]];if(_0x9ad8be&&(_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917[_0x4373af(0x191)])){if(!this[_0x4373af(0x1bd)][_0x4373af(0x1d1)]((_0x1354ba=_0x9ad8be===null||_0x9ad8be===void 0x0?void 0x0:_0x9ad8be[_0x4373af(0x1c4)])===null||_0x1354ba===void 0x0?void 0x0:_0x1354ba[_0x4373af(0x1d9)]))throw new AnnError(ApiError_1[_0x4373af(0x1be)][_0x4373af(0x181)]);}},'around':async _0x39a686=>{const _0x2268c3=a2_0x34e5;var _0x48f11a,_0x240aeb,_0x3aec28;const _0x2bf381=(_0x48f11a=_0x39a686===null||_0x39a686===void 0x0?void 0x0:_0x39a686[_0x2268c3(0x1ea)])===null||_0x48f11a===void 0x0?void 0x0:_0x48f11a[core_2[_0x2268c3(0x18a)]];if(_0x2bf381&&(_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917[_0x2268c3(0x191)])&&((_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917['intercept'])||typeof(_0x38b917===null||_0x38b917===void 0x0?void 0x0:_0x38b917[_0x2268c3(0x1a7)])=='undefined')){if(((_0x240aeb=_0x2bf381['headers'])===null||_0x240aeb===void 0x0?void 0x0:_0x240aeb[_0x2268c3(0x1a9)])&&((_0x3aec28=_0x261fc9===null||_0x261fc9===void 0x0?void 0x0:_0x261fc9[_0x2bf381[_0x2268c3(0x1d9)][_0x2268c3(0x1a9)]])===null||_0x3aec28===void 0x0?void 0x0:_0x3aec28[_0x2268c3(0x1e8)])>0x0)for(const _0x37957b of _0x261fc9[_0x2bf381[_0x2268c3(0x1d9)][_0x2268c3(0x1a9)]]||[]){if(core_1[_0x2268c3(0x19b)][_0x2268c3(0x1d3)](_0x37957b)){const _0xee7145=await _0x2bf381[_0x2268c3(0x1dc)][_0x2268c3(0x1b6)](_0x37957b);typeof(_0xee7145===null||_0xee7145===void 0x0?void 0x0:_0xee7145[_0x2268c3(0x193)])==_0x2268c3(0x1de)?await _0xee7145[_0x2268c3(0x193)](_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['method'])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)])?_0x2bf381[_0x2268c3(0x1eb)][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917)&&await _0xee7145[_0x2268c3(0x185)](_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['method'])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['_matchedRoute'])?_0x2bf381['method'][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917):await _0xee7145['handler'](_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x1eb)])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)])?_0x2bf381[_0x2268c3(0x1eb)][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917);}else core_1[_0x2268c3(0x19b)][_0x2268c3(0x1bf)](_0x37957b)&&await _0x37957b(_0x2bf381,typeof(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x1eb)])==_0x2268c3(0x1c3)&&(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381['_matchedRoute'])?_0x2bf381[_0x2268c3(0x1eb)][_0x2268c3(0x1a1)]()+'@'+(_0x2bf381===null||_0x2bf381===void 0x0?void 0x0:_0x2bf381[_0x2268c3(0x195)]):undefined,_0x38b917);}}return await _0x39a686[_0x2268c3(0x17f)](..._0x39a686['args']);},'afterThrow':(_0x2eb660,_0x10a201)=>{throw _0x10a201;}};});}async['hanlderApplications'](){const _0x4781cf=a2_0x25c1a6;this[_0x4781cf(0x1f0)]['getApplications']([_0x4781cf(0x1af)])['forEach'](_0x52015d=>{const _0x4fd913=_0x4781cf;(_0x52015d===null||_0x52015d===void 0x0?void 0x0:_0x52015d[_0x4fd913(0x1e0)])&&Object['defineProperties'](_0x52015d[_0x4fd913(0x1e0)],{'ok':{'value':function(_0x41785e,_0x5db0da,_0x11c0a1=0x0){return{'code':_0x11c0a1,'data':_0x41785e,'extra':_0x5db0da};}},'input':{'value':function(_0x5a58e7,_0xfc2f9){const _0x51f1b8=_0x4fd913;var _0x1eca21;const _0x4fad5c=lodash[_0x51f1b8(0x1ec)]({},this['request'][_0x51f1b8(0x1ee)]||this[_0x51f1b8(0x1c4)][((_0x1eca21=config===null||config===void 0x0?void 0x0:config[_0x51f1b8(0x1e3)])===null||_0x1eca21===void 0x0?void 0x0:_0x1eca21['key'])||'body']||{},this[_0x51f1b8(0x1c4)][_0x51f1b8(0x1e9)]||{});return _0x5a58e7?lodash['get'](_0x4fad5c,_0x5a58e7,_0xfc2f9):_0x4fad5c;}},'when':{'value':async function(_0x31114d,_0x3f24ff){const _0xac489a=_0x4fd913,_0x19ce4d=this['input'](_0x31114d,null);if(!lodash[_0xac489a(0x1e1)](_0x19ce4d))return await _0x3f24ff(_0x19ce4d);}},'only':{'value':function(_0x42b563){const _0x24ea95=_0x4fd913,_0xb4dd12={};for(let _0x1e494f=0x0;_0x1e494f<_0x42b563[_0x24ea95(0x1e8)];_0x1e494f++){lodash['isArray'](_0x42b563[_0x1e494f])&&_0x42b563[_0x1e494f]['length']>0x0&&lodash[_0x24ea95(0x1bc)](_0x42b563[_0x1e494f][0x0])&&(_0xb4dd12[_0x42b563[_0x1e494f][0x0]]=this['input'](_0x42b563[_0x1e494f][0x0],_0x42b563[_0x1e494f][_0x24ea95(0x1e8)]>0x1?_0x42b563[_0x1e494f][0x1]:null));}return _0xb4dd12;}},'koasend':{'value':function(_0x660108,_0x3e981b){const _0x315003=_0x4fd913;if(!fs[_0x315003(0x1b7)](this[_0x315003(0x1b8)][_0x315003(0x1a3)]()+'/'+_0x660108))return _0x315003(0x190);return this[_0x315003(0x1ed)](_0x3e981b||_0x660108),koasend(this,_0x660108);}}});});}async[a2_0x25c1a6(0x1b5)](){const _0x458d6c=a2_0x25c1a6;var _0x48b0bd,_0x2abce8;if(fs[_0x458d6c(0x1b7)](this[_0x458d6c(0x1b8)]['getBaseDir']()+'/apps')&&fs['statSync'](this[_0x458d6c(0x1b8)][_0x458d6c(0x1b4)]()+_0x458d6c(0x1c1))[_0x458d6c(0x1c9)]()){const _0x4c6114=this[_0x458d6c(0x19e)][_0x458d6c(0x19c)](),_0x41e13b=((_0x48b0bd=_0x4c6114===null||_0x4c6114===void 0x0?void 0x0:_0x4c6114[_0x458d6c(0x1f1)])===null||_0x48b0bd===void 0x0?void 0x0:_0x48b0bd['clients'])||{};for(const _0x3d1e10 of fs[_0x458d6c(0x180)](this[_0x458d6c(0x1b8)][_0x458d6c(0x1b4)]()+'/apps')){if(!fs[_0x458d6c(0x1f3)](this[_0x458d6c(0x1b8)][_0x458d6c(0x1b4)]()+_0x458d6c(0x1c7)+_0x3d1e10)[_0x458d6c(0x1c9)]())continue;if(_0x41e13b===null||_0x41e13b===void 0x0?void 0x0:_0x41e13b[_0x3d1e10])continue;_0x41e13b[_0x3d1e10]=Object[_0x458d6c(0x19a)]({},((_0x2abce8=_0x4c6114===null||_0x4c6114===void 0x0?void 0x0:_0x4c6114[_0x458d6c(0x1f1)])===null||_0x2abce8===void 0x0?void 0x0:_0x2abce8[_0x458d6c(0x182)])||{'maxSize':'1m','dir':this[_0x458d6c(0x1b8)]['getAppDir']()+_0x458d6c(0x1e7)},{'enableJSON':!![],'enableConsole':this['environment'][_0x458d6c(0x1cb)](),'fileLogName':_0x3d1e10+'.log','dir':this[_0x458d6c(0x1b8)][_0x458d6c(0x1a3)]()+_0x458d6c(0x1a0)+_0x3d1e10+_0x458d6c(0x198)});}Object[_0x458d6c(0x1c6)](_0x41e13b)[_0x458d6c(0x1e8)]>0x0&&(!_0x4c6114[_0x458d6c(0x1f1)]&&(_0x4c6114[_0x458d6c(0x1f1)]={'default':{'maxSize':'1m','dir':this[_0x458d6c(0x1b8)][_0x458d6c(0x1a3)]()+_0x458d6c(0x1e7)}}),_0x4c6114[_0x458d6c(0x1f1)][_0x458d6c(0x18e)]=_0x41e13b),this[_0x458d6c(0x19e)][_0x458d6c(0x1ba)](_0x4c6114);}}async[a2_0x25c1a6(0x1a6)](){const _0x2fb153=a2_0x25c1a6;var _0x3311df,_0x48a18e,_0x30fd82,_0x589b1a,_0x16df6d,_0x530dec;const _0x51b762=this[_0x2fb153(0x19e)][_0x2fb153(0x19c)]();((_0x48a18e=(_0x3311df=_0x51b762===null||_0x51b762===void 0x0?void 0x0:_0x51b762['anncicapi'])===null||_0x3311df===void 0x0?void 0x0:_0x3311df[_0x2fb153(0x18b)])===null||_0x48a18e===void 0x0?void 0x0:_0x48a18e['DEFAULT'])&&Object[_0x2fb153(0x1c6)](_0x51b762[_0x2fb153(0x1f4)][_0x2fb153(0x18b)])[_0x2fb153(0x1e8)]>0x1&&delete _0x51b762[_0x2fb153(0x1f4)][_0x2fb153(0x18b)][_0x2fb153(0x1b0)];if((_0x30fd82=_0x51b762===null||_0x51b762===void 0x0?void 0x0:_0x51b762['staticFile'])===null||_0x30fd82===void 0x0?void 0x0:_0x30fd82['dirs'])for(const _0x197bab in _0x51b762['staticFile'][_0x2fb153(0x1f5)]){((_0x589b1a=_0x51b762[_0x2fb153(0x1d4)][_0x2fb153(0x1f5)][_0x197bab])===null||_0x589b1a===void 0x0?void 0x0:_0x589b1a['dir'])&&typeof((_0x16df6d=_0x51b762[_0x2fb153(0x1d4)]['dirs'][_0x197bab])===null||_0x16df6d===void 0x0?void 0x0:_0x16df6d['dir'])==_0x2fb153(0x1c3)&&!fs['existsSync'](_0x51b762[_0x2fb153(0x1d4)]['dirs'][_0x197bab][_0x2fb153(0x1f6)])&&(fs[_0x2fb153(0x1fa)](_0x51b762[_0x2fb153(0x1d4)][_0x2fb153(0x1f5)][_0x197bab][_0x2fb153(0x1f6)],{'recursive':!![]}),console[_0x2fb153(0x1c8)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x51b762[_0x2fb153(0x1d4)]['dirs'][_0x197bab]['dir']));}((_0x530dec=_0x51b762===null||_0x51b762===void 0x0?void 0x0:_0x51b762[_0x2fb153(0x1ad)])===null||_0x530dec===void 0x0?void 0x0:_0x530dec[_0x2fb153(0x1db)])&&!fs[_0x2fb153(0x1b7)](_0x51b762['upload']['tmpdir'])&&(fs[_0x2fb153(0x1fa)](_0x51b762[_0x2fb153(0x1ad)]['tmpdir'],{'recursive':!![]}),console[_0x2fb153(0x1c8)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x51b762[_0x2fb153(0x1ad)][_0x2fb153(0x1db)])),this[_0x2fb153(0x19e)][_0x2fb153(0x1ba)](_0x51b762);}};__decorate([(0x0,core_1[a2_0x25c1a6(0x1b3)])(),__metadata(a2_0x25c1a6(0x1da),Object)],CustomConfiguration[a2_0x25c1a6(0x1d5)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1ac)])],CustomConfiguration[a2_0x25c1a6(0x1d5)],a2_0x25c1a6(0x19e),void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1dd)])],CustomConfiguration[a2_0x25c1a6(0x1d5)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1a8)])],CustomConfiguration['prototype'],a2_0x25c1a6(0x1f0),void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata(a2_0x25c1a6(0x1da),core_2[a2_0x25c1a6(0x1c0)])],CustomConfiguration[a2_0x25c1a6(0x1d5)],a2_0x25c1a6(0x1c2),void 0x0),__decorate([(0x0,core_1[a2_0x25c1a6(0x19f)])(),__metadata('design:type',ApiService_1[a2_0x25c1a6(0x1bd)])],CustomConfiguration['prototype'],a2_0x25c1a6(0x1bd),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x25c1a6(0x1aa)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x25c1a6(0x19d),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x25c1a6(0x1b1)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3_0x3f790b=a3_0x79d4;(function(_0x4db681,_0x3aea3a){const _0x33921c=a3_0x79d4,_0x5dc2e0=_0x4db681();while(!![]){try{const _0x1a4ad1=-parseInt(_0x33921c(0x187))/0x1+-parseInt(_0x33921c(0x198))/0x2+parseInt(_0x33921c(0x192))/0x3*(-parseInt(_0x33921c(0x19b))/0x4)+-parseInt(_0x33921c(0x173))/0x5*(-parseInt(_0x33921c(0x17f))/0x6)+parseInt(_0x33921c(0x16d))/0x7+parseInt(_0x33921c(0x191))/0x8+parseInt(_0x33921c(0x17d))/0x9*(-parseInt(_0x33921c(0x182))/0xa);if(_0x1a4ad1===_0x3aea3a)break;else _0x5dc2e0['push'](_0x5dc2e0['shift']());}catch(_0x394a3a){_0x5dc2e0['push'](_0x5dc2e0['shift']());}}}(a3_0x23a6,0xdc0e5));const a3_0x207c0a=(function(){let _0x30f13b=!![];return function(_0x249369,_0x4460f9){const _0x371227=_0x30f13b?function(){const _0x1bc2e3=a3_0x79d4;if(_0x4460f9){const _0x1f2bad=_0x4460f9[_0x1bc2e3(0x172)](_0x249369,arguments);return _0x4460f9=null,_0x1f2bad;}}:function(){};return _0x30f13b=![],_0x371227;};}()),a3_0x211b06=a3_0x207c0a(this,function(){const _0x2b626c=a3_0x79d4;return a3_0x211b06['toString']()[_0x2b626c(0x16a)]('(((.+)+)+)+$')[_0x2b626c(0x167)]()['constructor'](a3_0x211b06)['search'](_0x2b626c(0x17e));});a3_0x211b06();function a3_0x23a6(){const _0x45d39a=['endsWith','10PjsIBb','filepath','Action','AppsConfigTmp','route','294006KLnSJa','module','/controller/文件下','toLowerCase','length','/config.','split','join','defineProperty','-controller','11958432WGukEA','3QvswgD','basic/controller/','middlewareIgnore','Controller','existsSync','middleware','1622932PLKLIZ','APPSCONFIG_KEY','prefix','755916eokkOr','replace','filter','apps/','toString','rootpath','substring','search','getClassMetadata','indexOf','2829806YDOXeA','trim','__esModule','ACTION_KEY','/apps/','apply','35CywGcf','/controller/','app/controller/','@midwayjs/core','saveClassMetadata','match','push','cwd','startsWith','isArray','7076277iWjpQL','(((.+)+)+)+$','928278AIFsNN','-action'];a3_0x23a6=function(){return _0x45d39a;};return a3_0x23a6();}'use strict';function a3_0x79d4(_0x5358ae,_0x422487){const _0x5cb4f0=a3_0x23a6();return a3_0x79d4=function(_0x211b06,_0x207c0a){_0x211b06=_0x211b06-0x166;let _0x23a668=_0x5cb4f0[_0x211b06];return _0x23a668;},a3_0x79d4(_0x5358ae,_0x422487);}Object[a3_0x3f790b(0x18f)](exports,a3_0x3f790b(0x16f),{'value':!![]}),exports['parseRoute']=exports[a3_0x3f790b(0x184)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x3f790b(0x176)),action_1=require('../types/action');function Action(_0x5d2e39,_0x163e36,_0x373514={'middleware':[],'sensitive':!![]}){return _0x386cbd=>{const _0x1e8baf=a3_0x79d4;var _0x52e4e8;_0x373514['tagName']=_0x163e36;const _0x167767=parseRoute(_0x5d2e39);if(_0x167767[_0x1e8baf(0x188)]){_0x373514[_0x1e8baf(0x19a)]=_0x373514[_0x1e8baf(0x19a)]?'/'+_0x167767[_0x1e8baf(0x188)]+'/'+_0x373514[_0x1e8baf(0x19a)]:'/'+_0x167767[_0x1e8baf(0x186)];_0x167767['prefix']&&(_0x373514['prefix']='/'+_0x167767['prefix']+'/'+_0x373514[_0x1e8baf(0x19a)]);if(fs[_0x1e8baf(0x196)](_0x167767[_0x1e8baf(0x168)]+_0x1e8baf(0x171)+_0x167767[_0x1e8baf(0x188)]+_0x1e8baf(0x18c)+(lodash[_0x1e8baf(0x181)](_0x167767[_0x1e8baf(0x183)],'ts')?'ts':'js'))){const _0x8677f9=include(_0x167767[_0x1e8baf(0x168)]+_0x1e8baf(0x171)+_0x167767[_0x1e8baf(0x188)]+_0x1e8baf(0x18c)+(lodash[_0x1e8baf(0x181)](_0x167767[_0x1e8baf(0x183)],'ts')?'ts':'js'));if(_0x8677f9[_0x1e8baf(0x197)]&&lodash[_0x1e8baf(0x17c)](_0x8677f9[_0x1e8baf(0x197)])&&_0x8677f9[_0x1e8baf(0x197)][_0x1e8baf(0x18b)]>0x0)for(let _0x4fd8fb in _0x8677f9['middleware']){if(((_0x52e4e8=_0x8677f9===null||_0x8677f9===void 0x0?void 0x0:_0x8677f9[_0x1e8baf(0x194)])===null||_0x52e4e8===void 0x0?void 0x0:_0x52e4e8['length'])>0x0&&_0x8677f9[_0x1e8baf(0x194)][_0x1e8baf(0x16c)](_0x8677f9[_0x1e8baf(0x197)][_0x4fd8fb])!=-0x1)continue;_0x373514[_0x1e8baf(0x197)][_0x1e8baf(0x179)](_0x8677f9[_0x1e8baf(0x197)][_0x4fd8fb]);}const _0x5d426c=(0x0,core_1[_0x1e8baf(0x16b)])(action_1[_0x1e8baf(0x199)],action_1[_0x1e8baf(0x185)])||{};_0x5d426c[''+_0x167767[_0x1e8baf(0x188)]]=_0x8677f9,(0x0,core_1[_0x1e8baf(0x177)])(action_1[_0x1e8baf(0x199)],_0x5d426c,action_1['AppsConfigTmp']);}_0x373514['prefix']=_0x373514[_0x1e8baf(0x19a)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x1e8baf(0x170)],_0x386cbd),(0x0,core_1[_0x1e8baf(0x195)])(_0x373514['prefix'],_0x373514)(_0x386cbd),(0x0,core_1[_0x1e8baf(0x177)])(action_1[_0x1e8baf(0x170)],{'prefix':_0x373514[_0x1e8baf(0x19a)],'pprefix':_0x167767[_0x1e8baf(0x19a)],'module':_0x167767[_0x1e8baf(0x188)],'filepath':_0x167767[_0x1e8baf(0x183)],'routerOptions':_0x373514},_0x386cbd);}else _0x373514[_0x1e8baf(0x19a)]=_0x373514[_0x1e8baf(0x19a)]?'/'+_0x373514['prefix']:'/'+_0x167767[_0x1e8baf(0x186)],_0x167767[_0x1e8baf(0x19a)]&&(_0x373514['prefix']='/'+_0x167767[_0x1e8baf(0x19a)]+'/'+_0x373514[_0x1e8baf(0x19a)]),_0x373514[_0x1e8baf(0x19a)]=_0x373514['prefix']['toLowerCase']()[_0x1e8baf(0x19c)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x1e8baf(0x170)],_0x386cbd),(0x0,core_1[_0x1e8baf(0x195)])(_0x373514[_0x1e8baf(0x19a)],_0x373514)(_0x386cbd),(0x0,core_1[_0x1e8baf(0x177)])(action_1['ACTION_KEY'],{'prefix':_0x373514[_0x1e8baf(0x19a)],'module':_0x167767[_0x1e8baf(0x188)],'pprefix':_0x167767[_0x1e8baf(0x19a)],'filepath':_0x167767['filepath'],'routerOptions':_0x373514},_0x386cbd);};}exports[a3_0x3f790b(0x184)]=Action;function parseRoute(_0x5cfa86){const _0x419e28=a3_0x3f790b;_0x5cfa86=_0x5cfa86[_0x419e28(0x19c)](/(\\|\/)/g,'/');const _0x6edafc=process[_0x419e28(0x17a)]()[_0x419e28(0x19c)](/(\\|\/)/g,'/'),_0x206d7a=_0x5cfa86[_0x419e28(0x169)](0x0,_0x6edafc[_0x419e28(0x18b)]+_0x5cfa86[_0x419e28(0x169)](_0x6edafc[_0x419e28(0x18b)]+0x1)[_0x419e28(0x16c)]('/')+0x1),_0x22d38e=_0x5cfa86['substring'](_0x206d7a['length']+0x1)[_0x419e28(0x19c)](/(\\|\/)/g,'/'),_0x32e797={'route':'','prefix':![],'module':![],'rootpath':_0x206d7a,'filepath':_0x22d38e};if(_0x22d38e[_0x419e28(0x17b)](_0x419e28(0x175))||_0x22d38e['startsWith']('basic/controller/')){const _0x2d1106=_0x22d38e[_0x419e28(0x169)]((_0x22d38e[_0x419e28(0x17b)]('app/controller/')?_0x419e28(0x175):_0x419e28(0x193))[_0x419e28(0x18b)])[_0x419e28(0x18d)]('/')[_0x419e28(0x19d)](_0x28ef3e=>_0x28ef3e&&_0x28ef3e['trim']());return _0x2d1106[_0x419e28(0x18b)]>0x1&&(_0x32e797[_0x419e28(0x19a)]=_0x2d1106[0x0]['toLowerCase'](),_0x2d1106['splice'](0x0,0x1)),_0x32e797['route']=('/'+_0x2d1106[_0x419e28(0x18e)]('/'))[_0x419e28(0x19c)](/(\.ts|\.js)$/,'')[_0x419e28(0x19c)](/\/{2,}/g,'/')[_0x419e28(0x178)](/[\/|A-Z]*[^A-Z]+/g)[_0x419e28(0x18e)]('-')[_0x419e28(0x18a)]()[_0x419e28(0x19c)](/\/\-/g,'/'),_0x32e797[_0x419e28(0x186)][_0x419e28(0x181)](_0x419e28(0x180))&&(_0x32e797[_0x419e28(0x186)]=_0x32e797['route'][_0x419e28(0x169)](0x0,_0x32e797[_0x419e28(0x186)][_0x419e28(0x18b)]-0x7)),_0x32e797[_0x419e28(0x186)]['endsWith'](_0x419e28(0x190))&&(_0x32e797['route']=_0x32e797[_0x419e28(0x186)][_0x419e28(0x169)](0x0,_0x32e797['route'][_0x419e28(0x18b)]-0xb)),_0x32e797;}else{if(_0x22d38e[_0x419e28(0x17b)](_0x419e28(0x166))){const _0x4c5e42=_0x22d38e[_0x419e28(0x169)](0x0,_0x22d38e['indexOf'](_0x419e28(0x171))+0x5),_0x33bafc=_0x22d38e['substring'](_0x4c5e42[_0x419e28(0x18b)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x419e28(0x18d)]('/')[0x0];if(_0x22d38e[_0x419e28(0x17b)](_0x419e28(0x166)+_0x33bafc+'/controller/')){const _0x43a828=_0x22d38e[_0x419e28(0x169)]((_0x4c5e42+'/'+_0x33bafc+_0x419e28(0x174))['length'])[_0x419e28(0x18d)]('/')[_0x419e28(0x19d)](_0x5254bc=>_0x5254bc&&_0x5254bc[_0x419e28(0x16e)]());return _0x43a828[_0x419e28(0x18b)]>0x1&&(_0x32e797['prefix']=_0x43a828[0x0][_0x419e28(0x18a)](),_0x43a828['splice'](0x0,0x1)),_0x32e797['module']=_0x33bafc,_0x32e797['route']=('/'+_0x33bafc+'/'+_0x43a828[_0x419e28(0x18e)]('/'))[_0x419e28(0x19c)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x419e28(0x178)](/[\/|A-Z]*[^A-Z]+/g)[_0x419e28(0x18e)]('-')['toLowerCase']()[_0x419e28(0x19c)](/\/\-/g,'/'),_0x32e797[_0x419e28(0x186)]['endsWith'](_0x419e28(0x180))&&(_0x32e797['route']=_0x32e797[_0x419e28(0x186)][_0x419e28(0x169)](0x0,_0x32e797['route'][_0x419e28(0x18b)]-0x7)),_0x32e797['route'][_0x419e28(0x181)](_0x419e28(0x190))&&(_0x32e797[_0x419e28(0x186)]=_0x32e797[_0x419e28(0x186)][_0x419e28(0x169)](0x0,_0x32e797[_0x419e28(0x186)][_0x419e28(0x18b)]-0xb)),_0x32e797;}throw new Error(_0x22d38e+'\x20文件请放在apps/'+_0x33bafc+_0x419e28(0x189));}}throw new Error(_0x22d38e+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x3ea745=a4_0x2e6b;(function(_0x5e8905,_0x5ed5ef){const _0x434a10=a4_0x2e6b,_0x646952=_0x5e8905();while(!![]){try{const _0x193512=parseInt(_0x434a10(0x12b))/0x1*(parseInt(_0x434a10(0x10b))/0x2)+-parseInt(_0x434a10(0x10f))/0x3+parseInt(_0x434a10(0x11f))/0x4*(parseInt(_0x434a10(0x10c))/0x5)+parseInt(_0x434a10(0x11b))/0x6*(-parseInt(_0x434a10(0x113))/0x7)+-parseInt(_0x434a10(0x12f))/0x8*(-parseInt(_0x434a10(0x10e))/0x9)+-parseInt(_0x434a10(0x12a))/0xa*(-parseInt(_0x434a10(0x134))/0xb)+-parseInt(_0x434a10(0x11c))/0xc;if(_0x193512===_0x5ed5ef)break;else _0x646952['push'](_0x646952['shift']());}catch(_0x2eb130){_0x646952['push'](_0x646952['shift']());}}}(a4_0x1685,0x224ce));function a4_0x2e6b(_0x2778c2,_0x3c7a21){const _0x33a65f=a4_0x1685();return a4_0x2e6b=function(_0x378edd,_0xac6319){_0x378edd=_0x378edd-0x10b;let _0x16855b=_0x33a65f[_0x378edd];return _0x16855b;},a4_0x2e6b(_0x2778c2,_0x3c7a21);}const a4_0xac6319=(function(){let _0xcd5285=!![];return function(_0x16ed6b,_0x5ae098){const _0x3324b1=_0xcd5285?function(){const _0x32865d=a4_0x2e6b;if(_0x5ae098){const _0xd4c66e=_0x5ae098[_0x32865d(0x130)](_0x16ed6b,arguments);return _0x5ae098=null,_0xd4c66e;}}:function(){};return _0xcd5285=![],_0x3324b1;};}()),a4_0x378edd=a4_0xac6319(this,function(){const _0x459f0d=a4_0x2e6b;return a4_0x378edd[_0x459f0d(0x132)]()[_0x459f0d(0x110)]('(((.+)+)+)+$')[_0x459f0d(0x132)]()[_0x459f0d(0x115)](a4_0x378edd)[_0x459f0d(0x110)](_0x459f0d(0x12e));});a4_0x378edd();'use strict';Object[a4_0x3ea745(0x11e)](exports,a4_0x3ea745(0x114),{'value':!![]}),exports[a4_0x3ea745(0x117)]=void 0x0;const validator_1=require(a4_0x3ea745(0x112)),core_1=require(a4_0x3ea745(0x118)),action_1=require(a4_0x3ea745(0x12c));function Api(_0x57919f,_0x23b44c='get',_0x3b2895='/',_0x7f46db={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3d88c5,_0x1ab259,_0x41028d)=>{const _0x5e94e8=a4_0x2e6b;var _0x2f9bcd,_0x511acd,_0x1c6be2;!_0x7f46db[_0x5e94e8(0x119)]&&(_0x7f46db[_0x5e94e8(0x119)]=[]);!((_0x2f9bcd=_0x7f46db===null||_0x7f46db===void 0x0?void 0x0:_0x7f46db[_0x5e94e8(0x111)])===null||_0x2f9bcd===void 0x0?void 0x0:_0x2f9bcd[_0x5e94e8(0x128)])&&(_0x7f46db[_0x5e94e8(0x111)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5e94e8(0x125)}});typeof _0x7f46db[_0x5e94e8(0x124)]==_0x5e94e8(0x133)&&(_0x7f46db['apimit']=!![]);if(((_0x511acd=_0x7f46db===null||_0x7f46db===void 0x0?void 0x0:_0x7f46db[_0x5e94e8(0x119)])===null||_0x511acd===void 0x0?void 0x0:_0x511acd['length'])>0x0&&((_0x1c6be2=_0x7f46db===null||_0x7f46db===void 0x0?void 0x0:_0x7f46db[_0x5e94e8(0x122)])===null||_0x1c6be2===void 0x0?void 0x0:_0x1c6be2['length'])>0x0)for(let _0x2c4588 in _0x7f46db[_0x5e94e8(0x119)]){_0x7f46db[_0x5e94e8(0x122)][_0x5e94e8(0x131)](_0x7f46db[_0x5e94e8(0x119)][_0x2c4588])!==-0x1&&(_0x7f46db[_0x5e94e8(0x119)][_0x2c4588]=null);}_0x7f46db[_0x5e94e8(0x11d)]=_0x57919f,(0x0,validator_1['Validator'])(_0x7f46db[_0x5e94e8(0x111)])(_0x3d88c5,_0x1ab259,_0x41028d),(0x0,core_1['RequestMapping'])(Object[_0x5e94e8(0x11a)](_0x7f46db,{'path':_0x3b2895,'requestMethod':(_0x23b44c==_0x5e94e8(0x10d)?_0x5e94e8(0x127):_0x23b44c)[_0x5e94e8(0x123)]()}))(_0x3d88c5,_0x1ab259,_0x41028d),(0x0,core_1[_0x5e94e8(0x121)])(action_1[_0x5e94e8(0x126)],{'path':_0x3b2895,'method':_0x1ab259,'apimit':_0x7f46db['apimit'],'intercept':_0x7f46db['intercept'],'routerName':_0x7f46db[_0x5e94e8(0x11d)],'description':_0x7f46db['description'],'middleware':(_0x7f46db[_0x5e94e8(0x119)]||[])['filter'](_0x44731c=>!!_0x44731c),'requestMethod':(_0x23b44c==_0x5e94e8(0x10d)?_0x5e94e8(0x127):_0x23b44c)[_0x5e94e8(0x123)]()},_0x3d88c5),(0x0,core_1[_0x5e94e8(0x129)])(action_1[_0x5e94e8(0x126)],{'path':_0x3b2895,'method':_0x1ab259,'apimit':_0x7f46db['apimit'],'intercept':_0x7f46db[_0x5e94e8(0x12d)],'routerName':_0x7f46db[_0x5e94e8(0x11d)],'description':_0x7f46db[_0x5e94e8(0x120)],'middleware':(_0x7f46db[_0x5e94e8(0x119)]||[])[_0x5e94e8(0x116)](_0x3a9588=>!!_0x3a9588),'requestMethod':(_0x23b44c=='del'?'delete':_0x23b44c)[_0x5e94e8(0x123)]()})(_0x3d88c5,_0x1ab259,_0x41028d);};}exports[a4_0x3ea745(0x117)]=Api;function a4_0x1685(){const _0x2bcc1a=['../types/action','intercept','(((.+)+)+)+$','1592QpWbgD','apply','indexOf','toString','undefined','11jimKpP','83410Qgvksn','816905cjBdaI','del','7587pCaksT','292365BwZDnR','search','validate','@anncic-api/validator','344491drVpQo','__esModule','constructor','filter','Api','@midwayjs/core','middleware','assign','6ZEBxKF','3980316LahEfy','routerName','defineProperty','4AwGAGR','description','attachClassMetadata','middlewareIgnore','toLowerCase','apimit','string','ACTION_ROUTE_KEY','delete','validationOptions','createCustomMethodDecorator','2043070xoEPYs','2TjWCOG'];a4_0x1685=function(){return _0x2bcc1a;};return a4_0x1685();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x4daacd=a5_0xbae6;(function(_0x17b05d,_0x9d9bbb){const _0x51a0a4=a5_0xbae6,_0x576a1b=_0x17b05d();while(!![]){try{const _0x1adf97=-parseInt(_0x51a0a4(0x120))/0x1*(parseInt(_0x51a0a4(0x127))/0x2)+-parseInt(_0x51a0a4(0x125))/0x3*(parseInt(_0x51a0a4(0x13a))/0x4)+parseInt(_0x51a0a4(0x11f))/0x5+-parseInt(_0x51a0a4(0x133))/0x6+-parseInt(_0x51a0a4(0x12e))/0x7*(-parseInt(_0x51a0a4(0x137))/0x8)+parseInt(_0x51a0a4(0x134))/0x9*(parseInt(_0x51a0a4(0x12c))/0xa)+parseInt(_0x51a0a4(0x122))/0xb*(parseInt(_0x51a0a4(0x124))/0xc);if(_0x1adf97===_0x9d9bbb)break;else _0x576a1b['push'](_0x576a1b['shift']());}catch(_0x26a30c){_0x576a1b['push'](_0x576a1b['shift']());}}}(a5_0x2dfc,0xdd840));const a5_0x1dc2b2=(function(){let _0x15274e=!![];return function(_0x16d211,_0x13a5a5){const _0x320c9f=_0x15274e?function(){const _0x2b35ef=a5_0xbae6;if(_0x13a5a5){const _0xa62996=_0x13a5a5[_0x2b35ef(0x130)](_0x16d211,arguments);return _0x13a5a5=null,_0xa62996;}}:function(){};return _0x15274e=![],_0x320c9f;};}()),a5_0x28a04c=a5_0x1dc2b2(this,function(){const _0x59aec0=a5_0xbae6;return a5_0x28a04c[_0x59aec0(0x12f)]()['search']('(((.+)+)+)+$')[_0x59aec0(0x12f)]()[_0x59aec0(0x12b)](a5_0x28a04c)['search'](_0x59aec0(0x136));});a5_0x28a04c();'use strict';Object[a5_0x4daacd(0x11d)](exports,a5_0x4daacd(0x138),{'value':!![]}),exports[a5_0x4daacd(0x129)]=void 0x0;function a5_0x2dfc(){const _0x104b5b=['(((.+)+)+)+$','8IGFIOq','__esModule','apidoc','58044CvAehr','RequestMapping','../service/ApitestService','app','defineProperty','value','5535190UlgcCk','1021528idEzpG','get','24451471sPhbMF','@midwayjs/core','12TmiQSK','156XgfgUf','filepath','2KSCEwZ','ApitestService','Apitest','REQUEST_OBJ_CTX_KEY','constructor','70VRHdOs','apitest','6298649NaHOkb','toString','apply','isDevelopmentEnvironment','getAsync','10874046ERCtRN','342081ckiCHt','getApplicationContext'];a5_0x2dfc=function(){return _0x104b5b;};return a5_0x2dfc();}const core_1=require(a5_0x4daacd(0x123)),ApitestService_1=require(a5_0x4daacd(0x11b));function a5_0xbae6(_0x480cd7,_0x3e7fe0){const _0x596975=a5_0x2dfc();return a5_0xbae6=function(_0x28a04c,_0x1dc2b2){_0x28a04c=_0x28a04c-0x11a;let _0x2dfc02=_0x596975[_0x28a04c];return _0x2dfc02;},a5_0xbae6(_0x480cd7,_0x3e7fe0);}function Apitest(_0x44554e='/apitest',_0x22fe6a){return(_0x3c2a3d,_0x16f355,_0x365ee9)=>{const _0x55ad70=a5_0xbae6;return(0x0,core_1[_0x55ad70(0x11a)])({'path':_0x44554e,'requestMethod':_0x55ad70(0x121)})(_0x3c2a3d,_0x16f355,_0x365ee9),_0x365ee9[_0x55ad70(0x11e)]=async function(..._0x5253ab){const _0x17d096=_0x55ad70;var _0x586506;const _0x3e505b=(_0x586506=this[core_1[_0x17d096(0x12a)]])===null||_0x586506===void 0x0?void 0x0:_0x586506[_0x17d096(0x11c)];if(_0x3e505b&&_0x3e505b['getConfig'](_0x17d096(0x12d))){const _0x24f4c1=await _0x3e505b[_0x17d096(0x135)]()[_0x17d096(0x132)](ApitestService_1[_0x17d096(0x128)]),_0x4d2899=await _0x3e505b[_0x17d096(0x135)]()[_0x17d096(0x132)](core_1['MidwayEnvironmentService']);return _0x4d2899[_0x17d096(0x131)]()&&(_0x22fe6a[_0x17d096(0x126)]=!![]),await _0x24f4c1[_0x17d096(0x139)](_0x22fe6a);}return'';},_0x365ee9;};}exports[a5_0x4daacd(0x129)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x1287(_0x4754fd,_0x3d119c){const _0x58112f=a6_0x8e5f();return a6_0x1287=function(_0x25de97,_0x4ee342){_0x25de97=_0x25de97-0x159;let _0x8e5f43=_0x58112f[_0x25de97];return _0x8e5f43;},a6_0x1287(_0x4754fd,_0x3d119c);}const a6_0x56df72=a6_0x1287;(function(_0x371767,_0x330025){const _0x33a0cf=a6_0x1287,_0x48b4fd=_0x371767();while(!![]){try{const _0x491095=-parseInt(_0x33a0cf(0x16e))/0x1*(parseInt(_0x33a0cf(0x162))/0x2)+-parseInt(_0x33a0cf(0x176))/0x3*(-parseInt(_0x33a0cf(0x168))/0x4)+parseInt(_0x33a0cf(0x170))/0x5*(-parseInt(_0x33a0cf(0x15a))/0x6)+-parseInt(_0x33a0cf(0x172))/0x7*(-parseInt(_0x33a0cf(0x163))/0x8)+-parseInt(_0x33a0cf(0x160))/0x9*(-parseInt(_0x33a0cf(0x15c))/0xa)+parseInt(_0x33a0cf(0x15f))/0xb*(parseInt(_0x33a0cf(0x166))/0xc)+parseInt(_0x33a0cf(0x15e))/0xd*(-parseInt(_0x33a0cf(0x165))/0xe);if(_0x491095===_0x330025)break;else _0x48b4fd['push'](_0x48b4fd['shift']());}catch(_0x28da8f){_0x48b4fd['push'](_0x48b4fd['shift']());}}}(a6_0x8e5f,0xc6bd0));const a6_0x4ee342=(function(){let _0x2c7f87=!![];return function(_0x15bdd1,_0x335b2c){const _0x50eb7e=_0x2c7f87?function(){const _0x271e41=a6_0x1287;if(_0x335b2c){const _0x2ce732=_0x335b2c[_0x271e41(0x177)](_0x15bdd1,arguments);return _0x335b2c=null,_0x2ce732;}}:function(){};return _0x2c7f87=![],_0x50eb7e;};}()),a6_0x25de97=a6_0x4ee342(this,function(){const _0x5168d8=a6_0x1287;return a6_0x25de97['toString']()[_0x5168d8(0x16f)](_0x5168d8(0x15d))[_0x5168d8(0x174)]()['constructor'](a6_0x25de97)[_0x5168d8(0x16f)](_0x5168d8(0x15d));});a6_0x25de97();'use strict';Object[a6_0x56df72(0x164)](exports,a6_0x56df72(0x159),{'value':!![]}),exports[a6_0x56df72(0x161)]=exports[a6_0x56df72(0x16a)]=void 0x0;const core_1=require(a6_0x56df72(0x16d)),intercept_1=require(a6_0x56df72(0x169));function Intercept(_0x564d87){return _0x4a66a8=>{const _0x551033=a6_0x1287,_0x1da887=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};for(let _0x58201d of Array['isArray'](_0x564d87)?_0x564d87:[_0x564d87]){_0x58201d=_0x58201d[_0x551033(0x16b)]();!(_0x1da887===null||_0x1da887===void 0x0?void 0x0:_0x1da887[_0x58201d])&&(_0x1da887[_0x58201d]=[]);if(_0x1da887[_0x58201d]['includes'](_0x4a66a8))continue;_0x1da887[_0x58201d][_0x551033(0x171)](_0x4a66a8);}(0x0,core_1[_0x551033(0x173)])()(_0x4a66a8),(0x0,core_1['Scope'])(core_1['ScopeEnum'][_0x551033(0x167)])(_0x4a66a8),(0x0,core_1['saveClassMetadata'])(intercept_1[_0x551033(0x15b)],_0x1da887,intercept_1[_0x551033(0x175)]);};}function a6_0x8e5f(){const _0x299c54=['@midwayjs/core','495622NXLrnE','search','25COmIqk','push','8638OUCnJm','Provide','toString','InterceptTargetTmp','3TGMubb','apply','__esModule','1529748rvMXJr','INTERCEPT_KEY','10CSNGoY','(((.+)+)+)+$','13VTgEBt','2726185TpsfQo','4023279vxUJmi','IIntercept','2TmDPdy','4472pMkBAC','defineProperty','5887924Ganoyd','48ZUbMGh','Singleton','3507332dEvosK','../types/intercept','Intercept','toUpperCase','match'];a6_0x8e5f=function(){return _0x299c54;};return a6_0x8e5f();}exports[a6_0x56df72(0x16a)]=Intercept;class IIntercept{async[a6_0x56df72(0x16c)](_0x5a4503,_0x188c61,_0x5a4f0e){return!![];}}exports[a6_0x56df72(0x161)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7_0x4cac46=a7_0x4860;(function(_0x192d34,_0x37fa3f){var _0x445221=a7_0x4860,_0xe7a001=_0x192d34();while(!![]){try{var _0x4779cc=-parseInt(_0x445221(0xb0))/0x1+parseInt(_0x445221(0xa4))/0x2+parseInt(_0x445221(0xb4))/0x3*(-parseInt(_0x445221(0xc0))/0x4)+-parseInt(_0x445221(0xa3))/0x5*(-parseInt(_0x445221(0xae))/0x6)+parseInt(_0x445221(0xb1))/0x7+-parseInt(_0x445221(0x9e))/0x8*(-parseInt(_0x445221(0xbc))/0x9)+parseInt(_0x445221(0xbf))/0xa*(-parseInt(_0x445221(0xad))/0xb);if(_0x4779cc===_0x37fa3f)break;else _0xe7a001['push'](_0xe7a001['shift']());}catch(_0x404a21){_0xe7a001['push'](_0xe7a001['shift']());}}}(a7_0x43ef,0x34843));var a7_0x4a093f=(function(){var _0x4bd5b4=!![];return function(_0x16eb1e,_0x44bf26){var _0x1ee4f2=_0x4bd5b4?function(){var _0x316577=a7_0x4860;if(_0x44bf26){var _0x1cb2c2=_0x44bf26[_0x316577(0xb3)](_0x16eb1e,arguments);return _0x44bf26=null,_0x1cb2c2;}}:function(){};return _0x4bd5b4=![],_0x1ee4f2;};}()),a7_0x396576=a7_0x4a093f(this,function(){var _0x4b9571=a7_0x4860;return a7_0x396576[_0x4b9571(0xa7)]()['search'](_0x4b9571(0x9b))[_0x4b9571(0xa7)]()[_0x4b9571(0xbe)](a7_0x396576)[_0x4b9571(0xb8)]('(((.+)+)+)+$');});a7_0x396576();'use strict';var __decorate=this&&this[a7_0x4cac46(0xa2)]||function(_0xa80332,_0x3ff1e1,_0x5662f1,_0x53a36c){var _0x29a3c8=a7_0x4cac46,_0x7eda45=arguments[_0x29a3c8(0xaa)],_0x2bee63=_0x7eda45<0x3?_0x3ff1e1:_0x53a36c===null?_0x53a36c=Object[_0x29a3c8(0xa5)](_0x3ff1e1,_0x5662f1):_0x53a36c,_0x1e859b;if(typeof Reflect===_0x29a3c8(0xb2)&&typeof Reflect[_0x29a3c8(0xb7)]===_0x29a3c8(0xac))_0x2bee63=Reflect[_0x29a3c8(0xb7)](_0xa80332,_0x3ff1e1,_0x5662f1,_0x53a36c);else{for(var _0x6b02e9=_0xa80332['length']-0x1;_0x6b02e9>=0x0;_0x6b02e9--)if(_0x1e859b=_0xa80332[_0x6b02e9])_0x2bee63=(_0x7eda45<0x3?_0x1e859b(_0x2bee63):_0x7eda45>0x3?_0x1e859b(_0x3ff1e1,_0x5662f1,_0x2bee63):_0x1e859b(_0x3ff1e1,_0x5662f1))||_0x2bee63;}return _0x7eda45>0x3&&_0x2bee63&&Object[_0x29a3c8(0xbd)](_0x3ff1e1,_0x5662f1,_0x2bee63),_0x2bee63;},__metadata=this&&this[a7_0x4cac46(0x9c)]||function(_0x569ec6,_0x50630d){var _0x221a6f=a7_0x4cac46;if(typeof Reflect==='object'&&typeof Reflect[_0x221a6f(0xa1)]==='function')return Reflect[_0x221a6f(0xa1)](_0x569ec6,_0x50630d);};Object[a7_0x4cac46(0xbd)](exports,a7_0x4cac46(0x9d),{'value':!![]}),exports[a7_0x4cac46(0xbb)]=void 0x0;function a7_0x4860(_0x24c8c7,_0x28b95b){var _0x403d9f=a7_0x43ef();return a7_0x4860=function(_0x396576,_0x4a093f){_0x396576=_0x396576-0x9b;var _0x43ef48=_0x403d9f[_0x396576];return _0x43ef48;},a7_0x4860(_0x24c8c7,_0x28b95b);}class ApiError extends AnnError{}function a7_0x43ef(){var _0x2539f5=['constructor','1100650Jlqeey','4FBqdLJ','(((.+)+)+)+$','__metadata','__esModule','248RnPJzC','TIMEOUT','验证失败,请重新登录','metadata','__decorate','110aibAFF','510290LUmars','getOwnPropertyDescriptor','TIMEOUT_LOGINTIME','toString','design:type','HEADERS_CHECKCODE','length','请求超时,请重试','function','22yTiHSW','8076FdyjWC','signature验证失败','174704GaCUCl','2763250ZPCgwI','object','apply','1142139OLXuay','HEADERS_DEVICE','请使用正确的设备','decorate','search','HEADERS_LACK','登录超时,请重新登录','ApiError','90333baRlRy','defineProperty'];a7_0x43ef=function(){return _0x2539f5;};return a7_0x43ef();}ApiError[a7_0x4cac46(0x9f)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a7_0x4cac46(0xb5)]=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError[a7_0x4cac46(0xa6)]=0x18e76,__decorate([AnnErrorMsg(a7_0x4cac46(0xab)),__metadata(a7_0x4cac46(0xa8),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a7_0x4cac46(0xa8),Object)],ApiError,a7_0x4cac46(0xb9),void 0x0),__decorate([AnnErrorMsg(a7_0x4cac46(0xb6)),__metadata('design:type',Object)],ApiError,a7_0x4cac46(0xb5),void 0x0),__decorate([AnnErrorMsg(a7_0x4cac46(0xaf)),__metadata(a7_0x4cac46(0xa8),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a7_0x4cac46(0xa0)),__metadata(a7_0x4cac46(0xa8),Object)],ApiError,a7_0x4cac46(0xa9),void 0x0),__decorate([AnnErrorMsg(a7_0x4cac46(0xba)),__metadata(a7_0x4cac46(0xa8),Object)],ApiError,a7_0x4cac46(0xa6),void 0x0),exports[a7_0x4cac46(0xbb)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x1aa671=a8_0x235e;function a8_0x235e(_0x35374c,_0x2bbb2f){const _0x2dca55=a8_0x9dac();return a8_0x235e=function(_0x485674,_0x2b220f){_0x485674=_0x485674-0x1a2;let _0x9dace0=_0x2dca55[_0x485674];return _0x9dace0;},a8_0x235e(_0x35374c,_0x2bbb2f);}(function(_0x4e9824,_0x3eae78){const _0x135559=a8_0x235e,_0x52c1eb=_0x4e9824();while(!![]){try{const _0x346599=parseInt(_0x135559(0x1b2))/0x1+parseInt(_0x135559(0x1ac))/0x2+parseInt(_0x135559(0x1af))/0x3*(parseInt(_0x135559(0x1b4))/0x4)+parseInt(_0x135559(0x1ad))/0x5*(parseInt(_0x135559(0x1a3))/0x6)+parseInt(_0x135559(0x1ae))/0x7+parseInt(_0x135559(0x1a2))/0x8+-parseInt(_0x135559(0x1b1))/0x9;if(_0x346599===_0x3eae78)break;else _0x52c1eb['push'](_0x52c1eb['shift']());}catch(_0x26a972){_0x52c1eb['push'](_0x52c1eb['shift']());}}}(a8_0x9dac,0x3de7f));const a8_0x2b220f=(function(){let _0x3c9f08=!![];return function(_0x3c3729,_0x424ef1){const _0x5a4cb8=_0x3c9f08?function(){const _0x25555f=a8_0x235e;if(_0x424ef1){const _0x11fdc6=_0x424ef1[_0x25555f(0x1b5)](_0x3c3729,arguments);return _0x424ef1=null,_0x11fdc6;}}:function(){};return _0x3c9f08=![],_0x5a4cb8;};}()),a8_0x485674=a8_0x2b220f(this,function(){const _0x1cd249=a8_0x235e;return a8_0x485674[_0x1cd249(0x1b3)]()['search']('(((.+)+)+)+$')['toString']()[_0x1cd249(0x1ab)](a8_0x485674)[_0x1cd249(0x1a6)]('(((.+)+)+)+$');});a8_0x485674();'use strict';function a8_0x9dac(){const _0x2907db=['780hPzTke','1860075HwSFfn','3nnSEPk','AppsConfigTmp','12889170CoNwdt','398898YZXlkA','toString','1241632IGXCZw','apply','3885680VbpRvY','1920phOSlw','@midwayjs/core','defineProperty','search','getAppsConfig','../types/action','get','__esModule','constructor','350072amLKtW'];a8_0x9dac=function(){return _0x2907db;};return a8_0x9dac();}Object[a8_0x1aa671(0x1a5)](exports,a8_0x1aa671(0x1aa),{'value':!![]}),exports[a8_0x1aa671(0x1a7)]=void 0x0;const core_1=require(a8_0x1aa671(0x1a4)),action_1=require(a8_0x1aa671(0x1a8));function getAppsConfig(_0x22c382){const _0x5bb4e9=a8_0x1aa671,_0x4d8834=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x5bb4e9(0x1b0)])||{};return _0x22c382?lodash[_0x5bb4e9(0x1a9)](_0x4d8834,_0x22c382):_0x4d8834;}exports[a8_0x1aa671(0x1a7)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0xb61890=a9_0x3b82;(function(_0x378fdb,_0x7217bb){const _0x2b94d5=a9_0x3b82,_0x257b2a=_0x378fdb();while(!![]){try{const _0x29d393=-parseInt(_0x2b94d5(0x1e3))/0x1*(-parseInt(_0x2b94d5(0x1ba))/0x2)+parseInt(_0x2b94d5(0x1b9))/0x3*(-parseInt(_0x2b94d5(0x1d7))/0x4)+-parseInt(_0x2b94d5(0x208))/0x5+-parseInt(_0x2b94d5(0x1f6))/0x6*(-parseInt(_0x2b94d5(0x1da))/0x7)+parseInt(_0x2b94d5(0x1bd))/0x8+parseInt(_0x2b94d5(0x1ef))/0x9*(parseInt(_0x2b94d5(0x1c9))/0xa)+parseInt(_0x2b94d5(0x200))/0xb*(-parseInt(_0x2b94d5(0x1ee))/0xc);if(_0x29d393===_0x7217bb)break;else _0x257b2a['push'](_0x257b2a['shift']());}catch(_0x4697e8){_0x257b2a['push'](_0x257b2a['shift']());}}}(a9_0x18e0,0xef21c));const a9_0x386b39=(function(){let _0x4cf2ac=!![];return function(_0x493229,_0x4ec38d){const _0x749cf9=_0x4cf2ac?function(){const _0x2bf857=a9_0x3b82;if(_0x4ec38d){const _0xb8a276=_0x4ec38d[_0x2bf857(0x1c7)](_0x493229,arguments);return _0x4ec38d=null,_0xb8a276;}}:function(){};return _0x4cf2ac=![],_0x749cf9;};}()),a9_0x10328a=a9_0x386b39(this,function(){const _0x3e5e7d=a9_0x3b82;return a9_0x10328a[_0x3e5e7d(0x203)]()[_0x3e5e7d(0x1c3)](_0x3e5e7d(0x1ac))['toString']()[_0x3e5e7d(0x1c1)](a9_0x10328a)['search'](_0x3e5e7d(0x1ac));});function a9_0x3b82(_0x14b386,_0x1fc689){const _0x249e5f=a9_0x18e0();return a9_0x3b82=function(_0x10328a,_0x386b39){_0x10328a=_0x10328a-0x1a6;let _0x18e06c=_0x249e5f[_0x10328a];return _0x18e06c;},a9_0x3b82(_0x14b386,_0x1fc689);}a9_0x10328a();'use strict';Object[a9_0xb61890(0x1f1)](exports,a9_0xb61890(0x1e0),{'value':!![]}),exports[a9_0xb61890(0x1e7)]=void 0x0;const lodash_1=require(a9_0xb61890(0x1aa)),validator_1=require(a9_0xb61890(0x1ad)),core_1=require('@midwayjs/core'),core_2=require(a9_0xb61890(0x1e2)),core_3=require('@midwayjs/core'),action_1=require(a9_0xb61890(0x1d6));function getRoutes(_0x223e69={'prefix':'/','module':![]}){const _0x33de7a=a9_0xb61890;var _0x45b9ab,_0x36d09d;const _0x339885=(0x0,core_3[_0x33de7a(0x1ab)])(action_1[_0x33de7a(0x1bb)]),_0x266991={},_0x355ef5=Array[_0x33de7a(0x1fa)](_0x223e69['filter']||[])?_0x223e69['filter']||[]:[_0x223e69[_0x33de7a(0x1bc)]];_0x3e0700:for(const _0x1e7e6a of _0x339885){let _0x20f504=(0x0,core_3[_0x33de7a(0x207)])(action_1[_0x33de7a(0x1bb)],_0x1e7e6a),_0x104aed=(0x0,core_3['getClassMetadata'])(action_1[_0x33de7a(0x1b6)],_0x1e7e6a);if(_0x20f504&&_0x104aed){let _0x5acd60=_0x20f504[_0x33de7a(0x1a7)],_0x152b5f={};if(_0x223e69[_0x33de7a(0x1e4)]&&(0x0,lodash_1['get'])(_0x20f504,_0x33de7a(0x1e4),![])!=_0x223e69[_0x33de7a(0x1e4)])continue _0x3e0700;else{if(_0x223e69[_0x33de7a(0x1e4)]===![]&&!!(0x0,lodash_1[_0x33de7a(0x1f8)])(_0x20f504,_0x33de7a(0x1e4),null))continue _0x3e0700;}if(_0x223e69['prefix']&&!_0x5acd60[_0x33de7a(0x1cc)](_0x223e69[_0x33de7a(0x1a7)]))continue _0x3e0700;_0x5acd60!=='/'?(_0x152b5f[_0x33de7a(0x1e8)]=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504['routerOptions'][_0x33de7a(0x1c8)])||(/^\//['test'](_0x5acd60)?_0x5acd60[_0x33de7a(0x1cb)]('/')[0x1]:_0x5acd60),_0x152b5f[_0x33de7a(0x1a6)]=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1b7)][_0x33de7a(0x1a6)])||_0x152b5f['summary'],_0x152b5f[_0x33de7a(0x1f0)]=[]):(_0x152b5f['summary']=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1b7)][_0x33de7a(0x1c8)])||_0x33de7a(0x1f3),_0x152b5f[_0x33de7a(0x1a6)]=(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1b7)]['description'])||'',_0x152b5f[_0x33de7a(0x1f0)]=[]);_0x223e69['filepath']&&(_0x152b5f[_0x33de7a(0x1c4)]=_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1c4)]);(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1fe)])&&(_0x152b5f[_0x33de7a(0x1a7)]=_0x20f504[_0x33de7a(0x1fe)]);(_0x20f504===null||_0x20f504===void 0x0?void 0x0:_0x20f504[_0x33de7a(0x1e4)])&&(_0x152b5f[_0x33de7a(0x1e4)]=_0x20f504[_0x33de7a(0x1e4)]);let _0x271ad0=(0x0,core_3[_0x33de7a(0x207)])(core_2['INJECT_CUSTOM_PARAM'],_0x1e7e6a)||{};if(typeof _0x104aed[Symbol[_0x33de7a(0x1d3)]]==='function')for(let _0xd33e04 of _0x104aed){if((_0x223e69===null||_0x223e69===void 0x0?void 0x0:_0x223e69['intercept'])&&!(_0xd33e04===null||_0xd33e04===void 0x0?void 0x0:_0xd33e04['intercept']))continue;let _0x436cb8={};_0x436cb8[_0x33de7a(0x206)]=_0xd33e04[_0x33de7a(0x1ae)],_0x436cb8['route']=(_0x5acd60+_0xd33e04[_0x33de7a(0x1d2)])['replace'](/\/{2,}/g,'/'),_0x436cb8[_0x33de7a(0x1e8)]=(_0xd33e04===null||_0xd33e04===void 0x0?void 0x0:_0xd33e04[_0x33de7a(0x1c6)])||_0x152b5f['summary']||'default',_0x436cb8[_0x33de7a(0x1a6)]=(_0xd33e04===null||_0xd33e04===void 0x0?void 0x0:_0xd33e04[_0x33de7a(0x1a6)])||'',_0x436cb8[_0x33de7a(0x1f9)]=[];_0x436cb8[_0x33de7a(0x1ca)]['endsWith']('/')&&(_0x436cb8[_0x33de7a(0x1ca)]=_0x436cb8[_0x33de7a(0x1ca)][_0x33de7a(0x1b3)](0x0,_0x436cb8[_0x33de7a(0x1ca)][_0x33de7a(0x1ea)]-0x1));if(!(0x0,lodash_1[_0x33de7a(0x1cc)])(_0x436cb8['route'],'static/apitest')&&!(0x0,lodash_1[_0x33de7a(0x1cc)])(_0x436cb8['route'],_0x33de7a(0x1f4))&&_0x355ef5['indexOf'](_0x436cb8[_0x33de7a(0x1ca)])===-0x1){if(!(_0x223e69===null||_0x223e69===void 0x0?void 0x0:_0x223e69['noreq'])){let _0x5afbf0=(0x0,core_3[_0x33de7a(0x1d9)])(new _0x1e7e6a(),_0xd33e04[_0x33de7a(0x206)]);for(const _0xe9a940 in _0x5afbf0){let _0xcbaae8=(_0x45b9ab=_0x271ad0[_0xd33e04[_0x33de7a(0x206)]])===null||_0x45b9ab===void 0x0?void 0x0:_0x45b9ab[_0x33de7a(0x1dc)](_0x5f5350=>_0x5f5350['parameterIndex']==_0xe9a940&&_0x5f5350['key']===core_2[_0x33de7a(0x1a9)]&&(_0x5f5350===null||_0x5f5350===void 0x0?void 0x0:_0x5f5350[_0x33de7a(0x1a8)]));if(_0xcbaae8===null||_0xcbaae8===void 0x0?void 0x0:_0xcbaae8[_0x33de7a(0x1a8)]){let _0x115f64=convertTypeToString(_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ed)]||0x0);if([_0x33de7a(0x1cd),_0x33de7a(0x1df)][_0x33de7a(0x1cf)](_0x115f64)!=-0x1&&_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ec)][_0x33de7a(0x1cf)](':')==-0x1&&!_0x436cb8[_0x33de7a(0x1f9)][_0x33de7a(0x1dc)](_0x44a6d7=>_0x44a6d7[_0x33de7a(0x1db)]==_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ec)]))_0x436cb8[_0x33de7a(0x1f9)]['push']({'key':_0xcbaae8[_0x33de7a(0x1a8)][_0x33de7a(0x1ec)],'title':_0xcbaae8['metadata'][_0x33de7a(0x1ec)],'type':convertSchemaType(_0x5afbf0[_0xcbaae8[_0x33de7a(0x1fc)]][_0x33de7a(0x202)]),'required':![],'default':'','desc':''});else{if(_0x115f64==_0x33de7a(0x1ce)){let _0x3f121b=((_0x36d09d=_0xcbaae8===null||_0xcbaae8===void 0x0?void 0x0:_0xcbaae8[_0x33de7a(0x1a8)])===null||_0x36d09d===void 0x0?void 0x0:_0x36d09d[_0x33de7a(0x1ec)])||_0x33de7a(0x1ce);_0x3f121b[_0x33de7a(0x1cf)](':')==-0x1&&!_0x436cb8[_0x33de7a(0x1f9)]['find'](_0x1ee19f=>_0x1ee19f[_0x33de7a(0x1db)]==_0x3f121b&&_0x1ee19f['type']==_0x33de7a(0x1ce))&&_0x436cb8['request']['push']({'key':_0x3f121b,'title':_0x33de7a(0x1b4)+_0x3f121b,'type':_0x33de7a(0x1ce),'required':!![],'default':'','desc':''});}}}else{const _0xf2da0e=(0x0,core_3[_0x33de7a(0x1b1)])(validator_1[_0x33de7a(0x1e6)],_0x5afbf0[_0xe9a940]);_0xf2da0e&&_0x436cb8[_0x33de7a(0x1f9)][_0x33de7a(0x1b8)](...getJoiRequest(_0xf2da0e));}}}_0x152b5f[_0x33de7a(0x1f0)][_0x33de7a(0x1b8)](_0x436cb8);}}if(_0x152b5f['routes'][_0x33de7a(0x1ea)]>0x0){let _0xd5f3cc=_0x266991[_0x5acd60];_0xd5f3cc?(_0xd5f3cc['summary']!=_0x152b5f['summary']&&(_0xd5f3cc[_0x33de7a(0x1e8)]=_0xd5f3cc['summary']+','+_0x152b5f[_0x33de7a(0x1e8)]),_0xd5f3cc['description']!=_0x152b5f[_0x33de7a(0x1a6)]&&(_0xd5f3cc[_0x33de7a(0x1a6)]=_0xd5f3cc[_0x33de7a(0x1a6)]+','+_0x152b5f[_0x33de7a(0x1a6)]),_0xd5f3cc[_0x33de7a(0x1f0)]=_0xd5f3cc[_0x33de7a(0x1f0)][_0x33de7a(0x1ff)](_0x152b5f[_0x33de7a(0x1f0)]),_0x266991[_0x5acd60]=_0xd5f3cc):_0x266991[_0x5acd60]=_0x152b5f;}}}return _0x266991;}exports[a9_0xb61890(0x1e7)]=getRoutes;function a9_0x18e0(){const _0x24529b=['2570uCOJum','route','split','startsWith','query','file','indexOf','flags.default','header','path','iterator','join','object','../types/action','4rSYZiV','allow','getMethodParamTypes','7xVecSg','key','find','FILESSTREAM','FIELDS','body','__esModule','FILESTREAM','@midwayjs/core','102nKNhYG','module','limit','RULES_KEY','getRoutes','summary','children','length','string','propertyData','type','12kmvkoU','50913MTglzw','routes','defineProperty','args','default','/static/apitest','required','1682454wtYuIy','Boolean','get','request','isArray','describe','parameterIndex','BODY','pprefix','concat','25912524OpUlEK','RouteParamTypes','name','toString','flags.label','QUERY','method','getClassMetadata','1423420YpTHRC','description','prefix','metadata','WEB_ROUTER_PARAM_KEY','lodash','listModule','(((.+)+)+)+$','@anncic-api/validator','requestMethod','max','items','getClassExtendedMetadata','rules','substring','文件上传-','min','ACTION_ROUTE_KEY','routerOptions','push','1754751ZkbKIS','13782QPxRvj','ACTION_KEY','filter','14141032hjcEet','File','boolean','array','constructor','flags.presence','search','filepath','PARAM','routerName','apply','tagName'];a9_0x18e0=function(){return _0x24529b;};return a9_0x18e0();}function getJoiRequest(_0x44640b){const _0x7427de=a9_0xb61890,_0x43a328=[];for(let _0xc80770 in _0x44640b){const _0xdc8850={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4d55a6=typeof _0x44640b[_0xc80770][_0x7427de(0x1fb)]=='function'?_0x44640b[_0xc80770][_0x7427de(0x1fb)]():_0x44640b[_0xc80770];_0xdc8850[_0x7427de(0x1db)]=_0xc80770,_0xdc8850['type']=_0x4d55a6[_0x7427de(0x1ed)],_0xdc8850['title']=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,_0x7427de(0x204),_0xc80770),_0xdc8850[_0x7427de(0x1f3)]=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,_0x7427de(0x1d0),''),_0xdc8850[_0x7427de(0x1f5)]=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,_0x7427de(0x1c2),'')==_0x7427de(0x1f5),_0xdc8850[_0x7427de(0x1a6)]=(0x0,lodash_1[_0x7427de(0x1f8)])(_0x4d55a6,'flags.description','');if(_0x4d55a6['type']==_0x7427de(0x1d5))_0xdc8850[_0x7427de(0x1e9)]=getJoiRequest(_0x4d55a6['keys']);else{if(_0x4d55a6[_0x7427de(0x1ed)]==_0x7427de(0x1c0)&&_0x4d55a6[_0x7427de(0x1b0)]&&Array['isArray'](_0x4d55a6['items'])&&_0x4d55a6[_0x7427de(0x1b0)][0x0]){}}_0x4d55a6['allow']&&Array[_0x7427de(0x1fa)](_0x4d55a6['allow'])&&_0x4d55a6[_0x7427de(0x1d8)]['length']>0x0&&(_0xdc8850['description']='只允许:['+_0x4d55a6[_0x7427de(0x1d8)][_0x7427de(0x1d4)](',')+'];'+_0xdc8850[_0x7427de(0x1a6)]);if(_0xdc8850['key']&&_0xdc8850[_0x7427de(0x1ed)]){const _0x218a39={};for(const _0x7681ee of _0x4d55a6[_0x7427de(0x1b2)]||[]){if(_0x7681ee[_0x7427de(0x202)]===_0x7427de(0x1b5)&&_0x7681ee[_0x7427de(0x1f2)])_0x218a39[_0x7427de(0x1b5)]=_0x7681ee['args'][_0x7427de(0x1e5)];else _0x7681ee[_0x7427de(0x202)]===_0x7427de(0x1af)&&(_0x218a39['max']=_0x7681ee[_0x7427de(0x1f2)]['limit']);}_0xdc8850['rules']=_0x218a39;}_0xdc8850[_0x7427de(0x1db)]&&_0xdc8850['title']&&_0x43a328[_0x7427de(0x1b8)](_0xdc8850);}return _0x43a328;}function convertSchemaType(_0x367e47){const _0x12d815=a9_0xb61890;switch(_0x367e47){case'Object':return _0x12d815(0x1d5);case _0x12d815(0x1f7):return _0x12d815(0x1bf);case'Number':return'number';case'String':return _0x12d815(0x1eb);case _0x12d815(0x1be):return _0x12d815(0x1ce);default:return _0x12d815(0x1eb);}}function convertTypeToString(_0x578c68){const _0xf3c566=a9_0xb61890;switch(_0x578c68){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0xf3c566(0x201)][_0xf3c566(0x205)]:return'query';case core_1[_0xf3c566(0x201)][_0xf3c566(0x1c5)]:return'path';case core_1[_0xf3c566(0x201)][_0xf3c566(0x1fd)]:return'body';case core_1[_0xf3c566(0x201)][_0xf3c566(0x1de)]:case core_1['RouteParamTypes'][_0xf3c566(0x1dd)]:case core_1[_0xf3c566(0x201)][_0xf3c566(0x1e1)]:return _0xf3c566(0x1ce);default:return _0xf3c566(0x1d1);}}
|
|
1
|
+
const a9_0x36d40f=a9_0x509c;(function(_0x514659,_0x40bae7){const _0x585ee9=a9_0x509c,_0x21d6be=_0x514659();while(!![]){try{const _0x40c928=parseInt(_0x585ee9(0x13a))/0x1*(-parseInt(_0x585ee9(0x148))/0x2)+-parseInt(_0x585ee9(0x10b))/0x3*(parseInt(_0x585ee9(0xff))/0x4)+-parseInt(_0x585ee9(0x10f))/0x5*(parseInt(_0x585ee9(0xfb))/0x6)+-parseInt(_0x585ee9(0x12e))/0x7*(parseInt(_0x585ee9(0x113))/0x8)+parseInt(_0x585ee9(0x147))/0x9+parseInt(_0x585ee9(0x144))/0xa+parseInt(_0x585ee9(0x106))/0xb*(parseInt(_0x585ee9(0xfc))/0xc);if(_0x40c928===_0x40bae7)break;else _0x21d6be['push'](_0x21d6be['shift']());}catch(_0x5d15ed){_0x21d6be['push'](_0x21d6be['shift']());}}}(a9_0x2d92,0x6ea5e));const a9_0x5c141e=(function(){let _0x55fbef=!![];return function(_0x138fb9,_0x505a45){const _0x4e1583=_0x55fbef?function(){const _0x553108=a9_0x509c;if(_0x505a45){const _0x3e86d5=_0x505a45[_0x553108(0x12b)](_0x138fb9,arguments);return _0x505a45=null,_0x3e86d5;}}:function(){};return _0x55fbef=![],_0x4e1583;};}()),a9_0x2751f2=a9_0x5c141e(this,function(){const _0x456cda=a9_0x509c;return a9_0x2751f2[_0x456cda(0x125)]()[_0x456cda(0x10c)](_0x456cda(0x12a))[_0x456cda(0x125)]()[_0x456cda(0x117)](a9_0x2751f2)[_0x456cda(0x10c)](_0x456cda(0x12a));});a9_0x2751f2();function a9_0x509c(_0x25de17,_0x2df0a7){const _0x1c1f8e=a9_0x2d92();return a9_0x509c=function(_0x2751f2,_0x5c141e){_0x2751f2=_0x2751f2-0xe6;let _0x2d925c=_0x1c1f8e[_0x2751f2];return _0x2d925c;},a9_0x509c(_0x25de17,_0x2df0a7);}function a9_0x2d92(){const _0x1954a7=['static/apitest','limit','module','route','push','startsWith','getClassMetadata','@midwayjs/core','__esModule','toString','items','Boolean','allow','@anncic-api/validator','(((.+)+)+)+$','apply','flags.presence','WEB_ROUTER_PARAM_KEY','32424mzHCOC','noreq','min','flags.label','QUERY','function','method','FILESTREAM','string','boolean','getRoutes','../types/action','1Ekxzxs','concat','get','test','path','flags.description','routerOptions','intercept','prefix','parameterIndex','3271920WfEmEo','propertyData','endsWith','6004053sOSRXr','1169330AOufeS','FILESSTREAM','title','rules','listModule','array','filter','indexOf','describe','file','String','Object','getMethodParamTypes','summary','routes','文件上传-','getClassExtendedMetadata','iterator','required','request','filepath','header','/static/apitest','length','3463194muiCtg','24MonHoD','pprefix','find','4468DGwbEP','max','keys','key','INJECT_CUSTOM_PARAM','ACTION_ROUTE_KEY','description','5040574CYtOTM','name','RouteParamTypes','ACTION_KEY','children','309zmnPfl','search','type','Number','5JlPGGq','flags.default','substring','default','312EqceOn','body','isArray','tagName','constructor','query','metadata','args','object'];a9_0x2d92=function(){return _0x1954a7;};return a9_0x2d92();}'use strict';Object['defineProperty'](exports,a9_0x36d40f(0x124),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x36d40f(0x129)),core_1=require(a9_0x36d40f(0x123)),core_2=require('@midwayjs/core'),core_3=require(a9_0x36d40f(0x123)),action_1=require(a9_0x36d40f(0x139));function getRoutes(_0xf639ed={'prefix':'/','module':![]}){const _0x35d8f4=a9_0x36d40f;var _0x498a50,_0x5e5012;const _0x37290b=(0x0,core_3[_0x35d8f4(0xe7)])(action_1[_0x35d8f4(0x109)]),_0x414f54={},_0x51b89b=Array['isArray'](_0xf639ed[_0x35d8f4(0xe9)]||[])?_0xf639ed[_0x35d8f4(0xe9)]||[]:[_0xf639ed['filter']];_0x1f50f0:for(const _0x1fe9b7 of _0x37290b){let _0xfd68f1=(0x0,core_3[_0x35d8f4(0x122)])(action_1['ACTION_KEY'],_0x1fe9b7),_0x4644cc=(0x0,core_3[_0x35d8f4(0x122)])(action_1[_0x35d8f4(0x104)],_0x1fe9b7);if(_0xfd68f1&&_0x4644cc){let _0x3d2559=_0xfd68f1['prefix'],_0x330ccc={};if(_0xf639ed['module']&&(0x0,lodash_1['get'])(_0xfd68f1,_0x35d8f4(0x11e),![])!=_0xf639ed['module'])continue _0x1f50f0;else{if(_0xf639ed[_0x35d8f4(0x11e)]===![]&&!!(0x0,lodash_1['get'])(_0xfd68f1,'module',null))continue _0x1f50f0;}if(_0xf639ed['prefix']&&!_0x3d2559[_0x35d8f4(0x121)](_0xf639ed[_0x35d8f4(0x142)]))continue _0x1f50f0;_0x3d2559!=='/'?(_0x330ccc['summary']=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1['routerOptions'][_0x35d8f4(0x116)])||(/^\//[_0x35d8f4(0x13d)](_0x3d2559)?_0x3d2559['split']('/')[0x1]:_0x3d2559),_0x330ccc['description']=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x140)][_0x35d8f4(0x105)])||_0x330ccc['summary'],_0x330ccc['routes']=[]):(_0x330ccc['summary']=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x140)][_0x35d8f4(0x116)])||_0x35d8f4(0x112),_0x330ccc[_0x35d8f4(0x105)]=(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x140)][_0x35d8f4(0x105)])||'',_0x330ccc[_0x35d8f4(0xf1)]=[]);_0xf639ed[_0x35d8f4(0xf7)]&&(_0x330ccc[_0x35d8f4(0xf7)]=_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1['filepath']);(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0xfd)])&&(_0x330ccc[_0x35d8f4(0x142)]=_0xfd68f1['pprefix']);(_0xfd68f1===null||_0xfd68f1===void 0x0?void 0x0:_0xfd68f1[_0x35d8f4(0x11e)])&&(_0x330ccc[_0x35d8f4(0x11e)]=_0xfd68f1[_0x35d8f4(0x11e)]);let _0x2ea1ad=(0x0,core_3[_0x35d8f4(0x122)])(core_2[_0x35d8f4(0x103)],_0x1fe9b7)||{};if(typeof _0x4644cc[Symbol[_0x35d8f4(0xf4)]]===_0x35d8f4(0x133))for(let _0x1349c3 of _0x4644cc){if((_0xf639ed===null||_0xf639ed===void 0x0?void 0x0:_0xf639ed['intercept'])&&!(_0x1349c3===null||_0x1349c3===void 0x0?void 0x0:_0x1349c3[_0x35d8f4(0x141)]))continue;let _0x495a9a={};_0x495a9a[_0x35d8f4(0x134)]=_0x1349c3['requestMethod'],_0x495a9a['route']=(_0x3d2559+_0x1349c3[_0x35d8f4(0x13e)])['replace'](/\/{2,}/g,'/'),_0x495a9a[_0x35d8f4(0xf0)]=(_0x1349c3===null||_0x1349c3===void 0x0?void 0x0:_0x1349c3['routerName'])||_0x330ccc[_0x35d8f4(0xf0)]||_0x35d8f4(0x112),_0x495a9a[_0x35d8f4(0x105)]=(_0x1349c3===null||_0x1349c3===void 0x0?void 0x0:_0x1349c3['description'])||'',_0x495a9a['request']=[];_0x495a9a[_0x35d8f4(0x11f)][_0x35d8f4(0x146)]('/')&&(_0x495a9a[_0x35d8f4(0x11f)]=_0x495a9a[_0x35d8f4(0x11f)][_0x35d8f4(0x111)](0x0,_0x495a9a[_0x35d8f4(0x11f)][_0x35d8f4(0xfa)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x495a9a[_0x35d8f4(0x11f)],_0x35d8f4(0x11c))&&!(0x0,lodash_1[_0x35d8f4(0x121)])(_0x495a9a[_0x35d8f4(0x11f)],_0x35d8f4(0xf9))&&_0x51b89b[_0x35d8f4(0xea)](_0x495a9a['route'])===-0x1){if(!(_0xf639ed===null||_0xf639ed===void 0x0?void 0x0:_0xf639ed[_0x35d8f4(0x12f)])){let _0x166915=(0x0,core_3[_0x35d8f4(0xef)])(new _0x1fe9b7(),_0x1349c3[_0x35d8f4(0x134)]);for(const _0x23b3e7 in _0x166915){let _0x30971d=(_0x498a50=_0x2ea1ad[_0x1349c3['method']])===null||_0x498a50===void 0x0?void 0x0:_0x498a50['find'](_0x19bc4f=>_0x19bc4f[_0x35d8f4(0x143)]==_0x23b3e7&&_0x19bc4f[_0x35d8f4(0x102)]===core_2[_0x35d8f4(0x12d)]&&(_0x19bc4f===null||_0x19bc4f===void 0x0?void 0x0:_0x19bc4f['metadata']));if(_0x30971d===null||_0x30971d===void 0x0?void 0x0:_0x30971d[_0x35d8f4(0x119)]){let _0x59cdb1=convertTypeToString(_0x30971d['metadata'][_0x35d8f4(0x10d)]||0x0);if([_0x35d8f4(0x118),_0x35d8f4(0x114)]['indexOf'](_0x59cdb1)!=-0x1&&_0x30971d[_0x35d8f4(0x119)]['propertyData'][_0x35d8f4(0xea)](':')==-0x1&&!_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0xfe)](_0x562f27=>_0x562f27[_0x35d8f4(0x102)]==_0x30971d[_0x35d8f4(0x119)]['propertyData']))_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0x120)]({'key':_0x30971d[_0x35d8f4(0x119)][_0x35d8f4(0x145)],'title':_0x30971d[_0x35d8f4(0x119)][_0x35d8f4(0x145)],'type':convertSchemaType(_0x166915[_0x30971d[_0x35d8f4(0x143)]][_0x35d8f4(0x107)]),'required':![],'default':'','desc':''});else{if(_0x59cdb1==_0x35d8f4(0xec)){let _0x583400=((_0x5e5012=_0x30971d===null||_0x30971d===void 0x0?void 0x0:_0x30971d[_0x35d8f4(0x119)])===null||_0x5e5012===void 0x0?void 0x0:_0x5e5012[_0x35d8f4(0x145)])||_0x35d8f4(0xec);_0x583400['indexOf'](':')==-0x1&&!_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0xfe)](_0x5c7483=>_0x5c7483[_0x35d8f4(0x102)]==_0x583400&&_0x5c7483[_0x35d8f4(0x10d)]=='file')&&_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0x120)]({'key':_0x583400,'title':_0x35d8f4(0xf2)+_0x583400,'type':_0x35d8f4(0xec),'required':!![],'default':'','desc':''});}}}else{const _0x3ab97c=(0x0,core_3[_0x35d8f4(0xf3)])(validator_1['RULES_KEY'],_0x166915[_0x23b3e7]);_0x3ab97c&&_0x495a9a[_0x35d8f4(0xf6)][_0x35d8f4(0x120)](...getJoiRequest(_0x3ab97c));}}}_0x330ccc['routes'][_0x35d8f4(0x120)](_0x495a9a);}}if(_0x330ccc['routes'][_0x35d8f4(0xfa)]>0x0){let _0x10913d=_0x414f54[_0x3d2559];_0x10913d?(_0x10913d[_0x35d8f4(0xf0)]!=_0x330ccc['summary']&&(_0x10913d[_0x35d8f4(0xf0)]=_0x10913d[_0x35d8f4(0xf0)]+','+_0x330ccc[_0x35d8f4(0xf0)]),_0x10913d[_0x35d8f4(0x105)]!=_0x330ccc[_0x35d8f4(0x105)]&&(_0x10913d[_0x35d8f4(0x105)]=_0x10913d['description']+','+_0x330ccc['description']),_0x10913d[_0x35d8f4(0xf1)]=_0x10913d['routes'][_0x35d8f4(0x13b)](_0x330ccc[_0x35d8f4(0xf1)]),_0x414f54[_0x3d2559]=_0x10913d):_0x414f54[_0x3d2559]=_0x330ccc;}}}return _0x414f54;}exports[a9_0x36d40f(0x138)]=getRoutes;function getJoiRequest(_0x29f370){const _0x1b4934=a9_0x36d40f,_0xfd66fe=[];for(let _0x1a2a5c in _0x29f370){const _0x566eb0={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x158b1a=typeof _0x29f370[_0x1a2a5c][_0x1b4934(0xeb)]=='function'?_0x29f370[_0x1a2a5c][_0x1b4934(0xeb)]():_0x29f370[_0x1a2a5c];_0x566eb0[_0x1b4934(0x102)]=_0x1a2a5c,_0x566eb0[_0x1b4934(0x10d)]=_0x158b1a['type'],_0x566eb0[_0x1b4934(0x14a)]=(0x0,lodash_1['get'])(_0x158b1a,_0x1b4934(0x131),_0x1a2a5c),_0x566eb0['default']=(0x0,lodash_1[_0x1b4934(0x13c)])(_0x158b1a,_0x1b4934(0x110),''),_0x566eb0[_0x1b4934(0xf5)]=(0x0,lodash_1[_0x1b4934(0x13c)])(_0x158b1a,_0x1b4934(0x12c),'')==_0x1b4934(0xf5),_0x566eb0['description']=(0x0,lodash_1[_0x1b4934(0x13c)])(_0x158b1a,_0x1b4934(0x13f),'');if(_0x158b1a[_0x1b4934(0x10d)]=='object')_0x566eb0[_0x1b4934(0x10a)]=getJoiRequest(_0x158b1a[_0x1b4934(0x101)]);else{if(_0x158b1a[_0x1b4934(0x10d)]==_0x1b4934(0xe8)&&_0x158b1a['items']&&Array['isArray'](_0x158b1a[_0x1b4934(0x126)])&&_0x158b1a[_0x1b4934(0x126)][0x0]){}}_0x158b1a[_0x1b4934(0x128)]&&Array[_0x1b4934(0x115)](_0x158b1a[_0x1b4934(0x128)])&&_0x158b1a['allow'][_0x1b4934(0xfa)]>0x0&&(_0x566eb0['description']='只允许:['+_0x158b1a['allow']['join'](',')+'];'+_0x566eb0[_0x1b4934(0x105)]);if(_0x566eb0[_0x1b4934(0x102)]&&_0x566eb0['type']){const _0x722da9={};for(const _0x24c007 of _0x158b1a[_0x1b4934(0xe6)]||[]){if(_0x24c007[_0x1b4934(0x107)]===_0x1b4934(0x130)&&_0x24c007[_0x1b4934(0x11a)])_0x722da9[_0x1b4934(0x130)]=_0x24c007[_0x1b4934(0x11a)][_0x1b4934(0x11d)];else _0x24c007[_0x1b4934(0x107)]===_0x1b4934(0x100)&&(_0x722da9[_0x1b4934(0x100)]=_0x24c007['args'][_0x1b4934(0x11d)]);}_0x566eb0[_0x1b4934(0xe6)]=_0x722da9;}_0x566eb0[_0x1b4934(0x102)]&&_0x566eb0[_0x1b4934(0x14a)]&&_0xfd66fe[_0x1b4934(0x120)](_0x566eb0);}return _0xfd66fe;}function convertSchemaType(_0x490208){const _0x14847f=a9_0x36d40f;switch(_0x490208){case _0x14847f(0xee):return _0x14847f(0x11b);case _0x14847f(0x127):return _0x14847f(0x137);case _0x14847f(0x10e):return'number';case _0x14847f(0xed):return _0x14847f(0x136);case'File':return _0x14847f(0xec);default:return _0x14847f(0x136);}}function convertTypeToString(_0x5652c6){const _0x5c848b=a9_0x36d40f;switch(_0x5652c6){case core_1[_0x5c848b(0x108)]['HEADERS']:return'header';case core_1['RouteParamTypes'][_0x5c848b(0x132)]:return _0x5c848b(0x118);case core_1[_0x5c848b(0x108)]['PARAM']:return _0x5c848b(0x13e);case core_1[_0x5c848b(0x108)]['BODY']:return _0x5c848b(0x114);case core_1[_0x5c848b(0x108)]['FIELDS']:case core_1[_0x5c848b(0x108)][_0x5c848b(0x149)]:case core_1[_0x5c848b(0x108)][_0x5c848b(0x135)]:return _0x5c848b(0xec);default:return _0x5c848b(0xf8);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0xa98403=a10_0x2b36;(function(_0x16404d,_0x503288){var _0x2cbf3a=a10_0x2b36,_0x584a7c=_0x16404d();while(!![]){try{var _0x25b0f9=parseInt(_0x2cbf3a(0xa7))/0x1*(-parseInt(_0x2cbf3a(0x9e))/0x2)+parseInt(_0x2cbf3a(0xa2))/0x3+-parseInt(_0x2cbf3a(0xd5))/0x4+-parseInt(_0x2cbf3a(0xaa))/0x5+parseInt(_0x2cbf3a(0xcd))/0x6*(parseInt(_0x2cbf3a(0xb5))/0x7)+-parseInt(_0x2cbf3a(0xbe))/0x8+parseInt(_0x2cbf3a(0xc6))/0x9;if(_0x25b0f9===_0x503288)break;else _0x584a7c['push'](_0x584a7c['shift']());}catch(_0x106860){_0x584a7c['push'](_0x584a7c['shift']());}}}(a10_0x2ed6,0xe1408));var a10_0xd20db8=(function(){var _0x5e8ad5=!![];return function(_0x4f665,_0x3acc00){var _0x3d7983=_0x5e8ad5?function(){if(_0x3acc00){var _0x31a649=_0x3acc00['apply'](_0x4f665,arguments);return _0x3acc00=null,_0x31a649;}}:function(){};return _0x5e8ad5=![],_0x3d7983;};}()),a10_0x345656=a10_0xd20db8(this,function(){var _0x133ff5=a10_0x2b36;return a10_0x345656['toString']()[_0x133ff5(0xd0)]('(((.+)+)+)+$')['toString']()[_0x133ff5(0xb8)](a10_0x345656)[_0x133ff5(0xd0)](_0x133ff5(0xa3));});a10_0x345656();'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x2772c6,_0x776a07,_0x529fa1,_0x5ae587){var _0x3ae6fd=a10_0x2b36;if(_0x5ae587===undefined)_0x5ae587=_0x529fa1;var _0x1235e0=Object['getOwnPropertyDescriptor'](_0x776a07,_0x529fa1);(!_0x1235e0||(_0x3ae6fd(0x9f)in _0x1235e0?!_0x776a07[_0x3ae6fd(0xb3)]:_0x1235e0['writable']||_0x1235e0[_0x3ae6fd(0xcf)]))&&(_0x1235e0={'enumerable':!![],'get':function(){return _0x776a07[_0x529fa1];}}),Object[_0x3ae6fd(0xb4)](_0x2772c6,_0x5ae587,_0x1235e0);}:function(_0x5cd92c,_0x877404,_0x1b5d8b,_0x16923a){if(_0x16923a===undefined)_0x16923a=_0x1b5d8b;_0x5cd92c[_0x16923a]=_0x877404[_0x1b5d8b];}),__exportStar=this&&this['__exportStar']||function(_0x3a652f,_0xdc2662){var _0x59e8e0=a10_0x2b36;for(var _0x15e7fd in _0x3a652f)if(_0x15e7fd!=='default'&&!Object['prototype']['hasOwnProperty'][_0x59e8e0(0xda)](_0xdc2662,_0x15e7fd))__createBinding(_0xdc2662,_0x3a652f,_0x15e7fd);};Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xb3),{'value':!![]}),exports[a10_0xa98403(0xbf)]=exports['ScopeEnum']=exports[a10_0xa98403(0xc8)]=exports[a10_0xa98403(0xae)]=exports[a10_0xa98403(0xa9)]=exports[a10_0xa98403(0xa0)]=exports[a10_0xa98403(0xa8)]=exports[a10_0xa98403(0xbd)]=exports['App']=exports[a10_0xa98403(0xab)]=exports[a10_0xa98403(0xca)]=exports['Query']=exports[a10_0xa98403(0xc5)]=exports[a10_0xa98403(0xd4)]=exports[a10_0xa98403(0xdc)]=exports[a10_0xa98403(0xc1)]=exports[a10_0xa98403(0xc2)]=exports['Configuration']=exports['ValidatorService']=exports[a10_0xa98403(0xd1)]=exports[a10_0xa98403(0xa5)]=exports[a10_0xa98403(0xb7)]=exports[a10_0xa98403(0xbb)]=exports[a10_0xa98403(0xc4)]=exports[a10_0xa98403(0xd6)]=exports[a10_0xa98403(0xb9)]=exports['IIntercept']=exports[a10_0xa98403(0xa6)]=exports[a10_0xa98403(0xaf)]=exports[a10_0xa98403(0xad)]=exports[a10_0xa98403(0xbc)]=void 0x0;const getAppsConfig_1=require(a10_0xa98403(0xa1));Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xbf),{'enumerable':!![],'get':function(){var _0x3feaca=a10_0xa98403;return getAppsConfig_1[_0x3feaca(0xbf)];}}),__exportStar(require(a10_0xa98403(0xb1)),exports),__exportStar(require(a10_0xa98403(0xd3)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xbc),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});function a10_0x2ed6(){var _0x2b61c5=['Init','@anncic-api/event','Action','Scope','Apitest','App','./types/common','./decorator/Action','__esModule','defineProperty','714UOOcaE','./service/ApiService','ApiService','constructor','getRoutes','./service/ExcelService','EventService','Api','Config','12228192NvLlKa','getAppsConfig','@midwayjs/core','Files','File','ValidatorService','CacheService','Param','39939246naRalm','Configuration','Singleton','./decorator/Intercept','Headers','./exception/ApiError','CustomConfiguration','8562LZZcOd','./configuration','configurable','search','ValidatorError','ScopeEnum','./service/ApitestService','Body','3307040CLXFnj','ApiError','@anncic-api/validator','Query','@anncic-api/cache','call','./helper/getRoutes','Fields','2dsfNbU','get','Provide','./helper/getAppsConfig','1003224uMkDkJ','(((.+)+)+)+$','./decorator/ActionApitest','ExcelService','Intercept','159503stEInP','Logger','Inject','7401185FEFUQF'];a10_0x2ed6=function(){return _0x2b61c5;};return a10_0x2ed6();}var Action_1=require(a10_0xa98403(0xb2));Object['defineProperty'](exports,a10_0xa98403(0xad),{'enumerable':!![],'get':function(){var _0xd7a97f=a10_0xa98403;return Action_1[_0xd7a97f(0xad)];}});var ActionApitest_1=require(a10_0xa98403(0xa4));Object[a10_0xa98403(0xb4)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x3c08c5=a10_0xa98403;return ActionApitest_1[_0x3c08c5(0xaf)];}});var Intercept_1=require(a10_0xa98403(0xc9));Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xa6),{'enumerable':!![],'get':function(){var _0x54debe=a10_0xa98403;return Intercept_1[_0x54debe(0xa6)];}}),Object[a10_0xa98403(0xb4)](exports,'IIntercept',{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a10_0xa98403(0xdb));Object['defineProperty'](exports,a10_0xa98403(0xb9),{'enumerable':!![],'get':function(){var _0x53d6e4=a10_0xa98403;return getRoutes_1[_0x53d6e4(0xb9)];}});var ApiError_1=require(a10_0xa98403(0xcb));Object['defineProperty'](exports,a10_0xa98403(0xd6),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a10_0xa98403(0xd9));Object['defineProperty'](exports,a10_0xa98403(0xc4),{'enumerable':!![],'get':function(){var _0x2ac9ad=a10_0xa98403;return cache_1[_0x2ac9ad(0xc4)];}});var event_1=require(a10_0xa98403(0xac));Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xbb),{'enumerable':!![],'get':function(){var _0x490c32=a10_0xa98403;return event_1[_0x490c32(0xbb)];}});var ApiService_1=require(a10_0xa98403(0xb6));Object['defineProperty'](exports,a10_0xa98403(0xb7),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a10_0xa98403(0xba));Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xa5),{'enumerable':!![],'get':function(){var _0x1a3ae5=a10_0xa98403;return ExcelService_1[_0x1a3ae5(0xa5)];}});var validator_1=require(a10_0xa98403(0xd7));Object[a10_0xa98403(0xb4)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x59f8d8=a10_0xa98403;return validator_1[_0x59f8d8(0xd1)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xc3),{'enumerable':!![],'get':function(){var _0x47799b=a10_0xa98403;return validator_1[_0x47799b(0xc3)];}});var configuration_1=require(a10_0xa98403(0xce));function a10_0x2b36(_0x4561a8,_0x2175ea){var _0x56c473=a10_0x2ed6();return a10_0x2b36=function(_0x345656,_0xd20db8){_0x345656=_0x345656-0x9e;var _0x2ed6fa=_0x56c473[_0x345656];return _0x2ed6fa;},a10_0x2b36(_0x4561a8,_0x2175ea);}Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xc7),{'enumerable':!![],'get':function(){var _0x40978a=a10_0xa98403;return configuration_1[_0x40978a(0xcc)];}});var core_1=require(a10_0xa98403(0xc0));Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xc2),{'enumerable':!![],'get':function(){var _0x3c7e16=a10_0xa98403;return core_1[_0x3c7e16(0xc2)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xc1),{'enumerable':!![],'get':function(){var _0x169a63=a10_0xa98403;return core_1[_0x169a63(0xc1)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xdc),{'enumerable':!![],'get':function(){var _0x12537f=a10_0xa98403;return core_1[_0x12537f(0xdc)];}}),Object['defineProperty'](exports,'Body',{'enumerable':!![],'get':function(){var _0x535b87=a10_0xa98403;return core_1[_0x535b87(0xd4)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xc5),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xd8),{'enumerable':!![],'get':function(){var _0x22e35=a10_0xa98403;return core_1[_0x22e35(0xd8)];}}),Object['defineProperty'](exports,a10_0xa98403(0xca),{'enumerable':!![],'get':function(){var _0x354dcd=a10_0xa98403;return core_1[_0x354dcd(0xca)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xab),{'enumerable':!![],'get':function(){var _0x4b5a15=a10_0xa98403;return core_1[_0x4b5a15(0xab)];}});var core_2=require(a10_0xa98403(0xc0));Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xb0),{'enumerable':!![],'get':function(){var _0x201289=a10_0xa98403;return core_2[_0x201289(0xb0)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xbd),{'enumerable':!![],'get':function(){var _0x1c0c56=a10_0xa98403;return core_2[_0x1c0c56(0xbd)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xa8),{'enumerable':!![],'get':function(){var _0x794096=a10_0xa98403;return core_2[_0x794096(0xa8)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xa0),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xa9),{'enumerable':!![],'get':function(){var _0x1e38b7=a10_0xa98403;return core_2[_0x1e38b7(0xa9)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x5e7dce=a10_0xa98403;return core_2[_0x5e7dce(0xae)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xc8),{'enumerable':!![],'get':function(){var _0x17bd83=a10_0xa98403;return core_2[_0x17bd83(0xc8)];}}),Object[a10_0xa98403(0xb4)](exports,a10_0xa98403(0xd2),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a10_0xa98403(0xbf)]=getAppsConfig_1[a10_0xa98403(0xbf)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x52df4e=a11_0x5f58;(function(_0x58489d,_0x514fc2){var _0x39a1de=a11_0x5f58,_0x44abc5=_0x58489d();while(!![]){try{var _0x3794fd=parseInt(_0x39a1de(0xff))/0x1+-parseInt(_0x39a1de(0xd4))/0x2*(parseInt(_0x39a1de(0xcb))/0x3)+-parseInt(_0x39a1de(0xd0))/0x4*(parseInt(_0x39a1de(0xdd))/0x5)+-parseInt(_0x39a1de(0xf5))/0x6+parseInt(_0x39a1de(0xe1))/0x7*(-parseInt(_0x39a1de(0xe2))/0x8)+-parseInt(_0x39a1de(0xe8))/0x9+-parseInt(_0x39a1de(0xdc))/0xa*(-parseInt(_0x39a1de(0xfd))/0xb);if(_0x3794fd===_0x514fc2)break;else _0x44abc5['push'](_0x44abc5['shift']());}catch(_0x24c1e9){_0x44abc5['push'](_0x44abc5['shift']());}}}(a11_0xc5c7,0x6e864));var a11_0x59c050=(function(){var _0x17cdc0=!![];return function(_0x17f1e6,_0x540b0e){var _0x18ffea=_0x17cdc0?function(){if(_0x540b0e){var _0xee46d8=_0x540b0e['apply'](_0x17f1e6,arguments);return _0x540b0e=null,_0xee46d8;}}:function(){};return _0x17cdc0=![],_0x18ffea;};}()),a11_0x2c00e6=a11_0x59c050(this,function(){var _0x49e3eb=a11_0x5f58;return a11_0x2c00e6[_0x49e3eb(0xd5)]()[_0x49e3eb(0xca)](_0x49e3eb(0xcd))[_0x49e3eb(0xd5)]()[_0x49e3eb(0xd6)](a11_0x2c00e6)[_0x49e3eb(0xca)](_0x49e3eb(0xcd));});a11_0x2c00e6();'use strict';function a11_0xc5c7(){var _0x5e9549=['logintime','undefined','5097138ZMoNte','TIMEOUT','Provide','@midwayjs/core','ApiService','join','device','缺少头信息:','11390885kMxaar','checkcode','502719WiSbOU','logintimeout','ApiError','Singleton','TIMEOUT_LOGINTIME','fromEntries','checksign','getOwnPropertyDescriptor','secret=','signature','length','Scope','object','search','255uToMdB','metadata','(((.+)+)+)+$','anncicapi','decorate','284JAzSVr','now','缺少头信息:signature','__metadata','8884aoelLo','toString','constructor','getsign','defineProperty','push','function','token','30XpninA','33505KCySWX','secret','__esModule','map','7klbFxM','5838936JpSVmY','password','design:type','devices','HEADERS_SIGNATURE','entries','6514965RnfRJU','ScopeEnum','timeout','HEADERS_LACK','MD5','abs','config','toLowerCase','sort','../exception/ApiError','requesttime'];a11_0xc5c7=function(){return _0x5e9549;};return a11_0xc5c7();}var __decorate=this&&this['__decorate']||function(_0x242852,_0xdb0907,_0x1a160f,_0x3ca2ff){var _0x1385a2=a11_0x5f58,_0x2373f9=arguments[_0x1385a2(0xc7)],_0x4b4bd5=_0x2373f9<0x3?_0xdb0907:_0x3ca2ff===null?_0x3ca2ff=Object[_0x1385a2(0xc4)](_0xdb0907,_0x1a160f):_0x3ca2ff,_0x1d32d4;if(typeof Reflect===_0x1385a2(0xc9)&&typeof Reflect['decorate']===_0x1385a2(0xda))_0x4b4bd5=Reflect[_0x1385a2(0xcf)](_0x242852,_0xdb0907,_0x1a160f,_0x3ca2ff);else{for(var _0x142786=_0x242852[_0x1385a2(0xc7)]-0x1;_0x142786>=0x0;_0x142786--)if(_0x1d32d4=_0x242852[_0x142786])_0x4b4bd5=(_0x2373f9<0x3?_0x1d32d4(_0x4b4bd5):_0x2373f9>0x3?_0x1d32d4(_0xdb0907,_0x1a160f,_0x4b4bd5):_0x1d32d4(_0xdb0907,_0x1a160f))||_0x4b4bd5;}return _0x2373f9>0x3&&_0x4b4bd5&&Object[_0x1385a2(0xd8)](_0xdb0907,_0x1a160f,_0x4b4bd5),_0x4b4bd5;},__metadata=this&&this[a11_0x52df4e(0xd3)]||function(_0x26f1c2,_0x52ad82){var _0x555acf=a11_0x52df4e;if(typeof Reflect==='object'&&typeof Reflect[_0x555acf(0xcc)]===_0x555acf(0xda))return Reflect['metadata'](_0x26f1c2,_0x52ad82);};Object[a11_0x52df4e(0xd8)](exports,a11_0x52df4e(0xdf),{'value':!![]}),exports[a11_0x52df4e(0xf9)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a11_0x52df4e(0xf8)),ApiError_1=require(a11_0x52df4e(0xf1));function a11_0x5f58(_0x58f106,_0x467c13){var _0xf5ff38=a11_0xc5c7();return a11_0x5f58=function(_0x2c00e6,_0x59c050){_0x2c00e6=_0x2c00e6-0xc0;var _0xc5c78c=_0xf5ff38[_0x2c00e6];return _0xc5c78c;},a11_0x5f58(_0x58f106,_0x467c13);}let ApiService=class ApiService{[a11_0x52df4e(0xe3)](_0x33e4ad){var _0x4d1703=a11_0x52df4e,_0x380393;return _0x33e4ad?(0x0,crypto_js_1[_0x4d1703(0xec)])(''+_0x33e4ad+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x4d1703(0xec)])(''+_0x33e4ad)[_0x4d1703(0xd5)]()+(''+((_0x380393=this[_0x4d1703(0xee)])===null||_0x380393===void 0x0?void 0x0:_0x380393['password'])))[_0x4d1703(0xd5)]())[_0x4d1703(0xd5)]():'';}['getcheck'](_0x47d27a,_0x3f7862,_0x3820a3=Date[a11_0x52df4e(0xd1)]()){var _0x5a7278=a11_0x52df4e;return{'Token':_0x47d27a,'Logintime':_0x3820a3,'Checkcode':this[_0x5a7278(0xfe)](_0x47d27a,_0x3f7862,_0x3820a3)};}['getsign'](_0x45b7cb={}){var _0x3d5557=a11_0x52df4e,_0x38a547,_0x46d2dd;const _0x1e20fb=[],_0x24d8cc=Object[_0x3d5557(0xc2)](Object[_0x3d5557(0xe7)](_0x45b7cb)[_0x3d5557(0xe0)](_0x2794a6=>[_0x2794a6[0x0][_0x3d5557(0xef)](),_0x2794a6[0x1]]));for(let _0x3a26a9 of[_0x3d5557(0xfb),_0x3d5557(0xf2),_0x3d5557(0xdb),'logintime',_0x3d5557(0xfe)]){if(typeof _0x24d8cc[_0x3a26a9]==_0x3d5557(0xf4))throw new AnnError(ApiError_1[_0x3d5557(0x101)][_0x3d5557(0xeb)],{'message':_0x3d5557(0xfc)+_0x3a26a9});_0x1e20fb['push'](_0x3a26a9+'='+_0x24d8cc[_0x3a26a9]);}_0x24d8cc[_0x3d5557(0xf2)]&&((_0x38a547=_0x24d8cc[_0x3d5557(0xf2)])===null||_0x38a547===void 0x0?void 0x0:_0x38a547[_0x3d5557(0xc7)])==0xa&&(_0x24d8cc['requesttime']=_0x24d8cc[_0x3d5557(0xf2)]*0x3e8);if(this[_0x3d5557(0xee)]['timeout']&&Date['now']()-Math[_0x3d5557(0xed)](_0x24d8cc['requesttime'])>this[_0x3d5557(0xee)][_0x3d5557(0xea)])throw new AnnError(ApiError_1[_0x3d5557(0x101)][_0x3d5557(0xf6)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x24d8cc[_0x3d5557(0xf2)],'timestamp':Date[_0x3d5557(0xd1)]()});if((((_0x46d2dd=this['config']['devices'][_0x24d8cc['device']])===null||_0x46d2dd===void 0x0?void 0x0:_0x46d2dd[_0x3d5557(0x100)])||0x0)>0x0&&Date['now']()-Math['abs'](_0x24d8cc[_0x3d5557(0xf3)])>this['config'][_0x3d5557(0xe5)][_0x24d8cc[_0x3d5557(0xfb)]][_0x3d5557(0x100)])throw new AnnError(ApiError_1['ApiError'][_0x3d5557(0xc1)]);if(!this['config'][_0x3d5557(0xe5)][_0x24d8cc[_0x3d5557(0xfb)]]||!this[_0x3d5557(0xee)][_0x3d5557(0xe5)][_0x24d8cc[_0x3d5557(0xfb)]][_0x3d5557(0xde)]||!this[_0x3d5557(0xee)][_0x3d5557(0xe5)][_0x24d8cc[_0x3d5557(0xfb)]][_0x3d5557(0xfe)])throw new AnnError(ApiError_1[_0x3d5557(0x101)]['HEADERS_DEVICE']);if(_0x24d8cc[_0x3d5557(0xdb)]&&_0x24d8cc['checkcode']!=this[_0x3d5557(0xfe)](_0x24d8cc[_0x3d5557(0xdb)],_0x24d8cc[_0x3d5557(0xfb)],_0x24d8cc[_0x3d5557(0xf3)]))throw new AnnError(ApiError_1[_0x3d5557(0x101)]['HEADERS_CHECKCODE']);return _0x1e20fb[_0x3d5557(0xd9)](_0x3d5557(0xc5)+this['config']['devices'][_0x24d8cc[_0x3d5557(0xfb)]][_0x3d5557(0xde)]),(0x0,crypto_js_1[_0x3d5557(0xec)])(_0x1e20fb[_0x3d5557(0xf0)]()[_0x3d5557(0xfa)](''))[_0x3d5557(0xd5)]();}['checkcode'](_0x5d4c80,_0x2619b5,_0x4dfab8=Date[a11_0x52df4e(0xd1)]()){var _0xb08f17=a11_0x52df4e,_0x31731a,_0x4f539d,_0x1f629b;if(!((_0x31731a=this[_0xb08f17(0xee)])===null||_0x31731a===void 0x0?void 0x0:_0x31731a[_0xb08f17(0xe5)][_0x2619b5])||!((_0x1f629b=(_0x4f539d=this[_0xb08f17(0xee)])===null||_0x4f539d===void 0x0?void 0x0:_0x4f539d['devices'][_0x2619b5])===null||_0x1f629b===void 0x0?void 0x0:_0x1f629b[_0xb08f17(0xfe)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0xb08f17(0xec)])(''+_0x5d4c80+(0x0,crypto_js_1['MD5'])(''+_0x4dfab8+(''+this[_0xb08f17(0xee)][_0xb08f17(0xe5)][_0x2619b5][_0xb08f17(0xfe)]))['toString']())[_0xb08f17(0xd5)]();}[a11_0x52df4e(0xc3)](_0x44a61f={}){var _0x42a6b7=a11_0x52df4e;const _0x275f50=Object['fromEntries'](Object[_0x42a6b7(0xe7)](_0x44a61f)['map'](_0x8abb82=>[_0x8abb82[0x0][_0x42a6b7(0xef)](),_0x8abb82[0x1]]));if(!(_0x275f50===null||_0x275f50===void 0x0?void 0x0:_0x275f50[_0x42a6b7(0xc6)]))throw new AnnError(ApiError_1['ApiError'][_0x42a6b7(0xeb)],{'message':_0x42a6b7(0xd2)});if((_0x275f50===null||_0x275f50===void 0x0?void 0x0:_0x275f50[_0x42a6b7(0xc6)])!=this[_0x42a6b7(0xd7)](_0x275f50))throw new AnnError(ApiError_1[_0x42a6b7(0x101)][_0x42a6b7(0xe6)]);return!![];}};__decorate([(0x0,core_1['Config'])(a11_0x52df4e(0xce)),__metadata(a11_0x52df4e(0xe4),Object)],ApiService['prototype'],a11_0x52df4e(0xee),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x52df4e(0xf7)])(),(0x0,core_1[a11_0x52df4e(0xc8)])(core_1[a11_0x52df4e(0xe9)][a11_0x52df4e(0xc0)])],ApiService),exports[a11_0x52df4e(0xf9)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a12_0x4041(_0x4ac436,_0x37567d){const _0x68c964=a12_0x393f();return a12_0x4041=function(_0x335a88,_0x464e1f){_0x335a88=_0x335a88-0x178;let _0x393f03=_0x68c964[_0x335a88];return _0x393f03;},a12_0x4041(_0x4ac436,_0x37567d);}const a12_0x56cf5f=a12_0x4041;(function(_0x2c084e,_0x507975){const _0x2d41ea=a12_0x4041,_0x7724e6=_0x2c084e();while(!![]){try{const _0x1bf315=parseInt(_0x2d41ea(0x1a8))/0x1*(parseInt(_0x2d41ea(0x1ae))/0x2)+parseInt(_0x2d41ea(0x17d))/0x3*(parseInt(_0x2d41ea(0x1b8))/0x4)+parseInt(_0x2d41ea(0x1a4))/0x5+-parseInt(_0x2d41ea(0x1c6))/0x6+parseInt(_0x2d41ea(0x19d))/0x7+-parseInt(_0x2d41ea(0x1b6))/0x8+parseInt(_0x2d41ea(0x1c3))/0x9*(-parseInt(_0x2d41ea(0x1b2))/0xa);if(_0x1bf315===_0x507975)break;else _0x7724e6['push'](_0x7724e6['shift']());}catch(_0x5bfadc){_0x7724e6['push'](_0x7724e6['shift']());}}}(a12_0x393f,0x80a4f));const a12_0x464e1f=(function(){let _0x35f671=!![];return function(_0x485ea3,_0x3d9866){const _0x2a26a0=_0x35f671?function(){const _0x51b1ae=a12_0x4041;if(_0x3d9866){const _0x91ec62=_0x3d9866[_0x51b1ae(0x17c)](_0x485ea3,arguments);return _0x3d9866=null,_0x91ec62;}}:function(){};return _0x35f671=![],_0x2a26a0;};}()),a12_0x335a88=a12_0x464e1f(this,function(){const _0x360700=a12_0x4041;return a12_0x335a88['toString']()[_0x360700(0x1c8)](_0x360700(0x194))[_0x360700(0x18d)]()[_0x360700(0x178)](a12_0x335a88)[_0x360700(0x1c8)](_0x360700(0x194));});a12_0x335a88();'use strict';var __decorate=this&&this[a12_0x56cf5f(0x1bf)]||function(_0x53fb10,_0x39d13e,_0x1a0d06,_0x457fbe){const _0x5159d3=a12_0x56cf5f;var _0x5bc16c=arguments[_0x5159d3(0x183)],_0x1e5fb5=_0x5bc16c<0x3?_0x39d13e:_0x457fbe===null?_0x457fbe=Object[_0x5159d3(0x1b5)](_0x39d13e,_0x1a0d06):_0x457fbe,_0x5f8357;if(typeof Reflect===_0x5159d3(0x186)&&typeof Reflect[_0x5159d3(0x17b)]===_0x5159d3(0x1b7))_0x1e5fb5=Reflect[_0x5159d3(0x17b)](_0x53fb10,_0x39d13e,_0x1a0d06,_0x457fbe);else{for(var _0x393a3e=_0x53fb10['length']-0x1;_0x393a3e>=0x0;_0x393a3e--)if(_0x5f8357=_0x53fb10[_0x393a3e])_0x1e5fb5=(_0x5bc16c<0x3?_0x5f8357(_0x1e5fb5):_0x5bc16c>0x3?_0x5f8357(_0x39d13e,_0x1a0d06,_0x1e5fb5):_0x5f8357(_0x39d13e,_0x1a0d06))||_0x1e5fb5;}return _0x5bc16c>0x3&&_0x1e5fb5&&Object[_0x5159d3(0x1ad)](_0x39d13e,_0x1a0d06,_0x1e5fb5),_0x1e5fb5;},__metadata=this&&this[a12_0x56cf5f(0x196)]||function(_0x306d0f,_0xac232c){const _0xd5f46e=a12_0x56cf5f;if(typeof Reflect===_0xd5f46e(0x186)&&typeof Reflect['metadata']===_0xd5f46e(0x1b7))return Reflect[_0xd5f46e(0x19c)](_0x306d0f,_0xac232c);},__param=this&&this['__param']||function(_0x4788a8,_0x423516){return function(_0x29539b,_0x243ba6){_0x423516(_0x29539b,_0x243ba6,_0x4788a8);};};Object[a12_0x56cf5f(0x1ad)](exports,a12_0x56cf5f(0x19a),{'value':!![]}),exports['ApitestStaticController']=exports[a12_0x56cf5f(0x19e)]=void 0x0;const path_1=require(a12_0x56cf5f(0x19b)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a12_0x56cf5f(0x1aa)),core_3=require('@midwayjs/core'),getRoutes_1=require(a12_0x56cf5f(0x17f));function a12_0x393f(){const _0x56950e=['extname','3424075PVmVEX','apitestmodule','Controller','set','17510eoziPA','request','@midwayjs/core','.js','text/css;\x20charset=utf-8','defineProperty','74tfYksF','Inject','Config','push','1090nrcUOc','/apitest-:module','Provide','getOwnPropertyDescriptor','1880328SrhCpd','function','3252976nStdll','Environment','../../public/index.html','isDevelopmentEnvironment','apidoc','design:type','MidwayEnvironmentService','__decorate','application/javascript;\x20charset=utf-8','ctx','route','164097lkRqoV','Get','content-type','1353060yYQciR','join','search','constructor','routes','summary','decorate','apply','3dDryom','stringify','../helper/getRoutes','substring','getRoutes','/apiteststatic/','length','prefix','config','object','description','replace','apitest','readFileSync','Request','apitesthtml','toString','__apiList__','ScopeEnum','Scope','__devices__','/apiteststatic/*','public,\x20max-age=604800','(((.+)+)+)+$','prototype','__metadata','url','cache-control','Param','__esModule','path','metadata','5802622CPsiQN','ApitestService','design:paramtypes','apiteststatic','filepath','design:returntype'];a12_0x393f=function(){return _0x56950e;};return a12_0x393f();}let ApitestService=class ApitestService{async[a12_0x56cf5f(0x1bc)](_0x3b7954){const _0x360ef2=a12_0x56cf5f,_0x4a042f=(0x0,getRoutes_1[_0x360ef2(0x181)])(_0x3b7954),_0x17cd89=[];for(let _0x597400 in _0x4a042f){for(let _0x54a89b in _0x4a042f[_0x597400][_0x360ef2(0x179)]){let _0x133862=_0x4a042f[_0x597400][_0x360ef2(0x179)][_0x54a89b],_0xde05b9=[];for(let _0x1f4196 in _0x133862[_0x360ef2(0x1a9)]){_0xde05b9[_0x360ef2(0x1b1)](_0x133862['request'][_0x1f4196]);}_0x17cd89[_0x360ef2(0x1b1)]({'title':_0x4a042f[_0x597400][_0x360ef2(0x17a)]+':'+_0x133862[_0x360ef2(0x17a)],'prefix':_0x4a042f[_0x597400][_0x360ef2(0x184)],'router':_0x133862[_0x360ef2(0x1c2)],'method':_0x133862['method'],'describe':_0x133862[_0x360ef2(0x187)]||'','filepath':_0x4a042f[_0x597400]['filepath']||'','request':_0xde05b9});}}const _0x311256=(0x0,path_1['join'])(__dirname,_0x360ef2(0x1ba));return(0x0,fs_1[_0x360ef2(0x18a)])(_0x311256,{'encoding':'utf-8'})[_0x360ef2(0x188)](/__res__/g,'/apiteststatic/')[_0x360ef2(0x188)](_0x360ef2(0x18e),JSON[_0x360ef2(0x17e)](_0x17cd89))[_0x360ef2(0x188)](_0x360ef2(0x191),JSON[_0x360ef2(0x17e)](this[_0x360ef2(0x185)]['devices']));}};__decorate([(0x0,core_3[a12_0x56cf5f(0x1b0)])('anncicapi'),__metadata(a12_0x56cf5f(0x1bd),Object)],ApitestService[a12_0x56cf5f(0x195)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x56cf5f(0x1b4)])(a12_0x56cf5f(0x189)),(0x0,core_3[a12_0x56cf5f(0x190)])(core_3['ScopeEnum']['Singleton'])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x571d6b=a12_0x56cf5f;if(this[_0x571d6b(0x189)]){const _0x51d612={'module':![]};return this[_0x571d6b(0x1b9)][_0x571d6b(0x1bb)]()&&(_0x51d612[_0x571d6b(0x1a1)]=!![]),await this[_0x571d6b(0x19e)][_0x571d6b(0x1bc)](_0x51d612);}return'';}async[a12_0x56cf5f(0x1a5)](_0x18621d){const _0x5b5be3=a12_0x56cf5f;if(this['apitest']){const _0x53eb68={'module':_0x18621d};return this[_0x5b5be3(0x1b9)][_0x5b5be3(0x1bb)]()&&(_0x53eb68[_0x5b5be3(0x1a1)]=!![]),await this[_0x5b5be3(0x19e)][_0x5b5be3(0x1bc)](_0x53eb68);}return'';}async[a12_0x56cf5f(0x1a0)](){const _0x4db045=a12_0x56cf5f;if((0x0,path_1[_0x4db045(0x1a3)])(this[_0x4db045(0x1c1)][_0x4db045(0x1a9)]['url'])){var _0x2e5bf7=(0x0,path_1[_0x4db045(0x1c7)])(__dirname,'../../public/'+this[_0x4db045(0x1c1)][_0x4db045(0x1a9)][_0x4db045(0x197)][_0x4db045(0x188)](_0x4db045(0x182),'/'));if(_0x2e5bf7[_0x4db045(0x180)](_0x2e5bf7[_0x4db045(0x183)]-0xb)!='/index.html'){this['ctx'][_0x4db045(0x1a7)](_0x4db045(0x198),_0x4db045(0x193));if((0x0,path_1[_0x4db045(0x1a3)])(this[_0x4db045(0x1c1)][_0x4db045(0x1a9)]['url'])==_0x4db045(0x1ab))this[_0x4db045(0x1c1)]['set'](_0x4db045(0x1c5),_0x4db045(0x1c0));else(0x0,path_1['extname'])(this[_0x4db045(0x1c1)][_0x4db045(0x1a9)][_0x4db045(0x197)])=='.css'&&this['ctx'][_0x4db045(0x1a7)]('content-type',_0x4db045(0x1ac));return(0x0,fs_1['existsSync'])(_0x2e5bf7)&&(0x0,fs_1['readFileSync'])(_0x2e5bf7,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x56cf5f(0x1bd),Object)],ApitestStaticController[a12_0x56cf5f(0x195)],'ctx',void 0x0),__decorate([(0x0,core_3[a12_0x56cf5f(0x1af)])(),__metadata(a12_0x56cf5f(0x1bd),core_1[a12_0x56cf5f(0x1be)])],ApitestStaticController[a12_0x56cf5f(0x195)],'Environment',void 0x0),__decorate([(0x0,core_3[a12_0x56cf5f(0x1af)])(),__metadata(a12_0x56cf5f(0x1bd),ApitestService)],ApitestStaticController[a12_0x56cf5f(0x195)],a12_0x56cf5f(0x19e),void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x56cf5f(0x189)),__metadata(a12_0x56cf5f(0x1bd),Boolean)],ApitestStaticController['prototype'],a12_0x56cf5f(0x189),void 0x0),__decorate([(0x0,core_3[a12_0x56cf5f(0x1b0)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a12_0x56cf5f(0x195)],a12_0x56cf5f(0x185),void 0x0),__decorate([(0x0,core_2['Get'])('/apitest'),__metadata(a12_0x56cf5f(0x1bd),Function),__metadata(a12_0x56cf5f(0x19f),[]),__metadata(a12_0x56cf5f(0x1a2),Promise)],ApitestStaticController['prototype'],a12_0x56cf5f(0x18c),null),__decorate([(0x0,core_2[a12_0x56cf5f(0x1c4)])(a12_0x56cf5f(0x1b3)),__param(0x0,(0x0,core_2[a12_0x56cf5f(0x199)])('module')),__metadata('design:type',Function),__metadata(a12_0x56cf5f(0x19f),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x56cf5f(0x195)],'apitestmodule',null),__decorate([(0x0,core_2[a12_0x56cf5f(0x1c4)])(a12_0x56cf5f(0x192)),__metadata(a12_0x56cf5f(0x1bd),Function),__metadata('design:paramtypes',[]),__metadata(a12_0x56cf5f(0x1a2),Promise)],ApitestStaticController[a12_0x56cf5f(0x195)],a12_0x56cf5f(0x1a0),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x56cf5f(0x1a6)])('/'),(0x0,core_3[a12_0x56cf5f(0x190)])(core_3[a12_0x56cf5f(0x18f)][a12_0x56cf5f(0x18b)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13_0x171456=a13_0x5310;(function(_0x8b713e,_0x5d1807){const _0x5e8cce=a13_0x5310,_0x3da0b8=_0x8b713e();while(!![]){try{const _0x17a755=-parseInt(_0x5e8cce(0x107))/0x1*(-parseInt(_0x5e8cce(0xf0))/0x2)+parseInt(_0x5e8cce(0x10c))/0x3*(parseInt(_0x5e8cce(0x119))/0x4)+parseInt(_0x5e8cce(0x104))/0x5+-parseInt(_0x5e8cce(0x11e))/0x6+-parseInt(_0x5e8cce(0xfb))/0x7+-parseInt(_0x5e8cce(0xf3))/0x8*(-parseInt(_0x5e8cce(0xf7))/0x9)+-parseInt(_0x5e8cce(0x12a))/0xa;if(_0x17a755===_0x5d1807)break;else _0x3da0b8['push'](_0x3da0b8['shift']());}catch(_0x4960d3){_0x3da0b8['push'](_0x3da0b8['shift']());}}}(a13_0x343f,0x5995b));const a13_0x5357b1=(function(){let _0x1d17a3=!![];return function(_0x34b2be,_0x518a1f){const _0x431300=_0x1d17a3?function(){if(_0x518a1f){const _0x37e43d=_0x518a1f['apply'](_0x34b2be,arguments);return _0x518a1f=null,_0x37e43d;}}:function(){};return _0x1d17a3=![],_0x431300;};}()),a13_0x46dfa4=a13_0x5357b1(this,function(){const _0x3528b6=a13_0x5310;return a13_0x46dfa4[_0x3528b6(0x116)]()['search']('(((.+)+)+)+$')[_0x3528b6(0x116)]()['constructor'](a13_0x46dfa4)[_0x3528b6(0x123)](_0x3528b6(0x113));});a13_0x46dfa4();'use strict';var __decorate=this&&this['__decorate']||function(_0x3ea431,_0x341ead,_0x218ca2,_0x3cc943){const _0x5af425=a13_0x5310;var _0x413a43=arguments['length'],_0x22e3f4=_0x413a43<0x3?_0x341ead:_0x3cc943===null?_0x3cc943=Object[_0x5af425(0xf5)](_0x341ead,_0x218ca2):_0x3cc943,_0x160cc8;if(typeof Reflect===_0x5af425(0xf6)&&typeof Reflect[_0x5af425(0x114)]===_0x5af425(0xf8))_0x22e3f4=Reflect[_0x5af425(0x114)](_0x3ea431,_0x341ead,_0x218ca2,_0x3cc943);else{for(var _0x1d7674=_0x3ea431['length']-0x1;_0x1d7674>=0x0;_0x1d7674--)if(_0x160cc8=_0x3ea431[_0x1d7674])_0x22e3f4=(_0x413a43<0x3?_0x160cc8(_0x22e3f4):_0x413a43>0x3?_0x160cc8(_0x341ead,_0x218ca2,_0x22e3f4):_0x160cc8(_0x341ead,_0x218ca2))||_0x22e3f4;}return _0x413a43>0x3&&_0x22e3f4&&Object[_0x5af425(0xec)](_0x341ead,_0x218ca2,_0x22e3f4),_0x22e3f4;},__metadata=this&&this[a13_0x171456(0x122)]||function(_0x155216,_0x4d6465){const _0x271a86=a13_0x171456;if(typeof Reflect===_0x271a86(0xf6)&&typeof Reflect[_0x271a86(0xfc)]==='function')return Reflect[_0x271a86(0xfc)](_0x155216,_0x4d6465);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a13_0x171456(0x108)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x171456(0xff)),koasend=require(a13_0x171456(0x101)),core_1=require('@midwayjs/core');let ExcelService=class ExcelService{async[a13_0x171456(0x10a)](_0x57ea31,_0x59fbf5,_0x1a627a=[0x0]){const _0x4a9945=a13_0x171456;var _0x281667,_0x3bdef7;const _0x4e2780=new exceljs['Workbook'](),_0x2dae5d=[];let _0xd769f0=_0x57ea31['replace'](/(\\|\/)/g,'/')[_0x4a9945(0x12c)](/\/{2,}/g,'/');!(_0xd769f0===null||_0xd769f0===void 0x0?void 0x0:_0xd769f0[_0x4a9945(0x125)]('/'))&&(_0xd769f0=this[_0x4a9945(0x10d)][_0x4a9945(0x11f)]()+'/'+_0xd769f0);try{await _0x4e2780[_0x4a9945(0xfa)][_0x4a9945(0x10e)](_0xd769f0);}catch(_0x20e911){return console[_0x4a9945(0xea)](_0x4a9945(0x124)+_0xd769f0+'\x20is\x20read\x20fail'),_0x2dae5d;}for(const _0x27dd41 of _0x1a627a){const _0x142947=lodash['isNumber'](_0x27dd41)?((_0x281667=_0x4e2780[_0x4a9945(0x106)])===null||_0x281667===void 0x0?void 0x0:_0x281667[_0x27dd41])||undefined:_0x4e2780[_0x4a9945(0x112)](_0x27dd41);if(_0x142947){var _0x57b01d=0x1;const _0x1d23ff=_0x142947['getRow'](0x1),_0x313bea=await new Promise(_0x49d61f=>{const _0x4f88b3=_0x4a9945,_0xa884f7={};_0x1d23ff[_0x4f88b3(0xe9)]((_0x249023,_0x54f2f8)=>{const _0x281c9b=_0x4f88b3;for(const _0x9fcd2b of _0x59fbf5){if(_0x249023[_0x281c9b(0xfe)]==_0x9fcd2b['header'])_0x57b01d=0x2,_0xa884f7[_0x9fcd2b[_0x281c9b(0x128)]]={'header':_0x249023['col'],'handler':_0x9fcd2b['handler']};else{if(!_0xa884f7[_0x9fcd2b[_0x281c9b(0x128)]])try{const _0x1c4e23=_0x1d23ff&&_0x1d23ff[_0x281c9b(0xe7)](_0x9fcd2b['header']);_0x1c4e23&&(_0xa884f7[_0x9fcd2b[_0x281c9b(0x128)]]={'header':_0x1c4e23[_0x281c9b(0x121)],'handler':_0x9fcd2b[_0x281c9b(0xee)]});}catch{}}}_0x1d23ff[_0x281c9b(0xfd)]==_0x54f2f8&&_0x49d61f(_0xa884f7);});});for(const _0x59f60b of _0x142947[_0x4a9945(0x102)](_0x57b01d,_0x142947[_0x4a9945(0x126)])){const _0x1f57a9={};for(const _0x20f41d in _0x313bea){if(_0x313bea[_0x20f41d][_0x4a9945(0x10b)]){const _0x47e86d=_0x59f60b&&_0x59f60b[_0x4a9945(0xe7)](_0x313bea[_0x20f41d]['header']);try{_0x47e86d[_0x4a9945(0x116)]();}catch(_0x499db4){_0x47e86d['toString']=()=>{const _0xe7a61a=_0x4a9945;var _0x3b3831;return''+(((_0x3b3831=_0x47e86d===null||_0x47e86d===void 0x0?void 0x0:_0x47e86d[_0xe7a61a(0x12b)])===null||_0x3b3831===void 0x0?void 0x0:_0x3b3831[_0xe7a61a(0xfe)])||'');};}typeof((_0x3bdef7=_0x313bea[_0x20f41d])===null||_0x3bdef7===void 0x0?void 0x0:_0x3bdef7[_0x4a9945(0xee)])==_0x4a9945(0xf8)?_0x1f57a9[_0x20f41d]=await _0x313bea[_0x20f41d][_0x4a9945(0xee)](lodash[_0x4a9945(0x105)]({},_0x20f41d,(_0x47e86d===null||_0x47e86d===void 0x0?void 0x0:_0x47e86d['toString']())||''),_0x47e86d[_0x4a9945(0x12b)]):_0x1f57a9[_0x20f41d]=(_0x47e86d===null||_0x47e86d===void 0x0?void 0x0:_0x47e86d[_0x4a9945(0x116)]())||'';}}Object[_0x4a9945(0xf2)](_0x1f57a9)[_0x4a9945(0xf4)]>0x0&&Object[_0x4a9945(0x100)](_0x1f57a9)[_0x4a9945(0xef)](_0x2ceb4b=>_0x2ceb4b!=='')[_0x4a9945(0xf4)]>0x0&&_0x2dae5d[_0x4a9945(0x109)](_0x1f57a9);}}}return _0x2dae5d;}async[a13_0x171456(0x110)](_0x1b2f2d,_0x39a9bd,_0x43894c,_0x5d8911){const _0x137739=a13_0x171456;var _0x44dae9,_0x3c7567;const _0x428ac1=new exceljs[(_0x137739(0x11c))](),_0x2706fb={},_0x2eeeaf=[],_0x36af84=_0x428ac1[_0x137739(0xf9)](_0x137739(0x129),{'views':[{'state':_0x137739(0x10f),'xSplit':0x1}]});for(const _0x4ccc2a in _0x39a9bd){_0x2706fb[_0x39a9bd[_0x4ccc2a][_0x137739(0x128)]]=_0x39a9bd[_0x4ccc2a]['header'],_0x2eeeaf[_0x137739(0x109)]({'header':_0x39a9bd[_0x4ccc2a][_0x137739(0x10b)],'key':(_0x44dae9=_0x39a9bd[_0x4ccc2a])===null||_0x44dae9===void 0x0?void 0x0:_0x44dae9[_0x137739(0x128)][_0x137739(0x12c)](/\./g,'_')});}_0x36af84[_0x137739(0xeb)]=_0x2eeeaf;for(const _0x14c1a7 of _0x43894c){const _0x46bcec={};for(const _0x3fc8e7 in _0x39a9bd){typeof((_0x3c7567=_0x39a9bd[_0x3fc8e7])===null||_0x3c7567===void 0x0?void 0x0:_0x3c7567['handler'])==_0x137739(0xf8)?_0x46bcec[_0x39a9bd[_0x3fc8e7]['key']['replace'](/\./g,'_')]=await _0x39a9bd[_0x3fc8e7][_0x137739(0xee)](_0x14c1a7):_0x46bcec[_0x39a9bd[_0x3fc8e7]['key'][_0x137739(0x12c)](/\./g,'_')]=lodash[_0x137739(0xf1)](_0x14c1a7,_0x39a9bd[_0x3fc8e7][_0x137739(0x128)],'');}_0x36af84[_0x137739(0x103)](_0x46bcec);}let _0x515ca3='';const _0x12bd5e=_0x1b2f2d+'-'+lodash[_0x137739(0x11b)](0x186a0,0xf423f)+_0x137739(0xed);if(_0x5d8911&&_0x5d8911[_0x137739(0x125)]('/'))_0x515ca3=''+_0x5d8911;else _0x5d8911&&!_0x5d8911[_0x137739(0x125)]('/')&&!_0x5d8911[_0x137739(0x125)]('\x5c')?_0x515ca3=this['app']['getAppDir']()+'/'+_0x5d8911:_0x515ca3=this[_0x137739(0x10d)][_0x137739(0x11f)]()+_0x137739(0x118)+dayjs()[_0x137739(0x115)]('YYYY/MM/DD');return(_0x515ca3['endsWith']('/')||_0x515ca3['endsWith']('\x5c'))&&(_0x515ca3=_0x515ca3[_0x137739(0xe8)](0x0,_0x515ca3[_0x137739(0xf4)]-0x1)),_0x515ca3=_0x515ca3['replace'](/(\\|\/)/g,'/')[_0x137739(0x12c)](/\/{2,}/g,'/'),!fs[_0x137739(0x11d)](_0x515ca3)&&fs[_0x137739(0x11a)](_0x515ca3,{'recursive':!![]}),await _0x428ac1[_0x137739(0xfa)][_0x137739(0xe6)]((_0x515ca3+'/'+_0x12bd5e)['replace'](/(\\|\/)/g,'/')[_0x137739(0x12c)](/\/{2,}/g,'/')),{'filename':_0x12bd5e,'filepath':(_0x515ca3[_0x137739(0xe8)]((''+this['app'][_0x137739(0x11f)]())[_0x137739(0xf4)])+'/'+_0x12bd5e)[_0x137739(0x12c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a13_0x171456(0x120)](_0x4e4141,_0x23cb69){return await koasend(_0x4e4141,''+_0x23cb69);}};function a13_0x5310(_0x4c31ab,_0x304b6d){const _0x1df92c=a13_0x343f();return a13_0x5310=function(_0x46dfa4,_0x5357b1){_0x46dfa4=_0x46dfa4-0xe6;let _0x343f74=_0x1df92c[_0x46dfa4];return _0x343f74;},a13_0x5310(_0x4c31ab,_0x304b6d);}__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService[a13_0x171456(0x117)],a13_0x171456(0x10d),void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a13_0x171456(0x127)])(core_1['ScopeEnum'][a13_0x171456(0x111)])],ExcelService),exports['ExcelService']=ExcelService;function a13_0x343f(){const _0x1c6824=['get','keys','28480rIRJeJ','length','getOwnPropertyDescriptor','object','189pDBevd','function','addWorksheet','xlsx','3885994bMgVbE','metadata','cellCount','value','exceljs','values','koa-send','findRows','addRow','1749380oTDXCf','set','worksheets','1xzXIzE','ExcelService','push','parse','header','66mAzcjo','app','readFile','frozen','export','Singleton','getWorksheet','(((.+)+)+)+$','decorate','format','toString','prototype','/public/xlsx/','88540qjBzBP','mkdirSync','random','Workbook','existsSync','1323738ZTXwQg','getAppDir','download','col','__metadata','search','Api\x20Excel\x20Error:\x20','startsWith','rowCount','Scope','key','Sheet\x201','4430640tZiSJZ','model','replace','writeFile','getCell','substring','eachCell','log','columns','defineProperty','.xlsx','handler','filter','1348324lthURe'];a13_0x343f=function(){return _0x1c6824;};return a13_0x343f();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x512750=a14_0x4959;function a14_0x1738(){var _0x4a489d=['(((.+)+)+)+$','47202nzhIvp','anncic-api:apps:config','16639390vhznii','search','defineProperty','anncic-api:action','1130283tpwaNI','5215868hXGAsP','__esModule','toString','10161kdjvhm','ACTION_ROUTE_KEY','APPSCONFIG_KEY','98682QkZKcN','ACTION_KEY','40CBfhlZ','3784NDuLCA','AppsConfigTmp','1074108fpaRyQ','43PPZcUM'];a14_0x1738=function(){return _0x4a489d;};return a14_0x1738();}function a14_0x4959(_0x10e632,_0x264fa3){var _0x145f9d=a14_0x1738();return a14_0x4959=function(_0x4df365,_0x3cb624){_0x4df365=_0x4df365-0x94;var _0x1738cf=_0x145f9d[_0x4df365];return _0x1738cf;},a14_0x4959(_0x10e632,_0x264fa3);}(function(_0x8d7144,_0x4b4567){var _0x46ff4e=a14_0x4959,_0x52ad6a=_0x8d7144();while(!![]){try{var _0x5e059c=parseInt(_0x46ff4e(0x99))/0x1*(-parseInt(_0x46ff4e(0x9b))/0x2)+-parseInt(_0x46ff4e(0xa1))/0x3+parseInt(_0x46ff4e(0xa2))/0x4+parseInt(_0x46ff4e(0x95))/0x5*(-parseInt(_0x46ff4e(0xa8))/0x6)+-parseInt(_0x46ff4e(0x98))/0x7+-parseInt(_0x46ff4e(0x96))/0x8*(parseInt(_0x46ff4e(0xa5))/0x9)+parseInt(_0x46ff4e(0x9d))/0xa;if(_0x5e059c===_0x4b4567)break;else _0x52ad6a['push'](_0x52ad6a['shift']());}catch(_0x15e4c0){_0x52ad6a['push'](_0x52ad6a['shift']());}}}(a14_0x1738,0xb8e11));var a14_0x3cb624=(function(){var _0x54c0e7=!![];return function(_0x59224d,_0x1370d9){var _0x53e7da=_0x54c0e7?function(){if(_0x1370d9){var _0x564e09=_0x1370d9['apply'](_0x59224d,arguments);return _0x1370d9=null,_0x564e09;}}:function(){};return _0x54c0e7=![],_0x53e7da;};}()),a14_0x4df365=a14_0x3cb624(this,function(){var _0x50553a=a14_0x4959;return a14_0x4df365[_0x50553a(0xa4)]()['search'](_0x50553a(0x9a))['toString']()['constructor'](a14_0x4df365)[_0x50553a(0x9e)](_0x50553a(0x9a));});a14_0x4df365();'use strict';Object[a14_0x512750(0x9f)](exports,a14_0x512750(0xa3),{'value':!![]}),exports[a14_0x512750(0x97)]=exports['APPSCONFIG_KEY']=exports['ACTION_ROUTE_KEY']=exports[a14_0x512750(0x94)]=void 0x0,exports[a14_0x512750(0x94)]=a14_0x512750(0xa0),exports[a14_0x512750(0xa6)]='anncic-api:action:route',exports[a14_0x512750(0xa7)]=a14_0x512750(0x9c);class AppsConfigTmp{}exports[a14_0x512750(0x97)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x865f41=a15_0x38f6;(function(_0x41bbc9,_0x411403){var _0x54015e=a15_0x38f6,_0x31b234=_0x41bbc9();while(!![]){try{var _0x25c231=-parseInt(_0x54015e(0x208))/0x1*(parseInt(_0x54015e(0x1fa))/0x2)+-parseInt(_0x54015e(0x1e6))/0x3*(-parseInt(_0x54015e(0x209))/0x4)+parseInt(_0x54015e(0x205))/0x5+parseInt(_0x54015e(0x1f2))/0x6*(-parseInt(_0x54015e(0x1f9))/0x7)+-parseInt(_0x54015e(0x203))/0x8+-parseInt(_0x54015e(0x1ee))/0x9+-parseInt(_0x54015e(0x202))/0xa*(-parseInt(_0x54015e(0x1f5))/0xb);if(_0x25c231===_0x411403)break;else _0x31b234['push'](_0x31b234['shift']());}catch(_0x265d5e){_0x31b234['push'](_0x31b234['shift']());}}}(a15_0x32dd,0xa79e9));var a15_0x449a04=(function(){var _0xb95a31=!![];return function(_0x50acfe,_0x35e5bc){var _0x37941e=_0xb95a31?function(){var _0x5319a3=a15_0x38f6;if(_0x35e5bc){var _0x22a865=_0x35e5bc[_0x5319a3(0x200)](_0x50acfe,arguments);return _0x35e5bc=null,_0x22a865;}}:function(){};return _0xb95a31=![],_0x37941e;};}()),a15_0x392828=a15_0x449a04(this,function(){var _0x160cbe=a15_0x38f6;return a15_0x392828[_0x160cbe(0x207)]()[_0x160cbe(0x1e9)]('(((.+)+)+)+$')[_0x160cbe(0x207)]()['constructor'](a15_0x392828)[_0x160cbe(0x1e9)]('(((.+)+)+)+$');});a15_0x392828();'use strict';var __decorate=this&&this[a15_0x865f41(0x1ed)]||function(_0x4d2c98,_0x5c4a69,_0xf05f2,_0x5b5e9e){var _0x41a13e=a15_0x865f41,_0x45fdf1=arguments[_0x41a13e(0x20a)],_0x10f2e1=_0x45fdf1<0x3?_0x5c4a69:_0x5b5e9e===null?_0x5b5e9e=Object[_0x41a13e(0x1fc)](_0x5c4a69,_0xf05f2):_0x5b5e9e,_0x5fefc6;if(typeof Reflect===_0x41a13e(0x1ec)&&typeof Reflect[_0x41a13e(0x1e2)]==='function')_0x10f2e1=Reflect[_0x41a13e(0x1e2)](_0x4d2c98,_0x5c4a69,_0xf05f2,_0x5b5e9e);else{for(var _0x5ef8ec=_0x4d2c98['length']-0x1;_0x5ef8ec>=0x0;_0x5ef8ec--)if(_0x5fefc6=_0x4d2c98[_0x5ef8ec])_0x10f2e1=(_0x45fdf1<0x3?_0x5fefc6(_0x10f2e1):_0x45fdf1>0x3?_0x5fefc6(_0x5c4a69,_0xf05f2,_0x10f2e1):_0x5fefc6(_0x5c4a69,_0xf05f2))||_0x10f2e1;}return _0x45fdf1>0x3&&_0x10f2e1&&Object['defineProperty'](_0x5c4a69,_0xf05f2,_0x10f2e1),_0x10f2e1;},__metadata=this&&this[a15_0x865f41(0x1e5)]||function(_0x1f530e,_0x31d3d3){var _0x2f69e8=a15_0x865f41;if(typeof Reflect===_0x2f69e8(0x1ec)&&typeof Reflect[_0x2f69e8(0x1f6)]===_0x2f69e8(0x1e8))return Reflect[_0x2f69e8(0x1f6)](_0x1f530e,_0x31d3d3);};Object[a15_0x865f41(0x1fb)](exports,a15_0x865f41(0x1f8),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x865f41(0x20b));function a15_0x38f6(_0x180068,_0x2ab7cd){var _0x1546a2=a15_0x32dd();return a15_0x38f6=function(_0x392828,_0x449a04){_0x392828=_0x392828-0x1e2;var _0x32ddea=_0x1546a2[_0x392828];return _0x32ddea;},a15_0x38f6(_0x180068,_0x2ab7cd);}class PageDTO{}__decorate([(0x0,validator_1[a15_0x865f41(0x1f7)])('分页',validator_1[a15_0x865f41(0x1e3)][a15_0x865f41(0x1f4)]()[a15_0x865f41(0x1f1)]()[a15_0x865f41(0x1f0)](0x1),'第一页为1,第二页为2'),__metadata('design:type',Number)],PageDTO['prototype'],a15_0x865f41(0x1ef),void 0x0),__decorate([(0x0,validator_1[a15_0x865f41(0x1f7)])('分页数量',validator_1[a15_0x865f41(0x1e3)][a15_0x865f41(0x1f4)]()[a15_0x865f41(0x1f1)]()[a15_0x865f41(0x1f0)](0x1)),__metadata(a15_0x865f41(0x1fd),Number)],PageDTO['prototype'],a15_0x865f41(0x1f3),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x865f41(0x1eb),validator_1[a15_0x865f41(0x1e3)][a15_0x865f41(0x204)]()[a15_0x865f41(0x1ff)]()),__metadata(a15_0x865f41(0x1fd),String)],PageDTO[a15_0x865f41(0x1e7)],a15_0x865f41(0x1ea),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x865f41(0x206),validator_1['RuleType'][a15_0x865f41(0x1f4)]()['integer']()[a15_0x865f41(0x1fe)](0x0,0x1),a15_0x865f41(0x201)),__metadata(a15_0x865f41(0x1fd),Number)],PageDTO['prototype'],'_isreverse',void 0x0),exports[a15_0x865f41(0x1e4)]=PageDTO;function a15_0x32dd(){var _0x5c38d3=['number','22NkhdfQ','metadata','Rule','__esModule','4486181wmdQco','7064qxyUsR','defineProperty','getOwnPropertyDescriptor','design:type','valid','trim','apply','1:是;0:否','13612460ACAenX','7797464LvcuMZ','string','1664440BqlaMV','是否倒序','toString','246OcUCqA','232924IvagTX','length','@anncic-api/validator','decorate','RuleType','PageDTO','__metadata','69IeORun','prototype','function','search','_order','排序方式','object','__decorate','11013174AwHRkv','_page','min','integer','6LGTksC','_size'];a15_0x32dd=function(){return _0x5c38d3;};return a15_0x32dd();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x12ec82=a16_0x313a;(function(_0x3b8622,_0x11cf80){var _0x29e66e=a16_0x313a,_0x34c9b6=_0x3b8622();while(!![]){try{var _0x513633=-parseInt(_0x29e66e(0xd1))/0x1*(parseInt(_0x29e66e(0xd8))/0x2)+-parseInt(_0x29e66e(0xd7))/0x3*(-parseInt(_0x29e66e(0xc8))/0x4)+-parseInt(_0x29e66e(0xd6))/0x5*(-parseInt(_0x29e66e(0xd5))/0x6)+-parseInt(_0x29e66e(0xd3))/0x7*(-parseInt(_0x29e66e(0xcc))/0x8)+parseInt(_0x29e66e(0xd9))/0x9*(parseInt(_0x29e66e(0xd2))/0xa)+parseInt(_0x29e66e(0xd4))/0xb+-parseInt(_0x29e66e(0xca))/0xc;if(_0x513633===_0x11cf80)break;else _0x34c9b6['push'](_0x34c9b6['shift']());}catch(_0x2fe921){_0x34c9b6['push'](_0x34c9b6['shift']());}}}(a16_0x17bf,0xe183a));var a16_0x2fd821=(function(){var _0xaa09fe=!![];return function(_0x50587d,_0x3118e7){var _0x5e02bf=_0xaa09fe?function(){if(_0x3118e7){var _0x12066b=_0x3118e7['apply'](_0x50587d,arguments);return _0x3118e7=null,_0x12066b;}}:function(){};return _0xaa09fe=![],_0x5e02bf;};}()),a16_0x5b37a2=a16_0x2fd821(this,function(){var _0x252f0f=a16_0x313a;return a16_0x5b37a2[_0x252f0f(0xcf)]()[_0x252f0f(0xd0)](_0x252f0f(0xce))[_0x252f0f(0xcf)]()[_0x252f0f(0xcd)](a16_0x5b37a2)['search']('(((.+)+)+)+$');});a16_0x5b37a2();'use strict';function a16_0x313a(_0x3a6b83,_0x424220){var _0xbe73de=a16_0x17bf();return a16_0x313a=function(_0x5b37a2,_0x2fd821){_0x5b37a2=_0x5b37a2-0xc7;var _0x17bf72=_0xbe73de[_0x5b37a2];return _0x17bf72;},a16_0x313a(_0x3a6b83,_0x424220);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a16_0x12ec82(0xcb)]=exports[a16_0x12ec82(0xc7)]=void 0x0,exports['INTERCEPT_KEY']=a16_0x12ec82(0xc9);class InterceptTargetTmp{}exports[a16_0x12ec82(0xcb)]=InterceptTargetTmp;function a16_0x17bf(){var _0x37488f=['1dNDgce','10srWVFI','236397MvXJOK','5870172eNCibF','216Qwnvqt','195710BCAktz','4769031lhnkan','1761994LSIzyl','15818202nGykwa','INTERCEPT_KEY','4xTaqlY','anncic-api:intercept','60465384zMfvYa','InterceptTargetTmp','368OdwITM','constructor','(((.+)+)+)+$','toString','search'];a16_0x17bf=function(){return _0x37488f;};return a16_0x17bf();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.0.
|
|
21
|
-
"@anncic-api/core": "^2.0.
|
|
22
|
-
"@anncic-api/event": "^2.0.
|
|
23
|
-
"@anncic-api/typeorm": "^2.0.
|
|
24
|
-
"@anncic-api/validator": "^2.0.
|
|
20
|
+
"@anncic-api/cache": "^2.0.12",
|
|
21
|
+
"@anncic-api/core": "^2.0.12",
|
|
22
|
+
"@anncic-api/event": "^2.0.12",
|
|
23
|
+
"@anncic-api/typeorm": "^2.0.12",
|
|
24
|
+
"@anncic-api/validator": "^2.0.12",
|
|
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.12",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"image-size": "^1.0.2",
|
|
33
33
|
"koa-send": "^5.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.0",
|
|
39
39
|
"typescript": "^4.8.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "2803e1bda347459488aff325d230108486798645"
|
|
42
42
|
}
|