anncic-api 1.1.48 → 1.1.49
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/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x5726(){var _0x4c7745=['1918BKrvKu','4992024xjcExH','19024KNssTm','4282680lgrtBC','text','appDir','20mb','dhauo1234420123gg3234901','zhiulanuiy7892387985hnoi','/runtime/.upload','__esModule','3275592TpgIVz','name','256709kGLHRY','defineProperty','64cznXLO','16144821QqGUIg','15567kudxFF','form'];a0_0x5726=function(){return _0x4c7745;};return a0_0x5726();}var a0_0x5c971c=a0_0x1f40;(function(_0x4c610f,_0x51d425){var _0x22c730=a0_0x1f40,_0x50ffde=_0x4c610f();while(!![]){try{var _0x138535=parseInt(_0x22c730(0x1ca))/0x1+-parseInt(_0x22c730(0x1cc))/0x2*(-parseInt(_0x22c730(0x1ce))/0x3)+parseInt(_0x22c730(0x1c8))/0x4+parseInt(_0x22c730(0x1d3))/0x5+parseInt(_0x22c730(0x1d1))/0x6+-parseInt(_0x22c730(0x1d0))/0x7*(parseInt(_0x22c730(0x1d2))/0x8)+-parseInt(_0x22c730(0x1cd))/0x9;if(_0x138535===_0x51d425)break;else _0x50ffde['push'](_0x50ffde['shift']());}catch(_0x2b37b3){_0x50ffde['push'](_0x50ffde['shift']());}}}(a0_0x5726,0x76592));function a0_0x1f40(_0x207a2f,_0x4e0338){var _0x5726c8=a0_0x5726();return a0_0x1f40=function(_0x1f40be,_0x1d8e65){_0x1f40be=_0x1f40be-0x1c4;var _0x57071e=_0x5726c8[_0x1f40be];return _0x57071e;},a0_0x1f40(_0x207a2f,_0x4e0338);}Object[a0_0x5c971c(0x1cb)](exports,a0_0x5c971c(0x1c7),{'value':!![]}),exports['default']=_0x3a7ad5=>{var _0x2186b3=a0_0x5c971c;return{'apitest':!![],'keys':_0x3a7ad5[_0x2186b3(0x1c9)],'anncicapi':{'timeout':0x1388,'password':_0x2186b3(0x1c5),'devices':{'DEFAULT':{'secret':_0x2186b3(0x1c4),'checkcode':_0x2186b3(0x1c4)}}},'bodyParser':{'enableTypes':['json',_0x2186b3(0x1cf),_0x2186b3(0x1d4),'xml'],'formLimit':_0x2186b3(0x1d6),'jsonLimit':'20mb','textLimit':_0x2186b3(0x1d6),'xmlLimit':_0x2186b3(0x1d6)},'upload':{'tmpdir':_0x3a7ad5[_0x2186b3(0x1d5)]+_0x2186b3(0x1c6),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x25365f=a1_0x579c;(function(_0x3546b9,_0x2991da){var _0x3ec8f2=a1_0x579c,_0x4def37=_0x3546b9();while(!![]){try{var _0x1707b9=parseInt(_0x3ec8f2(0x1dc))/0x1+parseInt(_0x3ec8f2(0x1e3))/0x2*(parseInt(_0x3ec8f2(0x1e1))/0x3)+-parseInt(_0x3ec8f2(0x1da))/0x4+-parseInt(_0x3ec8f2(0x1dd))/0x5*(parseInt(_0x3ec8f2(0x1e2))/0x6)+-parseInt(_0x3ec8f2(0x1de))/0x7*(-parseInt(_0x3ec8f2(0x1e0))/0x8)+parseInt(_0x3ec8f2(0x1d9))/0x9*(-parseInt(_0x3ec8f2(0x1d8))/0xa)+parseInt(_0x3ec8f2(0x1db))/0xb;if(_0x1707b9===_0x2991da)break;else _0x4def37['push'](_0x4def37['shift']());}catch(_0x1ee4f3){_0x4def37['push'](_0x4def37['shift']());}}}(a1_0x32a8,0xeb92a));function a1_0x32a8(){var _0x14b64c=['3759320yNDaQG','13742839FInIZr','1036792BsWNkJ','6357640CTkwgN','7bpqBDD','defineProperty','1190328JDSbDk','597tnvCmT','6VLVccL','14246Siekyx','10OrsKsp','6085305aHTgHe'];a1_0x32a8=function(){return _0x14b64c;};return a1_0x32a8();}function a1_0x579c(_0x4bbf49,_0x182ba9){var _0x32a894=a1_0x32a8();return a1_0x579c=function(_0x579c82,_0x1ceee1){_0x579c82=_0x579c82-0x1d8;var _0x58b737=_0x32a894[_0x579c82];return _0x58b737;},a1_0x579c(_0x4bbf49,_0x182ba9);}Object[a1_0x25365f(0x1df)](exports,'__esModule',{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x33e154=a2_0x48b2;(function(_0x164c96,_0x479357){const _0x375aa5=a2_0x48b2,_0x2f85c8=_0x164c96();while(!![]){try{const _0x5d3684=-parseInt(_0x375aa5(0x150))/0x1*(-parseInt(_0x375aa5(0x155))/0x2)+-parseInt(_0x375aa5(0x137))/0x3*(parseInt(_0x375aa5(0x176))/0x4)+parseInt(_0x375aa5(0x126))/0x5*(-parseInt(_0x375aa5(0x149))/0x6)+parseInt(_0x375aa5(0x159))/0x7*(parseInt(_0x375aa5(0x14b))/0x8)+parseInt(_0x375aa5(0x11c))/0x9*(parseInt(_0x375aa5(0x11f))/0xa)+-parseInt(_0x375aa5(0x13d))/0xb*(parseInt(_0x375aa5(0x169))/0xc)+parseInt(_0x375aa5(0x170))/0xd*(-parseInt(_0x375aa5(0x16b))/0xe);if(_0x5d3684===_0x479357)break;else _0x2f85c8['push'](_0x2f85c8['shift']());}catch(_0x152010){_0x2f85c8['push'](_0x2f85c8['shift']());}}}(a2_0x836f,0xdfc26));function a2_0x48b2(_0x427c4b,_0x4d552e){const _0x836fcd=a2_0x836f();return a2_0x48b2=function(_0x48b2fe,_0x10de28){_0x48b2fe=_0x48b2fe-0x10f;let _0x1b43d7=_0x836fcd[_0x48b2fe];return _0x1b43d7;},a2_0x48b2(_0x427c4b,_0x4d552e);}function a2_0x836f(){const _0xa313e=['existsSync','@midwayjs/core','@anncic-api/event','upload','1UlTQUH','ApiService','ACTION_ROUTE_KEY','handlerActionRoute','context','2127212FnzvDY','mkdirSync','log','isClass','20300nDPLNS','isNull','checksign','CustomConfiguration','bodyXml','target','tmpdir','keys','request','REQUEST_OBJ_CTX_KEY','anncicapi','forEach','key','anncic-apihelper','prototype','MidwayDecoratorService','5748frZUwg','metadata','672ThzgzC','application','headers','@anncic-api/typeorm','design:type','241007zlPIlR','length','getConfiguration','defineProperties','checkConfigKeys','./exception/ApiError','21292YuYFRi','isArray','apimit','MidwayConfigService','getApplications','koa','config','Types','string','@midwayjs/decorator','@midwayjs/upload','args','__metadata','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','221031duaADq','requestContext','@anncic-api/core','410bTDjHd','body','registerMethodHandler','object','getAsync','toLowerCase','defaultsDeep','25Zhmvgl','./types/action','filterConfig','staticFile','Anncic-api\x20static-file\x20:\x20mkdir\x20','handler','dirs','@midwayjs/cross-domain','@anncic-api/validator','query','input','_matchedRoute','@midwayjs/static-file','__esModule','method','isFunction','./config/config.production','183mqRMCS','devices','proceed','getOwnPropertyDescriptor','addObject','dir','17908ZrQNRe','hanlderApplications','defineProperty','isString','./service/ApiService','Configuration','decorate','@midwayjs/i18n','Inject','./config/config.default','intercept','function','794184jgrUwE','device','4144ZjYxSx'];a2_0x836f=function(){return _0xa313e;};return a2_0x836f();}var __decorate=this&&this['__decorate']||function(_0x563e77,_0x458679,_0x16437d,_0x550de2){const _0x3bbb98=a2_0x48b2;var _0x71564e=arguments[_0x3bbb98(0x171)],_0x5961d2=_0x71564e<0x3?_0x458679:_0x550de2===null?_0x550de2=Object[_0x3bbb98(0x13a)](_0x458679,_0x16437d):_0x550de2,_0x17b40c;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x5961d2=Reflect[_0x3bbb98(0x143)](_0x563e77,_0x458679,_0x16437d,_0x550de2);else{for(var _0x24afd2=_0x563e77[_0x3bbb98(0x171)]-0x1;_0x24afd2>=0x0;_0x24afd2--)if(_0x17b40c=_0x563e77[_0x24afd2])_0x5961d2=(_0x71564e<0x3?_0x17b40c(_0x5961d2):_0x71564e>0x3?_0x17b40c(_0x458679,_0x16437d,_0x5961d2):_0x17b40c(_0x458679,_0x16437d))||_0x5961d2;}return _0x71564e>0x3&&_0x5961d2&&Object[_0x3bbb98(0x13f)](_0x458679,_0x16437d,_0x5961d2),_0x5961d2;},__metadata=this&&this[a2_0x33e154(0x11a)]||function(_0x16a636,_0x2931f9){const _0x14b0d0=a2_0x33e154;if(typeof Reflect===_0x14b0d0(0x122)&&typeof Reflect['metadata']==='function')return Reflect[_0x14b0d0(0x16a)](_0x16a636,_0x2931f9);};Object[a2_0x33e154(0x13f)](exports,a2_0x33e154(0x133),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0x33e154(0x117)),core_1=require(a2_0x33e154(0x14d)),ApiError_1=require(a2_0x33e154(0x175)),ApiService_1=require(a2_0x33e154(0x141)),action_1=require(a2_0x33e154(0x127)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x33e154(0x144)),task=require('@midwayjs/task'),upload=require(a2_0x33e154(0x118)),staticFile=require(a2_0x33e154(0x132)),crossDomain=require(a2_0x33e154(0x12d)),ConfigDefault=require(a2_0x33e154(0x146)),ConfigProduction=require(a2_0x33e154(0x136)),anncic=require(a2_0x33e154(0x11e)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x33e154(0x14e)),anncicTypeorm=require(a2_0x33e154(0x16e)),anncicValidator=require(a2_0x33e154(0x12e)),anncicHelper=require(a2_0x33e154(0x166));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5fde80=a2_0x33e154;await this[_0x5fde80(0x128)](),await this[_0x5fde80(0x174)](),await this[_0x5fde80(0x153)](),await this[_0x5fde80(0x13e)]();}async[a2_0x33e154(0x174)](){}async[a2_0x33e154(0x153)](){const _0xce335=a2_0x33e154,_0x5a6b08=this[_0xce335(0x114)][_0xce335(0x172)]();this['decorator'][_0xce335(0x121)](action_1[_0xce335(0x152)],_0x5c3b23=>{const _0x5dbef1=_0xce335,_0x37b7ff=_0x5c3b23[_0x5dbef1(0x16a)];return{'before':async _0x2f0bd0=>{const _0x2a53ce=_0x5dbef1;var _0x5f2bfa,_0x11e96d;const _0xadca76=(_0x5f2bfa=_0x2f0bd0===null||_0x2f0bd0===void 0x0?void 0x0:_0x2f0bd0[_0x2a53ce(0x15e)])===null||_0x5f2bfa===void 0x0?void 0x0:_0x5f2bfa[core_1['REQUEST_OBJ_CTX_KEY']];if(_0xadca76&&(_0x37b7ff===null||_0x37b7ff===void 0x0?void 0x0:_0x37b7ff[_0x2a53ce(0x110)])){if(!this[_0x2a53ce(0x151)][_0x2a53ce(0x15b)]((_0x11e96d=_0xadca76===null||_0xadca76===void 0x0?void 0x0:_0xadca76['request'])===null||_0x11e96d===void 0x0?void 0x0:_0x11e96d[_0x2a53ce(0x16d)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x310f0d=>{const _0x164634=_0x5dbef1;var _0x582f24,_0x53610a,_0x6dae30,_0x11b06b,_0x2bac15;const _0x5dcfff=(_0x582f24=_0x310f0d===null||_0x310f0d===void 0x0?void 0x0:_0x310f0d[_0x164634(0x15e)])===null||_0x582f24===void 0x0?void 0x0:_0x582f24[core_1[_0x164634(0x162)]];if(_0x5dcfff&&(_0x37b7ff===null||_0x37b7ff===void 0x0?void 0x0:_0x37b7ff[_0x164634(0x110)])){if(((_0x53610a=_0x5dcfff['headers'])===null||_0x53610a===void 0x0?void 0x0:_0x53610a[_0x164634(0x14a)])&&((_0x2bac15=(_0x11b06b=(_0x6dae30=_0x5a6b08===null||_0x5a6b08===void 0x0?void 0x0:_0x5a6b08[_0x164634(0x163)])===null||_0x6dae30===void 0x0?void 0x0:_0x6dae30[_0x164634(0x138)])===null||_0x11b06b===void 0x0?void 0x0:_0x11b06b[_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]])===null||_0x2bac15===void 0x0?void 0x0:_0x2bac15[_0x164634(0x147)])){const _0x2463e0=Array['isArray'](_0x5a6b08[_0x164634(0x163)][_0x164634(0x138)][_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]][_0x164634(0x147)])?_0x5a6b08[_0x164634(0x163)]['devices'][_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]][_0x164634(0x147)]:[_0x5a6b08[_0x164634(0x163)]['devices'][_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]]['intercept']];for(const _0xb5e096 of _0x2463e0){if(decorator_1[_0x164634(0x115)][_0x164634(0x158)](_0xb5e096)||typeof _0xb5e096==_0x164634(0x116)){const _0x2a66da=await _0x5dcfff[_0x164634(0x11d)][_0x164634(0x123)](_0xb5e096);typeof(_0x2a66da===null||_0x2a66da===void 0x0?void 0x0:_0x2a66da[_0x164634(0x12b)])==_0x164634(0x148)&&await _0x2a66da[_0x164634(0x12b)](typeof(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff['method'])=='string'&&(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff[_0x164634(0x131)])?_0x5dcfff[_0x164634(0x134)][_0x164634(0x124)]()+'@'+(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff[_0x164634(0x131)]):undefined,_0x5dcfff,_0x37b7ff);}else decorator_1['Types'][_0x164634(0x135)](_0xb5e096)&&await _0xb5e096(typeof(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff['method'])==_0x164634(0x116)&&(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff[_0x164634(0x131)])?_0x5dcfff[_0x164634(0x134)][_0x164634(0x124)]()+'@'+(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff['_matchedRoute']):undefined,_0x5dcfff,_0x37b7ff);}}}return await _0x310f0d[_0x164634(0x139)](..._0x310f0d[_0x164634(0x119)]);},'afterThrow':(_0x4f9c5c,_0x4564a5)=>{throw _0x4564a5;}};});}async['hanlderApplications'](){const _0x35ae60=a2_0x33e154;this[_0x35ae60(0x16c)][_0x35ae60(0x112)]([_0x35ae60(0x113)])[_0x35ae60(0x164)](_0x2f5e9b=>{const _0x2c1209=_0x35ae60;(_0x2f5e9b===null||_0x2f5e9b===void 0x0?void 0x0:_0x2f5e9b['context'])&&Object[_0x2c1209(0x173)](_0x2f5e9b[_0x2c1209(0x154)],{'ok':{'value':function(_0x38e935,_0xd97943,_0x186e81=0x0){return{'code':_0x186e81,'data':_0x38e935,'extra':_0xd97943};}},'input':{'value':function(_0x5ae639,_0x121ca8){const _0x2f3d01=_0x2c1209;var _0x10fee4;const _0x2d6960=lodash[_0x2f3d01(0x125)]({},this[_0x2f3d01(0x161)][_0x2f3d01(0x120)]||this[_0x2f3d01(0x161)][((_0x10fee4=config===null||config===void 0x0?void 0x0:config[_0x2f3d01(0x15d)])===null||_0x10fee4===void 0x0?void 0x0:_0x10fee4[_0x2f3d01(0x165)])||_0x2f3d01(0x120)]||{},this[_0x2f3d01(0x161)][_0x2f3d01(0x12f)]||{});return _0x5ae639?lodash['get'](_0x2d6960,_0x5ae639,_0x121ca8):_0x2d6960;}},'when':{'value':async function(_0x852dbb,_0x4d2a8f){const _0x4e30bb=_0x2c1209,_0x99a4b6=this['input'](_0x852dbb,null);if(!lodash[_0x4e30bb(0x15a)](_0x99a4b6))return await _0x4d2a8f(_0x99a4b6);}},'only':{'value':function(_0x452816){const _0x5aa848=_0x2c1209,_0x3017a8={};for(let _0x5af360=0x0;_0x5af360<_0x452816[_0x5aa848(0x171)];_0x5af360++){lodash[_0x5aa848(0x10f)](_0x452816[_0x5af360])&&_0x452816[_0x5af360][_0x5aa848(0x171)]>0x0&&lodash[_0x5aa848(0x140)](_0x452816[_0x5af360][0x0])&&(_0x3017a8[_0x452816[_0x5af360][0x0]]=this[_0x5aa848(0x130)](_0x452816[_0x5af360][0x0],_0x452816[_0x5af360][_0x5aa848(0x171)]>0x1?_0x452816[_0x5af360][0x1]:null));}return _0x3017a8;}}});});}async[a2_0x33e154(0x128)](){const _0x39ac5a=a2_0x33e154;var _0x145e52,_0x13051a,_0x1ee4bc,_0x252620,_0x9e6dbb,_0x4ee831;const _0x3ad1aa=this[_0x39ac5a(0x114)][_0x39ac5a(0x172)]();((_0x13051a=(_0x145e52=_0x3ad1aa===null||_0x3ad1aa===void 0x0?void 0x0:_0x3ad1aa[_0x39ac5a(0x163)])===null||_0x145e52===void 0x0?void 0x0:_0x145e52[_0x39ac5a(0x138)])===null||_0x13051a===void 0x0?void 0x0:_0x13051a['DEFAULT'])&&Object[_0x39ac5a(0x160)](_0x3ad1aa['anncicapi'][_0x39ac5a(0x138)])[_0x39ac5a(0x171)]>0x1&&delete _0x3ad1aa['anncicapi'][_0x39ac5a(0x138)]['DEFAULT'];if((_0x1ee4bc=_0x3ad1aa===null||_0x3ad1aa===void 0x0?void 0x0:_0x3ad1aa[_0x39ac5a(0x129)])===null||_0x1ee4bc===void 0x0?void 0x0:_0x1ee4bc[_0x39ac5a(0x12c)])for(const _0x1980d4 in _0x3ad1aa['staticFile'][_0x39ac5a(0x12c)]){((_0x252620=_0x3ad1aa[_0x39ac5a(0x129)]['dirs'][_0x1980d4])===null||_0x252620===void 0x0?void 0x0:_0x252620[_0x39ac5a(0x13c)])&&typeof((_0x9e6dbb=_0x3ad1aa[_0x39ac5a(0x129)][_0x39ac5a(0x12c)][_0x1980d4])===null||_0x9e6dbb===void 0x0?void 0x0:_0x9e6dbb[_0x39ac5a(0x13c)])==_0x39ac5a(0x116)&&!fs[_0x39ac5a(0x14c)](_0x3ad1aa[_0x39ac5a(0x129)]['dirs'][_0x1980d4]['dir'])&&(fs['mkdirSync'](_0x3ad1aa[_0x39ac5a(0x129)][_0x39ac5a(0x12c)][_0x1980d4]['dir'],{'recursive':!![]}),console[_0x39ac5a(0x157)](_0x39ac5a(0x12a)+_0x3ad1aa[_0x39ac5a(0x129)][_0x39ac5a(0x12c)][_0x1980d4][_0x39ac5a(0x13c)]));}((_0x4ee831=_0x3ad1aa===null||_0x3ad1aa===void 0x0?void 0x0:_0x3ad1aa['upload'])===null||_0x4ee831===void 0x0?void 0x0:_0x4ee831[_0x39ac5a(0x15f)])&&!fs[_0x39ac5a(0x14c)](_0x3ad1aa[_0x39ac5a(0x14f)][_0x39ac5a(0x15f)])&&(fs[_0x39ac5a(0x156)](_0x3ad1aa[_0x39ac5a(0x14f)][_0x39ac5a(0x15f)],{'recursive':!![]}),console[_0x39ac5a(0x157)](_0x39ac5a(0x11b)+_0x3ad1aa[_0x39ac5a(0x14f)][_0x39ac5a(0x15f)])),this['config'][_0x39ac5a(0x13b)](_0x3ad1aa);}};__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata(a2_0x33e154(0x16f),core_1[a2_0x33e154(0x111)])],CustomConfiguration[a2_0x33e154(0x167)],a2_0x33e154(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata('design:type',core_1[a2_0x33e154(0x168)])],CustomConfiguration[a2_0x33e154(0x167)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata(a2_0x33e154(0x16f),core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x33e154(0x167)],a2_0x33e154(0x16c),void 0x0),__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata(a2_0x33e154(0x16f),core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x33e154(0x167)],'environment',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x33e154(0x16f),ApiService_1[a2_0x33e154(0x151)])],CustomConfiguration[a2_0x33e154(0x167)],a2_0x33e154(0x151),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x33e154(0x142)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x33e154(0x15c)]=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x1fde(){const _0x302e3c=['mkdirSync','665cHhNyI','Inject','@anncic-api/event','function','anncicapi','upload','@anncic-api/core','registerMethodHandler','anncic-apihelper','40RusvGW','intercept','3478GLbbje','prototype','CustomConfiguration','forEach','_matchedRoute','target','hanlderApplications','MidwayEnvironmentService','key','865gJjKFw','isClass','dirs','handler','metadata','@midwayjs/decorator','toLowerCase','input','@midwayjs/static-file','@midwayjs/task','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','Types','tmpdir','defineProperty','decorate','design:type','./service/ApiService','3388908bCvtDD','devices','HEADERS_SIGNATURE','__esModule','./exception/ApiError','Configuration','koa','21040QcEIwh','ApiService','existsSync','application','@midwayjs/core','apimit','anncic-api','staticFile','ACTION_ROUTE_KEY','REQUEST_OBJ_CTX_KEY','ApiError','isNull','@anncic-api/typeorm','3210Jrbhio','method','headers','@anncic-api/cache','2757DfGQOk','config','15790NuBSIW','2155158aBBwBE','object','addObject','length','Anncic-api\x20static-file\x20:\x20mkdir\x20','environment','isString','isArray','args','defaultsDeep','filterConfig','@midwayjs/i18n','1133MJsmft','MidwayApplicationManager','query','request','string','body','device','bodyXml','MidwayConfigService','checkConfigKeys','DEFAULT','dir','decorator','@midwayjs/koa','checksign','log','context','1100vBxtFh','handlerActionRoute'];a2_0x1fde=function(){return _0x302e3c;};return a2_0x1fde();}const a2_0x17c584=a2_0xfa33;(function(_0x349faa,_0x8edff4){const _0x3727b8=a2_0xfa33,_0x16e943=_0x349faa();while(!![]){try{const _0x43eac9=-parseInt(_0x3727b8(0x127))/0x1*(-parseInt(_0x3727b8(0x125))/0x2)+-parseInt(_0x3727b8(0xf9))/0x3*(parseInt(_0x3727b8(0x119))/0x4)+parseInt(_0x3727b8(0x130))/0x5*(-parseInt(_0x3727b8(0xf5))/0x6)+parseInt(_0x3727b8(0x11c))/0x7*(-parseInt(_0x3727b8(0xe8))/0x8)+parseInt(_0x3727b8(0xfc))/0x9+parseInt(_0x3727b8(0xfb))/0xa*(parseInt(_0x3727b8(0x108))/0xb)+parseInt(_0x3727b8(0xe1))/0xc;if(_0x43eac9===_0x8edff4)break;else _0x16e943['push'](_0x16e943['shift']());}catch(_0x1ee1ec){_0x16e943['push'](_0x16e943['shift']());}}}(a2_0x1fde,0x26cda));function a2_0xfa33(_0xcfd13d,_0x484164){const _0x1fdefb=a2_0x1fde();return a2_0xfa33=function(_0xfa33be,_0x27edfa){_0xfa33be=_0xfa33be-0xd2;let _0x1ba9e8=_0x1fdefb[_0xfa33be];return _0x1ba9e8;},a2_0xfa33(_0xcfd13d,_0x484164);}var __decorate=this&&this['__decorate']||function(_0x29e72b,_0x35506c,_0x4c070a,_0x53a705){const _0x1acf9f=a2_0xfa33;var _0x5b409d=arguments[_0x1acf9f(0xff)],_0x4e5698=_0x5b409d<0x3?_0x35506c:_0x53a705===null?_0x53a705=Object['getOwnPropertyDescriptor'](_0x35506c,_0x4c070a):_0x53a705,_0x31f821;if(typeof Reflect===_0x1acf9f(0xfd)&&typeof Reflect[_0x1acf9f(0xde)]===_0x1acf9f(0x11f))_0x4e5698=Reflect[_0x1acf9f(0xde)](_0x29e72b,_0x35506c,_0x4c070a,_0x53a705);else{for(var _0x53b5f2=_0x29e72b[_0x1acf9f(0xff)]-0x1;_0x53b5f2>=0x0;_0x53b5f2--)if(_0x31f821=_0x29e72b[_0x53b5f2])_0x4e5698=(_0x5b409d<0x3?_0x31f821(_0x4e5698):_0x5b409d>0x3?_0x31f821(_0x35506c,_0x4c070a,_0x4e5698):_0x31f821(_0x35506c,_0x4c070a))||_0x4e5698;}return _0x5b409d>0x3&&_0x4e5698&&Object[_0x1acf9f(0xdd)](_0x35506c,_0x4c070a,_0x4e5698),_0x4e5698;},__metadata=this&&this['__metadata']||function(_0x6e4965,_0x19ba53){const _0x4bd56a=a2_0xfa33;if(typeof Reflect===_0x4bd56a(0xfd)&&typeof Reflect[_0x4bd56a(0xd4)]==='function')return Reflect[_0x4bd56a(0xd4)](_0x6e4965,_0x19ba53);};Object[a2_0x17c584(0xdd)](exports,a2_0x17c584(0xe4),{'value':!![]}),exports[a2_0x17c584(0x129)]=void 0x0;const decorator_1=require(a2_0x17c584(0xd5)),core_1=require(a2_0x17c584(0xec)),ApiError_1=require(a2_0x17c584(0xe5)),ApiService_1=require(a2_0x17c584(0xe0)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x17c584(0x115)),i18n=require(a2_0x17c584(0x107)),task=require(a2_0x17c584(0xd9)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x17c584(0xd8)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x17c584(0x122)),anncicCache=require(a2_0x17c584(0xf8)),anncicEvent=require(a2_0x17c584(0x11e)),anncicTypeorm=require(a2_0x17c584(0xf4)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x17c584(0x124));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5ce324=a2_0x17c584;await this['filterConfig'](),await this[_0x5ce324(0x111)](),await this[_0x5ce324(0x11a)](),await this['hanlderApplications']();}async[a2_0x17c584(0x111)](){}async[a2_0x17c584(0x11a)](){const _0x47ae88=a2_0x17c584,_0xcbdd6d=this['config']['getConfiguration']();this[_0x47ae88(0x114)][_0x47ae88(0x123)](action_1[_0x47ae88(0xf0)],_0x2ebb00=>{const _0x3d01e0=_0x47ae88,_0x36385c=_0x2ebb00[_0x3d01e0(0xd4)];return{'before':async _0x578f68=>{const _0x477dfa=_0x3d01e0;var _0x558507,_0x42dfa0;const _0x4ba77b=(_0x558507=_0x578f68===null||_0x578f68===void 0x0?void 0x0:_0x578f68[_0x477dfa(0x12c)])===null||_0x558507===void 0x0?void 0x0:_0x558507[core_1[_0x477dfa(0xf1)]];if(_0x4ba77b&&(_0x36385c===null||_0x36385c===void 0x0?void 0x0:_0x36385c[_0x477dfa(0xed)])){if(!this['ApiService'][_0x477dfa(0x116)]((_0x42dfa0=_0x4ba77b===null||_0x4ba77b===void 0x0?void 0x0:_0x4ba77b[_0x477dfa(0x10b)])===null||_0x42dfa0===void 0x0?void 0x0:_0x42dfa0[_0x477dfa(0xf7)]))throw new AnnError(ApiError_1[_0x477dfa(0xf2)][_0x477dfa(0xe3)]);}},'around':async _0x3729c7=>{const _0x198459=_0x3d01e0;var _0x42717a,_0x49ecc7,_0x311a48,_0x521977,_0x1e54ef;const _0xccdc17=(_0x42717a=_0x3729c7===null||_0x3729c7===void 0x0?void 0x0:_0x3729c7[_0x198459(0x12c)])===null||_0x42717a===void 0x0?void 0x0:_0x42717a[core_1[_0x198459(0xf1)]];if(_0xccdc17&&(_0x36385c===null||_0x36385c===void 0x0?void 0x0:_0x36385c[_0x198459(0xed)])){if(((_0x49ecc7=_0xccdc17[_0x198459(0xf7)])===null||_0x49ecc7===void 0x0?void 0x0:_0x49ecc7['device'])&&((_0x1e54ef=(_0x521977=(_0x311a48=_0xcbdd6d===null||_0xcbdd6d===void 0x0?void 0x0:_0xcbdd6d[_0x198459(0x120)])===null||_0x311a48===void 0x0?void 0x0:_0x311a48[_0x198459(0xe2)])===null||_0x521977===void 0x0?void 0x0:_0x521977[_0xccdc17[_0x198459(0xf7)][_0x198459(0x10e)]])===null||_0x1e54ef===void 0x0?void 0x0:_0x1e54ef['intercept'])){const _0x20c193=Array['isArray'](_0xcbdd6d[_0x198459(0x120)][_0x198459(0xe2)][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)])?_0xcbdd6d[_0x198459(0x120)][_0x198459(0xe2)][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)]:[_0xcbdd6d[_0x198459(0x120)]['devices'][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)]];for(const _0x6d27aa of _0x20c193){if(decorator_1['Types'][_0x198459(0x131)](_0x6d27aa)||typeof _0x6d27aa==_0x198459(0x10c)){const _0x1a2684=await _0xccdc17['requestContext']['getAsync'](_0x6d27aa);typeof(_0x1a2684===null||_0x1a2684===void 0x0?void 0x0:_0x1a2684[_0x198459(0xd3)])==_0x198459(0x11f)&&await _0x1a2684[_0x198459(0xd3)](typeof(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0xf6)])==_0x198459(0x10c)&&(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute'])?_0xccdc17['method'][_0x198459(0xd6)]()+'@'+(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0x12b)]):undefined,_0xccdc17,_0x36385c);}else decorator_1[_0x198459(0xdb)]['isFunction'](_0x6d27aa)&&await _0x6d27aa(typeof(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0xf6)])=='string'&&(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute'])?_0xccdc17[_0x198459(0xf6)][_0x198459(0xd6)]()+'@'+(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute']):undefined,_0xccdc17,_0x36385c);}}}return await _0x3729c7['proceed'](..._0x3729c7[_0x198459(0x104)]);},'afterThrow':(_0x27531f,_0x947fd8)=>{throw _0x947fd8;}};});}async[a2_0x17c584(0x12d)](){const _0x1b2402=a2_0x17c584;this[_0x1b2402(0xeb)]['getApplications']([_0x1b2402(0xe7)])[_0x1b2402(0x12a)](_0x43d715=>{const _0x848cdb=_0x1b2402;(_0x43d715===null||_0x43d715===void 0x0?void 0x0:_0x43d715[_0x848cdb(0x118)])&&Object['defineProperties'](_0x43d715[_0x848cdb(0x118)],{'ok':{'value':function(_0x574ec7,_0x46bb6a,_0x12cf32=0x0){return{'code':_0x12cf32,'data':_0x574ec7,'extra':_0x46bb6a};}},'input':{'value':function(_0x5dc6db,_0x499832){const _0x49d111=_0x848cdb;var _0x5120fe;const _0x5a2c01=lodash[_0x49d111(0x105)]({},this['request'][_0x49d111(0x10d)]||this[_0x49d111(0x10b)][((_0x5120fe=config===null||config===void 0x0?void 0x0:config[_0x49d111(0x10f)])===null||_0x5120fe===void 0x0?void 0x0:_0x5120fe[_0x49d111(0x12f)])||_0x49d111(0x10d)]||{},this[_0x49d111(0x10b)][_0x49d111(0x10a)]||{});return _0x5dc6db?lodash['get'](_0x5a2c01,_0x5dc6db,_0x499832):_0x5a2c01;}},'when':{'value':async function(_0x3fe98d,_0x627d03){const _0x61be5b=_0x848cdb,_0x423f34=this[_0x61be5b(0xd7)](_0x3fe98d,null);if(!lodash[_0x61be5b(0xf3)](_0x423f34))return await _0x627d03(_0x423f34);}},'only':{'value':function(_0x1ba7f1){const _0x7a4eba=_0x848cdb,_0x3aa094={};for(let _0x11aa7c=0x0;_0x11aa7c<_0x1ba7f1['length'];_0x11aa7c++){lodash[_0x7a4eba(0x103)](_0x1ba7f1[_0x11aa7c])&&_0x1ba7f1[_0x11aa7c]['length']>0x0&&lodash[_0x7a4eba(0x102)](_0x1ba7f1[_0x11aa7c][0x0])&&(_0x3aa094[_0x1ba7f1[_0x11aa7c][0x0]]=this[_0x7a4eba(0xd7)](_0x1ba7f1[_0x11aa7c][0x0],_0x1ba7f1[_0x11aa7c][_0x7a4eba(0xff)]>0x1?_0x1ba7f1[_0x11aa7c][0x1]:null));}return _0x3aa094;}}});});}async[a2_0x17c584(0x106)](){const _0x20bfea=a2_0x17c584;var _0x42f6a5,_0x580ea4,_0x43969d,_0x341f52,_0x166f61,_0xbabd03;const _0x53a8d2=this[_0x20bfea(0xfa)]['getConfiguration']();((_0x580ea4=(_0x42f6a5=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2[_0x20bfea(0x120)])===null||_0x42f6a5===void 0x0?void 0x0:_0x42f6a5['devices'])===null||_0x580ea4===void 0x0?void 0x0:_0x580ea4[_0x20bfea(0x112)])&&Object['keys'](_0x53a8d2[_0x20bfea(0x120)][_0x20bfea(0xe2)])['length']>0x1&&delete _0x53a8d2[_0x20bfea(0x120)][_0x20bfea(0xe2)][_0x20bfea(0x112)];if((_0x43969d=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2[_0x20bfea(0xef)])===null||_0x43969d===void 0x0?void 0x0:_0x43969d[_0x20bfea(0xd2)])for(const _0x2f592f in _0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)]){((_0x341f52=_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f])===null||_0x341f52===void 0x0?void 0x0:_0x341f52[_0x20bfea(0x113)])&&typeof((_0x166f61=_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f])===null||_0x166f61===void 0x0?void 0x0:_0x166f61[_0x20bfea(0x113)])==_0x20bfea(0x10c)&&!fs[_0x20bfea(0xea)](_0x53a8d2['staticFile']['dirs'][_0x2f592f][_0x20bfea(0x113)])&&(fs[_0x20bfea(0x11b)](_0x53a8d2['staticFile']['dirs'][_0x2f592f][_0x20bfea(0x113)],{'recursive':!![]}),console[_0x20bfea(0x117)](_0x20bfea(0x100)+_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f][_0x20bfea(0x113)]));}((_0xbabd03=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2['upload'])===null||_0xbabd03===void 0x0?void 0x0:_0xbabd03['tmpdir'])&&!fs[_0x20bfea(0xea)](_0x53a8d2['upload']['tmpdir'])&&(fs[_0x20bfea(0x11b)](_0x53a8d2[_0x20bfea(0x121)]['tmpdir'],{'recursive':!![]}),console[_0x20bfea(0x117)](_0x20bfea(0xda)+_0x53a8d2[_0x20bfea(0x121)][_0x20bfea(0xdc)])),this[_0x20bfea(0xfa)][_0x20bfea(0xfe)](_0x53a8d2);}};__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x110)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0xfa),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x109)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0xeb),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x12e)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0x101),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x17c584(0xe9),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x17c584(0xe6)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x17c584(0xee),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x17c584(0x129)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x560692=a3_0x3157;function a3_0x3157(_0x32f889,_0x319bae){const _0x232a16=a3_0x232a();return a3_0x3157=function(_0x3157df,_0x439be9){_0x3157df=_0x3157df-0x160;let _0x2f67cb=_0x232a16[_0x3157df];return _0x2f67cb;},a3_0x3157(_0x32f889,_0x319bae);}(function(_0x3150f7,_0x66a9c3){const _0x24d830=a3_0x3157,_0x477571=_0x3150f7();while(!![]){try{const _0x248459=parseInt(_0x24d830(0x16d))/0x1*(-parseInt(_0x24d830(0x16b))/0x2)+-parseInt(_0x24d830(0x186))/0x3*(-parseInt(_0x24d830(0x177))/0x4)+parseInt(_0x24d830(0x173))/0x5+-parseInt(_0x24d830(0x16f))/0x6*(parseInt(_0x24d830(0x17c))/0x7)+parseInt(_0x24d830(0x169))/0x8+parseInt(_0x24d830(0x168))/0x9*(-parseInt(_0x24d830(0x192))/0xa)+-parseInt(_0x24d830(0x162))/0xb;if(_0x248459===_0x66a9c3)break;else _0x477571['push'](_0x477571['shift']());}catch(_0x4234ae){_0x477571['push'](_0x477571['shift']());}}}(a3_0x232a,0xd65df));function a3_0x232a(){const _0x45a407=['2067327QysESs','7097160BaSxpI','-action','397228PSHUTz','\x20文件请放在app/controller/文件下','3vRlmgw','existsSync','9354utDfmP','indexOf','split','saveModule','6701685eIAfBr','splice','-controller','Action','152cuKgvz','substring','toLowerCase','rootpath','route','959sSmiEE','Controller','filepath','startsWith','endsWith','\x20文件请放在apps/','middleware','trim','getClassMetadata','ACTION_KEY','122523uVUJbp','cwd','@midwayjs/decorator','filter','app/controller/','APPSCONFIG_KEY','apps/','/apps/','replace','/config.','parseRoute','module','70HxPncW','saveClassMetadata','../types/action','length','5324517vEjqmq','isArray','prefix','/controller/','join','defineProperty'];a3_0x232a=function(){return _0x45a407;};return a3_0x232a();}Object[a3_0x560692(0x167)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x560692(0x176)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x560692(0x188)),action_1=require(a3_0x560692(0x160));function Action(_0x34e85f,_0x3de0d4,_0x1eb4cc={'middleware':[],'sensitive':!![]}){return _0x561ec9=>{const _0x57f655=a3_0x3157;_0x1eb4cc['tagName']=_0x3de0d4;const _0x45a4a5=parseRoute(_0x34e85f);if(_0x45a4a5[_0x57f655(0x191)]){_0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)]?'/'+_0x45a4a5['module']+'/'+_0x1eb4cc[_0x57f655(0x164)]:'/'+_0x45a4a5[_0x57f655(0x17b)];_0x45a4a5[_0x57f655(0x164)]&&(_0x1eb4cc[_0x57f655(0x164)]='/'+_0x45a4a5['prefix']+'/'+_0x1eb4cc[_0x57f655(0x164)]);if(fs[_0x57f655(0x16e)](_0x45a4a5[_0x57f655(0x17a)]+_0x57f655(0x18d)+_0x45a4a5['module']+_0x57f655(0x18f)+(lodash[_0x57f655(0x180)](_0x45a4a5['filepath'],'ts')?'ts':'js'))){const _0x1ff1e7=include(_0x45a4a5['rootpath']+_0x57f655(0x18d)+_0x45a4a5['module']+_0x57f655(0x18f)+(lodash[_0x57f655(0x180)](_0x45a4a5[_0x57f655(0x17e)],'ts')?'ts':'js'));if(_0x1ff1e7[_0x57f655(0x182)]&&lodash[_0x57f655(0x163)](_0x1ff1e7[_0x57f655(0x182)])&&_0x1ff1e7[_0x57f655(0x182)][_0x57f655(0x161)]>0x0)for(let _0x27a4f4 in _0x1ff1e7[_0x57f655(0x182)]){_0x1ff1e7['middlewareIgnore']['indexOf'](_0x1ff1e7['middleware'][_0x27a4f4])==-0x1&&_0x1eb4cc[_0x57f655(0x182)]['push'](_0x1ff1e7['middleware'][_0x27a4f4]);}const _0x4f7087=(0x0,decorator_1[_0x57f655(0x184)])(action_1[_0x57f655(0x18b)],action_1['AppsConfigTmp'])||{};_0x4f7087[''+_0x45a4a5['module']]=_0x1ff1e7,(0x0,decorator_1[_0x57f655(0x193)])(action_1[_0x57f655(0x18b)],_0x4f7087,action_1['AppsConfigTmp']);}_0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)][_0x57f655(0x179)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x57f655(0x172)])(action_1[_0x57f655(0x185)],_0x561ec9),(0x0,decorator_1[_0x57f655(0x17d)])(_0x1eb4cc['prefix'],_0x1eb4cc)(_0x561ec9),(0x0,decorator_1[_0x57f655(0x193)])(action_1['ACTION_KEY'],{'prefix':_0x1eb4cc[_0x57f655(0x164)],'pprefix':_0x45a4a5['prefix'],'module':_0x45a4a5[_0x57f655(0x191)],'filepath':_0x45a4a5[_0x57f655(0x17e)],'routerOptions':_0x1eb4cc},_0x561ec9);}else _0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)]?'/'+_0x1eb4cc[_0x57f655(0x164)]:'/'+_0x45a4a5['route'],_0x45a4a5[_0x57f655(0x164)]&&(_0x1eb4cc[_0x57f655(0x164)]='/'+_0x45a4a5[_0x57f655(0x164)]+'/'+_0x1eb4cc[_0x57f655(0x164)]),_0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)]['toLowerCase']()[_0x57f655(0x18e)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x57f655(0x172)])(action_1[_0x57f655(0x185)],_0x561ec9),(0x0,decorator_1[_0x57f655(0x17d)])(_0x1eb4cc[_0x57f655(0x164)],_0x1eb4cc)(_0x561ec9),(0x0,decorator_1[_0x57f655(0x193)])(action_1[_0x57f655(0x185)],{'prefix':_0x1eb4cc['prefix'],'module':_0x45a4a5[_0x57f655(0x191)],'pprefix':_0x45a4a5[_0x57f655(0x164)],'filepath':_0x45a4a5[_0x57f655(0x17e)],'routerOptions':_0x1eb4cc},_0x561ec9);};}exports['Action']=Action;function parseRoute(_0x5cb4ed){const _0x45ade5=a3_0x560692;_0x5cb4ed=_0x5cb4ed['replace'](/(\\|\/)/g,'/');const _0x1b9697=process[_0x45ade5(0x187)]()['replace'](/(\\|\/)/g,'/'),_0x227e11=_0x5cb4ed['substring'](0x0,_0x1b9697[_0x45ade5(0x161)]+_0x5cb4ed['substring'](_0x1b9697[_0x45ade5(0x161)]+0x1)[_0x45ade5(0x170)]('/')+0x1),_0x38b4ad=_0x5cb4ed[_0x45ade5(0x178)](_0x227e11[_0x45ade5(0x161)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x20a1b9={'route':'','prefix':![],'module':![],'rootpath':_0x227e11,'filepath':_0x38b4ad};if(_0x38b4ad[_0x45ade5(0x17f)](_0x45ade5(0x18a))){const _0x11725e=_0x38b4ad[_0x45ade5(0x178)](_0x45ade5(0x18a)[_0x45ade5(0x161)])[_0x45ade5(0x171)]('/')[_0x45ade5(0x189)](_0x35340c=>_0x35340c&&_0x35340c[_0x45ade5(0x183)]());return _0x11725e[_0x45ade5(0x161)]>0x1&&(_0x20a1b9[_0x45ade5(0x164)]=_0x11725e[0x0][_0x45ade5(0x179)](),_0x11725e[_0x45ade5(0x174)](0x0,0x1)),_0x20a1b9['route']=('/'+_0x11725e[_0x45ade5(0x166)]('/'))[_0x45ade5(0x18e)](/(\.ts|\.js)$/,'')[_0x45ade5(0x18e)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x45ade5(0x166)]('-')[_0x45ade5(0x179)]()[_0x45ade5(0x18e)](/\/\-/g,'/'),_0x20a1b9[_0x45ade5(0x17b)]['endsWith']('-action')&&(_0x20a1b9[_0x45ade5(0x17b)]=_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x178)](0x0,_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x161)]-0x7)),_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x180)](_0x45ade5(0x175))&&(_0x20a1b9[_0x45ade5(0x17b)]=_0x20a1b9[_0x45ade5(0x17b)]['substring'](0x0,_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x161)]-0xb)),_0x20a1b9;}else{if(_0x38b4ad[_0x45ade5(0x17f)](_0x45ade5(0x18c))){const _0x4472b9=_0x38b4ad[_0x45ade5(0x178)](0x0,_0x38b4ad['indexOf'](_0x45ade5(0x18d))+0x5),_0x363369=_0x38b4ad[_0x45ade5(0x178)](_0x4472b9['length']+0x1)[_0x45ade5(0x18e)](/(\\|\/)/g,'/')[_0x45ade5(0x171)]('/')[0x0];if(_0x38b4ad[_0x45ade5(0x17f)](_0x45ade5(0x18c)+_0x363369+_0x45ade5(0x165))){const _0x3aba=_0x38b4ad[_0x45ade5(0x178)]((_0x4472b9+'/'+_0x363369+_0x45ade5(0x165))['length'])['split']('/')[_0x45ade5(0x189)](_0x456be6=>_0x456be6&&_0x456be6[_0x45ade5(0x183)]());return _0x3aba['length']>0x1&&(_0x20a1b9['prefix']=_0x3aba[0x0]['toLowerCase'](),_0x3aba['splice'](0x0,0x1)),_0x20a1b9[_0x45ade5(0x191)]=_0x363369,_0x20a1b9[_0x45ade5(0x17b)]=('/'+_0x363369+'/'+_0x3aba[_0x45ade5(0x166)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x45ade5(0x18e)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x45ade5(0x166)]('-')['toLowerCase']()[_0x45ade5(0x18e)](/\/\-/g,'/'),_0x20a1b9['route'][_0x45ade5(0x180)](_0x45ade5(0x16a))&&(_0x20a1b9[_0x45ade5(0x17b)]=_0x20a1b9['route'][_0x45ade5(0x178)](0x0,_0x20a1b9['route'][_0x45ade5(0x161)]-0x7)),_0x20a1b9[_0x45ade5(0x17b)]['endsWith'](_0x45ade5(0x175))&&(_0x20a1b9['route']=_0x20a1b9['route'][_0x45ade5(0x178)](0x0,_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x161)]-0xb)),_0x20a1b9;}throw new Error(_0x38b4ad+_0x45ade5(0x181)+_0x363369+'/controller/文件下');}}throw new Error(_0x38b4ad+_0x45ade5(0x16c));}exports[a3_0x560692(0x190)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x22fe(_0x8ce53,_0x235137){const _0x4d7f9e=a4_0x4d7f();return a4_0x22fe=function(_0x22fe36,_0xdf25d5){_0x22fe36=_0x22fe36-0x1c3;let _0x3d0ab9=_0x4d7f9e[_0x22fe36];return _0x3d0ab9;},a4_0x22fe(_0x8ce53,_0x235137);}const a4_0x398e06=a4_0x22fe;(function(_0x1d8904,_0x2697c6){const _0x80ae82=a4_0x22fe,_0x4fcbab=_0x1d8904();while(!![]){try{const _0x594960=-parseInt(_0x80ae82(0x1db))/0x1*(-parseInt(_0x80ae82(0x1e1))/0x2)+-parseInt(_0x80ae82(0x1e4))/0x3+-parseInt(_0x80ae82(0x1cd))/0x4*(parseInt(_0x80ae82(0x1e2))/0x5)+-parseInt(_0x80ae82(0x1d4))/0x6+-parseInt(_0x80ae82(0x1de))/0x7*(parseInt(_0x80ae82(0x1cc))/0x8)+parseInt(_0x80ae82(0x1e5))/0x9*(-parseInt(_0x80ae82(0x1ca))/0xa)+parseInt(_0x80ae82(0x1d7))/0xb*(parseInt(_0x80ae82(0x1cf))/0xc);if(_0x594960===_0x2697c6)break;else _0x4fcbab['push'](_0x4fcbab['shift']());}catch(_0x2200b3){_0x4fcbab['push'](_0x4fcbab['shift']());}}}(a4_0x4d7f,0xcef91));Object[a4_0x398e06(0x1df)](exports,a4_0x398e06(0x1c7),{'value':!![]}),exports[a4_0x398e06(0x1c5)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x398e06(0x1d6)),action_1=require(a4_0x398e06(0x1d9));function Api(_0x2c4e23,_0x1cf1ca=a4_0x398e06(0x1d1),_0x29415b='/',_0x236fa5={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4ce169,_0x5108d6,_0x238b81)=>{const _0x194906=a4_0x22fe;var _0x3d3ead,_0x12fe4a,_0xed9a14;!_0x236fa5[_0x194906(0x1dd)]&&(_0x236fa5['middleware']=[]);!((_0x3d3ead=_0x236fa5===null||_0x236fa5===void 0x0?void 0x0:_0x236fa5[_0x194906(0x1d0)])===null||_0x3d3ead===void 0x0?void 0x0:_0x3d3ead['validationOptions'])&&(_0x236fa5[_0x194906(0x1d0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x194906(0x1d2)}});if(((_0x12fe4a=_0x236fa5===null||_0x236fa5===void 0x0?void 0x0:_0x236fa5[_0x194906(0x1dd)])===null||_0x12fe4a===void 0x0?void 0x0:_0x12fe4a[_0x194906(0x1c4)])>0x0&&((_0xed9a14=_0x236fa5===null||_0x236fa5===void 0x0?void 0x0:_0x236fa5[_0x194906(0x1e0)])===null||_0xed9a14===void 0x0?void 0x0:_0xed9a14[_0x194906(0x1c4)])>0x0)for(let _0x1143c1 in _0x236fa5['middleware']){_0x236fa5['middlewareIgnore'][_0x194906(0x1e3)](_0x236fa5[_0x194906(0x1dd)][_0x1143c1])!==-0x1&&(_0x236fa5[_0x194906(0x1dd)][_0x1143c1]=null);}_0x236fa5[_0x194906(0x1c8)]=_0x2c4e23,(0x0,validator_1[_0x194906(0x1c9)])(_0x236fa5[_0x194906(0x1d0)])(_0x4ce169,_0x5108d6,_0x238b81),(0x0,decorator_1['RequestMapping'])(Object['assign'](_0x236fa5,{'path':_0x29415b,'requestMethod':(_0x1cf1ca==_0x194906(0x1d8)?_0x194906(0x1c6):_0x1cf1ca)[_0x194906(0x1da)]()}))(_0x4ce169,_0x5108d6,_0x238b81),(0x0,decorator_1[_0x194906(0x1d5)])(action_1[_0x194906(0x1cb)],{'path':_0x29415b,'method':_0x5108d6,'apimit':_0x236fa5[_0x194906(0x1ce)],'routerName':_0x236fa5[_0x194906(0x1c8)],'description':_0x236fa5[_0x194906(0x1dc)],'middleware':(_0x236fa5[_0x194906(0x1dd)]||[])[_0x194906(0x1d3)](_0x3bc306=>!!_0x3bc306),'requestMethod':(_0x1cf1ca==_0x194906(0x1d8)?_0x194906(0x1c6):_0x1cf1ca)[_0x194906(0x1da)]()},_0x4ce169),(0x0,decorator_1[_0x194906(0x1c3)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x29415b,'method':_0x5108d6,'apimit':_0x236fa5[_0x194906(0x1ce)],'routerName':_0x236fa5[_0x194906(0x1c8)],'description':_0x236fa5[_0x194906(0x1dc)],'middleware':(_0x236fa5['middleware']||[])[_0x194906(0x1d3)](_0x4db620=>!!_0x4db620),'requestMethod':(_0x1cf1ca==_0x194906(0x1d8)?_0x194906(0x1c6):_0x1cf1ca)['toLowerCase']()})(_0x4ce169,_0x5108d6,_0x238b81);};}exports[a4_0x398e06(0x1c5)]=Api;function a4_0x4d7f(){const _0x48f297=['3293337BaZCDh','4875462GYtIWM','createCustomMethodDecorator','length','Api','delete','__esModule','routerName','Validator','30ffWLDH','ACTION_ROUTE_KEY','664QcBErW','100lDdgpz','apimit','2476956Lbjccu','validate','get','utc','filter','3590364RTdywZ','attachClassMetadata','@midwayjs/decorator','242iYuhrK','del','../types/action','toLowerCase','1cbPnLj','description','middleware','131894CEgMpQ','defineProperty','middlewareIgnore','3339876dCGomH','95610fYxgyN','indexOf'];a4_0x4d7f=function(){return _0x48f297;};return a4_0x4d7f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x113d76=a5_0x1768;(function(_0x1690ca,_0x1da5a3){const _0x4ab3b5=a5_0x1768,_0x389af5=_0x1690ca();while(!![]){try{const _0x37774d=parseInt(_0x4ab3b5(0x152))/0x1+-parseInt(_0x4ab3b5(0x153))/0x2+-parseInt(_0x4ab3b5(0x156))/0x3*(parseInt(_0x4ab3b5(0x15e))/0x4)+-parseInt(_0x4ab3b5(0x14f))/0x5*(parseInt(_0x4ab3b5(0x15a))/0x6)+parseInt(_0x4ab3b5(0x147))/0x7*(parseInt(_0x4ab3b5(0x150))/0x8)+-parseInt(_0x4ab3b5(0x15d))/0x9+parseInt(_0x4ab3b5(0x151))/0xa;if(_0x37774d===_0x1da5a3)break;else _0x389af5['push'](_0x389af5['shift']());}catch(_0x353b3c){_0x389af5['push'](_0x389af5['shift']());}}}(a5_0x16f2,0x7fb07));Object[a5_0x113d76(0x155)](exports,'__esModule',{'value':!![]}),exports[a5_0x113d76(0x146)]=void 0x0;function a5_0x16f2(){const _0x1e9640=['app','RequestMapping','../service/ApitestService','ApitestService','filepath','REQUEST_OBJ_CTX_KEY','getAsync','5AlsUrJ','32TCmgkk','11319750zRhseF','489876XobqxO','338616WAGdbO','@midwayjs/core','defineProperty','3201xyFYQt','@midwayjs/decorator','get','apitest','2902314YHsskq','MidwayEnvironmentService','value','2126736mMNJQi','3548SByFXL','Apitest','1289617SaGxJr'];a5_0x16f2=function(){return _0x1e9640;};return a5_0x16f2();}const decorator_1=require(a5_0x113d76(0x157)),core_1=require(a5_0x113d76(0x154)),ApitestService_1=require(a5_0x113d76(0x14a));function a5_0x1768(_0x5d1486,_0x4afa2e){const _0x16f2e9=a5_0x16f2();return a5_0x1768=function(_0x176867,_0xfc3a9){_0x176867=_0x176867-0x146;let _0x22303b=_0x16f2e9[_0x176867];return _0x22303b;},a5_0x1768(_0x5d1486,_0x4afa2e);}function Apitest(_0x4a7c95='/apitest',_0x4e6cf8){return(_0x114610,_0xee1b5c,_0x4837d2)=>{const _0x4b8d09=a5_0x1768;return(0x0,decorator_1[_0x4b8d09(0x149)])({'path':_0x4a7c95,'requestMethod':_0x4b8d09(0x158)})(_0x114610,_0xee1b5c,_0x4837d2),_0x4837d2[_0x4b8d09(0x15c)]=async function(..._0x1734f1){const _0xa8bd6a=_0x4b8d09;var _0x53db25;const _0x52c8a1=(_0x53db25=this[core_1[_0xa8bd6a(0x14d)]])===null||_0x53db25===void 0x0?void 0x0:_0x53db25[_0xa8bd6a(0x148)];if(_0x52c8a1&&_0x52c8a1['getConfig'](_0xa8bd6a(0x159))){const _0x1b0185=await _0x52c8a1['getApplicationContext']()[_0xa8bd6a(0x14e)](ApitestService_1[_0xa8bd6a(0x14b)]),_0x59c8e5=await _0x52c8a1['getApplicationContext']()[_0xa8bd6a(0x14e)](core_1[_0xa8bd6a(0x15b)]);return _0x59c8e5['isDevelopmentEnvironment']()&&(_0x4e6cf8[_0xa8bd6a(0x14c)]=!![]),await _0x1b0185['apidoc'](_0x4e6cf8);}return'';},_0x4837d2;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x599648=a6_0x584d;(function(_0x2c5eb7,_0x549691){var _0x57e5bc=a6_0x584d,_0x2b6603=_0x2c5eb7();while(!![]){try{var _0xf6d259=parseInt(_0x57e5bc(0xd4))/0x1*(-parseInt(_0x57e5bc(0xdc))/0x2)+parseInt(_0x57e5bc(0xcf))/0x3+-parseInt(_0x57e5bc(0xd7))/0x4*(parseInt(_0x57e5bc(0xdf))/0x5)+parseInt(_0x57e5bc(0xdd))/0x6+parseInt(_0x57e5bc(0xea))/0x7+parseInt(_0x57e5bc(0xe6))/0x8*(parseInt(_0x57e5bc(0xdb))/0x9)+-parseInt(_0x57e5bc(0xd0))/0xa;if(_0xf6d259===_0x549691)break;else _0x2b6603['push'](_0x2b6603['shift']());}catch(_0x5a6376){_0x2b6603['push'](_0x2b6603['shift']());}}}(a6_0x1a05,0xa10f1));var __decorate=this&&this['__decorate']||function(_0x485a6d,_0x308877,_0x348ae7,_0x49fe3a){var _0x4382dd=a6_0x584d,_0x87fea9=arguments[_0x4382dd(0xd2)],_0x477eeb=_0x87fea9<0x3?_0x308877:_0x49fe3a===null?_0x49fe3a=Object['getOwnPropertyDescriptor'](_0x308877,_0x348ae7):_0x49fe3a,_0x58e26b;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4382dd(0xd5))_0x477eeb=Reflect[_0x4382dd(0xe3)](_0x485a6d,_0x308877,_0x348ae7,_0x49fe3a);else{for(var _0x380223=_0x485a6d[_0x4382dd(0xd2)]-0x1;_0x380223>=0x0;_0x380223--)if(_0x58e26b=_0x485a6d[_0x380223])_0x477eeb=(_0x87fea9<0x3?_0x58e26b(_0x477eeb):_0x87fea9>0x3?_0x58e26b(_0x308877,_0x348ae7,_0x477eeb):_0x58e26b(_0x308877,_0x348ae7))||_0x477eeb;}return _0x87fea9>0x3&&_0x477eeb&&Object[_0x4382dd(0xe0)](_0x308877,_0x348ae7,_0x477eeb),_0x477eeb;},__metadata=this&&this[a6_0x599648(0xe1)]||function(_0x4e910b,_0x54ad8d){var _0x5e2692=a6_0x599648;if(typeof Reflect===_0x5e2692(0xe2)&&typeof Reflect[_0x5e2692(0xce)]===_0x5e2692(0xd5))return Reflect[_0x5e2692(0xce)](_0x4e910b,_0x54ad8d);};function a6_0x1a05(){var _0x135959=['3119395SmVSTv','defineProperty','__metadata','object','decorate','HEADERS_LACK','design:type','10264Mcqvkv','请使用正确的设备','signature验证失败','ApiError','1049888BWDyzB','metadata','3611064hletoM','3006430fTuyie','HEADERS_DEVICE','length','checkcode验证失败','4409xKWUfy','function','TIMEOUT','8EVPhLX','HEADERS_CHECKCODE','__esModule','HEADERS_SIGNATURE','4122LWGjTj','448HLCkBT','7526568EkRsFv','请求头信息不完整'];a6_0x1a05=function(){return _0x135959;};return a6_0x1a05();}Object['defineProperty'](exports,a6_0x599648(0xd9),{'value':!![]}),exports['ApiError']=void 0x0;function a6_0x584d(_0x1ea86b,_0x27be80){var _0x1a0595=a6_0x1a05();return a6_0x584d=function(_0x584de1,_0x269956){_0x584de1=_0x584de1-0xce;var _0x256c46=_0x1a0595[_0x584de1];return _0x256c46;},a6_0x584d(_0x1ea86b,_0x27be80);}class ApiError{}ApiError[a6_0x599648(0xd6)]=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError['HEADERS_DEVICE']=0x3d7e33,ApiError[a6_0x599648(0xd8)]=0x3d7e34,ApiError[a6_0x599648(0xda)]=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x599648(0xe5),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xde)),__metadata(a6_0x599648(0xe5),Object)],ApiError,a6_0x599648(0xe4),void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xe7)),__metadata(a6_0x599648(0xe5),Object)],ApiError,a6_0x599648(0xd1),void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xd3)),__metadata(a6_0x599648(0xe5),Object)],ApiError,a6_0x599648(0xd8),void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xe8)),__metadata('design:type',Object)],ApiError,a6_0x599648(0xda),void 0x0),exports[a6_0x599648(0xe9)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x35f32a=a7_0xa988;(function(_0x5a151b,_0x4fde5b){const _0x25342b=a7_0xa988,_0x5ab516=_0x5a151b();while(!![]){try{const _0x1da346=-parseInt(_0x25342b(0x194))/0x1+parseInt(_0x25342b(0x189))/0x2*(-parseInt(_0x25342b(0x195))/0x3)+parseInt(_0x25342b(0x190))/0x4+parseInt(_0x25342b(0x18f))/0x5+parseInt(_0x25342b(0x193))/0x6+-parseInt(_0x25342b(0x187))/0x7*(parseInt(_0x25342b(0x18c))/0x8)+parseInt(_0x25342b(0x188))/0x9;if(_0x1da346===_0x4fde5b)break;else _0x5ab516['push'](_0x5ab516['shift']());}catch(_0x21071e){_0x5ab516['push'](_0x5ab516['shift']());}}}(a7_0x1979,0x20a8d));function a7_0x1979(){const _0x23cf49=['defineProperty','509610cOPVQt','256868BcbJpQ','124218kPZudq','__esModule','getAppsConfig','29113tFPqsF','3696345jUeAFy','2RvZyND','getClassMetadata','AppsConfigTmp','496Tapsvo','get','../types/action','304565PTHvmQ','533408hHbPol','APPSCONFIG_KEY'];a7_0x1979=function(){return _0x23cf49;};return a7_0x1979();}function a7_0xa988(_0x4711e0,_0x52583b){const _0x1979c1=a7_0x1979();return a7_0xa988=function(_0xa988b8,_0xa21a99){_0xa988b8=_0xa988b8-0x186;let _0x4e0e32=_0x1979c1[_0xa988b8];return _0x4e0e32;},a7_0xa988(_0x4711e0,_0x52583b);}Object[a7_0x35f32a(0x192)](exports,a7_0x35f32a(0x196),{'value':!![]}),exports[a7_0x35f32a(0x186)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),action_1=require(a7_0x35f32a(0x18e));function getAppsConfig(_0x22e4e2){const _0x1eebb2=a7_0x35f32a,_0x4dce06=(0x0,decorator_1[_0x1eebb2(0x18a)])(action_1[_0x1eebb2(0x191)],action_1[_0x1eebb2(0x18b)])||{};return _0x22e4e2?lodash[_0x1eebb2(0x18d)](_0x4dce06,_0x22e4e2):_0x4dce06;}exports[a7_0x35f32a(0x186)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x2627f0=a8_0x199b;(function(_0x2ee6c6,_0x3355bd){const _0x3f483f=a8_0x199b,_0x564d1a=_0x2ee6c6();while(!![]){try{const _0x28f4ea=parseInt(_0x3f483f(0x175))/0x1*(parseInt(_0x3f483f(0x198))/0x2)+-parseInt(_0x3f483f(0x1a2))/0x3+-parseInt(_0x3f483f(0x166))/0x4*(-parseInt(_0x3f483f(0x193))/0x5)+parseInt(_0x3f483f(0x171))/0x6+parseInt(_0x3f483f(0x15d))/0x7+parseInt(_0x3f483f(0x1ad))/0x8+parseInt(_0x3f483f(0x1b8))/0x9*(-parseInt(_0x3f483f(0x18b))/0xa);if(_0x28f4ea===_0x3355bd)break;else _0x564d1a['push'](_0x564d1a['shift']());}catch(_0x4ba9cc){_0x564d1a['push'](_0x564d1a['shift']());}}}(a8_0x2e7a,0x7f648));Object[a8_0x2627f0(0x169)](exports,a8_0x2627f0(0x163),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x2627f0(0x178)),decorator_1=require(a8_0x2627f0(0x16f)),decorator_2=require(a8_0x2627f0(0x16f)),decorator_3=require(a8_0x2627f0(0x16f)),action_1=require(a8_0x2627f0(0x182));function getRoutes(_0x50b8c5={'prefix':'/','module':![]}){const _0x298545=a8_0x2627f0;var _0x3fade0,_0x34ac62;const _0x14d637=(0x0,decorator_3[_0x298545(0x1b6)])(action_1[_0x298545(0x1b4)]),_0x4b2e25={},_0x34496a=Array[_0x298545(0x165)](_0x50b8c5['filter']||[])?_0x50b8c5[_0x298545(0x1a6)]||[]:[_0x50b8c5[_0x298545(0x1a6)]];_0x14d0c1:for(const _0x15ff38 of _0x14d637){let _0x11a986=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_KEY'],_0x15ff38),_0x4bb549=(0x0,decorator_3[_0x298545(0x176)])(action_1['ACTION_ROUTE_KEY'],_0x15ff38);if(_0x11a986&&_0x4bb549){let _0x3c41a6=_0x11a986['prefix'],_0x5b496a={};if(_0x50b8c5[_0x298545(0x192)]&&(0x0,lodash_1[_0x298545(0x1af)])(_0x11a986,_0x298545(0x192),![])!=_0x50b8c5[_0x298545(0x192)])continue _0x14d0c1;else{if(_0x50b8c5['module']===![]&&!!(0x0,lodash_1[_0x298545(0x1af)])(_0x11a986,_0x298545(0x192),null))continue _0x14d0c1;}if(_0x50b8c5[_0x298545(0x187)]&&!_0x3c41a6[_0x298545(0x194)](_0x50b8c5[_0x298545(0x187)]))continue _0x14d0c1;_0x3c41a6!=='/'?(_0x5b496a[_0x298545(0x17e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986['routerOptions'][_0x298545(0x1b1)])||(/^\//['test'](_0x3c41a6)?_0x3c41a6['split']('/')[0x1]:_0x3c41a6),_0x5b496a[_0x298545(0x16e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x190)][_0x298545(0x16e)])||_0x5b496a[_0x298545(0x17e)],_0x5b496a['routes']=[]):(_0x5b496a[_0x298545(0x17e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986['routerOptions'][_0x298545(0x1b1)])||_0x298545(0x1a3),_0x5b496a[_0x298545(0x16e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x190)][_0x298545(0x16e)])||'',_0x5b496a[_0x298545(0x1ae)]=[]);_0x50b8c5[_0x298545(0x1a4)]&&(_0x5b496a[_0x298545(0x1a4)]=_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x1a4)]);(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x174)])&&(_0x5b496a[_0x298545(0x187)]=_0x11a986[_0x298545(0x174)]);(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986['module'])&&(_0x5b496a[_0x298545(0x192)]=_0x11a986[_0x298545(0x192)]);let _0x472577=(0x0,decorator_3['getClassMetadata'])(decorator_2['INJECT_CUSTOM_PARAM'],_0x15ff38)||{};if(typeof _0x4bb549[Symbol[_0x298545(0x1a7)]]===_0x298545(0x177))for(let _0x479837 of _0x4bb549){let _0x175b43={};_0x175b43['method']=_0x479837['requestMethod'],_0x175b43['route']=(_0x3c41a6+_0x479837[_0x298545(0x19f)])[_0x298545(0x183)](/\/{1,}/,'/'),_0x175b43['summary']=(_0x479837===null||_0x479837===void 0x0?void 0x0:_0x479837[_0x298545(0x170)])||_0x5b496a[_0x298545(0x17e)]||_0x298545(0x1a3),_0x175b43[_0x298545(0x16e)]=(_0x479837===null||_0x479837===void 0x0?void 0x0:_0x479837[_0x298545(0x16e)])||'',_0x175b43[_0x298545(0x162)]=[];if(!(0x0,lodash_1[_0x298545(0x194)])(_0x175b43['route'],_0x298545(0x19b))&&!(0x0,lodash_1[_0x298545(0x194)])(_0x175b43[_0x298545(0x168)],'/static/apitest')&&_0x34496a[_0x298545(0x18f)](_0x175b43[_0x298545(0x168)])===-0x1){if(!(_0x50b8c5===null||_0x50b8c5===void 0x0?void 0x0:_0x50b8c5[_0x298545(0x172)])){let _0x2ef4ea=(0x0,decorator_3[_0x298545(0x195)])(new _0x15ff38(),_0x479837[_0x298545(0x17a)]);for(const _0x13c6b7 in _0x2ef4ea){let _0x462ff1=(_0x3fade0=_0x472577[_0x479837[_0x298545(0x17a)]])===null||_0x3fade0===void 0x0?void 0x0:_0x3fade0['find'](_0x2a4b1d=>_0x2a4b1d['parameterIndex']==_0x13c6b7&&_0x2a4b1d[_0x298545(0x181)]===decorator_2[_0x298545(0x1a1)]&&(_0x2a4b1d===null||_0x2a4b1d===void 0x0?void 0x0:_0x2a4b1d[_0x298545(0x19a)]));if(_0x462ff1===null||_0x462ff1===void 0x0?void 0x0:_0x462ff1['metadata']){let _0x71a479=convertTypeToString(_0x462ff1[_0x298545(0x19a)][_0x298545(0x164)]||0x0);if([_0x298545(0x1a0),_0x298545(0x1b2)]['indexOf'](_0x71a479)!=-0x1&&_0x462ff1[_0x298545(0x19a)][_0x298545(0x186)][_0x298545(0x18f)](':')==-0x1&&!_0x175b43[_0x298545(0x162)][_0x298545(0x17d)](_0x4c5ba4=>_0x4c5ba4[_0x298545(0x181)]==_0x462ff1['metadata'][_0x298545(0x186)]))_0x175b43['request']['push']({'key':_0x462ff1[_0x298545(0x19a)][_0x298545(0x186)],'title':_0x462ff1[_0x298545(0x19a)]['propertyData'],'type':convertSchemaType(_0x2ef4ea[_0x462ff1[_0x298545(0x16b)]]['name']),'required':![],'default':'','desc':''});else{if(_0x71a479=='file'){let _0x4f037e=((_0x34ac62=_0x462ff1===null||_0x462ff1===void 0x0?void 0x0:_0x462ff1[_0x298545(0x19a)])===null||_0x34ac62===void 0x0?void 0x0:_0x34ac62[_0x298545(0x186)])||_0x298545(0x1b0);_0x4f037e[_0x298545(0x18f)](':')==-0x1&&!_0x175b43['request'][_0x298545(0x17d)](_0x4c51e9=>_0x4c51e9['key']==_0x4f037e&&_0x4c51e9[_0x298545(0x164)]==_0x298545(0x1b0))&&_0x175b43[_0x298545(0x162)][_0x298545(0x19d)]({'key':_0x4f037e,'title':_0x298545(0x1ba)+_0x4f037e,'type':_0x298545(0x1b0),'required':!![],'default':'','desc':''});}}}else{const _0x3f7880=(0x0,decorator_3[_0x298545(0x1b3)])(validator_1['RULES_KEY'],_0x2ef4ea[_0x13c6b7]);_0x3f7880&&_0x175b43[_0x298545(0x162)][_0x298545(0x19d)](...getJoiRequest(_0x3f7880));}}}_0x5b496a[_0x298545(0x1ae)]['push'](_0x175b43);}}if(_0x5b496a[_0x298545(0x1ae)][_0x298545(0x18d)]>0x0){let _0x5102d5=_0x4b2e25[_0x3c41a6];_0x5102d5?(_0x5102d5[_0x298545(0x17e)]!=_0x5b496a[_0x298545(0x17e)]&&(_0x5102d5[_0x298545(0x17e)]=_0x5102d5['summary']+','+_0x5b496a[_0x298545(0x17e)]),_0x5102d5[_0x298545(0x16e)]!=_0x5b496a[_0x298545(0x16e)]&&(_0x5102d5[_0x298545(0x16e)]=_0x5102d5['description']+','+_0x5b496a[_0x298545(0x16e)]),_0x5102d5[_0x298545(0x1ae)]=_0x5102d5['routes'][_0x298545(0x197)](_0x5b496a[_0x298545(0x1ae)]),_0x4b2e25[_0x3c41a6]=_0x5102d5):_0x4b2e25[_0x3c41a6]=_0x5b496a;}}}return _0x4b2e25;}function a8_0x199b(_0x589854,_0x20a86e){const _0x2e7adb=a8_0x2e7a();return a8_0x199b=function(_0x199b42,_0x53c80d){_0x199b42=_0x199b42-0x15d;let _0x2dde2c=_0x2e7adb[_0x199b42];return _0x2dde2c;},a8_0x199b(_0x589854,_0x20a86e);}exports[a8_0x2627f0(0x1a9)]=getRoutes;function getJoiRequest(_0x357b7c){const _0x271706=a8_0x2627f0,_0x5d1553=[];for(let _0x3474ca in _0x357b7c){const _0x23bcdc={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2d8d04=typeof _0x357b7c[_0x3474ca]['describe']==_0x271706(0x177)?_0x357b7c[_0x3474ca][_0x271706(0x18e)]():_0x357b7c[_0x3474ca];_0x23bcdc[_0x271706(0x181)]=_0x3474ca,_0x23bcdc['type']=_0x2d8d04[_0x271706(0x164)],_0x23bcdc['title']=(0x0,lodash_1[_0x271706(0x1af)])(_0x2d8d04,_0x271706(0x1b9),_0x3474ca),_0x23bcdc[_0x271706(0x1a3)]=(0x0,lodash_1[_0x271706(0x1af)])(_0x2d8d04,'flags.default',''),_0x23bcdc[_0x271706(0x161)]=(0x0,lodash_1['get'])(_0x2d8d04,_0x271706(0x1a8),'')=='required',_0x23bcdc[_0x271706(0x16e)]=(0x0,lodash_1[_0x271706(0x1af)])(_0x2d8d04,'flags.description','');if(_0x2d8d04[_0x271706(0x164)]==_0x271706(0x185))_0x23bcdc[_0x271706(0x1ac)]=getJoiRequest(_0x2d8d04[_0x271706(0x179)]);else _0x2d8d04['type']==_0x271706(0x17c)&&_0x2d8d04[_0x271706(0x173)]&&Array[_0x271706(0x165)](_0x2d8d04['items'])&&_0x2d8d04['items'][0x0]&&console[_0x271706(0x1ab)](_0x3474ca+_0x271706(0x16c),_0x2d8d04);_0x2d8d04[_0x271706(0x1bb)]&&Array[_0x271706(0x165)](_0x2d8d04[_0x271706(0x1bb)])&&_0x2d8d04[_0x271706(0x1bb)][_0x271706(0x18d)]>0x0&&(_0x23bcdc['description']=_0x271706(0x1a5)+_0x2d8d04[_0x271706(0x1bb)][_0x271706(0x15e)](',')+'];'+_0x23bcdc[_0x271706(0x16e)]);if(_0x23bcdc[_0x271706(0x181)]&&_0x23bcdc[_0x271706(0x164)]){const _0x89c9c3={};for(const _0x16df69 of _0x2d8d04['rules']||[]){if(_0x16df69['name']==='min'&&_0x16df69[_0x271706(0x199)])_0x89c9c3[_0x271706(0x19c)]=_0x16df69['args']['limit'];else _0x16df69[_0x271706(0x18a)]==='max'&&(_0x89c9c3[_0x271706(0x17f)]=_0x16df69[_0x271706(0x199)][_0x271706(0x18c)]);}_0x23bcdc['rules']=_0x89c9c3;}_0x23bcdc[_0x271706(0x181)]&&_0x23bcdc[_0x271706(0x1b7)]&&_0x5d1553[_0x271706(0x19d)](_0x23bcdc);}return _0x5d1553;}function convertSchemaType(_0x1a99b3){const _0x1dd85e=a8_0x2627f0;switch(_0x1a99b3){case'Object':return _0x1dd85e(0x185);case _0x1dd85e(0x184):return _0x1dd85e(0x16a);case _0x1dd85e(0x16d):return _0x1dd85e(0x15f);case _0x1dd85e(0x188):return _0x1dd85e(0x160);case _0x1dd85e(0x196):return _0x1dd85e(0x1b0);default:return _0x1dd85e(0x160);}}function a8_0x2e7a(){const _0x2c15e8=['describe','indexOf','routerOptions','PARAM','module','2458865wwFxYp','startsWith','getMethodParamTypes','File','concat','1607194KXbtXM','args','metadata','static/apitest','min','push','FILESTREAM','path','query','WEB_ROUTER_PARAM_KEY','531897QAWerT','default','filepath','只允许:[','filter','iterator','flags.presence','getRoutes','FIELDS','log','children','550672djbIgN','routes','get','file','tagName','body','getClassExtendedMetadata','ACTION_KEY','header','listModule','title','389646kMwENb','flags.label','文件上传-','allow','5493663EKGbBL','join','number','string','required','request','__esModule','type','isArray','4NQjhMP','RouteParamTypes','route','defineProperty','boolean','parameterIndex','-array','Number','description','@midwayjs/decorator','routerName','3509424xgKZkN','noreq','items','pprefix','1bZTMgP','getClassMetadata','function','@anncic-api/validator','keys','method','FILESSTREAM','array','find','summary','max','BODY','key','../types/action','replace','Boolean','object','propertyData','prefix','String','HEADERS','name','470XZDnRd','limit','length'];a8_0x2e7a=function(){return _0x2c15e8;};return a8_0x2e7a();}function convertTypeToString(_0x41c8cd){const _0x535118=a8_0x2627f0;switch(_0x41c8cd){case decorator_1[_0x535118(0x167)][_0x535118(0x189)]:return _0x535118(0x1b5);case decorator_1[_0x535118(0x167)]['QUERY']:return _0x535118(0x1a0);case decorator_1[_0x535118(0x167)][_0x535118(0x191)]:return'path';case decorator_1[_0x535118(0x167)][_0x535118(0x180)]:return'body';case decorator_1[_0x535118(0x167)][_0x535118(0x1aa)]:case decorator_1['RouteParamTypes'][_0x535118(0x17b)]:case decorator_1[_0x535118(0x167)][_0x535118(0x19e)]:return _0x535118(0x1b0);default:return _0x535118(0x1b5);}}
|
|
1
|
+
'use strict';const a8_0x18bf1f=a8_0x372b;function a8_0x14e1(){const _0x5dcb7a=['6520xusYGF','body','RouteParamTypes','description','function','split','getMethodParamTypes','allow','min','routes','type','INJECT_CUSTOM_PARAM','max','/static/apitest','file','limit','title','__esModule','1779428AMJGTe','path','indexOf','defineProperty','requestMethod','method','tagName','header','文件上传-','3332724jXpbCj','boolean','replace','只允许:[','find','module','rules','246646nkDuYx','object','Number','children','iterator','concat','number','flags.description','prefix','query','parameterIndex','propertyData','flags.default','pprefix','filter','route','required','getRoutes','metadata','length','isArray','getClassMetadata','ACTION_ROUTE_KEY','@midwayjs/decorator','../types/action','getClassExtendedMetadata','FILESSTREAM','key','get','1764172uRXKYo','@anncic-api/validator','args','filepath','test','-array','routerName','summary','2142wPzBjL','routerOptions','string','join','keys','FILESTREAM','static/apitest','ACTION_KEY','2454928qQcuGF','default','request','startsWith','push','name','flags.presence','10444800FEIQBK','Object','describe','listModule'];a8_0x14e1=function(){return _0x5dcb7a;};return a8_0x14e1();}(function(_0x261968,_0x5a25b6){const _0x96ba5d=a8_0x372b,_0x586536=_0x261968();while(!![]){try{const _0x24a28b=parseInt(_0x96ba5d(0x1c5))/0x1+parseInt(_0x96ba5d(0x188))/0x2+parseInt(_0x96ba5d(0x1be))/0x3+parseInt(_0x96ba5d(0x1b5))/0x4+parseInt(_0x96ba5d(0x1a3))/0x5*(-parseInt(_0x96ba5d(0x190))/0x6)+-parseInt(_0x96ba5d(0x198))/0x7+-parseInt(_0x96ba5d(0x19f))/0x8;if(_0x24a28b===_0x5a25b6)break;else _0x586536['push'](_0x586536['shift']());}catch(_0x1fc7de){_0x586536['push'](_0x586536['shift']());}}}(a8_0x14e1,0x895e9));function a8_0x372b(_0x46773b,_0x46c971){const _0x14e191=a8_0x14e1();return a8_0x372b=function(_0x372b50,_0x4acb9f){_0x372b50=_0x372b50-0x178;let _0x1573b6=_0x14e191[_0x372b50];return _0x1573b6;},a8_0x372b(_0x46773b,_0x46c971);}Object[a8_0x18bf1f(0x1b8)](exports,a8_0x18bf1f(0x1b4),{'value':!![]}),exports[a8_0x18bf1f(0x17c)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x18bf1f(0x189)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x18bf1f(0x182)),decorator_3=require(a8_0x18bf1f(0x182)),action_1=require(a8_0x18bf1f(0x183));function getRoutes(_0x369639={'prefix':'/','module':![]}){const _0x55f49f=a8_0x18bf1f;var _0xbb6c1b,_0x14575;const _0x5b469e=(0x0,decorator_3[_0x55f49f(0x1a2)])(action_1['ACTION_KEY']),_0x436c25={},_0x21c2dd=Array[_0x55f49f(0x17f)](_0x369639['filter']||[])?_0x369639[_0x55f49f(0x179)]||[]:[_0x369639[_0x55f49f(0x179)]];_0x2e4e30:for(const _0x33134a of _0x5b469e){let _0x2b23b3=(0x0,decorator_3['getClassMetadata'])(action_1[_0x55f49f(0x197)],_0x33134a),_0x822252=(0x0,decorator_3[_0x55f49f(0x180)])(action_1[_0x55f49f(0x181)],_0x33134a);if(_0x2b23b3&&_0x822252){let _0x1c8726=_0x2b23b3[_0x55f49f(0x1cd)],_0x3acf4f={};if(_0x369639['module']&&(0x0,lodash_1['get'])(_0x2b23b3,_0x55f49f(0x1c3),![])!=_0x369639['module'])continue _0x2e4e30;else{if(_0x369639[_0x55f49f(0x1c3)]===![]&&!!(0x0,lodash_1[_0x55f49f(0x187)])(_0x2b23b3,_0x55f49f(0x1c3),null))continue _0x2e4e30;}if(_0x369639[_0x55f49f(0x1cd)]&&!_0x1c8726[_0x55f49f(0x19b)](_0x369639[_0x55f49f(0x1cd)]))continue _0x2e4e30;_0x1c8726!=='/'?(_0x3acf4f[_0x55f49f(0x18f)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['routerOptions'][_0x55f49f(0x1bb)])||(/^\//[_0x55f49f(0x18c)](_0x1c8726)?_0x1c8726[_0x55f49f(0x1a8)]('/')[0x1]:_0x1c8726),_0x3acf4f[_0x55f49f(0x1a6)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1a6)])||_0x3acf4f['summary'],_0x3acf4f['routes']=[]):(_0x3acf4f['summary']=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1bb)])||_0x55f49f(0x199),_0x3acf4f[_0x55f49f(0x1a6)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1a6)])||'',_0x3acf4f[_0x55f49f(0x1ac)]=[]);_0x369639[_0x55f49f(0x18b)]&&(_0x3acf4f[_0x55f49f(0x18b)]=_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['filepath']);(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x178)])&&(_0x3acf4f[_0x55f49f(0x1cd)]=_0x2b23b3[_0x55f49f(0x178)]);(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['module'])&&(_0x3acf4f[_0x55f49f(0x1c3)]=_0x2b23b3[_0x55f49f(0x1c3)]);let _0x233a7e=(0x0,decorator_3[_0x55f49f(0x180)])(decorator_2[_0x55f49f(0x1ae)],_0x33134a)||{};if(typeof _0x822252[Symbol[_0x55f49f(0x1c9)]]===_0x55f49f(0x1a7))for(let _0x1f2874 of _0x822252){let _0x11d175={};_0x11d175['method']=_0x1f2874[_0x55f49f(0x1b9)],_0x11d175[_0x55f49f(0x17a)]=(_0x1c8726+_0x1f2874[_0x55f49f(0x1b6)])[_0x55f49f(0x1c0)](/\/{1,}/,'/'),_0x11d175[_0x55f49f(0x18f)]=(_0x1f2874===null||_0x1f2874===void 0x0?void 0x0:_0x1f2874[_0x55f49f(0x18e)])||_0x3acf4f[_0x55f49f(0x18f)]||_0x55f49f(0x199),_0x11d175[_0x55f49f(0x1a6)]=(_0x1f2874===null||_0x1f2874===void 0x0?void 0x0:_0x1f2874['description'])||'',_0x11d175[_0x55f49f(0x19a)]=[];if(!(0x0,lodash_1[_0x55f49f(0x19b)])(_0x11d175[_0x55f49f(0x17a)],_0x55f49f(0x196))&&!(0x0,lodash_1[_0x55f49f(0x19b)])(_0x11d175[_0x55f49f(0x17a)],_0x55f49f(0x1b0))&&_0x21c2dd[_0x55f49f(0x1b7)](_0x11d175[_0x55f49f(0x17a)])===-0x1){if(!(_0x369639===null||_0x369639===void 0x0?void 0x0:_0x369639['noreq'])){let _0x2fe4a1=(0x0,decorator_3[_0x55f49f(0x1a9)])(new _0x33134a(),_0x1f2874[_0x55f49f(0x1ba)]);for(const _0x4f3ece in _0x2fe4a1){let _0x229f25=(_0xbb6c1b=_0x233a7e[_0x1f2874[_0x55f49f(0x1ba)]])===null||_0xbb6c1b===void 0x0?void 0x0:_0xbb6c1b[_0x55f49f(0x1c2)](_0x4d546e=>_0x4d546e[_0x55f49f(0x1cf)]==_0x4f3ece&&_0x4d546e[_0x55f49f(0x186)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x4d546e===null||_0x4d546e===void 0x0?void 0x0:_0x4d546e[_0x55f49f(0x17d)]));if(_0x229f25===null||_0x229f25===void 0x0?void 0x0:_0x229f25[_0x55f49f(0x17d)]){let _0xa703ea=convertTypeToString(_0x229f25['metadata'][_0x55f49f(0x1ad)]||0x0);if([_0x55f49f(0x1ce),_0x55f49f(0x1a4)][_0x55f49f(0x1b7)](_0xa703ea)!=-0x1&&_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)][_0x55f49f(0x1b7)](':')==-0x1&&!_0x11d175[_0x55f49f(0x19a)][_0x55f49f(0x1c2)](_0x10fb3f=>_0x10fb3f[_0x55f49f(0x186)]==_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)]))_0x11d175['request'][_0x55f49f(0x19c)]({'key':_0x229f25[_0x55f49f(0x17d)]['propertyData'],'title':_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)],'type':convertSchemaType(_0x2fe4a1[_0x229f25[_0x55f49f(0x1cf)]][_0x55f49f(0x19d)]),'required':![],'default':'','desc':''});else{if(_0xa703ea=='file'){let _0x1c8eff=((_0x14575=_0x229f25===null||_0x229f25===void 0x0?void 0x0:_0x229f25[_0x55f49f(0x17d)])===null||_0x14575===void 0x0?void 0x0:_0x14575[_0x55f49f(0x1d0)])||'file';_0x1c8eff[_0x55f49f(0x1b7)](':')==-0x1&&!_0x11d175[_0x55f49f(0x19a)]['find'](_0x3366cc=>_0x3366cc[_0x55f49f(0x186)]==_0x1c8eff&&_0x3366cc[_0x55f49f(0x1ad)]=='file')&&_0x11d175[_0x55f49f(0x19a)][_0x55f49f(0x19c)]({'key':_0x1c8eff,'title':_0x55f49f(0x1bd)+_0x1c8eff,'type':_0x55f49f(0x1b1),'required':!![],'default':'','desc':''});}}}else{const _0x22047d=(0x0,decorator_3[_0x55f49f(0x184)])(validator_1['RULES_KEY'],_0x2fe4a1[_0x4f3ece]);_0x22047d&&_0x11d175['request'][_0x55f49f(0x19c)](...getJoiRequest(_0x22047d));}}}_0x3acf4f[_0x55f49f(0x1ac)][_0x55f49f(0x19c)](_0x11d175);}}if(_0x3acf4f['routes'][_0x55f49f(0x17e)]>0x0){let _0x373ca6=_0x436c25[_0x1c8726];_0x373ca6?(_0x373ca6[_0x55f49f(0x18f)]!=_0x3acf4f[_0x55f49f(0x18f)]&&(_0x373ca6[_0x55f49f(0x18f)]=_0x373ca6[_0x55f49f(0x18f)]+','+_0x3acf4f[_0x55f49f(0x18f)]),_0x373ca6[_0x55f49f(0x1a6)]!=_0x3acf4f[_0x55f49f(0x1a6)]&&(_0x373ca6[_0x55f49f(0x1a6)]=_0x373ca6[_0x55f49f(0x1a6)]+','+_0x3acf4f[_0x55f49f(0x1a6)]),_0x373ca6[_0x55f49f(0x1ac)]=_0x373ca6[_0x55f49f(0x1ac)][_0x55f49f(0x1ca)](_0x3acf4f[_0x55f49f(0x1ac)]),_0x436c25[_0x1c8726]=_0x373ca6):_0x436c25[_0x1c8726]=_0x3acf4f;}}}return _0x436c25;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x785922){const _0x48e74f=a8_0x18bf1f,_0x1037ec=[];for(let _0x213125 in _0x785922){const _0x3db747={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5eb6bc=typeof _0x785922[_0x213125]['describe']==_0x48e74f(0x1a7)?_0x785922[_0x213125][_0x48e74f(0x1a1)]():_0x785922[_0x213125];_0x3db747[_0x48e74f(0x186)]=_0x213125,_0x3db747[_0x48e74f(0x1ad)]=_0x5eb6bc[_0x48e74f(0x1ad)],_0x3db747[_0x48e74f(0x1b3)]=(0x0,lodash_1[_0x48e74f(0x187)])(_0x5eb6bc,'flags.label',_0x213125),_0x3db747[_0x48e74f(0x199)]=(0x0,lodash_1['get'])(_0x5eb6bc,_0x48e74f(0x1d1),''),_0x3db747[_0x48e74f(0x17b)]=(0x0,lodash_1['get'])(_0x5eb6bc,_0x48e74f(0x19e),'')==_0x48e74f(0x17b),_0x3db747[_0x48e74f(0x1a6)]=(0x0,lodash_1[_0x48e74f(0x187)])(_0x5eb6bc,_0x48e74f(0x1cc),'');if(_0x5eb6bc[_0x48e74f(0x1ad)]==_0x48e74f(0x1c6))_0x3db747[_0x48e74f(0x1c8)]=getJoiRequest(_0x5eb6bc[_0x48e74f(0x194)]);else _0x5eb6bc[_0x48e74f(0x1ad)]=='array'&&_0x5eb6bc['items']&&Array[_0x48e74f(0x17f)](_0x5eb6bc['items'])&&_0x5eb6bc['items'][0x0]&&console['log'](_0x213125+_0x48e74f(0x18d),_0x5eb6bc);_0x5eb6bc[_0x48e74f(0x1aa)]&&Array[_0x48e74f(0x17f)](_0x5eb6bc[_0x48e74f(0x1aa)])&&_0x5eb6bc[_0x48e74f(0x1aa)][_0x48e74f(0x17e)]>0x0&&(_0x3db747[_0x48e74f(0x1a6)]=_0x48e74f(0x1c1)+_0x5eb6bc['allow'][_0x48e74f(0x193)](',')+'];'+_0x3db747[_0x48e74f(0x1a6)]);if(_0x3db747[_0x48e74f(0x186)]&&_0x3db747[_0x48e74f(0x1ad)]){const _0x259efb={};for(const _0x310657 of _0x5eb6bc[_0x48e74f(0x1c4)]||[]){if(_0x310657['name']===_0x48e74f(0x1ab)&&_0x310657[_0x48e74f(0x18a)])_0x259efb[_0x48e74f(0x1ab)]=_0x310657[_0x48e74f(0x18a)][_0x48e74f(0x1b2)];else _0x310657[_0x48e74f(0x19d)]===_0x48e74f(0x1af)&&(_0x259efb[_0x48e74f(0x1af)]=_0x310657[_0x48e74f(0x18a)][_0x48e74f(0x1b2)]);}_0x3db747[_0x48e74f(0x1c4)]=_0x259efb;}_0x3db747[_0x48e74f(0x186)]&&_0x3db747[_0x48e74f(0x1b3)]&&_0x1037ec[_0x48e74f(0x19c)](_0x3db747);}return _0x1037ec;}function convertSchemaType(_0x249d2a){const _0xe1076c=a8_0x18bf1f;switch(_0x249d2a){case _0xe1076c(0x1a0):return _0xe1076c(0x1c6);case'Boolean':return _0xe1076c(0x1bf);case _0xe1076c(0x1c7):return _0xe1076c(0x1cb);case'String':return _0xe1076c(0x192);case'File':return _0xe1076c(0x1b1);default:return _0xe1076c(0x192);}}function convertTypeToString(_0x16ab43){const _0x5beed0=a8_0x18bf1f;switch(_0x16ab43){case decorator_1[_0x5beed0(0x1a5)]['HEADERS']:return'header';case decorator_1[_0x5beed0(0x1a5)]['QUERY']:return'query';case decorator_1[_0x5beed0(0x1a5)]['PARAM']:return _0x5beed0(0x1b6);case decorator_1[_0x5beed0(0x1a5)]['BODY']:return _0x5beed0(0x1a4);case decorator_1[_0x5beed0(0x1a5)]['FIELDS']:case decorator_1[_0x5beed0(0x1a5)][_0x5beed0(0x185)]:case decorator_1[_0x5beed0(0x1a5)][_0x5beed0(0x195)]:return _0x5beed0(0x1b1);default:return _0x5beed0(0x1bc);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0xe114c5=a9_0x4013;(function(_0x9331d5,_0x3a5aa5){var _0xffa44c=a9_0x4013,_0x295e1a=_0x9331d5();while(!![]){try{var _0x19bdcb=-parseInt(_0xffa44c(0x10f))/0x1*(parseInt(_0xffa44c(0x144))/0x2)+-parseInt(_0xffa44c(0x109))/0x3*(parseInt(_0xffa44c(0x115))/0x4)+parseInt(_0xffa44c(0x13b))/0x5+-parseInt(_0xffa44c(0x124))/0x6*(parseInt(_0xffa44c(0x131))/0x7)+-parseInt(_0xffa44c(0x12a))/0x8+parseInt(_0xffa44c(0x127))/0x9*(parseInt(_0xffa44c(0x13d))/0xa)+parseInt(_0xffa44c(0x113))/0xb*(parseInt(_0xffa44c(0x13a))/0xc);if(_0x19bdcb===_0x3a5aa5)break;else _0x295e1a['push'](_0x295e1a['shift']());}catch(_0x3ca693){_0x295e1a['push'](_0x295e1a['shift']());}}}(a9_0x3307,0x51d9d));var __createBinding=this&&this[a9_0xe114c5(0x112)]||(Object[a9_0xe114c5(0x120)]?function(_0x1fb902,_0x12b9b5,_0x59f5e4,_0x56971b){var _0x4fbb50=a9_0xe114c5;if(_0x56971b===undefined)_0x56971b=_0x59f5e4;var _0xc88185=Object[_0x4fbb50(0x11f)](_0x12b9b5,_0x59f5e4);(!_0xc88185||(_0x4fbb50(0x10d)in _0xc88185?!_0x12b9b5[_0x4fbb50(0x130)]:_0xc88185['writable']||_0xc88185[_0x4fbb50(0x119)]))&&(_0xc88185={'enumerable':!![],'get':function(){return _0x12b9b5[_0x59f5e4];}}),Object[_0x4fbb50(0x133)](_0x1fb902,_0x56971b,_0xc88185);}:function(_0x395175,_0xf34043,_0x4c9965,_0x31ed6e){if(_0x31ed6e===undefined)_0x31ed6e=_0x4c9965;_0x395175[_0x31ed6e]=_0xf34043[_0x4c9965];}),__exportStar=this&&this[a9_0xe114c5(0x125)]||function(_0x50dcc4,_0x4dcebe){var _0x235bec=a9_0xe114c5;for(var _0x10783b in _0x50dcc4)if(_0x10783b!==_0x235bec(0x10b)&&!Object[_0x235bec(0x123)][_0x235bec(0x10c)][_0x235bec(0x139)](_0x4dcebe,_0x10783b))__createBinding(_0x4dcebe,_0x50dcc4,_0x10783b);};Object[a9_0xe114c5(0x133)](exports,'__esModule',{'value':!![]}),exports[a9_0xe114c5(0x134)]=exports[a9_0xe114c5(0x10a)]=exports[a9_0xe114c5(0x136)]=exports[a9_0xe114c5(0x12f)]=exports['Provide']=exports['Logger']=exports['Config']=exports[a9_0xe114c5(0x141)]=exports[a9_0xe114c5(0x108)]=exports[a9_0xe114c5(0x11a)]=exports['Query']=exports[a9_0xe114c5(0x135)]=exports[a9_0xe114c5(0x117)]=exports['Fields']=exports[a9_0xe114c5(0x116)]=exports[a9_0xe114c5(0x137)]=exports[a9_0xe114c5(0x12e)]=exports['ValidatorService']=exports[a9_0xe114c5(0x143)]=exports['ExcelService']=exports[a9_0xe114c5(0x10e)]=exports[a9_0xe114c5(0x110)]=exports[a9_0xe114c5(0x13c)]=exports[a9_0xe114c5(0x129)]=exports['ApiError']=exports[a9_0xe114c5(0x12c)]=exports[a9_0xe114c5(0x122)]=exports[a9_0xe114c5(0x142)]=exports[a9_0xe114c5(0x13f)]=void 0x0;const getAppsConfig_1=require(a9_0xe114c5(0x111));Object['defineProperty'](exports,a9_0xe114c5(0x134),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0xe114c5(0x12b)),exports),__exportStar(require(a9_0xe114c5(0x140)),exports);var ActionApi_1=require(a9_0xe114c5(0x11b));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x13f),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require('./decorator/Action');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x142),{'enumerable':!![],'get':function(){var _0x31ae3c=a9_0xe114c5;return Action_1[_0x31ae3c(0x142)];}});var ActionApitest_1=require(a9_0xe114c5(0x11c));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x122),{'enumerable':!![],'get':function(){var _0x139bb7=a9_0xe114c5;return ActionApitest_1[_0x139bb7(0x122)];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x12c),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0xe114c5(0x121));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x128),{'enumerable':!![],'get':function(){var _0x415bc8=a9_0xe114c5;return ApiError_1[_0x415bc8(0x128)];}});var task_1=require('@midwayjs/task');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x129),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a9_0xe114c5(0x11d));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x13c),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x110),{'enumerable':!![],'get':function(){var _0x5e89fa=a9_0xe114c5;return event_1[_0x5e89fa(0x110)];}});var ApiService_1=require(a9_0xe114c5(0x13e));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x10e),{'enumerable':!![],'get':function(){var _0x380c33=a9_0xe114c5;return ApiService_1[_0x380c33(0x10e)];}});var ExcelService_1=require('./service/ExcelService');Object[a9_0xe114c5(0x133)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x262e35=a9_0xe114c5;return ExcelService_1[_0x262e35(0x138)];}});var validator_1=require('@anncic-api/validator');Object[a9_0xe114c5(0x133)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x5d59e1=a9_0xe114c5;return validator_1[_0x5d59e1(0x143)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x145),{'enumerable':!![],'get':function(){var _0x8f4f1f=a9_0xe114c5;return validator_1[_0x8f4f1f(0x145)];}});var configuration_1=require(a9_0xe114c5(0x114));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x12e),{'enumerable':!![],'get':function(){var _0x1ad3eb=a9_0xe114c5;return configuration_1[_0x1ad3eb(0x12d)];}});var decorator_1=require('@midwayjs/decorator');Object[a9_0xe114c5(0x133)](exports,'File',{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x116),{'enumerable':!![],'get':function(){var _0xecacb0=a9_0xe114c5;return decorator_1[_0xecacb0(0x116)];}}),Object[a9_0xe114c5(0x133)](exports,'Fields',{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object[a9_0xe114c5(0x133)](exports,'Body',{'enumerable':!![],'get':function(){var _0x28d577=a9_0xe114c5;return decorator_1[_0x28d577(0x117)];}}),Object['defineProperty'](exports,a9_0xe114c5(0x135),{'enumerable':!![],'get':function(){var _0x474934=a9_0xe114c5;return decorator_1[_0x474934(0x135)];}}),Object['defineProperty'](exports,a9_0xe114c5(0x118),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x11a),{'enumerable':!![],'get':function(){var _0x4a9f6a=a9_0xe114c5;return decorator_1[_0x4a9f6a(0x11a)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x108),{'enumerable':!![],'get':function(){var _0x5664e6=a9_0xe114c5;return decorator_1[_0x5664e6(0x108)];}});function a9_0x4013(_0x11f6af,_0x5761eb){var _0x3307e2=a9_0x3307();return a9_0x4013=function(_0x40134d,_0xd75ea8){_0x40134d=_0x40134d-0x108;var _0x1f66c8=_0x3307e2[_0x40134d];return _0x1f66c8;},a9_0x4013(_0x11f6af,_0x5761eb);}var decorator_2=require('@midwayjs/decorator');Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x132),{'enumerable':!![],'get':function(){var _0x413b97=a9_0xe114c5;return decorator_2[_0x413b97(0x132)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x11e),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object['defineProperty'](exports,a9_0xe114c5(0x126),{'enumerable':!![],'get':function(){var _0xd15758=a9_0xe114c5;return decorator_2[_0xd15758(0x126)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x12f),{'enumerable':!![],'get':function(){var _0x241535=a9_0xe114c5;return decorator_2[_0x241535(0x12f)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x136),{'enumerable':!![],'get':function(){var _0x2b6c31=a9_0xe114c5;return decorator_2[_0x2b6c31(0x136)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x10a),{'enumerable':!![],'get':function(){var _0x4c83e8=a9_0xe114c5;return decorator_2[_0x4c83e8(0x10a)];}}),global[a9_0xe114c5(0x134)]=getAppsConfig_1[a9_0xe114c5(0x134)];function a9_0x3307(){var _0x4ab0d7=['ExcelService','call','17661012uPYZPM','2042775tojIVR','CacheService','10pBwPyw','./service/ApiService','Api','./service/ApitestService','App','Action','ValidatorError','712wjEpqJ','ValidatorService','Init','57MZPeRT','ScopeEnum','default','hasOwnProperty','get','ApiService','1512YIhTqo','EventService','./helper/getAppsConfig','__createBinding','11HknMhV','./configuration','20924TCLLai','Files','Body','Query','configurable','Headers','./decorator/ActionApi','./decorator/ActionApitest','@anncic-api/cache','Logger','getOwnPropertyDescriptor','create','./exception/ApiError','Apitest','prototype','11652hDUBBW','__exportStar','Provide','949293SQBPXD','ApiError','QueueService','3799416eIJDWy','./types/common','getRoutes','CustomConfiguration','Configuration','Inject','__esModule','1939CyknkE','Config','defineProperty','getAppsConfig','Param','Scope','File'];a9_0x3307=function(){return _0x4ab0d7;};return a9_0x3307();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x10ecc8=a10_0x2266;(function(_0x3a5cad,_0x5704db){var _0x28565b=a10_0x2266,_0x3a52b2=_0x3a5cad();while(!![]){try{var _0xf26d58=-parseInt(_0x28565b(0x1c3))/0x1*(parseInt(_0x28565b(0x1e2))/0x2)+-parseInt(_0x28565b(0x1db))/0x3+parseInt(_0x28565b(0x1d9))/0x4+parseInt(_0x28565b(0x1b4))/0x5*(-parseInt(_0x28565b(0x1c1))/0x6)+parseInt(_0x28565b(0x1bd))/0x7+-parseInt(_0x28565b(0x1b3))/0x8*(parseInt(_0x28565b(0x1de))/0x9)+parseInt(_0x28565b(0x1d4))/0xa*(parseInt(_0x28565b(0x1ce))/0xb);if(_0xf26d58===_0x5704db)break;else _0x3a52b2['push'](_0x3a52b2['shift']());}catch(_0x52a8f1){_0x3a52b2['push'](_0x3a52b2['shift']());}}}(a10_0x3de2,0x965ae));var __decorate=this&&this[a10_0x10ecc8(0x1e1)]||function(_0x50fb8a,_0xf5b4eb,_0x10e25e,_0x155054){var _0x14353c=a10_0x10ecc8,_0x2cd4cd=arguments[_0x14353c(0x1b9)],_0x4cc30f=_0x2cd4cd<0x3?_0xf5b4eb:_0x155054===null?_0x155054=Object[_0x14353c(0x1cf)](_0xf5b4eb,_0x10e25e):_0x155054,_0x403129;if(typeof Reflect===_0x14353c(0x1b8)&&typeof Reflect[_0x14353c(0x1ca)]==='function')_0x4cc30f=Reflect[_0x14353c(0x1ca)](_0x50fb8a,_0xf5b4eb,_0x10e25e,_0x155054);else{for(var _0x265b03=_0x50fb8a['length']-0x1;_0x265b03>=0x0;_0x265b03--)if(_0x403129=_0x50fb8a[_0x265b03])_0x4cc30f=(_0x2cd4cd<0x3?_0x403129(_0x4cc30f):_0x2cd4cd>0x3?_0x403129(_0xf5b4eb,_0x10e25e,_0x4cc30f):_0x403129(_0xf5b4eb,_0x10e25e))||_0x4cc30f;}return _0x2cd4cd>0x3&&_0x4cc30f&&Object[_0x14353c(0x1c4)](_0xf5b4eb,_0x10e25e,_0x4cc30f),_0x4cc30f;},__metadata=this&&this[a10_0x10ecc8(0x1e7)]||function(_0x498c91,_0x126456){var _0x166bce=a10_0x10ecc8;if(typeof Reflect===_0x166bce(0x1b8)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x498c91,_0x126456);};function a10_0x3de2(){var _0x5a69d9=['signature','Provide','15851qoxMsK','getOwnPropertyDescriptor','Scope','now','secret','anncicapi','12050ymDVwu','ApiError','Singleton','push','config','4753684gXNrrr','token','2025777cJwqCH','prototype','device','18VHkQlU','toLowerCase','password','__decorate','6uvGTSD','entries','缺少头信息:','HEADERS_DEVICE','Config','__metadata','HEADERS_CHECKCODE','ScopeEnum','115792CXmiNF','20ikexzg','ApiService','../exception/ApiError','getsign','object','length','toString','secret=','checkcode','683634sgxkOR','undefined','__esModule','MD5','1358256dsrUKu','logintime','265641dKCZjn','defineProperty','timeout','HEADERS_LACK','fromEntries','TIMEOUT','map','decorate','devices'];a10_0x3de2=function(){return _0x5a69d9;};return a10_0x3de2();}Object[a10_0x10ecc8(0x1c4)](exports,a10_0x10ecc8(0x1bf),{'value':!![]}),exports[a10_0x10ecc8(0x1b5)]=void 0x0;function a10_0x2266(_0x1bcb41,_0x344d97){var _0x3de25d=a10_0x3de2();return a10_0x2266=function(_0x2266b4,_0x2b4f0a){_0x2266b4=_0x2266b4-0x1b3;var _0x28e4de=_0x3de25d[_0x2266b4];return _0x28e4de;},a10_0x2266(_0x1bcb41,_0x344d97);}const crypto_js_1=require('crypto-js'),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x10ecc8(0x1b6));let ApiService=class ApiService{['password'](_0x2a9050){var _0x176e62=a10_0x10ecc8,_0x369b57;return _0x2a9050?(0x0,crypto_js_1['MD5'])(_0x2a9050+(0x0,crypto_js_1[_0x176e62(0x1c0)])((0x0,crypto_js_1[_0x176e62(0x1c0)])(_0x2a9050)[_0x176e62(0x1ba)]()+((_0x369b57=this[_0x176e62(0x1d8)])===null||_0x369b57===void 0x0?void 0x0:_0x369b57[_0x176e62(0x1e0)]))[_0x176e62(0x1ba)]())[_0x176e62(0x1ba)]():'';}['getcheck'](_0x2732b2,_0x2e9223,_0x3a540f=Date[a10_0x10ecc8(0x1d1)]()){var _0x57ddd7=a10_0x10ecc8;return{'Token':_0x2732b2,'Logintime':_0x3a540f,'Checkcode':this[_0x57ddd7(0x1bc)](_0x2732b2,_0x2e9223,_0x3a540f)};}[a10_0x10ecc8(0x1b7)](_0x5e7062={}){var _0x1786b0=a10_0x10ecc8;const _0x19b432=[],_0x23c552=Object[_0x1786b0(0x1c7)](Object[_0x1786b0(0x1e3)](_0x5e7062)[_0x1786b0(0x1c9)](_0x3404a1=>[_0x3404a1[0x0]['toLowerCase'](),_0x3404a1[0x1]]));for(let _0x4d587c of[_0x1786b0(0x1dd),'requesttime',_0x1786b0(0x1da),_0x1786b0(0x1c2),_0x1786b0(0x1bc)]){if(typeof _0x23c552[_0x4d587c]==_0x1786b0(0x1be))throw new AnnError(ApiError_1[_0x1786b0(0x1d5)][_0x1786b0(0x1c6)],{'message':_0x1786b0(0x1e4)+_0x4d587c});_0x19b432['push'](_0x4d587c+'='+_0x23c552[_0x4d587c]);}if(Math['abs'](_0x23c552['requesttime'])-Date[_0x1786b0(0x1d1)]()>this['config'][_0x1786b0(0x1c5)])throw new AnnError(ApiError_1[_0x1786b0(0x1d5)][_0x1786b0(0x1c8)]);if(!this[_0x1786b0(0x1d8)]['devices'][_0x23c552[_0x1786b0(0x1dd)]]||!this['config'][_0x1786b0(0x1cb)][_0x23c552[_0x1786b0(0x1dd)]][_0x1786b0(0x1d2)]||!this[_0x1786b0(0x1d8)][_0x1786b0(0x1cb)][_0x23c552[_0x1786b0(0x1dd)]][_0x1786b0(0x1bc)])throw new AnnError(ApiError_1[_0x1786b0(0x1d5)]['HEADERS_DEVICE']);if(_0x23c552[_0x1786b0(0x1da)]&&_0x23c552[_0x1786b0(0x1bc)]!=this['checkcode'](_0x23c552[_0x1786b0(0x1da)],_0x23c552['device'],_0x23c552[_0x1786b0(0x1c2)]))throw new AnnError(ApiError_1[_0x1786b0(0x1d5)][_0x1786b0(0x1e8)]);return _0x19b432[_0x1786b0(0x1d7)](_0x1786b0(0x1bb)+this[_0x1786b0(0x1d8)][_0x1786b0(0x1cb)][_0x23c552['device']][_0x1786b0(0x1d2)]),(0x0,crypto_js_1[_0x1786b0(0x1c0)])(_0x19b432['sort']()['join'](''))[_0x1786b0(0x1ba)]();}[a10_0x10ecc8(0x1bc)](_0x3c367b,_0x3735ed,_0x24e30d=Date[a10_0x10ecc8(0x1d1)]()){var _0x410f3c=a10_0x10ecc8,_0x51947d,_0x18e4d9,_0x33918c;if(!((_0x51947d=this['config'])===null||_0x51947d===void 0x0?void 0x0:_0x51947d[_0x410f3c(0x1cb)][_0x3735ed])||!((_0x33918c=(_0x18e4d9=this[_0x410f3c(0x1d8)])===null||_0x18e4d9===void 0x0?void 0x0:_0x18e4d9[_0x410f3c(0x1cb)][_0x3735ed])===null||_0x33918c===void 0x0?void 0x0:_0x33918c['checkcode']))throw new AnnError(ApiError_1[_0x410f3c(0x1d5)][_0x410f3c(0x1e5)]);return(0x0,crypto_js_1[_0x410f3c(0x1c0)])(_0x3c367b+(0x0,crypto_js_1[_0x410f3c(0x1c0)])(_0x24e30d+this['config'][_0x410f3c(0x1cb)][_0x3735ed][_0x410f3c(0x1bc)])[_0x410f3c(0x1ba)]())[_0x410f3c(0x1ba)]();}['checksign'](_0x53a7a8={}){var _0x2831b8=a10_0x10ecc8;const _0x2f87f6=Object[_0x2831b8(0x1c7)](Object[_0x2831b8(0x1e3)](_0x53a7a8)['map'](_0x113190=>[_0x113190[0x0][_0x2831b8(0x1df)](),_0x113190[0x1]]));if(!(_0x2f87f6===null||_0x2f87f6===void 0x0?void 0x0:_0x2f87f6[_0x2831b8(0x1cc)]))throw new AnnError(ApiError_1[_0x2831b8(0x1d5)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x2f87f6===null||_0x2f87f6===void 0x0?void 0x0:_0x2f87f6[_0x2831b8(0x1cc)])!=this[_0x2831b8(0x1b7)](_0x2f87f6))throw new AnnError(ApiError_1[_0x2831b8(0x1d5)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x10ecc8(0x1e6)])(a10_0x10ecc8(0x1d3)),__metadata('design:type',Object)],ApiService[a10_0x10ecc8(0x1dc)],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x10ecc8(0x1cd)])(),(0x0,decorator_1[a10_0x10ecc8(0x1d0)])(decorator_1[a10_0x10ecc8(0x1e9)][a10_0x10ecc8(0x1d6)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x178d79=a11_0x11a0;(function(_0x40d32,_0x16e76f){const _0x319ecc=a11_0x11a0,_0x1eb4a2=_0x40d32();while(!![]){try{const _0x5b7008=parseInt(_0x319ecc(0x114))/0x1+-parseInt(_0x319ecc(0x139))/0x2*(-parseInt(_0x319ecc(0x122))/0x3)+parseInt(_0x319ecc(0x137))/0x4+-parseInt(_0x319ecc(0x126))/0x5+parseInt(_0x319ecc(0x113))/0x6+-parseInt(_0x319ecc(0x118))/0x7*(-parseInt(_0x319ecc(0x13b))/0x8)+-parseInt(_0x319ecc(0x145))/0x9;if(_0x5b7008===_0x16e76f)break;else _0x1eb4a2['push'](_0x1eb4a2['shift']());}catch(_0x4478e8){_0x1eb4a2['push'](_0x1eb4a2['shift']());}}}(a11_0x12e8,0x8e0a8));function a11_0x12e8(){const _0x4387b5=['.css','filepath','design:returntype','application/javascript;\x20charset=utf-8','request','.js','8479800pfgbNx','MidwayEnvironmentService','/apitest-:module','apitesthtml','__esModule','utf-8','Config','@midwayjs/core','config','__metadata','extname','/apiteststatic/*','design:type','prototype','summary','ctx','Provide','substring','object','ApitestStaticController','route','Get','3459984bDrwru','194998nPJJjk','__param','Inject','design:paramtypes','2130877ETZMwv','anncicapi','readFileSync','apitestmodule','url','apiteststatic','Environment','@midwayjs/decorator','apitest','metadata','551526aFayRM','/index.html','stringify','text/css;\x20charset=utf-8','5198885nDqtRn','Scope','function','defineProperty','decorate','join','Param','cache-control','set','/apitest','prefix','ApitestService','length','isDevelopmentEnvironment','/apiteststatic/','existsSync','__decorate','3009344MGcVIc','getOwnPropertyDescriptor','8vdMOaX','apidoc','8wYrHVK','replace','ScopeEnum','description'];a11_0x12e8=function(){return _0x4387b5;};return a11_0x12e8();}var __decorate=this&&this[a11_0x178d79(0x136)]||function(_0xf5a4ea,_0x436d58,_0x2d1acf,_0x36b78a){const _0x2f088a=a11_0x178d79;var _0x510512=arguments[_0x2f088a(0x132)],_0x53c7b1=_0x510512<0x3?_0x436d58:_0x36b78a===null?_0x36b78a=Object[_0x2f088a(0x138)](_0x436d58,_0x2d1acf):_0x36b78a,_0x229b65;if(typeof Reflect===_0x2f088a(0x10f)&&typeof Reflect[_0x2f088a(0x12a)]==='function')_0x53c7b1=Reflect[_0x2f088a(0x12a)](_0xf5a4ea,_0x436d58,_0x2d1acf,_0x36b78a);else{for(var _0x1c4da3=_0xf5a4ea[_0x2f088a(0x132)]-0x1;_0x1c4da3>=0x0;_0x1c4da3--)if(_0x229b65=_0xf5a4ea[_0x1c4da3])_0x53c7b1=(_0x510512<0x3?_0x229b65(_0x53c7b1):_0x510512>0x3?_0x229b65(_0x436d58,_0x2d1acf,_0x53c7b1):_0x229b65(_0x436d58,_0x2d1acf))||_0x53c7b1;}return _0x510512>0x3&&_0x53c7b1&&Object[_0x2f088a(0x129)](_0x436d58,_0x2d1acf,_0x53c7b1),_0x53c7b1;},__metadata=this&&this[a11_0x178d79(0x106)]||function(_0x3b30b5,_0x45ee49){const _0x52c9f3=a11_0x178d79;if(typeof Reflect===_0x52c9f3(0x10f)&&typeof Reflect[_0x52c9f3(0x121)]===_0x52c9f3(0x128))return Reflect[_0x52c9f3(0x121)](_0x3b30b5,_0x45ee49);},__param=this&&this[a11_0x178d79(0x115)]||function(_0x485e75,_0x4691a4){return function(_0x179066,_0x3f14c2){_0x4691a4(_0x179066,_0x3f14c2,_0x485e75);};};Object['defineProperty'](exports,a11_0x178d79(0x149),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x178d79(0x131)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x178d79(0x14c)),decorator_1=require(a11_0x178d79(0x11f)),decorator_2=require(a11_0x178d79(0x11f)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async['apidoc'](_0x161c6f){const _0x585f07=a11_0x178d79,_0x4336ca=(0x0,getRoutes_1['getRoutes'])(_0x161c6f),_0x26c080=[];for(let _0x56cee0 in _0x4336ca){for(let _0xf5e53b in _0x4336ca[_0x56cee0]['routes']){let _0xef2508=_0x4336ca[_0x56cee0]['routes'][_0xf5e53b],_0x7cc77b=[];for(let _0x50bc72 in _0xef2508[_0x585f07(0x143)]){_0x7cc77b['push'](_0xef2508['request'][_0x50bc72]);}_0x26c080['push']({'title':_0x4336ca[_0x56cee0][_0x585f07(0x10b)]+':'+_0xef2508[_0x585f07(0x10b)],'prefix':_0x4336ca[_0x56cee0][_0x585f07(0x130)],'router':_0xef2508[_0x585f07(0x111)],'method':_0xef2508['method'],'describe':_0xef2508[_0x585f07(0x13e)]||'','filepath':_0x4336ca[_0x56cee0][_0x585f07(0x140)]||'','request':_0x7cc77b});}}const _0x5c4f13=(0x0,path_1[_0x585f07(0x12b)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x585f07(0x11a)])(_0x5c4f13,{'encoding':_0x585f07(0x14a)})[_0x585f07(0x13c)](/__res__/g,_0x585f07(0x134))[_0x585f07(0x13c)]('__apiList__',JSON['stringify'](_0x26c080))['replace']('__devices__',JSON[_0x585f07(0x124)](this[_0x585f07(0x105)]['devices']));}};function a11_0x11a0(_0x3bedff,_0x58b474){const _0x12e837=a11_0x12e8();return a11_0x11a0=function(_0x11a084,_0x1a298e){_0x11a084=_0x11a084-0x105;let _0x4ecbec=_0x12e837[_0x11a084];return _0x4ecbec;},a11_0x11a0(_0x3bedff,_0x58b474);}__decorate([(0x0,decorator_2[a11_0x178d79(0x14b)])(a11_0x178d79(0x119)),__metadata(a11_0x178d79(0x109),Object)],ApitestService[a11_0x178d79(0x10a)],a11_0x178d79(0x105),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x178d79(0x10d)])(a11_0x178d79(0x120)),(0x0,decorator_2['Scope'])(decorator_2[a11_0x178d79(0x13d)]['Singleton'])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x1b5598=a11_0x178d79;if(this[_0x1b5598(0x120)]){const _0x1427dd={'module':![]};return this['Environment'][_0x1b5598(0x133)]()&&(_0x1427dd[_0x1b5598(0x140)]=!![]),await this[_0x1b5598(0x131)][_0x1b5598(0x13a)](_0x1427dd);}return'';}async[a11_0x178d79(0x11b)](_0x340e0c){const _0x5d7640=a11_0x178d79;if(this['apitest']){const _0x27d971={'module':_0x340e0c};return this['Environment'][_0x5d7640(0x133)]()&&(_0x27d971['filepath']=!![]),await this[_0x5d7640(0x131)]['apidoc'](_0x27d971);}return'';}async[a11_0x178d79(0x11d)](){const _0x56250d=a11_0x178d79;if((0x0,path_1[_0x56250d(0x107)])(this[_0x56250d(0x10c)][_0x56250d(0x143)]['url'])){var _0x87694b=(0x0,path_1[_0x56250d(0x12b)])(__dirname,'../../public/'+this[_0x56250d(0x10c)][_0x56250d(0x143)][_0x56250d(0x11c)][_0x56250d(0x13c)]('/apiteststatic/','/'));if(_0x87694b[_0x56250d(0x10e)](_0x87694b['length']-0xb)!=_0x56250d(0x123)){this[_0x56250d(0x10c)]['set'](_0x56250d(0x12d),'public,\x20max-age=604800');if((0x0,path_1[_0x56250d(0x107)])(this['ctx'][_0x56250d(0x143)][_0x56250d(0x11c)])==_0x56250d(0x144))this['ctx'][_0x56250d(0x12e)]('content-type',_0x56250d(0x142));else(0x0,path_1[_0x56250d(0x107)])(this[_0x56250d(0x10c)][_0x56250d(0x143)][_0x56250d(0x11c)])==_0x56250d(0x13f)&&this[_0x56250d(0x10c)][_0x56250d(0x12e)]('content-type',_0x56250d(0x125));return(0x0,fs_1[_0x56250d(0x135)])(_0x87694b)&&(0x0,fs_1[_0x56250d(0x11a)])(_0x87694b,{'encoding':_0x56250d(0x14a)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x178d79(0x116)])(),__metadata(a11_0x178d79(0x109),Object)],ApitestStaticController['prototype'],a11_0x178d79(0x10c),void 0x0),__decorate([(0x0,decorator_2[a11_0x178d79(0x116)])(),__metadata(a11_0x178d79(0x109),core_1[a11_0x178d79(0x146)])],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x11e),void 0x0),__decorate([(0x0,decorator_2[a11_0x178d79(0x116)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x131),void 0x0),__decorate([(0x0,decorator_2['Config'])('apitest'),__metadata(a11_0x178d79(0x109),Boolean)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x120),void 0x0),__decorate([(0x0,decorator_2[a11_0x178d79(0x14b)])(a11_0x178d79(0x119)),__metadata(a11_0x178d79(0x109),Object)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x105),void 0x0),__decorate([(0x0,decorator_1[a11_0x178d79(0x112)])(a11_0x178d79(0x12f)),__metadata(a11_0x178d79(0x109),Function),__metadata(a11_0x178d79(0x117),[]),__metadata(a11_0x178d79(0x141),Promise)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x148),null),__decorate([(0x0,decorator_1[a11_0x178d79(0x112)])(a11_0x178d79(0x147)),__param(0x0,(0x0,decorator_1[a11_0x178d79(0x12c)])('module')),__metadata('design:type',Function),__metadata(a11_0x178d79(0x117),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x11b),null),__decorate([(0x0,decorator_1[a11_0x178d79(0x112)])(a11_0x178d79(0x108)),__metadata('design:type',Function),__metadata(a11_0x178d79(0x117),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x178d79(0x11d),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2[a11_0x178d79(0x127)])(decorator_2['ScopeEnum']['Request'])],ApitestStaticController),exports[a11_0x178d79(0x110)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a12_0x21fe(){const _0x370f2a=['2881116sPAPkF','startsWith','public/xlsx','Scope','key','app','getAppDir','getOwnPropertyDescriptor','length','Workbook','addWorksheet','design:type','header','keys','toString','isNumber','writeFile','6ymAJbO','exceljs','defineProperty','mkdirSync','random','handler','/public/xlsx','ExcelService','__metadata','metadata','1013433piEPPd','eachCell','.xlsx','cellCount','4898624CYZSlo','@midwayjs/decorator','trim','5KReyRG','readFile','endsWith','getRow','__esModule','\x20is\x20read\x20fail','function','value','Provide','App','9152568AztMGq','col','1594196PfBsJk','export','64510WpTSeb','substring','getCell','columns','1926IkvXoq','182720DROXXf','decorate','Api\x20Excel\x20Error:\x20','xlsx','object','replace','ScopeEnum'];a12_0x21fe=function(){return _0x370f2a;};return a12_0x21fe();}const a12_0x142d3a=a12_0x3d15;function a12_0x3d15(_0x45e196,_0x40baa0){const _0x21fe14=a12_0x21fe();return a12_0x3d15=function(_0x3d1549,_0x5a1b75){_0x3d1549=_0x3d1549-0x174;let _0x4d313e=_0x21fe14[_0x3d1549];return _0x4d313e;},a12_0x3d15(_0x45e196,_0x40baa0);}(function(_0x385bb4,_0x33ee06){const _0x190a32=a12_0x3d15,_0x7ad247=_0x385bb4();while(!![]){try{const _0x42f5f3=-parseInt(_0x190a32(0x191))/0x1+-parseInt(_0x190a32(0x1a9))/0x2*(-parseInt(_0x190a32(0x177))/0x3)+parseInt(_0x190a32(0x18a))/0x4*(parseInt(_0x190a32(0x17e))/0x5)+-parseInt(_0x190a32(0x188))/0x6+parseInt(_0x190a32(0x198))/0x7+-parseInt(_0x190a32(0x17b))/0x8+-parseInt(_0x190a32(0x190))/0x9*(-parseInt(_0x190a32(0x18c))/0xa);if(_0x42f5f3===_0x33ee06)break;else _0x7ad247['push'](_0x7ad247['shift']());}catch(_0x293921){_0x7ad247['push'](_0x7ad247['shift']());}}}(a12_0x21fe,0xd7b98));var __decorate=this&&this['__decorate']||function(_0x4a6f7d,_0x2c794e,_0x1e8a45,_0x31ae2f){const _0xacfd56=a12_0x3d15;var _0x1c29b2=arguments[_0xacfd56(0x1a0)],_0xd57072=_0x1c29b2<0x3?_0x2c794e:_0x31ae2f===null?_0x31ae2f=Object[_0xacfd56(0x19f)](_0x2c794e,_0x1e8a45):_0x31ae2f,_0x470830;if(typeof Reflect===_0xacfd56(0x195)&&typeof Reflect[_0xacfd56(0x192)]==='function')_0xd57072=Reflect[_0xacfd56(0x192)](_0x4a6f7d,_0x2c794e,_0x1e8a45,_0x31ae2f);else{for(var _0x32e305=_0x4a6f7d[_0xacfd56(0x1a0)]-0x1;_0x32e305>=0x0;_0x32e305--)if(_0x470830=_0x4a6f7d[_0x32e305])_0xd57072=(_0x1c29b2<0x3?_0x470830(_0xd57072):_0x1c29b2>0x3?_0x470830(_0x2c794e,_0x1e8a45,_0xd57072):_0x470830(_0x2c794e,_0x1e8a45))||_0xd57072;}return _0x1c29b2>0x3&&_0xd57072&&Object[_0xacfd56(0x1ab)](_0x2c794e,_0x1e8a45,_0xd57072),_0xd57072;},__metadata=this&&this[a12_0x142d3a(0x175)]||function(_0x4eb437,_0x4fc242){const _0x2d9199=a12_0x142d3a;if(typeof Reflect===_0x2d9199(0x195)&&typeof Reflect[_0x2d9199(0x176)]===_0x2d9199(0x184))return Reflect[_0x2d9199(0x176)](_0x4eb437,_0x4fc242);};Object[a12_0x142d3a(0x1ab)](exports,a12_0x142d3a(0x182),{'value':!![]}),exports[a12_0x142d3a(0x174)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x142d3a(0x1aa)),koasend=require('koa-send'),decorator_1=require(a12_0x142d3a(0x17c));let ExcelService=class ExcelService{async['parse'](_0x3d6693,_0x35f5fc,_0x54d857=[0x0]){const _0x51de23=a12_0x142d3a;var _0x20f58a,_0xaa7118;const _0x3c442c=new exceljs[(_0x51de23(0x1a1))](),_0x3dd95c=[];let _0x599408=_0x3d6693['replace'](/(\\|\/)/g,'/')[_0x51de23(0x196)](/\/{2,}/g,'/');!(_0x599408===null||_0x599408===void 0x0?void 0x0:_0x599408[_0x51de23(0x199)]('/'))&&(_0x599408=this['app'][_0x51de23(0x19e)]()+'/'+_0x599408);try{await _0x3c442c[_0x51de23(0x194)][_0x51de23(0x17f)](_0x599408);}catch(_0x34860a){return console['log'](_0x51de23(0x193)+_0x599408+_0x51de23(0x183)),_0x3dd95c;}for(const _0x729236 of _0x54d857){const _0x4125d4=lodash[_0x51de23(0x1a7)](_0x729236)?((_0x20f58a=_0x3c442c['worksheets'])===null||_0x20f58a===void 0x0?void 0x0:_0x20f58a[_0x729236])||undefined:_0x3c442c['getWorksheet'](_0x729236);if(_0x4125d4){var _0x5d123a=0x1;const _0x5f0954=_0x4125d4[_0x51de23(0x181)](0x1),_0x51081e=await new Promise(_0x1a3797=>{const _0x34d5df=_0x51de23,_0x3647d9={};_0x5f0954[_0x34d5df(0x178)]((_0x192917,_0x328470)=>{const _0x5181ac=_0x34d5df;for(const _0x10f8b8 of _0x35f5fc){if(_0x192917[_0x5181ac(0x185)]==_0x10f8b8[_0x5181ac(0x1a4)])_0x5d123a=0x2,_0x3647d9[_0x10f8b8[_0x5181ac(0x19c)]]={'header':_0x192917['col'],'handler':_0x10f8b8[_0x5181ac(0x1ae)]};else{if(!_0x3647d9[_0x10f8b8[_0x5181ac(0x19c)]])try{const _0x5aceda=_0x5f0954[_0x5181ac(0x18e)](_0x10f8b8[_0x5181ac(0x1a4)]);_0x5aceda&&(_0x3647d9[_0x10f8b8['key']]={'header':_0x5aceda[_0x5181ac(0x189)],'handler':_0x10f8b8['handler']});}catch{}}}_0x5f0954[_0x5181ac(0x17a)]==_0x328470&&_0x1a3797(_0x3647d9);});});for(const _0x7c7555 of _0x4125d4['findRows'](_0x5d123a,_0x4125d4['rowCount'])){const _0x229203={};for(const _0x33fbf8 in _0x51081e){_0x51081e[_0x33fbf8][_0x51de23(0x1a4)]&&(typeof((_0xaa7118=_0x51081e[_0x33fbf8])===null||_0xaa7118===void 0x0?void 0x0:_0xaa7118[_0x51de23(0x1ae)])==_0x51de23(0x184)?_0x229203[_0x33fbf8]=_0x51081e[_0x33fbf8][_0x51de23(0x1ae)](_0x7c7555[_0x51de23(0x18e)](lodash[_0x51de23(0x17d)](''+_0x51081e[_0x33fbf8][_0x51de23(0x1a4)],'\x20'))[_0x51de23(0x1a6)]()):_0x229203[_0x33fbf8]=_0x7c7555[_0x51de23(0x18e)](_0x51081e[_0x33fbf8][_0x51de23(0x1a4)])[_0x51de23(0x1a6)]());}Object[_0x51de23(0x1a5)](_0x229203)[_0x51de23(0x1a0)]>0x0&&_0x3dd95c['push'](_0x229203);}}}return _0x3dd95c;}async[a12_0x142d3a(0x18b)](_0x497eb5,_0xf1b59e,_0x393014,_0x2502a5=a12_0x142d3a(0x19a)){const _0x580fa7=a12_0x142d3a;var _0x2b235a,_0x37b620;const _0x33d161=new exceljs['Workbook'](),_0x485ae1={},_0x559831=[],_0x3fb615=_0x33d161[_0x580fa7(0x1a2)]('Sheet\x201',{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x4e2356 in _0xf1b59e){_0x485ae1[_0xf1b59e[_0x4e2356][_0x580fa7(0x19c)]]=_0xf1b59e[_0x4e2356][_0x580fa7(0x1a4)],_0x559831['push']({'header':_0xf1b59e[_0x4e2356]['header'],'key':(_0x2b235a=_0xf1b59e[_0x4e2356])===null||_0x2b235a===void 0x0?void 0x0:_0x2b235a[_0x580fa7(0x19c)][_0x580fa7(0x196)](/\./g,'_')});}_0x3fb615[_0x580fa7(0x18f)]=_0x559831;for(const _0x34bec6 of _0x393014){const _0x56931f={};for(const _0x8e5d6b in _0xf1b59e){typeof((_0x37b620=_0xf1b59e[_0x8e5d6b])===null||_0x37b620===void 0x0?void 0x0:_0x37b620[_0x580fa7(0x1ae)])==_0x580fa7(0x184)?_0x56931f[_0xf1b59e[_0x8e5d6b][_0x580fa7(0x19c)][_0x580fa7(0x196)](/\./g,'_')]=await _0xf1b59e[_0x8e5d6b][_0x580fa7(0x1ae)](_0x34bec6):_0x56931f[_0xf1b59e[_0x8e5d6b]['key']['replace'](/\./g,'_')]=lodash['get'](_0x34bec6,_0xf1b59e[_0x8e5d6b][_0x580fa7(0x19c)],'');}_0x3fb615['addRow'](_0x56931f);}let _0x2af4cf='';const _0x505820=_0x497eb5+'-'+lodash[_0x580fa7(0x1ad)](0x2710,0x1869f)+_0x580fa7(0x179);if(_0x2502a5&&_0x2502a5['startsWith']('/'))_0x2af4cf=''+_0x2502a5;else _0x2502a5&&!_0x2502a5[_0x580fa7(0x199)]('/')&&!_0x2502a5[_0x580fa7(0x199)]('\x5c')?_0x2af4cf=this['app'][_0x580fa7(0x19e)]()+'/'+_0x2502a5:_0x2af4cf=this[_0x580fa7(0x19d)]['getAppDir']()+_0x580fa7(0x1af);return(_0x2af4cf[_0x580fa7(0x180)]('/')||_0x2af4cf[_0x580fa7(0x180)]('\x5c'))&&(_0x2af4cf=_0x2af4cf[_0x580fa7(0x18d)](0x0,_0x2af4cf['length']-0x1)),_0x2af4cf=_0x2af4cf[_0x580fa7(0x196)](/(\\|\/)/g,'/')[_0x580fa7(0x196)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2af4cf)&&fs[_0x580fa7(0x1ac)](_0x2af4cf,{'recursive':!![]}),await _0x33d161[_0x580fa7(0x194)][_0x580fa7(0x1a8)]((_0x2af4cf+'/'+_0x505820)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x505820,'filepath':(_0x2af4cf[_0x580fa7(0x18d)]((''+this[_0x580fa7(0x19d)][_0x580fa7(0x19e)]())[_0x580fa7(0x1a0)])+'/'+_0x505820)[_0x580fa7(0x196)](/(\\|\/)/g,'/')[_0x580fa7(0x196)](/\/{2,}/g,'/')};}async['download'](_0x4a7585,_0x2be7d8){return await koasend(_0x4a7585,''+_0x2be7d8);}};__decorate([(0x0,decorator_1[a12_0x142d3a(0x187)])(),__metadata(a12_0x142d3a(0x1a3),Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x142d3a(0x186)])(),(0x0,decorator_1[a12_0x142d3a(0x19b)])(decorator_1[a12_0x142d3a(0x197)]['Singleton'])],ExcelService),exports[a12_0x142d3a(0x174)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x441f95=a13_0x19b5;(function(_0x3c4d62,_0x12c3de){var _0x4cb367=a13_0x19b5,_0x231b9f=_0x3c4d62();while(!![]){try{var _0x3a5b66=parseInt(_0x4cb367(0x1b2))/0x1+-parseInt(_0x4cb367(0x1b3))/0x2*(parseInt(_0x4cb367(0x1bf))/0x3)+parseInt(_0x4cb367(0x1c0))/0x4+parseInt(_0x4cb367(0x1b5))/0x5+-parseInt(_0x4cb367(0x1ba))/0x6*(parseInt(_0x4cb367(0x1b7))/0x7)+parseInt(_0x4cb367(0x1b4))/0x8+-parseInt(_0x4cb367(0x1bb))/0x9;if(_0x3a5b66===_0x12c3de)break;else _0x231b9f['push'](_0x231b9f['shift']());}catch(_0x2d0f3a){_0x231b9f['push'](_0x231b9f['shift']());}}}(a13_0x4bdb,0x71322));function a13_0x19b5(_0x4ecebc,_0x240c25){var _0x4bdbdd=a13_0x4bdb();return a13_0x19b5=function(_0x19b58d,_0x12de53){_0x19b58d=_0x19b58d-0x1af;var _0x533a04=_0x4bdbdd[_0x19b58d];return _0x533a04;},a13_0x19b5(_0x4ecebc,_0x240c25);}function a13_0x4bdb(){var _0x3881b6=['3282496BAFMxj','3300075awEEFU','anncic-api:action','1544221vkcCEA','APPSCONFIG_KEY','anncic-api:apps:config','12LluBYE','12159117kQTDCY','__esModule','ACTION_KEY','ACTION_ROUTE_KEY','27IjhWsA','2414712wtwpHl','anncic-api:action:route','AppsConfigTmp','defineProperty','916673iPbIyg','74402TOvYht'];a13_0x4bdb=function(){return _0x3881b6;};return a13_0x4bdb();}Object[a13_0x441f95(0x1b1)](exports,a13_0x441f95(0x1bc),{'value':!![]}),exports[a13_0x441f95(0x1b0)]=exports[a13_0x441f95(0x1b8)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x441f95(0x1bd)]=void 0x0,exports['ACTION_KEY']=a13_0x441f95(0x1b6),exports[a13_0x441f95(0x1be)]=a13_0x441f95(0x1af),exports['APPSCONFIG_KEY']=a13_0x441f95(0x1b9);class AppsConfigTmp{}exports[a13_0x441f95(0x1b0)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x1cab57=a14_0x2114;(function(_0x3d7716,_0xa06efd){var _0x44d484=a14_0x2114,_0x3f9c88=_0x3d7716();while(!![]){try{var _0x299d7c=-parseInt(_0x44d484(0x15c))/0x1*(-parseInt(_0x44d484(0x159))/0x2)+-parseInt(_0x44d484(0x15a))/0x3*(-parseInt(_0x44d484(0x162))/0x4)+-parseInt(_0x44d484(0x146))/0x5*(-parseInt(_0x44d484(0x155))/0x6)+-parseInt(_0x44d484(0x154))/0x7+parseInt(_0x44d484(0x14b))/0x8+-parseInt(_0x44d484(0x144))/0x9+-parseInt(_0x44d484(0x142))/0xa;if(_0x299d7c===_0xa06efd)break;else _0x3f9c88['push'](_0x3f9c88['shift']());}catch(_0x369fd1){_0x3f9c88['push'](_0x3f9c88['shift']());}}}(a14_0x361c,0xa9dc6));function a14_0x2114(_0x516f46,_0x324250){var _0x361c6e=a14_0x361c();return a14_0x2114=function(_0x211437,_0x1b7bf6){_0x211437=_0x211437-0x13c;var _0x504387=_0x361c6e[_0x211437];return _0x504387;},a14_0x2114(_0x516f46,_0x324250);}var __decorate=this&&this[a14_0x1cab57(0x14c)]||function(_0x296d40,_0x5e4f48,_0x5f36bf,_0x5ab51c){var _0x2addd9=a14_0x1cab57,_0x33c9ca=arguments[_0x2addd9(0x140)],_0xb16c8f=_0x33c9ca<0x3?_0x5e4f48:_0x5ab51c===null?_0x5ab51c=Object['getOwnPropertyDescriptor'](_0x5e4f48,_0x5f36bf):_0x5ab51c,_0x507ac9;if(typeof Reflect===_0x2addd9(0x150)&&typeof Reflect[_0x2addd9(0x14e)]===_0x2addd9(0x147))_0xb16c8f=Reflect[_0x2addd9(0x14e)](_0x296d40,_0x5e4f48,_0x5f36bf,_0x5ab51c);else{for(var _0x518048=_0x296d40[_0x2addd9(0x140)]-0x1;_0x518048>=0x0;_0x518048--)if(_0x507ac9=_0x296d40[_0x518048])_0xb16c8f=(_0x33c9ca<0x3?_0x507ac9(_0xb16c8f):_0x33c9ca>0x3?_0x507ac9(_0x5e4f48,_0x5f36bf,_0xb16c8f):_0x507ac9(_0x5e4f48,_0x5f36bf))||_0xb16c8f;}return _0x33c9ca>0x3&&_0xb16c8f&&Object[_0x2addd9(0x143)](_0x5e4f48,_0x5f36bf,_0xb16c8f),_0xb16c8f;},__metadata=this&&this[a14_0x1cab57(0x15b)]||function(_0x3eaa5b,_0x5889cd){var _0x5208db=a14_0x1cab57;if(typeof Reflect===_0x5208db(0x150)&&typeof Reflect[_0x5208db(0x148)]===_0x5208db(0x147))return Reflect['metadata'](_0x3eaa5b,_0x5889cd);};Object[a14_0x1cab57(0x143)](exports,a14_0x1cab57(0x15e),{'value':!![]}),exports[a14_0x1cab57(0x158)]=void 0x0;const validator_1=require(a14_0x1cab57(0x13e));function a14_0x361c(){var _0x2636ff=['481208SmsCta','__decorate','是否倒序','decorate','第一页为1,第二页为2','object','integer','分页数量','_order','1713320YILKSr','60tSlRDG','Rule','trim','PageDTO','1180miOOja','1033989zmvCiH','__metadata','1369BQaPcv','_size','__esModule','number','string','_isreverse','4zeDUZi','排序方式','prototype','@anncic-api/validator','design:type','length','RuleType','2408870titUIJ','defineProperty','9999693rdjHyy','min','539975PcGezR','function','metadata','valid','1:是;0:否'];a14_0x361c=function(){return _0x2636ff;};return a14_0x361c();}class PageDTO{}__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])('分页',validator_1['RuleType'][a14_0x1cab57(0x15f)]()[a14_0x1cab57(0x151)]()[a14_0x1cab57(0x145)](0x1),a14_0x1cab57(0x14f)),__metadata(a14_0x1cab57(0x13f),Number)],PageDTO[a14_0x1cab57(0x13d)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])(a14_0x1cab57(0x152),validator_1[a14_0x1cab57(0x141)][a14_0x1cab57(0x15f)]()['integer']()[a14_0x1cab57(0x145)](0x1)),__metadata(a14_0x1cab57(0x13f),Number)],PageDTO['prototype'],a14_0x1cab57(0x15d),void 0x0),__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])(a14_0x1cab57(0x13c),validator_1[a14_0x1cab57(0x141)][a14_0x1cab57(0x160)]()[a14_0x1cab57(0x157)]()),__metadata(a14_0x1cab57(0x13f),String)],PageDTO[a14_0x1cab57(0x13d)],a14_0x1cab57(0x153),void 0x0),__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])(a14_0x1cab57(0x14d),validator_1[a14_0x1cab57(0x141)][a14_0x1cab57(0x15f)]()['integer']()[a14_0x1cab57(0x149)](0x0,0x1),a14_0x1cab57(0x14a)),__metadata(a14_0x1cab57(0x13f),Number)],PageDTO[a14_0x1cab57(0x13d)],a14_0x1cab57(0x161),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.49",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.49",
|
|
21
|
+
"@anncic-api/core": "^1.1.49",
|
|
22
|
+
"@anncic-api/event": "^1.1.49",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.49",
|
|
24
|
+
"@anncic-api/validator": "^1.1.49",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.49",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "10ab408455a086be10e39bc4b73ea68053dd103e"
|
|
43
43
|
}
|