anncic-api 1.1.6 → 1.1.9
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
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0xcfd9ee=a0_0x59bb;function a0_0x59bb(_0x3a0b23,_0x280cd0){var _0x5ed3d9=a0_0x5ed3();return a0_0x59bb=function(_0x59bbd6,_0x2547e1){_0x59bbd6=_0x59bbd6-0x1d8;var _0x3a4c76=_0x5ed3d9[_0x59bbd6];return _0x3a4c76;},a0_0x59bb(_0x3a0b23,_0x280cd0);}(function(_0x3a9c70,_0x4e28c4){var _0x34883e=a0_0x59bb,_0x577742=_0x3a9c70();while(!![]){try{var _0xb5b70c=-parseInt(_0x34883e(0x1e0))/0x1*(-parseInt(_0x34883e(0x1e8))/0x2)+-parseInt(_0x34883e(0x1d8))/0x3+-parseInt(_0x34883e(0x1dd))/0x4+parseInt(_0x34883e(0x1e5))/0x5*(parseInt(_0x34883e(0x1e7))/0x6)+parseInt(_0x34883e(0x1e3))/0x7+parseInt(_0x34883e(0x1e4))/0x8+parseInt(_0x34883e(0x1de))/0x9;if(_0xb5b70c===_0x4e28c4)break;else _0x577742['push'](_0x577742['shift']());}catch(_0x1d47bd){_0x577742['push'](_0x577742['shift']());}}}(a0_0x5ed3,0x641c6));function a0_0x5ed3(){var _0x36c6c9=['891448qjcBDP','5UvLTnz','default','182232bXGSWm','76CLZQMg','2067807bhtBSH','dhauo1234420123gg3234901','name','appDir','defineProperty','1429940GjWKDy','5511348oxmhgg','zhiulanuiy7892387985hnoi','5848zwLxUr','/runtime/.upload','__esModule','3362863ZwsHks'];a0_0x5ed3=function(){return _0x36c6c9;};return a0_0x5ed3();}Object[a0_0xcfd9ee(0x1dc)](exports,a0_0xcfd9ee(0x1e2),{'value':!![]}),exports[a0_0xcfd9ee(0x1e6)]=_0x5e45e0=>{var _0x13ec78=a0_0xcfd9ee;return{'apitest':!![],'keys':_0x5e45e0[_0x13ec78(0x1da)],'anncicapi':{'timeout':0x1388,'password':_0x13ec78(0x1df),'devices':{'DEFAULT':{'secret':_0x13ec78(0x1d9),'checkcode':'dhauo1234420123gg3234901'}}},'upload':{'tmpdir':_0x5e45e0[_0x13ec78(0x1db)]+_0x13ec78(0x1e1),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a1_0x4bc3(){var _0x28d75a=['12571407rUZlSK','3638568UVHtnM','4062zjXqaQ','890aoJIqw','154121cWFDfm','__esModule','28gtzwYt','197ZQhbTX','default','2046333ZhZfqr','3086URKBhx','157280laqYWY','4660ImxNvv'];a1_0x4bc3=function(){return _0x28d75a;};return a1_0x4bc3();}var a1_0x2647f1=a1_0x5aca;(function(_0x3e659c,_0x241857){var _0x10f329=a1_0x5aca,_0x55aba5=_0x3e659c();while(!![]){try{var _0x4902cc=-parseInt(_0x10f329(0x102))/0x1*(parseInt(_0x10f329(0x105))/0x2)+-parseInt(_0x10f329(0x104))/0x3+parseInt(_0x10f329(0x109))/0x4+-parseInt(_0x10f329(0x107))/0x5*(-parseInt(_0x10f329(0x10a))/0x6)+parseInt(_0x10f329(0x101))/0x7*(parseInt(_0x10f329(0x106))/0x8)+parseInt(_0x10f329(0x108))/0x9+-parseInt(_0x10f329(0xfe))/0xa*(parseInt(_0x10f329(0xff))/0xb);if(_0x4902cc===_0x241857)break;else _0x55aba5['push'](_0x55aba5['shift']());}catch(_0x47bfdd){_0x55aba5['push'](_0x55aba5['shift']());}}}(a1_0x4bc3,0xbf2a0));function a1_0x5aca(_0xc07c7a,_0x17dc8d){var _0x4bc3cc=a1_0x4bc3();return a1_0x5aca=function(_0x5aca8d,_0x5e5022){_0x5aca8d=_0x5aca8d-0xfe;var _0x53c168=_0x4bc3cc[_0x5aca8d];return _0x53c168;},a1_0x5aca(_0xc07c7a,_0x17dc8d);}Object['defineProperty'](exports,a1_0x2647f1(0x100),{'value':!![]}),exports[a1_0x2647f1(0x103)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x360172=a2_0x438f;function a2_0x438f(_0x9d6f5,_0x5e9f7d){const _0xa72805=a2_0xa728();return a2_0x438f=function(_0x438f6c,_0x30409a){_0x438f6c=_0x438f6c-0x8b;let _0x1f4023=_0xa72805[_0x438f6c];return _0x1f4023;},a2_0x438f(_0x9d6f5,_0x5e9f7d);}(function(_0x1d495f,_0x3b753e){const _0x3bde37=a2_0x438f,_0x55f37b=_0x1d495f();while(!![]){try{const _0x59bd73=parseInt(_0x3bde37(0xc1))/0x1+parseInt(_0x3bde37(0x98))/0x2*(parseInt(_0x3bde37(0xeb))/0x3)+parseInt(_0x3bde37(0xe2))/0x4+-parseInt(_0x3bde37(0xef))/0x5+-parseInt(_0x3bde37(0xf0))/0x6*(parseInt(_0x3bde37(0xce))/0x7)+parseInt(_0x3bde37(0xa9))/0x8*(-parseInt(_0x3bde37(0x93))/0x9)+-parseInt(_0x3bde37(0xc6))/0xa*(parseInt(_0x3bde37(0xad))/0xb);if(_0x59bd73===_0x3b753e)break;else _0x55f37b['push'](_0x55f37b['shift']());}catch(_0x17e025){_0x55f37b['push'](_0x55f37b['shift']());}}}(a2_0xa728,0xc73f1));function a2_0xa728(){const _0x1428ff=['DEFAULT','REQUEST_OBJ_CTX_KEY','filterConfig','MidwayConfigService','upload','devices','@midwayjs/task','Configuration','environment','query','MidwayApplicationManager','keys','113648gJmOWX','./config/config.production','HEADERS_SIGNATURE','@midwayjs/i18n','8767hDYMfg','koa-xml-body','forEach','hanlderApplications','prototype','dir','ApiError','__decorate','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./service/ApiService','getApplications','defineProperty','apimit','staticFile','defaultsDeep','registerMethodHandler','CustomConfiguration','@anncic-api/event','checksign','length','1507161dtVFlY','anncic-api','anncic-apihelper','_matchedRoute','context','17840sHabkq','device','@midwayjs/core','dirs','useMiddleware','application','onReady','./exception/ApiError','7XwzEJB','bodyXml','@anncic-api/typeorm','__metadata','function','Anncic-api\x20static-file\x20:\x20mkdir\x20','./types/action','@midwayjs/koa','input','checkConfigKeys','target','getConfiguration','metadata','tmpdir','handlerActionRoute','decorate','addObject','__esModule','anncicapi','decorator','4887268DBWgCK','koa-bodyparser','./config/config.default','@anncic-api/core','isArray','bodyParser','@anncic-api/validator','Inject','@midwayjs/decorator','33nTySiY','isNull','get','body','5062885exYcnQ','2941464vpITEY','existsSync','isString','beforeRoute','mkdirSync','ApiService','MidwayEnvironmentService','ACTION_ROUTE_KEY','config','333gItKyF','headers','key','koa','object','279532cQcryr','string','request','log','design:type'];a2_0xa728=function(){return _0x1428ff;};return a2_0xa728();}var __decorate=this&&this[a2_0x360172(0xb4)]||function(_0x295f82,_0x42b0bf,_0x5b24c9,_0x158f17){const _0x39bc8b=a2_0x360172;var _0x298700=arguments[_0x39bc8b(0xc0)],_0x5a03fb=_0x298700<0x3?_0x42b0bf:_0x158f17===null?_0x158f17=Object['getOwnPropertyDescriptor'](_0x42b0bf,_0x5b24c9):_0x158f17,_0x3d2e6c;if(typeof Reflect===_0x39bc8b(0x97)&&typeof Reflect[_0x39bc8b(0xdd)]===_0x39bc8b(0xd2))_0x5a03fb=Reflect['decorate'](_0x295f82,_0x42b0bf,_0x5b24c9,_0x158f17);else{for(var _0x5cd572=_0x295f82[_0x39bc8b(0xc0)]-0x1;_0x5cd572>=0x0;_0x5cd572--)if(_0x3d2e6c=_0x295f82[_0x5cd572])_0x5a03fb=(_0x298700<0x3?_0x3d2e6c(_0x5a03fb):_0x298700>0x3?_0x3d2e6c(_0x42b0bf,_0x5b24c9,_0x5a03fb):_0x3d2e6c(_0x42b0bf,_0x5b24c9))||_0x5a03fb;}return _0x298700>0x3&&_0x5a03fb&&Object[_0x39bc8b(0xb8)](_0x42b0bf,_0x5b24c9,_0x5a03fb),_0x5a03fb;},__metadata=this&&this[a2_0x360172(0xd1)]||function(_0x4127f2,_0x220503){const _0x12a38d=a2_0x360172;if(typeof Reflect===_0x12a38d(0x97)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x4127f2,_0x220503);};Object[a2_0x360172(0xb8)](exports,a2_0x360172(0xdf),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0x360172(0xea)),core_1=require(a2_0x360172(0xc8)),ApiError_1=require(a2_0x360172(0xcd)),ApiService_1=require(a2_0x360172(0xb6)),action_1=require(a2_0x360172(0xd4)),fs=require('fs'),koa=require(a2_0x360172(0xd5)),i18n=require(a2_0x360172(0xac)),task=require(a2_0x360172(0xa3)),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),bodyXml=require(a2_0x360172(0xae)),bodyParser=require(a2_0x360172(0xe3)),ConfigDefault=require(a2_0x360172(0xe4)),ConfigProduction=require(a2_0x360172(0xaa)),anncic=require(a2_0x360172(0xe5)),anncicEvent=require(a2_0x360172(0xbe)),anncicTypeorm=require(a2_0x360172(0xd0)),anncicValidator=require(a2_0x360172(0xe8)),anncicHelper=require(a2_0x360172(0xc3));let CustomConfiguration=class CustomConfiguration{async[a2_0x360172(0xcc)](){const _0x139425=a2_0x360172;await this['filterConfig'](),await this['checkConfigKeys'](),await this[_0x139425(0xdc)](),await this[_0x139425(0xb0)]();}async[a2_0x360172(0xd7)](){}async['handlerActionRoute'](){const _0x5a5084=a2_0x360172,_0x41edb2=this[_0x5a5084(0x92)][_0x5a5084(0xd9)]();this[_0x5a5084(0xe1)][_0x5a5084(0xbc)](action_1[_0x5a5084(0x91)],_0x4da507=>{const _0x2412e5=_0x5a5084,_0x2b7cd8=_0x4da507[_0x2412e5(0xda)];return{'before':async _0x586cb7=>{const _0x11ae28=_0x2412e5;var _0x22fe08,_0x43936a,_0x486efc,_0x2655a9,_0x4a7ce1;const _0xae2594=(_0x22fe08=_0x586cb7===null||_0x586cb7===void 0x0?void 0x0:_0x586cb7[_0x11ae28(0xd8)])===null||_0x22fe08===void 0x0?void 0x0:_0x22fe08[core_1[_0x11ae28(0x9e)]];if(_0xae2594){if((_0x2b7cd8===null||_0x2b7cd8===void 0x0?void 0x0:_0x2b7cd8[_0x11ae28(0xb9)])&&!this[_0x11ae28(0x8f)][_0x11ae28(0xbf)]((_0x43936a=_0xae2594===null||_0xae2594===void 0x0?void 0x0:_0xae2594[_0x11ae28(0x9a)])===null||_0x43936a===void 0x0?void 0x0:_0x43936a[_0x11ae28(0x94)]))throw new AnnError(ApiError_1[_0x11ae28(0xb3)][_0x11ae28(0xab)]);((_0x486efc=_0xae2594[_0x11ae28(0x94)])===null||_0x486efc===void 0x0?void 0x0:_0x486efc[_0x11ae28(0xc7)])&&((_0x4a7ce1=(_0x2655a9=_0x41edb2===null||_0x41edb2===void 0x0?void 0x0:_0x41edb2[_0x11ae28(0xe0)])===null||_0x2655a9===void 0x0?void 0x0:_0x2655a9[_0x11ae28(0xa2)])===null||_0x4a7ce1===void 0x0?void 0x0:_0x4a7ce1[_0xae2594[_0x11ae28(0x94)][_0x11ae28(0xc7)]])&&(typeof _0x41edb2[_0x11ae28(0xe0)][_0x11ae28(0xa2)][_0xae2594[_0x11ae28(0x94)]['device']]['beforeRoute']==_0x11ae28(0xd2)&&await _0x41edb2[_0x11ae28(0xe0)][_0x11ae28(0xa2)][_0xae2594[_0x11ae28(0x94)][_0x11ae28(0xc7)]][_0x11ae28(0x8d)]((_0xae2594===null||_0xae2594===void 0x0?void 0x0:_0xae2594[_0x11ae28(0xc4)])||undefined,_0x2b7cd8,_0xae2594));}},'afterThrow':(_0x58d2cc,_0x427066)=>{throw _0x427066;}};});}async[a2_0x360172(0xb0)](){const _0x4f203c=a2_0x360172;this[_0x4f203c(0xcb)][_0x4f203c(0xb7)]([_0x4f203c(0x96)])[_0x4f203c(0xaf)](_0x9aa3a2=>{const _0x5e06f4=_0x4f203c;_0x9aa3a2[_0x5e06f4(0xca)](bodyXml(this[_0x5e06f4(0x92)][_0x5e06f4(0xd9)]('bodyXml'))),_0x9aa3a2[_0x5e06f4(0xca)](bodyParser(this[_0x5e06f4(0x92)]['getConfiguration'](_0x5e06f4(0xe7)))),(_0x9aa3a2===null||_0x9aa3a2===void 0x0?void 0x0:_0x9aa3a2[_0x5e06f4(0xc5)])&&Object['defineProperties'](_0x9aa3a2[_0x5e06f4(0xc5)],{'ok':{'value':function(_0x5e2cef,_0x378847,_0x743f63=0x0){return{'code':_0x743f63,'data':_0x5e2cef,'extra':_0x378847};}},'err':{'value':function(_0x5666b5,_0x394a1c,_0x2eb94f=0x1){return{'code':_0x2eb94f,'extra':_0x394a1c,'msg':_0x5666b5};}},'input':{'value':function(_0x4fa594,_0x5ddeea){const _0x51ad8f=_0x5e06f4;var _0x15c3cf;const _0x38c009=lodash[_0x51ad8f(0xbb)]({},this[_0x51ad8f(0x9a)][_0x51ad8f(0xee)]||this[_0x51ad8f(0x9a)][((_0x15c3cf=config===null||config===void 0x0?void 0x0:config[_0x51ad8f(0xcf)])===null||_0x15c3cf===void 0x0?void 0x0:_0x15c3cf[_0x51ad8f(0x95)])||_0x51ad8f(0xee)]||{},this[_0x51ad8f(0x9a)][_0x51ad8f(0xa6)]||{});return _0x4fa594?lodash[_0x51ad8f(0xed)](_0x38c009,_0x4fa594,_0x5ddeea):_0x38c009;}},'when':{'value':async function(_0x51413c,_0x79f9fa){const _0x20c15b=_0x5e06f4,_0x17024b=this[_0x20c15b(0xd6)](_0x51413c,null);if(!lodash[_0x20c15b(0xec)](_0x17024b))return await _0x79f9fa(_0x17024b);}},'only':{'value':function(_0x34a713){const _0x531ba0=_0x5e06f4,_0xb3ec13={};for(let _0x1d67b2=0x0;_0x1d67b2<_0x34a713[_0x531ba0(0xc0)];_0x1d67b2++){lodash[_0x531ba0(0xe6)](_0x34a713[_0x1d67b2])&&_0x34a713[_0x1d67b2][_0x531ba0(0xc0)]>0x0&&lodash[_0x531ba0(0x8c)](_0x34a713[_0x1d67b2][0x0])&&(_0xb3ec13[_0x34a713[_0x1d67b2][0x0]]=this[_0x531ba0(0xd6)](_0x34a713[_0x1d67b2][0x0],_0x34a713[_0x1d67b2][_0x531ba0(0xc0)]>0x1?_0x34a713[_0x1d67b2][0x1]:null));}return _0xb3ec13;}}});});}async[a2_0x360172(0x9f)](){const _0x4e9d0e=a2_0x360172;var _0x46aae2,_0x5f4586,_0x4ca777,_0x2f0586,_0x233430,_0xf06597;const _0x1b1a17=this[_0x4e9d0e(0x92)]['getConfiguration']();((_0x5f4586=(_0x46aae2=_0x1b1a17===null||_0x1b1a17===void 0x0?void 0x0:_0x1b1a17[_0x4e9d0e(0xe0)])===null||_0x46aae2===void 0x0?void 0x0:_0x46aae2[_0x4e9d0e(0xa2)])===null||_0x5f4586===void 0x0?void 0x0:_0x5f4586[_0x4e9d0e(0x9d)])&&Object[_0x4e9d0e(0xa8)](_0x1b1a17[_0x4e9d0e(0xe0)][_0x4e9d0e(0xa2)])[_0x4e9d0e(0xc0)]>0x1&&delete _0x1b1a17[_0x4e9d0e(0xe0)][_0x4e9d0e(0xa2)][_0x4e9d0e(0x9d)];if((_0x4ca777=_0x1b1a17===null||_0x1b1a17===void 0x0?void 0x0:_0x1b1a17[_0x4e9d0e(0xba)])===null||_0x4ca777===void 0x0?void 0x0:_0x4ca777[_0x4e9d0e(0xc9)])for(const _0x4b7dc0 in _0x1b1a17[_0x4e9d0e(0xba)][_0x4e9d0e(0xc9)]){((_0x2f0586=_0x1b1a17[_0x4e9d0e(0xba)][_0x4e9d0e(0xc9)][_0x4b7dc0])===null||_0x2f0586===void 0x0?void 0x0:_0x2f0586[_0x4e9d0e(0xb2)])&&typeof((_0x233430=_0x1b1a17[_0x4e9d0e(0xba)][_0x4e9d0e(0xc9)][_0x4b7dc0])===null||_0x233430===void 0x0?void 0x0:_0x233430[_0x4e9d0e(0xb2)])==_0x4e9d0e(0x99)&&!fs[_0x4e9d0e(0x8b)](_0x1b1a17[_0x4e9d0e(0xba)][_0x4e9d0e(0xc9)][_0x4b7dc0]['dir'])&&(fs['mkdirSync'](_0x1b1a17['staticFile']['dirs'][_0x4b7dc0][_0x4e9d0e(0xb2)],{'recursive':!![]}),console[_0x4e9d0e(0x9b)](_0x4e9d0e(0xd3)+_0x1b1a17['staticFile'][_0x4e9d0e(0xc9)][_0x4b7dc0][_0x4e9d0e(0xb2)]));}((_0xf06597=_0x1b1a17===null||_0x1b1a17===void 0x0?void 0x0:_0x1b1a17['upload'])===null||_0xf06597===void 0x0?void 0x0:_0xf06597[_0x4e9d0e(0xdb)])&&!fs[_0x4e9d0e(0x8b)](_0x1b1a17[_0x4e9d0e(0xa1)][_0x4e9d0e(0xdb)])&&(fs[_0x4e9d0e(0x8e)](_0x1b1a17[_0x4e9d0e(0xa1)]['tmpdir'],{'recursive':!![]}),console[_0x4e9d0e(0x9b)](_0x4e9d0e(0xb5)+_0x1b1a17[_0x4e9d0e(0xa1)][_0x4e9d0e(0xdb)])),this[_0x4e9d0e(0x92)][_0x4e9d0e(0xde)](_0x1b1a17);}};__decorate([(0x0,decorator_1[a2_0x360172(0xe9)])(),__metadata(a2_0x360172(0x9c),core_1[a2_0x360172(0xa0)])],CustomConfiguration[a2_0x360172(0xb1)],a2_0x360172(0x92),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x360172(0x9c),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x360172(0xe1),void 0x0),__decorate([(0x0,decorator_1[a2_0x360172(0xe9)])(),__metadata(a2_0x360172(0x9c),core_1[a2_0x360172(0xa7)])],CustomConfiguration[a2_0x360172(0xb1)],a2_0x360172(0xcb),void 0x0),__decorate([(0x0,decorator_1[a2_0x360172(0xe9)])(),__metadata(a2_0x360172(0x9c),core_1[a2_0x360172(0x90)])],CustomConfiguration[a2_0x360172(0xb1)],a2_0x360172(0xa5),void 0x0),__decorate([(0x0,decorator_1[a2_0x360172(0xe9)])(),__metadata(a2_0x360172(0x9c),ApiService_1[a2_0x360172(0x8f)])],CustomConfiguration[a2_0x360172(0xb1)],a2_0x360172(0x8f),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x360172(0xa4)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x360172(0xc2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x360172(0xbd)]=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x5d1c(_0x2f298d,_0x486fab){const _0x31e6df=a2_0x31e6();return a2_0x5d1c=function(_0x5d1c6a,_0x506724){_0x5d1c6a=_0x5d1c6a-0x127;let _0x454198=_0x31e6df[_0x5d1c6a];return _0x454198;},a2_0x5d1c(_0x2f298d,_0x486fab);}const a2_0x284553=a2_0x5d1c;(function(_0x38e316,_0x79b3ff){const _0x5becf6=a2_0x5d1c,_0xf4697e=_0x38e316();while(!![]){try{const _0x20eac7=parseInt(_0x5becf6(0x181))/0x1*(-parseInt(_0x5becf6(0x127))/0x2)+parseInt(_0x5becf6(0x166))/0x3+-parseInt(_0x5becf6(0x173))/0x4+-parseInt(_0x5becf6(0x160))/0x5+-parseInt(_0x5becf6(0x169))/0x6*(-parseInt(_0x5becf6(0x16c))/0x7)+-parseInt(_0x5becf6(0x176))/0x8*(-parseInt(_0x5becf6(0x146))/0x9)+parseInt(_0x5becf6(0x161))/0xa*(-parseInt(_0x5becf6(0x162))/0xb);if(_0x20eac7===_0x79b3ff)break;else _0xf4697e['push'](_0xf4697e['shift']());}catch(_0x3474a5){_0xf4697e['push'](_0xf4697e['shift']());}}}(a2_0x31e6,0xadd7b));var __decorate=this&&this[a2_0x284553(0x155)]||function(_0x5e8d06,_0x4121f9,_0x5d1973,_0x57afd5){const _0x1c39f6=a2_0x284553;var _0x378389=arguments[_0x1c39f6(0x13b)],_0xcff724=_0x378389<0x3?_0x4121f9:_0x57afd5===null?_0x57afd5=Object[_0x1c39f6(0x137)](_0x4121f9,_0x5d1973):_0x57afd5,_0x151d46;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0xcff724=Reflect['decorate'](_0x5e8d06,_0x4121f9,_0x5d1973,_0x57afd5);else{for(var _0x1f2b78=_0x5e8d06['length']-0x1;_0x1f2b78>=0x0;_0x1f2b78--)if(_0x151d46=_0x5e8d06[_0x1f2b78])_0xcff724=(_0x378389<0x3?_0x151d46(_0xcff724):_0x378389>0x3?_0x151d46(_0x4121f9,_0x5d1973,_0xcff724):_0x151d46(_0x4121f9,_0x5d1973))||_0xcff724;}return _0x378389>0x3&&_0xcff724&&Object['defineProperty'](_0x4121f9,_0x5d1973,_0xcff724),_0xcff724;},__metadata=this&&this[a2_0x284553(0x13e)]||function(_0x311c62,_0x12c75e){const _0xe6ab39=a2_0x284553;if(typeof Reflect===_0xe6ab39(0x152)&&typeof Reflect[_0xe6ab39(0x15d)]===_0xe6ab39(0x165))return Reflect[_0xe6ab39(0x15d)](_0x311c62,_0x12c75e);};Object[a2_0x284553(0x138)](exports,a2_0x284553(0x132),{'value':!![]}),exports[a2_0x284553(0x140)]=void 0x0;const decorator_1=require(a2_0x284553(0x14e)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x284553(0x153)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x284553(0x12c)),fs=require('fs'),koa=require(a2_0x284553(0x167)),i18n=require(a2_0x284553(0x14d)),task=require(a2_0x284553(0x142)),upload=require(a2_0x284553(0x151)),staticFile=require(a2_0x284553(0x17d)),crossDomain=require(a2_0x284553(0x16e)),bodyXml=require(a2_0x284553(0x171)),bodyParser=require('koa-bodyparser'),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x284553(0x12a)),anncic=require(a2_0x284553(0x12d)),anncicEvent=require(a2_0x284553(0x159)),anncicTypeorm=require(a2_0x284553(0x17a)),anncicValidator=require(a2_0x284553(0x133)),anncicHelper=require(a2_0x284553(0x14a));let CustomConfiguration=class CustomConfiguration{async[a2_0x284553(0x147)](){const _0xa2dc75=a2_0x284553;await this[_0xa2dc75(0x134)](),await this[_0xa2dc75(0x180)](),await this[_0xa2dc75(0x16a)](),await this[_0xa2dc75(0x15c)]();}async[a2_0x284553(0x180)](){}async[a2_0x284553(0x16a)](){const _0x4ad4c9=a2_0x284553,_0x5846c3=this[_0x4ad4c9(0x164)][_0x4ad4c9(0x12e)]();this[_0x4ad4c9(0x15f)]['registerMethodHandler'](action_1[_0x4ad4c9(0x16f)],_0x290e2b=>{const _0x75d907=_0x4ad4c9,_0x4d5382=_0x290e2b[_0x75d907(0x15d)];return{'before':async _0x3ca729=>{const _0x1131da=_0x75d907;var _0x30161f,_0x53ad59,_0x310428,_0x4b7bb6,_0x599270;const _0x4a9986=(_0x30161f=_0x3ca729===null||_0x3ca729===void 0x0?void 0x0:_0x3ca729[_0x1131da(0x144)])===null||_0x30161f===void 0x0?void 0x0:_0x30161f[core_1[_0x1131da(0x13c)]];if(_0x4a9986){if((_0x4d5382===null||_0x4d5382===void 0x0?void 0x0:_0x4d5382['apimit'])&&!this['ApiService'][_0x1131da(0x14b)]((_0x53ad59=_0x4a9986===null||_0x4a9986===void 0x0?void 0x0:_0x4a9986[_0x1131da(0x170)])===null||_0x53ad59===void 0x0?void 0x0:_0x53ad59[_0x1131da(0x157)]))throw new AnnError(ApiError_1['ApiError'][_0x1131da(0x168)]);((_0x310428=_0x4a9986['headers'])===null||_0x310428===void 0x0?void 0x0:_0x310428['device'])&&((_0x599270=(_0x4b7bb6=_0x5846c3===null||_0x5846c3===void 0x0?void 0x0:_0x5846c3[_0x1131da(0x131)])===null||_0x4b7bb6===void 0x0?void 0x0:_0x4b7bb6[_0x1131da(0x13a)])===null||_0x599270===void 0x0?void 0x0:_0x599270[_0x4a9986[_0x1131da(0x157)][_0x1131da(0x149)]])&&(typeof _0x5846c3[_0x1131da(0x131)]['devices'][_0x4a9986[_0x1131da(0x157)][_0x1131da(0x149)]]['beforeRoute']==_0x1131da(0x165)&&await _0x5846c3[_0x1131da(0x131)][_0x1131da(0x13a)][_0x4a9986[_0x1131da(0x157)][_0x1131da(0x149)]][_0x1131da(0x158)]((_0x4a9986===null||_0x4a9986===void 0x0?void 0x0:_0x4a9986[_0x1131da(0x177)])||undefined,_0x4d5382,_0x4a9986));}},'afterThrow':(_0x411f30,_0x368a3f)=>{throw _0x368a3f;}};});}async[a2_0x284553(0x15c)](){const _0x7ffed=a2_0x284553;this[_0x7ffed(0x17f)]['getApplications']([_0x7ffed(0x15a)])['forEach'](_0xb05b70=>{const _0x361463=_0x7ffed;_0xb05b70['useMiddleware'](bodyXml(this['config'][_0x361463(0x12e)](_0x361463(0x129)))),_0xb05b70['useMiddleware'](bodyParser(this[_0x361463(0x164)]['getConfiguration'](_0x361463(0x14f)))),(_0xb05b70===null||_0xb05b70===void 0x0?void 0x0:_0xb05b70[_0x361463(0x135)])&&Object['defineProperties'](_0xb05b70[_0x361463(0x135)],{'ok':{'value':function(_0x4be2c7,_0x424296,_0x818676=0x0){return{'code':_0x818676,'data':_0x4be2c7,'extra':_0x424296};}},'err':{'value':function(_0x1e5d2d,_0x24f1a1,_0x10b4b5=0x1){return{'code':_0x10b4b5,'extra':_0x24f1a1,'msg':_0x1e5d2d};}},'input':{'value':function(_0x14f072,_0x4bb73a){const _0x569f95=_0x361463;var _0x137fc4;const _0xb0609c=lodash[_0x569f95(0x12f)]({},this[_0x569f95(0x170)]['body']||this['request'][((_0x137fc4=config===null||config===void 0x0?void 0x0:config[_0x569f95(0x129)])===null||_0x137fc4===void 0x0?void 0x0:_0x137fc4[_0x569f95(0x143)])||_0x569f95(0x128)]||{},this['request']['query']||{});return _0x14f072?lodash[_0x569f95(0x148)](_0xb0609c,_0x14f072,_0x4bb73a):_0xb0609c;}},'when':{'value':async function(_0x52b070,_0x48189b){const _0x31647d=_0x361463,_0x23d14b=this['input'](_0x52b070,null);if(!lodash[_0x31647d(0x13f)](_0x23d14b))return await _0x48189b(_0x23d14b);}},'only':{'value':function(_0x61f2e2){const _0x226948=_0x361463,_0xb64906={};for(let _0x550e69=0x0;_0x550e69<_0x61f2e2['length'];_0x550e69++){lodash[_0x226948(0x16d)](_0x61f2e2[_0x550e69])&&_0x61f2e2[_0x550e69][_0x226948(0x13b)]>0x0&&lodash[_0x226948(0x17b)](_0x61f2e2[_0x550e69][0x0])&&(_0xb64906[_0x61f2e2[_0x550e69][0x0]]=this[_0x226948(0x145)](_0x61f2e2[_0x550e69][0x0],_0x61f2e2[_0x550e69]['length']>0x1?_0x61f2e2[_0x550e69][0x1]:null));}return _0xb64906;}}});});}async[a2_0x284553(0x134)](){const _0x45d5e7=a2_0x284553;var _0x1b3338,_0xb93474,_0x3bbcb2,_0x4caffa,_0x41ab5d,_0x90e319;const _0x405e3e=this[_0x45d5e7(0x164)][_0x45d5e7(0x12e)]();((_0xb93474=(_0x1b3338=_0x405e3e===null||_0x405e3e===void 0x0?void 0x0:_0x405e3e[_0x45d5e7(0x131)])===null||_0x1b3338===void 0x0?void 0x0:_0x1b3338[_0x45d5e7(0x13a)])===null||_0xb93474===void 0x0?void 0x0:_0xb93474[_0x45d5e7(0x163)])&&Object[_0x45d5e7(0x17c)](_0x405e3e['anncicapi'][_0x45d5e7(0x13a)])['length']>0x1&&delete _0x405e3e[_0x45d5e7(0x131)][_0x45d5e7(0x13a)][_0x45d5e7(0x163)];if((_0x3bbcb2=_0x405e3e===null||_0x405e3e===void 0x0?void 0x0:_0x405e3e[_0x45d5e7(0x17e)])===null||_0x3bbcb2===void 0x0?void 0x0:_0x3bbcb2[_0x45d5e7(0x178)])for(const _0xca17a2 in _0x405e3e[_0x45d5e7(0x17e)]['dirs']){((_0x4caffa=_0x405e3e[_0x45d5e7(0x17e)][_0x45d5e7(0x178)][_0xca17a2])===null||_0x4caffa===void 0x0?void 0x0:_0x4caffa[_0x45d5e7(0x154)])&&typeof((_0x41ab5d=_0x405e3e['staticFile'][_0x45d5e7(0x178)][_0xca17a2])===null||_0x41ab5d===void 0x0?void 0x0:_0x41ab5d[_0x45d5e7(0x154)])==_0x45d5e7(0x15b)&&!fs[_0x45d5e7(0x13d)](_0x405e3e[_0x45d5e7(0x17e)][_0x45d5e7(0x178)][_0xca17a2][_0x45d5e7(0x154)])&&(fs['mkdirSync'](_0x405e3e[_0x45d5e7(0x17e)]['dirs'][_0xca17a2][_0x45d5e7(0x154)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x405e3e['staticFile'][_0x45d5e7(0x178)][_0xca17a2][_0x45d5e7(0x154)]));}((_0x90e319=_0x405e3e===null||_0x405e3e===void 0x0?void 0x0:_0x405e3e[_0x45d5e7(0x15e)])===null||_0x90e319===void 0x0?void 0x0:_0x90e319[_0x45d5e7(0x150)])&&!fs[_0x45d5e7(0x13d)](_0x405e3e[_0x45d5e7(0x15e)][_0x45d5e7(0x150)])&&(fs[_0x45d5e7(0x139)](_0x405e3e[_0x45d5e7(0x15e)][_0x45d5e7(0x150)],{'recursive':!![]}),console['log'](_0x45d5e7(0x14c)+_0x405e3e[_0x45d5e7(0x15e)][_0x45d5e7(0x150)])),this['config'][_0x45d5e7(0x141)](_0x405e3e);}};__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x284553(0x164),void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1[a2_0x284553(0x172)])],CustomConfiguration[a2_0x284553(0x175)],a2_0x284553(0x15f),void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1[a2_0x284553(0x156)])],CustomConfiguration[a2_0x284553(0x175)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1[a2_0x284553(0x136)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),ApiService_1['ApiService'])],CustomConfiguration[a2_0x284553(0x175)],a2_0x284553(0x174),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x284553(0x16b)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x284553(0x12b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x284553(0x140)]=CustomConfiguration;function a2_0x31e6(){const _0x321310=['decorator','2079135ChqoZu','10gyFkaD','1473153hIFTkW','DEFAULT','config','function','2408601SQJaDN','@midwayjs/koa','HEADERS_SIGNATURE','30anRfqY','handlerActionRoute','Configuration','612661tpbPAX','isArray','@midwayjs/cross-domain','ACTION_ROUTE_KEY','request','koa-xml-body','MidwayDecoratorService','2922104Qfgqyg','ApiService','prototype','8mulJtG','_matchedRoute','dirs','Inject','@anncic-api/typeorm','isString','keys','@midwayjs/static-file','staticFile','application','checkConfigKeys','176017zcENpz','4MekZSc','body','bodyXml','./config/config.production','anncic-api','./types/action','@anncic-api/core','getConfiguration','defaultsDeep','design:type','anncicapi','__esModule','@anncic-api/validator','filterConfig','context','MidwayEnvironmentService','getOwnPropertyDescriptor','defineProperty','mkdirSync','devices','length','REQUEST_OBJ_CTX_KEY','existsSync','__metadata','isNull','CustomConfiguration','addObject','@midwayjs/task','key','target','input','9934983ATeuqM','onReady','get','device','anncic-apihelper','checksign','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/i18n','@midwayjs/decorator','bodyParser','tmpdir','@midwayjs/upload','object','./exception/ApiError','dir','__decorate','MidwayApplicationManager','headers','beforeRoute','@anncic-api/event','koa','string','hanlderApplications','metadata','upload'];a2_0x31e6=function(){return _0x321310;};return a2_0x31e6();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x2f0e38=a3_0x2a73;function a3_0x2a73(_0x13ba09,_0x20e791){const _0x2aa7f0=a3_0x2aa7();return a3_0x2a73=function(_0x2a7373,_0x3631de){_0x2a7373=_0x2a7373-0x1b2;let _0x6588d0=_0x2aa7f0[_0x2a7373];return _0x6588d0;},a3_0x2a73(_0x13ba09,_0x20e791);}(function(_0x8b6c2,_0x5515b4){const _0x3e7176=a3_0x2a73,_0x37a403=_0x8b6c2();while(!![]){try{const _0x3d6d0c=parseInt(_0x3e7176(0x1d5))/0x1*(parseInt(_0x3e7176(0x1e3))/0x2)+parseInt(_0x3e7176(0x1c3))/0x3+parseInt(_0x3e7176(0x1b6))/0x4+parseInt(_0x3e7176(0x1c5))/0x5*(-parseInt(_0x3e7176(0x1e4))/0x6)+-parseInt(_0x3e7176(0x1d6))/0x7+-parseInt(_0x3e7176(0x1be))/0x8+parseInt(_0x3e7176(0x1e0))/0x9*(-parseInt(_0x3e7176(0x1dd))/0xa);if(_0x3d6d0c===_0x5515b4)break;else _0x37a403['push'](_0x37a403['shift']());}catch(_0x55f2c6){_0x37a403['push'](_0x37a403['shift']());}}}(a3_0x2aa7,0xd8719));Object['defineProperty'](exports,a3_0x2f0e38(0x1b9),{'value':!![]}),exports[a3_0x2f0e38(0x1cf)]=exports['Action']=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x2f0e38(0x1df)),action_1=require(a3_0x2f0e38(0x1e2));function a3_0x2aa7(){const _0x138d63=['parseRoute','prefix','tagName','replace','module','saveModule','1377351pIIynP','62846gmzbGN','endsWith','/controller/','-controller','-action','middleware','ACTION_KEY','535540QINHMu','\x20文件请放在apps/','@midwayjs/decorator','153SSUVzz','app/controller/','../types/action','2qWlusF','211290lpLLAo','match','/controller/文件下','middlewareIgnore','join','3530640TSHqIx','isArray','apps/','__esModule','split','length','indexOf','cwd','7168192PTeVRh','substring','filepath','saveClassMetadata','push','1537176XWyxOD','/apps/','10KeBjeO','rootpath','/config.','route','startsWith','Action','splice','toLowerCase','trim','existsSync'];a3_0x2aa7=function(){return _0x138d63;};return a3_0x2aa7();}function Action(_0x443142,_0x4ac99b,_0x573a3b={'middleware':[],'sensitive':!![]}){return _0x197cf4=>{const _0x916d1d=a3_0x2a73;_0x573a3b[_0x916d1d(0x1d1)]=_0x4ac99b;const _0x5dbda4=parseRoute(_0x443142);if(_0x5dbda4[_0x916d1d(0x1d3)]){_0x573a3b['prefix']=_0x573a3b['prefix']?'/'+_0x5dbda4[_0x916d1d(0x1d3)]+'/'+_0x573a3b[_0x916d1d(0x1d0)]:'/'+_0x5dbda4[_0x916d1d(0x1c8)];_0x5dbda4[_0x916d1d(0x1d0)]&&(_0x573a3b[_0x916d1d(0x1d0)]='/'+_0x5dbda4[_0x916d1d(0x1d0)]+'/'+_0x573a3b[_0x916d1d(0x1d0)]);if(fs[_0x916d1d(0x1ce)](_0x5dbda4[_0x916d1d(0x1c6)]+_0x916d1d(0x1c4)+_0x5dbda4[_0x916d1d(0x1d3)]+_0x916d1d(0x1c7)+(lodash['endsWith'](_0x5dbda4[_0x916d1d(0x1c0)],'ts')?'ts':'js'))){const _0x437eb5=include(_0x5dbda4[_0x916d1d(0x1c6)]+_0x916d1d(0x1c4)+_0x5dbda4['module']+_0x916d1d(0x1c7)+(lodash[_0x916d1d(0x1d7)](_0x5dbda4['filepath'],'ts')?'ts':'js'));if(_0x437eb5['middleware']&&lodash[_0x916d1d(0x1b7)](_0x437eb5[_0x916d1d(0x1db)])&&_0x437eb5['middleware'][_0x916d1d(0x1bb)]>0x0)for(let _0x30308a in _0x437eb5['middleware']){_0x437eb5[_0x916d1d(0x1b4)][_0x916d1d(0x1bc)](_0x437eb5[_0x916d1d(0x1db)][_0x30308a])==-0x1&&_0x573a3b['middleware'][_0x916d1d(0x1c2)](_0x437eb5[_0x916d1d(0x1db)][_0x30308a]);}}_0x573a3b[_0x916d1d(0x1d0)]=_0x573a3b[_0x916d1d(0x1d0)][_0x916d1d(0x1cc)]()[_0x916d1d(0x1d2)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x916d1d(0x1d4)])(action_1[_0x916d1d(0x1dc)],_0x197cf4),(0x0,decorator_1['Controller'])(_0x573a3b[_0x916d1d(0x1d0)],_0x573a3b)(_0x197cf4),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x916d1d(0x1dc)],{'prefix':_0x573a3b[_0x916d1d(0x1d0)],'pprefix':_0x5dbda4[_0x916d1d(0x1d0)],'module':_0x5dbda4[_0x916d1d(0x1d3)],'filepath':_0x5dbda4[_0x916d1d(0x1c0)],'routerOptions':_0x573a3b},_0x197cf4);}else _0x573a3b[_0x916d1d(0x1d0)]=_0x573a3b[_0x916d1d(0x1d0)]?'/'+_0x573a3b[_0x916d1d(0x1d0)]:'/'+_0x5dbda4['route'],_0x5dbda4[_0x916d1d(0x1d0)]&&(_0x573a3b['prefix']='/'+_0x5dbda4['prefix']+'/'+_0x573a3b[_0x916d1d(0x1d0)]),_0x573a3b[_0x916d1d(0x1d0)]=_0x573a3b[_0x916d1d(0x1d0)][_0x916d1d(0x1cc)]()[_0x916d1d(0x1d2)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x916d1d(0x1d4)])(action_1[_0x916d1d(0x1dc)],_0x197cf4),(0x0,decorator_1['Controller'])(_0x573a3b[_0x916d1d(0x1d0)],_0x573a3b)(_0x197cf4),(0x0,decorator_1[_0x916d1d(0x1c1)])(action_1[_0x916d1d(0x1dc)],{'prefix':_0x573a3b['prefix'],'module':_0x5dbda4[_0x916d1d(0x1d3)],'pprefix':_0x5dbda4[_0x916d1d(0x1d0)],'filepath':_0x5dbda4[_0x916d1d(0x1c0)],'routerOptions':_0x573a3b},_0x197cf4);};}exports[a3_0x2f0e38(0x1ca)]=Action;function parseRoute(_0x2dc2b5){const _0x3cca66=a3_0x2f0e38;_0x2dc2b5=_0x2dc2b5['replace'](/(\\|\/)/g,'/');const _0x3ecd1c=process[_0x3cca66(0x1bd)]()[_0x3cca66(0x1d2)](/(\\|\/)/g,'/'),_0x114049=_0x2dc2b5[_0x3cca66(0x1bf)](0x0,_0x3ecd1c[_0x3cca66(0x1bb)]+_0x2dc2b5[_0x3cca66(0x1bf)](_0x3ecd1c['length']+0x1)[_0x3cca66(0x1bc)]('/')+0x1),_0x5f161d=_0x2dc2b5[_0x3cca66(0x1bf)](_0x114049[_0x3cca66(0x1bb)]+0x1)[_0x3cca66(0x1d2)](/(\\|\/)/g,'/'),_0x59b5ad={'route':'','prefix':![],'module':![],'rootpath':_0x114049,'filepath':_0x5f161d};if(_0x5f161d['startsWith'](_0x3cca66(0x1e1))){const _0x4c376c=_0x5f161d[_0x3cca66(0x1bf)](_0x3cca66(0x1e1)[_0x3cca66(0x1bb)])[_0x3cca66(0x1ba)]('/')['filter'](_0x5a8a3b=>_0x5a8a3b&&_0x5a8a3b['trim']());return _0x4c376c[_0x3cca66(0x1bb)]>0x1&&(_0x59b5ad[_0x3cca66(0x1d0)]=_0x4c376c[0x0][_0x3cca66(0x1cc)](),_0x4c376c[_0x3cca66(0x1cb)](0x0,0x1)),_0x59b5ad[_0x3cca66(0x1c8)]=('/'+_0x4c376c[_0x3cca66(0x1b5)]('/'))[_0x3cca66(0x1d2)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x3cca66(0x1b5)]('-')[_0x3cca66(0x1cc)]()[_0x3cca66(0x1d2)](/\/\-/g,'/'),_0x59b5ad['route'][_0x3cca66(0x1d7)](_0x3cca66(0x1da))&&(_0x59b5ad[_0x3cca66(0x1c8)]=_0x59b5ad[_0x3cca66(0x1c8)][_0x3cca66(0x1bf)](0x0,_0x59b5ad[_0x3cca66(0x1c8)][_0x3cca66(0x1bb)]-0x7)),_0x59b5ad['route'][_0x3cca66(0x1d7)](_0x3cca66(0x1d9))&&(_0x59b5ad['route']=_0x59b5ad[_0x3cca66(0x1c8)][_0x3cca66(0x1bf)](0x0,_0x59b5ad[_0x3cca66(0x1c8)][_0x3cca66(0x1bb)]-0xb)),_0x59b5ad;}else{if(_0x5f161d['startsWith'](_0x3cca66(0x1b8))){const _0x2dca2a=_0x5f161d[_0x3cca66(0x1bf)](0x0,_0x5f161d[_0x3cca66(0x1bc)](_0x3cca66(0x1c4))+0x5),_0x533c2f=_0x5f161d[_0x3cca66(0x1bf)](_0x2dca2a[_0x3cca66(0x1bb)]+0x1)[_0x3cca66(0x1d2)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x5f161d[_0x3cca66(0x1c9)](_0x3cca66(0x1b8)+_0x533c2f+'/controller/')){const _0x39e7c8=_0x5f161d['substring']((_0x2dca2a+'/'+_0x533c2f+_0x3cca66(0x1d8))[_0x3cca66(0x1bb)])['split']('/')['filter'](_0x5e3b12=>_0x5e3b12&&_0x5e3b12[_0x3cca66(0x1cd)]());return _0x39e7c8['length']>0x1&&(_0x59b5ad[_0x3cca66(0x1d0)]=_0x39e7c8[0x0]['toLowerCase'](),_0x39e7c8[_0x3cca66(0x1cb)](0x0,0x1)),_0x59b5ad[_0x3cca66(0x1d3)]=_0x533c2f,_0x59b5ad[_0x3cca66(0x1c8)]=('/'+_0x533c2f+'/'+_0x39e7c8[_0x3cca66(0x1b5)]('/'))[_0x3cca66(0x1d2)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x3cca66(0x1b2)](/[\/|A-Z]*[^A-Z]+/g)[_0x3cca66(0x1b5)]('-')[_0x3cca66(0x1cc)]()[_0x3cca66(0x1d2)](/\/\-/g,'/'),_0x59b5ad[_0x3cca66(0x1c8)]['endsWith'](_0x3cca66(0x1da))&&(_0x59b5ad['route']=_0x59b5ad[_0x3cca66(0x1c8)][_0x3cca66(0x1bf)](0x0,_0x59b5ad['route'][_0x3cca66(0x1bb)]-0x7)),_0x59b5ad[_0x3cca66(0x1c8)][_0x3cca66(0x1d7)](_0x3cca66(0x1d9))&&(_0x59b5ad[_0x3cca66(0x1c8)]=_0x59b5ad[_0x3cca66(0x1c8)]['substring'](0x0,_0x59b5ad[_0x3cca66(0x1c8)]['length']-0xb)),_0x59b5ad;}throw new Error(_0x5f161d+_0x3cca66(0x1de)+_0x533c2f+_0x3cca66(0x1b3));}}throw new Error(_0x5f161d+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x5591ce=a4_0x2995;(function(_0x990d62,_0x584799){const _0x57bb74=a4_0x2995,_0x2e24b4=_0x990d62();while(!![]){try{const _0x198880=parseInt(_0x57bb74(0xfc))/0x1+-parseInt(_0x57bb74(0xfa))/0x2*(-parseInt(_0x57bb74(0x103))/0x3)+-parseInt(_0x57bb74(0x102))/0x4+parseInt(_0x57bb74(0x10e))/0x5*(parseInt(_0x57bb74(0x10b))/0x6)+parseInt(_0x57bb74(0x100))/0x7+parseInt(_0x57bb74(0x106))/0x8*(parseInt(_0x57bb74(0xf9))/0x9)+-parseInt(_0x57bb74(0x111))/0xa;if(_0x198880===_0x584799)break;else _0x2e24b4['push'](_0x2e24b4['shift']());}catch(_0x43a199){_0x2e24b4['push'](_0x2e24b4['shift']());}}}(a4_0x4636,0x6d1dd));Object[a4_0x5591ce(0x109)](exports,a4_0x5591ce(0x108),{'value':!![]}),exports['Api']=void 0x0;function a4_0x2995(_0x5b01d9,_0x44dc5a){const _0x463678=a4_0x4636();return a4_0x2995=function(_0x29957a,_0x297d86){_0x29957a=_0x29957a-0xf9;let _0x49640d=_0x463678[_0x29957a];return _0x49640d;},a4_0x2995(_0x5b01d9,_0x44dc5a);}const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x5591ce(0x10d)),action_1=require(a4_0x5591ce(0x116));function Api(_0xf162b4,_0x1289ed=a4_0x5591ce(0x10a),_0x48b91a='/',_0x1a639f={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5951f7,_0x3f1976,_0xa8d48c)=>{const _0x710f89=a4_0x2995;var _0x1229aa,_0x2aff1c,_0x1a4a57;!_0x1a639f[_0x710f89(0x104)]&&(_0x1a639f[_0x710f89(0x104)]=[]);!((_0x1229aa=_0x1a639f===null||_0x1a639f===void 0x0?void 0x0:_0x1a639f[_0x710f89(0xfe)])===null||_0x1229aa===void 0x0?void 0x0:_0x1229aa[_0x710f89(0xfd)])&&(_0x1a639f['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'utc'}});if(((_0x2aff1c=_0x1a639f===null||_0x1a639f===void 0x0?void 0x0:_0x1a639f[_0x710f89(0x104)])===null||_0x2aff1c===void 0x0?void 0x0:_0x2aff1c[_0x710f89(0x110)])>0x0&&((_0x1a4a57=_0x1a639f===null||_0x1a639f===void 0x0?void 0x0:_0x1a639f['middlewareIgnore'])===null||_0x1a4a57===void 0x0?void 0x0:_0x1a4a57[_0x710f89(0x110)])>0x0)for(let _0xa7e931 in _0x1a639f[_0x710f89(0x104)]){_0x1a639f[_0x710f89(0x10f)]['indexOf'](_0x1a639f[_0x710f89(0x104)][_0xa7e931])!==-0x1&&(_0x1a639f[_0x710f89(0x104)][_0xa7e931]=null);}_0x1a639f[_0x710f89(0x112)]=_0xf162b4,(0x0,validator_1[_0x710f89(0x101)])(_0x1a639f[_0x710f89(0xfe)])(_0x5951f7,_0x3f1976,_0xa8d48c),(0x0,decorator_1[_0x710f89(0x105)])(Object[_0x710f89(0xfb)](_0x1a639f,{'path':_0x48b91a,'requestMethod':(_0x1289ed==_0x710f89(0xff)?_0x710f89(0x10c):_0x1289ed)[_0x710f89(0x113)]()}))(_0x5951f7,_0x3f1976,_0xa8d48c),(0x0,decorator_1[_0x710f89(0x117)])(action_1[_0x710f89(0x114)],{'path':_0x48b91a,'method':_0x3f1976,'apimit':_0x1a639f[_0x710f89(0x115)],'routerName':_0x1a639f[_0x710f89(0x112)],'description':_0x1a639f['description'],'middleware':(_0x1a639f[_0x710f89(0x104)]||[])['filter'](_0x2f204a=>!!_0x2f204a),'requestMethod':(_0x1289ed==_0x710f89(0xff)?_0x710f89(0x10c):_0x1289ed)[_0x710f89(0x113)]()},_0x5951f7),(0x0,decorator_1['createCustomMethodDecorator'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x48b91a,'method':_0x3f1976,'apimit':_0x1a639f[_0x710f89(0x115)],'routerName':_0x1a639f[_0x710f89(0x112)],'description':_0x1a639f[_0x710f89(0x107)],'middleware':(_0x1a639f[_0x710f89(0x104)]||[])['filter'](_0x388853=>!!_0x388853),'requestMethod':(_0x1289ed==_0x710f89(0xff)?'delete':_0x1289ed)[_0x710f89(0x113)]()})(_0x5951f7,_0x3f1976,_0xa8d48c);};}exports['Api']=Api;function a4_0x4636(){const _0x5c56c8=['20332700ldPgXX','routerName','toLowerCase','ACTION_ROUTE_KEY','apimit','../types/action','attachClassMetadata','2043xyLdIM','404662sDiekU','assign','48518ktIXex','validationOptions','validate','del','6172859jwOsOb','Validator','2377104XNIvPp','9uiHuXX','middleware','RequestMapping','28904PKtevi','description','__esModule','defineProperty','get','28872JHixmQ','delete','@midwayjs/decorator','745aQORaT','middlewareIgnore','length'];a4_0x4636=function(){return _0x5c56c8;};return a4_0x4636();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a5_0x58d575=a5_0xa0c2;(function(_0x32d48d,_0xc83df){const _0x5f0525=a5_0xa0c2,_0x23c51c=_0x32d48d();while(!![]){try{const _0x1ab49f=-parseInt(_0x5f0525(0x139))/0x1+-parseInt(_0x5f0525(0x138))/0x2*(-parseInt(_0x5f0525(0x142))/0x3)+-parseInt(_0x5f0525(0x14c))/0x4*(parseInt(_0x5f0525(0x144))/0x5)+parseInt(_0x5f0525(0x13a))/0x6+-parseInt(_0x5f0525(0x140))/0x7+parseInt(_0x5f0525(0x13d))/0x8+-parseInt(_0x5f0525(0x145))/0x9;if(_0x1ab49f===_0xc83df)break;else _0x23c51c['push'](_0x23c51c['shift']());}catch(_0x3cbe68){_0x23c51c['push'](_0x23c51c['shift']());}}}(a5_0x1519,0x77c60));function a5_0xa0c2(_0x18564a,_0x5b2ad9){const _0x151943=a5_0x1519();return a5_0xa0c2=function(_0xa0c25a,_0x58cbae){_0xa0c25a=_0xa0c25a-0x138;let _0x50c67f=_0x151943[_0xa0c25a];return _0x50c67f;},a5_0xa0c2(_0x18564a,_0x5b2ad9);}function a5_0x1519(){const _0x2aaee9=['139772xuCmTO','5206578foomff','apitest','Apitest','6160952uYMNYG','MidwayEnvironmentService','RequestMapping','3821405rEhwjb','filepath','789OksinO','getApplicationContext','335mLHgiq','201267CLLVRH','/apitest','value','@midwayjs/decorator','__esModule','get','getAsync','41124HWlvKO','getConfig','ApitestService','REQUEST_OBJ_CTX_KEY','isDevelopmentEnvironment','defineProperty','app','1898KtyOlw'];a5_0x1519=function(){return _0x2aaee9;};return a5_0x1519();}Object[a5_0x58d575(0x151)](exports,a5_0x58d575(0x149),{'value':!![]}),exports[a5_0x58d575(0x13c)]=void 0x0;const decorator_1=require(a5_0x58d575(0x148)),core_1=require('@midwayjs/core'),ApitestService_1=require('../service/ApitestService');function Apitest(_0x1aea12=a5_0x58d575(0x146),_0x174930){return(_0x6d7054,_0x3bd3fa,_0x1394d1)=>{const _0x3e81ef=a5_0xa0c2;return(0x0,decorator_1[_0x3e81ef(0x13f)])({'path':_0x1aea12,'requestMethod':_0x3e81ef(0x14a)})(_0x6d7054,_0x3bd3fa,_0x1394d1),_0x1394d1[_0x3e81ef(0x147)]=async function(..._0x3c67f5){const _0x46a1df=_0x3e81ef;var _0x460802;const _0x4cf93f=(_0x460802=this[core_1[_0x46a1df(0x14f)]])===null||_0x460802===void 0x0?void 0x0:_0x460802[_0x46a1df(0x152)];if(_0x4cf93f&&_0x4cf93f[_0x46a1df(0x14d)](_0x46a1df(0x13b))){const _0x4255e2=await _0x4cf93f[_0x46a1df(0x143)]()['getAsync'](ApitestService_1[_0x46a1df(0x14e)]),_0x44baed=await _0x4cf93f[_0x46a1df(0x143)]()[_0x46a1df(0x14b)](core_1[_0x46a1df(0x13e)]);return _0x44baed[_0x46a1df(0x150)]()&&(_0x174930[_0x46a1df(0x141)]=!![]),await _0x4255e2['apidoc'](_0x174930);}return'';},_0x1394d1;};}exports[a5_0x58d575(0x13c)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a6_0x48c8(_0x4cb812,_0x463443){var _0x1d8e8b=a6_0x1d8e();return a6_0x48c8=function(_0x48c842,_0x3e110a){_0x48c842=_0x48c842-0x70;var _0x385979=_0x1d8e8b[_0x48c842];return _0x385979;},a6_0x48c8(_0x4cb812,_0x463443);}var a6_0xdd06bb=a6_0x48c8;function a6_0x1d8e(){var _0x287759=['__metadata','1585870EuQoKy','请使用正确的设备','function','ApiError','HEADERS_SIGNATURE','20346RPjAgF','length','__decorate','1353975KxizpM','design:type','getOwnPropertyDescriptor','__esModule','HEADERS_LACK','checkcode验证失败','TIMEOUT','HEADERS_CHECKCODE','defineProperty','2776888xAcpfT','metadata','请求头信息不完整','507983sQiFuU','HEADERS_DEVICE','decorate','1043AzJSYn','网络繁忙,请稍后重试','1928566XyhxxD','5330832MRZvYs','object'];a6_0x1d8e=function(){return _0x287759;};return a6_0x1d8e();}(function(_0x243bad,_0x4bc612){var _0x3c38ca=a6_0x48c8,_0x184901=_0x243bad();while(!![]){try{var _0x303734=-parseInt(_0x3c38ca(0x70))/0x1+-parseInt(_0x3c38ca(0x75))/0x2+parseInt(_0x3c38ca(0x81))/0x3+parseInt(_0x3c38ca(0x8a))/0x4+-parseInt(_0x3c38ca(0x79))/0x5+-parseInt(_0x3c38ca(0x7e))/0x6*(-parseInt(_0x3c38ca(0x73))/0x7)+parseInt(_0x3c38ca(0x76))/0x8;if(_0x303734===_0x4bc612)break;else _0x184901['push'](_0x184901['shift']());}catch(_0x3c6b7f){_0x184901['push'](_0x184901['shift']());}}}(a6_0x1d8e,0x80d68));var __decorate=this&&this[a6_0xdd06bb(0x80)]||function(_0x223aba,_0x2ba5d8,_0x34d16d,_0xf3bb8e){var _0x342cfc=a6_0xdd06bb,_0x227967=arguments[_0x342cfc(0x7f)],_0x5aaac9=_0x227967<0x3?_0x2ba5d8:_0xf3bb8e===null?_0xf3bb8e=Object[_0x342cfc(0x83)](_0x2ba5d8,_0x34d16d):_0xf3bb8e,_0x30f390;if(typeof Reflect===_0x342cfc(0x77)&&typeof Reflect['decorate']==='function')_0x5aaac9=Reflect[_0x342cfc(0x72)](_0x223aba,_0x2ba5d8,_0x34d16d,_0xf3bb8e);else{for(var _0x516498=_0x223aba['length']-0x1;_0x516498>=0x0;_0x516498--)if(_0x30f390=_0x223aba[_0x516498])_0x5aaac9=(_0x227967<0x3?_0x30f390(_0x5aaac9):_0x227967>0x3?_0x30f390(_0x2ba5d8,_0x34d16d,_0x5aaac9):_0x30f390(_0x2ba5d8,_0x34d16d))||_0x5aaac9;}return _0x227967>0x3&&_0x5aaac9&&Object[_0x342cfc(0x89)](_0x2ba5d8,_0x34d16d,_0x5aaac9),_0x5aaac9;},__metadata=this&&this[a6_0xdd06bb(0x78)]||function(_0x2a3339,_0x3aa71e){var _0x5140fe=a6_0xdd06bb;if(typeof Reflect===_0x5140fe(0x77)&&typeof Reflect[_0x5140fe(0x8b)]===_0x5140fe(0x7b))return Reflect[_0x5140fe(0x8b)](_0x2a3339,_0x3aa71e);};Object[a6_0xdd06bb(0x89)](exports,a6_0xdd06bb(0x84),{'value':!![]}),exports[a6_0xdd06bb(0x7c)]=void 0x0;class ApiError{}ApiError[a6_0xdd06bb(0x87)]=0x18a89,ApiError['HEADERS_LACK']=0x18a8a,ApiError[a6_0xdd06bb(0x71)]=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError['HEADERS_SIGNATURE']=0x18a8d,__decorate([AnnErrorMsg(a6_0xdd06bb(0x74)),__metadata(a6_0xdd06bb(0x82),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0xdd06bb(0x8c)),__metadata('design:type',Object)],ApiError,a6_0xdd06bb(0x85),void 0x0),__decorate([AnnErrorMsg(a6_0xdd06bb(0x7a)),__metadata('design:type',Object)],ApiError,a6_0xdd06bb(0x71),void 0x0),__decorate([AnnErrorMsg(a6_0xdd06bb(0x86)),__metadata(a6_0xdd06bb(0x82),Object)],ApiError,a6_0xdd06bb(0x88),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0xdd06bb(0x82),Object)],ApiError,a6_0xdd06bb(0x7d),void 0x0),exports[a6_0xdd06bb(0x7c)]=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0xcd8352=a7_0x46f7;(function(_0x2d00c0,_0x2ad6ce){const _0x326986=a7_0x46f7,_0x2403d1=_0x2d00c0();while(!![]){try{const _0x5c5417=-parseInt(_0x326986(0xdb))/0x1+parseInt(_0x326986(0xa0))/0x2+-parseInt(_0x326986(0xb6))/0x3*(parseInt(_0x326986(0xdc))/0x4)+-parseInt(_0x326986(0xb7))/0x5+-parseInt(_0x326986(0xb1))/0x6+parseInt(_0x326986(0xd1))/0x7*(parseInt(_0x326986(0xd4))/0x8)+parseInt(_0x326986(0xa4))/0x9;if(_0x5c5417===_0x2ad6ce)break;else _0x2403d1['push'](_0x2403d1['shift']());}catch(_0x2dcab5){_0x2403d1['push'](_0x2403d1['shift']());}}}(a7_0x2038,0xf0aad));Object[a7_0xcd8352(0xc9)](exports,a7_0xcd8352(0xd5),{'value':!![]}),exports[a7_0xcd8352(0xc3)]=void 0x0;function a7_0x2038(){const _0x59e933=['function','number','describe','4207kYeZrL','array','RULES_KEY','8344wSCBjk','__esModule','join','@anncic-api/validator','requestMethod','object','routerOptions','67477FBsosy','3325492AtJyVs','QUERY','Number','metadata','push','String','INJECT_CUSTOM_PARAM','noreq','min','log','routerName','rules','name','ACTION_ROUTE_KEY','file','flags.default','required','Object','filepath','routes','type','../types/action','header','method','prefix','length','getClassMetadata','summary','PARAM','title','pprefix','body','module','filter','lodash','propertyData','2872326MMaxhq','iterator','RouteParamTypes','test','16310898mxOiGF','children','key','path','concat','ACTION_KEY','FILESSTREAM','listModule','-array','File','getMethodParamTypes','args','request','6951024IrRCLd','split','flags.description','route','flags.label','3yTySkC','4161005AGkQqJ','description','parameterIndex','items','limit','indexOf','tagName','Boolean','/static/apitest','HEADERS','find','startsWith','getRoutes','query','@midwayjs/decorator','static/apitest','flags.presence','replace','defineProperty','default','isArray','allow','get'];a7_0x2038=function(){return _0x59e933;};return a7_0x2038();}const lodash_1=require(a7_0xcd8352(0x9e)),validator_1=require(a7_0xcd8352(0xd7)),decorator_1=require(a7_0xcd8352(0xc5)),decorator_2=require(a7_0xcd8352(0xc5)),decorator_3=require(a7_0xcd8352(0xc5)),action_1=require(a7_0xcd8352(0x91));function getRoutes(_0x1b93bb={'prefix':'/','module':![]}){const _0x20702e=a7_0xcd8352;var _0x4e7a10,_0x5025d6;const _0x52d813=(0x0,decorator_3[_0x20702e(0xab)])(action_1['ACTION_KEY']),_0x16b137={},_0xbf639=Array[_0x20702e(0xcb)](_0x1b93bb[_0x20702e(0x9d)]||[])?_0x1b93bb[_0x20702e(0x9d)]||[]:[_0x1b93bb[_0x20702e(0x9d)]];_0x27fc00:for(const _0x2f2325 of _0x52d813){let _0x4c754a=(0x0,decorator_3['getClassMetadata'])(action_1[_0x20702e(0xa9)],_0x2f2325),_0x3e2a1d=(0x0,decorator_3[_0x20702e(0x96)])(action_1[_0x20702e(0x89)],_0x2f2325);if(_0x4c754a&&_0x3e2a1d){let _0x5478f=_0x4c754a[_0x20702e(0x94)],_0x1450e2={};if(_0x1b93bb[_0x20702e(0x9c)]&&(0x0,lodash_1[_0x20702e(0xcd)])(_0x4c754a,_0x20702e(0x9c),![])!=_0x1b93bb[_0x20702e(0x9c)])continue _0x27fc00;else{if(_0x1b93bb['module']===![]&&!!(0x0,lodash_1[_0x20702e(0xcd)])(_0x4c754a,_0x20702e(0x9c),null))continue _0x27fc00;}if(_0x1b93bb[_0x20702e(0x94)]&&!_0x5478f[_0x20702e(0xc2)](_0x1b93bb[_0x20702e(0x94)]))continue _0x27fc00;_0x5478f!=='/'?(_0x1450e2[_0x20702e(0x97)]=(_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a['routerOptions'][_0x20702e(0xbd)])||(/^\//[_0x20702e(0xa3)](_0x5478f)?_0x5478f[_0x20702e(0xb2)]('/')[0x1]:_0x5478f),_0x1450e2[_0x20702e(0xb8)]=(_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a[_0x20702e(0xda)][_0x20702e(0xb8)])||_0x1450e2['summary'],_0x1450e2[_0x20702e(0x8f)]=[]):(_0x1450e2[_0x20702e(0x97)]=(_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a[_0x20702e(0xda)][_0x20702e(0xbd)])||_0x20702e(0xca),_0x1450e2['description']=(_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a[_0x20702e(0xda)][_0x20702e(0xb8)])||'',_0x1450e2[_0x20702e(0x8f)]=[]);_0x1b93bb['filepath']&&(_0x1450e2[_0x20702e(0x8e)]=_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a[_0x20702e(0x8e)]);(_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a[_0x20702e(0x9a)])&&(_0x1450e2[_0x20702e(0x94)]=_0x4c754a['pprefix']);(_0x4c754a===null||_0x4c754a===void 0x0?void 0x0:_0x4c754a[_0x20702e(0x9c)])&&(_0x1450e2['module']=_0x4c754a[_0x20702e(0x9c)]);let _0x148cad=(0x0,decorator_3[_0x20702e(0x96)])(decorator_2[_0x20702e(0xe2)],_0x2f2325)||{};if(typeof _0x3e2a1d[Symbol[_0x20702e(0xa1)]]===_0x20702e(0xce))for(let _0x277578 of _0x3e2a1d){let _0x15e1a7={};_0x15e1a7[_0x20702e(0x93)]=_0x277578[_0x20702e(0xd8)],_0x15e1a7[_0x20702e(0xb4)]=(_0x5478f+_0x277578[_0x20702e(0xa7)])[_0x20702e(0xc8)](/\/{1,}/,'/'),_0x15e1a7[_0x20702e(0x97)]=(_0x277578===null||_0x277578===void 0x0?void 0x0:_0x277578[_0x20702e(0x86)])||_0x1450e2[_0x20702e(0x97)]||_0x20702e(0xca),_0x15e1a7['description']=(_0x277578===null||_0x277578===void 0x0?void 0x0:_0x277578['description'])||'',_0x15e1a7[_0x20702e(0xb0)]=[];if(!(0x0,lodash_1[_0x20702e(0xc2)])(_0x15e1a7[_0x20702e(0xb4)],_0x20702e(0xc6))&&!(0x0,lodash_1[_0x20702e(0xc2)])(_0x15e1a7[_0x20702e(0xb4)],_0x20702e(0xbf))&&_0xbf639[_0x20702e(0xbc)](_0x15e1a7[_0x20702e(0xb4)])===-0x1){if(!(_0x1b93bb===null||_0x1b93bb===void 0x0?void 0x0:_0x1b93bb[_0x20702e(0x83)])){let _0xfb46ab=(0x0,decorator_3[_0x20702e(0xae)])(new _0x2f2325(),_0x277578['method']);for(const _0x58667c in _0xfb46ab){let _0x36d6db=(_0x4e7a10=_0x148cad[_0x277578[_0x20702e(0x93)]])===null||_0x4e7a10===void 0x0?void 0x0:_0x4e7a10[_0x20702e(0xc1)](_0x4e556a=>_0x4e556a['parameterIndex']==_0x58667c&&_0x4e556a[_0x20702e(0xa6)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x4e556a===null||_0x4e556a===void 0x0?void 0x0:_0x4e556a[_0x20702e(0xdf)]));if(_0x36d6db===null||_0x36d6db===void 0x0?void 0x0:_0x36d6db[_0x20702e(0xdf)]){let _0x180628=convertTypeToString(_0x36d6db[_0x20702e(0xdf)][_0x20702e(0x90)]||0x0);if([_0x20702e(0xc4),_0x20702e(0x9b)][_0x20702e(0xbc)](_0x180628)!=-0x1&&_0x36d6db[_0x20702e(0xdf)][_0x20702e(0x9f)]['indexOf'](':')==-0x1&&!_0x15e1a7[_0x20702e(0xb0)]['find'](_0x3c2ad0=>_0x3c2ad0['key']==_0x36d6db[_0x20702e(0xdf)][_0x20702e(0x9f)]))_0x15e1a7['request'][_0x20702e(0xe0)]({'key':_0x36d6db[_0x20702e(0xdf)]['propertyData'],'title':_0x36d6db['metadata'][_0x20702e(0x9f)],'type':convertSchemaType(_0xfb46ab[_0x36d6db[_0x20702e(0xb9)]][_0x20702e(0x88)]),'required':![],'default':'','desc':''});else{if(_0x180628==_0x20702e(0x8a)){let _0x579d26=((_0x5025d6=_0x36d6db===null||_0x36d6db===void 0x0?void 0x0:_0x36d6db['metadata'])===null||_0x5025d6===void 0x0?void 0x0:_0x5025d6[_0x20702e(0x9f)])||_0x20702e(0x8a);_0x579d26[_0x20702e(0xbc)](':')==-0x1&&!_0x15e1a7[_0x20702e(0xb0)]['find'](_0x2ab5c2=>_0x2ab5c2[_0x20702e(0xa6)]==_0x579d26&&_0x2ab5c2[_0x20702e(0x90)]=='file')&&_0x15e1a7[_0x20702e(0xb0)][_0x20702e(0xe0)]({'key':_0x579d26,'title':'文件上传-'+_0x579d26,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x3df345=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x20702e(0xd3)],_0xfb46ab[_0x58667c]);_0x3df345&&_0x15e1a7['request'][_0x20702e(0xe0)](...getJoiRequest(_0x3df345));}}}_0x1450e2[_0x20702e(0x8f)][_0x20702e(0xe0)](_0x15e1a7);}}if(_0x1450e2[_0x20702e(0x8f)]['length']>0x0){let _0xfaf78c=_0x16b137[_0x5478f];_0xfaf78c?(_0xfaf78c[_0x20702e(0x97)]!=_0x1450e2[_0x20702e(0x97)]&&(_0xfaf78c[_0x20702e(0x97)]=_0xfaf78c[_0x20702e(0x97)]+','+_0x1450e2['summary']),_0xfaf78c[_0x20702e(0xb8)]!=_0x1450e2[_0x20702e(0xb8)]&&(_0xfaf78c[_0x20702e(0xb8)]=_0xfaf78c[_0x20702e(0xb8)]+','+_0x1450e2[_0x20702e(0xb8)]),_0xfaf78c[_0x20702e(0x8f)]=_0xfaf78c[_0x20702e(0x8f)][_0x20702e(0xa8)](_0x1450e2['routes']),_0x16b137[_0x5478f]=_0xfaf78c):_0x16b137[_0x5478f]=_0x1450e2;}}}return _0x16b137;}exports['getRoutes']=getRoutes;function a7_0x46f7(_0x4660e1,_0x148841){const _0x203850=a7_0x2038();return a7_0x46f7=function(_0x46f77f,_0x5a7dc4){_0x46f77f=_0x46f77f-0x83;let _0x2a3ef4=_0x203850[_0x46f77f];return _0x2a3ef4;},a7_0x46f7(_0x4660e1,_0x148841);}function getJoiRequest(_0x94b59c){const _0x4ea433=a7_0xcd8352,_0x126b9b=[];for(let _0x109c1c in _0x94b59c){const _0x54a4a9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x54b8ba=typeof _0x94b59c[_0x109c1c][_0x4ea433(0xd0)]=='function'?_0x94b59c[_0x109c1c][_0x4ea433(0xd0)]():_0x94b59c[_0x109c1c];_0x54a4a9[_0x4ea433(0xa6)]=_0x109c1c,_0x54a4a9['type']=_0x54b8ba[_0x4ea433(0x90)],_0x54a4a9['title']=(0x0,lodash_1[_0x4ea433(0xcd)])(_0x54b8ba,_0x4ea433(0xb5),_0x109c1c),_0x54a4a9[_0x4ea433(0xca)]=(0x0,lodash_1[_0x4ea433(0xcd)])(_0x54b8ba,_0x4ea433(0x8b),''),_0x54a4a9[_0x4ea433(0x8c)]=(0x0,lodash_1[_0x4ea433(0xcd)])(_0x54b8ba,_0x4ea433(0xc7),'')==_0x4ea433(0x8c),_0x54a4a9['description']=(0x0,lodash_1[_0x4ea433(0xcd)])(_0x54b8ba,_0x4ea433(0xb3),'');if(_0x54b8ba[_0x4ea433(0x90)]==_0x4ea433(0xd9))_0x54a4a9[_0x4ea433(0xa5)]=getJoiRequest(_0x54b8ba['keys']);else _0x54b8ba['type']==_0x4ea433(0xd2)&&_0x54b8ba[_0x4ea433(0xba)]&&Array['isArray'](_0x54b8ba[_0x4ea433(0xba)])&&_0x54b8ba[_0x4ea433(0xba)][0x0]&&console[_0x4ea433(0x85)](_0x109c1c+_0x4ea433(0xac),_0x54b8ba);_0x54b8ba[_0x4ea433(0xcc)]&&Array[_0x4ea433(0xcb)](_0x54b8ba[_0x4ea433(0xcc)])&&_0x54b8ba['allow'][_0x4ea433(0x95)]>0x0&&(_0x54a4a9[_0x4ea433(0xb8)]='只允许:['+_0x54b8ba['allow'][_0x4ea433(0xd6)](',')+'];'+_0x54a4a9[_0x4ea433(0xb8)]);if(_0x54a4a9['key']&&_0x54a4a9[_0x4ea433(0x90)]){const _0x1845c8={};for(const _0x624770 of _0x54b8ba[_0x4ea433(0x87)]||[]){if(_0x624770[_0x4ea433(0x88)]===_0x4ea433(0x84)&&_0x624770[_0x4ea433(0xaf)])_0x1845c8[_0x4ea433(0x84)]=_0x624770[_0x4ea433(0xaf)][_0x4ea433(0xbb)];else _0x624770[_0x4ea433(0x88)]==='max'&&(_0x1845c8['max']=_0x624770[_0x4ea433(0xaf)][_0x4ea433(0xbb)]);}_0x54a4a9[_0x4ea433(0x87)]=_0x1845c8;}_0x54a4a9['key']&&_0x54a4a9[_0x4ea433(0x99)]&&_0x126b9b[_0x4ea433(0xe0)](_0x54a4a9);}return _0x126b9b;}function convertSchemaType(_0x186b3d){const _0x9095fa=a7_0xcd8352;switch(_0x186b3d){case _0x9095fa(0x8d):return _0x9095fa(0xd9);case _0x9095fa(0xbe):return'boolean';case _0x9095fa(0xde):return _0x9095fa(0xcf);case _0x9095fa(0xe1):return'string';case _0x9095fa(0xad):return'file';default:return'string';}}function convertTypeToString(_0x48b8da){const _0x36a207=a7_0xcd8352;switch(_0x48b8da){case decorator_1[_0x36a207(0xa2)][_0x36a207(0xc0)]:return'header';case decorator_1['RouteParamTypes'][_0x36a207(0xdd)]:return _0x36a207(0xc4);case decorator_1[_0x36a207(0xa2)][_0x36a207(0x98)]:return'path';case decorator_1[_0x36a207(0xa2)]['BODY']:return _0x36a207(0x9b);case decorator_1[_0x36a207(0xa2)]['FIELDS']:case decorator_1[_0x36a207(0xa2)][_0x36a207(0xaa)]:case decorator_1[_0x36a207(0xa2)]['FILESTREAM']:return _0x36a207(0x8a);default:return _0x36a207(0x92);}}
|
|
1
|
+
'use strict';const a7_0x3b9aea=a7_0x5c51;(function(_0x51f4d6,_0x3b64fb){const _0x504f72=a7_0x5c51,_0x30b7bb=_0x51f4d6();while(!![]){try{const _0x26b005=-parseInt(_0x504f72(0x1bb))/0x1+parseInt(_0x504f72(0x1a4))/0x2*(-parseInt(_0x504f72(0x1aa))/0x3)+parseInt(_0x504f72(0x1b1))/0x4+-parseInt(_0x504f72(0x1e7))/0x5+parseInt(_0x504f72(0x1ef))/0x6+parseInt(_0x504f72(0x1e5))/0x7*(-parseInt(_0x504f72(0x1ed))/0x8)+-parseInt(_0x504f72(0x1ec))/0x9*(-parseInt(_0x504f72(0x1ba))/0xa);if(_0x26b005===_0x3b64fb)break;else _0x30b7bb['push'](_0x30b7bb['shift']());}catch(_0x4de3c3){_0x30b7bb['push'](_0x30b7bb['shift']());}}}(a7_0x4908,0x41ca2));function a7_0x5c51(_0x44d3c0,_0x53830c){const _0x4908b2=a7_0x4908();return a7_0x5c51=function(_0x5c51f3,_0x52dcbb){_0x5c51f3=_0x5c51f3-0x18f;let _0xdde32c=_0x4908b2[_0x5c51f3];return _0xdde32c;},a7_0x5c51(_0x44d3c0,_0x53830c);}Object[a7_0x3b9aea(0x196)](exports,a7_0x3b9aea(0x1cc),{'value':!![]}),exports[a7_0x3b9aea(0x1b7)]=void 0x0;const lodash_1=require(a7_0x3b9aea(0x194)),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x3b9aea(0x1e3)),decorator_2=require(a7_0x3b9aea(0x1e3)),decorator_3=require(a7_0x3b9aea(0x1e3)),action_1=require(a7_0x3b9aea(0x1a1));function getRoutes(_0x221e24={'prefix':'/','module':![]}){const _0x391461=a7_0x3b9aea;var _0x59e49f,_0x17a978;const _0x183bac=(0x0,decorator_3['listModule'])(action_1['ACTION_KEY']),_0x20e704={},_0x301f07=Array[_0x391461(0x1b6)](_0x221e24[_0x391461(0x1e2)]||[])?_0x221e24[_0x391461(0x1e2)]||[]:[_0x221e24['filter']];_0x8d091f:for(const _0x349b60 of _0x183bac){let _0x5b2483=(0x0,decorator_3[_0x391461(0x1d2)])(action_1[_0x391461(0x198)],_0x349b60),_0x4bf462=(0x0,decorator_3[_0x391461(0x1d2)])(action_1['ACTION_ROUTE_KEY'],_0x349b60);if(_0x5b2483&&_0x4bf462){let _0x503014=_0x5b2483[_0x391461(0x1b9)],_0x185dbd={};if(_0x221e24[_0x391461(0x1ee)]&&(0x0,lodash_1[_0x391461(0x1ca)])(_0x5b2483,_0x391461(0x1ee),![])!=_0x221e24[_0x391461(0x1ee)])continue _0x8d091f;else{if(_0x221e24['module']===![]&&!!(0x0,lodash_1[_0x391461(0x1ca)])(_0x5b2483,'module',null))continue _0x8d091f;}if(_0x221e24[_0x391461(0x1b9)]&&!_0x503014[_0x391461(0x193)](_0x221e24[_0x391461(0x1b9)]))continue _0x8d091f;_0x503014!=='/'?(_0x185dbd['summary']=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1eb)][_0x391461(0x1e6)])||(/^\//[_0x391461(0x1d1)](_0x503014)?_0x503014[_0x391461(0x1c1)]('/')[0x1]:_0x503014),_0x185dbd[_0x391461(0x1c8)]=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483['routerOptions'][_0x391461(0x1c8)])||_0x185dbd['summary'],_0x185dbd['routes']=[]):(_0x185dbd[_0x391461(0x1a5)]=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1eb)][_0x391461(0x1e6)])||_0x391461(0x1ce),_0x185dbd[_0x391461(0x1c8)]=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1eb)][_0x391461(0x1c8)])||'',_0x185dbd[_0x391461(0x1d0)]=[]);_0x221e24[_0x391461(0x1c2)]&&(_0x185dbd[_0x391461(0x1c2)]=_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1c2)]);(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1da)])&&(_0x185dbd['prefix']=_0x5b2483[_0x391461(0x1da)]);(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483['module'])&&(_0x185dbd['module']=_0x5b2483[_0x391461(0x1ee)]);let _0x339a87=(0x0,decorator_3[_0x391461(0x1d2)])(decorator_2[_0x391461(0x1a8)],_0x349b60)||{};if(typeof _0x4bf462[Symbol[_0x391461(0x1bd)]]===_0x391461(0x1c9))for(let _0x493991 of _0x4bf462){let _0x3a372a={};_0x3a372a[_0x391461(0x1d5)]=_0x493991[_0x391461(0x1b5)],_0x3a372a['route']=(_0x503014+_0x493991[_0x391461(0x1b4)])[_0x391461(0x1cb)](/\/{1,}/,'/'),_0x3a372a['summary']=(_0x493991===null||_0x493991===void 0x0?void 0x0:_0x493991[_0x391461(0x19c)])||_0x185dbd[_0x391461(0x1a5)]||_0x391461(0x1ce),_0x3a372a[_0x391461(0x1c8)]=(_0x493991===null||_0x493991===void 0x0?void 0x0:_0x493991[_0x391461(0x1c8)])||'',_0x3a372a[_0x391461(0x1d7)]=[];if(!(0x0,lodash_1[_0x391461(0x193)])(_0x3a372a[_0x391461(0x1e0)],_0x391461(0x1b2))&&!(0x0,lodash_1[_0x391461(0x193)])(_0x3a372a[_0x391461(0x1e0)],_0x391461(0x1a7))&&_0x301f07[_0x391461(0x1e8)](_0x3a372a[_0x391461(0x1e0)])===-0x1){if(!(_0x221e24===null||_0x221e24===void 0x0?void 0x0:_0x221e24['noreq'])){let _0x34883d=(0x0,decorator_3[_0x391461(0x192)])(new _0x349b60(),_0x493991[_0x391461(0x1d5)]);for(const _0x48bd3d in _0x34883d){let _0x2f2888=(_0x59e49f=_0x339a87[_0x493991['method']])===null||_0x59e49f===void 0x0?void 0x0:_0x59e49f[_0x391461(0x19e)](_0x504e11=>_0x504e11['parameterIndex']==_0x48bd3d&&_0x504e11[_0x391461(0x1d6)]===decorator_2[_0x391461(0x1d8)]&&(_0x504e11===null||_0x504e11===void 0x0?void 0x0:_0x504e11['metadata']));if(_0x2f2888===null||_0x2f2888===void 0x0?void 0x0:_0x2f2888[_0x391461(0x190)]){let _0x3db049=convertTypeToString(_0x2f2888[_0x391461(0x190)][_0x391461(0x1cd)]||0x0);if([_0x391461(0x1b3),_0x391461(0x1de)]['indexOf'](_0x3db049)!=-0x1&&_0x2f2888[_0x391461(0x190)]['propertyData'][_0x391461(0x1e8)](':')==-0x1&&!_0x3a372a[_0x391461(0x1d7)][_0x391461(0x19e)](_0x3f39dd=>_0x3f39dd['key']==_0x2f2888[_0x391461(0x190)][_0x391461(0x195)]))_0x3a372a['request'][_0x391461(0x1c0)]({'key':_0x2f2888[_0x391461(0x190)]['propertyData'],'title':_0x2f2888[_0x391461(0x190)][_0x391461(0x195)],'type':convertSchemaType(_0x34883d[_0x2f2888[_0x391461(0x1a6)]][_0x391461(0x19b)]),'required':![],'default':'','desc':''});else{if(_0x3db049=='file'){let _0x2998a0=((_0x17a978=_0x2f2888===null||_0x2f2888===void 0x0?void 0x0:_0x2f2888[_0x391461(0x190)])===null||_0x17a978===void 0x0?void 0x0:_0x17a978[_0x391461(0x195)])||_0x391461(0x1cf);_0x2998a0[_0x391461(0x1e8)](':')==-0x1&&!_0x3a372a[_0x391461(0x1d7)][_0x391461(0x19e)](_0x4d2899=>_0x4d2899[_0x391461(0x1d6)]==_0x2998a0&&_0x4d2899[_0x391461(0x1cd)]==_0x391461(0x1cf))&&_0x3a372a[_0x391461(0x1d7)][_0x391461(0x1c0)]({'key':_0x2998a0,'title':_0x391461(0x1dc)+_0x2998a0,'type':_0x391461(0x1cf),'required':!![],'default':'','desc':''});}}}else{const _0x1e3fb6=(0x0,decorator_3[_0x391461(0x1c3)])(validator_1['RULES_KEY'],_0x34883d[_0x48bd3d]);_0x1e3fb6&&_0x3a372a[_0x391461(0x1d7)][_0x391461(0x1c0)](...getJoiRequest(_0x1e3fb6));}}}_0x185dbd[_0x391461(0x1d0)][_0x391461(0x1c0)](_0x3a372a);}}if(_0x185dbd[_0x391461(0x1d0)][_0x391461(0x1ac)]>0x0){let _0x3a1493=_0x20e704[_0x503014];_0x3a1493?(_0x3a1493['summary']!=_0x185dbd['summary']&&(_0x3a1493['summary']=_0x3a1493[_0x391461(0x1a5)]+','+_0x185dbd[_0x391461(0x1a5)]),_0x3a1493[_0x391461(0x1c8)]!=_0x185dbd[_0x391461(0x1c8)]&&(_0x3a1493[_0x391461(0x1c8)]=_0x3a1493[_0x391461(0x1c8)]+','+_0x185dbd['description']),_0x3a1493[_0x391461(0x1d0)]=_0x3a1493[_0x391461(0x1d0)][_0x391461(0x1ea)](_0x185dbd[_0x391461(0x1d0)]),_0x20e704[_0x503014]=_0x3a1493):_0x20e704[_0x503014]=_0x185dbd;}}}return _0x20e704;}exports[a7_0x3b9aea(0x1b7)]=getRoutes;function getJoiRequest(_0x40474f){const _0x42d9b1=a7_0x3b9aea,_0x1a9bbb=[];for(let _0x107bbe in _0x40474f){const _0x466071={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xfeff1b=typeof _0x40474f[_0x107bbe]['describe']==_0x42d9b1(0x1c9)?_0x40474f[_0x107bbe][_0x42d9b1(0x1e9)]():_0x40474f[_0x107bbe];_0x466071[_0x42d9b1(0x1d6)]=_0x107bbe,_0x466071[_0x42d9b1(0x1cd)]=_0xfeff1b[_0x42d9b1(0x1cd)],_0x466071[_0x42d9b1(0x1bf)]=(0x0,lodash_1[_0x42d9b1(0x1ca)])(_0xfeff1b,'flags.label',_0x107bbe),_0x466071['default']=(0x0,lodash_1['get'])(_0xfeff1b,'flags.default',''),_0x466071[_0x42d9b1(0x1c5)]=(0x0,lodash_1[_0x42d9b1(0x1ca)])(_0xfeff1b,_0x42d9b1(0x1df),'')==_0x42d9b1(0x1c5),_0x466071['description']=(0x0,lodash_1[_0x42d9b1(0x1ca)])(_0xfeff1b,_0x42d9b1(0x191),'');if(_0xfeff1b[_0x42d9b1(0x1cd)]==_0x42d9b1(0x1db))_0x466071[_0x42d9b1(0x199)]=getJoiRequest(_0xfeff1b[_0x42d9b1(0x1d4)]);else _0xfeff1b['type']==_0x42d9b1(0x1ad)&&_0xfeff1b[_0x42d9b1(0x1be)]&&Array[_0x42d9b1(0x1b6)](_0xfeff1b['items'])&&_0xfeff1b[_0x42d9b1(0x1be)][0x0]&&console[_0x42d9b1(0x1dd)](_0x107bbe+_0x42d9b1(0x19d),_0xfeff1b);_0xfeff1b['allow']&&Array[_0x42d9b1(0x1b6)](_0xfeff1b['allow'])&&_0xfeff1b[_0x42d9b1(0x1a0)]['length']>0x0&&(_0x466071[_0x42d9b1(0x1c8)]='只允许:['+_0xfeff1b[_0x42d9b1(0x1a0)][_0x42d9b1(0x18f)](',')+'];'+_0x466071['description']);if(_0x466071[_0x42d9b1(0x1d6)]&&_0x466071['type']){const _0x366106={};for(const _0x3b7557 of _0xfeff1b[_0x42d9b1(0x1b0)]||[]){if(_0x3b7557[_0x42d9b1(0x19b)]===_0x42d9b1(0x1af)&&_0x3b7557[_0x42d9b1(0x1c4)])_0x366106[_0x42d9b1(0x1af)]=_0x3b7557[_0x42d9b1(0x1c4)]['limit'];else _0x3b7557[_0x42d9b1(0x19b)]===_0x42d9b1(0x1bc)&&(_0x366106['max']=_0x3b7557[_0x42d9b1(0x1c4)][_0x42d9b1(0x1a9)]);}_0x466071['rules']=_0x366106;}_0x466071[_0x42d9b1(0x1d6)]&&_0x466071[_0x42d9b1(0x1bf)]&&_0x1a9bbb['push'](_0x466071);}return _0x1a9bbb;}function convertSchemaType(_0x47e629){const _0x1e8fdc=a7_0x3b9aea;switch(_0x47e629){case _0x1e8fdc(0x1b8):return'object';case _0x1e8fdc(0x1c6):return _0x1e8fdc(0x19f);case'Number':return _0x1e8fdc(0x1c7);case _0x1e8fdc(0x1e4):return _0x1e8fdc(0x1d3);case _0x1e8fdc(0x1ab):return _0x1e8fdc(0x1cf);default:return'string';}}function convertTypeToString(_0x12094d){const _0xef0eff=a7_0x3b9aea;switch(_0x12094d){case decorator_1['RouteParamTypes']['HEADERS']:return _0xef0eff(0x19a);case decorator_1['RouteParamTypes'][_0xef0eff(0x1e1)]:return _0xef0eff(0x1b3);case decorator_1[_0xef0eff(0x197)][_0xef0eff(0x1a3)]:return _0xef0eff(0x1b4);case decorator_1[_0xef0eff(0x197)]['BODY']:return _0xef0eff(0x1de);case decorator_1[_0xef0eff(0x197)][_0xef0eff(0x1a2)]:case decorator_1[_0xef0eff(0x197)][_0xef0eff(0x1ae)]:case decorator_1['RouteParamTypes'][_0xef0eff(0x1d9)]:return'file';default:return _0xef0eff(0x19a);}}function a7_0x4908(){const _0x4f52fc=['test','getClassMetadata','string','keys','method','key','request','WEB_ROUTER_PARAM_KEY','FILESTREAM','pprefix','object','文件上传-','log','body','flags.presence','route','QUERY','filter','@midwayjs/decorator','String','14wLWTfF','tagName','683325uORkbb','indexOf','describe','concat','routerOptions','804582enFmmb','1215920HGMhAm','module','2305140IdlMsH','join','metadata','flags.description','getMethodParamTypes','startsWith','lodash','propertyData','defineProperty','RouteParamTypes','ACTION_KEY','children','header','name','routerName','-array','find','boolean','allow','../types/action','FIELDS','PARAM','46ZYTCnf','summary','parameterIndex','/static/apitest','INJECT_CUSTOM_PARAM','limit','36303UASIvp','File','length','array','FILESSTREAM','min','rules','2063424YAeUrm','static/apitest','query','path','requestMethod','isArray','getRoutes','Object','prefix','30DAqovM','179798VLWsky','max','iterator','items','title','push','split','filepath','getClassExtendedMetadata','args','required','Boolean','number','description','function','get','replace','__esModule','type','default','file','routes'];a7_0x4908=function(){return _0x4f52fc;};return a7_0x4908();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a8_0x76f9f2=a8_0x4eef;(function(_0x4f53d9,_0x3a4937){var _0x5ee3cc=a8_0x4eef,_0x60c226=_0x4f53d9();while(!![]){try{var _0x3f0e34=-parseInt(_0x5ee3cc(0x1e9))/0x1+-parseInt(_0x5ee3cc(0x1e4))/0x2+-parseInt(_0x5ee3cc(0x1bc))/0x3*(parseInt(_0x5ee3cc(0x1d1))/0x4)+parseInt(_0x5ee3cc(0x1c3))/0x5*(parseInt(_0x5ee3cc(0x1b1))/0x6)+-parseInt(_0x5ee3cc(0x1ce))/0x7+parseInt(_0x5ee3cc(0x1be))/0x8+-parseInt(_0x5ee3cc(0x1b8))/0x9*(-parseInt(_0x5ee3cc(0x1df))/0xa);if(_0x3f0e34===_0x3a4937)break;else _0x60c226['push'](_0x60c226['shift']());}catch(_0x2984ff){_0x60c226['push'](_0x60c226['shift']());}}}(a8_0x1610,0xec6ef));var __createBinding=this&&this[a8_0x76f9f2(0x1b4)]||(Object[a8_0x76f9f2(0x1c8)]?function(_0x2ee908,_0x461ad8,_0x318c47,_0x14ec67){var _0x52be97=a8_0x76f9f2;if(_0x14ec67===undefined)_0x14ec67=_0x318c47;var _0x161025=Object['getOwnPropertyDescriptor'](_0x461ad8,_0x318c47);(!_0x161025||('get'in _0x161025?!_0x461ad8[_0x52be97(0x1b5)]:_0x161025[_0x52be97(0x1ba)]||_0x161025[_0x52be97(0x1e8)]))&&(_0x161025={'enumerable':!![],'get':function(){return _0x461ad8[_0x318c47];}}),Object[_0x52be97(0x1d2)](_0x2ee908,_0x14ec67,_0x161025);}:function(_0xdfef11,_0x1d1d06,_0x3b6620,_0x4d0d89){if(_0x4d0d89===undefined)_0x4d0d89=_0x3b6620;_0xdfef11[_0x4d0d89]=_0x1d1d06[_0x3b6620];}),__exportStar=this&&this[a8_0x76f9f2(0x1ca)]||function(_0x5a276c,_0x3d77f5){var _0x275a11=a8_0x76f9f2;for(var _0xe95378 in _0x5a276c)if(_0xe95378!=='default'&&!Object[_0x275a11(0x1cb)][_0x275a11(0x1cf)][_0x275a11(0x1bb)](_0x3d77f5,_0xe95378))__createBinding(_0x3d77f5,_0x5a276c,_0xe95378);};Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1b5),{'value':!![]}),exports['ScopeEnum']=exports['Scope']=exports[a8_0x76f9f2(0x1d7)]=exports['Provide']=exports[a8_0x76f9f2(0x1cc)]=exports['Config']=exports[a8_0x76f9f2(0x1c1)]=exports['Init']=exports[a8_0x76f9f2(0x1cd)]=exports[a8_0x76f9f2(0x1d5)]=exports[a8_0x76f9f2(0x1c2)]=exports[a8_0x76f9f2(0x1da)]=exports[a8_0x76f9f2(0x1d4)]=exports[a8_0x76f9f2(0x1b0)]=exports[a8_0x76f9f2(0x1d6)]=exports[a8_0x76f9f2(0x1e2)]=exports['ValidatorService']=exports[a8_0x76f9f2(0x1dd)]=exports[a8_0x76f9f2(0x1c9)]=exports[a8_0x76f9f2(0x1e6)]=exports[a8_0x76f9f2(0x1e1)]=exports[a8_0x76f9f2(0x1d0)]=exports[a8_0x76f9f2(0x1eb)]=exports['ApiError']=exports[a8_0x76f9f2(0x1ea)]=exports[a8_0x76f9f2(0x1dc)]=exports[a8_0x76f9f2(0x1c6)]=exports[a8_0x76f9f2(0x1d8)]=void 0x0,__exportStar(require(a8_0x76f9f2(0x1c0)),exports),__exportStar(require('./service/ApitestService'),exports);var getRoutes_1=require(a8_0x76f9f2(0x1de));function a8_0x1610(){var _0x496dc9=['call','289329FJuGRG','./decorator/Action','13800792KEYmoX','Config','./types/common','App','Param','6093215DjWcyu','./service/ExcelService','@midwayjs/decorator','Api','ScopeEnum','create','ExcelService','__exportStar','prototype','Logger','Headers','12066677SVSauI','hasOwnProperty','CacheService','12YqpObX','defineProperty','@anncic-api/cache','Fields','Query','File','Inject','getRoutes','./decorator/ActionApi','Body','./configuration','Action','ValidatorError','./helper/getRoutes','5044710iTFxBI','./exception/ApiError','EventService','Configuration','ValidatorService','2114936qgMACD','./decorator/ActionApitest','ApiService','@anncic-api/validator','configurable','418116TSwDUD','Apitest','QueueService','Files','6QnOXEt','ApiError','./service/ApiService','__createBinding','__esModule','Init','Scope','27XQNuVF','Provide','writable'];a8_0x1610=function(){return _0x496dc9;};return a8_0x1610();}Object[a8_0x76f9f2(0x1d2)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x293e0f=a8_0x76f9f2;return getRoutes_1[_0x293e0f(0x1d8)];}});var ActionApi_1=require(a8_0x76f9f2(0x1d9));function a8_0x4eef(_0x2a2989,_0x1352bb){var _0x16102a=a8_0x1610();return a8_0x4eef=function(_0x4eef2d,_0x40e26f){_0x4eef2d=_0x4eef2d-0x1b0;var _0x3551f9=_0x16102a[_0x4eef2d];return _0x3551f9;},a8_0x4eef(_0x2a2989,_0x1352bb);}Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1c6),{'enumerable':!![],'get':function(){var _0x28c499=a8_0x76f9f2;return ActionApi_1[_0x28c499(0x1c6)];}});var Action_1=require(a8_0x76f9f2(0x1bd));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1dc),{'enumerable':!![],'get':function(){var _0x30beed=a8_0x76f9f2;return Action_1[_0x30beed(0x1dc)];}});var ActionApitest_1=require(a8_0x76f9f2(0x1e5));Object[a8_0x76f9f2(0x1d2)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x3aa1f8=a8_0x76f9f2;return ActionApitest_1[_0x3aa1f8(0x1ea)];}});var ApiError_1=require(a8_0x76f9f2(0x1e0));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1b2),{'enumerable':!![],'get':function(){var _0x99283=a8_0x76f9f2;return ApiError_1[_0x99283(0x1b2)];}});var task_1=require('@midwayjs/task');Object[a8_0x76f9f2(0x1d2)](exports,'QueueService',{'enumerable':!![],'get':function(){var _0x2086da=a8_0x76f9f2;return task_1[_0x2086da(0x1eb)];}});var cache_1=require(a8_0x76f9f2(0x1d3));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1d0),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1e1),{'enumerable':!![],'get':function(){var _0x458e2d=a8_0x76f9f2;return event_1[_0x458e2d(0x1e1)];}});var ApiService_1=require(a8_0x76f9f2(0x1b3));Object['defineProperty'](exports,a8_0x76f9f2(0x1e6),{'enumerable':!![],'get':function(){var _0x8edec5=a8_0x76f9f2;return ApiService_1[_0x8edec5(0x1e6)];}});var ExcelService_1=require(a8_0x76f9f2(0x1c4));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1c9),{'enumerable':!![],'get':function(){var _0x1ecab6=a8_0x76f9f2;return ExcelService_1[_0x1ecab6(0x1c9)];}});var validator_1=require(a8_0x76f9f2(0x1e7));Object['defineProperty'](exports,a8_0x76f9f2(0x1dd),{'enumerable':!![],'get':function(){var _0x554479=a8_0x76f9f2;return validator_1[_0x554479(0x1dd)];}}),Object[a8_0x76f9f2(0x1d2)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x37cbe8=a8_0x76f9f2;return validator_1[_0x37cbe8(0x1e3)];}});var configuration_1=require(a8_0x76f9f2(0x1db));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1e2),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a8_0x76f9f2(0x1c5));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1d6),{'enumerable':!![],'get':function(){var _0x31c681=a8_0x76f9f2;return decorator_1[_0x31c681(0x1d6)];}}),Object[a8_0x76f9f2(0x1d2)](exports,'Files',{'enumerable':!![],'get':function(){var _0x3838ab=a8_0x76f9f2;return decorator_1[_0x3838ab(0x1b0)];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1d4),{'enumerable':!![],'get':function(){var _0x127ec1=a8_0x76f9f2;return decorator_1[_0x127ec1(0x1d4)];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1da),{'enumerable':!![],'get':function(){var _0x5215b9=a8_0x76f9f2;return decorator_1[_0x5215b9(0x1da)];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1c2),{'enumerable':!![],'get':function(){var _0x1d571b=a8_0x76f9f2;return decorator_1[_0x1d571b(0x1c2)];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1d5),{'enumerable':!![],'get':function(){var _0x2afa0a=a8_0x76f9f2;return decorator_1[_0x2afa0a(0x1d5)];}}),Object['defineProperty'](exports,a8_0x76f9f2(0x1cd),{'enumerable':!![],'get':function(){var _0x21e38d=a8_0x76f9f2;return decorator_1[_0x21e38d(0x1cd)];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){var _0x7dbea6=a8_0x76f9f2;return decorator_1[_0x7dbea6(0x1b6)];}});var decorator_2=require(a8_0x76f9f2(0x1c5));Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1c1),{'enumerable':!![],'get':function(){var _0xe749a7=a8_0x76f9f2;return decorator_2[_0xe749a7(0x1c1)];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1bf),{'enumerable':!![],'get':function(){var _0x5a8766=a8_0x76f9f2;return decorator_2[_0x5a8766(0x1bf)];}}),Object[a8_0x76f9f2(0x1d2)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x142970=a8_0x76f9f2;return decorator_2[_0x142970(0x1cc)];}}),Object[a8_0x76f9f2(0x1d2)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x269f8c=a8_0x76f9f2;return decorator_2[_0x269f8c(0x1b9)];}}),Object[a8_0x76f9f2(0x1d2)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x52625d=a8_0x76f9f2;return decorator_2[_0x52625d(0x1d7)];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1b7),{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a8_0x76f9f2(0x1d2)](exports,a8_0x76f9f2(0x1c7),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a9_0x4d00(){var _0x3ca0a0=['Config','495430PiVoKB','fromEntries','now','devices','ApiService','@midwayjs/decorator','getOwnPropertyDescriptor','getcheck','2aOLrig','push','config','17212nEAgqk','entries','getsign','4832334HINCXA','join','length','sort','requesttime','map','function','object','TIMEOUT','缺少头信息:','design:type','password','../exception/ApiError','733517COdlkL','checksign','__decorate','device','HEADERS_DEVICE','toString','HEADERS_LACK','Singleton','52778nbkRbx','checkcode','signature','Provide','ScopeEnum','prototype','HEADERS_CHECKCODE','token','crypto-js','secret=','ApiError','secret','__metadata','undefined','3219312VGkBDF','14BsdedL','2640544dwrnxO','abs','309sCITNf','4520afzjDC','defineProperty','缺少头信息:signature','HEADERS_SIGNATURE','toLowerCase','Scope','MD5','metadata','logintime','__esModule'];a9_0x4d00=function(){return _0x3ca0a0;};return a9_0x4d00();}var a9_0x1cc113=a9_0x34f1;(function(_0x429613,_0x2d5fdb){var _0x5d8496=a9_0x34f1,_0x4236dc=_0x429613();while(!![]){try{var _0xfed0c7=-parseInt(_0x5d8496(0x1ad))/0x1*(parseInt(_0x5d8496(0x19a))/0x2)+-parseInt(_0x5d8496(0x1c7))/0x3*(parseInt(_0x5d8496(0x19d))/0x4)+parseInt(_0x5d8496(0x1d3))/0x5+-parseInt(_0x5d8496(0x1c3))/0x6+-parseInt(_0x5d8496(0x1c4))/0x7*(parseInt(_0x5d8496(0x1c5))/0x8)+parseInt(_0x5d8496(0x1a0))/0x9+-parseInt(_0x5d8496(0x1c8))/0xa*(-parseInt(_0x5d8496(0x1b5))/0xb);if(_0xfed0c7===_0x2d5fdb)break;else _0x4236dc['push'](_0x4236dc['shift']());}catch(_0x5ba009){_0x4236dc['push'](_0x4236dc['shift']());}}}(a9_0x4d00,0x694be));function a9_0x34f1(_0x1a4142,_0x49d4e9){var _0x4d00fe=a9_0x4d00();return a9_0x34f1=function(_0x34f165,_0x481ed9){_0x34f165=_0x34f165-0x194;var _0x3d6c8b=_0x4d00fe[_0x34f165];return _0x3d6c8b;},a9_0x34f1(_0x1a4142,_0x49d4e9);}var __decorate=this&&this[a9_0x1cc113(0x1af)]||function(_0x4145f0,_0x59ecb6,_0xb9444f,_0x10bdc2){var _0x472c91=a9_0x1cc113,_0x390cda=arguments[_0x472c91(0x1a2)],_0x39f8e4=_0x390cda<0x3?_0x59ecb6:_0x10bdc2===null?_0x10bdc2=Object[_0x472c91(0x198)](_0x59ecb6,_0xb9444f):_0x10bdc2,_0x17e01e;if(typeof Reflect===_0x472c91(0x1a7)&&typeof Reflect['decorate']===_0x472c91(0x1a6))_0x39f8e4=Reflect['decorate'](_0x4145f0,_0x59ecb6,_0xb9444f,_0x10bdc2);else{for(var _0x5a3f7e=_0x4145f0[_0x472c91(0x1a2)]-0x1;_0x5a3f7e>=0x0;_0x5a3f7e--)if(_0x17e01e=_0x4145f0[_0x5a3f7e])_0x39f8e4=(_0x390cda<0x3?_0x17e01e(_0x39f8e4):_0x390cda>0x3?_0x17e01e(_0x59ecb6,_0xb9444f,_0x39f8e4):_0x17e01e(_0x59ecb6,_0xb9444f))||_0x39f8e4;}return _0x390cda>0x3&&_0x39f8e4&&Object[_0x472c91(0x1c9)](_0x59ecb6,_0xb9444f,_0x39f8e4),_0x39f8e4;},__metadata=this&&this[a9_0x1cc113(0x1c1)]||function(_0xaa51b7,_0x5900bd){var _0x117c7a=a9_0x1cc113;if(typeof Reflect===_0x117c7a(0x1a7)&&typeof Reflect[_0x117c7a(0x1cf)]===_0x117c7a(0x1a6))return Reflect['metadata'](_0xaa51b7,_0x5900bd);};Object['defineProperty'](exports,a9_0x1cc113(0x1d1),{'value':!![]}),exports[a9_0x1cc113(0x196)]=void 0x0;const crypto_js_1=require(a9_0x1cc113(0x1bd)),decorator_1=require(a9_0x1cc113(0x197)),ApiError_1=require(a9_0x1cc113(0x1ac));let ApiService=class ApiService{[a9_0x1cc113(0x1ab)](_0x4de493){var _0x31a9ab=a9_0x1cc113,_0x2e0c05;return _0x4de493?(0x0,crypto_js_1['MD5'])(_0x4de493+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x31a9ab(0x1ce)])(_0x4de493)[_0x31a9ab(0x1b2)]()+((_0x2e0c05=this[_0x31a9ab(0x19c)])===null||_0x2e0c05===void 0x0?void 0x0:_0x2e0c05[_0x31a9ab(0x1ab)]))[_0x31a9ab(0x1b2)]())[_0x31a9ab(0x1b2)]():'';}[a9_0x1cc113(0x199)](_0x12d806,_0x4347de,_0x878739=Date['now']()){var _0x5f268f=a9_0x1cc113;return{'Token':_0x12d806,'Logintime':_0x878739,'Checkcode':this[_0x5f268f(0x1b6)](_0x12d806,_0x4347de,_0x878739)};}[a9_0x1cc113(0x19f)](_0x16ff35={}){var _0x15c12f=a9_0x1cc113;const _0x4cdd67=[],_0x39f323=Object[_0x15c12f(0x1d4)](Object[_0x15c12f(0x19e)](_0x16ff35)[_0x15c12f(0x1a5)](_0x4c7d5b=>[_0x4c7d5b[0x0][_0x15c12f(0x1cc)](),_0x4c7d5b[0x1]]));for(let _0x36bc18 of[_0x15c12f(0x1b0),_0x15c12f(0x1a4),'token','logintime',_0x15c12f(0x1b6)]){if(typeof _0x39f323[_0x36bc18]==_0x15c12f(0x1c2))throw new AnnError(ApiError_1[_0x15c12f(0x1bf)][_0x15c12f(0x1b3)],{'message':_0x15c12f(0x1a9)+_0x36bc18});_0x4cdd67[_0x15c12f(0x19b)](_0x36bc18+'='+_0x39f323[_0x36bc18]);}if(Math[_0x15c12f(0x1c6)](_0x39f323[_0x15c12f(0x1a4)])-Date[_0x15c12f(0x194)]()>this[_0x15c12f(0x19c)]['timeout'])throw new AnnError(ApiError_1[_0x15c12f(0x1bf)][_0x15c12f(0x1a8)]);if(!this[_0x15c12f(0x19c)]['devices'][_0x39f323[_0x15c12f(0x1b0)]]||!this[_0x15c12f(0x19c)][_0x15c12f(0x195)][_0x39f323[_0x15c12f(0x1b0)]][_0x15c12f(0x1c0)]||!this['config'][_0x15c12f(0x195)][_0x39f323[_0x15c12f(0x1b0)]][_0x15c12f(0x1b6)])throw new AnnError(ApiError_1[_0x15c12f(0x1bf)][_0x15c12f(0x1b1)]);if(_0x39f323[_0x15c12f(0x1bc)]&&_0x39f323[_0x15c12f(0x1b6)]!=this[_0x15c12f(0x1b6)](_0x39f323[_0x15c12f(0x1bc)],_0x39f323[_0x15c12f(0x1b0)],_0x39f323[_0x15c12f(0x1d0)]))throw new AnnError(ApiError_1[_0x15c12f(0x1bf)][_0x15c12f(0x1bb)]);return _0x4cdd67['push'](_0x15c12f(0x1be)+this[_0x15c12f(0x19c)][_0x15c12f(0x195)][_0x39f323['device']]['secret']),(0x0,crypto_js_1[_0x15c12f(0x1ce)])(_0x4cdd67[_0x15c12f(0x1a3)]()[_0x15c12f(0x1a1)](''))['toString']();}[a9_0x1cc113(0x1b6)](_0x2746d0,_0x3d6a92,_0x1da88a=Date[a9_0x1cc113(0x194)]()){var _0x49290f=a9_0x1cc113,_0x2142bf,_0x12641e,_0x1b1aa4;if(!((_0x2142bf=this[_0x49290f(0x19c)])===null||_0x2142bf===void 0x0?void 0x0:_0x2142bf[_0x49290f(0x195)][_0x3d6a92])||!((_0x1b1aa4=(_0x12641e=this['config'])===null||_0x12641e===void 0x0?void 0x0:_0x12641e[_0x49290f(0x195)][_0x3d6a92])===null||_0x1b1aa4===void 0x0?void 0x0:_0x1b1aa4[_0x49290f(0x1b6)]))throw new AnnError(ApiError_1[_0x49290f(0x1bf)][_0x49290f(0x1b1)]);return(0x0,crypto_js_1[_0x49290f(0x1ce)])(_0x2746d0+(0x0,crypto_js_1[_0x49290f(0x1ce)])(_0x1da88a+this['config'][_0x49290f(0x195)][_0x3d6a92][_0x49290f(0x1b6)])[_0x49290f(0x1b2)]())[_0x49290f(0x1b2)]();}[a9_0x1cc113(0x1ae)](_0x1b500e={}){var _0x3935c1=a9_0x1cc113;const _0x516b7d=Object[_0x3935c1(0x1d4)](Object[_0x3935c1(0x19e)](_0x1b500e)[_0x3935c1(0x1a5)](_0x39b60c=>[_0x39b60c[0x0]['toLowerCase'](),_0x39b60c[0x1]]));if(!(_0x516b7d===null||_0x516b7d===void 0x0?void 0x0:_0x516b7d[_0x3935c1(0x1b7)]))throw new AnnError(ApiError_1[_0x3935c1(0x1bf)][_0x3935c1(0x1b3)],{'message':_0x3935c1(0x1ca)});if((_0x516b7d===null||_0x516b7d===void 0x0?void 0x0:_0x516b7d[_0x3935c1(0x1b7)])!=this['getsign'](_0x516b7d))throw new AnnError(ApiError_1['ApiError'][_0x3935c1(0x1cb)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x1cc113(0x1d2)])('anncicapi'),__metadata(a9_0x1cc113(0x1aa),Object)],ApiService[a9_0x1cc113(0x1ba)],a9_0x1cc113(0x19c),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x1cc113(0x1b8)])(),(0x0,decorator_1[a9_0x1cc113(0x1cd)])(decorator_1[a9_0x1cc113(0x1b9)][a9_0x1cc113(0x1b4)])],ApiService),exports[a9_0x1cc113(0x196)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a10_0x1580(_0x3ecf13,_0x3be0bc){const _0x3fde5f=a10_0x3fde();return a10_0x1580=function(_0x158068,_0x229097){_0x158068=_0x158068-0x11c;let _0x46bb84=_0x3fde5f[_0x158068];return _0x46bb84;},a10_0x1580(_0x3ecf13,_0x3be0bc);}const a10_0x381be5=a10_0x1580;(function(_0xa5e348,_0x32d2a1){const _0x4723aa=a10_0x1580,_0x1dffb8=_0xa5e348();while(!![]){try{const _0x377a13=-parseInt(_0x4723aa(0x126))/0x1*(-parseInt(_0x4723aa(0x12d))/0x2)+parseInt(_0x4723aa(0x12f))/0x3+parseInt(_0x4723aa(0x152))/0x4+-parseInt(_0x4723aa(0x144))/0x5+parseInt(_0x4723aa(0x15b))/0x6*(-parseInt(_0x4723aa(0x149))/0x7)+-parseInt(_0x4723aa(0x159))/0x8*(-parseInt(_0x4723aa(0x125))/0x9)+-parseInt(_0x4723aa(0x13f))/0xa;if(_0x377a13===_0x32d2a1)break;else _0x1dffb8['push'](_0x1dffb8['shift']());}catch(_0x5c32a7){_0x1dffb8['push'](_0x1dffb8['shift']());}}}(a10_0x3fde,0x9cda4));var __decorate=this&&this['__decorate']||function(_0x26d535,_0x2ca36d,_0x33d03a,_0x74308e){const _0x2b77f5=a10_0x1580;var _0x18b1ec=arguments[_0x2b77f5(0x146)],_0x2706e1=_0x18b1ec<0x3?_0x2ca36d:_0x74308e===null?_0x74308e=Object[_0x2b77f5(0x14f)](_0x2ca36d,_0x33d03a):_0x74308e,_0x48dac1;if(typeof Reflect===_0x2b77f5(0x11d)&&typeof Reflect[_0x2b77f5(0x14e)]===_0x2b77f5(0x138))_0x2706e1=Reflect[_0x2b77f5(0x14e)](_0x26d535,_0x2ca36d,_0x33d03a,_0x74308e);else{for(var _0x23ccf0=_0x26d535[_0x2b77f5(0x146)]-0x1;_0x23ccf0>=0x0;_0x23ccf0--)if(_0x48dac1=_0x26d535[_0x23ccf0])_0x2706e1=(_0x18b1ec<0x3?_0x48dac1(_0x2706e1):_0x18b1ec>0x3?_0x48dac1(_0x2ca36d,_0x33d03a,_0x2706e1):_0x48dac1(_0x2ca36d,_0x33d03a))||_0x2706e1;}return _0x18b1ec>0x3&&_0x2706e1&&Object[_0x2b77f5(0x124)](_0x2ca36d,_0x33d03a,_0x2706e1),_0x2706e1;},__metadata=this&&this[a10_0x381be5(0x148)]||function(_0x55de4a,_0x382c05){const _0x318e5a=a10_0x381be5;if(typeof Reflect===_0x318e5a(0x11d)&&typeof Reflect['metadata']===_0x318e5a(0x138))return Reflect[_0x318e5a(0x12c)](_0x55de4a,_0x382c05);},__param=this&&this[a10_0x381be5(0x137)]||function(_0x296f86,_0x2a7536){return function(_0x4aec70,_0x5cf372){_0x2a7536(_0x4aec70,_0x5cf372,_0x296f86);};};Object[a10_0x381be5(0x124)](exports,a10_0x381be5(0x147),{'value':!![]}),exports[a10_0x381be5(0x15f)]=exports[a10_0x381be5(0x128)]=void 0x0;const path_1=require(a10_0x381be5(0x11c)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x381be5(0x132)),getRoutes_1=require(a10_0x381be5(0x133));let ApitestService=class ApitestService{async[a10_0x381be5(0x14d)](_0x2c9481){const _0xe74ade=a10_0x381be5,_0x1bd99d=(0x0,getRoutes_1['getRoutes'])(_0x2c9481),_0x107e88=[];for(let _0xf21b20 in _0x1bd99d){for(let _0x1844b9 in _0x1bd99d[_0xf21b20][_0xe74ade(0x157)]){let _0x1cdd57=_0x1bd99d[_0xf21b20][_0xe74ade(0x157)][_0x1844b9],_0x30d1bb=[];for(let _0x295460 in _0x1cdd57[_0xe74ade(0x15a)]){_0x30d1bb[_0xe74ade(0x120)](_0x1cdd57[_0xe74ade(0x15a)][_0x295460]);}_0x107e88[_0xe74ade(0x120)]({'title':_0x1bd99d[_0xf21b20][_0xe74ade(0x12a)]+':'+_0x1cdd57[_0xe74ade(0x12a)],'prefix':_0x1bd99d[_0xf21b20][_0xe74ade(0x12b)],'router':_0x1cdd57[_0xe74ade(0x14c)],'method':_0x1cdd57[_0xe74ade(0x14b)],'describe':_0x1cdd57[_0xe74ade(0x141)]||'','filepath':_0x1bd99d[_0xf21b20][_0xe74ade(0x162)]||'','request':_0x30d1bb});}}const _0x12a36d=(0x0,path_1[_0xe74ade(0x156)])(__dirname,'../../public/index.html');return(0x0,fs_1['readFileSync'])(_0x12a36d,{'encoding':'utf-8'})[_0xe74ade(0x11e)](/__res__/g,'/apiteststatic/')['replace']('__apiList__',JSON['stringify'](_0x107e88))[_0xe74ade(0x11e)](_0xe74ade(0x130),JSON[_0xe74ade(0x169)](this[_0xe74ade(0x13d)][_0xe74ade(0x150)]));}};__decorate([(0x0,decorator_2[a10_0x381be5(0x168)])(a10_0x381be5(0x13e)),__metadata('design:type',Object)],ApitestService['prototype'],a10_0x381be5(0x13d),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x381be5(0x16a)])(a10_0x381be5(0x15c)),(0x0,decorator_2['Scope'])(decorator_2[a10_0x381be5(0x13c)]['Singleton'])],ApitestService),exports[a10_0x381be5(0x128)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x381be5(0x164)](){const _0x30dcb9=a10_0x381be5;if(this[_0x30dcb9(0x15c)]){const _0x5e675={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x5e675[_0x30dcb9(0x162)]=!![]),await this[_0x30dcb9(0x128)]['apidoc'](_0x5e675);}return'';}async[a10_0x381be5(0x131)](_0xe68df2){const _0x5712a6=a10_0x381be5;if(this[_0x5712a6(0x15c)]){const _0x46ae01={'module':_0xe68df2};return this[_0x5712a6(0x139)][_0x5712a6(0x13a)]()&&(_0x46ae01[_0x5712a6(0x162)]=!![]),await this[_0x5712a6(0x128)]['apidoc'](_0x46ae01);}return'';}async[a10_0x381be5(0x158)](){const _0x1dd209=a10_0x381be5;if((0x0,path_1[_0x1dd209(0x13b)])(this[_0x1dd209(0x140)][_0x1dd209(0x15a)]['url'])){var _0x3abe29=(0x0,path_1[_0x1dd209(0x156)])(__dirname,_0x1dd209(0x166)+this[_0x1dd209(0x140)][_0x1dd209(0x15a)][_0x1dd209(0x127)][_0x1dd209(0x11e)]('/apiteststatic/','/'));if(_0x3abe29[_0x1dd209(0x163)](_0x3abe29[_0x1dd209(0x146)]-0xb)!=_0x1dd209(0x142)){this[_0x1dd209(0x140)]['set']('cache-control',_0x1dd209(0x11f));if((0x0,path_1[_0x1dd209(0x13b)])(this[_0x1dd209(0x140)]['request'][_0x1dd209(0x127)])==_0x1dd209(0x167))this[_0x1dd209(0x140)][_0x1dd209(0x145)](_0x1dd209(0x153),_0x1dd209(0x161));else(0x0,path_1[_0x1dd209(0x13b)])(this['ctx'][_0x1dd209(0x15a)][_0x1dd209(0x127)])=='.css'&&this[_0x1dd209(0x140)]['set']('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0x1dd209(0x154)])(_0x3abe29)&&(0x0,fs_1[_0x1dd209(0x160)])(_0x3abe29,{'encoding':_0x1dd209(0x151)});}}return'';}};function a10_0x3fde(){const _0x5b6f9b=['set','length','__esModule','__metadata','14CDnygt','Request','method','route','apidoc','decorate','getOwnPropertyDescriptor','devices','utf-8','359444rWPPqK','content-type','existsSync','design:type','join','routes','apiteststatic','4808xYuvQQ','request','133542IOfKHA','apitest','MidwayEnvironmentService','Param','ApitestStaticController','readFileSync','application/javascript;\x20charset=utf-8','filepath','substring','apitesthtml','Inject','../../public/','.js','Config','stringify','Provide','path','object','replace','public,\x20max-age=604800','push','prototype','/apitest','design:paramtypes','defineProperty','1332yGsOJF','1209080qgYBcj','url','ApitestService','Controller','summary','prefix','metadata','2YnowFa','design:returntype','1325175zwXsWv','__devices__','apitestmodule','@midwayjs/decorator','../helper/getRoutes','module','/apitest-:module','Get','__param','function','Environment','isDevelopmentEnvironment','extname','ScopeEnum','config','anncicapi','3290rjEfcV','ctx','description','/index.html','/apiteststatic/*','5711515gWlClI'];a10_0x3fde=function(){return _0x5b6f9b;};return a10_0x3fde();}__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x381be5(0x155),Object)],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x140),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x381be5(0x155),core_1[a10_0x381be5(0x15d)])],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x139),void 0x0),__decorate([(0x0,decorator_2[a10_0x381be5(0x165)])(),__metadata(a10_0x381be5(0x155),ApitestService)],ApitestStaticController[a10_0x381be5(0x121)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a10_0x381be5(0x168)])(a10_0x381be5(0x15c)),__metadata(a10_0x381be5(0x155),Boolean)],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x15c),void 0x0),__decorate([(0x0,decorator_2[a10_0x381be5(0x168)])(a10_0x381be5(0x13e)),__metadata(a10_0x381be5(0x155),Object)],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x13d),void 0x0),__decorate([(0x0,decorator_1[a10_0x381be5(0x136)])(a10_0x381be5(0x122)),__metadata(a10_0x381be5(0x155),Function),__metadata(a10_0x381be5(0x123),[]),__metadata(a10_0x381be5(0x12e),Promise)],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x164),null),__decorate([(0x0,decorator_1[a10_0x381be5(0x136)])(a10_0x381be5(0x135)),__param(0x0,(0x0,decorator_1[a10_0x381be5(0x15e)])(a10_0x381be5(0x134))),__metadata(a10_0x381be5(0x155),Function),__metadata(a10_0x381be5(0x123),[String]),__metadata(a10_0x381be5(0x12e),Promise)],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x131),null),__decorate([(0x0,decorator_1[a10_0x381be5(0x136)])(a10_0x381be5(0x143)),__metadata(a10_0x381be5(0x155),Function),__metadata(a10_0x381be5(0x123),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x381be5(0x121)],a10_0x381be5(0x158),null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x381be5(0x129)])('/'),(0x0,decorator_2['Scope'])(decorator_2[a10_0x381be5(0x13c)][a10_0x381be5(0x14a)])],ApitestStaticController),exports[a10_0x381be5(0x15f)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x56ac3b=a11_0x4638;(function(_0x894e26,_0x150012){const _0x4a3637=a11_0x4638,_0x1eda17=_0x894e26();while(!![]){try{const _0x387e14=parseInt(_0x4a3637(0x14a))/0x1*(parseInt(_0x4a3637(0x13e))/0x2)+parseInt(_0x4a3637(0x140))/0x3+-parseInt(_0x4a3637(0x122))/0x4*(parseInt(_0x4a3637(0x11c))/0x5)+-parseInt(_0x4a3637(0x136))/0x6+-parseInt(_0x4a3637(0x148))/0x7*(parseInt(_0x4a3637(0x12c))/0x8)+parseInt(_0x4a3637(0x147))/0x9*(-parseInt(_0x4a3637(0x142))/0xa)+parseInt(_0x4a3637(0x117))/0xb;if(_0x387e14===_0x150012)break;else _0x1eda17['push'](_0x1eda17['shift']());}catch(_0x2948f6){_0x1eda17['push'](_0x1eda17['shift']());}}}(a11_0x4e95,0xbba18));var __decorate=this&&this['__decorate']||function(_0x4d0622,_0x11395b,_0x1b51ad,_0x558d02){const _0x587962=a11_0x4638;var _0x90a59b=arguments[_0x587962(0x125)],_0x360cac=_0x90a59b<0x3?_0x11395b:_0x558d02===null?_0x558d02=Object[_0x587962(0x115)](_0x11395b,_0x1b51ad):_0x558d02,_0x195977;if(typeof Reflect==='object'&&typeof Reflect[_0x587962(0x118)]===_0x587962(0x12d))_0x360cac=Reflect[_0x587962(0x118)](_0x4d0622,_0x11395b,_0x1b51ad,_0x558d02);else{for(var _0x41c5db=_0x4d0622[_0x587962(0x125)]-0x1;_0x41c5db>=0x0;_0x41c5db--)if(_0x195977=_0x4d0622[_0x41c5db])_0x360cac=(_0x90a59b<0x3?_0x195977(_0x360cac):_0x90a59b>0x3?_0x195977(_0x11395b,_0x1b51ad,_0x360cac):_0x195977(_0x11395b,_0x1b51ad))||_0x360cac;}return _0x90a59b>0x3&&_0x360cac&&Object[_0x587962(0x137)](_0x11395b,_0x1b51ad,_0x360cac),_0x360cac;},__metadata=this&&this['__metadata']||function(_0x14cd62,_0xc120d2){const _0x585563=a11_0x4638;if(typeof Reflect===_0x585563(0x10f)&&typeof Reflect[_0x585563(0x12e)]===_0x585563(0x12d))return Reflect[_0x585563(0x12e)](_0x14cd62,_0xc120d2);};Object[a11_0x56ac3b(0x137)](exports,'__esModule',{'value':!![]}),exports[a11_0x56ac3b(0x10d)]=void 0x0;function a11_0x4638(_0x51f317,_0x5304e3){const _0x4e9583=a11_0x4e95();return a11_0x4638=function(_0x46383c,_0x3f7566){_0x46383c=_0x46383c-0x10b;let _0x261bdf=_0x4e9583[_0x46383c];return _0x261bdf;},a11_0x4638(_0x51f317,_0x5304e3);}const fs=require('fs'),exceljs=require(a11_0x56ac3b(0x12b)),koasend=require(a11_0x56ac3b(0x135)),decorator_1=require(a11_0x56ac3b(0x111));let ExcelService=class ExcelService{async[a11_0x56ac3b(0x13d)](_0x48af81,_0x309cc1,_0x1f6eb0=[0x0]){const _0x389af0=a11_0x56ac3b;var _0x39e1b9,_0x4b0bcc;const _0x59f983=new exceljs['Workbook'](),_0x1d7761=[];let _0x22ef94=_0x48af81[_0x389af0(0x13a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x22ef94===null||_0x22ef94===void 0x0?void 0x0:_0x22ef94[_0x389af0(0x119)]('/'))&&(_0x22ef94=this[_0x389af0(0x110)][_0x389af0(0x123)]()+'/'+_0x22ef94);try{await _0x59f983['xlsx'][_0x389af0(0x14b)](_0x22ef94);}catch(_0x51e037){return console[_0x389af0(0x14d)](_0x389af0(0x12a)+_0x22ef94+_0x389af0(0x124)),_0x1d7761;}for(const _0x4b188c of _0x1f6eb0){const _0x6cdaec=lodash[_0x389af0(0x133)](_0x4b188c)?((_0x39e1b9=_0x59f983[_0x389af0(0x14c)])===null||_0x39e1b9===void 0x0?void 0x0:_0x39e1b9[_0x4b188c])||undefined:_0x59f983[_0x389af0(0x134)](_0x4b188c);if(_0x6cdaec){var _0x1ece31=0x1;const _0x5c1c20=_0x6cdaec[_0x389af0(0x116)](0x1),_0x430c49=await new Promise(_0x53b4de=>{const _0x26936d={};_0x5c1c20['eachCell']((_0x1aceca,_0x3bf230)=>{const _0x281487=a11_0x4638;for(const _0x51188a of _0x309cc1){if(_0x1aceca[_0x281487(0x129)]==_0x51188a['header'])_0x1ece31=0x2,_0x26936d[_0x51188a[_0x281487(0x11d)]]={'header':_0x1aceca[_0x281487(0x10b)],'handler':_0x51188a[_0x281487(0x141)]};else{if(!_0x26936d[_0x51188a[_0x281487(0x11d)]])try{const _0x499a33=_0x5c1c20[_0x281487(0x11a)](_0x51188a[_0x281487(0x10e)]);_0x499a33&&(_0x26936d[_0x51188a['key']]={'header':_0x499a33[_0x281487(0x10b)],'handler':_0x51188a[_0x281487(0x141)]});}catch{}}}_0x5c1c20[_0x281487(0x127)]==_0x3bf230&&_0x53b4de(_0x26936d);});});for(const _0xcda3a2 of _0x6cdaec['findRows'](_0x1ece31,_0x6cdaec[_0x389af0(0x143)])){const _0x8999ba={};for(const _0x4b71db in _0x430c49){_0x430c49[_0x4b71db][_0x389af0(0x10e)]&&(typeof((_0x4b0bcc=_0x430c49[_0x4b71db])===null||_0x4b0bcc===void 0x0?void 0x0:_0x4b0bcc[_0x389af0(0x141)])==_0x389af0(0x12d)?_0x8999ba[_0x4b71db]=_0x430c49[_0x4b71db][_0x389af0(0x141)](_0xcda3a2[_0x389af0(0x11a)](lodash['trim'](''+_0x430c49[_0x4b71db][_0x389af0(0x10e)],'\x20'))[_0x389af0(0x11f)]()):_0x8999ba[_0x4b71db]=_0xcda3a2['getCell'](_0x430c49[_0x4b71db][_0x389af0(0x10e)])['toString']());}Object[_0x389af0(0x132)](_0x8999ba)[_0x389af0(0x125)]>0x0&&_0x1d7761[_0x389af0(0x13f)](_0x8999ba);}}}return _0x1d7761;}async['export'](_0x46ae7d,_0x2d05e4,_0x4ccbe9,_0x1163e9=a11_0x56ac3b(0x139)){const _0x2d3034=a11_0x56ac3b;var _0x216c3d,_0xaf1168;const _0x34af87=new exceljs[(_0x2d3034(0x13c))](),_0x384d82={},_0x49e6c3=[],_0x60b410=_0x34af87[_0x2d3034(0x145)](_0x2d3034(0x130),{'views':[{'state':_0x2d3034(0x12f),'xSplit':0x1}]});for(const _0x2b0a2c in _0x2d05e4){_0x384d82[_0x2d05e4[_0x2b0a2c]['key']]=_0x2d05e4[_0x2b0a2c][_0x2d3034(0x10e)],_0x49e6c3[_0x2d3034(0x13f)]({'header':_0x2d05e4[_0x2b0a2c][_0x2d3034(0x10e)],'key':(_0x216c3d=_0x2d05e4[_0x2b0a2c])===null||_0x216c3d===void 0x0?void 0x0:_0x216c3d[_0x2d3034(0x11d)]['replace'](/\./g,'_')});}_0x60b410['columns']=_0x49e6c3;for(const _0xa8dcc0 of _0x4ccbe9){const _0x3226ba={};for(const _0x523cb9 in _0x2d05e4){typeof((_0xaf1168=_0x2d05e4[_0x523cb9])===null||_0xaf1168===void 0x0?void 0x0:_0xaf1168[_0x2d3034(0x141)])==_0x2d3034(0x12d)?_0x3226ba[_0x2d05e4[_0x523cb9]['key']['replace'](/\./g,'_')]=await _0x2d05e4[_0x523cb9][_0x2d3034(0x141)](_0xa8dcc0):_0x3226ba[_0x2d05e4[_0x523cb9][_0x2d3034(0x11d)][_0x2d3034(0x13a)](/\./g,'_')]=lodash['get'](_0xa8dcc0,_0x2d05e4[_0x523cb9][_0x2d3034(0x11d)],'');}_0x60b410[_0x2d3034(0x144)](_0x3226ba);}let _0x4f0104='';const _0x1410c5=_0x46ae7d+'-'+lodash[_0x2d3034(0x146)](0x2710,0x1869f)+_0x2d3034(0x114);if(_0x1163e9&&_0x1163e9[_0x2d3034(0x119)]('/'))_0x4f0104=_0x1163e9+'/'+_0x1410c5;else _0x1163e9&&!_0x1163e9[_0x2d3034(0x119)]('/')&&!_0x1163e9['startsWith']('\x5c')?_0x4f0104=this['app'][_0x2d3034(0x123)]()+'/'+_0x1163e9+'/'+_0x1410c5:_0x4f0104=this[_0x2d3034(0x110)][_0x2d3034(0x123)]()+_0x2d3034(0x131);return(_0x4f0104[_0x2d3034(0x120)]('/')||_0x4f0104['endsWith']('\x5c'))&&(_0x4f0104=_0x4f0104[_0x2d3034(0x138)](0x0,_0x4f0104[_0x2d3034(0x125)]-0x1)),_0x4f0104=_0x4f0104[_0x2d3034(0x13a)](/(\\|\/)/g,'/')[_0x2d3034(0x13a)](/\/{2,}/g,'/'),!fs[_0x2d3034(0x149)](_0x4f0104)&&fs[_0x2d3034(0x112)](_0x4f0104,{'recursive':!![]}),await _0x34af87[_0x2d3034(0x11e)][_0x2d3034(0x113)]((_0x4f0104+'/'+_0x1410c5)[_0x2d3034(0x13a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x1410c5,'filepath':_0x4f0104};}async['download'](_0x41bb52,_0x5194fd){const _0x278dc2=a11_0x56ac3b;await koasend(_0x41bb52,_0x278dc2(0x11b)+_0x5194fd);}};__decorate([(0x0,decorator_1[a11_0x56ac3b(0x126)])(),__metadata(a11_0x56ac3b(0x128),Object)],ExcelService['prototype'],a11_0x56ac3b(0x110),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x56ac3b(0x121)])(),(0x0,decorator_1[a11_0x56ac3b(0x10c)])(decorator_1[a11_0x56ac3b(0x13b)]['Singleton'])],ExcelService),exports[a11_0x56ac3b(0x10d)]=ExcelService;function a11_0x4e95(){const _0x3e0516=['col','Scope','ExcelService','header','object','app','@midwayjs/decorator','mkdirSync','writeFile','.xlsx','getOwnPropertyDescriptor','getRow','32554159uVVPNj','decorate','startsWith','getCell','/public/xlsx/','271505eZJLGo','key','xlsx','toString','endsWith','Provide','12eZoGYS','getAppDir','\x20is\x20read\x20fail','length','App','cellCount','design:type','value','Api\x20Excel\x20Error:\x20','exceljs','392OORDPX','function','metadata','frozen','Sheet\x201','/public/xlsx','keys','isNumber','getWorksheet','koa-send','8028096ySRcIQ','defineProperty','substring','public/xlsx','replace','ScopeEnum','Workbook','parse','514616uczHme','push','2312244hLCSTL','handler','11521690YYyMzf','rowCount','addRow','addWorksheet','random','9PvWxAs','80843pbublm','existsSync','1BNYASn','readFile','worksheets','log'];a11_0x4e95=function(){return _0x3e0516;};return a11_0x4e95();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a12_0x24e018=a12_0x965a;(function(_0x4759c0,_0x3f3e26){var _0x49c837=a12_0x965a,_0x2463ed=_0x4759c0();while(!![]){try{var _0x85ccde=parseInt(_0x49c837(0x11e))/0x1*(-parseInt(_0x49c837(0x11d))/0x2)+parseInt(_0x49c837(0x124))/0x3*(-parseInt(_0x49c837(0x120))/0x4)+-parseInt(_0x49c837(0x11f))/0x5*(-parseInt(_0x49c837(0x122))/0x6)+-parseInt(_0x49c837(0x11c))/0x7+-parseInt(_0x49c837(0x11b))/0x8*(parseInt(_0x49c837(0x11a))/0x9)+-parseInt(_0x49c837(0x117))/0xa*(-parseInt(_0x49c837(0x126))/0xb)+parseInt(_0x49c837(0x119))/0xc;if(_0x85ccde===_0x3f3e26)break;else _0x2463ed['push'](_0x2463ed['shift']());}catch(_0x378d82){_0x2463ed['push'](_0x2463ed['shift']());}}}(a12_0x3cbb,0xc1db2));Object[a12_0x24e018(0x125)](exports,'__esModule',{'value':!![]}),exports[a12_0x24e018(0x118)]=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']=a12_0x24e018(0x121),exports[a12_0x24e018(0x118)]=a12_0x24e018(0x123);function a12_0x965a(_0x515cab,_0xf9dec8){var _0x3cbbc5=a12_0x3cbb();return a12_0x965a=function(_0x965a82,_0x5f5823){_0x965a82=_0x965a82-0x117;var _0x184e71=_0x3cbbc5[_0x965a82];return _0x184e71;},a12_0x965a(_0x515cab,_0xf9dec8);}function a12_0x3cbb(){var _0x33e5f3=['7321ifsLuT','5dDjMxl','34400QSjEky','anncic-api:action','2901930sCxlsj','anncic-api:action:route','249YNultb','defineProperty','11iLukAr','10408030cwJfyJ','ACTION_ROUTE_KEY','17958552QtXawf','8830017qkgTrI','8mpNXuy','3570658iMkQHO','6GaoVQD'];a12_0x3cbb=function(){return _0x33e5f3;};return a12_0x3cbb();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x1c84a4=a13_0x1d4c;(function(_0x1a29ae,_0x339109){var _0x45e2eb=a13_0x1d4c,_0x91c526=_0x1a29ae();while(!![]){try{var _0x4d5376=-parseInt(_0x45e2eb(0x13a))/0x1+-parseInt(_0x45e2eb(0x131))/0x2+-parseInt(_0x45e2eb(0x126))/0x3*(-parseInt(_0x45e2eb(0x124))/0x4)+parseInt(_0x45e2eb(0x135))/0x5+parseInt(_0x45e2eb(0x139))/0x6*(-parseInt(_0x45e2eb(0x13b))/0x7)+-parseInt(_0x45e2eb(0x12e))/0x8*(-parseInt(_0x45e2eb(0x12a))/0x9)+parseInt(_0x45e2eb(0x13e))/0xa;if(_0x4d5376===_0x339109)break;else _0x91c526['push'](_0x91c526['shift']());}catch(_0x547ae7){_0x91c526['push'](_0x91c526['shift']());}}}(a13_0x3a37,0x1ea6c));function a13_0x1d4c(_0x597fce,_0x2f06c7){var _0x3a370f=a13_0x3a37();return a13_0x1d4c=function(_0x1d4c0e,_0x3283ef){_0x1d4c0e=_0x1d4c0e-0x11e;var _0x11d570=_0x3a370f[_0x1d4c0e];return _0x11d570;},a13_0x1d4c(_0x597fce,_0x2f06c7);}function a13_0x3a37(){var _0x4569bc=['defineProperty','69ZkIKXf','分页数量','getOwnPropertyDescriptor','function','27KksbTl','RuleType','prototype','number','366968BIXgxA','length','Rule','485148FeWLYE','1:是;0:否','_order','PageDTO','901660tISZwm','valid','metadata','是否倒序','33486rNCpuU','148742EAxrQu','35UnbvqV','_size','排序方式','1790990EaoRkv','object','design:type','trim','integer','decorate','min','__esModule','@anncic-api/validator','8300lRuLED'];a13_0x3a37=function(){return _0x4569bc;};return a13_0x3a37();}var __decorate=this&&this['__decorate']||function(_0x311141,_0x410253,_0x55cd1c,_0x1aba8f){var _0x54dc50=a13_0x1d4c,_0x163f0a=arguments['length'],_0x1d7bf6=_0x163f0a<0x3?_0x410253:_0x1aba8f===null?_0x1aba8f=Object[_0x54dc50(0x128)](_0x410253,_0x55cd1c):_0x1aba8f,_0x2a2e1d;if(typeof Reflect===_0x54dc50(0x13f)&&typeof Reflect[_0x54dc50(0x120)]===_0x54dc50(0x129))_0x1d7bf6=Reflect[_0x54dc50(0x120)](_0x311141,_0x410253,_0x55cd1c,_0x1aba8f);else{for(var _0x2b18f1=_0x311141[_0x54dc50(0x12f)]-0x1;_0x2b18f1>=0x0;_0x2b18f1--)if(_0x2a2e1d=_0x311141[_0x2b18f1])_0x1d7bf6=(_0x163f0a<0x3?_0x2a2e1d(_0x1d7bf6):_0x163f0a>0x3?_0x2a2e1d(_0x410253,_0x55cd1c,_0x1d7bf6):_0x2a2e1d(_0x410253,_0x55cd1c))||_0x1d7bf6;}return _0x163f0a>0x3&&_0x1d7bf6&&Object[_0x54dc50(0x125)](_0x410253,_0x55cd1c,_0x1d7bf6),_0x1d7bf6;},__metadata=this&&this['__metadata']||function(_0x1f5e85,_0x7b2f25){var _0x37aaa6=a13_0x1d4c;if(typeof Reflect===_0x37aaa6(0x13f)&&typeof Reflect[_0x37aaa6(0x137)]===_0x37aaa6(0x129))return Reflect[_0x37aaa6(0x137)](_0x1f5e85,_0x7b2f25);};Object[a13_0x1c84a4(0x125)](exports,a13_0x1c84a4(0x122),{'value':!![]}),exports[a13_0x1c84a4(0x134)]=void 0x0;const validator_1=require(a13_0x1c84a4(0x123));class PageDTO{}__decorate([(0x0,validator_1[a13_0x1c84a4(0x130)])('分页',validator_1['RuleType'][a13_0x1c84a4(0x12d)]()[a13_0x1c84a4(0x11f)]()['min'](0x1),'第一页为1,第二页为2'),__metadata(a13_0x1c84a4(0x140),Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a13_0x1c84a4(0x130)])(a13_0x1c84a4(0x127),validator_1['RuleType']['number']()['integer']()[a13_0x1c84a4(0x121)](0x1)),__metadata(a13_0x1c84a4(0x140),Number)],PageDTO['prototype'],a13_0x1c84a4(0x13c),void 0x0),__decorate([(0x0,validator_1[a13_0x1c84a4(0x130)])(a13_0x1c84a4(0x13d),validator_1[a13_0x1c84a4(0x12b)]['string']()[a13_0x1c84a4(0x11e)]()),__metadata('design:type',String)],PageDTO[a13_0x1c84a4(0x12c)],a13_0x1c84a4(0x133),void 0x0),__decorate([(0x0,validator_1['Rule'])(a13_0x1c84a4(0x138),validator_1['RuleType'][a13_0x1c84a4(0x12d)]()['integer']()[a13_0x1c84a4(0x136)](0x0,0x1),a13_0x1c84a4(0x132)),__metadata('design:type',Number)],PageDTO[a13_0x1c84a4(0x12c)],'_isreverse',void 0x0),exports[a13_0x1c84a4(0x134)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.9",
|
|
21
|
+
"@anncic-api/core": "^1.1.9",
|
|
22
|
+
"@anncic-api/event": "^1.1.9",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.9",
|
|
24
|
+
"@anncic-api/validator": "^1.1.9",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.0",
|
|
27
27
|
"@midwayjs/koa": "^3.5.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.0",
|
|
30
30
|
"@midwayjs/upload": "^3.5.0",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.9",
|
|
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": "a4a3bee3b2b8649986c595084c5efdf2cc263aa4"
|
|
45
45
|
}
|