anncic-api 3.7.5 → 3.7.7
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.local.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/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.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/helper/getSwaggerJson.d.ts +29 -9
- package/dist/helper/getSwaggerJson.js +1 -1
- package/dist/index.d.ts +1 -0
- 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/service/ExcelStream.js +1 -1
- package/dist/types/action.d.ts +20 -0
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x16ec7c=a0_0x1487;(function(_0x2280bc,_0x247369){var _0x4a7534=a0_0x1487,_0x4213f2=_0x2280bc();while(!![]){try{var _0x56541f=-parseInt(_0x4a7534(0xcb))/0x1*(-parseInt(_0x4a7534(0xc0))/0x2)+-parseInt(_0x4a7534(0xb2))/0x3+parseInt(_0x4a7534(0xd0))/0x4*(parseInt(_0x4a7534(0xb1))/0x5)+-parseInt(_0x4a7534(0xb5))/0x6+parseInt(_0x4a7534(0xbe))/0x7*(parseInt(_0x4a7534(0xb0))/0x8)+parseInt(_0x4a7534(0xc9))/0x9*(parseInt(_0x4a7534(0xc3))/0xa)+-parseInt(_0x4a7534(0xcd))/0xb;if(_0x56541f===_0x247369)break;else _0x4213f2['push'](_0x4213f2['shift']());}catch(_0x215ab6){_0x4213f2['push'](_0x4213f2['shift']());}}}(a0_0x5698,0x2b5dc));function a0_0x1487(_0x3f6de8,_0xdf62e1){var _0xe4b4e8=a0_0x5698();return a0_0x1487=function(_0x2e5586,_0x12dcb5){_0x2e5586=_0x2e5586-0xb0;var _0x5698da=_0xe4b4e8[_0x2e5586];return _0x5698da;},a0_0x1487(_0x3f6de8,_0xdf62e1);}var a0_0x12dcb5=(function(){var _0x4607e2=!![];return function(_0x246688,_0x56ad6b){var _0x5dafac=_0x4607e2?function(){var _0x385312=a0_0x1487;if(_0x56ad6b){var _0x415bbf=_0x56ad6b[_0x385312(0xbf)](_0x246688,arguments);return _0x56ad6b=null,_0x415bbf;}}:function(){};return _0x4607e2=![],_0x5dafac;};}()),a0_0x2e5586=a0_0x12dcb5(this,function(){var _0x57a818=a0_0x1487;return a0_0x2e5586['toString']()[_0x57a818(0xb9)](_0x57a818(0xba))[_0x57a818(0xb4)]()[_0x57a818(0xc1)](a0_0x2e5586)[_0x57a818(0xb9)](_0x57a818(0xba));});function a0_0x5698(){var _0x375bf7=['file','424466eJsBru','apply','74326ivJQrY','constructor','appDir','477380dnTJQe','zhiulanuiy7892387985hnoi','json','/runtime/.upload','name','__esModule','45gxiqSm','defineProperty','5GWYWop','dhauo1234420123gg3234901','4872857TyMpSL','{midway-bull}{','text','1344940YgnmVL','32UkVBQc','5onlWqL','777591ktChKy','default','toString','740880SNnxmS','_token','20mb','env','search','(((.+)+)+)+$','/runtime','270d'];a0_0x5698=function(){return _0x375bf7;};return a0_0x5698();}a0_0x2e5586();'use strict';Object[a0_0x16ec7c(0xca)](exports,a0_0x16ec7c(0xc8),{'value':!![]}),exports[a0_0x16ec7c(0xb3)]=_0x251d00=>{var _0x37e4a7=a0_0x16ec7c;return{'apitest':!![],'keys':_0x251d00['name'],'anncicapi':{'requestKey':_0x37e4a7(0xb6),'password':_0x37e4a7(0xc4),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x37e4a7(0xcc)}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':_0x37e4a7(0xbc),'dir':_0x251d00[_0x37e4a7(0xc2)]+_0x37e4a7(0xbb)}},'bodyParser':{'enableTypes':[_0x37e4a7(0xc5),'form',_0x37e4a7(0xcf),'xml'],'formLimit':'20mb','jsonLimit':'20mb','textLimit':_0x37e4a7(0xb7),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x251d00['appDir']+_0x37e4a7(0xc6),'cleanTimeout':0x5265c00},'busboy':{'mode':_0x37e4a7(0xbd),'tmpdir':_0x251d00['appDir']+_0x37e4a7(0xc6),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x37e4a7(0xce)+_0x251d00[_0x37e4a7(0xc7)]+':'+((_0x251d00===null||_0x251d00===void 0x0?void 0x0:_0x251d00[_0x37e4a7(0xb8)])?_0x251d00[_0x37e4a7(0xb8)]+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a1_0xbaba(_0xef5c3d,_0x591625){var _0x2ab810=a1_0x3323();return a1_0xbaba=function(_0x2daaf3,_0x10d79a){_0x2daaf3=_0x2daaf3-0x1ae;var _0x33234b=_0x2ab810[_0x2daaf3];return _0x33234b;},a1_0xbaba(_0xef5c3d,_0x591625);}function a1_0x3323(){var _0x38744c=['4757352ZRycOn','constructor','__esModule','13480270oVJJBv','15828FICdQe','2236008KtNqFY','(((.+)+)+)+$','2996HSfNWD','apply','search','toString','4865QSvpYt','3620997hrCeQv','default','174387KzJxYb','defineProperty','4zEIIBg','7hxPnlt'];a1_0x3323=function(){return _0x38744c;};return a1_0x3323();}var a1_0x4618fb=a1_0xbaba;(function(_0x2e81db,_0x473ae4){var _0x5b2d20=a1_0xbaba,_0x54dc00=_0x2e81db();while(!![]){try{var _0x277181=parseInt(_0x5b2d20(0x1ae))/0x1*(parseInt(_0x5b2d20(0x1b0))/0x2)+-parseInt(_0x5b2d20(0x1b7))/0x3+parseInt(_0x5b2d20(0x1b9))/0x4*(-parseInt(_0x5b2d20(0x1bd))/0x5)+-parseInt(_0x5b2d20(0x1b6))/0x6+-parseInt(_0x5b2d20(0x1b1))/0x7*(-parseInt(_0x5b2d20(0x1b2))/0x8)+-parseInt(_0x5b2d20(0x1be))/0x9+parseInt(_0x5b2d20(0x1b5))/0xa;if(_0x277181===_0x473ae4)break;else _0x54dc00['push'](_0x54dc00['shift']());}catch(_0x508832){_0x54dc00['push'](_0x54dc00['shift']());}}}(a1_0x3323,0x64ae2));var a1_0x10d79a=(function(){var _0x15ab96=!![];return function(_0x45b27a,_0x5f3e92){var _0x31b1e4=_0x15ab96?function(){var _0xba5a3c=a1_0xbaba;if(_0x5f3e92){var _0xfa62e9=_0x5f3e92[_0xba5a3c(0x1ba)](_0x45b27a,arguments);return _0x5f3e92=null,_0xfa62e9;}}:function(){};return _0x15ab96=![],_0x31b1e4;};}()),a1_0x2daaf3=a1_0x10d79a(this,function(){var _0x32992f=a1_0xbaba;return a1_0x2daaf3[_0x32992f(0x1bc)]()[_0x32992f(0x1bb)]('(((.+)+)+)+$')[_0x32992f(0x1bc)]()[_0x32992f(0x1b3)](a1_0x2daaf3)[_0x32992f(0x1bb)](_0x32992f(0x1b8));});a1_0x2daaf3();'use strict';Object[a1_0x4618fb(0x1af)](exports,a1_0x4618fb(0x1b4),{'value':!![]}),exports[a1_0x4618fb(0x1bf)]=_0xd652b2=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x2f6c(){var _0x4f12e7=['(((.+)+)+)+$','4539776RhLbxi','1QxLZHs','1761766Wmfjlx','defineProperty','search','__esModule','constructor','244689ToRxBY','6325308fglhBC','18043680vJzEWd','default','apply','7737002ADKbeq','1878145bOvGbD'];a2_0x2f6c=function(){return _0x4f12e7;};return a2_0x2f6c();}var a2_0x476e6f=a2_0x46d0;(function(_0x3451e8,_0x2680c1){var _0x5ed8d3=a2_0x46d0,_0x5494c4=_0x3451e8();while(!![]){try{var _0x44abac=parseInt(_0x5ed8d3(0xeb))/0x1*(-parseInt(_0x5ed8d3(0xec))/0x2)+parseInt(_0x5ed8d3(0xe2))/0x3+-parseInt(_0x5ed8d3(0xea))/0x4+parseInt(_0x5ed8d3(0xe8))/0x5+parseInt(_0x5ed8d3(0xe3))/0x6+-parseInt(_0x5ed8d3(0xe7))/0x7+parseInt(_0x5ed8d3(0xe4))/0x8;if(_0x44abac===_0x2680c1)break;else _0x5494c4['push'](_0x5494c4['shift']());}catch(_0x342875){_0x5494c4['push'](_0x5494c4['shift']());}}}(a2_0x2f6c,0x9da7d));function a2_0x46d0(_0x1255d2,_0x5a4dbb){var _0x2a8838=a2_0x2f6c();return a2_0x46d0=function(_0x321e09,_0x43a542){_0x321e09=_0x321e09-0xe2;var _0x2f6cce=_0x2a8838[_0x321e09];return _0x2f6cce;},a2_0x46d0(_0x1255d2,_0x5a4dbb);}var a2_0x43a542=(function(){var _0xd6a27b=!![];return function(_0x184ced,_0x488b77){var _0x600f0b=_0xd6a27b?function(){var _0x50ad80=a2_0x46d0;if(_0x488b77){var _0x20bc67=_0x488b77[_0x50ad80(0xe6)](_0x184ced,arguments);return _0x488b77=null,_0x20bc67;}}:function(){};return _0xd6a27b=![],_0x600f0b;};}()),a2_0x321e09=a2_0x43a542(this,function(){var _0x38d798=a2_0x46d0;return a2_0x321e09['toString']()['search'](_0x38d798(0xe9))['toString']()[_0x38d798(0xf0)](a2_0x321e09)[_0x38d798(0xee)]('(((.+)+)+)+$');});a2_0x321e09();'use strict';Object[a2_0x476e6f(0xed)](exports,a2_0x476e6f(0xef),{'value':!![]}),exports[a2_0x476e6f(0xe5)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x29c6(_0x1c48f4,_0x35a512){const _0x1ca611=a3_0x4923();return a3_0x29c6=function(_0x23e4a1,_0x1e2d12){_0x23e4a1=_0x23e4a1-0x97;let _0x492359=_0x1ca611[_0x23e4a1];return _0x492359;},a3_0x29c6(_0x1c48f4,_0x35a512);}const a3_0x533d67=a3_0x29c6;(function(_0x1db502,_0x216031){const _0x17ccb9=a3_0x29c6,_0x2a34b9=_0x1db502();while(!![]){try{const _0x49757c=-parseInt(_0x17ccb9(0xe1))/0x1+parseInt(_0x17ccb9(0xdf))/0x2*(-parseInt(_0x17ccb9(0x10e))/0x3)+-parseInt(_0x17ccb9(0x113))/0x4+parseInt(_0x17ccb9(0xa7))/0x5*(parseInt(_0x17ccb9(0xd3))/0x6)+-parseInt(_0x17ccb9(0xaf))/0x7+-parseInt(_0x17ccb9(0xef))/0x8+parseInt(_0x17ccb9(0xd7))/0x9*(parseInt(_0x17ccb9(0x11c))/0xa);if(_0x49757c===_0x216031)break;else _0x2a34b9['push'](_0x2a34b9['shift']());}catch(_0x1989b8){_0x2a34b9['push'](_0x2a34b9['shift']());}}}(a3_0x4923,0x47e23));const a3_0x1e2d12=(function(){let _0x49dbfe=!![];return function(_0x12b37d,_0x188a64){const _0x473a8e=_0x49dbfe?function(){const _0x694ee9=a3_0x29c6;if(_0x188a64){const _0x350ce6=_0x188a64[_0x694ee9(0xc7)](_0x12b37d,arguments);return _0x188a64=null,_0x350ce6;}}:function(){};return _0x49dbfe=![],_0x473a8e;};}()),a3_0x23e4a1=a3_0x1e2d12(this,function(){const _0xe45203=a3_0x29c6;return a3_0x23e4a1['toString']()[_0xe45203(0xfa)](_0xe45203(0xac))[_0xe45203(0xf8)]()['constructor'](a3_0x23e4a1)[_0xe45203(0xfa)](_0xe45203(0xac));});a3_0x23e4a1();'use strict';var __decorate=this&&this[a3_0x533d67(0x10d)]||function(_0x4e10a7,_0x43815e,_0x307fdc,_0x20f9ce){const _0x4a699c=a3_0x533d67;var _0x10d7ee=arguments[_0x4a699c(0xc9)],_0x5410f7=_0x10d7ee<0x3?_0x43815e:_0x20f9ce===null?_0x20f9ce=Object['getOwnPropertyDescriptor'](_0x43815e,_0x307fdc):_0x20f9ce,_0x2f83c2;if(typeof Reflect===_0x4a699c(0xb2)&&typeof Reflect[_0x4a699c(0xa3)]===_0x4a699c(0xf6))_0x5410f7=Reflect[_0x4a699c(0xa3)](_0x4e10a7,_0x43815e,_0x307fdc,_0x20f9ce);else{for(var _0x3404ce=_0x4e10a7[_0x4a699c(0xc9)]-0x1;_0x3404ce>=0x0;_0x3404ce--)if(_0x2f83c2=_0x4e10a7[_0x3404ce])_0x5410f7=(_0x10d7ee<0x3?_0x2f83c2(_0x5410f7):_0x10d7ee>0x3?_0x2f83c2(_0x43815e,_0x307fdc,_0x5410f7):_0x2f83c2(_0x43815e,_0x307fdc))||_0x5410f7;}return _0x10d7ee>0x3&&_0x5410f7&&Object[_0x4a699c(0x124)](_0x43815e,_0x307fdc,_0x5410f7),_0x5410f7;},__metadata=this&&this[a3_0x533d67(0x117)]||function(_0x1c7a79,_0x1b2016){const _0x4442bd=a3_0x533d67;if(typeof Reflect===_0x4442bd(0xb2)&&typeof Reflect[_0x4442bd(0xb5)]===_0x4442bd(0xf6))return Reflect['metadata'](_0x1c7a79,_0x1b2016);};Object[a3_0x533d67(0x124)](exports,a3_0x533d67(0xa6),{'value':!![]}),exports[a3_0x533d67(0x97)]=void 0x0;const core_1=require(a3_0x533d67(0x12f)),core_2=require(a3_0x533d67(0x12f)),ApiError_1=require(a3_0x533d67(0xf0)),ApiService_1=require('./service/ApiService'),intercept_1=require(a3_0x533d67(0xcc)),action_1=require(a3_0x533d67(0xca)),fs=require('fs'),path=require(a3_0x533d67(0xa4)),koasend=require('koa-send'),koa=require(a3_0x533d67(0xc4)),upload=require('@midwayjs/busboy'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a3_0x533d67(0xf5)),ConfigDefault=require(a3_0x533d67(0x12a)),ConfigProduction=require(a3_0x533d67(0xc6)),anncic=require(a3_0x533d67(0x131)),anncicCache=require(a3_0x533d67(0xdc)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a3_0x533d67(0x12e)),anncicHelper=require(a3_0x533d67(0xdd));function a3_0x4923(){const _0x3fbc18=['target','clients','runtime','isArray','isFunction','/app','hanlderApplications','includes','MidwayApplicationManager','文件不存在','method','getBaseDir','existsSync','request','apimit','__decorate','36WwpZOC','req','Inject','log','isDevelopmentEnvironment','1717324zpjEaZ','defaultsDeep','InterceptTargetTmp','filepath','__metadata','keys','routerName','isClass','readdirSync','14390yttcfc','Types','requestKey','koa','_matchedRouteMeta','HEADERS_SIGNATURE','attachment','requestContext','defineProperty','string','mkdirSync','MidwayEnvironmentService','getAsync','parse','./config/config.default','undefined','getAppDir','substring','@anncic-api/validator','@midwayjs/core','body','@anncic-api/core','MidwayConfigService','checksign','description','midwayLogger','CustomConfiguration','https://','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','isString','name','dir','ApiService','statSync','application','tagName','basic.log','devices','decorate','path','isNull','__esModule','1640jXuYZA','defineProperties','toLowerCase','connection','onReady','(((.+)+)+)+$','tmpdir','host','2412690nEjFHE','match','anncic-api','object','prototype','ApiError','metadata','decorator','apps-','upload','basic','AppsConfigTmp','/apps/','forEach','getClassMetadata','REQUEST_OBJ_CTX_KEY','getApplications','createLogger','join','app.log','getConfiguration','@midwayjs/koa','anncicapi','./config/config.production','apply','ACTION_KEY','length','./types/action','config','./types/intercept','MidwayLoggerService','bodyXml','headers','context','get','/basic','672ThacMy','input','args','dirs','12951cNzyYW','environment','APPSCONFIG_KEY','intercept','encrypted','@anncic-api/cache','anncic-apihelper','isDirectory','78194PaKLUU','MidwayDecoratorService','453708CuGmnL','handler','query','registerMethodHandler','Anncic-api\x20static-file\x20:\x20mkdir\x20','443','design:type','app','/apps','.log','_UNKNOW_','requestMethod','DEFAULT','filterConfig','929192KYUEiP','./exception/ApiError','_matchedRoute','addObject','device','module','@midwayjs/cross-domain','function','staticFile','toString','handlerActionRoute','search','http://','loggerConfig','key'];a3_0x4923=function(){return _0x3fbc18;};return a3_0x4923();}let CustomConfiguration=class CustomConfiguration{async[a3_0x533d67(0xab)](){const _0x298694=a3_0x533d67;await this[_0x298694(0xee)](),await this['loggerConfig'](),await this['handlerActionRoute'](),await this[_0x298694(0x104)]();}async[a3_0x533d67(0xf9)](){const _0x6717d2=a3_0x533d67,_0x2aa4f9=this['config'][_0x6717d2(0xc3)](),_0x24cf60=(0x0,core_1[_0x6717d2(0xbd)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x6717d2(0x115)])||{};this[_0x6717d2(0xb6)][_0x6717d2(0xe4)](action_1['ACTION_ROUTE_KEY'],_0x376e87=>{const _0x21d4c2=_0x6717d2;var _0x39e861;const _0x1167ff=(0x0,core_1[_0x21d4c2(0xbd)])(action_1[_0x21d4c2(0xd9)],action_1[_0x21d4c2(0xba)])||{},_0x431099=_0x376e87[_0x21d4c2(0xb5)],_0x1833aa=(0x0,core_1[_0x21d4c2(0xbd)])(action_1[_0x21d4c2(0xc8)],_0x376e87[_0x21d4c2(0xfe)])||{},_0x10c04f=((_0x39e861=_0x1833aa===null||_0x1833aa===void 0x0?void 0x0:_0x1833aa[_0x21d4c2(0x116)])===null||_0x39e861===void 0x0?void 0x0:_0x39e861[_0x21d4c2(0x12d)](0x0,_0x1833aa[_0x21d4c2(0x116)]['lastIndexOf']('.')))||'',_0x1182a7=(_0x1833aa===null||_0x1833aa===void 0x0?void 0x0:_0x1833aa[_0x21d4c2(0xf4)])?(_0x1167ff===null||_0x1167ff===void 0x0?void 0x0:_0x1167ff[_0x1833aa['module']])||{}:{};return{'before':async _0x14793a=>{const _0x1bf44e=_0x21d4c2;var _0x5286f6,_0x4b8a7c,_0x28d1ba,_0x42adf7;const _0x25f1f0=(_0x5286f6=_0x14793a===null||_0x14793a===void 0x0?void 0x0:_0x14793a['target'])===null||_0x5286f6===void 0x0?void 0x0:_0x5286f6[core_2[_0x1bf44e(0xbe)]],_0x54f0ce=lodash[_0x1bf44e(0x114)]({},_0x25f1f0[_0x1bf44e(0x10b)][_0x1bf44e(0x130)]||_0x25f1f0[_0x1bf44e(0x10b)][((_0x4b8a7c=_0x2aa4f9===null||_0x2aa4f9===void 0x0?void 0x0:_0x2aa4f9[_0x1bf44e(0xce)])===null||_0x4b8a7c===void 0x0?void 0x0:_0x4b8a7c['key'])||_0x1bf44e(0x130)]||{},_0x25f1f0[_0x1bf44e(0x10b)][_0x1bf44e(0xe3)]||{});_0x25f1f0[_0x1bf44e(0x120)]={'module':(_0x1182a7===null||_0x1182a7===void 0x0?void 0x0:_0x1182a7[_0x1bf44e(0x9b)])||'','routePath':''+_0x25f1f0[_0x1bf44e(0xa4)],'routeName':_0x1833aa['routerOptions'][_0x1bf44e(0xa0)]+'@'+_0x431099[_0x1bf44e(0x119)],'routeMethod':((_0x431099===null||_0x431099===void 0x0?void 0x0:_0x431099[_0x1bf44e(0xec)])||_0x25f1f0['method']||'')[_0x1bf44e(0xa9)](),'routeDescription':(_0x431099===null||_0x431099===void 0x0?void 0x0:_0x431099[_0x1bf44e(0x134)])||'','filemethod':_0x10c04f+'@'+(_0x431099['method']||'')};if(_0x25f1f0&&(_0x431099===null||_0x431099===void 0x0?void 0x0:_0x431099[_0x1bf44e(0x10c)]))try{const _0xaadb6=((_0x28d1ba=_0x2aa4f9===null||_0x2aa4f9===void 0x0?void 0x0:_0x2aa4f9[_0x1bf44e(0xc5)])===null||_0x28d1ba===void 0x0?void 0x0:_0x28d1ba['requestKey'])&&typeof(_0x54f0ce===null||_0x54f0ce===void 0x0?void 0x0:_0x54f0ce[_0x2aa4f9[_0x1bf44e(0xc5)][_0x1bf44e(0x11e)]])==_0x1bf44e(0x125)?JSON[_0x1bf44e(0x129)](base64_decode(_0x54f0ce[_0x2aa4f9[_0x1bf44e(0xc5)][_0x1bf44e(0x11e)]])||'{}')||{}:((_0x42adf7=_0x25f1f0===null||_0x25f1f0===void 0x0?void 0x0:_0x25f1f0[_0x1bf44e(0x10b)])===null||_0x42adf7===void 0x0?void 0x0:_0x42adf7[_0x1bf44e(0xcf)])||{};if(!this['ApiService'][_0x1bf44e(0x133)](_0xaadb6))throw new AnnError(ApiError_1[_0x1bf44e(0xb4)][_0x1bf44e(0x121)]);for(const _0x9ec387 in _0xaadb6||{}){_0x25f1f0[_0x1bf44e(0xcf)][_0x9ec387]=_0xaadb6[_0x9ec387];}}catch(_0x48d8c0){if(_0x48d8c0 instanceof AnnError)throw _0x48d8c0;else throw new AnnError(ApiError_1[_0x1bf44e(0xb4)][_0x1bf44e(0xeb)]);}},'around':async _0x57898b=>{const _0x34f384=_0x21d4c2;var _0x150203,_0x8cf96e,_0x4db04b;const _0x3a17b9=(_0x150203=_0x57898b===null||_0x57898b===void 0x0?void 0x0:_0x57898b[_0x34f384(0xfe)])===null||_0x150203===void 0x0?void 0x0:_0x150203[core_2[_0x34f384(0xbe)]];if(_0x3a17b9&&(_0x431099===null||_0x431099===void 0x0?void 0x0:_0x431099['apimit'])&&((_0x431099===null||_0x431099===void 0x0?void 0x0:_0x431099[_0x34f384(0xda)])||typeof(_0x431099===null||_0x431099===void 0x0?void 0x0:_0x431099['intercept'])==_0x34f384(0x12b))){if(((_0x8cf96e=_0x3a17b9['headers'])===null||_0x8cf96e===void 0x0?void 0x0:_0x8cf96e[_0x34f384(0xf3)])&&((_0x4db04b=_0x24cf60===null||_0x24cf60===void 0x0?void 0x0:_0x24cf60[_0x3a17b9[_0x34f384(0xcf)][_0x34f384(0xf3)]])===null||_0x4db04b===void 0x0?void 0x0:_0x4db04b[_0x34f384(0xc9)])>0x0)for(const _0x2e9a57 of _0x24cf60[_0x3a17b9[_0x34f384(0xcf)][_0x34f384(0xf3)]]||[]){if(core_1[_0x34f384(0x11d)][_0x34f384(0x11a)](_0x2e9a57)){const _0x1eafaa=await _0x3a17b9[_0x34f384(0x123)][_0x34f384(0x128)](_0x2e9a57);typeof(_0x1eafaa===null||_0x1eafaa===void 0x0?void 0x0:_0x1eafaa[_0x34f384(0xb0)])==_0x34f384(0xf6)?await _0x1eafaa[_0x34f384(0xb0)](_0x3a17b9,typeof(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0x108)])=='string'&&(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0xf1)])?_0x3a17b9[_0x34f384(0x108)]['toLowerCase']()+'@'+(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0xf1)]):undefined,_0x431099)&&await _0x1eafaa['handler'](_0x3a17b9,typeof(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9['method'])==_0x34f384(0x125)&&(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0xf1)])?_0x3a17b9[_0x34f384(0x108)][_0x34f384(0xa9)]()+'@'+(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0xf1)]):undefined,_0x431099):await _0x1eafaa[_0x34f384(0xe2)](_0x3a17b9,typeof(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0x108)])==_0x34f384(0x125)&&(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0xf1)])?_0x3a17b9[_0x34f384(0x108)][_0x34f384(0xa9)]()+'@'+(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0xf1)]):undefined,_0x431099);}else core_1[_0x34f384(0x11d)][_0x34f384(0x102)](_0x2e9a57)&&await _0x2e9a57(_0x3a17b9,typeof(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9[_0x34f384(0x108)])=='string'&&(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9['_matchedRoute'])?_0x3a17b9[_0x34f384(0x108)][_0x34f384(0xa9)]()+'@'+(_0x3a17b9===null||_0x3a17b9===void 0x0?void 0x0:_0x3a17b9['_matchedRoute']):undefined,_0x431099);}}return await _0x57898b['proceed'](..._0x57898b[_0x34f384(0xd5)]);},'afterThrow':(_0x3db3,_0xc58376)=>{throw _0xc58376;}};});}async[a3_0x533d67(0x104)](){const _0x1432bd=a3_0x533d67,_0x207304=this[_0x1432bd(0xcb)]['getConfiguration']();this['application'][_0x1432bd(0xbf)]([_0x1432bd(0x11f)])[_0x1432bd(0xbc)](_0x27e642=>{const _0x383755=_0x1432bd;(_0x27e642===null||_0x27e642===void 0x0?void 0x0:_0x27e642[_0x383755(0xd0)])&&Object[_0x383755(0xa8)](_0x27e642[_0x383755(0xd0)],{'hosturl':{'configurable':![],'get':function(){const _0xe6a892=_0x383755;var _0x26d03e,_0x16223d,_0x572ede,_0x48d134;if((this===null||this===void 0x0?void 0x0:this[_0xe6a892(0xae)])&&!this[_0xe6a892(0xae)]['startsWith']('http')){let _0x5484f5=this['host']['split'](':');return['80',_0xe6a892(0xe6)][_0xe6a892(0x105)](_0x5484f5===null||_0x5484f5===void 0x0?void 0x0:_0x5484f5[0x1])?''+(!!((_0x16223d=(_0x26d03e=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x26d03e===void 0x0?void 0x0:_0x26d03e[_0xe6a892(0xaa)])===null||_0x16223d===void 0x0?void 0x0:_0x16223d[_0xe6a892(0xdb)])||(_0x5484f5===null||_0x5484f5===void 0x0?void 0x0:_0x5484f5[0x1])==_0xe6a892(0xe6)?_0xe6a892(0x98):'http://')+_0x5484f5[0x0]:''+(!!((_0x48d134=(_0x572ede=this===null||this===void 0x0?void 0x0:this[_0xe6a892(0x10f)])===null||_0x572ede===void 0x0?void 0x0:_0x572ede[_0xe6a892(0xaa)])===null||_0x48d134===void 0x0?void 0x0:_0x48d134[_0xe6a892(0xdb)])?_0xe6a892(0x98):_0xe6a892(0xfb))+this[_0xe6a892(0xae)];}return'';}},'ok':{'value':function(_0x31c2e9,_0xa9525a,_0x41516b=0x0){return{'code':_0x41516b,'data':_0x31c2e9,'extra':_0xa9525a};}},'input':{'value':function(_0x291e8b,_0x99fc89){const _0x148bb8=_0x383755;var _0x47bab6;const _0x4c1ba8=lodash[_0x148bb8(0x114)]({},this[_0x148bb8(0x10b)]['body']||this[_0x148bb8(0x10b)][((_0x47bab6=_0x207304===null||_0x207304===void 0x0?void 0x0:_0x207304[_0x148bb8(0xce)])===null||_0x47bab6===void 0x0?void 0x0:_0x47bab6[_0x148bb8(0xfd)])||'body']||{},this[_0x148bb8(0x10b)][_0x148bb8(0xe3)]||{});return _0x291e8b?lodash[_0x148bb8(0xd1)](_0x4c1ba8,_0x291e8b,_0x99fc89):_0x4c1ba8;}},'when':{'value':async function(_0x4f3e73,_0x44e43c){const _0x574a0a=_0x383755,_0x17a308=this[_0x574a0a(0xd4)](_0x4f3e73,null);if(!lodash[_0x574a0a(0xa5)](_0x17a308))return await _0x44e43c(_0x17a308);}},'only':{'value':function(_0x7fd9e2){const _0x3ddfee=_0x383755,_0x12ca37={};for(let _0x5ced36=0x0;_0x5ced36<_0x7fd9e2[_0x3ddfee(0xc9)];_0x5ced36++){lodash[_0x3ddfee(0x101)](_0x7fd9e2[_0x5ced36])&&_0x7fd9e2[_0x5ced36][_0x3ddfee(0xc9)]>0x0&&lodash[_0x3ddfee(0x9a)](_0x7fd9e2[_0x5ced36][0x0])&&(_0x12ca37[_0x7fd9e2[_0x5ced36][0x0]]=this[_0x3ddfee(0xd4)](_0x7fd9e2[_0x5ced36][0x0],_0x7fd9e2[_0x5ced36]['length']>0x1?_0x7fd9e2[_0x5ced36][0x1]:null));}return _0x12ca37;}},'koasend':{'value':async function(_0xef8f93,_0x4fbf7f){const _0x56fcf9=_0x383755;if(_0xef8f93&&!fs[_0x56fcf9(0x10a)](_0xef8f93)&&!fs[_0x56fcf9(0x10a)](this[_0x56fcf9(0xe8)][_0x56fcf9(0x12c)]()+'/'+_0xef8f93))return _0x56fcf9(0x107);return _0xef8f93=fs[_0x56fcf9(0x10a)](_0xef8f93)?_0xef8f93:this['app']['getAppDir']()+'/'+_0xef8f93,this[_0x56fcf9(0x122)](_0x4fbf7f||_0xef8f93),await koasend(this,_0xef8f93);}}});});}async[a3_0x533d67(0xfc)](){const _0x14fb76=a3_0x533d67;var _0x2b816c;if(fs['existsSync'](this['app']['getBaseDir']()+_0x14fb76(0xe9))&&fs[_0x14fb76(0x9e)](this[_0x14fb76(0xe8)][_0x14fb76(0x109)]()+'/apps')[_0x14fb76(0xde)]()){const _0x46c5f3=this[_0x14fb76(0xcb)]['getConfiguration'](),_0x14f24f=((_0x2b816c=_0x46c5f3===null||_0x46c5f3===void 0x0?void 0x0:_0x46c5f3[_0x14fb76(0x135)])===null||_0x2b816c===void 0x0?void 0x0:_0x2b816c[_0x14fb76(0xff)])||{};!fs[_0x14fb76(0x10a)](this[_0x14fb76(0xe8)][_0x14fb76(0x109)]()+_0x14fb76(0x103))&&(_0x14f24f[_0x14fb76(0xe8)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x14fb76(0xd8)][_0x14fb76(0x112)](),'fileLogName':_0x14fb76(0xc2),'dir':path['join'](this['app'][_0x14fb76(0x12c)](),_0x14fb76(0x100),'app')});!fs['existsSync'](this[_0x14fb76(0xe8)][_0x14fb76(0x109)]()+_0x14fb76(0xd2))&&(_0x14f24f[_0x14fb76(0xb9)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x14fb76(0x112)](),'fileLogName':_0x14fb76(0xa1),'dir':path[_0x14fb76(0xc1)](this['app'][_0x14fb76(0x12c)](),_0x14fb76(0x100),_0x14fb76(0xb9))});for(const _0x2f423c of fs[_0x14fb76(0x11b)](this[_0x14fb76(0xe8)]['getBaseDir']()+_0x14fb76(0xe9))){if(!fs['statSync'](this['app'][_0x14fb76(0x109)]()+_0x14fb76(0xbb)+_0x2f423c)[_0x14fb76(0xde)]())continue;!(_0x14f24f===null||_0x14f24f===void 0x0?void 0x0:_0x14f24f[_0x2f423c])&&(_0x14f24f[_0x2f423c]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x14fb76(0xd8)]['isDevelopmentEnvironment'](),'fileLogName':_0x2f423c+_0x14fb76(0xea),'dir':path['join'](this['app'][_0x14fb76(0x12c)](),_0x14fb76(0x100),_0x14fb76(0xb7)+_0x2f423c)}),this['loggerService'][_0x14fb76(0xc0)](_0x2f423c,_0x14f24f[_0x2f423c]);}Object[_0x14fb76(0x118)](_0x14f24f)[_0x14fb76(0xc9)]>0x0&&(!_0x46c5f3['midwayLogger']&&(_0x46c5f3['midwayLogger']={'default':{'maxSize':'1m','maxFiles':'270d','dir':path['join'](this[_0x14fb76(0xe8)][_0x14fb76(0x12c)](),'runtime')}}),_0x46c5f3[_0x14fb76(0x135)][_0x14fb76(0xff)]=_0x14f24f),this['config'][_0x14fb76(0xf2)](_0x46c5f3);}}async['filterConfig'](){const _0x535447=a3_0x533d67;var _0x3cee24,_0x51d00c,_0x554492,_0x453542,_0xa9cf30,_0x10c0b0;const _0x16e314=this[_0x535447(0xcb)][_0x535447(0xc3)]();((_0x51d00c=(_0x3cee24=_0x16e314===null||_0x16e314===void 0x0?void 0x0:_0x16e314[_0x535447(0xc5)])===null||_0x3cee24===void 0x0?void 0x0:_0x3cee24[_0x535447(0xa2)])===null||_0x51d00c===void 0x0?void 0x0:_0x51d00c[_0x535447(0xed)])&&Object[_0x535447(0x118)](_0x16e314[_0x535447(0xc5)][_0x535447(0xa2)])[_0x535447(0xc9)]>0x1&&delete _0x16e314['anncicapi'][_0x535447(0xa2)]['DEFAULT'];if((_0x554492=_0x16e314===null||_0x16e314===void 0x0?void 0x0:_0x16e314[_0x535447(0xf7)])===null||_0x554492===void 0x0?void 0x0:_0x554492[_0x535447(0xd6)])for(const _0x2e932e in _0x16e314[_0x535447(0xf7)]['dirs']){((_0x453542=_0x16e314['staticFile'][_0x535447(0xd6)][_0x2e932e])===null||_0x453542===void 0x0?void 0x0:_0x453542[_0x535447(0x9c)])&&typeof((_0xa9cf30=_0x16e314[_0x535447(0xf7)][_0x535447(0xd6)][_0x2e932e])===null||_0xa9cf30===void 0x0?void 0x0:_0xa9cf30['dir'])==_0x535447(0x125)&&!fs[_0x535447(0x10a)](_0x16e314[_0x535447(0xf7)][_0x535447(0xd6)][_0x2e932e]['dir'])&&(fs[_0x535447(0x126)](_0x16e314[_0x535447(0xf7)][_0x535447(0xd6)][_0x2e932e][_0x535447(0x9c)],{'recursive':!![]}),console['log'](_0x535447(0xe5)+_0x16e314[_0x535447(0xf7)][_0x535447(0xd6)][_0x2e932e]['dir']));}((_0x10c0b0=_0x16e314===null||_0x16e314===void 0x0?void 0x0:_0x16e314[_0x535447(0xb8)])===null||_0x10c0b0===void 0x0?void 0x0:_0x10c0b0['tmpdir'])&&!fs[_0x535447(0x10a)](_0x16e314[_0x535447(0xb8)]['tmpdir'])&&(fs[_0x535447(0x126)](_0x16e314[_0x535447(0xb8)]['tmpdir'],{'recursive':!![]}),console[_0x535447(0x111)](_0x535447(0x99)+_0x16e314['upload'][_0x535447(0xad)])),this[_0x535447(0xcb)][_0x535447(0xf2)](_0x16e314);}};exports[a3_0x533d67(0x97)]=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata(a3_0x533d67(0xe7),Object)],CustomConfiguration[a3_0x533d67(0xb3)],a3_0x533d67(0xe8),void 0x0),__decorate([(0x0,core_1[a3_0x533d67(0x110)])(),__metadata(a3_0x533d67(0xe7),core_2[a3_0x533d67(0x132)])],CustomConfiguration[a3_0x533d67(0xb3)],a3_0x533d67(0xcb),void 0x0),__decorate([(0x0,core_1[a3_0x533d67(0x110)])(),__metadata(a3_0x533d67(0xe7),core_2[a3_0x533d67(0xe0)])],CustomConfiguration[a3_0x533d67(0xb3)],a3_0x533d67(0xb6),void 0x0),__decorate([(0x0,core_1[a3_0x533d67(0x110)])(),__metadata(a3_0x533d67(0xe7),core_2[a3_0x533d67(0x106)])],CustomConfiguration[a3_0x533d67(0xb3)],a3_0x533d67(0x9f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x533d67(0xe7),core_2[a3_0x533d67(0x127)])],CustomConfiguration[a3_0x533d67(0xb3)],a3_0x533d67(0xd8),void 0x0),__decorate([(0x0,core_1[a3_0x533d67(0x110)])(),__metadata('design:type',core_1[a3_0x533d67(0xcd)])],CustomConfiguration[a3_0x533d67(0xb3)],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0x533d67(0x110)])(),__metadata(a3_0x533d67(0xe7),ApiService_1[a3_0x533d67(0x9d)])],CustomConfiguration['prototype'],'ApiService',void 0x0),exports[a3_0x533d67(0x97)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x533d67(0xb1),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a3_0x21601b=a3_0x3a61;(function(_0x445dd5,_0x243598){const _0x298c0d=a3_0x3a61,_0x5d13b1=_0x445dd5();while(!![]){try{const _0x53b6a6=-parseInt(_0x298c0d(0x126))/0x1+parseInt(_0x298c0d(0x122))/0x2*(parseInt(_0x298c0d(0xf9))/0x3)+-parseInt(_0x298c0d(0x16f))/0x4*(-parseInt(_0x298c0d(0x120))/0x5)+parseInt(_0x298c0d(0x124))/0x6*(parseInt(_0x298c0d(0x10c))/0x7)+parseInt(_0x298c0d(0x114))/0x8*(parseInt(_0x298c0d(0x10a))/0x9)+parseInt(_0x298c0d(0x165))/0xa+-parseInt(_0x298c0d(0x183))/0xb*(parseInt(_0x298c0d(0x176))/0xc);if(_0x53b6a6===_0x243598)break;else _0x5d13b1['push'](_0x5d13b1['shift']());}catch(_0x5d3b6e){_0x5d13b1['push'](_0x5d13b1['shift']());}}}(a3_0x48f4,0x3af13));const a3_0x3661ec=(function(){let _0x433fc1=!![];return function(_0x2b0df8,_0x17a4e6){const _0x388fbd=_0x433fc1?function(){if(_0x17a4e6){const _0x3c3327=_0x17a4e6['apply'](_0x2b0df8,arguments);return _0x17a4e6=null,_0x3c3327;}}:function(){};return _0x433fc1=![],_0x388fbd;};}()),a3_0x2c6e92=a3_0x3661ec(this,function(){const _0x4fd691=a3_0x3a61;return a3_0x2c6e92[_0x4fd691(0xfa)]()['search'](_0x4fd691(0x158))[_0x4fd691(0xfa)]()[_0x4fd691(0xfc)](a3_0x2c6e92)[_0x4fd691(0x198)]('(((.+)+)+)+$');});function a3_0x48f4(){const _0x485a5c=['environment','filepath','string','requestMethod','substring','search','headers','hanlderApplications','1617MyxtWC','toString','application','constructor','mkdirSync','keys','http://','HEADERS_SIGNATURE','runtime','anncic-apihelper','CustomConfiguration','apimit','requestContext','app','addObject','_UNKNOW_','ApiService','702819BQQksz','@midwayjs/cross-domain','14OLnUaX','defaultsDeep','@anncic-api/cache','checksign','connection','./config/config.default','basic.log','upload','48LAmWpm','isString','getConfiguration','length','isArray','getAsync','isDirectory','match','_matchedRoute','defineProperty','toLowerCase','__esModule','5TCrWGn','anncicapi','1354xvjRCN','/apps','654618JmGjUo','function','138710FzZuQf','dir','@midwayjs/busboy','Inject','INTERCEPT_KEY','/apps/','./exception/ApiError','./config/config.production','isClass','DEFAULT','handler','includes','__metadata','req','split','getBaseDir','intercept','config','http','routerOptions','onReady','ACTION_KEY','handlerActionRoute','prototype','readdirSync','apps-','Types','@anncic-api/validator','encrypted','./service/ApiService','name','attachment','./types/intercept','文件不存在','APPSCONFIG_KEY','target','metadata','getAppDir','requestKey','/app','existsSync','isNull','anncic-api','koa-send','MidwayDecoratorService','bodyXml','input','MidwayConfigService','key','clients','(((.+)+)+)+$','@anncic-api/event','devices','./types/action','routerName','MidwayLoggerService','MidwayApplicationManager','270d','context','.log','log','defineProperties','host','1048820WtNXmc','Anncic-api\x20static-file\x20:\x20mkdir\x20','App','midwayLogger','isDevelopmentEnvironment','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/typeorm','parse','undefined','createLogger','62404XEcKoh','koa','@midwayjs/core','REQUEST_OBJ_CTX_KEY','getApplications','getOwnPropertyDescriptor','@midwayjs/static-file','9504012NtlRyf','MidwayEnvironmentService','path','statSync','/basic','decorate','basic','device','AppsConfigTmp','query','443','lastIndexOf','tmpdir','11gyaQdf','tagName','ApiError','forEach','method','getClassMetadata','decorator','get','request','join','filterConfig','staticFile','dirs','design:type','__decorate','module'];a3_0x48f4=function(){return _0x485a5c;};return a3_0x48f4();}a3_0x2c6e92();'use strict';var __decorate=this&&this[a3_0x21601b(0x191)]||function(_0x285e37,_0x3fec95,_0x57deea,_0x46bc01){const _0x342cea=a3_0x21601b;var _0x3e25e6=arguments[_0x342cea(0x117)],_0x14cc2e=_0x3e25e6<0x3?_0x3fec95:_0x46bc01===null?_0x46bc01=Object[_0x342cea(0x174)](_0x3fec95,_0x57deea):_0x46bc01,_0x1a9008;if(typeof Reflect==='object'&&typeof Reflect[_0x342cea(0x17b)]===_0x342cea(0x125))_0x14cc2e=Reflect[_0x342cea(0x17b)](_0x285e37,_0x3fec95,_0x57deea,_0x46bc01);else{for(var _0x671f3e=_0x285e37[_0x342cea(0x117)]-0x1;_0x671f3e>=0x0;_0x671f3e--)if(_0x1a9008=_0x285e37[_0x671f3e])_0x14cc2e=(_0x3e25e6<0x3?_0x1a9008(_0x14cc2e):_0x3e25e6>0x3?_0x1a9008(_0x3fec95,_0x57deea,_0x14cc2e):_0x1a9008(_0x3fec95,_0x57deea))||_0x14cc2e;}return _0x3e25e6>0x3&&_0x14cc2e&&Object[_0x342cea(0x11d)](_0x3fec95,_0x57deea,_0x14cc2e),_0x14cc2e;},__metadata=this&&this[a3_0x21601b(0x132)]||function(_0x21d8b4,_0x458687){const _0x53f678=a3_0x21601b;if(typeof Reflect==='object'&&typeof Reflect[_0x53f678(0x14a)]==='function')return Reflect[_0x53f678(0x14a)](_0x21d8b4,_0x458687);};Object[a3_0x21601b(0x11d)](exports,a3_0x21601b(0x11f),{'value':!![]}),exports[a3_0x21601b(0x103)]=void 0x0;const core_1=require(a3_0x21601b(0x171)),core_2=require(a3_0x21601b(0x171)),ApiError_1=require(a3_0x21601b(0x12c)),ApiService_1=require(a3_0x21601b(0x143)),intercept_1=require(a3_0x21601b(0x146)),action_1=require(a3_0x21601b(0x15b)),fs=require('fs'),path=require(a3_0x21601b(0x178)),koasend=require(a3_0x21601b(0x151)),koa=require('@midwayjs/koa'),upload=require(a3_0x21601b(0x128)),staticFile=require(a3_0x21601b(0x175)),crossDomain=require(a3_0x21601b(0x10b)),ConfigDefault=require(a3_0x21601b(0x111)),ConfigProduction=require(a3_0x21601b(0x12d)),anncic=require('@anncic-api/core'),anncicCache=require(a3_0x21601b(0x10e)),anncicEvent=require(a3_0x21601b(0x159)),anncicTypeorm=require(a3_0x21601b(0x16b)),anncicValidator=require(a3_0x21601b(0x141)),anncicHelper=require(a3_0x21601b(0x102));let CustomConfiguration=class CustomConfiguration{async[a3_0x21601b(0x13a)](){const _0x37f93d=a3_0x21601b;await this[_0x37f93d(0x18d)](),await this['loggerConfig'](),await this[_0x37f93d(0x13c)](),await this[_0x37f93d(0x19a)]();}async['handlerActionRoute'](){const _0x1e4b87=a3_0x21601b,_0x28db82=this['config']['getConfiguration'](),_0x5e1615=(0x0,core_1[_0x1e4b87(0x188)])(intercept_1[_0x1e4b87(0x12a)],intercept_1['InterceptTargetTmp'])||{};this[_0x1e4b87(0x189)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x5186a8=>{const _0x392bd9=_0x1e4b87;var _0x34db8e;const _0x16d98d=(0x0,core_1[_0x392bd9(0x188)])(action_1[_0x392bd9(0x148)],action_1[_0x392bd9(0x17e)])||{},_0x44e852=_0x5186a8[_0x392bd9(0x14a)],_0xdd02a4=(0x0,core_1[_0x392bd9(0x188)])(action_1[_0x392bd9(0x13b)],_0x5186a8[_0x392bd9(0x149)])||{},_0x3405ba=((_0x34db8e=_0xdd02a4===null||_0xdd02a4===void 0x0?void 0x0:_0xdd02a4[_0x392bd9(0x194)])===null||_0x34db8e===void 0x0?void 0x0:_0x34db8e[_0x392bd9(0x197)](0x0,_0xdd02a4[_0x392bd9(0x194)][_0x392bd9(0x181)]('.')))||'',_0x1d7326=(_0xdd02a4===null||_0xdd02a4===void 0x0?void 0x0:_0xdd02a4[_0x392bd9(0x192)])?(_0x16d98d===null||_0x16d98d===void 0x0?void 0x0:_0x16d98d[_0xdd02a4[_0x392bd9(0x192)]])||{}:{};return{'before':async _0x614c9a=>{const _0x11848a=_0x392bd9;var _0x3ffe50,_0x296f2f,_0x4ace9d,_0x1a9d00;const _0x4fd52c=(_0x3ffe50=_0x614c9a===null||_0x614c9a===void 0x0?void 0x0:_0x614c9a[_0x11848a(0x149)])===null||_0x3ffe50===void 0x0?void 0x0:_0x3ffe50[core_2['REQUEST_OBJ_CTX_KEY']],_0x10563c=lodash['defaultsDeep']({},_0x4fd52c[_0x11848a(0x18b)]['body']||_0x4fd52c[_0x11848a(0x18b)][((_0x296f2f=_0x28db82===null||_0x28db82===void 0x0?void 0x0:_0x28db82[_0x11848a(0x153)])===null||_0x296f2f===void 0x0?void 0x0:_0x296f2f[_0x11848a(0x156)])||'body']||{},_0x4fd52c[_0x11848a(0x18b)][_0x11848a(0x17f)]||{});_0x4fd52c['_matchedRouteMeta']={'module':(_0x1d7326===null||_0x1d7326===void 0x0?void 0x0:_0x1d7326[_0x11848a(0x144)])||'','routePath':''+_0x4fd52c[_0x11848a(0x178)],'routeName':_0xdd02a4[_0x11848a(0x139)][_0x11848a(0x184)]+'@'+_0x44e852[_0x11848a(0x15c)],'routeMethod':((_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852[_0x11848a(0x196)])||_0x4fd52c[_0x11848a(0x187)]||'')[_0x11848a(0x11e)](),'routeDescription':(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852['description'])||'','filemethod':_0x3405ba+'@'+(_0x44e852['method']||'')};if(_0x4fd52c&&(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852[_0x11848a(0x104)]))try{const _0x36532b=((_0x4ace9d=_0x28db82===null||_0x28db82===void 0x0?void 0x0:_0x28db82[_0x11848a(0x121)])===null||_0x4ace9d===void 0x0?void 0x0:_0x4ace9d[_0x11848a(0x14c)])&&typeof(_0x10563c===null||_0x10563c===void 0x0?void 0x0:_0x10563c[_0x28db82['anncicapi']['requestKey']])==_0x11848a(0x195)?JSON[_0x11848a(0x16c)](base64_decode(_0x10563c[_0x28db82['anncicapi'][_0x11848a(0x14c)]])||'{}')||{}:((_0x1a9d00=_0x4fd52c===null||_0x4fd52c===void 0x0?void 0x0:_0x4fd52c[_0x11848a(0x18b)])===null||_0x1a9d00===void 0x0?void 0x0:_0x1a9d00[_0x11848a(0x199)])||{};if(!this[_0x11848a(0x109)][_0x11848a(0x10f)](_0x36532b))throw new AnnError(ApiError_1[_0x11848a(0x185)][_0x11848a(0x100)]);for(const _0x1f126d in _0x36532b||{}){_0x4fd52c[_0x11848a(0x199)][_0x1f126d]=_0x36532b[_0x1f126d];}}catch(_0x2346d9){if(_0x2346d9 instanceof AnnError)throw _0x2346d9;else throw new AnnError(ApiError_1[_0x11848a(0x185)][_0x11848a(0x108)]);}},'around':async _0x34438c=>{const _0x40b928=_0x392bd9;var _0x1ad0c4,_0x3b3e5d,_0x2cb52d;const _0x32d98f=(_0x1ad0c4=_0x34438c===null||_0x34438c===void 0x0?void 0x0:_0x34438c[_0x40b928(0x149)])===null||_0x1ad0c4===void 0x0?void 0x0:_0x1ad0c4[core_2[_0x40b928(0x172)]];if(_0x32d98f&&(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852['apimit'])&&((_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852[_0x40b928(0x136)])||typeof(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852['intercept'])==_0x40b928(0x16d))){if(((_0x3b3e5d=_0x32d98f[_0x40b928(0x199)])===null||_0x3b3e5d===void 0x0?void 0x0:_0x3b3e5d[_0x40b928(0x17d)])&&((_0x2cb52d=_0x5e1615===null||_0x5e1615===void 0x0?void 0x0:_0x5e1615[_0x32d98f['headers'][_0x40b928(0x17d)]])===null||_0x2cb52d===void 0x0?void 0x0:_0x2cb52d[_0x40b928(0x117)])>0x0)for(const _0x1564c7 of _0x5e1615[_0x32d98f['headers'][_0x40b928(0x17d)]]||[]){if(core_1[_0x40b928(0x140)][_0x40b928(0x12e)](_0x1564c7)){const _0xec4242=await _0x32d98f[_0x40b928(0x105)][_0x40b928(0x119)](_0x1564c7);typeof(_0xec4242===null||_0xec4242===void 0x0?void 0x0:_0xec4242[_0x40b928(0x11b)])==_0x40b928(0x125)?await _0xec4242[_0x40b928(0x11b)](_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f['method'])=='string'&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f['method'][_0x40b928(0x11e)]()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852)&&await _0xec4242[_0x40b928(0x130)](_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f['method'])=='string'&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f[_0x40b928(0x187)][_0x40b928(0x11e)]()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852):await _0xec4242['handler'](_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x187)])=='string'&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f[_0x40b928(0x187)]['toLowerCase']()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852);}else core_1[_0x40b928(0x140)]['isFunction'](_0x1564c7)&&await _0x1564c7(_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x187)])==_0x40b928(0x195)&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f[_0x40b928(0x187)][_0x40b928(0x11e)]()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852);}}return await _0x34438c['proceed'](..._0x34438c['args']);},'afterThrow':(_0x5a39e0,_0x3f8977)=>{throw _0x3f8977;}};});}async[a3_0x21601b(0x19a)](){const _0x2b4dff=a3_0x21601b,_0x491eb3=this[_0x2b4dff(0x137)]['getConfiguration']();this[_0x2b4dff(0xfb)][_0x2b4dff(0x173)]([_0x2b4dff(0x170)])[_0x2b4dff(0x186)](_0x38ceef=>{const _0x2d938b=_0x2b4dff;(_0x38ceef===null||_0x38ceef===void 0x0?void 0x0:_0x38ceef[_0x2d938b(0x160)])&&Object[_0x2d938b(0x163)](_0x38ceef[_0x2d938b(0x160)],{'hosturl':{'configurable':![],'get':function(){const _0x5f670b=_0x2d938b;var _0x160839,_0x20674b,_0x2eb102,_0x530664;if((this===null||this===void 0x0?void 0x0:this[_0x5f670b(0x164)])&&!this[_0x5f670b(0x164)]['startsWith'](_0x5f670b(0x138))){let _0x592bb3=this['host'][_0x5f670b(0x134)](':');return['80',_0x5f670b(0x180)][_0x5f670b(0x131)](_0x592bb3===null||_0x592bb3===void 0x0?void 0x0:_0x592bb3[0x1])?''+(!!((_0x20674b=(_0x160839=this===null||this===void 0x0?void 0x0:this[_0x5f670b(0x133)])===null||_0x160839===void 0x0?void 0x0:_0x160839[_0x5f670b(0x110)])===null||_0x20674b===void 0x0?void 0x0:_0x20674b[_0x5f670b(0x142)])||(_0x592bb3===null||_0x592bb3===void 0x0?void 0x0:_0x592bb3[0x1])==_0x5f670b(0x180)?'https://':_0x5f670b(0xff))+_0x592bb3[0x0]:''+(!!((_0x530664=(_0x2eb102=this===null||this===void 0x0?void 0x0:this[_0x5f670b(0x133)])===null||_0x2eb102===void 0x0?void 0x0:_0x2eb102['connection'])===null||_0x530664===void 0x0?void 0x0:_0x530664[_0x5f670b(0x142)])?'https://':_0x5f670b(0xff))+this['host'];}return'';}},'ok':{'value':function(_0x4e80e0,_0x692485,_0x2863e1=0x0){return{'code':_0x2863e1,'data':_0x4e80e0,'extra':_0x692485};}},'input':{'value':function(_0x99436f,_0xcd9cb6){const _0xe0907a=_0x2d938b;var _0x272bc3;const _0x5d03c3=lodash[_0xe0907a(0x10d)]({},this[_0xe0907a(0x18b)]['body']||this[_0xe0907a(0x18b)][((_0x272bc3=_0x491eb3===null||_0x491eb3===void 0x0?void 0x0:_0x491eb3[_0xe0907a(0x153)])===null||_0x272bc3===void 0x0?void 0x0:_0x272bc3[_0xe0907a(0x156)])||'body']||{},this[_0xe0907a(0x18b)][_0xe0907a(0x17f)]||{});return _0x99436f?lodash[_0xe0907a(0x18a)](_0x5d03c3,_0x99436f,_0xcd9cb6):_0x5d03c3;}},'when':{'value':async function(_0x899129,_0xc26de3){const _0xf979b2=_0x2d938b,_0x32d4ee=this[_0xf979b2(0x154)](_0x899129,null);if(!lodash[_0xf979b2(0x14f)](_0x32d4ee))return await _0xc26de3(_0x32d4ee);}},'only':{'value':function(_0x341f76){const _0x2f8f8b=_0x2d938b,_0x39547d={};for(let _0x56e08c=0x0;_0x56e08c<_0x341f76['length'];_0x56e08c++){lodash[_0x2f8f8b(0x118)](_0x341f76[_0x56e08c])&&_0x341f76[_0x56e08c]['length']>0x0&&lodash[_0x2f8f8b(0x115)](_0x341f76[_0x56e08c][0x0])&&(_0x39547d[_0x341f76[_0x56e08c][0x0]]=this[_0x2f8f8b(0x154)](_0x341f76[_0x56e08c][0x0],_0x341f76[_0x56e08c][_0x2f8f8b(0x117)]>0x1?_0x341f76[_0x56e08c][0x1]:null));}return _0x39547d;}},'koasend':{'value':async function(_0x8d6fa1,_0x23d2c1){const _0x3091bf=_0x2d938b;if(_0x8d6fa1&&!fs[_0x3091bf(0x14e)](_0x8d6fa1)&&!fs[_0x3091bf(0x14e)](this[_0x3091bf(0x106)]['getAppDir']()+'/'+_0x8d6fa1))return _0x3091bf(0x147);return _0x8d6fa1=fs[_0x3091bf(0x14e)](_0x8d6fa1)?_0x8d6fa1:this[_0x3091bf(0x106)][_0x3091bf(0x14b)]()+'/'+_0x8d6fa1,this[_0x3091bf(0x145)](_0x23d2c1||_0x8d6fa1),await koasend(this,_0x8d6fa1);}}});});}async['loggerConfig'](){const _0x1bdebc=a3_0x21601b;var _0x3f3612;if(fs[_0x1bdebc(0x14e)](this[_0x1bdebc(0x106)]['getBaseDir']()+_0x1bdebc(0x123))&&fs[_0x1bdebc(0x179)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x123))[_0x1bdebc(0x11a)]()){const _0x1fafe8=this[_0x1bdebc(0x137)][_0x1bdebc(0x116)](),_0x8d1418=((_0x3f3612=_0x1fafe8===null||_0x1fafe8===void 0x0?void 0x0:_0x1fafe8[_0x1bdebc(0x168)])===null||_0x3f3612===void 0x0?void 0x0:_0x3f3612[_0x1bdebc(0x157)])||{};!fs['existsSync'](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x14d))&&(_0x8d1418[_0x1bdebc(0x106)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':'app.log','dir':path[_0x1bdebc(0x18c)](this[_0x1bdebc(0x106)][_0x1bdebc(0x14b)](),_0x1bdebc(0x101),_0x1bdebc(0x106))});!fs[_0x1bdebc(0x14e)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x17a))&&(_0x8d1418[_0x1bdebc(0x17c)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x1bdebc(0x193)][_0x1bdebc(0x169)](),'fileLogName':_0x1bdebc(0x112),'dir':path[_0x1bdebc(0x18c)](this[_0x1bdebc(0x106)][_0x1bdebc(0x14b)](),'runtime','basic')});for(const _0x12a829 of fs[_0x1bdebc(0x13e)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x123))){if(!fs[_0x1bdebc(0x179)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x12b)+_0x12a829)[_0x1bdebc(0x11a)]())continue;!(_0x8d1418===null||_0x8d1418===void 0x0?void 0x0:_0x8d1418[_0x12a829])&&(_0x8d1418[_0x12a829]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x1bdebc(0x193)][_0x1bdebc(0x169)](),'fileLogName':_0x12a829+_0x1bdebc(0x161),'dir':path['join'](this[_0x1bdebc(0x106)][_0x1bdebc(0x14b)](),_0x1bdebc(0x101),_0x1bdebc(0x13f)+_0x12a829)}),this['loggerService'][_0x1bdebc(0x16e)](_0x12a829,_0x8d1418[_0x12a829]);}Object[_0x1bdebc(0xfe)](_0x8d1418)[_0x1bdebc(0x117)]>0x0&&(!_0x1fafe8[_0x1bdebc(0x168)]&&(_0x1fafe8[_0x1bdebc(0x168)]={'default':{'maxSize':'1m','maxFiles':_0x1bdebc(0x15f),'dir':path[_0x1bdebc(0x18c)](this[_0x1bdebc(0x106)]['getAppDir'](),_0x1bdebc(0x101))}}),_0x1fafe8['midwayLogger'][_0x1bdebc(0x157)]=_0x8d1418),this[_0x1bdebc(0x137)][_0x1bdebc(0x107)](_0x1fafe8);}}async[a3_0x21601b(0x18d)](){const _0x14eb93=a3_0x21601b;var _0x334c01,_0x2471cb,_0x375d18,_0x5831db,_0x2eb0e1,_0x105211;const _0x38de5c=this[_0x14eb93(0x137)][_0x14eb93(0x116)]();((_0x2471cb=(_0x334c01=_0x38de5c===null||_0x38de5c===void 0x0?void 0x0:_0x38de5c[_0x14eb93(0x121)])===null||_0x334c01===void 0x0?void 0x0:_0x334c01[_0x14eb93(0x15a)])===null||_0x2471cb===void 0x0?void 0x0:_0x2471cb[_0x14eb93(0x12f)])&&Object[_0x14eb93(0xfe)](_0x38de5c[_0x14eb93(0x121)]['devices'])[_0x14eb93(0x117)]>0x1&&delete _0x38de5c['anncicapi']['devices']['DEFAULT'];if((_0x375d18=_0x38de5c===null||_0x38de5c===void 0x0?void 0x0:_0x38de5c['staticFile'])===null||_0x375d18===void 0x0?void 0x0:_0x375d18[_0x14eb93(0x18f)])for(const _0x50ca6e in _0x38de5c[_0x14eb93(0x18e)][_0x14eb93(0x18f)]){((_0x5831db=_0x38de5c[_0x14eb93(0x18e)][_0x14eb93(0x18f)][_0x50ca6e])===null||_0x5831db===void 0x0?void 0x0:_0x5831db[_0x14eb93(0x127)])&&typeof((_0x2eb0e1=_0x38de5c[_0x14eb93(0x18e)]['dirs'][_0x50ca6e])===null||_0x2eb0e1===void 0x0?void 0x0:_0x2eb0e1[_0x14eb93(0x127)])=='string'&&!fs[_0x14eb93(0x14e)](_0x38de5c[_0x14eb93(0x18e)][_0x14eb93(0x18f)][_0x50ca6e][_0x14eb93(0x127)])&&(fs[_0x14eb93(0xfd)](_0x38de5c[_0x14eb93(0x18e)]['dirs'][_0x50ca6e]['dir'],{'recursive':!![]}),console['log'](_0x14eb93(0x166)+_0x38de5c['staticFile']['dirs'][_0x50ca6e]['dir']));}((_0x105211=_0x38de5c===null||_0x38de5c===void 0x0?void 0x0:_0x38de5c[_0x14eb93(0x113)])===null||_0x105211===void 0x0?void 0x0:_0x105211[_0x14eb93(0x182)])&&!fs[_0x14eb93(0x14e)](_0x38de5c['upload'][_0x14eb93(0x182)])&&(fs['mkdirSync'](_0x38de5c[_0x14eb93(0x113)]['tmpdir'],{'recursive':!![]}),console[_0x14eb93(0x162)](_0x14eb93(0x16a)+_0x38de5c[_0x14eb93(0x113)][_0x14eb93(0x182)])),this[_0x14eb93(0x137)][_0x14eb93(0x107)](_0x38de5c);}};function a3_0x3a61(_0x5a9164,_0x1b2030){const _0x7e94d8=a3_0x48f4();return a3_0x3a61=function(_0x2c6e92,_0x3661ec){_0x2c6e92=_0x2c6e92-0xf9;let _0x48f450=_0x7e94d8[_0x2c6e92];return _0x48f450;},a3_0x3a61(_0x5a9164,_0x1b2030);}exports[a3_0x21601b(0x103)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0x21601b(0x167)])(),__metadata(a3_0x21601b(0x190),Object)],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x106),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata('design:type',core_2[a3_0x21601b(0x155)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x137),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_2[a3_0x21601b(0x152)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x189),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_2[a3_0x21601b(0x15e)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0xfb),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_2[a3_0x21601b(0x177)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x193),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_1[a3_0x21601b(0x15d)])],CustomConfiguration[a3_0x21601b(0x13d)],'loggerService',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x21601b(0x190),ApiService_1[a3_0x21601b(0x109)])],CustomConfiguration['prototype'],'ApiService',void 0x0),exports[a3_0x21601b(0x103)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x21601b(0x150),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a4_0x3f3a(){const _0x3c3318=['defaultsDeep','startsWith','get','module','length','getClassMetadata','4191481AQrKAV','routerName','validate','\x20文件请放在apps/','apply','649hefQzH','309908Bjrrmm','AppsConfigTmp','description','push','4870104cxpEoo','saveClassMetadata','ACTION_KEY','Validator','/config.default.','apimit','intercept','indexOf','endsWith','middleware','/apps/','replace','splice','Controller','search','parseRoute','/controller/','filepath','match','defineProperty','toLowerCase','cwd','join','app/controller/','APPSCONFIG_KEY','/controller/文件下','env','@anncic-api/validator','36OXyMVV','MIDWAY_SERVER_ENV','3BEhEkT','isArray','/config.','Action','3889284WqRYxo','RequestMapping','../types/action','route','basic/controller/','456fNLzRC','middlewareIgnore','undefined','ACTION_ROUTE_KEY','saveModule','-controller','NODE_ENV','assign','post','string','(((.+)+)+)+$','apps/','constructor','existsSync','prefix','substring','@midwayjs/core','split','toString','262670jGOWCJ','trim','keys','filter','9oJxeaL','__esModule','3127870sRVIpK'];a4_0x3f3a=function(){return _0x3c3318;};return a4_0x3f3a();}const a4_0x22dd43=a4_0x25ba;(function(_0x41dc8d,_0x4ee5dd){const _0x18dc35=a4_0x25ba,_0x2c2147=_0x41dc8d();while(!![]){try{const _0x57efe7=parseInt(_0x18dc35(0x142))/0x1*(-parseInt(_0x18dc35(0x137))/0x2)+-parseInt(_0x18dc35(0x139))/0x3*(-parseInt(_0x18dc35(0x117))/0x4)+parseInt(_0x18dc35(0x10a))/0x5+-parseInt(_0x18dc35(0x13d))/0x6+-parseInt(_0x18dc35(0x111))/0x7+parseInt(_0x18dc35(0x11b))/0x8*(-parseInt(_0x18dc35(0x108))/0x9)+-parseInt(_0x18dc35(0x104))/0xa*(-parseInt(_0x18dc35(0x116))/0xb);if(_0x57efe7===_0x4ee5dd)break;else _0x2c2147['push'](_0x2c2147['shift']());}catch(_0xe5e8e2){_0x2c2147['push'](_0x2c2147['shift']());}}}(a4_0x3f3a,0x5eee4));const a4_0x35e1d8=(function(){let _0x4f5fae=!![];return function(_0x498ce4,_0x5f500f){const _0x16374a=_0x4f5fae?function(){const _0x44a92f=a4_0x25ba;if(_0x5f500f){const _0x4e2aa1=_0x5f500f[_0x44a92f(0x115)](_0x498ce4,arguments);return _0x5f500f=null,_0x4e2aa1;}}:function(){};return _0x4f5fae=![],_0x16374a;};}()),a4_0x36a551=a4_0x35e1d8(this,function(){const _0x2cd060=a4_0x25ba;return a4_0x36a551['toString']()['search'](_0x2cd060(0x14c))[_0x2cd060(0x103)]()[_0x2cd060(0x14e)](a4_0x36a551)[_0x2cd060(0x129)](_0x2cd060(0x14c));});a4_0x36a551();'use strict';var _a,_b;Object[a4_0x22dd43(0x12e)](exports,a4_0x22dd43(0x109),{'value':!![]}),exports[a4_0x22dd43(0x13c)]=Action,exports['ActionApi']=ActionApi,exports[a4_0x22dd43(0x12a)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x22dd43(0x136)),core_1=require(a4_0x22dd43(0x152)),core_2=require(a4_0x22dd43(0x152)),action_1=require(a4_0x22dd43(0x13f)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x22dd43(0x135)])===null||_a===void 0x0?void 0x0:_a[a4_0x22dd43(0x138)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x22dd43(0x135)])===null||_b===void 0x0?void 0x0:_b[a4_0x22dd43(0x148)]);function a4_0x25ba(_0x1518d7,_0x469a65){const _0x2f2c0d=a4_0x3f3a();return a4_0x25ba=function(_0x36a551,_0x35e1d8){_0x36a551=_0x36a551-0x102;let _0x3f3a49=_0x2f2c0d[_0x36a551];return _0x3f3a49;},a4_0x25ba(_0x1518d7,_0x469a65);}function Action(_0x433533,_0x65ecf0,_0x552e44={'middleware':[],'sensitive':!![]}){return _0x5c7aa6=>{const _0x385588=a4_0x25ba;var _0x13265f;_0x552e44['tagName']=_0x65ecf0;const _0x546f81=parseRoute(_0x433533);if(_0x546f81[_0x385588(0x10e)]){_0x552e44[_0x385588(0x150)]=_0x552e44['prefix']?'/'+_0x546f81['module']+'/'+_0x552e44['prefix']:'/'+_0x546f81[_0x385588(0x140)];_0x546f81[_0x385588(0x150)]&&(_0x552e44[_0x385588(0x150)]='/'+_0x546f81['prefix']+'/'+_0x552e44[_0x385588(0x150)]);_0x552e44[_0x385588(0x150)]=_0x552e44[_0x385588(0x150)][_0x385588(0x12f)]()['replace'](/\/{2,}/g,'/');const _0x4b97a0=getModuleConfig(_0x546f81['rootpath']+'/apps',_0x546f81[_0x385588(0x10e)],lodash['endsWith'](_0x546f81[_0x385588(0x12c)],'ts')?'ts':'js');if(lodash[_0x385588(0x13a)](_0x4b97a0['middleware'])&&_0x4b97a0[_0x385588(0x124)][_0x385588(0x10f)]>0x0)for(let _0x26b5e3 in _0x4b97a0[_0x385588(0x124)]){if(((_0x13265f=_0x4b97a0===null||_0x4b97a0===void 0x0?void 0x0:_0x4b97a0[_0x385588(0x143)])===null||_0x13265f===void 0x0?void 0x0:_0x13265f[_0x385588(0x10f)])>0x0&&_0x4b97a0[_0x385588(0x143)]['indexOf'](_0x4b97a0[_0x385588(0x124)][_0x26b5e3])!=-0x1)continue;_0x552e44[_0x385588(0x124)][_0x385588(0x11a)](_0x4b97a0[_0x385588(0x124)][_0x26b5e3]);}(0x0,core_1[_0x385588(0x146)])(action_1[_0x385588(0x11d)],_0x5c7aa6),(0x0,core_1[_0x385588(0x128)])(_0x552e44[_0x385588(0x150)],_0x552e44)(_0x5c7aa6),(0x0,core_1[_0x385588(0x11c)])(action_1['ACTION_KEY'],{'prefix':_0x552e44[_0x385588(0x150)],'pprefix':_0x546f81['prefix'],'module':_0x546f81[_0x385588(0x10e)],'filepath':_0x546f81[_0x385588(0x12c)],'routerOptions':_0x552e44},_0x5c7aa6);}else _0x552e44[_0x385588(0x150)]=_0x552e44[_0x385588(0x150)]?'/'+_0x552e44['prefix']:'/'+_0x546f81[_0x385588(0x140)],_0x546f81[_0x385588(0x150)]&&(_0x552e44[_0x385588(0x150)]='/'+_0x546f81[_0x385588(0x150)]+'/'+_0x552e44['prefix']),_0x552e44[_0x385588(0x150)]=_0x552e44['prefix'][_0x385588(0x12f)]()[_0x385588(0x126)](/\/{2,}/g,'/'),(0x0,core_1[_0x385588(0x146)])(action_1['ACTION_KEY'],_0x5c7aa6),(0x0,core_1[_0x385588(0x128)])(_0x552e44[_0x385588(0x150)],_0x552e44)(_0x5c7aa6),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x552e44[_0x385588(0x150)],'module':_0x546f81[_0x385588(0x10e)],'pprefix':_0x546f81[_0x385588(0x150)],'filepath':_0x546f81['filepath'],'routerOptions':_0x552e44},_0x5c7aa6);};}Action[a4_0x22dd43(0x10d)]=function(_0xfdc6b,_0xe13adf='/',_0x300fec={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xecb80f,_0x3a297a,_0x4a7a02)=>{ActionApi(_0xfdc6b,'get',_0xe13adf,_0x300fec)(_0xecb80f,_0x3a297a,_0x4a7a02);};},Action[a4_0x22dd43(0x14a)]=function(_0x6c9aee,_0x58ad0d='/',_0x4a8f4d={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xe34c06,_0x44e287,_0xe79ad)=>{ActionApi(_0x6c9aee,'post',_0x58ad0d,_0x4a8f4d)(_0xe34c06,_0x44e287,_0xe79ad);};};function ActionApi(_0x1ef4c5,_0x54ad25=a4_0x22dd43(0x10d),_0x3ae1f5='/',_0x49e7a2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x771950,_0x56b0db,_0x488b4c)=>{const _0x11eb55=a4_0x25ba;var _0x270a8e,_0x351510,_0x227c4a;!_0x49e7a2[_0x11eb55(0x124)]&&(_0x49e7a2[_0x11eb55(0x124)]=[]);!((_0x270a8e=_0x49e7a2===null||_0x49e7a2===void 0x0?void 0x0:_0x49e7a2['validate'])===null||_0x270a8e===void 0x0?void 0x0:_0x270a8e['validationOptions'])&&(_0x49e7a2[_0x11eb55(0x113)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x11eb55(0x14b)}});if(!_0x3ae1f5)_0x3ae1f5='/';else typeof _0x3ae1f5==_0x11eb55(0x14b)&&(!_0x3ae1f5[_0x11eb55(0x10c)]('/')&&!_0x3ae1f5['startsWith']('-')&&(_0x3ae1f5='/'+_0x3ae1f5));typeof _0x49e7a2[_0x11eb55(0x120)]==_0x11eb55(0x144)&&(_0x49e7a2['apimit']=!![]);if(((_0x351510=_0x49e7a2===null||_0x49e7a2===void 0x0?void 0x0:_0x49e7a2['middleware'])===null||_0x351510===void 0x0?void 0x0:_0x351510['length'])>0x0&&((_0x227c4a=_0x49e7a2===null||_0x49e7a2===void 0x0?void 0x0:_0x49e7a2[_0x11eb55(0x143)])===null||_0x227c4a===void 0x0?void 0x0:_0x227c4a[_0x11eb55(0x10f)])>0x0)for(let _0x66f34d in _0x49e7a2[_0x11eb55(0x124)]){_0x49e7a2['middlewareIgnore'][_0x11eb55(0x122)](_0x49e7a2['middleware'][_0x66f34d])!==-0x1&&(_0x49e7a2[_0x11eb55(0x124)][_0x66f34d]=null);}_0x49e7a2[_0x11eb55(0x112)]=_0x1ef4c5,(0x0,validator_1[_0x11eb55(0x11e)])(_0x49e7a2[_0x11eb55(0x113)])(_0x771950,_0x56b0db,_0x488b4c),(0x0,core_2[_0x11eb55(0x13e)])(Object[_0x11eb55(0x149)](_0x49e7a2,{'path':_0x3ae1f5,'requestMethod':(_0x54ad25||_0x11eb55(0x10d))[_0x11eb55(0x12f)]()}))(_0x771950,_0x56b0db,_0x488b4c),(0x0,core_2['attachClassMetadata'])(action_1[_0x11eb55(0x145)],{'path':_0x3ae1f5,'method':_0x56b0db,'apimit':_0x49e7a2[_0x11eb55(0x120)],'intercept':_0x49e7a2[_0x11eb55(0x121)],'routerName':_0x49e7a2[_0x11eb55(0x112)],'description':_0x49e7a2[_0x11eb55(0x119)],'middleware':(_0x49e7a2[_0x11eb55(0x124)]||[])['filter'](_0x1c2ee3=>!!_0x1c2ee3),'requestMethod':(_0x54ad25||_0x11eb55(0x10d))['toLowerCase']()},_0x771950),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x11eb55(0x145)],{'path':_0x3ae1f5,'method':_0x56b0db,'apimit':_0x49e7a2['apimit'],'intercept':_0x49e7a2['intercept'],'routerName':_0x49e7a2[_0x11eb55(0x112)],'description':_0x49e7a2['description'],'middleware':(_0x49e7a2['middleware']||[])[_0x11eb55(0x107)](_0x582d66=>!!_0x582d66),'requestMethod':(_0x54ad25||_0x11eb55(0x10d))['toLowerCase']()})(_0x771950,_0x56b0db,_0x488b4c);};}function parseRoute(_0x2b8973){const _0x5ae463=a4_0x22dd43;_0x2b8973=_0x2b8973[_0x5ae463(0x126)](/(\\|\/)/g,'/');const _0x48bec4=process[_0x5ae463(0x130)]()[_0x5ae463(0x126)](/(\\|\/)/g,'/'),_0x1efd4e=_0x2b8973[_0x5ae463(0x151)](0x0,_0x48bec4[_0x5ae463(0x10f)]+_0x2b8973[_0x5ae463(0x151)](_0x48bec4[_0x5ae463(0x10f)]+0x1)['indexOf']('/')+0x1),_0x4b75f2=_0x2b8973[_0x5ae463(0x151)](_0x1efd4e[_0x5ae463(0x10f)]+0x1)[_0x5ae463(0x126)](/(\\|\/)/g,'/'),_0x17e2d5={'route':'','prefix':![],'module':![],'rootpath':_0x1efd4e,'filepath':_0x4b75f2};if(_0x4b75f2[_0x5ae463(0x10c)](_0x5ae463(0x132))||_0x4b75f2[_0x5ae463(0x10c)](_0x5ae463(0x141))){const _0x5c716a=_0x4b75f2[_0x5ae463(0x151)]((_0x4b75f2[_0x5ae463(0x10c)](_0x5ae463(0x132))?'app/controller/':'basic/controller/')[_0x5ae463(0x10f)])[_0x5ae463(0x102)]('/')[_0x5ae463(0x107)](_0x54fcb9=>_0x54fcb9&&_0x54fcb9[_0x5ae463(0x105)]());return _0x5c716a[_0x5ae463(0x10f)]>0x1&&(_0x17e2d5['prefix']=_0x5c716a[0x0][_0x5ae463(0x12f)](),_0x5c716a[_0x5ae463(0x127)](0x0,0x1)),_0x17e2d5[_0x5ae463(0x140)]=('/'+_0x5c716a[_0x5ae463(0x131)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x5ae463(0x126)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x5ae463(0x131)]('-')[_0x5ae463(0x12f)]()[_0x5ae463(0x126)](/\/\-/g,'/'),_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x123)]('-action')&&(_0x17e2d5[_0x5ae463(0x140)]=_0x17e2d5['route'][_0x5ae463(0x151)](0x0,_0x17e2d5[_0x5ae463(0x140)]['length']-0x7)),_0x17e2d5[_0x5ae463(0x140)]['endsWith'](_0x5ae463(0x147))&&(_0x17e2d5['route']=_0x17e2d5['route'][_0x5ae463(0x151)](0x0,_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x10f)]-0xb)),_0x17e2d5;}else{if(_0x4b75f2[_0x5ae463(0x10c)](_0x5ae463(0x14d))){const _0x65538f=_0x4b75f2[_0x5ae463(0x151)](0x0,_0x4b75f2[_0x5ae463(0x122)](_0x5ae463(0x125))+0x5),_0x735ed9=_0x4b75f2[_0x5ae463(0x151)](_0x65538f[_0x5ae463(0x10f)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x5ae463(0x102)]('/')[0x0];if(_0x4b75f2[_0x5ae463(0x10c)](_0x5ae463(0x14d)+_0x735ed9+'/controller/')){const _0x2699d1=_0x4b75f2[_0x5ae463(0x151)]((_0x65538f+'/'+_0x735ed9+_0x5ae463(0x12b))[_0x5ae463(0x10f)])['split']('/')[_0x5ae463(0x107)](_0x4653e8=>_0x4653e8&&_0x4653e8[_0x5ae463(0x105)]());return _0x2699d1[_0x5ae463(0x10f)]>0x1&&(_0x17e2d5[_0x5ae463(0x150)]=_0x2699d1[0x0][_0x5ae463(0x12f)](),_0x2699d1[_0x5ae463(0x127)](0x0,0x1)),_0x17e2d5[_0x5ae463(0x10e)]=_0x735ed9,_0x17e2d5['route']=('/'+_0x735ed9+'/'+_0x2699d1[_0x5ae463(0x131)]('/'))[_0x5ae463(0x126)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x5ae463(0x12d)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x5ae463(0x12f)]()[_0x5ae463(0x126)](/\/\-/g,'/'),_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x123)]('-action')&&(_0x17e2d5[_0x5ae463(0x140)]=_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x151)](0x0,_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x10f)]-0x7)),_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x123)]('-controller')&&(_0x17e2d5[_0x5ae463(0x140)]=_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x151)](0x0,_0x17e2d5[_0x5ae463(0x140)][_0x5ae463(0x10f)]-0xb)),_0x17e2d5;}throw new Error(_0x4b75f2+_0x5ae463(0x114)+_0x735ed9+_0x5ae463(0x134));}}throw new Error(_0x4b75f2+'\x20文件请放在app/controller/文件下');}const moduleConfigTmp=(0x0,core_1[a4_0x22dd43(0x110)])(action_1[a4_0x22dd43(0x133)],action_1[a4_0x22dd43(0x118)])||{};function getModuleConfig(_0x1ef8ba,_0x1909dc,_0x297eb7){const _0x48d8ed=a4_0x22dd43;if(Object['values']((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x1909dc])||{})['length']==0x0){let _0x33fa44={};if(NODE_ENV&&fs['existsSync'](_0x1ef8ba+'/'+_0x1909dc+_0x48d8ed(0x13b)+NODE_ENV+'.'+_0x297eb7)){const _0x5d0390=include(_0x1ef8ba+'/'+_0x1909dc+'/config.'+NODE_ENV+'.'+_0x297eb7);Object[_0x48d8ed(0x106)](_0x5d0390)['length']>0x0&&(_0x33fa44=lodash[_0x48d8ed(0x10b)](_0x33fa44,_0x5d0390));}if(fs[_0x48d8ed(0x14f)](_0x1ef8ba+'/'+_0x1909dc+_0x48d8ed(0x11f)+_0x297eb7)){const _0x100eba=include(_0x1ef8ba+'/'+_0x1909dc+_0x48d8ed(0x11f)+_0x297eb7);Object[_0x48d8ed(0x106)](_0x100eba)[_0x48d8ed(0x10f)]>0x0&&(_0x33fa44=lodash[_0x48d8ed(0x10b)](_0x33fa44,_0x100eba));}if(fs['existsSync'](_0x1ef8ba+'/'+_0x1909dc+'/config.'+_0x297eb7)){const _0x3308ba=include(_0x1ef8ba+'/'+_0x1909dc+_0x48d8ed(0x13b)+_0x297eb7);Object[_0x48d8ed(0x106)](_0x3308ba)[_0x48d8ed(0x10f)]>0x0&&(_0x33fa44=lodash[_0x48d8ed(0x10b)](_0x33fa44,_0x3308ba));}moduleConfigTmp[_0x1909dc]=_0x33fa44,(0x0,core_1[_0x48d8ed(0x11c)])(action_1[_0x48d8ed(0x133)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x1909dc];}
|
|
1
|
+
const a4_0x2f2f2c=a4_0x1e26;(function(_0x79a2a7,_0x362f8e){const _0x54473b=a4_0x1e26,_0x4c3c0d=_0x79a2a7();while(!![]){try{const _0x458016=-parseInt(_0x54473b(0x1e3))/0x1*(-parseInt(_0x54473b(0x19c))/0x2)+parseInt(_0x54473b(0x1d5))/0x3*(-parseInt(_0x54473b(0x1df))/0x4)+parseInt(_0x54473b(0x194))/0x5+-parseInt(_0x54473b(0x1d6))/0x6+parseInt(_0x54473b(0x1bc))/0x7*(parseInt(_0x54473b(0x1ce))/0x8)+-parseInt(_0x54473b(0x1bb))/0x9+parseInt(_0x54473b(0x1ba))/0xa*(parseInt(_0x54473b(0x197))/0xb);if(_0x458016===_0x362f8e)break;else _0x4c3c0d['push'](_0x4c3c0d['shift']());}catch(_0xbcbd68){_0x4c3c0d['push'](_0x4c3c0d['shift']());}}}(a4_0x684e,0x98874));const a4_0x5b60c7=(function(){let _0x129a99=!![];return function(_0xd1cbf9,_0x51ceac){const _0x4c6546=_0x129a99?function(){const _0x98bc18=a4_0x1e26;if(_0x51ceac){const _0x3e9cea=_0x51ceac[_0x98bc18(0x1a2)](_0xd1cbf9,arguments);return _0x51ceac=null,_0x3e9cea;}}:function(){};return _0x129a99=![],_0x4c6546;};}()),a4_0x1981d4=a4_0x5b60c7(this,function(){const _0x2a7ea4=a4_0x1e26;return a4_0x1981d4[_0x2a7ea4(0x1c5)]()[_0x2a7ea4(0x1d8)]('(((.+)+)+)+$')[_0x2a7ea4(0x1c5)]()[_0x2a7ea4(0x1ad)](a4_0x1981d4)[_0x2a7ea4(0x1d8)]('(((.+)+)+)+$');});a4_0x1981d4();'use strict';var _a,_b;Object[a4_0x2f2f2c(0x1ca)](exports,a4_0x2f2f2c(0x1be),{'value':!![]}),exports[a4_0x2f2f2c(0x1bd)]=Action,exports[a4_0x2f2f2c(0x1e5)]=ActionApi,exports[a4_0x2f2f2c(0x1a8)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x2f2f2c(0x1cc)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a4_0x2f2f2c(0x19b)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x2f2f2c(0x1bf)])===null||_a===void 0x0?void 0x0:_a[a4_0x2f2f2c(0x19d)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x2f2f2c(0x1bf)])===null||_b===void 0x0?void 0x0:_b[a4_0x2f2f2c(0x195)]);function Action(_0x640f68,_0x54b065,_0x6ecd86={'middleware':[],'sensitive':!![]}){return _0x242abd=>{const _0x3c2b57=a4_0x1e26;var _0x5f4187;_0x6ecd86[_0x3c2b57(0x1c2)]=_0x54b065;const _0x5b7014=parseRoute(_0x640f68);if(_0x5b7014[_0x3c2b57(0x1b7)]){_0x6ecd86[_0x3c2b57(0x1ac)]=_0x6ecd86[_0x3c2b57(0x1ac)]?'/'+_0x5b7014[_0x3c2b57(0x1b7)]+'/'+_0x6ecd86[_0x3c2b57(0x1ac)]:'/'+_0x5b7014['route'];_0x5b7014[_0x3c2b57(0x1ac)]&&(_0x6ecd86[_0x3c2b57(0x1ac)]='/'+_0x5b7014[_0x3c2b57(0x1ac)]+'/'+_0x6ecd86[_0x3c2b57(0x1ac)]);_0x6ecd86[_0x3c2b57(0x1ac)]=_0x6ecd86[_0x3c2b57(0x1ac)]['toLowerCase']()[_0x3c2b57(0x1e4)](/\/{2,}/g,'/');const _0x1769af=getModuleConfig(_0x5b7014[_0x3c2b57(0x1b2)]+_0x3c2b57(0x1e6),_0x5b7014['module'],lodash[_0x3c2b57(0x1b8)](_0x5b7014['filepath'],'ts')?'ts':'js');if(lodash['isArray'](_0x1769af[_0x3c2b57(0x1e2)])&&_0x1769af[_0x3c2b57(0x1e2)][_0x3c2b57(0x1d9)]>0x0)for(let _0x329e6c in _0x1769af[_0x3c2b57(0x1e2)]){if(((_0x5f4187=_0x1769af===null||_0x1769af===void 0x0?void 0x0:_0x1769af[_0x3c2b57(0x193)])===null||_0x5f4187===void 0x0?void 0x0:_0x5f4187[_0x3c2b57(0x1d9)])>0x0&&_0x1769af[_0x3c2b57(0x193)]['indexOf'](_0x1769af[_0x3c2b57(0x1e2)][_0x329e6c])!=-0x1)continue;_0x6ecd86[_0x3c2b57(0x1e2)][_0x3c2b57(0x1aa)](_0x1769af[_0x3c2b57(0x1e2)][_0x329e6c]);}(0x0,core_1['saveModule'])(action_1[_0x3c2b57(0x1cf)],_0x242abd),(0x0,core_1['Controller'])(_0x6ecd86[_0x3c2b57(0x1ac)],_0x6ecd86)(_0x242abd),(0x0,core_1['saveClassMetadata'])(action_1[_0x3c2b57(0x1cf)],{'prefix':_0x6ecd86[_0x3c2b57(0x1ac)],'pprefix':_0x5b7014['prefix'],'module':_0x5b7014[_0x3c2b57(0x1b7)],'filepath':_0x5b7014[_0x3c2b57(0x1c6)],'routerOptions':_0x6ecd86},_0x242abd);}else _0x6ecd86['prefix']=_0x6ecd86[_0x3c2b57(0x1ac)]?'/'+_0x6ecd86['prefix']:'/'+_0x5b7014[_0x3c2b57(0x1a4)],_0x5b7014[_0x3c2b57(0x1ac)]&&(_0x6ecd86[_0x3c2b57(0x1ac)]='/'+_0x5b7014[_0x3c2b57(0x1ac)]+'/'+_0x6ecd86[_0x3c2b57(0x1ac)]),_0x6ecd86[_0x3c2b57(0x1ac)]=_0x6ecd86['prefix']['toLowerCase']()[_0x3c2b57(0x1e4)](/\/{2,}/g,'/'),(0x0,core_1[_0x3c2b57(0x1dd)])(action_1[_0x3c2b57(0x1cf)],_0x242abd),(0x0,core_1['Controller'])(_0x6ecd86[_0x3c2b57(0x1ac)],_0x6ecd86)(_0x242abd),(0x0,core_1[_0x3c2b57(0x1d0)])(action_1[_0x3c2b57(0x1cf)],{'prefix':_0x6ecd86['prefix'],'module':_0x5b7014[_0x3c2b57(0x1b7)],'pprefix':_0x5b7014[_0x3c2b57(0x1ac)],'filepath':_0x5b7014[_0x3c2b57(0x1c6)],'routerOptions':_0x6ecd86},_0x242abd);};}Action[a4_0x2f2f2c(0x1c3)]=function(_0x47b1d0,_0x4767b2='/',_0x8e7a1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x162e96,_0xfd19ce,_0x5a62ca)=>{const _0x1073d1=a4_0x1e26;ActionApi(_0x47b1d0,_0x1073d1(0x1c3),_0x4767b2,_0x8e7a1)(_0x162e96,_0xfd19ce,_0x5a62ca);};},Action[a4_0x2f2f2c(0x1a6)]=function(_0x2d6d3f,_0x4690d4='/',_0x57982a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2b348b,_0x831bb8,_0x1b3c77)=>{ActionApi(_0x2d6d3f,'post',_0x4690d4,_0x57982a)(_0x2b348b,_0x831bb8,_0x1b3c77);};};function a4_0x684e(){const _0x5d0ff1=['middlewareIgnore','5186335eHVgqj','NODE_ENV','createCustomMethodDecorator','11ZzGDAg','string','Validator','APPSCONFIG_KEY','../types/action','6YpUVKV','MIDWAY_SERVER_ENV','values','match','AppsConfigTmp','ACTION_RESPONSE_KEY','apply','undefined','route','defaultsDeep','post','response','parseRoute','ACTION_ROUTE_KEY','push','cwd','prefix','constructor','app/controller/','-action','/apps/','getClassMetadata','rootpath','-controller','intercept','split','existsSync','module','endsWith','splice','1154630xCjyXT','7754112FrUVVK','127561XezALW','Action','__esModule','env','substring','basic/controller/','tagName','get','filter','toString','filepath','assign','toLowerCase','startsWith','defineProperty','trim','@anncic-api/validator','indexOf','464IQBNGJ','ACTION_KEY','saveClassMetadata','attachClassMetadata','\x20文件请放在app/controller/文件下','keys','apimit','60579xKrcpI','5992332SYqcUg','join','search','length','/config.default.','/config.','routerName','saveModule','validate','140GsvPJs','/controller/','apps/','middleware','327379oLBIzu','replace','ActionApi','/apps','validationOptions'];a4_0x684e=function(){return _0x5d0ff1;};return a4_0x684e();}function ActionApi(_0x1cf63c,_0x44f021='get',_0x4ce040='/',_0xe0c191={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3e972f,_0x25a7bf,_0x1925aa)=>{const _0x4b6d9c=a4_0x1e26;var _0x57ce00,_0x52258e,_0x6092e6;!_0xe0c191[_0x4b6d9c(0x1e2)]&&(_0xe0c191[_0x4b6d9c(0x1e2)]=[]);!((_0x57ce00=_0xe0c191===null||_0xe0c191===void 0x0?void 0x0:_0xe0c191[_0x4b6d9c(0x1de)])===null||_0x57ce00===void 0x0?void 0x0:_0x57ce00[_0x4b6d9c(0x1e7)])&&(_0xe0c191['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x4ce040)_0x4ce040='/';else typeof _0x4ce040==_0x4b6d9c(0x198)&&(!_0x4ce040[_0x4b6d9c(0x1c9)]('/')&&!_0x4ce040[_0x4b6d9c(0x1c9)]('-')&&(_0x4ce040='/'+_0x4ce040));typeof _0xe0c191[_0x4b6d9c(0x1d4)]==_0x4b6d9c(0x1a3)&&(_0xe0c191['apimit']=!![]);if(((_0x52258e=_0xe0c191===null||_0xe0c191===void 0x0?void 0x0:_0xe0c191[_0x4b6d9c(0x1e2)])===null||_0x52258e===void 0x0?void 0x0:_0x52258e[_0x4b6d9c(0x1d9)])>0x0&&((_0x6092e6=_0xe0c191===null||_0xe0c191===void 0x0?void 0x0:_0xe0c191[_0x4b6d9c(0x193)])===null||_0x6092e6===void 0x0?void 0x0:_0x6092e6[_0x4b6d9c(0x1d9)])>0x0)for(let _0xb784a7 in _0xe0c191[_0x4b6d9c(0x1e2)]){_0xe0c191[_0x4b6d9c(0x193)][_0x4b6d9c(0x1cd)](_0xe0c191[_0x4b6d9c(0x1e2)][_0xb784a7])!==-0x1&&(_0xe0c191[_0x4b6d9c(0x1e2)][_0xb784a7]=null);}_0xe0c191['routerName']=_0x1cf63c,(0x0,validator_1[_0x4b6d9c(0x199)])(_0xe0c191['validate'])(_0x3e972f,_0x25a7bf,_0x1925aa),(0x0,core_2['RequestMapping'])(Object[_0x4b6d9c(0x1c7)](_0xe0c191,{'path':_0x4ce040,'requestMethod':(_0x44f021||_0x4b6d9c(0x1c3))[_0x4b6d9c(0x1c8)]()}))(_0x3e972f,_0x25a7bf,_0x1925aa),(0x0,core_2[_0x4b6d9c(0x1d1)])(action_1[_0x4b6d9c(0x1a9)],{'path':_0x4ce040,'method':_0x25a7bf,'apimit':_0xe0c191['apimit'],'intercept':_0xe0c191[_0x4b6d9c(0x1b4)],'routerName':_0xe0c191[_0x4b6d9c(0x1dc)],'description':_0xe0c191['description'],'middleware':(_0xe0c191[_0x4b6d9c(0x1e2)]||[])[_0x4b6d9c(0x1c4)](_0x4254ca=>!!_0x4254ca),'requestMethod':(_0x44f021||_0x4b6d9c(0x1c3))[_0x4b6d9c(0x1c8)]()},_0x3e972f),(0x0,core_2[_0x4b6d9c(0x196)])(action_1[_0x4b6d9c(0x1a9)],{'path':_0x4ce040,'method':_0x25a7bf,'apimit':_0xe0c191['apimit'],'intercept':_0xe0c191[_0x4b6d9c(0x1b4)],'routerName':_0xe0c191['routerName'],'description':_0xe0c191['description'],'middleware':(_0xe0c191[_0x4b6d9c(0x1e2)]||[])['filter'](_0x2163f5=>!!_0x2163f5),'requestMethod':(_0x44f021||_0x4b6d9c(0x1c3))['toLowerCase']()})(_0x3e972f,_0x25a7bf,_0x1925aa),_0xe0c191[_0x4b6d9c(0x1a7)]&&(0x0,core_2['attachClassMetadata'])(action_1[_0x4b6d9c(0x1a1)],{'method':_0x25a7bf,..._0xe0c191[_0x4b6d9c(0x1a7)]},_0x3e972f);};}function a4_0x1e26(_0x3587db,_0x1c2c41){const _0x8ce2a=a4_0x684e();return a4_0x1e26=function(_0x1981d4,_0x5b60c7){_0x1981d4=_0x1981d4-0x193;let _0x684ed8=_0x8ce2a[_0x1981d4];return _0x684ed8;},a4_0x1e26(_0x3587db,_0x1c2c41);}function parseRoute(_0x55b411){const _0x424d97=a4_0x2f2f2c;_0x55b411=_0x55b411[_0x424d97(0x1e4)](/(\\|\/)/g,'/');const _0x2ab5a6=process[_0x424d97(0x1ab)]()[_0x424d97(0x1e4)](/(\\|\/)/g,'/'),_0x3f7e96=_0x55b411[_0x424d97(0x1c0)](0x0,_0x2ab5a6[_0x424d97(0x1d9)]+_0x55b411[_0x424d97(0x1c0)](_0x2ab5a6[_0x424d97(0x1d9)]+0x1)[_0x424d97(0x1cd)]('/')+0x1),_0xaef61a=_0x55b411['substring'](_0x3f7e96[_0x424d97(0x1d9)]+0x1)[_0x424d97(0x1e4)](/(\\|\/)/g,'/'),_0x67bc24={'route':'','prefix':![],'module':![],'rootpath':_0x3f7e96,'filepath':_0xaef61a};if(_0xaef61a[_0x424d97(0x1c9)]('app/controller/')||_0xaef61a[_0x424d97(0x1c9)](_0x424d97(0x1c1))){const _0x2831b4=_0xaef61a['substring']((_0xaef61a[_0x424d97(0x1c9)](_0x424d97(0x1ae))?'app/controller/':_0x424d97(0x1c1))[_0x424d97(0x1d9)])[_0x424d97(0x1b5)]('/')[_0x424d97(0x1c4)](_0x5b7dd7=>_0x5b7dd7&&_0x5b7dd7[_0x424d97(0x1cb)]());return _0x2831b4['length']>0x1&&(_0x67bc24[_0x424d97(0x1ac)]=_0x2831b4[0x0][_0x424d97(0x1c8)](),_0x2831b4[_0x424d97(0x1b9)](0x0,0x1)),_0x67bc24[_0x424d97(0x1a4)]=('/'+_0x2831b4[_0x424d97(0x1d7)]('/'))[_0x424d97(0x1e4)](/(\.ts|\.js)$/,'')[_0x424d97(0x1e4)](/\/{2,}/g,'/')[_0x424d97(0x19f)](/[\/|A-Z]*[^A-Z]+/g)[_0x424d97(0x1d7)]('-')[_0x424d97(0x1c8)]()[_0x424d97(0x1e4)](/\/\-/g,'/'),_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1b8)](_0x424d97(0x1af))&&(_0x67bc24['route']=_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1c0)](0x0,_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1d9)]-0x7)),_0x67bc24['route']['endsWith'](_0x424d97(0x1b3))&&(_0x67bc24[_0x424d97(0x1a4)]=_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1c0)](0x0,_0x67bc24['route'][_0x424d97(0x1d9)]-0xb)),_0x67bc24;}else{if(_0xaef61a['startsWith'](_0x424d97(0x1e1))){const _0xff18ee=_0xaef61a[_0x424d97(0x1c0)](0x0,_0xaef61a[_0x424d97(0x1cd)](_0x424d97(0x1b0))+0x5),_0x5e1d8f=_0xaef61a[_0x424d97(0x1c0)](_0xff18ee[_0x424d97(0x1d9)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x424d97(0x1b5)]('/')[0x0];if(_0xaef61a[_0x424d97(0x1c9)](_0x424d97(0x1e1)+_0x5e1d8f+_0x424d97(0x1e0))){const _0x5f12cd=_0xaef61a[_0x424d97(0x1c0)]((_0xff18ee+'/'+_0x5e1d8f+_0x424d97(0x1e0))['length'])[_0x424d97(0x1b5)]('/')[_0x424d97(0x1c4)](_0x522a80=>_0x522a80&&_0x522a80['trim']());return _0x5f12cd[_0x424d97(0x1d9)]>0x1&&(_0x67bc24[_0x424d97(0x1ac)]=_0x5f12cd[0x0][_0x424d97(0x1c8)](),_0x5f12cd[_0x424d97(0x1b9)](0x0,0x1)),_0x67bc24[_0x424d97(0x1b7)]=_0x5e1d8f,_0x67bc24['route']=('/'+_0x5e1d8f+'/'+_0x5f12cd[_0x424d97(0x1d7)]('/'))[_0x424d97(0x1e4)](/(\.ts|\.js)$/,'')[_0x424d97(0x1e4)](/\/{2,}/g,'/')[_0x424d97(0x19f)](/[\/|A-Z]*[^A-Z]+/g)[_0x424d97(0x1d7)]('-')['toLowerCase']()[_0x424d97(0x1e4)](/\/\-/g,'/'),_0x67bc24[_0x424d97(0x1a4)]['endsWith']('-action')&&(_0x67bc24[_0x424d97(0x1a4)]=_0x67bc24['route'][_0x424d97(0x1c0)](0x0,_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1d9)]-0x7)),_0x67bc24[_0x424d97(0x1a4)]['endsWith'](_0x424d97(0x1b3))&&(_0x67bc24[_0x424d97(0x1a4)]=_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1c0)](0x0,_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1d9)]-0xb)),_0x67bc24;}throw new Error(_0xaef61a+'\x20文件请放在apps/'+_0x5e1d8f+'/controller/文件下');}}throw new Error(_0xaef61a+_0x424d97(0x1d2));}const moduleConfigTmp=(0x0,core_1[a4_0x2f2f2c(0x1b1)])(action_1['APPSCONFIG_KEY'],action_1[a4_0x2f2f2c(0x1a0)])||{};function getModuleConfig(_0x4c1485,_0x165724,_0x14eb08){const _0x2e9b99=a4_0x2f2f2c;if(Object[_0x2e9b99(0x19e)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x165724])||{})[_0x2e9b99(0x1d9)]==0x0){let _0x486598={};if(NODE_ENV&&fs[_0x2e9b99(0x1b6)](_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1db)+NODE_ENV+'.'+_0x14eb08)){const _0x4a28ef=include(_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1db)+NODE_ENV+'.'+_0x14eb08);Object[_0x2e9b99(0x1d3)](_0x4a28ef)[_0x2e9b99(0x1d9)]>0x0&&(_0x486598=lodash[_0x2e9b99(0x1a5)](_0x486598,_0x4a28ef));}if(fs[_0x2e9b99(0x1b6)](_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1da)+_0x14eb08)){const _0x25d1c3=include(_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1da)+_0x14eb08);Object[_0x2e9b99(0x1d3)](_0x25d1c3)[_0x2e9b99(0x1d9)]>0x0&&(_0x486598=lodash[_0x2e9b99(0x1a5)](_0x486598,_0x25d1c3));}if(fs[_0x2e9b99(0x1b6)](_0x4c1485+'/'+_0x165724+'/config.'+_0x14eb08)){const _0x590e30=include(_0x4c1485+'/'+_0x165724+'/config.'+_0x14eb08);Object['keys'](_0x590e30)['length']>0x0&&(_0x486598=lodash[_0x2e9b99(0x1a5)](_0x486598,_0x590e30));}moduleConfigTmp[_0x165724]=_0x486598,(0x0,core_1['saveClassMetadata'])(action_1[_0x2e9b99(0x19a)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x165724];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x4f2f24=a5_0x66d8;(function(_0x2048e2,_0x4c64da){const _0x7eb839=a5_0x66d8,_0x2d9884=_0x2048e2();while(!![]){try{const _0x4941b4=parseInt(_0x7eb839(0xea))/0x1+-parseInt(_0x7eb839(0xdf))/0x2*(parseInt(_0x7eb839(0xdb))/0x3)+parseInt(_0x7eb839(0xd7))/0x4*(parseInt(_0x7eb839(0xd2))/0x5)+-parseInt(_0x7eb839(0xe7))/0x6*(-parseInt(_0x7eb839(0xd6))/0x7)+parseInt(_0x7eb839(0xd9))/0x8*(-parseInt(_0x7eb839(0xef))/0x9)+-parseInt(_0x7eb839(0xd3))/0xa*(-parseInt(_0x7eb839(0xd4))/0xb)+-parseInt(_0x7eb839(0xe9))/0xc;if(_0x4941b4===_0x4c64da)break;else _0x2d9884['push'](_0x2d9884['shift']());}catch(_0x2012a6){_0x2d9884['push'](_0x2d9884['shift']());}}}(a5_0x35c0,0x1cebc));function a5_0x66d8(_0x526870,_0x12b344){const _0xba7e02=a5_0x35c0();return a5_0x66d8=function(_0x24d419,_0x4804f6){_0x24d419=_0x24d419-0xce;let _0x35c03e=_0xba7e02[_0x24d419];return _0x35c03e;},a5_0x66d8(_0x526870,_0x12b344);}const a5_0x4804f6=(function(){let _0x3969fe=!![];return function(_0xcf34e7,_0xc5ca16){const _0x2fc1e2=_0x3969fe?function(){const _0x38af95=a5_0x66d8;if(_0xc5ca16){const _0x18cbef=_0xc5ca16[_0x38af95(0xce)](_0xcf34e7,arguments);return _0xc5ca16=null,_0x18cbef;}}:function(){};return _0x3969fe=![],_0x2fc1e2;};}()),a5_0x24d419=a5_0x4804f6(this,function(){const _0x38096a=a5_0x66d8;return a5_0x24d419[_0x38096a(0xde)]()[_0x38096a(0xe3)](_0x38096a(0xe5))[_0x38096a(0xde)]()['constructor'](a5_0x24d419)[_0x38096a(0xe3)]('(((.+)+)+)+$');});function a5_0x35c0(){const _0x49ccae=['value','get','search','__esModule','(((.+)+)+)+$','RequestMapping','1054374DeIeVz','REQUEST_OBJ_CTX_KEY','2557908oQhOZy','128017DQeqFa','getConfig','defineProperty','apitest','app','1557918NbnpRR','apply','MidwayEnvironmentService','/apitest','getApplicationContext','5aBAHdT','10ortkGd','2447621wiUDPp','ApitestService','7YAuiSF','214796ehgrFz','getAsync','8PtXqsQ','filepath','15jHvZYU','isDevelopmentEnvironment','apidoc','toString','30094HOskXn','../service/ApitestService'];a5_0x35c0=function(){return _0x49ccae;};return a5_0x35c0();}a5_0x24d419();'use strict';Object[a5_0x4f2f24(0xec)](exports,a5_0x4f2f24(0xe4),{'value':!![]}),exports['Apitest']=Apitest;const core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x4f2f24(0xe0));function Apitest(_0xf0491c=a5_0x4f2f24(0xd0),_0x302bf9){return(_0xacc82a,_0x38700f,_0x1592b6)=>{const _0x443d2c=a5_0x66d8;return(0x0,core_1[_0x443d2c(0xe6)])({'path':_0xf0491c,'requestMethod':_0x443d2c(0xe2)})(_0xacc82a,_0x38700f,_0x1592b6),_0x1592b6[_0x443d2c(0xe1)]=async function(..._0x14053f){const _0xa86e87=_0x443d2c;var _0xa8cf00;const _0x515be2=(_0xa8cf00=this[core_1[_0xa86e87(0xe8)]])===null||_0xa8cf00===void 0x0?void 0x0:_0xa8cf00[_0xa86e87(0xee)];if(_0x515be2&&_0x515be2[_0xa86e87(0xeb)](_0xa86e87(0xed))){const _0x3ccea3=await _0x515be2['getApplicationContext']()[_0xa86e87(0xd8)](ApitestService_1[_0xa86e87(0xd5)]),_0x57711e=await _0x515be2[_0xa86e87(0xd1)]()['getAsync'](core_1[_0xa86e87(0xcf)]);return _0x57711e[_0xa86e87(0xdc)]()&&(_0x302bf9[_0xa86e87(0xda)]=!![]),await _0x3ccea3[_0xa86e87(0xdd)](_0x302bf9);}return'';},_0x1592b6;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x1c53(_0x51dd30,_0x5c0418){const _0x591c4c=a6_0x4c01();return a6_0x1c53=function(_0x1608fd,_0x18ea0e){_0x1608fd=_0x1608fd-0x154;let _0x4c01b1=_0x591c4c[_0x1608fd];return _0x4c01b1;},a6_0x1c53(_0x51dd30,_0x5c0418);}const a6_0x2be568=a6_0x1c53;(function(_0x5976ca,_0x2b9ca7){const _0x48d370=a6_0x1c53,_0x2e3b14=_0x5976ca();while(!![]){try{const _0x2fdc3e=-parseInt(_0x48d370(0x15e))/0x1+-parseInt(_0x48d370(0x16d))/0x2*(parseInt(_0x48d370(0x162))/0x3)+-parseInt(_0x48d370(0x168))/0x4+parseInt(_0x48d370(0x15b))/0x5*(parseInt(_0x48d370(0x16b))/0x6)+-parseInt(_0x48d370(0x171))/0x7*(parseInt(_0x48d370(0x16a))/0x8)+parseInt(_0x48d370(0x158))/0x9+parseInt(_0x48d370(0x157))/0xa*(parseInt(_0x48d370(0x163))/0xb);if(_0x2fdc3e===_0x2b9ca7)break;else _0x2e3b14['push'](_0x2e3b14['shift']());}catch(_0x225c8d){_0x2e3b14['push'](_0x2e3b14['shift']());}}}(a6_0x4c01,0xa71a1));const a6_0x18ea0e=(function(){let _0x510619=!![];return function(_0x5c298f,_0x31ae7e){const _0x55d319=_0x510619?function(){const _0x5a5f8d=a6_0x1c53;if(_0x31ae7e){const _0x119a91=_0x31ae7e[_0x5a5f8d(0x164)](_0x5c298f,arguments);return _0x31ae7e=null,_0x119a91;}}:function(){};return _0x510619=![],_0x55d319;};}()),a6_0x1608fd=a6_0x18ea0e(this,function(){const _0x5f2740=a6_0x1c53;return a6_0x1608fd[_0x5f2740(0x170)]()[_0x5f2740(0x16c)](_0x5f2740(0x16e))[_0x5f2740(0x170)]()[_0x5f2740(0x156)](a6_0x1608fd)['search'](_0x5f2740(0x16e));});a6_0x1608fd();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['IIntercept']=void 0x0,exports[a6_0x2be568(0x15f)]=Intercept;const core_1=require(a6_0x2be568(0x159)),intercept_1=require(a6_0x2be568(0x15a));function Intercept(_0x59ead9){return _0x21c7be=>{const _0x175d3c=a6_0x1c53,_0x4de4ff=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x175d3c(0x169)])||{};for(let _0x12c0e8 of Array[_0x175d3c(0x161)](_0x59ead9)?_0x59ead9:[_0x59ead9]){_0x12c0e8=_0x12c0e8[_0x175d3c(0x166)]();!(_0x4de4ff===null||_0x4de4ff===void 0x0?void 0x0:_0x4de4ff[_0x12c0e8])&&(_0x4de4ff[_0x12c0e8]=[]);if(_0x4de4ff[_0x12c0e8][_0x175d3c(0x15d)](_0x21c7be))continue;_0x4de4ff[_0x12c0e8]['push'](_0x21c7be);}(0x0,core_1[_0x175d3c(0x154)])()(_0x21c7be),(0x0,core_1[_0x175d3c(0x15c)])(core_1[_0x175d3c(0x165)][_0x175d3c(0x167)])(_0x21c7be),(0x0,core_1[_0x175d3c(0x160)])(intercept_1[_0x175d3c(0x155)],_0x4de4ff,intercept_1[_0x175d3c(0x169)]);};}class IIntercept{async['match'](_0x513df0,_0x432374,_0x4c8ec5){return!![];}}exports[a6_0x2be568(0x16f)]=IIntercept;function a6_0x4c01(){const _0x395944=['saveClassMetadata','isArray','57UYYRkO','11YQJDlV','apply','ScopeEnum','toUpperCase','Singleton','1758148uVjqTY','InterceptTargetTmp','3861992pSxFle','541836rJkfrA','search','12054UMhdIJ','(((.+)+)+)+$','IIntercept','toString','7roYAOs','Provide','INTERCEPT_KEY','constructor','7864190clvboe','7801632ASmTsc','@midwayjs/core','../types/intercept','5zveKln','Scope','includes','22325sFWvly','Intercept'];a6_0x4c01=function(){return _0x395944;};return a6_0x4c01();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a7_0x5d27(_0x193518,_0x180b3c){var _0x37d09e=a7_0x341b();return a7_0x5d27=function(_0x4d878e,_0x1bcca0){_0x4d878e=_0x4d878e-0x1a2;var _0x341b4a=_0x37d09e[_0x4d878e];return _0x341b4a;},a7_0x5d27(_0x193518,_0x180b3c);}function a7_0x341b(){var _0x5bc4dc=['(((.+)+)+)+$','ApiError','2612853wtACBZ','20hvoRMC','HEADERS_LACK','1462185KRogxS','180509jSGyCB','apply','HEADERS_DEVICE','function','design:type','HEADERS_SIGNATURE','__esModule','请求超时,请重试','decorate','40LXjHUd','signature验证失败','2VDssDq','length','2028456vCDezx','object','TIMEOUT','295208mHNrGQ','getOwnPropertyDescriptor','search','验证失败,请重新登录','TIMEOUT_LOGINTIME','HEADERS_CHECKCODE','__metadata','14487297JoddBl','constructor','9bRRjsT','558847IOeJis','defineProperty','登录超时,请重新登录'];a7_0x341b=function(){return _0x5bc4dc;};return a7_0x341b();}var a7_0x559229=a7_0x5d27;(function(_0x56cf85,_0x18540f){var _0x58390b=a7_0x5d27,_0x3af666=_0x56cf85();while(!![]){try{var _0xcec72a=parseInt(_0x58390b(0x1ba))/0x1*(parseInt(_0x58390b(0x1ab))/0x2)+-parseInt(_0x58390b(0x1b9))/0x3*(parseInt(_0x58390b(0x1b0))/0x4)+-parseInt(_0x58390b(0x1c2))/0x5+-parseInt(_0x58390b(0x1ad))/0x6+-parseInt(_0x58390b(0x1c3))/0x7*(parseInt(_0x58390b(0x1a9))/0x8)+-parseInt(_0x58390b(0x1bf))/0x9*(parseInt(_0x58390b(0x1c0))/0xa)+parseInt(_0x58390b(0x1b7))/0xb;if(_0xcec72a===_0x18540f)break;else _0x3af666['push'](_0x3af666['shift']());}catch(_0x2ad805){_0x3af666['push'](_0x3af666['shift']());}}}(a7_0x341b,0x4cc12));var a7_0x1bcca0=(function(){var _0x3512fa=!![];return function(_0x4de7bf,_0x1a0fb2){var _0x4fa385=_0x3512fa?function(){var _0x153590=a7_0x5d27;if(_0x1a0fb2){var _0x3b0038=_0x1a0fb2[_0x153590(0x1c4)](_0x4de7bf,arguments);return _0x1a0fb2=null,_0x3b0038;}}:function(){};return _0x3512fa=![],_0x4fa385;};}()),a7_0x4d878e=a7_0x1bcca0(this,function(){var _0x2cd216=a7_0x5d27;return a7_0x4d878e['toString']()['search'](_0x2cd216(0x1bd))['toString']()[_0x2cd216(0x1b8)](a7_0x4d878e)[_0x2cd216(0x1b2)]('(((.+)+)+)+$');});a7_0x4d878e();'use strict';var __decorate=this&&this['__decorate']||function(_0xc9118d,_0xc4ebcb,_0x2ee188,_0x3bb193){var _0x1af0e1=a7_0x5d27,_0x12f8e7=arguments[_0x1af0e1(0x1ac)],_0x5d1f0b=_0x12f8e7<0x3?_0xc4ebcb:_0x3bb193===null?_0x3bb193=Object[_0x1af0e1(0x1b1)](_0xc4ebcb,_0x2ee188):_0x3bb193,_0xf168e3;if(typeof Reflect===_0x1af0e1(0x1ae)&&typeof Reflect[_0x1af0e1(0x1a8)]===_0x1af0e1(0x1a3))_0x5d1f0b=Reflect['decorate'](_0xc9118d,_0xc4ebcb,_0x2ee188,_0x3bb193);else{for(var _0x290e31=_0xc9118d[_0x1af0e1(0x1ac)]-0x1;_0x290e31>=0x0;_0x290e31--)if(_0xf168e3=_0xc9118d[_0x290e31])_0x5d1f0b=(_0x12f8e7<0x3?_0xf168e3(_0x5d1f0b):_0x12f8e7>0x3?_0xf168e3(_0xc4ebcb,_0x2ee188,_0x5d1f0b):_0xf168e3(_0xc4ebcb,_0x2ee188))||_0x5d1f0b;}return _0x12f8e7>0x3&&_0x5d1f0b&&Object[_0x1af0e1(0x1bb)](_0xc4ebcb,_0x2ee188,_0x5d1f0b),_0x5d1f0b;},__metadata=this&&this[a7_0x559229(0x1b6)]||function(_0x3a0cd0,_0x5c6031){var _0x3eb1f1=a7_0x559229;if(typeof Reflect===_0x3eb1f1(0x1ae)&&typeof Reflect['metadata']===_0x3eb1f1(0x1a3))return Reflect['metadata'](_0x3a0cd0,_0x5c6031);};Object[a7_0x559229(0x1bb)](exports,a7_0x559229(0x1a6),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}exports[a7_0x559229(0x1be)]=ApiError,ApiError[a7_0x559229(0x1af)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a7_0x559229(0x1a2)]=0x18e73,ApiError[a7_0x559229(0x1a5)]=0x18e74,ApiError[a7_0x559229(0x1b5)]=0x18e75,ApiError[a7_0x559229(0x1b4)]=0x18e76,__decorate([AnnErrorMsg(a7_0x559229(0x1a7)),__metadata(a7_0x559229(0x1a4),Object)],ApiError,a7_0x559229(0x1af),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a7_0x559229(0x1c1),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a7_0x559229(0x1a4),Object)],ApiError,a7_0x559229(0x1a2),void 0x0),__decorate([AnnErrorMsg(a7_0x559229(0x1aa)),__metadata(a7_0x559229(0x1a4),Object)],ApiError,a7_0x559229(0x1a5),void 0x0),__decorate([AnnErrorMsg(a7_0x559229(0x1b3)),__metadata(a7_0x559229(0x1a4),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a7_0x559229(0x1bc)),__metadata(a7_0x559229(0x1a4),Object)],ApiError,a7_0x559229(0x1b4),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x4d23(_0x1b9a19,_0x5996cb){const _0x30fff4=a8_0x4c7c();return a8_0x4d23=function(_0x4900a6,_0x19cf77){_0x4900a6=_0x4900a6-0x148;let _0x4c7c93=_0x30fff4[_0x4900a6];return _0x4c7c93;},a8_0x4d23(_0x1b9a19,_0x5996cb);}const a8_0x5748b3=a8_0x4d23;(function(_0x44fb2f,_0x186a5a){const _0x851ed=a8_0x4d23,_0x1babd5=_0x44fb2f();while(!![]){try{const _0x590629=parseInt(_0x851ed(0x149))/0x1*(parseInt(_0x851ed(0x15c))/0x2)+parseInt(_0x851ed(0x15b))/0x3+-parseInt(_0x851ed(0x159))/0x4+parseInt(_0x851ed(0x151))/0x5*(-parseInt(_0x851ed(0x154))/0x6)+parseInt(_0x851ed(0x14b))/0x7+-parseInt(_0x851ed(0x150))/0x8+parseInt(_0x851ed(0x158))/0x9;if(_0x590629===_0x186a5a)break;else _0x1babd5['push'](_0x1babd5['shift']());}catch(_0x5be20f){_0x1babd5['push'](_0x1babd5['shift']());}}}(a8_0x4c7c,0x8eae7));const a8_0x19cf77=(function(){let _0x37bfe6=!![];return function(_0x1aa9c0,_0x1a9641){const _0x2aab48=_0x37bfe6?function(){if(_0x1a9641){const _0x350e9c=_0x1a9641['apply'](_0x1aa9c0,arguments);return _0x1a9641=null,_0x350e9c;}}:function(){};return _0x37bfe6=![],_0x2aab48;};}()),a8_0x4900a6=a8_0x19cf77(this,function(){const _0x1ad856=a8_0x4d23;return a8_0x4900a6[_0x1ad856(0x14c)]()[_0x1ad856(0x157)](_0x1ad856(0x148))[_0x1ad856(0x14c)]()[_0x1ad856(0x15a)](a8_0x4900a6)[_0x1ad856(0x157)]('(((.+)+)+)+$');});a8_0x4900a6();'use strict';Object[a8_0x5748b3(0x156)](exports,a8_0x5748b3(0x153),{'value':!![]}),exports[a8_0x5748b3(0x14f)]=getAppsConfig;function a8_0x4c7c(){const _0x3683bb=['15JrEmZd','AppsConfigTmp','__esModule','447366syXhcD','get','defineProperty','search','13371930bWopsw','2962568GCViuy','constructor','1246575XVIRYm','10fCVKTt','(((.+)+)+)+$','11782OYVXBZ','getClassMetadata','1019697HXsZMK','toString','@midwayjs/core','APPSCONFIG_KEY','getAppsConfig','4457024waMuPM'];a8_0x4c7c=function(){return _0x3683bb;};return a8_0x4c7c();}const core_1=require(a8_0x5748b3(0x14d)),action_1=require('../types/action');function getAppsConfig(_0x463fe5,_0x3f9a7c){const _0xcf5e86=a8_0x5748b3,_0x45cd2a=(0x0,core_1[_0xcf5e86(0x14a)])(action_1[_0xcf5e86(0x14e)],action_1[_0xcf5e86(0x152)])||{};return _0x463fe5?lodash[_0xcf5e86(0x155)](_0x45cd2a,_0x463fe5,_0x3f9a7c):_0x45cd2a;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x2aa386=a9_0x42e4;function a9_0x42e4(_0x16420d,_0x18c8b8){const _0x3797b6=a9_0x18cb();return a9_0x42e4=function(_0xdfa17d,_0x22a0db){_0xdfa17d=_0xdfa17d-0x9d;let _0x18cb7b=_0x3797b6[_0xdfa17d];return _0x18cb7b;},a9_0x42e4(_0x16420d,_0x18c8b8);}(function(_0x26825c,_0x21f3b1){const _0x1528cb=a9_0x42e4,_0x19aec2=_0x26825c();while(!![]){try{const _0x3dd2da=parseInt(_0x1528cb(0xad))/0x1+-parseInt(_0x1528cb(0xa6))/0x2+parseInt(_0x1528cb(0xe3))/0x3*(parseInt(_0x1528cb(0xb2))/0x4)+-parseInt(_0x1528cb(0x103))/0x5+parseInt(_0x1528cb(0xf1))/0x6*(-parseInt(_0x1528cb(0x9d))/0x7)+-parseInt(_0x1528cb(0xd4))/0x8*(-parseInt(_0x1528cb(0xe2))/0x9)+parseInt(_0x1528cb(0xc1))/0xa;if(_0x3dd2da===_0x21f3b1)break;else _0x19aec2['push'](_0x19aec2['shift']());}catch(_0x4b7eee){_0x19aec2['push'](_0x19aec2['shift']());}}}(a9_0x18cb,0x9a684));const a9_0x22a0db=(function(){let _0x1d45e1=!![];return function(_0xbf8c30,_0x1a3baa){const _0x1d836a=_0x1d45e1?function(){if(_0x1a3baa){const _0x3fd835=_0x1a3baa['apply'](_0xbf8c30,arguments);return _0x1a3baa=null,_0x3fd835;}}:function(){};return _0x1d45e1=![],_0x1d836a;};}()),a9_0xdfa17d=a9_0x22a0db(this,function(){const _0x17edab=a9_0x42e4;return a9_0xdfa17d[_0x17edab(0xb7)]()[_0x17edab(0xe9)](_0x17edab(0xe5))[_0x17edab(0xb7)]()[_0x17edab(0xb6)](a9_0xdfa17d)[_0x17edab(0xe9)](_0x17edab(0xe5));});a9_0xdfa17d();'use strict';Object[a9_0x2aa386(0xdd)](exports,a9_0x2aa386(0xc4),{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0x2aa386(0xd8)),validator_1=require(a9_0x2aa386(0xbf)),core_1=require(a9_0x2aa386(0xf7)),core_2=require('@midwayjs/core'),core_3=require(a9_0x2aa386(0xf7)),action_1=require(a9_0x2aa386(0xa7));function getRoutes(_0x257993={'prefix':'/','module':![]}){const _0x55164b=a9_0x2aa386;var _0x3d34e2,_0x282338;const _0x477cb4=(0x0,core_3[_0x55164b(0xd2)])(action_1[_0x55164b(0xf3)]),_0x3b107c={},_0x45c749=Array[_0x55164b(0xf8)](_0x257993[_0x55164b(0xcd)]||[])?_0x257993['filter']||[]:[_0x257993[_0x55164b(0xcd)]];_0x222b3e:for(const _0x2fe68c of _0x477cb4){let _0x2dd990=(0x0,core_3['getClassMetadata'])(action_1['ACTION_KEY'],_0x2fe68c),_0x2e85c4=(0x0,core_3[_0x55164b(0xb4)])(action_1[_0x55164b(0x9f)],_0x2fe68c);if(_0x2dd990&&_0x2e85c4){let _0x4dd39e=_0x2dd990[_0x55164b(0xaf)],_0x4c9c99={};if(_0x257993[_0x55164b(0xbe)]&&(0x0,lodash_1['get'])(_0x2dd990,_0x55164b(0xbe),![])!=_0x257993['module'])continue _0x222b3e;else{if(_0x257993[_0x55164b(0xbe)]===![]&&!!(0x0,lodash_1[_0x55164b(0xe4)])(_0x2dd990,_0x55164b(0xbe),null))continue _0x222b3e;}if(_0x257993[_0x55164b(0xaf)]&&!_0x4dd39e[_0x55164b(0xa2)](_0x257993[_0x55164b(0xaf)]))continue _0x222b3e;_0x4dd39e!=='/'?(_0x4c9c99['summary']=(_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990[_0x55164b(0xa4)][_0x55164b(0x105)])||(/^\//[_0x55164b(0x102)](_0x4dd39e)?_0x4dd39e[_0x55164b(0xd9)]('/')[0x1]:_0x4dd39e),_0x4c9c99[_0x55164b(0xf6)]=(_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990[_0x55164b(0xa4)][_0x55164b(0xf6)])||_0x4c9c99[_0x55164b(0xce)],_0x4c9c99[_0x55164b(0xbb)]=[]):(_0x4c9c99[_0x55164b(0xce)]=(_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990[_0x55164b(0xa4)]['tagName'])||_0x55164b(0xea),_0x4c9c99[_0x55164b(0xf6)]=(_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990['routerOptions'][_0x55164b(0xf6)])||'',_0x4c9c99[_0x55164b(0xbb)]=[]);_0x257993[_0x55164b(0xe6)]&&(_0x4c9c99[_0x55164b(0xe6)]=_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990[_0x55164b(0xe6)]);(_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990[_0x55164b(0xe1)])&&(_0x4c9c99[_0x55164b(0xaf)]=_0x2dd990[_0x55164b(0xe1)]);(_0x2dd990===null||_0x2dd990===void 0x0?void 0x0:_0x2dd990[_0x55164b(0xbe)])&&(_0x4c9c99[_0x55164b(0xbe)]=_0x2dd990[_0x55164b(0xbe)]);let _0x2250d3=(0x0,core_3['getClassMetadata'])(core_2[_0x55164b(0xb1)],_0x2fe68c)||{};if(typeof _0x2e85c4[Symbol['iterator']]==='function')for(let _0x1c507c of _0x2e85c4){if((_0x257993===null||_0x257993===void 0x0?void 0x0:_0x257993[_0x55164b(0xfe)])&&!(_0x1c507c===null||_0x1c507c===void 0x0?void 0x0:_0x1c507c[_0x55164b(0xfe)]))continue;let _0x2347c1={};_0x2347c1[_0x55164b(0xed)]=_0x1c507c[_0x55164b(0xc3)],_0x2347c1[_0x55164b(0xc7)]=(_0x4dd39e+_0x1c507c[_0x55164b(0xe0)])[_0x55164b(0xbd)](/\/{2,}/g,'/'),_0x2347c1[_0x55164b(0xce)]=(_0x1c507c===null||_0x1c507c===void 0x0?void 0x0:_0x1c507c[_0x55164b(0xbc)])||_0x4c9c99[_0x55164b(0xce)]||'default',_0x2347c1[_0x55164b(0xf6)]=(_0x1c507c===null||_0x1c507c===void 0x0?void 0x0:_0x1c507c[_0x55164b(0xf6)])||'',_0x2347c1[_0x55164b(0xc5)]=[];_0x2347c1['route']['endsWith']('/')&&(_0x2347c1[_0x55164b(0xc7)]=_0x2347c1[_0x55164b(0xc7)][_0x55164b(0xf0)](0x0,_0x2347c1[_0x55164b(0xc7)][_0x55164b(0xc8)]-0x1));if(!(0x0,lodash_1[_0x55164b(0xa2)])(_0x2347c1[_0x55164b(0xc7)],_0x55164b(0xb0))&&!(0x0,lodash_1[_0x55164b(0xa2)])(_0x2347c1[_0x55164b(0xc7)],_0x55164b(0xf2))&&_0x45c749[_0x55164b(0xf5)](_0x2347c1['route'])===-0x1){if(!(_0x257993===null||_0x257993===void 0x0?void 0x0:_0x257993[_0x55164b(0x100)])){let _0x19a5a7=(0x0,core_3[_0x55164b(0xe7)])(new _0x2fe68c(),_0x1c507c['method']);for(const _0x792b14 in _0x19a5a7){let _0x22101d=(_0x3d34e2=_0x2250d3[_0x1c507c[_0x55164b(0xed)]])===null||_0x3d34e2===void 0x0?void 0x0:_0x3d34e2[_0x55164b(0xde)](_0x1257e8=>_0x1257e8['parameterIndex']==_0x792b14&&_0x1257e8[_0x55164b(0xf9)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x1257e8===null||_0x1257e8===void 0x0?void 0x0:_0x1257e8[_0x55164b(0xc6)]));if(_0x22101d===null||_0x22101d===void 0x0?void 0x0:_0x22101d['metadata']){let _0x79ea0d=convertTypeToString(_0x22101d[_0x55164b(0xc6)][_0x55164b(0xae)]||0x0);if([_0x55164b(0xc0),_0x55164b(0xc9)][_0x55164b(0xf5)](_0x79ea0d)!=-0x1&&_0x22101d[_0x55164b(0xc6)][_0x55164b(0xf4)]['indexOf'](':')==-0x1&&!_0x2347c1[_0x55164b(0xc5)][_0x55164b(0xde)](_0x22f35d=>_0x22f35d[_0x55164b(0xf9)]==_0x22101d[_0x55164b(0xc6)]['propertyData']))_0x2347c1[_0x55164b(0xc5)][_0x55164b(0xc2)]({'key':_0x22101d[_0x55164b(0xc6)][_0x55164b(0xf4)],'title':_0x22101d[_0x55164b(0xc6)][_0x55164b(0xf4)],'type':convertSchemaType(_0x19a5a7[_0x22101d[_0x55164b(0xfd)]][_0x55164b(0xb9)]),'required':![],'default':'','desc':''});else{if(_0x79ea0d==_0x55164b(0xd6)){let _0x1e9b40=((_0x282338=_0x22101d===null||_0x22101d===void 0x0?void 0x0:_0x22101d[_0x55164b(0xc6)])===null||_0x282338===void 0x0?void 0x0:_0x282338[_0x55164b(0xf4)])||'file';_0x1e9b40[_0x55164b(0xf5)](':')==-0x1&&!_0x2347c1[_0x55164b(0xc5)][_0x55164b(0xde)](_0x1b8b58=>_0x1b8b58['key']==_0x1e9b40&&_0x1b8b58[_0x55164b(0xae)]==_0x55164b(0xd6))&&_0x2347c1[_0x55164b(0xc5)][_0x55164b(0xc2)]({'key':_0x1e9b40,'title':_0x55164b(0xeb)+_0x1e9b40,'type':_0x55164b(0xd6),'required':!![],'default':'','desc':''});}}}else{const _0x157b2f=(0x0,core_3[_0x55164b(0xac)])(validator_1[_0x55164b(0xfc)],_0x19a5a7[_0x792b14]);_0x157b2f&&_0x2347c1[_0x55164b(0xc5)][_0x55164b(0xc2)](...getJoiRequest(_0x157b2f));}}}_0x4c9c99[_0x55164b(0xbb)][_0x55164b(0xc2)](_0x2347c1);}}if(_0x4c9c99[_0x55164b(0xbb)][_0x55164b(0xc8)]>0x0){let _0x1ca7b3=_0x3b107c[_0x4dd39e];_0x1ca7b3?(_0x1ca7b3['summary']!=_0x4c9c99[_0x55164b(0xce)]&&(_0x1ca7b3['summary']=_0x1ca7b3[_0x55164b(0xce)]+','+_0x4c9c99[_0x55164b(0xce)]),_0x1ca7b3['description']!=_0x4c9c99[_0x55164b(0xf6)]&&(_0x1ca7b3['description']=_0x1ca7b3[_0x55164b(0xf6)]+','+_0x4c9c99[_0x55164b(0xf6)]),_0x1ca7b3[_0x55164b(0xbb)]=_0x1ca7b3[_0x55164b(0xbb)][_0x55164b(0x101)](_0x4c9c99[_0x55164b(0xbb)]),_0x3b107c[_0x4dd39e]=_0x1ca7b3):_0x3b107c[_0x4dd39e]=_0x4c9c99;}}}return _0x3b107c;}function getJoiRequest(_0x4cb86b){const _0x1e8e25=a9_0x2aa386;var _0x58b196,_0x1c2e2a;const _0x4fe7eb=[];for(let _0x246cf8 in _0x4cb86b){const _0xbe5e00={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x389edd=typeof _0x4cb86b[_0x246cf8][_0x1e8e25(0xfb)]==_0x1e8e25(0xa1)?_0x4cb86b[_0x246cf8][_0x1e8e25(0xfb)]():_0x4cb86b[_0x246cf8];_0xbe5e00[_0x1e8e25(0xf9)]=_0x246cf8,_0xbe5e00[_0x1e8e25(0xae)]=_0x389edd[_0x1e8e25(0xae)],_0xbe5e00[_0x1e8e25(0xcf)]=(0x0,lodash_1[_0x1e8e25(0xe4)])(_0x389edd,_0x1e8e25(0xef),_0x246cf8),_0xbe5e00[_0x1e8e25(0xea)]=(0x0,lodash_1[_0x1e8e25(0xe4)])(_0x389edd,_0x1e8e25(0xca),''),_0xbe5e00['required']=(0x0,lodash_1[_0x1e8e25(0xe4)])(_0x389edd,_0x1e8e25(0xd0),'')==_0x1e8e25(0xb3),_0xbe5e00[_0x1e8e25(0xf6)]=(0x0,lodash_1[_0x1e8e25(0xe4)])(_0x389edd,_0x1e8e25(0xba),'');if(_0x389edd[_0x1e8e25(0xae)]==_0x1e8e25(0xe8))(_0x389edd===null||_0x389edd===void 0x0?void 0x0:_0x389edd[_0x1e8e25(0xdf)])&&(_0xbe5e00['children']=getJoiRequest(_0x389edd[_0x1e8e25(0xdf)]));else _0x389edd[_0x1e8e25(0xae)]==_0x1e8e25(0xd3)&&_0x389edd['items']&&Array[_0x1e8e25(0xf8)](_0x389edd['items'])&&(((_0x1c2e2a=(_0x58b196=_0x389edd===null||_0x389edd===void 0x0?void 0x0:_0x389edd['items'])===null||_0x58b196===void 0x0?void 0x0:_0x58b196[0x0])===null||_0x1c2e2a===void 0x0?void 0x0:_0x1c2e2a[_0x1e8e25(0xdf)])&&(_0xbe5e00['children']=getJoiRequest(_0x389edd['items'][0x0][_0x1e8e25(0xdf)])));_0x389edd[_0x1e8e25(0xd7)]&&Array[_0x1e8e25(0xf8)](_0x389edd['allow'])&&_0x389edd[_0x1e8e25(0xd7)][_0x1e8e25(0xc8)]>0x0&&(_0xbe5e00[_0x1e8e25(0xf6)]=_0x1e8e25(0xcc)+_0x389edd[_0x1e8e25(0xd7)][_0x1e8e25(0xfa)](',')+'];'+_0xbe5e00[_0x1e8e25(0xf6)]);if(_0xbe5e00[_0x1e8e25(0xf9)]&&_0xbe5e00['type']){const _0x35eb27={};for(const _0xcbda2b of _0x389edd[_0x1e8e25(0xda)]||[]){if(_0xcbda2b[_0x1e8e25(0xb9)]==='min'&&_0xcbda2b[_0x1e8e25(0xa0)])_0x35eb27[_0x1e8e25(0xa9)]=_0xcbda2b[_0x1e8e25(0xa0)][_0x1e8e25(0xa8)];else _0xcbda2b[_0x1e8e25(0xb9)]===_0x1e8e25(0xcb)&&(_0x35eb27[_0x1e8e25(0xcb)]=_0xcbda2b[_0x1e8e25(0xa0)]['limit']);}_0xbe5e00[_0x1e8e25(0xda)]=_0x35eb27;}_0xbe5e00[_0x1e8e25(0xf9)]&&_0xbe5e00[_0x1e8e25(0xcf)]&&_0x4fe7eb['push'](_0xbe5e00);}return _0x4fe7eb;}function convertSchemaType(_0x2d303b){const _0x4eef02=a9_0x2aa386;switch(_0x2d303b){case _0x4eef02(0xff):return _0x4eef02(0xe8);case _0x4eef02(0xb5):return _0x4eef02(0xec);case _0x4eef02(0xd1):return'number';case _0x4eef02(0xdb):return _0x4eef02(0x104);case _0x4eef02(0x9e):return _0x4eef02(0xd6);default:return _0x4eef02(0x104);}}function convertTypeToString(_0x279e5c){const _0x2d4bcb=a9_0x2aa386;switch(_0x279e5c){case core_1[_0x2d4bcb(0xb8)][_0x2d4bcb(0xd5)]:return _0x2d4bcb(0xaa);case core_1[_0x2d4bcb(0xb8)][_0x2d4bcb(0xee)]:return _0x2d4bcb(0xc0);case core_1['RouteParamTypes']['PARAM']:return _0x2d4bcb(0xe0);case core_1[_0x2d4bcb(0xb8)][_0x2d4bcb(0xa5)]:return _0x2d4bcb(0xc9);case core_1[_0x2d4bcb(0xb8)][_0x2d4bcb(0xdc)]:case core_1[_0x2d4bcb(0xb8)][_0x2d4bcb(0xab)]:case core_1[_0x2d4bcb(0xb8)][_0x2d4bcb(0xa3)]:return _0x2d4bcb(0xd6);default:return _0x2d4bcb(0xaa);}}function a9_0x18cb(){const _0x543241=['object','search','default','文件上传-','boolean','method','QUERY','flags.label','substring','28974AcuRJf','/static/apitest','ACTION_KEY','propertyData','indexOf','description','@midwayjs/core','isArray','key','join','describe','RULES_KEY','parameterIndex','intercept','Object','noreq','concat','test','5877815YgvxFe','string','tagName','602bYcuje','File','ACTION_ROUTE_KEY','args','function','startsWith','FILESTREAM','routerOptions','BODY','261858tcgTYK','../types/action','limit','min','header','FILESSTREAM','getClassExtendedMetadata','1145829uUKFfI','type','prefix','static/apitest','INJECT_CUSTOM_PARAM','5552BYchqR','required','getClassMetadata','Boolean','constructor','toString','RouteParamTypes','name','flags.description','routes','routerName','replace','module','@anncic-api/validator','query','4110410GTVACa','push','requestMethod','__esModule','request','metadata','route','length','body','flags.default','max','只允许:[','filter','summary','title','flags.presence','Number','listModule','array','10312GqbMwX','HEADERS','file','allow','lodash','split','rules','String','FIELDS','defineProperty','find','keys','path','pprefix','3852JgytLS','531lrtTKu','get','(((.+)+)+)+$','filepath','getMethodParamTypes'];a9_0x18cb=function(){return _0x543241;};return a9_0x18cb();}
|
|
1
|
+
const a9_0xfa1a60=a9_0x2fed;(function(_0x17771d,_0x597f15){const _0x42ee7c=a9_0x2fed,_0x3a2be0=_0x17771d();while(!![]){try{const _0x38dc45=parseInt(_0x42ee7c(0x20f))/0x1*(-parseInt(_0x42ee7c(0x1db))/0x2)+parseInt(_0x42ee7c(0x1c2))/0x3*(-parseInt(_0x42ee7c(0x1c8))/0x4)+parseInt(_0x42ee7c(0x1c0))/0x5+parseInt(_0x42ee7c(0x1ef))/0x6+parseInt(_0x42ee7c(0x1b9))/0x7+-parseInt(_0x42ee7c(0x1e9))/0x8*(parseInt(_0x42ee7c(0x20e))/0x9)+parseInt(_0x42ee7c(0x20d))/0xa*(parseInt(_0x42ee7c(0x1f9))/0xb);if(_0x38dc45===_0x597f15)break;else _0x3a2be0['push'](_0x3a2be0['shift']());}catch(_0x1f8642){_0x3a2be0['push'](_0x3a2be0['shift']());}}}(a9_0x4dba,0x7ae28));const a9_0x56a7db=(function(){let _0x5a885b=!![];return function(_0x3d2d68,_0x28871a){const _0x2a0a96=_0x5a885b?function(){if(_0x28871a){const _0x2ee791=_0x28871a['apply'](_0x3d2d68,arguments);return _0x28871a=null,_0x2ee791;}}:function(){};return _0x5a885b=![],_0x2a0a96;};}()),a9_0x26c2de=a9_0x56a7db(this,function(){const _0x1658b0=a9_0x2fed;return a9_0x26c2de['toString']()['search'](_0x1658b0(0x1d4))[_0x1658b0(0x20b)]()[_0x1658b0(0x1c1)](a9_0x26c2de)[_0x1658b0(0x1d6)](_0x1658b0(0x1d4));});function a9_0x4dba(){const _0x4cd2c5=['limit','ACTION_ROUTE_KEY','number','title','FIELDS','static/apitest','WEB_ROUTER_PARAM_KEY','path','default','allow','get','method','文件上传-','filter','join','@midwayjs/core','Boolean','indexOf','2570218IsPTUf','substring','body','query','filepath','name','isArray','1951405xGNkmp','constructor','6297MHDteb','array','只允许:[','noreq','defineProperty','header','1140QeGeEh','errors','length','split','items','min','required','pprefix','HEADERS','routerOptions','response','object','(((.+)+)+)+$','routerName','search','boolean','INJECT_CUSTOM_PARAM','file','ACTION_RESPONSE_KEY','645498YrMLsL','metadata','children','summary','/static/apitest','request','intercept','@anncic-api/validator','route','FILESTREAM','flags.description','__esModule','type','flags.label','7167800LhNecK','rules','Number','startsWith','routes','FILESSTREAM','1090350UajKPW','description','getClassMetadata','flags.presence','key','ACTION_KEY','module','find','getClassExtendedMetadata','parameterIndex','3762MmZTQc','push','args','propertyData','lodash','replace','QUERY','describe','PARAM','properties','endsWith','File','RouteParamTypes','tagName','string','flags.default','keys','function','toString','prefix','49820kKtRww','9LVMRxx','2kPjNoa'];a9_0x4dba=function(){return _0x4cd2c5;};return a9_0x4dba();}a9_0x26c2de();'use strict';Object[a9_0xfa1a60(0x1c6)](exports,a9_0xfa1a60(0x1e6),{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0xfa1a60(0x1fd)),validator_1=require(a9_0xfa1a60(0x1e2)),core_1=require(a9_0xfa1a60(0x21f)),core_2=require(a9_0xfa1a60(0x21f)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function a9_0x2fed(_0x3d7906,_0x206c82){const _0x5958f5=a9_0x4dba();return a9_0x2fed=function(_0x26c2de,_0x56a7db){_0x26c2de=_0x26c2de-0x1b7;let _0x4dba=_0x5958f5[_0x26c2de];return _0x4dba;},a9_0x2fed(_0x3d7906,_0x206c82);}function getRoutes(_0x1b9375={'prefix':'/','module':![]}){const _0x496d1b=a9_0xfa1a60;var _0x8555c3,_0x33c935;const _0x5315c3=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x5a09de={},_0x255f8f=Array[_0x496d1b(0x1bf)](_0x1b9375['filter']||[])?_0x1b9375[_0x496d1b(0x21d)]||[]:[_0x1b9375[_0x496d1b(0x21d)]];_0x16fe61:for(const _0x594ff5 of _0x5315c3){let _0x2560cf=(0x0,core_3['getClassMetadata'])(action_1[_0x496d1b(0x1f4)],_0x594ff5),_0x5dd2b3=(0x0,core_3[_0x496d1b(0x1f1)])(action_1[_0x496d1b(0x211)],_0x594ff5);if(_0x2560cf&&_0x5dd2b3){let _0x3a85ea=_0x2560cf[_0x496d1b(0x20c)],_0x30d687={};if(_0x1b9375[_0x496d1b(0x1f5)]&&(0x0,lodash_1[_0x496d1b(0x21a)])(_0x2560cf,_0x496d1b(0x1f5),![])!=_0x1b9375[_0x496d1b(0x1f5)])continue _0x16fe61;else{if(_0x1b9375[_0x496d1b(0x1f5)]===![]&&!!(0x0,lodash_1[_0x496d1b(0x21a)])(_0x2560cf,'module',null))continue _0x16fe61;}if(_0x1b9375[_0x496d1b(0x20c)]&&!_0x3a85ea['startsWith'](_0x1b9375[_0x496d1b(0x20c)]))continue _0x16fe61;_0x3a85ea!=='/'?(_0x30d687['summary']=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x206)])||(/^\//['test'](_0x3a85ea)?_0x3a85ea[_0x496d1b(0x1cb)]('/')[0x1]:_0x3a85ea),_0x30d687[_0x496d1b(0x1f0)]=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x1f0)])||_0x30d687[_0x496d1b(0x1de)],_0x30d687[_0x496d1b(0x1ed)]=[]):(_0x30d687[_0x496d1b(0x1de)]=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x206)])||_0x496d1b(0x218),_0x30d687[_0x496d1b(0x1f0)]=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x1f0)])||'',_0x30d687[_0x496d1b(0x1ed)]=[]);_0x1b9375['filepath']&&(_0x30d687[_0x496d1b(0x1bd)]=_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1bd)]);(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf['pprefix'])&&(_0x30d687[_0x496d1b(0x20c)]=_0x2560cf[_0x496d1b(0x1cf)]);(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1f5)])&&(_0x30d687[_0x496d1b(0x1f5)]=_0x2560cf[_0x496d1b(0x1f5)]);let _0x3b6139=(0x0,core_3['getClassMetadata'])(core_2[_0x496d1b(0x1d8)],_0x594ff5)||{};if(typeof _0x5dd2b3[Symbol['iterator']]==='function')for(let _0x351a31 of _0x5dd2b3){if((_0x1b9375===null||_0x1b9375===void 0x0?void 0x0:_0x1b9375[_0x496d1b(0x1e1)])&&!(_0x351a31===null||_0x351a31===void 0x0?void 0x0:_0x351a31['intercept']))continue;let _0x1bf20e={};_0x1bf20e[_0x496d1b(0x21b)]=_0x351a31['requestMethod'],_0x1bf20e[_0x496d1b(0x1e3)]=(_0x3a85ea+_0x351a31['path'])[_0x496d1b(0x1fe)](/\/{2,}/g,'/'),_0x1bf20e[_0x496d1b(0x1de)]=(_0x351a31===null||_0x351a31===void 0x0?void 0x0:_0x351a31[_0x496d1b(0x1d5)])||_0x30d687[_0x496d1b(0x1de)]||_0x496d1b(0x218),_0x1bf20e[_0x496d1b(0x1f0)]=(_0x351a31===null||_0x351a31===void 0x0?void 0x0:_0x351a31[_0x496d1b(0x1f0)])||'',_0x1bf20e[_0x496d1b(0x1e0)]=[],_0x1bf20e[_0x496d1b(0x1d2)]=getMethodResponse(_0x594ff5,_0x351a31[_0x496d1b(0x21b)]);_0x1bf20e['route'][_0x496d1b(0x203)]('/')&&(_0x1bf20e['route']=_0x1bf20e['route'][_0x496d1b(0x1ba)](0x0,_0x1bf20e[_0x496d1b(0x1e3)][_0x496d1b(0x1ca)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x1bf20e['route'],_0x496d1b(0x215))&&!(0x0,lodash_1[_0x496d1b(0x1ec)])(_0x1bf20e[_0x496d1b(0x1e3)],_0x496d1b(0x1df))&&_0x255f8f[_0x496d1b(0x1b8)](_0x1bf20e[_0x496d1b(0x1e3)])===-0x1){if(!(_0x1b9375===null||_0x1b9375===void 0x0?void 0x0:_0x1b9375[_0x496d1b(0x1c5)])){let _0x19e8cb=(0x0,core_3['getMethodParamTypes'])(new _0x594ff5(),_0x351a31[_0x496d1b(0x21b)]);for(const _0x3bce3f in _0x19e8cb){let _0x1832ad=(_0x8555c3=_0x3b6139[_0x351a31[_0x496d1b(0x21b)]])===null||_0x8555c3===void 0x0?void 0x0:_0x8555c3[_0x496d1b(0x1f6)](_0xbc13f8=>_0xbc13f8[_0x496d1b(0x1f8)]==_0x3bce3f&&_0xbc13f8[_0x496d1b(0x1f3)]===core_2[_0x496d1b(0x216)]&&(_0xbc13f8===null||_0xbc13f8===void 0x0?void 0x0:_0xbc13f8[_0x496d1b(0x1dc)]));if(_0x1832ad===null||_0x1832ad===void 0x0?void 0x0:_0x1832ad['metadata']){let _0xe337f=convertTypeToString(_0x1832ad[_0x496d1b(0x1dc)]['type']||0x0);if([_0x496d1b(0x1bc),_0x496d1b(0x1bb)]['indexOf'](_0xe337f)!=-0x1&&_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)][_0x496d1b(0x1b8)](':')==-0x1&&!_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1f6)](_0x433e0e=>_0x433e0e[_0x496d1b(0x1f3)]==_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)]))_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1fa)]({'key':_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)],'title':_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)],'type':convertSchemaType(_0x19e8cb[_0x1832ad[_0x496d1b(0x1f8)]]['name']),'required':![],'default':'','desc':''});else{if(_0xe337f=='file'){let _0xe245b6=((_0x33c935=_0x1832ad===null||_0x1832ad===void 0x0?void 0x0:_0x1832ad['metadata'])===null||_0x33c935===void 0x0?void 0x0:_0x33c935[_0x496d1b(0x1fc)])||_0x496d1b(0x1d9);_0xe245b6[_0x496d1b(0x1b8)](':')==-0x1&&!_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1f6)](_0x2574fa=>_0x2574fa[_0x496d1b(0x1f3)]==_0xe245b6&&_0x2574fa[_0x496d1b(0x1e7)]==_0x496d1b(0x1d9))&&_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1fa)]({'key':_0xe245b6,'title':_0x496d1b(0x21c)+_0xe245b6,'type':_0x496d1b(0x1d9),'required':!![],'default':'','desc':''});}}}else{const _0x271811=(0x0,core_3[_0x496d1b(0x1f7)])(validator_1['RULES_KEY'],_0x19e8cb[_0x3bce3f]);_0x271811&&_0x1bf20e[_0x496d1b(0x1e0)]['push'](...getJoiRequest(_0x271811));}}}_0x30d687[_0x496d1b(0x1ed)]['push'](_0x1bf20e);}}if(_0x30d687[_0x496d1b(0x1ed)][_0x496d1b(0x1ca)]>0x0){let _0x57bf91=_0x5a09de[_0x3a85ea];_0x57bf91?(_0x57bf91['summary']!=_0x30d687[_0x496d1b(0x1de)]&&(_0x57bf91[_0x496d1b(0x1de)]=_0x57bf91[_0x496d1b(0x1de)]+','+_0x30d687[_0x496d1b(0x1de)]),_0x57bf91[_0x496d1b(0x1f0)]!=_0x30d687['description']&&(_0x57bf91[_0x496d1b(0x1f0)]=_0x57bf91[_0x496d1b(0x1f0)]+','+_0x30d687['description']),_0x57bf91[_0x496d1b(0x1ed)]=_0x57bf91[_0x496d1b(0x1ed)]['concat'](_0x30d687[_0x496d1b(0x1ed)]),_0x5a09de[_0x3a85ea]=_0x57bf91):_0x5a09de[_0x3a85ea]=_0x30d687;}}}return _0x5a09de;}function getJoiRequest(_0x5c2346){const _0x251e33=a9_0xfa1a60;var _0x2894ec,_0x151672;const _0x1430ef=[];for(let _0x195c60 in _0x5c2346){const _0x2e58a1={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x45c3db=typeof _0x5c2346[_0x195c60][_0x251e33(0x200)]==_0x251e33(0x20a)?_0x5c2346[_0x195c60]['describe']():_0x5c2346[_0x195c60];_0x2e58a1['key']=_0x195c60,_0x2e58a1[_0x251e33(0x1e7)]=_0x45c3db[_0x251e33(0x1e7)],_0x2e58a1[_0x251e33(0x213)]=(0x0,lodash_1[_0x251e33(0x21a)])(_0x45c3db,_0x251e33(0x1e8),_0x195c60),_0x2e58a1[_0x251e33(0x218)]=(0x0,lodash_1[_0x251e33(0x21a)])(_0x45c3db,_0x251e33(0x208),''),_0x2e58a1[_0x251e33(0x1ce)]=(0x0,lodash_1[_0x251e33(0x21a)])(_0x45c3db,_0x251e33(0x1f2),'')==_0x251e33(0x1ce),_0x2e58a1[_0x251e33(0x1f0)]=(0x0,lodash_1['get'])(_0x45c3db,_0x251e33(0x1e5),'');if(_0x45c3db[_0x251e33(0x1e7)]==_0x251e33(0x1d3))(_0x45c3db===null||_0x45c3db===void 0x0?void 0x0:_0x45c3db[_0x251e33(0x209)])&&(_0x2e58a1[_0x251e33(0x1dd)]=getJoiRequest(_0x45c3db[_0x251e33(0x209)]));else _0x45c3db[_0x251e33(0x1e7)]==_0x251e33(0x1c3)&&_0x45c3db[_0x251e33(0x1cc)]&&Array['isArray'](_0x45c3db[_0x251e33(0x1cc)])&&(((_0x151672=(_0x2894ec=_0x45c3db===null||_0x45c3db===void 0x0?void 0x0:_0x45c3db['items'])===null||_0x2894ec===void 0x0?void 0x0:_0x2894ec[0x0])===null||_0x151672===void 0x0?void 0x0:_0x151672['keys'])&&(_0x2e58a1['children']=getJoiRequest(_0x45c3db['items'][0x0][_0x251e33(0x209)])));_0x45c3db[_0x251e33(0x219)]&&Array['isArray'](_0x45c3db['allow'])&&_0x45c3db[_0x251e33(0x219)][_0x251e33(0x1ca)]>0x0&&(_0x2e58a1[_0x251e33(0x1f0)]=_0x251e33(0x1c4)+_0x45c3db[_0x251e33(0x219)][_0x251e33(0x21e)](',')+'];'+_0x2e58a1[_0x251e33(0x1f0)]);if(_0x2e58a1['key']&&_0x2e58a1[_0x251e33(0x1e7)]){const _0x1c58cc={};for(const _0x27b464 of _0x45c3db['rules']||[]){if(_0x27b464[_0x251e33(0x1be)]===_0x251e33(0x1cd)&&_0x27b464[_0x251e33(0x1fb)])_0x1c58cc['min']=_0x27b464[_0x251e33(0x1fb)][_0x251e33(0x210)];else _0x27b464[_0x251e33(0x1be)]==='max'&&(_0x1c58cc['max']=_0x27b464[_0x251e33(0x1fb)][_0x251e33(0x210)]);}_0x2e58a1[_0x251e33(0x1ea)]=_0x1c58cc;}_0x2e58a1[_0x251e33(0x1f3)]&&_0x2e58a1[_0x251e33(0x213)]&&_0x1430ef['push'](_0x2e58a1);}return _0x1430ef;}function convertSchemaType(_0x47aa82){const _0x484d5b=a9_0xfa1a60;switch(_0x47aa82){case'Object':return _0x484d5b(0x1d3);case _0x484d5b(0x1b7):return _0x484d5b(0x1d7);case _0x484d5b(0x1eb):return _0x484d5b(0x212);case'String':return _0x484d5b(0x207);case _0x484d5b(0x204):return _0x484d5b(0x1d9);default:return _0x484d5b(0x207);}}function convertTypeToString(_0x4f15ac){const _0x4739d3=a9_0xfa1a60;switch(_0x4f15ac){case core_1[_0x4739d3(0x205)][_0x4739d3(0x1d0)]:return _0x4739d3(0x1c7);case core_1[_0x4739d3(0x205)][_0x4739d3(0x1ff)]:return _0x4739d3(0x1bc);case core_1['RouteParamTypes'][_0x4739d3(0x201)]:return _0x4739d3(0x217);case core_1[_0x4739d3(0x205)]['BODY']:return _0x4739d3(0x1bb);case core_1[_0x4739d3(0x205)][_0x4739d3(0x214)]:case core_1[_0x4739d3(0x205)][_0x4739d3(0x1ee)]:case core_1[_0x4739d3(0x205)][_0x4739d3(0x1e4)]:return _0x4739d3(0x1d9);default:return _0x4739d3(0x1c7);}}function getMethodResponse(_0xf16b52,_0x3c6860){const _0x3ac178=a9_0xfa1a60,_0xb3baac=(0x0,core_3[_0x3ac178(0x1f1)])(action_1[_0x3ac178(0x1da)],_0xf16b52);if(!_0xb3baac)return null;const _0x50147c=_0xb3baac[_0x3ac178(0x1f6)](_0x1a2b83=>_0x1a2b83[_0x3ac178(0x21b)]===_0x3c6860);if(!_0x50147c)return null;return{'format':_0x50147c['format']||_0x3ac178(0x218),'type':_0x50147c[_0x3ac178(0x1e7)],'description':_0x50147c['description']||'','properties':_0x50147c[_0x3ac178(0x202)]||[],'errors':_0x50147c[_0x3ac178(0x1c9)]||[]};}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import { getRouteOption } from "./getRoutes";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
version: string;
|
|
2
|
+
export interface SwaggerDefinition {
|
|
3
|
+
type: string;
|
|
4
|
+
properties?: {
|
|
5
|
+
[key: string]: any;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
required?: string[];
|
|
8
|
+
description?: string;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export interface SwaggerResponse {
|
|
12
|
+
description: string;
|
|
13
|
+
schema?: any;
|
|
14
|
+
headers?: any;
|
|
15
|
+
examples?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface SwaggerJsonOption extends getRouteOption {
|
|
18
|
+
host?: string;
|
|
19
|
+
basePath?: string;
|
|
20
|
+
schemes?: string[];
|
|
21
|
+
title?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
version?: string;
|
|
24
|
+
definitions?: {
|
|
25
|
+
[key: string]: SwaggerDefinition;
|
|
26
|
+
};
|
|
27
|
+
extraDefinitions?: {
|
|
28
|
+
[key: string]: SwaggerDefinition;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare function getSwaggerJson(filter?: SwaggerJsonOption): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x415cbe=a10_0x5aa1;(function(_0x413b01,_0x8e4bef){const _0x394614=a10_0x5aa1,_0x5c30c6=_0x413b01();while(!![]){try{const _0x1a0189=parseInt(_0x394614(0x164))/0x1+parseInt(_0x394614(0x168))/0x2*(parseInt(_0x394614(0x18f))/0x3)+parseInt(_0x394614(0x189))/0x4*(-parseInt(_0x394614(0x169))/0x5)+parseInt(_0x394614(0x16a))/0x6*(-parseInt(_0x394614(0x18a))/0x7)+-parseInt(_0x394614(0x186))/0x8+-parseInt(_0x394614(0x181))/0x9*(parseInt(_0x394614(0x17b))/0xa)+parseInt(_0x394614(0x172))/0xb*(parseInt(_0x394614(0x190))/0xc);if(_0x1a0189===_0x8e4bef)break;else _0x5c30c6['push'](_0x5c30c6['shift']());}catch(_0x180932){_0x5c30c6['push'](_0x5c30c6['shift']());}}}(a10_0x5a45,0x5629d));const a10_0x218e23=(function(){let _0xeba521=!![];return function(_0x535644,_0x3ad249){const _0x19b9be=_0xeba521?function(){const _0xed9fd6=a10_0x5aa1;if(_0x3ad249){const _0x4d2483=_0x3ad249[_0xed9fd6(0x175)](_0x535644,arguments);return _0x3ad249=null,_0x4d2483;}}:function(){};return _0xeba521=![],_0x19b9be;};}()),a10_0x604b6f=a10_0x218e23(this,function(){const _0x2b64af=a10_0x5aa1;return a10_0x604b6f[_0x2b64af(0x178)]()[_0x2b64af(0x176)](_0x2b64af(0x18d))[_0x2b64af(0x178)]()[_0x2b64af(0x174)](a10_0x604b6f)[_0x2b64af(0x176)](_0x2b64af(0x18d));});function a10_0x5aa1(_0x3e0c2e,_0x559771){const _0x5b81d1=a10_0x5a45();return a10_0x5aa1=function(_0x604b6f,_0x218e23){_0x604b6f=_0x604b6f-0x164;let _0x5a459a=_0x5b81d1[_0x604b6f];return _0x5a459a;},a10_0x5aa1(_0x3e0c2e,_0x559771);}a10_0x604b6f();'use strict';Object['defineProperty'](exports,a10_0x415cbe(0x17a),{'value':!![]}),exports['getSwaggerJson']=getSwaggerJson;const getRoutes_1=require(a10_0x415cbe(0x17d));function a10_0x5a45(){const _0x482443=['routes','summary','prefix','666290UiUxGE','25UQANGo','6sdgOHM','required','method','body','items','length','minimum','key','11NcdkDx','push','constructor','apply','search','tags','toString','request','__esModule','20ZWqlfM','max','./getRoutes','default','title','paths','1169631keccVS','route','接口文档','getRoutes','1.0.0','3819080kZaYqp','description','object','35312ejdAPV','4008291BdWOFP','includes','min','(((.+)+)+)+$','type','3upeRBp','8339208cTdRgy','array','application/json','2.0','properties','rules','678902vDKnGZ'];a10_0x5a45=function(){return _0x482443;};return a10_0x5a45();}function getSwaggerJson(_0x286432={'prefix':'/','module':![]}){const _0x4d6e63=a10_0x415cbe;var _0x2c1779;const _0x3f78db=(0x0,getRoutes_1[_0x4d6e63(0x184)])(_0x286432),_0x3de763={'info':{'title':_0x4d6e63(0x183),'description':'本接口文档由API自动解析生成','version':_0x4d6e63(0x185)},'tags':[],'paths':{},'swagger':_0x4d6e63(0x193)};for(const _0x120fef in _0x3f78db){const _0x5d9613=_0x3f78db[_0x120fef];(_0x5d9613===null||_0x5d9613===void 0x0?void 0x0:_0x5d9613[_0x4d6e63(0x167)])&&_0x5d9613[_0x4d6e63(0x167)]!='/'&&!_0x3de763['tags'][_0x4d6e63(0x18b)](_0x5d9613[_0x4d6e63(0x167)])&&_0x3de763['tags'][_0x4d6e63(0x173)](_0x5d9613[_0x4d6e63(0x167)]);(_0x5d9613===null||_0x5d9613===void 0x0?void 0x0:_0x5d9613[_0x4d6e63(0x166)])&&_0x5d9613['summary']!=''&&!_0x3de763[_0x4d6e63(0x177)][_0x4d6e63(0x18b)](_0x5d9613[_0x4d6e63(0x167)]+'/'+_0x5d9613[_0x4d6e63(0x166)])&&_0x3de763[_0x4d6e63(0x177)][_0x4d6e63(0x173)](_0x5d9613[_0x4d6e63(0x167)]+'/'+_0x5d9613['summary']);for(const _0x49bee4 of(_0x5d9613===null||_0x5d9613===void 0x0?void 0x0:_0x5d9613[_0x4d6e63(0x165)])||[]){_0x49bee4['route']&&(!_0x3de763[_0x4d6e63(0x180)][_0x49bee4['route']]&&(_0x3de763['paths'][_0x49bee4[_0x4d6e63(0x182)]]={}),!_0x3de763['paths'][_0x49bee4['route']][_0x49bee4[_0x4d6e63(0x16c)]]&&(_0x3de763['paths'][_0x49bee4['route']][_0x49bee4[_0x4d6e63(0x16c)]]={'summary':_0x49bee4['summary'],'deprecated':![],'description':(_0x49bee4===null||_0x49bee4===void 0x0?void 0x0:_0x49bee4[_0x4d6e63(0x187)])||'','tags':[_0x5d9613[_0x4d6e63(0x167)]+'/'+_0x5d9613[_0x4d6e63(0x166)]],'consumes':[_0x4d6e63(0x192)],'produces':[_0x4d6e63(0x192)],'responses':{},'security':[],'parameters':[{'in':_0x4d6e63(0x16d),'name':'body','required':((_0x2c1779=_0x49bee4===null||_0x49bee4===void 0x0?void 0x0:_0x49bee4['request'])===null||_0x2c1779===void 0x0?void 0x0:_0x2c1779[_0x4d6e63(0x16f)])>0x0,'schema':getSwaggerJsonParametersSchema((_0x49bee4===null||_0x49bee4===void 0x0?void 0x0:_0x49bee4[_0x4d6e63(0x179)])||[])}]}));}}return _0x3de763;}function getSwaggerJsonParametersSchema(_0x38fbba=[],_0x5ed86f=a10_0x415cbe(0x188)){const _0x3f3177=a10_0x415cbe;var _0x170fa5,_0x3b52fc,_0x3fb529;const _0x397269={'type':_0x5ed86f};if(_0x5ed86f==_0x3f3177(0x188)){_0x397269[_0x3f3177(0x194)]={},_0x397269[_0x3f3177(0x16b)]=[];for(const _0x1d4319 of _0x38fbba){_0x1d4319[_0x3f3177(0x16b)]&&!_0x397269[_0x3f3177(0x16b)][_0x3f3177(0x18b)](_0x1d4319[_0x3f3177(0x171)])&&_0x397269[_0x3f3177(0x16b)][_0x3f3177(0x173)](_0x1d4319[_0x3f3177(0x171)]),((_0x170fa5=_0x1d4319===null||_0x1d4319===void 0x0?void 0x0:_0x1d4319['children'])===null||_0x170fa5===void 0x0?void 0x0:_0x170fa5[_0x3f3177(0x16f)])>0x0?_0x397269[_0x3f3177(0x194)][_0x1d4319[_0x3f3177(0x171)]]=getSwaggerJsonParametersSchema(_0x1d4319['children'],_0x1d4319['type']):(_0x397269['properties'][_0x1d4319[_0x3f3177(0x171)]]={'type':_0x1d4319[_0x3f3177(0x18e)],'title':_0x1d4319[_0x3f3177(0x17f)],'default':_0x1d4319[_0x3f3177(0x17e)],'description':_0x1d4319[_0x3f3177(0x187)]},((_0x3b52fc=_0x1d4319===null||_0x1d4319===void 0x0?void 0x0:_0x1d4319[_0x3f3177(0x195)])===null||_0x3b52fc===void 0x0?void 0x0:_0x3b52fc[_0x3f3177(0x17c)])&&(_0x397269[_0x3f3177(0x194)][_0x1d4319[_0x3f3177(0x171)]]['maximum']=_0x1d4319[_0x3f3177(0x195)][_0x3f3177(0x17c)]),((_0x3fb529=_0x1d4319===null||_0x1d4319===void 0x0?void 0x0:_0x1d4319['rules'])===null||_0x3fb529===void 0x0?void 0x0:_0x3fb529[_0x3f3177(0x18c)])&&(_0x397269[_0x3f3177(0x194)][_0x1d4319[_0x3f3177(0x171)]][_0x3f3177(0x170)]=_0x1d4319[_0x3f3177(0x195)]['min']));}}else _0x5ed86f==_0x3f3177(0x191)&&(_0x397269[_0x3f3177(0x16e)]=getSwaggerJsonParametersSchema(_0x38fbba,_0x3f3177(0x188)));return _0x397269;}
|
|
1
|
+
const a10_0x56d79f=a10_0x3e71;(function(_0x6aca98,_0x42aa15){const _0x183e67=a10_0x3e71,_0x1f32c3=_0x6aca98();while(!![]){try{const _0x13d1a2=-parseInt(_0x183e67(0x1a6))/0x1*(parseInt(_0x183e67(0x1b9))/0x2)+parseInt(_0x183e67(0x1b4))/0x3*(-parseInt(_0x183e67(0x1e4))/0x4)+-parseInt(_0x183e67(0x1a9))/0x5+parseInt(_0x183e67(0x1ca))/0x6+parseInt(_0x183e67(0x1e5))/0x7*(parseInt(_0x183e67(0x1cb))/0x8)+parseInt(_0x183e67(0x1c8))/0x9*(-parseInt(_0x183e67(0x1de))/0xa)+parseInt(_0x183e67(0x1aa))/0xb;if(_0x13d1a2===_0x42aa15)break;else _0x1f32c3['push'](_0x1f32c3['shift']());}catch(_0x24d819){_0x1f32c3['push'](_0x1f32c3['shift']());}}}(a10_0x53e9,0xa9af7));const a10_0x5b53be=(function(){let _0x2962b8=!![];return function(_0x1ca41e,_0x142216){const _0x2c705c=_0x2962b8?function(){const _0x156267=a10_0x3e71;if(_0x142216){const _0x55a7e7=_0x142216[_0x156267(0x1e2)](_0x1ca41e,arguments);return _0x142216=null,_0x55a7e7;}}:function(){};return _0x2962b8=![],_0x2c705c;};}()),a10_0x47a078=a10_0x5b53be(this,function(){const _0x47effd=a10_0x3e71;return a10_0x47a078[_0x47effd(0x1bf)]()[_0x47effd(0x1cd)]('(((.+)+)+)+$')['toString']()[_0x47effd(0x1d9)](a10_0x47a078)['search']('(((.+)+)+)+$');});a10_0x47a078();function a10_0x3e71(_0x295cae,_0x2988c5){const _0xf4918c=a10_0x53e9();return a10_0x3e71=function(_0x47a078,_0x5b53be){_0x47a078=_0x47a078-0x19f;let _0x53e97f=_0xf4918c[_0x47a078];return _0x53e97f;},a10_0x3e71(_0x295cae,_0x2988c5);}'use strict';Object[a10_0x56d79f(0x1d7)](exports,'__esModule',{'value':!![]}),exports['getSwaggerJson']=getSwaggerJson;const getRoutes_1=require(a10_0x56d79f(0x1cf)),DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x56d79f(0x1df),'properties':{'code':{'type':a10_0x56d79f(0x1dd),'description':'状态码,0表示成功,其他为错误码'},'data':{'type':'object','description':a10_0x56d79f(0x1eb)},'extra':{'type':'object','description':a10_0x56d79f(0x1a0)}},'required':[a10_0x56d79f(0x1bb)]},'ApiResponseList':{'type':'object','properties':{'code':{'type':a10_0x56d79f(0x1dd),'description':a10_0x56d79f(0x1a2)},'data':{'type':a10_0x56d79f(0x1c7),'items':{'type':a10_0x56d79f(0x1df)},'description':a10_0x56d79f(0x1a8)},'extra':{'type':a10_0x56d79f(0x1df),'properties':{'pageinfo':{'type':'object','description':a10_0x56d79f(0x1d5)},'pagetotal':{'type':a10_0x56d79f(0x1dd),'description':'总数量'}},'description':a10_0x56d79f(0x1a0)}},'required':[a10_0x56d79f(0x1bb)]},'ApiError':{'type':'object','properties':{'code':{'type':a10_0x56d79f(0x1dd),'description':'错误码'},'message':{'type':a10_0x56d79f(0x1a5),'description':a10_0x56d79f(0x1c5)}},'required':['code',a10_0x56d79f(0x1be)]}},DEFAULT_RESPONSES={'200':{'description':a10_0x56d79f(0x1af),'schema':{'oneOf':[{'$ref':a10_0x56d79f(0x1e3)},{'$ref':a10_0x56d79f(0x1b7)},{'$ref':a10_0x56d79f(0x1d2)}]}}};function getSwaggerJson(_0x4e1501={'prefix':'/','module':![]}){const _0x5d45f8=a10_0x56d79f;var _0xdac9f7;const _0x5768b6=(0x0,getRoutes_1[_0x5d45f8(0x1a3)])(_0x4e1501),_0x3fde6d=new Map();let _0x5e3127;_0x4e1501['definitions']?_0x5e3127=_0x4e1501['definitions']:(_0x5e3127={...DEFAULT_DEFINITIONS},_0x4e1501[_0x5d45f8(0x1bd)]&&Object[_0x5d45f8(0x1e7)](_0x5e3127,_0x4e1501[_0x5d45f8(0x1bd)]));const _0x346fbc={'swagger':_0x5d45f8(0x1b5),'info':{'title':_0x4e1501[_0x5d45f8(0x1b3)]||_0x5d45f8(0x1d3),'description':_0x4e1501['description']||_0x5d45f8(0x1d6),'version':_0x4e1501[_0x5d45f8(0x1da)]||'1.0.0'},'host':_0x4e1501[_0x5d45f8(0x1ac)]||_0x5d45f8(0x1c4),'basePath':_0x4e1501[_0x5d45f8(0x1ea)]||'/','schemes':_0x4e1501['schemes']||[_0x5d45f8(0x1a1)],'tags':[],'paths':{},'definitions':_0x5e3127};for(const _0xe2e699 in _0x5768b6){const _0x4a8dcf=_0x5768b6[_0xe2e699],_0x47fbb7=(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1ab)])||(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1d4)])||_0x5d45f8(0x1b2),_0x1ba4f8=(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1c9)])||_0x47fbb7;(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1d4)])&&_0x4a8dcf[_0x5d45f8(0x1d4)]!='/'&&(!_0x3fde6d[_0x5d45f8(0x1e6)](_0x47fbb7)&&_0x3fde6d[_0x5d45f8(0x1ec)](_0x47fbb7,{'name':_0x47fbb7,'description':_0x1ba4f8}));for(const _0x215680 of(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf['routes'])||[]){if(_0x215680[_0x5d45f8(0x1c6)]){!_0x346fbc['paths'][_0x215680[_0x5d45f8(0x1c6)]]&&(_0x346fbc[_0x5d45f8(0x1e0)][_0x215680[_0x5d45f8(0x1c6)]]={});if(!_0x346fbc[_0x5d45f8(0x1e0)][_0x215680[_0x5d45f8(0x1c6)]][_0x215680['method']]){const _0x53e277=buildRouteResponse(_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680[_0x5d45f8(0x1c3)]),_0x967054={'summary':_0x215680[_0x5d45f8(0x1ab)],'deprecated':![],'description':(_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680[_0x5d45f8(0x1c9)])||'','tags':_0x47fbb7?[_0x47fbb7]:[],'consumes':[_0x5d45f8(0x1c0)],'produces':[_0x5d45f8(0x1c0)],'responses':_0x53e277,'parameters':[{'in':_0x5d45f8(0x1c2),'name':'body','required':((_0xdac9f7=_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680['request'])===null||_0xdac9f7===void 0x0?void 0x0:_0xdac9f7[_0x5d45f8(0x1db)])>0x0,'schema':getSwaggerJsonParametersSchema((_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680[_0x5d45f8(0x1ae)])||[])}]};_0x346fbc['paths'][_0x215680[_0x5d45f8(0x1c6)]][_0x215680[_0x5d45f8(0x1c1)]]=_0x967054;}}}}return _0x346fbc['tags']=Array[_0x5d45f8(0x1dc)](_0x3fde6d['values']()),_0x346fbc;}function getSwaggerJsonParametersSchema(_0x4c4775=[],_0x3bcf87=a10_0x56d79f(0x1df)){const _0x5a1f35=a10_0x56d79f;var _0x1e3b6b,_0x36a1bf,_0x3c3527;const _0x341cd9={'type':_0x3bcf87};if(_0x3bcf87==_0x5a1f35(0x1df)){_0x341cd9[_0x5a1f35(0x1ce)]={},_0x341cd9[_0x5a1f35(0x1e9)]=[];for(const _0x36f94f of _0x4c4775){_0x36f94f[_0x5a1f35(0x1e9)]&&!_0x341cd9[_0x5a1f35(0x1e9)][_0x5a1f35(0x1b0)](_0x36f94f['key'])&&_0x341cd9['required'][_0x5a1f35(0x1b6)](_0x36f94f['key']),((_0x1e3b6b=_0x36f94f===null||_0x36f94f===void 0x0?void 0x0:_0x36f94f['children'])===null||_0x1e3b6b===void 0x0?void 0x0:_0x1e3b6b[_0x5a1f35(0x1db)])>0x0?_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f[_0x5a1f35(0x1e1)]]=getSwaggerJsonParametersSchema(_0x36f94f['children'],_0x36f94f[_0x5a1f35(0x1bc)]):(_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f[_0x5a1f35(0x1e1)]]={'type':_0x36f94f[_0x5a1f35(0x1bc)],'title':_0x36f94f['title'],'default':_0x36f94f[_0x5a1f35(0x1b2)],'description':_0x36f94f[_0x5a1f35(0x1c9)]},((_0x36a1bf=_0x36f94f===null||_0x36f94f===void 0x0?void 0x0:_0x36f94f[_0x5a1f35(0x19f)])===null||_0x36a1bf===void 0x0?void 0x0:_0x36a1bf['max'])&&(_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f['key']][_0x5a1f35(0x1ad)]=_0x36f94f[_0x5a1f35(0x19f)]['max']),((_0x3c3527=_0x36f94f===null||_0x36f94f===void 0x0?void 0x0:_0x36f94f[_0x5a1f35(0x19f)])===null||_0x3c3527===void 0x0?void 0x0:_0x3c3527[_0x5a1f35(0x1d1)])&&(_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f['key']][_0x5a1f35(0x1cc)]=_0x36f94f['rules']['min']));}}else _0x3bcf87=='array'&&(_0x341cd9[_0x5a1f35(0x1a7)]=getSwaggerJsonParametersSchema(_0x4c4775,'object'));return _0x341cd9;}function buildRouteResponse(_0x32bcd0){const _0x4b9130=a10_0x56d79f;var _0x7f98f2;if(!_0x32bcd0)return DEFAULT_RESPONSES;const _0x46cdc3=_0x32bcd0[_0x4b9130(0x1e8)]||_0x4b9130(0x1b2),_0x3851ab=[];_0x46cdc3===_0x4b9130(0x1b8)?_0x3851ab['push'](buildPropertiesSchema(_0x32bcd0===null||_0x32bcd0===void 0x0?void 0x0:_0x32bcd0[_0x4b9130(0x1ce)])):_0x3851ab['push'](buildDefaultSchema(_0x32bcd0));if(((_0x7f98f2=_0x32bcd0[_0x4b9130(0x1d8)])===null||_0x7f98f2===void 0x0?void 0x0:_0x7f98f2[_0x4b9130(0x1db)])>0x0)for(const _0x311a65 of _0x32bcd0[_0x4b9130(0x1d8)]){_0x3851ab[_0x4b9130(0x1b6)]({'type':'object','properties':{'code':{'type':_0x4b9130(0x1dd),'description':_0x46cdc3===_0x4b9130(0x1b2)?_0x4b9130(0x1ba)+_0x311a65[_0x4b9130(0x1bb)]:undefined,'enum':[_0x311a65['code']]},'message':{'type':_0x4b9130(0x1a5),'description':_0x46cdc3===_0x4b9130(0x1b2)?_0x311a65['message']:undefined}},'example':{'code':_0x311a65[_0x4b9130(0x1bb)],'message':_0x311a65[_0x4b9130(0x1be)]}});}return{'200':{'description':_0x32bcd0[_0x4b9130(0x1c9)]||_0x4b9130(0x1b1),'schema':_0x3851ab[_0x4b9130(0x1db)]===0x1?_0x3851ab[0x0]:{'oneOf':_0x3851ab}}};}function buildDefaultSchema(_0x11d432){const _0x4a89f6=a10_0x56d79f,_0x375df8=buildPropertiesSchema(_0x11d432===null||_0x11d432===void 0x0?void 0x0:_0x11d432[_0x4a89f6(0x1ce)]),_0x44ded2={'code':{'type':_0x4a89f6(0x1dd),'description':'状态码,0表示成功','enum':[0x0]}};if(_0x11d432['type']===_0x4a89f6(0x1d0))return{'type':_0x4a89f6(0x1df),'properties':{..._0x44ded2,'data':{'type':_0x4a89f6(0x1c7),'items':_0x375df8,'description':_0x4a89f6(0x1a8)},'extra':{'type':_0x4a89f6(0x1df),'properties':{'pageinfo':{'type':'object','description':_0x4a89f6(0x1d5)},'pagetotal':{'type':_0x4a89f6(0x1dd),'description':_0x4a89f6(0x1ed)}}}},'required':[_0x4a89f6(0x1bb)]};if(_0x11d432['type']==='array')return{'type':_0x4a89f6(0x1df),'properties':{..._0x44ded2,'data':{'type':_0x4a89f6(0x1c7),'items':_0x375df8,'description':_0x4a89f6(0x1a8)}},'required':[_0x4a89f6(0x1bb)]};return{'type':_0x4a89f6(0x1df),'properties':{..._0x44ded2,'data':_0x375df8},'required':[_0x4a89f6(0x1bb)]};}function buildPropertiesSchema(_0x1f35c6,_0x4cf712=!![]){const _0x1ef76f=a10_0x56d79f;var _0x523f39;if(!_0x1f35c6||_0x1f35c6['length']===0x0)return _0x4cf712?{'type':_0x1ef76f(0x1df)}:{};const _0x41b52f={};for(const _0x5abdfd of _0x1f35c6){((_0x523f39=_0x5abdfd['children'])===null||_0x523f39===void 0x0?void 0x0:_0x523f39[_0x1ef76f(0x1db)])>0x0?_0x41b52f[_0x5abdfd[_0x1ef76f(0x1e1)]]=_0x5abdfd[_0x1ef76f(0x1bc)]===_0x1ef76f(0x1c7)?{'type':'array','items':{'type':'object','properties':buildPropertiesSchema(_0x5abdfd[_0x1ef76f(0x1a4)],![])}}:{'type':_0x5abdfd[_0x1ef76f(0x1bc)]||_0x1ef76f(0x1df),'properties':buildPropertiesSchema(_0x5abdfd[_0x1ef76f(0x1a4)],![]),'description':_0x5abdfd[_0x1ef76f(0x1c9)]||_0x5abdfd['key']}:_0x41b52f[_0x5abdfd[_0x1ef76f(0x1e1)]]={'type':_0x5abdfd[_0x1ef76f(0x1bc)]||'string','description':_0x5abdfd[_0x1ef76f(0x1c9)]||_0x5abdfd[_0x1ef76f(0x1e1)]};}return _0x4cf712?{'type':_0x1ef76f(0x1df),'properties':_0x41b52f}:_0x41b52f;}function a10_0x53e9(){const _0x4e708e=['body','response','localhost:7001','错误信息','route','array','9LzZlWf','description','8155890IEZbef','696JzGYBx','minimum','search','properties','./getRoutes','page','min','#/definitions/ApiError','接口文档','prefix','分页参数','本接口文档由API自动解析生成','defineProperty','errors','constructor','version','length','from','integer','3680350kSwObm','object','paths','key','apply','#/definitions/ApiResponse','32crImMS','56483MWwMhM','has','assign','format','required','basePath','返回数据','set','总数量','rules','附加数据,如分页信息','http','状态码,0表示成功,其他为错误码','getRoutes','children','string','1bvkmNn','items','返回数据列表','2484800urQchQ','14559688BaXzoc','summary','host','maximum','request','请求成功,具体结果请查看code字段','includes','请求成功','default','title','213351vpsTjO','2.0','push','#/definitions/ApiResponseList','custom','2511928OAPnHv','错误码:\x20','code','type','extraDefinitions','message','toString','application/json','method'];a10_0x53e9=function(){return _0x4e708e;};return a10_0x53e9();}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './service/ApitestService';
|
|
|
4
4
|
export { Action } from './decorator/Action';
|
|
5
5
|
export { Apitest } from './decorator/ActionApitest';
|
|
6
6
|
export { Intercept, IIntercept } from './decorator/Intercept';
|
|
7
|
+
export { ActionResponseOption, ResponseProperty, ErrorResponse } from './types/action';
|
|
7
8
|
export { ILogger } from '@midwayjs/logger';
|
|
8
9
|
export { getRoutes } from './helper/getRoutes';
|
|
9
10
|
export { getSwaggerJson } from './helper/getSwaggerJson';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a11_0x5a34c2=a11_0x236c;(function(_0x55b1b8,_0x2c3b6c){var _0x3c087b=a11_0x236c,_0x41f403=_0x55b1b8();while(!![]){try{var _0x2f9c0c=parseInt(_0x3c087b(0xf8))/0x1*(parseInt(_0x3c087b(0x128))/0x2)+-parseInt(_0x3c087b(0xe7))/0x3+parseInt(_0x3c087b(0x129))/0x4*(-parseInt(_0x3c087b(0x12c))/0x5)+-parseInt(_0x3c087b(0x103))/0x6*(parseInt(_0x3c087b(0xfa))/0x7)+parseInt(_0x3c087b(0x11f))/0x8*(parseInt(_0x3c087b(0xe6))/0x9)+parseInt(_0x3c087b(0x115))/0xa+-parseInt(_0x3c087b(0x118))/0xb*(-parseInt(_0x3c087b(0xfd))/0xc);if(_0x2f9c0c===_0x2c3b6c)break;else _0x41f403['push'](_0x41f403['shift']());}catch(_0x1956f4){_0x41f403['push'](_0x41f403['shift']());}}}(a11_0x5ba9,0x20b10));function a11_0x5ba9(){var _0x592e60=['./service/ExcelStream','Query','@anncic-api/validator','Headers','hasOwnProperty','default','./decorator/Intercept','ExcelService','368300MrsRYr','File','getOwnPropertyDescriptor','242ByGXsp','constructor','./decorator/Action','search','writable','ApiService','./service/ApiService','30040DmSrIZ','getSwaggerJson','./exception/ApiError','Singleton','ScopeEnum','__createBinding','EventService','./service/ExcelService','ApiError','1544XkEjit','434212XPJyJx','Config','getAppsConfig','5GpPFEm','defineProperty','configurable','270WrGaZg','533418QRuqKA','./helper/getAppsConfig','./configuration','App','Intercept','Inject','Logger','@midwayjs/core','prototype','ValidatorService','CacheService','__esModule','getRoutes','./decorator/ActionApitest','__exportStar','(((.+)+)+)+$','@anncic-api/cache','95NmyoYy','./helper/getSwaggerJson','21SZaqEt','ExcelStream','Fields','113196xNNIEP','Init','apply','toString','Body','Action','20166FVNKiW','get','Provide','call','Configuration','Scope','IIntercept','Param','Files','Apitest'];a11_0x5ba9=function(){return _0x592e60;};return a11_0x5ba9();}var a11_0x656da2=(function(){var _0x17aa38=!![];return function(_0x3d04d4,_0x1919cb){var _0x5225e3=_0x17aa38?function(){var _0x4fb428=a11_0x236c;if(_0x1919cb){var _0x5a0cec=_0x1919cb[_0x4fb428(0xff)](_0x3d04d4,arguments);return _0x1919cb=null,_0x5a0cec;}}:function(){};return _0x17aa38=![],_0x5225e3;};}()),a11_0x1e4343=a11_0x656da2(this,function(){var _0x5cdce1=a11_0x236c;return a11_0x1e4343[_0x5cdce1(0x100)]()[_0x5cdce1(0x11b)]('(((.+)+)+)+$')[_0x5cdce1(0x100)]()[_0x5cdce1(0x119)](a11_0x1e4343)['search'](_0x5cdce1(0xf6));});a11_0x1e4343();'use strict';var __createBinding=this&&this[a11_0x5a34c2(0x124)]||(Object['create']?function(_0x6153f,_0x16e831,_0x12afb8,_0x5b58ed){var _0x2077b0=a11_0x5a34c2;if(_0x5b58ed===undefined)_0x5b58ed=_0x12afb8;var _0x8de5cc=Object[_0x2077b0(0x117)](_0x16e831,_0x12afb8);(!_0x8de5cc||(_0x2077b0(0x104)in _0x8de5cc?!_0x16e831['__esModule']:_0x8de5cc[_0x2077b0(0x11c)]||_0x8de5cc[_0x2077b0(0x12e)]))&&(_0x8de5cc={'enumerable':!![],'get':function(){return _0x16e831[_0x12afb8];}}),Object[_0x2077b0(0x12d)](_0x6153f,_0x5b58ed,_0x8de5cc);}:function(_0x1c4f3f,_0x2e2151,_0x5f4000,_0x2d05c4){if(_0x2d05c4===undefined)_0x2d05c4=_0x5f4000;_0x1c4f3f[_0x2d05c4]=_0x2e2151[_0x5f4000];}),__exportStar=this&&this[a11_0x5a34c2(0xf5)]||function(_0x51aaf4,_0x2bbeb4){var _0x46fc53=a11_0x5a34c2;for(var _0x2c0ce7 in _0x51aaf4)if(_0x2c0ce7!==_0x46fc53(0x112)&&!Object[_0x46fc53(0xef)][_0x46fc53(0x111)][_0x46fc53(0x106)](_0x2bbeb4,_0x2c0ce7))__createBinding(_0x2bbeb4,_0x51aaf4,_0x2c0ce7);};Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xf2),{'value':!![]}),exports[a11_0x5a34c2(0x12b)]=exports[a11_0x5a34c2(0x123)]=exports[a11_0x5a34c2(0x122)]=exports['Scope']=exports[a11_0x5a34c2(0xec)]=exports[a11_0x5a34c2(0x105)]=exports[a11_0x5a34c2(0xed)]=exports[a11_0x5a34c2(0x12a)]=exports['App']=exports[a11_0x5a34c2(0xfe)]=exports[a11_0x5a34c2(0x110)]=exports[a11_0x5a34c2(0x10e)]=exports[a11_0x5a34c2(0x10a)]=exports['Body']=exports['Fields']=exports[a11_0x5a34c2(0x10b)]=exports[a11_0x5a34c2(0x116)]=exports[a11_0x5a34c2(0x107)]=exports[a11_0x5a34c2(0xf0)]=exports['ValidatorError']=exports['ExcelService']=exports[a11_0x5a34c2(0xfb)]=exports[a11_0x5a34c2(0x11d)]=exports[a11_0x5a34c2(0x125)]=exports[a11_0x5a34c2(0xf1)]=exports[a11_0x5a34c2(0x127)]=exports[a11_0x5a34c2(0x120)]=exports[a11_0x5a34c2(0xf3)]=exports[a11_0x5a34c2(0x109)]=exports[a11_0x5a34c2(0xeb)]=exports[a11_0x5a34c2(0x10c)]=exports['Action']=void 0x0;function a11_0x236c(_0x324686,_0x437885){var _0x327e80=a11_0x5ba9();return a11_0x236c=function(_0x1e4343,_0x656da2){_0x1e4343=_0x1e4343-0xe6;var _0x5ba9be=_0x327e80[_0x1e4343];return _0x5ba9be;},a11_0x236c(_0x324686,_0x437885);}const getAppsConfig_1=require(a11_0x5a34c2(0xe8));Object['defineProperty'](exports,a11_0x5a34c2(0x12b),{'enumerable':!![],'get':function(){var _0x3613b1=a11_0x5a34c2;return getAppsConfig_1[_0x3613b1(0x12b)];}}),__exportStar(require('./types/common'),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a11_0x5a34c2(0x11a));Object['defineProperty'](exports,'Action',{'enumerable':!![],'get':function(){var _0x787132=a11_0x5a34c2;return Action_1[_0x787132(0x102)];}});var ActionApitest_1=require(a11_0x5a34c2(0xf4));Object['defineProperty'](exports,a11_0x5a34c2(0x10c),{'enumerable':!![],'get':function(){var _0x323c42=a11_0x5a34c2;return ActionApitest_1[_0x323c42(0x10c)];}});var Intercept_1=require(a11_0x5a34c2(0x113));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xeb),{'enumerable':!![],'get':function(){var _0x4b4670=a11_0x5a34c2;return Intercept_1[_0x4b4670(0xeb)];}}),Object[a11_0x5a34c2(0x12d)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x5be1c7=a11_0x5a34c2;return Intercept_1[_0x5be1c7(0x109)];}});var getRoutes_1=require('./helper/getRoutes');Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xf3),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var getSwaggerJson_1=require(a11_0x5a34c2(0xf9));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x120),{'enumerable':!![],'get':function(){return getSwaggerJson_1['getSwaggerJson'];}});var ApiError_1=require(a11_0x5a34c2(0x121));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x127),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a11_0x5a34c2(0xf7));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xf1),{'enumerable':!![],'get':function(){var _0x1a7f0d=a11_0x5a34c2;return cache_1[_0x1a7f0d(0xf1)];}});var event_1=require('@anncic-api/event');Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x125),{'enumerable':!![],'get':function(){var _0x3bc444=a11_0x5a34c2;return event_1[_0x3bc444(0x125)];}});var ApiService_1=require(a11_0x5a34c2(0x11e));Object['defineProperty'](exports,a11_0x5a34c2(0x11d),{'enumerable':!![],'get':function(){var _0x40814f=a11_0x5a34c2;return ApiService_1[_0x40814f(0x11d)];}});var ExcelStream_1=require(a11_0x5a34c2(0x10d));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xfb),{'enumerable':!![],'get':function(){var _0x4fe6bf=a11_0x5a34c2;return ExcelStream_1[_0x4fe6bf(0xfb)];}});var ExcelService_1=require(a11_0x5a34c2(0x126));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x114),{'enumerable':!![],'get':function(){var _0x451d56=a11_0x5a34c2;return ExcelService_1[_0x451d56(0x114)];}});var validator_1=require(a11_0x5a34c2(0x10f));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object['defineProperty'](exports,a11_0x5a34c2(0xf0),{'enumerable':!![],'get':function(){var _0x3223e6=a11_0x5a34c2;return validator_1[_0x3223e6(0xf0)];}});var configuration_1=require(a11_0x5a34c2(0xe9));Object['defineProperty'](exports,a11_0x5a34c2(0x107),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a11_0x5a34c2(0xee));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x116),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x10b),{'enumerable':!![],'get':function(){var _0x57c92e=a11_0x5a34c2;return core_1[_0x57c92e(0x10b)];}}),Object['defineProperty'](exports,a11_0x5a34c2(0xfc),{'enumerable':!![],'get':function(){var _0x317cf1=a11_0x5a34c2;return core_1[_0x317cf1(0xfc)];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x101),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x10a),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a11_0x5a34c2(0x12d)](exports,'Query',{'enumerable':!![],'get':function(){var _0x5ede1c=a11_0x5a34c2;return core_1[_0x5ede1c(0x10e)];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x110),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xfe),{'enumerable':!![],'get':function(){var _0x2006f9=a11_0x5a34c2;return core_1[_0x2006f9(0xfe)];}});var core_2=require(a11_0x5a34c2(0xee));Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xea),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,'Config',{'enumerable':!![],'get':function(){var _0x45e3e0=a11_0x5a34c2;return core_2[_0x45e3e0(0x12a)];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0xed),{'enumerable':!![],'get':function(){var _0x416912=a11_0x5a34c2;return core_2[_0x416912(0xed)];}}),Object['defineProperty'](exports,a11_0x5a34c2(0x105),{'enumerable':!![],'get':function(){var _0x1db2c8=a11_0x5a34c2;return core_2[_0x1db2c8(0x105)];}}),Object['defineProperty'](exports,'Inject',{'enumerable':!![],'get':function(){var _0x315366=a11_0x5a34c2;return core_2[_0x315366(0xec)];}}),Object['defineProperty'](exports,a11_0x5a34c2(0x108),{'enumerable':!![],'get':function(){var _0x569d99=a11_0x5a34c2;return core_2[_0x569d99(0x108)];}}),Object[a11_0x5a34c2(0x12d)](exports,a11_0x5a34c2(0x122),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a11_0x5a34c2(0x12d)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x5dc3c7=a11_0x5a34c2;return core_2[_0x5dc3c7(0x123)];}}),global['getAppsConfig']=getAppsConfig_1[a11_0x5a34c2(0x12b)];
|
|
1
|
+
var a11_0x1c0289=a11_0x3525;(function(_0x35ef13,_0xf64194){var _0x276602=a11_0x3525,_0x2551e6=_0x35ef13();while(!![]){try{var _0x210cd4=-parseInt(_0x276602(0x21b))/0x1+parseInt(_0x276602(0x1e5))/0x2*(parseInt(_0x276602(0x1e0))/0x3)+parseInt(_0x276602(0x1f1))/0x4+-parseInt(_0x276602(0x214))/0x5+-parseInt(_0x276602(0x1f3))/0x6+parseInt(_0x276602(0x1f4))/0x7+parseInt(_0x276602(0x1df))/0x8;if(_0x210cd4===_0xf64194)break;else _0x2551e6['push'](_0x2551e6['shift']());}catch(_0x2022c3){_0x2551e6['push'](_0x2551e6['shift']());}}}(a11_0x38ba,0x6f351));var a11_0x5bd26e=(function(){var _0x2fa0d9=!![];return function(_0x390d65,_0x102c62){var _0x11b2a5=_0x2fa0d9?function(){if(_0x102c62){var _0x4c8b29=_0x102c62['apply'](_0x390d65,arguments);return _0x102c62=null,_0x4c8b29;}}:function(){};return _0x2fa0d9=![],_0x11b2a5;};}()),a11_0x159df2=a11_0x5bd26e(this,function(){var _0xa21912=a11_0x3525;return a11_0x159df2[_0xa21912(0x1f8)]()[_0xa21912(0x1eb)](_0xa21912(0x219))[_0xa21912(0x1f8)]()['constructor'](a11_0x159df2)['search'](_0xa21912(0x219));});a11_0x159df2();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a11_0x1c0289(0x212)]?function(_0x223f20,_0x5bf835,_0x56c269,_0x21b7c5){var _0xd79b12=a11_0x1c0289;if(_0x21b7c5===undefined)_0x21b7c5=_0x56c269;var _0x532410=Object[_0xd79b12(0x1dd)](_0x5bf835,_0x56c269);(!_0x532410||(_0xd79b12(0x1f2)in _0x532410?!_0x5bf835[_0xd79b12(0x1e2)]:_0x532410['writable']||_0x532410[_0xd79b12(0x21e)]))&&(_0x532410={'enumerable':!![],'get':function(){return _0x5bf835[_0x56c269];}}),Object[_0xd79b12(0x1fd)](_0x223f20,_0x21b7c5,_0x532410);}:function(_0x5c1fdc,_0x2c0095,_0x350245,_0x41acd7){if(_0x41acd7===undefined)_0x41acd7=_0x350245;_0x5c1fdc[_0x41acd7]=_0x2c0095[_0x350245];}),__exportStar=this&&this[a11_0x1c0289(0x208)]||function(_0x3fc15a,_0x12aa9b){var _0x19a12b=a11_0x1c0289;for(var _0x44fbcf in _0x3fc15a)if(_0x44fbcf!==_0x19a12b(0x1e9)&&!Object['prototype'][_0x19a12b(0x21f)][_0x19a12b(0x1e3)](_0x12aa9b,_0x44fbcf))__createBinding(_0x12aa9b,_0x3fc15a,_0x44fbcf);};Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e2),{'value':!![]}),exports['getAppsConfig']=exports[a11_0x1c0289(0x204)]=exports['Singleton']=exports[a11_0x1c0289(0x1f5)]=exports[a11_0x1c0289(0x201)]=exports[a11_0x1c0289(0x1e4)]=exports['Logger']=exports['Config']=exports[a11_0x1c0289(0x217)]=exports[a11_0x1c0289(0x21a)]=exports['Headers']=exports[a11_0x1c0289(0x209)]=exports[a11_0x1c0289(0x20a)]=exports[a11_0x1c0289(0x1de)]=exports[a11_0x1c0289(0x1ec)]=exports[a11_0x1c0289(0x21d)]=exports['File']=exports[a11_0x1c0289(0x1ff)]=exports['ValidatorService']=exports[a11_0x1c0289(0x200)]=exports[a11_0x1c0289(0x1f0)]=exports[a11_0x1c0289(0x210)]=exports['ApiService']=exports[a11_0x1c0289(0x1e1)]=exports['CacheService']=exports[a11_0x1c0289(0x1fe)]=exports[a11_0x1c0289(0x218)]=exports[a11_0x1c0289(0x1ef)]=exports[a11_0x1c0289(0x202)]=exports[a11_0x1c0289(0x1fa)]=exports['Apitest']=exports[a11_0x1c0289(0x1f7)]=void 0x0;const getAppsConfig_1=require(a11_0x1c0289(0x20b));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1f9),{'enumerable':!![],'get':function(){var _0xcf2efd=a11_0x1c0289;return getAppsConfig_1[_0xcf2efd(0x1f9)];}}),__exportStar(require(a11_0x1c0289(0x206)),exports),__exportStar(require(a11_0x1c0289(0x1f6)),exports);function a11_0x3525(_0x49e75f,_0x19185b){var _0x51be30=a11_0x38ba();return a11_0x3525=function(_0x159df2,_0x5bd26e){_0x159df2=_0x159df2-0x1dd;var _0x38ba27=_0x51be30[_0x159df2];return _0x38ba27;},a11_0x3525(_0x49e75f,_0x19185b);}var Action_1=require(a11_0x1c0289(0x215));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1f7),{'enumerable':!![],'get':function(){var _0x228e9f=a11_0x1c0289;return Action_1[_0x228e9f(0x1f7)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1ea),{'enumerable':!![],'get':function(){var _0x249ef9=a11_0x1c0289;return ActionApitest_1[_0x249ef9(0x1ea)];}});function a11_0x38ba(){var _0x432774=['ValidatorService','./types/common','./helper/getRoutes','__exportStar','Query','Param','./helper/getAppsConfig','CustomConfiguration','@anncic-api/validator','ApiService','./service/ApiService','ExcelStream','Logger','create','./decorator/Intercept','2283635jCZAfM','./decorator/Action','CacheService','App','getSwaggerJson','(((.+)+)+)+$','Init','561537XXJQuv','@anncic-api/event','Files','configurable','hasOwnProperty','getOwnPropertyDescriptor','Body','6660272vONuZA','1197321ntJChe','EventService','__esModule','call','Provide','4oGaQQr','File','@midwayjs/core','./configuration','default','Apitest','search','Fields','./service/ExcelStream','./service/ExcelService','getRoutes','ExcelService','1716424uSQAMX','get','4958520TnWSHF','1682345pYiQEK','Scope','./service/ApitestService','Action','toString','getAppsConfig','Intercept','Config','Headers','defineProperty','ApiError','Configuration','ValidatorError','Inject','IIntercept','Singleton','ScopeEnum'];a11_0x38ba=function(){return _0x432774;};return a11_0x38ba();}var Intercept_1=require(a11_0x1c0289(0x213));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1fa),{'enumerable':!![],'get':function(){var _0x2a335f=a11_0x1c0289;return Intercept_1[_0x2a335f(0x1fa)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x202),{'enumerable':!![],'get':function(){var _0x392ccb=a11_0x1c0289;return Intercept_1[_0x392ccb(0x202)];}});var getRoutes_1=require(a11_0x1c0289(0x207));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1ef),{'enumerable':!![],'get':function(){var _0x55b008=a11_0x1c0289;return getRoutes_1[_0x55b008(0x1ef)];}});var getSwaggerJson_1=require('./helper/getSwaggerJson');Object[a11_0x1c0289(0x1fd)](exports,'getSwaggerJson',{'enumerable':!![],'get':function(){var _0x235696=a11_0x1c0289;return getSwaggerJson_1[_0x235696(0x218)];}});var ApiError_1=require('./exception/ApiError');Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1fe),{'enumerable':!![],'get':function(){var _0x2f8d25=a11_0x1c0289;return ApiError_1[_0x2f8d25(0x1fe)];}});var cache_1=require('@anncic-api/cache');Object[a11_0x1c0289(0x1fd)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x3a76cc=a11_0x1c0289;return cache_1[_0x3a76cc(0x216)];}});var event_1=require(a11_0x1c0289(0x21c));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e1),{'enumerable':!![],'get':function(){var _0x6289c9=a11_0x1c0289;return event_1[_0x6289c9(0x1e1)];}});var ApiService_1=require(a11_0x1c0289(0x20f));Object['defineProperty'](exports,a11_0x1c0289(0x20e),{'enumerable':!![],'get':function(){var _0x3f14fb=a11_0x1c0289;return ApiService_1[_0x3f14fb(0x20e)];}});var ExcelStream_1=require(a11_0x1c0289(0x1ed));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x210),{'enumerable':!![],'get':function(){var _0x2080e1=a11_0x1c0289;return ExcelStream_1[_0x2080e1(0x210)];}});var ExcelService_1=require(a11_0x1c0289(0x1ee));Object[a11_0x1c0289(0x1fd)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x4debeb=a11_0x1c0289;return ExcelService_1[_0x4debeb(0x1f0)];}});var validator_1=require(a11_0x1c0289(0x20d));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x200),{'enumerable':!![],'get':function(){var _0xee2992=a11_0x1c0289;return validator_1[_0xee2992(0x200)];}}),Object['defineProperty'](exports,a11_0x1c0289(0x205),{'enumerable':!![],'get':function(){var _0x3fffcf=a11_0x1c0289;return validator_1[_0x3fffcf(0x205)];}});var configuration_1=require(a11_0x1c0289(0x1e8));Object['defineProperty'](exports,a11_0x1c0289(0x1ff),{'enumerable':!![],'get':function(){var _0x41d1d7=a11_0x1c0289;return configuration_1[_0x41d1d7(0x20c)];}});var core_1=require(a11_0x1c0289(0x1e7));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e6),{'enumerable':!![],'get':function(){var _0x10df84=a11_0x1c0289;return core_1[_0x10df84(0x1e6)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x21d),{'enumerable':!![],'get':function(){var _0x4ba5dc=a11_0x1c0289;return core_1[_0x4ba5dc(0x21d)];}}),Object[a11_0x1c0289(0x1fd)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x15664a=a11_0x1c0289;return core_1[_0x15664a(0x1ec)];}}),Object['defineProperty'](exports,a11_0x1c0289(0x1de),{'enumerable':!![],'get':function(){var _0x5ac967=a11_0x1c0289;return core_1[_0x5ac967(0x1de)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x20a),{'enumerable':!![],'get':function(){var _0x5df739=a11_0x1c0289;return core_1[_0x5df739(0x20a)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x209),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a11_0x1c0289(0x1fd)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x54f747=a11_0x1c0289;return core_1[_0x54f747(0x1fc)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x21a),{'enumerable':!![],'get':function(){var _0x42f331=a11_0x1c0289;return core_1[_0x42f331(0x21a)];}});var core_2=require('@midwayjs/core');Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x217),{'enumerable':!![],'get':function(){var _0x15c275=a11_0x1c0289;return core_2[_0x15c275(0x217)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1fb),{'enumerable':!![],'get':function(){var _0x3fb108=a11_0x1c0289;return core_2[_0x3fb108(0x1fb)];}}),Object[a11_0x1c0289(0x1fd)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x36cd4b=a11_0x1c0289;return core_2[_0x36cd4b(0x211)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e4),{'enumerable':!![],'get':function(){var _0x4b29cd=a11_0x1c0289;return core_2[_0x4b29cd(0x1e4)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x201),{'enumerable':!![],'get':function(){var _0x2ad59c=a11_0x1c0289;return core_2[_0x2ad59c(0x201)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1f5),{'enumerable':!![],'get':function(){var _0xf1e360=a11_0x1c0289;return core_2[_0xf1e360(0x1f5)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x203),{'enumerable':!![],'get':function(){var _0x36491f=a11_0x1c0289;return core_2[_0x36491f(0x203)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x204),{'enumerable':!![],'get':function(){var _0x448df4=a11_0x1c0289;return core_2[_0x448df4(0x204)];}}),global[a11_0x1c0289(0x1f9)]=getAppsConfig_1[a11_0x1c0289(0x1f9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a12_0x39f0(_0x4e8e4a,_0x4f29db){var _0x5402f0=a12_0x9c08();return a12_0x39f0=function(_0xbd28b3,_0x43e6fe){_0xbd28b3=_0xbd28b3-0x13f;var _0x9c0828=_0x5402f0[_0xbd28b3];return _0x9c0828;},a12_0x39f0(_0x4e8e4a,_0x4f29db);}var a12_0x5ebdf6=a12_0x39f0;(function(_0x1c76c0,_0x4c727a){var _0x111774=a12_0x39f0,_0x2d56ca=_0x1c76c0();while(!![]){try{var _0x4bcab9=-parseInt(_0x111774(0x16c))/0x1+parseInt(_0x111774(0x170))/0x2+-parseInt(_0x111774(0x14d))/0x3*(-parseInt(_0x111774(0x176))/0x4)+parseInt(_0x111774(0x15a))/0x5+parseInt(_0x111774(0x175))/0x6*(-parseInt(_0x111774(0x183))/0x7)+-parseInt(_0x111774(0x141))/0x8+parseInt(_0x111774(0x143))/0x9*(parseInt(_0x111774(0x147))/0xa);if(_0x4bcab9===_0x4c727a)break;else _0x2d56ca['push'](_0x2d56ca['shift']());}catch(_0x4cd74c){_0x2d56ca['push'](_0x2d56ca['shift']());}}}(a12_0x9c08,0x21416));var a12_0x43e6fe=(function(){var _0x1ccea7=!![];return function(_0x109474,_0x27fc35){var _0x5dd052=_0x1ccea7?function(){var _0x5da7fd=a12_0x39f0;if(_0x27fc35){var _0x56f13b=_0x27fc35[_0x5da7fd(0x146)](_0x109474,arguments);return _0x27fc35=null,_0x56f13b;}}:function(){};return _0x1ccea7=![],_0x5dd052;};}()),a12_0xbd28b3=a12_0x43e6fe(this,function(){var _0x463369=a12_0x39f0;return a12_0xbd28b3['toString']()[_0x463369(0x152)]('(((.+)+)+)+$')['toString']()[_0x463369(0x148)](a12_0xbd28b3)['search']('(((.+)+)+)+$');});a12_0xbd28b3();'use strict';var __decorate=this&&this[a12_0x5ebdf6(0x142)]||function(_0x4561dc,_0x3b0021,_0xd38c89,_0x4ae2cc){var _0x289f40=a12_0x5ebdf6,_0x3786b2=arguments[_0x289f40(0x179)],_0x5f351a=_0x3786b2<0x3?_0x3b0021:_0x4ae2cc===null?_0x4ae2cc=Object[_0x289f40(0x17f)](_0x3b0021,_0xd38c89):_0x4ae2cc,_0xf88fdb;if(typeof Reflect===_0x289f40(0x16f)&&typeof Reflect['decorate']===_0x289f40(0x14e))_0x5f351a=Reflect[_0x289f40(0x162)](_0x4561dc,_0x3b0021,_0xd38c89,_0x4ae2cc);else{for(var _0x4bd39d=_0x4561dc[_0x289f40(0x179)]-0x1;_0x4bd39d>=0x0;_0x4bd39d--)if(_0xf88fdb=_0x4561dc[_0x4bd39d])_0x5f351a=(_0x3786b2<0x3?_0xf88fdb(_0x5f351a):_0x3786b2>0x3?_0xf88fdb(_0x3b0021,_0xd38c89,_0x5f351a):_0xf88fdb(_0x3b0021,_0xd38c89))||_0x5f351a;}return _0x3786b2>0x3&&_0x5f351a&&Object[_0x289f40(0x16d)](_0x3b0021,_0xd38c89,_0x5f351a),_0x5f351a;},__metadata=this&&this[a12_0x5ebdf6(0x16a)]||function(_0x21fe39,_0x49f04a){var _0x266d52=a12_0x5ebdf6;if(typeof Reflect===_0x266d52(0x16f)&&typeof Reflect[_0x266d52(0x155)]===_0x266d52(0x14e))return Reflect[_0x266d52(0x155)](_0x21fe39,_0x49f04a);};Object[a12_0x5ebdf6(0x16d)](exports,'__esModule',{'value':!![]}),exports[a12_0x5ebdf6(0x14c)]=void 0x0;const crypto_js_1=require(a12_0x5ebdf6(0x16b)),core_1=require(a12_0x5ebdf6(0x14f)),ApiError_1=require(a12_0x5ebdf6(0x14a));let ApiService=class ApiService{[a12_0x5ebdf6(0x151)](_0x9d2cb8){var _0x18b3d2=a12_0x5ebdf6,_0x1a387f;return _0x9d2cb8?(0x0,crypto_js_1[_0x18b3d2(0x177)])(''+_0x9d2cb8+(0x0,crypto_js_1[_0x18b3d2(0x177)])((0x0,crypto_js_1[_0x18b3d2(0x177)])(''+_0x9d2cb8)[_0x18b3d2(0x15e)]()+(''+((_0x1a387f=this[_0x18b3d2(0x168)])===null||_0x1a387f===void 0x0?void 0x0:_0x1a387f[_0x18b3d2(0x151)])))[_0x18b3d2(0x15e)]())[_0x18b3d2(0x15e)]():'';}['getcheck'](_0x281c1a,_0x211385,_0x23df26=Date['now']()){return{'Token':_0x281c1a,'Logintime':_0x23df26,'Checkcode':this['checkcode'](_0x281c1a,_0x211385,_0x23df26)};}[a12_0x5ebdf6(0x144)](_0x3af807={}){var _0x39fb15=a12_0x5ebdf6,_0x1a40e2,_0x1a7332;const _0x3b9ccf=[],_0x5ab66b=Object[_0x39fb15(0x157)](Object[_0x39fb15(0x145)](_0x3af807)[_0x39fb15(0x153)](_0x1d306c=>[_0x1d306c[0x0][_0x39fb15(0x169)](),_0x1d306c[0x1]]));for(let _0x18b102 of['device','requesttime',_0x39fb15(0x181),_0x39fb15(0x13f),_0x39fb15(0x161)]){if(typeof _0x5ab66b[_0x18b102]==_0x39fb15(0x17b))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x39fb15(0x149)});_0x3b9ccf[_0x39fb15(0x180)](_0x18b102+'='+_0x5ab66b[_0x18b102]);}_0x5ab66b[_0x39fb15(0x160)]&&((_0x1a40e2=_0x5ab66b['requesttime'])===null||_0x1a40e2===void 0x0?void 0x0:_0x1a40e2[_0x39fb15(0x179)])==0xa&&(_0x5ab66b[_0x39fb15(0x160)]=_0x5ab66b['requesttime']*0x3e8);if(this['config'][_0x39fb15(0x163)]&&parseInt((''+Date[_0x39fb15(0x174)]())[_0x39fb15(0x17e)](0x0,0xd)[_0x39fb15(0x15c)](0xd,'0'))-parseInt((''+Math[_0x39fb15(0x173)](_0x5ab66b['requesttime']))[_0x39fb15(0x17e)](0x0,0xd)[_0x39fb15(0x15c)](0xd,'0'))>parseInt(this[_0x39fb15(0x168)]['timeout']))throw new AnnError(ApiError_1[_0x39fb15(0x158)]['TIMEOUT'],{'message':_0x39fb15(0x14b),'requesttime':_0x5ab66b[_0x39fb15(0x160)],'timestamp':Date[_0x39fb15(0x174)]()});if((((_0x1a7332=this[_0x39fb15(0x168)]['devices'][_0x5ab66b['device']])===null||_0x1a7332===void 0x0?void 0x0:_0x1a7332['logintimeout'])||0x0)>0x0&&Date[_0x39fb15(0x174)]()-Math[_0x39fb15(0x173)](_0x5ab66b['logintime'])>this[_0x39fb15(0x168)]['devices'][_0x5ab66b[_0x39fb15(0x172)]][_0x39fb15(0x178)])throw new AnnError(ApiError_1['ApiError'][_0x39fb15(0x171)]);if(!this['config'][_0x39fb15(0x154)][_0x5ab66b[_0x39fb15(0x172)]]||!this[_0x39fb15(0x168)][_0x39fb15(0x154)][_0x5ab66b[_0x39fb15(0x172)]][_0x39fb15(0x182)]||!this[_0x39fb15(0x168)]['devices'][_0x5ab66b[_0x39fb15(0x172)]][_0x39fb15(0x161)])throw new AnnError(ApiError_1[_0x39fb15(0x158)]['HEADERS_DEVICE']);if(_0x5ab66b[_0x39fb15(0x181)]&&_0x5ab66b[_0x39fb15(0x161)]!=this[_0x39fb15(0x161)](_0x5ab66b[_0x39fb15(0x181)],_0x5ab66b['device'],_0x5ab66b['logintime']))throw new AnnError(ApiError_1[_0x39fb15(0x158)][_0x39fb15(0x17a)]);return _0x3b9ccf['push'](_0x39fb15(0x165)+this[_0x39fb15(0x168)][_0x39fb15(0x154)][_0x5ab66b[_0x39fb15(0x172)]][_0x39fb15(0x182)]),(0x0,crypto_js_1[_0x39fb15(0x177)])(_0x3b9ccf[_0x39fb15(0x156)]()[_0x39fb15(0x17d)](''))[_0x39fb15(0x15e)]();}['checkcode'](_0x5def2d,_0x15a57e,_0x1a813c=Date[a12_0x5ebdf6(0x174)]()){var _0x1a3a0d=a12_0x5ebdf6,_0x13aaa4,_0x99929e,_0x47834d;if(!((_0x13aaa4=this[_0x1a3a0d(0x168)])===null||_0x13aaa4===void 0x0?void 0x0:_0x13aaa4[_0x1a3a0d(0x154)][_0x15a57e])||!((_0x47834d=(_0x99929e=this[_0x1a3a0d(0x168)])===null||_0x99929e===void 0x0?void 0x0:_0x99929e[_0x1a3a0d(0x154)][_0x15a57e])===null||_0x47834d===void 0x0?void 0x0:_0x47834d[_0x1a3a0d(0x161)]))throw new AnnError(ApiError_1['ApiError'][_0x1a3a0d(0x159)]);return(0x0,crypto_js_1[_0x1a3a0d(0x177)])(''+_0x5def2d+(0x0,crypto_js_1['MD5'])(''+_0x1a813c+(''+this[_0x1a3a0d(0x168)][_0x1a3a0d(0x154)][_0x15a57e][_0x1a3a0d(0x161)]))[_0x1a3a0d(0x15e)]())['toString']();}['checksign'](_0x1a5843={}){var _0x574f59=a12_0x5ebdf6;const _0x44bd3d=Object['fromEntries'](Object[_0x574f59(0x145)](_0x1a5843)['map'](_0x3f7f2e=>[_0x3f7f2e[0x0][_0x574f59(0x169)](),_0x3f7f2e[0x1]]));if(!(_0x44bd3d===null||_0x44bd3d===void 0x0?void 0x0:_0x44bd3d[_0x574f59(0x15d)]))throw new AnnError(ApiError_1['ApiError'][_0x574f59(0x150)],{'message':_0x574f59(0x149)});if((_0x44bd3d===null||_0x44bd3d===void 0x0?void 0x0:_0x44bd3d[_0x574f59(0x15d)])!=this[_0x574f59(0x144)](_0x44bd3d))throw new AnnError(ApiError_1['ApiError'][_0x574f59(0x166)],{'message':_0x574f59(0x149)});return!![];}};exports[a12_0x5ebdf6(0x14c)]=ApiService,__decorate([(0x0,core_1[a12_0x5ebdf6(0x15f)])(a12_0x5ebdf6(0x15b)),__metadata('design:type',Object)],ApiService[a12_0x5ebdf6(0x164)],'config',void 0x0),exports[a12_0x5ebdf6(0x14c)]=ApiService=__decorate([(0x0,core_1[a12_0x5ebdf6(0x140)])(),(0x0,core_1[a12_0x5ebdf6(0x167)])(core_1[a12_0x5ebdf6(0x17c)][a12_0x5ebdf6(0x16e)])],ApiService);function a12_0x9c08(){var _0x4b434e=['ApiService','3FATaPB','function','@midwayjs/core','HEADERS_LACK','password','search','map','devices','metadata','sort','fromEntries','ApiError','HEADERS_DEVICE','1074670aBFjOQ','anncicapi','padEnd','signature','toString','Config','requesttime','checkcode','decorate','timeout','prototype','secret=','HEADERS_SIGNATURE','Scope','config','toLowerCase','__metadata','crypto-js','101673qiUDsn','defineProperty','Singleton','object','264620uuNRsr','TIMEOUT_LOGINTIME','device','abs','now','207546eqbldJ','305924DvOsTg','MD5','logintimeout','length','HEADERS_CHECKCODE','undefined','ScopeEnum','join','substring','getOwnPropertyDescriptor','push','token','secret','21DxIKgH','logintime','Provide','1966296faYjTb','__decorate','113346nOTlYU','getsign','entries','apply','130hICejn','constructor','验证失败','../exception/ApiError','请求超时,请重试或改善网络环境'];a12_0x9c08=function(){return _0x4b434e;};return a12_0x9c08();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x62164=a13_0xb2ea;(function(_0x35ee35,_0x27ffd6){const _0x10ff43=a13_0xb2ea,_0xc30dc1=_0x35ee35();while(!![]){try{const _0x411276=parseInt(_0x10ff43(0x214))/0x1*(parseInt(_0x10ff43(0x1f1))/0x2)+parseInt(_0x10ff43(0x223))/0x3*(-parseInt(_0x10ff43(0x22c))/0x4)+parseInt(_0x10ff43(0x1f4))/0x5*(-parseInt(_0x10ff43(0x218))/0x6)+-parseInt(_0x10ff43(0x21c))/0x7*(parseInt(_0x10ff43(0x1df))/0x8)+parseInt(_0x10ff43(0x213))/0x9+-parseInt(_0x10ff43(0x22b))/0xa*(-parseInt(_0x10ff43(0x1e8))/0xb)+-parseInt(_0x10ff43(0x206))/0xc*(parseInt(_0x10ff43(0x1f5))/0xd);if(_0x411276===_0x27ffd6)break;else _0xc30dc1['push'](_0xc30dc1['shift']());}catch(_0x3e44ab){_0xc30dc1['push'](_0xc30dc1['shift']());}}}(a13_0xc20d,0x5aa36));const a13_0x4ee0e8=(function(){let _0x52e2f2=!![];return function(_0x23899d,_0x4d4172){const _0x5f22a4=_0x52e2f2?function(){const _0x3b322c=a13_0xb2ea;if(_0x4d4172){const _0x56e22d=_0x4d4172[_0x3b322c(0x20b)](_0x23899d,arguments);return _0x4d4172=null,_0x56e22d;}}:function(){};return _0x52e2f2=![],_0x5f22a4;};}()),a13_0x530f7a=a13_0x4ee0e8(this,function(){const _0x43f758=a13_0xb2ea;return a13_0x530f7a[_0x43f758(0x1ea)]()[_0x43f758(0x1f9)](_0x43f758(0x20a))['toString']()[_0x43f758(0x228)](a13_0x530f7a)[_0x43f758(0x1f9)](_0x43f758(0x20a));});a13_0x530f7a();'use strict';var __decorate=this&&this[a13_0x62164(0x20c)]||function(_0x3557cb,_0x30fb07,_0x2d45fe,_0x55b682){const _0x22bf2a=a13_0x62164;var _0x4fe9d9=arguments[_0x22bf2a(0x209)],_0x12474f=_0x4fe9d9<0x3?_0x30fb07:_0x55b682===null?_0x55b682=Object[_0x22bf2a(0x219)](_0x30fb07,_0x2d45fe):_0x55b682,_0x4be8d8;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x22bf2a(0x1f7))_0x12474f=Reflect[_0x22bf2a(0x1f2)](_0x3557cb,_0x30fb07,_0x2d45fe,_0x55b682);else{for(var _0x1805f0=_0x3557cb[_0x22bf2a(0x209)]-0x1;_0x1805f0>=0x0;_0x1805f0--)if(_0x4be8d8=_0x3557cb[_0x1805f0])_0x12474f=(_0x4fe9d9<0x3?_0x4be8d8(_0x12474f):_0x4fe9d9>0x3?_0x4be8d8(_0x30fb07,_0x2d45fe,_0x12474f):_0x4be8d8(_0x30fb07,_0x2d45fe))||_0x12474f;}return _0x4fe9d9>0x3&&_0x12474f&&Object['defineProperty'](_0x30fb07,_0x2d45fe,_0x12474f),_0x12474f;},__metadata=this&&this[a13_0x62164(0x20e)]||function(_0x294b87,_0x422439){const _0x2be8da=a13_0x62164;if(typeof Reflect===_0x2be8da(0x1ec)&&typeof Reflect[_0x2be8da(0x227)]===_0x2be8da(0x1f7))return Reflect[_0x2be8da(0x227)](_0x294b87,_0x422439);},__param=this&&this[a13_0x62164(0x210)]||function(_0xafea11,_0x36b9e1){return function(_0x1e7cf1,_0xcf8452){_0x36b9e1(_0x1e7cf1,_0xcf8452,_0xafea11);};};function a13_0xb2ea(_0x4265a2,_0x2a7285){const _0x8e20c4=a13_0xc20d();return a13_0xb2ea=function(_0x530f7a,_0x4ee0e8){_0x530f7a=_0x530f7a-0x1de;let _0xc20dd6=_0x8e20c4[_0x530f7a];return _0xc20dd6;},a13_0xb2ea(_0x4265a2,_0x2a7285);}Object['defineProperty'](exports,a13_0x62164(0x22e),{'value':!![]}),exports[a13_0x62164(0x1f8)]=exports[a13_0x62164(0x225)]=void 0x0;const path_1=require(a13_0x62164(0x20d)),fs_1=require('fs'),core_1=require(a13_0x62164(0x212)),core_2=require('@midwayjs/core'),core_3=require(a13_0x62164(0x212)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a13_0x62164(0x1ee)](_0x4aeefc){const _0x279633=a13_0x62164,_0x4b464f=(0x0,getRoutes_1[_0x279633(0x1e3)])(_0x4aeefc),_0x4dcc90=[];for(let _0xd37165 in _0x4b464f){for(let _0x561048 in _0x4b464f[_0xd37165]['routes']){let _0x251c73=_0x4b464f[_0xd37165][_0x279633(0x222)][_0x561048],_0x5254a2=[];for(let _0x38b517 in _0x251c73[_0x279633(0x202)]){_0x5254a2['push'](_0x251c73[_0x279633(0x202)][_0x38b517]);}_0x4dcc90[_0x279633(0x1fb)]({'title':_0x4b464f[_0xd37165][_0x279633(0x21d)]+':'+_0x251c73[_0x279633(0x21d)],'prefix':_0x4b464f[_0xd37165]['prefix'],'router':_0x251c73['route'],'method':_0x251c73[_0x279633(0x205)],'describe':_0x251c73['description']||'','filepath':_0x4b464f[_0xd37165][_0x279633(0x1e6)]||'','request':_0x5254a2});}}const _0x494f95=(0x0,path_1['join'])(__dirname,_0x279633(0x1e2));return(0x0,fs_1[_0x279633(0x21b)])(_0x494f95,{'encoding':_0x279633(0x207)})[_0x279633(0x211)](/__res__/g,_0x279633(0x232))['replace'](_0x279633(0x204),JSON[_0x279633(0x1e4)](_0x4dcc90))[_0x279633(0x211)]('__devices__',JSON['stringify'](this[_0x279633(0x20f)][_0x279633(0x1fe)]));}};function a13_0xc20d(){const _0xd9f7a8=['1ZMjgzo','design:returntype','ScopeEnum','prototype','18apDRhM','getOwnPropertyDescriptor','application/javascript;\x20charset=utf-8','readFileSync','35ZcuYMh','summary','content-type','Environment','existsSync','public,\x20max-age=604800','routes','5277pExNmg','/apitest','ApitestService','set','metadata','constructor','isDevelopmentEnvironment','url','840CxaLLO','100dBsBrQ','apiteststatic','__esModule','Controller','cache-control','substring','/apiteststatic/','apitest','apitesthtml','445256OoOQiT','Scope','Inject','../../public/index.html','getRoutes','stringify','Provide','filepath','design:paramtypes','60159TywRrG','apitestmodule','toString','Get','object','Config','apidoc','/index.html','module','375548uFsxBY','decorate','design:type','383865NlGjtt','1739842tOOKDC','MidwayEnvironmentService','function','ApitestStaticController','search','/apitest-:module','push','Request','join','devices','text/css;\x20charset=utf-8','Singleton','anncicapi','request','ctx','__apiList__','method','36MzLAML','utf-8','extname','length','(((.+)+)+)+$','apply','__decorate','path','__metadata','config','__param','replace','@midwayjs/core','6103485sSxQyH'];a13_0xc20d=function(){return _0xd9f7a8;};return a13_0xc20d();}exports[a13_0x62164(0x225)]=ApitestService,__decorate([(0x0,core_3[a13_0x62164(0x1ed)])(a13_0x62164(0x201)),__metadata(a13_0x62164(0x1f3),Object)],ApitestService[a13_0x62164(0x217)],a13_0x62164(0x20f),void 0x0),exports[a13_0x62164(0x225)]=ApitestService=__decorate([(0x0,core_2[a13_0x62164(0x1e5)])(a13_0x62164(0x233)),(0x0,core_3[a13_0x62164(0x1e0)])(core_3[a13_0x62164(0x216)][a13_0x62164(0x200)])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a13_0x62164(0x1de)](){const _0xb7135b=a13_0x62164;if(this[_0xb7135b(0x233)]){const _0x4e11e3={'module':![]};return this[_0xb7135b(0x21f)][_0xb7135b(0x229)]()&&(_0x4e11e3[_0xb7135b(0x1e6)]=!![]),await this[_0xb7135b(0x225)][_0xb7135b(0x1ee)](_0x4e11e3);}return'';}async[a13_0x62164(0x1e9)](_0x4d5aab){const _0x1ef8af=a13_0x62164;if(this[_0x1ef8af(0x233)]){const _0x213b03={'module':_0x4d5aab};return this[_0x1ef8af(0x21f)]['isDevelopmentEnvironment']()&&(_0x213b03['filepath']=!![]),await this['ApitestService'][_0x1ef8af(0x1ee)](_0x213b03);}return'';}async[a13_0x62164(0x22d)](){const _0x441877=a13_0x62164;if((0x0,path_1[_0x441877(0x208)])(this[_0x441877(0x203)][_0x441877(0x202)]['url'])){var _0x1ef694=(0x0,path_1[_0x441877(0x1fd)])(__dirname,'../../public/'+this[_0x441877(0x203)]['request'][_0x441877(0x22a)][_0x441877(0x211)](_0x441877(0x232),'/'));if(_0x1ef694[_0x441877(0x231)](_0x1ef694[_0x441877(0x209)]-0xb)!=_0x441877(0x1ef)){this[_0x441877(0x203)]['set'](_0x441877(0x230),_0x441877(0x221));if((0x0,path_1[_0x441877(0x208)])(this[_0x441877(0x203)][_0x441877(0x202)][_0x441877(0x22a)])=='.js')this[_0x441877(0x203)][_0x441877(0x226)]('content-type',_0x441877(0x21a));else(0x0,path_1['extname'])(this[_0x441877(0x203)][_0x441877(0x202)]['url'])=='.css'&&this[_0x441877(0x203)][_0x441877(0x226)](_0x441877(0x21e),_0x441877(0x1ff));return(0x0,fs_1[_0x441877(0x220)])(_0x1ef694)&&(0x0,fs_1[_0x441877(0x21b)])(_0x1ef694,{'encoding':_0x441877(0x207)});}}return'';}};exports[a13_0x62164(0x1f8)]=ApitestStaticController,__decorate([(0x0,core_3[a13_0x62164(0x1e1)])(),__metadata(a13_0x62164(0x1f3),Object)],ApitestStaticController[a13_0x62164(0x217)],'ctx',void 0x0),__decorate([(0x0,core_3[a13_0x62164(0x1e1)])(),__metadata(a13_0x62164(0x1f3),core_1[a13_0x62164(0x1f6)])],ApitestStaticController['prototype'],a13_0x62164(0x21f),void 0x0),__decorate([(0x0,core_3[a13_0x62164(0x1e1)])(),__metadata(a13_0x62164(0x1f3),ApitestService)],ApitestStaticController['prototype'],a13_0x62164(0x225),void 0x0),__decorate([(0x0,core_3[a13_0x62164(0x1ed)])(a13_0x62164(0x233)),__metadata(a13_0x62164(0x1f3),Boolean)],ApitestStaticController[a13_0x62164(0x217)],a13_0x62164(0x233),void 0x0),__decorate([(0x0,core_3[a13_0x62164(0x1ed)])(a13_0x62164(0x201)),__metadata(a13_0x62164(0x1f3),Object)],ApitestStaticController[a13_0x62164(0x217)],a13_0x62164(0x20f),void 0x0),__decorate([(0x0,core_2[a13_0x62164(0x1eb)])(a13_0x62164(0x224)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a13_0x62164(0x215),Promise)],ApitestStaticController['prototype'],a13_0x62164(0x1de),null),__decorate([(0x0,core_2[a13_0x62164(0x1eb)])(a13_0x62164(0x1fa)),__param(0x0,(0x0,core_2['Param'])(a13_0x62164(0x1f0))),__metadata(a13_0x62164(0x1f3),Function),__metadata(a13_0x62164(0x1e7),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a13_0x62164(0x1e9),null),__decorate([(0x0,core_2[a13_0x62164(0x1eb)])('/apiteststatic/*'),__metadata('design:type',Function),__metadata(a13_0x62164(0x1e7),[]),__metadata(a13_0x62164(0x215),Promise)],ApitestStaticController['prototype'],a13_0x62164(0x22d),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a13_0x62164(0x22f)])('/'),(0x0,core_3[a13_0x62164(0x1e0)])(core_3[a13_0x62164(0x216)][a13_0x62164(0x1fc)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14_0x23b341=a14_0x58a7;(function(_0x47742a,_0x67b90a){const _0x1b5b04=a14_0x58a7,_0x3db874=_0x47742a();while(!![]){try{const _0x2b2ff0=-parseInt(_0x1b5b04(0x22d))/0x1*(-parseInt(_0x1b5b04(0x1ed))/0x2)+-parseInt(_0x1b5b04(0x230))/0x3+parseInt(_0x1b5b04(0x206))/0x4+parseInt(_0x1b5b04(0x221))/0x5*(parseInt(_0x1b5b04(0x208))/0x6)+parseInt(_0x1b5b04(0x1fa))/0x7+parseInt(_0x1b5b04(0x21d))/0x8*(parseInt(_0x1b5b04(0x21c))/0x9)+-parseInt(_0x1b5b04(0x1ee))/0xa;if(_0x2b2ff0===_0x67b90a)break;else _0x3db874['push'](_0x3db874['shift']());}catch(_0x28ba7e){_0x3db874['push'](_0x3db874['shift']());}}}(a14_0x5dad,0x39938));function a14_0x5dad(){const _0x516953=['header','endsWith','columns','ExcelService','toString','exceljs','@midwayjs/core','isNumber','cellCount','getColumn','values','onRead','model','frozen','value','stream','__esModule','1988775UgNRzd','16OqeNvH','push','keys','koa-send','45OmIJeh','addWorksheet','constructor','app','apply','readFile','rowCount','App','YYYY/MM/DD','getCell','findRows','replace','1dLvXxd','Sheet\x201','key','297234JraMJz','col','xls','metadata','substring','xlsx','search','writeFile','mkdirSync','decorate','parse','function','489224lBYMkn','14337660DIBYMe','startsWith','getRow','getWorksheet','Provide','(((.+)+)+)+$','\x20is\x20read\x20fail','addRow','handler','Scope','export','Api\x20Excel\x20Error:\x20','3193554RweXZf','length','format','set','object','onWrite','getOwnPropertyDescriptor','.xlsx','existsSync','worksheets','ExcelStream','defineProperty','1683956vzflfc','Workbook','136602BrZIDq','getAppDir','./ExcelStream'];a14_0x5dad=function(){return _0x516953;};return a14_0x5dad();}const a14_0x31a3fc=(function(){let _0x4d6273=!![];return function(_0x5169b6,_0x52728a){const _0x5bba73=_0x4d6273?function(){const _0x4869a0=a14_0x58a7;if(_0x52728a){const _0x1405a4=_0x52728a[_0x4869a0(0x225)](_0x5169b6,arguments);return _0x52728a=null,_0x1405a4;}}:function(){};return _0x4d6273=![],_0x5bba73;};}()),a14_0x2a0a87=a14_0x31a3fc(this,function(){const _0x534eca=a14_0x58a7;return a14_0x2a0a87[_0x534eca(0x20f)]()[_0x534eca(0x236)](_0x534eca(0x1f3))[_0x534eca(0x20f)]()[_0x534eca(0x223)](a14_0x2a0a87)[_0x534eca(0x236)](_0x534eca(0x1f3));});a14_0x2a0a87();'use strict';var __decorate=this&&this['__decorate']||function(_0x40f32a,_0x10c307,_0x2ad395,_0x16a13e){const _0x130850=a14_0x58a7;var _0x4e292b=arguments[_0x130850(0x1fb)],_0x54d83e=_0x4e292b<0x3?_0x10c307:_0x16a13e===null?_0x16a13e=Object[_0x130850(0x200)](_0x10c307,_0x2ad395):_0x16a13e,_0x55da40;if(typeof Reflect===_0x130850(0x1fe)&&typeof Reflect['decorate']==='function')_0x54d83e=Reflect[_0x130850(0x1ea)](_0x40f32a,_0x10c307,_0x2ad395,_0x16a13e);else{for(var _0x2fa62d=_0x40f32a[_0x130850(0x1fb)]-0x1;_0x2fa62d>=0x0;_0x2fa62d--)if(_0x55da40=_0x40f32a[_0x2fa62d])_0x54d83e=(_0x4e292b<0x3?_0x55da40(_0x54d83e):_0x4e292b>0x3?_0x55da40(_0x10c307,_0x2ad395,_0x54d83e):_0x55da40(_0x10c307,_0x2ad395))||_0x54d83e;}return _0x4e292b>0x3&&_0x54d83e&&Object[_0x130850(0x205)](_0x10c307,_0x2ad395,_0x54d83e),_0x54d83e;},__metadata=this&&this['__metadata']||function(_0x4a3983,_0x14c902){const _0x2beefc=a14_0x58a7;if(typeof Reflect===_0x2beefc(0x1fe)&&typeof Reflect[_0x2beefc(0x233)]===_0x2beefc(0x1ec))return Reflect['metadata'](_0x4a3983,_0x14c902);};Object[a14_0x23b341(0x205)](exports,a14_0x23b341(0x21b),{'value':!![]}),exports[a14_0x23b341(0x20e)]=void 0x0;function a14_0x58a7(_0x5234cd,_0x3d65d3){const _0x44231a=a14_0x5dad();return a14_0x58a7=function(_0x2a0a87,_0x31a3fc){_0x2a0a87=_0x2a0a87-0x1e9;let _0x5dad59=_0x44231a[_0x2a0a87];return _0x5dad59;},a14_0x58a7(_0x5234cd,_0x3d65d3);}const fs=require('fs'),exceljs=require(a14_0x23b341(0x210)),koasend=require(a14_0x23b341(0x220)),core_1=require(a14_0x23b341(0x211)),ExcelStream_1=require(a14_0x23b341(0x20a));let ExcelService=class ExcelService{async[a14_0x23b341(0x1eb)](_0x203840,_0x581d82,_0x2d159d=[0x0]){const _0x452a3d=a14_0x23b341;var _0x291b4f,_0x2e2376;const _0x1e6671=new exceljs[(_0x452a3d(0x207))](),_0x329786=[];let _0x4c7047=_0x203840[_0x452a3d(0x22c)](/(\\|\/)/g,'/')[_0x452a3d(0x22c)](/\/{2,}/g,'/');!(_0x4c7047===null||_0x4c7047===void 0x0?void 0x0:_0x4c7047[_0x452a3d(0x1ef)]('/'))&&(_0x4c7047=this['app']['getAppDir']()+'/'+_0x4c7047);try{await _0x1e6671['xlsx'][_0x452a3d(0x226)](_0x4c7047);}catch(_0xa6977){return console['log'](_0x452a3d(0x1f9)+_0x4c7047+_0x452a3d(0x1f4)),_0x329786;}for(const _0x1168fb of _0x2d159d){const _0x3e38d1=lodash[_0x452a3d(0x212)](_0x1168fb)?((_0x291b4f=_0x1e6671[_0x452a3d(0x203)])===null||_0x291b4f===void 0x0?void 0x0:_0x291b4f[_0x1168fb])||undefined:_0x1e6671[_0x452a3d(0x1f1)](_0x1168fb);if(_0x3e38d1){var _0x5173be=0x1;const _0x459037=_0x3e38d1[_0x452a3d(0x1f0)](0x1),_0x4f6dd8=await new Promise(_0x495c95=>{const _0x35744a={};_0x459037['eachCell']((_0x44c531,_0x200bb9)=>{const _0x348ebc=a14_0x58a7;for(const _0x2eace6 of _0x581d82){if(_0x44c531['value']==_0x2eace6[_0x348ebc(0x20b)])_0x5173be=0x2,_0x35744a[_0x2eace6[_0x348ebc(0x22f)]]={'header':_0x44c531['col'],'handler':(_0x2eace6===null||_0x2eace6===void 0x0?void 0x0:_0x2eace6[_0x348ebc(0x216)])||(_0x2eace6===null||_0x2eace6===void 0x0?void 0x0:_0x2eace6['handler'])};else{if(!_0x35744a[_0x2eace6[_0x348ebc(0x22f)]])try{const _0x339004=_0x459037&&_0x459037['getCell'](_0x2eace6[_0x348ebc(0x20b)]);_0x339004&&(_0x35744a[_0x2eace6['key']]={'header':_0x339004[_0x348ebc(0x231)],'handler':(_0x2eace6===null||_0x2eace6===void 0x0?void 0x0:_0x2eace6['onRead'])||(_0x2eace6===null||_0x2eace6===void 0x0?void 0x0:_0x2eace6[_0x348ebc(0x1f6)])});}catch{}}}_0x459037[_0x348ebc(0x213)]==_0x200bb9&&_0x495c95(_0x35744a);});});_0x241082:for(const _0xf4a76c of _0x3e38d1[_0x452a3d(0x22b)](_0x5173be,_0x3e38d1[_0x452a3d(0x227)])){if(typeof(_0xf4a76c===null||_0xf4a76c===void 0x0?void 0x0:_0xf4a76c[_0x452a3d(0x22a)])!=_0x452a3d(0x1ec))continue _0x241082;const _0x28c402={};_0x45a72f:for(const _0x4ac37d in _0x4f6dd8){if(_0x4f6dd8[_0x4ac37d][_0x452a3d(0x20b)]){const _0x12072e=_0xf4a76c[_0x452a3d(0x22a)](_0x4f6dd8[_0x4ac37d][_0x452a3d(0x20b)]);if(!_0x12072e)continue _0x45a72f;try{_0x12072e[_0x452a3d(0x20f)]();}catch(_0x30b3e4){_0x12072e[_0x452a3d(0x20f)]=()=>{const _0x64b96f=_0x452a3d;var _0xcef204;return''+(((_0xcef204=_0x12072e===null||_0x12072e===void 0x0?void 0x0:_0x12072e[_0x64b96f(0x217)])===null||_0xcef204===void 0x0?void 0x0:_0xcef204['value'])||'');};}typeof((_0x2e2376=_0x4f6dd8[_0x4ac37d])===null||_0x2e2376===void 0x0?void 0x0:_0x2e2376[_0x452a3d(0x1f6)])==_0x452a3d(0x1ec)?_0x28c402[_0x4ac37d]=await _0x4f6dd8[_0x4ac37d][_0x452a3d(0x1f6)](lodash[_0x452a3d(0x1fd)]({},_0x4ac37d,(_0x12072e===null||_0x12072e===void 0x0?void 0x0:_0x12072e['toString']())||''),_0x12072e[_0x452a3d(0x217)]):_0x28c402[_0x4ac37d]=(_0x12072e===null||_0x12072e===void 0x0?void 0x0:_0x12072e[_0x452a3d(0x20f)]())||'';}}Object[_0x452a3d(0x21f)](_0x28c402)['length']>0x0&&Object[_0x452a3d(0x215)](_0x28c402)['filter'](_0x6012c4=>_0x6012c4!='')[_0x452a3d(0x1fb)]>0x0&&_0x329786[_0x452a3d(0x21e)](_0x28c402);}}}return _0x329786;}async[a14_0x23b341(0x1f8)](_0x326b9a,_0xaf964d,_0x50a598,_0xda7207,_0x10a4dd){const _0xd0197f=a14_0x23b341;var _0x1eded0,_0x1ce250,_0x5273ba;const _0xe65770=new exceljs['Workbook'](),_0x547aaf={},_0x5dd626=[],_0x3d72a2=_0xe65770[_0xd0197f(0x222)](_0xd0197f(0x22e),{'views':[{'state':_0xd0197f(0x218),'ySplit':0x1}]});for(const _0x2d1263 in _0xaf964d){_0x547aaf[_0xaf964d[_0x2d1263]['key']]=_0xaf964d[_0x2d1263][_0xd0197f(0x20b)],_0x5dd626[_0xd0197f(0x21e)]({'header':_0xaf964d[_0x2d1263]['header'],'key':(_0x1eded0=_0xaf964d[_0x2d1263])===null||_0x1eded0===void 0x0?void 0x0:_0x1eded0[_0xd0197f(0x22f)]['replace'](/\./g,'_')});}_0x3d72a2[_0xd0197f(0x20d)]=_0x5dd626;for(const _0x5d43c1 in _0x50a598){const _0x7bde2f=_0x50a598[_0x5d43c1],_0xf8f374=_0x3d72a2[_0xd0197f(0x1f5)]({});for(let _0x3c07b4 in _0xaf964d){const _0x19d2c6=_0xaf964d[_0x3c07b4][_0xd0197f(0x22f)][_0xd0197f(0x22c)](/\./g,'_'),_0x477dd3=_0x3d72a2[_0xd0197f(0x214)](_0x19d2c6),_0x5b2f2b=_0xf8f374===null||_0xf8f374===void 0x0?void 0x0:_0xf8f374[_0xd0197f(0x22a)](_0x19d2c6);if(typeof((_0x1ce250=_0xaf964d[_0x3c07b4])===null||_0x1ce250===void 0x0?void 0x0:_0x1ce250[_0xd0197f(0x1ff)])==_0xd0197f(0x1ec))_0x5b2f2b[_0xd0197f(0x219)]=await _0xaf964d[_0x3c07b4][_0xd0197f(0x1ff)](_0x7bde2f,{'row':_0xf8f374,'col':_0x477dd3,'cell':_0x5b2f2b,'sheet':_0x3d72a2})||'';else typeof((_0x5273ba=_0xaf964d[_0x3c07b4])===null||_0x5273ba===void 0x0?void 0x0:_0x5273ba[_0xd0197f(0x1f6)])==_0xd0197f(0x1ec)?_0x5b2f2b[_0xd0197f(0x219)]=await _0xaf964d[_0x3c07b4][_0xd0197f(0x1f6)](_0x7bde2f,{'row':_0xf8f374,'col':_0x477dd3,'cell':_0x5b2f2b,'sheet':_0x3d72a2})||'':_0x5b2f2b[_0xd0197f(0x219)]=lodash['get'](_0x7bde2f,_0xaf964d[_0x3c07b4][_0xd0197f(0x22f)],'');}}typeof _0x10a4dd==_0xd0197f(0x1ec)&&await _0x10a4dd({'workbook':_0xe65770,'worksheet':_0x3d72a2});let _0xb12a17='';const _0x8c1ded=_0x326b9a+_0xd0197f(0x201);if(_0xda7207&&_0xda7207['startsWith']('/'))_0xb12a17=''+_0xda7207;else _0xda7207&&!_0xda7207[_0xd0197f(0x1ef)]('/')&&!_0xda7207[_0xd0197f(0x1ef)]('\x5c')?_0xb12a17=this['app'][_0xd0197f(0x209)]()+'/'+_0xda7207:_0xb12a17=this[_0xd0197f(0x224)]['getAppDir']()+'/public/xlsx/'+dayjs()[_0xd0197f(0x1fc)](_0xd0197f(0x229));return(_0xb12a17[_0xd0197f(0x20c)]('/')||_0xb12a17[_0xd0197f(0x20c)]('\x5c'))&&(_0xb12a17=_0xb12a17[_0xd0197f(0x234)](0x0,_0xb12a17[_0xd0197f(0x1fb)]-0x1)),_0xb12a17=_0xb12a17[_0xd0197f(0x22c)](/(\\|\/)/g,'/')[_0xd0197f(0x22c)](/\/{2,}/g,'/'),!fs[_0xd0197f(0x202)](_0xb12a17)&&fs[_0xd0197f(0x1e9)](_0xb12a17,{'recursive':!![]}),await _0xe65770[_0xd0197f(0x235)][_0xd0197f(0x237)]((_0xb12a17+'/'+_0x8c1ded)[_0xd0197f(0x22c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x8c1ded,'filepath':(_0xb12a17[_0xd0197f(0x234)]((''+this[_0xd0197f(0x224)][_0xd0197f(0x209)]())[_0xd0197f(0x1fb)])+'/'+_0x8c1ded)[_0xd0197f(0x22c)](/(\\|\/)/g,'/')[_0xd0197f(0x22c)](/\/{2,}/g,'/')};}async[a14_0x23b341(0x21a)](_0x323556,_0x3125b5={'suffix':[a14_0x23b341(0x232),a14_0x23b341(0x235)]}){const _0x3c23fa=a14_0x23b341;return await ExcelStream_1[_0x3c23fa(0x204)]['instance'](_0x323556,_0x3125b5);}async['download'](_0x5dc82a,_0x18d553){return await koasend(_0x5dc82a,''+_0x18d553);}};exports[a14_0x23b341(0x20e)]=ExcelService,__decorate([(0x0,core_1[a14_0x23b341(0x228)])(),__metadata('design:type',Object)],ExcelService['prototype'],a14_0x23b341(0x224),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1[a14_0x23b341(0x1f2)])(),(0x0,core_1[a14_0x23b341(0x1f7)])(core_1['ScopeEnum']['Singleton'])],ExcelService);
|
|
1
|
+
function a14_0xb3dd(_0x1f3029,_0x16db82){const _0xdc1d26=a14_0x5532();return a14_0xb3dd=function(_0xa07855,_0x567e14){_0xa07855=_0xa07855-0x199;let _0x553231=_0xdc1d26[_0xa07855];return _0x553231;},a14_0xb3dd(_0x1f3029,_0x16db82);}const a14_0x1c8ae5=a14_0xb3dd;function a14_0x5532(){const _0x72eac9=['log','16TgDbGT','YYYY/MM/DD','xlsx','stream','prototype','get','length','ScopeEnum','handler','apply','keys','decorate','./ExcelStream','__decorate','736184NmhHJb','getCell','search','download','readFile','isNumber','621405EglyEq','getAppDir','startsWith','475338okuhwo','8484dyQPva','header','ExcelService','2135ViRodb','format','exceljs','substring','getRow','constructor','push','endsWith','set','toString','addRow','filter','ExcelStream','col','defineProperty','\x20is\x20read\x20fail','Sheet\x201','Scope','onRead','value','(((.+)+)+)+$','.xlsx','model','replace','object','metadata','rowCount','3283455CclGPo','app','onWrite','getColumn','function','export','instance','Api\x20Excel\x20Error:\x20','Workbook','values','827235rlxPhH','design:type','key','findRows','13350PCIbcb','App','28FfNrKx','Provide','/public/xlsx/','eachCell','Singleton','worksheets','getOwnPropertyDescriptor','columns','getWorksheet','xls'];a14_0x5532=function(){return _0x72eac9;};return a14_0x5532();}(function(_0x1320ab,_0x5c6627){const _0x37955e=a14_0xb3dd,_0x2d666f=_0x1320ab();while(!![]){try{const _0x191a61=-parseInt(_0x37955e(0x1b4))/0x1+parseInt(_0x37955e(0x1d3))/0x2+parseInt(_0x37955e(0x1dc))/0x3*(parseInt(_0x37955e(0x1ba))/0x4)+parseInt(_0x37955e(0x1e0))/0x5*(-parseInt(_0x37955e(0x1dd))/0x6)+parseInt(_0x37955e(0x1aa))/0x7+parseInt(_0x37955e(0x1c5))/0x8*(parseInt(_0x37955e(0x1d9))/0x9)+parseInt(_0x37955e(0x1b8))/0xa;if(_0x191a61===_0x5c6627)break;else _0x2d666f['push'](_0x2d666f['shift']());}catch(_0xd3e0a7){_0x2d666f['push'](_0x2d666f['shift']());}}}(a14_0x5532,0x9fd63));const a14_0x567e14=(function(){let _0x59a505=!![];return function(_0x3fa042,_0x215fe7){const _0x537cb9=_0x59a505?function(){const _0x7e053=a14_0xb3dd;if(_0x215fe7){const _0x20232c=_0x215fe7[_0x7e053(0x1ce)](_0x3fa042,arguments);return _0x215fe7=null,_0x20232c;}}:function(){};return _0x59a505=![],_0x537cb9;};}()),a14_0xa07855=a14_0x567e14(this,function(){const _0xe8c9bf=a14_0xb3dd;return a14_0xa07855[_0xe8c9bf(0x1e9)]()[_0xe8c9bf(0x1d5)]('(((.+)+)+)+$')['toString']()[_0xe8c9bf(0x1e5)](a14_0xa07855)['search'](_0xe8c9bf(0x1a3));});a14_0xa07855();'use strict';var __decorate=this&&this[a14_0x1c8ae5(0x1d2)]||function(_0xc88f4c,_0x181374,_0x562f17,_0x55a8fd){const _0xaf67fc=a14_0x1c8ae5;var _0x160966=arguments[_0xaf67fc(0x1cb)],_0x3eca51=_0x160966<0x3?_0x181374:_0x55a8fd===null?_0x55a8fd=Object[_0xaf67fc(0x1c0)](_0x181374,_0x562f17):_0x55a8fd,_0x307ba5;if(typeof Reflect===_0xaf67fc(0x1a7)&&typeof Reflect['decorate']===_0xaf67fc(0x1ae))_0x3eca51=Reflect[_0xaf67fc(0x1d0)](_0xc88f4c,_0x181374,_0x562f17,_0x55a8fd);else{for(var _0x575227=_0xc88f4c[_0xaf67fc(0x1cb)]-0x1;_0x575227>=0x0;_0x575227--)if(_0x307ba5=_0xc88f4c[_0x575227])_0x3eca51=(_0x160966<0x3?_0x307ba5(_0x3eca51):_0x160966>0x3?_0x307ba5(_0x181374,_0x562f17,_0x3eca51):_0x307ba5(_0x181374,_0x562f17))||_0x3eca51;}return _0x160966>0x3&&_0x3eca51&&Object[_0xaf67fc(0x19d)](_0x181374,_0x562f17,_0x3eca51),_0x3eca51;},__metadata=this&&this['__metadata']||function(_0x1e01a3,_0x4d8793){const _0x27c5d3=a14_0x1c8ae5;if(typeof Reflect===_0x27c5d3(0x1a7)&&typeof Reflect[_0x27c5d3(0x1a8)]===_0x27c5d3(0x1ae))return Reflect[_0x27c5d3(0x1a8)](_0x1e01a3,_0x4d8793);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a14_0x1c8ae5(0x1df)]=void 0x0;const fs=require('fs'),exceljs=require(a14_0x1c8ae5(0x1e2)),koasend=require('koa-send'),core_1=require('@midwayjs/core'),ExcelStream_1=require(a14_0x1c8ae5(0x1d1));let ExcelService=class ExcelService{async['parse'](_0x4177c5,_0x251f14,_0x49857f=[0x0]){const _0x1afb08=a14_0x1c8ae5;var _0x8509fe,_0x485589;const _0x5debef=new exceljs[(_0x1afb08(0x1b2))](),_0x42fcc4=[];let _0x3ebee6=_0x4177c5[_0x1afb08(0x1a6)](/(\\|\/)/g,'/')[_0x1afb08(0x1a6)](/\/{2,}/g,'/');!(_0x3ebee6===null||_0x3ebee6===void 0x0?void 0x0:_0x3ebee6[_0x1afb08(0x1db)]('/'))&&(_0x3ebee6=this[_0x1afb08(0x1ab)][_0x1afb08(0x1da)]()+'/'+_0x3ebee6);try{await _0x5debef[_0x1afb08(0x1c7)][_0x1afb08(0x1d7)](_0x3ebee6);}catch(_0x38ec86){return console[_0x1afb08(0x1c4)](_0x1afb08(0x1b1)+_0x3ebee6+_0x1afb08(0x19e)),_0x42fcc4;}for(const _0x2525cf of _0x49857f){const _0x279862=lodash[_0x1afb08(0x1d8)](_0x2525cf)?((_0x8509fe=_0x5debef[_0x1afb08(0x1bf)])===null||_0x8509fe===void 0x0?void 0x0:_0x8509fe[_0x2525cf])||undefined:_0x5debef[_0x1afb08(0x1c2)](_0x2525cf);if(_0x279862){var _0xc03979=0x1;const _0x1ffde2=_0x279862[_0x1afb08(0x1e4)](0x1),_0x35e292=await new Promise(_0x43fcca=>{const _0x937952=_0x1afb08,_0x2582ad={};_0x1ffde2[_0x937952(0x1bd)]((_0x329a67,_0x3adb3d)=>{const _0x2fb03b=_0x937952;for(const _0x4c4f86 of _0x251f14){if(_0x329a67[_0x2fb03b(0x1a2)]==_0x4c4f86[_0x2fb03b(0x1de)])_0xc03979=0x2,_0x2582ad[_0x4c4f86[_0x2fb03b(0x1b6)]]={'header':_0x329a67[_0x2fb03b(0x19c)],'handler':(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86['onRead'])||(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86[_0x2fb03b(0x1cd)])};else{if(!_0x2582ad[_0x4c4f86['key']])try{const _0x15e9c4=_0x1ffde2&&_0x1ffde2[_0x2fb03b(0x1d4)](_0x4c4f86[_0x2fb03b(0x1de)]);_0x15e9c4&&(_0x2582ad[_0x4c4f86[_0x2fb03b(0x1b6)]]={'header':_0x15e9c4[_0x2fb03b(0x19c)],'handler':(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86[_0x2fb03b(0x1a1)])||(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86[_0x2fb03b(0x1cd)])});}catch{}}}_0x1ffde2['cellCount']==_0x3adb3d&&_0x43fcca(_0x2582ad);});});_0x343d94:for(const _0xf71e75 of _0x279862[_0x1afb08(0x1b7)](_0xc03979,_0x279862[_0x1afb08(0x1a9)])){if(typeof(_0xf71e75===null||_0xf71e75===void 0x0?void 0x0:_0xf71e75[_0x1afb08(0x1d4)])!=_0x1afb08(0x1ae))continue _0x343d94;const _0x5a2322={};_0x323eba:for(const _0x2fb82 in _0x35e292){if(_0x35e292[_0x2fb82][_0x1afb08(0x1de)]){const _0x3c855c=_0xf71e75['getCell'](_0x35e292[_0x2fb82][_0x1afb08(0x1de)]);if(!_0x3c855c)continue _0x323eba;try{_0x3c855c['toString']();}catch(_0x30808d){_0x3c855c[_0x1afb08(0x1e9)]=()=>{const _0x121541=_0x1afb08;var _0x31d4d6;return''+(((_0x31d4d6=_0x3c855c===null||_0x3c855c===void 0x0?void 0x0:_0x3c855c[_0x121541(0x1a5)])===null||_0x31d4d6===void 0x0?void 0x0:_0x31d4d6['value'])||'');};}typeof((_0x485589=_0x35e292[_0x2fb82])===null||_0x485589===void 0x0?void 0x0:_0x485589['handler'])==_0x1afb08(0x1ae)?_0x5a2322[_0x2fb82]=await _0x35e292[_0x2fb82][_0x1afb08(0x1cd)](lodash[_0x1afb08(0x1e8)]({},_0x2fb82,(_0x3c855c===null||_0x3c855c===void 0x0?void 0x0:_0x3c855c[_0x1afb08(0x1e9)]())||''),_0x3c855c[_0x1afb08(0x1a5)]):_0x5a2322[_0x2fb82]=(_0x3c855c===null||_0x3c855c===void 0x0?void 0x0:_0x3c855c[_0x1afb08(0x1e9)]())||'';}}Object[_0x1afb08(0x1cf)](_0x5a2322)['length']>0x0&&Object[_0x1afb08(0x1b3)](_0x5a2322)[_0x1afb08(0x19a)](_0x373636=>_0x373636!='')['length']>0x0&&_0x42fcc4['push'](_0x5a2322);}}}return _0x42fcc4;}async[a14_0x1c8ae5(0x1af)](_0x120877,_0xe72680,_0x52f7b5,_0xd78b73,_0x58ef00){const _0x581a52=a14_0x1c8ae5;var _0x25228d,_0x1efe70,_0x11553e;const _0x31ec5b=new exceljs[(_0x581a52(0x1b2))](),_0x328366={},_0x292330=[],_0x5b22a1=_0x31ec5b['addWorksheet'](_0x581a52(0x19f),{'views':[{'state':'frozen','ySplit':0x1}]});for(const _0x501e08 in _0xe72680){_0x328366[_0xe72680[_0x501e08][_0x581a52(0x1b6)]]=_0xe72680[_0x501e08][_0x581a52(0x1de)],_0x292330[_0x581a52(0x1e6)]({'header':_0xe72680[_0x501e08]['header'],'key':(_0x25228d=_0xe72680[_0x501e08])===null||_0x25228d===void 0x0?void 0x0:_0x25228d[_0x581a52(0x1b6)][_0x581a52(0x1a6)](/\./g,'_')});}_0x5b22a1[_0x581a52(0x1c1)]=_0x292330;for(const _0x45055d in _0x52f7b5){const _0x8c21ef=_0x52f7b5[_0x45055d],_0x6fe995=_0x5b22a1[_0x581a52(0x199)]({});for(let _0x5e9b18 in _0xe72680){const _0x14ccef=_0xe72680[_0x5e9b18][_0x581a52(0x1b6)][_0x581a52(0x1a6)](/\./g,'_'),_0x413572=_0x5b22a1[_0x581a52(0x1ad)](_0x14ccef),_0x1366ec=_0x6fe995===null||_0x6fe995===void 0x0?void 0x0:_0x6fe995[_0x581a52(0x1d4)](_0x14ccef);if(typeof((_0x1efe70=_0xe72680[_0x5e9b18])===null||_0x1efe70===void 0x0?void 0x0:_0x1efe70[_0x581a52(0x1ac)])==_0x581a52(0x1ae))_0x1366ec[_0x581a52(0x1a2)]=await _0xe72680[_0x5e9b18][_0x581a52(0x1ac)](_0x8c21ef,{'row':_0x6fe995,'col':_0x413572,'cell':_0x1366ec,'sheet':_0x5b22a1})||'';else typeof((_0x11553e=_0xe72680[_0x5e9b18])===null||_0x11553e===void 0x0?void 0x0:_0x11553e[_0x581a52(0x1cd)])==_0x581a52(0x1ae)?_0x1366ec[_0x581a52(0x1a2)]=await _0xe72680[_0x5e9b18][_0x581a52(0x1cd)](_0x8c21ef,{'row':_0x6fe995,'col':_0x413572,'cell':_0x1366ec,'sheet':_0x5b22a1})||'':_0x1366ec[_0x581a52(0x1a2)]=lodash[_0x581a52(0x1ca)](_0x8c21ef,_0xe72680[_0x5e9b18]['key'],'');}}typeof _0x58ef00==_0x581a52(0x1ae)&&await _0x58ef00({'workbook':_0x31ec5b,'worksheet':_0x5b22a1});let _0x563bd0='';const _0x1fa6e8=_0x120877+_0x581a52(0x1a4);if(_0xd78b73&&_0xd78b73['startsWith']('/'))_0x563bd0=''+_0xd78b73;else _0xd78b73&&!_0xd78b73[_0x581a52(0x1db)]('/')&&!_0xd78b73['startsWith']('\x5c')?_0x563bd0=this[_0x581a52(0x1ab)][_0x581a52(0x1da)]()+'/'+_0xd78b73:_0x563bd0=this[_0x581a52(0x1ab)][_0x581a52(0x1da)]()+_0x581a52(0x1bc)+dayjs()[_0x581a52(0x1e1)](_0x581a52(0x1c6));return(_0x563bd0[_0x581a52(0x1e7)]('/')||_0x563bd0[_0x581a52(0x1e7)]('\x5c'))&&(_0x563bd0=_0x563bd0[_0x581a52(0x1e3)](0x0,_0x563bd0[_0x581a52(0x1cb)]-0x1)),_0x563bd0=_0x563bd0['replace'](/(\\|\/)/g,'/')[_0x581a52(0x1a6)](/\/{2,}/g,'/'),!fs['existsSync'](_0x563bd0)&&fs['mkdirSync'](_0x563bd0,{'recursive':!![]}),await _0x31ec5b[_0x581a52(0x1c7)]['writeFile']((_0x563bd0+'/'+_0x1fa6e8)['replace'](/(\\|\/)/g,'/')[_0x581a52(0x1a6)](/\/{2,}/g,'/')),{'filename':_0x1fa6e8,'filepath':(_0x563bd0[_0x581a52(0x1e3)]((''+this['app'][_0x581a52(0x1da)]())[_0x581a52(0x1cb)])+'/'+_0x1fa6e8)[_0x581a52(0x1a6)](/(\\|\/)/g,'/')[_0x581a52(0x1a6)](/\/{2,}/g,'/')};}async[a14_0x1c8ae5(0x1c8)](_0x39d4c5,_0x169c20={'suffix':[a14_0x1c8ae5(0x1c3),'xlsx']}){const _0x8619b2=a14_0x1c8ae5;return await ExcelStream_1[_0x8619b2(0x19b)][_0x8619b2(0x1b0)](_0x39d4c5,_0x169c20);}async[a14_0x1c8ae5(0x1d6)](_0x102d19,_0x56332e){return await koasend(_0x102d19,''+_0x56332e);}};exports[a14_0x1c8ae5(0x1df)]=ExcelService,__decorate([(0x0,core_1[a14_0x1c8ae5(0x1b9)])(),__metadata(a14_0x1c8ae5(0x1b5),Object)],ExcelService[a14_0x1c8ae5(0x1c9)],a14_0x1c8ae5(0x1ab),void 0x0),exports[a14_0x1c8ae5(0x1df)]=ExcelService=__decorate([(0x0,core_1[a14_0x1c8ae5(0x1bb)])(),(0x0,core_1[a14_0x1c8ae5(0x1a0)])(core_1[a14_0x1c8ae5(0x1cc)][a14_0x1c8ae5(0x1be)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x396a27=a15_0x29eb;(function(_0x5f2207,_0x3dc987){const _0x1a4c5b=a15_0x29eb,_0x50da1c=_0x5f2207();while(!![]){try{const _0x31775a=-parseInt(_0x1a4c5b(0x118))/0x1+-parseInt(_0x1a4c5b(0x13f))/0x2+-parseInt(_0x1a4c5b(0x124))/0x3+-parseInt(_0x1a4c5b(0x130))/0x4+-parseInt(_0x1a4c5b(0x12a))/0x5+-parseInt(_0x1a4c5b(0x11c))/0x6*(-parseInt(_0x1a4c5b(0x12b))/0x7)+parseInt(_0x1a4c5b(0x139))/0x8*(parseInt(_0x1a4c5b(0x134))/0x9);if(_0x31775a===_0x3dc987)break;else _0x50da1c['push'](_0x50da1c['shift']());}catch(_0x59b6e9){_0x50da1c['push'](_0x50da1c['shift']());}}}(a15_0x5b28,0x4ac3e));const a15_0x1a23bb=(function(){let _0x353861=!![];return function(_0x5a5ee9,_0x56f7d6){const _0x1ebe1b=_0x353861?function(){const _0x19991f=a15_0x29eb;if(_0x56f7d6){const _0x52ef13=_0x56f7d6[_0x19991f(0x157)](_0x5a5ee9,arguments);return _0x56f7d6=null,_0x52ef13;}}:function(){};return _0x353861=![],_0x1ebe1b;};}()),a15_0x43db4c=a15_0x1a23bb(this,function(){const _0x570a93=a15_0x29eb;return a15_0x43db4c[_0x570a93(0x114)]()[_0x570a93(0x140)]('(((.+)+)+)+$')[_0x570a93(0x114)]()['constructor'](a15_0x43db4c)['search'](_0x570a93(0x15d));});function a15_0x5b28(){const _0x3bf8ed=['save','length','Readable','pipe','indexOf','chunkArray','substring','Transform','col','getColumn','has','error','suffix','xls','worksheets','pause','apply','startsWith','ignore','resume','header','xlsx','(((.+)+)+)+$','values','getWorksheet','finished','handler','cellCount','value','addRow','ExcelStream','getRow','lastIndexOf','set','toString','push','get','writeFile','433628qZmARs','Workbook','slice','read','6vRklro','emit','exceljs','finish','dirname','isArray','replace','eachCell','242793pCkdcr','existsSync','keys','getCell','WorkbookWriter','rootpath','1140310vArqZd','1865689eghbQB','__esModule','Writable','forEach','unpipe','1122896ffqSor','reader','destroy','isNumber','9gSDZYk','WorkbookReader','function','commit','sheets','13320568QUmsfU','end','_WorkbookWriter','stream','key','instance','1204030DxVWCi','search','_WorkbookReader','path','filepath','columns','model','_WorksheetWriterMap'];a15_0x5b28=function(){return _0x3bf8ed;};return a15_0x5b28();}a15_0x43db4c();'use strict';Object['defineProperty'](exports,a15_0x396a27(0x12c),{'value':!![]}),exports['ExcelStream']=void 0x0;const fs=require('fs'),path=require(a15_0x396a27(0x142)),lodash=require('lodash'),exceljs=require(a15_0x396a27(0x11e)),stream_1=require(a15_0x396a27(0x13c));function isReadableStream(_0x468f47){const _0x290f6c=a15_0x396a27;return _0x468f47&&typeof _0x468f47[_0x290f6c(0x14a)]===_0x290f6c(0x136)&&typeof _0x468f47['on']==='function'&&typeof _0x468f47['read']===_0x290f6c(0x136)&&typeof _0x468f47[_0x290f6c(0x156)]===_0x290f6c(0x136)&&typeof _0x468f47[_0x290f6c(0x15a)]===_0x290f6c(0x136);}function a15_0x29eb(_0x4a5113,_0x4fca21){const _0x4d6fea=a15_0x5b28();return a15_0x29eb=function(_0x43db4c,_0x1a23bb){_0x43db4c=_0x43db4c-0x110;let _0x5b2877=_0x4d6fea[_0x43db4c];return _0x5b2877;},a15_0x29eb(_0x4a5113,_0x4fca21);}class ExcelStream{constructor(_0x206139){const _0x3f7f6e=a15_0x396a27;this[_0x3f7f6e(0x146)]=new Map(),this['filepath']=_0x206139;}get[a15_0x396a27(0x135)](){const _0x53987e=a15_0x396a27;return!this['_WorkbookReader']&&(this[_0x53987e(0x141)]=new exceljs[(_0x53987e(0x13c))][(_0x53987e(0x15c))][(_0x53987e(0x135))](this[_0x53987e(0x143)],{'worksheets':_0x53987e(0x11d),'sharedStrings':_0x53987e(0x159),'hyperlinks':_0x53987e(0x159),'styles':_0x53987e(0x159)})),this[_0x53987e(0x141)];}get[a15_0x396a27(0x128)](){const _0xcd65d7=a15_0x396a27;return!this[_0xcd65d7(0x13b)]&&(this[_0xcd65d7(0x13b)]=new exceljs['stream']['xlsx'][(_0xcd65d7(0x128))]({'filename':this[_0xcd65d7(0x143)],'useStyles':!![],'useSharedStrings':![]})),this[_0xcd65d7(0x13b)];}static[a15_0x396a27(0x13e)](_0x7e7cee,_0x503cb2={'suffix':[a15_0x396a27(0x154),a15_0x396a27(0x15c)]}){return new Promise(async(_0x4b294c,_0x5103a2)=>{const _0x3e73d3=a15_0x29eb,_0x5f4d02=_0x7e7cee[_0x3e73d3(0x14d)]((_0x7e7cee[_0x3e73d3(0x14b)]('/')>-0x1?_0x7e7cee[_0x3e73d3(0x112)]('/'):_0x7e7cee[_0x3e73d3(0x112)]('\x5c'))+0x1),_0x4c3954=path[_0x3e73d3(0x120)](((_0x503cb2===null||_0x503cb2===void 0x0?void 0x0:_0x503cb2['rootpath'])&&!_0x7e7cee[_0x3e73d3(0x158)](_0x503cb2['rootpath'])?_0x503cb2[_0x3e73d3(0x129)]+'/'+_0x7e7cee:'/'+_0x7e7cee)[_0x3e73d3(0x122)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x503cb2===null||_0x503cb2===void 0x0?void 0x0:_0x503cb2[_0x3e73d3(0x153)])?_0x503cb2['suffix']:['xls','xlsx'])['includes'](_0x5f4d02[_0x3e73d3(0x14d)](_0x5f4d02[_0x3e73d3(0x112)]('.')+0x1)))return _0x5103a2('文件名格式错误');const _0x2159ea=(_0x4c3954+'/'+_0x5f4d02)['replace'](/(\\|\/)/g,'/')[_0x3e73d3(0x122)](/\/{2,}/g,'/');if(!fs[_0x3e73d3(0x125)](_0x2159ea)){!fs['existsSync'](_0x4c3954)&&fs['mkdirSync'](_0x4c3954,{'recursive':!![]});const _0x47e297=new exceljs[(_0x3e73d3(0x119))]();await _0x47e297[_0x3e73d3(0x15c)][_0x3e73d3(0x117)](_0x2159ea);}return _0x4b294c(new ExcelStream(_0x2159ea));});}async['writer'](_0x2db863,_0x231f00,_0x5c5ea4=0x0){const _0x359514=a15_0x396a27;var _0x522c70;const _0x3deb48=this['getWorkbookWriterSheet'](_0x5c5ea4,!![]),_0x132a5e={},_0x41b725=[];if(_0x3deb48&&(Array[_0x359514(0x121)](_0x231f00)||isReadableStream(_0x231f00))){for(const _0x131fbf in _0x2db863){_0x132a5e[_0x2db863[_0x131fbf][_0x359514(0x13d)]]=_0x2db863[_0x131fbf][_0x359514(0x15b)],_0x41b725['push']({'header':_0x2db863[_0x131fbf][_0x359514(0x15b)],'key':(_0x522c70=_0x2db863[_0x131fbf])===null||_0x522c70===void 0x0?void 0x0:_0x522c70['key']['replace'](/\./g,'_')});}(_0x3deb48===null||_0x3deb48===void 0x0?void 0x0:_0x3deb48[_0x359514(0x144)])!=_0x41b725&&(_0x3deb48[_0x359514(0x144)]=_0x41b725);const _0x4923bf=0x64,_0x587b2a=Array[_0x359514(0x121)](_0x231f00)?stream_1[_0x359514(0x149)]['from'](this[_0x359514(0x14c)](_0x231f00,_0x4923bf),{'objectMode':!![]}):_0x231f00,_0x2c1d52=new stream_1[(_0x359514(0x14e))]({'objectMode':!![],'highWaterMark':_0x4923bf,'transform':async function(_0x5e7efa,_0x32970f,_0x31ef21){const _0x2027c3=_0x359514;Array[_0x2027c3(0x121)](_0x5e7efa)&&_0x5e7efa[_0x2027c3(0x148)]>0x0&&_0x5e7efa[_0x2027c3(0x12e)](_0x5a5a0d=>{const _0x12e1a3=_0x2027c3;this[_0x12e1a3(0x115)](_0x5a5a0d);}),_0x31ef21();}});let _0x1bafa9=0x0;const _0x1654a3=new stream_1[(_0x359514(0x12d))]({'objectMode':!![],'highWaterMark':_0x4923bf,async 'write'(_0x16c2ca,_0x1f9003,_0x75a023){const _0x3f9564=_0x359514;var _0x2f7f94;try{const _0xc96540=_0x3deb48[_0x3f9564(0x164)]({});for(let _0x1c21ed in _0x2db863){const _0x3a2f08=_0x2db863[_0x1c21ed][_0x3f9564(0x13d)][_0x3f9564(0x122)](/\./g,'_'),_0x7dfc3a=_0x3deb48[_0x3f9564(0x150)](_0x3a2f08),_0x31e9de=_0xc96540===null||_0xc96540===void 0x0?void 0x0:_0xc96540[_0x3f9564(0x127)](_0x3a2f08);typeof((_0x2f7f94=_0x2db863[_0x1c21ed])===null||_0x2f7f94===void 0x0?void 0x0:_0x2f7f94[_0x3f9564(0x161)])==_0x3f9564(0x136)?_0x31e9de[_0x3f9564(0x163)]=await _0x2db863[_0x1c21ed][_0x3f9564(0x161)](_0x16c2ca,{'row':_0xc96540,'col':_0x7dfc3a,'cell':_0x31e9de,'sheet':_0x3deb48})||'':_0x31e9de[_0x3f9564(0x163)]=lodash[_0x3f9564(0x116)](_0x16c2ca,_0x2db863[_0x1c21ed][_0x3f9564(0x13d)],'');}_0x1bafa9++,_0xc96540[_0x3f9564(0x137)](),_0x75a023();}catch(_0x49ff47){_0x75a023(_0x49ff47);}},async 'final'(_0x6e1ec6){try{_0x6e1ec6();}catch(_0x13c302){_0x6e1ec6(_0x13c302);}}});return new Promise((_0x5a3a59,_0x5f1fd2)=>{const _0x343ea1=_0x359514,_0x3120c2=_0x465d70=>{const _0x52b420=a15_0x29eb;_0x587b2a[_0x52b420(0x132)](),_0x2c1d52['destroy'](),_0x1654a3['destroy'](),_0x5f1fd2(_0x465d70);};_0x587b2a['on'](_0x343ea1(0x152),_0x3120c2)['pipe'](_0x2c1d52)['on'](_0x343ea1(0x152),_0x3120c2)[_0x343ea1(0x14a)](_0x1654a3)['on']('error',_0x3120c2)['on'](_0x343ea1(0x11f),()=>{const _0x1b50b4=_0x343ea1;try{_0x587b2a[_0x1b50b4(0x12f)](),_0x2c1d52[_0x1b50b4(0x12f)](),_0x2c1d52['end'](),_0x1654a3[_0x1b50b4(0x13a)](),_0x5a3a59({'rowCount':_0x1bafa9,'worksheet':_0x3deb48,'done':()=>_0x3deb48[_0x1b50b4(0x137)]()});}catch(_0x158ae3){_0x5f1fd2(_0x158ae3);}}),Array[_0x343ea1(0x121)](_0x231f00)&&_0x587b2a[_0x343ea1(0x15a)]();});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0x396a27(0x131)](_0x4830c3,_0x4d369f,_0x5d1d76={'sheets':0x0}){const _0x2cabbe=a15_0x396a27;var _0x3d61b0,_0x583ca9,_0x1596f3;const _0x4f4eb7=(_0x5d1d76===null||_0x5d1d76===void 0x0?void 0x0:_0x5d1d76[_0x2cabbe(0x138)])?Array['isArray'](_0x5d1d76[_0x2cabbe(0x138)])?_0x5d1d76['sheets']:[_0x5d1d76[_0x2cabbe(0x138)]]:[0x0],_0x4af7c1=_0x34b497=>new Promise(async(_0x5b8072,_0x1f0370)=>{const _0x4ef597=_0x2cabbe,_0x323773=_0x34b497[_0x4ef597(0x111)](0x1),_0x2be0f3=await new Promise(_0x57330d=>{const _0x9b8f3e=_0x4ef597,_0x4381fe={};_0x323773[_0x9b8f3e(0x123)]((_0x48e470,_0x55a08e)=>{const _0x76a9c3=_0x9b8f3e;for(const _0x56f179 of _0x4830c3){if(_0x48e470[_0x76a9c3(0x163)]==_0x56f179[_0x76a9c3(0x15b)])_0x4381fe[_0x56f179['key']]={'header':_0x48e470[_0x76a9c3(0x14f)],'handler':_0x56f179['handler']};else{if(!_0x4381fe[_0x56f179[_0x76a9c3(0x13d)]])try{const _0x2131ef=_0x323773&&_0x323773['getCell'](_0x56f179[_0x76a9c3(0x15b)]);_0x2131ef&&(_0x4381fe[_0x56f179[_0x76a9c3(0x13d)]]={'header':_0x2131ef['col'],'handler':_0x56f179[_0x76a9c3(0x161)]});}catch{}}}_0x323773[_0x76a9c3(0x162)]==_0x55a08e&&_0x57330d(_0x4381fe);});});_0x34b497['on'](_0x4ef597(0x160),_0x2a52e7=>_0x5b8072(_0x34b497)),_0x34b497['on'](_0x4ef597(0x152),_0x48ba90=>_0x1f0370(_0x48ba90)),_0x34b497['on']('row',async _0x1287f0=>{const _0x121285=_0x4ef597;var _0x256905;if(typeof(_0x1287f0===null||_0x1287f0===void 0x0?void 0x0:_0x1287f0['getCell'])==_0x121285(0x136)){const _0x2671c6={};_0x382400:for(const _0xbe89c7 in _0x2be0f3){if(_0x2be0f3[_0xbe89c7]['header']){const _0x76e083=_0x1287f0['getCell'](_0x2be0f3[_0xbe89c7][_0x121285(0x15b)]);if(!_0x76e083)continue _0x382400;try{_0x76e083[_0x121285(0x114)]();}catch(_0x2faecf){_0x76e083[_0x121285(0x114)]=()=>{const _0x18f64f=_0x121285;var _0x32ced4;return''+(((_0x32ced4=_0x76e083===null||_0x76e083===void 0x0?void 0x0:_0x76e083[_0x18f64f(0x145)])===null||_0x32ced4===void 0x0?void 0x0:_0x32ced4[_0x18f64f(0x163)])||'');};}typeof((_0x256905=_0x2be0f3[_0xbe89c7])===null||_0x256905===void 0x0?void 0x0:_0x256905[_0x121285(0x161)])==_0x121285(0x136)?_0x2671c6[_0xbe89c7]=await _0x2be0f3[_0xbe89c7]['handler'](lodash[_0x121285(0x113)]({},_0xbe89c7,(_0x76e083===null||_0x76e083===void 0x0?void 0x0:_0x76e083[_0x121285(0x114)]())||''),_0x76e083[_0x121285(0x145)]):_0x2671c6[_0xbe89c7]=(_0x76e083===null||_0x76e083===void 0x0?void 0x0:_0x76e083[_0x121285(0x114)]())||'';}}Object[_0x121285(0x126)](_0x2671c6)[_0x121285(0x148)]>0x0&&Object[_0x121285(0x15e)](_0x2671c6)['filter'](_0x5eae6e=>_0x5eae6e!='')[_0x121285(0x148)]>0x0&&await _0x4d369f(_0x2671c6,{'sheet':_0x34b497,'row':_0x1287f0});}}),await _0x34b497[_0x4ef597(0x11b)]();});for(const _0x23846a of _0x4f4eb7){const _0x5b9453=lodash[_0x2cabbe(0x133)](_0x23846a)?((_0x583ca9=(_0x3d61b0=this[_0x2cabbe(0x135)])===null||_0x3d61b0===void 0x0?void 0x0:_0x3d61b0[_0x2cabbe(0x155)])===null||_0x583ca9===void 0x0?void 0x0:_0x583ca9[_0x23846a])||undefined:(_0x1596f3=this[_0x2cabbe(0x135)])===null||_0x1596f3===void 0x0?void 0x0:_0x1596f3[_0x2cabbe(0x15f)](_0x23846a);_0x5b9453&&await _0x4af7c1(_0x5b9453);}}['getWorkbookWriterSheet'](_0x23db1f,_0x138c89=![]){const _0x5c4ec4=a15_0x396a27;var _0x152254,_0x27c66c;let _0x541668=this[_0x5c4ec4(0x146)][_0x5c4ec4(0x151)](_0x23db1f)?this[_0x5c4ec4(0x146)][_0x5c4ec4(0x116)](_0x23db1f):(_0x152254=this[_0x5c4ec4(0x128)])===null||_0x152254===void 0x0?void 0x0:_0x152254['getWorksheet'](_0x23db1f);return!_0x541668&&_0x138c89&&(_0x541668=(_0x27c66c=this[_0x5c4ec4(0x128)])===null||_0x27c66c===void 0x0?void 0x0:_0x27c66c['addWorksheet'](lodash['isNumber'](_0x23db1f)?undefined:''+_0x23db1f,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x5c4ec4(0x146)]['set'](_0x23db1f,_0x541668)),_0x541668;}async[a15_0x396a27(0x147)](){var _0x4cf753;return await((_0x4cf753=this['WorkbookWriter'])===null||_0x4cf753===void 0x0?void 0x0:_0x4cf753['commit']()),this;}*[a15_0x396a27(0x14c)](_0x4e0b8e,_0xf0ca12){const _0x5d63dc=a15_0x396a27;for(let _0x8748e6=0x0;_0x8748e6<_0x4e0b8e[_0x5d63dc(0x148)];_0x8748e6+=_0xf0ca12){yield _0x4e0b8e[_0x5d63dc(0x11a)](_0x8748e6,_0x8748e6+_0xf0ca12);}}}exports[a15_0x396a27(0x110)]=ExcelStream;
|
|
1
|
+
const a15_0x4c87bb=a15_0x5a12;(function(_0x37b009,_0x25f073){const _0x59adb5=a15_0x5a12,_0x4d004f=_0x37b009();while(!![]){try{const _0x333363=parseInt(_0x59adb5(0xd3))/0x1+parseInt(_0x59adb5(0x107))/0x2+-parseInt(_0x59adb5(0xe9))/0x3*(parseInt(_0x59adb5(0x101))/0x4)+-parseInt(_0x59adb5(0xec))/0x5+parseInt(_0x59adb5(0x103))/0x6*(-parseInt(_0x59adb5(0xf4))/0x7)+parseInt(_0x59adb5(0xbc))/0x8*(parseInt(_0x59adb5(0x104))/0x9)+parseInt(_0x59adb5(0xf8))/0xa;if(_0x333363===_0x25f073)break;else _0x4d004f['push'](_0x4d004f['shift']());}catch(_0xeac817){_0x4d004f['push'](_0x4d004f['shift']());}}}(a15_0x19d4,0x58493));const a15_0x18ec4e=(function(){let _0x198332=!![];return function(_0x4a70d1,_0x5b4190){const _0x1c41fd=_0x198332?function(){const _0x2b51e2=a15_0x5a12;if(_0x5b4190){const _0x5b7d45=_0x5b4190[_0x2b51e2(0xc9)](_0x4a70d1,arguments);return _0x5b4190=null,_0x5b7d45;}}:function(){};return _0x198332=![],_0x1c41fd;};}()),a15_0x5bfb69=a15_0x18ec4e(this,function(){const _0x2d512c=a15_0x5a12;return a15_0x5bfb69[_0x2d512c(0xd4)]()['search'](_0x2d512c(0xcf))[_0x2d512c(0xd4)]()[_0x2d512c(0xc3)](a15_0x5bfb69)[_0x2d512c(0xce)](_0x2d512c(0xcf));});function a15_0x19d4(){const _0x39c8e3=['Transform','filter','model','suffix','mkdirSync','worksheets','reader','pipe','ExcelStream','error','chunkArray','isArray','Writable','read','value','finish','sheets','xlsx','4113AqfOtP','destroy','getRow','2643635DaAqxn','getCell','length','WorkbookWriter','addWorksheet','getWorksheet','defineProperty','end','961891puHaBv','rootpath','pause','includes','12157560EGBRjm','columns','function','key','xls','resume','文件名格式错误','set','addRow','196tNMCGp','exceljs','30EhvZWZ','108adyOzQ','get','ignore','63906ENWCVl','isNumber','_WorkbookReader','existsSync','_WorksheetWriterMap','dirname','from','save','emit','WorkbookReader','handler','27080hXgKvH','_WorkbookWriter','Workbook','replace','commit','getWorkbookWriterSheet','eachCell','constructor','substring','writer','forEach','writeFile','header','apply','lastIndexOf','getColumn','col','finished','search','(((.+)+)+)+$','filepath','instance','row','356261BIabaq','toString','unpipe','stream'];a15_0x19d4=function(){return _0x39c8e3;};return a15_0x19d4();}a15_0x5bfb69();'use strict';Object[a15_0x4c87bb(0xf2)](exports,'__esModule',{'value':!![]}),exports[a15_0x4c87bb(0xdf)]=void 0x0;function a15_0x5a12(_0xcdf67e,_0x28e9b0){const _0x12d4c8=a15_0x19d4();return a15_0x5a12=function(_0x5bfb69,_0x18ec4e){_0x5bfb69=_0x5bfb69-0xbb;let _0x19d496=_0x12d4c8[_0x5bfb69];return _0x19d496;},a15_0x5a12(_0xcdf67e,_0x28e9b0);}const fs=require('fs'),path=require('path'),lodash=require('lodash'),exceljs=require(a15_0x4c87bb(0x102)),stream_1=require(a15_0x4c87bb(0xd6));function isReadableStream(_0x14798f){const _0x288f18=a15_0x4c87bb;return _0x14798f&&typeof _0x14798f[_0x288f18(0xde)]===_0x288f18(0xfa)&&typeof _0x14798f['on']===_0x288f18(0xfa)&&typeof _0x14798f[_0x288f18(0xe4)]===_0x288f18(0xfa)&&typeof _0x14798f[_0x288f18(0xf6)]===_0x288f18(0xfa)&&typeof _0x14798f[_0x288f18(0xfd)]===_0x288f18(0xfa);}class ExcelStream{constructor(_0x141bcb){const _0x4226fd=a15_0x4c87bb;this[_0x4226fd(0x10b)]=new Map(),this[_0x4226fd(0xd0)]=_0x141bcb;}get['WorkbookReader'](){const _0x321964=a15_0x4c87bb;return!this[_0x321964(0x109)]&&(this[_0x321964(0x109)]=new exceljs[(_0x321964(0xd6))]['xlsx'][(_0x321964(0x110))](this[_0x321964(0xd0)],{'worksheets':_0x321964(0x10f),'sharedStrings':'ignore','hyperlinks':_0x321964(0x106),'styles':_0x321964(0x106)})),this[_0x321964(0x109)];}get['WorkbookWriter'](){const _0x182d8a=a15_0x4c87bb;return!this[_0x182d8a(0xbd)]&&(this[_0x182d8a(0xbd)]=new exceljs['stream'][(_0x182d8a(0xe8))][(_0x182d8a(0xef))]({'filename':this[_0x182d8a(0xd0)],'useStyles':!![],'useSharedStrings':![]})),this['_WorkbookWriter'];}static[a15_0x4c87bb(0xd1)](_0x378d01,_0x2dcf8f={'suffix':[a15_0x4c87bb(0xfc),a15_0x4c87bb(0xe8)]}){return new Promise(async(_0x44560d,_0x436f98)=>{const _0x5f5038=a15_0x5a12,_0x5292f6=_0x378d01[_0x5f5038(0xc4)]((_0x378d01['indexOf']('/')>-0x1?_0x378d01[_0x5f5038(0xca)]('/'):_0x378d01[_0x5f5038(0xca)]('\x5c'))+0x1),_0xa56f9d=path[_0x5f5038(0x10c)](((_0x2dcf8f===null||_0x2dcf8f===void 0x0?void 0x0:_0x2dcf8f[_0x5f5038(0xf5)])&&!_0x378d01['startsWith'](_0x2dcf8f['rootpath'])?_0x2dcf8f[_0x5f5038(0xf5)]+'/'+_0x378d01:'/'+_0x378d01)[_0x5f5038(0xbf)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x2dcf8f===null||_0x2dcf8f===void 0x0?void 0x0:_0x2dcf8f[_0x5f5038(0xda)])?_0x2dcf8f[_0x5f5038(0xda)]:['xls',_0x5f5038(0xe8)])[_0x5f5038(0xf7)](_0x5292f6[_0x5f5038(0xc4)](_0x5292f6[_0x5f5038(0xca)]('.')+0x1)))return _0x436f98(_0x5f5038(0xfe));const _0x1c5063=(_0xa56f9d+'/'+_0x5292f6)[_0x5f5038(0xbf)](/(\\|\/)/g,'/')[_0x5f5038(0xbf)](/\/{2,}/g,'/');if(!fs[_0x5f5038(0x10a)](_0x1c5063)){!fs[_0x5f5038(0x10a)](_0xa56f9d)&&fs[_0x5f5038(0xdb)](_0xa56f9d,{'recursive':!![]});const _0x16f74c=new exceljs[(_0x5f5038(0xbe))]();await _0x16f74c[_0x5f5038(0xe8)][_0x5f5038(0xc7)](_0x1c5063);}return _0x44560d(new ExcelStream(_0x1c5063));});}async[a15_0x4c87bb(0xc5)](_0x479307,_0x14cac8,_0x328797=0x0){const _0xa2a405=a15_0x4c87bb;var _0x24fcd8;const _0x43490b=this[_0xa2a405(0xc1)](_0x328797,!![]),_0x32abbb={},_0x110319=[];if(_0x43490b&&(Array[_0xa2a405(0xe2)](_0x14cac8)||isReadableStream(_0x14cac8))){for(const _0x41102d in _0x479307){_0x32abbb[_0x479307[_0x41102d][_0xa2a405(0xfb)]]=_0x479307[_0x41102d][_0xa2a405(0xc8)],_0x110319['push']({'header':_0x479307[_0x41102d][_0xa2a405(0xc8)],'key':(_0x24fcd8=_0x479307[_0x41102d])===null||_0x24fcd8===void 0x0?void 0x0:_0x24fcd8[_0xa2a405(0xfb)][_0xa2a405(0xbf)](/\./g,'_')});}(_0x43490b===null||_0x43490b===void 0x0?void 0x0:_0x43490b[_0xa2a405(0xf9)])!=_0x110319&&(_0x43490b[_0xa2a405(0xf9)]=_0x110319);const _0x485b34=0x64,_0x7db53=Array[_0xa2a405(0xe2)](_0x14cac8)?stream_1['Readable'][_0xa2a405(0x10d)](this[_0xa2a405(0xe1)](_0x14cac8,_0x485b34),{'objectMode':!![]}):_0x14cac8,_0x2bcfe4=new stream_1[(_0xa2a405(0xd7))]({'objectMode':!![],'highWaterMark':_0x485b34,'transform':async function(_0x3ab190,_0x4f32d9,_0x2e0c1f){const _0x58ae74=_0xa2a405;Array[_0x58ae74(0xe2)](_0x3ab190)&&_0x3ab190[_0x58ae74(0xee)]>0x0&&_0x3ab190[_0x58ae74(0xc6)](_0x3ba43e=>{this['push'](_0x3ba43e);}),_0x2e0c1f();}});let _0x34460a=0x0;const _0x397790=new stream_1[(_0xa2a405(0xe3))]({'objectMode':!![],'highWaterMark':_0x485b34,async 'write'(_0x18c892,_0x340207,_0x46ddd3){const _0x5bbf5a=_0xa2a405;var _0x2be295;try{const _0x4ba543=_0x43490b[_0x5bbf5a(0x100)]({});for(let _0x5b714e in _0x479307){const _0x161404=_0x479307[_0x5b714e][_0x5bbf5a(0xfb)]['replace'](/\./g,'_'),_0x4380d1=_0x43490b[_0x5bbf5a(0xcb)](_0x161404),_0x7af9e=_0x4ba543===null||_0x4ba543===void 0x0?void 0x0:_0x4ba543[_0x5bbf5a(0xed)](_0x161404);typeof((_0x2be295=_0x479307[_0x5b714e])===null||_0x2be295===void 0x0?void 0x0:_0x2be295['handler'])==_0x5bbf5a(0xfa)?_0x7af9e[_0x5bbf5a(0xe5)]=await _0x479307[_0x5b714e][_0x5bbf5a(0xbb)](_0x18c892,{'row':_0x4ba543,'col':_0x4380d1,'cell':_0x7af9e,'sheet':_0x43490b})||'':_0x7af9e[_0x5bbf5a(0xe5)]=lodash[_0x5bbf5a(0x105)](_0x18c892,_0x479307[_0x5b714e][_0x5bbf5a(0xfb)],'');}_0x34460a++,_0x4ba543[_0x5bbf5a(0xc0)](),_0x46ddd3();}catch(_0x32371e){_0x46ddd3(_0x32371e);}},async 'final'(_0x3e4f5a){try{_0x3e4f5a();}catch(_0xc62a16){_0x3e4f5a(_0xc62a16);}}});return new Promise((_0x39ab88,_0x2aaaf8)=>{const _0x1e1a46=_0xa2a405,_0x2cf50d=_0x2ea563=>{const _0x5df651=a15_0x5a12;_0x7db53[_0x5df651(0xea)](),_0x2bcfe4['destroy'](),_0x397790[_0x5df651(0xea)](),_0x2aaaf8(_0x2ea563);};_0x7db53['on'](_0x1e1a46(0xe0),_0x2cf50d)['pipe'](_0x2bcfe4)['on'](_0x1e1a46(0xe0),_0x2cf50d)[_0x1e1a46(0xde)](_0x397790)['on'](_0x1e1a46(0xe0),_0x2cf50d)['on'](_0x1e1a46(0xe6),()=>{const _0x32cafd=_0x1e1a46;try{_0x7db53['unpipe'](),_0x2bcfe4[_0x32cafd(0xd5)](),_0x2bcfe4[_0x32cafd(0xf3)](),_0x397790[_0x32cafd(0xf3)](),_0x39ab88({'rowCount':_0x34460a,'worksheet':_0x43490b,'done':()=>_0x43490b[_0x32cafd(0xc0)]()});}catch(_0xd7a76){_0x2aaaf8(_0xd7a76);}}),Array[_0x1e1a46(0xe2)](_0x14cac8)&&_0x7db53[_0x1e1a46(0xfd)]();});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0x4c87bb(0xdd)](_0x56be07,_0x3e5fb0,_0x3a53f2={'sheets':0x0}){const _0x3eef70=a15_0x4c87bb;var _0x20be5a,_0x4be699,_0x393a42;const _0x4bdcd6=(_0x3a53f2===null||_0x3a53f2===void 0x0?void 0x0:_0x3a53f2['sheets'])?Array['isArray'](_0x3a53f2['sheets'])?_0x3a53f2[_0x3eef70(0xe7)]:[_0x3a53f2['sheets']]:[0x0],_0x367f91=_0x2ea692=>new Promise(async(_0x75401a,_0x16dffb)=>{const _0xbb955e=_0x3eef70,_0x30c954=_0x2ea692[_0xbb955e(0xeb)](0x1),_0x51fc4d=await new Promise(_0x5c3d9c=>{const _0x299c1c=_0xbb955e,_0x58951b={};_0x30c954[_0x299c1c(0xc2)]((_0x43e73c,_0x47a6aa)=>{const _0x1fd780=_0x299c1c;for(const _0x19f26e of _0x56be07){if(_0x43e73c[_0x1fd780(0xe5)]==_0x19f26e[_0x1fd780(0xc8)])_0x58951b[_0x19f26e['key']]={'header':_0x43e73c[_0x1fd780(0xcc)],'handler':_0x19f26e[_0x1fd780(0xbb)]};else{if(!_0x58951b[_0x19f26e[_0x1fd780(0xfb)]])try{const _0xda652c=_0x30c954&&_0x30c954[_0x1fd780(0xed)](_0x19f26e[_0x1fd780(0xc8)]);_0xda652c&&(_0x58951b[_0x19f26e[_0x1fd780(0xfb)]]={'header':_0xda652c[_0x1fd780(0xcc)],'handler':_0x19f26e[_0x1fd780(0xbb)]});}catch{}}}_0x30c954['cellCount']==_0x47a6aa&&_0x5c3d9c(_0x58951b);});});_0x2ea692['on'](_0xbb955e(0xcd),_0x5baf58=>_0x75401a(_0x2ea692)),_0x2ea692['on'](_0xbb955e(0xe0),_0x165c80=>_0x16dffb(_0x165c80)),_0x2ea692['on'](_0xbb955e(0xd2),async _0x5b2d0b=>{const _0x5db759=_0xbb955e;var _0x123090;if(typeof(_0x5b2d0b===null||_0x5b2d0b===void 0x0?void 0x0:_0x5b2d0b[_0x5db759(0xed)])=='function'){const _0x26fc9e={};_0x2638bd:for(const _0x45d437 in _0x51fc4d){if(_0x51fc4d[_0x45d437][_0x5db759(0xc8)]){const _0x34fd54=_0x5b2d0b[_0x5db759(0xed)](_0x51fc4d[_0x45d437]['header']);if(!_0x34fd54)continue _0x2638bd;try{_0x34fd54[_0x5db759(0xd4)]();}catch(_0x215c06){_0x34fd54[_0x5db759(0xd4)]=()=>{const _0x251560=_0x5db759;var _0x5d9e8a;return''+(((_0x5d9e8a=_0x34fd54===null||_0x34fd54===void 0x0?void 0x0:_0x34fd54[_0x251560(0xd9)])===null||_0x5d9e8a===void 0x0?void 0x0:_0x5d9e8a['value'])||'');};}typeof((_0x123090=_0x51fc4d[_0x45d437])===null||_0x123090===void 0x0?void 0x0:_0x123090[_0x5db759(0xbb)])==_0x5db759(0xfa)?_0x26fc9e[_0x45d437]=await _0x51fc4d[_0x45d437]['handler'](lodash['set']({},_0x45d437,(_0x34fd54===null||_0x34fd54===void 0x0?void 0x0:_0x34fd54[_0x5db759(0xd4)]())||''),_0x34fd54[_0x5db759(0xd9)]):_0x26fc9e[_0x45d437]=(_0x34fd54===null||_0x34fd54===void 0x0?void 0x0:_0x34fd54[_0x5db759(0xd4)]())||'';}}Object['keys'](_0x26fc9e)[_0x5db759(0xee)]>0x0&&Object['values'](_0x26fc9e)[_0x5db759(0xd8)](_0xad2348=>_0xad2348!='')[_0x5db759(0xee)]>0x0&&await _0x3e5fb0(_0x26fc9e,{'sheet':_0x2ea692,'row':_0x5b2d0b});}}),await _0x2ea692['read']();});for(const _0x29ab58 of _0x4bdcd6){const _0x2167ca=lodash[_0x3eef70(0x108)](_0x29ab58)?((_0x4be699=(_0x20be5a=this['WorkbookReader'])===null||_0x20be5a===void 0x0?void 0x0:_0x20be5a[_0x3eef70(0xdc)])===null||_0x4be699===void 0x0?void 0x0:_0x4be699[_0x29ab58])||undefined:(_0x393a42=this[_0x3eef70(0x110)])===null||_0x393a42===void 0x0?void 0x0:_0x393a42[_0x3eef70(0xf1)](_0x29ab58);_0x2167ca&&await _0x367f91(_0x2167ca);}}[a15_0x4c87bb(0xc1)](_0x584786,_0x3efc68=![]){const _0x5a7ace=a15_0x4c87bb;var _0x132cd7,_0x14e467;let _0x4b5a5a=this[_0x5a7ace(0x10b)]['has'](_0x584786)?this['_WorksheetWriterMap'][_0x5a7ace(0x105)](_0x584786):(_0x132cd7=this['WorkbookWriter'])===null||_0x132cd7===void 0x0?void 0x0:_0x132cd7[_0x5a7ace(0xf1)](_0x584786);return!_0x4b5a5a&&_0x3efc68&&(_0x4b5a5a=(_0x14e467=this[_0x5a7ace(0xef)])===null||_0x14e467===void 0x0?void 0x0:_0x14e467[_0x5a7ace(0xf0)](lodash['isNumber'](_0x584786)?undefined:''+_0x584786,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x5a7ace(0x10b)][_0x5a7ace(0xff)](_0x584786,_0x4b5a5a)),_0x4b5a5a;}async[a15_0x4c87bb(0x10e)](){const _0x46181b=a15_0x4c87bb;var _0xa2b0d7;return await((_0xa2b0d7=this[_0x46181b(0xef)])===null||_0xa2b0d7===void 0x0?void 0x0:_0xa2b0d7[_0x46181b(0xc0)]()),this;}*[a15_0x4c87bb(0xe1)](_0x40df08,_0x413d44){const _0x4f88f6=a15_0x4c87bb;for(let _0x3fad9b=0x0;_0x3fad9b<_0x40df08[_0x4f88f6(0xee)];_0x3fad9b+=_0x413d44){yield _0x40df08['slice'](_0x3fad9b,_0x3fad9b+_0x413d44);}}}exports['ExcelStream']=ExcelStream;
|
package/dist/types/action.d.ts
CHANGED
|
@@ -2,7 +2,26 @@ import { ValidatorOptions } from "@anncic-api/validator";
|
|
|
2
2
|
import { MiddlewareParamArray } from '@midwayjs/core';
|
|
3
3
|
export declare const ACTION_KEY = "anncic-api:action";
|
|
4
4
|
export declare const ACTION_ROUTE_KEY = "anncic-api:action:route";
|
|
5
|
+
export declare const ACTION_RESPONSE_KEY = "anncic-api:action:response";
|
|
5
6
|
export declare const APPSCONFIG_KEY = "anncic-api:apps:config";
|
|
7
|
+
export interface ResponseProperty {
|
|
8
|
+
key: string;
|
|
9
|
+
type: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
children?: ResponseProperty[];
|
|
12
|
+
}
|
|
13
|
+
export interface ErrorResponse {
|
|
14
|
+
code: number;
|
|
15
|
+
message: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ActionResponseOption {
|
|
19
|
+
format?: 'default' | 'custom';
|
|
20
|
+
type?: 'object' | 'array' | 'page';
|
|
21
|
+
description?: string;
|
|
22
|
+
properties?: ResponseProperty[];
|
|
23
|
+
errors?: ErrorResponse[];
|
|
24
|
+
}
|
|
6
25
|
export interface ActionOption {
|
|
7
26
|
prefix?: string;
|
|
8
27
|
alias?: string[];
|
|
@@ -22,6 +41,7 @@ export interface ActionApiOption {
|
|
|
22
41
|
middleware?: MiddlewareParamArray;
|
|
23
42
|
middlewareIgnore?: MiddlewareParamArray;
|
|
24
43
|
ignoreGlobalPrefix?: boolean;
|
|
44
|
+
response?: ActionResponseOption;
|
|
25
45
|
}
|
|
26
46
|
export declare class AppsConfigTmp {
|
|
27
47
|
}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x6dee2f=a16_0x5830;function a16_0x44d4(){var _0x9e8fee=['search','defineProperty','6XLbWhE','3369064FsByog','constructor','9144947ZnPpYr','876576jLUqnS','258291CZoXZq','ACTION_RESPONSE_KEY','225258pouKDq','ACTION_ROUTE_KEY','__esModule','anncic-api:apps:config','toString','1927540lXQBAd','anncic-api:action:response','(((.+)+)+)+$','ACTION_KEY','25cQRNIl','APPSCONFIG_KEY','349506ARBgIh','anncic-api:action','apply','AppsConfigTmp'];a16_0x44d4=function(){return _0x9e8fee;};return a16_0x44d4();}function a16_0x5830(_0x579c08,_0x6ec7fc){var _0x5d4338=a16_0x44d4();return a16_0x5830=function(_0x6ad9a1,_0x4479fc){_0x6ad9a1=_0x6ad9a1-0x1ab;var _0x44d48c=_0x5d4338[_0x6ad9a1];return _0x44d48c;},a16_0x5830(_0x579c08,_0x6ec7fc);}(function(_0x23dc42,_0x5cf39e){var _0x4ab8ce=a16_0x5830,_0x407e5d=_0x23dc42();while(!![]){try{var _0x27b4e6=parseInt(_0x4ab8ce(0x1c0))/0x1+-parseInt(_0x4ab8ce(0x1af))/0x2+parseInt(_0x4ab8ce(0x1ae))/0x3*(parseInt(_0x4ab8ce(0x1ba))/0x4)+parseInt(_0x4ab8ce(0x1be))/0x5*(-parseInt(_0x4ab8ce(0x1b5))/0x6)+parseInt(_0x4ab8ce(0x1b1))/0x7+parseInt(_0x4ab8ce(0x1b2))/0x8+parseInt(_0x4ab8ce(0x1b3))/0x9;if(_0x27b4e6===_0x5cf39e)break;else _0x407e5d['push'](_0x407e5d['shift']());}catch(_0x3fa831){_0x407e5d['push'](_0x407e5d['shift']());}}}(a16_0x44d4,0xd83d9));var a16_0x4479fc=(function(){var _0x5f13b6=!![];return function(_0x248451,_0x4abb52){var _0x2d7f2d=_0x5f13b6?function(){var _0x215f04=a16_0x5830;if(_0x4abb52){var _0x163e74=_0x4abb52[_0x215f04(0x1c2)](_0x248451,arguments);return _0x4abb52=null,_0x163e74;}}:function(){};return _0x5f13b6=![],_0x2d7f2d;};}()),a16_0x6ad9a1=a16_0x4479fc(this,function(){var _0x5e8b8e=a16_0x5830;return a16_0x6ad9a1['toString']()[_0x5e8b8e(0x1ac)]('(((.+)+)+)+$')[_0x5e8b8e(0x1b9)]()[_0x5e8b8e(0x1b0)](a16_0x6ad9a1)[_0x5e8b8e(0x1ac)](_0x5e8b8e(0x1bc));});a16_0x6ad9a1();'use strict';Object[a16_0x6dee2f(0x1ad)](exports,a16_0x6dee2f(0x1b7),{'value':!![]}),exports[a16_0x6dee2f(0x1ab)]=exports[a16_0x6dee2f(0x1bf)]=exports[a16_0x6dee2f(0x1b4)]=exports['ACTION_ROUTE_KEY']=exports[a16_0x6dee2f(0x1bd)]=void 0x0,exports[a16_0x6dee2f(0x1bd)]=a16_0x6dee2f(0x1c1),exports[a16_0x6dee2f(0x1b6)]='anncic-api:action:route',exports[a16_0x6dee2f(0x1b4)]=a16_0x6dee2f(0x1bb),exports[a16_0x6dee2f(0x1bf)]=a16_0x6dee2f(0x1b8);class AppsConfigTmp{}exports[a16_0x6dee2f(0x1ab)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a17_0x1a02b6=a17_0xf5ca;(function(_0x5e25db,_0x33fdc8){var _0x24cb48=a17_0xf5ca,_0x457d84=_0x5e25db();while(!![]){try{var _0x2c9801=parseInt(_0x24cb48(0x1e8))/0x1*(parseInt(_0x24cb48(0x1f0))/0x2)+parseInt(_0x24cb48(0x1d2))/0x3+-parseInt(_0x24cb48(0x1f5))/0x4+parseInt(_0x24cb48(0x1e5))/0x5*(parseInt(_0x24cb48(0x1d6))/0x6)+parseInt(_0x24cb48(0x1d5))/0x7*(-parseInt(_0x24cb48(0x1d4))/0x8)+-parseInt(_0x24cb48(0x1cf))/0x9+parseInt(_0x24cb48(0x1e1))/0xa*(parseInt(_0x24cb48(0x1ef))/0xb);if(_0x2c9801===_0x33fdc8)break;else _0x457d84['push'](_0x457d84['shift']());}catch(_0x47e3a1){_0x457d84['push'](_0x457d84['shift']());}}}(a17_0x428a,0x3f793));var a17_0x5bf4ad=(function(){var _0x4c9e21=!![];return function(_0x2cdcad,_0x3102c4){var _0x363948=_0x4c9e21?function(){var _0x3e73aa=a17_0xf5ca;if(_0x3102c4){var _0x130bed=_0x3102c4[_0x3e73aa(0x1e0)](_0x2cdcad,arguments);return _0x3102c4=null,_0x130bed;}}:function(){};return _0x4c9e21=![],_0x363948;};}()),a17_0x2bb574=a17_0x5bf4ad(this,function(){var _0x2f95cf=a17_0xf5ca;return a17_0x2bb574[_0x2f95cf(0x1f1)]()[_0x2f95cf(0x1d3)](_0x2f95cf(0x1df))[_0x2f95cf(0x1f1)]()[_0x2f95cf(0x1ee)](a17_0x2bb574)[_0x2f95cf(0x1d3)]('(((.+)+)+)+$');});a17_0x2bb574();'use strict';var __decorate=this&&this[a17_0x1a02b6(0x1d7)]||function(_0x18a4d5,_0x3261c1,_0x529ddb,_0x31db54){var _0x5d266b=a17_0x1a02b6,_0xbe6a7e=arguments[_0x5d266b(0x1ea)],_0x596f18=_0xbe6a7e<0x3?_0x3261c1:_0x31db54===null?_0x31db54=Object[_0x5d266b(0x1dd)](_0x3261c1,_0x529ddb):_0x31db54,_0x5953a2;if(typeof Reflect===_0x5d266b(0x1de)&&typeof Reflect['decorate']==='function')_0x596f18=Reflect[_0x5d266b(0x1e2)](_0x18a4d5,_0x3261c1,_0x529ddb,_0x31db54);else{for(var _0x274064=_0x18a4d5['length']-0x1;_0x274064>=0x0;_0x274064--)if(_0x5953a2=_0x18a4d5[_0x274064])_0x596f18=(_0xbe6a7e<0x3?_0x5953a2(_0x596f18):_0xbe6a7e>0x3?_0x5953a2(_0x3261c1,_0x529ddb,_0x596f18):_0x5953a2(_0x3261c1,_0x529ddb))||_0x596f18;}return _0xbe6a7e>0x3&&_0x596f18&&Object['defineProperty'](_0x3261c1,_0x529ddb,_0x596f18),_0x596f18;},__metadata=this&&this['__metadata']||function(_0x1d0841,_0x333f36){var _0x47addb=a17_0x1a02b6;if(typeof Reflect==='object'&&typeof Reflect[_0x47addb(0x1d9)]===_0x47addb(0x1d1))return Reflect[_0x47addb(0x1d9)](_0x1d0841,_0x333f36);};function a17_0xf5ca(_0x3522e4,_0x10addb){var _0x3b13f6=a17_0x428a();return a17_0xf5ca=function(_0x2bb574,_0x5bf4ad){_0x2bb574=_0x2bb574-0x1cf;var _0x428a33=_0x3b13f6[_0x2bb574];return _0x428a33;},a17_0xf5ca(_0x3522e4,_0x10addb);}Object[a17_0x1a02b6(0x1e3)](exports,a17_0x1a02b6(0x1da),{'value':!![]}),exports[a17_0x1a02b6(0x1dc)]=void 0x0;const validator_1=require(a17_0x1a02b6(0x1f2));class PageDTO{}function a17_0x428a(){var _0x294582=['getOwnPropertyDescriptor','object','(((.+)+)+)+$','apply','5456890klJjWc','decorate','defineProperty','string','5AMtbBR','RuleType','是否倒序','7572ZuhCLm','_page','length','分页数量','number','prototype','constructor','11cRffUX','76UwCGCZ','toString','@anncic-api/validator','第一页为1,第二页为2','integer','1287636rsiFXQ','trim','1598589BYyqoA','Rule','function','76137dzHfkC','search','80ulYgvB','204981rqsDaw','1161258jHqcLm','__decorate','design:type','metadata','__esModule','_size','PageDTO'];a17_0x428a=function(){return _0x294582;};return a17_0x428a();}exports[a17_0x1a02b6(0x1dc)]=PageDTO,__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a17_0x1a02b6(0x1e6)][a17_0x1a02b6(0x1ec)]()['integer']()['min'](0x1),a17_0x1a02b6(0x1f3)),__metadata(a17_0x1a02b6(0x1d8),Number)],PageDTO[a17_0x1a02b6(0x1ed)],a17_0x1a02b6(0x1e9),void 0x0),__decorate([(0x0,validator_1[a17_0x1a02b6(0x1d0)])(a17_0x1a02b6(0x1eb),validator_1[a17_0x1a02b6(0x1e6)][a17_0x1a02b6(0x1ec)]()[a17_0x1a02b6(0x1f4)]()['min'](0x1)),__metadata('design:type',Number)],PageDTO[a17_0x1a02b6(0x1ed)],a17_0x1a02b6(0x1db),void 0x0),__decorate([(0x0,validator_1[a17_0x1a02b6(0x1d0)])('排序方式',validator_1[a17_0x1a02b6(0x1e6)][a17_0x1a02b6(0x1e4)]()[a17_0x1a02b6(0x1f6)]()),__metadata('design:type',String)],PageDTO[a17_0x1a02b6(0x1ed)],'_order',void 0x0),__decorate([(0x0,validator_1[a17_0x1a02b6(0x1d0)])(a17_0x1a02b6(0x1e7),validator_1[a17_0x1a02b6(0x1e6)][a17_0x1a02b6(0x1ec)]()[a17_0x1a02b6(0x1f4)]()['valid'](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO[a17_0x1a02b6(0x1ed)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a18_0x4fb126=a18_0x4acf;function a18_0x3619(){var _0x4fc6bd=['INTERCEPT_KEY','search','361553JvRarD','anncic-api:intercept','9bxcdym','toString','4406690uhwpSR','817405ndBAbM','defineProperty','apply','195465GmheEx','(((.+)+)+)+$','2xrxYyJ','25596utvlrP','188036uCfbfb','InterceptTargetTmp','10675cUjRim','12AaATHF','464NDqTyL','825pvPMiJ'];a18_0x3619=function(){return _0x4fc6bd;};return a18_0x3619();}(function(_0x394a1f,_0x39db83){var _0x3fc030=a18_0x4acf,_0x267635=_0x394a1f();while(!![]){try{var _0x5b977c=-parseInt(_0x3fc030(0x11e))/0x1+parseInt(_0x3fc030(0x114))/0x2*(-parseInt(_0x3fc030(0x112))/0x3)+-parseInt(_0x3fc030(0x116))/0x4+parseInt(_0x3fc030(0x10f))/0x5*(parseInt(_0x3fc030(0x119))/0x6)+-parseInt(_0x3fc030(0x118))/0x7*(-parseInt(_0x3fc030(0x11a))/0x8)+-parseInt(_0x3fc030(0x120))/0x9*(-parseInt(_0x3fc030(0x10e))/0xa)+parseInt(_0x3fc030(0x11b))/0xb*(-parseInt(_0x3fc030(0x115))/0xc);if(_0x5b977c===_0x39db83)break;else _0x267635['push'](_0x267635['shift']());}catch(_0x29a956){_0x267635['push'](_0x267635['shift']());}}}(a18_0x3619,0x364b5));var a18_0x3ab9df=(function(){var _0x1e54d6=!![];return function(_0x164280,_0x149ab8){var _0x35213c=_0x1e54d6?function(){var _0x5cea43=a18_0x4acf;if(_0x149ab8){var _0x58c0ca=_0x149ab8[_0x5cea43(0x111)](_0x164280,arguments);return _0x149ab8=null,_0x58c0ca;}}:function(){};return _0x1e54d6=![],_0x35213c;};}()),a18_0x33eb61=a18_0x3ab9df(this,function(){var _0x4df229=a18_0x4acf;return a18_0x33eb61[_0x4df229(0x10d)]()[_0x4df229(0x11d)](_0x4df229(0x113))[_0x4df229(0x10d)]()['constructor'](a18_0x33eb61)[_0x4df229(0x11d)]('(((.+)+)+)+$');});a18_0x33eb61();'use strict';function a18_0x4acf(_0xc3104c,_0x21af33){var _0x324293=a18_0x3619();return a18_0x4acf=function(_0x33eb61,_0x3ab9df){_0x33eb61=_0x33eb61-0x10d;var _0x361907=_0x324293[_0x33eb61];return _0x361907;},a18_0x4acf(_0xc3104c,_0x21af33);}Object[a18_0x4fb126(0x110)](exports,'__esModule',{'value':!![]}),exports[a18_0x4fb126(0x117)]=exports[a18_0x4fb126(0x11c)]=void 0x0,exports[a18_0x4fb126(0x11c)]=a18_0x4fb126(0x11f);class InterceptTargetTmp{}exports[a18_0x4fb126(0x117)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@anncic-api/cache": "^3.7.
|
|
22
|
-
"@anncic-api/core": "^3.7.
|
|
23
|
-
"@anncic-api/event": "^3.7.
|
|
24
|
-
"@anncic-api/typeorm": "^3.7.
|
|
25
|
-
"@anncic-api/validator": "^3.7.
|
|
21
|
+
"@anncic-api/cache": "^3.7.7",
|
|
22
|
+
"@anncic-api/core": "^3.7.7",
|
|
23
|
+
"@anncic-api/event": "^3.7.7",
|
|
24
|
+
"@anncic-api/typeorm": "^3.7.7",
|
|
25
|
+
"@anncic-api/validator": "^3.7.7",
|
|
26
26
|
"@midwayjs/busboy": "^3.17.1",
|
|
27
27
|
"@midwayjs/cross-domain": "^3.17.1",
|
|
28
28
|
"@midwayjs/koa": "^3.17.1",
|
|
29
29
|
"@midwayjs/logger": "^3.4.2",
|
|
30
30
|
"@midwayjs/static-file": "^3.17.1",
|
|
31
|
-
"anncic-apihelper": "^3.7.
|
|
31
|
+
"anncic-apihelper": "^3.7.7",
|
|
32
32
|
"exceljs": "^4.4.0",
|
|
33
33
|
"koa-send": "^5.0.1",
|
|
34
34
|
"minimatch": "^10.1.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.2",
|
|
39
39
|
"typescript": "^5.5.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "6be1280f2ca2a13465bc741ae7d15c6e24742c03"
|
|
42
42
|
}
|