anncic-api 3.4.64 → 3.4.65
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/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.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
|
-
|
|
1
|
+
var a0_0x3b81a3=a0_0x3470;(function(_0x5e1d75,_0x551e2f){var _0x2d9450=a0_0x3470,_0x5861fb=_0x5e1d75();while(!![]){try{var _0x8c4427=-parseInt(_0x2d9450(0x12f))/0x1*(parseInt(_0x2d9450(0x125))/0x2)+-parseInt(_0x2d9450(0x12c))/0x3*(parseInt(_0x2d9450(0x116))/0x4)+parseInt(_0x2d9450(0x129))/0x5+-parseInt(_0x2d9450(0x124))/0x6*(parseInt(_0x2d9450(0x130))/0x7)+parseInt(_0x2d9450(0x11a))/0x8+-parseInt(_0x2d9450(0x123))/0x9*(parseInt(_0x2d9450(0x12e))/0xa)+parseInt(_0x2d9450(0x11b))/0xb;if(_0x8c4427===_0x551e2f)break;else _0x5861fb['push'](_0x5861fb['shift']());}catch(_0x3ad546){_0x5861fb['push'](_0x5861fb['shift']());}}}(a0_0x4940,0xc785b));var a0_0x1ef2f4=(function(){var _0x36bbcf=!![];return function(_0x1cc321,_0x4e3ffb){var _0x4baad3=_0x36bbcf?function(){var _0x340451=a0_0x3470;if(_0x4e3ffb){var _0x3b6633=_0x4e3ffb[_0x340451(0x11f)](_0x1cc321,arguments);return _0x4e3ffb=null,_0x3b6633;}}:function(){};return _0x36bbcf=![],_0x4baad3;};}()),a0_0x5995b8=a0_0x1ef2f4(this,function(){var _0x5d3dae=a0_0x3470;return a0_0x5995b8[_0x5d3dae(0x11c)]()[_0x5d3dae(0x119)](_0x5d3dae(0x12d))[_0x5d3dae(0x11c)]()[_0x5d3dae(0x118)](a0_0x5995b8)['search'](_0x5d3dae(0x12d));});function a0_0x4940(){var _0x3c055b=['_token','32PZuwEE','20mb','constructor','search','8721296IZtjIC','36886454MQCjwH','toString','{midway-bull}{','file','apply','json','zhiulanuiy7892387985hnoi','xml','44820SuAxey','33162hWzMUA','46oPORSb','default','name','/runtime','581170CwCBLs','appDir','__esModule','425283kBACGT','(((.+)+)+)+$','1810gszdjx','66047SfaqRN','238cOMFyf','text','dhauo1234420123gg3234901','env','/runtime/.upload','defineProperty'];a0_0x4940=function(){return _0x3c055b;};return a0_0x4940();}a0_0x5995b8();function a0_0x3470(_0x42dde1,_0x33e3de){var _0x592229=a0_0x4940();return a0_0x3470=function(_0x5995b8,_0x1ef2f4){_0x5995b8=_0x5995b8-0x116;var _0x4940cd=_0x592229[_0x5995b8];return _0x4940cd;},a0_0x3470(_0x42dde1,_0x33e3de);}'use strict';Object[a0_0x3b81a3(0x135)](exports,a0_0x3b81a3(0x12b),{'value':!![]}),exports[a0_0x3b81a3(0x126)]=_0x475100=>{var _0x4d2bc4=a0_0x3b81a3;return{'apitest':!![],'keys':_0x475100[_0x4d2bc4(0x127)],'anncicapi':{'requestKey':_0x4d2bc4(0x136),'password':_0x4d2bc4(0x121),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x4d2bc4(0x132)}}},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':'270d','dir':_0x475100[_0x4d2bc4(0x12a)]+_0x4d2bc4(0x128)}},'bodyParser':{'enableTypes':[_0x4d2bc4(0x120),'form',_0x4d2bc4(0x131),_0x4d2bc4(0x122)],'formLimit':'20mb','jsonLimit':_0x4d2bc4(0x117),'textLimit':_0x4d2bc4(0x117),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x475100['appDir']+_0x4d2bc4(0x134),'cleanTimeout':0x5265c00},'busboy':{'mode':_0x4d2bc4(0x11e),'tmpdir':_0x475100[_0x4d2bc4(0x12a)]+_0x4d2bc4(0x134),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x4d2bc4(0x11d)+_0x475100[_0x4d2bc4(0x127)]+':'+((_0x475100===null||_0x475100===void 0x0?void 0x0:_0x475100['env'])?_0x475100[_0x4d2bc4(0x133)]+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x31aef9=a1_0x41f9;(function(_0x6630ee,_0x4f6c13){var _0x15e38b=a1_0x41f9,_0x406b0c=_0x6630ee();while(!![]){try{var _0x56c1df=parseInt(_0x15e38b(0x122))/0x1+-parseInt(_0x15e38b(0x11d))/0x2+-parseInt(_0x15e38b(0x121))/0x3+-parseInt(_0x15e38b(0x115))/0x4+-parseInt(_0x15e38b(0x11a))/0x5*(parseInt(_0x15e38b(0x117))/0x6)+parseInt(_0x15e38b(0x118))/0x7*(parseInt(_0x15e38b(0x11f))/0x8)+-parseInt(_0x15e38b(0x116))/0x9*(-parseInt(_0x15e38b(0x11c))/0xa);if(_0x56c1df===_0x4f6c13)break;else _0x406b0c['push'](_0x406b0c['shift']());}catch(_0x242958){_0x406b0c['push'](_0x406b0c['shift']());}}}(a1_0x23d8,0x57295));var a1_0x4858da=(function(){var _0x2d77c2=!![];return function(_0x5e9ac5,_0x429298){var _0x28230a=_0x2d77c2?function(){var _0x6628c5=a1_0x41f9;if(_0x429298){var _0x2f7125=_0x429298[_0x6628c5(0x114)](_0x5e9ac5,arguments);return _0x429298=null,_0x2f7125;}}:function(){};return _0x2d77c2=![],_0x28230a;};}()),a1_0x3adcf9=a1_0x4858da(this,function(){var _0xce42e7=a1_0x41f9;return a1_0x3adcf9['toString']()[_0xce42e7(0x11b)](_0xce42e7(0x120))[_0xce42e7(0x11e)]()['constructor'](a1_0x3adcf9)[_0xce42e7(0x11b)](_0xce42e7(0x120));});a1_0x3adcf9();'use strict';function a1_0x41f9(_0x2f6981,_0x116117){var _0xfed6ca=a1_0x23d8();return a1_0x41f9=function(_0x3adcf9,_0x4858da){_0x3adcf9=_0x3adcf9-0x114;var _0x23d814=_0xfed6ca[_0x3adcf9];return _0x23d814;},a1_0x41f9(_0x2f6981,_0x116117);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x31aef9(0x119)]=_0x258c49=>{return{};};function a1_0x23d8(){var _0x24e038=['default','641015phYhaI','search','1708180TFqNCA','1323730lOMxgL','toString','352ChoNEW','(((.+)+)+)+$','1266447gxgUUo','565868IRMJci','apply','690752RVOvtv','72EGOruo','18aCrALn','10486pKqXvs'];a1_0x23d8=function(){return _0x24e038;};return a1_0x23d8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x598e74=a2_0x315d;function a2_0x3f0a(){var _0x1339dd=['112tlVZph','(((.+)+)+)+$','43LlCvWe','524418jfTCrP','148JvNUMb','172015ssELPz','19742iEEMSQ','apply','constructor','7619488SXMULj','40130oPemAN','search','default','2610DBZMQp','__esModule','185388fiQBdI','4031157HTXpAm','defineProperty','toString','979aVBIVx'];a2_0x3f0a=function(){return _0x1339dd;};return a2_0x3f0a();}(function(_0x48fd65,_0x5d1ca4){var _0x50578e=a2_0x315d,_0x269fee=_0x48fd65();while(!![]){try{var _0x11865f=parseInt(_0x50578e(0x15a))/0x1*(parseInt(_0x50578e(0x14a))/0x2)+-parseInt(_0x50578e(0x154))/0x3+parseInt(_0x50578e(0x148))/0x4*(-parseInt(_0x50578e(0x149))/0x5)+parseInt(_0x50578e(0x147))/0x6*(parseInt(_0x50578e(0x158))/0x7)+-parseInt(_0x50578e(0x14d))/0x8+-parseInt(_0x50578e(0x151))/0x9*(-parseInt(_0x50578e(0x14e))/0xa)+parseInt(_0x50578e(0x157))/0xb*(parseInt(_0x50578e(0x153))/0xc);if(_0x11865f===_0x5d1ca4)break;else _0x269fee['push'](_0x269fee['shift']());}catch(_0x26a6f0){_0x269fee['push'](_0x269fee['shift']());}}}(a2_0x3f0a,0xc17f6));var a2_0x1ed7e8=(function(){var _0x2afb8b=!![];return function(_0x46fadf,_0x28b44d){var _0x14e1a8=_0x2afb8b?function(){var _0x343dee=a2_0x315d;if(_0x28b44d){var _0x423b8e=_0x28b44d[_0x343dee(0x14b)](_0x46fadf,arguments);return _0x28b44d=null,_0x423b8e;}}:function(){};return _0x2afb8b=![],_0x14e1a8;};}()),a2_0x2e553b=a2_0x1ed7e8(this,function(){var _0x59d6a5=a2_0x315d;return a2_0x2e553b[_0x59d6a5(0x156)]()[_0x59d6a5(0x14f)](_0x59d6a5(0x159))[_0x59d6a5(0x156)]()[_0x59d6a5(0x14c)](a2_0x2e553b)[_0x59d6a5(0x14f)]('(((.+)+)+)+$');});a2_0x2e553b();'use strict';function a2_0x315d(_0x4b42ef,_0xaebe18){var _0x4f0046=a2_0x3f0a();return a2_0x315d=function(_0x2e553b,_0x1ed7e8){_0x2e553b=_0x2e553b-0x147;var _0x3f0aee=_0x4f0046[_0x2e553b];return _0x3f0aee;},a2_0x315d(_0x4b42ef,_0xaebe18);}Object[a2_0x598e74(0x155)](exports,a2_0x598e74(0x152),{'value':!![]}),exports[a2_0x598e74(0x150)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x2bb3(_0x233711,_0x149b5b){const _0xed7fbf=a3_0x330c();return a3_0x2bb3=function(_0x4605a3,_0x1ce866){_0x4605a3=_0x4605a3-0x1e7;let _0x330ce0=_0xed7fbf[_0x4605a3];return _0x330ce0;},a3_0x2bb3(_0x233711,_0x149b5b);}const a3_0x1f7e63=a3_0x2bb3;(function(_0x232d63,_0x46b5dc){const _0x4ede7c=a3_0x2bb3,_0x4dace2=_0x232d63();while(!![]){try{const _0x45cff9=parseInt(_0x4ede7c(0x259))/0x1+parseInt(_0x4ede7c(0x22e))/0x2+parseInt(_0x4ede7c(0x268))/0x3*(parseInt(_0x4ede7c(0x20c))/0x4)+-parseInt(_0x4ede7c(0x22b))/0x5*(-parseInt(_0x4ede7c(0x21f))/0x6)+-parseInt(_0x4ede7c(0x1ef))/0x7+-parseInt(_0x4ede7c(0x249))/0x8+-parseInt(_0x4ede7c(0x269))/0x9*(parseInt(_0x4ede7c(0x205))/0xa);if(_0x45cff9===_0x46b5dc)break;else _0x4dace2['push'](_0x4dace2['shift']());}catch(_0x3895ed){_0x4dace2['push'](_0x4dace2['shift']());}}}(a3_0x330c,0x6df72));const a3_0x1ce866=(function(){let _0x42779b=!![];return function(_0x19287a,_0x17aa76){const _0x51e485=_0x42779b?function(){if(_0x17aa76){const _0x5a27a8=_0x17aa76['apply'](_0x19287a,arguments);return _0x17aa76=null,_0x5a27a8;}}:function(){};return _0x42779b=![],_0x51e485;};}()),a3_0x4605a3=a3_0x1ce866(this,function(){const _0x44fa0=a3_0x2bb3;return a3_0x4605a3[_0x44fa0(0x22f)]()['search'](_0x44fa0(0x1f2))[_0x44fa0(0x22f)]()['constructor'](a3_0x4605a3)[_0x44fa0(0x24c)]('(((.+)+)+)+$');});a3_0x4605a3();'use strict';var __decorate=this&&this[a3_0x1f7e63(0x1f6)]||function(_0x4f92b2,_0x3c8bb2,_0x324c3c,_0x1377ed){const _0x39a363=a3_0x1f7e63;var _0x24bf9c=arguments[_0x39a363(0x215)],_0x266ae6=_0x24bf9c<0x3?_0x3c8bb2:_0x1377ed===null?_0x1377ed=Object[_0x39a363(0x20d)](_0x3c8bb2,_0x324c3c):_0x1377ed,_0x5436b3;if(typeof Reflect===_0x39a363(0x263)&&typeof Reflect['decorate']==='function')_0x266ae6=Reflect[_0x39a363(0x240)](_0x4f92b2,_0x3c8bb2,_0x324c3c,_0x1377ed);else{for(var _0x4f2eb0=_0x4f92b2['length']-0x1;_0x4f2eb0>=0x0;_0x4f2eb0--)if(_0x5436b3=_0x4f92b2[_0x4f2eb0])_0x266ae6=(_0x24bf9c<0x3?_0x5436b3(_0x266ae6):_0x24bf9c>0x3?_0x5436b3(_0x3c8bb2,_0x324c3c,_0x266ae6):_0x5436b3(_0x3c8bb2,_0x324c3c))||_0x266ae6;}return _0x24bf9c>0x3&&_0x266ae6&&Object[_0x39a363(0x25c)](_0x3c8bb2,_0x324c3c,_0x266ae6),_0x266ae6;},__metadata=this&&this['__metadata']||function(_0x199793,_0x3e709e){const _0xd6c2f4=a3_0x1f7e63;if(typeof Reflect===_0xd6c2f4(0x263)&&typeof Reflect[_0xd6c2f4(0x25a)]===_0xd6c2f4(0x1ee))return Reflect['metadata'](_0x199793,_0x3e709e);};Object['defineProperty'](exports,a3_0x1f7e63(0x267),{'value':!![]}),exports[a3_0x1f7e63(0x217)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a3_0x1f7e63(0x242)),ApiError_1=require(a3_0x1f7e63(0x219)),ApiService_1=require(a3_0x1f7e63(0x209)),intercept_1=require('./types/intercept'),action_1=require('./types/action'),fs=require('fs'),koasend=require(a3_0x1f7e63(0x1e7)),koa=require(a3_0x1f7e63(0x231)),upload=require('@midwayjs/busboy'),staticFile=require(a3_0x1f7e63(0x24b)),crossDomain=require(a3_0x1f7e63(0x237)),ConfigDefault=require(a3_0x1f7e63(0x270)),ConfigProduction=require(a3_0x1f7e63(0x1fc)),anncic=require('@anncic-api/core'),anncicCache=require(a3_0x1f7e63(0x1fe)),anncicEvent=require(a3_0x1f7e63(0x260)),anncicTypeorm=require(a3_0x1f7e63(0x226)),anncicValidator=require(a3_0x1f7e63(0x24a)),anncicHelper=require(a3_0x1f7e63(0x272));function a3_0x330c(){const _0x1633f1=['function','5669951PArpGA','AppsConfigTmp','bodyXml','(((.+)+)+)+$','headers','host','https://','__decorate','undefined','443','staticFile','addObject','statSync','./config/config.production','loggerConfig','@anncic-api/cache','includes','dirs','tmpdir','文件不存在','query','getConfiguration','30KOuugv','split','intercept','isClass','./service/ApiService','isString','/runtime/apps-','268kqKXnF','getOwnPropertyDescriptor','upload','clients','target','requestKey','environment','_UNKNOW_','Anncic-api\x20static-file\x20:\x20mkdir\x20','length','lastIndexOf','CustomConfiguration','App','./exception/ApiError','keys','application','.log','filepath','apimit','108870MwMVGj','ApiError','InterceptTargetTmp','assign','getAsync','encrypted','context','@anncic-api/typeorm','MidwayLoggerService','handler','log','Inject','160qhqAXz','ACTION_ROUTE_KEY','string','1272916hCQUXy','toString','registerMethodHandler','@midwayjs/koa','readdirSync','MidwayApplicationManager','getAppDir','body','parse','@midwayjs/cross-domain','key','_matchedRoute','requestMethod','isFunction','anncicapi','input','hanlderApplications','MidwayEnvironmentService','decorate','request','@midwayjs/core','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','description','devices','proceed','dir','default','3431976UVCkdN','@anncic-api/validator','@midwayjs/static-file','search','config','anncic-api','match','/apps','prototype','filterConfig','handlerActionRoute','HEADERS_SIGNATURE','get','toLowerCase','ACTION_KEY','device','591073XwfZmK','metadata','/runtime','defineProperty','module','isDirectory','design:type','@anncic-api/event','DEFAULT','requestContext','object','_matchedRouteMeta','defineProperties','getApplications','__esModule','21405GpWxtF','1790424KPRskY','existsSync','getBaseDir','APPSCONFIG_KEY','MidwayDecoratorService','Configuration','Types','./config/config.default','isNull','anncic-apihelper','loggerService','app','koa-send','getClassMetadata','method','http://','midwayLogger','checksign','ApiService'];a3_0x330c=function(){return _0x1633f1;};return a3_0x330c();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x20afa4=a3_0x1f7e63;await this[_0x20afa4(0x252)](),await this[_0x20afa4(0x1fd)](),await this[_0x20afa4(0x253)](),await this[_0x20afa4(0x23e)]();}async[a3_0x1f7e63(0x253)](){const _0x46d820=a3_0x1f7e63,_0x3c2b55=this['config'][_0x46d820(0x204)](),_0x27e683=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x46d820(0x221)])||{};this['decorator'][_0x46d820(0x230)](action_1[_0x46d820(0x22c)],_0x1f61f9=>{const _0x2ec9f2=_0x46d820;var _0x33b73e;const _0x2891db=(0x0,core_1[_0x2ec9f2(0x1e8)])(action_1[_0x2ec9f2(0x26c)],action_1[_0x2ec9f2(0x1f0)])||{},_0x2fd4f2=_0x1f61f9[_0x2ec9f2(0x25a)],_0x47dfaf=(0x0,core_1['getClassMetadata'])(action_1[_0x2ec9f2(0x257)],_0x1f61f9[_0x2ec9f2(0x210)])||{},_0x6322da=((_0x33b73e=_0x47dfaf===null||_0x47dfaf===void 0x0?void 0x0:_0x47dfaf[_0x2ec9f2(0x21d)])===null||_0x33b73e===void 0x0?void 0x0:_0x33b73e['substring'](0x0,_0x47dfaf['filepath'][_0x2ec9f2(0x216)]('.')))||'',_0x1a4da9=(_0x47dfaf===null||_0x47dfaf===void 0x0?void 0x0:_0x47dfaf[_0x2ec9f2(0x25d)])?(_0x2891db===null||_0x2891db===void 0x0?void 0x0:_0x2891db[_0x47dfaf[_0x2ec9f2(0x25d)]])||{}:{};return{'before':async _0x3eb458=>{const _0x4f8afc=_0x2ec9f2;var _0x3aa344,_0x2f94be,_0xd830e1,_0x4ca018;const _0x44fec2=(_0x3aa344=_0x3eb458===null||_0x3eb458===void 0x0?void 0x0:_0x3eb458[_0x4f8afc(0x210)])===null||_0x3aa344===void 0x0?void 0x0:_0x3aa344[core_2['REQUEST_OBJ_CTX_KEY']],_0x19c817=lodash['defaultsDeep']({},_0x44fec2['request']['body']||_0x44fec2['request'][((_0x2f94be=_0x3c2b55===null||_0x3c2b55===void 0x0?void 0x0:_0x3c2b55[_0x4f8afc(0x1f1)])===null||_0x2f94be===void 0x0?void 0x0:_0x2f94be[_0x4f8afc(0x238)])||'body']||{},_0x44fec2[_0x4f8afc(0x241)][_0x4f8afc(0x203)]||{});_0x44fec2[_0x4f8afc(0x264)]={'module':(_0x1a4da9===null||_0x1a4da9===void 0x0?void 0x0:_0x1a4da9['name'])||'','routePath':''+_0x44fec2['path'],'routeName':_0x47dfaf['routerOptions']['tagName']+'@'+_0x2fd4f2['routerName'],'routeMethod':((_0x2fd4f2===null||_0x2fd4f2===void 0x0?void 0x0:_0x2fd4f2[_0x4f8afc(0x23a)])||_0x44fec2[_0x4f8afc(0x1e9)]||'')[_0x4f8afc(0x256)](),'routeDescription':(_0x2fd4f2===null||_0x2fd4f2===void 0x0?void 0x0:_0x2fd4f2[_0x4f8afc(0x244)])||'','filemethod':_0x6322da+'@'+(_0x2fd4f2[_0x4f8afc(0x1e9)]||'')};if(_0x44fec2&&(_0x2fd4f2===null||_0x2fd4f2===void 0x0?void 0x0:_0x2fd4f2[_0x4f8afc(0x21e)]))try{const _0x5740d0=((_0xd830e1=_0x3c2b55===null||_0x3c2b55===void 0x0?void 0x0:_0x3c2b55[_0x4f8afc(0x23c)])===null||_0xd830e1===void 0x0?void 0x0:_0xd830e1[_0x4f8afc(0x211)])&&typeof(_0x19c817===null||_0x19c817===void 0x0?void 0x0:_0x19c817[_0x3c2b55[_0x4f8afc(0x23c)][_0x4f8afc(0x211)]])==_0x4f8afc(0x22d)?JSON[_0x4f8afc(0x236)](base64_decode(_0x19c817[_0x3c2b55[_0x4f8afc(0x23c)][_0x4f8afc(0x211)]])||'{}')||{}:((_0x4ca018=_0x44fec2===null||_0x44fec2===void 0x0?void 0x0:_0x44fec2[_0x4f8afc(0x241)])===null||_0x4ca018===void 0x0?void 0x0:_0x4ca018[_0x4f8afc(0x1f3)])||{};if(!this[_0x4f8afc(0x1ed)][_0x4f8afc(0x1ec)](_0x5740d0))throw new AnnError(ApiError_1[_0x4f8afc(0x220)][_0x4f8afc(0x254)]);for(const _0x108c3d in _0x5740d0||{}){_0x44fec2[_0x4f8afc(0x1f3)][_0x108c3d]=_0x5740d0[_0x108c3d];}}catch(_0x1180a5){if(_0x1180a5 instanceof AnnError)throw _0x1180a5;else throw new AnnError(ApiError_1[_0x4f8afc(0x220)][_0x4f8afc(0x213)]);}},'around':async _0x3afd41=>{const _0x2d03e6=_0x2ec9f2;var _0x16ac5f,_0xb48c8e,_0x55f132;const _0x422e88=(_0x16ac5f=_0x3afd41===null||_0x3afd41===void 0x0?void 0x0:_0x3afd41[_0x2d03e6(0x210)])===null||_0x16ac5f===void 0x0?void 0x0:_0x16ac5f[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x422e88&&(_0x2fd4f2===null||_0x2fd4f2===void 0x0?void 0x0:_0x2fd4f2['apimit'])&&((_0x2fd4f2===null||_0x2fd4f2===void 0x0?void 0x0:_0x2fd4f2[_0x2d03e6(0x207)])||typeof(_0x2fd4f2===null||_0x2fd4f2===void 0x0?void 0x0:_0x2fd4f2[_0x2d03e6(0x207)])==_0x2d03e6(0x1f7))){if(((_0xb48c8e=_0x422e88['headers'])===null||_0xb48c8e===void 0x0?void 0x0:_0xb48c8e[_0x2d03e6(0x258)])&&((_0x55f132=_0x27e683===null||_0x27e683===void 0x0?void 0x0:_0x27e683[_0x422e88['headers'][_0x2d03e6(0x258)]])===null||_0x55f132===void 0x0?void 0x0:_0x55f132[_0x2d03e6(0x215)])>0x0)for(const _0x384f71 of _0x27e683[_0x422e88[_0x2d03e6(0x1f3)]['device']]||[]){if(core_1[_0x2d03e6(0x26f)][_0x2d03e6(0x208)](_0x384f71)){const _0xfa4a71=await _0x422e88[_0x2d03e6(0x262)][_0x2d03e6(0x223)](_0x384f71);typeof(_0xfa4a71===null||_0xfa4a71===void 0x0?void 0x0:_0xfa4a71[_0x2d03e6(0x24f)])==_0x2d03e6(0x1ee)?await _0xfa4a71[_0x2d03e6(0x24f)](_0x422e88,typeof(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x1e9)])==_0x2d03e6(0x22d)&&(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x239)])?_0x422e88[_0x2d03e6(0x1e9)][_0x2d03e6(0x256)]()+'@'+(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88['_matchedRoute']):undefined,_0x2fd4f2)&&await _0xfa4a71[_0x2d03e6(0x228)](_0x422e88,typeof(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x1e9)])==_0x2d03e6(0x22d)&&(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x239)])?_0x422e88[_0x2d03e6(0x1e9)][_0x2d03e6(0x256)]()+'@'+(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x239)]):undefined,_0x2fd4f2):await _0xfa4a71[_0x2d03e6(0x228)](_0x422e88,typeof(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x1e9)])=='string'&&(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88['_matchedRoute'])?_0x422e88[_0x2d03e6(0x1e9)]['toLowerCase']()+'@'+(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x239)]):undefined,_0x2fd4f2);}else core_1[_0x2d03e6(0x26f)][_0x2d03e6(0x23b)](_0x384f71)&&await _0x384f71(_0x422e88,typeof(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x1e9)])=='string'&&(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88[_0x2d03e6(0x239)])?_0x422e88['method'][_0x2d03e6(0x256)]()+'@'+(_0x422e88===null||_0x422e88===void 0x0?void 0x0:_0x422e88['_matchedRoute']):undefined,_0x2fd4f2);}}return await _0x3afd41[_0x2d03e6(0x246)](..._0x3afd41['args']);},'afterThrow':(_0x30657c,_0x1e23d0)=>{throw _0x1e23d0;}};});}async[a3_0x1f7e63(0x23e)](){const _0x24e3eb=a3_0x1f7e63,_0x1aa68e=this[_0x24e3eb(0x24d)][_0x24e3eb(0x204)]();this[_0x24e3eb(0x21b)][_0x24e3eb(0x266)](['koa'])['forEach'](_0x15333c=>{const _0x3336ae=_0x24e3eb;(_0x15333c===null||_0x15333c===void 0x0?void 0x0:_0x15333c['context'])&&Object[_0x3336ae(0x265)](_0x15333c[_0x3336ae(0x225)],{'hosturl':{'configurable':![],'get':function(){const _0x2293ac=_0x3336ae;var _0x39146e,_0x156792,_0x4c1511,_0xaf3199;if((this===null||this===void 0x0?void 0x0:this[_0x2293ac(0x1f4)])&&!this[_0x2293ac(0x1f4)]['startsWith']('http')){let _0x14025b=this[_0x2293ac(0x1f4)][_0x2293ac(0x206)](':');return['80',_0x2293ac(0x1f8)][_0x2293ac(0x1ff)](_0x14025b===null||_0x14025b===void 0x0?void 0x0:_0x14025b[0x1])?''+(!!((_0x156792=(_0x39146e=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x39146e===void 0x0?void 0x0:_0x39146e['connection'])===null||_0x156792===void 0x0?void 0x0:_0x156792[_0x2293ac(0x224)])||(_0x14025b===null||_0x14025b===void 0x0?void 0x0:_0x14025b[0x1])=='443'?'https://':_0x2293ac(0x1ea))+_0x14025b[0x0]:''+(!!((_0xaf3199=(_0x4c1511=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x4c1511===void 0x0?void 0x0:_0x4c1511['connection'])===null||_0xaf3199===void 0x0?void 0x0:_0xaf3199[_0x2293ac(0x224)])?_0x2293ac(0x1f5):_0x2293ac(0x1ea))+this['host'];}return'';}},'ok':{'value':function(_0x2a07e9,_0x4d06b3,_0x3542bf=0x0){return{'code':_0x3542bf,'data':_0x2a07e9,'extra':_0x4d06b3};}},'input':{'value':function(_0xf11f60,_0x189105){const _0x56e43d=_0x3336ae;var _0xcd692a;const _0x29c3b9=lodash['defaultsDeep']({},this[_0x56e43d(0x241)][_0x56e43d(0x235)]||this['request'][((_0xcd692a=_0x1aa68e===null||_0x1aa68e===void 0x0?void 0x0:_0x1aa68e[_0x56e43d(0x1f1)])===null||_0xcd692a===void 0x0?void 0x0:_0xcd692a[_0x56e43d(0x238)])||_0x56e43d(0x235)]||{},this['request'][_0x56e43d(0x203)]||{});return _0xf11f60?lodash[_0x56e43d(0x255)](_0x29c3b9,_0xf11f60,_0x189105):_0x29c3b9;}},'when':{'value':async function(_0x20969f,_0x1004f4){const _0x368025=_0x3336ae,_0x2249ca=this['input'](_0x20969f,null);if(!lodash[_0x368025(0x271)](_0x2249ca))return await _0x1004f4(_0x2249ca);}},'only':{'value':function(_0x13c472){const _0xc1e47=_0x3336ae,_0x5efb7b={};for(let _0x3a1a91=0x0;_0x3a1a91<_0x13c472[_0xc1e47(0x215)];_0x3a1a91++){lodash['isArray'](_0x13c472[_0x3a1a91])&&_0x13c472[_0x3a1a91][_0xc1e47(0x215)]>0x0&&lodash[_0xc1e47(0x20a)](_0x13c472[_0x3a1a91][0x0])&&(_0x5efb7b[_0x13c472[_0x3a1a91][0x0]]=this[_0xc1e47(0x23d)](_0x13c472[_0x3a1a91][0x0],_0x13c472[_0x3a1a91]['length']>0x1?_0x13c472[_0x3a1a91][0x1]:null));}return _0x5efb7b;}},'koasend':{'value':async function(_0x47d6fe,_0x4b3cb3){const _0x17ec5a=_0x3336ae;if(_0x47d6fe&&!fs['existsSync'](_0x47d6fe)&&!fs['existsSync'](this[_0x17ec5a(0x274)][_0x17ec5a(0x234)]()+'/'+_0x47d6fe))return _0x17ec5a(0x202);return _0x47d6fe=fs[_0x17ec5a(0x26a)](_0x47d6fe)?_0x47d6fe:this[_0x17ec5a(0x274)]['getAppDir']()+'/'+_0x47d6fe,this['attachment'](_0x4b3cb3||_0x47d6fe),await koasend(this,_0x47d6fe);}}});});}async[a3_0x1f7e63(0x1fd)](){const _0x3d9c4d=a3_0x1f7e63;var _0x550364,_0x55548a;if(fs[_0x3d9c4d(0x26a)](this[_0x3d9c4d(0x274)]['getBaseDir']()+_0x3d9c4d(0x250))&&fs['statSync'](this[_0x3d9c4d(0x274)][_0x3d9c4d(0x26b)]()+_0x3d9c4d(0x250))['isDirectory']()){const _0x5bb52d=this['config'][_0x3d9c4d(0x204)](),_0x318553=((_0x550364=_0x5bb52d===null||_0x5bb52d===void 0x0?void 0x0:_0x5bb52d[_0x3d9c4d(0x1eb)])===null||_0x550364===void 0x0?void 0x0:_0x550364[_0x3d9c4d(0x20f)])||{};for(const _0x5bd130 of fs[_0x3d9c4d(0x232)](this['app']['getBaseDir']()+_0x3d9c4d(0x250))){if(!fs[_0x3d9c4d(0x1fb)](this[_0x3d9c4d(0x274)][_0x3d9c4d(0x26b)]()+'/apps/'+_0x5bd130)[_0x3d9c4d(0x25e)]())continue;!(_0x318553===null||_0x318553===void 0x0?void 0x0:_0x318553[_0x5bd130])&&(_0x318553[_0x5bd130]=Object[_0x3d9c4d(0x222)]({},((_0x55548a=_0x5bb52d===null||_0x5bb52d===void 0x0?void 0x0:_0x5bb52d[_0x3d9c4d(0x1eb)])===null||_0x55548a===void 0x0?void 0x0:_0x55548a[_0x3d9c4d(0x248)])||{'maxSize':'1m','dir':this[_0x3d9c4d(0x274)][_0x3d9c4d(0x234)]()+_0x3d9c4d(0x25b)},{'enableJSON':!![],'enableConsole':this[_0x3d9c4d(0x212)]['isDevelopmentEnvironment'](),'fileLogName':_0x5bd130+_0x3d9c4d(0x21c),'dir':this[_0x3d9c4d(0x274)]['getAppDir']()+_0x3d9c4d(0x20b)+_0x5bd130})),this[_0x3d9c4d(0x273)]['createLogger'](_0x5bd130,_0x318553[_0x5bd130]);}Object[_0x3d9c4d(0x21a)](_0x318553)[_0x3d9c4d(0x215)]>0x0&&(!_0x5bb52d[_0x3d9c4d(0x1eb)]&&(_0x5bb52d[_0x3d9c4d(0x1eb)]={'default':{'maxSize':'1m','maxFiles':'270d','dir':this[_0x3d9c4d(0x274)]['getAppDir']()+_0x3d9c4d(0x25b)}}),_0x5bb52d[_0x3d9c4d(0x1eb)][_0x3d9c4d(0x20f)]=_0x318553),this['config'][_0x3d9c4d(0x1fa)](_0x5bb52d);}}async[a3_0x1f7e63(0x252)](){const _0x3c3fe6=a3_0x1f7e63;var _0x3ac163,_0x4ab92c,_0x8fcc59,_0x55e1c8,_0x299538,_0x18348b;const _0x2593b4=this['config'][_0x3c3fe6(0x204)]();((_0x4ab92c=(_0x3ac163=_0x2593b4===null||_0x2593b4===void 0x0?void 0x0:_0x2593b4['anncicapi'])===null||_0x3ac163===void 0x0?void 0x0:_0x3ac163[_0x3c3fe6(0x245)])===null||_0x4ab92c===void 0x0?void 0x0:_0x4ab92c[_0x3c3fe6(0x261)])&&Object[_0x3c3fe6(0x21a)](_0x2593b4[_0x3c3fe6(0x23c)][_0x3c3fe6(0x245)])['length']>0x1&&delete _0x2593b4['anncicapi'][_0x3c3fe6(0x245)][_0x3c3fe6(0x261)];if((_0x8fcc59=_0x2593b4===null||_0x2593b4===void 0x0?void 0x0:_0x2593b4[_0x3c3fe6(0x1f9)])===null||_0x8fcc59===void 0x0?void 0x0:_0x8fcc59[_0x3c3fe6(0x200)])for(const _0x3b53bd in _0x2593b4[_0x3c3fe6(0x1f9)][_0x3c3fe6(0x200)]){((_0x55e1c8=_0x2593b4[_0x3c3fe6(0x1f9)][_0x3c3fe6(0x200)][_0x3b53bd])===null||_0x55e1c8===void 0x0?void 0x0:_0x55e1c8[_0x3c3fe6(0x247)])&&typeof((_0x299538=_0x2593b4[_0x3c3fe6(0x1f9)]['dirs'][_0x3b53bd])===null||_0x299538===void 0x0?void 0x0:_0x299538[_0x3c3fe6(0x247)])==_0x3c3fe6(0x22d)&&!fs[_0x3c3fe6(0x26a)](_0x2593b4[_0x3c3fe6(0x1f9)][_0x3c3fe6(0x200)][_0x3b53bd][_0x3c3fe6(0x247)])&&(fs['mkdirSync'](_0x2593b4[_0x3c3fe6(0x1f9)][_0x3c3fe6(0x200)][_0x3b53bd][_0x3c3fe6(0x247)],{'recursive':!![]}),console['log'](_0x3c3fe6(0x214)+_0x2593b4[_0x3c3fe6(0x1f9)][_0x3c3fe6(0x200)][_0x3b53bd][_0x3c3fe6(0x247)]));}((_0x18348b=_0x2593b4===null||_0x2593b4===void 0x0?void 0x0:_0x2593b4['upload'])===null||_0x18348b===void 0x0?void 0x0:_0x18348b[_0x3c3fe6(0x201)])&&!fs['existsSync'](_0x2593b4[_0x3c3fe6(0x20e)][_0x3c3fe6(0x201)])&&(fs['mkdirSync'](_0x2593b4['upload'][_0x3c3fe6(0x201)],{'recursive':!![]}),console[_0x3c3fe6(0x229)](_0x3c3fe6(0x243)+_0x2593b4['upload'][_0x3c3fe6(0x201)])),this[_0x3c3fe6(0x24d)][_0x3c3fe6(0x1fa)](_0x2593b4);}};exports[a3_0x1f7e63(0x217)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0x1f7e63(0x218)])(),__metadata(a3_0x1f7e63(0x25f),Object)],CustomConfiguration['prototype'],'app',void 0x0),__decorate([(0x0,core_1[a3_0x1f7e63(0x22a)])(),__metadata(a3_0x1f7e63(0x25f),core_2['MidwayConfigService'])],CustomConfiguration[a3_0x1f7e63(0x251)],'config',void 0x0),__decorate([(0x0,core_1[a3_0x1f7e63(0x22a)])(),__metadata(a3_0x1f7e63(0x25f),core_2[a3_0x1f7e63(0x26d)])],CustomConfiguration[a3_0x1f7e63(0x251)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x1f7e63(0x233)])],CustomConfiguration['prototype'],a3_0x1f7e63(0x21b),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x1f7e63(0x25f),core_2[a3_0x1f7e63(0x23f)])],CustomConfiguration['prototype'],a3_0x1f7e63(0x212),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x1f7e63(0x25f),core_1[a3_0x1f7e63(0x227)])],CustomConfiguration[a3_0x1f7e63(0x251)],a3_0x1f7e63(0x273),void 0x0),__decorate([(0x0,core_1[a3_0x1f7e63(0x22a)])(),__metadata(a3_0x1f7e63(0x25f),ApiService_1[a3_0x1f7e63(0x1ed)])],CustomConfiguration[a3_0x1f7e63(0x251)],a3_0x1f7e63(0x1ed),void 0x0),exports[a3_0x1f7e63(0x217)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0x1f7e63(0x26e)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x1f7e63(0x24e),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a3_0x34c67e=a3_0x4988;function a3_0x4b9d(){const _0x2a7c38=['app','apply','filepath','isDevelopmentEnvironment','/apps/','getConfiguration','intercept','@anncic-api/event','apimit','staticFile','ACTION_KEY','request','includes','registerMethodHandler','./config/config.default','application','get','upload','routerName','dir','/apps','ApiService','getClassMetadata','7kGbwGo','tmpdir','@midwayjs/koa','devices','isString','INTERCEPT_KEY','default','prototype','loggerConfig','body','DEFAULT','defineProperty','664413ZGSlGW','CustomConfiguration','log','filterConfig','getApplications','assign','device','design:type','length','koa-send','search','handlerActionRoute','toLowerCase','defaultsDeep','module','_matchedRoute','tagName','attachment','1173280FEqezg','2485743OfyxOF','name','https://','function','createLogger','ApiError','@midwayjs/cross-domain','anncic-apihelper','isClass','getAppDir','handler','split','requestMethod','undefined','metadata','object','文件不存在','proceed','/runtime/apps-','getBaseDir','method','context','4132895PTUiBi','isDirectory','./types/action','isFunction','_matchedRouteMeta','isNull','koa','Types','anncicapi','__metadata','(((.+)+)+)+$','decorator','checksign','decorate','match','string','1866036SWaCcG','loggerService','/runtime','midwayLogger','dirs','encrypted','config','requestKey','./exception/ApiError','APPSCONFIG_KEY','getAsync','1345779kVMUOF','__esModule','description','existsSync','mkdirSync','./config/config.production','toString','parse','keys','@midwayjs/static-file','path','environment','bodyXml','anncic-api','HEADERS_SIGNATURE','Configuration','requestContext','./service/ApiService','args','hanlderApplications','target','startsWith','270d','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','Inject','clients','6995080bqyREk','./types/intercept','__decorate','6vwarfw','substring','statSync','AppsConfigTmp','MidwayApplicationManager','req','70QRAJou','host','443','headers','input','connection','REQUEST_OBJ_CTX_KEY','getOwnPropertyDescriptor','onReady','addObject','MidwayEnvironmentService','@anncic-api/validator','isArray','readdirSync','@midwayjs/core'];a3_0x4b9d=function(){return _0x2a7c38;};return a3_0x4b9d();}(function(_0x2595ed,_0x3782e9){const _0x8badc5=a3_0x4988,_0x3957db=_0x2595ed();while(!![]){try{const _0x2b58b1=-parseInt(_0x8badc5(0xa8))/0x1+-parseInt(_0x8badc5(0xe1))/0x2+-parseInt(_0x8badc5(0xbb))/0x3+parseInt(_0x8badc5(0xba))/0x4+-parseInt(_0x8badc5(0xd1))/0x5*(-parseInt(_0x8badc5(0x109))/0x6)+-parseInt(_0x8badc5(0x135))/0x7*(-parseInt(_0x8badc5(0x106))/0x8)+-parseInt(_0x8badc5(0xec))/0x9*(-parseInt(_0x8badc5(0x10f))/0xa);if(_0x2b58b1===_0x3782e9)break;else _0x3957db['push'](_0x3957db['shift']());}catch(_0x51a683){_0x3957db['push'](_0x3957db['shift']());}}}(a3_0x4b9d,0x9624d));const a3_0x5092e2=(function(){let _0x51a09d=!![];return function(_0x45a57f,_0xfe39f3){const _0x15a292=_0x51a09d?function(){const _0x3e91e8=a3_0x4988;if(_0xfe39f3){const _0xb6b63c=_0xfe39f3[_0x3e91e8(0x11f)](_0x45a57f,arguments);return _0xfe39f3=null,_0xb6b63c;}}:function(){};return _0x51a09d=![],_0x15a292;};}()),a3_0x20c76b=a3_0x5092e2(this,function(){const _0x1dd228=a3_0x4988;return a3_0x20c76b[_0x1dd228(0xf2)]()[_0x1dd228(0xb2)]('(((.+)+)+)+$')[_0x1dd228(0xf2)]()['constructor'](a3_0x20c76b)[_0x1dd228(0xb2)](_0x1dd228(0xdb));});a3_0x20c76b();'use strict';var __decorate=this&&this[a3_0x34c67e(0x108)]||function(_0x5417f3,_0x5c5e2d,_0x986e16,_0x3805e0){const _0x430111=a3_0x34c67e;var _0x4600cf=arguments['length'],_0x3e4730=_0x4600cf<0x3?_0x5c5e2d:_0x3805e0===null?_0x3805e0=Object[_0x430111(0x116)](_0x5c5e2d,_0x986e16):_0x3805e0,_0xb61531;if(typeof Reflect===_0x430111(0xca)&&typeof Reflect['decorate']===_0x430111(0xbe))_0x3e4730=Reflect[_0x430111(0xde)](_0x5417f3,_0x5c5e2d,_0x986e16,_0x3805e0);else{for(var _0x294b1b=_0x5417f3[_0x430111(0xb0)]-0x1;_0x294b1b>=0x0;_0x294b1b--)if(_0xb61531=_0x5417f3[_0x294b1b])_0x3e4730=(_0x4600cf<0x3?_0xb61531(_0x3e4730):_0x4600cf>0x3?_0xb61531(_0x5c5e2d,_0x986e16,_0x3e4730):_0xb61531(_0x5c5e2d,_0x986e16))||_0x3e4730;}return _0x4600cf>0x3&&_0x3e4730&&Object[_0x430111(0xa7)](_0x5c5e2d,_0x986e16,_0x3e4730),_0x3e4730;},__metadata=this&&this[a3_0x34c67e(0xda)]||function(_0x255d00,_0x5e79b6){const _0x3dc38f=a3_0x34c67e;if(typeof Reflect===_0x3dc38f(0xca)&&typeof Reflect[_0x3dc38f(0xc9)]==='function')return Reflect[_0x3dc38f(0xc9)](_0x255d00,_0x5e79b6);};Object[a3_0x34c67e(0xa7)](exports,a3_0x34c67e(0xed),{'value':!![]}),exports[a3_0x34c67e(0xa9)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a3_0x34c67e(0x11d)),ApiError_1=require(a3_0x34c67e(0xe9)),ApiService_1=require(a3_0x34c67e(0xfd)),intercept_1=require(a3_0x34c67e(0x107)),action_1=require(a3_0x34c67e(0xd3)),fs=require('fs'),koasend=require(a3_0x34c67e(0xb1)),koa=require(a3_0x34c67e(0x137)),upload=require('@midwayjs/busboy'),staticFile=require(a3_0x34c67e(0xf5)),crossDomain=require(a3_0x34c67e(0xc1)),ConfigDefault=require(a3_0x34c67e(0x12c)),ConfigProduction=require(a3_0x34c67e(0xf1)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a3_0x34c67e(0x125)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a3_0x34c67e(0x11a)),anncicHelper=require(a3_0x34c67e(0xc2));let CustomConfiguration=class CustomConfiguration{async[a3_0x34c67e(0x117)](){const _0x598cdd=a3_0x34c67e;await this[_0x598cdd(0xab)](),await this[_0x598cdd(0xa4)](),await this[_0x598cdd(0xb3)](),await this[_0x598cdd(0xff)]();}async[a3_0x34c67e(0xb3)](){const _0x232be2=a3_0x34c67e,_0x35a4fc=this[_0x232be2(0xe7)][_0x232be2(0x123)](),_0x4ebb93=(0x0,core_1[_0x232be2(0x134)])(intercept_1[_0x232be2(0x13a)],intercept_1['InterceptTargetTmp'])||{};this[_0x232be2(0xdc)][_0x232be2(0x12b)](action_1['ACTION_ROUTE_KEY'],_0x3390f3=>{const _0x4c4b80=_0x232be2;var _0x2d6cf6;const _0x27c0c9=(0x0,core_1[_0x4c4b80(0x134)])(action_1[_0x4c4b80(0xea)],action_1[_0x4c4b80(0x10c)])||{},_0x498aeb=_0x3390f3[_0x4c4b80(0xc9)],_0x36b9ee=(0x0,core_1[_0x4c4b80(0x134)])(action_1[_0x4c4b80(0x128)],_0x3390f3[_0x4c4b80(0x100)])||{},_0x22f991=((_0x2d6cf6=_0x36b9ee===null||_0x36b9ee===void 0x0?void 0x0:_0x36b9ee[_0x4c4b80(0x120)])===null||_0x2d6cf6===void 0x0?void 0x0:_0x2d6cf6[_0x4c4b80(0x10a)](0x0,_0x36b9ee[_0x4c4b80(0x120)]['lastIndexOf']('.')))||'',_0x289c92=(_0x36b9ee===null||_0x36b9ee===void 0x0?void 0x0:_0x36b9ee[_0x4c4b80(0xb6)])?(_0x27c0c9===null||_0x27c0c9===void 0x0?void 0x0:_0x27c0c9[_0x36b9ee[_0x4c4b80(0xb6)]])||{}:{};return{'before':async _0x281cab=>{const _0x21e69c=_0x4c4b80;var _0x4e3103,_0x23a56c,_0x58eb61,_0x1aaf8b;const _0x2defa1=(_0x4e3103=_0x281cab===null||_0x281cab===void 0x0?void 0x0:_0x281cab[_0x21e69c(0x100)])===null||_0x4e3103===void 0x0?void 0x0:_0x4e3103[core_2[_0x21e69c(0x115)]],_0x37a4ef=lodash[_0x21e69c(0xb5)]({},_0x2defa1[_0x21e69c(0x129)][_0x21e69c(0xa5)]||_0x2defa1['request'][((_0x23a56c=_0x35a4fc===null||_0x35a4fc===void 0x0?void 0x0:_0x35a4fc[_0x21e69c(0xf8)])===null||_0x23a56c===void 0x0?void 0x0:_0x23a56c['key'])||_0x21e69c(0xa5)]||{},_0x2defa1['request']['query']||{});_0x2defa1[_0x21e69c(0xd5)]={'module':(_0x289c92===null||_0x289c92===void 0x0?void 0x0:_0x289c92[_0x21e69c(0xbc)])||'','routePath':''+_0x2defa1[_0x21e69c(0xf6)],'routeName':_0x36b9ee['routerOptions'][_0x21e69c(0xb8)]+'@'+_0x498aeb[_0x21e69c(0x130)],'routeMethod':((_0x498aeb===null||_0x498aeb===void 0x0?void 0x0:_0x498aeb[_0x21e69c(0xc7)])||_0x2defa1[_0x21e69c(0xcf)]||'')[_0x21e69c(0xb4)](),'routeDescription':(_0x498aeb===null||_0x498aeb===void 0x0?void 0x0:_0x498aeb[_0x21e69c(0xee)])||'','filemethod':_0x22f991+'@'+(_0x498aeb[_0x21e69c(0xcf)]||'')};if(_0x2defa1&&(_0x498aeb===null||_0x498aeb===void 0x0?void 0x0:_0x498aeb['apimit']))try{const _0xa621ae=((_0x58eb61=_0x35a4fc===null||_0x35a4fc===void 0x0?void 0x0:_0x35a4fc[_0x21e69c(0xd9)])===null||_0x58eb61===void 0x0?void 0x0:_0x58eb61[_0x21e69c(0xe8)])&&typeof(_0x37a4ef===null||_0x37a4ef===void 0x0?void 0x0:_0x37a4ef[_0x35a4fc['anncicapi'][_0x21e69c(0xe8)]])==_0x21e69c(0xe0)?JSON[_0x21e69c(0xf3)](base64_decode(_0x37a4ef[_0x35a4fc[_0x21e69c(0xd9)]['requestKey']])||'{}')||{}:((_0x1aaf8b=_0x2defa1===null||_0x2defa1===void 0x0?void 0x0:_0x2defa1[_0x21e69c(0x129)])===null||_0x1aaf8b===void 0x0?void 0x0:_0x1aaf8b[_0x21e69c(0x112)])||{};if(!this[_0x21e69c(0x133)][_0x21e69c(0xdd)](_0xa621ae))throw new AnnError(ApiError_1[_0x21e69c(0xc0)][_0x21e69c(0xfa)]);for(const _0x4464ec in _0xa621ae||{}){_0x2defa1['headers'][_0x4464ec]=_0xa621ae[_0x4464ec];}}catch(_0x1e9d83){if(_0x1e9d83 instanceof AnnError)throw _0x1e9d83;else throw new AnnError(ApiError_1['ApiError']['_UNKNOW_']);}},'around':async _0x466986=>{const _0x24347d=_0x4c4b80;var _0x4c3004,_0x90056b,_0xddee27;const _0x5a9e30=(_0x4c3004=_0x466986===null||_0x466986===void 0x0?void 0x0:_0x466986[_0x24347d(0x100)])===null||_0x4c3004===void 0x0?void 0x0:_0x4c3004[core_2[_0x24347d(0x115)]];if(_0x5a9e30&&(_0x498aeb===null||_0x498aeb===void 0x0?void 0x0:_0x498aeb[_0x24347d(0x126)])&&((_0x498aeb===null||_0x498aeb===void 0x0?void 0x0:_0x498aeb[_0x24347d(0x124)])||typeof(_0x498aeb===null||_0x498aeb===void 0x0?void 0x0:_0x498aeb[_0x24347d(0x124)])==_0x24347d(0xc8))){if(((_0x90056b=_0x5a9e30['headers'])===null||_0x90056b===void 0x0?void 0x0:_0x90056b['device'])&&((_0xddee27=_0x4ebb93===null||_0x4ebb93===void 0x0?void 0x0:_0x4ebb93[_0x5a9e30['headers'][_0x24347d(0xae)]])===null||_0xddee27===void 0x0?void 0x0:_0xddee27['length'])>0x0)for(const _0x4c34af of _0x4ebb93[_0x5a9e30[_0x24347d(0x112)][_0x24347d(0xae)]]||[]){if(core_1[_0x24347d(0xd8)][_0x24347d(0xc3)](_0x4c34af)){const _0x3cd35e=await _0x5a9e30[_0x24347d(0xfc)][_0x24347d(0xeb)](_0x4c34af);typeof(_0x3cd35e===null||_0x3cd35e===void 0x0?void 0x0:_0x3cd35e[_0x24347d(0xdf)])==_0x24347d(0xbe)?await _0x3cd35e[_0x24347d(0xdf)](_0x5a9e30,typeof(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xcf)])==_0x24347d(0xe0)&&(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)])?_0x5a9e30[_0x24347d(0xcf)][_0x24347d(0xb4)]()+'@'+(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30['_matchedRoute']):undefined,_0x498aeb)&&await _0x3cd35e[_0x24347d(0xc5)](_0x5a9e30,typeof(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30['method'])==_0x24347d(0xe0)&&(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)])?_0x5a9e30[_0x24347d(0xcf)]['toLowerCase']()+'@'+(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)]):undefined,_0x498aeb):await _0x3cd35e[_0x24347d(0xc5)](_0x5a9e30,typeof(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xcf)])==_0x24347d(0xe0)&&(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)])?_0x5a9e30['method'][_0x24347d(0xb4)]()+'@'+(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)]):undefined,_0x498aeb);}else core_1[_0x24347d(0xd8)][_0x24347d(0xd4)](_0x4c34af)&&await _0x4c34af(_0x5a9e30,typeof(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xcf)])=='string'&&(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)])?_0x5a9e30[_0x24347d(0xcf)]['toLowerCase']()+'@'+(_0x5a9e30===null||_0x5a9e30===void 0x0?void 0x0:_0x5a9e30[_0x24347d(0xb7)]):undefined,_0x498aeb);}}return await _0x466986[_0x24347d(0xcc)](..._0x466986[_0x24347d(0xfe)]);},'afterThrow':(_0x315f7c,_0x3ac71e)=>{throw _0x3ac71e;}};});}async[a3_0x34c67e(0xff)](){const _0x88df94=a3_0x34c67e,_0x20e8be=this[_0x88df94(0xe7)][_0x88df94(0x123)]();this[_0x88df94(0x12d)][_0x88df94(0xac)]([_0x88df94(0xd7)])['forEach'](_0xf05df9=>{const _0x5d951c=_0x88df94;(_0xf05df9===null||_0xf05df9===void 0x0?void 0x0:_0xf05df9[_0x5d951c(0xd0)])&&Object['defineProperties'](_0xf05df9[_0x5d951c(0xd0)],{'hosturl':{'configurable':![],'get':function(){const _0x59e1d7=_0x5d951c;var _0x2c6702,_0x8b35de,_0x15ffaf,_0x55afc8;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x59e1d7(0x110)][_0x59e1d7(0x101)]('http')){let _0xa2fc5e=this[_0x59e1d7(0x110)][_0x59e1d7(0xc6)](':');return['80',_0x59e1d7(0x111)][_0x59e1d7(0x12a)](_0xa2fc5e===null||_0xa2fc5e===void 0x0?void 0x0:_0xa2fc5e[0x1])?''+(!!((_0x8b35de=(_0x2c6702=this===null||this===void 0x0?void 0x0:this[_0x59e1d7(0x10e)])===null||_0x2c6702===void 0x0?void 0x0:_0x2c6702[_0x59e1d7(0x114)])===null||_0x8b35de===void 0x0?void 0x0:_0x8b35de[_0x59e1d7(0xe6)])||(_0xa2fc5e===null||_0xa2fc5e===void 0x0?void 0x0:_0xa2fc5e[0x1])==_0x59e1d7(0x111)?_0x59e1d7(0xbd):'http://')+_0xa2fc5e[0x0]:''+(!!((_0x55afc8=(_0x15ffaf=this===null||this===void 0x0?void 0x0:this[_0x59e1d7(0x10e)])===null||_0x15ffaf===void 0x0?void 0x0:_0x15ffaf[_0x59e1d7(0x114)])===null||_0x55afc8===void 0x0?void 0x0:_0x55afc8[_0x59e1d7(0xe6)])?'https://':'http://')+this[_0x59e1d7(0x110)];}return'';}},'ok':{'value':function(_0x566e28,_0x58322c,_0x8f530=0x0){return{'code':_0x8f530,'data':_0x566e28,'extra':_0x58322c};}},'input':{'value':function(_0x1dbb73,_0x171cce){const _0x58bf46=_0x5d951c;var _0x17f6e2;const _0x244dc6=lodash[_0x58bf46(0xb5)]({},this[_0x58bf46(0x129)][_0x58bf46(0xa5)]||this[_0x58bf46(0x129)][((_0x17f6e2=_0x20e8be===null||_0x20e8be===void 0x0?void 0x0:_0x20e8be[_0x58bf46(0xf8)])===null||_0x17f6e2===void 0x0?void 0x0:_0x17f6e2['key'])||_0x58bf46(0xa5)]||{},this['request']['query']||{});return _0x1dbb73?lodash[_0x58bf46(0x12e)](_0x244dc6,_0x1dbb73,_0x171cce):_0x244dc6;}},'when':{'value':async function(_0x33ccd1,_0x186d72){const _0x3d324e=_0x5d951c,_0x487ad6=this[_0x3d324e(0x113)](_0x33ccd1,null);if(!lodash[_0x3d324e(0xd6)](_0x487ad6))return await _0x186d72(_0x487ad6);}},'only':{'value':function(_0x4466f5){const _0x5391b6=_0x5d951c,_0x4ceae6={};for(let _0x1411ef=0x0;_0x1411ef<_0x4466f5[_0x5391b6(0xb0)];_0x1411ef++){lodash[_0x5391b6(0x11b)](_0x4466f5[_0x1411ef])&&_0x4466f5[_0x1411ef][_0x5391b6(0xb0)]>0x0&&lodash[_0x5391b6(0x139)](_0x4466f5[_0x1411ef][0x0])&&(_0x4ceae6[_0x4466f5[_0x1411ef][0x0]]=this['input'](_0x4466f5[_0x1411ef][0x0],_0x4466f5[_0x1411ef][_0x5391b6(0xb0)]>0x1?_0x4466f5[_0x1411ef][0x1]:null));}return _0x4ceae6;}},'koasend':{'value':async function(_0x2c4d1c,_0x293ad4){const _0xc94e1f=_0x5d951c;if(_0x2c4d1c&&!fs['existsSync'](_0x2c4d1c)&&!fs[_0xc94e1f(0xef)](this[_0xc94e1f(0x11e)][_0xc94e1f(0xc4)]()+'/'+_0x2c4d1c))return _0xc94e1f(0xcb);return _0x2c4d1c=fs[_0xc94e1f(0xef)](_0x2c4d1c)?_0x2c4d1c:this['app'][_0xc94e1f(0xc4)]()+'/'+_0x2c4d1c,this[_0xc94e1f(0xb9)](_0x293ad4||_0x2c4d1c),await koasend(this,_0x2c4d1c);}}});});}async[a3_0x34c67e(0xa4)](){const _0x4c633a=a3_0x34c67e;var _0x8b92b4,_0x227b25;if(fs[_0x4c633a(0xef)](this[_0x4c633a(0x11e)][_0x4c633a(0xce)]()+_0x4c633a(0x132))&&fs[_0x4c633a(0x10b)](this['app'][_0x4c633a(0xce)]()+'/apps')['isDirectory']()){const _0x2e6516=this[_0x4c633a(0xe7)][_0x4c633a(0x123)](),_0x534b89=((_0x8b92b4=_0x2e6516===null||_0x2e6516===void 0x0?void 0x0:_0x2e6516['midwayLogger'])===null||_0x8b92b4===void 0x0?void 0x0:_0x8b92b4[_0x4c633a(0x105)])||{};for(const _0x442367 of fs[_0x4c633a(0x11c)](this[_0x4c633a(0x11e)][_0x4c633a(0xce)]()+_0x4c633a(0x132))){if(!fs[_0x4c633a(0x10b)](this[_0x4c633a(0x11e)][_0x4c633a(0xce)]()+_0x4c633a(0x122)+_0x442367)[_0x4c633a(0xd2)]())continue;!(_0x534b89===null||_0x534b89===void 0x0?void 0x0:_0x534b89[_0x442367])&&(_0x534b89[_0x442367]=Object[_0x4c633a(0xad)]({},((_0x227b25=_0x2e6516===null||_0x2e6516===void 0x0?void 0x0:_0x2e6516[_0x4c633a(0xe4)])===null||_0x227b25===void 0x0?void 0x0:_0x227b25[_0x4c633a(0x13b)])||{'maxSize':'1m','dir':this[_0x4c633a(0x11e)]['getAppDir']()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x4c633a(0xf7)][_0x4c633a(0x121)](),'fileLogName':_0x442367+'.log','dir':this[_0x4c633a(0x11e)][_0x4c633a(0xc4)]()+_0x4c633a(0xcd)+_0x442367})),this[_0x4c633a(0xe2)][_0x4c633a(0xbf)](_0x442367,_0x534b89[_0x442367]);}Object['keys'](_0x534b89)[_0x4c633a(0xb0)]>0x0&&(!_0x2e6516[_0x4c633a(0xe4)]&&(_0x2e6516[_0x4c633a(0xe4)]={'default':{'maxSize':'1m','maxFiles':_0x4c633a(0x102),'dir':this[_0x4c633a(0x11e)][_0x4c633a(0xc4)]()+_0x4c633a(0xe3)}}),_0x2e6516[_0x4c633a(0xe4)][_0x4c633a(0x105)]=_0x534b89),this[_0x4c633a(0xe7)][_0x4c633a(0x118)](_0x2e6516);}}async['filterConfig'](){const _0x18e362=a3_0x34c67e;var _0x447408,_0x4bb0d5,_0x2dd59d,_0x3babdc,_0xc2d4b9,_0xcdcd5d;const _0x26814f=this[_0x18e362(0xe7)][_0x18e362(0x123)]();((_0x4bb0d5=(_0x447408=_0x26814f===null||_0x26814f===void 0x0?void 0x0:_0x26814f[_0x18e362(0xd9)])===null||_0x447408===void 0x0?void 0x0:_0x447408[_0x18e362(0x138)])===null||_0x4bb0d5===void 0x0?void 0x0:_0x4bb0d5[_0x18e362(0xa6)])&&Object[_0x18e362(0xf4)](_0x26814f['anncicapi'][_0x18e362(0x138)])[_0x18e362(0xb0)]>0x1&&delete _0x26814f['anncicapi'][_0x18e362(0x138)][_0x18e362(0xa6)];if((_0x2dd59d=_0x26814f===null||_0x26814f===void 0x0?void 0x0:_0x26814f[_0x18e362(0x127)])===null||_0x2dd59d===void 0x0?void 0x0:_0x2dd59d[_0x18e362(0xe5)])for(const _0xf73fe3 in _0x26814f[_0x18e362(0x127)][_0x18e362(0xe5)]){((_0x3babdc=_0x26814f[_0x18e362(0x127)][_0x18e362(0xe5)][_0xf73fe3])===null||_0x3babdc===void 0x0?void 0x0:_0x3babdc[_0x18e362(0x131)])&&typeof((_0xc2d4b9=_0x26814f[_0x18e362(0x127)][_0x18e362(0xe5)][_0xf73fe3])===null||_0xc2d4b9===void 0x0?void 0x0:_0xc2d4b9[_0x18e362(0x131)])==_0x18e362(0xe0)&&!fs[_0x18e362(0xef)](_0x26814f[_0x18e362(0x127)][_0x18e362(0xe5)][_0xf73fe3][_0x18e362(0x131)])&&(fs[_0x18e362(0xf0)](_0x26814f[_0x18e362(0x127)][_0x18e362(0xe5)][_0xf73fe3]['dir'],{'recursive':!![]}),console[_0x18e362(0xaa)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x26814f[_0x18e362(0x127)][_0x18e362(0xe5)][_0xf73fe3]['dir']));}((_0xcdcd5d=_0x26814f===null||_0x26814f===void 0x0?void 0x0:_0x26814f['upload'])===null||_0xcdcd5d===void 0x0?void 0x0:_0xcdcd5d[_0x18e362(0x136)])&&!fs[_0x18e362(0xef)](_0x26814f[_0x18e362(0x12f)][_0x18e362(0x136)])&&(fs['mkdirSync'](_0x26814f[_0x18e362(0x12f)][_0x18e362(0x136)],{'recursive':!![]}),console[_0x18e362(0xaa)](_0x18e362(0x103)+_0x26814f[_0x18e362(0x12f)][_0x18e362(0x136)])),this[_0x18e362(0xe7)][_0x18e362(0x118)](_0x26814f);}};function a3_0x4988(_0x57ad5e,_0x4c2187){const _0x5ad4c7=a3_0x4b9d();return a3_0x4988=function(_0x20c76b,_0x5092e2){_0x20c76b=_0x20c76b-0xa4;let _0x4b9de8=_0x5ad4c7[_0x20c76b];return _0x4b9de8;},a3_0x4988(_0x57ad5e,_0x4c2187);}exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata(a3_0x34c67e(0xaf),Object)],CustomConfiguration[a3_0x34c67e(0x13c)],a3_0x34c67e(0x11e),void 0x0),__decorate([(0x0,core_1[a3_0x34c67e(0x104)])(),__metadata(a3_0x34c67e(0xaf),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a3_0x34c67e(0xe7),void 0x0),__decorate([(0x0,core_1[a3_0x34c67e(0x104)])(),__metadata(a3_0x34c67e(0xaf),core_2['MidwayDecoratorService'])],CustomConfiguration[a3_0x34c67e(0x13c)],a3_0x34c67e(0xdc),void 0x0),__decorate([(0x0,core_1[a3_0x34c67e(0x104)])(),__metadata(a3_0x34c67e(0xaf),core_2[a3_0x34c67e(0x10d)])],CustomConfiguration['prototype'],a3_0x34c67e(0x12d),void 0x0),__decorate([(0x0,core_1[a3_0x34c67e(0x104)])(),__metadata('design:type',core_2[a3_0x34c67e(0x119)])],CustomConfiguration[a3_0x34c67e(0x13c)],a3_0x34c67e(0xf7),void 0x0),__decorate([(0x0,core_1[a3_0x34c67e(0x104)])(),__metadata('design:type',core_1['MidwayLoggerService'])],CustomConfiguration[a3_0x34c67e(0x13c)],a3_0x34c67e(0xe2),void 0x0),__decorate([(0x0,core_1[a3_0x34c67e(0x104)])(),__metadata(a3_0x34c67e(0xaf),ApiService_1[a3_0x34c67e(0x133)])],CustomConfiguration[a3_0x34c67e(0x13c)],a3_0x34c67e(0x133),void 0x0),exports[a3_0x34c67e(0xa9)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0x34c67e(0xfb)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x34c67e(0xf9),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x436b7d=a4_0x54da;(function(_0x11791c,_0x42baa0){const _0x492ccc=a4_0x54da,_0x1ea294=_0x11791c();while(!![]){try{const _0x32c9f0=-parseInt(_0x492ccc(0xbb))/0x1+-parseInt(_0x492ccc(0xea))/0x2+-parseInt(_0x492ccc(0xde))/0x3+-parseInt(_0x492ccc(0x100))/0x4+parseInt(_0x492ccc(0xcb))/0x5*(parseInt(_0x492ccc(0xf2))/0x6)+parseInt(_0x492ccc(0xf9))/0x7*(parseInt(_0x492ccc(0xcf))/0x8)+parseInt(_0x492ccc(0xfd))/0x9;if(_0x32c9f0===_0x42baa0)break;else _0x1ea294['push'](_0x1ea294['shift']());}catch(_0x5ce145){_0x1ea294['push'](_0x1ea294['shift']());}}}(a4_0x16c3,0x92a40));const a4_0x3ac2d5=(function(){let _0x17ab18=!![];return function(_0x4e8d4d,_0x437c61){const _0x18a498=_0x17ab18?function(){const _0xe5282f=a4_0x54da;if(_0x437c61){const _0x521267=_0x437c61[_0xe5282f(0xd8)](_0x4e8d4d,arguments);return _0x437c61=null,_0x521267;}}:function(){};return _0x17ab18=![],_0x18a498;};}()),a4_0x245c34=a4_0x3ac2d5(this,function(){const _0x3fa8fa=a4_0x54da;return a4_0x245c34[_0x3fa8fa(0xfc)]()[_0x3fa8fa(0xf4)](_0x3fa8fa(0xcd))[_0x3fa8fa(0xfc)]()[_0x3fa8fa(0xb9)](a4_0x245c34)[_0x3fa8fa(0xf4)](_0x3fa8fa(0xcd));});a4_0x245c34();'use strict';var _a,_b;Object[a4_0x436b7d(0xf5)](exports,'__esModule',{'value':!![]}),exports[a4_0x436b7d(0xe2)]=Action,exports[a4_0x436b7d(0xc8)]=ActionApi,exports['parseRoute']=parseRoute;function a4_0x54da(_0x813f9,_0x340567){const _0x6f705=a4_0x16c3();return a4_0x54da=function(_0x245c34,_0x3ac2d5){_0x245c34=_0x245c34-0xb5;let _0x16c36f=_0x6f705[_0x245c34];return _0x16c36f;},a4_0x54da(_0x813f9,_0x340567);}const fs=require('fs'),validator_1=require(a4_0x436b7d(0xd2)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a4_0x436b7d(0xe5)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x436b7d(0xd5)])===null||_a===void 0x0?void 0x0:_a[a4_0x436b7d(0xc3)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x436b7d(0xd5)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x4c39fc,_0x2ae072,_0x26a393={'middleware':[],'sensitive':!![]}){return _0x88c6dd=>{const _0x63f853=a4_0x54da;var _0x1dfff1;_0x26a393[_0x63f853(0xd3)]=_0x2ae072;const _0x580e85=parseRoute(_0x4c39fc);if(_0x580e85[_0x63f853(0xdb)]){_0x26a393[_0x63f853(0x103)]=_0x26a393[_0x63f853(0x103)]?'/'+_0x580e85[_0x63f853(0xdb)]+'/'+_0x26a393[_0x63f853(0x103)]:'/'+_0x580e85[_0x63f853(0xb6)];_0x580e85[_0x63f853(0x103)]&&(_0x26a393[_0x63f853(0x103)]='/'+_0x580e85[_0x63f853(0x103)]+'/'+_0x26a393[_0x63f853(0x103)]);_0x26a393[_0x63f853(0x103)]=_0x26a393['prefix']['toLowerCase']()[_0x63f853(0xc6)](/\/{2,}/g,'/');const _0x5a7625=getModuleConfig(_0x580e85[_0x63f853(0xc2)]+_0x63f853(0xcc),_0x580e85[_0x63f853(0xdb)],lodash['endsWith'](_0x580e85['filepath'],'ts')?'ts':'js');if(lodash[_0x63f853(0xb5)](_0x5a7625[_0x63f853(0xec)])&&_0x5a7625[_0x63f853(0xec)][_0x63f853(0x102)]>0x0)for(let _0x388b71 in _0x5a7625[_0x63f853(0xec)]){if(((_0x1dfff1=_0x5a7625===null||_0x5a7625===void 0x0?void 0x0:_0x5a7625[_0x63f853(0xc0)])===null||_0x1dfff1===void 0x0?void 0x0:_0x1dfff1[_0x63f853(0x102)])>0x0&&_0x5a7625[_0x63f853(0xc0)][_0x63f853(0xd0)](_0x5a7625['middleware'][_0x388b71])!=-0x1)continue;_0x26a393[_0x63f853(0xec)]['push'](_0x5a7625['middleware'][_0x388b71]);}(0x0,core_1[_0x63f853(0xc7)])(action_1[_0x63f853(0xfa)],_0x88c6dd),(0x0,core_1[_0x63f853(0xee)])(_0x26a393['prefix'],_0x26a393)(_0x88c6dd),(0x0,core_1[_0x63f853(0xf3)])(action_1['ACTION_KEY'],{'prefix':_0x26a393[_0x63f853(0x103)],'pprefix':_0x580e85[_0x63f853(0x103)],'module':_0x580e85[_0x63f853(0xdb)],'filepath':_0x580e85[_0x63f853(0xc9)],'routerOptions':_0x26a393},_0x88c6dd);}else _0x26a393['prefix']=_0x26a393['prefix']?'/'+_0x26a393['prefix']:'/'+_0x580e85[_0x63f853(0xb6)],_0x580e85[_0x63f853(0x103)]&&(_0x26a393[_0x63f853(0x103)]='/'+_0x580e85['prefix']+'/'+_0x26a393[_0x63f853(0x103)]),_0x26a393[_0x63f853(0x103)]=_0x26a393[_0x63f853(0x103)][_0x63f853(0xfb)]()[_0x63f853(0xc6)](/\/{2,}/g,'/'),(0x0,core_1[_0x63f853(0xc7)])(action_1[_0x63f853(0xfa)],_0x88c6dd),(0x0,core_1['Controller'])(_0x26a393[_0x63f853(0x103)],_0x26a393)(_0x88c6dd),(0x0,core_1[_0x63f853(0xf3)])(action_1[_0x63f853(0xfa)],{'prefix':_0x26a393[_0x63f853(0x103)],'module':_0x580e85[_0x63f853(0xdb)],'pprefix':_0x580e85['prefix'],'filepath':_0x580e85['filepath'],'routerOptions':_0x26a393},_0x88c6dd);};}Action[a4_0x436b7d(0xdc)]=function(_0xd0ee97,_0x153531='/',_0xa668e7={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4220e3,_0x477498,_0x196329)=>{const _0x56c472=a4_0x54da;ActionApi(_0xd0ee97,_0x56c472(0xdc),_0x153531,_0xa668e7)(_0x4220e3,_0x477498,_0x196329);};},Action[a4_0x436b7d(0xe3)]=function(_0x3b5963,_0x479ddd='/',_0xf2b2b4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x22daee,_0x1d4c80,_0xcf1893)=>{ActionApi(_0x3b5963,'post',_0x479ddd,_0xf2b2b4)(_0x22daee,_0x1d4c80,_0xcf1893);};};function ActionApi(_0x3e8827,_0x4a5845=a4_0x436b7d(0xdc),_0xb916f3='/',_0x53dccc={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x15047b,_0x388718,_0x372faf)=>{const _0x2a3944=a4_0x54da;var _0xd2a25c,_0x12969b,_0x397d67;!_0x53dccc[_0x2a3944(0xec)]&&(_0x53dccc[_0x2a3944(0xec)]=[]);!((_0xd2a25c=_0x53dccc===null||_0x53dccc===void 0x0?void 0x0:_0x53dccc[_0x2a3944(0xfe)])===null||_0xd2a25c===void 0x0?void 0x0:_0xd2a25c[_0x2a3944(0xdd)])&&(_0x53dccc[_0x2a3944(0xfe)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x2a3944(0xd1)}});if(!_0xb916f3)_0xb916f3='/';else typeof _0xb916f3==_0x2a3944(0xd1)&&(!_0xb916f3[_0x2a3944(0xb8)]('/')&&!_0xb916f3['startsWith']('-')&&(_0xb916f3='/'+_0xb916f3));typeof _0x53dccc[_0x2a3944(0xc1)]==_0x2a3944(0xbf)&&(_0x53dccc['apimit']=!![]);if(((_0x12969b=_0x53dccc===null||_0x53dccc===void 0x0?void 0x0:_0x53dccc['middleware'])===null||_0x12969b===void 0x0?void 0x0:_0x12969b['length'])>0x0&&((_0x397d67=_0x53dccc===null||_0x53dccc===void 0x0?void 0x0:_0x53dccc[_0x2a3944(0xc0)])===null||_0x397d67===void 0x0?void 0x0:_0x397d67[_0x2a3944(0x102)])>0x0)for(let _0x115bd3 in _0x53dccc['middleware']){_0x53dccc[_0x2a3944(0xc0)][_0x2a3944(0xd0)](_0x53dccc[_0x2a3944(0xec)][_0x115bd3])!==-0x1&&(_0x53dccc[_0x2a3944(0xec)][_0x115bd3]=null);}_0x53dccc['routerName']=_0x3e8827,(0x0,validator_1['Validator'])(_0x53dccc[_0x2a3944(0xfe)])(_0x15047b,_0x388718,_0x372faf),(0x0,core_2[_0x2a3944(0xf0)])(Object[_0x2a3944(0xff)](_0x53dccc,{'path':_0xb916f3,'requestMethod':(_0x4a5845||'get')[_0x2a3944(0xfb)]()}))(_0x15047b,_0x388718,_0x372faf),(0x0,core_2[_0x2a3944(0xda)])(action_1[_0x2a3944(0xe0)],{'path':_0xb916f3,'method':_0x388718,'apimit':_0x53dccc[_0x2a3944(0xc1)],'intercept':_0x53dccc[_0x2a3944(0xf7)],'routerName':_0x53dccc[_0x2a3944(0xca)],'description':_0x53dccc['description'],'middleware':(_0x53dccc['middleware']||[])['filter'](_0x438fc4=>!!_0x438fc4),'requestMethod':(_0x4a5845||_0x2a3944(0xdc))[_0x2a3944(0xfb)]()},_0x15047b),(0x0,core_2[_0x2a3944(0xba)])(action_1[_0x2a3944(0xe0)],{'path':_0xb916f3,'method':_0x388718,'apimit':_0x53dccc['apimit'],'intercept':_0x53dccc[_0x2a3944(0xf7)],'routerName':_0x53dccc['routerName'],'description':_0x53dccc[_0x2a3944(0xef)],'middleware':(_0x53dccc[_0x2a3944(0xec)]||[])[_0x2a3944(0xbe)](_0x52e89a=>!!_0x52e89a),'requestMethod':(_0x4a5845||_0x2a3944(0xdc))[_0x2a3944(0xfb)]()})(_0x15047b,_0x388718,_0x372faf);};}function parseRoute(_0x5bd731){const _0x268f38=a4_0x436b7d;_0x5bd731=_0x5bd731[_0x268f38(0xc6)](/(\\|\/)/g,'/');const _0x3f8a36=process[_0x268f38(0xf6)]()[_0x268f38(0xc6)](/(\\|\/)/g,'/'),_0x46e0a1=_0x5bd731[_0x268f38(0xf1)](0x0,_0x3f8a36[_0x268f38(0x102)]+_0x5bd731[_0x268f38(0xf1)](_0x3f8a36['length']+0x1)[_0x268f38(0xd0)]('/')+0x1),_0x37aaeb=_0x5bd731[_0x268f38(0xf1)](_0x46e0a1[_0x268f38(0x102)]+0x1)[_0x268f38(0xc6)](/(\\|\/)/g,'/'),_0x588afb={'route':'','prefix':![],'module':![],'rootpath':_0x46e0a1,'filepath':_0x37aaeb};if(_0x37aaeb[_0x268f38(0xb8)](_0x268f38(0xd6))||_0x37aaeb[_0x268f38(0xb8)](_0x268f38(0xc5))){const _0x2f5d06=_0x37aaeb[_0x268f38(0xf1)]((_0x37aaeb[_0x268f38(0xb8)]('app/controller/')?_0x268f38(0xd6):_0x268f38(0xc5))[_0x268f38(0x102)])[_0x268f38(0xb7)]('/')[_0x268f38(0xbe)](_0x481a22=>_0x481a22&&_0x481a22['trim']());return _0x2f5d06[_0x268f38(0x102)]>0x1&&(_0x588afb[_0x268f38(0x103)]=_0x2f5d06[0x0][_0x268f38(0xfb)](),_0x2f5d06[_0x268f38(0xe4)](0x0,0x1)),_0x588afb[_0x268f38(0xb6)]=('/'+_0x2f5d06[_0x268f38(0xf8)]('/'))[_0x268f38(0xc6)](/(\.ts|\.js)$/,'')[_0x268f38(0xc6)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x268f38(0xfb)]()[_0x268f38(0xc6)](/\/\-/g,'/'),_0x588afb[_0x268f38(0xb6)][_0x268f38(0x101)](_0x268f38(0xe1))&&(_0x588afb[_0x268f38(0xb6)]=_0x588afb['route'][_0x268f38(0xf1)](0x0,_0x588afb[_0x268f38(0xb6)][_0x268f38(0x102)]-0x7)),_0x588afb[_0x268f38(0xb6)][_0x268f38(0x101)]('-controller')&&(_0x588afb['route']=_0x588afb[_0x268f38(0xb6)][_0x268f38(0xf1)](0x0,_0x588afb['route'][_0x268f38(0x102)]-0xb)),_0x588afb;}else{if(_0x37aaeb[_0x268f38(0xb8)](_0x268f38(0xce))){const _0x2203a4=_0x37aaeb[_0x268f38(0xf1)](0x0,_0x37aaeb[_0x268f38(0xd0)]('/apps/')+0x5),_0x318767=_0x37aaeb['substring'](_0x2203a4[_0x268f38(0x102)]+0x1)[_0x268f38(0xc6)](/(\\|\/)/g,'/')[_0x268f38(0xb7)]('/')[0x0];if(_0x37aaeb[_0x268f38(0xb8)](_0x268f38(0xce)+_0x318767+'/controller/')){const _0x5330a6=_0x37aaeb['substring']((_0x2203a4+'/'+_0x318767+_0x268f38(0xbc))[_0x268f38(0x102)])['split']('/')['filter'](_0x3994f1=>_0x3994f1&&_0x3994f1['trim']());return _0x5330a6['length']>0x1&&(_0x588afb['prefix']=_0x5330a6[0x0][_0x268f38(0xfb)](),_0x5330a6[_0x268f38(0xe4)](0x0,0x1)),_0x588afb[_0x268f38(0xdb)]=_0x318767,_0x588afb[_0x268f38(0xb6)]=('/'+_0x318767+'/'+_0x5330a6[_0x268f38(0xf8)]('/'))[_0x268f38(0xc6)](/(\.ts|\.js)$/,'')[_0x268f38(0xc6)](/\/{2,}/g,'/')[_0x268f38(0xd4)](/[\/|A-Z]*[^A-Z]+/g)[_0x268f38(0xf8)]('-')['toLowerCase']()[_0x268f38(0xc6)](/\/\-/g,'/'),_0x588afb[_0x268f38(0xb6)][_0x268f38(0x101)](_0x268f38(0xe1))&&(_0x588afb[_0x268f38(0xb6)]=_0x588afb[_0x268f38(0xb6)]['substring'](0x0,_0x588afb[_0x268f38(0xb6)]['length']-0x7)),_0x588afb[_0x268f38(0xb6)][_0x268f38(0x101)](_0x268f38(0xeb))&&(_0x588afb[_0x268f38(0xb6)]=_0x588afb['route']['substring'](0x0,_0x588afb[_0x268f38(0xb6)][_0x268f38(0x102)]-0xb)),_0x588afb;}throw new Error(_0x37aaeb+_0x268f38(0xd9)+_0x318767+_0x268f38(0xd7));}}throw new Error(_0x37aaeb+_0x268f38(0xdf));}function a4_0x16c3(){const _0x10d0c8=['split','startsWith','constructor','createCustomMethodDecorator','995512zwfsgD','/controller/','existsSync','filter','undefined','middlewareIgnore','apimit','rootpath','MIDWAY_SERVER_ENV','AppsConfigTmp','basic/controller/','replace','saveModule','ActionApi','filepath','routerName','80irRuWs','/apps','(((.+)+)+)+$','apps/','7595128sXYkae','indexOf','string','@anncic-api/validator','tagName','match','env','app/controller/','/controller/文件下','apply','\x20文件请放在apps/','attachClassMetadata','module','get','validationOptions','3552723mdRNia','\x20文件请放在app/controller/文件下','ACTION_ROUTE_KEY','-action','Action','post','splice','../types/action','defaultsDeep','keys','/config.','APPSCONFIG_KEY','2320472OCUfYZ','-controller','middleware','getClassMetadata','Controller','description','RequestMapping','substring','407958zIjBOD','saveClassMetadata','search','defineProperty','cwd','intercept','join','7BHKTom','ACTION_KEY','toLowerCase','toString','18888849xxsveE','validate','assign','781644XAydBM','endsWith','length','prefix','isArray','route'];a4_0x16c3=function(){return _0x10d0c8;};return a4_0x16c3();}const moduleConfigTmp=(0x0,core_1[a4_0x436b7d(0xed)])(action_1[a4_0x436b7d(0xe9)],action_1[a4_0x436b7d(0xc4)])||{};function getModuleConfig(_0x1146ef,_0x4de367,_0x196071){const _0x3ed5a2=a4_0x436b7d;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x4de367])){let _0x3a8156={};if(NODE_ENV&&fs[_0x3ed5a2(0xbd)](_0x1146ef+'/'+_0x4de367+'/config.'+NODE_ENV+'.'+_0x196071)){const _0x350cff=include(_0x1146ef+'/'+_0x4de367+_0x3ed5a2(0xe8)+NODE_ENV+'.'+_0x196071);Object['keys'](_0x350cff)['length']>0x0&&(_0x3a8156=lodash[_0x3ed5a2(0xe6)](_0x3a8156,_0x350cff));}if(fs[_0x3ed5a2(0xbd)](_0x1146ef+_0x3ed5a2(0xe8)+_0x196071)){const _0x59764c=include(_0x1146ef+_0x3ed5a2(0xe8)+_0x196071);Object[_0x3ed5a2(0xe7)](_0x59764c)['length']>0x0&&(_0x3a8156=lodash['defaultsDeep'](_0x3a8156,_0x59764c));}moduleConfigTmp[_0x4de367]=_0x3a8156,(0x0,core_1[_0x3ed5a2(0xf3)])(action_1[_0x3ed5a2(0xe9)],moduleConfigTmp,action_1[_0x3ed5a2(0xc4)]);}return moduleConfigTmp[_0x4de367];}
|
|
1
|
+
const a4_0x186b75=a4_0x5824;(function(_0x279c24,_0x24d24d){const _0x212ca2=a4_0x5824,_0x156ef7=_0x279c24();while(!![]){try{const _0x422782=parseInt(_0x212ca2(0x185))/0x1+parseInt(_0x212ca2(0x172))/0x2*(parseInt(_0x212ca2(0x168))/0x3)+parseInt(_0x212ca2(0x17e))/0x4*(-parseInt(_0x212ca2(0x1a4))/0x5)+-parseInt(_0x212ca2(0x19a))/0x6*(parseInt(_0x212ca2(0x187))/0x7)+-parseInt(_0x212ca2(0x16e))/0x8*(-parseInt(_0x212ca2(0x189))/0x9)+-parseInt(_0x212ca2(0x18e))/0xa+-parseInt(_0x212ca2(0x18a))/0xb;if(_0x422782===_0x24d24d)break;else _0x156ef7['push'](_0x156ef7['shift']());}catch(_0x2d9b8e){_0x156ef7['push'](_0x156ef7['shift']());}}}(a4_0x2063,0x4aedd));const a4_0x80a6bc=(function(){let _0x1e8af1=!![];return function(_0x235a8b,_0x21fb35){const _0x3f4e2b=_0x1e8af1?function(){if(_0x21fb35){const _0x459431=_0x21fb35['apply'](_0x235a8b,arguments);return _0x21fb35=null,_0x459431;}}:function(){};return _0x1e8af1=![],_0x3f4e2b;};}()),a4_0x5c9886=a4_0x80a6bc(this,function(){const _0x559132=a4_0x5824;return a4_0x5c9886[_0x559132(0x15a)]()[_0x559132(0x163)](_0x559132(0x177))[_0x559132(0x15a)]()[_0x559132(0x175)](a4_0x5c9886)[_0x559132(0x163)](_0x559132(0x177));});a4_0x5c9886();'use strict';var _a,_b;Object[a4_0x186b75(0x194)](exports,a4_0x186b75(0x16d),{'value':!![]}),exports['Action']=Action,exports[a4_0x186b75(0x190)]=ActionApi,exports[a4_0x186b75(0x17c)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x186b75(0x1a1)),core_1=require(a4_0x186b75(0x17f)),core_2=require('@midwayjs/core'),action_1=require('../types/action'),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x186b75(0x192)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x186b75(0x192)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x2186e7,_0x3943dc,_0x4619c5={'middleware':[],'sensitive':!![]}){return _0x6f16a9=>{const _0x964d7d=a4_0x5824;var _0x1fd0a5;_0x4619c5[_0x964d7d(0x17a)]=_0x3943dc;const _0x79d128=parseRoute(_0x2186e7);if(_0x79d128[_0x964d7d(0x159)]){_0x4619c5['prefix']=_0x4619c5[_0x964d7d(0x197)]?'/'+_0x79d128[_0x964d7d(0x159)]+'/'+_0x4619c5['prefix']:'/'+_0x79d128[_0x964d7d(0x169)];_0x79d128[_0x964d7d(0x197)]&&(_0x4619c5['prefix']='/'+_0x79d128['prefix']+'/'+_0x4619c5['prefix']);_0x4619c5['prefix']=_0x4619c5[_0x964d7d(0x197)][_0x964d7d(0x165)]()[_0x964d7d(0x19f)](/\/{2,}/g,'/');const _0x3ae743=getModuleConfig(_0x79d128[_0x964d7d(0x198)]+'/apps',_0x79d128[_0x964d7d(0x159)],lodash[_0x964d7d(0x183)](_0x79d128[_0x964d7d(0x161)],'ts')?'ts':'js');if(lodash[_0x964d7d(0x156)](_0x3ae743[_0x964d7d(0x18b)])&&_0x3ae743[_0x964d7d(0x18b)][_0x964d7d(0x1a6)]>0x0)for(let _0x5b0246 in _0x3ae743[_0x964d7d(0x18b)]){if(((_0x1fd0a5=_0x3ae743===null||_0x3ae743===void 0x0?void 0x0:_0x3ae743[_0x964d7d(0x167)])===null||_0x1fd0a5===void 0x0?void 0x0:_0x1fd0a5[_0x964d7d(0x1a6)])>0x0&&_0x3ae743[_0x964d7d(0x167)][_0x964d7d(0x157)](_0x3ae743[_0x964d7d(0x18b)][_0x5b0246])!=-0x1)continue;_0x4619c5[_0x964d7d(0x18b)][_0x964d7d(0x1a5)](_0x3ae743[_0x964d7d(0x18b)][_0x5b0246]);}(0x0,core_1[_0x964d7d(0x180)])(action_1[_0x964d7d(0x182)],_0x6f16a9),(0x0,core_1['Controller'])(_0x4619c5[_0x964d7d(0x197)],_0x4619c5)(_0x6f16a9),(0x0,core_1['saveClassMetadata'])(action_1[_0x964d7d(0x182)],{'prefix':_0x4619c5[_0x964d7d(0x197)],'pprefix':_0x79d128[_0x964d7d(0x197)],'module':_0x79d128[_0x964d7d(0x159)],'filepath':_0x79d128['filepath'],'routerOptions':_0x4619c5},_0x6f16a9);}else _0x4619c5[_0x964d7d(0x197)]=_0x4619c5[_0x964d7d(0x197)]?'/'+_0x4619c5[_0x964d7d(0x197)]:'/'+_0x79d128['route'],_0x79d128[_0x964d7d(0x197)]&&(_0x4619c5[_0x964d7d(0x197)]='/'+_0x79d128[_0x964d7d(0x197)]+'/'+_0x4619c5[_0x964d7d(0x197)]),_0x4619c5[_0x964d7d(0x197)]=_0x4619c5[_0x964d7d(0x197)][_0x964d7d(0x165)]()[_0x964d7d(0x19f)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x964d7d(0x182)],_0x6f16a9),(0x0,core_1[_0x964d7d(0x195)])(_0x4619c5['prefix'],_0x4619c5)(_0x6f16a9),(0x0,core_1[_0x964d7d(0x164)])(action_1[_0x964d7d(0x182)],{'prefix':_0x4619c5['prefix'],'module':_0x79d128[_0x964d7d(0x159)],'pprefix':_0x79d128['prefix'],'filepath':_0x79d128[_0x964d7d(0x161)],'routerOptions':_0x4619c5},_0x6f16a9);};}function a4_0x5824(_0x4da67d,_0x145993){const _0x3fc51f=a4_0x2063();return a4_0x5824=function(_0x5c9886,_0x80a6bc){_0x5c9886=_0x5c9886-0x156;let _0x206377=_0x3fc51f[_0x5c9886];return _0x206377;},a4_0x5824(_0x4da67d,_0x145993);}function a4_0x2063(){const _0x2f3cd4=['/config.','match','/apps/','APPSCONFIG_KEY','undefined','filepath','existsSync','search','saveClassMetadata','toLowerCase','post','middlewareIgnore','1060467HMDaxa','route','ACTION_ROUTE_KEY','split','substring','__esModule','184oTglAr','basic/controller/','createCustomMethodDecorator','filter','2QYGRTv','-controller','\x20文件请放在apps/','constructor','apps/','(((.+)+)+)+$','assign','string','tagName','description','parseRoute','splice','672632CQFtNc','@midwayjs/core','saveModule','get','ACTION_KEY','endsWith','Validator','376156rGbFVA','/controller/文件下','924OBIMTe','attachClassMetadata','233973cvMghC','5560577rFPLkB','middleware','validationOptions','routerName','196420ogyNjB','-action','ActionApi','join','env','keys','defineProperty','Controller','validate','prefix','rootpath','intercept','14880mPspkn','apimit','/controller/','getClassMetadata','trim','replace','startsWith','@anncic-api/validator','RequestMapping','app/controller/','5YrjJym','push','length','isArray','indexOf','defaultsDeep','module','toString','cwd'];a4_0x2063=function(){return _0x2f3cd4;};return a4_0x2063();}Action[a4_0x186b75(0x181)]=function(_0x294b28,_0x13cb52='/',_0x32f9d3={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1a8bac,_0x6c5361,_0xf431be)=>{const _0x2a3177=a4_0x5824;ActionApi(_0x294b28,_0x2a3177(0x181),_0x13cb52,_0x32f9d3)(_0x1a8bac,_0x6c5361,_0xf431be);};},Action[a4_0x186b75(0x166)]=function(_0x200b53,_0x2790bc='/',_0x29fc20={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4b44c1,_0x54bd8f,_0x1558bd)=>{ActionApi(_0x200b53,'post',_0x2790bc,_0x29fc20)(_0x4b44c1,_0x54bd8f,_0x1558bd);};};function ActionApi(_0x3f3ddc,_0x141e73=a4_0x186b75(0x181),_0xc64ccc='/',_0x137b1e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3bf083,_0xa1c256,_0x86d095)=>{const _0x1cac29=a4_0x5824;var _0x483848,_0x391db5,_0x271f90;!_0x137b1e[_0x1cac29(0x18b)]&&(_0x137b1e[_0x1cac29(0x18b)]=[]);!((_0x483848=_0x137b1e===null||_0x137b1e===void 0x0?void 0x0:_0x137b1e[_0x1cac29(0x196)])===null||_0x483848===void 0x0?void 0x0:_0x483848[_0x1cac29(0x18c)])&&(_0x137b1e[_0x1cac29(0x196)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1cac29(0x179)}});if(!_0xc64ccc)_0xc64ccc='/';else typeof _0xc64ccc==_0x1cac29(0x179)&&(!_0xc64ccc[_0x1cac29(0x1a0)]('/')&&!_0xc64ccc[_0x1cac29(0x1a0)]('-')&&(_0xc64ccc='/'+_0xc64ccc));typeof _0x137b1e['apimit']==_0x1cac29(0x160)&&(_0x137b1e[_0x1cac29(0x19b)]=!![]);if(((_0x391db5=_0x137b1e===null||_0x137b1e===void 0x0?void 0x0:_0x137b1e[_0x1cac29(0x18b)])===null||_0x391db5===void 0x0?void 0x0:_0x391db5[_0x1cac29(0x1a6)])>0x0&&((_0x271f90=_0x137b1e===null||_0x137b1e===void 0x0?void 0x0:_0x137b1e[_0x1cac29(0x167)])===null||_0x271f90===void 0x0?void 0x0:_0x271f90[_0x1cac29(0x1a6)])>0x0)for(let _0x527e4b in _0x137b1e[_0x1cac29(0x18b)]){_0x137b1e[_0x1cac29(0x167)]['indexOf'](_0x137b1e['middleware'][_0x527e4b])!==-0x1&&(_0x137b1e[_0x1cac29(0x18b)][_0x527e4b]=null);}_0x137b1e[_0x1cac29(0x18d)]=_0x3f3ddc,(0x0,validator_1[_0x1cac29(0x184)])(_0x137b1e['validate'])(_0x3bf083,_0xa1c256,_0x86d095),(0x0,core_2[_0x1cac29(0x1a2)])(Object[_0x1cac29(0x178)](_0x137b1e,{'path':_0xc64ccc,'requestMethod':(_0x141e73||_0x1cac29(0x181))['toLowerCase']()}))(_0x3bf083,_0xa1c256,_0x86d095),(0x0,core_2[_0x1cac29(0x188)])(action_1[_0x1cac29(0x16a)],{'path':_0xc64ccc,'method':_0xa1c256,'apimit':_0x137b1e['apimit'],'intercept':_0x137b1e[_0x1cac29(0x199)],'routerName':_0x137b1e['routerName'],'description':_0x137b1e['description'],'middleware':(_0x137b1e['middleware']||[])['filter'](_0x30bd62=>!!_0x30bd62),'requestMethod':(_0x141e73||_0x1cac29(0x181))[_0x1cac29(0x165)]()},_0x3bf083),(0x0,core_2[_0x1cac29(0x170)])(action_1[_0x1cac29(0x16a)],{'path':_0xc64ccc,'method':_0xa1c256,'apimit':_0x137b1e[_0x1cac29(0x19b)],'intercept':_0x137b1e[_0x1cac29(0x199)],'routerName':_0x137b1e['routerName'],'description':_0x137b1e[_0x1cac29(0x17b)],'middleware':(_0x137b1e[_0x1cac29(0x18b)]||[])[_0x1cac29(0x171)](_0x57760b=>!!_0x57760b),'requestMethod':(_0x141e73||_0x1cac29(0x181))['toLowerCase']()})(_0x3bf083,_0xa1c256,_0x86d095);};}function parseRoute(_0x990665){const _0x121f66=a4_0x186b75;_0x990665=_0x990665[_0x121f66(0x19f)](/(\\|\/)/g,'/');const _0x2f3262=process[_0x121f66(0x15b)]()[_0x121f66(0x19f)](/(\\|\/)/g,'/'),_0x3d10d6=_0x990665[_0x121f66(0x16c)](0x0,_0x2f3262[_0x121f66(0x1a6)]+_0x990665[_0x121f66(0x16c)](_0x2f3262[_0x121f66(0x1a6)]+0x1)[_0x121f66(0x157)]('/')+0x1),_0xae4ae3=_0x990665[_0x121f66(0x16c)](_0x3d10d6[_0x121f66(0x1a6)]+0x1)[_0x121f66(0x19f)](/(\\|\/)/g,'/'),_0x2a3e20={'route':'','prefix':![],'module':![],'rootpath':_0x3d10d6,'filepath':_0xae4ae3};if(_0xae4ae3[_0x121f66(0x1a0)](_0x121f66(0x1a3))||_0xae4ae3[_0x121f66(0x1a0)](_0x121f66(0x16f))){const _0x482b7f=_0xae4ae3['substring']((_0xae4ae3[_0x121f66(0x1a0)](_0x121f66(0x1a3))?_0x121f66(0x1a3):_0x121f66(0x16f))[_0x121f66(0x1a6)])[_0x121f66(0x16b)]('/')[_0x121f66(0x171)](_0x334c8c=>_0x334c8c&&_0x334c8c['trim']());return _0x482b7f[_0x121f66(0x1a6)]>0x1&&(_0x2a3e20[_0x121f66(0x197)]=_0x482b7f[0x0][_0x121f66(0x165)](),_0x482b7f[_0x121f66(0x17d)](0x0,0x1)),_0x2a3e20[_0x121f66(0x169)]=('/'+_0x482b7f[_0x121f66(0x191)]('/'))[_0x121f66(0x19f)](/(\.ts|\.js)$/,'')[_0x121f66(0x19f)](/\/{2,}/g,'/')[_0x121f66(0x15d)](/[\/|A-Z]*[^A-Z]+/g)[_0x121f66(0x191)]('-')[_0x121f66(0x165)]()[_0x121f66(0x19f)](/\/\-/g,'/'),_0x2a3e20[_0x121f66(0x169)][_0x121f66(0x183)](_0x121f66(0x18f))&&(_0x2a3e20[_0x121f66(0x169)]=_0x2a3e20[_0x121f66(0x169)][_0x121f66(0x16c)](0x0,_0x2a3e20['route'][_0x121f66(0x1a6)]-0x7)),_0x2a3e20[_0x121f66(0x169)][_0x121f66(0x183)](_0x121f66(0x173))&&(_0x2a3e20['route']=_0x2a3e20[_0x121f66(0x169)][_0x121f66(0x16c)](0x0,_0x2a3e20[_0x121f66(0x169)]['length']-0xb)),_0x2a3e20;}else{if(_0xae4ae3[_0x121f66(0x1a0)]('apps/')){const _0x597b71=_0xae4ae3['substring'](0x0,_0xae4ae3[_0x121f66(0x157)](_0x121f66(0x15e))+0x5),_0x49d959=_0xae4ae3[_0x121f66(0x16c)](_0x597b71[_0x121f66(0x1a6)]+0x1)[_0x121f66(0x19f)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0xae4ae3['startsWith'](_0x121f66(0x176)+_0x49d959+_0x121f66(0x19c))){const _0x379980=_0xae4ae3[_0x121f66(0x16c)]((_0x597b71+'/'+_0x49d959+_0x121f66(0x19c))[_0x121f66(0x1a6)])['split']('/')[_0x121f66(0x171)](_0x23d964=>_0x23d964&&_0x23d964[_0x121f66(0x19e)]());return _0x379980[_0x121f66(0x1a6)]>0x1&&(_0x2a3e20[_0x121f66(0x197)]=_0x379980[0x0][_0x121f66(0x165)](),_0x379980[_0x121f66(0x17d)](0x0,0x1)),_0x2a3e20[_0x121f66(0x159)]=_0x49d959,_0x2a3e20[_0x121f66(0x169)]=('/'+_0x49d959+'/'+_0x379980[_0x121f66(0x191)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x121f66(0x19f)](/\/{2,}/g,'/')[_0x121f66(0x15d)](/[\/|A-Z]*[^A-Z]+/g)[_0x121f66(0x191)]('-')[_0x121f66(0x165)]()[_0x121f66(0x19f)](/\/\-/g,'/'),_0x2a3e20['route'][_0x121f66(0x183)](_0x121f66(0x18f))&&(_0x2a3e20[_0x121f66(0x169)]=_0x2a3e20[_0x121f66(0x169)][_0x121f66(0x16c)](0x0,_0x2a3e20[_0x121f66(0x169)]['length']-0x7)),_0x2a3e20[_0x121f66(0x169)]['endsWith'](_0x121f66(0x173))&&(_0x2a3e20[_0x121f66(0x169)]=_0x2a3e20['route'][_0x121f66(0x16c)](0x0,_0x2a3e20[_0x121f66(0x169)]['length']-0xb)),_0x2a3e20;}throw new Error(_0xae4ae3+_0x121f66(0x174)+_0x49d959+_0x121f66(0x186));}}throw new Error(_0xae4ae3+'\x20文件请放在app/controller/文件下');}const moduleConfigTmp=(0x0,core_1[a4_0x186b75(0x19d)])(action_1[a4_0x186b75(0x15f)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x11d00c,_0x242980,_0x5815a2){const _0x345fd3=a4_0x186b75;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x242980])){let _0x5af7d9={};if(NODE_ENV&&fs[_0x345fd3(0x162)](_0x11d00c+'/'+_0x242980+_0x345fd3(0x15c)+NODE_ENV+'.'+_0x5815a2)){const _0x3f5dfc=include(_0x11d00c+'/'+_0x242980+_0x345fd3(0x15c)+NODE_ENV+'.'+_0x5815a2);Object[_0x345fd3(0x193)](_0x3f5dfc)['length']>0x0&&(_0x5af7d9=lodash['defaultsDeep'](_0x5af7d9,_0x3f5dfc));}if(fs[_0x345fd3(0x162)](_0x11d00c+_0x345fd3(0x15c)+_0x5815a2)){const _0x565ef0=include(_0x11d00c+'/config.'+_0x5815a2);Object[_0x345fd3(0x193)](_0x565ef0)[_0x345fd3(0x1a6)]>0x0&&(_0x5af7d9=lodash[_0x345fd3(0x158)](_0x5af7d9,_0x565ef0));}moduleConfigTmp[_0x242980]=_0x5af7d9,(0x0,core_1[_0x345fd3(0x164)])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x242980];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x55fd2e=a5_0x3222;(function(_0x51575b,_0x3d58e2){const _0x2e2ba9=a5_0x3222,_0x11ad5b=_0x51575b();while(!![]){try{const _0x4b472f=parseInt(_0x2e2ba9(0x1bb))/0x1*(-parseInt(_0x2e2ba9(0x1a6))/0x2)+parseInt(_0x2e2ba9(0x1bd))/0x3+parseInt(_0x2e2ba9(0x1b8))/0x4*(parseInt(_0x2e2ba9(0x1b3))/0x5)+-parseInt(_0x2e2ba9(0x1a7))/0x6*(parseInt(_0x2e2ba9(0x1a9))/0x7)+parseInt(_0x2e2ba9(0x1aa))/0x8*(-parseInt(_0x2e2ba9(0x1a8))/0x9)+parseInt(_0x2e2ba9(0x1ac))/0xa*(-parseInt(_0x2e2ba9(0x1ad))/0xb)+parseInt(_0x2e2ba9(0x1af))/0xc;if(_0x4b472f===_0x3d58e2)break;else _0x11ad5b['push'](_0x11ad5b['shift']());}catch(_0x15d504){_0x11ad5b['push'](_0x11ad5b['shift']());}}}(a5_0x5dee,0x5dc9f));const a5_0x52f330=(function(){let _0x39f95d=!![];return function(_0x1ad197,_0x4922e1){const _0x38e27a=_0x39f95d?function(){const _0x463dfe=a5_0x3222;if(_0x4922e1){const _0x3d3662=_0x4922e1[_0x463dfe(0x1ae)](_0x1ad197,arguments);return _0x4922e1=null,_0x3d3662;}}:function(){};return _0x39f95d=![],_0x38e27a;};}()),a5_0x3b9500=a5_0x52f330(this,function(){const _0x26a58e=a5_0x3222;return a5_0x3b9500[_0x26a58e(0x1bc)]()['search'](_0x26a58e(0x1b4))['toString']()[_0x26a58e(0x1b2)](a5_0x3b9500)[_0x26a58e(0x1a2)](_0x26a58e(0x1b4));});a5_0x3b9500();function a5_0x5dee(){const _0x23d536=['1305ZQRsZy','294EqkbSh','728RmKsek','@midwayjs/core','750110kDjIRX','22bVYxcw','apply','6374244rWorkn','getConfig','REQUEST_OBJ_CTX_KEY','constructor','10830MvnMrT','(((.+)+)+)+$','ApitestService','getApplicationContext','isDevelopmentEnvironment','28vNVKuQ','../service/ApitestService','MidwayEnvironmentService','1HVERdP','toString','2269662cZfqDB','apitest','search','/apitest','RequestMapping','app','1250066eqaCeS','18642wFpWLA'];a5_0x5dee=function(){return _0x23d536;};return a5_0x5dee();}'use strict';function a5_0x3222(_0x5827c2,_0x1e1a47){const _0x5eec25=a5_0x5dee();return a5_0x3222=function(_0x3b9500,_0x52f330){_0x3b9500=_0x3b9500-0x1a1;let _0x5dee86=_0x5eec25[_0x3b9500];return _0x5dee86;},a5_0x3222(_0x5827c2,_0x1e1a47);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Apitest']=Apitest;const core_1=require(a5_0x55fd2e(0x1ab)),ApitestService_1=require(a5_0x55fd2e(0x1b9));function Apitest(_0x2c9f32=a5_0x55fd2e(0x1a3),_0x5ce0ed){return(_0x20fa2c,_0x3f804f,_0x1f4180)=>{const _0x25330b=a5_0x3222;return(0x0,core_1[_0x25330b(0x1a4)])({'path':_0x2c9f32,'requestMethod':'get'})(_0x20fa2c,_0x3f804f,_0x1f4180),_0x1f4180['value']=async function(..._0x97778d){const _0x595e31=_0x25330b;var _0x4cae1b;const _0x1f3563=(_0x4cae1b=this[core_1[_0x595e31(0x1b1)]])===null||_0x4cae1b===void 0x0?void 0x0:_0x4cae1b[_0x595e31(0x1a5)];if(_0x1f3563&&_0x1f3563[_0x595e31(0x1b0)](_0x595e31(0x1a1))){const _0x340654=await _0x1f3563[_0x595e31(0x1b6)]()['getAsync'](ApitestService_1[_0x595e31(0x1b5)]),_0x46248b=await _0x1f3563[_0x595e31(0x1b6)]()['getAsync'](core_1[_0x595e31(0x1ba)]);return _0x46248b[_0x595e31(0x1b7)]()&&(_0x5ce0ed['filepath']=!![]),await _0x340654['apidoc'](_0x5ce0ed);}return'';},_0x1f4180;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a6_0x5731(){const _0x3abbd5=['1547112ELfRhj','Intercept','10nADllc','__esModule','4204UTaEQJ','80cFmXKl','search','defineProperty','includes','isArray','InterceptTargetTmp','55VTmluq','toString','INTERCEPT_KEY','constructor','52120FcDCLV','apply','Singleton','ScopeEnum','Scope','(((.+)+)+)+$','6DCWobO','IIntercept','8757AQfuVD','4901820XRKXQQ','62982OtMKMr','toUpperCase','push','665cukVur','41642NxlDIm'];a6_0x5731=function(){return _0x3abbd5;};return a6_0x5731();}const a6_0x4dc80e=a6_0x25b4;function a6_0x25b4(_0x4f4535,_0x4ef46b){const _0x91211a=a6_0x5731();return a6_0x25b4=function(_0x598b4b,_0x16e6bb){_0x598b4b=_0x598b4b-0x104;let _0x57318d=_0x91211a[_0x598b4b];return _0x57318d;},a6_0x25b4(_0x4f4535,_0x4ef46b);}(function(_0x51c51e,_0x3bbecb){const _0x1ed1d0=a6_0x25b4,_0x1c0a24=_0x51c51e();while(!![]){try{const _0x54a7bb=parseInt(_0x1ed1d0(0x113))/0x1*(parseInt(_0x1ed1d0(0x110))/0x2)+parseInt(_0x1ed1d0(0x10a))/0x3+-parseInt(_0x1ed1d0(0x115))/0x4*(-parseInt(_0x1ed1d0(0x10f))/0x5)+-parseInt(_0x1ed1d0(0x108))/0x6*(-parseInt(_0x1ed1d0(0x111))/0x7)+-parseInt(_0x1ed1d0(0x116))/0x8*(parseInt(_0x1ed1d0(0x10c))/0x9)+-parseInt(_0x1ed1d0(0x120))/0xa*(-parseInt(_0x1ed1d0(0x11c))/0xb)+-parseInt(_0x1ed1d0(0x10b))/0xc;if(_0x54a7bb===_0x3bbecb)break;else _0x1c0a24['push'](_0x1c0a24['shift']());}catch(_0x14f534){_0x1c0a24['push'](_0x1c0a24['shift']());}}}(a6_0x5731,0x1d2e3));const a6_0x16e6bb=(function(){let _0x55c32a=!![];return function(_0x2be3c9,_0x21d595){const _0x211740=_0x55c32a?function(){const _0x29e05c=a6_0x25b4;if(_0x21d595){const _0x84daa=_0x21d595[_0x29e05c(0x121)](_0x2be3c9,arguments);return _0x21d595=null,_0x84daa;}}:function(){};return _0x55c32a=![],_0x211740;};}()),a6_0x598b4b=a6_0x16e6bb(this,function(){const _0x3c694f=a6_0x25b4;return a6_0x598b4b['toString']()[_0x3c694f(0x117)](_0x3c694f(0x107))[_0x3c694f(0x11d)]()[_0x3c694f(0x11f)](a6_0x598b4b)[_0x3c694f(0x117)](_0x3c694f(0x107));});a6_0x598b4b();'use strict';Object[a6_0x4dc80e(0x118)](exports,a6_0x4dc80e(0x114),{'value':!![]}),exports[a6_0x4dc80e(0x109)]=void 0x0,exports[a6_0x4dc80e(0x112)]=Intercept;const core_1=require('@midwayjs/core'),intercept_1=require('../types/intercept');function Intercept(_0x43708e){return _0x5ec155=>{const _0x4f210e=a6_0x25b4,_0x310782=(0x0,core_1['getClassMetadata'])(intercept_1[_0x4f210e(0x11e)],intercept_1[_0x4f210e(0x11b)])||{};for(let _0x4aa81d of Array[_0x4f210e(0x11a)](_0x43708e)?_0x43708e:[_0x43708e]){_0x4aa81d=_0x4aa81d[_0x4f210e(0x10d)]();!(_0x310782===null||_0x310782===void 0x0?void 0x0:_0x310782[_0x4aa81d])&&(_0x310782[_0x4aa81d]=[]);if(_0x310782[_0x4aa81d][_0x4f210e(0x119)](_0x5ec155))continue;_0x310782[_0x4aa81d][_0x4f210e(0x10e)](_0x5ec155);}(0x0,core_1['Provide'])()(_0x5ec155),(0x0,core_1[_0x4f210e(0x106)])(core_1[_0x4f210e(0x105)][_0x4f210e(0x104)])(_0x5ec155),(0x0,core_1['saveClassMetadata'])(intercept_1['INTERCEPT_KEY'],_0x310782,intercept_1[_0x4f210e(0x11b)]);};}class IIntercept{async['match'](_0x13b8fd,_0x7de0f,_0x132714){return!![];}}exports[a6_0x4dc80e(0x109)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x4d5d30=a7_0x2452;(function(_0x5d1124,_0x2e9808){var _0x32e96a=a7_0x2452,_0x565de5=_0x5d1124();while(!![]){try{var _0x792c6f=parseInt(_0x32e96a(0x1ff))/0x1*(-parseInt(_0x32e96a(0x1e4))/0x2)+parseInt(_0x32e96a(0x1eb))/0x3*(parseInt(_0x32e96a(0x1f2))/0x4)+parseInt(_0x32e96a(0x1fb))/0x5+parseInt(_0x32e96a(0x1e7))/0x6+-parseInt(_0x32e96a(0x1fe))/0x7*(parseInt(_0x32e96a(0x1e0))/0x8)+-parseInt(_0x32e96a(0x1ef))/0x9*(-parseInt(_0x32e96a(0x1f5))/0xa)+-parseInt(_0x32e96a(0x1ed))/0xb;if(_0x792c6f===_0x2e9808)break;else _0x565de5['push'](_0x565de5['shift']());}catch(_0xe2d17){_0x565de5['push'](_0x565de5['shift']());}}}(a7_0x1b25,0xc3c32));var a7_0x194da7=(function(){var _0x18a45a=!![];return function(_0x98a0ca,_0x3bf98f){var _0x59bd84=_0x18a45a?function(){var _0x57843f=a7_0x2452;if(_0x3bf98f){var _0x85753b=_0x3bf98f[_0x57843f(0x201)](_0x98a0ca,arguments);return _0x3bf98f=null,_0x85753b;}}:function(){};return _0x18a45a=![],_0x59bd84;};}()),a7_0x17a907=a7_0x194da7(this,function(){var _0x171b2a=a7_0x2452;return a7_0x17a907[_0x171b2a(0x200)]()[_0x171b2a(0x1e1)](_0x171b2a(0x1ea))[_0x171b2a(0x200)]()[_0x171b2a(0x1e5)](a7_0x17a907)[_0x171b2a(0x1e1)](_0x171b2a(0x1ea));});a7_0x17a907();'use strict';function a7_0x1b25(){var _0x478f08=['登录超时,请重新登录','signature验证失败','399206MCKxDc','constructor','请求头信息不完整','6649446oxvAgA','HEADERS_LACK','defineProperty','(((.+)+)+)+$','333sGfbEh','metadata','17835015WDHfYF','__esModule','5521707fwxCDe','getOwnPropertyDescriptor','ApiError','52052cTTQLs','TIMEOUT_LOGINTIME','design:type','10ytFaux','请使用正确的设备','decorate','object','__metadata','请求超时,请重试','1871945QoGnzg','HEADERS_DEVICE','HEADERS_CHECKCODE','49154TcvSqO','5SBrOqO','toString','apply','length','function','__decorate','136goYKJb','search'];a7_0x1b25=function(){return _0x478f08;};return a7_0x1b25();}var __decorate=this&&this[a7_0x4d5d30(0x1df)]||function(_0x409288,_0x4b5840,_0x99ee16,_0x1aae9d){var _0x29ad78=a7_0x4d5d30,_0x332843=arguments['length'],_0x429862=_0x332843<0x3?_0x4b5840:_0x1aae9d===null?_0x1aae9d=Object[_0x29ad78(0x1f0)](_0x4b5840,_0x99ee16):_0x1aae9d,_0x3d2070;if(typeof Reflect==='object'&&typeof Reflect[_0x29ad78(0x1f7)]===_0x29ad78(0x203))_0x429862=Reflect['decorate'](_0x409288,_0x4b5840,_0x99ee16,_0x1aae9d);else{for(var _0x147b83=_0x409288[_0x29ad78(0x202)]-0x1;_0x147b83>=0x0;_0x147b83--)if(_0x3d2070=_0x409288[_0x147b83])_0x429862=(_0x332843<0x3?_0x3d2070(_0x429862):_0x332843>0x3?_0x3d2070(_0x4b5840,_0x99ee16,_0x429862):_0x3d2070(_0x4b5840,_0x99ee16))||_0x429862;}return _0x332843>0x3&&_0x429862&&Object[_0x29ad78(0x1e9)](_0x4b5840,_0x99ee16,_0x429862),_0x429862;},__metadata=this&&this[a7_0x4d5d30(0x1f9)]||function(_0x14fe53,_0x3463b1){var _0x1ec18c=a7_0x4d5d30;if(typeof Reflect===_0x1ec18c(0x1f8)&&typeof Reflect[_0x1ec18c(0x1ec)]===_0x1ec18c(0x203))return Reflect[_0x1ec18c(0x1ec)](_0x14fe53,_0x3463b1);};Object[a7_0x4d5d30(0x1e9)](exports,a7_0x4d5d30(0x1ee),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}function a7_0x2452(_0x182888,_0x4d5380){var _0x4ac460=a7_0x1b25();return a7_0x2452=function(_0x17a907,_0x194da7){_0x17a907=_0x17a907-0x1df;var _0x1b25fb=_0x4ac460[_0x17a907];return _0x1b25fb;},a7_0x2452(_0x182888,_0x4d5380);}exports[a7_0x4d5d30(0x1f1)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError[a7_0x4d5d30(0x1e8)]=0x18e72,ApiError[a7_0x4d5d30(0x1fc)]=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError[a7_0x4d5d30(0x1f3)]=0x18e76,__decorate([AnnErrorMsg(a7_0x4d5d30(0x1fa)),__metadata(a7_0x4d5d30(0x1f4),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a7_0x4d5d30(0x1e6)),__metadata(a7_0x4d5d30(0x1f4),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a7_0x4d5d30(0x1f6)),__metadata('design:type',Object)],ApiError,a7_0x4d5d30(0x1fc),void 0x0),__decorate([AnnErrorMsg(a7_0x4d5d30(0x1e3)),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a7_0x4d5d30(0x1f4),Object)],ApiError,a7_0x4d5d30(0x1fd),void 0x0),__decorate([AnnErrorMsg(a7_0x4d5d30(0x1e2)),__metadata(a7_0x4d5d30(0x1f4),Object)],ApiError,a7_0x4d5d30(0x1f3),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x4e82(_0x3e0992,_0x2c8dca){const _0x23a1b1=a8_0x4f64();return a8_0x4e82=function(_0x16bf8e,_0x3b6d85){_0x16bf8e=_0x16bf8e-0x19f;let _0x4f6458=_0x23a1b1[_0x16bf8e];return _0x4f6458;},a8_0x4e82(_0x3e0992,_0x2c8dca);}function a8_0x4f64(){const _0x26a80a=['APPSCONFIG_KEY','1483676EtsPyE','getClassMetadata','getAppsConfig','14449567zcRVoD','8216BxFAEW','search','9891783EbgsYl','7ilXebG','9330145KtdQeP','constructor','AppsConfigTmp','(((.+)+)+)+$','15UMIqFe','get','4147758MuspyJ','10AVNSnw','apply','../types/action','12yIRAoH','8747912JyLpKi'];a8_0x4f64=function(){return _0x26a80a;};return a8_0x4f64();}const a8_0x27462c=a8_0x4e82;(function(_0x232abd,_0x1bfa3a){const _0x5a3328=a8_0x4e82,_0x25079b=_0x232abd();while(!![]){try{const _0x53cd35=-parseInt(_0x5a3328(0x1ad))/0x1*(parseInt(_0x5a3328(0x1a5))/0x2)+-parseInt(_0x5a3328(0x1b3))/0x3*(parseInt(_0x5a3328(0x1a1))/0x4)+parseInt(_0x5a3328(0x1a9))/0x5+-parseInt(_0x5a3328(0x1af))/0x6+-parseInt(_0x5a3328(0x1a8))/0x7*(-parseInt(_0x5a3328(0x19f))/0x8)+-parseInt(_0x5a3328(0x1a7))/0x9+parseInt(_0x5a3328(0x1b0))/0xa*(parseInt(_0x5a3328(0x1a4))/0xb);if(_0x53cd35===_0x1bfa3a)break;else _0x25079b['push'](_0x25079b['shift']());}catch(_0x27701b){_0x25079b['push'](_0x25079b['shift']());}}}(a8_0x4f64,0xe4ddf));const a8_0x3b6d85=(function(){let _0x5818fe=!![];return function(_0x11d491,_0x3a85c5){const _0x2f4f5e=_0x5818fe?function(){const _0x51ad92=a8_0x4e82;if(_0x3a85c5){const _0x240dd5=_0x3a85c5[_0x51ad92(0x1b1)](_0x11d491,arguments);return _0x3a85c5=null,_0x240dd5;}}:function(){};return _0x5818fe=![],_0x2f4f5e;};}()),a8_0x16bf8e=a8_0x3b6d85(this,function(){const _0xa2b1b5=a8_0x4e82;return a8_0x16bf8e['toString']()['search'](_0xa2b1b5(0x1ac))['toString']()[_0xa2b1b5(0x1aa)](a8_0x16bf8e)[_0xa2b1b5(0x1a6)](_0xa2b1b5(0x1ac));});a8_0x16bf8e();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x27462c(0x1a3)]=getAppsConfig;const core_1=require('@midwayjs/core'),action_1=require(a8_0x27462c(0x1b2));function getAppsConfig(_0x4beb78){const _0x36c536=a8_0x27462c,_0x2eb37c=(0x0,core_1[_0x36c536(0x1a2)])(action_1[_0x36c536(0x1a0)],action_1[_0x36c536(0x1ab)])||{};return _0x4beb78?lodash[_0x36c536(0x1ae)](_0x2eb37c,_0x4beb78):_0x2eb37c;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x13b505=a9_0x7b02;function a9_0x3cca(){const _0x5d627a=['query','length','flags.default','iterator','20950623fdIgoo','PARAM','limit','title','type','concat','66vukkbi','array','noreq','prefix','intercept','summary','/static/apitest','boolean','rules','QUERY','filepath','routes','RouteParamTypes','lodash','path','get','8457040kRfArV','describe','request','indexOf','method','description','allow','object','2780540evIGcc','key','push','min','number','default','getClassExtendedMetadata','flags.presence','metadata','endsWith','function','25OADjZz','args','../types/action','items','flags.description','@midwayjs/core','parameterIndex','1893918tKYHvk','substring','required','defineProperty','static/apitest','54518GUSgzT','__esModule','routerOptions','body','File','(((.+)+)+)+$','5722048IOcwIH','startsWith','Object','Number','join','toString','ACTION_ROUTE_KEY','replace','children','isArray','INJECT_CUSTOM_PARAM','tagName','@anncic-api/validator','listModule','header','pprefix','split','apply','name','filter','find','文件上传-','propertyData','route','file','FIELDS','string','HEADERS','2770314DDsyeY','String','getClassMetadata','module'];a9_0x3cca=function(){return _0x5d627a;};return a9_0x3cca();}(function(_0x553c3d,_0x4c3f97){const _0x115c36=a9_0x7b02,_0x48a157=_0x553c3d();while(!![]){try{const _0x10ffc2=parseInt(_0x115c36(0xca))/0x1*(-parseInt(_0x115c36(0xf9))/0x2)+-parseInt(_0x115c36(0xbc))/0x3+parseInt(_0x115c36(0xff))/0x4+parseInt(_0x115c36(0xed))/0x5*(-parseInt(_0x115c36(0xf4))/0x6)+parseInt(_0x115c36(0xe2))/0x7+parseInt(_0x115c36(0xda))/0x8+parseInt(_0x115c36(0xc4))/0x9;if(_0x10ffc2===_0x4c3f97)break;else _0x48a157['push'](_0x48a157['shift']());}catch(_0x1f8512){_0x48a157['push'](_0x48a157['shift']());}}}(a9_0x3cca,0xdea28));const a9_0x17a9a1=(function(){let _0x26f6bf=!![];return function(_0x1f2988,_0x2a98fc){const _0xb9846a=_0x26f6bf?function(){const _0x12454b=a9_0x7b02;if(_0x2a98fc){const _0x3fd27e=_0x2a98fc[_0x12454b(0x110)](_0x1f2988,arguments);return _0x2a98fc=null,_0x3fd27e;}}:function(){};return _0x26f6bf=![],_0xb9846a;};}()),a9_0x573750=a9_0x17a9a1(this,function(){const _0x53951f=a9_0x7b02;return a9_0x573750[_0x53951f(0x104)]()['search'](_0x53951f(0xfe))[_0x53951f(0x104)]()['constructor'](a9_0x573750)['search']('(((.+)+)+)+$');});a9_0x573750();'use strict';Object[a9_0x13b505(0xf7)](exports,a9_0x13b505(0xfa),{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0x13b505(0xd7)),validator_1=require(a9_0x13b505(0x10b)),core_1=require(a9_0x13b505(0xf2)),core_2=require(a9_0x13b505(0xf2)),core_3=require('@midwayjs/core'),action_1=require(a9_0x13b505(0xef));function getRoutes(_0x489b49={'prefix':'/','module':![]}){const _0x46fb06=a9_0x13b505;var _0x11924c,_0xe3afe6;const _0x4acbc6=(0x0,core_3[_0x46fb06(0x10c)])(action_1['ACTION_KEY']),_0x661b63={},_0x1b9ed7=Array[_0x46fb06(0x108)](_0x489b49[_0x46fb06(0x112)]||[])?_0x489b49[_0x46fb06(0x112)]||[]:[_0x489b49[_0x46fb06(0x112)]];_0x5dd8be:for(const _0x1c7c31 of _0x4acbc6){let _0x23ea95=(0x0,core_3[_0x46fb06(0xbe)])(action_1['ACTION_KEY'],_0x1c7c31),_0x273286=(0x0,core_3[_0x46fb06(0xbe)])(action_1[_0x46fb06(0x105)],_0x1c7c31);if(_0x23ea95&&_0x273286){let _0x311166=_0x23ea95[_0x46fb06(0xcd)],_0x5b7f7e={};if(_0x489b49[_0x46fb06(0xbf)]&&(0x0,lodash_1[_0x46fb06(0xd9)])(_0x23ea95,'module',![])!=_0x489b49[_0x46fb06(0xbf)])continue _0x5dd8be;else{if(_0x489b49[_0x46fb06(0xbf)]===![]&&!!(0x0,lodash_1[_0x46fb06(0xd9)])(_0x23ea95,_0x46fb06(0xbf),null))continue _0x5dd8be;}if(_0x489b49[_0x46fb06(0xcd)]&&!_0x311166[_0x46fb06(0x100)](_0x489b49[_0x46fb06(0xcd)]))continue _0x5dd8be;_0x311166!=='/'?(_0x5b7f7e['summary']=(_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95['routerOptions'][_0x46fb06(0x10a)])||(/^\//['test'](_0x311166)?_0x311166[_0x46fb06(0x10f)]('/')[0x1]:_0x311166),_0x5b7f7e[_0x46fb06(0xdf)]=(_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95[_0x46fb06(0xfb)][_0x46fb06(0xdf)])||_0x5b7f7e['summary'],_0x5b7f7e[_0x46fb06(0xd5)]=[]):(_0x5b7f7e[_0x46fb06(0xcf)]=(_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95['routerOptions'][_0x46fb06(0x10a)])||_0x46fb06(0xe7),_0x5b7f7e[_0x46fb06(0xdf)]=(_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95[_0x46fb06(0xfb)][_0x46fb06(0xdf)])||'',_0x5b7f7e[_0x46fb06(0xd5)]=[]);_0x489b49[_0x46fb06(0xd4)]&&(_0x5b7f7e[_0x46fb06(0xd4)]=_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95[_0x46fb06(0xd4)]);(_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95[_0x46fb06(0x10e)])&&(_0x5b7f7e[_0x46fb06(0xcd)]=_0x23ea95[_0x46fb06(0x10e)]);(_0x23ea95===null||_0x23ea95===void 0x0?void 0x0:_0x23ea95[_0x46fb06(0xbf)])&&(_0x5b7f7e[_0x46fb06(0xbf)]=_0x23ea95['module']);let _0x9e6c4a=(0x0,core_3[_0x46fb06(0xbe)])(core_2[_0x46fb06(0x109)],_0x1c7c31)||{};if(typeof _0x273286[Symbol[_0x46fb06(0xc3)]]==='function')for(let _0x440460 of _0x273286){if((_0x489b49===null||_0x489b49===void 0x0?void 0x0:_0x489b49['intercept'])&&!(_0x440460===null||_0x440460===void 0x0?void 0x0:_0x440460[_0x46fb06(0xce)]))continue;let _0x215c6d={};_0x215c6d[_0x46fb06(0xde)]=_0x440460['requestMethod'],_0x215c6d[_0x46fb06(0x116)]=(_0x311166+_0x440460[_0x46fb06(0xd8)])[_0x46fb06(0x106)](/\/{2,}/g,'/'),_0x215c6d[_0x46fb06(0xcf)]=(_0x440460===null||_0x440460===void 0x0?void 0x0:_0x440460['routerName'])||_0x5b7f7e[_0x46fb06(0xcf)]||'default',_0x215c6d[_0x46fb06(0xdf)]=(_0x440460===null||_0x440460===void 0x0?void 0x0:_0x440460[_0x46fb06(0xdf)])||'',_0x215c6d[_0x46fb06(0xdc)]=[];_0x215c6d[_0x46fb06(0x116)][_0x46fb06(0xeb)]('/')&&(_0x215c6d[_0x46fb06(0x116)]=_0x215c6d['route'][_0x46fb06(0xf5)](0x0,_0x215c6d[_0x46fb06(0x116)][_0x46fb06(0xc1)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x215c6d[_0x46fb06(0x116)],_0x46fb06(0xf8))&&!(0x0,lodash_1[_0x46fb06(0x100)])(_0x215c6d[_0x46fb06(0x116)],_0x46fb06(0xd0))&&_0x1b9ed7[_0x46fb06(0xdd)](_0x215c6d['route'])===-0x1){if(!(_0x489b49===null||_0x489b49===void 0x0?void 0x0:_0x489b49[_0x46fb06(0xcc)])){let _0xc10039=(0x0,core_3['getMethodParamTypes'])(new _0x1c7c31(),_0x440460['method']);for(const _0x1ac11e in _0xc10039){let _0x4a4f0f=(_0x11924c=_0x9e6c4a[_0x440460[_0x46fb06(0xde)]])===null||_0x11924c===void 0x0?void 0x0:_0x11924c[_0x46fb06(0x113)](_0x1bbb81=>_0x1bbb81[_0x46fb06(0xf3)]==_0x1ac11e&&_0x1bbb81['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x1bbb81===null||_0x1bbb81===void 0x0?void 0x0:_0x1bbb81[_0x46fb06(0xea)]));if(_0x4a4f0f===null||_0x4a4f0f===void 0x0?void 0x0:_0x4a4f0f[_0x46fb06(0xea)]){let _0xf4fd58=convertTypeToString(_0x4a4f0f[_0x46fb06(0xea)][_0x46fb06(0xc8)]||0x0);if([_0x46fb06(0xc0),'body'][_0x46fb06(0xdd)](_0xf4fd58)!=-0x1&&_0x4a4f0f[_0x46fb06(0xea)][_0x46fb06(0x115)][_0x46fb06(0xdd)](':')==-0x1&&!_0x215c6d[_0x46fb06(0xdc)][_0x46fb06(0x113)](_0x406141=>_0x406141[_0x46fb06(0xe3)]==_0x4a4f0f[_0x46fb06(0xea)]['propertyData']))_0x215c6d[_0x46fb06(0xdc)][_0x46fb06(0xe4)]({'key':_0x4a4f0f[_0x46fb06(0xea)][_0x46fb06(0x115)],'title':_0x4a4f0f[_0x46fb06(0xea)][_0x46fb06(0x115)],'type':convertSchemaType(_0xc10039[_0x4a4f0f[_0x46fb06(0xf3)]][_0x46fb06(0x111)]),'required':![],'default':'','desc':''});else{if(_0xf4fd58==_0x46fb06(0x117)){let _0x29ac93=((_0xe3afe6=_0x4a4f0f===null||_0x4a4f0f===void 0x0?void 0x0:_0x4a4f0f[_0x46fb06(0xea)])===null||_0xe3afe6===void 0x0?void 0x0:_0xe3afe6[_0x46fb06(0x115)])||_0x46fb06(0x117);_0x29ac93['indexOf'](':')==-0x1&&!_0x215c6d[_0x46fb06(0xdc)][_0x46fb06(0x113)](_0x55e4b7=>_0x55e4b7['key']==_0x29ac93&&_0x55e4b7[_0x46fb06(0xc8)]==_0x46fb06(0x117))&&_0x215c6d['request'][_0x46fb06(0xe4)]({'key':_0x29ac93,'title':_0x46fb06(0x114)+_0x29ac93,'type':_0x46fb06(0x117),'required':!![],'default':'','desc':''});}}}else{const _0x48a94f=(0x0,core_3[_0x46fb06(0xe8)])(validator_1['RULES_KEY'],_0xc10039[_0x1ac11e]);_0x48a94f&&_0x215c6d[_0x46fb06(0xdc)][_0x46fb06(0xe4)](...getJoiRequest(_0x48a94f));}}}_0x5b7f7e[_0x46fb06(0xd5)]['push'](_0x215c6d);}}if(_0x5b7f7e['routes'][_0x46fb06(0xc1)]>0x0){let _0x6cef47=_0x661b63[_0x311166];_0x6cef47?(_0x6cef47['summary']!=_0x5b7f7e[_0x46fb06(0xcf)]&&(_0x6cef47[_0x46fb06(0xcf)]=_0x6cef47[_0x46fb06(0xcf)]+','+_0x5b7f7e[_0x46fb06(0xcf)]),_0x6cef47[_0x46fb06(0xdf)]!=_0x5b7f7e['description']&&(_0x6cef47[_0x46fb06(0xdf)]=_0x6cef47['description']+','+_0x5b7f7e[_0x46fb06(0xdf)]),_0x6cef47[_0x46fb06(0xd5)]=_0x6cef47[_0x46fb06(0xd5)][_0x46fb06(0xc9)](_0x5b7f7e[_0x46fb06(0xd5)]),_0x661b63[_0x311166]=_0x6cef47):_0x661b63[_0x311166]=_0x5b7f7e;}}}return _0x661b63;}function getJoiRequest(_0x59e6c8){const _0x2b49d9=a9_0x13b505,_0x2a664f=[];for(let _0x2d6ed9 in _0x59e6c8){const _0x4699b4={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x245f0c=typeof _0x59e6c8[_0x2d6ed9][_0x2b49d9(0xdb)]==_0x2b49d9(0xec)?_0x59e6c8[_0x2d6ed9]['describe']():_0x59e6c8[_0x2d6ed9];_0x4699b4['key']=_0x2d6ed9,_0x4699b4['type']=_0x245f0c['type'],_0x4699b4[_0x2b49d9(0xc7)]=(0x0,lodash_1[_0x2b49d9(0xd9)])(_0x245f0c,'flags.label',_0x2d6ed9),_0x4699b4[_0x2b49d9(0xe7)]=(0x0,lodash_1['get'])(_0x245f0c,_0x2b49d9(0xc2),''),_0x4699b4[_0x2b49d9(0xf6)]=(0x0,lodash_1[_0x2b49d9(0xd9)])(_0x245f0c,_0x2b49d9(0xe9),'')==_0x2b49d9(0xf6),_0x4699b4[_0x2b49d9(0xdf)]=(0x0,lodash_1[_0x2b49d9(0xd9)])(_0x245f0c,_0x2b49d9(0xf1),'');if(_0x245f0c[_0x2b49d9(0xc8)]==_0x2b49d9(0xe1))_0x4699b4[_0x2b49d9(0x107)]=getJoiRequest(_0x245f0c['keys']);else{if(_0x245f0c[_0x2b49d9(0xc8)]==_0x2b49d9(0xcb)&&_0x245f0c[_0x2b49d9(0xf0)]&&Array[_0x2b49d9(0x108)](_0x245f0c[_0x2b49d9(0xf0)])&&_0x245f0c[_0x2b49d9(0xf0)][0x0]){}}_0x245f0c[_0x2b49d9(0xe0)]&&Array[_0x2b49d9(0x108)](_0x245f0c[_0x2b49d9(0xe0)])&&_0x245f0c['allow'][_0x2b49d9(0xc1)]>0x0&&(_0x4699b4[_0x2b49d9(0xdf)]='只允许:['+_0x245f0c[_0x2b49d9(0xe0)][_0x2b49d9(0x103)](',')+'];'+_0x4699b4[_0x2b49d9(0xdf)]);if(_0x4699b4[_0x2b49d9(0xe3)]&&_0x4699b4[_0x2b49d9(0xc8)]){const _0x4dc26a={};for(const _0x36745a of _0x245f0c[_0x2b49d9(0xd2)]||[]){if(_0x36745a[_0x2b49d9(0x111)]===_0x2b49d9(0xe5)&&_0x36745a[_0x2b49d9(0xee)])_0x4dc26a[_0x2b49d9(0xe5)]=_0x36745a[_0x2b49d9(0xee)][_0x2b49d9(0xc6)];else _0x36745a[_0x2b49d9(0x111)]==='max'&&(_0x4dc26a['max']=_0x36745a['args'][_0x2b49d9(0xc6)]);}_0x4699b4['rules']=_0x4dc26a;}_0x4699b4['key']&&_0x4699b4[_0x2b49d9(0xc7)]&&_0x2a664f[_0x2b49d9(0xe4)](_0x4699b4);}return _0x2a664f;}function convertSchemaType(_0xb871){const _0xc40314=a9_0x13b505;switch(_0xb871){case _0xc40314(0x101):return'object';case'Boolean':return _0xc40314(0xd1);case _0xc40314(0x102):return _0xc40314(0xe6);case _0xc40314(0xbd):return'string';case _0xc40314(0xfd):return _0xc40314(0x117);default:return _0xc40314(0x119);}}function a9_0x7b02(_0x5d669c,_0x178e25){const _0x1a4a14=a9_0x3cca();return a9_0x7b02=function(_0x573750,_0x17a9a1){_0x573750=_0x573750-0xbb;let _0x3ccac4=_0x1a4a14[_0x573750];return _0x3ccac4;},a9_0x7b02(_0x5d669c,_0x178e25);}function convertTypeToString(_0x43f793){const _0x5ace2b=a9_0x13b505;switch(_0x43f793){case core_1['RouteParamTypes'][_0x5ace2b(0xbb)]:return _0x5ace2b(0x10d);case core_1[_0x5ace2b(0xd6)][_0x5ace2b(0xd3)]:return _0x5ace2b(0xc0);case core_1[_0x5ace2b(0xd6)][_0x5ace2b(0xc5)]:return _0x5ace2b(0xd8);case core_1[_0x5ace2b(0xd6)]['BODY']:return _0x5ace2b(0xfc);case core_1[_0x5ace2b(0xd6)][_0x5ace2b(0x118)]:case core_1[_0x5ace2b(0xd6)]['FILESSTREAM']:case core_1[_0x5ace2b(0xd6)]['FILESTREAM']:return _0x5ace2b(0x117);default:return _0x5ace2b(0x10d);}}
|
|
1
|
+
const a9_0x1e6c60=a9_0x17a9;(function(_0x129fb7,_0x1fe639){const _0x62c466=a9_0x17a9,_0x50a848=_0x129fb7();while(!![]){try{const _0x23ecb6=-parseInt(_0x62c466(0x1fb))/0x1*(parseInt(_0x62c466(0x1b0))/0x2)+parseInt(_0x62c466(0x1c7))/0x3*(parseInt(_0x62c466(0x1ab))/0x4)+parseInt(_0x62c466(0x1d0))/0x5+-parseInt(_0x62c466(0x1a9))/0x6+-parseInt(_0x62c466(0x1fd))/0x7+-parseInt(_0x62c466(0x1ec))/0x8+parseInt(_0x62c466(0x1ae))/0x9;if(_0x23ecb6===_0x1fe639)break;else _0x50a848['push'](_0x50a848['shift']());}catch(_0x4a0a67){_0x50a848['push'](_0x50a848['shift']());}}}(a9_0x1be1,0x86369));function a9_0x17a9(_0x599c75,_0x1952d2){const _0x377b69=a9_0x1be1();return a9_0x17a9=function(_0x2a0d5a,_0x227f4c){_0x2a0d5a=_0x2a0d5a-0x1a8;let _0x1be1a2=_0x377b69[_0x2a0d5a];return _0x1be1a2;},a9_0x17a9(_0x599c75,_0x1952d2);}const a9_0x227f4c=(function(){let _0x5be8b7=!![];return function(_0x1a7993,_0x1d7fd5){const _0x36f328=_0x5be8b7?function(){if(_0x1d7fd5){const _0x44e211=_0x1d7fd5['apply'](_0x1a7993,arguments);return _0x1d7fd5=null,_0x44e211;}}:function(){};return _0x5be8b7=![],_0x36f328;};}()),a9_0x2a0d5a=a9_0x227f4c(this,function(){const _0x237a74=a9_0x17a9;return a9_0x2a0d5a['toString']()[_0x237a74(0x1d6)](_0x237a74(0x1ba))[_0x237a74(0x1ef)]()[_0x237a74(0x1eb)](a9_0x2a0d5a)[_0x237a74(0x1d6)](_0x237a74(0x1ba));});a9_0x2a0d5a();'use strict';Object['defineProperty'](exports,a9_0x1e6c60(0x1e9),{'value':!![]}),exports[a9_0x1e6c60(0x1fa)]=getRoutes;const lodash_1=require(a9_0x1e6c60(0x1f4)),validator_1=require(a9_0x1e6c60(0x1bc)),core_1=require(a9_0x1e6c60(0x201)),core_2=require(a9_0x1e6c60(0x201)),core_3=require(a9_0x1e6c60(0x201)),action_1=require('../types/action');function getRoutes(_0x155fd9={'prefix':'/','module':![]}){const _0x112d95=a9_0x1e6c60;var _0x4847cc,_0x2cf885;const _0x43b09f=(0x0,core_3[_0x112d95(0x1b6)])(action_1[_0x112d95(0x1e4)]),_0x18d2e0={},_0xa7604=Array[_0x112d95(0x1ff)](_0x155fd9[_0x112d95(0x1be)]||[])?_0x155fd9['filter']||[]:[_0x155fd9[_0x112d95(0x1be)]];_0x5b0e2d:for(const _0x48b632 of _0x43b09f){let _0xf309cc=(0x0,core_3[_0x112d95(0x1e6)])(action_1[_0x112d95(0x1e4)],_0x48b632),_0x108fed=(0x0,core_3['getClassMetadata'])(action_1[_0x112d95(0x208)],_0x48b632);if(_0xf309cc&&_0x108fed){let _0x41e4c1=_0xf309cc[_0x112d95(0x1c9)],_0x108418={};if(_0x155fd9['module']&&(0x0,lodash_1[_0x112d95(0x1fe)])(_0xf309cc,'module',![])!=_0x155fd9[_0x112d95(0x1b7)])continue _0x5b0e2d;else{if(_0x155fd9[_0x112d95(0x1b7)]===![]&&!!(0x0,lodash_1[_0x112d95(0x1fe)])(_0xf309cc,_0x112d95(0x1b7),null))continue _0x5b0e2d;}if(_0x155fd9[_0x112d95(0x1c9)]&&!_0x41e4c1[_0x112d95(0x1f6)](_0x155fd9[_0x112d95(0x1c9)]))continue _0x5b0e2d;_0x41e4c1!=='/'?(_0x108418[_0x112d95(0x204)]=(_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc[_0x112d95(0x1df)][_0x112d95(0x202)])||(/^\//[_0x112d95(0x1e5)](_0x41e4c1)?_0x41e4c1[_0x112d95(0x1cb)]('/')[0x1]:_0x41e4c1),_0x108418[_0x112d95(0x1c0)]=(_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc[_0x112d95(0x1df)]['description'])||_0x108418[_0x112d95(0x204)],_0x108418['routes']=[]):(_0x108418[_0x112d95(0x204)]=(_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc[_0x112d95(0x1df)][_0x112d95(0x202)])||_0x112d95(0x1b1),_0x108418[_0x112d95(0x1c0)]=(_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc[_0x112d95(0x1df)][_0x112d95(0x1c0)])||'',_0x108418[_0x112d95(0x1d9)]=[]);_0x155fd9['filepath']&&(_0x108418[_0x112d95(0x1bf)]=_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc['filepath']);(_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc[_0x112d95(0x1e3)])&&(_0x108418[_0x112d95(0x1c9)]=_0xf309cc[_0x112d95(0x1e3)]);(_0xf309cc===null||_0xf309cc===void 0x0?void 0x0:_0xf309cc[_0x112d95(0x1b7)])&&(_0x108418[_0x112d95(0x1b7)]=_0xf309cc['module']);let _0x33eb95=(0x0,core_3[_0x112d95(0x1e6)])(core_2[_0x112d95(0x1b3)],_0x48b632)||{};if(typeof _0x108fed[Symbol[_0x112d95(0x1bb)]]==='function')for(let _0x572f6f of _0x108fed){if((_0x155fd9===null||_0x155fd9===void 0x0?void 0x0:_0x155fd9[_0x112d95(0x1cd)])&&!(_0x572f6f===null||_0x572f6f===void 0x0?void 0x0:_0x572f6f[_0x112d95(0x1cd)]))continue;let _0x76684c={};_0x76684c[_0x112d95(0x1db)]=_0x572f6f[_0x112d95(0x1ed)],_0x76684c[_0x112d95(0x1c6)]=(_0x41e4c1+_0x572f6f[_0x112d95(0x1f8)])[_0x112d95(0x1da)](/\/{2,}/g,'/'),_0x76684c[_0x112d95(0x204)]=(_0x572f6f===null||_0x572f6f===void 0x0?void 0x0:_0x572f6f[_0x112d95(0x1de)])||_0x108418[_0x112d95(0x204)]||_0x112d95(0x1b1),_0x76684c[_0x112d95(0x1c0)]=(_0x572f6f===null||_0x572f6f===void 0x0?void 0x0:_0x572f6f['description'])||'',_0x76684c[_0x112d95(0x206)]=[];_0x76684c[_0x112d95(0x1c6)][_0x112d95(0x1d4)]('/')&&(_0x76684c[_0x112d95(0x1c6)]=_0x76684c[_0x112d95(0x1c6)]['substring'](0x0,_0x76684c[_0x112d95(0x1c6)]['length']-0x1));if(!(0x0,lodash_1[_0x112d95(0x1f6)])(_0x76684c['route'],_0x112d95(0x1e2))&&!(0x0,lodash_1['startsWith'])(_0x76684c[_0x112d95(0x1c6)],_0x112d95(0x1ea))&&_0xa7604['indexOf'](_0x76684c['route'])===-0x1){if(!(_0x155fd9===null||_0x155fd9===void 0x0?void 0x0:_0x155fd9[_0x112d95(0x207)])){let _0x5f2937=(0x0,core_3[_0x112d95(0x1dd)])(new _0x48b632(),_0x572f6f[_0x112d95(0x1db)]);for(const _0x54dfca in _0x5f2937){let _0x140fbd=(_0x4847cc=_0x33eb95[_0x572f6f[_0x112d95(0x1db)]])===null||_0x4847cc===void 0x0?void 0x0:_0x4847cc['find'](_0x30261a=>_0x30261a[_0x112d95(0x1f5)]==_0x54dfca&&_0x30261a[_0x112d95(0x1ce)]===core_2[_0x112d95(0x1d7)]&&(_0x30261a===null||_0x30261a===void 0x0?void 0x0:_0x30261a[_0x112d95(0x200)]));if(_0x140fbd===null||_0x140fbd===void 0x0?void 0x0:_0x140fbd[_0x112d95(0x200)]){let _0x55304e=convertTypeToString(_0x140fbd[_0x112d95(0x200)][_0x112d95(0x1ca)]||0x0);if([_0x112d95(0x1e7),_0x112d95(0x1f2)][_0x112d95(0x1c8)](_0x55304e)!=-0x1&&_0x140fbd['metadata'][_0x112d95(0x1dc)][_0x112d95(0x1c8)](':')==-0x1&&!_0x76684c[_0x112d95(0x206)]['find'](_0x51df5=>_0x51df5['key']==_0x140fbd[_0x112d95(0x200)][_0x112d95(0x1dc)]))_0x76684c[_0x112d95(0x206)][_0x112d95(0x1cc)]({'key':_0x140fbd[_0x112d95(0x200)][_0x112d95(0x1dc)],'title':_0x140fbd[_0x112d95(0x200)][_0x112d95(0x1dc)],'type':convertSchemaType(_0x5f2937[_0x140fbd[_0x112d95(0x1f5)]][_0x112d95(0x1aa)]),'required':![],'default':'','desc':''});else{if(_0x55304e==_0x112d95(0x1e1)){let _0x22a8dc=((_0x2cf885=_0x140fbd===null||_0x140fbd===void 0x0?void 0x0:_0x140fbd[_0x112d95(0x200)])===null||_0x2cf885===void 0x0?void 0x0:_0x2cf885[_0x112d95(0x1dc)])||_0x112d95(0x1e1);_0x22a8dc[_0x112d95(0x1c8)](':')==-0x1&&!_0x76684c[_0x112d95(0x206)]['find'](_0x16ed50=>_0x16ed50[_0x112d95(0x1ce)]==_0x22a8dc&&_0x16ed50[_0x112d95(0x1ca)]==_0x112d95(0x1e1))&&_0x76684c['request']['push']({'key':_0x22a8dc,'title':_0x112d95(0x1af)+_0x22a8dc,'type':_0x112d95(0x1e1),'required':!![],'default':'','desc':''});}}}else{const _0x5f5daa=(0x0,core_3[_0x112d95(0x1d5)])(validator_1[_0x112d95(0x1fc)],_0x5f2937[_0x54dfca]);_0x5f5daa&&_0x76684c[_0x112d95(0x206)][_0x112d95(0x1cc)](...getJoiRequest(_0x5f5daa));}}}_0x108418[_0x112d95(0x1d9)]['push'](_0x76684c);}}if(_0x108418[_0x112d95(0x1d9)][_0x112d95(0x1d8)]>0x0){let _0x551c4a=_0x18d2e0[_0x41e4c1];_0x551c4a?(_0x551c4a[_0x112d95(0x204)]!=_0x108418[_0x112d95(0x204)]&&(_0x551c4a[_0x112d95(0x204)]=_0x551c4a['summary']+','+_0x108418['summary']),_0x551c4a['description']!=_0x108418[_0x112d95(0x1c0)]&&(_0x551c4a[_0x112d95(0x1c0)]=_0x551c4a[_0x112d95(0x1c0)]+','+_0x108418[_0x112d95(0x1c0)]),_0x551c4a['routes']=_0x551c4a[_0x112d95(0x1d9)][_0x112d95(0x20a)](_0x108418['routes']),_0x18d2e0[_0x41e4c1]=_0x551c4a):_0x18d2e0[_0x41e4c1]=_0x108418;}}}return _0x18d2e0;}function a9_0x1be1(){const _0x48bbfc=['query','boolean','__esModule','/static/apitest','constructor','4277752Kchvvd','requestMethod','flags.default','toString','rules','header','body','FILESTREAM','lodash','parameterIndex','startsWith','children','path','describe','getRoutes','1XkEYXQ','RULES_KEY','6854442JeCiPg','get','isArray','metadata','@midwayjs/core','tagName','只允许:[','summary','Boolean','request','noreq','ACTION_ROUTE_KEY','allow','concat','HEADERS','6442818nWpdQU','name','972PAVggG','BODY','flags.presence','18691983hwRAgC','文件上传-','685838iwyqoK','default','max','INJECT_CUSTOM_PARAM','function','title','listModule','module','number','object','(((.+)+)+)+$','iterator','@anncic-api/validator','RouteParamTypes','filter','filepath','description','items','min','FILESSTREAM','limit','string','route','10761pPmTom','indexOf','prefix','type','split','push','intercept','key','required','2659280logBqx','args','QUERY','FIELDS','endsWith','getClassExtendedMetadata','search','WEB_ROUTER_PARAM_KEY','length','routes','replace','method','propertyData','getMethodParamTypes','routerName','routerOptions','array','file','static/apitest','pprefix','ACTION_KEY','test','getClassMetadata'];a9_0x1be1=function(){return _0x48bbfc;};return a9_0x1be1();}function getJoiRequest(_0x264c78){const _0x3777e5=a9_0x1e6c60,_0x123f9c=[];for(let _0x157cde in _0x264c78){const _0x39b244={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5555bb=typeof _0x264c78[_0x157cde][_0x3777e5(0x1f9)]==_0x3777e5(0x1b4)?_0x264c78[_0x157cde][_0x3777e5(0x1f9)]():_0x264c78[_0x157cde];_0x39b244[_0x3777e5(0x1ce)]=_0x157cde,_0x39b244['type']=_0x5555bb[_0x3777e5(0x1ca)],_0x39b244['title']=(0x0,lodash_1[_0x3777e5(0x1fe)])(_0x5555bb,'flags.label',_0x157cde),_0x39b244[_0x3777e5(0x1b1)]=(0x0,lodash_1['get'])(_0x5555bb,_0x3777e5(0x1ee),''),_0x39b244[_0x3777e5(0x1cf)]=(0x0,lodash_1[_0x3777e5(0x1fe)])(_0x5555bb,_0x3777e5(0x1ad),'')==_0x3777e5(0x1cf),_0x39b244['description']=(0x0,lodash_1[_0x3777e5(0x1fe)])(_0x5555bb,'flags.description','');if(_0x5555bb[_0x3777e5(0x1ca)]==_0x3777e5(0x1b9))_0x39b244[_0x3777e5(0x1f7)]=getJoiRequest(_0x5555bb['keys']);else{if(_0x5555bb[_0x3777e5(0x1ca)]==_0x3777e5(0x1e0)&&_0x5555bb['items']&&Array[_0x3777e5(0x1ff)](_0x5555bb[_0x3777e5(0x1c1)])&&_0x5555bb[_0x3777e5(0x1c1)][0x0]){}}_0x5555bb[_0x3777e5(0x209)]&&Array['isArray'](_0x5555bb['allow'])&&_0x5555bb[_0x3777e5(0x209)][_0x3777e5(0x1d8)]>0x0&&(_0x39b244[_0x3777e5(0x1c0)]=_0x3777e5(0x203)+_0x5555bb[_0x3777e5(0x209)]['join'](',')+'];'+_0x39b244['description']);if(_0x39b244[_0x3777e5(0x1ce)]&&_0x39b244[_0x3777e5(0x1ca)]){const _0x481b01={};for(const _0x157161 of _0x5555bb[_0x3777e5(0x1f0)]||[]){if(_0x157161[_0x3777e5(0x1aa)]===_0x3777e5(0x1c2)&&_0x157161[_0x3777e5(0x1d1)])_0x481b01[_0x3777e5(0x1c2)]=_0x157161['args']['limit'];else _0x157161[_0x3777e5(0x1aa)]===_0x3777e5(0x1b2)&&(_0x481b01['max']=_0x157161[_0x3777e5(0x1d1)][_0x3777e5(0x1c4)]);}_0x39b244['rules']=_0x481b01;}_0x39b244['key']&&_0x39b244[_0x3777e5(0x1b5)]&&_0x123f9c[_0x3777e5(0x1cc)](_0x39b244);}return _0x123f9c;}function convertSchemaType(_0x39cf6b){const _0x342498=a9_0x1e6c60;switch(_0x39cf6b){case'Object':return _0x342498(0x1b9);case _0x342498(0x205):return _0x342498(0x1e8);case'Number':return _0x342498(0x1b8);case'String':return _0x342498(0x1c5);case'File':return _0x342498(0x1e1);default:return _0x342498(0x1c5);}}function convertTypeToString(_0x5cec33){const _0x17d58b=a9_0x1e6c60;switch(_0x5cec33){case core_1[_0x17d58b(0x1bd)][_0x17d58b(0x1a8)]:return _0x17d58b(0x1f1);case core_1[_0x17d58b(0x1bd)][_0x17d58b(0x1d2)]:return _0x17d58b(0x1e7);case core_1[_0x17d58b(0x1bd)]['PARAM']:return _0x17d58b(0x1f8);case core_1['RouteParamTypes'][_0x17d58b(0x1ac)]:return _0x17d58b(0x1f2);case core_1[_0x17d58b(0x1bd)][_0x17d58b(0x1d3)]:case core_1[_0x17d58b(0x1bd)][_0x17d58b(0x1c3)]:case core_1[_0x17d58b(0x1bd)][_0x17d58b(0x1f3)]:return _0x17d58b(0x1e1);default:return _0x17d58b(0x1f1);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x1f3079=a10_0x3d64;function a10_0x3141(){var _0x195d82=['./helper/getRoutes','EventService','__exportStar','Singleton','Apitest','./service/ApiService','getRoutes','2162110lZXAIJ','Query','get','ValidatorError','./types/common','create','1538718oxxLrF','defineProperty','getAppsConfig','44115ABzkPw','__createBinding','Headers','./service/ExcelService','CustomConfiguration','IIntercept','800863VjiSDV','@anncic-api/validator','File','default','toString','ApiService','ExcelService','Init','66pNPSAf','236036RNVLWQ','./decorator/ActionApitest','Scope','240JjeTMP','__esModule','Inject','Config','App','@midwayjs/core','./configuration','125181elhZeZ','258ZSJXGN','2902698HVhFkO','ApiError','@anncic-api/cache','ValidatorService','Action','./exception/ApiError','hasOwnProperty','Body','Param','./helper/getAppsConfig','CacheService','Logger','./decorator/Intercept','search','Configuration','apply','Fields','Files','ScopeEnum','(((.+)+)+)+$','getOwnPropertyDescriptor','Provide','writable','Intercept','./decorator/Action','9OpQTYB'];a10_0x3141=function(){return _0x195d82;};return a10_0x3141();}(function(_0x1b4e38,_0x266529){var _0x21e91b=a10_0x3d64,_0x191501=_0x1b4e38();while(!![]){try{var _0x1626cc=parseInt(_0x21e91b(0xf9))/0x1+parseInt(_0x21e91b(0xf0))/0x2+parseInt(_0x21e91b(0x127))/0x3*(parseInt(_0x21e91b(0x102))/0x4)+parseInt(_0x21e91b(0xf3))/0x5*(parseInt(_0x21e91b(0x10d))/0x6)+parseInt(_0x21e91b(0x10c))/0x7*(-parseInt(_0x21e91b(0x105))/0x8)+parseInt(_0x21e91b(0x10e))/0x9+parseInt(_0x21e91b(0x12f))/0xa*(-parseInt(_0x21e91b(0x101))/0xb);if(_0x1626cc===_0x266529)break;else _0x191501['push'](_0x191501['shift']());}catch(_0x5d7789){_0x191501['push'](_0x191501['shift']());}}}(a10_0x3141,0x963ec));var a10_0x16b80b=(function(){var _0x5a5ab3=!![];return function(_0x3a048b,_0x16c1c0){var _0x37b56f=_0x5a5ab3?function(){var _0x49134e=a10_0x3d64;if(_0x16c1c0){var _0x29558e=_0x16c1c0[_0x49134e(0x11d)](_0x3a048b,arguments);return _0x16c1c0=null,_0x29558e;}}:function(){};return _0x5a5ab3=![],_0x37b56f;};}()),a10_0xd98b95=a10_0x16b80b(this,function(){var _0x3d5d31=a10_0x3d64;return a10_0xd98b95[_0x3d5d31(0xfd)]()[_0x3d5d31(0x11b)](_0x3d5d31(0x121))[_0x3d5d31(0xfd)]()['constructor'](a10_0xd98b95)[_0x3d5d31(0x11b)](_0x3d5d31(0x121));});a10_0xd98b95();'use strict';var __createBinding=this&&this[a10_0x1f3079(0xf4)]||(Object[a10_0x1f3079(0xef)]?function(_0x7cba76,_0x37e5d6,_0x592de6,_0x55c376){var _0x47445f=a10_0x1f3079;if(_0x55c376===undefined)_0x55c376=_0x592de6;var _0xfc5e4c=Object[_0x47445f(0x122)](_0x37e5d6,_0x592de6);(!_0xfc5e4c||(_0x47445f(0x131)in _0xfc5e4c?!_0x37e5d6[_0x47445f(0x106)]:_0xfc5e4c[_0x47445f(0x124)]||_0xfc5e4c['configurable']))&&(_0xfc5e4c={'enumerable':!![],'get':function(){return _0x37e5d6[_0x592de6];}}),Object[_0x47445f(0xf1)](_0x7cba76,_0x55c376,_0xfc5e4c);}:function(_0x3e7dbf,_0x421357,_0x3b65d1,_0x399e27){if(_0x399e27===undefined)_0x399e27=_0x3b65d1;_0x3e7dbf[_0x399e27]=_0x421357[_0x3b65d1];}),__exportStar=this&&this[a10_0x1f3079(0x12a)]||function(_0x26537f,_0x302e68){var _0x25a376=a10_0x1f3079;for(var _0x4de4ac in _0x26537f)if(_0x4de4ac!==_0x25a376(0xfc)&&!Object['prototype'][_0x25a376(0x114)]['call'](_0x302e68,_0x4de4ac))__createBinding(_0x302e68,_0x26537f,_0x4de4ac);};Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x106),{'value':!![]}),exports[a10_0x1f3079(0xf2)]=exports[a10_0x1f3079(0x120)]=exports['Singleton']=exports[a10_0x1f3079(0x104)]=exports[a10_0x1f3079(0x107)]=exports[a10_0x1f3079(0x123)]=exports[a10_0x1f3079(0x119)]=exports[a10_0x1f3079(0x108)]=exports[a10_0x1f3079(0x109)]=exports[a10_0x1f3079(0x100)]=exports[a10_0x1f3079(0xf5)]=exports['Query']=exports['Param']=exports[a10_0x1f3079(0x115)]=exports[a10_0x1f3079(0x11e)]=exports['Files']=exports['File']=exports[a10_0x1f3079(0x11c)]=exports[a10_0x1f3079(0x111)]=exports[a10_0x1f3079(0x132)]=exports[a10_0x1f3079(0xff)]=exports[a10_0x1f3079(0xfe)]=exports[a10_0x1f3079(0x129)]=exports['CacheService']=exports[a10_0x1f3079(0x10f)]=exports['getRoutes']=exports[a10_0x1f3079(0xf8)]=exports[a10_0x1f3079(0x125)]=exports[a10_0x1f3079(0x12c)]=exports[a10_0x1f3079(0x112)]=void 0x0;const getAppsConfig_1=require(a10_0x1f3079(0x117));Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0xf2),{'enumerable':!![],'get':function(){var _0x10b66c=a10_0x1f3079;return getAppsConfig_1[_0x10b66c(0xf2)];}}),__exportStar(require(a10_0x1f3079(0xee)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a10_0x1f3079(0x126));Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x112),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a10_0x1f3079(0x103));Object['defineProperty'](exports,a10_0x1f3079(0x12c),{'enumerable':!![],'get':function(){var _0x24a126=a10_0x1f3079;return ActionApitest_1[_0x24a126(0x12c)];}});var Intercept_1=require(a10_0x1f3079(0x11a));Object[a10_0x1f3079(0xf1)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x2cfb2d=a10_0x1f3079;return Intercept_1[_0x2cfb2d(0x125)];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0xf8),{'enumerable':!![],'get':function(){var _0x44a55a=a10_0x1f3079;return Intercept_1[_0x44a55a(0xf8)];}});var getRoutes_1=require(a10_0x1f3079(0x128));Object[a10_0x1f3079(0xf1)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x270c8b=a10_0x1f3079;return getRoutes_1[_0x270c8b(0x12e)];}});var ApiError_1=require(a10_0x1f3079(0x113));Object[a10_0x1f3079(0xf1)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x49a664=a10_0x1f3079;return ApiError_1[_0x49a664(0x10f)];}});var cache_1=require(a10_0x1f3079(0x110));Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x118),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a10_0x1f3079(0xf1)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x24a4e9=a10_0x1f3079;return event_1[_0x24a4e9(0x129)];}});var ApiService_1=require(a10_0x1f3079(0x12d));Object[a10_0x1f3079(0xf1)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x23c7ba=a10_0x1f3079;return ApiService_1[_0x23c7ba(0xfe)];}});var ExcelService_1=require(a10_0x1f3079(0xf6));function a10_0x3d64(_0x1061b4,_0x5e2db1){var _0x5f5d2f=a10_0x3141();return a10_0x3d64=function(_0xd98b95,_0x16b80b){_0xd98b95=_0xd98b95-0xee;var _0x314103=_0x5f5d2f[_0xd98b95];return _0x314103;},a10_0x3d64(_0x1061b4,_0x5e2db1);}Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0xff),{'enumerable':!![],'get':function(){var _0xe1ec40=a10_0x1f3079;return ExcelService_1[_0xe1ec40(0xff)];}});var validator_1=require(a10_0x1f3079(0xfa));Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x132),{'enumerable':!![],'get':function(){var _0x43fce0=a10_0x1f3079;return validator_1[_0x43fce0(0x132)];}}),Object[a10_0x1f3079(0xf1)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x142ef9=a10_0x1f3079;return validator_1[_0x142ef9(0x111)];}});var configuration_1=require(a10_0x1f3079(0x10b));Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x11c),{'enumerable':!![],'get':function(){var _0x8d59e0=a10_0x1f3079;return configuration_1[_0x8d59e0(0xf7)];}});var core_1=require(a10_0x1f3079(0x10a));Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0xfb),{'enumerable':!![],'get':function(){var _0x1baa54=a10_0x1f3079;return core_1[_0x1baa54(0xfb)];}}),Object[a10_0x1f3079(0xf1)](exports,'Files',{'enumerable':!![],'get':function(){var _0x137eaa=a10_0x1f3079;return core_1[_0x137eaa(0x11f)];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x11e),{'enumerable':!![],'get':function(){var _0x448dce=a10_0x1f3079;return core_1[_0x448dce(0x11e)];}}),Object[a10_0x1f3079(0xf1)](exports,'Body',{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a10_0x1f3079(0xf1)](exports,'Param',{'enumerable':!![],'get':function(){var _0x3a5cb6=a10_0x1f3079;return core_1[_0x3a5cb6(0x116)];}}),Object['defineProperty'](exports,a10_0x1f3079(0x130),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0xf5),{'enumerable':!![],'get':function(){var _0x413f30=a10_0x1f3079;return core_1[_0x413f30(0xf5)];}}),Object[a10_0x1f3079(0xf1)](exports,'Init',{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require('@midwayjs/core');Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x108),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object['defineProperty'](exports,a10_0x1f3079(0x119),{'enumerable':!![],'get':function(){var _0x276500=a10_0x1f3079;return core_2[_0x276500(0x119)];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x123),{'enumerable':!![],'get':function(){var _0x511832=a10_0x1f3079;return core_2[_0x511832(0x123)];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x107),{'enumerable':!![],'get':function(){var _0x3c9bff=a10_0x1f3079;return core_2[_0x3c9bff(0x107)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a10_0x1f3079(0xf1)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x587e4e=a10_0x1f3079;return core_2[_0x587e4e(0x12b)];}}),Object[a10_0x1f3079(0xf1)](exports,a10_0x1f3079(0x120),{'enumerable':!![],'get':function(){var _0x1cfa4d=a10_0x1f3079;return core_2[_0x1cfa4d(0x120)];}}),global[a10_0x1f3079(0xf2)]=getAppsConfig_1[a10_0x1f3079(0xf2)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x852004=a11_0x4540;(function(_0x511d14,_0x340a45){var _0x36342b=a11_0x4540,_0x3a9311=_0x511d14();while(!![]){try{var _0x146594=parseInt(_0x36342b(0xc1))/0x1+-parseInt(_0x36342b(0xe2))/0x2*(parseInt(_0x36342b(0xd6))/0x3)+parseInt(_0x36342b(0xd8))/0x4*(parseInt(_0x36342b(0xbd))/0x5)+parseInt(_0x36342b(0xd3))/0x6*(-parseInt(_0x36342b(0xb1))/0x7)+parseInt(_0x36342b(0xc0))/0x8*(parseInt(_0x36342b(0xb9))/0x9)+parseInt(_0x36342b(0xd7))/0xa*(-parseInt(_0x36342b(0xbf))/0xb)+-parseInt(_0x36342b(0xaa))/0xc*(-parseInt(_0x36342b(0xa4))/0xd);if(_0x146594===_0x340a45)break;else _0x3a9311['push'](_0x3a9311['shift']());}catch(_0x2aaf37){_0x3a9311['push'](_0x3a9311['shift']());}}}(a11_0x4de9,0x23eeb));var a11_0xc5fee6=(function(){var _0x58c0c8=!![];return function(_0x44a629,_0x7ae78c){var _0xbb2aa8=_0x58c0c8?function(){var _0x495e9a=a11_0x4540;if(_0x7ae78c){var _0x3d749a=_0x7ae78c[_0x495e9a(0xe3)](_0x44a629,arguments);return _0x7ae78c=null,_0x3d749a;}}:function(){};return _0x58c0c8=![],_0xbb2aa8;};}()),a11_0xc3b1e8=a11_0xc5fee6(this,function(){var _0x4de668=a11_0x4540;return a11_0xc3b1e8[_0x4de668(0xc3)]()['search']('(((.+)+)+)+$')[_0x4de668(0xc3)]()[_0x4de668(0xc4)](a11_0xc3b1e8)[_0x4de668(0xb5)](_0x4de668(0xba));});function a11_0x4540(_0x1283e0,_0x36b4ed){var _0x5ebc74=a11_0x4de9();return a11_0x4540=function(_0xc3b1e8,_0xc5fee6){_0xc3b1e8=_0xc3b1e8-0x9f;var _0x4de963=_0x5ebc74[_0xc3b1e8];return _0x4de963;},a11_0x4540(_0x1283e0,_0x36b4ed);}a11_0xc3b1e8();'use strict';var __decorate=this&&this[a11_0x852004(0xc8)]||function(_0x46b3cc,_0x4a643a,_0x4e420f,_0x54e86c){var _0x1d50c2=a11_0x852004,_0x4c46c9=arguments['length'],_0x1fc037=_0x4c46c9<0x3?_0x4a643a:_0x54e86c===null?_0x54e86c=Object['getOwnPropertyDescriptor'](_0x4a643a,_0x4e420f):_0x54e86c,_0x4b1eb7;if(typeof Reflect==='object'&&typeof Reflect[_0x1d50c2(0xcd)]===_0x1d50c2(0xb7))_0x1fc037=Reflect[_0x1d50c2(0xcd)](_0x46b3cc,_0x4a643a,_0x4e420f,_0x54e86c);else{for(var _0x48788b=_0x46b3cc[_0x1d50c2(0xb8)]-0x1;_0x48788b>=0x0;_0x48788b--)if(_0x4b1eb7=_0x46b3cc[_0x48788b])_0x1fc037=(_0x4c46c9<0x3?_0x4b1eb7(_0x1fc037):_0x4c46c9>0x3?_0x4b1eb7(_0x4a643a,_0x4e420f,_0x1fc037):_0x4b1eb7(_0x4a643a,_0x4e420f))||_0x1fc037;}return _0x4c46c9>0x3&&_0x1fc037&&Object[_0x1d50c2(0xe1)](_0x4a643a,_0x4e420f,_0x1fc037),_0x1fc037;},__metadata=this&&this[a11_0x852004(0xdb)]||function(_0x3de8bf,_0x330cab){var _0x5f0db4=a11_0x852004;if(typeof Reflect===_0x5f0db4(0xcf)&&typeof Reflect[_0x5f0db4(0xaf)]===_0x5f0db4(0xb7))return Reflect['metadata'](_0x3de8bf,_0x330cab);};Object[a11_0x852004(0xe1)](exports,'__esModule',{'value':!![]}),exports[a11_0x852004(0xce)]=void 0x0;const crypto_js_1=require(a11_0x852004(0xa5)),core_1=require(a11_0x852004(0xbb)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{['password'](_0xeb764d){var _0x5e6f77=a11_0x852004,_0x1a0697;return _0xeb764d?(0x0,crypto_js_1[_0x5e6f77(0xc7)])(''+_0xeb764d+(0x0,crypto_js_1[_0x5e6f77(0xc7)])((0x0,crypto_js_1[_0x5e6f77(0xc7)])(''+_0xeb764d)['toString']()+(''+((_0x1a0697=this[_0x5e6f77(0xc6)])===null||_0x1a0697===void 0x0?void 0x0:_0x1a0697[_0x5e6f77(0xc2)])))[_0x5e6f77(0xc3)]())[_0x5e6f77(0xc3)]():'';}[a11_0x852004(0xda)](_0x36bdab,_0xa848d5,_0x2f8cba=Date['now']()){var _0x5a5e22=a11_0x852004;return{'Token':_0x36bdab,'Logintime':_0x2f8cba,'Checkcode':this[_0x5a5e22(0xdd)](_0x36bdab,_0xa848d5,_0x2f8cba)};}[a11_0x852004(0xac)](_0x3284f7={}){var _0x11a4fe=a11_0x852004,_0x338fc0,_0x31ee16;const _0x26f94e=[],_0x1c4a2b=Object[_0x11a4fe(0xd0)](Object[_0x11a4fe(0xd9)](_0x3284f7)['map'](_0xc6f036=>[_0xc6f036[0x0]['toLowerCase'](),_0xc6f036[0x1]]));for(let _0x5e49fc of['device',_0x11a4fe(0xe0),_0x11a4fe(0xd2),_0x11a4fe(0xdc),_0x11a4fe(0xdd)]){if(typeof _0x1c4a2b[_0x5e49fc]==_0x11a4fe(0xc9))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x11a4fe(0xb3)});_0x26f94e[_0x11a4fe(0xa8)](_0x5e49fc+'='+_0x1c4a2b[_0x5e49fc]);}_0x1c4a2b[_0x11a4fe(0xe0)]&&((_0x338fc0=_0x1c4a2b[_0x11a4fe(0xe0)])===null||_0x338fc0===void 0x0?void 0x0:_0x338fc0[_0x11a4fe(0xb8)])==0xa&&(_0x1c4a2b[_0x11a4fe(0xe0)]=_0x1c4a2b[_0x11a4fe(0xe0)]*0x3e8);if(this[_0x11a4fe(0xc6)][_0x11a4fe(0x9f)]&&parseInt((''+Date[_0x11a4fe(0xca)]())[_0x11a4fe(0xa9)](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x11a4fe(0xde)](_0x1c4a2b[_0x11a4fe(0xe0)]))[_0x11a4fe(0xa9)](0x0,0xd)[_0x11a4fe(0xad)](0xd,'0'))>parseInt(this['config'][_0x11a4fe(0x9f)]))throw new AnnError(ApiError_1[_0x11a4fe(0xd4)][_0x11a4fe(0xb4)],{'message':_0x11a4fe(0xe4),'requesttime':_0x1c4a2b[_0x11a4fe(0xe0)],'timestamp':Date['now']()});if((((_0x31ee16=this[_0x11a4fe(0xc6)][_0x11a4fe(0xbc)][_0x1c4a2b[_0x11a4fe(0xcc)]])===null||_0x31ee16===void 0x0?void 0x0:_0x31ee16[_0x11a4fe(0xbe)])||0x0)>0x0&&Date['now']()-Math[_0x11a4fe(0xde)](_0x1c4a2b[_0x11a4fe(0xdc)])>this[_0x11a4fe(0xc6)][_0x11a4fe(0xbc)][_0x1c4a2b['device']][_0x11a4fe(0xbe)])throw new AnnError(ApiError_1['ApiError'][_0x11a4fe(0xab)]);if(!this['config'][_0x11a4fe(0xbc)][_0x1c4a2b[_0x11a4fe(0xcc)]]||!this[_0x11a4fe(0xc6)]['devices'][_0x1c4a2b['device']][_0x11a4fe(0xc5)]||!this[_0x11a4fe(0xc6)][_0x11a4fe(0xbc)][_0x1c4a2b[_0x11a4fe(0xcc)]][_0x11a4fe(0xdd)])throw new AnnError(ApiError_1['ApiError'][_0x11a4fe(0xb2)]);if(_0x1c4a2b[_0x11a4fe(0xd2)]&&_0x1c4a2b[_0x11a4fe(0xdd)]!=this[_0x11a4fe(0xdd)](_0x1c4a2b[_0x11a4fe(0xd2)],_0x1c4a2b[_0x11a4fe(0xcc)],_0x1c4a2b['logintime']))throw new AnnError(ApiError_1[_0x11a4fe(0xd4)][_0x11a4fe(0xa0)]);return _0x26f94e[_0x11a4fe(0xa8)](_0x11a4fe(0xd5)+this[_0x11a4fe(0xc6)][_0x11a4fe(0xbc)][_0x1c4a2b[_0x11a4fe(0xcc)]][_0x11a4fe(0xc5)]),(0x0,crypto_js_1[_0x11a4fe(0xc7)])(_0x26f94e[_0x11a4fe(0xcb)]()[_0x11a4fe(0xb0)](''))['toString']();}[a11_0x852004(0xdd)](_0x4fdd67,_0x50c685,_0x56b59e=Date[a11_0x852004(0xca)]()){var _0xd3f9d5=a11_0x852004,_0x13ef66,_0x4386e8,_0xb862c9;if(!((_0x13ef66=this[_0xd3f9d5(0xc6)])===null||_0x13ef66===void 0x0?void 0x0:_0x13ef66[_0xd3f9d5(0xbc)][_0x50c685])||!((_0xb862c9=(_0x4386e8=this[_0xd3f9d5(0xc6)])===null||_0x4386e8===void 0x0?void 0x0:_0x4386e8[_0xd3f9d5(0xbc)][_0x50c685])===null||_0xb862c9===void 0x0?void 0x0:_0xb862c9[_0xd3f9d5(0xdd)]))throw new AnnError(ApiError_1[_0xd3f9d5(0xd4)][_0xd3f9d5(0xb2)]);return(0x0,crypto_js_1[_0xd3f9d5(0xc7)])(''+_0x4fdd67+(0x0,crypto_js_1['MD5'])(''+_0x56b59e+(''+this['config'][_0xd3f9d5(0xbc)][_0x50c685][_0xd3f9d5(0xdd)]))[_0xd3f9d5(0xc3)]())['toString']();}[a11_0x852004(0xe5)](_0x26d204={}){var _0x2acb0f=a11_0x852004;const _0x3d5277=Object[_0x2acb0f(0xd0)](Object[_0x2acb0f(0xd9)](_0x26d204)[_0x2acb0f(0xd1)](_0x44a0ad=>[_0x44a0ad[0x0]['toLowerCase'](),_0x44a0ad[0x1]]));if(!(_0x3d5277===null||_0x3d5277===void 0x0?void 0x0:_0x3d5277['signature']))throw new AnnError(ApiError_1[_0x2acb0f(0xd4)]['HEADERS_LACK'],{'message':_0x2acb0f(0xb3)});if((_0x3d5277===null||_0x3d5277===void 0x0?void 0x0:_0x3d5277['signature'])!=this['getsign'](_0x3d5277))throw new AnnError(ApiError_1['ApiError'][_0x2acb0f(0xa7)],{'message':_0x2acb0f(0xb3)});return!![];}};function a11_0x4de9(){var _0x69fd41=['substring','816mhwbYN','TIMEOUT_LOGINTIME','getsign','padEnd','Singleton','metadata','join','7vmscKN','HEADERS_DEVICE','验证失败','TIMEOUT','search','ScopeEnum','function','length','162pKbjPt','(((.+)+)+)+$','@midwayjs/core','devices','420XSOOAE','logintimeout','26521XpEHrM','8104RLIMFy','6108SrbYup','password','toString','constructor','secret','config','MD5','__decorate','undefined','now','sort','device','decorate','ApiService','object','fromEntries','map','token','610782hQvmBo','ApiError','secret=','411xbxYOZ','900yKNqzh','13412kcqZhw','entries','getcheck','__metadata','logintime','checkcode','abs','anncicapi','requesttime','defineProperty','64vexVCu','apply','请求超时,请重试或改善网络环境','checksign','timeout','HEADERS_CHECKCODE','design:type','Scope','Config','31421tAQAZa','crypto-js','prototype','HEADERS_SIGNATURE','push'];a11_0x4de9=function(){return _0x69fd41;};return a11_0x4de9();}exports['ApiService']=ApiService,__decorate([(0x0,core_1[a11_0x852004(0xa3)])(a11_0x852004(0xdf)),__metadata(a11_0x852004(0xa1),Object)],ApiService[a11_0x852004(0xa6)],'config',void 0x0),exports[a11_0x852004(0xce)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a11_0x852004(0xa2)])(core_1[a11_0x852004(0xb6)][a11_0x852004(0xae)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2855b2=a12_0x1d71;function a12_0x1c5a(){const _0x5e7d63=['design:paramtypes','content-type','141oEOkNm','description','set','extname','../../public/index.html','stringify','Param','decorate','Controller','ctx','config','filepath','ScopeEnum','apitest','Environment','length','24114stRoSV','__apiList__','Scope','42iGjKbP','isDevelopmentEnvironment','Inject','.js','__esModule','url','apply','routes','push','metadata','978830MDeuXN','Singleton','/apiteststatic/','__decorate','object','method','Config','application/javascript;\x20charset=utf-8','__devices__','public,\x20max-age=604800','constructor','design:returntype','join','/apitest-:module','Get','prefix','44etqLVn','toString','function','summary','apitestmodule','MidwayEnvironmentService','replace','ApitestStaticController','module','getRoutes','11296044lKJvAG','11665216hTGUQZ','existsSync','request','@midwayjs/core','design:type','../../public/','Provide','apitesthtml','anncicapi','7pqigzY','readFileSync','ApitestService','3541016kwlZJF','/index.html','getOwnPropertyDescriptor','__metadata','devices','cache-control','prototype','463091mHWTAw','apiteststatic','446270AUndii','utf-8','/apitest','path','text/css;\x20charset=utf-8','__param'];a12_0x1c5a=function(){return _0x5e7d63;};return a12_0x1c5a();}(function(_0x235253,_0x14f1c7){const _0x5df90c=a12_0x1d71,_0xe89748=_0x235253();while(!![]){try{const _0x241ae7=-parseInt(_0x5df90c(0x112))/0x1+parseInt(_0x5df90c(0x12c))/0x2*(-parseInt(_0x5df90c(0x11c))/0x3)+parseInt(_0x5df90c(0x10b))/0x4+parseInt(_0x5df90c(0xe4))/0x5*(parseInt(_0x5df90c(0x12f))/0x6)+-parseInt(_0x5df90c(0x108))/0x7*(parseInt(_0x5df90c(0xff))/0x8)+parseInt(_0x5df90c(0xfe))/0x9+parseInt(_0x5df90c(0x114))/0xa*(-parseInt(_0x5df90c(0xf4))/0xb);if(_0x241ae7===_0x14f1c7)break;else _0xe89748['push'](_0xe89748['shift']());}catch(_0x13d82c){_0xe89748['push'](_0xe89748['shift']());}}}(a12_0x1c5a,0xce20e));const a12_0x348bac=(function(){let _0x3ae03a=!![];return function(_0x154c4d,_0x2cb2ec){const _0xa1c543=_0x3ae03a?function(){const _0x42ed72=a12_0x1d71;if(_0x2cb2ec){const _0x41f8d5=_0x2cb2ec[_0x42ed72(0xe0)](_0x154c4d,arguments);return _0x2cb2ec=null,_0x41f8d5;}}:function(){};return _0x3ae03a=![],_0xa1c543;};}()),a12_0x39d5f5=a12_0x348bac(this,function(){const _0x264f69=a12_0x1d71;return a12_0x39d5f5['toString']()['search']('(((.+)+)+)+$')[_0x264f69(0xf5)]()[_0x264f69(0xee)](a12_0x39d5f5)['search']('(((.+)+)+)+$');});a12_0x39d5f5();'use strict';var __decorate=this&&this[a12_0x2855b2(0xe7)]||function(_0x22106a,_0x175e62,_0x5317b8,_0xf6cce9){const _0x7c9e24=a12_0x2855b2;var _0x5abd52=arguments[_0x7c9e24(0x12b)],_0xb1a2f4=_0x5abd52<0x3?_0x175e62:_0xf6cce9===null?_0xf6cce9=Object[_0x7c9e24(0x10d)](_0x175e62,_0x5317b8):_0xf6cce9,_0x33a176;if(typeof Reflect===_0x7c9e24(0xe8)&&typeof Reflect[_0x7c9e24(0x123)]===_0x7c9e24(0xf6))_0xb1a2f4=Reflect[_0x7c9e24(0x123)](_0x22106a,_0x175e62,_0x5317b8,_0xf6cce9);else{for(var _0x26c2db=_0x22106a['length']-0x1;_0x26c2db>=0x0;_0x26c2db--)if(_0x33a176=_0x22106a[_0x26c2db])_0xb1a2f4=(_0x5abd52<0x3?_0x33a176(_0xb1a2f4):_0x5abd52>0x3?_0x33a176(_0x175e62,_0x5317b8,_0xb1a2f4):_0x33a176(_0x175e62,_0x5317b8))||_0xb1a2f4;}return _0x5abd52>0x3&&_0xb1a2f4&&Object['defineProperty'](_0x175e62,_0x5317b8,_0xb1a2f4),_0xb1a2f4;},__metadata=this&&this[a12_0x2855b2(0x10e)]||function(_0x4d3fef,_0x47192d){const _0x5dbe2f=a12_0x2855b2;if(typeof Reflect===_0x5dbe2f(0xe8)&&typeof Reflect[_0x5dbe2f(0xe3)]===_0x5dbe2f(0xf6))return Reflect[_0x5dbe2f(0xe3)](_0x4d3fef,_0x47192d);},__param=this&&this[a12_0x2855b2(0x119)]||function(_0xffc0df,_0x566183){return function(_0x5abc20,_0x2f2116){_0x566183(_0x5abc20,_0x2f2116,_0xffc0df);};};Object['defineProperty'](exports,a12_0x2855b2(0xde),{'value':!![]}),exports[a12_0x2855b2(0xfb)]=exports['ApitestService']=void 0x0;const path_1=require(a12_0x2855b2(0x117)),fs_1=require('fs'),core_1=require(a12_0x2855b2(0x102)),core_2=require('@midwayjs/core'),core_3=require(a12_0x2855b2(0x102)),getRoutes_1=require('../helper/getRoutes');function a12_0x1d71(_0x1049ce,_0x19edc2){const _0x485ae1=a12_0x1c5a();return a12_0x1d71=function(_0x39d5f5,_0x348bac){_0x39d5f5=_0x39d5f5-0xdc;let _0x1c5a87=_0x485ae1[_0x39d5f5];return _0x1c5a87;},a12_0x1d71(_0x1049ce,_0x19edc2);}let ApitestService=class ApitestService{async['apidoc'](_0x5f1064){const _0xa54ec7=a12_0x2855b2,_0x883031=(0x0,getRoutes_1[_0xa54ec7(0xfd)])(_0x5f1064),_0x3ddc37=[];for(let _0xa204f0 in _0x883031){for(let _0x3f48e8 in _0x883031[_0xa204f0][_0xa54ec7(0xe1)]){let _0x365081=_0x883031[_0xa204f0][_0xa54ec7(0xe1)][_0x3f48e8],_0x262600=[];for(let _0x15cb9c in _0x365081[_0xa54ec7(0x101)]){_0x262600['push'](_0x365081[_0xa54ec7(0x101)][_0x15cb9c]);}_0x3ddc37[_0xa54ec7(0xe2)]({'title':_0x883031[_0xa204f0][_0xa54ec7(0xf7)]+':'+_0x365081[_0xa54ec7(0xf7)],'prefix':_0x883031[_0xa204f0][_0xa54ec7(0xf3)],'router':_0x365081['route'],'method':_0x365081[_0xa54ec7(0xe9)],'describe':_0x365081[_0xa54ec7(0x11d)]||'','filepath':_0x883031[_0xa204f0][_0xa54ec7(0x127)]||'','request':_0x262600});}}const _0x52b46d=(0x0,path_1[_0xa54ec7(0xf0)])(__dirname,_0xa54ec7(0x120));return(0x0,fs_1[_0xa54ec7(0x109)])(_0x52b46d,{'encoding':_0xa54ec7(0x115)})['replace'](/__res__/g,'/apiteststatic/')[_0xa54ec7(0xfa)](_0xa54ec7(0x12d),JSON['stringify'](_0x3ddc37))['replace'](_0xa54ec7(0xec),JSON[_0xa54ec7(0x121)](this[_0xa54ec7(0x126)][_0xa54ec7(0x10f)]));}};exports[a12_0x2855b2(0x10a)]=ApitestService,__decorate([(0x0,core_3[a12_0x2855b2(0xea)])(a12_0x2855b2(0x107)),__metadata(a12_0x2855b2(0x103),Object)],ApitestService[a12_0x2855b2(0x111)],a12_0x2855b2(0x126),void 0x0),exports[a12_0x2855b2(0x10a)]=ApitestService=__decorate([(0x0,core_2[a12_0x2855b2(0x105)])(a12_0x2855b2(0x129)),(0x0,core_3[a12_0x2855b2(0x12e)])(core_3[a12_0x2855b2(0x128)][a12_0x2855b2(0xe5)])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a12_0x2855b2(0x106)](){const _0x57dfbf=a12_0x2855b2;if(this[_0x57dfbf(0x129)]){const _0x46d7aa={'module':![]};return this['Environment'][_0x57dfbf(0x130)]()&&(_0x46d7aa[_0x57dfbf(0x127)]=!![]),await this['ApitestService']['apidoc'](_0x46d7aa);}return'';}async['apitestmodule'](_0x37ccf3){const _0x1547a1=a12_0x2855b2;if(this['apitest']){const _0x358509={'module':_0x37ccf3};return this[_0x1547a1(0x12a)]['isDevelopmentEnvironment']()&&(_0x358509['filepath']=!![]),await this[_0x1547a1(0x10a)]['apidoc'](_0x358509);}return'';}async['apiteststatic'](){const _0x522c79=a12_0x2855b2;if((0x0,path_1[_0x522c79(0x11f)])(this[_0x522c79(0x125)][_0x522c79(0x101)][_0x522c79(0xdf)])){var _0x10dfbd=(0x0,path_1[_0x522c79(0xf0)])(__dirname,_0x522c79(0x104)+this[_0x522c79(0x125)]['request'][_0x522c79(0xdf)]['replace'](_0x522c79(0xe6),'/'));if(_0x10dfbd['substring'](_0x10dfbd[_0x522c79(0x12b)]-0xb)!=_0x522c79(0x10c)){this[_0x522c79(0x125)][_0x522c79(0x11e)](_0x522c79(0x110),_0x522c79(0xed));if((0x0,path_1[_0x522c79(0x11f)])(this[_0x522c79(0x125)][_0x522c79(0x101)][_0x522c79(0xdf)])==_0x522c79(0xdd))this[_0x522c79(0x125)][_0x522c79(0x11e)](_0x522c79(0x11b),_0x522c79(0xeb));else(0x0,path_1['extname'])(this[_0x522c79(0x125)][_0x522c79(0x101)][_0x522c79(0xdf)])=='.css'&&this[_0x522c79(0x125)][_0x522c79(0x11e)](_0x522c79(0x11b),_0x522c79(0x118));return(0x0,fs_1[_0x522c79(0x100)])(_0x10dfbd)&&(0x0,fs_1[_0x522c79(0x109)])(_0x10dfbd,{'encoding':'utf-8'});}}return'';}};exports['ApitestStaticController']=ApitestStaticController,__decorate([(0x0,core_3[a12_0x2855b2(0xdc)])(),__metadata(a12_0x2855b2(0x103),Object)],ApitestStaticController[a12_0x2855b2(0x111)],a12_0x2855b2(0x125),void 0x0),__decorate([(0x0,core_3[a12_0x2855b2(0xdc)])(),__metadata(a12_0x2855b2(0x103),core_1[a12_0x2855b2(0xf9)])],ApitestStaticController['prototype'],a12_0x2855b2(0x12a),void 0x0),__decorate([(0x0,core_3[a12_0x2855b2(0xdc)])(),__metadata(a12_0x2855b2(0x103),ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,core_3[a12_0x2855b2(0xea)])(a12_0x2855b2(0x129)),__metadata(a12_0x2855b2(0x103),Boolean)],ApitestStaticController[a12_0x2855b2(0x111)],'apitest',void 0x0),__decorate([(0x0,core_3[a12_0x2855b2(0xea)])(a12_0x2855b2(0x107)),__metadata(a12_0x2855b2(0x103),Object)],ApitestStaticController[a12_0x2855b2(0x111)],a12_0x2855b2(0x126),void 0x0),__decorate([(0x0,core_2['Get'])(a12_0x2855b2(0x116)),__metadata(a12_0x2855b2(0x103),Function),__metadata(a12_0x2855b2(0x11a),[]),__metadata(a12_0x2855b2(0xef),Promise)],ApitestStaticController[a12_0x2855b2(0x111)],a12_0x2855b2(0x106),null),__decorate([(0x0,core_2[a12_0x2855b2(0xf2)])(a12_0x2855b2(0xf1)),__param(0x0,(0x0,core_2[a12_0x2855b2(0x122)])(a12_0x2855b2(0xfc))),__metadata('design:type',Function),__metadata(a12_0x2855b2(0x11a),[String]),__metadata(a12_0x2855b2(0xef),Promise)],ApitestStaticController[a12_0x2855b2(0x111)],a12_0x2855b2(0xf8),null),__decorate([(0x0,core_2[a12_0x2855b2(0xf2)])('/apiteststatic/*'),__metadata(a12_0x2855b2(0x103),Function),__metadata(a12_0x2855b2(0x11a),[]),__metadata(a12_0x2855b2(0xef),Promise)],ApitestStaticController[a12_0x2855b2(0x111)],a12_0x2855b2(0x113),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a12_0x2855b2(0x124)])('/'),(0x0,core_3[a12_0x2855b2(0x12e)])(core_3[a12_0x2855b2(0x128)]['Request'])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a13_0x218f(_0x24bc2d,_0x1b05b8){const _0x99fe5e=a13_0x26d8();return a13_0x218f=function(_0x164716,_0x3d6a5d){_0x164716=_0x164716-0x1b1;let _0x26d8fc=_0x99fe5e[_0x164716];return _0x26d8fc;},a13_0x218f(_0x24bc2d,_0x1b05b8);}const a13_0x32885b=a13_0x218f;(function(_0x185f23,_0x572292){const _0x352c10=a13_0x218f,_0x21e38d=_0x185f23();while(!![]){try{const _0x2d7867=parseInt(_0x352c10(0x1df))/0x1+parseInt(_0x352c10(0x1f3))/0x2*(parseInt(_0x352c10(0x1f1))/0x3)+parseInt(_0x352c10(0x1c4))/0x4*(-parseInt(_0x352c10(0x1b1))/0x5)+parseInt(_0x352c10(0x1ee))/0x6*(parseInt(_0x352c10(0x1f2))/0x7)+parseInt(_0x352c10(0x1e5))/0x8+parseInt(_0x352c10(0x1cc))/0x9+-parseInt(_0x352c10(0x1e7))/0xa;if(_0x2d7867===_0x572292)break;else _0x21e38d['push'](_0x21e38d['shift']());}catch(_0x3dde48){_0x21e38d['push'](_0x21e38d['shift']());}}}(a13_0x26d8,0x90613));const a13_0x3d6a5d=(function(){let _0x3996bf=!![];return function(_0x1529b9,_0x52cd59){const _0x3018fa=_0x3996bf?function(){const _0x25c539=a13_0x218f;if(_0x52cd59){const _0x488e1b=_0x52cd59[_0x25c539(0x1f4)](_0x1529b9,arguments);return _0x52cd59=null,_0x488e1b;}}:function(){};return _0x3996bf=![],_0x3018fa;};}()),a13_0x164716=a13_0x3d6a5d(this,function(){const _0x314fd0=a13_0x218f;return a13_0x164716[_0x314fd0(0x1e2)]()[_0x314fd0(0x1f9)](_0x314fd0(0x1cf))[_0x314fd0(0x1e2)]()[_0x314fd0(0x1ba)](a13_0x164716)[_0x314fd0(0x1f9)](_0x314fd0(0x1cf));});a13_0x164716();'use strict';var __decorate=this&&this[a13_0x32885b(0x1d2)]||function(_0x1e505d,_0x2fa32f,_0x32f85d,_0x5d4bd){const _0x15ea3e=a13_0x32885b;var _0x29b3a9=arguments[_0x15ea3e(0x1e9)],_0x249c78=_0x29b3a9<0x3?_0x2fa32f:_0x5d4bd===null?_0x5d4bd=Object[_0x15ea3e(0x1ea)](_0x2fa32f,_0x32f85d):_0x5d4bd,_0x367dab;if(typeof Reflect===_0x15ea3e(0x1e1)&&typeof Reflect[_0x15ea3e(0x1d9)]===_0x15ea3e(0x1bf))_0x249c78=Reflect[_0x15ea3e(0x1d9)](_0x1e505d,_0x2fa32f,_0x32f85d,_0x5d4bd);else{for(var _0x56840c=_0x1e505d[_0x15ea3e(0x1e9)]-0x1;_0x56840c>=0x0;_0x56840c--)if(_0x367dab=_0x1e505d[_0x56840c])_0x249c78=(_0x29b3a9<0x3?_0x367dab(_0x249c78):_0x29b3a9>0x3?_0x367dab(_0x2fa32f,_0x32f85d,_0x249c78):_0x367dab(_0x2fa32f,_0x32f85d))||_0x249c78;}return _0x29b3a9>0x3&&_0x249c78&&Object[_0x15ea3e(0x1be)](_0x2fa32f,_0x32f85d,_0x249c78),_0x249c78;},__metadata=this&&this[a13_0x32885b(0x1dd)]||function(_0x4b8f75,_0x732d6e){const _0x42a1f9=a13_0x32885b;if(typeof Reflect===_0x42a1f9(0x1e1)&&typeof Reflect[_0x42a1f9(0x1b4)]==='function')return Reflect['metadata'](_0x4b8f75,_0x732d6e);};Object[a13_0x32885b(0x1be)](exports,a13_0x32885b(0x1ed),{'value':!![]}),exports[a13_0x32885b(0x1bc)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x32885b(0x1b8)),koasend=require(a13_0x32885b(0x1ce)),core_1=require('@midwayjs/core'),ExcelStream_1=require(a13_0x32885b(0x1e0));let ExcelService=class ExcelService{async['parse'](_0x5ced65,_0x179fa1,_0x481dd0=[0x0]){const _0x493bad=a13_0x32885b;var _0x19abfe,_0x2d96a5;const _0x1e95b9=new exceljs[(_0x493bad(0x1b3))](),_0x4f90f7=[];let _0x5f5cc6=_0x5ced65['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x5f5cc6===null||_0x5f5cc6===void 0x0?void 0x0:_0x5f5cc6['startsWith']('/'))&&(_0x5f5cc6=this['app'][_0x493bad(0x1da)]()+'/'+_0x5f5cc6);try{await _0x1e95b9['xlsx']['readFile'](_0x5f5cc6);}catch(_0x24365f){return console['log'](_0x493bad(0x1db)+_0x5f5cc6+'\x20is\x20read\x20fail'),_0x4f90f7;}for(const _0xaf46dd of _0x481dd0){const _0x5ae4f1=lodash['isNumber'](_0xaf46dd)?((_0x19abfe=_0x1e95b9[_0x493bad(0x1c8)])===null||_0x19abfe===void 0x0?void 0x0:_0x19abfe[_0xaf46dd])||undefined:_0x1e95b9['getWorksheet'](_0xaf46dd);if(_0x5ae4f1){var _0x28c12e=0x1;const _0x2d1fea=_0x5ae4f1[_0x493bad(0x1e6)](0x1),_0x5ba3c5=await new Promise(_0xe84bd=>{const _0x29576a={};_0x2d1fea['eachCell']((_0xb3740f,_0x559551)=>{const _0x321ecf=a13_0x218f;for(const _0x364e75 of _0x179fa1){if(_0xb3740f[_0x321ecf(0x1d3)]==_0x364e75[_0x321ecf(0x1bd)])_0x28c12e=0x2,_0x29576a[_0x364e75[_0x321ecf(0x1e3)]]={'header':_0xb3740f['col'],'handler':(_0x364e75===null||_0x364e75===void 0x0?void 0x0:_0x364e75[_0x321ecf(0x1d1)])||(_0x364e75===null||_0x364e75===void 0x0?void 0x0:_0x364e75['handler'])};else{if(!_0x29576a[_0x364e75[_0x321ecf(0x1e3)]])try{const _0x182f1c=_0x2d1fea&&_0x2d1fea['getCell'](_0x364e75[_0x321ecf(0x1bd)]);_0x182f1c&&(_0x29576a[_0x364e75[_0x321ecf(0x1e3)]]={'header':_0x182f1c['col'],'handler':(_0x364e75===null||_0x364e75===void 0x0?void 0x0:_0x364e75['onRead'])||(_0x364e75===null||_0x364e75===void 0x0?void 0x0:_0x364e75[_0x321ecf(0x1c9)])});}catch{}}}_0x2d1fea[_0x321ecf(0x1cd)]==_0x559551&&_0xe84bd(_0x29576a);});});_0x52d161:for(const _0x49c04e of _0x5ae4f1['findRows'](_0x28c12e,_0x5ae4f1[_0x493bad(0x1e8)])){if(typeof(_0x49c04e===null||_0x49c04e===void 0x0?void 0x0:_0x49c04e['getCell'])!=_0x493bad(0x1bf))continue _0x52d161;const _0x213316={};_0x576e02:for(const _0x3efd5c in _0x5ba3c5){if(_0x5ba3c5[_0x3efd5c][_0x493bad(0x1bd)]){const _0x4d119b=_0x49c04e[_0x493bad(0x1b7)](_0x5ba3c5[_0x3efd5c]['header']);if(!_0x4d119b)continue _0x576e02;try{_0x4d119b[_0x493bad(0x1e2)]();}catch(_0x5ca557){_0x4d119b[_0x493bad(0x1e2)]=()=>{const _0x14c2e2=_0x493bad;var _0x1b9a8f;return''+(((_0x1b9a8f=_0x4d119b===null||_0x4d119b===void 0x0?void 0x0:_0x4d119b['model'])===null||_0x1b9a8f===void 0x0?void 0x0:_0x1b9a8f[_0x14c2e2(0x1d3)])||'');};}typeof((_0x2d96a5=_0x5ba3c5[_0x3efd5c])===null||_0x2d96a5===void 0x0?void 0x0:_0x2d96a5['handler'])==_0x493bad(0x1bf)?_0x213316[_0x3efd5c]=await _0x5ba3c5[_0x3efd5c]['handler'](lodash[_0x493bad(0x1c5)]({},_0x3efd5c,(_0x4d119b===null||_0x4d119b===void 0x0?void 0x0:_0x4d119b['toString']())||''),_0x4d119b['model']):_0x213316[_0x3efd5c]=(_0x4d119b===null||_0x4d119b===void 0x0?void 0x0:_0x4d119b[_0x493bad(0x1e2)]())||'';}}Object['keys'](_0x213316)['length']>0x0&&Object['values'](_0x213316)[_0x493bad(0x1c3)](_0x15ed44=>_0x15ed44!='')[_0x493bad(0x1e9)]>0x0&&_0x4f90f7[_0x493bad(0x1f5)](_0x213316);}}}return _0x4f90f7;}async['export'](_0xd2da0b,_0xfda23d,_0x5befa4,_0x2f7cf2,_0x172583){const _0x2d99d8=a13_0x32885b;var _0x123b89,_0x5eb09c,_0x452aab;const _0x3f4624=new exceljs[(_0x2d99d8(0x1b3))](),_0x3f4a98={},_0x4a6850=[],_0x5a26e9=_0x3f4624[_0x2d99d8(0x1d6)](_0x2d99d8(0x1ec),{'views':[{'state':_0x2d99d8(0x1c7),'ySplit':0x1}]});for(const _0x531554 in _0xfda23d){_0x3f4a98[_0xfda23d[_0x531554][_0x2d99d8(0x1e3)]]=_0xfda23d[_0x531554][_0x2d99d8(0x1bd)],_0x4a6850[_0x2d99d8(0x1f5)]({'header':_0xfda23d[_0x531554]['header'],'key':(_0x123b89=_0xfda23d[_0x531554])===null||_0x123b89===void 0x0?void 0x0:_0x123b89[_0x2d99d8(0x1e3)]['replace'](/\./g,'_')});}_0x5a26e9['columns']=_0x4a6850;for(const _0x318c52 in _0x5befa4){const _0x3840e2=_0x5befa4[_0x318c52],_0x2f95dc=_0x5a26e9[_0x2d99d8(0x1ca)]({});for(let _0x4c660c in _0xfda23d){const _0x3c3113=_0xfda23d[_0x4c660c][_0x2d99d8(0x1e3)][_0x2d99d8(0x1f6)](/\./g,'_'),_0x3cf5d4=_0x5a26e9[_0x2d99d8(0x1c2)](_0x3c3113),_0x2d1a2e=_0x2f95dc===null||_0x2f95dc===void 0x0?void 0x0:_0x2f95dc[_0x2d99d8(0x1b7)](_0x3c3113);if(typeof((_0x5eb09c=_0xfda23d[_0x4c660c])===null||_0x5eb09c===void 0x0?void 0x0:_0x5eb09c[_0x2d99d8(0x1de)])==_0x2d99d8(0x1bf))_0x2d1a2e[_0x2d99d8(0x1d3)]=await _0xfda23d[_0x4c660c][_0x2d99d8(0x1de)](_0x3840e2,{'row':_0x2f95dc,'col':_0x3cf5d4,'cell':_0x2d1a2e,'sheet':_0x5a26e9})||'';else typeof((_0x452aab=_0xfda23d[_0x4c660c])===null||_0x452aab===void 0x0?void 0x0:_0x452aab[_0x2d99d8(0x1c9)])==_0x2d99d8(0x1bf)?_0x2d1a2e[_0x2d99d8(0x1d3)]=await _0xfda23d[_0x4c660c][_0x2d99d8(0x1c9)](_0x3840e2,{'row':_0x2f95dc,'col':_0x3cf5d4,'cell':_0x2d1a2e,'sheet':_0x5a26e9})||'':_0x2d1a2e['value']=lodash[_0x2d99d8(0x1c6)](_0x3840e2,_0xfda23d[_0x4c660c][_0x2d99d8(0x1e3)],'');}}typeof _0x172583==_0x2d99d8(0x1bf)&&await _0x172583({'workbook':_0x3f4624,'worksheet':_0x5a26e9});let _0x181d52='';const _0x43cc49=_0xd2da0b+_0x2d99d8(0x1cb);if(_0x2f7cf2&&_0x2f7cf2[_0x2d99d8(0x1b5)]('/'))_0x181d52=''+_0x2f7cf2;else _0x2f7cf2&&!_0x2f7cf2[_0x2d99d8(0x1b5)]('/')&&!_0x2f7cf2[_0x2d99d8(0x1b5)]('\x5c')?_0x181d52=this['app']['getAppDir']()+'/'+_0x2f7cf2:_0x181d52=this[_0x2d99d8(0x1d4)][_0x2d99d8(0x1da)]()+_0x2d99d8(0x1f8)+dayjs()['format'](_0x2d99d8(0x1d5));return(_0x181d52[_0x2d99d8(0x1b2)]('/')||_0x181d52['endsWith']('\x5c'))&&(_0x181d52=_0x181d52[_0x2d99d8(0x1d7)](0x0,_0x181d52[_0x2d99d8(0x1e9)]-0x1)),_0x181d52=_0x181d52[_0x2d99d8(0x1f6)](/(\\|\/)/g,'/')[_0x2d99d8(0x1f6)](/\/{2,}/g,'/'),!fs[_0x2d99d8(0x1b6)](_0x181d52)&&fs[_0x2d99d8(0x1eb)](_0x181d52,{'recursive':!![]}),await _0x3f4624[_0x2d99d8(0x1c0)][_0x2d99d8(0x1d0)]((_0x181d52+'/'+_0x43cc49)['replace'](/(\\|\/)/g,'/')[_0x2d99d8(0x1f6)](/\/{2,}/g,'/')),{'filename':_0x43cc49,'filepath':(_0x181d52[_0x2d99d8(0x1d7)]((''+this[_0x2d99d8(0x1d4)][_0x2d99d8(0x1da)]())[_0x2d99d8(0x1e9)])+'/'+_0x43cc49)[_0x2d99d8(0x1f6)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a13_0x32885b(0x1c1)](_0x22ebf0,_0x5dffe5={'suffix':[a13_0x32885b(0x1f0),a13_0x32885b(0x1c0)]}){const _0xb25a33=a13_0x32885b;return await ExcelStream_1[_0xb25a33(0x1ef)]['instance'](_0x22ebf0,_0x5dffe5);}async[a13_0x32885b(0x1b9)](_0x286713,_0x283382){return await koasend(_0x286713,''+_0x283382);}};exports[a13_0x32885b(0x1bc)]=ExcelService,__decorate([(0x0,core_1[a13_0x32885b(0x1d8)])(),__metadata(a13_0x32885b(0x1e4),Object)],ExcelService[a13_0x32885b(0x1bb)],a13_0x32885b(0x1d4),void 0x0),exports[a13_0x32885b(0x1bc)]=ExcelService=__decorate([(0x0,core_1[a13_0x32885b(0x1dc)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a13_0x32885b(0x1f7)])],ExcelService);function a13_0x26d8(){const _0xb56ab5=['search','295dtFwge','endsWith','Workbook','metadata','startsWith','existsSync','getCell','exceljs','download','constructor','prototype','ExcelService','header','defineProperty','function','xlsx','stream','getColumn','filter','79912liINFP','set','get','frozen','worksheets','handler','addRow','.xlsx','6431022EWfMtV','cellCount','koa-send','(((.+)+)+)+$','writeFile','onRead','__decorate','value','app','YYYY/MM/DD','addWorksheet','substring','App','decorate','getAppDir','Api\x20Excel\x20Error:\x20','Provide','__metadata','onWrite','1065854XxDoRV','./ExcelStream','object','toString','key','design:type','4678600WUPHyR','getRow','16191750XUWvro','rowCount','length','getOwnPropertyDescriptor','mkdirSync','Sheet\x201','__esModule','4913910bVJAVP','ExcelStream','xls','186bgmbdh','7LrUwEM','6614agNnJN','apply','push','replace','Singleton','/public/xlsx/'];a13_0x26d8=function(){return _0xb56ab5;};return a13_0x26d8();}
|
|
1
|
+
const a13_0x1dfc0c=a13_0x1034;(function(_0x3930d8,_0x432f86){const _0xb8460b=a13_0x1034,_0x38453e=_0x3930d8();while(!![]){try{const _0x51d94e=parseInt(_0xb8460b(0xce))/0x1*(parseInt(_0xb8460b(0xc8))/0x2)+parseInt(_0xb8460b(0xdd))/0x3*(-parseInt(_0xb8460b(0xc4))/0x4)+parseInt(_0xb8460b(0xe7))/0x5*(-parseInt(_0xb8460b(0xd8))/0x6)+-parseInt(_0xb8460b(0x101))/0x7+-parseInt(_0xb8460b(0xc3))/0x8*(parseInt(_0xb8460b(0xdc))/0x9)+-parseInt(_0xb8460b(0xd4))/0xa+parseInt(_0xb8460b(0xd0))/0xb*(parseInt(_0xb8460b(0xd5))/0xc);if(_0x51d94e===_0x432f86)break;else _0x38453e['push'](_0x38453e['shift']());}catch(_0x31985d){_0x38453e['push'](_0x38453e['shift']());}}}(a13_0x1643,0xecc64));const a13_0x3109c7=(function(){let _0x262f8e=!![];return function(_0xf0d762,_0x11be50){const _0x2865b2=_0x262f8e?function(){const _0x17c47c=a13_0x1034;if(_0x11be50){const _0x4951b4=_0x11be50[_0x17c47c(0x103)](_0xf0d762,arguments);return _0x11be50=null,_0x4951b4;}}:function(){};return _0x262f8e=![],_0x2865b2;};}()),a13_0xc5c51c=a13_0x3109c7(this,function(){const _0x3687a6=a13_0x1034;return a13_0xc5c51c[_0x3687a6(0xc7)]()[_0x3687a6(0xbe)](_0x3687a6(0xda))['toString']()[_0x3687a6(0xdf)](a13_0xc5c51c)[_0x3687a6(0xbe)](_0x3687a6(0xda));});function a13_0x1034(_0x45a062,_0x1fef78){const _0xcef9aa=a13_0x1643();return a13_0x1034=function(_0xc5c51c,_0x3109c7){_0xc5c51c=_0xc5c51c-0xba;let _0x1643e0=_0xcef9aa[_0xc5c51c];return _0x1643e0;},a13_0x1034(_0x45a062,_0x1fef78);}a13_0xc5c51c();'use strict';var __decorate=this&&this[a13_0x1dfc0c(0x10a)]||function(_0x378d9c,_0x138edd,_0x565b97,_0x43cccd){const _0x61ff14=a13_0x1dfc0c;var _0x3afca8=arguments[_0x61ff14(0xca)],_0x1c6385=_0x3afca8<0x3?_0x138edd:_0x43cccd===null?_0x43cccd=Object[_0x61ff14(0xeb)](_0x138edd,_0x565b97):_0x43cccd,_0x364317;if(typeof Reflect===_0x61ff14(0xdb)&&typeof Reflect[_0x61ff14(0xed)]===_0x61ff14(0xf1))_0x1c6385=Reflect[_0x61ff14(0xed)](_0x378d9c,_0x138edd,_0x565b97,_0x43cccd);else{for(var _0x89971e=_0x378d9c[_0x61ff14(0xca)]-0x1;_0x89971e>=0x0;_0x89971e--)if(_0x364317=_0x378d9c[_0x89971e])_0x1c6385=(_0x3afca8<0x3?_0x364317(_0x1c6385):_0x3afca8>0x3?_0x364317(_0x138edd,_0x565b97,_0x1c6385):_0x364317(_0x138edd,_0x565b97))||_0x1c6385;}return _0x3afca8>0x3&&_0x1c6385&&Object[_0x61ff14(0xec)](_0x138edd,_0x565b97,_0x1c6385),_0x1c6385;},__metadata=this&&this['__metadata']||function(_0x5ac28e,_0x22bd1f){const _0x25e79a=a13_0x1dfc0c;if(typeof Reflect==='object'&&typeof Reflect[_0x25e79a(0xe1)]===_0x25e79a(0xf1))return Reflect['metadata'](_0x5ac28e,_0x22bd1f);};Object[a13_0x1dfc0c(0xec)](exports,a13_0x1dfc0c(0x105),{'value':!![]}),exports[a13_0x1dfc0c(0x109)]=void 0x0;function a13_0x1643(){const _0x126278=['(((.+)+)+)+$','object','27TgJKNi','589251hMTpup','getWorksheet','constructor','handler','metadata','cellCount','Provide','push','getCell','stream','155aXJBQM','getColumn','endsWith','App','getOwnPropertyDescriptor','defineProperty','decorate','Scope','ExcelStream','col','function','startsWith','Singleton','./ExcelStream','app','Api\x20Excel\x20Error:\x20','mkdirSync','model','readFile','values','Workbook','onWrite','format','log','writeFile','keys','10901408iLUIEv','key','apply','getRow','__esModule','prototype','export','getAppDir','ExcelService','__decorate','set','get','filter','value','koa-send','search','instance','xlsx','addRow','parse','3647632tMaTvI','28hVdJdm','YYYY/MM/DD','design:type','toString','55026haeibH','onRead','length','rowCount','existsSync','header','45jUOZGI','download','7690430eICwpI','exceljs','substring','@midwayjs/core','5430390EwTDEF','96hDsKLT','replace','frozen','197058pBvvSZ','/public/xlsx/'];a13_0x1643=function(){return _0x126278;};return a13_0x1643();}const fs=require('fs'),exceljs=require(a13_0x1dfc0c(0xd1)),koasend=require(a13_0x1dfc0c(0xbd)),core_1=require(a13_0x1dfc0c(0xd3)),ExcelStream_1=require(a13_0x1dfc0c(0xf4));let ExcelService=class ExcelService{async[a13_0x1dfc0c(0xc2)](_0x1ff269,_0x59cdf9,_0x514a08=[0x0]){const _0x26fc4b=a13_0x1dfc0c;var _0x5aca9b,_0x577313;const _0x33e736=new exceljs[(_0x26fc4b(0xfb))](),_0x2ce257=[];let _0x4bc688=_0x1ff269[_0x26fc4b(0xd6)](/(\\|\/)/g,'/')[_0x26fc4b(0xd6)](/\/{2,}/g,'/');!(_0x4bc688===null||_0x4bc688===void 0x0?void 0x0:_0x4bc688[_0x26fc4b(0xf2)]('/'))&&(_0x4bc688=this[_0x26fc4b(0xf5)][_0x26fc4b(0x108)]()+'/'+_0x4bc688);try{await _0x33e736[_0x26fc4b(0xc0)][_0x26fc4b(0xf9)](_0x4bc688);}catch(_0x4f9213){return console[_0x26fc4b(0xfe)](_0x26fc4b(0xf6)+_0x4bc688+'\x20is\x20read\x20fail'),_0x2ce257;}for(const _0x2bbd7d of _0x514a08){const _0x4a8c26=lodash['isNumber'](_0x2bbd7d)?((_0x5aca9b=_0x33e736['worksheets'])===null||_0x5aca9b===void 0x0?void 0x0:_0x5aca9b[_0x2bbd7d])||undefined:_0x33e736[_0x26fc4b(0xde)](_0x2bbd7d);if(_0x4a8c26){var _0x4c72bd=0x1;const _0x44daf7=_0x4a8c26[_0x26fc4b(0x104)](0x1),_0x1c438e=await new Promise(_0xc06da4=>{const _0x462011={};_0x44daf7['eachCell']((_0x51073d,_0x4df709)=>{const _0x41edc2=a13_0x1034;for(const _0x2316c6 of _0x59cdf9){if(_0x51073d['value']==_0x2316c6['header'])_0x4c72bd=0x2,_0x462011[_0x2316c6[_0x41edc2(0x102)]]={'header':_0x51073d[_0x41edc2(0xf0)],'handler':(_0x2316c6===null||_0x2316c6===void 0x0?void 0x0:_0x2316c6[_0x41edc2(0xc9)])||(_0x2316c6===null||_0x2316c6===void 0x0?void 0x0:_0x2316c6['handler'])};else{if(!_0x462011[_0x2316c6[_0x41edc2(0x102)]])try{const _0x48d36a=_0x44daf7&&_0x44daf7['getCell'](_0x2316c6[_0x41edc2(0xcd)]);_0x48d36a&&(_0x462011[_0x2316c6[_0x41edc2(0x102)]]={'header':_0x48d36a[_0x41edc2(0xf0)],'handler':(_0x2316c6===null||_0x2316c6===void 0x0?void 0x0:_0x2316c6[_0x41edc2(0xc9)])||(_0x2316c6===null||_0x2316c6===void 0x0?void 0x0:_0x2316c6[_0x41edc2(0xe0)])});}catch{}}}_0x44daf7[_0x41edc2(0xe2)]==_0x4df709&&_0xc06da4(_0x462011);});});_0x4b95cd:for(const _0x3738fa of _0x4a8c26['findRows'](_0x4c72bd,_0x4a8c26[_0x26fc4b(0xcb)])){if(typeof(_0x3738fa===null||_0x3738fa===void 0x0?void 0x0:_0x3738fa[_0x26fc4b(0xe5)])!='function')continue _0x4b95cd;const _0x84c2b6={};_0x38e20c:for(const _0x28e15b in _0x1c438e){if(_0x1c438e[_0x28e15b]['header']){const _0x1d2848=_0x3738fa[_0x26fc4b(0xe5)](_0x1c438e[_0x28e15b][_0x26fc4b(0xcd)]);if(!_0x1d2848)continue _0x38e20c;try{_0x1d2848[_0x26fc4b(0xc7)]();}catch(_0xb5c42a){_0x1d2848[_0x26fc4b(0xc7)]=()=>{const _0x5c15c3=_0x26fc4b;var _0x30d642;return''+(((_0x30d642=_0x1d2848===null||_0x1d2848===void 0x0?void 0x0:_0x1d2848['model'])===null||_0x30d642===void 0x0?void 0x0:_0x30d642[_0x5c15c3(0xbc)])||'');};}typeof((_0x577313=_0x1c438e[_0x28e15b])===null||_0x577313===void 0x0?void 0x0:_0x577313['handler'])=='function'?_0x84c2b6[_0x28e15b]=await _0x1c438e[_0x28e15b][_0x26fc4b(0xe0)](lodash[_0x26fc4b(0x10b)]({},_0x28e15b,(_0x1d2848===null||_0x1d2848===void 0x0?void 0x0:_0x1d2848[_0x26fc4b(0xc7)]())||''),_0x1d2848[_0x26fc4b(0xf8)]):_0x84c2b6[_0x28e15b]=(_0x1d2848===null||_0x1d2848===void 0x0?void 0x0:_0x1d2848[_0x26fc4b(0xc7)]())||'';}}Object[_0x26fc4b(0x100)](_0x84c2b6)[_0x26fc4b(0xca)]>0x0&&Object[_0x26fc4b(0xfa)](_0x84c2b6)[_0x26fc4b(0xbb)](_0x22d0ff=>_0x22d0ff!='')[_0x26fc4b(0xca)]>0x0&&_0x2ce257[_0x26fc4b(0xe4)](_0x84c2b6);}}}return _0x2ce257;}async[a13_0x1dfc0c(0x107)](_0x11ab44,_0x36ae4d,_0xc0c39a,_0x413859,_0x2e3392){const _0x37d16b=a13_0x1dfc0c;var _0xc57bdc,_0x10473d,_0x2aff5d;const _0x19a82e=new exceljs['Workbook'](),_0x3a40df={},_0x2904dc=[],_0x2f0e63=_0x19a82e['addWorksheet']('Sheet\x201',{'views':[{'state':_0x37d16b(0xd7),'ySplit':0x1}]});for(const _0x2e62af in _0x36ae4d){_0x3a40df[_0x36ae4d[_0x2e62af]['key']]=_0x36ae4d[_0x2e62af]['header'],_0x2904dc['push']({'header':_0x36ae4d[_0x2e62af][_0x37d16b(0xcd)],'key':(_0xc57bdc=_0x36ae4d[_0x2e62af])===null||_0xc57bdc===void 0x0?void 0x0:_0xc57bdc[_0x37d16b(0x102)][_0x37d16b(0xd6)](/\./g,'_')});}_0x2f0e63['columns']=_0x2904dc;for(const _0x260589 in _0xc0c39a){const _0x37857a=_0xc0c39a[_0x260589],_0x3a474a=_0x2f0e63[_0x37d16b(0xc1)]({});for(let _0x1ccd6a in _0x36ae4d){const _0x36e7b5=_0x36ae4d[_0x1ccd6a][_0x37d16b(0x102)][_0x37d16b(0xd6)](/\./g,'_'),_0x436902=_0x2f0e63[_0x37d16b(0xe8)](_0x36e7b5),_0x4c895c=_0x3a474a===null||_0x3a474a===void 0x0?void 0x0:_0x3a474a[_0x37d16b(0xe5)](_0x36e7b5);if(typeof((_0x10473d=_0x36ae4d[_0x1ccd6a])===null||_0x10473d===void 0x0?void 0x0:_0x10473d[_0x37d16b(0xfc)])==_0x37d16b(0xf1))_0x4c895c['value']=await _0x36ae4d[_0x1ccd6a][_0x37d16b(0xfc)](_0x37857a,{'row':_0x3a474a,'col':_0x436902,'cell':_0x4c895c,'sheet':_0x2f0e63})||'';else typeof((_0x2aff5d=_0x36ae4d[_0x1ccd6a])===null||_0x2aff5d===void 0x0?void 0x0:_0x2aff5d[_0x37d16b(0xe0)])==_0x37d16b(0xf1)?_0x4c895c[_0x37d16b(0xbc)]=await _0x36ae4d[_0x1ccd6a][_0x37d16b(0xe0)](_0x37857a,{'row':_0x3a474a,'col':_0x436902,'cell':_0x4c895c,'sheet':_0x2f0e63})||'':_0x4c895c[_0x37d16b(0xbc)]=lodash[_0x37d16b(0xba)](_0x37857a,_0x36ae4d[_0x1ccd6a]['key'],'');}}typeof _0x2e3392==_0x37d16b(0xf1)&&await _0x2e3392({'workbook':_0x19a82e,'worksheet':_0x2f0e63});let _0x18e74b='';const _0x3daebf=_0x11ab44+'.xlsx';if(_0x413859&&_0x413859[_0x37d16b(0xf2)]('/'))_0x18e74b=''+_0x413859;else _0x413859&&!_0x413859[_0x37d16b(0xf2)]('/')&&!_0x413859[_0x37d16b(0xf2)]('\x5c')?_0x18e74b=this[_0x37d16b(0xf5)]['getAppDir']()+'/'+_0x413859:_0x18e74b=this[_0x37d16b(0xf5)]['getAppDir']()+_0x37d16b(0xd9)+dayjs()[_0x37d16b(0xfd)](_0x37d16b(0xc5));return(_0x18e74b[_0x37d16b(0xe9)]('/')||_0x18e74b[_0x37d16b(0xe9)]('\x5c'))&&(_0x18e74b=_0x18e74b[_0x37d16b(0xd2)](0x0,_0x18e74b[_0x37d16b(0xca)]-0x1)),_0x18e74b=_0x18e74b[_0x37d16b(0xd6)](/(\\|\/)/g,'/')[_0x37d16b(0xd6)](/\/{2,}/g,'/'),!fs[_0x37d16b(0xcc)](_0x18e74b)&&fs[_0x37d16b(0xf7)](_0x18e74b,{'recursive':!![]}),await _0x19a82e['xlsx'][_0x37d16b(0xff)]((_0x18e74b+'/'+_0x3daebf)[_0x37d16b(0xd6)](/(\\|\/)/g,'/')[_0x37d16b(0xd6)](/\/{2,}/g,'/')),{'filename':_0x3daebf,'filepath':(_0x18e74b['substring']((''+this[_0x37d16b(0xf5)][_0x37d16b(0x108)]())[_0x37d16b(0xca)])+'/'+_0x3daebf)['replace'](/(\\|\/)/g,'/')[_0x37d16b(0xd6)](/\/{2,}/g,'/')};}async[a13_0x1dfc0c(0xe6)](_0x227b5e,_0xb4fc1b={'suffix':['xls',a13_0x1dfc0c(0xc0)]}){const _0x1f5763=a13_0x1dfc0c;return await ExcelStream_1[_0x1f5763(0xef)][_0x1f5763(0xbf)](_0x227b5e,_0xb4fc1b);}async[a13_0x1dfc0c(0xcf)](_0x4a0426,_0x2e6355){return await koasend(_0x4a0426,''+_0x2e6355);}};exports['ExcelService']=ExcelService,__decorate([(0x0,core_1[a13_0x1dfc0c(0xea)])(),__metadata(a13_0x1dfc0c(0xc6),Object)],ExcelService[a13_0x1dfc0c(0x106)],'app',void 0x0),exports[a13_0x1dfc0c(0x109)]=ExcelService=__decorate([(0x0,core_1[a13_0x1dfc0c(0xe3)])(),(0x0,core_1[a13_0x1dfc0c(0xee)])(core_1['ScopeEnum'][a13_0x1dfc0c(0xf3)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x148409=a14_0x517a;(function(_0x147cf8,_0x21d294){const _0x2697fc=a14_0x517a,_0x3da003=_0x147cf8();while(!![]){try{const _0x365619=parseInt(_0x2697fc(0x17f))/0x1+-parseInt(_0x2697fc(0x170))/0x2*(-parseInt(_0x2697fc(0x16d))/0x3)+parseInt(_0x2697fc(0x18c))/0x4*(-parseInt(_0x2697fc(0x17e))/0x5)+-parseInt(_0x2697fc(0x176))/0x6+parseInt(_0x2697fc(0x198))/0x7*(parseInt(_0x2697fc(0x1a2))/0x8)+-parseInt(_0x2697fc(0x1a1))/0x9*(parseInt(_0x2697fc(0x190))/0xa)+-parseInt(_0x2697fc(0x19f))/0xb*(-parseInt(_0x2697fc(0x18b))/0xc);if(_0x365619===_0x21d294)break;else _0x3da003['push'](_0x3da003['shift']());}catch(_0x24fa68){_0x3da003['push'](_0x3da003['shift']());}}}(a14_0x1cd0,0xd0d37));const a14_0x611439=(function(){let _0x37ec7e=!![];return function(_0x543233,_0x15f7a1){const _0x5c2cd7=_0x37ec7e?function(){const _0x1deb20=a14_0x517a;if(_0x15f7a1){const _0x2aaf5b=_0x15f7a1[_0x1deb20(0x199)](_0x543233,arguments);return _0x15f7a1=null,_0x2aaf5b;}}:function(){};return _0x37ec7e=![],_0x5c2cd7;};}()),a14_0x43bb3f=a14_0x611439(this,function(){const _0x186477=a14_0x517a;return a14_0x43bb3f[_0x186477(0x189)]()['search']('(((.+)+)+)+$')[_0x186477(0x189)]()[_0x186477(0x17d)](a14_0x43bb3f)[_0x186477(0x16f)](_0x186477(0x183));});a14_0x43bb3f();function a14_0x1cd0(){const _0x448ad4=['col','dirname','3409782SRxcrH','addWorksheet','suffix','getColumn','worksheets','substring','row','constructor','5WYwwiq','1108857vJBAjo','__esModule','columns','header','(((.+)+)+)+$','set','error','stream','文件名格式错误','value','toString','Workbook','120BzocQd','1248188qDzauU','sheets','getWorksheet','frozen','7246270amZHDJ','isArray','xlsx','rootpath','get','model','length','xls','77ErAoMO','apply','push','getWriterSheet','includes','reader','has','627792rBCDnQ','instance','18kXFcey','89720bKydGK','isNumber','writer','function','getCell','path','indexOf','read','WorksheetWriterMap','handler','WorkbookReader','ignore','ExcelStream','keys','startsWith','WorkbookWriter','key','99PyHVcf','eachCell','search','83758tdnMvn','existsSync','lastIndexOf','replace'];a14_0x1cd0=function(){return _0x448ad4;};return a14_0x1cd0();}'use strict';Object['defineProperty'](exports,a14_0x148409(0x180),{'value':!![]}),exports['ExcelStream']=void 0x0;const fs=require('fs'),path=require(a14_0x148409(0x1a7)),exceljs=require('exceljs');function a14_0x517a(_0x44bf00,_0x2b696f){const _0x227ad8=a14_0x1cd0();return a14_0x517a=function(_0x43bb3f,_0x611439){_0x43bb3f=_0x43bb3f-0x16b;let _0x1cd02f=_0x227ad8[_0x43bb3f];return _0x1cd02f;},a14_0x517a(_0x44bf00,_0x2b696f);}class ExcelStream{constructor(_0x2d044f,_0x1b1edb){const _0x5127ca=a14_0x148409;this[_0x5127ca(0x1aa)]=new Map(),(this[_0x5127ca(0x16b)]=_0x2d044f,this['WorkbookReader']=_0x1b1edb);}static[a14_0x148409(0x1a0)](_0x51c09a,_0x264ab3={'suffix':[a14_0x148409(0x197),a14_0x148409(0x192)]}){return new Promise(async(_0x2a254d,_0x47f1f6)=>{const _0x46d903=a14_0x517a,_0x4feefd=_0x51c09a[_0x46d903(0x17b)]((_0x51c09a[_0x46d903(0x1a8)]('/')>-0x1?_0x51c09a[_0x46d903(0x172)]('/'):_0x51c09a[_0x46d903(0x172)]('\x5c'))+0x1),_0x520375=path[_0x46d903(0x175)](((_0x264ab3===null||_0x264ab3===void 0x0?void 0x0:_0x264ab3['rootpath'])&&!_0x51c09a[_0x46d903(0x1b0)](_0x264ab3[_0x46d903(0x193)])?_0x264ab3['rootpath']+'/'+_0x51c09a:'/'+_0x51c09a)['replace'](/(\\|\/)/g,'/')[_0x46d903(0x173)](/\/{2,}/g,'/'));if(!((_0x264ab3===null||_0x264ab3===void 0x0?void 0x0:_0x264ab3[_0x46d903(0x178)])?_0x264ab3[_0x46d903(0x178)]:[_0x46d903(0x197),_0x46d903(0x192)])[_0x46d903(0x19c)](_0x4feefd[_0x46d903(0x17b)](_0x4feefd[_0x46d903(0x172)]('.')+0x1)))return _0x47f1f6(_0x46d903(0x187));if(!fs['existsSync']((_0x520375+'/'+_0x4feefd)[_0x46d903(0x173)](/(\\|\/)/g,'/')[_0x46d903(0x173)](/\/{2,}/g,'/'))){!fs[_0x46d903(0x171)](_0x520375)&&fs['mkdirSync'](_0x520375,{'recursive':!![]});const _0x3614c2=new exceljs[(_0x46d903(0x18a))]();await _0x3614c2[_0x46d903(0x192)]['writeFile']((_0x520375+'/'+_0x4feefd)[_0x46d903(0x173)](/(\\|\/)/g,'/')[_0x46d903(0x173)](/\/{2,}/g,'/'));}const _0x183e1d=new exceljs[(_0x46d903(0x186))][(_0x46d903(0x192))][(_0x46d903(0x16b))]({'filename':(_0x520375+'/'+_0x4feefd)[_0x46d903(0x173)](/(\\|\/)/g,'/')[_0x46d903(0x173)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x4372ed=new exceljs[(_0x46d903(0x186))][(_0x46d903(0x192))][(_0x46d903(0x1ac))]((_0x520375+'/'+_0x4feefd)[_0x46d903(0x173)](/(\\|\/)/g,'/')[_0x46d903(0x173)](/\/{2,}/g,'/'),{'worksheets':'emit','sharedStrings':_0x46d903(0x1ad),'hyperlinks':_0x46d903(0x1ad),'styles':_0x46d903(0x1ad)});return _0x2a254d(new ExcelStream(_0x183e1d,_0x4372ed));});}async[a14_0x148409(0x1a4)](_0x211784,_0x58e308,_0xd1d344=0x0){const _0x2755e2=a14_0x148409;var _0x5a4594,_0x44a52e;const _0x1ca9bf=await this[_0x2755e2(0x19b)](_0xd1d344,!![]),_0x891f9d={},_0x1b9e98=[];for(const _0x173d74 in _0x211784){_0x891f9d[_0x211784[_0x173d74][_0x2755e2(0x16c)]]=_0x211784[_0x173d74][_0x2755e2(0x182)],_0x1b9e98[_0x2755e2(0x19a)]({'header':_0x211784[_0x173d74][_0x2755e2(0x182)],'key':(_0x5a4594=_0x211784[_0x173d74])===null||_0x5a4594===void 0x0?void 0x0:_0x5a4594[_0x2755e2(0x16c)][_0x2755e2(0x173)](/\./g,'_')});}(_0x1ca9bf===null||_0x1ca9bf===void 0x0?void 0x0:_0x1ca9bf['columns'])!=_0x1b9e98&&(_0x1ca9bf[_0x2755e2(0x181)]=_0x1b9e98);for(const _0xa956ab in _0x58e308){const _0x5ebeaa=_0x58e308[_0xa956ab],_0x52e9a2=_0x1ca9bf['addRow']({});for(let _0x47e480 in _0x211784){const _0x151251=_0x211784[_0x47e480][_0x2755e2(0x16c)]['replace'](/\./g,'_'),_0x2f6fb6=_0x1ca9bf[_0x2755e2(0x179)](_0x151251),_0x5d6a9a=_0x52e9a2===null||_0x52e9a2===void 0x0?void 0x0:_0x52e9a2[_0x2755e2(0x1a6)](_0x151251);typeof((_0x44a52e=_0x211784[_0x47e480])===null||_0x44a52e===void 0x0?void 0x0:_0x44a52e[_0x2755e2(0x1ab)])==_0x2755e2(0x1a5)?_0x5d6a9a[_0x2755e2(0x188)]=await _0x211784[_0x47e480][_0x2755e2(0x1ab)](_0x5ebeaa,{'row':_0x52e9a2,'col':_0x2f6fb6,'cell':_0x5d6a9a,'sheet':_0x1ca9bf})||'':_0x5d6a9a[_0x2755e2(0x188)]=lodash[_0x2755e2(0x194)](_0x5ebeaa,_0x211784[_0x47e480][_0x2755e2(0x16c)],'');}}return this;}async[a14_0x148409(0x19d)](_0x2e9dc5,_0x5a57ed,_0x613537={'sheets':0x0}){const _0xb64697=a14_0x148409;var _0x133ea1;const _0x1ddc73=(_0x613537===null||_0x613537===void 0x0?void 0x0:_0x613537[_0xb64697(0x18d)])?Array[_0xb64697(0x191)](_0x613537[_0xb64697(0x18d)])?_0x613537[_0xb64697(0x18d)]:[_0x613537[_0xb64697(0x18d)]]:[0x0],_0x4d9ffc=_0x307707=>new Promise(async(_0x42433b,_0x319b16)=>{const _0xa5b080=_0xb64697,_0x46506f=_0x307707['getRow'](0x1),_0x11ddac=await new Promise(_0x4d5bc2=>{const _0x5161db=a14_0x517a,_0x47c31c={};_0x46506f[_0x5161db(0x16e)]((_0x322e0b,_0x1de40c)=>{const _0x3d37fb=_0x5161db;for(const _0x4428e4 of _0x2e9dc5){if(_0x322e0b[_0x3d37fb(0x188)]==_0x4428e4[_0x3d37fb(0x182)])_0x47c31c[_0x4428e4[_0x3d37fb(0x16c)]]={'header':_0x322e0b['col'],'handler':_0x4428e4[_0x3d37fb(0x1ab)]};else{if(!_0x47c31c[_0x4428e4[_0x3d37fb(0x16c)]])try{const _0x49190f=_0x46506f&&_0x46506f[_0x3d37fb(0x1a6)](_0x4428e4[_0x3d37fb(0x182)]);_0x49190f&&(_0x47c31c[_0x4428e4[_0x3d37fb(0x16c)]]={'header':_0x49190f[_0x3d37fb(0x174)],'handler':_0x4428e4[_0x3d37fb(0x1ab)]});}catch{}}}_0x46506f['cellCount']==_0x1de40c&&_0x4d5bc2(_0x47c31c);});});_0x307707['on']('finished',_0x1488d0=>_0x42433b(_0x307707)),_0x307707['on'](_0xa5b080(0x185),_0x16dc67=>_0x319b16(_0x16dc67)),_0x307707['on'](_0xa5b080(0x17c),async _0x382b22=>{const _0x494944=_0xa5b080;var _0x19014d;if(typeof(_0x382b22===null||_0x382b22===void 0x0?void 0x0:_0x382b22[_0x494944(0x1a6)])==_0x494944(0x1a5)){const _0x813309={};_0x18a53a:for(const _0x464c2f in _0x11ddac){if(_0x11ddac[_0x464c2f][_0x494944(0x182)]){const _0x4829f2=_0x382b22[_0x494944(0x1a6)](_0x11ddac[_0x464c2f][_0x494944(0x182)]);if(!_0x4829f2)continue _0x18a53a;try{_0x4829f2[_0x494944(0x189)]();}catch(_0x4621d3){_0x4829f2[_0x494944(0x189)]=()=>{const _0x1831fd=_0x494944;var _0x510115;return''+(((_0x510115=_0x4829f2===null||_0x4829f2===void 0x0?void 0x0:_0x4829f2[_0x1831fd(0x195)])===null||_0x510115===void 0x0?void 0x0:_0x510115[_0x1831fd(0x188)])||'');};}typeof((_0x19014d=_0x11ddac[_0x464c2f])===null||_0x19014d===void 0x0?void 0x0:_0x19014d['handler'])==_0x494944(0x1a5)?_0x813309[_0x464c2f]=await _0x11ddac[_0x464c2f][_0x494944(0x1ab)](lodash[_0x494944(0x184)]({},_0x464c2f,(_0x4829f2===null||_0x4829f2===void 0x0?void 0x0:_0x4829f2[_0x494944(0x189)]())||''),_0x4829f2[_0x494944(0x195)]):_0x813309[_0x464c2f]=(_0x4829f2===null||_0x4829f2===void 0x0?void 0x0:_0x4829f2[_0x494944(0x189)]())||'';}}Object[_0x494944(0x1af)](_0x813309)[_0x494944(0x196)]>0x0&&Object['values'](_0x813309)['filter'](_0xbdefce=>_0xbdefce!='')[_0x494944(0x196)]>0x0&&await _0x5a57ed(_0x813309,{'sheet':_0x307707,'row':_0x382b22});}}),await _0x307707[_0xa5b080(0x1a9)]();});for(const _0x585f90 of _0x1ddc73){const _0x570caf=lodash[_0xb64697(0x1a3)](_0x585f90)?((_0x133ea1=this[_0xb64697(0x1ac)][_0xb64697(0x17a)])===null||_0x133ea1===void 0x0?void 0x0:_0x133ea1[_0x585f90])||undefined:this[_0xb64697(0x1ac)][_0xb64697(0x18e)](_0x585f90);_0x570caf&&await _0x4d9ffc(_0x570caf);}}async['save'](){return await this['WorkbookWriter']['commit'](),this;}async[a14_0x148409(0x19b)](_0x426f4a,_0x117919=![]){const _0x146616=a14_0x148409;let _0x3988a3=this[_0x146616(0x16b)][_0x146616(0x18e)](_0x426f4a);return!_0x3988a3&&this['WorksheetWriterMap'][_0x146616(0x19e)](_0x426f4a)&&(_0x3988a3=this[_0x146616(0x1aa)]['get'](_0x426f4a)),!_0x3988a3&&_0x117919&&(_0x3988a3=this[_0x146616(0x16b)][_0x146616(0x177)](lodash[_0x146616(0x1a3)](_0x426f4a)?undefined:''+_0x426f4a,{'views':[{'state':_0x146616(0x18f),'ySplit':0x0}]}),this[_0x146616(0x1aa)][_0x146616(0x184)](_0x426f4a,_0x3988a3)),_0x3988a3;}}exports[a14_0x148409(0x1ae)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a15_0xefaf(_0x1b6d6b,_0x3e0774){var _0xd232fb=a15_0x20a6();return a15_0xefaf=function(_0x130de2,_0x18f6b6){_0x130de2=_0x130de2-0x190;var _0x20a6b4=_0xd232fb[_0x130de2];return _0x20a6b4;},a15_0xefaf(_0x1b6d6b,_0x3e0774);}var a15_0x11ddab=a15_0xefaf;(function(_0x35e7e1,_0xddbd3){var _0x5c8364=a15_0xefaf,_0x598df4=_0x35e7e1();while(!![]){try{var _0x610bdf=-parseInt(_0x5c8364(0x19e))/0x1*(parseInt(_0x5c8364(0x193))/0x2)+-parseInt(_0x5c8364(0x195))/0x3*(-parseInt(_0x5c8364(0x1a0))/0x4)+parseInt(_0x5c8364(0x197))/0x5+parseInt(_0x5c8364(0x196))/0x6*(parseInt(_0x5c8364(0x1a5))/0x7)+-parseInt(_0x5c8364(0x198))/0x8+parseInt(_0x5c8364(0x19d))/0x9*(parseInt(_0x5c8364(0x19c))/0xa)+-parseInt(_0x5c8364(0x1a3))/0xb;if(_0x610bdf===_0xddbd3)break;else _0x598df4['push'](_0x598df4['shift']());}catch(_0x546059){_0x598df4['push'](_0x598df4['shift']());}}}(a15_0x20a6,0x82228));var a15_0x18f6b6=(function(){var _0x54ad19=!![];return function(_0x269123,_0x1f15a9){var _0x36bacd=_0x54ad19?function(){var _0x598add=a15_0xefaf;if(_0x1f15a9){var _0x6cedda=_0x1f15a9[_0x598add(0x192)](_0x269123,arguments);return _0x1f15a9=null,_0x6cedda;}}:function(){};return _0x54ad19=![],_0x36bacd;};}()),a15_0x130de2=a15_0x18f6b6(this,function(){var _0x464a7e=a15_0xefaf;return a15_0x130de2[_0x464a7e(0x190)]()[_0x464a7e(0x19a)](_0x464a7e(0x194))[_0x464a7e(0x190)]()[_0x464a7e(0x191)](a15_0x130de2)['search'](_0x464a7e(0x194));});a15_0x130de2();'use strict';Object['defineProperty'](exports,a15_0x11ddab(0x1a1),{'value':!![]}),exports[a15_0x11ddab(0x1a2)]=exports[a15_0x11ddab(0x19b)]=exports[a15_0x11ddab(0x1a4)]=exports[a15_0x11ddab(0x1a6)]=void 0x0,exports[a15_0x11ddab(0x1a6)]=a15_0x11ddab(0x199),exports[a15_0x11ddab(0x1a4)]='anncic-api:action:route',exports[a15_0x11ddab(0x19b)]=a15_0x11ddab(0x19f);class AppsConfigTmp{}function a15_0x20a6(){var _0x499a59=['24smMqBU','608200JJlbxi','7727656RHywhF','anncic-api:action','search','APPSCONFIG_KEY','10YaNzSs','7690122HXPjWP','32713BwVUcg','anncic-api:apps:config','236qAvAPn','__esModule','AppsConfigTmp','5486371JoKzzH','ACTION_ROUTE_KEY','995218damBdA','ACTION_KEY','toString','constructor','apply','34ZdFvna','(((.+)+)+)+$','51309MYXbXq'];a15_0x20a6=function(){return _0x499a59;};return a15_0x20a6();}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a16_0x3dee(){var _0x12e739=['design:type','decorate','constructor','object','排序方式','Rule','apply','metadata','6734144QqAkQF','72PdMugn','toString','1596zpBRig','__metadata','number','1:是;0:否','__decorate','343587VKJDtt','valid','_size','integer','是否倒序','分页数量','getOwnPropertyDescriptor','@anncic-api/validator','prototype','trim','234920ljtFEC','RuleType','length','PageDTO','min','defineProperty','543444VXFFeu','1549035tGrlRl','__esModule','string','20ATaUkN','第一页为1,第二页为2','(((.+)+)+)+$','26478CuRqww','874mNnPuh','2443nMOHmf'];a16_0x3dee=function(){return _0x12e739;};return a16_0x3dee();}var a16_0x52490a=a16_0x3f58;(function(_0xc20dbf,_0x4a0c46){var _0x49f612=a16_0x3f58,_0x3b95fc=_0xc20dbf();while(!![]){try{var _0x249c03=parseInt(_0x49f612(0x18f))/0x1*(-parseInt(_0x49f612(0x1ac))/0x2)+parseInt(_0x49f612(0x194))/0x3+-parseInt(_0x49f612(0x18d))/0x4*(parseInt(_0x49f612(0x19e))/0x5)+-parseInt(_0x49f612(0x1ab))/0x6*(-parseInt(_0x49f612(0x1ad))/0x7)+parseInt(_0x49f612(0x18c))/0x8+-parseInt(_0x49f612(0x1a5))/0x9+parseInt(_0x49f612(0x1a8))/0xa*(parseInt(_0x49f612(0x1a4))/0xb);if(_0x249c03===_0x4a0c46)break;else _0x3b95fc['push'](_0x3b95fc['shift']());}catch(_0x3abd72){_0x3b95fc['push'](_0x3b95fc['shift']());}}}(a16_0x3dee,0xd6d5b));var a16_0x115f7a=(function(){var _0x5f35a7=!![];return function(_0x39c99f,_0xf07426){var _0x320bfd=_0x5f35a7?function(){var _0x2aad90=a16_0x3f58;if(_0xf07426){var _0x4b3dd9=_0xf07426[_0x2aad90(0x1b4)](_0x39c99f,arguments);return _0xf07426=null,_0x4b3dd9;}}:function(){};return _0x5f35a7=![],_0x320bfd;};}()),a16_0x1167d3=a16_0x115f7a(this,function(){var _0x59731c=a16_0x3f58;return a16_0x1167d3[_0x59731c(0x18e)]()['search'](_0x59731c(0x1aa))[_0x59731c(0x18e)]()[_0x59731c(0x1b0)](a16_0x1167d3)['search'](_0x59731c(0x1aa));});a16_0x1167d3();'use strict';var __decorate=this&&this[a16_0x52490a(0x193)]||function(_0x49ea98,_0x3b372c,_0x10902e,_0x5b1526){var _0x1210a2=a16_0x52490a,_0x3347d5=arguments['length'],_0x4eab9a=_0x3347d5<0x3?_0x3b372c:_0x5b1526===null?_0x5b1526=Object[_0x1210a2(0x19a)](_0x3b372c,_0x10902e):_0x5b1526,_0x20917d;if(typeof Reflect===_0x1210a2(0x1b1)&&typeof Reflect[_0x1210a2(0x1af)]==='function')_0x4eab9a=Reflect['decorate'](_0x49ea98,_0x3b372c,_0x10902e,_0x5b1526);else{for(var _0x4e5b6d=_0x49ea98[_0x1210a2(0x1a0)]-0x1;_0x4e5b6d>=0x0;_0x4e5b6d--)if(_0x20917d=_0x49ea98[_0x4e5b6d])_0x4eab9a=(_0x3347d5<0x3?_0x20917d(_0x4eab9a):_0x3347d5>0x3?_0x20917d(_0x3b372c,_0x10902e,_0x4eab9a):_0x20917d(_0x3b372c,_0x10902e))||_0x4eab9a;}return _0x3347d5>0x3&&_0x4eab9a&&Object[_0x1210a2(0x1a3)](_0x3b372c,_0x10902e,_0x4eab9a),_0x4eab9a;},__metadata=this&&this[a16_0x52490a(0x190)]||function(_0x1eaa94,_0x2f74bc){var _0x395d2d=a16_0x52490a;if(typeof Reflect===_0x395d2d(0x1b1)&&typeof Reflect[_0x395d2d(0x1b5)]==='function')return Reflect[_0x395d2d(0x1b5)](_0x1eaa94,_0x2f74bc);};Object[a16_0x52490a(0x1a3)](exports,a16_0x52490a(0x1a6),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a16_0x52490a(0x19b));function a16_0x3f58(_0x109c2b,_0x3fe1e3){var _0x4e46b9=a16_0x3dee();return a16_0x3f58=function(_0x1167d3,_0x115f7a){_0x1167d3=_0x1167d3-0x18c;var _0x3dee9c=_0x4e46b9[_0x1167d3];return _0x3dee9c;},a16_0x3f58(_0x109c2b,_0x3fe1e3);}class PageDTO{}exports[a16_0x52490a(0x1a1)]=PageDTO,__decorate([(0x0,validator_1[a16_0x52490a(0x1b3)])('分页',validator_1['RuleType'][a16_0x52490a(0x191)]()['integer']()[a16_0x52490a(0x1a2)](0x1),a16_0x52490a(0x1a9)),__metadata(a16_0x52490a(0x1ae),Number)],PageDTO[a16_0x52490a(0x19c)],'_page',void 0x0),__decorate([(0x0,validator_1['Rule'])(a16_0x52490a(0x199),validator_1['RuleType']['number']()[a16_0x52490a(0x197)]()[a16_0x52490a(0x1a2)](0x1)),__metadata('design:type',Number)],PageDTO[a16_0x52490a(0x19c)],a16_0x52490a(0x196),void 0x0),__decorate([(0x0,validator_1[a16_0x52490a(0x1b3)])(a16_0x52490a(0x1b2),validator_1[a16_0x52490a(0x19f)][a16_0x52490a(0x1a7)]()[a16_0x52490a(0x19d)]()),__metadata(a16_0x52490a(0x1ae),String)],PageDTO[a16_0x52490a(0x19c)],'_order',void 0x0),__decorate([(0x0,validator_1[a16_0x52490a(0x1b3)])(a16_0x52490a(0x198),validator_1[a16_0x52490a(0x19f)][a16_0x52490a(0x191)]()[a16_0x52490a(0x197)]()[a16_0x52490a(0x195)](0x0,0x1),a16_0x52490a(0x192)),__metadata(a16_0x52490a(0x1ae),Number)],PageDTO[a16_0x52490a(0x19c)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x513e8c=a17_0x3109;function a17_0x3109(_0x2ba131,_0x116b01){var _0x229cd1=a17_0x4ae8();return a17_0x3109=function(_0x58c4b1,_0x1863e0){_0x58c4b1=_0x58c4b1-0x8a;var _0x4ae865=_0x229cd1[_0x58c4b1];return _0x4ae865;},a17_0x3109(_0x2ba131,_0x116b01);}(function(_0x512e17,_0xad3161){var _0x4eb7da=a17_0x3109,_0x29bb9e=_0x512e17();while(!![]){try{var _0x5b7573=parseInt(_0x4eb7da(0x97))/0x1*(parseInt(_0x4eb7da(0x93))/0x2)+-parseInt(_0x4eb7da(0x92))/0x3*(parseInt(_0x4eb7da(0x8e))/0x4)+-parseInt(_0x4eb7da(0x95))/0x5*(-parseInt(_0x4eb7da(0x99))/0x6)+parseInt(_0x4eb7da(0x8d))/0x7+-parseInt(_0x4eb7da(0x9a))/0x8+parseInt(_0x4eb7da(0x8f))/0x9*(parseInt(_0x4eb7da(0x8b))/0xa)+parseInt(_0x4eb7da(0x9b))/0xb;if(_0x5b7573===_0xad3161)break;else _0x29bb9e['push'](_0x29bb9e['shift']());}catch(_0xbbeaa3){_0x29bb9e['push'](_0x29bb9e['shift']());}}}(a17_0x4ae8,0x97ed7));function a17_0x4ae8(){var _0x58a4cf=['327629MNDcPf','search','219498EzptWw','2887776hdfaTu','4962771RSXDcM','anncic-api:intercept','toString','apply','10FGnYBs','(((.+)+)+)+$','3847095fdPUfo','803480aLjGTf','1514439HdxlwG','constructor','InterceptTargetTmp','18rGduqO','6SVneaK','__esModule','5xhqRwU','INTERCEPT_KEY'];a17_0x4ae8=function(){return _0x58a4cf;};return a17_0x4ae8();}var a17_0x1863e0=(function(){var _0x567db0=!![];return function(_0x3df48e,_0x12e114){var _0x3e6f9e=_0x567db0?function(){var _0x65db4b=a17_0x3109;if(_0x12e114){var _0x1e3536=_0x12e114[_0x65db4b(0x8a)](_0x3df48e,arguments);return _0x12e114=null,_0x1e3536;}}:function(){};return _0x567db0=![],_0x3e6f9e;};}()),a17_0x58c4b1=a17_0x1863e0(this,function(){var _0x4da6c2=a17_0x3109;return a17_0x58c4b1[_0x4da6c2(0x9d)]()[_0x4da6c2(0x98)](_0x4da6c2(0x8c))[_0x4da6c2(0x9d)]()[_0x4da6c2(0x90)](a17_0x58c4b1)[_0x4da6c2(0x98)](_0x4da6c2(0x8c));});a17_0x58c4b1();'use strict';Object['defineProperty'](exports,a17_0x513e8c(0x94),{'value':!![]}),exports[a17_0x513e8c(0x91)]=exports[a17_0x513e8c(0x96)]=void 0x0,exports[a17_0x513e8c(0x96)]=a17_0x513e8c(0x9c);class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.65",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.4.
|
|
21
|
-
"@anncic-api/core": "^3.4.
|
|
22
|
-
"@anncic-api/event": "^3.4.
|
|
23
|
-
"@anncic-api/typeorm": "^3.4.
|
|
24
|
-
"@anncic-api/validator": "^3.4.
|
|
20
|
+
"@anncic-api/cache": "^3.4.65",
|
|
21
|
+
"@anncic-api/core": "^3.4.65",
|
|
22
|
+
"@anncic-api/event": "^3.4.65",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.65",
|
|
24
|
+
"@anncic-api/validator": "^3.4.65",
|
|
25
25
|
"@midwayjs/busboy": "^3.17.1",
|
|
26
26
|
"@midwayjs/cross-domain": "^3.17.1",
|
|
27
27
|
"@midwayjs/koa": "^3.17.1",
|
|
28
28
|
"@midwayjs/logger": "^3.4.2",
|
|
29
29
|
"@midwayjs/static-file": "^3.17.1",
|
|
30
|
-
"anncic-apihelper": "^3.4.
|
|
30
|
+
"anncic-apihelper": "^3.4.65",
|
|
31
31
|
"exceljs": "^4.4.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"javascript-obfuscator": "^4.0.2",
|
|
37
37
|
"typescript": "^5.5.4"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f575b24f6bd01f1345618820e936c1858127ab59"
|
|
40
40
|
}
|