anncic-api 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 'use strict';var a0_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
+ 'use strict';var a0_0x4d04d0=a0_0x4b3d;(function(_0x435069,_0xb61a00){var _0xff6f39=a0_0x4b3d,_0x4020f2=_0x435069();while(!![]){try{var _0x347fef=-parseInt(_0xff6f39(0x158))/0x1*(-parseInt(_0xff6f39(0x164))/0x2)+-parseInt(_0xff6f39(0x160))/0x3+parseInt(_0xff6f39(0x15c))/0x4*(parseInt(_0xff6f39(0x15b))/0x5)+parseInt(_0xff6f39(0x15e))/0x6*(-parseInt(_0xff6f39(0x165))/0x7)+-parseInt(_0xff6f39(0x157))/0x8+parseInt(_0xff6f39(0x163))/0x9+-parseInt(_0xff6f39(0x15f))/0xa*(-parseInt(_0xff6f39(0x156))/0xb);if(_0x347fef===_0xb61a00)break;else _0x4020f2['push'](_0x4020f2['shift']());}catch(_0x5eede8){_0x4020f2['push'](_0x4020f2['shift']());}}}(a0_0x3fda,0x9e201));function a0_0x4b3d(_0x63118f,_0xadaa92){var _0x3fda5b=a0_0x3fda();return a0_0x4b3d=function(_0x4b3d6d,_0x10b9be){_0x4b3d6d=_0x4b3d6d-0x156;var _0x1ecacf=_0x3fda5b[_0x4b3d6d];return _0x1ecacf;},a0_0x4b3d(_0x63118f,_0xadaa92);}function a0_0x3fda(){var _0x1f56b8=['49155bWeoKH','28tdUYUn','/runtime/.upload','6WhjAUR','1170AydQXL','1860141iPaMeO','defineProperty','dhauo1234420123gg3234901','1634238AvKInB','668ISWANP','2433914wnYSmG','name','225104nLpwvv','10008264QfxwYM','664mABxaw','zhiulanuiy7892387985hnoi','default'];a0_0x3fda=function(){return _0x1f56b8;};return a0_0x3fda();}Object[a0_0x4d04d0(0x161)](exports,'__esModule',{'value':!![]}),exports[a0_0x4d04d0(0x15a)]=_0x31da80=>{var _0x4f63f5=a0_0x4d04d0;return{'apitest':!![],'keys':_0x31da80[_0x4f63f5(0x166)],'anncicapi':{'timeout':0x1388,'password':_0x4f63f5(0x159),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x4f63f5(0x162)}}},'upload':{'tmpdir':_0x31da80['appDir']+_0x4f63f5(0x15d),'cleanTimeout':0x5265c00}};};
@@ -1 +1 @@
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}};
1
+ 'use strict';function a1_0x3553(){var _0x1aecea=['20156fGcKMc','791397AeQtFS','28eRQnKa','__esModule','288918KozTEZ','756215yNPMKE','627BjViWF','4qRwzhP','default','170550Ztexeb','defineProperty','2284308CCSOXm','104fGrnWA','26802wlDIxg'];a1_0x3553=function(){return _0x1aecea;};return a1_0x3553();}function a1_0x20b2(_0x5a1722,_0x398791){var _0x355335=a1_0x3553();return a1_0x20b2=function(_0x20b289,_0xc71a2b){_0x20b289=_0x20b289-0x194;var _0x424868=_0x355335[_0x20b289];return _0x424868;},a1_0x20b2(_0x5a1722,_0x398791);}var a1_0xbd720d=a1_0x20b2;(function(_0x4f5411,_0x3be4e0){var _0x378cf0=a1_0x20b2,_0x3bbd8b=_0x4f5411();while(!![]){try{var _0x5a3ff7=-parseInt(_0x378cf0(0x1a1))/0x1*(parseInt(_0x378cf0(0x195))/0x2)+-parseInt(_0x378cf0(0x1a0))/0x3+parseInt(_0x378cf0(0x19a))/0x4*(-parseInt(_0x378cf0(0x198))/0x5)+parseInt(_0x378cf0(0x19e))/0x6+-parseInt(_0x378cf0(0x197))/0x7*(parseInt(_0x378cf0(0x19f))/0x8)+-parseInt(_0x378cf0(0x194))/0x9+parseInt(_0x378cf0(0x19c))/0xa*(parseInt(_0x378cf0(0x199))/0xb);if(_0x5a3ff7===_0x3be4e0)break;else _0x3bbd8b['push'](_0x3bbd8b['shift']());}catch(_0x12741a){_0x3bbd8b['push'](_0x3bbd8b['shift']());}}}(a1_0x3553,0x45d2d));Object[a1_0xbd720d(0x19d)](exports,a1_0xbd720d(0x196),{'value':!![]}),exports[a1_0xbd720d(0x19b)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
@@ -1 +1 @@
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();}
1
+ 'use strict';const a2_0x567f71=a2_0x34bd;(function(_0x412f48,_0x131ec9){const _0x380dd4=a2_0x34bd,_0x487e86=_0x412f48();while(!![]){try{const _0x1399d9=parseInt(_0x380dd4(0x1e5))/0x1+parseInt(_0x380dd4(0x1fc))/0x2+parseInt(_0x380dd4(0x1ce))/0x3*(parseInt(_0x380dd4(0x1fa))/0x4)+parseInt(_0x380dd4(0x1f7))/0x5*(-parseInt(_0x380dd4(0x1da))/0x6)+-parseInt(_0x380dd4(0x207))/0x7*(-parseInt(_0x380dd4(0x20a))/0x8)+-parseInt(_0x380dd4(0x1db))/0x9*(-parseInt(_0x380dd4(0x20c))/0xa)+-parseInt(_0x380dd4(0x1f2))/0xb;if(_0x1399d9===_0x131ec9)break;else _0x487e86['push'](_0x487e86['shift']());}catch(_0x1d0ee7){_0x487e86['push'](_0x487e86['shift']());}}}(a2_0x12f7,0x53374));var __decorate=this&&this[a2_0x567f71(0x1e4)]||function(_0x5c7b6a,_0xb75a3b,_0x1622ca,_0x47ef8f){const _0x1187ba=a2_0x567f71;var _0x209529=arguments[_0x1187ba(0x1cf)],_0x14d26a=_0x209529<0x3?_0xb75a3b:_0x47ef8f===null?_0x47ef8f=Object['getOwnPropertyDescriptor'](_0xb75a3b,_0x1622ca):_0x47ef8f,_0x159ec9;if(typeof Reflect===_0x1187ba(0x1f8)&&typeof Reflect[_0x1187ba(0x1d9)]===_0x1187ba(0x1f1))_0x14d26a=Reflect[_0x1187ba(0x1d9)](_0x5c7b6a,_0xb75a3b,_0x1622ca,_0x47ef8f);else{for(var _0x565a97=_0x5c7b6a[_0x1187ba(0x1cf)]-0x1;_0x565a97>=0x0;_0x565a97--)if(_0x159ec9=_0x5c7b6a[_0x565a97])_0x14d26a=(_0x209529<0x3?_0x159ec9(_0x14d26a):_0x209529>0x3?_0x159ec9(_0xb75a3b,_0x1622ca,_0x14d26a):_0x159ec9(_0xb75a3b,_0x1622ca))||_0x14d26a;}return _0x209529>0x3&&_0x14d26a&&Object['defineProperty'](_0xb75a3b,_0x1622ca,_0x14d26a),_0x14d26a;},__metadata=this&&this[a2_0x567f71(0x1e2)]||function(_0x29d4ad,_0x44dc47){const _0x3d8f12=a2_0x567f71;if(typeof Reflect===_0x3d8f12(0x1f8)&&typeof Reflect[_0x3d8f12(0x1ee)]===_0x3d8f12(0x1f1))return Reflect[_0x3d8f12(0x1ee)](_0x29d4ad,_0x44dc47);};Object['defineProperty'](exports,a2_0x567f71(0x1ff),{'value':!![]}),exports[a2_0x567f71(0x1b9)]=void 0x0;const decorator_1=require(a2_0x567f71(0x20d)),core_1=require(a2_0x567f71(0x1bd)),ApiError_1=require(a2_0x567f71(0x20f)),ApiService_1=require(a2_0x567f71(0x205)),action_1=require(a2_0x567f71(0x1e1)),fs=require('fs'),koa=require(a2_0x567f71(0x1d0)),i18n=require(a2_0x567f71(0x200)),task=require('@midwayjs/task'),upload=require(a2_0x567f71(0x1d1)),staticFile=require(a2_0x567f71(0x1d8)),crossDomain=require('@midwayjs/cross-domain'),bodyXml=require(a2_0x567f71(0x1ca)),bodyParser=require(a2_0x567f71(0x1b7)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x567f71(0x1f5)),anncic=require('@anncic-api/core'),anncicEvent=require(a2_0x567f71(0x1cd)),anncicTypeorm=require(a2_0x567f71(0x1dc)),anncicValidator=require(a2_0x567f71(0x1e6)),anncicHelper=require(a2_0x567f71(0x1f3));function a2_0x12f7(){const _0x3252f3=['handlerActionRoute','./exception/ApiError','query','decorator','config','koa-bodyparser','ACTION_ROUTE_KEY','CustomConfiguration','Configuration','hanlderApplications','prototype','@midwayjs/core','getConfiguration','device','beforeRoute','forEach','upload','bodyParser','tmpdir','devices','existsSync','mkdirSync','keys','headers','koa-xml-body','defineProperties','filterConfig','@anncic-api/event','912147XidQBj','length','@midwayjs/koa','@midwayjs/upload','anncicapi','bodyXml','MidwayApplicationManager','key','ApiService','MidwayDecoratorService','@midwayjs/static-file','decorate','408YGNRen','27BNNRAs','@anncic-api/typeorm','design:type','checksign','apimit','isArray','./types/action','__metadata','isString','__decorate','229208KRYKiv','@anncic-api/validator','input','context','target','environment','staticFile','HEADERS_SIGNATURE','anncic-api','metadata','useMiddleware','REQUEST_OBJ_CTX_KEY','function','7809538URkNNp','anncic-apihelper','koa','./config/config.production','log','43115RjEiUf','object','DEFAULT','8yyPkow','Inject','1038898FaQNZk','request','ApiError','__esModule','@midwayjs/i18n','Anncic-api\x20static-file\x20:\x20mkdir\x20','dirs','registerMethodHandler','onReady','./service/ApiService','checkConfigKeys','21cYylOP','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','body','603792GGMTss','dir','179990FMbuzE','@midwayjs/decorator'];a2_0x12f7=function(){return _0x3252f3;};return a2_0x12f7();}let CustomConfiguration=class CustomConfiguration{async[a2_0x567f71(0x204)](){const _0x5e136a=a2_0x567f71;await this[_0x5e136a(0x1cc)](),await this[_0x5e136a(0x206)](),await this[_0x5e136a(0x20e)](),await this['hanlderApplications']();}async[a2_0x567f71(0x206)](){}async[a2_0x567f71(0x20e)](){const _0x528df8=a2_0x567f71,_0x2e467d=this[_0x528df8(0x1b6)]['getConfiguration']();this[_0x528df8(0x1b5)][_0x528df8(0x203)](action_1[_0x528df8(0x1b8)],_0xfa223c=>{const _0x4a2c68=_0x528df8,_0x5853a0=_0xfa223c[_0x4a2c68(0x1ee)];return{'before':async _0x216165=>{const _0x1da3b6=_0x4a2c68;var _0x44af5a,_0x267390,_0x1e1071,_0x5d4b1d,_0x5bb622;const _0x5f45ff=(_0x44af5a=_0x216165===null||_0x216165===void 0x0?void 0x0:_0x216165[_0x1da3b6(0x1e9)])===null||_0x44af5a===void 0x0?void 0x0:_0x44af5a[core_1[_0x1da3b6(0x1f0)]];if(_0x5f45ff){if((_0x5853a0===null||_0x5853a0===void 0x0?void 0x0:_0x5853a0[_0x1da3b6(0x1df)])&&!this[_0x1da3b6(0x1d6)][_0x1da3b6(0x1de)]((_0x267390=_0x5f45ff===null||_0x5f45ff===void 0x0?void 0x0:_0x5f45ff[_0x1da3b6(0x1fd)])===null||_0x267390===void 0x0?void 0x0:_0x267390['headers']))throw new AnnError(ApiError_1[_0x1da3b6(0x1fe)][_0x1da3b6(0x1ec)]);((_0x1e1071=_0x5f45ff[_0x1da3b6(0x1c9)])===null||_0x1e1071===void 0x0?void 0x0:_0x1e1071[_0x1da3b6(0x1bf)])&&((_0x5bb622=(_0x5d4b1d=_0x2e467d===null||_0x2e467d===void 0x0?void 0x0:_0x2e467d[_0x1da3b6(0x1d2)])===null||_0x5d4b1d===void 0x0?void 0x0:_0x5d4b1d['devices'])===null||_0x5bb622===void 0x0?void 0x0:_0x5bb622[_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]])&&(typeof _0x2e467d[_0x1da3b6(0x1d2)][_0x1da3b6(0x1c5)][_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]][_0x1da3b6(0x1c0)]==_0x1da3b6(0x1f1)&&await _0x2e467d[_0x1da3b6(0x1d2)][_0x1da3b6(0x1c5)][_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]]['beforeRoute']((_0x5f45ff===null||_0x5f45ff===void 0x0?void 0x0:_0x5f45ff['_matchedRoute'])||undefined,_0x5853a0,_0x5f45ff));}},'afterThrow':(_0x34e4ec,_0x51ac12)=>{throw _0x51ac12;}};});}async[a2_0x567f71(0x1bb)](){const _0xa5a2a8=a2_0x567f71;this['application']['getApplications']([_0xa5a2a8(0x1f4)])[_0xa5a2a8(0x1c1)](_0x5863a0=>{const _0x3b6168=_0xa5a2a8;_0x5863a0[_0x3b6168(0x1ef)](bodyXml(this[_0x3b6168(0x1b6)][_0x3b6168(0x1be)](_0x3b6168(0x1d3)))),_0x5863a0[_0x3b6168(0x1ef)](bodyParser(this[_0x3b6168(0x1b6)][_0x3b6168(0x1be)](_0x3b6168(0x1c3)))),(_0x5863a0===null||_0x5863a0===void 0x0?void 0x0:_0x5863a0[_0x3b6168(0x1e8)])&&Object[_0x3b6168(0x1cb)](_0x5863a0[_0x3b6168(0x1e8)],{'ok':{'value':function(_0x21dd9a,_0x5cd6eb,_0x12958a=0x0){return{'code':_0x12958a,'data':_0x21dd9a,'extra':_0x5cd6eb};}},'err':{'value':function(_0xda546c,_0x5c8938,_0xa2b0dc=0x1){return{'code':_0xa2b0dc,'extra':_0x5c8938,'msg':_0xda546c};}},'input':{'value':function(_0x53bff0,_0x173460){const _0x30f3e0=_0x3b6168;var _0xfdcf6a;const _0x3d88f1=lodash['defaultsDeep']({},this[_0x30f3e0(0x1fd)][_0x30f3e0(0x209)]||this[_0x30f3e0(0x1fd)][((_0xfdcf6a=config===null||config===void 0x0?void 0x0:config[_0x30f3e0(0x1d3)])===null||_0xfdcf6a===void 0x0?void 0x0:_0xfdcf6a[_0x30f3e0(0x1d5)])||_0x30f3e0(0x209)]||{},this[_0x30f3e0(0x1fd)][_0x30f3e0(0x210)]||{});return _0x53bff0?lodash['get'](_0x3d88f1,_0x53bff0,_0x173460):_0x3d88f1;}},'when':{'value':async function(_0x22c2f4,_0x20ff3e){const _0x3f2dca=_0x3b6168,_0x2bf70a=this[_0x3f2dca(0x1e7)](_0x22c2f4,null);if(!lodash['isNull'](_0x2bf70a))return await _0x20ff3e(_0x2bf70a);}},'only':{'value':function(_0x172299){const _0x101301=_0x3b6168,_0x4b6320={};for(let _0x352592=0x0;_0x352592<_0x172299['length'];_0x352592++){lodash[_0x101301(0x1e0)](_0x172299[_0x352592])&&_0x172299[_0x352592][_0x101301(0x1cf)]>0x0&&lodash[_0x101301(0x1e3)](_0x172299[_0x352592][0x0])&&(_0x4b6320[_0x172299[_0x352592][0x0]]=this[_0x101301(0x1e7)](_0x172299[_0x352592][0x0],_0x172299[_0x352592][_0x101301(0x1cf)]>0x1?_0x172299[_0x352592][0x1]:null));}return _0x4b6320;}}});});}async[a2_0x567f71(0x1cc)](){const _0xa882ac=a2_0x567f71;var _0x30e97f,_0x586c0c,_0x5b2e76,_0x38bf43,_0x345366,_0x1ea075;const _0x21b2c0=this[_0xa882ac(0x1b6)][_0xa882ac(0x1be)]();((_0x586c0c=(_0x30e97f=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1d2)])===null||_0x30e97f===void 0x0?void 0x0:_0x30e97f['devices'])===null||_0x586c0c===void 0x0?void 0x0:_0x586c0c[_0xa882ac(0x1f9)])&&Object[_0xa882ac(0x1c8)](_0x21b2c0[_0xa882ac(0x1d2)][_0xa882ac(0x1c5)])[_0xa882ac(0x1cf)]>0x1&&delete _0x21b2c0['anncicapi'][_0xa882ac(0x1c5)][_0xa882ac(0x1f9)];if((_0x5b2e76=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1eb)])===null||_0x5b2e76===void 0x0?void 0x0:_0x5b2e76['dirs'])for(const _0x4a62c5 in _0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)]){((_0x38bf43=_0x21b2c0[_0xa882ac(0x1eb)]['dirs'][_0x4a62c5])===null||_0x38bf43===void 0x0?void 0x0:_0x38bf43[_0xa882ac(0x20b)])&&typeof((_0x345366=_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5])===null||_0x345366===void 0x0?void 0x0:_0x345366[_0xa882ac(0x20b)])=='string'&&!fs[_0xa882ac(0x1c6)](_0x21b2c0[_0xa882ac(0x1eb)]['dirs'][_0x4a62c5]['dir'])&&(fs[_0xa882ac(0x1c7)](_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5][_0xa882ac(0x20b)],{'recursive':!![]}),console[_0xa882ac(0x1f6)](_0xa882ac(0x201)+_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5][_0xa882ac(0x20b)]));}((_0x1ea075=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1c2)])===null||_0x1ea075===void 0x0?void 0x0:_0x1ea075[_0xa882ac(0x1c4)])&&!fs['existsSync'](_0x21b2c0['upload']['tmpdir'])&&(fs[_0xa882ac(0x1c7)](_0x21b2c0[_0xa882ac(0x1c2)][_0xa882ac(0x1c4)],{'recursive':!![]}),console[_0xa882ac(0x1f6)](_0xa882ac(0x208)+_0x21b2c0[_0xa882ac(0x1c2)][_0xa882ac(0x1c4)])),this[_0xa882ac(0x1b6)]['addObject'](_0x21b2c0);}};function a2_0x34bd(_0x5127ee,_0x2eefb8){const _0x12f763=a2_0x12f7();return a2_0x34bd=function(_0x34bd38,_0x25d3f6){_0x34bd38=_0x34bd38-0x1b5;let _0x38715e=_0x12f763[_0x34bd38];return _0x38715e;},a2_0x34bd(_0x5127ee,_0x2eefb8);}__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1b6),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),core_1[a2_0x567f71(0x1d7)])],CustomConfiguration['prototype'],a2_0x567f71(0x1b5),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata('design:type',core_1[a2_0x567f71(0x1d4)])],CustomConfiguration[a2_0x567f71(0x1bc)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1ea),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),ApiService_1['ApiService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1d6),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x567f71(0x1ba)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x567f71(0x1ed),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x567f71(0x1b9)]=CustomConfiguration;
@@ -1 +1 @@
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
+ 'use strict';function a3_0x42db(_0x5e8d45,_0x63dfb){const _0x1dd8fe=a3_0x1dd8();return a3_0x42db=function(_0x42dbc9,_0x14e699){_0x42dbc9=_0x42dbc9-0x99;let _0x151265=_0x1dd8fe[_0x42dbc9];return _0x151265;},a3_0x42db(_0x5e8d45,_0x63dfb);}const a3_0x4ba6d7=a3_0x42db;function a3_0x1dd8(){const _0x5fa9e0=['module','join','-controller','../types/action','endsWith','isArray','403900xgllPV','length','apps/','trim','155SrQkoV','rootpath','Action','startsWith','18yyKuci','defineProperty','prefix','route','match','1827558FJZMBS','18988EOlikN','app/controller/','-action','splice','417oaIAjS','ACTION_KEY','6716192HAmsZn','saveClassMetadata','62180ZRDfvF','\x20文件请放在app/controller/文件下','\x20文件请放在apps/','/config.','filepath','tagName','middleware','split','indexOf','saveModule','/apps/','middlewareIgnore','toLowerCase','/controller/','76848UvUeOf','push','Controller','cwd','substring','parseRoute','replace','6642590TWfSrx','existsSync'];a3_0x1dd8=function(){return _0x5fa9e0;};return a3_0x1dd8();}(function(_0x18ae6c,_0x2b7192){const _0x51f1da=a3_0x42db,_0x3ddd58=_0x18ae6c();while(!![]){try{const _0x33b7ba=-parseInt(_0x51f1da(0xc7))/0x1+-parseInt(_0x51f1da(0xbe))/0x2+parseInt(_0x51f1da(0xc3))/0x3*(parseInt(_0x51f1da(0xbf))/0x4)+parseInt(_0x51f1da(0xb5))/0x5*(parseInt(_0x51f1da(0xa2))/0x6)+parseInt(_0x51f1da(0xb1))/0x7+-parseInt(_0x51f1da(0xc5))/0x8+-parseInt(_0x51f1da(0xb9))/0x9*(-parseInt(_0x51f1da(0xa9))/0xa);if(_0x33b7ba===_0x2b7192)break;else _0x3ddd58['push'](_0x3ddd58['shift']());}catch(_0x1a1617){_0x3ddd58['push'](_0x3ddd58['shift']());}}}(a3_0x1dd8,0x993a0));Object[a3_0x4ba6d7(0xba)](exports,'__esModule',{'value':!![]}),exports[a3_0x4ba6d7(0xa7)]=exports['Action']=void 0x0;const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x4ba6d7(0xae));function Action(_0x541ac0,_0x255ce0,_0x34059e={'middleware':[],'sensitive':!![]}){return _0x213a87=>{const _0x228801=a3_0x42db;_0x34059e[_0x228801(0x99)]=_0x255ce0;const _0x32a166=parseRoute(_0x541ac0);if(_0x32a166[_0x228801(0xab)]){_0x34059e[_0x228801(0xbb)]=_0x34059e['prefix']?'/'+_0x32a166[_0x228801(0xab)]+'/'+_0x34059e[_0x228801(0xbb)]:'/'+_0x32a166[_0x228801(0xbc)];_0x32a166[_0x228801(0xbb)]&&(_0x34059e['prefix']='/'+_0x32a166[_0x228801(0xbb)]+'/'+_0x34059e[_0x228801(0xbb)]);if(fs[_0x228801(0xaa)](_0x32a166[_0x228801(0xb6)]+_0x228801(0x9e)+_0x32a166[_0x228801(0xab)]+_0x228801(0xca)+(lodash['endsWith'](_0x32a166[_0x228801(0xcb)],'ts')?'ts':'js'))){const _0x42e5e2=include(_0x32a166['rootpath']+_0x228801(0x9e)+_0x32a166[_0x228801(0xab)]+_0x228801(0xca)+(lodash[_0x228801(0xaf)](_0x32a166[_0x228801(0xcb)],'ts')?'ts':'js'));if(_0x42e5e2[_0x228801(0x9a)]&&lodash[_0x228801(0xb0)](_0x42e5e2[_0x228801(0x9a)])&&_0x42e5e2[_0x228801(0x9a)][_0x228801(0xb2)]>0x0)for(let _0x316de0 in _0x42e5e2[_0x228801(0x9a)]){_0x42e5e2[_0x228801(0x9f)][_0x228801(0x9c)](_0x42e5e2[_0x228801(0x9a)][_0x316de0])==-0x1&&_0x34059e[_0x228801(0x9a)][_0x228801(0xa3)](_0x42e5e2[_0x228801(0x9a)][_0x316de0]);}}_0x34059e[_0x228801(0xbb)]=_0x34059e['prefix'][_0x228801(0xa0)]()[_0x228801(0xa8)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x228801(0x9d)])(action_1[_0x228801(0xc4)],_0x213a87),(0x0,decorator_1['Controller'])(_0x34059e['prefix'],_0x34059e)(_0x213a87),(0x0,decorator_1[_0x228801(0xc6)])(action_1['ACTION_KEY'],{'prefix':_0x34059e[_0x228801(0xbb)],'pprefix':_0x32a166['prefix'],'module':_0x32a166[_0x228801(0xab)],'filepath':_0x32a166[_0x228801(0xcb)],'routerOptions':_0x34059e},_0x213a87);}else _0x34059e[_0x228801(0xbb)]=_0x34059e['prefix']?'/'+_0x34059e[_0x228801(0xbb)]:'/'+_0x32a166['route'],_0x32a166[_0x228801(0xbb)]&&(_0x34059e[_0x228801(0xbb)]='/'+_0x32a166[_0x228801(0xbb)]+'/'+_0x34059e[_0x228801(0xbb)]),_0x34059e[_0x228801(0xbb)]=_0x34059e[_0x228801(0xbb)][_0x228801(0xa0)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x228801(0xc4)],_0x213a87),(0x0,decorator_1[_0x228801(0xa4)])(_0x34059e[_0x228801(0xbb)],_0x34059e)(_0x213a87),(0x0,decorator_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x34059e[_0x228801(0xbb)],'module':_0x32a166[_0x228801(0xab)],'pprefix':_0x32a166[_0x228801(0xbb)],'filepath':_0x32a166[_0x228801(0xcb)],'routerOptions':_0x34059e},_0x213a87);};}exports[a3_0x4ba6d7(0xb7)]=Action;function parseRoute(_0x3d60b3){const _0x26c740=a3_0x4ba6d7;_0x3d60b3=_0x3d60b3['replace'](/(\\|\/)/g,'/');const _0x3333a8=process[_0x26c740(0xa5)]()['replace'](/(\\|\/)/g,'/'),_0x5dcfa6=_0x3d60b3[_0x26c740(0xa6)](0x0,_0x3333a8[_0x26c740(0xb2)]+_0x3d60b3[_0x26c740(0xa6)](_0x3333a8[_0x26c740(0xb2)]+0x1)[_0x26c740(0x9c)]('/')+0x1),_0x3ef366=_0x3d60b3[_0x26c740(0xa6)](_0x5dcfa6[_0x26c740(0xb2)]+0x1)[_0x26c740(0xa8)](/(\\|\/)/g,'/'),_0x42a009={'route':'','prefix':![],'module':![],'rootpath':_0x5dcfa6,'filepath':_0x3ef366};if(_0x3ef366[_0x26c740(0xb8)](_0x26c740(0xc0))){const _0x2bf1e0=_0x3ef366[_0x26c740(0xa6)](_0x26c740(0xc0)['length'])[_0x26c740(0x9b)]('/')['filter'](_0x17a71d=>_0x17a71d&&_0x17a71d[_0x26c740(0xb4)]());return _0x2bf1e0[_0x26c740(0xb2)]>0x1&&(_0x42a009[_0x26c740(0xbb)]=_0x2bf1e0[0x0]['toLowerCase'](),_0x2bf1e0[_0x26c740(0xc2)](0x0,0x1)),_0x42a009['route']=('/'+_0x2bf1e0['join']('/'))[_0x26c740(0xa8)](/(\.ts|\.js)$/,'')[_0x26c740(0xa8)](/\/{2,}/g,'/')[_0x26c740(0xbd)](/[\/|A-Z]*[^A-Z]+/g)[_0x26c740(0xac)]('-')['toLowerCase']()[_0x26c740(0xa8)](/\/\-/g,'/'),_0x42a009[_0x26c740(0xbc)][_0x26c740(0xaf)](_0x26c740(0xc1))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)][_0x26c740(0xb2)]-0x7)),_0x42a009[_0x26c740(0xbc)][_0x26c740(0xaf)](_0x26c740(0xad))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)][_0x26c740(0xb2)]-0xb)),_0x42a009;}else{if(_0x3ef366[_0x26c740(0xb8)](_0x26c740(0xb3))){const _0x5704c7=_0x3ef366['substring'](0x0,_0x3ef366[_0x26c740(0x9c)]('/apps/')+0x5),_0x32d905=_0x3ef366['substring'](_0x5704c7[_0x26c740(0xb2)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x26c740(0x9b)]('/')[0x0];if(_0x3ef366['startsWith']('apps/'+_0x32d905+'/controller/')){const _0x20d9d4=_0x3ef366[_0x26c740(0xa6)]((_0x5704c7+'/'+_0x32d905+_0x26c740(0xa1))[_0x26c740(0xb2)])[_0x26c740(0x9b)]('/')['filter'](_0x5e9686=>_0x5e9686&&_0x5e9686[_0x26c740(0xb4)]());return _0x20d9d4['length']>0x1&&(_0x42a009[_0x26c740(0xbb)]=_0x20d9d4[0x0]['toLowerCase'](),_0x20d9d4[_0x26c740(0xc2)](0x0,0x1)),_0x42a009['module']=_0x32d905,_0x42a009[_0x26c740(0xbc)]=('/'+_0x32d905+'/'+_0x20d9d4[_0x26c740(0xac)]('/'))[_0x26c740(0xa8)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x26c740(0xa8)](/\/\-/g,'/'),_0x42a009[_0x26c740(0xbc)][_0x26c740(0xaf)](_0x26c740(0xc1))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)]['length']-0x7)),_0x42a009[_0x26c740(0xbc)]['endsWith'](_0x26c740(0xad))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)][_0x26c740(0xb2)]-0xb)),_0x42a009;}throw new Error(_0x3ef366+_0x26c740(0xc9)+_0x32d905+'/controller/文件下');}}throw new Error(_0x3ef366+_0x26c740(0xc8));}exports[a3_0x4ba6d7(0xa7)]=parseRoute;
@@ -1 +1 @@
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
+ 'use strict';const a4_0x236af8=a4_0x41cd;function a4_0x3e06(){const _0x89c465=['../types/action','316742BsoIMF','indexOf','delete','validationOptions','ACTION_ROUTE_KEY','middlewareIgnore','Api','apimit','attachClassMetadata','RequestMapping','length','42DfQTcs','@anncic-api/validator','30735aDSuTK','7526090mRTYVd','middleware','toLowerCase','56rOHgxA','createCustomMethodDecorator','__esModule','973233DfAyrY','60tnKIDF','17994636ScBgRX','description','filter','2146515imvCbd','@midwayjs/decorator','routerName','utc','validate','Validator','4LIxBVn','assign','get','889021CJgKZt'];a4_0x3e06=function(){return _0x89c465;};return a4_0x3e06();}(function(_0x30ad41,_0x5452d8){const _0x4b8c82=a4_0x41cd,_0x41f47d=_0x30ad41();while(!![]){try{const _0x4dccb1=-parseInt(_0x4b8c82(0x1cc))/0x1*(-parseInt(_0x4b8c82(0x1c7))/0x2)+parseInt(_0x4b8c82(0x1b5))/0x3*(parseInt(_0x4b8c82(0x1bd))/0x4)+parseInt(_0x4b8c82(0x1c1))/0x5+parseInt(_0x4b8c82(0x1d7))/0x6*(parseInt(_0x4b8c82(0x1ca))/0x7)+parseInt(_0x4b8c82(0x1b9))/0x8*(parseInt(_0x4b8c82(0x1bc))/0x9)+-parseInt(_0x4b8c82(0x1b6))/0xa+-parseInt(_0x4b8c82(0x1be))/0xb;if(_0x4dccb1===_0x5452d8)break;else _0x41f47d['push'](_0x41f47d['shift']());}catch(_0x48bcec){_0x41f47d['push'](_0x41f47d['shift']());}}}(a4_0x3e06,0x73b65));function a4_0x41cd(_0x18b75a,_0x2139f9){const _0x3e06d3=a4_0x3e06();return a4_0x41cd=function(_0x41cdb7,_0x5dfa01){_0x41cdb7=_0x41cdb7-0x1b5;let _0xf818a3=_0x3e06d3[_0x41cdb7];return _0xf818a3;},a4_0x41cd(_0x18b75a,_0x2139f9);}Object['defineProperty'](exports,a4_0x236af8(0x1bb),{'value':!![]}),exports[a4_0x236af8(0x1d2)]=void 0x0;const validator_1=require(a4_0x236af8(0x1d8)),decorator_1=require(a4_0x236af8(0x1c2)),action_1=require(a4_0x236af8(0x1cb));function Api(_0x23d7dc,_0x22fb3c=a4_0x236af8(0x1c9),_0x3b23f6='/',_0x110e49={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x179244,_0x42085e,_0x7460fa)=>{const _0x30a539=a4_0x41cd;var _0x5ed0cf,_0x7e4ac7,_0x2525e1;!_0x110e49[_0x30a539(0x1b7)]&&(_0x110e49['middleware']=[]);!((_0x5ed0cf=_0x110e49===null||_0x110e49===void 0x0?void 0x0:_0x110e49[_0x30a539(0x1c5)])===null||_0x5ed0cf===void 0x0?void 0x0:_0x5ed0cf[_0x30a539(0x1cf)])&&(_0x110e49[_0x30a539(0x1c5)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x30a539(0x1c4)}});if(((_0x7e4ac7=_0x110e49===null||_0x110e49===void 0x0?void 0x0:_0x110e49[_0x30a539(0x1b7)])===null||_0x7e4ac7===void 0x0?void 0x0:_0x7e4ac7[_0x30a539(0x1d6)])>0x0&&((_0x2525e1=_0x110e49===null||_0x110e49===void 0x0?void 0x0:_0x110e49[_0x30a539(0x1d1)])===null||_0x2525e1===void 0x0?void 0x0:_0x2525e1[_0x30a539(0x1d6)])>0x0)for(let _0x44d20e in _0x110e49['middleware']){_0x110e49[_0x30a539(0x1d1)][_0x30a539(0x1cd)](_0x110e49[_0x30a539(0x1b7)][_0x44d20e])!==-0x1&&(_0x110e49['middleware'][_0x44d20e]=null);}_0x110e49[_0x30a539(0x1c3)]=_0x23d7dc,(0x0,validator_1[_0x30a539(0x1c6)])(_0x110e49['validate'])(_0x179244,_0x42085e,_0x7460fa),(0x0,decorator_1[_0x30a539(0x1d5)])(Object[_0x30a539(0x1c8)](_0x110e49,{'path':_0x3b23f6,'requestMethod':(_0x22fb3c=='del'?_0x30a539(0x1ce):_0x22fb3c)[_0x30a539(0x1b8)]()}))(_0x179244,_0x42085e,_0x7460fa),(0x0,decorator_1[_0x30a539(0x1d4)])(action_1[_0x30a539(0x1d0)],{'path':_0x3b23f6,'method':_0x42085e,'apimit':_0x110e49[_0x30a539(0x1d3)],'routerName':_0x110e49[_0x30a539(0x1c3)],'description':_0x110e49[_0x30a539(0x1bf)],'middleware':(_0x110e49[_0x30a539(0x1b7)]||[])[_0x30a539(0x1c0)](_0x5bc689=>!!_0x5bc689),'requestMethod':(_0x22fb3c=='del'?_0x30a539(0x1ce):_0x22fb3c)[_0x30a539(0x1b8)]()},_0x179244),(0x0,decorator_1[_0x30a539(0x1ba)])(action_1[_0x30a539(0x1d0)],{'path':_0x3b23f6,'method':_0x42085e,'apimit':_0x110e49[_0x30a539(0x1d3)],'routerName':_0x110e49['routerName'],'description':_0x110e49[_0x30a539(0x1bf)],'middleware':(_0x110e49['middleware']||[])[_0x30a539(0x1c0)](_0x51ca59=>!!_0x51ca59),'requestMethod':(_0x22fb3c=='del'?_0x30a539(0x1ce):_0x22fb3c)['toLowerCase']()})(_0x179244,_0x42085e,_0x7460fa);};}exports[a4_0x236af8(0x1d2)]=Api;
@@ -1 +1 @@
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
+ 'use strict';const a5_0xf395ab=a5_0x5308;(function(_0x57a921,_0x548086){const _0x2b6f70=a5_0x5308,_0x187c11=_0x57a921();while(!![]){try{const _0x8529d0=-parseInt(_0x2b6f70(0x1d0))/0x1+parseInt(_0x2b6f70(0x1d1))/0x2+-parseInt(_0x2b6f70(0x1dd))/0x3*(parseInt(_0x2b6f70(0x1e2))/0x4)+parseInt(_0x2b6f70(0x1d2))/0x5+-parseInt(_0x2b6f70(0x1e1))/0x6+parseInt(_0x2b6f70(0x1de))/0x7+parseInt(_0x2b6f70(0x1d8))/0x8;if(_0x8529d0===_0x548086)break;else _0x187c11['push'](_0x187c11['shift']());}catch(_0x1a9300){_0x187c11['push'](_0x187c11['shift']());}}}(a5_0x11ee,0xadabd));Object['defineProperty'](exports,a5_0xf395ab(0x1e3),{'value':!![]}),exports[a5_0xf395ab(0x1cf)]=void 0x0;function a5_0x5308(_0x5088ad,_0x10469f){const _0x11eeba=a5_0x11ee();return a5_0x5308=function(_0x5308ff,_0x20a50d){_0x5308ff=_0x5308ff-0x1ca;let _0x14bea9=_0x11eeba[_0x5308ff];return _0x14bea9;},a5_0x5308(_0x5088ad,_0x10469f);}const decorator_1=require(a5_0xf395ab(0x1e0)),core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0xf395ab(0x1d9));function a5_0x11ee(){const _0x542ffa=['711020yaGjSF','1455156RFvVKG','4002605CWBDJM','RequestMapping','getApplicationContext','apidoc','ApitestService','get','3006952jhNJIw','../service/ApitestService','value','REQUEST_OBJ_CTX_KEY','/apitest','1026PHJeAx','8776488SytCyk','isDevelopmentEnvironment','@midwayjs/decorator','7976526QlVFWt','4748SpdDPu','__esModule','filepath','app','getConfig','MidwayEnvironmentService','apitest','getAsync','Apitest'];a5_0x11ee=function(){return _0x542ffa;};return a5_0x11ee();}function Apitest(_0xbddfdf=a5_0xf395ab(0x1dc),_0x3a6d21){return(_0x3026d8,_0x29a16e,_0x265f22)=>{const _0x4e40eb=a5_0x5308;return(0x0,decorator_1[_0x4e40eb(0x1d3)])({'path':_0xbddfdf,'requestMethod':_0x4e40eb(0x1d7)})(_0x3026d8,_0x29a16e,_0x265f22),_0x265f22[_0x4e40eb(0x1da)]=async function(..._0x5752d8){const _0x1818ed=_0x4e40eb;var _0x2f354c;const _0x372cc9=(_0x2f354c=this[core_1[_0x1818ed(0x1db)]])===null||_0x2f354c===void 0x0?void 0x0:_0x2f354c[_0x1818ed(0x1ca)];if(_0x372cc9&&_0x372cc9[_0x1818ed(0x1cb)](_0x1818ed(0x1cd))){const _0x397ff0=await _0x372cc9[_0x1818ed(0x1d4)]()[_0x1818ed(0x1ce)](ApitestService_1[_0x1818ed(0x1d6)]),_0x315ca8=await _0x372cc9[_0x1818ed(0x1d4)]()[_0x1818ed(0x1ce)](core_1[_0x1818ed(0x1cc)]);return _0x315ca8[_0x1818ed(0x1df)]()&&(_0x3a6d21[_0x1818ed(0x1e4)]=!![]),await _0x397ff0[_0x1818ed(0x1d5)](_0x3a6d21);}return'';},_0x265f22;};}exports['Apitest']=Apitest;
@@ -1 +1 @@
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;
1
+ 'use strict';var a6_0x1cd000=a6_0x1a67;(function(_0x567962,_0x3d8dd6){var _0x49cf0d=a6_0x1a67,_0x35cdca=_0x567962();while(!![]){try{var _0x1893d7=parseInt(_0x49cf0d(0x8a))/0x1+-parseInt(_0x49cf0d(0x8b))/0x2+parseInt(_0x49cf0d(0xa0))/0x3+parseInt(_0x49cf0d(0x87))/0x4*(-parseInt(_0x49cf0d(0x89))/0x5)+-parseInt(_0x49cf0d(0xa3))/0x6*(-parseInt(_0x49cf0d(0x8d))/0x7)+-parseInt(_0x49cf0d(0x8e))/0x8*(parseInt(_0x49cf0d(0x92))/0x9)+-parseInt(_0x49cf0d(0x97))/0xa;if(_0x1893d7===_0x3d8dd6)break;else _0x35cdca['push'](_0x35cdca['shift']());}catch(_0x3db276){_0x35cdca['push'](_0x35cdca['shift']());}}}(a6_0x4acf,0x69a76));var __decorate=this&&this[a6_0x1cd000(0x91)]||function(_0x5314cc,_0x319373,_0x1fa44b,_0x27e91b){var _0xf6e69e=a6_0x1cd000,_0x1176ac=arguments['length'],_0x13df0c=_0x1176ac<0x3?_0x319373:_0x27e91b===null?_0x27e91b=Object[_0xf6e69e(0x93)](_0x319373,_0x1fa44b):_0x27e91b,_0x497195;if(typeof Reflect==='object'&&typeof Reflect[_0xf6e69e(0x8f)]===_0xf6e69e(0x9f))_0x13df0c=Reflect[_0xf6e69e(0x8f)](_0x5314cc,_0x319373,_0x1fa44b,_0x27e91b);else{for(var _0x10d9b4=_0x5314cc[_0xf6e69e(0x98)]-0x1;_0x10d9b4>=0x0;_0x10d9b4--)if(_0x497195=_0x5314cc[_0x10d9b4])_0x13df0c=(_0x1176ac<0x3?_0x497195(_0x13df0c):_0x1176ac>0x3?_0x497195(_0x319373,_0x1fa44b,_0x13df0c):_0x497195(_0x319373,_0x1fa44b))||_0x13df0c;}return _0x1176ac>0x3&&_0x13df0c&&Object['defineProperty'](_0x319373,_0x1fa44b,_0x13df0c),_0x13df0c;},__metadata=this&&this[a6_0x1cd000(0x9a)]||function(_0x1fa138,_0xdf12b2){var _0x23495e=a6_0x1cd000;if(typeof Reflect==='object'&&typeof Reflect[_0x23495e(0xa2)]===_0x23495e(0x9f))return Reflect[_0x23495e(0xa2)](_0x1fa138,_0xdf12b2);};Object[a6_0x1cd000(0x99)](exports,a6_0x1cd000(0x9c),{'value':!![]}),exports[a6_0x1cd000(0x95)]=void 0x0;class ApiError{}function a6_0x4acf(){var _0x15337d=['请求头信息不完整','metadata','202398VivQjb','signature验证失败','324WbiCuc','TIMEOUT','530yGIZJX','858971tgEbYM','309712RdWVWp','HEADERS_SIGNATURE','21HYLYqf','8RWEfYL','decorate','网络繁忙,请稍后重试','__decorate','3564738IcVSmr','getOwnPropertyDescriptor','HEADERS_DEVICE','ApiError','design:type','1386210cKWLvg','length','defineProperty','__metadata','HEADERS_LACK','__esModule','请使用正确的设备','HEADERS_CHECKCODE','function','512199NHkpSK'];a6_0x4acf=function(){return _0x15337d;};return a6_0x4acf();}function a6_0x1a67(_0x5a36bf,_0x166397){var _0x4acf6c=a6_0x4acf();return a6_0x1a67=function(_0x1a67bf,_0x4f5a7d){_0x1a67bf=_0x1a67bf-0x86;var _0x6ed55a=_0x4acf6c[_0x1a67bf];return _0x6ed55a;},a6_0x1a67(_0x5a36bf,_0x166397);}ApiError[a6_0x1cd000(0x88)]=0x18a89,ApiError[a6_0x1cd000(0x9b)]=0x18a8a,ApiError[a6_0x1cd000(0x94)]=0x18a8b,ApiError[a6_0x1cd000(0x9e)]=0x18a8c,ApiError[a6_0x1cd000(0x8c)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x1cd000(0x90)),__metadata(a6_0x1cd000(0x96),Object)],ApiError,a6_0x1cd000(0x88),void 0x0),__decorate([AnnErrorMsg(a6_0x1cd000(0xa1)),__metadata(a6_0x1cd000(0x96),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x1cd000(0x9d)),__metadata(a6_0x1cd000(0x96),Object)],ApiError,a6_0x1cd000(0x94),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x1cd000(0x96),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x1cd000(0x86)),__metadata('design:type',Object)],ApiError,a6_0x1cd000(0x8c),void 0x0),exports[a6_0x1cd000(0x95)]=ApiError;
@@ -1 +1 @@
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();}
1
+ 'use strict';const a7_0x32c4d4=a7_0x4405;(function(_0x396b84,_0x40d328){const _0x1c0cfc=a7_0x4405,_0x181d75=_0x396b84();while(!![]){try{const _0x295998=parseInt(_0x1c0cfc(0x15f))/0x1+parseInt(_0x1c0cfc(0x174))/0x2*(parseInt(_0x1c0cfc(0x1a1))/0x3)+parseInt(_0x1c0cfc(0x199))/0x4*(parseInt(_0x1c0cfc(0x171))/0x5)+parseInt(_0x1c0cfc(0x178))/0x6+-parseInt(_0x1c0cfc(0x187))/0x7+-parseInt(_0x1c0cfc(0x193))/0x8*(parseInt(_0x1c0cfc(0x1a8))/0x9)+-parseInt(_0x1c0cfc(0x169))/0xa*(-parseInt(_0x1c0cfc(0x188))/0xb);if(_0x295998===_0x40d328)break;else _0x181d75['push'](_0x181d75['shift']());}catch(_0x5e7043){_0x181d75['push'](_0x181d75['shift']());}}}(a7_0x4af0,0x6868c));Object[a7_0x32c4d4(0x180)](exports,a7_0x32c4d4(0x154),{'value':!![]}),exports['getRoutes']=void 0x0;function a7_0x4405(_0x39bd1f,_0x1106b4){const _0x4af04e=a7_0x4af0();return a7_0x4405=function(_0x44055a,_0x175955){_0x44055a=_0x44055a-0x154;let _0x5d784a=_0x4af04e[_0x44055a];return _0x5d784a;},a7_0x4405(_0x39bd1f,_0x1106b4);}const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x32c4d4(0x1a4)),decorator_2=require(a7_0x32c4d4(0x1a4)),decorator_3=require(a7_0x32c4d4(0x1a4)),action_1=require('../types/action');function getRoutes(_0x4a4a2f={'prefix':'/','module':![]}){const _0x52048c=a7_0x32c4d4;var _0x52a37d,_0xd31f9c;const _0x51242e=(0x0,decorator_3[_0x52048c(0x159)])(action_1['ACTION_KEY']),_0x14df52={},_0x32eb6a=Array[_0x52048c(0x17b)](_0x4a4a2f[_0x52048c(0x16c)]||[])?_0x4a4a2f['filter']||[]:[_0x4a4a2f[_0x52048c(0x16c)]];_0x5c8cad:for(const _0x4ab92a of _0x51242e){let _0x4addac=(0x0,decorator_3[_0x52048c(0x161)])(action_1[_0x52048c(0x158)],_0x4ab92a),_0x3ba295=(0x0,decorator_3[_0x52048c(0x161)])(action_1[_0x52048c(0x18a)],_0x4ab92a);if(_0x4addac&&_0x3ba295){let _0xf0e6e9=_0x4addac['prefix'],_0x372cbf={};if(_0x4a4a2f[_0x52048c(0x18e)]&&(0x0,lodash_1[_0x52048c(0x183)])(_0x4addac,'module',![])!=_0x4a4a2f[_0x52048c(0x18e)])continue _0x5c8cad;else{if(_0x4a4a2f[_0x52048c(0x18e)]===![]&&!!(0x0,lodash_1['get'])(_0x4addac,_0x52048c(0x18e),null))continue _0x5c8cad;}if(_0x4a4a2f['prefix']&&!_0xf0e6e9[_0x52048c(0x19c)](_0x4a4a2f[_0x52048c(0x1ae)]))continue _0x5c8cad;_0xf0e6e9!=='/'?(_0x372cbf[_0x52048c(0x176)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)]['tagName'])||(/^\//[_0x52048c(0x16e)](_0xf0e6e9)?_0xf0e6e9[_0x52048c(0x16b)]('/')[0x1]:_0xf0e6e9),_0x372cbf[_0x52048c(0x1ac)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)][_0x52048c(0x1ac)])||_0x372cbf[_0x52048c(0x176)],_0x372cbf[_0x52048c(0x186)]=[]):(_0x372cbf[_0x52048c(0x176)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)][_0x52048c(0x185)])||_0x52048c(0x15c),_0x372cbf[_0x52048c(0x1ac)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac['routerOptions']['description'])||'',_0x372cbf['routes']=[]);_0x4a4a2f[_0x52048c(0x181)]&&(_0x372cbf[_0x52048c(0x181)]=_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x181)]);(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x190)])&&(_0x372cbf[_0x52048c(0x1ae)]=_0x4addac[_0x52048c(0x190)]);(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x18e)])&&(_0x372cbf[_0x52048c(0x18e)]=_0x4addac[_0x52048c(0x18e)]);let _0x3c2658=(0x0,decorator_3[_0x52048c(0x161)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x4ab92a)||{};if(typeof _0x3ba295[Symbol[_0x52048c(0x157)]]===_0x52048c(0x18d))for(let _0x272e80 of _0x3ba295){let _0x10f00a={};_0x10f00a[_0x52048c(0x17d)]=_0x272e80['requestMethod'],_0x10f00a[_0x52048c(0x175)]=(_0xf0e6e9+_0x272e80[_0x52048c(0x17a)])[_0x52048c(0x1a5)](/\/{1,}/,'/'),_0x10f00a[_0x52048c(0x176)]=(_0x272e80===null||_0x272e80===void 0x0?void 0x0:_0x272e80['routerName'])||_0x372cbf[_0x52048c(0x176)]||'default',_0x10f00a['description']=(_0x272e80===null||_0x272e80===void 0x0?void 0x0:_0x272e80[_0x52048c(0x1ac)])||'',_0x10f00a[_0x52048c(0x182)]=[];if(!(0x0,lodash_1['startsWith'])(_0x10f00a[_0x52048c(0x175)],'static/apitest')&&!(0x0,lodash_1[_0x52048c(0x19c)])(_0x10f00a[_0x52048c(0x175)],_0x52048c(0x166))&&_0x32eb6a['indexOf'](_0x10f00a[_0x52048c(0x175)])===-0x1){if(!(_0x4a4a2f===null||_0x4a4a2f===void 0x0?void 0x0:_0x4a4a2f[_0x52048c(0x198)])){let _0x57c7ae=(0x0,decorator_3[_0x52048c(0x155)])(new _0x4ab92a(),_0x272e80[_0x52048c(0x17d)]);for(const _0x280bcf in _0x57c7ae){let _0x2be4f6=(_0x52a37d=_0x3c2658[_0x272e80[_0x52048c(0x17d)]])===null||_0x52a37d===void 0x0?void 0x0:_0x52a37d[_0x52048c(0x18f)](_0x368ace=>_0x368ace[_0x52048c(0x189)]==_0x280bcf&&_0x368ace[_0x52048c(0x195)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x368ace===null||_0x368ace===void 0x0?void 0x0:_0x368ace[_0x52048c(0x17f)]));if(_0x2be4f6===null||_0x2be4f6===void 0x0?void 0x0:_0x2be4f6[_0x52048c(0x17f)]){let _0x25cb8d=convertTypeToString(_0x2be4f6[_0x52048c(0x17f)][_0x52048c(0x170)]||0x0);if(['query',_0x52048c(0x1a3)]['indexOf'](_0x25cb8d)!=-0x1&&_0x2be4f6['metadata'][_0x52048c(0x156)][_0x52048c(0x15d)](':')==-0x1&&!_0x10f00a[_0x52048c(0x182)][_0x52048c(0x18f)](_0x31d3fe=>_0x31d3fe['key']==_0x2be4f6[_0x52048c(0x17f)][_0x52048c(0x156)]))_0x10f00a[_0x52048c(0x182)][_0x52048c(0x162)]({'key':_0x2be4f6[_0x52048c(0x17f)]['propertyData'],'title':_0x2be4f6[_0x52048c(0x17f)]['propertyData'],'type':convertSchemaType(_0x57c7ae[_0x2be4f6['parameterIndex']][_0x52048c(0x1a7)]),'required':![],'default':'','desc':''});else{if(_0x25cb8d==_0x52048c(0x18b)){let _0x3e1c15=((_0xd31f9c=_0x2be4f6===null||_0x2be4f6===void 0x0?void 0x0:_0x2be4f6[_0x52048c(0x17f)])===null||_0xd31f9c===void 0x0?void 0x0:_0xd31f9c['propertyData'])||_0x52048c(0x18b);_0x3e1c15['indexOf'](':')==-0x1&&!_0x10f00a[_0x52048c(0x182)]['find'](_0x2589be=>_0x2589be[_0x52048c(0x195)]==_0x3e1c15&&_0x2589be[_0x52048c(0x170)]=='file')&&_0x10f00a[_0x52048c(0x182)][_0x52048c(0x162)]({'key':_0x3e1c15,'title':'文件上传-'+_0x3e1c15,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x36f9af=(0x0,decorator_3[_0x52048c(0x191)])(validator_1[_0x52048c(0x16d)],_0x57c7ae[_0x280bcf]);_0x36f9af&&_0x10f00a['request'][_0x52048c(0x162)](...getJoiRequest(_0x36f9af));}}}_0x372cbf[_0x52048c(0x186)][_0x52048c(0x162)](_0x10f00a);}}if(_0x372cbf[_0x52048c(0x186)][_0x52048c(0x15a)]>0x0){let _0x583096=_0x14df52[_0xf0e6e9];_0x583096?(_0x583096[_0x52048c(0x176)]!=_0x372cbf[_0x52048c(0x176)]&&(_0x583096[_0x52048c(0x176)]=_0x583096[_0x52048c(0x176)]+','+_0x372cbf['summary']),_0x583096[_0x52048c(0x1ac)]!=_0x372cbf[_0x52048c(0x1ac)]&&(_0x583096[_0x52048c(0x1ac)]=_0x583096[_0x52048c(0x1ac)]+','+_0x372cbf['description']),_0x583096[_0x52048c(0x186)]=_0x583096[_0x52048c(0x186)][_0x52048c(0x1ab)](_0x372cbf[_0x52048c(0x186)]),_0x14df52[_0xf0e6e9]=_0x583096):_0x14df52[_0xf0e6e9]=_0x372cbf;}}}return _0x14df52;}exports['getRoutes']=getRoutes;function a7_0x4af0(){const _0x5ab148=['noreq','12ghHFJp','File','boolean','startsWith','FILESTREAM','number','log','header','1062606ungSSZ','HEADERS','body','@midwayjs/decorator','replace','FILESSTREAM','name','451998EwcdQv','QUERY','FIELDS','concat','description','flags.description','prefix','BODY','__esModule','getMethodParamTypes','propertyData','iterator','ACTION_KEY','listModule','length','flags.default','default','indexOf','string','328902bevKKR','-array','getClassMetadata','push','flags.presence','args','RouteParamTypes','/static/apitest','children','max','4642130oHnKsV','Boolean','split','filter','RULES_KEY','test','title','type','460885cmpoPP','min','required','2SXUYDv','route','summary','query','427164OUjygb','object','path','isArray','limit','method','rules','metadata','defineProperty','filepath','request','get','items','tagName','routes','3604580ybagUv','11zUFqIJ','parameterIndex','ACTION_ROUTE_KEY','file','allow','function','module','find','pprefix','getClassExtendedMetadata','describe','88VZSvcf','routerOptions','key','array','keys'];a7_0x4af0=function(){return _0x5ab148;};return a7_0x4af0();}function getJoiRequest(_0x3a9f3d){const _0x590f02=a7_0x32c4d4,_0xaca174=[];for(let _0x1e0c9d in _0x3a9f3d){const _0x58d9aa={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x384056=typeof _0x3a9f3d[_0x1e0c9d]['describe']==_0x590f02(0x18d)?_0x3a9f3d[_0x1e0c9d][_0x590f02(0x192)]():_0x3a9f3d[_0x1e0c9d];_0x58d9aa['key']=_0x1e0c9d,_0x58d9aa[_0x590f02(0x170)]=_0x384056[_0x590f02(0x170)],_0x58d9aa[_0x590f02(0x16f)]=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,'flags.label',_0x1e0c9d),_0x58d9aa[_0x590f02(0x15c)]=(0x0,lodash_1['get'])(_0x384056,_0x590f02(0x15b),''),_0x58d9aa[_0x590f02(0x173)]=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,_0x590f02(0x163),'')=='required',_0x58d9aa['description']=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,_0x590f02(0x1ad),'');if(_0x384056['type']==_0x590f02(0x179))_0x58d9aa[_0x590f02(0x167)]=getJoiRequest(_0x384056[_0x590f02(0x197)]);else _0x384056[_0x590f02(0x170)]==_0x590f02(0x196)&&_0x384056['items']&&Array[_0x590f02(0x17b)](_0x384056['items'])&&_0x384056[_0x590f02(0x184)][0x0]&&console[_0x590f02(0x19f)](_0x1e0c9d+_0x590f02(0x160),_0x384056);_0x384056[_0x590f02(0x18c)]&&Array[_0x590f02(0x17b)](_0x384056['allow'])&&_0x384056[_0x590f02(0x18c)][_0x590f02(0x15a)]>0x0&&(_0x58d9aa[_0x590f02(0x1ac)]='只允许:['+_0x384056[_0x590f02(0x18c)]['join'](',')+'];'+_0x58d9aa[_0x590f02(0x1ac)]);if(_0x58d9aa['key']&&_0x58d9aa['type']){const _0x51720e={};for(const _0x48b5d5 of _0x384056['rules']||[]){if(_0x48b5d5[_0x590f02(0x1a7)]===_0x590f02(0x172)&&_0x48b5d5[_0x590f02(0x164)])_0x51720e['min']=_0x48b5d5[_0x590f02(0x164)][_0x590f02(0x17c)];else _0x48b5d5[_0x590f02(0x1a7)]===_0x590f02(0x168)&&(_0x51720e[_0x590f02(0x168)]=_0x48b5d5[_0x590f02(0x164)][_0x590f02(0x17c)]);}_0x58d9aa[_0x590f02(0x17e)]=_0x51720e;}_0x58d9aa[_0x590f02(0x195)]&&_0x58d9aa[_0x590f02(0x16f)]&&_0xaca174[_0x590f02(0x162)](_0x58d9aa);}return _0xaca174;}function convertSchemaType(_0x1f703a){const _0x37c8db=a7_0x32c4d4;switch(_0x1f703a){case'Object':return _0x37c8db(0x179);case _0x37c8db(0x16a):return _0x37c8db(0x19b);case'Number':return _0x37c8db(0x19e);case'String':return _0x37c8db(0x15e);case _0x37c8db(0x19a):return _0x37c8db(0x18b);default:return _0x37c8db(0x15e);}}function convertTypeToString(_0x4b30cb){const _0x2d8824=a7_0x32c4d4;switch(_0x4b30cb){case decorator_1['RouteParamTypes'][_0x2d8824(0x1a2)]:return _0x2d8824(0x1a0);case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1a9)]:return _0x2d8824(0x177);case decorator_1[_0x2d8824(0x165)]['PARAM']:return _0x2d8824(0x17a);case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1af)]:return _0x2d8824(0x1a3);case decorator_1['RouteParamTypes'][_0x2d8824(0x1aa)]:case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1a6)]:case decorator_1['RouteParamTypes'][_0x2d8824(0x19d)]:return _0x2d8824(0x18b);default:return _0x2d8824(0x1a0);}}
package/dist/index.js CHANGED
@@ -1 +1 @@
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
+ 'use strict';function a8_0x3525(_0x2f3bef,_0x25a22c){var _0x1249c1=a8_0x1249();return a8_0x3525=function(_0x352551,_0x53f58f){_0x352551=_0x352551-0x1a0;var _0x314562=_0x1249c1[_0x352551];return _0x314562;},a8_0x3525(_0x2f3bef,_0x25a22c);}var a8_0x395d8c=a8_0x3525;(function(_0x321ea0,_0x13f104){var _0x3c1c09=a8_0x3525,_0x1ddce4=_0x321ea0();while(!![]){try{var _0x5eba17=-parseInt(_0x3c1c09(0x1b2))/0x1+parseInt(_0x3c1c09(0x1c6))/0x2+-parseInt(_0x3c1c09(0x1d8))/0x3+-parseInt(_0x3c1c09(0x1b3))/0x4*(-parseInt(_0x3c1c09(0x1d7))/0x5)+-parseInt(_0x3c1c09(0x1cb))/0x6*(parseInt(_0x3c1c09(0x1a4))/0x7)+parseInt(_0x3c1c09(0x1b6))/0x8*(-parseInt(_0x3c1c09(0x1aa))/0x9)+parseInt(_0x3c1c09(0x1cc))/0xa;if(_0x5eba17===_0x13f104)break;else _0x1ddce4['push'](_0x1ddce4['shift']());}catch(_0x8ccd8e){_0x1ddce4['push'](_0x1ddce4['shift']());}}}(a8_0x1249,0xbfd27));var __createBinding=this&&this[a8_0x395d8c(0x1dc)]||(Object[a8_0x395d8c(0x1a2)]?function(_0x2a9e57,_0xd32c56,_0xf17b8a,_0x5f0e24){var _0x57ad2e=a8_0x395d8c;if(_0x5f0e24===undefined)_0x5f0e24=_0xf17b8a;var _0x438268=Object[_0x57ad2e(0x1a0)](_0xd32c56,_0xf17b8a);(!_0x438268||(_0x57ad2e(0x1d6)in _0x438268?!_0xd32c56[_0x57ad2e(0x1c9)]:_0x438268[_0x57ad2e(0x1cd)]||_0x438268[_0x57ad2e(0x1b5)]))&&(_0x438268={'enumerable':!![],'get':function(){return _0xd32c56[_0xf17b8a];}}),Object['defineProperty'](_0x2a9e57,_0x5f0e24,_0x438268);}:function(_0x5696cb,_0x3a2b1a,_0x39f4cb,_0x229fc3){if(_0x229fc3===undefined)_0x229fc3=_0x39f4cb;_0x5696cb[_0x229fc3]=_0x3a2b1a[_0x39f4cb];}),__exportStar=this&&this[a8_0x395d8c(0x1c0)]||function(_0x59807e,_0xedc4a0){var _0x2b681d=a8_0x395d8c;for(var _0x225626 in _0x59807e)if(_0x225626!==_0x2b681d(0x1a1)&&!Object[_0x2b681d(0x1ca)][_0x2b681d(0x1c8)][_0x2b681d(0x1be)](_0xedc4a0,_0x225626))__createBinding(_0xedc4a0,_0x59807e,_0x225626);};Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c9),{'value':!![]}),exports['ScopeEnum']=exports[a8_0x395d8c(0x1b0)]=exports[a8_0x395d8c(0x1d4)]=exports[a8_0x395d8c(0x1c2)]=exports[a8_0x395d8c(0x1a9)]=exports[a8_0x395d8c(0x1b8)]=exports[a8_0x395d8c(0x1d2)]=exports[a8_0x395d8c(0x1db)]=exports['Headers']=exports['Query']=exports[a8_0x395d8c(0x1ba)]=exports[a8_0x395d8c(0x1a5)]=exports[a8_0x395d8c(0x1ab)]=exports['Files']=exports[a8_0x395d8c(0x1c1)]=exports[a8_0x395d8c(0x1dd)]=exports[a8_0x395d8c(0x1bb)]=exports['ValidatorError']=exports['ExcelService']=exports[a8_0x395d8c(0x1af)]=exports['EventService']=exports[a8_0x395d8c(0x1bd)]=exports[a8_0x395d8c(0x1da)]=exports[a8_0x395d8c(0x1a6)]=exports[a8_0x395d8c(0x1ad)]=exports['Action']=exports['Api']=exports['getRoutes']=void 0x0,__exportStar(require(a8_0x395d8c(0x1d9)),exports),__exportStar(require(a8_0x395d8c(0x1d0)),exports);var getRoutes_1=require(a8_0x395d8c(0x1b1));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c5),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ActionApi_1=require(a8_0x395d8c(0x1b7));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1a7),{'enumerable':!![],'get':function(){var _0x4cdefa=a8_0x395d8c;return ActionApi_1[_0x4cdefa(0x1a7)];}});var Action_1=require(a8_0x395d8c(0x1c3));Object['defineProperty'](exports,a8_0x395d8c(0x1b4),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a8_0x395d8c(0x1ac));Object[a8_0x395d8c(0x1a3)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x15401f=a8_0x395d8c;return ActionApitest_1[_0x15401f(0x1ad)];}});var ApiError_1=require(a8_0x395d8c(0x1bc));Object['defineProperty'](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x2c05f4=a8_0x395d8c;return ApiError_1[_0x2c05f4(0x1a6)];}});var task_1=require(a8_0x395d8c(0x1bf));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1da),{'enumerable':!![],'get':function(){var _0x168abc=a8_0x395d8c;return task_1[_0x168abc(0x1da)];}});var cache_1=require(a8_0x395d8c(0x1a8));Object[a8_0x395d8c(0x1a3)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x5643f7=a8_0x395d8c;return cache_1[_0x5643f7(0x1bd)];}});var event_1=require('@anncic-api/event');Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c7),{'enumerable':!![],'get':function(){var _0x167f88=a8_0x395d8c;return event_1[_0x167f88(0x1c7)];}});var ApiService_1=require('./service/ApiService');Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1af),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a8_0x395d8c(0x1d1));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1d5),{'enumerable':!![],'get':function(){var _0xefdd1f=a8_0x395d8c;return ExcelService_1[_0xefdd1f(0x1d5)];}});var validator_1=require('@anncic-api/validator');Object['defineProperty'](exports,a8_0x395d8c(0x1de),{'enumerable':!![],'get':function(){var _0x1e6d1c=a8_0x395d8c;return validator_1[_0x1e6d1c(0x1de)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1bb),{'enumerable':!![],'get':function(){var _0x37cfaf=a8_0x395d8c;return validator_1[_0x37cfaf(0x1bb)];}});var configuration_1=require(a8_0x395d8c(0x1cf));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1dd),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a8_0x395d8c(0x1b9));Object[a8_0x395d8c(0x1a3)](exports,'File',{'enumerable':!![],'get':function(){var _0x3b2d16=a8_0x395d8c;return decorator_1[_0x3b2d16(0x1c1)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1ce),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x4ef65f=a8_0x395d8c;return decorator_1[_0x4ef65f(0x1ab)];}}),Object[a8_0x395d8c(0x1a3)](exports,'Body',{'enumerable':!![],'get':function(){var _0x2e0a4c=a8_0x395d8c;return decorator_1[_0x2e0a4c(0x1a5)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1ba),{'enumerable':!![],'get':function(){var _0xa20a3a=a8_0x395d8c;return decorator_1[_0xa20a3a(0x1ba)];}}),Object['defineProperty'](exports,a8_0x395d8c(0x1d3),{'enumerable':!![],'get':function(){var _0x432bbc=a8_0x395d8c;return decorator_1[_0x432bbc(0x1d3)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1ae),{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object['defineProperty'](exports,a8_0x395d8c(0x1db),{'enumerable':!![],'get':function(){var _0x1ee290=a8_0x395d8c;return decorator_1[_0x1ee290(0x1db)];}});function a8_0x1249(){var _0x45f5c5=['707527eTjaZp','104ZnmpJN','Action','configurable','8gmwkgX','./decorator/ActionApi','Config','@midwayjs/decorator','Param','ValidatorService','./exception/ApiError','CacheService','call','@midwayjs/task','__exportStar','File','Provide','./decorator/Action','ScopeEnum','getRoutes','2983602ZqiPGm','EventService','hasOwnProperty','__esModule','prototype','18432NDQWDl','22495640OonoqR','writable','Files','./configuration','./service/ApitestService','./service/ExcelService','App','Query','Inject','ExcelService','get','40835krExtX','1511742srExab','./types/common','QueueService','Init','__createBinding','Configuration','ValidatorError','getOwnPropertyDescriptor','default','create','defineProperty','1729aozDhE','Body','ApiError','Api','@anncic-api/cache','Logger','10780011qLEHBB','Fields','./decorator/ActionApitest','Apitest','Headers','ApiService','Scope','./helper/getRoutes'];a8_0x1249=function(){return _0x45f5c5;};return a8_0x1249();}var decorator_2=require('@midwayjs/decorator');Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1d2),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a8_0x395d8c(0x1a3)](exports,'Config',{'enumerable':!![],'get':function(){var _0x5b2ec8=a8_0x395d8c;return decorator_2[_0x5b2ec8(0x1b8)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1a9),{'enumerable':!![],'get':function(){var _0x102f28=a8_0x395d8c;return decorator_2[_0x102f28(0x1a9)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c2),{'enumerable':!![],'get':function(){var _0x3d13b7=a8_0x395d8c;return decorator_2[_0x3d13b7(0x1c2)];}}),Object[a8_0x395d8c(0x1a3)](exports,'Inject',{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object['defineProperty'](exports,a8_0x395d8c(0x1b0),{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c4),{'enumerable':!![],'get':function(){var _0x1323d4=a8_0x395d8c;return decorator_2[_0x1323d4(0x1c4)];}});
@@ -1 +1 @@
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
+ 'use strict';var a9_0x1ff0c3=a9_0x14a6;function a9_0x14a6(_0x2cebe5,_0x51b694){var _0x3b5bd2=a9_0x3b5b();return a9_0x14a6=function(_0x14a67b,_0x519c4d){_0x14a67b=_0x14a67b-0x13a;var _0x5c6b93=_0x3b5bd2[_0x14a67b];return _0x5c6b93;},a9_0x14a6(_0x2cebe5,_0x51b694);}(function(_0x4cd2fa,_0x292df8){var _0xccd52f=a9_0x14a6,_0x1abf19=_0x4cd2fa();while(!![]){try{var _0x374dc6=-parseInt(_0xccd52f(0x13c))/0x1+-parseInt(_0xccd52f(0x15f))/0x2+parseInt(_0xccd52f(0x161))/0x3*(-parseInt(_0xccd52f(0x162))/0x4)+parseInt(_0xccd52f(0x167))/0x5+-parseInt(_0xccd52f(0x14b))/0x6+parseInt(_0xccd52f(0x145))/0x7+parseInt(_0xccd52f(0x152))/0x8;if(_0x374dc6===_0x292df8)break;else _0x1abf19['push'](_0x1abf19['shift']());}catch(_0x13ee5a){_0x1abf19['push'](_0x1abf19['shift']());}}}(a9_0x3b5b,0x67ef0));var __decorate=this&&this[a9_0x1ff0c3(0x13b)]||function(_0x5c43e5,_0x580546,_0x2fa6e8,_0x23d928){var _0x244fb2=a9_0x1ff0c3,_0xdfcecc=arguments[_0x244fb2(0x14e)],_0x59191b=_0xdfcecc<0x3?_0x580546:_0x23d928===null?_0x23d928=Object['getOwnPropertyDescriptor'](_0x580546,_0x2fa6e8):_0x23d928,_0x128c10;if(typeof Reflect===_0x244fb2(0x16e)&&typeof Reflect[_0x244fb2(0x151)]===_0x244fb2(0x15a))_0x59191b=Reflect[_0x244fb2(0x151)](_0x5c43e5,_0x580546,_0x2fa6e8,_0x23d928);else{for(var _0x1b6f44=_0x5c43e5[_0x244fb2(0x14e)]-0x1;_0x1b6f44>=0x0;_0x1b6f44--)if(_0x128c10=_0x5c43e5[_0x1b6f44])_0x59191b=(_0xdfcecc<0x3?_0x128c10(_0x59191b):_0xdfcecc>0x3?_0x128c10(_0x580546,_0x2fa6e8,_0x59191b):_0x128c10(_0x580546,_0x2fa6e8))||_0x59191b;}return _0xdfcecc>0x3&&_0x59191b&&Object[_0x244fb2(0x163)](_0x580546,_0x2fa6e8,_0x59191b),_0x59191b;},__metadata=this&&this['__metadata']||function(_0x8ab4b8,_0x1003a0){var _0xc4c95b=a9_0x1ff0c3;if(typeof Reflect===_0xc4c95b(0x16e)&&typeof Reflect[_0xc4c95b(0x16c)]===_0xc4c95b(0x15a))return Reflect['metadata'](_0x8ab4b8,_0x1003a0);};Object[a9_0x1ff0c3(0x163)](exports,a9_0x1ff0c3(0x155),{'value':!![]}),exports[a9_0x1ff0c3(0x169)]=void 0x0;function a9_0x3b5b(){var _0x4747c9=['secret=','getsign','Config','缺少头信息:signature','checksign','2276292rHbJZo','entries','join','length','design:type','token','decorate','15988088uiupgK','now','Provide','__esModule','HEADERS_SIGNATURE','map','toLowerCase','config','function','ApiError','toString','password','TIMEOUT','979354ZugIRw','缺少头信息:','12kNOVex','536812rpdBUr','defineProperty','abs','getcheck','sort','263750AZcBLd','HEADERS_DEVICE','ApiService','Scope','@midwayjs/decorator','metadata','Singleton','object','signature','MD5','push','__decorate','683961IAkPXa','device','checkcode','../exception/ApiError','HEADERS_LACK','timeout','ScopeEnum','requesttime','devices','3249981ZLleGZ'];a9_0x3b5b=function(){return _0x4747c9;};return a9_0x3b5b();}const crypto_js_1=require('crypto-js'),decorator_1=require(a9_0x1ff0c3(0x16b)),ApiError_1=require(a9_0x1ff0c3(0x13f));let ApiService=class ApiService{[a9_0x1ff0c3(0x15d)](_0x295c93){var _0x58f755=a9_0x1ff0c3,_0x5c4f33;return _0x295c93?(0x0,crypto_js_1['MD5'])(_0x295c93+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x295c93)['toString']()+((_0x5c4f33=this[_0x58f755(0x159)])===null||_0x5c4f33===void 0x0?void 0x0:_0x5c4f33['password']))['toString']())['toString']():'';}[a9_0x1ff0c3(0x165)](_0x52dcdb,_0x1be6bc,_0x301928=Date[a9_0x1ff0c3(0x153)]()){var _0x4bf5c3=a9_0x1ff0c3;return{'Token':_0x52dcdb,'Logintime':_0x301928,'Checkcode':this[_0x4bf5c3(0x13e)](_0x52dcdb,_0x1be6bc,_0x301928)};}['getsign'](_0x25656b={}){var _0xe2b7fc=a9_0x1ff0c3;const _0x5b6eb1=[],_0x412a35=Object['fromEntries'](Object[_0xe2b7fc(0x14c)](_0x25656b)['map'](_0x3e564a=>[_0x3e564a[0x0]['toLowerCase'](),_0x3e564a[0x1]]));for(let _0x451883 of[_0xe2b7fc(0x13d),_0xe2b7fc(0x143),_0xe2b7fc(0x150),'logintime',_0xe2b7fc(0x13e)]){if(typeof _0x412a35[_0x451883]=='undefined')throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)][_0xe2b7fc(0x140)],{'message':_0xe2b7fc(0x160)+_0x451883});_0x5b6eb1['push'](_0x451883+'='+_0x412a35[_0x451883]);}if(Math[_0xe2b7fc(0x164)](_0x412a35[_0xe2b7fc(0x143)])-Date[_0xe2b7fc(0x153)]()>this['config'][_0xe2b7fc(0x141)])throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)][_0xe2b7fc(0x15e)]);if(!this[_0xe2b7fc(0x159)][_0xe2b7fc(0x144)][_0x412a35[_0xe2b7fc(0x13d)]]||!this[_0xe2b7fc(0x159)]['devices'][_0x412a35[_0xe2b7fc(0x13d)]]['secret']||!this[_0xe2b7fc(0x159)][_0xe2b7fc(0x144)][_0x412a35['device']][_0xe2b7fc(0x13e)])throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)][_0xe2b7fc(0x168)]);if(_0x412a35[_0xe2b7fc(0x150)]&&_0x412a35[_0xe2b7fc(0x13e)]!=this[_0xe2b7fc(0x13e)](_0x412a35['token'],_0x412a35[_0xe2b7fc(0x13d)],_0x412a35['logintime']))throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)]['HEADERS_CHECKCODE']);return _0x5b6eb1[_0xe2b7fc(0x13a)](_0xe2b7fc(0x146)+this[_0xe2b7fc(0x159)]['devices'][_0x412a35[_0xe2b7fc(0x13d)]]['secret']),(0x0,crypto_js_1[_0xe2b7fc(0x170)])(_0x5b6eb1[_0xe2b7fc(0x166)]()[_0xe2b7fc(0x14d)](''))['toString']();}[a9_0x1ff0c3(0x13e)](_0x546617,_0x55f368,_0x3d066e=Date['now']()){var _0x4c066d=a9_0x1ff0c3,_0x5deb8f,_0x2688a6,_0x53ba5b;if(!((_0x5deb8f=this[_0x4c066d(0x159)])===null||_0x5deb8f===void 0x0?void 0x0:_0x5deb8f['devices'][_0x55f368])||!((_0x53ba5b=(_0x2688a6=this[_0x4c066d(0x159)])===null||_0x2688a6===void 0x0?void 0x0:_0x2688a6['devices'][_0x55f368])===null||_0x53ba5b===void 0x0?void 0x0:_0x53ba5b[_0x4c066d(0x13e)]))throw new AnnError(ApiError_1['ApiError'][_0x4c066d(0x168)]);return(0x0,crypto_js_1[_0x4c066d(0x170)])(_0x546617+(0x0,crypto_js_1[_0x4c066d(0x170)])(_0x3d066e+this[_0x4c066d(0x159)][_0x4c066d(0x144)][_0x55f368][_0x4c066d(0x13e)])[_0x4c066d(0x15c)]())['toString']();}[a9_0x1ff0c3(0x14a)](_0x19c84d={}){var _0x19b843=a9_0x1ff0c3;const _0xd2efa4=Object['fromEntries'](Object['entries'](_0x19c84d)[_0x19b843(0x157)](_0x8b6b5a=>[_0x8b6b5a[0x0][_0x19b843(0x158)](),_0x8b6b5a[0x1]]));if(!(_0xd2efa4===null||_0xd2efa4===void 0x0?void 0x0:_0xd2efa4[_0x19b843(0x16f)]))throw new AnnError(ApiError_1[_0x19b843(0x15b)][_0x19b843(0x140)],{'message':_0x19b843(0x149)});if((_0xd2efa4===null||_0xd2efa4===void 0x0?void 0x0:_0xd2efa4[_0x19b843(0x16f)])!=this[_0x19b843(0x147)](_0xd2efa4))throw new AnnError(ApiError_1[_0x19b843(0x15b)][_0x19b843(0x156)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x1ff0c3(0x148)])('anncicapi'),__metadata(a9_0x1ff0c3(0x14f),Object)],ApiService['prototype'],a9_0x1ff0c3(0x159),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x1ff0c3(0x154)])(),(0x0,decorator_1[a9_0x1ff0c3(0x16a)])(decorator_1[a9_0x1ff0c3(0x142)][a9_0x1ff0c3(0x16d)])],ApiService),exports['ApiService']=ApiService;
@@ -1 +1 @@
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
+ 'use strict';function a10_0x5c93(_0x37478e,_0x5a48e3){const _0x7b7000=a10_0x7b70();return a10_0x5c93=function(_0x5c93a1,_0x1226cc){_0x5c93a1=_0x5c93a1-0xc0;let _0x57f693=_0x7b7000[_0x5c93a1];return _0x57f693;},a10_0x5c93(_0x37478e,_0x5a48e3);}const a10_0x24956d=a10_0x5c93;(function(_0x1ed2da,_0x595d7d){const _0x3d3a6e=a10_0x5c93,_0x1dae90=_0x1ed2da();while(!![]){try{const _0x328f4b=-parseInt(_0x3d3a6e(0x109))/0x1*(parseInt(_0x3d3a6e(0xd5))/0x2)+-parseInt(_0x3d3a6e(0xf2))/0x3*(parseInt(_0x3d3a6e(0xd3))/0x4)+-parseInt(_0x3d3a6e(0xee))/0x5+parseInt(_0x3d3a6e(0xde))/0x6+parseInt(_0x3d3a6e(0x102))/0x7*(-parseInt(_0x3d3a6e(0xd2))/0x8)+parseInt(_0x3d3a6e(0xea))/0x9+parseInt(_0x3d3a6e(0xf6))/0xa*(parseInt(_0x3d3a6e(0xfb))/0xb);if(_0x328f4b===_0x595d7d)break;else _0x1dae90['push'](_0x1dae90['shift']());}catch(_0x58d789){_0x1dae90['push'](_0x1dae90['shift']());}}}(a10_0x7b70,0x50d53));function a10_0x7b70(){const _0x1678ea=['__decorate','/apitest','.css','apidoc','config','replace','3089514JAJxZb','ctx','Get','Environment','apitestmodule','design:paramtypes','metadata','Config','route','prototype','text/css;\x20charset=utf-8','stringify','1140057PsCxFD','.js','isDevelopmentEnvironment','../helper/getRoutes','2899720khfHpT','substring','public,\x20max-age=604800','apitesthtml','653370JQhbtQ','request','design:returntype','__param','10890pWDPOG','url','content-type','decorate','push','19536vdWbHS','Singleton','/apiteststatic/*','path','@midwayjs/core','existsSync','join','42Qeegsa','Param','__apiList__','getRoutes','../../public/index.html','apiteststatic','extname','337TwMnRp','method','filepath','ApitestStaticController','design:type','length','Request','cache-control','function','object','ApitestService','description','anncicapi','summary','apitest','@midwayjs/decorator','Inject','ScopeEnum','__esModule','853736wptJcs','8fosKnd','set','3494jLcaCk','readFileSync','routes'];a10_0x7b70=function(){return _0x1678ea;};return a10_0x7b70();}var __decorate=this&&this[a10_0x24956d(0xd8)]||function(_0x2e2dd4,_0x5aea45,_0x2ace73,_0x7b295f){const _0x413b01=a10_0x24956d;var _0x5a5037=arguments['length'],_0x48c7e1=_0x5a5037<0x3?_0x5aea45:_0x7b295f===null?_0x7b295f=Object['getOwnPropertyDescriptor'](_0x5aea45,_0x2ace73):_0x7b295f,_0x16a12b;if(typeof Reflect==='object'&&typeof Reflect[_0x413b01(0xf9)]==='function')_0x48c7e1=Reflect[_0x413b01(0xf9)](_0x2e2dd4,_0x5aea45,_0x2ace73,_0x7b295f);else{for(var _0x11d91a=_0x2e2dd4[_0x413b01(0xc4)]-0x1;_0x11d91a>=0x0;_0x11d91a--)if(_0x16a12b=_0x2e2dd4[_0x11d91a])_0x48c7e1=(_0x5a5037<0x3?_0x16a12b(_0x48c7e1):_0x5a5037>0x3?_0x16a12b(_0x5aea45,_0x2ace73,_0x48c7e1):_0x16a12b(_0x5aea45,_0x2ace73))||_0x48c7e1;}return _0x5a5037>0x3&&_0x48c7e1&&Object['defineProperty'](_0x5aea45,_0x2ace73,_0x48c7e1),_0x48c7e1;},__metadata=this&&this['__metadata']||function(_0x2490f7,_0x560a06){const _0xed874=a10_0x24956d;if(typeof Reflect===_0xed874(0xc8)&&typeof Reflect[_0xed874(0xe4)]===_0xed874(0xc7))return Reflect['metadata'](_0x2490f7,_0x560a06);},__param=this&&this[a10_0x24956d(0xf5)]||function(_0x4c0aa4,_0x4986af){return function(_0x241066,_0x2071e3){_0x4986af(_0x241066,_0x2071e3,_0x4c0aa4);};};Object['defineProperty'](exports,a10_0x24956d(0xd1),{'value':!![]}),exports[a10_0x24956d(0xc2)]=exports[a10_0x24956d(0xc9)]=void 0x0;const path_1=require(a10_0x24956d(0xfe)),fs_1=require('fs'),core_1=require(a10_0x24956d(0xff)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x24956d(0xce)),getRoutes_1=require(a10_0x24956d(0xed));let ApitestService=class ApitestService{async[a10_0x24956d(0xdb)](_0x510213){const _0x374a81=a10_0x24956d,_0x5bbd80=(0x0,getRoutes_1[_0x374a81(0x105)])(_0x510213),_0x1035e6=[];for(let _0x20cb76 in _0x5bbd80){for(let _0x45e9a8 in _0x5bbd80[_0x20cb76][_0x374a81(0xd7)]){let _0x4addd4=_0x5bbd80[_0x20cb76][_0x374a81(0xd7)][_0x45e9a8],_0x23d572=[];for(let _0x20a930 in _0x4addd4[_0x374a81(0xf3)]){_0x23d572[_0x374a81(0xfa)](_0x4addd4[_0x374a81(0xf3)][_0x20a930]);}_0x1035e6[_0x374a81(0xfa)]({'title':_0x5bbd80[_0x20cb76]['summary']+':'+_0x4addd4[_0x374a81(0xcc)],'prefix':_0x5bbd80[_0x20cb76]['prefix'],'router':_0x4addd4[_0x374a81(0xe6)],'method':_0x4addd4[_0x374a81(0xc0)],'describe':_0x4addd4[_0x374a81(0xca)]||'','filepath':_0x5bbd80[_0x20cb76][_0x374a81(0xc1)]||'','request':_0x23d572});}}const _0x4968f4=(0x0,path_1[_0x374a81(0x101)])(__dirname,_0x374a81(0x106));return(0x0,fs_1[_0x374a81(0xd6)])(_0x4968f4,{'encoding':'utf-8'})['replace'](/__res__/g,'/apiteststatic/')['replace'](_0x374a81(0x104),JSON[_0x374a81(0xe9)](_0x1035e6))[_0x374a81(0xdd)]('__devices__',JSON[_0x374a81(0xe9)](this[_0x374a81(0xdc)]['devices']));}};__decorate([(0x0,decorator_2['Config'])(a10_0x24956d(0xcb)),__metadata(a10_0x24956d(0xc3),Object)],ApitestService['prototype'],a10_0x24956d(0xdc),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])('apitest'),(0x0,decorator_2['Scope'])(decorator_2[a10_0x24956d(0xd0)][a10_0x24956d(0xfc)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x24956d(0xf1)](){const _0x396ad4=a10_0x24956d;if(this['apitest']){const _0x2f0820={'module':![]};return this[_0x396ad4(0xe1)][_0x396ad4(0xec)]()&&(_0x2f0820[_0x396ad4(0xc1)]=!![]),await this[_0x396ad4(0xc9)][_0x396ad4(0xdb)](_0x2f0820);}return'';}async[a10_0x24956d(0xe2)](_0xd28a4){const _0x5ac7ab=a10_0x24956d;if(this[_0x5ac7ab(0xcd)]){const _0x32bbc8={'module':_0xd28a4};return this['Environment'][_0x5ac7ab(0xec)]()&&(_0x32bbc8[_0x5ac7ab(0xc1)]=!![]),await this[_0x5ac7ab(0xc9)]['apidoc'](_0x32bbc8);}return'';}async[a10_0x24956d(0x107)](){const _0x5401c8=a10_0x24956d;if((0x0,path_1[_0x5401c8(0x108)])(this[_0x5401c8(0xdf)][_0x5401c8(0xf3)][_0x5401c8(0xf7)])){var _0x2d18b0=(0x0,path_1[_0x5401c8(0x101)])(__dirname,'../../public/'+this['ctx'][_0x5401c8(0xf3)][_0x5401c8(0xf7)][_0x5401c8(0xdd)]('/apiteststatic/','/'));if(_0x2d18b0[_0x5401c8(0xef)](_0x2d18b0['length']-0xb)!='/index.html'){this['ctx']['set'](_0x5401c8(0xc6),_0x5401c8(0xf0));if((0x0,path_1[_0x5401c8(0x108)])(this[_0x5401c8(0xdf)]['request'][_0x5401c8(0xf7)])==_0x5401c8(0xeb))this[_0x5401c8(0xdf)][_0x5401c8(0xd4)]('content-type','application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x5401c8(0x108)])(this[_0x5401c8(0xdf)]['request'][_0x5401c8(0xf7)])==_0x5401c8(0xda)&&this[_0x5401c8(0xdf)]['set'](_0x5401c8(0xf8),_0x5401c8(0xe8));return(0x0,fs_1[_0x5401c8(0x100)])(_0x2d18b0)&&(0x0,fs_1[_0x5401c8(0xd6)])(_0x2d18b0,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,decorator_2[a10_0x24956d(0xcf)])(),__metadata('design:type',Object)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xdf),void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xcf)])(),__metadata(a10_0x24956d(0xc3),core_1['MidwayEnvironmentService'])],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xe1),void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xcf)])(),__metadata(a10_0x24956d(0xc3),ApitestService)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xc9),void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xe5)])(a10_0x24956d(0xcd)),__metadata('design:type',Boolean)],ApitestStaticController[a10_0x24956d(0xe7)],'apitest',void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xe5)])(a10_0x24956d(0xcb)),__metadata(a10_0x24956d(0xc3),Object)],ApitestStaticController['prototype'],a10_0x24956d(0xdc),void 0x0),__decorate([(0x0,decorator_1[a10_0x24956d(0xe0)])(a10_0x24956d(0xd9)),__metadata(a10_0x24956d(0xc3),Function),__metadata(a10_0x24956d(0xe3),[]),__metadata(a10_0x24956d(0xf4),Promise)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xf1),null),__decorate([(0x0,decorator_1['Get'])('/apitest-:module'),__param(0x0,(0x0,decorator_1[a10_0x24956d(0x103)])('module')),__metadata(a10_0x24956d(0xc3),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x24956d(0xe7)],'apitestmodule',null),__decorate([(0x0,decorator_1[a10_0x24956d(0xe0)])(a10_0x24956d(0xfd)),__metadata(a10_0x24956d(0xc3),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0x107),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2['Scope'])(decorator_2[a10_0x24956d(0xd0)][a10_0x24956d(0xc5)])],ApitestStaticController),exports[a10_0x24956d(0xc2)]=ApitestStaticController;
@@ -1 +1 @@
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();}
1
+ 'use strict';const a11_0x2d88dc=a11_0x5c85;(function(_0x4edb14,_0x567c43){const _0x50d807=a11_0x5c85,_0x1651b7=_0x4edb14();while(!![]){try{const _0x50fc8c=-parseInt(_0x50d807(0x7c))/0x1+-parseInt(_0x50d807(0x74))/0x2*(parseInt(_0x50d807(0x73))/0x3)+parseInt(_0x50d807(0x95))/0x4*(-parseInt(_0x50d807(0x8c))/0x5)+parseInt(_0x50d807(0xb3))/0x6*(parseInt(_0x50d807(0xab))/0x7)+-parseInt(_0x50d807(0x76))/0x8*(parseInt(_0x50d807(0x8f))/0x9)+parseInt(_0x50d807(0x88))/0xa+parseInt(_0x50d807(0x7e))/0xb;if(_0x50fc8c===_0x567c43)break;else _0x1651b7['push'](_0x1651b7['shift']());}catch(_0x5eea7a){_0x1651b7['push'](_0x1651b7['shift']());}}}(a11_0xf934,0x5c8bb));function a11_0x5c85(_0x2857ed,_0x1508c3){const _0xf93456=a11_0xf934();return a11_0x5c85=function(_0x5c8575,_0xf96481){_0x5c8575=_0x5c8575-0x6d;let _0x54e7f1=_0xf93456[_0x5c8575];return _0x54e7f1;},a11_0x5c85(_0x2857ed,_0x1508c3);}function a11_0xf934(){const _0x8f9d28=['getAppDir','frozen','function','substring','startsWith','defineProperty','79040HFFtja','\x20is\x20read\x20fail','Provide','worksheets','131570zXKaAM','log','ScopeEnum','278496tGVqYN','isNumber','getRow','push','.xlsx','replace','56jDfcvt','handler','download','Singleton','App','columns','value','header','__decorate','Sheet\x201','/public/xlsx','export','prototype','getWorksheet','__esModule','length','key','metadata','addWorksheet','koa-send','decorate','object','3640931exTVgI','col','writeFile','public/xlsx','cellCount','mkdirSync','findRows','toString','6QkBACX','getCell','getOwnPropertyDescriptor','ExcelService','trim','design:type','exceljs','endsWith','1646529YVIbjY','2YpzEkI','__metadata','160oafhqd','xlsx','readFile','eachCell','app','get','6373ATZchK','Scope','15328742tFzYpB','existsSync','Workbook','@midwayjs/decorator'];a11_0xf934=function(){return _0x8f9d28;};return a11_0xf934();}var __decorate=this&&this[a11_0x2d88dc(0x9d)]||function(_0xed747,_0x1c3ce6,_0x34f01c,_0x4b5fd0){const _0x4b7ef7=a11_0x2d88dc;var _0x1e7d52=arguments[_0x4b7ef7(0xa4)],_0x30365a=_0x1e7d52<0x3?_0x1c3ce6:_0x4b5fd0===null?_0x4b5fd0=Object[_0x4b7ef7(0x6d)](_0x1c3ce6,_0x34f01c):_0x4b5fd0,_0xa5f723;if(typeof Reflect===_0x4b7ef7(0xaa)&&typeof Reflect[_0x4b7ef7(0xa9)]===_0x4b7ef7(0x84))_0x30365a=Reflect[_0x4b7ef7(0xa9)](_0xed747,_0x1c3ce6,_0x34f01c,_0x4b5fd0);else{for(var _0x487f34=_0xed747[_0x4b7ef7(0xa4)]-0x1;_0x487f34>=0x0;_0x487f34--)if(_0xa5f723=_0xed747[_0x487f34])_0x30365a=(_0x1e7d52<0x3?_0xa5f723(_0x30365a):_0x1e7d52>0x3?_0xa5f723(_0x1c3ce6,_0x34f01c,_0x30365a):_0xa5f723(_0x1c3ce6,_0x34f01c))||_0x30365a;}return _0x1e7d52>0x3&&_0x30365a&&Object[_0x4b7ef7(0x87)](_0x1c3ce6,_0x34f01c,_0x30365a),_0x30365a;},__metadata=this&&this[a11_0x2d88dc(0x75)]||function(_0x361b56,_0x83a865){const _0x5af357=a11_0x2d88dc;if(typeof Reflect===_0x5af357(0xaa)&&typeof Reflect[_0x5af357(0xa6)]===_0x5af357(0x84))return Reflect[_0x5af357(0xa6)](_0x361b56,_0x83a865);};Object['defineProperty'](exports,a11_0x2d88dc(0xa3),{'value':!![]}),exports[a11_0x2d88dc(0x6e)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x2d88dc(0x71)),koasend=require(a11_0x2d88dc(0xa8)),decorator_1=require(a11_0x2d88dc(0x81));let ExcelService=class ExcelService{async['parse'](_0x4147d4,_0x1fdea0,_0x3fecde=[0x0]){const _0x496ec0=a11_0x2d88dc;var _0x4b80b9,_0x20516b;const _0x28285c=new exceljs['Workbook'](),_0x21f012=[];let _0x1f8e55=_0x4147d4['replace'](/(\\|\/)/g,'/')[_0x496ec0(0x94)](/\/{2,}/g,'/');!(_0x1f8e55===null||_0x1f8e55===void 0x0?void 0x0:_0x1f8e55[_0x496ec0(0x86)]('/'))&&(_0x1f8e55=this['app'][_0x496ec0(0x82)]()+'/'+_0x1f8e55);try{await _0x28285c[_0x496ec0(0x77)][_0x496ec0(0x78)](_0x1f8e55);}catch(_0x70dd25){return console[_0x496ec0(0x8d)]('Api\x20Excel\x20Error:\x20'+_0x1f8e55+_0x496ec0(0x89)),_0x21f012;}for(const _0xafcb9c of _0x3fecde){const _0x2171f8=lodash[_0x496ec0(0x90)](_0xafcb9c)?((_0x4b80b9=_0x28285c[_0x496ec0(0x8b)])===null||_0x4b80b9===void 0x0?void 0x0:_0x4b80b9[_0xafcb9c])||undefined:_0x28285c[_0x496ec0(0xa2)](_0xafcb9c);if(_0x2171f8){var _0x464083=0x1;const _0x4466be=_0x2171f8[_0x496ec0(0x91)](0x1),_0x1c18e7=await new Promise(_0x484f33=>{const _0x808654=_0x496ec0,_0x1e62d0={};_0x4466be[_0x808654(0x79)]((_0x4b7e2a,_0xabc207)=>{const _0x2f8225=_0x808654;for(const _0x415e60 of _0x1fdea0){if(_0x4b7e2a[_0x2f8225(0x9b)]==_0x415e60['header'])_0x464083=0x2,_0x1e62d0[_0x415e60[_0x2f8225(0xa5)]]={'header':_0x4b7e2a[_0x2f8225(0xac)],'handler':_0x415e60[_0x2f8225(0x96)]};else{if(!_0x1e62d0[_0x415e60[_0x2f8225(0xa5)]])try{const _0x4a1b5e=_0x4466be['getCell'](_0x415e60[_0x2f8225(0x9c)]);_0x4a1b5e&&(_0x1e62d0[_0x415e60[_0x2f8225(0xa5)]]={'header':_0x4a1b5e[_0x2f8225(0xac)],'handler':_0x415e60['handler']});}catch{}}}_0x4466be[_0x2f8225(0xaf)]==_0xabc207&&_0x484f33(_0x1e62d0);});});for(const _0x29b18e of _0x2171f8[_0x496ec0(0xb1)](_0x464083,_0x2171f8['rowCount'])){const _0x54c7b7={};for(const _0x1ec2b0 in _0x1c18e7){_0x1c18e7[_0x1ec2b0][_0x496ec0(0x9c)]&&(typeof((_0x20516b=_0x1c18e7[_0x1ec2b0])===null||_0x20516b===void 0x0?void 0x0:_0x20516b['handler'])=='function'?_0x54c7b7[_0x1ec2b0]=_0x1c18e7[_0x1ec2b0]['handler'](_0x29b18e[_0x496ec0(0xb4)](lodash[_0x496ec0(0x6f)](''+_0x1c18e7[_0x1ec2b0][_0x496ec0(0x9c)],'\x20'))[_0x496ec0(0xb2)]()):_0x54c7b7[_0x1ec2b0]=_0x29b18e[_0x496ec0(0xb4)](_0x1c18e7[_0x1ec2b0][_0x496ec0(0x9c)])['toString']());}Object['keys'](_0x54c7b7)['length']>0x0&&_0x21f012[_0x496ec0(0x92)](_0x54c7b7);}}}return _0x21f012;}async[a11_0x2d88dc(0xa0)](_0x4d1e85,_0x281a2f,_0x53bc7d,_0x4cdee7=a11_0x2d88dc(0xae)){const _0x35197d=a11_0x2d88dc;var _0x185449,_0x2de25a;const _0x4c72a4=new exceljs[(_0x35197d(0x80))](),_0x243f83={},_0x23c477=[],_0x584ed7=_0x4c72a4[_0x35197d(0xa7)](_0x35197d(0x9e),{'views':[{'state':_0x35197d(0x83),'xSplit':0x1}]});for(const _0x2fb8c4 in _0x281a2f){_0x243f83[_0x281a2f[_0x2fb8c4][_0x35197d(0xa5)]]=_0x281a2f[_0x2fb8c4][_0x35197d(0x9c)],_0x23c477[_0x35197d(0x92)]({'header':_0x281a2f[_0x2fb8c4][_0x35197d(0x9c)],'key':(_0x185449=_0x281a2f[_0x2fb8c4])===null||_0x185449===void 0x0?void 0x0:_0x185449[_0x35197d(0xa5)][_0x35197d(0x94)](/\./g,'_')});}_0x584ed7[_0x35197d(0x9a)]=_0x23c477;for(const _0x2d8ced of _0x53bc7d){const _0x4bd69b={};for(const _0x3c4269 in _0x281a2f){typeof((_0x2de25a=_0x281a2f[_0x3c4269])===null||_0x2de25a===void 0x0?void 0x0:_0x2de25a[_0x35197d(0x96)])==_0x35197d(0x84)?_0x4bd69b[_0x281a2f[_0x3c4269]['key'][_0x35197d(0x94)](/\./g,'_')]=await _0x281a2f[_0x3c4269][_0x35197d(0x96)](_0x2d8ced):_0x4bd69b[_0x281a2f[_0x3c4269]['key'][_0x35197d(0x94)](/\./g,'_')]=lodash[_0x35197d(0x7b)](_0x2d8ced,_0x281a2f[_0x3c4269][_0x35197d(0xa5)],'');}_0x584ed7['addRow'](_0x4bd69b);}let _0x3ca819='';const _0xb17116=_0x4d1e85+'-'+lodash['random'](0x2710,0x1869f)+_0x35197d(0x93);if(_0x4cdee7&&_0x4cdee7[_0x35197d(0x86)]('/'))_0x3ca819=_0x4cdee7+'/'+_0xb17116;else _0x4cdee7&&!_0x4cdee7[_0x35197d(0x86)]('/')&&!_0x4cdee7['startsWith']('\x5c')?_0x3ca819=this[_0x35197d(0x7a)][_0x35197d(0x82)]()+'/'+_0x4cdee7+'/'+_0xb17116:_0x3ca819=this[_0x35197d(0x7a)]['getAppDir']()+_0x35197d(0x9f);return(_0x3ca819[_0x35197d(0x72)]('/')||_0x3ca819[_0x35197d(0x72)]('\x5c'))&&(_0x3ca819=_0x3ca819[_0x35197d(0x85)](0x0,_0x3ca819[_0x35197d(0xa4)]-0x1)),_0x3ca819=_0x3ca819['replace'](/(\\|\/)/g,'/')[_0x35197d(0x94)](/\/{2,}/g,'/'),!fs[_0x35197d(0x7f)](_0x3ca819)&&fs[_0x35197d(0xb0)](_0x3ca819,{'recursive':!![]}),await _0x4c72a4[_0x35197d(0x77)][_0x35197d(0xad)]((_0x3ca819+'/'+_0xb17116)[_0x35197d(0x94)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0xb17116,'filepath':_0x3ca819};}async[a11_0x2d88dc(0x97)](_0xf9a162,_0x5218eb){await koasend(_0xf9a162,'/public/xlsx/'+_0x5218eb);}};__decorate([(0x0,decorator_1[a11_0x2d88dc(0x99)])(),__metadata(a11_0x2d88dc(0x70),Object)],ExcelService[a11_0x2d88dc(0xa1)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x2d88dc(0x8a)])(),(0x0,decorator_1[a11_0x2d88dc(0x7d)])(decorator_1[a11_0x2d88dc(0x8e)][a11_0x2d88dc(0x98)])],ExcelService),exports[a11_0x2d88dc(0x6e)]=ExcelService;
@@ -1 +1 @@
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();}
1
+ 'use strict';function a12_0x3f6b(){var _0x30e4bd=['2796288beYtOr','5021TWOlUz','20249334XgvPxh','1270101YkONrI','4JjUKao','9962240kCdEUl','defineProperty','20NSbrAM','anncic-api:action:route','2019770pNfKRx','7506120IILYiZ','ACTION_KEY','2RLbgkN','__esModule','ACTION_ROUTE_KEY'];a12_0x3f6b=function(){return _0x30e4bd;};return a12_0x3f6b();}var a12_0x4eb747=a12_0x5795;function a12_0x5795(_0x112bb1,_0x11473a){var _0x3f6bbc=a12_0x3f6b();return a12_0x5795=function(_0x57959e,_0x254a44){_0x57959e=_0x57959e-0xbf;var _0x4675df=_0x3f6bbc[_0x57959e];return _0x4675df;},a12_0x5795(_0x112bb1,_0x11473a);}(function(_0x4b2a4f,_0x444256){var _0x4f28ac=a12_0x5795,_0xdeb71a=_0x4b2a4f();while(!![]){try{var _0x3f46b0=parseInt(_0x4f28ac(0xcd))/0x1*(parseInt(_0x4f28ac(0xc9))/0x2)+-parseInt(_0x4f28ac(0xcc))/0x3+-parseInt(_0x4f28ac(0xc1))/0x4*(parseInt(_0x4f28ac(0xc6))/0x5)+-parseInt(_0x4f28ac(0xc7))/0x6+parseInt(_0x4f28ac(0xc0))/0x7+-parseInt(_0x4f28ac(0xc2))/0x8+-parseInt(_0x4f28ac(0xbf))/0x9*(-parseInt(_0x4f28ac(0xc4))/0xa);if(_0x3f46b0===_0x444256)break;else _0xdeb71a['push'](_0xdeb71a['shift']());}catch(_0x4e9a49){_0xdeb71a['push'](_0xdeb71a['shift']());}}}(a12_0x3f6b,0xd07ce));Object[a12_0x4eb747(0xc3)](exports,a12_0x4eb747(0xca),{'value':!![]}),exports[a12_0x4eb747(0xcb)]=exports[a12_0x4eb747(0xc8)]=void 0x0,exports[a12_0x4eb747(0xc8)]='anncic-api:action',exports['ACTION_ROUTE_KEY']=a12_0x4eb747(0xc5);
@@ -1 +1 @@
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;
1
+ 'use strict';var a13_0x3b2f7f=a13_0x4155;function a13_0x3c97(){var _0x2cdd52=['prototype','_isreverse','270697KlWaMz','505785uKIyrk','function','1:是;0:否','number','PageDTO','defineProperty','Rule','object','string','分页数量','trim','464902xbjpeO','decorate','_size','metadata','min','104280Uvykcr','4XOeUOF','__metadata','@anncic-api/validator','design:type','integer','216822fDONxH','getOwnPropertyDescriptor','_order','是否倒序','第一页为1,第二页为2','__esModule','4737780cVOyIn','RuleType','valid','length','577160vyVKNn','21VkUfMz'];a13_0x3c97=function(){return _0x2cdd52;};return a13_0x3c97();}(function(_0x5b921c,_0x546a61){var _0x1b3722=a13_0x4155,_0x191f9c=_0x5b921c();while(!![]){try{var _0x2c1fce=parseInt(_0x1b3722(0x85))/0x1+parseInt(_0x1b3722(0x91))/0x2+parseInt(_0x1b3722(0x86))/0x3+parseInt(_0x1b3722(0x97))/0x4*(parseInt(_0x1b3722(0x96))/0x5)+parseInt(_0x1b3722(0x77))/0x6*(parseInt(_0x1b3722(0x82))/0x7)+-parseInt(_0x1b3722(0x81))/0x8+-parseInt(_0x1b3722(0x7d))/0x9;if(_0x2c1fce===_0x546a61)break;else _0x191f9c['push'](_0x191f9c['shift']());}catch(_0x100528){_0x191f9c['push'](_0x191f9c['shift']());}}}(a13_0x3c97,0x316cd));function a13_0x4155(_0x550cd4,_0x2939b5){var _0x3c9715=a13_0x3c97();return a13_0x4155=function(_0x4155e1,_0x2aa202){_0x4155e1=_0x4155e1-0x74;var _0x5c1776=_0x3c9715[_0x4155e1];return _0x5c1776;},a13_0x4155(_0x550cd4,_0x2939b5);}var __decorate=this&&this['__decorate']||function(_0x1d83d7,_0x228865,_0x553aeb,_0xf9f63c){var _0x55de22=a13_0x4155,_0x5b05dd=arguments[_0x55de22(0x80)],_0x10a4bc=_0x5b05dd<0x3?_0x228865:_0xf9f63c===null?_0xf9f63c=Object[_0x55de22(0x78)](_0x228865,_0x553aeb):_0xf9f63c,_0x77ce0f;if(typeof Reflect==='object'&&typeof Reflect[_0x55de22(0x92)]===_0x55de22(0x87))_0x10a4bc=Reflect[_0x55de22(0x92)](_0x1d83d7,_0x228865,_0x553aeb,_0xf9f63c);else{for(var _0x484f72=_0x1d83d7['length']-0x1;_0x484f72>=0x0;_0x484f72--)if(_0x77ce0f=_0x1d83d7[_0x484f72])_0x10a4bc=(_0x5b05dd<0x3?_0x77ce0f(_0x10a4bc):_0x5b05dd>0x3?_0x77ce0f(_0x228865,_0x553aeb,_0x10a4bc):_0x77ce0f(_0x228865,_0x553aeb))||_0x10a4bc;}return _0x5b05dd>0x3&&_0x10a4bc&&Object[_0x55de22(0x8b)](_0x228865,_0x553aeb,_0x10a4bc),_0x10a4bc;},__metadata=this&&this[a13_0x3b2f7f(0x98)]||function(_0x101022,_0x5c3750){var _0x454a88=a13_0x3b2f7f;if(typeof Reflect===_0x454a88(0x8d)&&typeof Reflect[_0x454a88(0x94)]===_0x454a88(0x87))return Reflect['metadata'](_0x101022,_0x5c3750);};Object[a13_0x3b2f7f(0x8b)](exports,a13_0x3b2f7f(0x7c),{'value':!![]}),exports[a13_0x3b2f7f(0x8a)]=void 0x0;const validator_1=require(a13_0x3b2f7f(0x74));class PageDTO{}__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])('分页',validator_1[a13_0x3b2f7f(0x7e)][a13_0x3b2f7f(0x89)]()['integer']()[a13_0x3b2f7f(0x95)](0x1),a13_0x3b2f7f(0x7b)),__metadata(a13_0x3b2f7f(0x75),Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])(a13_0x3b2f7f(0x8f),validator_1[a13_0x3b2f7f(0x7e)][a13_0x3b2f7f(0x89)]()[a13_0x3b2f7f(0x76)]()[a13_0x3b2f7f(0x95)](0x1)),__metadata('design:type',Number)],PageDTO[a13_0x3b2f7f(0x83)],a13_0x3b2f7f(0x93),void 0x0),__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])('排序方式',validator_1['RuleType'][a13_0x3b2f7f(0x8e)]()[a13_0x3b2f7f(0x90)]()),__metadata(a13_0x3b2f7f(0x75),String)],PageDTO[a13_0x3b2f7f(0x83)],a13_0x3b2f7f(0x79),void 0x0),__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])(a13_0x3b2f7f(0x7a),validator_1[a13_0x3b2f7f(0x7e)][a13_0x3b2f7f(0x89)]()['integer']()[a13_0x3b2f7f(0x7f)](0x0,0x1),a13_0x3b2f7f(0x88)),__metadata(a13_0x3b2f7f(0x75),Number)],PageDTO['prototype'],a13_0x3b2f7f(0x84),void 0x0),exports[a13_0x3b2f7f(0x8a)]=PageDTO;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anncic-api",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
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.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",
20
+ "@anncic-api/cache": "^1.1.10",
21
+ "@anncic-api/core": "^1.1.10",
22
+ "@anncic-api/event": "^1.1.10",
23
+ "@anncic-api/typeorm": "^1.1.10",
24
+ "@anncic-api/validator": "^1.1.10",
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.9",
32
+ "anncic-apihelper": "^1.1.10",
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": "a4a3bee3b2b8649986c595084c5efdf2cc263aa4"
44
+ "gitHead": "dc48f123829af47e61c70a523fcd1c35e79e68e3"
45
45
  }