anncic-api 2.1.7 → 2.1.8
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
|
-
(function(
|
|
1
|
+
var a0_0x187269=a0_0x2f58;function a0_0x2f58(_0x569c05,_0x18c8a4){var _0x558328=a0_0x1c60();return a0_0x2f58=function(_0x5c0f77,_0x16e2ca){_0x5c0f77=_0x5c0f77-0x149;var _0x1c6011=_0x558328[_0x5c0f77];return _0x1c6011;},a0_0x2f58(_0x569c05,_0x18c8a4);}(function(_0x559f8e,_0x3c14f3){var _0x4b1423=a0_0x2f58,_0x451125=_0x559f8e();while(!![]){try{var _0x50be94=-parseInt(_0x4b1423(0x15c))/0x1+parseInt(_0x4b1423(0x14f))/0x2*(-parseInt(_0x4b1423(0x15f))/0x3)+-parseInt(_0x4b1423(0x158))/0x4*(parseInt(_0x4b1423(0x15a))/0x5)+parseInt(_0x4b1423(0x160))/0x6+parseInt(_0x4b1423(0x152))/0x7+parseInt(_0x4b1423(0x155))/0x8*(-parseInt(_0x4b1423(0x157))/0x9)+parseInt(_0x4b1423(0x14d))/0xa*(parseInt(_0x4b1423(0x156))/0xb);if(_0x50be94===_0x3c14f3)break;else _0x451125['push'](_0x451125['shift']());}catch(_0x5d129f){_0x451125['push'](_0x451125['shift']());}}}(a0_0x1c60,0x43588));var a0_0x16e2ca=(function(){var _0x42fe08=!![];return function(_0x36b560,_0x4f6a4f){var _0x5ef520=_0x42fe08?function(){var _0x446896=a0_0x2f58;if(_0x4f6a4f){var _0x5ac75e=_0x4f6a4f[_0x446896(0x162)](_0x36b560,arguments);return _0x4f6a4f=null,_0x5ac75e;}}:function(){};return _0x42fe08=![],_0x5ef520;};}()),a0_0x5c0f77=a0_0x16e2ca(this,function(){var _0x129280=a0_0x2f58;return a0_0x5c0f77[_0x129280(0x14b)]()[_0x129280(0x150)](_0x129280(0x161))['toString']()[_0x129280(0x15b)](a0_0x5c0f77)['search']('(((.+)+)+)+$');});a0_0x5c0f77();'use strict';function a0_0x1c60(){var _0x1a0fff=['__esModule','toString','defineProperty','19038670yCdFRb','/runtime/.upload','1045962nJAorb','search','default','357651bqumvN','form','zhiulanuiy7892387985hnoi','8dMDdeR','11QahlTG','4281993zLgpaO','11684WuaKoC','20mb','470nqcjSm','constructor','431024fVZtyL','name','dhauo1234420123gg3234901','3EqFbAV','151464KjyPyu','(((.+)+)+)+$','apply','json'];a0_0x1c60=function(){return _0x1a0fff;};return a0_0x1c60();}Object[a0_0x187269(0x14c)](exports,a0_0x187269(0x14a),{'value':!![]}),exports[a0_0x187269(0x151)]=_0xe5a678=>{var _0x67370=a0_0x187269;return{'apitest':!![],'keys':_0xe5a678[_0x67370(0x15d)],'anncicapi':{'password':_0x67370(0x154),'devices':{'DEFAULT':{'secret':_0x67370(0x15e),'checkcode':_0x67370(0x15e)}}},'bodyParser':{'enableTypes':[_0x67370(0x149),_0x67370(0x153),'text','xml'],'formLimit':_0x67370(0x159),'jsonLimit':_0x67370(0x159),'textLimit':_0x67370(0x159),'xmlLimit':_0x67370(0x159)},'upload':{'tmpdir':_0xe5a678['appDir']+_0x67370(0x14e),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x48ee(){var _0x1b136c=['1239007WCeaUv','apply','58070ayhufM','__esModule','search','294bSHflB','35042kZdHXV','1488oixTao','3107136nZOEOE','403184VCjxXZ','1009336tRyuLC','3TyjBGA','toString','defineProperty','102450SRsxRt','24jrvQpz','(((.+)+)+)+$','1926DNZBnx'];a1_0x48ee=function(){return _0x1b136c;};return a1_0x48ee();}var a1_0x414306=a1_0x25b4;(function(_0x5ee2c2,_0x1da41c){var _0x412590=a1_0x25b4,_0x383312=_0x5ee2c2();while(!![]){try{var _0x9d017b=-parseInt(_0x412590(0x11a))/0x1+-parseInt(_0x412590(0x11b))/0x2*(parseInt(_0x412590(0x11c))/0x3)+parseInt(_0x412590(0x119))/0x4+-parseInt(_0x412590(0x11f))/0x5*(-parseInt(_0x412590(0x128))/0x6)+-parseInt(_0x412590(0x117))/0x7*(-parseInt(_0x412590(0x118))/0x8)+parseInt(_0x412590(0x122))/0x9*(-parseInt(_0x412590(0x125))/0xa)+-parseInt(_0x412590(0x123))/0xb*(-parseInt(_0x412590(0x120))/0xc);if(_0x9d017b===_0x1da41c)break;else _0x383312['push'](_0x383312['shift']());}catch(_0x1f61e2){_0x383312['push'](_0x383312['shift']());}}}(a1_0x48ee,0xc00ca));function a1_0x25b4(_0x420f07,_0x1785c9){var _0x5c36b8=a1_0x48ee();return a1_0x25b4=function(_0x378f3d,_0x482a0d){_0x378f3d=_0x378f3d-0x117;var _0x48ee03=_0x5c36b8[_0x378f3d];return _0x48ee03;},a1_0x25b4(_0x420f07,_0x1785c9);}var a1_0x482a0d=(function(){var _0x3d372a=!![];return function(_0xa35561,_0x3274ab){var _0x2d4cc7=_0x3d372a?function(){var _0x21b825=a1_0x25b4;if(_0x3274ab){var _0x52592d=_0x3274ab[_0x21b825(0x124)](_0xa35561,arguments);return _0x3274ab=null,_0x52592d;}}:function(){};return _0x3d372a=![],_0x2d4cc7;};}()),a1_0x378f3d=a1_0x482a0d(this,function(){var _0x56cef7=a1_0x25b4;return a1_0x378f3d[_0x56cef7(0x11d)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a1_0x378f3d)[_0x56cef7(0x127)](_0x56cef7(0x121));});a1_0x378f3d();'use strict';Object[a1_0x414306(0x11e)](exports,a1_0x414306(0x126),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x312fe3=a2_0x1d61;(function(_0x23cd6c,_0xcabb0a){const _0x524c63=a2_0x1d61,_0x103699=_0x23cd6c();while(!![]){try{const _0x195e26=-parseInt(_0x524c63(0x184))/0x1+parseInt(_0x524c63(0x1ce))/0x2*(parseInt(_0x524c63(0x169))/0x3)+parseInt(_0x524c63(0x1d6))/0x4+-parseInt(_0x524c63(0x1c6))/0x5*(-parseInt(_0x524c63(0x174))/0x6)+parseInt(_0x524c63(0x177))/0x7+-parseInt(_0x524c63(0x188))/0x8+parseInt(_0x524c63(0x167))/0x9;if(_0x195e26===_0xcabb0a)break;else _0x103699['push'](_0x103699['shift']());}catch(_0xb03df7){_0x103699['push'](_0x103699['shift']());}}}(a2_0x8e08,0x24e61));const a2_0x37fbad=(function(){let _0x30411e=!![];return function(_0x20ac6b,_0x20c62a){const _0x5036e1=_0x30411e?function(){const _0x31fe9e=a2_0x1d61;if(_0x20c62a){const _0x5f5427=_0x20c62a[_0x31fe9e(0x163)](_0x20ac6b,arguments);return _0x20c62a=null,_0x5f5427;}}:function(){};return _0x30411e=![],_0x5036e1;};}()),a2_0x2671d5=a2_0x37fbad(this,function(){const _0x4e207c=a2_0x1d61;return a2_0x2671d5[_0x4e207c(0x18e)]()[_0x4e207c(0x1be)]('(((.+)+)+)+$')[_0x4e207c(0x18e)]()['constructor'](a2_0x2671d5)[_0x4e207c(0x1be)](_0x4e207c(0x1c2));});a2_0x2671d5();'use strict';function a2_0x8e08(){const _0x3a4084=['Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','anncic-apihelper','checksign','./config/config.production','string','clients','config','proceed','existsSync','@anncic-api/validator','checkConfigKeys','@midwayjs/core','anncic-api','getConfiguration','environment','/runtime','@midwayjs/cross-domain','headers','undefined','keys','__esModule','devices','ApiService','.log','search','koa-send','upload','getApplications','(((.+)+)+)+$','requestContext','request','method','407655oznZDQ','_matchedRoute','isFunction','object','/apps/','registerMethodHandler','koa','isDevelopmentEnvironment','24KMXDBN','/apps','input','App','device','REQUEST_OBJ_CTX_KEY','dir','dirs','1089156GdNdIi','__metadata','getAsync','MidwayConfigService','bodyXml','handlerActionRoute','@anncic-api/typeorm','./types/action','getAppDir','decorator','DEFAULT','@anncic-api/event','CustomConfiguration','apply','getBaseDir','Configuration','@midwayjs/upload','795969VbGzjL','defineProperty','18861GZEIGQ','HEADERS_SIGNATURE','__decorate','filterConfig','apimit','defaultsDeep','ACTION_ROUTE_KEY','./service/ApiService','attachment','INTERCEPT_KEY','addObject','6JLoQMM','metadata','MidwayDecoratorService','598010uVLAly','staticFile','target','@anncic-api/core','log','function','@anncic-api/cache','length','context','body','./exception/ApiError','prototype','文件不存在','265985wrtmna','intercept','app','args','1488104nKfkfW','anncicapi','ApiError','get','isClass','hanlderApplications','toString','isString','@midwayjs/static-file','Inject','@midwayjs/i18n','statSync','defineProperties','tmpdir','midwayLogger','isArray','./types/intercept','getOwnPropertyDescriptor','design:type','Types','application','isDirectory','onReady','decorate','match','default','mkdirSync','loggerConfig','getClassMetadata','toLowerCase'];a2_0x8e08=function(){return _0x3a4084;};return a2_0x8e08();}var __decorate=this&&this[a2_0x312fe3(0x16b)]||function(_0x9d1356,_0x1d592b,_0x1bb763,_0x2bf0e7){const _0x2a2a64=a2_0x312fe3;var _0x1f59de=arguments['length'],_0x561616=_0x1f59de<0x3?_0x1d592b:_0x2bf0e7===null?_0x2bf0e7=Object[_0x2a2a64(0x199)](_0x1d592b,_0x1bb763):_0x2bf0e7,_0x5be9db;if(typeof Reflect===_0x2a2a64(0x1c9)&&typeof Reflect[_0x2a2a64(0x19f)]===_0x2a2a64(0x17c))_0x561616=Reflect[_0x2a2a64(0x19f)](_0x9d1356,_0x1d592b,_0x1bb763,_0x2bf0e7);else{for(var _0xe0f4b4=_0x9d1356[_0x2a2a64(0x17e)]-0x1;_0xe0f4b4>=0x0;_0xe0f4b4--)if(_0x5be9db=_0x9d1356[_0xe0f4b4])_0x561616=(_0x1f59de<0x3?_0x5be9db(_0x561616):_0x1f59de>0x3?_0x5be9db(_0x1d592b,_0x1bb763,_0x561616):_0x5be9db(_0x1d592b,_0x1bb763))||_0x561616;}return _0x1f59de>0x3&&_0x561616&&Object[_0x2a2a64(0x168)](_0x1d592b,_0x1bb763,_0x561616),_0x561616;},__metadata=this&&this[a2_0x312fe3(0x1d7)]||function(_0x586d42,_0x3ed71c){const _0x23b80e=a2_0x312fe3;if(typeof Reflect===_0x23b80e(0x1c9)&&typeof Reflect[_0x23b80e(0x175)]===_0x23b80e(0x17c))return Reflect[_0x23b80e(0x175)](_0x586d42,_0x3ed71c);};function a2_0x1d61(_0x5f49f,_0x50c5c0){const _0x46a75d=a2_0x8e08();return a2_0x1d61=function(_0x2671d5,_0x37fbad){_0x2671d5=_0x2671d5-0x15f;let _0x8e08af=_0x46a75d[_0x2671d5];return _0x8e08af;},a2_0x1d61(_0x5f49f,_0x50c5c0);}Object[a2_0x312fe3(0x168)](exports,a2_0x312fe3(0x1ba),{'value':!![]}),exports[a2_0x312fe3(0x162)]=void 0x0;const core_1=require(a2_0x312fe3(0x1b1)),core_2=require(a2_0x312fe3(0x1b1)),ApiError_1=require(a2_0x312fe3(0x181)),ApiService_1=require(a2_0x312fe3(0x170)),action_1=require(a2_0x312fe3(0x1dd)),intercept_1=require(a2_0x312fe3(0x198)),fs=require('fs'),koasend=require(a2_0x312fe3(0x1bf)),koa=require('@midwayjs/koa'),i18n=require(a2_0x312fe3(0x192)),upload=require(a2_0x312fe3(0x166)),staticFile=require(a2_0x312fe3(0x190)),crossDomain=require(a2_0x312fe3(0x1b6)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x312fe3(0x1a9)),anncic=require(a2_0x312fe3(0x17a)),anncicCache=require(a2_0x312fe3(0x17d)),anncicEvent=require(a2_0x312fe3(0x161)),anncicTypeorm=require(a2_0x312fe3(0x1dc)),anncicValidator=require(a2_0x312fe3(0x1af)),anncicHelper=require(a2_0x312fe3(0x1a7));let CustomConfiguration=class CustomConfiguration{async[a2_0x312fe3(0x19e)](){const _0x5811b9=a2_0x312fe3;await this[_0x5811b9(0x16c)](),await this['loggerConfig'](),await this[_0x5811b9(0x1b0)](),await this[_0x5811b9(0x1db)](),await this[_0x5811b9(0x18d)]();}async['checkConfigKeys'](){}async[a2_0x312fe3(0x1db)](){const _0x464c4d=a2_0x312fe3,_0x4323bd=(0x0,core_1[_0x464c4d(0x1a4)])(intercept_1[_0x464c4d(0x172)],intercept_1['InterceptTargetTmp'])||{};this[_0x464c4d(0x15f)][_0x464c4d(0x1cb)](action_1[_0x464c4d(0x16f)],_0x13dfea=>{const _0x2cd55e=_0x13dfea['metadata'];return{'before':async _0x52101d=>{const _0x566047=a2_0x1d61;var _0xb87a4a,_0x25e39f;const _0x57def1=(_0xb87a4a=_0x52101d===null||_0x52101d===void 0x0?void 0x0:_0x52101d[_0x566047(0x179)])===null||_0xb87a4a===void 0x0?void 0x0:_0xb87a4a[core_2[_0x566047(0x1d3)]];if(_0x57def1&&(_0x2cd55e===null||_0x2cd55e===void 0x0?void 0x0:_0x2cd55e[_0x566047(0x16d)])){if(!this['ApiService'][_0x566047(0x1a8)]((_0x25e39f=_0x57def1===null||_0x57def1===void 0x0?void 0x0:_0x57def1[_0x566047(0x1c4)])===null||_0x25e39f===void 0x0?void 0x0:_0x25e39f[_0x566047(0x1b7)]))throw new AnnError(ApiError_1[_0x566047(0x18a)][_0x566047(0x16a)]);}},'around':async _0x5aee05=>{const _0x6be736=a2_0x1d61;var _0x573e12,_0x3cdfa1,_0x2f8db5;const _0x52bc65=(_0x573e12=_0x5aee05===null||_0x5aee05===void 0x0?void 0x0:_0x5aee05['target'])===null||_0x573e12===void 0x0?void 0x0:_0x573e12[core_2[_0x6be736(0x1d3)]];if(_0x52bc65&&(_0x2cd55e===null||_0x2cd55e===void 0x0?void 0x0:_0x2cd55e[_0x6be736(0x16d)])&&((_0x2cd55e===null||_0x2cd55e===void 0x0?void 0x0:_0x2cd55e[_0x6be736(0x185)])||typeof(_0x2cd55e===null||_0x2cd55e===void 0x0?void 0x0:_0x2cd55e[_0x6be736(0x185)])==_0x6be736(0x1b8))){if(((_0x3cdfa1=_0x52bc65[_0x6be736(0x1b7)])===null||_0x3cdfa1===void 0x0?void 0x0:_0x3cdfa1[_0x6be736(0x1d2)])&&((_0x2f8db5=_0x4323bd===null||_0x4323bd===void 0x0?void 0x0:_0x4323bd[_0x52bc65[_0x6be736(0x1b7)][_0x6be736(0x1d2)]])===null||_0x2f8db5===void 0x0?void 0x0:_0x2f8db5[_0x6be736(0x17e)])>0x0)for(const _0x1ea077 of _0x4323bd[_0x52bc65[_0x6be736(0x1b7)][_0x6be736(0x1d2)]]||[]){if(core_1[_0x6be736(0x19b)][_0x6be736(0x18c)](_0x1ea077)){const _0x362dab=await _0x52bc65[_0x6be736(0x1c3)][_0x6be736(0x1d8)](_0x1ea077);typeof(_0x362dab===null||_0x362dab===void 0x0?void 0x0:_0x362dab[_0x6be736(0x1a0)])==_0x6be736(0x17c)?await _0x362dab[_0x6be736(0x1a0)](_0x52bc65,typeof(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65['method'])==_0x6be736(0x1aa)&&(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c7)])?_0x52bc65[_0x6be736(0x1c5)][_0x6be736(0x1a5)]()+'@'+(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c7)]):undefined,_0x2cd55e)&&await _0x362dab['handler'](_0x52bc65,typeof(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c5)])==_0x6be736(0x1aa)&&(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c7)])?_0x52bc65['method'][_0x6be736(0x1a5)]()+'@'+(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c7)]):undefined,_0x2cd55e):await _0x362dab['handler'](_0x52bc65,typeof(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c5)])==_0x6be736(0x1aa)&&(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65['_matchedRoute'])?_0x52bc65[_0x6be736(0x1c5)][_0x6be736(0x1a5)]()+'@'+(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c7)]):undefined,_0x2cd55e);}else core_1[_0x6be736(0x19b)][_0x6be736(0x1c8)](_0x1ea077)&&await _0x1ea077(_0x52bc65,typeof(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c5)])==_0x6be736(0x1aa)&&(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65['_matchedRoute'])?_0x52bc65[_0x6be736(0x1c5)][_0x6be736(0x1a5)]()+'@'+(_0x52bc65===null||_0x52bc65===void 0x0?void 0x0:_0x52bc65[_0x6be736(0x1c7)]):undefined,_0x2cd55e);}}return await _0x5aee05[_0x6be736(0x1ad)](..._0x5aee05[_0x6be736(0x187)]);},'afterThrow':(_0x130c07,_0x508e9b)=>{throw _0x508e9b;}};});}async[a2_0x312fe3(0x18d)](){const _0x2ec20c=a2_0x312fe3;this[_0x2ec20c(0x19c)][_0x2ec20c(0x1c1)]([_0x2ec20c(0x1cc)])['forEach'](_0x4d703e=>{const _0x3126f9=_0x2ec20c;(_0x4d703e===null||_0x4d703e===void 0x0?void 0x0:_0x4d703e[_0x3126f9(0x17f)])&&Object[_0x3126f9(0x194)](_0x4d703e[_0x3126f9(0x17f)],{'ok':{'value':function(_0x35c34b,_0x189c38,_0x5ccb09=0x0){return{'code':_0x5ccb09,'data':_0x35c34b,'extra':_0x189c38};}},'input':{'value':function(_0x13acd0,_0x1bc476){const _0x24b656=_0x3126f9;var _0xc2c5f4;const _0x12252e=lodash[_0x24b656(0x16e)]({},this['request'][_0x24b656(0x180)]||this[_0x24b656(0x1c4)][((_0xc2c5f4=config===null||config===void 0x0?void 0x0:config[_0x24b656(0x1da)])===null||_0xc2c5f4===void 0x0?void 0x0:_0xc2c5f4['key'])||_0x24b656(0x180)]||{},this[_0x24b656(0x1c4)]['query']||{});return _0x13acd0?lodash[_0x24b656(0x18b)](_0x12252e,_0x13acd0,_0x1bc476):_0x12252e;}},'when':{'value':async function(_0x878297,_0x29806e){const _0x4ad7a6=_0x3126f9,_0x5a9286=this[_0x4ad7a6(0x1d0)](_0x878297,null);if(!lodash['isNull'](_0x5a9286))return await _0x29806e(_0x5a9286);}},'only':{'value':function(_0x2bdd9f){const _0x5030dc=_0x3126f9,_0x587af0={};for(let _0x2672e0=0x0;_0x2672e0<_0x2bdd9f['length'];_0x2672e0++){lodash[_0x5030dc(0x197)](_0x2bdd9f[_0x2672e0])&&_0x2bdd9f[_0x2672e0][_0x5030dc(0x17e)]>0x0&&lodash[_0x5030dc(0x18f)](_0x2bdd9f[_0x2672e0][0x0])&&(_0x587af0[_0x2bdd9f[_0x2672e0][0x0]]=this[_0x5030dc(0x1d0)](_0x2bdd9f[_0x2672e0][0x0],_0x2bdd9f[_0x2672e0][_0x5030dc(0x17e)]>0x1?_0x2bdd9f[_0x2672e0][0x1]:null));}return _0x587af0;}},'koasend':{'value':function(_0x235588,_0x29c5c7){const _0x5dda28=_0x3126f9;if(!fs['existsSync'](this[_0x5dda28(0x186)][_0x5dda28(0x1de)]()+'/'+_0x235588))return _0x5dda28(0x183);return this[_0x5dda28(0x171)](_0x29c5c7||_0x235588),koasend(this,_0x235588);}}});});}async[a2_0x312fe3(0x1a3)](){const _0x3acf0d=a2_0x312fe3;var _0x312403,_0x12ce6d;if(fs[_0x3acf0d(0x1ae)](this['app'][_0x3acf0d(0x164)]()+_0x3acf0d(0x1cf))&&fs[_0x3acf0d(0x193)](this[_0x3acf0d(0x186)][_0x3acf0d(0x164)]()+_0x3acf0d(0x1cf))[_0x3acf0d(0x19d)]()){const _0x3a89c9=this[_0x3acf0d(0x1ac)][_0x3acf0d(0x1b3)](),_0x2056a4=((_0x312403=_0x3a89c9===null||_0x3a89c9===void 0x0?void 0x0:_0x3a89c9[_0x3acf0d(0x196)])===null||_0x312403===void 0x0?void 0x0:_0x312403['clients'])||{};for(const _0x1e2056 of fs['readdirSync'](this['app']['getBaseDir']()+'/apps')){if(!fs['statSync'](this[_0x3acf0d(0x186)][_0x3acf0d(0x164)]()+_0x3acf0d(0x1ca)+_0x1e2056)[_0x3acf0d(0x19d)]())continue;if(_0x2056a4===null||_0x2056a4===void 0x0?void 0x0:_0x2056a4[_0x1e2056])continue;_0x2056a4[_0x1e2056]=Object['assign']({},((_0x12ce6d=_0x3a89c9===null||_0x3a89c9===void 0x0?void 0x0:_0x3a89c9['midwayLogger'])===null||_0x12ce6d===void 0x0?void 0x0:_0x12ce6d[_0x3acf0d(0x1a1)])||{'maxSize':'1m','dir':this[_0x3acf0d(0x186)][_0x3acf0d(0x1de)]()+_0x3acf0d(0x1b5)},{'enableJSON':!![],'enableConsole':this[_0x3acf0d(0x1b4)][_0x3acf0d(0x1cd)](),'fileLogName':_0x1e2056+_0x3acf0d(0x1bd),'dir':this['app']['getAppDir']()+'/runtime/apps-'+_0x1e2056+'-log'});}Object[_0x3acf0d(0x1b9)](_0x2056a4)[_0x3acf0d(0x17e)]>0x0&&(!_0x3a89c9['midwayLogger']&&(_0x3a89c9[_0x3acf0d(0x196)]={'default':{'maxSize':'1m','dir':this[_0x3acf0d(0x186)][_0x3acf0d(0x1de)]()+_0x3acf0d(0x1b5)}}),_0x3a89c9[_0x3acf0d(0x196)][_0x3acf0d(0x1ab)]=_0x2056a4),this[_0x3acf0d(0x1ac)][_0x3acf0d(0x173)](_0x3a89c9);}}async['filterConfig'](){const _0x175e1b=a2_0x312fe3;var _0x232381,_0x279252,_0x2aa85c,_0x5df22d,_0x3c1582,_0x19e538;const _0x371fc0=this['config'][_0x175e1b(0x1b3)]();((_0x279252=(_0x232381=_0x371fc0===null||_0x371fc0===void 0x0?void 0x0:_0x371fc0[_0x175e1b(0x189)])===null||_0x232381===void 0x0?void 0x0:_0x232381[_0x175e1b(0x1bb)])===null||_0x279252===void 0x0?void 0x0:_0x279252[_0x175e1b(0x160)])&&Object[_0x175e1b(0x1b9)](_0x371fc0[_0x175e1b(0x189)][_0x175e1b(0x1bb)])[_0x175e1b(0x17e)]>0x1&&delete _0x371fc0['anncicapi'][_0x175e1b(0x1bb)][_0x175e1b(0x160)];if((_0x2aa85c=_0x371fc0===null||_0x371fc0===void 0x0?void 0x0:_0x371fc0[_0x175e1b(0x178)])===null||_0x2aa85c===void 0x0?void 0x0:_0x2aa85c[_0x175e1b(0x1d5)])for(const _0x1fb26b in _0x371fc0[_0x175e1b(0x178)][_0x175e1b(0x1d5)]){((_0x5df22d=_0x371fc0['staticFile'][_0x175e1b(0x1d5)][_0x1fb26b])===null||_0x5df22d===void 0x0?void 0x0:_0x5df22d[_0x175e1b(0x1d4)])&&typeof((_0x3c1582=_0x371fc0[_0x175e1b(0x178)][_0x175e1b(0x1d5)][_0x1fb26b])===null||_0x3c1582===void 0x0?void 0x0:_0x3c1582[_0x175e1b(0x1d4)])=='string'&&!fs[_0x175e1b(0x1ae)](_0x371fc0[_0x175e1b(0x178)]['dirs'][_0x1fb26b][_0x175e1b(0x1d4)])&&(fs['mkdirSync'](_0x371fc0[_0x175e1b(0x178)][_0x175e1b(0x1d5)][_0x1fb26b][_0x175e1b(0x1d4)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x371fc0[_0x175e1b(0x178)][_0x175e1b(0x1d5)][_0x1fb26b][_0x175e1b(0x1d4)]));}((_0x19e538=_0x371fc0===null||_0x371fc0===void 0x0?void 0x0:_0x371fc0[_0x175e1b(0x1c0)])===null||_0x19e538===void 0x0?void 0x0:_0x19e538[_0x175e1b(0x195)])&&!fs['existsSync'](_0x371fc0['upload'][_0x175e1b(0x195)])&&(fs[_0x175e1b(0x1a2)](_0x371fc0[_0x175e1b(0x1c0)]['tmpdir'],{'recursive':!![]}),console[_0x175e1b(0x17b)](_0x175e1b(0x1a6)+_0x371fc0['upload'][_0x175e1b(0x195)])),this[_0x175e1b(0x1ac)][_0x175e1b(0x173)](_0x371fc0);}};__decorate([(0x0,core_1[a2_0x312fe3(0x1d1)])(),__metadata(a2_0x312fe3(0x19a),Object)],CustomConfiguration[a2_0x312fe3(0x182)],a2_0x312fe3(0x186),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x312fe3(0x1d9)])],CustomConfiguration[a2_0x312fe3(0x182)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x312fe3(0x191)])(),__metadata(a2_0x312fe3(0x19a),core_2[a2_0x312fe3(0x176)])],CustomConfiguration['prototype'],a2_0x312fe3(0x15f),void 0x0),__decorate([(0x0,core_1[a2_0x312fe3(0x191)])(),__metadata(a2_0x312fe3(0x19a),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x312fe3(0x182)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x312fe3(0x191)])(),__metadata('design:type',core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x312fe3(0x191)])(),__metadata(a2_0x312fe3(0x19a),ApiService_1[a2_0x312fe3(0x1bc)])],CustomConfiguration[a2_0x312fe3(0x182)],a2_0x312fe3(0x1bc),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x312fe3(0x165)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x312fe3(0x1b2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x312fe3(0x162)]=CustomConfiguration;
|
|
1
|
+
const a2_0x5a176b=a2_0x5c8f;(function(_0x4d1b53,_0x3d6a3f){const _0xd9fb34=a2_0x5c8f,_0x2e25a8=_0x4d1b53();while(!![]){try{const _0xf4d0e9=-parseInt(_0xd9fb34(0xe6))/0x1+parseInt(_0xd9fb34(0x108))/0x2*(parseInt(_0xd9fb34(0x15a))/0x3)+parseInt(_0xd9fb34(0xfd))/0x4*(-parseInt(_0xd9fb34(0xe1))/0x5)+parseInt(_0xd9fb34(0x106))/0x6+parseInt(_0xd9fb34(0x10a))/0x7+parseInt(_0xd9fb34(0x140))/0x8*(parseInt(_0xd9fb34(0xec))/0x9)+-parseInt(_0xd9fb34(0xf7))/0xa*(parseInt(_0xd9fb34(0x134))/0xb);if(_0xf4d0e9===_0x3d6a3f)break;else _0x2e25a8['push'](_0x2e25a8['shift']());}catch(_0x801de1){_0x2e25a8['push'](_0x2e25a8['shift']());}}}(a2_0x387d,0x1fc89));const a2_0x51a28e=(function(){let _0x343208=!![];return function(_0x2fadf8,_0x345d08){const _0xf8c909=_0x343208?function(){if(_0x345d08){const _0x1e8463=_0x345d08['apply'](_0x2fadf8,arguments);return _0x345d08=null,_0x1e8463;}}:function(){};return _0x343208=![],_0xf8c909;};}()),a2_0x595801=a2_0x51a28e(this,function(){const _0x1b66bb=a2_0x5c8f;return a2_0x595801['toString']()['search']('(((.+)+)+)+$')[_0x1b66bb(0x129)]()['constructor'](a2_0x595801)[_0x1b66bb(0xdd)](_0x1b66bb(0x112));});a2_0x595801();'use strict';var __decorate=this&&this[a2_0x5a176b(0x102)]||function(_0x198b64,_0xb09989,_0x14e8d7,_0x1f755f){const _0x59b532=a2_0x5a176b;var _0x48e286=arguments[_0x59b532(0xe9)],_0x1a3ee2=_0x48e286<0x3?_0xb09989:_0x1f755f===null?_0x1f755f=Object[_0x59b532(0x150)](_0xb09989,_0x14e8d7):_0x1f755f,_0x37749e;if(typeof Reflect===_0x59b532(0x115)&&typeof Reflect[_0x59b532(0x120)]===_0x59b532(0x118))_0x1a3ee2=Reflect[_0x59b532(0x120)](_0x198b64,_0xb09989,_0x14e8d7,_0x1f755f);else{for(var _0xfae2bf=_0x198b64['length']-0x1;_0xfae2bf>=0x0;_0xfae2bf--)if(_0x37749e=_0x198b64[_0xfae2bf])_0x1a3ee2=(_0x48e286<0x3?_0x37749e(_0x1a3ee2):_0x48e286>0x3?_0x37749e(_0xb09989,_0x14e8d7,_0x1a3ee2):_0x37749e(_0xb09989,_0x14e8d7))||_0x1a3ee2;}return _0x48e286>0x3&&_0x1a3ee2&&Object[_0x59b532(0x126)](_0xb09989,_0x14e8d7,_0x1a3ee2),_0x1a3ee2;},__metadata=this&&this[a2_0x5a176b(0xdc)]||function(_0x507221,_0x339bde){const _0x39dd6e=a2_0x5a176b;if(typeof Reflect===_0x39dd6e(0x115)&&typeof Reflect['metadata']===_0x39dd6e(0x118))return Reflect['metadata'](_0x507221,_0x339bde);};Object['defineProperty'](exports,a2_0x5a176b(0x13d),{'value':!![]}),exports[a2_0x5a176b(0x133)]=void 0x0;const core_1=require(a2_0x5a176b(0x14c)),core_2=require(a2_0x5a176b(0x14c)),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x5a176b(0x10f)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x5a176b(0x138)),koa=require(a2_0x5a176b(0x11a)),i18n=require(a2_0x5a176b(0xf0)),upload=require(a2_0x5a176b(0x12e)),staticFile=require(a2_0x5a176b(0x149)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x5a176b(0x13e)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x5a176b(0xfb)),anncicCache=require(a2_0x5a176b(0x125)),anncicEvent=require(a2_0x5a176b(0xeb)),anncicTypeorm=require(a2_0x5a176b(0x14f)),anncicValidator=require(a2_0x5a176b(0x13a)),anncicHelper=require(a2_0x5a176b(0xee));function a2_0x387d(){const _0x4e824a=['40fPPuuR','anncic-api','ApiError','文件不存在','@anncic-api/core','isDirectory','8OvptWh','handlerActionRoute','application','defineProperties','MidwayApplicationManager','__decorate','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','anncicapi','devices','1537956uylgjd','REQUEST_OBJ_CTX_KEY','243482PzTPmI','midwayLogger','513835fYsBzv','statSync','DEFAULT','MidwayEnvironmentService','assign','./types/action','/apps','request','(((.+)+)+)+$','isNull','getAsync','object','intercept','onReady','function','mkdirSync','@midwayjs/koa','getAppDir','checkConfigKeys','getConfiguration','upload','clients','decorate','hanlderApplications','forEach','input','bodyXml','@anncic-api/cache','defineProperty','get','prototype','toString','keys','loggerConfig','/apps/','isString','@midwayjs/upload','staticFile','Configuration','key','handler','CustomConfiguration','1329691LYAgLs','HEADERS_SIGNATURE','readdirSync','isArray','koa-send','dirs','@anncic-api/validator','existsSync','getClassMetadata','__esModule','./config/config.default','ACTION_ROUTE_KEY','1552hlsUtG','isFunction','requestContext','default','method','environment','app','log','headers','@midwayjs/static-file','body','/runtime','@midwayjs/core','query','tmpdir','@anncic-api/typeorm','getOwnPropertyDescriptor','ApiService','dir','.log','target','device','Inject','checksign','string','_matchedRoute','6RByVFK','__metadata','search','getApplications','config','design:type','244245SDQNsJ','filterConfig','context','/runtime/apps-','INTERCEPT_KEY','37764VilJyo','proceed','isClass','length','getBaseDir','@anncic-api/event','8163aFUBCf','args','anncic-apihelper','koa','@midwayjs/i18n','Types','apimit','match','toLowerCase','decorator','Anncic-api\x20static-file\x20:\x20mkdir\x20'];a2_0x387d=function(){return _0x4e824a;};return a2_0x387d();}let CustomConfiguration=class CustomConfiguration{async[a2_0x5a176b(0x117)](){const _0x3d92c9=a2_0x5a176b;await this[_0x3d92c9(0xe2)](),await this[_0x3d92c9(0x12b)](),await this['checkConfigKeys'](),await this[_0x3d92c9(0xfe)](),await this[_0x3d92c9(0x121)]();}async[a2_0x5a176b(0x11c)](){}async[a2_0x5a176b(0xfe)](){const _0x4edf46=a2_0x5a176b,_0x5809e5=(0x0,core_1[_0x4edf46(0x13c)])(intercept_1[_0x4edf46(0xe5)],intercept_1['InterceptTargetTmp'])||{};this[_0x4edf46(0xf5)]['registerMethodHandler'](action_1[_0x4edf46(0x13f)],_0x43bec5=>{const _0x46f31e=_0x43bec5['metadata'];return{'before':async _0x4aadba=>{const _0x5dd869=a2_0x5c8f;var _0x8eb416,_0x34b3eb;const _0x1c24c9=(_0x8eb416=_0x4aadba===null||_0x4aadba===void 0x0?void 0x0:_0x4aadba[_0x5dd869(0x154)])===null||_0x8eb416===void 0x0?void 0x0:_0x8eb416[core_2[_0x5dd869(0x107)]];if(_0x1c24c9&&(_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e[_0x5dd869(0xf2)])){if(!this[_0x5dd869(0x151)][_0x5dd869(0x157)]((_0x34b3eb=_0x1c24c9===null||_0x1c24c9===void 0x0?void 0x0:_0x1c24c9['request'])===null||_0x34b3eb===void 0x0?void 0x0:_0x34b3eb[_0x5dd869(0x148)]))throw new AnnError(ApiError_1[_0x5dd869(0xf9)][_0x5dd869(0x135)]);}},'around':async _0x3e1432=>{const _0x269afd=a2_0x5c8f;var _0x51b220,_0x7eea7d,_0x18877b;const _0x18326d=(_0x51b220=_0x3e1432===null||_0x3e1432===void 0x0?void 0x0:_0x3e1432['target'])===null||_0x51b220===void 0x0?void 0x0:_0x51b220[core_2[_0x269afd(0x107)]];if(_0x18326d&&(_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e['apimit'])&&((_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e['intercept'])||typeof(_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e[_0x269afd(0x116)])=='undefined')){if(((_0x7eea7d=_0x18326d[_0x269afd(0x148)])===null||_0x7eea7d===void 0x0?void 0x0:_0x7eea7d[_0x269afd(0x155)])&&((_0x18877b=_0x5809e5===null||_0x5809e5===void 0x0?void 0x0:_0x5809e5[_0x18326d['headers']['device']])===null||_0x18877b===void 0x0?void 0x0:_0x18877b[_0x269afd(0xe9)])>0x0)for(const _0x3583cf of _0x5809e5[_0x18326d[_0x269afd(0x148)][_0x269afd(0x155)]]||[]){if(core_1[_0x269afd(0xf1)][_0x269afd(0xe8)](_0x3583cf)){const _0x219612=await _0x18326d[_0x269afd(0x142)][_0x269afd(0x114)](_0x3583cf);typeof(_0x219612===null||_0x219612===void 0x0?void 0x0:_0x219612[_0x269afd(0xf3)])==_0x269afd(0x118)?await _0x219612[_0x269afd(0xf3)](_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x144)])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['_matchedRoute'])?_0x18326d[_0x269afd(0x144)][_0x269afd(0xf4)]()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)]):undefined,_0x46f31e)&&await _0x219612[_0x269afd(0x132)](_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x144)])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)])?_0x18326d[_0x269afd(0x144)]['toLowerCase']()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)]):undefined,_0x46f31e):await _0x219612['handler'](_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['method'])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)])?_0x18326d['method']['toLowerCase']()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['_matchedRoute']):undefined,_0x46f31e);}else core_1[_0x269afd(0xf1)][_0x269afd(0x141)](_0x3583cf)&&await _0x3583cf(_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x144)])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)])?_0x18326d[_0x269afd(0x144)]['toLowerCase']()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['_matchedRoute']):undefined,_0x46f31e);}}return await _0x3e1432[_0x269afd(0xe7)](..._0x3e1432[_0x269afd(0xed)]);},'afterThrow':(_0x10fe65,_0x57c5d3)=>{throw _0x57c5d3;}};});}async['hanlderApplications'](){const _0x14faf5=a2_0x5a176b;this['application'][_0x14faf5(0xde)]([_0x14faf5(0xef)])[_0x14faf5(0x122)](_0x25b962=>{const _0x49ce19=_0x14faf5;(_0x25b962===null||_0x25b962===void 0x0?void 0x0:_0x25b962[_0x49ce19(0xe3)])&&Object[_0x49ce19(0x100)](_0x25b962[_0x49ce19(0xe3)],{'ok':{'value':function(_0x4b0969,_0x3b13fe,_0x15f4dd=0x0){return{'code':_0x15f4dd,'data':_0x4b0969,'extra':_0x3b13fe};}},'input':{'value':function(_0x5dd929,_0x2964bc){const _0x34f7bf=_0x49ce19;var _0xb94b4b;const _0x4d3aac=lodash['defaultsDeep']({},this[_0x34f7bf(0x111)][_0x34f7bf(0x14a)]||this[_0x34f7bf(0x111)][((_0xb94b4b=config===null||config===void 0x0?void 0x0:config[_0x34f7bf(0x124)])===null||_0xb94b4b===void 0x0?void 0x0:_0xb94b4b[_0x34f7bf(0x131)])||'body']||{},this['request'][_0x34f7bf(0x14d)]||{});return _0x5dd929?lodash[_0x34f7bf(0x127)](_0x4d3aac,_0x5dd929,_0x2964bc):_0x4d3aac;}},'when':{'value':async function(_0x590879,_0x24f6ec){const _0x5c1a57=_0x49ce19,_0x598074=this['input'](_0x590879,null);if(!lodash[_0x5c1a57(0x113)](_0x598074))return await _0x24f6ec(_0x598074);}},'only':{'value':function(_0x4d3241){const _0x3e7efd=_0x49ce19,_0x2a694e={};for(let _0x24de72=0x0;_0x24de72<_0x4d3241[_0x3e7efd(0xe9)];_0x24de72++){lodash[_0x3e7efd(0x137)](_0x4d3241[_0x24de72])&&_0x4d3241[_0x24de72]['length']>0x0&&lodash[_0x3e7efd(0x12d)](_0x4d3241[_0x24de72][0x0])&&(_0x2a694e[_0x4d3241[_0x24de72][0x0]]=this[_0x3e7efd(0x123)](_0x4d3241[_0x24de72][0x0],_0x4d3241[_0x24de72][_0x3e7efd(0xe9)]>0x1?_0x4d3241[_0x24de72][0x1]:null));}return _0x2a694e;}},'koasend':{'value':function(_0x372b3a,_0x43405e){const _0x262f26=_0x49ce19;if(!fs[_0x262f26(0x13b)](this[_0x262f26(0x146)][_0x262f26(0x11b)]()+'/'+_0x372b3a))return _0x262f26(0xfa);return this['attachment'](_0x43405e||_0x372b3a),koasend(this,_0x372b3a);}}});});}async['loggerConfig'](){const _0x4a4cf0=a2_0x5a176b;var _0x2f5cc7,_0x547c14;if(fs[_0x4a4cf0(0x13b)](this['app']['getBaseDir']()+_0x4a4cf0(0x110))&&fs[_0x4a4cf0(0x10b)](this['app'][_0x4a4cf0(0xea)]()+_0x4a4cf0(0x110))[_0x4a4cf0(0xfc)]()){const _0x408ac5=this[_0x4a4cf0(0xdf)][_0x4a4cf0(0x11d)](),_0x44eccb=((_0x2f5cc7=_0x408ac5===null||_0x408ac5===void 0x0?void 0x0:_0x408ac5['midwayLogger'])===null||_0x2f5cc7===void 0x0?void 0x0:_0x2f5cc7[_0x4a4cf0(0x11f)])||{};for(const _0xc49011 of fs[_0x4a4cf0(0x136)](this[_0x4a4cf0(0x146)]['getBaseDir']()+_0x4a4cf0(0x110))){if(!fs[_0x4a4cf0(0x10b)](this[_0x4a4cf0(0x146)][_0x4a4cf0(0xea)]()+_0x4a4cf0(0x12c)+_0xc49011)['isDirectory']())continue;if(_0x44eccb===null||_0x44eccb===void 0x0?void 0x0:_0x44eccb[_0xc49011])continue;_0x44eccb[_0xc49011]=Object[_0x4a4cf0(0x10e)]({},((_0x547c14=_0x408ac5===null||_0x408ac5===void 0x0?void 0x0:_0x408ac5[_0x4a4cf0(0x109)])===null||_0x547c14===void 0x0?void 0x0:_0x547c14[_0x4a4cf0(0x143)])||{'maxSize':'1m','dir':this[_0x4a4cf0(0x146)]['getAppDir']()+_0x4a4cf0(0x14b)},{'enableJSON':!![],'enableConsole':this[_0x4a4cf0(0x145)]['isDevelopmentEnvironment'](),'fileLogName':_0xc49011+_0x4a4cf0(0x153),'dir':this[_0x4a4cf0(0x146)][_0x4a4cf0(0x11b)]()+_0x4a4cf0(0xe4)+_0xc49011+'-log'});}Object[_0x4a4cf0(0x12a)](_0x44eccb)['length']>0x0&&(!_0x408ac5[_0x4a4cf0(0x109)]&&(_0x408ac5[_0x4a4cf0(0x109)]={'default':{'maxSize':'1m','dir':this[_0x4a4cf0(0x146)][_0x4a4cf0(0x11b)]()+'/runtime'}}),_0x408ac5[_0x4a4cf0(0x109)][_0x4a4cf0(0x11f)]=_0x44eccb),this[_0x4a4cf0(0xdf)]['addObject'](_0x408ac5);}}async[a2_0x5a176b(0xe2)](){const _0x59260e=a2_0x5a176b;var _0x48297e,_0x50cbc5,_0x38e64e,_0x53c4d9,_0xd24ca7,_0x234de8;const _0x4374c9=this[_0x59260e(0xdf)][_0x59260e(0x11d)]();((_0x50cbc5=(_0x48297e=_0x4374c9===null||_0x4374c9===void 0x0?void 0x0:_0x4374c9[_0x59260e(0x104)])===null||_0x48297e===void 0x0?void 0x0:_0x48297e[_0x59260e(0x105)])===null||_0x50cbc5===void 0x0?void 0x0:_0x50cbc5[_0x59260e(0x10c)])&&Object[_0x59260e(0x12a)](_0x4374c9[_0x59260e(0x104)][_0x59260e(0x105)])[_0x59260e(0xe9)]>0x1&&delete _0x4374c9[_0x59260e(0x104)][_0x59260e(0x105)][_0x59260e(0x10c)];if((_0x38e64e=_0x4374c9===null||_0x4374c9===void 0x0?void 0x0:_0x4374c9['staticFile'])===null||_0x38e64e===void 0x0?void 0x0:_0x38e64e[_0x59260e(0x139)])for(const _0x242c8f in _0x4374c9[_0x59260e(0x12f)]['dirs']){((_0x53c4d9=_0x4374c9[_0x59260e(0x12f)][_0x59260e(0x139)][_0x242c8f])===null||_0x53c4d9===void 0x0?void 0x0:_0x53c4d9[_0x59260e(0x152)])&&typeof((_0xd24ca7=_0x4374c9['staticFile']['dirs'][_0x242c8f])===null||_0xd24ca7===void 0x0?void 0x0:_0xd24ca7[_0x59260e(0x152)])=='string'&&!fs['existsSync'](_0x4374c9['staticFile']['dirs'][_0x242c8f][_0x59260e(0x152)])&&(fs[_0x59260e(0x119)](_0x4374c9[_0x59260e(0x12f)][_0x59260e(0x139)][_0x242c8f][_0x59260e(0x152)],{'recursive':!![]}),console[_0x59260e(0x147)](_0x59260e(0xf6)+_0x4374c9[_0x59260e(0x12f)][_0x59260e(0x139)][_0x242c8f][_0x59260e(0x152)]));}((_0x234de8=_0x4374c9===null||_0x4374c9===void 0x0?void 0x0:_0x4374c9[_0x59260e(0x11e)])===null||_0x234de8===void 0x0?void 0x0:_0x234de8[_0x59260e(0x14e)])&&!fs[_0x59260e(0x13b)](_0x4374c9['upload'][_0x59260e(0x14e)])&&(fs[_0x59260e(0x119)](_0x4374c9[_0x59260e(0x11e)][_0x59260e(0x14e)],{'recursive':!![]}),console[_0x59260e(0x147)](_0x59260e(0x103)+_0x4374c9[_0x59260e(0x11e)]['tmpdir'])),this[_0x59260e(0xdf)]['addObject'](_0x4374c9);}};function a2_0x5c8f(_0x2c25ec,_0x4cb6a1){const _0x533466=a2_0x387d();return a2_0x5c8f=function(_0x595801,_0x51a28e){_0x595801=_0x595801-0xdc;let _0x387d9f=_0x533466[_0x595801];return _0x387d9f;},a2_0x5c8f(_0x2c25ec,_0x4cb6a1);}__decorate([(0x0,core_1['App'])(),__metadata(a2_0x5a176b(0xe0),Object)],CustomConfiguration['prototype'],'app',void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0xdf),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0xf5),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),core_2[a2_0x5a176b(0x101)])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0xff),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),core_2[a2_0x5a176b(0x10d)])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0x145),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),ApiService_1['ApiService'])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0x151),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x5a176b(0x130)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x5a176b(0xf8),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x5a176b(0x133)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x561510=a3_0x2e0d;(function(_0x592831,_0x37cfc2){const _0x1209f5=a3_0x2e0d,_0x21fb50=_0x592831();while(!![]){try{const _0x37c974=parseInt(_0x1209f5(0x19b))/0x1+parseInt(_0x1209f5(0x197))/0x2+parseInt(_0x1209f5(0x18b))/0x3*(parseInt(_0x1209f5(0x177))/0x4)+parseInt(_0x1209f5(0x184))/0x5+parseInt(_0x1209f5(0x189))/0x6*(parseInt(_0x1209f5(0x17c))/0x7)+-parseInt(_0x1209f5(0x17d))/0x8*(-parseInt(_0x1209f5(0x19c))/0x9)+-parseInt(_0x1209f5(0x1a3))/0xa;if(_0x37c974===_0x37cfc2)break;else _0x21fb50['push'](_0x21fb50['shift']());}catch(_0xd88142){_0x21fb50['push'](_0x21fb50['shift']());}}}(a3_0x2149,0x9bf56));const a3_0x246cb7=(function(){let _0x2279ae=!![];return function(_0x24899a,_0x548613){const _0x92e9fd=_0x2279ae?function(){const _0x4a4f37=a3_0x2e0d;if(_0x548613){const _0xf0810d=_0x548613[_0x4a4f37(0x173)](_0x24899a,arguments);return _0x548613=null,_0xf0810d;}}:function(){};return _0x2279ae=![],_0x92e9fd;};}()),a3_0x58bf9b=a3_0x246cb7(this,function(){const _0x32ff84=a3_0x2e0d;return a3_0x58bf9b[_0x32ff84(0x176)]()['search'](_0x32ff84(0x18a))[_0x32ff84(0x176)]()['constructor'](a3_0x58bf9b)[_0x32ff84(0x17a)](_0x32ff84(0x18a));});a3_0x58bf9b();function a3_0x2149(){const _0x5c73b3=['middleware','basic/controller/','2350596lNAZRj','endsWith','substring','push','714812VFILrw','7939818vpVova','indexOf','prefix','replace','filter','-controller','/controller/','38969120xRIffc','__esModule','toLowerCase','module','middlewareIgnore','rootpath','tagName','Controller','join','apply','parseRoute','length','toString','20sloyLW','saveClassMetadata','trim','search','ACTION_KEY','51961zxYFzV','8Nfhbpz','apps/','startsWith','/controller/文件下','app/controller/','splice','filepath','2525570HzvvqC','\x20文件请放在app/controller/文件下','existsSync','-action','Action','1014aXVxIy','(((.+)+)+)+$','2283MsCAuf','split','route','/config.','APPSCONFIG_KEY','AppsConfigTmp','match','\x20文件请放在apps/','/apps/','saveModule'];a3_0x2149=function(){return _0x5c73b3;};return a3_0x2149();}'use strict';Object['defineProperty'](exports,a3_0x561510(0x1a4),{'value':!![]}),exports[a3_0x561510(0x174)]=exports[a3_0x561510(0x188)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Action(_0x102f1d,_0x61b274,_0x6dd516={'middleware':[],'sensitive':!![]}){return _0x564dd9=>{const _0x3fae7e=a3_0x2e0d;var _0x2f2424;_0x6dd516[_0x3fae7e(0x1a9)]=_0x61b274;const _0x286e61=parseRoute(_0x102f1d);if(_0x286e61[_0x3fae7e(0x1a6)]){_0x6dd516[_0x3fae7e(0x19e)]=_0x6dd516[_0x3fae7e(0x19e)]?'/'+_0x286e61[_0x3fae7e(0x1a6)]+'/'+_0x6dd516[_0x3fae7e(0x19e)]:'/'+_0x286e61['route'];_0x286e61['prefix']&&(_0x6dd516['prefix']='/'+_0x286e61[_0x3fae7e(0x19e)]+'/'+_0x6dd516[_0x3fae7e(0x19e)]);if(fs[_0x3fae7e(0x186)](_0x286e61[_0x3fae7e(0x1a8)]+'/apps/'+_0x286e61['module']+_0x3fae7e(0x18e)+(lodash[_0x3fae7e(0x198)](_0x286e61[_0x3fae7e(0x183)],'ts')?'ts':'js'))){const _0x16c79c=include(_0x286e61['rootpath']+_0x3fae7e(0x193)+_0x286e61[_0x3fae7e(0x1a6)]+_0x3fae7e(0x18e)+(lodash['endsWith'](_0x286e61[_0x3fae7e(0x183)],'ts')?'ts':'js'));if(_0x16c79c[_0x3fae7e(0x195)]&&lodash['isArray'](_0x16c79c['middleware'])&&_0x16c79c[_0x3fae7e(0x195)][_0x3fae7e(0x175)]>0x0)for(let _0x1b62e8 in _0x16c79c[_0x3fae7e(0x195)]){if(((_0x2f2424=_0x16c79c===null||_0x16c79c===void 0x0?void 0x0:_0x16c79c[_0x3fae7e(0x1a7)])===null||_0x2f2424===void 0x0?void 0x0:_0x2f2424[_0x3fae7e(0x175)])>0x0&&_0x16c79c[_0x3fae7e(0x1a7)]['indexOf'](_0x16c79c['middleware'][_0x1b62e8])!=-0x1)continue;_0x6dd516['middleware'][_0x3fae7e(0x19a)](_0x16c79c[_0x3fae7e(0x195)][_0x1b62e8]);}const _0x1de2e7=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x3fae7e(0x190)])||{};_0x1de2e7[''+_0x286e61[_0x3fae7e(0x1a6)]]=_0x16c79c,(0x0,core_1[_0x3fae7e(0x178)])(action_1[_0x3fae7e(0x18f)],_0x1de2e7,action_1[_0x3fae7e(0x190)]);}_0x6dd516['prefix']=_0x6dd516[_0x3fae7e(0x19e)]['toLowerCase']()[_0x3fae7e(0x19f)](/\/{2,}/g,'/'),(0x0,core_1[_0x3fae7e(0x194)])(action_1[_0x3fae7e(0x17b)],_0x564dd9),(0x0,core_1[_0x3fae7e(0x171)])(_0x6dd516[_0x3fae7e(0x19e)],_0x6dd516)(_0x564dd9),(0x0,core_1[_0x3fae7e(0x178)])(action_1['ACTION_KEY'],{'prefix':_0x6dd516[_0x3fae7e(0x19e)],'pprefix':_0x286e61[_0x3fae7e(0x19e)],'module':_0x286e61['module'],'filepath':_0x286e61[_0x3fae7e(0x183)],'routerOptions':_0x6dd516},_0x564dd9);}else _0x6dd516['prefix']=_0x6dd516['prefix']?'/'+_0x6dd516[_0x3fae7e(0x19e)]:'/'+_0x286e61[_0x3fae7e(0x18d)],_0x286e61[_0x3fae7e(0x19e)]&&(_0x6dd516[_0x3fae7e(0x19e)]='/'+_0x286e61[_0x3fae7e(0x19e)]+'/'+_0x6dd516[_0x3fae7e(0x19e)]),_0x6dd516['prefix']=_0x6dd516[_0x3fae7e(0x19e)][_0x3fae7e(0x1a5)]()[_0x3fae7e(0x19f)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x3fae7e(0x17b)],_0x564dd9),(0x0,core_1[_0x3fae7e(0x171)])(_0x6dd516['prefix'],_0x6dd516)(_0x564dd9),(0x0,core_1['saveClassMetadata'])(action_1[_0x3fae7e(0x17b)],{'prefix':_0x6dd516[_0x3fae7e(0x19e)],'module':_0x286e61[_0x3fae7e(0x1a6)],'pprefix':_0x286e61[_0x3fae7e(0x19e)],'filepath':_0x286e61[_0x3fae7e(0x183)],'routerOptions':_0x6dd516},_0x564dd9);};}exports[a3_0x561510(0x188)]=Action;function a3_0x2e0d(_0x5768e4,_0x818021){const _0x3784ba=a3_0x2149();return a3_0x2e0d=function(_0x58bf9b,_0x246cb7){_0x58bf9b=_0x58bf9b-0x171;let _0x21492b=_0x3784ba[_0x58bf9b];return _0x21492b;},a3_0x2e0d(_0x5768e4,_0x818021);}function parseRoute(_0x412d18){const _0x28f572=a3_0x561510;_0x412d18=_0x412d18['replace'](/(\\|\/)/g,'/');const _0x198a6f=process['cwd']()[_0x28f572(0x19f)](/(\\|\/)/g,'/'),_0x4c77ce=_0x412d18[_0x28f572(0x199)](0x0,_0x198a6f[_0x28f572(0x175)]+_0x412d18[_0x28f572(0x199)](_0x198a6f[_0x28f572(0x175)]+0x1)[_0x28f572(0x19d)]('/')+0x1),_0x57f07e=_0x412d18[_0x28f572(0x199)](_0x4c77ce['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x1bf94c={'route':'','prefix':![],'module':![],'rootpath':_0x4c77ce,'filepath':_0x57f07e};if(_0x57f07e[_0x28f572(0x17f)](_0x28f572(0x181))||_0x57f07e[_0x28f572(0x17f)](_0x28f572(0x196))){const _0x12de3e=_0x57f07e['substring']((_0x57f07e['startsWith'](_0x28f572(0x181))?_0x28f572(0x181):_0x28f572(0x196))['length'])[_0x28f572(0x18c)]('/')['filter'](_0x1ba341=>_0x1ba341&&_0x1ba341['trim']());return _0x12de3e[_0x28f572(0x175)]>0x1&&(_0x1bf94c[_0x28f572(0x19e)]=_0x12de3e[0x0][_0x28f572(0x1a5)](),_0x12de3e[_0x28f572(0x182)](0x0,0x1)),_0x1bf94c[_0x28f572(0x18d)]=('/'+_0x12de3e[_0x28f572(0x172)]('/'))[_0x28f572(0x19f)](/(\.ts|\.js)$/,'')[_0x28f572(0x19f)](/\/{2,}/g,'/')[_0x28f572(0x191)](/[\/|A-Z]*[^A-Z]+/g)[_0x28f572(0x172)]('-')[_0x28f572(0x1a5)]()['replace'](/\/\-/g,'/'),_0x1bf94c[_0x28f572(0x18d)]['endsWith'](_0x28f572(0x187))&&(_0x1bf94c['route']=_0x1bf94c[_0x28f572(0x18d)][_0x28f572(0x199)](0x0,_0x1bf94c['route'][_0x28f572(0x175)]-0x7)),_0x1bf94c['route'][_0x28f572(0x198)](_0x28f572(0x1a1))&&(_0x1bf94c['route']=_0x1bf94c['route'][_0x28f572(0x199)](0x0,_0x1bf94c[_0x28f572(0x18d)][_0x28f572(0x175)]-0xb)),_0x1bf94c;}else{if(_0x57f07e['startsWith'](_0x28f572(0x17e))){const _0x5362e8=_0x57f07e[_0x28f572(0x199)](0x0,_0x57f07e[_0x28f572(0x19d)](_0x28f572(0x193))+0x5),_0x609189=_0x57f07e[_0x28f572(0x199)](_0x5362e8['length']+0x1)[_0x28f572(0x19f)](/(\\|\/)/g,'/')[_0x28f572(0x18c)]('/')[0x0];if(_0x57f07e['startsWith'](_0x28f572(0x17e)+_0x609189+_0x28f572(0x1a2))){const _0x172556=_0x57f07e['substring']((_0x5362e8+'/'+_0x609189+_0x28f572(0x1a2))[_0x28f572(0x175)])[_0x28f572(0x18c)]('/')[_0x28f572(0x1a0)](_0x27669f=>_0x27669f&&_0x27669f[_0x28f572(0x179)]());return _0x172556[_0x28f572(0x175)]>0x1&&(_0x1bf94c['prefix']=_0x172556[0x0][_0x28f572(0x1a5)](),_0x172556[_0x28f572(0x182)](0x0,0x1)),_0x1bf94c['module']=_0x609189,_0x1bf94c[_0x28f572(0x18d)]=('/'+_0x609189+'/'+_0x172556[_0x28f572(0x172)]('/'))[_0x28f572(0x19f)](/(\.ts|\.js)$/,'')[_0x28f572(0x19f)](/\/{2,}/g,'/')[_0x28f572(0x191)](/[\/|A-Z]*[^A-Z]+/g)[_0x28f572(0x172)]('-')[_0x28f572(0x1a5)]()[_0x28f572(0x19f)](/\/\-/g,'/'),_0x1bf94c[_0x28f572(0x18d)][_0x28f572(0x198)](_0x28f572(0x187))&&(_0x1bf94c[_0x28f572(0x18d)]=_0x1bf94c['route'][_0x28f572(0x199)](0x0,_0x1bf94c[_0x28f572(0x18d)][_0x28f572(0x175)]-0x7)),_0x1bf94c[_0x28f572(0x18d)]['endsWith'](_0x28f572(0x1a1))&&(_0x1bf94c['route']=_0x1bf94c[_0x28f572(0x18d)][_0x28f572(0x199)](0x0,_0x1bf94c[_0x28f572(0x18d)][_0x28f572(0x175)]-0xb)),_0x1bf94c;}throw new Error(_0x57f07e+_0x28f572(0x192)+_0x609189+_0x28f572(0x180));}}throw new Error(_0x57f07e+_0x28f572(0x185));}exports[a3_0x561510(0x174)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x218d79=a4_0x597e;(function(_0x4fb606,_0xc4f47c){const _0x2afe0e=a4_0x597e,_0x578ee9=_0x4fb606();while(!![]){try{const _0x49bcfc=parseInt(_0x2afe0e(0x159))/0x1*(-parseInt(_0x2afe0e(0x163))/0x2)+-parseInt(_0x2afe0e(0x178))/0x3*(-parseInt(_0x2afe0e(0x15c))/0x4)+-parseInt(_0x2afe0e(0x17a))/0x5+-parseInt(_0x2afe0e(0x16f))/0x6+-parseInt(_0x2afe0e(0x171))/0x7+parseInt(_0x2afe0e(0x162))/0x8+-parseInt(_0x2afe0e(0x17b))/0x9*(-parseInt(_0x2afe0e(0x173))/0xa);if(_0x49bcfc===_0xc4f47c)break;else _0x578ee9['push'](_0x578ee9['shift']());}catch(_0x35d40b){_0x578ee9['push'](_0x578ee9['shift']());}}}(a4_0x4b17,0x9b044));function a4_0x597e(_0x5b0091,_0x1fa8a9){const _0x3ada00=a4_0x4b17();return a4_0x597e=function(_0xc2d142,_0x519210){_0xc2d142=_0xc2d142-0x157;let _0x4b178c=_0x3ada00[_0xc2d142];return _0x4b178c;},a4_0x597e(_0x5b0091,_0x1fa8a9);}const a4_0x519210=(function(){let _0x36fc54=!![];return function(_0x55f6bf,_0x55aeab){const _0x5b2b6f=_0x36fc54?function(){const _0xa3bd70=a4_0x597e;if(_0x55aeab){const _0xd3e70d=_0x55aeab[_0xa3bd70(0x160)](_0x55f6bf,arguments);return _0x55aeab=null,_0xd3e70d;}}:function(){};return _0x36fc54=![],_0x5b2b6f;};}()),a4_0xc2d142=a4_0x519210(this,function(){const _0xf69f5f=a4_0x597e;return a4_0xc2d142[_0xf69f5f(0x177)]()[_0xf69f5f(0x165)](_0xf69f5f(0x161))[_0xf69f5f(0x177)]()[_0xf69f5f(0x16b)](a4_0xc2d142)[_0xf69f5f(0x165)](_0xf69f5f(0x161));});a4_0xc2d142();'use strict';Object[a4_0x218d79(0x157)](exports,a4_0x218d79(0x166),{'value':!![]}),exports[a4_0x218d79(0x172)]=void 0x0;const validator_1=require(a4_0x218d79(0x16a)),core_1=require(a4_0x218d79(0x16e)),action_1=require('../types/action');function Api(_0x107cbf,_0x1ece5d=a4_0x218d79(0x16d),_0x429cad='/',_0x36eb8f={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x7f8f7c,_0x239823,_0x26a258)=>{const _0x29e3d9=a4_0x597e;var _0x15e868,_0x4d88d9,_0x52a8a2;!_0x36eb8f[_0x29e3d9(0x15e)]&&(_0x36eb8f['middleware']=[]);!((_0x15e868=_0x36eb8f===null||_0x36eb8f===void 0x0?void 0x0:_0x36eb8f[_0x29e3d9(0x174)])===null||_0x15e868===void 0x0?void 0x0:_0x15e868['validationOptions'])&&(_0x36eb8f[_0x29e3d9(0x174)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x29e3d9(0x176)}});typeof _0x36eb8f[_0x29e3d9(0x169)]=='undefined'&&(_0x36eb8f[_0x29e3d9(0x169)]=!![]);if(((_0x4d88d9=_0x36eb8f===null||_0x36eb8f===void 0x0?void 0x0:_0x36eb8f[_0x29e3d9(0x15e)])===null||_0x4d88d9===void 0x0?void 0x0:_0x4d88d9[_0x29e3d9(0x15d)])>0x0&&((_0x52a8a2=_0x36eb8f===null||_0x36eb8f===void 0x0?void 0x0:_0x36eb8f['middlewareIgnore'])===null||_0x52a8a2===void 0x0?void 0x0:_0x52a8a2[_0x29e3d9(0x15d)])>0x0)for(let _0x4cecbe in _0x36eb8f[_0x29e3d9(0x15e)]){_0x36eb8f['middlewareIgnore'][_0x29e3d9(0x164)](_0x36eb8f['middleware'][_0x4cecbe])!==-0x1&&(_0x36eb8f[_0x29e3d9(0x15e)][_0x4cecbe]=null);}_0x36eb8f[_0x29e3d9(0x16c)]=_0x107cbf,(0x0,validator_1[_0x29e3d9(0x15a)])(_0x36eb8f[_0x29e3d9(0x174)])(_0x7f8f7c,_0x239823,_0x26a258),(0x0,core_1['RequestMapping'])(Object['assign'](_0x36eb8f,{'path':_0x429cad,'requestMethod':(_0x1ece5d==_0x29e3d9(0x168)?'delete':_0x1ece5d)[_0x29e3d9(0x15b)]()}))(_0x7f8f7c,_0x239823,_0x26a258),(0x0,core_1[_0x29e3d9(0x179)])(action_1[_0x29e3d9(0x15f)],{'path':_0x429cad,'method':_0x239823,'apimit':_0x36eb8f[_0x29e3d9(0x169)],'intercept':_0x36eb8f[_0x29e3d9(0x170)],'routerName':_0x36eb8f[_0x29e3d9(0x16c)],'description':_0x36eb8f[_0x29e3d9(0x167)],'middleware':(_0x36eb8f[_0x29e3d9(0x15e)]||[])['filter'](_0x415457=>!!_0x415457),'requestMethod':(_0x1ece5d==_0x29e3d9(0x168)?_0x29e3d9(0x158):_0x1ece5d)[_0x29e3d9(0x15b)]()},_0x7f8f7c),(0x0,core_1[_0x29e3d9(0x175)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x429cad,'method':_0x239823,'apimit':_0x36eb8f['apimit'],'intercept':_0x36eb8f[_0x29e3d9(0x170)],'routerName':_0x36eb8f['routerName'],'description':_0x36eb8f['description'],'middleware':(_0x36eb8f[_0x29e3d9(0x15e)]||[])['filter'](_0x172cc2=>!!_0x172cc2),'requestMethod':(_0x1ece5d==_0x29e3d9(0x168)?_0x29e3d9(0x158):_0x1ece5d)[_0x29e3d9(0x15b)]()})(_0x7f8f7c,_0x239823,_0x26a258);};}exports[a4_0x218d79(0x172)]=Api;function a4_0x4b17(){const _0x4e5480=['259170CZcrxC','validate','createCustomMethodDecorator','string','toString','3VBomrY','attachClassMetadata','5410415JAZVeq','1341nivRbS','defineProperty','delete','2eCxcqn','Validator','toLowerCase','942332ebmfke','length','middleware','ACTION_ROUTE_KEY','apply','(((.+)+)+)+$','2302304EJDWfV','857252fkNgtN','indexOf','search','__esModule','description','del','apimit','@anncic-api/validator','constructor','routerName','get','@midwayjs/core','3784404qQifxG','intercept','8259909KyJKls','Api'];a4_0x4b17=function(){return _0x4e5480;};return a4_0x4b17();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x1ea5(_0x56bc31,_0x3ad4b2){const _0x26f04d=a5_0x364c();return a5_0x1ea5=function(_0x3db705,_0x46ab26){_0x3db705=_0x3db705-0x1f3;let _0x364c7d=_0x26f04d[_0x3db705];return _0x364c7d;},a5_0x1ea5(_0x56bc31,_0x3ad4b2);}const a5_0x33571e=a5_0x1ea5;(function(_0xd8f20c,_0x2fe595){const _0x25f2c7=a5_0x1ea5,_0x47850=_0xd8f20c();while(!![]){try{const _0x335fb9=parseInt(_0x25f2c7(0x202))/0x1*(parseInt(_0x25f2c7(0x1f6))/0x2)+parseInt(_0x25f2c7(0x1f5))/0x3*(-parseInt(_0x25f2c7(0x206))/0x4)+parseInt(_0x25f2c7(0x210))/0x5+-parseInt(_0x25f2c7(0x1fa))/0x6*(parseInt(_0x25f2c7(0x1ff))/0x7)+parseInt(_0x25f2c7(0x208))/0x8+parseInt(_0x25f2c7(0x1fd))/0x9+parseInt(_0x25f2c7(0x207))/0xa*(-parseInt(_0x25f2c7(0x211))/0xb);if(_0x335fb9===_0x2fe595)break;else _0x47850['push'](_0x47850['shift']());}catch(_0x2b69a3){_0x47850['push'](_0x47850['shift']());}}}(a5_0x364c,0x6a61c));const a5_0x46ab26=(function(){let _0x3188de=!![];return function(_0x4b39d4,_0x814fbc){const _0x480f0d=_0x3188de?function(){const _0x904756=a5_0x1ea5;if(_0x814fbc){const _0x42eece=_0x814fbc[_0x904756(0x1fb)](_0x4b39d4,arguments);return _0x814fbc=null,_0x42eece;}}:function(){};return _0x3188de=![],_0x480f0d;};}()),a5_0x3db705=a5_0x46ab26(this,function(){const _0x3488da=a5_0x1ea5;return a5_0x3db705[_0x3488da(0x20c)]()[_0x3488da(0x205)](_0x3488da(0x209))[_0x3488da(0x20c)]()['constructor'](a5_0x3db705)[_0x3488da(0x205)](_0x3488da(0x209));});a5_0x3db705();function a5_0x364c(){const _0x3ee5f7=['getConfig','1141eOzXcz','apitest','@midwayjs/core','1yLYOoK','/apitest','isDevelopmentEnvironment','search','80168UnwGMv','654260MExEIU','3612888Fawrpi','(((.+)+)+)+$','app','getApplicationContext','toString','REQUEST_OBJ_CTX_KEY','ApitestService','__esModule','3803190eCwFcD','220BxAIEY','RequestMapping','Apitest','120ptMohO','1053270dstFke','get','filepath','MidwayEnvironmentService','906jtRuOa','apply','../service/ApitestService','7485021rIjClI'];a5_0x364c=function(){return _0x3ee5f7;};return a5_0x364c();}'use strict';Object['defineProperty'](exports,a5_0x33571e(0x20f),{'value':!![]}),exports[a5_0x33571e(0x1f4)]=void 0x0;const core_1=require(a5_0x33571e(0x201)),ApitestService_1=require(a5_0x33571e(0x1fc));function Apitest(_0x4fa0e0=a5_0x33571e(0x203),_0xd9d3ea){return(_0x51fd3a,_0x33b928,_0x5a1628)=>{const _0x23788f=a5_0x1ea5;return(0x0,core_1[_0x23788f(0x1f3)])({'path':_0x4fa0e0,'requestMethod':_0x23788f(0x1f7)})(_0x51fd3a,_0x33b928,_0x5a1628),_0x5a1628['value']=async function(..._0x2512a6){const _0x315f53=_0x23788f;var _0x38467e;const _0x3c7387=(_0x38467e=this[core_1[_0x315f53(0x20d)]])===null||_0x38467e===void 0x0?void 0x0:_0x38467e[_0x315f53(0x20a)];if(_0x3c7387&&_0x3c7387[_0x315f53(0x1fe)](_0x315f53(0x200))){const _0x420c79=await _0x3c7387[_0x315f53(0x20b)]()['getAsync'](ApitestService_1[_0x315f53(0x20e)]),_0xf47f9e=await _0x3c7387[_0x315f53(0x20b)]()['getAsync'](core_1[_0x315f53(0x1f9)]);return _0xf47f9e[_0x315f53(0x204)]()&&(_0xd9d3ea[_0x315f53(0x1f8)]=!![]),await _0x420c79['apidoc'](_0xd9d3ea);}return'';},_0x5a1628;};}exports[a5_0x33571e(0x1f4)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0xca7adf=a6_0x18a8;(function(_0x3de1cf,_0x3bf58a){const _0x87f832=a6_0x18a8,_0x16900d=_0x3de1cf();while(!![]){try{const _0x44ee17=parseInt(_0x87f832(0x160))/0x1+parseInt(_0x87f832(0x15e))/0x2+-parseInt(_0x87f832(0x15d))/0x3*(parseInt(_0x87f832(0x16b))/0x4)+parseInt(_0x87f832(0x177))/0x5+parseInt(_0x87f832(0x16d))/0x6+parseInt(_0x87f832(0x170))/0x7+-parseInt(_0x87f832(0x168))/0x8;if(_0x44ee17===_0x3bf58a)break;else _0x16900d['push'](_0x16900d['shift']());}catch(_0x4a4d28){_0x16900d['push'](_0x16900d['shift']());}}}(a6_0x408f,0x298b9));const a6_0x3146d5=(function(){let _0x1ddc9d=!![];return function(_0x100ba7,_0x1728cb){const _0x218781=_0x1ddc9d?function(){const _0x1a5258=a6_0x18a8;if(_0x1728cb){const _0x11476f=_0x1728cb[_0x1a5258(0x16e)](_0x100ba7,arguments);return _0x1728cb=null,_0x11476f;}}:function(){};return _0x1ddc9d=![],_0x218781;};}()),a6_0x436128=a6_0x3146d5(this,function(){const _0x2e5b8d=a6_0x18a8;return a6_0x436128[_0x2e5b8d(0x173)]()[_0x2e5b8d(0x169)](_0x2e5b8d(0x16a))[_0x2e5b8d(0x173)]()[_0x2e5b8d(0x15f)](a6_0x436128)[_0x2e5b8d(0x169)](_0x2e5b8d(0x16a));});a6_0x436128();function a6_0x18a8(_0x531184,_0x35e8f5){const _0x577c99=a6_0x408f();return a6_0x18a8=function(_0x436128,_0x3146d5){_0x436128=_0x436128-0x15d;let _0x408f88=_0x577c99[_0x436128];return _0x408f88;},a6_0x18a8(_0x531184,_0x35e8f5);}'use strict';Object[a6_0xca7adf(0x16c)](exports,a6_0xca7adf(0x175),{'value':!![]}),exports['IIntercept']=exports[a6_0xca7adf(0x174)]=void 0x0;const core_1=require(a6_0xca7adf(0x178)),intercept_1=require(a6_0xca7adf(0x164));function Intercept(_0x489df5){return _0x422516=>{const _0x2967b9=a6_0x18a8,_0x46d05d=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x2967b9(0x16f)])||{};for(let _0x499405 of Array[_0x2967b9(0x167)](_0x489df5)?_0x489df5:[_0x489df5]){_0x499405=_0x499405[_0x2967b9(0x176)]();!(_0x46d05d===null||_0x46d05d===void 0x0?void 0x0:_0x46d05d[_0x499405])&&(_0x46d05d[_0x499405]=[]);if(_0x46d05d[_0x499405][_0x2967b9(0x162)](_0x422516))continue;_0x46d05d[_0x499405]['push'](_0x422516);}(0x0,core_1[_0x2967b9(0x172)])()(_0x422516),(0x0,core_1['Scope'])(core_1[_0x2967b9(0x166)][_0x2967b9(0x161)])(_0x422516),(0x0,core_1[_0x2967b9(0x163)])(intercept_1[_0x2967b9(0x165)],_0x46d05d,intercept_1['InterceptTargetTmp']);};}exports[a6_0xca7adf(0x174)]=Intercept;function a6_0x408f(){const _0x53ede2=['13712tCTenL','constructor','179828MITaov','Singleton','includes','saveClassMetadata','../types/intercept','INTERCEPT_KEY','ScopeEnum','isArray','1648984QPKgYh','search','(((.+)+)+)+$','28MzMFcJ','defineProperty','603498ndtFJu','apply','InterceptTargetTmp','1246035uEaNun','match','Provide','toString','Intercept','__esModule','toUpperCase','344105lpDZaS','@midwayjs/core','67629LhsNhS'];a6_0x408f=function(){return _0x53ede2;};return a6_0x408f();}class IIntercept{async[a6_0xca7adf(0x171)](_0x576fca,_0x148b8a,_0x7b5305){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a7_0x5d4a(){var _0x1891fd=['decorate','toString','245136GLZTku','登录超时,请重新登录','279xcOsIi','getOwnPropertyDescriptor','TIMEOUT','__esModule','1659nxjsEx','676boJbcc','请求超时,请重试','2168980cIUufd','constructor','3rpJFqh','function','length','design:type','586632OiHfrQ','HEADERS_CHECKCODE','60JRPpcM','HEADERS_SIGNATURE','object','metadata','TIMEOUT_LOGINTIME','__decorate','__metadata','36654agHril','56452roVuJr','99uSIPCa','(((.+)+)+)+$','HEADERS_LACK','ApiError','HEADERS_DEVICE','1035442DFAxRX','search','3203415PBgKKF'];a7_0x5d4a=function(){return _0x1891fd;};return a7_0x5d4a();}var a7_0x57452f=a7_0x4218;(function(_0x534e36,_0x167c75){var _0x50468e=a7_0x4218,_0x8e70bd=_0x534e36();while(!![]){try{var _0x2fa0d3=parseInt(_0x50468e(0xac))/0x1*(parseInt(_0x50468e(0x9c))/0x2)+parseInt(_0x50468e(0x97))/0x3*(parseInt(_0x50468e(0x96))/0x4)+parseInt(_0x50468e(0x9e))/0x5+parseInt(_0x50468e(0x95))/0x6*(-parseInt(_0x50468e(0xa7))/0x7)+parseInt(_0x50468e(0xa1))/0x8*(parseInt(_0x50468e(0xa3))/0x9)+parseInt(_0x50468e(0xb2))/0xa*(parseInt(_0x50468e(0xaa))/0xb)+parseInt(_0x50468e(0xb0))/0xc*(-parseInt(_0x50468e(0xa8))/0xd);if(_0x2fa0d3===_0x167c75)break;else _0x8e70bd['push'](_0x8e70bd['shift']());}catch(_0x484b05){_0x8e70bd['push'](_0x8e70bd['shift']());}}}(a7_0x5d4a,0xc3f5c));var a7_0x5f36e9=(function(){var _0x3a0ec5=!![];return function(_0x513ebe,_0x993e33){var _0x4b2cb1=_0x3a0ec5?function(){if(_0x993e33){var _0x4ef03c=_0x993e33['apply'](_0x513ebe,arguments);return _0x993e33=null,_0x4ef03c;}}:function(){};return _0x3a0ec5=![],_0x4b2cb1;};}()),a7_0x4db1b2=a7_0x5f36e9(this,function(){var _0x21eb96=a7_0x4218;return a7_0x4db1b2[_0x21eb96(0xa0)]()['search'](_0x21eb96(0x98))[_0x21eb96(0xa0)]()[_0x21eb96(0xab)](a7_0x4db1b2)[_0x21eb96(0x9d)](_0x21eb96(0x98));});function a7_0x4218(_0xc7dfbf,_0x274612){var _0x1dbdaf=a7_0x5d4a();return a7_0x4218=function(_0x4db1b2,_0x5f36e9){_0x4db1b2=_0x4db1b2-0x92;var _0x5d4a7f=_0x1dbdaf[_0x4db1b2];return _0x5d4a7f;},a7_0x4218(_0xc7dfbf,_0x274612);}a7_0x4db1b2();'use strict';var __decorate=this&&this[a7_0x57452f(0x93)]||function(_0x4431ae,_0x1aeedf,_0x1d4be8,_0x5df574){var _0x375145=a7_0x57452f,_0x4d719c=arguments[_0x375145(0xae)],_0x24ec1f=_0x4d719c<0x3?_0x1aeedf:_0x5df574===null?_0x5df574=Object[_0x375145(0xa4)](_0x1aeedf,_0x1d4be8):_0x5df574,_0x3121b7;if(typeof Reflect===_0x375145(0xb4)&&typeof Reflect['decorate']===_0x375145(0xad))_0x24ec1f=Reflect[_0x375145(0x9f)](_0x4431ae,_0x1aeedf,_0x1d4be8,_0x5df574);else{for(var _0x279c6a=_0x4431ae[_0x375145(0xae)]-0x1;_0x279c6a>=0x0;_0x279c6a--)if(_0x3121b7=_0x4431ae[_0x279c6a])_0x24ec1f=(_0x4d719c<0x3?_0x3121b7(_0x24ec1f):_0x4d719c>0x3?_0x3121b7(_0x1aeedf,_0x1d4be8,_0x24ec1f):_0x3121b7(_0x1aeedf,_0x1d4be8))||_0x24ec1f;}return _0x4d719c>0x3&&_0x24ec1f&&Object['defineProperty'](_0x1aeedf,_0x1d4be8,_0x24ec1f),_0x24ec1f;},__metadata=this&&this[a7_0x57452f(0x94)]||function(_0x327c2e,_0x8767ed){var _0x46465f=a7_0x57452f;if(typeof Reflect===_0x46465f(0xb4)&&typeof Reflect[_0x46465f(0xb5)]===_0x46465f(0xad))return Reflect[_0x46465f(0xb5)](_0x327c2e,_0x8767ed);};Object['defineProperty'](exports,a7_0x57452f(0xa6),{'value':!![]}),exports[a7_0x57452f(0x9a)]=void 0x0;class ApiError extends AnnError{}ApiError[a7_0x57452f(0xa5)]=0x19003,ApiError[a7_0x57452f(0x99)]=0x18e72,ApiError[a7_0x57452f(0x9b)]=0x18e73,ApiError[a7_0x57452f(0xb3)]=0x18e74,ApiError[a7_0x57452f(0xb1)]=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a7_0x57452f(0xa9)),__metadata(a7_0x57452f(0xaf),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a7_0x57452f(0xaf),Object)],ApiError,a7_0x57452f(0x99),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata('design:type',Object)],ApiError,a7_0x57452f(0x9b),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a7_0x57452f(0xaf),Object)],ApiError,a7_0x57452f(0xb3),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,a7_0x57452f(0xb1),void 0x0),__decorate([AnnErrorMsg(a7_0x57452f(0xa2)),__metadata(a7_0x57452f(0xaf),Object)],ApiError,a7_0x57452f(0x92),void 0x0),exports[a7_0x57452f(0x9a)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x5831b8=a8_0x9a52;(function(_0x2d1dc4,_0x2440c1){const _0x51f62d=a8_0x9a52,_0x32b914=_0x2d1dc4();while(!![]){try{const _0x4662ff=-parseInt(_0x51f62d(0x185))/0x1+parseInt(_0x51f62d(0x196))/0x2*(parseInt(_0x51f62d(0x191))/0x3)+parseInt(_0x51f62d(0x197))/0x4+-parseInt(_0x51f62d(0x194))/0x5+-parseInt(_0x51f62d(0x18b))/0x6+parseInt(_0x51f62d(0x187))/0x7+parseInt(_0x51f62d(0x192))/0x8*(parseInt(_0x51f62d(0x193))/0x9);if(_0x4662ff===_0x2440c1)break;else _0x32b914['push'](_0x32b914['shift']());}catch(_0x38615e){_0x32b914['push'](_0x32b914['shift']());}}}(a8_0x5467,0x7e573));const a8_0x4c91bf=(function(){let _0x37713a=!![];return function(_0x5d7c42,_0x2fd6c9){const _0x3df896=_0x37713a?function(){if(_0x2fd6c9){const _0xd0a21e=_0x2fd6c9['apply'](_0x5d7c42,arguments);return _0x2fd6c9=null,_0xd0a21e;}}:function(){};return _0x37713a=![],_0x3df896;};}()),a8_0x446ba8=a8_0x4c91bf(this,function(){const _0x3eca65=a8_0x9a52;return a8_0x446ba8['toString']()[_0x3eca65(0x18d)](_0x3eca65(0x18e))[_0x3eca65(0x189)]()[_0x3eca65(0x18f)](a8_0x446ba8)[_0x3eca65(0x18d)](_0x3eca65(0x18e));});function a8_0x5467(){const _0x41a5bb=['4824570vvYSVX','@midwayjs/core','667206RDtuZv','3586440tvqHJI','APPSCONFIG_KEY','942166XtrfNA','getClassMetadata','6704614KbbfsG','getAppsConfig','toString','__esModule','3459030uBVAZf','AppsConfigTmp','search','(((.+)+)+)+$','constructor','../types/action','9uQaHAZ','40KZxtby','262539JsuxSQ'];a8_0x5467=function(){return _0x41a5bb;};return a8_0x5467();}a8_0x446ba8();'use strict';function a8_0x9a52(_0x32d7a1,_0xa22ad8){const _0x36ec70=a8_0x5467();return a8_0x9a52=function(_0x446ba8,_0x4c91bf){_0x446ba8=_0x446ba8-0x185;let _0x54674d=_0x36ec70[_0x446ba8];return _0x54674d;},a8_0x9a52(_0x32d7a1,_0xa22ad8);}Object['defineProperty'](exports,a8_0x5831b8(0x18a),{'value':!![]}),exports[a8_0x5831b8(0x188)]=void 0x0;const core_1=require(a8_0x5831b8(0x195)),action_1=require(a8_0x5831b8(0x190));function getAppsConfig(_0x5a5e2a){const _0x20615c=a8_0x5831b8,_0x168f01=(0x0,core_1[_0x20615c(0x186)])(action_1[_0x20615c(0x198)],action_1[_0x20615c(0x18c)])||{};return _0x5a5e2a?lodash['get'](_0x168f01,_0x5a5e2a):_0x168f01;}exports[a8_0x5831b8(0x188)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x368d36=a9_0x577d;(function(_0x5e91d0,_0x2b3085){const _0x128db3=a9_0x577d,_0xe0431=_0x5e91d0();while(!![]){try{const _0x29f5bc=-parseInt(_0x128db3(0xbf))/0x1*(parseInt(_0x128db3(0xd6))/0x2)+-parseInt(_0x128db3(0x111))/0x3+-parseInt(_0x128db3(0xe1))/0x4+-parseInt(_0x128db3(0x10b))/0x5+-parseInt(_0x128db3(0xeb))/0x6+parseInt(_0x128db3(0x109))/0x7*(-parseInt(_0x128db3(0x107))/0x8)+-parseInt(_0x128db3(0x10a))/0x9*(-parseInt(_0x128db3(0xc7))/0xa);if(_0x29f5bc===_0x2b3085)break;else _0xe0431['push'](_0xe0431['shift']());}catch(_0x5ace08){_0xe0431['push'](_0xe0431['shift']());}}}(a9_0x197a,0x77c59));const a9_0x9ace26=(function(){let _0x4485a1=!![];return function(_0x15a1e5,_0x354c53){const _0x17e47f=_0x4485a1?function(){const _0x2caaf3=a9_0x577d;if(_0x354c53){const _0x2bc621=_0x354c53[_0x2caaf3(0x11c)](_0x15a1e5,arguments);return _0x354c53=null,_0x2bc621;}}:function(){};return _0x4485a1=![],_0x17e47f;};}()),a9_0x45807d=a9_0x9ace26(this,function(){const _0x44d2e5=a9_0x577d;return a9_0x45807d[_0x44d2e5(0xe0)]()[_0x44d2e5(0xf8)]('(((.+)+)+)+$')[_0x44d2e5(0xe0)]()[_0x44d2e5(0xd3)](a9_0x45807d)[_0x44d2e5(0xf8)](_0x44d2e5(0xf5));});function a9_0x577d(_0x292b3b,_0x28ce0b){const _0x575879=a9_0x197a();return a9_0x577d=function(_0x45807d,_0x9ace26){_0x45807d=_0x45807d-0xbb;let _0x197a95=_0x575879[_0x45807d];return _0x197a95;},a9_0x577d(_0x292b3b,_0x28ce0b);}function a9_0x197a(){const _0xa8db30=['test','/static/apitest','push','FILESSTREAM','constructor','intercept','substring','18068fWJWev','args','parameterIndex','module','describe','routerOptions','filter','request','header','key','toString','2935728Fpvmmd','get','@anncic-api/validator','default','routes','string','Boolean','limit','RULES_KEY','getMethodParamTypes','1341732BNQmpk','startsWith','flags.default','prefix','pprefix','只允许:[','items','metadata','getClassExtendedMetadata','ACTION_KEY','(((.+)+)+)+$','type','max','search','children','concat','tagName','String','Object','HEADERS','noreq','static/apitest','allow','split','flags.presence','required','filepath','number','5163704SpDrOq','summary','7vhYCUr','2525373cXhuzC','2966480byPZhp','ACTION_ROUTE_KEY','query','flags.description','endsWith','BODY','221706TmpFNy','path','rules','route','indexOf','name','propertyData','File','INJECT_CUSTOM_PARAM','PARAM','listModule','apply','body','length','文件上传-','file','WEB_ROUTER_PARAM_KEY','5RBLURC','find','array','RouteParamTypes','title','function','../types/action','FIELDS','100yKNTqE','isArray','method','min','@midwayjs/core','object','getClassMetadata','description'];a9_0x197a=function(){return _0xa8db30;};return a9_0x197a();}a9_0x45807d();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x368d36(0xe3)),core_1=require(a9_0x368d36(0xcb)),core_2=require(a9_0x368d36(0xcb)),core_3=require(a9_0x368d36(0xcb)),action_1=require(a9_0x368d36(0xc5));function getRoutes(_0x3ab9be={'prefix':'/','module':![]}){const _0x333561=a9_0x368d36;var _0x116552,_0x172665;const _0x476a74=(0x0,core_3[_0x333561(0x11b)])(action_1[_0x333561(0xf4)]),_0x2ed226={},_0x177668=Array[_0x333561(0xc8)](_0x3ab9be['filter']||[])?_0x3ab9be[_0x333561(0xdc)]||[]:[_0x3ab9be[_0x333561(0xdc)]];_0x1416d9:for(const _0x161650 of _0x476a74){let _0x3c9a1d=(0x0,core_3[_0x333561(0xcd)])(action_1['ACTION_KEY'],_0x161650),_0x4a9dfd=(0x0,core_3[_0x333561(0xcd)])(action_1[_0x333561(0x10c)],_0x161650);if(_0x3c9a1d&&_0x4a9dfd){let _0x11b460=_0x3c9a1d[_0x333561(0xee)],_0x1e9fca={};if(_0x3ab9be['module']&&(0x0,lodash_1[_0x333561(0xe2)])(_0x3c9a1d,'module',![])!=_0x3ab9be[_0x333561(0xd9)])continue _0x1416d9;else{if(_0x3ab9be[_0x333561(0xd9)]===![]&&!!(0x0,lodash_1[_0x333561(0xe2)])(_0x3c9a1d,_0x333561(0xd9),null))continue _0x1416d9;}if(_0x3ab9be[_0x333561(0xee)]&&!_0x11b460[_0x333561(0xec)](_0x3ab9be[_0x333561(0xee)]))continue _0x1416d9;_0x11b460!=='/'?(_0x1e9fca[_0x333561(0x108)]=(_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d[_0x333561(0xdb)][_0x333561(0xfb)])||(/^\//[_0x333561(0xcf)](_0x11b460)?_0x11b460[_0x333561(0x102)]('/')[0x1]:_0x11b460),_0x1e9fca[_0x333561(0xce)]=(_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d['routerOptions']['description'])||_0x1e9fca[_0x333561(0x108)],_0x1e9fca[_0x333561(0xe5)]=[]):(_0x1e9fca[_0x333561(0x108)]=(_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d[_0x333561(0xdb)][_0x333561(0xfb)])||_0x333561(0xe4),_0x1e9fca[_0x333561(0xce)]=(_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d[_0x333561(0xdb)][_0x333561(0xce)])||'',_0x1e9fca[_0x333561(0xe5)]=[]);_0x3ab9be[_0x333561(0x105)]&&(_0x1e9fca[_0x333561(0x105)]=_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d['filepath']);(_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d[_0x333561(0xef)])&&(_0x1e9fca[_0x333561(0xee)]=_0x3c9a1d['pprefix']);(_0x3c9a1d===null||_0x3c9a1d===void 0x0?void 0x0:_0x3c9a1d[_0x333561(0xd9)])&&(_0x1e9fca['module']=_0x3c9a1d[_0x333561(0xd9)]);let _0x2f4f25=(0x0,core_3['getClassMetadata'])(core_2[_0x333561(0x119)],_0x161650)||{};if(typeof _0x4a9dfd[Symbol['iterator']]===_0x333561(0xc4))for(let _0x5909da of _0x4a9dfd){if((_0x3ab9be===null||_0x3ab9be===void 0x0?void 0x0:_0x3ab9be[_0x333561(0xd4)])&&!(_0x5909da===null||_0x5909da===void 0x0?void 0x0:_0x5909da[_0x333561(0xd4)]))continue;let _0x27d0dc={};_0x27d0dc['method']=_0x5909da['requestMethod'],_0x27d0dc[_0x333561(0x114)]=(_0x11b460+_0x5909da['path'])['replace'](/\/{2,}/g,'/'),_0x27d0dc[_0x333561(0x108)]=(_0x5909da===null||_0x5909da===void 0x0?void 0x0:_0x5909da['routerName'])||_0x1e9fca[_0x333561(0x108)]||_0x333561(0xe4),_0x27d0dc[_0x333561(0xce)]=(_0x5909da===null||_0x5909da===void 0x0?void 0x0:_0x5909da[_0x333561(0xce)])||'',_0x27d0dc['request']=[];_0x27d0dc[_0x333561(0x114)][_0x333561(0x10f)]('/')&&(_0x27d0dc['route']=_0x27d0dc[_0x333561(0x114)][_0x333561(0xd5)](0x0,_0x27d0dc[_0x333561(0x114)][_0x333561(0xbb)]-0x1));if(!(0x0,lodash_1[_0x333561(0xec)])(_0x27d0dc['route'],_0x333561(0x100))&&!(0x0,lodash_1[_0x333561(0xec)])(_0x27d0dc[_0x333561(0x114)],_0x333561(0xd0))&&_0x177668[_0x333561(0x115)](_0x27d0dc[_0x333561(0x114)])===-0x1){if(!(_0x3ab9be===null||_0x3ab9be===void 0x0?void 0x0:_0x3ab9be[_0x333561(0xff)])){let _0x31d056=(0x0,core_3[_0x333561(0xea)])(new _0x161650(),_0x5909da[_0x333561(0xc9)]);for(const _0x214641 in _0x31d056){let _0x82b263=(_0x116552=_0x2f4f25[_0x5909da[_0x333561(0xc9)]])===null||_0x116552===void 0x0?void 0x0:_0x116552[_0x333561(0xc0)](_0x49040b=>_0x49040b[_0x333561(0xd8)]==_0x214641&&_0x49040b[_0x333561(0xdf)]===core_2[_0x333561(0xbe)]&&(_0x49040b===null||_0x49040b===void 0x0?void 0x0:_0x49040b[_0x333561(0xf2)]));if(_0x82b263===null||_0x82b263===void 0x0?void 0x0:_0x82b263[_0x333561(0xf2)]){let _0x2907be=convertTypeToString(_0x82b263[_0x333561(0xf2)]['type']||0x0);if([_0x333561(0x10d),_0x333561(0x11d)]['indexOf'](_0x2907be)!=-0x1&&_0x82b263[_0x333561(0xf2)][_0x333561(0x117)][_0x333561(0x115)](':')==-0x1&&!_0x27d0dc['request']['find'](_0x11a184=>_0x11a184['key']==_0x82b263[_0x333561(0xf2)][_0x333561(0x117)]))_0x27d0dc[_0x333561(0xdd)]['push']({'key':_0x82b263[_0x333561(0xf2)][_0x333561(0x117)],'title':_0x82b263[_0x333561(0xf2)][_0x333561(0x117)],'type':convertSchemaType(_0x31d056[_0x82b263[_0x333561(0xd8)]][_0x333561(0x116)]),'required':![],'default':'','desc':''});else{if(_0x2907be==_0x333561(0xbd)){let _0x7ac047=((_0x172665=_0x82b263===null||_0x82b263===void 0x0?void 0x0:_0x82b263[_0x333561(0xf2)])===null||_0x172665===void 0x0?void 0x0:_0x172665[_0x333561(0x117)])||_0x333561(0xbd);_0x7ac047[_0x333561(0x115)](':')==-0x1&&!_0x27d0dc['request']['find'](_0x3f3267=>_0x3f3267[_0x333561(0xdf)]==_0x7ac047&&_0x3f3267[_0x333561(0xf6)]==_0x333561(0xbd))&&_0x27d0dc[_0x333561(0xdd)][_0x333561(0xd1)]({'key':_0x7ac047,'title':_0x333561(0xbc)+_0x7ac047,'type':_0x333561(0xbd),'required':!![],'default':'','desc':''});}}}else{const _0xbb6819=(0x0,core_3[_0x333561(0xf3)])(validator_1[_0x333561(0xe9)],_0x31d056[_0x214641]);_0xbb6819&&_0x27d0dc['request'][_0x333561(0xd1)](...getJoiRequest(_0xbb6819));}}}_0x1e9fca[_0x333561(0xe5)][_0x333561(0xd1)](_0x27d0dc);}}if(_0x1e9fca[_0x333561(0xe5)]['length']>0x0){let _0x3ba9eb=_0x2ed226[_0x11b460];_0x3ba9eb?(_0x3ba9eb['summary']!=_0x1e9fca[_0x333561(0x108)]&&(_0x3ba9eb['summary']=_0x3ba9eb[_0x333561(0x108)]+','+_0x1e9fca['summary']),_0x3ba9eb[_0x333561(0xce)]!=_0x1e9fca[_0x333561(0xce)]&&(_0x3ba9eb[_0x333561(0xce)]=_0x3ba9eb[_0x333561(0xce)]+','+_0x1e9fca[_0x333561(0xce)]),_0x3ba9eb[_0x333561(0xe5)]=_0x3ba9eb[_0x333561(0xe5)][_0x333561(0xfa)](_0x1e9fca['routes']),_0x2ed226[_0x11b460]=_0x3ba9eb):_0x2ed226[_0x11b460]=_0x1e9fca;}}}return _0x2ed226;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x512f14){const _0x1c5844=a9_0x368d36,_0x18912c=[];for(let _0x564160 in _0x512f14){const _0x4a06ca={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4e0fc6=typeof _0x512f14[_0x564160][_0x1c5844(0xda)]==_0x1c5844(0xc4)?_0x512f14[_0x564160][_0x1c5844(0xda)]():_0x512f14[_0x564160];_0x4a06ca[_0x1c5844(0xdf)]=_0x564160,_0x4a06ca[_0x1c5844(0xf6)]=_0x4e0fc6['type'],_0x4a06ca['title']=(0x0,lodash_1['get'])(_0x4e0fc6,'flags.label',_0x564160),_0x4a06ca[_0x1c5844(0xe4)]=(0x0,lodash_1[_0x1c5844(0xe2)])(_0x4e0fc6,_0x1c5844(0xed),''),_0x4a06ca[_0x1c5844(0x104)]=(0x0,lodash_1[_0x1c5844(0xe2)])(_0x4e0fc6,_0x1c5844(0x103),'')=='required',_0x4a06ca['description']=(0x0,lodash_1[_0x1c5844(0xe2)])(_0x4e0fc6,_0x1c5844(0x10e),'');if(_0x4e0fc6[_0x1c5844(0xf6)]==_0x1c5844(0xcc))_0x4a06ca[_0x1c5844(0xf9)]=getJoiRequest(_0x4e0fc6['keys']);else{if(_0x4e0fc6[_0x1c5844(0xf6)]==_0x1c5844(0xc1)&&_0x4e0fc6['items']&&Array[_0x1c5844(0xc8)](_0x4e0fc6[_0x1c5844(0xf1)])&&_0x4e0fc6[_0x1c5844(0xf1)][0x0]){}}_0x4e0fc6[_0x1c5844(0x101)]&&Array[_0x1c5844(0xc8)](_0x4e0fc6[_0x1c5844(0x101)])&&_0x4e0fc6[_0x1c5844(0x101)][_0x1c5844(0xbb)]>0x0&&(_0x4a06ca[_0x1c5844(0xce)]=_0x1c5844(0xf0)+_0x4e0fc6[_0x1c5844(0x101)]['join'](',')+'];'+_0x4a06ca[_0x1c5844(0xce)]);if(_0x4a06ca[_0x1c5844(0xdf)]&&_0x4a06ca[_0x1c5844(0xf6)]){const _0x5ebb68={};for(const _0x135839 of _0x4e0fc6[_0x1c5844(0x113)]||[]){if(_0x135839['name']===_0x1c5844(0xca)&&_0x135839[_0x1c5844(0xd7)])_0x5ebb68[_0x1c5844(0xca)]=_0x135839[_0x1c5844(0xd7)]['limit'];else _0x135839['name']===_0x1c5844(0xf7)&&(_0x5ebb68[_0x1c5844(0xf7)]=_0x135839[_0x1c5844(0xd7)][_0x1c5844(0xe8)]);}_0x4a06ca[_0x1c5844(0x113)]=_0x5ebb68;}_0x4a06ca[_0x1c5844(0xdf)]&&_0x4a06ca[_0x1c5844(0xc3)]&&_0x18912c[_0x1c5844(0xd1)](_0x4a06ca);}return _0x18912c;}function convertSchemaType(_0x3ba15e){const _0x4e20a9=a9_0x368d36;switch(_0x3ba15e){case _0x4e20a9(0xfd):return'object';case _0x4e20a9(0xe7):return'boolean';case'Number':return _0x4e20a9(0x106);case _0x4e20a9(0xfc):return _0x4e20a9(0xe6);case _0x4e20a9(0x118):return'file';default:return _0x4e20a9(0xe6);}}function convertTypeToString(_0xd62be){const _0x6c3889=a9_0x368d36;switch(_0xd62be){case core_1[_0x6c3889(0xc2)][_0x6c3889(0xfe)]:return'header';case core_1[_0x6c3889(0xc2)]['QUERY']:return _0x6c3889(0x10d);case core_1[_0x6c3889(0xc2)][_0x6c3889(0x11a)]:return _0x6c3889(0x112);case core_1[_0x6c3889(0xc2)][_0x6c3889(0x110)]:return _0x6c3889(0x11d);case core_1[_0x6c3889(0xc2)][_0x6c3889(0xc6)]:case core_1['RouteParamTypes'][_0x6c3889(0xd2)]:case core_1[_0x6c3889(0xc2)]['FILESTREAM']:return _0x6c3889(0xbd);default:return _0x6c3889(0xde);}}
|
|
1
|
+
const a9_0x38e87c=a9_0x456a;(function(_0x49f874,_0x56a03a){const _0x131fd8=a9_0x456a,_0x4cf69b=_0x49f874();while(!![]){try{const _0x15306d=-parseInt(_0x131fd8(0x205))/0x1+parseInt(_0x131fd8(0x210))/0x2*(parseInt(_0x131fd8(0x22c))/0x3)+-parseInt(_0x131fd8(0x1ea))/0x4+-parseInt(_0x131fd8(0x1fb))/0x5+-parseInt(_0x131fd8(0x1fd))/0x6*(parseInt(_0x131fd8(0x219))/0x7)+-parseInt(_0x131fd8(0x200))/0x8*(-parseInt(_0x131fd8(0x1f3))/0x9)+-parseInt(_0x131fd8(0x241))/0xa*(-parseInt(_0x131fd8(0x1f5))/0xb);if(_0x15306d===_0x56a03a)break;else _0x4cf69b['push'](_0x4cf69b['shift']());}catch(_0x3a240f){_0x4cf69b['push'](_0x4cf69b['shift']());}}}(a9_0x589f,0xdf032));function a9_0x456a(_0x299355,_0x451b5a){const _0x1c2d4f=a9_0x589f();return a9_0x456a=function(_0x3c05f2,_0x4903a1){_0x3c05f2=_0x3c05f2-0x1e4;let _0x589f23=_0x1c2d4f[_0x3c05f2];return _0x589f23;},a9_0x456a(_0x299355,_0x451b5a);}const a9_0x4903a1=(function(){let _0x6b4893=!![];return function(_0x1ea329,_0x3b9dee){const _0xeb3cb7=_0x6b4893?function(){if(_0x3b9dee){const _0x254677=_0x3b9dee['apply'](_0x1ea329,arguments);return _0x3b9dee=null,_0x254677;}}:function(){};return _0x6b4893=![],_0xeb3cb7;};}()),a9_0x3c05f2=a9_0x4903a1(this,function(){const _0x1adf3f=a9_0x456a;return a9_0x3c05f2['toString']()[_0x1adf3f(0x21f)](_0x1adf3f(0x225))[_0x1adf3f(0x248)]()[_0x1adf3f(0x22b)](a9_0x3c05f2)[_0x1adf3f(0x21f)](_0x1adf3f(0x225));});a9_0x3c05f2();'use strict';Object[a9_0x38e87c(0x247)](exports,a9_0x38e87c(0x208),{'value':!![]}),exports[a9_0x38e87c(0x1e4)]=void 0x0;const lodash_1=require(a9_0x38e87c(0x22e)),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x38e87c(0x244)),core_2=require(a9_0x38e87c(0x244)),core_3=require(a9_0x38e87c(0x244)),action_1=require(a9_0x38e87c(0x223));function getRoutes(_0x41f9df={'prefix':'/','module':![]}){const _0x4f7ed4=a9_0x38e87c;var _0xb31013,_0x222c0a;const _0x1499de=(0x0,core_3[_0x4f7ed4(0x1e6)])(action_1['ACTION_KEY']),_0x3f2b32={},_0x2ada46=Array['isArray'](_0x41f9df[_0x4f7ed4(0x1fe)]||[])?_0x41f9df[_0x4f7ed4(0x1fe)]||[]:[_0x41f9df['filter']];_0x2bea9b:for(const _0x28b7a0 of _0x1499de){let _0x453830=(0x0,core_3[_0x4f7ed4(0x20b)])(action_1['ACTION_KEY'],_0x28b7a0),_0xe262d0=(0x0,core_3[_0x4f7ed4(0x20b)])(action_1[_0x4f7ed4(0x204)],_0x28b7a0);if(_0x453830&&_0xe262d0){let _0x30d7f1=_0x453830['prefix'],_0x5142eb={};if(_0x41f9df[_0x4f7ed4(0x249)]&&(0x0,lodash_1[_0x4f7ed4(0x231)])(_0x453830,_0x4f7ed4(0x249),![])!=_0x41f9df['module'])continue _0x2bea9b;else{if(_0x41f9df['module']===![]&&!!(0x0,lodash_1[_0x4f7ed4(0x231)])(_0x453830,'module',null))continue _0x2bea9b;}if(_0x41f9df['prefix']&&!_0x30d7f1[_0x4f7ed4(0x20e)](_0x41f9df[_0x4f7ed4(0x215)]))continue _0x2bea9b;_0x30d7f1!=='/'?(_0x5142eb[_0x4f7ed4(0x23d)]=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x230)])||(/^\//[_0x4f7ed4(0x227)](_0x30d7f1)?_0x30d7f1[_0x4f7ed4(0x238)]('/')[0x1]:_0x30d7f1),_0x5142eb[_0x4f7ed4(0x1f0)]=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x1f0)])||_0x5142eb['summary'],_0x5142eb[_0x4f7ed4(0x1fa)]=[]):(_0x5142eb['summary']=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x230)])||_0x4f7ed4(0x23f),_0x5142eb[_0x4f7ed4(0x1f0)]=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x1f0)])||'',_0x5142eb[_0x4f7ed4(0x1fa)]=[]);_0x41f9df[_0x4f7ed4(0x1e5)]&&(_0x5142eb['filepath']=_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x1e5)]);(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x218)])&&(_0x5142eb[_0x4f7ed4(0x215)]=_0x453830[_0x4f7ed4(0x218)]);(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x249)])&&(_0x5142eb[_0x4f7ed4(0x249)]=_0x453830[_0x4f7ed4(0x249)]);let _0x3c0715=(0x0,core_3[_0x4f7ed4(0x20b)])(core_2[_0x4f7ed4(0x21e)],_0x28b7a0)||{};if(typeof _0xe262d0[Symbol[_0x4f7ed4(0x206)]]===_0x4f7ed4(0x201))for(let _0x1c2ec6 of _0xe262d0){if((_0x41f9df===null||_0x41f9df===void 0x0?void 0x0:_0x41f9df[_0x4f7ed4(0x234)])&&!(_0x1c2ec6===null||_0x1c2ec6===void 0x0?void 0x0:_0x1c2ec6[_0x4f7ed4(0x234)]))continue;let _0x47eca9={};_0x47eca9[_0x4f7ed4(0x222)]=_0x1c2ec6[_0x4f7ed4(0x242)],_0x47eca9[_0x4f7ed4(0x21d)]=(_0x30d7f1+_0x1c2ec6[_0x4f7ed4(0x203)])[_0x4f7ed4(0x239)](/\/{2,}/g,'/'),_0x47eca9[_0x4f7ed4(0x23d)]=(_0x1c2ec6===null||_0x1c2ec6===void 0x0?void 0x0:_0x1c2ec6[_0x4f7ed4(0x216)])||_0x5142eb['summary']||_0x4f7ed4(0x23f),_0x47eca9[_0x4f7ed4(0x1f0)]=(_0x1c2ec6===null||_0x1c2ec6===void 0x0?void 0x0:_0x1c2ec6[_0x4f7ed4(0x1f0)])||'',_0x47eca9[_0x4f7ed4(0x221)]=[];_0x47eca9[_0x4f7ed4(0x21d)]['endsWith']('/')&&(_0x47eca9['route']=_0x47eca9[_0x4f7ed4(0x21d)][_0x4f7ed4(0x233)](0x0,_0x47eca9['route'][_0x4f7ed4(0x1f2)]-0x1));if(!(0x0,lodash_1[_0x4f7ed4(0x20e)])(_0x47eca9[_0x4f7ed4(0x21d)],_0x4f7ed4(0x20c))&&!(0x0,lodash_1[_0x4f7ed4(0x20e)])(_0x47eca9[_0x4f7ed4(0x21d)],_0x4f7ed4(0x23a))&&_0x2ada46[_0x4f7ed4(0x211)](_0x47eca9['route'])===-0x1){if(!(_0x41f9df===null||_0x41f9df===void 0x0?void 0x0:_0x41f9df['noreq'])){let _0x3a0ea4=(0x0,core_3[_0x4f7ed4(0x212)])(new _0x28b7a0(),_0x1c2ec6[_0x4f7ed4(0x222)]);for(const _0x260905 in _0x3a0ea4){let _0x33753f=(_0xb31013=_0x3c0715[_0x1c2ec6[_0x4f7ed4(0x222)]])===null||_0xb31013===void 0x0?void 0x0:_0xb31013[_0x4f7ed4(0x20d)](_0xe3fd53=>_0xe3fd53[_0x4f7ed4(0x1ee)]==_0x260905&&_0xe3fd53['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0xe3fd53===null||_0xe3fd53===void 0x0?void 0x0:_0xe3fd53[_0x4f7ed4(0x1f9)]));if(_0x33753f===null||_0x33753f===void 0x0?void 0x0:_0x33753f[_0x4f7ed4(0x1f9)]){let _0x42a955=convertTypeToString(_0x33753f['metadata'][_0x4f7ed4(0x214)]||0x0);if(['query',_0x4f7ed4(0x1f4)][_0x4f7ed4(0x211)](_0x42a955)!=-0x1&&_0x33753f[_0x4f7ed4(0x1f9)]['propertyData']['indexOf'](':')==-0x1&&!_0x47eca9['request'][_0x4f7ed4(0x20d)](_0x3ffbd4=>_0x3ffbd4[_0x4f7ed4(0x1e8)]==_0x33753f[_0x4f7ed4(0x1f9)][_0x4f7ed4(0x22f)]))_0x47eca9[_0x4f7ed4(0x221)][_0x4f7ed4(0x21a)]({'key':_0x33753f[_0x4f7ed4(0x1f9)]['propertyData'],'title':_0x33753f[_0x4f7ed4(0x1f9)][_0x4f7ed4(0x22f)],'type':convertSchemaType(_0x3a0ea4[_0x33753f[_0x4f7ed4(0x1ee)]][_0x4f7ed4(0x217)]),'required':![],'default':'','desc':''});else{if(_0x42a955==_0x4f7ed4(0x21c)){let _0x4c130c=((_0x222c0a=_0x33753f===null||_0x33753f===void 0x0?void 0x0:_0x33753f[_0x4f7ed4(0x1f9)])===null||_0x222c0a===void 0x0?void 0x0:_0x222c0a[_0x4f7ed4(0x22f)])||'file';_0x4c130c[_0x4f7ed4(0x211)](':')==-0x1&&!_0x47eca9[_0x4f7ed4(0x221)]['find'](_0x58e0d7=>_0x58e0d7['key']==_0x4c130c&&_0x58e0d7[_0x4f7ed4(0x214)]==_0x4f7ed4(0x21c))&&_0x47eca9[_0x4f7ed4(0x221)][_0x4f7ed4(0x21a)]({'key':_0x4c130c,'title':_0x4f7ed4(0x245)+_0x4c130c,'type':_0x4f7ed4(0x21c),'required':!![],'default':'','desc':''});}}}else{const _0x425533=(0x0,core_3[_0x4f7ed4(0x202)])(validator_1[_0x4f7ed4(0x20f)],_0x3a0ea4[_0x260905]);_0x425533&&_0x47eca9[_0x4f7ed4(0x221)][_0x4f7ed4(0x21a)](...getJoiRequest(_0x425533));}}}_0x5142eb['routes'][_0x4f7ed4(0x21a)](_0x47eca9);}}if(_0x5142eb['routes'][_0x4f7ed4(0x1f2)]>0x0){let _0x3bf413=_0x3f2b32[_0x30d7f1];_0x3bf413?(_0x3bf413['summary']!=_0x5142eb['summary']&&(_0x3bf413[_0x4f7ed4(0x23d)]=_0x3bf413[_0x4f7ed4(0x23d)]+','+_0x5142eb[_0x4f7ed4(0x23d)]),_0x3bf413[_0x4f7ed4(0x1f0)]!=_0x5142eb['description']&&(_0x3bf413[_0x4f7ed4(0x1f0)]=_0x3bf413[_0x4f7ed4(0x1f0)]+','+_0x5142eb[_0x4f7ed4(0x1f0)]),_0x3bf413['routes']=_0x3bf413[_0x4f7ed4(0x1fa)][_0x4f7ed4(0x1eb)](_0x5142eb[_0x4f7ed4(0x1fa)]),_0x3f2b32[_0x30d7f1]=_0x3bf413):_0x3f2b32[_0x30d7f1]=_0x5142eb;}}}return _0x3f2b32;}exports[a9_0x38e87c(0x1e4)]=getRoutes;function getJoiRequest(_0x313f9d){const _0xf9a011=a9_0x38e87c,_0x45274e=[];for(let _0x59c95e in _0x313f9d){const _0x41fd9a={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x445c7c=typeof _0x313f9d[_0x59c95e][_0xf9a011(0x237)]=='function'?_0x313f9d[_0x59c95e][_0xf9a011(0x237)]():_0x313f9d[_0x59c95e];_0x41fd9a[_0xf9a011(0x1e8)]=_0x59c95e,_0x41fd9a[_0xf9a011(0x214)]=_0x445c7c[_0xf9a011(0x214)],_0x41fd9a[_0xf9a011(0x1ff)]=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,_0xf9a011(0x1f8),_0x59c95e),_0x41fd9a[_0xf9a011(0x23f)]=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,'flags.default',''),_0x41fd9a[_0xf9a011(0x1ed)]=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,_0xf9a011(0x1e9),'')==_0xf9a011(0x1ed),_0x41fd9a['description']=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,_0xf9a011(0x236),'');if(_0x445c7c[_0xf9a011(0x214)]=='object')_0x41fd9a[_0xf9a011(0x226)]=getJoiRequest(_0x445c7c[_0xf9a011(0x213)]);else{if(_0x445c7c[_0xf9a011(0x214)]==_0xf9a011(0x235)&&_0x445c7c[_0xf9a011(0x1ec)]&&Array[_0xf9a011(0x24a)](_0x445c7c[_0xf9a011(0x1ec)])&&_0x445c7c[_0xf9a011(0x1ec)][0x0]){}}_0x445c7c[_0xf9a011(0x1f1)]&&Array['isArray'](_0x445c7c[_0xf9a011(0x1f1)])&&_0x445c7c[_0xf9a011(0x1f1)]['length']>0x0&&(_0x41fd9a[_0xf9a011(0x1f0)]='只允许:['+_0x445c7c[_0xf9a011(0x1f1)][_0xf9a011(0x232)](',')+'];'+_0x41fd9a[_0xf9a011(0x1f0)]);if(_0x41fd9a[_0xf9a011(0x1e8)]&&_0x41fd9a['type']){const _0xcd9d50={};for(const _0x536c6f of _0x445c7c['rules']||[]){if(_0x536c6f[_0xf9a011(0x217)]===_0xf9a011(0x1f6)&&_0x536c6f[_0xf9a011(0x22a)])_0xcd9d50['min']=_0x536c6f[_0xf9a011(0x22a)][_0xf9a011(0x23e)];else _0x536c6f[_0xf9a011(0x217)]==='max'&&(_0xcd9d50[_0xf9a011(0x1f7)]=_0x536c6f[_0xf9a011(0x22a)]['limit']);}_0x41fd9a[_0xf9a011(0x220)]=_0xcd9d50;}_0x41fd9a['key']&&_0x41fd9a[_0xf9a011(0x1ff)]&&_0x45274e['push'](_0x41fd9a);}return _0x45274e;}function convertSchemaType(_0x227bf7){const _0x366c1f=a9_0x38e87c;switch(_0x227bf7){case'Object':return'object';case _0x366c1f(0x22d):return _0x366c1f(0x224);case _0x366c1f(0x209):return'number';case _0x366c1f(0x228):return _0x366c1f(0x23c);case _0x366c1f(0x21b):return'file';default:return _0x366c1f(0x23c);}}function a9_0x589f(){const _0x22597f=['File','file','route','INJECT_CUSTOM_PARAM','search','rules','request','method','../types/action','boolean','(((.+)+)+)+$','children','test','String','header','args','constructor','105yUQntF','Boolean','lodash','propertyData','tagName','get','join','substring','intercept','array','flags.description','describe','split','replace','/static/apitest','FILESSTREAM','string','summary','limit','default','RouteParamTypes','10itcfEJ','requestMethod','FILESTREAM','@midwayjs/core','文件上传-','QUERY','defineProperty','toString','module','isArray','getRoutes','filepath','listModule','HEADERS','key','flags.presence','4568964qZbUGQ','concat','items','required','parameterIndex','FIELDS','description','allow','length','791955KnTqkW','body','29978069zIUlNo','min','max','flags.label','metadata','routes','8536450NmXMRj','PARAM','878862uIXNuz','filter','title','136tiOfeG','function','getClassExtendedMetadata','path','ACTION_ROUTE_KEY','1180941emUcDX','iterator','routerOptions','__esModule','Number','query','getClassMetadata','static/apitest','find','startsWith','RULES_KEY','99890wFfyym','indexOf','getMethodParamTypes','keys','type','prefix','routerName','name','pprefix','49YxchZZ','push'];a9_0x589f=function(){return _0x22597f;};return a9_0x589f();}function convertTypeToString(_0x461f2d){const _0x383175=a9_0x38e87c;switch(_0x461f2d){case core_1[_0x383175(0x240)][_0x383175(0x1e7)]:return _0x383175(0x229);case core_1['RouteParamTypes'][_0x383175(0x246)]:return _0x383175(0x20a);case core_1[_0x383175(0x240)][_0x383175(0x1fc)]:return _0x383175(0x203);case core_1['RouteParamTypes']['BODY']:return'body';case core_1[_0x383175(0x240)][_0x383175(0x1ef)]:case core_1[_0x383175(0x240)][_0x383175(0x23b)]:case core_1['RouteParamTypes'][_0x383175(0x243)]:return'file';default:return _0x383175(0x229);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x415518=a10_0x13ca;(function(_0x115a09,_0x86b279){var _0x4211fb=a10_0x13ca,_0x5c5219=_0x115a09();while(!![]){try{var _0xee7af2=parseInt(_0x4211fb(0x208))/0x1*(parseInt(_0x4211fb(0x1f9))/0x2)+parseInt(_0x4211fb(0x1ca))/0x3*(parseInt(_0x4211fb(0x1d9))/0x4)+-parseInt(_0x4211fb(0x1ff))/0x5+-parseInt(_0x4211fb(0x1e0))/0x6*(parseInt(_0x4211fb(0x1f3))/0x7)+-parseInt(_0x4211fb(0x1d0))/0x8*(-parseInt(_0x4211fb(0x1da))/0x9)+parseInt(_0x4211fb(0x205))/0xa+parseInt(_0x4211fb(0x1d8))/0xb*(-parseInt(_0x4211fb(0x203))/0xc);if(_0xee7af2===_0x86b279)break;else _0x5c5219['push'](_0x5c5219['shift']());}catch(_0x9fbcf4){_0x5c5219['push'](_0x5c5219['shift']());}}}(a10_0x54d7,0x7a585));var a10_0x33f0a4=(function(){var _0x1cdb2e=!![];return function(_0x5ca3ac,_0x15dd8f){var _0x16422b=_0x1cdb2e?function(){var _0xff29e=a10_0x13ca;if(_0x15dd8f){var _0x4fc9b2=_0x15dd8f[_0xff29e(0x20c)](_0x5ca3ac,arguments);return _0x15dd8f=null,_0x4fc9b2;}}:function(){};return _0x1cdb2e=![],_0x16422b;};}()),a10_0x1db2ef=a10_0x33f0a4(this,function(){var _0x5e0c61=a10_0x13ca;return a10_0x1db2ef[_0x5e0c61(0x1cc)]()[_0x5e0c61(0x1cb)](_0x5e0c61(0x1d7))['toString']()[_0x5e0c61(0x1fb)](a10_0x1db2ef)[_0x5e0c61(0x1cb)](_0x5e0c61(0x1d7));});a10_0x1db2ef();'use strict';var __createBinding=this&&this[a10_0x415518(0x20d)]||(Object['create']?function(_0x511223,_0x2ae123,_0x46b601,_0x5337d7){var _0x39bc46=a10_0x415518;if(_0x5337d7===undefined)_0x5337d7=_0x46b601;var _0x5968ce=Object[_0x39bc46(0x1e1)](_0x2ae123,_0x46b601);(!_0x5968ce||('get'in _0x5968ce?!_0x2ae123['__esModule']:_0x5968ce[_0x39bc46(0x204)]||_0x5968ce[_0x39bc46(0x1f4)]))&&(_0x5968ce={'enumerable':!![],'get':function(){return _0x2ae123[_0x46b601];}}),Object[_0x39bc46(0x1fc)](_0x511223,_0x5337d7,_0x5968ce);}:function(_0x57b3ee,_0x1a8927,_0xfbaab8,_0x1fe521){if(_0x1fe521===undefined)_0x1fe521=_0xfbaab8;_0x57b3ee[_0x1fe521]=_0x1a8927[_0xfbaab8];}),__exportStar=this&&this['__exportStar']||function(_0x252206,_0x4ba235){var _0x618d82=a10_0x415518;for(var _0xf5d13f in _0x252206)if(_0xf5d13f!==_0x618d82(0x200)&&!Object[_0x618d82(0x1d5)][_0x618d82(0x1ed)]['call'](_0x4ba235,_0xf5d13f))__createBinding(_0x4ba235,_0x252206,_0xf5d13f);};Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1fe),{'value':!![]}),exports[a10_0x415518(0x1ec)]=exports['ScopeEnum']=exports[a10_0x415518(0x1d3)]=exports[a10_0x415518(0x1e3)]=exports['Inject']=exports[a10_0x415518(0x1f7)]=exports[a10_0x415518(0x1f1)]=exports['Config']=exports[a10_0x415518(0x207)]=exports[a10_0x415518(0x1d6)]=exports[a10_0x415518(0x1f8)]=exports[a10_0x415518(0x1f6)]=exports[a10_0x415518(0x1ef)]=exports['Body']=exports['Fields']=exports[a10_0x415518(0x1cd)]=exports[a10_0x415518(0x1ea)]=exports['Configuration']=exports[a10_0x415518(0x20b)]=exports['ValidatorError']=exports[a10_0x415518(0x1d1)]=exports[a10_0x415518(0x20f)]=exports[a10_0x415518(0x20e)]=exports[a10_0x415518(0x1f2)]=exports[a10_0x415518(0x1d4)]=exports[a10_0x415518(0x1fd)]=exports[a10_0x415518(0x1ee)]=exports[a10_0x415518(0x1e8)]=exports[a10_0x415518(0x1f0)]=exports[a10_0x415518(0x20a)]=exports[a10_0x415518(0x1e9)]=void 0x0;const getAppsConfig_1=require(a10_0x415518(0x1dd));Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1ec),{'enumerable':!![],'get':function(){var _0x35d0a9=a10_0x415518;return getAppsConfig_1[_0x35d0a9(0x1ec)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a10_0x415518(0x201)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1e9),{'enumerable':!![],'get':function(){var _0x1b528a=a10_0x415518;return ActionApi_1[_0x1b528a(0x1e9)];}});var Action_1=require(a10_0x415518(0x1de));Object['defineProperty'](exports,a10_0x415518(0x20a),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a10_0x415518(0x1eb));Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1f0),{'enumerable':!![],'get':function(){var _0x4c5af9=a10_0x415518;return ActionApitest_1[_0x4c5af9(0x1f0)];}});var Intercept_1=require(a10_0x415518(0x1cf));function a10_0x54d7(){var _0x3f1493=['./decorator/ActionApitest','getAppsConfig','hasOwnProperty','IIntercept','Param','Apitest','Logger','CacheService','15183BQhLtu','configurable','ScopeEnum','Query','Provide','Headers','192VqhXRS','Fields','constructor','defineProperty','getRoutes','__esModule','437320xOinYs','default','./service/ApitestService','./exception/ApiError','12TKkXeL','writable','5290220hyzOag','./configuration','App','8221qCAkTw','Configuration','Action','ValidatorService','apply','__createBinding','EventService','ApiService','3ClNFKR','search','toString','Files','Body','./decorator/Intercept','2404936EXPDAF','ExcelService','@anncic-api/validator','Singleton','ApiError','prototype','Init','(((.+)+)+)+$','9592264IUvwYl','937388ZWoeQX','9WcRXqp','@anncic-api/event','Config','./helper/getAppsConfig','./decorator/Action','@anncic-api/cache','1086eccvaZ','getOwnPropertyDescriptor','ValidatorError','Scope','@midwayjs/core','CustomConfiguration','Inject','./helper/getRoutes','Intercept','Api','File'];a10_0x54d7=function(){return _0x3f1493;};return a10_0x54d7();}Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1e8),{'enumerable':!![],'get':function(){var _0x4708a1=a10_0x415518;return Intercept_1[_0x4708a1(0x1e8)];}}),Object['defineProperty'](exports,a10_0x415518(0x1ee),{'enumerable':!![],'get':function(){var _0x2b10ae=a10_0x415518;return Intercept_1[_0x2b10ae(0x1ee)];}});var getRoutes_1=require(a10_0x415518(0x1e7));Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1fd),{'enumerable':!![],'get':function(){var _0x559c75=a10_0x415518;return getRoutes_1[_0x559c75(0x1fd)];}});function a10_0x13ca(_0xc9cfc7,_0x1f3720){var _0x1465e1=a10_0x54d7();return a10_0x13ca=function(_0x1db2ef,_0x33f0a4){_0x1db2ef=_0x1db2ef-0x1ca;var _0x54d7a8=_0x1465e1[_0x1db2ef];return _0x54d7a8;},a10_0x13ca(_0xc9cfc7,_0x1f3720);}var ApiError_1=require(a10_0x415518(0x202));Object[a10_0x415518(0x1fc)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x4283fe=a10_0x415518;return ApiError_1[_0x4283fe(0x1d4)];}});var cache_1=require(a10_0x415518(0x1df));Object[a10_0x415518(0x1fc)](exports,'CacheService',{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a10_0x415518(0x1db));Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x20e),{'enumerable':!![],'get':function(){var _0x594d26=a10_0x415518;return event_1[_0x594d26(0x20e)];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x3b4640=a10_0x415518;return ApiService_1[_0x3b4640(0x20f)];}});var ExcelService_1=require('./service/ExcelService');Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1d1),{'enumerable':!![],'get':function(){var _0x57c4c2=a10_0x415518;return ExcelService_1[_0x57c4c2(0x1d1)];}});var validator_1=require(a10_0x415518(0x1d2));Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1e2),{'enumerable':!![],'get':function(){var _0x2fd43b=a10_0x415518;return validator_1[_0x2fd43b(0x1e2)];}}),Object[a10_0x415518(0x1fc)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x5e6f58=a10_0x415518;return validator_1[_0x5e6f58(0x20b)];}});var configuration_1=require(a10_0x415518(0x206));Object['defineProperty'](exports,a10_0x415518(0x209),{'enumerable':!![],'get':function(){var _0x247fab=a10_0x415518;return configuration_1[_0x247fab(0x1e5)];}});var core_1=require(a10_0x415518(0x1e4));Object['defineProperty'](exports,a10_0x415518(0x1ea),{'enumerable':!![],'get':function(){var _0x4af3c8=a10_0x415518;return core_1[_0x4af3c8(0x1ea)];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1cd),{'enumerable':!![],'get':function(){var _0x18bfc6=a10_0x415518;return core_1[_0x18bfc6(0x1cd)];}}),Object['defineProperty'](exports,a10_0x415518(0x1fa),{'enumerable':!![],'get':function(){var _0x135c98=a10_0x415518;return core_1[_0x135c98(0x1fa)];}}),Object['defineProperty'](exports,a10_0x415518(0x1ce),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1ef),{'enumerable':!![],'get':function(){var _0x481f23=a10_0x415518;return core_1[_0x481f23(0x1ef)];}}),Object[a10_0x415518(0x1fc)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1f8),{'enumerable':!![],'get':function(){var _0x2e026a=a10_0x415518;return core_1[_0x2e026a(0x1f8)];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){var _0x236119=a10_0x415518;return core_1[_0x236119(0x1d6)];}});var core_2=require(a10_0x415518(0x1e4));Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x207),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a10_0x415518(0x1fc)](exports,'Config',{'enumerable':!![],'get':function(){var _0x35906e=a10_0x415518;return core_2[_0x35906e(0x1dc)];}}),Object['defineProperty'](exports,a10_0x415518(0x1f1),{'enumerable':!![],'get':function(){var _0x2cc7ec=a10_0x415518;return core_2[_0x2cc7ec(0x1f1)];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1f7),{'enumerable':!![],'get':function(){var _0x586b5d=a10_0x415518;return core_2[_0x586b5d(0x1f7)];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1e6),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1e3),{'enumerable':!![],'get':function(){var _0x3e63b4=a10_0x415518;return core_2[_0x3e63b4(0x1e3)];}}),Object[a10_0x415518(0x1fc)](exports,a10_0x415518(0x1d3),{'enumerable':!![],'get':function(){var _0x4cb618=a10_0x415518;return core_2[_0x4cb618(0x1d3)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x3696f9=a10_0x415518;return core_2[_0x3696f9(0x1f5)];}}),global[a10_0x415518(0x1ec)]=getAppsConfig_1[a10_0x415518(0x1ec)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x270c61=a11_0x246f;(function(_0x55ad1c,_0x157692){var _0xa19da5=a11_0x246f,_0x1b2742=_0x55ad1c();while(!![]){try{var _0xb01ba3=parseInt(_0xa19da5(0x1b6))/0x1*(-parseInt(_0xa19da5(0x1b3))/0x2)+-parseInt(_0xa19da5(0x1c1))/0x3*(-parseInt(_0xa19da5(0x1a0))/0x4)+parseInt(_0xa19da5(0x1be))/0x5+parseInt(_0xa19da5(0x1cb))/0x6*(parseInt(_0xa19da5(0x1d7))/0x7)+-parseInt(_0xa19da5(0x19b))/0x8*(parseInt(_0xa19da5(0x1a8))/0x9)+-parseInt(_0xa19da5(0x1c7))/0xa+-parseInt(_0xa19da5(0x1cc))/0xb*(-parseInt(_0xa19da5(0x1c0))/0xc);if(_0xb01ba3===_0x157692)break;else _0x1b2742['push'](_0x1b2742['shift']());}catch(_0x5dc93e){_0x1b2742['push'](_0x1b2742['shift']());}}}(a11_0x3638,0x19fc0));var a11_0x17b2b0=(function(){var _0x10330b=!![];return function(_0x4ef9e8,_0x24e3c6){var _0x24584a=_0x10330b?function(){var _0x207dc6=a11_0x246f;if(_0x24e3c6){var _0x17e599=_0x24e3c6[_0x207dc6(0x1b2)](_0x4ef9e8,arguments);return _0x24e3c6=null,_0x17e599;}}:function(){};return _0x10330b=![],_0x24584a;};}()),a11_0x38a106=a11_0x17b2b0(this,function(){var _0x536e5b=a11_0x246f;return a11_0x38a106[_0x536e5b(0x1b9)]()['search']('(((.+)+)+)+$')[_0x536e5b(0x1b9)]()[_0x536e5b(0x1ba)](a11_0x38a106)[_0x536e5b(0x19c)](_0x536e5b(0x1c8));});a11_0x38a106();'use strict';function a11_0x246f(_0x509b03,_0x2e6689){var _0x141892=a11_0x3638();return a11_0x246f=function(_0x38a106,_0x17b2b0){_0x38a106=_0x38a106-0x194;var _0x363861=_0x141892[_0x38a106];return _0x363861;},a11_0x246f(_0x509b03,_0x2e6689);}var __decorate=this&&this[a11_0x270c61(0x1d6)]||function(_0x18dbca,_0x14d0f6,_0xde5fdc,_0x90efc4){var _0x2e7cbc=a11_0x270c61,_0x2c5fdb=arguments[_0x2e7cbc(0x1bd)],_0x3f5a84=_0x2c5fdb<0x3?_0x14d0f6:_0x90efc4===null?_0x90efc4=Object['getOwnPropertyDescriptor'](_0x14d0f6,_0xde5fdc):_0x90efc4,_0x14028d;if(typeof Reflect===_0x2e7cbc(0x1cd)&&typeof Reflect[_0x2e7cbc(0x194)]===_0x2e7cbc(0x1a3))_0x3f5a84=Reflect[_0x2e7cbc(0x194)](_0x18dbca,_0x14d0f6,_0xde5fdc,_0x90efc4);else{for(var _0x2ca959=_0x18dbca[_0x2e7cbc(0x1bd)]-0x1;_0x2ca959>=0x0;_0x2ca959--)if(_0x14028d=_0x18dbca[_0x2ca959])_0x3f5a84=(_0x2c5fdb<0x3?_0x14028d(_0x3f5a84):_0x2c5fdb>0x3?_0x14028d(_0x14d0f6,_0xde5fdc,_0x3f5a84):_0x14028d(_0x14d0f6,_0xde5fdc))||_0x3f5a84;}return _0x2c5fdb>0x3&&_0x3f5a84&&Object[_0x2e7cbc(0x1aa)](_0x14d0f6,_0xde5fdc,_0x3f5a84),_0x3f5a84;},__metadata=this&&this[a11_0x270c61(0x1d5)]||function(_0x35c23c,_0x20b747){var _0x40b7b6=a11_0x270c61;if(typeof Reflect===_0x40b7b6(0x1cd)&&typeof Reflect['metadata']==='function')return Reflect[_0x40b7b6(0x1d1)](_0x35c23c,_0x20b747);};Object[a11_0x270c61(0x1aa)](exports,a11_0x270c61(0x1d4),{'value':!![]}),exports[a11_0x270c61(0x1b7)]=void 0x0;const crypto_js_1=require(a11_0x270c61(0x1a4)),core_1=require(a11_0x270c61(0x1c4)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a11_0x270c61(0x1bf)](_0x5a1514){var _0x2863f5=a11_0x270c61,_0x13ab28;return _0x5a1514?(0x0,crypto_js_1[_0x2863f5(0x1d2)])(''+_0x5a1514+(0x0,crypto_js_1[_0x2863f5(0x1d2)])((0x0,crypto_js_1['MD5'])(''+_0x5a1514)[_0x2863f5(0x1b9)]()+(''+((_0x13ab28=this[_0x2863f5(0x1b4)])===null||_0x13ab28===void 0x0?void 0x0:_0x13ab28['password'])))[_0x2863f5(0x1b9)]())['toString']():'';}[a11_0x270c61(0x1d3)](_0x410c3c,_0x3b14a4,_0x1de1ab=Date[a11_0x270c61(0x1ae)]()){return{'Token':_0x410c3c,'Logintime':_0x1de1ab,'Checkcode':this['checkcode'](_0x410c3c,_0x3b14a4,_0x1de1ab)};}[a11_0x270c61(0x1a1)](_0x16a604={}){var _0x13366d=a11_0x270c61,_0x2fb1dc,_0x5a4f8d;const _0xe41820=[],_0x7c0feb=Object['fromEntries'](Object['entries'](_0x16a604)['map'](_0x2e747f=>[_0x2e747f[0x0][_0x13366d(0x1a5)](),_0x2e747f[0x1]]));for(let _0x213fd7 of['device','requesttime',_0x13366d(0x197),_0x13366d(0x1b0),_0x13366d(0x1af)]){if(typeof _0x7c0feb[_0x213fd7]=='undefined')throw new AnnError(ApiError_1[_0x13366d(0x1c6)][_0x13366d(0x1ad)],{'message':_0x13366d(0x1b8)+_0x213fd7});_0xe41820['push'](_0x213fd7+'='+_0x7c0feb[_0x213fd7]);}_0x7c0feb[_0x13366d(0x1a7)]&&((_0x2fb1dc=_0x7c0feb[_0x13366d(0x1a7)])===null||_0x2fb1dc===void 0x0?void 0x0:_0x2fb1dc[_0x13366d(0x1bd)])==0xa&&(_0x7c0feb[_0x13366d(0x1a7)]=_0x7c0feb[_0x13366d(0x1a7)]*0x3e8);if(this[_0x13366d(0x1b4)][_0x13366d(0x1ab)]&&Date[_0x13366d(0x1ae)]()-Math[_0x13366d(0x1bb)](_0x7c0feb[_0x13366d(0x1a7)])>this[_0x13366d(0x1b4)][_0x13366d(0x1ab)])throw new AnnError(ApiError_1[_0x13366d(0x1c6)][_0x13366d(0x198)],{'message':_0x13366d(0x1a9),'requesttime':_0x7c0feb[_0x13366d(0x1a7)],'timestamp':Date[_0x13366d(0x1ae)]()});if((((_0x5a4f8d=this[_0x13366d(0x1b4)][_0x13366d(0x1ce)][_0x7c0feb[_0x13366d(0x1cf)]])===null||_0x5a4f8d===void 0x0?void 0x0:_0x5a4f8d[_0x13366d(0x1a2)])||0x0)>0x0&&Date[_0x13366d(0x1ae)]()-Math['abs'](_0x7c0feb['logintime'])>this[_0x13366d(0x1b4)]['devices'][_0x7c0feb[_0x13366d(0x1cf)]][_0x13366d(0x1a2)])throw new AnnError(ApiError_1[_0x13366d(0x1c6)][_0x13366d(0x1ca)]);if(!this[_0x13366d(0x1b4)][_0x13366d(0x1ce)][_0x7c0feb[_0x13366d(0x1cf)]]||!this['config'][_0x13366d(0x1ce)][_0x7c0feb[_0x13366d(0x1cf)]][_0x13366d(0x19f)]||!this['config'][_0x13366d(0x1ce)][_0x7c0feb[_0x13366d(0x1cf)]][_0x13366d(0x1af)])throw new AnnError(ApiError_1[_0x13366d(0x1c6)]['HEADERS_DEVICE']);if(_0x7c0feb[_0x13366d(0x197)]&&_0x7c0feb[_0x13366d(0x1af)]!=this[_0x13366d(0x1af)](_0x7c0feb[_0x13366d(0x197)],_0x7c0feb[_0x13366d(0x1cf)],_0x7c0feb[_0x13366d(0x1b0)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_CHECKCODE']);return _0xe41820[_0x13366d(0x1c9)]('secret='+this[_0x13366d(0x1b4)][_0x13366d(0x1ce)][_0x7c0feb[_0x13366d(0x1cf)]][_0x13366d(0x19f)]),(0x0,crypto_js_1['MD5'])(_0xe41820[_0x13366d(0x1b5)]()[_0x13366d(0x1c3)](''))[_0x13366d(0x1b9)]();}['checkcode'](_0x106f0b,_0x1771c7,_0x16abd7=Date[a11_0x270c61(0x1ae)]()){var _0x3280ce=a11_0x270c61,_0x49b06f,_0x41bc05,_0x5e8be4;if(!((_0x49b06f=this[_0x3280ce(0x1b4)])===null||_0x49b06f===void 0x0?void 0x0:_0x49b06f[_0x3280ce(0x1ce)][_0x1771c7])||!((_0x5e8be4=(_0x41bc05=this[_0x3280ce(0x1b4)])===null||_0x41bc05===void 0x0?void 0x0:_0x41bc05['devices'][_0x1771c7])===null||_0x5e8be4===void 0x0?void 0x0:_0x5e8be4[_0x3280ce(0x1af)]))throw new AnnError(ApiError_1[_0x3280ce(0x1c6)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x3280ce(0x1d2)])(''+_0x106f0b+(0x0,crypto_js_1[_0x3280ce(0x1d2)])(''+_0x16abd7+(''+this[_0x3280ce(0x1b4)][_0x3280ce(0x1ce)][_0x1771c7][_0x3280ce(0x1af)]))[_0x3280ce(0x1b9)]())['toString']();}[a11_0x270c61(0x1a6)](_0x483446={}){var _0x40a23f=a11_0x270c61;const _0x35e32c=Object[_0x40a23f(0x19e)](Object[_0x40a23f(0x1ac)](_0x483446)[_0x40a23f(0x19a)](_0x1a3909=>[_0x1a3909[0x0][_0x40a23f(0x1a5)](),_0x1a3909[0x1]]));if(!(_0x35e32c===null||_0x35e32c===void 0x0?void 0x0:_0x35e32c['signature']))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x40a23f(0x1d0)});if((_0x35e32c===null||_0x35e32c===void 0x0?void 0x0:_0x35e32c['signature'])!=this['getsign'](_0x35e32c))throw new AnnError(ApiError_1[_0x40a23f(0x1c6)][_0x40a23f(0x196)]);return!![];}};__decorate([(0x0,core_1[a11_0x270c61(0x1c5)])(a11_0x270c61(0x19d)),__metadata(a11_0x270c61(0x1bc),Object)],ApiService[a11_0x270c61(0x195)],a11_0x270c61(0x1b4),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x270c61(0x1c2)])(),(0x0,core_1[a11_0x270c61(0x199)])(core_1['ScopeEnum'][a11_0x270c61(0x1b1)])],ApiService),exports[a11_0x270c61(0x1b7)]=ApiService;function a11_0x3638(){var _0x38225d=['sort','8783FrgFmY','ApiService','缺少头信息:','toString','constructor','abs','design:type','length','747215dYHjms','password','133872tjXxOA','2517WyirNN','Provide','join','@midwayjs/core','Config','ApiError','633530SBectw','(((.+)+)+)+$','push','TIMEOUT_LOGINTIME','1149006nHkrey','77VkiAEw','object','devices','device','缺少头信息:signature','metadata','MD5','getcheck','__esModule','__metadata','__decorate','7irFzRy','decorate','prototype','HEADERS_SIGNATURE','token','TIMEOUT','Scope','map','617264HaYNfN','search','anncicapi','fromEntries','secret','8SLurbe','getsign','logintimeout','function','crypto-js','toLowerCase','checksign','requesttime','18xcAxKd','请求超时,请重试或改善网络环境','defineProperty','timeout','entries','HEADERS_LACK','now','checkcode','logintime','Singleton','apply','22BqzbeJ','config'];a11_0x3638=function(){return _0x38225d;};return a11_0x3638();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2a87d1=a12_0xc435;(function(_0x5b32ef,_0x227e9b){const _0x5db29a=a12_0xc435,_0x322175=_0x5b32ef();while(!![]){try{const _0x1ac6d1=-parseInt(_0x5db29a(0x139))/0x1*(-parseInt(_0x5db29a(0x124))/0x2)+parseInt(_0x5db29a(0x161))/0x3+-parseInt(_0x5db29a(0x13d))/0x4*(-parseInt(_0x5db29a(0x12b))/0x5)+parseInt(_0x5db29a(0x173))/0x6+-parseInt(_0x5db29a(0x15a))/0x7+parseInt(_0x5db29a(0x12a))/0x8+-parseInt(_0x5db29a(0x157))/0x9*(parseInt(_0x5db29a(0x160))/0xa);if(_0x1ac6d1===_0x227e9b)break;else _0x322175['push'](_0x322175['shift']());}catch(_0x534c8d){_0x322175['push'](_0x322175['shift']());}}}(a12_0x1f39,0x31c51));const a12_0xd32f99=(function(){let _0x5092b3=!![];return function(_0x1fb1e9,_0x275305){const _0x3094f4=_0x5092b3?function(){const _0x3f3b1f=a12_0xc435;if(_0x275305){const _0x6d143a=_0x275305[_0x3f3b1f(0x15b)](_0x1fb1e9,arguments);return _0x275305=null,_0x6d143a;}}:function(){};return _0x5092b3=![],_0x3094f4;};}()),a12_0x17428c=a12_0xd32f99(this,function(){const _0x248ff7=a12_0xc435;return a12_0x17428c[_0x248ff7(0x14d)]()[_0x248ff7(0x165)](_0x248ff7(0x134))[_0x248ff7(0x14d)]()[_0x248ff7(0x12e)](a12_0x17428c)[_0x248ff7(0x165)](_0x248ff7(0x134));});a12_0x17428c();'use strict';var __decorate=this&&this['__decorate']||function(_0x21049c,_0x317730,_0x4e2186,_0x344b41){const _0x207c2f=a12_0xc435;var _0x415480=arguments[_0x207c2f(0x16a)],_0x646116=_0x415480<0x3?_0x317730:_0x344b41===null?_0x344b41=Object['getOwnPropertyDescriptor'](_0x317730,_0x4e2186):_0x344b41,_0x161ae1;if(typeof Reflect==='object'&&typeof Reflect[_0x207c2f(0x171)]==='function')_0x646116=Reflect[_0x207c2f(0x171)](_0x21049c,_0x317730,_0x4e2186,_0x344b41);else{for(var _0x4cb664=_0x21049c['length']-0x1;_0x4cb664>=0x0;_0x4cb664--)if(_0x161ae1=_0x21049c[_0x4cb664])_0x646116=(_0x415480<0x3?_0x161ae1(_0x646116):_0x415480>0x3?_0x161ae1(_0x317730,_0x4e2186,_0x646116):_0x161ae1(_0x317730,_0x4e2186))||_0x646116;}return _0x415480>0x3&&_0x646116&&Object[_0x207c2f(0x166)](_0x317730,_0x4e2186,_0x646116),_0x646116;},__metadata=this&&this['__metadata']||function(_0x2d1dd7,_0x40b299){const _0x57d353=a12_0xc435;if(typeof Reflect===_0x57d353(0x14a)&&typeof Reflect[_0x57d353(0x152)]===_0x57d353(0x140))return Reflect[_0x57d353(0x152)](_0x2d1dd7,_0x40b299);},__param=this&&this[a12_0x2a87d1(0x15d)]||function(_0x2b3f34,_0x11851e){return function(_0x1db26e,_0x440001){_0x11851e(_0x1db26e,_0x440001,_0x2b3f34);};};Object[a12_0x2a87d1(0x166)](exports,a12_0x2a87d1(0x142),{'value':!![]}),exports[a12_0x2a87d1(0x151)]=exports[a12_0x2a87d1(0x16c)]=void 0x0;function a12_0x1f39(){const _0x59086a=['2335216ApMaVv','115clMTMT','apitesthtml','method','constructor','url','ctx','readFileSync','MidwayEnvironmentService','/index.html','(((.+)+)+)+$','Singleton','__apiList__','text/css;\x20charset=utf-8','.js','352862ZcZdfW','extname','routes','utf-8','10308RVvXRD','../../public/index.html','substring','function','Provide','__esModule','Param','apidoc','apitestmodule','prefix','join','apiteststatic','path','object','request','devices','toString','Get','filepath','apitest','ApitestStaticController','metadata','existsSync','.css','prototype','/apiteststatic/','5917815SmAHfd','design:type','design:returntype','1286817KJUzUi','apply','anncicapi','__param','config','content-type','10dCgLHZ','276414xuZawi','push','replace','cache-control','search','defineProperty','application/javascript;\x20charset=utf-8','../../public/','summary','length','isDevelopmentEnvironment','ApitestService','stringify','Scope','Request','set','decorate','Environment','1494300ZJPQEm','/apiteststatic/*','Inject','getRoutes','design:paramtypes','ScopeEnum','2oDQAqx','description','module','Config','/apitest-:module','@midwayjs/core'];a12_0x1f39=function(){return _0x59086a;};return a12_0x1f39();}function a12_0xc435(_0x221b5a,_0x5f1747){const _0x2e887a=a12_0x1f39();return a12_0xc435=function(_0x17428c,_0xd32f99){_0x17428c=_0x17428c-0x120;let _0x1f3913=_0x2e887a[_0x17428c];return _0x1f3913;},a12_0xc435(_0x221b5a,_0x5f1747);}const path_1=require(a12_0x2a87d1(0x149)),fs_1=require('fs'),core_1=require(a12_0x2a87d1(0x129)),core_2=require(a12_0x2a87d1(0x129)),core_3=require(a12_0x2a87d1(0x129)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a12_0x2a87d1(0x144)](_0x8b4787){const _0xcc7387=a12_0x2a87d1,_0x1028e9=(0x0,getRoutes_1[_0xcc7387(0x121)])(_0x8b4787),_0x4ef0e1=[];for(let _0x34d39d in _0x1028e9){for(let _0x3c6d59 in _0x1028e9[_0x34d39d][_0xcc7387(0x13b)]){let _0x2a34b6=_0x1028e9[_0x34d39d][_0xcc7387(0x13b)][_0x3c6d59],_0x2236ca=[];for(let _0x166ba5 in _0x2a34b6[_0xcc7387(0x14b)]){_0x2236ca[_0xcc7387(0x162)](_0x2a34b6['request'][_0x166ba5]);}_0x4ef0e1[_0xcc7387(0x162)]({'title':_0x1028e9[_0x34d39d][_0xcc7387(0x169)]+':'+_0x2a34b6[_0xcc7387(0x169)],'prefix':_0x1028e9[_0x34d39d][_0xcc7387(0x146)],'router':_0x2a34b6['route'],'method':_0x2a34b6[_0xcc7387(0x12d)],'describe':_0x2a34b6[_0xcc7387(0x125)]||'','filepath':_0x1028e9[_0x34d39d][_0xcc7387(0x14f)]||'','request':_0x2236ca});}}const _0x56d99d=(0x0,path_1[_0xcc7387(0x147)])(__dirname,_0xcc7387(0x13e));return(0x0,fs_1[_0xcc7387(0x131)])(_0x56d99d,{'encoding':_0xcc7387(0x13c)})[_0xcc7387(0x163)](/__res__/g,_0xcc7387(0x156))[_0xcc7387(0x163)](_0xcc7387(0x136),JSON['stringify'](_0x4ef0e1))[_0xcc7387(0x163)]('__devices__',JSON[_0xcc7387(0x16d)](this['config'][_0xcc7387(0x14c)]));}};__decorate([(0x0,core_3[a12_0x2a87d1(0x127)])(a12_0x2a87d1(0x15c)),__metadata(a12_0x2a87d1(0x158),Object)],ApitestService[a12_0x2a87d1(0x155)],a12_0x2a87d1(0x15e),void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x2a87d1(0x141)])(a12_0x2a87d1(0x150)),(0x0,core_3[a12_0x2a87d1(0x16e)])(core_3[a12_0x2a87d1(0x123)][a12_0x2a87d1(0x135)])],ApitestService),exports[a12_0x2a87d1(0x16c)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x2a87d1(0x12c)](){const _0x32cd52=a12_0x2a87d1;if(this[_0x32cd52(0x150)]){const _0x3a0b3f={'module':![]};return this[_0x32cd52(0x172)]['isDevelopmentEnvironment']()&&(_0x3a0b3f[_0x32cd52(0x14f)]=!![]),await this[_0x32cd52(0x16c)]['apidoc'](_0x3a0b3f);}return'';}async['apitestmodule'](_0x4ce8e0){const _0x5002be=a12_0x2a87d1;if(this[_0x5002be(0x150)]){const _0x1238ba={'module':_0x4ce8e0};return this[_0x5002be(0x172)][_0x5002be(0x16b)]()&&(_0x1238ba[_0x5002be(0x14f)]=!![]),await this[_0x5002be(0x16c)][_0x5002be(0x144)](_0x1238ba);}return'';}async[a12_0x2a87d1(0x148)](){const _0x3ce468=a12_0x2a87d1;if((0x0,path_1[_0x3ce468(0x13a)])(this[_0x3ce468(0x130)][_0x3ce468(0x14b)][_0x3ce468(0x12f)])){var _0x3fdc76=(0x0,path_1[_0x3ce468(0x147)])(__dirname,_0x3ce468(0x168)+this[_0x3ce468(0x130)][_0x3ce468(0x14b)]['url'][_0x3ce468(0x163)]('/apiteststatic/','/'));if(_0x3fdc76[_0x3ce468(0x13f)](_0x3fdc76[_0x3ce468(0x16a)]-0xb)!=_0x3ce468(0x133)){this['ctx']['set'](_0x3ce468(0x164),'public,\x20max-age=604800');if((0x0,path_1['extname'])(this[_0x3ce468(0x130)][_0x3ce468(0x14b)][_0x3ce468(0x12f)])==_0x3ce468(0x138))this[_0x3ce468(0x130)][_0x3ce468(0x170)](_0x3ce468(0x15f),_0x3ce468(0x167));else(0x0,path_1[_0x3ce468(0x13a)])(this[_0x3ce468(0x130)]['request'][_0x3ce468(0x12f)])==_0x3ce468(0x154)&&this[_0x3ce468(0x130)][_0x3ce468(0x170)](_0x3ce468(0x15f),_0x3ce468(0x137));return(0x0,fs_1[_0x3ce468(0x153)])(_0x3fdc76)&&(0x0,fs_1[_0x3ce468(0x131)])(_0x3fdc76,{'encoding':_0x3ce468(0x13c)});}}return'';}};__decorate([(0x0,core_3[a12_0x2a87d1(0x120)])(),__metadata(a12_0x2a87d1(0x158),Object)],ApitestStaticController['prototype'],a12_0x2a87d1(0x130),void 0x0),__decorate([(0x0,core_3[a12_0x2a87d1(0x120)])(),__metadata('design:type',core_1[a12_0x2a87d1(0x132)])],ApitestStaticController[a12_0x2a87d1(0x155)],'Environment',void 0x0),__decorate([(0x0,core_3[a12_0x2a87d1(0x120)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a12_0x2a87d1(0x155)],a12_0x2a87d1(0x16c),void 0x0),__decorate([(0x0,core_3[a12_0x2a87d1(0x127)])(a12_0x2a87d1(0x150)),__metadata(a12_0x2a87d1(0x158),Boolean)],ApitestStaticController[a12_0x2a87d1(0x155)],a12_0x2a87d1(0x150),void 0x0),__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata(a12_0x2a87d1(0x158),Object)],ApitestStaticController[a12_0x2a87d1(0x155)],a12_0x2a87d1(0x15e),void 0x0),__decorate([(0x0,core_2[a12_0x2a87d1(0x14e)])('/apitest'),__metadata(a12_0x2a87d1(0x158),Function),__metadata('design:paramtypes',[]),__metadata(a12_0x2a87d1(0x159),Promise)],ApitestStaticController[a12_0x2a87d1(0x155)],a12_0x2a87d1(0x12c),null),__decorate([(0x0,core_2[a12_0x2a87d1(0x14e)])(a12_0x2a87d1(0x128)),__param(0x0,(0x0,core_2[a12_0x2a87d1(0x143)])(a12_0x2a87d1(0x126))),__metadata(a12_0x2a87d1(0x158),Function),__metadata(a12_0x2a87d1(0x122),[String]),__metadata(a12_0x2a87d1(0x159),Promise)],ApitestStaticController[a12_0x2a87d1(0x155)],a12_0x2a87d1(0x145),null),__decorate([(0x0,core_2[a12_0x2a87d1(0x14e)])(a12_0x2a87d1(0x174)),__metadata('design:type',Function),__metadata(a12_0x2a87d1(0x122),[]),__metadata(a12_0x2a87d1(0x159),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a12_0x2a87d1(0x16e)])(core_3[a12_0x2a87d1(0x123)][a12_0x2a87d1(0x16f)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x64bab=a13_0x42e0;(function(_0x4aa3d2,_0x1fbe0c){const _0x479057=a13_0x42e0,_0x33ea68=_0x4aa3d2();while(!![]){try{const _0x481ac2=parseInt(_0x479057(0x1f7))/0x1*(-parseInt(_0x479057(0x1ff))/0x2)+-parseInt(_0x479057(0x1fd))/0x3+parseInt(_0x479057(0x206))/0x4*(-parseInt(_0x479057(0x20b))/0x5)+parseInt(_0x479057(0x1f2))/0x6+parseInt(_0x479057(0x1f6))/0x7+-parseInt(_0x479057(0x1f5))/0x8+-parseInt(_0x479057(0x20d))/0x9*(-parseInt(_0x479057(0x201))/0xa);if(_0x481ac2===_0x1fbe0c)break;else _0x33ea68['push'](_0x33ea68['shift']());}catch(_0x133282){_0x33ea68['push'](_0x33ea68['shift']());}}}(a13_0x4d7f,0x1de00));const a13_0x20d48b=(function(){let _0xbbe70f=!![];return function(_0x3b5994,_0x211e1d){const _0x4d6066=_0xbbe70f?function(){const _0x4f1dab=a13_0x42e0;if(_0x211e1d){const _0x4b7616=_0x211e1d[_0x4f1dab(0x1ec)](_0x3b5994,arguments);return _0x211e1d=null,_0x4b7616;}}:function(){};return _0xbbe70f=![],_0x4d6066;};}()),a13_0x27d080=a13_0x20d48b(this,function(){const _0x26f992=a13_0x42e0;return a13_0x27d080[_0x26f992(0x1e4)]()['search'](_0x26f992(0x208))[_0x26f992(0x1e4)]()[_0x26f992(0x21b)](a13_0x27d080)[_0x26f992(0x213)](_0x26f992(0x208));});a13_0x27d080();'use strict';var __decorate=this&&this[a13_0x64bab(0x20e)]||function(_0x4bdce3,_0x57bf4c,_0x6bf131,_0x46c0e1){const _0x246512=a13_0x64bab;var _0x267acb=arguments[_0x246512(0x202)],_0x5c5515=_0x267acb<0x3?_0x57bf4c:_0x46c0e1===null?_0x46c0e1=Object[_0x246512(0x1da)](_0x57bf4c,_0x6bf131):_0x46c0e1,_0x4ba801;if(typeof Reflect==='object'&&typeof Reflect[_0x246512(0x216)]===_0x246512(0x21d))_0x5c5515=Reflect['decorate'](_0x4bdce3,_0x57bf4c,_0x6bf131,_0x46c0e1);else{for(var _0x190443=_0x4bdce3[_0x246512(0x202)]-0x1;_0x190443>=0x0;_0x190443--)if(_0x4ba801=_0x4bdce3[_0x190443])_0x5c5515=(_0x267acb<0x3?_0x4ba801(_0x5c5515):_0x267acb>0x3?_0x4ba801(_0x57bf4c,_0x6bf131,_0x5c5515):_0x4ba801(_0x57bf4c,_0x6bf131))||_0x5c5515;}return _0x267acb>0x3&&_0x5c5515&&Object[_0x246512(0x210)](_0x57bf4c,_0x6bf131,_0x5c5515),_0x5c5515;},__metadata=this&&this[a13_0x64bab(0x1db)]||function(_0xd41fc8,_0x60e390){const _0x1f52bf=a13_0x64bab;if(typeof Reflect===_0x1f52bf(0x1e0)&&typeof Reflect[_0x1f52bf(0x1e9)]===_0x1f52bf(0x21d))return Reflect[_0x1f52bf(0x1e9)](_0xd41fc8,_0x60e390);};function a13_0x42e0(_0x25bd56,_0x1bffe9){const _0xf11052=a13_0x4d7f();return a13_0x42e0=function(_0x27d080,_0x20d48b){_0x27d080=_0x27d080-0x1da;let _0x4d7ffe=_0xf11052[_0x27d080];return _0x4d7ffe;},a13_0x42e0(_0x25bd56,_0x1bffe9);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a13_0x64bab(0x209)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x64bab(0x1dc)),koasend=require('koa-send'),core_1=require('@midwayjs/core');let ExcelService=class ExcelService{async[a13_0x64bab(0x20c)](_0x1256a6,_0x3f2f65,_0xdf9f14=[0x0]){const _0x4e0bd6=a13_0x64bab;var _0x4db184,_0x30aed2;const _0x51f038=new exceljs[(_0x4e0bd6(0x1f1))](),_0x468383=[];let _0x235fe4=_0x1256a6['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x235fe4===null||_0x235fe4===void 0x0?void 0x0:_0x235fe4[_0x4e0bd6(0x1e5)]('/'))&&(_0x235fe4=this[_0x4e0bd6(0x1fa)][_0x4e0bd6(0x214)]()+'/'+_0x235fe4);try{await _0x51f038[_0x4e0bd6(0x21e)][_0x4e0bd6(0x217)](_0x235fe4);}catch(_0x36564d){return console[_0x4e0bd6(0x1fb)](_0x4e0bd6(0x207)+_0x235fe4+_0x4e0bd6(0x1e1)),_0x468383;}for(const _0x3f5279 of _0xdf9f14){const _0x2082c9=lodash['isNumber'](_0x3f5279)?((_0x4db184=_0x51f038['worksheets'])===null||_0x4db184===void 0x0?void 0x0:_0x4db184[_0x3f5279])||undefined:_0x51f038[_0x4e0bd6(0x1e3)](_0x3f5279);if(_0x2082c9){var _0x53545a=0x1;const _0x419ca3=_0x2082c9['getRow'](0x1),_0x3dbd46=await new Promise(_0x3064fc=>{const _0x4872d3={};_0x419ca3['eachCell']((_0x359490,_0x4c67d8)=>{const _0x3b0344=a13_0x42e0;for(const _0x1888f5 of _0x3f2f65){if(_0x359490[_0x3b0344(0x218)]==_0x1888f5[_0x3b0344(0x204)])_0x53545a=0x2,_0x4872d3[_0x1888f5[_0x3b0344(0x1fe)]]={'header':_0x359490['col'],'handler':_0x1888f5[_0x3b0344(0x1e8)]};else{if(!_0x4872d3[_0x1888f5[_0x3b0344(0x1fe)]])try{const _0x523285=_0x419ca3&&_0x419ca3[_0x3b0344(0x1e2)](_0x1888f5['header']);_0x523285&&(_0x4872d3[_0x1888f5['key']]={'header':_0x523285[_0x3b0344(0x205)],'handler':_0x1888f5['handler']});}catch{}}}_0x419ca3[_0x3b0344(0x1f3)]==_0x4c67d8&&_0x3064fc(_0x4872d3);});});for(const _0x382102 of _0x2082c9['findRows'](_0x53545a,_0x2082c9[_0x4e0bd6(0x21c)])){const _0x394005={};for(const _0xfe314a in _0x3dbd46){if(_0x3dbd46[_0xfe314a][_0x4e0bd6(0x204)]){const _0x46d6d2=_0x382102&&_0x382102[_0x4e0bd6(0x1e2)](_0x3dbd46[_0xfe314a]['header']);try{_0x46d6d2['toString']();}catch(_0xe3d75d){_0x46d6d2[_0x4e0bd6(0x1e4)]=()=>{const _0x4cf7cb=_0x4e0bd6;var _0x2f8c2b;return''+(((_0x2f8c2b=_0x46d6d2===null||_0x46d6d2===void 0x0?void 0x0:_0x46d6d2[_0x4cf7cb(0x1e6)])===null||_0x2f8c2b===void 0x0?void 0x0:_0x2f8c2b[_0x4cf7cb(0x218)])||'');};}typeof((_0x30aed2=_0x3dbd46[_0xfe314a])===null||_0x30aed2===void 0x0?void 0x0:_0x30aed2[_0x4e0bd6(0x1e8)])=='function'?_0x394005[_0xfe314a]=await _0x3dbd46[_0xfe314a][_0x4e0bd6(0x1e8)](lodash[_0x4e0bd6(0x20a)]({},_0xfe314a,(_0x46d6d2===null||_0x46d6d2===void 0x0?void 0x0:_0x46d6d2[_0x4e0bd6(0x1e4)]())||''),_0x46d6d2[_0x4e0bd6(0x1e6)]):_0x394005[_0xfe314a]=(_0x46d6d2===null||_0x46d6d2===void 0x0?void 0x0:_0x46d6d2['toString']())||'';}}Object[_0x4e0bd6(0x1ea)](_0x394005)[_0x4e0bd6(0x202)]>0x0&&Object[_0x4e0bd6(0x215)](_0x394005)['filter'](_0x3f3f32=>_0x3f3f32!=='')['length']>0x0&&_0x468383[_0x4e0bd6(0x1fc)](_0x394005);}}}return _0x468383;}async[a13_0x64bab(0x212)](_0x2a6002,_0x1eaae7,_0x3a29da,_0x56db5f){const _0x5bdbc8=a13_0x64bab;var _0x1105ab,_0x1f435e;const _0x12c450=new exceljs[(_0x5bdbc8(0x1f1))](),_0x16e941={},_0x5353be=[],_0x3d214d=_0x12c450[_0x5bdbc8(0x1de)]('Sheet\x201',{'views':[{'state':_0x5bdbc8(0x200),'xSplit':0x1}]});for(const _0x29ee02 in _0x1eaae7){_0x16e941[_0x1eaae7[_0x29ee02][_0x5bdbc8(0x1fe)]]=_0x1eaae7[_0x29ee02][_0x5bdbc8(0x204)],_0x5353be[_0x5bdbc8(0x1fc)]({'header':_0x1eaae7[_0x29ee02]['header'],'key':(_0x1105ab=_0x1eaae7[_0x29ee02])===null||_0x1105ab===void 0x0?void 0x0:_0x1105ab[_0x5bdbc8(0x1fe)]['replace'](/\./g,'_')});}_0x3d214d['columns']=_0x5353be;for(const _0x5a9d6 of _0x3a29da){const _0x5b857c={};for(const _0x50f70a in _0x1eaae7){typeof((_0x1f435e=_0x1eaae7[_0x50f70a])===null||_0x1f435e===void 0x0?void 0x0:_0x1f435e[_0x5bdbc8(0x1e8)])=='function'?_0x5b857c[_0x1eaae7[_0x50f70a]['key'][_0x5bdbc8(0x1ef)](/\./g,'_')]=await _0x1eaae7[_0x50f70a][_0x5bdbc8(0x1e8)](_0x5a9d6):_0x5b857c[_0x1eaae7[_0x50f70a][_0x5bdbc8(0x1fe)][_0x5bdbc8(0x1ef)](/\./g,'_')]=lodash[_0x5bdbc8(0x1e7)](_0x5a9d6,_0x1eaae7[_0x50f70a][_0x5bdbc8(0x1fe)],'');}_0x3d214d['addRow'](_0x5b857c);}let _0x106d6f='';const _0x82a02a=_0x2a6002+'-'+lodash['random'](0x186a0,0xf423f)+_0x5bdbc8(0x1f8);if(_0x56db5f&&_0x56db5f[_0x5bdbc8(0x1e5)]('/'))_0x106d6f=''+_0x56db5f;else _0x56db5f&&!_0x56db5f[_0x5bdbc8(0x1e5)]('/')&&!_0x56db5f[_0x5bdbc8(0x1e5)]('\x5c')?_0x106d6f=this['app'][_0x5bdbc8(0x214)]()+'/'+_0x56db5f:_0x106d6f=this[_0x5bdbc8(0x1fa)][_0x5bdbc8(0x214)]()+_0x5bdbc8(0x1df)+dayjs()[_0x5bdbc8(0x203)](_0x5bdbc8(0x1eb));return(_0x106d6f[_0x5bdbc8(0x1dd)]('/')||_0x106d6f[_0x5bdbc8(0x1dd)]('\x5c'))&&(_0x106d6f=_0x106d6f[_0x5bdbc8(0x1f9)](0x0,_0x106d6f[_0x5bdbc8(0x202)]-0x1)),_0x106d6f=_0x106d6f[_0x5bdbc8(0x1ef)](/(\\|\/)/g,'/')[_0x5bdbc8(0x1ef)](/\/{2,}/g,'/'),!fs['existsSync'](_0x106d6f)&&fs[_0x5bdbc8(0x21a)](_0x106d6f,{'recursive':!![]}),await _0x12c450[_0x5bdbc8(0x21e)][_0x5bdbc8(0x219)]((_0x106d6f+'/'+_0x82a02a)[_0x5bdbc8(0x1ef)](/(\\|\/)/g,'/')[_0x5bdbc8(0x1ef)](/\/{2,}/g,'/')),{'filename':_0x82a02a,'filepath':(_0x106d6f[_0x5bdbc8(0x1f9)]((''+this[_0x5bdbc8(0x1fa)][_0x5bdbc8(0x214)]())[_0x5bdbc8(0x202)])+'/'+_0x82a02a)[_0x5bdbc8(0x1ef)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0x1d5415,_0x312ba5){return await koasend(_0x1d5415,''+_0x312ba5);}};__decorate([(0x0,core_1[a13_0x64bab(0x20f)])(),__metadata(a13_0x64bab(0x1ee),Object)],ExcelService[a13_0x64bab(0x211)],a13_0x64bab(0x1fa),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x64bab(0x1f0)])(),(0x0,core_1['Scope'])(core_1[a13_0x64bab(0x1f4)][a13_0x64bab(0x1ed)])],ExcelService),exports['ExcelService']=ExcelService;function a13_0x4d7f(){const _0x3840a1=['writeFile','mkdirSync','constructor','rowCount','function','xlsx','getOwnPropertyDescriptor','__metadata','exceljs','endsWith','addWorksheet','/public/xlsx/','object','\x20is\x20read\x20fail','getCell','getWorksheet','toString','startsWith','model','get','handler','metadata','keys','YYYY/MM/DD','apply','Singleton','design:type','replace','Provide','Workbook','200958cSoXmg','cellCount','ScopeEnum','1800856VjaLvO','110180Rxezmd','11uafUCR','.xlsx','substring','app','log','push','172065tYMgQk','key','31022Tmquxh','frozen','2480riNPED','length','format','header','col','1748SOfigJ','Api\x20Excel\x20Error:\x20','(((.+)+)+)+$','ExcelService','set','2750WAoFNb','parse','27819dsVhmm','__decorate','App','defineProperty','prototype','export','search','getAppDir','values','decorate','readFile','value'];a13_0x4d7f=function(){return _0x3840a1;};return a13_0x4d7f();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x567b1f=a14_0x4290;(function(_0x3f0992,_0x25484d){var _0x12edfb=a14_0x4290,_0x4fa881=_0x3f0992();while(!![]){try{var _0x50a14d=parseInt(_0x12edfb(0x156))/0x1*(parseInt(_0x12edfb(0x167))/0x2)+parseInt(_0x12edfb(0x168))/0x3+-parseInt(_0x12edfb(0x169))/0x4*(parseInt(_0x12edfb(0x160))/0x5)+parseInt(_0x12edfb(0x15c))/0x6*(-parseInt(_0x12edfb(0x161))/0x7)+parseInt(_0x12edfb(0x158))/0x8+parseInt(_0x12edfb(0x165))/0x9*(-parseInt(_0x12edfb(0x164))/0xa)+parseInt(_0x12edfb(0x16c))/0xb*(parseInt(_0x12edfb(0x163))/0xc);if(_0x50a14d===_0x25484d)break;else _0x4fa881['push'](_0x4fa881['shift']());}catch(_0x494fde){_0x4fa881['push'](_0x4fa881['shift']());}}}(a14_0x162a,0x65250));var a14_0x1fcf8a=(function(){var _0x3a62a9=!![];return function(_0xa36bfe,_0x1bb450){var _0x5b8584=_0x3a62a9?function(){var _0x1e9f6c=a14_0x4290;if(_0x1bb450){var _0x39c073=_0x1bb450[_0x1e9f6c(0x159)](_0xa36bfe,arguments);return _0x1bb450=null,_0x39c073;}}:function(){};return _0x3a62a9=![],_0x5b8584;};}()),a14_0x5e13e3=a14_0x1fcf8a(this,function(){var _0x136926=a14_0x4290;return a14_0x5e13e3['toString']()[_0x136926(0x15f)](_0x136926(0x16b))[_0x136926(0x16a)]()[_0x136926(0x157)](a14_0x5e13e3)[_0x136926(0x15f)](_0x136926(0x16b));});a14_0x5e13e3();'use strict';function a14_0x4290(_0x1dce6c,_0x2dec69){var _0x46ceb3=a14_0x162a();return a14_0x4290=function(_0x5e13e3,_0x1fcf8a){_0x5e13e3=_0x5e13e3-0x156;var _0x162a4b=_0x46ceb3[_0x5e13e3];return _0x162a4b;},a14_0x4290(_0x1dce6c,_0x2dec69);}Object['defineProperty'](exports,a14_0x567b1f(0x162),{'value':!![]}),exports[a14_0x567b1f(0x15d)]=exports[a14_0x567b1f(0x15a)]=exports[a14_0x567b1f(0x166)]=exports[a14_0x567b1f(0x15e)]=void 0x0,exports[a14_0x567b1f(0x15e)]=a14_0x567b1f(0x15b),exports[a14_0x567b1f(0x166)]='anncic-api:action:route',exports[a14_0x567b1f(0x15a)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a14_0x567b1f(0x15d)]=AppsConfigTmp;function a14_0x162a(){var _0xa9478=['anncic-api:action','834CoWTZX','AppsConfigTmp','ACTION_KEY','search','145rKuJsm','27426yrALnO','__esModule','26556SgykNp','17120RbXuSV','4167tPFZLG','ACTION_ROUTE_KEY','2SoEjcc','1151538zbMeBH','57248lisCEr','toString','(((.+)+)+)+$','6589ECrApB','7027oycJyl','constructor','3601072ypcrNv','apply','APPSCONFIG_KEY'];a14_0x162a=function(){return _0xa9478;};return a14_0x162a();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x28bf60=a15_0x51d5;function a15_0x51d5(_0x383afb,_0x4effe7){var _0x575797=a15_0x515d();return a15_0x51d5=function(_0x1f60cf,_0x175c80){_0x1f60cf=_0x1f60cf-0x1d9;var _0x515d77=_0x575797[_0x1f60cf];return _0x515d77;},a15_0x51d5(_0x383afb,_0x4effe7);}(function(_0x24a5d7,_0x453032){var _0x54d634=a15_0x51d5,_0x499780=_0x24a5d7();while(!![]){try{var _0x4c03a9=-parseInt(_0x54d634(0x1e9))/0x1+parseInt(_0x54d634(0x1d9))/0x2*(-parseInt(_0x54d634(0x1f7))/0x3)+-parseInt(_0x54d634(0x1ed))/0x4+parseInt(_0x54d634(0x1ea))/0x5+parseInt(_0x54d634(0x1df))/0x6*(parseInt(_0x54d634(0x1fd))/0x7)+parseInt(_0x54d634(0x1f0))/0x8*(-parseInt(_0x54d634(0x1dc))/0x9)+parseInt(_0x54d634(0x1ec))/0xa;if(_0x4c03a9===_0x453032)break;else _0x499780['push'](_0x499780['shift']());}catch(_0x59581a){_0x499780['push'](_0x499780['shift']());}}}(a15_0x515d,0x923d2));var a15_0x175c80=(function(){var _0x1520c5=!![];return function(_0x59ad58,_0x4ffd0f){var _0x3bddd3=_0x1520c5?function(){var _0xac0856=a15_0x51d5;if(_0x4ffd0f){var _0x66339a=_0x4ffd0f[_0xac0856(0x203)](_0x59ad58,arguments);return _0x4ffd0f=null,_0x66339a;}}:function(){};return _0x1520c5=![],_0x3bddd3;};}()),a15_0x1f60cf=a15_0x175c80(this,function(){var _0x28f6d7=a15_0x51d5;return a15_0x1f60cf[_0x28f6d7(0x1f2)]()[_0x28f6d7(0x1e0)](_0x28f6d7(0x1eb))['toString']()[_0x28f6d7(0x1ee)](a15_0x1f60cf)[_0x28f6d7(0x1e0)](_0x28f6d7(0x1eb));});a15_0x1f60cf();'use strict';function a15_0x515d(){var _0x569fcc=['string','defineProperty','integer','number','630115jUEmmu','4202245xKhMmA','(((.+)+)+)+$','13146670TrxoKM','3285628dUxDTO','constructor','是否倒序','8BcBEZR','Rule','toString','trim','length','__metadata','_page','693oRNNfG','min','排序方式','PageDTO','分页数量','@anncic-api/validator','8358oWxovG','prototype','object','function','1:是;0:否','design:type','apply','RuleType','8830nYKLXY','metadata','decorate','982683XrVgXw','__decorate','valid','5148EFawtC','search','_isreverse','_order','getOwnPropertyDescriptor','_size'];a15_0x515d=function(){return _0x569fcc;};return a15_0x515d();}var __decorate=this&&this[a15_0x28bf60(0x1dd)]||function(_0x34c843,_0x277a71,_0x4b5cef,_0x44c39c){var _0x1d2108=a15_0x28bf60,_0x302260=arguments['length'],_0x420c92=_0x302260<0x3?_0x277a71:_0x44c39c===null?_0x44c39c=Object[_0x1d2108(0x1e3)](_0x277a71,_0x4b5cef):_0x44c39c,_0x37cc45;if(typeof Reflect===_0x1d2108(0x1ff)&&typeof Reflect[_0x1d2108(0x1db)]===_0x1d2108(0x200))_0x420c92=Reflect['decorate'](_0x34c843,_0x277a71,_0x4b5cef,_0x44c39c);else{for(var _0x5cdb35=_0x34c843[_0x1d2108(0x1f4)]-0x1;_0x5cdb35>=0x0;_0x5cdb35--)if(_0x37cc45=_0x34c843[_0x5cdb35])_0x420c92=(_0x302260<0x3?_0x37cc45(_0x420c92):_0x302260>0x3?_0x37cc45(_0x277a71,_0x4b5cef,_0x420c92):_0x37cc45(_0x277a71,_0x4b5cef))||_0x420c92;}return _0x302260>0x3&&_0x420c92&&Object['defineProperty'](_0x277a71,_0x4b5cef,_0x420c92),_0x420c92;},__metadata=this&&this[a15_0x28bf60(0x1f5)]||function(_0x4b2016,_0x4914ee){var _0x126352=a15_0x28bf60;if(typeof Reflect===_0x126352(0x1ff)&&typeof Reflect[_0x126352(0x1da)]===_0x126352(0x200))return Reflect[_0x126352(0x1da)](_0x4b2016,_0x4914ee);};Object[a15_0x28bf60(0x1e6)](exports,'__esModule',{'value':!![]}),exports[a15_0x28bf60(0x1fa)]=void 0x0;const validator_1=require(a15_0x28bf60(0x1fc));class PageDTO{}__decorate([(0x0,validator_1[a15_0x28bf60(0x1f1)])('分页',validator_1[a15_0x28bf60(0x204)]['number']()[a15_0x28bf60(0x1e7)]()['min'](0x1),'第一页为1,第二页为2'),__metadata(a15_0x28bf60(0x202),Number)],PageDTO['prototype'],a15_0x28bf60(0x1f6),void 0x0),__decorate([(0x0,validator_1[a15_0x28bf60(0x1f1)])(a15_0x28bf60(0x1fb),validator_1[a15_0x28bf60(0x204)][a15_0x28bf60(0x1e8)]()['integer']()[a15_0x28bf60(0x1f8)](0x1)),__metadata('design:type',Number)],PageDTO[a15_0x28bf60(0x1fe)],a15_0x28bf60(0x1e4),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x28bf60(0x1f9),validator_1[a15_0x28bf60(0x204)][a15_0x28bf60(0x1e5)]()[a15_0x28bf60(0x1f3)]()),__metadata(a15_0x28bf60(0x202),String)],PageDTO[a15_0x28bf60(0x1fe)],a15_0x28bf60(0x1e2),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x28bf60(0x1ef),validator_1[a15_0x28bf60(0x204)]['number']()[a15_0x28bf60(0x1e7)]()[a15_0x28bf60(0x1de)](0x0,0x1),a15_0x28bf60(0x201)),__metadata(a15_0x28bf60(0x202),Number)],PageDTO['prototype'],a15_0x28bf60(0x1e1),void 0x0),exports['PageDTO']=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a16_0x115f(){var _0x16f5fb=['anncic-api:intercept','730320vBtojK','__esModule','INTERCEPT_KEY','553xLuWDO','50AiKXrq','search','toString','(((.+)+)+)+$','2dCMflr','681808EWgWEq','102792PyIAKM','constructor','606558qCODBI','14167836EENGOe','85wgsvaj','19460szNrYR','InterceptTargetTmp','9587105tMQKzx'];a16_0x115f=function(){return _0x16f5fb;};return a16_0x115f();}var a16_0x127580=a16_0x3800;function a16_0x3800(_0x39ae43,_0x6b692b){var _0x5dfbde=a16_0x115f();return a16_0x3800=function(_0x1839bf,_0xe40fff){_0x1839bf=_0x1839bf-0xd0;var _0x115f10=_0x5dfbde[_0x1839bf];return _0x115f10;},a16_0x3800(_0x39ae43,_0x6b692b);}(function(_0x1e877b,_0x12a1ab){var _0x45816c=a16_0x3800,_0x296c4f=_0x1e877b();while(!![]){try{var _0x23c168=parseInt(_0x45816c(0xd4))/0x1*(parseInt(_0x45816c(0xd3))/0x2)+parseInt(_0x45816c(0xde))/0x3+parseInt(_0x45816c(0xda))/0x4+parseInt(_0x45816c(0xd9))/0x5*(-parseInt(_0x45816c(0xd7))/0x6)+parseInt(_0x45816c(0xe1))/0x7*(-parseInt(_0x45816c(0xd5))/0x8)+-parseInt(_0x45816c(0xd8))/0x9+-parseInt(_0x45816c(0xe2))/0xa*(-parseInt(_0x45816c(0xdc))/0xb);if(_0x23c168===_0x12a1ab)break;else _0x296c4f['push'](_0x296c4f['shift']());}catch(_0x206f77){_0x296c4f['push'](_0x296c4f['shift']());}}}(a16_0x115f,0xef440));var a16_0xe40fff=(function(){var _0x5ef355=!![];return function(_0x39fbf2,_0x4152b2){var _0x33e4ba=_0x5ef355?function(){if(_0x4152b2){var _0x4e92f1=_0x4152b2['apply'](_0x39fbf2,arguments);return _0x4152b2=null,_0x4e92f1;}}:function(){};return _0x5ef355=![],_0x33e4ba;};}()),a16_0x1839bf=a16_0xe40fff(this,function(){var _0x7a2509=a16_0x3800;return a16_0x1839bf[_0x7a2509(0xd1)]()['search'](_0x7a2509(0xd2))[_0x7a2509(0xd1)]()[_0x7a2509(0xd6)](a16_0x1839bf)[_0x7a2509(0xd0)]('(((.+)+)+)+$');});a16_0x1839bf();'use strict';Object['defineProperty'](exports,a16_0x127580(0xdf),{'value':!![]}),exports[a16_0x127580(0xdb)]=exports[a16_0x127580(0xe0)]=void 0x0,exports['INTERCEPT_KEY']=a16_0x127580(0xdd);class InterceptTargetTmp{}exports[a16_0x127580(0xdb)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.1.
|
|
21
|
-
"@anncic-api/core": "^2.1.
|
|
22
|
-
"@anncic-api/event": "^2.1.
|
|
23
|
-
"@anncic-api/typeorm": "^2.1.
|
|
24
|
-
"@anncic-api/validator": "^2.1.
|
|
20
|
+
"@anncic-api/cache": "^2.1.8",
|
|
21
|
+
"@anncic-api/core": "^2.1.8",
|
|
22
|
+
"@anncic-api/event": "^2.1.8",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.8",
|
|
24
|
+
"@anncic-api/validator": "^2.1.8",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.1.
|
|
30
|
+
"anncic-apihelper": "^2.1.8",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e20719127061fb55499510e86a2915671e79ffab"
|
|
41
41
|
}
|