anncic-api 1.4.19 → 1.4.21
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/index.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a0_0x7a2d9=a0_0xac11;function a0_0xac11(_0x1b7a6b,_0x25fabd){var _0x25d5b0=a0_0x25d5();return a0_0xac11=function(_0xac1163,_0x5e98be){_0xac1163=_0xac1163-0x1aa;var _0x47f9e5=_0x25d5b0[_0xac1163];return _0x47f9e5;},a0_0xac11(_0x1b7a6b,_0x25fabd);}(function(_0x28325b,_0x2d060b){var _0x525cfa=a0_0xac11,_0x2d9f5d=_0x28325b();while(!![]){try{var _0x59f006=-parseInt(_0x525cfa(0x1b5))/0x1*(parseInt(_0x525cfa(0x1b6))/0x2)+parseInt(_0x525cfa(0x1be))/0x3*(parseInt(_0x525cfa(0x1ba))/0x4)+parseInt(_0x525cfa(0x1b7))/0x5*(-parseInt(_0x525cfa(0x1b3))/0x6)+-parseInt(_0x525cfa(0x1ae))/0x7+parseInt(_0x525cfa(0x1ac))/0x8+-parseInt(_0x525cfa(0x1b0))/0x9*(parseInt(_0x525cfa(0x1b1))/0xa)+-parseInt(_0x525cfa(0x1c0))/0xb*(-parseInt(_0x525cfa(0x1bf))/0xc);if(_0x59f006===_0x2d060b)break;else _0x2d9f5d['push'](_0x2d9f5d['shift']());}catch(_0x58b392){_0x2d9f5d['push'](_0x2d9f5d['shift']());}}}(a0_0x25d5,0x48999));function a0_0x25d5(){var _0x1b6cb9=['json','text','xml','4174184SCGYyA','form','549773TfltgD','dhauo1234420123gg3234901','51102LlVWNi','200XQJBQt','/runtime/.upload','2585298LKqSXH','zhiulanuiy7892387985hnoi','163859BQSvjH','2yRzbIu','5XpmzfZ','20mb','__esModule','68RKScsS','defineProperty','default','appDir','39021uwWAHz','1884QvjATN','23914VnZLKW'];a0_0x25d5=function(){return _0x1b6cb9;};return a0_0x25d5();}Object[a0_0x7a2d9(0x1bb)](exports,a0_0x7a2d9(0x1b9),{'value':!![]}),exports[a0_0x7a2d9(0x1bc)]=_0x4d1599=>{var _0x1d6fee=a0_0x7a2d9;return{'apitest':!![],'keys':_0x4d1599['name'],'anncicapi':{'timeout':0x1388,'password':_0x1d6fee(0x1b4),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x1d6fee(0x1af)}}},'bodyParser':{'enableTypes':[_0x1d6fee(0x1c1),_0x1d6fee(0x1ad),_0x1d6fee(0x1aa),_0x1d6fee(0x1ab)],'formLimit':_0x1d6fee(0x1b8),'jsonLimit':_0x1d6fee(0x1b8),'textLimit':'20mb','xmlLimit':'20mb'},'upload':{'tmpdir':_0x4d1599[_0x1d6fee(0x1bd)]+_0x1d6fee(0x1b2),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x14d907=a1_0x4e42;function a1_0x4e42(_0x2e5d71,_0x178a19){var _0x2f3d42=a1_0x2f3d();return a1_0x4e42=function(_0x4e4244,_0x3f63cc){_0x4e4244=_0x4e4244-0x137;var _0x252bc7=_0x2f3d42[_0x4e4244];return _0x252bc7;},a1_0x4e42(_0x2e5d71,_0x178a19);}(function(_0x2988fc,_0x4ce6b2){var _0x1f3570=a1_0x4e42,_0x4527d4=_0x2988fc();while(!![]){try{var _0x37f90a=-parseInt(_0x1f3570(0x13a))/0x1+-parseInt(_0x1f3570(0x139))/0x2*(parseInt(_0x1f3570(0x13e))/0x3)+parseInt(_0x1f3570(0x138))/0x4+parseInt(_0x1f3570(0x140))/0x5*(-parseInt(_0x1f3570(0x13b))/0x6)+-parseInt(_0x1f3570(0x13c))/0x7+parseInt(_0x1f3570(0x13d))/0x8*(parseInt(_0x1f3570(0x137))/0x9)+parseInt(_0x1f3570(0x13f))/0xa*(parseInt(_0x1f3570(0x142))/0xb);if(_0x37f90a===_0x4ce6b2)break;else _0x4527d4['push'](_0x4527d4['shift']());}catch(_0x575e84){_0x4527d4['push'](_0x4527d4['shift']());}}}(a1_0x2f3d,0xcb75e));function a1_0x2f3d(){var _0x43a32a=['3WClkrw','1910jIChDf','95hqQNJd','default','303457HzUuZn','232506onSomF','707808ZhTWIi','2427796HabTHM','1525272ABGtXU','292614sSYTto','9702644fOEmSQ','136tsQLZe'];a1_0x2f3d=function(){return _0x43a32a;};return a1_0x2f3d();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x14d907(0x141)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x5db7(_0x133170,_0x2da9d3){const _0x55d0e8=a2_0x55d0();return a2_0x5db7=function(_0x5db74c,_0x536730){_0x5db74c=_0x5db74c-0x8f;let _0x29a079=_0x55d0e8[_0x5db74c];return _0x29a079;},a2_0x5db7(_0x133170,_0x2da9d3);}function a2_0x55d0(){const _0x49aaff=['device','filterConfig','proceed','MidwayDecoratorService','MidwayEnvironmentService','@midwayjs/cross-domain','isClass','DEFAULT','mkdirSync','@anncic-api/cache','isArray','@midwayjs/koa','args','string','existsSync','intercept','.log','Types','config','__esModule','/apps','undefined','./types/action','isDevelopmentEnvironment','/apps/','HEADERS_SIGNATURE','MidwayApplicationManager','assign','_matchedRoute','forEach','getOwnPropertyDescriptor','application','addObject','73399dpyqeN','log','55164JpQbTp','@anncic-api/core','-log','@anncic-api/validator','@midwayjs/core','31536dcqQCb','koa','midwayLogger','clients','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/typeorm','Inject','getAppDir','482312LKbhpM','headers','dir','input','handlerActionRoute','upload','@midwayjs/i18n','hanlderApplications','313659LHpOFg','environment','./config/config.production','/runtime','get','app','context','function','defaultsDeep','isString','getBaseDir','readdirSync','./exception/ApiError','getApplications','Anncic-api\x20static-file\x20:\x20mkdir\x20','checkConfigKeys','method','prototype','body','checksign','21atWKSt','106962hvySIF','onReady','defineProperty','loggerConfig','decorate','MidwayConfigService','key','isDirectory','object','design:type','dirs','tmpdir','keys','handler','defineProperties','63zBLmAu','devices','decorator','anncic-api','toLowerCase','ApiService','/runtime/apps-','length','1097420NVvRVX','statSync','requestContext','ApiError','REQUEST_OBJ_CTX_KEY','registerMethodHandler','anncic-apihelper','metadata','anncicapi','ACTION_ROUTE_KEY','getConfiguration','staticFile','@midwayjs/static-file','request','@midwayjs/upload','isFunction'];a2_0x55d0=function(){return _0x49aaff;};return a2_0x55d0();}const a2_0x1bb875=a2_0x5db7;(function(_0x290ed1,_0x83cc22){const _0x33c337=a2_0x5db7,_0xc27513=_0x290ed1();while(!![]){try{const _0x2c66b6=parseInt(_0x33c337(0x99))/0x1+-parseInt(_0x33c337(0xa0))/0x2+parseInt(_0x33c337(0xc4))/0x3*(parseInt(_0x33c337(0x9b))/0x4)+parseInt(_0x33c337(0xdc))/0x5+-parseInt(_0x33c337(0xc5))/0x6*(parseInt(_0x33c337(0xd4))/0x7)+-parseInt(_0x33c337(0xa8))/0x8+-parseInt(_0x33c337(0xb0))/0x9;if(_0x2c66b6===_0x83cc22)break;else _0xc27513['push'](_0xc27513['shift']());}catch(_0x592010){_0xc27513['push'](_0xc27513['shift']());}}}(a2_0x55d0,0x1cd35));var __decorate=this&&this['__decorate']||function(_0x30d84d,_0x2b05e7,_0x13e343,_0x6975d){const _0x2a37dd=a2_0x5db7;var _0x4b874c=arguments[_0x2a37dd(0xdb)],_0x7414fd=_0x4b874c<0x3?_0x2b05e7:_0x6975d===null?_0x6975d=Object[_0x2a37dd(0x96)](_0x2b05e7,_0x13e343):_0x6975d,_0x58f3d7;if(typeof Reflect===_0x2a37dd(0xcd)&&typeof Reflect['decorate']==='function')_0x7414fd=Reflect[_0x2a37dd(0xc9)](_0x30d84d,_0x2b05e7,_0x13e343,_0x6975d);else{for(var _0x5ef951=_0x30d84d[_0x2a37dd(0xdb)]-0x1;_0x5ef951>=0x0;_0x5ef951--)if(_0x58f3d7=_0x30d84d[_0x5ef951])_0x7414fd=(_0x4b874c<0x3?_0x58f3d7(_0x7414fd):_0x4b874c>0x3?_0x58f3d7(_0x2b05e7,_0x13e343,_0x7414fd):_0x58f3d7(_0x2b05e7,_0x13e343))||_0x7414fd;}return _0x4b874c>0x3&&_0x7414fd&&Object[_0x2a37dd(0xc7)](_0x2b05e7,_0x13e343,_0x7414fd),_0x7414fd;},__metadata=this&&this['__metadata']||function(_0x29f470,_0x2a6d14){const _0x353c8f=a2_0x5db7;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x353c8f(0xb7))return Reflect[_0x353c8f(0xe3)](_0x29f470,_0x2a6d14);};Object[a2_0x1bb875(0xc7)](exports,a2_0x1bb875(0xff),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x1bb875(0x9f)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x1bb875(0xbc)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x1bb875(0x102)),fs=require('fs'),koa=require(a2_0x1bb875(0xf7)),i18n=require(a2_0x1bb875(0xae)),upload=require(a2_0x1bb875(0xea)),staticFile=require(a2_0x1bb875(0xe8)),crossDomain=require(a2_0x1bb875(0xf1)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x1bb875(0xb2)),anncic=require(a2_0x1bb875(0x9c)),anncicCache=require(a2_0x1bb875(0xf5)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x1bb875(0xa5)),anncicValidator=require(a2_0x1bb875(0x9e)),anncicHelper=require(a2_0x1bb875(0xe2));let CustomConfiguration=class CustomConfiguration{async[a2_0x1bb875(0xc6)](){const _0x29d5b4=a2_0x1bb875;await this[_0x29d5b4(0xed)](),await this[_0x29d5b4(0xc8)](),await this[_0x29d5b4(0xbf)](),await this[_0x29d5b4(0xac)](),await this[_0x29d5b4(0xaf)]();}async['checkConfigKeys'](){}async[a2_0x1bb875(0xac)](){const _0x1de220=a2_0x1bb875,_0x17d58f=this[_0x1de220(0xfe)][_0x1de220(0xe6)]();this[_0x1de220(0xd6)][_0x1de220(0xe1)](action_1[_0x1de220(0xe5)],_0x5e9dae=>{const _0x5765c7=_0x1de220,_0x2d85d4=_0x5e9dae[_0x5765c7(0xe3)];return{'before':async _0x5f271f=>{const _0x4cf585=_0x5765c7;var _0x363f88,_0x57bf66;const _0x2d9ee6=(_0x363f88=_0x5f271f===null||_0x5f271f===void 0x0?void 0x0:_0x5f271f['target'])===null||_0x363f88===void 0x0?void 0x0:_0x363f88[core_2[_0x4cf585(0xe0)]];if(_0x2d9ee6&&(_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4['apimit'])){if(!this['ApiService'][_0x4cf585(0xc3)]((_0x57bf66=_0x2d9ee6===null||_0x2d9ee6===void 0x0?void 0x0:_0x2d9ee6['request'])===null||_0x57bf66===void 0x0?void 0x0:_0x57bf66['headers']))throw new AnnError(ApiError_1[_0x4cf585(0xdf)][_0x4cf585(0x91)]);}},'around':async _0x3004ed=>{const _0x36654c=_0x5765c7;var _0x393f00,_0x65d9e5,_0x4326f0,_0x3ed43d,_0x37f3a5;const _0x47049d=(_0x393f00=_0x3004ed===null||_0x3004ed===void 0x0?void 0x0:_0x3004ed['target'])===null||_0x393f00===void 0x0?void 0x0:_0x393f00[core_2[_0x36654c(0xe0)]];if(_0x47049d&&(_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4['apimit'])&&((_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4[_0x36654c(0xfb)])||typeof(_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4[_0x36654c(0xfb)])==_0x36654c(0x101))){if(((_0x65d9e5=_0x47049d[_0x36654c(0xa9)])===null||_0x65d9e5===void 0x0?void 0x0:_0x65d9e5[_0x36654c(0xec)])&&((_0x37f3a5=(_0x3ed43d=(_0x4326f0=_0x17d58f===null||_0x17d58f===void 0x0?void 0x0:_0x17d58f[_0x36654c(0xe4)])===null||_0x4326f0===void 0x0?void 0x0:_0x4326f0[_0x36654c(0xd5)])===null||_0x3ed43d===void 0x0?void 0x0:_0x3ed43d[_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]])===null||_0x37f3a5===void 0x0?void 0x0:_0x37f3a5[_0x36654c(0xfb)])){const _0x5875f2=Array[_0x36654c(0xf6)](_0x17d58f[_0x36654c(0xe4)]['devices'][_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]]['intercept'])?_0x17d58f[_0x36654c(0xe4)]['devices'][_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]]['intercept']:[_0x17d58f[_0x36654c(0xe4)]['devices'][_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]]['intercept']];for(const _0x135626 of _0x5875f2){if(core_1['Types'][_0x36654c(0xf2)](_0x135626)||typeof _0x135626==_0x36654c(0xf9)){const _0x16ee45=await _0x47049d[_0x36654c(0xde)]['getAsync'](_0x135626);typeof(_0x16ee45===null||_0x16ee45===void 0x0?void 0x0:_0x16ee45['handler'])==_0x36654c(0xb7)&&await _0x16ee45[_0x36654c(0xd2)](typeof(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d[_0x36654c(0xc0)])==_0x36654c(0xf9)&&(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d['_matchedRoute'])?_0x47049d[_0x36654c(0xc0)][_0x36654c(0xd8)]()+'@'+(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d['_matchedRoute']):undefined,_0x47049d,_0x2d85d4);}else core_1[_0x36654c(0xfd)][_0x36654c(0xeb)](_0x135626)&&await _0x135626(typeof(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d[_0x36654c(0xc0)])=='string'&&(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d['_matchedRoute'])?_0x47049d[_0x36654c(0xc0)][_0x36654c(0xd8)]()+'@'+(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d[_0x36654c(0x94)]):undefined,_0x47049d,_0x2d85d4);}}}return await _0x3004ed[_0x36654c(0xee)](..._0x3004ed[_0x36654c(0xf8)]);},'afterThrow':(_0x4fe1be,_0xe34120)=>{throw _0xe34120;}};});}async[a2_0x1bb875(0xaf)](){const _0x527da5=a2_0x1bb875;this[_0x527da5(0x97)][_0x527da5(0xbd)]([_0x527da5(0xa1)])[_0x527da5(0x95)](_0xa39e98=>{const _0x3fa93b=_0x527da5;(_0xa39e98===null||_0xa39e98===void 0x0?void 0x0:_0xa39e98[_0x3fa93b(0xb6)])&&Object[_0x3fa93b(0xd3)](_0xa39e98[_0x3fa93b(0xb6)],{'ok':{'value':function(_0x1a7710,_0x59491b,_0x1ca1c1=0x0){return{'code':_0x1ca1c1,'data':_0x1a7710,'extra':_0x59491b};}},'input':{'value':function(_0xeb26ff,_0x39b940){const _0x4d7c61=_0x3fa93b;var _0x4aecf2;const _0x135d25=lodash[_0x4d7c61(0xb8)]({},this['request'][_0x4d7c61(0xc2)]||this[_0x4d7c61(0xe9)][((_0x4aecf2=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x4aecf2===void 0x0?void 0x0:_0x4aecf2[_0x4d7c61(0xcb)])||_0x4d7c61(0xc2)]||{},this[_0x4d7c61(0xe9)]['query']||{});return _0xeb26ff?lodash[_0x4d7c61(0xb4)](_0x135d25,_0xeb26ff,_0x39b940):_0x135d25;}},'when':{'value':async function(_0xc9d1ca,_0x1eb0e8){const _0x3d3400=_0x3fa93b,_0x34d40a=this[_0x3d3400(0xab)](_0xc9d1ca,null);if(!lodash['isNull'](_0x34d40a))return await _0x1eb0e8(_0x34d40a);}},'only':{'value':function(_0x345553){const _0x6cb16b=_0x3fa93b,_0x9b7c0b={};for(let _0x2c11f5=0x0;_0x2c11f5<_0x345553[_0x6cb16b(0xdb)];_0x2c11f5++){lodash[_0x6cb16b(0xf6)](_0x345553[_0x2c11f5])&&_0x345553[_0x2c11f5][_0x6cb16b(0xdb)]>0x0&&lodash[_0x6cb16b(0xb9)](_0x345553[_0x2c11f5][0x0])&&(_0x9b7c0b[_0x345553[_0x2c11f5][0x0]]=this[_0x6cb16b(0xab)](_0x345553[_0x2c11f5][0x0],_0x345553[_0x2c11f5][_0x6cb16b(0xdb)]>0x1?_0x345553[_0x2c11f5][0x1]:null));}return _0x9b7c0b;}}});});}async[a2_0x1bb875(0xc8)](){const _0x239cb4=a2_0x1bb875;var _0x476dc8,_0x489c20;if(fs[_0x239cb4(0xfa)](this[_0x239cb4(0xb5)]['getBaseDir']()+_0x239cb4(0x100))&&fs[_0x239cb4(0xdd)](this[_0x239cb4(0xb5)][_0x239cb4(0xba)]()+_0x239cb4(0x100))[_0x239cb4(0xcc)]()){const _0xd5737e=this[_0x239cb4(0xfe)]['getConfiguration'](),_0x565e75=((_0x476dc8=_0xd5737e===null||_0xd5737e===void 0x0?void 0x0:_0xd5737e[_0x239cb4(0xa2)])===null||_0x476dc8===void 0x0?void 0x0:_0x476dc8[_0x239cb4(0xa3)])||{};for(const _0x5104eb of fs[_0x239cb4(0xbb)](this['app'][_0x239cb4(0xba)]()+_0x239cb4(0x100))){if(!fs['statSync'](this['app'][_0x239cb4(0xba)]()+_0x239cb4(0x90)+_0x5104eb)[_0x239cb4(0xcc)]())continue;if(_0x565e75===null||_0x565e75===void 0x0?void 0x0:_0x565e75[_0x5104eb])continue;_0x565e75[_0x5104eb]=Object[_0x239cb4(0x93)]({},((_0x489c20=_0xd5737e===null||_0xd5737e===void 0x0?void 0x0:_0xd5737e[_0x239cb4(0xa2)])===null||_0x489c20===void 0x0?void 0x0:_0x489c20['default'])||{'maxSize':'1m','dir':this[_0x239cb4(0xb5)][_0x239cb4(0xa7)]()+_0x239cb4(0xb3)},{'enableJSON':!![],'enableConsole':this[_0x239cb4(0xb1)][_0x239cb4(0x8f)](),'fileLogName':_0x5104eb+_0x239cb4(0xfc),'dir':this['app']['getAppDir']()+_0x239cb4(0xda)+_0x5104eb+_0x239cb4(0x9d)});}Object[_0x239cb4(0xd1)](_0x565e75)[_0x239cb4(0xdb)]>0x0&&(!_0xd5737e[_0x239cb4(0xa2)]&&(_0xd5737e[_0x239cb4(0xa2)]={'default':{'maxSize':'1m','dir':this[_0x239cb4(0xb5)][_0x239cb4(0xa7)]()+_0x239cb4(0xb3)}}),_0xd5737e[_0x239cb4(0xa2)][_0x239cb4(0xa3)]=_0x565e75),this[_0x239cb4(0xfe)][_0x239cb4(0x98)](_0xd5737e);}}async[a2_0x1bb875(0xed)](){const _0x3faa0e=a2_0x1bb875;var _0x3b9263,_0x323241,_0x1f3a67,_0x258e00,_0x3bce41,_0x5d72f2;const _0x502bc0=this[_0x3faa0e(0xfe)][_0x3faa0e(0xe6)]();((_0x323241=(_0x3b9263=_0x502bc0===null||_0x502bc0===void 0x0?void 0x0:_0x502bc0['anncicapi'])===null||_0x3b9263===void 0x0?void 0x0:_0x3b9263[_0x3faa0e(0xd5)])===null||_0x323241===void 0x0?void 0x0:_0x323241[_0x3faa0e(0xf3)])&&Object[_0x3faa0e(0xd1)](_0x502bc0[_0x3faa0e(0xe4)][_0x3faa0e(0xd5)])[_0x3faa0e(0xdb)]>0x1&&delete _0x502bc0[_0x3faa0e(0xe4)]['devices'][_0x3faa0e(0xf3)];if((_0x1f3a67=_0x502bc0===null||_0x502bc0===void 0x0?void 0x0:_0x502bc0[_0x3faa0e(0xe7)])===null||_0x1f3a67===void 0x0?void 0x0:_0x1f3a67[_0x3faa0e(0xcf)])for(const _0x5dd79b in _0x502bc0['staticFile'][_0x3faa0e(0xcf)]){((_0x258e00=_0x502bc0['staticFile'][_0x3faa0e(0xcf)][_0x5dd79b])===null||_0x258e00===void 0x0?void 0x0:_0x258e00[_0x3faa0e(0xaa)])&&typeof((_0x3bce41=_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b])===null||_0x3bce41===void 0x0?void 0x0:_0x3bce41[_0x3faa0e(0xaa)])==_0x3faa0e(0xf9)&&!fs[_0x3faa0e(0xfa)](_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b]['dir'])&&(fs[_0x3faa0e(0xf4)](_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b]['dir'],{'recursive':!![]}),console['log'](_0x3faa0e(0xbe)+_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b]['dir']));}((_0x5d72f2=_0x502bc0===null||_0x502bc0===void 0x0?void 0x0:_0x502bc0[_0x3faa0e(0xad)])===null||_0x5d72f2===void 0x0?void 0x0:_0x5d72f2[_0x3faa0e(0xd0)])&&!fs[_0x3faa0e(0xfa)](_0x502bc0[_0x3faa0e(0xad)][_0x3faa0e(0xd0)])&&(fs[_0x3faa0e(0xf4)](_0x502bc0[_0x3faa0e(0xad)]['tmpdir'],{'recursive':!![]}),console[_0x3faa0e(0x9a)](_0x3faa0e(0xa4)+_0x502bc0[_0x3faa0e(0xad)][_0x3faa0e(0xd0)])),this[_0x3faa0e(0xfe)][_0x3faa0e(0x98)](_0x502bc0);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x1bb875(0xce),Object)],CustomConfiguration[a2_0x1bb875(0xc1)],a2_0x1bb875(0xb5),void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata(a2_0x1bb875(0xce),core_2[a2_0x1bb875(0xca)])],CustomConfiguration[a2_0x1bb875(0xc1)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata(a2_0x1bb875(0xce),core_2[a2_0x1bb875(0xef)])],CustomConfiguration[a2_0x1bb875(0xc1)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x1bb875(0xce),core_2[a2_0x1bb875(0x92)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata('design:type',core_2[a2_0x1bb875(0xf0)])],CustomConfiguration[a2_0x1bb875(0xc1)],a2_0x1bb875(0xb1),void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata(a2_0x1bb875(0xce),ApiService_1['ApiService'])],CustomConfiguration[a2_0x1bb875(0xc1)],a2_0x1bb875(0xd9),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x1bb875(0xd7),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x9bf543=a2_0x5e66;(function(_0x25e6ae,_0x342e95){const _0x2acae5=a2_0x5e66,_0x4aab7c=_0x25e6ae();while(!![]){try{const _0x39418f=-parseInt(_0x2acae5(0x12f))/0x1*(parseInt(_0x2acae5(0x177))/0x2)+-parseInt(_0x2acae5(0x146))/0x3+parseInt(_0x2acae5(0x133))/0x4+parseInt(_0x2acae5(0x12c))/0x5+-parseInt(_0x2acae5(0x187))/0x6+parseInt(_0x2acae5(0x17c))/0x7+parseInt(_0x2acae5(0x14d))/0x8;if(_0x39418f===_0x342e95)break;else _0x4aab7c['push'](_0x4aab7c['shift']());}catch(_0x3bcca0){_0x4aab7c['push'](_0x4aab7c['shift']());}}}(a2_0x3f49,0xdabf0));var __decorate=this&&this[a2_0x9bf543(0x145)]||function(_0x3da39c,_0x416703,_0x1da8a0,_0x56fb7d){const _0x4cd8d7=a2_0x9bf543;var _0x5edd99=arguments[_0x4cd8d7(0x18b)],_0x36554a=_0x5edd99<0x3?_0x416703:_0x56fb7d===null?_0x56fb7d=Object[_0x4cd8d7(0x13c)](_0x416703,_0x1da8a0):_0x56fb7d,_0x46b876;if(typeof Reflect===_0x4cd8d7(0x13d)&&typeof Reflect[_0x4cd8d7(0x15c)]===_0x4cd8d7(0x15e))_0x36554a=Reflect['decorate'](_0x3da39c,_0x416703,_0x1da8a0,_0x56fb7d);else{for(var _0x31dbc1=_0x3da39c['length']-0x1;_0x31dbc1>=0x0;_0x31dbc1--)if(_0x46b876=_0x3da39c[_0x31dbc1])_0x36554a=(_0x5edd99<0x3?_0x46b876(_0x36554a):_0x5edd99>0x3?_0x46b876(_0x416703,_0x1da8a0,_0x36554a):_0x46b876(_0x416703,_0x1da8a0))||_0x36554a;}return _0x5edd99>0x3&&_0x36554a&&Object[_0x4cd8d7(0x131)](_0x416703,_0x1da8a0,_0x36554a),_0x36554a;},__metadata=this&&this[a2_0x9bf543(0x12a)]||function(_0x3195a6,_0x188938){const _0x271bbe=a2_0x9bf543;if(typeof Reflect===_0x271bbe(0x13d)&&typeof Reflect['metadata']===_0x271bbe(0x15e))return Reflect[_0x271bbe(0x151)](_0x3195a6,_0x188938);};function a2_0x5e66(_0x755557,_0x3a3cd4){const _0x3f4986=a2_0x3f49();return a2_0x5e66=function(_0x5e664d,_0x350bf9){_0x5e664d=_0x5e664d-0x123;let _0x2783ed=_0x3f4986[_0x5e664d];return _0x2783ed;},a2_0x5e66(_0x755557,_0x3a3cd4);}Object['defineProperty'](exports,a2_0x9bf543(0x167),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x9bf543(0x18f)),core_2=require(a2_0x9bf543(0x18f)),ApiError_1=require(a2_0x9bf543(0x184)),ApiService_1=require(a2_0x9bf543(0x16f)),action_1=require(a2_0x9bf543(0x127)),fs=require('fs'),koasend=require(a2_0x9bf543(0x186)),koa=require(a2_0x9bf543(0x123)),i18n=require(a2_0x9bf543(0x157)),upload=require(a2_0x9bf543(0x13b)),staticFile=require(a2_0x9bf543(0x138)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x9bf543(0x154)),ConfigProduction=require(a2_0x9bf543(0x13a)),anncic=require(a2_0x9bf543(0x13f)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x9bf543(0x188)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x9bf543(0x14c)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0xd0b67c=a2_0x9bf543;await this[_0xd0b67c(0x14f)](),await this[_0xd0b67c(0x178)](),await this[_0xd0b67c(0x17d)](),await this['handlerActionRoute'](),await this[_0xd0b67c(0x139)]();}async[a2_0x9bf543(0x17d)](){}async[a2_0x9bf543(0x163)](){const _0x42d995=a2_0x9bf543,_0x45a2f8=this['config'][_0x42d995(0x132)]();this[_0x42d995(0x144)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0xf8d800=>{const _0x48f961=_0x42d995,_0x15dacd=_0xf8d800[_0x48f961(0x151)];return{'before':async _0x40b8b0=>{const _0x5969fd=_0x48f961;var _0x43bfe7,_0x40bb99;const _0xb91e10=(_0x43bfe7=_0x40b8b0===null||_0x40b8b0===void 0x0?void 0x0:_0x40b8b0[_0x5969fd(0x137)])===null||_0x43bfe7===void 0x0?void 0x0:_0x43bfe7[core_2[_0x5969fd(0x18d)]];_0xb91e10['metadata']=_0x15dacd||{};if(_0xb91e10&&(_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd[_0x5969fd(0x14b)])){if(!this[_0x5969fd(0x183)][_0x5969fd(0x143)]((_0x40bb99=_0xb91e10===null||_0xb91e10===void 0x0?void 0x0:_0xb91e10[_0x5969fd(0x162)])===null||_0x40bb99===void 0x0?void 0x0:_0x40bb99[_0x5969fd(0x18c)]))throw new AnnError(ApiError_1[_0x5969fd(0x173)][_0x5969fd(0x13e)]);}},'around':async _0x567c48=>{const _0x21be02=_0x48f961;var _0x428fca,_0x4fe002,_0x88d996,_0x2ce19b,_0x2d8125;const _0x2f19f2=(_0x428fca=_0x567c48===null||_0x567c48===void 0x0?void 0x0:_0x567c48[_0x21be02(0x137)])===null||_0x428fca===void 0x0?void 0x0:_0x428fca[core_2[_0x21be02(0x18d)]];if(_0x2f19f2&&(_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd[_0x21be02(0x14b)])&&((_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd[_0x21be02(0x168)])||typeof(_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd['intercept'])==_0x21be02(0x130))){if(((_0x4fe002=_0x2f19f2[_0x21be02(0x18c)])===null||_0x4fe002===void 0x0?void 0x0:_0x4fe002[_0x21be02(0x160)])&&((_0x2d8125=(_0x2ce19b=(_0x88d996=_0x45a2f8===null||_0x45a2f8===void 0x0?void 0x0:_0x45a2f8[_0x21be02(0x171)])===null||_0x88d996===void 0x0?void 0x0:_0x88d996['devices'])===null||_0x2ce19b===void 0x0?void 0x0:_0x2ce19b[_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]])===null||_0x2d8125===void 0x0?void 0x0:_0x2d8125[_0x21be02(0x168)])){const _0x36a51a=Array[_0x21be02(0x125)](_0x45a2f8[_0x21be02(0x171)][_0x21be02(0x159)][_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]]['intercept'])?_0x45a2f8[_0x21be02(0x171)][_0x21be02(0x159)][_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]][_0x21be02(0x168)]:[_0x45a2f8[_0x21be02(0x171)]['devices'][_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]][_0x21be02(0x168)]];for(const _0x283486 of _0x36a51a){if(core_1[_0x21be02(0x14a)][_0x21be02(0x172)](_0x283486)||typeof _0x283486==_0x21be02(0x152)){const _0x36d025=await _0x2f19f2[_0x21be02(0x155)]['getAsync'](_0x283486);typeof(_0x36d025===null||_0x36d025===void 0x0?void 0x0:_0x36d025[_0x21be02(0x180)])==_0x21be02(0x15e)&&await _0x36d025[_0x21be02(0x180)](typeof(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2[_0x21be02(0x164)])==_0x21be02(0x152)&&(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2['_matchedRoute'])?_0x2f19f2[_0x21be02(0x164)][_0x21be02(0x141)]()+'@'+(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2[_0x21be02(0x156)]):undefined,_0x2f19f2,_0x15dacd);}else core_1[_0x21be02(0x14a)][_0x21be02(0x126)](_0x283486)&&await _0x283486(typeof(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2['method'])=='string'&&(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2[_0x21be02(0x156)])?_0x2f19f2['method'][_0x21be02(0x141)]()+'@'+(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2['_matchedRoute']):undefined,_0x2f19f2,_0x15dacd);}}}return await _0x567c48[_0x21be02(0x12d)](..._0x567c48['args']);},'afterThrow':(_0x7067ee,_0x40e206)=>{throw _0x40e206;}};});}async[a2_0x9bf543(0x139)](){const _0x110a1c=a2_0x9bf543;this[_0x110a1c(0x176)]['getApplications']([_0x110a1c(0x12b)])['forEach'](_0x2f666c=>{const _0x1486b3=_0x110a1c;(_0x2f666c===null||_0x2f666c===void 0x0?void 0x0:_0x2f666c[_0x1486b3(0x158)])&&Object[_0x1486b3(0x15b)](_0x2f666c[_0x1486b3(0x158)],{'ok':{'value':function(_0x44f7bd,_0x478880,_0x1c98ca=0x0){return{'code':_0x1c98ca,'data':_0x44f7bd,'extra':_0x478880};}},'input':{'value':function(_0x3a2463,_0x421452){const _0xd5600e=_0x1486b3;var _0x1fb7bf;const _0x210e8b=lodash['defaultsDeep']({},this[_0xd5600e(0x162)]['body']||this['request'][((_0x1fb7bf=config===null||config===void 0x0?void 0x0:config[_0xd5600e(0x169)])===null||_0x1fb7bf===void 0x0?void 0x0:_0x1fb7bf[_0xd5600e(0x175)])||'body']||{},this[_0xd5600e(0x162)][_0xd5600e(0x148)]||{});return _0x3a2463?lodash['get'](_0x210e8b,_0x3a2463,_0x421452):_0x210e8b;}},'when':{'value':async function(_0x9c4a18,_0xdb78a4){const _0xb5eec3=_0x1486b3,_0x3897b4=this['input'](_0x9c4a18,null);if(!lodash[_0xb5eec3(0x18e)](_0x3897b4))return await _0xdb78a4(_0x3897b4);}},'only':{'value':function(_0x487209){const _0x33360a=_0x1486b3,_0x56f963={};for(let _0xbe2c47=0x0;_0xbe2c47<_0x487209[_0x33360a(0x18b)];_0xbe2c47++){lodash[_0x33360a(0x125)](_0x487209[_0xbe2c47])&&_0x487209[_0xbe2c47][_0x33360a(0x18b)]>0x0&&lodash['isString'](_0x487209[_0xbe2c47][0x0])&&(_0x56f963[_0x487209[_0xbe2c47][0x0]]=this[_0x33360a(0x17f)](_0x487209[_0xbe2c47][0x0],_0x487209[_0xbe2c47]['length']>0x1?_0x487209[_0xbe2c47][0x1]:null));}return _0x56f963;}},'koasend':{'value':function(_0x1e403d){const _0x25add8=_0x1486b3;if(!fs[_0x25add8(0x153)](this['app'][_0x25add8(0x17b)]()+'/'+_0x1e403d))return _0x25add8(0x12e);return koasend(this,_0x1e403d);}}});});}async[a2_0x9bf543(0x178)](){const _0x1f5355=a2_0x9bf543;var _0x26a5ca,_0x4d3e81;if(fs[_0x1f5355(0x153)](this[_0x1f5355(0x18a)][_0x1f5355(0x124)]()+'/apps')&&fs[_0x1f5355(0x147)](this[_0x1f5355(0x18a)]['getBaseDir']()+_0x1f5355(0x134))[_0x1f5355(0x16b)]()){const _0x32b3a9=this[_0x1f5355(0x136)][_0x1f5355(0x132)](),_0x5d572b=((_0x26a5ca=_0x32b3a9===null||_0x32b3a9===void 0x0?void 0x0:_0x32b3a9[_0x1f5355(0x128)])===null||_0x26a5ca===void 0x0?void 0x0:_0x26a5ca[_0x1f5355(0x191)])||{};for(const _0x5eaff5 of fs[_0x1f5355(0x170)](this[_0x1f5355(0x18a)][_0x1f5355(0x124)]()+'/apps')){if(!fs[_0x1f5355(0x147)](this['app'][_0x1f5355(0x124)]()+_0x1f5355(0x182)+_0x5eaff5)[_0x1f5355(0x16b)]())continue;if(_0x5d572b===null||_0x5d572b===void 0x0?void 0x0:_0x5d572b[_0x5eaff5])continue;_0x5d572b[_0x5eaff5]=Object[_0x1f5355(0x189)]({},((_0x4d3e81=_0x32b3a9===null||_0x32b3a9===void 0x0?void 0x0:_0x32b3a9[_0x1f5355(0x128)])===null||_0x4d3e81===void 0x0?void 0x0:_0x4d3e81[_0x1f5355(0x166)])||{'maxSize':'1m','dir':this['app'][_0x1f5355(0x17b)]()+_0x1f5355(0x165)},{'enableJSON':!![],'enableConsole':this[_0x1f5355(0x190)][_0x1f5355(0x16e)](),'fileLogName':_0x5eaff5+_0x1f5355(0x179),'dir':this[_0x1f5355(0x18a)]['getAppDir']()+_0x1f5355(0x185)+_0x5eaff5+_0x1f5355(0x16a)});}Object[_0x1f5355(0x174)](_0x5d572b)[_0x1f5355(0x18b)]>0x0&&(!_0x32b3a9[_0x1f5355(0x128)]&&(_0x32b3a9['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x1f5355(0x18a)][_0x1f5355(0x17b)]()+_0x1f5355(0x165)}}),_0x32b3a9[_0x1f5355(0x128)][_0x1f5355(0x191)]=_0x5d572b),this[_0x1f5355(0x136)]['addObject'](_0x32b3a9);}}async['filterConfig'](){const _0x41b14d=a2_0x9bf543;var _0xed717,_0x4e1d13,_0x583445,_0x3ec0b1,_0x44adc0,_0x2a01a5;const _0x48f728=this[_0x41b14d(0x136)][_0x41b14d(0x132)]();((_0x4e1d13=(_0xed717=_0x48f728===null||_0x48f728===void 0x0?void 0x0:_0x48f728[_0x41b14d(0x171)])===null||_0xed717===void 0x0?void 0x0:_0xed717[_0x41b14d(0x159)])===null||_0x4e1d13===void 0x0?void 0x0:_0x4e1d13[_0x41b14d(0x140)])&&Object[_0x41b14d(0x174)](_0x48f728[_0x41b14d(0x171)][_0x41b14d(0x159)])[_0x41b14d(0x18b)]>0x1&&delete _0x48f728['anncicapi']['devices'][_0x41b14d(0x140)];if((_0x583445=_0x48f728===null||_0x48f728===void 0x0?void 0x0:_0x48f728['staticFile'])===null||_0x583445===void 0x0?void 0x0:_0x583445[_0x41b14d(0x16d)])for(const _0x390041 in _0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)]){((_0x3ec0b1=_0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)][_0x390041])===null||_0x3ec0b1===void 0x0?void 0x0:_0x3ec0b1['dir'])&&typeof((_0x44adc0=_0x48f728['staticFile']['dirs'][_0x390041])===null||_0x44adc0===void 0x0?void 0x0:_0x44adc0[_0x41b14d(0x192)])==_0x41b14d(0x152)&&!fs['existsSync'](_0x48f728['staticFile'][_0x41b14d(0x16d)][_0x390041][_0x41b14d(0x192)])&&(fs['mkdirSync'](_0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)][_0x390041][_0x41b14d(0x192)],{'recursive':!![]}),console[_0x41b14d(0x16c)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)][_0x390041][_0x41b14d(0x192)]));}((_0x2a01a5=_0x48f728===null||_0x48f728===void 0x0?void 0x0:_0x48f728[_0x41b14d(0x14e)])===null||_0x2a01a5===void 0x0?void 0x0:_0x2a01a5[_0x41b14d(0x15f)])&&!fs['existsSync'](_0x48f728[_0x41b14d(0x14e)][_0x41b14d(0x15f)])&&(fs[_0x41b14d(0x181)](_0x48f728['upload']['tmpdir'],{'recursive':!![]}),console[_0x41b14d(0x16c)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x48f728[_0x41b14d(0x14e)][_0x41b14d(0x15f)])),this['config'][_0x41b14d(0x135)](_0x48f728);}};__decorate([(0x0,core_1[a2_0x9bf543(0x129)])(),__metadata(a2_0x9bf543(0x161),Object)],CustomConfiguration[a2_0x9bf543(0x149)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata(a2_0x9bf543(0x161),core_2[a2_0x9bf543(0x17a)])],CustomConfiguration[a2_0x9bf543(0x149)],a2_0x9bf543(0x136),void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata(a2_0x9bf543(0x161),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x9bf543(0x149)],a2_0x9bf543(0x144),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x9bf543(0x161),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata(a2_0x9bf543(0x161),core_2[a2_0x9bf543(0x142)])],CustomConfiguration[a2_0x9bf543(0x149)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata('design:type',ApiService_1[a2_0x9bf543(0x183)])],CustomConfiguration['prototype'],a2_0x9bf543(0x183),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x9bf543(0x15a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x9bf543(0x17e)]=CustomConfiguration;function a2_0x3f49(){const _0x349547=['application','17538PCLgkE','loggerConfig','.log','MidwayConfigService','getAppDir','1035454BePdoF','checkConfigKeys','CustomConfiguration','input','handler','mkdirSync','/apps/','ApiService','./exception/ApiError','/runtime/apps-','koa-send','3536118teoxSJ','@anncic-api/event','assign','app','length','headers','REQUEST_OBJ_CTX_KEY','isNull','@midwayjs/core','environment','clients','dir','@midwayjs/koa','getBaseDir','isArray','isFunction','./types/action','midwayLogger','App','__metadata','koa','6401345piLkiV','proceed','文件不存在','76QBtfrQ','undefined','defineProperty','getConfiguration','3912288cKNBHZ','/apps','addObject','config','target','@midwayjs/static-file','hanlderApplications','./config/config.production','@midwayjs/upload','getOwnPropertyDescriptor','object','HEADERS_SIGNATURE','@anncic-api/core','DEFAULT','toLowerCase','MidwayEnvironmentService','checksign','decorator','__decorate','4493433QrUMPM','statSync','query','prototype','Types','apimit','@anncic-api/validator','9946632jnJayj','upload','filterConfig','staticFile','metadata','string','existsSync','./config/config.default','requestContext','_matchedRoute','@midwayjs/i18n','context','devices','anncic-api','defineProperties','decorate','Inject','function','tmpdir','device','design:type','request','handlerActionRoute','method','/runtime','default','__esModule','intercept','bodyXml','-log','isDirectory','log','dirs','isDevelopmentEnvironment','./service/ApiService','readdirSync','anncicapi','isClass','ApiError','keys','key'];a2_0x3f49=function(){return _0x349547;};return a2_0x3f49();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x58ea81=a3_0x1b6e;(function(_0x3cecf9,_0x584e9b){const _0x3ed670=a3_0x1b6e,_0x4f505b=_0x3cecf9();while(!![]){try{const _0xcfb39b=parseInt(_0x3ed670(0xdb))/0x1*(parseInt(_0x3ed670(0xd9))/0x2)+parseInt(_0x3ed670(0x103))/0x3+parseInt(_0x3ed670(0xdf))/0x4+parseInt(_0x3ed670(0xf4))/0x5+-parseInt(_0x3ed670(0xda))/0x6*(-parseInt(_0x3ed670(0xf5))/0x7)+-parseInt(_0x3ed670(0xe3))/0x8*(parseInt(_0x3ed670(0xd7))/0x9)+-parseInt(_0x3ed670(0xfc))/0xa;if(_0xcfb39b===_0x584e9b)break;else _0x4f505b['push'](_0x4f505b['shift']());}catch(_0x9089f9){_0x4f505b['push'](_0x4f505b['shift']());}}}(a3_0x5f2e,0xb07dc));function a3_0x1b6e(_0x36efae,_0x5caa0a){const _0x5f2eca=a3_0x5f2e();return a3_0x1b6e=function(_0x1b6ed3,_0x15c249){_0x1b6ed3=_0x1b6ed3-0xd0;let _0x3cbd42=_0x5f2eca[_0x1b6ed3];return _0x3cbd42;},a3_0x1b6e(_0x36efae,_0x5caa0a);}function a3_0x5f2e(){const _0x4c549f=['defineProperty','25209260vVtrlV','prefix','@midwayjs/core','module','-controller','length','filepath','4336350NWuotx','app/controller/','split','startsWith','middleware','/apps/','cwd','join','existsSync','tagName','1492749VKLymy','route','2BUDGiR','102EevOnL','796863MnthwL','AppsConfigTmp','push','trim','5480816mbNaRp','apps/','../types/action','/controller/','32OFBIle','splice','-action','indexOf','replace','parseRoute','Action','saveModule','filter','saveClassMetadata','getClassMetadata','__esModule','Controller','substring','ACTION_KEY','APPSCONFIG_KEY','endsWith','1190585ZTNDDl','23324eEryHr','/config.','match','rootpath','toLowerCase','basic/controller/'];a3_0x5f2e=function(){return _0x4c549f;};return a3_0x5f2e();}Object[a3_0x58ea81(0xfb)](exports,a3_0x58ea81(0xee),{'value':!![]}),exports['parseRoute']=exports[a3_0x58ea81(0xe9)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x58ea81(0xfe)),action_1=require(a3_0x58ea81(0xe1));function Action(_0x47a853,_0x5951d9,_0x16e46a={'middleware':[],'sensitive':!![]}){return _0x1870ba=>{const _0x11c4eb=a3_0x1b6e;var _0x5ba317;_0x16e46a[_0x11c4eb(0xd6)]=_0x5951d9;const _0x5d4f56=parseRoute(_0x47a853);if(_0x5d4f56[_0x11c4eb(0xff)]){_0x16e46a['prefix']=_0x16e46a[_0x11c4eb(0xfd)]?'/'+_0x5d4f56[_0x11c4eb(0xff)]+'/'+_0x16e46a[_0x11c4eb(0xfd)]:'/'+_0x5d4f56['route'];_0x5d4f56[_0x11c4eb(0xfd)]&&(_0x16e46a[_0x11c4eb(0xfd)]='/'+_0x5d4f56['prefix']+'/'+_0x16e46a['prefix']);if(fs[_0x11c4eb(0xd5)](_0x5d4f56[_0x11c4eb(0xf8)]+_0x11c4eb(0xd2)+_0x5d4f56[_0x11c4eb(0xff)]+_0x11c4eb(0xf6)+(lodash[_0x11c4eb(0xf3)](_0x5d4f56[_0x11c4eb(0x102)],'ts')?'ts':'js'))){const _0x457d45=include(_0x5d4f56[_0x11c4eb(0xf8)]+'/apps/'+_0x5d4f56[_0x11c4eb(0xff)]+_0x11c4eb(0xf6)+(lodash['endsWith'](_0x5d4f56['filepath'],'ts')?'ts':'js'));if(_0x457d45['middleware']&&lodash['isArray'](_0x457d45[_0x11c4eb(0xd1)])&&_0x457d45[_0x11c4eb(0xd1)]['length']>0x0)for(let _0x1247f1 in _0x457d45[_0x11c4eb(0xd1)]){if(((_0x5ba317=_0x457d45===null||_0x457d45===void 0x0?void 0x0:_0x457d45['middlewareIgnore'])===null||_0x5ba317===void 0x0?void 0x0:_0x5ba317['length'])>0x0&&_0x457d45['middlewareIgnore']['indexOf'](_0x457d45[_0x11c4eb(0xd1)][_0x1247f1])!=-0x1)continue;_0x16e46a[_0x11c4eb(0xd1)][_0x11c4eb(0xdd)](_0x457d45[_0x11c4eb(0xd1)][_0x1247f1]);}const _0x54fd2e=(0x0,core_1[_0x11c4eb(0xed)])(action_1[_0x11c4eb(0xf2)],action_1['AppsConfigTmp'])||{};_0x54fd2e[''+_0x5d4f56['module']]=_0x457d45,(0x0,core_1[_0x11c4eb(0xec)])(action_1[_0x11c4eb(0xf2)],_0x54fd2e,action_1[_0x11c4eb(0xdc)]);}_0x16e46a['prefix']=_0x16e46a[_0x11c4eb(0xfd)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x11c4eb(0xea)])(action_1[_0x11c4eb(0xf1)],_0x1870ba),(0x0,core_1[_0x11c4eb(0xef)])(_0x16e46a['prefix'],_0x16e46a)(_0x1870ba),(0x0,core_1[_0x11c4eb(0xec)])(action_1['ACTION_KEY'],{'prefix':_0x16e46a[_0x11c4eb(0xfd)],'pprefix':_0x5d4f56[_0x11c4eb(0xfd)],'module':_0x5d4f56['module'],'filepath':_0x5d4f56[_0x11c4eb(0x102)],'routerOptions':_0x16e46a},_0x1870ba);}else _0x16e46a[_0x11c4eb(0xfd)]=_0x16e46a[_0x11c4eb(0xfd)]?'/'+_0x16e46a[_0x11c4eb(0xfd)]:'/'+_0x5d4f56[_0x11c4eb(0xd8)],_0x5d4f56[_0x11c4eb(0xfd)]&&(_0x16e46a['prefix']='/'+_0x5d4f56[_0x11c4eb(0xfd)]+'/'+_0x16e46a[_0x11c4eb(0xfd)]),_0x16e46a[_0x11c4eb(0xfd)]=_0x16e46a[_0x11c4eb(0xfd)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x11c4eb(0xea)])(action_1[_0x11c4eb(0xf1)],_0x1870ba),(0x0,core_1[_0x11c4eb(0xef)])(_0x16e46a[_0x11c4eb(0xfd)],_0x16e46a)(_0x1870ba),(0x0,core_1['saveClassMetadata'])(action_1[_0x11c4eb(0xf1)],{'prefix':_0x16e46a[_0x11c4eb(0xfd)],'module':_0x5d4f56[_0x11c4eb(0xff)],'pprefix':_0x5d4f56[_0x11c4eb(0xfd)],'filepath':_0x5d4f56[_0x11c4eb(0x102)],'routerOptions':_0x16e46a},_0x1870ba);};}exports['Action']=Action;function parseRoute(_0x1c49c1){const _0x568570=a3_0x58ea81;_0x1c49c1=_0x1c49c1['replace'](/(\\|\/)/g,'/');const _0x367e2b=process[_0x568570(0xd3)]()[_0x568570(0xe7)](/(\\|\/)/g,'/'),_0x355525=_0x1c49c1[_0x568570(0xf0)](0x0,_0x367e2b[_0x568570(0x101)]+_0x1c49c1[_0x568570(0xf0)](_0x367e2b[_0x568570(0x101)]+0x1)[_0x568570(0xe6)]('/')+0x1),_0x491b3c=_0x1c49c1[_0x568570(0xf0)](_0x355525[_0x568570(0x101)]+0x1)[_0x568570(0xe7)](/(\\|\/)/g,'/'),_0x157f69={'route':'','prefix':![],'module':![],'rootpath':_0x355525,'filepath':_0x491b3c};if(_0x491b3c[_0x568570(0xd0)]('app/controller/')||_0x491b3c[_0x568570(0xd0)](_0x568570(0xfa))){const _0x336e33=_0x491b3c[_0x568570(0xf0)]((_0x491b3c[_0x568570(0xd0)](_0x568570(0x104))?'app/controller/':_0x568570(0xfa))['length'])[_0x568570(0x105)]('/')['filter'](_0x312c1c=>_0x312c1c&&_0x312c1c[_0x568570(0xde)]());return _0x336e33[_0x568570(0x101)]>0x1&&(_0x157f69[_0x568570(0xfd)]=_0x336e33[0x0]['toLowerCase'](),_0x336e33[_0x568570(0xe4)](0x0,0x1)),_0x157f69['route']=('/'+_0x336e33[_0x568570(0xd4)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x568570(0xe7)](/\/{2,}/g,'/')[_0x568570(0xf7)](/[\/|A-Z]*[^A-Z]+/g)[_0x568570(0xd4)]('-')[_0x568570(0xf9)]()[_0x568570(0xe7)](/\/\-/g,'/'),_0x157f69[_0x568570(0xd8)]['endsWith'](_0x568570(0xe5))&&(_0x157f69[_0x568570(0xd8)]=_0x157f69['route'][_0x568570(0xf0)](0x0,_0x157f69[_0x568570(0xd8)][_0x568570(0x101)]-0x7)),_0x157f69[_0x568570(0xd8)]['endsWith'](_0x568570(0x100))&&(_0x157f69[_0x568570(0xd8)]=_0x157f69[_0x568570(0xd8)]['substring'](0x0,_0x157f69[_0x568570(0xd8)][_0x568570(0x101)]-0xb)),_0x157f69;}else{if(_0x491b3c['startsWith'](_0x568570(0xe0))){const _0x50ef9b=_0x491b3c[_0x568570(0xf0)](0x0,_0x491b3c[_0x568570(0xe6)](_0x568570(0xd2))+0x5),_0x1ba2f7=_0x491b3c[_0x568570(0xf0)](_0x50ef9b[_0x568570(0x101)]+0x1)[_0x568570(0xe7)](/(\\|\/)/g,'/')[_0x568570(0x105)]('/')[0x0];if(_0x491b3c['startsWith'](_0x568570(0xe0)+_0x1ba2f7+_0x568570(0xe2))){const _0x32e52f=_0x491b3c['substring']((_0x50ef9b+'/'+_0x1ba2f7+_0x568570(0xe2))[_0x568570(0x101)])['split']('/')[_0x568570(0xeb)](_0x551842=>_0x551842&&_0x551842[_0x568570(0xde)]());return _0x32e52f['length']>0x1&&(_0x157f69[_0x568570(0xfd)]=_0x32e52f[0x0][_0x568570(0xf9)](),_0x32e52f[_0x568570(0xe4)](0x0,0x1)),_0x157f69['module']=_0x1ba2f7,_0x157f69['route']=('/'+_0x1ba2f7+'/'+_0x32e52f[_0x568570(0xd4)]('/'))[_0x568570(0xe7)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x568570(0xf7)](/[\/|A-Z]*[^A-Z]+/g)[_0x568570(0xd4)]('-')[_0x568570(0xf9)]()['replace'](/\/\-/g,'/'),_0x157f69['route'][_0x568570(0xf3)]('-action')&&(_0x157f69['route']=_0x157f69[_0x568570(0xd8)][_0x568570(0xf0)](0x0,_0x157f69[_0x568570(0xd8)][_0x568570(0x101)]-0x7)),_0x157f69['route']['endsWith'](_0x568570(0x100))&&(_0x157f69['route']=_0x157f69['route'][_0x568570(0xf0)](0x0,_0x157f69[_0x568570(0xd8)][_0x568570(0x101)]-0xb)),_0x157f69;}throw new Error(_0x491b3c+'\x20文件请放在apps/'+_0x1ba2f7+'/controller/文件下');}}throw new Error(_0x491b3c+'\x20文件请放在app/controller/文件下');}exports[a3_0x58ea81(0xe8)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x243ad7=a4_0xc6f7;(function(_0x15ad53,_0x1088bb){const _0x3c1228=a4_0xc6f7,_0x246854=_0x15ad53();while(!![]){try{const _0x134c2a=parseInt(_0x3c1228(0x85))/0x1+parseInt(_0x3c1228(0x66))/0x2+-parseInt(_0x3c1228(0x76))/0x3*(-parseInt(_0x3c1228(0x6a))/0x4)+parseInt(_0x3c1228(0x77))/0x5*(parseInt(_0x3c1228(0x87))/0x6)+parseInt(_0x3c1228(0x7d))/0x7*(-parseInt(_0x3c1228(0x7e))/0x8)+-parseInt(_0x3c1228(0x6e))/0x9*(-parseInt(_0x3c1228(0x6b))/0xa)+parseInt(_0x3c1228(0x68))/0xb*(-parseInt(_0x3c1228(0x72))/0xc);if(_0x134c2a===_0x1088bb)break;else _0x246854['push'](_0x246854['shift']());}catch(_0x3f1c22){_0x246854['push'](_0x246854['shift']());}}}(a4_0x15fe,0xe4142));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x243ad7(0x74)]=void 0x0;const validator_1=require(a4_0x243ad7(0x84)),core_1=require(a4_0x243ad7(0x67)),action_1=require(a4_0x243ad7(0x7c));function a4_0x15fe(){const _0x36a48d=['67506VhVgHn','2391734dlidij','@midwayjs/core','33oiBvyg','createCustomMethodDecorator','11204dsAuCJ','20cLvJSE','validationOptions','del','3944844Ugewgk','delete','attachClassMetadata','string','11025276OqXDJI','Validator','Api','filter','597HxgDUN','830hzffuQ','ACTION_ROUTE_KEY','description','middlewareIgnore','toLowerCase','../types/action','3465fzTjLA','16424ifQVzB','intercept','routerName','indexOf','validate','apimit','@anncic-api/validator','209200vMCBWj','middleware'];a4_0x15fe=function(){return _0x36a48d;};return a4_0x15fe();}function Api(_0x105798,_0xf85de8='get',_0x16b578='/',_0x167da5={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x36389f,_0x1df6fa,_0x2fe10e)=>{const _0x185990=a4_0xc6f7;var _0xd8a819,_0x2bc5af,_0x36008b;!_0x167da5['middleware']&&(_0x167da5[_0x185990(0x86)]=[]);!((_0xd8a819=_0x167da5===null||_0x167da5===void 0x0?void 0x0:_0x167da5[_0x185990(0x82)])===null||_0xd8a819===void 0x0?void 0x0:_0xd8a819[_0x185990(0x6c)])&&(_0x167da5[_0x185990(0x82)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x185990(0x71)}});if(((_0x2bc5af=_0x167da5===null||_0x167da5===void 0x0?void 0x0:_0x167da5[_0x185990(0x86)])===null||_0x2bc5af===void 0x0?void 0x0:_0x2bc5af['length'])>0x0&&((_0x36008b=_0x167da5===null||_0x167da5===void 0x0?void 0x0:_0x167da5[_0x185990(0x7a)])===null||_0x36008b===void 0x0?void 0x0:_0x36008b['length'])>0x0)for(let _0x3043f0 in _0x167da5['middleware']){_0x167da5[_0x185990(0x7a)][_0x185990(0x81)](_0x167da5[_0x185990(0x86)][_0x3043f0])!==-0x1&&(_0x167da5[_0x185990(0x86)][_0x3043f0]=null);}_0x167da5[_0x185990(0x80)]=_0x105798,(0x0,validator_1[_0x185990(0x73)])(_0x167da5[_0x185990(0x82)])(_0x36389f,_0x1df6fa,_0x2fe10e),(0x0,core_1['RequestMapping'])(Object['assign'](_0x167da5,{'path':_0x16b578,'requestMethod':(_0xf85de8==_0x185990(0x6d)?_0x185990(0x6f):_0xf85de8)[_0x185990(0x7b)]()}))(_0x36389f,_0x1df6fa,_0x2fe10e),(0x0,core_1[_0x185990(0x70)])(action_1[_0x185990(0x78)],{'path':_0x16b578,'method':_0x1df6fa,'apimit':_0x167da5[_0x185990(0x83)],'intercept':_0x167da5[_0x185990(0x7f)],'routerName':_0x167da5[_0x185990(0x80)],'description':_0x167da5['description'],'middleware':(_0x167da5[_0x185990(0x86)]||[])[_0x185990(0x75)](_0x485904=>!!_0x485904),'requestMethod':(_0xf85de8==_0x185990(0x6d)?_0x185990(0x6f):_0xf85de8)[_0x185990(0x7b)]()},_0x36389f),(0x0,core_1[_0x185990(0x69)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x16b578,'method':_0x1df6fa,'apimit':_0x167da5[_0x185990(0x83)],'intercept':_0x167da5[_0x185990(0x7f)],'routerName':_0x167da5['routerName'],'description':_0x167da5[_0x185990(0x79)],'middleware':(_0x167da5[_0x185990(0x86)]||[])[_0x185990(0x75)](_0x4f1956=>!!_0x4f1956),'requestMethod':(_0xf85de8==_0x185990(0x6d)?_0x185990(0x6f):_0xf85de8)[_0x185990(0x7b)]()})(_0x36389f,_0x1df6fa,_0x2fe10e);};}function a4_0xc6f7(_0x40895f,_0x281540){const _0x15fe85=a4_0x15fe();return a4_0xc6f7=function(_0xc6f76e,_0x83fa31){_0xc6f76e=_0xc6f76e-0x66;let _0x2e413b=_0x15fe85[_0xc6f76e];return _0x2e413b;},a4_0xc6f7(_0x40895f,_0x281540);}exports[a4_0x243ad7(0x74)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x52d346=a5_0x45c8;(function(_0x31a68e,_0x441658){const _0x434564=a5_0x45c8,_0x47bafe=_0x31a68e();while(!![]){try{const _0x25e010=parseInt(_0x434564(0xee))/0x1*(parseInt(_0x434564(0xf6))/0x2)+parseInt(_0x434564(0xf9))/0x3+-parseInt(_0x434564(0xf7))/0x4*(-parseInt(_0x434564(0xe7))/0x5)+parseInt(_0x434564(0xe4))/0x6*(-parseInt(_0x434564(0xfb))/0x7)+-parseInt(_0x434564(0xf1))/0x8*(-parseInt(_0x434564(0xfc))/0x9)+-parseInt(_0x434564(0xfd))/0xa+parseInt(_0x434564(0xeb))/0xb*(-parseInt(_0x434564(0xf0))/0xc);if(_0x25e010===_0x441658)break;else _0x47bafe['push'](_0x47bafe['shift']());}catch(_0xfabdec){_0x47bafe['push'](_0x47bafe['shift']());}}}(a5_0x3749,0x2ec45));Object['defineProperty'](exports,a5_0x52d346(0xed),{'value':!![]}),exports[a5_0x52d346(0xfa)]=void 0x0;function a5_0x3749(){const _0x4513d3=['14UxqTMC','2439QZwXEj','2797770DpgemY','apidoc','969954UJFbyD','/apitest','filepath','99850tCXsXL','MidwayEnvironmentService','getConfig','getApplicationContext','11UXuMvO','get','__esModule','1UnqgwA','value','1987824LwxoEu','7256KDWzVa','apitest','REQUEST_OBJ_CTX_KEY','../service/ApitestService','ApitestService','367052LddBzh','52jqqsZP','getAsync','814113eHnVRG','Apitest'];a5_0x3749=function(){return _0x4513d3;};return a5_0x3749();}const core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x52d346(0xf4));function Apitest(_0x30d716=a5_0x52d346(0xe5),_0x409c14){return(_0x2abf7d,_0x4f2d8d,_0xa73070)=>{const _0x324400=a5_0x45c8;return(0x0,core_1['RequestMapping'])({'path':_0x30d716,'requestMethod':_0x324400(0xec)})(_0x2abf7d,_0x4f2d8d,_0xa73070),_0xa73070[_0x324400(0xef)]=async function(..._0x4f5983){const _0x34db18=_0x324400;var _0xc42ef0;const _0x2db79d=(_0xc42ef0=this[core_1[_0x34db18(0xf3)]])===null||_0xc42ef0===void 0x0?void 0x0:_0xc42ef0['app'];if(_0x2db79d&&_0x2db79d[_0x34db18(0xe9)](_0x34db18(0xf2))){const _0x546b09=await _0x2db79d[_0x34db18(0xea)]()['getAsync'](ApitestService_1[_0x34db18(0xf5)]),_0x152542=await _0x2db79d['getApplicationContext']()[_0x34db18(0xf8)](core_1[_0x34db18(0xe8)]);return _0x152542['isDevelopmentEnvironment']()&&(_0x409c14[_0x34db18(0xe6)]=!![]),await _0x546b09[_0x34db18(0xfe)](_0x409c14);}return'';},_0xa73070;};}function a5_0x45c8(_0x5bc703,_0x2fad6a){const _0x3749e4=a5_0x3749();return a5_0x45c8=function(_0x45c874,_0x13a41e){_0x45c874=_0x45c874-0xe4;let _0x4c3e95=_0x3749e4[_0x45c874];return _0x4c3e95;},a5_0x45c8(_0x5bc703,_0x2fad6a);}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0xc7a3b5=a6_0x5983;function a6_0x5983(_0x43c841,_0x1c8c0f){var _0x34c3d1=a6_0x34c3();return a6_0x5983=function(_0x598355,_0x28ac3c){_0x598355=_0x598355-0xe6;var _0x1de58c=_0x34c3d1[_0x598355];return _0x1de58c;},a6_0x5983(_0x43c841,_0x1c8c0f);}function a6_0x34c3(){var _0x3b12ab=['登录超时,请重新登录','ApiError','验证失败,请重新登录','请求头信息不完整','2525787agaQrt','HEADERS_CHECKCODE','design:type','169856HaUDpt','length','__metadata','823491uIyZAn','TIMEOUT','getOwnPropertyDescriptor','4KdMnOW','HEADERS_DEVICE','TIMEOUT_LOGINTIME','16aipdGq','135831SjCJIU','__decorate','658217SzToDk','HEADERS_LACK','6BhnSYB','请求超时,请重试','HEADERS_SIGNATURE','767775UVLiTT','20RzzHBH','defineProperty','__esModule','function','object','请使用正确的设备','metadata','9141MjLRmq'];a6_0x34c3=function(){return _0x3b12ab;};return a6_0x34c3();}(function(_0x3401d7,_0x161dcd){var _0x498192=a6_0x5983,_0x5afcfe=_0x3401d7();while(!![]){try{var _0x37fbe8=-parseInt(_0x498192(0xf8))/0x1+parseInt(_0x498192(0x100))/0x2+-parseInt(_0x498192(0xe9))/0x3*(-parseInt(_0x498192(0x106))/0x4)+-parseInt(_0x498192(0xf0))/0x5*(parseInt(_0x498192(0xed))/0x6)+-parseInt(_0x498192(0xeb))/0x7*(-parseInt(_0x498192(0xe8))/0x8)+-parseInt(_0x498192(0x103))/0x9*(-parseInt(_0x498192(0xf1))/0xa)+-parseInt(_0x498192(0xfd))/0xb;if(_0x37fbe8===_0x161dcd)break;else _0x5afcfe['push'](_0x5afcfe['shift']());}catch(_0x59b802){_0x5afcfe['push'](_0x5afcfe['shift']());}}}(a6_0x34c3,0x1a998));var __decorate=this&&this[a6_0xc7a3b5(0xea)]||function(_0x42f835,_0x21ba54,_0x4b1b5c,_0x47d871){var _0x584378=a6_0xc7a3b5,_0x15380c=arguments[_0x584378(0x101)],_0x127973=_0x15380c<0x3?_0x21ba54:_0x47d871===null?_0x47d871=Object[_0x584378(0x105)](_0x21ba54,_0x4b1b5c):_0x47d871,_0xf889da;if(typeof Reflect===_0x584378(0xf5)&&typeof Reflect['decorate']===_0x584378(0xf4))_0x127973=Reflect['decorate'](_0x42f835,_0x21ba54,_0x4b1b5c,_0x47d871);else{for(var _0x584470=_0x42f835['length']-0x1;_0x584470>=0x0;_0x584470--)if(_0xf889da=_0x42f835[_0x584470])_0x127973=(_0x15380c<0x3?_0xf889da(_0x127973):_0x15380c>0x3?_0xf889da(_0x21ba54,_0x4b1b5c,_0x127973):_0xf889da(_0x21ba54,_0x4b1b5c))||_0x127973;}return _0x15380c>0x3&&_0x127973&&Object['defineProperty'](_0x21ba54,_0x4b1b5c,_0x127973),_0x127973;},__metadata=this&&this[a6_0xc7a3b5(0x102)]||function(_0x260c90,_0xb3862c){var _0x40ab22=a6_0xc7a3b5;if(typeof Reflect==='object'&&typeof Reflect[_0x40ab22(0xf7)]===_0x40ab22(0xf4))return Reflect['metadata'](_0x260c90,_0xb3862c);};Object[a6_0xc7a3b5(0xf2)](exports,a6_0xc7a3b5(0xf3),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a6_0xc7a3b5(0x104)]=0x3d7e31,ApiError[a6_0xc7a3b5(0xec)]=0x3d7e32,ApiError[a6_0xc7a3b5(0xe6)]=0x3d7e33,ApiError[a6_0xc7a3b5(0xef)]=0x3d7e34,ApiError[a6_0xc7a3b5(0xfe)]=0x3d7e35,ApiError['TIMEOUT_LOGINTIME']=0x3d7e36,__decorate([AnnErrorMsg(a6_0xc7a3b5(0xee)),__metadata(a6_0xc7a3b5(0xff),Object)],ApiError,a6_0xc7a3b5(0x104),void 0x0),__decorate([AnnErrorMsg(a6_0xc7a3b5(0xfc)),__metadata(a6_0xc7a3b5(0xff),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0xc7a3b5(0xf6)),__metadata(a6_0xc7a3b5(0xff),Object)],ApiError,a6_0xc7a3b5(0xe6),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a6_0xc7a3b5(0xef),void 0x0),__decorate([AnnErrorMsg(a6_0xc7a3b5(0xfb)),__metadata(a6_0xc7a3b5(0xff),Object)],ApiError,a6_0xc7a3b5(0xfe),void 0x0),__decorate([AnnErrorMsg(a6_0xc7a3b5(0xf9)),__metadata(a6_0xc7a3b5(0xff),Object)],ApiError,a6_0xc7a3b5(0xe7),void 0x0),exports[a6_0xc7a3b5(0xfa)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x280bda=a7_0x3100;(function(_0x3f0a85,_0x5baec8){const _0x17c83b=a7_0x3100,_0x4c81e2=_0x3f0a85();while(!![]){try{const _0x471e38=parseInt(_0x17c83b(0x13a))/0x1+parseInt(_0x17c83b(0x13f))/0x2+-parseInt(_0x17c83b(0x140))/0x3+-parseInt(_0x17c83b(0x13c))/0x4+parseInt(_0x17c83b(0x13e))/0x5*(-parseInt(_0x17c83b(0x137))/0x6)+-parseInt(_0x17c83b(0x138))/0x7+parseInt(_0x17c83b(0x131))/0x8*(-parseInt(_0x17c83b(0x13d))/0x9);if(_0x471e38===_0x5baec8)break;else _0x4c81e2['push'](_0x4c81e2['shift']());}catch(_0x4a9e35){_0x4c81e2['push'](_0x4c81e2['shift']());}}}(a7_0x5ba6,0x87099));function a7_0x5ba6(){const _0xd48f2e=['AppsConfigTmp','964143OEDaCS','getAppsConfig','1178556yjeXpL','797832QmOVCj','1460bqxonc','1827558nuEOLq','1109445lIeyNx','get','@midwayjs/core','16TstHMW','../types/action','getClassMetadata','defineProperty','__esModule','APPSCONFIG_KEY','9402JVPAUa','178465uckkuC'];a7_0x5ba6=function(){return _0xd48f2e;};return a7_0x5ba6();}Object[a7_0x280bda(0x134)](exports,a7_0x280bda(0x135),{'value':!![]}),exports[a7_0x280bda(0x13b)]=void 0x0;const core_1=require(a7_0x280bda(0x142)),action_1=require(a7_0x280bda(0x132));function a7_0x3100(_0x263529,_0xdf15da){const _0x5ba678=a7_0x5ba6();return a7_0x3100=function(_0x310090,_0x3d5fba){_0x310090=_0x310090-0x131;let _0x68a1a3=_0x5ba678[_0x310090];return _0x68a1a3;},a7_0x3100(_0x263529,_0xdf15da);}function getAppsConfig(_0x19befd){const _0x394e60=a7_0x280bda,_0x25a84c=(0x0,core_1[_0x394e60(0x133)])(action_1[_0x394e60(0x136)],action_1[_0x394e60(0x139)])||{};return _0x19befd?lodash[_0x394e60(0x141)](_0x25a84c,_0x19befd):_0x25a84c;}exports[a7_0x280bda(0x13b)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x4ce5f5=a8_0x452b;function a8_0x452b(_0x19a6ff,_0x35ef8d){const _0x1a9c8d=a8_0x1a9c();return a8_0x452b=function(_0x452bdd,_0x2e6ae7){_0x452bdd=_0x452bdd-0xc7;let _0x3f2096=_0x1a9c8d[_0x452bdd];return _0x3f2096;},a8_0x452b(_0x19a6ff,_0x35ef8d);}(function(_0xd1e58a,_0x8c6424){const _0x25e39f=a8_0x452b,_0x42c4ba=_0xd1e58a();while(!![]){try{const _0x10da53=parseInt(_0x25e39f(0x124))/0x1+-parseInt(_0x25e39f(0x102))/0x2+parseInt(_0x25e39f(0xfb))/0x3+-parseInt(_0x25e39f(0xdd))/0x4+parseInt(_0x25e39f(0xce))/0x5+parseInt(_0x25e39f(0x123))/0x6*(parseInt(_0x25e39f(0x10c))/0x7)+-parseInt(_0x25e39f(0x118))/0x8;if(_0x10da53===_0x8c6424)break;else _0x42c4ba['push'](_0x42c4ba['shift']());}catch(_0x545f11){_0x42c4ba['push'](_0x42c4ba['shift']());}}}(a8_0x1a9c,0xf0dd3));Object[a8_0x4ce5f5(0xef)](exports,a8_0x4ce5f5(0xe2),{'value':!![]}),exports[a8_0x4ce5f5(0x116)]=void 0x0;const lodash_1=require(a8_0x4ce5f5(0x11b)),validator_1=require(a8_0x4ce5f5(0xc8)),core_1=require('@midwayjs/core'),core_2=require(a8_0x4ce5f5(0x122)),core_3=require(a8_0x4ce5f5(0x122)),action_1=require('../types/action');function getRoutes(_0x45b2bf={'prefix':'/','module':![]}){const _0x16decf=a8_0x4ce5f5;var _0x13a9ea,_0x3803cd;const _0x5e1a98=(0x0,core_3[_0x16decf(0x10f)])(action_1[_0x16decf(0x101)]),_0xfb170b={},_0x522f80=Array[_0x16decf(0x11d)](_0x45b2bf[_0x16decf(0xf0)]||[])?_0x45b2bf[_0x16decf(0xf0)]||[]:[_0x45b2bf[_0x16decf(0xf0)]];_0x8e0ad:for(const _0x41db43 of _0x5e1a98){let _0x11142b=(0x0,core_3[_0x16decf(0xed)])(action_1[_0x16decf(0x101)],_0x41db43),_0x714417=(0x0,core_3[_0x16decf(0xed)])(action_1[_0x16decf(0xfa)],_0x41db43);if(_0x11142b&&_0x714417){let _0x337efe=_0x11142b['prefix'],_0x59f3c6={};if(_0x45b2bf[_0x16decf(0xff)]&&(0x0,lodash_1[_0x16decf(0x108)])(_0x11142b,'module',![])!=_0x45b2bf[_0x16decf(0xff)])continue _0x8e0ad;else{if(_0x45b2bf['module']===![]&&!!(0x0,lodash_1[_0x16decf(0x108)])(_0x11142b,_0x16decf(0xff),null))continue _0x8e0ad;}if(_0x45b2bf[_0x16decf(0x10b)]&&!_0x337efe[_0x16decf(0xdc)](_0x45b2bf[_0x16decf(0x10b)]))continue _0x8e0ad;_0x337efe!=='/'?(_0x59f3c6['summary']=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b['routerOptions']['tagName'])||(/^\//[_0x16decf(0xfe)](_0x337efe)?_0x337efe[_0x16decf(0xd5)]('/')[0x1]:_0x337efe),_0x59f3c6['description']=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xe3)][_0x16decf(0xd4)])||_0x59f3c6['summary'],_0x59f3c6[_0x16decf(0x11f)]=[]):(_0x59f3c6[_0x16decf(0xe6)]=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xe3)][_0x16decf(0xdb)])||_0x16decf(0xfd),_0x59f3c6['description']=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b['routerOptions'][_0x16decf(0xd4)])||'',_0x59f3c6[_0x16decf(0x11f)]=[]);_0x45b2bf[_0x16decf(0xeb)]&&(_0x59f3c6['filepath']=_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xeb)]);(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xc9)])&&(_0x59f3c6[_0x16decf(0x10b)]=_0x11142b[_0x16decf(0xc9)]);(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xff)])&&(_0x59f3c6['module']=_0x11142b[_0x16decf(0xff)]);let _0x1539a9=(0x0,core_3['getClassMetadata'])(core_2[_0x16decf(0xf6)],_0x41db43)||{};if(typeof _0x714417[Symbol[_0x16decf(0x104)]]===_0x16decf(0xf4))for(let _0x1b7474 of _0x714417){if((_0x45b2bf===null||_0x45b2bf===void 0x0?void 0x0:_0x45b2bf[_0x16decf(0xcc)])&&!(_0x1b7474===null||_0x1b7474===void 0x0?void 0x0:_0x1b7474[_0x16decf(0xcc)]))continue;let _0x28e616={};_0x28e616[_0x16decf(0xf1)]=_0x1b7474['requestMethod'],_0x28e616[_0x16decf(0x11e)]=(_0x337efe+_0x1b7474['path'])[_0x16decf(0xd2)](/\/{1,}/,'/'),_0x28e616[_0x16decf(0xe6)]=(_0x1b7474===null||_0x1b7474===void 0x0?void 0x0:_0x1b7474['routerName'])||_0x59f3c6[_0x16decf(0xe6)]||'default',_0x28e616[_0x16decf(0xd4)]=(_0x1b7474===null||_0x1b7474===void 0x0?void 0x0:_0x1b7474[_0x16decf(0xd4)])||'',_0x28e616[_0x16decf(0x113)]=[];if(!(0x0,lodash_1['startsWith'])(_0x28e616['route'],_0x16decf(0xe7))&&!(0x0,lodash_1[_0x16decf(0xdc)])(_0x28e616[_0x16decf(0x11e)],_0x16decf(0x106))&&_0x522f80[_0x16decf(0xf3)](_0x28e616[_0x16decf(0x11e)])===-0x1){if(!(_0x45b2bf===null||_0x45b2bf===void 0x0?void 0x0:_0x45b2bf[_0x16decf(0xf7)])){let _0xd3efd4=(0x0,core_3[_0x16decf(0xca)])(new _0x41db43(),_0x1b7474[_0x16decf(0xf1)]);for(const _0x484237 in _0xd3efd4){let _0x19be3a=(_0x13a9ea=_0x1539a9[_0x1b7474[_0x16decf(0xf1)]])===null||_0x13a9ea===void 0x0?void 0x0:_0x13a9ea[_0x16decf(0xfc)](_0x34c252=>_0x34c252[_0x16decf(0x105)]==_0x484237&&_0x34c252[_0x16decf(0x120)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x34c252===null||_0x34c252===void 0x0?void 0x0:_0x34c252['metadata']));if(_0x19be3a===null||_0x19be3a===void 0x0?void 0x0:_0x19be3a[_0x16decf(0xe4)]){let _0x40c0b5=convertTypeToString(_0x19be3a['metadata'][_0x16decf(0xe9)]||0x0);if([_0x16decf(0xf8),_0x16decf(0xee)]['indexOf'](_0x40c0b5)!=-0x1&&_0x19be3a['metadata']['propertyData']['indexOf'](':')==-0x1&&!_0x28e616[_0x16decf(0x113)][_0x16decf(0xfc)](_0x53ebd9=>_0x53ebd9[_0x16decf(0x120)]==_0x19be3a[_0x16decf(0xe4)][_0x16decf(0xf2)]))_0x28e616[_0x16decf(0x113)][_0x16decf(0x107)]({'key':_0x19be3a[_0x16decf(0xe4)][_0x16decf(0xf2)],'title':_0x19be3a[_0x16decf(0xe4)]['propertyData'],'type':convertSchemaType(_0xd3efd4[_0x19be3a[_0x16decf(0x105)]][_0x16decf(0x10e)]),'required':![],'default':'','desc':''});else{if(_0x40c0b5==_0x16decf(0x11a)){let _0x2c6071=((_0x3803cd=_0x19be3a===null||_0x19be3a===void 0x0?void 0x0:_0x19be3a[_0x16decf(0xe4)])===null||_0x3803cd===void 0x0?void 0x0:_0x3803cd['propertyData'])||_0x16decf(0x11a);_0x2c6071['indexOf'](':')==-0x1&&!_0x28e616['request'][_0x16decf(0xfc)](_0x14955d=>_0x14955d[_0x16decf(0x120)]==_0x2c6071&&_0x14955d[_0x16decf(0xe9)]==_0x16decf(0x11a))&&_0x28e616[_0x16decf(0x113)][_0x16decf(0x107)]({'key':_0x2c6071,'title':_0x16decf(0xd1)+_0x2c6071,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x59435c=(0x0,core_3[_0x16decf(0xea)])(validator_1[_0x16decf(0x11c)],_0xd3efd4[_0x484237]);_0x59435c&&_0x28e616[_0x16decf(0x113)][_0x16decf(0x107)](...getJoiRequest(_0x59435c));}}}_0x59f3c6[_0x16decf(0x11f)][_0x16decf(0x107)](_0x28e616);}}if(_0x59f3c6[_0x16decf(0x11f)][_0x16decf(0x110)]>0x0){let _0x40312e=_0xfb170b[_0x337efe];_0x40312e?(_0x40312e['summary']!=_0x59f3c6['summary']&&(_0x40312e[_0x16decf(0xe6)]=_0x40312e[_0x16decf(0xe6)]+','+_0x59f3c6[_0x16decf(0xe6)]),_0x40312e[_0x16decf(0xd4)]!=_0x59f3c6['description']&&(_0x40312e[_0x16decf(0xd4)]=_0x40312e[_0x16decf(0xd4)]+','+_0x59f3c6['description']),_0x40312e[_0x16decf(0x11f)]=_0x40312e['routes'][_0x16decf(0x111)](_0x59f3c6[_0x16decf(0x11f)]),_0xfb170b[_0x337efe]=_0x40312e):_0xfb170b[_0x337efe]=_0x59f3c6;}}}return _0xfb170b;}function a8_0x1a9c(){const _0x150959=['routerOptions','metadata','HEADERS','summary','static/apitest','describe','type','getClassExtendedMetadata','filepath','log','getClassMetadata','body','defineProperty','filter','method','propertyData','indexOf','function','PARAM','INJECT_CUSTOM_PARAM','noreq','query','-array','ACTION_ROUTE_KEY','5409918dEHRik','find','default','test','module','items','ACTION_KEY','299334NHGtfU','QUERY','iterator','parameterIndex','/static/apitest','push','get','keys','String','prefix','1512mqdlJw','FILESTREAM','name','listModule','length','concat','rules','request','Boolean','required','getRoutes','string','15196960iqBqIT','args','file','lodash','RULES_KEY','isArray','route','routes','key','join','@midwayjs/core','11262CPVNtR','1389340lDwHGn','object','@anncic-api/validator','pprefix','getMethodParamTypes','allow','intercept','Number','5477305TzUVcU','min','File','文件上传-','replace','flags.presence','description','split','FIELDS','limit','BODY','RouteParamTypes','max','tagName','startsWith','6630692TWhkBb','header','只允许:[','title','flags.default','__esModule'];a8_0x1a9c=function(){return _0x150959;};return a8_0x1a9c();}exports['getRoutes']=getRoutes;function getJoiRequest(_0x8e282f){const _0x1664f7=a8_0x4ce5f5,_0x581962=[];for(let _0xef999f in _0x8e282f){const _0x5dfdca={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x30d15e=typeof _0x8e282f[_0xef999f][_0x1664f7(0xe8)]==_0x1664f7(0xf4)?_0x8e282f[_0xef999f]['describe']():_0x8e282f[_0xef999f];_0x5dfdca[_0x1664f7(0x120)]=_0xef999f,_0x5dfdca[_0x1664f7(0xe9)]=_0x30d15e[_0x1664f7(0xe9)],_0x5dfdca[_0x1664f7(0xe0)]=(0x0,lodash_1[_0x1664f7(0x108)])(_0x30d15e,'flags.label',_0xef999f),_0x5dfdca['default']=(0x0,lodash_1['get'])(_0x30d15e,_0x1664f7(0xe1),''),_0x5dfdca[_0x1664f7(0x115)]=(0x0,lodash_1['get'])(_0x30d15e,_0x1664f7(0xd3),'')=='required',_0x5dfdca[_0x1664f7(0xd4)]=(0x0,lodash_1[_0x1664f7(0x108)])(_0x30d15e,'flags.description','');if(_0x30d15e[_0x1664f7(0xe9)]=='object')_0x5dfdca['children']=getJoiRequest(_0x30d15e[_0x1664f7(0x109)]);else _0x30d15e['type']=='array'&&_0x30d15e[_0x1664f7(0x100)]&&Array[_0x1664f7(0x11d)](_0x30d15e['items'])&&_0x30d15e[_0x1664f7(0x100)][0x0]&&console[_0x1664f7(0xec)](_0xef999f+_0x1664f7(0xf9),_0x30d15e);_0x30d15e[_0x1664f7(0xcb)]&&Array[_0x1664f7(0x11d)](_0x30d15e[_0x1664f7(0xcb)])&&_0x30d15e[_0x1664f7(0xcb)][_0x1664f7(0x110)]>0x0&&(_0x5dfdca[_0x1664f7(0xd4)]=_0x1664f7(0xdf)+_0x30d15e[_0x1664f7(0xcb)][_0x1664f7(0x121)](',')+'];'+_0x5dfdca[_0x1664f7(0xd4)]);if(_0x5dfdca[_0x1664f7(0x120)]&&_0x5dfdca['type']){const _0xcbe72c={};for(const _0x54e217 of _0x30d15e[_0x1664f7(0x112)]||[]){if(_0x54e217[_0x1664f7(0x10e)]===_0x1664f7(0xcf)&&_0x54e217[_0x1664f7(0x119)])_0xcbe72c[_0x1664f7(0xcf)]=_0x54e217[_0x1664f7(0x119)]['limit'];else _0x54e217['name']==='max'&&(_0xcbe72c[_0x1664f7(0xda)]=_0x54e217[_0x1664f7(0x119)][_0x1664f7(0xd7)]);}_0x5dfdca['rules']=_0xcbe72c;}_0x5dfdca[_0x1664f7(0x120)]&&_0x5dfdca[_0x1664f7(0xe0)]&&_0x581962[_0x1664f7(0x107)](_0x5dfdca);}return _0x581962;}function convertSchemaType(_0x86f673){const _0x34c660=a8_0x4ce5f5;switch(_0x86f673){case'Object':return _0x34c660(0xc7);case _0x34c660(0x114):return'boolean';case _0x34c660(0xcd):return'number';case _0x34c660(0x10a):return _0x34c660(0x117);case _0x34c660(0xd0):return _0x34c660(0x11a);default:return _0x34c660(0x117);}}function convertTypeToString(_0x64de6){const _0x1b6ebd=a8_0x4ce5f5;switch(_0x64de6){case core_1['RouteParamTypes'][_0x1b6ebd(0xe5)]:return'header';case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0x103)]:return _0x1b6ebd(0xf8);case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0xf5)]:return'path';case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0xd8)]:return _0x1b6ebd(0xee);case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0xd6)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0x10d)]:return _0x1b6ebd(0x11a);default:return _0x1b6ebd(0xde);}}
|
|
1
|
+
'use strict';const a8_0x4c3142=a8_0x347e;(function(_0x12c427,_0x46d532){const _0x23deb2=a8_0x347e,_0x214f75=_0x12c427();while(!![]){try{const _0x586ec9=-parseInt(_0x23deb2(0x14f))/0x1*(parseInt(_0x23deb2(0x165))/0x2)+-parseInt(_0x23deb2(0x16c))/0x3+-parseInt(_0x23deb2(0x188))/0x4+parseInt(_0x23deb2(0x177))/0x5*(parseInt(_0x23deb2(0x14a))/0x6)+parseInt(_0x23deb2(0x148))/0x7+-parseInt(_0x23deb2(0x182))/0x8+parseInt(_0x23deb2(0x161))/0x9;if(_0x586ec9===_0x46d532)break;else _0x214f75['push'](_0x214f75['shift']());}catch(_0x3ead1d){_0x214f75['push'](_0x214f75['shift']());}}}(a8_0x3f2c,0xb970c));function a8_0x3f2c(){const _0x484ebf=['file','4021464VLuCEr','routes','limit','static/apitest','tagName','string','parameterIndex','get','startsWith','name','RULES_KEY','425dxdcKa','concat','routerName','request','summary','split','min','WEB_ROUTER_PARAM_KEY','default','String','rules','2223040jPKoDa','getRoutes','noreq','prefix','flags.label','__esModule','5712060evWMih','pprefix','max','query','getMethodParamTypes','function','array','description','../types/action','push','QUERY','@midwayjs/core','path','requestMethod','lodash','header','isArray','indexOf','PARAM','ACTION_KEY','Boolean','allow','title','method','HEADERS','object','filepath','propertyData','187488IWBKVU','find','48390rLPFil','module','INJECT_CUSTOM_PARAM','listModule','文件上传-','1OcvvZf','args','/static/apitest','getClassMetadata','join','RouteParamTypes','boolean','只允许:[','File','getClassExtendedMetadata','ACTION_ROUTE_KEY','flags.description','required','replace','type','body','intercept','route','36776619qohhPw','children','key','filter','1985306KWWrJY','items','routerOptions','FILESSTREAM','metadata','@anncic-api/validator'];a8_0x3f2c=function(){return _0x484ebf;};return a8_0x3f2c();}Object['defineProperty'](exports,a8_0x4c3142(0x187),{'value':!![]}),exports[a8_0x4c3142(0x183)]=void 0x0;const lodash_1=require(a8_0x4c3142(0x13a)),validator_1=require(a8_0x4c3142(0x16a)),core_1=require('@midwayjs/core'),core_2=require(a8_0x4c3142(0x137)),core_3=require(a8_0x4c3142(0x137)),action_1=require(a8_0x4c3142(0x134));function getRoutes(_0x87160e={'prefix':'/','module':![]}){const _0x47a518=a8_0x4c3142;var _0x5d8038,_0x4f33fc;const _0x27754d=(0x0,core_3[_0x47a518(0x14d)])(action_1[_0x47a518(0x13f)]),_0x5eb8aa={},_0x26df8f=Array[_0x47a518(0x13c)](_0x87160e['filter']||[])?_0x87160e[_0x47a518(0x164)]||[]:[_0x87160e[_0x47a518(0x164)]];_0x1bd2d9:for(const _0x1c403e of _0x27754d){let _0x13d2d4=(0x0,core_3[_0x47a518(0x152)])(action_1[_0x47a518(0x13f)],_0x1c403e),_0x8cedd6=(0x0,core_3[_0x47a518(0x152)])(action_1[_0x47a518(0x159)],_0x1c403e);if(_0x13d2d4&&_0x8cedd6){let _0x3c1719=_0x13d2d4[_0x47a518(0x185)],_0x30174b={};if(_0x87160e[_0x47a518(0x14b)]&&(0x0,lodash_1['get'])(_0x13d2d4,_0x47a518(0x14b),![])!=_0x87160e[_0x47a518(0x14b)])continue _0x1bd2d9;else{if(_0x87160e[_0x47a518(0x14b)]===![]&&!!(0x0,lodash_1['get'])(_0x13d2d4,_0x47a518(0x14b),null))continue _0x1bd2d9;}if(_0x87160e[_0x47a518(0x185)]&&!_0x3c1719[_0x47a518(0x174)](_0x87160e[_0x47a518(0x185)]))continue _0x1bd2d9;_0x3c1719!=='/'?(_0x30174b['summary']=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x167)]['tagName'])||(/^\//['test'](_0x3c1719)?_0x3c1719[_0x47a518(0x17c)]('/')[0x1]:_0x3c1719),_0x30174b['description']=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4['routerOptions'][_0x47a518(0x133)])||_0x30174b['summary'],_0x30174b['routes']=[]):(_0x30174b[_0x47a518(0x17b)]=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4['routerOptions'][_0x47a518(0x170)])||_0x47a518(0x17f),_0x30174b[_0x47a518(0x133)]=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x167)]['description'])||'',_0x30174b[_0x47a518(0x16d)]=[]);_0x87160e[_0x47a518(0x146)]&&(_0x30174b[_0x47a518(0x146)]=_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x146)]);(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x189)])&&(_0x30174b[_0x47a518(0x185)]=_0x13d2d4['pprefix']);(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x14b)])&&(_0x30174b[_0x47a518(0x14b)]=_0x13d2d4[_0x47a518(0x14b)]);let _0x30582c=(0x0,core_3['getClassMetadata'])(core_2[_0x47a518(0x14c)],_0x1c403e)||{};if(typeof _0x8cedd6[Symbol['iterator']]===_0x47a518(0x131))for(let _0x2190e7 of _0x8cedd6){if((_0x87160e===null||_0x87160e===void 0x0?void 0x0:_0x87160e[_0x47a518(0x15f)])&&!(_0x2190e7===null||_0x2190e7===void 0x0?void 0x0:_0x2190e7[_0x47a518(0x15f)]))continue;let _0x4d6480={};_0x4d6480[_0x47a518(0x143)]=_0x2190e7[_0x47a518(0x139)],_0x4d6480[_0x47a518(0x160)]=(_0x3c1719+_0x2190e7[_0x47a518(0x138)])[_0x47a518(0x15c)](/\/{1,}/,'/'),_0x4d6480[_0x47a518(0x17b)]=(_0x2190e7===null||_0x2190e7===void 0x0?void 0x0:_0x2190e7[_0x47a518(0x179)])||_0x30174b[_0x47a518(0x17b)]||_0x47a518(0x17f),_0x4d6480['description']=(_0x2190e7===null||_0x2190e7===void 0x0?void 0x0:_0x2190e7[_0x47a518(0x133)])||'',_0x4d6480[_0x47a518(0x17a)]=[];if(!(0x0,lodash_1[_0x47a518(0x174)])(_0x4d6480[_0x47a518(0x160)],_0x47a518(0x16f))&&!(0x0,lodash_1[_0x47a518(0x174)])(_0x4d6480['route'],_0x47a518(0x151))&&_0x26df8f[_0x47a518(0x13d)](_0x4d6480[_0x47a518(0x160)])===-0x1){if(!(_0x87160e===null||_0x87160e===void 0x0?void 0x0:_0x87160e[_0x47a518(0x184)])){let _0x34f8cb=(0x0,core_3[_0x47a518(0x130)])(new _0x1c403e(),_0x2190e7[_0x47a518(0x143)]);for(const _0x2f53d7 in _0x34f8cb){let _0x23d08e=(_0x5d8038=_0x30582c[_0x2190e7[_0x47a518(0x143)]])===null||_0x5d8038===void 0x0?void 0x0:_0x5d8038['find'](_0x4c6f1f=>_0x4c6f1f['parameterIndex']==_0x2f53d7&&_0x4c6f1f[_0x47a518(0x163)]===core_2[_0x47a518(0x17e)]&&(_0x4c6f1f===null||_0x4c6f1f===void 0x0?void 0x0:_0x4c6f1f[_0x47a518(0x169)]));if(_0x23d08e===null||_0x23d08e===void 0x0?void 0x0:_0x23d08e[_0x47a518(0x169)]){let _0x4100f4=convertTypeToString(_0x23d08e['metadata'][_0x47a518(0x15d)]||0x0);if([_0x47a518(0x18b),_0x47a518(0x15e)][_0x47a518(0x13d)](_0x4100f4)!=-0x1&&_0x23d08e[_0x47a518(0x169)][_0x47a518(0x147)][_0x47a518(0x13d)](':')==-0x1&&!_0x4d6480[_0x47a518(0x17a)][_0x47a518(0x149)](_0x52344b=>_0x52344b[_0x47a518(0x163)]==_0x23d08e[_0x47a518(0x169)][_0x47a518(0x147)]))_0x4d6480['request'][_0x47a518(0x135)]({'key':_0x23d08e[_0x47a518(0x169)][_0x47a518(0x147)],'title':_0x23d08e['metadata'][_0x47a518(0x147)],'type':convertSchemaType(_0x34f8cb[_0x23d08e[_0x47a518(0x172)]][_0x47a518(0x175)]),'required':![],'default':'','desc':''});else{if(_0x4100f4==_0x47a518(0x16b)){let _0x137c42=((_0x4f33fc=_0x23d08e===null||_0x23d08e===void 0x0?void 0x0:_0x23d08e[_0x47a518(0x169)])===null||_0x4f33fc===void 0x0?void 0x0:_0x4f33fc[_0x47a518(0x147)])||_0x47a518(0x16b);_0x137c42[_0x47a518(0x13d)](':')==-0x1&&!_0x4d6480[_0x47a518(0x17a)]['find'](_0x3f5c42=>_0x3f5c42[_0x47a518(0x163)]==_0x137c42&&_0x3f5c42[_0x47a518(0x15d)]==_0x47a518(0x16b))&&_0x4d6480[_0x47a518(0x17a)][_0x47a518(0x135)]({'key':_0x137c42,'title':_0x47a518(0x14e)+_0x137c42,'type':_0x47a518(0x16b),'required':!![],'default':'','desc':''});}}}else{const _0x2b48e0=(0x0,core_3[_0x47a518(0x158)])(validator_1[_0x47a518(0x176)],_0x34f8cb[_0x2f53d7]);_0x2b48e0&&_0x4d6480[_0x47a518(0x17a)][_0x47a518(0x135)](...getJoiRequest(_0x2b48e0));}}}_0x30174b[_0x47a518(0x16d)][_0x47a518(0x135)](_0x4d6480);}}if(_0x30174b[_0x47a518(0x16d)]['length']>0x0){let _0xa5a53=_0x5eb8aa[_0x3c1719];_0xa5a53?(_0xa5a53[_0x47a518(0x17b)]!=_0x30174b[_0x47a518(0x17b)]&&(_0xa5a53[_0x47a518(0x17b)]=_0xa5a53[_0x47a518(0x17b)]+','+_0x30174b['summary']),_0xa5a53[_0x47a518(0x133)]!=_0x30174b[_0x47a518(0x133)]&&(_0xa5a53[_0x47a518(0x133)]=_0xa5a53[_0x47a518(0x133)]+','+_0x30174b[_0x47a518(0x133)]),_0xa5a53[_0x47a518(0x16d)]=_0xa5a53[_0x47a518(0x16d)][_0x47a518(0x178)](_0x30174b[_0x47a518(0x16d)]),_0x5eb8aa[_0x3c1719]=_0xa5a53):_0x5eb8aa[_0x3c1719]=_0x30174b;}}}return _0x5eb8aa;}function a8_0x347e(_0x5012a7,_0x43d3cc){const _0x3f2cf2=a8_0x3f2c();return a8_0x347e=function(_0x347e16,_0x20a2ea){_0x347e16=_0x347e16-0x130;let _0x2831db=_0x3f2cf2[_0x347e16];return _0x2831db;},a8_0x347e(_0x5012a7,_0x43d3cc);}exports[a8_0x4c3142(0x183)]=getRoutes;function getJoiRequest(_0x22f083){const _0x18a720=a8_0x4c3142,_0x18a139=[];for(let _0x1352ad in _0x22f083){const _0x17967f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3ced67=typeof _0x22f083[_0x1352ad]['describe']==_0x18a720(0x131)?_0x22f083[_0x1352ad]['describe']():_0x22f083[_0x1352ad];_0x17967f[_0x18a720(0x163)]=_0x1352ad,_0x17967f['type']=_0x3ced67[_0x18a720(0x15d)],_0x17967f[_0x18a720(0x142)]=(0x0,lodash_1['get'])(_0x3ced67,_0x18a720(0x186),_0x1352ad),_0x17967f[_0x18a720(0x17f)]=(0x0,lodash_1[_0x18a720(0x173)])(_0x3ced67,'flags.default',''),_0x17967f[_0x18a720(0x15b)]=(0x0,lodash_1[_0x18a720(0x173)])(_0x3ced67,'flags.presence','')==_0x18a720(0x15b),_0x17967f['description']=(0x0,lodash_1['get'])(_0x3ced67,_0x18a720(0x15a),'');if(_0x3ced67[_0x18a720(0x15d)]==_0x18a720(0x145))_0x17967f[_0x18a720(0x162)]=getJoiRequest(_0x3ced67['keys']);else _0x3ced67[_0x18a720(0x15d)]==_0x18a720(0x132)&&_0x3ced67[_0x18a720(0x166)]&&Array[_0x18a720(0x13c)](_0x3ced67[_0x18a720(0x166)])&&_0x3ced67[_0x18a720(0x166)][0x0]&&console['log'](_0x1352ad+'-array',_0x3ced67);_0x3ced67['allow']&&Array[_0x18a720(0x13c)](_0x3ced67[_0x18a720(0x141)])&&_0x3ced67['allow']['length']>0x0&&(_0x17967f[_0x18a720(0x133)]=_0x18a720(0x156)+_0x3ced67['allow'][_0x18a720(0x153)](',')+'];'+_0x17967f[_0x18a720(0x133)]);if(_0x17967f[_0x18a720(0x163)]&&_0x17967f['type']){const _0x5b0b3d={};for(const _0x714d46 of _0x3ced67[_0x18a720(0x181)]||[]){if(_0x714d46[_0x18a720(0x175)]===_0x18a720(0x17d)&&_0x714d46['args'])_0x5b0b3d['min']=_0x714d46[_0x18a720(0x150)][_0x18a720(0x16e)];else _0x714d46[_0x18a720(0x175)]==='max'&&(_0x5b0b3d[_0x18a720(0x18a)]=_0x714d46[_0x18a720(0x150)][_0x18a720(0x16e)]);}_0x17967f[_0x18a720(0x181)]=_0x5b0b3d;}_0x17967f['key']&&_0x17967f['title']&&_0x18a139[_0x18a720(0x135)](_0x17967f);}return _0x18a139;}function convertSchemaType(_0x1892f5){const _0x4f9c88=a8_0x4c3142;switch(_0x1892f5){case'Object':return _0x4f9c88(0x145);case _0x4f9c88(0x140):return _0x4f9c88(0x155);case'Number':return'number';case _0x4f9c88(0x180):return _0x4f9c88(0x171);case _0x4f9c88(0x157):return _0x4f9c88(0x16b);default:return _0x4f9c88(0x171);}}function convertTypeToString(_0x553232){const _0x243f10=a8_0x4c3142;switch(_0x553232){case core_1[_0x243f10(0x154)][_0x243f10(0x144)]:return'header';case core_1['RouteParamTypes'][_0x243f10(0x136)]:return _0x243f10(0x18b);case core_1[_0x243f10(0x154)][_0x243f10(0x13e)]:return _0x243f10(0x138);case core_1[_0x243f10(0x154)]['BODY']:return'body';case core_1['RouteParamTypes']['FIELDS']:case core_1[_0x243f10(0x154)][_0x243f10(0x168)]:case core_1[_0x243f10(0x154)]['FILESTREAM']:return _0x243f10(0x16b);default:return _0x243f10(0x13b);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x2c0eee=a9_0x3409;(function(_0x4aca68,_0x30b405){var _0x2dbedc=a9_0x3409,_0x587adf=_0x4aca68();while(!![]){try{var _0x5b048f=-parseInt(_0x2dbedc(0x7b))/0x1+parseInt(_0x2dbedc(0xa2))/0x2*(-parseInt(_0x2dbedc(0x8b))/0x3)+parseInt(_0x2dbedc(0xab))/0x4+parseInt(_0x2dbedc(0xa4))/0x5*(-parseInt(_0x2dbedc(0x9b))/0x6)+parseInt(_0x2dbedc(0x8f))/0x7+parseInt(_0x2dbedc(0x7a))/0x8*(parseInt(_0x2dbedc(0x88))/0x9)+-parseInt(_0x2dbedc(0x77))/0xa;if(_0x5b048f===_0x30b405)break;else _0x587adf['push'](_0x587adf['shift']());}catch(_0x1593c1){_0x587adf['push'](_0x587adf['shift']());}}}(a9_0x4eb0,0xd0255));var __createBinding=this&&this[a9_0x2c0eee(0xa0)]||(Object[a9_0x2c0eee(0xa5)]?function(_0x2176bb,_0x318d71,_0x1e7b44,_0x1cbbe2){var _0x231771=a9_0x2c0eee;if(_0x1cbbe2===undefined)_0x1cbbe2=_0x1e7b44;var _0x3fd558=Object['getOwnPropertyDescriptor'](_0x318d71,_0x1e7b44);(!_0x3fd558||(_0x231771(0xaf)in _0x3fd558?!_0x318d71['__esModule']:_0x3fd558[_0x231771(0x7f)]||_0x3fd558[_0x231771(0xad)]))&&(_0x3fd558={'enumerable':!![],'get':function(){return _0x318d71[_0x1e7b44];}}),Object[_0x231771(0x86)](_0x2176bb,_0x1cbbe2,_0x3fd558);}:function(_0x572713,_0x486851,_0xbde31d,_0x44926e){if(_0x44926e===undefined)_0x44926e=_0xbde31d;_0x572713[_0x44926e]=_0x486851[_0xbde31d];}),__exportStar=this&&this[a9_0x2c0eee(0x92)]||function(_0x3b91e6,_0x543875){var _0x387c20=a9_0x2c0eee;for(var _0x2f1305 in _0x3b91e6)if(_0x2f1305!==_0x387c20(0x98)&&!Object[_0x387c20(0x83)]['hasOwnProperty'][_0x387c20(0x97)](_0x543875,_0x2f1305))__createBinding(_0x543875,_0x3b91e6,_0x2f1305);};function a9_0x4eb0(){var _0xc56983=['7096670YeIjWj','./decorator/ActionApi','Action','32OvbpHV','765332wdkfpF','ValidatorService','Api','CustomConfiguration','writable','@anncic-api/validator','ScopeEnum','Inject','prototype','Param','__esModule','defineProperty','ValidatorError','2375469nINvWO','ApiError','./configuration','75540qlHBCl','Provide','./helper/getRoutes','Logger','6355594dlvFwN','App','@anncic-api/event','__exportStar','File','Body','getRoutes','ExcelService','call','default','./decorator/Action','Fields','6oIFyRm','./exception/ApiError','getAppsConfig','Configuration','Config','__createBinding','Query','100KxsYUT','./service/ExcelService','4950huPrpS','create','Apitest','EventService','Files','@anncic-api/cache','./helper/getAppsConfig','6495392rUhccB','ApiService','configurable','CacheService','get','./service/ApitestService','Headers','Scope','@midwayjs/core','./decorator/ActionApitest'];a9_0x4eb0=function(){return _0xc56983;};return a9_0x4eb0();}Object['defineProperty'](exports,a9_0x2c0eee(0x85),{'value':!![]}),exports[a9_0x2c0eee(0x9d)]=exports[a9_0x2c0eee(0x81)]=exports[a9_0x2c0eee(0x74)]=exports[a9_0x2c0eee(0x82)]=exports[a9_0x2c0eee(0x8c)]=exports[a9_0x2c0eee(0x8e)]=exports[a9_0x2c0eee(0x9f)]=exports['App']=exports['Init']=exports[a9_0x2c0eee(0x73)]=exports[a9_0x2c0eee(0xa1)]=exports[a9_0x2c0eee(0x84)]=exports[a9_0x2c0eee(0x94)]=exports['Fields']=exports[a9_0x2c0eee(0xa8)]=exports[a9_0x2c0eee(0x93)]=exports[a9_0x2c0eee(0x9e)]=exports[a9_0x2c0eee(0x7c)]=exports[a9_0x2c0eee(0x87)]=exports[a9_0x2c0eee(0x96)]=exports[a9_0x2c0eee(0xac)]=exports[a9_0x2c0eee(0xa7)]=exports[a9_0x2c0eee(0xae)]=exports[a9_0x2c0eee(0x89)]=exports[a9_0x2c0eee(0x95)]=exports[a9_0x2c0eee(0xa6)]=exports[a9_0x2c0eee(0x79)]=exports['Api']=void 0x0;const getAppsConfig_1=require(a9_0x2c0eee(0xaa));Object['defineProperty'](exports,a9_0x2c0eee(0x9d),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x2c0eee(0xb0)),exports);var ActionApi_1=require(a9_0x2c0eee(0x78));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x7d),{'enumerable':!![],'get':function(){var _0x1ae463=a9_0x2c0eee;return ActionApi_1[_0x1ae463(0x7d)];}});var Action_1=require(a9_0x2c0eee(0x99));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x79),{'enumerable':!![],'get':function(){var _0x31274a=a9_0x2c0eee;return Action_1[_0x31274a(0x79)];}});var ActionApitest_1=require(a9_0x2c0eee(0x76));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0xa6),{'enumerable':!![],'get':function(){var _0x3afdb7=a9_0x2c0eee;return ActionApitest_1[_0x3afdb7(0xa6)];}});var getRoutes_1=require(a9_0x2c0eee(0x8d));Object[a9_0x2c0eee(0x86)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x5eea52=a9_0x2c0eee;return getRoutes_1[_0x5eea52(0x95)];}});var ApiError_1=require(a9_0x2c0eee(0x9c));function a9_0x3409(_0x2d1204,_0x15d8e4){var _0x4eb040=a9_0x4eb0();return a9_0x3409=function(_0x34096f,_0x2eefe3){_0x34096f=_0x34096f-0x73;var _0x5f2143=_0x4eb040[_0x34096f];return _0x5f2143;},a9_0x3409(_0x2d1204,_0x15d8e4);}Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x89),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a9_0x2c0eee(0xa9));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0xae),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x2c0eee(0x91));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0xa7),{'enumerable':!![],'get':function(){var _0x5a0d5b=a9_0x2c0eee;return event_1[_0x5a0d5b(0xa7)];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x897030=a9_0x2c0eee;return ApiService_1[_0x897030(0xac)];}});var ExcelService_1=require(a9_0x2c0eee(0xa3));Object['defineProperty'](exports,a9_0x2c0eee(0x96),{'enumerable':!![],'get':function(){var _0x1d718b=a9_0x2c0eee;return ExcelService_1[_0x1d718b(0x96)];}});var validator_1=require(a9_0x2c0eee(0x80));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x87),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x2c0eee(0x86)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x18b187=a9_0x2c0eee;return validator_1[_0x18b187(0x7c)];}});var configuration_1=require(a9_0x2c0eee(0x8a));Object['defineProperty'](exports,a9_0x2c0eee(0x9e),{'enumerable':!![],'get':function(){var _0x5d9227=a9_0x2c0eee;return configuration_1[_0x5d9227(0x7e)];}});var core_1=require('@midwayjs/core');Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x93),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object['defineProperty'](exports,a9_0x2c0eee(0xa8),{'enumerable':!![],'get':function(){var _0x25fdc3=a9_0x2c0eee;return core_1[_0x25fdc3(0xa8)];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x9a),{'enumerable':!![],'get':function(){var _0x233fef=a9_0x2c0eee;return core_1[_0x233fef(0x9a)];}}),Object['defineProperty'](exports,'Body',{'enumerable':!![],'get':function(){var _0x58be01=a9_0x2c0eee;return core_1[_0x58be01(0x94)];}}),Object['defineProperty'](exports,'Param',{'enumerable':!![],'get':function(){var _0x1cb1d2=a9_0x2c0eee;return core_1[_0x1cb1d2(0x84)];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0xa1),{'enumerable':!![],'get':function(){var _0x12f7bd=a9_0x2c0eee;return core_1[_0x12f7bd(0xa1)];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x73),{'enumerable':!![],'get':function(){var _0x4cd6e4=a9_0x2c0eee;return core_1[_0x4cd6e4(0x73)];}}),Object[a9_0x2c0eee(0x86)](exports,'Init',{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a9_0x2c0eee(0x75));Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x90),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x9f),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object['defineProperty'](exports,a9_0x2c0eee(0x8e),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x8c),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x82),{'enumerable':!![],'get':function(){var _0xa22b59=a9_0x2c0eee;return core_2[_0xa22b59(0x82)];}}),Object[a9_0x2c0eee(0x86)](exports,a9_0x2c0eee(0x74),{'enumerable':!![],'get':function(){var _0x418e6f=a9_0x2c0eee;return core_2[_0x418e6f(0x74)];}}),Object[a9_0x2c0eee(0x86)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x4699bb=a9_0x2c0eee;return core_2[_0x4699bb(0x81)];}}),global[a9_0x2c0eee(0x9d)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x652168=a10_0x2f8a;(function(_0x2d2a6e,_0x2ca3bd){var _0x562cc4=a10_0x2f8a,_0x1d1a52=_0x2d2a6e();while(!![]){try{var _0x3c5b4b=-parseInt(_0x562cc4(0x1b5))/0x1*(-parseInt(_0x562cc4(0x190))/0x2)+-parseInt(_0x562cc4(0x1a7))/0x3+parseInt(_0x562cc4(0x1a6))/0x4+parseInt(_0x562cc4(0x182))/0x5+-parseInt(_0x562cc4(0x1a8))/0x6+parseInt(_0x562cc4(0x181))/0x7*(-parseInt(_0x562cc4(0x18d))/0x8)+parseInt(_0x562cc4(0x19f))/0x9*(parseInt(_0x562cc4(0x1a5))/0xa);if(_0x3c5b4b===_0x2ca3bd)break;else _0x1d1a52['push'](_0x1d1a52['shift']());}catch(_0x387266){_0x1d1a52['push'](_0x1d1a52['shift']());}}}(a10_0x58f2,0xcd6e3));function a10_0x2f8a(_0x5d387f,_0x531d4d){var _0x58f25b=a10_0x58f2();return a10_0x2f8a=function(_0x2f8a6d,_0x1f4d71){_0x2f8a6d=_0x2f8a6d-0x17d;var _0x98281d=_0x58f25b[_0x2f8a6d];return _0x98281d;},a10_0x2f8a(_0x5d387f,_0x531d4d);}var __decorate=this&&this['__decorate']||function(_0x3b616a,_0x41b288,_0x2fd474,_0x4f8dce){var _0x2ccf53=a10_0x2f8a,_0xc68e50=arguments['length'],_0x59fc7e=_0xc68e50<0x3?_0x41b288:_0x4f8dce===null?_0x4f8dce=Object[_0x2ccf53(0x183)](_0x41b288,_0x2fd474):_0x4f8dce,_0x3e2f97;if(typeof Reflect===_0x2ccf53(0x17e)&&typeof Reflect['decorate']===_0x2ccf53(0x198))_0x59fc7e=Reflect[_0x2ccf53(0x195)](_0x3b616a,_0x41b288,_0x2fd474,_0x4f8dce);else{for(var _0x475a9c=_0x3b616a[_0x2ccf53(0x1a1)]-0x1;_0x475a9c>=0x0;_0x475a9c--)if(_0x3e2f97=_0x3b616a[_0x475a9c])_0x59fc7e=(_0xc68e50<0x3?_0x3e2f97(_0x59fc7e):_0xc68e50>0x3?_0x3e2f97(_0x41b288,_0x2fd474,_0x59fc7e):_0x3e2f97(_0x41b288,_0x2fd474))||_0x59fc7e;}return _0xc68e50>0x3&&_0x59fc7e&&Object[_0x2ccf53(0x186)](_0x41b288,_0x2fd474,_0x59fc7e),_0x59fc7e;},__metadata=this&&this[a10_0x652168(0x1b2)]||function(_0x90c5db,_0x36cc00){var _0x2668dc=a10_0x652168;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2668dc(0x198))return Reflect[_0x2668dc(0x1b0)](_0x90c5db,_0x36cc00);};Object[a10_0x652168(0x186)](exports,a10_0x652168(0x1a0),{'value':!![]}),exports[a10_0x652168(0x192)]=void 0x0;const crypto_js_1=require(a10_0x652168(0x1ab)),core_1=require(a10_0x652168(0x1b6)),ApiError_1=require(a10_0x652168(0x19e));function a10_0x58f2(){var _0x248bb9=['7twxQOo','840835EZNHTF','getOwnPropertyDescriptor','Config','design:type','defineProperty','getsign','缺少头信息:','MD5','ScopeEnum','checkcode','entries','12472928WXLAfj','fromEntries','Scope','150630OQNTxJ','secret','ApiService','password','join','decorate','undefined','signature','function','timeout','prototype','HEADERS_SIGNATURE','logintime','device','../exception/ApiError','423OxiZLp','__esModule','length','toString','requesttime','token','662470pmBdUu','1325132SrQptZ','4778610gXLuLt','1332900HunxkR','devices','map','crypto-js','Provide','config','logintimeout','TIMEOUT_LOGINTIME','metadata','secret=','__metadata','now','HEADERS_LACK','8KFRdEk','@midwayjs/core','abs','object','checksign','ApiError'];a10_0x58f2=function(){return _0x248bb9;};return a10_0x58f2();}let ApiService=class ApiService{[a10_0x652168(0x193)](_0x449dde){var _0x866d62=a10_0x652168,_0x446e45;return _0x449dde?(0x0,crypto_js_1[_0x866d62(0x189)])(_0x449dde+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x866d62(0x189)])(_0x449dde)[_0x866d62(0x1a2)]()+((_0x446e45=this[_0x866d62(0x1ad)])===null||_0x446e45===void 0x0?void 0x0:_0x446e45[_0x866d62(0x193)]))[_0x866d62(0x1a2)]())[_0x866d62(0x1a2)]():'';}['getcheck'](_0x1886cc,_0x5455df,_0x178f15=Date[a10_0x652168(0x1b3)]()){var _0x86c4fd=a10_0x652168;return{'Token':_0x1886cc,'Logintime':_0x178f15,'Checkcode':this[_0x86c4fd(0x18b)](_0x1886cc,_0x5455df,_0x178f15)};}[a10_0x652168(0x187)](_0x184d50={}){var _0x3b985c=a10_0x652168,_0x5cbaa4;const _0x2b3f89=[],_0x48004a=Object['fromEntries'](Object[_0x3b985c(0x18c)](_0x184d50)[_0x3b985c(0x1aa)](_0x31e5df=>[_0x31e5df[0x0]['toLowerCase'](),_0x31e5df[0x1]]));for(let _0x3f14b9 of[_0x3b985c(0x19d),'requesttime',_0x3b985c(0x1a4),_0x3b985c(0x19c),'checkcode']){if(typeof _0x48004a[_0x3f14b9]==_0x3b985c(0x196))throw new AnnError(ApiError_1[_0x3b985c(0x180)]['HEADERS_LACK'],{'message':_0x3b985c(0x188)+_0x3f14b9});_0x2b3f89['push'](_0x3f14b9+'='+_0x48004a[_0x3f14b9]);}if(Date['now']()-Math[_0x3b985c(0x17d)](_0x48004a[_0x3b985c(0x1a3)])>this[_0x3b985c(0x1ad)][_0x3b985c(0x199)])throw new AnnError(ApiError_1['ApiError']['TIMEOUT']);if((((_0x5cbaa4=this[_0x3b985c(0x1ad)]['devices'][_0x48004a[_0x3b985c(0x19d)]])===null||_0x5cbaa4===void 0x0?void 0x0:_0x5cbaa4[_0x3b985c(0x1ae)])||0x0)>0x0&&Date[_0x3b985c(0x1b3)]()-Math[_0x3b985c(0x17d)](_0x48004a[_0x3b985c(0x19c)])>this[_0x3b985c(0x1ad)][_0x3b985c(0x1a9)][_0x48004a[_0x3b985c(0x19d)]][_0x3b985c(0x1ae)])throw new AnnError(ApiError_1[_0x3b985c(0x180)][_0x3b985c(0x1af)]);if(!this[_0x3b985c(0x1ad)][_0x3b985c(0x1a9)][_0x48004a[_0x3b985c(0x19d)]]||!this['config'][_0x3b985c(0x1a9)][_0x48004a[_0x3b985c(0x19d)]]['secret']||!this['config'][_0x3b985c(0x1a9)][_0x48004a[_0x3b985c(0x19d)]][_0x3b985c(0x18b)])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x48004a[_0x3b985c(0x1a4)]&&_0x48004a[_0x3b985c(0x18b)]!=this[_0x3b985c(0x18b)](_0x48004a['token'],_0x48004a[_0x3b985c(0x19d)],_0x48004a['logintime']))throw new AnnError(ApiError_1[_0x3b985c(0x180)]['HEADERS_CHECKCODE']);return _0x2b3f89['push'](_0x3b985c(0x1b1)+this[_0x3b985c(0x1ad)][_0x3b985c(0x1a9)][_0x48004a[_0x3b985c(0x19d)]][_0x3b985c(0x191)]),(0x0,crypto_js_1['MD5'])(_0x2b3f89['sort']()[_0x3b985c(0x194)](''))[_0x3b985c(0x1a2)]();}['checkcode'](_0x17ad97,_0x3c428e,_0x6e86ae=Date[a10_0x652168(0x1b3)]()){var _0x2f528d=a10_0x652168,_0x5096eb,_0x26663e,_0x41cc0e;if(!((_0x5096eb=this['config'])===null||_0x5096eb===void 0x0?void 0x0:_0x5096eb[_0x2f528d(0x1a9)][_0x3c428e])||!((_0x41cc0e=(_0x26663e=this[_0x2f528d(0x1ad)])===null||_0x26663e===void 0x0?void 0x0:_0x26663e['devices'][_0x3c428e])===null||_0x41cc0e===void 0x0?void 0x0:_0x41cc0e[_0x2f528d(0x18b)]))throw new AnnError(ApiError_1[_0x2f528d(0x180)]['HEADERS_DEVICE']);return(0x0,crypto_js_1['MD5'])(_0x17ad97+(0x0,crypto_js_1[_0x2f528d(0x189)])(_0x6e86ae+this[_0x2f528d(0x1ad)]['devices'][_0x3c428e][_0x2f528d(0x18b)])[_0x2f528d(0x1a2)]())[_0x2f528d(0x1a2)]();}[a10_0x652168(0x17f)](_0x36a157={}){var _0x20a294=a10_0x652168;const _0x29ee58=Object[_0x20a294(0x18e)](Object[_0x20a294(0x18c)](_0x36a157)[_0x20a294(0x1aa)](_0x80d931=>[_0x80d931[0x0]['toLowerCase'](),_0x80d931[0x1]]));if(!(_0x29ee58===null||_0x29ee58===void 0x0?void 0x0:_0x29ee58[_0x20a294(0x197)]))throw new AnnError(ApiError_1[_0x20a294(0x180)][_0x20a294(0x1b4)],{'message':'缺少头信息:signature'});if((_0x29ee58===null||_0x29ee58===void 0x0?void 0x0:_0x29ee58[_0x20a294(0x197)])!=this[_0x20a294(0x187)](_0x29ee58))throw new AnnError(ApiError_1[_0x20a294(0x180)][_0x20a294(0x19b)]);return!![];}};__decorate([(0x0,core_1[a10_0x652168(0x184)])('anncicapi'),__metadata(a10_0x652168(0x185),Object)],ApiService[a10_0x652168(0x19a)],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x652168(0x1ac)])(),(0x0,core_1[a10_0x652168(0x18f)])(core_1[a10_0x652168(0x18a)]['Singleton'])],ApiService),exports[a10_0x652168(0x192)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x13aa75=a11_0x340b;(function(_0xa01778,_0x52e594){const _0x1f3f04=a11_0x340b,_0x2e2761=_0xa01778();while(!![]){try{const _0x2b29bd=-parseInt(_0x1f3f04(0xd3))/0x1*(-parseInt(_0x1f3f04(0xd7))/0x2)+-parseInt(_0x1f3f04(0xb1))/0x3+parseInt(_0x1f3f04(0xba))/0x4+-parseInt(_0x1f3f04(0x92))/0x5*(-parseInt(_0x1f3f04(0xb9))/0x6)+-parseInt(_0x1f3f04(0xe0))/0x7*(parseInt(_0x1f3f04(0xc3))/0x8)+parseInt(_0x1f3f04(0x94))/0x9+parseInt(_0x1f3f04(0xa5))/0xa*(parseInt(_0x1f3f04(0xd2))/0xb);if(_0x2b29bd===_0x52e594)break;else _0x2e2761['push'](_0x2e2761['shift']());}catch(_0x14635f){_0x2e2761['push'](_0x2e2761['shift']());}}}(a11_0x1a17,0x36cef));function a11_0x1a17(){const _0x4fbb15=['Param','defineProperty','14844rhikye','198612bzPSUO','Get','apidoc','/apiteststatic/','filepath','/apitest','anncicapi','request','url','8mlalZT','push','__metadata','.css','cache-control','Environment','design:paramtypes','/apiteststatic/*','readFileSync','apitest','MidwayEnvironmentService','devices','Singleton','ApitestService','Config','2035UgCnfZ','2HqRcnP','extname','design:type','../../public/index.html','184166icfYop','ctx','prototype','length','method','__devices__','Inject','object','content-type','2157260FqqNhp','prefix','__esModule','__apiList__','apitesthtml','555rOCVTe','getRoutes','1942524dQaPxN','public,\x20max-age=604800','summary','__param','Provide','function','path','/index.html','getOwnPropertyDescriptor','isDevelopmentEnvironment','metadata','application/javascript;\x20charset=utf-8','apiteststatic','ApitestStaticController','module','Controller','ScopeEnum','6290fmpNrQ','config','join','@midwayjs/core','utf-8','../helper/getRoutes','replace','stringify','Scope','description','/apitest-:module','Request','923877wcPrOq','__decorate','design:returntype','set','decorate','../../public/'];a11_0x1a17=function(){return _0x4fbb15;};return a11_0x1a17();}function a11_0x340b(_0x1e7895,_0x580cf1){const _0x1a1760=a11_0x1a17();return a11_0x340b=function(_0x340bca,_0x3f99e0){_0x340bca=_0x340bca-0x8f;let _0x3e513a=_0x1a1760[_0x340bca];return _0x3e513a;},a11_0x340b(_0x1e7895,_0x580cf1);}var __decorate=this&&this[a11_0x13aa75(0xb2)]||function(_0x9c5c57,_0x1e1350,_0x31aaa6,_0x217c3c){const _0x101fe7=a11_0x13aa75;var _0x307b73=arguments[_0x101fe7(0xda)],_0x7f211=_0x307b73<0x3?_0x1e1350:_0x217c3c===null?_0x217c3c=Object[_0x101fe7(0x9c)](_0x1e1350,_0x31aaa6):_0x217c3c,_0x54893c;if(typeof Reflect===_0x101fe7(0xde)&&typeof Reflect[_0x101fe7(0xb5)]==='function')_0x7f211=Reflect[_0x101fe7(0xb5)](_0x9c5c57,_0x1e1350,_0x31aaa6,_0x217c3c);else{for(var _0x5e0658=_0x9c5c57['length']-0x1;_0x5e0658>=0x0;_0x5e0658--)if(_0x54893c=_0x9c5c57[_0x5e0658])_0x7f211=(_0x307b73<0x3?_0x54893c(_0x7f211):_0x307b73>0x3?_0x54893c(_0x1e1350,_0x31aaa6,_0x7f211):_0x54893c(_0x1e1350,_0x31aaa6))||_0x7f211;}return _0x307b73>0x3&&_0x7f211&&Object[_0x101fe7(0xb8)](_0x1e1350,_0x31aaa6,_0x7f211),_0x7f211;},__metadata=this&&this[a11_0x13aa75(0xc5)]||function(_0x293a12,_0x1068ff){const _0x1da054=a11_0x13aa75;if(typeof Reflect===_0x1da054(0xde)&&typeof Reflect[_0x1da054(0x9e)]===_0x1da054(0x99))return Reflect[_0x1da054(0x9e)](_0x293a12,_0x1068ff);},__param=this&&this[a11_0x13aa75(0x97)]||function(_0x492c56,_0x3ea010){return function(_0x419dba,_0x1075b0){_0x3ea010(_0x419dba,_0x1075b0,_0x492c56);};};Object['defineProperty'](exports,a11_0x13aa75(0x8f),{'value':!![]}),exports[a11_0x13aa75(0xa1)]=exports[a11_0x13aa75(0xd0)]=void 0x0;const path_1=require(a11_0x13aa75(0x9a)),fs_1=require('fs'),core_1=require(a11_0x13aa75(0xa8)),core_2=require(a11_0x13aa75(0xa8)),core_3=require(a11_0x13aa75(0xa8)),getRoutes_1=require(a11_0x13aa75(0xaa));let ApitestService=class ApitestService{async['apidoc'](_0x4024aa){const _0xbc34ef=a11_0x13aa75,_0x23b550=(0x0,getRoutes_1[_0xbc34ef(0x93)])(_0x4024aa),_0x5564a4=[];for(let _0x12dda7 in _0x23b550){for(let _0x4f1928 in _0x23b550[_0x12dda7]['routes']){let _0x361658=_0x23b550[_0x12dda7]['routes'][_0x4f1928],_0x1e8668=[];for(let _0x534b98 in _0x361658[_0xbc34ef(0xc1)]){_0x1e8668[_0xbc34ef(0xc4)](_0x361658[_0xbc34ef(0xc1)][_0x534b98]);}_0x5564a4[_0xbc34ef(0xc4)]({'title':_0x23b550[_0x12dda7]['summary']+':'+_0x361658[_0xbc34ef(0x96)],'prefix':_0x23b550[_0x12dda7][_0xbc34ef(0xe1)],'router':_0x361658['route'],'method':_0x361658[_0xbc34ef(0xdb)],'describe':_0x361658[_0xbc34ef(0xae)]||'','filepath':_0x23b550[_0x12dda7][_0xbc34ef(0xbe)]||'','request':_0x1e8668});}}const _0x3484ba=(0x0,path_1[_0xbc34ef(0xa7)])(__dirname,_0xbc34ef(0xd6));return(0x0,fs_1[_0xbc34ef(0xcb)])(_0x3484ba,{'encoding':_0xbc34ef(0xa9)})[_0xbc34ef(0xab)](/__res__/g,'/apiteststatic/')[_0xbc34ef(0xab)](_0xbc34ef(0x90),JSON[_0xbc34ef(0xac)](_0x5564a4))[_0xbc34ef(0xab)](_0xbc34ef(0xdc),JSON[_0xbc34ef(0xac)](this['config'][_0xbc34ef(0xce)]));}};__decorate([(0x0,core_3[a11_0x13aa75(0xd1)])(a11_0x13aa75(0xc0)),__metadata('design:type',Object)],ApitestService[a11_0x13aa75(0xd9)],a11_0x13aa75(0xa6),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x13aa75(0x98)])(a11_0x13aa75(0xcc)),(0x0,core_3[a11_0x13aa75(0xad)])(core_3[a11_0x13aa75(0xa4)][a11_0x13aa75(0xcf)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x13aa75(0x91)](){const _0x27e2ac=a11_0x13aa75;if(this[_0x27e2ac(0xcc)]){const _0x5e7a66={'module':![]};return this['Environment'][_0x27e2ac(0x9d)]()&&(_0x5e7a66[_0x27e2ac(0xbe)]=!![]),await this['ApitestService'][_0x27e2ac(0xbc)](_0x5e7a66);}return'';}async['apitestmodule'](_0x30c534){const _0x4d516b=a11_0x13aa75;if(this[_0x4d516b(0xcc)]){const _0x174bbc={'module':_0x30c534};return this[_0x4d516b(0xc8)]['isDevelopmentEnvironment']()&&(_0x174bbc[_0x4d516b(0xbe)]=!![]),await this[_0x4d516b(0xd0)]['apidoc'](_0x174bbc);}return'';}async[a11_0x13aa75(0xa0)](){const _0x1573cd=a11_0x13aa75;if((0x0,path_1[_0x1573cd(0xd4)])(this[_0x1573cd(0xd8)][_0x1573cd(0xc1)][_0x1573cd(0xc2)])){var _0x521f62=(0x0,path_1[_0x1573cd(0xa7)])(__dirname,_0x1573cd(0xb6)+this[_0x1573cd(0xd8)][_0x1573cd(0xc1)][_0x1573cd(0xc2)][_0x1573cd(0xab)](_0x1573cd(0xbd),'/'));if(_0x521f62['substring'](_0x521f62['length']-0xb)!=_0x1573cd(0x9b)){this[_0x1573cd(0xd8)][_0x1573cd(0xb4)](_0x1573cd(0xc7),_0x1573cd(0x95));if((0x0,path_1['extname'])(this[_0x1573cd(0xd8)]['request']['url'])=='.js')this[_0x1573cd(0xd8)]['set'](_0x1573cd(0xdf),_0x1573cd(0x9f));else(0x0,path_1['extname'])(this[_0x1573cd(0xd8)][_0x1573cd(0xc1)][_0x1573cd(0xc2)])==_0x1573cd(0xc6)&&this[_0x1573cd(0xd8)][_0x1573cd(0xb4)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1['existsSync'])(_0x521f62)&&(0x0,fs_1[_0x1573cd(0xcb)])(_0x521f62,{'encoding':_0x1573cd(0xa9)});}}return'';}};__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x13aa75(0xd5),Object)],ApitestStaticController[a11_0x13aa75(0xd9)],a11_0x13aa75(0xd8),void 0x0),__decorate([(0x0,core_3[a11_0x13aa75(0xdd)])(),__metadata(a11_0x13aa75(0xd5),core_1[a11_0x13aa75(0xcd)])],ApitestStaticController[a11_0x13aa75(0xd9)],a11_0x13aa75(0xc8),void 0x0),__decorate([(0x0,core_3[a11_0x13aa75(0xdd)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x13aa75(0xd9)],a11_0x13aa75(0xd0),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x13aa75(0xcc)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x13aa75(0xd9)],a11_0x13aa75(0xcc),void 0x0),__decorate([(0x0,core_3[a11_0x13aa75(0xd1)])(a11_0x13aa75(0xc0)),__metadata(a11_0x13aa75(0xd5),Object)],ApitestStaticController[a11_0x13aa75(0xd9)],a11_0x13aa75(0xa6),void 0x0),__decorate([(0x0,core_2[a11_0x13aa75(0xbb)])(a11_0x13aa75(0xbf)),__metadata(a11_0x13aa75(0xd5),Function),__metadata(a11_0x13aa75(0xc9),[]),__metadata(a11_0x13aa75(0xb3),Promise)],ApitestStaticController['prototype'],'apitesthtml',null),__decorate([(0x0,core_2['Get'])(a11_0x13aa75(0xaf)),__param(0x0,(0x0,core_2[a11_0x13aa75(0xb7)])(a11_0x13aa75(0xa2))),__metadata('design:type',Function),__metadata(a11_0x13aa75(0xc9),[String]),__metadata(a11_0x13aa75(0xb3),Promise)],ApitestStaticController[a11_0x13aa75(0xd9)],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x13aa75(0xbb)])(a11_0x13aa75(0xca)),__metadata(a11_0x13aa75(0xd5),Function),__metadata(a11_0x13aa75(0xc9),[]),__metadata(a11_0x13aa75(0xb3),Promise)],ApitestStaticController['prototype'],a11_0x13aa75(0xa0),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x13aa75(0xa3)])('/'),(0x0,core_3[a11_0x13aa75(0xad)])(core_3[a11_0x13aa75(0xa4)][a11_0x13aa75(0xb0)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x519bdf=a12_0x50e2;(function(_0x2f8017,_0x29dfad){const _0x585d14=a12_0x50e2,_0x114953=_0x2f8017();while(!![]){try{const _0x2db2c4=-parseInt(_0x585d14(0xa7))/0x1*(parseInt(_0x585d14(0x90))/0x2)+-parseInt(_0x585d14(0x85))/0x3+-parseInt(_0x585d14(0x88))/0x4*(parseInt(_0x585d14(0x71))/0x5)+-parseInt(_0x585d14(0x7e))/0x6+parseInt(_0x585d14(0x9f))/0x7*(-parseInt(_0x585d14(0xaa))/0x8)+parseInt(_0x585d14(0x9c))/0x9*(-parseInt(_0x585d14(0x96))/0xa)+parseInt(_0x585d14(0x83))/0xb*(parseInt(_0x585d14(0xa8))/0xc);if(_0x2db2c4===_0x29dfad)break;else _0x114953['push'](_0x114953['shift']());}catch(_0x37c7fd){_0x114953['push'](_0x114953['shift']());}}}(a12_0x3e78,0x1932d));function a12_0x50e2(_0x54b734,_0xfca2b8){const _0x3e781d=a12_0x3e78();return a12_0x50e2=function(_0x50e20b,_0x1e34ea){_0x50e20b=_0x50e20b-0x6e;let _0x3a5c79=_0x3e781d[_0x50e20b];return _0x3a5c79;},a12_0x50e2(_0x54b734,_0xfca2b8);}function a12_0x3e78(){const _0x53c39c=['object','replace','toString','__metadata','getWorksheet','4FpRHZT','\x20is\x20read\x20fail','App','startsWith','Workbook','random','10SRzqsQ','col','exceljs','addRow','isNumber','writeFile','1200348sbyTNK','ExcelService','rowCount','70812rpJsGz','getAppDir','metadata','getOwnPropertyDescriptor','value','__esModule','defineProperty','ScopeEnum','58594VnTbOx','12jGYCKq','eachCell','24UAkFZz','getCell','.xlsx','readFile','public/xlsx','substring','design:type','@midwayjs/core','app','mkdirSync','52895Tfdrdv','Singleton','download','export','Scope','addWorksheet','existsSync','Provide','log','Api\x20Excel\x20Error:\x20','xlsx','handler','/public/xlsx','8790RErbKF','decorate','endsWith','header','model','7644505BVcRaW','Sheet\x201','610737HfmdFl','function','key','40EVaTYE','length','prototype'];a12_0x3e78=function(){return _0x53c39c;};return a12_0x3e78();}var __decorate=this&&this['__decorate']||function(_0x336268,_0x224b96,_0x2d3751,_0x379caf){const _0x3ef627=a12_0x50e2;var _0x34d734=arguments[_0x3ef627(0x89)],_0x15d0bf=_0x34d734<0x3?_0x224b96:_0x379caf===null?_0x379caf=Object[_0x3ef627(0xa2)](_0x224b96,_0x2d3751):_0x379caf,_0x3d7141;if(typeof Reflect===_0x3ef627(0x8b)&&typeof Reflect['decorate']==='function')_0x15d0bf=Reflect[_0x3ef627(0x7f)](_0x336268,_0x224b96,_0x2d3751,_0x379caf);else{for(var _0x5f446f=_0x336268['length']-0x1;_0x5f446f>=0x0;_0x5f446f--)if(_0x3d7141=_0x336268[_0x5f446f])_0x15d0bf=(_0x34d734<0x3?_0x3d7141(_0x15d0bf):_0x34d734>0x3?_0x3d7141(_0x224b96,_0x2d3751,_0x15d0bf):_0x3d7141(_0x224b96,_0x2d3751))||_0x15d0bf;}return _0x34d734>0x3&&_0x15d0bf&&Object[_0x3ef627(0xa5)](_0x224b96,_0x2d3751,_0x15d0bf),_0x15d0bf;},__metadata=this&&this[a12_0x519bdf(0x8e)]||function(_0xf4efc1,_0x5e3e3f){const _0x1bc93f=a12_0x519bdf;if(typeof Reflect===_0x1bc93f(0x8b)&&typeof Reflect[_0x1bc93f(0xa1)]===_0x1bc93f(0x86))return Reflect[_0x1bc93f(0xa1)](_0xf4efc1,_0x5e3e3f);};Object['defineProperty'](exports,a12_0x519bdf(0xa4),{'value':!![]}),exports[a12_0x519bdf(0x9d)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x519bdf(0x98)),koasend=require('koa-send'),core_1=require(a12_0x519bdf(0x6e));let ExcelService=class ExcelService{async['parse'](_0x35c4a6,_0x40075b,_0x4ec34f=[0x0]){const _0x13e9d7=a12_0x519bdf;var _0x4d264e,_0x33ea93;const _0x335afe=new exceljs[(_0x13e9d7(0x94))](),_0x15c6e8=[];let _0x4b2dcd=_0x35c4a6['replace'](/(\\|\/)/g,'/')[_0x13e9d7(0x8c)](/\/{2,}/g,'/');!(_0x4b2dcd===null||_0x4b2dcd===void 0x0?void 0x0:_0x4b2dcd['startsWith']('/'))&&(_0x4b2dcd=this[_0x13e9d7(0x6f)][_0x13e9d7(0xa0)]()+'/'+_0x4b2dcd);try{await _0x335afe[_0x13e9d7(0x7b)][_0x13e9d7(0xad)](_0x4b2dcd);}catch(_0x4ee3c7){return console[_0x13e9d7(0x79)](_0x13e9d7(0x7a)+_0x4b2dcd+_0x13e9d7(0x91)),_0x15c6e8;}for(const _0xe66f5e of _0x4ec34f){const _0x18cd83=lodash[_0x13e9d7(0x9a)](_0xe66f5e)?((_0x4d264e=_0x335afe['worksheets'])===null||_0x4d264e===void 0x0?void 0x0:_0x4d264e[_0xe66f5e])||undefined:_0x335afe[_0x13e9d7(0x8f)](_0xe66f5e);if(_0x18cd83){var _0x4238cf=0x1;const _0x3d40c0=_0x18cd83['getRow'](0x1),_0x52b109=await new Promise(_0x35e877=>{const _0xd81dac=_0x13e9d7,_0x237c4b={};_0x3d40c0[_0xd81dac(0xa9)]((_0x955569,_0x6b938f)=>{const _0x4afa00=_0xd81dac;for(const _0x47385b of _0x40075b){if(_0x955569[_0x4afa00(0xa3)]==_0x47385b[_0x4afa00(0x81)])_0x4238cf=0x2,_0x237c4b[_0x47385b['key']]={'header':_0x955569[_0x4afa00(0x97)],'handler':_0x47385b[_0x4afa00(0x7c)]};else{if(!_0x237c4b[_0x47385b[_0x4afa00(0x87)]])try{const _0x3c7180=_0x3d40c0[_0x4afa00(0xab)](_0x47385b[_0x4afa00(0x81)]);_0x3c7180&&(_0x237c4b[_0x47385b[_0x4afa00(0x87)]]={'header':_0x3c7180[_0x4afa00(0x97)],'handler':_0x47385b[_0x4afa00(0x7c)]});}catch{}}}_0x3d40c0['cellCount']==_0x6b938f&&_0x35e877(_0x237c4b);});});for(const _0x570f09 of _0x18cd83['findRows'](_0x4238cf,_0x18cd83[_0x13e9d7(0x9e)])){const _0x31eca4={};for(const _0x3a5eb4 in _0x52b109){if(_0x52b109[_0x3a5eb4][_0x13e9d7(0x81)]){const _0x458c20=_0x570f09[_0x13e9d7(0xab)](_0x52b109[_0x3a5eb4]['header']);typeof((_0x33ea93=_0x52b109[_0x3a5eb4])===null||_0x33ea93===void 0x0?void 0x0:_0x33ea93[_0x13e9d7(0x7c)])=='function'?_0x31eca4[_0x3a5eb4]=await _0x52b109[_0x3a5eb4][_0x13e9d7(0x7c)]((_0x458c20===null||_0x458c20===void 0x0?void 0x0:_0x458c20[_0x13e9d7(0x8d)]())||'',_0x458c20[_0x13e9d7(0x82)]):_0x31eca4[_0x3a5eb4]=(_0x458c20===null||_0x458c20===void 0x0?void 0x0:_0x458c20[_0x13e9d7(0x8d)]())||'';}}Object['keys'](_0x31eca4)[_0x13e9d7(0x89)]>0x0&&_0x15c6e8['push'](_0x31eca4);}}}return _0x15c6e8;}async[a12_0x519bdf(0x74)](_0x2e3872,_0xc07634,_0x41c5e2,_0x193e3c=a12_0x519bdf(0xae)){const _0x224138=a12_0x519bdf;var _0xdc5407,_0x2135bc;const _0x1e61bb=new exceljs[(_0x224138(0x94))](),_0x1c1c3e={},_0x4ff6a6=[],_0x57f86e=_0x1e61bb[_0x224138(0x76)](_0x224138(0x84),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x68cade in _0xc07634){_0x1c1c3e[_0xc07634[_0x68cade]['key']]=_0xc07634[_0x68cade][_0x224138(0x81)],_0x4ff6a6['push']({'header':_0xc07634[_0x68cade][_0x224138(0x81)],'key':(_0xdc5407=_0xc07634[_0x68cade])===null||_0xdc5407===void 0x0?void 0x0:_0xdc5407[_0x224138(0x87)][_0x224138(0x8c)](/\./g,'_')});}_0x57f86e['columns']=_0x4ff6a6;for(const _0x19dd94 of _0x41c5e2){const _0x10f11d={};for(const _0xd8faf3 in _0xc07634){typeof((_0x2135bc=_0xc07634[_0xd8faf3])===null||_0x2135bc===void 0x0?void 0x0:_0x2135bc[_0x224138(0x7c)])==_0x224138(0x86)?_0x10f11d[_0xc07634[_0xd8faf3][_0x224138(0x87)][_0x224138(0x8c)](/\./g,'_')]=await _0xc07634[_0xd8faf3][_0x224138(0x7c)](_0x19dd94):_0x10f11d[_0xc07634[_0xd8faf3][_0x224138(0x87)][_0x224138(0x8c)](/\./g,'_')]=lodash['get'](_0x19dd94,_0xc07634[_0xd8faf3][_0x224138(0x87)],'');}_0x57f86e[_0x224138(0x99)](_0x10f11d);}let _0x1ae6b5='';const _0x54bdf4=_0x2e3872+'-'+lodash[_0x224138(0x95)](0x2710,0x1869f)+_0x224138(0xac);if(_0x193e3c&&_0x193e3c[_0x224138(0x93)]('/'))_0x1ae6b5=''+_0x193e3c;else _0x193e3c&&!_0x193e3c['startsWith']('/')&&!_0x193e3c['startsWith']('\x5c')?_0x1ae6b5=this[_0x224138(0x6f)][_0x224138(0xa0)]()+'/'+_0x193e3c:_0x1ae6b5=this['app']['getAppDir']()+_0x224138(0x7d);return(_0x1ae6b5['endsWith']('/')||_0x1ae6b5[_0x224138(0x80)]('\x5c'))&&(_0x1ae6b5=_0x1ae6b5[_0x224138(0xaf)](0x0,_0x1ae6b5[_0x224138(0x89)]-0x1)),_0x1ae6b5=_0x1ae6b5[_0x224138(0x8c)](/(\\|\/)/g,'/')[_0x224138(0x8c)](/\/{2,}/g,'/'),!fs[_0x224138(0x77)](_0x1ae6b5)&&fs[_0x224138(0x70)](_0x1ae6b5,{'recursive':!![]}),await _0x1e61bb[_0x224138(0x7b)][_0x224138(0x9b)]((_0x1ae6b5+'/'+_0x54bdf4)[_0x224138(0x8c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x54bdf4,'filepath':(_0x1ae6b5['substring']((''+this['app']['getAppDir']())['length'])+'/'+_0x54bdf4)[_0x224138(0x8c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0x519bdf(0x73)](_0x40ad22,_0x4e52d8){return await koasend(_0x40ad22,''+_0x4e52d8);}};__decorate([(0x0,core_1[a12_0x519bdf(0x92)])(),__metadata(a12_0x519bdf(0xb0),Object)],ExcelService[a12_0x519bdf(0x8a)],a12_0x519bdf(0x6f),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x519bdf(0x78)])(),(0x0,core_1[a12_0x519bdf(0x75)])(core_1[a12_0x519bdf(0xa6)][a12_0x519bdf(0x72)])],ExcelService),exports[a12_0x519bdf(0x9d)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x3484c6=a13_0x4930;function a13_0x4930(_0x1cd538,_0x508210){var _0x1d42bc=a13_0x1d42();return a13_0x4930=function(_0x4930ed,_0x5f3450){_0x4930ed=_0x4930ed-0x7d;var _0x19f334=_0x1d42bc[_0x4930ed];return _0x19f334;},a13_0x4930(_0x1cd538,_0x508210);}(function(_0x2baf59,_0x24a2ed){var _0x1e4899=a13_0x4930,_0x2be510=_0x2baf59();while(!![]){try{var _0x2be39e=-parseInt(_0x1e4899(0x8b))/0x1+parseInt(_0x1e4899(0x85))/0x2+-parseInt(_0x1e4899(0x84))/0x3*(-parseInt(_0x1e4899(0x7e))/0x4)+parseInt(_0x1e4899(0x83))/0x5*(-parseInt(_0x1e4899(0x8a))/0x6)+-parseInt(_0x1e4899(0x86))/0x7+parseInt(_0x1e4899(0x82))/0x8*(parseInt(_0x1e4899(0x89))/0x9)+parseInt(_0x1e4899(0x88))/0xa;if(_0x2be39e===_0x24a2ed)break;else _0x2be510['push'](_0x2be510['shift']());}catch(_0x4a9c57){_0x2be510['push'](_0x2be510['shift']());}}}(a13_0x1d42,0x34037));Object[a13_0x3484c6(0x87)](exports,a13_0x3484c6(0x80),{'value':!![]}),exports[a13_0x3484c6(0x8c)]=exports[a13_0x3484c6(0x7f)]=exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']=a13_0x3484c6(0x7d),exports['ACTION_ROUTE_KEY']='anncic-api:action:route',exports[a13_0x3484c6(0x7f)]=a13_0x3484c6(0x81);class AppsConfigTmp{}exports[a13_0x3484c6(0x8c)]=AppsConfigTmp;function a13_0x1d42(){var _0x31d8bf=['9924duXCWF','AppsConfigTmp','anncic-api:action','28bgGOtW','APPSCONFIG_KEY','__esModule','anncic-api:apps:config','8MhcTeB','5135jQvTsf','20229WtPfKC','125502JRUWed','403564YKzmAW','defineProperty','2712340JYSpAK','934290ijlRZn','1194MVkKos'];a13_0x1d42=function(){return _0x31d8bf;};return a13_0x1d42();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x38f584=a14_0x3d04;(function(_0x257eb7,_0x48a112){var _0x5e5b70=a14_0x3d04,_0x16c537=_0x257eb7();while(!![]){try{var _0x259742=-parseInt(_0x5e5b70(0xc2))/0x1*(-parseInt(_0x5e5b70(0xcb))/0x2)+parseInt(_0x5e5b70(0xc4))/0x3*(parseInt(_0x5e5b70(0xc7))/0x4)+-parseInt(_0x5e5b70(0xbf))/0x5+parseInt(_0x5e5b70(0xcf))/0x6*(-parseInt(_0x5e5b70(0xc8))/0x7)+-parseInt(_0x5e5b70(0xce))/0x8+-parseInt(_0x5e5b70(0xdc))/0x9*(-parseInt(_0x5e5b70(0xd8))/0xa)+-parseInt(_0x5e5b70(0xc5))/0xb*(parseInt(_0x5e5b70(0xda))/0xc);if(_0x259742===_0x48a112)break;else _0x16c537['push'](_0x16c537['shift']());}catch(_0x588654){_0x16c537['push'](_0x16c537['shift']());}}}(a14_0xebc0,0xd0cf9));function a14_0x3d04(_0x163144,_0x1d22a7){var _0xebc0db=a14_0xebc0();return a14_0x3d04=function(_0x3d0453,_0x32985c){_0x3d0453=_0x3d0453-0xb7;var _0x2ceedf=_0xebc0db[_0x3d0453];return _0x2ceedf;},a14_0x3d04(_0x163144,_0x1d22a7);}function a14_0xebc0(){var _0xae5d50=['@anncic-api/validator','min','_size','defineProperty','valid','13206010wltMgg','object','14808UjsQwr','prototype','9ERRUVw','getOwnPropertyDescriptor','decorate','design:type','是否倒序','_page','_order','排序方式','RuleType','2535770NOTiXX','trim','__esModule','1Qbcyql','PageDTO','233922ThuTNW','16181VbiKdj','__decorate','76qredeU','416731dMkieI','integer','function','2725150NAzPci','第一页为1,第二页为2','分页数量','7419936iHgxcr','6Jqmjmt','Rule','1:是;0:否','number'];a14_0xebc0=function(){return _0xae5d50;};return a14_0xebc0();}var __decorate=this&&this[a14_0x38f584(0xc6)]||function(_0x16c103,_0x3acd20,_0x3d8954,_0x4b4fcc){var _0x2db277=a14_0x38f584,_0x271712=arguments['length'],_0x5dafbc=_0x271712<0x3?_0x3acd20:_0x4b4fcc===null?_0x4b4fcc=Object[_0x2db277(0xb7)](_0x3acd20,_0x3d8954):_0x4b4fcc,_0x50550c;if(typeof Reflect===_0x2db277(0xd9)&&typeof Reflect['decorate']===_0x2db277(0xca))_0x5dafbc=Reflect[_0x2db277(0xb8)](_0x16c103,_0x3acd20,_0x3d8954,_0x4b4fcc);else{for(var _0x5af2ea=_0x16c103['length']-0x1;_0x5af2ea>=0x0;_0x5af2ea--)if(_0x50550c=_0x16c103[_0x5af2ea])_0x5dafbc=(_0x271712<0x3?_0x50550c(_0x5dafbc):_0x271712>0x3?_0x50550c(_0x3acd20,_0x3d8954,_0x5dafbc):_0x50550c(_0x3acd20,_0x3d8954))||_0x5dafbc;}return _0x271712>0x3&&_0x5dafbc&&Object['defineProperty'](_0x3acd20,_0x3d8954,_0x5dafbc),_0x5dafbc;},__metadata=this&&this['__metadata']||function(_0x1c5013,_0x41e586){var _0xb5b40b=a14_0x38f584;if(typeof Reflect===_0xb5b40b(0xd9)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x1c5013,_0x41e586);};Object[a14_0x38f584(0xd6)](exports,a14_0x38f584(0xc1),{'value':!![]}),exports[a14_0x38f584(0xc3)]=void 0x0;const validator_1=require(a14_0x38f584(0xd3));class PageDTO{}__decorate([(0x0,validator_1[a14_0x38f584(0xd0)])('分页',validator_1['RuleType']['number']()[a14_0x38f584(0xc9)]()[a14_0x38f584(0xd4)](0x1),a14_0x38f584(0xcc)),__metadata(a14_0x38f584(0xb9),Number)],PageDTO[a14_0x38f584(0xdb)],a14_0x38f584(0xbb),void 0x0),__decorate([(0x0,validator_1[a14_0x38f584(0xd0)])(a14_0x38f584(0xcd),validator_1[a14_0x38f584(0xbe)][a14_0x38f584(0xd2)]()[a14_0x38f584(0xc9)]()[a14_0x38f584(0xd4)](0x1)),__metadata(a14_0x38f584(0xb9),Number)],PageDTO[a14_0x38f584(0xdb)],a14_0x38f584(0xd5),void 0x0),__decorate([(0x0,validator_1[a14_0x38f584(0xd0)])(a14_0x38f584(0xbd),validator_1['RuleType']['string']()[a14_0x38f584(0xc0)]()),__metadata(a14_0x38f584(0xb9),String)],PageDTO[a14_0x38f584(0xdb)],a14_0x38f584(0xbc),void 0x0),__decorate([(0x0,validator_1[a14_0x38f584(0xd0)])(a14_0x38f584(0xba),validator_1[a14_0x38f584(0xbe)][a14_0x38f584(0xd2)]()[a14_0x38f584(0xc9)]()[a14_0x38f584(0xd7)](0x0,0x1),a14_0x38f584(0xd1)),__metadata(a14_0x38f584(0xb9),Number)],PageDTO[a14_0x38f584(0xdb)],'_isreverse',void 0x0),exports[a14_0x38f584(0xc3)]=PageDTO;
|
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './dist/index';
|
|
|
4
4
|
declare module '@midwayjs/koa/dist/interface' {
|
|
5
5
|
interface Context {
|
|
6
6
|
app: Application;
|
|
7
|
+
koasend(filepath: string): Promise<void>;
|
|
7
8
|
|
|
8
9
|
when(key: string, callbal: (value: any) => {}): void;
|
|
9
10
|
only(keys: Array<Array<any>>): { [key: string]: any };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.21",
|
|
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.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.21",
|
|
21
|
+
"@anncic-api/core": "^1.4.21",
|
|
22
|
+
"@anncic-api/event": "^1.4.21",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.21",
|
|
24
|
+
"@anncic-api/validator": "^1.4.21",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.21",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "02375c5723c0398ca420cbe794178e08cefd3ce5"
|
|
43
43
|
}
|