anncic-api 1.4.17 → 1.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a0_0x905860=a0_0x431b;function a0_0x5d4b(){var _0x2d9beb=['20mb','dhauo1234420123gg3234901','830lPdxEy','json','xml','2522375pNXEQP','21LExxKM','form','44703hDstsj','appDir','2161784aergJf','8sywFOX','1551154xWEDpF','326337hKpEEy','225448YkZQCs','__esModule','default','4KEuUYj','name','/runtime/.upload','282894GfjyNw','zhiulanuiy7892387985hnoi'];a0_0x5d4b=function(){return _0x2d9beb;};return a0_0x5d4b();}(function(_0x46f113,_0x5936a2){var _0x4f7a22=a0_0x431b,_0x4f8d84=_0x46f113();while(!![]){try{var _0x1701a2=parseInt(_0x4f7a22(0x93))/0x1*(parseInt(_0x4f7a22(0x96))/0x2)+parseInt(_0x4f7a22(0x92))/0x3*(-parseInt(_0x4f7a22(0x90))/0x4)+parseInt(_0x4f7a22(0x8a))/0x5+-parseInt(_0x4f7a22(0x99))/0x6*(parseInt(_0x4f7a22(0x8b))/0x7)+parseInt(_0x4f7a22(0x8f))/0x8+-parseInt(_0x4f7a22(0x8d))/0x9*(parseInt(_0x4f7a22(0x87))/0xa)+-parseInt(_0x4f7a22(0x91))/0xb;if(_0x1701a2===_0x5936a2)break;else _0x4f8d84['push'](_0x4f8d84['shift']());}catch(_0x3b288d){_0x4f8d84['push'](_0x4f8d84['shift']());}}}(a0_0x5d4b,0x4c7e2));function a0_0x431b(_0x26cc31,_0x459452){var _0x5d4b5c=a0_0x5d4b();return a0_0x431b=function(_0x431b02,_0x371b12){_0x431b02=_0x431b02-0x84;var _0x2a42d9=_0x5d4b5c[_0x431b02];return _0x2a42d9;},a0_0x431b(_0x26cc31,_0x459452);}Object['defineProperty'](exports,a0_0x905860(0x94),{'value':!![]}),exports[a0_0x905860(0x95)]=_0x5eb4ca=>{var _0x1c222b=a0_0x905860;return{'apitest':!![],'keys':_0x5eb4ca[_0x1c222b(0x97)],'anncicapi':{'timeout':0x1388,'password':_0x1c222b(0x84),'devices':{'DEFAULT':{'secret':_0x1c222b(0x86),'checkcode':_0x1c222b(0x86)}}},'bodyParser':{'enableTypes':[_0x1c222b(0x88),_0x1c222b(0x8c),'text',_0x1c222b(0x89)],'formLimit':_0x1c222b(0x85),'jsonLimit':_0x1c222b(0x85),'textLimit':'20mb','xmlLimit':_0x1c222b(0x85)},'upload':{'tmpdir':_0x5eb4ca[_0x1c222b(0x8e)]+_0x1c222b(0x98),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x5d3d98=a1_0x2bcc;(function(_0x4da649,_0x983790){var _0x4cf558=a1_0x2bcc,_0x2db416=_0x4da649();while(!![]){try{var _0x102c0f=-parseInt(_0x4cf558(0x13e))/0x1+parseInt(_0x4cf558(0x146))/0x2+-parseInt(_0x4cf558(0x147))/0x3*(parseInt(_0x4cf558(0x144))/0x4)+-parseInt(_0x4cf558(0x141))/0x5*(parseInt(_0x4cf558(0x13d))/0x6)+-parseInt(_0x4cf558(0x13b))/0x7*(-parseInt(_0x4cf558(0x13f))/0x8)+-parseInt(_0x4cf558(0x143))/0x9*(-parseInt(_0x4cf558(0x140))/0xa)+-parseInt(_0x4cf558(0x13c))/0xb;if(_0x102c0f===_0x983790)break;else _0x2db416['push'](_0x2db416['shift']());}catch(_0x514a5f){_0x2db416['push'](_0x2db416['shift']());}}}(a1_0xf721,0xed91e));function a1_0x2bcc(_0x22b1c4,_0x2165cd){var _0xf72172=a1_0xf721();return a1_0x2bcc=function(_0x2bcc6f,_0x2bfbf0){_0x2bcc6f=_0x2bcc6f-0x13b;var _0x34291a=_0xf72172[_0x2bcc6f];return _0x34291a;},a1_0x2bcc(_0x22b1c4,_0x2165cd);}function a1_0xf721(){var _0x32d4cc=['51sEhATd','707fuqZfi','896698wdHSvS','450VtlLTb','19675AmMYBz','79696TzrdbA','469770Ketupi','78095ECesvS','defineProperty','324rGqDAH','440884NSjzpZ','__esModule','2844254xYsJxg'];a1_0xf721=function(){return _0x32d4cc;};return a1_0xf721();}Object[a1_0x5d3d98(0x142)](exports,a1_0x5d3d98(0x145),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x4fe3=a2_0x2e4c;(function(_0x484532,_0x19b6d4){const _0x6ccac9=a2_0x2e4c,_0x3f7751=_0x484532();while(!![]){try{const _0x3df423=-parseInt(_0x6ccac9(0x101))/0x1*(-parseInt(_0x6ccac9(0x14d))/0x2)+parseInt(_0x6ccac9(0xea))/0x3+parseInt(_0x6ccac9(0x127))/0x4*(-parseInt(_0x6ccac9(0x114))/0x5)+parseInt(_0x6ccac9(0x104))/0x6+-parseInt(_0x6ccac9(0x10a))/0x7*(parseInt(_0x6ccac9(0x13b))/0x8)+parseInt(_0x6ccac9(0x105))/0x9*(-parseInt(_0x6ccac9(0xdf))/0xa)+parseInt(_0x6ccac9(0x13f))/0xb;if(_0x3df423===_0x19b6d4)break;else _0x3f7751['push'](_0x3f7751['shift']());}catch(_0x2400e7){_0x3f7751['push'](_0x3f7751['shift']());}}}(a2_0x4a76,0x9cbdb));var __decorate=this&&this[a2_0x4fe3(0xf1)]||function(_0x2d2092,_0xc9d543,_0x4d9227,_0x5c5c7f){const _0x2407df=a2_0x4fe3;var _0x5e0b8f=arguments[_0x2407df(0x11b)],_0x126b2d=_0x5e0b8f<0x3?_0xc9d543:_0x5c5c7f===null?_0x5c5c7f=Object[_0x2407df(0x103)](_0xc9d543,_0x4d9227):_0x5c5c7f,_0x2d111c;if(typeof Reflect===_0x2407df(0x126)&&typeof Reflect[_0x2407df(0x138)]===_0x2407df(0x132))_0x126b2d=Reflect[_0x2407df(0x138)](_0x2d2092,_0xc9d543,_0x4d9227,_0x5c5c7f);else{for(var _0x23671f=_0x2d2092[_0x2407df(0x11b)]-0x1;_0x23671f>=0x0;_0x23671f--)if(_0x2d111c=_0x2d2092[_0x23671f])_0x126b2d=(_0x5e0b8f<0x3?_0x2d111c(_0x126b2d):_0x5e0b8f>0x3?_0x2d111c(_0xc9d543,_0x4d9227,_0x126b2d):_0x2d111c(_0xc9d543,_0x4d9227))||_0x126b2d;}return _0x5e0b8f>0x3&&_0x126b2d&&Object[_0x2407df(0x14f)](_0xc9d543,_0x4d9227,_0x126b2d),_0x126b2d;},__metadata=this&&this[a2_0x4fe3(0xf0)]||function(_0x1b2a5b,_0x5452c1){const _0x30b7b6=a2_0x4fe3;if(typeof Reflect==='object'&&typeof Reflect[_0x30b7b6(0xf3)]===_0x30b7b6(0x132))return Reflect['metadata'](_0x1b2a5b,_0x5452c1);};function a2_0x4a76(){const _0x1d1228=['koa','defaultsDeep','dirs','string','Types','handler','getApplications','@anncic-api/event','devices','upload','isNull','@midwayjs/cross-domain','/apps','68VuSbxB','design:type','defineProperty','requestContext','config','10tUnEUg','getBaseDir','request','isDevelopmentEnvironment','hanlderApplications','getConfiguration','-log','./config/config.default','body','REQUEST_OBJ_CTX_KEY','@midwayjs/core','2591889tGhGoa','MidwayConfigService','_matchedRoute','apimit','__esModule','anncic-apihelper','__metadata','__decorate','filterConfig','metadata','default','prototype','getAppDir','/runtime','handlerActionRoute','args','@anncic-api/cache','@anncic-api/typeorm','input','get','Configuration','headers','@anncic-api/validator','28343hoWmiJ','checkConfigKeys','getOwnPropertyDescriptor','4350816UDLkEV','9891423uzqHOP','key','defineProperties','query','MidwayDecoratorService','2482179kTIocw','device','registerMethodHandler','app','/runtime/apps-','CustomConfiguration','HEADERS_SIGNATURE','mkdirSync','clients','loggerConfig','25XpXvCq','proceed','@anncic-api/core','keys','toLowerCase','ApiService','onReady','length','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','tmpdir','target','@midwayjs/koa','midwayLogger','decorator','isArray','method','./config/config.production','DEFAULT','object','1004100BGHPnz','existsSync','anncic-api','getAsync','Inject','dir','assign','environment','forEach','MidwayEnvironmentService','App','function','statSync','MidwayApplicationManager','context','application','anncicapi','decorate','isFunction','intercept','8jAJeCz','./exception/ApiError','staticFile','.log','8778209ulfsDd'];a2_0x4a76=function(){return _0x1d1228;};return a2_0x4a76();}Object['defineProperty'](exports,a2_0x4fe3(0xee),{'value':!![]}),exports[a2_0x4fe3(0x10f)]=void 0x0;const core_1=require(a2_0x4fe3(0xe9)),core_2=require(a2_0x4fe3(0xe9)),ApiError_1=require(a2_0x4fe3(0x13c)),ApiService_1=require('./service/ApiService'),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x4fe3(0x11f)),i18n=require('@midwayjs/i18n'),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4fe3(0x14b)),ConfigDefault=require(a2_0x4fe3(0xe6)),ConfigProduction=require(a2_0x4fe3(0x124)),anncic=require(a2_0x4fe3(0x116)),anncicCache=require(a2_0x4fe3(0xfa)),anncicEvent=require(a2_0x4fe3(0x147)),anncicTypeorm=require(a2_0x4fe3(0xfb)),anncicValidator=require(a2_0x4fe3(0x100)),anncicHelper=require(a2_0x4fe3(0xef));function a2_0x2e4c(_0x1e4784,_0x16b0b1){const _0x4a76bf=a2_0x4a76();return a2_0x2e4c=function(_0x2e4c08,_0x382c97){_0x2e4c08=_0x2e4c08-0xdd;let _0x372c37=_0x4a76bf[_0x2e4c08];return _0x372c37;},a2_0x2e4c(_0x1e4784,_0x16b0b1);}let CustomConfiguration=class CustomConfiguration{async[a2_0x4fe3(0x11a)](){const _0x101b6a=a2_0x4fe3;await this[_0x101b6a(0xf2)](),await this['loggerConfig'](),await this[_0x101b6a(0x102)](),await this[_0x101b6a(0xf8)](),await this[_0x101b6a(0xe3)]();}async[a2_0x4fe3(0x102)](){}async[a2_0x4fe3(0xf8)](){const _0xf96d2d=a2_0x4fe3,_0x3b2ca6=this[_0xf96d2d(0xde)][_0xf96d2d(0xe4)]();this[_0xf96d2d(0x121)][_0xf96d2d(0x10c)](action_1['ACTION_ROUTE_KEY'],_0x29db94=>{const _0x276b39=_0xf96d2d,_0x80020c=_0x29db94[_0x276b39(0xf3)];return{'before':async _0x32ecf6=>{const _0x31785e=_0x276b39;var _0x390c20,_0x1cb972;const _0x1b4a64=(_0x390c20=_0x32ecf6===null||_0x32ecf6===void 0x0?void 0x0:_0x32ecf6[_0x31785e(0x11e)])===null||_0x390c20===void 0x0?void 0x0:_0x390c20[core_2[_0x31785e(0xe8)]];if(_0x1b4a64&&(_0x80020c===null||_0x80020c===void 0x0?void 0x0:_0x80020c[_0x31785e(0xed)])){if(!this[_0x31785e(0x119)]['checksign']((_0x1cb972=_0x1b4a64===null||_0x1b4a64===void 0x0?void 0x0:_0x1b4a64[_0x31785e(0xe1)])===null||_0x1cb972===void 0x0?void 0x0:_0x1cb972[_0x31785e(0xff)]))throw new AnnError(ApiError_1['ApiError'][_0x31785e(0x110)]);}},'around':async _0x421559=>{const _0xb0449f=_0x276b39;var _0x2ea911,_0x5a403e,_0x2f75ce,_0x4115fc,_0x575685;const _0x860365=(_0x2ea911=_0x421559===null||_0x421559===void 0x0?void 0x0:_0x421559[_0xb0449f(0x11e)])===null||_0x2ea911===void 0x0?void 0x0:_0x2ea911[core_2[_0xb0449f(0xe8)]];if(_0x860365&&(_0x80020c===null||_0x80020c===void 0x0?void 0x0:_0x80020c[_0xb0449f(0xed)])){if(((_0x5a403e=_0x860365[_0xb0449f(0xff)])===null||_0x5a403e===void 0x0?void 0x0:_0x5a403e[_0xb0449f(0x10b)])&&((_0x575685=(_0x4115fc=(_0x2f75ce=_0x3b2ca6===null||_0x3b2ca6===void 0x0?void 0x0:_0x3b2ca6[_0xb0449f(0x137)])===null||_0x2f75ce===void 0x0?void 0x0:_0x2f75ce[_0xb0449f(0x148)])===null||_0x4115fc===void 0x0?void 0x0:_0x4115fc[_0x860365[_0xb0449f(0xff)][_0xb0449f(0x10b)]])===null||_0x575685===void 0x0?void 0x0:_0x575685[_0xb0449f(0x13a)])){const _0x3598eb=Array[_0xb0449f(0x122)](_0x3b2ca6[_0xb0449f(0x137)]['devices'][_0x860365['headers'][_0xb0449f(0x10b)]][_0xb0449f(0x13a)])?_0x3b2ca6[_0xb0449f(0x137)][_0xb0449f(0x148)][_0x860365['headers']['device']][_0xb0449f(0x13a)]:[_0x3b2ca6[_0xb0449f(0x137)][_0xb0449f(0x148)][_0x860365[_0xb0449f(0xff)]['device']][_0xb0449f(0x13a)]];for(const _0x57cac6 of _0x3598eb){if(core_1[_0xb0449f(0x144)]['isClass'](_0x57cac6)||typeof _0x57cac6==_0xb0449f(0x143)){const _0x2229df=await _0x860365[_0xb0449f(0xdd)][_0xb0449f(0x12a)](_0x57cac6);typeof(_0x2229df===null||_0x2229df===void 0x0?void 0x0:_0x2229df['handler'])==_0xb0449f(0x132)&&await _0x2229df[_0xb0449f(0x145)](typeof(_0x860365===null||_0x860365===void 0x0?void 0x0:_0x860365['method'])=='string'&&(_0x860365===null||_0x860365===void 0x0?void 0x0:_0x860365[_0xb0449f(0xec)])?_0x860365[_0xb0449f(0x123)][_0xb0449f(0x118)]()+'@'+(_0x860365===null||_0x860365===void 0x0?void 0x0:_0x860365[_0xb0449f(0xec)]):undefined,_0x860365,_0x80020c);}else core_1['Types'][_0xb0449f(0x139)](_0x57cac6)&&await _0x57cac6(typeof(_0x860365===null||_0x860365===void 0x0?void 0x0:_0x860365[_0xb0449f(0x123)])==_0xb0449f(0x143)&&(_0x860365===null||_0x860365===void 0x0?void 0x0:_0x860365['_matchedRoute'])?_0x860365[_0xb0449f(0x123)]['toLowerCase']()+'@'+(_0x860365===null||_0x860365===void 0x0?void 0x0:_0x860365['_matchedRoute']):undefined,_0x860365,_0x80020c);}}}return await _0x421559[_0xb0449f(0x115)](..._0x421559[_0xb0449f(0xf9)]);},'afterThrow':(_0x2ef80f,_0x557a14)=>{throw _0x557a14;}};});}async['hanlderApplications'](){const _0x5c2f4a=a2_0x4fe3;this[_0x5c2f4a(0x136)][_0x5c2f4a(0x146)]([_0x5c2f4a(0x140)])[_0x5c2f4a(0x12f)](_0xd3dede=>{const _0x21e829=_0x5c2f4a;(_0xd3dede===null||_0xd3dede===void 0x0?void 0x0:_0xd3dede[_0x21e829(0x135)])&&Object[_0x21e829(0x107)](_0xd3dede[_0x21e829(0x135)],{'ok':{'value':function(_0x1f131d,_0x326d38,_0x12e65f=0x0){return{'code':_0x12e65f,'data':_0x1f131d,'extra':_0x326d38};}},'input':{'value':function(_0x26e530,_0x4433b3){const _0x356b5f=_0x21e829;var _0x5c499f;const _0x2c117b=lodash[_0x356b5f(0x141)]({},this['request']['body']||this[_0x356b5f(0xe1)][((_0x5c499f=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x5c499f===void 0x0?void 0x0:_0x5c499f[_0x356b5f(0x106)])||_0x356b5f(0xe7)]||{},this[_0x356b5f(0xe1)][_0x356b5f(0x108)]||{});return _0x26e530?lodash[_0x356b5f(0xfd)](_0x2c117b,_0x26e530,_0x4433b3):_0x2c117b;}},'when':{'value':async function(_0x4fc70c,_0x43d7d4){const _0x1b1c22=_0x21e829,_0x3a3000=this[_0x1b1c22(0xfc)](_0x4fc70c,null);if(!lodash[_0x1b1c22(0x14a)](_0x3a3000))return await _0x43d7d4(_0x3a3000);}},'only':{'value':function(_0x5a028c){const _0x11aa3f=_0x21e829,_0x3a27d4={};for(let _0x2f912d=0x0;_0x2f912d<_0x5a028c[_0x11aa3f(0x11b)];_0x2f912d++){lodash[_0x11aa3f(0x122)](_0x5a028c[_0x2f912d])&&_0x5a028c[_0x2f912d][_0x11aa3f(0x11b)]>0x0&&lodash['isString'](_0x5a028c[_0x2f912d][0x0])&&(_0x3a27d4[_0x5a028c[_0x2f912d][0x0]]=this['input'](_0x5a028c[_0x2f912d][0x0],_0x5a028c[_0x2f912d][_0x11aa3f(0x11b)]>0x1?_0x5a028c[_0x2f912d][0x1]:null));}return _0x3a27d4;}}});});}async[a2_0x4fe3(0x113)](){const _0x438486=a2_0x4fe3;var _0xbff517,_0x28a7da;if(fs[_0x438486(0x128)](this['app']['getBaseDir']()+'/apps')&&fs[_0x438486(0x133)](this[_0x438486(0x10d)]['getBaseDir']()+'/apps')['isDirectory']()){const _0x557c0d=this[_0x438486(0xde)]['getConfiguration'](),_0x67674a=((_0xbff517=_0x557c0d===null||_0x557c0d===void 0x0?void 0x0:_0x557c0d['midwayLogger'])===null||_0xbff517===void 0x0?void 0x0:_0xbff517[_0x438486(0x112)])||{};for(const _0xfde586 of fs['readdirSync'](this['app'][_0x438486(0xe0)]()+_0x438486(0x14c))){if(!fs['statSync'](this['app'][_0x438486(0xe0)]()+'/apps/'+_0xfde586)['isDirectory']())continue;if(_0x67674a===null||_0x67674a===void 0x0?void 0x0:_0x67674a[_0xfde586])continue;_0x67674a[_0xfde586]=Object[_0x438486(0x12d)]({},((_0x28a7da=_0x557c0d===null||_0x557c0d===void 0x0?void 0x0:_0x557c0d['midwayLogger'])===null||_0x28a7da===void 0x0?void 0x0:_0x28a7da[_0x438486(0xf4)])||{'maxSize':'1m','dir':this[_0x438486(0x10d)][_0x438486(0xf6)]()+_0x438486(0xf7)},{'enableJSON':!![],'enableConsole':this[_0x438486(0x12e)][_0x438486(0xe2)](),'fileLogName':_0xfde586+_0x438486(0x13e),'dir':this[_0x438486(0x10d)]['getAppDir']()+_0x438486(0x10e)+_0xfde586+_0x438486(0xe5)});}Object[_0x438486(0x117)](_0x67674a)[_0x438486(0x11b)]>0x0&&(!_0x557c0d[_0x438486(0x120)]&&(_0x557c0d[_0x438486(0x120)]={'default':{'maxSize':'1m','dir':this[_0x438486(0x10d)][_0x438486(0xf6)]()+'/runtime'}}),_0x557c0d[_0x438486(0x120)][_0x438486(0x112)]=_0x67674a),this['config']['addObject'](_0x557c0d);}}async[a2_0x4fe3(0xf2)](){const _0x377b78=a2_0x4fe3;var _0x1f0043,_0x281a9a,_0xd2aa41,_0x4fd7c7,_0x273c8a,_0x57eee7;const _0x3c6fad=this['config'][_0x377b78(0xe4)]();((_0x281a9a=(_0x1f0043=_0x3c6fad===null||_0x3c6fad===void 0x0?void 0x0:_0x3c6fad[_0x377b78(0x137)])===null||_0x1f0043===void 0x0?void 0x0:_0x1f0043['devices'])===null||_0x281a9a===void 0x0?void 0x0:_0x281a9a[_0x377b78(0x125)])&&Object[_0x377b78(0x117)](_0x3c6fad[_0x377b78(0x137)][_0x377b78(0x148)])[_0x377b78(0x11b)]>0x1&&delete _0x3c6fad[_0x377b78(0x137)]['devices'][_0x377b78(0x125)];if((_0xd2aa41=_0x3c6fad===null||_0x3c6fad===void 0x0?void 0x0:_0x3c6fad[_0x377b78(0x13d)])===null||_0xd2aa41===void 0x0?void 0x0:_0xd2aa41[_0x377b78(0x142)])for(const _0x32cb9a in _0x3c6fad[_0x377b78(0x13d)]['dirs']){((_0x4fd7c7=_0x3c6fad[_0x377b78(0x13d)][_0x377b78(0x142)][_0x32cb9a])===null||_0x4fd7c7===void 0x0?void 0x0:_0x4fd7c7[_0x377b78(0x12c)])&&typeof((_0x273c8a=_0x3c6fad[_0x377b78(0x13d)][_0x377b78(0x142)][_0x32cb9a])===null||_0x273c8a===void 0x0?void 0x0:_0x273c8a[_0x377b78(0x12c)])==_0x377b78(0x143)&&!fs['existsSync'](_0x3c6fad[_0x377b78(0x13d)][_0x377b78(0x142)][_0x32cb9a][_0x377b78(0x12c)])&&(fs[_0x377b78(0x111)](_0x3c6fad['staticFile'][_0x377b78(0x142)][_0x32cb9a][_0x377b78(0x12c)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x3c6fad[_0x377b78(0x13d)][_0x377b78(0x142)][_0x32cb9a][_0x377b78(0x12c)]));}((_0x57eee7=_0x3c6fad===null||_0x3c6fad===void 0x0?void 0x0:_0x3c6fad[_0x377b78(0x149)])===null||_0x57eee7===void 0x0?void 0x0:_0x57eee7[_0x377b78(0x11d)])&&!fs[_0x377b78(0x128)](_0x3c6fad[_0x377b78(0x149)][_0x377b78(0x11d)])&&(fs[_0x377b78(0x111)](_0x3c6fad['upload'][_0x377b78(0x11d)],{'recursive':!![]}),console['log'](_0x377b78(0x11c)+_0x3c6fad[_0x377b78(0x149)][_0x377b78(0x11d)])),this['config']['addObject'](_0x3c6fad);}};__decorate([(0x0,core_1[a2_0x4fe3(0x131)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x4fe3(0xf5)],'app',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4fe3(0x14e),core_2[a2_0x4fe3(0xeb)])],CustomConfiguration['prototype'],a2_0x4fe3(0xde),void 0x0),__decorate([(0x0,core_1[a2_0x4fe3(0x12b)])(),__metadata(a2_0x4fe3(0x14e),core_2[a2_0x4fe3(0x109)])],CustomConfiguration[a2_0x4fe3(0xf5)],a2_0x4fe3(0x121),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4fe3(0x14e),core_2[a2_0x4fe3(0x134)])],CustomConfiguration[a2_0x4fe3(0xf5)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x4fe3(0x12b)])(),__metadata(a2_0x4fe3(0x14e),core_2[a2_0x4fe3(0x130)])],CustomConfiguration[a2_0x4fe3(0xf5)],a2_0x4fe3(0x12e),void 0x0),__decorate([(0x0,core_1[a2_0x4fe3(0x12b)])(),__metadata(a2_0x4fe3(0x14e),ApiService_1[a2_0x4fe3(0x119)])],CustomConfiguration[a2_0x4fe3(0xf5)],a2_0x4fe3(0x119),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4fe3(0xfe)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4fe3(0x129),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4fe3(0x10f)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x4194ef=a2_0x139d;function a2_0x139d(_0x6dcfa4,_0x523afb){const _0x1095bb=a2_0x1095();return a2_0x139d=function(_0x139dbb,_0x120e06){_0x139dbb=_0x139dbb-0x18b;let _0x34c1d7=_0x1095bb[_0x139dbb];return _0x34c1d7;},a2_0x139d(_0x6dcfa4,_0x523afb);}(function(_0x3ea198,_0x2c15fb){const _0x4e5ceb=a2_0x139d,_0x455d55=_0x3ea198();while(!![]){try{const _0x248bfc=parseInt(_0x4e5ceb(0x1d0))/0x1*(parseInt(_0x4e5ceb(0x1a2))/0x2)+parseInt(_0x4e5ceb(0x193))/0x3+-parseInt(_0x4e5ceb(0x1ef))/0x4*(-parseInt(_0x4e5ceb(0x1fa))/0x5)+parseInt(_0x4e5ceb(0x1ee))/0x6*(parseInt(_0x4e5ceb(0x1dd))/0x7)+-parseInt(_0x4e5ceb(0x1e6))/0x8*(-parseInt(_0x4e5ceb(0x1c5))/0x9)+-parseInt(_0x4e5ceb(0x1b0))/0xa*(-parseInt(_0x4e5ceb(0x1f7))/0xb)+-parseInt(_0x4e5ceb(0x1c4))/0xc;if(_0x248bfc===_0x2c15fb)break;else _0x455d55['push'](_0x455d55['shift']());}catch(_0x15d824){_0x455d55['push'](_0x455d55['shift']());}}}(a2_0x1095,0xb8440));var __decorate=this&&this['__decorate']||function(_0xeadc16,_0x4ed9f1,_0x56659e,_0x31964c){const _0x544476=a2_0x139d;var _0x5b030e=arguments[_0x544476(0x1b7)],_0x2dcde3=_0x5b030e<0x3?_0x4ed9f1:_0x31964c===null?_0x31964c=Object[_0x544476(0x1b6)](_0x4ed9f1,_0x56659e):_0x31964c,_0x2895b3;if(typeof Reflect===_0x544476(0x1c3)&&typeof Reflect['decorate']===_0x544476(0x1f2))_0x2dcde3=Reflect[_0x544476(0x1d3)](_0xeadc16,_0x4ed9f1,_0x56659e,_0x31964c);else{for(var _0x110aac=_0xeadc16[_0x544476(0x1b7)]-0x1;_0x110aac>=0x0;_0x110aac--)if(_0x2895b3=_0xeadc16[_0x110aac])_0x2dcde3=(_0x5b030e<0x3?_0x2895b3(_0x2dcde3):_0x5b030e>0x3?_0x2895b3(_0x4ed9f1,_0x56659e,_0x2dcde3):_0x2895b3(_0x4ed9f1,_0x56659e))||_0x2dcde3;}return _0x5b030e>0x3&&_0x2dcde3&&Object[_0x544476(0x190)](_0x4ed9f1,_0x56659e,_0x2dcde3),_0x2dcde3;},__metadata=this&&this[a2_0x4194ef(0x1ea)]||function(_0x5427ea,_0xafface){const _0x553d46=a2_0x4194ef;if(typeof Reflect===_0x553d46(0x1c3)&&typeof Reflect[_0x553d46(0x1be)]===_0x553d46(0x1f2))return Reflect['metadata'](_0x5427ea,_0xafface);};function a2_0x1095(){const _0x7bf11e=['decorate','./config/config.default','assign','getBaseDir','context','mkdirSync','getAppDir','/runtime','intercept','method','5268291cDodxN','MidwayApplicationManager','keys','args','environment','./exception/ApiError','handlerActionRoute','target','bodyXml','385648CMvhrM','/apps','App','headers','__metadata','anncic-api','isString','input','6JMrnut','44ULBngJ','device','.log','function','tmpdir','onReady','design:type','handler','396JHtJLX','isNull','devices','410815VYJHbN','anncicapi','loggerConfig','@anncic-api/typeorm','midwayLogger','key','Configuration','_matchedRoute','log','defineProperty','staticFile','/runtime/apps-','3882216gjxYVt','isArray','@anncic-api/core','CustomConfiguration','MidwayDecoratorService','request','app','toLowerCase','addObject','./types/action','getAsync','filterConfig','upload','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','checksign','3482MDFRNv','defaultsDeep','ApiError','@anncic-api/validator','hanlderApplications','/apps/','@midwayjs/cross-domain','defineProperties','string','dirs','body','@anncic-api/event','isFunction','decorator','107710FpljOD','-log','@midwayjs/upload','@anncic-api/cache','dir','config','getOwnPropertyDescriptor','length','DEFAULT','proceed','apimit','checkConfigKeys','@midwayjs/static-file','isDirectory','metadata','forEach','@midwayjs/koa','application','clients','object','51501372PzugOt','225jicomi','anncic-apihelper','prototype','REQUEST_OBJ_CTX_KEY','ApiService','@midwayjs/core','Anncic-api\x20static-file\x20:\x20mkdir\x20','isDevelopmentEnvironment','Types','existsSync','Inject','289lOTQuO','getConfiguration','statSync'];a2_0x1095=function(){return _0x7bf11e;};return a2_0x1095();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4194ef(0x196)]=void 0x0;const core_1=require(a2_0x4194ef(0x1ca)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4194ef(0x1e2)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x4194ef(0x19c)),fs=require('fs'),koa=require(a2_0x4194ef(0x1c0)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x4194ef(0x1b2)),staticFile=require(a2_0x4194ef(0x1bc)),crossDomain=require(a2_0x4194ef(0x1a8)),ConfigDefault=require(a2_0x4194ef(0x1d4)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x4194ef(0x195)),anncicCache=require(a2_0x4194ef(0x1b3)),anncicEvent=require(a2_0x4194ef(0x1ad)),anncicTypeorm=require(a2_0x4194ef(0x1fd)),anncicValidator=require(a2_0x4194ef(0x1a5)),anncicHelper=require(a2_0x4194ef(0x1c6));let CustomConfiguration=class CustomConfiguration{async[a2_0x4194ef(0x1f4)](){const _0x1cfb91=a2_0x4194ef;await this[_0x1cfb91(0x19e)](),await this[_0x1cfb91(0x1fc)](),await this[_0x1cfb91(0x1bb)](),await this[_0x1cfb91(0x1e3)](),await this[_0x1cfb91(0x1a6)]();}async['checkConfigKeys'](){}async[a2_0x4194ef(0x1e3)](){const _0x23953b=a2_0x4194ef,_0x31cd14=this['config']['getConfiguration']();this[_0x23953b(0x1af)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x240218=>{const _0x13d7bd=_0x23953b,_0x315bef=_0x240218[_0x13d7bd(0x1be)];return{'before':async _0x275aac=>{const _0x58bf43=_0x13d7bd;var _0x517e9a,_0x436f00;const _0x1f2fc3=(_0x517e9a=_0x275aac===null||_0x275aac===void 0x0?void 0x0:_0x275aac[_0x58bf43(0x1e4)])===null||_0x517e9a===void 0x0?void 0x0:_0x517e9a[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1f2fc3&&(_0x315bef===null||_0x315bef===void 0x0?void 0x0:_0x315bef['apimit'])){if(!this[_0x58bf43(0x1c9)][_0x58bf43(0x1a1)]((_0x436f00=_0x1f2fc3===null||_0x1f2fc3===void 0x0?void 0x0:_0x1f2fc3[_0x58bf43(0x198)])===null||_0x436f00===void 0x0?void 0x0:_0x436f00[_0x58bf43(0x1e9)]))throw new AnnError(ApiError_1[_0x58bf43(0x1a4)]['HEADERS_SIGNATURE']);}},'around':async _0x1e4af6=>{const _0xb217b4=_0x13d7bd;var _0x10b66c,_0x3e78aa,_0x12c973,_0x5cc52c,_0x2fa2cb;const _0x25be80=(_0x10b66c=_0x1e4af6===null||_0x1e4af6===void 0x0?void 0x0:_0x1e4af6[_0xb217b4(0x1e4)])===null||_0x10b66c===void 0x0?void 0x0:_0x10b66c[core_2[_0xb217b4(0x1c8)]];if(_0x25be80&&(_0x315bef===null||_0x315bef===void 0x0?void 0x0:_0x315bef[_0xb217b4(0x1ba)])){if(((_0x3e78aa=_0x25be80['headers'])===null||_0x3e78aa===void 0x0?void 0x0:_0x3e78aa[_0xb217b4(0x1f0)])&&((_0x2fa2cb=(_0x5cc52c=(_0x12c973=_0x31cd14===null||_0x31cd14===void 0x0?void 0x0:_0x31cd14[_0xb217b4(0x1fb)])===null||_0x12c973===void 0x0?void 0x0:_0x12c973['devices'])===null||_0x5cc52c===void 0x0?void 0x0:_0x5cc52c[_0x25be80[_0xb217b4(0x1e9)][_0xb217b4(0x1f0)]])===null||_0x2fa2cb===void 0x0?void 0x0:_0x2fa2cb['intercept'])){const _0x10c8a6=Array[_0xb217b4(0x194)](_0x31cd14[_0xb217b4(0x1fb)][_0xb217b4(0x1f9)][_0x25be80['headers']['device']]['intercept'])?_0x31cd14[_0xb217b4(0x1fb)]['devices'][_0x25be80[_0xb217b4(0x1e9)]['device']]['intercept']:[_0x31cd14[_0xb217b4(0x1fb)][_0xb217b4(0x1f9)][_0x25be80[_0xb217b4(0x1e9)][_0xb217b4(0x1f0)]][_0xb217b4(0x1db)]];for(const _0x1fdc05 of _0x10c8a6){if(core_1[_0xb217b4(0x1cd)]['isClass'](_0x1fdc05)||typeof _0x1fdc05==_0xb217b4(0x1aa)){const _0x929c0=await _0x25be80['requestContext'][_0xb217b4(0x19d)](_0x1fdc05);typeof(_0x929c0===null||_0x929c0===void 0x0?void 0x0:_0x929c0[_0xb217b4(0x1f6)])=='function'&&await _0x929c0[_0xb217b4(0x1f6)](typeof(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x1dc)])==_0xb217b4(0x1aa)&&(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)])?_0x25be80['method'][_0xb217b4(0x19a)]()+'@'+(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)]):undefined,_0x25be80,_0x315bef);}else core_1[_0xb217b4(0x1cd)][_0xb217b4(0x1ae)](_0x1fdc05)&&await _0x1fdc05(typeof(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x1dc)])=='string'&&(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)])?_0x25be80[_0xb217b4(0x1dc)][_0xb217b4(0x19a)]()+'@'+(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)]):undefined,_0x25be80,_0x315bef);}}}return await _0x1e4af6[_0xb217b4(0x1b9)](..._0x1e4af6[_0xb217b4(0x1e0)]);},'afterThrow':(_0x2a9f99,_0x58c514)=>{throw _0x58c514;}};});}async[a2_0x4194ef(0x1a6)](){const _0x346032=a2_0x4194ef;this[_0x346032(0x1c1)]['getApplications'](['koa'])[_0x346032(0x1bf)](_0x328ae8=>{const _0x19bdf=_0x346032;(_0x328ae8===null||_0x328ae8===void 0x0?void 0x0:_0x328ae8[_0x19bdf(0x1d7)])&&Object[_0x19bdf(0x1a9)](_0x328ae8[_0x19bdf(0x1d7)],{'ok':{'value':function(_0x14d091,_0x2f2c55,_0x47664b=0x0){return{'code':_0x47664b,'data':_0x14d091,'extra':_0x2f2c55};}},'input':{'value':function(_0x53a19a,_0x5d8243){const _0x5e1bd7=_0x19bdf;var _0x2295db;const _0xc7c8d4=lodash[_0x5e1bd7(0x1a3)]({},this[_0x5e1bd7(0x198)]['body']||this[_0x5e1bd7(0x198)][((_0x2295db=config===null||config===void 0x0?void 0x0:config[_0x5e1bd7(0x1e5)])===null||_0x2295db===void 0x0?void 0x0:_0x2295db[_0x5e1bd7(0x18c)])||_0x5e1bd7(0x1ac)]||{},this[_0x5e1bd7(0x198)]['query']||{});return _0x53a19a?lodash['get'](_0xc7c8d4,_0x53a19a,_0x5d8243):_0xc7c8d4;}},'when':{'value':async function(_0x2fb109,_0x418b83){const _0x3ba990=_0x19bdf,_0x18a30f=this[_0x3ba990(0x1ed)](_0x2fb109,null);if(!lodash[_0x3ba990(0x1f8)](_0x18a30f))return await _0x418b83(_0x18a30f);}},'only':{'value':function(_0x2a4496){const _0x871f64=_0x19bdf,_0x3b0f20={};for(let _0x85d39f=0x0;_0x85d39f<_0x2a4496['length'];_0x85d39f++){lodash[_0x871f64(0x194)](_0x2a4496[_0x85d39f])&&_0x2a4496[_0x85d39f]['length']>0x0&&lodash[_0x871f64(0x1ec)](_0x2a4496[_0x85d39f][0x0])&&(_0x3b0f20[_0x2a4496[_0x85d39f][0x0]]=this[_0x871f64(0x1ed)](_0x2a4496[_0x85d39f][0x0],_0x2a4496[_0x85d39f][_0x871f64(0x1b7)]>0x1?_0x2a4496[_0x85d39f][0x1]:null));}return _0x3b0f20;}}});});}async['loggerConfig'](){const _0x32aa20=a2_0x4194ef;var _0x54adf0,_0x1a91ab;if(fs[_0x32aa20(0x1ce)](this[_0x32aa20(0x199)][_0x32aa20(0x1d6)]()+_0x32aa20(0x1e7))&&fs['statSync'](this['app'][_0x32aa20(0x1d6)]()+_0x32aa20(0x1e7))[_0x32aa20(0x1bd)]()){const _0x5b007d=this[_0x32aa20(0x1b5)][_0x32aa20(0x1d1)](),_0x39351b=((_0x54adf0=_0x5b007d===null||_0x5b007d===void 0x0?void 0x0:_0x5b007d[_0x32aa20(0x18b)])===null||_0x54adf0===void 0x0?void 0x0:_0x54adf0[_0x32aa20(0x1c2)])||{};for(const _0x512016 of fs['readdirSync'](this[_0x32aa20(0x199)][_0x32aa20(0x1d6)]()+_0x32aa20(0x1e7))){if(!fs[_0x32aa20(0x1d2)](this[_0x32aa20(0x199)]['getBaseDir']()+_0x32aa20(0x1a7)+_0x512016)[_0x32aa20(0x1bd)]())continue;if(_0x39351b===null||_0x39351b===void 0x0?void 0x0:_0x39351b[_0x512016])continue;_0x39351b[_0x512016]=Object[_0x32aa20(0x1d5)]({},((_0x1a91ab=_0x5b007d===null||_0x5b007d===void 0x0?void 0x0:_0x5b007d[_0x32aa20(0x18b)])===null||_0x1a91ab===void 0x0?void 0x0:_0x1a91ab['default'])||{'maxSize':'1m','dir':this[_0x32aa20(0x199)]['getAppDir']()+_0x32aa20(0x1da)},{'enableJSON':!![],'enableConsole':this[_0x32aa20(0x1e1)][_0x32aa20(0x1cc)](),'fileLogName':_0x512016+_0x32aa20(0x1f1),'dir':this[_0x32aa20(0x199)]['getAppDir']()+_0x32aa20(0x192)+_0x512016+_0x32aa20(0x1b1)});}Object['keys'](_0x39351b)[_0x32aa20(0x1b7)]>0x0&&(!_0x5b007d[_0x32aa20(0x18b)]&&(_0x5b007d['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x32aa20(0x199)][_0x32aa20(0x1d9)]()+'/runtime'}}),_0x5b007d['midwayLogger']['clients']=_0x39351b),this[_0x32aa20(0x1b5)][_0x32aa20(0x19b)](_0x5b007d);}}async[a2_0x4194ef(0x19e)](){const _0x1a9af1=a2_0x4194ef;var _0x2b8cc1,_0x1735a9,_0x2e5fdd,_0x52faf7,_0x2c72da,_0x29ad3d;const _0x32314d=this['config'][_0x1a9af1(0x1d1)]();((_0x1735a9=(_0x2b8cc1=_0x32314d===null||_0x32314d===void 0x0?void 0x0:_0x32314d[_0x1a9af1(0x1fb)])===null||_0x2b8cc1===void 0x0?void 0x0:_0x2b8cc1['devices'])===null||_0x1735a9===void 0x0?void 0x0:_0x1735a9[_0x1a9af1(0x1b8)])&&Object[_0x1a9af1(0x1df)](_0x32314d[_0x1a9af1(0x1fb)][_0x1a9af1(0x1f9)])[_0x1a9af1(0x1b7)]>0x1&&delete _0x32314d[_0x1a9af1(0x1fb)][_0x1a9af1(0x1f9)]['DEFAULT'];if((_0x2e5fdd=_0x32314d===null||_0x32314d===void 0x0?void 0x0:_0x32314d[_0x1a9af1(0x191)])===null||_0x2e5fdd===void 0x0?void 0x0:_0x2e5fdd['dirs'])for(const _0x2c74 in _0x32314d['staticFile']['dirs']){((_0x52faf7=_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74])===null||_0x52faf7===void 0x0?void 0x0:_0x52faf7[_0x1a9af1(0x1b4)])&&typeof((_0x2c72da=_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74])===null||_0x2c72da===void 0x0?void 0x0:_0x2c72da[_0x1a9af1(0x1b4)])=='string'&&!fs[_0x1a9af1(0x1ce)](_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74]['dir'])&&(fs[_0x1a9af1(0x1d8)](_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74][_0x1a9af1(0x1b4)],{'recursive':!![]}),console[_0x1a9af1(0x18f)](_0x1a9af1(0x1cb)+_0x32314d['staticFile'][_0x1a9af1(0x1ab)][_0x2c74][_0x1a9af1(0x1b4)]));}((_0x29ad3d=_0x32314d===null||_0x32314d===void 0x0?void 0x0:_0x32314d[_0x1a9af1(0x19f)])===null||_0x29ad3d===void 0x0?void 0x0:_0x29ad3d[_0x1a9af1(0x1f3)])&&!fs[_0x1a9af1(0x1ce)](_0x32314d['upload'][_0x1a9af1(0x1f3)])&&(fs[_0x1a9af1(0x1d8)](_0x32314d['upload'][_0x1a9af1(0x1f3)],{'recursive':!![]}),console[_0x1a9af1(0x18f)](_0x1a9af1(0x1a0)+_0x32314d[_0x1a9af1(0x19f)]['tmpdir'])),this['config'][_0x1a9af1(0x19b)](_0x32314d);}};__decorate([(0x0,core_1[a2_0x4194ef(0x1e8)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x4194ef(0x1c7)],a2_0x4194ef(0x199),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4194ef(0x1f5),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x4194ef(0x1c7)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x4194ef(0x1cf)])(),__metadata(a2_0x4194ef(0x1f5),core_2[a2_0x4194ef(0x197)])],CustomConfiguration[a2_0x4194ef(0x1c7)],a2_0x4194ef(0x1af),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x4194ef(0x1de)])],CustomConfiguration['prototype'],a2_0x4194ef(0x1c1),void 0x0),__decorate([(0x0,core_1[a2_0x4194ef(0x1cf)])(),__metadata(a2_0x4194ef(0x1f5),core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x4194ef(0x1cf)])(),__metadata(a2_0x4194ef(0x1f5),ApiService_1['ApiService'])],CustomConfiguration[a2_0x4194ef(0x1c7)],a2_0x4194ef(0x1c9),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4194ef(0x18d)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4194ef(0x1eb),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x2369(_0x3b1a7b,_0x53a5b7){const _0x2741d3=a3_0x2741();return a3_0x2369=function(_0x2369f8,_0x387d3b){_0x2369f8=_0x2369f8-0x15a;let _0x1d320d=_0x2741d3[_0x2369f8];return _0x1d320d;},a3_0x2369(_0x3b1a7b,_0x53a5b7);}const a3_0x5035ad=a3_0x2369;(function(_0xe606fc,_0x3de62c){const _0x315d98=a3_0x2369,_0x221cb2=_0xe606fc();while(!![]){try{const _0x3aa2d1=-parseInt(_0x315d98(0x191))/0x1*(parseInt(_0x315d98(0x16b))/0x2)+parseInt(_0x315d98(0x17e))/0x3+-parseInt(_0x315d98(0x16f))/0x4*(parseInt(_0x315d98(0x15e))/0x5)+parseInt(_0x315d98(0x164))/0x6*(parseInt(_0x315d98(0x189))/0x7)+-parseInt(_0x315d98(0x185))/0x8*(parseInt(_0x315d98(0x176))/0x9)+-parseInt(_0x315d98(0x167))/0xa*(parseInt(_0x315d98(0x18b))/0xb)+-parseInt(_0x315d98(0x15b))/0xc*(-parseInt(_0x315d98(0x160))/0xd);if(_0x3aa2d1===_0x3de62c)break;else _0x221cb2['push'](_0x221cb2['shift']());}catch(_0x68693){_0x221cb2['push'](_0x221cb2['shift']());}}}(a3_0x2741,0xe01a0));Object[a3_0x5035ad(0x181)](exports,a3_0x5035ad(0x16d),{'value':!![]}),exports['parseRoute']=exports[a3_0x5035ad(0x192)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x5035ad(0x15d)),action_1=require(a3_0x5035ad(0x18a));function Action(_0xed9180,_0xb5f4bb,_0x2e882b={'middleware':[],'sensitive':!![]}){return _0x3ecfdd=>{const _0x52775d=a3_0x2369;var _0x9fa0c6;_0x2e882b[_0x52775d(0x175)]=_0xb5f4bb;const _0xedf352=parseRoute(_0xed9180);if(_0xedf352[_0x52775d(0x17c)]){_0x2e882b[_0x52775d(0x15c)]=_0x2e882b[_0x52775d(0x15c)]?'/'+_0xedf352[_0x52775d(0x17c)]+'/'+_0x2e882b['prefix']:'/'+_0xedf352[_0x52775d(0x15f)];_0xedf352[_0x52775d(0x15c)]&&(_0x2e882b[_0x52775d(0x15c)]='/'+_0xedf352[_0x52775d(0x15c)]+'/'+_0x2e882b[_0x52775d(0x15c)]);if(fs[_0x52775d(0x16a)](_0xedf352[_0x52775d(0x183)]+'/apps/'+_0xedf352[_0x52775d(0x17c)]+_0x52775d(0x18c)+(lodash[_0x52775d(0x169)](_0xedf352['filepath'],'ts')?'ts':'js'))){const _0x312801=include(_0xedf352['rootpath']+'/apps/'+_0xedf352[_0x52775d(0x17c)]+_0x52775d(0x18c)+(lodash[_0x52775d(0x169)](_0xedf352[_0x52775d(0x170)],'ts')?'ts':'js'));if(_0x312801[_0x52775d(0x174)]&&lodash[_0x52775d(0x166)](_0x312801[_0x52775d(0x174)])&&_0x312801[_0x52775d(0x174)][_0x52775d(0x17f)]>0x0)for(let _0x31fa94 in _0x312801[_0x52775d(0x174)]){if(((_0x9fa0c6=_0x312801===null||_0x312801===void 0x0?void 0x0:_0x312801[_0x52775d(0x15a)])===null||_0x9fa0c6===void 0x0?void 0x0:_0x9fa0c6[_0x52775d(0x17f)])>0x0&&_0x312801[_0x52775d(0x15a)]['indexOf'](_0x312801['middleware'][_0x31fa94])!=-0x1)continue;_0x2e882b[_0x52775d(0x174)][_0x52775d(0x162)](_0x312801[_0x52775d(0x174)][_0x31fa94]);}const _0x1ee3bf=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x52775d(0x163)])||{};_0x1ee3bf[''+_0xedf352['module']]=_0x312801,(0x0,core_1[_0x52775d(0x178)])(action_1[_0x52775d(0x18d)],_0x1ee3bf,action_1[_0x52775d(0x163)]);}_0x2e882b[_0x52775d(0x15c)]=_0x2e882b[_0x52775d(0x15c)]['toLowerCase']()[_0x52775d(0x16e)](/\/{2,}/g,'/'),(0x0,core_1[_0x52775d(0x165)])(action_1['ACTION_KEY'],_0x3ecfdd),(0x0,core_1[_0x52775d(0x184)])(_0x2e882b[_0x52775d(0x15c)],_0x2e882b)(_0x3ecfdd),(0x0,core_1['saveClassMetadata'])(action_1[_0x52775d(0x17a)],{'prefix':_0x2e882b[_0x52775d(0x15c)],'pprefix':_0xedf352['prefix'],'module':_0xedf352[_0x52775d(0x17c)],'filepath':_0xedf352[_0x52775d(0x170)],'routerOptions':_0x2e882b},_0x3ecfdd);}else _0x2e882b[_0x52775d(0x15c)]=_0x2e882b[_0x52775d(0x15c)]?'/'+_0x2e882b[_0x52775d(0x15c)]:'/'+_0xedf352[_0x52775d(0x15f)],_0xedf352['prefix']&&(_0x2e882b[_0x52775d(0x15c)]='/'+_0xedf352['prefix']+'/'+_0x2e882b[_0x52775d(0x15c)]),_0x2e882b['prefix']=_0x2e882b[_0x52775d(0x15c)][_0x52775d(0x182)]()[_0x52775d(0x16e)](/\/{2,}/g,'/'),(0x0,core_1[_0x52775d(0x165)])(action_1[_0x52775d(0x17a)],_0x3ecfdd),(0x0,core_1[_0x52775d(0x184)])(_0x2e882b[_0x52775d(0x15c)],_0x2e882b)(_0x3ecfdd),(0x0,core_1[_0x52775d(0x178)])(action_1[_0x52775d(0x17a)],{'prefix':_0x2e882b[_0x52775d(0x15c)],'module':_0xedf352[_0x52775d(0x17c)],'pprefix':_0xedf352[_0x52775d(0x15c)],'filepath':_0xedf352[_0x52775d(0x170)],'routerOptions':_0x2e882b},_0x3ecfdd);};}function a3_0x2741(){const _0x24dc10=['46469796KiXtoW','prefix','@midwayjs/core','28240KMXVNw','route','13eaucKM','\x20文件请放在app/controller/文件下','push','AppsConfigTmp','141942IRLcYQ','saveModule','isArray','10iAllna','-controller','endsWith','existsSync','2csyRiZ','-action','__esModule','replace','724EgZNgd','filepath','apps/','basic/controller/','trim','middleware','tagName','618417OakZkL','startsWith','saveClassMetadata','splice','ACTION_KEY','app/controller/','module','parseRoute','92625unXetQ','length','/apps/','defineProperty','toLowerCase','rootpath','Controller','136DqtnIz','filter','cwd','join','511DlEBbu','../types/action','10118581TZSSAd','/config.','APPSCONFIG_KEY','match','/controller/','split','1602119MnYVQf','Action','substring','middlewareIgnore'];a3_0x2741=function(){return _0x24dc10;};return a3_0x2741();}exports[a3_0x5035ad(0x192)]=Action;function parseRoute(_0x189eee){const _0x2d0dfa=a3_0x5035ad;_0x189eee=_0x189eee['replace'](/(\\|\/)/g,'/');const _0x2a283d=process[_0x2d0dfa(0x187)]()[_0x2d0dfa(0x16e)](/(\\|\/)/g,'/'),_0x4e6cca=_0x189eee['substring'](0x0,_0x2a283d[_0x2d0dfa(0x17f)]+_0x189eee[_0x2d0dfa(0x193)](_0x2a283d[_0x2d0dfa(0x17f)]+0x1)['indexOf']('/')+0x1),_0x57fd52=_0x189eee[_0x2d0dfa(0x193)](_0x4e6cca[_0x2d0dfa(0x17f)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x463a0a={'route':'','prefix':![],'module':![],'rootpath':_0x4e6cca,'filepath':_0x57fd52};if(_0x57fd52[_0x2d0dfa(0x177)](_0x2d0dfa(0x17b))||_0x57fd52['startsWith'](_0x2d0dfa(0x172))){const _0x5398e7=_0x57fd52[_0x2d0dfa(0x193)]((_0x57fd52[_0x2d0dfa(0x177)](_0x2d0dfa(0x17b))?'app/controller/':_0x2d0dfa(0x172))[_0x2d0dfa(0x17f)])[_0x2d0dfa(0x190)]('/')[_0x2d0dfa(0x186)](_0x223b74=>_0x223b74&&_0x223b74[_0x2d0dfa(0x173)]());return _0x5398e7[_0x2d0dfa(0x17f)]>0x1&&(_0x463a0a[_0x2d0dfa(0x15c)]=_0x5398e7[0x0][_0x2d0dfa(0x182)](),_0x5398e7[_0x2d0dfa(0x179)](0x0,0x1)),_0x463a0a['route']=('/'+_0x5398e7[_0x2d0dfa(0x188)]('/'))[_0x2d0dfa(0x16e)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x2d0dfa(0x18e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x2d0dfa(0x182)]()[_0x2d0dfa(0x16e)](/\/\-/g,'/'),_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x169)](_0x2d0dfa(0x16c))&&(_0x463a0a[_0x2d0dfa(0x15f)]=_0x463a0a['route'][_0x2d0dfa(0x193)](0x0,_0x463a0a['route'][_0x2d0dfa(0x17f)]-0x7)),_0x463a0a['route']['endsWith']('-controller')&&(_0x463a0a[_0x2d0dfa(0x15f)]=_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x193)](0x0,_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x17f)]-0xb)),_0x463a0a;}else{if(_0x57fd52[_0x2d0dfa(0x177)](_0x2d0dfa(0x171))){const _0x3cb3a0=_0x57fd52['substring'](0x0,_0x57fd52['indexOf'](_0x2d0dfa(0x180))+0x5),_0x1a6211=_0x57fd52[_0x2d0dfa(0x193)](_0x3cb3a0[_0x2d0dfa(0x17f)]+0x1)[_0x2d0dfa(0x16e)](/(\\|\/)/g,'/')[_0x2d0dfa(0x190)]('/')[0x0];if(_0x57fd52[_0x2d0dfa(0x177)]('apps/'+_0x1a6211+_0x2d0dfa(0x18f))){const _0x3046e1=_0x57fd52[_0x2d0dfa(0x193)]((_0x3cb3a0+'/'+_0x1a6211+_0x2d0dfa(0x18f))[_0x2d0dfa(0x17f)])[_0x2d0dfa(0x190)]('/')[_0x2d0dfa(0x186)](_0x5e81db=>_0x5e81db&&_0x5e81db[_0x2d0dfa(0x173)]());return _0x3046e1[_0x2d0dfa(0x17f)]>0x1&&(_0x463a0a[_0x2d0dfa(0x15c)]=_0x3046e1[0x0]['toLowerCase'](),_0x3046e1['splice'](0x0,0x1)),_0x463a0a[_0x2d0dfa(0x17c)]=_0x1a6211,_0x463a0a[_0x2d0dfa(0x15f)]=('/'+_0x1a6211+'/'+_0x3046e1[_0x2d0dfa(0x188)]('/'))[_0x2d0dfa(0x16e)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x2d0dfa(0x18e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x2d0dfa(0x16e)](/\/\-/g,'/'),_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x169)]('-action')&&(_0x463a0a['route']=_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x193)](0x0,_0x463a0a['route'][_0x2d0dfa(0x17f)]-0x7)),_0x463a0a[_0x2d0dfa(0x15f)]['endsWith'](_0x2d0dfa(0x168))&&(_0x463a0a[_0x2d0dfa(0x15f)]=_0x463a0a['route'][_0x2d0dfa(0x193)](0x0,_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x17f)]-0xb)),_0x463a0a;}throw new Error(_0x57fd52+'\x20文件请放在apps/'+_0x1a6211+'/controller/文件下');}}throw new Error(_0x57fd52+_0x2d0dfa(0x161));}exports[a3_0x5035ad(0x17d)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x23c96f=a4_0x538c;(function(_0xb7556a,_0x2b546b){const _0x3b1eb8=a4_0x538c,_0x56ef92=_0xb7556a();while(!![]){try{const _0x263686=parseInt(_0x3b1eb8(0x1cd))/0x1*(parseInt(_0x3b1eb8(0x1c1))/0x2)+-parseInt(_0x3b1eb8(0x1ca))/0x3+-parseInt(_0x3b1eb8(0x1cb))/0x4+parseInt(_0x3b1eb8(0x1c3))/0x5+parseInt(_0x3b1eb8(0x1d3))/0x6*(-parseInt(_0x3b1eb8(0x1e0))/0x7)+-parseInt(_0x3b1eb8(0x1c7))/0x8*(parseInt(_0x3b1eb8(0x1c2))/0x9)+parseInt(_0x3b1eb8(0x1c6))/0xa*(parseInt(_0x3b1eb8(0x1d8))/0xb);if(_0x263686===_0x2b546b)break;else _0x56ef92['push'](_0x56ef92['shift']());}catch(_0x4e3031){_0x56ef92['push'](_0x56ef92['shift']());}}}(a4_0x3c4d,0x9e097));function a4_0x3c4d(){const _0x1acbef=['452452btXsud','Validator','23TzCrYn','indexOf','ACTION_ROUTE_KEY','@midwayjs/core','delete','createCustomMethodDecorator','18030rpirUi','string','Api','middlewareIgnore','../types/action','25270333pCRxfF','__esModule','filter','apimit','validationOptions','description','length','toLowerCase','2723FzhrvP','routerName','35710UlYLOu','7930773OQvFry','5685580wBcLGA','validate','middleware','10RfpgaI','8TDCGHn','del','defineProperty','3103530inrzkK'];a4_0x3c4d=function(){return _0x1acbef;};return a4_0x3c4d();}Object[a4_0x23c96f(0x1c9)](exports,a4_0x23c96f(0x1d9),{'value':!![]}),exports[a4_0x23c96f(0x1d5)]=void 0x0;const validator_1=require('@anncic-api/validator'),core_1=require(a4_0x23c96f(0x1d0)),action_1=require(a4_0x23c96f(0x1d7));function a4_0x538c(_0xa0c589,_0x2f1bd6){const _0x3c4d5a=a4_0x3c4d();return a4_0x538c=function(_0x538c68,_0x2343f2){_0x538c68=_0x538c68-0x1c0;let _0x16637e=_0x3c4d5a[_0x538c68];return _0x16637e;},a4_0x538c(_0xa0c589,_0x2f1bd6);}function Api(_0x3ec92a,_0x3c7530='get',_0x53001b='/',_0x3d5b12={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x34e763,_0x1f2939,_0x5148e8)=>{const _0x3e5ebb=a4_0x538c;var _0x354300,_0x5eac03,_0x4590e6;!_0x3d5b12[_0x3e5ebb(0x1c5)]&&(_0x3d5b12[_0x3e5ebb(0x1c5)]=[]);!((_0x354300=_0x3d5b12===null||_0x3d5b12===void 0x0?void 0x0:_0x3d5b12['validate'])===null||_0x354300===void 0x0?void 0x0:_0x354300[_0x3e5ebb(0x1dc)])&&(_0x3d5b12[_0x3e5ebb(0x1c4)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3e5ebb(0x1d4)}});if(((_0x5eac03=_0x3d5b12===null||_0x3d5b12===void 0x0?void 0x0:_0x3d5b12[_0x3e5ebb(0x1c5)])===null||_0x5eac03===void 0x0?void 0x0:_0x5eac03[_0x3e5ebb(0x1de)])>0x0&&((_0x4590e6=_0x3d5b12===null||_0x3d5b12===void 0x0?void 0x0:_0x3d5b12[_0x3e5ebb(0x1d6)])===null||_0x4590e6===void 0x0?void 0x0:_0x4590e6['length'])>0x0)for(let _0x768d1d in _0x3d5b12['middleware']){_0x3d5b12[_0x3e5ebb(0x1d6)][_0x3e5ebb(0x1ce)](_0x3d5b12['middleware'][_0x768d1d])!==-0x1&&(_0x3d5b12['middleware'][_0x768d1d]=null);}_0x3d5b12[_0x3e5ebb(0x1c0)]=_0x3ec92a,(0x0,validator_1[_0x3e5ebb(0x1cc)])(_0x3d5b12['validate'])(_0x34e763,_0x1f2939,_0x5148e8),(0x0,core_1['RequestMapping'])(Object['assign'](_0x3d5b12,{'path':_0x53001b,'requestMethod':(_0x3c7530==_0x3e5ebb(0x1c8)?_0x3e5ebb(0x1d1):_0x3c7530)[_0x3e5ebb(0x1df)]()}))(_0x34e763,_0x1f2939,_0x5148e8),(0x0,core_1['attachClassMetadata'])(action_1[_0x3e5ebb(0x1cf)],{'path':_0x53001b,'method':_0x1f2939,'apimit':_0x3d5b12[_0x3e5ebb(0x1db)],'routerName':_0x3d5b12['routerName'],'description':_0x3d5b12[_0x3e5ebb(0x1dd)],'middleware':(_0x3d5b12['middleware']||[])[_0x3e5ebb(0x1da)](_0x498ac4=>!!_0x498ac4),'requestMethod':(_0x3c7530==_0x3e5ebb(0x1c8)?_0x3e5ebb(0x1d1):_0x3c7530)[_0x3e5ebb(0x1df)]()},_0x34e763),(0x0,core_1[_0x3e5ebb(0x1d2)])(action_1[_0x3e5ebb(0x1cf)],{'path':_0x53001b,'method':_0x1f2939,'apimit':_0x3d5b12[_0x3e5ebb(0x1db)],'routerName':_0x3d5b12[_0x3e5ebb(0x1c0)],'description':_0x3d5b12['description'],'middleware':(_0x3d5b12[_0x3e5ebb(0x1c5)]||[])[_0x3e5ebb(0x1da)](_0x34b391=>!!_0x34b391),'requestMethod':(_0x3c7530==_0x3e5ebb(0x1c8)?_0x3e5ebb(0x1d1):_0x3c7530)[_0x3e5ebb(0x1df)]()})(_0x34e763,_0x1f2939,_0x5148e8);};}exports[a4_0x23c96f(0x1d5)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a5_0x3e6a(_0x52a46b,_0x38d889){const _0x227f44=a5_0x227f();return a5_0x3e6a=function(_0x3e6a8d,_0x5695e9){_0x3e6a8d=_0x3e6a8d-0x1ba;let _0x3765cb=_0x227f44[_0x3e6a8d];return _0x3765cb;},a5_0x3e6a(_0x52a46b,_0x38d889);}const a5_0x5b816c=a5_0x3e6a;(function(_0x529937,_0x5700f5){const _0x4e4629=a5_0x3e6a,_0x32283c=_0x529937();while(!![]){try{const _0x471c91=parseInt(_0x4e4629(0x1c8))/0x1+parseInt(_0x4e4629(0x1cb))/0x2+parseInt(_0x4e4629(0x1bf))/0x3+parseInt(_0x4e4629(0x1c6))/0x4+parseInt(_0x4e4629(0x1c2))/0x5+-parseInt(_0x4e4629(0x1d5))/0x6*(-parseInt(_0x4e4629(0x1ba))/0x7)+parseInt(_0x4e4629(0x1c0))/0x8*(-parseInt(_0x4e4629(0x1c9))/0x9);if(_0x471c91===_0x5700f5)break;else _0x32283c['push'](_0x32283c['shift']());}catch(_0x5cf652){_0x32283c['push'](_0x32283c['shift']());}}}(a5_0x227f,0x8afd4));Object[a5_0x5b816c(0x1d3)](exports,a5_0x5b816c(0x1c5),{'value':!![]}),exports['Apitest']=void 0x0;function a5_0x227f(){const _0x466cd8=['getAsync','1200422nNbBbo','getApplicationContext','value','isDevelopmentEnvironment','getConfig','apidoc','filepath','ApitestService','defineProperty','app','150WQvRlP','239575bCLzrD','RequestMapping','apitest','MidwayEnvironmentService','@midwayjs/core','3247806NXhuuh','26536DqmBzO','Apitest','5479630gNmKcT','REQUEST_OBJ_CTX_KEY','../service/ApitestService','__esModule','2867152iniXbx','/apitest','380983RdaEbS','11295clxpPl'];a5_0x227f=function(){return _0x466cd8;};return a5_0x227f();}const core_1=require(a5_0x5b816c(0x1be)),ApitestService_1=require(a5_0x5b816c(0x1c4));function Apitest(_0x3a9dab=a5_0x5b816c(0x1c7),_0x2f025b){return(_0x595ff9,_0x15d387,_0xbb6085)=>{const _0x10db81=a5_0x3e6a;return(0x0,core_1[_0x10db81(0x1bb)])({'path':_0x3a9dab,'requestMethod':'get'})(_0x595ff9,_0x15d387,_0xbb6085),_0xbb6085[_0x10db81(0x1cd)]=async function(..._0x4d62d8){const _0x1b2638=_0x10db81;var _0x1307df;const _0xd90b08=(_0x1307df=this[core_1[_0x1b2638(0x1c3)]])===null||_0x1307df===void 0x0?void 0x0:_0x1307df[_0x1b2638(0x1d4)];if(_0xd90b08&&_0xd90b08[_0x1b2638(0x1cf)](_0x1b2638(0x1bc))){const _0x264f22=await _0xd90b08[_0x1b2638(0x1cc)]()[_0x1b2638(0x1ca)](ApitestService_1[_0x1b2638(0x1d2)]),_0x23f509=await _0xd90b08['getApplicationContext']()[_0x1b2638(0x1ca)](core_1[_0x1b2638(0x1bd)]);return _0x23f509[_0x1b2638(0x1ce)]()&&(_0x2f025b[_0x1b2638(0x1d1)]=!![]),await _0x264f22[_0x1b2638(0x1d0)](_0x2f025b);}return'';},_0xbb6085;};}exports[a5_0x5b816c(0x1c1)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x37e482=a6_0xcb35;(function(_0x8c84ac,_0xba4b0d){var _0x19e002=a6_0xcb35,_0x871182=_0x8c84ac();while(!![]){try{var _0x1cfd31=parseInt(_0x19e002(0xbc))/0x1+-parseInt(_0x19e002(0xcc))/0x2*(-parseInt(_0x19e002(0xcd))/0x3)+-parseInt(_0x19e002(0xc1))/0x4*(-parseInt(_0x19e002(0xb8))/0x5)+-parseInt(_0x19e002(0xca))/0x6*(parseInt(_0x19e002(0xcf))/0x7)+parseInt(_0x19e002(0xc3))/0x8+-parseInt(_0x19e002(0xb9))/0x9*(parseInt(_0x19e002(0xc0))/0xa)+parseInt(_0x19e002(0xbd))/0xb;if(_0x1cfd31===_0xba4b0d)break;else _0x871182['push'](_0x871182['shift']());}catch(_0x2e1956){_0x871182['push'](_0x871182['shift']());}}}(a6_0x834d,0x63037));function a6_0x834d(){var _0x3890d5=['2516cGQAap','HEADERS_CHECKCODE','5866384ovUWXS','__metadata','metadata','decorate','__esModule','HEADERS_LACK','TIMEOUT','42ZInxCN','design:type','12KwvlRz','116691uILdoB','getOwnPropertyDescriptor','360395sevhmq','function','defineProperty','ApiError','登录超时,请重新登录','object','1565ZiRUoZ','14589QHDQXg','HEADERS_DEVICE','请求超时,请重试','170525baKnxJ','829499uCmOcc','HEADERS_SIGNATURE','TIMEOUT_LOGINTIME','3970WwjkvG'];a6_0x834d=function(){return _0x3890d5;};return a6_0x834d();}var __decorate=this&&this['__decorate']||function(_0x1f987d,_0x380535,_0x528e62,_0xdaa516){var _0x29a70d=a6_0xcb35,_0x4a9a1f=arguments['length'],_0x246c91=_0x4a9a1f<0x3?_0x380535:_0xdaa516===null?_0xdaa516=Object[_0x29a70d(0xce)](_0x380535,_0x528e62):_0xdaa516,_0x1f09a4;if(typeof Reflect===_0x29a70d(0xb7)&&typeof Reflect[_0x29a70d(0xc6)]===_0x29a70d(0xd0))_0x246c91=Reflect[_0x29a70d(0xc6)](_0x1f987d,_0x380535,_0x528e62,_0xdaa516);else{for(var _0x485d23=_0x1f987d['length']-0x1;_0x485d23>=0x0;_0x485d23--)if(_0x1f09a4=_0x1f987d[_0x485d23])_0x246c91=(_0x4a9a1f<0x3?_0x1f09a4(_0x246c91):_0x4a9a1f>0x3?_0x1f09a4(_0x380535,_0x528e62,_0x246c91):_0x1f09a4(_0x380535,_0x528e62))||_0x246c91;}return _0x4a9a1f>0x3&&_0x246c91&&Object[_0x29a70d(0xb4)](_0x380535,_0x528e62,_0x246c91),_0x246c91;},__metadata=this&&this[a6_0x37e482(0xc4)]||function(_0x3e84d5,_0x1d24e9){var _0x3e87b1=a6_0x37e482;if(typeof Reflect===_0x3e87b1(0xb7)&&typeof Reflect[_0x3e87b1(0xc5)]==='function')return Reflect[_0x3e87b1(0xc5)](_0x3e84d5,_0x1d24e9);};Object[a6_0x37e482(0xb4)](exports,a6_0x37e482(0xc7),{'value':!![]}),exports[a6_0x37e482(0xb5)]=void 0x0;function a6_0xcb35(_0x88465c,_0xf3815c){var _0x834d7a=a6_0x834d();return a6_0xcb35=function(_0xcb35c8,_0x19fdf8){_0xcb35c8=_0xcb35c8-0xb4;var _0x55d12c=_0x834d7a[_0xcb35c8];return _0x55d12c;},a6_0xcb35(_0x88465c,_0xf3815c);}class ApiError{}ApiError[a6_0x37e482(0xc9)]=0x3d7e31,ApiError[a6_0x37e482(0xc8)]=0x3d7e32,ApiError[a6_0x37e482(0xba)]=0x3d7e33,ApiError[a6_0x37e482(0xbe)]=0x3d7e34,ApiError[a6_0x37e482(0xc2)]=0x3d7e35,ApiError[a6_0x37e482(0xbf)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x37e482(0xbb)),__metadata(a6_0x37e482(0xcb),Object)],ApiError,a6_0x37e482(0xc9),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x37e482(0xcb),Object)],ApiError,a6_0x37e482(0xc8),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata('design:type',Object)],ApiError,a6_0x37e482(0xba),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x37e482(0xcb),Object)],ApiError,a6_0x37e482(0xbe),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x37e482(0xb6)),__metadata(a6_0x37e482(0xcb),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports[a6_0x37e482(0xb5)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x42404d=a7_0x1b9e;(function(_0x5cf01d,_0x3e8e7b){const _0x65ae2d=a7_0x1b9e,_0x12a8fc=_0x5cf01d();while(!![]){try{const _0x716dc8=-parseInt(_0x65ae2d(0x7b))/0x1*(-parseInt(_0x65ae2d(0x6e))/0x2)+-parseInt(_0x65ae2d(0x70))/0x3*(-parseInt(_0x65ae2d(0x75))/0x4)+-parseInt(_0x65ae2d(0x78))/0x5+parseInt(_0x65ae2d(0x77))/0x6*(-parseInt(_0x65ae2d(0x76))/0x7)+-parseInt(_0x65ae2d(0x6f))/0x8*(parseInt(_0x65ae2d(0x7c))/0x9)+-parseInt(_0x65ae2d(0x6d))/0xa*(parseInt(_0x65ae2d(0x73))/0xb)+parseInt(_0x65ae2d(0x6b))/0xc;if(_0x716dc8===_0x3e8e7b)break;else _0x12a8fc['push'](_0x12a8fc['shift']());}catch(_0x224dd3){_0x12a8fc['push'](_0x12a8fc['shift']());}}}(a7_0x3227,0x748bf));Object[a7_0x42404d(0x72)](exports,a7_0x42404d(0x6a),{'value':!![]}),exports[a7_0x42404d(0x6c)]=void 0x0;function a7_0x1b9e(_0x5ce63c,_0x356f75){const _0x322718=a7_0x3227();return a7_0x1b9e=function(_0x1b9e7a,_0xd543b){_0x1b9e7a=_0x1b9e7a-0x6a;let _0x2ffab4=_0x322718[_0x1b9e7a];return _0x2ffab4;},a7_0x1b9e(_0x5ce63c,_0x356f75);}function a7_0x3227(){const _0x5c5405=['__esModule','18212148dYPuUV','getAppsConfig','7320NYSzce','83688wCOXeO','404968zoNkgs','217473PLEzRf','get','defineProperty','6314FUuglV','@midwayjs/core','8jVvLUr','4109swCpqr','1500wxORck','3709295eRcbap','../types/action','getClassMetadata','9vaiaan','45UdFBNb'];a7_0x3227=function(){return _0x5c5405;};return a7_0x3227();}const core_1=require(a7_0x42404d(0x74)),action_1=require(a7_0x42404d(0x79));function getAppsConfig(_0x332870){const _0x431a73=a7_0x42404d,_0x5da797=(0x0,core_1[_0x431a73(0x7a)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};return _0x332870?lodash[_0x431a73(0x71)](_0x5da797,_0x332870):_0x5da797;}exports[a7_0x42404d(0x6c)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x149a20=a8_0x2fec;(function(_0x1662a8,_0x24e916){const _0x15c4fd=a8_0x2fec,_0x408316=_0x1662a8();while(!![]){try{const _0x491805=parseInt(_0x15c4fd(0x198))/0x1+-parseInt(_0x15c4fd(0x1a9))/0x2+parseInt(_0x15c4fd(0x1a6))/0x3+parseInt(_0x15c4fd(0x197))/0x4*(parseInt(_0x15c4fd(0x1d1))/0x5)+parseInt(_0x15c4fd(0x18b))/0x6*(parseInt(_0x15c4fd(0x17f))/0x7)+-parseInt(_0x15c4fd(0x185))/0x8*(parseInt(_0x15c4fd(0x1c0))/0x9)+parseInt(_0x15c4fd(0x1cb))/0xa;if(_0x491805===_0x24e916)break;else _0x408316['push'](_0x408316['shift']());}catch(_0x2bf23f){_0x408316['push'](_0x408316['shift']());}}}(a8_0x1b13,0xdaea7));Object[a8_0x149a20(0x1a3)](exports,a8_0x149a20(0x17b),{'value':!![]}),exports[a8_0x149a20(0x19b)]=void 0x0;const lodash_1=require(a8_0x149a20(0x190)),validator_1=require(a8_0x149a20(0x1d6)),core_1=require(a8_0x149a20(0x1ab)),core_2=require(a8_0x149a20(0x1ab)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x498f3a={'prefix':'/','module':![]}){const _0xe9fd39=a8_0x149a20;var _0x1075a0,_0x1c19ab;const _0x1146ff=(0x0,core_3['listModule'])(action_1[_0xe9fd39(0x184)]),_0xba3e55={},_0x191a42=Array[_0xe9fd39(0x1c8)](_0x498f3a[_0xe9fd39(0x199)]||[])?_0x498f3a[_0xe9fd39(0x199)]||[]:[_0x498f3a[_0xe9fd39(0x199)]];_0x3c300d:for(const _0x5651e4 of _0x1146ff){let _0x24b9b5=(0x0,core_3[_0xe9fd39(0x1d3)])(action_1[_0xe9fd39(0x184)],_0x5651e4),_0x4789bc=(0x0,core_3['getClassMetadata'])(action_1[_0xe9fd39(0x194)],_0x5651e4);if(_0x24b9b5&&_0x4789bc){let _0x58cbad=_0x24b9b5[_0xe9fd39(0x180)],_0x3d5948={};if(_0x498f3a[_0xe9fd39(0x1d4)]&&(0x0,lodash_1[_0xe9fd39(0x17e)])(_0x24b9b5,_0xe9fd39(0x1d4),![])!=_0x498f3a['module'])continue _0x3c300d;else{if(_0x498f3a[_0xe9fd39(0x1d4)]===![]&&!!(0x0,lodash_1['get'])(_0x24b9b5,'module',null))continue _0x3c300d;}if(_0x498f3a[_0xe9fd39(0x180)]&&!_0x58cbad['startsWith'](_0x498f3a[_0xe9fd39(0x180)]))continue _0x3c300d;_0x58cbad!=='/'?(_0x3d5948[_0xe9fd39(0x191)]=(_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5[_0xe9fd39(0x182)][_0xe9fd39(0x1bc)])||(/^\//[_0xe9fd39(0x192)](_0x58cbad)?_0x58cbad['split']('/')[0x1]:_0x58cbad),_0x3d5948[_0xe9fd39(0x1b0)]=(_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5['routerOptions'][_0xe9fd39(0x1b0)])||_0x3d5948[_0xe9fd39(0x191)],_0x3d5948[_0xe9fd39(0x1a7)]=[]):(_0x3d5948['summary']=(_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5[_0xe9fd39(0x182)][_0xe9fd39(0x1bc)])||_0xe9fd39(0x1ca),_0x3d5948[_0xe9fd39(0x1b0)]=(_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5['routerOptions'][_0xe9fd39(0x1b0)])||'',_0x3d5948[_0xe9fd39(0x1a7)]=[]);_0x498f3a[_0xe9fd39(0x1d5)]&&(_0x3d5948[_0xe9fd39(0x1d5)]=_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5[_0xe9fd39(0x1d5)]);(_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5['pprefix'])&&(_0x3d5948[_0xe9fd39(0x180)]=_0x24b9b5['pprefix']);(_0x24b9b5===null||_0x24b9b5===void 0x0?void 0x0:_0x24b9b5[_0xe9fd39(0x1d4)])&&(_0x3d5948[_0xe9fd39(0x1d4)]=_0x24b9b5[_0xe9fd39(0x1d4)]);let _0x4a11b3=(0x0,core_3[_0xe9fd39(0x1d3)])(core_2[_0xe9fd39(0x1b7)],_0x5651e4)||{};if(typeof _0x4789bc[Symbol['iterator']]===_0xe9fd39(0x187))for(let _0x5d6ef8 of _0x4789bc){let _0x57eaf3={};_0x57eaf3[_0xe9fd39(0x195)]=_0x5d6ef8[_0xe9fd39(0x18d)],_0x57eaf3[_0xe9fd39(0x1c9)]=(_0x58cbad+_0x5d6ef8[_0xe9fd39(0x189)])[_0xe9fd39(0x1a1)](/\/{1,}/,'/'),_0x57eaf3[_0xe9fd39(0x191)]=(_0x5d6ef8===null||_0x5d6ef8===void 0x0?void 0x0:_0x5d6ef8[_0xe9fd39(0x19f)])||_0x3d5948[_0xe9fd39(0x191)]||'default',_0x57eaf3['description']=(_0x5d6ef8===null||_0x5d6ef8===void 0x0?void 0x0:_0x5d6ef8[_0xe9fd39(0x1b0)])||'',_0x57eaf3[_0xe9fd39(0x1d0)]=[];if(!(0x0,lodash_1['startsWith'])(_0x57eaf3['route'],'static/apitest')&&!(0x0,lodash_1[_0xe9fd39(0x1b1)])(_0x57eaf3[_0xe9fd39(0x1c9)],'/static/apitest')&&_0x191a42[_0xe9fd39(0x1d2)](_0x57eaf3[_0xe9fd39(0x1c9)])===-0x1){if(!(_0x498f3a===null||_0x498f3a===void 0x0?void 0x0:_0x498f3a[_0xe9fd39(0x1ae)])){let _0x37e9b1=(0x0,core_3[_0xe9fd39(0x1bd)])(new _0x5651e4(),_0x5d6ef8[_0xe9fd39(0x195)]);for(const _0x28d732 in _0x37e9b1){let _0x5015eb=(_0x1075a0=_0x4a11b3[_0x5d6ef8[_0xe9fd39(0x195)]])===null||_0x1075a0===void 0x0?void 0x0:_0x1075a0[_0xe9fd39(0x1ba)](_0x1b20cf=>_0x1b20cf[_0xe9fd39(0x17d)]==_0x28d732&&_0x1b20cf[_0xe9fd39(0x1cd)]===core_2[_0xe9fd39(0x18a)]&&(_0x1b20cf===null||_0x1b20cf===void 0x0?void 0x0:_0x1b20cf[_0xe9fd39(0x1c7)]));if(_0x5015eb===null||_0x5015eb===void 0x0?void 0x0:_0x5015eb[_0xe9fd39(0x1c7)]){let _0x3bf40e=convertTypeToString(_0x5015eb['metadata']['type']||0x0);if([_0xe9fd39(0x19c),_0xe9fd39(0x18f)][_0xe9fd39(0x1d2)](_0x3bf40e)!=-0x1&&_0x5015eb['metadata'][_0xe9fd39(0x1ad)][_0xe9fd39(0x1d2)](':')==-0x1&&!_0x57eaf3['request'][_0xe9fd39(0x1ba)](_0x9ff742=>_0x9ff742['key']==_0x5015eb[_0xe9fd39(0x1c7)]['propertyData']))_0x57eaf3[_0xe9fd39(0x1d0)][_0xe9fd39(0x19d)]({'key':_0x5015eb['metadata'][_0xe9fd39(0x1ad)],'title':_0x5015eb['metadata'][_0xe9fd39(0x1ad)],'type':convertSchemaType(_0x37e9b1[_0x5015eb[_0xe9fd39(0x17d)]][_0xe9fd39(0x18c)]),'required':![],'default':'','desc':''});else{if(_0x3bf40e==_0xe9fd39(0x1bf)){let _0x37d5e8=((_0x1c19ab=_0x5015eb===null||_0x5015eb===void 0x0?void 0x0:_0x5015eb[_0xe9fd39(0x1c7)])===null||_0x1c19ab===void 0x0?void 0x0:_0x1c19ab[_0xe9fd39(0x1ad)])||_0xe9fd39(0x1bf);_0x37d5e8[_0xe9fd39(0x1d2)](':')==-0x1&&!_0x57eaf3[_0xe9fd39(0x1d0)]['find'](_0x2b01f1=>_0x2b01f1[_0xe9fd39(0x1cd)]==_0x37d5e8&&_0x2b01f1[_0xe9fd39(0x188)]==_0xe9fd39(0x1bf))&&_0x57eaf3['request']['push']({'key':_0x37d5e8,'title':'文件上传-'+_0x37d5e8,'type':_0xe9fd39(0x1bf),'required':!![],'default':'','desc':''});}}}else{const _0x1d05ca=(0x0,core_3[_0xe9fd39(0x1a2)])(validator_1[_0xe9fd39(0x1cc)],_0x37e9b1[_0x28d732]);_0x1d05ca&&_0x57eaf3['request'][_0xe9fd39(0x19d)](...getJoiRequest(_0x1d05ca));}}}_0x3d5948[_0xe9fd39(0x1a7)][_0xe9fd39(0x19d)](_0x57eaf3);}}if(_0x3d5948[_0xe9fd39(0x1a7)][_0xe9fd39(0x196)]>0x0){let _0x1bbdea=_0xba3e55[_0x58cbad];_0x1bbdea?(_0x1bbdea[_0xe9fd39(0x191)]!=_0x3d5948[_0xe9fd39(0x191)]&&(_0x1bbdea[_0xe9fd39(0x191)]=_0x1bbdea[_0xe9fd39(0x191)]+','+_0x3d5948[_0xe9fd39(0x191)]),_0x1bbdea['description']!=_0x3d5948['description']&&(_0x1bbdea['description']=_0x1bbdea[_0xe9fd39(0x1b0)]+','+_0x3d5948[_0xe9fd39(0x1b0)]),_0x1bbdea[_0xe9fd39(0x1a7)]=_0x1bbdea[_0xe9fd39(0x1a7)][_0xe9fd39(0x1b8)](_0x3d5948[_0xe9fd39(0x1a7)]),_0xba3e55[_0x58cbad]=_0x1bbdea):_0xba3e55[_0x58cbad]=_0x3d5948;}}}return _0xba3e55;}exports[a8_0x149a20(0x19b)]=getRoutes;function getJoiRequest(_0x161b7f){const _0x132adc=a8_0x149a20,_0x4f309a=[];for(let _0x1d28b6 in _0x161b7f){const _0x578439={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x522469=typeof _0x161b7f[_0x1d28b6]['describe']==_0x132adc(0x187)?_0x161b7f[_0x1d28b6][_0x132adc(0x1c3)]():_0x161b7f[_0x1d28b6];_0x578439[_0x132adc(0x1cd)]=_0x1d28b6,_0x578439[_0x132adc(0x188)]=_0x522469[_0x132adc(0x188)],_0x578439[_0x132adc(0x1a4)]=(0x0,lodash_1[_0x132adc(0x17e)])(_0x522469,_0x132adc(0x1b3),_0x1d28b6),_0x578439[_0x132adc(0x1ca)]=(0x0,lodash_1[_0x132adc(0x17e)])(_0x522469,_0x132adc(0x1ac),''),_0x578439[_0x132adc(0x17c)]=(0x0,lodash_1[_0x132adc(0x17e)])(_0x522469,_0x132adc(0x1b9),'')==_0x132adc(0x17c),_0x578439[_0x132adc(0x1b0)]=(0x0,lodash_1[_0x132adc(0x17e)])(_0x522469,_0x132adc(0x1b4),'');if(_0x522469[_0x132adc(0x188)]==_0x132adc(0x1a5))_0x578439['children']=getJoiRequest(_0x522469[_0x132adc(0x1c1)]);else _0x522469['type']=='array'&&_0x522469[_0x132adc(0x1c6)]&&Array['isArray'](_0x522469[_0x132adc(0x1c6)])&&_0x522469[_0x132adc(0x1c6)][0x0]&&console['log'](_0x1d28b6+'-array',_0x522469);_0x522469[_0x132adc(0x1c4)]&&Array[_0x132adc(0x1c8)](_0x522469[_0x132adc(0x1c4)])&&_0x522469[_0x132adc(0x1c4)][_0x132adc(0x196)]>0x0&&(_0x578439['description']=_0x132adc(0x186)+_0x522469[_0x132adc(0x1c4)][_0x132adc(0x1af)](',')+'];'+_0x578439[_0x132adc(0x1b0)]);if(_0x578439[_0x132adc(0x1cd)]&&_0x578439[_0x132adc(0x188)]){const _0x1802da={};for(const _0x290324 of _0x522469[_0x132adc(0x1a8)]||[]){if(_0x290324[_0x132adc(0x18c)]===_0x132adc(0x1c5)&&_0x290324['args'])_0x1802da[_0x132adc(0x1c5)]=_0x290324[_0x132adc(0x1c2)][_0x132adc(0x1bb)];else _0x290324[_0x132adc(0x18c)]==='max'&&(_0x1802da['max']=_0x290324[_0x132adc(0x1c2)][_0x132adc(0x1bb)]);}_0x578439['rules']=_0x1802da;}_0x578439['key']&&_0x578439[_0x132adc(0x1a4)]&&_0x4f309a[_0x132adc(0x19d)](_0x578439);}return _0x4f309a;}function a8_0x1b13(){const _0x331197=['required','parameterIndex','get','3809113SNrQBs','prefix','HEADERS','routerOptions','string','ACTION_KEY','8JaPOyd','只允许:[','function','type','path','WEB_ROUTER_PARAM_KEY','12AehfEG','name','requestMethod','QUERY','body','lodash','summary','test','Number','ACTION_ROUTE_KEY','method','length','1270484EMOTwi','168896dtrLGk','filter','FILESTREAM','getRoutes','query','push','header','routerName','FIELDS','replace','getClassExtendedMetadata','defineProperty','title','object','678225QNZCxW','routes','rules','937684uyqLiW','BODY','@midwayjs/core','flags.default','propertyData','noreq','join','description','startsWith','File','flags.label','flags.description','Boolean','Object','INJECT_CUSTOM_PARAM','concat','flags.presence','find','limit','tagName','getMethodParamTypes','String','file','16091019MGFMcN','keys','args','describe','allow','min','items','metadata','isArray','route','default','13525020dmIkcA','RULES_KEY','key','boolean','RouteParamTypes','request','5WSplMn','indexOf','getClassMetadata','module','filepath','@anncic-api/validator','__esModule'];a8_0x1b13=function(){return _0x331197;};return a8_0x1b13();}function convertSchemaType(_0x375527){const _0x5c9849=a8_0x149a20;switch(_0x375527){case _0x5c9849(0x1b6):return'object';case _0x5c9849(0x1b5):return _0x5c9849(0x1ce);case _0x5c9849(0x193):return'number';case _0x5c9849(0x1be):return _0x5c9849(0x183);case _0x5c9849(0x1b2):return _0x5c9849(0x1bf);default:return _0x5c9849(0x183);}}function a8_0x2fec(_0x3a7c4e,_0x8419ee){const _0x1b133a=a8_0x1b13();return a8_0x2fec=function(_0x2fec76,_0x1fe408){_0x2fec76=_0x2fec76-0x17b;let _0x2a3022=_0x1b133a[_0x2fec76];return _0x2a3022;},a8_0x2fec(_0x3a7c4e,_0x8419ee);}function convertTypeToString(_0x54071c){const _0x398adf=a8_0x149a20;switch(_0x54071c){case core_1['RouteParamTypes'][_0x398adf(0x181)]:return _0x398adf(0x19e);case core_1[_0x398adf(0x1cf)][_0x398adf(0x18e)]:return'query';case core_1[_0x398adf(0x1cf)]['PARAM']:return'path';case core_1[_0x398adf(0x1cf)][_0x398adf(0x1aa)]:return'body';case core_1[_0x398adf(0x1cf)][_0x398adf(0x1a0)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1['RouteParamTypes'][_0x398adf(0x19a)]:return'file';default:return'header';}}
|
|
1
|
+
'use strict';const a8_0x46ef3e=a8_0x231d;function a8_0x150d(){const _0x1cf608=['2909565DIefEl','object','parameterIndex','flags.description','metadata','noreq','propertyData','filepath','892308LwkMPd','body','../types/action','Boolean','concat','split','key','getClassMetadata','routerOptions','1904104mlyASp','17166thQaZL','indexOf','route','routerName','keys','Object','test','header','@midwayjs/core','method','15076IaKIit','__esModule','length','String','pprefix','module','request','tagName','title','flags.presence','string','/static/apitest','getClassExtendedMetadata','2806986piUPAu','routes','file','BODY','type','HEADERS','10SIaXvp','name','find','number','Number','WEB_ROUTER_PARAM_KEY','required','array','push','1748817Mteboh','function','max','8wgEdtk','iterator','-array','INJECT_CUSTOM_PARAM','ACTION_ROUTE_KEY','boolean','flags.label','getRoutes','min','log','RouteParamTypes','rules','requestMethod','defineProperty','get','limit','path','description','startsWith','default','isArray','FILESSTREAM','summary','args','File','flags.default','PARAM','filter','describe','ACTION_KEY','prefix','allow','文件上传-'];a8_0x150d=function(){return _0x1cf608;};return a8_0x150d();}(function(_0x215871,_0x4c6862){const _0x2fda2c=a8_0x231d,_0x4f0de0=_0x215871();while(!![]){try{const _0x4c4669=parseInt(_0x2fda2c(0xb7))/0x1*(-parseInt(_0x2fda2c(0x98))/0x2)+parseInt(_0x2fda2c(0xb4))/0x3+parseInt(_0x2fda2c(0xe0))/0x4+parseInt(_0x2fda2c(0xab))/0x5*(-parseInt(_0x2fda2c(0xea))/0x6)+-parseInt(_0x2fda2c(0xa5))/0x7+-parseInt(_0x2fda2c(0xe9))/0x8+parseInt(_0x2fda2c(0xd8))/0x9;if(_0x4c4669===_0x4c6862)break;else _0x4f0de0['push'](_0x4f0de0['shift']());}catch(_0x88b574){_0x4f0de0['push'](_0x4f0de0['shift']());}}}(a8_0x150d,0x67948));Object[a8_0x46ef3e(0xc4)](exports,a8_0x46ef3e(0x99),{'value':!![]}),exports[a8_0x46ef3e(0xbe)]=void 0x0;function a8_0x231d(_0x2c27d3,_0x10a431){const _0x150da5=a8_0x150d();return a8_0x231d=function(_0x231d62,_0x4e3b2d){_0x231d62=_0x231d62-0x8f;let _0xc9c1b=_0x150da5[_0x231d62];return _0xc9c1b;},a8_0x231d(_0x2c27d3,_0x10a431);}const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x46ef3e(0x96)),core_2=require('@midwayjs/core'),core_3=require(a8_0x46ef3e(0x96)),action_1=require(a8_0x46ef3e(0xe2));function getRoutes(_0x360ef8={'prefix':'/','module':![]}){const _0x7cf508=a8_0x46ef3e;var _0x31aab8,_0xdb8070;const _0x5e9985=(0x0,core_3['listModule'])(action_1[_0x7cf508(0xd4)]),_0x54bc18={},_0x30ec64=Array[_0x7cf508(0xcb)](_0x360ef8['filter']||[])?_0x360ef8['filter']||[]:[_0x360ef8[_0x7cf508(0xd2)]];_0x2d8ab8:for(const _0x22c08b of _0x5e9985){let _0x5ad5ca=(0x0,core_3[_0x7cf508(0xe7)])(action_1[_0x7cf508(0xd4)],_0x22c08b),_0x360e8d=(0x0,core_3['getClassMetadata'])(action_1[_0x7cf508(0xbb)],_0x22c08b);if(_0x5ad5ca&&_0x360e8d){let _0x36616b=_0x5ad5ca[_0x7cf508(0xd5)],_0xaaef7c={};if(_0x360ef8[_0x7cf508(0x9d)]&&(0x0,lodash_1[_0x7cf508(0xc5)])(_0x5ad5ca,'module',![])!=_0x360ef8[_0x7cf508(0x9d)])continue _0x2d8ab8;else{if(_0x360ef8['module']===![]&&!!(0x0,lodash_1['get'])(_0x5ad5ca,_0x7cf508(0x9d),null))continue _0x2d8ab8;}if(_0x360ef8[_0x7cf508(0xd5)]&&!_0x36616b[_0x7cf508(0xc9)](_0x360ef8[_0x7cf508(0xd5)]))continue _0x2d8ab8;_0x36616b!=='/'?(_0xaaef7c[_0x7cf508(0xcd)]=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0x9f)])||(/^\//[_0x7cf508(0x94)](_0x36616b)?_0x36616b[_0x7cf508(0xe5)]('/')[0x1]:_0x36616b),_0xaaef7c[_0x7cf508(0xc8)]=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0xc8)])||_0xaaef7c[_0x7cf508(0xcd)],_0xaaef7c[_0x7cf508(0xa6)]=[]):(_0xaaef7c[_0x7cf508(0xcd)]=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0x9f)])||_0x7cf508(0xca),_0xaaef7c['description']=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0xc8)])||'',_0xaaef7c[_0x7cf508(0xa6)]=[]);_0x360ef8[_0x7cf508(0xdf)]&&(_0xaaef7c[_0x7cf508(0xdf)]=_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca['filepath']);(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0x9c)])&&(_0xaaef7c[_0x7cf508(0xd5)]=_0x5ad5ca[_0x7cf508(0x9c)]);(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0x9d)])&&(_0xaaef7c['module']=_0x5ad5ca['module']);let _0x2c3de3=(0x0,core_3[_0x7cf508(0xe7)])(core_2[_0x7cf508(0xba)],_0x22c08b)||{};if(typeof _0x360e8d[Symbol[_0x7cf508(0xb8)]]==='function')for(let _0x23e007 of _0x360e8d){let _0x41433b={};_0x41433b[_0x7cf508(0x97)]=_0x23e007[_0x7cf508(0xc3)],_0x41433b[_0x7cf508(0x90)]=(_0x36616b+_0x23e007[_0x7cf508(0xc7)])['replace'](/\/{1,}/,'/'),_0x41433b['summary']=(_0x23e007===null||_0x23e007===void 0x0?void 0x0:_0x23e007[_0x7cf508(0x91)])||_0xaaef7c['summary']||'default',_0x41433b[_0x7cf508(0xc8)]=(_0x23e007===null||_0x23e007===void 0x0?void 0x0:_0x23e007[_0x7cf508(0xc8)])||'',_0x41433b[_0x7cf508(0x9e)]=[];if(!(0x0,lodash_1[_0x7cf508(0xc9)])(_0x41433b[_0x7cf508(0x90)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x41433b['route'],_0x7cf508(0xa3))&&_0x30ec64[_0x7cf508(0x8f)](_0x41433b[_0x7cf508(0x90)])===-0x1){if(!(_0x360ef8===null||_0x360ef8===void 0x0?void 0x0:_0x360ef8[_0x7cf508(0xdd)])){let _0x29b351=(0x0,core_3['getMethodParamTypes'])(new _0x22c08b(),_0x23e007[_0x7cf508(0x97)]);for(const _0x31872b in _0x29b351){let _0x7d271e=(_0x31aab8=_0x2c3de3[_0x23e007[_0x7cf508(0x97)]])===null||_0x31aab8===void 0x0?void 0x0:_0x31aab8[_0x7cf508(0xad)](_0x504080=>_0x504080[_0x7cf508(0xda)]==_0x31872b&&_0x504080[_0x7cf508(0xe6)]===core_2[_0x7cf508(0xb0)]&&(_0x504080===null||_0x504080===void 0x0?void 0x0:_0x504080[_0x7cf508(0xdc)]));if(_0x7d271e===null||_0x7d271e===void 0x0?void 0x0:_0x7d271e['metadata']){let _0x67e681=convertTypeToString(_0x7d271e['metadata'][_0x7cf508(0xa9)]||0x0);if(['query','body'][_0x7cf508(0x8f)](_0x67e681)!=-0x1&&_0x7d271e[_0x7cf508(0xdc)]['propertyData']['indexOf'](':')==-0x1&&!_0x41433b[_0x7cf508(0x9e)]['find'](_0xc7a4cf=>_0xc7a4cf[_0x7cf508(0xe6)]==_0x7d271e[_0x7cf508(0xdc)][_0x7cf508(0xde)]))_0x41433b[_0x7cf508(0x9e)][_0x7cf508(0xb3)]({'key':_0x7d271e[_0x7cf508(0xdc)][_0x7cf508(0xde)],'title':_0x7d271e[_0x7cf508(0xdc)][_0x7cf508(0xde)],'type':convertSchemaType(_0x29b351[_0x7d271e[_0x7cf508(0xda)]][_0x7cf508(0xac)]),'required':![],'default':'','desc':''});else{if(_0x67e681=='file'){let _0x301bfc=((_0xdb8070=_0x7d271e===null||_0x7d271e===void 0x0?void 0x0:_0x7d271e[_0x7cf508(0xdc)])===null||_0xdb8070===void 0x0?void 0x0:_0xdb8070['propertyData'])||_0x7cf508(0xa7);_0x301bfc[_0x7cf508(0x8f)](':')==-0x1&&!_0x41433b[_0x7cf508(0x9e)][_0x7cf508(0xad)](_0x265ea1=>_0x265ea1[_0x7cf508(0xe6)]==_0x301bfc&&_0x265ea1['type']==_0x7cf508(0xa7))&&_0x41433b[_0x7cf508(0x9e)][_0x7cf508(0xb3)]({'key':_0x301bfc,'title':_0x7cf508(0xd7)+_0x301bfc,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5ad1c4=(0x0,core_3[_0x7cf508(0xa4)])(validator_1['RULES_KEY'],_0x29b351[_0x31872b]);_0x5ad1c4&&_0x41433b['request'][_0x7cf508(0xb3)](...getJoiRequest(_0x5ad1c4));}}}_0xaaef7c[_0x7cf508(0xa6)]['push'](_0x41433b);}}if(_0xaaef7c[_0x7cf508(0xa6)][_0x7cf508(0x9a)]>0x0){let _0x1ae323=_0x54bc18[_0x36616b];_0x1ae323?(_0x1ae323[_0x7cf508(0xcd)]!=_0xaaef7c[_0x7cf508(0xcd)]&&(_0x1ae323[_0x7cf508(0xcd)]=_0x1ae323[_0x7cf508(0xcd)]+','+_0xaaef7c[_0x7cf508(0xcd)]),_0x1ae323['description']!=_0xaaef7c[_0x7cf508(0xc8)]&&(_0x1ae323[_0x7cf508(0xc8)]=_0x1ae323['description']+','+_0xaaef7c['description']),_0x1ae323['routes']=_0x1ae323['routes'][_0x7cf508(0xe4)](_0xaaef7c[_0x7cf508(0xa6)]),_0x54bc18[_0x36616b]=_0x1ae323):_0x54bc18[_0x36616b]=_0xaaef7c;}}}return _0x54bc18;}exports[a8_0x46ef3e(0xbe)]=getRoutes;function getJoiRequest(_0x27cf2b){const _0x10578a=a8_0x46ef3e,_0x289c57=[];for(let _0xbd123 in _0x27cf2b){const _0x175c9a={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1a50a5=typeof _0x27cf2b[_0xbd123]['describe']==_0x10578a(0xb5)?_0x27cf2b[_0xbd123][_0x10578a(0xd3)]():_0x27cf2b[_0xbd123];_0x175c9a['key']=_0xbd123,_0x175c9a[_0x10578a(0xa9)]=_0x1a50a5['type'],_0x175c9a[_0x10578a(0xa0)]=(0x0,lodash_1['get'])(_0x1a50a5,_0x10578a(0xbd),_0xbd123),_0x175c9a[_0x10578a(0xca)]=(0x0,lodash_1[_0x10578a(0xc5)])(_0x1a50a5,_0x10578a(0xd0),''),_0x175c9a['required']=(0x0,lodash_1['get'])(_0x1a50a5,_0x10578a(0xa1),'')==_0x10578a(0xb1),_0x175c9a[_0x10578a(0xc8)]=(0x0,lodash_1[_0x10578a(0xc5)])(_0x1a50a5,_0x10578a(0xdb),'');if(_0x1a50a5[_0x10578a(0xa9)]==_0x10578a(0xd9))_0x175c9a['children']=getJoiRequest(_0x1a50a5[_0x10578a(0x92)]);else _0x1a50a5[_0x10578a(0xa9)]==_0x10578a(0xb2)&&_0x1a50a5['items']&&Array[_0x10578a(0xcb)](_0x1a50a5['items'])&&_0x1a50a5['items'][0x0]&&console[_0x10578a(0xc0)](_0xbd123+_0x10578a(0xb9),_0x1a50a5);_0x1a50a5[_0x10578a(0xd6)]&&Array['isArray'](_0x1a50a5[_0x10578a(0xd6)])&&_0x1a50a5[_0x10578a(0xd6)]['length']>0x0&&(_0x175c9a[_0x10578a(0xc8)]='只允许:['+_0x1a50a5[_0x10578a(0xd6)]['join'](',')+'];'+_0x175c9a[_0x10578a(0xc8)]);if(_0x175c9a['key']&&_0x175c9a[_0x10578a(0xa9)]){const _0x30547a={};for(const _0xb1dfc4 of _0x1a50a5['rules']||[]){if(_0xb1dfc4[_0x10578a(0xac)]==='min'&&_0xb1dfc4[_0x10578a(0xce)])_0x30547a[_0x10578a(0xbf)]=_0xb1dfc4[_0x10578a(0xce)][_0x10578a(0xc6)];else _0xb1dfc4[_0x10578a(0xac)]==='max'&&(_0x30547a[_0x10578a(0xb6)]=_0xb1dfc4['args'][_0x10578a(0xc6)]);}_0x175c9a[_0x10578a(0xc2)]=_0x30547a;}_0x175c9a['key']&&_0x175c9a[_0x10578a(0xa0)]&&_0x289c57['push'](_0x175c9a);}return _0x289c57;}function convertSchemaType(_0x29c981){const _0xa5739e=a8_0x46ef3e;switch(_0x29c981){case _0xa5739e(0x93):return _0xa5739e(0xd9);case _0xa5739e(0xe3):return _0xa5739e(0xbc);case _0xa5739e(0xaf):return _0xa5739e(0xae);case _0xa5739e(0x9b):return'string';case _0xa5739e(0xcf):return _0xa5739e(0xa7);default:return _0xa5739e(0xa2);}}function convertTypeToString(_0x476f1a){const _0x1f61e2=a8_0x46ef3e;switch(_0x476f1a){case core_1[_0x1f61e2(0xc1)][_0x1f61e2(0xaa)]:return _0x1f61e2(0x95);case core_1[_0x1f61e2(0xc1)]['QUERY']:return'query';case core_1['RouteParamTypes'][_0x1f61e2(0xd1)]:return _0x1f61e2(0xc7);case core_1[_0x1f61e2(0xc1)][_0x1f61e2(0xa8)]:return _0x1f61e2(0xe1);case core_1[_0x1f61e2(0xc1)]['FIELDS']:case core_1[_0x1f61e2(0xc1)][_0x1f61e2(0xcc)]:case core_1[_0x1f61e2(0xc1)]['FILESTREAM']:return _0x1f61e2(0xa7);default:return _0x1f61e2(0x95);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x152bab=a9_0x50d4;(function(_0x2a8a95,_0x24269e){var _0x4c536a=a9_0x50d4,_0x9d985f=_0x2a8a95();while(!![]){try{var _0x2b6bf6=parseInt(_0x4c536a(0x1e4))/0x1*(parseInt(_0x4c536a(0x1e8))/0x2)+-parseInt(_0x4c536a(0x1c2))/0x3*(-parseInt(_0x4c536a(0x1e7))/0x4)+parseInt(_0x4c536a(0x1d1))/0x5*(parseInt(_0x4c536a(0x1f6))/0x6)+-parseInt(_0x4c536a(0x1bd))/0x7*(-parseInt(_0x4c536a(0x1c9))/0x8)+-parseInt(_0x4c536a(0x1ca))/0x9*(parseInt(_0x4c536a(0x1f1))/0xa)+parseInt(_0x4c536a(0x1d0))/0xb*(parseInt(_0x4c536a(0x1cb))/0xc)+-parseInt(_0x4c536a(0x1c8))/0xd;if(_0x2b6bf6===_0x24269e)break;else _0x9d985f['push'](_0x9d985f['shift']());}catch(_0x5a30d9){_0x9d985f['push'](_0x9d985f['shift']());}}}(a9_0xc062,0x60f0c));var __createBinding=this&&this[a9_0x152bab(0x1c7)]||(Object[a9_0x152bab(0x1ef)]?function(_0x35c40e,_0x1ebee8,_0x503878,_0x18d05a){var _0x3c5c84=a9_0x152bab;if(_0x18d05a===undefined)_0x18d05a=_0x503878;var _0x706106=Object[_0x3c5c84(0x1d8)](_0x1ebee8,_0x503878);(!_0x706106||('get'in _0x706106?!_0x1ebee8[_0x3c5c84(0x1cd)]:_0x706106[_0x3c5c84(0x1e6)]||_0x706106[_0x3c5c84(0x1c6)]))&&(_0x706106={'enumerable':!![],'get':function(){return _0x1ebee8[_0x503878];}}),Object[_0x3c5c84(0x1dc)](_0x35c40e,_0x18d05a,_0x706106);}:function(_0x29e03f,_0x1f932e,_0x5295c6,_0x3b1e94){if(_0x3b1e94===undefined)_0x3b1e94=_0x5295c6;_0x29e03f[_0x3b1e94]=_0x1f932e[_0x5295c6];}),__exportStar=this&&this[a9_0x152bab(0x1ee)]||function(_0x5c2985,_0x9f8c47){var _0x42a027=a9_0x152bab;for(var _0x487f96 in _0x5c2985)if(_0x487f96!==_0x42a027(0x1c3)&&!Object[_0x42a027(0x1bf)][_0x42a027(0x1f0)][_0x42a027(0x1ea)](_0x9f8c47,_0x487f96))__createBinding(_0x9f8c47,_0x5c2985,_0x487f96);};Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1cd),{'value':!![]}),exports[a9_0x152bab(0x1f2)]=exports[a9_0x152bab(0x1d5)]=exports[a9_0x152bab(0x1e3)]=exports[a9_0x152bab(0x1dd)]=exports[a9_0x152bab(0x1f4)]=exports[a9_0x152bab(0x1db)]=exports[a9_0x152bab(0x1ec)]=exports[a9_0x152bab(0x1c1)]=exports[a9_0x152bab(0x1d4)]=exports[a9_0x152bab(0x1d2)]=exports['Query']=exports[a9_0x152bab(0x1e0)]=exports[a9_0x152bab(0x1cf)]=exports[a9_0x152bab(0x1e1)]=exports[a9_0x152bab(0x1ba)]=exports[a9_0x152bab(0x1c5)]=exports[a9_0x152bab(0x1cc)]=exports[a9_0x152bab(0x1be)]=exports[a9_0x152bab(0x1d6)]=exports['ExcelService']=exports['ApiService']=exports['EventService']=exports[a9_0x152bab(0x1df)]=exports[a9_0x152bab(0x1c0)]=exports[a9_0x152bab(0x1bc)]=exports[a9_0x152bab(0x1d9)]=exports['Action']=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a9_0x152bab(0x1f2),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x152bab(0x1e5)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x152bab(0x1e2));Object[a9_0x152bab(0x1dc)](exports,'Api',{'enumerable':!![],'get':function(){var _0x42ae6c=a9_0x152bab;return ActionApi_1[_0x42ae6c(0x1da)];}});var Action_1=require(a9_0x152bab(0x1eb));Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1ed),{'enumerable':!![],'get':function(){var _0x2415c1=a9_0x152bab;return Action_1[_0x2415c1(0x1ed)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object['defineProperty'](exports,a9_0x152bab(0x1d9),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x152bab(0x1b9));Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1bc),{'enumerable':!![],'get':function(){var _0x12c924=a9_0x152bab;return getRoutes_1[_0x12c924(0x1bc)];}});var ApiError_1=require(a9_0x152bab(0x1d3));Object['defineProperty'](exports,a9_0x152bab(0x1c0),{'enumerable':!![],'get':function(){var _0x473827=a9_0x152bab;return ApiError_1[_0x473827(0x1c0)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1df),{'enumerable':!![],'get':function(){var _0x153ab7=a9_0x152bab;return cache_1[_0x153ab7(0x1df)];}});var event_1=require(a9_0x152bab(0x1ce));Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1f3),{'enumerable':!![],'get':function(){var _0x12bc37=a9_0x152bab;return event_1[_0x12bc37(0x1f3)];}});var ApiService_1=require('./service/ApiService');function a9_0x50d4(_0x4ba297,_0x564136){var _0xc06278=a9_0xc062();return a9_0x50d4=function(_0x50d4be,_0x848d64){_0x50d4be=_0x50d4be-0x1b9;var _0x1fdad0=_0xc06278[_0x50d4be];return _0x1fdad0;},a9_0x50d4(_0x4ba297,_0x564136);}Object[a9_0x152bab(0x1dc)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x50eef3=a9_0x152bab;return ApiService_1[_0x50eef3(0x1f5)];}});var ExcelService_1=require(a9_0x152bab(0x1d7));function a9_0xc062(){var _0x5b9a4a=['7fdbcaP','ValidatorService','prototype','ApiError','App','42078iNoKhF','default','@midwayjs/core','File','configurable','__createBinding','15462616uHvihj','4153736JKIede','812367jEmzaE','5521092Todfzx','Configuration','__esModule','@anncic-api/event','Body','11zWjvDh','15aHJZgL','Headers','./exception/ApiError','Init','ScopeEnum','ValidatorError','./service/ExcelService','getOwnPropertyDescriptor','Apitest','Api','Logger','defineProperty','Inject','ExcelService','CacheService','Param','Fields','./decorator/ActionApi','Scope','1giJgag','./types/common','writable','72cRHJag','189386zSzdkr','./configuration','call','./decorator/Action','Config','Action','__exportStar','create','hasOwnProperty','30CwwoaG','getAppsConfig','EventService','Provide','ApiService','1061640AyNDsF','Query','./helper/getRoutes','Files','CustomConfiguration','getRoutes'];a9_0xc062=function(){return _0x5b9a4a;};return a9_0xc062();}Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1de),{'enumerable':!![],'get':function(){var _0x3ce380=a9_0x152bab;return ExcelService_1[_0x3ce380(0x1de)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x152bab(0x1dc)](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x152bab(0x1dc)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x21a262=a9_0x152bab;return validator_1[_0x21a262(0x1be)];}});var configuration_1=require(a9_0x152bab(0x1e9));Object[a9_0x152bab(0x1dc)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3af68e=a9_0x152bab;return configuration_1[_0x3af68e(0x1bb)];}});var core_1=require('@midwayjs/core');Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1c5),{'enumerable':!![],'get':function(){var _0xd21c94=a9_0x152bab;return core_1[_0xd21c94(0x1c5)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1ba),{'enumerable':!![],'get':function(){var _0x2252bc=a9_0x152bab;return core_1[_0x2252bc(0x1ba)];}}),Object[a9_0x152bab(0x1dc)](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object['defineProperty'](exports,a9_0x152bab(0x1cf),{'enumerable':!![],'get':function(){var _0x1708fa=a9_0x152bab;return core_1[_0x1708fa(0x1cf)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1e0),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1f7),{'enumerable':!![],'get':function(){var _0x2419c7=a9_0x152bab;return core_1[_0x2419c7(0x1f7)];}}),Object[a9_0x152bab(0x1dc)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x3ff608=a9_0x152bab;return core_1[_0x3ff608(0x1d2)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1d4),{'enumerable':!![],'get':function(){var _0x6a4885=a9_0x152bab;return core_1[_0x6a4885(0x1d4)];}});var core_2=require(a9_0x152bab(0x1c4));Object['defineProperty'](exports,a9_0x152bab(0x1c1),{'enumerable':!![],'get':function(){var _0x59e915=a9_0x152bab;return core_2[_0x59e915(0x1c1)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1ec),{'enumerable':!![],'get':function(){var _0x33bf32=a9_0x152bab;return core_2[_0x33bf32(0x1ec)];}}),Object['defineProperty'](exports,a9_0x152bab(0x1db),{'enumerable':!![],'get':function(){var _0x3d8a31=a9_0x152bab;return core_2[_0x3d8a31(0x1db)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1f4),{'enumerable':!![],'get':function(){var _0x40250c=a9_0x152bab;return core_2[_0x40250c(0x1f4)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1dd),{'enumerable':!![],'get':function(){var _0x5c9948=a9_0x152bab;return core_2[_0x5c9948(0x1dd)];}}),Object['defineProperty'](exports,a9_0x152bab(0x1e3),{'enumerable':!![],'get':function(){var _0x2dfed2=a9_0x152bab;return core_2[_0x2dfed2(0x1e3)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1d5),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x152bab(0x1f2)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a10_0x1cd5d8=a10_0x14ae;(function(_0x2071ab,_0x439251){var _0x21452a=a10_0x14ae,_0x4c4261=_0x2071ab();while(!![]){try{var _0x2eb4b5=parseInt(_0x21452a(0xd9))/0x1*(-parseInt(_0x21452a(0xef))/0x2)+parseInt(_0x21452a(0xdd))/0x3+parseInt(_0x21452a(0xcd))/0x4*(parseInt(_0x21452a(0xcb))/0x5)+parseInt(_0x21452a(0xb9))/0x6+-parseInt(_0x21452a(0xd3))/0x7+parseInt(_0x21452a(0xd1))/0x8+-parseInt(_0x21452a(0xd5))/0x9;if(_0x2eb4b5===_0x439251)break;else _0x4c4261['push'](_0x4c4261['shift']());}catch(_0x1984d0){_0x4c4261['push'](_0x4c4261['shift']());}}}(a10_0x2ea2,0xb3b9f));function a10_0x2ea2(){var _0x3d444d=['logintimeout','design:type','anncicapi','join','devices','crypto-js','缺少头信息:signature','615HiUwav','entries','47036RUTGfA','prototype','function','__decorate','4243680DGSTfJ','ApiError','9463986wkyYqx','ScopeEnum','13239hoSRad','object','decorate','getsign','2ktuFfT','checkcode','map','toLowerCase','1335102swlKEk','sort','@midwayjs/core','TIMEOUT_LOGINTIME','now','logintime','checksign','signature','config','../exception/ApiError','token','secret','push','toString','fromEntries','Provide','Scope','__esModule','697134NyBPgN','TIMEOUT','Singleton','password','HEADERS_LACK','MD5','ApiService','2189466GeDDpc','device','abs','getcheck','Config','length','secret=','getOwnPropertyDescriptor','defineProperty','HEADERS_CHECKCODE','requesttime'];a10_0x2ea2=function(){return _0x3d444d;};return a10_0x2ea2();}var __decorate=this&&this[a10_0x1cd5d8(0xd0)]||function(_0x276ec3,_0x58b000,_0x31c8d8,_0xea0c07){var _0x1cd7ba=a10_0x1cd5d8,_0x1f7bfe=arguments[_0x1cd7ba(0xbe)],_0x35232a=_0x1f7bfe<0x3?_0x58b000:_0xea0c07===null?_0xea0c07=Object[_0x1cd7ba(0xc0)](_0x58b000,_0x31c8d8):_0xea0c07,_0x1673a3;if(typeof Reflect===_0x1cd7ba(0xd6)&&typeof Reflect[_0x1cd7ba(0xd7)]==='function')_0x35232a=Reflect[_0x1cd7ba(0xd7)](_0x276ec3,_0x58b000,_0x31c8d8,_0xea0c07);else{for(var _0x5c7641=_0x276ec3[_0x1cd7ba(0xbe)]-0x1;_0x5c7641>=0x0;_0x5c7641--)if(_0x1673a3=_0x276ec3[_0x5c7641])_0x35232a=(_0x1f7bfe<0x3?_0x1673a3(_0x35232a):_0x1f7bfe>0x3?_0x1673a3(_0x58b000,_0x31c8d8,_0x35232a):_0x1673a3(_0x58b000,_0x31c8d8))||_0x35232a;}return _0x1f7bfe>0x3&&_0x35232a&&Object[_0x1cd7ba(0xc1)](_0x58b000,_0x31c8d8,_0x35232a),_0x35232a;},__metadata=this&&this['__metadata']||function(_0x47e128,_0xd9fcac){var _0x1016d9=a10_0x1cd5d8;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x1016d9(0xcf))return Reflect['metadata'](_0x47e128,_0xd9fcac);};function a10_0x14ae(_0x470992,_0x29909b){var _0x2ea28c=a10_0x2ea2();return a10_0x14ae=function(_0x14ae31,_0x984222){_0x14ae31=_0x14ae31-0xb7;var _0x1945f7=_0x2ea28c[_0x14ae31];return _0x1945f7;},a10_0x14ae(_0x470992,_0x29909b);}Object[a10_0x1cd5d8(0xc1)](exports,a10_0x1cd5d8(0xee),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x1cd5d8(0xc9)),core_1=require(a10_0x1cd5d8(0xdf)),ApiError_1=require(a10_0x1cd5d8(0xe6));let ApiService=class ApiService{[a10_0x1cd5d8(0xf2)](_0x1bec03){var _0x112a44=a10_0x1cd5d8,_0x3b6ea3;return _0x1bec03?(0x0,crypto_js_1['MD5'])(_0x1bec03+(0x0,crypto_js_1[_0x112a44(0xb7)])((0x0,crypto_js_1[_0x112a44(0xb7)])(_0x1bec03)['toString']()+((_0x3b6ea3=this[_0x112a44(0xe5)])===null||_0x3b6ea3===void 0x0?void 0x0:_0x3b6ea3['password']))[_0x112a44(0xea)]())[_0x112a44(0xea)]():'';}[a10_0x1cd5d8(0xbc)](_0x4ac10f,_0x1d0d85,_0x20ed83=Date[a10_0x1cd5d8(0xe1)]()){return{'Token':_0x4ac10f,'Logintime':_0x20ed83,'Checkcode':this['checkcode'](_0x4ac10f,_0x1d0d85,_0x20ed83)};}['getsign'](_0x3b204b={}){var _0x2f6d72=a10_0x1cd5d8,_0x29879d;const _0x5e1749=[],_0x7c3cb4=Object['fromEntries'](Object[_0x2f6d72(0xcc)](_0x3b204b)[_0x2f6d72(0xdb)](_0x3e1ec0=>[_0x3e1ec0[0x0][_0x2f6d72(0xdc)](),_0x3e1ec0[0x1]]));for(let _0x2a7b44 of[_0x2f6d72(0xba),_0x2f6d72(0xc3),_0x2f6d72(0xe7),_0x2f6d72(0xe2),_0x2f6d72(0xda)]){if(typeof _0x7c3cb4[_0x2a7b44]=='undefined')throw new AnnError(ApiError_1[_0x2f6d72(0xd2)][_0x2f6d72(0xf3)],{'message':'缺少头信息:'+_0x2a7b44});_0x5e1749[_0x2f6d72(0xe9)](_0x2a7b44+'='+_0x7c3cb4[_0x2a7b44]);}if(Date[_0x2f6d72(0xe1)]()-Math[_0x2f6d72(0xbb)](_0x7c3cb4['requesttime'])>this[_0x2f6d72(0xe5)]['timeout'])throw new AnnError(ApiError_1[_0x2f6d72(0xd2)][_0x2f6d72(0xf0)]);if((((_0x29879d=this[_0x2f6d72(0xe5)]['devices'][_0x7c3cb4['device']])===null||_0x29879d===void 0x0?void 0x0:_0x29879d['logintimeout'])||0x0)>0x0&&Date[_0x2f6d72(0xe1)]()-Math[_0x2f6d72(0xbb)](_0x7c3cb4[_0x2f6d72(0xe2)])>this['config'][_0x2f6d72(0xc8)][_0x7c3cb4['device']][_0x2f6d72(0xc4)])throw new AnnError(ApiError_1[_0x2f6d72(0xd2)][_0x2f6d72(0xe0)]);if(!this[_0x2f6d72(0xe5)]['devices'][_0x7c3cb4[_0x2f6d72(0xba)]]||!this[_0x2f6d72(0xe5)][_0x2f6d72(0xc8)][_0x7c3cb4[_0x2f6d72(0xba)]][_0x2f6d72(0xe8)]||!this[_0x2f6d72(0xe5)][_0x2f6d72(0xc8)][_0x7c3cb4[_0x2f6d72(0xba)]][_0x2f6d72(0xda)])throw new AnnError(ApiError_1[_0x2f6d72(0xd2)]['HEADERS_DEVICE']);if(_0x7c3cb4['token']&&_0x7c3cb4[_0x2f6d72(0xda)]!=this[_0x2f6d72(0xda)](_0x7c3cb4[_0x2f6d72(0xe7)],_0x7c3cb4[_0x2f6d72(0xba)],_0x7c3cb4['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x2f6d72(0xc2)]);return _0x5e1749[_0x2f6d72(0xe9)](_0x2f6d72(0xbf)+this[_0x2f6d72(0xe5)][_0x2f6d72(0xc8)][_0x7c3cb4[_0x2f6d72(0xba)]][_0x2f6d72(0xe8)]),(0x0,crypto_js_1[_0x2f6d72(0xb7)])(_0x5e1749[_0x2f6d72(0xde)]()[_0x2f6d72(0xc7)](''))[_0x2f6d72(0xea)]();}[a10_0x1cd5d8(0xda)](_0x17c8ea,_0xd05e06,_0x564974=Date[a10_0x1cd5d8(0xe1)]()){var _0x4b1993=a10_0x1cd5d8,_0x9f19a1,_0x41d220,_0x5a1ac8;if(!((_0x9f19a1=this[_0x4b1993(0xe5)])===null||_0x9f19a1===void 0x0?void 0x0:_0x9f19a1[_0x4b1993(0xc8)][_0xd05e06])||!((_0x5a1ac8=(_0x41d220=this[_0x4b1993(0xe5)])===null||_0x41d220===void 0x0?void 0x0:_0x41d220[_0x4b1993(0xc8)][_0xd05e06])===null||_0x5a1ac8===void 0x0?void 0x0:_0x5a1ac8[_0x4b1993(0xda)]))throw new AnnError(ApiError_1[_0x4b1993(0xd2)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x4b1993(0xb7)])(_0x17c8ea+(0x0,crypto_js_1[_0x4b1993(0xb7)])(_0x564974+this['config'][_0x4b1993(0xc8)][_0xd05e06][_0x4b1993(0xda)])['toString']())['toString']();}[a10_0x1cd5d8(0xe3)](_0x1258d8={}){var _0x4e9ba7=a10_0x1cd5d8;const _0x451030=Object[_0x4e9ba7(0xeb)](Object[_0x4e9ba7(0xcc)](_0x1258d8)['map'](_0x472857=>[_0x472857[0x0][_0x4e9ba7(0xdc)](),_0x472857[0x1]]));if(!(_0x451030===null||_0x451030===void 0x0?void 0x0:_0x451030['signature']))throw new AnnError(ApiError_1['ApiError'][_0x4e9ba7(0xf3)],{'message':_0x4e9ba7(0xca)});if((_0x451030===null||_0x451030===void 0x0?void 0x0:_0x451030[_0x4e9ba7(0xe4)])!=this[_0x4e9ba7(0xd8)](_0x451030))throw new AnnError(ApiError_1[_0x4e9ba7(0xd2)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,core_1[a10_0x1cd5d8(0xbd)])(a10_0x1cd5d8(0xc6)),__metadata(a10_0x1cd5d8(0xc5),Object)],ApiService[a10_0x1cd5d8(0xce)],a10_0x1cd5d8(0xe5),void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x1cd5d8(0xec)])(),(0x0,core_1[a10_0x1cd5d8(0xed)])(core_1[a10_0x1cd5d8(0xd4)][a10_0x1cd5d8(0xf1)])],ApiService),exports[a10_0x1cd5d8(0xb8)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x50dc54=a11_0x5813;(function(_0x1b9cca,_0x279910){const _0x14f00f=a11_0x5813,_0x2e8a1a=_0x1b9cca();while(!![]){try{const _0xc8a382=-parseInt(_0x14f00f(0x145))/0x1*(parseInt(_0x14f00f(0x12c))/0x2)+parseInt(_0x14f00f(0x11f))/0x3+parseInt(_0x14f00f(0x143))/0x4*(-parseInt(_0x14f00f(0x135))/0x5)+parseInt(_0x14f00f(0x127))/0x6+parseInt(_0x14f00f(0x154))/0x7+parseInt(_0x14f00f(0x14b))/0x8*(parseInt(_0x14f00f(0x13e))/0x9)+-parseInt(_0x14f00f(0x15e))/0xa;if(_0xc8a382===_0x279910)break;else _0x2e8a1a['push'](_0x2e8a1a['shift']());}catch(_0x3f0eca){_0x2e8a1a['push'](_0x2e8a1a['shift']());}}}(a11_0x3a32,0xa598b));function a11_0x3a32(){const _0x3e5460=['__esModule','design:returntype','ScopeEnum','3429235zmoSdd','../helper/getRoutes','summary','prefix','MidwayEnvironmentService','path','prototype','/apitest','description','933651aDCCRp','/apiteststatic/*','devices','routes','__devices__','4hCHIut','.js','1yyYrHn','apitestmodule','content-type','cache-control','set','Param','56qBZGxv','Controller','module','anncicapi','decorate','__param','utf-8','getRoutes','../../public/','2167067gDwZTo','filepath','join','Inject','length','existsSync','__decorate','../../public/index.html','Config','config','4558380XtYEsi','apidoc','metadata','Provide','substring','apitest','Environment','/apiteststatic/','stringify','ApitestStaticController','application/javascript;\x20charset=utf-8','design:type','public,\x20max-age=604800','replace','function','readFileSync','2045751WvKIKl','ApitestService','extname','url','defineProperty','getOwnPropertyDescriptor','design:paramtypes','object','5413452WCSHLi','apitesthtml','Singleton','isDevelopmentEnvironment','Get','1599890pTbWAF','request','route','ctx','Scope','@midwayjs/core'];a11_0x3a32=function(){return _0x3e5460;};return a11_0x3a32();}function a11_0x5813(_0x207314,_0x5202d0){const _0x3a3271=a11_0x3a32();return a11_0x5813=function(_0x581345,_0x31f647){_0x581345=_0x581345-0x111;let _0x5f4dc0=_0x3a3271[_0x581345];return _0x5f4dc0;},a11_0x5813(_0x207314,_0x5202d0);}var __decorate=this&&this[a11_0x50dc54(0x15a)]||function(_0x5abcb8,_0x491b2e,_0x220272,_0x4cd28c){const _0x545608=a11_0x50dc54;var _0x27a265=arguments['length'],_0x2ad709=_0x27a265<0x3?_0x491b2e:_0x4cd28c===null?_0x4cd28c=Object[_0x545608(0x124)](_0x491b2e,_0x220272):_0x4cd28c,_0x188ff7;if(typeof Reflect===_0x545608(0x126)&&typeof Reflect[_0x545608(0x14f)]===_0x545608(0x11d))_0x2ad709=Reflect[_0x545608(0x14f)](_0x5abcb8,_0x491b2e,_0x220272,_0x4cd28c);else{for(var _0xeb9038=_0x5abcb8[_0x545608(0x158)]-0x1;_0xeb9038>=0x0;_0xeb9038--)if(_0x188ff7=_0x5abcb8[_0xeb9038])_0x2ad709=(_0x27a265<0x3?_0x188ff7(_0x2ad709):_0x27a265>0x3?_0x188ff7(_0x491b2e,_0x220272,_0x2ad709):_0x188ff7(_0x491b2e,_0x220272))||_0x2ad709;}return _0x27a265>0x3&&_0x2ad709&&Object[_0x545608(0x123)](_0x491b2e,_0x220272,_0x2ad709),_0x2ad709;},__metadata=this&&this['__metadata']||function(_0x174de4,_0x2ac65c){const _0x48c36a=a11_0x50dc54;if(typeof Reflect===_0x48c36a(0x126)&&typeof Reflect[_0x48c36a(0x111)]===_0x48c36a(0x11d))return Reflect['metadata'](_0x174de4,_0x2ac65c);},__param=this&&this[a11_0x50dc54(0x150)]||function(_0x17a137,_0x589e30){return function(_0x1d9084,_0x1fa4d6){_0x589e30(_0x1d9084,_0x1fa4d6,_0x17a137);};};Object[a11_0x50dc54(0x123)](exports,a11_0x50dc54(0x132),{'value':!![]}),exports[a11_0x50dc54(0x118)]=exports[a11_0x50dc54(0x120)]=void 0x0;const path_1=require(a11_0x50dc54(0x13a)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x50dc54(0x131)),core_3=require('@midwayjs/core'),getRoutes_1=require(a11_0x50dc54(0x136));let ApitestService=class ApitestService{async[a11_0x50dc54(0x15f)](_0x951a2c){const _0x1cd8ac=a11_0x50dc54,_0x216260=(0x0,getRoutes_1[_0x1cd8ac(0x152)])(_0x951a2c),_0x558929=[];for(let _0x52fd29 in _0x216260){for(let _0x316de3 in _0x216260[_0x52fd29]['routes']){let _0xb71964=_0x216260[_0x52fd29][_0x1cd8ac(0x141)][_0x316de3],_0xee2181=[];for(let _0x9794a4 in _0xb71964[_0x1cd8ac(0x12d)]){_0xee2181['push'](_0xb71964['request'][_0x9794a4]);}_0x558929['push']({'title':_0x216260[_0x52fd29][_0x1cd8ac(0x137)]+':'+_0xb71964['summary'],'prefix':_0x216260[_0x52fd29][_0x1cd8ac(0x138)],'router':_0xb71964[_0x1cd8ac(0x12e)],'method':_0xb71964['method'],'describe':_0xb71964[_0x1cd8ac(0x13d)]||'','filepath':_0x216260[_0x52fd29]['filepath']||'','request':_0xee2181});}}const _0x51c794=(0x0,path_1['join'])(__dirname,_0x1cd8ac(0x15b));return(0x0,fs_1[_0x1cd8ac(0x11e)])(_0x51c794,{'encoding':_0x1cd8ac(0x151)})[_0x1cd8ac(0x11c)](/__res__/g,_0x1cd8ac(0x116))[_0x1cd8ac(0x11c)]('__apiList__',JSON[_0x1cd8ac(0x117)](_0x558929))['replace'](_0x1cd8ac(0x142),JSON[_0x1cd8ac(0x117)](this['config'][_0x1cd8ac(0x140)]));}};__decorate([(0x0,core_3[a11_0x50dc54(0x15c)])(a11_0x50dc54(0x14e)),__metadata('design:type',Object)],ApitestService[a11_0x50dc54(0x13b)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x50dc54(0x112)])(a11_0x50dc54(0x114)),(0x0,core_3[a11_0x50dc54(0x130)])(core_3[a11_0x50dc54(0x134)][a11_0x50dc54(0x129)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x50dc54(0x128)](){const _0x200772=a11_0x50dc54;if(this[_0x200772(0x114)]){const _0x1dfcae={'module':![]};return this[_0x200772(0x115)][_0x200772(0x12a)]()&&(_0x1dfcae[_0x200772(0x155)]=!![]),await this['ApitestService']['apidoc'](_0x1dfcae);}return'';}async['apitestmodule'](_0x421377){const _0x3947c8=a11_0x50dc54;if(this[_0x3947c8(0x114)]){const _0x304c90={'module':_0x421377};return this[_0x3947c8(0x115)]['isDevelopmentEnvironment']()&&(_0x304c90[_0x3947c8(0x155)]=!![]),await this[_0x3947c8(0x120)]['apidoc'](_0x304c90);}return'';}async['apiteststatic'](){const _0xb11ff9=a11_0x50dc54;if((0x0,path_1['extname'])(this[_0xb11ff9(0x12f)]['request'][_0xb11ff9(0x122)])){var _0xe8a3a9=(0x0,path_1[_0xb11ff9(0x156)])(__dirname,_0xb11ff9(0x153)+this[_0xb11ff9(0x12f)][_0xb11ff9(0x12d)][_0xb11ff9(0x122)][_0xb11ff9(0x11c)]('/apiteststatic/','/'));if(_0xe8a3a9[_0xb11ff9(0x113)](_0xe8a3a9[_0xb11ff9(0x158)]-0xb)!='/index.html'){this[_0xb11ff9(0x12f)][_0xb11ff9(0x149)](_0xb11ff9(0x148),_0xb11ff9(0x11b));if((0x0,path_1[_0xb11ff9(0x121)])(this[_0xb11ff9(0x12f)][_0xb11ff9(0x12d)][_0xb11ff9(0x122)])==_0xb11ff9(0x144))this[_0xb11ff9(0x12f)][_0xb11ff9(0x149)](_0xb11ff9(0x147),_0xb11ff9(0x119));else(0x0,path_1['extname'])(this[_0xb11ff9(0x12f)]['request'][_0xb11ff9(0x122)])=='.css'&&this[_0xb11ff9(0x12f)][_0xb11ff9(0x149)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0xb11ff9(0x159)])(_0xe8a3a9)&&(0x0,fs_1[_0xb11ff9(0x11e)])(_0xe8a3a9,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a11_0x50dc54(0x157)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x50dc54(0x12f),void 0x0),__decorate([(0x0,core_3[a11_0x50dc54(0x157)])(),__metadata(a11_0x50dc54(0x11a),core_1[a11_0x50dc54(0x139)])],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x115),void 0x0),__decorate([(0x0,core_3[a11_0x50dc54(0x157)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x120),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x50dc54(0x114)),__metadata(a11_0x50dc54(0x11a),Boolean)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x114),void 0x0),__decorate([(0x0,core_3[a11_0x50dc54(0x15c)])(a11_0x50dc54(0x14e)),__metadata(a11_0x50dc54(0x11a),Object)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x15d),void 0x0),__decorate([(0x0,core_2[a11_0x50dc54(0x12b)])(a11_0x50dc54(0x13c)),__metadata(a11_0x50dc54(0x11a),Function),__metadata(a11_0x50dc54(0x125),[]),__metadata(a11_0x50dc54(0x133),Promise)],ApitestStaticController[a11_0x50dc54(0x13b)],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x50dc54(0x12b)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x50dc54(0x14a)])(a11_0x50dc54(0x14d))),__metadata(a11_0x50dc54(0x11a),Function),__metadata(a11_0x50dc54(0x125),[String]),__metadata(a11_0x50dc54(0x133),Promise)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x146),null),__decorate([(0x0,core_2[a11_0x50dc54(0x12b)])(a11_0x50dc54(0x13f)),__metadata(a11_0x50dc54(0x11a),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x50dc54(0x133),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x50dc54(0x14c)])('/'),(0x0,core_3[a11_0x50dc54(0x130)])(core_3[a11_0x50dc54(0x134)]['Request'])],ApitestStaticController),exports[a11_0x50dc54(0x118)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x578478=a12_0x1047;(function(_0x89e837,_0x545817){const _0x86c1c6=a12_0x1047,_0x1fabc0=_0x89e837();while(!![]){try{const _0x171cc6=-parseInt(_0x86c1c6(0x1c7))/0x1*(parseInt(_0x86c1c6(0x1ba))/0x2)+-parseInt(_0x86c1c6(0x1d4))/0x3*(-parseInt(_0x86c1c6(0x1f2))/0x4)+parseInt(_0x86c1c6(0x1c2))/0x5+parseInt(_0x86c1c6(0x1d9))/0x6+-parseInt(_0x86c1c6(0x1e9))/0x7*(parseInt(_0x86c1c6(0x1cf))/0x8)+-parseInt(_0x86c1c6(0x1e3))/0x9+-parseInt(_0x86c1c6(0x1f1))/0xa*(-parseInt(_0x86c1c6(0x1e6))/0xb);if(_0x171cc6===_0x545817)break;else _0x1fabc0['push'](_0x1fabc0['shift']());}catch(_0x4833a5){_0x1fabc0['push'](_0x1fabc0['shift']());}}}(a12_0x1fbb,0x75e5f));var __decorate=this&&this[a12_0x578478(0x1ea)]||function(_0x54b636,_0x2dad45,_0x1eeaa4,_0xe482a){const _0xd29ce0=a12_0x578478;var _0x2b2501=arguments[_0xd29ce0(0x1d3)],_0x5a7ad7=_0x2b2501<0x3?_0x2dad45:_0xe482a===null?_0xe482a=Object[_0xd29ce0(0x1d5)](_0x2dad45,_0x1eeaa4):_0xe482a,_0x108b00;if(typeof Reflect==='object'&&typeof Reflect[_0xd29ce0(0x1bd)]===_0xd29ce0(0x1da))_0x5a7ad7=Reflect[_0xd29ce0(0x1bd)](_0x54b636,_0x2dad45,_0x1eeaa4,_0xe482a);else{for(var _0x4e1fef=_0x54b636[_0xd29ce0(0x1d3)]-0x1;_0x4e1fef>=0x0;_0x4e1fef--)if(_0x108b00=_0x54b636[_0x4e1fef])_0x5a7ad7=(_0x2b2501<0x3?_0x108b00(_0x5a7ad7):_0x2b2501>0x3?_0x108b00(_0x2dad45,_0x1eeaa4,_0x5a7ad7):_0x108b00(_0x2dad45,_0x1eeaa4))||_0x5a7ad7;}return _0x2b2501>0x3&&_0x5a7ad7&&Object[_0xd29ce0(0x1bf)](_0x2dad45,_0x1eeaa4,_0x5a7ad7),_0x5a7ad7;},__metadata=this&&this[a12_0x578478(0x1b8)]||function(_0x258eee,_0x5876fb){const _0x145512=a12_0x578478;if(typeof Reflect===_0x145512(0x1b9)&&typeof Reflect[_0x145512(0x1ac)]===_0x145512(0x1da))return Reflect[_0x145512(0x1ac)](_0x258eee,_0x5876fb);};Object[a12_0x578478(0x1bf)](exports,'__esModule',{'value':!![]}),exports[a12_0x578478(0x1ef)]=void 0x0;function a12_0x1047(_0x165ceb,_0x5c48fc){const _0x1fbbce=a12_0x1fbb();return a12_0x1047=function(_0x104749,_0x1882cb){_0x104749=_0x104749-0x1aa;let _0x20df50=_0x1fbbce[_0x104749];return _0x20df50;},a12_0x1047(_0x165ceb,_0x5c48fc);}const fs=require('fs'),exceljs=require(a12_0x578478(0x1b2)),koasend=require(a12_0x578478(0x1ad)),core_1=require(a12_0x578478(0x1be));let ExcelService=class ExcelService{async[a12_0x578478(0x1b7)](_0x436c21,_0x1b0fb3,_0x376c7b=[0x0]){const _0x33fe2d=a12_0x578478;var _0x320548,_0x301323;const _0xa69293=new exceljs['Workbook'](),_0x334695=[];let _0x581740=_0x436c21[_0x33fe2d(0x1d6)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x581740===null||_0x581740===void 0x0?void 0x0:_0x581740[_0x33fe2d(0x1b0)]('/'))&&(_0x581740=this[_0x33fe2d(0x1b5)]['getAppDir']()+'/'+_0x581740);try{await _0xa69293[_0x33fe2d(0x1d2)][_0x33fe2d(0x1e4)](_0x581740);}catch(_0x66e98){return console[_0x33fe2d(0x1b4)](_0x33fe2d(0x1af)+_0x581740+_0x33fe2d(0x1f0)),_0x334695;}for(const _0xdcd587 of _0x376c7b){const _0xd93284=lodash[_0x33fe2d(0x1e1)](_0xdcd587)?((_0x320548=_0xa69293[_0x33fe2d(0x1b3)])===null||_0x320548===void 0x0?void 0x0:_0x320548[_0xdcd587])||undefined:_0xa69293['getWorksheet'](_0xdcd587);if(_0xd93284){var _0x1c89cd=0x1;const _0x148419=_0xd93284[_0x33fe2d(0x1cb)](0x1),_0x5b98fe=await new Promise(_0x2dd27c=>{const _0x14e417=_0x33fe2d,_0x5ea00a={};_0x148419[_0x14e417(0x1b1)]((_0x305c8b,_0x263f91)=>{const _0x42566f=_0x14e417;for(const _0x1a4123 of _0x1b0fb3){if(_0x305c8b[_0x42566f(0x1c1)]==_0x1a4123[_0x42566f(0x1dc)])_0x1c89cd=0x2,_0x5ea00a[_0x1a4123[_0x42566f(0x1e0)]]={'header':_0x305c8b['col'],'handler':_0x1a4123[_0x42566f(0x1cc)]};else{if(!_0x5ea00a[_0x1a4123[_0x42566f(0x1e0)]])try{const _0x3ecdfa=_0x148419[_0x42566f(0x1bc)](_0x1a4123[_0x42566f(0x1dc)]);_0x3ecdfa&&(_0x5ea00a[_0x1a4123[_0x42566f(0x1e0)]]={'header':_0x3ecdfa[_0x42566f(0x1e8)],'handler':_0x1a4123[_0x42566f(0x1cc)]});}catch{}}}_0x148419[_0x42566f(0x1c6)]==_0x263f91&&_0x2dd27c(_0x5ea00a);});});for(const _0x31b4a8 of _0xd93284[_0x33fe2d(0x1c4)](_0x1c89cd,_0xd93284[_0x33fe2d(0x1d7)])){const _0x505b37={};for(const _0x4d24d3 in _0x5b98fe){if(_0x5b98fe[_0x4d24d3][_0x33fe2d(0x1dc)]){const _0x3b8119=_0x31b4a8[_0x33fe2d(0x1bc)](_0x5b98fe[_0x4d24d3][_0x33fe2d(0x1dc)]);typeof((_0x301323=_0x5b98fe[_0x4d24d3])===null||_0x301323===void 0x0?void 0x0:_0x301323[_0x33fe2d(0x1cc)])==_0x33fe2d(0x1da)?_0x505b37[_0x4d24d3]=await _0x5b98fe[_0x4d24d3][_0x33fe2d(0x1cc)]((_0x3b8119===null||_0x3b8119===void 0x0?void 0x0:_0x3b8119[_0x33fe2d(0x1c8)]())||'',_0x3b8119[_0x33fe2d(0x1ce)]):_0x505b37[_0x4d24d3]=(_0x3b8119===null||_0x3b8119===void 0x0?void 0x0:_0x3b8119[_0x33fe2d(0x1c8)]())||'';}}Object[_0x33fe2d(0x1db)](_0x505b37)[_0x33fe2d(0x1d3)]>0x0&&_0x334695[_0x33fe2d(0x1ab)](_0x505b37);}}}return _0x334695;}async[a12_0x578478(0x1d8)](_0x1ea8ef,_0x2d5fe4,_0x59bad9,_0x50951b='public/xlsx'){const _0x17f3e0=a12_0x578478;var _0x370544,_0x9a1411;const _0x1775f9=new exceljs[(_0x17f3e0(0x1b6))](),_0x232a03={},_0x52ec18=[],_0x4a5619=_0x1775f9[_0x17f3e0(0x1e5)](_0x17f3e0(0x1ec),{'views':[{'state':_0x17f3e0(0x1c5),'xSplit':0x1}]});for(const _0x1476cb in _0x2d5fe4){_0x232a03[_0x2d5fe4[_0x1476cb]['key']]=_0x2d5fe4[_0x1476cb][_0x17f3e0(0x1dc)],_0x52ec18[_0x17f3e0(0x1ab)]({'header':_0x2d5fe4[_0x1476cb][_0x17f3e0(0x1dc)],'key':(_0x370544=_0x2d5fe4[_0x1476cb])===null||_0x370544===void 0x0?void 0x0:_0x370544[_0x17f3e0(0x1e0)][_0x17f3e0(0x1d6)](/\./g,'_')});}_0x4a5619[_0x17f3e0(0x1df)]=_0x52ec18;for(const _0xc9c14e of _0x59bad9){const _0x55cdc5={};for(const _0x52bceb in _0x2d5fe4){typeof((_0x9a1411=_0x2d5fe4[_0x52bceb])===null||_0x9a1411===void 0x0?void 0x0:_0x9a1411['handler'])==_0x17f3e0(0x1da)?_0x55cdc5[_0x2d5fe4[_0x52bceb][_0x17f3e0(0x1e0)]['replace'](/\./g,'_')]=await _0x2d5fe4[_0x52bceb][_0x17f3e0(0x1cc)](_0xc9c14e):_0x55cdc5[_0x2d5fe4[_0x52bceb][_0x17f3e0(0x1e0)]['replace'](/\./g,'_')]=lodash[_0x17f3e0(0x1d0)](_0xc9c14e,_0x2d5fe4[_0x52bceb][_0x17f3e0(0x1e0)],'');}_0x4a5619[_0x17f3e0(0x1c9)](_0x55cdc5);}let _0x179312='';const _0xaebb08=_0x1ea8ef+'-'+lodash[_0x17f3e0(0x1e7)](0x2710,0x1869f)+_0x17f3e0(0x1ee);if(_0x50951b&&_0x50951b[_0x17f3e0(0x1b0)]('/'))_0x179312=''+_0x50951b;else _0x50951b&&!_0x50951b[_0x17f3e0(0x1b0)]('/')&&!_0x50951b[_0x17f3e0(0x1b0)]('\x5c')?_0x179312=this[_0x17f3e0(0x1b5)][_0x17f3e0(0x1eb)]()+'/'+_0x50951b:_0x179312=this[_0x17f3e0(0x1b5)][_0x17f3e0(0x1eb)]()+_0x17f3e0(0x1c3);return(_0x179312[_0x17f3e0(0x1e2)]('/')||_0x179312[_0x17f3e0(0x1e2)]('\x5c'))&&(_0x179312=_0x179312[_0x17f3e0(0x1ed)](0x0,_0x179312['length']-0x1)),_0x179312=_0x179312[_0x17f3e0(0x1d6)](/(\\|\/)/g,'/')[_0x17f3e0(0x1d6)](/\/{2,}/g,'/'),!fs[_0x17f3e0(0x1aa)](_0x179312)&&fs[_0x17f3e0(0x1dd)](_0x179312,{'recursive':!![]}),await _0x1775f9['xlsx'][_0x17f3e0(0x1ca)]((_0x179312+'/'+_0xaebb08)['replace'](/(\\|\/)/g,'/')[_0x17f3e0(0x1d6)](/\/{2,}/g,'/')),{'filename':_0xaebb08,'filepath':(_0x179312['substring']((''+this['app'][_0x17f3e0(0x1eb)]())[_0x17f3e0(0x1d3)])+'/'+_0xaebb08)[_0x17f3e0(0x1d6)](/(\\|\/)/g,'/')[_0x17f3e0(0x1d6)](/\/{2,}/g,'/')};}async[a12_0x578478(0x1d1)](_0x4fbbff,_0x63bfe7){return await koasend(_0x4fbbff,''+_0x63bfe7);}};__decorate([(0x0,core_1[a12_0x578478(0x1cd)])(),__metadata(a12_0x578478(0x1ae),Object)],ExcelService['prototype'],a12_0x578478(0x1b5),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x578478(0x1c0)])(),(0x0,core_1['Scope'])(core_1[a12_0x578478(0x1de)][a12_0x578478(0x1bb)])],ExcelService),exports[a12_0x578478(0x1ef)]=ExcelService;function a12_0x1fbb(){const _0x4de3f1=['length','1306194svFsJp','getOwnPropertyDescriptor','replace','rowCount','export','211212qSjtLY','function','keys','header','mkdirSync','ScopeEnum','columns','key','isNumber','endsWith','1028187RKhyYj','readFile','addWorksheet','2893XqbRWQ','random','col','7VNnUnb','__decorate','getAppDir','Sheet\x201','substring','.xlsx','ExcelService','\x20is\x20read\x20fail','17950iUcYTq','4tQcEVq','existsSync','push','metadata','koa-send','design:type','Api\x20Excel\x20Error:\x20','startsWith','eachCell','exceljs','worksheets','log','app','Workbook','parse','__metadata','object','50066cNehCO','Singleton','getCell','decorate','@midwayjs/core','defineProperty','Provide','value','2800045BlTLPC','/public/xlsx','findRows','frozen','cellCount','5uPVPki','toString','addRow','writeFile','getRow','handler','App','model','6243000hnQobb','get','download','xlsx'];a12_0x1fbb=function(){return _0x4de3f1;};return a12_0x1fbb();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x10b03e=a13_0x13eb;(function(_0x4bbc59,_0x1c8577){var _0x4448d7=a13_0x13eb,_0x48b364=_0x4bbc59();while(!![]){try{var _0x51d96f=parseInt(_0x4448d7(0xa1))/0x1+-parseInt(_0x4448d7(0xa7))/0x2*(-parseInt(_0x4448d7(0xa5))/0x3)+-parseInt(_0x4448d7(0xa2))/0x4+parseInt(_0x4448d7(0xad))/0x5+-parseInt(_0x4448d7(0xa3))/0x6+parseInt(_0x4448d7(0xa6))/0x7+-parseInt(_0x4448d7(0x9f))/0x8;if(_0x51d96f===_0x1c8577)break;else _0x48b364['push'](_0x48b364['shift']());}catch(_0x3d5f5d){_0x48b364['push'](_0x48b364['shift']());}}}(a13_0x5df6,0xca3ed));function a13_0x13eb(_0x3ecdce,_0x1ffa93){var _0x5df649=a13_0x5df6();return a13_0x13eb=function(_0x13eb39,_0x1b27af){_0x13eb39=_0x13eb39-0x9f;var _0x20a6dd=_0x5df649[_0x13eb39];return _0x20a6dd;},a13_0x13eb(_0x3ecdce,_0x1ffa93);}Object[a13_0x10b03e(0xa8)](exports,a13_0x10b03e(0xaa),{'value':!![]}),exports[a13_0x10b03e(0xae)]=exports['APPSCONFIG_KEY']=exports[a13_0x10b03e(0xaf)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x10b03e(0xa9)]=a13_0x10b03e(0xac),exports['ACTION_ROUTE_KEY']=a13_0x10b03e(0xa0),exports[a13_0x10b03e(0xa4)]=a13_0x10b03e(0xab);function a13_0x5df6(){var _0xb4cf7c=['ACTION_KEY','__esModule','anncic-api:apps:config','anncic-api:action','7700365ZQNscT','AppsConfigTmp','ACTION_ROUTE_KEY','18616928zciCbj','anncic-api:action:route','866767cgPxWg','1373188EFKoEZ','941622oYHUFm','APPSCONFIG_KEY','57ihnKcq','1731387rvQVlF','105428IQoiWM','defineProperty'];a13_0x5df6=function(){return _0xb4cf7c;};return a13_0x5df6();}class AppsConfigTmp{}exports[a13_0x10b03e(0xae)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a14_0xc3a6b8=a14_0x16e7;function a14_0x16e7(_0x287474,_0x46ac59){var _0x1c22a5=a14_0x1c22();return a14_0x16e7=function(_0x16e7c6,_0x58d081){_0x16e7c6=_0x16e7c6-0x8f;var _0x2ef79e=_0x1c22a5[_0x16e7c6];return _0x2ef79e;},a14_0x16e7(_0x287474,_0x46ac59);}(function(_0x5c5d74,_0x3d95fd){var _0x3bb05e=a14_0x16e7,_0x356d38=_0x5c5d74();while(!![]){try{var _0x26b4a9=parseInt(_0x3bb05e(0xab))/0x1*(-parseInt(_0x3bb05e(0xb1))/0x2)+parseInt(_0x3bb05e(0xa3))/0x3+parseInt(_0x3bb05e(0xa4))/0x4*(parseInt(_0x3bb05e(0xaa))/0x5)+parseInt(_0x3bb05e(0xaf))/0x6*(-parseInt(_0x3bb05e(0x98))/0x7)+-parseInt(_0x3bb05e(0xb0))/0x8+parseInt(_0x3bb05e(0x8f))/0x9+parseInt(_0x3bb05e(0xa9))/0xa;if(_0x26b4a9===_0x3d95fd)break;else _0x356d38['push'](_0x356d38['shift']());}catch(_0x344836){_0x356d38['push'](_0x356d38['shift']());}}}(a14_0x1c22,0xb8f69));function a14_0x1c22(){var _0x43bbf4=['2162PIBFee','min','metadata','defineProperty','8777259jAFTby','__esModule','Rule','design:type','length','排序方式','_size','decorate','object','734447qhnrrB','trim','prototype','function','number','_isreverse','__decorate','__metadata','valid','integer','RuleType','2645844AapLoZ','757136ukjCOA','@anncic-api/validator','分页数量','PageDTO','1:是;0:否','10998630PdPPlP','20foTmbP','942noRQea','_page','_order','string','78JhwDvm','4594512tsagrI'];a14_0x1c22=function(){return _0x43bbf4;};return a14_0x1c22();}var __decorate=this&&this[a14_0xc3a6b8(0x9e)]||function(_0x20d077,_0x20eac9,_0x4beca2,_0x2f98e7){var _0x538840=a14_0xc3a6b8,_0x50c2d2=arguments['length'],_0x2718f7=_0x50c2d2<0x3?_0x20eac9:_0x2f98e7===null?_0x2f98e7=Object['getOwnPropertyDescriptor'](_0x20eac9,_0x4beca2):_0x2f98e7,_0x23b725;if(typeof Reflect===_0x538840(0x97)&&typeof Reflect[_0x538840(0x96)]===_0x538840(0x9b))_0x2718f7=Reflect[_0x538840(0x96)](_0x20d077,_0x20eac9,_0x4beca2,_0x2f98e7);else{for(var _0x430e98=_0x20d077[_0x538840(0x93)]-0x1;_0x430e98>=0x0;_0x430e98--)if(_0x23b725=_0x20d077[_0x430e98])_0x2718f7=(_0x50c2d2<0x3?_0x23b725(_0x2718f7):_0x50c2d2>0x3?_0x23b725(_0x20eac9,_0x4beca2,_0x2718f7):_0x23b725(_0x20eac9,_0x4beca2))||_0x2718f7;}return _0x50c2d2>0x3&&_0x2718f7&&Object[_0x538840(0xb4)](_0x20eac9,_0x4beca2,_0x2718f7),_0x2718f7;},__metadata=this&&this[a14_0xc3a6b8(0x9f)]||function(_0x58d8ff,_0x110771){var _0x1acd31=a14_0xc3a6b8;if(typeof Reflect===_0x1acd31(0x97)&&typeof Reflect[_0x1acd31(0xb3)]===_0x1acd31(0x9b))return Reflect['metadata'](_0x58d8ff,_0x110771);};Object[a14_0xc3a6b8(0xb4)](exports,a14_0xc3a6b8(0x90),{'value':!![]}),exports[a14_0xc3a6b8(0xa7)]=void 0x0;const validator_1=require(a14_0xc3a6b8(0xa5));class PageDTO{}__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])('分页',validator_1['RuleType'][a14_0xc3a6b8(0x9c)]()[a14_0xc3a6b8(0xa1)]()[a14_0xc3a6b8(0xb2)](0x1),'第一页为1,第二页为2'),__metadata(a14_0xc3a6b8(0x92),Number)],PageDTO[a14_0xc3a6b8(0x9a)],a14_0xc3a6b8(0xac),void 0x0),__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])(a14_0xc3a6b8(0xa6),validator_1['RuleType'][a14_0xc3a6b8(0x9c)]()[a14_0xc3a6b8(0xa1)]()[a14_0xc3a6b8(0xb2)](0x1)),__metadata(a14_0xc3a6b8(0x92),Number)],PageDTO[a14_0xc3a6b8(0x9a)],a14_0xc3a6b8(0x95),void 0x0),__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])(a14_0xc3a6b8(0x94),validator_1[a14_0xc3a6b8(0xa2)][a14_0xc3a6b8(0xae)]()[a14_0xc3a6b8(0x99)]()),__metadata('design:type',String)],PageDTO[a14_0xc3a6b8(0x9a)],a14_0xc3a6b8(0xad),void 0x0),__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])('是否倒序',validator_1[a14_0xc3a6b8(0xa2)][a14_0xc3a6b8(0x9c)]()[a14_0xc3a6b8(0xa1)]()[a14_0xc3a6b8(0xa0)](0x0,0x1),a14_0xc3a6b8(0xa8)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0xc3a6b8(0x9d),void 0x0),exports[a14_0xc3a6b8(0xa7)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
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.18",
|
|
21
|
+
"@anncic-api/core": "^1.4.18",
|
|
22
|
+
"@anncic-api/event": "^1.4.18",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.18",
|
|
24
|
+
"@anncic-api/validator": "^1.4.18",
|
|
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.18",
|
|
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": "f9a781ab903291fd6c33e03f836445575024623b"
|
|
43
43
|
}
|