anncic-api 3.3.2 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/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_0x2ab88a=a0_0x1411;(function(_0x10c3a,_0x19e4c1){var _0x32a10b=a0_0x1411,_0x286346=_0x10c3a();while(!![]){try{var _0x426bfc=parseInt(_0x32a10b(0xbe))/0x1*(parseInt(_0x32a10b(0xc2))/0x2)+-parseInt(_0x32a10b(0xb7))/0x3*(parseInt(_0x32a10b(0xb4))/0x4)+-parseInt(_0x32a10b(0xca))/0x5+parseInt(_0x32a10b(0xb8))/0x6+-parseInt(_0x32a10b(0xc6))/0x7+-parseInt(_0x32a10b(0xba))/0x8*(-parseInt(_0x32a10b(0xbf))/0x9)+parseInt(_0x32a10b(0xbb))/0xa;if(_0x426bfc===_0x19e4c1)break;else _0x286346['push'](_0x286346['shift']());}catch(_0x33f582){_0x286346['push'](_0x286346['shift']());}}}(a0_0x1433,0x8a558));var a0_0x3a755e=(function(){var _0xd999fb=!![];return function(_0x5312d6,_0x4a039e){var _0x4c5dfa=_0xd999fb?function(){var _0x509acb=a0_0x1411;if(_0x4a039e){var _0x566574=_0x4a039e[_0x509acb(0xc9)](_0x5312d6,arguments);return _0x4a039e=null,_0x566574;}}:function(){};return _0xd999fb=![],_0x4c5dfa;};}()),a0_0x384131=a0_0x3a755e(this,function(){var _0x57a4b5=a0_0x1411;return a0_0x384131[_0x57a4b5(0xb9)]()['search'](_0x57a4b5(0xc4))[_0x57a4b5(0xb9)]()['constructor'](a0_0x384131)['search'](_0x57a4b5(0xc4));});function a0_0x1433(){var _0x8dbf52=['appDir','name','35430wSneWO','4870866BTbvaU','toString','1405496NdhjXz','12251030KJIYHw','dhauo1234420123gg3234901','default','9YDHKLn','36NsUWYC','xml','form','13358fDHoLp','20mb','(((.+)+)+)+$','/runtime/.upload','6546974VYhKPb','_token','zhiulanuiy7892387985hnoi','apply','5131225CiFJsb','92pHygFf'];a0_0x1433=function(){return _0x8dbf52;};return a0_0x1433();}function a0_0x1411(_0x174241,_0x557350){var _0x2a07a4=a0_0x1433();return a0_0x1411=function(_0x384131,_0x3a755e){_0x384131=_0x384131-0xb4;var _0x143318=_0x2a07a4[_0x384131];return _0x143318;},a0_0x1411(_0x174241,_0x557350);}a0_0x384131();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x2ab88a(0xbd)]=_0x5e4e73=>{var _0x2649c6=a0_0x2ab88a;return{'apitest':!![],'keys':_0x5e4e73[_0x2649c6(0xb6)],'anncicapi':{'requestKey':_0x2649c6(0xc7),'password':_0x2649c6(0xc8),'devices':{'DEFAULT':{'secret':_0x2649c6(0xbc),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':['json',_0x2649c6(0xc1),'text',_0x2649c6(0xc0)],'formLimit':_0x2649c6(0xc3),'jsonLimit':_0x2649c6(0xc3),'textLimit':_0x2649c6(0xc3),'xmlLimit':_0x2649c6(0xc3),'enable':!![]},'upload':{'tmpdir':_0x5e4e73[_0x2649c6(0xb5)]+_0x2649c6(0xc5),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x58fca0=a1_0xec76;(function(_0x5b4a45,_0x4e9a91){var _0x17fa06=a1_0xec76,_0x489bd6=_0x5b4a45();while(!![]){try{var _0x5b526=parseInt(_0x17fa06(0x151))/0x1+-parseInt(_0x17fa06(0x150))/0x2*(-parseInt(_0x17fa06(0x14c))/0x3)+-parseInt(_0x17fa06(0x156))/0x4+parseInt(_0x17fa06(0x146))/0x5*(-parseInt(_0x17fa06(0x153))/0x6)+-parseInt(_0x17fa06(0x149))/0x7*(parseInt(_0x17fa06(0x147))/0x8)+parseInt(_0x17fa06(0x14e))/0x9+parseInt(_0x17fa06(0x148))/0xa;if(_0x5b526===_0x4e9a91)break;else _0x489bd6['push'](_0x489bd6['shift']());}catch(_0x3a4bea){_0x489bd6['push'](_0x489bd6['shift']());}}}(a1_0x3e38,0xb2107));function a1_0xec76(_0x1456ff,_0x2e11d9){var _0x4f05e7=a1_0x3e38();return a1_0xec76=function(_0x6f3b5b,_0x28db2a){_0x6f3b5b=_0x6f3b5b-0x146;var _0x3e38d4=_0x4f05e7[_0x6f3b5b];return _0x3e38d4;},a1_0xec76(_0x1456ff,_0x2e11d9);}var a1_0x28db2a=(function(){var _0x352b91=!![];return function(_0x6987ab,_0x592c64){var _0x17f22f=_0x352b91?function(){var _0x50cf32=a1_0xec76;if(_0x592c64){var _0x5d29f3=_0x592c64[_0x50cf32(0x154)](_0x6987ab,arguments);return _0x592c64=null,_0x5d29f3;}}:function(){};return _0x352b91=![],_0x17f22f;};}()),a1_0x6f3b5b=a1_0x28db2a(this,function(){var _0x488cf1=a1_0xec76;return a1_0x6f3b5b[_0x488cf1(0x14b)]()[_0x488cf1(0x14d)](_0x488cf1(0x14a))['toString']()[_0x488cf1(0x152)](a1_0x6f3b5b)[_0x488cf1(0x14d)](_0x488cf1(0x14a));});function a1_0x3e38(){var _0x1c8fa4=['7YjhBpj','(((.+)+)+)+$','toString','3EnGxXV','search','531036hyqKTx','default','1420866bjIyKi','760656BKsnCj','constructor','6YfosRL','apply','defineProperty','3901084LiEnbx','5513450xmCTwG','6802424ZkSgLV','21275220FMkNmd'];a1_0x3e38=function(){return _0x1c8fa4;};return a1_0x3e38();}a1_0x6f3b5b();'use strict';Object[a1_0x58fca0(0x155)](exports,'__esModule',{'value':!![]}),exports[a1_0x58fca0(0x14f)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x7a6555=a2_0x52c6;(function(_0x24c851,_0xa9eb72){const _0x2dcd43=a2_0x52c6,_0x1b340c=_0x24c851();while(!![]){try{const _0x5ad219=parseInt(_0x2dcd43(0x9c))/0x1+-parseInt(_0x2dcd43(0x9e))/0x2*(-parseInt(_0x2dcd43(0x9b))/0x3)+-parseInt(_0x2dcd43(0x11a))/0x4*(parseInt(_0x2dcd43(0x10c))/0x5)+-parseInt(_0x2dcd43(0xa6))/0x6+-parseInt(_0x2dcd43(0xde))/0x7*(parseInt(_0x2dcd43(0x112))/0x8)+parseInt(_0x2dcd43(0x11f))/0x9+-parseInt(_0x2dcd43(0xf7))/0xa;if(_0x5ad219===_0xa9eb72)break;else _0x1b340c['push'](_0x1b340c['shift']());}catch(_0x2717db){_0x1b340c['push'](_0x1b340c['shift']());}}}(a2_0x5204,0x8ae6f));const a2_0x4c0422=(function(){let _0x26c154=!![];return function(_0x4015ad,_0x52b788){const _0x4f36a6=_0x26c154?function(){const _0x3075b8=a2_0x52c6;if(_0x52b788){const _0x158c34=_0x52b788[_0x3075b8(0xe2)](_0x4015ad,arguments);return _0x52b788=null,_0x158c34;}}:function(){};return _0x26c154=![],_0x4f36a6;};}()),a2_0x44b56c=a2_0x4c0422(this,function(){const _0x12d051=a2_0x52c6;return a2_0x44b56c['toString']()['search'](_0x12d051(0xe0))[_0x12d051(0xb6)]()[_0x12d051(0x11c)](a2_0x44b56c)[_0x12d051(0xd2)](_0x12d051(0xe0));});a2_0x44b56c();function a2_0x52c6(_0x112c32,_0x9c8e1f){const _0x240598=a2_0x5204();return a2_0x52c6=function(_0x44b56c,_0x4c0422){_0x44b56c=_0x44b56c-0x91;let _0x5204f1=_0x240598[_0x44b56c];return _0x5204f1;},a2_0x52c6(_0x112c32,_0x9c8e1f);}'use strict';var __decorate=this&&this[a2_0x7a6555(0xb8)]||function(_0x1dcec9,_0x11d21a,_0x27cc4e,_0x2b1a7f){const _0x634fa1=a2_0x7a6555;var _0x128f3d=arguments[_0x634fa1(0x9d)],_0x100d01=_0x128f3d<0x3?_0x11d21a:_0x2b1a7f===null?_0x2b1a7f=Object[_0x634fa1(0xf3)](_0x11d21a,_0x27cc4e):_0x2b1a7f,_0x5bfe8c;if(typeof Reflect==='object'&&typeof Reflect[_0x634fa1(0xc7)]===_0x634fa1(0xa8))_0x100d01=Reflect[_0x634fa1(0xc7)](_0x1dcec9,_0x11d21a,_0x27cc4e,_0x2b1a7f);else{for(var _0x1d093f=_0x1dcec9[_0x634fa1(0x9d)]-0x1;_0x1d093f>=0x0;_0x1d093f--)if(_0x5bfe8c=_0x1dcec9[_0x1d093f])_0x100d01=(_0x128f3d<0x3?_0x5bfe8c(_0x100d01):_0x128f3d>0x3?_0x5bfe8c(_0x11d21a,_0x27cc4e,_0x100d01):_0x5bfe8c(_0x11d21a,_0x27cc4e))||_0x100d01;}return _0x128f3d>0x3&&_0x100d01&&Object[_0x634fa1(0x96)](_0x11d21a,_0x27cc4e,_0x100d01),_0x100d01;},__metadata=this&&this[a2_0x7a6555(0xe4)]||function(_0x385e5d,_0x19c562){const _0x4c334d=a2_0x7a6555;if(typeof Reflect===_0x4c334d(0x111)&&typeof Reflect[_0x4c334d(0xc4)]===_0x4c334d(0xa8))return Reflect[_0x4c334d(0xc4)](_0x385e5d,_0x19c562);};Object['defineProperty'](exports,a2_0x7a6555(0xdb),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x7a6555(0xdf)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x7a6555(0xe3)),intercept_1=require(a2_0x7a6555(0xe9)),action_1=require(a2_0x7a6555(0xb5)),fs=require('fs'),koasend=require('koa-send'),koa=require('@midwayjs/koa'),upload=require(a2_0x7a6555(0xec)),staticFile=require(a2_0x7a6555(0x98)),crossDomain=require(a2_0x7a6555(0xf0)),ConfigDefault=require(a2_0x7a6555(0xc1)),ConfigProduction=require(a2_0x7a6555(0x120)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x7a6555(0xb4)),anncicTypeorm=require(a2_0x7a6555(0x9f)),anncicValidator=require(a2_0x7a6555(0xaf)),anncicHelper=require(a2_0x7a6555(0xe5));let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a2_0x7a6555(0xb9)](){const _0x3dddf7=a2_0x7a6555;await this[_0x3dddf7(0x11d)](),await this[_0x3dddf7(0x107)](),await this['handlerActionRoute'](),await this[_0x3dddf7(0xa2)]();}async[a2_0x7a6555(0xbf)](){const _0x4c0474=a2_0x7a6555,_0xa1f715=this['config']['getConfiguration'](),_0x4319c2=(0x0,core_1[_0x4c0474(0xf8)])(intercept_1[_0x4c0474(0x106)],intercept_1[_0x4c0474(0x116)])||{};this[_0x4c0474(0x10b)][_0x4c0474(0xfa)](action_1[_0x4c0474(0xac)],_0x268a47=>{const _0x368a02=_0x4c0474;var _0x182529;const _0x1e2270=(0x0,core_1[_0x368a02(0xf8)])(action_1[_0x368a02(0x11b)],action_1['AppsConfigTmp'])||{},_0x248c52=_0x268a47[_0x368a02(0xc4)],_0x34eeb4=(0x0,core_1[_0x368a02(0xf8)])(action_1[_0x368a02(0xb3)],_0x268a47[_0x368a02(0xc0)])||{},_0x11a007=((_0x182529=_0x34eeb4===null||_0x34eeb4===void 0x0?void 0x0:_0x34eeb4[_0x368a02(0xef)])===null||_0x182529===void 0x0?void 0x0:_0x182529[_0x368a02(0x105)](0x0,_0x34eeb4[_0x368a02(0xef)]['lastIndexOf']('.')))||'',_0x35604a=(_0x34eeb4===null||_0x34eeb4===void 0x0?void 0x0:_0x34eeb4['module'])?(_0x1e2270===null||_0x1e2270===void 0x0?void 0x0:_0x1e2270[_0x34eeb4[_0x368a02(0x118)]])||{}:{};return{'before':async _0x1a9578=>{const _0x4c8775=_0x368a02;var _0x3bf353,_0x573cfe,_0x32fb27,_0x37b522;const _0x3e6124=(_0x3bf353=_0x1a9578===null||_0x1a9578===void 0x0?void 0x0:_0x1a9578['target'])===null||_0x3bf353===void 0x0?void 0x0:_0x3bf353[core_2[_0x4c8775(0xfc)]],_0x496e2b=lodash[_0x4c8775(0xe6)]({},_0x3e6124[_0x4c8775(0xcf)]['body']||_0x3e6124[_0x4c8775(0xcf)][((_0x573cfe=_0xa1f715===null||_0xa1f715===void 0x0?void 0x0:_0xa1f715['bodyXml'])===null||_0x573cfe===void 0x0?void 0x0:_0x573cfe[_0x4c8775(0xa0)])||_0x4c8775(0x92)]||{},_0x3e6124['request']['query']||{});_0x3e6124[_0x4c8775(0xd8)]={'module':(_0x35604a===null||_0x35604a===void 0x0?void 0x0:_0x35604a['name'])||'','routePath':''+_0x3e6124['path'],'routeName':_0x34eeb4['routerOptions'][_0x4c8775(0xbb)]+'@'+_0x248c52[_0x4c8775(0xea)],'routeMethod':((_0x248c52===null||_0x248c52===void 0x0?void 0x0:_0x248c52[_0x4c8775(0xd3)])||_0x3e6124['method']||'')[_0x4c8775(0xc3)](),'routeDescription':(_0x248c52===null||_0x248c52===void 0x0?void 0x0:_0x248c52[_0x4c8775(0xff)])||'','filemethod':_0x11a007+'@'+(_0x248c52[_0x4c8775(0xa9)]||'')};if(_0x3e6124&&(_0x248c52===null||_0x248c52===void 0x0?void 0x0:_0x248c52[_0x4c8775(0x9a)]))try{const _0x29218d=((_0x32fb27=_0xa1f715===null||_0xa1f715===void 0x0?void 0x0:_0xa1f715[_0x4c8775(0x119)])===null||_0x32fb27===void 0x0?void 0x0:_0x32fb27[_0x4c8775(0xfb)])&&typeof(_0x496e2b===null||_0x496e2b===void 0x0?void 0x0:_0x496e2b[_0xa1f715[_0x4c8775(0x119)]['requestKey']])==_0x4c8775(0xf1)?JSON[_0x4c8775(0x10d)](base64_decode(_0x496e2b[_0xa1f715[_0x4c8775(0x119)][_0x4c8775(0xfb)]])||'{}')||{}:((_0x37b522=_0x3e6124===null||_0x3e6124===void 0x0?void 0x0:_0x3e6124['request'])===null||_0x37b522===void 0x0?void 0x0:_0x37b522[_0x4c8775(0xd4)])||{};if(!this['ApiService'][_0x4c8775(0x117)](_0x29218d))throw new AnnError(ApiError_1['ApiError'][_0x4c8775(0x104)]);}catch(_0x480902){if(_0x480902 instanceof AnnError)throw _0x480902;else throw new AnnError(ApiError_1[_0x4c8775(0xa1)][_0x4c8775(0xa4)]);}},'around':async _0x132abb=>{const _0x289f00=_0x368a02;var _0x4de8c1,_0x4b26e2,_0x12d28d;const _0x2fe280=(_0x4de8c1=_0x132abb===null||_0x132abb===void 0x0?void 0x0:_0x132abb[_0x289f00(0xc0)])===null||_0x4de8c1===void 0x0?void 0x0:_0x4de8c1[core_2[_0x289f00(0xfc)]];if(_0x2fe280&&(_0x248c52===null||_0x248c52===void 0x0?void 0x0:_0x248c52[_0x289f00(0x9a)])&&((_0x248c52===null||_0x248c52===void 0x0?void 0x0:_0x248c52['intercept'])||typeof(_0x248c52===null||_0x248c52===void 0x0?void 0x0:_0x248c52[_0x289f00(0x100)])==_0x289f00(0x103))){if(((_0x4b26e2=_0x2fe280[_0x289f00(0xd4)])===null||_0x4b26e2===void 0x0?void 0x0:_0x4b26e2[_0x289f00(0xd5)])&&((_0x12d28d=_0x4319c2===null||_0x4319c2===void 0x0?void 0x0:_0x4319c2[_0x2fe280['headers']['device']])===null||_0x12d28d===void 0x0?void 0x0:_0x12d28d[_0x289f00(0x9d)])>0x0)for(const _0x5e40ea of _0x4319c2[_0x2fe280[_0x289f00(0xd4)][_0x289f00(0xd5)]]||[]){if(core_1[_0x289f00(0xbe)][_0x289f00(0xb2)](_0x5e40ea)){const _0x5a2f0b=await _0x2fe280[_0x289f00(0xba)][_0x289f00(0xaa)](_0x5e40ea);typeof(_0x5a2f0b===null||_0x5a2f0b===void 0x0?void 0x0:_0x5a2f0b[_0x289f00(0xad)])==_0x289f00(0xa8)?await _0x5a2f0b[_0x289f00(0xad)](_0x2fe280,typeof(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280['method'])==_0x289f00(0xf1)&&(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280['_matchedRoute'])?_0x2fe280[_0x289f00(0xa9)][_0x289f00(0xc3)]()+'@'+(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xae)]):undefined,_0x248c52)&&await _0x5a2f0b['handler'](_0x2fe280,typeof(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xa9)])==_0x289f00(0xf1)&&(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xae)])?_0x2fe280[_0x289f00(0xa9)][_0x289f00(0xc3)]()+'@'+(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xae)]):undefined,_0x248c52):await _0x5a2f0b[_0x289f00(0xf4)](_0x2fe280,typeof(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xa9)])=='string'&&(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280['_matchedRoute'])?_0x2fe280['method'][_0x289f00(0xc3)]()+'@'+(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xae)]):undefined,_0x248c52);}else core_1[_0x289f00(0xbe)][_0x289f00(0xcb)](_0x5e40ea)&&await _0x5e40ea(_0x2fe280,typeof(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xa9)])==_0x289f00(0xf1)&&(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xae)])?_0x2fe280[_0x289f00(0xa9)][_0x289f00(0xc3)]()+'@'+(_0x2fe280===null||_0x2fe280===void 0x0?void 0x0:_0x2fe280[_0x289f00(0xae)]):undefined,_0x248c52);}}return await _0x132abb['proceed'](..._0x132abb['args']);},'afterThrow':(_0x57e63d,_0x53e660)=>{throw _0x53e660;}};});}async[a2_0x7a6555(0xa2)](){const _0x210ef9=a2_0x7a6555,_0x3d2956=this[_0x210ef9(0xd6)][_0x210ef9(0x10f)]();this['application'][_0x210ef9(0x11e)]([_0x210ef9(0xfd)])['forEach'](_0x325e9e=>{(_0x325e9e===null||_0x325e9e===void 0x0?void 0x0:_0x325e9e['context'])&&Object['defineProperties'](_0x325e9e['context'],{'hosturl':{'configurable':![],'get':function(){const _0x4f4ab1=a2_0x52c6;var _0x44cc89,_0x30c504,_0x59a122,_0x1cde03;if((this===null||this===void 0x0?void 0x0:this[_0x4f4ab1(0xee)])&&!this[_0x4f4ab1(0xee)]['startsWith'](_0x4f4ab1(0xdc))){let _0x1144bd=this[_0x4f4ab1(0xee)][_0x4f4ab1(0xc2)](':');return['80',_0x4f4ab1(0x10e)][_0x4f4ab1(0xda)](_0x1144bd===null||_0x1144bd===void 0x0?void 0x0:_0x1144bd[0x1])?''+(!!((_0x30c504=(_0x44cc89=this===null||this===void 0x0?void 0x0:this[_0x4f4ab1(0x108)])===null||_0x44cc89===void 0x0?void 0x0:_0x44cc89['connection'])===null||_0x30c504===void 0x0?void 0x0:_0x30c504[_0x4f4ab1(0xd9)])||(_0x1144bd===null||_0x1144bd===void 0x0?void 0x0:_0x1144bd[0x1])==_0x4f4ab1(0x10e)?_0x4f4ab1(0xca):_0x4f4ab1(0xe7))+_0x1144bd[0x0]:''+(!!((_0x1cde03=(_0x59a122=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x59a122===void 0x0?void 0x0:_0x59a122[_0x4f4ab1(0x102)])===null||_0x1cde03===void 0x0?void 0x0:_0x1cde03[_0x4f4ab1(0xd9)])?_0x4f4ab1(0xca):'http://')+this[_0x4f4ab1(0xee)];}return'';}},'ok':{'value':function(_0x32cac6,_0x3b4177,_0x1330e5=0x0){return{'code':_0x1330e5,'data':_0x32cac6,'extra':_0x3b4177};}},'input':{'value':function(_0x1670a4,_0x585edb){const _0xdccc57=a2_0x52c6;var _0x8962c5;const _0x24cde8=lodash[_0xdccc57(0xe6)]({},this[_0xdccc57(0xcf)]['body']||this[_0xdccc57(0xcf)][((_0x8962c5=_0x3d2956===null||_0x3d2956===void 0x0?void 0x0:_0x3d2956[_0xdccc57(0xf9)])===null||_0x8962c5===void 0x0?void 0x0:_0x8962c5['key'])||_0xdccc57(0x92)]||{},this[_0xdccc57(0xcf)][_0xdccc57(0xa3)]||{});return _0x1670a4?lodash['get'](_0x24cde8,_0x1670a4,_0x585edb):_0x24cde8;}},'when':{'value':async function(_0x431a2a,_0x10a692){const _0x405c1e=a2_0x52c6,_0x26b4f4=this[_0x405c1e(0xb7)](_0x431a2a,null);if(!lodash[_0x405c1e(0xbd)](_0x26b4f4))return await _0x10a692(_0x26b4f4);}},'only':{'value':function(_0x3c397d){const _0x1e6f0b=a2_0x52c6,_0x1f5978={};for(let _0x2ecfb7=0x0;_0x2ecfb7<_0x3c397d[_0x1e6f0b(0x9d)];_0x2ecfb7++){lodash['isArray'](_0x3c397d[_0x2ecfb7])&&_0x3c397d[_0x2ecfb7][_0x1e6f0b(0x9d)]>0x0&&lodash[_0x1e6f0b(0xa5)](_0x3c397d[_0x2ecfb7][0x0])&&(_0x1f5978[_0x3c397d[_0x2ecfb7][0x0]]=this['input'](_0x3c397d[_0x2ecfb7][0x0],_0x3c397d[_0x2ecfb7][_0x1e6f0b(0x9d)]>0x1?_0x3c397d[_0x2ecfb7][0x1]:null));}return _0x1f5978;}},'koasend':{'value':async function(_0x51523d,_0xcb2e9b){const _0x1cfba8=a2_0x52c6;if(_0x51523d&&!fs[_0x1cfba8(0xeb)](_0x51523d)&&!fs['existsSync'](this[_0x1cfba8(0xd7)][_0x1cfba8(0xf2)]()+'/'+_0x51523d))return _0x1cfba8(0xfe);return _0x51523d=fs[_0x1cfba8(0xeb)](_0x51523d)?_0x51523d:this[_0x1cfba8(0xd7)]['getAppDir']()+'/'+_0x51523d,this['attachment'](_0xcb2e9b||_0x51523d),await koasend(this,_0x51523d);}}});});}async[a2_0x7a6555(0x107)](){const _0x2094dc=a2_0x7a6555;var _0x38071a,_0x12d8dd;if(fs['existsSync'](this['app'][_0x2094dc(0x109)]()+_0x2094dc(0x115))&&fs[_0x2094dc(0xc9)](this[_0x2094dc(0xd7)][_0x2094dc(0x109)]()+_0x2094dc(0x115))[_0x2094dc(0xe8)]()){const _0x315373=this[_0x2094dc(0xd6)]['getConfiguration'](),_0x5e3274=((_0x38071a=_0x315373===null||_0x315373===void 0x0?void 0x0:_0x315373[_0x2094dc(0xc6)])===null||_0x38071a===void 0x0?void 0x0:_0x38071a[_0x2094dc(0xc8)])||{};for(const _0x4985a0 of fs['readdirSync'](this[_0x2094dc(0xd7)]['getBaseDir']()+_0x2094dc(0x115))){if(!fs[_0x2094dc(0xc9)](this['app'][_0x2094dc(0x109)]()+_0x2094dc(0x94)+_0x4985a0)[_0x2094dc(0xe8)]())continue;if(_0x5e3274===null||_0x5e3274===void 0x0?void 0x0:_0x5e3274[_0x4985a0])continue;_0x5e3274[_0x4985a0]=Object['assign']({},((_0x12d8dd=_0x315373===null||_0x315373===void 0x0?void 0x0:_0x315373[_0x2094dc(0xc6)])===null||_0x12d8dd===void 0x0?void 0x0:_0x12d8dd[_0x2094dc(0x10a)])||{'maxSize':'1m','dir':this[_0x2094dc(0xd7)]['getAppDir']()+_0x2094dc(0xcd)},{'enableJSON':!![],'enableConsole':this[_0x2094dc(0xa7)][_0x2094dc(0xb0)](),'fileLogName':_0x4985a0+'.log','dir':this[_0x2094dc(0xd7)][_0x2094dc(0xf2)]()+_0x2094dc(0x91)+_0x4985a0});}Object[_0x2094dc(0xab)](_0x5e3274)['length']>0x0&&(!_0x315373[_0x2094dc(0xc6)]&&(_0x315373[_0x2094dc(0xc6)]={'default':{'maxSize':'1m','dir':this[_0x2094dc(0xd7)][_0x2094dc(0xf2)]()+_0x2094dc(0xcd)}}),_0x315373[_0x2094dc(0xc6)][_0x2094dc(0xc8)]=_0x5e3274),this[_0x2094dc(0xd6)][_0x2094dc(0x114)](_0x315373);}}async[a2_0x7a6555(0x11d)](){const _0x274dac=a2_0x7a6555;var _0x521841,_0x59adb8,_0x1671a8,_0x5dc04c,_0x23aa98,_0x46d6b6;const _0x217672=this[_0x274dac(0xd6)][_0x274dac(0x10f)]();((_0x59adb8=(_0x521841=_0x217672===null||_0x217672===void 0x0?void 0x0:_0x217672['anncicapi'])===null||_0x521841===void 0x0?void 0x0:_0x521841[_0x274dac(0x95)])===null||_0x59adb8===void 0x0?void 0x0:_0x59adb8[_0x274dac(0xd1)])&&Object[_0x274dac(0xab)](_0x217672['anncicapi'][_0x274dac(0x95)])['length']>0x1&&delete _0x217672[_0x274dac(0x119)][_0x274dac(0x95)]['DEFAULT'];if((_0x1671a8=_0x217672===null||_0x217672===void 0x0?void 0x0:_0x217672[_0x274dac(0xf6)])===null||_0x1671a8===void 0x0?void 0x0:_0x1671a8[_0x274dac(0xcc)])for(const _0x10e8a0 in _0x217672[_0x274dac(0xf6)][_0x274dac(0xcc)]){((_0x5dc04c=_0x217672[_0x274dac(0xf6)][_0x274dac(0xcc)][_0x10e8a0])===null||_0x5dc04c===void 0x0?void 0x0:_0x5dc04c[_0x274dac(0x121)])&&typeof((_0x23aa98=_0x217672['staticFile']['dirs'][_0x10e8a0])===null||_0x23aa98===void 0x0?void 0x0:_0x23aa98[_0x274dac(0x121)])==_0x274dac(0xf1)&&!fs['existsSync'](_0x217672[_0x274dac(0xf6)][_0x274dac(0xcc)][_0x10e8a0]['dir'])&&(fs[_0x274dac(0xce)](_0x217672['staticFile'][_0x274dac(0xcc)][_0x10e8a0][_0x274dac(0x121)],{'recursive':!![]}),console[_0x274dac(0x113)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x217672[_0x274dac(0xf6)][_0x274dac(0xcc)][_0x10e8a0][_0x274dac(0x121)]));}((_0x46d6b6=_0x217672===null||_0x217672===void 0x0?void 0x0:_0x217672[_0x274dac(0xc5)])===null||_0x46d6b6===void 0x0?void 0x0:_0x46d6b6[_0x274dac(0xbc)])&&!fs[_0x274dac(0xeb)](_0x217672[_0x274dac(0xc5)][_0x274dac(0xbc)])&&(fs[_0x274dac(0xce)](_0x217672[_0x274dac(0xc5)][_0x274dac(0xbc)],{'recursive':!![]}),console[_0x274dac(0x113)](_0x274dac(0x110)+_0x217672['upload'][_0x274dac(0xbc)])),this[_0x274dac(0xd6)]['addObject'](_0x217672);}};function a2_0x5204(){const _0x1c9e3b=['substring','INTERCEPT_KEY','loggerConfig','req','getBaseDir','default','decorator','2358355yiwBha','parse','443','getConfiguration','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','object','3544dcKLvW','log','addObject','/apps','InterceptTargetTmp','checksign','module','anncicapi','4KILkMd','APPSCONFIG_KEY','constructor','filterConfig','getApplications','8191098PfyHRW','./config/config.production','dir','/runtime/apps-','body','Inject','/apps/','devices','defineProperty','design:type','@midwayjs/static-file','App','apimit','23214ScXxWI','1135336UyxNCb','length','274vfkegR','@anncic-api/typeorm','key','ApiError','hanlderApplications','query','_UNKNOW_','isString','1486086ZLfrdE','environment','function','method','getAsync','keys','ACTION_ROUTE_KEY','match','_matchedRoute','@anncic-api/validator','isDevelopmentEnvironment','ApiService','isClass','ACTION_KEY','@anncic-api/event','./types/action','toString','input','__decorate','onReady','requestContext','tagName','tmpdir','isNull','Types','handlerActionRoute','target','./config/config.default','split','toLowerCase','metadata','upload','midwayLogger','decorate','clients','statSync','https://','isFunction','dirs','/runtime','mkdirSync','request','anncic-api','DEFAULT','search','requestMethod','headers','device','config','app','_matchedRouteMeta','encrypted','includes','__esModule','http','MidwayConfigService','3304WGJxlx','@midwayjs/core','(((.+)+)+)+$','prototype','apply','./service/ApiService','__metadata','anncic-apihelper','defaultsDeep','http://','isDirectory','./types/intercept','routerName','existsSync','@midwayjs/upload','application','host','filepath','@midwayjs/cross-domain','string','getAppDir','getOwnPropertyDescriptor','handler','MidwayDecoratorService','staticFile','16081730mXlfAo','getClassMetadata','bodyXml','registerMethodHandler','requestKey','REQUEST_OBJ_CTX_KEY','koa','文件不存在','description','intercept','CustomConfiguration','connection','undefined','HEADERS_SIGNATURE'];a2_0x5204=function(){return _0x1c9e3b;};return a2_0x5204();}__decorate([(0x0,core_1[a2_0x7a6555(0x99)])(),__metadata(a2_0x7a6555(0x97),Object)],CustomConfiguration[a2_0x7a6555(0xe1)],a2_0x7a6555(0xd7),void 0x0),__decorate([(0x0,core_1[a2_0x7a6555(0x93)])(),__metadata(a2_0x7a6555(0x97),core_2[a2_0x7a6555(0xdd)])],CustomConfiguration[a2_0x7a6555(0xe1)],a2_0x7a6555(0xd6),void 0x0),__decorate([(0x0,core_1[a2_0x7a6555(0x93)])(),__metadata(a2_0x7a6555(0x97),core_2[a2_0x7a6555(0xf5)])],CustomConfiguration[a2_0x7a6555(0xe1)],a2_0x7a6555(0x10b),void 0x0),__decorate([(0x0,core_1[a2_0x7a6555(0x93)])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x7a6555(0xe1)],a2_0x7a6555(0xed),void 0x0),__decorate([(0x0,core_1[a2_0x7a6555(0x93)])(),__metadata(a2_0x7a6555(0x97),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x7a6555(0xe1)],a2_0x7a6555(0xa7),void 0x0),__decorate([(0x0,core_1[a2_0x7a6555(0x93)])(),__metadata(a2_0x7a6555(0x97),ApiService_1[a2_0x7a6555(0xb1)])],CustomConfiguration[a2_0x7a6555(0xe1)],a2_0x7a6555(0xb1),void 0x0),exports[a2_0x7a6555(0x101)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x7a6555(0xd0),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x4cdec4=a2_0x5c4f;(function(_0x18db28,_0x25f4b3){const _0xc3b8c7=a2_0x5c4f,_0x33cd2d=_0x18db28();while(!![]){try{const _0x255c67=parseInt(_0xc3b8c7(0x101))/0x1+-parseInt(_0xc3b8c7(0x14c))/0x2+-parseInt(_0xc3b8c7(0x17b))/0x3*(-parseInt(_0xc3b8c7(0x13c))/0x4)+parseInt(_0xc3b8c7(0x147))/0x5+parseInt(_0xc3b8c7(0x15c))/0x6+-parseInt(_0xc3b8c7(0x175))/0x7+-parseInt(_0xc3b8c7(0x171))/0x8;if(_0x255c67===_0x25f4b3)break;else _0x33cd2d['push'](_0x33cd2d['shift']());}catch(_0x3dc3ca){_0x33cd2d['push'](_0x33cd2d['shift']());}}}(a2_0x2c9d,0xd26f0));const a2_0x48f626=(function(){let _0x2aa085=!![];return function(_0x439c9a,_0x3f081c){const _0x411108=_0x2aa085?function(){const _0x176b51=a2_0x5c4f;if(_0x3f081c){const _0xc5fa60=_0x3f081c[_0x176b51(0x112)](_0x439c9a,arguments);return _0x3f081c=null,_0xc5fa60;}}:function(){};return _0x2aa085=![],_0x411108;};}()),a2_0x343f52=a2_0x48f626(this,function(){const _0x657e00=a2_0x5c4f;return a2_0x343f52[_0x657e00(0x156)]()[_0x657e00(0x125)](_0x657e00(0x151))['toString']()[_0x657e00(0x15e)](a2_0x343f52)[_0x657e00(0x125)](_0x657e00(0x151));});a2_0x343f52();'use strict';var __decorate=this&&this['__decorate']||function(_0xc42e6d,_0x1437db,_0x2590ac,_0x5bc87e){const _0x5cac70=a2_0x5c4f;var _0x1685f3=arguments[_0x5cac70(0x165)],_0x221b67=_0x1685f3<0x3?_0x1437db:_0x5bc87e===null?_0x5bc87e=Object['getOwnPropertyDescriptor'](_0x1437db,_0x2590ac):_0x5bc87e,_0x2abd38;if(typeof Reflect===_0x5cac70(0x123)&&typeof Reflect['decorate']===_0x5cac70(0x173))_0x221b67=Reflect[_0x5cac70(0x132)](_0xc42e6d,_0x1437db,_0x2590ac,_0x5bc87e);else{for(var _0x40f195=_0xc42e6d[_0x5cac70(0x165)]-0x1;_0x40f195>=0x0;_0x40f195--)if(_0x2abd38=_0xc42e6d[_0x40f195])_0x221b67=(_0x1685f3<0x3?_0x2abd38(_0x221b67):_0x1685f3>0x3?_0x2abd38(_0x1437db,_0x2590ac,_0x221b67):_0x2abd38(_0x1437db,_0x2590ac))||_0x221b67;}return _0x1685f3>0x3&&_0x221b67&&Object[_0x5cac70(0x157)](_0x1437db,_0x2590ac,_0x221b67),_0x221b67;},__metadata=this&&this[a2_0x4cdec4(0x187)]||function(_0x4c24bb,_0x1e8db9){const _0x58791=a2_0x4cdec4;if(typeof Reflect===_0x58791(0x123)&&typeof Reflect[_0x58791(0x18a)]===_0x58791(0x173))return Reflect[_0x58791(0x18a)](_0x4c24bb,_0x1e8db9);};Object['defineProperty'](exports,a2_0x4cdec4(0x130),{'value':!![]}),exports[a2_0x4cdec4(0x169)]=void 0x0;function a2_0x5c4f(_0x41ec43,_0x2831b7){const _0x47bf22=a2_0x2c9d();return a2_0x5c4f=function(_0x343f52,_0x48f626){_0x343f52=_0x343f52-0xfd;let _0x2c9d57=_0x47bf22[_0x343f52];return _0x2c9d57;},a2_0x5c4f(_0x41ec43,_0x2831b7);}const core_1=require('@midwayjs/core'),core_2=require(a2_0x4cdec4(0x154)),ApiError_1=require(a2_0x4cdec4(0x128)),ApiService_1=require('./service/ApiService'),intercept_1=require('./types/intercept'),action_1=require(a2_0x4cdec4(0x106)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x4cdec4(0x105)),upload=require(a2_0x4cdec4(0x108)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4cdec4(0x12e)),ConfigDefault=require(a2_0x4cdec4(0x17d)),ConfigProduction=require(a2_0x4cdec4(0x13e)),anncic=require(a2_0x4cdec4(0x12c)),anncicCache=require(a2_0x4cdec4(0x143)),anncicEvent=require(a2_0x4cdec4(0x144)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x4cdec4(0x169)]=class CustomConfiguration{async[a2_0x4cdec4(0x160)](){const _0x444f10=a2_0x4cdec4;await this[_0x444f10(0x145)](),await this[_0x444f10(0x103)](),await this[_0x444f10(0x184)](),await this['hanlderApplications']();}async[a2_0x4cdec4(0x184)](){const _0x340fe3=a2_0x4cdec4,_0x3904df=this[_0x340fe3(0x172)][_0x340fe3(0x158)](),_0x17d0c7=(0x0,core_1[_0x340fe3(0x182)])(intercept_1[_0x340fe3(0x11a)],intercept_1[_0x340fe3(0x17e)])||{};this['decorator'][_0x340fe3(0x133)](action_1['ACTION_ROUTE_KEY'],_0x482789=>{const _0x5ca029=_0x340fe3;var _0x474dcb;const _0xcbd211=(0x0,core_1[_0x5ca029(0x182)])(action_1['APPSCONFIG_KEY'],action_1[_0x5ca029(0x122)])||{},_0xfb79f1=_0x482789[_0x5ca029(0x18a)],_0x1ed6d5=(0x0,core_1['getClassMetadata'])(action_1[_0x5ca029(0x177)],_0x482789[_0x5ca029(0x10e)])||{},_0x580d66=((_0x474dcb=_0x1ed6d5===null||_0x1ed6d5===void 0x0?void 0x0:_0x1ed6d5['filepath'])===null||_0x474dcb===void 0x0?void 0x0:_0x474dcb[_0x5ca029(0x189)](0x0,_0x1ed6d5[_0x5ca029(0x117)][_0x5ca029(0x16f)]('.')))||'',_0x7377b9=(_0x1ed6d5===null||_0x1ed6d5===void 0x0?void 0x0:_0x1ed6d5[_0x5ca029(0x120)])?(_0xcbd211===null||_0xcbd211===void 0x0?void 0x0:_0xcbd211[_0x1ed6d5['module']])||{}:{};return{'before':async _0x14a3e4=>{const _0x521dc8=_0x5ca029;var _0x4075b8,_0x41d307,_0x1aa77f,_0x286225;const _0x3df2e4=(_0x4075b8=_0x14a3e4===null||_0x14a3e4===void 0x0?void 0x0:_0x14a3e4[_0x521dc8(0x10e)])===null||_0x4075b8===void 0x0?void 0x0:_0x4075b8[core_2[_0x521dc8(0x100)]],_0x48dbef=lodash[_0x521dc8(0x188)]({},_0x3df2e4[_0x521dc8(0x14f)][_0x521dc8(0x138)]||_0x3df2e4[_0x521dc8(0x14f)][((_0x41d307=_0x3904df===null||_0x3904df===void 0x0?void 0x0:_0x3904df[_0x521dc8(0x10b)])===null||_0x41d307===void 0x0?void 0x0:_0x41d307[_0x521dc8(0x114)])||_0x521dc8(0x138)]||{},_0x3df2e4['request'][_0x521dc8(0x176)]||{});_0x3df2e4['_matchedRouteMeta']={'module':(_0x7377b9===null||_0x7377b9===void 0x0?void 0x0:_0x7377b9['name'])||'','routePath':''+_0x3df2e4[_0x521dc8(0x148)],'routeName':_0x1ed6d5['routerOptions'][_0x521dc8(0x141)]+'@'+_0xfb79f1[_0x521dc8(0x12b)],'routeMethod':((_0xfb79f1===null||_0xfb79f1===void 0x0?void 0x0:_0xfb79f1[_0x521dc8(0x11b)])||_0x3df2e4[_0x521dc8(0x136)]||'')['toLowerCase'](),'routeDescription':(_0xfb79f1===null||_0xfb79f1===void 0x0?void 0x0:_0xfb79f1['description'])||'','filemethod':_0x580d66+'@'+(_0xfb79f1[_0x521dc8(0x136)]||'')};if(_0x3df2e4&&(_0xfb79f1===null||_0xfb79f1===void 0x0?void 0x0:_0xfb79f1[_0x521dc8(0x107)]))try{const _0x4fb3a0=((_0x1aa77f=_0x3904df===null||_0x3904df===void 0x0?void 0x0:_0x3904df[_0x521dc8(0x137)])===null||_0x1aa77f===void 0x0?void 0x0:_0x1aa77f[_0x521dc8(0x116)])&&typeof(_0x48dbef===null||_0x48dbef===void 0x0?void 0x0:_0x48dbef[_0x3904df[_0x521dc8(0x137)][_0x521dc8(0x116)]])==_0x521dc8(0x11f)?JSON[_0x521dc8(0x152)](base64_decode(_0x48dbef[_0x3904df[_0x521dc8(0x137)][_0x521dc8(0x116)]])||'{}')||{}:((_0x286225=_0x3df2e4===null||_0x3df2e4===void 0x0?void 0x0:_0x3df2e4[_0x521dc8(0x14f)])===null||_0x286225===void 0x0?void 0x0:_0x286225[_0x521dc8(0x179)])||{};if(!this[_0x521dc8(0x139)]['checksign'](_0x4fb3a0))throw new AnnError(ApiError_1[_0x521dc8(0x131)][_0x521dc8(0xfd)]);}catch(_0x592cbb){if(_0x592cbb instanceof AnnError)throw _0x592cbb;else throw new AnnError(ApiError_1[_0x521dc8(0x131)]['_UNKNOW_']);}},'around':async _0x221ca3=>{const _0x9a0f85=_0x5ca029;var _0x37c105,_0x2da0c0,_0x149ed7;const _0x21784e=(_0x37c105=_0x221ca3===null||_0x221ca3===void 0x0?void 0x0:_0x221ca3[_0x9a0f85(0x10e)])===null||_0x37c105===void 0x0?void 0x0:_0x37c105[core_2[_0x9a0f85(0x100)]];if(_0x21784e&&(_0xfb79f1===null||_0xfb79f1===void 0x0?void 0x0:_0xfb79f1[_0x9a0f85(0x107)])&&((_0xfb79f1===null||_0xfb79f1===void 0x0?void 0x0:_0xfb79f1[_0x9a0f85(0x16e)])||typeof(_0xfb79f1===null||_0xfb79f1===void 0x0?void 0x0:_0xfb79f1['intercept'])==_0x9a0f85(0x119))){if(((_0x2da0c0=_0x21784e[_0x9a0f85(0x179)])===null||_0x2da0c0===void 0x0?void 0x0:_0x2da0c0[_0x9a0f85(0x13d)])&&((_0x149ed7=_0x17d0c7===null||_0x17d0c7===void 0x0?void 0x0:_0x17d0c7[_0x21784e[_0x9a0f85(0x179)]['device']])===null||_0x149ed7===void 0x0?void 0x0:_0x149ed7['length'])>0x0)for(const _0x212bff of _0x17d0c7[_0x21784e[_0x9a0f85(0x179)][_0x9a0f85(0x13d)]]||[]){if(core_1['Types'][_0x9a0f85(0x11c)](_0x212bff)){const _0x547f1a=await _0x21784e[_0x9a0f85(0x17a)][_0x9a0f85(0x14d)](_0x212bff);typeof(_0x547f1a===null||_0x547f1a===void 0x0?void 0x0:_0x547f1a[_0x9a0f85(0x127)])==_0x9a0f85(0x173)?await _0x547f1a[_0x9a0f85(0x127)](_0x21784e,typeof(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x136)])==_0x9a0f85(0x11f)&&(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)])?_0x21784e[_0x9a0f85(0x136)][_0x9a0f85(0x10a)]()+'@'+(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)]):undefined,_0xfb79f1)&&await _0x547f1a[_0x9a0f85(0x102)](_0x21784e,typeof(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x136)])==_0x9a0f85(0x11f)&&(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)])?_0x21784e[_0x9a0f85(0x136)][_0x9a0f85(0x10a)]()+'@'+(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e['_matchedRoute']):undefined,_0xfb79f1):await _0x547f1a[_0x9a0f85(0x102)](_0x21784e,typeof(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x136)])==_0x9a0f85(0x11f)&&(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)])?_0x21784e[_0x9a0f85(0x136)]['toLowerCase']()+'@'+(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)]):undefined,_0xfb79f1);}else core_1['Types'][_0x9a0f85(0x15d)](_0x212bff)&&await _0x212bff(_0x21784e,typeof(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x136)])==_0x9a0f85(0x11f)&&(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)])?_0x21784e[_0x9a0f85(0x136)][_0x9a0f85(0x10a)]()+'@'+(_0x21784e===null||_0x21784e===void 0x0?void 0x0:_0x21784e[_0x9a0f85(0x17f)]):undefined,_0xfb79f1);}}return await _0x221ca3[_0x9a0f85(0x146)](..._0x221ca3[_0x9a0f85(0x14b)]);},'afterThrow':(_0x4e05ad,_0x1a2051)=>{throw _0x1a2051;}};});}async['hanlderApplications'](){const _0x2749cf=a2_0x4cdec4,_0x333c5c=this[_0x2749cf(0x172)]['getConfiguration']();this[_0x2749cf(0x126)]['getApplications']([_0x2749cf(0x167)])[_0x2749cf(0x11e)](_0x3a88a6=>{const _0x356e35=_0x2749cf;(_0x3a88a6===null||_0x3a88a6===void 0x0?void 0x0:_0x3a88a6['context'])&&Object['defineProperties'](_0x3a88a6[_0x356e35(0x18b)],{'hosturl':{'configurable':![],'get':function(){const _0xa983c3=_0x356e35;var _0x17f639,_0x211ce0,_0x13644b,_0x2ef3f4;if((this===null||this===void 0x0?void 0x0:this[_0xa983c3(0x10f)])&&!this[_0xa983c3(0x10f)][_0xa983c3(0x153)](_0xa983c3(0x17c))){let _0x33e410=this[_0xa983c3(0x10f)][_0xa983c3(0x10c)](':');return['80',_0xa983c3(0x142)][_0xa983c3(0x13b)](_0x33e410===null||_0x33e410===void 0x0?void 0x0:_0x33e410[0x1])?''+(!!((_0x211ce0=(_0x17f639=this===null||this===void 0x0?void 0x0:this[_0xa983c3(0x111)])===null||_0x17f639===void 0x0?void 0x0:_0x17f639[_0xa983c3(0x159)])===null||_0x211ce0===void 0x0?void 0x0:_0x211ce0[_0xa983c3(0x164)])||(_0x33e410===null||_0x33e410===void 0x0?void 0x0:_0x33e410[0x1])==_0xa983c3(0x142)?_0xa983c3(0x149):_0xa983c3(0xfe))+_0x33e410[0x0]:''+(!!((_0x2ef3f4=(_0x13644b=this===null||this===void 0x0?void 0x0:this[_0xa983c3(0x111)])===null||_0x13644b===void 0x0?void 0x0:_0x13644b[_0xa983c3(0x159)])===null||_0x2ef3f4===void 0x0?void 0x0:_0x2ef3f4[_0xa983c3(0x164)])?'https://':_0xa983c3(0xfe))+this['host'];}return'';}},'ok':{'value':function(_0x190a51,_0x5bb528,_0x1bdb31=0x0){return{'code':_0x1bdb31,'data':_0x190a51,'extra':_0x5bb528};}},'input':{'value':function(_0x1c0acf,_0x2c2823){const _0x3cf860=_0x356e35;var _0x562041;const _0xe69541=lodash[_0x3cf860(0x188)]({},this[_0x3cf860(0x14f)][_0x3cf860(0x138)]||this[_0x3cf860(0x14f)][((_0x562041=_0x333c5c===null||_0x333c5c===void 0x0?void 0x0:_0x333c5c[_0x3cf860(0x10b)])===null||_0x562041===void 0x0?void 0x0:_0x562041[_0x3cf860(0x114)])||_0x3cf860(0x138)]||{},this[_0x3cf860(0x14f)][_0x3cf860(0x176)]||{});return _0x1c0acf?lodash[_0x3cf860(0x14e)](_0xe69541,_0x1c0acf,_0x2c2823):_0xe69541;}},'when':{'value':async function(_0x3ce081,_0x70b0bd){const _0x4e183b=_0x356e35,_0x5ab4f2=this[_0x4e183b(0x181)](_0x3ce081,null);if(!lodash[_0x4e183b(0x150)](_0x5ab4f2))return await _0x70b0bd(_0x5ab4f2);}},'only':{'value':function(_0x1fe491){const _0x42e908=_0x356e35,_0x3ce8df={};for(let _0x4615f9=0x0;_0x4615f9<_0x1fe491[_0x42e908(0x165)];_0x4615f9++){lodash[_0x42e908(0xff)](_0x1fe491[_0x4615f9])&&_0x1fe491[_0x4615f9][_0x42e908(0x165)]>0x0&&lodash[_0x42e908(0x185)](_0x1fe491[_0x4615f9][0x0])&&(_0x3ce8df[_0x1fe491[_0x4615f9][0x0]]=this['input'](_0x1fe491[_0x4615f9][0x0],_0x1fe491[_0x4615f9][_0x42e908(0x165)]>0x1?_0x1fe491[_0x4615f9][0x1]:null));}return _0x3ce8df;}},'koasend':{'value':async function(_0xd751fd,_0x2163dd){const _0x5b705f=_0x356e35;if(_0xd751fd&&!fs['existsSync'](_0xd751fd)&&!fs[_0x5b705f(0x162)](this['app'][_0x5b705f(0x12d)]()+'/'+_0xd751fd))return _0x5b705f(0x15a);return _0xd751fd=fs[_0x5b705f(0x162)](_0xd751fd)?_0xd751fd:this[_0x5b705f(0x12f)]['getAppDir']()+'/'+_0xd751fd,this[_0x5b705f(0x13f)](_0x2163dd||_0xd751fd),await koasend(this,_0xd751fd);}}});});}async[a2_0x4cdec4(0x103)](){const _0x16d9e8=a2_0x4cdec4;var _0x4edd71,_0x144984;if(fs['existsSync'](this[_0x16d9e8(0x12f)][_0x16d9e8(0x15b)]()+'/apps')&&fs[_0x16d9e8(0x163)](this['app'][_0x16d9e8(0x15b)]()+'/apps')['isDirectory']()){const _0x2d73dc=this[_0x16d9e8(0x172)]['getConfiguration'](),_0x2ebca7=((_0x4edd71=_0x2d73dc===null||_0x2d73dc===void 0x0?void 0x0:_0x2d73dc['midwayLogger'])===null||_0x4edd71===void 0x0?void 0x0:_0x4edd71[_0x16d9e8(0x186)])||{};for(const _0x5e0163 of fs[_0x16d9e8(0x134)](this[_0x16d9e8(0x12f)][_0x16d9e8(0x15b)]()+_0x16d9e8(0x174))){if(!fs[_0x16d9e8(0x163)](this[_0x16d9e8(0x12f)][_0x16d9e8(0x15b)]()+_0x16d9e8(0x166)+_0x5e0163)[_0x16d9e8(0x113)]())continue;if(_0x2ebca7===null||_0x2ebca7===void 0x0?void 0x0:_0x2ebca7[_0x5e0163])continue;_0x2ebca7[_0x5e0163]=Object[_0x16d9e8(0x155)]({},((_0x144984=_0x2d73dc===null||_0x2d73dc===void 0x0?void 0x0:_0x2d73dc[_0x16d9e8(0x14a)])===null||_0x144984===void 0x0?void 0x0:_0x144984[_0x16d9e8(0x124)])||{'maxSize':'1m','dir':this[_0x16d9e8(0x12f)][_0x16d9e8(0x12d)]()+_0x16d9e8(0x13a)},{'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0x5e0163+_0x16d9e8(0x16a),'dir':this[_0x16d9e8(0x12f)][_0x16d9e8(0x12d)]()+'/runtime/apps-'+_0x5e0163});}Object['keys'](_0x2ebca7)[_0x16d9e8(0x165)]>0x0&&(!_0x2d73dc[_0x16d9e8(0x14a)]&&(_0x2d73dc['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x16d9e8(0x12f)][_0x16d9e8(0x12d)]()+_0x16d9e8(0x13a)}}),_0x2d73dc[_0x16d9e8(0x14a)][_0x16d9e8(0x186)]=_0x2ebca7),this['config'][_0x16d9e8(0x140)](_0x2d73dc);}}async[a2_0x4cdec4(0x145)](){const _0x37c64c=a2_0x4cdec4;var _0x142823,_0x306048,_0x325c16,_0x540fb9,_0x16e0d5,_0x2e7f85;const _0x2f8219=this['config'][_0x37c64c(0x158)]();((_0x306048=(_0x142823=_0x2f8219===null||_0x2f8219===void 0x0?void 0x0:_0x2f8219[_0x37c64c(0x137)])===null||_0x142823===void 0x0?void 0x0:_0x142823[_0x37c64c(0x109)])===null||_0x306048===void 0x0?void 0x0:_0x306048[_0x37c64c(0x118)])&&Object[_0x37c64c(0x115)](_0x2f8219[_0x37c64c(0x137)][_0x37c64c(0x109)])['length']>0x1&&delete _0x2f8219[_0x37c64c(0x137)][_0x37c64c(0x109)][_0x37c64c(0x118)];if((_0x325c16=_0x2f8219===null||_0x2f8219===void 0x0?void 0x0:_0x2f8219[_0x37c64c(0x121)])===null||_0x325c16===void 0x0?void 0x0:_0x325c16['dirs'])for(const _0x520fc1 in _0x2f8219['staticFile'][_0x37c64c(0x10d)]){((_0x540fb9=_0x2f8219[_0x37c64c(0x121)][_0x37c64c(0x10d)][_0x520fc1])===null||_0x540fb9===void 0x0?void 0x0:_0x540fb9[_0x37c64c(0x110)])&&typeof((_0x16e0d5=_0x2f8219['staticFile']['dirs'][_0x520fc1])===null||_0x16e0d5===void 0x0?void 0x0:_0x16e0d5[_0x37c64c(0x110)])==_0x37c64c(0x11f)&&!fs[_0x37c64c(0x162)](_0x2f8219[_0x37c64c(0x121)][_0x37c64c(0x10d)][_0x520fc1]['dir'])&&(fs['mkdirSync'](_0x2f8219[_0x37c64c(0x121)][_0x37c64c(0x10d)][_0x520fc1]['dir'],{'recursive':!![]}),console[_0x37c64c(0x11d)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2f8219[_0x37c64c(0x121)][_0x37c64c(0x10d)][_0x520fc1]['dir']));}((_0x2e7f85=_0x2f8219===null||_0x2f8219===void 0x0?void 0x0:_0x2f8219[_0x37c64c(0x161)])===null||_0x2e7f85===void 0x0?void 0x0:_0x2e7f85[_0x37c64c(0x180)])&&!fs['existsSync'](_0x2f8219[_0x37c64c(0x161)][_0x37c64c(0x180)])&&(fs[_0x37c64c(0x135)](_0x2f8219[_0x37c64c(0x161)]['tmpdir'],{'recursive':!![]}),console[_0x37c64c(0x11d)](_0x37c64c(0x178)+_0x2f8219['upload'][_0x37c64c(0x180)])),this[_0x37c64c(0x172)][_0x37c64c(0x140)](_0x2f8219);}};__decorate([(0x0,core_1[a2_0x4cdec4(0x16d)])(),__metadata(a2_0x4cdec4(0x15f),Object)],CustomConfiguration[a2_0x4cdec4(0x129)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x4cdec4(0x168)])(),__metadata('design:type',core_2[a2_0x4cdec4(0x12a)])],CustomConfiguration['prototype'],a2_0x4cdec4(0x172),void 0x0),__decorate([(0x0,core_1[a2_0x4cdec4(0x168)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x4cdec4(0x129)],a2_0x4cdec4(0x104),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4cdec4(0x15f),core_2[a2_0x4cdec4(0x16c)])],CustomConfiguration['prototype'],a2_0x4cdec4(0x126),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4cdec4(0x15f),core_2[a2_0x4cdec4(0x170)])],CustomConfiguration['prototype'],a2_0x4cdec4(0x183),void 0x0),__decorate([(0x0,core_1[a2_0x4cdec4(0x168)])(),__metadata(a2_0x4cdec4(0x15f),ApiService_1['ApiService'])],CustomConfiguration[a2_0x4cdec4(0x129)],a2_0x4cdec4(0x139),void 0x0),exports[a2_0x4cdec4(0x169)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x4cdec4(0x16b)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);function a2_0x2c9d(){const _0x12280d=['staticFile','AppsConfigTmp','object','default','search','application','match','./exception/ApiError','prototype','MidwayConfigService','routerName','@anncic-api/core','getAppDir','@midwayjs/cross-domain','app','__esModule','ApiError','decorate','registerMethodHandler','readdirSync','mkdirSync','method','anncicapi','body','ApiService','/runtime','includes','1735624CIDDpB','device','./config/config.production','attachment','addObject','tagName','443','@anncic-api/cache','@anncic-api/event','filterConfig','proceed','7039340KqgJxR','path','https://','midwayLogger','args','3031852EqOyBK','getAsync','get','request','isNull','(((.+)+)+)+$','parse','startsWith','@midwayjs/core','assign','toString','defineProperty','getConfiguration','connection','文件不存在','getBaseDir','2605902DqQgMx','isFunction','constructor','design:type','onReady','upload','existsSync','statSync','encrypted','length','/apps/','koa','Inject','CustomConfiguration','.log','Configuration','MidwayApplicationManager','App','intercept','lastIndexOf','MidwayEnvironmentService','6873736ObEmVk','config','function','/apps','3882025VBYrAu','query','ACTION_KEY','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','headers','requestContext','3BkptEH','http','./config/config.default','InterceptTargetTmp','_matchedRoute','tmpdir','input','getClassMetadata','environment','handlerActionRoute','isString','clients','__metadata','defaultsDeep','substring','metadata','context','HEADERS_SIGNATURE','http://','isArray','REQUEST_OBJ_CTX_KEY','1515563PyoUmO','handler','loggerConfig','decorator','@midwayjs/koa','./types/action','apimit','@midwayjs/upload','devices','toLowerCase','bodyXml','split','dirs','target','host','dir','req','apply','isDirectory','key','keys','requestKey','filepath','DEFAULT','undefined','INTERCEPT_KEY','requestMethod','isClass','log','forEach','string','module'];a2_0x2c9d=function(){return _0x12280d;};return a2_0x2c9d();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x5ed957=a3_0x1195;(function(_0x15b8dc,_0xa46426){const _0x39ae98=a3_0x1195,_0x1a18bc=_0x15b8dc();while(!![]){try{const _0x51f117=-parseInt(_0x39ae98(0xc3))/0x1+parseInt(_0x39ae98(0xcf))/0x2*(parseInt(_0x39ae98(0xc6))/0x3)+parseInt(_0x39ae98(0xad))/0x4+parseInt(_0x39ae98(0xd7))/0x5+parseInt(_0x39ae98(0xea))/0x6+parseInt(_0x39ae98(0xe9))/0x7+parseInt(_0x39ae98(0xe0))/0x8*(-parseInt(_0x39ae98(0xf1))/0x9);if(_0x51f117===_0xa46426)break;else _0x1a18bc['push'](_0x1a18bc['shift']());}catch(_0x422498){_0x1a18bc['push'](_0x1a18bc['shift']());}}}(a3_0xa9c8,0x59ae5));const a3_0x393e06=(function(){let _0x13bb6f=!![];return function(_0x119f5e,_0x292b8a){const _0x5b5290=_0x13bb6f?function(){const _0x15ff2f=a3_0x1195;if(_0x292b8a){const _0x47da1d=_0x292b8a[_0x15ff2f(0xab)](_0x119f5e,arguments);return _0x292b8a=null,_0x47da1d;}}:function(){};return _0x13bb6f=![],_0x5b5290;};}()),a3_0x2f8396=a3_0x393e06(this,function(){const _0x42c6ef=a3_0x1195;return a3_0x2f8396[_0x42c6ef(0xbb)]()[_0x42c6ef(0xc1)](_0x42c6ef(0xe3))['toString']()[_0x42c6ef(0xd0)](a3_0x2f8396)[_0x42c6ef(0xc1)](_0x42c6ef(0xe3));});a3_0x2f8396();'use strict';Object['defineProperty'](exports,a3_0x5ed957(0xc4),{'value':!![]}),exports['parseRoute']=exports[a3_0x5ed957(0xd9)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x5ed957(0xdf)),core_1=require('@midwayjs/core'),core_2=require(a3_0x5ed957(0xb7)),action_1=require(a3_0x5ed957(0xb2));function Action(_0x392427,_0x1b9e4f,_0x55fff5={'middleware':[],'sensitive':!![]}){return _0xe8e528=>{const _0x475ca1=a3_0x1195;var _0x5d5f1f;_0x55fff5[_0x475ca1(0xe5)]=_0x1b9e4f;const _0x2dced7=parseRoute(_0x392427);if(_0x2dced7['module']){_0x55fff5['prefix']=_0x55fff5[_0x475ca1(0xe4)]?'/'+_0x2dced7[_0x475ca1(0xe1)]+'/'+_0x55fff5['prefix']:'/'+_0x2dced7['route'];_0x2dced7['prefix']&&(_0x55fff5[_0x475ca1(0xe4)]='/'+_0x2dced7[_0x475ca1(0xe4)]+'/'+_0x55fff5[_0x475ca1(0xe4)]);if(fs[_0x475ca1(0xaf)](_0x2dced7[_0x475ca1(0xb3)]+_0x475ca1(0xd2)+_0x2dced7[_0x475ca1(0xe1)]+_0x475ca1(0xdd)+(lodash[_0x475ca1(0xac)](_0x2dced7[_0x475ca1(0xd3)],'ts')?'ts':'js'))){const _0x404137=include(_0x2dced7[_0x475ca1(0xb3)]+_0x475ca1(0xd2)+_0x2dced7[_0x475ca1(0xe1)]+_0x475ca1(0xdd)+(lodash[_0x475ca1(0xac)](_0x2dced7[_0x475ca1(0xd3)],'ts')?'ts':'js'));if(lodash[_0x475ca1(0xc7)](_0x404137[_0x475ca1(0xb4)])&&_0x404137[_0x475ca1(0xb4)][_0x475ca1(0xee)]>0x0)for(let _0x36aac3 in _0x404137['middleware']){if(((_0x5d5f1f=_0x404137===null||_0x404137===void 0x0?void 0x0:_0x404137[_0x475ca1(0xcd)])===null||_0x5d5f1f===void 0x0?void 0x0:_0x5d5f1f['length'])>0x0&&_0x404137[_0x475ca1(0xcd)][_0x475ca1(0xb6)](_0x404137[_0x475ca1(0xb4)][_0x36aac3])!=-0x1)continue;_0x55fff5[_0x475ca1(0xb4)][_0x475ca1(0xef)](_0x404137[_0x475ca1(0xb4)][_0x36aac3]);}const _0x32561c=(0x0,core_1[_0x475ca1(0xed)])(action_1[_0x475ca1(0xc8)],action_1[_0x475ca1(0xf3)])||{};_0x32561c[''+_0x2dced7[_0x475ca1(0xe1)]]=_0x404137,(0x0,core_1['saveClassMetadata'])(action_1[_0x475ca1(0xc8)],_0x32561c,action_1[_0x475ca1(0xf3)]);}_0x55fff5[_0x475ca1(0xe4)]=_0x55fff5['prefix']['toLowerCase']()[_0x475ca1(0xae)](/\/{2,}/g,'/'),(0x0,core_1[_0x475ca1(0xd1)])(action_1['ACTION_KEY'],_0xe8e528),(0x0,core_1[_0x475ca1(0xf2)])(_0x55fff5['prefix'],_0x55fff5)(_0xe8e528),(0x0,core_1[_0x475ca1(0xd8)])(action_1[_0x475ca1(0xd5)],{'prefix':_0x55fff5[_0x475ca1(0xe4)],'pprefix':_0x2dced7[_0x475ca1(0xe4)],'module':_0x2dced7[_0x475ca1(0xe1)],'filepath':_0x2dced7[_0x475ca1(0xd3)],'routerOptions':_0x55fff5},_0xe8e528);}else _0x55fff5['prefix']=_0x55fff5[_0x475ca1(0xe4)]?'/'+_0x55fff5[_0x475ca1(0xe4)]:'/'+_0x2dced7[_0x475ca1(0xe8)],_0x2dced7[_0x475ca1(0xe4)]&&(_0x55fff5['prefix']='/'+_0x2dced7['prefix']+'/'+_0x55fff5[_0x475ca1(0xe4)]),_0x55fff5[_0x475ca1(0xe4)]=_0x55fff5[_0x475ca1(0xe4)][_0x475ca1(0xb1)]()[_0x475ca1(0xae)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x475ca1(0xd5)],_0xe8e528),(0x0,core_1[_0x475ca1(0xf2)])(_0x55fff5[_0x475ca1(0xe4)],_0x55fff5)(_0xe8e528),(0x0,core_1[_0x475ca1(0xd8)])(action_1[_0x475ca1(0xd5)],{'prefix':_0x55fff5['prefix'],'module':_0x2dced7[_0x475ca1(0xe1)],'pprefix':_0x2dced7['prefix'],'filepath':_0x2dced7[_0x475ca1(0xd3)],'routerOptions':_0x55fff5},_0xe8e528);};}exports[a3_0x5ed957(0xf4)]=Action,Action[a3_0x5ed957(0xcc)]=function(_0x5dc338,_0x5ae5ee='/',_0x32dea0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x86f922,_0x1bc586,_0x2d4c5e)=>{const _0x51e185=a3_0x1195;ActionApi(_0x5dc338,_0x51e185(0xcc),_0x5ae5ee,_0x32dea0)(_0x86f922,_0x1bc586,_0x2d4c5e);};},Action[a3_0x5ed957(0xde)]=function(_0x4c7596,_0x54a172='/',_0x32c6e4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x49f0a4,_0x598374,_0x31a105)=>{ActionApi(_0x4c7596,'post',_0x54a172,_0x32c6e4)(_0x49f0a4,_0x598374,_0x31a105);};};function ActionApi(_0x3ab06d,_0x3674fb='get',_0x3aeffc='/',_0x281072={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x54bfc9,_0x5811a2,_0x57c277)=>{const _0x4e93ce=a3_0x1195;var _0x177433,_0x47e061,_0x12af40;!_0x281072[_0x4e93ce(0xb4)]&&(_0x281072['middleware']=[]);!((_0x177433=_0x281072===null||_0x281072===void 0x0?void 0x0:_0x281072[_0x4e93ce(0xf5)])===null||_0x177433===void 0x0?void 0x0:_0x177433[_0x4e93ce(0xe7)])&&(_0x281072[_0x4e93ce(0xf5)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x4e93ce(0xf6)}});if(!_0x3aeffc)_0x3aeffc='/';else typeof _0x3aeffc=='string'&&(!_0x3aeffc[_0x4e93ce(0xe6)]('/')&&!_0x3aeffc[_0x4e93ce(0xe6)]('-')&&(_0x3aeffc='/'+_0x3aeffc));typeof _0x281072[_0x4e93ce(0xbe)]==_0x4e93ce(0xce)&&(_0x281072[_0x4e93ce(0xbe)]=!![]);if(((_0x47e061=_0x281072===null||_0x281072===void 0x0?void 0x0:_0x281072[_0x4e93ce(0xb4)])===null||_0x47e061===void 0x0?void 0x0:_0x47e061[_0x4e93ce(0xee)])>0x0&&((_0x12af40=_0x281072===null||_0x281072===void 0x0?void 0x0:_0x281072[_0x4e93ce(0xcd)])===null||_0x12af40===void 0x0?void 0x0:_0x12af40[_0x4e93ce(0xee)])>0x0)for(let _0x6ba8e3 in _0x281072[_0x4e93ce(0xb4)]){_0x281072['middlewareIgnore']['indexOf'](_0x281072['middleware'][_0x6ba8e3])!==-0x1&&(_0x281072[_0x4e93ce(0xb4)][_0x6ba8e3]=null);}_0x281072[_0x4e93ce(0xb5)]=_0x3ab06d,(0x0,validator_1[_0x4e93ce(0xd6)])(_0x281072[_0x4e93ce(0xf5)])(_0x54bfc9,_0x5811a2,_0x57c277),(0x0,core_2['RequestMapping'])(Object[_0x4e93ce(0xec)](_0x281072,{'path':_0x3aeffc,'requestMethod':(_0x3674fb||_0x4e93ce(0xcc))['toLowerCase']()}))(_0x54bfc9,_0x5811a2,_0x57c277),(0x0,core_2[_0x4e93ce(0xbd)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3aeffc,'method':_0x5811a2,'apimit':_0x281072[_0x4e93ce(0xbe)],'intercept':_0x281072[_0x4e93ce(0xb8)],'routerName':_0x281072['routerName'],'description':_0x281072[_0x4e93ce(0xeb)],'middleware':(_0x281072[_0x4e93ce(0xb4)]||[])['filter'](_0x42d02b=>!!_0x42d02b),'requestMethod':(_0x3674fb||_0x4e93ce(0xcc))['toLowerCase']()},_0x54bfc9),(0x0,core_2[_0x4e93ce(0xe2)])(action_1[_0x4e93ce(0xd4)],{'path':_0x3aeffc,'method':_0x5811a2,'apimit':_0x281072[_0x4e93ce(0xbe)],'intercept':_0x281072[_0x4e93ce(0xb8)],'routerName':_0x281072[_0x4e93ce(0xb5)],'description':_0x281072['description'],'middleware':(_0x281072[_0x4e93ce(0xb4)]||[])[_0x4e93ce(0xdc)](_0x27ef33=>!!_0x27ef33),'requestMethod':(_0x3674fb||_0x4e93ce(0xcc))[_0x4e93ce(0xb1)]()})(_0x54bfc9,_0x5811a2,_0x57c277);};}exports[a3_0x5ed957(0xd9)]=ActionApi;function parseRoute(_0x30b1b3){const _0x19142b=a3_0x5ed957;_0x30b1b3=_0x30b1b3[_0x19142b(0xae)](/(\\|\/)/g,'/');const _0x3f4f28=process[_0x19142b(0xda)]()[_0x19142b(0xae)](/(\\|\/)/g,'/'),_0x2c8692=_0x30b1b3[_0x19142b(0xca)](0x0,_0x3f4f28[_0x19142b(0xee)]+_0x30b1b3[_0x19142b(0xca)](_0x3f4f28[_0x19142b(0xee)]+0x1)[_0x19142b(0xb6)]('/')+0x1),_0x269d26=_0x30b1b3[_0x19142b(0xca)](_0x2c8692[_0x19142b(0xee)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x5ba497={'route':'','prefix':![],'module':![],'rootpath':_0x2c8692,'filepath':_0x269d26};if(_0x269d26[_0x19142b(0xe6)]('app/controller/')||_0x269d26[_0x19142b(0xe6)](_0x19142b(0xc5))){const _0x71b05d=_0x269d26[_0x19142b(0xca)]((_0x269d26[_0x19142b(0xe6)]('app/controller/')?_0x19142b(0xf0):_0x19142b(0xc5))[_0x19142b(0xee)])[_0x19142b(0xbf)]('/')[_0x19142b(0xdc)](_0x218efc=>_0x218efc&&_0x218efc['trim']());return _0x71b05d[_0x19142b(0xee)]>0x1&&(_0x5ba497['prefix']=_0x71b05d[0x0][_0x19142b(0xb1)](),_0x71b05d['splice'](0x0,0x1)),_0x5ba497['route']=('/'+_0x71b05d[_0x19142b(0xf7)]('/'))[_0x19142b(0xae)](/(\.ts|\.js)$/,'')[_0x19142b(0xae)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x19142b(0xf7)]('-')[_0x19142b(0xb1)]()[_0x19142b(0xae)](/\/\-/g,'/'),_0x5ba497['route'][_0x19142b(0xac)](_0x19142b(0xdb))&&(_0x5ba497[_0x19142b(0xe8)]=_0x5ba497['route'][_0x19142b(0xca)](0x0,_0x5ba497[_0x19142b(0xe8)][_0x19142b(0xee)]-0x7)),_0x5ba497['route'][_0x19142b(0xac)](_0x19142b(0xbc))&&(_0x5ba497[_0x19142b(0xe8)]=_0x5ba497['route']['substring'](0x0,_0x5ba497['route']['length']-0xb)),_0x5ba497;}else{if(_0x269d26['startsWith'](_0x19142b(0xc0))){const _0x2d936f=_0x269d26['substring'](0x0,_0x269d26[_0x19142b(0xb6)](_0x19142b(0xd2))+0x5),_0x453536=_0x269d26['substring'](_0x2d936f[_0x19142b(0xee)]+0x1)[_0x19142b(0xae)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x269d26[_0x19142b(0xe6)]('apps/'+_0x453536+_0x19142b(0xc2))){const _0x2735f7=_0x269d26['substring']((_0x2d936f+'/'+_0x453536+'/controller/')[_0x19142b(0xee)])[_0x19142b(0xbf)]('/')['filter'](_0x26727e=>_0x26727e&&_0x26727e[_0x19142b(0xba)]());return _0x2735f7[_0x19142b(0xee)]>0x1&&(_0x5ba497['prefix']=_0x2735f7[0x0][_0x19142b(0xb1)](),_0x2735f7['splice'](0x0,0x1)),_0x5ba497[_0x19142b(0xe1)]=_0x453536,_0x5ba497['route']=('/'+_0x453536+'/'+_0x2735f7[_0x19142b(0xf7)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x19142b(0xae)](/\/{2,}/g,'/')[_0x19142b(0xb9)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x19142b(0xae)](/\/\-/g,'/'),_0x5ba497[_0x19142b(0xe8)][_0x19142b(0xac)](_0x19142b(0xdb))&&(_0x5ba497[_0x19142b(0xe8)]=_0x5ba497[_0x19142b(0xe8)][_0x19142b(0xca)](0x0,_0x5ba497[_0x19142b(0xe8)][_0x19142b(0xee)]-0x7)),_0x5ba497[_0x19142b(0xe8)]['endsWith']('-controller')&&(_0x5ba497[_0x19142b(0xe8)]=_0x5ba497['route']['substring'](0x0,_0x5ba497[_0x19142b(0xe8)][_0x19142b(0xee)]-0xb)),_0x5ba497;}throw new Error(_0x269d26+'\x20文件请放在apps/'+_0x453536+_0x19142b(0xb0));}}throw new Error(_0x269d26+_0x19142b(0xc9));}exports[a3_0x5ed957(0xcb)]=parseRoute;function a3_0x1195(_0x54321f,_0x34163b){const _0x547354=a3_0xa9c8();return a3_0x1195=function(_0x2f8396,_0x393e06){_0x2f8396=_0x2f8396-0xab;let _0xa9c832=_0x547354[_0x2f8396];return _0xa9c832;},a3_0x1195(_0x54321f,_0x34163b);}function a3_0xa9c8(){const _0x3bb987=['split','apps/','search','/controller/','308746wDZUSH','__esModule','basic/controller/','6rubBfm','isArray','APPSCONFIG_KEY','\x20文件请放在app/controller/文件下','substring','parseRoute','get','middlewareIgnore','undefined','570298ZzUwpg','constructor','saveModule','/apps/','filepath','ACTION_ROUTE_KEY','ACTION_KEY','Validator','92685VJzXFj','saveClassMetadata','ActionApi','cwd','-action','filter','/config.','post','@anncic-api/validator','84064rLjcTp','module','createCustomMethodDecorator','(((.+)+)+)+$','prefix','tagName','startsWith','validationOptions','route','3349437sqdAoB','3618912UaTTbv','description','assign','getClassMetadata','length','push','app/controller/','1332qFwDLa','Controller','AppsConfigTmp','Action','validate','string','join','apply','endsWith','2243140wkrLmR','replace','existsSync','/controller/文件下','toLowerCase','../types/action','rootpath','middleware','routerName','indexOf','@midwayjs/core','intercept','match','trim','toString','-controller','attachClassMetadata','apimit'];a3_0xa9c8=function(){return _0x3bb987;};return a3_0xa9c8();}
|
|
1
|
+
const a3_0x310d6e=a3_0x2e22;(function(_0x5f482b,_0x52480f){const _0x35042f=a3_0x2e22,_0x55262c=_0x5f482b();while(!![]){try{const _0x17bbd7=parseInt(_0x35042f(0x199))/0x1+parseInt(_0x35042f(0x195))/0x2+-parseInt(_0x35042f(0x196))/0x3*(-parseInt(_0x35042f(0x1d4))/0x4)+parseInt(_0x35042f(0x191))/0x5*(-parseInt(_0x35042f(0x1b6))/0x6)+parseInt(_0x35042f(0x19d))/0x7*(parseInt(_0x35042f(0x1c1))/0x8)+parseInt(_0x35042f(0x1a5))/0x9*(parseInt(_0x35042f(0x1a6))/0xa)+parseInt(_0x35042f(0x19e))/0xb*(-parseInt(_0x35042f(0x1b3))/0xc);if(_0x17bbd7===_0x52480f)break;else _0x55262c['push'](_0x55262c['shift']());}catch(_0xe38469){_0x55262c['push'](_0x55262c['shift']());}}}(a3_0x2ffd,0xdd2b1));const a3_0x22f7e8=(function(){let _0x22c3a5=!![];return function(_0x3217ee,_0x35aebc){const _0x373802=_0x22c3a5?function(){if(_0x35aebc){const _0x340873=_0x35aebc['apply'](_0x3217ee,arguments);return _0x35aebc=null,_0x340873;}}:function(){};return _0x22c3a5=![],_0x373802;};}()),a3_0xe3dca3=a3_0x22f7e8(this,function(){const _0x19c8ca=a3_0x2e22;return a3_0xe3dca3[_0x19c8ca(0x18c)]()[_0x19c8ca(0x194)](_0x19c8ca(0x1c3))[_0x19c8ca(0x18c)]()[_0x19c8ca(0x18e)](a3_0xe3dca3)[_0x19c8ca(0x194)](_0x19c8ca(0x1c3));});a3_0xe3dca3();'use strict';function a3_0x2ffd(){const _0x2b4dcf=['replace','validationOptions','apimit','createCustomMethodDecorator','toLowerCase','trim','assign','/controller/','undefined','post','1011848GxkWQX','-controller','(((.+)+)+)+$','isArray','startsWith','length','defineProperty','attachClassMetadata','intercept','match','Validator','push','Controller','ACTION_KEY','get','saveModule','module','filepath','basic/controller/','244amDIbY','ACTION_ROUTE_KEY','Action','@anncic-api/validator','\x20文件请放在app/controller/文件下','endsWith','toString','AppsConfigTmp','constructor','filter','__esModule','97795AAoklC','string','cwd','search','1067734vERMwv','68988nitRbw','split','APPSCONFIG_KEY','1638500VuwDGx','-action','middlewareIgnore','middleware','35VPzmFv','3564341YiIjRs','saveClassMetadata','/apps/','routerName','prefix','description','@midwayjs/core','126gTYwAo','596990kcaURb','splice','ActionApi','getClassMetadata','existsSync','validate','join','\x20文件请放在apps/','substring','/controller/文件下','route','apps/','app/controller/','96kVobVb','indexOf','../types/action','474qHCWVZ'];a3_0x2ffd=function(){return _0x2b4dcf;};return a3_0x2ffd();}Object[a3_0x310d6e(0x1c7)](exports,a3_0x310d6e(0x190),{'value':!![]}),exports['parseRoute']=exports[a3_0x310d6e(0x1a8)]=exports[a3_0x310d6e(0x188)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x310d6e(0x189)),core_1=require('@midwayjs/core'),core_2=require(a3_0x310d6e(0x1a4)),action_1=require(a3_0x310d6e(0x1b5));function Action(_0x484289,_0x26ad0e,_0x499942={'middleware':[],'sensitive':!![]}){return _0x2bec8a=>{const _0x18ddfe=a3_0x2e22;var _0x1f4c34;_0x499942['tagName']=_0x26ad0e;const _0x4e93cd=parseRoute(_0x484289);if(_0x4e93cd[_0x18ddfe(0x1d1)]){_0x499942[_0x18ddfe(0x1a2)]=_0x499942[_0x18ddfe(0x1a2)]?'/'+_0x4e93cd[_0x18ddfe(0x1d1)]+'/'+_0x499942['prefix']:'/'+_0x4e93cd[_0x18ddfe(0x1b0)];_0x4e93cd[_0x18ddfe(0x1a2)]&&(_0x499942[_0x18ddfe(0x1a2)]='/'+_0x4e93cd[_0x18ddfe(0x1a2)]+'/'+_0x499942[_0x18ddfe(0x1a2)]);if(fs[_0x18ddfe(0x1aa)](_0x4e93cd['rootpath']+_0x18ddfe(0x1a0)+_0x4e93cd[_0x18ddfe(0x1d1)]+'/config.'+(lodash[_0x18ddfe(0x18b)](_0x4e93cd[_0x18ddfe(0x1d2)],'ts')?'ts':'js'))){const _0x30302a=include(_0x4e93cd['rootpath']+'/apps/'+_0x4e93cd[_0x18ddfe(0x1d1)]+'/config.'+(lodash[_0x18ddfe(0x18b)](_0x4e93cd[_0x18ddfe(0x1d2)],'ts')?'ts':'js'));if(lodash[_0x18ddfe(0x1c4)](_0x30302a[_0x18ddfe(0x19c)])&&_0x30302a[_0x18ddfe(0x19c)][_0x18ddfe(0x1c6)]>0x0)for(let _0x5ed05e in _0x30302a['middleware']){if(((_0x1f4c34=_0x30302a===null||_0x30302a===void 0x0?void 0x0:_0x30302a[_0x18ddfe(0x19b)])===null||_0x1f4c34===void 0x0?void 0x0:_0x1f4c34[_0x18ddfe(0x1c6)])>0x0&&_0x30302a[_0x18ddfe(0x19b)][_0x18ddfe(0x1b4)](_0x30302a[_0x18ddfe(0x19c)][_0x5ed05e])!=-0x1)continue;_0x499942[_0x18ddfe(0x19c)][_0x18ddfe(0x1cc)](_0x30302a[_0x18ddfe(0x19c)][_0x5ed05e]);}const _0x2e3de3=(0x0,core_1[_0x18ddfe(0x1a9)])(action_1['APPSCONFIG_KEY'],action_1[_0x18ddfe(0x18d)])||{};_0x2e3de3[''+_0x4e93cd[_0x18ddfe(0x1d1)]]=_0x30302a,(0x0,core_1[_0x18ddfe(0x19f)])(action_1[_0x18ddfe(0x198)],_0x2e3de3,action_1[_0x18ddfe(0x18d)]);}_0x499942['prefix']=_0x499942[_0x18ddfe(0x1a2)][_0x18ddfe(0x1bb)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x2bec8a),(0x0,core_1['Controller'])(_0x499942['prefix'],_0x499942)(_0x2bec8a),(0x0,core_1[_0x18ddfe(0x19f)])(action_1[_0x18ddfe(0x1ce)],{'prefix':_0x499942[_0x18ddfe(0x1a2)],'pprefix':_0x4e93cd['prefix'],'module':_0x4e93cd[_0x18ddfe(0x1d1)],'filepath':_0x4e93cd[_0x18ddfe(0x1d2)],'routerOptions':_0x499942},_0x2bec8a);}else _0x499942[_0x18ddfe(0x1a2)]=_0x499942[_0x18ddfe(0x1a2)]?'/'+_0x499942[_0x18ddfe(0x1a2)]:'/'+_0x4e93cd['route'],_0x4e93cd[_0x18ddfe(0x1a2)]&&(_0x499942[_0x18ddfe(0x1a2)]='/'+_0x4e93cd[_0x18ddfe(0x1a2)]+'/'+_0x499942[_0x18ddfe(0x1a2)]),_0x499942['prefix']=_0x499942[_0x18ddfe(0x1a2)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x18ddfe(0x1d0)])(action_1[_0x18ddfe(0x1ce)],_0x2bec8a),(0x0,core_1[_0x18ddfe(0x1cd)])(_0x499942[_0x18ddfe(0x1a2)],_0x499942)(_0x2bec8a),(0x0,core_1[_0x18ddfe(0x19f)])(action_1[_0x18ddfe(0x1ce)],{'prefix':_0x499942['prefix'],'module':_0x4e93cd[_0x18ddfe(0x1d1)],'pprefix':_0x4e93cd[_0x18ddfe(0x1a2)],'filepath':_0x4e93cd['filepath'],'routerOptions':_0x499942},_0x2bec8a);};}exports[a3_0x310d6e(0x188)]=Action,Action[a3_0x310d6e(0x1cf)]=function(_0x2bb58f,_0x283468='/',_0x31f71c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xe7111c,_0xadb008,_0x2de6dd)=>{const _0x190206=a3_0x2e22;ActionApi(_0x2bb58f,_0x190206(0x1cf),_0x283468,_0x31f71c)(_0xe7111c,_0xadb008,_0x2de6dd);};},Action[a3_0x310d6e(0x1c0)]=function(_0x4432fe,_0x1b4e27='/',_0x4807ba={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x12dc3e,_0x3b6814,_0x1b86e5)=>{const _0x14bab8=a3_0x2e22;ActionApi(_0x4432fe,_0x14bab8(0x1c0),_0x1b4e27,_0x4807ba)(_0x12dc3e,_0x3b6814,_0x1b86e5);};};function a3_0x2e22(_0x34baa7,_0x187ee1){const _0x17be48=a3_0x2ffd();return a3_0x2e22=function(_0xe3dca3,_0x22f7e8){_0xe3dca3=_0xe3dca3-0x187;let _0x2ffd5a=_0x17be48[_0xe3dca3];return _0x2ffd5a;},a3_0x2e22(_0x34baa7,_0x187ee1);}function ActionApi(_0x9ea1c7,_0x2bcced=a3_0x310d6e(0x1cf),_0x5a613b='/',_0x2763b8={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3c7379,_0x35a67e,_0x55ee10)=>{const _0x1e68b6=a3_0x2e22;var _0x4a6bd6,_0x5472c7,_0x325448;!_0x2763b8[_0x1e68b6(0x19c)]&&(_0x2763b8['middleware']=[]);!((_0x4a6bd6=_0x2763b8===null||_0x2763b8===void 0x0?void 0x0:_0x2763b8[_0x1e68b6(0x1ab)])===null||_0x4a6bd6===void 0x0?void 0x0:_0x4a6bd6[_0x1e68b6(0x1b8)])&&(_0x2763b8[_0x1e68b6(0x1ab)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1e68b6(0x192)}});if(!_0x5a613b)_0x5a613b='/';else typeof _0x5a613b==_0x1e68b6(0x192)&&(!_0x5a613b[_0x1e68b6(0x1c5)]('/')&&!_0x5a613b[_0x1e68b6(0x1c5)]('-')&&(_0x5a613b='/'+_0x5a613b));typeof _0x2763b8[_0x1e68b6(0x1b9)]==_0x1e68b6(0x1bf)&&(_0x2763b8[_0x1e68b6(0x1b9)]=!![]);if(((_0x5472c7=_0x2763b8===null||_0x2763b8===void 0x0?void 0x0:_0x2763b8[_0x1e68b6(0x19c)])===null||_0x5472c7===void 0x0?void 0x0:_0x5472c7['length'])>0x0&&((_0x325448=_0x2763b8===null||_0x2763b8===void 0x0?void 0x0:_0x2763b8[_0x1e68b6(0x19b)])===null||_0x325448===void 0x0?void 0x0:_0x325448['length'])>0x0)for(let _0x59e5e7 in _0x2763b8['middleware']){_0x2763b8[_0x1e68b6(0x19b)]['indexOf'](_0x2763b8[_0x1e68b6(0x19c)][_0x59e5e7])!==-0x1&&(_0x2763b8[_0x1e68b6(0x19c)][_0x59e5e7]=null);}_0x2763b8[_0x1e68b6(0x1a1)]=_0x9ea1c7,(0x0,validator_1[_0x1e68b6(0x1cb)])(_0x2763b8[_0x1e68b6(0x1ab)])(_0x3c7379,_0x35a67e,_0x55ee10),(0x0,core_2['RequestMapping'])(Object[_0x1e68b6(0x1bd)](_0x2763b8,{'path':_0x5a613b,'requestMethod':(_0x2bcced||_0x1e68b6(0x1cf))[_0x1e68b6(0x1bb)]()}))(_0x3c7379,_0x35a67e,_0x55ee10),(0x0,core_2[_0x1e68b6(0x1c8)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x5a613b,'method':_0x35a67e,'apimit':_0x2763b8[_0x1e68b6(0x1b9)],'intercept':_0x2763b8[_0x1e68b6(0x1c9)],'routerName':_0x2763b8[_0x1e68b6(0x1a1)],'description':_0x2763b8[_0x1e68b6(0x1a3)],'middleware':(_0x2763b8['middleware']||[])['filter'](_0x11425f=>!!_0x11425f),'requestMethod':(_0x2bcced||_0x1e68b6(0x1cf))[_0x1e68b6(0x1bb)]()},_0x3c7379),(0x0,core_2[_0x1e68b6(0x1ba)])(action_1[_0x1e68b6(0x187)],{'path':_0x5a613b,'method':_0x35a67e,'apimit':_0x2763b8[_0x1e68b6(0x1b9)],'intercept':_0x2763b8['intercept'],'routerName':_0x2763b8[_0x1e68b6(0x1a1)],'description':_0x2763b8[_0x1e68b6(0x1a3)],'middleware':(_0x2763b8[_0x1e68b6(0x19c)]||[])[_0x1e68b6(0x18f)](_0x47e7ee=>!!_0x47e7ee),'requestMethod':(_0x2bcced||_0x1e68b6(0x1cf))['toLowerCase']()})(_0x3c7379,_0x35a67e,_0x55ee10);};}exports[a3_0x310d6e(0x1a8)]=ActionApi;function parseRoute(_0x2ddfdb){const _0xa22cf1=a3_0x310d6e;_0x2ddfdb=_0x2ddfdb[_0xa22cf1(0x1b7)](/(\\|\/)/g,'/');const _0x1a0f57=process[_0xa22cf1(0x193)]()['replace'](/(\\|\/)/g,'/'),_0xd6839d=_0x2ddfdb[_0xa22cf1(0x1ae)](0x0,_0x1a0f57[_0xa22cf1(0x1c6)]+_0x2ddfdb[_0xa22cf1(0x1ae)](_0x1a0f57[_0xa22cf1(0x1c6)]+0x1)['indexOf']('/')+0x1),_0x2d93bd=_0x2ddfdb[_0xa22cf1(0x1ae)](_0xd6839d[_0xa22cf1(0x1c6)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x594aba={'route':'','prefix':![],'module':![],'rootpath':_0xd6839d,'filepath':_0x2d93bd};if(_0x2d93bd[_0xa22cf1(0x1c5)](_0xa22cf1(0x1b2))||_0x2d93bd[_0xa22cf1(0x1c5)](_0xa22cf1(0x1d3))){const _0x35f0cd=_0x2d93bd['substring']((_0x2d93bd[_0xa22cf1(0x1c5)](_0xa22cf1(0x1b2))?_0xa22cf1(0x1b2):_0xa22cf1(0x1d3))[_0xa22cf1(0x1c6)])['split']('/')[_0xa22cf1(0x18f)](_0x31a1df=>_0x31a1df&&_0x31a1df[_0xa22cf1(0x1bc)]());return _0x35f0cd[_0xa22cf1(0x1c6)]>0x1&&(_0x594aba[_0xa22cf1(0x1a2)]=_0x35f0cd[0x0][_0xa22cf1(0x1bb)](),_0x35f0cd[_0xa22cf1(0x1a7)](0x0,0x1)),_0x594aba[_0xa22cf1(0x1b0)]=('/'+_0x35f0cd[_0xa22cf1(0x1ac)]('/'))[_0xa22cf1(0x1b7)](/(\.ts|\.js)$/,'')[_0xa22cf1(0x1b7)](/\/{2,}/g,'/')[_0xa22cf1(0x1ca)](/[\/|A-Z]*[^A-Z]+/g)[_0xa22cf1(0x1ac)]('-')[_0xa22cf1(0x1bb)]()[_0xa22cf1(0x1b7)](/\/\-/g,'/'),_0x594aba['route'][_0xa22cf1(0x18b)]('-action')&&(_0x594aba['route']=_0x594aba[_0xa22cf1(0x1b0)][_0xa22cf1(0x1ae)](0x0,_0x594aba['route']['length']-0x7)),_0x594aba[_0xa22cf1(0x1b0)]['endsWith'](_0xa22cf1(0x1c2))&&(_0x594aba[_0xa22cf1(0x1b0)]=_0x594aba['route'][_0xa22cf1(0x1ae)](0x0,_0x594aba['route'][_0xa22cf1(0x1c6)]-0xb)),_0x594aba;}else{if(_0x2d93bd[_0xa22cf1(0x1c5)](_0xa22cf1(0x1b1))){const _0xb1ef30=_0x2d93bd['substring'](0x0,_0x2d93bd['indexOf'](_0xa22cf1(0x1a0))+0x5),_0xf1f9fc=_0x2d93bd['substring'](_0xb1ef30[_0xa22cf1(0x1c6)]+0x1)[_0xa22cf1(0x1b7)](/(\\|\/)/g,'/')[_0xa22cf1(0x197)]('/')[0x0];if(_0x2d93bd['startsWith'](_0xa22cf1(0x1b1)+_0xf1f9fc+_0xa22cf1(0x1be))){const _0x26df71=_0x2d93bd['substring']((_0xb1ef30+'/'+_0xf1f9fc+_0xa22cf1(0x1be))[_0xa22cf1(0x1c6)])[_0xa22cf1(0x197)]('/')[_0xa22cf1(0x18f)](_0x2d22a4=>_0x2d22a4&&_0x2d22a4['trim']());return _0x26df71[_0xa22cf1(0x1c6)]>0x1&&(_0x594aba['prefix']=_0x26df71[0x0]['toLowerCase'](),_0x26df71['splice'](0x0,0x1)),_0x594aba[_0xa22cf1(0x1d1)]=_0xf1f9fc,_0x594aba[_0xa22cf1(0x1b0)]=('/'+_0xf1f9fc+'/'+_0x26df71[_0xa22cf1(0x1ac)]('/'))[_0xa22cf1(0x1b7)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0xa22cf1(0x1ca)](/[\/|A-Z]*[^A-Z]+/g)[_0xa22cf1(0x1ac)]('-')[_0xa22cf1(0x1bb)]()[_0xa22cf1(0x1b7)](/\/\-/g,'/'),_0x594aba[_0xa22cf1(0x1b0)]['endsWith'](_0xa22cf1(0x19a))&&(_0x594aba[_0xa22cf1(0x1b0)]=_0x594aba[_0xa22cf1(0x1b0)][_0xa22cf1(0x1ae)](0x0,_0x594aba['route'][_0xa22cf1(0x1c6)]-0x7)),_0x594aba[_0xa22cf1(0x1b0)][_0xa22cf1(0x18b)]('-controller')&&(_0x594aba[_0xa22cf1(0x1b0)]=_0x594aba[_0xa22cf1(0x1b0)]['substring'](0x0,_0x594aba[_0xa22cf1(0x1b0)][_0xa22cf1(0x1c6)]-0xb)),_0x594aba;}throw new Error(_0x2d93bd+_0xa22cf1(0x1ad)+_0xf1f9fc+_0xa22cf1(0x1af));}}throw new Error(_0x2d93bd+_0xa22cf1(0x18a));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x3cbade=a4_0x2401;(function(_0x11f99d,_0x323b51){const _0x6f7e4e=a4_0x2401,_0x3b3a60=_0x11f99d();while(!![]){try{const _0x4ba066=parseInt(_0x6f7e4e(0x119))/0x1+parseInt(_0x6f7e4e(0x109))/0x2*(parseInt(_0x6f7e4e(0x11a))/0x3)+-parseInt(_0x6f7e4e(0x10a))/0x4+parseInt(_0x6f7e4e(0x113))/0x5*(-parseInt(_0x6f7e4e(0x114))/0x6)+parseInt(_0x6f7e4e(0x11b))/0x7+parseInt(_0x6f7e4e(0x11e))/0x8*(parseInt(_0x6f7e4e(0x117))/0x9)+parseInt(_0x6f7e4e(0x10f))/0xa*(-parseInt(_0x6f7e4e(0x104))/0xb);if(_0x4ba066===_0x323b51)break;else _0x3b3a60['push'](_0x3b3a60['shift']());}catch(_0x5f189b){_0x3b3a60['push'](_0x3b3a60['shift']());}}}(a4_0x3a47,0x4f432));const a4_0x11b6f3=(function(){let _0x3dd99c=!![];return function(_0xb6505,_0xcfa758){const _0x475cff=_0x3dd99c?function(){const _0x18df4c=a4_0x2401;if(_0xcfa758){const _0x2b3f6e=_0xcfa758[_0x18df4c(0x106)](_0xb6505,arguments);return _0xcfa758=null,_0x2b3f6e;}}:function(){};return _0x3dd99c=![],_0x475cff;};}()),a4_0x16f5e1=a4_0x11b6f3(this,function(){const _0x50fd02=a4_0x2401;return a4_0x16f5e1['toString']()[_0x50fd02(0x10d)](_0x50fd02(0x120))[_0x50fd02(0x108)]()[_0x50fd02(0x116)](a4_0x16f5e1)[_0x50fd02(0x10d)](_0x50fd02(0x120));});function a4_0x2401(_0x2f10e1,_0x57e5b9){const _0x50513a=a4_0x3a47();return a4_0x2401=function(_0x16f5e1,_0x11b6f3){_0x16f5e1=_0x16f5e1-0x101;let _0x3a47f0=_0x50513a[_0x16f5e1];return _0x3a47f0;},a4_0x2401(_0x2f10e1,_0x57e5b9);}a4_0x16f5e1();'use strict';Object[a4_0x3cbade(0x111)](exports,'__esModule',{'value':!![]}),exports[a4_0x3cbade(0x11f)]=void 0x0;const core_1=require(a4_0x3cbade(0x112)),ApitestService_1=require(a4_0x3cbade(0x118));function Apitest(_0x51b6ce='/apitest',_0x280836){return(_0x7cc14d,_0x5e1d6d,_0x4e7e6d)=>{const _0x25c6c4=a4_0x2401;return(0x0,core_1[_0x25c6c4(0x105)])({'path':_0x51b6ce,'requestMethod':'get'})(_0x7cc14d,_0x5e1d6d,_0x4e7e6d),_0x4e7e6d['value']=async function(..._0xaa25a5){const _0x50d0aa=_0x25c6c4;var _0x9de948;const _0x253ddf=(_0x9de948=this[core_1[_0x50d0aa(0x11c)]])===null||_0x9de948===void 0x0?void 0x0:_0x9de948[_0x50d0aa(0x115)];if(_0x253ddf&&_0x253ddf[_0x50d0aa(0x10b)](_0x50d0aa(0x107))){const _0x33e3d2=await _0x253ddf[_0x50d0aa(0x102)]()[_0x50d0aa(0x110)](ApitestService_1[_0x50d0aa(0x101)]),_0x587d74=await _0x253ddf[_0x50d0aa(0x102)]()[_0x50d0aa(0x110)](core_1[_0x50d0aa(0x10e)]);return _0x587d74[_0x50d0aa(0x103)]()&&(_0x280836[_0x50d0aa(0x11d)]=!![]),await _0x33e3d2[_0x50d0aa(0x10c)](_0x280836);}return'';},_0x4e7e6d;};}exports[a4_0x3cbade(0x11f)]=Apitest;function a4_0x3a47(){const _0x441474=['defineProperty','@midwayjs/core','364855jYhczy','6rQzIVs','app','constructor','171UVNhln','../service/ApitestService','641568ZlXkeU','678fbLzbU','3407621lHnFot','REQUEST_OBJ_CTX_KEY','filepath','141704qcLAkH','Apitest','(((.+)+)+)+$','ApitestService','getApplicationContext','isDevelopmentEnvironment','7820043uzYuQq','RequestMapping','apply','apitest','toString','776NvfknJ','1776256gLPDaz','getConfig','apidoc','search','MidwayEnvironmentService','10AukRrm','getAsync'];a4_0x3a47=function(){return _0x441474;};return a4_0x3a47();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x470231=a5_0x1fee;(function(_0x285084,_0x24f457){const _0x3ef626=a5_0x1fee,_0x21676a=_0x285084();while(!![]){try{const _0x2b0902=parseInt(_0x3ef626(0x1ac))/0x1+parseInt(_0x3ef626(0x1a0))/0x2*(-parseInt(_0x3ef626(0x1a2))/0x3)+parseInt(_0x3ef626(0x1a9))/0x4+-parseInt(_0x3ef626(0x1a5))/0x5*(-parseInt(_0x3ef626(0x1a8))/0x6)+-parseInt(_0x3ef626(0x1ad))/0x7*(parseInt(_0x3ef626(0x1b3))/0x8)+-parseInt(_0x3ef626(0x1a3))/0x9+parseInt(_0x3ef626(0x1b5))/0xa;if(_0x2b0902===_0x24f457)break;else _0x21676a['push'](_0x21676a['shift']());}catch(_0x446156){_0x21676a['push'](_0x21676a['shift']());}}}(a5_0x1f4a,0x45bc9));const a5_0x27cabe=(function(){let _0x13af20=!![];return function(_0x22be27,_0x4a6ded){const _0x31c7dd=_0x13af20?function(){const _0x550bcc=a5_0x1fee;if(_0x4a6ded){const _0x56349a=_0x4a6ded[_0x550bcc(0x1b4)](_0x22be27,arguments);return _0x4a6ded=null,_0x56349a;}}:function(){};return _0x13af20=![],_0x31c7dd;};}()),a5_0x3e3caf=a5_0x27cabe(this,function(){const _0x56ab27=a5_0x1fee;return a5_0x3e3caf['toString']()[_0x56ab27(0x199)](_0x56ab27(0x198))[_0x56ab27(0x19d)]()[_0x56ab27(0x1b2)](a5_0x3e3caf)[_0x56ab27(0x199)](_0x56ab27(0x198));});a5_0x3e3caf();'use strict';Object[a5_0x470231(0x1a1)](exports,'__esModule',{'value':!![]}),exports[a5_0x470231(0x1af)]=exports['Intercept']=void 0x0;const core_1=require(a5_0x470231(0x1b0)),intercept_1=require(a5_0x470231(0x1aa));function Intercept(_0x1511fe){return _0x34135d=>{const _0x22d62c=a5_0x1fee,_0x523366=(0x0,core_1[_0x22d62c(0x1ae)])(intercept_1[_0x22d62c(0x1b8)],intercept_1['InterceptTargetTmp'])||{};for(let _0x155ab0 of Array[_0x22d62c(0x1a7)](_0x1511fe)?_0x1511fe:[_0x1511fe]){_0x155ab0=_0x155ab0[_0x22d62c(0x19a)]();!(_0x523366===null||_0x523366===void 0x0?void 0x0:_0x523366[_0x155ab0])&&(_0x523366[_0x155ab0]=[]);if(_0x523366[_0x155ab0][_0x22d62c(0x19e)](_0x34135d))continue;_0x523366[_0x155ab0][_0x22d62c(0x19b)](_0x34135d);}(0x0,core_1[_0x22d62c(0x1b7)])()(_0x34135d),(0x0,core_1[_0x22d62c(0x19c)])(core_1[_0x22d62c(0x1b1)][_0x22d62c(0x1a6)])(_0x34135d),(0x0,core_1[_0x22d62c(0x1ab)])(intercept_1['INTERCEPT_KEY'],_0x523366,intercept_1[_0x22d62c(0x1b6)]);};}exports[a5_0x470231(0x1a4)]=Intercept;class IIntercept{async[a5_0x470231(0x19f)](_0x3a6115,_0x4ece98,_0x50bcd2){return!![];}}function a5_0x1f4a(){const _0x433b36=['toUpperCase','push','Scope','toString','includes','match','564378FUCMvd','defineProperty','6qUIfQs','1994319ssvxOX','Intercept','5ohgsoQ','Singleton','isArray','185874uMSpMK','833444oRbVIs','../types/intercept','saveClassMetadata','461184OfTmyH','21lfvzhW','getClassMetadata','IIntercept','@midwayjs/core','ScopeEnum','constructor','1317136ZiJgye','apply','8650120BQqgbm','InterceptTargetTmp','Provide','INTERCEPT_KEY','(((.+)+)+)+$','search'];a5_0x1f4a=function(){return _0x433b36;};return a5_0x1f4a();}function a5_0x1fee(_0x59614f,_0x4aeb78){const _0x3b6e32=a5_0x1f4a();return a5_0x1fee=function(_0x3e3caf,_0x27cabe){_0x3e3caf=_0x3e3caf-0x198;let _0x1f4a1b=_0x3b6e32[_0x3e3caf];return _0x1f4a1b;},a5_0x1fee(_0x59614f,_0x4aeb78);}exports[a5_0x470231(0x1af)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a6_0x3908(){var _0x4215cf=['161409SODAWl','defineProperty','92817BazosE','41397JRZUbK','4761966QDbCqP','design:type','5Hgdqjo','请使用正确的设备','4288603knNytR','2288584vqFqdm','constructor','metadata','20VkoNnN','TIMEOUT_LOGINTIME','请求超时,请重试','HEADERS_DEVICE','(((.+)+)+)+$','10DLqlGL','ApiError','712mrGlNi','HEADERS_CHECKCODE','toString','signature验证失败','function','HEADERS_SIGNATURE','验证失败,请重新登录','search','1554413ngVXow','请求头信息不完整','__decorate','object','HEADERS_LACK','decorate','登录超时,请重新登录'];a6_0x3908=function(){return _0x4215cf;};return a6_0x3908();}var a6_0x1ea225=a6_0x218a;(function(_0x52769a,_0x332fa9){var _0x4f3fba=a6_0x218a,_0x2ab80d=_0x52769a();while(!![]){try{var _0xbbf53a=-parseInt(_0x4f3fba(0x1aa))/0x1+-parseInt(_0x4f3fba(0x199))/0x2*(-parseInt(_0x4f3fba(0x1ad))/0x3)+-parseInt(_0x4f3fba(0x1b3))/0x4*(parseInt(_0x4f3fba(0x1b0))/0x5)+parseInt(_0x4f3fba(0x1ae))/0x6+parseInt(_0x4f3fba(0x1a3))/0x7+parseInt(_0x4f3fba(0x19b))/0x8*(parseInt(_0x4f3fba(0x1ac))/0x9)+-parseInt(_0x4f3fba(0x194))/0xa*(parseInt(_0x4f3fba(0x1b2))/0xb);if(_0xbbf53a===_0x332fa9)break;else _0x2ab80d['push'](_0x2ab80d['shift']());}catch(_0x357f44){_0x2ab80d['push'](_0x2ab80d['shift']());}}}(a6_0x3908,0x77737));var a6_0x3a333a=(function(){var _0x1ff7ce=!![];return function(_0x1dfca7,_0x2741d3){var _0x2f4d0f=_0x1ff7ce?function(){if(_0x2741d3){var _0x2b3d00=_0x2741d3['apply'](_0x1dfca7,arguments);return _0x2741d3=null,_0x2b3d00;}}:function(){};return _0x1ff7ce=![],_0x2f4d0f;};}()),a6_0x5c7a08=a6_0x3a333a(this,function(){var _0xd4c8b2=a6_0x218a;return a6_0x5c7a08[_0xd4c8b2(0x19d)]()[_0xd4c8b2(0x1a2)](_0xd4c8b2(0x198))[_0xd4c8b2(0x19d)]()[_0xd4c8b2(0x1b4)](a6_0x5c7a08)[_0xd4c8b2(0x1a2)](_0xd4c8b2(0x198));});a6_0x5c7a08();'use strict';var __decorate=this&&this[a6_0x1ea225(0x1a5)]||function(_0x87d9d5,_0x5cf76a,_0x55be07,_0x4a97a0){var _0x5f23fe=a6_0x1ea225,_0x35c77b=arguments['length'],_0x39ce71=_0x35c77b<0x3?_0x5cf76a:_0x4a97a0===null?_0x4a97a0=Object['getOwnPropertyDescriptor'](_0x5cf76a,_0x55be07):_0x4a97a0,_0x39c24a;if(typeof Reflect==='object'&&typeof Reflect[_0x5f23fe(0x1a8)]===_0x5f23fe(0x19f))_0x39ce71=Reflect[_0x5f23fe(0x1a8)](_0x87d9d5,_0x5cf76a,_0x55be07,_0x4a97a0);else{for(var _0x97fb93=_0x87d9d5['length']-0x1;_0x97fb93>=0x0;_0x97fb93--)if(_0x39c24a=_0x87d9d5[_0x97fb93])_0x39ce71=(_0x35c77b<0x3?_0x39c24a(_0x39ce71):_0x35c77b>0x3?_0x39c24a(_0x5cf76a,_0x55be07,_0x39ce71):_0x39c24a(_0x5cf76a,_0x55be07))||_0x39ce71;}return _0x35c77b>0x3&&_0x39ce71&&Object[_0x5f23fe(0x1ab)](_0x5cf76a,_0x55be07,_0x39ce71),_0x39ce71;},__metadata=this&&this['__metadata']||function(_0x3c27fb,_0x162514){var _0x472cc5=a6_0x1ea225;if(typeof Reflect===_0x472cc5(0x1a6)&&typeof Reflect[_0x472cc5(0x193)]==='function')return Reflect[_0x472cc5(0x193)](_0x3c27fb,_0x162514);};Object[a6_0x1ea225(0x1ab)](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;function a6_0x218a(_0x41a1f9,_0x1cbf70){var _0xa117da=a6_0x3908();return a6_0x218a=function(_0x5c7a08,_0x3a333a){_0x5c7a08=_0x5c7a08-0x193;var _0x390811=_0xa117da[_0x5c7a08];return _0x390811;},a6_0x218a(_0x41a1f9,_0x1cbf70);}class ApiError extends AnnError{}exports[a6_0x1ea225(0x19a)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError[a6_0x1ea225(0x1a7)]=0x18e72,ApiError[a6_0x1ea225(0x197)]=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError[a6_0x1ea225(0x19c)]=0x18e75,ApiError[a6_0x1ea225(0x195)]=0x18e76,__decorate([AnnErrorMsg(a6_0x1ea225(0x196)),__metadata(a6_0x1ea225(0x1af),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x1ea225(0x1a4)),__metadata('design:type',Object)],ApiError,a6_0x1ea225(0x1a7),void 0x0),__decorate([AnnErrorMsg(a6_0x1ea225(0x1b1)),__metadata(a6_0x1ea225(0x1af),Object)],ApiError,a6_0x1ea225(0x197),void 0x0),__decorate([AnnErrorMsg(a6_0x1ea225(0x19e)),__metadata(a6_0x1ea225(0x1af),Object)],ApiError,a6_0x1ea225(0x1a0),void 0x0),__decorate([AnnErrorMsg(a6_0x1ea225(0x1a1)),__metadata('design:type',Object)],ApiError,a6_0x1ea225(0x19c),void 0x0),__decorate([AnnErrorMsg(a6_0x1ea225(0x1a9)),__metadata(a6_0x1ea225(0x1af),Object)],ApiError,a6_0x1ea225(0x195),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x3f441e=a7_0x23d0;(function(_0x54832d,_0xc68c55){const _0x27dd42=a7_0x23d0,_0x3dbc85=_0x54832d();while(!![]){try{const _0x3db56b=-parseInt(_0x27dd42(0x108))/0x1*(-parseInt(_0x27dd42(0x109))/0x2)+-parseInt(_0x27dd42(0xf9))/0x3+parseInt(_0x27dd42(0x102))/0x4+-parseInt(_0x27dd42(0xfe))/0x5+-parseInt(_0x27dd42(0x104))/0x6*(-parseInt(_0x27dd42(0x107))/0x7)+parseInt(_0x27dd42(0x106))/0x8*(-parseInt(_0x27dd42(0xfd))/0x9)+parseInt(_0x27dd42(0xfb))/0xa*(parseInt(_0x27dd42(0x100))/0xb);if(_0x3db56b===_0xc68c55)break;else _0x3dbc85['push'](_0x3dbc85['shift']());}catch(_0x328a7e){_0x3dbc85['push'](_0x3dbc85['shift']());}}}(a7_0x52ae,0xa33ba));const a7_0x357562=(function(){let _0x536093=!![];return function(_0x1ac628,_0x309ae8){const _0x482477=_0x536093?function(){if(_0x309ae8){const _0x43cdd7=_0x309ae8['apply'](_0x1ac628,arguments);return _0x309ae8=null,_0x43cdd7;}}:function(){};return _0x536093=![],_0x482477;};}()),a7_0x2efee0=a7_0x357562(this,function(){const _0xe520d2=a7_0x23d0;return a7_0x2efee0[_0xe520d2(0xff)]()['search']('(((.+)+)+)+$')[_0xe520d2(0xff)]()[_0xe520d2(0x105)](a7_0x2efee0)[_0xe520d2(0x10c)](_0xe520d2(0x10b));});function a7_0x52ae(){const _0x55a577=['54hVvfMG','430400SxtRGz','toString','604197vYupmh','getAppsConfig','3507328GFgCbz','__esModule','12XqCyqs','constructor','1322920tbmNOD','1622523dNNyKG','1607liRgDQ','444InezkL','../types/action','(((.+)+)+)+$','search','@midwayjs/core','3640839SAalqx','get','230eJHBMg','getClassMetadata'];a7_0x52ae=function(){return _0x55a577;};return a7_0x52ae();}a7_0x2efee0();'use strict';Object['defineProperty'](exports,a7_0x3f441e(0x103),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0x3f441e(0x10d)),action_1=require(a7_0x3f441e(0x10a));function a7_0x23d0(_0x4ce9e9,_0x1c9785){const _0x329331=a7_0x52ae();return a7_0x23d0=function(_0x2efee0,_0x357562){_0x2efee0=_0x2efee0-0xf9;let _0x52ae33=_0x329331[_0x2efee0];return _0x52ae33;},a7_0x23d0(_0x4ce9e9,_0x1c9785);}function getAppsConfig(_0x486ca3){const _0x5a3927=a7_0x3f441e,_0x12ca0c=(0x0,core_1[_0x5a3927(0xfc)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};return _0x486ca3?lodash[_0x5a3927(0xfa)](_0x12ca0c,_0x486ca3):_0x12ca0c;}exports[a7_0x3f441e(0x101)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x1d659d=a8_0x176b;(function(_0x1c257b,_0x1801db){const _0x270cc4=a8_0x176b,_0x4f1472=_0x1c257b();while(!![]){try{const _0x2d5d3a=-parseInt(_0x270cc4(0x16a))/0x1+-parseInt(_0x270cc4(0x1a4))/0x2*(-parseInt(_0x270cc4(0x1ae))/0x3)+parseInt(_0x270cc4(0x194))/0x4+-parseInt(_0x270cc4(0x19b))/0x5+parseInt(_0x270cc4(0x196))/0x6*(-parseInt(_0x270cc4(0x19c))/0x7)+-parseInt(_0x270cc4(0x169))/0x8*(-parseInt(_0x270cc4(0x183))/0x9)+parseInt(_0x270cc4(0x179))/0xa*(parseInt(_0x270cc4(0x1ce))/0xb);if(_0x2d5d3a===_0x1801db)break;else _0x4f1472['push'](_0x4f1472['shift']());}catch(_0x1ca690){_0x4f1472['push'](_0x4f1472['shift']());}}}(a8_0x4f89,0x47288));const a8_0x10761c=(function(){let _0x43d7c6=!![];return function(_0x589de3,_0x540021){const _0x4f61d3=_0x43d7c6?function(){if(_0x540021){const _0x22accf=_0x540021['apply'](_0x589de3,arguments);return _0x540021=null,_0x22accf;}}:function(){};return _0x43d7c6=![],_0x4f61d3;};}()),a8_0x51f172=a8_0x10761c(this,function(){const _0x432ead=a8_0x176b;return a8_0x51f172['toString']()[_0x432ead(0x17f)](_0x432ead(0x1c1))[_0x432ead(0x192)]()[_0x432ead(0x199)](a8_0x51f172)[_0x432ead(0x17f)](_0x432ead(0x1c1));});a8_0x51f172();'use strict';function a8_0x176b(_0x397685,_0x23ae26){const _0x577b9f=a8_0x4f89();return a8_0x176b=function(_0x51f172,_0x10761c){_0x51f172=_0x51f172-0x169;let _0x4f89da=_0x577b9f[_0x51f172];return _0x4f89da;},a8_0x176b(_0x397685,_0x23ae26);}Object[a8_0x1d659d(0x16e)](exports,a8_0x1d659d(0x1c9),{'value':!![]}),exports[a8_0x1d659d(0x16c)]=void 0x0;const lodash_1=require(a8_0x1d659d(0x1ac)),validator_1=require(a8_0x1d659d(0x18a)),core_1=require(a8_0x1d659d(0x174)),core_2=require('@midwayjs/core'),core_3=require(a8_0x1d659d(0x174)),action_1=require(a8_0x1d659d(0x184));function getRoutes(_0x3a5328={'prefix':'/','module':![]}){const _0x3593c8=a8_0x1d659d;var _0x2a9205,_0xd0ee40;const _0x57f69a=(0x0,core_3['listModule'])(action_1[_0x3593c8(0x17d)]),_0x318b9e={},_0x2fed13=Array[_0x3593c8(0x1a7)](_0x3a5328['filter']||[])?_0x3a5328[_0x3593c8(0x1b7)]||[]:[_0x3a5328[_0x3593c8(0x1b7)]];_0x10538e:for(const _0x5cb3e9 of _0x57f69a){let _0x45b68a=(0x0,core_3[_0x3593c8(0x1b5)])(action_1[_0x3593c8(0x17d)],_0x5cb3e9),_0x34c5b6=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x5cb3e9);if(_0x45b68a&&_0x34c5b6){let _0x58a458=_0x45b68a[_0x3593c8(0x198)],_0x1a00d3={};if(_0x3a5328[_0x3593c8(0x1c0)]&&(0x0,lodash_1[_0x3593c8(0x180)])(_0x45b68a,_0x3593c8(0x1c0),![])!=_0x3a5328[_0x3593c8(0x1c0)])continue _0x10538e;else{if(_0x3a5328[_0x3593c8(0x1c0)]===![]&&!!(0x0,lodash_1[_0x3593c8(0x180)])(_0x45b68a,_0x3593c8(0x1c0),null))continue _0x10538e;}if(_0x3a5328[_0x3593c8(0x198)]&&!_0x58a458[_0x3593c8(0x17a)](_0x3a5328[_0x3593c8(0x198)]))continue _0x10538e;_0x58a458!=='/'?(_0x1a00d3[_0x3593c8(0x1c2)]=(_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a[_0x3593c8(0x1bb)][_0x3593c8(0x19d)])||(/^\//[_0x3593c8(0x1c7)](_0x58a458)?_0x58a458['split']('/')[0x1]:_0x58a458),_0x1a00d3['description']=(_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a[_0x3593c8(0x1bb)][_0x3593c8(0x1cd)])||_0x1a00d3[_0x3593c8(0x1c2)],_0x1a00d3['routes']=[]):(_0x1a00d3[_0x3593c8(0x1c2)]=(_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a[_0x3593c8(0x1bb)][_0x3593c8(0x19d)])||_0x3593c8(0x1c5),_0x1a00d3['description']=(_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a[_0x3593c8(0x1bb)]['description'])||'',_0x1a00d3[_0x3593c8(0x1a9)]=[]);_0x3a5328[_0x3593c8(0x1c8)]&&(_0x1a00d3['filepath']=_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a['filepath']);(_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a[_0x3593c8(0x1ab)])&&(_0x1a00d3['prefix']=_0x45b68a[_0x3593c8(0x1ab)]);(_0x45b68a===null||_0x45b68a===void 0x0?void 0x0:_0x45b68a[_0x3593c8(0x1c0)])&&(_0x1a00d3[_0x3593c8(0x1c0)]=_0x45b68a[_0x3593c8(0x1c0)]);let _0x18e9ae=(0x0,core_3[_0x3593c8(0x1b5)])(core_2[_0x3593c8(0x19f)],_0x5cb3e9)||{};if(typeof _0x34c5b6[Symbol[_0x3593c8(0x1b6)]]===_0x3593c8(0x1ba))for(let _0x2184ba of _0x34c5b6){if((_0x3a5328===null||_0x3a5328===void 0x0?void 0x0:_0x3a5328[_0x3593c8(0x1be)])&&!(_0x2184ba===null||_0x2184ba===void 0x0?void 0x0:_0x2184ba[_0x3593c8(0x1be)]))continue;let _0x1c869b={};_0x1c869b[_0x3593c8(0x1aa)]=_0x2184ba[_0x3593c8(0x1cb)],_0x1c869b[_0x3593c8(0x185)]=(_0x58a458+_0x2184ba['path'])[_0x3593c8(0x189)](/\/{2,}/g,'/'),_0x1c869b[_0x3593c8(0x1c2)]=(_0x2184ba===null||_0x2184ba===void 0x0?void 0x0:_0x2184ba[_0x3593c8(0x190)])||_0x1a00d3[_0x3593c8(0x1c2)]||'default',_0x1c869b[_0x3593c8(0x1cd)]=(_0x2184ba===null||_0x2184ba===void 0x0?void 0x0:_0x2184ba['description'])||'',_0x1c869b[_0x3593c8(0x188)]=[];_0x1c869b[_0x3593c8(0x185)][_0x3593c8(0x1af)]('/')&&(_0x1c869b[_0x3593c8(0x185)]=_0x1c869b[_0x3593c8(0x185)][_0x3593c8(0x1bc)](0x0,_0x1c869b[_0x3593c8(0x185)]['length']-0x1));if(!(0x0,lodash_1[_0x3593c8(0x17a)])(_0x1c869b[_0x3593c8(0x185)],_0x3593c8(0x186))&&!(0x0,lodash_1[_0x3593c8(0x17a)])(_0x1c869b[_0x3593c8(0x185)],_0x3593c8(0x19e))&&_0x2fed13['indexOf'](_0x1c869b[_0x3593c8(0x185)])===-0x1){if(!(_0x3a5328===null||_0x3a5328===void 0x0?void 0x0:_0x3a5328['noreq'])){let _0x3d7ed2=(0x0,core_3[_0x3593c8(0x18e)])(new _0x5cb3e9(),_0x2184ba[_0x3593c8(0x1aa)]);for(const _0x1a66e9 in _0x3d7ed2){let _0x4eff05=(_0x2a9205=_0x18e9ae[_0x2184ba[_0x3593c8(0x1aa)]])===null||_0x2a9205===void 0x0?void 0x0:_0x2a9205['find'](_0x300e2c=>_0x300e2c[_0x3593c8(0x19a)]==_0x1a66e9&&_0x300e2c[_0x3593c8(0x1b1)]===core_2[_0x3593c8(0x172)]&&(_0x300e2c===null||_0x300e2c===void 0x0?void 0x0:_0x300e2c[_0x3593c8(0x1a5)]));if(_0x4eff05===null||_0x4eff05===void 0x0?void 0x0:_0x4eff05[_0x3593c8(0x1a5)]){let _0x4b7a30=convertTypeToString(_0x4eff05['metadata']['type']||0x0);if(['query',_0x3593c8(0x1c6)][_0x3593c8(0x1bf)](_0x4b7a30)!=-0x1&&_0x4eff05[_0x3593c8(0x1a5)][_0x3593c8(0x1cf)][_0x3593c8(0x1bf)](':')==-0x1&&!_0x1c869b[_0x3593c8(0x188)][_0x3593c8(0x1a8)](_0x19bcdc=>_0x19bcdc[_0x3593c8(0x1b1)]==_0x4eff05['metadata'][_0x3593c8(0x1cf)]))_0x1c869b[_0x3593c8(0x188)][_0x3593c8(0x182)]({'key':_0x4eff05[_0x3593c8(0x1a5)][_0x3593c8(0x1cf)],'title':_0x4eff05[_0x3593c8(0x1a5)][_0x3593c8(0x1cf)],'type':convertSchemaType(_0x3d7ed2[_0x4eff05[_0x3593c8(0x19a)]][_0x3593c8(0x1ad)]),'required':![],'default':'','desc':''});else{if(_0x4b7a30==_0x3593c8(0x16f)){let _0x4c3965=((_0xd0ee40=_0x4eff05===null||_0x4eff05===void 0x0?void 0x0:_0x4eff05[_0x3593c8(0x1a5)])===null||_0xd0ee40===void 0x0?void 0x0:_0xd0ee40[_0x3593c8(0x1cf)])||'file';_0x4c3965['indexOf'](':')==-0x1&&!_0x1c869b[_0x3593c8(0x188)][_0x3593c8(0x1a8)](_0x699d15=>_0x699d15[_0x3593c8(0x1b1)]==_0x4c3965&&_0x699d15[_0x3593c8(0x173)]==_0x3593c8(0x16f))&&_0x1c869b[_0x3593c8(0x188)]['push']({'key':_0x4c3965,'title':'文件上传-'+_0x4c3965,'type':_0x3593c8(0x16f),'required':!![],'default':'','desc':''});}}}else{const _0x55d92c=(0x0,core_3[_0x3593c8(0x16d)])(validator_1[_0x3593c8(0x18b)],_0x3d7ed2[_0x1a66e9]);_0x55d92c&&_0x1c869b[_0x3593c8(0x188)][_0x3593c8(0x182)](...getJoiRequest(_0x55d92c));}}}_0x1a00d3[_0x3593c8(0x1a9)][_0x3593c8(0x182)](_0x1c869b);}}if(_0x1a00d3[_0x3593c8(0x1a9)][_0x3593c8(0x1a3)]>0x0){let _0x4feb6d=_0x318b9e[_0x58a458];_0x4feb6d?(_0x4feb6d[_0x3593c8(0x1c2)]!=_0x1a00d3[_0x3593c8(0x1c2)]&&(_0x4feb6d[_0x3593c8(0x1c2)]=_0x4feb6d['summary']+','+_0x1a00d3[_0x3593c8(0x1c2)]),_0x4feb6d['description']!=_0x1a00d3[_0x3593c8(0x1cd)]&&(_0x4feb6d[_0x3593c8(0x1cd)]=_0x4feb6d[_0x3593c8(0x1cd)]+','+_0x1a00d3[_0x3593c8(0x1cd)]),_0x4feb6d[_0x3593c8(0x1a9)]=_0x4feb6d[_0x3593c8(0x1a9)]['concat'](_0x1a00d3['routes']),_0x318b9e[_0x58a458]=_0x4feb6d):_0x318b9e[_0x58a458]=_0x1a00d3;}}}return _0x318b9e;}function a8_0x4f89(){const _0x54753b=['args','420740icXSDF','describe','2743116gklGqY','flags.presence','prefix','constructor','parameterIndex','267680RoScwW','7geGtPk','tagName','/static/apitest','INJECT_CUSTOM_PARAM','header','min','boolean','length','380zhGnNg','metadata','title','isArray','find','routes','method','pprefix','lodash','name','4269WYUmCM','endsWith','FILESTREAM','key','BODY','limit','Boolean','getClassMetadata','iterator','filter','flags.default','string','function','routerOptions','substring','required','intercept','indexOf','module','(((.+)+)+)+$','summary','Number','path','default','body','test','filepath','__esModule','max','requestMethod','number','description','99hQkrFp','propertyData','826504kGflhn','437433cBbPik','rules','getRoutes','getClassExtendedMetadata','defineProperty','file','allow','items','WEB_ROUTER_PARAM_KEY','type','@midwayjs/core','children','HEADERS','query','array','386110nATsFk','startsWith','File','object','ACTION_KEY','flags.description','search','get','QUERY','push','45DVBJuX','../types/action','route','static/apitest','RouteParamTypes','request','replace','@anncic-api/validator','RULES_KEY','FILESSTREAM','只允许:[','getMethodParamTypes','flags.label','routerName','keys','toString'];a8_0x4f89=function(){return _0x54753b;};return a8_0x4f89();}exports['getRoutes']=getRoutes;function getJoiRequest(_0x433620){const _0x43edcd=a8_0x1d659d,_0x4071bb=[];for(let _0x3fb7de in _0x433620){const _0x1aecb6={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x46a65b=typeof _0x433620[_0x3fb7de][_0x43edcd(0x195)]==_0x43edcd(0x1ba)?_0x433620[_0x3fb7de][_0x43edcd(0x195)]():_0x433620[_0x3fb7de];_0x1aecb6[_0x43edcd(0x1b1)]=_0x3fb7de,_0x1aecb6[_0x43edcd(0x173)]=_0x46a65b[_0x43edcd(0x173)],_0x1aecb6[_0x43edcd(0x1a6)]=(0x0,lodash_1[_0x43edcd(0x180)])(_0x46a65b,_0x43edcd(0x18f),_0x3fb7de),_0x1aecb6[_0x43edcd(0x1c5)]=(0x0,lodash_1[_0x43edcd(0x180)])(_0x46a65b,_0x43edcd(0x1b8),''),_0x1aecb6[_0x43edcd(0x1bd)]=(0x0,lodash_1[_0x43edcd(0x180)])(_0x46a65b,_0x43edcd(0x197),'')==_0x43edcd(0x1bd),_0x1aecb6[_0x43edcd(0x1cd)]=(0x0,lodash_1[_0x43edcd(0x180)])(_0x46a65b,_0x43edcd(0x17e),'');if(_0x46a65b[_0x43edcd(0x173)]==_0x43edcd(0x17c))_0x1aecb6[_0x43edcd(0x175)]=getJoiRequest(_0x46a65b[_0x43edcd(0x191)]);else{if(_0x46a65b[_0x43edcd(0x173)]==_0x43edcd(0x178)&&_0x46a65b[_0x43edcd(0x171)]&&Array[_0x43edcd(0x1a7)](_0x46a65b[_0x43edcd(0x171)])&&_0x46a65b[_0x43edcd(0x171)][0x0]){}}_0x46a65b[_0x43edcd(0x170)]&&Array['isArray'](_0x46a65b[_0x43edcd(0x170)])&&_0x46a65b['allow'][_0x43edcd(0x1a3)]>0x0&&(_0x1aecb6['description']=_0x43edcd(0x18d)+_0x46a65b[_0x43edcd(0x170)]['join'](',')+'];'+_0x1aecb6[_0x43edcd(0x1cd)]);if(_0x1aecb6['key']&&_0x1aecb6['type']){const _0x45f5ea={};for(const _0x336621 of _0x46a65b['rules']||[]){if(_0x336621['name']===_0x43edcd(0x1a1)&&_0x336621[_0x43edcd(0x193)])_0x45f5ea['min']=_0x336621[_0x43edcd(0x193)][_0x43edcd(0x1b3)];else _0x336621[_0x43edcd(0x1ad)]===_0x43edcd(0x1ca)&&(_0x45f5ea[_0x43edcd(0x1ca)]=_0x336621['args'][_0x43edcd(0x1b3)]);}_0x1aecb6[_0x43edcd(0x16b)]=_0x45f5ea;}_0x1aecb6[_0x43edcd(0x1b1)]&&_0x1aecb6[_0x43edcd(0x1a6)]&&_0x4071bb[_0x43edcd(0x182)](_0x1aecb6);}return _0x4071bb;}function convertSchemaType(_0x2b2fcf){const _0x12a11a=a8_0x1d659d;switch(_0x2b2fcf){case'Object':return _0x12a11a(0x17c);case _0x12a11a(0x1b4):return _0x12a11a(0x1a2);case _0x12a11a(0x1c3):return _0x12a11a(0x1cc);case'String':return _0x12a11a(0x1b9);case _0x12a11a(0x17b):return _0x12a11a(0x16f);default:return _0x12a11a(0x1b9);}}function convertTypeToString(_0x209a3d){const _0x30f2ad=a8_0x1d659d;switch(_0x209a3d){case core_1[_0x30f2ad(0x187)][_0x30f2ad(0x176)]:return _0x30f2ad(0x1a0);case core_1[_0x30f2ad(0x187)][_0x30f2ad(0x181)]:return _0x30f2ad(0x177);case core_1[_0x30f2ad(0x187)]['PARAM']:return _0x30f2ad(0x1c4);case core_1[_0x30f2ad(0x187)][_0x30f2ad(0x1b2)]:return _0x30f2ad(0x1c6);case core_1[_0x30f2ad(0x187)]['FIELDS']:case core_1[_0x30f2ad(0x187)][_0x30f2ad(0x18c)]:case core_1['RouteParamTypes'][_0x30f2ad(0x1b0)]:return _0x30f2ad(0x16f);default:return _0x30f2ad(0x1a0);}}
|
|
1
|
+
const a8_0x2d59a7=a8_0x2cad;(function(_0x3d24c2,_0xc22a33){const _0x26c4d2=a8_0x2cad,_0x59d3bd=_0x3d24c2();while(!![]){try{const _0xe8d3a8=parseInt(_0x26c4d2(0x196))/0x1+-parseInt(_0x26c4d2(0x15a))/0x2*(-parseInt(_0x26c4d2(0x17d))/0x3)+parseInt(_0x26c4d2(0x166))/0x4*(parseInt(_0x26c4d2(0x187))/0x5)+parseInt(_0x26c4d2(0x157))/0x6+parseInt(_0x26c4d2(0x182))/0x7*(parseInt(_0x26c4d2(0x1ae))/0x8)+-parseInt(_0x26c4d2(0x16e))/0x9+-parseInt(_0x26c4d2(0x188))/0xa*(parseInt(_0x26c4d2(0x1a5))/0xb);if(_0xe8d3a8===_0xc22a33)break;else _0x59d3bd['push'](_0x59d3bd['shift']());}catch(_0x3e292){_0x59d3bd['push'](_0x59d3bd['shift']());}}}(a8_0x4d71,0x831bb));function a8_0x2cad(_0x14ef1c,_0x2ebb69){const _0x32f72e=a8_0x4d71();return a8_0x2cad=function(_0x565460,_0x3c973b){_0x565460=_0x565460-0x151;let _0x4d7148=_0x32f72e[_0x565460];return _0x4d7148;},a8_0x2cad(_0x14ef1c,_0x2ebb69);}const a8_0x3c973b=(function(){let _0x99231b=!![];return function(_0x278335,_0x21624c){const _0xb4ae37=_0x99231b?function(){const _0x600695=a8_0x2cad;if(_0x21624c){const _0x228b5b=_0x21624c[_0x600695(0x179)](_0x278335,arguments);return _0x21624c=null,_0x228b5b;}}:function(){};return _0x99231b=![],_0xb4ae37;};}()),a8_0x565460=a8_0x3c973b(this,function(){const _0x5d8fef=a8_0x2cad;return a8_0x565460[_0x5d8fef(0x18a)]()[_0x5d8fef(0x19f)](_0x5d8fef(0x15d))[_0x5d8fef(0x18a)]()[_0x5d8fef(0x185)](a8_0x565460)[_0x5d8fef(0x19f)](_0x5d8fef(0x15d));});a8_0x565460();'use strict';Object[a8_0x2d59a7(0x158)](exports,'__esModule',{'value':!![]}),exports[a8_0x2d59a7(0x175)]=void 0x0;const lodash_1=require(a8_0x2d59a7(0x159)),validator_1=require(a8_0x2d59a7(0x174)),core_1=require(a8_0x2d59a7(0x199)),core_2=require(a8_0x2d59a7(0x199)),core_3=require(a8_0x2d59a7(0x199)),action_1=require(a8_0x2d59a7(0x160));function a8_0x4d71(){const _0x54718e=['4ijJFSn','path','rules','min','max','static/apitest','object','array','9507636BrMEXl','WEB_ROUTER_PARAM_KEY','push','RouteParamTypes','boolean','query','@anncic-api/validator','getRoutes','flags.default','key','getMethodParamTypes','apply','module','endsWith','get','710817LFIrHq','intercept','File','description','文件上传-','436765jvYPxk','title','length','constructor','getClassMetadata','3994715PSZyzo','380390HQCBPH','flags.description','toString','allow','method','getClassExtendedMetadata','describe','requestMethod','file','INJECT_CUSTOM_PARAM','children','filepath','BODY','request','766332aEbvvW','join','QUERY','@midwayjs/core','ACTION_KEY','filter','RULES_KEY','test','replace','search','HEADERS','isArray','header','required','ACTION_ROUTE_KEY','671NUOaru','default','metadata','keys','tagName','parameterIndex','/static/apitest','route','只允许:[','72TCCMHi','FILESSTREAM','propertyData','args','routerOptions','string','String','routes','body','function','startsWith','pprefix','5035296CgqXSG','defineProperty','lodash','8oarTrO','limit','items','(((.+)+)+)+$','indexOf','find','../types/action','type','prefix','number','concat','summary'];a8_0x4d71=function(){return _0x54718e;};return a8_0x4d71();}function getRoutes(_0x243ab6={'prefix':'/','module':![]}){const _0x13072f=a8_0x2d59a7;var _0x23a494,_0x2db015;const _0x4f6694=(0x0,core_3['listModule'])(action_1[_0x13072f(0x19a)]),_0x192e69={},_0x446595=Array[_0x13072f(0x1a1)](_0x243ab6[_0x13072f(0x19b)]||[])?_0x243ab6['filter']||[]:[_0x243ab6[_0x13072f(0x19b)]];_0x58e1dc:for(const _0x51848f of _0x4f6694){let _0x3e75eb=(0x0,core_3[_0x13072f(0x186)])(action_1[_0x13072f(0x19a)],_0x51848f),_0x407fe0=(0x0,core_3[_0x13072f(0x186)])(action_1[_0x13072f(0x1a4)],_0x51848f);if(_0x3e75eb&&_0x407fe0){let _0x234710=_0x3e75eb['prefix'],_0x3de33b={};if(_0x243ab6[_0x13072f(0x17a)]&&(0x0,lodash_1[_0x13072f(0x17c)])(_0x3e75eb,_0x13072f(0x17a),![])!=_0x243ab6[_0x13072f(0x17a)])continue _0x58e1dc;else{if(_0x243ab6[_0x13072f(0x17a)]===![]&&!!(0x0,lodash_1[_0x13072f(0x17c)])(_0x3e75eb,_0x13072f(0x17a),null))continue _0x58e1dc;}if(_0x243ab6[_0x13072f(0x162)]&&!_0x234710[_0x13072f(0x155)](_0x243ab6[_0x13072f(0x162)]))continue _0x58e1dc;_0x234710!=='/'?(_0x3de33b['summary']=(_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x1b2)][_0x13072f(0x1a9)])||(/^\//[_0x13072f(0x19d)](_0x234710)?_0x234710['split']('/')[0x1]:_0x234710),_0x3de33b[_0x13072f(0x180)]=(_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x1b2)]['description'])||_0x3de33b[_0x13072f(0x165)],_0x3de33b[_0x13072f(0x152)]=[]):(_0x3de33b['summary']=(_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x1b2)]['tagName'])||'default',_0x3de33b[_0x13072f(0x180)]=(_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x1b2)][_0x13072f(0x180)])||'',_0x3de33b[_0x13072f(0x152)]=[]);_0x243ab6['filepath']&&(_0x3de33b[_0x13072f(0x193)]=_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x193)]);(_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x156)])&&(_0x3de33b[_0x13072f(0x162)]=_0x3e75eb[_0x13072f(0x156)]);(_0x3e75eb===null||_0x3e75eb===void 0x0?void 0x0:_0x3e75eb[_0x13072f(0x17a)])&&(_0x3de33b['module']=_0x3e75eb['module']);let _0x266719=(0x0,core_3[_0x13072f(0x186)])(core_2[_0x13072f(0x191)],_0x51848f)||{};if(typeof _0x407fe0[Symbol['iterator']]===_0x13072f(0x154))for(let _0x4c2205 of _0x407fe0){if((_0x243ab6===null||_0x243ab6===void 0x0?void 0x0:_0x243ab6[_0x13072f(0x17e)])&&!(_0x4c2205===null||_0x4c2205===void 0x0?void 0x0:_0x4c2205['intercept']))continue;let _0x29007f={};_0x29007f[_0x13072f(0x18c)]=_0x4c2205[_0x13072f(0x18f)],_0x29007f[_0x13072f(0x1ac)]=(_0x234710+_0x4c2205[_0x13072f(0x167)])[_0x13072f(0x19e)](/\/{2,}/g,'/'),_0x29007f[_0x13072f(0x165)]=(_0x4c2205===null||_0x4c2205===void 0x0?void 0x0:_0x4c2205['routerName'])||_0x3de33b[_0x13072f(0x165)]||_0x13072f(0x1a6),_0x29007f[_0x13072f(0x180)]=(_0x4c2205===null||_0x4c2205===void 0x0?void 0x0:_0x4c2205[_0x13072f(0x180)])||'',_0x29007f['request']=[];_0x29007f[_0x13072f(0x1ac)][_0x13072f(0x17b)]('/')&&(_0x29007f[_0x13072f(0x1ac)]=_0x29007f[_0x13072f(0x1ac)]['substring'](0x0,_0x29007f[_0x13072f(0x1ac)][_0x13072f(0x184)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x29007f[_0x13072f(0x1ac)],_0x13072f(0x16b))&&!(0x0,lodash_1[_0x13072f(0x155)])(_0x29007f['route'],_0x13072f(0x1ab))&&_0x446595[_0x13072f(0x15e)](_0x29007f[_0x13072f(0x1ac)])===-0x1){if(!(_0x243ab6===null||_0x243ab6===void 0x0?void 0x0:_0x243ab6['noreq'])){let _0x3f6383=(0x0,core_3[_0x13072f(0x178)])(new _0x51848f(),_0x4c2205[_0x13072f(0x18c)]);for(const _0x40801d in _0x3f6383){let _0x517bc7=(_0x23a494=_0x266719[_0x4c2205['method']])===null||_0x23a494===void 0x0?void 0x0:_0x23a494[_0x13072f(0x15f)](_0x21e040=>_0x21e040[_0x13072f(0x1aa)]==_0x40801d&&_0x21e040[_0x13072f(0x177)]===core_2[_0x13072f(0x16f)]&&(_0x21e040===null||_0x21e040===void 0x0?void 0x0:_0x21e040[_0x13072f(0x1a7)]));if(_0x517bc7===null||_0x517bc7===void 0x0?void 0x0:_0x517bc7['metadata']){let _0x36fb72=convertTypeToString(_0x517bc7[_0x13072f(0x1a7)][_0x13072f(0x161)]||0x0);if([_0x13072f(0x173),_0x13072f(0x153)][_0x13072f(0x15e)](_0x36fb72)!=-0x1&&_0x517bc7[_0x13072f(0x1a7)][_0x13072f(0x1b0)]['indexOf'](':')==-0x1&&!_0x29007f['request'][_0x13072f(0x15f)](_0x29c71d=>_0x29c71d['key']==_0x517bc7[_0x13072f(0x1a7)][_0x13072f(0x1b0)]))_0x29007f[_0x13072f(0x195)][_0x13072f(0x170)]({'key':_0x517bc7[_0x13072f(0x1a7)][_0x13072f(0x1b0)],'title':_0x517bc7[_0x13072f(0x1a7)]['propertyData'],'type':convertSchemaType(_0x3f6383[_0x517bc7[_0x13072f(0x1aa)]]['name']),'required':![],'default':'','desc':''});else{if(_0x36fb72==_0x13072f(0x190)){let _0x30c95c=((_0x2db015=_0x517bc7===null||_0x517bc7===void 0x0?void 0x0:_0x517bc7[_0x13072f(0x1a7)])===null||_0x2db015===void 0x0?void 0x0:_0x2db015[_0x13072f(0x1b0)])||_0x13072f(0x190);_0x30c95c[_0x13072f(0x15e)](':')==-0x1&&!_0x29007f[_0x13072f(0x195)][_0x13072f(0x15f)](_0x29d1b6=>_0x29d1b6[_0x13072f(0x177)]==_0x30c95c&&_0x29d1b6[_0x13072f(0x161)]==_0x13072f(0x190))&&_0x29007f[_0x13072f(0x195)]['push']({'key':_0x30c95c,'title':_0x13072f(0x181)+_0x30c95c,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x475a69=(0x0,core_3[_0x13072f(0x18d)])(validator_1[_0x13072f(0x19c)],_0x3f6383[_0x40801d]);_0x475a69&&_0x29007f[_0x13072f(0x195)]['push'](...getJoiRequest(_0x475a69));}}}_0x3de33b['routes'][_0x13072f(0x170)](_0x29007f);}}if(_0x3de33b[_0x13072f(0x152)][_0x13072f(0x184)]>0x0){let _0x59a613=_0x192e69[_0x234710];_0x59a613?(_0x59a613[_0x13072f(0x165)]!=_0x3de33b[_0x13072f(0x165)]&&(_0x59a613[_0x13072f(0x165)]=_0x59a613[_0x13072f(0x165)]+','+_0x3de33b[_0x13072f(0x165)]),_0x59a613[_0x13072f(0x180)]!=_0x3de33b[_0x13072f(0x180)]&&(_0x59a613['description']=_0x59a613['description']+','+_0x3de33b[_0x13072f(0x180)]),_0x59a613[_0x13072f(0x152)]=_0x59a613[_0x13072f(0x152)][_0x13072f(0x164)](_0x3de33b[_0x13072f(0x152)]),_0x192e69[_0x234710]=_0x59a613):_0x192e69[_0x234710]=_0x3de33b;}}}return _0x192e69;}exports[a8_0x2d59a7(0x175)]=getRoutes;function getJoiRequest(_0xcfabce){const _0x3c74c7=a8_0x2d59a7,_0x2f05e0=[];for(let _0x1dced9 in _0xcfabce){const _0x34405c={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3f39ae=typeof _0xcfabce[_0x1dced9]['describe']==_0x3c74c7(0x154)?_0xcfabce[_0x1dced9][_0x3c74c7(0x18e)]():_0xcfabce[_0x1dced9];_0x34405c[_0x3c74c7(0x177)]=_0x1dced9,_0x34405c['type']=_0x3f39ae[_0x3c74c7(0x161)],_0x34405c[_0x3c74c7(0x183)]=(0x0,lodash_1[_0x3c74c7(0x17c)])(_0x3f39ae,'flags.label',_0x1dced9),_0x34405c[_0x3c74c7(0x1a6)]=(0x0,lodash_1[_0x3c74c7(0x17c)])(_0x3f39ae,_0x3c74c7(0x176),''),_0x34405c[_0x3c74c7(0x1a3)]=(0x0,lodash_1[_0x3c74c7(0x17c)])(_0x3f39ae,'flags.presence','')==_0x3c74c7(0x1a3),_0x34405c[_0x3c74c7(0x180)]=(0x0,lodash_1['get'])(_0x3f39ae,_0x3c74c7(0x189),'');if(_0x3f39ae[_0x3c74c7(0x161)]=='object')_0x34405c[_0x3c74c7(0x192)]=getJoiRequest(_0x3f39ae[_0x3c74c7(0x1a8)]);else{if(_0x3f39ae[_0x3c74c7(0x161)]==_0x3c74c7(0x16d)&&_0x3f39ae[_0x3c74c7(0x15c)]&&Array[_0x3c74c7(0x1a1)](_0x3f39ae['items'])&&_0x3f39ae[_0x3c74c7(0x15c)][0x0]){}}_0x3f39ae[_0x3c74c7(0x18b)]&&Array['isArray'](_0x3f39ae[_0x3c74c7(0x18b)])&&_0x3f39ae['allow']['length']>0x0&&(_0x34405c['description']=_0x3c74c7(0x1ad)+_0x3f39ae[_0x3c74c7(0x18b)][_0x3c74c7(0x197)](',')+'];'+_0x34405c[_0x3c74c7(0x180)]);if(_0x34405c[_0x3c74c7(0x177)]&&_0x34405c[_0x3c74c7(0x161)]){const _0x249838={};for(const _0x1410ef of _0x3f39ae['rules']||[]){if(_0x1410ef['name']===_0x3c74c7(0x169)&&_0x1410ef[_0x3c74c7(0x1b1)])_0x249838[_0x3c74c7(0x169)]=_0x1410ef['args'][_0x3c74c7(0x15b)];else _0x1410ef['name']==='max'&&(_0x249838[_0x3c74c7(0x16a)]=_0x1410ef[_0x3c74c7(0x1b1)]['limit']);}_0x34405c[_0x3c74c7(0x168)]=_0x249838;}_0x34405c[_0x3c74c7(0x177)]&&_0x34405c[_0x3c74c7(0x183)]&&_0x2f05e0[_0x3c74c7(0x170)](_0x34405c);}return _0x2f05e0;}function convertSchemaType(_0x2853e1){const _0x1b202f=a8_0x2d59a7;switch(_0x2853e1){case'Object':return _0x1b202f(0x16c);case'Boolean':return _0x1b202f(0x172);case'Number':return _0x1b202f(0x163);case _0x1b202f(0x151):return _0x1b202f(0x1b3);case _0x1b202f(0x17f):return _0x1b202f(0x190);default:return _0x1b202f(0x1b3);}}function convertTypeToString(_0x347639){const _0x350e82=a8_0x2d59a7;switch(_0x347639){case core_1[_0x350e82(0x171)][_0x350e82(0x1a0)]:return _0x350e82(0x1a2);case core_1[_0x350e82(0x171)][_0x350e82(0x198)]:return _0x350e82(0x173);case core_1['RouteParamTypes']['PARAM']:return _0x350e82(0x167);case core_1[_0x350e82(0x171)][_0x350e82(0x194)]:return _0x350e82(0x153);case core_1['RouteParamTypes']['FIELDS']:case core_1[_0x350e82(0x171)][_0x350e82(0x1af)]:case core_1[_0x350e82(0x171)]['FILESTREAM']:return _0x350e82(0x190);default:return _0x350e82(0x1a2);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x458b43=a9_0x5131;(function(_0x1ae3f8,_0x27efc6){var _0xe417e5=a9_0x5131,_0x38696e=_0x1ae3f8();while(!![]){try{var _0x150a47=-parseInt(_0xe417e5(0x165))/0x1+parseInt(_0xe417e5(0x146))/0x2+parseInt(_0xe417e5(0x16d))/0x3+parseInt(_0xe417e5(0x15f))/0x4+-parseInt(_0xe417e5(0x149))/0x5+-parseInt(_0xe417e5(0x148))/0x6+parseInt(_0xe417e5(0x170))/0x7;if(_0x150a47===_0x27efc6)break;else _0x38696e['push'](_0x38696e['shift']());}catch(_0x3af710){_0x38696e['push'](_0x38696e['shift']());}}}(a9_0xe392,0x79b07));var a9_0x399906=(function(){var _0x11ed05=!![];return function(_0x395346,_0x55625a){var _0xedbbb5=_0x11ed05?function(){if(_0x55625a){var _0x206598=_0x55625a['apply'](_0x395346,arguments);return _0x55625a=null,_0x206598;}}:function(){};return _0x11ed05=![],_0xedbbb5;};}()),a9_0x800d6d=a9_0x399906(this,function(){var _0x5a7aff=a9_0x5131;return a9_0x800d6d[_0x5a7aff(0x17f)]()[_0x5a7aff(0x172)](_0x5a7aff(0x161))[_0x5a7aff(0x17f)]()[_0x5a7aff(0x181)](a9_0x800d6d)[_0x5a7aff(0x172)]('(((.+)+)+)+$');});a9_0x800d6d();'use strict';var __createBinding=this&&this[a9_0x458b43(0x16f)]||(Object[a9_0x458b43(0x184)]?function(_0x123309,_0x3d5d8b,_0x56801b,_0x89fc6f){var _0xd21442=a9_0x458b43;if(_0x89fc6f===undefined)_0x89fc6f=_0x56801b;var _0x40da89=Object[_0xd21442(0x15a)](_0x3d5d8b,_0x56801b);(!_0x40da89||(_0xd21442(0x147)in _0x40da89?!_0x3d5d8b[_0xd21442(0x14f)]:_0x40da89[_0xd21442(0x15b)]||_0x40da89['configurable']))&&(_0x40da89={'enumerable':!![],'get':function(){return _0x3d5d8b[_0x56801b];}}),Object['defineProperty'](_0x123309,_0x89fc6f,_0x40da89);}:function(_0x15a4e5,_0x2f7949,_0xe5be97,_0x356fd0){if(_0x356fd0===undefined)_0x356fd0=_0xe5be97;_0x15a4e5[_0x356fd0]=_0x2f7949[_0xe5be97];}),__exportStar=this&&this[a9_0x458b43(0x152)]||function(_0x4d7aa1,_0x8956e9){var _0x22a553=a9_0x458b43;for(var _0x1c2dc7 in _0x4d7aa1)if(_0x1c2dc7!==_0x22a553(0x17c)&&!Object[_0x22a553(0x157)][_0x22a553(0x162)][_0x22a553(0x143)](_0x8956e9,_0x1c2dc7))__createBinding(_0x8956e9,_0x4d7aa1,_0x1c2dc7);};Object[a9_0x458b43(0x16a)](exports,'__esModule',{'value':!![]}),exports[a9_0x458b43(0x16b)]=exports[a9_0x458b43(0x14e)]=exports[a9_0x458b43(0x178)]=exports[a9_0x458b43(0x173)]=exports[a9_0x458b43(0x151)]=exports[a9_0x458b43(0x16e)]=exports['Logger']=exports[a9_0x458b43(0x183)]=exports[a9_0x458b43(0x15c)]=exports[a9_0x458b43(0x156)]=exports[a9_0x458b43(0x14a)]=exports[a9_0x458b43(0x158)]=exports[a9_0x458b43(0x171)]=exports['Body']=exports['Fields']=exports['Files']=exports['File']=exports[a9_0x458b43(0x16c)]=exports[a9_0x458b43(0x174)]=exports[a9_0x458b43(0x176)]=exports['ExcelService']=exports['ApiService']=exports['EventService']=exports[a9_0x458b43(0x167)]=exports[a9_0x458b43(0x17a)]=exports['getRoutes']=exports[a9_0x458b43(0x144)]=exports['Intercept']=exports[a9_0x458b43(0x17e)]=exports[a9_0x458b43(0x145)]=void 0x0;const getAppsConfig_1=require(a9_0x458b43(0x150));Object[a9_0x458b43(0x16a)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x3cf63f=a9_0x458b43;return getAppsConfig_1[_0x3cf63f(0x16b)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x458b43(0x154)),exports);var Action_1=require('./decorator/Action');Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x145),{'enumerable':!![],'get':function(){var _0x5b2996=a9_0x458b43;return Action_1[_0x5b2996(0x145)];}});var ActionApitest_1=require(a9_0x458b43(0x15d));Object['defineProperty'](exports,a9_0x458b43(0x17e),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});function a9_0xe392(){var _0x4bd6da=['1987440hKXrrS','get','4824798ncAlLq','3939115hvIVml','Headers','File','Logger','Files','ScopeEnum','__esModule','./helper/getAppsConfig','Inject','__exportStar','./exception/ApiError','./service/ApitestService','@anncic-api/validator','Init','prototype','Query','./service/ExcelService','getOwnPropertyDescriptor','writable','App','./decorator/ActionApitest','@anncic-api/event','2758384UVqaLq','Intercept','(((.+)+)+)+$','hasOwnProperty','ApiService','Fields','820128cWqRpX','getRoutes','CacheService','@midwayjs/core','@anncic-api/cache','defineProperty','getAppsConfig','Configuration','2352972sUCGIc','Provide','__createBinding','3100181CFYgCr','Param','search','Scope','ValidatorService','ExcelService','ValidatorError','CustomConfiguration','Singleton','./service/ApiService','ApiError','./configuration','default','EventService','Apitest','toString','Body','constructor','./decorator/Intercept','Config','create','call','IIntercept','Action'];a9_0xe392=function(){return _0x4bd6da;};return a9_0xe392();}var Intercept_1=require(a9_0x458b43(0x182));Object[a9_0x458b43(0x16a)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x513299=a9_0x458b43;return Intercept_1[_0x513299(0x160)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x144),{'enumerable':!![],'get':function(){var _0x2fd6cf=a9_0x458b43;return Intercept_1[_0x2fd6cf(0x144)];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x166),{'enumerable':!![],'get':function(){var _0x43fcb3=a9_0x458b43;return getRoutes_1[_0x43fcb3(0x166)];}});var ApiError_1=require(a9_0x458b43(0x153));Object['defineProperty'](exports,a9_0x458b43(0x17a),{'enumerable':!![],'get':function(){var _0x43829a=a9_0x458b43;return ApiError_1[_0x43829a(0x17a)];}});var cache_1=require(a9_0x458b43(0x169));Object['defineProperty'](exports,a9_0x458b43(0x167),{'enumerable':!![],'get':function(){var _0x507a4d=a9_0x458b43;return cache_1[_0x507a4d(0x167)];}});var event_1=require(a9_0x458b43(0x15e));Object['defineProperty'](exports,a9_0x458b43(0x17d),{'enumerable':!![],'get':function(){var _0x23c70e=a9_0x458b43;return event_1[_0x23c70e(0x17d)];}});var ApiService_1=require(a9_0x458b43(0x179));function a9_0x5131(_0x162289,_0xea3c9e){var _0x4c176b=a9_0xe392();return a9_0x5131=function(_0x800d6d,_0x399906){_0x800d6d=_0x800d6d-0x143;var _0xe392d4=_0x4c176b[_0x800d6d];return _0xe392d4;},a9_0x5131(_0x162289,_0xea3c9e);}Object['defineProperty'](exports,a9_0x458b43(0x163),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x458b43(0x159));Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x175),{'enumerable':!![],'get':function(){var _0x4b7e27=a9_0x458b43;return ExcelService_1[_0x4b7e27(0x175)];}});var validator_1=require(a9_0x458b43(0x155));Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x176),{'enumerable':!![],'get':function(){var _0x486a4b=a9_0x458b43;return validator_1[_0x486a4b(0x176)];}}),Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x458b43(0x17b));Object['defineProperty'](exports,a9_0x458b43(0x16c),{'enumerable':!![],'get':function(){var _0x466a11=a9_0x458b43;return configuration_1[_0x466a11(0x177)];}});var core_1=require(a9_0x458b43(0x168));Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x14b),{'enumerable':!![],'get':function(){var _0x3490f9=a9_0x458b43;return core_1[_0x3490f9(0x14b)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x14d),{'enumerable':!![],'get':function(){var _0x3cf610=a9_0x458b43;return core_1[_0x3cf610(0x14d)];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x39e90d=a9_0x458b43;return core_1[_0x39e90d(0x164)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x180),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x171),{'enumerable':!![],'get':function(){var _0x17f0ba=a9_0x458b43;return core_1[_0x17f0ba(0x171)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x158),{'enumerable':!![],'get':function(){var _0x1d3863=a9_0x458b43;return core_1[_0x1d3863(0x158)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x14a),{'enumerable':!![],'get':function(){var _0x4d973e=a9_0x458b43;return core_1[_0x4d973e(0x14a)];}}),Object[a9_0x458b43(0x16a)](exports,'Init',{'enumerable':!![],'get':function(){var _0x1efe9b=a9_0x458b43;return core_1[_0x1efe9b(0x156)];}});var core_2=require(a9_0x458b43(0x168));Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x15c),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x183),{'enumerable':!![],'get':function(){var _0x447135=a9_0x458b43;return core_2[_0x447135(0x183)];}}),Object['defineProperty'](exports,a9_0x458b43(0x14c),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x16e),{'enumerable':!![],'get':function(){var _0x260088=a9_0x458b43;return core_2[_0x260088(0x16e)];}}),Object[a9_0x458b43(0x16a)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x4be289=a9_0x458b43;return core_2[_0x4be289(0x151)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x173),{'enumerable':!![],'get':function(){var _0x207c31=a9_0x458b43;return core_2[_0x207c31(0x173)];}}),Object[a9_0x458b43(0x16a)](exports,a9_0x458b43(0x178),{'enumerable':!![],'get':function(){var _0x313e02=a9_0x458b43;return core_2[_0x313e02(0x178)];}}),Object['defineProperty'](exports,a9_0x458b43(0x14e),{'enumerable':!![],'get':function(){var _0x33157c=a9_0x458b43;return core_2[_0x33157c(0x14e)];}}),global[a9_0x458b43(0x16b)]=getAppsConfig_1[a9_0x458b43(0x16b)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x3193b3=a10_0x5ed1;(function(_0x3a67f5,_0x1582b0){var _0x471ea0=a10_0x5ed1,_0x48084b=_0x3a67f5();while(!![]){try{var _0x330a8b=parseInt(_0x471ea0(0x146))/0x1*(-parseInt(_0x471ea0(0x135))/0x2)+parseInt(_0x471ea0(0x155))/0x3*(-parseInt(_0x471ea0(0x14b))/0x4)+-parseInt(_0x471ea0(0x14e))/0x5*(-parseInt(_0x471ea0(0x150))/0x6)+parseInt(_0x471ea0(0x148))/0x7*(parseInt(_0x471ea0(0x16e))/0x8)+-parseInt(_0x471ea0(0x160))/0x9+parseInt(_0x471ea0(0x158))/0xa+parseInt(_0x471ea0(0x165))/0xb*(parseInt(_0x471ea0(0x142))/0xc);if(_0x330a8b===_0x1582b0)break;else _0x48084b['push'](_0x48084b['shift']());}catch(_0x37fec9){_0x48084b['push'](_0x48084b['shift']());}}}(a10_0x14e2,0x49b0a));function a10_0x5ed1(_0x378894,_0x570ea5){var _0x53161d=a10_0x14e2();return a10_0x5ed1=function(_0x4aef71,_0x3f3e3e){_0x4aef71=_0x4aef71-0x12d;var _0x14e2e3=_0x53161d[_0x4aef71];return _0x14e2e3;},a10_0x5ed1(_0x378894,_0x570ea5);}var a10_0x3f3e3e=(function(){var _0x1f288e=!![];return function(_0xd09921,_0xda698e){var _0x26316e=_0x1f288e?function(){var _0xd31eee=a10_0x5ed1;if(_0xda698e){var _0x1cc529=_0xda698e[_0xd31eee(0x176)](_0xd09921,arguments);return _0xda698e=null,_0x1cc529;}}:function(){};return _0x1f288e=![],_0x26316e;};}()),a10_0x4aef71=a10_0x3f3e3e(this,function(){var _0x572ff4=a10_0x5ed1;return a10_0x4aef71[_0x572ff4(0x15c)]()[_0x572ff4(0x13f)](_0x572ff4(0x171))[_0x572ff4(0x15c)]()[_0x572ff4(0x14c)](a10_0x4aef71)[_0x572ff4(0x13f)]('(((.+)+)+)+$');});a10_0x4aef71();function a10_0x14e2(){var _0xeddf0c=['TIMEOUT','abs','apply','MD5','ApiError','length','Singleton','join','ApiService','metadata','HEADERS_LACK','10lqwIcq','Scope','Config','config','prototype','@midwayjs/core','defineProperty','logintimeout','function','now','search','toLowerCase','请求超时,请重试或改善网络环境','401952zCJRte','checkcode','getcheck','padEnd','25775QXGnaM','ScopeEnum','230573aFdRvd','__esModule','HEADERS_DEVICE','203292viJzbi','constructor','device','1328965unBXUj','crypto-js','6KAFfTy','secret','token','sort','../exception/ApiError','33Qatkxc','push','Provide','3069140wpRagm','devices','object','__decorate','toString','getsign','signature','HEADERS_CHECKCODE','110394FpNvBR','secret=','decorate','design:type','TIMEOUT_LOGINTIME','22gdQgjz','substring','getOwnPropertyDescriptor','logintime','验证失败','password','entries','timeout','requesttime','88NupeJW','HEADERS_SIGNATURE','map','(((.+)+)+)+$','undefined','fromEntries'];a10_0x14e2=function(){return _0xeddf0c;};return a10_0x14e2();}'use strict';var __decorate=this&&this[a10_0x3193b3(0x15b)]||function(_0x106ffb,_0x2ca008,_0x88ef92,_0x18a71a){var _0x458f2c=a10_0x3193b3,_0x545875=arguments['length'],_0x52f7af=_0x545875<0x3?_0x2ca008:_0x18a71a===null?_0x18a71a=Object[_0x458f2c(0x167)](_0x2ca008,_0x88ef92):_0x18a71a,_0x4a08c2;if(typeof Reflect===_0x458f2c(0x15a)&&typeof Reflect[_0x458f2c(0x162)]===_0x458f2c(0x13d))_0x52f7af=Reflect[_0x458f2c(0x162)](_0x106ffb,_0x2ca008,_0x88ef92,_0x18a71a);else{for(var _0x1ebe09=_0x106ffb[_0x458f2c(0x12f)]-0x1;_0x1ebe09>=0x0;_0x1ebe09--)if(_0x4a08c2=_0x106ffb[_0x1ebe09])_0x52f7af=(_0x545875<0x3?_0x4a08c2(_0x52f7af):_0x545875>0x3?_0x4a08c2(_0x2ca008,_0x88ef92,_0x52f7af):_0x4a08c2(_0x2ca008,_0x88ef92))||_0x52f7af;}return _0x545875>0x3&&_0x52f7af&&Object[_0x458f2c(0x13b)](_0x2ca008,_0x88ef92,_0x52f7af),_0x52f7af;},__metadata=this&&this['__metadata']||function(_0x2f46d8,_0x28dd8d){var _0x5f5d4a=a10_0x3193b3;if(typeof Reflect==='object'&&typeof Reflect[_0x5f5d4a(0x133)]==='function')return Reflect[_0x5f5d4a(0x133)](_0x2f46d8,_0x28dd8d);};Object[a10_0x3193b3(0x13b)](exports,a10_0x3193b3(0x149),{'value':!![]}),exports[a10_0x3193b3(0x132)]=void 0x0;const crypto_js_1=require(a10_0x3193b3(0x14f)),core_1=require(a10_0x3193b3(0x13a)),ApiError_1=require(a10_0x3193b3(0x154));let ApiService=exports[a10_0x3193b3(0x132)]=class ApiService{[a10_0x3193b3(0x16a)](_0x68c52e){var _0xdf757d=a10_0x3193b3,_0x32e8f7;return _0x68c52e?(0x0,crypto_js_1[_0xdf757d(0x12d)])(''+_0x68c52e+(0x0,crypto_js_1[_0xdf757d(0x12d)])((0x0,crypto_js_1['MD5'])(''+_0x68c52e)[_0xdf757d(0x15c)]()+(''+((_0x32e8f7=this[_0xdf757d(0x138)])===null||_0x32e8f7===void 0x0?void 0x0:_0x32e8f7['password'])))[_0xdf757d(0x15c)]())['toString']():'';}[a10_0x3193b3(0x144)](_0x3bc793,_0x4365e7,_0x33ee25=Date[a10_0x3193b3(0x13e)]()){return{'Token':_0x3bc793,'Logintime':_0x33ee25,'Checkcode':this['checkcode'](_0x3bc793,_0x4365e7,_0x33ee25)};}['getsign'](_0x5bac73={}){var _0x2fb047=a10_0x3193b3,_0x5735c9,_0x1cbe19;const _0x6fe715=[],_0x35b131=Object[_0x2fb047(0x173)](Object[_0x2fb047(0x16b)](_0x5bac73)[_0x2fb047(0x170)](_0x1d1c37=>[_0x1d1c37[0x0][_0x2fb047(0x140)](),_0x1d1c37[0x1]]));for(let _0x198ed4 of['device','requesttime','token',_0x2fb047(0x168),_0x2fb047(0x143)]){if(typeof _0x35b131[_0x198ed4]==_0x2fb047(0x172))throw new AnnError(ApiError_1[_0x2fb047(0x12e)][_0x2fb047(0x134)],{'message':_0x2fb047(0x169)});_0x6fe715[_0x2fb047(0x156)](_0x198ed4+'='+_0x35b131[_0x198ed4]);}_0x35b131[_0x2fb047(0x16d)]&&((_0x5735c9=_0x35b131['requesttime'])===null||_0x5735c9===void 0x0?void 0x0:_0x5735c9[_0x2fb047(0x12f)])==0xa&&(_0x35b131[_0x2fb047(0x16d)]=_0x35b131['requesttime']*0x3e8);if(this[_0x2fb047(0x138)][_0x2fb047(0x16c)]&&parseInt((''+Date['now']())[_0x2fb047(0x166)](0x0,0xd)[_0x2fb047(0x145)](0xd,'0'))-parseInt((''+Math[_0x2fb047(0x175)](_0x35b131[_0x2fb047(0x16d)]))[_0x2fb047(0x166)](0x0,0xd)[_0x2fb047(0x145)](0xd,'0'))>parseInt(this[_0x2fb047(0x138)][_0x2fb047(0x16c)]))throw new AnnError(ApiError_1[_0x2fb047(0x12e)][_0x2fb047(0x174)],{'message':_0x2fb047(0x141),'requesttime':_0x35b131[_0x2fb047(0x16d)],'timestamp':Date[_0x2fb047(0x13e)]()});if((((_0x1cbe19=this[_0x2fb047(0x138)][_0x2fb047(0x159)][_0x35b131[_0x2fb047(0x14d)]])===null||_0x1cbe19===void 0x0?void 0x0:_0x1cbe19[_0x2fb047(0x13c)])||0x0)>0x0&&Date[_0x2fb047(0x13e)]()-Math[_0x2fb047(0x175)](_0x35b131[_0x2fb047(0x168)])>this[_0x2fb047(0x138)][_0x2fb047(0x159)][_0x35b131[_0x2fb047(0x14d)]]['logintimeout'])throw new AnnError(ApiError_1[_0x2fb047(0x12e)][_0x2fb047(0x164)]);if(!this[_0x2fb047(0x138)]['devices'][_0x35b131[_0x2fb047(0x14d)]]||!this['config'][_0x2fb047(0x159)][_0x35b131[_0x2fb047(0x14d)]][_0x2fb047(0x151)]||!this[_0x2fb047(0x138)]['devices'][_0x35b131[_0x2fb047(0x14d)]]['checkcode'])throw new AnnError(ApiError_1[_0x2fb047(0x12e)]['HEADERS_DEVICE']);if(_0x35b131['token']&&_0x35b131[_0x2fb047(0x143)]!=this[_0x2fb047(0x143)](_0x35b131[_0x2fb047(0x152)],_0x35b131[_0x2fb047(0x14d)],_0x35b131[_0x2fb047(0x168)]))throw new AnnError(ApiError_1[_0x2fb047(0x12e)][_0x2fb047(0x15f)]);return _0x6fe715[_0x2fb047(0x156)](_0x2fb047(0x161)+this['config'][_0x2fb047(0x159)][_0x35b131[_0x2fb047(0x14d)]][_0x2fb047(0x151)]),(0x0,crypto_js_1['MD5'])(_0x6fe715[_0x2fb047(0x153)]()[_0x2fb047(0x131)](''))[_0x2fb047(0x15c)]();}[a10_0x3193b3(0x143)](_0x190997,_0x287836,_0x3b125c=Date[a10_0x3193b3(0x13e)]()){var _0x456272=a10_0x3193b3,_0x116e2b,_0xdc441e,_0x14770c;if(!((_0x116e2b=this[_0x456272(0x138)])===null||_0x116e2b===void 0x0?void 0x0:_0x116e2b[_0x456272(0x159)][_0x287836])||!((_0x14770c=(_0xdc441e=this[_0x456272(0x138)])===null||_0xdc441e===void 0x0?void 0x0:_0xdc441e[_0x456272(0x159)][_0x287836])===null||_0x14770c===void 0x0?void 0x0:_0x14770c['checkcode']))throw new AnnError(ApiError_1[_0x456272(0x12e)][_0x456272(0x14a)]);return(0x0,crypto_js_1[_0x456272(0x12d)])(''+_0x190997+(0x0,crypto_js_1[_0x456272(0x12d)])(''+_0x3b125c+(''+this[_0x456272(0x138)][_0x456272(0x159)][_0x287836][_0x456272(0x143)]))['toString']())['toString']();}['checksign'](_0x630df6={}){var _0x3aa163=a10_0x3193b3;const _0x430c63=Object[_0x3aa163(0x173)](Object['entries'](_0x630df6)[_0x3aa163(0x170)](_0x377228=>[_0x377228[0x0]['toLowerCase'](),_0x377228[0x1]]));if(!(_0x430c63===null||_0x430c63===void 0x0?void 0x0:_0x430c63['signature']))throw new AnnError(ApiError_1['ApiError'][_0x3aa163(0x134)],{'message':'验证失败'});if((_0x430c63===null||_0x430c63===void 0x0?void 0x0:_0x430c63[_0x3aa163(0x15e)])!=this[_0x3aa163(0x15d)](_0x430c63))throw new AnnError(ApiError_1['ApiError'][_0x3aa163(0x16f)],{'message':'验证失败'});return!![];}};__decorate([(0x0,core_1[a10_0x3193b3(0x137)])('anncicapi'),__metadata(a10_0x3193b3(0x163),Object)],ApiService[a10_0x3193b3(0x139)],a10_0x3193b3(0x138),void 0x0),exports['ApiService']=ApiService=__decorate([(0x0,core_1[a10_0x3193b3(0x157)])(),(0x0,core_1[a10_0x3193b3(0x136)])(core_1[a10_0x3193b3(0x147)][a10_0x3193b3(0x130)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x2b5d8d=a11_0x2eda;(function(_0x384a36,_0x37c539){const _0x4ac95c=a11_0x2eda,_0x2d0bed=_0x384a36();while(!![]){try{const _0x53bf5d=parseInt(_0x4ac95c(0x94))/0x1+parseInt(_0x4ac95c(0xbc))/0x2*(parseInt(_0x4ac95c(0xa9))/0x3)+parseInt(_0x4ac95c(0x90))/0x4*(-parseInt(_0x4ac95c(0xa4))/0x5)+-parseInt(_0x4ac95c(0xad))/0x6+parseInt(_0x4ac95c(0xba))/0x7*(-parseInt(_0x4ac95c(0x87))/0x8)+-parseInt(_0x4ac95c(0x78))/0x9*(parseInt(_0x4ac95c(0x8c))/0xa)+parseInt(_0x4ac95c(0xb8))/0xb;if(_0x53bf5d===_0x37c539)break;else _0x2d0bed['push'](_0x2d0bed['shift']());}catch(_0x5afc57){_0x2d0bed['push'](_0x2d0bed['shift']());}}}(a11_0x1f0d,0x25136));const a11_0x2bf0dc=(function(){let _0x17563f=!![];return function(_0x289579,_0x48203c){const _0x51d8e1=_0x17563f?function(){const _0x20e422=a11_0x2eda;if(_0x48203c){const _0x25035c=_0x48203c[_0x20e422(0xb5)](_0x289579,arguments);return _0x48203c=null,_0x25035c;}}:function(){};return _0x17563f=![],_0x51d8e1;};}()),a11_0x5ddb3f=a11_0x2bf0dc(this,function(){const _0x3a0d36=a11_0x2eda;return a11_0x5ddb3f[_0x3a0d36(0xb1)]()[_0x3a0d36(0xb4)]('(((.+)+)+)+$')[_0x3a0d36(0xb1)]()[_0x3a0d36(0xbe)](a11_0x5ddb3f)[_0x3a0d36(0xb4)](_0x3a0d36(0x97));});a11_0x5ddb3f();function a11_0x2eda(_0x573beb,_0x38bf0f){const _0x4ac63b=a11_0x1f0d();return a11_0x2eda=function(_0x5ddb3f,_0x2bf0dc){_0x5ddb3f=_0x5ddb3f-0x6c;let _0x1f0d36=_0x4ac63b[_0x5ddb3f];return _0x1f0d36;},a11_0x2eda(_0x573beb,_0x38bf0f);}'use strict';var __decorate=this&&this['__decorate']||function(_0x217443,_0x4f839e,_0x14a92c,_0x35ba88){const _0x2b5a52=a11_0x2eda;var _0x45c526=arguments[_0x2b5a52(0x75)],_0x35efac=_0x45c526<0x3?_0x4f839e:_0x35ba88===null?_0x35ba88=Object['getOwnPropertyDescriptor'](_0x4f839e,_0x14a92c):_0x35ba88,_0x2468c2;if(typeof Reflect===_0x2b5a52(0x70)&&typeof Reflect[_0x2b5a52(0x89)]===_0x2b5a52(0x83))_0x35efac=Reflect['decorate'](_0x217443,_0x4f839e,_0x14a92c,_0x35ba88);else{for(var _0x3d0a7c=_0x217443['length']-0x1;_0x3d0a7c>=0x0;_0x3d0a7c--)if(_0x2468c2=_0x217443[_0x3d0a7c])_0x35efac=(_0x45c526<0x3?_0x2468c2(_0x35efac):_0x45c526>0x3?_0x2468c2(_0x4f839e,_0x14a92c,_0x35efac):_0x2468c2(_0x4f839e,_0x14a92c))||_0x35efac;}return _0x45c526>0x3&&_0x35efac&&Object[_0x2b5a52(0x9c)](_0x4f839e,_0x14a92c,_0x35efac),_0x35efac;},__metadata=this&&this['__metadata']||function(_0x3af84f,_0x2c89ad){const _0x426535=a11_0x2eda;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x426535(0x83))return Reflect[_0x426535(0x8a)](_0x3af84f,_0x2c89ad);},__param=this&&this[a11_0x2b5d8d(0x6f)]||function(_0x4db34f,_0x202bee){return function(_0x4db61d,_0x4b33c9){_0x202bee(_0x4db61d,_0x4b33c9,_0x4db34f);};};Object[a11_0x2b5d8d(0x9c)](exports,a11_0x2b5d8d(0x8d),{'value':!![]}),exports[a11_0x2b5d8d(0x6e)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x2b5d8d(0x8e)),fs_1=require('fs'),core_1=require(a11_0x2b5d8d(0x91)),core_2=require('@midwayjs/core'),core_3=require(a11_0x2b5d8d(0x91)),getRoutes_1=require(a11_0x2b5d8d(0xbb));let ApitestService=exports[a11_0x2b5d8d(0xaf)]=class ApitestService{async[a11_0x2b5d8d(0xa6)](_0x16ae2f){const _0x274cd7=a11_0x2b5d8d,_0x40c7fd=(0x0,getRoutes_1[_0x274cd7(0x7e)])(_0x16ae2f),_0x41f3fb=[];for(let _0x3802c9 in _0x40c7fd){for(let _0x256257 in _0x40c7fd[_0x3802c9][_0x274cd7(0x72)]){let _0x1e48a0=_0x40c7fd[_0x3802c9][_0x274cd7(0x72)][_0x256257],_0x2a83ae=[];for(let _0x1646f3 in _0x1e48a0[_0x274cd7(0x99)]){_0x2a83ae[_0x274cd7(0x93)](_0x1e48a0[_0x274cd7(0x99)][_0x1646f3]);}_0x41f3fb[_0x274cd7(0x93)]({'title':_0x40c7fd[_0x3802c9][_0x274cd7(0xa1)]+':'+_0x1e48a0[_0x274cd7(0xa1)],'prefix':_0x40c7fd[_0x3802c9][_0x274cd7(0x7b)],'router':_0x1e48a0[_0x274cd7(0xb9)],'method':_0x1e48a0['method'],'describe':_0x1e48a0[_0x274cd7(0xae)]||'','filepath':_0x40c7fd[_0x3802c9][_0x274cd7(0x81)]||'','request':_0x2a83ae});}}const _0x550109=(0x0,path_1['join'])(__dirname,_0x274cd7(0xa3));return(0x0,fs_1[_0x274cd7(0x95)])(_0x550109,{'encoding':_0x274cd7(0x76)})[_0x274cd7(0xb2)](/__res__/g,_0x274cd7(0x7f))[_0x274cd7(0xb2)](_0x274cd7(0x7a),JSON[_0x274cd7(0x9d)](_0x41f3fb))[_0x274cd7(0xb2)]('__devices__',JSON[_0x274cd7(0x9d)](this[_0x274cd7(0xa0)][_0x274cd7(0xa7)]));}};__decorate([(0x0,core_3['Config'])(a11_0x2b5d8d(0x9a)),__metadata(a11_0x2b5d8d(0xa8),Object)],ApitestService[a11_0x2b5d8d(0x82)],a11_0x2b5d8d(0xa0),void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x2b5d8d(0x8b)),(0x0,core_3[a11_0x2b5d8d(0x92)])(core_3[a11_0x2b5d8d(0x77)][a11_0x2b5d8d(0xa2)])],ApitestService);let ApitestStaticController=exports[a11_0x2b5d8d(0x6e)]=class ApitestStaticController{async[a11_0x2b5d8d(0x98)](){const _0x2dddab=a11_0x2b5d8d;if(this['apitest']){const _0x5c1b6d={'module':![]};return this[_0x2dddab(0x80)][_0x2dddab(0x96)]()&&(_0x5c1b6d['filepath']=!![]),await this[_0x2dddab(0xaf)]['apidoc'](_0x5c1b6d);}return'';}async[a11_0x2b5d8d(0x79)](_0x4baed4){const _0x18ce3e=a11_0x2b5d8d;if(this[_0x18ce3e(0x8b)]){const _0x182405={'module':_0x4baed4};return this[_0x18ce3e(0x80)][_0x18ce3e(0x96)]()&&(_0x182405[_0x18ce3e(0x81)]=!![]),await this[_0x18ce3e(0xaf)][_0x18ce3e(0xa6)](_0x182405);}return'';}async[a11_0x2b5d8d(0x6c)](){const _0x5aab75=a11_0x2b5d8d;if((0x0,path_1[_0x5aab75(0xb7)])(this[_0x5aab75(0xbd)][_0x5aab75(0x99)][_0x5aab75(0x88)])){var _0x285919=(0x0,path_1[_0x5aab75(0x71)])(__dirname,_0x5aab75(0xab)+this[_0x5aab75(0xbd)][_0x5aab75(0x99)][_0x5aab75(0x88)][_0x5aab75(0xb2)](_0x5aab75(0x7f),'/'));if(_0x285919['substring'](_0x285919[_0x5aab75(0x75)]-0xb)!='/index.html'){this['ctx'][_0x5aab75(0x8f)](_0x5aab75(0x7c),_0x5aab75(0x85));if((0x0,path_1[_0x5aab75(0xb7)])(this[_0x5aab75(0xbd)]['request'][_0x5aab75(0x88)])==_0x5aab75(0x74))this[_0x5aab75(0xbd)][_0x5aab75(0x8f)](_0x5aab75(0x9b),_0x5aab75(0xac));else(0x0,path_1['extname'])(this[_0x5aab75(0xbd)][_0x5aab75(0x99)]['url'])=='.css'&&this['ctx'][_0x5aab75(0x8f)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0x5aab75(0xb3)])(_0x285919)&&(0x0,fs_1[_0x5aab75(0x95)])(_0x285919,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a11_0x2b5d8d(0x84)])(),__metadata(a11_0x2b5d8d(0xa8),Object)],ApitestStaticController['prototype'],'ctx',void 0x0),__decorate([(0x0,core_3[a11_0x2b5d8d(0x84)])(),__metadata(a11_0x2b5d8d(0xa8),core_1[a11_0x2b5d8d(0xb0)])],ApitestStaticController[a11_0x2b5d8d(0x82)],a11_0x2b5d8d(0x80),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x2b5d8d(0xa8),ApitestService)],ApitestStaticController[a11_0x2b5d8d(0x82)],a11_0x2b5d8d(0xaf),void 0x0),__decorate([(0x0,core_3[a11_0x2b5d8d(0x9e)])(a11_0x2b5d8d(0x8b)),__metadata(a11_0x2b5d8d(0xa8),Boolean)],ApitestStaticController[a11_0x2b5d8d(0x82)],a11_0x2b5d8d(0x8b),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x2b5d8d(0x9a)),__metadata(a11_0x2b5d8d(0xa8),Object)],ApitestStaticController[a11_0x2b5d8d(0x82)],a11_0x2b5d8d(0xa0),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x2b5d8d(0xa5)),__metadata('design:type',Function),__metadata(a11_0x2b5d8d(0x73),[]),__metadata(a11_0x2b5d8d(0x86),Promise)],ApitestStaticController[a11_0x2b5d8d(0x82)],a11_0x2b5d8d(0x98),null),__decorate([(0x0,core_2['Get'])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x2b5d8d(0xaa)])('module')),__metadata(a11_0x2b5d8d(0xa8),Function),__metadata(a11_0x2b5d8d(0x73),[String]),__metadata(a11_0x2b5d8d(0x86),Promise)],ApitestStaticController['prototype'],a11_0x2b5d8d(0x79),null),__decorate([(0x0,core_2[a11_0x2b5d8d(0x7d)])(a11_0x2b5d8d(0x9f)),__metadata('design:type',Function),__metadata(a11_0x2b5d8d(0x73),[]),__metadata(a11_0x2b5d8d(0x86),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),exports[a11_0x2b5d8d(0x6e)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x2b5d8d(0xb6)])('/'),(0x0,core_3[a11_0x2b5d8d(0x92)])(core_3[a11_0x2b5d8d(0x77)][a11_0x2b5d8d(0x6d)])],ApitestStaticController);function a11_0x1f0d(){const _0x26161f=['Inject','public,\x20max-age=604800','design:returntype','8fMKKlr','url','decorate','metadata','apitest','10HNvFHe','__esModule','path','set','1536oMFgtq','@midwayjs/core','Scope','push','50698CfyKxK','readFileSync','isDevelopmentEnvironment','(((.+)+)+)+$','apitesthtml','request','anncicapi','content-type','defineProperty','stringify','Config','/apiteststatic/*','config','summary','Singleton','../../public/index.html','1110DRtLui','/apitest','apidoc','devices','design:type','141JEIwGx','Param','../../public/','application/javascript;\x20charset=utf-8','411942FGtznk','description','ApitestService','MidwayEnvironmentService','toString','replace','existsSync','search','apply','Controller','extname','3013813mNEnDm','route','824565oLcxQu','../helper/getRoutes','6962nqwiJb','ctx','constructor','apiteststatic','Request','ApitestStaticController','__param','object','join','routes','design:paramtypes','.js','length','utf-8','ScopeEnum','582534pcOKzH','apitestmodule','__apiList__','prefix','cache-control','Get','getRoutes','/apiteststatic/','Environment','filepath','prototype','function'];a11_0x1f0d=function(){return _0x26161f;};return a11_0x1f0d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x3806a6=a12_0x1f50;(function(_0x19723b,_0x427182){const _0x19b1f6=a12_0x1f50,_0x25bab4=_0x19723b();while(!![]){try{const _0x325dd4=-parseInt(_0x19b1f6(0x1ab))/0x1*(-parseInt(_0x19b1f6(0x195))/0x2)+parseInt(_0x19b1f6(0x1d0))/0x3+parseInt(_0x19b1f6(0x1bc))/0x4*(-parseInt(_0x19b1f6(0x1c3))/0x5)+-parseInt(_0x19b1f6(0x1bf))/0x6*(parseInt(_0x19b1f6(0x1ae))/0x7)+parseInt(_0x19b1f6(0x198))/0x8*(parseInt(_0x19b1f6(0x1a9))/0x9)+parseInt(_0x19b1f6(0x1cb))/0xa*(parseInt(_0x19b1f6(0x1a1))/0xb)+parseInt(_0x19b1f6(0x1b9))/0xc;if(_0x325dd4===_0x427182)break;else _0x25bab4['push'](_0x25bab4['shift']());}catch(_0x11f5bc){_0x25bab4['push'](_0x25bab4['shift']());}}}(a12_0x44ac,0xe782a));const a12_0x277782=(function(){let _0x2359eb=!![];return function(_0x4d32bc,_0x5b41a9){const _0xf30c4a=_0x2359eb?function(){if(_0x5b41a9){const _0x1c345b=_0x5b41a9['apply'](_0x4d32bc,arguments);return _0x5b41a9=null,_0x1c345b;}}:function(){};return _0x2359eb=![],_0xf30c4a;};}()),a12_0x313d68=a12_0x277782(this,function(){const _0x288d99=a12_0x1f50;return a12_0x313d68['toString']()['search'](_0x288d99(0x1c6))[_0x288d99(0x1cc)]()['constructor'](a12_0x313d68)[_0x288d99(0x1be)](_0x288d99(0x1c6));});a12_0x313d68();'use strict';function a12_0x44ac(){const _0x5627d6=['object','Scope','63820BeWOpu','toString','frozen','key','replace','1704825FjxXJP','rowCount','worksheets','koa-send','@midwayjs/core','\x20is\x20read\x20fail','header','writeFile','/public/xlsx/','format','__esModule','Workbook','98006HZbJsT','export','push','8hPptfe','addWorksheet','cellCount','Singleton','addRow','app','Provide','defineProperty','design:type','924JiVfkQ','random','getCell','model','columns','metadata','startsWith','length','10258074aTRXjm','get','18VREkbo','endsWith','existsSync','7bQsNkD','substring','__decorate','isNumber','download','getAppDir','function','ExcelService','Sheet\x201','col','prototype','9042540YgxpTB','mkdirSync','decorate','7420404AEceYb','xlsx','search','6458286KJQcXD','parse','eachCell','handler','5mkRnUj','set','value','(((.+)+)+)+$','exceljs','keys'];a12_0x44ac=function(){return _0x5627d6;};return a12_0x44ac();}var __decorate=this&&this[a12_0x3806a6(0x1b0)]||function(_0x7f510c,_0x321217,_0x37ed38,_0x105e5a){const _0x19d72e=a12_0x3806a6;var _0x19ab8b=arguments['length'],_0xbab05=_0x19ab8b<0x3?_0x321217:_0x105e5a===null?_0x105e5a=Object['getOwnPropertyDescriptor'](_0x321217,_0x37ed38):_0x105e5a,_0x289b83;if(typeof Reflect===_0x19d72e(0x1c9)&&typeof Reflect[_0x19d72e(0x1bb)]===_0x19d72e(0x1b4))_0xbab05=Reflect['decorate'](_0x7f510c,_0x321217,_0x37ed38,_0x105e5a);else{for(var _0x58f5c8=_0x7f510c[_0x19d72e(0x1a8)]-0x1;_0x58f5c8>=0x0;_0x58f5c8--)if(_0x289b83=_0x7f510c[_0x58f5c8])_0xbab05=(_0x19ab8b<0x3?_0x289b83(_0xbab05):_0x19ab8b>0x3?_0x289b83(_0x321217,_0x37ed38,_0xbab05):_0x289b83(_0x321217,_0x37ed38))||_0xbab05;}return _0x19ab8b>0x3&&_0xbab05&&Object['defineProperty'](_0x321217,_0x37ed38,_0xbab05),_0xbab05;},__metadata=this&&this['__metadata']||function(_0x33c698,_0x3cf8db){const _0x1b71e6=a12_0x3806a6;if(typeof Reflect==='object'&&typeof Reflect[_0x1b71e6(0x1a6)]===_0x1b71e6(0x1b4))return Reflect[_0x1b71e6(0x1a6)](_0x33c698,_0x3cf8db);};Object[a12_0x3806a6(0x19f)](exports,a12_0x3806a6(0x193),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x3806a6(0x1c7)),koasend=require(a12_0x3806a6(0x1d3)),core_1=require(a12_0x3806a6(0x1d4));let ExcelService=exports[a12_0x3806a6(0x1b5)]=class ExcelService{async[a12_0x3806a6(0x1c0)](_0x498ff7,_0x221bce,_0x58edff=[0x0]){const _0x35429f=a12_0x3806a6;var _0x34e1dc,_0x26bf02;const _0x3ba5c7=new exceljs['Workbook'](),_0x43c462=[];let _0x56a839=_0x498ff7[_0x35429f(0x1cf)](/(\\|\/)/g,'/')[_0x35429f(0x1cf)](/\/{2,}/g,'/');!(_0x56a839===null||_0x56a839===void 0x0?void 0x0:_0x56a839[_0x35429f(0x1a7)]('/'))&&(_0x56a839=this[_0x35429f(0x19d)][_0x35429f(0x1b3)]()+'/'+_0x56a839);try{await _0x3ba5c7[_0x35429f(0x1bd)]['readFile'](_0x56a839);}catch(_0x4ad32d){return console['log']('Api\x20Excel\x20Error:\x20'+_0x56a839+_0x35429f(0x1d5)),_0x43c462;}for(const _0x289495 of _0x58edff){const _0x59792c=lodash[_0x35429f(0x1b1)](_0x289495)?((_0x34e1dc=_0x3ba5c7[_0x35429f(0x1d2)])===null||_0x34e1dc===void 0x0?void 0x0:_0x34e1dc[_0x289495])||undefined:_0x3ba5c7['getWorksheet'](_0x289495);if(_0x59792c){var _0x496a60=0x1;const _0xbfdc3a=_0x59792c['getRow'](0x1),_0x35e07e=await new Promise(_0xc26ae7=>{const _0x8152=_0x35429f,_0x3371d8={};_0xbfdc3a[_0x8152(0x1c1)]((_0x3c024a,_0x12fdea)=>{const _0x49cf51=_0x8152;for(const _0x5965e9 of _0x221bce){if(_0x3c024a[_0x49cf51(0x1c5)]==_0x5965e9['header'])_0x496a60=0x2,_0x3371d8[_0x5965e9[_0x49cf51(0x1ce)]]={'header':_0x3c024a[_0x49cf51(0x1b7)],'handler':_0x5965e9[_0x49cf51(0x1c2)]};else{if(!_0x3371d8[_0x5965e9[_0x49cf51(0x1ce)]])try{const _0x33af65=_0xbfdc3a&&_0xbfdc3a[_0x49cf51(0x1a3)](_0x5965e9['header']);_0x33af65&&(_0x3371d8[_0x5965e9[_0x49cf51(0x1ce)]]={'header':_0x33af65[_0x49cf51(0x1b7)],'handler':_0x5965e9[_0x49cf51(0x1c2)]});}catch{}}}_0xbfdc3a[_0x49cf51(0x19a)]==_0x12fdea&&_0xc26ae7(_0x3371d8);});});_0x5a0d0e:for(const _0x259d0d of _0x59792c['findRows'](_0x496a60,_0x59792c[_0x35429f(0x1d1)])){if(typeof(_0x259d0d===null||_0x259d0d===void 0x0?void 0x0:_0x259d0d[_0x35429f(0x1a3)])!=_0x35429f(0x1b4))continue _0x5a0d0e;const _0x2c6827={};_0xa82b89:for(const _0x761465 in _0x35e07e){if(_0x35e07e[_0x761465]['header']){const _0x5dd43b=_0x259d0d[_0x35429f(0x1a3)](_0x35e07e[_0x761465][_0x35429f(0x1d6)]);if(!_0x5dd43b)continue _0xa82b89;try{_0x5dd43b[_0x35429f(0x1cc)]();}catch(_0x287f20){_0x5dd43b[_0x35429f(0x1cc)]=()=>{const _0x3eacd5=_0x35429f;var _0x5ee281;return''+(((_0x5ee281=_0x5dd43b===null||_0x5dd43b===void 0x0?void 0x0:_0x5dd43b[_0x3eacd5(0x1a4)])===null||_0x5ee281===void 0x0?void 0x0:_0x5ee281[_0x3eacd5(0x1c5)])||'');};}typeof((_0x26bf02=_0x35e07e[_0x761465])===null||_0x26bf02===void 0x0?void 0x0:_0x26bf02[_0x35429f(0x1c2)])==_0x35429f(0x1b4)?_0x2c6827[_0x761465]=await _0x35e07e[_0x761465][_0x35429f(0x1c2)](lodash[_0x35429f(0x1c4)]({},_0x761465,(_0x5dd43b===null||_0x5dd43b===void 0x0?void 0x0:_0x5dd43b[_0x35429f(0x1cc)]())||''),_0x5dd43b['model']):_0x2c6827[_0x761465]=(_0x5dd43b===null||_0x5dd43b===void 0x0?void 0x0:_0x5dd43b[_0x35429f(0x1cc)]())||'';}}Object[_0x35429f(0x1c8)](_0x2c6827)[_0x35429f(0x1a8)]>0x0&&Object['values'](_0x2c6827)['filter'](_0x1a7bd1=>_0x1a7bd1!='')[_0x35429f(0x1a8)]>0x0&&_0x43c462[_0x35429f(0x197)](_0x2c6827);}}}return _0x43c462;}async[a12_0x3806a6(0x196)](_0x36d13e,_0x3b0248,_0x2723d5,_0x8f72ca,_0x55b3df){const _0x45d1be=a12_0x3806a6;var _0x446908,_0x3bd1f1;const _0x504d8d=new exceljs[(_0x45d1be(0x194))](),_0x4b286e={},_0x30c658=[],_0x39a172=_0x504d8d[_0x45d1be(0x199)](_0x45d1be(0x1b6),{'views':[{'state':_0x45d1be(0x1cd),'ySplit':0x1}]});for(const _0x49a606 in _0x3b0248){_0x4b286e[_0x3b0248[_0x49a606]['key']]=_0x3b0248[_0x49a606][_0x45d1be(0x1d6)],_0x30c658[_0x45d1be(0x197)]({'header':_0x3b0248[_0x49a606][_0x45d1be(0x1d6)],'key':(_0x446908=_0x3b0248[_0x49a606])===null||_0x446908===void 0x0?void 0x0:_0x446908[_0x45d1be(0x1ce)][_0x45d1be(0x1cf)](/\./g,'_')});}_0x39a172[_0x45d1be(0x1a5)]=_0x30c658;for(const _0x51856e in _0x2723d5){const _0x1b0bb2=_0x2723d5[_0x51856e],_0x551b5b=_0x39a172[_0x45d1be(0x19c)]({});for(let _0x18f2c8 in _0x3b0248){const _0x273156=_0x3b0248[_0x18f2c8][_0x45d1be(0x1ce)]['replace'](/\./g,'_'),_0x12f88c=_0x39a172['getColumn'](_0x273156),_0x23d05c=_0x551b5b===null||_0x551b5b===void 0x0?void 0x0:_0x551b5b['getCell'](_0x273156);typeof((_0x3bd1f1=_0x3b0248[_0x18f2c8])===null||_0x3bd1f1===void 0x0?void 0x0:_0x3bd1f1[_0x45d1be(0x1c2)])==_0x45d1be(0x1b4)?_0x23d05c[_0x45d1be(0x1c5)]=await _0x3b0248[_0x18f2c8][_0x45d1be(0x1c2)](_0x1b0bb2,{'row':_0x551b5b,'col':_0x12f88c,'cell':_0x23d05c,'sheet':_0x39a172})||'':_0x23d05c[_0x45d1be(0x1c5)]=lodash[_0x45d1be(0x1aa)](_0x1b0bb2,_0x3b0248[_0x18f2c8][_0x45d1be(0x1ce)],'');}}typeof _0x55b3df=='function'&&await _0x55b3df({'workbook':_0x504d8d,'worksheet':_0x39a172});let _0x3d1476='';const _0x7a8ec9=_0x36d13e+'-'+lodash[_0x45d1be(0x1a2)](0x186a0,0xf423f)+'.xlsx';if(_0x8f72ca&&_0x8f72ca[_0x45d1be(0x1a7)]('/'))_0x3d1476=''+_0x8f72ca;else _0x8f72ca&&!_0x8f72ca['startsWith']('/')&&!_0x8f72ca[_0x45d1be(0x1a7)]('\x5c')?_0x3d1476=this[_0x45d1be(0x19d)][_0x45d1be(0x1b3)]()+'/'+_0x8f72ca:_0x3d1476=this['app'][_0x45d1be(0x1b3)]()+_0x45d1be(0x191)+dayjs()[_0x45d1be(0x192)]('YYYY/MM/DD');return(_0x3d1476[_0x45d1be(0x1ac)]('/')||_0x3d1476['endsWith']('\x5c'))&&(_0x3d1476=_0x3d1476['substring'](0x0,_0x3d1476[_0x45d1be(0x1a8)]-0x1)),_0x3d1476=_0x3d1476['replace'](/(\\|\/)/g,'/')[_0x45d1be(0x1cf)](/\/{2,}/g,'/'),!fs[_0x45d1be(0x1ad)](_0x3d1476)&&fs[_0x45d1be(0x1ba)](_0x3d1476,{'recursive':!![]}),await _0x504d8d[_0x45d1be(0x1bd)][_0x45d1be(0x1d7)]((_0x3d1476+'/'+_0x7a8ec9)[_0x45d1be(0x1cf)](/(\\|\/)/g,'/')[_0x45d1be(0x1cf)](/\/{2,}/g,'/')),{'filename':_0x7a8ec9,'filepath':(_0x3d1476[_0x45d1be(0x1af)]((''+this['app'][_0x45d1be(0x1b3)]())['length'])+'/'+_0x7a8ec9)[_0x45d1be(0x1cf)](/(\\|\/)/g,'/')[_0x45d1be(0x1cf)](/\/{2,}/g,'/')};}async[a12_0x3806a6(0x1b2)](_0x4fa7ed,_0x4b857d){return await koasend(_0x4fa7ed,''+_0x4b857d);}};function a12_0x1f50(_0x28b928,_0x18f5e2){const _0x1e4bcc=a12_0x44ac();return a12_0x1f50=function(_0x313d68,_0x277782){_0x313d68=_0x313d68-0x191;let _0x44acfd=_0x1e4bcc[_0x313d68];return _0x44acfd;},a12_0x1f50(_0x28b928,_0x18f5e2);}__decorate([(0x0,core_1['App'])(),__metadata(a12_0x3806a6(0x1a0),Object)],ExcelService[a12_0x3806a6(0x1b8)],a12_0x3806a6(0x19d),void 0x0),exports[a12_0x3806a6(0x1b5)]=ExcelService=__decorate([(0x0,core_1[a12_0x3806a6(0x19e)])(),(0x0,core_1[a12_0x3806a6(0x1ca)])(core_1['ScopeEnum'][a12_0x3806a6(0x19b)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0xfcff95=a13_0x464a;(function(_0x5b6cbd,_0x40f290){var _0xc04039=a13_0x464a,_0x15d729=_0x5b6cbd();while(!![]){try{var _0x398e47=-parseInt(_0xc04039(0x7c))/0x1+-parseInt(_0xc04039(0x84))/0x2*(-parseInt(_0xc04039(0x8d))/0x3)+parseInt(_0xc04039(0x8b))/0x4+parseInt(_0xc04039(0x80))/0x5*(-parseInt(_0xc04039(0x83))/0x6)+parseInt(_0xc04039(0x7e))/0x7+parseInt(_0xc04039(0x79))/0x8+parseInt(_0xc04039(0x7d))/0x9*(-parseInt(_0xc04039(0x78))/0xa);if(_0x398e47===_0x40f290)break;else _0x15d729['push'](_0x15d729['shift']());}catch(_0xa6a0d0){_0x15d729['push'](_0x15d729['shift']());}}}(a13_0x3f69,0x66bb7));var a13_0x89f38d=(function(){var _0x3a95b4=!![];return function(_0x2e3984,_0x46c011){var _0x307baa=_0x3a95b4?function(){var _0x162f29=a13_0x464a;if(_0x46c011){var _0x42f0e7=_0x46c011[_0x162f29(0x87)](_0x2e3984,arguments);return _0x46c011=null,_0x42f0e7;}}:function(){};return _0x3a95b4=![],_0x307baa;};}()),a13_0x59fa59=a13_0x89f38d(this,function(){var _0x1c9a98=a13_0x464a;return a13_0x59fa59[_0x1c9a98(0x86)]()[_0x1c9a98(0x85)]('(((.+)+)+)+$')[_0x1c9a98(0x86)]()[_0x1c9a98(0x88)](a13_0x59fa59)[_0x1c9a98(0x85)]('(((.+)+)+)+$');});a13_0x59fa59();function a13_0x464a(_0x344458,_0x311946){var _0x4df177=a13_0x3f69();return a13_0x464a=function(_0x59fa59,_0x89f38d){_0x59fa59=_0x59fa59-0x78;var _0x3f694e=_0x4df177[_0x59fa59];return _0x3f694e;},a13_0x464a(_0x344458,_0x311946);}'use strict';Object[a13_0xfcff95(0x8a)](exports,a13_0xfcff95(0x7a),{'value':!![]}),exports[a13_0xfcff95(0x89)]=exports['APPSCONFIG_KEY']=exports[a13_0xfcff95(0x82)]=exports[a13_0xfcff95(0x7f)]=void 0x0,exports[a13_0xfcff95(0x7f)]=a13_0xfcff95(0x8c),exports['ACTION_ROUTE_KEY']='anncic-api:action:route',exports[a13_0xfcff95(0x81)]=a13_0xfcff95(0x7b);class AppsConfigTmp{}function a13_0x3f69(){var _0x2e7b99=['45SVSpQh','3711288vwROOb','ACTION_KEY','3822385ECZHKp','APPSCONFIG_KEY','ACTION_ROUTE_KEY','6sODppX','4362AFCyig','search','toString','apply','constructor','AppsConfigTmp','defineProperty','792936lMTnpc','anncic-api:action','498oeSvqV','164610MqlTkA','2892888aVpqnV','__esModule','anncic-api:apps:config','184502DnBOHN'];a13_0x3f69=function(){return _0x2e7b99;};return a13_0x3f69();}exports[a13_0xfcff95(0x89)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x108806=a14_0x4cf3;(function(_0x5d4062,_0x14504d){var _0x9121e6=a14_0x4cf3,_0x2ac6e7=_0x5d4062();while(!![]){try{var _0x1d7b6e=-parseInt(_0x9121e6(0x9d))/0x1*(parseInt(_0x9121e6(0x91))/0x2)+-parseInt(_0x9121e6(0xa2))/0x3*(parseInt(_0x9121e6(0x96))/0x4)+-parseInt(_0x9121e6(0xac))/0x5+parseInt(_0x9121e6(0x86))/0x6*(-parseInt(_0x9121e6(0x9e))/0x7)+parseInt(_0x9121e6(0x92))/0x8+-parseInt(_0x9121e6(0x8f))/0x9*(parseInt(_0x9121e6(0xab))/0xa)+parseInt(_0x9121e6(0x94))/0xb;if(_0x1d7b6e===_0x14504d)break;else _0x2ac6e7['push'](_0x2ac6e7['shift']());}catch(_0x4061c6){_0x2ac6e7['push'](_0x2ac6e7['shift']());}}}(a14_0x2294,0xc6f3e));function a14_0x4cf3(_0x5b3f28,_0x327004){var _0x109d0d=a14_0x2294();return a14_0x4cf3=function(_0x49d780,_0x30504e){_0x49d780=_0x49d780-0x86;var _0x229441=_0x109d0d[_0x49d780];return _0x229441;},a14_0x4cf3(_0x5b3f28,_0x327004);}var a14_0x30504e=(function(){var _0x223206=!![];return function(_0x2cdcf7,_0x4cfb21){var _0x40584b=_0x223206?function(){var _0x1546b3=a14_0x4cf3;if(_0x4cfb21){var _0x410cc5=_0x4cfb21[_0x1546b3(0xad)](_0x2cdcf7,arguments);return _0x4cfb21=null,_0x410cc5;}}:function(){};return _0x223206=![],_0x40584b;};}()),a14_0x49d780=a14_0x30504e(this,function(){var _0x575331=a14_0x4cf3;return a14_0x49d780['toString']()[_0x575331(0x89)](_0x575331(0xa3))[_0x575331(0xa7)]()[_0x575331(0x95)](a14_0x49d780)['search']('(((.+)+)+)+$');});a14_0x49d780();'use strict';var __decorate=this&&this[a14_0x108806(0x87)]||function(_0x5480b9,_0x3d0222,_0x59dd00,_0x19a318){var _0x11bb57=a14_0x108806,_0x51a7d3=arguments[_0x11bb57(0xa4)],_0xc13b9=_0x51a7d3<0x3?_0x3d0222:_0x19a318===null?_0x19a318=Object[_0x11bb57(0x90)](_0x3d0222,_0x59dd00):_0x19a318,_0x2a9702;if(typeof Reflect==='object'&&typeof Reflect[_0x11bb57(0xa8)]===_0x11bb57(0xa6))_0xc13b9=Reflect[_0x11bb57(0xa8)](_0x5480b9,_0x3d0222,_0x59dd00,_0x19a318);else{for(var _0x17a23c=_0x5480b9['length']-0x1;_0x17a23c>=0x0;_0x17a23c--)if(_0x2a9702=_0x5480b9[_0x17a23c])_0xc13b9=(_0x51a7d3<0x3?_0x2a9702(_0xc13b9):_0x51a7d3>0x3?_0x2a9702(_0x3d0222,_0x59dd00,_0xc13b9):_0x2a9702(_0x3d0222,_0x59dd00))||_0xc13b9;}return _0x51a7d3>0x3&&_0xc13b9&&Object[_0x11bb57(0x9a)](_0x3d0222,_0x59dd00,_0xc13b9),_0xc13b9;},__metadata=this&&this['__metadata']||function(_0x578226,_0x2a6273){var _0x499366=a14_0x108806;if(typeof Reflect===_0x499366(0x8d)&&typeof Reflect[_0x499366(0x9c)]===_0x499366(0xa6))return Reflect['metadata'](_0x578226,_0x2a6273);};Object[a14_0x108806(0x9a)](exports,a14_0x108806(0x8c),{'value':!![]}),exports[a14_0x108806(0x93)]=void 0x0;const validator_1=require(a14_0x108806(0x8b));function a14_0x2294(){var _0x5507b9=['2532845TfcQrC','_isreverse','trim','integer','294CzkfGx','(((.+)+)+)+$','length','min','function','toString','decorate','Rule','number','170dpbuEp','6522225pojMir','apply','分页数量','18OPPYTz','__decorate','排序方式','search','prototype','@anncic-api/validator','__esModule','object','design:type','760959BcLxSp','getOwnPropertyDescriptor','8VtUCKK','8418056MokXli','PageDTO','61942056bcUIYa','constructor','24484ErOzxI','1:是;0:否','_size','_order','defineProperty','RuleType','metadata','360317ZqErYj'];a14_0x2294=function(){return _0x5507b9;};return a14_0x2294();}class PageDTO{}exports[a14_0x108806(0x93)]=PageDTO,__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a14_0x108806(0x9b)]['number']()[a14_0x108806(0xa1)]()[a14_0x108806(0xa5)](0x1),'第一页为1,第二页为2'),__metadata(a14_0x108806(0x8e),Number)],PageDTO[a14_0x108806(0x8a)],'_page',void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x108806(0xae),validator_1[a14_0x108806(0x9b)][a14_0x108806(0xaa)]()[a14_0x108806(0xa1)]()[a14_0x108806(0xa5)](0x1)),__metadata(a14_0x108806(0x8e),Number)],PageDTO[a14_0x108806(0x8a)],a14_0x108806(0x98),void 0x0),__decorate([(0x0,validator_1[a14_0x108806(0xa9)])(a14_0x108806(0x88),validator_1['RuleType']['string']()[a14_0x108806(0xa0)]()),__metadata('design:type',String)],PageDTO['prototype'],a14_0x108806(0x99),void 0x0),__decorate([(0x0,validator_1['Rule'])('是否倒序',validator_1['RuleType'][a14_0x108806(0xaa)]()[a14_0x108806(0xa1)]()['valid'](0x0,0x1),a14_0x108806(0x97)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0x108806(0x9f),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a15_0x11b5(){var _0x174a2b=['defineProperty','__esModule','INTERCEPT_KEY','4164wrBCGx','3858cIwisc','8ZWtOAQ','toString','378KkXmQt','773095CKKzmP','102982QCBtxe','search','anncic-api:intercept','InterceptTargetTmp','97TflWaV','(((.+)+)+)+$','8901756ESesNL','142032qJvTjR','597570SJTVJi','108LoqBlP','30nPpLbl','constructor'];a15_0x11b5=function(){return _0x174a2b;};return a15_0x11b5();}function a15_0x168e(_0xc6fac8,_0x4b01a0){var _0xfb8800=a15_0x11b5();return a15_0x168e=function(_0xbd3d13,_0x485bc6){_0xbd3d13=_0xbd3d13-0x117;var _0x11b59e=_0xfb8800[_0xbd3d13];return _0x11b59e;},a15_0x168e(_0xc6fac8,_0x4b01a0);}var a15_0x4a370e=a15_0x168e;(function(_0x390166,_0x594c93){var _0x4b574d=a15_0x168e,_0x2ab09c=_0x390166();while(!![]){try{var _0x56e40a=parseInt(_0x4b574d(0x122))/0x1*(parseInt(_0x4b574d(0x119))/0x2)+-parseInt(_0x4b574d(0x126))/0x3+parseInt(_0x4b574d(0x11a))/0x4*(-parseInt(_0x4b574d(0x11d))/0x5)+parseInt(_0x4b574d(0x118))/0x6*(-parseInt(_0x4b574d(0x11c))/0x7)+parseInt(_0x4b574d(0x125))/0x8*(-parseInt(_0x4b574d(0x127))/0x9)+-parseInt(_0x4b574d(0x128))/0xa*(-parseInt(_0x4b574d(0x11e))/0xb)+parseInt(_0x4b574d(0x124))/0xc;if(_0x56e40a===_0x594c93)break;else _0x2ab09c['push'](_0x2ab09c['shift']());}catch(_0x579734){_0x2ab09c['push'](_0x2ab09c['shift']());}}}(a15_0x11b5,0x305ac));var a15_0x485bc6=(function(){var _0x50615c=!![];return function(_0x390087,_0x901e45){var _0x3cc826=_0x50615c?function(){if(_0x901e45){var _0x448e3d=_0x901e45['apply'](_0x390087,arguments);return _0x901e45=null,_0x448e3d;}}:function(){};return _0x50615c=![],_0x3cc826;};}()),a15_0xbd3d13=a15_0x485bc6(this,function(){var _0x23d22b=a15_0x168e;return a15_0xbd3d13['toString']()[_0x23d22b(0x11f)]('(((.+)+)+)+$')[_0x23d22b(0x11b)]()[_0x23d22b(0x129)](a15_0xbd3d13)[_0x23d22b(0x11f)](_0x23d22b(0x123));});a15_0xbd3d13();'use strict';Object[a15_0x4a370e(0x12a)](exports,a15_0x4a370e(0x12b),{'value':!![]}),exports[a15_0x4a370e(0x121)]=exports[a15_0x4a370e(0x117)]=void 0x0,exports['INTERCEPT_KEY']=a15_0x4a370e(0x120);class InterceptTargetTmp{}exports[a15_0x4a370e(0x121)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.3.
|
|
21
|
-
"@anncic-api/core": "^3.3.
|
|
22
|
-
"@anncic-api/event": "^3.3.
|
|
23
|
-
"@anncic-api/typeorm": "^3.3.
|
|
24
|
-
"@anncic-api/validator": "^3.3.
|
|
20
|
+
"@anncic-api/cache": "^3.3.3",
|
|
21
|
+
"@anncic-api/core": "^3.3.3",
|
|
22
|
+
"@anncic-api/event": "^3.3.3",
|
|
23
|
+
"@anncic-api/typeorm": "^3.3.3",
|
|
24
|
+
"@anncic-api/validator": "^3.3.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.3.
|
|
29
|
+
"anncic-apihelper": "^3.3.3",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "3eb67713dcb0596094f0a22712a0c8aa4dc3032a"
|
|
39
39
|
}
|