anncic-api 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/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_0x17ed(_0x4ac157,_0x5cc27e){var _0x3c14fd=a0_0x3c14();return a0_0x17ed=function(_0x17ed98,_0x513b26){_0x17ed98=_0x17ed98-0x143;var _0x5446f0=_0x3c14fd[_0x17ed98];return _0x5446f0;},a0_0x17ed(_0x4ac157,_0x5cc27e);}var a0_0x3025d4=a0_0x17ed;(function(_0x36420e,_0x3c74f6){var _0x194784=a0_0x17ed,_0x32f2d5=_0x36420e();while(!![]){try{var _0x3cc2d9=-parseInt(_0x194784(0x152))/0x1+parseInt(_0x194784(0x14b))/0x2*(-parseInt(_0x194784(0x148))/0x3)+-parseInt(_0x194784(0x144))/0x4*(parseInt(_0x194784(0x147))/0x5)+parseInt(_0x194784(0x151))/0x6+parseInt(_0x194784(0x154))/0x7+-parseInt(_0x194784(0x14c))/0x8+parseInt(_0x194784(0x153))/0x9*(parseInt(_0x194784(0x155))/0xa);if(_0x3cc2d9===_0x3c74f6)break;else _0x32f2d5['push'](_0x32f2d5['shift']());}catch(_0x3a9cc3){_0x32f2d5['push'](_0x32f2d5['shift']());}}}(a0_0x3c14,0x76430));function a0_0x3c14(){var _0x180c14=['392wSWbQg','1238752cvvNiU','defineProperty','/runtime/.upload','20mb','zhiulanuiy7892387985hnoi','3966900mHXCQO','529034npbPWo','207HYSZlx','516439czPgOm','490610xCjVkI','xml','default','18776nsCybp','dhauo1234420123gg3234901','form','80YOUGSU','9489xSfzDv','appDir','text'];a0_0x3c14=function(){return _0x180c14;};return a0_0x3c14();}Object[a0_0x3025d4(0x14d)](exports,'__esModule',{'value':!![]}),exports[a0_0x3025d4(0x143)]=_0x327ee9=>{var _0xa8f872=a0_0x3025d4;return{'apitest':!![],'keys':_0x327ee9['name'],'anncicapi':{'timeout':0x1388,'password':_0xa8f872(0x150),'devices':{'DEFAULT':{'secret':_0xa8f872(0x145),'checkcode':_0xa8f872(0x145)}}},'bodyParser':{'enableTypes':['json',_0xa8f872(0x146),_0xa8f872(0x14a),_0xa8f872(0x156)],'formLimit':'20mb','jsonLimit':_0xa8f872(0x14f),'textLimit':_0xa8f872(0x14f),'xmlLimit':_0xa8f872(0x14f)},'upload':{'tmpdir':_0x327ee9[_0xa8f872(0x149)]+_0xa8f872(0x14e),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x2ac9e1=a1_0x4bcb;function a1_0x5557(){var _0x31a2fc=['5651856SgpEiM','838766WCIvUo','default','3yDDEev','2069600OnNtfz','3078356FLWdOH','5600749vDkcwL','357295edYHKu','defineProperty','3284214UmyvOg'];a1_0x5557=function(){return _0x31a2fc;};return a1_0x5557();}(function(_0x5b46b9,_0x4afd04){var _0x594498=a1_0x4bcb,_0x58d3c7=_0x5b46b9();while(!![]){try{var _0x4b30b6=parseInt(_0x594498(0x1d0))/0x1+parseInt(_0x594498(0x1d4))/0x2+parseInt(_0x594498(0x1d6))/0x3*(parseInt(_0x594498(0x1d8))/0x4)+-parseInt(_0x594498(0x1d7))/0x5+-parseInt(_0x594498(0x1d2))/0x6+-parseInt(_0x594498(0x1cf))/0x7+parseInt(_0x594498(0x1d3))/0x8;if(_0x4b30b6===_0x4afd04)break;else _0x58d3c7['push'](_0x58d3c7['shift']());}catch(_0x182141){_0x58d3c7['push'](_0x58d3c7['shift']());}}}(a1_0x5557,0x77f59));function a1_0x4bcb(_0x1a9be3,_0x45fca5){var _0x55574b=a1_0x5557();return a1_0x4bcb=function(_0x4bcb7c,_0x547783){_0x4bcb7c=_0x4bcb7c-0x1cf;var _0xce4a96=_0x55574b[_0x4bcb7c];return _0xce4a96;},a1_0x4bcb(_0x1a9be3,_0x45fca5);}Object[a1_0x2ac9e1(0x1d1)](exports,'__esModule',{'value':!![]}),exports[a1_0x2ac9e1(0x1d5)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x590d(){const _0x13b25d=['Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','checksign','dir','key','25062tlysZA','isFunction','ACTION_ROUTE_KEY','intercept','isClass','args','query','toLowerCase','input','device','getAsync','Inject','forEach','defineProperty','devices','design:type','215664QyRevN','ApiService','checkConfigKeys','upload','context','existsSync','getConfiguration','addObject','Anncic-api\x20static-file\x20:\x20mkdir\x20','tmpdir','./service/ApiService','anncicapi','@midwayjs/cross-domain','object','body','216582hckdFX','request','./types/action','310734hkxaqi','Configuration','registerMethodHandler','onReady','DEFAULT','MidwayApplicationManager','@midwayjs/upload','189836SjdqXo','hanlderApplications','log','koa','Types','config','length','@anncic-api/event','./exception/ApiError','headers','@anncic-api/cache','requestContext','__esModule','1423282UsKjSv','string','__metadata','target','isString','25uqaWMG','defineProperties','proceed','prototype','decorator','REQUEST_OBJ_CTX_KEY','keys','environment','application','getApplications','@anncic-api/core','2719044FIGkzd','ApiError','decorate','MidwayEnvironmentService','handlerActionRoute','method','staticFile','6dThPGu','get','function','filterConfig','mkdirSync','apimit','dirs','_matchedRoute','isArray','__decorate','bodyXml','metadata','@midwayjs/core','@anncic-api/validator','@midwayjs/i18n'];a2_0x590d=function(){return _0x13b25d;};return a2_0x590d();}function a2_0xbbb4(_0x5ae73a,_0x29f820){const _0x590d71=a2_0x590d();return a2_0xbbb4=function(_0xbbb498,_0x40c7b9){_0xbbb498=_0xbbb498-0x17f;let _0x259360=_0x590d71[_0xbbb498];return _0x259360;},a2_0xbbb4(_0x5ae73a,_0x29f820);}const a2_0x4daf81=a2_0xbbb4;(function(_0x2cc409,_0x370d4c){const _0x52c889=a2_0xbbb4,_0x152b7a=_0x2cc409();while(!![]){try{const _0x3ef57f=-parseInt(_0x52c889(0x1d4))/0x1+-parseInt(_0x52c889(0x1a2))/0x2*(-parseInt(_0x52c889(0x1b5))/0x3)+parseInt(_0x52c889(0x1de))/0x4*(parseInt(_0x52c889(0x190))/0x5)+-parseInt(_0x52c889(0x1d7))/0x6+-parseInt(_0x52c889(0x18b))/0x7+parseInt(_0x52c889(0x1c5))/0x8+parseInt(_0x52c889(0x19b))/0x9;if(_0x3ef57f===_0x370d4c)break;else _0x152b7a['push'](_0x152b7a['shift']());}catch(_0x6989b1){_0x152b7a['push'](_0x152b7a['shift']());}}}(a2_0x590d,0x1d3b6));var __decorate=this&&this[a2_0x4daf81(0x1ab)]||function(_0x5c58f4,_0x309060,_0x3b62d9,_0x1a7131){const _0x23fc45=a2_0x4daf81;var _0x47d392=arguments[_0x23fc45(0x184)],_0x305b67=_0x47d392<0x3?_0x309060:_0x1a7131===null?_0x1a7131=Object['getOwnPropertyDescriptor'](_0x309060,_0x3b62d9):_0x1a7131,_0x44e614;if(typeof Reflect===_0x23fc45(0x1d2)&&typeof Reflect['decorate']===_0x23fc45(0x1a4))_0x305b67=Reflect[_0x23fc45(0x19d)](_0x5c58f4,_0x309060,_0x3b62d9,_0x1a7131);else{for(var _0x31ad6c=_0x5c58f4[_0x23fc45(0x184)]-0x1;_0x31ad6c>=0x0;_0x31ad6c--)if(_0x44e614=_0x5c58f4[_0x31ad6c])_0x305b67=(_0x47d392<0x3?_0x44e614(_0x305b67):_0x47d392>0x3?_0x44e614(_0x309060,_0x3b62d9,_0x305b67):_0x44e614(_0x309060,_0x3b62d9))||_0x305b67;}return _0x47d392>0x3&&_0x305b67&&Object['defineProperty'](_0x309060,_0x3b62d9,_0x305b67),_0x305b67;},__metadata=this&&this[a2_0x4daf81(0x18d)]||function(_0x1e71db,_0x354981){const _0x5ee489=a2_0x4daf81;if(typeof Reflect===_0x5ee489(0x1d2)&&typeof Reflect[_0x5ee489(0x1ad)]===_0x5ee489(0x1a4))return Reflect['metadata'](_0x1e71db,_0x354981);};Object[a2_0x4daf81(0x1c2)](exports,a2_0x4daf81(0x18a),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x4daf81(0x1ae)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4daf81(0x186)),ApiService_1=require(a2_0x4daf81(0x1cf)),action_1=require(a2_0x4daf81(0x1d6)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x4daf81(0x1b0)),upload=require(a2_0x4daf81(0x1dd)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4daf81(0x1d1)),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x4daf81(0x19a)),anncicCache=require(a2_0x4daf81(0x188)),anncicEvent=require(a2_0x4daf81(0x185)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x4daf81(0x1af)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x4daf81(0x1da)](){const _0x2ba0b4=a2_0x4daf81;await this['filterConfig'](),await this[_0x2ba0b4(0x1c7)](),await this[_0x2ba0b4(0x19f)](),await this['hanlderApplications']();}async[a2_0x4daf81(0x1c7)](){}async[a2_0x4daf81(0x19f)](){const _0x5b4f03=a2_0x4daf81,_0x588577=this['config'][_0x5b4f03(0x1cb)]();this[_0x5b4f03(0x194)][_0x5b4f03(0x1d9)](action_1[_0x5b4f03(0x1b7)],_0x2f8ec1=>{const _0x27ed14=_0x5b4f03,_0x29be86=_0x2f8ec1[_0x27ed14(0x1ad)];return{'before':async _0x258a3c=>{const _0x4ba0a9=_0x27ed14;var _0x3d14a5,_0x385a28;const _0x2df526=(_0x3d14a5=_0x258a3c===null||_0x258a3c===void 0x0?void 0x0:_0x258a3c['target'])===null||_0x3d14a5===void 0x0?void 0x0:_0x3d14a5[core_2[_0x4ba0a9(0x195)]];if(_0x2df526&&(_0x29be86===null||_0x29be86===void 0x0?void 0x0:_0x29be86['apimit'])){if(!this[_0x4ba0a9(0x1c6)][_0x4ba0a9(0x1b2)]((_0x385a28=_0x2df526===null||_0x2df526===void 0x0?void 0x0:_0x2df526[_0x4ba0a9(0x1d5)])===null||_0x385a28===void 0x0?void 0x0:_0x385a28[_0x4ba0a9(0x187)]))throw new AnnError(ApiError_1[_0x4ba0a9(0x19c)]['HEADERS_SIGNATURE']);}},'around':async _0x2c9c29=>{const _0x331fdb=_0x27ed14;var _0x2a2c60,_0x537c62,_0x53309a,_0x5e75d4,_0x5b35a0;const _0x36d4b2=(_0x2a2c60=_0x2c9c29===null||_0x2c9c29===void 0x0?void 0x0:_0x2c9c29[_0x331fdb(0x18e)])===null||_0x2a2c60===void 0x0?void 0x0:_0x2a2c60[core_2[_0x331fdb(0x195)]];if(_0x36d4b2&&(_0x29be86===null||_0x29be86===void 0x0?void 0x0:_0x29be86[_0x331fdb(0x1a7)])){if(((_0x537c62=_0x36d4b2[_0x331fdb(0x187)])===null||_0x537c62===void 0x0?void 0x0:_0x537c62[_0x331fdb(0x1be)])&&((_0x5b35a0=(_0x5e75d4=(_0x53309a=_0x588577===null||_0x588577===void 0x0?void 0x0:_0x588577['anncicapi'])===null||_0x53309a===void 0x0?void 0x0:_0x53309a[_0x331fdb(0x1c3)])===null||_0x5e75d4===void 0x0?void 0x0:_0x5e75d4[_0x36d4b2[_0x331fdb(0x187)][_0x331fdb(0x1be)]])===null||_0x5b35a0===void 0x0?void 0x0:_0x5b35a0['intercept'])){const _0x116cd8=Array['isArray'](_0x588577[_0x331fdb(0x1d0)][_0x331fdb(0x1c3)][_0x36d4b2[_0x331fdb(0x187)][_0x331fdb(0x1be)]][_0x331fdb(0x1b8)])?_0x588577['anncicapi'][_0x331fdb(0x1c3)][_0x36d4b2[_0x331fdb(0x187)][_0x331fdb(0x1be)]][_0x331fdb(0x1b8)]:[_0x588577['anncicapi'][_0x331fdb(0x1c3)][_0x36d4b2[_0x331fdb(0x187)][_0x331fdb(0x1be)]]['intercept']];for(const _0x4457bb of _0x116cd8){if(core_1[_0x331fdb(0x182)][_0x331fdb(0x1b9)](_0x4457bb)||typeof _0x4457bb==_0x331fdb(0x18c)){const _0x3f595d=await _0x36d4b2[_0x331fdb(0x189)][_0x331fdb(0x1bf)](_0x4457bb);typeof(_0x3f595d===null||_0x3f595d===void 0x0?void 0x0:_0x3f595d['handler'])=='function'&&await _0x3f595d['handler'](typeof(_0x36d4b2===null||_0x36d4b2===void 0x0?void 0x0:_0x36d4b2[_0x331fdb(0x1a0)])==_0x331fdb(0x18c)&&(_0x36d4b2===null||_0x36d4b2===void 0x0?void 0x0:_0x36d4b2[_0x331fdb(0x1a9)])?_0x36d4b2[_0x331fdb(0x1a0)][_0x331fdb(0x1bc)]()+'@'+(_0x36d4b2===null||_0x36d4b2===void 0x0?void 0x0:_0x36d4b2[_0x331fdb(0x1a9)]):undefined,_0x36d4b2,_0x29be86);}else core_1[_0x331fdb(0x182)][_0x331fdb(0x1b6)](_0x4457bb)&&await _0x4457bb(typeof(_0x36d4b2===null||_0x36d4b2===void 0x0?void 0x0:_0x36d4b2[_0x331fdb(0x1a0)])==_0x331fdb(0x18c)&&(_0x36d4b2===null||_0x36d4b2===void 0x0?void 0x0:_0x36d4b2[_0x331fdb(0x1a9)])?_0x36d4b2[_0x331fdb(0x1a0)][_0x331fdb(0x1bc)]()+'@'+(_0x36d4b2===null||_0x36d4b2===void 0x0?void 0x0:_0x36d4b2[_0x331fdb(0x1a9)]):undefined,_0x36d4b2,_0x29be86);}}}return await _0x2c9c29[_0x331fdb(0x192)](..._0x2c9c29[_0x331fdb(0x1ba)]);},'afterThrow':(_0x24704d,_0x3aa746)=>{throw _0x3aa746;}};});}async[a2_0x4daf81(0x17f)](){const _0x53fb1e=a2_0x4daf81;this[_0x53fb1e(0x198)][_0x53fb1e(0x199)]([_0x53fb1e(0x181)])[_0x53fb1e(0x1c1)](_0x40dc03=>{const _0x536a93=_0x53fb1e;(_0x40dc03===null||_0x40dc03===void 0x0?void 0x0:_0x40dc03[_0x536a93(0x1c9)])&&Object[_0x536a93(0x191)](_0x40dc03['context'],{'ok':{'value':function(_0x1ff056,_0x994e99,_0x196baf=0x0){return{'code':_0x196baf,'data':_0x1ff056,'extra':_0x994e99};}},'input':{'value':function(_0x28e483,_0x1dc9c0){const _0x1481cc=_0x536a93;var _0xcb5365;const _0x43be67=lodash['defaultsDeep']({},this[_0x1481cc(0x1d5)][_0x1481cc(0x1d3)]||this[_0x1481cc(0x1d5)][((_0xcb5365=config===null||config===void 0x0?void 0x0:config[_0x1481cc(0x1ac)])===null||_0xcb5365===void 0x0?void 0x0:_0xcb5365[_0x1481cc(0x1b4)])||'body']||{},this[_0x1481cc(0x1d5)][_0x1481cc(0x1bb)]||{});return _0x28e483?lodash[_0x1481cc(0x1a3)](_0x43be67,_0x28e483,_0x1dc9c0):_0x43be67;}},'when':{'value':async function(_0x47e06f,_0x15f0fe){const _0x3eaf4b=_0x536a93,_0x369b25=this[_0x3eaf4b(0x1bd)](_0x47e06f,null);if(!lodash['isNull'](_0x369b25))return await _0x15f0fe(_0x369b25);}},'only':{'value':function(_0x2fd390){const _0x18285d=_0x536a93,_0x53d25b={};for(let _0x344932=0x0;_0x344932<_0x2fd390['length'];_0x344932++){lodash[_0x18285d(0x1aa)](_0x2fd390[_0x344932])&&_0x2fd390[_0x344932][_0x18285d(0x184)]>0x0&&lodash[_0x18285d(0x18f)](_0x2fd390[_0x344932][0x0])&&(_0x53d25b[_0x2fd390[_0x344932][0x0]]=this[_0x18285d(0x1bd)](_0x2fd390[_0x344932][0x0],_0x2fd390[_0x344932][_0x18285d(0x184)]>0x1?_0x2fd390[_0x344932][0x1]:null));}return _0x53d25b;}}});});}async[a2_0x4daf81(0x1a5)](){const _0x3dc79e=a2_0x4daf81;var _0x454dcd,_0xb293c,_0xa157ee,_0x2c9b2f,_0x294635,_0x21d87a;const _0x4f5eea=this['config'][_0x3dc79e(0x1cb)]();((_0xb293c=(_0x454dcd=_0x4f5eea===null||_0x4f5eea===void 0x0?void 0x0:_0x4f5eea[_0x3dc79e(0x1d0)])===null||_0x454dcd===void 0x0?void 0x0:_0x454dcd[_0x3dc79e(0x1c3)])===null||_0xb293c===void 0x0?void 0x0:_0xb293c['DEFAULT'])&&Object[_0x3dc79e(0x196)](_0x4f5eea['anncicapi'][_0x3dc79e(0x1c3)])['length']>0x1&&delete _0x4f5eea[_0x3dc79e(0x1d0)]['devices'][_0x3dc79e(0x1db)];if((_0xa157ee=_0x4f5eea===null||_0x4f5eea===void 0x0?void 0x0:_0x4f5eea['staticFile'])===null||_0xa157ee===void 0x0?void 0x0:_0xa157ee['dirs'])for(const _0x572059 in _0x4f5eea[_0x3dc79e(0x1a1)]['dirs']){((_0x2c9b2f=_0x4f5eea[_0x3dc79e(0x1a1)]['dirs'][_0x572059])===null||_0x2c9b2f===void 0x0?void 0x0:_0x2c9b2f['dir'])&&typeof((_0x294635=_0x4f5eea[_0x3dc79e(0x1a1)][_0x3dc79e(0x1a8)][_0x572059])===null||_0x294635===void 0x0?void 0x0:_0x294635[_0x3dc79e(0x1b3)])==_0x3dc79e(0x18c)&&!fs[_0x3dc79e(0x1ca)](_0x4f5eea[_0x3dc79e(0x1a1)][_0x3dc79e(0x1a8)][_0x572059][_0x3dc79e(0x1b3)])&&(fs['mkdirSync'](_0x4f5eea['staticFile'][_0x3dc79e(0x1a8)][_0x572059][_0x3dc79e(0x1b3)],{'recursive':!![]}),console[_0x3dc79e(0x180)](_0x3dc79e(0x1cd)+_0x4f5eea[_0x3dc79e(0x1a1)][_0x3dc79e(0x1a8)][_0x572059][_0x3dc79e(0x1b3)]));}((_0x21d87a=_0x4f5eea===null||_0x4f5eea===void 0x0?void 0x0:_0x4f5eea[_0x3dc79e(0x1c8)])===null||_0x21d87a===void 0x0?void 0x0:_0x21d87a[_0x3dc79e(0x1ce)])&&!fs[_0x3dc79e(0x1ca)](_0x4f5eea[_0x3dc79e(0x1c8)]['tmpdir'])&&(fs[_0x3dc79e(0x1a6)](_0x4f5eea['upload'][_0x3dc79e(0x1ce)],{'recursive':!![]}),console['log'](_0x3dc79e(0x1b1)+_0x4f5eea[_0x3dc79e(0x1c8)][_0x3dc79e(0x1ce)])),this[_0x3dc79e(0x183)][_0x3dc79e(0x1cc)](_0x4f5eea);}};__decorate([(0x0,core_1[a2_0x4daf81(0x1c0)])(),__metadata(a2_0x4daf81(0x1c4),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x4daf81(0x193)],a2_0x4daf81(0x183),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4daf81(0x1c4),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x4daf81(0x193)],a2_0x4daf81(0x194),void 0x0),__decorate([(0x0,core_1[a2_0x4daf81(0x1c0)])(),__metadata('design:type',core_2[a2_0x4daf81(0x1dc)])],CustomConfiguration[a2_0x4daf81(0x193)],a2_0x4daf81(0x198),void 0x0),__decorate([(0x0,core_1[a2_0x4daf81(0x1c0)])(),__metadata(a2_0x4daf81(0x1c4),core_2[a2_0x4daf81(0x19e)])],CustomConfiguration['prototype'],a2_0x4daf81(0x197),void 0x0),__decorate([(0x0,core_1[a2_0x4daf81(0x1c0)])(),__metadata(a2_0x4daf81(0x1c4),ApiService_1[a2_0x4daf81(0x1c6)])],CustomConfiguration[a2_0x4daf81(0x193)],a2_0x4daf81(0x1c6),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4daf81(0x1d8)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x457985=a2_0x5514;(function(_0x5487ff,_0x4072e3){const _0x3ea03e=a2_0x5514,_0x51d598=_0x5487ff();while(!![]){try{const _0x1021fc=parseInt(_0x3ea03e(0x172))/0x1*(-parseInt(_0x3ea03e(0x13b))/0x2)+-parseInt(_0x3ea03e(0x131))/0x3+parseInt(_0x3ea03e(0x127))/0x4*(parseInt(_0x3ea03e(0x140))/0x5)+parseInt(_0x3ea03e(0x177))/0x6*(parseInt(_0x3ea03e(0x12f))/0x7)+-parseInt(_0x3ea03e(0x17b))/0x8+parseInt(_0x3ea03e(0x168))/0x9*(parseInt(_0x3ea03e(0x17c))/0xa)+-parseInt(_0x3ea03e(0x136))/0xb;if(_0x1021fc===_0x4072e3)break;else _0x51d598['push'](_0x51d598['shift']());}catch(_0x524e04){_0x51d598['push'](_0x51d598['shift']());}}}(a2_0x40ee,0xb8cbe));function a2_0x5514(_0x4b99bc,_0x59f895){const _0x40ee18=a2_0x40ee();return a2_0x5514=function(_0x551495,_0x301408){_0x551495=_0x551495-0x11e;let _0xaee5f2=_0x40ee18[_0x551495];return _0xaee5f2;},a2_0x5514(_0x4b99bc,_0x59f895);}var __decorate=this&&this[a2_0x457985(0x123)]||function(_0x1b1d14,_0x232117,_0x4d8129,_0x3b81aa){const _0x293b3f=a2_0x457985;var _0x2f369f=arguments[_0x293b3f(0x175)],_0x1e3e18=_0x2f369f<0x3?_0x232117:_0x3b81aa===null?_0x3b81aa=Object[_0x293b3f(0x12a)](_0x232117,_0x4d8129):_0x3b81aa,_0xa584c5;if(typeof Reflect===_0x293b3f(0x144)&&typeof Reflect['decorate']===_0x293b3f(0x157))_0x1e3e18=Reflect[_0x293b3f(0x16f)](_0x1b1d14,_0x232117,_0x4d8129,_0x3b81aa);else{for(var _0x1a8704=_0x1b1d14[_0x293b3f(0x175)]-0x1;_0x1a8704>=0x0;_0x1a8704--)if(_0xa584c5=_0x1b1d14[_0x1a8704])_0x1e3e18=(_0x2f369f<0x3?_0xa584c5(_0x1e3e18):_0x2f369f>0x3?_0xa584c5(_0x232117,_0x4d8129,_0x1e3e18):_0xa584c5(_0x232117,_0x4d8129))||_0x1e3e18;}return _0x2f369f>0x3&&_0x1e3e18&&Object['defineProperty'](_0x232117,_0x4d8129,_0x1e3e18),_0x1e3e18;},__metadata=this&&this['__metadata']||function(_0x473e84,_0x578174){const _0x377644=a2_0x457985;if(typeof Reflect===_0x377644(0x144)&&typeof Reflect[_0x377644(0x174)]===_0x377644(0x157))return Reflect[_0x377644(0x174)](_0x473e84,_0x578174);};Object[a2_0x457985(0x171)](exports,a2_0x457985(0x133),{'value':!![]}),exports[a2_0x457985(0x146)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x457985(0x159)),ApiError_1=require(a2_0x457985(0x14a)),ApiService_1=require('./service/ApiService'),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x457985(0x16d)),i18n=require(a2_0x457985(0x16c)),upload=require(a2_0x457985(0x14f)),staticFile=require(a2_0x457985(0x141)),crossDomain=require(a2_0x457985(0x129)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x457985(0x125)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x457985(0x121)),anncicEvent=require(a2_0x457985(0x176)),anncicTypeorm=require(a2_0x457985(0x12e)),anncicValidator=require(a2_0x457985(0x120)),anncicHelper=require(a2_0x457985(0x12d));function a2_0x40ee(){const _0x17c258=['keys','key','headers','./exception/ApiError','get','target','mkdirSync','anncic-api','@midwayjs/upload','proceed','_matchedRoute','staticFile','log','onReady','bodyXml','Types','function','getApplications','@midwayjs/core','isString','forEach','DEFAULT','checkConfigKeys','defaultsDeep','dir','application','filterConfig','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','toLowerCase','tmpdir','REQUEST_OBJ_CTX_KEY','isNull','method','78453BgqZYh','devices','string','Inject','@midwayjs/i18n','@midwayjs/koa','decorator','decorate','existsSync','defineProperty','13066DnuWFN','handler','metadata','length','@anncic-api/event','7349928gvYXfM','addObject','handlerActionRoute','HEADERS_SIGNATURE','3088560CyubVP','1150kdUuGX','getConfiguration','body','@anncic-api/validator','@anncic-api/cache','request','__decorate','isFunction','./config/config.production','device','743776qaIjHs','args','@midwayjs/cross-domain','getOwnPropertyDescriptor','design:type','MidwayConfigService','anncic-apihelper','@anncic-api/typeorm','7UdkIIC','Configuration','4149366QOoCNe','isArray','__esModule','dirs','environment','8622141lRUCWC','hanlderApplications','ApiService','getAsync','config','62RYjhBP','ACTION_ROUTE_KEY','upload','prototype','input','40lVUaeU','@midwayjs/static-file','intercept','anncicapi','object','Anncic-api\x20static-file\x20:\x20mkdir\x20','CustomConfiguration'];a2_0x40ee=function(){return _0x17c258;};return a2_0x40ee();}let CustomConfiguration=class CustomConfiguration{async[a2_0x457985(0x154)](){const _0x12765a=a2_0x457985;await this['filterConfig'](),await this[_0x12765a(0x15d)](),await this[_0x12765a(0x179)](),await this[_0x12765a(0x137)]();}async[a2_0x457985(0x15d)](){}async[a2_0x457985(0x179)](){const _0x416f5e=a2_0x457985,_0xa5166b=this[_0x416f5e(0x13a)]['getConfiguration']();this[_0x416f5e(0x16e)]['registerMethodHandler'](action_1[_0x416f5e(0x13c)],_0x5f42e5=>{const _0x5269f7=_0x5f42e5['metadata'];return{'before':async _0x2b4f6c=>{const _0x7932be=a2_0x5514;var _0x35c7a9,_0x55597e;const _0x1221f4=(_0x35c7a9=_0x2b4f6c===null||_0x2b4f6c===void 0x0?void 0x0:_0x2b4f6c[_0x7932be(0x14c)])===null||_0x35c7a9===void 0x0?void 0x0:_0x35c7a9[core_2[_0x7932be(0x165)]];if(_0x1221f4&&(_0x5269f7===null||_0x5269f7===void 0x0?void 0x0:_0x5269f7['apimit'])){if(!this[_0x7932be(0x138)]['checksign']((_0x55597e=_0x1221f4===null||_0x1221f4===void 0x0?void 0x0:_0x1221f4[_0x7932be(0x122)])===null||_0x55597e===void 0x0?void 0x0:_0x55597e['headers']))throw new AnnError(ApiError_1['ApiError'][_0x7932be(0x17a)]);}},'around':async _0x416314=>{const _0x4ba9f0=a2_0x5514;var _0x1e75e8,_0x57b243,_0x341eb5,_0x2f806e,_0x2a94f9;const _0x14234c=(_0x1e75e8=_0x416314===null||_0x416314===void 0x0?void 0x0:_0x416314[_0x4ba9f0(0x14c)])===null||_0x1e75e8===void 0x0?void 0x0:_0x1e75e8[core_2[_0x4ba9f0(0x165)]];if(_0x14234c&&(_0x5269f7===null||_0x5269f7===void 0x0?void 0x0:_0x5269f7['apimit'])){if(((_0x57b243=_0x14234c[_0x4ba9f0(0x149)])===null||_0x57b243===void 0x0?void 0x0:_0x57b243['device'])&&((_0x2a94f9=(_0x2f806e=(_0x341eb5=_0xa5166b===null||_0xa5166b===void 0x0?void 0x0:_0xa5166b['anncicapi'])===null||_0x341eb5===void 0x0?void 0x0:_0x341eb5[_0x4ba9f0(0x169)])===null||_0x2f806e===void 0x0?void 0x0:_0x2f806e[_0x14234c[_0x4ba9f0(0x149)][_0x4ba9f0(0x126)]])===null||_0x2a94f9===void 0x0?void 0x0:_0x2a94f9[_0x4ba9f0(0x142)])){const _0x400e69=Array[_0x4ba9f0(0x132)](_0xa5166b[_0x4ba9f0(0x143)][_0x4ba9f0(0x169)][_0x14234c['headers'][_0x4ba9f0(0x126)]][_0x4ba9f0(0x142)])?_0xa5166b[_0x4ba9f0(0x143)]['devices'][_0x14234c[_0x4ba9f0(0x149)][_0x4ba9f0(0x126)]]['intercept']:[_0xa5166b[_0x4ba9f0(0x143)][_0x4ba9f0(0x169)][_0x14234c['headers']['device']][_0x4ba9f0(0x142)]];for(const _0x3280ed of _0x400e69){if(core_1[_0x4ba9f0(0x156)]['isClass'](_0x3280ed)||typeof _0x3280ed=='string'){const _0x246df4=await _0x14234c['requestContext'][_0x4ba9f0(0x139)](_0x3280ed);typeof(_0x246df4===null||_0x246df4===void 0x0?void 0x0:_0x246df4[_0x4ba9f0(0x173)])=='function'&&await _0x246df4[_0x4ba9f0(0x173)](typeof(_0x14234c===null||_0x14234c===void 0x0?void 0x0:_0x14234c['method'])==_0x4ba9f0(0x16a)&&(_0x14234c===null||_0x14234c===void 0x0?void 0x0:_0x14234c[_0x4ba9f0(0x151)])?_0x14234c['method'][_0x4ba9f0(0x163)]()+'@'+(_0x14234c===null||_0x14234c===void 0x0?void 0x0:_0x14234c['_matchedRoute']):undefined,_0x14234c,_0x5269f7);}else core_1['Types'][_0x4ba9f0(0x124)](_0x3280ed)&&await _0x3280ed(typeof(_0x14234c===null||_0x14234c===void 0x0?void 0x0:_0x14234c[_0x4ba9f0(0x167)])==_0x4ba9f0(0x16a)&&(_0x14234c===null||_0x14234c===void 0x0?void 0x0:_0x14234c[_0x4ba9f0(0x151)])?_0x14234c[_0x4ba9f0(0x167)]['toLowerCase']()+'@'+(_0x14234c===null||_0x14234c===void 0x0?void 0x0:_0x14234c[_0x4ba9f0(0x151)]):undefined,_0x14234c,_0x5269f7);}}}return await _0x416314[_0x4ba9f0(0x150)](..._0x416314[_0x4ba9f0(0x128)]);},'afterThrow':(_0x326d2a,_0x1c1ac6)=>{throw _0x1c1ac6;}};});}async[a2_0x457985(0x137)](){const _0x12b9c1=a2_0x457985;this[_0x12b9c1(0x160)][_0x12b9c1(0x158)](['koa'])[_0x12b9c1(0x15b)](_0x54b594=>{(_0x54b594===null||_0x54b594===void 0x0?void 0x0:_0x54b594['context'])&&Object['defineProperties'](_0x54b594['context'],{'ok':{'value':function(_0x4130f6,_0x23a16e,_0x2949bc=0x0){return{'code':_0x2949bc,'data':_0x4130f6,'extra':_0x23a16e};}},'input':{'value':function(_0x4409b7,_0x4a0ba3){const _0x4a4623=a2_0x5514;var _0x3009e2;const _0x46290c=lodash[_0x4a4623(0x15e)]({},this[_0x4a4623(0x122)][_0x4a4623(0x11f)]||this[_0x4a4623(0x122)][((_0x3009e2=config===null||config===void 0x0?void 0x0:config[_0x4a4623(0x155)])===null||_0x3009e2===void 0x0?void 0x0:_0x3009e2[_0x4a4623(0x148)])||_0x4a4623(0x11f)]||{},this[_0x4a4623(0x122)]['query']||{});return _0x4409b7?lodash[_0x4a4623(0x14b)](_0x46290c,_0x4409b7,_0x4a0ba3):_0x46290c;}},'when':{'value':async function(_0x29b4ca,_0x199d59){const _0x2ab925=a2_0x5514,_0xbe32b1=this[_0x2ab925(0x13f)](_0x29b4ca,null);if(!lodash[_0x2ab925(0x166)](_0xbe32b1))return await _0x199d59(_0xbe32b1);}},'only':{'value':function(_0x4ad37e){const _0x5bae1e=a2_0x5514,_0x605467={};for(let _0x48f4b6=0x0;_0x48f4b6<_0x4ad37e[_0x5bae1e(0x175)];_0x48f4b6++){lodash[_0x5bae1e(0x132)](_0x4ad37e[_0x48f4b6])&&_0x4ad37e[_0x48f4b6][_0x5bae1e(0x175)]>0x0&&lodash[_0x5bae1e(0x15a)](_0x4ad37e[_0x48f4b6][0x0])&&(_0x605467[_0x4ad37e[_0x48f4b6][0x0]]=this[_0x5bae1e(0x13f)](_0x4ad37e[_0x48f4b6][0x0],_0x4ad37e[_0x48f4b6][_0x5bae1e(0x175)]>0x1?_0x4ad37e[_0x48f4b6][0x1]:null));}return _0x605467;}}});});}async[a2_0x457985(0x161)](){const _0x21e4c3=a2_0x457985;var _0x126863,_0x556996,_0x543919,_0x263337,_0x4190a5,_0x422c41;const _0x33961c=this['config'][_0x21e4c3(0x11e)]();((_0x556996=(_0x126863=_0x33961c===null||_0x33961c===void 0x0?void 0x0:_0x33961c[_0x21e4c3(0x143)])===null||_0x126863===void 0x0?void 0x0:_0x126863[_0x21e4c3(0x169)])===null||_0x556996===void 0x0?void 0x0:_0x556996[_0x21e4c3(0x15c)])&&Object[_0x21e4c3(0x147)](_0x33961c['anncicapi'][_0x21e4c3(0x169)])['length']>0x1&&delete _0x33961c['anncicapi'][_0x21e4c3(0x169)]['DEFAULT'];if((_0x543919=_0x33961c===null||_0x33961c===void 0x0?void 0x0:_0x33961c[_0x21e4c3(0x152)])===null||_0x543919===void 0x0?void 0x0:_0x543919['dirs'])for(const _0x3c657b in _0x33961c[_0x21e4c3(0x152)][_0x21e4c3(0x134)]){((_0x263337=_0x33961c[_0x21e4c3(0x152)][_0x21e4c3(0x134)][_0x3c657b])===null||_0x263337===void 0x0?void 0x0:_0x263337['dir'])&&typeof((_0x4190a5=_0x33961c['staticFile'][_0x21e4c3(0x134)][_0x3c657b])===null||_0x4190a5===void 0x0?void 0x0:_0x4190a5[_0x21e4c3(0x15f)])==_0x21e4c3(0x16a)&&!fs[_0x21e4c3(0x170)](_0x33961c['staticFile'][_0x21e4c3(0x134)][_0x3c657b][_0x21e4c3(0x15f)])&&(fs[_0x21e4c3(0x14d)](_0x33961c[_0x21e4c3(0x152)]['dirs'][_0x3c657b]['dir'],{'recursive':!![]}),console[_0x21e4c3(0x153)](_0x21e4c3(0x145)+_0x33961c[_0x21e4c3(0x152)][_0x21e4c3(0x134)][_0x3c657b]['dir']));}((_0x422c41=_0x33961c===null||_0x33961c===void 0x0?void 0x0:_0x33961c[_0x21e4c3(0x13d)])===null||_0x422c41===void 0x0?void 0x0:_0x422c41['tmpdir'])&&!fs[_0x21e4c3(0x170)](_0x33961c[_0x21e4c3(0x13d)]['tmpdir'])&&(fs[_0x21e4c3(0x14d)](_0x33961c['upload'][_0x21e4c3(0x164)],{'recursive':!![]}),console[_0x21e4c3(0x153)](_0x21e4c3(0x162)+_0x33961c[_0x21e4c3(0x13d)][_0x21e4c3(0x164)])),this[_0x21e4c3(0x13a)][_0x21e4c3(0x178)](_0x33961c);}};__decorate([(0x0,core_1[a2_0x457985(0x16b)])(),__metadata(a2_0x457985(0x12b),core_2[a2_0x457985(0x12c)])],CustomConfiguration[a2_0x457985(0x13e)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x457985(0x16b)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x457985(0x13e)],a2_0x457985(0x16e),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x457985(0x12b),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x457985(0x13e)],a2_0x457985(0x160),void 0x0),__decorate([(0x0,core_1[a2_0x457985(0x16b)])(),__metadata('design:type',core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x457985(0x135),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x457985(0x12b),ApiService_1[a2_0x457985(0x138)])],CustomConfiguration[a2_0x457985(0x13e)],a2_0x457985(0x138),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x457985(0x130)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x457985(0x14e),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x457985(0x146)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x44bf74=a3_0x5775;(function(_0xc34446,_0x4bc4a9){const _0x45d360=a3_0x5775,_0x55b496=_0xc34446();while(!![]){try{const _0x488c55=-parseInt(_0x45d360(0xa4))/0x1*(parseInt(_0x45d360(0xc5))/0x2)+parseInt(_0x45d360(0xc6))/0x3*(parseInt(_0x45d360(0xb3))/0x4)+parseInt(_0x45d360(0xa8))/0x5+-parseInt(_0x45d360(0xa9))/0x6+parseInt(_0x45d360(0xac))/0x7+parseInt(_0x45d360(0xbe))/0x8*(parseInt(_0x45d360(0xb6))/0x9)+-parseInt(_0x45d360(0x9a))/0xa*(parseInt(_0x45d360(0xb0))/0xb);if(_0x488c55===_0x4bc4a9)break;else _0x55b496['push'](_0x55b496['shift']());}catch(_0x1344a4){_0x55b496['push'](_0x55b496['shift']());}}}(a3_0x43ca,0x5f280));Object[a3_0x44bf74(0xa2)](exports,'__esModule',{'value':!![]}),exports[a3_0x44bf74(0xc3)]=exports['Action']=void 0x0;const fs=require('fs'),core_1=require(a3_0x44bf74(0x9f)),action_1=require(a3_0x44bf74(0xbb));function a3_0x43ca(){const _0x2c4698=['match','APPSCONFIG_KEY','filter','127468iYKTHk','tagName','route','3248UdbscA','rootpath','filepath','51687WpNglF','middlewareIgnore','ACTION_KEY','splice','saveModule','../types/action','prefix','middleware','576oHwkYn','isArray','indexOf','\x20文件请放在app/controller/文件下','length','parseRoute','cwd','24ejmyfK','1317xFORNU','Controller','split','replace','endsWith','Action','AppsConfigTmp','toLowerCase','-controller','startsWith','join','push','60KgiVBB','module','saveClassMetadata','-action','trim','@midwayjs/core','/apps/','substring','defineProperty','\x20文件请放在apps/','22012erHOJI','/controller/','/config.','existsSync','1596180aOIeKt','3002658LPoNUW','apps/','app/controller/','942725pHgHYv'];a3_0x43ca=function(){return _0x2c4698;};return a3_0x43ca();}function Action(_0x168fe5,_0x387245,_0x4c4241={'middleware':[],'sensitive':!![]}){return _0x3c991a=>{const _0x2701b4=a3_0x5775;var _0x485ced;_0x4c4241[_0x2701b4(0xb1)]=_0x387245;const _0x2f3548=parseRoute(_0x168fe5);if(_0x2f3548[_0x2701b4(0x9b)]){_0x4c4241[_0x2701b4(0xbc)]=_0x4c4241[_0x2701b4(0xbc)]?'/'+_0x2f3548[_0x2701b4(0x9b)]+'/'+_0x4c4241[_0x2701b4(0xbc)]:'/'+_0x2f3548[_0x2701b4(0xb2)];_0x2f3548[_0x2701b4(0xbc)]&&(_0x4c4241[_0x2701b4(0xbc)]='/'+_0x2f3548[_0x2701b4(0xbc)]+'/'+_0x4c4241['prefix']);if(fs[_0x2701b4(0xa7)](_0x2f3548[_0x2701b4(0xb4)]+_0x2701b4(0xa0)+_0x2f3548[_0x2701b4(0x9b)]+_0x2701b4(0xa6)+(lodash[_0x2701b4(0xca)](_0x2f3548[_0x2701b4(0xb5)],'ts')?'ts':'js'))){const _0x1bcb97=include(_0x2f3548[_0x2701b4(0xb4)]+_0x2701b4(0xa0)+_0x2f3548[_0x2701b4(0x9b)]+_0x2701b4(0xa6)+(lodash[_0x2701b4(0xca)](_0x2f3548[_0x2701b4(0xb5)],'ts')?'ts':'js'));if(_0x1bcb97[_0x2701b4(0xbd)]&&lodash[_0x2701b4(0xbf)](_0x1bcb97[_0x2701b4(0xbd)])&&_0x1bcb97[_0x2701b4(0xbd)][_0x2701b4(0xc2)]>0x0)for(let _0x542d98 in _0x1bcb97['middleware']){if(((_0x485ced=_0x1bcb97===null||_0x1bcb97===void 0x0?void 0x0:_0x1bcb97['middlewareIgnore'])===null||_0x485ced===void 0x0?void 0x0:_0x485ced['length'])>0x0&&_0x1bcb97[_0x2701b4(0xb7)][_0x2701b4(0xc0)](_0x1bcb97[_0x2701b4(0xbd)][_0x542d98])!=-0x1)continue;_0x4c4241[_0x2701b4(0xbd)][_0x2701b4(0x99)](_0x1bcb97['middleware'][_0x542d98]);}const _0x1ed50a=(0x0,core_1['getClassMetadata'])(action_1[_0x2701b4(0xae)],action_1['AppsConfigTmp'])||{};_0x1ed50a[''+_0x2f3548[_0x2701b4(0x9b)]]=_0x1bcb97,(0x0,core_1['saveClassMetadata'])(action_1[_0x2701b4(0xae)],_0x1ed50a,action_1[_0x2701b4(0xcc)]);}_0x4c4241[_0x2701b4(0xbc)]=_0x4c4241[_0x2701b4(0xbc)][_0x2701b4(0xcd)]()[_0x2701b4(0xc9)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x2701b4(0xb8)],_0x3c991a),(0x0,core_1[_0x2701b4(0xc7)])(_0x4c4241[_0x2701b4(0xbc)],_0x4c4241)(_0x3c991a),(0x0,core_1[_0x2701b4(0x9c)])(action_1[_0x2701b4(0xb8)],{'prefix':_0x4c4241['prefix'],'pprefix':_0x2f3548[_0x2701b4(0xbc)],'module':_0x2f3548[_0x2701b4(0x9b)],'filepath':_0x2f3548['filepath'],'routerOptions':_0x4c4241},_0x3c991a);}else _0x4c4241[_0x2701b4(0xbc)]=_0x4c4241[_0x2701b4(0xbc)]?'/'+_0x4c4241[_0x2701b4(0xbc)]:'/'+_0x2f3548[_0x2701b4(0xb2)],_0x2f3548[_0x2701b4(0xbc)]&&(_0x4c4241[_0x2701b4(0xbc)]='/'+_0x2f3548[_0x2701b4(0xbc)]+'/'+_0x4c4241[_0x2701b4(0xbc)]),_0x4c4241[_0x2701b4(0xbc)]=_0x4c4241['prefix'][_0x2701b4(0xcd)]()[_0x2701b4(0xc9)](/\/{2,}/g,'/'),(0x0,core_1[_0x2701b4(0xba)])(action_1['ACTION_KEY'],_0x3c991a),(0x0,core_1['Controller'])(_0x4c4241[_0x2701b4(0xbc)],_0x4c4241)(_0x3c991a),(0x0,core_1[_0x2701b4(0x9c)])(action_1[_0x2701b4(0xb8)],{'prefix':_0x4c4241[_0x2701b4(0xbc)],'module':_0x2f3548['module'],'pprefix':_0x2f3548[_0x2701b4(0xbc)],'filepath':_0x2f3548[_0x2701b4(0xb5)],'routerOptions':_0x4c4241},_0x3c991a);};}exports[a3_0x44bf74(0xcb)]=Action;function a3_0x5775(_0xd5e0b5,_0x8b2956){const _0x43ca24=a3_0x43ca();return a3_0x5775=function(_0x577568,_0x265520){_0x577568=_0x577568-0x97;let _0x41be8d=_0x43ca24[_0x577568];return _0x41be8d;},a3_0x5775(_0xd5e0b5,_0x8b2956);}function parseRoute(_0x26a216){const _0xcde4be=a3_0x44bf74;_0x26a216=_0x26a216[_0xcde4be(0xc9)](/(\\|\/)/g,'/');const _0x39d51b=process[_0xcde4be(0xc4)]()[_0xcde4be(0xc9)](/(\\|\/)/g,'/'),_0x3a23c4=_0x26a216[_0xcde4be(0xa1)](0x0,_0x39d51b[_0xcde4be(0xc2)]+_0x26a216[_0xcde4be(0xa1)](_0x39d51b[_0xcde4be(0xc2)]+0x1)['indexOf']('/')+0x1),_0x27258e=_0x26a216[_0xcde4be(0xa1)](_0x3a23c4['length']+0x1)[_0xcde4be(0xc9)](/(\\|\/)/g,'/'),_0x253641={'route':'','prefix':![],'module':![],'rootpath':_0x3a23c4,'filepath':_0x27258e};if(_0x27258e['startsWith'](_0xcde4be(0xab))){const _0x43d2ea=_0x27258e[_0xcde4be(0xa1)](_0xcde4be(0xab)[_0xcde4be(0xc2)])[_0xcde4be(0xc8)]('/')[_0xcde4be(0xaf)](_0x5c6226=>_0x5c6226&&_0x5c6226[_0xcde4be(0x9e)]());return _0x43d2ea['length']>0x1&&(_0x253641[_0xcde4be(0xbc)]=_0x43d2ea[0x0][_0xcde4be(0xcd)](),_0x43d2ea[_0xcde4be(0xb9)](0x0,0x1)),_0x253641['route']=('/'+_0x43d2ea[_0xcde4be(0x98)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0xcde4be(0xc9)](/\/{2,}/g,'/')[_0xcde4be(0xad)](/[\/|A-Z]*[^A-Z]+/g)[_0xcde4be(0x98)]('-')[_0xcde4be(0xcd)]()['replace'](/\/\-/g,'/'),_0x253641[_0xcde4be(0xb2)]['endsWith'](_0xcde4be(0x9d))&&(_0x253641[_0xcde4be(0xb2)]=_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xa1)](0x0,_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xc2)]-0x7)),_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xca)](_0xcde4be(0xce))&&(_0x253641[_0xcde4be(0xb2)]=_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xa1)](0x0,_0x253641['route'][_0xcde4be(0xc2)]-0xb)),_0x253641;}else{if(_0x27258e[_0xcde4be(0x97)](_0xcde4be(0xaa))){const _0x329c17=_0x27258e[_0xcde4be(0xa1)](0x0,_0x27258e[_0xcde4be(0xc0)](_0xcde4be(0xa0))+0x5),_0x571524=_0x27258e[_0xcde4be(0xa1)](_0x329c17['length']+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x27258e[_0xcde4be(0x97)](_0xcde4be(0xaa)+_0x571524+_0xcde4be(0xa5))){const _0x127a74=_0x27258e['substring']((_0x329c17+'/'+_0x571524+_0xcde4be(0xa5))[_0xcde4be(0xc2)])[_0xcde4be(0xc8)]('/')[_0xcde4be(0xaf)](_0x5c3a69=>_0x5c3a69&&_0x5c3a69[_0xcde4be(0x9e)]());return _0x127a74['length']>0x1&&(_0x253641[_0xcde4be(0xbc)]=_0x127a74[0x0][_0xcde4be(0xcd)](),_0x127a74[_0xcde4be(0xb9)](0x0,0x1)),_0x253641[_0xcde4be(0x9b)]=_0x571524,_0x253641[_0xcde4be(0xb2)]=('/'+_0x571524+'/'+_0x127a74['join']('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0xcde4be(0xad)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0xcde4be(0xcd)]()[_0xcde4be(0xc9)](/\/\-/g,'/'),_0x253641['route'][_0xcde4be(0xca)]('-action')&&(_0x253641['route']=_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xa1)](0x0,_0x253641['route'][_0xcde4be(0xc2)]-0x7)),_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xca)](_0xcde4be(0xce))&&(_0x253641['route']=_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xa1)](0x0,_0x253641[_0xcde4be(0xb2)][_0xcde4be(0xc2)]-0xb)),_0x253641;}throw new Error(_0x27258e+_0xcde4be(0xa3)+_0x571524+'/controller/文件下');}}throw new Error(_0x27258e+_0xcde4be(0xc1));}exports[a3_0x44bf74(0xc3)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a4_0x2c3842=a4_0x9643;function a4_0xf14a(){const _0x391adc=['355636vXuxCa','Validator','3285HBAbUI','1JUMkuV','5hxKSwd','3554635smnXzE','delete','routerName','del','description','179839tnzblk','validate','indexOf','apimit','toLowerCase','length','1539778LtNTod','15683640XVyuHG','Api','@anncic-api/validator','@midwayjs/core','720714oLOCfn','../types/action','attachClassMetadata','filter','ACTION_ROUTE_KEY','976xkLLzQ','defineProperty','createCustomMethodDecorator','33MEFVPC','380gBaBEx','middleware'];a4_0xf14a=function(){return _0x391adc;};return a4_0xf14a();}(function(_0x24a3c5,_0x340fda){const _0x5796da=a4_0x9643,_0x690fe3=_0x24a3c5();while(!![]){try{const _0x5556ec=parseInt(_0x5796da(0xf7))/0x1*(-parseInt(_0x5796da(0xe4))/0x2)+parseInt(_0x5796da(0xf1))/0x3*(-parseInt(_0x5796da(0xf4))/0x4)+-parseInt(_0x5796da(0xf8))/0x5*(parseInt(_0x5796da(0xe9))/0x6)+parseInt(_0x5796da(0xf9))/0x7+parseInt(_0x5796da(0xee))/0x8*(-parseInt(_0x5796da(0xf6))/0x9)+parseInt(_0x5796da(0xf2))/0xa*(parseInt(_0x5796da(0xde))/0xb)+parseInt(_0x5796da(0xe5))/0xc;if(_0x5556ec===_0x340fda)break;else _0x690fe3['push'](_0x690fe3['shift']());}catch(_0x1033da){_0x690fe3['push'](_0x690fe3['shift']());}}}(a4_0xf14a,0x7fcec));function a4_0x9643(_0x4be798,_0x3053cf){const _0xf14ada=a4_0xf14a();return a4_0x9643=function(_0x9643be,_0x3b5bae){_0x9643be=_0x9643be-0xda;let _0x1e3cbd=_0xf14ada[_0x9643be];return _0x1e3cbd;},a4_0x9643(_0x4be798,_0x3053cf);}Object[a4_0x2c3842(0xef)](exports,'__esModule',{'value':!![]}),exports[a4_0x2c3842(0xe6)]=void 0x0;const validator_1=require(a4_0x2c3842(0xe7)),core_1=require(a4_0x2c3842(0xe8)),action_1=require(a4_0x2c3842(0xea));function Api(_0x2a37c2,_0x1a36d1='get',_0x1a76ce='/',_0x44ffab={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1d3040,_0x366221,_0x3baa16)=>{const _0x374ab8=a4_0x9643;var _0x1a4d22,_0x14627d,_0x20cb9d;!_0x44ffab[_0x374ab8(0xf3)]&&(_0x44ffab['middleware']=[]);!((_0x1a4d22=_0x44ffab===null||_0x44ffab===void 0x0?void 0x0:_0x44ffab[_0x374ab8(0xdf)])===null||_0x1a4d22===void 0x0?void 0x0:_0x1a4d22['validationOptions'])&&(_0x44ffab[_0x374ab8(0xdf)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(((_0x14627d=_0x44ffab===null||_0x44ffab===void 0x0?void 0x0:_0x44ffab[_0x374ab8(0xf3)])===null||_0x14627d===void 0x0?void 0x0:_0x14627d[_0x374ab8(0xe3)])>0x0&&((_0x20cb9d=_0x44ffab===null||_0x44ffab===void 0x0?void 0x0:_0x44ffab['middlewareIgnore'])===null||_0x20cb9d===void 0x0?void 0x0:_0x20cb9d[_0x374ab8(0xe3)])>0x0)for(let _0x36502e in _0x44ffab['middleware']){_0x44ffab['middlewareIgnore'][_0x374ab8(0xe0)](_0x44ffab[_0x374ab8(0xf3)][_0x36502e])!==-0x1&&(_0x44ffab['middleware'][_0x36502e]=null);}_0x44ffab['routerName']=_0x2a37c2,(0x0,validator_1[_0x374ab8(0xf5)])(_0x44ffab[_0x374ab8(0xdf)])(_0x1d3040,_0x366221,_0x3baa16),(0x0,core_1['RequestMapping'])(Object['assign'](_0x44ffab,{'path':_0x1a76ce,'requestMethod':(_0x1a36d1==_0x374ab8(0xdc)?_0x374ab8(0xda):_0x1a36d1)[_0x374ab8(0xe2)]()}))(_0x1d3040,_0x366221,_0x3baa16),(0x0,core_1[_0x374ab8(0xeb)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x1a76ce,'method':_0x366221,'apimit':_0x44ffab[_0x374ab8(0xe1)],'routerName':_0x44ffab[_0x374ab8(0xdb)],'description':_0x44ffab['description'],'middleware':(_0x44ffab['middleware']||[])[_0x374ab8(0xec)](_0x3e4a53=>!!_0x3e4a53),'requestMethod':(_0x1a36d1==_0x374ab8(0xdc)?_0x374ab8(0xda):_0x1a36d1)[_0x374ab8(0xe2)]()},_0x1d3040),(0x0,core_1[_0x374ab8(0xf0)])(action_1[_0x374ab8(0xed)],{'path':_0x1a76ce,'method':_0x366221,'apimit':_0x44ffab[_0x374ab8(0xe1)],'routerName':_0x44ffab[_0x374ab8(0xdb)],'description':_0x44ffab[_0x374ab8(0xdd)],'middleware':(_0x44ffab[_0x374ab8(0xf3)]||[])[_0x374ab8(0xec)](_0x1c293b=>!!_0x1c293b),'requestMethod':(_0x1a36d1==_0x374ab8(0xdc)?'delete':_0x1a36d1)['toLowerCase']()})(_0x1d3040,_0x366221,_0x3baa16);};}exports[a4_0x2c3842(0xe6)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a5_0x1cb5(_0x20eb6c,_0x2c4dc8){const _0x328aa8=a5_0x328a();return a5_0x1cb5=function(_0x1cb5a6,_0x46c075){_0x1cb5a6=_0x1cb5a6-0x1ef;let _0x1276ee=_0x328aa8[_0x1cb5a6];return _0x1276ee;},a5_0x1cb5(_0x20eb6c,_0x2c4dc8);}const a5_0x13326b=a5_0x1cb5;(function(_0x8fa700,_0x36d9fb){const _0x324f75=a5_0x1cb5,_0x15db0a=_0x8fa700();while(!![]){try{const _0x3fd8ae=parseInt(_0x324f75(0x1f6))/0x1+-parseInt(_0x324f75(0x204))/0x2*(parseInt(_0x324f75(0x1ef))/0x3)+parseInt(_0x324f75(0x209))/0x4*(-parseInt(_0x324f75(0x1fd))/0x5)+-parseInt(_0x324f75(0x1f9))/0x6+-parseInt(_0x324f75(0x205))/0x7*(-parseInt(_0x324f75(0x20a))/0x8)+parseInt(_0x324f75(0x1f5))/0x9*(parseInt(_0x324f75(0x1fb))/0xa)+-parseInt(_0x324f75(0x202))/0xb*(-parseInt(_0x324f75(0x1fc))/0xc);if(_0x3fd8ae===_0x36d9fb)break;else _0x15db0a['push'](_0x15db0a['shift']());}catch(_0x52e3b4){_0x15db0a['push'](_0x15db0a['shift']());}}}(a5_0x328a,0x2e627));function a5_0x328a(){const _0x40beae=['1044IORetT','248139LRzbOz','../service/ApitestService','RequestMapping','1503780gXCpdK','getConfig','29150PCuJhq','28584TgqaVd','90QPdedp','defineProperty','app','isDevelopmentEnvironment','getApplicationContext','209WQBLhN','MidwayEnvironmentService','158666kBixag','12257Gexlhx','getAsync','/apitest','Apitest','3156uokXIm','280NkKQFv','apitest','9HSZUFa','apidoc','__esModule','ApitestService','@midwayjs/core','value'];a5_0x328a=function(){return _0x40beae;};return a5_0x328a();}Object[a5_0x13326b(0x1fe)](exports,a5_0x13326b(0x1f1),{'value':!![]}),exports[a5_0x13326b(0x208)]=void 0x0;const core_1=require(a5_0x13326b(0x1f3)),ApitestService_1=require(a5_0x13326b(0x1f7));function Apitest(_0xbdc054=a5_0x13326b(0x207),_0x54da93){return(_0x45d137,_0x41f163,_0x3ed61c)=>{const _0x3438ce=a5_0x1cb5;return(0x0,core_1[_0x3438ce(0x1f8)])({'path':_0xbdc054,'requestMethod':'get'})(_0x45d137,_0x41f163,_0x3ed61c),_0x3ed61c[_0x3438ce(0x1f4)]=async function(..._0x280e39){const _0x37fd72=_0x3438ce;var _0x48cad0;const _0x11ce84=(_0x48cad0=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x48cad0===void 0x0?void 0x0:_0x48cad0[_0x37fd72(0x1ff)];if(_0x11ce84&&_0x11ce84[_0x37fd72(0x1fa)](_0x37fd72(0x20b))){const _0x26b3b7=await _0x11ce84['getApplicationContext']()['getAsync'](ApitestService_1[_0x37fd72(0x1f2)]),_0x37f5b6=await _0x11ce84[_0x37fd72(0x201)]()[_0x37fd72(0x206)](core_1[_0x37fd72(0x203)]);return _0x37f5b6[_0x37fd72(0x200)]()&&(_0x54da93['filepath']=!![]),await _0x26b3b7[_0x37fd72(0x1f0)](_0x54da93);}return'';},_0x3ed61c;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a6_0x50f8(_0x4e0159,_0x28b26d){var _0x1f44f7=a6_0x1f44();return a6_0x50f8=function(_0x50f8cb,_0x4b622d){_0x50f8cb=_0x50f8cb-0x1be;var _0x339585=_0x1f44f7[_0x50f8cb];return _0x339585;},a6_0x50f8(_0x4e0159,_0x28b26d);}var a6_0x2a17e3=a6_0x50f8;(function(_0x12d83b,_0x45afd1){var _0x4ed702=a6_0x50f8,_0x5f352b=_0x12d83b();while(!![]){try{var _0x47e0b8=parseInt(_0x4ed702(0x1d9))/0x1+parseInt(_0x4ed702(0x1cf))/0x2*(-parseInt(_0x4ed702(0x1d0))/0x3)+parseInt(_0x4ed702(0x1d3))/0x4*(-parseInt(_0x4ed702(0x1bf))/0x5)+-parseInt(_0x4ed702(0x1c7))/0x6+-parseInt(_0x4ed702(0x1d6))/0x7*(-parseInt(_0x4ed702(0x1d2))/0x8)+-parseInt(_0x4ed702(0x1cc))/0x9+parseInt(_0x4ed702(0x1c8))/0xa;if(_0x47e0b8===_0x45afd1)break;else _0x5f352b['push'](_0x5f352b['shift']());}catch(_0x248fc7){_0x5f352b['push'](_0x5f352b['shift']());}}}(a6_0x1f44,0x7d69d));function a6_0x1f44(){var _0x156590=['defineProperty','decorate','__metadata','HEADERS_CHECKCODE','function','2585508GeCZKD','16822950PBDBQN','length','object','design:type','6774507TxCnjJ','ApiError','__esModule','6dmqxJK','880017cjOoke','__decorate','8jzWARY','1828RcegQo','请使用正确的设备','HEADERS_LACK','4704203dhqgZS','网络繁忙,请稍后重试','HEADERS_DEVICE','627015hamTOd','TIMEOUT','metadata','4420kjhJPQ','请求头信息不完整','HEADERS_SIGNATURE'];a6_0x1f44=function(){return _0x156590;};return a6_0x1f44();}var __decorate=this&&this[a6_0x2a17e3(0x1d1)]||function(_0x22babd,_0x30860a,_0x5b5830,_0x34dce5){var _0x333774=a6_0x2a17e3,_0x37effe=arguments['length'],_0x29738c=_0x37effe<0x3?_0x30860a:_0x34dce5===null?_0x34dce5=Object['getOwnPropertyDescriptor'](_0x30860a,_0x5b5830):_0x34dce5,_0x3597ce;if(typeof Reflect==='object'&&typeof Reflect[_0x333774(0x1c3)]===_0x333774(0x1c6))_0x29738c=Reflect[_0x333774(0x1c3)](_0x22babd,_0x30860a,_0x5b5830,_0x34dce5);else{for(var _0x87ec8=_0x22babd[_0x333774(0x1c9)]-0x1;_0x87ec8>=0x0;_0x87ec8--)if(_0x3597ce=_0x22babd[_0x87ec8])_0x29738c=(_0x37effe<0x3?_0x3597ce(_0x29738c):_0x37effe>0x3?_0x3597ce(_0x30860a,_0x5b5830,_0x29738c):_0x3597ce(_0x30860a,_0x5b5830))||_0x29738c;}return _0x37effe>0x3&&_0x29738c&&Object['defineProperty'](_0x30860a,_0x5b5830,_0x29738c),_0x29738c;},__metadata=this&&this[a6_0x2a17e3(0x1c4)]||function(_0x3dd399,_0x2810a9){var _0x249faf=a6_0x2a17e3;if(typeof Reflect===_0x249faf(0x1ca)&&typeof Reflect[_0x249faf(0x1be)]===_0x249faf(0x1c6))return Reflect[_0x249faf(0x1be)](_0x3dd399,_0x2810a9);};Object[a6_0x2a17e3(0x1c2)](exports,a6_0x2a17e3(0x1ce),{'value':!![]}),exports[a6_0x2a17e3(0x1cd)]=void 0x0;class ApiError{}ApiError[a6_0x2a17e3(0x1da)]=0x3d7e31,ApiError[a6_0x2a17e3(0x1d5)]=0x3d7e32,ApiError[a6_0x2a17e3(0x1d8)]=0x3d7e33,ApiError['HEADERS_CHECKCODE']=0x3d7e34,ApiError['HEADERS_SIGNATURE']=0x3d7e35,__decorate([AnnErrorMsg(a6_0x2a17e3(0x1d7)),__metadata(a6_0x2a17e3(0x1cb),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x2a17e3(0x1c0)),__metadata(a6_0x2a17e3(0x1cb),Object)],ApiError,a6_0x2a17e3(0x1d5),void 0x0),__decorate([AnnErrorMsg(a6_0x2a17e3(0x1d4)),__metadata(a6_0x2a17e3(0x1cb),Object)],ApiError,a6_0x2a17e3(0x1d8),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x2a17e3(0x1cb),Object)],ApiError,a6_0x2a17e3(0x1c5),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x2a17e3(0x1cb),Object)],ApiError,a6_0x2a17e3(0x1c1),void 0x0),exports[a6_0x2a17e3(0x1cd)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x25159e=a7_0x4f4b;(function(_0x3b0fbe,_0x39c87e){const _0x2a2b17=a7_0x4f4b,_0x355b8f=_0x3b0fbe();while(!![]){try{const _0x56823c=-parseInt(_0x2a2b17(0x13e))/0x1*(-parseInt(_0x2a2b17(0x143))/0x2)+-parseInt(_0x2a2b17(0x144))/0x3*(parseInt(_0x2a2b17(0x14b))/0x4)+-parseInt(_0x2a2b17(0x139))/0x5*(parseInt(_0x2a2b17(0x146))/0x6)+-parseInt(_0x2a2b17(0x13d))/0x7+parseInt(_0x2a2b17(0x145))/0x8+parseInt(_0x2a2b17(0x142))/0x9*(-parseInt(_0x2a2b17(0x141))/0xa)+parseInt(_0x2a2b17(0x140))/0xb*(parseInt(_0x2a2b17(0x147))/0xc);if(_0x56823c===_0x39c87e)break;else _0x355b8f['push'](_0x355b8f['shift']());}catch(_0x375a3e){_0x355b8f['push'](_0x355b8f['shift']());}}}(a7_0x5d2c,0x2a7e0));function a7_0x4f4b(_0x3b8d7b,_0x5cac97){const _0x5d2c5a=a7_0x5d2c();return a7_0x4f4b=function(_0x4f4b04,_0xe7c277){_0x4f4b04=_0x4f4b04-0x139;let _0x4e82b7=_0x5d2c5a[_0x4f4b04];return _0x4e82b7;},a7_0x4f4b(_0x3b8d7b,_0x5cac97);}Object[a7_0x25159e(0x149)](exports,'__esModule',{'value':!![]}),exports[a7_0x25159e(0x13f)]=void 0x0;function a7_0x5d2c(){const _0x171eb1=['23639GAgYBy','getAppsConfig','33EJhNgg','10GRqhzP','2734749yyZogS','2cXUHVx','786HKhkbF','456864OoSFZa','6JKpHAs','2859276uOWfKi','@midwayjs/core','defineProperty','get','2476amfOhx','370085Bfcgpy','../types/action','AppsConfigTmp','getClassMetadata','570234DspLLW'];a7_0x5d2c=function(){return _0x171eb1;};return a7_0x5d2c();}const core_1=require(a7_0x25159e(0x148)),action_1=require(a7_0x25159e(0x13a));function getAppsConfig(_0xd4034e){const _0x5b02c8=a7_0x25159e,_0x59ffce=(0x0,core_1[_0x5b02c8(0x13c)])(action_1['APPSCONFIG_KEY'],action_1[_0x5b02c8(0x13b)])||{};return _0xd4034e?lodash[_0x5b02c8(0x14a)](_0x59ffce,_0xd4034e):_0x59ffce;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x5a5c98=a8_0x2733;function a8_0x2ebe(){const _0x5d61ff=['39bhgUwW','Boolean','join','header','function','__esModule','RouteParamTypes','request','279ZwIPbi','/static/apitest','INJECT_CUSTOM_PARAM','method','492iRuFju','get','key','2pBoHaM','10wcSJeI','File','routerOptions','requestMethod','required','routes','getMethodParamTypes','static/apitest','@midwayjs/core','concat','query','type','lodash','items','flags.presence','12488sbTblC','allow','Number','noreq','length','summary','string','pprefix','flags.description','getClassExtendedMetadata','658968fkofXr','description','propertyData','prefix','1211ZchiHn','FILESSTREAM','filepath','../types/action','indexOf','flags.default','filter','getClassMetadata','3826942PILAZT','array','listModule','file','FILESTREAM','WEB_ROUTER_PARAM_KEY','PARAM','startsWith','describe','文件上传-','module','1070zZsUxl','isArray','tagName','body','log','limit','metadata','push','67177xzfnnZ','BODY','3wwdipO','ACTION_KEY','只允许:[','flags.label','boolean','rules','String','getRoutes','children','parameterIndex','807788Mdmxhv','name','args','route','ACTION_ROUTE_KEY','215395iNfIcH','QUERY','default','number','HEADERS','title','max','find','object','min'];a8_0x2ebe=function(){return _0x5d61ff;};return a8_0x2ebe();}(function(_0x15ca1b,_0x32d1d5){const _0x22bbbe=a8_0x2733,_0x5ada6b=_0x15ca1b();while(!![]){try{const _0x5ad1b6=parseInt(_0x22bbbe(0xe3))/0x1*(-parseInt(_0x22bbbe(0x99))/0x2)+parseInt(_0x22bbbe(0xd4))/0x3*(-parseInt(_0x22bbbe(0xde))/0x4)+parseInt(_0x22bbbe(0x9a))/0x5*(-parseInt(_0x22bbbe(0xb3))/0x6)+-parseInt(_0x22bbbe(0xb7))/0x7*(parseInt(_0x22bbbe(0xa9))/0x8)+-parseInt(_0x22bbbe(0x92))/0x9*(parseInt(_0x22bbbe(0xca))/0xa)+parseInt(_0x22bbbe(0xd2))/0xb*(parseInt(_0x22bbbe(0x96))/0xc)+parseInt(_0x22bbbe(0x8a))/0xd*(parseInt(_0x22bbbe(0xbf))/0xe);if(_0x5ad1b6===_0x32d1d5)break;else _0x5ada6b['push'](_0x5ada6b['shift']());}catch(_0x50f778){_0x5ada6b['push'](_0x5ada6b['shift']());}}}(a8_0x2ebe,0x2714e));Object['defineProperty'](exports,a8_0x5a5c98(0x8f),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x5a5c98(0xa6)),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x5a5c98(0xa2)),core_2=require('@midwayjs/core'),core_3=require(a8_0x5a5c98(0xa2)),action_1=require(a8_0x5a5c98(0xba));function getRoutes(_0x39dbc8={'prefix':'/','module':![]}){const _0x3e2e7c=a8_0x5a5c98;var _0x1813e1,_0x347aae;const _0x2cc85c=(0x0,core_3[_0x3e2e7c(0xc1)])(action_1['ACTION_KEY']),_0x454e8f={},_0x1974ee=Array[_0x3e2e7c(0xcb)](_0x39dbc8[_0x3e2e7c(0xbd)]||[])?_0x39dbc8[_0x3e2e7c(0xbd)]||[]:[_0x39dbc8['filter']];_0x8fd63c:for(const _0x168319 of _0x2cc85c){let _0x5cbb3a=(0x0,core_3[_0x3e2e7c(0xbe)])(action_1[_0x3e2e7c(0xd5)],_0x168319),_0x2a46b2=(0x0,core_3[_0x3e2e7c(0xbe)])(action_1[_0x3e2e7c(0xe2)],_0x168319);if(_0x5cbb3a&&_0x2a46b2){let _0x231b71=_0x5cbb3a['prefix'],_0x2e3354={};if(_0x39dbc8['module']&&(0x0,lodash_1[_0x3e2e7c(0x97)])(_0x5cbb3a,_0x3e2e7c(0xc9),![])!=_0x39dbc8[_0x3e2e7c(0xc9)])continue _0x8fd63c;else{if(_0x39dbc8[_0x3e2e7c(0xc9)]===![]&&!!(0x0,lodash_1[_0x3e2e7c(0x97)])(_0x5cbb3a,'module',null))continue _0x8fd63c;}if(_0x39dbc8[_0x3e2e7c(0xb6)]&&!_0x231b71[_0x3e2e7c(0xc6)](_0x39dbc8['prefix']))continue _0x8fd63c;_0x231b71!=='/'?(_0x2e3354[_0x3e2e7c(0xae)]=(_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a['routerOptions'][_0x3e2e7c(0xcc)])||(/^\//['test'](_0x231b71)?_0x231b71['split']('/')[0x1]:_0x231b71),_0x2e3354[_0x3e2e7c(0xb4)]=(_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a[_0x3e2e7c(0x9c)][_0x3e2e7c(0xb4)])||_0x2e3354[_0x3e2e7c(0xae)],_0x2e3354[_0x3e2e7c(0x9f)]=[]):(_0x2e3354['summary']=(_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a[_0x3e2e7c(0x9c)][_0x3e2e7c(0xcc)])||_0x3e2e7c(0x82),_0x2e3354['description']=(_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a['routerOptions'][_0x3e2e7c(0xb4)])||'',_0x2e3354[_0x3e2e7c(0x9f)]=[]);_0x39dbc8['filepath']&&(_0x2e3354[_0x3e2e7c(0xb9)]=_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a[_0x3e2e7c(0xb9)]);(_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a[_0x3e2e7c(0xb0)])&&(_0x2e3354['prefix']=_0x5cbb3a['pprefix']);(_0x5cbb3a===null||_0x5cbb3a===void 0x0?void 0x0:_0x5cbb3a[_0x3e2e7c(0xc9)])&&(_0x2e3354[_0x3e2e7c(0xc9)]=_0x5cbb3a[_0x3e2e7c(0xc9)]);let _0x1f0c0d=(0x0,core_3['getClassMetadata'])(core_2[_0x3e2e7c(0x94)],_0x168319)||{};if(typeof _0x2a46b2[Symbol['iterator']]===_0x3e2e7c(0x8e))for(let _0x209549 of _0x2a46b2){let _0x146cbb={};_0x146cbb['method']=_0x209549[_0x3e2e7c(0x9d)],_0x146cbb[_0x3e2e7c(0xe1)]=(_0x231b71+_0x209549['path'])['replace'](/\/{1,}/,'/'),_0x146cbb['summary']=(_0x209549===null||_0x209549===void 0x0?void 0x0:_0x209549['routerName'])||_0x2e3354['summary']||_0x3e2e7c(0x82),_0x146cbb['description']=(_0x209549===null||_0x209549===void 0x0?void 0x0:_0x209549[_0x3e2e7c(0xb4)])||'',_0x146cbb[_0x3e2e7c(0x91)]=[];if(!(0x0,lodash_1[_0x3e2e7c(0xc6)])(_0x146cbb['route'],_0x3e2e7c(0xa1))&&!(0x0,lodash_1['startsWith'])(_0x146cbb[_0x3e2e7c(0xe1)],_0x3e2e7c(0x93))&&_0x1974ee['indexOf'](_0x146cbb[_0x3e2e7c(0xe1)])===-0x1){if(!(_0x39dbc8===null||_0x39dbc8===void 0x0?void 0x0:_0x39dbc8[_0x3e2e7c(0xac)])){let _0x4d399c=(0x0,core_3[_0x3e2e7c(0xa0)])(new _0x168319(),_0x209549[_0x3e2e7c(0x95)]);for(const _0x2becbe in _0x4d399c){let _0x48e629=(_0x1813e1=_0x1f0c0d[_0x209549['method']])===null||_0x1813e1===void 0x0?void 0x0:_0x1813e1[_0x3e2e7c(0x87)](_0x790d25=>_0x790d25[_0x3e2e7c(0xdd)]==_0x2becbe&&_0x790d25[_0x3e2e7c(0x98)]===core_2[_0x3e2e7c(0xc4)]&&(_0x790d25===null||_0x790d25===void 0x0?void 0x0:_0x790d25['metadata']));if(_0x48e629===null||_0x48e629===void 0x0?void 0x0:_0x48e629['metadata']){let _0x2fac77=convertTypeToString(_0x48e629['metadata'][_0x3e2e7c(0xa5)]||0x0);if([_0x3e2e7c(0xa4),_0x3e2e7c(0xcd)]['indexOf'](_0x2fac77)!=-0x1&&_0x48e629[_0x3e2e7c(0xd0)][_0x3e2e7c(0xb5)][_0x3e2e7c(0xbb)](':')==-0x1&&!_0x146cbb[_0x3e2e7c(0x91)][_0x3e2e7c(0x87)](_0x5df22f=>_0x5df22f[_0x3e2e7c(0x98)]==_0x48e629['metadata']['propertyData']))_0x146cbb[_0x3e2e7c(0x91)][_0x3e2e7c(0xd1)]({'key':_0x48e629[_0x3e2e7c(0xd0)]['propertyData'],'title':_0x48e629[_0x3e2e7c(0xd0)][_0x3e2e7c(0xb5)],'type':convertSchemaType(_0x4d399c[_0x48e629[_0x3e2e7c(0xdd)]][_0x3e2e7c(0xdf)]),'required':![],'default':'','desc':''});else{if(_0x2fac77==_0x3e2e7c(0xc2)){let _0x2ec65b=((_0x347aae=_0x48e629===null||_0x48e629===void 0x0?void 0x0:_0x48e629[_0x3e2e7c(0xd0)])===null||_0x347aae===void 0x0?void 0x0:_0x347aae[_0x3e2e7c(0xb5)])||_0x3e2e7c(0xc2);_0x2ec65b[_0x3e2e7c(0xbb)](':')==-0x1&&!_0x146cbb[_0x3e2e7c(0x91)][_0x3e2e7c(0x87)](_0x40de6b=>_0x40de6b[_0x3e2e7c(0x98)]==_0x2ec65b&&_0x40de6b[_0x3e2e7c(0xa5)]==_0x3e2e7c(0xc2))&&_0x146cbb[_0x3e2e7c(0x91)][_0x3e2e7c(0xd1)]({'key':_0x2ec65b,'title':_0x3e2e7c(0xc8)+_0x2ec65b,'type':_0x3e2e7c(0xc2),'required':!![],'default':'','desc':''});}}}else{const _0x3e4bdc=(0x0,core_3[_0x3e2e7c(0xb2)])(validator_1['RULES_KEY'],_0x4d399c[_0x2becbe]);_0x3e4bdc&&_0x146cbb[_0x3e2e7c(0x91)][_0x3e2e7c(0xd1)](...getJoiRequest(_0x3e4bdc));}}}_0x2e3354[_0x3e2e7c(0x9f)][_0x3e2e7c(0xd1)](_0x146cbb);}}if(_0x2e3354[_0x3e2e7c(0x9f)][_0x3e2e7c(0xad)]>0x0){let _0x2f8173=_0x454e8f[_0x231b71];_0x2f8173?(_0x2f8173[_0x3e2e7c(0xae)]!=_0x2e3354['summary']&&(_0x2f8173['summary']=_0x2f8173['summary']+','+_0x2e3354[_0x3e2e7c(0xae)]),_0x2f8173[_0x3e2e7c(0xb4)]!=_0x2e3354['description']&&(_0x2f8173[_0x3e2e7c(0xb4)]=_0x2f8173['description']+','+_0x2e3354[_0x3e2e7c(0xb4)]),_0x2f8173[_0x3e2e7c(0x9f)]=_0x2f8173[_0x3e2e7c(0x9f)][_0x3e2e7c(0xa3)](_0x2e3354[_0x3e2e7c(0x9f)]),_0x454e8f[_0x231b71]=_0x2f8173):_0x454e8f[_0x231b71]=_0x2e3354;}}}return _0x454e8f;}exports[a8_0x5a5c98(0xdb)]=getRoutes;function a8_0x2733(_0x2c1158,_0x18fd15){const _0x2ebe5d=a8_0x2ebe();return a8_0x2733=function(_0x273340,_0x2ee53e){_0x273340=_0x273340-0x81;let _0x33119c=_0x2ebe5d[_0x273340];return _0x33119c;},a8_0x2733(_0x2c1158,_0x18fd15);}function getJoiRequest(_0x35cdab){const _0x20a098=a8_0x5a5c98,_0x58d24e=[];for(let _0x5b9fa4 in _0x35cdab){const _0x5630b6={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x352a02=typeof _0x35cdab[_0x5b9fa4][_0x20a098(0xc7)]==_0x20a098(0x8e)?_0x35cdab[_0x5b9fa4][_0x20a098(0xc7)]():_0x35cdab[_0x5b9fa4];_0x5630b6[_0x20a098(0x98)]=_0x5b9fa4,_0x5630b6[_0x20a098(0xa5)]=_0x352a02[_0x20a098(0xa5)],_0x5630b6['title']=(0x0,lodash_1[_0x20a098(0x97)])(_0x352a02,_0x20a098(0xd7),_0x5b9fa4),_0x5630b6[_0x20a098(0x82)]=(0x0,lodash_1[_0x20a098(0x97)])(_0x352a02,_0x20a098(0xbc),''),_0x5630b6['required']=(0x0,lodash_1['get'])(_0x352a02,_0x20a098(0xa8),'')==_0x20a098(0x9e),_0x5630b6[_0x20a098(0xb4)]=(0x0,lodash_1[_0x20a098(0x97)])(_0x352a02,_0x20a098(0xb1),'');if(_0x352a02[_0x20a098(0xa5)]==_0x20a098(0x88))_0x5630b6[_0x20a098(0xdc)]=getJoiRequest(_0x352a02['keys']);else _0x352a02[_0x20a098(0xa5)]==_0x20a098(0xc0)&&_0x352a02['items']&&Array[_0x20a098(0xcb)](_0x352a02[_0x20a098(0xa7)])&&_0x352a02[_0x20a098(0xa7)][0x0]&&console[_0x20a098(0xce)](_0x5b9fa4+'-array',_0x352a02);_0x352a02[_0x20a098(0xaa)]&&Array[_0x20a098(0xcb)](_0x352a02[_0x20a098(0xaa)])&&_0x352a02['allow']['length']>0x0&&(_0x5630b6[_0x20a098(0xb4)]=_0x20a098(0xd6)+_0x352a02[_0x20a098(0xaa)][_0x20a098(0x8c)](',')+'];'+_0x5630b6['description']);if(_0x5630b6['key']&&_0x5630b6[_0x20a098(0xa5)]){const _0x7947d1={};for(const _0x49b2b1 of _0x352a02['rules']||[]){if(_0x49b2b1['name']==='min'&&_0x49b2b1[_0x20a098(0xe0)])_0x7947d1[_0x20a098(0x89)]=_0x49b2b1['args'][_0x20a098(0xcf)];else _0x49b2b1['name']===_0x20a098(0x86)&&(_0x7947d1[_0x20a098(0x86)]=_0x49b2b1[_0x20a098(0xe0)][_0x20a098(0xcf)]);}_0x5630b6[_0x20a098(0xd9)]=_0x7947d1;}_0x5630b6['key']&&_0x5630b6[_0x20a098(0x85)]&&_0x58d24e[_0x20a098(0xd1)](_0x5630b6);}return _0x58d24e;}function convertSchemaType(_0x4d5343){const _0xd7ef30=a8_0x5a5c98;switch(_0x4d5343){case'Object':return _0xd7ef30(0x88);case _0xd7ef30(0x8b):return _0xd7ef30(0xd8);case _0xd7ef30(0xab):return _0xd7ef30(0x83);case _0xd7ef30(0xda):return'string';case _0xd7ef30(0x9b):return _0xd7ef30(0xc2);default:return _0xd7ef30(0xaf);}}function convertTypeToString(_0x40952e){const _0x1cf216=a8_0x5a5c98;switch(_0x40952e){case core_1[_0x1cf216(0x90)][_0x1cf216(0x84)]:return'header';case core_1[_0x1cf216(0x90)][_0x1cf216(0x81)]:return _0x1cf216(0xa4);case core_1[_0x1cf216(0x90)][_0x1cf216(0xc5)]:return'path';case core_1[_0x1cf216(0x90)][_0x1cf216(0xd3)]:return _0x1cf216(0xcd);case core_1['RouteParamTypes']['FIELDS']:case core_1[_0x1cf216(0x90)][_0x1cf216(0xb8)]:case core_1[_0x1cf216(0x90)][_0x1cf216(0xc3)]:return'file';default:return _0x1cf216(0x8d);}}
|
|
1
|
+
'use strict';const a8_0x56c158=a8_0x5918;(function(_0x5b71d4,_0x1bac33){const _0x41132b=a8_0x5918,_0x19e081=_0x5b71d4();while(!![]){try{const _0x16b51e=-parseInt(_0x41132b(0x139))/0x1*(parseInt(_0x41132b(0x113))/0x2)+parseInt(_0x41132b(0x133))/0x3*(parseInt(_0x41132b(0x123))/0x4)+parseInt(_0x41132b(0x109))/0x5+-parseInt(_0x41132b(0x13b))/0x6*(-parseInt(_0x41132b(0x14e))/0x7)+parseInt(_0x41132b(0x10d))/0x8*(parseInt(_0x41132b(0x14a))/0x9)+-parseInt(_0x41132b(0x131))/0xa*(-parseInt(_0x41132b(0x124))/0xb)+parseInt(_0x41132b(0x10e))/0xc*(-parseInt(_0x41132b(0x160))/0xd);if(_0x16b51e===_0x1bac33)break;else _0x19e081['push'](_0x19e081['shift']());}catch(_0x2709de){_0x19e081['push'](_0x19e081['shift']());}}}(a8_0x4615,0xe89da));function a8_0x4615(){const _0x3eae59=['getClassMetadata','prefix','tagName','requestMethod','static/apitest','route','529952TmRjQX','121ZypQXh','QUERY','number','min','lodash','File','routerName','Object','String','ACTION_KEY','split','header','name','799870HQbWNE','items','3dvjqzB','test','BODY','__esModule','flags.description','find','3581rNbNWP','getRoutes','6wKoyFA','summary','getClassExtendedMetadata','args','FILESSTREAM','allow','parameterIndex','join','concat','defineProperty','Boolean','key','request','../types/action','RULES_KEY','1242OXeFew','只允许:[','body','boolean','2325911YRKgJo','startsWith','array','pprefix','indexOf','routerOptions','listModule','length','method','title','string','rules','description','push','RouteParamTypes','children','/static/apitest','default','1677eBmsWM','metadata','limit','replace','describe','function','type','noreq','keys','module','file','path','561210jmceXr','log','routes','filepath','29912UrfcYP','39924qjPnEG','flags.label','required','filter','isArray','330JgPeah','Number','FILESTREAM','flags.default','@midwayjs/core','propertyData','get','max','object','文件上传-'];a8_0x4615=function(){return _0x3eae59;};return a8_0x4615();}Object[a8_0x56c158(0x144)](exports,a8_0x56c158(0x136),{'value':!![]}),exports[a8_0x56c158(0x13a)]=void 0x0;const lodash_1=require(a8_0x56c158(0x128)),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x56c158(0x117)),core_2=require(a8_0x56c158(0x117)),core_3=require('@midwayjs/core'),action_1=require(a8_0x56c158(0x148));function getRoutes(_0xd86c64={'prefix':'/','module':![]}){const _0x507d2f=a8_0x56c158;var _0x258886,_0x1c28e3;const _0xd82ba2=(0x0,core_3[_0x507d2f(0x154)])(action_1['ACTION_KEY']),_0x2cce1d={},_0x1b8125=Array[_0x507d2f(0x112)](_0xd86c64['filter']||[])?_0xd86c64[_0x507d2f(0x111)]||[]:[_0xd86c64[_0x507d2f(0x111)]];_0x1ab5a2:for(const _0x16c021 of _0xd82ba2){let _0x4dad84=(0x0,core_3[_0x507d2f(0x11d)])(action_1[_0x507d2f(0x12d)],_0x16c021),_0xdfc162=(0x0,core_3[_0x507d2f(0x11d)])(action_1['ACTION_ROUTE_KEY'],_0x16c021);if(_0x4dad84&&_0xdfc162){let _0x14a202=_0x4dad84[_0x507d2f(0x11e)],_0xeda6b7={};if(_0xd86c64['module']&&(0x0,lodash_1[_0x507d2f(0x119)])(_0x4dad84,_0x507d2f(0x106),![])!=_0xd86c64['module'])continue _0x1ab5a2;else{if(_0xd86c64[_0x507d2f(0x106)]===![]&&!!(0x0,lodash_1['get'])(_0x4dad84,_0x507d2f(0x106),null))continue _0x1ab5a2;}if(_0xd86c64[_0x507d2f(0x11e)]&&!_0x14a202[_0x507d2f(0x14f)](_0xd86c64['prefix']))continue _0x1ab5a2;_0x14a202!=='/'?(_0xeda6b7[_0x507d2f(0x13c)]=(_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84[_0x507d2f(0x153)][_0x507d2f(0x11f)])||(/^\//[_0x507d2f(0x134)](_0x14a202)?_0x14a202[_0x507d2f(0x12e)]('/')[0x1]:_0x14a202),_0xeda6b7['description']=(_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84[_0x507d2f(0x153)][_0x507d2f(0x15a)])||_0xeda6b7['summary'],_0xeda6b7['routes']=[]):(_0xeda6b7[_0x507d2f(0x13c)]=(_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84[_0x507d2f(0x153)][_0x507d2f(0x11f)])||_0x507d2f(0x15f),_0xeda6b7[_0x507d2f(0x15a)]=(_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84[_0x507d2f(0x153)][_0x507d2f(0x15a)])||'',_0xeda6b7[_0x507d2f(0x10b)]=[]);_0xd86c64['filepath']&&(_0xeda6b7[_0x507d2f(0x10c)]=_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84['filepath']);(_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84[_0x507d2f(0x151)])&&(_0xeda6b7['prefix']=_0x4dad84[_0x507d2f(0x151)]);(_0x4dad84===null||_0x4dad84===void 0x0?void 0x0:_0x4dad84[_0x507d2f(0x106)])&&(_0xeda6b7[_0x507d2f(0x106)]=_0x4dad84[_0x507d2f(0x106)]);let _0x534b9f=(0x0,core_3[_0x507d2f(0x11d)])(core_2['INJECT_CUSTOM_PARAM'],_0x16c021)||{};if(typeof _0xdfc162[Symbol['iterator']]==='function')for(let _0x462959 of _0xdfc162){let _0x1ec618={};_0x1ec618[_0x507d2f(0x156)]=_0x462959[_0x507d2f(0x120)],_0x1ec618[_0x507d2f(0x122)]=(_0x14a202+_0x462959[_0x507d2f(0x108)])[_0x507d2f(0x163)](/\/{1,}/,'/'),_0x1ec618[_0x507d2f(0x13c)]=(_0x462959===null||_0x462959===void 0x0?void 0x0:_0x462959[_0x507d2f(0x12a)])||_0xeda6b7[_0x507d2f(0x13c)]||_0x507d2f(0x15f),_0x1ec618[_0x507d2f(0x15a)]=(_0x462959===null||_0x462959===void 0x0?void 0x0:_0x462959[_0x507d2f(0x15a)])||'',_0x1ec618[_0x507d2f(0x147)]=[];if(!(0x0,lodash_1['startsWith'])(_0x1ec618[_0x507d2f(0x122)],_0x507d2f(0x121))&&!(0x0,lodash_1[_0x507d2f(0x14f)])(_0x1ec618['route'],_0x507d2f(0x15e))&&_0x1b8125[_0x507d2f(0x152)](_0x1ec618[_0x507d2f(0x122)])===-0x1){if(!(_0xd86c64===null||_0xd86c64===void 0x0?void 0x0:_0xd86c64[_0x507d2f(0x104)])){let _0x1efa86=(0x0,core_3['getMethodParamTypes'])(new _0x16c021(),_0x462959['method']);for(const _0x5ac819 in _0x1efa86){let _0xc37d80=(_0x258886=_0x534b9f[_0x462959[_0x507d2f(0x156)]])===null||_0x258886===void 0x0?void 0x0:_0x258886[_0x507d2f(0x138)](_0x1fe79d=>_0x1fe79d[_0x507d2f(0x141)]==_0x5ac819&&_0x1fe79d[_0x507d2f(0x146)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x1fe79d===null||_0x1fe79d===void 0x0?void 0x0:_0x1fe79d[_0x507d2f(0x161)]));if(_0xc37d80===null||_0xc37d80===void 0x0?void 0x0:_0xc37d80[_0x507d2f(0x161)]){let _0x338d5c=convertTypeToString(_0xc37d80[_0x507d2f(0x161)][_0x507d2f(0x166)]||0x0);if(['query',_0x507d2f(0x14c)]['indexOf'](_0x338d5c)!=-0x1&&_0xc37d80[_0x507d2f(0x161)][_0x507d2f(0x118)][_0x507d2f(0x152)](':')==-0x1&&!_0x1ec618[_0x507d2f(0x147)][_0x507d2f(0x138)](_0x4084f0=>_0x4084f0[_0x507d2f(0x146)]==_0xc37d80[_0x507d2f(0x161)][_0x507d2f(0x118)]))_0x1ec618[_0x507d2f(0x147)][_0x507d2f(0x15b)]({'key':_0xc37d80[_0x507d2f(0x161)][_0x507d2f(0x118)],'title':_0xc37d80['metadata'][_0x507d2f(0x118)],'type':convertSchemaType(_0x1efa86[_0xc37d80[_0x507d2f(0x141)]]['name']),'required':![],'default':'','desc':''});else{if(_0x338d5c==_0x507d2f(0x107)){let _0x141003=((_0x1c28e3=_0xc37d80===null||_0xc37d80===void 0x0?void 0x0:_0xc37d80[_0x507d2f(0x161)])===null||_0x1c28e3===void 0x0?void 0x0:_0x1c28e3[_0x507d2f(0x118)])||_0x507d2f(0x107);_0x141003[_0x507d2f(0x152)](':')==-0x1&&!_0x1ec618[_0x507d2f(0x147)][_0x507d2f(0x138)](_0x512c77=>_0x512c77[_0x507d2f(0x146)]==_0x141003&&_0x512c77['type']==_0x507d2f(0x107))&&_0x1ec618['request'][_0x507d2f(0x15b)]({'key':_0x141003,'title':_0x507d2f(0x11c)+_0x141003,'type':_0x507d2f(0x107),'required':!![],'default':'','desc':''});}}}else{const _0x3a532d=(0x0,core_3[_0x507d2f(0x13d)])(validator_1[_0x507d2f(0x149)],_0x1efa86[_0x5ac819]);_0x3a532d&&_0x1ec618['request'][_0x507d2f(0x15b)](...getJoiRequest(_0x3a532d));}}}_0xeda6b7[_0x507d2f(0x10b)][_0x507d2f(0x15b)](_0x1ec618);}}if(_0xeda6b7['routes'][_0x507d2f(0x155)]>0x0){let _0x15b082=_0x2cce1d[_0x14a202];_0x15b082?(_0x15b082['summary']!=_0xeda6b7[_0x507d2f(0x13c)]&&(_0x15b082[_0x507d2f(0x13c)]=_0x15b082[_0x507d2f(0x13c)]+','+_0xeda6b7[_0x507d2f(0x13c)]),_0x15b082[_0x507d2f(0x15a)]!=_0xeda6b7[_0x507d2f(0x15a)]&&(_0x15b082[_0x507d2f(0x15a)]=_0x15b082[_0x507d2f(0x15a)]+','+_0xeda6b7[_0x507d2f(0x15a)]),_0x15b082[_0x507d2f(0x10b)]=_0x15b082[_0x507d2f(0x10b)][_0x507d2f(0x143)](_0xeda6b7['routes']),_0x2cce1d[_0x14a202]=_0x15b082):_0x2cce1d[_0x14a202]=_0xeda6b7;}}}return _0x2cce1d;}exports['getRoutes']=getRoutes;function a8_0x5918(_0x5bd35d,_0x501c1b){const _0x461534=a8_0x4615();return a8_0x5918=function(_0x591842,_0x1f4a97){_0x591842=_0x591842-0x104;let _0x4fb671=_0x461534[_0x591842];return _0x4fb671;},a8_0x5918(_0x5bd35d,_0x501c1b);}function getJoiRequest(_0x1d883a){const _0x49aa79=a8_0x56c158,_0x292a87=[];for(let _0x10b7f6 in _0x1d883a){const _0x47d609={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3560a5=typeof _0x1d883a[_0x10b7f6][_0x49aa79(0x164)]==_0x49aa79(0x165)?_0x1d883a[_0x10b7f6][_0x49aa79(0x164)]():_0x1d883a[_0x10b7f6];_0x47d609[_0x49aa79(0x146)]=_0x10b7f6,_0x47d609[_0x49aa79(0x166)]=_0x3560a5['type'],_0x47d609[_0x49aa79(0x157)]=(0x0,lodash_1[_0x49aa79(0x119)])(_0x3560a5,_0x49aa79(0x10f),_0x10b7f6),_0x47d609['default']=(0x0,lodash_1[_0x49aa79(0x119)])(_0x3560a5,_0x49aa79(0x116),''),_0x47d609[_0x49aa79(0x110)]=(0x0,lodash_1[_0x49aa79(0x119)])(_0x3560a5,'flags.presence','')==_0x49aa79(0x110),_0x47d609['description']=(0x0,lodash_1[_0x49aa79(0x119)])(_0x3560a5,_0x49aa79(0x137),'');if(_0x3560a5[_0x49aa79(0x166)]==_0x49aa79(0x11b))_0x47d609[_0x49aa79(0x15d)]=getJoiRequest(_0x3560a5[_0x49aa79(0x105)]);else _0x3560a5['type']==_0x49aa79(0x150)&&_0x3560a5[_0x49aa79(0x132)]&&Array[_0x49aa79(0x112)](_0x3560a5[_0x49aa79(0x132)])&&_0x3560a5[_0x49aa79(0x132)][0x0]&&console[_0x49aa79(0x10a)](_0x10b7f6+'-array',_0x3560a5);_0x3560a5['allow']&&Array[_0x49aa79(0x112)](_0x3560a5[_0x49aa79(0x140)])&&_0x3560a5[_0x49aa79(0x140)][_0x49aa79(0x155)]>0x0&&(_0x47d609[_0x49aa79(0x15a)]=_0x49aa79(0x14b)+_0x3560a5['allow'][_0x49aa79(0x142)](',')+'];'+_0x47d609[_0x49aa79(0x15a)]);if(_0x47d609[_0x49aa79(0x146)]&&_0x47d609[_0x49aa79(0x166)]){const _0x4ff783={};for(const _0x3e9c66 of _0x3560a5[_0x49aa79(0x159)]||[]){if(_0x3e9c66['name']===_0x49aa79(0x127)&&_0x3e9c66[_0x49aa79(0x13e)])_0x4ff783[_0x49aa79(0x127)]=_0x3e9c66['args'][_0x49aa79(0x162)];else _0x3e9c66[_0x49aa79(0x130)]===_0x49aa79(0x11a)&&(_0x4ff783[_0x49aa79(0x11a)]=_0x3e9c66['args'][_0x49aa79(0x162)]);}_0x47d609[_0x49aa79(0x159)]=_0x4ff783;}_0x47d609[_0x49aa79(0x146)]&&_0x47d609['title']&&_0x292a87[_0x49aa79(0x15b)](_0x47d609);}return _0x292a87;}function convertSchemaType(_0x416b65){const _0xafa757=a8_0x56c158;switch(_0x416b65){case _0xafa757(0x12b):return _0xafa757(0x11b);case _0xafa757(0x145):return _0xafa757(0x14d);case _0xafa757(0x114):return _0xafa757(0x126);case _0xafa757(0x12c):return _0xafa757(0x158);case _0xafa757(0x129):return _0xafa757(0x107);default:return _0xafa757(0x158);}}function convertTypeToString(_0x4298c2){const _0x1a5724=a8_0x56c158;switch(_0x4298c2){case core_1['RouteParamTypes']['HEADERS']:return _0x1a5724(0x12f);case core_1['RouteParamTypes'][_0x1a5724(0x125)]:return'query';case core_1[_0x1a5724(0x15c)]['PARAM']:return _0x1a5724(0x108);case core_1[_0x1a5724(0x15c)][_0x1a5724(0x135)]:return _0x1a5724(0x14c);case core_1['RouteParamTypes']['FIELDS']:case core_1[_0x1a5724(0x15c)][_0x1a5724(0x13f)]:case core_1['RouteParamTypes'][_0x1a5724(0x115)]:return'file';default:return _0x1a5724(0x12f);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x319502=a9_0x38ec;(function(_0x4912ea,_0x1f7d3a){var _0x14b8f0=a9_0x38ec,_0x2eeefd=_0x4912ea();while(!![]){try{var _0x5b4389=parseInt(_0x14b8f0(0x126))/0x1+-parseInt(_0x14b8f0(0x124))/0x2*(parseInt(_0x14b8f0(0x13d))/0x3)+parseInt(_0x14b8f0(0x141))/0x4*(-parseInt(_0x14b8f0(0x128))/0x5)+-parseInt(_0x14b8f0(0x145))/0x6*(-parseInt(_0x14b8f0(0x143))/0x7)+parseInt(_0x14b8f0(0x11f))/0x8*(-parseInt(_0x14b8f0(0x118))/0x9)+-parseInt(_0x14b8f0(0x144))/0xa*(parseInt(_0x14b8f0(0x12f))/0xb)+-parseInt(_0x14b8f0(0x114))/0xc*(-parseInt(_0x14b8f0(0x115))/0xd);if(_0x5b4389===_0x1f7d3a)break;else _0x2eeefd['push'](_0x2eeefd['shift']());}catch(_0x5c6e20){_0x2eeefd['push'](_0x2eeefd['shift']());}}}(a9_0x19c0,0xdfdc6));function a9_0x19c0(){var _0x1aca02=['call','default','Param','App','683881KbObkS','Init','ScopeEnum','Scope','ApiService','Body','ValidatorService','ValidatorError','./service/ApitestService','Files','defineProperty','ApiError','EventService','Inject','107427dNFwep','writable','@midwayjs/core','getRoutes','85112ATsoeC','./helper/getRoutes','77NFBXDK','70NFShwV','970350hztDLB','./service/ApiService','getAppsConfig','CacheService','@anncic-api/cache','./service/ExcelService','Query','File','@anncic-api/validator','create','ExcelService','12fyVaYB','7162285AbqucQ','Apitest','Fields','9txfXnc','./decorator/ActionApi','Headers','__createBinding','Logger','get','Provide','7749176wsiWEm','./decorator/Action','Api','prototype','Configuration','64nxncVw','__esModule','1158024FVHqip','Config','5ziQblz','Action','@anncic-api/event'];a9_0x19c0=function(){return _0x1aca02;};return a9_0x19c0();}var __createBinding=this&&this[a9_0x319502(0x11b)]||(Object[a9_0x319502(0x112)]?function(_0x550d68,_0x1e1b4b,_0x3880ba,_0x1b4356){var _0xdafe86=a9_0x319502;if(_0x1b4356===undefined)_0x1b4356=_0x3880ba;var _0x432c6e=Object['getOwnPropertyDescriptor'](_0x1e1b4b,_0x3880ba);(!_0x432c6e||(_0xdafe86(0x11d)in _0x432c6e?!_0x1e1b4b[_0xdafe86(0x125)]:_0x432c6e[_0xdafe86(0x13e)]||_0x432c6e['configurable']))&&(_0x432c6e={'enumerable':!![],'get':function(){return _0x1e1b4b[_0x3880ba];}}),Object['defineProperty'](_0x550d68,_0x1b4356,_0x432c6e);}:function(_0xd3cdc1,_0x2c65aa,_0x23a97f,_0x174fbe){if(_0x174fbe===undefined)_0x174fbe=_0x23a97f;_0xd3cdc1[_0x174fbe]=_0x2c65aa[_0x23a97f];}),__exportStar=this&&this['__exportStar']||function(_0x141c82,_0x55d2da){var _0x211fb0=a9_0x319502;for(var _0x1ea5b9 in _0x141c82)if(_0x1ea5b9!==_0x211fb0(0x12c)&&!Object[_0x211fb0(0x122)]['hasOwnProperty'][_0x211fb0(0x12b)](_0x55d2da,_0x1ea5b9))__createBinding(_0x55d2da,_0x141c82,_0x1ea5b9);};Object[a9_0x319502(0x139)](exports,a9_0x319502(0x125),{'value':!![]}),exports[a9_0x319502(0x147)]=exports['ScopeEnum']=exports[a9_0x319502(0x132)]=exports['Inject']=exports[a9_0x319502(0x11e)]=exports[a9_0x319502(0x11c)]=exports[a9_0x319502(0x127)]=exports[a9_0x319502(0x12e)]=exports['Init']=exports[a9_0x319502(0x11a)]=exports[a9_0x319502(0x10f)]=exports[a9_0x319502(0x12d)]=exports['Body']=exports['Fields']=exports['Files']=exports[a9_0x319502(0x110)]=exports['Configuration']=exports[a9_0x319502(0x135)]=exports[a9_0x319502(0x136)]=exports[a9_0x319502(0x113)]=exports[a9_0x319502(0x133)]=exports[a9_0x319502(0x13b)]=exports[a9_0x319502(0x148)]=exports[a9_0x319502(0x13a)]=exports[a9_0x319502(0x140)]=exports[a9_0x319502(0x116)]=exports['Action']=exports[a9_0x319502(0x121)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a9_0x319502(0x147),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x319502(0x137)),exports);var ActionApi_1=require(a9_0x319502(0x119));Object[a9_0x319502(0x139)](exports,a9_0x319502(0x121),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a9_0x319502(0x120));Object[a9_0x319502(0x139)](exports,a9_0x319502(0x129),{'enumerable':!![],'get':function(){var _0x159e0b=a9_0x319502;return Action_1[_0x159e0b(0x129)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x319502(0x139)](exports,a9_0x319502(0x116),{'enumerable':!![],'get':function(){var _0x3f145f=a9_0x319502;return ActionApitest_1[_0x3f145f(0x116)];}});var getRoutes_1=require(a9_0x319502(0x142));Object['defineProperty'](exports,a9_0x319502(0x140),{'enumerable':!![],'get':function(){var _0x3eb085=a9_0x319502;return getRoutes_1[_0x3eb085(0x140)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x319502(0x139)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x207dfe=a9_0x319502;return ApiError_1[_0x207dfe(0x13a)];}});var cache_1=require(a9_0x319502(0x10d));Object['defineProperty'](exports,a9_0x319502(0x148),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x319502(0x12a));Object[a9_0x319502(0x139)](exports,a9_0x319502(0x13b),{'enumerable':!![],'get':function(){var _0x6f7d9a=a9_0x319502;return event_1[_0x6f7d9a(0x13b)];}});function a9_0x38ec(_0xaeaec6,_0x434a3c){var _0x19c07f=a9_0x19c0();return a9_0x38ec=function(_0x38ecc0,_0x5359af){_0x38ecc0=_0x38ecc0-0x10d;var _0x393fb5=_0x19c07f[_0x38ecc0];return _0x393fb5;},a9_0x38ec(_0xaeaec6,_0x434a3c);}var ApiService_1=require(a9_0x319502(0x146));Object[a9_0x319502(0x139)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x319502(0x10e));Object[a9_0x319502(0x139)](exports,a9_0x319502(0x113),{'enumerable':!![],'get':function(){var _0x326159=a9_0x319502;return ExcelService_1[_0x326159(0x113)];}});var validator_1=require(a9_0x319502(0x111));Object['defineProperty'](exports,a9_0x319502(0x136),{'enumerable':!![],'get':function(){var _0x2b752f=a9_0x319502;return validator_1[_0x2b752f(0x136)];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x135),{'enumerable':!![],'get':function(){var _0x49c37a=a9_0x319502;return validator_1[_0x49c37a(0x135)];}});var configuration_1=require('./configuration');Object[a9_0x319502(0x139)](exports,a9_0x319502(0x123),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a9_0x319502(0x139)](exports,a9_0x319502(0x110),{'enumerable':!![],'get':function(){var _0x5e03f7=a9_0x319502;return core_1[_0x5e03f7(0x110)];}}),Object[a9_0x319502(0x139)](exports,'Files',{'enumerable':!![],'get':function(){var _0x37f21d=a9_0x319502;return core_1[_0x37f21d(0x138)];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x117),{'enumerable':!![],'get':function(){var _0x13ff6c=a9_0x319502;return core_1[_0x13ff6c(0x117)];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x134),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object['defineProperty'](exports,a9_0x319502(0x12d),{'enumerable':!![],'get':function(){var _0x48f595=a9_0x319502;return core_1[_0x48f595(0x12d)];}}),Object['defineProperty'](exports,a9_0x319502(0x10f),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x319502(0x139)](exports,'Headers',{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a9_0x319502(0x139)](exports,'Init',{'enumerable':!![],'get':function(){var _0x3d5d39=a9_0x319502;return core_1[_0x3d5d39(0x130)];}});var core_2=require(a9_0x319502(0x13f));Object['defineProperty'](exports,a9_0x319502(0x12e),{'enumerable':!![],'get':function(){var _0x23b202=a9_0x319502;return core_2[_0x23b202(0x12e)];}}),Object['defineProperty'](exports,a9_0x319502(0x127),{'enumerable':!![],'get':function(){var _0x52a047=a9_0x319502;return core_2[_0x52a047(0x127)];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x11c),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x11e),{'enumerable':!![],'get':function(){var _0x307dae=a9_0x319502;return core_2[_0x307dae(0x11e)];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x13c),{'enumerable':!![],'get':function(){var _0x2bfe57=a9_0x319502;return core_2[_0x2bfe57(0x13c)];}}),Object[a9_0x319502(0x139)](exports,'Scope',{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x319502(0x139)](exports,a9_0x319502(0x131),{'enumerable':!![],'get':function(){var _0x3c9440=a9_0x319502;return core_2[_0x3c9440(0x131)];}}),global[a9_0x319502(0x147)]=getAppsConfig_1[a9_0x319502(0x147)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a10_0x178d1d=a10_0x18a9;function a10_0x515b(){var _0x3d7e63=['fromEntries','requesttime','HEADERS_CHECKCODE','secret=','104274ecEHtn','MD5','object','9754HnGlVm','toString','ScopeEnum','HEADERS_LACK','47815XslQHE','ApiService','../exception/ApiError','缺少头信息:','Scope','getcheck','8470869POaozZ','33173wEFOzn','join','TIMEOUT','design:type','function','getOwnPropertyDescriptor','HEADERS_SIGNATURE','token','177KONHDa','260zVQkwO','now','5bejCFp','secret','__decorate','length','undefined','sort','map','ApiError','password','toLowerCase','1681228PNBMTp','config','checkcode','Provide','push','defineProperty','prototype','475890tKCtdM','devices','decorate','signature','entries','checksign','__esModule','456dawQpL','device','HEADERS_DEVICE','crypto-js'];a10_0x515b=function(){return _0x3d7e63;};return a10_0x515b();}(function(_0x45a31d,_0x51e5e0){var _0x11f34e=a10_0x18a9,_0x2ce667=_0x45a31d();while(!![]){try{var _0x17af94=parseInt(_0x11f34e(0x17c))/0x1+-parseInt(_0x11f34e(0x178))/0x2*(parseInt(_0x11f34e(0x18b))/0x3)+-parseInt(_0x11f34e(0x198))/0x4*(parseInt(_0x11f34e(0x18e))/0x5)+parseInt(_0x11f34e(0x19f))/0x6+parseInt(_0x11f34e(0x183))/0x7*(-parseInt(_0x11f34e(0x16d))/0x8)+parseInt(_0x11f34e(0x175))/0x9*(parseInt(_0x11f34e(0x18c))/0xa)+parseInt(_0x11f34e(0x182))/0xb;if(_0x17af94===_0x51e5e0)break;else _0x2ce667['push'](_0x2ce667['shift']());}catch(_0x10b42c){_0x2ce667['push'](_0x2ce667['shift']());}}}(a10_0x515b,0x35c70));var __decorate=this&&this[a10_0x178d1d(0x190)]||function(_0x3f52ad,_0x4571e8,_0x4585ca,_0x500bb4){var _0x23c5ed=a10_0x178d1d,_0x961881=arguments[_0x23c5ed(0x191)],_0x5cf2fa=_0x961881<0x3?_0x4571e8:_0x500bb4===null?_0x500bb4=Object[_0x23c5ed(0x188)](_0x4571e8,_0x4585ca):_0x500bb4,_0x38810b;if(typeof Reflect===_0x23c5ed(0x177)&&typeof Reflect[_0x23c5ed(0x168)]===_0x23c5ed(0x187))_0x5cf2fa=Reflect[_0x23c5ed(0x168)](_0x3f52ad,_0x4571e8,_0x4585ca,_0x500bb4);else{for(var _0x38fdd1=_0x3f52ad[_0x23c5ed(0x191)]-0x1;_0x38fdd1>=0x0;_0x38fdd1--)if(_0x38810b=_0x3f52ad[_0x38fdd1])_0x5cf2fa=(_0x961881<0x3?_0x38810b(_0x5cf2fa):_0x961881>0x3?_0x38810b(_0x4571e8,_0x4585ca,_0x5cf2fa):_0x38810b(_0x4571e8,_0x4585ca))||_0x5cf2fa;}return _0x961881>0x3&&_0x5cf2fa&&Object[_0x23c5ed(0x19d)](_0x4571e8,_0x4585ca,_0x5cf2fa),_0x5cf2fa;},__metadata=this&&this['__metadata']||function(_0x29bba1,_0x2e57fe){var _0x27f9bc=a10_0x178d1d;if(typeof Reflect===_0x27f9bc(0x177)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x29bba1,_0x2e57fe);};Object[a10_0x178d1d(0x19d)](exports,a10_0x178d1d(0x16c),{'value':!![]}),exports[a10_0x178d1d(0x17d)]=void 0x0;const crypto_js_1=require(a10_0x178d1d(0x170)),core_1=require('@midwayjs/core'),ApiError_1=require(a10_0x178d1d(0x17e));function a10_0x18a9(_0x10c094,_0x30a752){var _0x515b5e=a10_0x515b();return a10_0x18a9=function(_0x18a97a,_0x3f4402){_0x18a97a=_0x18a97a-0x168;var _0x2038a9=_0x515b5e[_0x18a97a];return _0x2038a9;},a10_0x18a9(_0x10c094,_0x30a752);}let ApiService=class ApiService{[a10_0x178d1d(0x196)](_0x316fcf){var _0x4ecffe=a10_0x178d1d,_0x38a8f2;return _0x316fcf?(0x0,crypto_js_1[_0x4ecffe(0x176)])(_0x316fcf+(0x0,crypto_js_1[_0x4ecffe(0x176)])((0x0,crypto_js_1[_0x4ecffe(0x176)])(_0x316fcf)[_0x4ecffe(0x179)]()+((_0x38a8f2=this[_0x4ecffe(0x199)])===null||_0x38a8f2===void 0x0?void 0x0:_0x38a8f2['password']))[_0x4ecffe(0x179)]())[_0x4ecffe(0x179)]():'';}[a10_0x178d1d(0x181)](_0x936e10,_0x4d1466,_0x28675e=Date[a10_0x178d1d(0x18d)]()){var _0x5a765c=a10_0x178d1d;return{'Token':_0x936e10,'Logintime':_0x28675e,'Checkcode':this[_0x5a765c(0x19a)](_0x936e10,_0x4d1466,_0x28675e)};}['getsign'](_0x4e50d1={}){var _0x30a5d0=a10_0x178d1d;const _0x250afa=[],_0xa1420f=Object[_0x30a5d0(0x171)](Object[_0x30a5d0(0x16a)](_0x4e50d1)[_0x30a5d0(0x194)](_0x1b410f=>[_0x1b410f[0x0]['toLowerCase'](),_0x1b410f[0x1]]));for(let _0x4209f5 of[_0x30a5d0(0x16e),_0x30a5d0(0x172),_0x30a5d0(0x18a),'logintime','checkcode']){if(typeof _0xa1420f[_0x4209f5]==_0x30a5d0(0x192))throw new AnnError(ApiError_1[_0x30a5d0(0x195)][_0x30a5d0(0x17b)],{'message':_0x30a5d0(0x17f)+_0x4209f5});_0x250afa[_0x30a5d0(0x19c)](_0x4209f5+'='+_0xa1420f[_0x4209f5]);}if(Math['abs'](_0xa1420f['requesttime'])-Date[_0x30a5d0(0x18d)]()>this['config']['timeout'])throw new AnnError(ApiError_1[_0x30a5d0(0x195)][_0x30a5d0(0x185)]);if(!this[_0x30a5d0(0x199)]['devices'][_0xa1420f[_0x30a5d0(0x16e)]]||!this[_0x30a5d0(0x199)][_0x30a5d0(0x1a0)][_0xa1420f['device']][_0x30a5d0(0x18f)]||!this[_0x30a5d0(0x199)][_0x30a5d0(0x1a0)][_0xa1420f[_0x30a5d0(0x16e)]][_0x30a5d0(0x19a)])throw new AnnError(ApiError_1[_0x30a5d0(0x195)]['HEADERS_DEVICE']);if(_0xa1420f[_0x30a5d0(0x18a)]&&_0xa1420f[_0x30a5d0(0x19a)]!=this[_0x30a5d0(0x19a)](_0xa1420f[_0x30a5d0(0x18a)],_0xa1420f[_0x30a5d0(0x16e)],_0xa1420f['logintime']))throw new AnnError(ApiError_1[_0x30a5d0(0x195)][_0x30a5d0(0x173)]);return _0x250afa['push'](_0x30a5d0(0x174)+this[_0x30a5d0(0x199)][_0x30a5d0(0x1a0)][_0xa1420f[_0x30a5d0(0x16e)]]['secret']),(0x0,crypto_js_1[_0x30a5d0(0x176)])(_0x250afa[_0x30a5d0(0x193)]()[_0x30a5d0(0x184)](''))[_0x30a5d0(0x179)]();}[a10_0x178d1d(0x19a)](_0x379b76,_0x25d35e,_0x2c401f=Date[a10_0x178d1d(0x18d)]()){var _0x1c9706=a10_0x178d1d,_0x5f2a02,_0xf4f52b,_0x311f1c;if(!((_0x5f2a02=this[_0x1c9706(0x199)])===null||_0x5f2a02===void 0x0?void 0x0:_0x5f2a02['devices'][_0x25d35e])||!((_0x311f1c=(_0xf4f52b=this['config'])===null||_0xf4f52b===void 0x0?void 0x0:_0xf4f52b[_0x1c9706(0x1a0)][_0x25d35e])===null||_0x311f1c===void 0x0?void 0x0:_0x311f1c[_0x1c9706(0x19a)]))throw new AnnError(ApiError_1[_0x1c9706(0x195)][_0x1c9706(0x16f)]);return(0x0,crypto_js_1[_0x1c9706(0x176)])(_0x379b76+(0x0,crypto_js_1['MD5'])(_0x2c401f+this[_0x1c9706(0x199)][_0x1c9706(0x1a0)][_0x25d35e][_0x1c9706(0x19a)])[_0x1c9706(0x179)]())[_0x1c9706(0x179)]();}[a10_0x178d1d(0x16b)](_0x1b0bdf={}){var _0xd45e89=a10_0x178d1d;const _0x1244c8=Object['fromEntries'](Object['entries'](_0x1b0bdf)['map'](_0xdb2e04=>[_0xdb2e04[0x0][_0xd45e89(0x197)](),_0xdb2e04[0x1]]));if(!(_0x1244c8===null||_0x1244c8===void 0x0?void 0x0:_0x1244c8[_0xd45e89(0x169)]))throw new AnnError(ApiError_1[_0xd45e89(0x195)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x1244c8===null||_0x1244c8===void 0x0?void 0x0:_0x1244c8[_0xd45e89(0x169)])!=this['getsign'](_0x1244c8))throw new AnnError(ApiError_1[_0xd45e89(0x195)][_0xd45e89(0x189)]);return!![];}};__decorate([(0x0,core_1['Config'])('anncicapi'),__metadata(a10_0x178d1d(0x186),Object)],ApiService[a10_0x178d1d(0x19e)],a10_0x178d1d(0x199),void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x178d1d(0x19b)])(),(0x0,core_1[a10_0x178d1d(0x180)])(core_1[a10_0x178d1d(0x17a)]['Singleton'])],ApiService),exports[a10_0x178d1d(0x17d)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x54d906=a11_0x178f;(function(_0x2ab5ea,_0x4dbac2){const _0x9c341b=a11_0x178f,_0x339fae=_0x2ab5ea();while(!![]){try{const _0x4f6962=parseInt(_0x9c341b(0x1bb))/0x1+parseInt(_0x9c341b(0x1c8))/0x2+-parseInt(_0x9c341b(0x1af))/0x3+parseInt(_0x9c341b(0x1a4))/0x4*(-parseInt(_0x9c341b(0x19f))/0x5)+-parseInt(_0x9c341b(0x1c4))/0x6*(parseInt(_0x9c341b(0x1b7))/0x7)+parseInt(_0x9c341b(0x1d6))/0x8*(parseInt(_0x9c341b(0x19a))/0x9)+parseInt(_0x9c341b(0x1ce))/0xa;if(_0x4f6962===_0x4dbac2)break;else _0x339fae['push'](_0x339fae['shift']());}catch(_0x26fa08){_0x339fae['push'](_0x339fae['shift']());}}}(a11_0x18d1,0x40ef1));var __decorate=this&&this['__decorate']||function(_0x593e2e,_0x329094,_0xeb6919,_0xf44185){const _0x2aea7e=a11_0x178f;var _0x5f4313=arguments[_0x2aea7e(0x1dc)],_0x397783=_0x5f4313<0x3?_0x329094:_0xf44185===null?_0xf44185=Object['getOwnPropertyDescriptor'](_0x329094,_0xeb6919):_0xf44185,_0x56492c;if(typeof Reflect===_0x2aea7e(0x1c1)&&typeof Reflect[_0x2aea7e(0x1cd)]===_0x2aea7e(0x1ba))_0x397783=Reflect[_0x2aea7e(0x1cd)](_0x593e2e,_0x329094,_0xeb6919,_0xf44185);else{for(var _0x37be5f=_0x593e2e[_0x2aea7e(0x1dc)]-0x1;_0x37be5f>=0x0;_0x37be5f--)if(_0x56492c=_0x593e2e[_0x37be5f])_0x397783=(_0x5f4313<0x3?_0x56492c(_0x397783):_0x5f4313>0x3?_0x56492c(_0x329094,_0xeb6919,_0x397783):_0x56492c(_0x329094,_0xeb6919))||_0x397783;}return _0x5f4313>0x3&&_0x397783&&Object['defineProperty'](_0x329094,_0xeb6919,_0x397783),_0x397783;},__metadata=this&&this['__metadata']||function(_0x3cd1e4,_0x2abb84){const _0x13c6f9=a11_0x178f;if(typeof Reflect===_0x13c6f9(0x1c1)&&typeof Reflect[_0x13c6f9(0x19d)]===_0x13c6f9(0x1ba))return Reflect[_0x13c6f9(0x19d)](_0x3cd1e4,_0x2abb84);},__param=this&&this['__param']||function(_0x1fb3ce,_0x4dafca){return function(_0x9655a6,_0x33cf9f){_0x4dafca(_0x9655a6,_0x33cf9f,_0x1fb3ce);};};function a11_0x18d1(){const _0x3314c1=['Environment','stringify','length','prototype','replace','../helper/getRoutes','defineProperty','apiteststatic','63UmLYkt','apidoc','application/javascript;\x20charset=utf-8','metadata','/apiteststatic/*','18790HAiQlJ','extname','Param','utf-8','/index.html','544cWtzGE','__apiList__','/apitest','route','/apitest-:module','Controller','filepath','ApitestStaticController','path','summary','/apiteststatic/','274830MoUXot','text/css;\x20charset=utf-8','__devices__','../../public/','substring','apitest','Request','design:paramtypes','1309630GjtSWR','join','Scope','function','479427TvTScY','Config','routes','.js','Provide','design:returntype','object','readFileSync','Singleton','12Dczdzw','public,\x20max-age=604800','url','content-type','812646ggsHzb','design:type','ctx','getRoutes','set','decorate','649520hzVIct','../../public/index.html','ApitestService','@midwayjs/core','MidwayEnvironmentService','anncicapi','config','apitestmodule','333880Hkluny','Inject','module','request'];a11_0x18d1=function(){return _0x3314c1;};return a11_0x18d1();}Object[a11_0x54d906(0x198)](exports,'__esModule',{'value':!![]}),exports[a11_0x54d906(0x1ab)]=exports[a11_0x54d906(0x1d0)]=void 0x0;const path_1=require(a11_0x54d906(0x1ac)),fs_1=require('fs'),core_1=require(a11_0x54d906(0x1d1)),core_2=require(a11_0x54d906(0x1d1)),core_3=require(a11_0x54d906(0x1d1)),getRoutes_1=require(a11_0x54d906(0x197));let ApitestService=class ApitestService{async['apidoc'](_0x46e15b){const _0x4b1273=a11_0x54d906,_0x23c3ea=(0x0,getRoutes_1[_0x4b1273(0x1cb)])(_0x46e15b),_0x56e6f0=[];for(let _0x3f480e in _0x23c3ea){for(let _0x5333ed in _0x23c3ea[_0x3f480e]['routes']){let _0x4e03bc=_0x23c3ea[_0x3f480e][_0x4b1273(0x1bd)][_0x5333ed],_0x1d395f=[];for(let _0xcf0101 in _0x4e03bc[_0x4b1273(0x1d9)]){_0x1d395f['push'](_0x4e03bc[_0x4b1273(0x1d9)][_0xcf0101]);}_0x56e6f0['push']({'title':_0x23c3ea[_0x3f480e][_0x4b1273(0x1ad)]+':'+_0x4e03bc[_0x4b1273(0x1ad)],'prefix':_0x23c3ea[_0x3f480e]['prefix'],'router':_0x4e03bc[_0x4b1273(0x1a7)],'method':_0x4e03bc['method'],'describe':_0x4e03bc['description']||'','filepath':_0x23c3ea[_0x3f480e][_0x4b1273(0x1aa)]||'','request':_0x1d395f});}}const _0x118309=(0x0,path_1[_0x4b1273(0x1b8)])(__dirname,_0x4b1273(0x1cf));return(0x0,fs_1[_0x4b1273(0x1c2)])(_0x118309,{'encoding':_0x4b1273(0x1a2)})[_0x4b1273(0x1de)](/__res__/g,_0x4b1273(0x1ae))[_0x4b1273(0x1de)](_0x4b1273(0x1a5),JSON['stringify'](_0x56e6f0))[_0x4b1273(0x1de)](_0x4b1273(0x1b1),JSON[_0x4b1273(0x1db)](this['config']['devices']));}};function a11_0x178f(_0xc9c55b,_0x1896dc){const _0x18d130=a11_0x18d1();return a11_0x178f=function(_0x178fb8,_0x1d81c4){_0x178fb8=_0x178fb8-0x197;let _0x4573ea=_0x18d130[_0x178fb8];return _0x4573ea;},a11_0x178f(_0xc9c55b,_0x1896dc);}__decorate([(0x0,core_3[a11_0x54d906(0x1bc)])(a11_0x54d906(0x1d3)),__metadata(a11_0x54d906(0x1c9),Object)],ApitestService[a11_0x54d906(0x1dd)],a11_0x54d906(0x1d4),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x54d906(0x1bf)])(a11_0x54d906(0x1b4)),(0x0,core_3[a11_0x54d906(0x1b9)])(core_3['ScopeEnum'][a11_0x54d906(0x1c3)])],ApitestService),exports[a11_0x54d906(0x1d0)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x1d96f6=a11_0x54d906;if(this[_0x1d96f6(0x1b4)]){const _0x3164b8={'module':![]};return this[_0x1d96f6(0x1da)]['isDevelopmentEnvironment']()&&(_0x3164b8['filepath']=!![]),await this[_0x1d96f6(0x1d0)]['apidoc'](_0x3164b8);}return'';}async[a11_0x54d906(0x1d5)](_0x5e34a0){const _0x3b1f21=a11_0x54d906;if(this[_0x3b1f21(0x1b4)]){const _0x131b24={'module':_0x5e34a0};return this[_0x3b1f21(0x1da)]['isDevelopmentEnvironment']()&&(_0x131b24['filepath']=!![]),await this[_0x3b1f21(0x1d0)][_0x3b1f21(0x19b)](_0x131b24);}return'';}async['apiteststatic'](){const _0x365143=a11_0x54d906;if((0x0,path_1[_0x365143(0x1a0)])(this[_0x365143(0x1ca)][_0x365143(0x1d9)][_0x365143(0x1c6)])){var _0x1fedc1=(0x0,path_1[_0x365143(0x1b8)])(__dirname,_0x365143(0x1b2)+this['ctx'][_0x365143(0x1d9)][_0x365143(0x1c6)][_0x365143(0x1de)](_0x365143(0x1ae),'/'));if(_0x1fedc1[_0x365143(0x1b3)](_0x1fedc1[_0x365143(0x1dc)]-0xb)!=_0x365143(0x1a3)){this[_0x365143(0x1ca)]['set']('cache-control',_0x365143(0x1c5));if((0x0,path_1[_0x365143(0x1a0)])(this[_0x365143(0x1ca)][_0x365143(0x1d9)][_0x365143(0x1c6)])==_0x365143(0x1be))this[_0x365143(0x1ca)][_0x365143(0x1cc)](_0x365143(0x1c7),_0x365143(0x19c));else(0x0,path_1['extname'])(this['ctx']['request'][_0x365143(0x1c6)])=='.css'&&this['ctx']['set']('content-type',_0x365143(0x1b0));return(0x0,fs_1['existsSync'])(_0x1fedc1)&&(0x0,fs_1[_0x365143(0x1c2)])(_0x1fedc1,{'encoding':_0x365143(0x1a2)});}}return'';}};__decorate([(0x0,core_3[a11_0x54d906(0x1d7)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],'ctx',void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x54d906(0x1c9),core_1[a11_0x54d906(0x1d2)])],ApitestStaticController[a11_0x54d906(0x1dd)],a11_0x54d906(0x1da),void 0x0),__decorate([(0x0,core_3[a11_0x54d906(0x1d7)])(),__metadata(a11_0x54d906(0x1c9),ApitestService)],ApitestStaticController['prototype'],a11_0x54d906(0x1d0),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x54d906(0x1b4)),__metadata(a11_0x54d906(0x1c9),Boolean)],ApitestStaticController[a11_0x54d906(0x1dd)],a11_0x54d906(0x1b4),void 0x0),__decorate([(0x0,core_3[a11_0x54d906(0x1bc)])(a11_0x54d906(0x1d3)),__metadata('design:type',Object)],ApitestStaticController['prototype'],'config',void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x54d906(0x1a6)),__metadata(a11_0x54d906(0x1c9),Function),__metadata(a11_0x54d906(0x1b6),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x54d906(0x1dd)],'apitesthtml',null),__decorate([(0x0,core_2['Get'])(a11_0x54d906(0x1a8)),__param(0x0,(0x0,core_2[a11_0x54d906(0x1a1)])(a11_0x54d906(0x1d8))),__metadata('design:type',Function),__metadata(a11_0x54d906(0x1b6),[String]),__metadata(a11_0x54d906(0x1c0),Promise)],ApitestStaticController[a11_0x54d906(0x1dd)],a11_0x54d906(0x1d5),null),__decorate([(0x0,core_2['Get'])(a11_0x54d906(0x19e)),__metadata('design:type',Function),__metadata(a11_0x54d906(0x1b6),[]),__metadata(a11_0x54d906(0x1c0),Promise)],ApitestStaticController[a11_0x54d906(0x1dd)],a11_0x54d906(0x199),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x54d906(0x1a9)])('/'),(0x0,core_3[a11_0x54d906(0x1b9)])(core_3['ScopeEnum'][a11_0x54d906(0x1b5)])],ApitestStaticController),exports[a11_0x54d906(0x1ab)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x588180=a12_0x54d1;(function(_0x2fd5a3,_0x4c3a5b){const _0x17391a=a12_0x54d1,_0x3cd716=_0x2fd5a3();while(!![]){try{const _0x106fc2=-parseInt(_0x17391a(0x210))/0x1*(-parseInt(_0x17391a(0x1f9))/0x2)+-parseInt(_0x17391a(0x20d))/0x3+parseInt(_0x17391a(0x1e8))/0x4+parseInt(_0x17391a(0x20b))/0x5*(parseInt(_0x17391a(0x1f4))/0x6)+parseInt(_0x17391a(0x1d2))/0x7*(parseInt(_0x17391a(0x1d9))/0x8)+-parseInt(_0x17391a(0x1e3))/0x9+parseInt(_0x17391a(0x1ea))/0xa;if(_0x106fc2===_0x4c3a5b)break;else _0x3cd716['push'](_0x3cd716['shift']());}catch(_0x225cd5){_0x3cd716['push'](_0x3cd716['shift']());}}}(a12_0x1b15,0x68109));function a12_0x1b15(){const _0x133d18=['readFile','handler','Provide','key','\x20is\x20read\x20fail','length','__decorate','log','getCell','parse','existsSync','460uDLuDF','.xlsx','2363679mGQKPb','columns','download','4372snMRaW','defineProperty','get','writeFile','worksheets','1998143pKGhLF','startsWith','ScopeEnum','Workbook','addWorksheet','keys','function','16MmWFsk','endsWith','app','addRow','koa-send','cellCount','eachCell','getOwnPropertyDescriptor','push','Api\x20Excel\x20Error:\x20','4995621mFugDC','random','App','@midwayjs/core','ExcelService','715536umDpRZ','/public/xlsx','8356850JIMDEn','substring','Singleton','decorate','public/xlsx','findRows','object','value','getAppDir','xlsx','2574OxKPYy','metadata','Sheet\x201','getWorksheet','replace','66ZThEAP','rowCount','header','toString','design:type','__esModule','prototype'];a12_0x1b15=function(){return _0x133d18;};return a12_0x1b15();}var __decorate=this&&this[a12_0x588180(0x206)]||function(_0x3054e3,_0x228af9,_0x50f62a,_0x5a7aef){const _0x3d43cb=a12_0x588180;var _0x338978=arguments['length'],_0x5907b7=_0x338978<0x3?_0x228af9:_0x5a7aef===null?_0x5a7aef=Object[_0x3d43cb(0x1e0)](_0x228af9,_0x50f62a):_0x5a7aef,_0x124829;if(typeof Reflect===_0x3d43cb(0x1f0)&&typeof Reflect['decorate']===_0x3d43cb(0x1d8))_0x5907b7=Reflect[_0x3d43cb(0x1ed)](_0x3054e3,_0x228af9,_0x50f62a,_0x5a7aef);else{for(var _0x4eee77=_0x3054e3[_0x3d43cb(0x205)]-0x1;_0x4eee77>=0x0;_0x4eee77--)if(_0x124829=_0x3054e3[_0x4eee77])_0x5907b7=(_0x338978<0x3?_0x124829(_0x5907b7):_0x338978>0x3?_0x124829(_0x228af9,_0x50f62a,_0x5907b7):_0x124829(_0x228af9,_0x50f62a))||_0x5907b7;}return _0x338978>0x3&&_0x5907b7&&Object['defineProperty'](_0x228af9,_0x50f62a,_0x5907b7),_0x5907b7;},__metadata=this&&this['__metadata']||function(_0x4766d6,_0x3ecfa5){const _0x3acd77=a12_0x588180;if(typeof Reflect===_0x3acd77(0x1f0)&&typeof Reflect['metadata']===_0x3acd77(0x1d8))return Reflect[_0x3acd77(0x1f5)](_0x4766d6,_0x3ecfa5);};Object[a12_0x588180(0x1ce)](exports,a12_0x588180(0x1fe),{'value':!![]}),exports[a12_0x588180(0x1e7)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x588180(0x1dd)),core_1=require(a12_0x588180(0x1e6));function a12_0x54d1(_0x538630,_0x21d0f7){const _0x1b1560=a12_0x1b15();return a12_0x54d1=function(_0x54d1a6,_0x4d0f12){_0x54d1a6=_0x54d1a6-0x1ce;let _0x32ecd8=_0x1b1560[_0x54d1a6];return _0x32ecd8;},a12_0x54d1(_0x538630,_0x21d0f7);}let ExcelService=class ExcelService{async[a12_0x588180(0x209)](_0x21914c,_0x22b22e,_0x3f1fbc=[0x0]){const _0x3b85ae=a12_0x588180;var _0x54aca0,_0x55f0e9;const _0x24328f=new exceljs[(_0x3b85ae(0x1d5))](),_0x818bae=[];let _0x40df1c=_0x21914c[_0x3b85ae(0x1f8)](/(\\|\/)/g,'/')[_0x3b85ae(0x1f8)](/\/{2,}/g,'/');!(_0x40df1c===null||_0x40df1c===void 0x0?void 0x0:_0x40df1c[_0x3b85ae(0x1d3)]('/'))&&(_0x40df1c=this[_0x3b85ae(0x1db)][_0x3b85ae(0x1f2)]()+'/'+_0x40df1c);try{await _0x24328f[_0x3b85ae(0x1f3)][_0x3b85ae(0x200)](_0x40df1c);}catch(_0x5477e7){return console[_0x3b85ae(0x207)](_0x3b85ae(0x1e2)+_0x40df1c+_0x3b85ae(0x204)),_0x818bae;}for(const _0x146aae of _0x3f1fbc){const _0x3120fe=lodash['isNumber'](_0x146aae)?((_0x54aca0=_0x24328f[_0x3b85ae(0x1d1)])===null||_0x54aca0===void 0x0?void 0x0:_0x54aca0[_0x146aae])||undefined:_0x24328f[_0x3b85ae(0x1f7)](_0x146aae);if(_0x3120fe){var _0x46d0db=0x1;const _0x3d3f0b=_0x3120fe['getRow'](0x1),_0xac3173=await new Promise(_0x6c7ffb=>{const _0x25ed8c=_0x3b85ae,_0x456982={};_0x3d3f0b[_0x25ed8c(0x1df)]((_0x49941d,_0x33ce69)=>{const _0x2087d2=_0x25ed8c;for(const _0x4e3ba4 of _0x22b22e){if(_0x49941d[_0x2087d2(0x1f1)]==_0x4e3ba4[_0x2087d2(0x1fb)])_0x46d0db=0x2,_0x456982[_0x4e3ba4[_0x2087d2(0x203)]]={'header':_0x49941d['col'],'handler':_0x4e3ba4[_0x2087d2(0x201)]};else{if(!_0x456982[_0x4e3ba4['key']])try{const _0x239f5a=_0x3d3f0b[_0x2087d2(0x208)](_0x4e3ba4[_0x2087d2(0x1fb)]);_0x239f5a&&(_0x456982[_0x4e3ba4[_0x2087d2(0x203)]]={'header':_0x239f5a['col'],'handler':_0x4e3ba4[_0x2087d2(0x201)]});}catch{}}}_0x3d3f0b[_0x2087d2(0x1de)]==_0x33ce69&&_0x6c7ffb(_0x456982);});});for(const _0x12e4c8 of _0x3120fe[_0x3b85ae(0x1ef)](_0x46d0db,_0x3120fe[_0x3b85ae(0x1fa)])){const _0x4ef5c4={};for(const _0x27250a in _0xac3173){if(_0xac3173[_0x27250a][_0x3b85ae(0x1fb)]){const _0x270ed0=_0x12e4c8[_0x3b85ae(0x208)](_0xac3173[_0x27250a]['header']);typeof((_0x55f0e9=_0xac3173[_0x27250a])===null||_0x55f0e9===void 0x0?void 0x0:_0x55f0e9['handler'])==_0x3b85ae(0x1d8)?_0x4ef5c4[_0x27250a]=await _0xac3173[_0x27250a][_0x3b85ae(0x201)]((_0x270ed0===null||_0x270ed0===void 0x0?void 0x0:_0x270ed0[_0x3b85ae(0x1fc)]())||'',_0x270ed0['model']):_0x4ef5c4[_0x27250a]=(_0x270ed0===null||_0x270ed0===void 0x0?void 0x0:_0x270ed0['toString']())||'';}}Object[_0x3b85ae(0x1d7)](_0x4ef5c4)['length']>0x0&&_0x818bae['push'](_0x4ef5c4);}}}return _0x818bae;}async['export'](_0x27e4b1,_0x2536bf,_0x2648b1,_0x4adda0=a12_0x588180(0x1ee)){const _0x3f56d1=a12_0x588180;var _0x56cc3c,_0x2e92c4;const _0x2d3856=new exceljs['Workbook'](),_0x46081c={},_0x3a9746=[],_0x51e0e3=_0x2d3856[_0x3f56d1(0x1d6)](_0x3f56d1(0x1f6),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x26210d in _0x2536bf){_0x46081c[_0x2536bf[_0x26210d][_0x3f56d1(0x203)]]=_0x2536bf[_0x26210d]['header'],_0x3a9746[_0x3f56d1(0x1e1)]({'header':_0x2536bf[_0x26210d][_0x3f56d1(0x1fb)],'key':(_0x56cc3c=_0x2536bf[_0x26210d])===null||_0x56cc3c===void 0x0?void 0x0:_0x56cc3c['key']['replace'](/\./g,'_')});}_0x51e0e3[_0x3f56d1(0x20e)]=_0x3a9746;for(const _0x263cd3 of _0x2648b1){const _0x12acfe={};for(const _0x1834ab in _0x2536bf){typeof((_0x2e92c4=_0x2536bf[_0x1834ab])===null||_0x2e92c4===void 0x0?void 0x0:_0x2e92c4['handler'])==_0x3f56d1(0x1d8)?_0x12acfe[_0x2536bf[_0x1834ab][_0x3f56d1(0x203)][_0x3f56d1(0x1f8)](/\./g,'_')]=await _0x2536bf[_0x1834ab]['handler'](_0x263cd3):_0x12acfe[_0x2536bf[_0x1834ab]['key'][_0x3f56d1(0x1f8)](/\./g,'_')]=lodash[_0x3f56d1(0x1cf)](_0x263cd3,_0x2536bf[_0x1834ab][_0x3f56d1(0x203)],'');}_0x51e0e3[_0x3f56d1(0x1dc)](_0x12acfe);}let _0x15e3af='';const _0x4f2ca3=_0x27e4b1+'-'+lodash[_0x3f56d1(0x1e4)](0x2710,0x1869f)+_0x3f56d1(0x20c);if(_0x4adda0&&_0x4adda0['startsWith']('/'))_0x15e3af=''+_0x4adda0;else _0x4adda0&&!_0x4adda0['startsWith']('/')&&!_0x4adda0[_0x3f56d1(0x1d3)]('\x5c')?_0x15e3af=this['app'][_0x3f56d1(0x1f2)]()+'/'+_0x4adda0:_0x15e3af=this['app'][_0x3f56d1(0x1f2)]()+_0x3f56d1(0x1e9);return(_0x15e3af[_0x3f56d1(0x1da)]('/')||_0x15e3af['endsWith']('\x5c'))&&(_0x15e3af=_0x15e3af[_0x3f56d1(0x1eb)](0x0,_0x15e3af[_0x3f56d1(0x205)]-0x1)),_0x15e3af=_0x15e3af[_0x3f56d1(0x1f8)](/(\\|\/)/g,'/')[_0x3f56d1(0x1f8)](/\/{2,}/g,'/'),!fs[_0x3f56d1(0x20a)](_0x15e3af)&&fs['mkdirSync'](_0x15e3af,{'recursive':!![]}),await _0x2d3856[_0x3f56d1(0x1f3)][_0x3f56d1(0x1d0)]((_0x15e3af+'/'+_0x4f2ca3)[_0x3f56d1(0x1f8)](/(\\|\/)/g,'/')[_0x3f56d1(0x1f8)](/\/{2,}/g,'/')),{'filename':_0x4f2ca3,'filepath':(_0x15e3af[_0x3f56d1(0x1eb)]((''+this['app']['getAppDir']())[_0x3f56d1(0x205)])+'/'+_0x4f2ca3)[_0x3f56d1(0x1f8)](/(\\|\/)/g,'/')[_0x3f56d1(0x1f8)](/\/{2,}/g,'/')};}async[a12_0x588180(0x20f)](_0x372687,_0xbe6743){return await koasend(_0x372687,''+_0xbe6743);}};__decorate([(0x0,core_1[a12_0x588180(0x1e5)])(),__metadata(a12_0x588180(0x1fd),Object)],ExcelService[a12_0x588180(0x1ff)],a12_0x588180(0x1db),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x588180(0x202)])(),(0x0,core_1['Scope'])(core_1[a12_0x588180(0x1d4)][a12_0x588180(0x1ec)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a13_0x1ce335=a13_0x2cb3;function a13_0x2e17(){var _0x50b1c7=['APPSCONFIG_KEY','2569610FqPgvj','113979UfhoaN','632wlvNVo','12RRMYYk','defineProperty','2zCyyws','18UiPNhL','ACTION_KEY','1740EYfhbS','555165gvOqzF','anncic-api:action','4761471CvPrDD','AppsConfigTmp','33397xbnjDZ','9DcesEb','8855LNiczU','373448AhOqks','ACTION_ROUTE_KEY'];a13_0x2e17=function(){return _0x50b1c7;};return a13_0x2e17();}(function(_0x3f76b7,_0x21ad67){var _0x7dcbce=a13_0x2cb3,_0x5c8e9d=_0x3f76b7();while(!![]){try{var _0x15c5ad=-parseInt(_0x7dcbce(0x19c))/0x1*(-parseInt(_0x7dcbce(0x1a4))/0x2)+-parseInt(_0x7dcbce(0x1a0))/0x3*(parseInt(_0x7dcbce(0x1a2))/0x4)+parseInt(_0x7dcbce(0x195))/0x5*(-parseInt(_0x7dcbce(0x1a5))/0x6)+parseInt(_0x7dcbce(0x19b))/0x7*(parseInt(_0x7dcbce(0x1a1))/0x8)+parseInt(_0x7dcbce(0x19a))/0x9*(parseInt(_0x7dcbce(0x19f))/0xa)+-parseInt(_0x7dcbce(0x197))/0xb+-parseInt(_0x7dcbce(0x194))/0xc*(-parseInt(_0x7dcbce(0x199))/0xd);if(_0x15c5ad===_0x21ad67)break;else _0x5c8e9d['push'](_0x5c8e9d['shift']());}catch(_0x2f33aa){_0x5c8e9d['push'](_0x5c8e9d['shift']());}}}(a13_0x2e17,0x366be));Object[a13_0x1ce335(0x1a3)](exports,'__esModule',{'value':!![]}),exports[a13_0x1ce335(0x198)]=exports['APPSCONFIG_KEY']=exports[a13_0x1ce335(0x19d)]=exports[a13_0x1ce335(0x193)]=void 0x0,exports['ACTION_KEY']=a13_0x1ce335(0x196),exports['ACTION_ROUTE_KEY']='anncic-api:action:route',exports[a13_0x1ce335(0x19e)]='anncic-api:apps:config';class AppsConfigTmp{}function a13_0x2cb3(_0x3c3cbd,_0x58ca91){var _0x2e175b=a13_0x2e17();return a13_0x2cb3=function(_0x2cb34f,_0x3b5573){_0x2cb34f=_0x2cb34f-0x193;var _0x56eb77=_0x2e175b[_0x2cb34f];return _0x56eb77;},a13_0x2cb3(_0x3c3cbd,_0x58ca91);}exports[a13_0x1ce335(0x198)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0xc894c8=a14_0x2e19;function a14_0x5cd0(){var _0x5b6fd0=['_size','RuleType','第一页为1,第二页为2','length','排序方式','是否倒序','string','valid','32709eYahIY','decorate','__metadata','metadata','function','__esModule','defineProperty','integer','number','Rule','object','__decorate','trim','1:是;0:否','_page','min','PageDTO','1858272cmzkID','分页数量','@anncic-api/validator','95516maLjmP','16933182TUAEll','768026XjURSA','2500400kvIIUe','prototype','_isreverse','design:type','getOwnPropertyDescriptor','1781700clRGOt'];a14_0x5cd0=function(){return _0x5b6fd0;};return a14_0x5cd0();}(function(_0x40edde,_0x10c99e){var _0x1e84cc=a14_0x2e19,_0x398f29=_0x40edde();while(!![]){try{var _0x234f62=-parseInt(_0x1e84cc(0x1a6))/0x1+parseInt(_0x1e84cc(0x1a4))/0x2+-parseInt(_0x1e84cc(0x1b5))/0x3+-parseInt(_0x1e84cc(0x1a1))/0x4+-parseInt(_0x1e84cc(0x1a7))/0x5+-parseInt(_0x1e84cc(0x1ac))/0x6+parseInt(_0x1e84cc(0x1a5))/0x7;if(_0x234f62===_0x10c99e)break;else _0x398f29['push'](_0x398f29['shift']());}catch(_0x3fc597){_0x398f29['push'](_0x398f29['shift']());}}}(a14_0x5cd0,0x68111));function a14_0x2e19(_0x3e9cfe,_0x304c0e){var _0x5cd0d9=a14_0x5cd0();return a14_0x2e19=function(_0x2e19a9,_0x2aae29){_0x2e19a9=_0x2e19a9-0x192;var _0x370dfc=_0x5cd0d9[_0x2e19a9];return _0x370dfc;},a14_0x2e19(_0x3e9cfe,_0x304c0e);}var __decorate=this&&this[a14_0xc894c8(0x19b)]||function(_0x4e70c5,_0x4c2108,_0x2eaa56,_0x4e19f6){var _0x5a95c1=a14_0xc894c8,_0x267e65=arguments[_0x5a95c1(0x1b0)],_0x2c7a65=_0x267e65<0x3?_0x4c2108:_0x4e19f6===null?_0x4e19f6=Object[_0x5a95c1(0x1ab)](_0x4c2108,_0x2eaa56):_0x4e19f6,_0x38d1f3;if(typeof Reflect===_0x5a95c1(0x19a)&&typeof Reflect[_0x5a95c1(0x1b6)]===_0x5a95c1(0x194))_0x2c7a65=Reflect['decorate'](_0x4e70c5,_0x4c2108,_0x2eaa56,_0x4e19f6);else{for(var _0xc94d00=_0x4e70c5[_0x5a95c1(0x1b0)]-0x1;_0xc94d00>=0x0;_0xc94d00--)if(_0x38d1f3=_0x4e70c5[_0xc94d00])_0x2c7a65=(_0x267e65<0x3?_0x38d1f3(_0x2c7a65):_0x267e65>0x3?_0x38d1f3(_0x4c2108,_0x2eaa56,_0x2c7a65):_0x38d1f3(_0x4c2108,_0x2eaa56))||_0x2c7a65;}return _0x267e65>0x3&&_0x2c7a65&&Object[_0x5a95c1(0x196)](_0x4c2108,_0x2eaa56,_0x2c7a65),_0x2c7a65;},__metadata=this&&this[a14_0xc894c8(0x192)]||function(_0x1239d1,_0x115ce8){var _0x269c9b=a14_0xc894c8;if(typeof Reflect==='object'&&typeof Reflect[_0x269c9b(0x193)]===_0x269c9b(0x194))return Reflect[_0x269c9b(0x193)](_0x1239d1,_0x115ce8);};Object[a14_0xc894c8(0x196)](exports,a14_0xc894c8(0x195),{'value':!![]}),exports[a14_0xc894c8(0x1a0)]=void 0x0;const validator_1=require(a14_0xc894c8(0x1a3));class PageDTO{}__decorate([(0x0,validator_1[a14_0xc894c8(0x199)])('分页',validator_1[a14_0xc894c8(0x1ae)][a14_0xc894c8(0x198)]()[a14_0xc894c8(0x197)]()[a14_0xc894c8(0x19f)](0x1),a14_0xc894c8(0x1af)),__metadata('design:type',Number)],PageDTO[a14_0xc894c8(0x1a8)],a14_0xc894c8(0x19e),void 0x0),__decorate([(0x0,validator_1[a14_0xc894c8(0x199)])(a14_0xc894c8(0x1a2),validator_1[a14_0xc894c8(0x1ae)][a14_0xc894c8(0x198)]()[a14_0xc894c8(0x197)]()[a14_0xc894c8(0x19f)](0x1)),__metadata(a14_0xc894c8(0x1aa),Number)],PageDTO['prototype'],a14_0xc894c8(0x1ad),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0xc894c8(0x1b1),validator_1['RuleType'][a14_0xc894c8(0x1b3)]()[a14_0xc894c8(0x19c)]()),__metadata('design:type',String)],PageDTO[a14_0xc894c8(0x1a8)],'_order',void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0xc894c8(0x1b2),validator_1[a14_0xc894c8(0x1ae)][a14_0xc894c8(0x198)]()[a14_0xc894c8(0x197)]()[a14_0xc894c8(0x1b4)](0x0,0x1),a14_0xc894c8(0x19d)),__metadata(a14_0xc894c8(0x1aa),Number)],PageDTO[a14_0xc894c8(0x1a8)],a14_0xc894c8(0x1a9),void 0x0),exports[a14_0xc894c8(0x1a0)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.3",
|
|
21
|
+
"@anncic-api/core": "^1.4.3",
|
|
22
|
+
"@anncic-api/event": "^1.4.3",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.3",
|
|
24
|
+
"@anncic-api/validator": "^1.4.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.3",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0c4a608b473a8cc5a0470ab0a1a60647dc03787e"
|
|
43
43
|
}
|