anncic-api 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x285f(){var _0x5bf425=['default','name','2lPgKUQ','872373jflwJZ','json','xml','1074310NIJZpW','13QFBtco','20mb','310WYBgqI','dhauo1234420123gg3234901','4yhiysq','zhiulanuiy7892387985hnoi','13460604naEXrS','500124kvtpTQ','182842NqctZa','395100UkZNdE','7Ofsulw','text','appDir','56gzClND','333005hnshya','__esModule'];a0_0x285f=function(){return _0x5bf425;};return a0_0x285f();}var a0_0x2643f6=a0_0x275a;function a0_0x275a(_0x3975dc,_0x156dee){var _0x285fd0=a0_0x285f();return a0_0x275a=function(_0x275acd,_0x310eb0){_0x275acd=_0x275acd-0xbd;var _0x291a31=_0x285fd0[_0x275acd];return _0x291a31;},a0_0x275a(_0x3975dc,_0x156dee);}(function(_0x42975a,_0x470c26){var _0x46ca8f=a0_0x275a,_0x15c12f=_0x42975a();while(!![]){try{var _0x5da858=-parseInt(_0x46ca8f(0xc6))/0x1*(-parseInt(_0x46ca8f(0xca))/0x2)+-parseInt(_0x46ca8f(0xcb))/0x3*(-parseInt(_0x46ca8f(0xd3))/0x4)+parseInt(_0x46ca8f(0xce))/0x5+-parseInt(_0x46ca8f(0xbf))/0x6*(parseInt(_0x46ca8f(0xc2))/0x7)+parseInt(_0x46ca8f(0xc5))/0x8*(parseInt(_0x46ca8f(0xc1))/0x9)+parseInt(_0x46ca8f(0xd1))/0xa*(parseInt(_0x46ca8f(0xc0))/0xb)+-parseInt(_0x46ca8f(0xbe))/0xc*(parseInt(_0x46ca8f(0xcf))/0xd);if(_0x5da858===_0x470c26)break;else _0x15c12f['push'](_0x15c12f['shift']());}catch(_0x136298){_0x15c12f['push'](_0x15c12f['shift']());}}}(a0_0x285f,0x6f5e9));Object['defineProperty'](exports,a0_0x2643f6(0xc7),{'value':!![]}),exports[a0_0x2643f6(0xc8)]=_0x476f8d=>{var _0x4a5229=a0_0x2643f6;return{'apitest':!![],'keys':_0x476f8d[_0x4a5229(0xc9)],'anncicapi':{'timeout':0x1388,'password':_0x4a5229(0xbd),'devices':{'DEFAULT':{'secret':_0x4a5229(0xd2),'checkcode':_0x4a5229(0xd2)}}},'bodyParser':{'enableTypes':[_0x4a5229(0xcc),'form',_0x4a5229(0xc3),_0x4a5229(0xcd)],'formLimit':_0x4a5229(0xd0),'jsonLimit':'20mb','textLimit':_0x4a5229(0xd0),'xmlLimit':_0x4a5229(0xd0)},'upload':{'tmpdir':_0x476f8d[_0x4a5229(0xc4)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x474fbd=a1_0x5e94;(function(_0x5b922a,_0x5b164f){var _0x5ea8b9=a1_0x5e94,_0x26c031=_0x5b922a();while(!![]){try{var _0x119750=parseInt(_0x5ea8b9(0x17d))/0x1+-parseInt(_0x5ea8b9(0x181))/0x2+parseInt(_0x5ea8b9(0x180))/0x3+parseInt(_0x5ea8b9(0x183))/0x4*(-parseInt(_0x5ea8b9(0x17e))/0x5)+-parseInt(_0x5ea8b9(0x187))/0x6+-parseInt(_0x5ea8b9(0x185))/0x7+-parseInt(_0x5ea8b9(0x186))/0x8*(-parseInt(_0x5ea8b9(0x182))/0x9);if(_0x119750===_0x5b164f)break;else _0x26c031['push'](_0x26c031['shift']());}catch(_0x43bb8e){_0x26c031['push'](_0x26c031['shift']());}}}(a1_0x4ced,0xe1bef));function a1_0x4ced(){var _0x575e2b=['10968195vbIDrQ','1350424xNRinq','4929654xnzQhV','107453bocwiq','3356695TZSyYV','__esModule','5205900BsYXiJ','3481468zhslpY','207KWUozo','4ufIzAn','default'];a1_0x4ced=function(){return _0x575e2b;};return a1_0x4ced();}function a1_0x5e94(_0x44135d,_0x391334){var _0x4ced25=a1_0x4ced();return a1_0x5e94=function(_0x5e9476,_0x44cf01){_0x5e9476=_0x5e9476-0x17d;var _0x2b94a3=_0x4ced25[_0x5e9476];return _0x2b94a3;},a1_0x5e94(_0x44135d,_0x391334);}Object['defineProperty'](exports,a1_0x474fbd(0x17f),{'value':!![]}),exports[a1_0x474fbd(0x184)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x53c0b8=a2_0x452a;(function(_0x1c631e,_0x1a39b9){const _0x42bdf5=a2_0x452a,_0x1f68ff=_0x1c631e();while(!![]){try{const _0x13f9f9=-parseInt(_0x42bdf5(0x130))/0x1+-parseInt(_0x42bdf5(0x166))/0x2+-parseInt(_0x42bdf5(0x134))/0x3+-parseInt(_0x42bdf5(0x13d))/0x4+-parseInt(_0x42bdf5(0x110))/0x5+parseInt(_0x42bdf5(0x135))/0x6+-parseInt(_0x42bdf5(0x14f))/0x7*(-parseInt(_0x42bdf5(0x11e))/0x8);if(_0x13f9f9===_0x1a39b9)break;else _0x1f68ff['push'](_0x1f68ff['shift']());}catch(_0x265305){_0x1f68ff['push'](_0x1f68ff['shift']());}}}(a2_0x3508,0x73e3a));var __decorate=this&&this[a2_0x53c0b8(0x152)]||function(_0x5b959d,_0x15edaa,_0x26166b,_0x5400e2){const _0x1d6a95=a2_0x53c0b8;var _0x5140a8=arguments['length'],_0x246192=_0x5140a8<0x3?_0x15edaa:_0x5400e2===null?_0x5400e2=Object[_0x1d6a95(0x133)](_0x15edaa,_0x26166b):_0x5400e2,_0x398e5c;if(typeof Reflect===_0x1d6a95(0x114)&&typeof Reflect[_0x1d6a95(0x131)]==='function')_0x246192=Reflect['decorate'](_0x5b959d,_0x15edaa,_0x26166b,_0x5400e2);else{for(var _0x129ebc=_0x5b959d[_0x1d6a95(0x13b)]-0x1;_0x129ebc>=0x0;_0x129ebc--)if(_0x398e5c=_0x5b959d[_0x129ebc])_0x246192=(_0x5140a8<0x3?_0x398e5c(_0x246192):_0x5140a8>0x3?_0x398e5c(_0x15edaa,_0x26166b,_0x246192):_0x398e5c(_0x15edaa,_0x26166b))||_0x246192;}return _0x5140a8>0x3&&_0x246192&&Object['defineProperty'](_0x15edaa,_0x26166b,_0x246192),_0x246192;},__metadata=this&&this[a2_0x53c0b8(0x108)]||function(_0x2c4948,_0x49511c){const _0x3e428f=a2_0x53c0b8;if(typeof Reflect===_0x3e428f(0x114)&&typeof Reflect['metadata']===_0x3e428f(0x12c))return Reflect['metadata'](_0x2c4948,_0x49511c);};Object[a2_0x53c0b8(0x13f)](exports,'__esModule',{'value':!![]}),exports[a2_0x53c0b8(0x111)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x53c0b8(0x109)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x53c0b8(0x10f)),fs=require('fs'),koa=require(a2_0x53c0b8(0x140)),i18n=require(a2_0x53c0b8(0x14b)),upload=require(a2_0x53c0b8(0x15a)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x53c0b8(0x10d)),ConfigDefault=require(a2_0x53c0b8(0x12f)),ConfigProduction=require(a2_0x53c0b8(0x15b)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x53c0b8(0x154)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x53c0b8(0x123)),anncicValidator=require(a2_0x53c0b8(0x144)),anncicHelper=require(a2_0x53c0b8(0x13a));function a2_0x3508(){const _0x4aa806=['key','upload','__metadata','./exception/ApiError','body','dir','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/cross-domain','target','./types/action','1774310frBuFx','CustomConfiguration','environment','isNull','object','keys','headers','anncicapi','getConfiguration','method','ApiError','input','Anncic-api\x20static-file\x20:\x20mkdir\x20','isArray','1058072mSHuOU','query','dirs','application','ApiService','@anncic-api/typeorm','tmpdir','handler','isFunction','isString','getAsync','request','forEach','defineProperties','function','isClass','proceed','./config/config.default','909061GQcYPE','decorate','registerMethodHandler','getOwnPropertyDescriptor','1690602czEqJg','3035658mJsfJC','_matchedRoute','onReady','staticFile','devices','anncic-apihelper','length','MidwayEnvironmentService','368948qCyQZP','hanlderApplications','defineProperty','@midwayjs/koa','Inject','toLowerCase','apimit','@anncic-api/validator','koa','Types','MidwayDecoratorService','intercept','defaultsDeep','log','@midwayjs/i18n','requestContext','checkConfigKeys','MidwayApplicationManager','133AreMSH','mkdirSync','handlerActionRoute','__decorate','MidwayConfigService','@anncic-api/cache','design:type','decorator','DEFAULT','anncic-api','prototype','@midwayjs/upload','./config/config.production','REQUEST_OBJ_CTX_KEY','string','checksign','bodyXml','HEADERS_SIGNATURE','context','device','args','getApplications','config','1248976XqpvBp','get','existsSync'];a2_0x3508=function(){return _0x4aa806;};return a2_0x3508();}let CustomConfiguration=class CustomConfiguration{async[a2_0x53c0b8(0x137)](){const _0x83f40d=a2_0x53c0b8;await this['filterConfig'](),await this[_0x83f40d(0x14d)](),await this[_0x83f40d(0x151)](),await this[_0x83f40d(0x13e)]();}async[a2_0x53c0b8(0x14d)](){}async[a2_0x53c0b8(0x151)](){const _0x18dbbe=a2_0x53c0b8,_0x373654=this['config']['getConfiguration']();this[_0x18dbbe(0x156)][_0x18dbbe(0x132)](action_1['ACTION_ROUTE_KEY'],_0x461955=>{const _0x58681d=_0x461955['metadata'];return{'before':async _0x181054=>{const _0x2faabf=a2_0x452a;var _0x2a61f7,_0x360f19;const _0x26dce4=(_0x2a61f7=_0x181054===null||_0x181054===void 0x0?void 0x0:_0x181054[_0x2faabf(0x10e)])===null||_0x2a61f7===void 0x0?void 0x0:_0x2a61f7[core_2[_0x2faabf(0x15c)]];if(_0x26dce4&&(_0x58681d===null||_0x58681d===void 0x0?void 0x0:_0x58681d[_0x2faabf(0x143)])){if(!this['ApiService'][_0x2faabf(0x15e)]((_0x360f19=_0x26dce4===null||_0x26dce4===void 0x0?void 0x0:_0x26dce4[_0x2faabf(0x129)])===null||_0x360f19===void 0x0?void 0x0:_0x360f19[_0x2faabf(0x116)]))throw new AnnError(ApiError_1[_0x2faabf(0x11a)][_0x2faabf(0x160)]);}},'around':async _0x4946c9=>{const _0x5cc773=a2_0x452a;var _0x1289f3,_0x474f0c,_0x2c1b7c,_0x1aa732,_0x2b8f89;const _0x1520cf=(_0x1289f3=_0x4946c9===null||_0x4946c9===void 0x0?void 0x0:_0x4946c9[_0x5cc773(0x10e)])===null||_0x1289f3===void 0x0?void 0x0:_0x1289f3[core_2[_0x5cc773(0x15c)]];if(_0x1520cf&&(_0x58681d===null||_0x58681d===void 0x0?void 0x0:_0x58681d[_0x5cc773(0x143)])){if(((_0x474f0c=_0x1520cf[_0x5cc773(0x116)])===null||_0x474f0c===void 0x0?void 0x0:_0x474f0c[_0x5cc773(0x162)])&&((_0x2b8f89=(_0x1aa732=(_0x2c1b7c=_0x373654===null||_0x373654===void 0x0?void 0x0:_0x373654['anncicapi'])===null||_0x2c1b7c===void 0x0?void 0x0:_0x2c1b7c[_0x5cc773(0x139)])===null||_0x1aa732===void 0x0?void 0x0:_0x1aa732[_0x1520cf[_0x5cc773(0x116)][_0x5cc773(0x162)]])===null||_0x2b8f89===void 0x0?void 0x0:_0x2b8f89[_0x5cc773(0x148)])){const _0x1c24cb=Array[_0x5cc773(0x11d)](_0x373654['anncicapi']['devices'][_0x1520cf[_0x5cc773(0x116)][_0x5cc773(0x162)]][_0x5cc773(0x148)])?_0x373654['anncicapi'][_0x5cc773(0x139)][_0x1520cf[_0x5cc773(0x116)][_0x5cc773(0x162)]][_0x5cc773(0x148)]:[_0x373654[_0x5cc773(0x117)][_0x5cc773(0x139)][_0x1520cf[_0x5cc773(0x116)][_0x5cc773(0x162)]][_0x5cc773(0x148)]];for(const _0x1d6b17 of _0x1c24cb){if(core_1[_0x5cc773(0x146)][_0x5cc773(0x12d)](_0x1d6b17)||typeof _0x1d6b17==_0x5cc773(0x15d)){const _0x40a341=await _0x1520cf[_0x5cc773(0x14c)][_0x5cc773(0x128)](_0x1d6b17);typeof(_0x40a341===null||_0x40a341===void 0x0?void 0x0:_0x40a341['handler'])==_0x5cc773(0x12c)&&await _0x40a341[_0x5cc773(0x125)](typeof(_0x1520cf===null||_0x1520cf===void 0x0?void 0x0:_0x1520cf[_0x5cc773(0x119)])=='string'&&(_0x1520cf===null||_0x1520cf===void 0x0?void 0x0:_0x1520cf['_matchedRoute'])?_0x1520cf[_0x5cc773(0x119)][_0x5cc773(0x142)]()+'@'+(_0x1520cf===null||_0x1520cf===void 0x0?void 0x0:_0x1520cf[_0x5cc773(0x136)]):undefined,_0x1520cf,_0x58681d);}else core_1[_0x5cc773(0x146)][_0x5cc773(0x126)](_0x1d6b17)&&await _0x1d6b17(typeof(_0x1520cf===null||_0x1520cf===void 0x0?void 0x0:_0x1520cf[_0x5cc773(0x119)])=='string'&&(_0x1520cf===null||_0x1520cf===void 0x0?void 0x0:_0x1520cf[_0x5cc773(0x136)])?_0x1520cf[_0x5cc773(0x119)][_0x5cc773(0x142)]()+'@'+(_0x1520cf===null||_0x1520cf===void 0x0?void 0x0:_0x1520cf['_matchedRoute']):undefined,_0x1520cf,_0x58681d);}}}return await _0x4946c9[_0x5cc773(0x12e)](..._0x4946c9[_0x5cc773(0x163)]);},'afterThrow':(_0x1916ce,_0x2db620)=>{throw _0x2db620;}};});}async[a2_0x53c0b8(0x13e)](){const _0x5198af=a2_0x53c0b8;this[_0x5198af(0x121)][_0x5198af(0x164)]([_0x5198af(0x145)])[_0x5198af(0x12a)](_0x1e96a9=>{const _0x393cdc=_0x5198af;(_0x1e96a9===null||_0x1e96a9===void 0x0?void 0x0:_0x1e96a9[_0x393cdc(0x161)])&&Object[_0x393cdc(0x12b)](_0x1e96a9[_0x393cdc(0x161)],{'ok':{'value':function(_0x1524ad,_0x4d4184,_0x1c93bd=0x0){return{'code':_0x1c93bd,'data':_0x1524ad,'extra':_0x4d4184};}},'input':{'value':function(_0xf6e587,_0x53f08b){const _0x1146d1=_0x393cdc;var _0x13595f;const _0x18b077=lodash[_0x1146d1(0x149)]({},this[_0x1146d1(0x129)]['body']||this[_0x1146d1(0x129)][((_0x13595f=config===null||config===void 0x0?void 0x0:config[_0x1146d1(0x15f)])===null||_0x13595f===void 0x0?void 0x0:_0x13595f[_0x1146d1(0x106)])||_0x1146d1(0x10a)]||{},this[_0x1146d1(0x129)][_0x1146d1(0x11f)]||{});return _0xf6e587?lodash[_0x1146d1(0x167)](_0x18b077,_0xf6e587,_0x53f08b):_0x18b077;}},'when':{'value':async function(_0x27c113,_0x249604){const _0x4a72fe=_0x393cdc,_0xa69750=this[_0x4a72fe(0x11b)](_0x27c113,null);if(!lodash[_0x4a72fe(0x113)](_0xa69750))return await _0x249604(_0xa69750);}},'only':{'value':function(_0x510a7a){const _0x37a3d3=_0x393cdc,_0x3a9dd3={};for(let _0x417b71=0x0;_0x417b71<_0x510a7a[_0x37a3d3(0x13b)];_0x417b71++){lodash['isArray'](_0x510a7a[_0x417b71])&&_0x510a7a[_0x417b71][_0x37a3d3(0x13b)]>0x0&&lodash[_0x37a3d3(0x127)](_0x510a7a[_0x417b71][0x0])&&(_0x3a9dd3[_0x510a7a[_0x417b71][0x0]]=this[_0x37a3d3(0x11b)](_0x510a7a[_0x417b71][0x0],_0x510a7a[_0x417b71]['length']>0x1?_0x510a7a[_0x417b71][0x1]:null));}return _0x3a9dd3;}}});});}async['filterConfig'](){const _0x1aa524=a2_0x53c0b8;var _0x2f9b71,_0x2bad69,_0x401c1b,_0x463bcd,_0x2639ba,_0x44b62e;const _0x26e9a4=this[_0x1aa524(0x165)][_0x1aa524(0x118)]();((_0x2bad69=(_0x2f9b71=_0x26e9a4===null||_0x26e9a4===void 0x0?void 0x0:_0x26e9a4[_0x1aa524(0x117)])===null||_0x2f9b71===void 0x0?void 0x0:_0x2f9b71[_0x1aa524(0x139)])===null||_0x2bad69===void 0x0?void 0x0:_0x2bad69[_0x1aa524(0x157)])&&Object[_0x1aa524(0x115)](_0x26e9a4[_0x1aa524(0x117)]['devices'])[_0x1aa524(0x13b)]>0x1&&delete _0x26e9a4[_0x1aa524(0x117)]['devices'][_0x1aa524(0x157)];if((_0x401c1b=_0x26e9a4===null||_0x26e9a4===void 0x0?void 0x0:_0x26e9a4[_0x1aa524(0x138)])===null||_0x401c1b===void 0x0?void 0x0:_0x401c1b[_0x1aa524(0x120)])for(const _0x1e7d6a in _0x26e9a4['staticFile'][_0x1aa524(0x120)]){((_0x463bcd=_0x26e9a4[_0x1aa524(0x138)][_0x1aa524(0x120)][_0x1e7d6a])===null||_0x463bcd===void 0x0?void 0x0:_0x463bcd['dir'])&&typeof((_0x2639ba=_0x26e9a4[_0x1aa524(0x138)][_0x1aa524(0x120)][_0x1e7d6a])===null||_0x2639ba===void 0x0?void 0x0:_0x2639ba[_0x1aa524(0x10b)])=='string'&&!fs[_0x1aa524(0x105)](_0x26e9a4[_0x1aa524(0x138)][_0x1aa524(0x120)][_0x1e7d6a][_0x1aa524(0x10b)])&&(fs['mkdirSync'](_0x26e9a4['staticFile'][_0x1aa524(0x120)][_0x1e7d6a][_0x1aa524(0x10b)],{'recursive':!![]}),console[_0x1aa524(0x14a)](_0x1aa524(0x11c)+_0x26e9a4['staticFile']['dirs'][_0x1e7d6a]['dir']));}((_0x44b62e=_0x26e9a4===null||_0x26e9a4===void 0x0?void 0x0:_0x26e9a4[_0x1aa524(0x107)])===null||_0x44b62e===void 0x0?void 0x0:_0x44b62e['tmpdir'])&&!fs[_0x1aa524(0x105)](_0x26e9a4[_0x1aa524(0x107)][_0x1aa524(0x124)])&&(fs[_0x1aa524(0x150)](_0x26e9a4[_0x1aa524(0x107)][_0x1aa524(0x124)],{'recursive':!![]}),console['log'](_0x1aa524(0x10c)+_0x26e9a4[_0x1aa524(0x107)][_0x1aa524(0x124)])),this['config']['addObject'](_0x26e9a4);}};function a2_0x452a(_0x38461b,_0x7376fa){const _0x350856=a2_0x3508();return a2_0x452a=function(_0x452a94,_0x1e44cd){_0x452a94=_0x452a94-0x105;let _0x39a145=_0x350856[_0x452a94];return _0x39a145;},a2_0x452a(_0x38461b,_0x7376fa);}__decorate([(0x0,core_1[a2_0x53c0b8(0x141)])(),__metadata(a2_0x53c0b8(0x155),core_2[a2_0x53c0b8(0x153)])],CustomConfiguration[a2_0x53c0b8(0x159)],a2_0x53c0b8(0x165),void 0x0),__decorate([(0x0,core_1[a2_0x53c0b8(0x141)])(),__metadata(a2_0x53c0b8(0x155),core_2[a2_0x53c0b8(0x147)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x53c0b8(0x155),core_2[a2_0x53c0b8(0x14e)])],CustomConfiguration[a2_0x53c0b8(0x159)],a2_0x53c0b8(0x121),void 0x0),__decorate([(0x0,core_1[a2_0x53c0b8(0x141)])(),__metadata('design:type',core_2[a2_0x53c0b8(0x13c)])],CustomConfiguration[a2_0x53c0b8(0x159)],a2_0x53c0b8(0x112),void 0x0),__decorate([(0x0,core_1[a2_0x53c0b8(0x141)])(),__metadata('design:type',ApiService_1[a2_0x53c0b8(0x122)])],CustomConfiguration[a2_0x53c0b8(0x159)],a2_0x53c0b8(0x122),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x53c0b8(0x158),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x53c0b8(0x111)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x59c671=a2_0x5401;(function(_0x7e452f,_0x116fce){const _0x6d97b2=a2_0x5401,_0x4909e1=_0x7e452f();while(!![]){try{const _0x50c432=-parseInt(_0x6d97b2(0xb1))/0x1*(parseInt(_0x6d97b2(0xc0))/0x2)+parseInt(_0x6d97b2(0xc9))/0x3*(parseInt(_0x6d97b2(0xe4))/0x4)+-parseInt(_0x6d97b2(0xc1))/0x5+parseInt(_0x6d97b2(0xd4))/0x6+-parseInt(_0x6d97b2(0xd3))/0x7+parseInt(_0x6d97b2(0xcf))/0x8+parseInt(_0x6d97b2(0xd2))/0x9;if(_0x50c432===_0x116fce)break;else _0x4909e1['push'](_0x4909e1['shift']());}catch(_0x3fb542){_0x4909e1['push'](_0x4909e1['shift']());}}}(a2_0x4f61,0x2e341));var __decorate=this&&this[a2_0x59c671(0xb2)]||function(_0x20c289,_0xa96e4c,_0x8a71ff,_0x259350){const _0x3bd22f=a2_0x59c671;var _0x5571ed=arguments['length'],_0x4f6364=_0x5571ed<0x3?_0xa96e4c:_0x259350===null?_0x259350=Object[_0x3bd22f(0xbb)](_0xa96e4c,_0x8a71ff):_0x259350,_0x3173b6;if(typeof Reflect==='object'&&typeof Reflect[_0x3bd22f(0xe6)]==='function')_0x4f6364=Reflect[_0x3bd22f(0xe6)](_0x20c289,_0xa96e4c,_0x8a71ff,_0x259350);else{for(var _0x2b7784=_0x20c289[_0x3bd22f(0xa9)]-0x1;_0x2b7784>=0x0;_0x2b7784--)if(_0x3173b6=_0x20c289[_0x2b7784])_0x4f6364=(_0x5571ed<0x3?_0x3173b6(_0x4f6364):_0x5571ed>0x3?_0x3173b6(_0xa96e4c,_0x8a71ff,_0x4f6364):_0x3173b6(_0xa96e4c,_0x8a71ff))||_0x4f6364;}return _0x5571ed>0x3&&_0x4f6364&&Object[_0x3bd22f(0xba)](_0xa96e4c,_0x8a71ff,_0x4f6364),_0x4f6364;},__metadata=this&&this['__metadata']||function(_0x5b5ca7,_0xfe17be){const _0xd03925=a2_0x59c671;if(typeof Reflect===_0xd03925(0xd9)&&typeof Reflect[_0xd03925(0xa6)]==='function')return Reflect[_0xd03925(0xa6)](_0x5b5ca7,_0xfe17be);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x59c671(0xb9)]=void 0x0;const core_1=require(a2_0x59c671(0x92)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x59c671(0xc5)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x59c671(0xc4)),fs=require('fs'),koa=require(a2_0x59c671(0xc3)),i18n=require(a2_0x59c671(0x9a)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x59c671(0xeb)),crossDomain=require(a2_0x59c671(0xe5)),ConfigDefault=require(a2_0x59c671(0x9e)),ConfigProduction=require(a2_0x59c671(0xc7)),anncic=require(a2_0x59c671(0xed)),anncicCache=require(a2_0x59c671(0x98)),anncicEvent=require(a2_0x59c671(0xbe)),anncicTypeorm=require(a2_0x59c671(0x94)),anncicValidator=require(a2_0x59c671(0xbf)),anncicHelper=require(a2_0x59c671(0xa4));let CustomConfiguration=class CustomConfiguration{async[a2_0x59c671(0xe0)](){const _0x476671=a2_0x59c671;await this['filterConfig'](),await this[_0x476671(0xb8)](),await this[_0x476671(0xb7)](),await this[_0x476671(0x93)]();}async[a2_0x59c671(0xb8)](){}async[a2_0x59c671(0xb7)](){const _0x80daf8=a2_0x59c671,_0x34a995=this[_0x80daf8(0xc2)]['getConfiguration']();this[_0x80daf8(0xd6)][_0x80daf8(0xce)](action_1['ACTION_ROUTE_KEY'],_0x2f57e9=>{const _0x4d5384=_0x80daf8,_0xbf44a0=_0x2f57e9[_0x4d5384(0xa6)];return{'before':async _0x257d83=>{const _0x3656fd=_0x4d5384;var _0x418ca0,_0x66f171;const _0x563764=(_0x418ca0=_0x257d83===null||_0x257d83===void 0x0?void 0x0:_0x257d83[_0x3656fd(0xec)])===null||_0x418ca0===void 0x0?void 0x0:_0x418ca0[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x563764&&(_0xbf44a0===null||_0xbf44a0===void 0x0?void 0x0:_0xbf44a0[_0x3656fd(0xab)])){if(!this['ApiService'][_0x3656fd(0x9b)]((_0x66f171=_0x563764===null||_0x563764===void 0x0?void 0x0:_0x563764[_0x3656fd(0xd8)])===null||_0x66f171===void 0x0?void 0x0:_0x66f171['headers']))throw new AnnError(ApiError_1[_0x3656fd(0xa0)][_0x3656fd(0xaa)]);}},'around':async _0x424e3c=>{const _0x406ecb=_0x4d5384;var _0x36fa25,_0x1d1255,_0x2bab43,_0x22d500,_0x56974c;const _0x239357=(_0x36fa25=_0x424e3c===null||_0x424e3c===void 0x0?void 0x0:_0x424e3c[_0x406ecb(0xec)])===null||_0x36fa25===void 0x0?void 0x0:_0x36fa25[core_2[_0x406ecb(0xb5)]];if(_0x239357&&(_0xbf44a0===null||_0xbf44a0===void 0x0?void 0x0:_0xbf44a0['apimit'])){if(((_0x1d1255=_0x239357[_0x406ecb(0xd7)])===null||_0x1d1255===void 0x0?void 0x0:_0x1d1255[_0x406ecb(0xe3)])&&((_0x56974c=(_0x22d500=(_0x2bab43=_0x34a995===null||_0x34a995===void 0x0?void 0x0:_0x34a995['anncicapi'])===null||_0x2bab43===void 0x0?void 0x0:_0x2bab43[_0x406ecb(0xdb)])===null||_0x22d500===void 0x0?void 0x0:_0x22d500[_0x239357[_0x406ecb(0xd7)][_0x406ecb(0xe3)]])===null||_0x56974c===void 0x0?void 0x0:_0x56974c[_0x406ecb(0x95)])){const _0x12a8fc=Array[_0x406ecb(0x8d)](_0x34a995[_0x406ecb(0xa2)][_0x406ecb(0xdb)][_0x239357[_0x406ecb(0xd7)][_0x406ecb(0xe3)]][_0x406ecb(0x95)])?_0x34a995[_0x406ecb(0xa2)][_0x406ecb(0xdb)][_0x239357[_0x406ecb(0xd7)][_0x406ecb(0xe3)]][_0x406ecb(0x95)]:[_0x34a995['anncicapi'][_0x406ecb(0xdb)][_0x239357[_0x406ecb(0xd7)][_0x406ecb(0xe3)]]['intercept']];for(const _0x141713 of _0x12a8fc){if(core_1[_0x406ecb(0xa5)][_0x406ecb(0xdc)](_0x141713)||typeof _0x141713==_0x406ecb(0xbd)){const _0x182732=await _0x239357[_0x406ecb(0x97)]['getAsync'](_0x141713);typeof(_0x182732===null||_0x182732===void 0x0?void 0x0:_0x182732['handler'])==_0x406ecb(0xdf)&&await _0x182732[_0x406ecb(0xe8)](typeof(_0x239357===null||_0x239357===void 0x0?void 0x0:_0x239357[_0x406ecb(0xaf)])=='string'&&(_0x239357===null||_0x239357===void 0x0?void 0x0:_0x239357[_0x406ecb(0x91)])?_0x239357['method'][_0x406ecb(0xa7)]()+'@'+(_0x239357===null||_0x239357===void 0x0?void 0x0:_0x239357[_0x406ecb(0x91)]):undefined,_0x239357,_0xbf44a0);}else core_1['Types'][_0x406ecb(0xea)](_0x141713)&&await _0x141713(typeof(_0x239357===null||_0x239357===void 0x0?void 0x0:_0x239357[_0x406ecb(0xaf)])=='string'&&(_0x239357===null||_0x239357===void 0x0?void 0x0:_0x239357[_0x406ecb(0x91)])?_0x239357[_0x406ecb(0xaf)]['toLowerCase']()+'@'+(_0x239357===null||_0x239357===void 0x0?void 0x0:_0x239357[_0x406ecb(0x91)]):undefined,_0x239357,_0xbf44a0);}}}return await _0x424e3c[_0x406ecb(0xa1)](..._0x424e3c[_0x406ecb(0xda)]);},'afterThrow':(_0x40bf56,_0x4a85f9)=>{throw _0x4a85f9;}};});}async[a2_0x59c671(0x93)](){const _0x228105=a2_0x59c671;this['application'][_0x228105(0xbc)](['koa'])[_0x228105(0xc8)](_0x3e97ed=>{const _0x6c2624=_0x228105;(_0x3e97ed===null||_0x3e97ed===void 0x0?void 0x0:_0x3e97ed[_0x6c2624(0xe9)])&&Object[_0x6c2624(0xb4)](_0x3e97ed[_0x6c2624(0xe9)],{'ok':{'value':function(_0x203d47,_0xeb3dad,_0x5dc74e=0x0){return{'code':_0x5dc74e,'data':_0x203d47,'extra':_0xeb3dad};}},'input':{'value':function(_0x5d8b4e,_0x5ee6b4){const _0x1215a2=_0x6c2624;var _0x24a461;const _0x1bd785=lodash['defaultsDeep']({},this[_0x1215a2(0xd8)][_0x1215a2(0xb3)]||this[_0x1215a2(0xd8)][((_0x24a461=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x24a461===void 0x0?void 0x0:_0x24a461[_0x1215a2(0x9c)])||'body']||{},this[_0x1215a2(0xd8)][_0x1215a2(0xdd)]||{});return _0x5d8b4e?lodash[_0x1215a2(0x9f)](_0x1bd785,_0x5d8b4e,_0x5ee6b4):_0x1bd785;}},'when':{'value':async function(_0x1c5479,_0x2bf37d){const _0x202ba9=_0x6c2624,_0x58757b=this[_0x202ba9(0xcc)](_0x1c5479,null);if(!lodash['isNull'](_0x58757b))return await _0x2bf37d(_0x58757b);}},'only':{'value':function(_0x552cb5){const _0x317a84=_0x6c2624,_0x30a42d={};for(let _0x312ef5=0x0;_0x312ef5<_0x552cb5[_0x317a84(0xa9)];_0x312ef5++){lodash['isArray'](_0x552cb5[_0x312ef5])&&_0x552cb5[_0x312ef5][_0x317a84(0xa9)]>0x0&&lodash[_0x317a84(0xb6)](_0x552cb5[_0x312ef5][0x0])&&(_0x30a42d[_0x552cb5[_0x312ef5][0x0]]=this[_0x317a84(0xcc)](_0x552cb5[_0x312ef5][0x0],_0x552cb5[_0x312ef5][_0x317a84(0xa9)]>0x1?_0x552cb5[_0x312ef5][0x1]:null));}return _0x30a42d;}}});});}async[a2_0x59c671(0xa3)](){const _0x2e61dd=a2_0x59c671;var _0x1ceefd,_0x30e3fa,_0x2e80e4,_0x5b8d98,_0x20d793,_0x3c94d1;const _0x3bb865=this[_0x2e61dd(0xc2)][_0x2e61dd(0xcd)]();((_0x30e3fa=(_0x1ceefd=_0x3bb865===null||_0x3bb865===void 0x0?void 0x0:_0x3bb865[_0x2e61dd(0xa2)])===null||_0x1ceefd===void 0x0?void 0x0:_0x1ceefd[_0x2e61dd(0xdb)])===null||_0x30e3fa===void 0x0?void 0x0:_0x30e3fa[_0x2e61dd(0xe1)])&&Object[_0x2e61dd(0x96)](_0x3bb865['anncicapi'][_0x2e61dd(0xdb)])['length']>0x1&&delete _0x3bb865[_0x2e61dd(0xa2)][_0x2e61dd(0xdb)][_0x2e61dd(0xe1)];if((_0x2e80e4=_0x3bb865===null||_0x3bb865===void 0x0?void 0x0:_0x3bb865[_0x2e61dd(0x8c)])===null||_0x2e80e4===void 0x0?void 0x0:_0x2e80e4[_0x2e61dd(0xac)])for(const _0x219542 in _0x3bb865[_0x2e61dd(0x8c)][_0x2e61dd(0xac)]){((_0x5b8d98=_0x3bb865[_0x2e61dd(0x8c)]['dirs'][_0x219542])===null||_0x5b8d98===void 0x0?void 0x0:_0x5b8d98[_0x2e61dd(0x90)])&&typeof((_0x20d793=_0x3bb865[_0x2e61dd(0x8c)][_0x2e61dd(0xac)][_0x219542])===null||_0x20d793===void 0x0?void 0x0:_0x20d793['dir'])=='string'&&!fs[_0x2e61dd(0xca)](_0x3bb865[_0x2e61dd(0x8c)]['dirs'][_0x219542][_0x2e61dd(0x90)])&&(fs[_0x2e61dd(0xcb)](_0x3bb865[_0x2e61dd(0x8c)][_0x2e61dd(0xac)][_0x219542]['dir'],{'recursive':!![]}),console[_0x2e61dd(0xc6)](_0x2e61dd(0xe2)+_0x3bb865[_0x2e61dd(0x8c)][_0x2e61dd(0xac)][_0x219542][_0x2e61dd(0x90)]));}((_0x3c94d1=_0x3bb865===null||_0x3bb865===void 0x0?void 0x0:_0x3bb865[_0x2e61dd(0xd5)])===null||_0x3c94d1===void 0x0?void 0x0:_0x3c94d1[_0x2e61dd(0x8f)])&&!fs[_0x2e61dd(0xca)](_0x3bb865[_0x2e61dd(0xd5)]['tmpdir'])&&(fs[_0x2e61dd(0xcb)](_0x3bb865[_0x2e61dd(0xd5)][_0x2e61dd(0x8f)],{'recursive':!![]}),console[_0x2e61dd(0xc6)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x3bb865['upload'][_0x2e61dd(0x8f)])),this[_0x2e61dd(0xc2)][_0x2e61dd(0x9d)](_0x3bb865);}};function a2_0x5401(_0x20ce6c,_0x89e5a9){const _0x4f616f=a2_0x4f61();return a2_0x5401=function(_0x54019e,_0x52e984){_0x54019e=_0x54019e-0x8c;let _0x1fadf7=_0x4f616f[_0x54019e];return _0x1fadf7;},a2_0x5401(_0x20ce6c,_0x89e5a9);}__decorate([(0x0,core_1[a2_0x59c671(0xd0)])(),__metadata(a2_0x59c671(0x8e),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x59c671(0xad)],a2_0x59c671(0xc2),void 0x0),__decorate([(0x0,core_1[a2_0x59c671(0xd0)])(),__metadata(a2_0x59c671(0x8e),core_2[a2_0x59c671(0xa8)])],CustomConfiguration[a2_0x59c671(0xad)],a2_0x59c671(0xd6),void 0x0),__decorate([(0x0,core_1[a2_0x59c671(0xd0)])(),__metadata(a2_0x59c671(0x8e),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a2_0x59c671(0xd1),void 0x0),__decorate([(0x0,core_1[a2_0x59c671(0xd0)])(),__metadata(a2_0x59c671(0x8e),core_2[a2_0x59c671(0xe7)])],CustomConfiguration[a2_0x59c671(0xad)],a2_0x59c671(0xb0),void 0x0),__decorate([(0x0,core_1[a2_0x59c671(0xd0)])(),__metadata(a2_0x59c671(0x8e),ApiService_1['ApiService'])],CustomConfiguration[a2_0x59c671(0xad)],a2_0x59c671(0x99),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x59c671(0xae)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x59c671(0xde),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;function a2_0x4f61(){const _0x2bea12=['intercept','keys','requestContext','@anncic-api/cache','ApiService','@midwayjs/i18n','checksign','key','addObject','./config/config.default','get','ApiError','proceed','anncicapi','filterConfig','anncic-apihelper','Types','metadata','toLowerCase','MidwayDecoratorService','length','HEADERS_SIGNATURE','apimit','dirs','prototype','Configuration','method','environment','23vYSmZI','__decorate','body','defineProperties','REQUEST_OBJ_CTX_KEY','isString','handlerActionRoute','checkConfigKeys','CustomConfiguration','defineProperty','getOwnPropertyDescriptor','getApplications','string','@anncic-api/event','@anncic-api/validator','18146nDbfuj','1307385MERqHn','config','@midwayjs/koa','./types/action','./exception/ApiError','log','./config/config.production','forEach','201003hwqCDp','existsSync','mkdirSync','input','getConfiguration','registerMethodHandler','2114344PUIBnT','Inject','application','3307950eirprj','778351AltnbY','430524zoIPSm','upload','decorator','headers','request','object','args','devices','isClass','query','anncic-api','function','onReady','DEFAULT','Anncic-api\x20static-file\x20:\x20mkdir\x20','device','4IMNNKh','@midwayjs/cross-domain','decorate','MidwayEnvironmentService','handler','context','isFunction','@midwayjs/static-file','target','@anncic-api/core','staticFile','isArray','design:type','tmpdir','dir','_matchedRoute','@midwayjs/core','hanlderApplications','@anncic-api/typeorm'];a2_0x4f61=function(){return _0x2bea12;};return a2_0x4f61();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x249188=a3_0x410b;(function(_0x1a98e4,_0x5b22b7){const _0x2f7ba6=a3_0x410b,_0x484476=_0x1a98e4();while(!![]){try{const _0x5fad97=parseInt(_0x2f7ba6(0x1eb))/0x1*(-parseInt(_0x2f7ba6(0x209))/0x2)+parseInt(_0x2f7ba6(0x1e8))/0x3+-parseInt(_0x2f7ba6(0x1da))/0x4*(-parseInt(_0x2f7ba6(0x1d7))/0x5)+-parseInt(_0x2f7ba6(0x1dc))/0x6*(-parseInt(_0x2f7ba6(0x1fa))/0x7)+-parseInt(_0x2f7ba6(0x1ef))/0x8*(parseInt(_0x2f7ba6(0x1d9))/0x9)+parseInt(_0x2f7ba6(0x1ec))/0xa*(-parseInt(_0x2f7ba6(0x203))/0xb)+-parseInt(_0x2f7ba6(0x204))/0xc*(-parseInt(_0x2f7ba6(0x207))/0xd);if(_0x5fad97===_0x5b22b7)break;else _0x484476['push'](_0x484476['shift']());}catch(_0x1a9025){_0x484476['push'](_0x484476['shift']());}}}(a3_0x435e,0x6caf4));Object[a3_0x249188(0x1e9)](exports,a3_0x249188(0x1e0),{'value':!![]}),exports[a3_0x249188(0x1f1)]=exports['Action']=void 0x0;function a3_0x435e(){const _0x34d96e=['217qCWrpH','splice','rootpath','/controller/文件下','startsWith','route','\x20文件请放在apps/','APPSCONFIG_KEY','indexOf','6589sRznaA','5188020SOxIPA','join','middleware','26NXgunA','replace','13354jTPnAC','trim','/controller/','@midwayjs/core','10aPhoFM','app/controller/','680949gfFsHb','912064lhJfOW','/apps/','47334SaIGCk','length','toLowerCase','Controller','__esModule','middlewareIgnore','-action','apps/','endsWith','getClassMetadata','../types/action','push','601002AEHpEg','defineProperty','saveClassMetadata','83pWATkP','3950isoXdi','prefix','module','56JKlZse','filter','parseRoute','split','filepath','substring','AppsConfigTmp','saveModule','ACTION_KEY','existsSync','cwd'];a3_0x435e=function(){return _0x34d96e;};return a3_0x435e();}const fs=require('fs'),core_1=require(a3_0x249188(0x1d6)),action_1=require(a3_0x249188(0x1e6));function Action(_0x17d3b3,_0x7a8b11,_0x540563={'middleware':[],'sensitive':!![]}){return _0x52e927=>{const _0x515f87=a3_0x410b;_0x540563['tagName']=_0x7a8b11;const _0x5424e0=parseRoute(_0x17d3b3);if(_0x5424e0[_0x515f87(0x1ee)]){_0x540563[_0x515f87(0x1ed)]=_0x540563['prefix']?'/'+_0x5424e0['module']+'/'+_0x540563[_0x515f87(0x1ed)]:'/'+_0x5424e0[_0x515f87(0x1ff)];_0x5424e0[_0x515f87(0x1ed)]&&(_0x540563[_0x515f87(0x1ed)]='/'+_0x5424e0[_0x515f87(0x1ed)]+'/'+_0x540563[_0x515f87(0x1ed)]);if(fs[_0x515f87(0x1f8)](_0x5424e0[_0x515f87(0x1fc)]+_0x515f87(0x1db)+_0x5424e0[_0x515f87(0x1ee)]+'/config.'+(lodash['endsWith'](_0x5424e0['filepath'],'ts')?'ts':'js'))){const _0x77919c=include(_0x5424e0[_0x515f87(0x1fc)]+_0x515f87(0x1db)+_0x5424e0[_0x515f87(0x1ee)]+'/config.'+(lodash[_0x515f87(0x1e4)](_0x5424e0[_0x515f87(0x1f3)],'ts')?'ts':'js'));if(_0x77919c[_0x515f87(0x206)]&&lodash['isArray'](_0x77919c[_0x515f87(0x206)])&&_0x77919c['middleware'][_0x515f87(0x1dd)]>0x0)for(let _0x26b9ae in _0x77919c['middleware']){_0x77919c[_0x515f87(0x1e1)]['indexOf'](_0x77919c[_0x515f87(0x206)][_0x26b9ae])==-0x1&&_0x540563[_0x515f87(0x206)][_0x515f87(0x1e7)](_0x77919c[_0x515f87(0x206)][_0x26b9ae]);}const _0xad7fca=(0x0,core_1[_0x515f87(0x1e5)])(action_1[_0x515f87(0x201)],action_1[_0x515f87(0x1f5)])||{};_0xad7fca[''+_0x5424e0[_0x515f87(0x1ee)]]=_0x77919c,(0x0,core_1[_0x515f87(0x1ea)])(action_1[_0x515f87(0x201)],_0xad7fca,action_1[_0x515f87(0x1f5)]);}_0x540563[_0x515f87(0x1ed)]=_0x540563[_0x515f87(0x1ed)]['toLowerCase']()[_0x515f87(0x208)](/\/{2,}/g,'/'),(0x0,core_1[_0x515f87(0x1f6)])(action_1[_0x515f87(0x1f7)],_0x52e927),(0x0,core_1[_0x515f87(0x1df)])(_0x540563[_0x515f87(0x1ed)],_0x540563)(_0x52e927),(0x0,core_1[_0x515f87(0x1ea)])(action_1['ACTION_KEY'],{'prefix':_0x540563[_0x515f87(0x1ed)],'pprefix':_0x5424e0[_0x515f87(0x1ed)],'module':_0x5424e0[_0x515f87(0x1ee)],'filepath':_0x5424e0['filepath'],'routerOptions':_0x540563},_0x52e927);}else _0x540563[_0x515f87(0x1ed)]=_0x540563['prefix']?'/'+_0x540563[_0x515f87(0x1ed)]:'/'+_0x5424e0[_0x515f87(0x1ff)],_0x5424e0['prefix']&&(_0x540563[_0x515f87(0x1ed)]='/'+_0x5424e0[_0x515f87(0x1ed)]+'/'+_0x540563['prefix']),_0x540563['prefix']=_0x540563['prefix'][_0x515f87(0x1de)]()[_0x515f87(0x208)](/\/{2,}/g,'/'),(0x0,core_1[_0x515f87(0x1f6)])(action_1[_0x515f87(0x1f7)],_0x52e927),(0x0,core_1[_0x515f87(0x1df)])(_0x540563[_0x515f87(0x1ed)],_0x540563)(_0x52e927),(0x0,core_1[_0x515f87(0x1ea)])(action_1['ACTION_KEY'],{'prefix':_0x540563[_0x515f87(0x1ed)],'module':_0x5424e0[_0x515f87(0x1ee)],'pprefix':_0x5424e0['prefix'],'filepath':_0x5424e0[_0x515f87(0x1f3)],'routerOptions':_0x540563},_0x52e927);};}exports['Action']=Action;function a3_0x410b(_0x23ec44,_0x1d8b5a){const _0x435e24=a3_0x435e();return a3_0x410b=function(_0x410b70,_0x2796ac){_0x410b70=_0x410b70-0x1d6;let _0x2d0bb2=_0x435e24[_0x410b70];return _0x2d0bb2;},a3_0x410b(_0x23ec44,_0x1d8b5a);}function parseRoute(_0x5752cd){const _0x8bbe1b=a3_0x249188;_0x5752cd=_0x5752cd[_0x8bbe1b(0x208)](/(\\|\/)/g,'/');const _0x58b1eb=process[_0x8bbe1b(0x1f9)]()[_0x8bbe1b(0x208)](/(\\|\/)/g,'/'),_0x1ac101=_0x5752cd[_0x8bbe1b(0x1f4)](0x0,_0x58b1eb['length']+_0x5752cd['substring'](_0x58b1eb[_0x8bbe1b(0x1dd)]+0x1)[_0x8bbe1b(0x202)]('/')+0x1),_0x414014=_0x5752cd[_0x8bbe1b(0x1f4)](_0x1ac101[_0x8bbe1b(0x1dd)]+0x1)['replace'](/(\\|\/)/g,'/'),_0xdcf914={'route':'','prefix':![],'module':![],'rootpath':_0x1ac101,'filepath':_0x414014};if(_0x414014['startsWith'](_0x8bbe1b(0x1d8))){const _0x1c3747=_0x414014[_0x8bbe1b(0x1f4)](_0x8bbe1b(0x1d8)['length'])[_0x8bbe1b(0x1f2)]('/')[_0x8bbe1b(0x1f0)](_0x1b0470=>_0x1b0470&&_0x1b0470[_0x8bbe1b(0x20a)]());return _0x1c3747[_0x8bbe1b(0x1dd)]>0x1&&(_0xdcf914[_0x8bbe1b(0x1ed)]=_0x1c3747[0x0]['toLowerCase'](),_0x1c3747[_0x8bbe1b(0x1fb)](0x0,0x1)),_0xdcf914[_0x8bbe1b(0x1ff)]=('/'+_0x1c3747[_0x8bbe1b(0x205)]('/'))[_0x8bbe1b(0x208)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x8bbe1b(0x205)]('-')[_0x8bbe1b(0x1de)]()[_0x8bbe1b(0x208)](/\/\-/g,'/'),_0xdcf914[_0x8bbe1b(0x1ff)][_0x8bbe1b(0x1e4)](_0x8bbe1b(0x1e2))&&(_0xdcf914[_0x8bbe1b(0x1ff)]=_0xdcf914['route']['substring'](0x0,_0xdcf914[_0x8bbe1b(0x1ff)]['length']-0x7)),_0xdcf914['route'][_0x8bbe1b(0x1e4)]('-controller')&&(_0xdcf914[_0x8bbe1b(0x1ff)]=_0xdcf914['route'][_0x8bbe1b(0x1f4)](0x0,_0xdcf914[_0x8bbe1b(0x1ff)][_0x8bbe1b(0x1dd)]-0xb)),_0xdcf914;}else{if(_0x414014[_0x8bbe1b(0x1fe)](_0x8bbe1b(0x1e3))){const _0x43b2f6=_0x414014[_0x8bbe1b(0x1f4)](0x0,_0x414014[_0x8bbe1b(0x202)](_0x8bbe1b(0x1db))+0x5),_0x13f49f=_0x414014[_0x8bbe1b(0x1f4)](_0x43b2f6['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x8bbe1b(0x1f2)]('/')[0x0];if(_0x414014[_0x8bbe1b(0x1fe)](_0x8bbe1b(0x1e3)+_0x13f49f+_0x8bbe1b(0x20b))){const _0x575b8d=_0x414014[_0x8bbe1b(0x1f4)]((_0x43b2f6+'/'+_0x13f49f+'/controller/')[_0x8bbe1b(0x1dd)])['split']('/')['filter'](_0x208b04=>_0x208b04&&_0x208b04[_0x8bbe1b(0x20a)]());return _0x575b8d[_0x8bbe1b(0x1dd)]>0x1&&(_0xdcf914[_0x8bbe1b(0x1ed)]=_0x575b8d[0x0][_0x8bbe1b(0x1de)](),_0x575b8d[_0x8bbe1b(0x1fb)](0x0,0x1)),_0xdcf914[_0x8bbe1b(0x1ee)]=_0x13f49f,_0xdcf914[_0x8bbe1b(0x1ff)]=('/'+_0x13f49f+'/'+_0x575b8d[_0x8bbe1b(0x205)]('/'))[_0x8bbe1b(0x208)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x8bbe1b(0x205)]('-')[_0x8bbe1b(0x1de)]()[_0x8bbe1b(0x208)](/\/\-/g,'/'),_0xdcf914[_0x8bbe1b(0x1ff)][_0x8bbe1b(0x1e4)](_0x8bbe1b(0x1e2))&&(_0xdcf914[_0x8bbe1b(0x1ff)]=_0xdcf914[_0x8bbe1b(0x1ff)][_0x8bbe1b(0x1f4)](0x0,_0xdcf914[_0x8bbe1b(0x1ff)][_0x8bbe1b(0x1dd)]-0x7)),_0xdcf914[_0x8bbe1b(0x1ff)][_0x8bbe1b(0x1e4)]('-controller')&&(_0xdcf914['route']=_0xdcf914['route'][_0x8bbe1b(0x1f4)](0x0,_0xdcf914['route'][_0x8bbe1b(0x1dd)]-0xb)),_0xdcf914;}throw new Error(_0x414014+_0x8bbe1b(0x200)+_0x13f49f+_0x8bbe1b(0x1fd));}}throw new Error(_0x414014+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x27d9(){const _0x367149=['@midwayjs/core','description','1232210BFpcQJ','delete','2101026oLqcqa','toLowerCase','13665040TXTQRF','validate','RequestMapping','filter','middleware','26602rdaqyb','validationOptions','attachClassMetadata','assign','indexOf','2468316RtPZjk','get','routerName','ACTION_ROUTE_KEY','del','4887970QdToPE','../types/action','middlewareIgnore','Validator','@anncic-api/validator','79xXTJvd','apimit','length','defineProperty','utc','Api','6176166KHtXCu'];a4_0x27d9=function(){return _0x367149;};return a4_0x27d9();}const a4_0x40f352=a4_0x47f0;(function(_0x1d987e,_0x224bef){const _0x529717=a4_0x47f0,_0x2d3c59=_0x1d987e();while(!![]){try{const _0x5bac78=parseInt(_0x529717(0x1b0))/0x1*(-parseInt(_0x529717(0x1c2))/0x2)+-parseInt(_0x529717(0x1bb))/0x3+parseInt(_0x529717(0x1a6))/0x4+parseInt(_0x529717(0x1ab))/0x5+-parseInt(_0x529717(0x1b6))/0x6+parseInt(_0x529717(0x1b9))/0x7+parseInt(_0x529717(0x1bd))/0x8;if(_0x5bac78===_0x224bef)break;else _0x2d3c59['push'](_0x2d3c59['shift']());}catch(_0x4abcc0){_0x2d3c59['push'](_0x2d3c59['shift']());}}}(a4_0x27d9,0xaa7ef));Object[a4_0x40f352(0x1b3)](exports,'__esModule',{'value':!![]}),exports[a4_0x40f352(0x1b5)]=void 0x0;const validator_1=require(a4_0x40f352(0x1af)),core_1=require(a4_0x40f352(0x1b7)),action_1=require(a4_0x40f352(0x1ac));function Api(_0x3e6915,_0xa27028=a4_0x40f352(0x1a7),_0x5518c6='/',_0x57d36b={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x910879,_0x24940e,_0x127bef)=>{const _0x54c682=a4_0x47f0;var _0x299cca,_0x1ba2ec,_0x2de433;!_0x57d36b[_0x54c682(0x1c1)]&&(_0x57d36b['middleware']=[]);!((_0x299cca=_0x57d36b===null||_0x57d36b===void 0x0?void 0x0:_0x57d36b['validate'])===null||_0x299cca===void 0x0?void 0x0:_0x299cca[_0x54c682(0x1c3)])&&(_0x57d36b[_0x54c682(0x1be)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x54c682(0x1b4)}});if(((_0x1ba2ec=_0x57d36b===null||_0x57d36b===void 0x0?void 0x0:_0x57d36b[_0x54c682(0x1c1)])===null||_0x1ba2ec===void 0x0?void 0x0:_0x1ba2ec[_0x54c682(0x1b2)])>0x0&&((_0x2de433=_0x57d36b===null||_0x57d36b===void 0x0?void 0x0:_0x57d36b[_0x54c682(0x1ad)])===null||_0x2de433===void 0x0?void 0x0:_0x2de433[_0x54c682(0x1b2)])>0x0)for(let _0xb72666 in _0x57d36b[_0x54c682(0x1c1)]){_0x57d36b[_0x54c682(0x1ad)][_0x54c682(0x1a5)](_0x57d36b[_0x54c682(0x1c1)][_0xb72666])!==-0x1&&(_0x57d36b['middleware'][_0xb72666]=null);}_0x57d36b[_0x54c682(0x1a8)]=_0x3e6915,(0x0,validator_1[_0x54c682(0x1ae)])(_0x57d36b[_0x54c682(0x1be)])(_0x910879,_0x24940e,_0x127bef),(0x0,core_1[_0x54c682(0x1bf)])(Object[_0x54c682(0x1a4)](_0x57d36b,{'path':_0x5518c6,'requestMethod':(_0xa27028==_0x54c682(0x1aa)?'delete':_0xa27028)[_0x54c682(0x1bc)]()}))(_0x910879,_0x24940e,_0x127bef),(0x0,core_1[_0x54c682(0x1c4)])(action_1[_0x54c682(0x1a9)],{'path':_0x5518c6,'method':_0x24940e,'apimit':_0x57d36b[_0x54c682(0x1b1)],'routerName':_0x57d36b[_0x54c682(0x1a8)],'description':_0x57d36b['description'],'middleware':(_0x57d36b['middleware']||[])['filter'](_0x119586=>!!_0x119586),'requestMethod':(_0xa27028=='del'?_0x54c682(0x1ba):_0xa27028)[_0x54c682(0x1bc)]()},_0x910879),(0x0,core_1['createCustomMethodDecorator'])(action_1[_0x54c682(0x1a9)],{'path':_0x5518c6,'method':_0x24940e,'apimit':_0x57d36b[_0x54c682(0x1b1)],'routerName':_0x57d36b['routerName'],'description':_0x57d36b[_0x54c682(0x1b8)],'middleware':(_0x57d36b[_0x54c682(0x1c1)]||[])[_0x54c682(0x1c0)](_0x5b3abb=>!!_0x5b3abb),'requestMethod':(_0xa27028==_0x54c682(0x1aa)?'delete':_0xa27028)[_0x54c682(0x1bc)]()})(_0x910879,_0x24940e,_0x127bef);};}function a4_0x47f0(_0x2f1255,_0x2a1156){const _0x27d923=a4_0x27d9();return a4_0x47f0=function(_0x47f0c0,_0x529eb8){_0x47f0c0=_0x47f0c0-0x1a4;let _0x2deab3=_0x27d923[_0x47f0c0];return _0x2deab3;},a4_0x47f0(_0x2f1255,_0x2a1156);}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a5_0x2222d8=a5_0x52cd;function a5_0x21f2(){const _0x473464=['getAsync','469912PiMtol','4189959oqZLDm','app','307472FZkxey','Apitest','apidoc','MidwayEnvironmentService','get','3467912KUketc','@midwayjs/core','/apitest','RequestMapping','getConfig','2YPKrLg','__esModule','defineProperty','filepath','apitest','REQUEST_OBJ_CTX_KEY','isDevelopmentEnvironment','1401492IoTsjl','getApplicationContext','20008VRZVWI','355QdgMBl','1082574RsfzMQ'];a5_0x21f2=function(){return _0x473464;};return a5_0x21f2();}(function(_0xdbcd08,_0x4fc6be){const _0x373fb5=a5_0x52cd,_0xb2229b=_0xdbcd08();while(!![]){try{const _0x15f660=-parseInt(_0x373fb5(0xeb))/0x1*(-parseInt(_0x373fb5(0xfb))/0x2)+-parseInt(_0x373fb5(0xf6))/0x3+-parseInt(_0x373fb5(0xf4))/0x4*(parseInt(_0x373fb5(0xf5))/0x5)+-parseInt(_0x373fb5(0xf2))/0x6+parseInt(_0x373fb5(0xe6))/0x7+-parseInt(_0x373fb5(0xf8))/0x8+parseInt(_0x373fb5(0xf9))/0x9;if(_0x15f660===_0x4fc6be)break;else _0xb2229b['push'](_0xb2229b['shift']());}catch(_0x49b049){_0xb2229b['push'](_0xb2229b['shift']());}}}(a5_0x21f2,0x3f816));function a5_0x52cd(_0x558ec3,_0x1b5103){const _0x21f206=a5_0x21f2();return a5_0x52cd=function(_0x52cdac,_0x1a8ace){_0x52cdac=_0x52cdac-0xe6;let _0x7115cf=_0x21f206[_0x52cdac];return _0x7115cf;},a5_0x52cd(_0x558ec3,_0x1b5103);}Object[a5_0x2222d8(0xed)](exports,a5_0x2222d8(0xec),{'value':!![]}),exports[a5_0x2222d8(0xfc)]=void 0x0;const core_1=require(a5_0x2222d8(0xe7)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x52728f=a5_0x2222d8(0xe8),_0x14335a){return(_0x44bcd,_0x9b97e7,_0x306fd3)=>{const _0x4f60f4=a5_0x52cd;return(0x0,core_1[_0x4f60f4(0xe9)])({'path':_0x52728f,'requestMethod':_0x4f60f4(0xff)})(_0x44bcd,_0x9b97e7,_0x306fd3),_0x306fd3['value']=async function(..._0x5f30a3){const _0x46b05f=_0x4f60f4;var _0x322bcc;const _0x429906=(_0x322bcc=this[core_1[_0x46b05f(0xf0)]])===null||_0x322bcc===void 0x0?void 0x0:_0x322bcc[_0x46b05f(0xfa)];if(_0x429906&&_0x429906[_0x46b05f(0xea)](_0x46b05f(0xef))){const _0x2edb24=await _0x429906[_0x46b05f(0xf3)]()[_0x46b05f(0xf7)](ApitestService_1['ApitestService']),_0xaac211=await _0x429906['getApplicationContext']()[_0x46b05f(0xf7)](core_1[_0x46b05f(0xfe)]);return _0xaac211[_0x46b05f(0xf1)]()&&(_0x14335a[_0x46b05f(0xee)]=!![]),await _0x2edb24[_0x46b05f(0xfd)](_0x14335a);}return'';},_0x306fd3;};}exports[a5_0x2222d8(0xfc)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x5663(){var _0x5c2af9=['2331AAiiLk','getOwnPropertyDescriptor','HEADERS_DEVICE','HEADERS_SIGNATURE','__esModule','ApiError','请使用正确的设备','design:type','328560GFXGHg','object','330820twpLXQ','defineProperty','130898eySqzd','__decorate','__metadata','HEADERS_LACK','22cSvbDK','226370VDihHy','decorate','请求头信息不完整','12HqKUWy','3PgNCHu','TIMEOUT','function','metadata','1337882EnTYvH','300100gsBCpr','HEADERS_CHECKCODE','6920HlyfFc'];a6_0x5663=function(){return _0x5c2af9;};return a6_0x5663();}var a6_0x2da0dc=a6_0x45d3;(function(_0x426aab,_0x457e68){var _0x14001a=a6_0x45d3,_0x8ad7a4=_0x426aab();while(!![]){try{var _0x32f9d2=-parseInt(_0x14001a(0x12f))/0x1+parseInt(_0x14001a(0x12b))/0x2+-parseInt(_0x14001a(0x138))/0x3*(-parseInt(_0x14001a(0x120))/0x4)+-parseInt(_0x14001a(0x134))/0x5*(parseInt(_0x14001a(0x137))/0x6)+-parseInt(_0x14001a(0x11f))/0x7+parseInt(_0x14001a(0x122))/0x8*(parseInt(_0x14001a(0x123))/0x9)+-parseInt(_0x14001a(0x12d))/0xa*(-parseInt(_0x14001a(0x133))/0xb);if(_0x32f9d2===_0x457e68)break;else _0x8ad7a4['push'](_0x8ad7a4['shift']());}catch(_0x341294){_0x8ad7a4['push'](_0x8ad7a4['shift']());}}}(a6_0x5663,0x1c8c4));var __decorate=this&&this[a6_0x2da0dc(0x130)]||function(_0x4cf497,_0xa5dbc9,_0x3c13cf,_0x3f708e){var _0x43ab67=a6_0x2da0dc,_0xa5718b=arguments['length'],_0x5d262c=_0xa5718b<0x3?_0xa5dbc9:_0x3f708e===null?_0x3f708e=Object[_0x43ab67(0x124)](_0xa5dbc9,_0x3c13cf):_0x3f708e,_0x531408;if(typeof Reflect===_0x43ab67(0x12c)&&typeof Reflect[_0x43ab67(0x135)]===_0x43ab67(0x13a))_0x5d262c=Reflect[_0x43ab67(0x135)](_0x4cf497,_0xa5dbc9,_0x3c13cf,_0x3f708e);else{for(var _0x474c6f=_0x4cf497['length']-0x1;_0x474c6f>=0x0;_0x474c6f--)if(_0x531408=_0x4cf497[_0x474c6f])_0x5d262c=(_0xa5718b<0x3?_0x531408(_0x5d262c):_0xa5718b>0x3?_0x531408(_0xa5dbc9,_0x3c13cf,_0x5d262c):_0x531408(_0xa5dbc9,_0x3c13cf))||_0x5d262c;}return _0xa5718b>0x3&&_0x5d262c&&Object[_0x43ab67(0x12e)](_0xa5dbc9,_0x3c13cf,_0x5d262c),_0x5d262c;},__metadata=this&&this[a6_0x2da0dc(0x131)]||function(_0x3b6b96,_0x56b1bc){var _0xf35615=a6_0x2da0dc;if(typeof Reflect===_0xf35615(0x12c)&&typeof Reflect[_0xf35615(0x11e)]===_0xf35615(0x13a))return Reflect['metadata'](_0x3b6b96,_0x56b1bc);};Object[a6_0x2da0dc(0x12e)](exports,a6_0x2da0dc(0x127),{'value':!![]}),exports['ApiError']=void 0x0;function a6_0x45d3(_0x15f007,_0x39c352){var _0x566394=a6_0x5663();return a6_0x45d3=function(_0x45d305,_0x44095b){_0x45d305=_0x45d305-0x11e;var _0x154318=_0x566394[_0x45d305];return _0x154318;},a6_0x45d3(_0x15f007,_0x39c352);}class ApiError{}ApiError[a6_0x2da0dc(0x139)]=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError[a6_0x2da0dc(0x125)]=0x3d7e33,ApiError['HEADERS_CHECKCODE']=0x3d7e34,ApiError[a6_0x2da0dc(0x126)]=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x2da0dc(0x12a),Object)],ApiError,a6_0x2da0dc(0x139),void 0x0),__decorate([AnnErrorMsg(a6_0x2da0dc(0x136)),__metadata(a6_0x2da0dc(0x12a),Object)],ApiError,a6_0x2da0dc(0x132),void 0x0),__decorate([AnnErrorMsg(a6_0x2da0dc(0x129)),__metadata(a6_0x2da0dc(0x12a),Object)],ApiError,a6_0x2da0dc(0x125),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x2da0dc(0x12a),Object)],ApiError,a6_0x2da0dc(0x121),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x2da0dc(0x12a),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports[a6_0x2da0dc(0x128)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x3e1fa7=a7_0x4ea8;function a7_0x4ea8(_0x3af237,_0x2899eb){const _0x263fc6=a7_0x263f();return a7_0x4ea8=function(_0x4ea810,_0x41c50f){_0x4ea810=_0x4ea810-0xce;let _0x4a6c1e=_0x263fc6[_0x4ea810];return _0x4a6c1e;},a7_0x4ea8(_0x3af237,_0x2899eb);}function a7_0x263f(){const _0x4d62db=['173740BwJsjz','AppsConfigTmp','3305508OnzAiA','42031WPtBxB','getClassMetadata','60oHsTOR','1384HHreFb','363544fVSXhn','APPSCONFIG_KEY','1126278QDwkhL','23618QMldll','172sSYFfq','@midwayjs/core','getAppsConfig','../types/action','2388YzFZzh','49899eZNhTG','5wNXZkF','get'];a7_0x263f=function(){return _0x4d62db;};return a7_0x263f();}(function(_0x252da5,_0x255b1f){const _0x10524f=a7_0x4ea8,_0x458174=_0x252da5();while(!![]){try{const _0x283f0c=-parseInt(_0x10524f(0xd9))/0x1+-parseInt(_0x10524f(0xdd))/0x2*(parseInt(_0x10524f(0xcf))/0x3)+parseInt(_0x10524f(0xd2))/0x4*(-parseInt(_0x10524f(0xd0))/0x5)+parseInt(_0x10524f(0xd4))/0x6+-parseInt(_0x10524f(0xdc))/0x7*(-parseInt(_0x10524f(0xd8))/0x8)+-parseInt(_0x10524f(0xdb))/0x9*(-parseInt(_0x10524f(0xd7))/0xa)+parseInt(_0x10524f(0xd5))/0xb*(parseInt(_0x10524f(0xce))/0xc);if(_0x283f0c===_0x255b1f)break;else _0x458174['push'](_0x458174['shift']());}catch(_0x2a4b7a){_0x458174['push'](_0x458174['shift']());}}}(a7_0x263f,0xc55f2));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x3e1fa7(0xdf)]=void 0x0;const core_1=require(a7_0x3e1fa7(0xde)),action_1=require(a7_0x3e1fa7(0xe0));function getAppsConfig(_0x5ba4ab){const _0x55d371=a7_0x3e1fa7,_0xc03f8b=(0x0,core_1[_0x55d371(0xd6)])(action_1[_0x55d371(0xda)],action_1[_0x55d371(0xd3)])||{};return _0x5ba4ab?lodash[_0x55d371(0xd1)](_0xc03f8b,_0x5ba4ab):_0xc03f8b;}exports[a7_0x3e1fa7(0xdf)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x2842c9=a8_0x2e39;(function(_0x13a20c,_0xe72780){const _0x3b33ab=a8_0x2e39,_0x249746=_0x13a20c();while(!![]){try{const _0x5de17a=parseInt(_0x3b33ab(0x8a))/0x1*(parseInt(_0x3b33ab(0xad))/0x2)+parseInt(_0x3b33ab(0xcd))/0x3+parseInt(_0x3b33ab(0x96))/0x4+parseInt(_0x3b33ab(0xcb))/0x5*(parseInt(_0x3b33ab(0xd4))/0x6)+-parseInt(_0x3b33ab(0x8c))/0x7*(-parseInt(_0x3b33ab(0xb8))/0x8)+parseInt(_0x3b33ab(0x94))/0x9*(parseInt(_0x3b33ab(0xa0))/0xa)+parseInt(_0x3b33ab(0xcc))/0xb*(-parseInt(_0x3b33ab(0x85))/0xc);if(_0x5de17a===_0xe72780)break;else _0x249746['push'](_0x249746['shift']());}catch(_0xb79c32){_0x249746['push'](_0x249746['shift']());}}}(a8_0x3195,0x41639));Object['defineProperty'](exports,a8_0x2842c9(0xa2),{'value':!![]}),exports[a8_0x2842c9(0xc0)]=void 0x0;function a8_0x2e39(_0x4947f0,_0x17d7bc){const _0x319578=a8_0x3195();return a8_0x2e39=function(_0x2e3944,_0x5e58bd){_0x2e3944=_0x2e3944-0x85;let _0x48f836=_0x319578[_0x2e3944];return _0x48f836;},a8_0x2e39(_0x4947f0,_0x17d7bc);}const lodash_1=require(a8_0x2842c9(0x9e)),validator_1=require(a8_0x2842c9(0xcf)),core_1=require(a8_0x2842c9(0x8d)),core_2=require(a8_0x2842c9(0x8d)),core_3=require(a8_0x2842c9(0x8d)),action_1=require('../types/action');function getRoutes(_0x5783ec={'prefix':'/','module':![]}){const _0x1fd431=a8_0x2842c9;var _0x2f3745,_0x1c9d8b;const _0x1792cb=(0x0,core_3['listModule'])(action_1[_0x1fd431(0xa6)]),_0x1ccbce={},_0x33010d=Array[_0x1fd431(0xb5)](_0x5783ec['filter']||[])?_0x5783ec['filter']||[]:[_0x5783ec[_0x1fd431(0x9d)]];_0x37f006:for(const _0xeba675 of _0x1792cb){let _0x357d2a=(0x0,core_3[_0x1fd431(0xb3)])(action_1[_0x1fd431(0xa6)],_0xeba675),_0x1bee8f=(0x0,core_3[_0x1fd431(0xb3)])(action_1[_0x1fd431(0xa3)],_0xeba675);if(_0x357d2a&&_0x1bee8f){let _0x45cb07=_0x357d2a[_0x1fd431(0xba)],_0x528d97={};if(_0x5783ec['module']&&(0x0,lodash_1[_0x1fd431(0xdf)])(_0x357d2a,_0x1fd431(0xe1),![])!=_0x5783ec[_0x1fd431(0xe1)])continue _0x37f006;else{if(_0x5783ec[_0x1fd431(0xe1)]===![]&&!!(0x0,lodash_1[_0x1fd431(0xdf)])(_0x357d2a,_0x1fd431(0xe1),null))continue _0x37f006;}if(_0x5783ec['prefix']&&!_0x45cb07[_0x1fd431(0xac)](_0x5783ec[_0x1fd431(0xba)]))continue _0x37f006;_0x45cb07!=='/'?(_0x528d97['summary']=(_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a['routerOptions'][_0x1fd431(0xd9)])||(/^\//[_0x1fd431(0xd5)](_0x45cb07)?_0x45cb07['split']('/')[0x1]:_0x45cb07),_0x528d97[_0x1fd431(0xbb)]=(_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a['routerOptions'][_0x1fd431(0xbb)])||_0x528d97['summary'],_0x528d97[_0x1fd431(0xc1)]=[]):(_0x528d97['summary']=(_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a[_0x1fd431(0x87)][_0x1fd431(0xd9)])||_0x1fd431(0x95),_0x528d97['description']=(_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a[_0x1fd431(0x87)][_0x1fd431(0xbb)])||'',_0x528d97[_0x1fd431(0xc1)]=[]);_0x5783ec['filepath']&&(_0x528d97[_0x1fd431(0x8b)]=_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a[_0x1fd431(0x8b)]);(_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a[_0x1fd431(0xb4)])&&(_0x528d97[_0x1fd431(0xba)]=_0x357d2a[_0x1fd431(0xb4)]);(_0x357d2a===null||_0x357d2a===void 0x0?void 0x0:_0x357d2a[_0x1fd431(0xe1)])&&(_0x528d97['module']=_0x357d2a[_0x1fd431(0xe1)]);let _0x5857dd=(0x0,core_3['getClassMetadata'])(core_2['INJECT_CUSTOM_PARAM'],_0xeba675)||{};if(typeof _0x1bee8f[Symbol[_0x1fd431(0xdd)]]==='function')for(let _0x1f713e of _0x1bee8f){let _0x353072={};_0x353072['method']=_0x1f713e[_0x1fd431(0x9c)],_0x353072[_0x1fd431(0x93)]=(_0x45cb07+_0x1f713e[_0x1fd431(0xb7)])[_0x1fd431(0x99)](/\/{1,}/,'/'),_0x353072['summary']=(_0x1f713e===null||_0x1f713e===void 0x0?void 0x0:_0x1f713e[_0x1fd431(0xc9)])||_0x528d97[_0x1fd431(0xbf)]||_0x1fd431(0x95),_0x353072[_0x1fd431(0xbb)]=(_0x1f713e===null||_0x1f713e===void 0x0?void 0x0:_0x1f713e[_0x1fd431(0xbb)])||'',_0x353072[_0x1fd431(0xa4)]=[];if(!(0x0,lodash_1[_0x1fd431(0xac)])(_0x353072[_0x1fd431(0x93)],'static/apitest')&&!(0x0,lodash_1[_0x1fd431(0xac)])(_0x353072[_0x1fd431(0x93)],'/static/apitest')&&_0x33010d[_0x1fd431(0xc6)](_0x353072['route'])===-0x1){if(!(_0x5783ec===null||_0x5783ec===void 0x0?void 0x0:_0x5783ec[_0x1fd431(0xa9)])){let _0x48ebc9=(0x0,core_3[_0x1fd431(0xae)])(new _0xeba675(),_0x1f713e['method']);for(const _0x22d74a in _0x48ebc9){let _0x3fea5d=(_0x2f3745=_0x5857dd[_0x1f713e[_0x1fd431(0xca)]])===null||_0x2f3745===void 0x0?void 0x0:_0x2f3745[_0x1fd431(0xbd)](_0x580248=>_0x580248[_0x1fd431(0x97)]==_0x22d74a&&_0x580248[_0x1fd431(0xd8)]===core_2[_0x1fd431(0xc2)]&&(_0x580248===null||_0x580248===void 0x0?void 0x0:_0x580248[_0x1fd431(0x8f)]));if(_0x3fea5d===null||_0x3fea5d===void 0x0?void 0x0:_0x3fea5d[_0x1fd431(0x8f)]){let _0x92da69=convertTypeToString(_0x3fea5d[_0x1fd431(0x8f)][_0x1fd431(0xb2)]||0x0);if([_0x1fd431(0xd1),_0x1fd431(0x89)]['indexOf'](_0x92da69)!=-0x1&&_0x3fea5d[_0x1fd431(0x8f)][_0x1fd431(0x90)]['indexOf'](':')==-0x1&&!_0x353072['request'][_0x1fd431(0xbd)](_0x3aff19=>_0x3aff19[_0x1fd431(0xd8)]==_0x3fea5d[_0x1fd431(0x8f)][_0x1fd431(0x90)]))_0x353072[_0x1fd431(0xa4)][_0x1fd431(0xc5)]({'key':_0x3fea5d[_0x1fd431(0x8f)][_0x1fd431(0x90)],'title':_0x3fea5d[_0x1fd431(0x8f)]['propertyData'],'type':convertSchemaType(_0x48ebc9[_0x3fea5d['parameterIndex']][_0x1fd431(0xa8)]),'required':![],'default':'','desc':''});else{if(_0x92da69==_0x1fd431(0xc3)){let _0x176f8f=((_0x1c9d8b=_0x3fea5d===null||_0x3fea5d===void 0x0?void 0x0:_0x3fea5d[_0x1fd431(0x8f)])===null||_0x1c9d8b===void 0x0?void 0x0:_0x1c9d8b[_0x1fd431(0x90)])||'file';_0x176f8f['indexOf'](':')==-0x1&&!_0x353072[_0x1fd431(0xa4)][_0x1fd431(0xbd)](_0x10b8d1=>_0x10b8d1['key']==_0x176f8f&&_0x10b8d1[_0x1fd431(0xb2)]==_0x1fd431(0xc3))&&_0x353072[_0x1fd431(0xa4)]['push']({'key':_0x176f8f,'title':'文件上传-'+_0x176f8f,'type':_0x1fd431(0xc3),'required':!![],'default':'','desc':''});}}}else{const _0x525d4c=(0x0,core_3[_0x1fd431(0xd3)])(validator_1[_0x1fd431(0xd0)],_0x48ebc9[_0x22d74a]);_0x525d4c&&_0x353072[_0x1fd431(0xa4)][_0x1fd431(0xc5)](...getJoiRequest(_0x525d4c));}}}_0x528d97[_0x1fd431(0xc1)][_0x1fd431(0xc5)](_0x353072);}}if(_0x528d97[_0x1fd431(0xc1)][_0x1fd431(0xd2)]>0x0){let _0x4e1289=_0x1ccbce[_0x45cb07];_0x4e1289?(_0x4e1289[_0x1fd431(0xbf)]!=_0x528d97[_0x1fd431(0xbf)]&&(_0x4e1289[_0x1fd431(0xbf)]=_0x4e1289['summary']+','+_0x528d97[_0x1fd431(0xbf)]),_0x4e1289['description']!=_0x528d97['description']&&(_0x4e1289[_0x1fd431(0xbb)]=_0x4e1289[_0x1fd431(0xbb)]+','+_0x528d97[_0x1fd431(0xbb)]),_0x4e1289[_0x1fd431(0xc1)]=_0x4e1289['routes'][_0x1fd431(0xc8)](_0x528d97[_0x1fd431(0xc1)]),_0x1ccbce[_0x45cb07]=_0x4e1289):_0x1ccbce[_0x45cb07]=_0x528d97;}}}return _0x1ccbce;}exports[a8_0x2842c9(0xc0)]=getRoutes;function getJoiRequest(_0x3b4408){const _0x2fbfd9=a8_0x2842c9,_0x247035=[];for(let _0x2133fa in _0x3b4408){const _0x263cb5={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x223221=typeof _0x3b4408[_0x2133fa][_0x2fbfd9(0xbc)]==_0x2fbfd9(0xde)?_0x3b4408[_0x2133fa][_0x2fbfd9(0xbc)]():_0x3b4408[_0x2133fa];_0x263cb5[_0x2fbfd9(0xd8)]=_0x2133fa,_0x263cb5[_0x2fbfd9(0xb2)]=_0x223221['type'],_0x263cb5[_0x2fbfd9(0xaf)]=(0x0,lodash_1[_0x2fbfd9(0xdf)])(_0x223221,'flags.label',_0x2133fa),_0x263cb5[_0x2fbfd9(0x95)]=(0x0,lodash_1['get'])(_0x223221,'flags.default',''),_0x263cb5['required']=(0x0,lodash_1[_0x2fbfd9(0xdf)])(_0x223221,_0x2fbfd9(0xaa),'')==_0x2fbfd9(0x88),_0x263cb5[_0x2fbfd9(0xbb)]=(0x0,lodash_1[_0x2fbfd9(0xdf)])(_0x223221,_0x2fbfd9(0x9f),'');if(_0x223221[_0x2fbfd9(0xb2)]==_0x2fbfd9(0xa1))_0x263cb5[_0x2fbfd9(0xb6)]=getJoiRequest(_0x223221[_0x2fbfd9(0x8e)]);else _0x223221[_0x2fbfd9(0xb2)]==_0x2fbfd9(0xe2)&&_0x223221['items']&&Array[_0x2fbfd9(0xb5)](_0x223221[_0x2fbfd9(0x86)])&&_0x223221[_0x2fbfd9(0x86)][0x0]&&console[_0x2fbfd9(0xdb)](_0x2133fa+_0x2fbfd9(0x9a),_0x223221);_0x223221['allow']&&Array[_0x2fbfd9(0xb5)](_0x223221[_0x2fbfd9(0xb1)])&&_0x223221[_0x2fbfd9(0xb1)]['length']>0x0&&(_0x263cb5['description']=_0x2fbfd9(0xab)+_0x223221[_0x2fbfd9(0xb1)][_0x2fbfd9(0xb9)](',')+'];'+_0x263cb5[_0x2fbfd9(0xbb)]);if(_0x263cb5[_0x2fbfd9(0xd8)]&&_0x263cb5[_0x2fbfd9(0xb2)]){const _0x413a2c={};for(const _0x5c3f4e of _0x223221[_0x2fbfd9(0xe3)]||[]){if(_0x5c3f4e[_0x2fbfd9(0xa8)]==='min'&&_0x5c3f4e['args'])_0x413a2c[_0x2fbfd9(0x9b)]=_0x5c3f4e[_0x2fbfd9(0xce)]['limit'];else _0x5c3f4e[_0x2fbfd9(0xa8)]===_0x2fbfd9(0xb0)&&(_0x413a2c[_0x2fbfd9(0xb0)]=_0x5c3f4e[_0x2fbfd9(0xce)][_0x2fbfd9(0x98)]);}_0x263cb5[_0x2fbfd9(0xe3)]=_0x413a2c;}_0x263cb5[_0x2fbfd9(0xd8)]&&_0x263cb5[_0x2fbfd9(0xaf)]&&_0x247035['push'](_0x263cb5);}return _0x247035;}function a8_0x3195(){const _0x4fa887=['getClassExtendedMetadata','171744xdMQiu','test','header','FILESSTREAM','key','tagName','String','log','FILESTREAM','iterator','function','get','string','module','array','rules','Boolean','60NjZGOZ','items','routerOptions','required','body','73QBOOmu','filepath','14KtEJNC','@midwayjs/core','keys','metadata','propertyData','RouteParamTypes','PARAM','route','9jjLJFl','default','1307832IKVJrd','parameterIndex','limit','replace','-array','min','requestMethod','filter','lodash','flags.description','4527230VWXlap','object','__esModule','ACTION_ROUTE_KEY','request','File','ACTION_KEY','number','name','noreq','flags.presence','只允许:[','startsWith','3814rPzHIT','getMethodParamTypes','title','max','allow','type','getClassMetadata','pprefix','isArray','children','path','359096AWjRNZ','join','prefix','description','describe','find','HEADERS','summary','getRoutes','routes','WEB_ROUTER_PARAM_KEY','file','QUERY','push','indexOf','Number','concat','routerName','method','10boMceA','2802008CHHxlE','1426677VtnVUY','args','@anncic-api/validator','RULES_KEY','query','length'];a8_0x3195=function(){return _0x4fa887;};return a8_0x3195();}function convertSchemaType(_0x2569e0){const _0x465f21=a8_0x2842c9;switch(_0x2569e0){case'Object':return _0x465f21(0xa1);case _0x465f21(0xe4):return'boolean';case _0x465f21(0xc7):return _0x465f21(0xa7);case _0x465f21(0xda):return _0x465f21(0xe0);case _0x465f21(0xa5):return _0x465f21(0xc3);default:return _0x465f21(0xe0);}}function convertTypeToString(_0x5c920e){const _0x279a22=a8_0x2842c9;switch(_0x5c920e){case core_1[_0x279a22(0x91)][_0x279a22(0xbe)]:return _0x279a22(0xd6);case core_1[_0x279a22(0x91)][_0x279a22(0xc4)]:return _0x279a22(0xd1);case core_1[_0x279a22(0x91)][_0x279a22(0x92)]:return'path';case core_1[_0x279a22(0x91)]['BODY']:return _0x279a22(0x89);case core_1[_0x279a22(0x91)]['FIELDS']:case core_1[_0x279a22(0x91)][_0x279a22(0xd7)]:case core_1[_0x279a22(0x91)][_0x279a22(0xdc)]:return _0x279a22(0xc3);default:return _0x279a22(0xd6);}}
|
|
1
|
+
'use strict';const a8_0x3db27e=a8_0x58a6;(function(_0x6609b0,_0x580fa1){const _0x539538=a8_0x58a6,_0x5c182f=_0x6609b0();while(!![]){try{const _0x580e19=-parseInt(_0x539538(0xe1))/0x1*(-parseInt(_0x539538(0xfd))/0x2)+-parseInt(_0x539538(0x115))/0x3+-parseInt(_0x539538(0x107))/0x4*(parseInt(_0x539538(0x108))/0x5)+-parseInt(_0x539538(0xff))/0x6+-parseInt(_0x539538(0x112))/0x7+-parseInt(_0x539538(0xf6))/0x8+parseInt(_0x539538(0xd3))/0x9;if(_0x580e19===_0x580fa1)break;else _0x5c182f['push'](_0x5c182f['shift']());}catch(_0x1639d3){_0x5c182f['push'](_0x5c182f['shift']());}}}(a8_0x3c54,0x9109f));Object[a8_0x3db27e(0xde)](exports,a8_0x3db27e(0xdf),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x58a6(_0x148ffe,_0x5bff18){const _0x3c54c4=a8_0x3c54();return a8_0x58a6=function(_0x58a666,_0x26d366){_0x58a666=_0x58a666-0xd0;let _0x439a16=_0x3c54c4[_0x58a666];return _0x439a16;},a8_0x58a6(_0x148ffe,_0x5bff18);}const lodash_1=require(a8_0x3db27e(0x103)),validator_1=require(a8_0x3db27e(0xe8)),core_1=require(a8_0x3db27e(0x11a)),core_2=require(a8_0x3db27e(0x11a)),core_3=require(a8_0x3db27e(0x11a)),action_1=require(a8_0x3db27e(0xdb));function a8_0x3c54(){const _0x110ac4=['只允许:[','boolean','key','getClassExtendedMetadata','indexOf','name','metadata','module','propertyData','function','noreq','文件上传-','14744916wylufl','FIELDS','getMethodParamTypes','min','describe','items','flags.description','File','../types/action','FILESTREAM','default','defineProperty','__esModule','split','2dtzxBl','String','file','Object','query','type','flags.label','@anncic-api/validator','FILESSTREAM','length','RouteParamTypes','prefix','tagName','isArray','concat','BODY','required','find','header','WEB_ROUTER_PARAM_KEY','join','7233784oYxqpv','children','number','filter','string','path','body','864274fJTQdX','route','1715976wHZdaK','keys','static/apitest','getRoutes','lodash','listModule','routerName','method','19532kWjHtP','265OzvuMf','routes','object','routerOptions','parameterIndex','title','limit','getClassMetadata','args','/static/apitest','635824yFOVfw','max','push','1106007ZqaFCJ','get','allow','test','description','@midwayjs/core','iterator','ACTION_ROUTE_KEY','startsWith','request','RULES_KEY','PARAM','pprefix','array','Number','requestMethod','ACTION_KEY','filepath','rules','summary'];a8_0x3c54=function(){return _0x110ac4;};return a8_0x3c54();}function getRoutes(_0x4617aa={'prefix':'/','module':![]}){const _0x4c3398=a8_0x3db27e;var _0xaa87d9,_0x3c8868;const _0x5be9a1=(0x0,core_3[_0x4c3398(0x104)])(action_1[_0x4c3398(0x125)]),_0x5ec84b={},_0x5807a1=Array[_0x4c3398(0xee)](_0x4617aa[_0x4c3398(0xf9)]||[])?_0x4617aa[_0x4c3398(0xf9)]||[]:[_0x4617aa[_0x4c3398(0xf9)]];_0x48bb3b:for(const _0x24184f of _0x5be9a1){let _0x1ef4f1=(0x0,core_3[_0x4c3398(0x10f)])(action_1[_0x4c3398(0x125)],_0x24184f),_0x2128c0=(0x0,core_3[_0x4c3398(0x10f)])(action_1[_0x4c3398(0x11c)],_0x24184f);if(_0x1ef4f1&&_0x2128c0){let _0x53f34f=_0x1ef4f1[_0x4c3398(0xec)],_0x3149a9={};if(_0x4617aa[_0x4c3398(0x130)]&&(0x0,lodash_1['get'])(_0x1ef4f1,_0x4c3398(0x130),![])!=_0x4617aa[_0x4c3398(0x130)])continue _0x48bb3b;else{if(_0x4617aa[_0x4c3398(0x130)]===![]&&!!(0x0,lodash_1[_0x4c3398(0x116)])(_0x1ef4f1,_0x4c3398(0x130),null))continue _0x48bb3b;}if(_0x4617aa[_0x4c3398(0xec)]&&!_0x53f34f[_0x4c3398(0x11d)](_0x4617aa[_0x4c3398(0xec)]))continue _0x48bb3b;_0x53f34f!=='/'?(_0x3149a9[_0x4c3398(0x128)]=(_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1['routerOptions'][_0x4c3398(0xed)])||(/^\//[_0x4c3398(0x118)](_0x53f34f)?_0x53f34f[_0x4c3398(0xe0)]('/')[0x1]:_0x53f34f),_0x3149a9[_0x4c3398(0x119)]=(_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1[_0x4c3398(0x10b)]['description'])||_0x3149a9[_0x4c3398(0x128)],_0x3149a9[_0x4c3398(0x109)]=[]):(_0x3149a9[_0x4c3398(0x128)]=(_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1[_0x4c3398(0x10b)]['tagName'])||'default',_0x3149a9['description']=(_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1[_0x4c3398(0x10b)][_0x4c3398(0x119)])||'',_0x3149a9[_0x4c3398(0x109)]=[]);_0x4617aa[_0x4c3398(0x126)]&&(_0x3149a9[_0x4c3398(0x126)]=_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1[_0x4c3398(0x126)]);(_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1[_0x4c3398(0x121)])&&(_0x3149a9['prefix']=_0x1ef4f1[_0x4c3398(0x121)]);(_0x1ef4f1===null||_0x1ef4f1===void 0x0?void 0x0:_0x1ef4f1['module'])&&(_0x3149a9[_0x4c3398(0x130)]=_0x1ef4f1[_0x4c3398(0x130)]);let _0x3d3f3c=(0x0,core_3[_0x4c3398(0x10f)])(core_2['INJECT_CUSTOM_PARAM'],_0x24184f)||{};if(typeof _0x2128c0[Symbol[_0x4c3398(0x11b)]]===_0x4c3398(0xd0))for(let _0x711c03 of _0x2128c0){let _0x8d9d51={};_0x8d9d51[_0x4c3398(0x106)]=_0x711c03[_0x4c3398(0x124)],_0x8d9d51[_0x4c3398(0xfe)]=(_0x53f34f+_0x711c03[_0x4c3398(0xfb)])['replace'](/\/{1,}/,'/'),_0x8d9d51[_0x4c3398(0x128)]=(_0x711c03===null||_0x711c03===void 0x0?void 0x0:_0x711c03[_0x4c3398(0x105)])||_0x3149a9[_0x4c3398(0x128)]||_0x4c3398(0xdd),_0x8d9d51[_0x4c3398(0x119)]=(_0x711c03===null||_0x711c03===void 0x0?void 0x0:_0x711c03[_0x4c3398(0x119)])||'',_0x8d9d51[_0x4c3398(0x11e)]=[];if(!(0x0,lodash_1[_0x4c3398(0x11d)])(_0x8d9d51[_0x4c3398(0xfe)],_0x4c3398(0x101))&&!(0x0,lodash_1['startsWith'])(_0x8d9d51[_0x4c3398(0xfe)],_0x4c3398(0x111))&&_0x5807a1[_0x4c3398(0x12d)](_0x8d9d51[_0x4c3398(0xfe)])===-0x1){if(!(_0x4617aa===null||_0x4617aa===void 0x0?void 0x0:_0x4617aa[_0x4c3398(0xd1)])){let _0x3d0487=(0x0,core_3[_0x4c3398(0xd5)])(new _0x24184f(),_0x711c03[_0x4c3398(0x106)]);for(const _0x279fcc in _0x3d0487){let _0x47f27d=(_0xaa87d9=_0x3d3f3c[_0x711c03['method']])===null||_0xaa87d9===void 0x0?void 0x0:_0xaa87d9[_0x4c3398(0xf2)](_0x5b6521=>_0x5b6521[_0x4c3398(0x10c)]==_0x279fcc&&_0x5b6521[_0x4c3398(0x12b)]===core_2[_0x4c3398(0xf4)]&&(_0x5b6521===null||_0x5b6521===void 0x0?void 0x0:_0x5b6521[_0x4c3398(0x12f)]));if(_0x47f27d===null||_0x47f27d===void 0x0?void 0x0:_0x47f27d[_0x4c3398(0x12f)]){let _0x26e3ee=convertTypeToString(_0x47f27d[_0x4c3398(0x12f)][_0x4c3398(0xe6)]||0x0);if([_0x4c3398(0xe5),_0x4c3398(0xfc)][_0x4c3398(0x12d)](_0x26e3ee)!=-0x1&&_0x47f27d[_0x4c3398(0x12f)][_0x4c3398(0x131)][_0x4c3398(0x12d)](':')==-0x1&&!_0x8d9d51[_0x4c3398(0x11e)][_0x4c3398(0xf2)](_0x25608d=>_0x25608d[_0x4c3398(0x12b)]==_0x47f27d[_0x4c3398(0x12f)]['propertyData']))_0x8d9d51[_0x4c3398(0x11e)][_0x4c3398(0x114)]({'key':_0x47f27d[_0x4c3398(0x12f)][_0x4c3398(0x131)],'title':_0x47f27d[_0x4c3398(0x12f)][_0x4c3398(0x131)],'type':convertSchemaType(_0x3d0487[_0x47f27d[_0x4c3398(0x10c)]][_0x4c3398(0x12e)]),'required':![],'default':'','desc':''});else{if(_0x26e3ee==_0x4c3398(0xe3)){let _0x3c45ae=((_0x3c8868=_0x47f27d===null||_0x47f27d===void 0x0?void 0x0:_0x47f27d[_0x4c3398(0x12f)])===null||_0x3c8868===void 0x0?void 0x0:_0x3c8868[_0x4c3398(0x131)])||_0x4c3398(0xe3);_0x3c45ae[_0x4c3398(0x12d)](':')==-0x1&&!_0x8d9d51[_0x4c3398(0x11e)]['find'](_0x212d6b=>_0x212d6b['key']==_0x3c45ae&&_0x212d6b[_0x4c3398(0xe6)]==_0x4c3398(0xe3))&&_0x8d9d51[_0x4c3398(0x11e)]['push']({'key':_0x3c45ae,'title':_0x4c3398(0xd2)+_0x3c45ae,'type':_0x4c3398(0xe3),'required':!![],'default':'','desc':''});}}}else{const _0x1f1152=(0x0,core_3[_0x4c3398(0x12c)])(validator_1[_0x4c3398(0x11f)],_0x3d0487[_0x279fcc]);_0x1f1152&&_0x8d9d51[_0x4c3398(0x11e)][_0x4c3398(0x114)](...getJoiRequest(_0x1f1152));}}}_0x3149a9['routes'][_0x4c3398(0x114)](_0x8d9d51);}}if(_0x3149a9[_0x4c3398(0x109)][_0x4c3398(0xea)]>0x0){let _0x2b5633=_0x5ec84b[_0x53f34f];_0x2b5633?(_0x2b5633[_0x4c3398(0x128)]!=_0x3149a9[_0x4c3398(0x128)]&&(_0x2b5633['summary']=_0x2b5633[_0x4c3398(0x128)]+','+_0x3149a9[_0x4c3398(0x128)]),_0x2b5633[_0x4c3398(0x119)]!=_0x3149a9[_0x4c3398(0x119)]&&(_0x2b5633['description']=_0x2b5633[_0x4c3398(0x119)]+','+_0x3149a9[_0x4c3398(0x119)]),_0x2b5633['routes']=_0x2b5633[_0x4c3398(0x109)][_0x4c3398(0xef)](_0x3149a9[_0x4c3398(0x109)]),_0x5ec84b[_0x53f34f]=_0x2b5633):_0x5ec84b[_0x53f34f]=_0x3149a9;}}}return _0x5ec84b;}exports[a8_0x3db27e(0x102)]=getRoutes;function getJoiRequest(_0x11796f){const _0x46aee8=a8_0x3db27e,_0x3421bb=[];for(let _0x1bf743 in _0x11796f){const _0x5ea508={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xfbe2fd=typeof _0x11796f[_0x1bf743]['describe']=='function'?_0x11796f[_0x1bf743][_0x46aee8(0xd7)]():_0x11796f[_0x1bf743];_0x5ea508[_0x46aee8(0x12b)]=_0x1bf743,_0x5ea508[_0x46aee8(0xe6)]=_0xfbe2fd[_0x46aee8(0xe6)],_0x5ea508[_0x46aee8(0x10d)]=(0x0,lodash_1[_0x46aee8(0x116)])(_0xfbe2fd,_0x46aee8(0xe7),_0x1bf743),_0x5ea508[_0x46aee8(0xdd)]=(0x0,lodash_1[_0x46aee8(0x116)])(_0xfbe2fd,'flags.default',''),_0x5ea508[_0x46aee8(0xf1)]=(0x0,lodash_1[_0x46aee8(0x116)])(_0xfbe2fd,'flags.presence','')=='required',_0x5ea508[_0x46aee8(0x119)]=(0x0,lodash_1[_0x46aee8(0x116)])(_0xfbe2fd,_0x46aee8(0xd9),'');if(_0xfbe2fd[_0x46aee8(0xe6)]==_0x46aee8(0x10a))_0x5ea508[_0x46aee8(0xf7)]=getJoiRequest(_0xfbe2fd[_0x46aee8(0x100)]);else _0xfbe2fd[_0x46aee8(0xe6)]==_0x46aee8(0x122)&&_0xfbe2fd[_0x46aee8(0xd8)]&&Array[_0x46aee8(0xee)](_0xfbe2fd[_0x46aee8(0xd8)])&&_0xfbe2fd[_0x46aee8(0xd8)][0x0]&&console['log'](_0x1bf743+'-array',_0xfbe2fd);_0xfbe2fd[_0x46aee8(0x117)]&&Array[_0x46aee8(0xee)](_0xfbe2fd[_0x46aee8(0x117)])&&_0xfbe2fd[_0x46aee8(0x117)][_0x46aee8(0xea)]>0x0&&(_0x5ea508['description']=_0x46aee8(0x129)+_0xfbe2fd[_0x46aee8(0x117)][_0x46aee8(0xf5)](',')+'];'+_0x5ea508['description']);if(_0x5ea508[_0x46aee8(0x12b)]&&_0x5ea508[_0x46aee8(0xe6)]){const _0x4b02b2={};for(const _0x5298a0 of _0xfbe2fd[_0x46aee8(0x127)]||[]){if(_0x5298a0['name']===_0x46aee8(0xd6)&&_0x5298a0[_0x46aee8(0x110)])_0x4b02b2[_0x46aee8(0xd6)]=_0x5298a0[_0x46aee8(0x110)][_0x46aee8(0x10e)];else _0x5298a0[_0x46aee8(0x12e)]===_0x46aee8(0x113)&&(_0x4b02b2[_0x46aee8(0x113)]=_0x5298a0[_0x46aee8(0x110)][_0x46aee8(0x10e)]);}_0x5ea508[_0x46aee8(0x127)]=_0x4b02b2;}_0x5ea508[_0x46aee8(0x12b)]&&_0x5ea508['title']&&_0x3421bb[_0x46aee8(0x114)](_0x5ea508);}return _0x3421bb;}function convertSchemaType(_0x1b5e20){const _0x39927b=a8_0x3db27e;switch(_0x1b5e20){case _0x39927b(0xe4):return _0x39927b(0x10a);case'Boolean':return _0x39927b(0x12a);case _0x39927b(0x123):return _0x39927b(0xf8);case _0x39927b(0xe2):return _0x39927b(0xfa);case _0x39927b(0xda):return _0x39927b(0xe3);default:return _0x39927b(0xfa);}}function convertTypeToString(_0x3eaf7e){const _0x2b23db=a8_0x3db27e;switch(_0x3eaf7e){case core_1[_0x2b23db(0xeb)]['HEADERS']:return _0x2b23db(0xf3);case core_1[_0x2b23db(0xeb)]['QUERY']:return'query';case core_1[_0x2b23db(0xeb)][_0x2b23db(0x120)]:return _0x2b23db(0xfb);case core_1[_0x2b23db(0xeb)][_0x2b23db(0xf0)]:return _0x2b23db(0xfc);case core_1[_0x2b23db(0xeb)][_0x2b23db(0xd4)]:case core_1[_0x2b23db(0xeb)][_0x2b23db(0xe9)]:case core_1[_0x2b23db(0xeb)][_0x2b23db(0xdc)]:return _0x2b23db(0xe3);default:return _0x2b23db(0xf3);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x400dfb=a9_0x3b2d;(function(_0x10c0a7,_0x1bcc52){var _0x1ad05a=a9_0x3b2d,_0x3cb684=_0x10c0a7();while(!![]){try{var _0x2d50ac=-parseInt(_0x1ad05a(0x1a4))/0x1*(-parseInt(_0x1ad05a(0x1a5))/0x2)+parseInt(_0x1ad05a(0x1d6))/0x3*(-parseInt(_0x1ad05a(0x1de))/0x4)+parseInt(_0x1ad05a(0x1d4))/0x5*(parseInt(_0x1ad05a(0x1d5))/0x6)+parseInt(_0x1ad05a(0x1c5))/0x7*(-parseInt(_0x1ad05a(0x1d2))/0x8)+-parseInt(_0x1ad05a(0x1b8))/0x9+-parseInt(_0x1ad05a(0x1c6))/0xa+parseInt(_0x1ad05a(0x1d8))/0xb*(parseInt(_0x1ad05a(0x1a0))/0xc);if(_0x2d50ac===_0x1bcc52)break;else _0x3cb684['push'](_0x3cb684['shift']());}catch(_0x36a9d3){_0x3cb684['push'](_0x3cb684['shift']());}}}(a9_0x4906,0x9d9de));var __createBinding=this&&this[a9_0x400dfb(0x1b2)]||(Object[a9_0x400dfb(0x1dd)]?function(_0x52bd43,_0x384dd5,_0x5c173e,_0x2b2431){var _0x53a56f=a9_0x400dfb;if(_0x2b2431===undefined)_0x2b2431=_0x5c173e;var _0x158045=Object['getOwnPropertyDescriptor'](_0x384dd5,_0x5c173e);(!_0x158045||('get'in _0x158045?!_0x384dd5[_0x53a56f(0x1b5)]:_0x158045[_0x53a56f(0x1d3)]||_0x158045[_0x53a56f(0x1b9)]))&&(_0x158045={'enumerable':!![],'get':function(){return _0x384dd5[_0x5c173e];}}),Object[_0x53a56f(0x1a9)](_0x52bd43,_0x2b2431,_0x158045);}:function(_0x3c32d6,_0x1c715e,_0x1736d9,_0x4094b3){if(_0x4094b3===undefined)_0x4094b3=_0x1736d9;_0x3c32d6[_0x4094b3]=_0x1c715e[_0x1736d9];}),__exportStar=this&&this[a9_0x400dfb(0x1bd)]||function(_0x2bb78f,_0x5c67a6){var _0x45cfef=a9_0x400dfb;for(var _0x1dcff1 in _0x2bb78f)if(_0x1dcff1!==_0x45cfef(0x1ce)&&!Object[_0x45cfef(0x1bf)][_0x45cfef(0x1a6)][_0x45cfef(0x1be)](_0x5c67a6,_0x1dcff1))__createBinding(_0x5c67a6,_0x2bb78f,_0x1dcff1);};Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1b5),{'value':!![]}),exports[a9_0x400dfb(0x1a8)]=exports['ScopeEnum']=exports[a9_0x400dfb(0x1ae)]=exports[a9_0x400dfb(0x1c9)]=exports['Provide']=exports[a9_0x400dfb(0x1d9)]=exports['Config']=exports[a9_0x400dfb(0x1a3)]=exports[a9_0x400dfb(0x1dc)]=exports[a9_0x400dfb(0x1ba)]=exports[a9_0x400dfb(0x1c3)]=exports[a9_0x400dfb(0x1d7)]=exports[a9_0x400dfb(0x1a7)]=exports[a9_0x400dfb(0x1c4)]=exports[a9_0x400dfb(0x19c)]=exports[a9_0x400dfb(0x1ab)]=exports[a9_0x400dfb(0x1b0)]=exports[a9_0x400dfb(0x1cf)]=exports['ValidatorError']=exports[a9_0x400dfb(0x1af)]=exports[a9_0x400dfb(0x1b1)]=exports['EventService']=exports['CacheService']=exports['ApiError']=exports[a9_0x400dfb(0x1cb)]=exports[a9_0x400dfb(0x1cc)]=exports[a9_0x400dfb(0x1b7)]=exports['Api']=void 0x0;const getAppsConfig_1=require(a9_0x400dfb(0x1db));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1a8),{'enumerable':!![],'get':function(){var _0x17d023=a9_0x400dfb;return getAppsConfig_1[_0x17d023(0x1a8)];}}),__exportStar(require(a9_0x400dfb(0x19d)),exports),__exportStar(require(a9_0x400dfb(0x1b3)),exports);var ActionApi_1=require(a9_0x400dfb(0x1b4));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1da),{'enumerable':!![],'get':function(){var _0x232589=a9_0x400dfb;return ActionApi_1[_0x232589(0x1da)];}});var Action_1=require(a9_0x400dfb(0x1aa));Object['defineProperty'](exports,a9_0x400dfb(0x1b7),{'enumerable':!![],'get':function(){var _0x413418=a9_0x400dfb;return Action_1[_0x413418(0x1b7)];}});var ActionApitest_1=require(a9_0x400dfb(0x1c8));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1cc),{'enumerable':!![],'get':function(){var _0x498dba=a9_0x400dfb;return ActionApitest_1[_0x498dba(0x1cc)];}});var getRoutes_1=require(a9_0x400dfb(0x1c2));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1cb),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x400dfb(0x1a2));Object[a9_0x400dfb(0x1a9)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x2f7975=a9_0x400dfb;return ApiError_1[_0x2f7975(0x1ac)];}});var cache_1=require(a9_0x400dfb(0x1bb));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x19e),{'enumerable':!![],'get':function(){var _0x4fa5a6=a9_0x400dfb;return cache_1[_0x4fa5a6(0x19e)];}});var event_1=require(a9_0x400dfb(0x1ad));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1d1),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x400dfb(0x1bc));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1b1),{'enumerable':!![],'get':function(){var _0x71c17c=a9_0x400dfb;return ApiService_1[_0x71c17c(0x1b1)];}});var ExcelService_1=require(a9_0x400dfb(0x1d0));Object['defineProperty'](exports,a9_0x400dfb(0x1af),{'enumerable':!![],'get':function(){var _0x190413=a9_0x400dfb;return ExcelService_1[_0x190413(0x1af)];}});var validator_1=require(a9_0x400dfb(0x1c0));function a9_0x4906(){var _0x16e56b=['./decorator/ActionApi','__esModule','./configuration','Action','6298020kSbMNs','configurable','Headers','@anncic-api/cache','./service/ApiService','__exportStar','call','prototype','@anncic-api/validator','@midwayjs/core','./helper/getRoutes','Query','Fields','41797lTizVl','3312630qDbXjj','ScopeEnum','./decorator/ActionApitest','Inject','ValidatorError','getRoutes','Apitest','CustomConfiguration','default','ValidatorService','./service/ExcelService','EventService','8rdcaKj','writable','305OuJZoP','107742LeILLc','66JvhIXk','Param','12276eGZhDm','Logger','Api','./helper/getAppsConfig','Init','create','181796JtKnOr','Files','./types/common','CacheService','Config','4440NBGgrS','Provide','./exception/ApiError','App','1174193qWCxHD','2mlMbNv','hasOwnProperty','Body','getAppsConfig','defineProperty','./decorator/Action','File','ApiError','@anncic-api/event','Scope','ExcelService','Configuration','ApiService','__createBinding','./service/ApitestService'];a9_0x4906=function(){return _0x16e56b;};return a9_0x4906();}function a9_0x3b2d(_0x2636d8,_0x37cfca){var _0x49069d=a9_0x4906();return a9_0x3b2d=function(_0x3b2d5e,_0x469add){_0x3b2d5e=_0x3b2d5e-0x19c;var _0x2bdd24=_0x49069d[_0x3b2d5e];return _0x2bdd24;},a9_0x3b2d(_0x2636d8,_0x37cfca);}Object['defineProperty'](exports,a9_0x400dfb(0x1ca),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object['defineProperty'](exports,a9_0x400dfb(0x1cf),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x400dfb(0x1b6));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1b0),{'enumerable':!![],'get':function(){var _0x4340f5=a9_0x400dfb;return configuration_1[_0x4340f5(0x1cd)];}});var core_1=require(a9_0x400dfb(0x1c1));Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1ab),{'enumerable':!![],'get':function(){var _0x27249f=a9_0x400dfb;return core_1[_0x27249f(0x1ab)];}}),Object[a9_0x400dfb(0x1a9)](exports,'Files',{'enumerable':!![],'get':function(){var _0x36f958=a9_0x400dfb;return core_1[_0x36f958(0x19c)];}}),Object[a9_0x400dfb(0x1a9)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x50ca84=a9_0x400dfb;return core_1[_0x50ca84(0x1c4)];}}),Object['defineProperty'](exports,a9_0x400dfb(0x1a7),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1d7),{'enumerable':!![],'get':function(){var _0x15f7cd=a9_0x400dfb;return core_1[_0x15f7cd(0x1d7)];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1c3),{'enumerable':!![],'get':function(){var _0x5b6a48=a9_0x400dfb;return core_1[_0x5b6a48(0x1c3)];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1ba),{'enumerable':!![],'get':function(){var _0x5040be=a9_0x400dfb;return core_1[_0x5040be(0x1ba)];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1dc),{'enumerable':!![],'get':function(){var _0x403496=a9_0x400dfb;return core_1[_0x403496(0x1dc)];}});var core_2=require(a9_0x400dfb(0x1c1));Object['defineProperty'](exports,a9_0x400dfb(0x1a3),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x400dfb(0x1a9)](exports,'Config',{'enumerable':!![],'get':function(){var _0x239ad1=a9_0x400dfb;return core_2[_0x239ad1(0x19f)];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1d9),{'enumerable':!![],'get':function(){var _0x44fe82=a9_0x400dfb;return core_2[_0x44fe82(0x1d9)];}}),Object[a9_0x400dfb(0x1a9)](exports,'Provide',{'enumerable':!![],'get':function(){var _0xe9987e=a9_0x400dfb;return core_2[_0xe9987e(0x1a1)];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1c9),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object['defineProperty'](exports,a9_0x400dfb(0x1ae),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x400dfb(0x1a9)](exports,a9_0x400dfb(0x1c7),{'enumerable':!![],'get':function(){var _0x2b5042=a9_0x400dfb;return core_2[_0x2b5042(0x1c7)];}}),global[a9_0x400dfb(0x1a8)]=getAppsConfig_1[a9_0x400dfb(0x1a8)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x5cd3ca=a10_0x9773;(function(_0x42edb1,_0x2e99be){var _0x13339f=a10_0x9773,_0x568a7b=_0x42edb1();while(!![]){try{var _0x4fbe8d=parseInt(_0x13339f(0x1dd))/0x1*(-parseInt(_0x13339f(0x1ea))/0x2)+-parseInt(_0x13339f(0x1f3))/0x3*(-parseInt(_0x13339f(0x204))/0x4)+-parseInt(_0x13339f(0x1d5))/0x5*(-parseInt(_0x13339f(0x1f8))/0x6)+parseInt(_0x13339f(0x1f5))/0x7+-parseInt(_0x13339f(0x205))/0x8*(parseInt(_0x13339f(0x203))/0x9)+parseInt(_0x13339f(0x1ec))/0xa*(parseInt(_0x13339f(0x209))/0xb)+-parseInt(_0x13339f(0x20c))/0xc*(parseInt(_0x13339f(0x1ff))/0xd);if(_0x4fbe8d===_0x2e99be)break;else _0x568a7b['push'](_0x568a7b['shift']());}catch(_0x2c16d8){_0x568a7b['push'](_0x568a7b['shift']());}}}(a10_0x1ded,0x8e86f));var __decorate=this&&this[a10_0x5cd3ca(0x1fd)]||function(_0x46fd9b,_0x30a10b,_0x213b7c,_0x183838){var _0x5711c7=a10_0x5cd3ca,_0x164fd1=arguments[_0x5711c7(0x201)],_0x5d3204=_0x164fd1<0x3?_0x30a10b:_0x183838===null?_0x183838=Object[_0x5711c7(0x1f1)](_0x30a10b,_0x213b7c):_0x183838,_0x307c70;if(typeof Reflect===_0x5711c7(0x1f9)&&typeof Reflect[_0x5711c7(0x1eb)]===_0x5711c7(0x1d6))_0x5d3204=Reflect[_0x5711c7(0x1eb)](_0x46fd9b,_0x30a10b,_0x213b7c,_0x183838);else{for(var _0x4bde82=_0x46fd9b[_0x5711c7(0x201)]-0x1;_0x4bde82>=0x0;_0x4bde82--)if(_0x307c70=_0x46fd9b[_0x4bde82])_0x5d3204=(_0x164fd1<0x3?_0x307c70(_0x5d3204):_0x164fd1>0x3?_0x307c70(_0x30a10b,_0x213b7c,_0x5d3204):_0x307c70(_0x30a10b,_0x213b7c))||_0x5d3204;}return _0x164fd1>0x3&&_0x5d3204&&Object[_0x5711c7(0x1d4)](_0x30a10b,_0x213b7c,_0x5d3204),_0x5d3204;},__metadata=this&&this[a10_0x5cd3ca(0x1d9)]||function(_0x41f9f0,_0x37a034){var _0x32af17=a10_0x5cd3ca;if(typeof Reflect==='object'&&typeof Reflect[_0x32af17(0x1fc)]===_0x32af17(0x1d6))return Reflect[_0x32af17(0x1fc)](_0x41f9f0,_0x37a034);};Object[a10_0x5cd3ca(0x1d4)](exports,a10_0x5cd3ca(0x20d),{'value':!![]}),exports[a10_0x5cd3ca(0x20b)]=void 0x0;function a10_0x9773(_0x557466,_0x50a926){var _0x1ded3c=a10_0x1ded();return a10_0x9773=function(_0x977389,_0x46ab2c){_0x977389=_0x977389-0x1d3;var _0x7174=_0x1ded3c[_0x977389];return _0x7174;},a10_0x9773(_0x557466,_0x50a926);}function a10_0x1ded(){var _0x23c951=['push','sort','fromEntries','HEADERS_LACK','devices','../exception/ApiError','HEADERS_SIGNATURE','toLowerCase','secret=','ApiError','design:type','27686oGqhyn','decorate','2390910DLOmtY','TIMEOUT','timeout','缺少头信息:signature','checkcode','getOwnPropertyDescriptor','toString','3HqfOTu','缺少头信息:','4777962VIpDvQ','map','entries','440382OtkGKx','object','checksign','crypto-js','metadata','__decorate','undefined','13WTqcDv','secret','length','MD5','18MsACxw','3126008erOrlt','1983608kMylTE','Singleton','password','HEADERS_CHECKCODE','33mxBjTm','logintime','ApiService','14138652jrYrOR','__esModule','token','device','HEADERS_DEVICE','getsign','signature','defineProperty','75QJdwsV','function','now','config','__metadata','prototype','Scope','Config','74KHdbfk','requesttime'];a10_0x1ded=function(){return _0x23c951;};return a10_0x1ded();}const crypto_js_1=require(a10_0x5cd3ca(0x1fb)),core_1=require('@midwayjs/core'),ApiError_1=require(a10_0x5cd3ca(0x1e4));let ApiService=class ApiService{[a10_0x5cd3ca(0x207)](_0x503b33){var _0x52ff6c=a10_0x5cd3ca,_0x2168a8;return _0x503b33?(0x0,crypto_js_1[_0x52ff6c(0x202)])(_0x503b33+(0x0,crypto_js_1[_0x52ff6c(0x202)])((0x0,crypto_js_1['MD5'])(_0x503b33)[_0x52ff6c(0x1f2)]()+((_0x2168a8=this[_0x52ff6c(0x1d8)])===null||_0x2168a8===void 0x0?void 0x0:_0x2168a8[_0x52ff6c(0x207)]))[_0x52ff6c(0x1f2)]())[_0x52ff6c(0x1f2)]():'';}['getcheck'](_0x54b16f,_0x5c8ba9,_0x1f1684=Date[a10_0x5cd3ca(0x1d7)]()){var _0x14d275=a10_0x5cd3ca;return{'Token':_0x54b16f,'Logintime':_0x1f1684,'Checkcode':this[_0x14d275(0x1f0)](_0x54b16f,_0x5c8ba9,_0x1f1684)};}[a10_0x5cd3ca(0x211)](_0x5568cf={}){var _0x2c5d59=a10_0x5cd3ca;const _0x28ed41=[],_0x44a6dc=Object['fromEntries'](Object[_0x2c5d59(0x1f7)](_0x5568cf)['map'](_0x129ce7=>[_0x129ce7[0x0][_0x2c5d59(0x1e6)](),_0x129ce7[0x1]]));for(let _0xcb71e4 of[_0x2c5d59(0x20f),_0x2c5d59(0x1de),_0x2c5d59(0x20e),_0x2c5d59(0x20a),_0x2c5d59(0x1f0)]){if(typeof _0x44a6dc[_0xcb71e4]==_0x2c5d59(0x1fe))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x2c5d59(0x1f4)+_0xcb71e4});_0x28ed41[_0x2c5d59(0x1df)](_0xcb71e4+'='+_0x44a6dc[_0xcb71e4]);}if(Math['abs'](_0x44a6dc[_0x2c5d59(0x1de)])-Date[_0x2c5d59(0x1d7)]()>this[_0x2c5d59(0x1d8)][_0x2c5d59(0x1ee)])throw new AnnError(ApiError_1[_0x2c5d59(0x1e8)][_0x2c5d59(0x1ed)]);if(!this[_0x2c5d59(0x1d8)]['devices'][_0x44a6dc[_0x2c5d59(0x20f)]]||!this[_0x2c5d59(0x1d8)][_0x2c5d59(0x1e3)][_0x44a6dc[_0x2c5d59(0x20f)]][_0x2c5d59(0x200)]||!this['config'][_0x2c5d59(0x1e3)][_0x44a6dc['device']][_0x2c5d59(0x1f0)])throw new AnnError(ApiError_1[_0x2c5d59(0x1e8)][_0x2c5d59(0x210)]);if(_0x44a6dc[_0x2c5d59(0x20e)]&&_0x44a6dc['checkcode']!=this[_0x2c5d59(0x1f0)](_0x44a6dc[_0x2c5d59(0x20e)],_0x44a6dc[_0x2c5d59(0x20f)],_0x44a6dc[_0x2c5d59(0x20a)]))throw new AnnError(ApiError_1[_0x2c5d59(0x1e8)][_0x2c5d59(0x208)]);return _0x28ed41[_0x2c5d59(0x1df)](_0x2c5d59(0x1e7)+this[_0x2c5d59(0x1d8)][_0x2c5d59(0x1e3)][_0x44a6dc[_0x2c5d59(0x20f)]][_0x2c5d59(0x200)]),(0x0,crypto_js_1[_0x2c5d59(0x202)])(_0x28ed41[_0x2c5d59(0x1e0)]()['join'](''))[_0x2c5d59(0x1f2)]();}['checkcode'](_0xc4b401,_0x37157f,_0x41a7b3=Date['now']()){var _0x37e427=a10_0x5cd3ca,_0x584c46,_0x43eac1,_0x34ae39;if(!((_0x584c46=this[_0x37e427(0x1d8)])===null||_0x584c46===void 0x0?void 0x0:_0x584c46['devices'][_0x37157f])||!((_0x34ae39=(_0x43eac1=this[_0x37e427(0x1d8)])===null||_0x43eac1===void 0x0?void 0x0:_0x43eac1[_0x37e427(0x1e3)][_0x37157f])===null||_0x34ae39===void 0x0?void 0x0:_0x34ae39[_0x37e427(0x1f0)]))throw new AnnError(ApiError_1[_0x37e427(0x1e8)][_0x37e427(0x210)]);return(0x0,crypto_js_1[_0x37e427(0x202)])(_0xc4b401+(0x0,crypto_js_1[_0x37e427(0x202)])(_0x41a7b3+this['config'][_0x37e427(0x1e3)][_0x37157f][_0x37e427(0x1f0)])[_0x37e427(0x1f2)]())[_0x37e427(0x1f2)]();}[a10_0x5cd3ca(0x1fa)](_0xfa3169={}){var _0x19fbc9=a10_0x5cd3ca;const _0x55d138=Object[_0x19fbc9(0x1e1)](Object[_0x19fbc9(0x1f7)](_0xfa3169)[_0x19fbc9(0x1f6)](_0x32b0f5=>[_0x32b0f5[0x0][_0x19fbc9(0x1e6)](),_0x32b0f5[0x1]]));if(!(_0x55d138===null||_0x55d138===void 0x0?void 0x0:_0x55d138[_0x19fbc9(0x1d3)]))throw new AnnError(ApiError_1[_0x19fbc9(0x1e8)][_0x19fbc9(0x1e2)],{'message':_0x19fbc9(0x1ef)});if((_0x55d138===null||_0x55d138===void 0x0?void 0x0:_0x55d138[_0x19fbc9(0x1d3)])!=this[_0x19fbc9(0x211)](_0x55d138))throw new AnnError(ApiError_1[_0x19fbc9(0x1e8)][_0x19fbc9(0x1e5)]);return!![];}};__decorate([(0x0,core_1[a10_0x5cd3ca(0x1dc)])('anncicapi'),__metadata(a10_0x5cd3ca(0x1e9),Object)],ApiService[a10_0x5cd3ca(0x1da)],a10_0x5cd3ca(0x1d8),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x5cd3ca(0x1db)])(core_1['ScopeEnum'][a10_0x5cd3ca(0x206)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0x3e02(){const _0x2d0ac0=['isDevelopmentEnvironment','metadata','push','extname','Scope','readFileSync','request','apitestmodule','Environment','1689196yKZGlh','apitesthtml','Singleton','replace','Config','181518MKoPhD','module','2304bOytgT','anncicapi','summary','__metadata','ApitestService','@midwayjs/core','ApitestStaticController','function','__esModule','cache-control','stringify','__param','__decorate','MidwayEnvironmentService','40FMnyJA','39127nAlXaP','.js','object','routes','749192dLLMXS','__apiList__','ScopeEnum','Param','apidoc','66jSaHcr','config','apitest','Inject','2144133bbaUwf','/apiteststatic/*','content-type','Get','917WnXnpz','../../public/index.html','path','Controller','/apitest','design:returntype','public,\x20max-age=604800','join','utf-8','design:type','53832hSkFxe','filepath','apiteststatic','ctx','devices','4LsguXC','method','__devices__','.css','text/css;\x20charset=utf-8','prototype','route','/index.html','/apitest-:module','set','getRoutes','Request','existsSync','440290eyhaCX','design:paramtypes','/apiteststatic/','length','url'];a11_0x3e02=function(){return _0x2d0ac0;};return a11_0x3e02();}const a11_0x2bff47=a11_0x3efc;(function(_0x4a85a5,_0x24c524){const _0x145c44=a11_0x3efc,_0x56f9c7=_0x4a85a5();while(!![]){try{const _0x5a9c4f=-parseInt(_0x145c44(0x121))/0x1+parseInt(_0x145c44(0x107))/0x2+-parseInt(_0x145c44(0x10c))/0x3*(-parseInt(_0x145c44(0x13d))/0x4)+-parseInt(_0x145c44(0x14a))/0x5*(-parseInt(_0x145c44(0x126))/0x6)+-parseInt(_0x145c44(0x12e))/0x7*(parseInt(_0x145c44(0x138))/0x8)+parseInt(_0x145c44(0x12a))/0x9*(parseInt(_0x145c44(0x11c))/0xa)+-parseInt(_0x145c44(0x11d))/0xb*(parseInt(_0x145c44(0x10e))/0xc);if(_0x5a9c4f===_0x24c524)break;else _0x56f9c7['push'](_0x56f9c7['shift']());}catch(_0xe61c3c){_0x56f9c7['push'](_0x56f9c7['shift']());}}}(a11_0x3e02,0x7d41f));var __decorate=this&&this[a11_0x2bff47(0x11a)]||function(_0x508b82,_0x9b8fa9,_0x5397da,_0x587025){const _0x5307e3=a11_0x2bff47;var _0x21e867=arguments['length'],_0x4b0752=_0x21e867<0x3?_0x9b8fa9:_0x587025===null?_0x587025=Object['getOwnPropertyDescriptor'](_0x9b8fa9,_0x5397da):_0x587025,_0x329a9c;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x5307e3(0x115))_0x4b0752=Reflect['decorate'](_0x508b82,_0x9b8fa9,_0x5397da,_0x587025);else{for(var _0x3d291c=_0x508b82[_0x5307e3(0x14d)]-0x1;_0x3d291c>=0x0;_0x3d291c--)if(_0x329a9c=_0x508b82[_0x3d291c])_0x4b0752=(_0x21e867<0x3?_0x329a9c(_0x4b0752):_0x21e867>0x3?_0x329a9c(_0x9b8fa9,_0x5397da,_0x4b0752):_0x329a9c(_0x9b8fa9,_0x5397da))||_0x4b0752;}return _0x21e867>0x3&&_0x4b0752&&Object['defineProperty'](_0x9b8fa9,_0x5397da,_0x4b0752),_0x4b0752;},__metadata=this&&this[a11_0x2bff47(0x111)]||function(_0x33b40c,_0x4a88a7){const _0x290156=a11_0x2bff47;if(typeof Reflect===_0x290156(0x11f)&&typeof Reflect[_0x290156(0xff)]==='function')return Reflect[_0x290156(0xff)](_0x33b40c,_0x4a88a7);},__param=this&&this[a11_0x2bff47(0x119)]||function(_0x48f600,_0x43d56b){return function(_0x35d5fd,_0x1f99d7){_0x43d56b(_0x35d5fd,_0x1f99d7,_0x48f600);};};Object['defineProperty'](exports,a11_0x2bff47(0x116),{'value':!![]}),exports[a11_0x2bff47(0x114)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x2bff47(0x130)),fs_1=require('fs'),core_1=require(a11_0x2bff47(0x113)),core_2=require(a11_0x2bff47(0x113)),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');function a11_0x3efc(_0x318e40,_0x54fe40){const _0x3e0214=a11_0x3e02();return a11_0x3efc=function(_0x3efcd8,_0x3cede7){_0x3efcd8=_0x3efcd8-0xfd;let _0x5638d1=_0x3e0214[_0x3efcd8];return _0x5638d1;},a11_0x3efc(_0x318e40,_0x54fe40);}let ApitestService=class ApitestService{async['apidoc'](_0x3de7fe){const _0x41c213=a11_0x2bff47,_0x40db52=(0x0,getRoutes_1[_0x41c213(0x147)])(_0x3de7fe),_0x4fc21e=[];for(let _0x105136 in _0x40db52){for(let _0x1f9079 in _0x40db52[_0x105136]['routes']){let _0x953998=_0x40db52[_0x105136][_0x41c213(0x120)][_0x1f9079],_0x24e994=[];for(let _0xa6ef6b in _0x953998['request']){_0x24e994[_0x41c213(0x100)](_0x953998['request'][_0xa6ef6b]);}_0x4fc21e[_0x41c213(0x100)]({'title':_0x40db52[_0x105136][_0x41c213(0x110)]+':'+_0x953998['summary'],'prefix':_0x40db52[_0x105136]['prefix'],'router':_0x953998[_0x41c213(0x143)],'method':_0x953998[_0x41c213(0x13e)],'describe':_0x953998['description']||'','filepath':_0x40db52[_0x105136][_0x41c213(0x139)]||'','request':_0x24e994});}}const _0x2be9d8=(0x0,path_1['join'])(__dirname,_0x41c213(0x12f));return(0x0,fs_1[_0x41c213(0x103)])(_0x2be9d8,{'encoding':'utf-8'})[_0x41c213(0x10a)](/__res__/g,_0x41c213(0x14c))[_0x41c213(0x10a)](_0x41c213(0x122),JSON[_0x41c213(0x118)](_0x4fc21e))[_0x41c213(0x10a)](_0x41c213(0x13f),JSON[_0x41c213(0x118)](this[_0x41c213(0x127)][_0x41c213(0x13c)]));}};__decorate([(0x0,core_3[a11_0x2bff47(0x10b)])(a11_0x2bff47(0x10f)),__metadata(a11_0x2bff47(0x137),Object)],ApitestService[a11_0x2bff47(0x142)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x2bff47(0x128)),(0x0,core_3[a11_0x2bff47(0x102)])(core_3[a11_0x2bff47(0x123)][a11_0x2bff47(0x109)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x2bff47(0x108)](){const _0x53543c=a11_0x2bff47;if(this[_0x53543c(0x128)]){const _0x2474bf={'module':![]};return this[_0x53543c(0x106)][_0x53543c(0xfe)]()&&(_0x2474bf[_0x53543c(0x139)]=!![]),await this['ApitestService'][_0x53543c(0x125)](_0x2474bf);}return'';}async[a11_0x2bff47(0x105)](_0x9077f){const _0x5d1a81=a11_0x2bff47;if(this['apitest']){const _0x842ace={'module':_0x9077f};return this[_0x5d1a81(0x106)][_0x5d1a81(0xfe)]()&&(_0x842ace[_0x5d1a81(0x139)]=!![]),await this['ApitestService'][_0x5d1a81(0x125)](_0x842ace);}return'';}async[a11_0x2bff47(0x13a)](){const _0x5dc08f=a11_0x2bff47;if((0x0,path_1['extname'])(this[_0x5dc08f(0x13b)]['request'][_0x5dc08f(0xfd)])){var _0x513441=(0x0,path_1[_0x5dc08f(0x135)])(__dirname,'../../public/'+this['ctx']['request'][_0x5dc08f(0xfd)]['replace']('/apiteststatic/','/'));if(_0x513441['substring'](_0x513441[_0x5dc08f(0x14d)]-0xb)!=_0x5dc08f(0x144)){this['ctx']['set'](_0x5dc08f(0x117),_0x5dc08f(0x134));if((0x0,path_1[_0x5dc08f(0x101)])(this[_0x5dc08f(0x13b)][_0x5dc08f(0x104)][_0x5dc08f(0xfd)])==_0x5dc08f(0x11e))this['ctx']['set'](_0x5dc08f(0x12c),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x5dc08f(0x101)])(this['ctx'][_0x5dc08f(0x104)][_0x5dc08f(0xfd)])==_0x5dc08f(0x140)&&this[_0x5dc08f(0x13b)][_0x5dc08f(0x146)](_0x5dc08f(0x12c),_0x5dc08f(0x141));return(0x0,fs_1[_0x5dc08f(0x149)])(_0x513441)&&(0x0,fs_1[_0x5dc08f(0x103)])(_0x513441,{'encoding':_0x5dc08f(0x136)});}}return'';}};__decorate([(0x0,core_3[a11_0x2bff47(0x129)])(),__metadata(a11_0x2bff47(0x137),Object)],ApitestStaticController[a11_0x2bff47(0x142)],a11_0x2bff47(0x13b),void 0x0),__decorate([(0x0,core_3[a11_0x2bff47(0x129)])(),__metadata(a11_0x2bff47(0x137),core_1[a11_0x2bff47(0x11b)])],ApitestStaticController[a11_0x2bff47(0x142)],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x2bff47(0x129)])(),__metadata(a11_0x2bff47(0x137),ApitestService)],ApitestStaticController[a11_0x2bff47(0x142)],a11_0x2bff47(0x112),void 0x0),__decorate([(0x0,core_3[a11_0x2bff47(0x10b)])(a11_0x2bff47(0x128)),__metadata(a11_0x2bff47(0x137),Boolean)],ApitestStaticController[a11_0x2bff47(0x142)],'apitest',void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x2bff47(0x10f)),__metadata(a11_0x2bff47(0x137),Object)],ApitestStaticController[a11_0x2bff47(0x142)],a11_0x2bff47(0x127),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x2bff47(0x132)),__metadata(a11_0x2bff47(0x137),Function),__metadata(a11_0x2bff47(0x14b),[]),__metadata(a11_0x2bff47(0x133),Promise)],ApitestStaticController[a11_0x2bff47(0x142)],a11_0x2bff47(0x108),null),__decorate([(0x0,core_2[a11_0x2bff47(0x12d)])(a11_0x2bff47(0x145)),__param(0x0,(0x0,core_2[a11_0x2bff47(0x124)])(a11_0x2bff47(0x10d))),__metadata(a11_0x2bff47(0x137),Function),__metadata(a11_0x2bff47(0x14b),[String]),__metadata(a11_0x2bff47(0x133),Promise)],ApitestStaticController[a11_0x2bff47(0x142)],a11_0x2bff47(0x105),null),__decorate([(0x0,core_2[a11_0x2bff47(0x12d)])(a11_0x2bff47(0x12b)),__metadata(a11_0x2bff47(0x137),Function),__metadata(a11_0x2bff47(0x14b),[]),__metadata(a11_0x2bff47(0x133),Promise)],ApitestStaticController['prototype'],a11_0x2bff47(0x13a),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x2bff47(0x131)])('/'),(0x0,core_3[a11_0x2bff47(0x102)])(core_3[a11_0x2bff47(0x123)][a11_0x2bff47(0x148)])],ApitestStaticController),exports[a11_0x2bff47(0x114)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a12_0x555c5a=a12_0x16c8;(function(_0x1a1f17,_0x2e429d){const _0x5e34f8=a12_0x16c8,_0x4b658f=_0x1a1f17();while(!![]){try{const _0x44749f=-parseInt(_0x5e34f8(0x16e))/0x1+parseInt(_0x5e34f8(0x139))/0x2*(parseInt(_0x5e34f8(0x14f))/0x3)+parseInt(_0x5e34f8(0x14a))/0x4*(-parseInt(_0x5e34f8(0x167))/0x5)+-parseInt(_0x5e34f8(0x15d))/0x6*(parseInt(_0x5e34f8(0x15b))/0x7)+parseInt(_0x5e34f8(0x159))/0x8*(-parseInt(_0x5e34f8(0x14b))/0x9)+parseInt(_0x5e34f8(0x16a))/0xa+parseInt(_0x5e34f8(0x142))/0xb;if(_0x44749f===_0x2e429d)break;else _0x4b658f['push'](_0x4b658f['shift']());}catch(_0x3a0888){_0x4b658f['push'](_0x4b658f['shift']());}}}(a12_0x4bd9,0x5491e));var __decorate=this&&this[a12_0x555c5a(0x132)]||function(_0x35028c,_0x13dd2f,_0x1ddad8,_0x3756a8){const _0x2b1cac=a12_0x555c5a;var _0x6a3544=arguments[_0x2b1cac(0x13f)],_0x304005=_0x6a3544<0x3?_0x13dd2f:_0x3756a8===null?_0x3756a8=Object[_0x2b1cac(0x14d)](_0x13dd2f,_0x1ddad8):_0x3756a8,_0x34ef51;if(typeof Reflect===_0x2b1cac(0x15c)&&typeof Reflect['decorate']===_0x2b1cac(0x14c))_0x304005=Reflect[_0x2b1cac(0x153)](_0x35028c,_0x13dd2f,_0x1ddad8,_0x3756a8);else{for(var _0x511e3a=_0x35028c[_0x2b1cac(0x13f)]-0x1;_0x511e3a>=0x0;_0x511e3a--)if(_0x34ef51=_0x35028c[_0x511e3a])_0x304005=(_0x6a3544<0x3?_0x34ef51(_0x304005):_0x6a3544>0x3?_0x34ef51(_0x13dd2f,_0x1ddad8,_0x304005):_0x34ef51(_0x13dd2f,_0x1ddad8))||_0x304005;}return _0x6a3544>0x3&&_0x304005&&Object[_0x2b1cac(0x154)](_0x13dd2f,_0x1ddad8,_0x304005),_0x304005;},__metadata=this&&this[a12_0x555c5a(0x161)]||function(_0xee539b,_0x4c3e27){const _0xd6bbb=a12_0x555c5a;if(typeof Reflect===_0xd6bbb(0x15c)&&typeof Reflect[_0xd6bbb(0x13e)]===_0xd6bbb(0x14c))return Reflect[_0xd6bbb(0x13e)](_0xee539b,_0x4c3e27);};Object['defineProperty'](exports,a12_0x555c5a(0x16b),{'value':!![]}),exports[a12_0x555c5a(0x133)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x555c5a(0x157)),koasend=require(a12_0x555c5a(0x145)),core_1=require(a12_0x555c5a(0x164));function a12_0x16c8(_0x30485a,_0x3ef0be){const _0x4bd96d=a12_0x4bd9();return a12_0x16c8=function(_0x16c82f,_0x2cd103){_0x16c82f=_0x16c82f-0x12b;let _0x209f4f=_0x4bd96d[_0x16c82f];return _0x209f4f;},a12_0x16c8(_0x30485a,_0x3ef0be);}function a12_0x4bd9(){const _0x18696b=['Singleton','metadata','length','eachCell','findRows','6256690uzscdl','frozen','keys','koa-send','getAppDir','download','Sheet\x201','addWorksheet','116KzjPOu','7137qkuBpk','function','getOwnPropertyDescriptor','export','331530jtcIOR','mkdirSync','\x20is\x20read\x20fail','parse','decorate','defineProperty','substring','get','exceljs','model','6320XMunQK','rowCount','21PAqXPp','object','177546yYPOcJ','log','.xlsx','getCell','__metadata','addRow','columns','@midwayjs/core','key','value','35345BklcWR','col','random','4254620DUdqEK','__esModule','xlsx','getWorksheet','390670MvJWTU','replace','header','worksheets','startsWith','public/xlsx','readFile','handler','__decorate','ExcelService','Workbook','push','isNumber','endsWith','app','12eLiyGx','Provide','/public/xlsx','design:type'];a12_0x4bd9=function(){return _0x18696b;};return a12_0x4bd9();}let ExcelService=class ExcelService{async[a12_0x555c5a(0x152)](_0x252a70,_0x5a990a,_0x1ac74d=[0x0]){const _0x4408ef=a12_0x555c5a;var _0x188b42,_0x4e1f7f;const _0x1bc460=new exceljs[(_0x4408ef(0x134))](),_0x338a87=[];let _0xdff9e2=_0x252a70[_0x4408ef(0x12b)](/(\\|\/)/g,'/')[_0x4408ef(0x12b)](/\/{2,}/g,'/');!(_0xdff9e2===null||_0xdff9e2===void 0x0?void 0x0:_0xdff9e2[_0x4408ef(0x12e)]('/'))&&(_0xdff9e2=this[_0x4408ef(0x138)][_0x4408ef(0x146)]()+'/'+_0xdff9e2);try{await _0x1bc460[_0x4408ef(0x16c)][_0x4408ef(0x130)](_0xdff9e2);}catch(_0x326174){return console[_0x4408ef(0x15e)]('Api\x20Excel\x20Error:\x20'+_0xdff9e2+_0x4408ef(0x151)),_0x338a87;}for(const _0x522dd4 of _0x1ac74d){const _0x9e2a11=lodash[_0x4408ef(0x136)](_0x522dd4)?((_0x188b42=_0x1bc460[_0x4408ef(0x12d)])===null||_0x188b42===void 0x0?void 0x0:_0x188b42[_0x522dd4])||undefined:_0x1bc460[_0x4408ef(0x16d)](_0x522dd4);if(_0x9e2a11){var _0x772dc1=0x1;const _0x487606=_0x9e2a11['getRow'](0x1),_0x3d0670=await new Promise(_0x4417e6=>{const _0xa0d767=_0x4408ef,_0x4a8122={};_0x487606[_0xa0d767(0x140)]((_0x572b3c,_0x2693fa)=>{const _0x4b6d9f=_0xa0d767;for(const _0x2aff7c of _0x5a990a){if(_0x572b3c[_0x4b6d9f(0x166)]==_0x2aff7c['header'])_0x772dc1=0x2,_0x4a8122[_0x2aff7c['key']]={'header':_0x572b3c[_0x4b6d9f(0x168)],'handler':_0x2aff7c[_0x4b6d9f(0x131)]};else{if(!_0x4a8122[_0x2aff7c[_0x4b6d9f(0x165)]])try{const _0x10f388=_0x487606['getCell'](_0x2aff7c['header']);_0x10f388&&(_0x4a8122[_0x2aff7c[_0x4b6d9f(0x165)]]={'header':_0x10f388['col'],'handler':_0x2aff7c[_0x4b6d9f(0x131)]});}catch{}}}_0x487606['cellCount']==_0x2693fa&&_0x4417e6(_0x4a8122);});});for(const _0x3d676c of _0x9e2a11[_0x4408ef(0x141)](_0x772dc1,_0x9e2a11[_0x4408ef(0x15a)])){const _0x4e3d8e={};for(const _0x34eb5a in _0x3d0670){if(_0x3d0670[_0x34eb5a][_0x4408ef(0x12c)]){const _0x24643a=_0x3d676c[_0x4408ef(0x160)](_0x3d0670[_0x34eb5a]['header']);typeof((_0x4e1f7f=_0x3d0670[_0x34eb5a])===null||_0x4e1f7f===void 0x0?void 0x0:_0x4e1f7f[_0x4408ef(0x131)])==_0x4408ef(0x14c)?_0x4e3d8e[_0x34eb5a]=await _0x3d0670[_0x34eb5a][_0x4408ef(0x131)]((_0x24643a===null||_0x24643a===void 0x0?void 0x0:_0x24643a['toString']())||'',_0x24643a[_0x4408ef(0x158)]):_0x4e3d8e[_0x34eb5a]=(_0x24643a===null||_0x24643a===void 0x0?void 0x0:_0x24643a['toString']())||'';}}Object[_0x4408ef(0x144)](_0x4e3d8e)[_0x4408ef(0x13f)]>0x0&&_0x338a87['push'](_0x4e3d8e);}}}return _0x338a87;}async[a12_0x555c5a(0x14e)](_0x3667f8,_0x1b9380,_0x14e89e,_0x4adc57=a12_0x555c5a(0x12f)){const _0x55482e=a12_0x555c5a;var _0x3929dd,_0x345e70;const _0x58def8=new exceljs[(_0x55482e(0x134))](),_0x4cfea5={},_0x3bc43d=[],_0x26038f=_0x58def8[_0x55482e(0x149)](_0x55482e(0x148),{'views':[{'state':_0x55482e(0x143),'xSplit':0x1}]});for(const _0x37e83a in _0x1b9380){_0x4cfea5[_0x1b9380[_0x37e83a][_0x55482e(0x165)]]=_0x1b9380[_0x37e83a][_0x55482e(0x12c)],_0x3bc43d[_0x55482e(0x135)]({'header':_0x1b9380[_0x37e83a]['header'],'key':(_0x3929dd=_0x1b9380[_0x37e83a])===null||_0x3929dd===void 0x0?void 0x0:_0x3929dd[_0x55482e(0x165)]['replace'](/\./g,'_')});}_0x26038f[_0x55482e(0x163)]=_0x3bc43d;for(const _0xbd4e87 of _0x14e89e){const _0x4d5c97={};for(const _0x49243f in _0x1b9380){typeof((_0x345e70=_0x1b9380[_0x49243f])===null||_0x345e70===void 0x0?void 0x0:_0x345e70[_0x55482e(0x131)])==_0x55482e(0x14c)?_0x4d5c97[_0x1b9380[_0x49243f][_0x55482e(0x165)][_0x55482e(0x12b)](/\./g,'_')]=await _0x1b9380[_0x49243f]['handler'](_0xbd4e87):_0x4d5c97[_0x1b9380[_0x49243f][_0x55482e(0x165)][_0x55482e(0x12b)](/\./g,'_')]=lodash[_0x55482e(0x156)](_0xbd4e87,_0x1b9380[_0x49243f][_0x55482e(0x165)],'');}_0x26038f[_0x55482e(0x162)](_0x4d5c97);}let _0x163c67='';const _0x31b622=_0x3667f8+'-'+lodash[_0x55482e(0x169)](0x2710,0x1869f)+_0x55482e(0x15f);if(_0x4adc57&&_0x4adc57[_0x55482e(0x12e)]('/'))_0x163c67=''+_0x4adc57;else _0x4adc57&&!_0x4adc57[_0x55482e(0x12e)]('/')&&!_0x4adc57[_0x55482e(0x12e)]('\x5c')?_0x163c67=this[_0x55482e(0x138)]['getAppDir']()+'/'+_0x4adc57:_0x163c67=this[_0x55482e(0x138)][_0x55482e(0x146)]()+_0x55482e(0x13b);return(_0x163c67[_0x55482e(0x137)]('/')||_0x163c67[_0x55482e(0x137)]('\x5c'))&&(_0x163c67=_0x163c67[_0x55482e(0x155)](0x0,_0x163c67[_0x55482e(0x13f)]-0x1)),_0x163c67=_0x163c67[_0x55482e(0x12b)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x163c67)&&fs[_0x55482e(0x150)](_0x163c67,{'recursive':!![]}),await _0x58def8['xlsx']['writeFile']((_0x163c67+'/'+_0x31b622)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x31b622,'filepath':(_0x163c67['substring']((''+this['app'][_0x55482e(0x146)]())[_0x55482e(0x13f)])+'/'+_0x31b622)[_0x55482e(0x12b)](/(\\|\/)/g,'/')[_0x55482e(0x12b)](/\/{2,}/g,'/')};}async[a12_0x555c5a(0x147)](_0x194ab0,_0x38c0e2){return await koasend(_0x194ab0,''+_0x38c0e2);}};__decorate([(0x0,core_1['App'])(),__metadata(a12_0x555c5a(0x13c),Object)],ExcelService['prototype'],a12_0x555c5a(0x138),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x555c5a(0x13a)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a12_0x555c5a(0x13d)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x3a11e2=a13_0x5277;function a13_0x1747(){var _0x3b1358=['227976OkQgTB','7670JHwdTm','9159546ECIUGA','AppsConfigTmp','966928AcuqkM','37059ZUDtVU','8518365PdthNj','392008DAAGcO','ACTION_KEY','2fNsTnF','1747954ORoiCJ','207HtyolU','__esModule','defineProperty','7KEsSbJ','APPSCONFIG_KEY','anncic-api:action','ACTION_ROUTE_KEY','anncic-api:action:route'];a13_0x1747=function(){return _0x3b1358;};return a13_0x1747();}(function(_0x496b18,_0x5a06c3){var _0x283958=a13_0x5277,_0x422211=_0x496b18();while(!![]){try{var _0x46fe97=parseInt(_0x283958(0x17a))/0x1+parseInt(_0x283958(0x179))/0x2*(-parseInt(_0x283958(0x170))/0x3)+-parseInt(_0x283958(0x174))/0x4+parseInt(_0x283958(0x176))/0x5+parseInt(_0x283958(0x172))/0x6*(parseInt(_0x283958(0x17e))/0x7)+parseInt(_0x283958(0x177))/0x8*(-parseInt(_0x283958(0x17b))/0x9)+-parseInt(_0x283958(0x171))/0xa*(parseInt(_0x283958(0x175))/0xb);if(_0x46fe97===_0x5a06c3)break;else _0x422211['push'](_0x422211['shift']());}catch(_0x14a23b){_0x422211['push'](_0x422211['shift']());}}}(a13_0x1747,0xe7cc8));function a13_0x5277(_0x25a4ec,_0x502f67){var _0x17478a=a13_0x1747();return a13_0x5277=function(_0x5277c4,_0x459f38){_0x5277c4=_0x5277c4-0x16f;var _0x5cfd01=_0x17478a[_0x5277c4];return _0x5cfd01;},a13_0x5277(_0x25a4ec,_0x502f67);}Object[a13_0x3a11e2(0x17d)](exports,a13_0x3a11e2(0x17c),{'value':!![]}),exports[a13_0x3a11e2(0x173)]=exports[a13_0x3a11e2(0x17f)]=exports[a13_0x3a11e2(0x181)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x3a11e2(0x178)]=a13_0x3a11e2(0x180),exports['ACTION_ROUTE_KEY']=a13_0x3a11e2(0x16f),exports[a13_0x3a11e2(0x17f)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a13_0x3a11e2(0x173)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a14_0x40588f=a14_0x5340;function a14_0x5340(_0x6b1348,_0x204e3c){var _0x325a7f=a14_0x325a();return a14_0x5340=function(_0x534074,_0x55bb6a){_0x534074=_0x534074-0x100;var _0x294715=_0x325a7f[_0x534074];return _0x294715;},a14_0x5340(_0x6b1348,_0x204e3c);}(function(_0x3e2645,_0x1e3b07){var _0x3df54=a14_0x5340,_0x2e6272=_0x3e2645();while(!![]){try{var _0x305e27=-parseInt(_0x3df54(0x104))/0x1*(-parseInt(_0x3df54(0x119))/0x2)+parseInt(_0x3df54(0x101))/0x3+-parseInt(_0x3df54(0x11e))/0x4*(parseInt(_0x3df54(0x100))/0x5)+-parseInt(_0x3df54(0x107))/0x6*(-parseInt(_0x3df54(0x10e))/0x7)+parseInt(_0x3df54(0x11f))/0x8+parseInt(_0x3df54(0x109))/0x9+parseInt(_0x3df54(0x113))/0xa*(-parseInt(_0x3df54(0x10b))/0xb);if(_0x305e27===_0x1e3b07)break;else _0x2e6272['push'](_0x2e6272['shift']());}catch(_0x2c90fc){_0x2e6272['push'](_0x2e6272['shift']());}}}(a14_0x325a,0xe89dc));var __decorate=this&&this[a14_0x40588f(0x117)]||function(_0x43545d,_0x212351,_0x128f13,_0x316c01){var _0x1feef7=a14_0x40588f,_0x379808=arguments[_0x1feef7(0x122)],_0x1a184b=_0x379808<0x3?_0x212351:_0x316c01===null?_0x316c01=Object[_0x1feef7(0x10a)](_0x212351,_0x128f13):_0x316c01,_0x46e4f1;if(typeof Reflect===_0x1feef7(0x11c)&&typeof Reflect[_0x1feef7(0x124)]===_0x1feef7(0x105))_0x1a184b=Reflect[_0x1feef7(0x124)](_0x43545d,_0x212351,_0x128f13,_0x316c01);else{for(var _0x118128=_0x43545d['length']-0x1;_0x118128>=0x0;_0x118128--)if(_0x46e4f1=_0x43545d[_0x118128])_0x1a184b=(_0x379808<0x3?_0x46e4f1(_0x1a184b):_0x379808>0x3?_0x46e4f1(_0x212351,_0x128f13,_0x1a184b):_0x46e4f1(_0x212351,_0x128f13))||_0x1a184b;}return _0x379808>0x3&&_0x1a184b&&Object[_0x1feef7(0x10d)](_0x212351,_0x128f13,_0x1a184b),_0x1a184b;},__metadata=this&&this[a14_0x40588f(0x126)]||function(_0x1b9ef4,_0x2a5cc9){var _0x17cc79=a14_0x40588f;if(typeof Reflect===_0x17cc79(0x11c)&&typeof Reflect[_0x17cc79(0x106)]===_0x17cc79(0x105))return Reflect[_0x17cc79(0x106)](_0x1b9ef4,_0x2a5cc9);};function a14_0x325a(){var _0x281076=['6ZDgPIL','integer','8856189AwDbpQ','getOwnPropertyDescriptor','28721dgVMAW','分页数量','defineProperty','6241501BUuhOS','trim','RuleType','_page','Rule','5210rJfZHw','_order','_size','_isreverse','__decorate','number','1882XXTVrk','prototype','design:type','object','__esModule','14668weeUhB','1882680HsmsWm','排序方式','PageDTO','length','string','decorate','第一页为1,第二页为2','__metadata','1895EZGnLz','4767294JevgJn','1:是;0:否','min','3OMjHpK','function','metadata'];a14_0x325a=function(){return _0x281076;};return a14_0x325a();}Object[a14_0x40588f(0x10d)](exports,a14_0x40588f(0x11d),{'value':!![]}),exports[a14_0x40588f(0x121)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a14_0x40588f(0x112)])('分页',validator_1[a14_0x40588f(0x110)][a14_0x40588f(0x118)]()['integer']()[a14_0x40588f(0x103)](0x1),a14_0x40588f(0x125)),__metadata(a14_0x40588f(0x11b),Number)],PageDTO[a14_0x40588f(0x11a)],a14_0x40588f(0x111),void 0x0),__decorate([(0x0,validator_1[a14_0x40588f(0x112)])(a14_0x40588f(0x10c),validator_1[a14_0x40588f(0x110)]['number']()[a14_0x40588f(0x108)]()[a14_0x40588f(0x103)](0x1)),__metadata(a14_0x40588f(0x11b),Number)],PageDTO['prototype'],a14_0x40588f(0x115),void 0x0),__decorate([(0x0,validator_1[a14_0x40588f(0x112)])(a14_0x40588f(0x120),validator_1[a14_0x40588f(0x110)][a14_0x40588f(0x123)]()[a14_0x40588f(0x10f)]()),__metadata(a14_0x40588f(0x11b),String)],PageDTO[a14_0x40588f(0x11a)],a14_0x40588f(0x114),void 0x0),__decorate([(0x0,validator_1[a14_0x40588f(0x112)])('是否倒序',validator_1[a14_0x40588f(0x110)][a14_0x40588f(0x118)]()[a14_0x40588f(0x108)]()['valid'](0x0,0x1),a14_0x40588f(0x102)),__metadata(a14_0x40588f(0x11b),Number)],PageDTO[a14_0x40588f(0x11a)],a14_0x40588f(0x116),void 0x0),exports[a14_0x40588f(0x121)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.2.
|
|
21
|
-
"@anncic-api/core": "^1.2.
|
|
22
|
-
"@anncic-api/event": "^1.2.
|
|
23
|
-
"@anncic-api/typeorm": "^1.2.
|
|
24
|
-
"@anncic-api/validator": "^1.2.
|
|
20
|
+
"@anncic-api/cache": "^1.2.6",
|
|
21
|
+
"@anncic-api/core": "^1.2.6",
|
|
22
|
+
"@anncic-api/event": "^1.2.6",
|
|
23
|
+
"@anncic-api/typeorm": "^1.2.6",
|
|
24
|
+
"@anncic-api/validator": "^1.2.6",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.6.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.6.0",
|
|
27
27
|
"@midwayjs/koa": "^3.6.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.6.0",
|
|
29
29
|
"@midwayjs/upload": "^3.6.0",
|
|
30
|
-
"anncic-apihelper": "^1.2.
|
|
30
|
+
"anncic-apihelper": "^1.2.6",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1",
|
|
33
33
|
"urllib": "^3.3.0"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "2.19.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "72f135b6b4e51ed0ab07c69d973c31361a68a47e"
|
|
41
41
|
}
|