anncic-api 1.0.16 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
- package/public/config.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x16b8(){var _0x501df0=['364388WAMfiP','285361LvCVky','16oabthL','1693152XrSFfd','579346QLhTiy','__esModule','1700083KKLtOb','1201650iwsbAL','dhauo1234420123gg3234901','default','defineProperty','zhiulanuiy7892387985hnoi','570027SDYJYV'];a0_0x16b8=function(){return _0x501df0;};return a0_0x16b8();}var a0_0x142a09=a0_0x5165;function a0_0x5165(_0x49ff49,_0x456f96){var _0x16b843=a0_0x16b8();return a0_0x5165=function(_0x5165c5,_0x495d31){_0x5165c5=_0x5165c5-0xd4;var _0x587839=_0x16b843[_0x5165c5];return _0x587839;},a0_0x5165(_0x49ff49,_0x456f96);}(function(_0x989209,_0x4ca620){var _0x3959b4=a0_0x5165,_0x54e11b=_0x989209();while(!![]){try{var _0x15a2be=parseInt(_0x3959b4(0xdf))/0x1+parseInt(_0x3959b4(0xd5))/0x2+parseInt(_0x3959b4(0xdd))/0x3+-parseInt(_0x3959b4(0xde))/0x4+parseInt(_0x3959b4(0xd8))/0x5+-parseInt(_0x3959b4(0xd4))/0x6+parseInt(_0x3959b4(0xd7))/0x7*(-parseInt(_0x3959b4(0xe0))/0x8);if(_0x15a2be===_0x4ca620)break;else _0x54e11b['push'](_0x54e11b['shift']());}catch(_0x2f6fc9){_0x54e11b['push'](_0x54e11b['shift']());}}}(a0_0x16b8,0x23baa));Object[a0_0x142a09(0xdb)](exports,a0_0x142a09(0xd6),{'value':!![]}),exports[a0_0x142a09(0xda)]=_0x4faff3=>{var _0x240484=a0_0x142a09;return{'apitest':!![],'keys':_0x4faff3['name'],'anncicapi':{'timeout':0x1388,'password':_0x240484(0xdc),'devices':{'DEFAULT':{'secret':_0x240484(0xd9),'checkcode':_0x240484(0xd9)}}},'upload':{'tmpdir':_0x4faff3['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x26ff(){var _0x43e704=['1518620EwvFzJ','34956SBLGnv','705159TaHPaa','40jeTowi','default','233400xJeiiN','defineProperty','35205IkKoDs','5oYraVn','596534iXiXHG','__esModule','560tWdnbv','50994nUapfk'];a1_0x26ff=function(){return _0x43e704;};return a1_0x26ff();}var a1_0x2fc441=a1_0xe208;(function(_0x4cb1a8,_0x3e1b18){var _0x5dfa7f=a1_0xe208,_0x8cabe5=_0x4cb1a8();while(!![]){try{var _0x2f8b9f=-parseInt(_0x5dfa7f(0x119))/0x1+-parseInt(_0x5dfa7f(0x110))/0x2+-parseInt(_0x5dfa7f(0x10e))/0x3*(-parseInt(_0x5dfa7f(0x117))/0x4)+parseInt(_0x5dfa7f(0x10f))/0x5*(parseInt(_0x5dfa7f(0x115))/0x6)+parseInt(_0x5dfa7f(0x116))/0x7+-parseInt(_0x5dfa7f(0x112))/0x8*(-parseInt(_0x5dfa7f(0x113))/0x9)+parseInt(_0x5dfa7f(0x114))/0xa;if(_0x2f8b9f===_0x3e1b18)break;else _0x8cabe5['push'](_0x8cabe5['shift']());}catch(_0x206ee2){_0x8cabe5['push'](_0x8cabe5['shift']());}}}(a1_0x26ff,0x3ac58));function a1_0xe208(_0x5e36b6,_0xe5bba2){var _0x26ffdf=a1_0x26ff();return a1_0xe208=function(_0xe208a5,_0x81a9a3){_0xe208a5=_0xe208a5-0x10e;var _0x1c9089=_0x26ffdf[_0xe208a5];return _0x1c9089;},a1_0xe208(_0x5e36b6,_0xe5bba2);}Object[a1_0x2fc441(0x11a)](exports,a1_0x2fc441(0x111),{'value':!![]}),exports[a1_0x2fc441(0x118)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x2c9d(){const _0x52cf1d=['prototype','4763340GIWnrs','getApplications','log','isNull','REQUEST_OBJ_CTX_KEY','@midwayjs/static-file','query','decorator','string','6764142cNOOdb','input','bodyParser','existsSync','keys','object','@anncic-api/validator','defaultsDeep','get','tmpdir','./config/config.default','device','__metadata','environment','defineProperty','13893570lflaRa','checkConfigKeys','Inject','90333fvZXqC','body','dirs','56YOkeIy','function','checksign','context','bodyXml','@midwayjs/i18n','length','ACTION_ROUTE_KEY','MidwayApplicationManager','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./types/action','getConfiguration','handlerActionRoute','koa-bodyparser','dir','devices','@midwayjs/core','config','useMiddleware','anncic-apihelper','Configuration','isString','ApiService','3499904tejkDB','@midwayjs/cross-domain','upload','MidwayEnvironmentService','mkdirSync','532288ECOYKT','@anncic-api/event','ApiError','defineProperties','metadata','./config/config.production','@midwayjs/upload','decorate','design:type','headers','application','./service/ApiService','@midwayjs/task','beforeRoute','anncic-api','DEFAULT','@midwayjs/koa','__esModule','__decorate','isArray','addObject','koa','staticFile','request','filterConfig','52kwQMxI','anncicapi','CustomConfiguration','MidwayConfigService','koa-xml-body','359995dLeKQC','@midwayjs/decorator','@anncic-api/core','_matchedRoute'];a2_0x2c9d=function(){return _0x52cf1d;};return a2_0x2c9d();}const a2_0x1b49b2=a2_0x5e02;(function(_0x12b35c,_0xbba77c){const _0x48cb32=a2_0x5e02,_0x1ae262=_0x12b35c();while(!![]){try{const _0x35e062=-parseInt(_0x48cb32(0xe9))/0x1+-parseInt(_0x48cb32(0xcd))/0x2*(parseInt(_0x48cb32(0xca))/0x3)+parseInt(_0x48cb32(0x102))/0x4*(-parseInt(_0x48cb32(0x107))/0x5)+parseInt(_0x48cb32(0x10c))/0x6+parseInt(_0x48cb32(0x115))/0x7+-parseInt(_0x48cb32(0xe4))/0x8+parseInt(_0x48cb32(0xc7))/0x9;if(_0x35e062===_0xbba77c)break;else _0x1ae262['push'](_0x1ae262['shift']());}catch(_0x3d5c14){_0x1ae262['push'](_0x1ae262['shift']());}}}(a2_0x2c9d,0x8782f));function a2_0x5e02(_0x797da6,_0xba5b53){const _0x2c9de1=a2_0x2c9d();return a2_0x5e02=function(_0x5e0299,_0xe6fa95){_0x5e0299=_0x5e0299-0xbd;let _0x2163ea=_0x2c9de1[_0x5e0299];return _0x2163ea;},a2_0x5e02(_0x797da6,_0xba5b53);}var __decorate=this&&this[a2_0x1b49b2(0xfb)]||function(_0x236ad0,_0x43ba07,_0x483604,_0x5898d3){const _0x321a63=a2_0x1b49b2;var _0x59cc4e=arguments[_0x321a63(0xd3)],_0x746ca2=_0x59cc4e<0x3?_0x43ba07:_0x5898d3===null?_0x5898d3=Object['getOwnPropertyDescriptor'](_0x43ba07,_0x483604):_0x5898d3,_0x1e7143;if(typeof Reflect===_0x321a63(0xbd)&&typeof Reflect[_0x321a63(0xf0)]==='function')_0x746ca2=Reflect[_0x321a63(0xf0)](_0x236ad0,_0x43ba07,_0x483604,_0x5898d3);else{for(var _0x528317=_0x236ad0[_0x321a63(0xd3)]-0x1;_0x528317>=0x0;_0x528317--)if(_0x1e7143=_0x236ad0[_0x528317])_0x746ca2=(_0x59cc4e<0x3?_0x1e7143(_0x746ca2):_0x59cc4e>0x3?_0x1e7143(_0x43ba07,_0x483604,_0x746ca2):_0x1e7143(_0x43ba07,_0x483604))||_0x746ca2;}return _0x59cc4e>0x3&&_0x746ca2&&Object['defineProperty'](_0x43ba07,_0x483604,_0x746ca2),_0x746ca2;},__metadata=this&&this[a2_0x1b49b2(0xc4)]||function(_0x2aabda,_0x46ce5d){const _0xef59f9=a2_0x1b49b2;if(typeof Reflect==='object'&&typeof Reflect[_0xef59f9(0xed)]===_0xef59f9(0xce))return Reflect[_0xef59f9(0xed)](_0x2aabda,_0x46ce5d);};Object[a2_0x1b49b2(0xc6)](exports,a2_0x1b49b2(0xfa),{'value':!![]}),exports[a2_0x1b49b2(0x104)]=void 0x0;const decorator_1=require(a2_0x1b49b2(0x108)),core_1=require(a2_0x1b49b2(0xdd)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x1b49b2(0xf4)),action_1=require(a2_0x1b49b2(0xd7)),fs=require('fs'),koa=require(a2_0x1b49b2(0xf9)),i18n=require(a2_0x1b49b2(0xd2)),task=require(a2_0x1b49b2(0xf5)),upload=require(a2_0x1b49b2(0xef)),staticFile=require(a2_0x1b49b2(0x111)),crossDomain=require(a2_0x1b49b2(0xe5)),bodyXml=require(a2_0x1b49b2(0x106)),bodyParser=require(a2_0x1b49b2(0xda)),ConfigDefault=require(a2_0x1b49b2(0xc2)),ConfigProduction=require(a2_0x1b49b2(0xee)),anncic=require(a2_0x1b49b2(0x109)),anncicEvent=require(a2_0x1b49b2(0xea)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x1b49b2(0xbe)),anncicHelper=require(a2_0x1b49b2(0xe0));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x14f065=a2_0x1b49b2;await this['filterConfig'](),await this[_0x14f065(0xc8)](),await this[_0x14f065(0xd9)](),await this['hanlderApplications']();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x47abcc=a2_0x1b49b2,_0x3f918c=this['config'][_0x47abcc(0xd8)]();this[_0x47abcc(0x113)]['registerMethodHandler'](action_1[_0x47abcc(0xd4)],_0x28e29a=>{const _0x1cc27c=_0x47abcc,_0x1eac78=_0x28e29a[_0x1cc27c(0xed)];return{'before':async _0x50bb9c=>{const _0x496714=_0x1cc27c;var _0xae7de1,_0x6537ae,_0xe66a54,_0x2da8b0,_0x4abba0;const _0x59b5cb=(_0xae7de1=_0x50bb9c===null||_0x50bb9c===void 0x0?void 0x0:_0x50bb9c['target'])===null||_0xae7de1===void 0x0?void 0x0:_0xae7de1[core_1[_0x496714(0x110)]];if(_0x59b5cb){if((_0x1eac78===null||_0x1eac78===void 0x0?void 0x0:_0x1eac78['apimit'])&&!this['ApiService'][_0x496714(0xcf)]((_0x6537ae=_0x59b5cb===null||_0x59b5cb===void 0x0?void 0x0:_0x59b5cb[_0x496714(0x100)])===null||_0x6537ae===void 0x0?void 0x0:_0x6537ae[_0x496714(0xf2)]))throw new AnnError(ApiError_1[_0x496714(0xeb)]['HEADERS_SIGNATURE']);((_0xe66a54=_0x59b5cb['headers'])===null||_0xe66a54===void 0x0?void 0x0:_0xe66a54[_0x496714(0xc3)])&&((_0x4abba0=(_0x2da8b0=_0x3f918c===null||_0x3f918c===void 0x0?void 0x0:_0x3f918c[_0x496714(0x103)])===null||_0x2da8b0===void 0x0?void 0x0:_0x2da8b0[_0x496714(0xdc)])===null||_0x4abba0===void 0x0?void 0x0:_0x4abba0[_0x59b5cb[_0x496714(0xf2)]['device']])&&(typeof _0x3f918c[_0x496714(0x103)][_0x496714(0xdc)][_0x59b5cb[_0x496714(0xf2)]['device']]['beforeRoute']==_0x496714(0xce)&&await _0x3f918c['anncicapi']['devices'][_0x59b5cb['headers'][_0x496714(0xc3)]][_0x496714(0xf6)]((_0x59b5cb===null||_0x59b5cb===void 0x0?void 0x0:_0x59b5cb[_0x496714(0x10a)])||undefined,_0x1eac78,_0x59b5cb));}},'afterThrow':(_0x117542,_0xd40b3e)=>{throw _0xd40b3e;}};});}async['hanlderApplications'](){const _0x804f4b=a2_0x1b49b2;this[_0x804f4b(0xf3)][_0x804f4b(0x10d)]([_0x804f4b(0xfe)])['forEach'](_0x43bfe5=>{const _0x118334=_0x804f4b;_0x43bfe5[_0x118334(0xdf)](bodyXml(this[_0x118334(0xde)][_0x118334(0xd8)](_0x118334(0xd1)))),_0x43bfe5[_0x118334(0xdf)](bodyParser(this[_0x118334(0xde)][_0x118334(0xd8)](_0x118334(0x117)))),(_0x43bfe5===null||_0x43bfe5===void 0x0?void 0x0:_0x43bfe5[_0x118334(0xd0)])&&Object[_0x118334(0xec)](_0x43bfe5[_0x118334(0xd0)],{'ok':{'value':function(_0x10a758,_0x39be0b,_0x2fafb5=0x0){return{'code':_0x2fafb5,'data':_0x10a758,'extra':_0x39be0b};}},'err':{'value':function(_0x3c2871,_0x12f1f6,_0x2fd747=0x1){return{'code':_0x2fd747,'extra':_0x12f1f6,'msg':_0x3c2871};}},'input':{'value':function(_0x53c61b,_0x3c573b){const _0x5085c8=_0x118334;var _0x186c64;const _0x25888d=lodash[_0x5085c8(0xbf)]({},this[_0x5085c8(0x100)][_0x5085c8(0xcb)]||this['request'][((_0x186c64=config===null||config===void 0x0?void 0x0:config[_0x5085c8(0xd1)])===null||_0x186c64===void 0x0?void 0x0:_0x186c64['key'])||_0x5085c8(0xcb)]||{},this['request'][_0x5085c8(0x112)]||{});return _0x53c61b?lodash[_0x5085c8(0xc0)](_0x25888d,_0x53c61b,_0x3c573b):_0x25888d;}},'when':{'value':async function(_0x2503fc,_0x41a937){const _0x1904b8=_0x118334,_0x49b6a8=this[_0x1904b8(0x116)](_0x2503fc,null);if(!lodash[_0x1904b8(0x10f)](_0x49b6a8))return await _0x41a937(_0x49b6a8);}},'only':{'value':function(_0x2399b0){const _0x53d9cc=_0x118334,_0x29ec56={};for(let _0x2f9c4f=0x0;_0x2f9c4f<_0x2399b0['length'];_0x2f9c4f++){lodash[_0x53d9cc(0xfc)](_0x2399b0[_0x2f9c4f])&&_0x2399b0[_0x2f9c4f][_0x53d9cc(0xd3)]>0x0&&lodash[_0x53d9cc(0xe2)](_0x2399b0[_0x2f9c4f][0x0])&&(_0x29ec56[_0x2399b0[_0x2f9c4f][0x0]]=this[_0x53d9cc(0x116)](_0x2399b0[_0x2f9c4f][0x0],_0x2399b0[_0x2f9c4f][_0x53d9cc(0xd3)]>0x1?_0x2399b0[_0x2f9c4f][0x1]:null));}return _0x29ec56;}}});});}async[a2_0x1b49b2(0x101)](){const _0x5f2abc=a2_0x1b49b2;var _0x1f0806,_0x3cf862,_0x474dc3,_0x55b596,_0x55394f,_0x4e6577;const _0x53e245=this[_0x5f2abc(0xde)][_0x5f2abc(0xd8)]();((_0x3cf862=(_0x1f0806=_0x53e245===null||_0x53e245===void 0x0?void 0x0:_0x53e245['anncicapi'])===null||_0x1f0806===void 0x0?void 0x0:_0x1f0806[_0x5f2abc(0xdc)])===null||_0x3cf862===void 0x0?void 0x0:_0x3cf862[_0x5f2abc(0xf8)])&&Object[_0x5f2abc(0x119)](_0x53e245[_0x5f2abc(0x103)][_0x5f2abc(0xdc)])[_0x5f2abc(0xd3)]>0x1&&delete _0x53e245[_0x5f2abc(0x103)][_0x5f2abc(0xdc)][_0x5f2abc(0xf8)];if((_0x474dc3=_0x53e245===null||_0x53e245===void 0x0?void 0x0:_0x53e245['staticFile'])===null||_0x474dc3===void 0x0?void 0x0:_0x474dc3[_0x5f2abc(0xcc)])for(const _0x187829 in _0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)]){((_0x55b596=_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829])===null||_0x55b596===void 0x0?void 0x0:_0x55b596['dir'])&&typeof((_0x55394f=_0x53e245['staticFile'][_0x5f2abc(0xcc)][_0x187829])===null||_0x55394f===void 0x0?void 0x0:_0x55394f[_0x5f2abc(0xdb)])==_0x5f2abc(0x114)&&!fs[_0x5f2abc(0x118)](_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829]['dir'])&&(fs[_0x5f2abc(0xe8)](_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829][_0x5f2abc(0xdb)],{'recursive':!![]}),console[_0x5f2abc(0x10e)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x53e245[_0x5f2abc(0xff)][_0x5f2abc(0xcc)][_0x187829]['dir']));}((_0x4e6577=_0x53e245===null||_0x53e245===void 0x0?void 0x0:_0x53e245[_0x5f2abc(0xe6)])===null||_0x4e6577===void 0x0?void 0x0:_0x4e6577['tmpdir'])&&!fs[_0x5f2abc(0x118)](_0x53e245[_0x5f2abc(0xe6)][_0x5f2abc(0xc1)])&&(fs[_0x5f2abc(0xe8)](_0x53e245[_0x5f2abc(0xe6)]['tmpdir'],{'recursive':!![]}),console[_0x5f2abc(0x10e)](_0x5f2abc(0xd6)+_0x53e245['upload'][_0x5f2abc(0xc1)])),this[_0x5f2abc(0xde)][_0x5f2abc(0xfd)](_0x53e245);}};__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata('design:type',core_1[a2_0x1b49b2(0x105)])],CustomConfiguration[a2_0x1b49b2(0x10b)],'config',void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata(a2_0x1b49b2(0xf1),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x1b49b2(0x10b)],a2_0x1b49b2(0x113),void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata(a2_0x1b49b2(0xf1),core_1[a2_0x1b49b2(0xd5)])],CustomConfiguration[a2_0x1b49b2(0x10b)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata(a2_0x1b49b2(0xf1),core_1[a2_0x1b49b2(0xe7)])],CustomConfiguration[a2_0x1b49b2(0x10b)],a2_0x1b49b2(0xc5),void 0x0),__decorate([(0x0,decorator_1[a2_0x1b49b2(0xc9)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x1b49b2(0x10b)],a2_0x1b49b2(0xe3),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1b49b2(0xe1)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1b49b2(0xf7),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1b49b2(0x104)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x50a24c=a2_0x3978;function a2_0x4279(){const _0x458cdc=['dir','ACTION_ROUTE_KEY','MidwayEnvironmentService','718188kAvZEw','HEADERS_SIGNATURE','@anncic-api/event','8YlSVbD','819786SgrnBS','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/i18n','anncic-apihelper','onReady','target','ApiError','63iqKhfq','device','Configuration','koa-bodyparser','@midwayjs/core','log','get','5GOiTqi','bodyXml','@midwayjs/cross-domain','ApiService','application','addObject','REQUEST_OBJ_CTX_KEY','MidwayDecoratorService','__esModule','design:type','isString','koa-xml-body','tmpdir','length','filterConfig','./config/config.production','49346KcVucM','apimit','getOwnPropertyDescriptor','prototype','registerMethodHandler','decorator','149849rBSlrY','existsSync','request','CustomConfiguration','staticFile','MidwayConfigService','anncicapi','__decorate','88XcyRkd','environment','./types/action','dirs','metadata','@anncic-api/typeorm','Inject','@midwayjs/static-file','useMiddleware','getConfiguration','config','41600GSZDVr','anncic-api','isNull','checksign','@anncic-api/core','handlerActionRoute','function','163554wAeDnB','hanlderApplications','context','body','forEach','upload','__metadata','koa','string','defaultsDeep','./service/ApiService','keys','defineProperty','headers','./exception/ApiError','object','input','@midwayjs/decorator','devices','223477jrPKkv','checkConfigKeys','@anncic-api/validator','@midwayjs/upload'];a2_0x4279=function(){return _0x458cdc;};return a2_0x4279();}(function(_0x96d9e6,_0xe511ae){const _0x553173=a2_0x3978,_0x1f2141=_0x96d9e6();while(!![]){try{const _0x356d1c=parseInt(_0x553173(0x115))/0x1+parseInt(_0x553173(0x13e))/0x2+-parseInt(_0x553173(0x15e))/0x3*(parseInt(_0x553173(0x11f))/0x4)+-parseInt(_0x553173(0x12e))/0x5*(parseInt(_0x553173(0x11c))/0x6)+parseInt(_0x553173(0x144))/0x7*(parseInt(_0x553173(0x14c))/0x8)+-parseInt(_0x553173(0x127))/0x9*(parseInt(_0x553173(0x157))/0xa)+-parseInt(_0x553173(0x120))/0xb;if(_0x356d1c===_0xe511ae)break;else _0x1f2141['push'](_0x1f2141['shift']());}catch(_0x10dbe2){_0x1f2141['push'](_0x1f2141['shift']());}}}(a2_0x4279,0x24ecf));var __decorate=this&&this[a2_0x50a24c(0x14b)]||function(_0x3af2ab,_0x4ee1d3,_0xd29bfe,_0x13a7ae){const _0x35b91c=a2_0x50a24c;var _0x5df555=arguments[_0x35b91c(0x13b)],_0x3e3f74=_0x5df555<0x3?_0x4ee1d3:_0x13a7ae===null?_0x13a7ae=Object[_0x35b91c(0x140)](_0x4ee1d3,_0xd29bfe):_0x13a7ae,_0x22f64e;if(typeof Reflect===_0x35b91c(0x111)&&typeof Reflect['decorate']===_0x35b91c(0x15d))_0x3e3f74=Reflect['decorate'](_0x3af2ab,_0x4ee1d3,_0xd29bfe,_0x13a7ae);else{for(var _0x2af23d=_0x3af2ab[_0x35b91c(0x13b)]-0x1;_0x2af23d>=0x0;_0x2af23d--)if(_0x22f64e=_0x3af2ab[_0x2af23d])_0x3e3f74=(_0x5df555<0x3?_0x22f64e(_0x3e3f74):_0x5df555>0x3?_0x22f64e(_0x4ee1d3,_0xd29bfe,_0x3e3f74):_0x22f64e(_0x4ee1d3,_0xd29bfe))||_0x3e3f74;}return _0x5df555>0x3&&_0x3e3f74&&Object[_0x35b91c(0x10e)](_0x4ee1d3,_0xd29bfe,_0x3e3f74),_0x3e3f74;},__metadata=this&&this[a2_0x50a24c(0x164)]||function(_0x536412,_0x125b9e){const _0x5f2d35=a2_0x50a24c;if(typeof Reflect===_0x5f2d35(0x111)&&typeof Reflect[_0x5f2d35(0x150)]==='function')return Reflect[_0x5f2d35(0x150)](_0x536412,_0x125b9e);};Object['defineProperty'](exports,a2_0x50a24c(0x136),{'value':!![]}),exports[a2_0x50a24c(0x147)]=void 0x0;const decorator_1=require(a2_0x50a24c(0x113)),core_1=require(a2_0x50a24c(0x12b)),ApiError_1=require(a2_0x50a24c(0x110)),ApiService_1=require(a2_0x50a24c(0x10c)),action_1=require(a2_0x50a24c(0x14e)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x50a24c(0x122)),task=require('@midwayjs/task'),upload=require(a2_0x50a24c(0x118)),staticFile=require(a2_0x50a24c(0x153)),crossDomain=require(a2_0x50a24c(0x130)),bodyXml=require(a2_0x50a24c(0x139)),bodyParser=require(a2_0x50a24c(0x12a)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x50a24c(0x13d)),anncic=require(a2_0x50a24c(0x15b)),anncicEvent=require(a2_0x50a24c(0x11e)),anncicTypeorm=require(a2_0x50a24c(0x151)),anncicValidator=require(a2_0x50a24c(0x117)),anncicHelper=require(a2_0x50a24c(0x123));function a2_0x3978(_0x429622,_0x527881){const _0x427926=a2_0x4279();return a2_0x3978=function(_0x3978ad,_0x2c02ec){_0x3978ad=_0x3978ad-0x10b;let _0x3d8139=_0x427926[_0x3978ad];return _0x3d8139;},a2_0x3978(_0x429622,_0x527881);}let CustomConfiguration=class CustomConfiguration{async[a2_0x50a24c(0x124)](){const _0x265198=a2_0x50a24c;await this[_0x265198(0x13c)](),await this[_0x265198(0x116)](),await this[_0x265198(0x15c)](),await this[_0x265198(0x15f)]();}async[a2_0x50a24c(0x116)](){}async[a2_0x50a24c(0x15c)](){const _0x1c73af=a2_0x50a24c,_0xc4601f=this[_0x1c73af(0x156)][_0x1c73af(0x155)]();this[_0x1c73af(0x143)][_0x1c73af(0x142)](action_1[_0x1c73af(0x11a)],_0x116318=>{const _0x153a8a=_0x1c73af,_0x3ecf27=_0x116318[_0x153a8a(0x150)];return{'before':async _0x1cc99c=>{const _0x5a547a=_0x153a8a;var _0x572093,_0x338614,_0x2e31ba,_0x3e5451,_0x148cb9;const _0x1f92c2=(_0x572093=_0x1cc99c===null||_0x1cc99c===void 0x0?void 0x0:_0x1cc99c[_0x5a547a(0x125)])===null||_0x572093===void 0x0?void 0x0:_0x572093[core_1[_0x5a547a(0x134)]];if(_0x1f92c2){if((_0x3ecf27===null||_0x3ecf27===void 0x0?void 0x0:_0x3ecf27[_0x5a547a(0x13f)])&&!this[_0x5a547a(0x131)][_0x5a547a(0x15a)]((_0x338614=_0x1f92c2===null||_0x1f92c2===void 0x0?void 0x0:_0x1f92c2[_0x5a547a(0x146)])===null||_0x338614===void 0x0?void 0x0:_0x338614['headers']))throw new AnnError(ApiError_1[_0x5a547a(0x126)][_0x5a547a(0x11d)]);((_0x2e31ba=_0x1f92c2[_0x5a547a(0x10f)])===null||_0x2e31ba===void 0x0?void 0x0:_0x2e31ba[_0x5a547a(0x128)])&&((_0x148cb9=(_0x3e5451=_0xc4601f===null||_0xc4601f===void 0x0?void 0x0:_0xc4601f[_0x5a547a(0x14a)])===null||_0x3e5451===void 0x0?void 0x0:_0x3e5451[_0x5a547a(0x114)])===null||_0x148cb9===void 0x0?void 0x0:_0x148cb9[_0x1f92c2[_0x5a547a(0x10f)]['device']])&&(typeof _0xc4601f[_0x5a547a(0x14a)][_0x5a547a(0x114)][_0x1f92c2['headers']['device']]['beforeRoute']=='function'&&await _0xc4601f[_0x5a547a(0x14a)]['devices'][_0x1f92c2[_0x5a547a(0x10f)][_0x5a547a(0x128)]]['beforeRoute']((_0x1f92c2===null||_0x1f92c2===void 0x0?void 0x0:_0x1f92c2['_matchedRoute'])||undefined,_0x3ecf27,_0x1f92c2));}},'afterThrow':(_0x335597,_0x487808)=>{throw _0x487808;}};});}async[a2_0x50a24c(0x15f)](){const _0xa41ecd=a2_0x50a24c;this[_0xa41ecd(0x132)]['getApplications']([_0xa41ecd(0x165)])[_0xa41ecd(0x162)](_0x1ea4ff=>{const _0x33dd07=_0xa41ecd;_0x1ea4ff[_0x33dd07(0x154)](bodyXml(this[_0x33dd07(0x156)][_0x33dd07(0x155)](_0x33dd07(0x12f)))),_0x1ea4ff[_0x33dd07(0x154)](bodyParser(this[_0x33dd07(0x156)]['getConfiguration']('bodyParser'))),(_0x1ea4ff===null||_0x1ea4ff===void 0x0?void 0x0:_0x1ea4ff[_0x33dd07(0x160)])&&Object['defineProperties'](_0x1ea4ff[_0x33dd07(0x160)],{'ok':{'value':function(_0x203930,_0x4f202c,_0x55e303=0x0){return{'code':_0x55e303,'data':_0x203930,'extra':_0x4f202c};}},'err':{'value':function(_0x441da2,_0x20a70f,_0x4af431=0x1){return{'code':_0x4af431,'extra':_0x20a70f,'msg':_0x441da2};}},'input':{'value':function(_0x594f35,_0x4513f8){const _0x31c630=_0x33dd07;var _0x233b6f;const _0x4baadf=lodash[_0x31c630(0x10b)]({},this[_0x31c630(0x146)][_0x31c630(0x161)]||this[_0x31c630(0x146)][((_0x233b6f=config===null||config===void 0x0?void 0x0:config[_0x31c630(0x12f)])===null||_0x233b6f===void 0x0?void 0x0:_0x233b6f['key'])||_0x31c630(0x161)]||{},this[_0x31c630(0x146)]['query']||{});return _0x594f35?lodash[_0x31c630(0x12d)](_0x4baadf,_0x594f35,_0x4513f8):_0x4baadf;}},'when':{'value':async function(_0x60609a,_0x158ee2){const _0x3a4808=_0x33dd07,_0x456948=this['input'](_0x60609a,null);if(!lodash[_0x3a4808(0x159)](_0x456948))return await _0x158ee2(_0x456948);}},'only':{'value':function(_0x55fbb3){const _0x3a7be5=_0x33dd07,_0x1155b2={};for(let _0x3bf9c3=0x0;_0x3bf9c3<_0x55fbb3['length'];_0x3bf9c3++){lodash['isArray'](_0x55fbb3[_0x3bf9c3])&&_0x55fbb3[_0x3bf9c3][_0x3a7be5(0x13b)]>0x0&&lodash[_0x3a7be5(0x138)](_0x55fbb3[_0x3bf9c3][0x0])&&(_0x1155b2[_0x55fbb3[_0x3bf9c3][0x0]]=this[_0x3a7be5(0x112)](_0x55fbb3[_0x3bf9c3][0x0],_0x55fbb3[_0x3bf9c3]['length']>0x1?_0x55fbb3[_0x3bf9c3][0x1]:null));}return _0x1155b2;}}});});}async[a2_0x50a24c(0x13c)](){const _0x169bb0=a2_0x50a24c;var _0x1d3e53,_0x3f19b2,_0xd85ec2,_0x1ca56e,_0xe5386b,_0x4f9909;const _0x148472=this[_0x169bb0(0x156)][_0x169bb0(0x155)]();((_0x3f19b2=(_0x1d3e53=_0x148472===null||_0x148472===void 0x0?void 0x0:_0x148472['anncicapi'])===null||_0x1d3e53===void 0x0?void 0x0:_0x1d3e53[_0x169bb0(0x114)])===null||_0x3f19b2===void 0x0?void 0x0:_0x3f19b2['DEFAULT'])&&Object[_0x169bb0(0x10d)](_0x148472[_0x169bb0(0x14a)][_0x169bb0(0x114)])[_0x169bb0(0x13b)]>0x1&&delete _0x148472[_0x169bb0(0x14a)][_0x169bb0(0x114)]['DEFAULT'];if((_0xd85ec2=_0x148472===null||_0x148472===void 0x0?void 0x0:_0x148472[_0x169bb0(0x148)])===null||_0xd85ec2===void 0x0?void 0x0:_0xd85ec2[_0x169bb0(0x14f)])for(const _0x4a2168 in _0x148472[_0x169bb0(0x148)][_0x169bb0(0x14f)]){((_0x1ca56e=_0x148472[_0x169bb0(0x148)][_0x169bb0(0x14f)][_0x4a2168])===null||_0x1ca56e===void 0x0?void 0x0:_0x1ca56e[_0x169bb0(0x119)])&&typeof((_0xe5386b=_0x148472[_0x169bb0(0x148)][_0x169bb0(0x14f)][_0x4a2168])===null||_0xe5386b===void 0x0?void 0x0:_0xe5386b[_0x169bb0(0x119)])==_0x169bb0(0x166)&&!fs[_0x169bb0(0x145)](_0x148472[_0x169bb0(0x148)]['dirs'][_0x4a2168]['dir'])&&(fs['mkdirSync'](_0x148472[_0x169bb0(0x148)]['dirs'][_0x4a2168]['dir'],{'recursive':!![]}),console[_0x169bb0(0x12c)](_0x169bb0(0x121)+_0x148472[_0x169bb0(0x148)]['dirs'][_0x4a2168][_0x169bb0(0x119)]));}((_0x4f9909=_0x148472===null||_0x148472===void 0x0?void 0x0:_0x148472['upload'])===null||_0x4f9909===void 0x0?void 0x0:_0x4f9909[_0x169bb0(0x13a)])&&!fs['existsSync'](_0x148472[_0x169bb0(0x163)][_0x169bb0(0x13a)])&&(fs['mkdirSync'](_0x148472[_0x169bb0(0x163)][_0x169bb0(0x13a)],{'recursive':!![]}),console[_0x169bb0(0x12c)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x148472[_0x169bb0(0x163)][_0x169bb0(0x13a)])),this['config'][_0x169bb0(0x133)](_0x148472);}};__decorate([(0x0,decorator_1[a2_0x50a24c(0x152)])(),__metadata(a2_0x50a24c(0x137),core_1[a2_0x50a24c(0x149)])],CustomConfiguration[a2_0x50a24c(0x141)],a2_0x50a24c(0x156),void 0x0),__decorate([(0x0,decorator_1[a2_0x50a24c(0x152)])(),__metadata(a2_0x50a24c(0x137),core_1[a2_0x50a24c(0x135)])],CustomConfiguration[a2_0x50a24c(0x141)],a2_0x50a24c(0x143),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x50a24c(0x137),core_1['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x50a24c(0x137),core_1[a2_0x50a24c(0x11b)])],CustomConfiguration[a2_0x50a24c(0x141)],a2_0x50a24c(0x14d),void 0x0),__decorate([(0x0,decorator_1[a2_0x50a24c(0x152)])(),__metadata(a2_0x50a24c(0x137),ApiService_1[a2_0x50a24c(0x131)])],CustomConfiguration['prototype'],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x50a24c(0x129)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x50a24c(0x158),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x306626=a3_0x50b9;(function(_0x2856e4,_0x3f39c4){const _0x143576=a3_0x50b9,_0xca6400=_0x2856e4();while(!![]){try{const _0x417119=-parseInt(_0x143576(0x153))/0x1+-parseInt(_0x143576(0x14e))/0x2+parseInt(_0x143576(0x151))/0x3*(-parseInt(_0x143576(0x14a))/0x4)+parseInt(_0x143576(0x159))/0x5+-parseInt(_0x143576(0x143))/0x6+parseInt(_0x143576(0x15e))/0x7+parseInt(_0x143576(0x14b))/0x8*(parseInt(_0x143576(0x14f))/0x9);if(_0x417119===_0x3f39c4)break;else _0xca6400['push'](_0xca6400['shift']());}catch(_0xf6def7){_0xca6400['push'](_0xca6400['shift']());}}}(a3_0xec9c,0xaed51));Object[a3_0x306626(0x146)](exports,'__esModule',{'value':!![]}),exports[a3_0x306626(0x141)]=exports[a3_0x306626(0x148)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x306626(0x131)),action_1=require(a3_0x306626(0x138));function Action(_0x3b55a2,_0x4a531f,_0x4e90b5={'middleware':[],'sensitive':!![]}){return _0x2a2ec2=>{const _0x14331a=a3_0x50b9;_0x4e90b5['tagName']=_0x4a531f;const _0x3358e0=parseRoute(_0x3b55a2);if(_0x3358e0['module']){_0x4e90b5[_0x14331a(0x14d)]=_0x4e90b5['prefix']?'/'+_0x3358e0['module']+'/'+_0x4e90b5[_0x14331a(0x14d)]:'/'+_0x3358e0[_0x14331a(0x158)];_0x3358e0[_0x14331a(0x14d)]&&(_0x4e90b5[_0x14331a(0x14d)]='/'+_0x3358e0[_0x14331a(0x14d)]+'/'+_0x4e90b5['prefix']);if(fs[_0x14331a(0x139)](_0x3358e0[_0x14331a(0x12f)]+_0x14331a(0x160)+_0x3358e0[_0x14331a(0x13c)]+_0x14331a(0x136)+(lodash[_0x14331a(0x154)](_0x3358e0[_0x14331a(0x13a)],'ts')?'ts':'js'))){const _0x8c7893=include(_0x3358e0[_0x14331a(0x12f)]+_0x14331a(0x160)+_0x3358e0[_0x14331a(0x13c)]+_0x14331a(0x136)+(lodash[_0x14331a(0x154)](_0x3358e0['filepath'],'ts')?'ts':'js'));if(_0x8c7893[_0x14331a(0x144)]&&lodash[_0x14331a(0x137)](_0x8c7893['middleware'])&&_0x8c7893['middleware'][_0x14331a(0x15d)]>0x0)for(let _0x338b97 in _0x8c7893[_0x14331a(0x144)]){_0x8c7893[_0x14331a(0x13f)]['indexOf'](_0x8c7893[_0x14331a(0x144)][_0x338b97])==-0x1&&_0x4e90b5[_0x14331a(0x144)]['push'](_0x8c7893[_0x14331a(0x144)][_0x338b97]);}}_0x4e90b5[_0x14331a(0x14d)]=_0x4e90b5[_0x14331a(0x14d)][_0x14331a(0x15a)]()[_0x14331a(0x13e)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x14331a(0x155)])(action_1[_0x14331a(0x135)],_0x2a2ec2),(0x0,decorator_1[_0x14331a(0x150)])(_0x4e90b5[_0x14331a(0x14d)],_0x4e90b5)(_0x2a2ec2),(0x0,decorator_1[_0x14331a(0x145)])(action_1[_0x14331a(0x135)],{'prefix':_0x4e90b5[_0x14331a(0x14d)],'pprefix':_0x3358e0[_0x14331a(0x14d)],'module':_0x3358e0[_0x14331a(0x13c)],'filepath':_0x3358e0[_0x14331a(0x13a)],'routerOptions':_0x4e90b5},_0x2a2ec2);}else _0x4e90b5[_0x14331a(0x14d)]=_0x4e90b5[_0x14331a(0x14d)]?'/'+_0x4e90b5[_0x14331a(0x14d)]:'/'+_0x3358e0['route'],_0x3358e0[_0x14331a(0x14d)]&&(_0x4e90b5[_0x14331a(0x14d)]='/'+_0x3358e0[_0x14331a(0x14d)]+'/'+_0x4e90b5[_0x14331a(0x14d)]),_0x4e90b5[_0x14331a(0x14d)]=_0x4e90b5['prefix'][_0x14331a(0x15a)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x14331a(0x155)])(action_1[_0x14331a(0x135)],_0x2a2ec2),(0x0,decorator_1['Controller'])(_0x4e90b5[_0x14331a(0x14d)],_0x4e90b5)(_0x2a2ec2),(0x0,decorator_1[_0x14331a(0x145)])(action_1['ACTION_KEY'],{'prefix':_0x4e90b5[_0x14331a(0x14d)],'module':_0x3358e0[_0x14331a(0x13c)],'pprefix':_0x3358e0[_0x14331a(0x14d)],'filepath':_0x3358e0[_0x14331a(0x13a)],'routerOptions':_0x4e90b5},_0x2a2ec2);};}exports[a3_0x306626(0x148)]=Action;function a3_0xec9c(){const _0x58bb6d=['app/controller/','rootpath','apps/','@midwayjs/decorator','indexOf','join','split','ACTION_KEY','/config.','isArray','../types/action','existsSync','filepath','/controller/','module','\x20文件请放在app/controller/文件下','replace','middlewareIgnore','match','parseRoute','trim','7257060dEoaHg','middleware','saveClassMetadata','defineProperty','substring','Action','splice','8ClSEEd','3253160XqqFNR','startsWith','prefix','921764AUyhTx','63WEJbRB','Controller','1119903mqOIvy','/controller/文件下','170559XzKKny','endsWith','saveModule','\x20文件请放在apps/','cwd','route','105040HKJTsz','toLowerCase','filter','-controller','length','3053001bfSiNn','-action','/apps/'];a3_0xec9c=function(){return _0x58bb6d;};return a3_0xec9c();}function a3_0x50b9(_0x32ca3f,_0x29d8cd){const _0xec9cfd=a3_0xec9c();return a3_0x50b9=function(_0x50b951,_0xfb0615){_0x50b951=_0x50b951-0x12f;let _0x3f609f=_0xec9cfd[_0x50b951];return _0x3f609f;},a3_0x50b9(_0x32ca3f,_0x29d8cd);}function parseRoute(_0x5aee2f){const _0x468eae=a3_0x306626;_0x5aee2f=_0x5aee2f[_0x468eae(0x13e)](/(\\|\/)/g,'/');const _0x3e1b2e=process[_0x468eae(0x157)]()[_0x468eae(0x13e)](/(\\|\/)/g,'/'),_0x5060e2=_0x5aee2f[_0x468eae(0x147)](0x0,_0x3e1b2e[_0x468eae(0x15d)]+_0x5aee2f[_0x468eae(0x147)](_0x3e1b2e[_0x468eae(0x15d)]+0x1)[_0x468eae(0x132)]('/')+0x1),_0x182975=_0x5aee2f[_0x468eae(0x147)](_0x5060e2[_0x468eae(0x15d)]+0x1)[_0x468eae(0x13e)](/(\\|\/)/g,'/'),_0x54c5c5={'route':'','prefix':![],'module':![],'rootpath':_0x5060e2,'filepath':_0x182975};if(_0x182975['startsWith'](_0x468eae(0x161))){const _0x1f0758=_0x182975[_0x468eae(0x147)](_0x468eae(0x161)[_0x468eae(0x15d)])[_0x468eae(0x134)]('/')[_0x468eae(0x15b)](_0x3bfb22=>_0x3bfb22&&_0x3bfb22['trim']());return _0x1f0758[_0x468eae(0x15d)]>0x1&&(_0x54c5c5['prefix']=_0x1f0758[0x0][_0x468eae(0x15a)](),_0x1f0758['splice'](0x0,0x1)),_0x54c5c5[_0x468eae(0x158)]=('/'+_0x1f0758['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0x468eae(0x13e)](/\/{2,}/g,'/')[_0x468eae(0x140)](/[\/|A-Z]*[^A-Z]+/g)[_0x468eae(0x133)]('-')[_0x468eae(0x15a)]()[_0x468eae(0x13e)](/\/\-/g,'/'),_0x54c5c5['route'][_0x468eae(0x154)](_0x468eae(0x15f))&&(_0x54c5c5[_0x468eae(0x158)]=_0x54c5c5['route'][_0x468eae(0x147)](0x0,_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x15d)]-0x7)),_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x154)](_0x468eae(0x15c))&&(_0x54c5c5[_0x468eae(0x158)]=_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x147)](0x0,_0x54c5c5['route'][_0x468eae(0x15d)]-0xb)),_0x54c5c5;}else{if(_0x182975[_0x468eae(0x14c)]('apps/')){const _0x34f45e=_0x182975['substring'](0x0,_0x182975['indexOf']('/apps/')+0x5),_0xf138f6=_0x182975[_0x468eae(0x147)](_0x34f45e[_0x468eae(0x15d)]+0x1)[_0x468eae(0x13e)](/(\\|\/)/g,'/')[_0x468eae(0x134)]('/')[0x0];if(_0x182975['startsWith'](_0x468eae(0x130)+_0xf138f6+_0x468eae(0x13b))){const _0x348927=_0x182975[_0x468eae(0x147)]((_0x34f45e+'/'+_0xf138f6+_0x468eae(0x13b))[_0x468eae(0x15d)])[_0x468eae(0x134)]('/')['filter'](_0xa334a4=>_0xa334a4&&_0xa334a4[_0x468eae(0x142)]());return _0x348927[_0x468eae(0x15d)]>0x1&&(_0x54c5c5['prefix']=_0x348927[0x0][_0x468eae(0x15a)](),_0x348927[_0x468eae(0x149)](0x0,0x1)),_0x54c5c5[_0x468eae(0x13c)]=_0xf138f6,_0x54c5c5[_0x468eae(0x158)]=('/'+_0xf138f6+'/'+_0x348927[_0x468eae(0x133)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x468eae(0x13e)](/\/{2,}/,'/')[_0x468eae(0x140)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x468eae(0x15a)]()[_0x468eae(0x13e)](/\/\-/g,'/'),_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x154)](_0x468eae(0x15f))&&(_0x54c5c5['route']=_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x147)](0x0,_0x54c5c5['route']['length']-0x7)),_0x54c5c5['route'][_0x468eae(0x154)](_0x468eae(0x15c))&&(_0x54c5c5[_0x468eae(0x158)]=_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x147)](0x0,_0x54c5c5[_0x468eae(0x158)][_0x468eae(0x15d)]-0xb)),_0x54c5c5;}throw new Error(_0x182975+_0x468eae(0x156)+_0xf138f6+_0x468eae(0x152));}}throw new Error(_0x182975+_0x468eae(0x13d));}exports[a3_0x306626(0x141)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x5987(_0x2fe4f1,_0xe4e7ed){const _0x251872=a4_0x2518();return a4_0x5987=function(_0x59870b,_0x4fb2ba){_0x59870b=_0x59870b-0x1b3;let _0x141200=_0x251872[_0x59870b];return _0x141200;},a4_0x5987(_0x2fe4f1,_0xe4e7ed);}const a4_0x4ce52f=a4_0x5987;(function(_0x34c92c,_0x54d9f6){const _0x1cd22f=a4_0x5987,_0x547385=_0x34c92c();while(!![]){try{const _0x41e078=-parseInt(_0x1cd22f(0x1b6))/0x1+-parseInt(_0x1cd22f(0x1d0))/0x2*(-parseInt(_0x1cd22f(0x1be))/0x3)+parseInt(_0x1cd22f(0x1bb))/0x4*(-parseInt(_0x1cd22f(0x1cb))/0x5)+-parseInt(_0x1cd22f(0x1b9))/0x6*(-parseInt(_0x1cd22f(0x1cc))/0x7)+-parseInt(_0x1cd22f(0x1bd))/0x8*(parseInt(_0x1cd22f(0x1c6))/0x9)+parseInt(_0x1cd22f(0x1b8))/0xa*(parseInt(_0x1cd22f(0x1b3))/0xb)+-parseInt(_0x1cd22f(0x1bf))/0xc*(-parseInt(_0x1cd22f(0x1ce))/0xd);if(_0x41e078===_0x54d9f6)break;else _0x547385['push'](_0x547385['shift']());}catch(_0x55ec4d){_0x547385['push'](_0x547385['shift']());}}}(a4_0x2518,0x361b4));function a4_0x2518(){const _0x497a0f=['filter','26vcBkOt','middleware','2NdRpsN','Validator','validate','toLowerCase','__esModule','33FIkOdT','Api','delete','200991cjgKKt','../types/action','1031420RnIWPA','61470OGNojQ','createCustomMethodDecorator','854744LktrOq','RequestMapping','152ipCBdo','1008399PsiMdS','1736940PSlHqf','utc','assign','description','@midwayjs/decorator','defineProperty','length','146367jcYgUh','middlewareIgnore','routerName','del','apimit','5sSzevk','7dzpsGX'];a4_0x2518=function(){return _0x497a0f;};return a4_0x2518();}Object[a4_0x4ce52f(0x1c4)](exports,a4_0x4ce52f(0x1d4),{'value':!![]}),exports[a4_0x4ce52f(0x1b4)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x4ce52f(0x1c3)),action_1=require(a4_0x4ce52f(0x1b7));function Api(_0x53f597,_0xe42b8c='get',_0x3345c6='/',_0x50b37c={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2d1fe4,_0x432081,_0x586454)=>{const _0x313dda=a4_0x5987;var _0x4caa21,_0x4e80c1,_0x4700d9;!_0x50b37c[_0x313dda(0x1cf)]&&(_0x50b37c['middleware']=[]);!((_0x4caa21=_0x50b37c===null||_0x50b37c===void 0x0?void 0x0:_0x50b37c[_0x313dda(0x1d2)])===null||_0x4caa21===void 0x0?void 0x0:_0x4caa21['validationOptions'])&&(_0x50b37c[_0x313dda(0x1d2)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x313dda(0x1c0)}});if(((_0x4e80c1=_0x50b37c===null||_0x50b37c===void 0x0?void 0x0:_0x50b37c[_0x313dda(0x1cf)])===null||_0x4e80c1===void 0x0?void 0x0:_0x4e80c1[_0x313dda(0x1c5)])>0x0&&((_0x4700d9=_0x50b37c===null||_0x50b37c===void 0x0?void 0x0:_0x50b37c[_0x313dda(0x1c7)])===null||_0x4700d9===void 0x0?void 0x0:_0x4700d9['length'])>0x0)for(let _0x16b0a3 in _0x50b37c[_0x313dda(0x1cf)]){_0x50b37c['middlewareIgnore']['indexOf'](_0x50b37c['middleware'][_0x16b0a3])!==-0x1&&(_0x50b37c['middleware'][_0x16b0a3]=null);}_0x50b37c[_0x313dda(0x1c8)]=_0x53f597,(0x0,validator_1[_0x313dda(0x1d1)])(_0x50b37c[_0x313dda(0x1d2)])(_0x2d1fe4,_0x432081,_0x586454),(0x0,decorator_1[_0x313dda(0x1bc)])(Object[_0x313dda(0x1c1)](_0x50b37c,{'path':_0x3345c6,'requestMethod':(_0xe42b8c==_0x313dda(0x1c9)?_0x313dda(0x1b5):_0xe42b8c)[_0x313dda(0x1d3)]()}))(_0x2d1fe4,_0x432081,_0x586454),(0x0,decorator_1['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3345c6,'method':_0x432081,'apimit':_0x50b37c[_0x313dda(0x1ca)],'routerName':_0x50b37c[_0x313dda(0x1c8)],'description':_0x50b37c[_0x313dda(0x1c2)],'middleware':(_0x50b37c[_0x313dda(0x1cf)]||[])[_0x313dda(0x1cd)](_0x1eb2fb=>!!_0x1eb2fb),'requestMethod':(_0xe42b8c==_0x313dda(0x1c9)?_0x313dda(0x1b5):_0xe42b8c)[_0x313dda(0x1d3)]()},_0x2d1fe4),(0x0,decorator_1[_0x313dda(0x1ba)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3345c6,'method':_0x432081,'apimit':_0x50b37c[_0x313dda(0x1ca)],'routerName':_0x50b37c['routerName'],'description':_0x50b37c[_0x313dda(0x1c2)],'middleware':(_0x50b37c[_0x313dda(0x1cf)]||[])[_0x313dda(0x1cd)](_0x27217e=>!!_0x27217e),'requestMethod':(_0xe42b8c=='del'?_0x313dda(0x1b5):_0xe42b8c)[_0x313dda(0x1d3)]()})(_0x2d1fe4,_0x432081,_0x586454);};}exports[a4_0x4ce52f(0x1b4)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x543fdf=a5_0x110d;function a5_0x37e3(){const _0x2316b8=['Apitest','getApplicationContext','848859TykckI','__esModule','16FTicle','130kdHXKK','162140cxagHQ','filepath','984AkhsTt','2572248sJRdIv','5899278VuKlrY','isDevelopmentEnvironment','1280WZepJr','get','4234wBLBOL','apitest','/apitest','2986029PkAIfb','@midwayjs/decorator','getConfig','@midwayjs/core','value','169374sYntcI','ApitestService','getAsync','RequestMapping','apidoc','defineProperty','../service/ApitestService'];a5_0x37e3=function(){return _0x2316b8;};return a5_0x37e3();}function a5_0x110d(_0x1b499b,_0x3cfdd2){const _0x37e3bf=a5_0x37e3();return a5_0x110d=function(_0x110d2b,_0x538cc7){_0x110d2b=_0x110d2b-0x98;let _0x2bd458=_0x37e3bf[_0x110d2b];return _0x2bd458;},a5_0x110d(_0x1b499b,_0x3cfdd2);}(function(_0x458445,_0x5c3272){const _0x485714=a5_0x110d,_0x54a5b3=_0x458445();while(!![]){try{const _0x4f4e31=-parseInt(_0x485714(0xae))/0x1+-parseInt(_0x485714(0x9d))/0x2*(parseInt(_0x485714(0xb4))/0x3)+parseInt(_0x485714(0x98))/0x4+parseInt(_0x485714(0xb1))/0x5*(-parseInt(_0x485714(0xa5))/0x6)+parseInt(_0x485714(0x99))/0x7+-parseInt(_0x485714(0xb0))/0x8*(parseInt(_0x485714(0xa0))/0x9)+-parseInt(_0x485714(0x9b))/0xa*(-parseInt(_0x485714(0xb2))/0xb);if(_0x4f4e31===_0x5c3272)break;else _0x54a5b3['push'](_0x54a5b3['shift']());}catch(_0x512499){_0x54a5b3['push'](_0x54a5b3['shift']());}}}(a5_0x37e3,0x696a9));Object[a5_0x543fdf(0xaa)](exports,a5_0x543fdf(0xaf),{'value':!![]}),exports['Apitest']=void 0x0;const decorator_1=require(a5_0x543fdf(0xa1)),core_1=require(a5_0x543fdf(0xa3)),ApitestService_1=require(a5_0x543fdf(0xab));function Apitest(_0x53561c=a5_0x543fdf(0x9f),_0x2fb8ae){return(_0x4106f1,_0x3e1a8f,_0x3e0fa5)=>{const _0xce44cf=a5_0x110d;return(0x0,decorator_1[_0xce44cf(0xa8)])({'path':_0x53561c,'requestMethod':_0xce44cf(0x9c)})(_0x4106f1,_0x3e1a8f,_0x3e0fa5),_0x3e0fa5[_0xce44cf(0xa4)]=async function(..._0xd8aed8){const _0x57edf6=_0xce44cf;var _0x51aa36;const _0x357e8c=(_0x51aa36=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x51aa36===void 0x0?void 0x0:_0x51aa36['app'];if(_0x357e8c&&_0x357e8c[_0x57edf6(0xa2)](_0x57edf6(0x9e))){const _0x10b5db=await _0x357e8c[_0x57edf6(0xad)]()['getAsync'](ApitestService_1[_0x57edf6(0xa6)]),_0x1abdc1=await _0x357e8c[_0x57edf6(0xad)]()[_0x57edf6(0xa7)](core_1['MidwayEnvironmentService']);return _0x1abdc1[_0x57edf6(0x9a)]()&&(_0x2fb8ae[_0x57edf6(0xb3)]=!![]),await _0x10b5db[_0x57edf6(0xa9)](_0x2fb8ae);}return'';},_0x3e0fa5;};}exports[a5_0x543fdf(0xac)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x5776f7=a6_0x4a38;(function(_0x359ca0,_0x10ff40){var _0x19f9b2=a6_0x4a38,_0x3d158b=_0x359ca0();while(!![]){try{var _0x9567b8=parseInt(_0x19f9b2(0xfe))/0x1+-parseInt(_0x19f9b2(0x114))/0x2+-parseInt(_0x19f9b2(0x103))/0x3+-parseInt(_0x19f9b2(0xff))/0x4+-parseInt(_0x19f9b2(0x101))/0x5+-parseInt(_0x19f9b2(0x10c))/0x6+-parseInt(_0x19f9b2(0x113))/0x7*(-parseInt(_0x19f9b2(0x111))/0x8);if(_0x9567b8===_0x10ff40)break;else _0x3d158b['push'](_0x3d158b['shift']());}catch(_0x453a0d){_0x3d158b['push'](_0x3d158b['shift']());}}}(a6_0x2ddf,0x496cf));function a6_0x2ddf(){var _0x4ba2ab=['decorate','2745695pejUDz','HEADERS_LACK','1299312MQrIHm','HEADERS_SIGNATURE','请求头信息不完整','请使用正确的设备','TIMEOUT','metadata','object','length','defineProperty','3421746BBxECf','HEADERS_CHECKCODE','checkcode验证失败','design:type','网络繁忙,请稍后重试','16306456QMJDqL','__metadata','7cqJLpR','516602QMleAo','getOwnPropertyDescriptor','HEADERS_DEVICE','ApiError','__decorate','104986HnVJtD','126828QUMdiQ'];a6_0x2ddf=function(){return _0x4ba2ab;};return a6_0x2ddf();}var __decorate=this&&this[a6_0x5776f7(0x118)]||function(_0x41406f,_0x16f313,_0x148a3d,_0xfb919d){var _0x5050db=a6_0x5776f7,_0x22e1e4=arguments[_0x5050db(0x10a)],_0x3a9d92=_0x22e1e4<0x3?_0x16f313:_0xfb919d===null?_0xfb919d=Object[_0x5050db(0x115)](_0x16f313,_0x148a3d):_0xfb919d,_0x56e687;if(typeof Reflect===_0x5050db(0x109)&&typeof Reflect['decorate']==='function')_0x3a9d92=Reflect[_0x5050db(0x100)](_0x41406f,_0x16f313,_0x148a3d,_0xfb919d);else{for(var _0x4e29c8=_0x41406f['length']-0x1;_0x4e29c8>=0x0;_0x4e29c8--)if(_0x56e687=_0x41406f[_0x4e29c8])_0x3a9d92=(_0x22e1e4<0x3?_0x56e687(_0x3a9d92):_0x22e1e4>0x3?_0x56e687(_0x16f313,_0x148a3d,_0x3a9d92):_0x56e687(_0x16f313,_0x148a3d))||_0x3a9d92;}return _0x22e1e4>0x3&&_0x3a9d92&&Object['defineProperty'](_0x16f313,_0x148a3d,_0x3a9d92),_0x3a9d92;},__metadata=this&&this[a6_0x5776f7(0x112)]||function(_0x8c8fcb,_0x456ba5){var _0x2ddd79=a6_0x5776f7;if(typeof Reflect===_0x2ddd79(0x109)&&typeof Reflect[_0x2ddd79(0x108)]==='function')return Reflect[_0x2ddd79(0x108)](_0x8c8fcb,_0x456ba5);};Object[a6_0x5776f7(0x10b)](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;function a6_0x4a38(_0x363441,_0x32bf2d){var _0x2ddf23=a6_0x2ddf();return a6_0x4a38=function(_0x4a38c5,_0xcf4e1f){_0x4a38c5=_0x4a38c5-0xfe;var _0x452d0f=_0x2ddf23[_0x4a38c5];return _0x452d0f;},a6_0x4a38(_0x363441,_0x32bf2d);}class ApiError{}ApiError[a6_0x5776f7(0x107)]=0x18a89,ApiError[a6_0x5776f7(0x102)]=0x18a8a,ApiError[a6_0x5776f7(0x116)]=0x18a8b,ApiError[a6_0x5776f7(0x10d)]=0x18a8c,ApiError[a6_0x5776f7(0x104)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x5776f7(0x110)),__metadata(a6_0x5776f7(0x10f),Object)],ApiError,a6_0x5776f7(0x107),void 0x0),__decorate([AnnErrorMsg(a6_0x5776f7(0x105)),__metadata(a6_0x5776f7(0x10f),Object)],ApiError,a6_0x5776f7(0x102),void 0x0),__decorate([AnnErrorMsg(a6_0x5776f7(0x106)),__metadata(a6_0x5776f7(0x10f),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x5776f7(0x10e)),__metadata(a6_0x5776f7(0x10f),Object)],ApiError,a6_0x5776f7(0x10d),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x5776f7(0x10f),Object)],ApiError,a6_0x5776f7(0x104),void 0x0),exports[a6_0x5776f7(0x117)]=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x5f50ee=a7_0x39d7;(function(_0x4532f0,_0x369b06){const _0x548a73=a7_0x39d7,_0x151676=_0x4532f0();while(!![]){try{const _0x2e99d7=-parseInt(_0x548a73(0x90))/0x1*(-parseInt(_0x548a73(0xa0))/0x2)+-parseInt(_0x548a73(0xbd))/0x3*(-parseInt(_0x548a73(0xc2))/0x4)+-parseInt(_0x548a73(0x76))/0x5+-parseInt(_0x548a73(0x79))/0x6+parseInt(_0x548a73(0x72))/0x7*(parseInt(_0x548a73(0x84))/0x8)+-parseInt(_0x548a73(0x7b))/0x9+parseInt(_0x548a73(0xae))/0xa;if(_0x2e99d7===_0x369b06)break;else _0x151676['push'](_0x151676['shift']());}catch(_0x37199d){_0x151676['push'](_0x151676['shift']());}}}(a7_0x5be0,0x3abb5));Object[a7_0x5f50ee(0xb2)](exports,a7_0x5f50ee(0x85),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a7_0x5f50ee(0xb0)),validator_1=require(a7_0x5f50ee(0x94)),decorator_1=require(a7_0x5f50ee(0x81)),decorator_2=require(a7_0x5f50ee(0x81)),decorator_3=require(a7_0x5f50ee(0x81)),action_1=require(a7_0x5f50ee(0x93));function getRoutes(_0x5f144e={'prefix':'/','module':![]}){const _0x367938=a7_0x5f50ee;var _0x28b699,_0x2fefb1;const _0x17ac00=(0x0,decorator_3['listModule'])(action_1[_0x367938(0xd1)]),_0x162e31={},_0xd3a846=Array[_0x367938(0x9c)](_0x5f144e[_0x367938(0xcd)]||[])?_0x5f144e[_0x367938(0xcd)]||[]:[_0x5f144e['filter']];_0x1e8131:for(const _0x2571e7 of _0x17ac00){let _0x4855ed=(0x0,decorator_3[_0x367938(0x7f)])(action_1[_0x367938(0xd1)],_0x2571e7),_0x148f21=(0x0,decorator_3[_0x367938(0x7f)])(action_1[_0x367938(0x75)],_0x2571e7);if(_0x4855ed&&_0x148f21){let _0x3ff4df=_0x4855ed[_0x367938(0x9a)],_0x5903bb={};if(_0x5f144e[_0x367938(0xad)]&&(0x0,lodash_1[_0x367938(0x92)])(_0x4855ed,_0x367938(0xad),![])!=_0x5f144e[_0x367938(0xad)])continue _0x1e8131;else{if(_0x5f144e[_0x367938(0xad)]===![]&&!!(0x0,lodash_1[_0x367938(0x92)])(_0x4855ed,_0x367938(0xad),null))continue _0x1e8131;}if(_0x5f144e[_0x367938(0x9a)]&&!_0x3ff4df[_0x367938(0xa6)](_0x5f144e['prefix']))continue _0x1e8131;_0x3ff4df!=='/'?(_0x5903bb['summary']=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xd2)][_0x367938(0xd0)])||(/^\//['test'](_0x3ff4df)?_0x3ff4df['split']('/')[0x1]:_0x3ff4df),_0x5903bb[_0x367938(0x89)]=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xd2)][_0x367938(0x89)])||_0x5903bb['summary'],_0x5903bb[_0x367938(0xc8)]=[]):(_0x5903bb['summary']=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed['routerOptions'][_0x367938(0xd0)])||'default',_0x5903bb[_0x367938(0x89)]=(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xd2)][_0x367938(0x89)])||'',_0x5903bb[_0x367938(0xc8)]=[]);_0x5f144e[_0x367938(0xaf)]&&(_0x5903bb['filepath']=_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xaf)]);(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed[_0x367938(0xcc)])&&(_0x5903bb[_0x367938(0x9a)]=_0x4855ed['pprefix']);(_0x4855ed===null||_0x4855ed===void 0x0?void 0x0:_0x4855ed['module'])&&(_0x5903bb[_0x367938(0xad)]=_0x4855ed[_0x367938(0xad)]);let _0x78d365=(0x0,decorator_3[_0x367938(0x7f)])(decorator_2[_0x367938(0xa5)],_0x2571e7)||{};if(typeof _0x148f21[Symbol[_0x367938(0x7e)]]===_0x367938(0x8a))for(let _0x203430 of _0x148f21){let _0x5d55b4={};_0x5d55b4[_0x367938(0x86)]=_0x203430[_0x367938(0x77)],_0x5d55b4[_0x367938(0xc4)]=(_0x3ff4df+_0x203430['path'])[_0x367938(0x82)](/\/{1,}/,'/'),_0x5d55b4[_0x367938(0xa4)]=(_0x203430===null||_0x203430===void 0x0?void 0x0:_0x203430[_0x367938(0xc9)])||_0x5903bb['summary']||_0x367938(0xc5),_0x5d55b4['description']=(_0x203430===null||_0x203430===void 0x0?void 0x0:_0x203430['description'])||'',_0x5d55b4[_0x367938(0xaa)]=[];if(!(0x0,lodash_1[_0x367938(0xa6)])(_0x5d55b4[_0x367938(0xc4)],_0x367938(0xbe))&&!(0x0,lodash_1[_0x367938(0xa6)])(_0x5d55b4[_0x367938(0xc4)],_0x367938(0xb7))&&_0xd3a846[_0x367938(0xa3)](_0x5d55b4[_0x367938(0xc4)])===-0x1){if(!(_0x5f144e===null||_0x5f144e===void 0x0?void 0x0:_0x5f144e[_0x367938(0x8c)])){let _0x263e96=(0x0,decorator_3[_0x367938(0xa7)])(new _0x2571e7(),_0x203430['method']);for(const _0xade88e in _0x263e96){let _0x300414=(_0x28b699=_0x78d365[_0x203430[_0x367938(0x86)]])===null||_0x28b699===void 0x0?void 0x0:_0x28b699['find'](_0x306729=>_0x306729[_0x367938(0xa8)]==_0xade88e&&_0x306729[_0x367938(0xd3)]===decorator_2[_0x367938(0x9b)]&&(_0x306729===null||_0x306729===void 0x0?void 0x0:_0x306729['metadata']));if(_0x300414===null||_0x300414===void 0x0?void 0x0:_0x300414['metadata']){let _0x4dc549=convertTypeToString(_0x300414[_0x367938(0xa9)][_0x367938(0x8b)]||0x0);if([_0x367938(0x80),_0x367938(0xc6)]['indexOf'](_0x4dc549)!=-0x1&&_0x300414['metadata'][_0x367938(0xcb)][_0x367938(0xa3)](':')==-0x1&&!_0x5d55b4[_0x367938(0xaa)][_0x367938(0x91)](_0x128086=>_0x128086['key']==_0x300414[_0x367938(0xa9)][_0x367938(0xcb)]))_0x5d55b4[_0x367938(0xaa)][_0x367938(0x7c)]({'key':_0x300414[_0x367938(0xa9)][_0x367938(0xcb)],'title':_0x300414[_0x367938(0xa9)][_0x367938(0xcb)],'type':convertSchemaType(_0x263e96[_0x300414[_0x367938(0xa8)]]['name']),'required':![],'default':'','desc':''});else{if(_0x4dc549==_0x367938(0x87)){let _0x2179be=((_0x2fefb1=_0x300414===null||_0x300414===void 0x0?void 0x0:_0x300414[_0x367938(0xa9)])===null||_0x2fefb1===void 0x0?void 0x0:_0x2fefb1[_0x367938(0xcb)])||_0x367938(0x87);_0x2179be['indexOf'](':')==-0x1&&!_0x5d55b4[_0x367938(0xaa)][_0x367938(0x91)](_0x51c27d=>_0x51c27d[_0x367938(0xd3)]==_0x2179be&&_0x51c27d[_0x367938(0x8b)]==_0x367938(0x87))&&_0x5d55b4[_0x367938(0xaa)][_0x367938(0x7c)]({'key':_0x2179be,'title':_0x367938(0x73)+_0x2179be,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x35ba4c=(0x0,decorator_3[_0x367938(0x7a)])(validator_1['RULES_KEY'],_0x263e96[_0xade88e]);_0x35ba4c&&_0x5d55b4[_0x367938(0xaa)][_0x367938(0x7c)](...getJoiRequest(_0x35ba4c));}}}_0x5903bb[_0x367938(0xc8)][_0x367938(0x7c)](_0x5d55b4);}}if(_0x5903bb[_0x367938(0xc8)][_0x367938(0xa1)]>0x0){let _0x1298f3=_0x162e31[_0x3ff4df];_0x1298f3?(_0x1298f3[_0x367938(0xa4)]!=_0x5903bb['summary']&&(_0x1298f3[_0x367938(0xa4)]=_0x1298f3[_0x367938(0xa4)]+','+_0x5903bb[_0x367938(0xa4)]),_0x1298f3[_0x367938(0x89)]!=_0x5903bb[_0x367938(0x89)]&&(_0x1298f3[_0x367938(0x89)]=_0x1298f3[_0x367938(0x89)]+','+_0x5903bb[_0x367938(0x89)]),_0x1298f3[_0x367938(0xc8)]=_0x1298f3[_0x367938(0xc8)][_0x367938(0xb5)](_0x5903bb[_0x367938(0xc8)]),_0x162e31[_0x3ff4df]=_0x1298f3):_0x162e31[_0x3ff4df]=_0x5903bb;}}}return _0x162e31;}function a7_0x5be0(){const _0x3f4211=['route','default','body','string','routes','routerName','args','propertyData','pprefix','filter','name','flags.label','tagName','ACTION_KEY','routerOptions','key','7EwlCEd','文件上传-','File','ACTION_ROUTE_KEY','568530nedfwK','requestMethod','allow','698088vRXAYY','getClassExtendedMetadata','2556738NzckDf','push','Number','iterator','getClassMetadata','query','@midwayjs/decorator','replace','FILESSTREAM','244072uJupUY','__esModule','method','file','limit','description','function','type','noreq','HEADERS','log','flags.description','2BULDLl','find','get','../types/action','@anncic-api/validator','flags.default','number','title','FIELDS','describe','prefix','WEB_ROUTER_PARAM_KEY','isArray','PARAM','array','rules','85516qYpniF','length','object','indexOf','summary','INJECT_CUSTOM_PARAM','startsWith','getMethodParamTypes','parameterIndex','metadata','request','boolean','join','module','2246900vXqwLB','filepath','lodash','QUERY','defineProperty','只允许:[','Object','concat','FILESTREAM','/static/apitest','items','keys','required','String','getRoutes','6plVWnu','static/apitest','min','-array','RouteParamTypes','827972KlmZts','max'];a7_0x5be0=function(){return _0x3f4211;};return a7_0x5be0();}exports[a7_0x5f50ee(0xbc)]=getRoutes;function getJoiRequest(_0x2e553d){const _0x274eb9=a7_0x5f50ee,_0x35dfd5=[];for(let _0x3e3e33 in _0x2e553d){const _0x350655={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1f6d08=typeof _0x2e553d[_0x3e3e33]['describe']==_0x274eb9(0x8a)?_0x2e553d[_0x3e3e33][_0x274eb9(0x99)]():_0x2e553d[_0x3e3e33];_0x350655[_0x274eb9(0xd3)]=_0x3e3e33,_0x350655[_0x274eb9(0x8b)]=_0x1f6d08[_0x274eb9(0x8b)],_0x350655[_0x274eb9(0x97)]=(0x0,lodash_1['get'])(_0x1f6d08,_0x274eb9(0xcf),_0x3e3e33),_0x350655[_0x274eb9(0xc5)]=(0x0,lodash_1[_0x274eb9(0x92)])(_0x1f6d08,_0x274eb9(0x95),''),_0x350655['required']=(0x0,lodash_1['get'])(_0x1f6d08,'flags.presence','')==_0x274eb9(0xba),_0x350655[_0x274eb9(0x89)]=(0x0,lodash_1[_0x274eb9(0x92)])(_0x1f6d08,_0x274eb9(0x8f),'');if(_0x1f6d08[_0x274eb9(0x8b)]=='object')_0x350655['children']=getJoiRequest(_0x1f6d08[_0x274eb9(0xb9)]);else _0x1f6d08[_0x274eb9(0x8b)]==_0x274eb9(0x9e)&&_0x1f6d08[_0x274eb9(0xb8)]&&Array['isArray'](_0x1f6d08['items'])&&_0x1f6d08[_0x274eb9(0xb8)][0x0]&&console[_0x274eb9(0x8e)](_0x3e3e33+_0x274eb9(0xc0),_0x1f6d08);_0x1f6d08[_0x274eb9(0x78)]&&Array[_0x274eb9(0x9c)](_0x1f6d08[_0x274eb9(0x78)])&&_0x1f6d08['allow'][_0x274eb9(0xa1)]>0x0&&(_0x350655[_0x274eb9(0x89)]=_0x274eb9(0xb3)+_0x1f6d08['allow'][_0x274eb9(0xac)](',')+'];'+_0x350655['description']);if(_0x350655[_0x274eb9(0xd3)]&&_0x350655['type']){const _0x57f2fc={};for(const _0x5bca0f of _0x1f6d08['rules']||[]){if(_0x5bca0f[_0x274eb9(0xce)]===_0x274eb9(0xbf)&&_0x5bca0f[_0x274eb9(0xca)])_0x57f2fc[_0x274eb9(0xbf)]=_0x5bca0f['args'][_0x274eb9(0x88)];else _0x5bca0f['name']==='max'&&(_0x57f2fc[_0x274eb9(0xc3)]=_0x5bca0f[_0x274eb9(0xca)][_0x274eb9(0x88)]);}_0x350655[_0x274eb9(0x9f)]=_0x57f2fc;}_0x350655[_0x274eb9(0xd3)]&&_0x350655['title']&&_0x35dfd5[_0x274eb9(0x7c)](_0x350655);}return _0x35dfd5;}function convertSchemaType(_0x2c2c36){const _0x38e43f=a7_0x5f50ee;switch(_0x2c2c36){case _0x38e43f(0xb4):return _0x38e43f(0xa2);case'Boolean':return _0x38e43f(0xab);case _0x38e43f(0x7d):return _0x38e43f(0x96);case _0x38e43f(0xbb):return'string';case _0x38e43f(0x74):return _0x38e43f(0x87);default:return _0x38e43f(0xc7);}}function a7_0x39d7(_0x2c9890,_0x59bc04){const _0x5be009=a7_0x5be0();return a7_0x39d7=function(_0x39d7eb,_0x2e6152){_0x39d7eb=_0x39d7eb-0x72;let _0x36783=_0x5be009[_0x39d7eb];return _0x36783;},a7_0x39d7(_0x2c9890,_0x59bc04);}function convertTypeToString(_0x1d6ebf){const _0x5c5be8=a7_0x5f50ee;switch(_0x1d6ebf){case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0x8d)]:return'header';case decorator_1['RouteParamTypes'][_0x5c5be8(0xb1)]:return _0x5c5be8(0x80);case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0x9d)]:return'path';case decorator_1[_0x5c5be8(0xc1)]['BODY']:return _0x5c5be8(0xc6);case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0x98)]:case decorator_1['RouteParamTypes'][_0x5c5be8(0x83)]:case decorator_1[_0x5c5be8(0xc1)][_0x5c5be8(0xb6)]:return'file';default:return'header';}}
|
|
1
|
+
'use strict';const a7_0x2072c1=a7_0x5380;(function(_0xde8001,_0xeea62a){const _0x40b81f=a7_0x5380,_0x506704=_0xde8001();while(!![]){try{const _0x52dadf=-parseInt(_0x40b81f(0x14c))/0x1+-parseInt(_0x40b81f(0x191))/0x2+-parseInt(_0x40b81f(0x19e))/0x3+parseInt(_0x40b81f(0x17a))/0x4*(-parseInt(_0x40b81f(0x151))/0x5)+parseInt(_0x40b81f(0x15f))/0x6+parseInt(_0x40b81f(0x18c))/0x7*(parseInt(_0x40b81f(0x169))/0x8)+parseInt(_0x40b81f(0x190))/0x9;if(_0x52dadf===_0xeea62a)break;else _0x506704['push'](_0x506704['shift']());}catch(_0x532c9f){_0x506704['push'](_0x506704['shift']());}}}(a7_0x2a30,0x57a77));function a7_0x2a30(){const _0x25b1d1=['concat','test','routerOptions','summary','object','required','items','max','metadata','body','301cOqlDM','path','flags.default','limit','11503125MRoIch','356762yRkbCi','getRoutes','@midwayjs/decorator','get','RouteParamTypes','query','description','routes','push','filepath','文件上传-','args','INJECT_CUSTOM_PARAM','1678824jvnGqe','requestMethod','/static/apitest','__esModule','String','lodash','find','WEB_ROUTER_PARAM_KEY','flags.description','Number','function','name','478951rBnSUM','allow','module','../types/action','pprefix','54440gPBNcc','propertyData','title','file','@anncic-api/validator','getClassExtendedMetadata','flags.label','HEADERS','BODY','indexOf','rules','children','noreq','route','2329578QriIMJ','Boolean','method','flags.presence','length','string','getClassMetadata','keys','parameterIndex','describe','96616WRrTWg','array','key','filter','header','isArray','boolean','File','QUERY','join','iterator','startsWith','min','FILESTREAM','prefix','split','default','224XJHRju','replace','log','request','type','number','tagName','defineProperty'];a7_0x2a30=function(){return _0x25b1d1;};return a7_0x2a30();}Object[a7_0x2072c1(0x181)](exports,a7_0x2072c1(0x1a1),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a7_0x2072c1(0x1a3)),validator_1=require(a7_0x2072c1(0x155)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a7_0x2072c1(0x193)),decorator_3=require(a7_0x2072c1(0x193)),action_1=require(a7_0x2072c1(0x14f));function a7_0x5380(_0x2f298a,_0x55b203){const _0x2a305d=a7_0x2a30();return a7_0x5380=function(_0x5380cd,_0x1a5393){_0x5380cd=_0x5380cd-0x146;let _0x5c806b=_0x2a305d[_0x5380cd];return _0x5c806b;},a7_0x5380(_0x2f298a,_0x55b203);}function getRoutes(_0x850cfe={'prefix':'/','module':![]}){const _0x497373=a7_0x2072c1;var _0x21126b,_0x47c19e;const _0x2684a3=(0x0,decorator_3['listModule'])(action_1['ACTION_KEY']),_0x235654={},_0x2c93a1=Array['isArray'](_0x850cfe['filter']||[])?_0x850cfe[_0x497373(0x16c)]||[]:[_0x850cfe[_0x497373(0x16c)]];_0x5c6fec:for(const _0x3a68f4 of _0x2684a3){let _0x44381d=(0x0,decorator_3[_0x497373(0x165)])(action_1['ACTION_KEY'],_0x3a68f4),_0x1e105f=(0x0,decorator_3[_0x497373(0x165)])(action_1['ACTION_ROUTE_KEY'],_0x3a68f4);if(_0x44381d&&_0x1e105f){let _0x2897d8=_0x44381d[_0x497373(0x177)],_0x48f816={};if(_0x850cfe['module']&&(0x0,lodash_1['get'])(_0x44381d,_0x497373(0x14e),![])!=_0x850cfe[_0x497373(0x14e)])continue _0x5c6fec;else{if(_0x850cfe['module']===![]&&!!(0x0,lodash_1[_0x497373(0x194)])(_0x44381d,'module',null))continue _0x5c6fec;}if(_0x850cfe[_0x497373(0x177)]&&!_0x2897d8['startsWith'](_0x850cfe[_0x497373(0x177)]))continue _0x5c6fec;_0x2897d8!=='/'?(_0x48f816['summary']=(_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d[_0x497373(0x184)][_0x497373(0x180)])||(/^\//[_0x497373(0x183)](_0x2897d8)?_0x2897d8[_0x497373(0x178)]('/')[0x1]:_0x2897d8),_0x48f816[_0x497373(0x197)]=(_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d[_0x497373(0x184)][_0x497373(0x197)])||_0x48f816['summary'],_0x48f816[_0x497373(0x198)]=[]):(_0x48f816['summary']=(_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d[_0x497373(0x184)]['tagName'])||_0x497373(0x179),_0x48f816[_0x497373(0x197)]=(_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d['routerOptions'][_0x497373(0x197)])||'',_0x48f816[_0x497373(0x198)]=[]);_0x850cfe[_0x497373(0x19a)]&&(_0x48f816[_0x497373(0x19a)]=_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d[_0x497373(0x19a)]);(_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d['pprefix'])&&(_0x48f816[_0x497373(0x177)]=_0x44381d[_0x497373(0x150)]);(_0x44381d===null||_0x44381d===void 0x0?void 0x0:_0x44381d['module'])&&(_0x48f816[_0x497373(0x14e)]=_0x44381d[_0x497373(0x14e)]);let _0x50f53d=(0x0,decorator_3[_0x497373(0x165)])(decorator_2[_0x497373(0x19d)],_0x3a68f4)||{};if(typeof _0x1e105f[Symbol[_0x497373(0x173)]]===_0x497373(0x14a))for(let _0x1f807c of _0x1e105f){let _0x364367={};_0x364367[_0x497373(0x161)]=_0x1f807c[_0x497373(0x19f)],_0x364367['route']=(_0x2897d8+_0x1f807c[_0x497373(0x18d)])[_0x497373(0x17b)](/\/{1,}/,'/'),_0x364367[_0x497373(0x185)]=(_0x1f807c===null||_0x1f807c===void 0x0?void 0x0:_0x1f807c['routerName'])||_0x48f816[_0x497373(0x185)]||_0x497373(0x179),_0x364367[_0x497373(0x197)]=(_0x1f807c===null||_0x1f807c===void 0x0?void 0x0:_0x1f807c['description'])||'',_0x364367[_0x497373(0x17d)]=[];if(!(0x0,lodash_1[_0x497373(0x174)])(_0x364367['route'],'static/apitest')&&!(0x0,lodash_1[_0x497373(0x174)])(_0x364367[_0x497373(0x15e)],_0x497373(0x1a0))&&_0x2c93a1[_0x497373(0x15a)](_0x364367[_0x497373(0x15e)])===-0x1){if(!(_0x850cfe===null||_0x850cfe===void 0x0?void 0x0:_0x850cfe[_0x497373(0x15d)])){let _0x59949c=(0x0,decorator_3['getMethodParamTypes'])(new _0x3a68f4(),_0x1f807c[_0x497373(0x161)]);for(const _0x4d635c in _0x59949c){let _0x5a262f=(_0x21126b=_0x50f53d[_0x1f807c['method']])===null||_0x21126b===void 0x0?void 0x0:_0x21126b[_0x497373(0x146)](_0x457623=>_0x457623[_0x497373(0x167)]==_0x4d635c&&_0x457623[_0x497373(0x16b)]===decorator_2[_0x497373(0x147)]&&(_0x457623===null||_0x457623===void 0x0?void 0x0:_0x457623[_0x497373(0x18a)]));if(_0x5a262f===null||_0x5a262f===void 0x0?void 0x0:_0x5a262f[_0x497373(0x18a)]){let _0x5ea1e7=convertTypeToString(_0x5a262f['metadata']['type']||0x0);if([_0x497373(0x196),_0x497373(0x18b)]['indexOf'](_0x5ea1e7)!=-0x1&&_0x5a262f['metadata'][_0x497373(0x152)][_0x497373(0x15a)](':')==-0x1&&!_0x364367['request'][_0x497373(0x146)](_0x53e7ea=>_0x53e7ea[_0x497373(0x16b)]==_0x5a262f[_0x497373(0x18a)][_0x497373(0x152)]))_0x364367['request'][_0x497373(0x199)]({'key':_0x5a262f['metadata'][_0x497373(0x152)],'title':_0x5a262f[_0x497373(0x18a)][_0x497373(0x152)],'type':convertSchemaType(_0x59949c[_0x5a262f['parameterIndex']][_0x497373(0x14b)]),'required':![],'default':'','desc':''});else{if(_0x5ea1e7==_0x497373(0x154)){let _0x5bcccb=((_0x47c19e=_0x5a262f===null||_0x5a262f===void 0x0?void 0x0:_0x5a262f[_0x497373(0x18a)])===null||_0x47c19e===void 0x0?void 0x0:_0x47c19e[_0x497373(0x152)])||_0x497373(0x154);_0x5bcccb[_0x497373(0x15a)](':')==-0x1&&!_0x364367['request']['find'](_0x141e81=>_0x141e81[_0x497373(0x16b)]==_0x5bcccb&&_0x141e81[_0x497373(0x17e)]==_0x497373(0x154))&&_0x364367['request'][_0x497373(0x199)]({'key':_0x5bcccb,'title':_0x497373(0x19b)+_0x5bcccb,'type':_0x497373(0x154),'required':!![],'default':'','desc':''});}}}else{const _0x213eb8=(0x0,decorator_3[_0x497373(0x156)])(validator_1['RULES_KEY'],_0x59949c[_0x4d635c]);_0x213eb8&&_0x364367['request']['push'](...getJoiRequest(_0x213eb8));}}}_0x48f816[_0x497373(0x198)][_0x497373(0x199)](_0x364367);}}if(_0x48f816[_0x497373(0x198)][_0x497373(0x163)]>0x0){let _0x5ab0b0=_0x235654[_0x2897d8];_0x5ab0b0?(_0x5ab0b0[_0x497373(0x185)]!=_0x48f816[_0x497373(0x185)]&&(_0x5ab0b0['summary']=_0x5ab0b0['summary']+','+_0x48f816[_0x497373(0x185)]),_0x5ab0b0[_0x497373(0x197)]!=_0x48f816['description']&&(_0x5ab0b0[_0x497373(0x197)]=_0x5ab0b0['description']+','+_0x48f816['description']),_0x5ab0b0[_0x497373(0x198)]=_0x5ab0b0[_0x497373(0x198)][_0x497373(0x182)](_0x48f816[_0x497373(0x198)]),_0x235654[_0x2897d8]=_0x5ab0b0):_0x235654[_0x2897d8]=_0x48f816;}}}return _0x235654;}exports[a7_0x2072c1(0x192)]=getRoutes;function getJoiRequest(_0x168cc3){const _0x21ec47=a7_0x2072c1,_0x427929=[];for(let _0xde9d0e in _0x168cc3){const _0x1e9619={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x349ae0=typeof _0x168cc3[_0xde9d0e][_0x21ec47(0x168)]=='function'?_0x168cc3[_0xde9d0e]['describe']():_0x168cc3[_0xde9d0e];_0x1e9619[_0x21ec47(0x16b)]=_0xde9d0e,_0x1e9619[_0x21ec47(0x17e)]=_0x349ae0[_0x21ec47(0x17e)],_0x1e9619[_0x21ec47(0x153)]=(0x0,lodash_1['get'])(_0x349ae0,_0x21ec47(0x157),_0xde9d0e),_0x1e9619[_0x21ec47(0x179)]=(0x0,lodash_1[_0x21ec47(0x194)])(_0x349ae0,_0x21ec47(0x18e),''),_0x1e9619['required']=(0x0,lodash_1[_0x21ec47(0x194)])(_0x349ae0,_0x21ec47(0x162),'')==_0x21ec47(0x187),_0x1e9619['description']=(0x0,lodash_1['get'])(_0x349ae0,_0x21ec47(0x148),'');if(_0x349ae0['type']==_0x21ec47(0x186))_0x1e9619[_0x21ec47(0x15c)]=getJoiRequest(_0x349ae0[_0x21ec47(0x166)]);else _0x349ae0[_0x21ec47(0x17e)]==_0x21ec47(0x16a)&&_0x349ae0[_0x21ec47(0x188)]&&Array[_0x21ec47(0x16e)](_0x349ae0[_0x21ec47(0x188)])&&_0x349ae0['items'][0x0]&&console[_0x21ec47(0x17c)](_0xde9d0e+'-array',_0x349ae0);_0x349ae0[_0x21ec47(0x14d)]&&Array['isArray'](_0x349ae0[_0x21ec47(0x14d)])&&_0x349ae0[_0x21ec47(0x14d)][_0x21ec47(0x163)]>0x0&&(_0x1e9619[_0x21ec47(0x197)]='只允许:['+_0x349ae0['allow'][_0x21ec47(0x172)](',')+'];'+_0x1e9619[_0x21ec47(0x197)]);if(_0x1e9619[_0x21ec47(0x16b)]&&_0x1e9619[_0x21ec47(0x17e)]){const _0xf173f0={};for(const _0xf4bc49 of _0x349ae0[_0x21ec47(0x15b)]||[]){if(_0xf4bc49['name']==='min'&&_0xf4bc49[_0x21ec47(0x19c)])_0xf173f0[_0x21ec47(0x175)]=_0xf4bc49[_0x21ec47(0x19c)][_0x21ec47(0x18f)];else _0xf4bc49[_0x21ec47(0x14b)]==='max'&&(_0xf173f0[_0x21ec47(0x189)]=_0xf4bc49[_0x21ec47(0x19c)][_0x21ec47(0x18f)]);}_0x1e9619[_0x21ec47(0x15b)]=_0xf173f0;}_0x1e9619[_0x21ec47(0x16b)]&&_0x1e9619[_0x21ec47(0x153)]&&_0x427929[_0x21ec47(0x199)](_0x1e9619);}return _0x427929;}function convertSchemaType(_0x357eee){const _0x568b14=a7_0x2072c1;switch(_0x357eee){case'Object':return _0x568b14(0x186);case _0x568b14(0x160):return _0x568b14(0x16f);case _0x568b14(0x149):return _0x568b14(0x17f);case _0x568b14(0x1a2):return _0x568b14(0x164);case _0x568b14(0x170):return'file';default:return _0x568b14(0x164);}}function convertTypeToString(_0x33b5ad){const _0x5368d6=a7_0x2072c1;switch(_0x33b5ad){case decorator_1[_0x5368d6(0x195)][_0x5368d6(0x158)]:return _0x5368d6(0x16d);case decorator_1[_0x5368d6(0x195)][_0x5368d6(0x171)]:return'query';case decorator_1[_0x5368d6(0x195)]['PARAM']:return _0x5368d6(0x18d);case decorator_1[_0x5368d6(0x195)][_0x5368d6(0x159)]:return _0x5368d6(0x18b);case decorator_1[_0x5368d6(0x195)]['FIELDS']:case decorator_1[_0x5368d6(0x195)]['FILESSTREAM']:case decorator_1['RouteParamTypes'][_0x5368d6(0x176)]:return _0x5368d6(0x154);default:return _0x5368d6(0x16d);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a8_0x55d630=a8_0x1a34;(function(_0x5679e6,_0x1a8a16){var _0x2d50f9=a8_0x1a34,_0x122f41=_0x5679e6();while(!![]){try{var _0x160e0f=-parseInt(_0x2d50f9(0x115))/0x1+-parseInt(_0x2d50f9(0x129))/0x2*(parseInt(_0x2d50f9(0x12e))/0x3)+-parseInt(_0x2d50f9(0x121))/0x4*(-parseInt(_0x2d50f9(0x13b))/0x5)+parseInt(_0x2d50f9(0x10d))/0x6+-parseInt(_0x2d50f9(0x13f))/0x7+-parseInt(_0x2d50f9(0x116))/0x8+-parseInt(_0x2d50f9(0x112))/0x9*(-parseInt(_0x2d50f9(0x124))/0xa);if(_0x160e0f===_0x1a8a16)break;else _0x122f41['push'](_0x122f41['shift']());}catch(_0x2ff61e){_0x122f41['push'](_0x122f41['shift']());}}}(a8_0x9e61,0x5ff78));function a8_0x9e61(){var _0x37717b=['Configuration','./service/ApitestService','ValidatorService','138862YaTzAl','configurable','Body','Api','ScopeEnum','6mdCMeB','EventService','Provide','prototype','Files','@midwayjs/decorator','defineProperty','ExcelService','./helper/getRoutes','App','ApiError','Config','Headers','5vyUTXC','Logger','Param','./service/ExcelService','1514436GKQlCd','Apitest','ValidatorError','Inject','getRoutes','writable','CacheService','./decorator/ActionApi','ApiService','File','Fields','2718762gaGnop','Action','QueueService','getOwnPropertyDescriptor','hasOwnProperty','72NmVWLG','@anncic-api/cache','Init','439501ppYsKs','6269992KMbUeQ','__createBinding','CustomConfiguration','./decorator/ActionApitest','./service/ApiService','default','./exception/ApiError','./types/common','./configuration','__esModule','@anncic-api/event','182964ecAWPl','Scope','Query','1840840WbyOSZ','__exportStar'];a8_0x9e61=function(){return _0x37717b;};return a8_0x9e61();}var __createBinding=this&&this[a8_0x55d630(0x117)]||(Object['create']?function(_0x2d3ae0,_0x3a9188,_0x25728f,_0x393b14){var _0x41f225=a8_0x55d630;if(_0x393b14===undefined)_0x393b14=_0x25728f;var _0x4e18a1=Object[_0x41f225(0x110)](_0x3a9188,_0x25728f);(!_0x4e18a1||('get'in _0x4e18a1?!_0x3a9188[_0x41f225(0x11f)]:_0x4e18a1[_0x41f225(0x144)]||_0x4e18a1[_0x41f225(0x12a)]))&&(_0x4e18a1={'enumerable':!![],'get':function(){return _0x3a9188[_0x25728f];}}),Object[_0x41f225(0x134)](_0x2d3ae0,_0x393b14,_0x4e18a1);}:function(_0x2fc4dc,_0x87a9fa,_0x160802,_0x3c9148){if(_0x3c9148===undefined)_0x3c9148=_0x160802;_0x2fc4dc[_0x3c9148]=_0x87a9fa[_0x160802];}),__exportStar=this&&this[a8_0x55d630(0x125)]||function(_0x4cca34,_0x49efef){var _0x42dfdf=a8_0x55d630;for(var _0x133a63 in _0x4cca34)if(_0x133a63!==_0x42dfdf(0x11b)&&!Object[_0x42dfdf(0x131)][_0x42dfdf(0x111)]['call'](_0x49efef,_0x133a63))__createBinding(_0x49efef,_0x4cca34,_0x133a63);};Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x11f),{'value':!![]}),exports[a8_0x55d630(0x12d)]=exports[a8_0x55d630(0x122)]=exports[a8_0x55d630(0x142)]=exports['Provide']=exports[a8_0x55d630(0x13c)]=exports[a8_0x55d630(0x139)]=exports[a8_0x55d630(0x137)]=exports[a8_0x55d630(0x114)]=exports[a8_0x55d630(0x13a)]=exports[a8_0x55d630(0x123)]=exports[a8_0x55d630(0x13d)]=exports['Body']=exports[a8_0x55d630(0x10c)]=exports['Files']=exports[a8_0x55d630(0x10b)]=exports[a8_0x55d630(0x126)]=exports['ValidatorService']=exports['ValidatorError']=exports['ExcelService']=exports[a8_0x55d630(0x10a)]=exports[a8_0x55d630(0x12f)]=exports['CacheService']=exports[a8_0x55d630(0x10f)]=exports['ApiError']=exports[a8_0x55d630(0x140)]=exports['Action']=exports[a8_0x55d630(0x12c)]=exports[a8_0x55d630(0x143)]=void 0x0,__exportStar(require(a8_0x55d630(0x11d)),exports),__exportStar(require(a8_0x55d630(0x127)),exports);var getRoutes_1=require(a8_0x55d630(0x136));Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x143),{'enumerable':!![],'get':function(){var _0x1bcfc3=a8_0x55d630;return getRoutes_1[_0x1bcfc3(0x143)];}});var ActionApi_1=require(a8_0x55d630(0x109));Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x12c),{'enumerable':!![],'get':function(){var _0x89a465=a8_0x55d630;return ActionApi_1[_0x89a465(0x12c)];}});var Action_1=require('./decorator/Action');Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x10e),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a8_0x55d630(0x119));Object[a8_0x55d630(0x134)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x378ea5=a8_0x55d630;return ActionApitest_1[_0x378ea5(0x140)];}});var ApiError_1=require(a8_0x55d630(0x11c));Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x138),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require('@midwayjs/task');Object['defineProperty'](exports,a8_0x55d630(0x10f),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a8_0x55d630(0x113));Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x145),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a8_0x55d630(0x120));Object[a8_0x55d630(0x134)](exports,'EventService',{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a8_0x55d630(0x11a));Object['defineProperty'](exports,a8_0x55d630(0x10a),{'enumerable':!![],'get':function(){var _0x380ac8=a8_0x55d630;return ApiService_1[_0x380ac8(0x10a)];}});var ExcelService_1=require(a8_0x55d630(0x13e));Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x135),{'enumerable':!![],'get':function(){var _0x444cff=a8_0x55d630;return ExcelService_1[_0x444cff(0x135)];}});var validator_1=require('@anncic-api/validator');Object[a8_0x55d630(0x134)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x25914e=a8_0x55d630;return validator_1[_0x25914e(0x141)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x128),{'enumerable':!![],'get':function(){var _0x4e7526=a8_0x55d630;return validator_1[_0x4e7526(0x128)];}});function a8_0x1a34(_0x42e126,_0x483408){var _0x9e61ac=a8_0x9e61();return a8_0x1a34=function(_0x1a347e,_0xaf936a){_0x1a347e=_0x1a347e-0x109;var _0x2931f2=_0x9e61ac[_0x1a347e];return _0x2931f2;},a8_0x1a34(_0x42e126,_0x483408);}var configuration_1=require(a8_0x55d630(0x11e));Object[a8_0x55d630(0x134)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0xedcad5=a8_0x55d630;return configuration_1[_0xedcad5(0x118)];}});var decorator_1=require(a8_0x55d630(0x133));Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x132),{'enumerable':!![],'get':function(){var _0x249e01=a8_0x55d630;return decorator_1[_0x249e01(0x132)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x10c),{'enumerable':!![],'get':function(){var _0x1a330c=a8_0x55d630;return decorator_1[_0x1a330c(0x10c)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x12b),{'enumerable':!![],'get':function(){var _0x42d510=a8_0x55d630;return decorator_1[_0x42d510(0x12b)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x13d),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object['defineProperty'](exports,a8_0x55d630(0x123),{'enumerable':!![],'get':function(){var _0x27fc39=a8_0x55d630;return decorator_1[_0x27fc39(0x123)];}}),Object[a8_0x55d630(0x134)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x4f2cc3=a8_0x55d630;return decorator_1[_0x4f2cc3(0x13a)];}}),Object[a8_0x55d630(0x134)](exports,'Init',{'enumerable':!![],'get':function(){var _0x5a1686=a8_0x55d630;return decorator_1[_0x5a1686(0x114)];}});var decorator_2=require(a8_0x55d630(0x133));Object[a8_0x55d630(0x134)](exports,'App',{'enumerable':!![],'get':function(){var _0x4bd4f1=a8_0x55d630;return decorator_2[_0x4bd4f1(0x137)];}}),Object[a8_0x55d630(0x134)](exports,'Config',{'enumerable':!![],'get':function(){return decorator_2['Config'];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x13c),{'enumerable':!![],'get':function(){var _0x4910c4=a8_0x55d630;return decorator_2[_0x4910c4(0x13c)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x130),{'enumerable':!![],'get':function(){var _0x49c66e=a8_0x55d630;return decorator_2[_0x49c66e(0x130)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x142),{'enumerable':!![],'get':function(){var _0x10d910=a8_0x55d630;return decorator_2[_0x10d910(0x142)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x122),{'enumerable':!![],'get':function(){var _0x459dfe=a8_0x55d630;return decorator_2[_0x459dfe(0x122)];}}),Object[a8_0x55d630(0x134)](exports,a8_0x55d630(0x12d),{'enumerable':!![],'get':function(){var _0x316e47=a8_0x55d630;return decorator_2[_0x316e47(0x12d)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a9_0xcddd47=a9_0x172b;(function(_0x272286,_0x1351f9){var _0x1fddc9=a9_0x172b,_0x139a8f=_0x272286();while(!![]){try{var _0x2044be=parseInt(_0x1fddc9(0x197))/0x1*(-parseInt(_0x1fddc9(0x1a0))/0x2)+parseInt(_0x1fddc9(0x1bd))/0x3+-parseInt(_0x1fddc9(0x1c0))/0x4+-parseInt(_0x1fddc9(0x1b6))/0x5+parseInt(_0x1fddc9(0x1a7))/0x6+parseInt(_0x1fddc9(0x1c5))/0x7*(parseInt(_0x1fddc9(0x1c7))/0x8)+parseInt(_0x1fddc9(0x1a2))/0x9;if(_0x2044be===_0x1351f9)break;else _0x139a8f['push'](_0x139a8f['shift']());}catch(_0x5468a4){_0x139a8f['push'](_0x139a8f['shift']());}}}(a9_0x2a07,0xc3590));function a9_0x172b(_0x8d8dcc,_0x2e50f4){var _0x2a07ad=a9_0x2a07();return a9_0x172b=function(_0x172b4d,_0x5ebaaa){_0x172b4d=_0x172b4d-0x193;var _0x54f6d6=_0x2a07ad[_0x172b4d];return _0x54f6d6;},a9_0x172b(_0x8d8dcc,_0x2e50f4);}var __decorate=this&&this[a9_0xcddd47(0x19b)]||function(_0x50a8cf,_0x463d4f,_0x27115a,_0x4bec82){var _0xd4de6f=a9_0xcddd47,_0x24ba44=arguments[_0xd4de6f(0x1a8)],_0x4f93e9=_0x24ba44<0x3?_0x463d4f:_0x4bec82===null?_0x4bec82=Object[_0xd4de6f(0x1ab)](_0x463d4f,_0x27115a):_0x4bec82,_0x52e0c2;if(typeof Reflect===_0xd4de6f(0x1c9)&&typeof Reflect[_0xd4de6f(0x1bf)]==='function')_0x4f93e9=Reflect[_0xd4de6f(0x1bf)](_0x50a8cf,_0x463d4f,_0x27115a,_0x4bec82);else{for(var _0x580181=_0x50a8cf[_0xd4de6f(0x1a8)]-0x1;_0x580181>=0x0;_0x580181--)if(_0x52e0c2=_0x50a8cf[_0x580181])_0x4f93e9=(_0x24ba44<0x3?_0x52e0c2(_0x4f93e9):_0x24ba44>0x3?_0x52e0c2(_0x463d4f,_0x27115a,_0x4f93e9):_0x52e0c2(_0x463d4f,_0x27115a))||_0x4f93e9;}return _0x24ba44>0x3&&_0x4f93e9&&Object[_0xd4de6f(0x1b9)](_0x463d4f,_0x27115a,_0x4f93e9),_0x4f93e9;},__metadata=this&&this[a9_0xcddd47(0x19a)]||function(_0x3df5a3,_0x204b9c){var _0x1c271f=a9_0xcddd47;if(typeof Reflect===_0x1c271f(0x1c9)&&typeof Reflect[_0x1c271f(0x194)]===_0x1c271f(0x19f))return Reflect[_0x1c271f(0x194)](_0x3df5a3,_0x204b9c);};Object[a9_0xcddd47(0x1b9)](exports,a9_0xcddd47(0x199),{'value':!![]}),exports[a9_0xcddd47(0x1aa)]=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require(a9_0xcddd47(0x195)),ApiError_1=require(a9_0xcddd47(0x19c));let ApiService=class ApiService{[a9_0xcddd47(0x1a4)](_0x477f18){var _0x597682=a9_0xcddd47,_0x504101;return _0x477f18?(0x0,crypto_js_1[_0x597682(0x1ad)])(_0x477f18+(0x0,crypto_js_1[_0x597682(0x1ad)])((0x0,crypto_js_1['MD5'])(_0x477f18)['toString']()+((_0x504101=this[_0x597682(0x1ae)])===null||_0x504101===void 0x0?void 0x0:_0x504101[_0x597682(0x1a4)]))[_0x597682(0x1b1)]())[_0x597682(0x1b1)]():'';}[a9_0xcddd47(0x193)](_0x3cef9e,_0x275a71,_0x392000=Date['now']()){var _0x36e599=a9_0xcddd47;return{'Token':_0x3cef9e,'Logintime':_0x392000,'Checkcode':this[_0x36e599(0x1c8)](_0x3cef9e,_0x275a71,_0x392000)};}[a9_0xcddd47(0x1b3)](_0x44f8f7={}){var _0xadbf4=a9_0xcddd47;const _0x5b2edb=[],_0x2e51a2=Object[_0xadbf4(0x1b7)](Object['entries'](_0x44f8f7)['map'](_0x4c7184=>[_0x4c7184[0x0][_0xadbf4(0x1c3)](),_0x4c7184[0x1]]));for(let _0x1c4c16 of['device',_0xadbf4(0x1c6),_0xadbf4(0x1a3),_0xadbf4(0x1af),'checkcode']){if(typeof _0x2e51a2[_0x1c4c16]==_0xadbf4(0x1bc))throw new AnnError(ApiError_1[_0xadbf4(0x1a6)][_0xadbf4(0x1c4)],{'message':_0xadbf4(0x1c1)+_0x1c4c16});_0x5b2edb[_0xadbf4(0x1a9)](_0x1c4c16+'='+_0x2e51a2[_0x1c4c16]);}if(Math['abs'](_0x2e51a2[_0xadbf4(0x1c6)])-Date['now']()>this[_0xadbf4(0x1ae)]['timeout'])throw new AnnError(ApiError_1[_0xadbf4(0x1a6)][_0xadbf4(0x1b8)]);if(!this[_0xadbf4(0x1ae)][_0xadbf4(0x1a5)][_0x2e51a2[_0xadbf4(0x1b2)]]||!this[_0xadbf4(0x1ae)][_0xadbf4(0x1a5)][_0x2e51a2[_0xadbf4(0x1b2)]][_0xadbf4(0x1c2)]||!this['config']['devices'][_0x2e51a2[_0xadbf4(0x1b2)]][_0xadbf4(0x1c8)])throw new AnnError(ApiError_1[_0xadbf4(0x1a6)][_0xadbf4(0x1b5)]);if(_0x2e51a2['token']&&_0x2e51a2[_0xadbf4(0x1c8)]!=this[_0xadbf4(0x1c8)](_0x2e51a2[_0xadbf4(0x1a3)],_0x2e51a2[_0xadbf4(0x1b2)],_0x2e51a2['logintime']))throw new AnnError(ApiError_1[_0xadbf4(0x1a6)]['HEADERS_CHECKCODE']);return _0x5b2edb['push']('secret='+this[_0xadbf4(0x1ae)][_0xadbf4(0x1a5)][_0x2e51a2[_0xadbf4(0x1b2)]]['secret']),(0x0,crypto_js_1[_0xadbf4(0x1ad)])(_0x5b2edb[_0xadbf4(0x198)]()[_0xadbf4(0x1a1)](''))[_0xadbf4(0x1b1)]();}[a9_0xcddd47(0x1c8)](_0x2a9ce2,_0x3ae8bd,_0xb0db35=Date['now']()){var _0x2023ff=a9_0xcddd47,_0x518cbe,_0x2309f4,_0x50d112;if(!((_0x518cbe=this[_0x2023ff(0x1ae)])===null||_0x518cbe===void 0x0?void 0x0:_0x518cbe[_0x2023ff(0x1a5)][_0x3ae8bd])||!((_0x50d112=(_0x2309f4=this['config'])===null||_0x2309f4===void 0x0?void 0x0:_0x2309f4[_0x2023ff(0x1a5)][_0x3ae8bd])===null||_0x50d112===void 0x0?void 0x0:_0x50d112[_0x2023ff(0x1c8)]))throw new AnnError(ApiError_1[_0x2023ff(0x1a6)][_0x2023ff(0x1b5)]);return(0x0,crypto_js_1[_0x2023ff(0x1ad)])(_0x2a9ce2+(0x0,crypto_js_1[_0x2023ff(0x1ad)])(_0xb0db35+this['config'][_0x2023ff(0x1a5)][_0x3ae8bd]['checkcode'])[_0x2023ff(0x1b1)]())[_0x2023ff(0x1b1)]();}['checksign'](_0x5da5df={}){var _0x1a8522=a9_0xcddd47;const _0x4887fa=Object[_0x1a8522(0x1b7)](Object[_0x1a8522(0x19e)](_0x5da5df)[_0x1a8522(0x196)](_0x5e3ad4=>[_0x5e3ad4[0x0]['toLowerCase'](),_0x5e3ad4[0x1]]));if(!(_0x4887fa===null||_0x4887fa===void 0x0?void 0x0:_0x4887fa[_0x1a8522(0x1bb)]))throw new AnnError(ApiError_1['ApiError'][_0x1a8522(0x1c4)],{'message':_0x1a8522(0x1b0)});if((_0x4887fa===null||_0x4887fa===void 0x0?void 0x0:_0x4887fa[_0x1a8522(0x1bb)])!=this['getsign'](_0x4887fa))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);return!![];}};function a9_0x2a07(){var _0x15687b=['722808zxqkbu','length','push','ApiService','getOwnPropertyDescriptor','design:type','MD5','config','logintime','缺少头信息:signature','toString','device','getsign','Config','HEADERS_DEVICE','1833780yLUIyd','fromEntries','TIMEOUT','defineProperty','Scope','signature','undefined','1909320khFiFq','anncicapi','decorate','2382852HqwaSA','缺少头信息:','secret','toLowerCase','HEADERS_LACK','5477311oCLVUq','requesttime','16tQqKrn','checkcode','object','getcheck','metadata','@midwayjs/decorator','map','47OhFJbj','sort','__esModule','__metadata','__decorate','../exception/ApiError','Singleton','entries','function','33328vBFxmX','join','2015703BMskzk','token','password','devices','ApiError'];a9_0x2a07=function(){return _0x15687b;};return a9_0x2a07();}__decorate([(0x0,decorator_1[a9_0xcddd47(0x1b4)])(a9_0xcddd47(0x1be)),__metadata(a9_0xcddd47(0x1ac),Object)],ApiService['prototype'],a9_0xcddd47(0x1ae),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a9_0xcddd47(0x1ba)])(decorator_1['ScopeEnum'][a9_0xcddd47(0x19d)])],ApiService),exports[a9_0xcddd47(0x1aa)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a10_0x3f9b(_0x11d07b,_0xc10198){const _0x3bf9bd=a10_0x3bf9();return a10_0x3f9b=function(_0x3f9bc2,_0x559584){_0x3f9bc2=_0x3f9bc2-0x138;let _0x18a5fc=_0x3bf9bd[_0x3f9bc2];return _0x18a5fc;},a10_0x3f9b(_0x11d07b,_0xc10198);}function a10_0x3bf9(){const _0x41a20b=['text/css;\x20charset=utf-8','../../public/','existsSync','__metadata','/apitest','../helper/getRoutes','/apiteststatic/*','getOwnPropertyDescriptor','.css','replace','/apitest-:module','design:paramtypes','module','@midwayjs/core','__devices__','ApitestStaticController','__decorate','request','Param','readFileSync','anncicapi','Controller','apiteststatic','/index.html','method','path','extname','application/javascript;\x20charset=utf-8','design:returntype','prototype','6115698cAotkz','Environment','metadata','Provide','push','decorate','filepath','apitestmodule','842124SdVBWX','substring','join','../../public/index.html','@midwayjs/decorator','public,\x20max-age=604800','content-type','apitest','6851845zuoDWY','set','route','ScopeEnum','description','apitesthtml','prefix','isDevelopmentEnvironment','Scope','ApitestService','apidoc','Request','getRoutes','config','function','design:type','devices','98612XiIRmu','__param','cache-control','url','routes','Inject','4CkMAsF','ctx','5977195luluMp','Config','5813784YsNywp','length','Get','42044139UphWAb','Singleton','defineProperty','7OrEmih'];a10_0x3bf9=function(){return _0x41a20b;};return a10_0x3bf9();}const a10_0x4ed7e6=a10_0x3f9b;(function(_0x178b22,_0x323c52){const _0x5d915a=a10_0x3f9b,_0x559d71=_0x178b22();while(!![]){try{const _0x2671ba=-parseInt(_0x5d915a(0x17f))/0x1*(parseInt(_0x5d915a(0x16f))/0x2)+parseInt(_0x5d915a(0x156))/0x3+-parseInt(_0x5d915a(0x175))/0x4*(parseInt(_0x5d915a(0x177))/0x5)+-parseInt(_0x5d915a(0x14e))/0x6+-parseInt(_0x5d915a(0x15e))/0x7+-parseInt(_0x5d915a(0x179))/0x8+parseInt(_0x5d915a(0x17c))/0x9;if(_0x2671ba===_0x323c52)break;else _0x559d71['push'](_0x559d71['shift']());}catch(_0x544e4f){_0x559d71['push'](_0x559d71['shift']());}}}(a10_0x3bf9,0xa7b09));var __decorate=this&&this[a10_0x4ed7e6(0x140)]||function(_0x9b7314,_0x38868f,_0x9596ae,_0x208ce2){const _0x39a4e3=a10_0x4ed7e6;var _0xb20271=arguments[_0x39a4e3(0x17a)],_0x5cd066=_0xb20271<0x3?_0x38868f:_0x208ce2===null?_0x208ce2=Object[_0x39a4e3(0x187)](_0x38868f,_0x9596ae):_0x208ce2,_0x38f4eb;if(typeof Reflect==='object'&&typeof Reflect[_0x39a4e3(0x153)]===_0x39a4e3(0x16c))_0x5cd066=Reflect[_0x39a4e3(0x153)](_0x9b7314,_0x38868f,_0x9596ae,_0x208ce2);else{for(var _0x4b2e75=_0x9b7314[_0x39a4e3(0x17a)]-0x1;_0x4b2e75>=0x0;_0x4b2e75--)if(_0x38f4eb=_0x9b7314[_0x4b2e75])_0x5cd066=(_0xb20271<0x3?_0x38f4eb(_0x5cd066):_0xb20271>0x3?_0x38f4eb(_0x38868f,_0x9596ae,_0x5cd066):_0x38f4eb(_0x38868f,_0x9596ae))||_0x5cd066;}return _0xb20271>0x3&&_0x5cd066&&Object[_0x39a4e3(0x17e)](_0x38868f,_0x9596ae,_0x5cd066),_0x5cd066;},__metadata=this&&this[a10_0x4ed7e6(0x183)]||function(_0x13eccd,_0x14dfc2){const _0x581a33=a10_0x4ed7e6;if(typeof Reflect==='object'&&typeof Reflect[_0x581a33(0x150)]==='function')return Reflect[_0x581a33(0x150)](_0x13eccd,_0x14dfc2);},__param=this&&this[a10_0x4ed7e6(0x170)]||function(_0x4b6c21,_0x329f54){return function(_0x464660,_0x112c98){_0x329f54(_0x464660,_0x112c98,_0x4b6c21);};};Object[a10_0x4ed7e6(0x17e)](exports,'__esModule',{'value':!![]}),exports[a10_0x4ed7e6(0x13f)]=exports[a10_0x4ed7e6(0x167)]=void 0x0;const path_1=require(a10_0x4ed7e6(0x149)),fs_1=require('fs'),core_1=require(a10_0x4ed7e6(0x13d)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x4ed7e6(0x15a)),getRoutes_1=require(a10_0x4ed7e6(0x185));let ApitestService=class ApitestService{async[a10_0x4ed7e6(0x168)](_0x31d022){const _0x27370c=a10_0x4ed7e6,_0x25cbc9=(0x0,getRoutes_1[_0x27370c(0x16a)])(_0x31d022),_0x41a660=[];for(let _0x494876 in _0x25cbc9){for(let _0x1d2927 in _0x25cbc9[_0x494876]['routes']){let _0x209edd=_0x25cbc9[_0x494876][_0x27370c(0x173)][_0x1d2927],_0x3da349=[];for(let _0x10f8b3 in _0x209edd[_0x27370c(0x141)]){_0x3da349[_0x27370c(0x152)](_0x209edd[_0x27370c(0x141)][_0x10f8b3]);}_0x41a660['push']({'title':_0x25cbc9[_0x494876]['summary']+':'+_0x209edd['summary'],'prefix':_0x25cbc9[_0x494876][_0x27370c(0x164)],'router':_0x209edd[_0x27370c(0x160)],'method':_0x209edd[_0x27370c(0x148)],'describe':_0x209edd[_0x27370c(0x162)]||'','filepath':_0x25cbc9[_0x494876][_0x27370c(0x154)]||'','request':_0x3da349});}}const _0x28a850=(0x0,path_1[_0x27370c(0x158)])(__dirname,_0x27370c(0x159));return(0x0,fs_1[_0x27370c(0x143)])(_0x28a850,{'encoding':'utf-8'})['replace'](/__res__/g,'/apiteststatic/')[_0x27370c(0x139)]('__apiList__',JSON['stringify'](_0x41a660))[_0x27370c(0x139)](_0x27370c(0x13e),JSON['stringify'](this[_0x27370c(0x16b)][_0x27370c(0x16e)]));}};__decorate([(0x0,decorator_2[a10_0x4ed7e6(0x178)])('anncicapi'),__metadata('design:type',Object)],ApitestService[a10_0x4ed7e6(0x14d)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x4ed7e6(0x151)])(a10_0x4ed7e6(0x15d)),(0x0,decorator_2[a10_0x4ed7e6(0x166)])(decorator_2[a10_0x4ed7e6(0x161)][a10_0x4ed7e6(0x17d)])],ApitestService),exports[a10_0x4ed7e6(0x167)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x104a5c=a10_0x4ed7e6;if(this[_0x104a5c(0x15d)]){const _0x5499ae={'module':![]};return this[_0x104a5c(0x14f)]['isDevelopmentEnvironment']()&&(_0x5499ae[_0x104a5c(0x154)]=!![]),await this[_0x104a5c(0x167)][_0x104a5c(0x168)](_0x5499ae);}return'';}async[a10_0x4ed7e6(0x155)](_0x2e7d23){const _0x203657=a10_0x4ed7e6;if(this['apitest']){const _0x1ba31c={'module':_0x2e7d23};return this[_0x203657(0x14f)][_0x203657(0x165)]()&&(_0x1ba31c[_0x203657(0x154)]=!![]),await this[_0x203657(0x167)][_0x203657(0x168)](_0x1ba31c);}return'';}async['apiteststatic'](){const _0x303ca5=a10_0x4ed7e6;if((0x0,path_1[_0x303ca5(0x14a)])(this[_0x303ca5(0x176)]['request']['url'])){var _0x19b993=(0x0,path_1['join'])(__dirname,_0x303ca5(0x181)+this[_0x303ca5(0x176)][_0x303ca5(0x141)][_0x303ca5(0x172)][_0x303ca5(0x139)]('/apiteststatic/','/'));if(_0x19b993[_0x303ca5(0x157)](_0x19b993['length']-0xb)!=_0x303ca5(0x147)){this[_0x303ca5(0x176)][_0x303ca5(0x15f)](_0x303ca5(0x171),_0x303ca5(0x15b));if((0x0,path_1[_0x303ca5(0x14a)])(this[_0x303ca5(0x176)][_0x303ca5(0x141)]['url'])=='.js')this[_0x303ca5(0x176)][_0x303ca5(0x15f)](_0x303ca5(0x15c),_0x303ca5(0x14b));else(0x0,path_1['extname'])(this['ctx'][_0x303ca5(0x141)][_0x303ca5(0x172)])==_0x303ca5(0x138)&&this[_0x303ca5(0x176)]['set'](_0x303ca5(0x15c),_0x303ca5(0x180));return(0x0,fs_1[_0x303ca5(0x182)])(_0x19b993)&&(0x0,fs_1[_0x303ca5(0x143)])(_0x19b993,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,decorator_2[a10_0x4ed7e6(0x174)])(),__metadata(a10_0x4ed7e6(0x16d),Object)],ApitestStaticController['prototype'],a10_0x4ed7e6(0x176),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x4ed7e6(0x16d),core_1['MidwayEnvironmentService'])],ApitestStaticController[a10_0x4ed7e6(0x14d)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a10_0x4ed7e6(0x174)])(),__metadata(a10_0x4ed7e6(0x16d),ApitestService)],ApitestStaticController[a10_0x4ed7e6(0x14d)],a10_0x4ed7e6(0x167),void 0x0),__decorate([(0x0,decorator_2[a10_0x4ed7e6(0x178)])('apitest'),__metadata(a10_0x4ed7e6(0x16d),Boolean)],ApitestStaticController[a10_0x4ed7e6(0x14d)],a10_0x4ed7e6(0x15d),void 0x0),__decorate([(0x0,decorator_2[a10_0x4ed7e6(0x178)])(a10_0x4ed7e6(0x144)),__metadata(a10_0x4ed7e6(0x16d),Object)],ApitestStaticController[a10_0x4ed7e6(0x14d)],a10_0x4ed7e6(0x16b),void 0x0),__decorate([(0x0,decorator_1[a10_0x4ed7e6(0x17b)])(a10_0x4ed7e6(0x184)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a10_0x4ed7e6(0x14c),Promise)],ApitestStaticController[a10_0x4ed7e6(0x14d)],a10_0x4ed7e6(0x163),null),__decorate([(0x0,decorator_1[a10_0x4ed7e6(0x17b)])(a10_0x4ed7e6(0x13a)),__param(0x0,(0x0,decorator_1[a10_0x4ed7e6(0x142)])(a10_0x4ed7e6(0x13c))),__metadata(a10_0x4ed7e6(0x16d),Function),__metadata(a10_0x4ed7e6(0x13b),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x4ed7e6(0x14d)],a10_0x4ed7e6(0x155),null),__decorate([(0x0,decorator_1[a10_0x4ed7e6(0x17b)])(a10_0x4ed7e6(0x186)),__metadata(a10_0x4ed7e6(0x16d),Function),__metadata(a10_0x4ed7e6(0x13b),[]),__metadata(a10_0x4ed7e6(0x14c),Promise)],ApitestStaticController[a10_0x4ed7e6(0x14d)],a10_0x4ed7e6(0x146),null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x4ed7e6(0x145)])('/'),(0x0,decorator_2[a10_0x4ed7e6(0x166)])(decorator_2[a10_0x4ed7e6(0x161)][a10_0x4ed7e6(0x169)])],ApitestStaticController),exports[a10_0x4ed7e6(0x13f)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a11_0x38e0(){const _0x5bf443=['key','15632YjQbhR','header','997804KboBJj','handler','function','prototype','columns','cellCount','ExcelService','7nbAWne','trim','xlsx','10327284sXWJkl','col','length','isNumber','1936976AZVXyu','substring','exceljs','existsSync','__esModule','eachCell','defineProperty','value','.xlsx','getCell','/public/xlsx/','writeFile','endsWith','log','worksheets','788682coYxzD','design:type','export','metadata','addWorksheet','435zbKjya','Provide','object','addRow','decorate','app','/public/xlsx','__metadata','replace','public/xlsx','get','getAppDir','push','23916LHbsdT','random','koa-send','9569601EfBpll','Api\x20Excel\x20Error:\x20','27HRivCA','startsWith','10wMNJLx','Workbook','getWorksheet','keys','toString'];a11_0x38e0=function(){return _0x5bf443;};return a11_0x38e0();}const a11_0x2f29d7=a11_0x361a;(function(_0x1e0fa7,_0x3c750c){const _0x500847=a11_0x361a,_0x562ca8=_0x1e0fa7();while(!![]){try{const _0x1693e3=parseInt(_0x500847(0xc4))/0x1+parseInt(_0x500847(0xc2))/0x2*(-parseInt(_0x500847(0xba))/0x3)+parseInt(_0x500847(0xb5))/0x4*(-parseInt(_0x500847(0xa8))/0x5)+-parseInt(_0x500847(0xa3))/0x6*(parseInt(_0x500847(0x8d))/0x7)+parseInt(_0x500847(0x94))/0x8+-parseInt(_0x500847(0xb8))/0x9*(-parseInt(_0x500847(0xbc))/0xa)+-parseInt(_0x500847(0x90))/0xb;if(_0x1693e3===_0x3c750c)break;else _0x562ca8['push'](_0x562ca8['shift']());}catch(_0x569787){_0x562ca8['push'](_0x562ca8['shift']());}}}(a11_0x38e0,0x9cd67));var __decorate=this&&this['__decorate']||function(_0x2317da,_0x516a57,_0xbfc148,_0x166af4){const _0x1c0dc2=a11_0x361a;var _0x50fa7d=arguments[_0x1c0dc2(0x92)],_0x37dbe3=_0x50fa7d<0x3?_0x516a57:_0x166af4===null?_0x166af4=Object['getOwnPropertyDescriptor'](_0x516a57,_0xbfc148):_0x166af4,_0x4b040d;if(typeof Reflect===_0x1c0dc2(0xaa)&&typeof Reflect[_0x1c0dc2(0xac)]===_0x1c0dc2(0xc6))_0x37dbe3=Reflect[_0x1c0dc2(0xac)](_0x2317da,_0x516a57,_0xbfc148,_0x166af4);else{for(var _0x2c9bce=_0x2317da[_0x1c0dc2(0x92)]-0x1;_0x2c9bce>=0x0;_0x2c9bce--)if(_0x4b040d=_0x2317da[_0x2c9bce])_0x37dbe3=(_0x50fa7d<0x3?_0x4b040d(_0x37dbe3):_0x50fa7d>0x3?_0x4b040d(_0x516a57,_0xbfc148,_0x37dbe3):_0x4b040d(_0x516a57,_0xbfc148))||_0x37dbe3;}return _0x50fa7d>0x3&&_0x37dbe3&&Object['defineProperty'](_0x516a57,_0xbfc148,_0x37dbe3),_0x37dbe3;},__metadata=this&&this[a11_0x2f29d7(0xaf)]||function(_0x313169,_0x99048b){const _0x410385=a11_0x2f29d7;if(typeof Reflect===_0x410385(0xaa)&&typeof Reflect[_0x410385(0xa6)]==='function')return Reflect[_0x410385(0xa6)](_0x313169,_0x99048b);};function a11_0x361a(_0x174215,_0x3a7a90){const _0x38e0ba=a11_0x38e0();return a11_0x361a=function(_0x361a06,_0x416e8a){_0x361a06=_0x361a06-0x8c;let _0x20af3e=_0x38e0ba[_0x361a06];return _0x20af3e;},a11_0x361a(_0x174215,_0x3a7a90);}Object[a11_0x2f29d7(0x9a)](exports,a11_0x2f29d7(0x98),{'value':!![]}),exports[a11_0x2f29d7(0x8c)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x2f29d7(0x96)),koasend=require(a11_0x2f29d7(0xb7)),decorator_1=require('@midwayjs/decorator');let ExcelService=class ExcelService{async['parse'](_0x1d1d07,_0x2d57a4,_0x19bde0=[0x0]){const _0xa2fc32=a11_0x2f29d7;var _0xc33bd8,_0x4070b1;const _0x40e91d=new exceljs[(_0xa2fc32(0xbd))](),_0x479e88=[];let _0x4c97b8=_0x1d1d07[_0xa2fc32(0xb0)](/(\\|\/)/g,'/')[_0xa2fc32(0xb0)](/\/{2,}/g,'/');!(_0x4c97b8===null||_0x4c97b8===void 0x0?void 0x0:_0x4c97b8['startsWith']('/'))&&(_0x4c97b8=this[_0xa2fc32(0xad)]['getAppDir']()+'/'+_0x4c97b8);try{await _0x40e91d[_0xa2fc32(0x8f)]['readFile'](_0x4c97b8);}catch(_0x4d1ef6){return console[_0xa2fc32(0xa1)](_0xa2fc32(0xb9)+_0x4c97b8+'\x20is\x20read\x20fail'),_0x479e88;}for(const _0x324567 of _0x19bde0){const _0x1e2efb=lodash[_0xa2fc32(0x93)](_0x324567)?((_0xc33bd8=_0x40e91d[_0xa2fc32(0xa2)])===null||_0xc33bd8===void 0x0?void 0x0:_0xc33bd8[_0x324567])||undefined:_0x40e91d[_0xa2fc32(0xbe)](_0x324567);if(_0x1e2efb){var _0x5356ef=0x1;const _0xfb7eb2=_0x1e2efb['getRow'](0x1),_0xb5a6d3=await new Promise(_0xd6bf19=>{const _0x1c0c87=_0xa2fc32,_0x5c67ed={};_0xfb7eb2[_0x1c0c87(0x99)]((_0x17ec9,_0x2afa05)=>{const _0x4faef2=_0x1c0c87;for(const _0xa2b018 of _0x2d57a4){if(_0x17ec9[_0x4faef2(0x9b)]==_0xa2b018[_0x4faef2(0xc3)])_0x5356ef=0x2,_0x5c67ed[_0xa2b018[_0x4faef2(0xc1)]]={'header':_0x17ec9[_0x4faef2(0x91)],'handler':_0xa2b018[_0x4faef2(0xc5)]};else{if(!_0x5c67ed[_0xa2b018[_0x4faef2(0xc1)]])try{const _0x3e8640=_0xfb7eb2[_0x4faef2(0x9d)](_0xa2b018[_0x4faef2(0xc3)]);_0x3e8640&&(_0x5c67ed[_0xa2b018[_0x4faef2(0xc1)]]={'header':_0x3e8640[_0x4faef2(0x91)],'handler':_0xa2b018[_0x4faef2(0xc5)]});}catch{}}}_0xfb7eb2[_0x4faef2(0xc9)]==_0x2afa05&&_0xd6bf19(_0x5c67ed);});});for(const _0x14a1a7 of _0x1e2efb['findRows'](_0x5356ef,_0x1e2efb['rowCount'])){const _0x5d7176={};for(const _0x458711 in _0xb5a6d3){_0xb5a6d3[_0x458711][_0xa2fc32(0xc3)]&&(typeof((_0x4070b1=_0xb5a6d3[_0x458711])===null||_0x4070b1===void 0x0?void 0x0:_0x4070b1['handler'])==_0xa2fc32(0xc6)?_0x5d7176[_0x458711]=_0xb5a6d3[_0x458711][_0xa2fc32(0xc5)](_0x14a1a7[_0xa2fc32(0x9d)](lodash[_0xa2fc32(0x8e)](''+_0xb5a6d3[_0x458711][_0xa2fc32(0xc3)],'\x20'))[_0xa2fc32(0xc0)]()):_0x5d7176[_0x458711]=_0x14a1a7[_0xa2fc32(0x9d)](_0xb5a6d3[_0x458711][_0xa2fc32(0xc3)])['toString']());}Object[_0xa2fc32(0xbf)](_0x5d7176)['length']>0x0&&_0x479e88['push'](_0x5d7176);}}}return _0x479e88;}async[a11_0x2f29d7(0xa5)](_0x1649d3,_0x5b7578,_0x28e818,_0x2a8add=a11_0x2f29d7(0xb1)){const _0x43c26d=a11_0x2f29d7;var _0x4ae1b5,_0x2ba3b6;const _0x2eb5f2=new exceljs['Workbook'](),_0x34df55={},_0x27157e=[],_0x1739f6=_0x2eb5f2[_0x43c26d(0xa7)]('Sheet\x201',{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x5047c8 in _0x5b7578){_0x34df55[_0x5b7578[_0x5047c8][_0x43c26d(0xc1)]]=_0x5b7578[_0x5047c8]['header'],_0x27157e[_0x43c26d(0xb4)]({'header':_0x5b7578[_0x5047c8][_0x43c26d(0xc3)],'key':(_0x4ae1b5=_0x5b7578[_0x5047c8])===null||_0x4ae1b5===void 0x0?void 0x0:_0x4ae1b5[_0x43c26d(0xc1)][_0x43c26d(0xb0)](/\./g,'_')});}_0x1739f6[_0x43c26d(0xc8)]=_0x27157e;for(const _0x57d38d of _0x28e818){const _0x2699bc={};for(const _0x33a962 in _0x5b7578){typeof((_0x2ba3b6=_0x5b7578[_0x33a962])===null||_0x2ba3b6===void 0x0?void 0x0:_0x2ba3b6['handler'])=='function'?_0x2699bc[_0x5b7578[_0x33a962][_0x43c26d(0xc1)][_0x43c26d(0xb0)](/\./g,'_')]=await _0x5b7578[_0x33a962]['handler'](_0x57d38d):_0x2699bc[_0x5b7578[_0x33a962][_0x43c26d(0xc1)][_0x43c26d(0xb0)](/\./g,'_')]=lodash[_0x43c26d(0xb2)](_0x57d38d,_0x5b7578[_0x33a962][_0x43c26d(0xc1)],'');}_0x1739f6[_0x43c26d(0xab)](_0x2699bc);}let _0x3f3635='';const _0x2a364b=_0x1649d3+'-'+lodash[_0x43c26d(0xb6)](0x2710,0x1869f)+_0x43c26d(0x9c);if(_0x2a8add&&_0x2a8add[_0x43c26d(0xbb)]('/'))_0x3f3635=_0x2a8add+'/'+_0x2a364b;else _0x2a8add&&!_0x2a8add['startsWith']('/')&&!_0x2a8add['startsWith']('\x5c')?_0x3f3635=this[_0x43c26d(0xad)]['getAppDir']()+'/'+_0x2a8add+'/'+_0x2a364b:_0x3f3635=this['app'][_0x43c26d(0xb3)]()+_0x43c26d(0xae);return(_0x3f3635[_0x43c26d(0xa0)]('/')||_0x3f3635[_0x43c26d(0xa0)]('\x5c'))&&(_0x3f3635=_0x3f3635[_0x43c26d(0x95)](0x0,_0x3f3635[_0x43c26d(0x92)]-0x1)),_0x3f3635=_0x3f3635['replace'](/(\\|\/)/g,'/')[_0x43c26d(0xb0)](/\/{2,}/g,'/'),!fs[_0x43c26d(0x97)](_0x3f3635)&&fs['mkdirSync'](_0x3f3635,{'recursive':!![]}),await _0x2eb5f2[_0x43c26d(0x8f)][_0x43c26d(0x9f)]((_0x3f3635+'/'+_0x2a364b)['replace'](/(\\|\/)/g,'/')[_0x43c26d(0xb0)](/\/{2,}/g,'/')),{'filename':_0x2a364b,'filepath':_0x3f3635};}async['download'](_0x447167,_0x46cf26){const _0x28bd62=a11_0x2f29d7;await koasend(_0x447167,_0x28bd62(0x9e)+_0x46cf26);}};__decorate([(0x0,decorator_1['App'])(),__metadata(a11_0x2f29d7(0xa4),Object)],ExcelService[a11_0x2f29d7(0xc7)],a11_0x2f29d7(0xad),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x2f29d7(0xa9)])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum']['Singleton'])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a12_0x4d492f=a12_0x1956;function a12_0x1956(_0x26f490,_0x16df07){var _0x50d6cc=a12_0x50d6();return a12_0x1956=function(_0x1956ad,_0x2e4135){_0x1956ad=_0x1956ad-0x1b9;var _0x2114d8=_0x50d6cc[_0x1956ad];return _0x2114d8;},a12_0x1956(_0x26f490,_0x16df07);}(function(_0x31e36c,_0x2fe7b9){var _0x2abd65=a12_0x1956,_0x322e42=_0x31e36c();while(!![]){try{var _0x46c10b=parseInt(_0x2abd65(0x1c3))/0x1+parseInt(_0x2abd65(0x1c7))/0x2+-parseInt(_0x2abd65(0x1ba))/0x3*(-parseInt(_0x2abd65(0x1c5))/0x4)+parseInt(_0x2abd65(0x1c4))/0x5+parseInt(_0x2abd65(0x1b9))/0x6*(-parseInt(_0x2abd65(0x1bc))/0x7)+-parseInt(_0x2abd65(0x1c8))/0x8*(parseInt(_0x2abd65(0x1c0))/0x9)+-parseInt(_0x2abd65(0x1bd))/0xa*(parseInt(_0x2abd65(0x1c2))/0xb);if(_0x46c10b===_0x2fe7b9)break;else _0x322e42['push'](_0x322e42['shift']());}catch(_0x5a6f97){_0x322e42['push'](_0x322e42['shift']());}}}(a12_0x50d6,0x5627a));function a12_0x50d6(){var _0x358d23=['6ZwUviY','633GHERBI','defineProperty','3008131bzLMUI','36460JxJUJZ','anncic-api:action:route','ACTION_ROUTE_KEY','18ivThTA','anncic-api:action','2101lmfmUc','580492uaHYdS','3289190EzqpEY','4900FAogoW','ACTION_KEY','1296024fCdFMN','2663232UrHQtM'];a12_0x50d6=function(){return _0x358d23;};return a12_0x50d6();}Object[a12_0x4d492f(0x1bb)](exports,'__esModule',{'value':!![]}),exports[a12_0x4d492f(0x1bf)]=exports[a12_0x4d492f(0x1c6)]=void 0x0,exports['ACTION_KEY']=a12_0x4d492f(0x1c1),exports[a12_0x4d492f(0x1bf)]=a12_0x4d492f(0x1be);
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x5066d2=a13_0x5533;function a13_0x5533(_0x482ba7,_0x5e6163){var _0x1c0ae3=a13_0x1c0a();return a13_0x5533=function(_0x553363,_0xb047ee){_0x553363=_0x553363-0xf7;var _0x3ca3a1=_0x1c0ae3[_0x553363];return _0x3ca3a1;},a13_0x5533(_0x482ba7,_0x5e6163);}function a13_0x1c0a(){var _0x561bdf=['813591SHSGsS','design:type','PageDTO','valid','length','metadata','585412MviXUC','decorate','_order','_size','defineProperty','RuleType','Rule','getOwnPropertyDescriptor','function','18FzHXKW','integer','3934548GFIcEB','6998960dAWXCu','1:是;0:否','3770920MXjaGk','@anncic-api/validator','number','__decorate','object','分页数量','prototype','20XLACxD','1246SyOBEz','6387577ypGScw','排序方式','585BtIRvP','_page'];a13_0x1c0a=function(){return _0x561bdf;};return a13_0x1c0a();}(function(_0x1ce1a5,_0x53597e){var _0x4bdb91=a13_0x5533,_0x297838=_0x1ce1a5();while(!![]){try{var _0x66aee4=parseInt(_0x4bdb91(0x104))/0x1+parseInt(_0x4bdb91(0xff))/0x2*(parseInt(_0x4bdb91(0x102))/0x3)+parseInt(_0x4bdb91(0x10a))/0x4*(-parseInt(_0x4bdb91(0xfe))/0x5)+-parseInt(_0x4bdb91(0x115))/0x6+parseInt(_0x4bdb91(0x100))/0x7+-parseInt(_0x4bdb91(0x116))/0x8+-parseInt(_0x4bdb91(0x113))/0x9*(-parseInt(_0x4bdb91(0xf7))/0xa);if(_0x66aee4===_0x53597e)break;else _0x297838['push'](_0x297838['shift']());}catch(_0x4ab5f4){_0x297838['push'](_0x297838['shift']());}}}(a13_0x1c0a,0x76963));var __decorate=this&&this[a13_0x5066d2(0xfa)]||function(_0xd73e31,_0x2ecfc1,_0x123d85,_0x324a04){var _0x9338f=a13_0x5066d2,_0x15207d=arguments[_0x9338f(0x108)],_0x1a3d25=_0x15207d<0x3?_0x2ecfc1:_0x324a04===null?_0x324a04=Object[_0x9338f(0x111)](_0x2ecfc1,_0x123d85):_0x324a04,_0x24db33;if(typeof Reflect===_0x9338f(0xfb)&&typeof Reflect[_0x9338f(0x10b)]==='function')_0x1a3d25=Reflect[_0x9338f(0x10b)](_0xd73e31,_0x2ecfc1,_0x123d85,_0x324a04);else{for(var _0x71b6a=_0xd73e31[_0x9338f(0x108)]-0x1;_0x71b6a>=0x0;_0x71b6a--)if(_0x24db33=_0xd73e31[_0x71b6a])_0x1a3d25=(_0x15207d<0x3?_0x24db33(_0x1a3d25):_0x15207d>0x3?_0x24db33(_0x2ecfc1,_0x123d85,_0x1a3d25):_0x24db33(_0x2ecfc1,_0x123d85))||_0x1a3d25;}return _0x15207d>0x3&&_0x1a3d25&&Object[_0x9338f(0x10e)](_0x2ecfc1,_0x123d85,_0x1a3d25),_0x1a3d25;},__metadata=this&&this['__metadata']||function(_0x43d2d6,_0x3e6b6c){var _0x507398=a13_0x5066d2;if(typeof Reflect===_0x507398(0xfb)&&typeof Reflect[_0x507398(0x109)]===_0x507398(0x112))return Reflect[_0x507398(0x109)](_0x43d2d6,_0x3e6b6c);};Object[a13_0x5066d2(0x10e)](exports,'__esModule',{'value':!![]}),exports[a13_0x5066d2(0x106)]=void 0x0;const validator_1=require(a13_0x5066d2(0xf8));class PageDTO{}__decorate([(0x0,validator_1[a13_0x5066d2(0x110)])('分页',validator_1['RuleType'][a13_0x5066d2(0xf9)]()[a13_0x5066d2(0x114)]()['min'](0x1),'第一页为1,第二页为2'),__metadata('design:type',Number)],PageDTO['prototype'],a13_0x5066d2(0x103),void 0x0),__decorate([(0x0,validator_1[a13_0x5066d2(0x110)])(a13_0x5066d2(0xfc),validator_1[a13_0x5066d2(0x10f)]['number']()[a13_0x5066d2(0x114)]()['min'](0x1)),__metadata(a13_0x5066d2(0x105),Number)],PageDTO[a13_0x5066d2(0xfd)],a13_0x5066d2(0x10d),void 0x0),__decorate([(0x0,validator_1['Rule'])(a13_0x5066d2(0x101),validator_1[a13_0x5066d2(0x10f)]['string']()['trim']()),__metadata('design:type',String)],PageDTO[a13_0x5066d2(0xfd)],a13_0x5066d2(0x10c),void 0x0),__decorate([(0x0,validator_1['Rule'])('是否倒序',validator_1[a13_0x5066d2(0x10f)]['number']()['integer']()[a13_0x5066d2(0x107)](0x0,0x1),a13_0x5066d2(0x117)),__metadata(a13_0x5066d2(0x105),Number)],PageDTO['prototype'],'_isreverse',void 0x0),exports[a13_0x5066d2(0x106)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
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.0.
|
|
21
|
-
"@anncic-api/core": "^1.0.
|
|
22
|
-
"@anncic-api/event": "^1.0.
|
|
23
|
-
"@anncic-api/typeorm": "^1.0.
|
|
24
|
-
"@anncic-api/validator": "^1.0.
|
|
20
|
+
"@anncic-api/cache": "^1.0.19",
|
|
21
|
+
"@anncic-api/core": "^1.0.19",
|
|
22
|
+
"@anncic-api/event": "^1.0.19",
|
|
23
|
+
"@anncic-api/typeorm": "^1.0.19",
|
|
24
|
+
"@anncic-api/validator": "^1.0.19",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.4.12",
|
|
26
26
|
"@midwayjs/i18n": "^3.4.12",
|
|
27
27
|
"@midwayjs/koa": "^3.4.12",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.4.12",
|
|
30
30
|
"@midwayjs/upload": "^3.4.12",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.0.
|
|
32
|
+
"anncic-apihelper": "^1.0.19",
|
|
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": "
|
|
44
|
+
"gitHead": "088f8fde2c04d43e8d878c0bf335e565e5b16239"
|
|
45
45
|
}
|
package/public/config.js
CHANGED
|
@@ -56,7 +56,7 @@ var headerList = [
|
|
|
56
56
|
"key": 'Signature'
|
|
57
57
|
, "type": 'string'
|
|
58
58
|
, "title": '接口加密校验'
|
|
59
|
-
, "desc": '取头信息里Device,Requesttime,Token,Logintime,Checkcode
|
|
59
|
+
, "desc": '取头信息里Device,Requesttime,Token,Logintime,Checkcode \n每个都使用key=value(空则空字符串)格式组合成字符串然后放入同一个数组 \n 并放入私钥字符串后自然排序 \n 连接为字符串后进行MD5加密,获得Signature \n 将Signature也放入头信息,进行传输。'
|
|
60
60
|
, "required": true
|
|
61
61
|
, "default": ""
|
|
62
62
|
, "click": function () {
|