anncic-api 1.1.10 → 1.1.13

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_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
+ 'use strict';var a0_0x4bcbe6=a0_0x3e59;(function(_0x3978a4,_0x4b23f8){var _0x5574f0=a0_0x3e59,_0x1d3296=_0x3978a4();while(!![]){try{var _0x29e69e=-parseInt(_0x5574f0(0x10f))/0x1+parseInt(_0x5574f0(0x110))/0x2+-parseInt(_0x5574f0(0x11c))/0x3*(parseInt(_0x5574f0(0x116))/0x4)+parseInt(_0x5574f0(0x111))/0x5*(-parseInt(_0x5574f0(0x11a))/0x6)+parseInt(_0x5574f0(0x119))/0x7+parseInt(_0x5574f0(0x115))/0x8*(-parseInt(_0x5574f0(0x114))/0x9)+parseInt(_0x5574f0(0x112))/0xa*(parseInt(_0x5574f0(0x113))/0xb);if(_0x29e69e===_0x4b23f8)break;else _0x1d3296['push'](_0x1d3296['shift']());}catch(_0x32c7b1){_0x1d3296['push'](_0x1d3296['shift']());}}}(a0_0x590d,0x91f6c));function a0_0x590d(){var _0x262e1e=['24qxxVqH','2564vQOiHg','defineProperty','name','7543375TaVOXu','6arcpCh','dhauo1234420123gg3234901','462YOLmRQ','default','appDir','215699aMAkFv','1614464iNiAlF','5433155jUcYiz','40XzDFfJ','3377363kKuWwD','3342231ANeELd'];a0_0x590d=function(){return _0x262e1e;};return a0_0x590d();}function a0_0x3e59(_0x33d90a,_0x426397){var _0x590db6=a0_0x590d();return a0_0x3e59=function(_0x3e5996,_0x7b725e){_0x3e5996=_0x3e5996-0x10d;var _0x130020=_0x590db6[_0x3e5996];return _0x130020;},a0_0x3e59(_0x33d90a,_0x426397);}Object[a0_0x4bcbe6(0x117)](exports,'__esModule',{'value':!![]}),exports[a0_0x4bcbe6(0x10d)]=_0x230a39=>{var _0x5e739a=a0_0x4bcbe6;return{'apitest':!![],'keys':_0x230a39[_0x5e739a(0x118)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x5e739a(0x11b),'checkcode':_0x5e739a(0x11b)}}},'upload':{'tmpdir':_0x230a39[_0x5e739a(0x10e)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
@@ -1 +1 @@
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
+ 'use strict';var a1_0x42413f=a1_0x1513;function a1_0x5eed(){var _0x4d778c=['13581zpnWsx','133JqIfHH','12409850fIsGZx','1866252KnYcxw','__esModule','342138TIKWmb','440vXyriX','273535rbISDk','default','992000zrXztr','defineProperty','1385316SzWaJD','3AKjarp'];a1_0x5eed=function(){return _0x4d778c;};return a1_0x5eed();}(function(_0x267abc,_0x5b2126){var _0x17f94e=a1_0x1513,_0x38b71a=_0x267abc();while(!![]){try{var _0x2e86ef=parseInt(_0x17f94e(0x95))/0x1+parseInt(_0x17f94e(0x91))/0x2*(parseInt(_0x17f94e(0x8d))/0x3)+-parseInt(_0x17f94e(0x8c))/0x4+-parseInt(_0x17f94e(0x8a))/0x5+-parseInt(_0x17f94e(0x93))/0x6*(-parseInt(_0x17f94e(0x8f))/0x7)+-parseInt(_0x17f94e(0x94))/0x8*(-parseInt(_0x17f94e(0x8e))/0x9)+-parseInt(_0x17f94e(0x90))/0xa;if(_0x2e86ef===_0x5b2126)break;else _0x38b71a['push'](_0x38b71a['shift']());}catch(_0x2e1e19){_0x38b71a['push'](_0x38b71a['shift']());}}}(a1_0x5eed,0x8f673));function a1_0x1513(_0x356085,_0xe64bb){var _0x5eede9=a1_0x5eed();return a1_0x1513=function(_0x15133e,_0x4528f1){_0x15133e=_0x15133e-0x8a;var _0x488f39=_0x5eede9[_0x15133e];return _0x488f39;},a1_0x1513(_0x356085,_0xe64bb);}Object[a1_0x42413f(0x8b)](exports,a1_0x42413f(0x92),{'value':!![]}),exports[a1_0x42413f(0x96)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
@@ -1 +1 @@
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
+ 'use strict';function a2_0x1b69(){const _0x1e7057=['length','2xHXuHo','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','ApiError','dir','forEach','anncicapi','keys','decorate','decorator','staticFile','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/static-file','isArray','__esModule','application','MidwayApplicationManager','addObject','@midwayjs/decorator','existsSync','REQUEST_OBJ_CTX_KEY','string','./types/action','body','filterConfig','912230SSMrSV','design:type','upload','koa','bodyParser','request','koa-bodyparser','@midwayjs/i18n','CustomConfiguration','tmpdir','anncic-api','mkdirSync','prototype','target','@anncic-api/typeorm','5FVpkyr','231gbIAQU','query','85268bWsBEU','HEADERS_SIGNATURE','onReady','defaultsDeep','MidwayConfigService','3051398YpnYvm','isString','config','./config/config.production','handlerActionRoute','metadata','input','ACTION_ROUTE_KEY','function','ApiService','@anncic-api/event','6683841fRHhWo','6769024qNbAwM','MidwayEnvironmentService','@midwayjs/koa','headers','@anncic-api/core','bodyXml','MidwayDecoratorService','dirs','isNull','1424377utUKtR','getConfiguration','beforeRoute','66cKxYUK','checksign','apimit','get','defineProperty','getApplications','context','device','hanlderApplications','9840966MWKRun','checkConfigKeys','koa-xml-body','log','@midwayjs/cross-domain','devices','@midwayjs/core','Inject','./service/ApiService','useMiddleware'];a2_0x1b69=function(){return _0x1e7057;};return a2_0x1b69();}const a2_0x493668=a2_0x3ea3;(function(_0xb89d51,_0x143ccb){const _0x384959=a2_0x3ea3,_0x1fbf8a=_0xb89d51();while(!![]){try{const _0x1fcbaa=parseInt(_0x384959(0xe1))/0x1*(parseInt(_0x384959(0x9d))/0x2)+parseInt(_0x384959(0xe4))/0x3*(-parseInt(_0x384959(0xc7))/0x4)+parseInt(_0x384959(0xc4))/0x5*(-parseInt(_0x384959(0x92))/0x6)+-parseInt(_0x384959(0xcc))/0x7+parseInt(_0x384959(0xd8))/0x8+-parseInt(_0x384959(0xd7))/0x9+parseInt(_0x384959(0xb5))/0xa*(parseInt(_0x384959(0xc5))/0xb);if(_0x1fcbaa===_0x143ccb)break;else _0x1fbf8a['push'](_0x1fbf8a['shift']());}catch(_0x44c3cd){_0x1fbf8a['push'](_0x1fbf8a['shift']());}}}(a2_0x1b69,0xdb5ba));var __decorate=this&&this['__decorate']||function(_0x1b3495,_0x512d51,_0x9e8e9f,_0x567bd7){const _0x48a61e=a2_0x3ea3;var _0x233ed0=arguments[_0x48a61e(0x9c)],_0x3cf4f4=_0x233ed0<0x3?_0x512d51:_0x567bd7===null?_0x567bd7=Object['getOwnPropertyDescriptor'](_0x512d51,_0x9e8e9f):_0x567bd7,_0x1c2540;if(typeof Reflect==='object'&&typeof Reflect[_0x48a61e(0xa4)]==='function')_0x3cf4f4=Reflect[_0x48a61e(0xa4)](_0x1b3495,_0x512d51,_0x9e8e9f,_0x567bd7);else{for(var _0x59c62b=_0x1b3495[_0x48a61e(0x9c)]-0x1;_0x59c62b>=0x0;_0x59c62b--)if(_0x1c2540=_0x1b3495[_0x59c62b])_0x3cf4f4=(_0x233ed0<0x3?_0x1c2540(_0x3cf4f4):_0x233ed0>0x3?_0x1c2540(_0x512d51,_0x9e8e9f,_0x3cf4f4):_0x1c2540(_0x512d51,_0x9e8e9f))||_0x3cf4f4;}return _0x233ed0>0x3&&_0x3cf4f4&&Object[_0x48a61e(0x8d)](_0x512d51,_0x9e8e9f,_0x3cf4f4),_0x3cf4f4;},__metadata=this&&this['__metadata']||function(_0x5bafa7,_0x652e06){const _0x4d331c=a2_0x3ea3;if(typeof Reflect==='object'&&typeof Reflect[_0x4d331c(0xd1)]===_0x4d331c(0xd4))return Reflect[_0x4d331c(0xd1)](_0x5bafa7,_0x652e06);};function a2_0x3ea3(_0x193ed1,_0x172716){const _0x1b69e0=a2_0x1b69();return a2_0x3ea3=function(_0x3ea316,_0x5758e2){_0x3ea316=_0x3ea316-0x8c;let _0x42d320=_0x1b69e0[_0x3ea316];return _0x42d320;},a2_0x3ea3(_0x193ed1,_0x172716);}Object[a2_0x493668(0x8d)](exports,a2_0x493668(0xaa),{'value':!![]}),exports[a2_0x493668(0xbd)]=void 0x0;const decorator_1=require(a2_0x493668(0xae)),core_1=require(a2_0x493668(0x98)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x493668(0x9a)),action_1=require(a2_0x493668(0xb2)),fs=require('fs'),koa=require(a2_0x493668(0xda)),i18n=require(a2_0x493668(0xbc)),task=require('@midwayjs/task'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x493668(0xa8)),crossDomain=require(a2_0x493668(0x96)),bodyXml=require(a2_0x493668(0x94)),bodyParser=require(a2_0x493668(0xbb)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x493668(0xcf)),anncic=require(a2_0x493668(0xdc)),anncicEvent=require(a2_0x493668(0xd6)),anncicTypeorm=require(a2_0x493668(0xc3)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x493668(0xc9)](){const _0x2fbdd2=a2_0x493668;await this[_0x2fbdd2(0xb4)](),await this[_0x2fbdd2(0x93)](),await this[_0x2fbdd2(0xd0)](),await this[_0x2fbdd2(0x91)]();}async[a2_0x493668(0x93)](){}async['handlerActionRoute'](){const _0x52a283=a2_0x493668,_0x3e62e9=this['config']['getConfiguration']();this[_0x52a283(0xa5)]['registerMethodHandler'](action_1[_0x52a283(0xd3)],_0x4780aa=>{const _0xcaad13=_0x52a283,_0x54a100=_0x4780aa[_0xcaad13(0xd1)];return{'before':async _0xff36c8=>{const _0xa7d223=_0xcaad13;var _0xb32af0,_0x42b9de,_0x3dca5c,_0x5eb190,_0x40702c;const _0x4ef9e0=(_0xb32af0=_0xff36c8===null||_0xff36c8===void 0x0?void 0x0:_0xff36c8[_0xa7d223(0xc2)])===null||_0xb32af0===void 0x0?void 0x0:_0xb32af0[core_1[_0xa7d223(0xb0)]];if(_0x4ef9e0){if((_0x54a100===null||_0x54a100===void 0x0?void 0x0:_0x54a100[_0xa7d223(0xe6)])&&!this['ApiService'][_0xa7d223(0xe5)]((_0x42b9de=_0x4ef9e0===null||_0x4ef9e0===void 0x0?void 0x0:_0x4ef9e0[_0xa7d223(0xba)])===null||_0x42b9de===void 0x0?void 0x0:_0x42b9de[_0xa7d223(0xdb)]))throw new AnnError(ApiError_1[_0xa7d223(0x9f)][_0xa7d223(0xc8)]);((_0x3dca5c=_0x4ef9e0[_0xa7d223(0xdb)])===null||_0x3dca5c===void 0x0?void 0x0:_0x3dca5c[_0xa7d223(0x90)])&&((_0x40702c=(_0x5eb190=_0x3e62e9===null||_0x3e62e9===void 0x0?void 0x0:_0x3e62e9[_0xa7d223(0xa2)])===null||_0x5eb190===void 0x0?void 0x0:_0x5eb190['devices'])===null||_0x40702c===void 0x0?void 0x0:_0x40702c[_0x4ef9e0[_0xa7d223(0xdb)][_0xa7d223(0x90)]])&&(typeof _0x3e62e9[_0xa7d223(0xa2)]['devices'][_0x4ef9e0[_0xa7d223(0xdb)][_0xa7d223(0x90)]][_0xa7d223(0xe3)]==_0xa7d223(0xd4)&&await _0x3e62e9['anncicapi']['devices'][_0x4ef9e0[_0xa7d223(0xdb)][_0xa7d223(0x90)]][_0xa7d223(0xe3)]((_0x4ef9e0===null||_0x4ef9e0===void 0x0?void 0x0:_0x4ef9e0['_matchedRoute'])||undefined,_0x54a100,_0x4ef9e0));}},'afterThrow':(_0xf4fe1c,_0x43564f)=>{throw _0x43564f;}};});}async['hanlderApplications'](){const _0x2f229b=a2_0x493668;this[_0x2f229b(0xab)][_0x2f229b(0x8e)]([_0x2f229b(0xb8)])[_0x2f229b(0xa1)](_0xa0b27c=>{const _0x147dea=_0x2f229b;_0xa0b27c['useMiddleware'](bodyXml(this[_0x147dea(0xce)]['getConfiguration'](_0x147dea(0xdd)))),_0xa0b27c[_0x147dea(0x9b)](bodyParser(this[_0x147dea(0xce)][_0x147dea(0xe2)](_0x147dea(0xb9)))),(_0xa0b27c===null||_0xa0b27c===void 0x0?void 0x0:_0xa0b27c[_0x147dea(0x8f)])&&Object['defineProperties'](_0xa0b27c[_0x147dea(0x8f)],{'ok':{'value':function(_0x3ccdda,_0x1d5a6f,_0x361516=0x0){return{'code':_0x361516,'data':_0x3ccdda,'extra':_0x1d5a6f};}},'err':{'value':function(_0x59375c,_0x16da9c,_0x3554b0=0x1){return{'code':_0x3554b0,'extra':_0x16da9c,'msg':_0x59375c};}},'input':{'value':function(_0x23d837,_0x473ce1){const _0x3cf2fd=_0x147dea;var _0x5b4c8c;const _0x275a90=lodash[_0x3cf2fd(0xca)]({},this['request'][_0x3cf2fd(0xb3)]||this[_0x3cf2fd(0xba)][((_0x5b4c8c=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x5b4c8c===void 0x0?void 0x0:_0x5b4c8c['key'])||_0x3cf2fd(0xb3)]||{},this['request'][_0x3cf2fd(0xc6)]||{});return _0x23d837?lodash[_0x3cf2fd(0x8c)](_0x275a90,_0x23d837,_0x473ce1):_0x275a90;}},'when':{'value':async function(_0x201f5a,_0x25d8dd){const _0x52869b=_0x147dea,_0x306639=this[_0x52869b(0xd2)](_0x201f5a,null);if(!lodash[_0x52869b(0xe0)](_0x306639))return await _0x25d8dd(_0x306639);}},'only':{'value':function(_0x1feb80){const _0x472246=_0x147dea,_0x173bbd={};for(let _0x1c18e5=0x0;_0x1c18e5<_0x1feb80[_0x472246(0x9c)];_0x1c18e5++){lodash[_0x472246(0xa9)](_0x1feb80[_0x1c18e5])&&_0x1feb80[_0x1c18e5][_0x472246(0x9c)]>0x0&&lodash[_0x472246(0xcd)](_0x1feb80[_0x1c18e5][0x0])&&(_0x173bbd[_0x1feb80[_0x1c18e5][0x0]]=this[_0x472246(0xd2)](_0x1feb80[_0x1c18e5][0x0],_0x1feb80[_0x1c18e5][_0x472246(0x9c)]>0x1?_0x1feb80[_0x1c18e5][0x1]:null));}return _0x173bbd;}}});});}async['filterConfig'](){const _0x157a69=a2_0x493668;var _0x46c1b3,_0x4233cb,_0x322753,_0x17f143,_0x3560c5,_0x2d9a05;const _0x5f4667=this[_0x157a69(0xce)][_0x157a69(0xe2)]();((_0x4233cb=(_0x46c1b3=_0x5f4667===null||_0x5f4667===void 0x0?void 0x0:_0x5f4667[_0x157a69(0xa2)])===null||_0x46c1b3===void 0x0?void 0x0:_0x46c1b3[_0x157a69(0x97)])===null||_0x4233cb===void 0x0?void 0x0:_0x4233cb['DEFAULT'])&&Object[_0x157a69(0xa3)](_0x5f4667[_0x157a69(0xa2)][_0x157a69(0x97)])['length']>0x1&&delete _0x5f4667[_0x157a69(0xa2)][_0x157a69(0x97)]['DEFAULT'];if((_0x322753=_0x5f4667===null||_0x5f4667===void 0x0?void 0x0:_0x5f4667[_0x157a69(0xa6)])===null||_0x322753===void 0x0?void 0x0:_0x322753[_0x157a69(0xdf)])for(const _0x6843f7 in _0x5f4667['staticFile'][_0x157a69(0xdf)]){((_0x17f143=_0x5f4667[_0x157a69(0xa6)][_0x157a69(0xdf)][_0x6843f7])===null||_0x17f143===void 0x0?void 0x0:_0x17f143['dir'])&&typeof((_0x3560c5=_0x5f4667[_0x157a69(0xa6)][_0x157a69(0xdf)][_0x6843f7])===null||_0x3560c5===void 0x0?void 0x0:_0x3560c5[_0x157a69(0xa0)])==_0x157a69(0xb1)&&!fs['existsSync'](_0x5f4667[_0x157a69(0xa6)]['dirs'][_0x6843f7][_0x157a69(0xa0)])&&(fs[_0x157a69(0xc0)](_0x5f4667[_0x157a69(0xa6)][_0x157a69(0xdf)][_0x6843f7][_0x157a69(0xa0)],{'recursive':!![]}),console['log'](_0x157a69(0xa7)+_0x5f4667[_0x157a69(0xa6)][_0x157a69(0xdf)][_0x6843f7][_0x157a69(0xa0)]));}((_0x2d9a05=_0x5f4667===null||_0x5f4667===void 0x0?void 0x0:_0x5f4667['upload'])===null||_0x2d9a05===void 0x0?void 0x0:_0x2d9a05[_0x157a69(0xbe)])&&!fs[_0x157a69(0xaf)](_0x5f4667['upload'][_0x157a69(0xbe)])&&(fs[_0x157a69(0xc0)](_0x5f4667[_0x157a69(0xb7)][_0x157a69(0xbe)],{'recursive':!![]}),console[_0x157a69(0x95)](_0x157a69(0x9e)+_0x5f4667[_0x157a69(0xb7)][_0x157a69(0xbe)])),this[_0x157a69(0xce)][_0x157a69(0xad)](_0x5f4667);}};__decorate([(0x0,decorator_1[a2_0x493668(0x99)])(),__metadata(a2_0x493668(0xb6),core_1[a2_0x493668(0xcb)])],CustomConfiguration[a2_0x493668(0xc1)],a2_0x493668(0xce),void 0x0),__decorate([(0x0,decorator_1[a2_0x493668(0x99)])(),__metadata(a2_0x493668(0xb6),core_1[a2_0x493668(0xde)])],CustomConfiguration[a2_0x493668(0xc1)],a2_0x493668(0xa5),void 0x0),__decorate([(0x0,decorator_1[a2_0x493668(0x99)])(),__metadata(a2_0x493668(0xb6),core_1[a2_0x493668(0xac)])],CustomConfiguration['prototype'],a2_0x493668(0xab),void 0x0),__decorate([(0x0,decorator_1[a2_0x493668(0x99)])(),__metadata(a2_0x493668(0xb6),core_1[a2_0x493668(0xd9)])],CustomConfiguration[a2_0x493668(0xc1)],'environment',void 0x0),__decorate([(0x0,decorator_1[a2_0x493668(0x99)])(),__metadata(a2_0x493668(0xb6),ApiService_1[a2_0x493668(0xd5)])],CustomConfiguration[a2_0x493668(0xc1)],a2_0x493668(0xd5),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x493668(0xbf),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x493668(0xbd)]=CustomConfiguration;
@@ -1 +1 @@
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
+ 'use strict';const a3_0x5a3164=a3_0x2770;(function(_0x44a892,_0x11d461){const _0x43b115=a3_0x2770,_0x4e2cc5=_0x44a892();while(!![]){try{const _0x18afc7=-parseInt(_0x43b115(0x21c))/0x1+parseInt(_0x43b115(0x218))/0x2+parseInt(_0x43b115(0x21e))/0x3*(parseInt(_0x43b115(0x21b))/0x4)+-parseInt(_0x43b115(0x1fe))/0x5*(parseInt(_0x43b115(0x1f7))/0x6)+parseInt(_0x43b115(0x220))/0x7*(parseInt(_0x43b115(0x210))/0x8)+parseInt(_0x43b115(0x227))/0x9*(parseInt(_0x43b115(0x228))/0xa)+parseInt(_0x43b115(0x213))/0xb*(-parseInt(_0x43b115(0x20a))/0xc);if(_0x18afc7===_0x11d461)break;else _0x4e2cc5['push'](_0x4e2cc5['shift']());}catch(_0x3b5a4a){_0x4e2cc5['push'](_0x4e2cc5['shift']());}}}(a3_0x1914,0xd18a1));function a3_0x2770(_0x125d8f,_0x2c15c1){const _0x191451=a3_0x1914();return a3_0x2770=function(_0x277075,_0x38a54e){_0x277075=_0x277075-0x1f4;let _0x47114f=_0x191451[_0x277075];return _0x47114f;},a3_0x2770(_0x125d8f,_0x2c15c1);}Object[a3_0x5a3164(0x21f)](exports,a3_0x5a3164(0x1ff),{'value':!![]}),exports[a3_0x5a3164(0x207)]=exports[a3_0x5a3164(0x224)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x5a3164(0x222)),action_1=require('../types/action');function Action(_0x516dd4,_0x4e2165,_0x272708={'middleware':[],'sensitive':!![]}){return _0x2b5b77=>{const _0x2158ab=a3_0x2770;_0x272708[_0x2158ab(0x1f5)]=_0x4e2165;const _0x1ea888=parseRoute(_0x516dd4);if(_0x1ea888['module']){_0x272708[_0x2158ab(0x223)]=_0x272708[_0x2158ab(0x223)]?'/'+_0x1ea888[_0x2158ab(0x221)]+'/'+_0x272708[_0x2158ab(0x223)]:'/'+_0x1ea888[_0x2158ab(0x1fb)];_0x1ea888[_0x2158ab(0x223)]&&(_0x272708[_0x2158ab(0x223)]='/'+_0x1ea888[_0x2158ab(0x223)]+'/'+_0x272708['prefix']);if(fs[_0x2158ab(0x20e)](_0x1ea888[_0x2158ab(0x211)]+'/apps/'+_0x1ea888[_0x2158ab(0x221)]+'/config.'+(lodash[_0x2158ab(0x200)](_0x1ea888[_0x2158ab(0x219)],'ts')?'ts':'js'))){const _0x317dc1=include(_0x1ea888[_0x2158ab(0x211)]+'/apps/'+_0x1ea888[_0x2158ab(0x221)]+_0x2158ab(0x203)+(lodash['endsWith'](_0x1ea888['filepath'],'ts')?'ts':'js'));if(_0x317dc1[_0x2158ab(0x204)]&&lodash[_0x2158ab(0x20d)](_0x317dc1[_0x2158ab(0x204)])&&_0x317dc1[_0x2158ab(0x204)]['length']>0x0)for(let _0x5e54a0 in _0x317dc1[_0x2158ab(0x204)]){_0x317dc1[_0x2158ab(0x20b)][_0x2158ab(0x20c)](_0x317dc1[_0x2158ab(0x204)][_0x5e54a0])==-0x1&&_0x272708[_0x2158ab(0x204)]['push'](_0x317dc1[_0x2158ab(0x204)][_0x5e54a0]);}const _0x1bf5ac=(0x0,decorator_1[_0x2158ab(0x1f9)])(action_1[_0x2158ab(0x1f4)],action_1[_0x2158ab(0x215)])||{};_0x1bf5ac[''+_0x1ea888[_0x2158ab(0x221)]]=_0x317dc1,(0x0,decorator_1[_0x2158ab(0x214)])(action_1[_0x2158ab(0x1f4)],_0x1bf5ac,action_1[_0x2158ab(0x215)]);}_0x272708[_0x2158ab(0x223)]=_0x272708[_0x2158ab(0x223)][_0x2158ab(0x1f6)]()[_0x2158ab(0x226)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2158ab(0x1fd)])(action_1['ACTION_KEY'],_0x2b5b77),(0x0,decorator_1[_0x2158ab(0x208)])(_0x272708['prefix'],_0x272708)(_0x2b5b77),(0x0,decorator_1[_0x2158ab(0x214)])(action_1[_0x2158ab(0x1fc)],{'prefix':_0x272708['prefix'],'pprefix':_0x1ea888[_0x2158ab(0x223)],'module':_0x1ea888['module'],'filepath':_0x1ea888['filepath'],'routerOptions':_0x272708},_0x2b5b77);}else _0x272708[_0x2158ab(0x223)]=_0x272708['prefix']?'/'+_0x272708[_0x2158ab(0x223)]:'/'+_0x1ea888['route'],_0x1ea888[_0x2158ab(0x223)]&&(_0x272708['prefix']='/'+_0x1ea888['prefix']+'/'+_0x272708[_0x2158ab(0x223)]),_0x272708[_0x2158ab(0x223)]=_0x272708[_0x2158ab(0x223)][_0x2158ab(0x1f6)]()[_0x2158ab(0x226)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2158ab(0x1fd)])(action_1[_0x2158ab(0x1fc)],_0x2b5b77),(0x0,decorator_1['Controller'])(_0x272708[_0x2158ab(0x223)],_0x272708)(_0x2b5b77),(0x0,decorator_1[_0x2158ab(0x214)])(action_1[_0x2158ab(0x1fc)],{'prefix':_0x272708[_0x2158ab(0x223)],'module':_0x1ea888[_0x2158ab(0x221)],'pprefix':_0x1ea888[_0x2158ab(0x223)],'filepath':_0x1ea888[_0x2158ab(0x219)],'routerOptions':_0x272708},_0x2b5b77);};}function a3_0x1914(){const _0x188456=['/controller/','8fZbGKr','rootpath','filter','48067459wMbPnp','saveClassMetadata','AppsConfigTmp','-action','split','3410908kzLQBA','filepath','startsWith','6323668VWRBzt','165083PYXDgZ','trim','3CbfnYi','defineProperty','10812431rhiShx','module','@midwayjs/decorator','prefix','Action','splice','replace','18gTfVFA','6113170fWYaMT','length','substring','APPSCONFIG_KEY','tagName','toLowerCase','8946hAMmCJ','/controller/文件下','getClassMetadata','apps/','route','ACTION_KEY','saveModule','2215lqvWzU','__esModule','endsWith','-controller','app/controller/','/config.','middleware','join','match','parseRoute','Controller','\x20文件请放在apps/','12SoPnNJ','middlewareIgnore','indexOf','isArray','existsSync'];a3_0x1914=function(){return _0x188456;};return a3_0x1914();}exports[a3_0x5a3164(0x224)]=Action;function parseRoute(_0x1aa949){const _0xfe3160=a3_0x5a3164;_0x1aa949=_0x1aa949[_0xfe3160(0x226)](/(\\|\/)/g,'/');const _0x564ef5=process['cwd']()[_0xfe3160(0x226)](/(\\|\/)/g,'/'),_0x589b9e=_0x1aa949[_0xfe3160(0x22a)](0x0,_0x564ef5[_0xfe3160(0x229)]+_0x1aa949[_0xfe3160(0x22a)](_0x564ef5[_0xfe3160(0x229)]+0x1)[_0xfe3160(0x20c)]('/')+0x1),_0x45e4b9=_0x1aa949[_0xfe3160(0x22a)](_0x589b9e[_0xfe3160(0x229)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x3b6df1={'route':'','prefix':![],'module':![],'rootpath':_0x589b9e,'filepath':_0x45e4b9};if(_0x45e4b9[_0xfe3160(0x21a)]('app/controller/')){const _0xd0c5aa=_0x45e4b9[_0xfe3160(0x22a)](_0xfe3160(0x202)[_0xfe3160(0x229)])[_0xfe3160(0x217)]('/')['filter'](_0x1e870b=>_0x1e870b&&_0x1e870b[_0xfe3160(0x21d)]());return _0xd0c5aa[_0xfe3160(0x229)]>0x1&&(_0x3b6df1[_0xfe3160(0x223)]=_0xd0c5aa[0x0][_0xfe3160(0x1f6)](),_0xd0c5aa[_0xfe3160(0x225)](0x0,0x1)),_0x3b6df1[_0xfe3160(0x1fb)]=('/'+_0xd0c5aa[_0xfe3160(0x205)]('/'))[_0xfe3160(0x226)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0xfe3160(0x206)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0xfe3160(0x226)](/\/\-/g,'/'),_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x200)](_0xfe3160(0x216))&&(_0x3b6df1[_0xfe3160(0x1fb)]=_0x3b6df1[_0xfe3160(0x1fb)]['substring'](0x0,_0x3b6df1['route']['length']-0x7)),_0x3b6df1[_0xfe3160(0x1fb)]['endsWith'](_0xfe3160(0x201))&&(_0x3b6df1[_0xfe3160(0x1fb)]=_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x22a)](0x0,_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x229)]-0xb)),_0x3b6df1;}else{if(_0x45e4b9['startsWith'](_0xfe3160(0x1fa))){const _0x233bfd=_0x45e4b9['substring'](0x0,_0x45e4b9[_0xfe3160(0x20c)]('/apps/')+0x5),_0x5df3f3=_0x45e4b9[_0xfe3160(0x22a)](_0x233bfd['length']+0x1)[_0xfe3160(0x226)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x45e4b9[_0xfe3160(0x21a)](_0xfe3160(0x1fa)+_0x5df3f3+_0xfe3160(0x20f))){const _0xb06f62=_0x45e4b9['substring']((_0x233bfd+'/'+_0x5df3f3+'/controller/')['length'])['split']('/')[_0xfe3160(0x212)](_0x52bf51=>_0x52bf51&&_0x52bf51[_0xfe3160(0x21d)]());return _0xb06f62[_0xfe3160(0x229)]>0x1&&(_0x3b6df1['prefix']=_0xb06f62[0x0][_0xfe3160(0x1f6)](),_0xb06f62[_0xfe3160(0x225)](0x0,0x1)),_0x3b6df1[_0xfe3160(0x221)]=_0x5df3f3,_0x3b6df1[_0xfe3160(0x1fb)]=('/'+_0x5df3f3+'/'+_0xb06f62[_0xfe3160(0x205)]('/'))[_0xfe3160(0x226)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0xfe3160(0x206)](/[\/|A-Z]*[^A-Z]+/g)[_0xfe3160(0x205)]('-')[_0xfe3160(0x1f6)]()[_0xfe3160(0x226)](/\/\-/g,'/'),_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x200)](_0xfe3160(0x216))&&(_0x3b6df1[_0xfe3160(0x1fb)]=_0x3b6df1[_0xfe3160(0x1fb)]['substring'](0x0,_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x229)]-0x7)),_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x200)](_0xfe3160(0x201))&&(_0x3b6df1[_0xfe3160(0x1fb)]=_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x22a)](0x0,_0x3b6df1[_0xfe3160(0x1fb)][_0xfe3160(0x229)]-0xb)),_0x3b6df1;}throw new Error(_0x45e4b9+_0xfe3160(0x209)+_0x5df3f3+_0xfe3160(0x1f8));}}throw new Error(_0x45e4b9+'\x20文件请放在app/controller/文件下');}exports[a3_0x5a3164(0x207)]=parseRoute;
@@ -1 +1 @@
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
+ 'use strict';const a4_0xc6794c=a4_0xdb70;(function(_0x34a29f,_0x211517){const _0x1b641a=a4_0xdb70,_0x101932=_0x34a29f();while(!![]){try{const _0x1d2624=-parseInt(_0x1b641a(0xb1))/0x1*(parseInt(_0x1b641a(0xb5))/0x2)+parseInt(_0x1b641a(0xcb))/0x3+-parseInt(_0x1b641a(0xc2))/0x4+parseInt(_0x1b641a(0xc6))/0x5*(parseInt(_0x1b641a(0xbc))/0x6)+parseInt(_0x1b641a(0xc4))/0x7+-parseInt(_0x1b641a(0xc3))/0x8*(-parseInt(_0x1b641a(0xb9))/0x9)+parseInt(_0x1b641a(0xbd))/0xa;if(_0x1d2624===_0x211517)break;else _0x101932['push'](_0x101932['shift']());}catch(_0x3f3180){_0x101932['push'](_0x101932['shift']());}}}(a4_0x4239,0x9f6ea));function a4_0xdb70(_0x4896c2,_0x1c74b4){const _0x4239b7=a4_0x4239();return a4_0xdb70=function(_0xdb70be,_0x4a0ab7){_0xdb70be=_0xdb70be-0xb0;let _0x133e7e=_0x4239b7[_0xdb70be];return _0x133e7e;},a4_0xdb70(_0x4896c2,_0x1c74b4);}Object[a4_0xc6794c(0xb7)](exports,'__esModule',{'value':!![]}),exports[a4_0xc6794c(0xc7)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0xc6794c(0xc5)),action_1=require(a4_0xc6794c(0xb0));function Api(_0x4ef6f8,_0x19be85=a4_0xc6794c(0xbe),_0x163c93='/',_0x421478={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x17ac46,_0x4ed19b,_0xe23225)=>{const _0x437f01=a4_0xdb70;var _0x4d5ccf,_0x6bec15,_0x2d649c;!_0x421478[_0x437f01(0xbf)]&&(_0x421478['middleware']=[]);!((_0x4d5ccf=_0x421478===null||_0x421478===void 0x0?void 0x0:_0x421478[_0x437f01(0xb8)])===null||_0x4d5ccf===void 0x0?void 0x0:_0x4d5ccf[_0x437f01(0xc9)])&&(_0x421478[_0x437f01(0xb8)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x437f01(0xce)}});if(((_0x6bec15=_0x421478===null||_0x421478===void 0x0?void 0x0:_0x421478[_0x437f01(0xbf)])===null||_0x6bec15===void 0x0?void 0x0:_0x6bec15[_0x437f01(0xc0)])>0x0&&((_0x2d649c=_0x421478===null||_0x421478===void 0x0?void 0x0:_0x421478['middlewareIgnore'])===null||_0x2d649c===void 0x0?void 0x0:_0x2d649c[_0x437f01(0xc0)])>0x0)for(let _0x1404a3 in _0x421478[_0x437f01(0xbf)]){_0x421478['middlewareIgnore'][_0x437f01(0xb6)](_0x421478[_0x437f01(0xbf)][_0x1404a3])!==-0x1&&(_0x421478[_0x437f01(0xbf)][_0x1404a3]=null);}_0x421478[_0x437f01(0xc1)]=_0x4ef6f8,(0x0,validator_1[_0x437f01(0xbb)])(_0x421478[_0x437f01(0xb8)])(_0x17ac46,_0x4ed19b,_0xe23225),(0x0,decorator_1['RequestMapping'])(Object[_0x437f01(0xcc)](_0x421478,{'path':_0x163c93,'requestMethod':(_0x19be85==_0x437f01(0xcd)?_0x437f01(0xca):_0x19be85)[_0x437f01(0xc8)]()}))(_0x17ac46,_0x4ed19b,_0xe23225),(0x0,decorator_1['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x163c93,'method':_0x4ed19b,'apimit':_0x421478['apimit'],'routerName':_0x421478[_0x437f01(0xc1)],'description':_0x421478['description'],'middleware':(_0x421478[_0x437f01(0xbf)]||[])[_0x437f01(0xb4)](_0x43f329=>!!_0x43f329),'requestMethod':(_0x19be85==_0x437f01(0xcd)?_0x437f01(0xca):_0x19be85)[_0x437f01(0xc8)]()},_0x17ac46),(0x0,decorator_1[_0x437f01(0xba)])(action_1[_0x437f01(0xb3)],{'path':_0x163c93,'method':_0x4ed19b,'apimit':_0x421478[_0x437f01(0xb2)],'routerName':_0x421478[_0x437f01(0xc1)],'description':_0x421478['description'],'middleware':(_0x421478[_0x437f01(0xbf)]||[])['filter'](_0x5e238f=>!!_0x5e238f),'requestMethod':(_0x19be85==_0x437f01(0xcd)?'delete':_0x19be85)[_0x437f01(0xc8)]()})(_0x17ac46,_0x4ed19b,_0xe23225);};}function a4_0x4239(){const _0x113cf8=['defineProperty','validate','9uhpUOB','createCustomMethodDecorator','Validator','15162fIQgSW','1914010LkzyCj','get','middleware','length','routerName','5097308VPtEHq','2727024FajjxR','8809514UHGUHF','@midwayjs/decorator','20JbDIru','Api','toLowerCase','validationOptions','delete','2190882RRvcyc','assign','del','utc','../types/action','3846FUDWCs','apimit','ACTION_ROUTE_KEY','filter','314OSprtV','indexOf'];a4_0x4239=function(){return _0x113cf8;};return a4_0x4239();}exports[a4_0xc6794c(0xc7)]=Api;
@@ -1 +1 @@
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
+ 'use strict';const a5_0x2d465f=a5_0x2148;(function(_0x1f180c,_0x2e082a){const _0x1e9254=a5_0x2148,_0xbba2b4=_0x1f180c();while(!![]){try{const _0x515797=-parseInt(_0x1e9254(0x1c2))/0x1+-parseInt(_0x1e9254(0x1b3))/0x2*(-parseInt(_0x1e9254(0x1b0))/0x3)+-parseInt(_0x1e9254(0x1ba))/0x4*(parseInt(_0x1e9254(0x1af))/0x5)+parseInt(_0x1e9254(0x1bf))/0x6*(parseInt(_0x1e9254(0x1ae))/0x7)+parseInt(_0x1e9254(0x1b1))/0x8*(-parseInt(_0x1e9254(0x1c1))/0x9)+-parseInt(_0x1e9254(0x1ab))/0xa*(-parseInt(_0x1e9254(0x1be))/0xb)+parseInt(_0x1e9254(0x1b2))/0xc*(parseInt(_0x1e9254(0x1ac))/0xd);if(_0x515797===_0x2e082a)break;else _0xbba2b4['push'](_0xbba2b4['shift']());}catch(_0x51f0aa){_0xbba2b4['push'](_0xbba2b4['shift']());}}}(a5_0x5827,0xc4663));Object[a5_0x2d465f(0x1b6)](exports,a5_0x2d465f(0x1c3),{'value':!![]}),exports['Apitest']=void 0x0;function a5_0x5827(){const _0xccf33d=['getConfig','getApplicationContext','400BhTDNC','26XiQndQ','apitest','2626365RZJtbt','2668200yyJGEM','39GfYmiM','184lRBhAu','10083840GrpRAR','21026jbonbh','@midwayjs/core','@midwayjs/decorator','defineProperty','../service/ApitestService','filepath','RequestMapping','4oeHOcO','app','getAsync','apidoc','256091JUobIo','18zEIFqs','ApitestService','494847DDoBCP','1271434DVPMlN','__esModule'];a5_0x5827=function(){return _0xccf33d;};return a5_0x5827();}const decorator_1=require(a5_0x2d465f(0x1b5)),core_1=require(a5_0x2d465f(0x1b4)),ApitestService_1=require(a5_0x2d465f(0x1b7));function Apitest(_0x40af10='/apitest',_0x58609c){return(_0x59ddd5,_0x2c2b2b,_0xcc832a)=>{const _0x442cf5=a5_0x2148;return(0x0,decorator_1[_0x442cf5(0x1b9)])({'path':_0x40af10,'requestMethod':'get'})(_0x59ddd5,_0x2c2b2b,_0xcc832a),_0xcc832a['value']=async function(..._0x5e28bf){const _0x1625d4=_0x442cf5;var _0x27c614;const _0x167180=(_0x27c614=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x27c614===void 0x0?void 0x0:_0x27c614[_0x1625d4(0x1bb)];if(_0x167180&&_0x167180[_0x1625d4(0x1c4)](_0x1625d4(0x1ad))){const _0x19495b=await _0x167180[_0x1625d4(0x1aa)]()[_0x1625d4(0x1bc)](ApitestService_1[_0x1625d4(0x1c0)]),_0x497c7d=await _0x167180['getApplicationContext']()[_0x1625d4(0x1bc)](core_1['MidwayEnvironmentService']);return _0x497c7d['isDevelopmentEnvironment']()&&(_0x58609c[_0x1625d4(0x1b8)]=!![]),await _0x19495b[_0x1625d4(0x1bd)](_0x58609c);}return'';},_0xcc832a;};}function a5_0x2148(_0x5aead4,_0x5d075a){const _0x5827af=a5_0x5827();return a5_0x2148=function(_0x2148ca,_0x22a797){_0x2148ca=_0x2148ca-0x1aa;let _0x51766e=_0x5827af[_0x2148ca];return _0x51766e;},a5_0x2148(_0x5aead4,_0x5d075a);}exports['Apitest']=Apitest;
@@ -1 +1 @@
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
+ 'use strict';var a6_0x1250b3=a6_0x4b5d;(function(_0x27fa32,_0x465add){var _0x118fb8=a6_0x4b5d,_0x53929c=_0x27fa32();while(!![]){try{var _0x535986=-parseInt(_0x118fb8(0x1c2))/0x1*(parseInt(_0x118fb8(0x1d2))/0x2)+parseInt(_0x118fb8(0x1d8))/0x3+parseInt(_0x118fb8(0x1c4))/0x4+-parseInt(_0x118fb8(0x1d4))/0x5*(-parseInt(_0x118fb8(0x1c7))/0x6)+parseInt(_0x118fb8(0x1db))/0x7*(parseInt(_0x118fb8(0x1dc))/0x8)+parseInt(_0x118fb8(0x1c0))/0x9*(-parseInt(_0x118fb8(0x1ca))/0xa)+-parseInt(_0x118fb8(0x1c6))/0xb;if(_0x535986===_0x465add)break;else _0x53929c['push'](_0x53929c['shift']());}catch(_0x381120){_0x53929c['push'](_0x53929c['shift']());}}}(a6_0x2335,0x95d3a));function a6_0x4b5d(_0x265d70,_0x174ec7){var _0x2335ac=a6_0x2335();return a6_0x4b5d=function(_0x4b5d28,_0x42b0f3){_0x4b5d28=_0x4b5d28-0x1be;var _0x1b8dfd=_0x2335ac[_0x4b5d28];return _0x1b8dfd;},a6_0x4b5d(_0x265d70,_0x174ec7);}var __decorate=this&&this[a6_0x1250b3(0x1ce)]||function(_0x2d7635,_0x12632b,_0xb51f0,_0x3ab70a){var _0x2beda8=a6_0x1250b3,_0x116ed0=arguments['length'],_0x339b0b=_0x116ed0<0x3?_0x12632b:_0x3ab70a===null?_0x3ab70a=Object[_0x2beda8(0x1d1)](_0x12632b,_0xb51f0):_0x3ab70a,_0x19f2c1;if(typeof Reflect===_0x2beda8(0x1d7)&&typeof Reflect[_0x2beda8(0x1c3)]===_0x2beda8(0x1dd))_0x339b0b=Reflect['decorate'](_0x2d7635,_0x12632b,_0xb51f0,_0x3ab70a);else{for(var _0x4c4e97=_0x2d7635[_0x2beda8(0x1be)]-0x1;_0x4c4e97>=0x0;_0x4c4e97--)if(_0x19f2c1=_0x2d7635[_0x4c4e97])_0x339b0b=(_0x116ed0<0x3?_0x19f2c1(_0x339b0b):_0x116ed0>0x3?_0x19f2c1(_0x12632b,_0xb51f0,_0x339b0b):_0x19f2c1(_0x12632b,_0xb51f0))||_0x339b0b;}return _0x116ed0>0x3&&_0x339b0b&&Object[_0x2beda8(0x1cb)](_0x12632b,_0xb51f0,_0x339b0b),_0x339b0b;},__metadata=this&&this[a6_0x1250b3(0x1bf)]||function(_0x5f05b8,_0x1e8073){var _0x49963f=a6_0x1250b3;if(typeof Reflect===_0x49963f(0x1d7)&&typeof Reflect[_0x49963f(0x1d5)]===_0x49963f(0x1dd))return Reflect[_0x49963f(0x1d5)](_0x5f05b8,_0x1e8073);};Object[a6_0x1250b3(0x1cb)](exports,'__esModule',{'value':!![]}),exports[a6_0x1250b3(0x1d9)]=void 0x0;function a6_0x2335(){var _0x135195=['7irfMDA','8234224hwdsnY','function','length','__metadata','2974329hZtYQd','signature验证失败','1WBocoI','decorate','4706180jaWlnU','请求头信息不完整','6574150pSLbkm','3126tcwnKv','HEADERS_LACK','HEADERS_SIGNATURE','10txZVVM','defineProperty','HEADERS_DEVICE','HEADERS_CHECKCODE','__decorate','design:type','checkcode验证失败','getOwnPropertyDescriptor','1527374ledduI','网络繁忙,请稍后重试','295wqblLG','metadata','请使用正确的设备','object','206838gTsBPJ','ApiError','TIMEOUT'];a6_0x2335=function(){return _0x135195;};return a6_0x2335();}class ApiError{}ApiError[a6_0x1250b3(0x1da)]=0x18a89,ApiError[a6_0x1250b3(0x1c8)]=0x18a8a,ApiError['HEADERS_DEVICE']=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError['HEADERS_SIGNATURE']=0x18a8d,__decorate([AnnErrorMsg(a6_0x1250b3(0x1d3)),__metadata('design:type',Object)],ApiError,a6_0x1250b3(0x1da),void 0x0),__decorate([AnnErrorMsg(a6_0x1250b3(0x1c5)),__metadata(a6_0x1250b3(0x1cf),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x1250b3(0x1d6)),__metadata(a6_0x1250b3(0x1cf),Object)],ApiError,a6_0x1250b3(0x1cc),void 0x0),__decorate([AnnErrorMsg(a6_0x1250b3(0x1d0)),__metadata(a6_0x1250b3(0x1cf),Object)],ApiError,a6_0x1250b3(0x1cd),void 0x0),__decorate([AnnErrorMsg(a6_0x1250b3(0x1c1)),__metadata('design:type',Object)],ApiError,a6_0x1250b3(0x1c9),void 0x0),exports[a6_0x1250b3(0x1d9)]=ApiError;
@@ -0,0 +1,3 @@
1
+ export declare function getAppsConfig(appName?: string): {
2
+ [key: string]: any;
3
+ };
@@ -0,0 +1 @@
1
+ 'use strict';const a7_0x447a36=a7_0x2a20;(function(_0x46da19,_0x4143d6){const _0x3263cf=a7_0x2a20,_0x3c241c=_0x46da19();while(!![]){try{const _0x44d593=-parseInt(_0x3263cf(0x15b))/0x1+-parseInt(_0x3263cf(0x15e))/0x2+-parseInt(_0x3263cf(0x153))/0x3*(-parseInt(_0x3263cf(0x15a))/0x4)+parseInt(_0x3263cf(0x15c))/0x5+parseInt(_0x3263cf(0x15f))/0x6*(parseInt(_0x3263cf(0x154))/0x7)+parseInt(_0x3263cf(0x155))/0x8*(parseInt(_0x3263cf(0x152))/0x9)+-parseInt(_0x3263cf(0x161))/0xa;if(_0x44d593===_0x4143d6)break;else _0x3c241c['push'](_0x3c241c['shift']());}catch(_0x2338ea){_0x3c241c['push'](_0x3c241c['shift']());}}}(a7_0xf7af,0x25c31));Object[a7_0x447a36(0x157)](exports,a7_0x447a36(0x15d),{'value':!![]}),exports['getAppsConfig']=void 0x0;const decorator_1=require(a7_0x447a36(0x158)),action_1=require(a7_0x447a36(0x160));function a7_0xf7af(){const _0x42c378=['18900qCSCUt','18CAwYDR','../types/action','6379010gkTwnJ','1156086hbMYtl','3tqmrNh','138761lLHTAr','16ChHLOO','APPSCONFIG_KEY','defineProperty','@midwayjs/decorator','AppsConfigTmp','1038116nJDbwT','45614vvGyZT','1358660kbyzjU','__esModule'];a7_0xf7af=function(){return _0x42c378;};return a7_0xf7af();}function getAppsConfig(_0x538211){const _0x10c243=a7_0x447a36,_0x680239=(0x0,decorator_1['getClassMetadata'])(action_1[_0x10c243(0x156)],action_1[_0x10c243(0x159)])||{};return _0x538211?_0x680239[_0x538211]:_0x680239;}function a7_0x2a20(_0x885ab5,_0x1cbdd4){const _0xf7afb1=a7_0xf7af();return a7_0x2a20=function(_0x2a202e,_0x51cbbe){_0x2a202e=_0x2a202e-0x152;let _0x392899=_0xf7afb1[_0x2a202e];return _0x392899;},a7_0x2a20(_0x885ab5,_0x1cbdd4);}exports['getAppsConfig']=getAppsConfig;
@@ -1 +1 @@
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);}}
1
+ 'use strict';function a8_0x1d7a(_0x250448,_0x29fc84){const _0x1f5dbe=a8_0x1f5d();return a8_0x1d7a=function(_0x1d7adb,_0x10e7ff){_0x1d7adb=_0x1d7adb-0x1a2;let _0x916268=_0x1f5dbe[_0x1d7adb];return _0x916268;},a8_0x1d7a(_0x250448,_0x29fc84);}const a8_0x166a9c=a8_0x1d7a;(function(_0x23fd50,_0x3ba64d){const _0x16a712=a8_0x1d7a,_0x50da74=_0x23fd50();while(!![]){try{const _0x4fd3ae=parseInt(_0x16a712(0x1a9))/0x1+-parseInt(_0x16a712(0x1ed))/0x2+-parseInt(_0x16a712(0x1f9))/0x3+-parseInt(_0x16a712(0x1fd))/0x4+-parseInt(_0x16a712(0x1eb))/0x5*(parseInt(_0x16a712(0x1e4))/0x6)+-parseInt(_0x16a712(0x1c5))/0x7*(-parseInt(_0x16a712(0x1ae))/0x8)+-parseInt(_0x16a712(0x1d7))/0x9*(-parseInt(_0x16a712(0x1af))/0xa);if(_0x4fd3ae===_0x3ba64d)break;else _0x50da74['push'](_0x50da74['shift']());}catch(_0x38e9c2){_0x50da74['push'](_0x50da74['shift']());}}}(a8_0x1f5d,0x4b123));function a8_0x1f5d(){const _0x27c2e1=['Boolean','FIELDS','summary','270512NULjZB','routerOptions','header','boolean','object','1016TCIWiV','2109780OCApmG','array','description','path','query','ACTION_KEY','request','replace','WEB_ROUTER_PARAM_KEY','getRoutes','test','allow','FILESTREAM','getClassMetadata','type','HEADERS','pprefix','__esModule','limit','parameterIndex','isArray','title','1967luiFPC','join','log','string','route','module','body','lodash','get','concat','required','getClassExtendedMetadata','tagName','defineProperty','@anncic-api/validator','name','../types/action','noreq','36dXdlbj','prefix','filepath','BODY','RULES_KEY','items','push','length','min','flags.presence','indexOf','/static/apitest','只允许:[','2250MaLAYH','describe','default','rules','flags.description','static/apitest','routerName','4805ZJOysL','method','504452rYKurX','PARAM','QUERY','ACTION_ROUTE_KEY','Object','startsWith','RouteParamTypes','key','function','@midwayjs/decorator','iterator','metadata','388110UIpkLT','filter','max','number','402596aaEhfo','routes','args','INJECT_CUSTOM_PARAM','file','propertyData','FILESSTREAM'];a8_0x1f5d=function(){return _0x27c2e1;};return a8_0x1f5d();}Object[a8_0x166a9c(0x1d2)](exports,a8_0x166a9c(0x1c0),{'value':!![]}),exports[a8_0x166a9c(0x1b8)]=void 0x0;const lodash_1=require(a8_0x166a9c(0x1cc)),validator_1=require(a8_0x166a9c(0x1d3)),decorator_1=require(a8_0x166a9c(0x1f6)),decorator_2=require('@midwayjs/decorator'),decorator_3=require(a8_0x166a9c(0x1f6)),action_1=require(a8_0x166a9c(0x1d5));function getRoutes(_0x2e2895={'prefix':'/','module':![]}){const _0x49188b=a8_0x166a9c;var _0x5761df,_0x28d11c;const _0x48d53e=(0x0,decorator_3['listModule'])(action_1[_0x49188b(0x1b4)]),_0x3a55ef={},_0x4fe616=Array[_0x49188b(0x1c3)](_0x2e2895['filter']||[])?_0x2e2895['filter']||[]:[_0x2e2895[_0x49188b(0x1fa)]];_0x38ba7d:for(const _0x5eaca8 of _0x48d53e){let _0x581c59=(0x0,decorator_3[_0x49188b(0x1bc)])(action_1[_0x49188b(0x1b4)],_0x5eaca8),_0x59c247=(0x0,decorator_3[_0x49188b(0x1bc)])(action_1[_0x49188b(0x1f0)],_0x5eaca8);if(_0x581c59&&_0x59c247){let _0x25b4c9=_0x581c59['prefix'],_0x44f287={};if(_0x2e2895[_0x49188b(0x1ca)]&&(0x0,lodash_1[_0x49188b(0x1cd)])(_0x581c59,'module',![])!=_0x2e2895[_0x49188b(0x1ca)])continue _0x38ba7d;else{if(_0x2e2895[_0x49188b(0x1ca)]===![]&&!!(0x0,lodash_1[_0x49188b(0x1cd)])(_0x581c59,_0x49188b(0x1ca),null))continue _0x38ba7d;}if(_0x2e2895[_0x49188b(0x1d8)]&&!_0x25b4c9['startsWith'](_0x2e2895['prefix']))continue _0x38ba7d;_0x25b4c9!=='/'?(_0x44f287[_0x49188b(0x1a8)]=(_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59[_0x49188b(0x1aa)]['tagName'])||(/^\//[_0x49188b(0x1b9)](_0x25b4c9)?_0x25b4c9['split']('/')[0x1]:_0x25b4c9),_0x44f287['description']=(_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59[_0x49188b(0x1aa)][_0x49188b(0x1b1)])||_0x44f287[_0x49188b(0x1a8)],_0x44f287[_0x49188b(0x1fe)]=[]):(_0x44f287['summary']=(_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59['routerOptions'][_0x49188b(0x1d1)])||_0x49188b(0x1e6),_0x44f287[_0x49188b(0x1b1)]=(_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59[_0x49188b(0x1aa)][_0x49188b(0x1b1)])||'',_0x44f287['routes']=[]);_0x2e2895[_0x49188b(0x1d9)]&&(_0x44f287[_0x49188b(0x1d9)]=_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59['filepath']);(_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59[_0x49188b(0x1bf)])&&(_0x44f287['prefix']=_0x581c59['pprefix']);(_0x581c59===null||_0x581c59===void 0x0?void 0x0:_0x581c59[_0x49188b(0x1ca)])&&(_0x44f287[_0x49188b(0x1ca)]=_0x581c59['module']);let _0x38774e=(0x0,decorator_3[_0x49188b(0x1bc)])(decorator_2[_0x49188b(0x1a2)],_0x5eaca8)||{};if(typeof _0x59c247[Symbol[_0x49188b(0x1f7)]]===_0x49188b(0x1f5))for(let _0x524ddb of _0x59c247){let _0x2fcd2f={};_0x2fcd2f['method']=_0x524ddb['requestMethod'],_0x2fcd2f[_0x49188b(0x1c9)]=(_0x25b4c9+_0x524ddb[_0x49188b(0x1b2)])[_0x49188b(0x1b6)](/\/{1,}/,'/'),_0x2fcd2f[_0x49188b(0x1a8)]=(_0x524ddb===null||_0x524ddb===void 0x0?void 0x0:_0x524ddb[_0x49188b(0x1ea)])||_0x44f287[_0x49188b(0x1a8)]||_0x49188b(0x1e6),_0x2fcd2f['description']=(_0x524ddb===null||_0x524ddb===void 0x0?void 0x0:_0x524ddb['description'])||'',_0x2fcd2f[_0x49188b(0x1b5)]=[];if(!(0x0,lodash_1[_0x49188b(0x1f2)])(_0x2fcd2f[_0x49188b(0x1c9)],_0x49188b(0x1e9))&&!(0x0,lodash_1[_0x49188b(0x1f2)])(_0x2fcd2f[_0x49188b(0x1c9)],_0x49188b(0x1e2))&&_0x4fe616[_0x49188b(0x1e1)](_0x2fcd2f['route'])===-0x1){if(!(_0x2e2895===null||_0x2e2895===void 0x0?void 0x0:_0x2e2895[_0x49188b(0x1d6)])){let _0x2e2b86=(0x0,decorator_3['getMethodParamTypes'])(new _0x5eaca8(),_0x524ddb[_0x49188b(0x1ec)]);for(const _0x8d56fa in _0x2e2b86){let _0x31952f=(_0x5761df=_0x38774e[_0x524ddb[_0x49188b(0x1ec)]])===null||_0x5761df===void 0x0?void 0x0:_0x5761df['find'](_0xd32b3e=>_0xd32b3e['parameterIndex']==_0x8d56fa&&_0xd32b3e['key']===decorator_2[_0x49188b(0x1b7)]&&(_0xd32b3e===null||_0xd32b3e===void 0x0?void 0x0:_0xd32b3e[_0x49188b(0x1f8)]));if(_0x31952f===null||_0x31952f===void 0x0?void 0x0:_0x31952f[_0x49188b(0x1f8)]){let _0x31f424=convertTypeToString(_0x31952f['metadata'][_0x49188b(0x1bd)]||0x0);if([_0x49188b(0x1b3),_0x49188b(0x1cb)][_0x49188b(0x1e1)](_0x31f424)!=-0x1&&_0x31952f['metadata'][_0x49188b(0x1a4)][_0x49188b(0x1e1)](':')==-0x1&&!_0x2fcd2f['request']['find'](_0x2279e3=>_0x2279e3[_0x49188b(0x1f4)]==_0x31952f[_0x49188b(0x1f8)][_0x49188b(0x1a4)]))_0x2fcd2f[_0x49188b(0x1b5)]['push']({'key':_0x31952f[_0x49188b(0x1f8)][_0x49188b(0x1a4)],'title':_0x31952f[_0x49188b(0x1f8)][_0x49188b(0x1a4)],'type':convertSchemaType(_0x2e2b86[_0x31952f[_0x49188b(0x1c2)]][_0x49188b(0x1d4)]),'required':![],'default':'','desc':''});else{if(_0x31f424==_0x49188b(0x1a3)){let _0x5a6750=((_0x28d11c=_0x31952f===null||_0x31952f===void 0x0?void 0x0:_0x31952f[_0x49188b(0x1f8)])===null||_0x28d11c===void 0x0?void 0x0:_0x28d11c[_0x49188b(0x1a4)])||_0x49188b(0x1a3);_0x5a6750[_0x49188b(0x1e1)](':')==-0x1&&!_0x2fcd2f['request']['find'](_0x18f199=>_0x18f199[_0x49188b(0x1f4)]==_0x5a6750&&_0x18f199[_0x49188b(0x1bd)]==_0x49188b(0x1a3))&&_0x2fcd2f[_0x49188b(0x1b5)][_0x49188b(0x1dd)]({'key':_0x5a6750,'title':'文件上传-'+_0x5a6750,'type':_0x49188b(0x1a3),'required':!![],'default':'','desc':''});}}}else{const _0x32b550=(0x0,decorator_3[_0x49188b(0x1d0)])(validator_1[_0x49188b(0x1db)],_0x2e2b86[_0x8d56fa]);_0x32b550&&_0x2fcd2f['request'][_0x49188b(0x1dd)](...getJoiRequest(_0x32b550));}}}_0x44f287[_0x49188b(0x1fe)][_0x49188b(0x1dd)](_0x2fcd2f);}}if(_0x44f287[_0x49188b(0x1fe)][_0x49188b(0x1de)]>0x0){let _0x3fe5f3=_0x3a55ef[_0x25b4c9];_0x3fe5f3?(_0x3fe5f3[_0x49188b(0x1a8)]!=_0x44f287[_0x49188b(0x1a8)]&&(_0x3fe5f3['summary']=_0x3fe5f3[_0x49188b(0x1a8)]+','+_0x44f287[_0x49188b(0x1a8)]),_0x3fe5f3[_0x49188b(0x1b1)]!=_0x44f287[_0x49188b(0x1b1)]&&(_0x3fe5f3['description']=_0x3fe5f3[_0x49188b(0x1b1)]+','+_0x44f287[_0x49188b(0x1b1)]),_0x3fe5f3[_0x49188b(0x1fe)]=_0x3fe5f3['routes'][_0x49188b(0x1ce)](_0x44f287[_0x49188b(0x1fe)]),_0x3a55ef[_0x25b4c9]=_0x3fe5f3):_0x3a55ef[_0x25b4c9]=_0x44f287;}}}return _0x3a55ef;}exports[a8_0x166a9c(0x1b8)]=getRoutes;function getJoiRequest(_0x31eb31){const _0x1b1ce8=a8_0x166a9c,_0x5221a2=[];for(let _0x2863ef in _0x31eb31){const _0x3ecc11={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xf90d2d=typeof _0x31eb31[_0x2863ef][_0x1b1ce8(0x1e5)]==_0x1b1ce8(0x1f5)?_0x31eb31[_0x2863ef][_0x1b1ce8(0x1e5)]():_0x31eb31[_0x2863ef];_0x3ecc11[_0x1b1ce8(0x1f4)]=_0x2863ef,_0x3ecc11['type']=_0xf90d2d[_0x1b1ce8(0x1bd)],_0x3ecc11[_0x1b1ce8(0x1c4)]=(0x0,lodash_1[_0x1b1ce8(0x1cd)])(_0xf90d2d,'flags.label',_0x2863ef),_0x3ecc11[_0x1b1ce8(0x1e6)]=(0x0,lodash_1[_0x1b1ce8(0x1cd)])(_0xf90d2d,'flags.default',''),_0x3ecc11[_0x1b1ce8(0x1cf)]=(0x0,lodash_1[_0x1b1ce8(0x1cd)])(_0xf90d2d,_0x1b1ce8(0x1e0),'')=='required',_0x3ecc11[_0x1b1ce8(0x1b1)]=(0x0,lodash_1['get'])(_0xf90d2d,_0x1b1ce8(0x1e8),'');if(_0xf90d2d['type']==_0x1b1ce8(0x1ad))_0x3ecc11['children']=getJoiRequest(_0xf90d2d['keys']);else _0xf90d2d[_0x1b1ce8(0x1bd)]==_0x1b1ce8(0x1b0)&&_0xf90d2d[_0x1b1ce8(0x1dc)]&&Array[_0x1b1ce8(0x1c3)](_0xf90d2d[_0x1b1ce8(0x1dc)])&&_0xf90d2d[_0x1b1ce8(0x1dc)][0x0]&&console[_0x1b1ce8(0x1c7)](_0x2863ef+'-array',_0xf90d2d);_0xf90d2d[_0x1b1ce8(0x1ba)]&&Array[_0x1b1ce8(0x1c3)](_0xf90d2d['allow'])&&_0xf90d2d[_0x1b1ce8(0x1ba)][_0x1b1ce8(0x1de)]>0x0&&(_0x3ecc11['description']=_0x1b1ce8(0x1e3)+_0xf90d2d[_0x1b1ce8(0x1ba)][_0x1b1ce8(0x1c6)](',')+'];'+_0x3ecc11[_0x1b1ce8(0x1b1)]);if(_0x3ecc11[_0x1b1ce8(0x1f4)]&&_0x3ecc11[_0x1b1ce8(0x1bd)]){const _0x4ab81a={};for(const _0x5875d2 of _0xf90d2d[_0x1b1ce8(0x1e7)]||[]){if(_0x5875d2[_0x1b1ce8(0x1d4)]===_0x1b1ce8(0x1df)&&_0x5875d2[_0x1b1ce8(0x1ff)])_0x4ab81a[_0x1b1ce8(0x1df)]=_0x5875d2['args'][_0x1b1ce8(0x1c1)];else _0x5875d2[_0x1b1ce8(0x1d4)]===_0x1b1ce8(0x1fb)&&(_0x4ab81a[_0x1b1ce8(0x1fb)]=_0x5875d2['args']['limit']);}_0x3ecc11[_0x1b1ce8(0x1e7)]=_0x4ab81a;}_0x3ecc11['key']&&_0x3ecc11['title']&&_0x5221a2['push'](_0x3ecc11);}return _0x5221a2;}function convertSchemaType(_0xf0d412){const _0x15f246=a8_0x166a9c;switch(_0xf0d412){case _0x15f246(0x1f1):return'object';case _0x15f246(0x1a6):return _0x15f246(0x1ac);case'Number':return _0x15f246(0x1fc);case'String':return _0x15f246(0x1c8);case'File':return _0x15f246(0x1a3);default:return'string';}}function convertTypeToString(_0x11cb0d){const _0x462565=a8_0x166a9c;switch(_0x11cb0d){case decorator_1[_0x462565(0x1f3)][_0x462565(0x1be)]:return _0x462565(0x1ab);case decorator_1[_0x462565(0x1f3)][_0x462565(0x1ef)]:return _0x462565(0x1b3);case decorator_1[_0x462565(0x1f3)][_0x462565(0x1ee)]:return _0x462565(0x1b2);case decorator_1['RouteParamTypes'][_0x462565(0x1da)]:return'body';case decorator_1['RouteParamTypes'][_0x462565(0x1a7)]:case decorator_1[_0x462565(0x1f3)][_0x462565(0x1a5)]:case decorator_1[_0x462565(0x1f3)][_0x462565(0x1bb)]:return _0x462565(0x1a3);default:return _0x462565(0x1ab);}}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import { getAppsConfig } from './helper/getAppsConfig';
1
2
  export * from './types/common';
2
3
  export * from './service/ApitestService';
3
- export { getRoutes } from './helper/getRoutes';
4
4
  export { Api } from './decorator/ActionApi';
5
5
  export { Action } from './decorator/Action';
6
6
  export { Apitest } from './decorator/ActionApitest';
7
+ export { getRoutes } from './helper/getRoutes';
7
8
  export { ILogger } from '@midwayjs/logger';
8
9
  export { ApiError } from './exception/ApiError';
9
10
  export { QueueService } from '@midwayjs/task';
@@ -15,3 +16,4 @@ export { ValidatorError, ValidatorService } from '@anncic-api/validator';
15
16
  export { CustomConfiguration as Configuration } from './configuration';
16
17
  export { File, Files, Fields, Body, Param, Query, Headers, Init } from "@midwayjs/decorator";
17
18
  export { App, Config, Logger, Provide, Inject, Scope, ScopeEnum } from "@midwayjs/decorator";
19
+ export { getAppsConfig };
package/dist/index.js CHANGED
@@ -1 +1 @@
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
+ 'use strict';var a9_0x1ecbe2=a9_0x42a4;(function(_0x1e9872,_0x414dcb){var _0xfbbc2b=a9_0x42a4,_0x461548=_0x1e9872();while(!![]){try{var _0x5b604e=-parseInt(_0xfbbc2b(0x1b4))/0x1*(parseInt(_0xfbbc2b(0x197))/0x2)+-parseInt(_0xfbbc2b(0x1bb))/0x3*(-parseInt(_0xfbbc2b(0x18c))/0x4)+parseInt(_0xfbbc2b(0x190))/0x5*(-parseInt(_0xfbbc2b(0x1c4))/0x6)+-parseInt(_0xfbbc2b(0x1c6))/0x7*(-parseInt(_0xfbbc2b(0x19a))/0x8)+parseInt(_0xfbbc2b(0x194))/0x9+-parseInt(_0xfbbc2b(0x18d))/0xa*(-parseInt(_0xfbbc2b(0x1b9))/0xb)+parseInt(_0xfbbc2b(0x198))/0xc;if(_0x5b604e===_0x414dcb)break;else _0x461548['push'](_0x461548['shift']());}catch(_0x435806){_0x461548['push'](_0x461548['shift']());}}}(a9_0x382d,0x2929d));var __createBinding=this&&this[a9_0x1ecbe2(0x1c7)]||(Object[a9_0x1ecbe2(0x18f)]?function(_0xe8f259,_0x1a1b27,_0x1949b8,_0x272f62){var _0x158158=a9_0x1ecbe2;if(_0x272f62===undefined)_0x272f62=_0x1949b8;var _0x1f1b51=Object[_0x158158(0x1b2)](_0x1a1b27,_0x1949b8);(!_0x1f1b51||(_0x158158(0x195)in _0x1f1b51?!_0x1a1b27['__esModule']:_0x1f1b51[_0x158158(0x1b3)]||_0x1f1b51[_0x158158(0x192)]))&&(_0x1f1b51={'enumerable':!![],'get':function(){return _0x1a1b27[_0x1949b8];}}),Object[_0x158158(0x1b8)](_0xe8f259,_0x272f62,_0x1f1b51);}:function(_0x4540c1,_0x10b79d,_0x1d2092,_0x212eee){if(_0x212eee===undefined)_0x212eee=_0x1d2092;_0x4540c1[_0x212eee]=_0x10b79d[_0x1d2092];}),__exportStar=this&&this[a9_0x1ecbe2(0x1bc)]||function(_0x62dde7,_0x3fccd4){var _0x4b3157=a9_0x1ecbe2;for(var _0x578ec5 in _0x62dde7)if(_0x578ec5!==_0x4b3157(0x1ad)&&!Object[_0x4b3157(0x1c3)][_0x4b3157(0x1a2)][_0x4b3157(0x1b1)](_0x3fccd4,_0x578ec5))__createBinding(_0x3fccd4,_0x62dde7,_0x578ec5);};Object[a9_0x1ecbe2(0x1b8)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=exports['ScopeEnum']=exports[a9_0x1ecbe2(0x1ba)]=exports[a9_0x1ecbe2(0x1a3)]=exports[a9_0x1ecbe2(0x1c0)]=exports['Logger']=exports['Config']=exports[a9_0x1ecbe2(0x1a7)]=exports[a9_0x1ecbe2(0x1b6)]=exports[a9_0x1ecbe2(0x199)]=exports[a9_0x1ecbe2(0x191)]=exports[a9_0x1ecbe2(0x18b)]=exports[a9_0x1ecbe2(0x1a9)]=exports[a9_0x1ecbe2(0x1c1)]=exports['Files']=exports['File']=exports['Configuration']=exports[a9_0x1ecbe2(0x1b5)]=exports[a9_0x1ecbe2(0x1a5)]=exports['ExcelService']=exports[a9_0x1ecbe2(0x1ab)]=exports[a9_0x1ecbe2(0x19f)]=exports[a9_0x1ecbe2(0x1a4)]=exports[a9_0x1ecbe2(0x193)]=exports[a9_0x1ecbe2(0x18a)]=exports[a9_0x1ecbe2(0x1c9)]=exports[a9_0x1ecbe2(0x196)]=exports[a9_0x1ecbe2(0x19c)]=exports['Api']=void 0x0;const getAppsConfig_1=require(a9_0x1ecbe2(0x1a8));Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1ac),{'enumerable':!![],'get':function(){var _0x2de051=a9_0x1ecbe2;return getAppsConfig_1[_0x2de051(0x1ac)];}}),__exportStar(require(a9_0x1ecbe2(0x1c2)),exports),__exportStar(require(a9_0x1ecbe2(0x18e)),exports);var ActionApi_1=require(a9_0x1ecbe2(0x1c5));Object['defineProperty'](exports,a9_0x1ecbe2(0x19d),{'enumerable':!![],'get':function(){var _0x5d104f=a9_0x1ecbe2;return ActionApi_1[_0x5d104f(0x19d)];}});var Action_1=require('./decorator/Action');Object[a9_0x1ecbe2(0x1b8)](exports,'Action',{'enumerable':!![],'get':function(){var _0x29d48a=a9_0x1ecbe2;return Action_1[_0x29d48a(0x19c)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object['defineProperty'](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x1582bc=a9_0x1ecbe2;return ActionApitest_1[_0x1582bc(0x196)];}});function a9_0x42a4(_0x3be9b0,_0x4e3cec){var _0x382dac=a9_0x382d();return a9_0x42a4=function(_0x42a4fa,_0x4091f0){_0x42a4fa=_0x42a4fa-0x18a;var _0x1eef06=_0x382dac[_0x42a4fa];return _0x1eef06;},a9_0x42a4(_0x3be9b0,_0x4e3cec);}var getRoutes_1=require(a9_0x1ecbe2(0x19e));Object[a9_0x1ecbe2(0x1b8)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x14259f=a9_0x1ecbe2;return getRoutes_1[_0x14259f(0x1c9)];}});var ApiError_1=require(a9_0x1ecbe2(0x1bf));Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x18a),{'enumerable':!![],'get':function(){var _0x3f5656=a9_0x1ecbe2;return ApiError_1[_0x3f5656(0x18a)];}});var task_1=require(a9_0x1ecbe2(0x1a0));Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x193),{'enumerable':!![],'get':function(){var _0x3f5f44=a9_0x1ecbe2;return task_1[_0x3f5f44(0x193)];}});var cache_1=require(a9_0x1ecbe2(0x1b7));Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1a4),{'enumerable':!![],'get':function(){var _0x357b70=a9_0x1ecbe2;return cache_1[_0x357b70(0x1a4)];}});var event_1=require(a9_0x1ecbe2(0x19b));Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x19f),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x1ecbe2(0x1a6));Object[a9_0x1ecbe2(0x1b8)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x1ecbe2(0x1b0));function a9_0x382d(){var _0x325aff=['ApiError','Param','4aGlkSP','93530ERFnvW','./service/ApitestService','create','1625945KLvEUf','Query','configurable','QueueService','1797750UDMalF','get','Apitest','4vcYRAS','5944536rfbdhj','Headers','16HThaJF','@anncic-api/event','Action','Api','./helper/getRoutes','EventService','@midwayjs/task','@midwayjs/decorator','hasOwnProperty','Inject','CacheService','ValidatorError','./service/ApiService','App','./helper/getAppsConfig','Body','ExcelService','ApiService','getAppsConfig','default','Logger','./configuration','./service/ExcelService','call','getOwnPropertyDescriptor','writable','150587ELfboJ','ValidatorService','Init','@anncic-api/cache','defineProperty','11EqTfVT','Scope','148209Hrxkxz','__exportStar','ScopeEnum','Files','./exception/ApiError','Provide','Fields','./types/common','prototype','6osUUAw','./decorator/ActionApi','143794npapJJ','__createBinding','Configuration','getRoutes','Config','File'];a9_0x382d=function(){return _0x325aff;};return a9_0x382d();}Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1aa),{'enumerable':!![],'get':function(){var _0x57920e=a9_0x1ecbe2;return ExcelService_1[_0x57920e(0x1aa)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1a5),{'enumerable':!![],'get':function(){var _0x52bb51=a9_0x1ecbe2;return validator_1[_0x52bb51(0x1a5)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1b5),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x1ecbe2(0x1af));Object['defineProperty'](exports,a9_0x1ecbe2(0x1c8),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a9_0x1ecbe2(0x1a1));Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1cb),{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a9_0x1ecbe2(0x1b8)](exports,'Files',{'enumerable':!![],'get':function(){var _0x2f3ccd=a9_0x1ecbe2;return decorator_1[_0x2f3ccd(0x1be)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1c1),{'enumerable':!![],'get':function(){var _0x461374=a9_0x1ecbe2;return decorator_1[_0x461374(0x1c1)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1a9),{'enumerable':!![],'get':function(){var _0x1e4cdb=a9_0x1ecbe2;return decorator_1[_0x1e4cdb(0x1a9)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x18b),{'enumerable':!![],'get':function(){var _0x438fe4=a9_0x1ecbe2;return decorator_1[_0x438fe4(0x18b)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x191),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a9_0x1ecbe2(0x1b8)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x2c749c=a9_0x1ecbe2;return decorator_1[_0x2c749c(0x199)];}}),Object['defineProperty'](exports,a9_0x1ecbe2(0x1b6),{'enumerable':!![],'get':function(){var _0x28c5fe=a9_0x1ecbe2;return decorator_1[_0x28c5fe(0x1b6)];}});var decorator_2=require(a9_0x1ecbe2(0x1a1));Object[a9_0x1ecbe2(0x1b8)](exports,'App',{'enumerable':!![],'get':function(){var _0x295a67=a9_0x1ecbe2;return decorator_2[_0x295a67(0x1a7)];}}),Object['defineProperty'](exports,a9_0x1ecbe2(0x1ca),{'enumerable':!![],'get':function(){var _0x7b036e=a9_0x1ecbe2;return decorator_2[_0x7b036e(0x1ca)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1ae),{'enumerable':!![],'get':function(){var _0x4f0ed2=a9_0x1ecbe2;return decorator_2[_0x4f0ed2(0x1ae)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1c0),{'enumerable':!![],'get':function(){var _0x505394=a9_0x1ecbe2;return decorator_2[_0x505394(0x1c0)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1a3),{'enumerable':!![],'get':function(){var _0x3468f0=a9_0x1ecbe2;return decorator_2[_0x3468f0(0x1a3)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x189e79=a9_0x1ecbe2;return decorator_2[_0x189e79(0x1ba)];}}),Object[a9_0x1ecbe2(0x1b8)](exports,a9_0x1ecbe2(0x1bd),{'enumerable':!![],'get':function(){var _0x2edc3e=a9_0x1ecbe2;return decorator_2[_0x2edc3e(0x1bd)];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x1ecbe2(0x1ac)];
@@ -1 +1 @@
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
+ 'use strict';function a10_0x46ed(){var _0x5d644e=['now','checksign','checkcode','signature','design:type','undefined','ApiService','timeout','getcheck','MD5','push','getOwnPropertyDescriptor','toString','join','entries','5552ftJZoz','3ONuVJx','HEADERS_CHECKCODE','metadata','4186220HIqXvA','11KekBZr','map','toLowerCase','__metadata','object','108obIsAB','requesttime','HEADERS_LACK','1524464fBsSiF','function','device','logintime','2497060uThuVA','HEADERS_DEVICE','sort','26742hdXzyR','548121XeHDvF','decorate','length','TIMEOUT','fromEntries','ApiError','defineProperty','token','password','../exception/ApiError','ScopeEnum','secret=','anncicapi','config','secret','1353987rlAtxW','635MitCQD','getsign','Config','crypto-js','devices'];a10_0x46ed=function(){return _0x5d644e;};return a10_0x46ed();}var a10_0x3fe72c=a10_0x1e2d;(function(_0x17377a,_0x4743b8){var _0x1cf13a=a10_0x1e2d,_0x34f53e=_0x17377a();while(!![]){try{var _0x3c7264=parseInt(_0x1cf13a(0x207))/0x1+-parseInt(_0x1cf13a(0x1f4))/0x2*(parseInt(_0x1cf13a(0x21d))/0x3)+parseInt(_0x1cf13a(0x1f0))/0x4+parseInt(_0x1cf13a(0x208))/0x5*(parseInt(_0x1cf13a(0x1f7))/0x6)+parseInt(_0x1cf13a(0x1f8))/0x7+-parseInt(_0x1cf13a(0x21c))/0x8*(-parseInt(_0x1cf13a(0x1ed))/0x9)+parseInt(_0x1cf13a(0x220))/0xa*(-parseInt(_0x1cf13a(0x221))/0xb);if(_0x3c7264===_0x4743b8)break;else _0x34f53e['push'](_0x34f53e['shift']());}catch(_0x295441){_0x34f53e['push'](_0x34f53e['shift']());}}}(a10_0x46ed,0xafeed));function a10_0x1e2d(_0x4fadb4,_0x5d623e){var _0x46ed8f=a10_0x46ed();return a10_0x1e2d=function(_0x1e2d8b,_0x3006e4){_0x1e2d8b=_0x1e2d8b-0x1ed;var _0x17c411=_0x46ed8f[_0x1e2d8b];return _0x17c411;},a10_0x1e2d(_0x4fadb4,_0x5d623e);}var __decorate=this&&this['__decorate']||function(_0x52e4f4,_0x529af0,_0x3addcb,_0x14a60e){var _0xce1d1a=a10_0x1e2d,_0x18bd15=arguments[_0xce1d1a(0x1fa)],_0x1a4607=_0x18bd15<0x3?_0x529af0:_0x14a60e===null?_0x14a60e=Object[_0xce1d1a(0x218)](_0x529af0,_0x3addcb):_0x14a60e,_0x4856cd;if(typeof Reflect===_0xce1d1a(0x225)&&typeof Reflect[_0xce1d1a(0x1f9)]===_0xce1d1a(0x1f1))_0x1a4607=Reflect['decorate'](_0x52e4f4,_0x529af0,_0x3addcb,_0x14a60e);else{for(var _0x264e94=_0x52e4f4[_0xce1d1a(0x1fa)]-0x1;_0x264e94>=0x0;_0x264e94--)if(_0x4856cd=_0x52e4f4[_0x264e94])_0x1a4607=(_0x18bd15<0x3?_0x4856cd(_0x1a4607):_0x18bd15>0x3?_0x4856cd(_0x529af0,_0x3addcb,_0x1a4607):_0x4856cd(_0x529af0,_0x3addcb))||_0x1a4607;}return _0x18bd15>0x3&&_0x1a4607&&Object[_0xce1d1a(0x1fe)](_0x529af0,_0x3addcb,_0x1a4607),_0x1a4607;},__metadata=this&&this[a10_0x3fe72c(0x224)]||function(_0x488ebe,_0x3bc249){var _0x407fa7=a10_0x3fe72c;if(typeof Reflect===_0x407fa7(0x225)&&typeof Reflect['metadata']===_0x407fa7(0x1f1))return Reflect[_0x407fa7(0x21f)](_0x488ebe,_0x3bc249);};Object[a10_0x3fe72c(0x1fe)](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x3fe72c(0x20b)),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x3fe72c(0x201));let ApiService=class ApiService{['password'](_0xa237f3){var _0x17b2d7=a10_0x3fe72c,_0x17d9f4;return _0xa237f3?(0x0,crypto_js_1[_0x17b2d7(0x216)])(_0xa237f3+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x17b2d7(0x216)])(_0xa237f3)[_0x17b2d7(0x219)]()+((_0x17d9f4=this['config'])===null||_0x17d9f4===void 0x0?void 0x0:_0x17d9f4[_0x17b2d7(0x200)]))['toString']())[_0x17b2d7(0x219)]():'';}[a10_0x3fe72c(0x215)](_0x578666,_0x3dd5f5,_0xb4f5bd=Date[a10_0x3fe72c(0x20d)]()){return{'Token':_0x578666,'Logintime':_0xb4f5bd,'Checkcode':this['checkcode'](_0x578666,_0x3dd5f5,_0xb4f5bd)};}['getsign'](_0x1997e2={}){var _0x336461=a10_0x3fe72c;const _0xad986c=[],_0x10d885=Object['fromEntries'](Object[_0x336461(0x21b)](_0x1997e2)[_0x336461(0x222)](_0x4cfada=>[_0x4cfada[0x0][_0x336461(0x223)](),_0x4cfada[0x1]]));for(let _0x26ab78 of[_0x336461(0x1f2),'requesttime','token',_0x336461(0x1f3),_0x336461(0x20f)]){if(typeof _0x10d885[_0x26ab78]==_0x336461(0x212))throw new AnnError(ApiError_1['ApiError'][_0x336461(0x1ef)],{'message':'缺少头信息:'+_0x26ab78});_0xad986c[_0x336461(0x217)](_0x26ab78+'='+_0x10d885[_0x26ab78]);}if(Math['abs'](_0x10d885[_0x336461(0x1ee)])-Date[_0x336461(0x20d)]()>this['config'][_0x336461(0x214)])throw new AnnError(ApiError_1[_0x336461(0x1fd)][_0x336461(0x1fb)]);if(!this['config'][_0x336461(0x20c)][_0x10d885[_0x336461(0x1f2)]]||!this[_0x336461(0x205)][_0x336461(0x20c)][_0x10d885[_0x336461(0x1f2)]][_0x336461(0x206)]||!this['config'][_0x336461(0x20c)][_0x10d885[_0x336461(0x1f2)]][_0x336461(0x20f)])throw new AnnError(ApiError_1[_0x336461(0x1fd)]['HEADERS_DEVICE']);if(_0x10d885['token']&&_0x10d885[_0x336461(0x20f)]!=this[_0x336461(0x20f)](_0x10d885[_0x336461(0x1ff)],_0x10d885['device'],_0x10d885['logintime']))throw new AnnError(ApiError_1[_0x336461(0x1fd)][_0x336461(0x21e)]);return _0xad986c[_0x336461(0x217)](_0x336461(0x203)+this[_0x336461(0x205)][_0x336461(0x20c)][_0x10d885['device']]['secret']),(0x0,crypto_js_1['MD5'])(_0xad986c[_0x336461(0x1f6)]()[_0x336461(0x21a)](''))[_0x336461(0x219)]();}[a10_0x3fe72c(0x20f)](_0x460d53,_0x4d1d89,_0x213cf5=Date[a10_0x3fe72c(0x20d)]()){var _0x4597ad=a10_0x3fe72c,_0x211f67,_0x6df86e,_0x26de0d;if(!((_0x211f67=this['config'])===null||_0x211f67===void 0x0?void 0x0:_0x211f67[_0x4597ad(0x20c)][_0x4d1d89])||!((_0x26de0d=(_0x6df86e=this[_0x4597ad(0x205)])===null||_0x6df86e===void 0x0?void 0x0:_0x6df86e[_0x4597ad(0x20c)][_0x4d1d89])===null||_0x26de0d===void 0x0?void 0x0:_0x26de0d[_0x4597ad(0x20f)]))throw new AnnError(ApiError_1[_0x4597ad(0x1fd)][_0x4597ad(0x1f5)]);return(0x0,crypto_js_1[_0x4597ad(0x216)])(_0x460d53+(0x0,crypto_js_1[_0x4597ad(0x216)])(_0x213cf5+this['config']['devices'][_0x4d1d89]['checkcode'])['toString']())['toString']();}[a10_0x3fe72c(0x20e)](_0x54c783={}){var _0x105af9=a10_0x3fe72c;const _0x4441c1=Object[_0x105af9(0x1fc)](Object[_0x105af9(0x21b)](_0x54c783)['map'](_0xc131cf=>[_0xc131cf[0x0][_0x105af9(0x223)](),_0xc131cf[0x1]]));if(!(_0x4441c1===null||_0x4441c1===void 0x0?void 0x0:_0x4441c1[_0x105af9(0x210)]))throw new AnnError(ApiError_1[_0x105af9(0x1fd)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x4441c1===null||_0x4441c1===void 0x0?void 0x0:_0x4441c1[_0x105af9(0x210)])!=this[_0x105af9(0x209)](_0x4441c1))throw new AnnError(ApiError_1[_0x105af9(0x1fd)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x3fe72c(0x20a)])(a10_0x3fe72c(0x204)),__metadata(a10_0x3fe72c(0x211),Object)],ApiService['prototype'],a10_0x3fe72c(0x205),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1['Scope'])(decorator_1[a10_0x3fe72c(0x202)]['Singleton'])],ApiService),exports[a10_0x3fe72c(0x213)]=ApiService;
@@ -1 +1 @@
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
+ 'use strict';const a11_0x372bff=a11_0x3d92;(function(_0xd1651e,_0x20e509){const _0x4953c9=a11_0x3d92,_0x5c7314=_0xd1651e();while(!![]){try{const _0x468913=-parseInt(_0x4953c9(0x100))/0x1+-parseInt(_0x4953c9(0x110))/0x2+parseInt(_0x4953c9(0x129))/0x3*(parseInt(_0x4953c9(0x127))/0x4)+-parseInt(_0x4953c9(0x134))/0x5+parseInt(_0x4953c9(0x142))/0x6+-parseInt(_0x4953c9(0x13b))/0x7*(parseInt(_0x4953c9(0x12a))/0x8)+parseInt(_0x4953c9(0x113))/0x9*(parseInt(_0x4953c9(0x118))/0xa);if(_0x468913===_0x20e509)break;else _0x5c7314['push'](_0x5c7314['shift']());}catch(_0x326c10){_0x5c7314['push'](_0x5c7314['shift']());}}}(a11_0x30ec,0x45e19));function a11_0x30ec(){const _0x335509=['Provide','stringify','design:returntype','@midwayjs/core','cache-control','Param','__metadata','/apitest','path','request','prototype','method','config','563192IPTHdX','/index.html','design:type','36tDvEqE','routes','@midwayjs/decorator','decorate','content-type','1979470THaQrV','filepath','substring','push','ApitestService','readFileSync','summary','utf-8','Config','apitestmodule','ScopeEnum','ApitestStaticController','__decorate','../../public/','Environment','4ysxbpo','Request','1283748QplOJW','2143544KseOJu','Controller','/apiteststatic/*','isDevelopmentEnvironment','extname','../../public/index.html','__devices__','application/javascript;\x20charset=utf-8','design:paramtypes','object','1809305sMcswX','length','function','apidoc','prefix','metadata','existsSync','7BqJrCg','__apiList__','../helper/getRoutes','defineProperty','set','url','apitesthtml','1095030qyGeuj','route','Scope','join','Singleton','ctx','getRoutes','module','devices','__esModule','Get','replace','__param','MidwayEnvironmentService','anncicapi','apiteststatic','apitest','204576SxJGGm','Inject','/apiteststatic/'];a11_0x30ec=function(){return _0x335509;};return a11_0x30ec();}var __decorate=this&&this[a11_0x372bff(0x124)]||function(_0x56a226,_0x32049c,_0x4b9b89,_0x46b232){const _0x459508=a11_0x372bff;var _0x1c061c=arguments[_0x459508(0x135)],_0xcb1ade=_0x1c061c<0x3?_0x32049c:_0x46b232===null?_0x46b232=Object['getOwnPropertyDescriptor'](_0x32049c,_0x4b9b89):_0x46b232,_0x434fe4;if(typeof Reflect===_0x459508(0x133)&&typeof Reflect['decorate']==='function')_0xcb1ade=Reflect[_0x459508(0x116)](_0x56a226,_0x32049c,_0x4b9b89,_0x46b232);else{for(var _0x251d13=_0x56a226[_0x459508(0x135)]-0x1;_0x251d13>=0x0;_0x251d13--)if(_0x434fe4=_0x56a226[_0x251d13])_0xcb1ade=(_0x1c061c<0x3?_0x434fe4(_0xcb1ade):_0x1c061c>0x3?_0x434fe4(_0x32049c,_0x4b9b89,_0xcb1ade):_0x434fe4(_0x32049c,_0x4b9b89))||_0xcb1ade;}return _0x1c061c>0x3&&_0xcb1ade&&Object['defineProperty'](_0x32049c,_0x4b9b89,_0xcb1ade),_0xcb1ade;},__metadata=this&&this[a11_0x372bff(0x109)]||function(_0x337bff,_0x54deb5){const _0x2be181=a11_0x372bff;if(typeof Reflect===_0x2be181(0x133)&&typeof Reflect['metadata']===_0x2be181(0x136))return Reflect[_0x2be181(0x139)](_0x337bff,_0x54deb5);},__param=this&&this[a11_0x372bff(0x14e)]||function(_0x1ec48b,_0x2a9aae){return function(_0x47102d,_0x319905){_0x2a9aae(_0x47102d,_0x319905,_0x1ec48b);};};Object[a11_0x372bff(0x13e)](exports,a11_0x372bff(0x14b),{'value':!![]}),exports[a11_0x372bff(0x123)]=exports[a11_0x372bff(0x11c)]=void 0x0;const path_1=require(a11_0x372bff(0x10b)),fs_1=require('fs'),core_1=require(a11_0x372bff(0x106)),decorator_1=require(a11_0x372bff(0x115)),decorator_2=require(a11_0x372bff(0x115)),getRoutes_1=require(a11_0x372bff(0x13d));let ApitestService=class ApitestService{async[a11_0x372bff(0x137)](_0x41c29d){const _0x49bf2c=a11_0x372bff,_0x364aaa=(0x0,getRoutes_1[_0x49bf2c(0x148)])(_0x41c29d),_0x4959d9=[];for(let _0x2e4009 in _0x364aaa){for(let _0x1f28a3 in _0x364aaa[_0x2e4009][_0x49bf2c(0x114)]){let _0x31fed5=_0x364aaa[_0x2e4009][_0x49bf2c(0x114)][_0x1f28a3],_0x4e2584=[];for(let _0x409ac4 in _0x31fed5[_0x49bf2c(0x10c)]){_0x4e2584[_0x49bf2c(0x11b)](_0x31fed5[_0x49bf2c(0x10c)][_0x409ac4]);}_0x4959d9[_0x49bf2c(0x11b)]({'title':_0x364aaa[_0x2e4009][_0x49bf2c(0x11e)]+':'+_0x31fed5[_0x49bf2c(0x11e)],'prefix':_0x364aaa[_0x2e4009][_0x49bf2c(0x138)],'router':_0x31fed5[_0x49bf2c(0x143)],'method':_0x31fed5[_0x49bf2c(0x10e)],'describe':_0x31fed5['description']||'','filepath':_0x364aaa[_0x2e4009]['filepath']||'','request':_0x4e2584});}}const _0x5375f1=(0x0,path_1[_0x49bf2c(0x145)])(__dirname,_0x49bf2c(0x12f));return(0x0,fs_1['readFileSync'])(_0x5375f1,{'encoding':_0x49bf2c(0x11f)})['replace'](/__res__/g,_0x49bf2c(0x102))[_0x49bf2c(0x14d)](_0x49bf2c(0x13c),JSON[_0x49bf2c(0x104)](_0x4959d9))[_0x49bf2c(0x14d)](_0x49bf2c(0x130),JSON[_0x49bf2c(0x104)](this[_0x49bf2c(0x10f)][_0x49bf2c(0x14a)]));}};function a11_0x3d92(_0xd130be,_0x31eb9b){const _0x30ecf7=a11_0x30ec();return a11_0x3d92=function(_0x3d922e,_0x443c4){_0x3d922e=_0x3d922e-0xfe;let _0x51ccac=_0x30ecf7[_0x3d922e];return _0x51ccac;},a11_0x3d92(_0xd130be,_0x31eb9b);}__decorate([(0x0,decorator_2[a11_0x372bff(0x120)])(a11_0x372bff(0x150)),__metadata(a11_0x372bff(0x112),Object)],ApitestService['prototype'],a11_0x372bff(0x10f),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x372bff(0x103)])('apitest'),(0x0,decorator_2['Scope'])(decorator_2[a11_0x372bff(0x122)][a11_0x372bff(0x146)])],ApitestService),exports[a11_0x372bff(0x11c)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x372bff(0x141)](){const _0x25f393=a11_0x372bff;if(this[_0x25f393(0xff)]){const _0x4cbdae={'module':![]};return this['Environment'][_0x25f393(0x12d)]()&&(_0x4cbdae[_0x25f393(0x119)]=!![]),await this[_0x25f393(0x11c)][_0x25f393(0x137)](_0x4cbdae);}return'';}async[a11_0x372bff(0x121)](_0x52454c){const _0xb770d5=a11_0x372bff;if(this['apitest']){const _0x5658ba={'module':_0x52454c};return this[_0xb770d5(0x126)][_0xb770d5(0x12d)]()&&(_0x5658ba[_0xb770d5(0x119)]=!![]),await this[_0xb770d5(0x11c)][_0xb770d5(0x137)](_0x5658ba);}return'';}async[a11_0x372bff(0xfe)](){const _0x29ba3d=a11_0x372bff;if((0x0,path_1[_0x29ba3d(0x12e)])(this[_0x29ba3d(0x147)][_0x29ba3d(0x10c)]['url'])){var _0x54911f=(0x0,path_1[_0x29ba3d(0x145)])(__dirname,_0x29ba3d(0x125)+this[_0x29ba3d(0x147)][_0x29ba3d(0x10c)][_0x29ba3d(0x140)][_0x29ba3d(0x14d)](_0x29ba3d(0x102),'/'));if(_0x54911f[_0x29ba3d(0x11a)](_0x54911f[_0x29ba3d(0x135)]-0xb)!=_0x29ba3d(0x111)){this[_0x29ba3d(0x147)][_0x29ba3d(0x13f)](_0x29ba3d(0x107),'public,\x20max-age=604800');if((0x0,path_1[_0x29ba3d(0x12e)])(this[_0x29ba3d(0x147)]['request'][_0x29ba3d(0x140)])=='.js')this['ctx'][_0x29ba3d(0x13f)](_0x29ba3d(0x117),_0x29ba3d(0x131));else(0x0,path_1['extname'])(this[_0x29ba3d(0x147)][_0x29ba3d(0x10c)][_0x29ba3d(0x140)])=='.css'&&this[_0x29ba3d(0x147)][_0x29ba3d(0x13f)](_0x29ba3d(0x117),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x29ba3d(0x13a)])(_0x54911f)&&(0x0,fs_1[_0x29ba3d(0x11d)])(_0x54911f,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x372bff(0x112),Object)],ApitestStaticController['prototype'],a11_0x372bff(0x147),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x372bff(0x112),core_1[a11_0x372bff(0x14f)])],ApitestStaticController[a11_0x372bff(0x10d)],a11_0x372bff(0x126),void 0x0),__decorate([(0x0,decorator_2[a11_0x372bff(0x101)])(),__metadata(a11_0x372bff(0x112),ApitestService)],ApitestStaticController[a11_0x372bff(0x10d)],a11_0x372bff(0x11c),void 0x0),__decorate([(0x0,decorator_2['Config'])(a11_0x372bff(0xff)),__metadata(a11_0x372bff(0x112),Boolean)],ApitestStaticController[a11_0x372bff(0x10d)],a11_0x372bff(0xff),void 0x0),__decorate([(0x0,decorator_2[a11_0x372bff(0x120)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a11_0x372bff(0x10d)],'config',void 0x0),__decorate([(0x0,decorator_1[a11_0x372bff(0x14c)])(a11_0x372bff(0x10a)),__metadata(a11_0x372bff(0x112),Function),__metadata(a11_0x372bff(0x132),[]),__metadata(a11_0x372bff(0x105),Promise)],ApitestStaticController[a11_0x372bff(0x10d)],a11_0x372bff(0x141),null),__decorate([(0x0,decorator_1[a11_0x372bff(0x14c)])('/apitest-:module'),__param(0x0,(0x0,decorator_1[a11_0x372bff(0x108)])(a11_0x372bff(0x149))),__metadata(a11_0x372bff(0x112),Function),__metadata(a11_0x372bff(0x132),[String]),__metadata(a11_0x372bff(0x105),Promise)],ApitestStaticController['prototype'],a11_0x372bff(0x121),null),__decorate([(0x0,decorator_1[a11_0x372bff(0x14c)])(a11_0x372bff(0x12c)),__metadata('design:type',Function),__metadata(a11_0x372bff(0x132),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x372bff(0x10d)],a11_0x372bff(0xfe),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x372bff(0x12b)])('/'),(0x0,decorator_2[a11_0x372bff(0x144)])(decorator_2[a11_0x372bff(0x122)][a11_0x372bff(0x128)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
@@ -1 +1 @@
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
+ 'use strict';const a12_0x3ff420=a12_0x13ff;(function(_0x27d4c6,_0x198e86){const _0x121c62=a12_0x13ff,_0x52586d=_0x27d4c6();while(!![]){try{const _0x1b5131=-parseInt(_0x121c62(0x111))/0x1*(parseInt(_0x121c62(0x13e))/0x2)+parseInt(_0x121c62(0x103))/0x3+-parseInt(_0x121c62(0x135))/0x4*(parseInt(_0x121c62(0x12a))/0x5)+parseInt(_0x121c62(0x136))/0x6+-parseInt(_0x121c62(0x118))/0x7*(-parseInt(_0x121c62(0x13d))/0x8)+-parseInt(_0x121c62(0x129))/0x9*(-parseInt(_0x121c62(0x12e))/0xa)+-parseInt(_0x121c62(0x104))/0xb*(parseInt(_0x121c62(0x116))/0xc);if(_0x1b5131===_0x198e86)break;else _0x52586d['push'](_0x52586d['shift']());}catch(_0x50e97f){_0x52586d['push'](_0x52586d['shift']());}}}(a12_0x26ef,0xb8bf3));function a12_0x13ff(_0x209b9d,_0x34ce0e){const _0x26efe6=a12_0x26ef();return a12_0x13ff=function(_0x13ff90,_0x1873d0){_0x13ff90=_0x13ff90-0xf8;let _0x37d75d=_0x26efe6[_0x13ff90];return _0x37d75d;},a12_0x13ff(_0x209b9d,_0x34ce0e);}function a12_0x26ef(){const _0x38040a=['getAppDir','app','getCell','worksheets','get','design:type','3910856VwCasC','587866EfUMGH','Singleton','getOwnPropertyDescriptor','public/xlsx','__decorate','Scope','addRow','mkdirSync','.xlsx','endsWith','writeFile','rowCount','3323931gZtGbb','11QgcduO','__metadata','\x20is\x20read\x20fail','getRow','existsSync','value','xlsx','header','function','__esModule','keys','substring','ScopeEnum','2WvUzci','readFile','/public/xlsx/','replace','frozen','12477684BSnoCV','col','7vQIRjb','getWorksheet','App','decorate','prototype','/public/xlsx','findRows','length','push','defineProperty','cellCount','handler','Workbook','metadata','export','ExcelService','key','6876999TcIVlA','192805mFNupR','toString','parse','Api\x20Excel\x20Error:\x20','10pjCGGv','@midwayjs/decorator','columns','object','Provide','koa-send','startsWith','40iiYYFn','2454366zpMoEb'];a12_0x26ef=function(){return _0x38040a;};return a12_0x26ef();}var __decorate=this&&this[a12_0x3ff420(0xfb)]||function(_0x41df8c,_0x295d80,_0x193c7c,_0x241906){const _0x57c545=a12_0x3ff420;var _0x42f5fe=arguments[_0x57c545(0x11f)],_0x27d714=_0x42f5fe<0x3?_0x295d80:_0x241906===null?_0x241906=Object[_0x57c545(0xf9)](_0x295d80,_0x193c7c):_0x241906,_0x210e3b;if(typeof Reflect===_0x57c545(0x131)&&typeof Reflect[_0x57c545(0x11b)]==='function')_0x27d714=Reflect[_0x57c545(0x11b)](_0x41df8c,_0x295d80,_0x193c7c,_0x241906);else{for(var _0x5d42e2=_0x41df8c[_0x57c545(0x11f)]-0x1;_0x5d42e2>=0x0;_0x5d42e2--)if(_0x210e3b=_0x41df8c[_0x5d42e2])_0x27d714=(_0x42f5fe<0x3?_0x210e3b(_0x27d714):_0x42f5fe>0x3?_0x210e3b(_0x295d80,_0x193c7c,_0x27d714):_0x210e3b(_0x295d80,_0x193c7c))||_0x27d714;}return _0x42f5fe>0x3&&_0x27d714&&Object[_0x57c545(0x121)](_0x295d80,_0x193c7c,_0x27d714),_0x27d714;},__metadata=this&&this[a12_0x3ff420(0x105)]||function(_0x251a2b,_0x325320){const _0x4427c5=a12_0x3ff420;if(typeof Reflect===_0x4427c5(0x131)&&typeof Reflect[_0x4427c5(0x125)]===_0x4427c5(0x10c))return Reflect[_0x4427c5(0x125)](_0x251a2b,_0x325320);};Object[a12_0x3ff420(0x121)](exports,a12_0x3ff420(0x10d),{'value':!![]}),exports[a12_0x3ff420(0x127)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x3ff420(0x133)),decorator_1=require(a12_0x3ff420(0x12f));let ExcelService=class ExcelService{async[a12_0x3ff420(0x12c)](_0xdae5ea,_0x3f4f9e,_0xdff67a=[0x0]){const _0x5c5a95=a12_0x3ff420;var _0x1fb01d,_0x6de3ed;const _0x27595a=new exceljs[(_0x5c5a95(0x124))](),_0x16ab33=[];let _0x4fe8cb=_0xdae5ea[_0x5c5a95(0x114)](/(\\|\/)/g,'/')[_0x5c5a95(0x114)](/\/{2,}/g,'/');!(_0x4fe8cb===null||_0x4fe8cb===void 0x0?void 0x0:_0x4fe8cb[_0x5c5a95(0x134)]('/'))&&(_0x4fe8cb=this[_0x5c5a95(0x138)]['getAppDir']()+'/'+_0x4fe8cb);try{await _0x27595a[_0x5c5a95(0x10a)][_0x5c5a95(0x112)](_0x4fe8cb);}catch(_0x1daf47){return console['log'](_0x5c5a95(0x12d)+_0x4fe8cb+_0x5c5a95(0x106)),_0x16ab33;}for(const _0x1cccc8 of _0xdff67a){const _0xca8de7=lodash['isNumber'](_0x1cccc8)?((_0x1fb01d=_0x27595a[_0x5c5a95(0x13a)])===null||_0x1fb01d===void 0x0?void 0x0:_0x1fb01d[_0x1cccc8])||undefined:_0x27595a[_0x5c5a95(0x119)](_0x1cccc8);if(_0xca8de7){var _0x5d2541=0x1;const _0x2a8abd=_0xca8de7[_0x5c5a95(0x107)](0x1),_0x8cd67d=await new Promise(_0x354e55=>{const _0x2c0813={};_0x2a8abd['eachCell']((_0x46e104,_0x293fc9)=>{const _0x596607=a12_0x13ff;for(const _0x26447f of _0x3f4f9e){if(_0x46e104[_0x596607(0x109)]==_0x26447f['header'])_0x5d2541=0x2,_0x2c0813[_0x26447f[_0x596607(0x128)]]={'header':_0x46e104['col'],'handler':_0x26447f[_0x596607(0x123)]};else{if(!_0x2c0813[_0x26447f[_0x596607(0x128)]])try{const _0x5c2370=_0x2a8abd[_0x596607(0x139)](_0x26447f[_0x596607(0x10b)]);_0x5c2370&&(_0x2c0813[_0x26447f['key']]={'header':_0x5c2370[_0x596607(0x117)],'handler':_0x26447f[_0x596607(0x123)]});}catch{}}}_0x2a8abd[_0x596607(0x122)]==_0x293fc9&&_0x354e55(_0x2c0813);});});for(const _0x428d59 of _0xca8de7[_0x5c5a95(0x11e)](_0x5d2541,_0xca8de7[_0x5c5a95(0x102)])){const _0x34d6d6={};for(const _0x14c248 in _0x8cd67d){_0x8cd67d[_0x14c248]['header']&&(typeof((_0x6de3ed=_0x8cd67d[_0x14c248])===null||_0x6de3ed===void 0x0?void 0x0:_0x6de3ed['handler'])==_0x5c5a95(0x10c)?_0x34d6d6[_0x14c248]=_0x8cd67d[_0x14c248][_0x5c5a95(0x123)](_0x428d59['getCell'](lodash['trim'](''+_0x8cd67d[_0x14c248][_0x5c5a95(0x10b)],'\x20'))[_0x5c5a95(0x12b)]()):_0x34d6d6[_0x14c248]=_0x428d59[_0x5c5a95(0x139)](_0x8cd67d[_0x14c248][_0x5c5a95(0x10b)])[_0x5c5a95(0x12b)]());}Object[_0x5c5a95(0x10e)](_0x34d6d6)['length']>0x0&&_0x16ab33[_0x5c5a95(0x120)](_0x34d6d6);}}}return _0x16ab33;}async[a12_0x3ff420(0x126)](_0x113b49,_0x519626,_0x9e5e79,_0x1864ac=a12_0x3ff420(0xfa)){const _0x16f432=a12_0x3ff420;var _0x5d835c,_0x48c753;const _0x320586=new exceljs['Workbook'](),_0x3bd157={},_0x28403e=[],_0x4c424b=_0x320586['addWorksheet']('Sheet\x201',{'views':[{'state':_0x16f432(0x115),'xSplit':0x1}]});for(const _0x196d74 in _0x519626){_0x3bd157[_0x519626[_0x196d74][_0x16f432(0x128)]]=_0x519626[_0x196d74][_0x16f432(0x10b)],_0x28403e[_0x16f432(0x120)]({'header':_0x519626[_0x196d74][_0x16f432(0x10b)],'key':(_0x5d835c=_0x519626[_0x196d74])===null||_0x5d835c===void 0x0?void 0x0:_0x5d835c['key'][_0x16f432(0x114)](/\./g,'_')});}_0x4c424b[_0x16f432(0x130)]=_0x28403e;for(const _0x14a57d of _0x9e5e79){const _0x3f93f1={};for(const _0x1846c3 in _0x519626){typeof((_0x48c753=_0x519626[_0x1846c3])===null||_0x48c753===void 0x0?void 0x0:_0x48c753[_0x16f432(0x123)])=='function'?_0x3f93f1[_0x519626[_0x1846c3][_0x16f432(0x128)][_0x16f432(0x114)](/\./g,'_')]=await _0x519626[_0x1846c3][_0x16f432(0x123)](_0x14a57d):_0x3f93f1[_0x519626[_0x1846c3][_0x16f432(0x128)][_0x16f432(0x114)](/\./g,'_')]=lodash[_0x16f432(0x13b)](_0x14a57d,_0x519626[_0x1846c3][_0x16f432(0x128)],'');}_0x4c424b[_0x16f432(0xfd)](_0x3f93f1);}let _0x11ff9f='';const _0x4c7ffd=_0x113b49+'-'+lodash['random'](0x2710,0x1869f)+_0x16f432(0xff);if(_0x1864ac&&_0x1864ac[_0x16f432(0x134)]('/'))_0x11ff9f=_0x1864ac+'/'+_0x4c7ffd;else _0x1864ac&&!_0x1864ac[_0x16f432(0x134)]('/')&&!_0x1864ac[_0x16f432(0x134)]('\x5c')?_0x11ff9f=this[_0x16f432(0x138)][_0x16f432(0x137)]()+'/'+_0x1864ac+'/'+_0x4c7ffd:_0x11ff9f=this[_0x16f432(0x138)][_0x16f432(0x137)]()+_0x16f432(0x11d);return(_0x11ff9f[_0x16f432(0x100)]('/')||_0x11ff9f[_0x16f432(0x100)]('\x5c'))&&(_0x11ff9f=_0x11ff9f[_0x16f432(0x10f)](0x0,_0x11ff9f[_0x16f432(0x11f)]-0x1)),_0x11ff9f=_0x11ff9f['replace'](/(\\|\/)/g,'/')[_0x16f432(0x114)](/\/{2,}/g,'/'),!fs[_0x16f432(0x108)](_0x11ff9f)&&fs[_0x16f432(0xfe)](_0x11ff9f,{'recursive':!![]}),await _0x320586[_0x16f432(0x10a)][_0x16f432(0x101)]((_0x11ff9f+'/'+_0x4c7ffd)['replace'](/(\\|\/)/g,'/')[_0x16f432(0x114)](/\/{2,}/g,'/')),{'filename':_0x4c7ffd,'filepath':_0x11ff9f};}async['download'](_0x145c0,_0xcc8d13){const _0x2e5595=a12_0x3ff420;await koasend(_0x145c0,_0x2e5595(0x113)+_0xcc8d13);}};__decorate([(0x0,decorator_1[a12_0x3ff420(0x11a)])(),__metadata(a12_0x3ff420(0x13c),Object)],ExcelService[a12_0x3ff420(0x11c)],a12_0x3ff420(0x138),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x3ff420(0x132)])(),(0x0,decorator_1[a12_0x3ff420(0xfc)])(decorator_1[a12_0x3ff420(0x110)][a12_0x3ff420(0xf8)])],ExcelService),exports[a12_0x3ff420(0x127)]=ExcelService;
@@ -2,6 +2,7 @@ import { ValidatorOptions } from "@anncic-api/validator";
2
2
  import { MiddlewareParamArray } from '@midwayjs/decorator';
3
3
  export declare const ACTION_KEY = "anncic-api:action";
4
4
  export declare const ACTION_ROUTE_KEY = "anncic-api:action:route";
5
+ export declare const APPSCONFIG_KEY = "anncic-api:apps:config";
5
6
  export interface ActionOption {
6
7
  prefix?: string;
7
8
  alias?: string[];
@@ -21,3 +22,5 @@ export interface ActionApiOption {
21
22
  middlewareIgnore?: MiddlewareParamArray;
22
23
  ignoreGlobalPrefix?: boolean;
23
24
  }
25
+ export declare class AppsConfigTmp {
26
+ }
@@ -1 +1 @@
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
+ 'use strict';var a13_0x4ed95e=a13_0xb576;function a13_0xb576(_0x5dfef8,_0x3df2b1){var _0x53e5a1=a13_0x53e5();return a13_0xb576=function(_0xb57691,_0x30a6d0){_0xb57691=_0xb57691-0x157;var _0x3f6c95=_0x53e5a1[_0xb57691];return _0x3f6c95;},a13_0xb576(_0x5dfef8,_0x3df2b1);}function a13_0x53e5(){var _0x5f4ffb=['2518uyilBf','ACTION_ROUTE_KEY','437KboSsh','anncic-api:apps:config','APPSCONFIG_KEY','674528dfXaAe','2198496KKgrew','defineProperty','365466NvcxZA','14SeGKhx','752vzvXZB','ACTION_KEY','AppsConfigTmp','31068cpJeHo','anncic-api:action:route','20kfTCkR','14659546UFzrZK','5110740YsEmxq'];a13_0x53e5=function(){return _0x5f4ffb;};return a13_0x53e5();}(function(_0x1c50df,_0x12ef94){var _0x1d89ca=a13_0xb576,_0x21f87d=_0x1c50df();while(!![]){try{var _0xac4383=-parseInt(_0x1d89ca(0x158))/0x1*(-parseInt(_0x1d89ca(0x168))/0x2)+-parseInt(_0x1d89ca(0x15c))/0x3+parseInt(_0x1d89ca(0x15b))/0x4*(-parseInt(_0x1d89ca(0x165))/0x5)+-parseInt(_0x1d89ca(0x15e))/0x6*(-parseInt(_0x1d89ca(0x15f))/0x7)+parseInt(_0x1d89ca(0x160))/0x8*(parseInt(_0x1d89ca(0x163))/0x9)+-parseInt(_0x1d89ca(0x167))/0xa+parseInt(_0x1d89ca(0x166))/0xb;if(_0xac4383===_0x12ef94)break;else _0x21f87d['push'](_0x21f87d['shift']());}catch(_0x4a5597){_0x21f87d['push'](_0x21f87d['shift']());}}}(a13_0x53e5,0x64479));Object[a13_0x4ed95e(0x15d)](exports,'__esModule',{'value':!![]}),exports[a13_0x4ed95e(0x162)]=exports['APPSCONFIG_KEY']=exports[a13_0x4ed95e(0x157)]=exports[a13_0x4ed95e(0x161)]=void 0x0,exports[a13_0x4ed95e(0x161)]='anncic-api:action',exports[a13_0x4ed95e(0x157)]=a13_0x4ed95e(0x164),exports[a13_0x4ed95e(0x15a)]=a13_0x4ed95e(0x159);class AppsConfigTmp{}exports[a13_0x4ed95e(0x162)]=AppsConfigTmp;
@@ -1 +1 @@
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;
1
+ 'use strict';var a14_0x137c33=a14_0x361a;(function(_0x134915,_0xdbceec){var _0x52c8c6=a14_0x361a,_0x4b9a67=_0x134915();while(!![]){try{var _0x51fa71=parseInt(_0x52c8c6(0x19a))/0x1+-parseInt(_0x52c8c6(0x198))/0x2+parseInt(_0x52c8c6(0x19b))/0x3*(parseInt(_0x52c8c6(0x1b9))/0x4)+parseInt(_0x52c8c6(0x1a9))/0x5+-parseInt(_0x52c8c6(0x1ba))/0x6*(parseInt(_0x52c8c6(0x196))/0x7)+-parseInt(_0x52c8c6(0x1a8))/0x8+-parseInt(_0x52c8c6(0x1b3))/0x9*(-parseInt(_0x52c8c6(0x1a3))/0xa);if(_0x51fa71===_0xdbceec)break;else _0x4b9a67['push'](_0x4b9a67['shift']());}catch(_0x3533e6){_0x4b9a67['push'](_0x4b9a67['shift']());}}}(a14_0x5df1,0x395bf));var __decorate=this&&this[a14_0x137c33(0x1ae)]||function(_0x452083,_0x1e4799,_0x9af361,_0x7530f6){var _0x5b65ba=a14_0x137c33,_0x527953=arguments['length'],_0x2fe72a=_0x527953<0x3?_0x1e4799:_0x7530f6===null?_0x7530f6=Object[_0x5b65ba(0x19f)](_0x1e4799,_0x9af361):_0x7530f6,_0x2593df;if(typeof Reflect===_0x5b65ba(0x19d)&&typeof Reflect[_0x5b65ba(0x199)]===_0x5b65ba(0x1aa))_0x2fe72a=Reflect[_0x5b65ba(0x199)](_0x452083,_0x1e4799,_0x9af361,_0x7530f6);else{for(var _0x6a9632=_0x452083['length']-0x1;_0x6a9632>=0x0;_0x6a9632--)if(_0x2593df=_0x452083[_0x6a9632])_0x2fe72a=(_0x527953<0x3?_0x2593df(_0x2fe72a):_0x527953>0x3?_0x2593df(_0x1e4799,_0x9af361,_0x2fe72a):_0x2593df(_0x1e4799,_0x9af361))||_0x2fe72a;}return _0x527953>0x3&&_0x2fe72a&&Object[_0x5b65ba(0x1af)](_0x1e4799,_0x9af361,_0x2fe72a),_0x2fe72a;},__metadata=this&&this[a14_0x137c33(0x1a0)]||function(_0x1633b9,_0x507f4c){var _0x18ec51=a14_0x137c33;if(typeof Reflect==='object'&&typeof Reflect[_0x18ec51(0x1a1)]===_0x18ec51(0x1aa))return Reflect[_0x18ec51(0x1a1)](_0x1633b9,_0x507f4c);};Object['defineProperty'](exports,a14_0x137c33(0x19c),{'value':!![]}),exports[a14_0x137c33(0x1a2)]=void 0x0;const validator_1=require(a14_0x137c33(0x194));function a14_0x5df1(){var _0x4e80c7=['integer','string','__decorate','defineProperty','是否倒序','第一页为1,第二页为2','valid','9EngMbT','1:是;0:否','Rule','_page','prototype','min','974804WmJDID','622212QCkAxQ','@anncic-api/validator','number','28JaiREZ','design:type','402540OIUdsD','decorate','18803KeNHVA','3dzsrse','__esModule','object','_order','getOwnPropertyDescriptor','__metadata','metadata','PageDTO','4907710WnsgTd','_isreverse','trim','分页数量','RuleType','1222720Ynixly','1252930YHxhHn','function','排序方式'];a14_0x5df1=function(){return _0x4e80c7;};return a14_0x5df1();}function a14_0x361a(_0x596372,_0x29fd8d){var _0x5df129=a14_0x5df1();return a14_0x361a=function(_0x361a97,_0x307a9e){_0x361a97=_0x361a97-0x194;var _0x5dade6=_0x5df129[_0x361a97];return _0x5dade6;},a14_0x361a(_0x596372,_0x29fd8d);}class PageDTO{}__decorate([(0x0,validator_1[a14_0x137c33(0x1b5)])('分页',validator_1[a14_0x137c33(0x1a7)][a14_0x137c33(0x195)]()[a14_0x137c33(0x1ac)]()[a14_0x137c33(0x1b8)](0x1),a14_0x137c33(0x1b1)),__metadata(a14_0x137c33(0x197),Number)],PageDTO[a14_0x137c33(0x1b7)],a14_0x137c33(0x1b6),void 0x0),__decorate([(0x0,validator_1[a14_0x137c33(0x1b5)])(a14_0x137c33(0x1a6),validator_1[a14_0x137c33(0x1a7)][a14_0x137c33(0x195)]()[a14_0x137c33(0x1ac)]()['min'](0x1)),__metadata(a14_0x137c33(0x197),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x137c33(0x1b5)])(a14_0x137c33(0x1ab),validator_1['RuleType'][a14_0x137c33(0x1ad)]()[a14_0x137c33(0x1a5)]()),__metadata('design:type',String)],PageDTO['prototype'],a14_0x137c33(0x19e),void 0x0),__decorate([(0x0,validator_1[a14_0x137c33(0x1b5)])(a14_0x137c33(0x1b0),validator_1[a14_0x137c33(0x1a7)]['number']()[a14_0x137c33(0x1ac)]()[a14_0x137c33(0x1b2)](0x0,0x1),a14_0x137c33(0x1b4)),__metadata(a14_0x137c33(0x197),Number)],PageDTO[a14_0x137c33(0x1b7)],a14_0x137c33(0x1a4),void 0x0),exports[a14_0x137c33(0x1a2)]=PageDTO;
package/index.d.ts CHANGED
@@ -1,16 +1,21 @@
1
1
  /// <reference types="@anncic-api/core" />
2
2
  export * from './dist/index';
3
3
 
4
-
5
4
  declare module '@midwayjs/koa/dist/interface' {
6
- interface Context{
5
+ interface Context {
7
6
  app: Application;
8
-
9
- when(key: string, callbal: (value: any) => {}): void;
7
+
8
+ when(key: string, callbal: (value: any) => {}): void;
10
9
  only(keys: Array<Array<any>>): { [key: string]: any };
11
10
  input(key?: string, defval?: any): any | { [key: string]: any } | any[];
12
11
 
13
12
  ok(data?: any, extra?: any, code?: number): { code: number, data: any, extra: any };
14
13
  err(msg: string, extra?: any, code?: number): { code: number, extra: any, msg: string };
15
14
  }
15
+ }
16
+
17
+ declare global {
18
+ export function getAppsConfig(appName?: string): {
19
+ [key: string]: any;
20
+ };
16
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anncic-api",
3
- "version": "1.1.10",
3
+ "version": "1.1.13",
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.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",
20
+ "@anncic-api/cache": "^1.1.13",
21
+ "@anncic-api/core": "^1.1.13",
22
+ "@anncic-api/event": "^1.1.13",
23
+ "@anncic-api/typeorm": "^1.1.13",
24
+ "@anncic-api/validator": "^1.1.13",
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.10",
32
+ "anncic-apihelper": "^1.1.13",
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": "dc48f123829af47e61c70a523fcd1c35e79e68e3"
44
+ "gitHead": "a0dfeba8612c37f13c4aa2f80dd718d761326c51"
45
45
  }
package/public/config.js CHANGED
@@ -3,7 +3,7 @@ var headerList = [
3
3
  "key": 'Token'
4
4
  , "type": 'int'
5
5
  , "title": 'Token'
6
- , "desc": '当前用户Token,登录后可获得。可直接用ID'
6
+ , "description": '当前用户Token,登录后可获得。可直接用ID'
7
7
  , "required": true
8
8
  , "default": "1"
9
9
  , "click": null
@@ -12,7 +12,7 @@ var headerList = [
12
12
  "key": 'Device'
13
13
  , "type": 'select'
14
14
  , "title": '设备类型'
15
- , "desc": '全大写的设备类型'
15
+ , "description": '全大写的设备类型'
16
16
  , "required": true
17
17
  , "default": "ADMIN"
18
18
  , "click": null
@@ -21,7 +21,7 @@ var headerList = [
21
21
  "key": 'Logintime'
22
22
  , "type": 'string'
23
23
  , "title": 'Logintime'
24
- , "desc": '登录时间,时间戳,单位:秒,数据来自服务器'
24
+ , "description": '登录时间,时间戳,单位:秒,数据来自服务器'
25
25
  , "required": true
26
26
  , "default": ""
27
27
  , "click": function () {
@@ -32,7 +32,7 @@ var headerList = [
32
32
  "key": 'Checkcode'
33
33
  , "type": 'string'
34
34
  , "title": 'Checkcode'
35
- , "desc": 'Token和Logintime组合加密后的产物,用于进行用户信息加密。数据来自服务器'
35
+ , "description": 'Token和Logintime组合加密后的产物,用于进行用户信息加密。数据来自服务器'
36
36
  , "required": true
37
37
  , "default": ""
38
38
  , "click": function () {
@@ -45,7 +45,7 @@ var headerList = [
45
45
  "key": 'Requesttime'
46
46
  , "type": 'string'
47
47
  , "title": 'Requesttime'
48
- , "desc": '请求时的时间戳,单位:秒'
48
+ , "description": '请求时的时间戳,单位:秒'
49
49
  , "required": true
50
50
  , "default": ""
51
51
  , "click": function () {
@@ -56,7 +56,7 @@ var headerList = [
56
56
  "key": 'Signature'
57
57
  , "type": 'string'
58
58
  , "title": '接口加密校验'
59
- , "desc": '取头信息里Device,Requesttime,Token,Logintime,Checkcode \n每个都使用key=value(空则空字符串)格式组合成字符串然后放入同一个数组 \n 并放入私钥字符串后自然排序 \n 连接为字符串后进行MD5加密,获得Signature \n 将Signature也放入头信息,进行传输。'
59
+ , "description": '取头信息里Device,Requesttime,Token,Logintime,Checkcode \n每个都使用key=value(空则空字符串)格式组合成字符串然后放入同一个数组 \n 并放入私钥字符串后自然排序 \n 连接为字符串后进行MD5加密,获得Signature \n 将Signature也放入头信息,进行传输。'
60
60
  , "required": true
61
61
  , "default": ""
62
62
  , "click": function () {