anncic-api 1.1.7 → 1.1.8

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.
@@ -1 +1 @@
1
- 'use strict';var a0_0x112802=a0_0x5543;function a0_0x5543(_0x48688d,_0x3259e7){var _0x2920a7=a0_0x2920();return a0_0x5543=function(_0x5543e5,_0x339406){_0x5543e5=_0x5543e5-0xe2;var _0x4847bf=_0x2920a7[_0x5543e5];return _0x4847bf;},a0_0x5543(_0x48688d,_0x3259e7);}(function(_0x5a47d3,_0x37a38e){var _0x19d444=a0_0x5543,_0x22f29a=_0x5a47d3();while(!![]){try{var _0x2cd011=-parseInt(_0x19d444(0xed))/0x1+parseInt(_0x19d444(0xe6))/0x2*(parseInt(_0x19d444(0xf1))/0x3)+parseInt(_0x19d444(0xea))/0x4*(parseInt(_0x19d444(0xe8))/0x5)+parseInt(_0x19d444(0xe5))/0x6+parseInt(_0x19d444(0xef))/0x7*(parseInt(_0x19d444(0xf3))/0x8)+-parseInt(_0x19d444(0xe4))/0x9+parseInt(_0x19d444(0xe9))/0xa*(-parseInt(_0x19d444(0xe7))/0xb);if(_0x2cd011===_0x37a38e)break;else _0x22f29a['push'](_0x22f29a['shift']());}catch(_0x2a416a){_0x22f29a['push'](_0x22f29a['shift']());}}}(a0_0x2920,0x7d81f));function a0_0x2920(){var _0x4dd6c2=['3053109TtwBBQ','zhiulanuiy7892387985hnoi','1545624psJsqZ','name','dhauo1234420123gg3234901','8801217rxSdQB','583956IgWruJ','2rTHrCj','1292192EzcvkR','120975BMTDpx','50KtsuyZ','116DKWEoM','appDir','__esModule','316941siUvgD','default','21tJBAZd','defineProperty'];a0_0x2920=function(){return _0x4dd6c2;};return a0_0x2920();}Object[a0_0x112802(0xf0)](exports,a0_0x112802(0xec),{'value':!![]}),exports[a0_0x112802(0xee)]=_0x1ca640=>{var _0x1a8728=a0_0x112802;return{'apitest':!![],'keys':_0x1ca640[_0x1a8728(0xe2)],'anncicapi':{'timeout':0x1388,'password':_0x1a8728(0xf2),'devices':{'DEFAULT':{'secret':_0x1a8728(0xe3),'checkcode':_0x1a8728(0xe3)}}},'upload':{'tmpdir':_0x1ca640[_0x1a8728(0xeb)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
1
+ 'use strict';var a0_0x2b0b1d=a0_0x1875;function a0_0x32a0(){var _0x523c42=['65383KURNDM','152581jXQxQd','70rZeQXp','9eFCDKG','7ufooPe','248tYPOHS','2639460SogqIb','1260339fOwnZH','defineProperty','5617320uWgyNp','1214648VtMUYu','2UkPegO','15205wxJEDL','13NCCpum','default'];a0_0x32a0=function(){return _0x523c42;};return a0_0x32a0();}(function(_0x3f4f57,_0x74a48d){var _0x763582=a0_0x1875,_0x317585=_0x3f4f57();while(!![]){try{var _0x48e9a6=-parseInt(_0x763582(0xaa))/0x1+-parseInt(_0x763582(0xa6))/0x2*(-parseInt(_0x763582(0xa2))/0x3)+-parseInt(_0x763582(0xa0))/0x4*(parseInt(_0x763582(0xa7))/0x5)+parseInt(_0x763582(0xa1))/0x6*(-parseInt(_0x763582(0xae))/0x7)+parseInt(_0x763582(0xa5))/0x8*(parseInt(_0x763582(0xad))/0x9)+-parseInt(_0x763582(0xac))/0xa*(parseInt(_0x763582(0xab))/0xb)+parseInt(_0x763582(0xa4))/0xc*(parseInt(_0x763582(0xa8))/0xd);if(_0x48e9a6===_0x74a48d)break;else _0x317585['push'](_0x317585['shift']());}catch(_0x534ba3){_0x317585['push'](_0x317585['shift']());}}}(a0_0x32a0,0x3cd22));function a0_0x1875(_0x1fff18,_0x4cdc61){var _0x32a0ad=a0_0x32a0();return a0_0x1875=function(_0x18750c,_0x56df63){_0x18750c=_0x18750c-0xa0;var _0x40df56=_0x32a0ad[_0x18750c];return _0x40df56;},a0_0x1875(_0x1fff18,_0x4cdc61);}Object[a0_0x2b0b1d(0xa3)](exports,'__esModule',{'value':!![]}),exports[a0_0x2b0b1d(0xa9)]=_0x3adb6e=>{return{'apitest':!![],'keys':_0x3adb6e['name'],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'upload':{'tmpdir':_0x3adb6e['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x5af2(_0x54d9b1,_0x32ba6d){var _0xda950e=a1_0xda95();return a1_0x5af2=function(_0x5af274,_0x55727f){_0x5af274=_0x5af274-0x143;var _0x510409=_0xda950e[_0x5af274];return _0x510409;},a1_0x5af2(_0x54d9b1,_0x32ba6d);}function a1_0xda95(){var _0x489856=['749634Tfkxtn','__esModule','2891529OFzMkF','19392ejQdQe','3256244EjqIly','defineProperty','24sMFVdf','default','172931VvOfgP','2331BoORtp','1118042RxmjOZ','1704168ldNHcL','530AjQeFi','5VVugAW'];a1_0xda95=function(){return _0x489856;};return a1_0xda95();}var a1_0x2c47de=a1_0x5af2;(function(_0x58a9d5,_0x5d47f9){var _0xee1fee=a1_0x5af2,_0x4b1ac4=_0x58a9d5();while(!![]){try{var _0x23aeb4=parseInt(_0xee1fee(0x146))/0x1+-parseInt(_0xee1fee(0x14a))/0x2+parseInt(_0xee1fee(0x14c))/0x3+parseInt(_0xee1fee(0x14e))/0x4*(-parseInt(_0xee1fee(0x149))/0x5)+parseInt(_0xee1fee(0x14d))/0x6*(parseInt(_0xee1fee(0x145))/0x7)+parseInt(_0xee1fee(0x150))/0x8*(-parseInt(_0xee1fee(0x147))/0x9)+-parseInt(_0xee1fee(0x148))/0xa*(parseInt(_0xee1fee(0x144))/0xb);if(_0x23aeb4===_0x5d47f9)break;else _0x4b1ac4['push'](_0x4b1ac4['shift']());}catch(_0x3ece65){_0x4b1ac4['push'](_0x4b1ac4['shift']());}}}(a1_0xda95,0x8aaba));Object[a1_0x2c47de(0x14f)](exports,a1_0x2c47de(0x14b),{'value':!![]}),exports[a1_0x2c47de(0x143)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
1
+ 'use strict';function a1_0x108d(){var _0x274ffd=['1317546vIVvpm','2cXbDKu','defineProperty','390987ksjmkX','480wRyGPn','12037340iEMIvq','22832PfPuwE','185185GtRXEw','185087cVdfbl','3580568cTFDIE','150UzYoEA','default'];a1_0x108d=function(){return _0x274ffd;};return a1_0x108d();}var a1_0x1c4fe1=a1_0x14cf;function a1_0x14cf(_0x7ec821,_0x3bd3d2){var _0x108d3b=a1_0x108d();return a1_0x14cf=function(_0x14cfd5,_0xf367ca){_0x14cfd5=_0x14cfd5-0x1e8;var _0x517679=_0x108d3b[_0x14cfd5];return _0x517679;},a1_0x14cf(_0x7ec821,_0x3bd3d2);}(function(_0x22f966,_0x3664b3){var _0x46ff7d=a1_0x14cf,_0x30c193=_0x22f966();while(!![]){try{var _0x1561dc=-parseInt(_0x46ff7d(0x1f3))/0x1*(-parseInt(_0x46ff7d(0x1ed))/0x2)+-parseInt(_0x46ff7d(0x1ef))/0x3+-parseInt(_0x46ff7d(0x1f2))/0x4*(parseInt(_0x46ff7d(0x1f0))/0x5)+parseInt(_0x46ff7d(0x1ea))/0x6*(-parseInt(_0x46ff7d(0x1e8))/0x7)+parseInt(_0x46ff7d(0x1e9))/0x8+-parseInt(_0x46ff7d(0x1ec))/0x9+parseInt(_0x46ff7d(0x1f1))/0xa;if(_0x1561dc===_0x3664b3)break;else _0x30c193['push'](_0x30c193['shift']());}catch(_0x55658f){_0x30c193['push'](_0x30c193['shift']());}}}(a1_0x108d,0x55a36));Object[a1_0x1c4fe1(0x1ee)](exports,'__esModule',{'value':!![]}),exports[a1_0x1c4fe1(0x1eb)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
@@ -1 +1 @@
1
- 'use strict';function a2_0x29eb(){const _0x1c9dbc=['@midwayjs/cross-domain','addObject','./config/config.production','application','@anncic-api/core','koa','defineProperties','isString','registerMethodHandler','MidwayEnvironmentService','ApiService','549dILDjH','config','./service/ApiService','ApiError','@midwayjs/i18n','dirs','MidwayDecoratorService','checkConfigKeys','key','isArray','input','koa-xml-body','@midwayjs/static-file','1805840eHhhAT','429306ewmEat','18376jCJxbQ','tmpdir','32152ToiWlM','Anncic-api\x20static-file\x20:\x20mkdir\x20','DEFAULT','get','forEach','5oXRWbQ','prototype','@anncic-api/validator','@midwayjs/upload','log','koa-bodyparser','beforeRoute','REQUEST_OBJ_CTX_KEY','decorate','getOwnPropertyDescriptor','Inject','environment','ACTION_ROUTE_KEY','MidwayApplicationManager','isNull','onReady','mkdirSync','function','decorator','238364jReIfl','@anncic-api/typeorm','request','dir','context','length','query','staticFile','existsSync','filterConfig','target','devices','keys','MidwayConfigService','headers','__decorate','6WbfxlK','1470396YCPLJR','handlerActionRoute','device','defineProperty','@midwayjs/koa','__metadata','bodyParser','apimit','useMiddleware','upload','./types/action','3921258YqIynq','getConfiguration','anncicapi','string','HEADERS_SIGNATURE','bodyXml','design:type','hanlderApplications','metadata','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','body','object','getApplications','27xTEclS','CustomConfiguration','defaultsDeep','Configuration'];a2_0x29eb=function(){return _0x1c9dbc;};return a2_0x29eb();}const a2_0x3c3fd9=a2_0xcf84;(function(_0x9ef672,_0x2fe6b2){const _0x33f8a3=a2_0xcf84,_0x2dadbc=_0x9ef672();while(!![]){try{const _0x315c2c=parseInt(_0x33f8a3(0xac))/0x1+parseInt(_0x33f8a3(0xaf))/0x2*(-parseInt(_0x33f8a3(0x8f))/0x3)+parseInt(_0x33f8a3(0xd8))/0x4*(parseInt(_0x33f8a3(0xb4))/0x5)+-parseInt(_0x33f8a3(0xd7))/0x6*(parseInt(_0x33f8a3(0xc7))/0x7)+-parseInt(_0x33f8a3(0xad))/0x8*(-parseInt(_0x33f8a3(0x9e))/0x9)+-parseInt(_0x33f8a3(0xab))/0xa+-parseInt(_0x33f8a3(0x82))/0xb;if(_0x315c2c===_0x2fe6b2)break;else _0x2dadbc['push'](_0x2dadbc['shift']());}catch(_0x5472cd){_0x2dadbc['push'](_0x2dadbc['shift']());}}}(a2_0x29eb,0x36028));function a2_0xcf84(_0x1c4f7f,_0x4cf73f){const _0x29eb05=a2_0x29eb();return a2_0xcf84=function(_0xcf84b0,_0x34398d){_0xcf84b0=_0xcf84b0-0x7b;let _0x2357c3=_0x29eb05[_0xcf84b0];return _0x2357c3;},a2_0xcf84(_0x1c4f7f,_0x4cf73f);}var __decorate=this&&this[a2_0x3c3fd9(0xd6)]||function(_0x5f5a18,_0x3d6c7d,_0x2d48b2,_0x531269){const _0x2ab7e6=a2_0x3c3fd9;var _0x694488=arguments['length'],_0x36db42=_0x694488<0x3?_0x3d6c7d:_0x531269===null?_0x531269=Object[_0x2ab7e6(0xbd)](_0x3d6c7d,_0x2d48b2):_0x531269,_0x2dbc6d;if(typeof Reflect===_0x2ab7e6(0x8d)&&typeof Reflect['decorate']===_0x2ab7e6(0xc5))_0x36db42=Reflect[_0x2ab7e6(0xbc)](_0x5f5a18,_0x3d6c7d,_0x2d48b2,_0x531269);else{for(var _0x5d4b2b=_0x5f5a18[_0x2ab7e6(0xcc)]-0x1;_0x5d4b2b>=0x0;_0x5d4b2b--)if(_0x2dbc6d=_0x5f5a18[_0x5d4b2b])_0x36db42=(_0x694488<0x3?_0x2dbc6d(_0x36db42):_0x694488>0x3?_0x2dbc6d(_0x3d6c7d,_0x2d48b2,_0x36db42):_0x2dbc6d(_0x3d6c7d,_0x2d48b2))||_0x36db42;}return _0x694488>0x3&&_0x36db42&&Object[_0x2ab7e6(0xdb)](_0x3d6c7d,_0x2d48b2,_0x36db42),_0x36db42;},__metadata=this&&this[a2_0x3c3fd9(0x7c)]||function(_0xa9314f,_0x434ed5){const _0x2a13a5=a2_0x3c3fd9;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2a13a5(0xc5))return Reflect[_0x2a13a5(0x8a)](_0xa9314f,_0x434ed5);};Object[a2_0x3c3fd9(0xdb)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x3c3fd9(0xa0)),action_1=require(a2_0x3c3fd9(0x81)),fs=require('fs'),koa=require(a2_0x3c3fd9(0x7b)),i18n=require(a2_0x3c3fd9(0xa2)),task=require('@midwayjs/task'),upload=require(a2_0x3c3fd9(0xb7)),staticFile=require(a2_0x3c3fd9(0xaa)),crossDomain=require(a2_0x3c3fd9(0x93)),bodyXml=require(a2_0x3c3fd9(0xa9)),bodyParser=require(a2_0x3c3fd9(0xb9)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x3c3fd9(0x95)),anncic=require(a2_0x3c3fd9(0x97)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x3c3fd9(0xc8)),anncicValidator=require(a2_0x3c3fd9(0xb6)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x3c3fd9(0xc3)](){const _0xc42503=a2_0x3c3fd9;await this[_0xc42503(0xd0)](),await this[_0xc42503(0xa5)](),await this[_0xc42503(0xd9)](),await this[_0xc42503(0x89)]();}async[a2_0x3c3fd9(0xa5)](){}async[a2_0x3c3fd9(0xd9)](){const _0x16cec9=a2_0x3c3fd9,_0x104ce2=this[_0x16cec9(0x9f)]['getConfiguration']();this[_0x16cec9(0xc6)][_0x16cec9(0x9b)](action_1[_0x16cec9(0xc0)],_0x2e4725=>{const _0x1a257f=_0x2e4725['metadata'];return{'before':async _0xe90756=>{const _0x1c4394=a2_0xcf84;var _0x55db3a,_0x483174,_0x3f4278,_0x4c9b63,_0x89ab4f;const _0x21183c=(_0x55db3a=_0xe90756===null||_0xe90756===void 0x0?void 0x0:_0xe90756[_0x1c4394(0xd1)])===null||_0x55db3a===void 0x0?void 0x0:_0x55db3a[core_1[_0x1c4394(0xbb)]];if(_0x21183c){if((_0x1a257f===null||_0x1a257f===void 0x0?void 0x0:_0x1a257f[_0x1c4394(0x7e)])&&!this['ApiService']['checksign']((_0x483174=_0x21183c===null||_0x21183c===void 0x0?void 0x0:_0x21183c[_0x1c4394(0xc9)])===null||_0x483174===void 0x0?void 0x0:_0x483174[_0x1c4394(0xd5)]))throw new AnnError(ApiError_1[_0x1c4394(0xa1)][_0x1c4394(0x86)]);((_0x3f4278=_0x21183c[_0x1c4394(0xd5)])===null||_0x3f4278===void 0x0?void 0x0:_0x3f4278[_0x1c4394(0xda)])&&((_0x89ab4f=(_0x4c9b63=_0x104ce2===null||_0x104ce2===void 0x0?void 0x0:_0x104ce2['anncicapi'])===null||_0x4c9b63===void 0x0?void 0x0:_0x4c9b63['devices'])===null||_0x89ab4f===void 0x0?void 0x0:_0x89ab4f[_0x21183c[_0x1c4394(0xd5)][_0x1c4394(0xda)]])&&(typeof _0x104ce2[_0x1c4394(0x84)]['devices'][_0x21183c[_0x1c4394(0xd5)][_0x1c4394(0xda)]][_0x1c4394(0xba)]=='function'&&await _0x104ce2[_0x1c4394(0x84)]['devices'][_0x21183c[_0x1c4394(0xd5)][_0x1c4394(0xda)]][_0x1c4394(0xba)]((_0x21183c===null||_0x21183c===void 0x0?void 0x0:_0x21183c['_matchedRoute'])||undefined,_0x1a257f,_0x21183c));}},'afterThrow':(_0x41facc,_0x25582c)=>{throw _0x25582c;}};});}async[a2_0x3c3fd9(0x89)](){const _0x4c7eed=a2_0x3c3fd9;this[_0x4c7eed(0x96)][_0x4c7eed(0x8e)]([_0x4c7eed(0x98)])[_0x4c7eed(0xb3)](_0x459782=>{const _0x4e3835=_0x4c7eed;_0x459782[_0x4e3835(0x7f)](bodyXml(this[_0x4e3835(0x9f)][_0x4e3835(0x83)](_0x4e3835(0x87)))),_0x459782[_0x4e3835(0x7f)](bodyParser(this[_0x4e3835(0x9f)][_0x4e3835(0x83)](_0x4e3835(0x7d)))),(_0x459782===null||_0x459782===void 0x0?void 0x0:_0x459782[_0x4e3835(0xcb)])&&Object[_0x4e3835(0x99)](_0x459782[_0x4e3835(0xcb)],{'ok':{'value':function(_0x1e4c14,_0x4853de,_0x5339ca=0x0){return{'code':_0x5339ca,'data':_0x1e4c14,'extra':_0x4853de};}},'err':{'value':function(_0x55e84f,_0x5091b9,_0x304ba3=0x1){return{'code':_0x304ba3,'extra':_0x5091b9,'msg':_0x55e84f};}},'input':{'value':function(_0x17bf64,_0x501df0){const _0x20f560=_0x4e3835;var _0x48deb0;const _0x7adc9f=lodash[_0x20f560(0x91)]({},this['request'][_0x20f560(0x8c)]||this['request'][((_0x48deb0=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x48deb0===void 0x0?void 0x0:_0x48deb0[_0x20f560(0xa6)])||_0x20f560(0x8c)]||{},this[_0x20f560(0xc9)][_0x20f560(0xcd)]||{});return _0x17bf64?lodash[_0x20f560(0xb2)](_0x7adc9f,_0x17bf64,_0x501df0):_0x7adc9f;}},'when':{'value':async function(_0x4824a6,_0x2c4cf6){const _0x548e9c=_0x4e3835,_0x12738a=this[_0x548e9c(0xa8)](_0x4824a6,null);if(!lodash[_0x548e9c(0xc2)](_0x12738a))return await _0x2c4cf6(_0x12738a);}},'only':{'value':function(_0x384f0b){const _0x43f9c3=_0x4e3835,_0x25a56b={};for(let _0x2aef2d=0x0;_0x2aef2d<_0x384f0b[_0x43f9c3(0xcc)];_0x2aef2d++){lodash[_0x43f9c3(0xa7)](_0x384f0b[_0x2aef2d])&&_0x384f0b[_0x2aef2d]['length']>0x0&&lodash[_0x43f9c3(0x9a)](_0x384f0b[_0x2aef2d][0x0])&&(_0x25a56b[_0x384f0b[_0x2aef2d][0x0]]=this[_0x43f9c3(0xa8)](_0x384f0b[_0x2aef2d][0x0],_0x384f0b[_0x2aef2d]['length']>0x1?_0x384f0b[_0x2aef2d][0x1]:null));}return _0x25a56b;}}});});}async[a2_0x3c3fd9(0xd0)](){const _0x2a2e60=a2_0x3c3fd9;var _0x3e2b0e,_0x5c528b,_0x212390,_0x2c5c89,_0x4dac29,_0x3556da;const _0x1b29a6=this[_0x2a2e60(0x9f)][_0x2a2e60(0x83)]();((_0x5c528b=(_0x3e2b0e=_0x1b29a6===null||_0x1b29a6===void 0x0?void 0x0:_0x1b29a6[_0x2a2e60(0x84)])===null||_0x3e2b0e===void 0x0?void 0x0:_0x3e2b0e['devices'])===null||_0x5c528b===void 0x0?void 0x0:_0x5c528b[_0x2a2e60(0xb1)])&&Object[_0x2a2e60(0xd3)](_0x1b29a6[_0x2a2e60(0x84)][_0x2a2e60(0xd2)])['length']>0x1&&delete _0x1b29a6[_0x2a2e60(0x84)][_0x2a2e60(0xd2)][_0x2a2e60(0xb1)];if((_0x212390=_0x1b29a6===null||_0x1b29a6===void 0x0?void 0x0:_0x1b29a6['staticFile'])===null||_0x212390===void 0x0?void 0x0:_0x212390[_0x2a2e60(0xa3)])for(const _0x475a94 in _0x1b29a6['staticFile'][_0x2a2e60(0xa3)]){((_0x2c5c89=_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94])===null||_0x2c5c89===void 0x0?void 0x0:_0x2c5c89[_0x2a2e60(0xca)])&&typeof((_0x4dac29=_0x1b29a6['staticFile']['dirs'][_0x475a94])===null||_0x4dac29===void 0x0?void 0x0:_0x4dac29[_0x2a2e60(0xca)])==_0x2a2e60(0x85)&&!fs['existsSync'](_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94][_0x2a2e60(0xca)])&&(fs[_0x2a2e60(0xc4)](_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94]['dir'],{'recursive':!![]}),console[_0x2a2e60(0xb8)](_0x2a2e60(0xb0)+_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94][_0x2a2e60(0xca)]));}((_0x3556da=_0x1b29a6===null||_0x1b29a6===void 0x0?void 0x0:_0x1b29a6[_0x2a2e60(0x80)])===null||_0x3556da===void 0x0?void 0x0:_0x3556da[_0x2a2e60(0xae)])&&!fs[_0x2a2e60(0xcf)](_0x1b29a6[_0x2a2e60(0x80)][_0x2a2e60(0xae)])&&(fs[_0x2a2e60(0xc4)](_0x1b29a6[_0x2a2e60(0x80)][_0x2a2e60(0xae)],{'recursive':!![]}),console['log'](_0x2a2e60(0x8b)+_0x1b29a6[_0x2a2e60(0x80)][_0x2a2e60(0xae)])),this[_0x2a2e60(0x9f)][_0x2a2e60(0x94)](_0x1b29a6);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0xd4)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],a2_0x3c3fd9(0x9f),void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0xa4)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0xc1)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],a2_0x3c3fd9(0x96),void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0x9c)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],a2_0x3c3fd9(0xbf),void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),ApiService_1[a2_0x3c3fd9(0x9d)])],CustomConfiguration['prototype'],a2_0x3c3fd9(0x9d),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x3c3fd9(0x92)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x3c3fd9(0x90)]=CustomConfiguration;
1
+ 'use strict';const a2_0x1143ee=a2_0x5704;(function(_0x4c160c,_0x47f352){const _0x1ff65b=a2_0x5704,_0x17019c=_0x4c160c();while(!![]){try{const _0x37cd5d=-parseInt(_0x1ff65b(0x215))/0x1*(parseInt(_0x1ff65b(0x21e))/0x2)+-parseInt(_0x1ff65b(0x1f4))/0x3*(parseInt(_0x1ff65b(0x1fe))/0x4)+-parseInt(_0x1ff65b(0x219))/0x5*(-parseInt(_0x1ff65b(0x21d))/0x6)+-parseInt(_0x1ff65b(0x24f))/0x7+parseInt(_0x1ff65b(0x20c))/0x8+-parseInt(_0x1ff65b(0x217))/0x9+parseInt(_0x1ff65b(0x207))/0xa;if(_0x37cd5d===_0x47f352)break;else _0x17019c['push'](_0x17019c['shift']());}catch(_0x1f0fdd){_0x17019c['push'](_0x17019c['shift']());}}}(a2_0x9178,0xa33c3));function a2_0x9178(){const _0x46720d=['@midwayjs/cross-domain','koa','@anncic-api/core','tmpdir','defaultsDeep','58594fSAYCR','./exception/ApiError','3604608FyGlWL','Inject','31435JNfDkp','__metadata','registerMethodHandler','decorate','24OpqGFX','30aWHiHu','mkdirSync','headers','getConfiguration','checkConfigKeys','existsSync','request','@midwayjs/koa','__esModule','input','string','object','bodyXml','getOwnPropertyDescriptor','hanlderApplications','handlerActionRoute','environment','@midwayjs/decorator','function','device','design:type','staticFile','@anncic-api/event','log','anncicapi','defineProperties','onReady','@midwayjs/upload','useMiddleware','isString','beforeRoute','./config/config.production','ApiService','./config/config.default','isNull','context','MidwayEnvironmentService','REQUEST_OBJ_CTX_KEY','upload','filterConfig','koa-xml-body','apimit','Configuration','get','./types/action','MidwayApplicationManager','bodyParser','getApplications','forEach','2945600hAqhQE','length','@anncic-api/validator','234xeQtad','anncic-apihelper','config','ACTION_ROUTE_KEY','query','CustomConfiguration','isArray','dir','DEFAULT','defineProperty','17484fdtLKh','anncic-api','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/core','metadata','@midwayjs/static-file','key','@midwayjs/i18n','application','14346240oYePPe','HEADERS_SIGNATURE','devices','@midwayjs/task','prototype','9999992NgKqHg','ApiError','dirs','target'];a2_0x9178=function(){return _0x46720d;};return a2_0x9178();}var __decorate=this&&this['__decorate']||function(_0x3ff85d,_0x220e18,_0xb505b2,_0x33bbd8){const _0x300779=a2_0x5704;var _0x3e2f94=arguments[_0x300779(0x250)],_0x6f83e9=_0x3e2f94<0x3?_0x220e18:_0x33bbd8===null?_0x33bbd8=Object[_0x300779(0x22b)](_0x220e18,_0xb505b2):_0x33bbd8,_0xbd73ee;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x300779(0x230))_0x6f83e9=Reflect[_0x300779(0x21c)](_0x3ff85d,_0x220e18,_0xb505b2,_0x33bbd8);else{for(var _0x3a6266=_0x3ff85d[_0x300779(0x250)]-0x1;_0x3a6266>=0x0;_0x3a6266--)if(_0xbd73ee=_0x3ff85d[_0x3a6266])_0x6f83e9=(_0x3e2f94<0x3?_0xbd73ee(_0x6f83e9):_0x3e2f94>0x3?_0xbd73ee(_0x220e18,_0xb505b2,_0x6f83e9):_0xbd73ee(_0x220e18,_0xb505b2))||_0x6f83e9;}return _0x3e2f94>0x3&&_0x6f83e9&&Object[_0x300779(0x1fd)](_0x220e18,_0xb505b2,_0x6f83e9),_0x6f83e9;},__metadata=this&&this[a2_0x1143ee(0x21a)]||function(_0x1e84e3,_0x3cb935){const _0x46127e=a2_0x1143ee;if(typeof Reflect===_0x46127e(0x229)&&typeof Reflect[_0x46127e(0x202)]===_0x46127e(0x230))return Reflect[_0x46127e(0x202)](_0x1e84e3,_0x3cb935);};Object[a2_0x1143ee(0x1fd)](exports,a2_0x1143ee(0x226),{'value':!![]}),exports[a2_0x1143ee(0x1f9)]=void 0x0;function a2_0x5704(_0x29ba80,_0x34090d){const _0x91786d=a2_0x9178();return a2_0x5704=function(_0x57042d,_0x4a9c2a){_0x57042d=_0x57042d-0x1f4;let _0x4355bc=_0x91786d[_0x57042d];return _0x4355bc;},a2_0x5704(_0x29ba80,_0x34090d);}const decorator_1=require(a2_0x1143ee(0x22f)),core_1=require(a2_0x1143ee(0x201)),ApiError_1=require(a2_0x1143ee(0x216)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x1143ee(0x24a)),fs=require('fs'),koa=require(a2_0x1143ee(0x225)),i18n=require(a2_0x1143ee(0x205)),task=require(a2_0x1143ee(0x20a)),upload=require(a2_0x1143ee(0x239)),staticFile=require(a2_0x1143ee(0x203)),crossDomain=require(a2_0x1143ee(0x210)),bodyXml=require(a2_0x1143ee(0x246)),bodyParser=require('koa-bodyparser'),ConfigDefault=require(a2_0x1143ee(0x23f)),ConfigProduction=require(a2_0x1143ee(0x23d)),anncic=require(a2_0x1143ee(0x212)),anncicEvent=require(a2_0x1143ee(0x234)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x1143ee(0x251)),anncicHelper=require(a2_0x1143ee(0x1f5));let CustomConfiguration=class CustomConfiguration{async[a2_0x1143ee(0x238)](){const _0x1f8535=a2_0x1143ee;await this['filterConfig'](),await this['checkConfigKeys'](),await this[_0x1f8535(0x22d)](),await this[_0x1f8535(0x22c)]();}async[a2_0x1143ee(0x222)](){}async[a2_0x1143ee(0x22d)](){const _0x4ed348=a2_0x1143ee,_0xf66782=this['config']['getConfiguration']();this['decorator'][_0x4ed348(0x21b)](action_1[_0x4ed348(0x1f7)],_0x281255=>{const _0x32abe0=_0x4ed348,_0x15337f=_0x281255[_0x32abe0(0x202)];return{'before':async _0xa28438=>{const _0x842d50=_0x32abe0;var _0x4b5546,_0x352b63,_0x400761,_0x804389,_0x47a468;const _0x41f5e3=(_0x4b5546=_0xa28438===null||_0xa28438===void 0x0?void 0x0:_0xa28438[_0x842d50(0x20f)])===null||_0x4b5546===void 0x0?void 0x0:_0x4b5546[core_1[_0x842d50(0x243)]];if(_0x41f5e3){if((_0x15337f===null||_0x15337f===void 0x0?void 0x0:_0x15337f[_0x842d50(0x247)])&&!this[_0x842d50(0x23e)]['checksign']((_0x352b63=_0x41f5e3===null||_0x41f5e3===void 0x0?void 0x0:_0x41f5e3[_0x842d50(0x224)])===null||_0x352b63===void 0x0?void 0x0:_0x352b63['headers']))throw new AnnError(ApiError_1[_0x842d50(0x20d)][_0x842d50(0x208)]);((_0x400761=_0x41f5e3['headers'])===null||_0x400761===void 0x0?void 0x0:_0x400761['device'])&&((_0x47a468=(_0x804389=_0xf66782===null||_0xf66782===void 0x0?void 0x0:_0xf66782['anncicapi'])===null||_0x804389===void 0x0?void 0x0:_0x804389['devices'])===null||_0x47a468===void 0x0?void 0x0:_0x47a468[_0x41f5e3[_0x842d50(0x220)][_0x842d50(0x231)]])&&(typeof _0xf66782[_0x842d50(0x236)][_0x842d50(0x209)][_0x41f5e3[_0x842d50(0x220)][_0x842d50(0x231)]]['beforeRoute']==_0x842d50(0x230)&&await _0xf66782['anncicapi'][_0x842d50(0x209)][_0x41f5e3[_0x842d50(0x220)][_0x842d50(0x231)]][_0x842d50(0x23c)]((_0x41f5e3===null||_0x41f5e3===void 0x0?void 0x0:_0x41f5e3['_matchedRoute'])||undefined,_0x15337f,_0x41f5e3));}},'afterThrow':(_0x43edb9,_0x1f7937)=>{throw _0x1f7937;}};});}async['hanlderApplications'](){const _0x280e03=a2_0x1143ee;this[_0x280e03(0x206)][_0x280e03(0x24d)]([_0x280e03(0x211)])[_0x280e03(0x24e)](_0x393d74=>{const _0x47c52b=_0x280e03;_0x393d74[_0x47c52b(0x23a)](bodyXml(this['config'][_0x47c52b(0x221)](_0x47c52b(0x22a)))),_0x393d74[_0x47c52b(0x23a)](bodyParser(this[_0x47c52b(0x1f6)][_0x47c52b(0x221)](_0x47c52b(0x24c)))),(_0x393d74===null||_0x393d74===void 0x0?void 0x0:_0x393d74[_0x47c52b(0x241)])&&Object[_0x47c52b(0x237)](_0x393d74['context'],{'ok':{'value':function(_0x448bb0,_0x2b9bc6,_0x264d73=0x0){return{'code':_0x264d73,'data':_0x448bb0,'extra':_0x2b9bc6};}},'err':{'value':function(_0x57cecf,_0x29c3ed,_0xe2baf4=0x1){return{'code':_0xe2baf4,'extra':_0x29c3ed,'msg':_0x57cecf};}},'input':{'value':function(_0x2462dc,_0x52902a){const _0x5b72b8=_0x47c52b;var _0x5f3456;const _0x2fc1a7=lodash[_0x5b72b8(0x214)]({},this[_0x5b72b8(0x224)]['body']||this['request'][((_0x5f3456=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x5f3456===void 0x0?void 0x0:_0x5f3456[_0x5b72b8(0x204)])||'body']||{},this[_0x5b72b8(0x224)][_0x5b72b8(0x1f8)]||{});return _0x2462dc?lodash[_0x5b72b8(0x249)](_0x2fc1a7,_0x2462dc,_0x52902a):_0x2fc1a7;}},'when':{'value':async function(_0x4afbfc,_0x3470c9){const _0x27c617=_0x47c52b,_0x508d9c=this[_0x27c617(0x227)](_0x4afbfc,null);if(!lodash[_0x27c617(0x240)](_0x508d9c))return await _0x3470c9(_0x508d9c);}},'only':{'value':function(_0x27ecc1){const _0x3e4b48=_0x47c52b,_0x1c173e={};for(let _0x304e50=0x0;_0x304e50<_0x27ecc1[_0x3e4b48(0x250)];_0x304e50++){lodash[_0x3e4b48(0x1fa)](_0x27ecc1[_0x304e50])&&_0x27ecc1[_0x304e50]['length']>0x0&&lodash[_0x3e4b48(0x23b)](_0x27ecc1[_0x304e50][0x0])&&(_0x1c173e[_0x27ecc1[_0x304e50][0x0]]=this[_0x3e4b48(0x227)](_0x27ecc1[_0x304e50][0x0],_0x27ecc1[_0x304e50][_0x3e4b48(0x250)]>0x1?_0x27ecc1[_0x304e50][0x1]:null));}return _0x1c173e;}}});});}async[a2_0x1143ee(0x245)](){const _0x2d5874=a2_0x1143ee;var _0x1ee85e,_0x3caefc,_0x4a5117,_0x3aa1a8,_0x196288,_0x495ad5;const _0x94217e=this[_0x2d5874(0x1f6)]['getConfiguration']();((_0x3caefc=(_0x1ee85e=_0x94217e===null||_0x94217e===void 0x0?void 0x0:_0x94217e[_0x2d5874(0x236)])===null||_0x1ee85e===void 0x0?void 0x0:_0x1ee85e['devices'])===null||_0x3caefc===void 0x0?void 0x0:_0x3caefc[_0x2d5874(0x1fc)])&&Object['keys'](_0x94217e[_0x2d5874(0x236)][_0x2d5874(0x209)])[_0x2d5874(0x250)]>0x1&&delete _0x94217e[_0x2d5874(0x236)]['devices'][_0x2d5874(0x1fc)];if((_0x4a5117=_0x94217e===null||_0x94217e===void 0x0?void 0x0:_0x94217e[_0x2d5874(0x233)])===null||_0x4a5117===void 0x0?void 0x0:_0x4a5117[_0x2d5874(0x20e)])for(const _0x4c5f26 in _0x94217e[_0x2d5874(0x233)][_0x2d5874(0x20e)]){((_0x3aa1a8=_0x94217e['staticFile'][_0x2d5874(0x20e)][_0x4c5f26])===null||_0x3aa1a8===void 0x0?void 0x0:_0x3aa1a8['dir'])&&typeof((_0x196288=_0x94217e[_0x2d5874(0x233)][_0x2d5874(0x20e)][_0x4c5f26])===null||_0x196288===void 0x0?void 0x0:_0x196288['dir'])==_0x2d5874(0x228)&&!fs[_0x2d5874(0x223)](_0x94217e[_0x2d5874(0x233)][_0x2d5874(0x20e)][_0x4c5f26][_0x2d5874(0x1fb)])&&(fs[_0x2d5874(0x21f)](_0x94217e['staticFile'][_0x2d5874(0x20e)][_0x4c5f26][_0x2d5874(0x1fb)],{'recursive':!![]}),console[_0x2d5874(0x235)](_0x2d5874(0x200)+_0x94217e['staticFile'][_0x2d5874(0x20e)][_0x4c5f26][_0x2d5874(0x1fb)]));}((_0x495ad5=_0x94217e===null||_0x94217e===void 0x0?void 0x0:_0x94217e[_0x2d5874(0x244)])===null||_0x495ad5===void 0x0?void 0x0:_0x495ad5['tmpdir'])&&!fs[_0x2d5874(0x223)](_0x94217e[_0x2d5874(0x244)][_0x2d5874(0x213)])&&(fs[_0x2d5874(0x21f)](_0x94217e[_0x2d5874(0x244)][_0x2d5874(0x213)],{'recursive':!![]}),console[_0x2d5874(0x235)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x94217e[_0x2d5874(0x244)][_0x2d5874(0x213)])),this[_0x2d5874(0x1f6)]['addObject'](_0x94217e);}};__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x1f6),void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x1143ee(0x20b)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1[a2_0x1143ee(0x24b)])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x206),void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1[a2_0x1143ee(0x242)])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x22e),void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),ApiService_1[a2_0x1143ee(0x23e)])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x23e),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1143ee(0x248)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1143ee(0x1ff),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1143ee(0x1f9)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a3_0x3351de=a3_0x2e88;(function(_0x24b9b6,_0x6b5f1b){const _0x11102f=a3_0x2e88,_0x4e0e13=_0x24b9b6();while(!![]){try{const _0x56b6a2=parseInt(_0x11102f(0x96))/0x1*(parseInt(_0x11102f(0xb7))/0x2)+-parseInt(_0x11102f(0x9f))/0x3+-parseInt(_0x11102f(0xa3))/0x4+parseInt(_0x11102f(0xa0))/0x5*(parseInt(_0x11102f(0xa7))/0x6)+parseInt(_0x11102f(0xa5))/0x7+-parseInt(_0x11102f(0x8e))/0x8+-parseInt(_0x11102f(0x8d))/0x9;if(_0x56b6a2===_0x6b5f1b)break;else _0x4e0e13['push'](_0x4e0e13['shift']());}catch(_0x43e099){_0x4e0e13['push'](_0x4e0e13['shift']());}}}(a3_0x315c,0xab50e));function a3_0x315c(){const _0x834dff=['length','309717HyUgKW','35GcYaun','saveModule','-controller','426576EaPrJv','parseRoute','6653430woqqKH','startsWith','464406GdpmsD','toLowerCase','indexOf','splice','ACTION_KEY','push','module','\x20文件请放在app/controller/文件下','filepath','filter','middlewareIgnore','route','join','/apps/','../types/action','-action','6IFGCxv','middleware','/config.','split','cwd','\x20文件请放在apps/','substring','match','12072897SQGVwS','4416640JdGtUJ','@midwayjs/decorator','Action','trim','endsWith','replace','saveClassMetadata','app/controller/','437603CyJzmz','tagName','apps/','rootpath','prefix','defineProperty','/controller/文件下','/controller/'];a3_0x315c=function(){return _0x834dff;};return a3_0x315c();}Object[a3_0x3351de(0x9b)](exports,'__esModule',{'value':!![]}),exports[a3_0x3351de(0xa4)]=exports[a3_0x3351de(0x90)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x3351de(0x8f)),action_1=require(a3_0x3351de(0xb5));function Action(_0x4b527d,_0x4753a6,_0x21ba10={'middleware':[],'sensitive':!![]}){return _0x51d671=>{const _0x60ce71=a3_0x2e88;_0x21ba10[_0x60ce71(0x97)]=_0x4753a6;const _0x23684d=parseRoute(_0x4b527d);if(_0x23684d['module']){_0x21ba10[_0x60ce71(0x9a)]=_0x21ba10[_0x60ce71(0x9a)]?'/'+_0x23684d[_0x60ce71(0xad)]+'/'+_0x21ba10[_0x60ce71(0x9a)]:'/'+_0x23684d[_0x60ce71(0xb2)];_0x23684d[_0x60ce71(0x9a)]&&(_0x21ba10[_0x60ce71(0x9a)]='/'+_0x23684d['prefix']+'/'+_0x21ba10[_0x60ce71(0x9a)]);if(fs['existsSync'](_0x23684d['rootpath']+'/apps/'+_0x23684d[_0x60ce71(0xad)]+_0x60ce71(0xb9)+(lodash['endsWith'](_0x23684d[_0x60ce71(0xaf)],'ts')?'ts':'js'))){const _0x44749f=include(_0x23684d[_0x60ce71(0x99)]+_0x60ce71(0xb4)+_0x23684d[_0x60ce71(0xad)]+_0x60ce71(0xb9)+(lodash['endsWith'](_0x23684d[_0x60ce71(0xaf)],'ts')?'ts':'js'));if(_0x44749f['middleware']&&lodash['isArray'](_0x44749f[_0x60ce71(0xb8)])&&_0x44749f['middleware'][_0x60ce71(0x9e)]>0x0)for(let _0x1a5427 in _0x44749f[_0x60ce71(0xb8)]){_0x44749f[_0x60ce71(0xb1)][_0x60ce71(0xa9)](_0x44749f[_0x60ce71(0xb8)][_0x1a5427])==-0x1&&_0x21ba10[_0x60ce71(0xb8)][_0x60ce71(0xac)](_0x44749f[_0x60ce71(0xb8)][_0x1a5427]);}}_0x21ba10[_0x60ce71(0x9a)]=_0x21ba10[_0x60ce71(0x9a)][_0x60ce71(0xa8)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x60ce71(0xa1)])(action_1[_0x60ce71(0xab)],_0x51d671),(0x0,decorator_1['Controller'])(_0x21ba10[_0x60ce71(0x9a)],_0x21ba10)(_0x51d671),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x60ce71(0xab)],{'prefix':_0x21ba10[_0x60ce71(0x9a)],'pprefix':_0x23684d[_0x60ce71(0x9a)],'module':_0x23684d[_0x60ce71(0xad)],'filepath':_0x23684d[_0x60ce71(0xaf)],'routerOptions':_0x21ba10},_0x51d671);}else _0x21ba10[_0x60ce71(0x9a)]=_0x21ba10[_0x60ce71(0x9a)]?'/'+_0x21ba10[_0x60ce71(0x9a)]:'/'+_0x23684d[_0x60ce71(0xb2)],_0x23684d['prefix']&&(_0x21ba10[_0x60ce71(0x9a)]='/'+_0x23684d[_0x60ce71(0x9a)]+'/'+_0x21ba10[_0x60ce71(0x9a)]),_0x21ba10['prefix']=_0x21ba10[_0x60ce71(0x9a)][_0x60ce71(0xa8)]()[_0x60ce71(0x93)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x60ce71(0xa1)])(action_1[_0x60ce71(0xab)],_0x51d671),(0x0,decorator_1['Controller'])(_0x21ba10[_0x60ce71(0x9a)],_0x21ba10)(_0x51d671),(0x0,decorator_1[_0x60ce71(0x94)])(action_1[_0x60ce71(0xab)],{'prefix':_0x21ba10[_0x60ce71(0x9a)],'module':_0x23684d[_0x60ce71(0xad)],'pprefix':_0x23684d[_0x60ce71(0x9a)],'filepath':_0x23684d[_0x60ce71(0xaf)],'routerOptions':_0x21ba10},_0x51d671);};}exports['Action']=Action;function a3_0x2e88(_0x1aba57,_0x218de8){const _0x315c29=a3_0x315c();return a3_0x2e88=function(_0x2e8829,_0x225d31){_0x2e8829=_0x2e8829-0x89;let _0x162bc4=_0x315c29[_0x2e8829];return _0x162bc4;},a3_0x2e88(_0x1aba57,_0x218de8);}function parseRoute(_0x5696f4){const _0x4dfe98=a3_0x3351de;_0x5696f4=_0x5696f4['replace'](/(\\|\/)/g,'/');const _0x22d5ec=process[_0x4dfe98(0x89)]()[_0x4dfe98(0x93)](/(\\|\/)/g,'/'),_0x317bb3=_0x5696f4['substring'](0x0,_0x22d5ec['length']+_0x5696f4[_0x4dfe98(0x8b)](_0x22d5ec['length']+0x1)[_0x4dfe98(0xa9)]('/')+0x1),_0x107316=_0x5696f4[_0x4dfe98(0x8b)](_0x317bb3[_0x4dfe98(0x9e)]+0x1)[_0x4dfe98(0x93)](/(\\|\/)/g,'/'),_0xe20d62={'route':'','prefix':![],'module':![],'rootpath':_0x317bb3,'filepath':_0x107316};if(_0x107316[_0x4dfe98(0xa6)](_0x4dfe98(0x95))){const _0x3cd4b9=_0x107316['substring'](_0x4dfe98(0x95)['length'])[_0x4dfe98(0xba)]('/')['filter'](_0xb3b619=>_0xb3b619&&_0xb3b619[_0x4dfe98(0x91)]());return _0x3cd4b9[_0x4dfe98(0x9e)]>0x1&&(_0xe20d62['prefix']=_0x3cd4b9[0x0]['toLowerCase'](),_0x3cd4b9[_0x4dfe98(0xaa)](0x0,0x1)),_0xe20d62[_0x4dfe98(0xb2)]=('/'+_0x3cd4b9['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4dfe98(0x93)](/\/{2,}/g,'/')[_0x4dfe98(0x8c)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0xe20d62['route'][_0x4dfe98(0x92)](_0x4dfe98(0xb6))&&(_0xe20d62[_0x4dfe98(0xb2)]=_0xe20d62[_0x4dfe98(0xb2)][_0x4dfe98(0x8b)](0x0,_0xe20d62['route']['length']-0x7)),_0xe20d62[_0x4dfe98(0xb2)][_0x4dfe98(0x92)](_0x4dfe98(0xa2))&&(_0xe20d62[_0x4dfe98(0xb2)]=_0xe20d62[_0x4dfe98(0xb2)]['substring'](0x0,_0xe20d62['route'][_0x4dfe98(0x9e)]-0xb)),_0xe20d62;}else{if(_0x107316[_0x4dfe98(0xa6)](_0x4dfe98(0x98))){const _0x314b1e=_0x107316[_0x4dfe98(0x8b)](0x0,_0x107316[_0x4dfe98(0xa9)](_0x4dfe98(0xb4))+0x5),_0x4deffb=_0x107316[_0x4dfe98(0x8b)](_0x314b1e['length']+0x1)[_0x4dfe98(0x93)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x107316['startsWith']('apps/'+_0x4deffb+_0x4dfe98(0x9d))){const _0x29eb96=_0x107316[_0x4dfe98(0x8b)]((_0x314b1e+'/'+_0x4deffb+_0x4dfe98(0x9d))[_0x4dfe98(0x9e)])[_0x4dfe98(0xba)]('/')[_0x4dfe98(0xb0)](_0x419bcf=>_0x419bcf&&_0x419bcf['trim']());return _0x29eb96[_0x4dfe98(0x9e)]>0x1&&(_0xe20d62[_0x4dfe98(0x9a)]=_0x29eb96[0x0]['toLowerCase'](),_0x29eb96[_0x4dfe98(0xaa)](0x0,0x1)),_0xe20d62['module']=_0x4deffb,_0xe20d62[_0x4dfe98(0xb2)]=('/'+_0x4deffb+'/'+_0x29eb96['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4dfe98(0x93)](/\/{2,}/,'/')[_0x4dfe98(0x8c)](/[\/|A-Z]*[^A-Z]+/g)[_0x4dfe98(0xb3)]('-')[_0x4dfe98(0xa8)]()[_0x4dfe98(0x93)](/\/\-/g,'/'),_0xe20d62[_0x4dfe98(0xb2)][_0x4dfe98(0x92)]('-action')&&(_0xe20d62[_0x4dfe98(0xb2)]=_0xe20d62[_0x4dfe98(0xb2)]['substring'](0x0,_0xe20d62['route'][_0x4dfe98(0x9e)]-0x7)),_0xe20d62[_0x4dfe98(0xb2)][_0x4dfe98(0x92)]('-controller')&&(_0xe20d62[_0x4dfe98(0xb2)]=_0xe20d62[_0x4dfe98(0xb2)][_0x4dfe98(0x8b)](0x0,_0xe20d62[_0x4dfe98(0xb2)][_0x4dfe98(0x9e)]-0xb)),_0xe20d62;}throw new Error(_0x107316+_0x4dfe98(0x8a)+_0x4deffb+_0x4dfe98(0x9c));}}throw new Error(_0x107316+_0x4dfe98(0xae));}exports['parseRoute']=parseRoute;
1
+ 'use strict';const a3_0x52a011=a3_0x5ca0;(function(_0xd99b4e,_0x8a02c8){const _0x302b64=a3_0x5ca0,_0xb4a66e=_0xd99b4e();while(!![]){try{const _0x41162b=parseInt(_0x302b64(0x168))/0x1+-parseInt(_0x302b64(0x141))/0x2+-parseInt(_0x302b64(0x16b))/0x3*(parseInt(_0x302b64(0x161))/0x4)+parseInt(_0x302b64(0x152))/0x5*(parseInt(_0x302b64(0x167))/0x6)+parseInt(_0x302b64(0x15e))/0x7*(-parseInt(_0x302b64(0x14e))/0x8)+-parseInt(_0x302b64(0x144))/0x9+-parseInt(_0x302b64(0x14a))/0xa*(-parseInt(_0x302b64(0x157))/0xb);if(_0x41162b===_0x8a02c8)break;else _0xb4a66e['push'](_0xb4a66e['shift']());}catch(_0x55a398){_0xb4a66e['push'](_0xb4a66e['shift']());}}}(a3_0x4615,0x25636));function a3_0x4615(){const _0x3df60f=['replace','1254RthUxM','trim','filter','middleware','defineProperty','app/controller/','ACTION_KEY','364SbayKX','Action','/apps/','548748wtLFqG','push','splice','/config.','saveModule','\x20文件请放在app/controller/文件下','126bsaheG','228161shPYys','substring','route','3wsXbsv','prefix','@midwayjs/decorator','apps/','/controller/文件下','Controller','join','__esModule','module','507888mvlHhZ','filepath','length','313713zfLrEy','toLowerCase','match','saveClassMetadata','parseRoute','isArray','38390rYuqvB','existsSync','-controller','/controller/','28904apxbWy','../types/action','endsWith','indexOf','24095ObRLtV','-action','split','startsWith'];a3_0x4615=function(){return _0x3df60f;};return a3_0x4615();}function a3_0x5ca0(_0xb6c638,_0x556556){const _0x46153=a3_0x4615();return a3_0x5ca0=function(_0x5ca056,_0x4c07f3){_0x5ca056=_0x5ca056-0x13c;let _0x3862fd=_0x46153[_0x5ca056];return _0x3862fd;},a3_0x5ca0(_0xb6c638,_0x556556);}Object[a3_0x52a011(0x15b)](exports,a3_0x52a011(0x13f),{'value':!![]}),exports[a3_0x52a011(0x148)]=exports[a3_0x52a011(0x15f)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x52a011(0x16d)),action_1=require(a3_0x52a011(0x14f));function Action(_0x5accab,_0xf27e5c,_0x269ddc={'middleware':[],'sensitive':!![]}){return _0x62ec44=>{const _0x566c8a=a3_0x5ca0;_0x269ddc['tagName']=_0xf27e5c;const _0x19620e=parseRoute(_0x5accab);if(_0x19620e[_0x566c8a(0x140)]){_0x269ddc[_0x566c8a(0x16c)]=_0x269ddc[_0x566c8a(0x16c)]?'/'+_0x19620e[_0x566c8a(0x140)]+'/'+_0x269ddc[_0x566c8a(0x16c)]:'/'+_0x19620e[_0x566c8a(0x16a)];_0x19620e[_0x566c8a(0x16c)]&&(_0x269ddc['prefix']='/'+_0x19620e[_0x566c8a(0x16c)]+'/'+_0x269ddc[_0x566c8a(0x16c)]);if(fs[_0x566c8a(0x14b)](_0x19620e['rootpath']+_0x566c8a(0x160)+_0x19620e[_0x566c8a(0x140)]+'/config.'+(lodash[_0x566c8a(0x150)](_0x19620e[_0x566c8a(0x142)],'ts')?'ts':'js'))){const _0x40be38=include(_0x19620e['rootpath']+'/apps/'+_0x19620e[_0x566c8a(0x140)]+_0x566c8a(0x164)+(lodash[_0x566c8a(0x150)](_0x19620e[_0x566c8a(0x142)],'ts')?'ts':'js'));if(_0x40be38[_0x566c8a(0x15a)]&&lodash[_0x566c8a(0x149)](_0x40be38[_0x566c8a(0x15a)])&&_0x40be38['middleware'][_0x566c8a(0x143)]>0x0)for(let _0x3931ca in _0x40be38[_0x566c8a(0x15a)]){_0x40be38['middlewareIgnore'][_0x566c8a(0x151)](_0x40be38[_0x566c8a(0x15a)][_0x3931ca])==-0x1&&_0x269ddc['middleware'][_0x566c8a(0x162)](_0x40be38[_0x566c8a(0x15a)][_0x3931ca]);}}_0x269ddc[_0x566c8a(0x16c)]=_0x269ddc['prefix'][_0x566c8a(0x145)]()[_0x566c8a(0x156)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x566c8a(0x15d)],_0x62ec44),(0x0,decorator_1[_0x566c8a(0x13d)])(_0x269ddc[_0x566c8a(0x16c)],_0x269ddc)(_0x62ec44),(0x0,decorator_1[_0x566c8a(0x147)])(action_1[_0x566c8a(0x15d)],{'prefix':_0x269ddc[_0x566c8a(0x16c)],'pprefix':_0x19620e[_0x566c8a(0x16c)],'module':_0x19620e[_0x566c8a(0x140)],'filepath':_0x19620e['filepath'],'routerOptions':_0x269ddc},_0x62ec44);}else _0x269ddc[_0x566c8a(0x16c)]=_0x269ddc['prefix']?'/'+_0x269ddc[_0x566c8a(0x16c)]:'/'+_0x19620e[_0x566c8a(0x16a)],_0x19620e['prefix']&&(_0x269ddc[_0x566c8a(0x16c)]='/'+_0x19620e[_0x566c8a(0x16c)]+'/'+_0x269ddc['prefix']),_0x269ddc[_0x566c8a(0x16c)]=_0x269ddc[_0x566c8a(0x16c)][_0x566c8a(0x145)]()[_0x566c8a(0x156)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x566c8a(0x165)])(action_1[_0x566c8a(0x15d)],_0x62ec44),(0x0,decorator_1[_0x566c8a(0x13d)])(_0x269ddc[_0x566c8a(0x16c)],_0x269ddc)(_0x62ec44),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x566c8a(0x15d)],{'prefix':_0x269ddc['prefix'],'module':_0x19620e[_0x566c8a(0x140)],'pprefix':_0x19620e[_0x566c8a(0x16c)],'filepath':_0x19620e[_0x566c8a(0x142)],'routerOptions':_0x269ddc},_0x62ec44);};}exports[a3_0x52a011(0x15f)]=Action;function parseRoute(_0x4f6983){const _0x10abd8=a3_0x52a011;_0x4f6983=_0x4f6983[_0x10abd8(0x156)](/(\\|\/)/g,'/');const _0xa51685=process['cwd']()[_0x10abd8(0x156)](/(\\|\/)/g,'/'),_0x323bd2=_0x4f6983['substring'](0x0,_0xa51685[_0x10abd8(0x143)]+_0x4f6983[_0x10abd8(0x169)](_0xa51685[_0x10abd8(0x143)]+0x1)[_0x10abd8(0x151)]('/')+0x1),_0x21f8a9=_0x4f6983[_0x10abd8(0x169)](_0x323bd2['length']+0x1)[_0x10abd8(0x156)](/(\\|\/)/g,'/'),_0x5a85c3={'route':'','prefix':![],'module':![],'rootpath':_0x323bd2,'filepath':_0x21f8a9};if(_0x21f8a9['startsWith'](_0x10abd8(0x15c))){const _0x50930f=_0x21f8a9[_0x10abd8(0x169)](_0x10abd8(0x15c)[_0x10abd8(0x143)])[_0x10abd8(0x154)]('/')[_0x10abd8(0x159)](_0x1fb1a9=>_0x1fb1a9&&_0x1fb1a9[_0x10abd8(0x158)]());return _0x50930f[_0x10abd8(0x143)]>0x1&&(_0x5a85c3['prefix']=_0x50930f[0x0][_0x10abd8(0x145)](),_0x50930f[_0x10abd8(0x163)](0x0,0x1)),_0x5a85c3[_0x10abd8(0x16a)]=('/'+_0x50930f[_0x10abd8(0x13e)]('/'))[_0x10abd8(0x156)](/(\.ts|\.js)$/,'')[_0x10abd8(0x156)](/\/{2,}/g,'/')[_0x10abd8(0x146)](/[\/|A-Z]*[^A-Z]+/g)[_0x10abd8(0x13e)]('-')['toLowerCase']()[_0x10abd8(0x156)](/\/\-/g,'/'),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)]('-action')&&(_0x5a85c3[_0x10abd8(0x16a)]=_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x169)](0x0,_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x143)]-0x7)),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)](_0x10abd8(0x14c))&&(_0x5a85c3[_0x10abd8(0x16a)]=_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x169)](0x0,_0x5a85c3[_0x10abd8(0x16a)]['length']-0xb)),_0x5a85c3;}else{if(_0x21f8a9['startsWith'](_0x10abd8(0x16e))){const _0x55aa2f=_0x21f8a9[_0x10abd8(0x169)](0x0,_0x21f8a9[_0x10abd8(0x151)](_0x10abd8(0x160))+0x5),_0x475760=_0x21f8a9['substring'](_0x55aa2f[_0x10abd8(0x143)]+0x1)[_0x10abd8(0x156)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x21f8a9[_0x10abd8(0x155)](_0x10abd8(0x16e)+_0x475760+'/controller/')){const _0x23987c=_0x21f8a9['substring']((_0x55aa2f+'/'+_0x475760+_0x10abd8(0x14d))[_0x10abd8(0x143)])[_0x10abd8(0x154)]('/')[_0x10abd8(0x159)](_0x5601c7=>_0x5601c7&&_0x5601c7[_0x10abd8(0x158)]());return _0x23987c[_0x10abd8(0x143)]>0x1&&(_0x5a85c3[_0x10abd8(0x16c)]=_0x23987c[0x0]['toLowerCase'](),_0x23987c[_0x10abd8(0x163)](0x0,0x1)),_0x5a85c3[_0x10abd8(0x140)]=_0x475760,_0x5a85c3[_0x10abd8(0x16a)]=('/'+_0x475760+'/'+_0x23987c[_0x10abd8(0x13e)]('/'))[_0x10abd8(0x156)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x10abd8(0x13e)]('-')['toLowerCase']()[_0x10abd8(0x156)](/\/\-/g,'/'),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)](_0x10abd8(0x153))&&(_0x5a85c3['route']=_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x169)](0x0,_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x143)]-0x7)),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)](_0x10abd8(0x14c))&&(_0x5a85c3[_0x10abd8(0x16a)]=_0x5a85c3['route']['substring'](0x0,_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x143)]-0xb)),_0x5a85c3;}throw new Error(_0x21f8a9+'\x20文件请放在apps/'+_0x475760+_0x10abd8(0x13c));}}throw new Error(_0x21f8a9+_0x10abd8(0x166));}exports[a3_0x52a011(0x148)]=parseRoute;
@@ -1 +1 @@
1
- 'use strict';function a4_0x42a6(_0x40f363,_0x1d8526){const _0x3cc69d=a4_0x3cc6();return a4_0x42a6=function(_0x42a65a,_0x13cbe6){_0x42a65a=_0x42a65a-0xc7;let _0x12b8b1=_0x3cc69d[_0x42a65a];return _0x12b8b1;},a4_0x42a6(_0x40f363,_0x1d8526);}const a4_0x12fdd2=a4_0x42a6;(function(_0x1a8e97,_0x175fe4){const _0x49cbc5=a4_0x42a6,_0x1f0740=_0x1a8e97();while(!![]){try{const _0x171f7a=-parseInt(_0x49cbc5(0xdc))/0x1*(parseInt(_0x49cbc5(0xcd))/0x2)+parseInt(_0x49cbc5(0xc8))/0x3+-parseInt(_0x49cbc5(0xd7))/0x4*(-parseInt(_0x49cbc5(0xe9))/0x5)+-parseInt(_0x49cbc5(0xd8))/0x6*(parseInt(_0x49cbc5(0xcf))/0x7)+parseInt(_0x49cbc5(0xce))/0x8*(-parseInt(_0x49cbc5(0xea))/0x9)+-parseInt(_0x49cbc5(0xdb))/0xa*(-parseInt(_0x49cbc5(0xd9))/0xb)+-parseInt(_0x49cbc5(0xe6))/0xc*(parseInt(_0x49cbc5(0xc7))/0xd);if(_0x171f7a===_0x175fe4)break;else _0x1f0740['push'](_0x1f0740['shift']());}catch(_0x31f588){_0x1f0740['push'](_0x1f0740['shift']());}}}(a4_0x3cc6,0x2262e));Object[a4_0x12fdd2(0xe8)](exports,a4_0x12fdd2(0xd2),{'value':!![]}),exports[a4_0x12fdd2(0xe0)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x12fdd2(0xdd)),action_1=require(a4_0x12fdd2(0xdf));function Api(_0xfbb5f3,_0x4a1d19='get',_0x86176f='/',_0x2bcc28={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1ffe09,_0x2a62b9,_0x583674)=>{const _0x16effe=a4_0x42a6;var _0x53e365,_0x1e50fa,_0x2fbaa9;!_0x2bcc28[_0x16effe(0xc9)]&&(_0x2bcc28[_0x16effe(0xc9)]=[]);!((_0x53e365=_0x2bcc28===null||_0x2bcc28===void 0x0?void 0x0:_0x2bcc28[_0x16effe(0xcb)])===null||_0x53e365===void 0x0?void 0x0:_0x53e365[_0x16effe(0xca)])&&(_0x2bcc28[_0x16effe(0xcb)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x16effe(0xde)}});if(((_0x1e50fa=_0x2bcc28===null||_0x2bcc28===void 0x0?void 0x0:_0x2bcc28[_0x16effe(0xc9)])===null||_0x1e50fa===void 0x0?void 0x0:_0x1e50fa[_0x16effe(0xd4)])>0x0&&((_0x2fbaa9=_0x2bcc28===null||_0x2bcc28===void 0x0?void 0x0:_0x2bcc28['middlewareIgnore'])===null||_0x2fbaa9===void 0x0?void 0x0:_0x2fbaa9['length'])>0x0)for(let _0x1f8f07 in _0x2bcc28[_0x16effe(0xc9)]){_0x2bcc28['middlewareIgnore'][_0x16effe(0xe4)](_0x2bcc28[_0x16effe(0xc9)][_0x1f8f07])!==-0x1&&(_0x2bcc28[_0x16effe(0xc9)][_0x1f8f07]=null);}_0x2bcc28['routerName']=_0xfbb5f3,(0x0,validator_1[_0x16effe(0xd5)])(_0x2bcc28[_0x16effe(0xcb)])(_0x1ffe09,_0x2a62b9,_0x583674),(0x0,decorator_1[_0x16effe(0xd0)])(Object[_0x16effe(0xe2)](_0x2bcc28,{'path':_0x86176f,'requestMethod':(_0x4a1d19=='del'?'delete':_0x4a1d19)[_0x16effe(0xd3)]()}))(_0x1ffe09,_0x2a62b9,_0x583674),(0x0,decorator_1[_0x16effe(0xe7)])(action_1[_0x16effe(0xcc)],{'path':_0x86176f,'method':_0x2a62b9,'apimit':_0x2bcc28[_0x16effe(0xeb)],'routerName':_0x2bcc28[_0x16effe(0xd1)],'description':_0x2bcc28['description'],'middleware':(_0x2bcc28['middleware']||[])[_0x16effe(0xd6)](_0x1260e3=>!!_0x1260e3),'requestMethod':(_0x4a1d19=='del'?_0x16effe(0xe1):_0x4a1d19)['toLowerCase']()},_0x1ffe09),(0x0,decorator_1[_0x16effe(0xda)])(action_1[_0x16effe(0xcc)],{'path':_0x86176f,'method':_0x2a62b9,'apimit':_0x2bcc28[_0x16effe(0xeb)],'routerName':_0x2bcc28['routerName'],'description':_0x2bcc28[_0x16effe(0xe3)],'middleware':(_0x2bcc28[_0x16effe(0xc9)]||[])[_0x16effe(0xd6)](_0x139bfe=>!!_0x139bfe),'requestMethod':(_0x4a1d19==_0x16effe(0xe5)?'delete':_0x4a1d19)[_0x16effe(0xd3)]()})(_0x1ffe09,_0x2a62b9,_0x583674);};}exports[a4_0x12fdd2(0xe0)]=Api;function a4_0x3cc6(){const _0x56acee=['utc','../types/action','Api','delete','assign','description','indexOf','del','1846524GtUYeN','attachClassMetadata','defineProperty','5PAZOKL','18cRnuRI','apimit','13ljYxoL','821124DlwADA','middleware','validationOptions','validate','ACTION_ROUTE_KEY','28uAHrJb','464696GtGMwf','22001BUVGiF','RequestMapping','routerName','__esModule','toLowerCase','length','Validator','filter','1058228dskIUK','264BsTrck','66owpNae','createCustomMethodDecorator','401970bbHEiR','16447ONyIFq','@midwayjs/decorator'];a4_0x3cc6=function(){return _0x56acee;};return a4_0x3cc6();}
1
+ 'use strict';function a4_0x34a3(_0x2138d4,_0x53c204){const _0x5956d6=a4_0x5956();return a4_0x34a3=function(_0x34a315,_0x5f0334){_0x34a315=_0x34a315-0x18c;let _0x1d6c3c=_0x5956d6[_0x34a315];return _0x1d6c3c;},a4_0x34a3(_0x2138d4,_0x53c204);}const a4_0x421d08=a4_0x34a3;(function(_0x4dec5c,_0x5560bb){const _0x4bcccb=a4_0x34a3,_0x58f124=_0x4dec5c();while(!![]){try{const _0x43b275=-parseInt(_0x4bcccb(0x197))/0x1+parseInt(_0x4bcccb(0x19c))/0x2+-parseInt(_0x4bcccb(0x18d))/0x3+-parseInt(_0x4bcccb(0x190))/0x4*(parseInt(_0x4bcccb(0x198))/0x5)+parseInt(_0x4bcccb(0x18c))/0x6*(-parseInt(_0x4bcccb(0x1a4))/0x7)+-parseInt(_0x4bcccb(0x19a))/0x8*(parseInt(_0x4bcccb(0x1a2))/0x9)+parseInt(_0x4bcccb(0x199))/0xa*(parseInt(_0x4bcccb(0x19f))/0xb);if(_0x43b275===_0x5560bb)break;else _0x58f124['push'](_0x58f124['shift']());}catch(_0x469007){_0x58f124['push'](_0x58f124['shift']());}}}(a4_0x5956,0xe5d3c));function a4_0x5956(){const _0x4c4abc=['middlewareIgnore','filter','55aNOZPB','ACTION_ROUTE_KEY','@anncic-api/validator','27BuzeLQ','delete','7Lyxcwz','utc','Api','del','attachClassMetadata','toLowerCase','middleware','2639508sCvTmy','3949197tWgOyZ','validate','apimit','4APYwAf','../types/action','assign','RequestMapping','indexOf','length','Validator','249181fubpei','2261645SLTLLJ','8683190lDsZdr','3617448DSVeop','routerName','828294bGHmVC'];a4_0x5956=function(){return _0x4c4abc;};return a4_0x5956();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Api']=void 0x0;const validator_1=require(a4_0x421d08(0x1a1)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x421d08(0x191));function Api(_0x48cdad,_0x52763c='get',_0x4318ad='/',_0x351c1e={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3f97fe,_0x89432,_0x3f17d0)=>{const _0x4c3b7e=a4_0x34a3;var _0x50acf4,_0x3579a3,_0x26d4d6;!_0x351c1e[_0x4c3b7e(0x1aa)]&&(_0x351c1e['middleware']=[]);!((_0x50acf4=_0x351c1e===null||_0x351c1e===void 0x0?void 0x0:_0x351c1e[_0x4c3b7e(0x18e)])===null||_0x50acf4===void 0x0?void 0x0:_0x50acf4['validationOptions'])&&(_0x351c1e['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x4c3b7e(0x1a5)}});if(((_0x3579a3=_0x351c1e===null||_0x351c1e===void 0x0?void 0x0:_0x351c1e['middleware'])===null||_0x3579a3===void 0x0?void 0x0:_0x3579a3[_0x4c3b7e(0x195)])>0x0&&((_0x26d4d6=_0x351c1e===null||_0x351c1e===void 0x0?void 0x0:_0x351c1e[_0x4c3b7e(0x19d)])===null||_0x26d4d6===void 0x0?void 0x0:_0x26d4d6[_0x4c3b7e(0x195)])>0x0)for(let _0x3b6b91 in _0x351c1e[_0x4c3b7e(0x1aa)]){_0x351c1e[_0x4c3b7e(0x19d)][_0x4c3b7e(0x194)](_0x351c1e[_0x4c3b7e(0x1aa)][_0x3b6b91])!==-0x1&&(_0x351c1e[_0x4c3b7e(0x1aa)][_0x3b6b91]=null);}_0x351c1e['routerName']=_0x48cdad,(0x0,validator_1[_0x4c3b7e(0x196)])(_0x351c1e[_0x4c3b7e(0x18e)])(_0x3f97fe,_0x89432,_0x3f17d0),(0x0,decorator_1[_0x4c3b7e(0x193)])(Object[_0x4c3b7e(0x192)](_0x351c1e,{'path':_0x4318ad,'requestMethod':(_0x52763c=='del'?_0x4c3b7e(0x1a3):_0x52763c)[_0x4c3b7e(0x1a9)]()}))(_0x3f97fe,_0x89432,_0x3f17d0),(0x0,decorator_1[_0x4c3b7e(0x1a8)])(action_1[_0x4c3b7e(0x1a0)],{'path':_0x4318ad,'method':_0x89432,'apimit':_0x351c1e[_0x4c3b7e(0x18f)],'routerName':_0x351c1e['routerName'],'description':_0x351c1e['description'],'middleware':(_0x351c1e['middleware']||[])[_0x4c3b7e(0x19e)](_0x4922cd=>!!_0x4922cd),'requestMethod':(_0x52763c==_0x4c3b7e(0x1a7)?_0x4c3b7e(0x1a3):_0x52763c)['toLowerCase']()},_0x3f97fe),(0x0,decorator_1['createCustomMethodDecorator'])(action_1[_0x4c3b7e(0x1a0)],{'path':_0x4318ad,'method':_0x89432,'apimit':_0x351c1e['apimit'],'routerName':_0x351c1e[_0x4c3b7e(0x19b)],'description':_0x351c1e['description'],'middleware':(_0x351c1e[_0x4c3b7e(0x1aa)]||[])[_0x4c3b7e(0x19e)](_0x1c44eb=>!!_0x1c44eb),'requestMethod':(_0x52763c==_0x4c3b7e(0x1a7)?_0x4c3b7e(0x1a3):_0x52763c)[_0x4c3b7e(0x1a9)]()})(_0x3f97fe,_0x89432,_0x3f17d0);};}exports[a4_0x421d08(0x1a6)]=Api;
@@ -1 +1 @@
1
- 'use strict';const a5_0xf244ea=a5_0x44d1;function a5_0x3fab(){const _0x2a0533=['apidoc','getAsync','__esModule','1169avOlAX','10315800pKPIcC','@midwayjs/core','app','isDevelopmentEnvironment','2755315eXLIhB','Apitest','MidwayEnvironmentService','REQUEST_OBJ_CTX_KEY','getApplicationContext','239460czsqEa','filepath','455077dbHVul','964904HepUOy','22458BaiWol','../service/ApitestService','368883uvRFdc','getConfig','/apitest'];a5_0x3fab=function(){return _0x2a0533;};return a5_0x3fab();}(function(_0x4a6b1a,_0x415e7e){const _0x1b94fb=a5_0x44d1,_0x4f80d9=_0x4a6b1a();while(!![]){try{const _0x48daae=-parseInt(_0x1b94fb(0xeb))/0x1+parseInt(_0x1b94fb(0xff))/0x2+-parseInt(_0x1b94fb(0xef))/0x3+-parseInt(_0x1b94fb(0xec))/0x4+parseInt(_0x1b94fb(0xfa))/0x5+parseInt(_0x1b94fb(0xed))/0x6*(-parseInt(_0x1b94fb(0xf5))/0x7)+parseInt(_0x1b94fb(0xf6))/0x8;if(_0x48daae===_0x415e7e)break;else _0x4f80d9['push'](_0x4f80d9['shift']());}catch(_0x59d804){_0x4f80d9['push'](_0x4f80d9['shift']());}}}(a5_0x3fab,0x7df53));Object['defineProperty'](exports,a5_0xf244ea(0xf4),{'value':!![]}),exports[a5_0xf244ea(0xfb)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0xf244ea(0xf7)),ApitestService_1=require(a5_0xf244ea(0xee));function a5_0x44d1(_0x36fbfd,_0x350ca5){const _0x3fab49=a5_0x3fab();return a5_0x44d1=function(_0x44d1bd,_0x1e99e6){_0x44d1bd=_0x44d1bd-0xeb;let _0x340f60=_0x3fab49[_0x44d1bd];return _0x340f60;},a5_0x44d1(_0x36fbfd,_0x350ca5);}function Apitest(_0x194bf2=a5_0xf244ea(0xf1),_0x466439){return(_0x2aa2ee,_0xb0b272,_0x3faa1c)=>{return(0x0,decorator_1['RequestMapping'])({'path':_0x194bf2,'requestMethod':'get'})(_0x2aa2ee,_0xb0b272,_0x3faa1c),_0x3faa1c['value']=async function(..._0x2253ee){const _0x4c5c10=a5_0x44d1;var _0x483211;const _0x283f97=(_0x483211=this[core_1[_0x4c5c10(0xfd)]])===null||_0x483211===void 0x0?void 0x0:_0x483211[_0x4c5c10(0xf8)];if(_0x283f97&&_0x283f97[_0x4c5c10(0xf0)]('apitest')){const _0x3882bd=await _0x283f97[_0x4c5c10(0xfe)]()[_0x4c5c10(0xf3)](ApitestService_1['ApitestService']),_0x4185ef=await _0x283f97[_0x4c5c10(0xfe)]()[_0x4c5c10(0xf3)](core_1[_0x4c5c10(0xfc)]);return _0x4185ef[_0x4c5c10(0xf9)]()&&(_0x466439[_0x4c5c10(0x100)]=!![]),await _0x3882bd[_0x4c5c10(0xf2)](_0x466439);}return'';},_0x3faa1c;};}exports[a5_0xf244ea(0xfb)]=Apitest;
1
+ 'use strict';const a5_0x8eb393=a5_0x3e00;(function(_0xf799fa,_0x5af13f){const _0x254d51=a5_0x3e00,_0x18cba3=_0xf799fa();while(!![]){try{const _0x32357f=-parseInt(_0x254d51(0x19a))/0x1*(parseInt(_0x254d51(0x1a4))/0x2)+-parseInt(_0x254d51(0x1ac))/0x3*(parseInt(_0x254d51(0x1aa))/0x4)+-parseInt(_0x254d51(0x1b3))/0x5+-parseInt(_0x254d51(0x19d))/0x6+parseInt(_0x254d51(0x1a5))/0x7*(-parseInt(_0x254d51(0x1ae))/0x8)+parseInt(_0x254d51(0x1ab))/0x9*(parseInt(_0x254d51(0x19b))/0xa)+parseInt(_0x254d51(0x1b2))/0xb*(parseInt(_0x254d51(0x19c))/0xc);if(_0x32357f===_0x5af13f)break;else _0x18cba3['push'](_0x18cba3['shift']());}catch(_0xfd1095){_0x18cba3['push'](_0x18cba3['shift']());}}}(a5_0x19c2,0x3767d));Object[a5_0x8eb393(0x1a3)](exports,a5_0x8eb393(0x1a6),{'value':!![]}),exports[a5_0x8eb393(0x199)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x8eb393(0x1a7)),ApitestService_1=require(a5_0x8eb393(0x1a1));function Apitest(_0x46415a='/apitest',_0x14db8f){return(_0x18d9a1,_0x4c0282,_0x4c7963)=>{const _0x3e6e25=a5_0x3e00;return(0x0,decorator_1[_0x3e6e25(0x1af)])({'path':_0x46415a,'requestMethod':_0x3e6e25(0x19f)})(_0x18d9a1,_0x4c0282,_0x4c7963),_0x4c7963[_0x3e6e25(0x1a0)]=async function(..._0xfcb6cf){const _0x318aa8=_0x3e6e25;var _0x14762d;const _0x15647b=(_0x14762d=this[core_1[_0x318aa8(0x1a8)]])===null||_0x14762d===void 0x0?void 0x0:_0x14762d['app'];if(_0x15647b&&_0x15647b[_0x318aa8(0x1b0)](_0x318aa8(0x1a2))){const _0x26bc29=await _0x15647b[_0x318aa8(0x1ad)]()[_0x318aa8(0x1a9)](ApitestService_1['ApitestService']),_0x385939=await _0x15647b[_0x318aa8(0x1ad)]()[_0x318aa8(0x1a9)](core_1[_0x318aa8(0x1b1)]);return _0x385939['isDevelopmentEnvironment']()&&(_0x14db8f[_0x318aa8(0x19e)]=!![]),await _0x26bc29['apidoc'](_0x14db8f);}return'';},_0x4c7963;};}function a5_0x3e00(_0x13c1e3,_0x182a98){const _0x19c28b=a5_0x19c2();return a5_0x3e00=function(_0x3e009d,_0x41a87b){_0x3e009d=_0x3e009d-0x199;let _0xb651a3=_0x19c28b[_0x3e009d];return _0xb651a3;},a5_0x3e00(_0x13c1e3,_0x182a98);}function a5_0x19c2(){const _0x487f35=['__esModule','@midwayjs/core','REQUEST_OBJ_CTX_KEY','getAsync','80412aDeqJO','1917eDXcsm','9IymyYA','getApplicationContext','16uFfdfK','RequestMapping','getConfig','MidwayEnvironmentService','11NsrnDF','438005DlaBUo','Apitest','158273carfBM','8150xGvsjO','10608432AoRXyX','620088qxMZxa','filepath','get','value','../service/ApitestService','apitest','defineProperty','4kMJHuY','920101jseXVA'];a5_0x19c2=function(){return _0x487f35;};return a5_0x19c2();}exports[a5_0x8eb393(0x199)]=Apitest;
@@ -1 +1 @@
1
- 'use strict';var a6_0x5a3472=a6_0x550c;(function(_0x377dd7,_0x91aae6){var _0x45ab6c=a6_0x550c,_0x72b99f=_0x377dd7();while(!![]){try{var _0xb2d346=parseInt(_0x45ab6c(0x99))/0x1+-parseInt(_0x45ab6c(0x84))/0x2*(-parseInt(_0x45ab6c(0x94))/0x3)+parseInt(_0x45ab6c(0x8c))/0x4+parseInt(_0x45ab6c(0x89))/0x5*(-parseInt(_0x45ab6c(0x8d))/0x6)+-parseInt(_0x45ab6c(0x86))/0x7+-parseInt(_0x45ab6c(0x9b))/0x8*(parseInt(_0x45ab6c(0x9d))/0x9)+-parseInt(_0x45ab6c(0x88))/0xa*(-parseInt(_0x45ab6c(0x9a))/0xb);if(_0xb2d346===_0x91aae6)break;else _0x72b99f['push'](_0x72b99f['shift']());}catch(_0x5297a0){_0x72b99f['push'](_0x72b99f['shift']());}}}(a6_0x4880,0xc2ed8));function a6_0x550c(_0x362e4b,_0x5ec554){var _0x4880b9=a6_0x4880();return a6_0x550c=function(_0x550c7c,_0x2c5df2){_0x550c7c=_0x550c7c-0x82;var _0x1172f7=_0x4880b9[_0x550c7c];return _0x1172f7;},a6_0x550c(_0x362e4b,_0x5ec554);}function a6_0x4880(){var _0x8f0ec2=['585JByMRh','decorate','defineProperty','__decorate','222JDGPpa','length','6382418zhjUjG','__esModule','20hbSeAg','1217605FPLsBt','ApiError','请使用正确的设备','6165144TjOwrX','6QbtBzd','TIMEOUT','object','checkcode验证失败','getOwnPropertyDescriptor','请求头信息不完整','HEADERS_LACK','5403zfeNDe','HEADERS_SIGNATURE','metadata','HEADERS_CHECKCODE','design:type','1430129auZegq','870364yVUdXu','169336VwUyFQ','function'];a6_0x4880=function(){return _0x8f0ec2;};return a6_0x4880();}var __decorate=this&&this[a6_0x5a3472(0x83)]||function(_0x296150,_0xd5289d,_0x23ac66,_0x5a9673){var _0x5cfcc4=a6_0x5a3472,_0x50b2d1=arguments[_0x5cfcc4(0x85)],_0x2b2d38=_0x50b2d1<0x3?_0xd5289d:_0x5a9673===null?_0x5a9673=Object[_0x5cfcc4(0x91)](_0xd5289d,_0x23ac66):_0x5a9673,_0x3c2cce;if(typeof Reflect==='object'&&typeof Reflect[_0x5cfcc4(0x9e)]===_0x5cfcc4(0x9c))_0x2b2d38=Reflect[_0x5cfcc4(0x9e)](_0x296150,_0xd5289d,_0x23ac66,_0x5a9673);else{for(var _0x46e78f=_0x296150[_0x5cfcc4(0x85)]-0x1;_0x46e78f>=0x0;_0x46e78f--)if(_0x3c2cce=_0x296150[_0x46e78f])_0x2b2d38=(_0x50b2d1<0x3?_0x3c2cce(_0x2b2d38):_0x50b2d1>0x3?_0x3c2cce(_0xd5289d,_0x23ac66,_0x2b2d38):_0x3c2cce(_0xd5289d,_0x23ac66))||_0x2b2d38;}return _0x50b2d1>0x3&&_0x2b2d38&&Object['defineProperty'](_0xd5289d,_0x23ac66,_0x2b2d38),_0x2b2d38;},__metadata=this&&this['__metadata']||function(_0x508ff3,_0x4823f7){var _0x4a6184=a6_0x5a3472;if(typeof Reflect===_0x4a6184(0x8f)&&typeof Reflect[_0x4a6184(0x96)]===_0x4a6184(0x9c))return Reflect[_0x4a6184(0x96)](_0x508ff3,_0x4823f7);};Object[a6_0x5a3472(0x82)](exports,a6_0x5a3472(0x87),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a6_0x5a3472(0x8e)]=0x18a89,ApiError[a6_0x5a3472(0x93)]=0x18a8a,ApiError['HEADERS_DEVICE']=0x18a8b,ApiError[a6_0x5a3472(0x97)]=0x18a8c,ApiError[a6_0x5a3472(0x95)]=0x18a8d,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x5a3472(0x98),Object)],ApiError,a6_0x5a3472(0x8e),void 0x0),__decorate([AnnErrorMsg(a6_0x5a3472(0x92)),__metadata(a6_0x5a3472(0x98),Object)],ApiError,a6_0x5a3472(0x93),void 0x0),__decorate([AnnErrorMsg(a6_0x5a3472(0x8b)),__metadata(a6_0x5a3472(0x98),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x5a3472(0x90)),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x5a3472(0x98),Object)],ApiError,a6_0x5a3472(0x95),void 0x0),exports[a6_0x5a3472(0x8a)]=ApiError;
1
+ 'use strict';var a6_0x4d55f7=a6_0x5943;function a6_0x5943(_0x38bc48,_0x84ed8b){var _0x16e5a7=a6_0x16e5();return a6_0x5943=function(_0x594372,_0x154ea5){_0x594372=_0x594372-0x1d1;var _0x599945=_0x16e5a7[_0x594372];return _0x599945;},a6_0x5943(_0x38bc48,_0x84ed8b);}(function(_0x530cc5,_0x373f92){var _0x1f7910=a6_0x5943,_0x3b25ea=_0x530cc5();while(!![]){try{var _0x5c4d22=-parseInt(_0x1f7910(0x1d2))/0x1+parseInt(_0x1f7910(0x1e4))/0x2+-parseInt(_0x1f7910(0x1e1))/0x3*(parseInt(_0x1f7910(0x1e0))/0x4)+parseInt(_0x1f7910(0x1e5))/0x5*(parseInt(_0x1f7910(0x1dc))/0x6)+-parseInt(_0x1f7910(0x1db))/0x7+-parseInt(_0x1f7910(0x1d1))/0x8*(parseInt(_0x1f7910(0x1e8))/0x9)+-parseInt(_0x1f7910(0x1e3))/0xa*(-parseInt(_0x1f7910(0x1d3))/0xb);if(_0x5c4d22===_0x373f92)break;else _0x3b25ea['push'](_0x3b25ea['shift']());}catch(_0x3e3dcc){_0x3b25ea['push'](_0x3b25ea['shift']());}}}(a6_0x16e5,0xe684d));function a6_0x16e5(){var _0x17cac6=['1816046kMgdFU','11NOEVFF','请求头信息不完整','网络繁忙,请稍后重试','length','TIMEOUT','design:type','请使用正确的设备','decorate','4751656hQKYrR','7806PVYYdV','ApiError','defineProperty','HEADERS_LACK','16444oJIVbx','75crKJaX','HEADERS_DEVICE','37013630cxjMRg','467106hVCItj','1175gnDSEg','object','HEADERS_SIGNATURE','9fotyik','5590536sdDtTr'];a6_0x16e5=function(){return _0x17cac6;};return a6_0x16e5();}var __decorate=this&&this['__decorate']||function(_0xdda73,_0x4488a8,_0xd5afbc,_0xac3c5f){var _0x159a53=a6_0x5943,_0x558c0f=arguments[_0x159a53(0x1d6)],_0x8a1bdb=_0x558c0f<0x3?_0x4488a8:_0xac3c5f===null?_0xac3c5f=Object['getOwnPropertyDescriptor'](_0x4488a8,_0xd5afbc):_0xac3c5f,_0x45e269;if(typeof Reflect===_0x159a53(0x1e6)&&typeof Reflect[_0x159a53(0x1da)]==='function')_0x8a1bdb=Reflect['decorate'](_0xdda73,_0x4488a8,_0xd5afbc,_0xac3c5f);else{for(var _0x2c981e=_0xdda73[_0x159a53(0x1d6)]-0x1;_0x2c981e>=0x0;_0x2c981e--)if(_0x45e269=_0xdda73[_0x2c981e])_0x8a1bdb=(_0x558c0f<0x3?_0x45e269(_0x8a1bdb):_0x558c0f>0x3?_0x45e269(_0x4488a8,_0xd5afbc,_0x8a1bdb):_0x45e269(_0x4488a8,_0xd5afbc))||_0x8a1bdb;}return _0x558c0f>0x3&&_0x8a1bdb&&Object[_0x159a53(0x1de)](_0x4488a8,_0xd5afbc,_0x8a1bdb),_0x8a1bdb;},__metadata=this&&this['__metadata']||function(_0x511f9b,_0x5172fa){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x511f9b,_0x5172fa);};Object[a6_0x4d55f7(0x1de)](exports,'__esModule',{'value':!![]}),exports[a6_0x4d55f7(0x1dd)]=void 0x0;class ApiError{}ApiError[a6_0x4d55f7(0x1d7)]=0x18a89,ApiError[a6_0x4d55f7(0x1df)]=0x18a8a,ApiError['HEADERS_DEVICE']=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError[a6_0x4d55f7(0x1e7)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x4d55f7(0x1d5)),__metadata('design:type',Object)],ApiError,a6_0x4d55f7(0x1d7),void 0x0),__decorate([AnnErrorMsg(a6_0x4d55f7(0x1d4)),__metadata(a6_0x4d55f7(0x1d8),Object)],ApiError,a6_0x4d55f7(0x1df),void 0x0),__decorate([AnnErrorMsg(a6_0x4d55f7(0x1d9)),__metadata(a6_0x4d55f7(0x1d8),Object)],ApiError,a6_0x4d55f7(0x1e2),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x4d55f7(0x1d8),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a6_0x4d55f7(0x1e7),void 0x0),exports[a6_0x4d55f7(0x1dd)]=ApiError;
@@ -1 +1 @@
1
- 'use strict';const a7_0x387877=a7_0x51f7;(function(_0x12e92c,_0x4bf8e4){const _0x41d01f=a7_0x51f7,_0xf25c66=_0x12e92c();while(!![]){try{const _0x341a05=-parseInt(_0x41d01f(0x19d))/0x1+parseInt(_0x41d01f(0x178))/0x2+parseInt(_0x41d01f(0x174))/0x3+-parseInt(_0x41d01f(0x170))/0x4+parseInt(_0x41d01f(0x17f))/0x5*(-parseInt(_0x41d01f(0x19e))/0x6)+-parseInt(_0x41d01f(0x1b7))/0x7*(-parseInt(_0x41d01f(0x197))/0x8)+parseInt(_0x41d01f(0x1b8))/0x9*(parseInt(_0x41d01f(0x1ad))/0xa);if(_0x341a05===_0x4bf8e4)break;else _0xf25c66['push'](_0xf25c66['shift']());}catch(_0x52c398){_0xf25c66['push'](_0xf25c66['shift']());}}}(a7_0x1989,0x7e356));function a7_0x51f7(_0x5c8650,_0x246af0){const _0x1989f5=a7_0x1989();return a7_0x51f7=function(_0x51f766,_0x5cf255){_0x51f766=_0x51f766-0x164;let _0x50a104=_0x1989f5[_0x51f766];return _0x50a104;},a7_0x51f7(_0x5c8650,_0x246af0);}Object['defineProperty'](exports,a7_0x387877(0x179),{'value':!![]}),exports[a7_0x387877(0x169)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a7_0x387877(0x18d)),decorator_1=require(a7_0x387877(0x18b)),decorator_2=require(a7_0x387877(0x18b)),decorator_3=require(a7_0x387877(0x18b)),action_1=require('../types/action');function getRoutes(_0x537ca5={'prefix':'/','module':![]}){const _0x306f07=a7_0x387877;var _0x36e703,_0x30f4f9;const _0x12be95=(0x0,decorator_3['listModule'])(action_1[_0x306f07(0x16f)]),_0x3a98dd={},_0x671684=Array[_0x306f07(0x165)](_0x537ca5[_0x306f07(0x171)]||[])?_0x537ca5[_0x306f07(0x171)]||[]:[_0x537ca5[_0x306f07(0x171)]];_0x5f251f:for(const _0x116d47 of _0x12be95){let _0x3f743d=(0x0,decorator_3[_0x306f07(0x184)])(action_1[_0x306f07(0x16f)],_0x116d47),_0x52052c=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x116d47);if(_0x3f743d&&_0x52052c){let _0x57f786=_0x3f743d['prefix'],_0x16f177={};if(_0x537ca5[_0x306f07(0x1b1)]&&(0x0,lodash_1[_0x306f07(0x17b)])(_0x3f743d,_0x306f07(0x1b1),![])!=_0x537ca5['module'])continue _0x5f251f;else{if(_0x537ca5[_0x306f07(0x1b1)]===![]&&!!(0x0,lodash_1[_0x306f07(0x17b)])(_0x3f743d,'module',null))continue _0x5f251f;}if(_0x537ca5[_0x306f07(0x1bf)]&&!_0x57f786[_0x306f07(0x17a)](_0x537ca5[_0x306f07(0x1bf)]))continue _0x5f251f;_0x57f786!=='/'?(_0x16f177[_0x306f07(0x17e)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x1c0)][_0x306f07(0x1a4)])||(/^\//[_0x306f07(0x19c)](_0x57f786)?_0x57f786[_0x306f07(0x1b2)]('/')[0x1]:_0x57f786),_0x16f177[_0x306f07(0x167)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d['routerOptions']['description'])||_0x16f177[_0x306f07(0x17e)],_0x16f177[_0x306f07(0x1b6)]=[]):(_0x16f177[_0x306f07(0x17e)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x1c0)][_0x306f07(0x1a4)])||_0x306f07(0x1a0),_0x16f177[_0x306f07(0x167)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d['routerOptions'][_0x306f07(0x167)])||'',_0x16f177['routes']=[]);_0x537ca5[_0x306f07(0x183)]&&(_0x16f177[_0x306f07(0x183)]=_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x183)]);(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d['pprefix'])&&(_0x16f177[_0x306f07(0x1bf)]=_0x3f743d[_0x306f07(0x1be)]);(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x1b1)])&&(_0x16f177[_0x306f07(0x1b1)]=_0x3f743d[_0x306f07(0x1b1)]);let _0xaff790=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x306f07(0x1bd)],_0x116d47)||{};if(typeof _0x52052c[Symbol[_0x306f07(0x185)]]===_0x306f07(0x16e))for(let _0x123dc2 of _0x52052c){let _0x18c0c8={};_0x18c0c8[_0x306f07(0x187)]=_0x123dc2[_0x306f07(0x168)],_0x18c0c8['route']=(_0x57f786+_0x123dc2[_0x306f07(0x190)])['replace'](/\/{1,}/,'/'),_0x18c0c8[_0x306f07(0x17e)]=(_0x123dc2===null||_0x123dc2===void 0x0?void 0x0:_0x123dc2['routerName'])||_0x16f177['summary']||'default',_0x18c0c8['description']=(_0x123dc2===null||_0x123dc2===void 0x0?void 0x0:_0x123dc2['description'])||'',_0x18c0c8[_0x306f07(0x1b4)]=[];if(!(0x0,lodash_1['startsWith'])(_0x18c0c8[_0x306f07(0x1a7)],_0x306f07(0x164))&&!(0x0,lodash_1[_0x306f07(0x17a)])(_0x18c0c8[_0x306f07(0x1a7)],'/static/apitest')&&_0x671684[_0x306f07(0x193)](_0x18c0c8[_0x306f07(0x1a7)])===-0x1){if(!(_0x537ca5===null||_0x537ca5===void 0x0?void 0x0:_0x537ca5[_0x306f07(0x1ac)])){let _0x1e2bc0=(0x0,decorator_3[_0x306f07(0x1ae)])(new _0x116d47(),_0x123dc2[_0x306f07(0x187)]);for(const _0x167715 in _0x1e2bc0){let _0x2201e1=(_0x36e703=_0xaff790[_0x123dc2[_0x306f07(0x187)]])===null||_0x36e703===void 0x0?void 0x0:_0x36e703[_0x306f07(0x1ba)](_0x181339=>_0x181339[_0x306f07(0x18e)]==_0x167715&&_0x181339[_0x306f07(0x17c)]===decorator_2[_0x306f07(0x16b)]&&(_0x181339===null||_0x181339===void 0x0?void 0x0:_0x181339[_0x306f07(0x188)]));if(_0x2201e1===null||_0x2201e1===void 0x0?void 0x0:_0x2201e1['metadata']){let _0x44ba62=convertTypeToString(_0x2201e1['metadata']['type']||0x0);if([_0x306f07(0x175),_0x306f07(0x172)][_0x306f07(0x193)](_0x44ba62)!=-0x1&&_0x2201e1[_0x306f07(0x188)]['propertyData'][_0x306f07(0x193)](':')==-0x1&&!_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x1ba)](_0x565c97=>_0x565c97[_0x306f07(0x17c)]==_0x2201e1[_0x306f07(0x188)][_0x306f07(0x189)]))_0x18c0c8['request'][_0x306f07(0x195)]({'key':_0x2201e1[_0x306f07(0x188)]['propertyData'],'title':_0x2201e1[_0x306f07(0x188)]['propertyData'],'type':convertSchemaType(_0x1e2bc0[_0x2201e1[_0x306f07(0x18e)]]['name']),'required':![],'default':'','desc':''});else{if(_0x44ba62==_0x306f07(0x18a)){let _0x5aa858=((_0x30f4f9=_0x2201e1===null||_0x2201e1===void 0x0?void 0x0:_0x2201e1[_0x306f07(0x188)])===null||_0x30f4f9===void 0x0?void 0x0:_0x30f4f9[_0x306f07(0x189)])||_0x306f07(0x18a);_0x5aa858[_0x306f07(0x193)](':')==-0x1&&!_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x1ba)](_0x27926d=>_0x27926d[_0x306f07(0x17c)]==_0x5aa858&&_0x27926d[_0x306f07(0x199)]==_0x306f07(0x18a))&&_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x195)]({'key':_0x5aa858,'title':_0x306f07(0x1bc)+_0x5aa858,'type':_0x306f07(0x18a),'required':!![],'default':'','desc':''});}}}else{const _0xc1e204=(0x0,decorator_3[_0x306f07(0x191)])(validator_1[_0x306f07(0x1b3)],_0x1e2bc0[_0x167715]);_0xc1e204&&_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x195)](...getJoiRequest(_0xc1e204));}}}_0x16f177[_0x306f07(0x1b6)]['push'](_0x18c0c8);}}if(_0x16f177['routes'][_0x306f07(0x198)]>0x0){let _0x1f5993=_0x3a98dd[_0x57f786];_0x1f5993?(_0x1f5993[_0x306f07(0x17e)]!=_0x16f177['summary']&&(_0x1f5993['summary']=_0x1f5993['summary']+','+_0x16f177['summary']),_0x1f5993[_0x306f07(0x167)]!=_0x16f177[_0x306f07(0x167)]&&(_0x1f5993[_0x306f07(0x167)]=_0x1f5993['description']+','+_0x16f177[_0x306f07(0x167)]),_0x1f5993[_0x306f07(0x1b6)]=_0x1f5993[_0x306f07(0x1b6)]['concat'](_0x16f177['routes']),_0x3a98dd[_0x57f786]=_0x1f5993):_0x3a98dd[_0x57f786]=_0x16f177;}}}return _0x3a98dd;}exports[a7_0x387877(0x169)]=getRoutes;function getJoiRequest(_0x52b401){const _0xf8010f=a7_0x387877,_0x5f204e=[];for(let _0x1cc3f0 in _0x52b401){const _0x3a112f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x48d9fa=typeof _0x52b401[_0x1cc3f0][_0xf8010f(0x1a9)]==_0xf8010f(0x16e)?_0x52b401[_0x1cc3f0][_0xf8010f(0x1a9)]():_0x52b401[_0x1cc3f0];_0x3a112f[_0xf8010f(0x17c)]=_0x1cc3f0,_0x3a112f[_0xf8010f(0x199)]=_0x48d9fa[_0xf8010f(0x199)],_0x3a112f[_0xf8010f(0x176)]=(0x0,lodash_1['get'])(_0x48d9fa,_0xf8010f(0x17d),_0x1cc3f0),_0x3a112f[_0xf8010f(0x1a0)]=(0x0,lodash_1['get'])(_0x48d9fa,_0xf8010f(0x181),''),_0x3a112f[_0xf8010f(0x1a3)]=(0x0,lodash_1[_0xf8010f(0x17b)])(_0x48d9fa,'flags.presence','')==_0xf8010f(0x1a3),_0x3a112f[_0xf8010f(0x167)]=(0x0,lodash_1['get'])(_0x48d9fa,_0xf8010f(0x1ab),'');if(_0x48d9fa[_0xf8010f(0x199)]=='object')_0x3a112f[_0xf8010f(0x16d)]=getJoiRequest(_0x48d9fa[_0xf8010f(0x180)]);else _0x48d9fa[_0xf8010f(0x199)]==_0xf8010f(0x1a8)&&_0x48d9fa[_0xf8010f(0x194)]&&Array['isArray'](_0x48d9fa[_0xf8010f(0x194)])&&_0x48d9fa[_0xf8010f(0x194)][0x0]&&console['log'](_0x1cc3f0+_0xf8010f(0x1af),_0x48d9fa);_0x48d9fa[_0xf8010f(0x186)]&&Array['isArray'](_0x48d9fa[_0xf8010f(0x186)])&&_0x48d9fa[_0xf8010f(0x186)][_0xf8010f(0x198)]>0x0&&(_0x3a112f[_0xf8010f(0x167)]=_0xf8010f(0x196)+_0x48d9fa[_0xf8010f(0x186)][_0xf8010f(0x1aa)](',')+'];'+_0x3a112f[_0xf8010f(0x167)]);if(_0x3a112f[_0xf8010f(0x17c)]&&_0x3a112f[_0xf8010f(0x199)]){const _0x293b81={};for(const _0x2bf9fc of _0x48d9fa['rules']||[]){if(_0x2bf9fc[_0xf8010f(0x19b)]==='min'&&_0x2bf9fc['args'])_0x293b81[_0xf8010f(0x1a5)]=_0x2bf9fc[_0xf8010f(0x177)][_0xf8010f(0x1b5)];else _0x2bf9fc[_0xf8010f(0x19b)]===_0xf8010f(0x1a6)&&(_0x293b81[_0xf8010f(0x1a6)]=_0x2bf9fc['args']['limit']);}_0x3a112f[_0xf8010f(0x1a2)]=_0x293b81;}_0x3a112f[_0xf8010f(0x17c)]&&_0x3a112f[_0xf8010f(0x176)]&&_0x5f204e['push'](_0x3a112f);}return _0x5f204e;}function convertSchemaType(_0x210c0b){const _0x656dd5=a7_0x387877;switch(_0x210c0b){case _0x656dd5(0x192):return'object';case'Boolean':return _0x656dd5(0x1b9);case _0x656dd5(0x16a):return'number';case _0x656dd5(0x19a):return'string';case _0x656dd5(0x1bb):return _0x656dd5(0x18a);default:return _0x656dd5(0x166);}}function a7_0x1989(){const _0x7fa127=['filter','body','FILESSTREAM','2557662cYLxae','query','title','args','1892912qDejte','__esModule','startsWith','get','key','flags.label','summary','91945TGLMhs','keys','flags.default','FILESTREAM','filepath','getClassMetadata','iterator','allow','method','metadata','propertyData','file','@midwayjs/decorator','PARAM','@anncic-api/validator','parameterIndex','HEADERS','path','getClassExtendedMetadata','Object','indexOf','items','push','只允许:[','15704YvYSUC','length','type','String','name','test','691713eEweNF','18VXSTmw','QUERY','default','header','rules','required','tagName','min','max','route','array','describe','join','flags.description','noreq','10KUaprV','getMethodParamTypes','-array','FIELDS','module','split','RULES_KEY','request','limit','routes','574UoFMut','2917404lTUCqb','boolean','find','File','文件上传-','INJECT_CUSTOM_PARAM','pprefix','prefix','routerOptions','static/apitest','isArray','string','description','requestMethod','getRoutes','Number','WEB_ROUTER_PARAM_KEY','RouteParamTypes','children','function','ACTION_KEY','4081208rRgcUE'];a7_0x1989=function(){return _0x7fa127;};return a7_0x1989();}function convertTypeToString(_0x577e6f){const _0xfdd6dd=a7_0x387877;switch(_0x577e6f){case decorator_1[_0xfdd6dd(0x16c)][_0xfdd6dd(0x18f)]:return _0xfdd6dd(0x1a1);case decorator_1['RouteParamTypes'][_0xfdd6dd(0x19f)]:return _0xfdd6dd(0x175);case decorator_1['RouteParamTypes'][_0xfdd6dd(0x18c)]:return'path';case decorator_1[_0xfdd6dd(0x16c)]['BODY']:return _0xfdd6dd(0x172);case decorator_1[_0xfdd6dd(0x16c)][_0xfdd6dd(0x1b0)]:case decorator_1['RouteParamTypes'][_0xfdd6dd(0x173)]:case decorator_1[_0xfdd6dd(0x16c)][_0xfdd6dd(0x182)]:return _0xfdd6dd(0x18a);default:return _0xfdd6dd(0x1a1);}}
1
+ 'use strict';function a7_0x5634(){const _0x2a6eda=['ACTION_KEY','method','648osaBRm','static/apitest','get','path','Boolean','flags.description','369162lCXwxg','@midwayjs/decorator','metadata','Object','flags.default','header','defineProperty','String','keys','File','getClassExtendedMetadata','log','title','max','rules','summary','describe','test','1165715KXsjiR','function','query','key','getClassMetadata','noreq','request','children','split','min','FILESTREAM','find','listModule','name','filepath','pprefix','prefix','4VbFQxt','FIELDS','limit','route','array','Number','number','replace','flags.label','isArray','args','tagName','routerOptions','startsWith','PARAM','258684DzrlRh','flags.presence','join','push','RouteParamTypes','../types/action','propertyData','964510SXVnCs','iterator','length','19922SUXIZO','object','boolean','file','__esModule','214243azECtc','/static/apitest','default','items','文件上传-','type','lodash','12rOCJZG','requestMethod','FILESSTREAM','routes','required','679294pdULZK','WEB_ROUTER_PARAM_KEY','allow','36iHDoDm','concat','348kPWKOX','string','QUERY','getMethodParamTypes','body','indexOf','module','filter','INJECT_CUSTOM_PARAM','description','parameterIndex'];a7_0x5634=function(){return _0x2a6eda;};return a7_0x5634();}const a7_0x369b73=a7_0x52db;(function(_0x2d0f36,_0x38f881){const _0x25fa86=a7_0x52db,_0x15994c=_0x2d0f36();while(!![]){try{const _0x482029=-parseInt(_0x25fa86(0x77))/0x1+-parseInt(_0x25fa86(0x68))/0x2+parseInt(_0x25fa86(0x9b))/0x3*(-parseInt(_0x25fa86(0xbe))/0x4)+parseInt(_0x25fa86(0xad))/0x5*(-parseInt(_0x25fa86(0x7e))/0x6)+-parseInt(_0x25fa86(0x72))/0x7*(parseInt(_0x25fa86(0x95))/0x8)+parseInt(_0x25fa86(0x86))/0x9*(-parseInt(_0x25fa86(0x6f))/0xa)+-parseInt(_0x25fa86(0x83))/0xb*(-parseInt(_0x25fa86(0x88))/0xc);if(_0x482029===_0x38f881)break;else _0x15994c['push'](_0x15994c['shift']());}catch(_0x9c59ce){_0x15994c['push'](_0x15994c['shift']());}}}(a7_0x5634,0x3afcb));Object[a7_0x369b73(0xa1)](exports,a7_0x369b73(0x76),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a7_0x369b73(0x7d)),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x369b73(0x9c)),decorator_2=require(a7_0x369b73(0x9c)),decorator_3=require(a7_0x369b73(0x9c)),action_1=require(a7_0x369b73(0x6d));function getRoutes(_0x3ae45c={'prefix':'/','module':![]}){const _0x25ce71=a7_0x369b73;var _0x3560f6,_0xc98b80;const _0x1e8b9d=(0x0,decorator_3[_0x25ce71(0xb9)])(action_1[_0x25ce71(0x93)]),_0x21b2f4={},_0x2ae6e2=Array[_0x25ce71(0xc7)](_0x3ae45c[_0x25ce71(0x8f)]||[])?_0x3ae45c[_0x25ce71(0x8f)]||[]:[_0x3ae45c[_0x25ce71(0x8f)]];_0x27e099:for(const _0x4d4978 of _0x1e8b9d){let _0xbc28e3=(0x0,decorator_3[_0x25ce71(0xb1)])(action_1[_0x25ce71(0x93)],_0x4d4978),_0x401a9e=(0x0,decorator_3[_0x25ce71(0xb1)])(action_1['ACTION_ROUTE_KEY'],_0x4d4978);if(_0xbc28e3&&_0x401a9e){let _0xc7a606=_0xbc28e3[_0x25ce71(0xbd)],_0x29204c={};if(_0x3ae45c['module']&&(0x0,lodash_1['get'])(_0xbc28e3,_0x25ce71(0x8e),![])!=_0x3ae45c['module'])continue _0x27e099;else{if(_0x3ae45c['module']===![]&&!!(0x0,lodash_1[_0x25ce71(0x97)])(_0xbc28e3,_0x25ce71(0x8e),null))continue _0x27e099;}if(_0x3ae45c[_0x25ce71(0xbd)]&&!_0xc7a606[_0x25ce71(0x66)](_0x3ae45c[_0x25ce71(0xbd)]))continue _0x27e099;_0xc7a606!=='/'?(_0x29204c[_0x25ce71(0xaa)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xca)][_0x25ce71(0xc9)])||(/^\//[_0x25ce71(0xac)](_0xc7a606)?_0xc7a606[_0x25ce71(0xb5)]('/')[0x1]:_0xc7a606),_0x29204c[_0x25ce71(0x91)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xca)][_0x25ce71(0x91)])||_0x29204c[_0x25ce71(0xaa)],_0x29204c[_0x25ce71(0x81)]=[]):(_0x29204c[_0x25ce71(0xaa)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3['routerOptions'][_0x25ce71(0xc9)])||_0x25ce71(0x79),_0x29204c[_0x25ce71(0x91)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xca)][_0x25ce71(0x91)])||'',_0x29204c[_0x25ce71(0x81)]=[]);_0x3ae45c[_0x25ce71(0xbb)]&&(_0x29204c[_0x25ce71(0xbb)]=_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xbb)]);(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xbc)])&&(_0x29204c[_0x25ce71(0xbd)]=_0xbc28e3[_0x25ce71(0xbc)]);(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3['module'])&&(_0x29204c[_0x25ce71(0x8e)]=_0xbc28e3[_0x25ce71(0x8e)]);let _0x5b17e2=(0x0,decorator_3[_0x25ce71(0xb1)])(decorator_2[_0x25ce71(0x90)],_0x4d4978)||{};if(typeof _0x401a9e[Symbol[_0x25ce71(0x70)]]==='function')for(let _0x345a2f of _0x401a9e){let _0x3a31c4={};_0x3a31c4[_0x25ce71(0x94)]=_0x345a2f[_0x25ce71(0x7f)],_0x3a31c4[_0x25ce71(0xc1)]=(_0xc7a606+_0x345a2f[_0x25ce71(0x98)])[_0x25ce71(0xc5)](/\/{1,}/,'/'),_0x3a31c4['summary']=(_0x345a2f===null||_0x345a2f===void 0x0?void 0x0:_0x345a2f['routerName'])||_0x29204c['summary']||_0x25ce71(0x79),_0x3a31c4['description']=(_0x345a2f===null||_0x345a2f===void 0x0?void 0x0:_0x345a2f['description'])||'',_0x3a31c4[_0x25ce71(0xb3)]=[];if(!(0x0,lodash_1['startsWith'])(_0x3a31c4[_0x25ce71(0xc1)],_0x25ce71(0x96))&&!(0x0,lodash_1[_0x25ce71(0x66)])(_0x3a31c4['route'],_0x25ce71(0x78))&&_0x2ae6e2[_0x25ce71(0x8d)](_0x3a31c4[_0x25ce71(0xc1)])===-0x1){if(!(_0x3ae45c===null||_0x3ae45c===void 0x0?void 0x0:_0x3ae45c[_0x25ce71(0xb2)])){let _0x15ea83=(0x0,decorator_3[_0x25ce71(0x8b)])(new _0x4d4978(),_0x345a2f[_0x25ce71(0x94)]);for(const _0x4fcd83 in _0x15ea83){let _0x2a993f=(_0x3560f6=_0x5b17e2[_0x345a2f[_0x25ce71(0x94)]])===null||_0x3560f6===void 0x0?void 0x0:_0x3560f6[_0x25ce71(0xb8)](_0x2f4fda=>_0x2f4fda[_0x25ce71(0x92)]==_0x4fcd83&&_0x2f4fda[_0x25ce71(0xb0)]===decorator_2[_0x25ce71(0x84)]&&(_0x2f4fda===null||_0x2f4fda===void 0x0?void 0x0:_0x2f4fda[_0x25ce71(0x9d)]));if(_0x2a993f===null||_0x2a993f===void 0x0?void 0x0:_0x2a993f[_0x25ce71(0x9d)]){let _0x4bd025=convertTypeToString(_0x2a993f['metadata'][_0x25ce71(0x7c)]||0x0);if([_0x25ce71(0xaf),_0x25ce71(0x8c)][_0x25ce71(0x8d)](_0x4bd025)!=-0x1&&_0x2a993f['metadata'][_0x25ce71(0x6e)][_0x25ce71(0x8d)](':')==-0x1&&!_0x3a31c4['request'][_0x25ce71(0xb8)](_0x24ec2e=>_0x24ec2e[_0x25ce71(0xb0)]==_0x2a993f[_0x25ce71(0x9d)][_0x25ce71(0x6e)]))_0x3a31c4[_0x25ce71(0xb3)]['push']({'key':_0x2a993f[_0x25ce71(0x9d)][_0x25ce71(0x6e)],'title':_0x2a993f['metadata']['propertyData'],'type':convertSchemaType(_0x15ea83[_0x2a993f[_0x25ce71(0x92)]][_0x25ce71(0xba)]),'required':![],'default':'','desc':''});else{if(_0x4bd025==_0x25ce71(0x75)){let _0x5610a6=((_0xc98b80=_0x2a993f===null||_0x2a993f===void 0x0?void 0x0:_0x2a993f[_0x25ce71(0x9d)])===null||_0xc98b80===void 0x0?void 0x0:_0xc98b80[_0x25ce71(0x6e)])||_0x25ce71(0x75);_0x5610a6[_0x25ce71(0x8d)](':')==-0x1&&!_0x3a31c4[_0x25ce71(0xb3)]['find'](_0x5544dc=>_0x5544dc['key']==_0x5610a6&&_0x5544dc[_0x25ce71(0x7c)]==_0x25ce71(0x75))&&_0x3a31c4['request'][_0x25ce71(0x6b)]({'key':_0x5610a6,'title':_0x25ce71(0x7b)+_0x5610a6,'type':_0x25ce71(0x75),'required':!![],'default':'','desc':''});}}}else{const _0x32fd19=(0x0,decorator_3[_0x25ce71(0xa5)])(validator_1['RULES_KEY'],_0x15ea83[_0x4fcd83]);_0x32fd19&&_0x3a31c4[_0x25ce71(0xb3)]['push'](...getJoiRequest(_0x32fd19));}}}_0x29204c[_0x25ce71(0x81)][_0x25ce71(0x6b)](_0x3a31c4);}}if(_0x29204c[_0x25ce71(0x81)][_0x25ce71(0x71)]>0x0){let _0x209365=_0x21b2f4[_0xc7a606];_0x209365?(_0x209365[_0x25ce71(0xaa)]!=_0x29204c[_0x25ce71(0xaa)]&&(_0x209365['summary']=_0x209365[_0x25ce71(0xaa)]+','+_0x29204c['summary']),_0x209365['description']!=_0x29204c[_0x25ce71(0x91)]&&(_0x209365[_0x25ce71(0x91)]=_0x209365[_0x25ce71(0x91)]+','+_0x29204c[_0x25ce71(0x91)]),_0x209365['routes']=_0x209365[_0x25ce71(0x81)][_0x25ce71(0x87)](_0x29204c[_0x25ce71(0x81)]),_0x21b2f4[_0xc7a606]=_0x209365):_0x21b2f4[_0xc7a606]=_0x29204c;}}}return _0x21b2f4;}function a7_0x52db(_0x3f583e,_0x1117eb){const _0x5634a5=a7_0x5634();return a7_0x52db=function(_0x52db9f,_0x115be1){_0x52db9f=_0x52db9f-0x66;let _0x16aa31=_0x5634a5[_0x52db9f];return _0x16aa31;},a7_0x52db(_0x3f583e,_0x1117eb);}exports['getRoutes']=getRoutes;function getJoiRequest(_0x1bd0a1){const _0x31696a=a7_0x369b73,_0x41b1d0=[];for(let _0x1e7d42 in _0x1bd0a1){const _0x183b6b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xfa3a5d=typeof _0x1bd0a1[_0x1e7d42][_0x31696a(0xab)]==_0x31696a(0xae)?_0x1bd0a1[_0x1e7d42][_0x31696a(0xab)]():_0x1bd0a1[_0x1e7d42];_0x183b6b[_0x31696a(0xb0)]=_0x1e7d42,_0x183b6b[_0x31696a(0x7c)]=_0xfa3a5d[_0x31696a(0x7c)],_0x183b6b[_0x31696a(0xa7)]=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0xc6),_0x1e7d42),_0x183b6b['default']=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0x9f),''),_0x183b6b[_0x31696a(0x82)]=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0x69),'')==_0x31696a(0x82),_0x183b6b[_0x31696a(0x91)]=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0x9a),'');if(_0xfa3a5d[_0x31696a(0x7c)]==_0x31696a(0x73))_0x183b6b[_0x31696a(0xb4)]=getJoiRequest(_0xfa3a5d[_0x31696a(0xa3)]);else _0xfa3a5d[_0x31696a(0x7c)]==_0x31696a(0xc2)&&_0xfa3a5d[_0x31696a(0x7a)]&&Array[_0x31696a(0xc7)](_0xfa3a5d[_0x31696a(0x7a)])&&_0xfa3a5d[_0x31696a(0x7a)][0x0]&&console[_0x31696a(0xa6)](_0x1e7d42+'-array',_0xfa3a5d);_0xfa3a5d[_0x31696a(0x85)]&&Array[_0x31696a(0xc7)](_0xfa3a5d['allow'])&&_0xfa3a5d[_0x31696a(0x85)]['length']>0x0&&(_0x183b6b[_0x31696a(0x91)]='只允许:['+_0xfa3a5d['allow'][_0x31696a(0x6a)](',')+'];'+_0x183b6b[_0x31696a(0x91)]);if(_0x183b6b[_0x31696a(0xb0)]&&_0x183b6b['type']){const _0x4e1efa={};for(const _0x497827 of _0xfa3a5d[_0x31696a(0xa9)]||[]){if(_0x497827[_0x31696a(0xba)]===_0x31696a(0xb6)&&_0x497827[_0x31696a(0xc8)])_0x4e1efa[_0x31696a(0xb6)]=_0x497827['args'][_0x31696a(0xc0)];else _0x497827[_0x31696a(0xba)]===_0x31696a(0xa8)&&(_0x4e1efa[_0x31696a(0xa8)]=_0x497827[_0x31696a(0xc8)]['limit']);}_0x183b6b[_0x31696a(0xa9)]=_0x4e1efa;}_0x183b6b[_0x31696a(0xb0)]&&_0x183b6b[_0x31696a(0xa7)]&&_0x41b1d0[_0x31696a(0x6b)](_0x183b6b);}return _0x41b1d0;}function convertSchemaType(_0x282989){const _0x31de7b=a7_0x369b73;switch(_0x282989){case _0x31de7b(0x9e):return _0x31de7b(0x73);case _0x31de7b(0x99):return _0x31de7b(0x74);case _0x31de7b(0xc3):return _0x31de7b(0xc4);case _0x31de7b(0xa2):return _0x31de7b(0x89);case _0x31de7b(0xa4):return _0x31de7b(0x75);default:return'string';}}function convertTypeToString(_0x1b5c7d){const _0x272235=a7_0x369b73;switch(_0x1b5c7d){case decorator_1['RouteParamTypes']['HEADERS']:return _0x272235(0xa0);case decorator_1[_0x272235(0x6c)][_0x272235(0x8a)]:return _0x272235(0xaf);case decorator_1[_0x272235(0x6c)][_0x272235(0x67)]:return'path';case decorator_1[_0x272235(0x6c)]['BODY']:return _0x272235(0x8c);case decorator_1[_0x272235(0x6c)][_0x272235(0xbf)]:case decorator_1['RouteParamTypes'][_0x272235(0x80)]:case decorator_1[_0x272235(0x6c)][_0x272235(0xb7)]:return'file';default:return _0x272235(0xa0);}}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a8_0x59b431=a8_0x1a5f;(function(_0x3e79a3,_0x46eeca){var _0x59b6dc=a8_0x1a5f,_0x34f6e4=_0x3e79a3();while(!![]){try{var _0x274daa=-parseInt(_0x59b6dc(0x1dc))/0x1*(parseInt(_0x59b6dc(0x1ef))/0x2)+-parseInt(_0x59b6dc(0x1b7))/0x3*(parseInt(_0x59b6dc(0x1c7))/0x4)+-parseInt(_0x59b6dc(0x1cf))/0x5+parseInt(_0x59b6dc(0x1f0))/0x6+-parseInt(_0x59b6dc(0x1ca))/0x7*(parseInt(_0x59b6dc(0x1ba))/0x8)+parseInt(_0x59b6dc(0x1de))/0x9*(parseInt(_0x59b6dc(0x1c1))/0xa)+parseInt(_0x59b6dc(0x1d3))/0xb;if(_0x274daa===_0x46eeca)break;else _0x34f6e4['push'](_0x34f6e4['shift']());}catch(_0x16ffb1){_0x34f6e4['push'](_0x34f6e4['shift']());}}}(a8_0x19f8,0x9f85f));var __createBinding=this&&this[a8_0x59b431(0x1e3)]||(Object['create']?function(_0x33fcf2,_0x4acd15,_0x4ec63b,_0x3f2b86){var _0x812b04=a8_0x59b431;if(_0x3f2b86===undefined)_0x3f2b86=_0x4ec63b;var _0x21f293=Object[_0x812b04(0x1eb)](_0x4acd15,_0x4ec63b);(!_0x21f293||('get'in _0x21f293?!_0x4acd15[_0x812b04(0x1d9)]:_0x21f293[_0x812b04(0x1d4)]||_0x21f293[_0x812b04(0x1e4)]))&&(_0x21f293={'enumerable':!![],'get':function(){return _0x4acd15[_0x4ec63b];}}),Object[_0x812b04(0x1cd)](_0x33fcf2,_0x3f2b86,_0x21f293);}:function(_0x57e931,_0x3016b3,_0x41003e,_0x2393d5){if(_0x2393d5===undefined)_0x2393d5=_0x41003e;_0x57e931[_0x2393d5]=_0x3016b3[_0x41003e];}),__exportStar=this&&this['__exportStar']||function(_0x51827a,_0xdc96ba){var _0x5c06d5=a8_0x59b431;for(var _0x408e61 in _0x51827a)if(_0x408e61!==_0x5c06d5(0x1b8)&&!Object[_0x5c06d5(0x1f3)][_0x5c06d5(0x1ea)][_0x5c06d5(0x1cc)](_0xdc96ba,_0x408e61))__createBinding(_0xdc96ba,_0x51827a,_0x408e61);};Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1d9),{'value':!![]}),exports[a8_0x59b431(0x1db)]=exports[a8_0x59b431(0x1e0)]=exports[a8_0x59b431(0x1d7)]=exports[a8_0x59b431(0x1c3)]=exports[a8_0x59b431(0x1b9)]=exports[a8_0x59b431(0x1c0)]=exports[a8_0x59b431(0x1f2)]=exports[a8_0x59b431(0x1ee)]=exports['Headers']=exports[a8_0x59b431(0x1c5)]=exports[a8_0x59b431(0x1da)]=exports[a8_0x59b431(0x1e1)]=exports[a8_0x59b431(0x1d1)]=exports[a8_0x59b431(0x1df)]=exports['File']=exports[a8_0x59b431(0x1e7)]=exports[a8_0x59b431(0x1c9)]=exports['ValidatorError']=exports['ExcelService']=exports[a8_0x59b431(0x1d5)]=exports[a8_0x59b431(0x1dd)]=exports[a8_0x59b431(0x1f1)]=exports['QueueService']=exports[a8_0x59b431(0x1d6)]=exports[a8_0x59b431(0x1e5)]=exports['Action']=exports[a8_0x59b431(0x1be)]=exports['getRoutes']=void 0x0,__exportStar(require(a8_0x59b431(0x1c8)),exports),__exportStar(require('./service/ApitestService'),exports);var getRoutes_1=require(a8_0x59b431(0x1d8));Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1ec),{'enumerable':!![],'get':function(){var _0x2ad39d=a8_0x59b431;return getRoutes_1[_0x2ad39d(0x1ec)];}});function a8_0x19f8(){var _0xc55b67=['EventService','2221641lUyhot','Files','Scope','Body','@anncic-api/cache','__createBinding','configurable','Apitest','ValidatorError','Configuration','@midwayjs/decorator','CustomConfiguration','hasOwnProperty','getOwnPropertyDescriptor','getRoutes','Headers','Init','16WEVWMg','5030154ahwklu','CacheService','App','prototype','9zuUUJQ','default','Logger','2098792IpPSKE','./exception/ApiError','@midwayjs/task','Action','Api','./service/ExcelService','Config','10CSbYsk','ExcelService','Provide','QueueService','Query','@anncic-api/validator','1379368vEQmiR','./types/common','ValidatorService','14rNTUff','File','call','defineProperty','./decorator/ActionApi','6213325XEOWfI','./configuration','Fields','./decorator/ActionApitest','38132424lsKUFK','writable','ApiService','ApiError','Inject','./helper/getRoutes','__esModule','Param','ScopeEnum','137062vVVBVA'];a8_0x19f8=function(){return _0xc55b67;};return a8_0x19f8();}var ActionApi_1=require(a8_0x59b431(0x1ce));Object['defineProperty'](exports,a8_0x59b431(0x1be),{'enumerable':!![],'get':function(){var _0x1a5f5d=a8_0x59b431;return ActionApi_1[_0x1a5f5d(0x1be)];}});var Action_1=require('./decorator/Action');Object['defineProperty'](exports,a8_0x59b431(0x1bd),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a8_0x59b431(0x1d2));Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1e5),{'enumerable':!![],'get':function(){var _0x558ab8=a8_0x59b431;return ActionApitest_1[_0x558ab8(0x1e5)];}});var ApiError_1=require(a8_0x59b431(0x1bb));Object['defineProperty'](exports,a8_0x59b431(0x1d6),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a8_0x59b431(0x1bc));Object[a8_0x59b431(0x1cd)](exports,'QueueService',{'enumerable':!![],'get':function(){var _0x4cec54=a8_0x59b431;return task_1[_0x4cec54(0x1c4)];}});var cache_1=require(a8_0x59b431(0x1e2));Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1f1),{'enumerable':!![],'get':function(){var _0x47d199=a8_0x59b431;return cache_1[_0x47d199(0x1f1)];}});var event_1=require('@anncic-api/event');Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1dd),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');function a8_0x1a5f(_0x59b734,_0x5599a){var _0x19f8b1=a8_0x19f8();return a8_0x1a5f=function(_0x1a5f68,_0xe45776){_0x1a5f68=_0x1a5f68-0x1b7;var _0x3008d9=_0x19f8b1[_0x1a5f68];return _0x3008d9;},a8_0x1a5f(_0x59b734,_0x5599a);}Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1d5),{'enumerable':!![],'get':function(){var _0x41b277=a8_0x59b431;return ApiService_1[_0x41b277(0x1d5)];}});var ExcelService_1=require(a8_0x59b431(0x1bf));Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1c2),{'enumerable':!![],'get':function(){var _0x136925=a8_0x59b431;return ExcelService_1[_0x136925(0x1c2)];}});var validator_1=require(a8_0x59b431(0x1c6));Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1e6),{'enumerable':!![],'get':function(){var _0x57ca1a=a8_0x59b431;return validator_1[_0x57ca1a(0x1e6)];}}),Object['defineProperty'](exports,a8_0x59b431(0x1c9),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a8_0x59b431(0x1d0));Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1e7),{'enumerable':!![],'get':function(){var _0x54ee70=a8_0x59b431;return configuration_1[_0x54ee70(0x1e9)];}});var decorator_1=require(a8_0x59b431(0x1e8));Object[a8_0x59b431(0x1cd)](exports,'File',{'enumerable':!![],'get':function(){var _0x1a2f6b=a8_0x59b431;return decorator_1[_0x1a2f6b(0x1cb)];}}),Object[a8_0x59b431(0x1cd)](exports,'Files',{'enumerable':!![],'get':function(){var _0x3ca67e=a8_0x59b431;return decorator_1[_0x3ca67e(0x1df)];}}),Object[a8_0x59b431(0x1cd)](exports,'Fields',{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object[a8_0x59b431(0x1cd)](exports,'Body',{'enumerable':!![],'get':function(){var _0x5e206d=a8_0x59b431;return decorator_1[_0x5e206d(0x1e1)];}}),Object[a8_0x59b431(0x1cd)](exports,'Param',{'enumerable':!![],'get':function(){var _0x146c7f=a8_0x59b431;return decorator_1[_0x146c7f(0x1da)];}}),Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1c5),{'enumerable':!![],'get':function(){var _0x4c00d1=a8_0x59b431;return decorator_1[_0x4c00d1(0x1c5)];}}),Object[a8_0x59b431(0x1cd)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x22e700=a8_0x59b431;return decorator_1[_0x22e700(0x1ed)];}}),Object[a8_0x59b431(0x1cd)](exports,'Init',{'enumerable':!![],'get':function(){return decorator_1['Init'];}});var decorator_2=require('@midwayjs/decorator');Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1f2),{'enumerable':!![],'get':function(){var _0x95d01b=a8_0x59b431;return decorator_2[_0x95d01b(0x1f2)];}}),Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1c0),{'enumerable':!![],'get':function(){var _0x534824=a8_0x59b431;return decorator_2[_0x534824(0x1c0)];}}),Object['defineProperty'](exports,a8_0x59b431(0x1b9),{'enumerable':!![],'get':function(){var _0x59052d=a8_0x59b431;return decorator_2[_0x59052d(0x1b9)];}}),Object['defineProperty'](exports,a8_0x59b431(0x1c3),{'enumerable':!![],'get':function(){var _0x428a2a=a8_0x59b431;return decorator_2[_0x428a2a(0x1c3)];}}),Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1d7),{'enumerable':!![],'get':function(){var _0x5bc26e=a8_0x59b431;return decorator_2[_0x5bc26e(0x1d7)];}}),Object[a8_0x59b431(0x1cd)](exports,a8_0x59b431(0x1e0),{'enumerable':!![],'get':function(){var _0x41cb51=a8_0x59b431;return decorator_2[_0x41cb51(0x1e0)];}}),Object['defineProperty'](exports,a8_0x59b431(0x1db),{'enumerable':!![],'get':function(){var _0xc69370=a8_0x59b431;return decorator_2[_0xc69370(0x1db)];}});
1
+ 'use strict';var a8_0x4c62e1=a8_0x5aa9;(function(_0x5f3fe9,_0x4ee3fe){var _0x4ed9f9=a8_0x5aa9,_0x119779=_0x5f3fe9();while(!![]){try{var _0x49d4e8=parseInt(_0x4ed9f9(0x168))/0x1*(parseInt(_0x4ed9f9(0x171))/0x2)+-parseInt(_0x4ed9f9(0x181))/0x3*(parseInt(_0x4ed9f9(0x17e))/0x4)+-parseInt(_0x4ed9f9(0x180))/0x5*(parseInt(_0x4ed9f9(0x163))/0x6)+parseInt(_0x4ed9f9(0x17d))/0x7+parseInt(_0x4ed9f9(0x142))/0x8*(-parseInt(_0x4ed9f9(0x176))/0x9)+parseInt(_0x4ed9f9(0x16a))/0xa*(-parseInt(_0x4ed9f9(0x14e))/0xb)+parseInt(_0x4ed9f9(0x17a))/0xc;if(_0x49d4e8===_0x4ee3fe)break;else _0x119779['push'](_0x119779['shift']());}catch(_0x321564){_0x119779['push'](_0x119779['shift']());}}}(a8_0x28e8,0xb4d3b));var __createBinding=this&&this[a8_0x4c62e1(0x179)]||(Object[a8_0x4c62e1(0x145)]?function(_0x359db3,_0x2dcb9d,_0x1bba97,_0x4dd790){var _0x365656=a8_0x4c62e1;if(_0x4dd790===undefined)_0x4dd790=_0x1bba97;var _0x3d2548=Object['getOwnPropertyDescriptor'](_0x2dcb9d,_0x1bba97);(!_0x3d2548||(_0x365656(0x165)in _0x3d2548?!_0x2dcb9d[_0x365656(0x15d)]:_0x3d2548['writable']||_0x3d2548[_0x365656(0x149)]))&&(_0x3d2548={'enumerable':!![],'get':function(){return _0x2dcb9d[_0x1bba97];}}),Object[_0x365656(0x16b)](_0x359db3,_0x4dd790,_0x3d2548);}:function(_0x17f0b3,_0xc7cf11,_0x4f49bd,_0x583990){if(_0x583990===undefined)_0x583990=_0x4f49bd;_0x17f0b3[_0x583990]=_0xc7cf11[_0x4f49bd];}),__exportStar=this&&this[a8_0x4c62e1(0x15f)]||function(_0x16866e,_0x1ee540){var _0x7117b0=a8_0x4c62e1;for(var _0x1d9748 in _0x16866e)if(_0x1d9748!==_0x7117b0(0x16e)&&!Object['prototype'][_0x7117b0(0x175)][_0x7117b0(0x16f)](_0x1ee540,_0x1d9748))__createBinding(_0x1ee540,_0x16866e,_0x1d9748);};Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x15d),{'value':!![]}),exports['ScopeEnum']=exports[a8_0x4c62e1(0x154)]=exports['Inject']=exports[a8_0x4c62e1(0x17f)]=exports['Logger']=exports[a8_0x4c62e1(0x146)]=exports[a8_0x4c62e1(0x159)]=exports[a8_0x4c62e1(0x144)]=exports[a8_0x4c62e1(0x177)]=exports['Query']=exports[a8_0x4c62e1(0x169)]=exports[a8_0x4c62e1(0x148)]=exports['Fields']=exports['Files']=exports['File']=exports[a8_0x4c62e1(0x14b)]=exports[a8_0x4c62e1(0x14d)]=exports[a8_0x4c62e1(0x162)]=exports['ExcelService']=exports[a8_0x4c62e1(0x174)]=exports[a8_0x4c62e1(0x15c)]=exports[a8_0x4c62e1(0x15a)]=exports[a8_0x4c62e1(0x16c)]=exports['ApiError']=exports[a8_0x4c62e1(0x16d)]=exports[a8_0x4c62e1(0x160)]=exports[a8_0x4c62e1(0x143)]=exports[a8_0x4c62e1(0x173)]=void 0x0,__exportStar(require(a8_0x4c62e1(0x167)),exports),__exportStar(require(a8_0x4c62e1(0x17b)),exports);var getRoutes_1=require(a8_0x4c62e1(0x15b));Object[a8_0x4c62e1(0x16b)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x52131e=a8_0x4c62e1;return getRoutes_1[_0x52131e(0x173)];}});var ActionApi_1=require(a8_0x4c62e1(0x172));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x143),{'enumerable':!![],'get':function(){var _0x3c49dc=a8_0x4c62e1;return ActionApi_1[_0x3c49dc(0x143)];}});var Action_1=require(a8_0x4c62e1(0x164));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x160),{'enumerable':!![],'get':function(){var _0x50fba4=a8_0x4c62e1;return Action_1[_0x50fba4(0x160)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x16d),{'enumerable':!![],'get':function(){var _0x3ec0e8=a8_0x4c62e1;return ActionApitest_1[_0x3ec0e8(0x16d)];}});var ApiError_1=require(a8_0x4c62e1(0x17c));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x157),{'enumerable':!![],'get':function(){var _0xb9a61d=a8_0x4c62e1;return ApiError_1[_0xb9a61d(0x157)];}});var task_1=require(a8_0x4c62e1(0x161));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x16c),{'enumerable':!![],'get':function(){var _0x3d6c6c=a8_0x4c62e1;return task_1[_0x3d6c6c(0x16c)];}});var cache_1=require(a8_0x4c62e1(0x14a));Object['defineProperty'](exports,a8_0x4c62e1(0x15a),{'enumerable':!![],'get':function(){var _0xe00386=a8_0x4c62e1;return cache_1[_0xe00386(0x15a)];}});var event_1=require(a8_0x4c62e1(0x151));function a8_0x5aa9(_0x443ddc,_0x4778e1){var _0x28e8e0=a8_0x28e8();return a8_0x5aa9=function(_0x5aa958,_0x294b7f){_0x5aa958=_0x5aa958-0x142;var _0x518d9a=_0x28e8e0[_0x5aa958];return _0x518d9a;},a8_0x5aa9(_0x443ddc,_0x4778e1);}Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x15c),{'enumerable':!![],'get':function(){var _0x5e0aee=a8_0x4c62e1;return event_1[_0x5e0aee(0x15c)];}});function a8_0x28e8(){var _0x519594=['configurable','@anncic-api/cache','Configuration','./service/ExcelService','ValidatorService','40513sSLhRW','Inject','ExcelService','@anncic-api/event','ScopeEnum','@midwayjs/decorator','Scope','File','Logger','ApiError','Fields','App','CacheService','./helper/getRoutes','EventService','__esModule','CustomConfiguration','__exportStar','Action','@midwayjs/task','ValidatorError','12ONVvzQ','./decorator/Action','get','Files','./types/common','996423pJFtXv','Param','3660mgxGdM','defineProperty','QueueService','Apitest','default','call','@anncic-api/validator','2gSekNg','./decorator/ActionApi','getRoutes','ApiService','hasOwnProperty','63gRRzHh','Headers','./configuration','__createBinding','17459628XmltIA','./service/ApitestService','./exception/ApiError','10318105tbjQbR','20948qOeFoP','Provide','1255505cAuCPo','639FPCnGY','250376vgZnpc','Api','Init','create','Config','./service/ApiService','Body'];a8_0x28e8=function(){return _0x519594;};return a8_0x28e8();}var ApiService_1=require(a8_0x4c62e1(0x147));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x174),{'enumerable':!![],'get':function(){var _0x5960d2=a8_0x4c62e1;return ApiService_1[_0x5960d2(0x174)];}});var ExcelService_1=require(a8_0x4c62e1(0x14c));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x150),{'enumerable':!![],'get':function(){var _0x22825c=a8_0x4c62e1;return ExcelService_1[_0x22825c(0x150)];}});var validator_1=require(a8_0x4c62e1(0x170));Object['defineProperty'](exports,a8_0x4c62e1(0x162),{'enumerable':!![],'get':function(){var _0x231d78=a8_0x4c62e1;return validator_1[_0x231d78(0x162)];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x14d),{'enumerable':!![],'get':function(){var _0x7807d7=a8_0x4c62e1;return validator_1[_0x7807d7(0x14d)];}});var configuration_1=require(a8_0x4c62e1(0x178));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x14b),{'enumerable':!![],'get':function(){var _0x526ba1=a8_0x4c62e1;return configuration_1[_0x526ba1(0x15e)];}});var decorator_1=require(a8_0x4c62e1(0x153));Object[a8_0x4c62e1(0x16b)](exports,'File',{'enumerable':!![],'get':function(){var _0x3659ce=a8_0x4c62e1;return decorator_1[_0x3659ce(0x155)];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x166),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x158),{'enumerable':!![],'get':function(){var _0x10790a=a8_0x4c62e1;return decorator_1[_0x10790a(0x158)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Body',{'enumerable':!![],'get':function(){var _0x4068e8=a8_0x4c62e1;return decorator_1[_0x4068e8(0x148)];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x169),{'enumerable':!![],'get':function(){var _0x10e7c1=a8_0x4c62e1;return decorator_1[_0x10e7c1(0x169)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Query',{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x177),{'enumerable':!![],'get':function(){var _0x211e52=a8_0x4c62e1;return decorator_1[_0x211e52(0x177)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Init',{'enumerable':!![],'get':function(){var _0x34e5a0=a8_0x4c62e1;return decorator_1[_0x34e5a0(0x144)];}});var decorator_2=require(a8_0x4c62e1(0x153));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x159),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x146),{'enumerable':!![],'get':function(){var _0x1df5a3=a8_0x4c62e1;return decorator_2[_0x1df5a3(0x146)];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x156),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x17f),{'enumerable':!![],'get':function(){var _0x1dcca5=a8_0x4c62e1;return decorator_2[_0x1dcca5(0x17f)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x2214d4=a8_0x4c62e1;return decorator_2[_0x2214d4(0x14f)];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x154),{'enumerable':!![],'get':function(){var _0x313bf9=a8_0x4c62e1;return decorator_2[_0x313bf9(0x154)];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x152),{'enumerable':!![],'get':function(){var _0x59cf81=a8_0x4c62e1;return decorator_2[_0x59cf81(0x152)];}});
@@ -1 +1 @@
1
- 'use strict';var a9_0x4b8191=a9_0x3ceb;function a9_0x3ceb(_0x1a1bbd,_0x2afb20){var _0x3079be=a9_0x3079();return a9_0x3ceb=function(_0x3ceb11,_0x35ded9){_0x3ceb11=_0x3ceb11-0x157;var _0x16ea1b=_0x3079be[_0x3ceb11];return _0x16ea1b;},a9_0x3ceb(_0x1a1bbd,_0x2afb20);}(function(_0xc346d7,_0x463b94){var _0x14fe68=a9_0x3ceb,_0x7d93bc=_0xc346d7();while(!![]){try{var _0x3128cd=parseInt(_0x14fe68(0x171))/0x1+-parseInt(_0x14fe68(0x18a))/0x2*(-parseInt(_0x14fe68(0x165))/0x3)+parseInt(_0x14fe68(0x180))/0x4*(-parseInt(_0x14fe68(0x173))/0x5)+parseInt(_0x14fe68(0x18c))/0x6*(-parseInt(_0x14fe68(0x164))/0x7)+-parseInt(_0x14fe68(0x167))/0x8*(-parseInt(_0x14fe68(0x185))/0x9)+parseInt(_0x14fe68(0x16a))/0xa+parseInt(_0x14fe68(0x183))/0xb;if(_0x3128cd===_0x463b94)break;else _0x7d93bc['push'](_0x7d93bc['shift']());}catch(_0x2bd17e){_0x7d93bc['push'](_0x7d93bc['shift']());}}}(a9_0x3079,0xd80c5));var __decorate=this&&this[a9_0x4b8191(0x15e)]||function(_0x32f553,_0x324999,_0x5b5cd5,_0x2a5401){var _0x3d2ede=a9_0x4b8191,_0x12a5bd=arguments['length'],_0x5cad80=_0x12a5bd<0x3?_0x324999:_0x2a5401===null?_0x2a5401=Object[_0x3d2ede(0x181)](_0x324999,_0x5b5cd5):_0x2a5401,_0x57c83e;if(typeof Reflect==='object'&&typeof Reflect[_0x3d2ede(0x162)]===_0x3d2ede(0x18f))_0x5cad80=Reflect[_0x3d2ede(0x162)](_0x32f553,_0x324999,_0x5b5cd5,_0x2a5401);else{for(var _0x4c7105=_0x32f553[_0x3d2ede(0x17b)]-0x1;_0x4c7105>=0x0;_0x4c7105--)if(_0x57c83e=_0x32f553[_0x4c7105])_0x5cad80=(_0x12a5bd<0x3?_0x57c83e(_0x5cad80):_0x12a5bd>0x3?_0x57c83e(_0x324999,_0x5b5cd5,_0x5cad80):_0x57c83e(_0x324999,_0x5b5cd5))||_0x5cad80;}return _0x12a5bd>0x3&&_0x5cad80&&Object[_0x3d2ede(0x17a)](_0x324999,_0x5b5cd5,_0x5cad80),_0x5cad80;},__metadata=this&&this[a9_0x4b8191(0x18d)]||function(_0x36b8f2,_0x29e6ae){var _0x476435=a9_0x4b8191;if(typeof Reflect==='object'&&typeof Reflect[_0x476435(0x16c)]===_0x476435(0x18f))return Reflect[_0x476435(0x16c)](_0x36b8f2,_0x29e6ae);};Object[a9_0x4b8191(0x17a)](exports,'__esModule',{'value':!![]}),exports[a9_0x4b8191(0x157)]=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require(a9_0x4b8191(0x18e)),ApiError_1=require('../exception/ApiError');function a9_0x3079(){var _0x1dca9f=['__metadata','@midwayjs/decorator','function','checksign','secret=','push','ApiService','getsign','Scope','Singleton','ApiError','join','requesttime','__decorate','缺少头信息:','map','devices','decorate','checkcode','147455OklxQd','12hHDTLM','config','416HYxbDt','HEADERS_LACK','fromEntries','11242500viopyQ','getcheck','metadata','secret','design:type','TIMEOUT','prototype','974401pfBXZM','signature','1005MZvVVT','token','MD5','HEADERS_CHECKCODE','logintime','toLowerCase','entries','defineProperty','length','缺少头信息:signature','now','Config','HEADERS_SIGNATURE','2952mCChjt','getOwnPropertyDescriptor','ScopeEnum','4866455SJAnxE','toString','31887RLcgqF','password','sort','device','timeout','7122kILVWd','HEADERS_DEVICE','486HoJrNm'];a9_0x3079=function(){return _0x1dca9f;};return a9_0x3079();}let ApiService=class ApiService{[a9_0x4b8191(0x186)](_0x51d7cf){var _0x9654aa=a9_0x4b8191,_0x423e0a;return _0x51d7cf?(0x0,crypto_js_1[_0x9654aa(0x175)])(_0x51d7cf+(0x0,crypto_js_1[_0x9654aa(0x175)])((0x0,crypto_js_1['MD5'])(_0x51d7cf)[_0x9654aa(0x184)]()+((_0x423e0a=this['config'])===null||_0x423e0a===void 0x0?void 0x0:_0x423e0a[_0x9654aa(0x186)]))[_0x9654aa(0x184)]())[_0x9654aa(0x184)]():'';}[a9_0x4b8191(0x16b)](_0x5a5ec1,_0x2bd2b0,_0x17b3de=Date['now']()){var _0x2dfc72=a9_0x4b8191;return{'Token':_0x5a5ec1,'Logintime':_0x17b3de,'Checkcode':this[_0x2dfc72(0x163)](_0x5a5ec1,_0x2bd2b0,_0x17b3de)};}[a9_0x4b8191(0x158)](_0x4edd41={}){var _0xe63e5c=a9_0x4b8191;const _0x477812=[],_0x5806d8=Object['fromEntries'](Object['entries'](_0x4edd41)['map'](_0x59d611=>[_0x59d611[0x0][_0xe63e5c(0x178)](),_0x59d611[0x1]]));for(let _0x5ed8c2 of['device',_0xe63e5c(0x15d),'token',_0xe63e5c(0x177),_0xe63e5c(0x163)]){if(typeof _0x5806d8[_0x5ed8c2]=='undefined')throw new AnnError(ApiError_1['ApiError'][_0xe63e5c(0x168)],{'message':_0xe63e5c(0x15f)+_0x5ed8c2});_0x477812[_0xe63e5c(0x192)](_0x5ed8c2+'='+_0x5806d8[_0x5ed8c2]);}if(Math['abs'](_0x5806d8[_0xe63e5c(0x15d)])-Date[_0xe63e5c(0x17d)]()>this['config'][_0xe63e5c(0x189)])throw new AnnError(ApiError_1['ApiError'][_0xe63e5c(0x16f)]);if(!this['config']['devices'][_0x5806d8['device']]||!this[_0xe63e5c(0x166)][_0xe63e5c(0x161)][_0x5806d8['device']][_0xe63e5c(0x16d)]||!this[_0xe63e5c(0x166)]['devices'][_0x5806d8['device']]['checkcode'])throw new AnnError(ApiError_1[_0xe63e5c(0x15b)]['HEADERS_DEVICE']);if(_0x5806d8[_0xe63e5c(0x174)]&&_0x5806d8[_0xe63e5c(0x163)]!=this[_0xe63e5c(0x163)](_0x5806d8[_0xe63e5c(0x174)],_0x5806d8[_0xe63e5c(0x188)],_0x5806d8[_0xe63e5c(0x177)]))throw new AnnError(ApiError_1['ApiError'][_0xe63e5c(0x176)]);return _0x477812['push'](_0xe63e5c(0x191)+this[_0xe63e5c(0x166)][_0xe63e5c(0x161)][_0x5806d8[_0xe63e5c(0x188)]][_0xe63e5c(0x16d)]),(0x0,crypto_js_1[_0xe63e5c(0x175)])(_0x477812[_0xe63e5c(0x187)]()[_0xe63e5c(0x15c)](''))[_0xe63e5c(0x184)]();}[a9_0x4b8191(0x163)](_0x453bd5,_0x1e4d1d,_0x2ec2a6=Date[a9_0x4b8191(0x17d)]()){var _0x2222e4=a9_0x4b8191,_0x5e2e9b,_0x41ca7f,_0x2ca2dd;if(!((_0x5e2e9b=this[_0x2222e4(0x166)])===null||_0x5e2e9b===void 0x0?void 0x0:_0x5e2e9b[_0x2222e4(0x161)][_0x1e4d1d])||!((_0x2ca2dd=(_0x41ca7f=this[_0x2222e4(0x166)])===null||_0x41ca7f===void 0x0?void 0x0:_0x41ca7f['devices'][_0x1e4d1d])===null||_0x2ca2dd===void 0x0?void 0x0:_0x2ca2dd[_0x2222e4(0x163)]))throw new AnnError(ApiError_1['ApiError'][_0x2222e4(0x18b)]);return(0x0,crypto_js_1[_0x2222e4(0x175)])(_0x453bd5+(0x0,crypto_js_1['MD5'])(_0x2ec2a6+this[_0x2222e4(0x166)][_0x2222e4(0x161)][_0x1e4d1d]['checkcode'])[_0x2222e4(0x184)]())[_0x2222e4(0x184)]();}[a9_0x4b8191(0x190)](_0x53d62c={}){var _0x54c038=a9_0x4b8191;const _0x2e86c9=Object[_0x54c038(0x169)](Object[_0x54c038(0x179)](_0x53d62c)[_0x54c038(0x160)](_0x2d23eb=>[_0x2d23eb[0x0][_0x54c038(0x178)](),_0x2d23eb[0x1]]));if(!(_0x2e86c9===null||_0x2e86c9===void 0x0?void 0x0:_0x2e86c9[_0x54c038(0x172)]))throw new AnnError(ApiError_1[_0x54c038(0x15b)][_0x54c038(0x168)],{'message':_0x54c038(0x17c)});if((_0x2e86c9===null||_0x2e86c9===void 0x0?void 0x0:_0x2e86c9[_0x54c038(0x172)])!=this['getsign'](_0x2e86c9))throw new AnnError(ApiError_1[_0x54c038(0x15b)][_0x54c038(0x17f)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x4b8191(0x17e)])('anncicapi'),__metadata(a9_0x4b8191(0x16e),Object)],ApiService[a9_0x4b8191(0x170)],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a9_0x4b8191(0x159)])(decorator_1[a9_0x4b8191(0x182)][a9_0x4b8191(0x15a)])],ApiService),exports[a9_0x4b8191(0x157)]=ApiService;
1
+ 'use strict';function a9_0x2ada(){var _0x34a636=['ApiService','Provide','toLowerCase','defineProperty','fromEntries','crypto-js','1206774QYTJey','undefined','now','HEADERS_LACK','config','anncicapi','ScopeEnum','16ICDwCY','password','908886PmoQVa','getcheck','metadata','TIMEOUT','7WDJUBz','3747vVmyGt','prototype','../exception/ApiError','device','198rhBjbq','timeout','576890HhPQmS','secret=','decorate','@midwayjs/decorator','signature','function','entries','819066hcCrYm','3467696mMuipL','design:type','checkcode','abs','Config','Scope','map','1238HKbpmy','MD5','ApiError','getsign','join','length','object','devices','checksign','push','HEADERS_DEVICE','HEADERS_CHECKCODE','requesttime','secret','toString','HEADERS_SIGNATURE','3416750RFoABv'];a9_0x2ada=function(){return _0x34a636;};return a9_0x2ada();}var a9_0x216739=a9_0x5ca3;(function(_0x2cf839,_0x4293d8){var _0x198973=a9_0x5ca3,_0x11b7ff=_0x2cf839();while(!![]){try{var _0x131330=parseInt(_0x198973(0x11b))/0x1+-parseInt(_0x198973(0x135))/0x2*(parseInt(_0x198973(0x120))/0x3)+-parseInt(_0x198973(0x12e))/0x4+parseInt(_0x198973(0x10b))/0x5+parseInt(_0x198973(0x12d))/0x6*(-parseInt(_0x198973(0x11f))/0x7)+-parseInt(_0x198973(0x119))/0x8*(parseInt(_0x198973(0x112))/0x9)+-parseInt(_0x198973(0x126))/0xa*(-parseInt(_0x198973(0x124))/0xb);if(_0x131330===_0x4293d8)break;else _0x11b7ff['push'](_0x11b7ff['shift']());}catch(_0x4dddba){_0x11b7ff['push'](_0x11b7ff['shift']());}}}(a9_0x2ada,0x8f0ac));var __decorate=this&&this['__decorate']||function(_0x4521c5,_0x2660e2,_0x5b5594,_0x24ad0d){var _0x544e23=a9_0x5ca3,_0x3a7128=arguments[_0x544e23(0x13a)],_0xc1c328=_0x3a7128<0x3?_0x2660e2:_0x24ad0d===null?_0x24ad0d=Object['getOwnPropertyDescriptor'](_0x2660e2,_0x5b5594):_0x24ad0d,_0x114e58;if(typeof Reflect===_0x544e23(0x13b)&&typeof Reflect[_0x544e23(0x128)]===_0x544e23(0x12b))_0xc1c328=Reflect[_0x544e23(0x128)](_0x4521c5,_0x2660e2,_0x5b5594,_0x24ad0d);else{for(var _0x1b9330=_0x4521c5[_0x544e23(0x13a)]-0x1;_0x1b9330>=0x0;_0x1b9330--)if(_0x114e58=_0x4521c5[_0x1b9330])_0xc1c328=(_0x3a7128<0x3?_0x114e58(_0xc1c328):_0x3a7128>0x3?_0x114e58(_0x2660e2,_0x5b5594,_0xc1c328):_0x114e58(_0x2660e2,_0x5b5594))||_0xc1c328;}return _0x3a7128>0x3&&_0xc1c328&&Object[_0x544e23(0x10f)](_0x2660e2,_0x5b5594,_0xc1c328),_0xc1c328;},__metadata=this&&this['__metadata']||function(_0x1db7c8,_0x5ee65f){var _0x2d8727=a9_0x5ca3;if(typeof Reflect===_0x2d8727(0x13b)&&typeof Reflect['metadata']===_0x2d8727(0x12b))return Reflect[_0x2d8727(0x11d)](_0x1db7c8,_0x5ee65f);};function a9_0x5ca3(_0xbc4a0d,_0x2334ac){var _0x2ada03=a9_0x2ada();return a9_0x5ca3=function(_0x5ca3c2,_0x5e4d42){_0x5ca3c2=_0x5ca3c2-0x106;var _0x68e164=_0x2ada03[_0x5ca3c2];return _0x68e164;},a9_0x5ca3(_0xbc4a0d,_0x2334ac);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x216739(0x10c)]=void 0x0;const crypto_js_1=require(a9_0x216739(0x111)),decorator_1=require(a9_0x216739(0x129)),ApiError_1=require(a9_0x216739(0x122));let ApiService=class ApiService{[a9_0x216739(0x11a)](_0x459d71){var _0x4c31f4=a9_0x216739,_0x4a6647;return _0x459d71?(0x0,crypto_js_1[_0x4c31f4(0x136)])(_0x459d71+(0x0,crypto_js_1[_0x4c31f4(0x136)])((0x0,crypto_js_1[_0x4c31f4(0x136)])(_0x459d71)[_0x4c31f4(0x109)]()+((_0x4a6647=this['config'])===null||_0x4a6647===void 0x0?void 0x0:_0x4a6647[_0x4c31f4(0x11a)]))[_0x4c31f4(0x109)]())[_0x4c31f4(0x109)]():'';}[a9_0x216739(0x11c)](_0x51a617,_0x355d67,_0x5b05dc=Date[a9_0x216739(0x114)]()){var _0xc08f9d=a9_0x216739;return{'Token':_0x51a617,'Logintime':_0x5b05dc,'Checkcode':this[_0xc08f9d(0x130)](_0x51a617,_0x355d67,_0x5b05dc)};}['getsign'](_0x299fbf={}){var _0x37f26c=a9_0x216739;const _0x50552f=[],_0x4ee3b1=Object[_0x37f26c(0x110)](Object['entries'](_0x299fbf)['map'](_0x397e13=>[_0x397e13[0x0][_0x37f26c(0x10e)](),_0x397e13[0x1]]));for(let _0x1ff1f2 of[_0x37f26c(0x123),_0x37f26c(0x107),'token','logintime','checkcode']){if(typeof _0x4ee3b1[_0x1ff1f2]==_0x37f26c(0x113))throw new AnnError(ApiError_1['ApiError'][_0x37f26c(0x115)],{'message':'缺少头信息:'+_0x1ff1f2});_0x50552f[_0x37f26c(0x13e)](_0x1ff1f2+'='+_0x4ee3b1[_0x1ff1f2]);}if(Math[_0x37f26c(0x131)](_0x4ee3b1[_0x37f26c(0x107)])-Date[_0x37f26c(0x114)]()>this[_0x37f26c(0x116)][_0x37f26c(0x125)])throw new AnnError(ApiError_1[_0x37f26c(0x137)][_0x37f26c(0x11e)]);if(!this[_0x37f26c(0x116)][_0x37f26c(0x13c)][_0x4ee3b1[_0x37f26c(0x123)]]||!this['config'][_0x37f26c(0x13c)][_0x4ee3b1['device']]['secret']||!this['config'][_0x37f26c(0x13c)][_0x4ee3b1[_0x37f26c(0x123)]][_0x37f26c(0x130)])throw new AnnError(ApiError_1[_0x37f26c(0x137)][_0x37f26c(0x13f)]);if(_0x4ee3b1['token']&&_0x4ee3b1[_0x37f26c(0x130)]!=this[_0x37f26c(0x130)](_0x4ee3b1['token'],_0x4ee3b1[_0x37f26c(0x123)],_0x4ee3b1['logintime']))throw new AnnError(ApiError_1[_0x37f26c(0x137)][_0x37f26c(0x106)]);return _0x50552f[_0x37f26c(0x13e)](_0x37f26c(0x127)+this[_0x37f26c(0x116)]['devices'][_0x4ee3b1['device']][_0x37f26c(0x108)]),(0x0,crypto_js_1[_0x37f26c(0x136)])(_0x50552f['sort']()[_0x37f26c(0x139)](''))[_0x37f26c(0x109)]();}[a9_0x216739(0x130)](_0x133cec,_0x23244d,_0x4afd67=Date['now']()){var _0x4429f3=a9_0x216739,_0x284ab7,_0x4e4e61,_0x1e5fa1;if(!((_0x284ab7=this[_0x4429f3(0x116)])===null||_0x284ab7===void 0x0?void 0x0:_0x284ab7[_0x4429f3(0x13c)][_0x23244d])||!((_0x1e5fa1=(_0x4e4e61=this[_0x4429f3(0x116)])===null||_0x4e4e61===void 0x0?void 0x0:_0x4e4e61[_0x4429f3(0x13c)][_0x23244d])===null||_0x1e5fa1===void 0x0?void 0x0:_0x1e5fa1[_0x4429f3(0x130)]))throw new AnnError(ApiError_1[_0x4429f3(0x137)][_0x4429f3(0x13f)]);return(0x0,crypto_js_1[_0x4429f3(0x136)])(_0x133cec+(0x0,crypto_js_1[_0x4429f3(0x136)])(_0x4afd67+this[_0x4429f3(0x116)][_0x4429f3(0x13c)][_0x23244d][_0x4429f3(0x130)])[_0x4429f3(0x109)]())['toString']();}[a9_0x216739(0x13d)](_0x4ecd96={}){var _0x1dea7a=a9_0x216739;const _0x69492f=Object[_0x1dea7a(0x110)](Object[_0x1dea7a(0x12c)](_0x4ecd96)[_0x1dea7a(0x134)](_0x4ae32b=>[_0x4ae32b[0x0][_0x1dea7a(0x10e)](),_0x4ae32b[0x1]]));if(!(_0x69492f===null||_0x69492f===void 0x0?void 0x0:_0x69492f[_0x1dea7a(0x12a)]))throw new AnnError(ApiError_1[_0x1dea7a(0x137)][_0x1dea7a(0x115)],{'message':'缺少头信息:signature'});if((_0x69492f===null||_0x69492f===void 0x0?void 0x0:_0x69492f[_0x1dea7a(0x12a)])!=this[_0x1dea7a(0x138)](_0x69492f))throw new AnnError(ApiError_1[_0x1dea7a(0x137)][_0x1dea7a(0x10a)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x216739(0x132)])(a9_0x216739(0x117)),__metadata(a9_0x216739(0x12f),Object)],ApiService[a9_0x216739(0x121)],a9_0x216739(0x116),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x216739(0x10d)])(),(0x0,decorator_1[a9_0x216739(0x133)])(decorator_1[a9_0x216739(0x118)]['Singleton'])],ApiService),exports[a9_0x216739(0x10c)]=ApiService;
@@ -1 +1 @@
1
- 'use strict';function a10_0x36f1(_0x275cf4,_0x91aef8){const _0x42dbf2=a10_0x42db();return a10_0x36f1=function(_0x36f12d,_0x319da4){_0x36f12d=_0x36f12d-0x13c;let _0x266344=_0x42dbf2[_0x36f12d];return _0x266344;},a10_0x36f1(_0x275cf4,_0x91aef8);}const a10_0x4b7dcd=a10_0x36f1;(function(_0x388e62,_0x417028){const _0x5f5589=a10_0x36f1,_0x4f04ab=_0x388e62();while(!![]){try{const _0x246f97=-parseInt(_0x5f5589(0x187))/0x1*(parseInt(_0x5f5589(0x150))/0x2)+-parseInt(_0x5f5589(0x16b))/0x3+-parseInt(_0x5f5589(0x173))/0x4+parseInt(_0x5f5589(0x148))/0x5*(parseInt(_0x5f5589(0x17d))/0x6)+parseInt(_0x5f5589(0x146))/0x7*(-parseInt(_0x5f5589(0x15d))/0x8)+-parseInt(_0x5f5589(0x140))/0x9*(parseInt(_0x5f5589(0x17e))/0xa)+parseInt(_0x5f5589(0x147))/0xb*(parseInt(_0x5f5589(0x183))/0xc);if(_0x246f97===_0x417028)break;else _0x4f04ab['push'](_0x4f04ab['shift']());}catch(_0xa08e9c){_0x4f04ab['push'](_0x4f04ab['shift']());}}}(a10_0x42db,0x5c791));var __decorate=this&&this[a10_0x4b7dcd(0x16c)]||function(_0x26ff52,_0x224bb6,_0xd2f838,_0x4c370b){const _0x1790d7=a10_0x4b7dcd;var _0x4f1007=arguments[_0x1790d7(0x15a)],_0x45ac17=_0x4f1007<0x3?_0x224bb6:_0x4c370b===null?_0x4c370b=Object[_0x1790d7(0x182)](_0x224bb6,_0xd2f838):_0x4c370b,_0x2584b5;if(typeof Reflect===_0x1790d7(0x178)&&typeof Reflect[_0x1790d7(0x155)]==='function')_0x45ac17=Reflect['decorate'](_0x26ff52,_0x224bb6,_0xd2f838,_0x4c370b);else{for(var _0x30f12c=_0x26ff52[_0x1790d7(0x15a)]-0x1;_0x30f12c>=0x0;_0x30f12c--)if(_0x2584b5=_0x26ff52[_0x30f12c])_0x45ac17=(_0x4f1007<0x3?_0x2584b5(_0x45ac17):_0x4f1007>0x3?_0x2584b5(_0x224bb6,_0xd2f838,_0x45ac17):_0x2584b5(_0x224bb6,_0xd2f838))||_0x45ac17;}return _0x4f1007>0x3&&_0x45ac17&&Object['defineProperty'](_0x224bb6,_0xd2f838,_0x45ac17),_0x45ac17;},__metadata=this&&this[a10_0x4b7dcd(0x152)]||function(_0x1d40ac,_0x12c2ad){const _0x58c258=a10_0x4b7dcd;if(typeof Reflect==='object'&&typeof Reflect[_0x58c258(0x144)]===_0x58c258(0x174))return Reflect[_0x58c258(0x144)](_0x1d40ac,_0x12c2ad);},__param=this&&this[a10_0x4b7dcd(0x14f)]||function(_0x57382c,_0x1a86ca){return function(_0x421b55,_0x577a09){_0x1a86ca(_0x421b55,_0x577a09,_0x57382c);};};Object[a10_0x4b7dcd(0x15c)](exports,'__esModule',{'value':!![]}),exports['ApitestStaticController']=exports['ApitestService']=void 0x0;function a10_0x42db(){const _0x3edf92=['prefix','filepath','6qGUyhV','/apitest-:module','Config','__apiList__','description','summary','@midwayjs/core','2142AdEdqW','replace','ApitestStaticController','../../public/','metadata','apiteststatic','371hClTFh','8281471wBfyPC','80sWUXCS','cache-control','design:paramtypes','application/javascript;\x20charset=utf-8','apitestmodule','text/css;\x20charset=utf-8','/apiteststatic/','__param','213532RMCMOF','Get','__metadata','utf-8','readFileSync','decorate','getRoutes','config','Inject','stringify','length','routes','defineProperty','65312UgoNVB','extname','apitesthtml','Environment','existsSync','design:type','anncicapi','/apitest','apitest','ctx','apidoc','Request','Singleton','Scope','2069223YrvWOO','__decorate','set','request','design:returntype','push','isDevelopmentEnvironment','join','1648620gUHmOD','function','ApitestService','content-type','public,\x20max-age=604800','object','Controller','/apiteststatic/*','__devices__','ScopeEnum','271146CnMUlS','17970SfZGej','url','Provide','@midwayjs/decorator','getOwnPropertyDescriptor','36LinEFo','prototype'];a10_0x42db=function(){return _0x3edf92;};return a10_0x42db();}const path_1=require('path'),fs_1=require('fs'),core_1=require(a10_0x4b7dcd(0x13f)),decorator_1=require(a10_0x4b7dcd(0x181)),decorator_2=require(a10_0x4b7dcd(0x181)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a10_0x4b7dcd(0x167)](_0x30c473){const _0x1002f1=a10_0x4b7dcd,_0x186a85=(0x0,getRoutes_1[_0x1002f1(0x156)])(_0x30c473),_0x5f38b3=[];for(let _0x2a0472 in _0x186a85){for(let _0x1559e8 in _0x186a85[_0x2a0472][_0x1002f1(0x15b)]){let _0x5d0f7f=_0x186a85[_0x2a0472][_0x1002f1(0x15b)][_0x1559e8],_0x43cbf9=[];for(let _0x1adc34 in _0x5d0f7f[_0x1002f1(0x16e)]){_0x43cbf9[_0x1002f1(0x170)](_0x5d0f7f['request'][_0x1adc34]);}_0x5f38b3['push']({'title':_0x186a85[_0x2a0472][_0x1002f1(0x13e)]+':'+_0x5d0f7f[_0x1002f1(0x13e)],'prefix':_0x186a85[_0x2a0472][_0x1002f1(0x185)],'router':_0x5d0f7f['route'],'method':_0x5d0f7f['method'],'describe':_0x5d0f7f[_0x1002f1(0x13d)]||'','filepath':_0x186a85[_0x2a0472]['filepath']||'','request':_0x43cbf9});}}const _0x2d3e2d=(0x0,path_1['join'])(__dirname,'../../public/index.html');return(0x0,fs_1['readFileSync'])(_0x2d3e2d,{'encoding':'utf-8'})[_0x1002f1(0x141)](/__res__/g,'/apiteststatic/')[_0x1002f1(0x141)](_0x1002f1(0x13c),JSON[_0x1002f1(0x159)](_0x5f38b3))[_0x1002f1(0x141)](_0x1002f1(0x17b),JSON['stringify'](this[_0x1002f1(0x157)]['devices']));}};__decorate([(0x0,decorator_2[a10_0x4b7dcd(0x189)])('anncicapi'),__metadata(a10_0x4b7dcd(0x162),Object)],ApitestService[a10_0x4b7dcd(0x184)],a10_0x4b7dcd(0x157),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x4b7dcd(0x180)])('apitest'),(0x0,decorator_2[a10_0x4b7dcd(0x16a)])(decorator_2[a10_0x4b7dcd(0x17c)][a10_0x4b7dcd(0x169)])],ApitestService),exports[a10_0x4b7dcd(0x175)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x4b7dcd(0x15f)](){const _0x44c4ec=a10_0x4b7dcd;if(this['apitest']){const _0x139965={'module':![]};return this[_0x44c4ec(0x160)][_0x44c4ec(0x171)]()&&(_0x139965[_0x44c4ec(0x186)]=!![]),await this[_0x44c4ec(0x175)]['apidoc'](_0x139965);}return'';}async[a10_0x4b7dcd(0x14c)](_0x3ba973){const _0x446265=a10_0x4b7dcd;if(this[_0x446265(0x165)]){const _0x2444b8={'module':_0x3ba973};return this[_0x446265(0x160)][_0x446265(0x171)]()&&(_0x2444b8[_0x446265(0x186)]=!![]),await this[_0x446265(0x175)][_0x446265(0x167)](_0x2444b8);}return'';}async['apiteststatic'](){const _0x366d69=a10_0x4b7dcd;if((0x0,path_1[_0x366d69(0x15e)])(this[_0x366d69(0x166)][_0x366d69(0x16e)][_0x366d69(0x17f)])){var _0x581362=(0x0,path_1[_0x366d69(0x172)])(__dirname,_0x366d69(0x143)+this[_0x366d69(0x166)]['request'][_0x366d69(0x17f)][_0x366d69(0x141)](_0x366d69(0x14e),'/'));if(_0x581362['substring'](_0x581362[_0x366d69(0x15a)]-0xb)!='/index.html'){this[_0x366d69(0x166)][_0x366d69(0x16d)](_0x366d69(0x149),_0x366d69(0x177));if((0x0,path_1['extname'])(this[_0x366d69(0x166)][_0x366d69(0x16e)]['url'])=='.js')this['ctx']['set'](_0x366d69(0x176),_0x366d69(0x14b));else(0x0,path_1['extname'])(this[_0x366d69(0x166)][_0x366d69(0x16e)][_0x366d69(0x17f)])=='.css'&&this['ctx'][_0x366d69(0x16d)](_0x366d69(0x176),_0x366d69(0x14d));return(0x0,fs_1[_0x366d69(0x161)])(_0x581362)&&(0x0,fs_1[_0x366d69(0x154)])(_0x581362,{'encoding':_0x366d69(0x153)});}}return'';}};__decorate([(0x0,decorator_2[a10_0x4b7dcd(0x158)])(),__metadata(a10_0x4b7dcd(0x162),Object)],ApitestStaticController[a10_0x4b7dcd(0x184)],'ctx',void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x4b7dcd(0x162),core_1['MidwayEnvironmentService'])],ApitestStaticController[a10_0x4b7dcd(0x184)],a10_0x4b7dcd(0x160),void 0x0),__decorate([(0x0,decorator_2[a10_0x4b7dcd(0x158)])(),__metadata(a10_0x4b7dcd(0x162),ApitestService)],ApitestStaticController[a10_0x4b7dcd(0x184)],a10_0x4b7dcd(0x175),void 0x0),__decorate([(0x0,decorator_2[a10_0x4b7dcd(0x189)])(a10_0x4b7dcd(0x165)),__metadata(a10_0x4b7dcd(0x162),Boolean)],ApitestStaticController[a10_0x4b7dcd(0x184)],a10_0x4b7dcd(0x165),void 0x0),__decorate([(0x0,decorator_2[a10_0x4b7dcd(0x189)])(a10_0x4b7dcd(0x163)),__metadata(a10_0x4b7dcd(0x162),Object)],ApitestStaticController['prototype'],a10_0x4b7dcd(0x157),void 0x0),__decorate([(0x0,decorator_1[a10_0x4b7dcd(0x151)])(a10_0x4b7dcd(0x164)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a10_0x4b7dcd(0x16f),Promise)],ApitestStaticController['prototype'],a10_0x4b7dcd(0x15f),null),__decorate([(0x0,decorator_1[a10_0x4b7dcd(0x151)])(a10_0x4b7dcd(0x188)),__param(0x0,(0x0,decorator_1['Param'])('module')),__metadata('design:type',Function),__metadata(a10_0x4b7dcd(0x14a),[String]),__metadata(a10_0x4b7dcd(0x16f),Promise)],ApitestStaticController[a10_0x4b7dcd(0x184)],'apitestmodule',null),__decorate([(0x0,decorator_1[a10_0x4b7dcd(0x151)])(a10_0x4b7dcd(0x17a)),__metadata(a10_0x4b7dcd(0x162),Function),__metadata(a10_0x4b7dcd(0x14a),[]),__metadata(a10_0x4b7dcd(0x16f),Promise)],ApitestStaticController['prototype'],a10_0x4b7dcd(0x145),null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x4b7dcd(0x179)])('/'),(0x0,decorator_2['Scope'])(decorator_2[a10_0x4b7dcd(0x17c)][a10_0x4b7dcd(0x168)])],ApitestStaticController),exports[a10_0x4b7dcd(0x142)]=ApitestStaticController;
1
+ 'use strict';const a10_0x34bd7f=a10_0x6676;(function(_0x4c1726,_0x564522){const _0x114105=a10_0x6676,_0x519c69=_0x4c1726();while(!![]){try{const _0x120b05=parseInt(_0x114105(0x1bb))/0x1+-parseInt(_0x114105(0x191))/0x2+parseInt(_0x114105(0x1d0))/0x3*(-parseInt(_0x114105(0x1d7))/0x4)+parseInt(_0x114105(0x192))/0x5*(-parseInt(_0x114105(0x1bc))/0x6)+parseInt(_0x114105(0x199))/0x7+-parseInt(_0x114105(0x1be))/0x8*(parseInt(_0x114105(0x1c7))/0x9)+parseInt(_0x114105(0x1a9))/0xa;if(_0x120b05===_0x564522)break;else _0x519c69['push'](_0x519c69['shift']());}catch(_0x1155de){_0x519c69['push'](_0x519c69['shift']());}}}(a10_0x3ce6,0x96107));var __decorate=this&&this[a10_0x34bd7f(0x198)]||function(_0xc7a796,_0x4b8bbb,_0x248ae4,_0x12dec4){const _0x177f25=a10_0x34bd7f;var _0x22b1bf=arguments[_0x177f25(0x1b3)],_0xd79a2d=_0x22b1bf<0x3?_0x4b8bbb:_0x12dec4===null?_0x12dec4=Object[_0x177f25(0x1d8)](_0x4b8bbb,_0x248ae4):_0x12dec4,_0x447c28;if(typeof Reflect==='object'&&typeof Reflect[_0x177f25(0x1a2)]===_0x177f25(0x1a1))_0xd79a2d=Reflect[_0x177f25(0x1a2)](_0xc7a796,_0x4b8bbb,_0x248ae4,_0x12dec4);else{for(var _0x249c24=_0xc7a796[_0x177f25(0x1b3)]-0x1;_0x249c24>=0x0;_0x249c24--)if(_0x447c28=_0xc7a796[_0x249c24])_0xd79a2d=(_0x22b1bf<0x3?_0x447c28(_0xd79a2d):_0x22b1bf>0x3?_0x447c28(_0x4b8bbb,_0x248ae4,_0xd79a2d):_0x447c28(_0x4b8bbb,_0x248ae4))||_0xd79a2d;}return _0x22b1bf>0x3&&_0xd79a2d&&Object[_0x177f25(0x1c0)](_0x4b8bbb,_0x248ae4,_0xd79a2d),_0xd79a2d;},__metadata=this&&this[a10_0x34bd7f(0x1a0)]||function(_0x338790,_0x190853){const _0x22d857=a10_0x34bd7f;if(typeof Reflect===_0x22d857(0x19f)&&typeof Reflect[_0x22d857(0x1cc)]===_0x22d857(0x1a1))return Reflect[_0x22d857(0x1cc)](_0x338790,_0x190853);},__param=this&&this[a10_0x34bd7f(0x1c9)]||function(_0x4c8696,_0x22a961){return function(_0x47035a,_0x3b0a17){_0x22a961(_0x47035a,_0x3b0a17,_0x4c8696);};};function a10_0x6676(_0x46ab1c,_0x19af2f){const _0x3ce610=a10_0x3ce6();return a10_0x6676=function(_0x66763a,_0x2dd2c3){_0x66763a=_0x66763a-0x18b;let _0xe64783=_0x3ce610[_0x66763a];return _0xe64783;},a10_0x6676(_0x46ab1c,_0x19af2f);}Object[a10_0x34bd7f(0x1c0)](exports,a10_0x34bd7f(0x1bf),{'value':!![]}),exports[a10_0x34bd7f(0x1af)]=exports[a10_0x34bd7f(0x195)]=void 0x0;const path_1=require(a10_0x34bd7f(0x1ae)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require(a10_0x34bd7f(0x1ba)),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a10_0x34bd7f(0x194)](_0x5bdb52){const _0x2556ff=a10_0x34bd7f,_0x17d155=(0x0,getRoutes_1[_0x2556ff(0x197)])(_0x5bdb52),_0x27d9f3=[];for(let _0xc94ff1 in _0x17d155){for(let _0x77c0df in _0x17d155[_0xc94ff1][_0x2556ff(0x1d5)]){let _0x3f49c6=_0x17d155[_0xc94ff1][_0x2556ff(0x1d5)][_0x77c0df],_0x50be6e=[];for(let _0x1bd9a7 in _0x3f49c6[_0x2556ff(0x1a8)]){_0x50be6e['push'](_0x3f49c6[_0x2556ff(0x1a8)][_0x1bd9a7]);}_0x27d9f3[_0x2556ff(0x1b6)]({'title':_0x17d155[_0xc94ff1][_0x2556ff(0x196)]+':'+_0x3f49c6['summary'],'prefix':_0x17d155[_0xc94ff1][_0x2556ff(0x1a4)],'router':_0x3f49c6[_0x2556ff(0x1d3)],'method':_0x3f49c6[_0x2556ff(0x1c4)],'describe':_0x3f49c6[_0x2556ff(0x1a7)]||'','filepath':_0x17d155[_0xc94ff1]['filepath']||'','request':_0x50be6e});}}const _0x42783b=(0x0,path_1[_0x2556ff(0x1c3)])(__dirname,_0x2556ff(0x19a));return(0x0,fs_1[_0x2556ff(0x1aa)])(_0x42783b,{'encoding':_0x2556ff(0x1d4)})[_0x2556ff(0x1ca)](/__res__/g,_0x2556ff(0x19e))[_0x2556ff(0x1ca)]('__apiList__',JSON[_0x2556ff(0x1b7)](_0x27d9f3))[_0x2556ff(0x1ca)](_0x2556ff(0x1a6),JSON[_0x2556ff(0x1b7)](this[_0x2556ff(0x1ac)][_0x2556ff(0x1b9)]));}};__decorate([(0x0,decorator_2['Config'])(a10_0x34bd7f(0x18f)),__metadata(a10_0x34bd7f(0x190),Object)],ApitestService['prototype'],a10_0x34bd7f(0x1ac),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c6)])(a10_0x34bd7f(0x1cf)),(0x0,decorator_2['Scope'])(decorator_2[a10_0x34bd7f(0x1c2)][a10_0x34bd7f(0x1b5)])],ApitestService),exports[a10_0x34bd7f(0x195)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x34bd7f(0x1d2)](){const _0x305968=a10_0x34bd7f;if(this[_0x305968(0x1cf)]){const _0x4fb069={'module':![]};return this[_0x305968(0x1d6)][_0x305968(0x1bd)]()&&(_0x4fb069[_0x305968(0x19c)]=!![]),await this[_0x305968(0x195)][_0x305968(0x194)](_0x4fb069);}return'';}async[a10_0x34bd7f(0x1a3)](_0x4018fd){const _0x414c8f=a10_0x34bd7f;if(this[_0x414c8f(0x1cf)]){const _0x3e58f4={'module':_0x4018fd};return this[_0x414c8f(0x1d6)][_0x414c8f(0x1bd)]()&&(_0x3e58f4[_0x414c8f(0x19c)]=!![]),await this[_0x414c8f(0x195)]['apidoc'](_0x3e58f4);}return'';}async['apiteststatic'](){const _0x882169=a10_0x34bd7f;if((0x0,path_1['extname'])(this['ctx']['request'][_0x882169(0x1cb)])){var _0x1a00e3=(0x0,path_1[_0x882169(0x1c3)])(__dirname,'../../public/'+this[_0x882169(0x1d1)]['request'][_0x882169(0x1cb)]['replace'](_0x882169(0x19e),'/'));if(_0x1a00e3['substring'](_0x1a00e3['length']-0xb)!='/index.html'){this[_0x882169(0x1d1)][_0x882169(0x1b0)](_0x882169(0x1b1),_0x882169(0x1b8));if((0x0,path_1['extname'])(this['ctx'][_0x882169(0x1a8)][_0x882169(0x1cb)])==_0x882169(0x1c8))this[_0x882169(0x1d1)][_0x882169(0x1b0)](_0x882169(0x19b),'application/javascript;\x20charset=utf-8');else(0x0,path_1['extname'])(this['ctx'][_0x882169(0x1a8)][_0x882169(0x1cb)])==_0x882169(0x1ab)&&this[_0x882169(0x1d1)][_0x882169(0x1b0)](_0x882169(0x19b),_0x882169(0x1ad));return(0x0,fs_1[_0x882169(0x1cd)])(_0x1a00e3)&&(0x0,fs_1['readFileSync'])(_0x1a00e3,{'encoding':'utf-8'});}}return'';}};function a10_0x3ce6(){const _0x3a6297=['3590361IGPQUn','.js','__param','replace','url','metadata','existsSync','Config','apitest','98742HxuMlL','ctx','apitesthtml','route','utf-8','routes','Environment','4ganama','getOwnPropertyDescriptor','/apitest-:module','prototype','design:paramtypes','Controller','anncicapi','design:type','569154CIGjab','2000tXSQyp','Request','apidoc','ApitestService','summary','getRoutes','__decorate','3097969QzaZeV','../../public/index.html','content-type','filepath','/apiteststatic/*','/apiteststatic/','object','__metadata','function','decorate','apitestmodule','prefix','MidwayEnvironmentService','__devices__','description','request','10294790bckdfv','readFileSync','.css','config','text/css;\x20charset=utf-8','path','ApitestStaticController','set','cache-control','Inject','length','design:returntype','Singleton','push','stringify','public,\x20max-age=604800','devices','@midwayjs/decorator','1067837ROQcYn','18132wOAqTo','isDevelopmentEnvironment','8xiWidg','__esModule','defineProperty','Scope','ScopeEnum','join','method','Get','Provide'];a10_0x3ce6=function(){return _0x3a6297;};return a10_0x3ce6();}__decorate([(0x0,decorator_2[a10_0x34bd7f(0x1b2)])(),__metadata('design:type',Object)],ApitestStaticController[a10_0x34bd7f(0x18c)],a10_0x34bd7f(0x1d1),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x34bd7f(0x190),core_1[a10_0x34bd7f(0x1a5)])],ApitestStaticController[a10_0x34bd7f(0x18c)],'Environment',void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a10_0x34bd7f(0x1ce)])(a10_0x34bd7f(0x1cf)),__metadata('design:type',Boolean)],ApitestStaticController[a10_0x34bd7f(0x18c)],'apitest',void 0x0),__decorate([(0x0,decorator_2['Config'])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a10_0x34bd7f(0x18c)],a10_0x34bd7f(0x1ac),void 0x0),__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c5)])('/apitest'),__metadata(a10_0x34bd7f(0x190),Function),__metadata(a10_0x34bd7f(0x18d),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x34bd7f(0x18c)],a10_0x34bd7f(0x1d2),null),__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c5)])(a10_0x34bd7f(0x18b)),__param(0x0,(0x0,decorator_1['Param'])('module')),__metadata('design:type',Function),__metadata(a10_0x34bd7f(0x18d),[String]),__metadata(a10_0x34bd7f(0x1b4),Promise)],ApitestStaticController[a10_0x34bd7f(0x18c)],'apitestmodule',null),__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c5)])(a10_0x34bd7f(0x19d)),__metadata('design:type',Function),__metadata(a10_0x34bd7f(0x18d),[]),__metadata(a10_0x34bd7f(0x1b4),Promise)],ApitestStaticController[a10_0x34bd7f(0x18c)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x34bd7f(0x18e)])('/'),(0x0,decorator_2[a10_0x34bd7f(0x1c1)])(decorator_2[a10_0x34bd7f(0x1c2)][a10_0x34bd7f(0x193)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
@@ -1 +1 @@
1
- 'use strict';const a11_0x2bc172=a11_0x4df2;(function(_0x6e255d,_0x3ae526){const _0x60e3a0=a11_0x4df2,_0x50811d=_0x6e255d();while(!![]){try{const _0x50f525=parseInt(_0x60e3a0(0x17c))/0x1*(-parseInt(_0x60e3a0(0x175))/0x2)+-parseInt(_0x60e3a0(0x16e))/0x3+-parseInt(_0x60e3a0(0x180))/0x4+parseInt(_0x60e3a0(0x19d))/0x5*(parseInt(_0x60e3a0(0x171))/0x6)+-parseInt(_0x60e3a0(0x19c))/0x7*(parseInt(_0x60e3a0(0x181))/0x8)+parseInt(_0x60e3a0(0x194))/0x9+parseInt(_0x60e3a0(0x193))/0xa;if(_0x50f525===_0x3ae526)break;else _0x50811d['push'](_0x50811d['shift']());}catch(_0x202246){_0x50811d['push'](_0x50811d['shift']());}}}(a11_0x5b1b,0x4e5b9));var __decorate=this&&this[a11_0x2bc172(0x18b)]||function(_0x5c0cba,_0x1987f6,_0x209b58,_0x2afba6){const _0x53757c=a11_0x2bc172;var _0x1014c2=arguments[_0x53757c(0x1a1)],_0x12a5ae=_0x1014c2<0x3?_0x1987f6:_0x2afba6===null?_0x2afba6=Object[_0x53757c(0x1a5)](_0x1987f6,_0x209b58):_0x2afba6,_0x3a5fbb;if(typeof Reflect===_0x53757c(0x16b)&&typeof Reflect[_0x53757c(0x184)]===_0x53757c(0x1a4))_0x12a5ae=Reflect[_0x53757c(0x184)](_0x5c0cba,_0x1987f6,_0x209b58,_0x2afba6);else{for(var _0x7bc3b9=_0x5c0cba[_0x53757c(0x1a1)]-0x1;_0x7bc3b9>=0x0;_0x7bc3b9--)if(_0x3a5fbb=_0x5c0cba[_0x7bc3b9])_0x12a5ae=(_0x1014c2<0x3?_0x3a5fbb(_0x12a5ae):_0x1014c2>0x3?_0x3a5fbb(_0x1987f6,_0x209b58,_0x12a5ae):_0x3a5fbb(_0x1987f6,_0x209b58))||_0x12a5ae;}return _0x1014c2>0x3&&_0x12a5ae&&Object['defineProperty'](_0x1987f6,_0x209b58,_0x12a5ae),_0x12a5ae;},__metadata=this&&this[a11_0x2bc172(0x197)]||function(_0x5f0217,_0x2bb4bc){const _0x3c278a=a11_0x2bc172;if(typeof Reflect===_0x3c278a(0x16b)&&typeof Reflect[_0x3c278a(0x17f)]===_0x3c278a(0x1a4))return Reflect['metadata'](_0x5f0217,_0x2bb4bc);};function a11_0x5b1b(){const _0x40a36b=['design:type','Provide','getRow','worksheets','getCell','ExcelService','addWorksheet','endsWith','get','object','koa-send','log','803940xBKFoP','app','trim','1156416nMVqez','startsWith','xlsx','Scope','2SmToVv','mkdirSync','prototype','toString','/public/xlsx','defineProperty','.xlsx','382553ahbaxh','ScopeEnum','Api\x20Excel\x20Error:\x20','metadata','1542412YXxcqR','8Kmddlx','exceljs','cellCount','decorate','isNumber','/public/xlsx/','eachCell','export','Sheet\x201','parse','__decorate','addRow','Singleton','writeFile','key','frozen','replace','random','16133740JWWERf','1622592BHeqTp','existsSync','public/xlsx','__metadata','__esModule','col','columns','@midwayjs/decorator','4405163hunAiD','5KtQfmM','rowCount','readFile','getAppDir','length','findRows','header','function','getOwnPropertyDescriptor','handler'];a11_0x5b1b=function(){return _0x40a36b;};return a11_0x5b1b();}Object[a11_0x2bc172(0x17a)](exports,a11_0x2bc172(0x198),{'value':!![]}),exports[a11_0x2bc172(0x167)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x2bc172(0x182)),koasend=require(a11_0x2bc172(0x16c)),decorator_1=require(a11_0x2bc172(0x19b));function a11_0x4df2(_0x4bcd84,_0x215417){const _0x5b1bb1=a11_0x5b1b();return a11_0x4df2=function(_0x4df28a,_0x464e83){_0x4df28a=_0x4df28a-0x167;let _0x282492=_0x5b1bb1[_0x4df28a];return _0x282492;},a11_0x4df2(_0x4bcd84,_0x215417);}let ExcelService=class ExcelService{async[a11_0x2bc172(0x18a)](_0x45c5b0,_0x206fdf,_0x1aa326=[0x0]){const _0x2086c9=a11_0x2bc172;var _0x58c276,_0x12ceba;const _0x307251=new exceljs['Workbook'](),_0x2268fe=[];let _0x350caf=_0x45c5b0[_0x2086c9(0x191)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x350caf===null||_0x350caf===void 0x0?void 0x0:_0x350caf[_0x2086c9(0x172)]('/'))&&(_0x350caf=this[_0x2086c9(0x16f)][_0x2086c9(0x1a0)]()+'/'+_0x350caf);try{await _0x307251[_0x2086c9(0x173)][_0x2086c9(0x19f)](_0x350caf);}catch(_0x224883){return console[_0x2086c9(0x16d)](_0x2086c9(0x17e)+_0x350caf+'\x20is\x20read\x20fail'),_0x2268fe;}for(const _0x292791 of _0x1aa326){const _0x3b8f1c=lodash[_0x2086c9(0x185)](_0x292791)?((_0x58c276=_0x307251[_0x2086c9(0x1aa)])===null||_0x58c276===void 0x0?void 0x0:_0x58c276[_0x292791])||undefined:_0x307251['getWorksheet'](_0x292791);if(_0x3b8f1c){var _0x1ae606=0x1;const _0x536c8e=_0x3b8f1c[_0x2086c9(0x1a9)](0x1),_0x466f5e=await new Promise(_0x11c3ea=>{const _0x4cd93d=_0x2086c9,_0x3e0201={};_0x536c8e[_0x4cd93d(0x187)]((_0x2837bf,_0x298f00)=>{const _0x3e8d91=_0x4cd93d;for(const _0x457194 of _0x206fdf){if(_0x2837bf['value']==_0x457194[_0x3e8d91(0x1a3)])_0x1ae606=0x2,_0x3e0201[_0x457194[_0x3e8d91(0x18f)]]={'header':_0x2837bf[_0x3e8d91(0x199)],'handler':_0x457194[_0x3e8d91(0x1a6)]};else{if(!_0x3e0201[_0x457194[_0x3e8d91(0x18f)]])try{const _0x2547d2=_0x536c8e[_0x3e8d91(0x1ab)](_0x457194[_0x3e8d91(0x1a3)]);_0x2547d2&&(_0x3e0201[_0x457194[_0x3e8d91(0x18f)]]={'header':_0x2547d2['col'],'handler':_0x457194[_0x3e8d91(0x1a6)]});}catch{}}}_0x536c8e[_0x3e8d91(0x183)]==_0x298f00&&_0x11c3ea(_0x3e0201);});});for(const _0x27ef6a of _0x3b8f1c[_0x2086c9(0x1a2)](_0x1ae606,_0x3b8f1c[_0x2086c9(0x19e)])){const _0x493fc5={};for(const _0x401da7 in _0x466f5e){_0x466f5e[_0x401da7][_0x2086c9(0x1a3)]&&(typeof((_0x12ceba=_0x466f5e[_0x401da7])===null||_0x12ceba===void 0x0?void 0x0:_0x12ceba[_0x2086c9(0x1a6)])==_0x2086c9(0x1a4)?_0x493fc5[_0x401da7]=_0x466f5e[_0x401da7][_0x2086c9(0x1a6)](_0x27ef6a[_0x2086c9(0x1ab)](lodash[_0x2086c9(0x170)](''+_0x466f5e[_0x401da7][_0x2086c9(0x1a3)],'\x20'))['toString']()):_0x493fc5[_0x401da7]=_0x27ef6a[_0x2086c9(0x1ab)](_0x466f5e[_0x401da7]['header'])[_0x2086c9(0x178)]());}Object['keys'](_0x493fc5)[_0x2086c9(0x1a1)]>0x0&&_0x2268fe['push'](_0x493fc5);}}}return _0x2268fe;}async[a11_0x2bc172(0x188)](_0x7edb5f,_0x240750,_0x31d05f,_0x343f60=a11_0x2bc172(0x196)){const _0x1a1568=a11_0x2bc172;var _0x466164,_0x4f0e61;const _0x269297=new exceljs['Workbook'](),_0x5c0daa={},_0x2d2dd9=[],_0x5ee95b=_0x269297[_0x1a1568(0x168)](_0x1a1568(0x189),{'views':[{'state':_0x1a1568(0x190),'xSplit':0x1}]});for(const _0x948d6 in _0x240750){_0x5c0daa[_0x240750[_0x948d6]['key']]=_0x240750[_0x948d6]['header'],_0x2d2dd9['push']({'header':_0x240750[_0x948d6][_0x1a1568(0x1a3)],'key':(_0x466164=_0x240750[_0x948d6])===null||_0x466164===void 0x0?void 0x0:_0x466164['key'][_0x1a1568(0x191)](/\./g,'_')});}_0x5ee95b[_0x1a1568(0x19a)]=_0x2d2dd9;for(const _0x3be527 of _0x31d05f){const _0x50f92b={};for(const _0x3bd598 in _0x240750){typeof((_0x4f0e61=_0x240750[_0x3bd598])===null||_0x4f0e61===void 0x0?void 0x0:_0x4f0e61[_0x1a1568(0x1a6)])==_0x1a1568(0x1a4)?_0x50f92b[_0x240750[_0x3bd598][_0x1a1568(0x18f)][_0x1a1568(0x191)](/\./g,'_')]=await _0x240750[_0x3bd598]['handler'](_0x3be527):_0x50f92b[_0x240750[_0x3bd598][_0x1a1568(0x18f)][_0x1a1568(0x191)](/\./g,'_')]=lodash[_0x1a1568(0x16a)](_0x3be527,_0x240750[_0x3bd598][_0x1a1568(0x18f)],'');}_0x5ee95b[_0x1a1568(0x18c)](_0x50f92b);}let _0x104b9c='';const _0x314a67=_0x7edb5f+'-'+lodash[_0x1a1568(0x192)](0x2710,0x1869f)+_0x1a1568(0x17b);if(_0x343f60&&_0x343f60['startsWith']('/'))_0x104b9c=_0x343f60+'/'+_0x314a67;else _0x343f60&&!_0x343f60[_0x1a1568(0x172)]('/')&&!_0x343f60[_0x1a1568(0x172)]('\x5c')?_0x104b9c=this[_0x1a1568(0x16f)][_0x1a1568(0x1a0)]()+'/'+_0x343f60+'/'+_0x314a67:_0x104b9c=this['app'][_0x1a1568(0x1a0)]()+_0x1a1568(0x179);return(_0x104b9c[_0x1a1568(0x169)]('/')||_0x104b9c['endsWith']('\x5c'))&&(_0x104b9c=_0x104b9c['substring'](0x0,_0x104b9c[_0x1a1568(0x1a1)]-0x1)),_0x104b9c=_0x104b9c[_0x1a1568(0x191)](/(\\|\/)/g,'/')[_0x1a1568(0x191)](/\/{2,}/g,'/'),!fs[_0x1a1568(0x195)](_0x104b9c)&&fs[_0x1a1568(0x176)](_0x104b9c,{'recursive':!![]}),await _0x269297[_0x1a1568(0x173)][_0x1a1568(0x18e)]((_0x104b9c+'/'+_0x314a67)[_0x1a1568(0x191)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x314a67,'filepath':_0x104b9c};}async['download'](_0x53f8e0,_0x4403c5){const _0x1d9508=a11_0x2bc172;await koasend(_0x53f8e0,_0x1d9508(0x186)+_0x4403c5);}};__decorate([(0x0,decorator_1['App'])(),__metadata(a11_0x2bc172(0x1a7),Object)],ExcelService[a11_0x2bc172(0x177)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x2bc172(0x1a8)])(),(0x0,decorator_1[a11_0x2bc172(0x174)])(decorator_1[a11_0x2bc172(0x17d)][a11_0x2bc172(0x18d)])],ExcelService),exports[a11_0x2bc172(0x167)]=ExcelService;
1
+ 'use strict';function a11_0x1570(){const _0xc703bf=['getOwnPropertyDescriptor','length','cellCount','mkdirSync','startsWith','App','__metadata','col','26744zqzgqb','4518NEJorV','download','endsWith','object','trim','ScopeEnum','Api\x20Excel\x20Error:\x20','toString','public/xlsx','Workbook','3611020zKxZVw','prototype','18sHjXPG','addWorksheet','metadata','export','header','1206558NfkIXd','push','decorate','/public/xlsx','eachCell','getAppDir','50611tXCOPX','Sheet\x201','handler','Scope','random','existsSync','keys','rowCount','getWorksheet','979573CzdPdp','readFile','addRow','@midwayjs/decorator','defineProperty','key','xlsx','8iASfPp','app','Provide','getRow','value','worksheets','getCell','design:type','2556dzILZY','ExcelService','columns','replace','Singleton','writeFile','126MfaUdn','7655UezGtw','function','get','log','2894396pxlLjP','findRows','exceljs'];a11_0x1570=function(){return _0xc703bf;};return a11_0x1570();}const a11_0x19b59c=a11_0x2836;(function(_0x5e9a00,_0x2dd6ee){const _0x4a5d7c=a11_0x2836,_0x3d9316=_0x5e9a00();while(!![]){try{const _0x3a95dc=parseInt(_0x4a5d7c(0xfa))/0x1+parseInt(_0x4a5d7c(0xe8))/0x2*(-parseInt(_0x4a5d7c(0x11e))/0x3)+-parseInt(_0x4a5d7c(0x123))/0x4+parseInt(_0x4a5d7c(0x11f))/0x5*(parseInt(_0x4a5d7c(0xe9))/0x6)+parseInt(_0x4a5d7c(0x109))/0x7*(-parseInt(_0x4a5d7c(0x110))/0x8)+-parseInt(_0x4a5d7c(0xf5))/0x9*(-parseInt(_0x4a5d7c(0xf3))/0xa)+-parseInt(_0x4a5d7c(0x100))/0xb*(parseInt(_0x4a5d7c(0x118))/0xc);if(_0x3a95dc===_0x2dd6ee)break;else _0x3d9316['push'](_0x3d9316['shift']());}catch(_0x4f2afa){_0x3d9316['push'](_0x3d9316['shift']());}}}(a11_0x1570,0xa524e));var __decorate=this&&this['__decorate']||function(_0x404430,_0x122650,_0x65ac4d,_0x3187bc){const _0x3ef303=a11_0x2836;var _0x22e8de=arguments[_0x3ef303(0x127)],_0x5440c2=_0x22e8de<0x3?_0x122650:_0x3187bc===null?_0x3187bc=Object[_0x3ef303(0x126)](_0x122650,_0x65ac4d):_0x3187bc,_0x3d7753;if(typeof Reflect===_0x3ef303(0xec)&&typeof Reflect[_0x3ef303(0xfc)]===_0x3ef303(0x120))_0x5440c2=Reflect[_0x3ef303(0xfc)](_0x404430,_0x122650,_0x65ac4d,_0x3187bc);else{for(var _0x34748c=_0x404430[_0x3ef303(0x127)]-0x1;_0x34748c>=0x0;_0x34748c--)if(_0x3d7753=_0x404430[_0x34748c])_0x5440c2=(_0x22e8de<0x3?_0x3d7753(_0x5440c2):_0x22e8de>0x3?_0x3d7753(_0x122650,_0x65ac4d,_0x5440c2):_0x3d7753(_0x122650,_0x65ac4d))||_0x5440c2;}return _0x22e8de>0x3&&_0x5440c2&&Object[_0x3ef303(0x10d)](_0x122650,_0x65ac4d,_0x5440c2),_0x5440c2;},__metadata=this&&this[a11_0x19b59c(0xe6)]||function(_0x5b8045,_0x50275c){const _0x39185f=a11_0x19b59c;if(typeof Reflect===_0x39185f(0xec)&&typeof Reflect[_0x39185f(0xf7)]===_0x39185f(0x120))return Reflect['metadata'](_0x5b8045,_0x50275c);};Object[a11_0x19b59c(0x10d)](exports,'__esModule',{'value':!![]}),exports[a11_0x19b59c(0x119)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x19b59c(0x125)),koasend=require('koa-send'),decorator_1=require(a11_0x19b59c(0x10c));function a11_0x2836(_0x238264,_0xcd0dde){const _0x1570a=a11_0x1570();return a11_0x2836=function(_0x2836de,_0x5ace23){_0x2836de=_0x2836de-0xe4;let _0x441c4b=_0x1570a[_0x2836de];return _0x441c4b;},a11_0x2836(_0x238264,_0xcd0dde);}let ExcelService=class ExcelService{async['parse'](_0x2dff55,_0x3ce342,_0x122aeb=[0x0]){const _0x257b59=a11_0x19b59c;var _0x26be78,_0x38f3e2;const _0x8d0597=new exceljs['Workbook'](),_0x2774bd=[];let _0xf9d498=_0x2dff55['replace'](/(\\|\/)/g,'/')[_0x257b59(0x11b)](/\/{2,}/g,'/');!(_0xf9d498===null||_0xf9d498===void 0x0?void 0x0:_0xf9d498['startsWith']('/'))&&(_0xf9d498=this[_0x257b59(0x111)][_0x257b59(0xff)]()+'/'+_0xf9d498);try{await _0x8d0597[_0x257b59(0x10f)][_0x257b59(0x10a)](_0xf9d498);}catch(_0x40fd9b){return console[_0x257b59(0x122)](_0x257b59(0xef)+_0xf9d498+'\x20is\x20read\x20fail'),_0x2774bd;}for(const _0x3aac79 of _0x122aeb){const _0x34a329=lodash['isNumber'](_0x3aac79)?((_0x26be78=_0x8d0597[_0x257b59(0x115)])===null||_0x26be78===void 0x0?void 0x0:_0x26be78[_0x3aac79])||undefined:_0x8d0597[_0x257b59(0x108)](_0x3aac79);if(_0x34a329){var _0x52146e=0x1;const _0x2e89a6=_0x34a329[_0x257b59(0x113)](0x1),_0x27bd68=await new Promise(_0x554910=>{const _0x1163e9=_0x257b59,_0x159831={};_0x2e89a6[_0x1163e9(0xfe)]((_0x215d58,_0x1bc46)=>{const _0x4aa0ee=_0x1163e9;for(const _0x2d7e9e of _0x3ce342){if(_0x215d58[_0x4aa0ee(0x114)]==_0x2d7e9e[_0x4aa0ee(0xf9)])_0x52146e=0x2,_0x159831[_0x2d7e9e[_0x4aa0ee(0x10e)]]={'header':_0x215d58[_0x4aa0ee(0xe7)],'handler':_0x2d7e9e[_0x4aa0ee(0x102)]};else{if(!_0x159831[_0x2d7e9e['key']])try{const _0x2b0325=_0x2e89a6['getCell'](_0x2d7e9e['header']);_0x2b0325&&(_0x159831[_0x2d7e9e[_0x4aa0ee(0x10e)]]={'header':_0x2b0325['col'],'handler':_0x2d7e9e['handler']});}catch{}}}_0x2e89a6[_0x4aa0ee(0x128)]==_0x1bc46&&_0x554910(_0x159831);});});for(const _0x2f199a of _0x34a329[_0x257b59(0x124)](_0x52146e,_0x34a329[_0x257b59(0x107)])){const _0x38c66e={};for(const _0x1f8022 in _0x27bd68){_0x27bd68[_0x1f8022][_0x257b59(0xf9)]&&(typeof((_0x38f3e2=_0x27bd68[_0x1f8022])===null||_0x38f3e2===void 0x0?void 0x0:_0x38f3e2[_0x257b59(0x102)])=='function'?_0x38c66e[_0x1f8022]=_0x27bd68[_0x1f8022][_0x257b59(0x102)](_0x2f199a[_0x257b59(0x116)](lodash[_0x257b59(0xed)](''+_0x27bd68[_0x1f8022][_0x257b59(0xf9)],'\x20'))[_0x257b59(0xf0)]()):_0x38c66e[_0x1f8022]=_0x2f199a[_0x257b59(0x116)](_0x27bd68[_0x1f8022][_0x257b59(0xf9)])['toString']());}Object[_0x257b59(0x106)](_0x38c66e)['length']>0x0&&_0x2774bd[_0x257b59(0xfb)](_0x38c66e);}}}return _0x2774bd;}async[a11_0x19b59c(0xf8)](_0x206e2d,_0x79ef49,_0x11184b,_0x492a43=a11_0x19b59c(0xf1)){const _0x322371=a11_0x19b59c;var _0x3629d9,_0x350f8b;const _0x104683=new exceljs[(_0x322371(0xf2))](),_0x5783a2={},_0x22edf6=[],_0x515d9b=_0x104683[_0x322371(0xf6)](_0x322371(0x101),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x582479 in _0x79ef49){_0x5783a2[_0x79ef49[_0x582479]['key']]=_0x79ef49[_0x582479][_0x322371(0xf9)],_0x22edf6[_0x322371(0xfb)]({'header':_0x79ef49[_0x582479][_0x322371(0xf9)],'key':(_0x3629d9=_0x79ef49[_0x582479])===null||_0x3629d9===void 0x0?void 0x0:_0x3629d9[_0x322371(0x10e)][_0x322371(0x11b)](/\./g,'_')});}_0x515d9b[_0x322371(0x11a)]=_0x22edf6;for(const _0x33aa25 of _0x11184b){const _0x359eb6={};for(const _0x538e02 in _0x79ef49){typeof((_0x350f8b=_0x79ef49[_0x538e02])===null||_0x350f8b===void 0x0?void 0x0:_0x350f8b[_0x322371(0x102)])==_0x322371(0x120)?_0x359eb6[_0x79ef49[_0x538e02][_0x322371(0x10e)][_0x322371(0x11b)](/\./g,'_')]=await _0x79ef49[_0x538e02][_0x322371(0x102)](_0x33aa25):_0x359eb6[_0x79ef49[_0x538e02][_0x322371(0x10e)][_0x322371(0x11b)](/\./g,'_')]=lodash[_0x322371(0x121)](_0x33aa25,_0x79ef49[_0x538e02]['key'],'');}_0x515d9b[_0x322371(0x10b)](_0x359eb6);}let _0x324b48='';const _0x1c6a6b=_0x206e2d+'-'+lodash[_0x322371(0x104)](0x2710,0x1869f)+'.xlsx';if(_0x492a43&&_0x492a43['startsWith']('/'))_0x324b48=_0x492a43+'/'+_0x1c6a6b;else _0x492a43&&!_0x492a43['startsWith']('/')&&!_0x492a43[_0x322371(0xe4)]('\x5c')?_0x324b48=this[_0x322371(0x111)][_0x322371(0xff)]()+'/'+_0x492a43+'/'+_0x1c6a6b:_0x324b48=this[_0x322371(0x111)][_0x322371(0xff)]()+_0x322371(0xfd);return(_0x324b48[_0x322371(0xeb)]('/')||_0x324b48[_0x322371(0xeb)]('\x5c'))&&(_0x324b48=_0x324b48['substring'](0x0,_0x324b48['length']-0x1)),_0x324b48=_0x324b48[_0x322371(0x11b)](/(\\|\/)/g,'/')[_0x322371(0x11b)](/\/{2,}/g,'/'),!fs[_0x322371(0x105)](_0x324b48)&&fs[_0x322371(0x129)](_0x324b48,{'recursive':!![]}),await _0x104683[_0x322371(0x10f)][_0x322371(0x11d)]((_0x324b48+'/'+_0x1c6a6b)[_0x322371(0x11b)](/(\\|\/)/g,'/')[_0x322371(0x11b)](/\/{2,}/g,'/')),{'filename':_0x1c6a6b,'filepath':_0x324b48};}async[a11_0x19b59c(0xea)](_0x9a60c3,_0x398db6){await koasend(_0x9a60c3,'/public/xlsx/'+_0x398db6);}};__decorate([(0x0,decorator_1[a11_0x19b59c(0xe5)])(),__metadata(a11_0x19b59c(0x117),Object)],ExcelService[a11_0x19b59c(0xf4)],a11_0x19b59c(0x111),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x19b59c(0x112)])(),(0x0,decorator_1[a11_0x19b59c(0x103)])(decorator_1[a11_0x19b59c(0xee)][a11_0x19b59c(0x11c)])],ExcelService),exports[a11_0x19b59c(0x119)]=ExcelService;
@@ -1 +1 @@
1
- 'use strict';function a12_0x531e(){var _0x481951=['6045690MYxERg','defineProperty','18994848ieizyi','__esModule','ACTION_ROUTE_KEY','6eYRQIJ','4693764NWbguy','anncic-api:action:route','1241446aAMMGD','5485180bGMGpR','1467412KtzTjS','ACTION_KEY','5009452XaskTt'];a12_0x531e=function(){return _0x481951;};return a12_0x531e();}var a12_0x5287af=a12_0x1a34;(function(_0x1219a2,_0x5b3f04){var _0x453c2=a12_0x1a34,_0x4019b1=_0x1219a2();while(!![]){try{var _0x1cd88d=parseInt(_0x453c2(0x1b7))/0x1+-parseInt(_0x453c2(0x1b5))/0x2+parseInt(_0x453c2(0x1b3))/0x3+parseInt(_0x453c2(0x1b6))/0x4+-parseInt(_0x453c2(0x1ad))/0x5+-parseInt(_0x453c2(0x1b2))/0x6*(-parseInt(_0x453c2(0x1b9))/0x7)+-parseInt(_0x453c2(0x1af))/0x8;if(_0x1cd88d===_0x5b3f04)break;else _0x4019b1['push'](_0x4019b1['shift']());}catch(_0x1ad6ad){_0x4019b1['push'](_0x4019b1['shift']());}}}(a12_0x531e,0xdf51a));function a12_0x1a34(_0x5c0a5c,_0x5b731f){var _0x531e4f=a12_0x531e();return a12_0x1a34=function(_0x1a3466,_0x4a28ee){_0x1a3466=_0x1a3466-0x1ad;var _0x291020=_0x531e4f[_0x1a3466];return _0x291020;},a12_0x1a34(_0x5c0a5c,_0x5b731f);}Object[a12_0x5287af(0x1ae)](exports,a12_0x5287af(0x1b0),{'value':!![]}),exports[a12_0x5287af(0x1b1)]=exports[a12_0x5287af(0x1b8)]=void 0x0,exports[a12_0x5287af(0x1b8)]='anncic-api:action',exports[a12_0x5287af(0x1b1)]=a12_0x5287af(0x1b4);
1
+ 'use strict';function a12_0xd323(_0x18e2aa,_0x10b752){var _0x281abb=a12_0x281a();return a12_0xd323=function(_0xd323a8,_0xae7830){_0xd323a8=_0xd323a8-0xfc;var _0x387116=_0x281abb[_0xd323a8];return _0x387116;},a12_0xd323(_0x18e2aa,_0x10b752);}function a12_0x281a(){var _0x4bfe1b=['656858unFfpv','8bkbLjX','defineProperty','1043916kXPKqj','2090162eWvkJZ','12TIZTfd','1980985TQfqnc','ACTION_ROUTE_KEY','3568341tglrSu','239648kMUqWN','anncic-api:action:route','28006992ZDQAYg'];a12_0x281a=function(){return _0x4bfe1b;};return a12_0x281a();}var a12_0x3b2885=a12_0xd323;(function(_0x3af030,_0x3f7570){var _0x20e295=a12_0xd323,_0xa360c0=_0x3af030();while(!![]){try{var _0xc22261=parseInt(_0x20e295(0x104))/0x1+-parseInt(_0x20e295(0xfc))/0x2+-parseInt(_0x20e295(0x107))/0x3+parseInt(_0x20e295(0x105))/0x4*(-parseInt(_0x20e295(0xfe))/0x5)+-parseInt(_0x20e295(0xfd))/0x6*(parseInt(_0x20e295(0x100))/0x7)+-parseInt(_0x20e295(0x101))/0x8+parseInt(_0x20e295(0x103))/0x9;if(_0xc22261===_0x3f7570)break;else _0xa360c0['push'](_0xa360c0['shift']());}catch(_0xe7f5){_0xa360c0['push'](_0xa360c0['shift']());}}}(a12_0x281a,0x82539));Object[a12_0x3b2885(0x106)](exports,'__esModule',{'value':!![]}),exports[a12_0x3b2885(0xff)]=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a12_0x3b2885(0xff)]=a12_0x3b2885(0x102);
@@ -1 +1 @@
1
- 'use strict';function a13_0x463a(){var _0x126434=['metadata','@anncic-api/validator','第一页为1,第二页为2','Rule','integer','RuleType','decorate','排序方式','196065XlIGvm','15717500sshyKR','3411IqWPca','5451324hWRqen','3TnQuTn','getOwnPropertyDescriptor','_isreverse','object','valid','_order','1:是;0:否','__metadata','1276834PMLpnC','design:type','__esModule','trim','_page','number','68iyINYl','_size','prototype','min','355842wUTThv','分页数量','PageDTO','defineProperty','16152SvmaIX','3725316muChnh','function'];a13_0x463a=function(){return _0x126434;};return a13_0x463a();}var a13_0x3b82b1=a13_0x23dd;(function(_0x5da8d1,_0x563802){var _0x3a6d69=a13_0x23dd,_0x2f3eb3=_0x5da8d1();while(!![]){try{var _0x28c00c=parseInt(_0x3a6d69(0x1bb))/0x1+-parseInt(_0x3a6d69(0x1b1))/0x2*(-parseInt(_0x3a6d69(0x1ce))/0x3)+-parseInt(_0x3a6d69(0x1b7))/0x4*(-parseInt(_0x3a6d69(0x1ca))/0x5)+-parseInt(_0x3a6d69(0x1cd))/0x6+parseInt(_0x3a6d69(0x1c0))/0x7+-parseInt(_0x3a6d69(0x1bf))/0x8*(-parseInt(_0x3a6d69(0x1cc))/0x9)+-parseInt(_0x3a6d69(0x1cb))/0xa;if(_0x28c00c===_0x563802)break;else _0x2f3eb3['push'](_0x2f3eb3['shift']());}catch(_0x2c6808){_0x2f3eb3['push'](_0x2f3eb3['shift']());}}}(a13_0x463a,0x74b0d));var __decorate=this&&this['__decorate']||function(_0x108992,_0x5f2913,_0x1d01ff,_0x242c32){var _0x4315b4=a13_0x23dd,_0x4a5326=arguments['length'],_0x23d237=_0x4a5326<0x3?_0x5f2913:_0x242c32===null?_0x242c32=Object[_0x4315b4(0x1cf)](_0x5f2913,_0x1d01ff):_0x242c32,_0x2a88d9;if(typeof Reflect===_0x4315b4(0x1d1)&&typeof Reflect['decorate']===_0x4315b4(0x1c1))_0x23d237=Reflect[_0x4315b4(0x1c8)](_0x108992,_0x5f2913,_0x1d01ff,_0x242c32);else{for(var _0x4ca314=_0x108992['length']-0x1;_0x4ca314>=0x0;_0x4ca314--)if(_0x2a88d9=_0x108992[_0x4ca314])_0x23d237=(_0x4a5326<0x3?_0x2a88d9(_0x23d237):_0x4a5326>0x3?_0x2a88d9(_0x5f2913,_0x1d01ff,_0x23d237):_0x2a88d9(_0x5f2913,_0x1d01ff))||_0x23d237;}return _0x4a5326>0x3&&_0x23d237&&Object['defineProperty'](_0x5f2913,_0x1d01ff,_0x23d237),_0x23d237;},__metadata=this&&this[a13_0x3b82b1(0x1b0)]||function(_0x4caf90,_0x34078b){var _0x10547e=a13_0x3b82b1;if(typeof Reflect===_0x10547e(0x1d1)&&typeof Reflect[_0x10547e(0x1c2)]===_0x10547e(0x1c1))return Reflect[_0x10547e(0x1c2)](_0x4caf90,_0x34078b);};function a13_0x23dd(_0x39532b,_0x44beb2){var _0x463a1b=a13_0x463a();return a13_0x23dd=function(_0x23ddca,_0x34b7fb){_0x23ddca=_0x23ddca-0x1b0;var _0x45aad2=_0x463a1b[_0x23ddca];return _0x45aad2;},a13_0x23dd(_0x39532b,_0x44beb2);}Object[a13_0x3b82b1(0x1be)](exports,a13_0x3b82b1(0x1b3),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a13_0x3b82b1(0x1c3));class PageDTO{}__decorate([(0x0,validator_1[a13_0x3b82b1(0x1c5)])('分页',validator_1[a13_0x3b82b1(0x1c7)][a13_0x3b82b1(0x1b6)]()['integer']()[a13_0x3b82b1(0x1ba)](0x1),a13_0x3b82b1(0x1c4)),__metadata('design:type',Number)],PageDTO['prototype'],a13_0x3b82b1(0x1b5),void 0x0),__decorate([(0x0,validator_1[a13_0x3b82b1(0x1c5)])(a13_0x3b82b1(0x1bc),validator_1['RuleType'][a13_0x3b82b1(0x1b6)]()[a13_0x3b82b1(0x1c6)]()['min'](0x1)),__metadata(a13_0x3b82b1(0x1b2),Number)],PageDTO[a13_0x3b82b1(0x1b9)],a13_0x3b82b1(0x1b8),void 0x0),__decorate([(0x0,validator_1[a13_0x3b82b1(0x1c5)])(a13_0x3b82b1(0x1c9),validator_1[a13_0x3b82b1(0x1c7)]['string']()[a13_0x3b82b1(0x1b4)]()),__metadata(a13_0x3b82b1(0x1b2),String)],PageDTO[a13_0x3b82b1(0x1b9)],a13_0x3b82b1(0x1d3),void 0x0),__decorate([(0x0,validator_1[a13_0x3b82b1(0x1c5)])('是否倒序',validator_1[a13_0x3b82b1(0x1c7)][a13_0x3b82b1(0x1b6)]()['integer']()[a13_0x3b82b1(0x1d2)](0x0,0x1),a13_0x3b82b1(0x1d4)),__metadata(a13_0x3b82b1(0x1b2),Number)],PageDTO['prototype'],a13_0x3b82b1(0x1d0),void 0x0),exports[a13_0x3b82b1(0x1bd)]=PageDTO;
1
+ 'use strict';var a13_0x31577d=a13_0x2c6f;function a13_0x2c6f(_0x4a6d5e,_0x3f5355){var _0x33aac5=a13_0x33aa();return a13_0x2c6f=function(_0x2c6f3b,_0x5da979){_0x2c6f3b=_0x2c6f3b-0xeb;var _0x195dc8=_0x33aac5[_0x2c6f3b];return _0x195dc8;},a13_0x2c6f(_0x4a6d5e,_0x3f5355);}(function(_0x4437ae,_0x28d450){var _0x2f98e5=a13_0x2c6f,_0xe2b69e=_0x4437ae();while(!![]){try{var _0x5b49b1=parseInt(_0x2f98e5(0xf6))/0x1*(parseInt(_0x2f98e5(0xed))/0x2)+-parseInt(_0x2f98e5(0x10a))/0x3+-parseInt(_0x2f98e5(0xff))/0x4*(parseInt(_0x2f98e5(0xf9))/0x5)+parseInt(_0x2f98e5(0xf0))/0x6+parseInt(_0x2f98e5(0x102))/0x7+-parseInt(_0x2f98e5(0xeb))/0x8+parseInt(_0x2f98e5(0xec))/0x9;if(_0x5b49b1===_0x28d450)break;else _0xe2b69e['push'](_0xe2b69e['shift']());}catch(_0x3b26b5){_0xe2b69e['push'](_0xe2b69e['shift']());}}}(a13_0x33aa,0x269f7));var __decorate=this&&this['__decorate']||function(_0x331b54,_0x4b1ffd,_0xf88443,_0x48ff8c){var _0x4f2d13=a13_0x2c6f,_0x531c1a=arguments[_0x4f2d13(0x108)],_0x59c1e5=_0x531c1a<0x3?_0x4b1ffd:_0x48ff8c===null?_0x48ff8c=Object['getOwnPropertyDescriptor'](_0x4b1ffd,_0xf88443):_0x48ff8c,_0x3433fa;if(typeof Reflect===_0x4f2d13(0xf4)&&typeof Reflect[_0x4f2d13(0xf2)]===_0x4f2d13(0x100))_0x59c1e5=Reflect[_0x4f2d13(0xf2)](_0x331b54,_0x4b1ffd,_0xf88443,_0x48ff8c);else{for(var _0x4acf2=_0x331b54[_0x4f2d13(0x108)]-0x1;_0x4acf2>=0x0;_0x4acf2--)if(_0x3433fa=_0x331b54[_0x4acf2])_0x59c1e5=(_0x531c1a<0x3?_0x3433fa(_0x59c1e5):_0x531c1a>0x3?_0x3433fa(_0x4b1ffd,_0xf88443,_0x59c1e5):_0x3433fa(_0x4b1ffd,_0xf88443))||_0x59c1e5;}return _0x531c1a>0x3&&_0x59c1e5&&Object[_0x4f2d13(0xf3)](_0x4b1ffd,_0xf88443,_0x59c1e5),_0x59c1e5;},__metadata=this&&this[a13_0x31577d(0xf7)]||function(_0x3098f1,_0x36f8c6){var _0x5720d8=a13_0x31577d;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x5720d8(0xef)](_0x3098f1,_0x36f8c6);};Object[a13_0x31577d(0xf3)](exports,a13_0x31577d(0x109),{'value':!![]}),exports[a13_0x31577d(0xf1)]=void 0x0;const validator_1=require('@anncic-api/validator');function a13_0x33aa(){var _0x2ad57d=['__metadata','number','95dQRnqN','min','string','prototype','是否倒序','RuleType','45896KRRfYt','function','_size','1435343JglhYC','排序方式','trim','Rule','valid','design:type','length','__esModule','554031rQcGMS','分页数量','_order','_isreverse','1143384pcgBzW','3958002XjyBkX','46858nlGgHC','1:是;0:否','metadata','72720SYkfRE','PageDTO','decorate','defineProperty','object','integer','2jbnRGx'];a13_0x33aa=function(){return _0x2ad57d;};return a13_0x33aa();}class PageDTO{}__decorate([(0x0,validator_1[a13_0x31577d(0x105)])('分页',validator_1[a13_0x31577d(0xfe)][a13_0x31577d(0xf8)]()[a13_0x31577d(0xf5)]()[a13_0x31577d(0xfa)](0x1),'第一页为1,第二页为2'),__metadata(a13_0x31577d(0x107),Number)],PageDTO[a13_0x31577d(0xfc)],'_page',void 0x0),__decorate([(0x0,validator_1[a13_0x31577d(0x105)])(a13_0x31577d(0x10b),validator_1[a13_0x31577d(0xfe)]['number']()[a13_0x31577d(0xf5)]()[a13_0x31577d(0xfa)](0x1)),__metadata(a13_0x31577d(0x107),Number)],PageDTO['prototype'],a13_0x31577d(0x101),void 0x0),__decorate([(0x0,validator_1['Rule'])(a13_0x31577d(0x103),validator_1[a13_0x31577d(0xfe)][a13_0x31577d(0xfb)]()[a13_0x31577d(0x104)]()),__metadata('design:type',String)],PageDTO[a13_0x31577d(0xfc)],a13_0x31577d(0x10c),void 0x0),__decorate([(0x0,validator_1[a13_0x31577d(0x105)])(a13_0x31577d(0xfd),validator_1[a13_0x31577d(0xfe)][a13_0x31577d(0xf8)]()[a13_0x31577d(0xf5)]()[a13_0x31577d(0x106)](0x0,0x1),a13_0x31577d(0xee)),__metadata(a13_0x31577d(0x107),Number)],PageDTO['prototype'],a13_0x31577d(0x10d),void 0x0),exports['PageDTO']=PageDTO;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anncic-api",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "files": [
@@ -17,11 +17,11 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/cache": "^1.1.7",
21
- "@anncic-api/core": "^1.1.7",
22
- "@anncic-api/event": "^1.1.7",
23
- "@anncic-api/typeorm": "^1.1.7",
24
- "@anncic-api/validator": "^1.1.7",
20
+ "@anncic-api/cache": "^1.1.8",
21
+ "@anncic-api/core": "^1.1.8",
22
+ "@anncic-api/event": "^1.1.8",
23
+ "@anncic-api/typeorm": "^1.1.8",
24
+ "@anncic-api/validator": "^1.1.8",
25
25
  "@midwayjs/cross-domain": "^3.5.0",
26
26
  "@midwayjs/i18n": "^3.5.0",
27
27
  "@midwayjs/koa": "^3.5.0",
@@ -29,7 +29,7 @@
29
29
  "@midwayjs/task": "^3.5.0",
30
30
  "@midwayjs/upload": "^3.5.0",
31
31
  "@types/bull": "^3.15.9",
32
- "anncic-apihelper": "^1.1.7",
32
+ "anncic-apihelper": "^1.1.8",
33
33
  "exceljs": "^4.3.0",
34
34
  "koa-bodyparser": "^4.3.0",
35
35
  "koa-send": "^5.0.1",
@@ -41,5 +41,5 @@
41
41
  "javascript-obfuscator": "2.19.0",
42
42
  "typescript": "^4.7.4"
43
43
  },
44
- "gitHead": "589d64d0ada153a22757a44b6f114a90c4bc0b10"
44
+ "gitHead": "8e67a65d479feee3c586cebc182378beacb68d2f"
45
45
  }