anncic-api 1.4.38 → 1.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.d.ts +5 -0
- package/dist/decorator/Intercept.js +1 -0
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.d.ts +1 -0
- 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.d.ts +3 -0
- package/dist/types/intercept.js +1 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x29a080=a0_0x11e8;function a0_0x11e8(_0x419616,_0x3a2de5){var _0x58c88d=a0_0x5045();return a0_0x11e8=function(_0x25c80b,_0x14f149){_0x25c80b=_0x25c80b-0x1a6;var _0x504582=_0x58c88d[_0x25c80b];return _0x504582;},a0_0x11e8(_0x419616,_0x3a2de5);}(function(_0x351113,_0x97fc4e){var _0x35879e=a0_0x11e8,_0x905de5=_0x351113();while(!![]){try{var _0x53a5f8=parseInt(_0x35879e(0x1a6))/0x1+-parseInt(_0x35879e(0x1ae))/0x2*(-parseInt(_0x35879e(0x1b0))/0x3)+parseInt(_0x35879e(0x1bb))/0x4+-parseInt(_0x35879e(0x1ac))/0x5*(parseInt(_0x35879e(0x1bd))/0x6)+parseInt(_0x35879e(0x1b8))/0x7+parseInt(_0x35879e(0x1b7))/0x8*(-parseInt(_0x35879e(0x1be))/0x9)+-parseInt(_0x35879e(0x1ad))/0xa;if(_0x53a5f8===_0x97fc4e)break;else _0x905de5['push'](_0x905de5['shift']());}catch(_0x3c8778){_0x905de5['push'](_0x905de5['shift']());}}}(a0_0x5045,0xa8121));var a0_0x14f149=(function(){var _0x4edbad=!![];return function(_0x3b3f04,_0x26ed33){var _0x2ab8e9=_0x4edbad?function(){if(_0x26ed33){var _0x34878b=_0x26ed33['apply'](_0x3b3f04,arguments);return _0x26ed33=null,_0x34878b;}}:function(){};return _0x4edbad=![],_0x2ab8e9;};}()),a0_0x25c80b=a0_0x14f149(this,function(){var _0x5693fc=a0_0x11e8;return a0_0x25c80b[_0x5693fc(0x1bc)]()['search']('(((.+)+)+)+$')[_0x5693fc(0x1bc)]()['constructor'](a0_0x25c80b)[_0x5693fc(0x1ba)](_0x5693fc(0x1a9));});a0_0x25c80b();'use strict';function a0_0x5045(){var _0x22279f=['dhauo1234420123gg3234901','__esModule','/runtime/.upload','16024hEzDSx','5739930GPyprz','default','search','1708424qfGRYG','toString','604188rnmrMz','3717BswCBY','46082gaCugA','zhiulanuiy7892387985hnoi','text','(((.+)+)+)+$','xml','20mb','25OJiJxn','4895990emQGZs','774lcCHSk','appDir','9423fLDcaz','json','form','name'];a0_0x5045=function(){return _0x22279f;};return a0_0x5045();}Object['defineProperty'](exports,a0_0x29a080(0x1b5),{'value':!![]}),exports[a0_0x29a080(0x1b9)]=_0x163c7d=>{var _0xfefb95=a0_0x29a080;return{'apitest':!![],'keys':_0x163c7d[_0xfefb95(0x1b3)],'anncicapi':{'password':_0xfefb95(0x1a7),'devices':{'DEFAULT':{'secret':_0xfefb95(0x1b4),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0xfefb95(0x1b1),_0xfefb95(0x1b2),_0xfefb95(0x1a8),_0xfefb95(0x1aa)],'formLimit':_0xfefb95(0x1ab),'jsonLimit':_0xfefb95(0x1ab),'textLimit':_0xfefb95(0x1ab),'xmlLimit':_0xfefb95(0x1ab)},'upload':{'tmpdir':_0x163c7d[_0xfefb95(0x1af)]+_0xfefb95(0x1b6),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x447d4e=a1_0x47ae;(function(_0x3ba3bc,_0x391354){var _0x325864=a1_0x47ae,_0x533196=_0x3ba3bc();while(!![]){try{var _0x55343b=parseInt(_0x325864(0x1c6))/0x1*(parseInt(_0x325864(0x1c0))/0x2)+-parseInt(_0x325864(0x1ce))/0x3+-parseInt(_0x325864(0x1cb))/0x4+-parseInt(_0x325864(0x1cf))/0x5+parseInt(_0x325864(0x1c5))/0x6+parseInt(_0x325864(0x1c2))/0x7*(-parseInt(_0x325864(0x1c7))/0x8)+-parseInt(_0x325864(0x1c1))/0x9*(-parseInt(_0x325864(0x1c4))/0xa);if(_0x55343b===_0x391354)break;else _0x533196['push'](_0x533196['shift']());}catch(_0x53c6d3){_0x533196['push'](_0x533196['shift']());}}}(a1_0x13b9,0xdf6b4));function a1_0x13b9(){var _0x112a66=['15420jMPDte','8781885ypypcg','3459472ZgLgGK','11871THGTQF','24227NGWpoS','search','12590pOQNRQ','8047356mUVggL','1doUOqm','3152gAFEKV','constructor','apply','toString','2765232GCKYhO','(((.+)+)+)+$','__esModule'];a1_0x13b9=function(){return _0x112a66;};return a1_0x13b9();}var a1_0x393a88=(function(){var _0x2b06cf=!![];return function(_0x111544,_0x37cd25){var _0x1c62d1=_0x2b06cf?function(){var _0x35fb04=a1_0x47ae;if(_0x37cd25){var _0x6df4d4=_0x37cd25[_0x35fb04(0x1c9)](_0x111544,arguments);return _0x37cd25=null,_0x6df4d4;}}:function(){};return _0x2b06cf=![],_0x1c62d1;};}()),a1_0x483cfd=a1_0x393a88(this,function(){var _0x4e40eb=a1_0x47ae;return a1_0x483cfd[_0x4e40eb(0x1ca)]()['search'](_0x4e40eb(0x1cc))['toString']()[_0x4e40eb(0x1c8)](a1_0x483cfd)[_0x4e40eb(0x1c3)](_0x4e40eb(0x1cc));});a1_0x483cfd();function a1_0x47ae(_0x532ca7,_0x4f06d5){var _0x131fec=a1_0x13b9();return a1_0x47ae=function(_0x483cfd,_0x393a88){_0x483cfd=_0x483cfd-0x1c0;var _0x13b99d=_0x131fec[_0x483cfd];return _0x13b99d;},a1_0x47ae(_0x532ca7,_0x4f06d5);}'use strict';Object['defineProperty'](exports,a1_0x447d4e(0x1cd),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x2760e8=a2_0x20cf;(function(_0x3d76c3,_0x5d2557){const _0x1ecbd5=a2_0x20cf,_0x34d6c0=_0x3d76c3();while(!![]){try{const _0x530211=parseInt(_0x1ecbd5(0x19e))/0x1+parseInt(_0x1ecbd5(0x180))/0x2+parseInt(_0x1ecbd5(0x1b9))/0x3+parseInt(_0x1ecbd5(0x18d))/0x4*(parseInt(_0x1ecbd5(0x1a5))/0x5)+-parseInt(_0x1ecbd5(0x1c8))/0x6*(-parseInt(_0x1ecbd5(0x1b2))/0x7)+-parseInt(_0x1ecbd5(0x15d))/0x8*(-parseInt(_0x1ecbd5(0x19a))/0x9)+-parseInt(_0x1ecbd5(0x167))/0xa;if(_0x530211===_0x5d2557)break;else _0x34d6c0['push'](_0x34d6c0['shift']());}catch(_0x2d423b){_0x34d6c0['push'](_0x34d6c0['shift']());}}}(a2_0x1445,0x31912));const a2_0x19a848=(function(){let _0x4a3eba=!![];return function(_0x3da747,_0x293412){const _0x14fb3a=_0x4a3eba?function(){if(_0x293412){const _0x4887a7=_0x293412['apply'](_0x3da747,arguments);return _0x293412=null,_0x4887a7;}}:function(){};return _0x4a3eba=![],_0x14fb3a;};}()),a2_0x1b5689=a2_0x19a848(this,function(){const _0x3376ea=a2_0x20cf;return a2_0x1b5689[_0x3376ea(0x18c)]()[_0x3376ea(0x1b0)](_0x3376ea(0x163))[_0x3376ea(0x18c)]()[_0x3376ea(0x196)](a2_0x1b5689)[_0x3376ea(0x1b0)](_0x3376ea(0x163));});a2_0x1b5689();'use strict';var __decorate=this&&this[a2_0x2760e8(0x1b6)]||function(_0x4829f8,_0x2d0b14,_0x154a72,_0x3d9806){const _0x448ade=a2_0x2760e8;var _0x190c31=arguments[_0x448ade(0x173)],_0x3fc13f=_0x190c31<0x3?_0x2d0b14:_0x3d9806===null?_0x3d9806=Object[_0x448ade(0x184)](_0x2d0b14,_0x154a72):_0x3d9806,_0x4cdbb5;if(typeof Reflect==='object'&&typeof Reflect[_0x448ade(0x189)]===_0x448ade(0x1a0))_0x3fc13f=Reflect['decorate'](_0x4829f8,_0x2d0b14,_0x154a72,_0x3d9806);else{for(var _0x2ae29d=_0x4829f8[_0x448ade(0x173)]-0x1;_0x2ae29d>=0x0;_0x2ae29d--)if(_0x4cdbb5=_0x4829f8[_0x2ae29d])_0x3fc13f=(_0x190c31<0x3?_0x4cdbb5(_0x3fc13f):_0x190c31>0x3?_0x4cdbb5(_0x2d0b14,_0x154a72,_0x3fc13f):_0x4cdbb5(_0x2d0b14,_0x154a72))||_0x3fc13f;}return _0x190c31>0x3&&_0x3fc13f&&Object['defineProperty'](_0x2d0b14,_0x154a72,_0x3fc13f),_0x3fc13f;},__metadata=this&&this[a2_0x2760e8(0x174)]||function(_0x4bc838,_0x4ea426){const _0x170386=a2_0x2760e8;if(typeof Reflect===_0x170386(0x1ba)&&typeof Reflect['metadata']===_0x170386(0x1a0))return Reflect[_0x170386(0x16b)](_0x4bc838,_0x4ea426);};function a2_0x20cf(_0x51001a,_0x4c92b8){const _0x325dbe=a2_0x1445();return a2_0x20cf=function(_0x1b5689,_0x19a848){_0x1b5689=_0x1b5689-0x15b;let _0x144590=_0x325dbe[_0x1b5689];return _0x144590;},a2_0x20cf(_0x51001a,_0x4c92b8);}Object[a2_0x2760e8(0x1ad)](exports,a2_0x2760e8(0x1b1),{'value':!![]}),exports[a2_0x2760e8(0x1cc)]=void 0x0;const core_1=require(a2_0x2760e8(0x1c5)),core_2=require(a2_0x2760e8(0x1c5)),ApiError_1=require(a2_0x2760e8(0x179)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x2760e8(0x1c1)),fs=require('fs'),koasend=require('koa-send'),koa=require('@midwayjs/koa'),i18n=require(a2_0x2760e8(0x198)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x2760e8(0x177)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x2760e8(0x164)),ConfigProduction=require(a2_0x2760e8(0x171)),anncic=require(a2_0x2760e8(0x1c0)),anncicCache=require(a2_0x2760e8(0x1bb)),anncicEvent=require(a2_0x2760e8(0x188)),anncicTypeorm=require(a2_0x2760e8(0x191)),anncicValidator=require(a2_0x2760e8(0x17c)),anncicHelper=require(a2_0x2760e8(0x1be));let CustomConfiguration=class CustomConfiguration{async[a2_0x2760e8(0x1a7)](){const _0x2f5658=a2_0x2760e8;await this[_0x2f5658(0x19b)](),await this['loggerConfig'](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x2f5658(0x15c)]();}async[a2_0x2760e8(0x187)](){}async[a2_0x2760e8(0x1ca)](){const _0x220417=a2_0x2760e8,_0x1ae29b=this['config'][_0x220417(0x1b8)]();this['decorator'][_0x220417(0x16c)](action_1[_0x220417(0x1cd)],_0x454a90=>{const _0x3f7f40=_0x220417,_0xca52f0=_0x454a90[_0x3f7f40(0x16b)];return{'before':async _0x139004=>{const _0x5891c2=_0x3f7f40;var _0x19de3c,_0x37f10e;const _0x2b8ace=(_0x19de3c=_0x139004===null||_0x139004===void 0x0?void 0x0:_0x139004['target'])===null||_0x19de3c===void 0x0?void 0x0:_0x19de3c[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x2b8ace&&(_0xca52f0===null||_0xca52f0===void 0x0?void 0x0:_0xca52f0[_0x5891c2(0x1af)])){if(!this[_0x5891c2(0x1b3)][_0x5891c2(0x19d)]((_0x37f10e=_0x2b8ace===null||_0x2b8ace===void 0x0?void 0x0:_0x2b8ace[_0x5891c2(0x1ae)])===null||_0x37f10e===void 0x0?void 0x0:_0x37f10e[_0x5891c2(0x18f)]))throw new AnnError(ApiError_1[_0x5891c2(0x17d)]['HEADERS_SIGNATURE']);}},'around':async _0x32324a=>{const _0x5aaf1e=_0x3f7f40;var _0x5b605a,_0x2e07b7,_0x3ffc74,_0x4a7c82,_0x463c7b;const _0x2faab5=(_0x5b605a=_0x32324a===null||_0x32324a===void 0x0?void 0x0:_0x32324a[_0x5aaf1e(0x197)])===null||_0x5b605a===void 0x0?void 0x0:_0x5b605a[core_2[_0x5aaf1e(0x1c4)]];if(_0x2faab5&&(_0xca52f0===null||_0xca52f0===void 0x0?void 0x0:_0xca52f0['apimit'])&&((_0xca52f0===null||_0xca52f0===void 0x0?void 0x0:_0xca52f0[_0x5aaf1e(0x1c6)])||typeof(_0xca52f0===null||_0xca52f0===void 0x0?void 0x0:_0xca52f0[_0x5aaf1e(0x1c6)])=='undefined')){if(((_0x2e07b7=_0x2faab5[_0x5aaf1e(0x18f)])===null||_0x2e07b7===void 0x0?void 0x0:_0x2e07b7[_0x5aaf1e(0x1a6)])&&((_0x463c7b=(_0x4a7c82=(_0x3ffc74=_0x1ae29b===null||_0x1ae29b===void 0x0?void 0x0:_0x1ae29b[_0x5aaf1e(0x1a1)])===null||_0x3ffc74===void 0x0?void 0x0:_0x3ffc74['devices'])===null||_0x4a7c82===void 0x0?void 0x0:_0x4a7c82[_0x2faab5['headers'][_0x5aaf1e(0x1a6)]])===null||_0x463c7b===void 0x0?void 0x0:_0x463c7b['intercept'])){const _0x55b791=Array[_0x5aaf1e(0x18b)](_0x1ae29b[_0x5aaf1e(0x1a1)]['devices'][_0x2faab5[_0x5aaf1e(0x18f)][_0x5aaf1e(0x1a6)]][_0x5aaf1e(0x1c6)])?_0x1ae29b[_0x5aaf1e(0x1a1)][_0x5aaf1e(0x15f)][_0x2faab5['headers']['device']][_0x5aaf1e(0x1c6)]:[_0x1ae29b[_0x5aaf1e(0x1a1)][_0x5aaf1e(0x15f)][_0x2faab5[_0x5aaf1e(0x18f)][_0x5aaf1e(0x1a6)]]['intercept']];for(const _0x43d016 of _0x55b791){if(core_1[_0x5aaf1e(0x17a)][_0x5aaf1e(0x1cf)](_0x43d016)||typeof _0x43d016==_0x5aaf1e(0x172)){const _0x13ae06=await _0x2faab5['requestContext']['getAsync'](_0x43d016);typeof(_0x13ae06===null||_0x13ae06===void 0x0?void 0x0:_0x13ae06[_0x5aaf1e(0x1a8)])==_0x5aaf1e(0x1a0)&&await _0x13ae06[_0x5aaf1e(0x1a8)](typeof(_0x2faab5===null||_0x2faab5===void 0x0?void 0x0:_0x2faab5[_0x5aaf1e(0x16a)])==_0x5aaf1e(0x172)&&(_0x2faab5===null||_0x2faab5===void 0x0?void 0x0:_0x2faab5[_0x5aaf1e(0x1ac)])?_0x2faab5[_0x5aaf1e(0x16a)]['toLowerCase']()+'@'+(_0x2faab5===null||_0x2faab5===void 0x0?void 0x0:_0x2faab5[_0x5aaf1e(0x1ac)]):undefined,_0x2faab5,_0xca52f0);}else core_1['Types'][_0x5aaf1e(0x183)](_0x43d016)&&await _0x43d016(typeof(_0x2faab5===null||_0x2faab5===void 0x0?void 0x0:_0x2faab5[_0x5aaf1e(0x16a)])==_0x5aaf1e(0x172)&&(_0x2faab5===null||_0x2faab5===void 0x0?void 0x0:_0x2faab5[_0x5aaf1e(0x1ac)])?_0x2faab5[_0x5aaf1e(0x16a)]['toLowerCase']()+'@'+(_0x2faab5===null||_0x2faab5===void 0x0?void 0x0:_0x2faab5[_0x5aaf1e(0x1ac)]):undefined,_0x2faab5,_0xca52f0);}}}return await _0x32324a[_0x5aaf1e(0x182)](..._0x32324a[_0x5aaf1e(0x186)]);},'afterThrow':(_0x55dc3b,_0x547f57)=>{throw _0x547f57;}};});}async['hanlderApplications'](){const _0x530d71=a2_0x2760e8;this[_0x530d71(0x1bf)][_0x530d71(0x1ce)]([_0x530d71(0x181)])[_0x530d71(0x19c)](_0x1e5489=>{const _0x10e1ea=_0x530d71;(_0x1e5489===null||_0x1e5489===void 0x0?void 0x0:_0x1e5489['context'])&&Object[_0x10e1ea(0x169)](_0x1e5489[_0x10e1ea(0x1a4)],{'ok':{'value':function(_0x10369d,_0x384b65,_0x5deac7=0x0){return{'code':_0x5deac7,'data':_0x10369d,'extra':_0x384b65};}},'input':{'value':function(_0x16f19c,_0x5cda66){const _0x5d4526=_0x10e1ea;var _0x2c234b;const _0x315a78=lodash[_0x5d4526(0x170)]({},this[_0x5d4526(0x1ae)]['body']||this[_0x5d4526(0x1ae)][((_0x2c234b=config===null||config===void 0x0?void 0x0:config[_0x5d4526(0x1aa)])===null||_0x2c234b===void 0x0?void 0x0:_0x2c234b[_0x5d4526(0x16d)])||_0x5d4526(0x1bd)]||{},this[_0x5d4526(0x1ae)][_0x5d4526(0x16f)]||{});return _0x16f19c?lodash[_0x5d4526(0x193)](_0x315a78,_0x16f19c,_0x5cda66):_0x315a78;}},'when':{'value':async function(_0x48f5d9,_0x2a77f8){const _0x3a7ded=_0x10e1ea,_0x4aa9f9=this[_0x3a7ded(0x192)](_0x48f5d9,null);if(!lodash['isNull'](_0x4aa9f9))return await _0x2a77f8(_0x4aa9f9);}},'only':{'value':function(_0x4ff12c){const _0x4db301=_0x10e1ea,_0x2b2c5d={};for(let _0x167bb4=0x0;_0x167bb4<_0x4ff12c[_0x4db301(0x173)];_0x167bb4++){lodash[_0x4db301(0x18b)](_0x4ff12c[_0x167bb4])&&_0x4ff12c[_0x167bb4][_0x4db301(0x173)]>0x0&&lodash[_0x4db301(0x1a3)](_0x4ff12c[_0x167bb4][0x0])&&(_0x2b2c5d[_0x4ff12c[_0x167bb4][0x0]]=this[_0x4db301(0x192)](_0x4ff12c[_0x167bb4][0x0],_0x4ff12c[_0x167bb4][_0x4db301(0x173)]>0x1?_0x4ff12c[_0x167bb4][0x1]:null));}return _0x2b2c5d;}},'koasend':{'value':function(_0x2c901e,_0x1b2880){const _0x5935f0=_0x10e1ea;if(!fs[_0x5935f0(0x176)](this[_0x5935f0(0x178)][_0x5935f0(0x168)]()+'/'+_0x2c901e))return'文件不存在';return this['attachment'](_0x1b2880||_0x2c901e),koasend(this,_0x2c901e);}}});});}async['loggerConfig'](){const _0x3445ea=a2_0x2760e8;var _0x29a395,_0x29304f;if(fs['existsSync'](this[_0x3445ea(0x178)]['getBaseDir']()+'/apps')&&fs[_0x3445ea(0x1ab)](this['app'][_0x3445ea(0x19f)]()+_0x3445ea(0x1c3))[_0x3445ea(0x1c9)]()){const _0x4e8ed2=this[_0x3445ea(0x161)][_0x3445ea(0x1b8)](),_0x18de11=((_0x29a395=_0x4e8ed2===null||_0x4e8ed2===void 0x0?void 0x0:_0x4e8ed2[_0x3445ea(0x160)])===null||_0x29a395===void 0x0?void 0x0:_0x29a395[_0x3445ea(0x195)])||{};for(const _0x55f0b1 of fs[_0x3445ea(0x1c2)](this[_0x3445ea(0x178)][_0x3445ea(0x19f)]()+_0x3445ea(0x1c3))){if(!fs[_0x3445ea(0x1ab)](this[_0x3445ea(0x178)][_0x3445ea(0x19f)]()+'/apps/'+_0x55f0b1)['isDirectory']())continue;if(_0x18de11===null||_0x18de11===void 0x0?void 0x0:_0x18de11[_0x55f0b1])continue;_0x18de11[_0x55f0b1]=Object[_0x3445ea(0x16e)]({},((_0x29304f=_0x4e8ed2===null||_0x4e8ed2===void 0x0?void 0x0:_0x4e8ed2[_0x3445ea(0x160)])===null||_0x29304f===void 0x0?void 0x0:_0x29304f['default'])||{'maxSize':'1m','dir':this[_0x3445ea(0x178)]['getAppDir']()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x3445ea(0x1bc)]['isDevelopmentEnvironment'](),'fileLogName':_0x55f0b1+'.log','dir':this[_0x3445ea(0x178)][_0x3445ea(0x168)]()+_0x3445ea(0x1b5)+_0x55f0b1+_0x3445ea(0x1c7)});}Object[_0x3445ea(0x190)](_0x18de11)[_0x3445ea(0x173)]>0x0&&(!_0x4e8ed2[_0x3445ea(0x160)]&&(_0x4e8ed2[_0x3445ea(0x160)]={'default':{'maxSize':'1m','dir':this['app'][_0x3445ea(0x168)]()+'/runtime'}}),_0x4e8ed2['midwayLogger'][_0x3445ea(0x195)]=_0x18de11),this[_0x3445ea(0x161)]['addObject'](_0x4e8ed2);}}async[a2_0x2760e8(0x19b)](){const _0x16c2b8=a2_0x2760e8;var _0x2a7772,_0x5a4c76,_0x4a34d8,_0x547fb0,_0x2005c5,_0x2bae04;const _0x20cc1b=this[_0x16c2b8(0x161)][_0x16c2b8(0x1b8)]();((_0x5a4c76=(_0x2a7772=_0x20cc1b===null||_0x20cc1b===void 0x0?void 0x0:_0x20cc1b[_0x16c2b8(0x1a1)])===null||_0x2a7772===void 0x0?void 0x0:_0x2a7772[_0x16c2b8(0x15f)])===null||_0x5a4c76===void 0x0?void 0x0:_0x5a4c76['DEFAULT'])&&Object[_0x16c2b8(0x190)](_0x20cc1b[_0x16c2b8(0x1a1)]['devices'])['length']>0x1&&delete _0x20cc1b[_0x16c2b8(0x1a1)][_0x16c2b8(0x15f)][_0x16c2b8(0x199)];if((_0x4a34d8=_0x20cc1b===null||_0x20cc1b===void 0x0?void 0x0:_0x20cc1b[_0x16c2b8(0x1a9)])===null||_0x4a34d8===void 0x0?void 0x0:_0x4a34d8[_0x16c2b8(0x1b4)])for(const _0x14ed44 in _0x20cc1b[_0x16c2b8(0x1a9)][_0x16c2b8(0x1b4)]){((_0x547fb0=_0x20cc1b[_0x16c2b8(0x1a9)]['dirs'][_0x14ed44])===null||_0x547fb0===void 0x0?void 0x0:_0x547fb0[_0x16c2b8(0x18e)])&&typeof((_0x2005c5=_0x20cc1b[_0x16c2b8(0x1a9)][_0x16c2b8(0x1b4)][_0x14ed44])===null||_0x2005c5===void 0x0?void 0x0:_0x2005c5[_0x16c2b8(0x18e)])=='string'&&!fs['existsSync'](_0x20cc1b[_0x16c2b8(0x1a9)][_0x16c2b8(0x1b4)][_0x14ed44]['dir'])&&(fs[_0x16c2b8(0x166)](_0x20cc1b[_0x16c2b8(0x1a9)][_0x16c2b8(0x1b4)][_0x14ed44][_0x16c2b8(0x18e)],{'recursive':!![]}),console[_0x16c2b8(0x165)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x20cc1b[_0x16c2b8(0x1a9)][_0x16c2b8(0x1b4)][_0x14ed44][_0x16c2b8(0x18e)]));}((_0x2bae04=_0x20cc1b===null||_0x20cc1b===void 0x0?void 0x0:_0x20cc1b[_0x16c2b8(0x18a)])===null||_0x2bae04===void 0x0?void 0x0:_0x2bae04[_0x16c2b8(0x15e)])&&!fs[_0x16c2b8(0x176)](_0x20cc1b[_0x16c2b8(0x18a)][_0x16c2b8(0x15e)])&&(fs[_0x16c2b8(0x166)](_0x20cc1b[_0x16c2b8(0x18a)][_0x16c2b8(0x15e)],{'recursive':!![]}),console[_0x16c2b8(0x165)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x20cc1b[_0x16c2b8(0x18a)][_0x16c2b8(0x15e)])),this[_0x16c2b8(0x161)][_0x16c2b8(0x17e)](_0x20cc1b);}};function a2_0x1445(){const _0x1d32f2=['Inject','hanlderApplications','867392fdqnpU','tmpdir','devices','midwayLogger','config','MidwayEnvironmentService','(((.+)+)+)+$','./config/config.default','log','mkdirSync','7677190OcLxaL','getAppDir','defineProperties','method','metadata','registerMethodHandler','key','assign','query','defaultsDeep','./config/config.production','string','length','__metadata','prototype','existsSync','@midwayjs/static-file','app','./exception/ApiError','Types','decorator','@anncic-api/validator','ApiError','addObject','design:type','78986yZJBht','koa','proceed','isFunction','getOwnPropertyDescriptor','App','args','checkConfigKeys','@anncic-api/event','decorate','upload','isArray','toString','13524IVdHqu','dir','headers','keys','@anncic-api/typeorm','input','get','anncic-api','clients','constructor','target','@midwayjs/i18n','DEFAULT','27AoeuCK','filterConfig','forEach','checksign','85645xIKnaC','getBaseDir','function','anncicapi','MidwayApplicationManager','isString','context','140YOkOVu','device','onReady','handler','staticFile','bodyXml','statSync','_matchedRoute','defineProperty','request','apimit','search','__esModule','827617keePSe','ApiService','dirs','/runtime/apps-','__decorate','MidwayConfigService','getConfiguration','212922GxvxQZ','object','@anncic-api/cache','environment','body','anncic-apihelper','application','@anncic-api/core','./types/action','readdirSync','/apps','REQUEST_OBJ_CTX_KEY','@midwayjs/core','intercept','-log','18sCNbzx','isDirectory','handlerActionRoute','MidwayDecoratorService','CustomConfiguration','ACTION_ROUTE_KEY','getApplications','isClass'];a2_0x1445=function(){return _0x1d32f2;};return a2_0x1445();}__decorate([(0x0,core_1[a2_0x2760e8(0x185)])(),__metadata(a2_0x2760e8(0x17f),Object)],CustomConfiguration[a2_0x2760e8(0x175)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x2760e8(0x15b)])(),__metadata(a2_0x2760e8(0x17f),core_2[a2_0x2760e8(0x1b7)])],CustomConfiguration[a2_0x2760e8(0x175)],a2_0x2760e8(0x161),void 0x0),__decorate([(0x0,core_1[a2_0x2760e8(0x15b)])(),__metadata(a2_0x2760e8(0x17f),core_2[a2_0x2760e8(0x1cb)])],CustomConfiguration[a2_0x2760e8(0x175)],a2_0x2760e8(0x17b),void 0x0),__decorate([(0x0,core_1[a2_0x2760e8(0x15b)])(),__metadata(a2_0x2760e8(0x17f),core_2[a2_0x2760e8(0x1a2)])],CustomConfiguration[a2_0x2760e8(0x175)],a2_0x2760e8(0x1bf),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2760e8(0x17f),core_2[a2_0x2760e8(0x162)])],CustomConfiguration[a2_0x2760e8(0x175)],a2_0x2760e8(0x1bc),void 0x0),__decorate([(0x0,core_1[a2_0x2760e8(0x15b)])(),__metadata('design:type',ApiService_1[a2_0x2760e8(0x1b3)])],CustomConfiguration[a2_0x2760e8(0x175)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2760e8(0x194),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2760e8(0x1cc)]=CustomConfiguration;
|
|
1
|
+
const a2_0x4e1743=a2_0x1db8;function a2_0x1db8(_0x3f91f8,_0x566dd6){const _0x59d13d=a2_0x52d0();return a2_0x1db8=function(_0x1a4632,_0x20e14b){_0x1a4632=_0x1a4632-0x15b;let _0x52d0f3=_0x59d13d[_0x1a4632];return _0x52d0f3;},a2_0x1db8(_0x3f91f8,_0x566dd6);}(function(_0x2f982f,_0x48aee4){const _0x2e9070=a2_0x1db8,_0x3e82c2=_0x2f982f();while(!![]){try{const _0xab89af=parseInt(_0x2e9070(0x1cd))/0x1*(-parseInt(_0x2e9070(0x1b1))/0x2)+-parseInt(_0x2e9070(0x1a5))/0x3+parseInt(_0x2e9070(0x1ae))/0x4*(-parseInt(_0x2e9070(0x1a8))/0x5)+-parseInt(_0x2e9070(0x16c))/0x6+-parseInt(_0x2e9070(0x16a))/0x7*(parseInt(_0x2e9070(0x188))/0x8)+parseInt(_0x2e9070(0x165))/0x9+parseInt(_0x2e9070(0x162))/0xa*(parseInt(_0x2e9070(0x19c))/0xb);if(_0xab89af===_0x48aee4)break;else _0x3e82c2['push'](_0x3e82c2['shift']());}catch(_0x29c9d8){_0x3e82c2['push'](_0x3e82c2['shift']());}}}(a2_0x52d0,0xa8c6c));const a2_0x20e14b=(function(){let _0x3ef31b=!![];return function(_0x435c15,_0x125fe0){const _0x13b6b9=_0x3ef31b?function(){const _0x2eca95=a2_0x1db8;if(_0x125fe0){const _0x5eab3a=_0x125fe0[_0x2eca95(0x18f)](_0x435c15,arguments);return _0x125fe0=null,_0x5eab3a;}}:function(){};return _0x3ef31b=![],_0x13b6b9;};}()),a2_0x1a4632=a2_0x20e14b(this,function(){const _0x4368ca=a2_0x1db8;return a2_0x1a4632[_0x4368ca(0x169)]()[_0x4368ca(0x16d)](_0x4368ca(0x1bf))[_0x4368ca(0x169)]()['constructor'](a2_0x1a4632)[_0x4368ca(0x16d)](_0x4368ca(0x1bf));});function a2_0x52d0(){const _0x265a4a=['getConfiguration','__metadata','length','/apps/','40uvFqkT','request','App','.log','staticFile','__esModule','@midwayjs/cross-domain','apply','Anncic-api\x20static-file\x20:\x20mkdir\x20','defineProperty','environment','isNull','mkdirSync','headers','midwayLogger','@anncic-api/cache','existsSync','@midwayjs/upload','anncicapi','config','3577860hzINXv','registerMethodHandler','./config/config.production','dirs','attachment','key','handler','MidwayConfigService','CustomConfiguration','3098127CdFQmw','decorate','getOwnPropertyDescriptor','6013135RfVAAw','dir','@midwayjs/static-file','getBaseDir','./types/action','MidwayApplicationManager','4ayCkws','string','intercept','9346ELBtkR','keys','isClass','clients','object','handlerActionRoute','@anncic-api/typeorm','Inject','getAppDir','match','statSync','isFunction','device','upload','(((.+)+)+)+$','loggerConfig','isDirectory','DEFAULT','method','requestContext','REQUEST_OBJ_CTX_KEY','metadata','get','function','forEach','design:type','anncic-apihelper','MidwayEnvironmentService','128vIjhMU','/apps','ApiService','apimit','koa-send','hanlderApplications','decorator','HEADERS_SIGNATURE','input','checksign','tmpdir','application','@midwayjs/koa','./service/ApiService','defineProperties','default','defaultsDeep','target','110DSRHMS','app','./exception/ApiError','6393978qRUBap','addObject','filterConfig','body','toString','470491QFfJQR','koa','2564694rCNshV','search','__decorate','bodyXml','checkConfigKeys','@midwayjs/i18n','Configuration','undefined','@anncic-api/core','devices','prototype','isString','toLowerCase','/runtime','isArray','@midwayjs/core','onReady','context','getAsync','Types','_matchedRoute','log','getApplications','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'];a2_0x52d0=function(){return _0x265a4a;};return a2_0x52d0();}a2_0x1a4632();'use strict';var __decorate=this&&this[a2_0x4e1743(0x16e)]||function(_0x22cd13,_0x1fd91d,_0x2adb84,_0x4c6840){const _0xb984fb=a2_0x4e1743;var _0x20f807=arguments['length'],_0x3e1891=_0x20f807<0x3?_0x1fd91d:_0x4c6840===null?_0x4c6840=Object[_0xb984fb(0x1a7)](_0x1fd91d,_0x2adb84):_0x4c6840,_0x369195;if(typeof Reflect===_0xb984fb(0x1b5)&&typeof Reflect['decorate']===_0xb984fb(0x1c8))_0x3e1891=Reflect[_0xb984fb(0x1a6)](_0x22cd13,_0x1fd91d,_0x2adb84,_0x4c6840);else{for(var _0x52ea4d=_0x22cd13[_0xb984fb(0x186)]-0x1;_0x52ea4d>=0x0;_0x52ea4d--)if(_0x369195=_0x22cd13[_0x52ea4d])_0x3e1891=(_0x20f807<0x3?_0x369195(_0x3e1891):_0x20f807>0x3?_0x369195(_0x1fd91d,_0x2adb84,_0x3e1891):_0x369195(_0x1fd91d,_0x2adb84))||_0x3e1891;}return _0x20f807>0x3&&_0x3e1891&&Object[_0xb984fb(0x191)](_0x1fd91d,_0x2adb84,_0x3e1891),_0x3e1891;},__metadata=this&&this[a2_0x4e1743(0x185)]||function(_0x18cb93,_0x3ec36a){const _0x342f68=a2_0x4e1743;if(typeof Reflect==='object'&&typeof Reflect[_0x342f68(0x1c6)]===_0x342f68(0x1c8))return Reflect['metadata'](_0x18cb93,_0x3ec36a);};Object['defineProperty'](exports,a2_0x4e1743(0x18d),{'value':!![]}),exports[a2_0x4e1743(0x1a4)]=void 0x0;const core_1=require(a2_0x4e1743(0x17b)),core_2=require(a2_0x4e1743(0x17b)),ApiError_1=require(a2_0x4e1743(0x164)),ApiService_1=require(a2_0x4e1743(0x15d)),action_1=require(a2_0x4e1743(0x1ac)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x4e1743(0x1d1)),koa=require(a2_0x4e1743(0x15c)),i18n=require(a2_0x4e1743(0x171)),upload=require(a2_0x4e1743(0x199)),staticFile=require(a2_0x4e1743(0x1aa)),crossDomain=require(a2_0x4e1743(0x18e)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x4e1743(0x19e)),anncic=require(a2_0x4e1743(0x174)),anncicCache=require(a2_0x4e1743(0x197)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x4e1743(0x1b7)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x4e1743(0x1cb));let CustomConfiguration=class CustomConfiguration{async[a2_0x4e1743(0x17c)](){const _0x30f358=a2_0x4e1743;await this[_0x30f358(0x167)](),await this[_0x30f358(0x1c0)](),await this['checkConfigKeys'](),await this[_0x30f358(0x1b6)](),await this[_0x30f358(0x1d2)]();}async[a2_0x4e1743(0x170)](){}async[a2_0x4e1743(0x1b6)](){const _0x4d68c7=a2_0x4e1743,_0x3ac429=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};this[_0x4d68c7(0x1d3)][_0x4d68c7(0x19d)](action_1['ACTION_ROUTE_KEY'],_0xa7b72c=>{const _0x194db0=_0x4d68c7,_0x3ea260=_0xa7b72c[_0x194db0(0x1c6)];return{'before':async _0x5a9477=>{const _0x1f37e6=_0x194db0;var _0x271f42,_0x4380d8;const _0x53acb7=(_0x271f42=_0x5a9477===null||_0x5a9477===void 0x0?void 0x0:_0x5a9477[_0x1f37e6(0x161)])===null||_0x271f42===void 0x0?void 0x0:_0x271f42[core_2[_0x1f37e6(0x1c5)]];if(_0x53acb7&&(_0x3ea260===null||_0x3ea260===void 0x0?void 0x0:_0x3ea260[_0x1f37e6(0x1d0)])){if(!this['ApiService'][_0x1f37e6(0x1d6)]((_0x4380d8=_0x53acb7===null||_0x53acb7===void 0x0?void 0x0:_0x53acb7['request'])===null||_0x4380d8===void 0x0?void 0x0:_0x4380d8[_0x1f37e6(0x195)]))throw new AnnError(ApiError_1['ApiError'][_0x1f37e6(0x1d4)]);}},'around':async _0x5e79dc=>{const _0x8a0eda=_0x194db0;var _0x2302fd,_0x1a652b,_0xabccf6;const _0x1e0ee7=(_0x2302fd=_0x5e79dc===null||_0x5e79dc===void 0x0?void 0x0:_0x5e79dc[_0x8a0eda(0x161)])===null||_0x2302fd===void 0x0?void 0x0:_0x2302fd[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1e0ee7&&(_0x3ea260===null||_0x3ea260===void 0x0?void 0x0:_0x3ea260['apimit'])&&((_0x3ea260===null||_0x3ea260===void 0x0?void 0x0:_0x3ea260[_0x8a0eda(0x1b0)])||typeof(_0x3ea260===null||_0x3ea260===void 0x0?void 0x0:_0x3ea260['intercept'])==_0x8a0eda(0x173))){if(((_0x1a652b=_0x1e0ee7['headers'])===null||_0x1a652b===void 0x0?void 0x0:_0x1a652b[_0x8a0eda(0x1bd)])&&((_0xabccf6=_0x3ac429===null||_0x3ac429===void 0x0?void 0x0:_0x3ac429[_0x1e0ee7[_0x8a0eda(0x195)][_0x8a0eda(0x1bd)]])===null||_0xabccf6===void 0x0?void 0x0:_0xabccf6[_0x8a0eda(0x186)])>0x0)for(const _0x4665b4 of _0x3ac429[_0x1e0ee7[_0x8a0eda(0x195)][_0x8a0eda(0x1bd)]]||[]){if(core_1['Types'][_0x8a0eda(0x1b3)](_0x4665b4)){const _0x159bea=await _0x1e0ee7[_0x8a0eda(0x1c4)][_0x8a0eda(0x17e)](_0x4665b4);typeof(_0x159bea===null||_0x159bea===void 0x0?void 0x0:_0x159bea[_0x8a0eda(0x1ba)])==_0x8a0eda(0x1c8)?await _0x159bea['match'](_0x1e0ee7,typeof(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7['method'])==_0x8a0eda(0x1af)&&(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)])?_0x1e0ee7[_0x8a0eda(0x1c3)][_0x8a0eda(0x178)]()+'@'+(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)]):undefined,_0x3ea260)&&await _0x159bea[_0x8a0eda(0x1a2)](_0x1e0ee7,typeof(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7['method'])=='string'&&(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)])?_0x1e0ee7['method']['toLowerCase']()+'@'+(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7['_matchedRoute']):undefined,_0x3ea260):await _0x159bea[_0x8a0eda(0x1a2)](_0x1e0ee7,typeof(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x1c3)])==_0x8a0eda(0x1af)&&(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)])?_0x1e0ee7[_0x8a0eda(0x1c3)][_0x8a0eda(0x178)]()+'@'+(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)]):undefined,_0x3ea260);}else core_1[_0x8a0eda(0x17f)][_0x8a0eda(0x1bc)](_0x4665b4)&&await _0x4665b4(_0x1e0ee7,typeof(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x1c3)])==_0x8a0eda(0x1af)&&(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)])?_0x1e0ee7[_0x8a0eda(0x1c3)][_0x8a0eda(0x178)]()+'@'+(_0x1e0ee7===null||_0x1e0ee7===void 0x0?void 0x0:_0x1e0ee7[_0x8a0eda(0x180)]):undefined,_0x3ea260);}}return await _0x5e79dc['proceed'](..._0x5e79dc['args']);},'afterThrow':(_0x1f6d4d,_0x1bd31a)=>{throw _0x1bd31a;}};});}async[a2_0x4e1743(0x1d2)](){const _0x167945=a2_0x4e1743;this[_0x167945(0x15b)][_0x167945(0x182)]([_0x167945(0x16b)])[_0x167945(0x1c9)](_0x47a0de=>{const _0x9ff086=_0x167945;(_0x47a0de===null||_0x47a0de===void 0x0?void 0x0:_0x47a0de[_0x9ff086(0x17d)])&&Object[_0x9ff086(0x15e)](_0x47a0de['context'],{'ok':{'value':function(_0x1d831b,_0x196223,_0x474257=0x0){return{'code':_0x474257,'data':_0x1d831b,'extra':_0x196223};}},'input':{'value':function(_0xbee5a2,_0x10104e){const _0x1893c4=_0x9ff086;var _0x21356c;const _0x45d33e=lodash[_0x1893c4(0x160)]({},this[_0x1893c4(0x189)][_0x1893c4(0x168)]||this[_0x1893c4(0x189)][((_0x21356c=config===null||config===void 0x0?void 0x0:config[_0x1893c4(0x16f)])===null||_0x21356c===void 0x0?void 0x0:_0x21356c[_0x1893c4(0x1a1)])||'body']||{},this[_0x1893c4(0x189)]['query']||{});return _0xbee5a2?lodash[_0x1893c4(0x1c7)](_0x45d33e,_0xbee5a2,_0x10104e):_0x45d33e;}},'when':{'value':async function(_0x191c98,_0x2c9d0c){const _0x2360e9=_0x9ff086,_0x2a15cb=this['input'](_0x191c98,null);if(!lodash[_0x2360e9(0x193)](_0x2a15cb))return await _0x2c9d0c(_0x2a15cb);}},'only':{'value':function(_0x32ae13){const _0x4ae988=_0x9ff086,_0x226fb4={};for(let _0x4ec54d=0x0;_0x4ec54d<_0x32ae13[_0x4ae988(0x186)];_0x4ec54d++){lodash[_0x4ae988(0x17a)](_0x32ae13[_0x4ec54d])&&_0x32ae13[_0x4ec54d][_0x4ae988(0x186)]>0x0&&lodash[_0x4ae988(0x177)](_0x32ae13[_0x4ec54d][0x0])&&(_0x226fb4[_0x32ae13[_0x4ec54d][0x0]]=this[_0x4ae988(0x1d5)](_0x32ae13[_0x4ec54d][0x0],_0x32ae13[_0x4ec54d]['length']>0x1?_0x32ae13[_0x4ec54d][0x1]:null));}return _0x226fb4;}},'koasend':{'value':function(_0x2766e3,_0x40dfec){const _0x4d1e04=_0x9ff086;if(!fs['existsSync'](this[_0x4d1e04(0x163)]['getAppDir']()+'/'+_0x2766e3))return'文件不存在';return this[_0x4d1e04(0x1a0)](_0x40dfec||_0x2766e3),koasend(this,_0x2766e3);}}});});}async[a2_0x4e1743(0x1c0)](){const _0x113869=a2_0x4e1743;var _0x1cb7fe,_0x141074;if(fs['existsSync'](this[_0x113869(0x163)][_0x113869(0x1ab)]()+'/apps')&&fs['statSync'](this['app'][_0x113869(0x1ab)]()+_0x113869(0x1ce))['isDirectory']()){const _0xcc4e8c=this[_0x113869(0x19b)]['getConfiguration'](),_0x528bcd=((_0x1cb7fe=_0xcc4e8c===null||_0xcc4e8c===void 0x0?void 0x0:_0xcc4e8c[_0x113869(0x196)])===null||_0x1cb7fe===void 0x0?void 0x0:_0x1cb7fe[_0x113869(0x1b4)])||{};for(const _0x3a851b of fs['readdirSync'](this['app'][_0x113869(0x1ab)]()+_0x113869(0x1ce))){if(!fs[_0x113869(0x1bb)](this[_0x113869(0x163)]['getBaseDir']()+_0x113869(0x187)+_0x3a851b)[_0x113869(0x1c1)]())continue;if(_0x528bcd===null||_0x528bcd===void 0x0?void 0x0:_0x528bcd[_0x3a851b])continue;_0x528bcd[_0x3a851b]=Object['assign']({},((_0x141074=_0xcc4e8c===null||_0xcc4e8c===void 0x0?void 0x0:_0xcc4e8c[_0x113869(0x196)])===null||_0x141074===void 0x0?void 0x0:_0x141074[_0x113869(0x15f)])||{'maxSize':'1m','dir':this[_0x113869(0x163)]['getAppDir']()+_0x113869(0x179)},{'enableJSON':!![],'enableConsole':this[_0x113869(0x192)]['isDevelopmentEnvironment'](),'fileLogName':_0x3a851b+_0x113869(0x18b),'dir':this[_0x113869(0x163)][_0x113869(0x1b9)]()+'/runtime/apps-'+_0x3a851b+'-log'});}Object[_0x113869(0x1b2)](_0x528bcd)['length']>0x0&&(!_0xcc4e8c[_0x113869(0x196)]&&(_0xcc4e8c[_0x113869(0x196)]={'default':{'maxSize':'1m','dir':this[_0x113869(0x163)][_0x113869(0x1b9)]()+_0x113869(0x179)}}),_0xcc4e8c[_0x113869(0x196)][_0x113869(0x1b4)]=_0x528bcd),this[_0x113869(0x19b)][_0x113869(0x166)](_0xcc4e8c);}}async['filterConfig'](){const _0x4b0b02=a2_0x4e1743;var _0x206f1f,_0xc3bcd0,_0x5f183f,_0x2358f5,_0x29796f,_0x553c2f;const _0xefb39e=this[_0x4b0b02(0x19b)][_0x4b0b02(0x184)]();((_0xc3bcd0=(_0x206f1f=_0xefb39e===null||_0xefb39e===void 0x0?void 0x0:_0xefb39e['anncicapi'])===null||_0x206f1f===void 0x0?void 0x0:_0x206f1f[_0x4b0b02(0x175)])===null||_0xc3bcd0===void 0x0?void 0x0:_0xc3bcd0[_0x4b0b02(0x1c2)])&&Object[_0x4b0b02(0x1b2)](_0xefb39e[_0x4b0b02(0x19a)]['devices'])[_0x4b0b02(0x186)]>0x1&&delete _0xefb39e[_0x4b0b02(0x19a)]['devices'][_0x4b0b02(0x1c2)];if((_0x5f183f=_0xefb39e===null||_0xefb39e===void 0x0?void 0x0:_0xefb39e[_0x4b0b02(0x18c)])===null||_0x5f183f===void 0x0?void 0x0:_0x5f183f[_0x4b0b02(0x19f)])for(const _0x454fe6 in _0xefb39e[_0x4b0b02(0x18c)]['dirs']){((_0x2358f5=_0xefb39e['staticFile'][_0x4b0b02(0x19f)][_0x454fe6])===null||_0x2358f5===void 0x0?void 0x0:_0x2358f5[_0x4b0b02(0x1a9)])&&typeof((_0x29796f=_0xefb39e[_0x4b0b02(0x18c)]['dirs'][_0x454fe6])===null||_0x29796f===void 0x0?void 0x0:_0x29796f['dir'])==_0x4b0b02(0x1af)&&!fs[_0x4b0b02(0x198)](_0xefb39e[_0x4b0b02(0x18c)][_0x4b0b02(0x19f)][_0x454fe6][_0x4b0b02(0x1a9)])&&(fs[_0x4b0b02(0x194)](_0xefb39e['staticFile'][_0x4b0b02(0x19f)][_0x454fe6][_0x4b0b02(0x1a9)],{'recursive':!![]}),console[_0x4b0b02(0x181)](_0x4b0b02(0x190)+_0xefb39e['staticFile'][_0x4b0b02(0x19f)][_0x454fe6][_0x4b0b02(0x1a9)]));}((_0x553c2f=_0xefb39e===null||_0xefb39e===void 0x0?void 0x0:_0xefb39e['upload'])===null||_0x553c2f===void 0x0?void 0x0:_0x553c2f['tmpdir'])&&!fs[_0x4b0b02(0x198)](_0xefb39e[_0x4b0b02(0x1be)][_0x4b0b02(0x1d7)])&&(fs[_0x4b0b02(0x194)](_0xefb39e[_0x4b0b02(0x1be)][_0x4b0b02(0x1d7)],{'recursive':!![]}),console['log'](_0x4b0b02(0x183)+_0xefb39e[_0x4b0b02(0x1be)]['tmpdir'])),this[_0x4b0b02(0x19b)][_0x4b0b02(0x166)](_0xefb39e);}};__decorate([(0x0,core_1[a2_0x4e1743(0x18a)])(),__metadata(a2_0x4e1743(0x1ca),Object)],CustomConfiguration[a2_0x4e1743(0x176)],a2_0x4e1743(0x163),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4e1743(0x1ca),core_2[a2_0x4e1743(0x1a3)])],CustomConfiguration[a2_0x4e1743(0x176)],a2_0x4e1743(0x19b),void 0x0),__decorate([(0x0,core_1[a2_0x4e1743(0x1b8)])(),__metadata(a2_0x4e1743(0x1ca),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x4e1743(0x176)],a2_0x4e1743(0x1d3),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x4e1743(0x1ad)])],CustomConfiguration[a2_0x4e1743(0x176)],a2_0x4e1743(0x15b),void 0x0),__decorate([(0x0,core_1[a2_0x4e1743(0x1b8)])(),__metadata(a2_0x4e1743(0x1ca),core_2[a2_0x4e1743(0x1cc)])],CustomConfiguration[a2_0x4e1743(0x176)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x4e1743(0x1b8)])(),__metadata(a2_0x4e1743(0x1ca),ApiService_1[a2_0x4e1743(0x1cf)])],CustomConfiguration[a2_0x4e1743(0x176)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4e1743(0x172)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4e1743(0x1a4)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x3beb17=a3_0x8087;(function(_0x2b99d6,_0x5975d5){const _0x59eef1=a3_0x8087,_0x31253d=_0x2b99d6();while(!![]){try{const _0x548cba=-parseInt(_0x59eef1(0xde))/0x1+-parseInt(_0x59eef1(0xff))/0x2+parseInt(_0x59eef1(0xca))/0x3+parseInt(_0x59eef1(0xf6))/0x4*(-parseInt(_0x59eef1(0xf5))/0x5)+parseInt(_0x59eef1(0xe7))/0x6+-parseInt(_0x59eef1(0xfb))/0x7*(parseInt(_0x59eef1(0xf9))/0x8)+-parseInt(_0x59eef1(0xec))/0x9*(-parseInt(_0x59eef1(0xd9))/0xa);if(_0x548cba===_0x5975d5)break;else _0x31253d['push'](_0x31253d['shift']());}catch(_0x4eb381){_0x31253d['push'](_0x31253d['shift']());}}}(a3_0x2fd9,0x7e257));function a3_0x8087(_0x5cc257,_0x38a67d){const _0x25c282=a3_0x2fd9();return a3_0x8087=function(_0x2b2c61,_0x48ce0f){_0x2b2c61=_0x2b2c61-0xc9;let _0x2fd9a0=_0x25c282[_0x2b2c61];return _0x2fd9a0;},a3_0x8087(_0x5cc257,_0x38a67d);}const a3_0x48ce0f=(function(){let _0x388afa=!![];return function(_0x265b35,_0x103f55){const _0x401ffb=_0x388afa?function(){if(_0x103f55){const _0x23d044=_0x103f55['apply'](_0x265b35,arguments);return _0x103f55=null,_0x23d044;}}:function(){};return _0x388afa=![],_0x401ffb;};}()),a3_0x2b2c61=a3_0x48ce0f(this,function(){const _0x18a690=a3_0x8087;return a3_0x2b2c61[_0x18a690(0xcc)]()[_0x18a690(0xd3)]('(((.+)+)+)+$')[_0x18a690(0xcc)]()[_0x18a690(0xd2)](a3_0x2b2c61)['search']('(((.+)+)+)+$');});a3_0x2b2c61();'use strict';Object['defineProperty'](exports,a3_0x3beb17(0xd5),{'value':!![]}),exports[a3_0x3beb17(0xcb)]=exports[a3_0x3beb17(0xe9)]=void 0x0;function a3_0x2fd9(){const _0x1faa3b=['splice','../types/action','cwd','140eKKqsX','filter','@midwayjs/core','app/controller/','basic/controller/','861297QyHpwA','ACTION_KEY','isArray','/apps/','replace','-action','/config.','endsWith','saveModule','5891448WFJlpJ','substring','Action','\x20文件请放在app/controller/文件下','Controller','1469511tEyNeT','tagName','toLowerCase','APPSCONFIG_KEY','module','middleware','trim','filepath','-controller','526935WLVKkA','16dOZyye','prefix','AppsConfigTmp','7864xbFoyJ','match','7210jHJYuF','rootpath','saveClassMetadata','split','1181772vvUiQX','apps/','405306wCLoAr','parseRoute','toString','join','indexOf','middlewareIgnore','length','route','constructor','search','startsWith','__esModule'];a3_0x2fd9=function(){return _0x1faa3b;};return a3_0x2fd9();}const fs=require('fs'),core_1=require(a3_0x3beb17(0xdb)),action_1=require(a3_0x3beb17(0xd7));function Action(_0x247be2,_0x3daaee,_0x3fe074={'middleware':[],'sensitive':!![]}){return _0x2f871b=>{const _0x1ac9af=a3_0x8087;var _0x242ff4;_0x3fe074[_0x1ac9af(0xed)]=_0x3daaee;const _0x31c7e7=parseRoute(_0x247be2);if(_0x31c7e7[_0x1ac9af(0xf0)]){_0x3fe074[_0x1ac9af(0xf7)]=_0x3fe074[_0x1ac9af(0xf7)]?'/'+_0x31c7e7[_0x1ac9af(0xf0)]+'/'+_0x3fe074[_0x1ac9af(0xf7)]:'/'+_0x31c7e7[_0x1ac9af(0xd1)];_0x31c7e7[_0x1ac9af(0xf7)]&&(_0x3fe074[_0x1ac9af(0xf7)]='/'+_0x31c7e7[_0x1ac9af(0xf7)]+'/'+_0x3fe074['prefix']);if(fs['existsSync'](_0x31c7e7[_0x1ac9af(0xfc)]+'/apps/'+_0x31c7e7[_0x1ac9af(0xf0)]+_0x1ac9af(0xe4)+(lodash[_0x1ac9af(0xe5)](_0x31c7e7[_0x1ac9af(0xf3)],'ts')?'ts':'js'))){const _0x5bf3ac=include(_0x31c7e7[_0x1ac9af(0xfc)]+_0x1ac9af(0xe1)+_0x31c7e7['module']+'/config.'+(lodash['endsWith'](_0x31c7e7[_0x1ac9af(0xf3)],'ts')?'ts':'js'));if(_0x5bf3ac[_0x1ac9af(0xf1)]&&lodash[_0x1ac9af(0xe0)](_0x5bf3ac[_0x1ac9af(0xf1)])&&_0x5bf3ac['middleware'][_0x1ac9af(0xd0)]>0x0)for(let _0x2a04e6 in _0x5bf3ac[_0x1ac9af(0xf1)]){if(((_0x242ff4=_0x5bf3ac===null||_0x5bf3ac===void 0x0?void 0x0:_0x5bf3ac[_0x1ac9af(0xcf)])===null||_0x242ff4===void 0x0?void 0x0:_0x242ff4[_0x1ac9af(0xd0)])>0x0&&_0x5bf3ac[_0x1ac9af(0xcf)][_0x1ac9af(0xce)](_0x5bf3ac[_0x1ac9af(0xf1)][_0x2a04e6])!=-0x1)continue;_0x3fe074[_0x1ac9af(0xf1)]['push'](_0x5bf3ac[_0x1ac9af(0xf1)][_0x2a04e6]);}const _0x29b290=(0x0,core_1['getClassMetadata'])(action_1[_0x1ac9af(0xef)],action_1['AppsConfigTmp'])||{};_0x29b290[''+_0x31c7e7[_0x1ac9af(0xf0)]]=_0x5bf3ac,(0x0,core_1[_0x1ac9af(0xfd)])(action_1['APPSCONFIG_KEY'],_0x29b290,action_1[_0x1ac9af(0xf8)]);}_0x3fe074['prefix']=_0x3fe074[_0x1ac9af(0xf7)][_0x1ac9af(0xee)]()[_0x1ac9af(0xe2)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x2f871b),(0x0,core_1[_0x1ac9af(0xeb)])(_0x3fe074[_0x1ac9af(0xf7)],_0x3fe074)(_0x2f871b),(0x0,core_1[_0x1ac9af(0xfd)])(action_1[_0x1ac9af(0xdf)],{'prefix':_0x3fe074[_0x1ac9af(0xf7)],'pprefix':_0x31c7e7[_0x1ac9af(0xf7)],'module':_0x31c7e7[_0x1ac9af(0xf0)],'filepath':_0x31c7e7[_0x1ac9af(0xf3)],'routerOptions':_0x3fe074},_0x2f871b);}else _0x3fe074[_0x1ac9af(0xf7)]=_0x3fe074[_0x1ac9af(0xf7)]?'/'+_0x3fe074[_0x1ac9af(0xf7)]:'/'+_0x31c7e7[_0x1ac9af(0xd1)],_0x31c7e7[_0x1ac9af(0xf7)]&&(_0x3fe074['prefix']='/'+_0x31c7e7[_0x1ac9af(0xf7)]+'/'+_0x3fe074[_0x1ac9af(0xf7)]),_0x3fe074[_0x1ac9af(0xf7)]=_0x3fe074[_0x1ac9af(0xf7)][_0x1ac9af(0xee)]()[_0x1ac9af(0xe2)](/\/{2,}/g,'/'),(0x0,core_1[_0x1ac9af(0xe6)])(action_1['ACTION_KEY'],_0x2f871b),(0x0,core_1[_0x1ac9af(0xeb)])(_0x3fe074['prefix'],_0x3fe074)(_0x2f871b),(0x0,core_1[_0x1ac9af(0xfd)])(action_1[_0x1ac9af(0xdf)],{'prefix':_0x3fe074[_0x1ac9af(0xf7)],'module':_0x31c7e7['module'],'pprefix':_0x31c7e7['prefix'],'filepath':_0x31c7e7[_0x1ac9af(0xf3)],'routerOptions':_0x3fe074},_0x2f871b);};}exports[a3_0x3beb17(0xe9)]=Action;function parseRoute(_0x4f5eca){const _0x140e4b=a3_0x3beb17;_0x4f5eca=_0x4f5eca[_0x140e4b(0xe2)](/(\\|\/)/g,'/');const _0x35e6e8=process[_0x140e4b(0xd8)]()['replace'](/(\\|\/)/g,'/'),_0x4e5550=_0x4f5eca[_0x140e4b(0xe8)](0x0,_0x35e6e8[_0x140e4b(0xd0)]+_0x4f5eca[_0x140e4b(0xe8)](_0x35e6e8[_0x140e4b(0xd0)]+0x1)[_0x140e4b(0xce)]('/')+0x1),_0x35d8e5=_0x4f5eca[_0x140e4b(0xe8)](_0x4e5550[_0x140e4b(0xd0)]+0x1)[_0x140e4b(0xe2)](/(\\|\/)/g,'/'),_0x332706={'route':'','prefix':![],'module':![],'rootpath':_0x4e5550,'filepath':_0x35d8e5};if(_0x35d8e5[_0x140e4b(0xd4)](_0x140e4b(0xdc))||_0x35d8e5['startsWith'](_0x140e4b(0xdd))){const _0x3e90d4=_0x35d8e5[_0x140e4b(0xe8)]((_0x35d8e5[_0x140e4b(0xd4)](_0x140e4b(0xdc))?_0x140e4b(0xdc):_0x140e4b(0xdd))[_0x140e4b(0xd0)])[_0x140e4b(0xfe)]('/')[_0x140e4b(0xda)](_0x42bbbe=>_0x42bbbe&&_0x42bbbe[_0x140e4b(0xf2)]());return _0x3e90d4[_0x140e4b(0xd0)]>0x1&&(_0x332706[_0x140e4b(0xf7)]=_0x3e90d4[0x0][_0x140e4b(0xee)](),_0x3e90d4[_0x140e4b(0xd6)](0x0,0x1)),_0x332706[_0x140e4b(0xd1)]=('/'+_0x3e90d4[_0x140e4b(0xcd)]('/'))[_0x140e4b(0xe2)](/(\.ts|\.js)$/,'')[_0x140e4b(0xe2)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x140e4b(0xcd)]('-')[_0x140e4b(0xee)]()[_0x140e4b(0xe2)](/\/\-/g,'/'),_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xe5)](_0x140e4b(0xe3))&&(_0x332706[_0x140e4b(0xd1)]=_0x332706['route']['substring'](0x0,_0x332706['route'][_0x140e4b(0xd0)]-0x7)),_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xe5)](_0x140e4b(0xf4))&&(_0x332706[_0x140e4b(0xd1)]=_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xe8)](0x0,_0x332706['route']['length']-0xb)),_0x332706;}else{if(_0x35d8e5[_0x140e4b(0xd4)](_0x140e4b(0xc9))){const _0x4018ac=_0x35d8e5[_0x140e4b(0xe8)](0x0,_0x35d8e5[_0x140e4b(0xce)]('/apps/')+0x5),_0x40c917=_0x35d8e5[_0x140e4b(0xe8)](_0x4018ac['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x140e4b(0xfe)]('/')[0x0];if(_0x35d8e5['startsWith'](_0x140e4b(0xc9)+_0x40c917+'/controller/')){const _0x55332a=_0x35d8e5[_0x140e4b(0xe8)]((_0x4018ac+'/'+_0x40c917+'/controller/')[_0x140e4b(0xd0)])[_0x140e4b(0xfe)]('/')[_0x140e4b(0xda)](_0x48fc03=>_0x48fc03&&_0x48fc03['trim']());return _0x55332a['length']>0x1&&(_0x332706[_0x140e4b(0xf7)]=_0x55332a[0x0][_0x140e4b(0xee)](),_0x55332a[_0x140e4b(0xd6)](0x0,0x1)),_0x332706[_0x140e4b(0xf0)]=_0x40c917,_0x332706[_0x140e4b(0xd1)]=('/'+_0x40c917+'/'+_0x55332a['join']('/'))[_0x140e4b(0xe2)](/(\.ts|\.js)$/,'')[_0x140e4b(0xe2)](/\/{2,}/,'/')[_0x140e4b(0xfa)](/[\/|A-Z]*[^A-Z]+/g)[_0x140e4b(0xcd)]('-')[_0x140e4b(0xee)]()['replace'](/\/\-/g,'/'),_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xe5)](_0x140e4b(0xe3))&&(_0x332706[_0x140e4b(0xd1)]=_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xe8)](0x0,_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xd0)]-0x7)),_0x332706[_0x140e4b(0xd1)][_0x140e4b(0xe5)](_0x140e4b(0xf4))&&(_0x332706[_0x140e4b(0xd1)]=_0x332706['route'][_0x140e4b(0xe8)](0x0,_0x332706[_0x140e4b(0xd1)]['length']-0xb)),_0x332706;}throw new Error(_0x35d8e5+'\x20文件请放在apps/'+_0x40c917+'/controller/文件下');}}throw new Error(_0x35d8e5+_0x140e4b(0xea));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a4_0x1a4903=a4_0x4fa8;function a4_0x4fa8(_0x5e7175,_0x1a7ac1){const _0x101e43=a4_0x566f();return a4_0x4fa8=function(_0x39850e,_0x319237){_0x39850e=_0x39850e-0x167;let _0x566f15=_0x101e43[_0x39850e];return _0x566f15;},a4_0x4fa8(_0x5e7175,_0x1a7ac1);}(function(_0x54c25f,_0x183cc0){const _0x4f9b6c=a4_0x4fa8,_0x116c91=_0x54c25f();while(!![]){try{const _0x403f93=parseInt(_0x4f9b6c(0x173))/0x1*(parseInt(_0x4f9b6c(0x178))/0x2)+-parseInt(_0x4f9b6c(0x170))/0x3+-parseInt(_0x4f9b6c(0x176))/0x4*(parseInt(_0x4f9b6c(0x172))/0x5)+parseInt(_0x4f9b6c(0x174))/0x6+-parseInt(_0x4f9b6c(0x181))/0x7+parseInt(_0x4f9b6c(0x16a))/0x8*(-parseInt(_0x4f9b6c(0x17f))/0x9)+parseInt(_0x4f9b6c(0x18a))/0xa;if(_0x403f93===_0x183cc0)break;else _0x116c91['push'](_0x116c91['shift']());}catch(_0x190099){_0x116c91['push'](_0x116c91['shift']());}}}(a4_0x566f,0xe23fe));const a4_0x319237=(function(){let _0x4ac3bb=!![];return function(_0x4d1c06,_0x2526d8){const _0x9a8aae=_0x4ac3bb?function(){const _0x55d8e=a4_0x4fa8;if(_0x2526d8){const _0x3973fd=_0x2526d8[_0x55d8e(0x17d)](_0x4d1c06,arguments);return _0x2526d8=null,_0x3973fd;}}:function(){};return _0x4ac3bb=![],_0x9a8aae;};}()),a4_0x39850e=a4_0x319237(this,function(){const _0x231341=a4_0x4fa8;return a4_0x39850e[_0x231341(0x18b)]()[_0x231341(0x16b)]('(((.+)+)+)+$')['toString']()[_0x231341(0x18c)](a4_0x39850e)[_0x231341(0x16b)](_0x231341(0x17c));});a4_0x39850e();'use strict';Object['defineProperty'](exports,a4_0x1a4903(0x17a),{'value':!![]}),exports[a4_0x1a4903(0x187)]=void 0x0;function a4_0x566f(){const _0x2fac73=['createCustomMethodDecorator','90jZxVMn','indexOf','5846246zUQkMg','Validator','delete','length','validationOptions','middlewareIgnore','Api','del','routerName','13450720AHkpTL','toString','constructor','middleware','attachClassMetadata','@midwayjs/core','603368mGnOvW','search','intercept','description','RequestMapping','ACTION_ROUTE_KEY','1727955XHLWbi','@anncic-api/validator','30JxAGff','1823489GPckGY','4913568zYYmoz','filter','596932GiMUTc','string','2OtcFfO','../types/action','__esModule','toLowerCase','(((.+)+)+)+$','apply'];a4_0x566f=function(){return _0x2fac73;};return a4_0x566f();}const validator_1=require(a4_0x1a4903(0x171)),core_1=require(a4_0x1a4903(0x169)),action_1=require(a4_0x1a4903(0x179));function Api(_0x4d6c9f,_0x5bd15b='get',_0x4772be='/',_0x591aa1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1bb1fb,_0x38b286,_0x52dfbf)=>{const _0x27a9a0=a4_0x4fa8;var _0x102adb,_0x401483,_0x2c9473;!_0x591aa1['middleware']&&(_0x591aa1[_0x27a9a0(0x167)]=[]);!((_0x102adb=_0x591aa1===null||_0x591aa1===void 0x0?void 0x0:_0x591aa1['validate'])===null||_0x102adb===void 0x0?void 0x0:_0x102adb[_0x27a9a0(0x185)])&&(_0x591aa1['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x27a9a0(0x177)}});if(((_0x401483=_0x591aa1===null||_0x591aa1===void 0x0?void 0x0:_0x591aa1[_0x27a9a0(0x167)])===null||_0x401483===void 0x0?void 0x0:_0x401483[_0x27a9a0(0x184)])>0x0&&((_0x2c9473=_0x591aa1===null||_0x591aa1===void 0x0?void 0x0:_0x591aa1[_0x27a9a0(0x186)])===null||_0x2c9473===void 0x0?void 0x0:_0x2c9473[_0x27a9a0(0x184)])>0x0)for(let _0x1ce913 in _0x591aa1[_0x27a9a0(0x167)]){_0x591aa1['middlewareIgnore'][_0x27a9a0(0x180)](_0x591aa1['middleware'][_0x1ce913])!==-0x1&&(_0x591aa1[_0x27a9a0(0x167)][_0x1ce913]=null);}_0x591aa1[_0x27a9a0(0x189)]=_0x4d6c9f,(0x0,validator_1[_0x27a9a0(0x182)])(_0x591aa1['validate'])(_0x1bb1fb,_0x38b286,_0x52dfbf),(0x0,core_1[_0x27a9a0(0x16e)])(Object['assign'](_0x591aa1,{'path':_0x4772be,'requestMethod':(_0x5bd15b==_0x27a9a0(0x188)?_0x27a9a0(0x183):_0x5bd15b)['toLowerCase']()}))(_0x1bb1fb,_0x38b286,_0x52dfbf),(0x0,core_1[_0x27a9a0(0x168)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x4772be,'method':_0x38b286,'apimit':_0x591aa1['apimit'],'intercept':_0x591aa1['intercept'],'routerName':_0x591aa1[_0x27a9a0(0x189)],'description':_0x591aa1[_0x27a9a0(0x16d)],'middleware':(_0x591aa1['middleware']||[])[_0x27a9a0(0x175)](_0x2b016b=>!!_0x2b016b),'requestMethod':(_0x5bd15b==_0x27a9a0(0x188)?_0x27a9a0(0x183):_0x5bd15b)[_0x27a9a0(0x17b)]()},_0x1bb1fb),(0x0,core_1[_0x27a9a0(0x17e)])(action_1[_0x27a9a0(0x16f)],{'path':_0x4772be,'method':_0x38b286,'apimit':_0x591aa1['apimit'],'intercept':_0x591aa1[_0x27a9a0(0x16c)],'routerName':_0x591aa1[_0x27a9a0(0x189)],'description':_0x591aa1['description'],'middleware':(_0x591aa1[_0x27a9a0(0x167)]||[])[_0x27a9a0(0x175)](_0x5b86c1=>!!_0x5b86c1),'requestMethod':(_0x5bd15b==_0x27a9a0(0x188)?'delete':_0x5bd15b)['toLowerCase']()})(_0x1bb1fb,_0x38b286,_0x52dfbf);};}exports[a4_0x1a4903(0x187)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x499389=a5_0x46f1;(function(_0xcd6e66,_0x1c7ff1){const _0x124f7d=a5_0x46f1,_0x15ac3b=_0xcd6e66();while(!![]){try{const _0x2d1ee3=-parseInt(_0x124f7d(0x7f))/0x1+parseInt(_0x124f7d(0x70))/0x2*(parseInt(_0x124f7d(0x78))/0x3)+-parseInt(_0x124f7d(0x74))/0x4*(-parseInt(_0x124f7d(0x69))/0x5)+parseInt(_0x124f7d(0x67))/0x6*(-parseInt(_0x124f7d(0x80))/0x7)+-parseInt(_0x124f7d(0x76))/0x8+-parseInt(_0x124f7d(0x71))/0x9+parseInt(_0x124f7d(0x7d))/0xa;if(_0x2d1ee3===_0x1c7ff1)break;else _0x15ac3b['push'](_0x15ac3b['shift']());}catch(_0x3cdd67){_0x15ac3b['push'](_0x15ac3b['shift']());}}}(a5_0x143c,0xcdc8f));const a5_0xbb7ef7=(function(){let _0x1edb94=!![];return function(_0x4d497c,_0x27d4aa){const _0x1fe60d=_0x1edb94?function(){const _0x9717e2=a5_0x46f1;if(_0x27d4aa){const _0x4164a8=_0x27d4aa[_0x9717e2(0x72)](_0x4d497c,arguments);return _0x27d4aa=null,_0x4164a8;}}:function(){};return _0x1edb94=![],_0x1fe60d;};}()),a5_0x4f5acf=a5_0xbb7ef7(this,function(){const _0x2074ad=a5_0x46f1;return a5_0x4f5acf['toString']()['search'](_0x2074ad(0x6d))['toString']()['constructor'](a5_0x4f5acf)[_0x2074ad(0x81)]('(((.+)+)+)+$');});a5_0x4f5acf();'use strict';Object[a5_0x499389(0x82)](exports,a5_0x499389(0x68),{'value':!![]}),exports[a5_0x499389(0x7a)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x499389(0x7e));function Apitest(_0x4a4b1a='/apitest',_0x1c6975){return(_0x2f4529,_0x439508,_0x53e493)=>{const _0x4a2145=a5_0x46f1;return(0x0,core_1[_0x4a2145(0x73)])({'path':_0x4a4b1a,'requestMethod':_0x4a2145(0x6c)})(_0x2f4529,_0x439508,_0x53e493),_0x53e493[_0x4a2145(0x6b)]=async function(..._0x3a80a8){const _0x3b0e91=_0x4a2145;var _0x598a91;const _0x5d7afd=(_0x598a91=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x598a91===void 0x0?void 0x0:_0x598a91['app'];if(_0x5d7afd&&_0x5d7afd[_0x3b0e91(0x7c)](_0x3b0e91(0x6a))){const _0x138131=await _0x5d7afd[_0x3b0e91(0x6f)]()[_0x3b0e91(0x75)](ApitestService_1[_0x3b0e91(0x6e)]),_0xf2d54f=await _0x5d7afd[_0x3b0e91(0x6f)]()[_0x3b0e91(0x75)](core_1[_0x3b0e91(0x77)]);return _0xf2d54f[_0x3b0e91(0x79)]()&&(_0x1c6975[_0x3b0e91(0x7b)]=!![]),await _0x138131['apidoc'](_0x1c6975);}return'';},_0x53e493;};}exports[a5_0x499389(0x7a)]=Apitest;function a5_0x46f1(_0x598830,_0x58a5a3){const _0x5c3845=a5_0x143c();return a5_0x46f1=function(_0x4f5acf,_0xbb7ef7){_0x4f5acf=_0x4f5acf-0x67;let _0x143cc5=_0x5c3845[_0x4f5acf];return _0x143cc5;},a5_0x46f1(_0x598830,_0x58a5a3);}function a5_0x143c(){const _0x6acd98=['getApplicationContext','2UGEImr','1527678PPUykf','apply','RequestMapping','44TywrFe','getAsync','13144312PVMFyA','MidwayEnvironmentService','4954263bJdEmK','isDevelopmentEnvironment','Apitest','filepath','getConfig','23797160iBXNyN','../service/ApitestService','1011435RChBqh','56AxeNbc','search','defineProperty','388602XSFlBO','__esModule','70050okpspp','apitest','value','get','(((.+)+)+)+$','ApitestService'];a5_0x143c=function(){return _0x6acd98;};return a5_0x143c();}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function Intercept(devices: string | string[]): ClassDecorator;
|
|
2
|
+
export declare abstract class IIntercept {
|
|
3
|
+
abstract handler(ctx: any, matchedRoute: string, metadata: any): Promise<void>;
|
|
4
|
+
match(ctx: any, matchedRoute: string, metadata: any): Promise<boolean>;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a6_0x40570e=a6_0x3f73;(function(_0xdceebb,_0x1b7f3e){const _0x42ca70=a6_0x3f73,_0x592526=_0xdceebb();while(!![]){try{const _0x35456c=-parseInt(_0x42ca70(0x96))/0x1*(-parseInt(_0x42ca70(0x9b))/0x2)+parseInt(_0x42ca70(0x89))/0x3*(-parseInt(_0x42ca70(0x8d))/0x4)+-parseInt(_0x42ca70(0x9f))/0x5+parseInt(_0x42ca70(0x92))/0x6*(-parseInt(_0x42ca70(0x93))/0x7)+-parseInt(_0x42ca70(0x86))/0x8+parseInt(_0x42ca70(0x9a))/0x9+parseInt(_0x42ca70(0x8f))/0xa;if(_0x35456c===_0x1b7f3e)break;else _0x592526['push'](_0x592526['shift']());}catch(_0x330706){_0x592526['push'](_0x592526['shift']());}}}(a6_0x2778,0xac95b));function a6_0x2778(){const _0x10fdfd=['../types/intercept','10ymfzAg','InterceptTargetTmp','push','isArray','7016301xcZeuR','83898uKMwAc','Singleton','defineProperty','saveClassMetadata','3373920cBhqyH','INTERCEPT_KEY','__esModule','constructor','apply','Scope','5858984iTresx','toUpperCase','ScopeEnum','15VMuYCH','IIntercept','@midwayjs/core','includes','610956SaBZpn','Intercept','23979960cjdRXS','search','toString','82998NBVyxS','364qhzERH','(((.+)+)+)+$'];a6_0x2778=function(){return _0x10fdfd;};return a6_0x2778();}const a6_0x5ab6ce=(function(){let _0x267f7e=!![];return function(_0x392afd,_0x4accaa){const _0x1a7a88=_0x267f7e?function(){const _0x5de687=a6_0x3f73;if(_0x4accaa){const _0x563eca=_0x4accaa[_0x5de687(0x84)](_0x392afd,arguments);return _0x4accaa=null,_0x563eca;}}:function(){};return _0x267f7e=![],_0x1a7a88;};}()),a6_0x1265c5=a6_0x5ab6ce(this,function(){const _0x187972=a6_0x3f73;return a6_0x1265c5[_0x187972(0x91)]()[_0x187972(0x90)]('(((.+)+)+)+$')[_0x187972(0x91)]()[_0x187972(0x83)](a6_0x1265c5)[_0x187972(0x90)](_0x187972(0x94));});a6_0x1265c5();'use strict';Object[a6_0x40570e(0x9d)](exports,a6_0x40570e(0x82),{'value':!![]}),exports['IIntercept']=exports[a6_0x40570e(0x8e)]=void 0x0;const core_1=require(a6_0x40570e(0x8b)),intercept_1=require(a6_0x40570e(0x95));function Intercept(_0x15326c){return _0x23d67e=>{const _0x1ead02=a6_0x3f73,_0x288a57=(0x0,core_1['getClassMetadata'])(intercept_1[_0x1ead02(0x81)],intercept_1[_0x1ead02(0x97)])||{};for(let _0x10c694 of Array[_0x1ead02(0x99)](_0x15326c)?_0x15326c:[_0x15326c]){_0x10c694=_0x10c694[_0x1ead02(0x87)]();!(_0x288a57===null||_0x288a57===void 0x0?void 0x0:_0x288a57[_0x10c694])&&(_0x288a57[_0x10c694]=[]);if(_0x288a57[_0x10c694][_0x1ead02(0x8c)](_0x23d67e))continue;_0x288a57[_0x10c694][_0x1ead02(0x98)](_0x23d67e);}(0x0,core_1['Provide'])()(_0x23d67e),(0x0,core_1[_0x1ead02(0x85)])(core_1[_0x1ead02(0x88)][_0x1ead02(0x9c)])(_0x23d67e),(0x0,core_1[_0x1ead02(0x9e)])(intercept_1[_0x1ead02(0x81)],_0x288a57,intercept_1[_0x1ead02(0x97)]);};}exports[a6_0x40570e(0x8e)]=Intercept;function a6_0x3f73(_0x4931b8,_0x254428){const _0x24e8f6=a6_0x2778();return a6_0x3f73=function(_0x1265c5,_0x5ab6ce){_0x1265c5=_0x1265c5-0x81;let _0x2778ed=_0x24e8f6[_0x1265c5];return _0x2778ed;},a6_0x3f73(_0x4931b8,_0x254428);}class IIntercept{async['match'](_0x14cb94,_0x406281,_0x503b89){return!![];}}exports[a6_0x40570e(0x8a)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x23e318=a7_0x3213;(function(_0x32b28d,_0x47e487){var _0x3af027=a7_0x3213,_0x53e55c=_0x32b28d();while(!![]){try{var _0x11da84=-parseInt(_0x3af027(0x100))/0x1*(parseInt(_0x3af027(0x11e))/0x2)+parseInt(_0x3af027(0xff))/0x3*(-parseInt(_0x3af027(0x115))/0x4)+parseInt(_0x3af027(0x106))/0x5+parseInt(_0x3af027(0x101))/0x6*(parseInt(_0x3af027(0x117))/0x7)+parseInt(_0x3af027(0x108))/0x8*(-parseInt(_0x3af027(0x11f))/0x9)+-parseInt(_0x3af027(0x11c))/0xa*(parseInt(_0x3af027(0x11d))/0xb)+parseInt(_0x3af027(0x109))/0xc;if(_0x11da84===_0x47e487)break;else _0x53e55c['push'](_0x53e55c['shift']());}catch(_0x408d17){_0x53e55c['push'](_0x53e55c['shift']());}}}(a7_0xfa28,0x4e58d));var a7_0x54a69a=(function(){var _0x1f319e=!![];return function(_0x40f850,_0x59766a){var _0x4868c3=_0x1f319e?function(){var _0x2037b1=a7_0x3213;if(_0x59766a){var _0x31eb27=_0x59766a[_0x2037b1(0x113)](_0x40f850,arguments);return _0x59766a=null,_0x31eb27;}}:function(){};return _0x1f319e=![],_0x4868c3;};}()),a7_0x241eeb=a7_0x54a69a(this,function(){var _0x5d8988=a7_0x3213;return a7_0x241eeb[_0x5d8988(0x10e)]()[_0x5d8988(0x102)]('(((.+)+)+)+$')[_0x5d8988(0x10e)]()['constructor'](a7_0x241eeb)[_0x5d8988(0x102)](_0x5d8988(0x118));});a7_0x241eeb();'use strict';var __decorate=this&&this[a7_0x23e318(0x10f)]||function(_0x10c4db,_0x27143f,_0x5df042,_0x146584){var _0x25376c=a7_0x23e318,_0x5aea5c=arguments[_0x25376c(0x10a)],_0x540acf=_0x5aea5c<0x3?_0x27143f:_0x146584===null?_0x146584=Object[_0x25376c(0x119)](_0x27143f,_0x5df042):_0x146584,_0x49fe41;if(typeof Reflect===_0x25376c(0x11b)&&typeof Reflect[_0x25376c(0x110)]===_0x25376c(0x103))_0x540acf=Reflect[_0x25376c(0x110)](_0x10c4db,_0x27143f,_0x5df042,_0x146584);else{for(var _0x50efa3=_0x10c4db[_0x25376c(0x10a)]-0x1;_0x50efa3>=0x0;_0x50efa3--)if(_0x49fe41=_0x10c4db[_0x50efa3])_0x540acf=(_0x5aea5c<0x3?_0x49fe41(_0x540acf):_0x5aea5c>0x3?_0x49fe41(_0x27143f,_0x5df042,_0x540acf):_0x49fe41(_0x27143f,_0x5df042))||_0x540acf;}return _0x5aea5c>0x3&&_0x540acf&&Object[_0x25376c(0x10b)](_0x27143f,_0x5df042,_0x540acf),_0x540acf;},__metadata=this&&this[a7_0x23e318(0x104)]||function(_0xd4c402,_0x51004e){var _0x3d2661=a7_0x23e318;if(typeof Reflect===_0x3d2661(0x11b)&&typeof Reflect[_0x3d2661(0x105)]==='function')return Reflect['metadata'](_0xd4c402,_0x51004e);};Object[a7_0x23e318(0x10b)](exports,'__esModule',{'value':!![]}),exports[a7_0x23e318(0x107)]=void 0x0;function a7_0x3213(_0x870b5a,_0x44428b){var _0x26e9e0=a7_0xfa28();return a7_0x3213=function(_0x241eeb,_0x54a69a){_0x241eeb=_0x241eeb-0xfd;var _0xfa2811=_0x26e9e0[_0x241eeb];return _0xfa2811;},a7_0x3213(_0x870b5a,_0x44428b);}class ApiError{}function a7_0xfa28(){var _0x25ddfa=['getOwnPropertyDescriptor','请求头信息不完整','object','10vGkIgg','1586343sbLiCs','112726fyjxUi','162cvwVpg','HEADERS_LACK','design:type','请求超时,请重试','TIMEOUT','9zgOlxD','2DDBcCc','10416DANPFB','search','function','__metadata','metadata','1475685DzXgVr','ApiError','98024TwJhPF','6755964SqypdA','length','defineProperty','验证失败,请重新登录','请使用正确的设备','toString','__decorate','decorate','HEADERS_CHECKCODE','TIMEOUT_LOGINTIME','apply','HEADERS_SIGNATURE','855056nvGMDz','HEADERS_DEVICE','2345LtbDzP','(((.+)+)+)+$'];a7_0xfa28=function(){return _0x25ddfa;};return a7_0xfa28();}ApiError['TIMEOUT']=0x3d7e31,ApiError[a7_0x23e318(0x120)]=0x3d7e32,ApiError[a7_0x23e318(0x116)]=0x3d7e33,ApiError[a7_0x23e318(0x114)]=0x3d7e34,ApiError[a7_0x23e318(0x111)]=0x3d7e35,ApiError[a7_0x23e318(0x112)]=0x3d7e36,__decorate([AnnErrorMsg(a7_0x23e318(0xfd)),__metadata(a7_0x23e318(0x121),Object)],ApiError,a7_0x23e318(0xfe),void 0x0),__decorate([AnnErrorMsg(a7_0x23e318(0x11a)),__metadata(a7_0x23e318(0x121),Object)],ApiError,a7_0x23e318(0x120),void 0x0),__decorate([AnnErrorMsg(a7_0x23e318(0x10d)),__metadata(a7_0x23e318(0x121),Object)],ApiError,a7_0x23e318(0x116),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a7_0x23e318(0x121),Object)],ApiError,a7_0x23e318(0x114),void 0x0),__decorate([AnnErrorMsg(a7_0x23e318(0x10c)),__metadata(a7_0x23e318(0x121),Object)],ApiError,a7_0x23e318(0x111),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0x23e318(0x121),Object)],ApiError,a7_0x23e318(0x112),void 0x0),exports[a7_0x23e318(0x107)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x4ba95e=a8_0x5db7;(function(_0x116d02,_0x92e2fd){const _0x4780e6=a8_0x5db7,_0x4f812d=_0x116d02();while(!![]){try{const _0x45329e=-parseInt(_0x4780e6(0xc7))/0x1+parseInt(_0x4780e6(0xcc))/0x2*(-parseInt(_0x4780e6(0xc2))/0x3)+parseInt(_0x4780e6(0xbe))/0x4*(parseInt(_0x4780e6(0xb8))/0x5)+parseInt(_0x4780e6(0xcb))/0x6*(parseInt(_0x4780e6(0xbc))/0x7)+parseInt(_0x4780e6(0xca))/0x8*(parseInt(_0x4780e6(0xbf))/0x9)+parseInt(_0x4780e6(0xbd))/0xa*(-parseInt(_0x4780e6(0xc0))/0xb)+-parseInt(_0x4780e6(0xc3))/0xc*(-parseInt(_0x4780e6(0xc5))/0xd);if(_0x45329e===_0x92e2fd)break;else _0x4f812d['push'](_0x4f812d['shift']());}catch(_0x3121a9){_0x4f812d['push'](_0x4f812d['shift']());}}}(a8_0x2828,0x58067));const a8_0x3d991b=(function(){let _0x119956=!![];return function(_0x3b09c0,_0x54270a){const _0x3873e0=_0x119956?function(){if(_0x54270a){const _0x1aba48=_0x54270a['apply'](_0x3b09c0,arguments);return _0x54270a=null,_0x1aba48;}}:function(){};return _0x119956=![],_0x3873e0;};}()),a8_0x546eb8=a8_0x3d991b(this,function(){const _0x589ad6=a8_0x5db7;return a8_0x546eb8[_0x589ad6(0xc1)]()['search'](_0x589ad6(0xbb))[_0x589ad6(0xc1)]()[_0x589ad6(0xb9)](a8_0x546eb8)[_0x589ad6(0xc9)](_0x589ad6(0xbb));});a8_0x546eb8();function a8_0x2828(){const _0x62353c=['55KHWHTw','toString','129540VoZPpc','1557996XPwJea','getAppsConfig','13vKdjzC','APPSCONFIG_KEY','674283OBviup','get','search','1169288fbLUAs','23148GFvBji','8UzSfKi','defineProperty','25swxMEC','constructor','@midwayjs/core','(((.+)+)+)+$','1141kjYeGr','884230sTeKCQ','478928KGWXJC','18JdlbeJ'];a8_0x2828=function(){return _0x62353c;};return a8_0x2828();}function a8_0x5db7(_0x19aa4e,_0x17e813){const _0x4b257f=a8_0x2828();return a8_0x5db7=function(_0x546eb8,_0x3d991b){_0x546eb8=_0x546eb8-0xb8;let _0x2828fe=_0x4b257f[_0x546eb8];return _0x2828fe;},a8_0x5db7(_0x19aa4e,_0x17e813);}'use strict';Object[a8_0x4ba95e(0xcd)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a8_0x4ba95e(0xba)),action_1=require('../types/action');function getAppsConfig(_0x151b8e){const _0x33d4a5=a8_0x4ba95e,_0x3474fc=(0x0,core_1['getClassMetadata'])(action_1[_0x33d4a5(0xc6)],action_1['AppsConfigTmp'])||{};return _0x151b8e?lodash[_0x33d4a5(0xc8)](_0x3474fc,_0x151b8e):_0x3474fc;}exports[a8_0x4ba95e(0xc4)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x5c900c=a8_0x39db;function a8_0x39db(_0x50fbd8,_0x295b79){const _0x2cb52e=a8_0x4c87();return a8_0x39db=function(_0x279b66,_0x4d7806){_0x279b66=_0x279b66-0x69;let _0x4c87e0=_0x2cb52e[_0x279b66];return _0x4c87e0;},a8_0x39db(_0x50fbd8,_0x295b79);}(function(_0x4041c3,_0x19f1b2){const _0x4fd366=a8_0x39db,_0x29ee62=_0x4041c3();while(!![]){try{const _0x37edcb=-parseInt(_0x4fd366(0x81))/0x1*(parseInt(_0x4fd366(0xc9))/0x2)+parseInt(_0x4fd366(0x7a))/0x3*(-parseInt(_0x4fd366(0x71))/0x4)+parseInt(_0x4fd366(0xa9))/0x5*(parseInt(_0x4fd366(0x7f))/0x6)+parseInt(_0x4fd366(0x91))/0x7+parseInt(_0x4fd366(0xd1))/0x8*(parseInt(_0x4fd366(0x69))/0x9)+parseInt(_0x4fd366(0xa8))/0xa+parseInt(_0x4fd366(0xa2))/0xb*(-parseInt(_0x4fd366(0x9d))/0xc);if(_0x37edcb===_0x19f1b2)break;else _0x29ee62['push'](_0x29ee62['shift']());}catch(_0x854e6d){_0x29ee62['push'](_0x29ee62['shift']());}}}(a8_0x4c87,0xa563f));const a8_0x4d7806=(function(){let _0x12701f=!![];return function(_0x3bbb45,_0x3db80c){const _0x4c70da=_0x12701f?function(){const _0x52447e=a8_0x39db;if(_0x3db80c){const _0x1768c5=_0x3db80c[_0x52447e(0x6a)](_0x3bbb45,arguments);return _0x3db80c=null,_0x1768c5;}}:function(){};return _0x12701f=![],_0x4c70da;};}()),a8_0x279b66=a8_0x4d7806(this,function(){const _0x5301a9=a8_0x39db;return a8_0x279b66[_0x5301a9(0x84)]()[_0x5301a9(0xb4)](_0x5301a9(0xa3))[_0x5301a9(0x84)]()['constructor'](a8_0x279b66)['search'](_0x5301a9(0xa3));});a8_0x279b66();'use strict';Object[a8_0x5c900c(0x76)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x4c87(){const _0x4fbc2a=['search','method','type','prefix','文件上传-','module','propertyData','max','flags.label','function','Boolean','FILESSTREAM','key','File','log','limit','metadata','rules','-array','header','array','579624NtAtWP','routes','keys','getClassExtendedMetadata','push','length','description','INJECT_CUSTOM_PARAM','24QvjnjW','3497049dNeORx','apply','WEB_ROUTER_PARAM_KEY','QUERY','request','string','args','listModule','10344tWPBNH','FIELDS','parameterIndex','flags.default','body','defineProperty','tagName','flags.presence','summary','1245MGMgrM','startsWith','Number','BODY','get','7283826XTkwrb','getClassMetadata','2jthQyu','path','title','toString','indexOf','FILESTREAM','String','iterator','routerName','children','file','isArray','/static/apitest','min','number','test','2990974QnXOpz','name','routerOptions','allow','required','find','concat','static/apitest','noreq','object','items','PARAM','898116qgdwqm','Object','split','lodash','ACTION_KEY','253rdSOXX','(((.+)+)+)+$','@midwayjs/core','route','filter','getRoutes','12447060zNXCkA','5uAMkIR','pprefix','query','describe','RouteParamTypes','default','ACTION_ROUTE_KEY','@anncic-api/validator','intercept','replace','filepath'];a8_0x4c87=function(){return _0x4fbc2a;};return a8_0x4c87();}const lodash_1=require(a8_0x5c900c(0xa0)),validator_1=require(a8_0x5c900c(0xb0)),core_1=require('@midwayjs/core'),core_2=require(a8_0x5c900c(0xa4)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x2562cf={'prefix':'/','module':![]}){const _0x475204=a8_0x5c900c;var _0x25a1e5,_0x479d19;const _0x385f6b=(0x0,core_3[_0x475204(0x70)])(action_1[_0x475204(0xa1)]),_0x45c050={},_0x4a81ad=Array[_0x475204(0x8c)](_0x2562cf[_0x475204(0xa6)]||[])?_0x2562cf[_0x475204(0xa6)]||[]:[_0x2562cf['filter']];_0x327e98:for(const _0x5a7afd of _0x385f6b){let _0x1dab1f=(0x0,core_3['getClassMetadata'])(action_1[_0x475204(0xa1)],_0x5a7afd),_0xec4c02=(0x0,core_3[_0x475204(0x80)])(action_1[_0x475204(0xaf)],_0x5a7afd);if(_0x1dab1f&&_0xec4c02){let _0x29eb1e=_0x1dab1f[_0x475204(0xb7)],_0x873044={};if(_0x2562cf[_0x475204(0xb9)]&&(0x0,lodash_1[_0x475204(0x7e)])(_0x1dab1f,'module',![])!=_0x2562cf[_0x475204(0xb9)])continue _0x327e98;else{if(_0x2562cf[_0x475204(0xb9)]===![]&&!!(0x0,lodash_1[_0x475204(0x7e)])(_0x1dab1f,_0x475204(0xb9),null))continue _0x327e98;}if(_0x2562cf[_0x475204(0xb7)]&&!_0x29eb1e[_0x475204(0x7b)](_0x2562cf[_0x475204(0xb7)]))continue _0x327e98;_0x29eb1e!=='/'?(_0x873044[_0x475204(0x79)]=(_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f['routerOptions']['tagName'])||(/^\//[_0x475204(0x90)](_0x29eb1e)?_0x29eb1e[_0x475204(0x9f)]('/')[0x1]:_0x29eb1e),_0x873044[_0x475204(0xcf)]=(_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f['routerOptions'][_0x475204(0xcf)])||_0x873044[_0x475204(0x79)],_0x873044[_0x475204(0xca)]=[]):(_0x873044[_0x475204(0x79)]=(_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f[_0x475204(0x93)][_0x475204(0x77)])||'default',_0x873044['description']=(_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f['routerOptions'][_0x475204(0xcf)])||'',_0x873044[_0x475204(0xca)]=[]);_0x2562cf['filepath']&&(_0x873044[_0x475204(0xb3)]=_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f[_0x475204(0xb3)]);(_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f[_0x475204(0xaa)])&&(_0x873044[_0x475204(0xb7)]=_0x1dab1f[_0x475204(0xaa)]);(_0x1dab1f===null||_0x1dab1f===void 0x0?void 0x0:_0x1dab1f['module'])&&(_0x873044[_0x475204(0xb9)]=_0x1dab1f['module']);let _0x3ca492=(0x0,core_3[_0x475204(0x80)])(core_2[_0x475204(0xd0)],_0x5a7afd)||{};if(typeof _0xec4c02[Symbol[_0x475204(0x88)]]===_0x475204(0xbd))for(let _0x57fc58 of _0xec4c02){if((_0x2562cf===null||_0x2562cf===void 0x0?void 0x0:_0x2562cf['intercept'])&&!(_0x57fc58===null||_0x57fc58===void 0x0?void 0x0:_0x57fc58[_0x475204(0xb1)]))continue;let _0x445453={};_0x445453[_0x475204(0xb5)]=_0x57fc58['requestMethod'],_0x445453['route']=(_0x29eb1e+_0x57fc58['path'])[_0x475204(0xb2)](/\/{1,}/,'/'),_0x445453[_0x475204(0x79)]=(_0x57fc58===null||_0x57fc58===void 0x0?void 0x0:_0x57fc58[_0x475204(0x89)])||_0x873044[_0x475204(0x79)]||_0x475204(0xae),_0x445453[_0x475204(0xcf)]=(_0x57fc58===null||_0x57fc58===void 0x0?void 0x0:_0x57fc58[_0x475204(0xcf)])||'',_0x445453[_0x475204(0x6d)]=[];if(!(0x0,lodash_1[_0x475204(0x7b)])(_0x445453['route'],_0x475204(0x98))&&!(0x0,lodash_1['startsWith'])(_0x445453['route'],_0x475204(0x8d))&&_0x4a81ad['indexOf'](_0x445453[_0x475204(0xa5)])===-0x1){if(!(_0x2562cf===null||_0x2562cf===void 0x0?void 0x0:_0x2562cf[_0x475204(0x99)])){let _0x5b51a8=(0x0,core_3['getMethodParamTypes'])(new _0x5a7afd(),_0x57fc58['method']);for(const _0x163bd8 in _0x5b51a8){let _0x361d48=(_0x25a1e5=_0x3ca492[_0x57fc58[_0x475204(0xb5)]])===null||_0x25a1e5===void 0x0?void 0x0:_0x25a1e5[_0x475204(0x96)](_0x334487=>_0x334487[_0x475204(0x73)]==_0x163bd8&&_0x334487[_0x475204(0xc0)]===core_2[_0x475204(0x6b)]&&(_0x334487===null||_0x334487===void 0x0?void 0x0:_0x334487[_0x475204(0xc4)]));if(_0x361d48===null||_0x361d48===void 0x0?void 0x0:_0x361d48[_0x475204(0xc4)]){let _0x177ce5=convertTypeToString(_0x361d48[_0x475204(0xc4)][_0x475204(0xb6)]||0x0);if([_0x475204(0xab),_0x475204(0x75)][_0x475204(0x85)](_0x177ce5)!=-0x1&&_0x361d48['metadata'][_0x475204(0xba)][_0x475204(0x85)](':')==-0x1&&!_0x445453[_0x475204(0x6d)]['find'](_0x48096e=>_0x48096e['key']==_0x361d48[_0x475204(0xc4)]['propertyData']))_0x445453[_0x475204(0x6d)][_0x475204(0xcd)]({'key':_0x361d48['metadata']['propertyData'],'title':_0x361d48[_0x475204(0xc4)][_0x475204(0xba)],'type':convertSchemaType(_0x5b51a8[_0x361d48[_0x475204(0x73)]][_0x475204(0x92)]),'required':![],'default':'','desc':''});else{if(_0x177ce5==_0x475204(0x8b)){let _0x109827=((_0x479d19=_0x361d48===null||_0x361d48===void 0x0?void 0x0:_0x361d48[_0x475204(0xc4)])===null||_0x479d19===void 0x0?void 0x0:_0x479d19['propertyData'])||_0x475204(0x8b);_0x109827[_0x475204(0x85)](':')==-0x1&&!_0x445453[_0x475204(0x6d)][_0x475204(0x96)](_0x1646f5=>_0x1646f5[_0x475204(0xc0)]==_0x109827&&_0x1646f5['type']=='file')&&_0x445453[_0x475204(0x6d)]['push']({'key':_0x109827,'title':_0x475204(0xb8)+_0x109827,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x47a8be=(0x0,core_3[_0x475204(0xcc)])(validator_1['RULES_KEY'],_0x5b51a8[_0x163bd8]);_0x47a8be&&_0x445453[_0x475204(0x6d)][_0x475204(0xcd)](...getJoiRequest(_0x47a8be));}}}_0x873044[_0x475204(0xca)][_0x475204(0xcd)](_0x445453);}}if(_0x873044['routes'][_0x475204(0xce)]>0x0){let _0x55ce4c=_0x45c050[_0x29eb1e];_0x55ce4c?(_0x55ce4c['summary']!=_0x873044[_0x475204(0x79)]&&(_0x55ce4c[_0x475204(0x79)]=_0x55ce4c[_0x475204(0x79)]+','+_0x873044['summary']),_0x55ce4c[_0x475204(0xcf)]!=_0x873044[_0x475204(0xcf)]&&(_0x55ce4c[_0x475204(0xcf)]=_0x55ce4c[_0x475204(0xcf)]+','+_0x873044[_0x475204(0xcf)]),_0x55ce4c[_0x475204(0xca)]=_0x55ce4c[_0x475204(0xca)][_0x475204(0x97)](_0x873044['routes']),_0x45c050[_0x29eb1e]=_0x55ce4c):_0x45c050[_0x29eb1e]=_0x873044;}}}return _0x45c050;}exports[a8_0x5c900c(0xa7)]=getRoutes;function getJoiRequest(_0x3915e9){const _0x5c3b2d=a8_0x5c900c,_0x1d7549=[];for(let _0x56ebaf in _0x3915e9){const _0x52738b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x21f2e7=typeof _0x3915e9[_0x56ebaf]['describe']=='function'?_0x3915e9[_0x56ebaf][_0x5c3b2d(0xac)]():_0x3915e9[_0x56ebaf];_0x52738b[_0x5c3b2d(0xc0)]=_0x56ebaf,_0x52738b['type']=_0x21f2e7[_0x5c3b2d(0xb6)],_0x52738b[_0x5c3b2d(0x83)]=(0x0,lodash_1['get'])(_0x21f2e7,_0x5c3b2d(0xbc),_0x56ebaf),_0x52738b[_0x5c3b2d(0xae)]=(0x0,lodash_1['get'])(_0x21f2e7,_0x5c3b2d(0x74),''),_0x52738b[_0x5c3b2d(0x95)]=(0x0,lodash_1[_0x5c3b2d(0x7e)])(_0x21f2e7,_0x5c3b2d(0x78),'')=='required',_0x52738b[_0x5c3b2d(0xcf)]=(0x0,lodash_1[_0x5c3b2d(0x7e)])(_0x21f2e7,'flags.description','');if(_0x21f2e7['type']==_0x5c3b2d(0x9a))_0x52738b[_0x5c3b2d(0x8a)]=getJoiRequest(_0x21f2e7[_0x5c3b2d(0xcb)]);else _0x21f2e7[_0x5c3b2d(0xb6)]==_0x5c3b2d(0xc8)&&_0x21f2e7[_0x5c3b2d(0x9b)]&&Array[_0x5c3b2d(0x8c)](_0x21f2e7['items'])&&_0x21f2e7[_0x5c3b2d(0x9b)][0x0]&&console[_0x5c3b2d(0xc2)](_0x56ebaf+_0x5c3b2d(0xc6),_0x21f2e7);_0x21f2e7['allow']&&Array[_0x5c3b2d(0x8c)](_0x21f2e7[_0x5c3b2d(0x94)])&&_0x21f2e7[_0x5c3b2d(0x94)][_0x5c3b2d(0xce)]>0x0&&(_0x52738b[_0x5c3b2d(0xcf)]='只允许:['+_0x21f2e7[_0x5c3b2d(0x94)]['join'](',')+'];'+_0x52738b[_0x5c3b2d(0xcf)]);if(_0x52738b[_0x5c3b2d(0xc0)]&&_0x52738b[_0x5c3b2d(0xb6)]){const _0x59cbe8={};for(const _0x2c772f of _0x21f2e7[_0x5c3b2d(0xc5)]||[]){if(_0x2c772f['name']===_0x5c3b2d(0x8e)&&_0x2c772f[_0x5c3b2d(0x6f)])_0x59cbe8[_0x5c3b2d(0x8e)]=_0x2c772f[_0x5c3b2d(0x6f)]['limit'];else _0x2c772f[_0x5c3b2d(0x92)]===_0x5c3b2d(0xbb)&&(_0x59cbe8['max']=_0x2c772f['args'][_0x5c3b2d(0xc3)]);}_0x52738b[_0x5c3b2d(0xc5)]=_0x59cbe8;}_0x52738b[_0x5c3b2d(0xc0)]&&_0x52738b[_0x5c3b2d(0x83)]&&_0x1d7549['push'](_0x52738b);}return _0x1d7549;}function convertSchemaType(_0x3a513e){const _0x3fe638=a8_0x5c900c;switch(_0x3a513e){case _0x3fe638(0x9e):return _0x3fe638(0x9a);case _0x3fe638(0xbe):return'boolean';case _0x3fe638(0x7c):return _0x3fe638(0x8f);case _0x3fe638(0x87):return _0x3fe638(0x6e);case _0x3fe638(0xc1):return _0x3fe638(0x8b);default:return _0x3fe638(0x6e);}}function convertTypeToString(_0x49bf96){const _0x2f43ea=a8_0x5c900c;switch(_0x49bf96){case core_1[_0x2f43ea(0xad)]['HEADERS']:return _0x2f43ea(0xc7);case core_1[_0x2f43ea(0xad)][_0x2f43ea(0x6c)]:return _0x2f43ea(0xab);case core_1[_0x2f43ea(0xad)][_0x2f43ea(0x9c)]:return _0x2f43ea(0x82);case core_1[_0x2f43ea(0xad)][_0x2f43ea(0x7d)]:return _0x2f43ea(0x75);case core_1[_0x2f43ea(0xad)][_0x2f43ea(0x72)]:case core_1[_0x2f43ea(0xad)][_0x2f43ea(0xbf)]:case core_1[_0x2f43ea(0xad)][_0x2f43ea(0x86)]:return _0x2f43ea(0x8b);default:return _0x2f43ea(0xc7);}}
|
|
1
|
+
function a9_0x14c4(_0x4e100,_0x4f48bd){const _0x1872c1=a9_0x4c3a();return a9_0x14c4=function(_0x53459a,_0xbf5002){_0x53459a=_0x53459a-0x1d5;let _0x4c3adc=_0x1872c1[_0x53459a];return _0x4c3adc;},a9_0x14c4(_0x4e100,_0x4f48bd);}const a9_0x3cd421=a9_0x14c4;(function(_0x451408,_0x5118b7){const _0x30e787=a9_0x14c4,_0x2fba5e=_0x451408();while(!![]){try{const _0x39b6a2=parseInt(_0x30e787(0x218))/0x1*(parseInt(_0x30e787(0x20e))/0x2)+parseInt(_0x30e787(0x1f7))/0x3+parseInt(_0x30e787(0x1e7))/0x4+-parseInt(_0x30e787(0x1eb))/0x5*(-parseInt(_0x30e787(0x1d6))/0x6)+parseInt(_0x30e787(0x1d9))/0x7+parseInt(_0x30e787(0x1ed))/0x8*(parseInt(_0x30e787(0x202))/0x9)+-parseInt(_0x30e787(0x22c))/0xa*(parseInt(_0x30e787(0x208))/0xb);if(_0x39b6a2===_0x5118b7)break;else _0x2fba5e['push'](_0x2fba5e['shift']());}catch(_0x2c4ba2){_0x2fba5e['push'](_0x2fba5e['shift']());}}}(a9_0x4c3a,0xdcfcf));const a9_0xbf5002=(function(){let _0x1a9d0c=!![];return function(_0x216894,_0x1b6112){const _0x5c442a=_0x1a9d0c?function(){const _0x190844=a9_0x14c4;if(_0x1b6112){const _0x4d0ecf=_0x1b6112[_0x190844(0x20a)](_0x216894,arguments);return _0x1b6112=null,_0x4d0ecf;}}:function(){};return _0x1a9d0c=![],_0x5c442a;};}()),a9_0x53459a=a9_0xbf5002(this,function(){const _0x10f30e=a9_0x14c4;return a9_0x53459a['toString']()[_0x10f30e(0x1df)](_0x10f30e(0x233))['toString']()[_0x10f30e(0x20f)](a9_0x53459a)['search']('(((.+)+)+)+$');});a9_0x53459a();'use strict';Object[a9_0x3cd421(0x236)](exports,a9_0x3cd421(0x1dd),{'value':!![]}),exports[a9_0x3cd421(0x1fb)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x3cd421(0x1de)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a9_0x3cd421(0x1d5)),action_1=require('../types/action');function getRoutes(_0x2d58c0={'prefix':'/','module':![]}){const _0x54396d=a9_0x3cd421;var _0x4d5ed5,_0x46517b;const _0x3f09e9=(0x0,core_3['listModule'])(action_1[_0x54396d(0x21c)]),_0x503cda={},_0x53c3f0=Array[_0x54396d(0x1d7)](_0x2d58c0['filter']||[])?_0x2d58c0['filter']||[]:[_0x2d58c0[_0x54396d(0x232)]];_0x554cab:for(const _0x19060b of _0x3f09e9){let _0x2fdc33=(0x0,core_3[_0x54396d(0x1fc)])(action_1[_0x54396d(0x21c)],_0x19060b),_0x30dbcc=(0x0,core_3[_0x54396d(0x1fc)])(action_1['ACTION_ROUTE_KEY'],_0x19060b);if(_0x2fdc33&&_0x30dbcc){let _0x3f60c1=_0x2fdc33[_0x54396d(0x203)],_0x45be22={};if(_0x2d58c0[_0x54396d(0x1e4)]&&(0x0,lodash_1['get'])(_0x2fdc33,_0x54396d(0x1e4),![])!=_0x2d58c0[_0x54396d(0x1e4)])continue _0x554cab;else{if(_0x2d58c0[_0x54396d(0x1e4)]===![]&&!!(0x0,lodash_1[_0x54396d(0x20d)])(_0x2fdc33,_0x54396d(0x1e4),null))continue _0x554cab;}if(_0x2d58c0[_0x54396d(0x203)]&&!_0x3f60c1[_0x54396d(0x204)](_0x2d58c0[_0x54396d(0x203)]))continue _0x554cab;_0x3f60c1!=='/'?(_0x45be22[_0x54396d(0x222)]=(_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33[_0x54396d(0x235)]['tagName'])||(/^\//[_0x54396d(0x1f9)](_0x3f60c1)?_0x3f60c1['split']('/')[0x1]:_0x3f60c1),_0x45be22[_0x54396d(0x1ef)]=(_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33[_0x54396d(0x235)][_0x54396d(0x1ef)])||_0x45be22[_0x54396d(0x222)],_0x45be22[_0x54396d(0x22e)]=[]):(_0x45be22['summary']=(_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33['routerOptions']['tagName'])||'default',_0x45be22['description']=(_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33['routerOptions'][_0x54396d(0x1ef)])||'',_0x45be22[_0x54396d(0x22e)]=[]);_0x2d58c0[_0x54396d(0x20b)]&&(_0x45be22[_0x54396d(0x20b)]=_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33[_0x54396d(0x20b)]);(_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33[_0x54396d(0x209)])&&(_0x45be22[_0x54396d(0x203)]=_0x2fdc33[_0x54396d(0x209)]);(_0x2fdc33===null||_0x2fdc33===void 0x0?void 0x0:_0x2fdc33[_0x54396d(0x1e4)])&&(_0x45be22[_0x54396d(0x1e4)]=_0x2fdc33['module']);let _0x26d381=(0x0,core_3[_0x54396d(0x1fc)])(core_2['INJECT_CUSTOM_PARAM'],_0x19060b)||{};if(typeof _0x30dbcc[Symbol['iterator']]===_0x54396d(0x237))for(let _0x51d937 of _0x30dbcc){if((_0x2d58c0===null||_0x2d58c0===void 0x0?void 0x0:_0x2d58c0[_0x54396d(0x231)])&&!(_0x51d937===null||_0x51d937===void 0x0?void 0x0:_0x51d937['intercept']))continue;let _0x8ad126={};_0x8ad126[_0x54396d(0x224)]=_0x51d937['requestMethod'],_0x8ad126[_0x54396d(0x1db)]=(_0x3f60c1+_0x51d937['path'])[_0x54396d(0x205)](/\/{1,}/,'/'),_0x8ad126[_0x54396d(0x222)]=(_0x51d937===null||_0x51d937===void 0x0?void 0x0:_0x51d937['routerName'])||_0x45be22[_0x54396d(0x222)]||_0x54396d(0x1f1),_0x8ad126[_0x54396d(0x1ef)]=(_0x51d937===null||_0x51d937===void 0x0?void 0x0:_0x51d937['description'])||'',_0x8ad126['request']=[];_0x8ad126[_0x54396d(0x1db)][_0x54396d(0x1fe)]('/')&&(_0x8ad126['route']=_0x8ad126['route'][_0x54396d(0x1dc)](0x0,_0x8ad126['route'][_0x54396d(0x22f)]-0x1));if(!(0x0,lodash_1[_0x54396d(0x204)])(_0x8ad126[_0x54396d(0x1db)],_0x54396d(0x21a))&&!(0x0,lodash_1[_0x54396d(0x204)])(_0x8ad126[_0x54396d(0x1db)],_0x54396d(0x1f2))&&_0x53c3f0[_0x54396d(0x210)](_0x8ad126[_0x54396d(0x1db)])===-0x1){if(!(_0x2d58c0===null||_0x2d58c0===void 0x0?void 0x0:_0x2d58c0[_0x54396d(0x22d)])){let _0x413e78=(0x0,core_3[_0x54396d(0x22a)])(new _0x19060b(),_0x51d937[_0x54396d(0x224)]);for(const _0x59c3c8 in _0x413e78){let _0x2bf969=(_0x4d5ed5=_0x26d381[_0x51d937[_0x54396d(0x224)]])===null||_0x4d5ed5===void 0x0?void 0x0:_0x4d5ed5[_0x54396d(0x234)](_0x291f5f=>_0x291f5f[_0x54396d(0x219)]==_0x59c3c8&&_0x291f5f[_0x54396d(0x216)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x291f5f===null||_0x291f5f===void 0x0?void 0x0:_0x291f5f['metadata']));if(_0x2bf969===null||_0x2bf969===void 0x0?void 0x0:_0x2bf969[_0x54396d(0x226)]){let _0xc4ba8b=convertTypeToString(_0x2bf969[_0x54396d(0x226)][_0x54396d(0x214)]||0x0);if([_0x54396d(0x1e1),_0x54396d(0x1ea)][_0x54396d(0x210)](_0xc4ba8b)!=-0x1&&_0x2bf969['metadata'][_0x54396d(0x1fa)]['indexOf'](':')==-0x1&&!_0x8ad126[_0x54396d(0x201)][_0x54396d(0x234)](_0x717b9b=>_0x717b9b[_0x54396d(0x216)]==_0x2bf969[_0x54396d(0x226)][_0x54396d(0x1fa)]))_0x8ad126[_0x54396d(0x201)][_0x54396d(0x220)]({'key':_0x2bf969[_0x54396d(0x226)][_0x54396d(0x1fa)],'title':_0x2bf969[_0x54396d(0x226)][_0x54396d(0x1fa)],'type':convertSchemaType(_0x413e78[_0x2bf969[_0x54396d(0x219)]][_0x54396d(0x1f6)]),'required':![],'default':'','desc':''});else{if(_0xc4ba8b==_0x54396d(0x22b)){let _0x3874ab=((_0x46517b=_0x2bf969===null||_0x2bf969===void 0x0?void 0x0:_0x2bf969[_0x54396d(0x226)])===null||_0x46517b===void 0x0?void 0x0:_0x46517b['propertyData'])||_0x54396d(0x22b);_0x3874ab[_0x54396d(0x210)](':')==-0x1&&!_0x8ad126[_0x54396d(0x201)][_0x54396d(0x234)](_0x20a4d3=>_0x20a4d3[_0x54396d(0x216)]==_0x3874ab&&_0x20a4d3[_0x54396d(0x214)]==_0x54396d(0x22b))&&_0x8ad126[_0x54396d(0x201)][_0x54396d(0x220)]({'key':_0x3874ab,'title':_0x54396d(0x21e)+_0x3874ab,'type':_0x54396d(0x22b),'required':!![],'default':'','desc':''});}}}else{const _0x43dddd=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x54396d(0x21f)],_0x413e78[_0x59c3c8]);_0x43dddd&&_0x8ad126[_0x54396d(0x201)][_0x54396d(0x220)](...getJoiRequest(_0x43dddd));}}}_0x45be22[_0x54396d(0x22e)][_0x54396d(0x220)](_0x8ad126);}}if(_0x45be22[_0x54396d(0x22e)][_0x54396d(0x22f)]>0x0){let _0x4c5358=_0x503cda[_0x3f60c1];_0x4c5358?(_0x4c5358['summary']!=_0x45be22[_0x54396d(0x222)]&&(_0x4c5358[_0x54396d(0x222)]=_0x4c5358['summary']+','+_0x45be22[_0x54396d(0x222)]),_0x4c5358[_0x54396d(0x1ef)]!=_0x45be22[_0x54396d(0x1ef)]&&(_0x4c5358[_0x54396d(0x1ef)]=_0x4c5358[_0x54396d(0x1ef)]+','+_0x45be22['description']),_0x4c5358[_0x54396d(0x22e)]=_0x4c5358[_0x54396d(0x22e)][_0x54396d(0x213)](_0x45be22[_0x54396d(0x22e)]),_0x503cda[_0x3f60c1]=_0x4c5358):_0x503cda[_0x3f60c1]=_0x45be22;}}}return _0x503cda;}exports[a9_0x3cd421(0x1fb)]=getRoutes;function getJoiRequest(_0x2d2716){const _0x1c5db2=a9_0x3cd421,_0x1f1ab0=[];for(let _0x140dbe in _0x2d2716){const _0x229f54={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x227ef4=typeof _0x2d2716[_0x140dbe][_0x1c5db2(0x229)]==_0x1c5db2(0x237)?_0x2d2716[_0x140dbe]['describe']():_0x2d2716[_0x140dbe];_0x229f54['key']=_0x140dbe,_0x229f54['type']=_0x227ef4[_0x1c5db2(0x214)],_0x229f54['title']=(0x0,lodash_1[_0x1c5db2(0x20d)])(_0x227ef4,_0x1c5db2(0x206),_0x140dbe),_0x229f54['default']=(0x0,lodash_1[_0x1c5db2(0x20d)])(_0x227ef4,_0x1c5db2(0x1e5),''),_0x229f54['required']=(0x0,lodash_1['get'])(_0x227ef4,_0x1c5db2(0x1ee),'')==_0x1c5db2(0x1d8),_0x229f54[_0x1c5db2(0x1ef)]=(0x0,lodash_1['get'])(_0x227ef4,'flags.description','');if(_0x227ef4['type']=='object')_0x229f54[_0x1c5db2(0x211)]=getJoiRequest(_0x227ef4[_0x1c5db2(0x1e0)]);else _0x227ef4[_0x1c5db2(0x214)]==_0x1c5db2(0x20c)&&_0x227ef4[_0x1c5db2(0x21b)]&&Array['isArray'](_0x227ef4[_0x1c5db2(0x21b)])&&_0x227ef4[_0x1c5db2(0x21b)][0x0]&&console[_0x1c5db2(0x212)](_0x140dbe+'-array',_0x227ef4);_0x227ef4[_0x1c5db2(0x223)]&&Array[_0x1c5db2(0x1d7)](_0x227ef4[_0x1c5db2(0x223)])&&_0x227ef4[_0x1c5db2(0x223)]['length']>0x0&&(_0x229f54[_0x1c5db2(0x1ef)]=_0x1c5db2(0x21d)+_0x227ef4[_0x1c5db2(0x223)][_0x1c5db2(0x217)](',')+'];'+_0x229f54['description']);if(_0x229f54[_0x1c5db2(0x216)]&&_0x229f54[_0x1c5db2(0x214)]){const _0x27666e={};for(const _0x22ea35 of _0x227ef4[_0x1c5db2(0x221)]||[]){if(_0x22ea35[_0x1c5db2(0x1f6)]===_0x1c5db2(0x1f4)&&_0x22ea35[_0x1c5db2(0x228)])_0x27666e[_0x1c5db2(0x1f4)]=_0x22ea35[_0x1c5db2(0x228)][_0x1c5db2(0x1e6)];else _0x22ea35[_0x1c5db2(0x1f6)]===_0x1c5db2(0x1fd)&&(_0x27666e[_0x1c5db2(0x1fd)]=_0x22ea35['args'][_0x1c5db2(0x1e6)]);}_0x229f54[_0x1c5db2(0x221)]=_0x27666e;}_0x229f54[_0x1c5db2(0x216)]&&_0x229f54[_0x1c5db2(0x1f3)]&&_0x1f1ab0[_0x1c5db2(0x220)](_0x229f54);}return _0x1f1ab0;}function a9_0x4c3a(){const _0x34ffb5=['Object','route','substring','__esModule','@anncic-api/validator','search','keys','query','HEADERS','object','module','flags.default','limit','5599276ZDBjAz','QUERY','FIELDS','body','5RIyoqv','number','8DNUJKL','flags.presence','description','String','default','/static/apitest','title','min','header','name','3665619WHxavd','FILESSTREAM','test','propertyData','getRoutes','getClassMetadata','max','endsWith','boolean','FILESTREAM','request','2889657sKCOvI','prefix','startsWith','replace','flags.label','path','5269BEkFoR','pprefix','apply','filepath','array','get','10JIIcjL','constructor','indexOf','children','log','concat','type','string','key','join','25757LWmMpf','parameterIndex','static/apitest','items','ACTION_KEY','只允许:[','文件上传-','RULES_KEY','push','rules','summary','allow','method','File','metadata','RouteParamTypes','args','describe','getMethodParamTypes','file','80650CKxAIP','noreq','routes','length','PARAM','intercept','filter','(((.+)+)+)+$','find','routerOptions','defineProperty','function','Boolean','@midwayjs/core','93732YuzveQ','isArray','required','11767910OlfHoy'];a9_0x4c3a=function(){return _0x34ffb5;};return a9_0x4c3a();}function convertSchemaType(_0x3d1687){const _0x58e72e=a9_0x3cd421;switch(_0x3d1687){case _0x58e72e(0x1da):return _0x58e72e(0x1e3);case _0x58e72e(0x238):return _0x58e72e(0x1ff);case'Number':return _0x58e72e(0x1ec);case _0x58e72e(0x1f0):return _0x58e72e(0x215);case _0x58e72e(0x225):return _0x58e72e(0x22b);default:return _0x58e72e(0x215);}}function convertTypeToString(_0x205f05){const _0x455187=a9_0x3cd421;switch(_0x205f05){case core_1[_0x455187(0x227)][_0x455187(0x1e2)]:return _0x455187(0x1f5);case core_1['RouteParamTypes'][_0x455187(0x1e8)]:return _0x455187(0x1e1);case core_1[_0x455187(0x227)][_0x455187(0x230)]:return _0x455187(0x207);case core_1['RouteParamTypes']['BODY']:return _0x455187(0x1ea);case core_1[_0x455187(0x227)][_0x455187(0x1e9)]:case core_1['RouteParamTypes'][_0x455187(0x1f8)]:case core_1[_0x455187(0x227)][_0x455187(0x200)]:return _0x455187(0x22b);default:return _0x455187(0x1f5);}}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './service/ApitestService';
|
|
|
4
4
|
export { Api } from './decorator/ActionApi';
|
|
5
5
|
export { Action } from './decorator/Action';
|
|
6
6
|
export { Apitest } from './decorator/ActionApitest';
|
|
7
|
+
export { Intercept, IIntercept } from './decorator/Intercept';
|
|
7
8
|
export { getRoutes } from './helper/getRoutes';
|
|
8
9
|
export { ILogger } from '@midwayjs/logger';
|
|
9
10
|
export { ApiError } from './exception/ApiError';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x5b471a=a10_0x1435;(function(_0x211500,_0x312e9a){var _0x22476f=a10_0x1435,_0x41df9c=_0x211500();while(!![]){try{var _0x6b307c=parseInt(_0x22476f(0x1ad))/0x1*(parseInt(_0x22476f(0x1ba))/0x2)+-parseInt(_0x22476f(0x1c7))/0x3+parseInt(_0x22476f(0x1b7))/0x4*(parseInt(_0x22476f(0x1c2))/0x5)+parseInt(_0x22476f(0x195))/0x6+parseInt(_0x22476f(0x1b2))/0x7*(parseInt(_0x22476f(0x1be))/0x8)+-parseInt(_0x22476f(0x1d6))/0x9+parseInt(_0x22476f(0x1d1))/0xa;if(_0x6b307c===_0x312e9a)break;else _0x41df9c['push'](_0x41df9c['shift']());}catch(_0x49b8eb){_0x41df9c['push'](_0x41df9c['shift']());}}}(a10_0x3176,0xb3288));var a10_0xb9e6b2=(function(){var _0x3e3a7f=!![];return function(_0x12eefe,_0x1834cc){var _0x3f1394=_0x3e3a7f?function(){var _0xc0c42b=a10_0x1435;if(_0x1834cc){var _0x4ee773=_0x1834cc[_0xc0c42b(0x1af)](_0x12eefe,arguments);return _0x1834cc=null,_0x4ee773;}}:function(){};return _0x3e3a7f=![],_0x3f1394;};}()),a10_0x4cd20c=a10_0xb9e6b2(this,function(){var _0x4408f5=a10_0x1435;return a10_0x4cd20c[_0x4408f5(0x196)]()[_0x4408f5(0x1a5)](_0x4408f5(0x197))[_0x4408f5(0x196)]()[_0x4408f5(0x1c4)](a10_0x4cd20c)[_0x4408f5(0x1a5)](_0x4408f5(0x197));});function a10_0x3176(){var _0x56937c=['Configuration','./decorator/Intercept','configurable','6176691WmPKbu','./decorator/ActionApitest','2840646QIEFws','toString','(((.+)+)+)+$','CustomConfiguration','Init','Query','EventService','Action','ApiService','__exportStar','App','defineProperty','ValidatorService','Config','Inject','create','search','./types/common','Fields','@anncic-api/event','Intercept','Provide','Files','hasOwnProperty','5NSimLg','./helper/getAppsConfig','apply','Headers','default','231CKXsAW','./exception/ApiError','./service/ApiService','./configuration','ScopeEnum','2440deLgbW','IIntercept','getAppsConfig','209602vCQtRf','get','getRoutes','Logger','37016MwwHkO','writable','Api','ApiError','4930eTcgDA','File','constructor','ValidatorError','ExcelService','4225041qHdZUt','Param','./decorator/ActionApi','CacheService','./decorator/Action','@midwayjs/core','Body','Apitest','Scope','call','10768810pOMkMT','./service/ApitestService'];a10_0x3176=function(){return _0x56937c;};return a10_0x3176();}a10_0x4cd20c();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a10_0x5b471a(0x1a4)]?function(_0x4c7cdf,_0x1dd9aa,_0x1782f4,_0x9e06c9){var _0x45ea45=a10_0x5b471a;if(_0x9e06c9===undefined)_0x9e06c9=_0x1782f4;var _0x13d326=Object['getOwnPropertyDescriptor'](_0x1dd9aa,_0x1782f4);(!_0x13d326||(_0x45ea45(0x1bb)in _0x13d326?!_0x1dd9aa['__esModule']:_0x13d326[_0x45ea45(0x1bf)]||_0x13d326[_0x45ea45(0x1d5)]))&&(_0x13d326={'enumerable':!![],'get':function(){return _0x1dd9aa[_0x1782f4];}}),Object[_0x45ea45(0x1a0)](_0x4c7cdf,_0x9e06c9,_0x13d326);}:function(_0x159fb1,_0x337c3a,_0x25f34d,_0x53cd3b){if(_0x53cd3b===undefined)_0x53cd3b=_0x25f34d;_0x159fb1[_0x53cd3b]=_0x337c3a[_0x25f34d];}),__exportStar=this&&this[a10_0x5b471a(0x19e)]||function(_0x12c131,_0x1a5e6b){var _0x514453=a10_0x5b471a;for(var _0x370875 in _0x12c131)if(_0x370875!==_0x514453(0x1b1)&&!Object['prototype'][_0x514453(0x1ac)][_0x514453(0x1d0)](_0x1a5e6b,_0x370875))__createBinding(_0x1a5e6b,_0x12c131,_0x370875);};Object[a10_0x5b471a(0x1a0)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=exports[a10_0x5b471a(0x1b6)]=exports[a10_0x5b471a(0x1cf)]=exports[a10_0x5b471a(0x1a3)]=exports['Provide']=exports[a10_0x5b471a(0x1bd)]=exports[a10_0x5b471a(0x1a2)]=exports['App']=exports['Init']=exports['Headers']=exports[a10_0x5b471a(0x19a)]=exports[a10_0x5b471a(0x1c8)]=exports[a10_0x5b471a(0x1cd)]=exports[a10_0x5b471a(0x1a7)]=exports['Files']=exports[a10_0x5b471a(0x1c3)]=exports['Configuration']=exports['ValidatorService']=exports['ValidatorError']=exports[a10_0x5b471a(0x1c6)]=exports[a10_0x5b471a(0x19d)]=exports[a10_0x5b471a(0x19b)]=exports[a10_0x5b471a(0x1ca)]=exports[a10_0x5b471a(0x1c1)]=exports[a10_0x5b471a(0x1bc)]=exports[a10_0x5b471a(0x1b8)]=exports['Intercept']=exports[a10_0x5b471a(0x1ce)]=exports[a10_0x5b471a(0x19c)]=exports[a10_0x5b471a(0x1c0)]=void 0x0;const getAppsConfig_1=require(a10_0x5b471a(0x1ae));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1b9),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a10_0x5b471a(0x1a6)),exports),__exportStar(require(a10_0x5b471a(0x1d2)),exports);function a10_0x1435(_0x2c5343,_0x27f459){var _0x3a5978=a10_0x3176();return a10_0x1435=function(_0x4cd20c,_0xb9e6b2){_0x4cd20c=_0x4cd20c-0x194;var _0x31763e=_0x3a5978[_0x4cd20c];return _0x31763e;},a10_0x1435(_0x2c5343,_0x27f459);}var ActionApi_1=require(a10_0x5b471a(0x1c9));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1c0),{'enumerable':!![],'get':function(){var _0x122931=a10_0x5b471a;return ActionApi_1[_0x122931(0x1c0)];}});var Action_1=require(a10_0x5b471a(0x1cb));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x19c),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a10_0x5b471a(0x194));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1ce),{'enumerable':!![],'get':function(){var _0x5e9830=a10_0x5b471a;return ActionApitest_1[_0x5e9830(0x1ce)];}});var Intercept_1=require(a10_0x5b471a(0x1d4));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1a9),{'enumerable':!![],'get':function(){var _0x401666=a10_0x5b471a;return Intercept_1[_0x401666(0x1a9)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1b8),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require('./helper/getRoutes');Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1bc),{'enumerable':!![],'get':function(){var _0x9e0eb2=a10_0x5b471a;return getRoutes_1[_0x9e0eb2(0x1bc)];}});var ApiError_1=require(a10_0x5b471a(0x1b3));Object['defineProperty'](exports,a10_0x5b471a(0x1c1),{'enumerable':!![],'get':function(){var _0x4e2a40=a10_0x5b471a;return ApiError_1[_0x4e2a40(0x1c1)];}});var cache_1=require('@anncic-api/cache');Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1ca),{'enumerable':!![],'get':function(){var _0x5ccdd5=a10_0x5b471a;return cache_1[_0x5ccdd5(0x1ca)];}});var event_1=require(a10_0x5b471a(0x1a8));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x19b),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a10_0x5b471a(0x1b4));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x19d),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require('./service/ExcelService');Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1c6),{'enumerable':!![],'get':function(){var _0x17ac70=a10_0x5b471a;return ExcelService_1[_0x17ac70(0x1c6)];}});var validator_1=require('@anncic-api/validator');Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1c5),{'enumerable':!![],'get':function(){var _0x48bd5c=a10_0x5b471a;return validator_1[_0x48bd5c(0x1c5)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1a1),{'enumerable':!![],'get':function(){var _0x5ec9dc=a10_0x5b471a;return validator_1[_0x5ec9dc(0x1a1)];}});var configuration_1=require(a10_0x5b471a(0x1b5));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1d3),{'enumerable':!![],'get':function(){var _0x3773b2=a10_0x5b471a;return configuration_1[_0x3773b2(0x198)];}});var core_1=require('@midwayjs/core');Object['defineProperty'](exports,a10_0x5b471a(0x1c3),{'enumerable':!![],'get':function(){var _0x295cc3=a10_0x5b471a;return core_1[_0x295cc3(0x1c3)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1ab),{'enumerable':!![],'get':function(){var _0x4e6770=a10_0x5b471a;return core_1[_0x4e6770(0x1ab)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1a7),{'enumerable':!![],'get':function(){var _0x278250=a10_0x5b471a;return core_1[_0x278250(0x1a7)];}}),Object[a10_0x5b471a(0x1a0)](exports,'Body',{'enumerable':!![],'get':function(){var _0x162e0c=a10_0x5b471a;return core_1[_0x162e0c(0x1cd)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1c8),{'enumerable':!![],'get':function(){var _0xa933a0=a10_0x5b471a;return core_1[_0xa933a0(0x1c8)];}}),Object[a10_0x5b471a(0x1a0)](exports,'Query',{'enumerable':!![],'get':function(){var _0x19e41b=a10_0x5b471a;return core_1[_0x19e41b(0x19a)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1b0),{'enumerable':!![],'get':function(){var _0xf0bd59=a10_0x5b471a;return core_1[_0xf0bd59(0x1b0)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x199),{'enumerable':!![],'get':function(){var _0x1effef=a10_0x5b471a;return core_1[_0x1effef(0x199)];}});var core_2=require(a10_0x5b471a(0x1cc));Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x19f),{'enumerable':!![],'get':function(){var _0x5d4231=a10_0x5b471a;return core_2[_0x5d4231(0x19f)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1a2),{'enumerable':!![],'get':function(){var _0x4becc8=a10_0x5b471a;return core_2[_0x4becc8(0x1a2)];}}),Object[a10_0x5b471a(0x1a0)](exports,a10_0x5b471a(0x1bd),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object['defineProperty'](exports,'Provide',{'enumerable':!![],'get':function(){var _0x21518a=a10_0x5b471a;return core_2[_0x21518a(0x1aa)];}}),Object['defineProperty'](exports,a10_0x5b471a(0x1a3),{'enumerable':!![],'get':function(){var _0x458375=a10_0x5b471a;return core_2[_0x458375(0x1a3)];}}),Object[a10_0x5b471a(0x1a0)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x130b3c=a10_0x5b471a;return core_2[_0x130b3c(0x1cf)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a10_0x5b471a(0x1b9)]=getAppsConfig_1[a10_0x5b471a(0x1b9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x212c7d=a11_0x5bce;(function(_0x4874f3,_0x3390a5){var _0x44f32d=a11_0x5bce,_0x4e0958=_0x4874f3();while(!![]){try{var _0x59d503=parseInt(_0x44f32d(0xfe))/0x1*(parseInt(_0x44f32d(0x128))/0x2)+parseInt(_0x44f32d(0x125))/0x3+parseInt(_0x44f32d(0xf5))/0x4*(-parseInt(_0x44f32d(0x10f))/0x5)+parseInt(_0x44f32d(0x104))/0x6+-parseInt(_0x44f32d(0x120))/0x7+-parseInt(_0x44f32d(0xef))/0x8+-parseInt(_0x44f32d(0xee))/0x9*(parseInt(_0x44f32d(0xea))/0xa);if(_0x59d503===_0x3390a5)break;else _0x4e0958['push'](_0x4e0958['shift']());}catch(_0x1d78aa){_0x4e0958['push'](_0x4e0958['shift']());}}}(a11_0x1d9b,0xde5e6));function a11_0x1d9b(){var _0x3cf54e=['function','5227bJjlVX','HEADERS_SIGNATURE','toString','请求超时,请重试或改善网络环境','entries','search','5376936SYRxiM','../exception/ApiError','length','HEADERS_LACK','abs','__metadata','(((.+)+)+)+$','Singleton','@midwayjs/core','prototype','map','445zVGDMy','join','decorate','缺少头信息:','fromEntries','logintimeout','checkcode','token','design:type','TIMEOUT_LOGINTIME','secret','now','ScopeEnum','HEADERS_CHECKCODE','push','undefined','TIMEOUT','1640674qcKAAc','device','Scope','object','__decorate','5286993whBfFq','config','getcheck','494fCsxGF','Config','anncicapi','requesttime','timeout','Provide','getsign','333650tYcZGk','logintime','defineProperty','apply','189QABpgt','3517232dTTxGN','getOwnPropertyDescriptor','secret=','MD5','HEADERS_DEVICE','ApiService','74788JRUUFE','toLowerCase','devices','signature','checksign','ApiError','password','metadata'];a11_0x1d9b=function(){return _0x3cf54e;};return a11_0x1d9b();}var a11_0x4f20a7=(function(){var _0x382dc4=!![];return function(_0x3d8dcc,_0x1b8cd7){var _0x204bd1=_0x382dc4?function(){var _0x41a55e=a11_0x5bce;if(_0x1b8cd7){var _0x530fcc=_0x1b8cd7[_0x41a55e(0xed)](_0x3d8dcc,arguments);return _0x1b8cd7=null,_0x530fcc;}}:function(){};return _0x382dc4=![],_0x204bd1;};}()),a11_0x4dc5f6=a11_0x4f20a7(this,function(){var _0x1b3553=a11_0x5bce;return a11_0x4dc5f6[_0x1b3553(0x100)]()[_0x1b3553(0x103)](_0x1b3553(0x10a))[_0x1b3553(0x100)]()['constructor'](a11_0x4dc5f6)[_0x1b3553(0x103)](_0x1b3553(0x10a));});function a11_0x5bce(_0x297af8,_0x497b61){var _0x27a5d1=a11_0x1d9b();return a11_0x5bce=function(_0x4dc5f6,_0x4f20a7){_0x4dc5f6=_0x4dc5f6-0xe9;var _0x1d9bec=_0x27a5d1[_0x4dc5f6];return _0x1d9bec;},a11_0x5bce(_0x297af8,_0x497b61);}a11_0x4dc5f6();'use strict';var __decorate=this&&this[a11_0x212c7d(0x124)]||function(_0x173f2d,_0x5d8714,_0x500b27,_0x3193c0){var _0xdc5dbb=a11_0x212c7d,_0x97c277=arguments[_0xdc5dbb(0x106)],_0x5f53e0=_0x97c277<0x3?_0x5d8714:_0x3193c0===null?_0x3193c0=Object[_0xdc5dbb(0xf0)](_0x5d8714,_0x500b27):_0x3193c0,_0xff4bd4;if(typeof Reflect===_0xdc5dbb(0x123)&&typeof Reflect[_0xdc5dbb(0x111)]===_0xdc5dbb(0xfd))_0x5f53e0=Reflect[_0xdc5dbb(0x111)](_0x173f2d,_0x5d8714,_0x500b27,_0x3193c0);else{for(var _0x421cf0=_0x173f2d['length']-0x1;_0x421cf0>=0x0;_0x421cf0--)if(_0xff4bd4=_0x173f2d[_0x421cf0])_0x5f53e0=(_0x97c277<0x3?_0xff4bd4(_0x5f53e0):_0x97c277>0x3?_0xff4bd4(_0x5d8714,_0x500b27,_0x5f53e0):_0xff4bd4(_0x5d8714,_0x500b27))||_0x5f53e0;}return _0x97c277>0x3&&_0x5f53e0&&Object[_0xdc5dbb(0xec)](_0x5d8714,_0x500b27,_0x5f53e0),_0x5f53e0;},__metadata=this&&this[a11_0x212c7d(0x109)]||function(_0x4688b9,_0x10f4e3){var _0x2efb25=a11_0x212c7d;if(typeof Reflect===_0x2efb25(0x123)&&typeof Reflect[_0x2efb25(0xfc)]==='function')return Reflect['metadata'](_0x4688b9,_0x10f4e3);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11_0x212c7d(0xf4)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a11_0x212c7d(0x10c)),ApiError_1=require(a11_0x212c7d(0x105));let ApiService=class ApiService{['password'](_0x5dc607){var _0x9dd4ae=a11_0x212c7d,_0x45c707;return _0x5dc607?(0x0,crypto_js_1['MD5'])(_0x5dc607+(0x0,crypto_js_1[_0x9dd4ae(0xf2)])((0x0,crypto_js_1[_0x9dd4ae(0xf2)])(_0x5dc607)[_0x9dd4ae(0x100)]()+((_0x45c707=this[_0x9dd4ae(0x126)])===null||_0x45c707===void 0x0?void 0x0:_0x45c707[_0x9dd4ae(0xfb)]))['toString']())[_0x9dd4ae(0x100)]():'';}[a11_0x212c7d(0x127)](_0x4cfb1e,_0x40cbae,_0x1a0406=Date[a11_0x212c7d(0x11a)]()){var _0x5cb704=a11_0x212c7d;return{'Token':_0x4cfb1e,'Logintime':_0x1a0406,'Checkcode':this[_0x5cb704(0x115)](_0x4cfb1e,_0x40cbae,_0x1a0406)};}[a11_0x212c7d(0xe9)](_0x4666f7={}){var _0x4624e1=a11_0x212c7d,_0x1a6740,_0x3561cb;const _0x27c838=[],_0x951a51=Object[_0x4624e1(0x113)](Object[_0x4624e1(0x102)](_0x4666f7)[_0x4624e1(0x10e)](_0x5ec869=>[_0x5ec869[0x0][_0x4624e1(0xf6)](),_0x5ec869[0x1]]));for(let _0x44d8e0 of[_0x4624e1(0x121),'requesttime',_0x4624e1(0x116),_0x4624e1(0xeb),_0x4624e1(0x115)]){if(typeof _0x951a51[_0x44d8e0]==_0x4624e1(0x11e))throw new AnnError(ApiError_1[_0x4624e1(0xfa)][_0x4624e1(0x107)],{'message':_0x4624e1(0x112)+_0x44d8e0});_0x27c838[_0x4624e1(0x11d)](_0x44d8e0+'='+_0x951a51[_0x44d8e0]);}_0x951a51['requesttime']&&((_0x1a6740=_0x951a51[_0x4624e1(0x12b)])===null||_0x1a6740===void 0x0?void 0x0:_0x1a6740['length'])==0xa&&(_0x951a51['requesttime']=_0x951a51[_0x4624e1(0x12b)]*0x3e8);if(this[_0x4624e1(0x126)][_0x4624e1(0x12c)]&&Date[_0x4624e1(0x11a)]()-Math[_0x4624e1(0x108)](_0x951a51[_0x4624e1(0x12b)])>this[_0x4624e1(0x126)][_0x4624e1(0x12c)])throw new AnnError(ApiError_1[_0x4624e1(0xfa)][_0x4624e1(0x11f)],{'message':_0x4624e1(0x101),'requesttime':_0x951a51[_0x4624e1(0x12b)],'timestamp':Date[_0x4624e1(0x11a)]()});if((((_0x3561cb=this[_0x4624e1(0x126)][_0x4624e1(0xf7)][_0x951a51[_0x4624e1(0x121)]])===null||_0x3561cb===void 0x0?void 0x0:_0x3561cb['logintimeout'])||0x0)>0x0&&Date['now']()-Math[_0x4624e1(0x108)](_0x951a51[_0x4624e1(0xeb)])>this['config'][_0x4624e1(0xf7)][_0x951a51[_0x4624e1(0x121)]][_0x4624e1(0x114)])throw new AnnError(ApiError_1[_0x4624e1(0xfa)][_0x4624e1(0x118)]);if(!this[_0x4624e1(0x126)]['devices'][_0x951a51[_0x4624e1(0x121)]]||!this[_0x4624e1(0x126)][_0x4624e1(0xf7)][_0x951a51[_0x4624e1(0x121)]]['secret']||!this[_0x4624e1(0x126)][_0x4624e1(0xf7)][_0x951a51['device']][_0x4624e1(0x115)])throw new AnnError(ApiError_1[_0x4624e1(0xfa)][_0x4624e1(0xf3)]);if(_0x951a51[_0x4624e1(0x116)]&&_0x951a51[_0x4624e1(0x115)]!=this[_0x4624e1(0x115)](_0x951a51['token'],_0x951a51[_0x4624e1(0x121)],_0x951a51[_0x4624e1(0xeb)]))throw new AnnError(ApiError_1['ApiError'][_0x4624e1(0x11c)]);return _0x27c838['push'](_0x4624e1(0xf1)+this[_0x4624e1(0x126)]['devices'][_0x951a51[_0x4624e1(0x121)]][_0x4624e1(0x119)]),(0x0,crypto_js_1['MD5'])(_0x27c838['sort']()[_0x4624e1(0x110)](''))[_0x4624e1(0x100)]();}['checkcode'](_0x387e74,_0x51b496,_0xb83f4d=Date[a11_0x212c7d(0x11a)]()){var _0x59aca3=a11_0x212c7d,_0x2cf598,_0x40a1a8,_0x3b998e;if(!((_0x2cf598=this[_0x59aca3(0x126)])===null||_0x2cf598===void 0x0?void 0x0:_0x2cf598[_0x59aca3(0xf7)][_0x51b496])||!((_0x3b998e=(_0x40a1a8=this[_0x59aca3(0x126)])===null||_0x40a1a8===void 0x0?void 0x0:_0x40a1a8[_0x59aca3(0xf7)][_0x51b496])===null||_0x3b998e===void 0x0?void 0x0:_0x3b998e[_0x59aca3(0x115)]))throw new AnnError(ApiError_1[_0x59aca3(0xfa)][_0x59aca3(0xf3)]);return(0x0,crypto_js_1[_0x59aca3(0xf2)])(_0x387e74+(0x0,crypto_js_1[_0x59aca3(0xf2)])(_0xb83f4d+this[_0x59aca3(0x126)][_0x59aca3(0xf7)][_0x51b496][_0x59aca3(0x115)])[_0x59aca3(0x100)]())['toString']();}[a11_0x212c7d(0xf9)](_0x3c1c68={}){var _0x262d1a=a11_0x212c7d;const _0x592986=Object['fromEntries'](Object[_0x262d1a(0x102)](_0x3c1c68)[_0x262d1a(0x10e)](_0x541260=>[_0x541260[0x0][_0x262d1a(0xf6)](),_0x541260[0x1]]));if(!(_0x592986===null||_0x592986===void 0x0?void 0x0:_0x592986[_0x262d1a(0xf8)]))throw new AnnError(ApiError_1[_0x262d1a(0xfa)][_0x262d1a(0x107)],{'message':'缺少头信息:signature'});if((_0x592986===null||_0x592986===void 0x0?void 0x0:_0x592986[_0x262d1a(0xf8)])!=this[_0x262d1a(0xe9)](_0x592986))throw new AnnError(ApiError_1[_0x262d1a(0xfa)][_0x262d1a(0xff)]);return!![];}};__decorate([(0x0,core_1[a11_0x212c7d(0x129)])(a11_0x212c7d(0x12a)),__metadata(a11_0x212c7d(0x117),Object)],ApiService[a11_0x212c7d(0x10d)],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x212c7d(0x12d)])(),(0x0,core_1[a11_0x212c7d(0x122)])(core_1[a11_0x212c7d(0x11b)][a11_0x212c7d(0x10b)])],ApiService),exports[a11_0x212c7d(0xf4)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a12_0x14bcfb=a12_0x4c83;(function(_0x6e08ec,_0x5d90bb){const _0xb614e8=a12_0x4c83,_0x1d5634=_0x6e08ec();while(!![]){try{const _0x415ead=parseInt(_0xb614e8(0x1d0))/0x1*(parseInt(_0xb614e8(0x1f6))/0x2)+-parseInt(_0xb614e8(0x1dc))/0x3*(-parseInt(_0xb614e8(0x1de))/0x4)+-parseInt(_0xb614e8(0x1e1))/0x5*(-parseInt(_0xb614e8(0x1ff))/0x6)+parseInt(_0xb614e8(0x217))/0x7+parseInt(_0xb614e8(0x21a))/0x8+-parseInt(_0xb614e8(0x210))/0x9+-parseInt(_0xb614e8(0x1eb))/0xa;if(_0x415ead===_0x5d90bb)break;else _0x1d5634['push'](_0x1d5634['shift']());}catch(_0x357112){_0x1d5634['push'](_0x1d5634['shift']());}}}(a12_0x55f8,0xe29db));const a12_0x15fd40=(function(){let _0x4ab740=!![];return function(_0x5bf1cb,_0x20d42f){const _0x11834a=_0x4ab740?function(){const _0x34ec1c=a12_0x4c83;if(_0x20d42f){const _0x520911=_0x20d42f[_0x34ec1c(0x1d7)](_0x5bf1cb,arguments);return _0x20d42f=null,_0x520911;}}:function(){};return _0x4ab740=![],_0x11834a;};}()),a12_0x382c29=a12_0x15fd40(this,function(){const _0x56a3fd=a12_0x4c83;return a12_0x382c29[_0x56a3fd(0x1fd)]()[_0x56a3fd(0x1ea)](_0x56a3fd(0x1fb))[_0x56a3fd(0x1fd)]()[_0x56a3fd(0x1e9)](a12_0x382c29)[_0x56a3fd(0x1ea)]('(((.+)+)+)+$');});function a12_0x4c83(_0x5c1fea,_0x48299b){const _0x5b2c45=a12_0x55f8();return a12_0x4c83=function(_0x382c29,_0x15fd40){_0x382c29=_0x382c29-0x1c8;let _0x55f83f=_0x5b2c45[_0x382c29];return _0x55f83f;},a12_0x4c83(_0x5c1fea,_0x48299b);}function a12_0x55f8(){const _0x24ec37=['prefix','ApitestStaticController','../helper/getRoutes','description','module','length','126MGqebX','__devices__','Inject','@midwayjs/core','Singleton','(((.+)+)+)+$','Param','toString','push','4675746vfIgtq','cache-control','Provide','.css','/apiteststatic/','apitesthtml','utf-8','apidoc','metadata','../../public/','__esModule','object','Get','.js','route','join','Environment','3391425JQRnUD','ScopeEnum','prototype','summary','design:type','content-type','devices','3033779EQMPqC','Scope','design:returntype','1291376eNGupb','apiteststatic','request','defineProperty','decorate','apitest','ApitestService','/apiteststatic/*','routes','Request','readFileSync','28581sjpSSv','function','Config','/apitest','path','__decorate','design:paramtypes','apply','apitestmodule','set','__metadata','extname','14922pNczgZ','filepath','1388Vnaark','url','method','5Wjltry','anncicapi','/apitest-:module','replace','getRoutes','__apiList__','MidwayEnvironmentService','isDevelopmentEnvironment','constructor','search','35956470XkZofJ','ctx','../../public/index.html','__param','stringify'];a12_0x55f8=function(){return _0x24ec37;};return a12_0x55f8();}a12_0x382c29();'use strict';var __decorate=this&&this[a12_0x14bcfb(0x1d5)]||function(_0x2ea03b,_0x438336,_0xc86578,_0x3938ad){const _0x187509=a12_0x14bcfb;var _0x3ef688=arguments[_0x187509(0x1f5)],_0x2b1fab=_0x3ef688<0x3?_0x438336:_0x3938ad===null?_0x3938ad=Object['getOwnPropertyDescriptor'](_0x438336,_0xc86578):_0x3938ad,_0x535b80;if(typeof Reflect===_0x187509(0x20a)&&typeof Reflect[_0x187509(0x1c9)]===_0x187509(0x1d1))_0x2b1fab=Reflect[_0x187509(0x1c9)](_0x2ea03b,_0x438336,_0xc86578,_0x3938ad);else{for(var _0x1cc088=_0x2ea03b[_0x187509(0x1f5)]-0x1;_0x1cc088>=0x0;_0x1cc088--)if(_0x535b80=_0x2ea03b[_0x1cc088])_0x2b1fab=(_0x3ef688<0x3?_0x535b80(_0x2b1fab):_0x3ef688>0x3?_0x535b80(_0x438336,_0xc86578,_0x2b1fab):_0x535b80(_0x438336,_0xc86578))||_0x2b1fab;}return _0x3ef688>0x3&&_0x2b1fab&&Object[_0x187509(0x1c8)](_0x438336,_0xc86578,_0x2b1fab),_0x2b1fab;},__metadata=this&&this[a12_0x14bcfb(0x1da)]||function(_0x318781,_0x2b8d51){const _0xb7b6b9=a12_0x14bcfb;if(typeof Reflect===_0xb7b6b9(0x20a)&&typeof Reflect[_0xb7b6b9(0x207)]===_0xb7b6b9(0x1d1))return Reflect[_0xb7b6b9(0x207)](_0x318781,_0x2b8d51);},__param=this&&this[a12_0x14bcfb(0x1ee)]||function(_0x3475ee,_0x3348a0){return function(_0x4a6773,_0x5dc213){_0x3348a0(_0x4a6773,_0x5dc213,_0x3475ee);};};Object[a12_0x14bcfb(0x1c8)](exports,a12_0x14bcfb(0x209),{'value':!![]}),exports[a12_0x14bcfb(0x1f1)]=exports[a12_0x14bcfb(0x1cb)]=void 0x0;const path_1=require(a12_0x14bcfb(0x1d4)),fs_1=require('fs'),core_1=require(a12_0x14bcfb(0x1f9)),core_2=require(a12_0x14bcfb(0x1f9)),core_3=require('@midwayjs/core'),getRoutes_1=require(a12_0x14bcfb(0x1f2));let ApitestService=class ApitestService{async[a12_0x14bcfb(0x206)](_0x5bfb66){const _0x4d6c56=a12_0x14bcfb,_0xce374c=(0x0,getRoutes_1[_0x4d6c56(0x1e5)])(_0x5bfb66),_0x2d8036=[];for(let _0x5873dc in _0xce374c){for(let _0x449945 in _0xce374c[_0x5873dc][_0x4d6c56(0x1cd)]){let _0x39eb23=_0xce374c[_0x5873dc][_0x4d6c56(0x1cd)][_0x449945],_0x594372=[];for(let _0x4ca42e in _0x39eb23['request']){_0x594372[_0x4d6c56(0x1fe)](_0x39eb23[_0x4d6c56(0x21c)][_0x4ca42e]);}_0x2d8036['push']({'title':_0xce374c[_0x5873dc]['summary']+':'+_0x39eb23[_0x4d6c56(0x213)],'prefix':_0xce374c[_0x5873dc][_0x4d6c56(0x1f0)],'router':_0x39eb23[_0x4d6c56(0x20d)],'method':_0x39eb23[_0x4d6c56(0x1e0)],'describe':_0x39eb23[_0x4d6c56(0x1f3)]||'','filepath':_0xce374c[_0x5873dc]['filepath']||'','request':_0x594372});}}const _0x2f3282=(0x0,path_1['join'])(__dirname,_0x4d6c56(0x1ed));return(0x0,fs_1['readFileSync'])(_0x2f3282,{'encoding':_0x4d6c56(0x205)})[_0x4d6c56(0x1e4)](/__res__/g,'/apiteststatic/')[_0x4d6c56(0x1e4)](_0x4d6c56(0x1e6),JSON[_0x4d6c56(0x1ef)](_0x2d8036))[_0x4d6c56(0x1e4)](_0x4d6c56(0x1f7),JSON['stringify'](this['config'][_0x4d6c56(0x216)]));}};__decorate([(0x0,core_3[a12_0x14bcfb(0x1d2)])(a12_0x14bcfb(0x1e2)),__metadata('design:type',Object)],ApitestService[a12_0x14bcfb(0x212)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x14bcfb(0x201)])('apitest'),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a12_0x14bcfb(0x1fa)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x14bcfb(0x204)](){const _0x569aad=a12_0x14bcfb;if(this[_0x569aad(0x1ca)]){const _0x324791={'module':![]};return this[_0x569aad(0x20f)][_0x569aad(0x1e8)]()&&(_0x324791['filepath']=!![]),await this['ApitestService'][_0x569aad(0x206)](_0x324791);}return'';}async[a12_0x14bcfb(0x1d8)](_0x11d010){const _0x13e784=a12_0x14bcfb;if(this[_0x13e784(0x1ca)]){const _0x2bbea7={'module':_0x11d010};return this[_0x13e784(0x20f)][_0x13e784(0x1e8)]()&&(_0x2bbea7[_0x13e784(0x1dd)]=!![]),await this[_0x13e784(0x1cb)]['apidoc'](_0x2bbea7);}return'';}async[a12_0x14bcfb(0x21b)](){const _0x37dae8=a12_0x14bcfb;if((0x0,path_1[_0x37dae8(0x1db)])(this[_0x37dae8(0x1ec)][_0x37dae8(0x21c)]['url'])){var _0x33de5f=(0x0,path_1[_0x37dae8(0x20e)])(__dirname,_0x37dae8(0x208)+this[_0x37dae8(0x1ec)][_0x37dae8(0x21c)][_0x37dae8(0x1df)][_0x37dae8(0x1e4)](_0x37dae8(0x203),'/'));if(_0x33de5f['substring'](_0x33de5f[_0x37dae8(0x1f5)]-0xb)!='/index.html'){this[_0x37dae8(0x1ec)][_0x37dae8(0x1d9)](_0x37dae8(0x200),'public,\x20max-age=604800');if((0x0,path_1['extname'])(this['ctx'][_0x37dae8(0x21c)]['url'])==_0x37dae8(0x20c))this[_0x37dae8(0x1ec)][_0x37dae8(0x1d9)](_0x37dae8(0x215),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x37dae8(0x1db)])(this[_0x37dae8(0x1ec)][_0x37dae8(0x21c)][_0x37dae8(0x1df)])==_0x37dae8(0x202)&&this[_0x37dae8(0x1ec)]['set'](_0x37dae8(0x215),'text/css;\x20charset=utf-8');return(0x0,fs_1['existsSync'])(_0x33de5f)&&(0x0,fs_1[_0x37dae8(0x1cf)])(_0x33de5f,{'encoding':_0x37dae8(0x205)});}}return'';}};__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x14bcfb(0x214),Object)],ApitestStaticController[a12_0x14bcfb(0x212)],a12_0x14bcfb(0x1ec),void 0x0),__decorate([(0x0,core_3[a12_0x14bcfb(0x1f8)])(),__metadata(a12_0x14bcfb(0x214),core_1[a12_0x14bcfb(0x1e7)])],ApitestStaticController[a12_0x14bcfb(0x212)],'Environment',void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x14bcfb(0x214),ApitestService)],ApitestStaticController['prototype'],a12_0x14bcfb(0x1cb),void 0x0),__decorate([(0x0,core_3[a12_0x14bcfb(0x1d2)])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x14bcfb(0x212)],a12_0x14bcfb(0x1ca),void 0x0),__decorate([(0x0,core_3[a12_0x14bcfb(0x1d2)])(a12_0x14bcfb(0x1e2)),__metadata('design:type',Object)],ApitestStaticController['prototype'],'config',void 0x0),__decorate([(0x0,core_2[a12_0x14bcfb(0x20b)])(a12_0x14bcfb(0x1d3)),__metadata('design:type',Function),__metadata(a12_0x14bcfb(0x1d6),[]),__metadata(a12_0x14bcfb(0x219),Promise)],ApitestStaticController[a12_0x14bcfb(0x212)],a12_0x14bcfb(0x204),null),__decorate([(0x0,core_2['Get'])(a12_0x14bcfb(0x1e3)),__param(0x0,(0x0,core_2[a12_0x14bcfb(0x1fc)])(a12_0x14bcfb(0x1f4))),__metadata(a12_0x14bcfb(0x214),Function),__metadata('design:paramtypes',[String]),__metadata(a12_0x14bcfb(0x219),Promise)],ApitestStaticController[a12_0x14bcfb(0x212)],'apitestmodule',null),__decorate([(0x0,core_2['Get'])(a12_0x14bcfb(0x1cc)),__metadata(a12_0x14bcfb(0x214),Function),__metadata(a12_0x14bcfb(0x1d6),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x14bcfb(0x212)],a12_0x14bcfb(0x21b),null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a12_0x14bcfb(0x218)])(core_3[a12_0x14bcfb(0x211)][a12_0x14bcfb(0x1ce)])],ApitestStaticController),exports[a12_0x14bcfb(0x1f1)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13_0x388c02=a13_0x4223;(function(_0x46b474,_0x3c648d){const _0x12b643=a13_0x4223,_0x46035b=_0x46b474();while(!![]){try{const _0x4f71dc=-parseInt(_0x12b643(0x156))/0x1*(parseInt(_0x12b643(0x187))/0x2)+-parseInt(_0x12b643(0x170))/0x3+parseInt(_0x12b643(0x189))/0x4+-parseInt(_0x12b643(0x183))/0x5+-parseInt(_0x12b643(0x188))/0x6+parseInt(_0x12b643(0x16c))/0x7*(parseInt(_0x12b643(0x165))/0x8)+-parseInt(_0x12b643(0x176))/0x9*(-parseInt(_0x12b643(0x184))/0xa);if(_0x4f71dc===_0x3c648d)break;else _0x46035b['push'](_0x46035b['shift']());}catch(_0xc80a64){_0x46035b['push'](_0x46035b['shift']());}}}(a13_0x131e,0x7e6ec));const a13_0x3067e8=(function(){let _0x8826e9=!![];return function(_0x52a784,_0x3d6bf3){const _0x2fb7f4=_0x8826e9?function(){const _0x579b98=a13_0x4223;if(_0x3d6bf3){const _0x46b424=_0x3d6bf3[_0x579b98(0x16f)](_0x52a784,arguments);return _0x3d6bf3=null,_0x46b424;}}:function(){};return _0x8826e9=![],_0x2fb7f4;};}()),a13_0x3573ea=a13_0x3067e8(this,function(){const _0x4678ff=a13_0x4223;return a13_0x3573ea['toString']()['search']('(((.+)+)+)+$')[_0x4678ff(0x174)]()[_0x4678ff(0x155)](a13_0x3573ea)['search'](_0x4678ff(0x169));});function a13_0x4223(_0x2c1e66,_0x45fb20){const _0x510e9b=a13_0x131e();return a13_0x4223=function(_0x3573ea,_0x3067e8){_0x3573ea=_0x3573ea-0x150;let _0x131e92=_0x510e9b[_0x3573ea];return _0x131e92;},a13_0x4223(_0x2c1e66,_0x45fb20);}a13_0x3573ea();'use strict';var __decorate=this&&this[a13_0x388c02(0x192)]||function(_0x3e790f,_0x23c8c2,_0x2e3d15,_0x271574){const _0x2d6d35=a13_0x388c02;var _0x2c01fc=arguments[_0x2d6d35(0x181)],_0x532fe5=_0x2c01fc<0x3?_0x23c8c2:_0x271574===null?_0x271574=Object[_0x2d6d35(0x18b)](_0x23c8c2,_0x2e3d15):_0x271574,_0x22d51f;if(typeof Reflect===_0x2d6d35(0x16a)&&typeof Reflect[_0x2d6d35(0x17b)]==='function')_0x532fe5=Reflect[_0x2d6d35(0x17b)](_0x3e790f,_0x23c8c2,_0x2e3d15,_0x271574);else{for(var _0x41127b=_0x3e790f['length']-0x1;_0x41127b>=0x0;_0x41127b--)if(_0x22d51f=_0x3e790f[_0x41127b])_0x532fe5=(_0x2c01fc<0x3?_0x22d51f(_0x532fe5):_0x2c01fc>0x3?_0x22d51f(_0x23c8c2,_0x2e3d15,_0x532fe5):_0x22d51f(_0x23c8c2,_0x2e3d15))||_0x532fe5;}return _0x2c01fc>0x3&&_0x532fe5&&Object[_0x2d6d35(0x191)](_0x23c8c2,_0x2e3d15,_0x532fe5),_0x532fe5;},__metadata=this&&this[a13_0x388c02(0x159)]||function(_0x2a83d9,_0x514260){const _0x20e603=a13_0x388c02;if(typeof Reflect==='object'&&typeof Reflect[_0x20e603(0x18f)]===_0x20e603(0x179))return Reflect['metadata'](_0x2a83d9,_0x514260);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a13_0x388c02(0x172)),koasend=require(a13_0x388c02(0x160)),core_1=require(a13_0x388c02(0x185));let ExcelService=class ExcelService{async[a13_0x388c02(0x157)](_0x212d32,_0x1318f6,_0x542175=[0x0]){const _0x27566c=a13_0x388c02;var _0x251f0a,_0x52d28c;const _0x13d8a5=new exceljs['Workbook'](),_0x408df3=[];let _0x30d426=_0x212d32[_0x27566c(0x168)](/(\\|\/)/g,'/')[_0x27566c(0x168)](/\/{2,}/g,'/');!(_0x30d426===null||_0x30d426===void 0x0?void 0x0:_0x30d426[_0x27566c(0x158)]('/'))&&(_0x30d426=this[_0x27566c(0x15b)][_0x27566c(0x167)]()+'/'+_0x30d426);try{await _0x13d8a5[_0x27566c(0x162)][_0x27566c(0x18a)](_0x30d426);}catch(_0x59f5e0){return console['log']('Api\x20Excel\x20Error:\x20'+_0x30d426+_0x27566c(0x178)),_0x408df3;}for(const _0x5d19d2 of _0x542175){const _0x1cae6d=lodash[_0x27566c(0x190)](_0x5d19d2)?((_0x251f0a=_0x13d8a5[_0x27566c(0x182)])===null||_0x251f0a===void 0x0?void 0x0:_0x251f0a[_0x5d19d2])||undefined:_0x13d8a5['getWorksheet'](_0x5d19d2);if(_0x1cae6d){var _0x2cb752=0x1;const _0x4377a3=_0x1cae6d[_0x27566c(0x166)](0x1),_0x1afc08=await new Promise(_0x339868=>{const _0x316dfa=_0x27566c,_0x2fbddc={};_0x4377a3[_0x316dfa(0x15c)]((_0x4d61a2,_0x5de14f)=>{const _0x4e76fd=_0x316dfa;for(const _0x31f061 of _0x1318f6){if(_0x4d61a2[_0x4e76fd(0x152)]==_0x31f061['header'])_0x2cb752=0x2,_0x2fbddc[_0x31f061[_0x4e76fd(0x15e)]]={'header':_0x4d61a2[_0x4e76fd(0x153)],'handler':_0x31f061[_0x4e76fd(0x17a)]};else{if(!_0x2fbddc[_0x31f061['key']])try{const _0x158048=_0x4377a3&&_0x4377a3[_0x4e76fd(0x171)](_0x31f061[_0x4e76fd(0x18c)]);_0x158048&&(_0x2fbddc[_0x31f061[_0x4e76fd(0x15e)]]={'header':_0x158048[_0x4e76fd(0x153)],'handler':_0x31f061[_0x4e76fd(0x17a)]});}catch{}}}_0x4377a3[_0x4e76fd(0x15a)]==_0x5de14f&&_0x339868(_0x2fbddc);});});for(const _0x2fec6a of _0x1cae6d[_0x27566c(0x17f)](_0x2cb752,_0x1cae6d[_0x27566c(0x173)])){const _0x284ebd={};for(const _0x4a28a5 in _0x1afc08){if(_0x1afc08[_0x4a28a5]['header']){const _0x1c4ad3=_0x2fec6a&&_0x2fec6a[_0x27566c(0x171)](_0x1afc08[_0x4a28a5][_0x27566c(0x18c)]);typeof((_0x52d28c=_0x1afc08[_0x4a28a5])===null||_0x52d28c===void 0x0?void 0x0:_0x52d28c[_0x27566c(0x17a)])==_0x27566c(0x179)?_0x284ebd[_0x4a28a5]=await _0x1afc08[_0x4a28a5]['handler']((_0x1c4ad3===null||_0x1c4ad3===void 0x0?void 0x0:_0x1c4ad3[_0x27566c(0x174)]())||'',_0x1c4ad3[_0x27566c(0x161)]):_0x284ebd[_0x4a28a5]=(_0x1c4ad3===null||_0x1c4ad3===void 0x0?void 0x0:_0x1c4ad3['toString']())||'';}}Object[_0x27566c(0x18d)](_0x284ebd)[_0x27566c(0x181)]>0x0&&Object[_0x27566c(0x17c)](_0x284ebd)['filter'](_0x21112d=>_0x21112d!=='')[_0x27566c(0x181)]>0x0&&_0x408df3[_0x27566c(0x175)](_0x284ebd);}}}return _0x408df3;}async[a13_0x388c02(0x16e)](_0x5b1fdc,_0x256310,_0x55d569,_0xed44c5){const _0x1ff902=a13_0x388c02;var _0x25fb35,_0xde2bf5;const _0xfdd94a=new exceljs[(_0x1ff902(0x150))](),_0x376faf={},_0x3f2006=[],_0x59e65e=_0xfdd94a['addWorksheet'](_0x1ff902(0x163),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x5d81e6 in _0x256310){_0x376faf[_0x256310[_0x5d81e6][_0x1ff902(0x15e)]]=_0x256310[_0x5d81e6][_0x1ff902(0x18c)],_0x3f2006[_0x1ff902(0x175)]({'header':_0x256310[_0x5d81e6][_0x1ff902(0x18c)],'key':(_0x25fb35=_0x256310[_0x5d81e6])===null||_0x25fb35===void 0x0?void 0x0:_0x25fb35[_0x1ff902(0x15e)][_0x1ff902(0x168)](/\./g,'_')});}_0x59e65e['columns']=_0x3f2006;for(const _0x1cc5b9 of _0x55d569){const _0x494491={};for(const _0x4392e4 in _0x256310){typeof((_0xde2bf5=_0x256310[_0x4392e4])===null||_0xde2bf5===void 0x0?void 0x0:_0xde2bf5['handler'])==_0x1ff902(0x179)?_0x494491[_0x256310[_0x4392e4]['key'][_0x1ff902(0x168)](/\./g,'_')]=await _0x256310[_0x4392e4][_0x1ff902(0x17a)](_0x1cc5b9):_0x494491[_0x256310[_0x4392e4][_0x1ff902(0x15e)]['replace'](/\./g,'_')]=lodash[_0x1ff902(0x17e)](_0x1cc5b9,_0x256310[_0x4392e4]['key'],'');}_0x59e65e['addRow'](_0x494491);}let _0x368409='';const _0x47ec36=_0x5b1fdc+'-'+lodash[_0x1ff902(0x15d)](0x186a0,0xf423f)+_0x1ff902(0x18e);if(_0xed44c5&&_0xed44c5[_0x1ff902(0x158)]('/'))_0x368409=''+_0xed44c5;else _0xed44c5&&!_0xed44c5[_0x1ff902(0x158)]('/')&&!_0xed44c5['startsWith']('\x5c')?_0x368409=this['app'][_0x1ff902(0x167)]()+'/'+_0xed44c5:_0x368409=this[_0x1ff902(0x15b)][_0x1ff902(0x167)]()+'/public/xlsx/'+dayjs()['format']('YYYY/MM/DD');return(_0x368409[_0x1ff902(0x177)]('/')||_0x368409[_0x1ff902(0x177)]('\x5c'))&&(_0x368409=_0x368409[_0x1ff902(0x16d)](0x0,_0x368409[_0x1ff902(0x181)]-0x1)),_0x368409=_0x368409[_0x1ff902(0x168)](/(\\|\/)/g,'/')[_0x1ff902(0x168)](/\/{2,}/g,'/'),!fs[_0x1ff902(0x180)](_0x368409)&&fs[_0x1ff902(0x186)](_0x368409,{'recursive':!![]}),await _0xfdd94a[_0x1ff902(0x162)][_0x1ff902(0x16b)]((_0x368409+'/'+_0x47ec36)[_0x1ff902(0x168)](/(\\|\/)/g,'/')[_0x1ff902(0x168)](/\/{2,}/g,'/')),{'filename':_0x47ec36,'filepath':(_0x368409[_0x1ff902(0x16d)]((''+this[_0x1ff902(0x15b)][_0x1ff902(0x167)]())[_0x1ff902(0x181)])+'/'+_0x47ec36)['replace'](/(\\|\/)/g,'/')[_0x1ff902(0x168)](/\/{2,}/g,'/')};}async['download'](_0xd2e1a9,_0x302dcf){return await koasend(_0xd2e1a9,''+_0x302dcf);}};function a13_0x131e(){const _0x36c182=['100791fIgTRq','endsWith','\x20is\x20read\x20fail','function','handler','decorate','values','Provide','get','findRows','existsSync','length','worksheets','4790145ZPqnzJ','1690VMQZMg','@midwayjs/core','mkdirSync','16294GQHgJY','4791726EhvJrc','1222212KPBYXB','readFile','getOwnPropertyDescriptor','header','keys','.xlsx','metadata','isNumber','defineProperty','__decorate','Singleton','Workbook','ExcelService','value','col','design:type','constructor','7dRZseI','parse','startsWith','__metadata','cellCount','app','eachCell','random','key','ScopeEnum','koa-send','model','xlsx','Sheet\x201','Scope','136CEbJWu','getRow','getAppDir','replace','(((.+)+)+)+$','object','writeFile','293860JLcRcw','substring','export','apply','1740891fqZBsZ','getCell','exceljs','rowCount','toString','push'];a13_0x131e=function(){return _0x36c182;};return a13_0x131e();}__decorate([(0x0,core_1['App'])(),__metadata(a13_0x388c02(0x154),Object)],ExcelService['prototype'],a13_0x388c02(0x15b),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x388c02(0x17d)])(),(0x0,core_1[a13_0x388c02(0x164)])(core_1[a13_0x388c02(0x15f)][a13_0x388c02(0x193)])],ExcelService),exports[a13_0x388c02(0x151)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a14_0x535c(){var _0x4c4409=['anncic-api:apps:config','434252BSEQDl','1759704nIUdgG','5023893ASnhhd','4337436RWWIwG','defineProperty','24zkRuBi','apply','88584zbJzxX','constructor','toString','__esModule','43663iOunzk','4119425bOqHdo','(((.+)+)+)+$','ACTION_ROUTE_KEY','AppsConfigTmp','APPSCONFIG_KEY','ACTION_KEY'];a14_0x535c=function(){return _0x4c4409;};return a14_0x535c();}var a14_0x7462df=a14_0x571e;function a14_0x571e(_0x23e24a,_0x2457a5){var _0x50e4c2=a14_0x535c();return a14_0x571e=function(_0x254885,_0x312136){_0x254885=_0x254885-0x120;var _0x535c91=_0x50e4c2[_0x254885];return _0x535c91;},a14_0x571e(_0x23e24a,_0x2457a5);}(function(_0x5ea671,_0x4447cb){var _0x84b63c=a14_0x571e,_0x484ced=_0x5ea671();while(!![]){try{var _0x1cc637=parseInt(_0x84b63c(0x125))/0x1+-parseInt(_0x84b63c(0x132))/0x2*(parseInt(_0x84b63c(0x121))/0x3)+-parseInt(_0x84b63c(0x12d))/0x4+-parseInt(_0x84b63c(0x126))/0x5+parseInt(_0x84b63c(0x130))/0x6+parseInt(_0x84b63c(0x12f))/0x7+parseInt(_0x84b63c(0x12e))/0x8;if(_0x1cc637===_0x4447cb)break;else _0x484ced['push'](_0x484ced['shift']());}catch(_0x2cb670){_0x484ced['push'](_0x484ced['shift']());}}}(a14_0x535c,0x65ea7));var a14_0x312136=(function(){var _0x4bf336=!![];return function(_0x9ae7e2,_0x17caeb){var _0x303ab1=_0x4bf336?function(){var _0x4d2fa9=a14_0x571e;if(_0x17caeb){var _0x348ba2=_0x17caeb[_0x4d2fa9(0x120)](_0x9ae7e2,arguments);return _0x17caeb=null,_0x348ba2;}}:function(){};return _0x4bf336=![],_0x303ab1;};}()),a14_0x254885=a14_0x312136(this,function(){var _0x46b633=a14_0x571e;return a14_0x254885[_0x46b633(0x123)]()['search']('(((.+)+)+)+$')[_0x46b633(0x123)]()[_0x46b633(0x122)](a14_0x254885)['search'](_0x46b633(0x127));});a14_0x254885();'use strict';Object[a14_0x7462df(0x131)](exports,a14_0x7462df(0x124),{'value':!![]}),exports[a14_0x7462df(0x129)]=exports[a14_0x7462df(0x12a)]=exports[a14_0x7462df(0x128)]=exports[a14_0x7462df(0x12b)]=void 0x0,exports[a14_0x7462df(0x12b)]='anncic-api:action',exports[a14_0x7462df(0x128)]='anncic-api:action:route',exports[a14_0x7462df(0x12a)]=a14_0x7462df(0x12c);class AppsConfigTmp{}exports[a14_0x7462df(0x129)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0xb1a7e0=a15_0x20d5;(function(_0x44bd00,_0x2c8be6){var _0x507a61=a15_0x20d5,_0x447834=_0x44bd00();while(!![]){try{var _0x34ab18=-parseInt(_0x507a61(0x143))/0x1*(-parseInt(_0x507a61(0x165))/0x2)+parseInt(_0x507a61(0x144))/0x3*(parseInt(_0x507a61(0x158))/0x4)+parseInt(_0x507a61(0x15a))/0x5+-parseInt(_0x507a61(0x156))/0x6+-parseInt(_0x507a61(0x149))/0x7+-parseInt(_0x507a61(0x14b))/0x8*(-parseInt(_0x507a61(0x150))/0x9)+-parseInt(_0x507a61(0x152))/0xa*(parseInt(_0x507a61(0x163))/0xb);if(_0x34ab18===_0x2c8be6)break;else _0x447834['push'](_0x447834['shift']());}catch(_0x33922e){_0x447834['push'](_0x447834['shift']());}}}(a15_0x1cb7,0x3d733));var a15_0x1d5b37=(function(){var _0x5e23f7=!![];return function(_0x21b8b3,_0x48ce31){var _0x3c9398=_0x5e23f7?function(){if(_0x48ce31){var _0x3b2da1=_0x48ce31['apply'](_0x21b8b3,arguments);return _0x48ce31=null,_0x3b2da1;}}:function(){};return _0x5e23f7=![],_0x3c9398;};}()),a15_0x51d138=a15_0x1d5b37(this,function(){var _0x3c6ca4=a15_0x20d5;return a15_0x51d138[_0x3c6ca4(0x155)]()[_0x3c6ca4(0x157)](_0x3c6ca4(0x15e))[_0x3c6ca4(0x155)]()[_0x3c6ca4(0x146)](a15_0x51d138)[_0x3c6ca4(0x157)](_0x3c6ca4(0x15e));});a15_0x51d138();'use strict';var __decorate=this&&this[a15_0xb1a7e0(0x161)]||function(_0x2704b2,_0x3de2ba,_0x1e1b50,_0x535d6e){var _0x23fa99=a15_0xb1a7e0,_0x120635=arguments[_0x23fa99(0x159)],_0x3e08d3=_0x120635<0x3?_0x3de2ba:_0x535d6e===null?_0x535d6e=Object['getOwnPropertyDescriptor'](_0x3de2ba,_0x1e1b50):_0x535d6e,_0x40832e;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x23fa99(0x14d))_0x3e08d3=Reflect[_0x23fa99(0x14a)](_0x2704b2,_0x3de2ba,_0x1e1b50,_0x535d6e);else{for(var _0xa5fc11=_0x2704b2['length']-0x1;_0xa5fc11>=0x0;_0xa5fc11--)if(_0x40832e=_0x2704b2[_0xa5fc11])_0x3e08d3=(_0x120635<0x3?_0x40832e(_0x3e08d3):_0x120635>0x3?_0x40832e(_0x3de2ba,_0x1e1b50,_0x3e08d3):_0x40832e(_0x3de2ba,_0x1e1b50))||_0x3e08d3;}return _0x120635>0x3&&_0x3e08d3&&Object['defineProperty'](_0x3de2ba,_0x1e1b50,_0x3e08d3),_0x3e08d3;},__metadata=this&&this[a15_0xb1a7e0(0x147)]||function(_0x34be04,_0x527754){var _0x185422=a15_0xb1a7e0;if(typeof Reflect===_0x185422(0x142)&&typeof Reflect[_0x185422(0x167)]===_0x185422(0x14d))return Reflect[_0x185422(0x167)](_0x34be04,_0x527754);};Object[a15_0xb1a7e0(0x162)](exports,'__esModule',{'value':!![]}),exports[a15_0xb1a7e0(0x168)]=void 0x0;const validator_1=require(a15_0xb1a7e0(0x164));function a15_0x20d5(_0x4a1eca,_0xee41a9){var _0x5764f5=a15_0x1cb7();return a15_0x20d5=function(_0x51d138,_0x1d5b37){_0x51d138=_0x51d138-0x142;var _0x1cb759=_0x5764f5[_0x51d138];return _0x1cb759;},a15_0x20d5(_0x4a1eca,_0xee41a9);}function a15_0x1cb7(){var _0x3bba21=['integer','toString','1562490znwijR','search','412CBOWua','length','1434900sUsflX','min','number','是否倒序','(((.+)+)+)+$','design:type','_page','__decorate','defineProperty','5815007MkQcXn','@anncic-api/validator','592VkyXbu','Rule','metadata','PageDTO','object','1609eYJOJa','7842oeOFBb','_size','constructor','__metadata','排序方式','910427roUWxB','decorate','16EllyTX','prototype','function','第一页为1,第二页为2','_order','622467pvtYsm','RuleType','10hHHguZ','valid'];a15_0x1cb7=function(){return _0x3bba21;};return a15_0x1cb7();}class PageDTO{}__decorate([(0x0,validator_1[a15_0xb1a7e0(0x166)])('分页',validator_1[a15_0xb1a7e0(0x151)][a15_0xb1a7e0(0x15c)]()[a15_0xb1a7e0(0x154)]()[a15_0xb1a7e0(0x15b)](0x1),a15_0xb1a7e0(0x14e)),__metadata('design:type',Number)],PageDTO[a15_0xb1a7e0(0x14c)],a15_0xb1a7e0(0x160),void 0x0),__decorate([(0x0,validator_1[a15_0xb1a7e0(0x166)])('分页数量',validator_1['RuleType'][a15_0xb1a7e0(0x15c)]()['integer']()[a15_0xb1a7e0(0x15b)](0x1)),__metadata(a15_0xb1a7e0(0x15f),Number)],PageDTO[a15_0xb1a7e0(0x14c)],a15_0xb1a7e0(0x145),void 0x0),__decorate([(0x0,validator_1[a15_0xb1a7e0(0x166)])(a15_0xb1a7e0(0x148),validator_1[a15_0xb1a7e0(0x151)]['string']()['trim']()),__metadata(a15_0xb1a7e0(0x15f),String)],PageDTO['prototype'],a15_0xb1a7e0(0x14f),void 0x0),__decorate([(0x0,validator_1[a15_0xb1a7e0(0x166)])(a15_0xb1a7e0(0x15d),validator_1['RuleType'][a15_0xb1a7e0(0x15c)]()['integer']()[a15_0xb1a7e0(0x153)](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO[a15_0xb1a7e0(0x14c)],'_isreverse',void 0x0),exports['PageDTO']=PageDTO;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a16_0x2efe(_0x3053e6,_0x2d8562){var _0x569fe7=a16_0x2e43();return a16_0x2efe=function(_0x190a83,_0x436054){_0x190a83=_0x190a83-0xa1;var _0x2e433b=_0x569fe7[_0x190a83];return _0x2e433b;},a16_0x2efe(_0x3053e6,_0x2d8562);}var a16_0x526f0d=a16_0x2efe;(function(_0x644de,_0x5deec4){var _0xfbf26c=a16_0x2efe,_0x1ecc9f=_0x644de();while(!![]){try{var _0x4752e8=-parseInt(_0xfbf26c(0xab))/0x1+parseInt(_0xfbf26c(0xaa))/0x2*(-parseInt(_0xfbf26c(0xa1))/0x3)+-parseInt(_0xfbf26c(0xaf))/0x4+parseInt(_0xfbf26c(0xa3))/0x5+-parseInt(_0xfbf26c(0xae))/0x6+-parseInt(_0xfbf26c(0xa9))/0x7*(-parseInt(_0xfbf26c(0xa8))/0x8)+parseInt(_0xfbf26c(0xac))/0x9*(parseInt(_0xfbf26c(0xa2))/0xa);if(_0x4752e8===_0x5deec4)break;else _0x1ecc9f['push'](_0x1ecc9f['shift']());}catch(_0x2b6661){_0x1ecc9f['push'](_0x1ecc9f['shift']());}}}(a16_0x2e43,0x40cd5));var a16_0x436054=(function(){var _0x1750fa=!![];return function(_0x43cc08,_0x45fefe){var _0x5acbe0=_0x1750fa?function(){if(_0x45fefe){var _0x5b3be8=_0x45fefe['apply'](_0x43cc08,arguments);return _0x45fefe=null,_0x5b3be8;}}:function(){};return _0x1750fa=![],_0x5acbe0;};}()),a16_0x190a83=a16_0x436054(this,function(){var _0x5d3070=a16_0x2efe;return a16_0x190a83[_0x5d3070(0xa6)]()[_0x5d3070(0xa7)](_0x5d3070(0xa4))[_0x5d3070(0xa6)]()[_0x5d3070(0xad)](a16_0x190a83)[_0x5d3070(0xa7)](_0x5d3070(0xa4));});a16_0x190a83();'use strict';function a16_0x2e43(){var _0xea1ffc=['InterceptTargetTmp','27tQIkWK','1470VdiKtD','358575PGySxL','(((.+)+)+)+$','INTERCEPT_KEY','toString','search','8nhXlLn','205821UWLvRH','55270VUngyR','106571gLKZwd','73863tnQHtC','constructor','1437978VMDgsJ','1788676KbyoFy','defineProperty','__esModule'];a16_0x2e43=function(){return _0xea1ffc;};return a16_0x2e43();}Object[a16_0x526f0d(0xb0)](exports,a16_0x526f0d(0xb1),{'value':!![]}),exports['InterceptTargetTmp']=exports[a16_0x526f0d(0xa5)]=void 0x0,exports['INTERCEPT_KEY']='anncic-api:intercept';class InterceptTargetTmp{}exports[a16_0x526f0d(0xb2)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.40",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.40",
|
|
21
|
+
"@anncic-api/core": "^1.4.40",
|
|
22
|
+
"@anncic-api/event": "^1.4.40",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.40",
|
|
24
|
+
"@anncic-api/validator": "^1.4.40",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.40",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f9b4c511da5a1f7186b3a9c8558b62f5cbc85a7e"
|
|
41
41
|
}
|