anncic-api 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x1b0431=a0_0x538e;function a0_0x538e(_0x30dc8d,_0x2a1a89){var _0x356d29=a0_0x2970();return a0_0x538e=function(_0x19266e,_0x181af1){_0x19266e=_0x19266e-0xeb;var _0x2970a8=_0x356d29[_0x19266e];return _0x2970a8;},a0_0x538e(_0x30dc8d,_0x2a1a89);}(function(_0x5093a0,_0x3cab0d){var _0x1decf6=a0_0x538e,_0x1b2032=_0x5093a0();while(!![]){try{var _0x2213f2=parseInt(_0x1decf6(0xfb))/0x1+-parseInt(_0x1decf6(0xfe))/0x2*(parseInt(_0x1decf6(0xfa))/0x3)+parseInt(_0x1decf6(0xf6))/0x4*(-parseInt(_0x1decf6(0x100))/0x5)+-parseInt(_0x1decf6(0xf3))/0x6+-parseInt(_0x1decf6(0xef))/0x7*(-parseInt(_0x1decf6(0xf0))/0x8)+parseInt(_0x1decf6(0x101))/0x9*(-parseInt(_0x1decf6(0xf5))/0xa)+parseInt(_0x1decf6(0xf2))/0xb;if(_0x2213f2===_0x3cab0d)break;else _0x1b2032['push'](_0x1b2032['shift']());}catch(_0x188b5b){_0x1b2032['push'](_0x1b2032['shift']());}}}(a0_0x2970,0x9648f));function a0_0x2970(){var _0xab84e7=['search','18377271qhuSeR','2474754wyxxRH','__esModule','694210kHCmJv','16wOLzWK','apply','dhauo1234420123gg3234901','name','270195FPxuVy','438254dMbCxL','json','text','20mVBzXW','20mb','339055kIvWhx','54GJGZng','(((.+)+)+)+$','default','xml','form','constructor','toString','defineProperty','appDir','21nRqXLH','1353416jyFbSr'];a0_0x2970=function(){return _0xab84e7;};return a0_0x2970();}var a0_0x181af1=(function(){var _0x32998c=!![];return function(_0x20f7b7,_0x2877fb){var _0x3107f9=_0x32998c?function(){var _0xf6df0e=a0_0x538e;if(_0x2877fb){var _0x26dfb0=_0x2877fb[_0xf6df0e(0xf7)](_0x20f7b7,arguments);return _0x2877fb=null,_0x26dfb0;}}:function(){};return _0x32998c=![],_0x3107f9;};}()),a0_0x19266e=a0_0x181af1(this,function(){var _0x1b8732=a0_0x538e;return a0_0x19266e['toString']()[_0x1b8732(0xf1)](_0x1b8732(0x102))[_0x1b8732(0xec)]()[_0x1b8732(0xeb)](a0_0x19266e)['search']('(((.+)+)+)+$');});a0_0x19266e();'use strict';Object[a0_0x1b0431(0xed)](exports,a0_0x1b0431(0xf4),{'value':!![]}),exports[a0_0x1b0431(0x103)]=_0x4697d7=>{var _0x4551ce=a0_0x1b0431;return{'apitest':!![],'keys':_0x4697d7[_0x4551ce(0xf9)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x4551ce(0xf8)}}},'bodyParser':{'enableTypes':[_0x4551ce(0xfc),_0x4551ce(0x105),_0x4551ce(0xfd),_0x4551ce(0x104)],'formLimit':'20mb','jsonLimit':_0x4551ce(0xff),'textLimit':_0x4551ce(0xff),'xmlLimit':_0x4551ce(0xff)},'upload':{'tmpdir':_0x4697d7[_0x4551ce(0xee)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x4fed7d=a1_0x5626;function a1_0x5a98(){var _0x3863bb=['2MddDXY','constructor','apply','__esModule','4042895zHdSOB','95932FdNtzU','search','2565tjkPiG','1202460FeqLPN','toString','11144980moIthS','2253176YNSneq','3435762eMcJqF','default','(((.+)+)+)+$','69256AxXUFU'];a1_0x5a98=function(){return _0x3863bb;};return a1_0x5a98();}function a1_0x5626(_0x2abff6,_0x401ddc){var _0x1e6db9=a1_0x5a98();return a1_0x5626=function(_0x3be259,_0x16ae35){_0x3be259=_0x3be259-0x94;var _0x5a9883=_0x1e6db9[_0x3be259];return _0x5a9883;},a1_0x5626(_0x2abff6,_0x401ddc);}(function(_0x246836,_0x1f3ff4){var _0x4457ab=a1_0x5626,_0x1e392c=_0x246836();while(!![]){try{var _0x3c9e32=-parseInt(_0x4457ab(0xa3))/0x1*(-parseInt(_0x4457ab(0x9e))/0x2)+parseInt(_0x4457ab(0x9a))/0x3+-parseInt(_0x4457ab(0x99))/0x4+parseInt(_0x4457ab(0xa2))/0x5+parseInt(_0x4457ab(0x96))/0x6+parseInt(_0x4457ab(0x98))/0x7+-parseInt(_0x4457ab(0x9d))/0x8*(parseInt(_0x4457ab(0x95))/0x9);if(_0x3c9e32===_0x1f3ff4)break;else _0x1e392c['push'](_0x1e392c['shift']());}catch(_0x4d0d4f){_0x1e392c['push'](_0x1e392c['shift']());}}}(a1_0x5a98,0xc6300));var a1_0x16ae35=(function(){var _0x4d7714=!![];return function(_0x30d235,_0x21aa7c){var _0x2d70fb=_0x4d7714?function(){var _0x257cb0=a1_0x5626;if(_0x21aa7c){var _0x1ef857=_0x21aa7c[_0x257cb0(0xa0)](_0x30d235,arguments);return _0x21aa7c=null,_0x1ef857;}}:function(){};return _0x4d7714=![],_0x2d70fb;};}()),a1_0x3be259=a1_0x16ae35(this,function(){var _0x7a720f=a1_0x5626;return a1_0x3be259[_0x7a720f(0x97)]()[_0x7a720f(0x94)](_0x7a720f(0x9c))[_0x7a720f(0x97)]()[_0x7a720f(0x9f)](a1_0x3be259)[_0x7a720f(0x94)](_0x7a720f(0x9c));});a1_0x3be259();'use strict';Object['defineProperty'](exports,a1_0x4fed7d(0xa1),{'value':!![]}),exports[a1_0x4fed7d(0x9b)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x93bca3=a2_0x1be0;(function(_0xb2c46d,_0x43f293){const _0x1673ec=a2_0x1be0,_0x14c5e7=_0xb2c46d();while(!![]){try{const _0x49f2eb=parseInt(_0x1673ec(0x12a))/0x1+parseInt(_0x1673ec(0x132))/0x2*(-parseInt(_0x1673ec(0x15f))/0x3)+-parseInt(_0x1673ec(0x156))/0x4*(parseInt(_0x1673ec(0x126))/0x5)+-parseInt(_0x1673ec(0x11c))/0x6+-parseInt(_0x1673ec(0x124))/0x7+parseInt(_0x1673ec(0x11a))/0x8+parseInt(_0x1673ec(0x11f))/0x9;if(_0x49f2eb===_0x43f293)break;else _0x14c5e7['push'](_0x14c5e7['shift']());}catch(_0x3f4110){_0x14c5e7['push'](_0x14c5e7['shift']());}}}(a2_0x2126,0xd78f2));const a2_0x60debb=(function(){let _0x363a50=!![];return function(_0x4c2355,_0x23d1de){const _0x153487=_0x363a50?function(){const _0x409367=a2_0x1be0;if(_0x23d1de){const _0x2e9a40=_0x23d1de[_0x409367(0x127)](_0x4c2355,arguments);return _0x23d1de=null,_0x2e9a40;}}:function(){};return _0x363a50=![],_0x153487;};}()),a2_0x436274=a2_0x60debb(this,function(){const _0x30dbea=a2_0x1be0;return a2_0x436274[_0x30dbea(0x10e)]()['search'](_0x30dbea(0x138))[_0x30dbea(0x10e)]()[_0x30dbea(0x165)](a2_0x436274)[_0x30dbea(0x169)]('(((.+)+)+)+$');});function a2_0x2126(){const _0x3baeb3=['2268456MdDTvk','function','undefined','8051085RWWgbg','defaultsDeep','isDirectory','method','loggerConfig','7604436ayGDMy','./config/config.default','1505BetkoN','apply','environment','device','1727585YZLDSj','/apps/','./config/config.production','metadata','decorate','isFunction','MidwayEnvironmentService','log','3158WWFrgK','ApiService','object','assign','forEach','dirs','(((.+)+)+)+$','./types/intercept','getAppDir','request','upload','@anncic-api/cache','_matchedRoute','design:type','anncic-apihelper','@anncic-api/validator','/runtime/apps-','input','key','anncic-api','@midwayjs/static-file','checksign','body','isNull','@midwayjs/i18n','get','REQUEST_OBJ_CTX_KEY','addObject','tmpdir','toLowerCase','keys','getOwnPropertyDescriptor','devices','args','anncicapi','@midwayjs/core','4364xzQOxK','@anncic-api/event','intercept','onReady','requestContext','attachment','getConfiguration','@midwayjs/cross-domain','prototype','168mJPyoQ','isArray','isDevelopmentEnvironment','headers','length','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','constructor','getBaseDir','./types/action','midwayLogger','search','/apps','Inject','isClass','mkdirSync','context','app','existsSync','filterConfig','statSync','dir','target','koa-send','__esModule','match','defineProperties','./exception/ApiError','handler','getAsync','__metadata','HEADERS_SIGNATURE','@anncic-api/core','MidwayConfigService','getClassMetadata','@anncic-api/typeorm','./service/ApiService','App','config','defineProperty','DEFAULT','hanlderApplications','-log','@midwayjs/upload','string','proceed','/runtime','Types','toString','query','handlerActionRoute','readdirSync','decorator','InterceptTargetTmp','apimit','checkConfigKeys','isString','staticFile','bodyXml','default','1136152vnGccN','application'];a2_0x2126=function(){return _0x3baeb3;};return a2_0x2126();}a2_0x436274();'use strict';var __decorate=this&&this['__decorate']||function(_0x311f35,_0x26a561,_0x19a289,_0xf7af82){const _0x36e23b=a2_0x1be0;var _0xf4d7cc=arguments[_0x36e23b(0x163)],_0x5c36bc=_0xf4d7cc<0x3?_0x26a561:_0xf7af82===null?_0xf7af82=Object[_0x36e23b(0x151)](_0x26a561,_0x19a289):_0xf7af82,_0x4fb35e;if(typeof Reflect===_0x36e23b(0x134)&&typeof Reflect[_0x36e23b(0x12e)]==='function')_0x5c36bc=Reflect[_0x36e23b(0x12e)](_0x311f35,_0x26a561,_0x19a289,_0xf7af82);else{for(var _0x591094=_0x311f35[_0x36e23b(0x163)]-0x1;_0x591094>=0x0;_0x591094--)if(_0x4fb35e=_0x311f35[_0x591094])_0x5c36bc=(_0xf4d7cc<0x3?_0x4fb35e(_0x5c36bc):_0xf4d7cc>0x3?_0x4fb35e(_0x26a561,_0x19a289,_0x5c36bc):_0x4fb35e(_0x26a561,_0x19a289))||_0x5c36bc;}return _0xf4d7cc>0x3&&_0x5c36bc&&Object[_0x36e23b(0x185)](_0x26a561,_0x19a289,_0x5c36bc),_0x5c36bc;},__metadata=this&&this[a2_0x93bca3(0x17c)]||function(_0x1af8e5,_0x3dc9eb){const _0x5381af=a2_0x93bca3;if(typeof Reflect==='object'&&typeof Reflect[_0x5381af(0x12d)]===_0x5381af(0x11d))return Reflect[_0x5381af(0x12d)](_0x1af8e5,_0x3dc9eb);};function a2_0x1be0(_0x3342ce,_0x2f532a){const _0x1a4c2a=a2_0x2126();return a2_0x1be0=function(_0x436274,_0x60debb){_0x436274=_0x436274-0x10c;let _0x21268e=_0x1a4c2a[_0x436274];return _0x21268e;},a2_0x1be0(_0x3342ce,_0x2f532a);}Object[a2_0x93bca3(0x185)](exports,a2_0x93bca3(0x176),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x93bca3(0x155)),core_2=require(a2_0x93bca3(0x155)),ApiError_1=require(a2_0x93bca3(0x179)),ApiService_1=require(a2_0x93bca3(0x182)),action_1=require(a2_0x93bca3(0x167)),intercept_1=require(a2_0x93bca3(0x139)),fs=require('fs'),koasend=require(a2_0x93bca3(0x175)),koa=require('@midwayjs/koa'),i18n=require(a2_0x93bca3(0x14a)),upload=require(a2_0x93bca3(0x189)),staticFile=require(a2_0x93bca3(0x146)),crossDomain=require(a2_0x93bca3(0x15d)),ConfigDefault=require(a2_0x93bca3(0x125)),ConfigProduction=require(a2_0x93bca3(0x12c)),anncic=require(a2_0x93bca3(0x17e)),anncicCache=require(a2_0x93bca3(0x13d)),anncicEvent=require(a2_0x93bca3(0x157)),anncicTypeorm=require(a2_0x93bca3(0x181)),anncicValidator=require(a2_0x93bca3(0x141)),anncicHelper=require(a2_0x93bca3(0x140));let CustomConfiguration=class CustomConfiguration{async[a2_0x93bca3(0x159)](){const _0x590da8=a2_0x93bca3;await this[_0x590da8(0x171)](),await this[_0x590da8(0x123)](),await this['checkConfigKeys'](),await this[_0x590da8(0x110)](),await this[_0x590da8(0x187)]();}async[a2_0x93bca3(0x115)](){}async[a2_0x93bca3(0x110)](){const _0x264bda=a2_0x93bca3,_0x31291a=(0x0,core_1[_0x264bda(0x180)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x264bda(0x113)])||{};this[_0x264bda(0x112)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0xb426b3=>{const _0x494006=_0xb426b3['metadata'];return{'before':async _0x8cc512=>{const _0x576e83=a2_0x1be0;var _0x111d03,_0x4242c6;const _0x3b89d5=(_0x111d03=_0x8cc512===null||_0x8cc512===void 0x0?void 0x0:_0x8cc512[_0x576e83(0x174)])===null||_0x111d03===void 0x0?void 0x0:_0x111d03[core_2[_0x576e83(0x14c)]];if(_0x3b89d5&&(_0x494006===null||_0x494006===void 0x0?void 0x0:_0x494006[_0x576e83(0x114)])){if(!this[_0x576e83(0x133)][_0x576e83(0x147)]((_0x4242c6=_0x3b89d5===null||_0x3b89d5===void 0x0?void 0x0:_0x3b89d5[_0x576e83(0x13b)])===null||_0x4242c6===void 0x0?void 0x0:_0x4242c6[_0x576e83(0x162)]))throw new AnnError(ApiError_1['ApiError'][_0x576e83(0x17d)]);}},'around':async _0x3b69d3=>{const _0x39c83=a2_0x1be0;var _0x95ff50,_0x118f53,_0x1701a3;const _0x1984c5=(_0x95ff50=_0x3b69d3===null||_0x3b69d3===void 0x0?void 0x0:_0x3b69d3['target'])===null||_0x95ff50===void 0x0?void 0x0:_0x95ff50[core_2[_0x39c83(0x14c)]];if(_0x1984c5&&(_0x494006===null||_0x494006===void 0x0?void 0x0:_0x494006[_0x39c83(0x114)])&&((_0x494006===null||_0x494006===void 0x0?void 0x0:_0x494006[_0x39c83(0x158)])||typeof(_0x494006===null||_0x494006===void 0x0?void 0x0:_0x494006[_0x39c83(0x158)])==_0x39c83(0x11e))){if(((_0x118f53=_0x1984c5[_0x39c83(0x162)])===null||_0x118f53===void 0x0?void 0x0:_0x118f53[_0x39c83(0x129)])&&((_0x1701a3=_0x31291a===null||_0x31291a===void 0x0?void 0x0:_0x31291a[_0x1984c5[_0x39c83(0x162)]['device']])===null||_0x1701a3===void 0x0?void 0x0:_0x1701a3[_0x39c83(0x163)])>0x0)for(const _0x306fe3 of _0x31291a[_0x1984c5[_0x39c83(0x162)][_0x39c83(0x129)]]||[]){if(core_1[_0x39c83(0x10d)][_0x39c83(0x16c)](_0x306fe3)){const _0x3eab5b=await _0x1984c5[_0x39c83(0x15a)][_0x39c83(0x17b)](_0x306fe3);typeof(_0x3eab5b===null||_0x3eab5b===void 0x0?void 0x0:_0x3eab5b[_0x39c83(0x177)])=='function'?await _0x3eab5b['match'](_0x1984c5,typeof(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5['method'])==_0x39c83(0x18a)&&(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)])?_0x1984c5['method'][_0x39c83(0x14f)]()+'@'+(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)]):undefined,_0x494006)&&await _0x3eab5b[_0x39c83(0x17a)](_0x1984c5,typeof(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5['method'])==_0x39c83(0x18a)&&(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)])?_0x1984c5['method']['toLowerCase']()+'@'+(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5['_matchedRoute']):undefined,_0x494006):await _0x3eab5b[_0x39c83(0x17a)](_0x1984c5,typeof(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x122)])=='string'&&(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)])?_0x1984c5['method']['toLowerCase']()+'@'+(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)]):undefined,_0x494006);}else core_1[_0x39c83(0x10d)][_0x39c83(0x12f)](_0x306fe3)&&await _0x306fe3(_0x1984c5,typeof(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x122)])=='string'&&(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)])?_0x1984c5['method'][_0x39c83(0x14f)]()+'@'+(_0x1984c5===null||_0x1984c5===void 0x0?void 0x0:_0x1984c5[_0x39c83(0x13e)]):undefined,_0x494006);}}return await _0x3b69d3[_0x39c83(0x18b)](..._0x3b69d3[_0x39c83(0x153)]);},'afterThrow':(_0x343d55,_0x2ba1eb)=>{throw _0x2ba1eb;}};});}async['hanlderApplications'](){const _0x6b387=a2_0x93bca3;this[_0x6b387(0x11b)]['getApplications'](['koa'])[_0x6b387(0x136)](_0x35400b=>{const _0x3b6e48=_0x6b387;(_0x35400b===null||_0x35400b===void 0x0?void 0x0:_0x35400b[_0x3b6e48(0x16e)])&&Object[_0x3b6e48(0x178)](_0x35400b['context'],{'ok':{'value':function(_0x13a951,_0x32f8a9,_0x2880c1=0x0){return{'code':_0x2880c1,'data':_0x13a951,'extra':_0x32f8a9};}},'input':{'value':function(_0x29d275,_0x1f31cf){const _0x53ffa9=_0x3b6e48;var _0x131254;const _0x22235d=lodash[_0x53ffa9(0x120)]({},this[_0x53ffa9(0x13b)]['body']||this['request'][((_0x131254=config===null||config===void 0x0?void 0x0:config[_0x53ffa9(0x118)])===null||_0x131254===void 0x0?void 0x0:_0x131254[_0x53ffa9(0x144)])||_0x53ffa9(0x148)]||{},this['request'][_0x53ffa9(0x10f)]||{});return _0x29d275?lodash[_0x53ffa9(0x14b)](_0x22235d,_0x29d275,_0x1f31cf):_0x22235d;}},'when':{'value':async function(_0x5d8df4,_0x757918){const _0x4720d9=_0x3b6e48,_0x2ab0aa=this[_0x4720d9(0x143)](_0x5d8df4,null);if(!lodash[_0x4720d9(0x149)](_0x2ab0aa))return await _0x757918(_0x2ab0aa);}},'only':{'value':function(_0x7253aa){const _0x4d67a5=_0x3b6e48,_0x8dc1e6={};for(let _0x334e6d=0x0;_0x334e6d<_0x7253aa['length'];_0x334e6d++){lodash[_0x4d67a5(0x160)](_0x7253aa[_0x334e6d])&&_0x7253aa[_0x334e6d][_0x4d67a5(0x163)]>0x0&&lodash[_0x4d67a5(0x116)](_0x7253aa[_0x334e6d][0x0])&&(_0x8dc1e6[_0x7253aa[_0x334e6d][0x0]]=this['input'](_0x7253aa[_0x334e6d][0x0],_0x7253aa[_0x334e6d][_0x4d67a5(0x163)]>0x1?_0x7253aa[_0x334e6d][0x1]:null));}return _0x8dc1e6;}},'koasend':{'value':function(_0x1089c9,_0x5e39c7){const _0x25f589=_0x3b6e48;if(!fs[_0x25f589(0x170)](this['app']['getAppDir']()+'/'+_0x1089c9))return'文件不存在';return this[_0x25f589(0x15b)](_0x5e39c7||_0x1089c9),koasend(this,_0x1089c9);}}});});}async[a2_0x93bca3(0x123)](){const _0x18f5c3=a2_0x93bca3;var _0x35b2d9,_0x5ed8bd;if(fs[_0x18f5c3(0x170)](this[_0x18f5c3(0x16f)][_0x18f5c3(0x166)]()+_0x18f5c3(0x16a))&&fs[_0x18f5c3(0x172)](this[_0x18f5c3(0x16f)][_0x18f5c3(0x166)]()+'/apps')[_0x18f5c3(0x121)]()){const _0x1da7a1=this[_0x18f5c3(0x184)][_0x18f5c3(0x15c)](),_0xd606e3=((_0x35b2d9=_0x1da7a1===null||_0x1da7a1===void 0x0?void 0x0:_0x1da7a1[_0x18f5c3(0x168)])===null||_0x35b2d9===void 0x0?void 0x0:_0x35b2d9['clients'])||{};for(const _0x305374 of fs[_0x18f5c3(0x111)](this[_0x18f5c3(0x16f)][_0x18f5c3(0x166)]()+_0x18f5c3(0x16a))){if(!fs[_0x18f5c3(0x172)](this['app'][_0x18f5c3(0x166)]()+_0x18f5c3(0x12b)+_0x305374)[_0x18f5c3(0x121)]())continue;if(_0xd606e3===null||_0xd606e3===void 0x0?void 0x0:_0xd606e3[_0x305374])continue;_0xd606e3[_0x305374]=Object[_0x18f5c3(0x135)]({},((_0x5ed8bd=_0x1da7a1===null||_0x1da7a1===void 0x0?void 0x0:_0x1da7a1[_0x18f5c3(0x168)])===null||_0x5ed8bd===void 0x0?void 0x0:_0x5ed8bd[_0x18f5c3(0x119)])||{'maxSize':'1m','dir':this[_0x18f5c3(0x16f)]['getAppDir']()+_0x18f5c3(0x10c)},{'enableJSON':!![],'enableConsole':this[_0x18f5c3(0x128)][_0x18f5c3(0x161)](),'fileLogName':_0x305374+'.log','dir':this[_0x18f5c3(0x16f)][_0x18f5c3(0x13a)]()+_0x18f5c3(0x142)+_0x305374+_0x18f5c3(0x188)});}Object[_0x18f5c3(0x150)](_0xd606e3)['length']>0x0&&(!_0x1da7a1['midwayLogger']&&(_0x1da7a1[_0x18f5c3(0x168)]={'default':{'maxSize':'1m','dir':this[_0x18f5c3(0x16f)][_0x18f5c3(0x13a)]()+'/runtime'}}),_0x1da7a1[_0x18f5c3(0x168)]['clients']=_0xd606e3),this['config'][_0x18f5c3(0x14d)](_0x1da7a1);}}async[a2_0x93bca3(0x171)](){const _0x4e68c7=a2_0x93bca3;var _0x3cd8c8,_0x5515c0,_0x5414b1,_0xcd5a26,_0x14f483,_0x2fc0c4;const _0x30d7fc=this[_0x4e68c7(0x184)]['getConfiguration']();((_0x5515c0=(_0x3cd8c8=_0x30d7fc===null||_0x30d7fc===void 0x0?void 0x0:_0x30d7fc[_0x4e68c7(0x154)])===null||_0x3cd8c8===void 0x0?void 0x0:_0x3cd8c8['devices'])===null||_0x5515c0===void 0x0?void 0x0:_0x5515c0['DEFAULT'])&&Object[_0x4e68c7(0x150)](_0x30d7fc[_0x4e68c7(0x154)][_0x4e68c7(0x152)])['length']>0x1&&delete _0x30d7fc['anncicapi']['devices'][_0x4e68c7(0x186)];if((_0x5414b1=_0x30d7fc===null||_0x30d7fc===void 0x0?void 0x0:_0x30d7fc[_0x4e68c7(0x117)])===null||_0x5414b1===void 0x0?void 0x0:_0x5414b1[_0x4e68c7(0x137)])for(const _0x2f626b in _0x30d7fc[_0x4e68c7(0x117)][_0x4e68c7(0x137)]){((_0xcd5a26=_0x30d7fc[_0x4e68c7(0x117)][_0x4e68c7(0x137)][_0x2f626b])===null||_0xcd5a26===void 0x0?void 0x0:_0xcd5a26['dir'])&&typeof((_0x14f483=_0x30d7fc[_0x4e68c7(0x117)][_0x4e68c7(0x137)][_0x2f626b])===null||_0x14f483===void 0x0?void 0x0:_0x14f483[_0x4e68c7(0x173)])=='string'&&!fs['existsSync'](_0x30d7fc['staticFile'][_0x4e68c7(0x137)][_0x2f626b][_0x4e68c7(0x173)])&&(fs[_0x4e68c7(0x16d)](_0x30d7fc[_0x4e68c7(0x117)][_0x4e68c7(0x137)][_0x2f626b][_0x4e68c7(0x173)],{'recursive':!![]}),console[_0x4e68c7(0x131)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x30d7fc[_0x4e68c7(0x117)][_0x4e68c7(0x137)][_0x2f626b][_0x4e68c7(0x173)]));}((_0x2fc0c4=_0x30d7fc===null||_0x30d7fc===void 0x0?void 0x0:_0x30d7fc['upload'])===null||_0x2fc0c4===void 0x0?void 0x0:_0x2fc0c4['tmpdir'])&&!fs[_0x4e68c7(0x170)](_0x30d7fc['upload'][_0x4e68c7(0x14e)])&&(fs[_0x4e68c7(0x16d)](_0x30d7fc[_0x4e68c7(0x13c)][_0x4e68c7(0x14e)],{'recursive':!![]}),console[_0x4e68c7(0x131)](_0x4e68c7(0x164)+_0x30d7fc[_0x4e68c7(0x13c)][_0x4e68c7(0x14e)])),this['config'][_0x4e68c7(0x14d)](_0x30d7fc);}};__decorate([(0x0,core_1[a2_0x93bca3(0x183)])(),__metadata(a2_0x93bca3(0x13f),Object)],CustomConfiguration[a2_0x93bca3(0x15e)],a2_0x93bca3(0x16f),void 0x0),__decorate([(0x0,core_1[a2_0x93bca3(0x16b)])(),__metadata(a2_0x93bca3(0x13f),core_2[a2_0x93bca3(0x17f)])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0x93bca3(0x16b)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x93bca3(0x112),void 0x0),__decorate([(0x0,core_1[a2_0x93bca3(0x16b)])(),__metadata(a2_0x93bca3(0x13f),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x93bca3(0x16b)])(),__metadata(a2_0x93bca3(0x13f),core_2[a2_0x93bca3(0x130)])],CustomConfiguration['prototype'],a2_0x93bca3(0x128),void 0x0),__decorate([(0x0,core_1[a2_0x93bca3(0x16b)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x93bca3(0x15e)],a2_0x93bca3(0x133),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x93bca3(0x145),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
function a2_0x2c76(){const _0x1e21b9=['isDirectory','checkConfigKeys','length','4hNOrOS','constructor','REQUEST_OBJ_CTX_KEY','prototype','onReady','DEFAULT','getAppDir','InterceptTargetTmp','tmpdir','log','Anncic-api\x20static-file\x20:\x20mkdir\x20','device','upload','__esModule','2457133UWYPKN','koa-send','decorate','function','undefined','isString','getBaseDir','__metadata','/runtime/apps-','isDevelopmentEnvironment','application','keys','3768429fOUAZR','addObject','handlerActionRoute','metadata','design:type','@midwayjs/koa','hanlderApplications','./types/action','3156490Pnlzik','decorator','836930THEqCq','/runtime','@anncic-api/validator','getClassMetadata','9109280BkPDqH','MidwayApplicationManager','getOwnPropertyDescriptor','anncic-api','CustomConfiguration','INTERCEPT_KEY','getApplications','input','filterConfig','(((.+)+)+)+$','match','MidwayDecoratorService','request','getAsync','1731664ZdGOnZ','bodyXml','dir','mkdirSync','dirs','object','@anncic-api/typeorm','target','./types/intercept','defineProperty','./service/ApiService','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','staticFile','Inject','config','isClass','handler','ApiError','@midwayjs/static-file','isArray','query','midwayLogger','@anncic-api/event','_matchedRoute','ACTION_ROUTE_KEY','readdirSync','MidwayConfigService','body','./config/config.default','existsSync','./exception/ApiError','anncicapi','getConfiguration','string','@anncic-api/cache','intercept','statSync','HEADERS_SIGNATURE','requestContext','apimit','proceed','search','App','devices','checksign','app','./config/config.production','koa','ApiService','clients','default','method','__decorate','isFunction','toLowerCase','@midwayjs/i18n','loggerConfig','5300886pxIaUU','-log','headers','assign','Types','@midwayjs/core','defaultsDeep','/apps'];a2_0x2c76=function(){return _0x1e21b9;};return a2_0x2c76();}const a2_0x78abb6=a2_0x1837;(function(_0x495824,_0x3984d9){const _0x5a80e7=a2_0x1837,_0x3a1332=_0x495824();while(!![]){try{const _0x24c21a=parseInt(_0x5a80e7(0x17d))/0x1+-parseInt(_0x5a80e7(0x18f))/0x2+-parseInt(_0x5a80e7(0x173))/0x3*(-parseInt(_0x5a80e7(0x159))/0x4)+-parseInt(_0x5a80e7(0x17b))/0x5+parseInt(_0x5a80e7(0x14e))/0x6+parseInt(_0x5a80e7(0x167))/0x7+-parseInt(_0x5a80e7(0x181))/0x8;if(_0x24c21a===_0x3984d9)break;else _0x3a1332['push'](_0x3a1332['shift']());}catch(_0x40ca89){_0x3a1332['push'](_0x3a1332['shift']());}}}(a2_0x2c76,0xa8e47));const a2_0x331733=(function(){let _0x295182=!![];return function(_0xe50f7d,_0x4b4397){const _0x55b73a=_0x295182?function(){if(_0x4b4397){const _0x1b15d1=_0x4b4397['apply'](_0xe50f7d,arguments);return _0x4b4397=null,_0x1b15d1;}}:function(){};return _0x295182=![],_0x55b73a;};}()),a2_0x1d6a0d=a2_0x331733(this,function(){const _0x492d4a=a2_0x1837;return a2_0x1d6a0d['toString']()[_0x492d4a(0x13e)](_0x492d4a(0x18a))['toString']()[_0x492d4a(0x15a)](a2_0x1d6a0d)['search'](_0x492d4a(0x18a));});a2_0x1d6a0d();'use strict';var __decorate=this&&this[a2_0x78abb6(0x149)]||function(_0x35961d,_0x452c7a,_0x25cd15,_0x341c77){const _0xd5ec98=a2_0x78abb6;var _0x2bf04f=arguments[_0xd5ec98(0x158)],_0x277b72=_0x2bf04f<0x3?_0x452c7a:_0x341c77===null?_0x341c77=Object[_0xd5ec98(0x183)](_0x452c7a,_0x25cd15):_0x341c77,_0xdfb678;if(typeof Reflect===_0xd5ec98(0x194)&&typeof Reflect[_0xd5ec98(0x169)]===_0xd5ec98(0x16a))_0x277b72=Reflect[_0xd5ec98(0x169)](_0x35961d,_0x452c7a,_0x25cd15,_0x341c77);else{for(var _0x3c4f3a=_0x35961d[_0xd5ec98(0x158)]-0x1;_0x3c4f3a>=0x0;_0x3c4f3a--)if(_0xdfb678=_0x35961d[_0x3c4f3a])_0x277b72=(_0x2bf04f<0x3?_0xdfb678(_0x277b72):_0x2bf04f>0x3?_0xdfb678(_0x452c7a,_0x25cd15,_0x277b72):_0xdfb678(_0x452c7a,_0x25cd15))||_0x277b72;}return _0x2bf04f>0x3&&_0x277b72&&Object[_0xd5ec98(0x11e)](_0x452c7a,_0x25cd15,_0x277b72),_0x277b72;},__metadata=this&&this[a2_0x78abb6(0x16e)]||function(_0xdf728d,_0x5ea207){const _0x56224e=a2_0x78abb6;if(typeof Reflect===_0x56224e(0x194)&&typeof Reflect[_0x56224e(0x176)]===_0x56224e(0x16a))return Reflect[_0x56224e(0x176)](_0xdf728d,_0x5ea207);};Object[a2_0x78abb6(0x11e)](exports,a2_0x78abb6(0x166),{'value':!![]}),exports[a2_0x78abb6(0x185)]=void 0x0;const core_1=require(a2_0x78abb6(0x153)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x78abb6(0x133)),ApiService_1=require(a2_0x78abb6(0x11f)),action_1=require(a2_0x78abb6(0x17a)),intercept_1=require(a2_0x78abb6(0x197)),fs=require('fs'),koasend=require(a2_0x78abb6(0x168)),koa=require(a2_0x78abb6(0x178)),i18n=require(a2_0x78abb6(0x14c)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x78abb6(0x127)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x78abb6(0x131)),ConfigProduction=require(a2_0x78abb6(0x143)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x78abb6(0x137)),anncicEvent=require(a2_0x78abb6(0x12b)),anncicTypeorm=require(a2_0x78abb6(0x195)),anncicValidator=require(a2_0x78abb6(0x17f)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x78abb6(0x15d)](){const _0x7654d5=a2_0x78abb6;await this[_0x7654d5(0x189)](),await this[_0x7654d5(0x14d)](),await this[_0x7654d5(0x157)](),await this[_0x7654d5(0x175)](),await this['hanlderApplications']();}async[a2_0x78abb6(0x157)](){}async[a2_0x78abb6(0x175)](){const _0x53c7bc=a2_0x78abb6,_0xfee7f9=(0x0,core_1[_0x53c7bc(0x180)])(intercept_1[_0x53c7bc(0x186)],intercept_1[_0x53c7bc(0x160)])||{};this[_0x53c7bc(0x17c)]['registerMethodHandler'](action_1[_0x53c7bc(0x12d)],_0x2fa6d0=>{const _0x3a1a9d=_0x53c7bc,_0x1f2484=_0x2fa6d0[_0x3a1a9d(0x176)];return{'before':async _0x536c6d=>{const _0xce02b3=_0x3a1a9d;var _0xc59e5c,_0x5c84ae;const _0x5a3855=(_0xc59e5c=_0x536c6d===null||_0x536c6d===void 0x0?void 0x0:_0x536c6d[_0xce02b3(0x196)])===null||_0xc59e5c===void 0x0?void 0x0:_0xc59e5c[core_2[_0xce02b3(0x15b)]];if(_0x5a3855&&(_0x1f2484===null||_0x1f2484===void 0x0?void 0x0:_0x1f2484[_0xce02b3(0x13c)])){if(!this['ApiService'][_0xce02b3(0x141)]((_0x5c84ae=_0x5a3855===null||_0x5a3855===void 0x0?void 0x0:_0x5a3855[_0xce02b3(0x18d)])===null||_0x5c84ae===void 0x0?void 0x0:_0x5c84ae[_0xce02b3(0x150)]))throw new AnnError(ApiError_1[_0xce02b3(0x126)][_0xce02b3(0x13a)]);}},'around':async _0x2e941a=>{const _0x572d8f=_0x3a1a9d;var _0x4c0ac5,_0x58781b,_0x2326a1;const _0x414e57=(_0x4c0ac5=_0x2e941a===null||_0x2e941a===void 0x0?void 0x0:_0x2e941a[_0x572d8f(0x196)])===null||_0x4c0ac5===void 0x0?void 0x0:_0x4c0ac5[core_2[_0x572d8f(0x15b)]];if(_0x414e57&&(_0x1f2484===null||_0x1f2484===void 0x0?void 0x0:_0x1f2484[_0x572d8f(0x13c)])&&((_0x1f2484===null||_0x1f2484===void 0x0?void 0x0:_0x1f2484[_0x572d8f(0x138)])||typeof(_0x1f2484===null||_0x1f2484===void 0x0?void 0x0:_0x1f2484[_0x572d8f(0x138)])==_0x572d8f(0x16b))){if(((_0x58781b=_0x414e57[_0x572d8f(0x150)])===null||_0x58781b===void 0x0?void 0x0:_0x58781b[_0x572d8f(0x164)])&&((_0x2326a1=_0xfee7f9===null||_0xfee7f9===void 0x0?void 0x0:_0xfee7f9[_0x414e57['headers'][_0x572d8f(0x164)]])===null||_0x2326a1===void 0x0?void 0x0:_0x2326a1[_0x572d8f(0x158)])>0x0)for(const _0x47301c of _0xfee7f9[_0x414e57[_0x572d8f(0x150)][_0x572d8f(0x164)]]||[]){if(core_1[_0x572d8f(0x152)][_0x572d8f(0x124)](_0x47301c)){const _0x1d18e0=await _0x414e57[_0x572d8f(0x13b)][_0x572d8f(0x18e)](_0x47301c);typeof(_0x1d18e0===null||_0x1d18e0===void 0x0?void 0x0:_0x1d18e0[_0x572d8f(0x18b)])==_0x572d8f(0x16a)?await _0x1d18e0['match'](_0x414e57,typeof(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x148)])==_0x572d8f(0x136)&&(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x12c)])?_0x414e57[_0x572d8f(0x148)]['toLowerCase']()+'@'+(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x12c)]):undefined,_0x1f2484)&&await _0x1d18e0[_0x572d8f(0x125)](_0x414e57,typeof(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x148)])==_0x572d8f(0x136)&&(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x12c)])?_0x414e57[_0x572d8f(0x148)][_0x572d8f(0x14b)]()+'@'+(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57['_matchedRoute']):undefined,_0x1f2484):await _0x1d18e0[_0x572d8f(0x125)](_0x414e57,typeof(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57['method'])==_0x572d8f(0x136)&&(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57['_matchedRoute'])?_0x414e57[_0x572d8f(0x148)][_0x572d8f(0x14b)]()+'@'+(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x12c)]):undefined,_0x1f2484);}else core_1[_0x572d8f(0x152)][_0x572d8f(0x14a)](_0x47301c)&&await _0x47301c(_0x414e57,typeof(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x148)])==_0x572d8f(0x136)&&(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x12c)])?_0x414e57[_0x572d8f(0x148)][_0x572d8f(0x14b)]()+'@'+(_0x414e57===null||_0x414e57===void 0x0?void 0x0:_0x414e57[_0x572d8f(0x12c)]):undefined,_0x1f2484);}}return await _0x2e941a[_0x572d8f(0x13d)](..._0x2e941a['args']);},'afterThrow':(_0x46b428,_0x54242f)=>{throw _0x54242f;}};});}async[a2_0x78abb6(0x179)](){const _0x203558=a2_0x78abb6;this[_0x203558(0x171)][_0x203558(0x187)]([_0x203558(0x144)])['forEach'](_0x5c8016=>{(_0x5c8016===null||_0x5c8016===void 0x0?void 0x0:_0x5c8016['context'])&&Object['defineProperties'](_0x5c8016['context'],{'ok':{'value':function(_0x455cfe,_0x307d9d,_0x48f373=0x0){return{'code':_0x48f373,'data':_0x455cfe,'extra':_0x307d9d};}},'input':{'value':function(_0x4420bb,_0x505f66){const _0x4889a7=a2_0x1837;var _0x15b1de;const _0x321409=lodash[_0x4889a7(0x154)]({},this['request']['body']||this[_0x4889a7(0x18d)][((_0x15b1de=config===null||config===void 0x0?void 0x0:config[_0x4889a7(0x190)])===null||_0x15b1de===void 0x0?void 0x0:_0x15b1de['key'])||_0x4889a7(0x130)]||{},this[_0x4889a7(0x18d)][_0x4889a7(0x129)]||{});return _0x4420bb?lodash['get'](_0x321409,_0x4420bb,_0x505f66):_0x321409;}},'when':{'value':async function(_0x2e7263,_0x329dd3){const _0x3df96c=a2_0x1837,_0x26fbcf=this[_0x3df96c(0x188)](_0x2e7263,null);if(!lodash['isNull'](_0x26fbcf))return await _0x329dd3(_0x26fbcf);}},'only':{'value':function(_0x214c12){const _0x45858a=a2_0x1837,_0x1e7055={};for(let _0x41b8bb=0x0;_0x41b8bb<_0x214c12['length'];_0x41b8bb++){lodash[_0x45858a(0x128)](_0x214c12[_0x41b8bb])&&_0x214c12[_0x41b8bb][_0x45858a(0x158)]>0x0&&lodash[_0x45858a(0x16c)](_0x214c12[_0x41b8bb][0x0])&&(_0x1e7055[_0x214c12[_0x41b8bb][0x0]]=this['input'](_0x214c12[_0x41b8bb][0x0],_0x214c12[_0x41b8bb][_0x45858a(0x158)]>0x1?_0x214c12[_0x41b8bb][0x1]:null));}return _0x1e7055;}},'koasend':{'value':function(_0x1e6f1e,_0x163688){const _0x783e78=a2_0x1837;if(!fs[_0x783e78(0x132)](this[_0x783e78(0x142)][_0x783e78(0x15f)]()+'/'+_0x1e6f1e))return'文件不存在';return this['attachment'](_0x163688||_0x1e6f1e),koasend(this,_0x1e6f1e);}}});});}async[a2_0x78abb6(0x14d)](){const _0x5be1ae=a2_0x78abb6;var _0x3bfb1d,_0x46703b;if(fs[_0x5be1ae(0x132)](this[_0x5be1ae(0x142)][_0x5be1ae(0x16d)]()+_0x5be1ae(0x155))&&fs['statSync'](this[_0x5be1ae(0x142)]['getBaseDir']()+_0x5be1ae(0x155))['isDirectory']()){const _0x404f61=this[_0x5be1ae(0x123)][_0x5be1ae(0x135)](),_0x360fcc=((_0x3bfb1d=_0x404f61===null||_0x404f61===void 0x0?void 0x0:_0x404f61[_0x5be1ae(0x12a)])===null||_0x3bfb1d===void 0x0?void 0x0:_0x3bfb1d[_0x5be1ae(0x146)])||{};for(const _0x241a90 of fs[_0x5be1ae(0x12e)](this[_0x5be1ae(0x142)]['getBaseDir']()+_0x5be1ae(0x155))){if(!fs[_0x5be1ae(0x139)](this[_0x5be1ae(0x142)][_0x5be1ae(0x16d)]()+'/apps/'+_0x241a90)[_0x5be1ae(0x156)]())continue;if(_0x360fcc===null||_0x360fcc===void 0x0?void 0x0:_0x360fcc[_0x241a90])continue;_0x360fcc[_0x241a90]=Object[_0x5be1ae(0x151)]({},((_0x46703b=_0x404f61===null||_0x404f61===void 0x0?void 0x0:_0x404f61[_0x5be1ae(0x12a)])===null||_0x46703b===void 0x0?void 0x0:_0x46703b[_0x5be1ae(0x147)])||{'maxSize':'1m','dir':this[_0x5be1ae(0x142)][_0x5be1ae(0x15f)]()+_0x5be1ae(0x17e)},{'enableJSON':!![],'enableConsole':this['environment'][_0x5be1ae(0x170)](),'fileLogName':_0x241a90+'.log','dir':this['app'][_0x5be1ae(0x15f)]()+_0x5be1ae(0x16f)+_0x241a90+_0x5be1ae(0x14f)});}Object[_0x5be1ae(0x172)](_0x360fcc)['length']>0x0&&(!_0x404f61[_0x5be1ae(0x12a)]&&(_0x404f61['midwayLogger']={'default':{'maxSize':'1m','dir':this['app'][_0x5be1ae(0x15f)]()+_0x5be1ae(0x17e)}}),_0x404f61[_0x5be1ae(0x12a)][_0x5be1ae(0x146)]=_0x360fcc),this[_0x5be1ae(0x123)][_0x5be1ae(0x174)](_0x404f61);}}async[a2_0x78abb6(0x189)](){const _0x304428=a2_0x78abb6;var _0x523e9c,_0x5f1367,_0x3871f2,_0x3ae735,_0x35e046,_0xcfe6c7;const _0x3cbef0=this[_0x304428(0x123)]['getConfiguration']();((_0x5f1367=(_0x523e9c=_0x3cbef0===null||_0x3cbef0===void 0x0?void 0x0:_0x3cbef0[_0x304428(0x134)])===null||_0x523e9c===void 0x0?void 0x0:_0x523e9c[_0x304428(0x140)])===null||_0x5f1367===void 0x0?void 0x0:_0x5f1367[_0x304428(0x15e)])&&Object['keys'](_0x3cbef0[_0x304428(0x134)][_0x304428(0x140)])['length']>0x1&&delete _0x3cbef0[_0x304428(0x134)]['devices'][_0x304428(0x15e)];if((_0x3871f2=_0x3cbef0===null||_0x3cbef0===void 0x0?void 0x0:_0x3cbef0[_0x304428(0x121)])===null||_0x3871f2===void 0x0?void 0x0:_0x3871f2[_0x304428(0x193)])for(const _0x4745db in _0x3cbef0[_0x304428(0x121)][_0x304428(0x193)]){((_0x3ae735=_0x3cbef0[_0x304428(0x121)]['dirs'][_0x4745db])===null||_0x3ae735===void 0x0?void 0x0:_0x3ae735['dir'])&&typeof((_0x35e046=_0x3cbef0['staticFile'][_0x304428(0x193)][_0x4745db])===null||_0x35e046===void 0x0?void 0x0:_0x35e046[_0x304428(0x191)])==_0x304428(0x136)&&!fs[_0x304428(0x132)](_0x3cbef0[_0x304428(0x121)][_0x304428(0x193)][_0x4745db]['dir'])&&(fs[_0x304428(0x192)](_0x3cbef0[_0x304428(0x121)][_0x304428(0x193)][_0x4745db]['dir'],{'recursive':!![]}),console['log'](_0x304428(0x163)+_0x3cbef0[_0x304428(0x121)][_0x304428(0x193)][_0x4745db][_0x304428(0x191)]));}((_0xcfe6c7=_0x3cbef0===null||_0x3cbef0===void 0x0?void 0x0:_0x3cbef0['upload'])===null||_0xcfe6c7===void 0x0?void 0x0:_0xcfe6c7[_0x304428(0x161)])&&!fs[_0x304428(0x132)](_0x3cbef0[_0x304428(0x165)][_0x304428(0x161)])&&(fs[_0x304428(0x192)](_0x3cbef0[_0x304428(0x165)][_0x304428(0x161)],{'recursive':!![]}),console[_0x304428(0x162)](_0x304428(0x120)+_0x3cbef0[_0x304428(0x165)][_0x304428(0x161)])),this[_0x304428(0x123)][_0x304428(0x174)](_0x3cbef0);}};function a2_0x1837(_0x23e3e4,_0x487be0){const _0xafe33e=a2_0x2c76();return a2_0x1837=function(_0x1d6a0d,_0x331733){_0x1d6a0d=_0x1d6a0d-0x11e;let _0x2c76b1=_0xafe33e[_0x1d6a0d];return _0x2c76b1;},a2_0x1837(_0x23e3e4,_0x487be0);}__decorate([(0x0,core_1[a2_0x78abb6(0x13f)])(),__metadata(a2_0x78abb6(0x177),Object)],CustomConfiguration['prototype'],'app',void 0x0),__decorate([(0x0,core_1[a2_0x78abb6(0x122)])(),__metadata('design:type',core_2[a2_0x78abb6(0x12f)])],CustomConfiguration[a2_0x78abb6(0x15c)],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x78abb6(0x177),core_2[a2_0x78abb6(0x18c)])],CustomConfiguration[a2_0x78abb6(0x15c)],a2_0x78abb6(0x17c),void 0x0),__decorate([(0x0,core_1[a2_0x78abb6(0x122)])(),__metadata(a2_0x78abb6(0x177),core_2[a2_0x78abb6(0x182)])],CustomConfiguration[a2_0x78abb6(0x15c)],a2_0x78abb6(0x171),void 0x0),__decorate([(0x0,core_1[a2_0x78abb6(0x122)])(),__metadata(a2_0x78abb6(0x177),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x78abb6(0x15c)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x78abb6(0x122)])(),__metadata('design:type',ApiService_1[a2_0x78abb6(0x145)])],CustomConfiguration[a2_0x78abb6(0x15c)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x78abb6(0x184),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x78abb6(0x185)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x3170a2=a3_0x2d6b;function a3_0x5c8e(){const _0x2cf9c0=['-controller','toString','filepath','3pKApBJ','774130EMMPBL','push','constructor','1720MVsxng','580iYmKaf','\x20文件请放在apps/','split','endsWith','/apps/','search','route','substring','apply','middlewareIgnore','__esModule','968578XqKACy','42917YnXHtW','ACTION_KEY','indexOf','Action','@midwayjs/core','getClassMetadata','trim','7146340eZuSlx','match','toLowerCase','parseRoute','APPSCONFIG_KEY','\x20文件请放在app/controller/文件下','filter','splice','prefix','/controller/文件下','defineProperty','startsWith','middleware','saveClassMetadata','rootpath','basic/controller/','app/controller/','module','AppsConfigTmp','12mSsMxG','18851712MuXbwA','(((.+)+)+)+$','/config.','length','cwd','2064582EmUCRa','saveModule','/controller/','Controller','join','replace','tagName','-action','169902RSfdeD','apps/'];a3_0x5c8e=function(){return _0x2cf9c0;};return a3_0x5c8e();}(function(_0x122492,_0x499634){const _0x791d76=a3_0x2d6b,_0x3f6436=_0x122492();while(!![]){try{const _0x15690c=parseInt(_0x791d76(0x205))/0x1*(parseInt(_0x791d76(0x1d7))/0x2)+-parseInt(_0x791d76(0x1f8))/0x3+parseInt(_0x791d76(0x1df))/0x4+-parseInt(_0x791d76(0x206))/0x5*(-parseInt(_0x791d76(0x1f2))/0x6)+-parseInt(_0x791d76(0x1d8))/0x7*(parseInt(_0x791d76(0x209))/0x8)+-parseInt(_0x791d76(0x200))/0x9*(-parseInt(_0x791d76(0x20a))/0xa)+-parseInt(_0x791d76(0x1f3))/0xb;if(_0x15690c===_0x499634)break;else _0x3f6436['push'](_0x3f6436['shift']());}catch(_0x40a5fd){_0x3f6436['push'](_0x3f6436['shift']());}}}(a3_0x5c8e,0xe18e5));const a3_0x2b2036=(function(){let _0x422b2f=!![];return function(_0x1c039f,_0x50854f){const _0x269826=_0x422b2f?function(){const _0x3aee46=a3_0x2d6b;if(_0x50854f){const _0x5776ec=_0x50854f[_0x3aee46(0x1d4)](_0x1c039f,arguments);return _0x50854f=null,_0x5776ec;}}:function(){};return _0x422b2f=![],_0x269826;};}()),a3_0x25fd59=a3_0x2b2036(this,function(){const _0x1c4222=a3_0x2d6b;return a3_0x25fd59[_0x1c4222(0x203)]()[_0x1c4222(0x1d1)](_0x1c4222(0x1f4))[_0x1c4222(0x203)]()[_0x1c4222(0x208)](a3_0x25fd59)[_0x1c4222(0x1d1)]('(((.+)+)+)+$');});function a3_0x2d6b(_0x492960,_0xb8b538){const _0x12e603=a3_0x5c8e();return a3_0x2d6b=function(_0x25fd59,_0x2b2036){_0x25fd59=_0x25fd59-0x1cd;let _0x5c8e81=_0x12e603[_0x25fd59];return _0x5c8e81;},a3_0x2d6b(_0x492960,_0xb8b538);}a3_0x25fd59();'use strict';Object[a3_0x3170a2(0x1e9)](exports,a3_0x3170a2(0x1d6),{'value':!![]}),exports['parseRoute']=exports[a3_0x3170a2(0x1db)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x3170a2(0x1dc)),action_1=require('../types/action');function Action(_0x7ddd2b,_0x55bc53,_0x321920={'middleware':[],'sensitive':!![]}){return _0x46bc89=>{const _0x43f31d=a3_0x2d6b;var _0x2095e9;_0x321920[_0x43f31d(0x1fe)]=_0x55bc53;const _0x5a6bd0=parseRoute(_0x7ddd2b);if(_0x5a6bd0['module']){_0x321920[_0x43f31d(0x1e7)]=_0x321920[_0x43f31d(0x1e7)]?'/'+_0x5a6bd0[_0x43f31d(0x1f0)]+'/'+_0x321920[_0x43f31d(0x1e7)]:'/'+_0x5a6bd0[_0x43f31d(0x1d2)];_0x5a6bd0[_0x43f31d(0x1e7)]&&(_0x321920[_0x43f31d(0x1e7)]='/'+_0x5a6bd0[_0x43f31d(0x1e7)]+'/'+_0x321920[_0x43f31d(0x1e7)]);if(fs['existsSync'](_0x5a6bd0[_0x43f31d(0x1ed)]+_0x43f31d(0x1d0)+_0x5a6bd0['module']+'/config.'+(lodash[_0x43f31d(0x1cf)](_0x5a6bd0[_0x43f31d(0x204)],'ts')?'ts':'js'))){const _0x366c1f=include(_0x5a6bd0[_0x43f31d(0x1ed)]+'/apps/'+_0x5a6bd0[_0x43f31d(0x1f0)]+_0x43f31d(0x1f5)+(lodash[_0x43f31d(0x1cf)](_0x5a6bd0[_0x43f31d(0x204)],'ts')?'ts':'js'));if(_0x366c1f[_0x43f31d(0x1eb)]&&lodash['isArray'](_0x366c1f[_0x43f31d(0x1eb)])&&_0x366c1f[_0x43f31d(0x1eb)]['length']>0x0)for(let _0xd83350 in _0x366c1f['middleware']){if(((_0x2095e9=_0x366c1f===null||_0x366c1f===void 0x0?void 0x0:_0x366c1f[_0x43f31d(0x1d5)])===null||_0x2095e9===void 0x0?void 0x0:_0x2095e9[_0x43f31d(0x1f6)])>0x0&&_0x366c1f[_0x43f31d(0x1d5)][_0x43f31d(0x1da)](_0x366c1f['middleware'][_0xd83350])!=-0x1)continue;_0x321920[_0x43f31d(0x1eb)][_0x43f31d(0x207)](_0x366c1f['middleware'][_0xd83350]);}const _0x2784b6=(0x0,core_1[_0x43f31d(0x1dd)])(action_1[_0x43f31d(0x1e3)],action_1[_0x43f31d(0x1f1)])||{};_0x2784b6[''+_0x5a6bd0['module']]=_0x366c1f,(0x0,core_1[_0x43f31d(0x1ec)])(action_1['APPSCONFIG_KEY'],_0x2784b6,action_1['AppsConfigTmp']);}_0x321920[_0x43f31d(0x1e7)]=_0x321920['prefix'][_0x43f31d(0x1e1)]()[_0x43f31d(0x1fd)](/\/{2,}/g,'/'),(0x0,core_1[_0x43f31d(0x1f9)])(action_1[_0x43f31d(0x1d9)],_0x46bc89),(0x0,core_1['Controller'])(_0x321920[_0x43f31d(0x1e7)],_0x321920)(_0x46bc89),(0x0,core_1['saveClassMetadata'])(action_1[_0x43f31d(0x1d9)],{'prefix':_0x321920[_0x43f31d(0x1e7)],'pprefix':_0x5a6bd0[_0x43f31d(0x1e7)],'module':_0x5a6bd0[_0x43f31d(0x1f0)],'filepath':_0x5a6bd0['filepath'],'routerOptions':_0x321920},_0x46bc89);}else _0x321920[_0x43f31d(0x1e7)]=_0x321920[_0x43f31d(0x1e7)]?'/'+_0x321920[_0x43f31d(0x1e7)]:'/'+_0x5a6bd0[_0x43f31d(0x1d2)],_0x5a6bd0[_0x43f31d(0x1e7)]&&(_0x321920[_0x43f31d(0x1e7)]='/'+_0x5a6bd0[_0x43f31d(0x1e7)]+'/'+_0x321920['prefix']),_0x321920[_0x43f31d(0x1e7)]=_0x321920[_0x43f31d(0x1e7)]['toLowerCase']()[_0x43f31d(0x1fd)](/\/{2,}/g,'/'),(0x0,core_1[_0x43f31d(0x1f9)])(action_1['ACTION_KEY'],_0x46bc89),(0x0,core_1[_0x43f31d(0x1fb)])(_0x321920[_0x43f31d(0x1e7)],_0x321920)(_0x46bc89),(0x0,core_1[_0x43f31d(0x1ec)])(action_1[_0x43f31d(0x1d9)],{'prefix':_0x321920[_0x43f31d(0x1e7)],'module':_0x5a6bd0[_0x43f31d(0x1f0)],'pprefix':_0x5a6bd0[_0x43f31d(0x1e7)],'filepath':_0x5a6bd0[_0x43f31d(0x204)],'routerOptions':_0x321920},_0x46bc89);};}exports['Action']=Action;function parseRoute(_0x4addec){const _0x41c6d3=a3_0x3170a2;_0x4addec=_0x4addec[_0x41c6d3(0x1fd)](/(\\|\/)/g,'/');const _0xbd83ed=process[_0x41c6d3(0x1f7)]()[_0x41c6d3(0x1fd)](/(\\|\/)/g,'/'),_0x5599cc=_0x4addec['substring'](0x0,_0xbd83ed['length']+_0x4addec[_0x41c6d3(0x1d3)](_0xbd83ed[_0x41c6d3(0x1f6)]+0x1)[_0x41c6d3(0x1da)]('/')+0x1),_0x1a67a8=_0x4addec['substring'](_0x5599cc[_0x41c6d3(0x1f6)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x282824={'route':'','prefix':![],'module':![],'rootpath':_0x5599cc,'filepath':_0x1a67a8};if(_0x1a67a8[_0x41c6d3(0x1ea)](_0x41c6d3(0x1ef))||_0x1a67a8[_0x41c6d3(0x1ea)](_0x41c6d3(0x1ee))){const _0x1cd7de=_0x1a67a8[_0x41c6d3(0x1d3)]((_0x1a67a8[_0x41c6d3(0x1ea)](_0x41c6d3(0x1ef))?_0x41c6d3(0x1ef):_0x41c6d3(0x1ee))['length'])[_0x41c6d3(0x1ce)]('/')[_0x41c6d3(0x1e5)](_0x2f01bd=>_0x2f01bd&&_0x2f01bd[_0x41c6d3(0x1de)]());return _0x1cd7de[_0x41c6d3(0x1f6)]>0x1&&(_0x282824['prefix']=_0x1cd7de[0x0][_0x41c6d3(0x1e1)](),_0x1cd7de[_0x41c6d3(0x1e6)](0x0,0x1)),_0x282824['route']=('/'+_0x1cd7de[_0x41c6d3(0x1fc)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x41c6d3(0x1fc)]('-')[_0x41c6d3(0x1e1)]()[_0x41c6d3(0x1fd)](/\/\-/g,'/'),_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1cf)](_0x41c6d3(0x1ff))&&(_0x282824[_0x41c6d3(0x1d2)]=_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1d3)](0x0,_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1f6)]-0x7)),_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1cf)]('-controller')&&(_0x282824[_0x41c6d3(0x1d2)]=_0x282824['route'][_0x41c6d3(0x1d3)](0x0,_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1f6)]-0xb)),_0x282824;}else{if(_0x1a67a8['startsWith']('apps/')){const _0x100a20=_0x1a67a8[_0x41c6d3(0x1d3)](0x0,_0x1a67a8[_0x41c6d3(0x1da)](_0x41c6d3(0x1d0))+0x5),_0xb940a7=_0x1a67a8[_0x41c6d3(0x1d3)](_0x100a20['length']+0x1)[_0x41c6d3(0x1fd)](/(\\|\/)/g,'/')[_0x41c6d3(0x1ce)]('/')[0x0];if(_0x1a67a8[_0x41c6d3(0x1ea)](_0x41c6d3(0x201)+_0xb940a7+_0x41c6d3(0x1fa))){const _0x33485b=_0x1a67a8[_0x41c6d3(0x1d3)]((_0x100a20+'/'+_0xb940a7+'/controller/')['length'])['split']('/')[_0x41c6d3(0x1e5)](_0x592596=>_0x592596&&_0x592596['trim']());return _0x33485b['length']>0x1&&(_0x282824[_0x41c6d3(0x1e7)]=_0x33485b[0x0][_0x41c6d3(0x1e1)](),_0x33485b[_0x41c6d3(0x1e6)](0x0,0x1)),_0x282824[_0x41c6d3(0x1f0)]=_0xb940a7,_0x282824['route']=('/'+_0xb940a7+'/'+_0x33485b[_0x41c6d3(0x1fc)]('/'))[_0x41c6d3(0x1fd)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x41c6d3(0x1e0)](/[\/|A-Z]*[^A-Z]+/g)[_0x41c6d3(0x1fc)]('-')[_0x41c6d3(0x1e1)]()['replace'](/\/\-/g,'/'),_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1cf)](_0x41c6d3(0x1ff))&&(_0x282824['route']=_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1d3)](0x0,_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1f6)]-0x7)),_0x282824[_0x41c6d3(0x1d2)]['endsWith'](_0x41c6d3(0x202))&&(_0x282824[_0x41c6d3(0x1d2)]=_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1d3)](0x0,_0x282824[_0x41c6d3(0x1d2)][_0x41c6d3(0x1f6)]-0xb)),_0x282824;}throw new Error(_0x1a67a8+_0x41c6d3(0x1cd)+_0xb940a7+_0x41c6d3(0x1e8));}}throw new Error(_0x1a67a8+_0x41c6d3(0x1e4));}exports[a3_0x3170a2(0x1e2)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x5963b8=a4_0x2202;(function(_0x166c5f,_0x8599c4){const _0x1cb894=a4_0x2202,_0x392b77=_0x166c5f();while(!![]){try{const _0x291f39=parseInt(_0x1cb894(0xc8))/0x1+-parseInt(_0x1cb894(0xd5))/0x2*(parseInt(_0x1cb894(0xd3))/0x3)+parseInt(_0x1cb894(0xe0))/0x4+-parseInt(_0x1cb894(0xe7))/0x5+parseInt(_0x1cb894(0xd1))/0x6+parseInt(_0x1cb894(0xce))/0x7*(parseInt(_0x1cb894(0xec))/0x8)+parseInt(_0x1cb894(0xe9))/0x9*(-parseInt(_0x1cb894(0xe3))/0xa);if(_0x291f39===_0x8599c4)break;else _0x392b77['push'](_0x392b77['shift']());}catch(_0x1c05f6){_0x392b77['push'](_0x392b77['shift']());}}}(a4_0x1502,0x3b995));const a4_0x29b782=(function(){let _0x1194fc=!![];return function(_0x32bfc9,_0x6c5d15){const _0x48cf38=_0x1194fc?function(){if(_0x6c5d15){const _0x20e30d=_0x6c5d15['apply'](_0x32bfc9,arguments);return _0x6c5d15=null,_0x20e30d;}}:function(){};return _0x1194fc=![],_0x48cf38;};}()),a4_0x51e412=a4_0x29b782(this,function(){const _0x2da42f=a4_0x2202;return a4_0x51e412[_0x2da42f(0xd9)]()[_0x2da42f(0xcf)](_0x2da42f(0xc9))[_0x2da42f(0xd9)]()[_0x2da42f(0xd4)](a4_0x51e412)[_0x2da42f(0xcf)]('(((.+)+)+)+$');});function a4_0x1502(){const _0x2677e6=['constructor','3986lMbRoR','delete','apimit','middleware','toString','toLowerCase','RequestMapping','description','intercept','createCustomMethodDecorator','string','142572vAGweo','Validator','validate','40RUfigI','routerName','filter','get','1265640mRjQnh','defineProperty','598788VRMscc','del','ACTION_ROUTE_KEY','128Yjmpde','251625LYqMjL','(((.+)+)+)+$','@anncic-api/validator','@midwayjs/core','length','Api','166649jCBseV','search','undefined','1731084zRokXs','validationOptions','291JbHnQe'];a4_0x1502=function(){return _0x2677e6;};return a4_0x1502();}a4_0x51e412();function a4_0x2202(_0x5c385d,_0x3ca21f){const _0x1e5c9e=a4_0x1502();return a4_0x2202=function(_0x51e412,_0x29b782){_0x51e412=_0x51e412-0xc8;let _0x15027b=_0x1e5c9e[_0x51e412];return _0x15027b;},a4_0x2202(_0x5c385d,_0x3ca21f);}'use strict';Object[a4_0x5963b8(0xe8)](exports,'__esModule',{'value':!![]}),exports[a4_0x5963b8(0xcd)]=void 0x0;const validator_1=require(a4_0x5963b8(0xca)),core_1=require(a4_0x5963b8(0xcb)),action_1=require('../types/action');function Api(_0x3c14f4,_0x180aca=a4_0x5963b8(0xe6),_0x1afe2e='/',_0x58feb6={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x268d1,_0x12830b,_0x3baf74)=>{const _0x1a2f3c=a4_0x2202;var _0x272b97,_0x36cf0f,_0x3a4ed2;!_0x58feb6[_0x1a2f3c(0xd8)]&&(_0x58feb6[_0x1a2f3c(0xd8)]=[]);!((_0x272b97=_0x58feb6===null||_0x58feb6===void 0x0?void 0x0:_0x58feb6[_0x1a2f3c(0xe2)])===null||_0x272b97===void 0x0?void 0x0:_0x272b97[_0x1a2f3c(0xd2)])&&(_0x58feb6[_0x1a2f3c(0xe2)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1a2f3c(0xdf)}});typeof _0x58feb6[_0x1a2f3c(0xd7)]==_0x1a2f3c(0xd0)&&(_0x58feb6[_0x1a2f3c(0xd7)]=!![]);if(((_0x36cf0f=_0x58feb6===null||_0x58feb6===void 0x0?void 0x0:_0x58feb6[_0x1a2f3c(0xd8)])===null||_0x36cf0f===void 0x0?void 0x0:_0x36cf0f['length'])>0x0&&((_0x3a4ed2=_0x58feb6===null||_0x58feb6===void 0x0?void 0x0:_0x58feb6['middlewareIgnore'])===null||_0x3a4ed2===void 0x0?void 0x0:_0x3a4ed2[_0x1a2f3c(0xcc)])>0x0)for(let _0x1af0db in _0x58feb6[_0x1a2f3c(0xd8)]){_0x58feb6['middlewareIgnore']['indexOf'](_0x58feb6[_0x1a2f3c(0xd8)][_0x1af0db])!==-0x1&&(_0x58feb6[_0x1a2f3c(0xd8)][_0x1af0db]=null);}_0x58feb6[_0x1a2f3c(0xe4)]=_0x3c14f4,(0x0,validator_1[_0x1a2f3c(0xe1)])(_0x58feb6[_0x1a2f3c(0xe2)])(_0x268d1,_0x12830b,_0x3baf74),(0x0,core_1[_0x1a2f3c(0xdb)])(Object['assign'](_0x58feb6,{'path':_0x1afe2e,'requestMethod':(_0x180aca==_0x1a2f3c(0xea)?_0x1a2f3c(0xd6):_0x180aca)['toLowerCase']()}))(_0x268d1,_0x12830b,_0x3baf74),(0x0,core_1['attachClassMetadata'])(action_1[_0x1a2f3c(0xeb)],{'path':_0x1afe2e,'method':_0x12830b,'apimit':_0x58feb6[_0x1a2f3c(0xd7)],'intercept':_0x58feb6[_0x1a2f3c(0xdd)],'routerName':_0x58feb6['routerName'],'description':_0x58feb6[_0x1a2f3c(0xdc)],'middleware':(_0x58feb6[_0x1a2f3c(0xd8)]||[])[_0x1a2f3c(0xe5)](_0x543f00=>!!_0x543f00),'requestMethod':(_0x180aca==_0x1a2f3c(0xea)?_0x1a2f3c(0xd6):_0x180aca)[_0x1a2f3c(0xda)]()},_0x268d1),(0x0,core_1[_0x1a2f3c(0xde)])(action_1[_0x1a2f3c(0xeb)],{'path':_0x1afe2e,'method':_0x12830b,'apimit':_0x58feb6[_0x1a2f3c(0xd7)],'intercept':_0x58feb6[_0x1a2f3c(0xdd)],'routerName':_0x58feb6[_0x1a2f3c(0xe4)],'description':_0x58feb6[_0x1a2f3c(0xdc)],'middleware':(_0x58feb6['middleware']||[])[_0x1a2f3c(0xe5)](_0x241a05=>!!_0x241a05),'requestMethod':(_0x180aca==_0x1a2f3c(0xea)?_0x1a2f3c(0xd6):_0x180aca)['toLowerCase']()})(_0x268d1,_0x12830b,_0x3baf74);};}exports[a4_0x5963b8(0xcd)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x14315c=a5_0x3859;(function(_0xedffca,_0x4f68d3){const _0xa72388=a5_0x3859,_0x53de6d=_0xedffca();while(!![]){try{const _0x508df8=-parseInt(_0xa72388(0x145))/0x1*(parseInt(_0xa72388(0x158))/0x2)+-parseInt(_0xa72388(0x141))/0x3+-parseInt(_0xa72388(0x147))/0x4+parseInt(_0xa72388(0x154))/0x5*(-parseInt(_0xa72388(0x143))/0x6)+parseInt(_0xa72388(0x15c))/0x7*(-parseInt(_0xa72388(0x15b))/0x8)+parseInt(_0xa72388(0x13f))/0x9*(parseInt(_0xa72388(0x151))/0xa)+parseInt(_0xa72388(0x157))/0xb;if(_0x508df8===_0x4f68d3)break;else _0x53de6d['push'](_0x53de6d['shift']());}catch(_0x1c0cfd){_0x53de6d['push'](_0x53de6d['shift']());}}}(a5_0x108c,0xf3acc));const a5_0x2c1ddb=(function(){let _0x564dbd=!![];return function(_0x127a74,_0x288fb8){const _0x239606=_0x564dbd?function(){const _0x24727e=a5_0x3859;if(_0x288fb8){const _0x323acb=_0x288fb8[_0x24727e(0x14e)](_0x127a74,arguments);return _0x288fb8=null,_0x323acb;}}:function(){};return _0x564dbd=![],_0x239606;};}()),a5_0x3b2b57=a5_0x2c1ddb(this,function(){const _0x1d433b=a5_0x3859;return a5_0x3b2b57[_0x1d433b(0x14b)]()[_0x1d433b(0x146)](_0x1d433b(0x15a))['toString']()['constructor'](a5_0x3b2b57)[_0x1d433b(0x146)](_0x1d433b(0x15a));});a5_0x3b2b57();'use strict';Object[a5_0x14315c(0x15d)](exports,'__esModule',{'value':!![]}),exports[a5_0x14315c(0x14d)]=void 0x0;function a5_0x3859(_0x12f044,_0x28efb5){const _0x5ebbfa=a5_0x108c();return a5_0x3859=function(_0x3b2b57,_0x2c1ddb){_0x3b2b57=_0x3b2b57-0x13f;let _0x108ceb=_0x5ebbfa[_0x3b2b57];return _0x108ceb;},a5_0x3859(_0x12f044,_0x28efb5);}const core_1=require(a5_0x14315c(0x14a)),ApitestService_1=require(a5_0x14315c(0x142));function a5_0x108c(){const _0x42f958=['104saWNSO','988589kocGBZ','defineProperty','app','apitest','63ZCtEhD','isDevelopmentEnvironment','3745566mQtYdf','../service/ApitestService','12eWwhCh','RequestMapping','3322ilXDEM','search','5100292boQqYK','ApitestService','REQUEST_OBJ_CTX_KEY','@midwayjs/core','toString','/apitest','Apitest','apply','getApplicationContext','filepath','282760ZtQnpL','getAsync','get','3485090ccXXPl','value','apidoc','76841622EvtMvH','260CpbSnB','MidwayEnvironmentService','(((.+)+)+)+$'];a5_0x108c=function(){return _0x42f958;};return a5_0x108c();}function Apitest(_0x306119=a5_0x14315c(0x14c),_0x763a5b){return(_0x59821a,_0x137e65,_0x41b425)=>{const _0x22c959=a5_0x3859;return(0x0,core_1[_0x22c959(0x144)])({'path':_0x306119,'requestMethod':_0x22c959(0x153)})(_0x59821a,_0x137e65,_0x41b425),_0x41b425[_0x22c959(0x155)]=async function(..._0x517943){const _0x59ef44=_0x22c959;var _0x19fb27;const _0x4b2975=(_0x19fb27=this[core_1[_0x59ef44(0x149)]])===null||_0x19fb27===void 0x0?void 0x0:_0x19fb27[_0x59ef44(0x15e)];if(_0x4b2975&&_0x4b2975['getConfig'](_0x59ef44(0x15f))){const _0x290ef7=await _0x4b2975['getApplicationContext']()[_0x59ef44(0x152)](ApitestService_1[_0x59ef44(0x148)]),_0x567cc8=await _0x4b2975[_0x59ef44(0x14f)]()[_0x59ef44(0x152)](core_1[_0x59ef44(0x159)]);return _0x567cc8[_0x59ef44(0x140)]()&&(_0x763a5b[_0x59ef44(0x150)]=!![]),await _0x290ef7[_0x59ef44(0x156)](_0x763a5b);}return'';},_0x41b425;};}exports[a5_0x14315c(0x14d)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x1e1a00=a6_0x2900;(function(_0x2f8f01,_0xface0f){const _0x342e02=a6_0x2900,_0x190a2c=_0x2f8f01();while(!![]){try{const _0x17f9b5=parseInt(_0x342e02(0x173))/0x1*(parseInt(_0x342e02(0x16c))/0x2)+-parseInt(_0x342e02(0x169))/0x3+-parseInt(_0x342e02(0x174))/0x4+parseInt(_0x342e02(0x172))/0x5*(-parseInt(_0x342e02(0x16e))/0x6)+parseInt(_0x342e02(0x162))/0x7+parseInt(_0x342e02(0x166))/0x8*(parseInt(_0x342e02(0x175))/0x9)+parseInt(_0x342e02(0x160))/0xa;if(_0x17f9b5===_0xface0f)break;else _0x190a2c['push'](_0x190a2c['shift']());}catch(_0x2f6036){_0x190a2c['push'](_0x190a2c['shift']());}}}(a6_0x18d2,0x79ac0));const a6_0x72ac96=(function(){let _0x1645bc=!![];return function(_0x1f12cd,_0xae6f85){const _0x138dc5=_0x1645bc?function(){if(_0xae6f85){const _0x3b630f=_0xae6f85['apply'](_0x1f12cd,arguments);return _0xae6f85=null,_0x3b630f;}}:function(){};return _0x1645bc=![],_0x138dc5;};}()),a6_0x1fa0e9=a6_0x72ac96(this,function(){const _0x2189d3=a6_0x2900;return a6_0x1fa0e9[_0x2189d3(0x16f)]()[_0x2189d3(0x15d)](_0x2189d3(0x16b))[_0x2189d3(0x16f)]()['constructor'](a6_0x1fa0e9)[_0x2189d3(0x15d)]('(((.+)+)+)+$');});a6_0x1fa0e9();'use strict';function a6_0x18d2(){const _0x39461e=['saveClassMetadata','defineProperty','2837340UaussY','getClassMetadata','(((.+)+)+)+$','262SyOpAL','__esModule','516UbzCJp','toString','push','Singleton','44290EGynCq','2473VeUljU','978860EgJRwE','590067fWQWPT','includes','Provide','IIntercept','isArray','search','match','../types/intercept','9784800oUJSiM','INTERCEPT_KEY','2989105VaPOEx','InterceptTargetTmp','Scope','@midwayjs/core','88QCpvKz'];a6_0x18d2=function(){return _0x39461e;};return a6_0x18d2();}function a6_0x2900(_0x19365b,_0x468890){const _0x209c7e=a6_0x18d2();return a6_0x2900=function(_0x1fa0e9,_0x72ac96){_0x1fa0e9=_0x1fa0e9-0x15b;let _0x18d2db=_0x209c7e[_0x1fa0e9];return _0x18d2db;},a6_0x2900(_0x19365b,_0x468890);}Object[a6_0x1e1a00(0x168)](exports,a6_0x1e1a00(0x16d),{'value':!![]}),exports[a6_0x1e1a00(0x15b)]=exports['Intercept']=void 0x0;const core_1=require(a6_0x1e1a00(0x165)),intercept_1=require(a6_0x1e1a00(0x15f));function Intercept(_0xf402f6){return _0x1b1346=>{const _0x4f1abb=a6_0x2900,_0x14a201=(0x0,core_1[_0x4f1abb(0x16a)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x4f1abb(0x163)])||{};for(let _0x1893e3 of Array[_0x4f1abb(0x15c)](_0xf402f6)?_0xf402f6:[_0xf402f6]){_0x1893e3=_0x1893e3['toUpperCase']();!(_0x14a201===null||_0x14a201===void 0x0?void 0x0:_0x14a201[_0x1893e3])&&(_0x14a201[_0x1893e3]=[]);if(_0x14a201[_0x1893e3][_0x4f1abb(0x176)](_0x1b1346))continue;_0x14a201[_0x1893e3][_0x4f1abb(0x170)](_0x1b1346);}(0x0,core_1[_0x4f1abb(0x177)])()(_0x1b1346),(0x0,core_1[_0x4f1abb(0x164)])(core_1['ScopeEnum'][_0x4f1abb(0x171)])(_0x1b1346),(0x0,core_1[_0x4f1abb(0x167)])(intercept_1[_0x4f1abb(0x161)],_0x14a201,intercept_1[_0x4f1abb(0x163)]);};}exports['Intercept']=Intercept;class IIntercept{async[a6_0x1e1a00(0x15e)](_0x2a2ea6,_0x426130,_0x41ca2b){return!![];}}exports[a6_0x1e1a00(0x15b)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x5b64cf=a7_0x2b81;(function(_0x2a8012,_0x2ef018){var _0x449139=a7_0x2b81,_0x4cc61b=_0x2a8012();while(!![]){try{var _0x1e3488=-parseInt(_0x449139(0x169))/0x1*(parseInt(_0x449139(0x167))/0x2)+-parseInt(_0x449139(0x17d))/0x3*(-parseInt(_0x449139(0x170))/0x4)+parseInt(_0x449139(0x174))/0x5*(parseInt(_0x449139(0x16e))/0x6)+parseInt(_0x449139(0x179))/0x7+-parseInt(_0x449139(0x178))/0x8*(-parseInt(_0x449139(0x16c))/0x9)+-parseInt(_0x449139(0x17c))/0xa+-parseInt(_0x449139(0x17e))/0xb;if(_0x1e3488===_0x2ef018)break;else _0x4cc61b['push'](_0x4cc61b['shift']());}catch(_0x1c674f){_0x4cc61b['push'](_0x4cc61b['shift']());}}}(a7_0x2a69,0x9a603));function a7_0x2b81(_0x7e8361,_0x23f4ec){var _0x3f6d39=a7_0x2a69();return a7_0x2b81=function(_0xb10b98,_0x51aa75){_0xb10b98=_0xb10b98-0x166;var _0x2a693d=_0x3f6d39[_0xb10b98];return _0x2a693d;},a7_0x2b81(_0x7e8361,_0x23f4ec);}function a7_0x2a69(){var _0x44822b=['45320xJlqNq','7770511LjDyvG','验证失败,请重新登录','TIMEOUT','1985040JyoTxU','550833zHOAwp','35732521GCOZBC','请使用正确的设备','HEADERS_CHECKCODE','object','ApiError','__metadata','signature验证失败','HEADERS_DEVICE','decorate','getOwnPropertyDescriptor','HEADERS_SIGNATURE','登录超时,请重新登录','266WKWJgJ','TIMEOUT_LOGINTIME','3715qZctgT','search','请求超时,请重试','2007jItGMa','length','13206xbllLA','constructor','24bMldFP','design:type','defineProperty','HEADERS_LACK','2495kKzhvc','metadata','toString','function'];a7_0x2a69=function(){return _0x44822b;};return a7_0x2a69();}var a7_0x51aa75=(function(){var _0x3a5612=!![];return function(_0x4254d6,_0x21505b){var _0x1bdc7e=_0x3a5612?function(){if(_0x21505b){var _0x1bb60a=_0x21505b['apply'](_0x4254d6,arguments);return _0x21505b=null,_0x1bb60a;}}:function(){};return _0x3a5612=![],_0x1bdc7e;};}()),a7_0xb10b98=a7_0x51aa75(this,function(){var _0xb2a3f7=a7_0x2b81;return a7_0xb10b98[_0xb2a3f7(0x176)]()[_0xb2a3f7(0x16a)]('(((.+)+)+)+$')[_0xb2a3f7(0x176)]()[_0xb2a3f7(0x16f)](a7_0xb10b98)[_0xb2a3f7(0x16a)]('(((.+)+)+)+$');});a7_0xb10b98();'use strict';var __decorate=this&&this['__decorate']||function(_0x2734ae,_0x5d1fc6,_0x3c7f3d,_0x66453f){var _0x4d44b7=a7_0x2b81,_0x4443a6=arguments[_0x4d44b7(0x16d)],_0x316dba=_0x4443a6<0x3?_0x5d1fc6:_0x66453f===null?_0x66453f=Object[_0x4d44b7(0x187)](_0x5d1fc6,_0x3c7f3d):_0x66453f,_0x2b8602;if(typeof Reflect===_0x4d44b7(0x181)&&typeof Reflect[_0x4d44b7(0x186)]===_0x4d44b7(0x177))_0x316dba=Reflect[_0x4d44b7(0x186)](_0x2734ae,_0x5d1fc6,_0x3c7f3d,_0x66453f);else{for(var _0x5b1c06=_0x2734ae['length']-0x1;_0x5b1c06>=0x0;_0x5b1c06--)if(_0x2b8602=_0x2734ae[_0x5b1c06])_0x316dba=(_0x4443a6<0x3?_0x2b8602(_0x316dba):_0x4443a6>0x3?_0x2b8602(_0x5d1fc6,_0x3c7f3d,_0x316dba):_0x2b8602(_0x5d1fc6,_0x3c7f3d))||_0x316dba;}return _0x4443a6>0x3&&_0x316dba&&Object[_0x4d44b7(0x172)](_0x5d1fc6,_0x3c7f3d,_0x316dba),_0x316dba;},__metadata=this&&this[a7_0x5b64cf(0x183)]||function(_0x37e49d,_0x5be799){var _0x156601=a7_0x5b64cf;if(typeof Reflect===_0x156601(0x181)&&typeof Reflect[_0x156601(0x175)]===_0x156601(0x177))return Reflect[_0x156601(0x175)](_0x37e49d,_0x5be799);};Object[a7_0x5b64cf(0x172)](exports,'__esModule',{'value':!![]}),exports[a7_0x5b64cf(0x182)]=void 0x0;class ApiError extends AnnError{}ApiError[a7_0x5b64cf(0x17b)]=0x19003,ApiError[a7_0x5b64cf(0x173)]=0x18e72,ApiError[a7_0x5b64cf(0x185)]=0x18e73,ApiError[a7_0x5b64cf(0x188)]=0x18e74,ApiError[a7_0x5b64cf(0x180)]=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a7_0x5b64cf(0x16b)),__metadata(a7_0x5b64cf(0x171),Object)],ApiError,a7_0x5b64cf(0x17b),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a7_0x5b64cf(0x17f)),__metadata('design:type',Object)],ApiError,a7_0x5b64cf(0x185),void 0x0),__decorate([AnnErrorMsg(a7_0x5b64cf(0x184)),__metadata(a7_0x5b64cf(0x171),Object)],ApiError,a7_0x5b64cf(0x188),void 0x0),__decorate([AnnErrorMsg(a7_0x5b64cf(0x17a)),__metadata(a7_0x5b64cf(0x171),Object)],ApiError,a7_0x5b64cf(0x180),void 0x0),__decorate([AnnErrorMsg(a7_0x5b64cf(0x166)),__metadata(a7_0x5b64cf(0x171),Object)],ApiError,a7_0x5b64cf(0x168),void 0x0),exports[a7_0x5b64cf(0x182)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0xcf63(){const _0x40f413=['AppsConfigTmp','102193JNPeZv','../types/action','toString','defineProperty','1417626uRXPwv','getAppsConfig','apply','3702770Vmwacu','1569828RJgsRf','__esModule','862036WDHkxO','343516hhpHjr','@midwayjs/core','(((.+)+)+)+$','search','get','133401pCTBPq','APPSCONFIG_KEY'];a8_0xcf63=function(){return _0x40f413;};return a8_0xcf63();}const a8_0x23faa1=a8_0x33c3;(function(_0xb9800c,_0x2c6a84){const _0x55d5b9=a8_0x33c3,_0xe7efc=_0xb9800c();while(!![]){try{const _0x355c66=parseInt(_0x55d5b9(0xd9))/0x1+parseInt(_0x55d5b9(0xe3))/0x2+parseInt(_0x55d5b9(0xe9))/0x3+parseInt(_0x55d5b9(0xe4))/0x4+-parseInt(_0x55d5b9(0xe0))/0x5+parseInt(_0x55d5b9(0xe1))/0x6+parseInt(_0x55d5b9(0xdd))/0x7;if(_0x355c66===_0x2c6a84)break;else _0xe7efc['push'](_0xe7efc['shift']());}catch(_0x2aa579){_0xe7efc['push'](_0xe7efc['shift']());}}}(a8_0xcf63,0x5e857));const a8_0x36d9ba=(function(){let _0x5b6f4d=!![];return function(_0x11d348,_0x4dac69){const _0x2f6434=_0x5b6f4d?function(){const _0x54a756=a8_0x33c3;if(_0x4dac69){const _0x1c11d4=_0x4dac69[_0x54a756(0xdf)](_0x11d348,arguments);return _0x4dac69=null,_0x1c11d4;}}:function(){};return _0x5b6f4d=![],_0x2f6434;};}()),a8_0xb0e058=a8_0x36d9ba(this,function(){const _0x3236d6=a8_0x33c3;return a8_0xb0e058['toString']()[_0x3236d6(0xe7)](_0x3236d6(0xe6))[_0x3236d6(0xdb)]()['constructor'](a8_0xb0e058)[_0x3236d6(0xe7)](_0x3236d6(0xe6));});a8_0xb0e058();function a8_0x33c3(_0x19902a,_0x359766){const _0x4e84d3=a8_0xcf63();return a8_0x33c3=function(_0xb0e058,_0x36d9ba){_0xb0e058=_0xb0e058-0xd9;let _0xcf638d=_0x4e84d3[_0xb0e058];return _0xcf638d;},a8_0x33c3(_0x19902a,_0x359766);}'use strict';Object[a8_0x23faa1(0xdc)](exports,a8_0x23faa1(0xe2),{'value':!![]}),exports[a8_0x23faa1(0xde)]=void 0x0;const core_1=require(a8_0x23faa1(0xe5)),action_1=require(a8_0x23faa1(0xda));function getAppsConfig(_0x291990){const _0x53ca8d=a8_0x23faa1,_0x8a947f=(0x0,core_1['getClassMetadata'])(action_1[_0x53ca8d(0xea)],action_1[_0x53ca8d(0xeb)])||{};return _0x291990?lodash[_0x53ca8d(0xe8)](_0x8a947f,_0x291990):_0x8a947f;}exports[a8_0x23faa1(0xde)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0xf935e8=a9_0x409f;(function(_0x5b6de8,_0x49e03e){const _0x445164=a9_0x409f,_0x4f2cfc=_0x5b6de8();while(!![]){try{const _0x41066d=parseInt(_0x445164(0x1e9))/0x1*(parseInt(_0x445164(0x1e2))/0x2)+-parseInt(_0x445164(0x1ba))/0x3*(parseInt(_0x445164(0x1d2))/0x4)+-parseInt(_0x445164(0x1bc))/0x5*(parseInt(_0x445164(0x1f6))/0x6)+-parseInt(_0x445164(0x1b0))/0x7+-parseInt(_0x445164(0x1c6))/0x8+-parseInt(_0x445164(0x1ff))/0x9*(-parseInt(_0x445164(0x1bf))/0xa)+parseInt(_0x445164(0x1b8))/0xb*(parseInt(_0x445164(0x1fc))/0xc);if(_0x41066d===_0x49e03e)break;else _0x4f2cfc['push'](_0x4f2cfc['shift']());}catch(_0x4ac1b4){_0x4f2cfc['push'](_0x4f2cfc['shift']());}}}(a9_0xca4f,0xb3efe));const a9_0x56a19d=(function(){let _0x2c756a=!![];return function(_0x286e59,_0x35289a){const _0x1f9599=_0x2c756a?function(){const _0x1ae49f=a9_0x409f;if(_0x35289a){const _0x42b152=_0x35289a[_0x1ae49f(0x1b6)](_0x286e59,arguments);return _0x35289a=null,_0x42b152;}}:function(){};return _0x2c756a=![],_0x1f9599;};}()),a9_0x4863aa=a9_0x56a19d(this,function(){const _0x437f93=a9_0x409f;return a9_0x4863aa[_0x437f93(0x1c3)]()[_0x437f93(0x1a4)](_0x437f93(0x1c2))[_0x437f93(0x1c3)]()[_0x437f93(0x1d5)](a9_0x4863aa)[_0x437f93(0x1a4)]('(((.+)+)+)+$');});a9_0x4863aa();'use strict';Object[a9_0xf935e8(0x1f5)](exports,a9_0xf935e8(0x1b1),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a9_0xf935e8(0x1aa)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a9_0xf935e8(0x200)),action_1=require('../types/action');function getRoutes(_0x4431c2={'prefix':'/','module':![]}){const _0x5c01f7=a9_0xf935e8;var _0x25f526,_0x4211b0;const _0x5c412c=(0x0,core_3['listModule'])(action_1[_0x5c01f7(0x1fd)]),_0x9bff93={},_0xe9d1a6=Array[_0x5c01f7(0x1f0)](_0x4431c2['filter']||[])?_0x4431c2[_0x5c01f7(0x1da)]||[]:[_0x4431c2[_0x5c01f7(0x1da)]];_0x574275:for(const _0x179bf2 of _0x5c412c){let _0x4e8cc8=(0x0,core_3['getClassMetadata'])(action_1[_0x5c01f7(0x1fd)],_0x179bf2),_0x360c0b=(0x0,core_3[_0x5c01f7(0x1b2)])(action_1['ACTION_ROUTE_KEY'],_0x179bf2);if(_0x4e8cc8&&_0x360c0b){let _0x5cb405=_0x4e8cc8[_0x5c01f7(0x1cc)],_0xeab8fc={};if(_0x4431c2['module']&&(0x0,lodash_1['get'])(_0x4e8cc8,_0x5c01f7(0x1a7),![])!=_0x4431c2[_0x5c01f7(0x1a7)])continue _0x574275;else{if(_0x4431c2[_0x5c01f7(0x1a7)]===![]&&!!(0x0,lodash_1[_0x5c01f7(0x1f3)])(_0x4e8cc8,'module',null))continue _0x574275;}if(_0x4431c2[_0x5c01f7(0x1cc)]&&!_0x5cb405[_0x5c01f7(0x1dc)](_0x4431c2[_0x5c01f7(0x1cc)]))continue _0x574275;_0x5cb405!=='/'?(_0xeab8fc[_0x5c01f7(0x1ab)]=(_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8[_0x5c01f7(0x1c1)][_0x5c01f7(0x1e7)])||(/^\//[_0x5c01f7(0x1be)](_0x5cb405)?_0x5cb405[_0x5c01f7(0x1ce)]('/')[0x1]:_0x5cb405),_0xeab8fc[_0x5c01f7(0x1a2)]=(_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8['routerOptions'][_0x5c01f7(0x1a2)])||_0xeab8fc[_0x5c01f7(0x1ab)],_0xeab8fc[_0x5c01f7(0x1bd)]=[]):(_0xeab8fc[_0x5c01f7(0x1ab)]=(_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8[_0x5c01f7(0x1c1)]['tagName'])||_0x5c01f7(0x1a3),_0xeab8fc[_0x5c01f7(0x1a2)]=(_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8[_0x5c01f7(0x1c1)][_0x5c01f7(0x1a2)])||'',_0xeab8fc[_0x5c01f7(0x1bd)]=[]);_0x4431c2[_0x5c01f7(0x19f)]&&(_0xeab8fc['filepath']=_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8[_0x5c01f7(0x19f)]);(_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8['pprefix'])&&(_0xeab8fc[_0x5c01f7(0x1cc)]=_0x4e8cc8[_0x5c01f7(0x1a6)]);(_0x4e8cc8===null||_0x4e8cc8===void 0x0?void 0x0:_0x4e8cc8[_0x5c01f7(0x1a7)])&&(_0xeab8fc[_0x5c01f7(0x1a7)]=_0x4e8cc8['module']);let _0x3079a3=(0x0,core_3[_0x5c01f7(0x1b2)])(core_2[_0x5c01f7(0x1e1)],_0x179bf2)||{};if(typeof _0x360c0b[Symbol[_0x5c01f7(0x1a8)]]===_0x5c01f7(0x1c7))for(let _0x2d9ad6 of _0x360c0b){if((_0x4431c2===null||_0x4431c2===void 0x0?void 0x0:_0x4431c2[_0x5c01f7(0x1b4)])&&!(_0x2d9ad6===null||_0x2d9ad6===void 0x0?void 0x0:_0x2d9ad6[_0x5c01f7(0x1b4)]))continue;let _0x1e255b={};_0x1e255b[_0x5c01f7(0x19b)]=_0x2d9ad6['requestMethod'],_0x1e255b[_0x5c01f7(0x1ed)]=(_0x5cb405+_0x2d9ad6[_0x5c01f7(0x1ec)])[_0x5c01f7(0x1d8)](/\/{2,}/g,'/'),_0x1e255b[_0x5c01f7(0x1ab)]=(_0x2d9ad6===null||_0x2d9ad6===void 0x0?void 0x0:_0x2d9ad6[_0x5c01f7(0x1d9)])||_0xeab8fc['summary']||'default',_0x1e255b['description']=(_0x2d9ad6===null||_0x2d9ad6===void 0x0?void 0x0:_0x2d9ad6[_0x5c01f7(0x1a2)])||'',_0x1e255b[_0x5c01f7(0x1a9)]=[];_0x1e255b[_0x5c01f7(0x1ed)][_0x5c01f7(0x1d4)]('/')&&(_0x1e255b[_0x5c01f7(0x1ed)]=_0x1e255b[_0x5c01f7(0x1ed)][_0x5c01f7(0x1de)](0x0,_0x1e255b[_0x5c01f7(0x1ed)][_0x5c01f7(0x1fb)]-0x1));if(!(0x0,lodash_1[_0x5c01f7(0x1dc)])(_0x1e255b[_0x5c01f7(0x1ed)],_0x5c01f7(0x19e))&&!(0x0,lodash_1[_0x5c01f7(0x1dc)])(_0x1e255b[_0x5c01f7(0x1ed)],_0x5c01f7(0x1d1))&&_0xe9d1a6[_0x5c01f7(0x1fe)](_0x1e255b[_0x5c01f7(0x1ed)])===-0x1){if(!(_0x4431c2===null||_0x4431c2===void 0x0?void 0x0:_0x4431c2[_0x5c01f7(0x1e3)])){let _0x4dcca8=(0x0,core_3[_0x5c01f7(0x1d3)])(new _0x179bf2(),_0x2d9ad6[_0x5c01f7(0x19b)]);for(const _0x20f3da in _0x4dcca8){let _0x23c568=(_0x25f526=_0x3079a3[_0x2d9ad6['method']])===null||_0x25f526===void 0x0?void 0x0:_0x25f526[_0x5c01f7(0x1b9)](_0xac8059=>_0xac8059[_0x5c01f7(0x1bb)]==_0x20f3da&&_0xac8059['key']===core_2[_0x5c01f7(0x1f4)]&&(_0xac8059===null||_0xac8059===void 0x0?void 0x0:_0xac8059['metadata']));if(_0x23c568===null||_0x23c568===void 0x0?void 0x0:_0x23c568[_0x5c01f7(0x1d7)]){let _0x2ad46b=convertTypeToString(_0x23c568[_0x5c01f7(0x1d7)][_0x5c01f7(0x1d6)]||0x0);if([_0x5c01f7(0x1b7),_0x5c01f7(0x1eb)][_0x5c01f7(0x1fe)](_0x2ad46b)!=-0x1&&_0x23c568[_0x5c01f7(0x1d7)][_0x5c01f7(0x19c)][_0x5c01f7(0x1fe)](':')==-0x1&&!_0x1e255b[_0x5c01f7(0x1a9)][_0x5c01f7(0x1b9)](_0x526823=>_0x526823[_0x5c01f7(0x1f9)]==_0x23c568[_0x5c01f7(0x1d7)][_0x5c01f7(0x19c)]))_0x1e255b['request'][_0x5c01f7(0x1c0)]({'key':_0x23c568['metadata'][_0x5c01f7(0x19c)],'title':_0x23c568['metadata'][_0x5c01f7(0x19c)],'type':convertSchemaType(_0x4dcca8[_0x23c568['parameterIndex']][_0x5c01f7(0x1a0)]),'required':![],'default':'','desc':''});else{if(_0x2ad46b==_0x5c01f7(0x1f7)){let _0x164bd9=((_0x4211b0=_0x23c568===null||_0x23c568===void 0x0?void 0x0:_0x23c568[_0x5c01f7(0x1d7)])===null||_0x4211b0===void 0x0?void 0x0:_0x4211b0[_0x5c01f7(0x19c)])||_0x5c01f7(0x1f7);_0x164bd9[_0x5c01f7(0x1fe)](':')==-0x1&&!_0x1e255b[_0x5c01f7(0x1a9)][_0x5c01f7(0x1b9)](_0x55fc3a=>_0x55fc3a[_0x5c01f7(0x1f9)]==_0x164bd9&&_0x55fc3a[_0x5c01f7(0x1d6)]==_0x5c01f7(0x1f7))&&_0x1e255b[_0x5c01f7(0x1a9)][_0x5c01f7(0x1c0)]({'key':_0x164bd9,'title':_0x5c01f7(0x1cb)+_0x164bd9,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x440da3=(0x0,core_3[_0x5c01f7(0x1c8)])(validator_1['RULES_KEY'],_0x4dcca8[_0x20f3da]);_0x440da3&&_0x1e255b[_0x5c01f7(0x1a9)][_0x5c01f7(0x1c0)](...getJoiRequest(_0x440da3));}}}_0xeab8fc[_0x5c01f7(0x1bd)][_0x5c01f7(0x1c0)](_0x1e255b);}}if(_0xeab8fc[_0x5c01f7(0x1bd)][_0x5c01f7(0x1fb)]>0x0){let _0x5d184a=_0x9bff93[_0x5cb405];_0x5d184a?(_0x5d184a['summary']!=_0xeab8fc[_0x5c01f7(0x1ab)]&&(_0x5d184a[_0x5c01f7(0x1ab)]=_0x5d184a[_0x5c01f7(0x1ab)]+','+_0xeab8fc['summary']),_0x5d184a[_0x5c01f7(0x1a2)]!=_0xeab8fc[_0x5c01f7(0x1a2)]&&(_0x5d184a[_0x5c01f7(0x1a2)]=_0x5d184a[_0x5c01f7(0x1a2)]+','+_0xeab8fc[_0x5c01f7(0x1a2)]),_0x5d184a[_0x5c01f7(0x1bd)]=_0x5d184a[_0x5c01f7(0x1bd)]['concat'](_0xeab8fc[_0x5c01f7(0x1bd)]),_0x9bff93[_0x5cb405]=_0x5d184a):_0x9bff93[_0x5cb405]=_0xeab8fc;}}}return _0x9bff93;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x436212){const _0x3dbd=a9_0xf935e8,_0x673c02=[];for(let _0x567fac in _0x436212){const _0x5a5fb4={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x207b8=typeof _0x436212[_0x567fac][_0x3dbd(0x1cd)]==_0x3dbd(0x1c7)?_0x436212[_0x567fac][_0x3dbd(0x1cd)]():_0x436212[_0x567fac];_0x5a5fb4[_0x3dbd(0x1f9)]=_0x567fac,_0x5a5fb4[_0x3dbd(0x1d6)]=_0x207b8[_0x3dbd(0x1d6)],_0x5a5fb4[_0x3dbd(0x1ae)]=(0x0,lodash_1[_0x3dbd(0x1f3)])(_0x207b8,_0x3dbd(0x1c9),_0x567fac),_0x5a5fb4['default']=(0x0,lodash_1['get'])(_0x207b8,_0x3dbd(0x1dd),''),_0x5a5fb4[_0x3dbd(0x1f2)]=(0x0,lodash_1[_0x3dbd(0x1f3)])(_0x207b8,_0x3dbd(0x1b3),'')=='required',_0x5a5fb4[_0x3dbd(0x1a2)]=(0x0,lodash_1[_0x3dbd(0x1f3)])(_0x207b8,_0x3dbd(0x1ac),'');if(_0x207b8[_0x3dbd(0x1d6)]==_0x3dbd(0x1ee))_0x5a5fb4['children']=getJoiRequest(_0x207b8[_0x3dbd(0x1ef)]);else{if(_0x207b8['type']==_0x3dbd(0x1ad)&&_0x207b8[_0x3dbd(0x1ea)]&&Array[_0x3dbd(0x1f0)](_0x207b8[_0x3dbd(0x1ea)])&&_0x207b8[_0x3dbd(0x1ea)][0x0]){}}_0x207b8[_0x3dbd(0x1af)]&&Array[_0x3dbd(0x1f0)](_0x207b8[_0x3dbd(0x1af)])&&_0x207b8[_0x3dbd(0x1af)][_0x3dbd(0x1fb)]>0x0&&(_0x5a5fb4[_0x3dbd(0x1a2)]='只允许:['+_0x207b8[_0x3dbd(0x1af)]['join'](',')+'];'+_0x5a5fb4[_0x3dbd(0x1a2)]);if(_0x5a5fb4[_0x3dbd(0x1f9)]&&_0x5a5fb4[_0x3dbd(0x1d6)]){const _0x74b975={};for(const _0x3f94b6 of _0x207b8[_0x3dbd(0x1fa)]||[]){if(_0x3f94b6[_0x3dbd(0x1a0)]==='min'&&_0x3f94b6[_0x3dbd(0x1e6)])_0x74b975['min']=_0x3f94b6['args'][_0x3dbd(0x1e5)];else _0x3f94b6[_0x3dbd(0x1a0)]===_0x3dbd(0x1cf)&&(_0x74b975[_0x3dbd(0x1cf)]=_0x3f94b6[_0x3dbd(0x1e6)][_0x3dbd(0x1e5)]);}_0x5a5fb4[_0x3dbd(0x1fa)]=_0x74b975;}_0x5a5fb4[_0x3dbd(0x1f9)]&&_0x5a5fb4[_0x3dbd(0x1ae)]&&_0x673c02['push'](_0x5a5fb4);}return _0x673c02;}function a9_0xca4f(){const _0x586bdc=['(((.+)+)+)+$','toString','File','string','1915112QoLNcz','function','getClassExtendedMetadata','flags.label','FILESTREAM','文件上传-','prefix','describe','split','max','RouteParamTypes','/static/apitest','4XYhvXp','getMethodParamTypes','endsWith','constructor','type','metadata','replace','routerName','filter','header','startsWith','flags.default','substring','FIELDS','String','INJECT_CUSTOM_PARAM','2260474XSkQGz','noreq','Boolean','limit','args','tagName','boolean','1QBWkWf','items','body','path','route','object','keys','isArray','Object','required','get','WEB_ROUTER_PARAM_KEY','defineProperty','566862bgtGwo','file','Number','key','rules','length','24gvMduV','ACTION_KEY','indexOf','15462WBbBVW','@midwayjs/core','method','propertyData','HEADERS','static/apitest','filepath','name','PARAM','description','default','search','number','pprefix','module','iterator','request','lodash','summary','flags.description','array','title','allow','4628785WQcziR','__esModule','getClassMetadata','flags.presence','intercept','QUERY','apply','query','7135799conJje','find','226371tIKRAd','parameterIndex','60JNYjHF','routes','test','2440widwaf','push','routerOptions'];a9_0xca4f=function(){return _0x586bdc;};return a9_0xca4f();}function convertSchemaType(_0x1d337e){const _0x509bc8=a9_0xf935e8;switch(_0x1d337e){case _0x509bc8(0x1f1):return _0x509bc8(0x1ee);case _0x509bc8(0x1e4):return _0x509bc8(0x1e8);case _0x509bc8(0x1f8):return _0x509bc8(0x1a5);case _0x509bc8(0x1e0):return'string';case _0x509bc8(0x1c4):return _0x509bc8(0x1f7);default:return _0x509bc8(0x1c5);}}function a9_0x409f(_0x1cce8,_0xb92389){const _0x198450=a9_0xca4f();return a9_0x409f=function(_0x4863aa,_0x56a19d){_0x4863aa=_0x4863aa-0x19b;let _0xca4f01=_0x198450[_0x4863aa];return _0xca4f01;},a9_0x409f(_0x1cce8,_0xb92389);}function convertTypeToString(_0x4d7886){const _0x52f177=a9_0xf935e8;switch(_0x4d7886){case core_1['RouteParamTypes'][_0x52f177(0x19d)]:return _0x52f177(0x1db);case core_1['RouteParamTypes'][_0x52f177(0x1b5)]:return _0x52f177(0x1b7);case core_1['RouteParamTypes'][_0x52f177(0x1a1)]:return _0x52f177(0x1ec);case core_1[_0x52f177(0x1d0)]['BODY']:return _0x52f177(0x1eb);case core_1['RouteParamTypes'][_0x52f177(0x1df)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0x52f177(0x1d0)][_0x52f177(0x1ca)]:return _0x52f177(0x1f7);default:return _0x52f177(0x1db);}}
|
|
1
|
+
const a9_0x2139c3=a9_0x572a;(function(_0x217fb4,_0x5531c4){const _0x329ee7=a9_0x572a,_0x6850bc=_0x217fb4();while(!![]){try{const _0x1d06b6=-parseInt(_0x329ee7(0x1d6))/0x1+-parseInt(_0x329ee7(0x20c))/0x2+parseInt(_0x329ee7(0x1d2))/0x3*(-parseInt(_0x329ee7(0x1af))/0x4)+parseInt(_0x329ee7(0x1d8))/0x5+parseInt(_0x329ee7(0x1ae))/0x6+parseInt(_0x329ee7(0x1b3))/0x7*(-parseInt(_0x329ee7(0x1d7))/0x8)+parseInt(_0x329ee7(0x1c3))/0x9*(parseInt(_0x329ee7(0x1fa))/0xa);if(_0x1d06b6===_0x5531c4)break;else _0x6850bc['push'](_0x6850bc['shift']());}catch(_0x3e1c84){_0x6850bc['push'](_0x6850bc['shift']());}}}(a9_0x3fa5,0xa112e));const a9_0x1be23c=(function(){let _0xf95eb2=!![];return function(_0x226be3,_0x41ebed){const _0x5c5c4e=_0xf95eb2?function(){const _0x15a560=a9_0x572a;if(_0x41ebed){const _0x28d883=_0x41ebed[_0x15a560(0x1c0)](_0x226be3,arguments);return _0x41ebed=null,_0x28d883;}}:function(){};return _0xf95eb2=![],_0x5c5c4e;};}()),a9_0x589dac=a9_0x1be23c(this,function(){const _0x22ff21=a9_0x572a;return a9_0x589dac[_0x22ff21(0x203)]()[_0x22ff21(0x1b6)]('(((.+)+)+)+$')[_0x22ff21(0x203)]()[_0x22ff21(0x1b0)](a9_0x589dac)[_0x22ff21(0x1b6)](_0x22ff21(0x1e0));});a9_0x589dac();function a9_0x572a(_0x47c3c3,_0x2daa6a){const _0x5de8a7=a9_0x3fa5();return a9_0x572a=function(_0x589dac,_0x1be23c){_0x589dac=_0x589dac-0x1a9;let _0x3fa5e3=_0x5de8a7[_0x589dac];return _0x3fa5e3;},a9_0x572a(_0x47c3c3,_0x2daa6a);}function a9_0x3fa5(){const _0x37af04=['getClassMetadata','children','../types/action','type','tagName','query','concat','ACTION_KEY','describe','substring','isArray','allow','WEB_ROUTER_PARAM_KEY','filter','Boolean','find','routes','key','body','method','20Opwzor','parameterIndex','flags.description','routerOptions','@anncic-api/validator','ACTION_ROUTE_KEY','function','min','request','toString','HEADERS','title','rules','routerName','replace','propertyData','object','join','1792810JUweNC','default','lodash','path','description','summary','6880890uBXCzs','4KjraOF','constructor','/static/apitest','static/apitest','196gBsQWb','items','pprefix','search','flags.default','max','route','name','intercept','@midwayjs/core','defineProperty','args','string','apply','required','module','7033599WhtQtc','RULES_KEY','requestMethod','limit','length','indexOf','__esModule','startsWith','flags.label','文件上传-','boolean','file','header','String','metadata','1166493HCPnuL','noreq','getRoutes','split','514708gVXHuy','266056OdxyXP','3405305dawTeZ','getMethodParamTypes','FIELDS','Object','test','filepath','prefix','endsWith','(((.+)+)+)+$','get','RouteParamTypes','number','FILESSTREAM','push'];a9_0x3fa5=function(){return _0x37af04;};return a9_0x3fa5();}'use strict';Object[a9_0x2139c3(0x1bd)](exports,a9_0x2139c3(0x1c9),{'value':!![]}),exports[a9_0x2139c3(0x1d4)]=void 0x0;const lodash_1=require(a9_0x2139c3(0x1aa)),validator_1=require(a9_0x2139c3(0x1fe)),core_1=require(a9_0x2139c3(0x1bc)),core_2=require(a9_0x2139c3(0x1bc)),core_3=require(a9_0x2139c3(0x1bc)),action_1=require(a9_0x2139c3(0x1e8));function getRoutes(_0x33a68d={'prefix':'/','module':![]}){const _0x5d64a9=a9_0x2139c3;var _0x2be540,_0x2ee510;const _0x119906=(0x0,core_3['listModule'])(action_1[_0x5d64a9(0x1ed)]),_0x29516d={},_0x2a7382=Array[_0x5d64a9(0x1f0)](_0x33a68d[_0x5d64a9(0x1f3)]||[])?_0x33a68d[_0x5d64a9(0x1f3)]||[]:[_0x33a68d[_0x5d64a9(0x1f3)]];_0x2b04aa:for(const _0x240b5b of _0x119906){let _0x50611d=(0x0,core_3[_0x5d64a9(0x1e6)])(action_1[_0x5d64a9(0x1ed)],_0x240b5b),_0x1d8d11=(0x0,core_3[_0x5d64a9(0x1e6)])(action_1[_0x5d64a9(0x1ff)],_0x240b5b);if(_0x50611d&&_0x1d8d11){let _0xf0ccc=_0x50611d[_0x5d64a9(0x1de)],_0x3ec8d3={};if(_0x33a68d['module']&&(0x0,lodash_1[_0x5d64a9(0x1e1)])(_0x50611d,_0x5d64a9(0x1c2),![])!=_0x33a68d[_0x5d64a9(0x1c2)])continue _0x2b04aa;else{if(_0x33a68d['module']===![]&&!!(0x0,lodash_1[_0x5d64a9(0x1e1)])(_0x50611d,_0x5d64a9(0x1c2),null))continue _0x2b04aa;}if(_0x33a68d[_0x5d64a9(0x1de)]&&!_0xf0ccc[_0x5d64a9(0x1ca)](_0x33a68d[_0x5d64a9(0x1de)]))continue _0x2b04aa;_0xf0ccc!=='/'?(_0x3ec8d3[_0x5d64a9(0x1ad)]=(_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d['routerOptions'][_0x5d64a9(0x1ea)])||(/^\//[_0x5d64a9(0x1dc)](_0xf0ccc)?_0xf0ccc[_0x5d64a9(0x1d5)]('/')[0x1]:_0xf0ccc),_0x3ec8d3[_0x5d64a9(0x1ac)]=(_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d[_0x5d64a9(0x1fd)]['description'])||_0x3ec8d3[_0x5d64a9(0x1ad)],_0x3ec8d3['routes']=[]):(_0x3ec8d3[_0x5d64a9(0x1ad)]=(_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d['routerOptions'][_0x5d64a9(0x1ea)])||'default',_0x3ec8d3[_0x5d64a9(0x1ac)]=(_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d[_0x5d64a9(0x1fd)][_0x5d64a9(0x1ac)])||'',_0x3ec8d3[_0x5d64a9(0x1f6)]=[]);_0x33a68d['filepath']&&(_0x3ec8d3[_0x5d64a9(0x1dd)]=_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d[_0x5d64a9(0x1dd)]);(_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d[_0x5d64a9(0x1b5)])&&(_0x3ec8d3[_0x5d64a9(0x1de)]=_0x50611d[_0x5d64a9(0x1b5)]);(_0x50611d===null||_0x50611d===void 0x0?void 0x0:_0x50611d[_0x5d64a9(0x1c2)])&&(_0x3ec8d3['module']=_0x50611d[_0x5d64a9(0x1c2)]);let _0x323597=(0x0,core_3[_0x5d64a9(0x1e6)])(core_2['INJECT_CUSTOM_PARAM'],_0x240b5b)||{};if(typeof _0x1d8d11[Symbol['iterator']]==='function')for(let _0xf4f52d of _0x1d8d11){if((_0x33a68d===null||_0x33a68d===void 0x0?void 0x0:_0x33a68d[_0x5d64a9(0x1bb)])&&!(_0xf4f52d===null||_0xf4f52d===void 0x0?void 0x0:_0xf4f52d['intercept']))continue;let _0x110f1b={};_0x110f1b[_0x5d64a9(0x1f9)]=_0xf4f52d[_0x5d64a9(0x1c5)],_0x110f1b['route']=(_0xf0ccc+_0xf4f52d[_0x5d64a9(0x1ab)])[_0x5d64a9(0x208)](/\/{2,}/g,'/'),_0x110f1b['summary']=(_0xf4f52d===null||_0xf4f52d===void 0x0?void 0x0:_0xf4f52d[_0x5d64a9(0x207)])||_0x3ec8d3[_0x5d64a9(0x1ad)]||_0x5d64a9(0x1a9),_0x110f1b[_0x5d64a9(0x1ac)]=(_0xf4f52d===null||_0xf4f52d===void 0x0?void 0x0:_0xf4f52d[_0x5d64a9(0x1ac)])||'',_0x110f1b['request']=[];_0x110f1b[_0x5d64a9(0x1b9)][_0x5d64a9(0x1df)]('/')&&(_0x110f1b[_0x5d64a9(0x1b9)]=_0x110f1b[_0x5d64a9(0x1b9)][_0x5d64a9(0x1ef)](0x0,_0x110f1b[_0x5d64a9(0x1b9)][_0x5d64a9(0x1c7)]-0x1));if(!(0x0,lodash_1[_0x5d64a9(0x1ca)])(_0x110f1b[_0x5d64a9(0x1b9)],_0x5d64a9(0x1b2))&&!(0x0,lodash_1[_0x5d64a9(0x1ca)])(_0x110f1b[_0x5d64a9(0x1b9)],_0x5d64a9(0x1b1))&&_0x2a7382[_0x5d64a9(0x1c8)](_0x110f1b[_0x5d64a9(0x1b9)])===-0x1){if(!(_0x33a68d===null||_0x33a68d===void 0x0?void 0x0:_0x33a68d[_0x5d64a9(0x1d3)])){let _0x4aa88f=(0x0,core_3[_0x5d64a9(0x1d9)])(new _0x240b5b(),_0xf4f52d['method']);for(const _0x1bc797 in _0x4aa88f){let _0x2fb19f=(_0x2be540=_0x323597[_0xf4f52d[_0x5d64a9(0x1f9)]])===null||_0x2be540===void 0x0?void 0x0:_0x2be540['find'](_0x5ec069=>_0x5ec069[_0x5d64a9(0x1fb)]==_0x1bc797&&_0x5ec069['key']===core_2[_0x5d64a9(0x1f2)]&&(_0x5ec069===null||_0x5ec069===void 0x0?void 0x0:_0x5ec069['metadata']));if(_0x2fb19f===null||_0x2fb19f===void 0x0?void 0x0:_0x2fb19f['metadata']){let _0xce9f8e=convertTypeToString(_0x2fb19f['metadata'][_0x5d64a9(0x1e9)]||0x0);if([_0x5d64a9(0x1eb),_0x5d64a9(0x1f8)][_0x5d64a9(0x1c8)](_0xce9f8e)!=-0x1&&_0x2fb19f[_0x5d64a9(0x1d1)]['propertyData']['indexOf'](':')==-0x1&&!_0x110f1b[_0x5d64a9(0x202)]['find'](_0x1d6ef3=>_0x1d6ef3[_0x5d64a9(0x1f7)]==_0x2fb19f[_0x5d64a9(0x1d1)][_0x5d64a9(0x209)]))_0x110f1b[_0x5d64a9(0x202)]['push']({'key':_0x2fb19f['metadata']['propertyData'],'title':_0x2fb19f[_0x5d64a9(0x1d1)][_0x5d64a9(0x209)],'type':convertSchemaType(_0x4aa88f[_0x2fb19f[_0x5d64a9(0x1fb)]][_0x5d64a9(0x1ba)]),'required':![],'default':'','desc':''});else{if(_0xce9f8e==_0x5d64a9(0x1ce)){let _0x1d38dd=((_0x2ee510=_0x2fb19f===null||_0x2fb19f===void 0x0?void 0x0:_0x2fb19f[_0x5d64a9(0x1d1)])===null||_0x2ee510===void 0x0?void 0x0:_0x2ee510[_0x5d64a9(0x209)])||_0x5d64a9(0x1ce);_0x1d38dd[_0x5d64a9(0x1c8)](':')==-0x1&&!_0x110f1b[_0x5d64a9(0x202)][_0x5d64a9(0x1f5)](_0x578306=>_0x578306['key']==_0x1d38dd&&_0x578306[_0x5d64a9(0x1e9)]==_0x5d64a9(0x1ce))&&_0x110f1b['request'][_0x5d64a9(0x1e5)]({'key':_0x1d38dd,'title':_0x5d64a9(0x1cc)+_0x1d38dd,'type':_0x5d64a9(0x1ce),'required':!![],'default':'','desc':''});}}}else{const _0xf36200=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x5d64a9(0x1c4)],_0x4aa88f[_0x1bc797]);_0xf36200&&_0x110f1b[_0x5d64a9(0x202)]['push'](...getJoiRequest(_0xf36200));}}}_0x3ec8d3[_0x5d64a9(0x1f6)][_0x5d64a9(0x1e5)](_0x110f1b);}}if(_0x3ec8d3[_0x5d64a9(0x1f6)]['length']>0x0){let _0x1cf07b=_0x29516d[_0xf0ccc];_0x1cf07b?(_0x1cf07b['summary']!=_0x3ec8d3['summary']&&(_0x1cf07b[_0x5d64a9(0x1ad)]=_0x1cf07b['summary']+','+_0x3ec8d3[_0x5d64a9(0x1ad)]),_0x1cf07b[_0x5d64a9(0x1ac)]!=_0x3ec8d3[_0x5d64a9(0x1ac)]&&(_0x1cf07b[_0x5d64a9(0x1ac)]=_0x1cf07b[_0x5d64a9(0x1ac)]+','+_0x3ec8d3[_0x5d64a9(0x1ac)]),_0x1cf07b['routes']=_0x1cf07b[_0x5d64a9(0x1f6)][_0x5d64a9(0x1ec)](_0x3ec8d3[_0x5d64a9(0x1f6)]),_0x29516d[_0xf0ccc]=_0x1cf07b):_0x29516d[_0xf0ccc]=_0x3ec8d3;}}}return _0x29516d;}exports[a9_0x2139c3(0x1d4)]=getRoutes;function getJoiRequest(_0x327319){const _0x1c11f7=a9_0x2139c3,_0x3b4c14=[];for(let _0x883335 in _0x327319){const _0x5468bb={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x58f06b=typeof _0x327319[_0x883335][_0x1c11f7(0x1ee)]==_0x1c11f7(0x200)?_0x327319[_0x883335][_0x1c11f7(0x1ee)]():_0x327319[_0x883335];_0x5468bb[_0x1c11f7(0x1f7)]=_0x883335,_0x5468bb['type']=_0x58f06b[_0x1c11f7(0x1e9)],_0x5468bb[_0x1c11f7(0x205)]=(0x0,lodash_1['get'])(_0x58f06b,_0x1c11f7(0x1cb),_0x883335),_0x5468bb[_0x1c11f7(0x1a9)]=(0x0,lodash_1['get'])(_0x58f06b,_0x1c11f7(0x1b7),''),_0x5468bb[_0x1c11f7(0x1c1)]=(0x0,lodash_1[_0x1c11f7(0x1e1)])(_0x58f06b,'flags.presence','')==_0x1c11f7(0x1c1),_0x5468bb['description']=(0x0,lodash_1[_0x1c11f7(0x1e1)])(_0x58f06b,_0x1c11f7(0x1fc),'');if(_0x58f06b[_0x1c11f7(0x1e9)]==_0x1c11f7(0x20a))_0x5468bb[_0x1c11f7(0x1e7)]=getJoiRequest(_0x58f06b['keys']);else{if(_0x58f06b[_0x1c11f7(0x1e9)]=='array'&&_0x58f06b[_0x1c11f7(0x1b4)]&&Array['isArray'](_0x58f06b[_0x1c11f7(0x1b4)])&&_0x58f06b['items'][0x0]){}}_0x58f06b['allow']&&Array[_0x1c11f7(0x1f0)](_0x58f06b[_0x1c11f7(0x1f1)])&&_0x58f06b[_0x1c11f7(0x1f1)][_0x1c11f7(0x1c7)]>0x0&&(_0x5468bb[_0x1c11f7(0x1ac)]='只允许:['+_0x58f06b['allow'][_0x1c11f7(0x20b)](',')+'];'+_0x5468bb[_0x1c11f7(0x1ac)]);if(_0x5468bb[_0x1c11f7(0x1f7)]&&_0x5468bb['type']){const _0x8451f1={};for(const _0x2fae2d of _0x58f06b[_0x1c11f7(0x206)]||[]){if(_0x2fae2d[_0x1c11f7(0x1ba)]===_0x1c11f7(0x201)&&_0x2fae2d['args'])_0x8451f1[_0x1c11f7(0x201)]=_0x2fae2d[_0x1c11f7(0x1be)][_0x1c11f7(0x1c6)];else _0x2fae2d[_0x1c11f7(0x1ba)]===_0x1c11f7(0x1b8)&&(_0x8451f1['max']=_0x2fae2d[_0x1c11f7(0x1be)][_0x1c11f7(0x1c6)]);}_0x5468bb[_0x1c11f7(0x206)]=_0x8451f1;}_0x5468bb[_0x1c11f7(0x1f7)]&&_0x5468bb[_0x1c11f7(0x205)]&&_0x3b4c14[_0x1c11f7(0x1e5)](_0x5468bb);}return _0x3b4c14;}function convertSchemaType(_0x2951d5){const _0x1e81a0=a9_0x2139c3;switch(_0x2951d5){case _0x1e81a0(0x1db):return _0x1e81a0(0x20a);case _0x1e81a0(0x1f4):return _0x1e81a0(0x1cd);case'Number':return _0x1e81a0(0x1e3);case _0x1e81a0(0x1d0):return _0x1e81a0(0x1bf);case'File':return _0x1e81a0(0x1ce);default:return _0x1e81a0(0x1bf);}}function convertTypeToString(_0x979787){const _0xadde58=a9_0x2139c3;switch(_0x979787){case core_1['RouteParamTypes'][_0xadde58(0x204)]:return _0xadde58(0x1cf);case core_1['RouteParamTypes']['QUERY']:return _0xadde58(0x1eb);case core_1[_0xadde58(0x1e2)]['PARAM']:return'path';case core_1['RouteParamTypes']['BODY']:return'body';case core_1[_0xadde58(0x1e2)][_0xadde58(0x1da)]:case core_1[_0xadde58(0x1e2)][_0xadde58(0x1e4)]:case core_1[_0xadde58(0x1e2)]['FILESTREAM']:return _0xadde58(0x1ce);default:return _0xadde58(0x1cf);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x170a24=a10_0x4d7d;(function(_0x5036d0,_0x45432c){var _0x290e84=a10_0x4d7d,_0x566634=_0x5036d0();while(!![]){try{var _0xfac2c9=-parseInt(_0x290e84(0x172))/0x1*(-parseInt(_0x290e84(0x1b2))/0x2)+-parseInt(_0x290e84(0x1a4))/0x3+parseInt(_0x290e84(0x19e))/0x4*(parseInt(_0x290e84(0x1ab))/0x5)+parseInt(_0x290e84(0x180))/0x6*(-parseInt(_0x290e84(0x195))/0x7)+parseInt(_0x290e84(0x197))/0x8+-parseInt(_0x290e84(0x171))/0x9*(parseInt(_0x290e84(0x186))/0xa)+parseInt(_0x290e84(0x17b))/0xb;if(_0xfac2c9===_0x45432c)break;else _0x566634['push'](_0x566634['shift']());}catch(_0x5e1467){_0x566634['push'](_0x566634['shift']());}}}(a10_0x3a21,0x280c4));var a10_0x3dc75a=(function(){var _0x39b0d4=!![];return function(_0x20aab1,_0x4d6a8b){var _0x397501=_0x39b0d4?function(){var _0x22aaa3=a10_0x4d7d;if(_0x4d6a8b){var _0x12fac9=_0x4d6a8b[_0x22aaa3(0x16e)](_0x20aab1,arguments);return _0x4d6a8b=null,_0x12fac9;}}:function(){};return _0x39b0d4=![],_0x397501;};}()),a10_0x4372c4=a10_0x3dc75a(this,function(){var _0x40a361=a10_0x4d7d;return a10_0x4372c4['toString']()[_0x40a361(0x1a0)](_0x40a361(0x18e))['toString']()[_0x40a361(0x18f)](a10_0x4372c4)[_0x40a361(0x1a0)](_0x40a361(0x18e));});a10_0x4372c4();'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x5ef260,_0x52ce29,_0x40fe9c,_0x14241f){var _0x2c9ca5=a10_0x4d7d;if(_0x14241f===undefined)_0x14241f=_0x40fe9c;var _0x12e4ef=Object[_0x2c9ca5(0x1a6)](_0x52ce29,_0x40fe9c);(!_0x12e4ef||(_0x2c9ca5(0x189)in _0x12e4ef?!_0x52ce29[_0x2c9ca5(0x17a)]:_0x12e4ef[_0x2c9ca5(0x16f)]||_0x12e4ef[_0x2c9ca5(0x187)]))&&(_0x12e4ef={'enumerable':!![],'get':function(){return _0x52ce29[_0x40fe9c];}}),Object[_0x2c9ca5(0x179)](_0x5ef260,_0x14241f,_0x12e4ef);}:function(_0xcf9211,_0x213522,_0x14a603,_0x2baee8){if(_0x2baee8===undefined)_0x2baee8=_0x14a603;_0xcf9211[_0x2baee8]=_0x213522[_0x14a603];}),__exportStar=this&&this[a10_0x170a24(0x1b0)]||function(_0x241b28,_0x1b712a){var _0x329241=a10_0x170a24;for(var _0x514c6f in _0x241b28)if(_0x514c6f!==_0x329241(0x1ac)&&!Object['prototype']['hasOwnProperty'][_0x329241(0x1a5)](_0x1b712a,_0x514c6f))__createBinding(_0x1b712a,_0x241b28,_0x514c6f);};Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x17a),{'value':!![]}),exports[a10_0x170a24(0x199)]=exports[a10_0x170a24(0x182)]=exports[a10_0x170a24(0x18b)]=exports[a10_0x170a24(0x19b)]=exports[a10_0x170a24(0x1a9)]=exports[a10_0x170a24(0x1aa)]=exports[a10_0x170a24(0x1b1)]=exports['Config']=exports[a10_0x170a24(0x184)]=exports[a10_0x170a24(0x1a7)]=exports[a10_0x170a24(0x1a3)]=exports[a10_0x170a24(0x193)]=exports[a10_0x170a24(0x19a)]=exports['Body']=exports[a10_0x170a24(0x17d)]=exports[a10_0x170a24(0x198)]=exports[a10_0x170a24(0x188)]=exports['Configuration']=exports[a10_0x170a24(0x176)]=exports['ValidatorError']=exports[a10_0x170a24(0x17c)]=exports['ApiService']=exports[a10_0x170a24(0x174)]=exports['CacheService']=exports['ApiError']=exports[a10_0x170a24(0x177)]=exports['IIntercept']=exports[a10_0x170a24(0x170)]=exports[a10_0x170a24(0x191)]=exports[a10_0x170a24(0x18d)]=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');function a10_0x3a21(){var _0x1219fc=['Action','(((.+)+)+)+$','constructor','@anncic-api/validator','Apitest','./configuration','Query','ValidatorError','2223508ERRxPA','./exception/ApiError','389496GDgJMv','Files','getAppsConfig','Param','Scope','CustomConfiguration','ApiError','1276nbVAnB','Config','search','./helper/getRoutes','@anncic-api/cache','Headers','946587oSoJRY','call','getOwnPropertyDescriptor','Init','CacheService','Inject','Provide','820rAnjsb','default','./types/common','./decorator/ActionApitest','Configuration','__exportStar','Logger','2pGZsRc','Body','apply','writable','Intercept','402255mUQABu','107815CsaQNa','@midwayjs/core','EventService','./service/ExcelService','ValidatorService','getRoutes','Api','defineProperty','__esModule','7455591bOlquR','ExcelService','Fields','./service/ApitestService','./decorator/ActionApi','6CesMQb','./decorator/Action','ScopeEnum','IIntercept','App','./service/ApiService','20QPLOmP','configurable','File','get','ApiService','Singleton','./decorator/Intercept'];a10_0x3a21=function(){return _0x1219fc;};return a10_0x3a21();}Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x199),{'enumerable':!![],'get':function(){var _0x14bc9c=a10_0x170a24;return getAppsConfig_1[_0x14bc9c(0x199)];}}),__exportStar(require(a10_0x170a24(0x1ad)),exports),__exportStar(require(a10_0x170a24(0x17e)),exports);var ActionApi_1=require(a10_0x170a24(0x17f));Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x178),{'enumerable':!![],'get':function(){var _0x4971d5=a10_0x170a24;return ActionApi_1[_0x4971d5(0x178)];}});var Action_1=require(a10_0x170a24(0x181));Object['defineProperty'](exports,a10_0x170a24(0x18d),{'enumerable':!![],'get':function(){var _0x3b3ea0=a10_0x170a24;return Action_1[_0x3b3ea0(0x18d)];}});var ActionApitest_1=require(a10_0x170a24(0x1ae));Object[a10_0x170a24(0x179)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x37d2ee=a10_0x170a24;return ActionApitest_1[_0x37d2ee(0x191)];}});var Intercept_1=require(a10_0x170a24(0x18c));Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x170),{'enumerable':!![],'get':function(){var _0x18842c=a10_0x170a24;return Intercept_1[_0x18842c(0x170)];}}),Object['defineProperty'](exports,a10_0x170a24(0x183),{'enumerable':!![],'get':function(){var _0x482345=a10_0x170a24;return Intercept_1[_0x482345(0x183)];}});var getRoutes_1=require(a10_0x170a24(0x1a1));Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x177),{'enumerable':!![],'get':function(){var _0x4dab49=a10_0x170a24;return getRoutes_1[_0x4dab49(0x177)];}});var ApiError_1=require(a10_0x170a24(0x196));Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x19d),{'enumerable':!![],'get':function(){var _0x5bcf83=a10_0x170a24;return ApiError_1[_0x5bcf83(0x19d)];}});var cache_1=require(a10_0x170a24(0x1a2));Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x1a8),{'enumerable':!![],'get':function(){var _0x5ce1af=a10_0x170a24;return cache_1[_0x5ce1af(0x1a8)];}});var event_1=require('@anncic-api/event');Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x174),{'enumerable':!![],'get':function(){var _0x1a5c7a=a10_0x170a24;return event_1[_0x1a5c7a(0x174)];}});var ApiService_1=require(a10_0x170a24(0x185));Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x18a),{'enumerable':!![],'get':function(){var _0x781163=a10_0x170a24;return ApiService_1[_0x781163(0x18a)];}});var ExcelService_1=require(a10_0x170a24(0x175));Object['defineProperty'](exports,a10_0x170a24(0x17c),{'enumerable':!![],'get':function(){var _0x494ea7=a10_0x170a24;return ExcelService_1[_0x494ea7(0x17c)];}});var validator_1=require(a10_0x170a24(0x190));Object['defineProperty'](exports,a10_0x170a24(0x194),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x176),{'enumerable':!![],'get':function(){var _0x34bdc2=a10_0x170a24;return validator_1[_0x34bdc2(0x176)];}});var configuration_1=require(a10_0x170a24(0x192));function a10_0x4d7d(_0x206d03,_0x291ddc){var _0x972d20=a10_0x3a21();return a10_0x4d7d=function(_0x4372c4,_0x3dc75a){_0x4372c4=_0x4372c4-0x16d;var _0x3a21f5=_0x972d20[_0x4372c4];return _0x3a21f5;},a10_0x4d7d(_0x206d03,_0x291ddc);}Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x1af),{'enumerable':!![],'get':function(){var _0x50be6c=a10_0x170a24;return configuration_1[_0x50be6c(0x19c)];}});var core_1=require(a10_0x170a24(0x173));Object['defineProperty'](exports,a10_0x170a24(0x188),{'enumerable':!![],'get':function(){var _0x4bca0a=a10_0x170a24;return core_1[_0x4bca0a(0x188)];}}),Object[a10_0x170a24(0x179)](exports,'Files',{'enumerable':!![],'get':function(){var _0x508855=a10_0x170a24;return core_1[_0x508855(0x198)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x17d),{'enumerable':!![],'get':function(){var _0x473bed=a10_0x170a24;return core_1[_0x473bed(0x17d)];}}),Object['defineProperty'](exports,a10_0x170a24(0x16d),{'enumerable':!![],'get':function(){var _0x1b2cd8=a10_0x170a24;return core_1[_0x1b2cd8(0x16d)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x19a),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x193),{'enumerable':!![],'get':function(){var _0x2c9271=a10_0x170a24;return core_1[_0x2c9271(0x193)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x1a3),{'enumerable':!![],'get':function(){var _0x5795c5=a10_0x170a24;return core_1[_0x5795c5(0x1a3)];}}),Object[a10_0x170a24(0x179)](exports,'Init',{'enumerable':!![],'get':function(){var _0x59817d=a10_0x170a24;return core_1[_0x59817d(0x1a7)];}});var core_2=require('@midwayjs/core');Object[a10_0x170a24(0x179)](exports,'App',{'enumerable':!![],'get':function(){var _0x3aa4b8=a10_0x170a24;return core_2[_0x3aa4b8(0x184)];}}),Object['defineProperty'](exports,a10_0x170a24(0x19f),{'enumerable':!![],'get':function(){var _0x481e72=a10_0x170a24;return core_2[_0x481e72(0x19f)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x1b1),{'enumerable':!![],'get':function(){var _0x336caa=a10_0x170a24;return core_2[_0x336caa(0x1b1)];}}),Object[a10_0x170a24(0x179)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x31f306=a10_0x170a24;return core_2[_0x31f306(0x1aa)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x1a9),{'enumerable':!![],'get':function(){var _0x3c9dfe=a10_0x170a24;return core_2[_0x3c9dfe(0x1a9)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x19b),{'enumerable':!![],'get':function(){var _0x4a06bf=a10_0x170a24;return core_2[_0x4a06bf(0x19b)];}}),Object[a10_0x170a24(0x179)](exports,a10_0x170a24(0x18b),{'enumerable':!![],'get':function(){var _0x1fc329=a10_0x170a24;return core_2[_0x1fc329(0x18b)];}}),Object[a10_0x170a24(0x179)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x4744f9=a10_0x170a24;return core_2[_0x4744f9(0x182)];}}),global[a10_0x170a24(0x199)]=getAppsConfig_1[a10_0x170a24(0x199)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x36a8b3=a11_0x3ae2;(function(_0x465e16,_0x20619e){var _0x341ec8=a11_0x3ae2,_0x2b2905=_0x465e16();while(!![]){try{var _0x2a5040=parseInt(_0x341ec8(0x206))/0x1*(parseInt(_0x341ec8(0x1f1))/0x2)+parseInt(_0x341ec8(0x20d))/0x3*(parseInt(_0x341ec8(0x1fa))/0x4)+parseInt(_0x341ec8(0x1fc))/0x5*(parseInt(_0x341ec8(0x1df))/0x6)+-parseInt(_0x341ec8(0x209))/0x7*(parseInt(_0x341ec8(0x1f0))/0x8)+parseInt(_0x341ec8(0x20f))/0x9+-parseInt(_0x341ec8(0x1ff))/0xa*(parseInt(_0x341ec8(0x1f4))/0xb)+-parseInt(_0x341ec8(0x207))/0xc;if(_0x2a5040===_0x20619e)break;else _0x2b2905['push'](_0x2b2905['shift']());}catch(_0x17498b){_0x2b2905['push'](_0x2b2905['shift']());}}}(a11_0x2c2c,0xa985d));var a11_0x33403f=(function(){var _0x131e19=!![];return function(_0x227a44,_0x148f4a){var _0xf10c20=_0x131e19?function(){if(_0x148f4a){var _0x42a111=_0x148f4a['apply'](_0x227a44,arguments);return _0x148f4a=null,_0x42a111;}}:function(){};return _0x131e19=![],_0xf10c20;};}()),a11_0x3da221=a11_0x33403f(this,function(){var _0x4ad662=a11_0x3ae2;return a11_0x3da221[_0x4ad662(0x1ed)]()[_0x4ad662(0x1e8)](_0x4ad662(0x205))[_0x4ad662(0x1ed)]()['constructor'](a11_0x3da221)[_0x4ad662(0x1e8)]('(((.+)+)+)+$');});a11_0x3da221();'use strict';var __decorate=this&&this[a11_0x36a8b3(0x202)]||function(_0x1c67fd,_0x121e51,_0x5ab7d8,_0x37d303){var _0x247b04=a11_0x36a8b3,_0x2e728f=arguments['length'],_0x14f5cf=_0x2e728f<0x3?_0x121e51:_0x37d303===null?_0x37d303=Object['getOwnPropertyDescriptor'](_0x121e51,_0x5ab7d8):_0x37d303,_0x4c3b1d;if(typeof Reflect===_0x247b04(0x1f5)&&typeof Reflect[_0x247b04(0x1f2)]===_0x247b04(0x215))_0x14f5cf=Reflect[_0x247b04(0x1f2)](_0x1c67fd,_0x121e51,_0x5ab7d8,_0x37d303);else{for(var _0x3f9bab=_0x1c67fd[_0x247b04(0x1de)]-0x1;_0x3f9bab>=0x0;_0x3f9bab--)if(_0x4c3b1d=_0x1c67fd[_0x3f9bab])_0x14f5cf=(_0x2e728f<0x3?_0x4c3b1d(_0x14f5cf):_0x2e728f>0x3?_0x4c3b1d(_0x121e51,_0x5ab7d8,_0x14f5cf):_0x4c3b1d(_0x121e51,_0x5ab7d8))||_0x14f5cf;}return _0x2e728f>0x3&&_0x14f5cf&&Object[_0x247b04(0x211)](_0x121e51,_0x5ab7d8,_0x14f5cf),_0x14f5cf;},__metadata=this&&this[a11_0x36a8b3(0x1dd)]||function(_0x4f3b83,_0x24ddc6){var _0xbd2f05=a11_0x36a8b3;if(typeof Reflect===_0xbd2f05(0x1f5)&&typeof Reflect[_0xbd2f05(0x1db)]===_0xbd2f05(0x215))return Reflect[_0xbd2f05(0x1db)](_0x4f3b83,_0x24ddc6);};Object[a11_0x36a8b3(0x211)](exports,'__esModule',{'value':!![]}),exports[a11_0x36a8b3(0x1fb)]=void 0x0;function a11_0x3ae2(_0x47f9ad,_0x30700c){var _0x684fec=a11_0x2c2c();return a11_0x3ae2=function(_0x3da221,_0x33403f){_0x3da221=_0x3da221-0x1d8;var _0x2c2c4f=_0x684fec[_0x3da221];return _0x2c2c4f;},a11_0x3ae2(_0x47f9ad,_0x30700c);}function a11_0x2c2c(){var _0xddf5ad=['HEADERS_CHECKCODE','HEADERS_SIGNATURE','MD5','toString','entries','Provide','8904824iWiaiU','194rpUIRQ','decorate','join','6666SpAhBc','object','push','devices','logintimeout','ScopeEnum','11428JMFjUs','ApiService','285KCDeCX','map','fromEntries','13070vDeGqJ','password','@midwayjs/core','__decorate','TIMEOUT_LOGINTIME','requesttime','(((.+)+)+)+$','9607woApwN','2398380AGiFyZ','toLowerCase','7sFzcFx','HEADERS_DEVICE','device','now','909qfkGJw','token','5399262jecroW','logintime','defineProperty','config','getcheck','缺少头信息:signature','function','signature','undefined','secret','../exception/ApiError','metadata','getsign','__metadata','length','42306gAAhhD','缺少头信息:','ApiError','abs','checkcode','crypto-js','checksign','TIMEOUT','Config','search','请求超时,请重试或改善网络环境'];a11_0x2c2c=function(){return _0xddf5ad;};return a11_0x2c2c();}const crypto_js_1=require(a11_0x36a8b3(0x1e4)),core_1=require(a11_0x36a8b3(0x201)),ApiError_1=require(a11_0x36a8b3(0x1da));let ApiService=class ApiService{[a11_0x36a8b3(0x200)](_0x3a55c0){var _0x3be21a=a11_0x36a8b3,_0x67c360;return _0x3a55c0?(0x0,crypto_js_1['MD5'])(''+_0x3a55c0+(0x0,crypto_js_1[_0x3be21a(0x1ec)])((0x0,crypto_js_1[_0x3be21a(0x1ec)])(''+_0x3a55c0)[_0x3be21a(0x1ed)]()+(''+((_0x67c360=this['config'])===null||_0x67c360===void 0x0?void 0x0:_0x67c360[_0x3be21a(0x200)])))[_0x3be21a(0x1ed)]())[_0x3be21a(0x1ed)]():'';}[a11_0x36a8b3(0x213)](_0x3ad4ab,_0x261fb4,_0x2a6ee3=Date['now']()){var _0x40e12f=a11_0x36a8b3;return{'Token':_0x3ad4ab,'Logintime':_0x2a6ee3,'Checkcode':this[_0x40e12f(0x1e3)](_0x3ad4ab,_0x261fb4,_0x2a6ee3)};}[a11_0x36a8b3(0x1dc)](_0x2cf1fb={}){var _0x3df0e9=a11_0x36a8b3,_0x6771ea,_0x58ae42;const _0xf0bd47=[],_0x59e3aa=Object[_0x3df0e9(0x1fe)](Object[_0x3df0e9(0x1ee)](_0x2cf1fb)[_0x3df0e9(0x1fd)](_0x58bd7b=>[_0x58bd7b[0x0][_0x3df0e9(0x208)](),_0x58bd7b[0x1]]));for(let _0x2421f9 of[_0x3df0e9(0x20b),'requesttime',_0x3df0e9(0x20e),_0x3df0e9(0x210),_0x3df0e9(0x1e3)]){if(typeof _0x59e3aa[_0x2421f9]==_0x3df0e9(0x1d8))throw new AnnError(ApiError_1[_0x3df0e9(0x1e1)]['HEADERS_LACK'],{'message':_0x3df0e9(0x1e0)+_0x2421f9});_0xf0bd47['push'](_0x2421f9+'='+_0x59e3aa[_0x2421f9]);}_0x59e3aa['requesttime']&&((_0x6771ea=_0x59e3aa['requesttime'])===null||_0x6771ea===void 0x0?void 0x0:_0x6771ea['length'])==0xa&&(_0x59e3aa[_0x3df0e9(0x204)]=_0x59e3aa[_0x3df0e9(0x204)]*0x3e8);if(this['config']['timeout']&&Date[_0x3df0e9(0x20c)]()-Math[_0x3df0e9(0x1e2)](_0x59e3aa[_0x3df0e9(0x204)])>this['config']['timeout'])throw new AnnError(ApiError_1[_0x3df0e9(0x1e1)][_0x3df0e9(0x1e6)],{'message':_0x3df0e9(0x1e9),'requesttime':_0x59e3aa[_0x3df0e9(0x204)],'timestamp':Date['now']()});if((((_0x58ae42=this['config'][_0x3df0e9(0x1f7)][_0x59e3aa['device']])===null||_0x58ae42===void 0x0?void 0x0:_0x58ae42[_0x3df0e9(0x1f8)])||0x0)>0x0&&Date[_0x3df0e9(0x20c)]()-Math[_0x3df0e9(0x1e2)](_0x59e3aa['logintime'])>this[_0x3df0e9(0x212)]['devices'][_0x59e3aa[_0x3df0e9(0x20b)]][_0x3df0e9(0x1f8)])throw new AnnError(ApiError_1[_0x3df0e9(0x1e1)][_0x3df0e9(0x203)]);if(!this[_0x3df0e9(0x212)]['devices'][_0x59e3aa[_0x3df0e9(0x20b)]]||!this['config'][_0x3df0e9(0x1f7)][_0x59e3aa[_0x3df0e9(0x20b)]][_0x3df0e9(0x1d9)]||!this[_0x3df0e9(0x212)][_0x3df0e9(0x1f7)][_0x59e3aa[_0x3df0e9(0x20b)]][_0x3df0e9(0x1e3)])throw new AnnError(ApiError_1[_0x3df0e9(0x1e1)][_0x3df0e9(0x20a)]);if(_0x59e3aa[_0x3df0e9(0x20e)]&&_0x59e3aa['checkcode']!=this[_0x3df0e9(0x1e3)](_0x59e3aa[_0x3df0e9(0x20e)],_0x59e3aa[_0x3df0e9(0x20b)],_0x59e3aa['logintime']))throw new AnnError(ApiError_1[_0x3df0e9(0x1e1)][_0x3df0e9(0x1ea)]);return _0xf0bd47[_0x3df0e9(0x1f6)]('secret='+this[_0x3df0e9(0x212)][_0x3df0e9(0x1f7)][_0x59e3aa[_0x3df0e9(0x20b)]][_0x3df0e9(0x1d9)]),(0x0,crypto_js_1[_0x3df0e9(0x1ec)])(_0xf0bd47['sort']()[_0x3df0e9(0x1f3)](''))[_0x3df0e9(0x1ed)]();}[a11_0x36a8b3(0x1e3)](_0x37fb05,_0x589547,_0x40535a=Date[a11_0x36a8b3(0x20c)]()){var _0x17b71e=a11_0x36a8b3,_0x5b35b4,_0x4b2574,_0x2a0a05;if(!((_0x5b35b4=this['config'])===null||_0x5b35b4===void 0x0?void 0x0:_0x5b35b4[_0x17b71e(0x1f7)][_0x589547])||!((_0x2a0a05=(_0x4b2574=this[_0x17b71e(0x212)])===null||_0x4b2574===void 0x0?void 0x0:_0x4b2574['devices'][_0x589547])===null||_0x2a0a05===void 0x0?void 0x0:_0x2a0a05[_0x17b71e(0x1e3)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x17b71e(0x1ec)])(''+_0x37fb05+(0x0,crypto_js_1[_0x17b71e(0x1ec)])(''+_0x40535a+(''+this[_0x17b71e(0x212)][_0x17b71e(0x1f7)][_0x589547]['checkcode']))[_0x17b71e(0x1ed)]())[_0x17b71e(0x1ed)]();}[a11_0x36a8b3(0x1e5)](_0x1cf050={}){var _0x24b522=a11_0x36a8b3;const _0x4293ef=Object[_0x24b522(0x1fe)](Object['entries'](_0x1cf050)[_0x24b522(0x1fd)](_0x2b165b=>[_0x2b165b[0x0][_0x24b522(0x208)](),_0x2b165b[0x1]]));if(!(_0x4293ef===null||_0x4293ef===void 0x0?void 0x0:_0x4293ef[_0x24b522(0x216)]))throw new AnnError(ApiError_1[_0x24b522(0x1e1)]['HEADERS_LACK'],{'message':_0x24b522(0x214)});if((_0x4293ef===null||_0x4293ef===void 0x0?void 0x0:_0x4293ef['signature'])!=this['getsign'](_0x4293ef))throw new AnnError(ApiError_1[_0x24b522(0x1e1)][_0x24b522(0x1eb)]);return!![];}};__decorate([(0x0,core_1[a11_0x36a8b3(0x1e7)])('anncicapi'),__metadata('design:type',Object)],ApiService['prototype'],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x36a8b3(0x1ef)])(),(0x0,core_1['Scope'])(core_1[a11_0x36a8b3(0x1f9)]['Singleton'])],ApiService),exports[a11_0x36a8b3(0x1fb)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x496e11=a12_0x273f;(function(_0x583473,_0x121997){const _0x38f106=a12_0x273f,_0x4db5ce=_0x583473();while(!![]){try{const _0x3062f7=-parseInt(_0x38f106(0x1d2))/0x1+parseInt(_0x38f106(0x195))/0x2*(-parseInt(_0x38f106(0x19f))/0x3)+parseInt(_0x38f106(0x1bb))/0x4+-parseInt(_0x38f106(0x1d1))/0x5*(parseInt(_0x38f106(0x1b9))/0x6)+parseInt(_0x38f106(0x1b7))/0x7+-parseInt(_0x38f106(0x1ae))/0x8*(-parseInt(_0x38f106(0x187))/0x9)+-parseInt(_0x38f106(0x1b0))/0xa*(parseInt(_0x38f106(0x1ac))/0xb);if(_0x3062f7===_0x121997)break;else _0x4db5ce['push'](_0x4db5ce['shift']());}catch(_0x3f0a2e){_0x4db5ce['push'](_0x4db5ce['shift']());}}}(a12_0x3daa,0xc246c));const a12_0xc79592=(function(){let _0x5413ee=!![];return function(_0x4c89f8,_0x1d1d5c){const _0x3c9b19=_0x5413ee?function(){if(_0x1d1d5c){const _0x41fc62=_0x1d1d5c['apply'](_0x4c89f8,arguments);return _0x1d1d5c=null,_0x41fc62;}}:function(){};return _0x5413ee=![],_0x3c9b19;};}()),a12_0x4252ee=a12_0xc79592(this,function(){const _0x567393=a12_0x273f;return a12_0x4252ee['toString']()['search'](_0x567393(0x1d6))[_0x567393(0x1a9)]()[_0x567393(0x1d5)](a12_0x4252ee)[_0x567393(0x1a7)](_0x567393(0x1d6));});a12_0x4252ee();'use strict';function a12_0x3daa(){const _0xd8e59f=['ApitestStaticController','Config','decorate','apitest','push','description','existsSync','object','3ngIFxn','request','Singleton','apitesthtml','defineProperty','Controller','/apitest-:module','config','search','filepath','toString','Scope','isDevelopmentEnvironment','11iRBYwI','design:type','1887736wdFuGe','substring','3953810EVkPmk','/apiteststatic/','public,\x20max-age=604800','__esModule','/apitest','design:returntype','join','7799715BSNMOd','apidoc','453246KNptRY','application/javascript;\x20charset=utf-8','1278836uqIIBY','apiteststatic','__metadata','devices','Get','set','function','.css','ApitestService','module','length','Environment','url','cache-control','design:paramtypes','/index.html','/apiteststatic/*','../../public/','summary','../helper/getRoutes','Provide','replace','5WzMwgO','695564EeQIUG','routes','@midwayjs/core','constructor','(((.+)+)+)+$','utf-8','Inject','__devices__','45ogFcrt','metadata','__decorate','extname','../../public/index.html','ctx','stringify','anncicapi','content-type','path','route','apitestmodule','prototype','readFileSync','1303094HvcaHD','__param'];a12_0x3daa=function(){return _0xd8e59f;};return a12_0x3daa();}var __decorate=this&&this[a12_0x496e11(0x189)]||function(_0x223bc4,_0x5f112d,_0x36ec92,_0x3859f0){const _0x1092f3=a12_0x496e11;var _0x51cf61=arguments[_0x1092f3(0x1c5)],_0x5f494f=_0x51cf61<0x3?_0x5f112d:_0x3859f0===null?_0x3859f0=Object['getOwnPropertyDescriptor'](_0x5f112d,_0x36ec92):_0x3859f0,_0x24bbcd;if(typeof Reflect===_0x1092f3(0x19e)&&typeof Reflect[_0x1092f3(0x199)]===_0x1092f3(0x1c1))_0x5f494f=Reflect[_0x1092f3(0x199)](_0x223bc4,_0x5f112d,_0x36ec92,_0x3859f0);else{for(var _0x296854=_0x223bc4['length']-0x1;_0x296854>=0x0;_0x296854--)if(_0x24bbcd=_0x223bc4[_0x296854])_0x5f494f=(_0x51cf61<0x3?_0x24bbcd(_0x5f494f):_0x51cf61>0x3?_0x24bbcd(_0x5f112d,_0x36ec92,_0x5f494f):_0x24bbcd(_0x5f112d,_0x36ec92))||_0x5f494f;}return _0x51cf61>0x3&&_0x5f494f&&Object[_0x1092f3(0x1a3)](_0x5f112d,_0x36ec92,_0x5f494f),_0x5f494f;},__metadata=this&&this[a12_0x496e11(0x1bd)]||function(_0x6a7d0c,_0x560e12){const _0x51249d=a12_0x496e11;if(typeof Reflect===_0x51249d(0x19e)&&typeof Reflect[_0x51249d(0x188)]===_0x51249d(0x1c1))return Reflect[_0x51249d(0x188)](_0x6a7d0c,_0x560e12);},__param=this&&this[a12_0x496e11(0x196)]||function(_0x16b17d,_0xb4da24){return function(_0x546e7b,_0x5518c7){_0xb4da24(_0x546e7b,_0x5518c7,_0x16b17d);};};function a12_0x273f(_0x3d041e,_0xe6366a){const _0x54c7c8=a12_0x3daa();return a12_0x273f=function(_0x4252ee,_0xc79592){_0x4252ee=_0x4252ee-0x184;let _0x3daaf0=_0x54c7c8[_0x4252ee];return _0x3daaf0;},a12_0x273f(_0x3d041e,_0xe6366a);}Object[a12_0x496e11(0x1a3)](exports,a12_0x496e11(0x1b3),{'value':!![]}),exports[a12_0x496e11(0x197)]=exports[a12_0x496e11(0x1c3)]=void 0x0;const path_1=require(a12_0x496e11(0x190)),fs_1=require('fs'),core_1=require(a12_0x496e11(0x1d4)),core_2=require(a12_0x496e11(0x1d4)),core_3=require(a12_0x496e11(0x1d4)),getRoutes_1=require(a12_0x496e11(0x1ce));let ApitestService=class ApitestService{async[a12_0x496e11(0x1b8)](_0x319b0e){const _0x27ae52=a12_0x496e11,_0x2dbdf0=(0x0,getRoutes_1['getRoutes'])(_0x319b0e),_0x4fd3d5=[];for(let _0x467972 in _0x2dbdf0){for(let _0x552897 in _0x2dbdf0[_0x467972][_0x27ae52(0x1d3)]){let _0x5b6638=_0x2dbdf0[_0x467972]['routes'][_0x552897],_0x18f282=[];for(let _0x3c0e9d in _0x5b6638['request']){_0x18f282[_0x27ae52(0x19b)](_0x5b6638[_0x27ae52(0x1a0)][_0x3c0e9d]);}_0x4fd3d5[_0x27ae52(0x19b)]({'title':_0x2dbdf0[_0x467972]['summary']+':'+_0x5b6638[_0x27ae52(0x1cd)],'prefix':_0x2dbdf0[_0x467972]['prefix'],'router':_0x5b6638[_0x27ae52(0x191)],'method':_0x5b6638['method'],'describe':_0x5b6638[_0x27ae52(0x19c)]||'','filepath':_0x2dbdf0[_0x467972]['filepath']||'','request':_0x18f282});}}const _0x3a2812=(0x0,path_1[_0x27ae52(0x1b6)])(__dirname,_0x27ae52(0x18b));return(0x0,fs_1[_0x27ae52(0x194)])(_0x3a2812,{'encoding':_0x27ae52(0x184)})['replace'](/__res__/g,_0x27ae52(0x1b1))[_0x27ae52(0x1d0)]('__apiList__',JSON[_0x27ae52(0x18d)](_0x4fd3d5))[_0x27ae52(0x1d0)](_0x27ae52(0x186),JSON[_0x27ae52(0x18d)](this[_0x27ae52(0x1a6)][_0x27ae52(0x1be)]));}};__decorate([(0x0,core_3[a12_0x496e11(0x198)])(a12_0x496e11(0x18e)),__metadata('design:type',Object)],ApitestService[a12_0x496e11(0x193)],a12_0x496e11(0x1a6),void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x496e11(0x1cf)])(a12_0x496e11(0x19a)),(0x0,core_3[a12_0x496e11(0x1aa)])(core_3['ScopeEnum'][a12_0x496e11(0x1a1)])],ApitestService),exports[a12_0x496e11(0x1c3)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x496e11(0x1a2)](){const _0x3b073f=a12_0x496e11;if(this[_0x3b073f(0x19a)]){const _0x269104={'module':![]};return this[_0x3b073f(0x1c6)][_0x3b073f(0x1ab)]()&&(_0x269104[_0x3b073f(0x1a8)]=!![]),await this['ApitestService'][_0x3b073f(0x1b8)](_0x269104);}return'';}async[a12_0x496e11(0x192)](_0x197a3f){const _0x1cb3d5=a12_0x496e11;if(this[_0x1cb3d5(0x19a)]){const _0x3333f4={'module':_0x197a3f};return this[_0x1cb3d5(0x1c6)][_0x1cb3d5(0x1ab)]()&&(_0x3333f4[_0x1cb3d5(0x1a8)]=!![]),await this[_0x1cb3d5(0x1c3)][_0x1cb3d5(0x1b8)](_0x3333f4);}return'';}async[a12_0x496e11(0x1bc)](){const _0x5cda7d=a12_0x496e11;if((0x0,path_1['extname'])(this[_0x5cda7d(0x18c)][_0x5cda7d(0x1a0)][_0x5cda7d(0x1c7)])){var _0x3d8edf=(0x0,path_1[_0x5cda7d(0x1b6)])(__dirname,_0x5cda7d(0x1cc)+this[_0x5cda7d(0x18c)][_0x5cda7d(0x1a0)][_0x5cda7d(0x1c7)][_0x5cda7d(0x1d0)]('/apiteststatic/','/'));if(_0x3d8edf[_0x5cda7d(0x1af)](_0x3d8edf['length']-0xb)!=_0x5cda7d(0x1ca)){this['ctx'][_0x5cda7d(0x1c0)](_0x5cda7d(0x1c8),_0x5cda7d(0x1b2));if((0x0,path_1['extname'])(this[_0x5cda7d(0x18c)][_0x5cda7d(0x1a0)][_0x5cda7d(0x1c7)])=='.js')this[_0x5cda7d(0x18c)][_0x5cda7d(0x1c0)]('content-type',_0x5cda7d(0x1ba));else(0x0,path_1[_0x5cda7d(0x18a)])(this['ctx'][_0x5cda7d(0x1a0)][_0x5cda7d(0x1c7)])==_0x5cda7d(0x1c2)&&this[_0x5cda7d(0x18c)][_0x5cda7d(0x1c0)](_0x5cda7d(0x18f),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x5cda7d(0x19d)])(_0x3d8edf)&&(0x0,fs_1[_0x5cda7d(0x194)])(_0x3d8edf,{'encoding':_0x5cda7d(0x184)});}}return'';}};__decorate([(0x0,core_3[a12_0x496e11(0x185)])(),__metadata(a12_0x496e11(0x1ad),Object)],ApitestStaticController[a12_0x496e11(0x193)],a12_0x496e11(0x18c),void 0x0),__decorate([(0x0,core_3[a12_0x496e11(0x185)])(),__metadata(a12_0x496e11(0x1ad),core_1['MidwayEnvironmentService'])],ApitestStaticController[a12_0x496e11(0x193)],a12_0x496e11(0x1c6),void 0x0),__decorate([(0x0,core_3[a12_0x496e11(0x185)])(),__metadata(a12_0x496e11(0x1ad),ApitestService)],ApitestStaticController[a12_0x496e11(0x193)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a12_0x496e11(0x198)])(a12_0x496e11(0x19a)),__metadata(a12_0x496e11(0x1ad),Boolean)],ApitestStaticController[a12_0x496e11(0x193)],a12_0x496e11(0x19a),void 0x0),__decorate([(0x0,core_3[a12_0x496e11(0x198)])(a12_0x496e11(0x18e)),__metadata(a12_0x496e11(0x1ad),Object)],ApitestStaticController[a12_0x496e11(0x193)],'config',void 0x0),__decorate([(0x0,core_2[a12_0x496e11(0x1bf)])(a12_0x496e11(0x1b4)),__metadata(a12_0x496e11(0x1ad),Function),__metadata(a12_0x496e11(0x1c9),[]),__metadata(a12_0x496e11(0x1b5),Promise)],ApitestStaticController[a12_0x496e11(0x193)],a12_0x496e11(0x1a2),null),__decorate([(0x0,core_2[a12_0x496e11(0x1bf)])(a12_0x496e11(0x1a5)),__param(0x0,(0x0,core_2['Param'])(a12_0x496e11(0x1c4))),__metadata(a12_0x496e11(0x1ad),Function),__metadata(a12_0x496e11(0x1c9),[String]),__metadata(a12_0x496e11(0x1b5),Promise)],ApitestStaticController[a12_0x496e11(0x193)],a12_0x496e11(0x192),null),__decorate([(0x0,core_2[a12_0x496e11(0x1bf)])(a12_0x496e11(0x1cb)),__metadata('design:type',Function),__metadata(a12_0x496e11(0x1c9),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x496e11(0x193)],a12_0x496e11(0x1bc),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x496e11(0x1a4)])('/'),(0x0,core_3[a12_0x496e11(0x1aa)])(core_3['ScopeEnum']['Request'])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0xc57794=a13_0x3d68;(function(_0x563b73,_0x2c32de){const _0x4504e3=a13_0x3d68,_0x55e8dc=_0x563b73();while(!![]){try{const _0x33c440=-parseInt(_0x4504e3(0x179))/0x1*(parseInt(_0x4504e3(0x190))/0x2)+-parseInt(_0x4504e3(0x17d))/0x3*(parseInt(_0x4504e3(0x18c))/0x4)+parseInt(_0x4504e3(0x19e))/0x5+-parseInt(_0x4504e3(0x16d))/0x6*(parseInt(_0x4504e3(0x175))/0x7)+parseInt(_0x4504e3(0x199))/0x8*(-parseInt(_0x4504e3(0x166))/0x9)+parseInt(_0x4504e3(0x198))/0xa*(parseInt(_0x4504e3(0x191))/0xb)+parseInt(_0x4504e3(0x17f))/0xc*(parseInt(_0x4504e3(0x161))/0xd);if(_0x33c440===_0x2c32de)break;else _0x55e8dc['push'](_0x55e8dc['shift']());}catch(_0x533d77){_0x55e8dc['push'](_0x55e8dc['shift']());}}}(a13_0x5388,0x969c2));const a13_0x2929d7=(function(){let _0x3a15c9=!![];return function(_0x1256c3,_0x46612a){const _0x5aeca0=_0x3a15c9?function(){if(_0x46612a){const _0x34a2ed=_0x46612a['apply'](_0x1256c3,arguments);return _0x46612a=null,_0x34a2ed;}}:function(){};return _0x3a15c9=![],_0x5aeca0;};}()),a13_0x1fbe42=a13_0x2929d7(this,function(){const _0x448f01=a13_0x3d68;return a13_0x1fbe42[_0x448f01(0x164)]()[_0x448f01(0x169)](_0x448f01(0x193))[_0x448f01(0x164)]()[_0x448f01(0x189)](a13_0x1fbe42)['search'](_0x448f01(0x193));});a13_0x1fbe42();'use strict';function a13_0x3d68(_0x77e1bc,_0x1fe82c){const _0x5e3880=a13_0x5388();return a13_0x3d68=function(_0x1fbe42,_0x2929d7){_0x1fbe42=_0x1fbe42-0x15b;let _0x538841=_0x5e3880[_0x1fbe42];return _0x538841;},a13_0x3d68(_0x77e1bc,_0x1fe82c);}var __decorate=this&&this[a13_0xc57794(0x180)]||function(_0x4b6a39,_0x1048df,_0x2a5ef6,_0x47b3ec){const _0x2f4cc1=a13_0xc57794;var _0x2368da=arguments[_0x2f4cc1(0x176)],_0x4b539d=_0x2368da<0x3?_0x1048df:_0x47b3ec===null?_0x47b3ec=Object[_0x2f4cc1(0x16c)](_0x1048df,_0x2a5ef6):_0x47b3ec,_0x2f0ffd;if(typeof Reflect===_0x2f4cc1(0x192)&&typeof Reflect['decorate']==='function')_0x4b539d=Reflect[_0x2f4cc1(0x1a1)](_0x4b6a39,_0x1048df,_0x2a5ef6,_0x47b3ec);else{for(var _0x53c208=_0x4b6a39[_0x2f4cc1(0x176)]-0x1;_0x53c208>=0x0;_0x53c208--)if(_0x2f0ffd=_0x4b6a39[_0x53c208])_0x4b539d=(_0x2368da<0x3?_0x2f0ffd(_0x4b539d):_0x2368da>0x3?_0x2f0ffd(_0x1048df,_0x2a5ef6,_0x4b539d):_0x2f0ffd(_0x1048df,_0x2a5ef6))||_0x4b539d;}return _0x2368da>0x3&&_0x4b539d&&Object[_0x2f4cc1(0x15f)](_0x1048df,_0x2a5ef6,_0x4b539d),_0x4b539d;},__metadata=this&&this['__metadata']||function(_0x3d99c6,_0x3b2398){const _0x5b2f7c=a13_0xc57794;if(typeof Reflect===_0x5b2f7c(0x192)&&typeof Reflect[_0x5b2f7c(0x18d)]==='function')return Reflect[_0x5b2f7c(0x18d)](_0x3d99c6,_0x3b2398);};Object[a13_0xc57794(0x15f)](exports,a13_0xc57794(0x172),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a13_0xc57794(0x15b)),koasend=require(a13_0xc57794(0x16b)),core_1=require(a13_0xc57794(0x16f));let ExcelService=class ExcelService{async['parse'](_0x1d1eb1,_0x32b452,_0x20fce4=[0x0]){const _0x372586=a13_0xc57794;var _0x28fd9c,_0x6e31d9;const _0xc96f4c=new exceljs[(_0x372586(0x162))](),_0x51ea96=[];let _0x454e4f=_0x1d1eb1['replace'](/(\\|\/)/g,'/')[_0x372586(0x17c)](/\/{2,}/g,'/');!(_0x454e4f===null||_0x454e4f===void 0x0?void 0x0:_0x454e4f[_0x372586(0x187)]('/'))&&(_0x454e4f=this[_0x372586(0x197)]['getAppDir']()+'/'+_0x454e4f);try{await _0xc96f4c[_0x372586(0x19b)][_0x372586(0x16a)](_0x454e4f);}catch(_0x85e109){return console[_0x372586(0x182)]('Api\x20Excel\x20Error:\x20'+_0x454e4f+_0x372586(0x160)),_0x51ea96;}for(const _0x32931f of _0x20fce4){const _0x57b7e6=lodash['isNumber'](_0x32931f)?((_0x28fd9c=_0xc96f4c[_0x372586(0x15c)])===null||_0x28fd9c===void 0x0?void 0x0:_0x28fd9c[_0x32931f])||undefined:_0xc96f4c[_0x372586(0x163)](_0x32931f);if(_0x57b7e6){var _0xa27c3e=0x1;const _0x36801c=_0x57b7e6['getRow'](0x1),_0x5c8447=await new Promise(_0x2904e9=>{const _0x597bbd=_0x372586,_0x367b62={};_0x36801c[_0x597bbd(0x181)]((_0x278aae,_0x1ca931)=>{const _0x53f85c=_0x597bbd;for(const _0x540814 of _0x32b452){if(_0x278aae[_0x53f85c(0x1a0)]==_0x540814[_0x53f85c(0x188)])_0xa27c3e=0x2,_0x367b62[_0x540814[_0x53f85c(0x185)]]={'header':_0x278aae[_0x53f85c(0x16e)],'handler':_0x540814[_0x53f85c(0x18e)]};else{if(!_0x367b62[_0x540814[_0x53f85c(0x185)]])try{const _0x1fe9d3=_0x36801c&&_0x36801c['getCell'](_0x540814[_0x53f85c(0x188)]);_0x1fe9d3&&(_0x367b62[_0x540814[_0x53f85c(0x185)]]={'header':_0x1fe9d3[_0x53f85c(0x16e)],'handler':_0x540814['handler']});}catch{}}}_0x36801c[_0x53f85c(0x18a)]==_0x1ca931&&_0x2904e9(_0x367b62);});});for(const _0x56b2a3 of _0x57b7e6['findRows'](_0xa27c3e,_0x57b7e6[_0x372586(0x19c)])){const _0x344c80={};for(const _0x3b4675 in _0x5c8447){if(_0x5c8447[_0x3b4675][_0x372586(0x188)]){const _0x320be8=_0x56b2a3&&_0x56b2a3[_0x372586(0x19f)](_0x5c8447[_0x3b4675][_0x372586(0x188)]);try{_0x320be8[_0x372586(0x164)]();}catch(_0x16632b){_0x320be8[_0x372586(0x164)]=()=>{const _0x1700a1=_0x372586;var _0x2faa6c;return''+(((_0x2faa6c=_0x320be8===null||_0x320be8===void 0x0?void 0x0:_0x320be8['model'])===null||_0x2faa6c===void 0x0?void 0x0:_0x2faa6c[_0x1700a1(0x1a0)])||'');};}typeof((_0x6e31d9=_0x5c8447[_0x3b4675])===null||_0x6e31d9===void 0x0?void 0x0:_0x6e31d9[_0x372586(0x18e)])==_0x372586(0x19a)?_0x344c80[_0x3b4675]=await _0x5c8447[_0x3b4675]['handler'](lodash[_0x372586(0x15d)]({},_0x3b4675,(_0x320be8===null||_0x320be8===void 0x0?void 0x0:_0x320be8[_0x372586(0x164)]())||''),_0x320be8[_0x372586(0x19d)]):_0x344c80[_0x3b4675]=(_0x320be8===null||_0x320be8===void 0x0?void 0x0:_0x320be8[_0x372586(0x164)]())||'';}}Object['keys'](_0x344c80)['length']>0x0&&Object['values'](_0x344c80)['filter'](_0x38bd19=>_0x38bd19!=='')[_0x372586(0x176)]>0x0&&_0x51ea96['push'](_0x344c80);}}}return _0x51ea96;}async[a13_0xc57794(0x186)](_0x142833,_0x17571c,_0x24a047,_0x421ff9){const _0x5d326e=a13_0xc57794;var _0x19cbbd,_0x4dd4e5;const _0x151549=new exceljs[(_0x5d326e(0x162))](),_0x58f708={},_0x490f28=[],_0x193c19=_0x151549[_0x5d326e(0x174)](_0x5d326e(0x168),{'views':[{'state':_0x5d326e(0x173),'xSplit':0x1}]});for(const _0x331d07 in _0x17571c){_0x58f708[_0x17571c[_0x331d07][_0x5d326e(0x185)]]=_0x17571c[_0x331d07][_0x5d326e(0x188)],_0x490f28[_0x5d326e(0x165)]({'header':_0x17571c[_0x331d07][_0x5d326e(0x188)],'key':(_0x19cbbd=_0x17571c[_0x331d07])===null||_0x19cbbd===void 0x0?void 0x0:_0x19cbbd[_0x5d326e(0x185)]['replace'](/\./g,'_')});}_0x193c19[_0x5d326e(0x17b)]=_0x490f28;for(const _0x250a62 of _0x24a047){const _0x4ba468={};for(const _0x5f4469 in _0x17571c){typeof((_0x4dd4e5=_0x17571c[_0x5f4469])===null||_0x4dd4e5===void 0x0?void 0x0:_0x4dd4e5[_0x5d326e(0x18e)])==_0x5d326e(0x19a)?_0x4ba468[_0x17571c[_0x5f4469]['key'][_0x5d326e(0x17c)](/\./g,'_')]=await _0x17571c[_0x5f4469][_0x5d326e(0x18e)](_0x250a62):_0x4ba468[_0x17571c[_0x5f4469][_0x5d326e(0x185)][_0x5d326e(0x17c)](/\./g,'_')]=lodash['get'](_0x250a62,_0x17571c[_0x5f4469][_0x5d326e(0x185)],'');}_0x193c19[_0x5d326e(0x183)](_0x4ba468);}let _0xe47a56='';const _0x2c0a02=_0x142833+'-'+lodash[_0x5d326e(0x170)](0x186a0,0xf423f)+'.xlsx';if(_0x421ff9&&_0x421ff9[_0x5d326e(0x187)]('/'))_0xe47a56=''+_0x421ff9;else _0x421ff9&&!_0x421ff9[_0x5d326e(0x187)]('/')&&!_0x421ff9['startsWith']('\x5c')?_0xe47a56=this['app'][_0x5d326e(0x194)]()+'/'+_0x421ff9:_0xe47a56=this[_0x5d326e(0x197)][_0x5d326e(0x194)]()+'/public/xlsx/'+dayjs()[_0x5d326e(0x195)](_0x5d326e(0x178));return(_0xe47a56[_0x5d326e(0x167)]('/')||_0xe47a56[_0x5d326e(0x167)]('\x5c'))&&(_0xe47a56=_0xe47a56[_0x5d326e(0x1a2)](0x0,_0xe47a56['length']-0x1)),_0xe47a56=_0xe47a56[_0x5d326e(0x17c)](/(\\|\/)/g,'/')[_0x5d326e(0x17c)](/\/{2,}/g,'/'),!fs[_0x5d326e(0x18f)](_0xe47a56)&&fs['mkdirSync'](_0xe47a56,{'recursive':!![]}),await _0x151549[_0x5d326e(0x19b)][_0x5d326e(0x17e)]((_0xe47a56+'/'+_0x2c0a02)[_0x5d326e(0x17c)](/(\\|\/)/g,'/')[_0x5d326e(0x17c)](/\/{2,}/g,'/')),{'filename':_0x2c0a02,'filepath':(_0xe47a56[_0x5d326e(0x1a2)]((''+this[_0x5d326e(0x197)]['getAppDir']())[_0x5d326e(0x176)])+'/'+_0x2c0a02)[_0x5d326e(0x17c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0x442b98,_0x11f9f8){return await koasend(_0x442b98,''+_0x11f9f8);}};function a13_0x5388(){const _0x3f3af1=['9517592ipTODu','function','xlsx','rowCount','model','4438350CHWiKi','getCell','value','decorate','substring','exceljs','worksheets','set','Scope','defineProperty','\x20is\x20read\x20fail','13nwkNYX','Workbook','getWorksheet','toString','push','9EBUugd','endsWith','Sheet\x201','search','readFile','koa-send','getOwnPropertyDescriptor','12PzGvve','col','@midwayjs/core','random','ScopeEnum','__esModule','frozen','addWorksheet','1384502phbrZq','length','design:type','YYYY/MM/DD','1166671AnoVUA','Provide','columns','replace','3emHdOz','writeFile','26493396EYDURW','__decorate','eachCell','log','addRow','prototype','key','export','startsWith','header','constructor','cellCount','App','1632236LIehsh','metadata','handler','existsSync','2xkfUrz','22fHGHJt','object','(((.+)+)+)+$','getAppDir','format','ExcelService','app','3407230igauEA'];a13_0x5388=function(){return _0x3f3af1;};return a13_0x5388();}__decorate([(0x0,core_1[a13_0xc57794(0x18b)])(),__metadata(a13_0xc57794(0x177),Object)],ExcelService[a13_0xc57794(0x184)],a13_0xc57794(0x197),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0xc57794(0x17a)])(),(0x0,core_1[a13_0xc57794(0x15e)])(core_1[a13_0xc57794(0x171)]['Singleton'])],ExcelService),exports[a13_0xc57794(0x196)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a14_0x420850=a14_0x1514;(function(_0x1f8c70,_0x33ff20){var _0x48710e=a14_0x1514,_0x299d87=_0x1f8c70();while(!![]){try{var _0x34e3d5=parseInt(_0x48710e(0x1ea))/0x1+-parseInt(_0x48710e(0x1e7))/0x2+-parseInt(_0x48710e(0x1e9))/0x3*(-parseInt(_0x48710e(0x1d9))/0x4)+-parseInt(_0x48710e(0x1e0))/0x5+-parseInt(_0x48710e(0x1da))/0x6*(parseInt(_0x48710e(0x1d8))/0x7)+parseInt(_0x48710e(0x1e6))/0x8*(-parseInt(_0x48710e(0x1d6))/0x9)+parseInt(_0x48710e(0x1e3))/0xa*(parseInt(_0x48710e(0x1d5))/0xb);if(_0x34e3d5===_0x33ff20)break;else _0x299d87['push'](_0x299d87['shift']());}catch(_0x50e11b){_0x299d87['push'](_0x299d87['shift']());}}}(a14_0xddec,0x6ac29));var a14_0x16bf17=(function(){var _0x406bfd=!![];return function(_0x74db99,_0xf82be5){var _0x127d8e=_0x406bfd?function(){var _0x4933c2=a14_0x1514;if(_0xf82be5){var _0x4c302c=_0xf82be5[_0x4933c2(0x1e1)](_0x74db99,arguments);return _0xf82be5=null,_0x4c302c;}}:function(){};return _0x406bfd=![],_0x127d8e;};}()),a14_0x760ef=a14_0x16bf17(this,function(){var _0x381763=a14_0x1514;return a14_0x760ef['toString']()[_0x381763(0x1dc)]('(((.+)+)+)+$')['toString']()[_0x381763(0x1e8)](a14_0x760ef)[_0x381763(0x1dc)](_0x381763(0x1e5));});a14_0x760ef();function a14_0xddec(){var _0x434222=['1398339kTzAEW','AppsConfigTmp','73514LwEris','48668xRnrsz','258ippARM','anncic-api:action:route','search','ACTION_ROUTE_KEY','__esModule','defineProperty','1525605frwLjb','apply','APPSCONFIG_KEY','2470eZhIBr','ACTION_KEY','(((.+)+)+)+$','40tTTGBI','1646082TqLyXh','constructor','111OWGAza','363020gfdjcn','88209uWUJpX'];a14_0xddec=function(){return _0x434222;};return a14_0xddec();}'use strict';function a14_0x1514(_0x5b45d2,_0x74ef0){var _0x1163f1=a14_0xddec();return a14_0x1514=function(_0x760ef,_0x16bf17){_0x760ef=_0x760ef-0x1d5;var _0xddec8c=_0x1163f1[_0x760ef];return _0xddec8c;},a14_0x1514(_0x5b45d2,_0x74ef0);}Object[a14_0x420850(0x1df)](exports,a14_0x420850(0x1de),{'value':!![]}),exports['AppsConfigTmp']=exports[a14_0x420850(0x1e2)]=exports[a14_0x420850(0x1dd)]=exports[a14_0x420850(0x1e4)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a14_0x420850(0x1dd)]=a14_0x420850(0x1db),exports[a14_0x420850(0x1e2)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a14_0x420850(0x1d7)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x27c16b=a15_0x590d;(function(_0x431195,_0x2f8dc9){var _0x3e9db2=a15_0x590d,_0x21e093=_0x431195();while(!![]){try{var _0x47c92b=-parseInt(_0x3e9db2(0x18a))/0x1+-parseInt(_0x3e9db2(0x18f))/0x2*(-parseInt(_0x3e9db2(0x170))/0x3)+parseInt(_0x3e9db2(0x186))/0x4+-parseInt(_0x3e9db2(0x16f))/0x5*(parseInt(_0x3e9db2(0x171))/0x6)+parseInt(_0x3e9db2(0x18e))/0x7*(-parseInt(_0x3e9db2(0x17c))/0x8)+parseInt(_0x3e9db2(0x18d))/0x9+parseInt(_0x3e9db2(0x18b))/0xa;if(_0x47c92b===_0x2f8dc9)break;else _0x21e093['push'](_0x21e093['shift']());}catch(_0x4741d9){_0x21e093['push'](_0x21e093['shift']());}}}(a15_0x423b,0xd3dae));var a15_0x1c3608=(function(){var _0x28d743=!![];return function(_0x3f06e0,_0x282a49){var _0x1d9981=_0x28d743?function(){var _0x3ec8a9=a15_0x590d;if(_0x282a49){var _0xa99577=_0x282a49[_0x3ec8a9(0x176)](_0x3f06e0,arguments);return _0x282a49=null,_0xa99577;}}:function(){};return _0x28d743=![],_0x1d9981;};}()),a15_0x928445=a15_0x1c3608(this,function(){var _0x4a72c6=a15_0x590d;return a15_0x928445[_0x4a72c6(0x172)]()[_0x4a72c6(0x17a)]('(((.+)+)+)+$')[_0x4a72c6(0x172)]()[_0x4a72c6(0x174)](a15_0x928445)[_0x4a72c6(0x17a)](_0x4a72c6(0x191));});a15_0x928445();'use strict';var __decorate=this&&this[a15_0x27c16b(0x193)]||function(_0x44b33e,_0x8a9a97,_0x2e9b53,_0x543d99){var _0x43745b=a15_0x27c16b,_0x66f49c=arguments[_0x43745b(0x184)],_0xdd2f14=_0x66f49c<0x3?_0x8a9a97:_0x543d99===null?_0x543d99=Object['getOwnPropertyDescriptor'](_0x8a9a97,_0x2e9b53):_0x543d99,_0x421bbb;if(typeof Reflect===_0x43745b(0x192)&&typeof Reflect['decorate']===_0x43745b(0x185))_0xdd2f14=Reflect[_0x43745b(0x187)](_0x44b33e,_0x8a9a97,_0x2e9b53,_0x543d99);else{for(var _0x3c1f61=_0x44b33e['length']-0x1;_0x3c1f61>=0x0;_0x3c1f61--)if(_0x421bbb=_0x44b33e[_0x3c1f61])_0xdd2f14=(_0x66f49c<0x3?_0x421bbb(_0xdd2f14):_0x66f49c>0x3?_0x421bbb(_0x8a9a97,_0x2e9b53,_0xdd2f14):_0x421bbb(_0x8a9a97,_0x2e9b53))||_0xdd2f14;}return _0x66f49c>0x3&&_0xdd2f14&&Object[_0x43745b(0x189)](_0x8a9a97,_0x2e9b53,_0xdd2f14),_0xdd2f14;},__metadata=this&&this[a15_0x27c16b(0x17e)]||function(_0x59229f,_0x5b05af){var _0x21faa5=a15_0x27c16b;if(typeof Reflect==='object'&&typeof Reflect[_0x21faa5(0x181)]===_0x21faa5(0x185))return Reflect[_0x21faa5(0x181)](_0x59229f,_0x5b05af);};function a15_0x590d(_0xc153d7,_0x368ca3){var _0x323f56=a15_0x423b();return a15_0x590d=function(_0x928445,_0x1c3608){_0x928445=_0x928445-0x16f;var _0x423bbc=_0x323f56[_0x928445];return _0x423bbc;},a15_0x590d(_0xc153d7,_0x368ca3);}Object['defineProperty'](exports,a15_0x27c16b(0x183),{'value':!![]}),exports[a15_0x27c16b(0x179)]=void 0x0;const validator_1=require('@anncic-api/validator');function a15_0x423b(){var _0x1a64c4=['decorate','integer','defineProperty','623073jPURwG','4460960Rhuiqn','RuleType','9445635BmjUPZ','56ZaDYpx','38nEaVzL','string','(((.+)+)+)+$','object','__decorate','_size','number','_isreverse','35GGjdmM','259695yRquJV','940938fweFrt','toString','1:是;0:否','constructor','design:type','apply','_order','Rule','PageDTO','search','是否倒序','878936LRYAgY','分页数量','__metadata','min','trim','metadata','prototype','__esModule','length','function','1308728TJEwvL'];a15_0x423b=function(){return _0x1a64c4;};return a15_0x423b();}class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a15_0x27c16b(0x18c)][a15_0x27c16b(0x195)]()[a15_0x27c16b(0x188)]()[a15_0x27c16b(0x17f)](0x1),'第一页为1,第二页为2'),__metadata(a15_0x27c16b(0x175),Number)],PageDTO[a15_0x27c16b(0x182)],'_page',void 0x0),__decorate([(0x0,validator_1[a15_0x27c16b(0x178)])(a15_0x27c16b(0x17d),validator_1[a15_0x27c16b(0x18c)][a15_0x27c16b(0x195)]()[a15_0x27c16b(0x188)]()['min'](0x1)),__metadata(a15_0x27c16b(0x175),Number)],PageDTO[a15_0x27c16b(0x182)],a15_0x27c16b(0x194),void 0x0),__decorate([(0x0,validator_1[a15_0x27c16b(0x178)])('排序方式',validator_1[a15_0x27c16b(0x18c)][a15_0x27c16b(0x190)]()[a15_0x27c16b(0x180)]()),__metadata(a15_0x27c16b(0x175),String)],PageDTO[a15_0x27c16b(0x182)],a15_0x27c16b(0x177),void 0x0),__decorate([(0x0,validator_1[a15_0x27c16b(0x178)])(a15_0x27c16b(0x17b),validator_1['RuleType'][a15_0x27c16b(0x195)]()[a15_0x27c16b(0x188)]()['valid'](0x0,0x1),a15_0x27c16b(0x173)),__metadata(a15_0x27c16b(0x175),Number)],PageDTO[a15_0x27c16b(0x182)],a15_0x27c16b(0x196),void 0x0),exports['PageDTO']=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x522a73=a16_0x544f;(function(_0x90f6e,_0x2bd2f9){var _0x458bdd=a16_0x544f,_0x4ace43=_0x90f6e();while(!![]){try{var _0x1d5ed7=-parseInt(_0x458bdd(0xef))/0x1*(parseInt(_0x458bdd(0xf1))/0x2)+parseInt(_0x458bdd(0xe8))/0x3+-parseInt(_0x458bdd(0xeb))/0x4*(-parseInt(_0x458bdd(0xe2))/0x5)+-parseInt(_0x458bdd(0xea))/0x6*(-parseInt(_0x458bdd(0xe5))/0x7)+-parseInt(_0x458bdd(0xdf))/0x8+parseInt(_0x458bdd(0xe0))/0x9*(-parseInt(_0x458bdd(0xee))/0xa)+-parseInt(_0x458bdd(0xe6))/0xb*(-parseInt(_0x458bdd(0xf2))/0xc);if(_0x1d5ed7===_0x2bd2f9)break;else _0x4ace43['push'](_0x4ace43['shift']());}catch(_0x315295){_0x4ace43['push'](_0x4ace43['shift']());}}}(a16_0x5bc1,0xc950c));function a16_0x5bc1(){var _0x176ec8=['toString','constructor','12701260cdNtrm','3JAScQC','InterceptTargetTmp','932694Nlnpbl','36XjXuTa','7252184hKdnCq','9IizxKH','anncic-api:intercept','7841455uyPwQB','apply','defineProperty','2519048DqVCON','4637886JMMnOI','(((.+)+)+)+$','382959mxiMDE','INTERCEPT_KEY','24yrWgkO','4OgluNl'];a16_0x5bc1=function(){return _0x176ec8;};return a16_0x5bc1();}var a16_0x56860f=(function(){var _0x4f9283=!![];return function(_0xe051c5,_0x650083){var _0x57f593=_0x4f9283?function(){var _0x5d39ca=a16_0x544f;if(_0x650083){var _0x24a6b2=_0x650083[_0x5d39ca(0xe3)](_0xe051c5,arguments);return _0x650083=null,_0x24a6b2;}}:function(){};return _0x4f9283=![],_0x57f593;};}()),a16_0x53379b=a16_0x56860f(this,function(){var _0x35b9c0=a16_0x544f;return a16_0x53379b[_0x35b9c0(0xec)]()['search']('(((.+)+)+)+$')[_0x35b9c0(0xec)]()[_0x35b9c0(0xed)](a16_0x53379b)['search'](_0x35b9c0(0xe7));});a16_0x53379b();'use strict';function a16_0x544f(_0x589ba3,_0xe66759){var _0xa66774=a16_0x5bc1();return a16_0x544f=function(_0x53379b,_0x56860f){_0x53379b=_0x53379b-0xdf;var _0x5bc13d=_0xa66774[_0x53379b];return _0x5bc13d;},a16_0x544f(_0x589ba3,_0xe66759);}Object[a16_0x522a73(0xe4)](exports,'__esModule',{'value':!![]}),exports[a16_0x522a73(0xf0)]=exports[a16_0x522a73(0xe9)]=void 0x0,exports[a16_0x522a73(0xe9)]=a16_0x522a73(0xe1);class InterceptTargetTmp{}exports[a16_0x522a73(0xf0)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
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.6",
|
|
21
|
+
"@anncic-api/core": "^2.1.6",
|
|
22
|
+
"@anncic-api/event": "^2.1.6",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.6",
|
|
24
|
+
"@anncic-api/validator": "^2.1.6",
|
|
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.6",
|
|
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": "721aec7fd54cbc51f7b23820994af51504d3da8c"
|
|
41
41
|
}
|