anncic-api 3.4.69 → 3.4.70
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.d.ts +3 -0
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.local.d.ts +5 -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
|
-
function
|
|
1
|
+
function a0_0x32a6(_0x33653,_0x4536df){var _0x22f08c=a0_0x35e5();return a0_0x32a6=function(_0x33f3e1,_0x91fb92){_0x33f3e1=_0x33f3e1-0xa3;var _0x35e541=_0x22f08c[_0x33f3e1];return _0x35e541;},a0_0x32a6(_0x33653,_0x4536df);}var a0_0x46dbf3=a0_0x32a6;function a0_0x35e5(){var _0x28679a=['dhauo1234420123gg3234901','7LumIVR','defineProperty','appDir','apply','51jjJvDk','json','5618376XoXhXG','{midway-bull}{','_token','xml','zhiulanuiy7892387985hnoi','text','8161086ALPfei','6426712xwgITG','/runtime','20mb','/runtime/.upload','env','constructor','default','9066564poCYpn','4054125dFxWPs','108172QTWEZw','3155widaeq','name','toString','search','form'];a0_0x35e5=function(){return _0x28679a;};return a0_0x35e5();}(function(_0x227d9b,_0xc402d6){var _0x5380ce=a0_0x32a6,_0x6ddac1=_0x227d9b();while(!![]){try{var _0x532097=parseInt(_0x5380ce(0xb0))/0x1+-parseInt(_0x5380ce(0xaf))/0x2*(-parseInt(_0x5380ce(0xba))/0x3)+-parseInt(_0x5380ce(0xbc))/0x4+parseInt(_0x5380ce(0xae))/0x5+-parseInt(_0x5380ce(0xa5))/0x6*(parseInt(_0x5380ce(0xb6))/0x7)+parseInt(_0x5380ce(0xa6))/0x8+parseInt(_0x5380ce(0xad))/0x9;if(_0x532097===_0xc402d6)break;else _0x6ddac1['push'](_0x6ddac1['shift']());}catch(_0x3b6328){_0x6ddac1['push'](_0x6ddac1['shift']());}}}(a0_0x35e5,0xbe48a));var a0_0x91fb92=(function(){var _0x3a917f=!![];return function(_0x129c5a,_0x4315fb){var _0xffd17e=_0x3a917f?function(){var _0x22b4b=a0_0x32a6;if(_0x4315fb){var _0x200a0c=_0x4315fb[_0x22b4b(0xb9)](_0x129c5a,arguments);return _0x4315fb=null,_0x200a0c;}}:function(){};return _0x3a917f=![],_0xffd17e;};}()),a0_0x33f3e1=a0_0x91fb92(this,function(){var _0x51ba8e=a0_0x32a6;return a0_0x33f3e1[_0x51ba8e(0xb2)]()['search']('(((.+)+)+)+$')[_0x51ba8e(0xb2)]()[_0x51ba8e(0xab)](a0_0x33f3e1)[_0x51ba8e(0xb3)]('(((.+)+)+)+$');});a0_0x33f3e1();'use strict';Object[a0_0x46dbf3(0xb7)](exports,'__esModule',{'value':!![]}),exports[a0_0x46dbf3(0xac)]=_0x9e1d02=>{var _0x1d5e4e=a0_0x46dbf3;return{'apitest':!![],'keys':_0x9e1d02['name'],'anncicapi':{'requestKey':_0x1d5e4e(0xbe),'password':_0x1d5e4e(0xa3),'devices':{'DEFAULT':{'secret':_0x1d5e4e(0xb5),'checkcode':_0x1d5e4e(0xb5)}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':'270d','dir':_0x9e1d02[_0x1d5e4e(0xb8)]+_0x1d5e4e(0xa7)}},'bodyParser':{'enableTypes':[_0x1d5e4e(0xbb),_0x1d5e4e(0xb4),_0x1d5e4e(0xa4),_0x1d5e4e(0xbf)],'formLimit':_0x1d5e4e(0xa8),'jsonLimit':'20mb','textLimit':_0x1d5e4e(0xa8),'xmlLimit':_0x1d5e4e(0xa8),'enable':!![]},'upload':{'tmpdir':_0x9e1d02[_0x1d5e4e(0xb8)]+'/runtime/.upload','cleanTimeout':0x5265c00},'busboy':{'mode':'file','tmpdir':_0x9e1d02['appDir']+_0x1d5e4e(0xa9),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x1d5e4e(0xbd)+_0x9e1d02[_0x1d5e4e(0xb1)]+':'+((_0x9e1d02===null||_0x9e1d02===void 0x0?void 0x0:_0x9e1d02[_0x1d5e4e(0xaa)])?_0x9e1d02['env']+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x128581=a1_0x161b;(function(_0x50ce03,_0xa1c7f5){var _0x5a981b=a1_0x161b,_0x3afc19=_0x50ce03();while(!![]){try{var _0x1150c0=-parseInt(_0x5a981b(0x128))/0x1+-parseInt(_0x5a981b(0x120))/0x2*(parseInt(_0x5a981b(0x11b))/0x3)+-parseInt(_0x5a981b(0x11d))/0x4*(parseInt(_0x5a981b(0x122))/0x5)+-parseInt(_0x5a981b(0x121))/0x6*(-parseInt(_0x5a981b(0x124))/0x7)+-parseInt(_0x5a981b(0x11a))/0x8+-parseInt(_0x5a981b(0x123))/0x9*(-parseInt(_0x5a981b(0x11e))/0xa)+parseInt(_0x5a981b(0x126))/0xb;if(_0x1150c0===_0xa1c7f5)break;else _0x3afc19['push'](_0x3afc19['shift']());}catch(_0x102cdd){_0x3afc19['push'](_0x3afc19['shift']());}}}(a1_0x3ff8,0x18742));function a1_0x161b(_0xb538dd,_0x3f82e4){var _0x5b1ae1=a1_0x3ff8();return a1_0x161b=function(_0x4b50a7,_0x5b22d1){_0x4b50a7=_0x4b50a7-0x11a;var _0x3ff8d1=_0x5b1ae1[_0x4b50a7];return _0x3ff8d1;},a1_0x161b(_0xb538dd,_0x3f82e4);}var a1_0x5b22d1=(function(){var _0x36fa2a=!![];return function(_0x4bec57,_0x5ccfc3){var _0x67d1f2=_0x36fa2a?function(){var _0x391d2f=a1_0x161b;if(_0x5ccfc3){var _0xf11951=_0x5ccfc3[_0x391d2f(0x11c)](_0x4bec57,arguments);return _0x5ccfc3=null,_0xf11951;}}:function(){};return _0x36fa2a=![],_0x67d1f2;};}()),a1_0x4b50a7=a1_0x5b22d1(this,function(){var _0x4a2299=a1_0x161b;return a1_0x4b50a7[_0x4a2299(0x125)]()['search']('(((.+)+)+)+$')[_0x4a2299(0x125)]()[_0x4a2299(0x12b)](a1_0x4b50a7)[_0x4a2299(0x12a)](_0x4a2299(0x11f));});a1_0x4b50a7();'use strict';function a1_0x3ff8(){var _0x1195f2=['(((.+)+)+)+$','862ykLOAq','282gaeRei','24220RFaMXS','20151VFjPhA','7441ceLncA','toString','3974905KOhmMc','__esModule','64563LWsdpW','default','search','constructor','412064bbjheU','681QFtmeM','apply','84UIEWZg','20fygZXR'];a1_0x3ff8=function(){return _0x1195f2;};return a1_0x3ff8();}Object['defineProperty'](exports,a1_0x128581(0x127),{'value':!![]}),exports[a1_0x128581(0x129)]=_0x10a183=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x2b0e(){var _0x2522bd=['constructor','1677530bwyQsw','1404336ZGzphj','4BQXAln','80yFQiks','377794RvseOb','25270650haEBFd','2523208DduHSL','(((.+)+)+)+$','search','4200qWcmLQ','default','toString','6629VCEvtZ','__esModule','59553CFRGmj'];a2_0x2b0e=function(){return _0x2522bd;};return a2_0x2b0e();}var a2_0x1db193=a2_0x4bb0;(function(_0x241ba7,_0x319ecc){var _0x13f789=a2_0x4bb0,_0x25520e=_0x241ba7();while(!![]){try{var _0x3844ce=parseInt(_0x13f789(0xf7))/0x1*(-parseInt(_0x13f789(0xf5))/0x2)+-parseInt(_0x13f789(0xf4))/0x3+-parseInt(_0x13f789(0xf9))/0x4+parseInt(_0x13f789(0xf3))/0x5+parseInt(_0x13f789(0xfc))/0x6*(-parseInt(_0x13f789(0xef))/0x7)+parseInt(_0x13f789(0xf6))/0x8*(parseInt(_0x13f789(0xf1))/0x9)+parseInt(_0x13f789(0xf8))/0xa;if(_0x3844ce===_0x319ecc)break;else _0x25520e['push'](_0x25520e['shift']());}catch(_0x32ba67){_0x25520e['push'](_0x25520e['shift']());}}}(a2_0x2b0e,0x646cb));var a2_0x38ccb4=(function(){var _0x3c51e9=!![];return function(_0x4f1e28,_0x506208){var _0x58504d=_0x3c51e9?function(){if(_0x506208){var _0x5b0cb8=_0x506208['apply'](_0x4f1e28,arguments);return _0x506208=null,_0x5b0cb8;}}:function(){};return _0x3c51e9=![],_0x58504d;};}()),a2_0x36b7db=a2_0x38ccb4(this,function(){var _0x2aa721=a2_0x4bb0;return a2_0x36b7db[_0x2aa721(0xee)]()[_0x2aa721(0xfb)](_0x2aa721(0xfa))[_0x2aa721(0xee)]()[_0x2aa721(0xf2)](a2_0x36b7db)['search'](_0x2aa721(0xfa));});a2_0x36b7db();'use strict';function a2_0x4bb0(_0x12ca58,_0x35120d){var _0x2cfaad=a2_0x2b0e();return a2_0x4bb0=function(_0x36b7db,_0x38ccb4){_0x36b7db=_0x36b7db-0xed;var _0x2b0e52=_0x2cfaad[_0x36b7db];return _0x2b0e52;},a2_0x4bb0(_0x12ca58,_0x35120d);}Object['defineProperty'](exports,a2_0x1db193(0xf0),{'value':!![]}),exports[a2_0x1db193(0xed)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x39d95b=a3_0x45fb;(function(_0x545f68,_0x16ffd4){const _0x1b634d=a3_0x45fb,_0x432c26=_0x545f68();while(!![]){try{const _0x5913c7=parseInt(_0x1b634d(0x14b))/0x1*(-parseInt(_0x1b634d(0x181))/0x2)+parseInt(_0x1b634d(0x160))/0x3*(parseInt(_0x1b634d(0x15e))/0x4)+-parseInt(_0x1b634d(0x18e))/0x5*(-parseInt(_0x1b634d(0x175))/0x6)+parseInt(_0x1b634d(0x145))/0x7*(parseInt(_0x1b634d(0x10f))/0x8)+-parseInt(_0x1b634d(0x128))/0x9+-parseInt(_0x1b634d(0x16e))/0xa+parseInt(_0x1b634d(0x158))/0xb*(parseInt(_0x1b634d(0x126))/0xc);if(_0x5913c7===_0x16ffd4)break;else _0x432c26['push'](_0x432c26['shift']());}catch(_0x49d539){_0x432c26['push'](_0x432c26['shift']());}}}(a3_0x485f,0xbc994));function a3_0x485f(){const _0x257c76=['/runtime','parse','ApiError','app','connection','anncic-apihelper','MidwayDecoratorService','decorate','mkdirSync','filepath','koa','string','@anncic-api/event','@anncic-api/cache','CustomConfiguration','staticFile','isClass','environment','default','existsSync','headers','_matchedRouteMeta','design:type','input','substring','Configuration','1721167tRUSOm','midwayLogger','routerOptions','key','loggerService','target','14pnNnQl','requestKey','dirs','routerName','proceed','@midwayjs/koa','@midwayjs/core','getConfiguration','loggerConfig','config','registerMethodHandler','args','toLowerCase','5534518tnJMGs','getBaseDir','handlerActionRoute','./types/intercept','https://','module','964660EBpFRx','tagName','3hegVwi','文件不存在','.log','Types','apimit','getAppDir','statSync','REQUEST_OBJ_CTX_KEY','@anncic-api/validator','bodyXml','device','object','host','getApplications','10892970vpHiqi','apply','_UNKNOW_','handler','function','Inject','270d','72VgqsUF','ApiService','devices','search','isDevelopmentEnvironment','./config/config.default','encrypted','request','defineProperty','query','filterConfig','ACTION_ROUTE_KEY','172816xoOCej','getOwnPropertyDescriptor','clients','isNull','addObject','HEADERS_SIGNATURE','hanlderApplications','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./service/ApiService','MidwayEnvironmentService','onReady','anncicapi','ACTION_KEY','31300MIKGdZ','readdirSync','APPSCONFIG_KEY','length','__esModule','intercept','(((.+)+)+)+$','InterceptTargetTmp','tmpdir','isFunction','/apps','getClassMetadata','decorator','isDirectory','/runtime/apps-','split','defaultsDeep','match','metadata','toString','forEach','8ZXmLxK','keys','upload','http://','application','koa-send','_matchedRoute','method','body','get','MidwayLoggerService','context','DEFAULT','isString','attachment','443','dir','assign','startsWith','@midwayjs/cross-domain','__metadata','prototype','createLogger','84VhLLCG','anncic-api','9113607XQsqrs','@anncic-api/core','log'];a3_0x485f=function(){return _0x257c76;};return a3_0x485f();}const a3_0xcf239b=(function(){let _0x2ad8d9=!![];return function(_0x29abff,_0x2a8e67){const _0x1841fe=_0x2ad8d9?function(){const _0x5a63ce=a3_0x45fb;if(_0x2a8e67){const _0x3e6b75=_0x2a8e67[_0x5a63ce(0x16f)](_0x29abff,arguments);return _0x2a8e67=null,_0x3e6b75;}}:function(){};return _0x2ad8d9=![],_0x1841fe;};}()),a3_0x396cb0=a3_0xcf239b(this,function(){const _0x321475=a3_0x45fb;return a3_0x396cb0[_0x321475(0x10d)]()[_0x321475(0x178)](_0x321475(0x100))[_0x321475(0x10d)]()['constructor'](a3_0x396cb0)[_0x321475(0x178)](_0x321475(0x100));});function a3_0x45fb(_0x5cde64,_0x42785b){const _0x3310f8=a3_0x485f();return a3_0x45fb=function(_0x396cb0,_0xcf239b){_0x396cb0=_0x396cb0-0xfc;let _0x485fee=_0x3310f8[_0x396cb0];return _0x485fee;},a3_0x45fb(_0x5cde64,_0x42785b);}a3_0x396cb0();'use strict';var __decorate=this&&this['__decorate']||function(_0x538146,_0x20dd4d,_0x2a5f73,_0x4778a3){const _0x9b7437=a3_0x45fb;var _0x54d6bc=arguments[_0x9b7437(0xfd)],_0x18d5c9=_0x54d6bc<0x3?_0x20dd4d:_0x4778a3===null?_0x4778a3=Object[_0x9b7437(0x182)](_0x20dd4d,_0x2a5f73):_0x4778a3,_0x9ca2a1;if(typeof Reflect===_0x9b7437(0x16b)&&typeof Reflect[_0x9b7437(0x132)]==='function')_0x18d5c9=Reflect[_0x9b7437(0x132)](_0x538146,_0x20dd4d,_0x2a5f73,_0x4778a3);else{for(var _0xbbbf0=_0x538146[_0x9b7437(0xfd)]-0x1;_0xbbbf0>=0x0;_0xbbbf0--)if(_0x9ca2a1=_0x538146[_0xbbbf0])_0x18d5c9=(_0x54d6bc<0x3?_0x9ca2a1(_0x18d5c9):_0x54d6bc>0x3?_0x9ca2a1(_0x20dd4d,_0x2a5f73,_0x18d5c9):_0x9ca2a1(_0x20dd4d,_0x2a5f73))||_0x18d5c9;}return _0x54d6bc>0x3&&_0x18d5c9&&Object[_0x9b7437(0x17d)](_0x20dd4d,_0x2a5f73,_0x18d5c9),_0x18d5c9;},__metadata=this&&this[a3_0x39d95b(0x123)]||function(_0x1451eb,_0x376fc0){const _0x4c4cf1=a3_0x39d95b;if(typeof Reflect===_0x4c4cf1(0x16b)&&typeof Reflect[_0x4c4cf1(0x10c)]==='function')return Reflect[_0x4c4cf1(0x10c)](_0x1451eb,_0x376fc0);};Object[a3_0x39d95b(0x17d)](exports,a3_0x39d95b(0xfe),{'value':!![]}),exports[a3_0x39d95b(0x139)]=void 0x0;const core_1=require(a3_0x39d95b(0x151)),core_2=require(a3_0x39d95b(0x151)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a3_0x39d95b(0x189)),intercept_1=require(a3_0x39d95b(0x15b)),action_1=require('./types/action'),fs=require('fs'),koasend=require(a3_0x39d95b(0x114)),koa=require(a3_0x39d95b(0x150)),upload=require('@midwayjs/busboy'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a3_0x39d95b(0x122)),ConfigDefault=require(a3_0x39d95b(0x17a)),ConfigProduction=require('./config/config.production'),anncic=require(a3_0x39d95b(0x129)),anncicCache=require(a3_0x39d95b(0x138)),anncicEvent=require(a3_0x39d95b(0x137)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a3_0x39d95b(0x168)),anncicHelper=require(a3_0x39d95b(0x130));let CustomConfiguration=class CustomConfiguration{async[a3_0x39d95b(0x18b)](){const _0x13b268=a3_0x39d95b;await this[_0x13b268(0x17f)](),await this[_0x13b268(0x153)](),await this[_0x13b268(0x15a)](),await this[_0x13b268(0x187)]();}async[a3_0x39d95b(0x15a)](){const _0x1e0e92=a3_0x39d95b,_0xb2a8d5=this[_0x1e0e92(0x154)][_0x1e0e92(0x152)](),_0x245697=(0x0,core_1[_0x1e0e92(0x105)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x1e0e92(0x101)])||{};this[_0x1e0e92(0x106)][_0x1e0e92(0x155)](action_1[_0x1e0e92(0x180)],_0x4230be=>{const _0x21b4d4=_0x1e0e92;var _0x12f513;const _0x2c2e35=(0x0,core_1['getClassMetadata'])(action_1[_0x21b4d4(0xfc)],action_1['AppsConfigTmp'])||{},_0x11dcd9=_0x4230be['metadata'],_0x5ae021=(0x0,core_1[_0x21b4d4(0x105)])(action_1[_0x21b4d4(0x18d)],_0x4230be['target'])||{},_0x4f68a1=((_0x12f513=_0x5ae021===null||_0x5ae021===void 0x0?void 0x0:_0x5ae021[_0x21b4d4(0x134)])===null||_0x12f513===void 0x0?void 0x0:_0x12f513[_0x21b4d4(0x143)](0x0,_0x5ae021[_0x21b4d4(0x134)]['lastIndexOf']('.')))||'',_0x1241ad=(_0x5ae021===null||_0x5ae021===void 0x0?void 0x0:_0x5ae021[_0x21b4d4(0x15d)])?(_0x2c2e35===null||_0x2c2e35===void 0x0?void 0x0:_0x2c2e35[_0x5ae021[_0x21b4d4(0x15d)]])||{}:{};return{'before':async _0x324176=>{const _0x1f30e7=_0x21b4d4;var _0x1a7128,_0xaf2d96,_0x43acd1,_0x395525;const _0x3df355=(_0x1a7128=_0x324176===null||_0x324176===void 0x0?void 0x0:_0x324176[_0x1f30e7(0x14a)])===null||_0x1a7128===void 0x0?void 0x0:_0x1a7128[core_2[_0x1f30e7(0x167)]],_0x28b270=lodash[_0x1f30e7(0x10a)]({},_0x3df355[_0x1f30e7(0x17c)][_0x1f30e7(0x117)]||_0x3df355[_0x1f30e7(0x17c)][((_0xaf2d96=_0xb2a8d5===null||_0xb2a8d5===void 0x0?void 0x0:_0xb2a8d5[_0x1f30e7(0x169)])===null||_0xaf2d96===void 0x0?void 0x0:_0xaf2d96[_0x1f30e7(0x148)])||_0x1f30e7(0x117)]||{},_0x3df355[_0x1f30e7(0x17c)][_0x1f30e7(0x17e)]||{});_0x3df355[_0x1f30e7(0x140)]={'module':(_0x1241ad===null||_0x1241ad===void 0x0?void 0x0:_0x1241ad['name'])||'','routePath':''+_0x3df355['path'],'routeName':_0x5ae021[_0x1f30e7(0x147)][_0x1f30e7(0x15f)]+'@'+_0x11dcd9[_0x1f30e7(0x14e)],'routeMethod':((_0x11dcd9===null||_0x11dcd9===void 0x0?void 0x0:_0x11dcd9['requestMethod'])||_0x3df355[_0x1f30e7(0x116)]||'')[_0x1f30e7(0x157)](),'routeDescription':(_0x11dcd9===null||_0x11dcd9===void 0x0?void 0x0:_0x11dcd9['description'])||'','filemethod':_0x4f68a1+'@'+(_0x11dcd9[_0x1f30e7(0x116)]||'')};if(_0x3df355&&(_0x11dcd9===null||_0x11dcd9===void 0x0?void 0x0:_0x11dcd9[_0x1f30e7(0x164)]))try{const _0x3d5fd6=((_0x43acd1=_0xb2a8d5===null||_0xb2a8d5===void 0x0?void 0x0:_0xb2a8d5[_0x1f30e7(0x18c)])===null||_0x43acd1===void 0x0?void 0x0:_0x43acd1[_0x1f30e7(0x14c)])&&typeof(_0x28b270===null||_0x28b270===void 0x0?void 0x0:_0x28b270[_0xb2a8d5['anncicapi'][_0x1f30e7(0x14c)]])==_0x1f30e7(0x136)?JSON[_0x1f30e7(0x12c)](base64_decode(_0x28b270[_0xb2a8d5[_0x1f30e7(0x18c)][_0x1f30e7(0x14c)]])||'{}')||{}:((_0x395525=_0x3df355===null||_0x3df355===void 0x0?void 0x0:_0x3df355[_0x1f30e7(0x17c)])===null||_0x395525===void 0x0?void 0x0:_0x395525[_0x1f30e7(0x13f)])||{};if(!this[_0x1f30e7(0x176)]['checksign'](_0x3d5fd6))throw new AnnError(ApiError_1['ApiError'][_0x1f30e7(0x186)]);for(const _0x53203b in _0x3d5fd6||{}){_0x3df355['headers'][_0x53203b]=_0x3d5fd6[_0x53203b];}}catch(_0x54c3cc){if(_0x54c3cc instanceof AnnError)throw _0x54c3cc;else throw new AnnError(ApiError_1[_0x1f30e7(0x12d)][_0x1f30e7(0x170)]);}},'around':async _0x2088bf=>{const _0x44282f=_0x21b4d4;var _0x2eccc9,_0x3bf92a,_0x4f048f;const _0x1f221d=(_0x2eccc9=_0x2088bf===null||_0x2088bf===void 0x0?void 0x0:_0x2088bf[_0x44282f(0x14a)])===null||_0x2eccc9===void 0x0?void 0x0:_0x2eccc9[core_2[_0x44282f(0x167)]];if(_0x1f221d&&(_0x11dcd9===null||_0x11dcd9===void 0x0?void 0x0:_0x11dcd9[_0x44282f(0x164)])&&((_0x11dcd9===null||_0x11dcd9===void 0x0?void 0x0:_0x11dcd9[_0x44282f(0xff)])||typeof(_0x11dcd9===null||_0x11dcd9===void 0x0?void 0x0:_0x11dcd9['intercept'])=='undefined')){if(((_0x3bf92a=_0x1f221d[_0x44282f(0x13f)])===null||_0x3bf92a===void 0x0?void 0x0:_0x3bf92a['device'])&&((_0x4f048f=_0x245697===null||_0x245697===void 0x0?void 0x0:_0x245697[_0x1f221d[_0x44282f(0x13f)][_0x44282f(0x16a)]])===null||_0x4f048f===void 0x0?void 0x0:_0x4f048f[_0x44282f(0xfd)])>0x0)for(const _0x175e3f of _0x245697[_0x1f221d[_0x44282f(0x13f)][_0x44282f(0x16a)]]||[]){if(core_1[_0x44282f(0x163)][_0x44282f(0x13b)](_0x175e3f)){const _0x1fa416=await _0x1f221d['requestContext']['getAsync'](_0x175e3f);typeof(_0x1fa416===null||_0x1fa416===void 0x0?void 0x0:_0x1fa416['match'])==_0x44282f(0x172)?await _0x1fa416[_0x44282f(0x10b)](_0x1f221d,typeof(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d['method'])==_0x44282f(0x136)&&(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)])?_0x1f221d[_0x44282f(0x116)][_0x44282f(0x157)]()+'@'+(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)]):undefined,_0x11dcd9)&&await _0x1fa416[_0x44282f(0x171)](_0x1f221d,typeof(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x116)])==_0x44282f(0x136)&&(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)])?_0x1f221d[_0x44282f(0x116)][_0x44282f(0x157)]()+'@'+(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)]):undefined,_0x11dcd9):await _0x1fa416[_0x44282f(0x171)](_0x1f221d,typeof(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x116)])==_0x44282f(0x136)&&(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)])?_0x1f221d[_0x44282f(0x116)]['toLowerCase']()+'@'+(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)]):undefined,_0x11dcd9);}else core_1[_0x44282f(0x163)][_0x44282f(0x103)](_0x175e3f)&&await _0x175e3f(_0x1f221d,typeof(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d['method'])==_0x44282f(0x136)&&(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)])?_0x1f221d[_0x44282f(0x116)]['toLowerCase']()+'@'+(_0x1f221d===null||_0x1f221d===void 0x0?void 0x0:_0x1f221d[_0x44282f(0x115)]):undefined,_0x11dcd9);}}return await _0x2088bf[_0x44282f(0x14f)](..._0x2088bf[_0x44282f(0x156)]);},'afterThrow':(_0x1ab0a2,_0x578023)=>{throw _0x578023;}};});}async[a3_0x39d95b(0x187)](){const _0x468c66=a3_0x39d95b,_0x5ab0ad=this[_0x468c66(0x154)][_0x468c66(0x152)]();this[_0x468c66(0x113)][_0x468c66(0x16d)]([_0x468c66(0x135)])[_0x468c66(0x10e)](_0xf6883b=>{const _0x58a1e4=_0x468c66;(_0xf6883b===null||_0xf6883b===void 0x0?void 0x0:_0xf6883b[_0x58a1e4(0x11a)])&&Object['defineProperties'](_0xf6883b[_0x58a1e4(0x11a)],{'hosturl':{'configurable':![],'get':function(){const _0xcfab29=_0x58a1e4;var _0x18a6d8,_0x282d6a,_0x3579f9,_0x4e1d40;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0xcfab29(0x16c)][_0xcfab29(0x121)]('http')){let _0x1ab88e=this[_0xcfab29(0x16c)][_0xcfab29(0x109)](':');return['80',_0xcfab29(0x11e)]['includes'](_0x1ab88e===null||_0x1ab88e===void 0x0?void 0x0:_0x1ab88e[0x1])?''+(!!((_0x282d6a=(_0x18a6d8=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x18a6d8===void 0x0?void 0x0:_0x18a6d8[_0xcfab29(0x12f)])===null||_0x282d6a===void 0x0?void 0x0:_0x282d6a['encrypted'])||(_0x1ab88e===null||_0x1ab88e===void 0x0?void 0x0:_0x1ab88e[0x1])=='443'?_0xcfab29(0x15c):_0xcfab29(0x112))+_0x1ab88e[0x0]:''+(!!((_0x4e1d40=(_0x3579f9=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x3579f9===void 0x0?void 0x0:_0x3579f9[_0xcfab29(0x12f)])===null||_0x4e1d40===void 0x0?void 0x0:_0x4e1d40[_0xcfab29(0x17b)])?_0xcfab29(0x15c):_0xcfab29(0x112))+this[_0xcfab29(0x16c)];}return'';}},'ok':{'value':function(_0x53ab46,_0x105b91,_0x463701=0x0){return{'code':_0x463701,'data':_0x53ab46,'extra':_0x105b91};}},'input':{'value':function(_0x4c41ff,_0x4e079d){const _0x3545c4=_0x58a1e4;var _0x1cf57a;const _0x5eada2=lodash[_0x3545c4(0x10a)]({},this[_0x3545c4(0x17c)]['body']||this['request'][((_0x1cf57a=_0x5ab0ad===null||_0x5ab0ad===void 0x0?void 0x0:_0x5ab0ad['bodyXml'])===null||_0x1cf57a===void 0x0?void 0x0:_0x1cf57a[_0x3545c4(0x148)])||_0x3545c4(0x117)]||{},this[_0x3545c4(0x17c)]['query']||{});return _0x4c41ff?lodash[_0x3545c4(0x118)](_0x5eada2,_0x4c41ff,_0x4e079d):_0x5eada2;}},'when':{'value':async function(_0xd1ecc,_0x28c883){const _0x8b1a65=_0x58a1e4,_0x44bedc=this[_0x8b1a65(0x142)](_0xd1ecc,null);if(!lodash[_0x8b1a65(0x184)](_0x44bedc))return await _0x28c883(_0x44bedc);}},'only':{'value':function(_0x1d8341){const _0x4f03c7=_0x58a1e4,_0x397443={};for(let _0x2e1f72=0x0;_0x2e1f72<_0x1d8341[_0x4f03c7(0xfd)];_0x2e1f72++){lodash['isArray'](_0x1d8341[_0x2e1f72])&&_0x1d8341[_0x2e1f72][_0x4f03c7(0xfd)]>0x0&&lodash[_0x4f03c7(0x11c)](_0x1d8341[_0x2e1f72][0x0])&&(_0x397443[_0x1d8341[_0x2e1f72][0x0]]=this[_0x4f03c7(0x142)](_0x1d8341[_0x2e1f72][0x0],_0x1d8341[_0x2e1f72]['length']>0x1?_0x1d8341[_0x2e1f72][0x1]:null));}return _0x397443;}},'koasend':{'value':async function(_0x45d465,_0x2e1734){const _0x4a4c6c=_0x58a1e4;if(_0x45d465&&!fs[_0x4a4c6c(0x13e)](_0x45d465)&&!fs['existsSync'](this[_0x4a4c6c(0x12e)][_0x4a4c6c(0x165)]()+'/'+_0x45d465))return _0x4a4c6c(0x161);return _0x45d465=fs['existsSync'](_0x45d465)?_0x45d465:this[_0x4a4c6c(0x12e)][_0x4a4c6c(0x165)]()+'/'+_0x45d465,this[_0x4a4c6c(0x11d)](_0x2e1734||_0x45d465),await koasend(this,_0x45d465);}}});});}async[a3_0x39d95b(0x153)](){const _0x213350=a3_0x39d95b;var _0x30c520,_0x5ed9b5;if(fs[_0x213350(0x13e)](this[_0x213350(0x12e)][_0x213350(0x159)]()+_0x213350(0x104))&&fs['statSync'](this[_0x213350(0x12e)][_0x213350(0x159)]()+_0x213350(0x104))['isDirectory']()){const _0x576939=this['config']['getConfiguration'](),_0x5ebae2=((_0x30c520=_0x576939===null||_0x576939===void 0x0?void 0x0:_0x576939[_0x213350(0x146)])===null||_0x30c520===void 0x0?void 0x0:_0x30c520['clients'])||{};for(const _0x241236 of fs[_0x213350(0x18f)](this[_0x213350(0x12e)][_0x213350(0x159)]()+_0x213350(0x104))){if(!fs[_0x213350(0x166)](this[_0x213350(0x12e)][_0x213350(0x159)]()+'/apps/'+_0x241236)[_0x213350(0x107)]())continue;!(_0x5ebae2===null||_0x5ebae2===void 0x0?void 0x0:_0x5ebae2[_0x241236])&&(_0x5ebae2[_0x241236]=Object[_0x213350(0x120)]({},((_0x5ed9b5=_0x576939===null||_0x576939===void 0x0?void 0x0:_0x576939[_0x213350(0x146)])===null||_0x5ed9b5===void 0x0?void 0x0:_0x5ed9b5[_0x213350(0x13d)])||{'maxSize':'1m','dir':this['app'][_0x213350(0x165)]()+_0x213350(0x12b)},{'enableJSON':!![],'enableConsole':this[_0x213350(0x13c)][_0x213350(0x179)](),'fileLogName':_0x241236+_0x213350(0x162),'dir':this['app'][_0x213350(0x165)]()+_0x213350(0x108)+_0x241236})),this[_0x213350(0x149)][_0x213350(0x125)](_0x241236,_0x5ebae2[_0x241236]);}Object[_0x213350(0x110)](_0x5ebae2)[_0x213350(0xfd)]>0x0&&(!_0x576939['midwayLogger']&&(_0x576939['midwayLogger']={'default':{'maxSize':'1m','maxFiles':_0x213350(0x174),'dir':this[_0x213350(0x12e)][_0x213350(0x165)]()+_0x213350(0x12b)}}),_0x576939[_0x213350(0x146)][_0x213350(0x183)]=_0x5ebae2),this[_0x213350(0x154)][_0x213350(0x185)](_0x576939);}}async[a3_0x39d95b(0x17f)](){const _0x45cc37=a3_0x39d95b;var _0x1adc6a,_0x288e20,_0x5c8e69,_0x4a6272,_0x1dea8c,_0x4eb3c4;const _0x2462e4=this['config'][_0x45cc37(0x152)]();((_0x288e20=(_0x1adc6a=_0x2462e4===null||_0x2462e4===void 0x0?void 0x0:_0x2462e4[_0x45cc37(0x18c)])===null||_0x1adc6a===void 0x0?void 0x0:_0x1adc6a['devices'])===null||_0x288e20===void 0x0?void 0x0:_0x288e20['DEFAULT'])&&Object[_0x45cc37(0x110)](_0x2462e4[_0x45cc37(0x18c)]['devices'])[_0x45cc37(0xfd)]>0x1&&delete _0x2462e4[_0x45cc37(0x18c)][_0x45cc37(0x177)][_0x45cc37(0x11b)];if((_0x5c8e69=_0x2462e4===null||_0x2462e4===void 0x0?void 0x0:_0x2462e4[_0x45cc37(0x13a)])===null||_0x5c8e69===void 0x0?void 0x0:_0x5c8e69[_0x45cc37(0x14d)])for(const _0x44ef83 in _0x2462e4['staticFile'][_0x45cc37(0x14d)]){((_0x4a6272=_0x2462e4[_0x45cc37(0x13a)]['dirs'][_0x44ef83])===null||_0x4a6272===void 0x0?void 0x0:_0x4a6272[_0x45cc37(0x11f)])&&typeof((_0x1dea8c=_0x2462e4[_0x45cc37(0x13a)][_0x45cc37(0x14d)][_0x44ef83])===null||_0x1dea8c===void 0x0?void 0x0:_0x1dea8c[_0x45cc37(0x11f)])==_0x45cc37(0x136)&&!fs['existsSync'](_0x2462e4['staticFile']['dirs'][_0x44ef83][_0x45cc37(0x11f)])&&(fs['mkdirSync'](_0x2462e4[_0x45cc37(0x13a)][_0x45cc37(0x14d)][_0x44ef83][_0x45cc37(0x11f)],{'recursive':!![]}),console[_0x45cc37(0x12a)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2462e4['staticFile'][_0x45cc37(0x14d)][_0x44ef83][_0x45cc37(0x11f)]));}((_0x4eb3c4=_0x2462e4===null||_0x2462e4===void 0x0?void 0x0:_0x2462e4['upload'])===null||_0x4eb3c4===void 0x0?void 0x0:_0x4eb3c4[_0x45cc37(0x102)])&&!fs['existsSync'](_0x2462e4[_0x45cc37(0x111)][_0x45cc37(0x102)])&&(fs[_0x45cc37(0x133)](_0x2462e4[_0x45cc37(0x111)][_0x45cc37(0x102)],{'recursive':!![]}),console[_0x45cc37(0x12a)](_0x45cc37(0x188)+_0x2462e4[_0x45cc37(0x111)][_0x45cc37(0x102)])),this[_0x45cc37(0x154)][_0x45cc37(0x185)](_0x2462e4);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata(a3_0x39d95b(0x141),Object)],CustomConfiguration[a3_0x39d95b(0x124)],a3_0x39d95b(0x12e),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x39d95b(0x141),core_2['MidwayConfigService'])],CustomConfiguration[a3_0x39d95b(0x124)],a3_0x39d95b(0x154),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x39d95b(0x141),core_2[a3_0x39d95b(0x131)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_1[a3_0x39d95b(0x173)])(),__metadata(a3_0x39d95b(0x141),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a3_0x39d95b(0x113),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x39d95b(0x18a)])],CustomConfiguration[a3_0x39d95b(0x124)],a3_0x39d95b(0x13c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x39d95b(0x141),core_1[a3_0x39d95b(0x119)])],CustomConfiguration[a3_0x39d95b(0x124)],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0x39d95b(0x173)])(),__metadata(a3_0x39d95b(0x141),ApiService_1['ApiService'])],CustomConfiguration[a3_0x39d95b(0x124)],a3_0x39d95b(0x176),void 0x0),exports[a3_0x39d95b(0x139)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0x39d95b(0x144)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x39d95b(0x127),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a3_0x3fa347=a3_0x27ab;(function(_0x415223,_0x12c86a){const _0x1c8138=a3_0x27ab,_0x150410=_0x415223();while(!![]){try{const _0x246598=parseInt(_0x1c8138(0x15f))/0x1*(parseInt(_0x1c8138(0x10b))/0x2)+parseInt(_0x1c8138(0x108))/0x3*(parseInt(_0x1c8138(0x129))/0x4)+parseInt(_0x1c8138(0x14e))/0x5+parseInt(_0x1c8138(0x165))/0x6*(parseInt(_0x1c8138(0x159))/0x7)+parseInt(_0x1c8138(0x17a))/0x8+parseInt(_0x1c8138(0x178))/0x9+parseInt(_0x1c8138(0x14c))/0xa*(-parseInt(_0x1c8138(0x167))/0xb);if(_0x246598===_0x12c86a)break;else _0x150410['push'](_0x150410['shift']());}catch(_0x73da63){_0x150410['push'](_0x150410['shift']());}}}(a3_0x2fda,0x5b431));function a3_0x27ab(_0x3a813c,_0x4a0576){const _0x3b3272=a3_0x2fda();return a3_0x27ab=function(_0x32de68,_0xd9766d){_0x32de68=_0x32de68-0xe5;let _0x2fdaa5=_0x3b3272[_0x32de68];return _0x2fdaa5;},a3_0x27ab(_0x3a813c,_0x4a0576);}const a3_0xd9766d=(function(){let _0x17012a=!![];return function(_0x5a1964,_0x4d15e5){const _0x11e366=_0x17012a?function(){const _0x3caf2e=a3_0x27ab;if(_0x4d15e5){const _0x18f891=_0x4d15e5[_0x3caf2e(0x13c)](_0x5a1964,arguments);return _0x4d15e5=null,_0x18f891;}}:function(){};return _0x17012a=![],_0x11e366;};}()),a3_0x32de68=a3_0xd9766d(this,function(){const _0x49c30e=a3_0x27ab;return a3_0x32de68[_0x49c30e(0x162)]()[_0x49c30e(0x151)](_0x49c30e(0xeb))['toString']()[_0x49c30e(0x13b)](a3_0x32de68)[_0x49c30e(0x151)](_0x49c30e(0xeb));});a3_0x32de68();'use strict';var __decorate=this&&this['__decorate']||function(_0x15d3ea,_0x5ec86c,_0x3b9d5e,_0x2fb8c9){const _0x2ed91a=a3_0x27ab;var _0x16f3bb=arguments[_0x2ed91a(0x104)],_0x23f435=_0x16f3bb<0x3?_0x5ec86c:_0x2fb8c9===null?_0x2fb8c9=Object[_0x2ed91a(0x16d)](_0x5ec86c,_0x3b9d5e):_0x2fb8c9,_0x23005f;if(typeof Reflect==='object'&&typeof Reflect[_0x2ed91a(0x16c)]===_0x2ed91a(0xfa))_0x23f435=Reflect[_0x2ed91a(0x16c)](_0x15d3ea,_0x5ec86c,_0x3b9d5e,_0x2fb8c9);else{for(var _0x361c18=_0x15d3ea[_0x2ed91a(0x104)]-0x1;_0x361c18>=0x0;_0x361c18--)if(_0x23005f=_0x15d3ea[_0x361c18])_0x23f435=(_0x16f3bb<0x3?_0x23005f(_0x23f435):_0x16f3bb>0x3?_0x23005f(_0x5ec86c,_0x3b9d5e,_0x23f435):_0x23005f(_0x5ec86c,_0x3b9d5e))||_0x23f435;}return _0x16f3bb>0x3&&_0x23f435&&Object[_0x2ed91a(0xea)](_0x5ec86c,_0x3b9d5e,_0x23f435),_0x23f435;},__metadata=this&&this[a3_0x3fa347(0xe9)]||function(_0x589c16,_0x555ba6){const _0x35c409=a3_0x3fa347;if(typeof Reflect==='object'&&typeof Reflect[_0x35c409(0x134)]===_0x35c409(0xfa))return Reflect[_0x35c409(0x134)](_0x589c16,_0x555ba6);};Object['defineProperty'](exports,a3_0x3fa347(0x16b),{'value':!![]}),exports[a3_0x3fa347(0x176)]=void 0x0;function a3_0x2fda(){const _0x324888=['loggerConfig','config','mkdirSync','loggerService','443','toLowerCase','name','metadata','routerName','MidwayEnvironmentService','routerOptions','./types/intercept','Inject','HEADERS_SIGNATURE','constructor','apply','get','prototype','handler','defineProperties','getConfiguration','@midwayjs/koa','/apps/','string','match','filterConfig','keys','文件不存在','@anncic-api/core','MidwayLoggerService','log','10AnJDUA','isNull','1096685IexUtV','ApiService','input','search','isString','getAppDir','defaultsDeep','koa-send','@anncic-api/typeorm','getAsync','apimit','108465COnBgr','./types/action','ACTION_ROUTE_KEY','host','@anncic-api/validator','undefined','598YxCWvn','anncic-api','anncicapi','toString','dirs','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','276VvDiGd','attachment','16520537mkhgqp','query','path','req','__esModule','decorate','getOwnPropertyDescriptor','InterceptTargetTmp','application','module','@midwayjs/cross-domain','https://','AppsConfigTmp','design:type','lastIndexOf','CustomConfiguration','requestKey','416889MMaqLZ','upload','1306832JnCVyr','intercept','koa','ApiError','@anncic-api/event','staticFile','__metadata','defineProperty','(((.+)+)+)+$','decorator','onReady','substring','getApplications','statSync','readdirSync','headers','DEFAULT','@midwayjs/static-file','dir','handlerActionRoute','existsSync','./config/config.production','target','function','isClass','_matchedRoute','getBaseDir','MidwayDecoratorService','midwayLogger','Anncic-api\x20static-file\x20:\x20mkdir\x20','devices','proceed','description','length','/runtime/apps-','requestMethod','hanlderApplications','218733WOKTOq','args','split','16xQYYjm','Types','isArray','getClassMetadata','http://','connection','/apps','/runtime','@midwayjs/core','environment','isFunction','request','app','bodyXml','context','.log','includes','default','tagName','./service/ApiService','REQUEST_OBJ_CTX_KEY','./config/config.default','forEach','isDirectory','filepath','method','key','APPSCONFIG_KEY','device','_UNKNOW_','40SFdYqE','body','MidwayConfigService','tmpdir'];a3_0x2fda=function(){return _0x324888;};return a3_0x2fda();}const core_1=require(a3_0x3fa347(0x113)),core_2=require(a3_0x3fa347(0x113)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a3_0x3fa347(0x11e)),intercept_1=require(a3_0x3fa347(0x138)),action_1=require(a3_0x3fa347(0x15a)),fs=require('fs'),koasend=require(a3_0x3fa347(0x155)),koa=require(a3_0x3fa347(0x142)),upload=require('@midwayjs/busboy'),staticFile=require(a3_0x3fa347(0xf4)),crossDomain=require(a3_0x3fa347(0x171)),ConfigDefault=require(a3_0x3fa347(0x120)),ConfigProduction=require(a3_0x3fa347(0xf8)),anncic=require(a3_0x3fa347(0x149)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a3_0x3fa347(0xe7)),anncicTypeorm=require(a3_0x3fa347(0x156)),anncicValidator=require(a3_0x3fa347(0x15d)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a3_0x3fa347(0xed)](){const _0x1a19c2=a3_0x3fa347;await this['filterConfig'](),await this[_0x1a19c2(0x12d)](),await this[_0x1a19c2(0xf6)](),await this[_0x1a19c2(0x107)]();}async[a3_0x3fa347(0xf6)](){const _0x27ee89=a3_0x3fa347,_0x381fa0=this[_0x27ee89(0x12e)][_0x27ee89(0x141)](),_0x4cb56f=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x27ee89(0x16e)])||{};this[_0x27ee89(0xec)]['registerMethodHandler'](action_1[_0x27ee89(0x15b)],_0xa40404=>{const _0x3781ff=_0x27ee89;var _0x5660ea;const _0x46120a=(0x0,core_1[_0x3781ff(0x10e)])(action_1[_0x3781ff(0x126)],action_1[_0x3781ff(0x173)])||{},_0x42a411=_0xa40404[_0x3781ff(0x134)],_0x56bad0=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0xa40404['target'])||{},_0x1ce0e3=((_0x5660ea=_0x56bad0===null||_0x56bad0===void 0x0?void 0x0:_0x56bad0[_0x3781ff(0x123)])===null||_0x5660ea===void 0x0?void 0x0:_0x5660ea[_0x3781ff(0xee)](0x0,_0x56bad0['filepath'][_0x3781ff(0x175)]('.')))||'',_0x5804b6=(_0x56bad0===null||_0x56bad0===void 0x0?void 0x0:_0x56bad0[_0x3781ff(0x170)])?(_0x46120a===null||_0x46120a===void 0x0?void 0x0:_0x46120a[_0x56bad0['module']])||{}:{};return{'before':async _0x5f10f1=>{const _0x300376=_0x3781ff;var _0x3d4c81,_0xeedfe2,_0x101662,_0x300d54;const _0x1691f8=(_0x3d4c81=_0x5f10f1===null||_0x5f10f1===void 0x0?void 0x0:_0x5f10f1[_0x300376(0xf9)])===null||_0x3d4c81===void 0x0?void 0x0:_0x3d4c81[core_2[_0x300376(0x11f)]],_0x80c051=lodash[_0x300376(0x154)]({},_0x1691f8[_0x300376(0x116)][_0x300376(0x12a)]||_0x1691f8['request'][((_0xeedfe2=_0x381fa0===null||_0x381fa0===void 0x0?void 0x0:_0x381fa0[_0x300376(0x118)])===null||_0xeedfe2===void 0x0?void 0x0:_0xeedfe2[_0x300376(0x125)])||_0x300376(0x12a)]||{},_0x1691f8['request'][_0x300376(0x168)]||{});_0x1691f8['_matchedRouteMeta']={'module':(_0x5804b6===null||_0x5804b6===void 0x0?void 0x0:_0x5804b6[_0x300376(0x133)])||'','routePath':''+_0x1691f8[_0x300376(0x169)],'routeName':_0x56bad0[_0x300376(0x137)][_0x300376(0x11d)]+'@'+_0x42a411[_0x300376(0x135)],'routeMethod':((_0x42a411===null||_0x42a411===void 0x0?void 0x0:_0x42a411[_0x300376(0x106)])||_0x1691f8[_0x300376(0x124)]||'')[_0x300376(0x132)](),'routeDescription':(_0x42a411===null||_0x42a411===void 0x0?void 0x0:_0x42a411[_0x300376(0x103)])||'','filemethod':_0x1ce0e3+'@'+(_0x42a411[_0x300376(0x124)]||'')};if(_0x1691f8&&(_0x42a411===null||_0x42a411===void 0x0?void 0x0:_0x42a411[_0x300376(0x158)]))try{const _0x958a25=((_0x101662=_0x381fa0===null||_0x381fa0===void 0x0?void 0x0:_0x381fa0[_0x300376(0x161)])===null||_0x101662===void 0x0?void 0x0:_0x101662[_0x300376(0x177)])&&typeof(_0x80c051===null||_0x80c051===void 0x0?void 0x0:_0x80c051[_0x381fa0[_0x300376(0x161)][_0x300376(0x177)]])==_0x300376(0x144)?JSON['parse'](base64_decode(_0x80c051[_0x381fa0['anncicapi'][_0x300376(0x177)]])||'{}')||{}:((_0x300d54=_0x1691f8===null||_0x1691f8===void 0x0?void 0x0:_0x1691f8['request'])===null||_0x300d54===void 0x0?void 0x0:_0x300d54[_0x300376(0xf2)])||{};if(!this[_0x300376(0x14f)]['checksign'](_0x958a25))throw new AnnError(ApiError_1[_0x300376(0xe6)][_0x300376(0x13a)]);for(const _0x15837b in _0x958a25||{}){_0x1691f8[_0x300376(0xf2)][_0x15837b]=_0x958a25[_0x15837b];}}catch(_0x32cfc0){if(_0x32cfc0 instanceof AnnError)throw _0x32cfc0;else throw new AnnError(ApiError_1[_0x300376(0xe6)][_0x300376(0x128)]);}},'around':async _0x587512=>{const _0x16910f=_0x3781ff;var _0xc9c30b,_0x6d149d,_0x59059c;const _0x4426df=(_0xc9c30b=_0x587512===null||_0x587512===void 0x0?void 0x0:_0x587512[_0x16910f(0xf9)])===null||_0xc9c30b===void 0x0?void 0x0:_0xc9c30b[core_2[_0x16910f(0x11f)]];if(_0x4426df&&(_0x42a411===null||_0x42a411===void 0x0?void 0x0:_0x42a411['apimit'])&&((_0x42a411===null||_0x42a411===void 0x0?void 0x0:_0x42a411[_0x16910f(0x17b)])||typeof(_0x42a411===null||_0x42a411===void 0x0?void 0x0:_0x42a411[_0x16910f(0x17b)])==_0x16910f(0x15e))){if(((_0x6d149d=_0x4426df['headers'])===null||_0x6d149d===void 0x0?void 0x0:_0x6d149d[_0x16910f(0x127)])&&((_0x59059c=_0x4cb56f===null||_0x4cb56f===void 0x0?void 0x0:_0x4cb56f[_0x4426df[_0x16910f(0xf2)][_0x16910f(0x127)]])===null||_0x59059c===void 0x0?void 0x0:_0x59059c[_0x16910f(0x104)])>0x0)for(const _0x5328ba of _0x4cb56f[_0x4426df[_0x16910f(0xf2)][_0x16910f(0x127)]]||[]){if(core_1[_0x16910f(0x10c)][_0x16910f(0xfb)](_0x5328ba)){const _0x144e3f=await _0x4426df['requestContext'][_0x16910f(0x157)](_0x5328ba);typeof(_0x144e3f===null||_0x144e3f===void 0x0?void 0x0:_0x144e3f[_0x16910f(0x145)])==_0x16910f(0xfa)?await _0x144e3f[_0x16910f(0x145)](_0x4426df,typeof(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df['method'])==_0x16910f(0x144)&&(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0xfc)])?_0x4426df[_0x16910f(0x124)]['toLowerCase']()+'@'+(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0xfc)]):undefined,_0x42a411)&&await _0x144e3f[_0x16910f(0x13f)](_0x4426df,typeof(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0x124)])==_0x16910f(0x144)&&(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0xfc)])?_0x4426df[_0x16910f(0x124)]['toLowerCase']()+'@'+(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0xfc)]):undefined,_0x42a411):await _0x144e3f[_0x16910f(0x13f)](_0x4426df,typeof(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df['method'])==_0x16910f(0x144)&&(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df['_matchedRoute'])?_0x4426df[_0x16910f(0x124)][_0x16910f(0x132)]()+'@'+(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df['_matchedRoute']):undefined,_0x42a411);}else core_1[_0x16910f(0x10c)][_0x16910f(0x115)](_0x5328ba)&&await _0x5328ba(_0x4426df,typeof(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0x124)])==_0x16910f(0x144)&&(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df[_0x16910f(0xfc)])?_0x4426df[_0x16910f(0x124)]['toLowerCase']()+'@'+(_0x4426df===null||_0x4426df===void 0x0?void 0x0:_0x4426df['_matchedRoute']):undefined,_0x42a411);}}return await _0x587512[_0x16910f(0x102)](..._0x587512[_0x16910f(0x109)]);},'afterThrow':(_0x249c80,_0x2f23d8)=>{throw _0x2f23d8;}};});}async[a3_0x3fa347(0x107)](){const _0x1587dc=a3_0x3fa347,_0x4f7c52=this[_0x1587dc(0x12e)][_0x1587dc(0x141)]();this['application'][_0x1587dc(0xef)]([_0x1587dc(0xe5)])[_0x1587dc(0x121)](_0x277fb4=>{const _0x478f44=_0x1587dc;(_0x277fb4===null||_0x277fb4===void 0x0?void 0x0:_0x277fb4[_0x478f44(0x119)])&&Object[_0x478f44(0x140)](_0x277fb4['context'],{'hosturl':{'configurable':![],'get':function(){const _0x23faee=_0x478f44;var _0x1f28e4,_0xd0e55c,_0x45b1bb,_0x1b35cf;if((this===null||this===void 0x0?void 0x0:this[_0x23faee(0x15c)])&&!this[_0x23faee(0x15c)]['startsWith']('http')){let _0x848ac0=this['host'][_0x23faee(0x10a)](':');return['80','443'][_0x23faee(0x11b)](_0x848ac0===null||_0x848ac0===void 0x0?void 0x0:_0x848ac0[0x1])?''+(!!((_0xd0e55c=(_0x1f28e4=this===null||this===void 0x0?void 0x0:this[_0x23faee(0x16a)])===null||_0x1f28e4===void 0x0?void 0x0:_0x1f28e4['connection'])===null||_0xd0e55c===void 0x0?void 0x0:_0xd0e55c['encrypted'])||(_0x848ac0===null||_0x848ac0===void 0x0?void 0x0:_0x848ac0[0x1])==_0x23faee(0x131)?_0x23faee(0x172):_0x23faee(0x10f))+_0x848ac0[0x0]:''+(!!((_0x1b35cf=(_0x45b1bb=this===null||this===void 0x0?void 0x0:this[_0x23faee(0x16a)])===null||_0x45b1bb===void 0x0?void 0x0:_0x45b1bb[_0x23faee(0x110)])===null||_0x1b35cf===void 0x0?void 0x0:_0x1b35cf['encrypted'])?_0x23faee(0x172):'http://')+this['host'];}return'';}},'ok':{'value':function(_0x556eb2,_0x5b89fd,_0x28daf3=0x0){return{'code':_0x28daf3,'data':_0x556eb2,'extra':_0x5b89fd};}},'input':{'value':function(_0x2d314f,_0xf34129){const _0x3e8e09=_0x478f44;var _0x5c3603;const _0x218f8e=lodash['defaultsDeep']({},this[_0x3e8e09(0x116)]['body']||this['request'][((_0x5c3603=_0x4f7c52===null||_0x4f7c52===void 0x0?void 0x0:_0x4f7c52[_0x3e8e09(0x118)])===null||_0x5c3603===void 0x0?void 0x0:_0x5c3603['key'])||_0x3e8e09(0x12a)]||{},this[_0x3e8e09(0x116)]['query']||{});return _0x2d314f?lodash[_0x3e8e09(0x13d)](_0x218f8e,_0x2d314f,_0xf34129):_0x218f8e;}},'when':{'value':async function(_0xfcb030,_0xcfe9bf){const _0x316ede=_0x478f44,_0x3c10c5=this[_0x316ede(0x150)](_0xfcb030,null);if(!lodash[_0x316ede(0x14d)](_0x3c10c5))return await _0xcfe9bf(_0x3c10c5);}},'only':{'value':function(_0x4304c3){const _0x3de770=_0x478f44,_0x56d6bd={};for(let _0x18f995=0x0;_0x18f995<_0x4304c3['length'];_0x18f995++){lodash[_0x3de770(0x10d)](_0x4304c3[_0x18f995])&&_0x4304c3[_0x18f995][_0x3de770(0x104)]>0x0&&lodash[_0x3de770(0x152)](_0x4304c3[_0x18f995][0x0])&&(_0x56d6bd[_0x4304c3[_0x18f995][0x0]]=this[_0x3de770(0x150)](_0x4304c3[_0x18f995][0x0],_0x4304c3[_0x18f995]['length']>0x1?_0x4304c3[_0x18f995][0x1]:null));}return _0x56d6bd;}},'koasend':{'value':async function(_0x450d3e,_0x1807e3){const _0x983495=_0x478f44;if(_0x450d3e&&!fs[_0x983495(0xf7)](_0x450d3e)&&!fs[_0x983495(0xf7)](this[_0x983495(0x117)][_0x983495(0x153)]()+'/'+_0x450d3e))return _0x983495(0x148);return _0x450d3e=fs[_0x983495(0xf7)](_0x450d3e)?_0x450d3e:this[_0x983495(0x117)][_0x983495(0x153)]()+'/'+_0x450d3e,this[_0x983495(0x166)](_0x1807e3||_0x450d3e),await koasend(this,_0x450d3e);}}});});}async[a3_0x3fa347(0x12d)](){const _0x3949cb=a3_0x3fa347;var _0x5a1b88,_0x2d95dd;if(fs['existsSync'](this['app'][_0x3949cb(0xfd)]()+_0x3949cb(0x111))&&fs[_0x3949cb(0xf0)](this['app'][_0x3949cb(0xfd)]()+'/apps')[_0x3949cb(0x122)]()){const _0x1d3952=this[_0x3949cb(0x12e)][_0x3949cb(0x141)](),_0x69ebf=((_0x5a1b88=_0x1d3952===null||_0x1d3952===void 0x0?void 0x0:_0x1d3952['midwayLogger'])===null||_0x5a1b88===void 0x0?void 0x0:_0x5a1b88['clients'])||{};for(const _0xdefaf4 of fs[_0x3949cb(0xf1)](this[_0x3949cb(0x117)][_0x3949cb(0xfd)]()+_0x3949cb(0x111))){if(!fs['statSync'](this[_0x3949cb(0x117)][_0x3949cb(0xfd)]()+_0x3949cb(0x143)+_0xdefaf4)[_0x3949cb(0x122)]())continue;!(_0x69ebf===null||_0x69ebf===void 0x0?void 0x0:_0x69ebf[_0xdefaf4])&&(_0x69ebf[_0xdefaf4]=Object['assign']({},((_0x2d95dd=_0x1d3952===null||_0x1d3952===void 0x0?void 0x0:_0x1d3952[_0x3949cb(0xff)])===null||_0x2d95dd===void 0x0?void 0x0:_0x2d95dd[_0x3949cb(0x11c)])||{'maxSize':'1m','dir':this[_0x3949cb(0x117)]['getAppDir']()+_0x3949cb(0x112)},{'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0xdefaf4+_0x3949cb(0x11a),'dir':this[_0x3949cb(0x117)][_0x3949cb(0x153)]()+_0x3949cb(0x105)+_0xdefaf4})),this[_0x3949cb(0x130)]['createLogger'](_0xdefaf4,_0x69ebf[_0xdefaf4]);}Object[_0x3949cb(0x147)](_0x69ebf)[_0x3949cb(0x104)]>0x0&&(!_0x1d3952[_0x3949cb(0xff)]&&(_0x1d3952[_0x3949cb(0xff)]={'default':{'maxSize':'1m','maxFiles':'270d','dir':this['app'][_0x3949cb(0x153)]()+'/runtime'}}),_0x1d3952[_0x3949cb(0xff)]['clients']=_0x69ebf),this[_0x3949cb(0x12e)]['addObject'](_0x1d3952);}}async[a3_0x3fa347(0x146)](){const _0x3bed50=a3_0x3fa347;var _0x456be9,_0x5af838,_0x56885d,_0x524597,_0x10ae3d,_0xda16d7;const _0x8d7135=this[_0x3bed50(0x12e)]['getConfiguration']();((_0x5af838=(_0x456be9=_0x8d7135===null||_0x8d7135===void 0x0?void 0x0:_0x8d7135[_0x3bed50(0x161)])===null||_0x456be9===void 0x0?void 0x0:_0x456be9[_0x3bed50(0x101)])===null||_0x5af838===void 0x0?void 0x0:_0x5af838[_0x3bed50(0xf3)])&&Object['keys'](_0x8d7135['anncicapi']['devices'])['length']>0x1&&delete _0x8d7135[_0x3bed50(0x161)][_0x3bed50(0x101)]['DEFAULT'];if((_0x56885d=_0x8d7135===null||_0x8d7135===void 0x0?void 0x0:_0x8d7135[_0x3bed50(0xe8)])===null||_0x56885d===void 0x0?void 0x0:_0x56885d[_0x3bed50(0x163)])for(const _0x33c79f in _0x8d7135[_0x3bed50(0xe8)][_0x3bed50(0x163)]){((_0x524597=_0x8d7135[_0x3bed50(0xe8)][_0x3bed50(0x163)][_0x33c79f])===null||_0x524597===void 0x0?void 0x0:_0x524597['dir'])&&typeof((_0x10ae3d=_0x8d7135[_0x3bed50(0xe8)][_0x3bed50(0x163)][_0x33c79f])===null||_0x10ae3d===void 0x0?void 0x0:_0x10ae3d[_0x3bed50(0xf5)])==_0x3bed50(0x144)&&!fs[_0x3bed50(0xf7)](_0x8d7135[_0x3bed50(0xe8)][_0x3bed50(0x163)][_0x33c79f]['dir'])&&(fs[_0x3bed50(0x12f)](_0x8d7135['staticFile']['dirs'][_0x33c79f][_0x3bed50(0xf5)],{'recursive':!![]}),console[_0x3bed50(0x14b)](_0x3bed50(0x100)+_0x8d7135[_0x3bed50(0xe8)][_0x3bed50(0x163)][_0x33c79f]['dir']));}((_0xda16d7=_0x8d7135===null||_0x8d7135===void 0x0?void 0x0:_0x8d7135[_0x3bed50(0x179)])===null||_0xda16d7===void 0x0?void 0x0:_0xda16d7[_0x3bed50(0x12c)])&&!fs['existsSync'](_0x8d7135['upload'][_0x3bed50(0x12c)])&&(fs['mkdirSync'](_0x8d7135[_0x3bed50(0x179)][_0x3bed50(0x12c)],{'recursive':!![]}),console[_0x3bed50(0x14b)](_0x3bed50(0x164)+_0x8d7135[_0x3bed50(0x179)][_0x3bed50(0x12c)])),this[_0x3bed50(0x12e)]['addObject'](_0x8d7135);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],'app',void 0x0),__decorate([(0x0,core_1[a3_0x3fa347(0x139)])(),__metadata(a3_0x3fa347(0x174),core_2[a3_0x3fa347(0x12b)])],CustomConfiguration[a3_0x3fa347(0x13e)],'config',void 0x0),__decorate([(0x0,core_1[a3_0x3fa347(0x139)])(),__metadata('design:type',core_2[a3_0x3fa347(0xfe)])],CustomConfiguration[a3_0x3fa347(0x13e)],'decorator',void 0x0),__decorate([(0x0,core_1[a3_0x3fa347(0x139)])(),__metadata(a3_0x3fa347(0x174),core_2['MidwayApplicationManager'])],CustomConfiguration[a3_0x3fa347(0x13e)],a3_0x3fa347(0x16f),void 0x0),__decorate([(0x0,core_1[a3_0x3fa347(0x139)])(),__metadata('design:type',core_2[a3_0x3fa347(0x136)])],CustomConfiguration[a3_0x3fa347(0x13e)],a3_0x3fa347(0x114),void 0x0),__decorate([(0x0,core_1[a3_0x3fa347(0x139)])(),__metadata('design:type',core_1[a3_0x3fa347(0x14a)])],CustomConfiguration['prototype'],a3_0x3fa347(0x130),void 0x0),__decorate([(0x0,core_1[a3_0x3fa347(0x139)])(),__metadata('design:type',ApiService_1[a3_0x3fa347(0x14f)])],CustomConfiguration[a3_0x3fa347(0x13e)],a3_0x3fa347(0x14f),void 0x0),exports[a3_0x3fa347(0x176)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x3fa347(0x160),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x5011a2=a4_0x9390;(function(_0x1055d5,_0x2bd5fa){const _0xf9a02d=a4_0x9390,_0x56158f=_0x1055d5();while(!![]){try{const _0x137add=-parseInt(_0xf9a02d(0x1b5))/0x1+-parseInt(_0xf9a02d(0x1cb))/0x2*(parseInt(_0xf9a02d(0x1e1))/0x3)+parseInt(_0xf9a02d(0x1ce))/0x4+-parseInt(_0xf9a02d(0x1af))/0x5*(parseInt(_0xf9a02d(0x1d8))/0x6)+parseInt(_0xf9a02d(0x1c2))/0x7+parseInt(_0xf9a02d(0x1e5))/0x8*(-parseInt(_0xf9a02d(0x1c4))/0x9)+-parseInt(_0xf9a02d(0x1d6))/0xa*(-parseInt(_0xf9a02d(0x1b3))/0xb);if(_0x137add===_0x2bd5fa)break;else _0x56158f['push'](_0x56158f['shift']());}catch(_0x2dbe55){_0x56158f['push'](_0x56158f['shift']());}}}(a4_0x430e,0xd27aa));const a4_0x12b1eb=(function(){let _0x3e9290=!![];return function(_0x5c06d1,_0x19eb1a){const _0x4d0179=_0x3e9290?function(){const _0x4f9bbe=a4_0x9390;if(_0x19eb1a){const _0xf1926f=_0x19eb1a[_0x4f9bbe(0x1ca)](_0x5c06d1,arguments);return _0x19eb1a=null,_0xf1926f;}}:function(){};return _0x3e9290=![],_0x4d0179;};}()),a4_0x52ed01=a4_0x12b1eb(this,function(){const _0x1109d6=a4_0x9390;return a4_0x52ed01['toString']()['search']('(((.+)+)+)+$')['toString']()['constructor'](a4_0x52ed01)[_0x1109d6(0x1be)](_0x1109d6(0x1e9));});a4_0x52ed01();'use strict';var _a,_b;Object[a4_0x5011a2(0x1a6)](exports,'__esModule',{'value':!![]}),exports[a4_0x5011a2(0x1cc)]=Action,exports[a4_0x5011a2(0x1d7)]=ActionApi,exports['parseRoute']=parseRoute;const fs=require('fs'),validator_1=require(a4_0x5011a2(0x1da)),core_1=require(a4_0x5011a2(0x1a3)),core_2=require(a4_0x5011a2(0x1a3)),action_1=require(a4_0x5011a2(0x1c1)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x5011a2(0x1a1)])===null||_b===void 0x0?void 0x0:_b[a4_0x5011a2(0x1b9)]);function Action(_0x203c72,_0xbf51c7,_0x45e3ce={'middleware':[],'sensitive':!![]}){return _0x3ae271=>{const _0x5ccc4c=a4_0x9390;var _0x54d4b3;_0x45e3ce[_0x5ccc4c(0x1a7)]=_0xbf51c7;const _0x1c9cfe=parseRoute(_0x203c72);if(_0x1c9cfe['module']){_0x45e3ce[_0x5ccc4c(0x1bf)]=_0x45e3ce['prefix']?'/'+_0x1c9cfe['module']+'/'+_0x45e3ce[_0x5ccc4c(0x1bf)]:'/'+_0x1c9cfe[_0x5ccc4c(0x1a0)];_0x1c9cfe[_0x5ccc4c(0x1bf)]&&(_0x45e3ce[_0x5ccc4c(0x1bf)]='/'+_0x1c9cfe[_0x5ccc4c(0x1bf)]+'/'+_0x45e3ce[_0x5ccc4c(0x1bf)]);_0x45e3ce[_0x5ccc4c(0x1bf)]=_0x45e3ce[_0x5ccc4c(0x1bf)][_0x5ccc4c(0x1e7)]()['replace'](/\/{2,}/g,'/');const _0x1363d3=getModuleConfig(_0x1c9cfe[_0x5ccc4c(0x19c)]+_0x5ccc4c(0x1d5),_0x1c9cfe[_0x5ccc4c(0x1c7)],lodash[_0x5ccc4c(0x19b)](_0x1c9cfe[_0x5ccc4c(0x1c0)],'ts')?'ts':'js');if(lodash[_0x5ccc4c(0x1ba)](_0x1363d3['middleware'])&&_0x1363d3[_0x5ccc4c(0x1e6)][_0x5ccc4c(0x1ae)]>0x0)for(let _0x1c88d0 in _0x1363d3['middleware']){if(((_0x54d4b3=_0x1363d3===null||_0x1363d3===void 0x0?void 0x0:_0x1363d3[_0x5ccc4c(0x19f)])===null||_0x54d4b3===void 0x0?void 0x0:_0x54d4b3[_0x5ccc4c(0x1ae)])>0x0&&_0x1363d3['middlewareIgnore'][_0x5ccc4c(0x1cd)](_0x1363d3[_0x5ccc4c(0x1e6)][_0x1c88d0])!=-0x1)continue;_0x45e3ce[_0x5ccc4c(0x1e6)][_0x5ccc4c(0x1d4)](_0x1363d3[_0x5ccc4c(0x1e6)][_0x1c88d0]);}(0x0,core_1[_0x5ccc4c(0x1c8)])(action_1['ACTION_KEY'],_0x3ae271),(0x0,core_1[_0x5ccc4c(0x1e3)])(_0x45e3ce[_0x5ccc4c(0x1bf)],_0x45e3ce)(_0x3ae271),(0x0,core_1['saveClassMetadata'])(action_1[_0x5ccc4c(0x1a2)],{'prefix':_0x45e3ce[_0x5ccc4c(0x1bf)],'pprefix':_0x1c9cfe[_0x5ccc4c(0x1bf)],'module':_0x1c9cfe['module'],'filepath':_0x1c9cfe[_0x5ccc4c(0x1c0)],'routerOptions':_0x45e3ce},_0x3ae271);}else _0x45e3ce['prefix']=_0x45e3ce['prefix']?'/'+_0x45e3ce[_0x5ccc4c(0x1bf)]:'/'+_0x1c9cfe[_0x5ccc4c(0x1a0)],_0x1c9cfe[_0x5ccc4c(0x1bf)]&&(_0x45e3ce['prefix']='/'+_0x1c9cfe['prefix']+'/'+_0x45e3ce['prefix']),_0x45e3ce['prefix']=_0x45e3ce[_0x5ccc4c(0x1bf)][_0x5ccc4c(0x1e7)]()[_0x5ccc4c(0x1b0)](/\/{2,}/g,'/'),(0x0,core_1[_0x5ccc4c(0x1c8)])(action_1[_0x5ccc4c(0x1a2)],_0x3ae271),(0x0,core_1['Controller'])(_0x45e3ce[_0x5ccc4c(0x1bf)],_0x45e3ce)(_0x3ae271),(0x0,core_1[_0x5ccc4c(0x1df)])(action_1[_0x5ccc4c(0x1a2)],{'prefix':_0x45e3ce[_0x5ccc4c(0x1bf)],'module':_0x1c9cfe['module'],'pprefix':_0x1c9cfe['prefix'],'filepath':_0x1c9cfe[_0x5ccc4c(0x1c0)],'routerOptions':_0x45e3ce},_0x3ae271);};}Action[a4_0x5011a2(0x1a4)]=function(_0x556971,_0x5998ba='/',_0x34014b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x574b45,_0x433e18,_0x49b598)=>{const _0x8f5f75=a4_0x9390;ActionApi(_0x556971,_0x8f5f75(0x1a4),_0x5998ba,_0x34014b)(_0x574b45,_0x433e18,_0x49b598);};},Action[a4_0x5011a2(0x1b7)]=function(_0x1657b5,_0x2c1c92='/',_0x5e82ac={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x474ee9,_0x2c097a,_0x186834)=>{const _0x4b675a=a4_0x9390;ActionApi(_0x1657b5,_0x4b675a(0x1b7),_0x2c1c92,_0x5e82ac)(_0x474ee9,_0x2c097a,_0x186834);};};function ActionApi(_0x25664b,_0x359f97='get',_0x1bfbab='/',_0x58ba21={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x17d902,_0x13196d,_0x1bd45)=>{const _0x1f4c11=a4_0x9390;var _0x3eef7f,_0x3b3f80,_0x2e20d6;!_0x58ba21[_0x1f4c11(0x1e6)]&&(_0x58ba21[_0x1f4c11(0x1e6)]=[]);!((_0x3eef7f=_0x58ba21===null||_0x58ba21===void 0x0?void 0x0:_0x58ba21[_0x1f4c11(0x19e)])===null||_0x3eef7f===void 0x0?void 0x0:_0x3eef7f[_0x1f4c11(0x1bc)])&&(_0x58ba21[_0x1f4c11(0x19e)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1f4c11(0x1b2)}});if(!_0x1bfbab)_0x1bfbab='/';else typeof _0x1bfbab==_0x1f4c11(0x1b2)&&(!_0x1bfbab[_0x1f4c11(0x1b4)]('/')&&!_0x1bfbab[_0x1f4c11(0x1b4)]('-')&&(_0x1bfbab='/'+_0x1bfbab));typeof _0x58ba21[_0x1f4c11(0x19d)]==_0x1f4c11(0x1ac)&&(_0x58ba21[_0x1f4c11(0x19d)]=!![]);if(((_0x3b3f80=_0x58ba21===null||_0x58ba21===void 0x0?void 0x0:_0x58ba21[_0x1f4c11(0x1e6)])===null||_0x3b3f80===void 0x0?void 0x0:_0x3b3f80[_0x1f4c11(0x1ae)])>0x0&&((_0x2e20d6=_0x58ba21===null||_0x58ba21===void 0x0?void 0x0:_0x58ba21['middlewareIgnore'])===null||_0x2e20d6===void 0x0?void 0x0:_0x2e20d6['length'])>0x0)for(let _0x25dbdb in _0x58ba21[_0x1f4c11(0x1e6)]){_0x58ba21[_0x1f4c11(0x19f)][_0x1f4c11(0x1cd)](_0x58ba21[_0x1f4c11(0x1e6)][_0x25dbdb])!==-0x1&&(_0x58ba21[_0x1f4c11(0x1e6)][_0x25dbdb]=null);}_0x58ba21['routerName']=_0x25664b,(0x0,validator_1['Validator'])(_0x58ba21[_0x1f4c11(0x19e)])(_0x17d902,_0x13196d,_0x1bd45),(0x0,core_2['RequestMapping'])(Object['assign'](_0x58ba21,{'path':_0x1bfbab,'requestMethod':(_0x359f97||'get')[_0x1f4c11(0x1e7)]()}))(_0x17d902,_0x13196d,_0x1bd45),(0x0,core_2[_0x1f4c11(0x1de)])(action_1[_0x1f4c11(0x1d9)],{'path':_0x1bfbab,'method':_0x13196d,'apimit':_0x58ba21[_0x1f4c11(0x19d)],'intercept':_0x58ba21[_0x1f4c11(0x1bb)],'routerName':_0x58ba21['routerName'],'description':_0x58ba21[_0x1f4c11(0x1d3)],'middleware':(_0x58ba21[_0x1f4c11(0x1e6)]||[])[_0x1f4c11(0x1e8)](_0x3f421b=>!!_0x3f421b),'requestMethod':(_0x359f97||_0x1f4c11(0x1a4))[_0x1f4c11(0x1e7)]()},_0x17d902),(0x0,core_2[_0x1f4c11(0x1db)])(action_1[_0x1f4c11(0x1d9)],{'path':_0x1bfbab,'method':_0x13196d,'apimit':_0x58ba21[_0x1f4c11(0x19d)],'intercept':_0x58ba21['intercept'],'routerName':_0x58ba21['routerName'],'description':_0x58ba21[_0x1f4c11(0x1d3)],'middleware':(_0x58ba21[_0x1f4c11(0x1e6)]||[])[_0x1f4c11(0x1e8)](_0x93e54a=>!!_0x93e54a),'requestMethod':(_0x359f97||_0x1f4c11(0x1a4))[_0x1f4c11(0x1e7)]()})(_0x17d902,_0x13196d,_0x1bd45);};}function parseRoute(_0x4567c1){const _0x383b73=a4_0x5011a2;_0x4567c1=_0x4567c1[_0x383b73(0x1b0)](/(\\|\/)/g,'/');const _0xa202b4=process[_0x383b73(0x1c6)]()[_0x383b73(0x1b0)](/(\\|\/)/g,'/'),_0x513dc3=_0x4567c1[_0x383b73(0x1e2)](0x0,_0xa202b4[_0x383b73(0x1ae)]+_0x4567c1[_0x383b73(0x1e2)](_0xa202b4[_0x383b73(0x1ae)]+0x1)[_0x383b73(0x1cd)]('/')+0x1),_0x1e3ce1=_0x4567c1[_0x383b73(0x1e2)](_0x513dc3[_0x383b73(0x1ae)]+0x1)[_0x383b73(0x1b0)](/(\\|\/)/g,'/'),_0x4fca31={'route':'','prefix':![],'module':![],'rootpath':_0x513dc3,'filepath':_0x1e3ce1};if(_0x1e3ce1[_0x383b73(0x1b4)](_0x383b73(0x1c5))||_0x1e3ce1[_0x383b73(0x1b4)](_0x383b73(0x1a5))){const _0x1a857d=_0x1e3ce1[_0x383b73(0x1e2)]((_0x1e3ce1[_0x383b73(0x1b4)](_0x383b73(0x1c5))?_0x383b73(0x1c5):_0x383b73(0x1a5))['length'])[_0x383b73(0x1e0)]('/')['filter'](_0x16784e=>_0x16784e&&_0x16784e['trim']());return _0x1a857d[_0x383b73(0x1ae)]>0x1&&(_0x4fca31[_0x383b73(0x1bf)]=_0x1a857d[0x0][_0x383b73(0x1e7)](),_0x1a857d['splice'](0x0,0x1)),_0x4fca31[_0x383b73(0x1a0)]=('/'+_0x1a857d[_0x383b73(0x1dc)]('/'))[_0x383b73(0x1b0)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x383b73(0x1d0)](/[\/|A-Z]*[^A-Z]+/g)[_0x383b73(0x1dc)]('-')['toLowerCase']()[_0x383b73(0x1b0)](/\/\-/g,'/'),_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x19b)](_0x383b73(0x1a8))&&(_0x4fca31[_0x383b73(0x1a0)]=_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x1e2)](0x0,_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x1ae)]-0x7)),_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x19b)](_0x383b73(0x1dd))&&(_0x4fca31[_0x383b73(0x1a0)]=_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x1e2)](0x0,_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x1ae)]-0xb)),_0x4fca31;}else{if(_0x1e3ce1[_0x383b73(0x1b4)](_0x383b73(0x1d2))){const _0x31ca72=_0x1e3ce1['substring'](0x0,_0x1e3ce1[_0x383b73(0x1cd)](_0x383b73(0x1ab))+0x5),_0x44acc9=_0x1e3ce1['substring'](_0x31ca72['length']+0x1)[_0x383b73(0x1b0)](/(\\|\/)/g,'/')[_0x383b73(0x1e0)]('/')[0x0];if(_0x1e3ce1[_0x383b73(0x1b4)]('apps/'+_0x44acc9+'/controller/')){const _0x222461=_0x1e3ce1[_0x383b73(0x1e2)]((_0x31ca72+'/'+_0x44acc9+_0x383b73(0x1ad))[_0x383b73(0x1ae)])[_0x383b73(0x1e0)]('/')[_0x383b73(0x1e8)](_0x2ab7e7=>_0x2ab7e7&&_0x2ab7e7[_0x383b73(0x1d1)]());return _0x222461[_0x383b73(0x1ae)]>0x1&&(_0x4fca31[_0x383b73(0x1bf)]=_0x222461[0x0][_0x383b73(0x1e7)](),_0x222461['splice'](0x0,0x1)),_0x4fca31[_0x383b73(0x1c7)]=_0x44acc9,_0x4fca31['route']=('/'+_0x44acc9+'/'+_0x222461[_0x383b73(0x1dc)]('/'))[_0x383b73(0x1b0)](/(\.ts|\.js)$/,'')[_0x383b73(0x1b0)](/\/{2,}/g,'/')[_0x383b73(0x1d0)](/[\/|A-Z]*[^A-Z]+/g)[_0x383b73(0x1dc)]('-')[_0x383b73(0x1e7)]()[_0x383b73(0x1b0)](/\/\-/g,'/'),_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x19b)](_0x383b73(0x1a8))&&(_0x4fca31[_0x383b73(0x1a0)]=_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x1e2)](0x0,_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x1ae)]-0x7)),_0x4fca31[_0x383b73(0x1a0)][_0x383b73(0x19b)](_0x383b73(0x1dd))&&(_0x4fca31[_0x383b73(0x1a0)]=_0x4fca31[_0x383b73(0x1a0)]['substring'](0x0,_0x4fca31[_0x383b73(0x1a0)]['length']-0xb)),_0x4fca31;}throw new Error(_0x1e3ce1+'\x20文件请放在apps/'+_0x44acc9+_0x383b73(0x1b6));}}throw new Error(_0x1e3ce1+_0x383b73(0x1c3));}const moduleConfigTmp=(0x0,core_1[a4_0x5011a2(0x1cf)])(action_1[a4_0x5011a2(0x1b8)],action_1[a4_0x5011a2(0x1b1)])||{};function a4_0x430e(){const _0x45c765=['-action','values','/config.','/apps/','undefined','/controller/','length','5dEGUsQ','replace','AppsConfigTmp','string','272701iZiAMW','startsWith','343665CISVzm','/controller/文件下','post','APPSCONFIG_KEY','NODE_ENV','isArray','intercept','validationOptions','defaultsDeep','search','prefix','filepath','../types/action','9682981FkbNrF','\x20文件请放在app/controller/文件下','23175KNFbBi','app/controller/','cwd','module','saveModule','keys','apply','820238JngFzW','Action','indexOf','2692812BSIHqM','getClassMetadata','match','trim','apps/','description','push','/apps','510NapRov','ActionApi','2569284UrEgye','ACTION_ROUTE_KEY','@anncic-api/validator','createCustomMethodDecorator','join','-controller','attachClassMetadata','saveClassMetadata','split','12YJsmVJ','substring','Controller','existsSync','144aTwJUj','middleware','toLowerCase','filter','(((.+)+)+)+$','endsWith','rootpath','apimit','validate','middlewareIgnore','route','env','ACTION_KEY','@midwayjs/core','get','basic/controller/','defineProperty','tagName'];a4_0x430e=function(){return _0x45c765;};return a4_0x430e();}function a4_0x9390(_0x241f6b,_0x829873){const _0x1e73fa=a4_0x430e();return a4_0x9390=function(_0x52ed01,_0x12b1eb){_0x52ed01=_0x52ed01-0x19b;let _0x430e27=_0x1e73fa[_0x52ed01];return _0x430e27;},a4_0x9390(_0x241f6b,_0x829873);}function getModuleConfig(_0x1eddcf,_0x4e97bd,_0x20c213){const _0x26c49a=a4_0x5011a2;if(Object[_0x26c49a(0x1a9)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x4e97bd])||{})[_0x26c49a(0x1ae)]==0x0){let _0x335b9a={};if(NODE_ENV&&fs[_0x26c49a(0x1e4)](_0x1eddcf+'/'+_0x4e97bd+_0x26c49a(0x1aa)+NODE_ENV+'.'+_0x20c213)){const _0x5db394=include(_0x1eddcf+'/'+_0x4e97bd+_0x26c49a(0x1aa)+NODE_ENV+'.'+_0x20c213);Object[_0x26c49a(0x1c9)](_0x5db394)[_0x26c49a(0x1ae)]>0x0&&(_0x335b9a=lodash[_0x26c49a(0x1bd)](_0x335b9a,_0x5db394));}if(fs[_0x26c49a(0x1e4)](_0x1eddcf+'/'+_0x4e97bd+_0x26c49a(0x1aa)+_0x20c213)){const _0x427d57=include(_0x1eddcf+'/'+_0x4e97bd+_0x26c49a(0x1aa)+_0x20c213);Object[_0x26c49a(0x1c9)](_0x427d57)[_0x26c49a(0x1ae)]>0x0&&(_0x335b9a=lodash[_0x26c49a(0x1bd)](_0x335b9a,_0x427d57));}moduleConfigTmp[_0x4e97bd]=_0x335b9a,(0x0,core_1[_0x26c49a(0x1df)])(action_1[_0x26c49a(0x1b8)],moduleConfigTmp,action_1[_0x26c49a(0x1b1)]);}return moduleConfigTmp[_0x4e97bd];}
|
|
1
|
+
function a4_0x3537(){const _0x3e4ef2=['indexOf','prefix','__esModule','validate','push','ACTION_ROUTE_KEY','filepath','saveClassMetadata','saveModule','middlewareIgnore','tagName','APPSCONFIG_KEY','filter','routerName','basic/controller/','11553561jBYlKN','intercept','AppsConfigTmp','replace','@anncic-api/validator','parseRoute','splice','middleware','99546xQPVcH','length','/apps','26177890KpUNcm','cwd','endsWith','substring','description','undefined','rootpath','1421614laqxVs','/config.','module','defineProperty','existsSync','apimit','RequestMapping','57WFwBRS','toString','trim','ACTION_KEY','apps/','env','9183378JJFHUy','Validator','split','string','getClassMetadata','app/controller/','(((.+)+)+)+$','get','createCustomMethodDecorator','-action','11RTNQeQ','join','validationOptions','404545mmBFZg','search','9018471IrvzMz','Controller','../types/action','isArray','defaultsDeep','-controller','post','toLowerCase','match','44gvipmy','values','attachClassMetadata','startsWith','8GFkWbK','route','\x20文件请放在app/controller/文件下','keys'];a4_0x3537=function(){return _0x3e4ef2;};return a4_0x3537();}function a4_0x4239(_0x4e8ef7,_0x562cb3){const _0x5ce453=a4_0x3537();return a4_0x4239=function(_0x139c3e,_0x1d6b48){_0x139c3e=_0x139c3e-0xd0;let _0x353729=_0x5ce453[_0x139c3e];return _0x353729;},a4_0x4239(_0x4e8ef7,_0x562cb3);}const a4_0x5209b4=a4_0x4239;(function(_0x246fbc,_0x59d5d3){const _0x24193e=a4_0x4239,_0x44f004=_0x246fbc();while(!![]){try{const _0xad1c3b=-parseInt(_0x24193e(0x11b))/0x1+-parseInt(_0x24193e(0x111))/0x2*(parseInt(_0x24193e(0xd4))/0x3)+parseInt(_0x24193e(0xf2))/0x4*(-parseInt(_0x24193e(0xe7))/0x5)+parseInt(_0x24193e(0xda))/0x6+parseInt(_0x24193e(0xe9))/0x7+-parseInt(_0x24193e(0xf6))/0x8*(parseInt(_0x24193e(0x109))/0x9)+parseInt(_0x24193e(0x114))/0xa*(parseInt(_0x24193e(0xe4))/0xb);if(_0xad1c3b===_0x59d5d3)break;else _0x44f004['push'](_0x44f004['shift']());}catch(_0x5c7444){_0x44f004['push'](_0x44f004['shift']());}}}(a4_0x3537,0xdaabc));const a4_0x1d6b48=(function(){let _0x2dd22a=!![];return function(_0x2812f5,_0x336a67){const _0x5dc6e1=_0x2dd22a?function(){if(_0x336a67){const _0x2e9034=_0x336a67['apply'](_0x2812f5,arguments);return _0x336a67=null,_0x2e9034;}}:function(){};return _0x2dd22a=![],_0x5dc6e1;};}()),a4_0x139c3e=a4_0x1d6b48(this,function(){const _0x174cf1=a4_0x4239;return a4_0x139c3e['toString']()['search'](_0x174cf1(0xe0))[_0x174cf1(0xd5)]()['constructor'](a4_0x139c3e)[_0x174cf1(0xe8)](_0x174cf1(0xe0));});a4_0x139c3e();'use strict';var _a,_b;Object[a4_0x5209b4(0xd0)](exports,a4_0x5209b4(0xfc),{'value':!![]}),exports['Action']=Action,exports['ActionApi']=ActionApi,exports[a4_0x5209b4(0x10e)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x5209b4(0x10d)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a4_0x5209b4(0xeb)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x5209b4(0xd9)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x5209b4(0xd9)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x3d3b6f,_0x94371b,_0x2b801d={'middleware':[],'sensitive':!![]}){return _0x3bad66=>{const _0x55f3a8=a4_0x4239;var _0x1c7463;_0x2b801d[_0x55f3a8(0x104)]=_0x94371b;const _0x767a15=parseRoute(_0x3d3b6f);if(_0x767a15[_0x55f3a8(0x11d)]){_0x2b801d[_0x55f3a8(0xfb)]=_0x2b801d[_0x55f3a8(0xfb)]?'/'+_0x767a15[_0x55f3a8(0x11d)]+'/'+_0x2b801d['prefix']:'/'+_0x767a15[_0x55f3a8(0xf7)];_0x767a15[_0x55f3a8(0xfb)]&&(_0x2b801d['prefix']='/'+_0x767a15[_0x55f3a8(0xfb)]+'/'+_0x2b801d[_0x55f3a8(0xfb)]);_0x2b801d[_0x55f3a8(0xfb)]=_0x2b801d[_0x55f3a8(0xfb)]['toLowerCase']()[_0x55f3a8(0x10c)](/\/{2,}/g,'/');const _0x197d25=getModuleConfig(_0x767a15[_0x55f3a8(0x11a)]+_0x55f3a8(0x113),_0x767a15[_0x55f3a8(0x11d)],lodash[_0x55f3a8(0x116)](_0x767a15['filepath'],'ts')?'ts':'js');if(lodash[_0x55f3a8(0xec)](_0x197d25[_0x55f3a8(0x110)])&&_0x197d25['middleware'][_0x55f3a8(0x112)]>0x0)for(let _0x5b8945 in _0x197d25[_0x55f3a8(0x110)]){if(((_0x1c7463=_0x197d25===null||_0x197d25===void 0x0?void 0x0:_0x197d25[_0x55f3a8(0x103)])===null||_0x1c7463===void 0x0?void 0x0:_0x1c7463[_0x55f3a8(0x112)])>0x0&&_0x197d25[_0x55f3a8(0x103)]['indexOf'](_0x197d25[_0x55f3a8(0x110)][_0x5b8945])!=-0x1)continue;_0x2b801d[_0x55f3a8(0x110)][_0x55f3a8(0xfe)](_0x197d25[_0x55f3a8(0x110)][_0x5b8945]);}(0x0,core_1[_0x55f3a8(0x102)])(action_1[_0x55f3a8(0xd7)],_0x3bad66),(0x0,core_1[_0x55f3a8(0xea)])(_0x2b801d[_0x55f3a8(0xfb)],_0x2b801d)(_0x3bad66),(0x0,core_1[_0x55f3a8(0x101)])(action_1[_0x55f3a8(0xd7)],{'prefix':_0x2b801d[_0x55f3a8(0xfb)],'pprefix':_0x767a15[_0x55f3a8(0xfb)],'module':_0x767a15[_0x55f3a8(0x11d)],'filepath':_0x767a15[_0x55f3a8(0x100)],'routerOptions':_0x2b801d},_0x3bad66);}else _0x2b801d[_0x55f3a8(0xfb)]=_0x2b801d[_0x55f3a8(0xfb)]?'/'+_0x2b801d['prefix']:'/'+_0x767a15[_0x55f3a8(0xf7)],_0x767a15[_0x55f3a8(0xfb)]&&(_0x2b801d['prefix']='/'+_0x767a15[_0x55f3a8(0xfb)]+'/'+_0x2b801d[_0x55f3a8(0xfb)]),_0x2b801d[_0x55f3a8(0xfb)]=_0x2b801d['prefix'][_0x55f3a8(0xf0)]()[_0x55f3a8(0x10c)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x55f3a8(0xd7)],_0x3bad66),(0x0,core_1[_0x55f3a8(0xea)])(_0x2b801d[_0x55f3a8(0xfb)],_0x2b801d)(_0x3bad66),(0x0,core_1[_0x55f3a8(0x101)])(action_1[_0x55f3a8(0xd7)],{'prefix':_0x2b801d[_0x55f3a8(0xfb)],'module':_0x767a15[_0x55f3a8(0x11d)],'pprefix':_0x767a15[_0x55f3a8(0xfb)],'filepath':_0x767a15[_0x55f3a8(0x100)],'routerOptions':_0x2b801d},_0x3bad66);};}Action[a4_0x5209b4(0xe1)]=function(_0x438de3,_0x887a6a='/',_0x5d53af={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5158e6,_0x11733d,_0x28eceb)=>{const _0x12fc55=a4_0x4239;ActionApi(_0x438de3,_0x12fc55(0xe1),_0x887a6a,_0x5d53af)(_0x5158e6,_0x11733d,_0x28eceb);};},Action[a4_0x5209b4(0xef)]=function(_0x239007,_0x1e2064='/',_0x12fdb5={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xf8ca38,_0x24e7ae,_0x21730a)=>{ActionApi(_0x239007,'post',_0x1e2064,_0x12fdb5)(_0xf8ca38,_0x24e7ae,_0x21730a);};};function ActionApi(_0x495617,_0x5cfe11=a4_0x5209b4(0xe1),_0x325d8f='/',_0x187f13={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x41cb5e,_0x163238,_0x4591c3)=>{const _0x3a9e6f=a4_0x4239;var _0x336514,_0x4b7852,_0x11e3c2;!_0x187f13[_0x3a9e6f(0x110)]&&(_0x187f13[_0x3a9e6f(0x110)]=[]);!((_0x336514=_0x187f13===null||_0x187f13===void 0x0?void 0x0:_0x187f13[_0x3a9e6f(0xfd)])===null||_0x336514===void 0x0?void 0x0:_0x336514[_0x3a9e6f(0xe6)])&&(_0x187f13['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3a9e6f(0xdd)}});if(!_0x325d8f)_0x325d8f='/';else typeof _0x325d8f==_0x3a9e6f(0xdd)&&(!_0x325d8f[_0x3a9e6f(0xf5)]('/')&&!_0x325d8f[_0x3a9e6f(0xf5)]('-')&&(_0x325d8f='/'+_0x325d8f));typeof _0x187f13[_0x3a9e6f(0xd2)]==_0x3a9e6f(0x119)&&(_0x187f13[_0x3a9e6f(0xd2)]=!![]);if(((_0x4b7852=_0x187f13===null||_0x187f13===void 0x0?void 0x0:_0x187f13[_0x3a9e6f(0x110)])===null||_0x4b7852===void 0x0?void 0x0:_0x4b7852[_0x3a9e6f(0x112)])>0x0&&((_0x11e3c2=_0x187f13===null||_0x187f13===void 0x0?void 0x0:_0x187f13[_0x3a9e6f(0x103)])===null||_0x11e3c2===void 0x0?void 0x0:_0x11e3c2[_0x3a9e6f(0x112)])>0x0)for(let _0x67412b in _0x187f13[_0x3a9e6f(0x110)]){_0x187f13[_0x3a9e6f(0x103)]['indexOf'](_0x187f13[_0x3a9e6f(0x110)][_0x67412b])!==-0x1&&(_0x187f13[_0x3a9e6f(0x110)][_0x67412b]=null);}_0x187f13[_0x3a9e6f(0x107)]=_0x495617,(0x0,validator_1[_0x3a9e6f(0xdb)])(_0x187f13['validate'])(_0x41cb5e,_0x163238,_0x4591c3),(0x0,core_2[_0x3a9e6f(0xd3)])(Object['assign'](_0x187f13,{'path':_0x325d8f,'requestMethod':(_0x5cfe11||_0x3a9e6f(0xe1))[_0x3a9e6f(0xf0)]()}))(_0x41cb5e,_0x163238,_0x4591c3),(0x0,core_2[_0x3a9e6f(0xf4)])(action_1[_0x3a9e6f(0xff)],{'path':_0x325d8f,'method':_0x163238,'apimit':_0x187f13[_0x3a9e6f(0xd2)],'intercept':_0x187f13[_0x3a9e6f(0x10a)],'routerName':_0x187f13[_0x3a9e6f(0x107)],'description':_0x187f13[_0x3a9e6f(0x118)],'middleware':(_0x187f13['middleware']||[])['filter'](_0x46c348=>!!_0x46c348),'requestMethod':(_0x5cfe11||_0x3a9e6f(0xe1))[_0x3a9e6f(0xf0)]()},_0x41cb5e),(0x0,core_2[_0x3a9e6f(0xe2)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x325d8f,'method':_0x163238,'apimit':_0x187f13['apimit'],'intercept':_0x187f13[_0x3a9e6f(0x10a)],'routerName':_0x187f13[_0x3a9e6f(0x107)],'description':_0x187f13['description'],'middleware':(_0x187f13[_0x3a9e6f(0x110)]||[])[_0x3a9e6f(0x106)](_0x14e322=>!!_0x14e322),'requestMethod':(_0x5cfe11||'get')[_0x3a9e6f(0xf0)]()})(_0x41cb5e,_0x163238,_0x4591c3);};}function parseRoute(_0x319ae1){const _0x2f7f42=a4_0x5209b4;_0x319ae1=_0x319ae1[_0x2f7f42(0x10c)](/(\\|\/)/g,'/');const _0x17f809=process[_0x2f7f42(0x115)]()[_0x2f7f42(0x10c)](/(\\|\/)/g,'/'),_0x5eab3f=_0x319ae1[_0x2f7f42(0x117)](0x0,_0x17f809[_0x2f7f42(0x112)]+_0x319ae1[_0x2f7f42(0x117)](_0x17f809['length']+0x1)['indexOf']('/')+0x1),_0x1d419e=_0x319ae1[_0x2f7f42(0x117)](_0x5eab3f['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x4b86dd={'route':'','prefix':![],'module':![],'rootpath':_0x5eab3f,'filepath':_0x1d419e};if(_0x1d419e[_0x2f7f42(0xf5)]('app/controller/')||_0x1d419e['startsWith'](_0x2f7f42(0x108))){const _0xd23ce=_0x1d419e[_0x2f7f42(0x117)]((_0x1d419e['startsWith'](_0x2f7f42(0xdf))?'app/controller/':_0x2f7f42(0x108))[_0x2f7f42(0x112)])[_0x2f7f42(0xdc)]('/')[_0x2f7f42(0x106)](_0x248321=>_0x248321&&_0x248321[_0x2f7f42(0xd6)]());return _0xd23ce[_0x2f7f42(0x112)]>0x1&&(_0x4b86dd['prefix']=_0xd23ce[0x0][_0x2f7f42(0xf0)](),_0xd23ce[_0x2f7f42(0x10f)](0x0,0x1)),_0x4b86dd[_0x2f7f42(0xf7)]=('/'+_0xd23ce[_0x2f7f42(0xe5)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x2f7f42(0x10c)](/\/{2,}/g,'/')[_0x2f7f42(0xf1)](/[\/|A-Z]*[^A-Z]+/g)[_0x2f7f42(0xe5)]('-')['toLowerCase']()[_0x2f7f42(0x10c)](/\/\-/g,'/'),_0x4b86dd['route'][_0x2f7f42(0x116)](_0x2f7f42(0xe3))&&(_0x4b86dd['route']=_0x4b86dd['route'][_0x2f7f42(0x117)](0x0,_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x112)]-0x7)),_0x4b86dd[_0x2f7f42(0xf7)]['endsWith']('-controller')&&(_0x4b86dd['route']=_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x117)](0x0,_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x112)]-0xb)),_0x4b86dd;}else{if(_0x1d419e[_0x2f7f42(0xf5)](_0x2f7f42(0xd8))){const _0xbea3f1=_0x1d419e[_0x2f7f42(0x117)](0x0,_0x1d419e[_0x2f7f42(0xfa)]('/apps/')+0x5),_0x5d264b=_0x1d419e['substring'](_0xbea3f1['length']+0x1)[_0x2f7f42(0x10c)](/(\\|\/)/g,'/')[_0x2f7f42(0xdc)]('/')[0x0];if(_0x1d419e[_0x2f7f42(0xf5)]('apps/'+_0x5d264b+'/controller/')){const _0x2c5a76=_0x1d419e[_0x2f7f42(0x117)]((_0xbea3f1+'/'+_0x5d264b+'/controller/')[_0x2f7f42(0x112)])[_0x2f7f42(0xdc)]('/')['filter'](_0x3e920a=>_0x3e920a&&_0x3e920a[_0x2f7f42(0xd6)]());return _0x2c5a76[_0x2f7f42(0x112)]>0x1&&(_0x4b86dd['prefix']=_0x2c5a76[0x0][_0x2f7f42(0xf0)](),_0x2c5a76['splice'](0x0,0x1)),_0x4b86dd[_0x2f7f42(0x11d)]=_0x5d264b,_0x4b86dd['route']=('/'+_0x5d264b+'/'+_0x2c5a76[_0x2f7f42(0xe5)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x2f7f42(0x10c)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x2f7f42(0xe5)]('-')['toLowerCase']()[_0x2f7f42(0x10c)](/\/\-/g,'/'),_0x4b86dd['route'][_0x2f7f42(0x116)](_0x2f7f42(0xe3))&&(_0x4b86dd[_0x2f7f42(0xf7)]=_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x117)](0x0,_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x112)]-0x7)),_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x116)](_0x2f7f42(0xee))&&(_0x4b86dd['route']=_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x117)](0x0,_0x4b86dd[_0x2f7f42(0xf7)][_0x2f7f42(0x112)]-0xb)),_0x4b86dd;}throw new Error(_0x1d419e+'\x20文件请放在apps/'+_0x5d264b+'/controller/文件下');}}throw new Error(_0x1d419e+_0x2f7f42(0xf8));}const moduleConfigTmp=(0x0,core_1[a4_0x5209b4(0xde)])(action_1[a4_0x5209b4(0x105)],action_1[a4_0x5209b4(0x10b)])||{};function getModuleConfig(_0x32882e,_0x453bf9,_0x59fc3e){const _0x2360fd=a4_0x5209b4;if(Object[_0x2360fd(0xf3)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x453bf9])||{})['length']==0x0){let _0x3262b6={};if(NODE_ENV&&fs[_0x2360fd(0xd1)](_0x32882e+'/'+_0x453bf9+_0x2360fd(0x11c)+NODE_ENV+'.'+_0x59fc3e)){const _0x405b64=include(_0x32882e+'/'+_0x453bf9+_0x2360fd(0x11c)+NODE_ENV+'.'+_0x59fc3e);Object['keys'](_0x405b64)['length']>0x0&&(_0x3262b6=lodash[_0x2360fd(0xed)](_0x3262b6,_0x405b64));}if(fs[_0x2360fd(0xd1)](_0x32882e+'/'+_0x453bf9+_0x2360fd(0x11c)+_0x59fc3e)){const _0x2032d7=include(_0x32882e+'/'+_0x453bf9+_0x2360fd(0x11c)+_0x59fc3e);Object[_0x2360fd(0xf9)](_0x2032d7)[_0x2360fd(0x112)]>0x0&&(_0x3262b6=lodash[_0x2360fd(0xed)](_0x3262b6,_0x2032d7));}moduleConfigTmp[_0x453bf9]=_0x3262b6,(0x0,core_1[_0x2360fd(0x101)])(action_1[_0x2360fd(0x105)],moduleConfigTmp,action_1[_0x2360fd(0x10b)]);}return moduleConfigTmp[_0x453bf9];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x24ff84=a5_0xc13c;function a5_0xc13c(_0x17bd6a,_0x18a67b){const _0x20c676=a5_0x390c();return a5_0xc13c=function(_0x5692fd,_0x3b880a){_0x5692fd=_0x5692fd-0x79;let _0x390cc8=_0x20c676[_0x5692fd];return _0x390cc8;},a5_0xc13c(_0x17bd6a,_0x18a67b);}function a5_0x390c(){const _0xb1dad4=['2272032PCYRvj','search','45wbIklA','Apitest','__esModule','value','MidwayEnvironmentService','4IGMSOq','641940LLJsqh','getApplicationContext','isDevelopmentEnvironment','apply','5077863tgvfWG','6ZLGkNm','../service/ApitestService','1380860xMXFai','apidoc','getConfig','getAsync','@midwayjs/core','(((.+)+)+)+$','13292hhgwTs','8162860DTlCLh','defineProperty','toString','apitest','1073192CchiNl','/apitest'];a5_0x390c=function(){return _0xb1dad4;};return a5_0x390c();}(function(_0xc86c34,_0xab8f98){const _0x17e10a=a5_0xc13c,_0x5a90a3=_0xc86c34();while(!![]){try{const _0x33b141=-parseInt(_0x17e10a(0x7a))/0x1*(parseInt(_0x17e10a(0x88))/0x2)+parseInt(_0x17e10a(0x8f))/0x3+parseInt(_0x17e10a(0x7b))/0x4+parseInt(_0x17e10a(0x82))/0x5+-parseInt(_0x17e10a(0x80))/0x6*(-parseInt(_0x17e10a(0x7f))/0x7)+parseInt(_0x17e10a(0x8d))/0x8*(-parseInt(_0x17e10a(0x91))/0x9)+-parseInt(_0x17e10a(0x89))/0xa;if(_0x33b141===_0xab8f98)break;else _0x5a90a3['push'](_0x5a90a3['shift']());}catch(_0x1de361){_0x5a90a3['push'](_0x5a90a3['shift']());}}}(a5_0x390c,0x63123));const a5_0x3b880a=(function(){let _0x3ce403=!![];return function(_0x2bd732,_0x352fc7){const _0x227430=_0x3ce403?function(){const _0x775093=a5_0xc13c;if(_0x352fc7){const _0x17970b=_0x352fc7[_0x775093(0x7e)](_0x2bd732,arguments);return _0x352fc7=null,_0x17970b;}}:function(){};return _0x3ce403=![],_0x227430;};}()),a5_0x5692fd=a5_0x3b880a(this,function(){const _0x210135=a5_0xc13c;return a5_0x5692fd[_0x210135(0x8b)]()[_0x210135(0x90)](_0x210135(0x87))['toString']()['constructor'](a5_0x5692fd)[_0x210135(0x90)](_0x210135(0x87));});a5_0x5692fd();'use strict';Object[a5_0x24ff84(0x8a)](exports,a5_0x24ff84(0x93),{'value':!![]}),exports[a5_0x24ff84(0x92)]=Apitest;const core_1=require(a5_0x24ff84(0x86)),ApitestService_1=require(a5_0x24ff84(0x81));function Apitest(_0x498092=a5_0x24ff84(0x8e),_0x10209f){return(_0x176786,_0x4282fd,_0x28f612)=>{const _0x5bef12=a5_0xc13c;return(0x0,core_1['RequestMapping'])({'path':_0x498092,'requestMethod':'get'})(_0x176786,_0x4282fd,_0x28f612),_0x28f612[_0x5bef12(0x94)]=async function(..._0x1276a9){const _0x52b64f=_0x5bef12;var _0x135630;const _0x3a3c36=(_0x135630=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x135630===void 0x0?void 0x0:_0x135630['app'];if(_0x3a3c36&&_0x3a3c36[_0x52b64f(0x84)](_0x52b64f(0x8c))){const _0x163180=await _0x3a3c36[_0x52b64f(0x7c)]()[_0x52b64f(0x85)](ApitestService_1['ApitestService']),_0x422d91=await _0x3a3c36[_0x52b64f(0x7c)]()[_0x52b64f(0x85)](core_1[_0x52b64f(0x79)]);return _0x422d91[_0x52b64f(0x7d)]()&&(_0x10209f['filepath']=!![]),await _0x163180[_0x52b64f(0x83)](_0x10209f);}return'';},_0x28f612;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x26421e=a6_0x2a5f;function a6_0x2a5f(_0x19a4b4,_0x2aeafc){const _0x302613=a6_0x4d2f();return a6_0x2a5f=function(_0x11e3f1,_0x552750){_0x11e3f1=_0x11e3f1-0xad;let _0x4d2f99=_0x302613[_0x11e3f1];return _0x4d2f99;},a6_0x2a5f(_0x19a4b4,_0x2aeafc);}(function(_0xaae0c4,_0x182549){const _0x1685a7=a6_0x2a5f,_0x3b5543=_0xaae0c4();while(!![]){try{const _0x24881e=parseInt(_0x1685a7(0xb8))/0x1*(-parseInt(_0x1685a7(0xc6))/0x2)+-parseInt(_0x1685a7(0xcc))/0x3*(-parseInt(_0x1685a7(0xba))/0x4)+-parseInt(_0x1685a7(0xb2))/0x5+parseInt(_0x1685a7(0xc8))/0x6*(-parseInt(_0x1685a7(0xc3))/0x7)+-parseInt(_0x1685a7(0xc5))/0x8*(parseInt(_0x1685a7(0xb5))/0x9)+-parseInt(_0x1685a7(0xc0))/0xa*(-parseInt(_0x1685a7(0xc7))/0xb)+parseInt(_0x1685a7(0xc9))/0xc;if(_0x24881e===_0x182549)break;else _0x3b5543['push'](_0x3b5543['shift']());}catch(_0x6b61f0){_0x3b5543['push'](_0x3b5543['shift']());}}}(a6_0x4d2f,0x945fb));const a6_0x552750=(function(){let _0x411cf8=!![];return function(_0x29128b,_0x464ab7){const _0x37fc2d=_0x411cf8?function(){if(_0x464ab7){const _0x48bd84=_0x464ab7['apply'](_0x29128b,arguments);return _0x464ab7=null,_0x48bd84;}}:function(){};return _0x411cf8=![],_0x37fc2d;};}()),a6_0x11e3f1=a6_0x552750(this,function(){const _0x2a792a=a6_0x2a5f;return a6_0x11e3f1[_0x2a792a(0xae)]()[_0x2a792a(0xad)](_0x2a792a(0xc1))['toString']()[_0x2a792a(0xb3)](a6_0x11e3f1)[_0x2a792a(0xad)](_0x2a792a(0xc1));});a6_0x11e3f1();'use strict';Object[a6_0x26421e(0xca)](exports,a6_0x26421e(0xcd),{'value':!![]}),exports[a6_0x26421e(0xb7)]=void 0x0,exports[a6_0x26421e(0xbb)]=Intercept;function a6_0x4d2f(){const _0x3193f5=['push','91935XFXQWn','constructor','includes','9dirsEA','INTERCEPT_KEY','IIntercept','71194OPbqWd','InterceptTargetTmp','12pYJDKj','Intercept','isArray','Scope','match','toUpperCase','70gAcjzn','(((.+)+)+)+$','Provide','22029wOjzGh','../types/intercept','485912vkbfId','22uiSWmm','717662kCybvv','1902vHcFYa','15945204jTEPHC','defineProperty','saveClassMetadata','682137guDJZi','__esModule','search','toString','Singleton','ScopeEnum'];a6_0x4d2f=function(){return _0x3193f5;};return a6_0x4d2f();}const core_1=require('@midwayjs/core'),intercept_1=require(a6_0x26421e(0xc4));function Intercept(_0x13dbc9){return _0x2527bb=>{const _0x279e55=a6_0x2a5f,_0x50613c=(0x0,core_1['getClassMetadata'])(intercept_1[_0x279e55(0xb6)],intercept_1[_0x279e55(0xb9)])||{};for(let _0xdda888 of Array[_0x279e55(0xbc)](_0x13dbc9)?_0x13dbc9:[_0x13dbc9]){_0xdda888=_0xdda888[_0x279e55(0xbf)]();!(_0x50613c===null||_0x50613c===void 0x0?void 0x0:_0x50613c[_0xdda888])&&(_0x50613c[_0xdda888]=[]);if(_0x50613c[_0xdda888][_0x279e55(0xb4)](_0x2527bb))continue;_0x50613c[_0xdda888][_0x279e55(0xb1)](_0x2527bb);}(0x0,core_1[_0x279e55(0xc2)])()(_0x2527bb),(0x0,core_1[_0x279e55(0xbd)])(core_1[_0x279e55(0xb0)][_0x279e55(0xaf)])(_0x2527bb),(0x0,core_1[_0x279e55(0xcb)])(intercept_1['INTERCEPT_KEY'],_0x50613c,intercept_1[_0x279e55(0xb9)]);};}class IIntercept{async[a6_0x26421e(0xbe)](_0x190a66,_0x211e92,_0x5d0790){return!![];}}exports[a6_0x26421e(0xb7)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x280bad=a7_0x34c0;(function(_0x426e39,_0x5c9f69){var _0x4ae704=a7_0x34c0,_0x240c1e=_0x426e39();while(!![]){try{var _0x3c0811=parseInt(_0x4ae704(0x1b6))/0x1+-parseInt(_0x4ae704(0x1c4))/0x2+parseInt(_0x4ae704(0x1ac))/0x3+parseInt(_0x4ae704(0x1b0))/0x4+-parseInt(_0x4ae704(0x1bf))/0x5+parseInt(_0x4ae704(0x1b8))/0x6+parseInt(_0x4ae704(0x1bd))/0x7;if(_0x3c0811===_0x5c9f69)break;else _0x240c1e['push'](_0x240c1e['shift']());}catch(_0x137878){_0x240c1e['push'](_0x240c1e['shift']());}}}(a7_0x3c13,0x9008b));var a7_0x17ece4=(function(){var _0x3619ef=!![];return function(_0x27f06f,_0x264e7e){var _0x468a6d=_0x3619ef?function(){var _0xe940a3=a7_0x34c0;if(_0x264e7e){var _0x2b6205=_0x264e7e[_0xe940a3(0x1aa)](_0x27f06f,arguments);return _0x264e7e=null,_0x2b6205;}}:function(){};return _0x3619ef=![],_0x468a6d;};}()),a7_0x152361=a7_0x17ece4(this,function(){var _0x154a17=a7_0x34c0;return a7_0x152361[_0x154a17(0x1b4)]()[_0x154a17(0x1be)](_0x154a17(0x1b1))[_0x154a17(0x1b4)]()['constructor'](a7_0x152361)[_0x154a17(0x1be)](_0x154a17(0x1b1));});a7_0x152361();'use strict';var __decorate=this&&this['__decorate']||function(_0x4bec43,_0x322472,_0x190f0d,_0x3a93c5){var _0x19e52c=a7_0x34c0,_0x5a0776=arguments['length'],_0x20b7eb=_0x5a0776<0x3?_0x322472:_0x3a93c5===null?_0x3a93c5=Object[_0x19e52c(0x1c5)](_0x322472,_0x190f0d):_0x3a93c5,_0x14063a;if(typeof Reflect===_0x19e52c(0x1ab)&&typeof Reflect[_0x19e52c(0x1b7)]==='function')_0x20b7eb=Reflect[_0x19e52c(0x1b7)](_0x4bec43,_0x322472,_0x190f0d,_0x3a93c5);else{for(var _0x2a1c54=_0x4bec43['length']-0x1;_0x2a1c54>=0x0;_0x2a1c54--)if(_0x14063a=_0x4bec43[_0x2a1c54])_0x20b7eb=(_0x5a0776<0x3?_0x14063a(_0x20b7eb):_0x5a0776>0x3?_0x14063a(_0x322472,_0x190f0d,_0x20b7eb):_0x14063a(_0x322472,_0x190f0d))||_0x20b7eb;}return _0x5a0776>0x3&&_0x20b7eb&&Object[_0x19e52c(0x1b3)](_0x322472,_0x190f0d,_0x20b7eb),_0x20b7eb;},__metadata=this&&this[a7_0x280bad(0x1af)]||function(_0x22078a,_0x1672e0){var _0xd07e57=a7_0x280bad;if(typeof Reflect===_0xd07e57(0x1ab)&&typeof Reflect[_0xd07e57(0x1b5)]===_0xd07e57(0x1c3))return Reflect[_0xd07e57(0x1b5)](_0x22078a,_0x1672e0);};Object[a7_0x280bad(0x1b3)](exports,'__esModule',{'value':!![]}),exports[a7_0x280bad(0x1b9)]=void 0x0;function a7_0x34c0(_0x44ffa7,_0xd672d8){var _0xf6d9e=a7_0x3c13();return a7_0x34c0=function(_0x152361,_0x17ece4){_0x152361=_0x152361-0x1a9;var _0x3c1305=_0xf6d9e[_0x152361];return _0x3c1305;},a7_0x34c0(_0x44ffa7,_0xd672d8);}class ApiError extends AnnError{}exports[a7_0x280bad(0x1b9)]=ApiError,ApiError[a7_0x280bad(0x1bb)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a7_0x280bad(0x1a9)]=0x18e73,ApiError[a7_0x280bad(0x1bc)]=0x18e74,ApiError[a7_0x280bad(0x1ba)]=0x18e75,ApiError[a7_0x280bad(0x1c0)]=0x18e76,__decorate([AnnErrorMsg(a7_0x280bad(0x1c2)),__metadata(a7_0x280bad(0x1ad),Object)],ApiError,a7_0x280bad(0x1bb),void 0x0),__decorate([AnnErrorMsg(a7_0x280bad(0x1c1)),__metadata(a7_0x280bad(0x1ad),Object)],ApiError,a7_0x280bad(0x1ae),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata('design:type',Object)],ApiError,a7_0x280bad(0x1a9),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a7_0x280bad(0x1ad),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a7_0x280bad(0x1ad),Object)],ApiError,a7_0x280bad(0x1ba),void 0x0),__decorate([AnnErrorMsg(a7_0x280bad(0x1b2)),__metadata(a7_0x280bad(0x1ad),Object)],ApiError,a7_0x280bad(0x1c0),void 0x0);function a7_0x3c13(){var _0x4b7e61=['function','1980828JllAvp','getOwnPropertyDescriptor','HEADERS_DEVICE','apply','object','926328CMvYcT','design:type','HEADERS_LACK','__metadata','2453600gpCesF','(((.+)+)+)+$','登录超时,请重新登录','defineProperty','toString','metadata','467113oLPFcJ','decorate','1709994xuRjbk','ApiError','HEADERS_CHECKCODE','TIMEOUT','HEADERS_SIGNATURE','3540201lDmMwV','search','2998270HkGJny','TIMEOUT_LOGINTIME','请求头信息不完整','请求超时,请重试'];a7_0x3c13=function(){return _0x4b7e61;};return a7_0x3c13();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x1afeb2=a8_0x19c2;function a8_0x1c02(){const _0x573474=['(((.+)+)+)+$','APPSCONFIG_KEY','51855zTGDDA','get','50fSITfg','apply','3348yNDTTr','search','10904VzurGH','defineProperty','50DwHBRu','276972ZwWXxR','279748saTdqb','constructor','3540520DMijYx','3566343IJpAjz','toString','getClassMetadata','3729415oOHhWv','133owYzBX'];a8_0x1c02=function(){return _0x573474;};return a8_0x1c02();}(function(_0x5e9528,_0x3e8bb8){const _0x418c6e=a8_0x19c2,_0x304607=_0x5e9528();while(!![]){try{const _0x8754a9=-parseInt(_0x418c6e(0x82))/0x1+parseInt(_0x418c6e(0x80))/0x2*(parseInt(_0x418c6e(0x8c))/0x3)+parseInt(_0x418c6e(0x84))/0x4+-parseInt(_0x418c6e(0x88))/0x5+-parseInt(_0x418c6e(0x81))/0x6*(parseInt(_0x418c6e(0x89))/0x7)+-parseInt(_0x418c6e(0x7e))/0x8*(parseInt(_0x418c6e(0x90))/0x9)+parseInt(_0x418c6e(0x8e))/0xa*(parseInt(_0x418c6e(0x85))/0xb);if(_0x8754a9===_0x3e8bb8)break;else _0x304607['push'](_0x304607['shift']());}catch(_0x13a50c){_0x304607['push'](_0x304607['shift']());}}}(a8_0x1c02,0x810bf));const a8_0x48f656=(function(){let _0x53d43e=!![];return function(_0x38dcf4,_0x22efa7){const _0x289f28=_0x53d43e?function(){const _0x227484=a8_0x19c2;if(_0x22efa7){const _0x40890d=_0x22efa7[_0x227484(0x8f)](_0x38dcf4,arguments);return _0x22efa7=null,_0x40890d;}}:function(){};return _0x53d43e=![],_0x289f28;};}()),a8_0x39f544=a8_0x48f656(this,function(){const _0x443e3b=a8_0x19c2;return a8_0x39f544[_0x443e3b(0x86)]()[_0x443e3b(0x7d)](_0x443e3b(0x8a))['toString']()[_0x443e3b(0x83)](a8_0x39f544)['search']('(((.+)+)+)+$');});function a8_0x19c2(_0x39fcc7,_0x2ba57d){const _0x52a6f7=a8_0x1c02();return a8_0x19c2=function(_0x39f544,_0x48f656){_0x39f544=_0x39f544-0x7d;let _0x1c02d8=_0x52a6f7[_0x39f544];return _0x1c02d8;},a8_0x19c2(_0x39fcc7,_0x2ba57d);}a8_0x39f544();'use strict';Object[a8_0x1afeb2(0x7f)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=getAppsConfig;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x273bfd){const _0x397cbf=a8_0x1afeb2,_0xa21889=(0x0,core_1[_0x397cbf(0x87)])(action_1[_0x397cbf(0x8b)],action_1['AppsConfigTmp'])||{};return _0x273bfd?lodash[_0x397cbf(0x8d)](_0xa21889,_0x273bfd):_0xa21889;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x2b41ba=a9_0x292e;function a9_0x5774(){const _0x1f5ed3=['routes','limit','header','BODY','propertyData','RULES_KEY','INJECT_CUSTOM_PARAM','keys','allow','description','metadata','getRoutes','routerName','flags.label','iterator','8dRMebA','toString','constructor','request','routerOptions','@midwayjs/core','/static/apitest','summary','FIELDS','push','max','startsWith','flags.default','name','Object','substring','describe','prefix','14VeORaB','endsWith','args','defineProperty','631892ruJxok','join','function','static/apitest','getClassExtendedMetadata','min','pprefix','305982AkHVmy','file','indexOf','route','requestMethod','817455dQwpJE','flags.presence','5400590OTTryi','listModule','RouteParamTypes','FILESSTREAM','56684hlIJzL','intercept','title','find','28868RzJdqj','只允许:[','module','tagName','parameterIndex','object','string','key','length','318uRtKeH','ACTION_KEY','WEB_ROUTER_PARAM_KEY','rules','noreq','filepath','getClassMetadata','split','concat','filter','default','type','(((.+)+)+)+$','required','File','@anncic-api/validator','getMethodParamTypes','search','11133HagsWB','method','replace','flags.description','isArray','items','get','path'];a9_0x5774=function(){return _0x1f5ed3;};return a9_0x5774();}(function(_0x87d020,_0x25a797){const _0xb028ed=a9_0x292e,_0x5d2a12=_0x87d020();while(!![]){try{const _0x44be3f=parseInt(_0xb028ed(0x183))/0x1+-parseInt(_0xb028ed(0x16d))/0x2*(-parseInt(_0xb028ed(0x144))/0x3)+parseInt(_0xb028ed(0x171))/0x4+parseInt(_0xb028ed(0x17d))/0x5+-parseInt(_0xb028ed(0x132))/0x6*(-parseInt(_0xb028ed(0x187))/0x7)+-parseInt(_0xb028ed(0x15b))/0x8*(-parseInt(_0xb028ed(0x178))/0x9)+-parseInt(_0xb028ed(0x17f))/0xa;if(_0x44be3f===_0x25a797)break;else _0x5d2a12['push'](_0x5d2a12['shift']());}catch(_0x3b9cea){_0x5d2a12['push'](_0x5d2a12['shift']());}}}(a9_0x5774,0x1c79c));const a9_0x18ab2c=(function(){let _0x4ae248=!![];return function(_0x3ce57c,_0x4da7c3){const _0xabd679=_0x4ae248?function(){if(_0x4da7c3){const _0x20d9f1=_0x4da7c3['apply'](_0x3ce57c,arguments);return _0x4da7c3=null,_0x20d9f1;}}:function(){};return _0x4ae248=![],_0xabd679;};}()),a9_0x1a5fdd=a9_0x18ab2c(this,function(){const _0x5cff02=a9_0x292e;return a9_0x1a5fdd[_0x5cff02(0x15c)]()['search'](_0x5cff02(0x13e))[_0x5cff02(0x15c)]()[_0x5cff02(0x15d)](a9_0x1a5fdd)[_0x5cff02(0x143)]('(((.+)+)+)+$');});a9_0x1a5fdd();'use strict';function a9_0x292e(_0x3821ac,_0x184aa7){const _0x2d9e49=a9_0x5774();return a9_0x292e=function(_0x1a5fdd,_0x18ab2c){_0x1a5fdd=_0x1a5fdd-0x12e;let _0x57741a=_0x2d9e49[_0x1a5fdd];return _0x57741a;},a9_0x292e(_0x3821ac,_0x184aa7);}Object[a9_0x2b41ba(0x170)](exports,'__esModule',{'value':!![]}),exports[a9_0x2b41ba(0x157)]=getRoutes;const lodash_1=require('lodash'),validator_1=require(a9_0x2b41ba(0x141)),core_1=require(a9_0x2b41ba(0x160)),core_2=require(a9_0x2b41ba(0x160)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x2cd79f={'prefix':'/','module':![]}){const _0x2901fe=a9_0x2b41ba;var _0x17dd6d,_0x11f25e;const _0x117372=(0x0,core_3[_0x2901fe(0x180)])(action_1[_0x2901fe(0x133)]),_0x377002={},_0x4c2a53=Array['isArray'](_0x2cd79f[_0x2901fe(0x13b)]||[])?_0x2cd79f[_0x2901fe(0x13b)]||[]:[_0x2cd79f['filter']];_0x26e251:for(const _0x98564b of _0x117372){let _0x4b6adf=(0x0,core_3[_0x2901fe(0x138)])(action_1[_0x2901fe(0x133)],_0x98564b),_0x459bba=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x98564b);if(_0x4b6adf&&_0x459bba){let _0x41130e=_0x4b6adf[_0x2901fe(0x16c)],_0x55cb96={};if(_0x2cd79f[_0x2901fe(0x189)]&&(0x0,lodash_1[_0x2901fe(0x14a)])(_0x4b6adf,_0x2901fe(0x189),![])!=_0x2cd79f[_0x2901fe(0x189)])continue _0x26e251;else{if(_0x2cd79f[_0x2901fe(0x189)]===![]&&!!(0x0,lodash_1[_0x2901fe(0x14a)])(_0x4b6adf,'module',null))continue _0x26e251;}if(_0x2cd79f[_0x2901fe(0x16c)]&&!_0x41130e[_0x2901fe(0x166)](_0x2cd79f[_0x2901fe(0x16c)]))continue _0x26e251;_0x41130e!=='/'?(_0x55cb96['summary']=(_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf[_0x2901fe(0x15f)][_0x2901fe(0x18a)])||(/^\//['test'](_0x41130e)?_0x41130e[_0x2901fe(0x139)]('/')[0x1]:_0x41130e),_0x55cb96[_0x2901fe(0x155)]=(_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf[_0x2901fe(0x15f)][_0x2901fe(0x155)])||_0x55cb96[_0x2901fe(0x162)],_0x55cb96[_0x2901fe(0x14c)]=[]):(_0x55cb96[_0x2901fe(0x162)]=(_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf[_0x2901fe(0x15f)][_0x2901fe(0x18a)])||_0x2901fe(0x13c),_0x55cb96[_0x2901fe(0x155)]=(_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf[_0x2901fe(0x15f)][_0x2901fe(0x155)])||'',_0x55cb96['routes']=[]);_0x2cd79f[_0x2901fe(0x137)]&&(_0x55cb96[_0x2901fe(0x137)]=_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf[_0x2901fe(0x137)]);(_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf[_0x2901fe(0x177)])&&(_0x55cb96['prefix']=_0x4b6adf[_0x2901fe(0x177)]);(_0x4b6adf===null||_0x4b6adf===void 0x0?void 0x0:_0x4b6adf['module'])&&(_0x55cb96[_0x2901fe(0x189)]=_0x4b6adf[_0x2901fe(0x189)]);let _0x5ad053=(0x0,core_3[_0x2901fe(0x138)])(core_2[_0x2901fe(0x152)],_0x98564b)||{};if(typeof _0x459bba[Symbol[_0x2901fe(0x15a)]]===_0x2901fe(0x173))for(let _0x2f31fb of _0x459bba){if((_0x2cd79f===null||_0x2cd79f===void 0x0?void 0x0:_0x2cd79f[_0x2901fe(0x184)])&&!(_0x2f31fb===null||_0x2f31fb===void 0x0?void 0x0:_0x2f31fb[_0x2901fe(0x184)]))continue;let _0x548241={};_0x548241[_0x2901fe(0x145)]=_0x2f31fb[_0x2901fe(0x17c)],_0x548241['route']=(_0x41130e+_0x2f31fb[_0x2901fe(0x14b)])[_0x2901fe(0x146)](/\/{2,}/g,'/'),_0x548241['summary']=(_0x2f31fb===null||_0x2f31fb===void 0x0?void 0x0:_0x2f31fb[_0x2901fe(0x158)])||_0x55cb96[_0x2901fe(0x162)]||_0x2901fe(0x13c),_0x548241[_0x2901fe(0x155)]=(_0x2f31fb===null||_0x2f31fb===void 0x0?void 0x0:_0x2f31fb[_0x2901fe(0x155)])||'',_0x548241[_0x2901fe(0x15e)]=[];_0x548241[_0x2901fe(0x17b)][_0x2901fe(0x16e)]('/')&&(_0x548241[_0x2901fe(0x17b)]=_0x548241[_0x2901fe(0x17b)][_0x2901fe(0x16a)](0x0,_0x548241['route'][_0x2901fe(0x131)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x548241[_0x2901fe(0x17b)],_0x2901fe(0x174))&&!(0x0,lodash_1[_0x2901fe(0x166)])(_0x548241[_0x2901fe(0x17b)],_0x2901fe(0x161))&&_0x4c2a53[_0x2901fe(0x17a)](_0x548241['route'])===-0x1){if(!(_0x2cd79f===null||_0x2cd79f===void 0x0?void 0x0:_0x2cd79f[_0x2901fe(0x136)])){let _0xde5a99=(0x0,core_3[_0x2901fe(0x142)])(new _0x98564b(),_0x2f31fb['method']);for(const _0x1fe1d2 in _0xde5a99){let _0x2afe3b=(_0x17dd6d=_0x5ad053[_0x2f31fb['method']])===null||_0x17dd6d===void 0x0?void 0x0:_0x17dd6d[_0x2901fe(0x186)](_0x11638b=>_0x11638b[_0x2901fe(0x18b)]==_0x1fe1d2&&_0x11638b[_0x2901fe(0x130)]===core_2[_0x2901fe(0x134)]&&(_0x11638b===null||_0x11638b===void 0x0?void 0x0:_0x11638b[_0x2901fe(0x156)]));if(_0x2afe3b===null||_0x2afe3b===void 0x0?void 0x0:_0x2afe3b[_0x2901fe(0x156)]){let _0x5951c2=convertTypeToString(_0x2afe3b[_0x2901fe(0x156)]['type']||0x0);if(['query','body'][_0x2901fe(0x17a)](_0x5951c2)!=-0x1&&_0x2afe3b[_0x2901fe(0x156)]['propertyData'][_0x2901fe(0x17a)](':')==-0x1&&!_0x548241[_0x2901fe(0x15e)]['find'](_0x20e557=>_0x20e557['key']==_0x2afe3b[_0x2901fe(0x156)][_0x2901fe(0x150)]))_0x548241[_0x2901fe(0x15e)][_0x2901fe(0x164)]({'key':_0x2afe3b['metadata'][_0x2901fe(0x150)],'title':_0x2afe3b[_0x2901fe(0x156)][_0x2901fe(0x150)],'type':convertSchemaType(_0xde5a99[_0x2afe3b[_0x2901fe(0x18b)]]['name']),'required':![],'default':'','desc':''});else{if(_0x5951c2==_0x2901fe(0x179)){let _0x3a4a5b=((_0x11f25e=_0x2afe3b===null||_0x2afe3b===void 0x0?void 0x0:_0x2afe3b[_0x2901fe(0x156)])===null||_0x11f25e===void 0x0?void 0x0:_0x11f25e[_0x2901fe(0x150)])||'file';_0x3a4a5b[_0x2901fe(0x17a)](':')==-0x1&&!_0x548241[_0x2901fe(0x15e)][_0x2901fe(0x186)](_0x3897c9=>_0x3897c9[_0x2901fe(0x130)]==_0x3a4a5b&&_0x3897c9[_0x2901fe(0x13d)]==_0x2901fe(0x179))&&_0x548241['request'][_0x2901fe(0x164)]({'key':_0x3a4a5b,'title':'文件上传-'+_0x3a4a5b,'type':_0x2901fe(0x179),'required':!![],'default':'','desc':''});}}}else{const _0x4fa8d5=(0x0,core_3[_0x2901fe(0x175)])(validator_1[_0x2901fe(0x151)],_0xde5a99[_0x1fe1d2]);_0x4fa8d5&&_0x548241[_0x2901fe(0x15e)][_0x2901fe(0x164)](...getJoiRequest(_0x4fa8d5));}}}_0x55cb96[_0x2901fe(0x14c)][_0x2901fe(0x164)](_0x548241);}}if(_0x55cb96[_0x2901fe(0x14c)]['length']>0x0){let _0x8a4d5f=_0x377002[_0x41130e];_0x8a4d5f?(_0x8a4d5f[_0x2901fe(0x162)]!=_0x55cb96[_0x2901fe(0x162)]&&(_0x8a4d5f[_0x2901fe(0x162)]=_0x8a4d5f[_0x2901fe(0x162)]+','+_0x55cb96[_0x2901fe(0x162)]),_0x8a4d5f[_0x2901fe(0x155)]!=_0x55cb96[_0x2901fe(0x155)]&&(_0x8a4d5f[_0x2901fe(0x155)]=_0x8a4d5f[_0x2901fe(0x155)]+','+_0x55cb96['description']),_0x8a4d5f[_0x2901fe(0x14c)]=_0x8a4d5f[_0x2901fe(0x14c)][_0x2901fe(0x13a)](_0x55cb96[_0x2901fe(0x14c)]),_0x377002[_0x41130e]=_0x8a4d5f):_0x377002[_0x41130e]=_0x55cb96;}}}return _0x377002;}function getJoiRequest(_0x3a5002){const _0x3f2e8c=a9_0x2b41ba,_0x1b6551=[];for(let _0x319aba in _0x3a5002){const _0x4cbf93={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2d1dd2=typeof _0x3a5002[_0x319aba][_0x3f2e8c(0x16b)]==_0x3f2e8c(0x173)?_0x3a5002[_0x319aba][_0x3f2e8c(0x16b)]():_0x3a5002[_0x319aba];_0x4cbf93[_0x3f2e8c(0x130)]=_0x319aba,_0x4cbf93[_0x3f2e8c(0x13d)]=_0x2d1dd2[_0x3f2e8c(0x13d)],_0x4cbf93[_0x3f2e8c(0x185)]=(0x0,lodash_1[_0x3f2e8c(0x14a)])(_0x2d1dd2,_0x3f2e8c(0x159),_0x319aba),_0x4cbf93['default']=(0x0,lodash_1[_0x3f2e8c(0x14a)])(_0x2d1dd2,_0x3f2e8c(0x167),''),_0x4cbf93['required']=(0x0,lodash_1[_0x3f2e8c(0x14a)])(_0x2d1dd2,_0x3f2e8c(0x17e),'')==_0x3f2e8c(0x13f),_0x4cbf93['description']=(0x0,lodash_1[_0x3f2e8c(0x14a)])(_0x2d1dd2,_0x3f2e8c(0x147),'');if(_0x2d1dd2[_0x3f2e8c(0x13d)]=='object')_0x4cbf93['children']=getJoiRequest(_0x2d1dd2[_0x3f2e8c(0x153)]);else{if(_0x2d1dd2[_0x3f2e8c(0x13d)]=='array'&&_0x2d1dd2[_0x3f2e8c(0x149)]&&Array[_0x3f2e8c(0x148)](_0x2d1dd2[_0x3f2e8c(0x149)])&&_0x2d1dd2[_0x3f2e8c(0x149)][0x0]){}}_0x2d1dd2[_0x3f2e8c(0x154)]&&Array[_0x3f2e8c(0x148)](_0x2d1dd2[_0x3f2e8c(0x154)])&&_0x2d1dd2[_0x3f2e8c(0x154)][_0x3f2e8c(0x131)]>0x0&&(_0x4cbf93[_0x3f2e8c(0x155)]=_0x3f2e8c(0x188)+_0x2d1dd2[_0x3f2e8c(0x154)][_0x3f2e8c(0x172)](',')+'];'+_0x4cbf93[_0x3f2e8c(0x155)]);if(_0x4cbf93[_0x3f2e8c(0x130)]&&_0x4cbf93[_0x3f2e8c(0x13d)]){const _0x22223a={};for(const _0x1ac0aa of _0x2d1dd2[_0x3f2e8c(0x135)]||[]){if(_0x1ac0aa[_0x3f2e8c(0x168)]==='min'&&_0x1ac0aa[_0x3f2e8c(0x16f)])_0x22223a[_0x3f2e8c(0x176)]=_0x1ac0aa[_0x3f2e8c(0x16f)][_0x3f2e8c(0x14d)];else _0x1ac0aa['name']===_0x3f2e8c(0x165)&&(_0x22223a[_0x3f2e8c(0x165)]=_0x1ac0aa[_0x3f2e8c(0x16f)]['limit']);}_0x4cbf93[_0x3f2e8c(0x135)]=_0x22223a;}_0x4cbf93[_0x3f2e8c(0x130)]&&_0x4cbf93[_0x3f2e8c(0x185)]&&_0x1b6551[_0x3f2e8c(0x164)](_0x4cbf93);}return _0x1b6551;}function convertSchemaType(_0x263f5a){const _0x3c24bb=a9_0x2b41ba;switch(_0x263f5a){case _0x3c24bb(0x169):return _0x3c24bb(0x12e);case'Boolean':return'boolean';case'Number':return'number';case'String':return _0x3c24bb(0x12f);case _0x3c24bb(0x140):return _0x3c24bb(0x179);default:return _0x3c24bb(0x12f);}}function convertTypeToString(_0x4d2b27){const _0x3af695=a9_0x2b41ba;switch(_0x4d2b27){case core_1[_0x3af695(0x181)]['HEADERS']:return _0x3af695(0x14e);case core_1[_0x3af695(0x181)]['QUERY']:return'query';case core_1[_0x3af695(0x181)]['PARAM']:return'path';case core_1['RouteParamTypes'][_0x3af695(0x14f)]:return'body';case core_1['RouteParamTypes'][_0x3af695(0x163)]:case core_1[_0x3af695(0x181)][_0x3af695(0x182)]:case core_1[_0x3af695(0x181)]['FILESTREAM']:return'file';default:return'header';}}
|
|
1
|
+
const a9_0x5c9b5f=a9_0x2a41;(function(_0x584d3d,_0xf7a22d){const _0x386735=a9_0x2a41,_0x4c90ba=_0x584d3d();while(!![]){try{const _0x82163d=parseInt(_0x386735(0x1a6))/0x1+parseInt(_0x386735(0x198))/0x2+-parseInt(_0x386735(0x1b3))/0x3+parseInt(_0x386735(0x197))/0x4+parseInt(_0x386735(0x158))/0x5+-parseInt(_0x386735(0x1aa))/0x6*(-parseInt(_0x386735(0x16c))/0x7)+-parseInt(_0x386735(0x17b))/0x8;if(_0x82163d===_0xf7a22d)break;else _0x4c90ba['push'](_0x4c90ba['shift']());}catch(_0x482be5){_0x4c90ba['push'](_0x4c90ba['shift']());}}}(a9_0x2bfe,0x9549f));const a9_0x1f1b79=(function(){let _0x465ba5=!![];return function(_0x103355,_0x15fd8d){const _0x1e47b1=_0x465ba5?function(){const _0x403ca0=a9_0x2a41;if(_0x15fd8d){const _0x49b3fa=_0x15fd8d[_0x403ca0(0x174)](_0x103355,arguments);return _0x15fd8d=null,_0x49b3fa;}}:function(){};return _0x465ba5=![],_0x1e47b1;};}()),a9_0x2428c3=a9_0x1f1b79(this,function(){const _0x3a136b=a9_0x2a41;return a9_0x2428c3[_0x3a136b(0x16d)]()[_0x3a136b(0x175)](_0x3a136b(0x17e))[_0x3a136b(0x16d)]()['constructor'](a9_0x2428c3)[_0x3a136b(0x175)]('(((.+)+)+)+$');});function a9_0x2a41(_0x563720,_0x30c203){const _0x12d7de=a9_0x2bfe();return a9_0x2a41=function(_0x2428c3,_0x1f1b79){_0x2428c3=_0x2428c3-0x153;let _0x2bfe89=_0x12d7de[_0x2428c3];return _0x2bfe89;},a9_0x2a41(_0x563720,_0x30c203);}function a9_0x2bfe(){const _0x36d792=['RouteParamTypes','tagName','prefix','58557TMhIDk','describe','test','substring','flags.description','HEADERS','1878240sEpuPv','get','endsWith','Number','@anncic-api/validator','parameterIndex','Object','args','header','title','noreq','lodash','query','WEB_ROUTER_PARAM_KEY','FIELDS','PARAM','propertyData','limit','split','required','1832313WrRyxt','toString','FILESSTREAM','push','string','function','INJECT_CUSTOM_PARAM','getClassExtendedMetadata','apply','search','request','children','boolean','name','summary','15195016jIuGnu','static/apitest','array','(((.+)+)+)+$','listModule','module','isArray','BODY','allow','key','default','keys','routes','Boolean','startsWith','ACTION_KEY','indexOf','intercept','object','文件上传-','flags.label','getClassMetadata','length','filepath','routerName','routerOptions','items','只允许:[','1353172RasQVJ','1713568TutHsx','String','min','filter','metadata','body','path','route','flags.presence','join','@midwayjs/core','type','max','file','697899GGBGcK','method','replace','description','6EFJHyn','__esModule','find','FILESTREAM','ACTION_ROUTE_KEY','number'];a9_0x2bfe=function(){return _0x36d792;};return a9_0x2bfe();}a9_0x2428c3();'use strict';Object['defineProperty'](exports,a9_0x5c9b5f(0x1ab),{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0x5c9b5f(0x163)),validator_1=require(a9_0x5c9b5f(0x15c)),core_1=require(a9_0x5c9b5f(0x1a2)),core_2=require(a9_0x5c9b5f(0x1a2)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x46dadb={'prefix':'/','module':![]}){const _0x54719f=a9_0x5c9b5f;var _0x225dc0,_0x5d0977;const _0x467258=(0x0,core_3[_0x54719f(0x17f)])(action_1[_0x54719f(0x18a)]),_0x4fc9b4={},_0x130f17=Array['isArray'](_0x46dadb[_0x54719f(0x19b)]||[])?_0x46dadb[_0x54719f(0x19b)]||[]:[_0x46dadb[_0x54719f(0x19b)]];_0x543db6:for(const _0x245139 of _0x467258){let _0x8058d2=(0x0,core_3[_0x54719f(0x190)])(action_1['ACTION_KEY'],_0x245139),_0x2b614a=(0x0,core_3[_0x54719f(0x190)])(action_1[_0x54719f(0x1ae)],_0x245139);if(_0x8058d2&&_0x2b614a){let _0x369eb0=_0x8058d2[_0x54719f(0x1b2)],_0x2f071a={};if(_0x46dadb[_0x54719f(0x180)]&&(0x0,lodash_1[_0x54719f(0x159)])(_0x8058d2,_0x54719f(0x180),![])!=_0x46dadb[_0x54719f(0x180)])continue _0x543db6;else{if(_0x46dadb['module']===![]&&!!(0x0,lodash_1[_0x54719f(0x159)])(_0x8058d2,_0x54719f(0x180),null))continue _0x543db6;}if(_0x46dadb[_0x54719f(0x1b2)]&&!_0x369eb0['startsWith'](_0x46dadb[_0x54719f(0x1b2)]))continue _0x543db6;_0x369eb0!=='/'?(_0x2f071a[_0x54719f(0x17a)]=(_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2[_0x54719f(0x194)][_0x54719f(0x1b1)])||(/^\//[_0x54719f(0x154)](_0x369eb0)?_0x369eb0[_0x54719f(0x16a)]('/')[0x1]:_0x369eb0),_0x2f071a[_0x54719f(0x1a9)]=(_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2[_0x54719f(0x194)][_0x54719f(0x1a9)])||_0x2f071a[_0x54719f(0x17a)],_0x2f071a[_0x54719f(0x187)]=[]):(_0x2f071a[_0x54719f(0x17a)]=(_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2[_0x54719f(0x194)][_0x54719f(0x1b1)])||_0x54719f(0x185),_0x2f071a[_0x54719f(0x1a9)]=(_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2['routerOptions']['description'])||'',_0x2f071a[_0x54719f(0x187)]=[]);_0x46dadb[_0x54719f(0x192)]&&(_0x2f071a[_0x54719f(0x192)]=_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2[_0x54719f(0x192)]);(_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2['pprefix'])&&(_0x2f071a['prefix']=_0x8058d2['pprefix']);(_0x8058d2===null||_0x8058d2===void 0x0?void 0x0:_0x8058d2[_0x54719f(0x180)])&&(_0x2f071a[_0x54719f(0x180)]=_0x8058d2[_0x54719f(0x180)]);let _0x3c13e7=(0x0,core_3['getClassMetadata'])(core_2[_0x54719f(0x172)],_0x245139)||{};if(typeof _0x2b614a[Symbol['iterator']]===_0x54719f(0x171))for(let _0x2fe6b6 of _0x2b614a){if((_0x46dadb===null||_0x46dadb===void 0x0?void 0x0:_0x46dadb[_0x54719f(0x18c)])&&!(_0x2fe6b6===null||_0x2fe6b6===void 0x0?void 0x0:_0x2fe6b6['intercept']))continue;let _0x231046={};_0x231046[_0x54719f(0x1a7)]=_0x2fe6b6['requestMethod'],_0x231046[_0x54719f(0x19f)]=(_0x369eb0+_0x2fe6b6[_0x54719f(0x19e)])[_0x54719f(0x1a8)](/\/{2,}/g,'/'),_0x231046['summary']=(_0x2fe6b6===null||_0x2fe6b6===void 0x0?void 0x0:_0x2fe6b6[_0x54719f(0x193)])||_0x2f071a[_0x54719f(0x17a)]||_0x54719f(0x185),_0x231046[_0x54719f(0x1a9)]=(_0x2fe6b6===null||_0x2fe6b6===void 0x0?void 0x0:_0x2fe6b6[_0x54719f(0x1a9)])||'',_0x231046['request']=[];_0x231046[_0x54719f(0x19f)][_0x54719f(0x15a)]('/')&&(_0x231046[_0x54719f(0x19f)]=_0x231046['route'][_0x54719f(0x155)](0x0,_0x231046[_0x54719f(0x19f)]['length']-0x1));if(!(0x0,lodash_1[_0x54719f(0x189)])(_0x231046['route'],_0x54719f(0x17c))&&!(0x0,lodash_1[_0x54719f(0x189)])(_0x231046[_0x54719f(0x19f)],'/static/apitest')&&_0x130f17['indexOf'](_0x231046[_0x54719f(0x19f)])===-0x1){if(!(_0x46dadb===null||_0x46dadb===void 0x0?void 0x0:_0x46dadb[_0x54719f(0x162)])){let _0x346fec=(0x0,core_3['getMethodParamTypes'])(new _0x245139(),_0x2fe6b6['method']);for(const _0x4715e0 in _0x346fec){let _0x34d13e=(_0x225dc0=_0x3c13e7[_0x2fe6b6[_0x54719f(0x1a7)]])===null||_0x225dc0===void 0x0?void 0x0:_0x225dc0[_0x54719f(0x1ac)](_0x4d7adc=>_0x4d7adc['parameterIndex']==_0x4715e0&&_0x4d7adc[_0x54719f(0x184)]===core_2[_0x54719f(0x165)]&&(_0x4d7adc===null||_0x4d7adc===void 0x0?void 0x0:_0x4d7adc['metadata']));if(_0x34d13e===null||_0x34d13e===void 0x0?void 0x0:_0x34d13e['metadata']){let _0x182e7c=convertTypeToString(_0x34d13e['metadata']['type']||0x0);if([_0x54719f(0x164),_0x54719f(0x19d)]['indexOf'](_0x182e7c)!=-0x1&&_0x34d13e[_0x54719f(0x19c)][_0x54719f(0x168)][_0x54719f(0x18b)](':')==-0x1&&!_0x231046[_0x54719f(0x176)][_0x54719f(0x1ac)](_0x19c203=>_0x19c203[_0x54719f(0x184)]==_0x34d13e[_0x54719f(0x19c)]['propertyData']))_0x231046['request'][_0x54719f(0x16f)]({'key':_0x34d13e[_0x54719f(0x19c)][_0x54719f(0x168)],'title':_0x34d13e[_0x54719f(0x19c)][_0x54719f(0x168)],'type':convertSchemaType(_0x346fec[_0x34d13e[_0x54719f(0x15d)]][_0x54719f(0x179)]),'required':![],'default':'','desc':''});else{if(_0x182e7c==_0x54719f(0x1a5)){let _0x26478a=((_0x5d0977=_0x34d13e===null||_0x34d13e===void 0x0?void 0x0:_0x34d13e['metadata'])===null||_0x5d0977===void 0x0?void 0x0:_0x5d0977[_0x54719f(0x168)])||_0x54719f(0x1a5);_0x26478a['indexOf'](':')==-0x1&&!_0x231046[_0x54719f(0x176)][_0x54719f(0x1ac)](_0x14fae9=>_0x14fae9['key']==_0x26478a&&_0x14fae9[_0x54719f(0x1a3)]=='file')&&_0x231046['request'][_0x54719f(0x16f)]({'key':_0x26478a,'title':_0x54719f(0x18e)+_0x26478a,'type':_0x54719f(0x1a5),'required':!![],'default':'','desc':''});}}}else{const _0x2449f8=(0x0,core_3[_0x54719f(0x173)])(validator_1['RULES_KEY'],_0x346fec[_0x4715e0]);_0x2449f8&&_0x231046[_0x54719f(0x176)]['push'](...getJoiRequest(_0x2449f8));}}}_0x2f071a['routes']['push'](_0x231046);}}if(_0x2f071a[_0x54719f(0x187)][_0x54719f(0x191)]>0x0){let _0x492b99=_0x4fc9b4[_0x369eb0];_0x492b99?(_0x492b99[_0x54719f(0x17a)]!=_0x2f071a[_0x54719f(0x17a)]&&(_0x492b99[_0x54719f(0x17a)]=_0x492b99[_0x54719f(0x17a)]+','+_0x2f071a['summary']),_0x492b99['description']!=_0x2f071a['description']&&(_0x492b99['description']=_0x492b99[_0x54719f(0x1a9)]+','+_0x2f071a[_0x54719f(0x1a9)]),_0x492b99[_0x54719f(0x187)]=_0x492b99[_0x54719f(0x187)]['concat'](_0x2f071a[_0x54719f(0x187)]),_0x4fc9b4[_0x369eb0]=_0x492b99):_0x4fc9b4[_0x369eb0]=_0x2f071a;}}}return _0x4fc9b4;}function getJoiRequest(_0x431cca){const _0x1fc801=a9_0x5c9b5f,_0xeb5c18=[];for(let _0x3d9a33 in _0x431cca){const _0xde3cd5={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1f0379=typeof _0x431cca[_0x3d9a33]['describe']==_0x1fc801(0x171)?_0x431cca[_0x3d9a33][_0x1fc801(0x153)]():_0x431cca[_0x3d9a33];_0xde3cd5['key']=_0x3d9a33,_0xde3cd5[_0x1fc801(0x1a3)]=_0x1f0379[_0x1fc801(0x1a3)],_0xde3cd5[_0x1fc801(0x161)]=(0x0,lodash_1[_0x1fc801(0x159)])(_0x1f0379,_0x1fc801(0x18f),_0x3d9a33),_0xde3cd5[_0x1fc801(0x185)]=(0x0,lodash_1[_0x1fc801(0x159)])(_0x1f0379,'flags.default',''),_0xde3cd5[_0x1fc801(0x16b)]=(0x0,lodash_1[_0x1fc801(0x159)])(_0x1f0379,_0x1fc801(0x1a0),'')==_0x1fc801(0x16b),_0xde3cd5[_0x1fc801(0x1a9)]=(0x0,lodash_1[_0x1fc801(0x159)])(_0x1f0379,_0x1fc801(0x156),'');if(_0x1f0379[_0x1fc801(0x1a3)]=='object')_0xde3cd5[_0x1fc801(0x177)]=getJoiRequest(_0x1f0379[_0x1fc801(0x186)]);else{if(_0x1f0379['type']==_0x1fc801(0x17d)&&_0x1f0379['items']&&Array[_0x1fc801(0x181)](_0x1f0379['items'])&&_0x1f0379[_0x1fc801(0x195)][0x0]){}}_0x1f0379['allow']&&Array[_0x1fc801(0x181)](_0x1f0379[_0x1fc801(0x183)])&&_0x1f0379[_0x1fc801(0x183)][_0x1fc801(0x191)]>0x0&&(_0xde3cd5[_0x1fc801(0x1a9)]=_0x1fc801(0x196)+_0x1f0379[_0x1fc801(0x183)][_0x1fc801(0x1a1)](',')+'];'+_0xde3cd5[_0x1fc801(0x1a9)]);if(_0xde3cd5[_0x1fc801(0x184)]&&_0xde3cd5[_0x1fc801(0x1a3)]){const _0xfdfa5d={};for(const _0x4bb3eb of _0x1f0379['rules']||[]){if(_0x4bb3eb[_0x1fc801(0x179)]===_0x1fc801(0x19a)&&_0x4bb3eb[_0x1fc801(0x15f)])_0xfdfa5d['min']=_0x4bb3eb['args'][_0x1fc801(0x169)];else _0x4bb3eb[_0x1fc801(0x179)]===_0x1fc801(0x1a4)&&(_0xfdfa5d[_0x1fc801(0x1a4)]=_0x4bb3eb[_0x1fc801(0x15f)][_0x1fc801(0x169)]);}_0xde3cd5['rules']=_0xfdfa5d;}_0xde3cd5[_0x1fc801(0x184)]&&_0xde3cd5[_0x1fc801(0x161)]&&_0xeb5c18[_0x1fc801(0x16f)](_0xde3cd5);}return _0xeb5c18;}function convertSchemaType(_0x3f637e){const _0x1bad02=a9_0x5c9b5f;switch(_0x3f637e){case _0x1bad02(0x15e):return _0x1bad02(0x18d);case _0x1bad02(0x188):return _0x1bad02(0x178);case _0x1bad02(0x15b):return _0x1bad02(0x1af);case _0x1bad02(0x199):return _0x1bad02(0x170);case'File':return _0x1bad02(0x1a5);default:return'string';}}function convertTypeToString(_0x2a9142){const _0x2d35ef=a9_0x5c9b5f;switch(_0x2a9142){case core_1[_0x2d35ef(0x1b0)][_0x2d35ef(0x157)]:return _0x2d35ef(0x160);case core_1[_0x2d35ef(0x1b0)]['QUERY']:return _0x2d35ef(0x164);case core_1[_0x2d35ef(0x1b0)][_0x2d35ef(0x167)]:return _0x2d35ef(0x19e);case core_1[_0x2d35ef(0x1b0)][_0x2d35ef(0x182)]:return _0x2d35ef(0x19d);case core_1[_0x2d35ef(0x1b0)][_0x2d35ef(0x166)]:case core_1['RouteParamTypes'][_0x2d35ef(0x16e)]:case core_1[_0x2d35ef(0x1b0)][_0x2d35ef(0x1ad)]:return'file';default:return _0x2d35ef(0x160);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x10ee18=a10_0x11bc;function a10_0x11bc(_0x2c6297,_0x7de1d8){var _0x361d22=a10_0x2e06();return a10_0x11bc=function(_0x4a1b12,_0x4d045a){_0x4a1b12=_0x4a1b12-0x136;var _0x2e06c0=_0x361d22[_0x4a1b12];return _0x2e06c0;},a10_0x11bc(_0x2c6297,_0x7de1d8);}(function(_0x4a35c9,_0x556264){var _0x2c6524=a10_0x11bc,_0x223211=_0x4a35c9();while(!![]){try{var _0x3316b6=-parseInt(_0x2c6524(0x16e))/0x1*(-parseInt(_0x2c6524(0x13d))/0x2)+-parseInt(_0x2c6524(0x136))/0x3+parseInt(_0x2c6524(0x151))/0x4*(parseInt(_0x2c6524(0x16a))/0x5)+parseInt(_0x2c6524(0x137))/0x6*(parseInt(_0x2c6524(0x172))/0x7)+parseInt(_0x2c6524(0x149))/0x8*(parseInt(_0x2c6524(0x140))/0x9)+parseInt(_0x2c6524(0x147))/0xa+-parseInt(_0x2c6524(0x14c))/0xb;if(_0x3316b6===_0x556264)break;else _0x223211['push'](_0x223211['shift']());}catch(_0x3f2596){_0x223211['push'](_0x223211['shift']());}}}(a10_0x2e06,0x743dc));var a10_0x4d045a=(function(){var _0x2038e1=!![];return function(_0x19445c,_0x4c2164){var _0x81f57=_0x2038e1?function(){var _0x5c88cd=a10_0x11bc;if(_0x4c2164){var _0x3a686b=_0x4c2164[_0x5c88cd(0x145)](_0x19445c,arguments);return _0x4c2164=null,_0x3a686b;}}:function(){};return _0x2038e1=![],_0x81f57;};}()),a10_0x4a1b12=a10_0x4d045a(this,function(){var _0xf92440=a10_0x11bc;return a10_0x4a1b12[_0xf92440(0x156)]()['search'](_0xf92440(0x162))['toString']()[_0xf92440(0x159)](a10_0x4a1b12)['search'](_0xf92440(0x162));});function a10_0x2e06(){var _0x2daef7=['./configuration','default','IIntercept','Configuration','create','Param','./decorator/Intercept','File','2567355ysmdXQ','3175086EGDDhR','./service/ApiService','Logger','defineProperty','Singleton','@anncic-api/validator','3644VFFmqv','Inject','__esModule','3627zrtWHM','ScopeEnum','@anncic-api/event','./types/common','CacheService','apply','@anncic-api/cache','4591680IQyqOb','writable','16248iVZycy','Action','ApiService','12200100DAJacv','Body','get','Query','App','357556kzJLEt','ValidatorError','prototype','./exception/ApiError','Fields','toString','./service/ExcelService','Init','constructor','Scope','./helper/getAppsConfig','./decorator/ActionApitest','Headers','ValidatorService','Intercept','Provide','getAppsConfig','(((.+)+)+)+$','Apitest','./decorator/Action','__exportStar','getOwnPropertyDescriptor','__createBinding','getRoutes','@midwayjs/core','5sIidLB','./helper/getRoutes','hasOwnProperty','Config','299aKkjQH','configurable','Files','EventService','7hOseeD','ApiError'];a10_0x2e06=function(){return _0x2daef7;};return a10_0x2e06();}a10_0x4a1b12();'use strict';var __createBinding=this&&this[a10_0x10ee18(0x167)]||(Object[a10_0x10ee18(0x178)]?function(_0x3cadff,_0x31575f,_0x5c5505,_0x3f2187){var _0x28da2c=a10_0x10ee18;if(_0x3f2187===undefined)_0x3f2187=_0x5c5505;var _0x586d27=Object[_0x28da2c(0x166)](_0x31575f,_0x5c5505);(!_0x586d27||(_0x28da2c(0x14e)in _0x586d27?!_0x31575f[_0x28da2c(0x13f)]:_0x586d27[_0x28da2c(0x148)]||_0x586d27[_0x28da2c(0x16f)]))&&(_0x586d27={'enumerable':!![],'get':function(){return _0x31575f[_0x5c5505];}}),Object[_0x28da2c(0x13a)](_0x3cadff,_0x3f2187,_0x586d27);}:function(_0x5cd497,_0x2cf593,_0x38e6ec,_0x265e3d){if(_0x265e3d===undefined)_0x265e3d=_0x38e6ec;_0x5cd497[_0x265e3d]=_0x2cf593[_0x38e6ec];}),__exportStar=this&&this[a10_0x10ee18(0x165)]||function(_0xadef85,_0x3b8182){var _0x2575d7=a10_0x10ee18;for(var _0x2872a7 in _0xadef85)if(_0x2872a7!==_0x2575d7(0x175)&&!Object[_0x2575d7(0x153)][_0x2575d7(0x16c)]['call'](_0x3b8182,_0x2872a7))__createBinding(_0x3b8182,_0xadef85,_0x2872a7);};Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x13f),{'value':!![]}),exports[a10_0x10ee18(0x161)]=exports[a10_0x10ee18(0x141)]=exports[a10_0x10ee18(0x13b)]=exports[a10_0x10ee18(0x15a)]=exports['Inject']=exports[a10_0x10ee18(0x160)]=exports[a10_0x10ee18(0x139)]=exports['Config']=exports[a10_0x10ee18(0x150)]=exports[a10_0x10ee18(0x158)]=exports[a10_0x10ee18(0x15d)]=exports[a10_0x10ee18(0x14f)]=exports[a10_0x10ee18(0x179)]=exports[a10_0x10ee18(0x14d)]=exports[a10_0x10ee18(0x155)]=exports[a10_0x10ee18(0x170)]=exports[a10_0x10ee18(0x17b)]=exports[a10_0x10ee18(0x177)]=exports['ValidatorService']=exports[a10_0x10ee18(0x152)]=exports['ExcelService']=exports[a10_0x10ee18(0x14b)]=exports[a10_0x10ee18(0x171)]=exports['CacheService']=exports[a10_0x10ee18(0x173)]=exports[a10_0x10ee18(0x168)]=exports[a10_0x10ee18(0x176)]=exports[a10_0x10ee18(0x15f)]=exports['Apitest']=exports[a10_0x10ee18(0x14a)]=void 0x0;const getAppsConfig_1=require(a10_0x10ee18(0x15b));Object[a10_0x10ee18(0x13a)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x5c9bba=a10_0x10ee18;return getAppsConfig_1[_0x5c9bba(0x161)];}}),__exportStar(require(a10_0x10ee18(0x143)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a10_0x10ee18(0x164));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x14a),{'enumerable':!![],'get':function(){var _0x1500c1=a10_0x10ee18;return Action_1[_0x1500c1(0x14a)];}});var ActionApitest_1=require(a10_0x10ee18(0x15c));Object['defineProperty'](exports,'Apitest',{'enumerable':!![],'get':function(){var _0xf9245d=a10_0x10ee18;return ActionApitest_1[_0xf9245d(0x163)];}});var Intercept_1=require(a10_0x10ee18(0x17a));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x15f),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x176),{'enumerable':!![],'get':function(){var _0x3e8b49=a10_0x10ee18;return Intercept_1[_0x3e8b49(0x176)];}});var getRoutes_1=require(a10_0x10ee18(0x16b));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x168),{'enumerable':!![],'get':function(){var _0x234627=a10_0x10ee18;return getRoutes_1[_0x234627(0x168)];}});var ApiError_1=require(a10_0x10ee18(0x154));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x173),{'enumerable':!![],'get':function(){var _0x4424ea=a10_0x10ee18;return ApiError_1[_0x4424ea(0x173)];}});var cache_1=require(a10_0x10ee18(0x146));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x144),{'enumerable':!![],'get':function(){var _0x33df04=a10_0x10ee18;return cache_1[_0x33df04(0x144)];}});var event_1=require(a10_0x10ee18(0x142));Object['defineProperty'](exports,a10_0x10ee18(0x171),{'enumerable':!![],'get':function(){var _0x277ea9=a10_0x10ee18;return event_1[_0x277ea9(0x171)];}});var ApiService_1=require(a10_0x10ee18(0x138));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x14b),{'enumerable':!![],'get':function(){var _0x38e53e=a10_0x10ee18;return ApiService_1[_0x38e53e(0x14b)];}});var ExcelService_1=require(a10_0x10ee18(0x157));Object[a10_0x10ee18(0x13a)](exports,'ExcelService',{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a10_0x10ee18(0x13c));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x152),{'enumerable':!![],'get':function(){var _0x5e051f=a10_0x10ee18;return validator_1[_0x5e051f(0x152)];}}),Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x834405=a10_0x10ee18;return validator_1[_0x834405(0x15e)];}});var configuration_1=require(a10_0x10ee18(0x174));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x177),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object['defineProperty'](exports,a10_0x10ee18(0x17b),{'enumerable':!![],'get':function(){var _0x2b1106=a10_0x10ee18;return core_1[_0x2b1106(0x17b)];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x170),{'enumerable':!![],'get':function(){var _0x15fd0a=a10_0x10ee18;return core_1[_0x15fd0a(0x170)];}}),Object[a10_0x10ee18(0x13a)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x5cc01c=a10_0x10ee18;return core_1[_0x5cc01c(0x155)];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x14d),{'enumerable':!![],'get':function(){var _0x1c033e=a10_0x10ee18;return core_1[_0x1c033e(0x14d)];}}),Object['defineProperty'](exports,'Param',{'enumerable':!![],'get':function(){var _0x402832=a10_0x10ee18;return core_1[_0x402832(0x179)];}}),Object[a10_0x10ee18(0x13a)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x15d),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x158),{'enumerable':!![],'get':function(){var _0x889559=a10_0x10ee18;return core_1[_0x889559(0x158)];}});var core_2=require(a10_0x10ee18(0x169));Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x150),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x16d),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a10_0x10ee18(0x13a)](exports,'Logger',{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object['defineProperty'](exports,a10_0x10ee18(0x160),{'enumerable':!![],'get':function(){var _0xe01aa9=a10_0x10ee18;return core_2[_0xe01aa9(0x160)];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x13e),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x10ee18(0x13a)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x63f1e5=a10_0x10ee18;return core_2[_0x63f1e5(0x15a)];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x13b),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a10_0x10ee18(0x13a)](exports,a10_0x10ee18(0x141),{'enumerable':!![],'get':function(){var _0x374dfb=a10_0x10ee18;return core_2[_0x374dfb(0x141)];}}),global['getAppsConfig']=getAppsConfig_1[a10_0x10ee18(0x161)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a11_0x5020(_0x47b47e,_0x2e5fb5){var _0x2eb535=a11_0x1fe6();return a11_0x5020=function(_0x19fa01,_0x5047a0){_0x19fa01=_0x19fa01-0xfa;var _0x1fe6cf=_0x2eb535[_0x19fa01];return _0x1fe6cf;},a11_0x5020(_0x47b47e,_0x2e5fb5);}var a11_0x5c541d=a11_0x5020;(function(_0x454eaf,_0x3b94aa){var _0x215b36=a11_0x5020,_0x146897=_0x454eaf();while(!![]){try{var _0x4495e9=-parseInt(_0x215b36(0x101))/0x1+parseInt(_0x215b36(0x12f))/0x2+parseInt(_0x215b36(0x123))/0x3+-parseInt(_0x215b36(0x112))/0x4*(-parseInt(_0x215b36(0x10b))/0x5)+parseInt(_0x215b36(0x102))/0x6*(-parseInt(_0x215b36(0x11b))/0x7)+parseInt(_0x215b36(0x12b))/0x8*(parseInt(_0x215b36(0x116))/0x9)+-parseInt(_0x215b36(0x104))/0xa*(parseInt(_0x215b36(0x12e))/0xb);if(_0x4495e9===_0x3b94aa)break;else _0x146897['push'](_0x146897['shift']());}catch(_0x2092ee){_0x146897['push'](_0x146897['shift']());}}}(a11_0x1fe6,0xf0e46));var a11_0x5047a0=(function(){var _0x5dd99e=!![];return function(_0x55c1f5,_0x2609a9){var _0xa1550a=_0x5dd99e?function(){if(_0x2609a9){var _0x52405a=_0x2609a9['apply'](_0x55c1f5,arguments);return _0x2609a9=null,_0x52405a;}}:function(){};return _0x5dd99e=![],_0xa1550a;};}()),a11_0x19fa01=a11_0x5047a0(this,function(){var _0xce45b1=a11_0x5020;return a11_0x19fa01['toString']()['search'](_0xce45b1(0x10d))[_0xce45b1(0x10e)]()[_0xce45b1(0x133)](a11_0x19fa01)[_0xce45b1(0x12d)](_0xce45b1(0x10d));});function a11_0x1fe6(){var _0x5e5a04=['decorate','map','getsign','constructor','logintimeout','entries','prototype','getOwnPropertyDescriptor','crypto-js','HEADERS_CHECKCODE','token','secret=','getcheck','requesttime','device','Scope','config','toLowerCase','length','fromEntries','__metadata','119492lBluPC','1324194fKtRcK','signature','101670GvSPjj','logintime','join','password','MD5','__decorate','Config','6644325DBPSuu','checksign','(((.+)+)+)+$','toString','anncicapi','ApiError','__esModule','4iBuiwR','object','abs','design:type','749547RfVzvB','timeout','defineProperty','checkcode','ApiService','49anhOCv','padEnd','ScopeEnum','TIMEOUT_LOGINTIME','substring','HEADERS_SIGNATURE','function','now','5646471KScjlZ','HEADERS_DEVICE','push','验证失败','devices','HEADERS_LACK','../exception/ApiError','Singleton','16kjPgYw','metadata','search','2189MhGNWx','2593448dmbrTR'];a11_0x1fe6=function(){return _0x5e5a04;};return a11_0x1fe6();}a11_0x19fa01();'use strict';var __decorate=this&&this[a11_0x5c541d(0x109)]||function(_0x35c1b8,_0x214697,_0x5b5a26,_0x3c0193){var _0x4849bc=a11_0x5c541d,_0x4702b3=arguments['length'],_0x4cd97b=_0x4702b3<0x3?_0x214697:_0x3c0193===null?_0x3c0193=Object[_0x4849bc(0x137)](_0x214697,_0x5b5a26):_0x3c0193,_0x2a5bfb;if(typeof Reflect==='object'&&typeof Reflect[_0x4849bc(0x130)]===_0x4849bc(0x121))_0x4cd97b=Reflect['decorate'](_0x35c1b8,_0x214697,_0x5b5a26,_0x3c0193);else{for(var _0x2faa4a=_0x35c1b8[_0x4849bc(0xfe)]-0x1;_0x2faa4a>=0x0;_0x2faa4a--)if(_0x2a5bfb=_0x35c1b8[_0x2faa4a])_0x4cd97b=(_0x4702b3<0x3?_0x2a5bfb(_0x4cd97b):_0x4702b3>0x3?_0x2a5bfb(_0x214697,_0x5b5a26,_0x4cd97b):_0x2a5bfb(_0x214697,_0x5b5a26))||_0x4cd97b;}return _0x4702b3>0x3&&_0x4cd97b&&Object[_0x4849bc(0x118)](_0x214697,_0x5b5a26,_0x4cd97b),_0x4cd97b;},__metadata=this&&this[a11_0x5c541d(0x100)]||function(_0xacc8c0,_0x18b23a){var _0x441e6e=a11_0x5c541d;if(typeof Reflect===_0x441e6e(0x113)&&typeof Reflect[_0x441e6e(0x12c)]==='function')return Reflect['metadata'](_0xacc8c0,_0x18b23a);};Object[a11_0x5c541d(0x118)](exports,a11_0x5c541d(0x111),{'value':!![]}),exports[a11_0x5c541d(0x11a)]=void 0x0;const crypto_js_1=require(a11_0x5c541d(0x138)),core_1=require('@midwayjs/core'),ApiError_1=require(a11_0x5c541d(0x129));let ApiService=class ApiService{[a11_0x5c541d(0x107)](_0x480d32){var _0x179942=a11_0x5c541d,_0x187150;return _0x480d32?(0x0,crypto_js_1[_0x179942(0x108)])(''+_0x480d32+(0x0,crypto_js_1[_0x179942(0x108)])((0x0,crypto_js_1[_0x179942(0x108)])(''+_0x480d32)['toString']()+(''+((_0x187150=this['config'])===null||_0x187150===void 0x0?void 0x0:_0x187150[_0x179942(0x107)])))[_0x179942(0x10e)]())[_0x179942(0x10e)]():'';}[a11_0x5c541d(0x13c)](_0x6a0287,_0x12da9d,_0x359d3f=Date[a11_0x5c541d(0x122)]()){var _0x4628cd=a11_0x5c541d;return{'Token':_0x6a0287,'Logintime':_0x359d3f,'Checkcode':this[_0x4628cd(0x119)](_0x6a0287,_0x12da9d,_0x359d3f)};}[a11_0x5c541d(0x132)](_0x5ce936={}){var _0x12d70f=a11_0x5c541d,_0x1559a5,_0xb7487e;const _0x10f8bc=[],_0xefee1d=Object[_0x12d70f(0xff)](Object['entries'](_0x5ce936)[_0x12d70f(0x131)](_0x5ddadc=>[_0x5ddadc[0x0][_0x12d70f(0xfd)](),_0x5ddadc[0x1]]));for(let _0x11cf60 of[_0x12d70f(0xfa),_0x12d70f(0x13d),_0x12d70f(0x13a),_0x12d70f(0x105),'checkcode']){if(typeof _0xefee1d[_0x11cf60]=='undefined')throw new AnnError(ApiError_1[_0x12d70f(0x110)][_0x12d70f(0x128)],{'message':'验证失败'});_0x10f8bc[_0x12d70f(0x125)](_0x11cf60+'='+_0xefee1d[_0x11cf60]);}_0xefee1d[_0x12d70f(0x13d)]&&((_0x1559a5=_0xefee1d[_0x12d70f(0x13d)])===null||_0x1559a5===void 0x0?void 0x0:_0x1559a5[_0x12d70f(0xfe)])==0xa&&(_0xefee1d[_0x12d70f(0x13d)]=_0xefee1d[_0x12d70f(0x13d)]*0x3e8);if(this[_0x12d70f(0xfc)][_0x12d70f(0x117)]&&parseInt((''+Date[_0x12d70f(0x122)]())[_0x12d70f(0x11f)](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x12d70f(0x114)](_0xefee1d[_0x12d70f(0x13d)]))['substring'](0x0,0xd)[_0x12d70f(0x11c)](0xd,'0'))>parseInt(this['config']['timeout']))throw new AnnError(ApiError_1[_0x12d70f(0x110)]['TIMEOUT'],{'message':'请求超时,请重试或改善网络环境','requesttime':_0xefee1d[_0x12d70f(0x13d)],'timestamp':Date[_0x12d70f(0x122)]()});if((((_0xb7487e=this[_0x12d70f(0xfc)]['devices'][_0xefee1d[_0x12d70f(0xfa)]])===null||_0xb7487e===void 0x0?void 0x0:_0xb7487e['logintimeout'])||0x0)>0x0&&Date['now']()-Math[_0x12d70f(0x114)](_0xefee1d[_0x12d70f(0x105)])>this['config'][_0x12d70f(0x127)][_0xefee1d['device']][_0x12d70f(0x134)])throw new AnnError(ApiError_1[_0x12d70f(0x110)][_0x12d70f(0x11e)]);if(!this['config'][_0x12d70f(0x127)][_0xefee1d[_0x12d70f(0xfa)]]||!this['config'][_0x12d70f(0x127)][_0xefee1d[_0x12d70f(0xfa)]]['secret']||!this['config']['devices'][_0xefee1d[_0x12d70f(0xfa)]][_0x12d70f(0x119)])throw new AnnError(ApiError_1[_0x12d70f(0x110)][_0x12d70f(0x124)]);if(_0xefee1d[_0x12d70f(0x13a)]&&_0xefee1d[_0x12d70f(0x119)]!=this[_0x12d70f(0x119)](_0xefee1d[_0x12d70f(0x13a)],_0xefee1d[_0x12d70f(0xfa)],_0xefee1d[_0x12d70f(0x105)]))throw new AnnError(ApiError_1['ApiError'][_0x12d70f(0x139)]);return _0x10f8bc[_0x12d70f(0x125)](_0x12d70f(0x13b)+this['config'][_0x12d70f(0x127)][_0xefee1d[_0x12d70f(0xfa)]]['secret']),(0x0,crypto_js_1[_0x12d70f(0x108)])(_0x10f8bc['sort']()[_0x12d70f(0x106)](''))[_0x12d70f(0x10e)]();}[a11_0x5c541d(0x119)](_0x5ae583,_0x2249a4,_0x5e9aa2=Date['now']()){var _0x52db01=a11_0x5c541d,_0x5b014b,_0x429882,_0x3e7dbe;if(!((_0x5b014b=this[_0x52db01(0xfc)])===null||_0x5b014b===void 0x0?void 0x0:_0x5b014b[_0x52db01(0x127)][_0x2249a4])||!((_0x3e7dbe=(_0x429882=this[_0x52db01(0xfc)])===null||_0x429882===void 0x0?void 0x0:_0x429882[_0x52db01(0x127)][_0x2249a4])===null||_0x3e7dbe===void 0x0?void 0x0:_0x3e7dbe[_0x52db01(0x119)]))throw new AnnError(ApiError_1[_0x52db01(0x110)][_0x52db01(0x124)]);return(0x0,crypto_js_1[_0x52db01(0x108)])(''+_0x5ae583+(0x0,crypto_js_1['MD5'])(''+_0x5e9aa2+(''+this[_0x52db01(0xfc)][_0x52db01(0x127)][_0x2249a4][_0x52db01(0x119)]))[_0x52db01(0x10e)]())[_0x52db01(0x10e)]();}[a11_0x5c541d(0x10c)](_0x4de4b0={}){var _0x4f435d=a11_0x5c541d;const _0x55894e=Object[_0x4f435d(0xff)](Object[_0x4f435d(0x135)](_0x4de4b0)['map'](_0x500db1=>[_0x500db1[0x0][_0x4f435d(0xfd)](),_0x500db1[0x1]]));if(!(_0x55894e===null||_0x55894e===void 0x0?void 0x0:_0x55894e[_0x4f435d(0x103)]))throw new AnnError(ApiError_1[_0x4f435d(0x110)][_0x4f435d(0x128)],{'message':'验证失败'});if((_0x55894e===null||_0x55894e===void 0x0?void 0x0:_0x55894e[_0x4f435d(0x103)])!=this[_0x4f435d(0x132)](_0x55894e))throw new AnnError(ApiError_1[_0x4f435d(0x110)][_0x4f435d(0x120)],{'message':_0x4f435d(0x126)});return!![];}};exports[a11_0x5c541d(0x11a)]=ApiService,__decorate([(0x0,core_1[a11_0x5c541d(0x10a)])(a11_0x5c541d(0x10f)),__metadata(a11_0x5c541d(0x115),Object)],ApiService[a11_0x5c541d(0x136)],'config',void 0x0),exports[a11_0x5c541d(0x11a)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a11_0x5c541d(0xfb)])(core_1[a11_0x5c541d(0x11d)][a11_0x5c541d(0x12a)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2a0494=a12_0xaece;(function(_0x4cef0b,_0x1e183f){const _0xf010b5=a12_0xaece,_0x13b3f8=_0x4cef0b();while(!![]){try{const _0x52137b=parseInt(_0xf010b5(0x208))/0x1*(parseInt(_0xf010b5(0x1fb))/0x2)+-parseInt(_0xf010b5(0x204))/0x3+-parseInt(_0xf010b5(0x212))/0x4*(-parseInt(_0xf010b5(0x1ee))/0x5)+-parseInt(_0xf010b5(0x1d5))/0x6+parseInt(_0xf010b5(0x213))/0x7*(parseInt(_0xf010b5(0x201))/0x8)+-parseInt(_0xf010b5(0x1dd))/0x9+parseInt(_0xf010b5(0x207))/0xa*(parseInt(_0xf010b5(0x1d2))/0xb);if(_0x52137b===_0x1e183f)break;else _0x13b3f8['push'](_0x13b3f8['shift']());}catch(_0x16501a){_0x13b3f8['push'](_0x13b3f8['shift']());}}}(a12_0xb00a,0xc1f67));const a12_0x1fb387=(function(){let _0x334621=!![];return function(_0xd0498b,_0x3d197e){const _0x9ac71d=_0x334621?function(){const _0x53c5fd=a12_0xaece;if(_0x3d197e){const _0x141795=_0x3d197e[_0x53c5fd(0x1e3)](_0xd0498b,arguments);return _0x3d197e=null,_0x141795;}}:function(){};return _0x334621=![],_0x9ac71d;};}()),a12_0x4f485b=a12_0x1fb387(this,function(){const _0x429ccc=a12_0xaece;return a12_0x4f485b[_0x429ccc(0x21f)]()['search']('(((.+)+)+)+$')[_0x429ccc(0x21f)]()[_0x429ccc(0x1d6)](a12_0x4f485b)[_0x429ccc(0x21c)]('(((.+)+)+)+$');});a12_0x4f485b();'use strict';var __decorate=this&&this[a12_0x2a0494(0x216)]||function(_0x29b37f,_0x5b1ed4,_0x5399b6,_0x4abc83){const _0x33a85f=a12_0x2a0494;var _0x3a5624=arguments['length'],_0x3964b8=_0x3a5624<0x3?_0x5b1ed4:_0x4abc83===null?_0x4abc83=Object[_0x33a85f(0x1ff)](_0x5b1ed4,_0x5399b6):_0x4abc83,_0x3115dc;if(typeof Reflect===_0x33a85f(0x1e5)&&typeof Reflect[_0x33a85f(0x21e)]===_0x33a85f(0x1df))_0x3964b8=Reflect[_0x33a85f(0x21e)](_0x29b37f,_0x5b1ed4,_0x5399b6,_0x4abc83);else{for(var _0x6a6ce9=_0x29b37f[_0x33a85f(0x1db)]-0x1;_0x6a6ce9>=0x0;_0x6a6ce9--)if(_0x3115dc=_0x29b37f[_0x6a6ce9])_0x3964b8=(_0x3a5624<0x3?_0x3115dc(_0x3964b8):_0x3a5624>0x3?_0x3115dc(_0x5b1ed4,_0x5399b6,_0x3964b8):_0x3115dc(_0x5b1ed4,_0x5399b6))||_0x3964b8;}return _0x3a5624>0x3&&_0x3964b8&&Object[_0x33a85f(0x1fc)](_0x5b1ed4,_0x5399b6,_0x3964b8),_0x3964b8;},__metadata=this&&this['__metadata']||function(_0x34a50f,_0xdfd711){const _0x1cbf8d=a12_0x2a0494;if(typeof Reflect===_0x1cbf8d(0x1e5)&&typeof Reflect['metadata']==='function')return Reflect[_0x1cbf8d(0x1f0)](_0x34a50f,_0xdfd711);},__param=this&&this[a12_0x2a0494(0x1f4)]||function(_0x108ffc,_0x5289a4){return function(_0x113b91,_0xa1f370){_0x5289a4(_0x113b91,_0xa1f370,_0x108ffc);};};function a12_0xaece(_0x4e3b25,_0x176280){const _0x5a7b66=a12_0xb00a();return a12_0xaece=function(_0x4f485b,_0x1fb387){_0x4f485b=_0x4f485b-0x1d1;let _0xb00a54=_0x5a7b66[_0x4f485b];return _0xb00a54;},a12_0xaece(_0x4e3b25,_0x176280);}Object[a12_0x2a0494(0x1fc)](exports,'__esModule',{'value':!![]}),exports[a12_0x2a0494(0x20d)]=exports[a12_0x2a0494(0x1ed)]=void 0x0;const path_1=require(a12_0x2a0494(0x1e6)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a12_0x2a0494(0x1e1)),core_3=require('@midwayjs/core'),getRoutes_1=require(a12_0x2a0494(0x202));let ApitestService=class ApitestService{async[a12_0x2a0494(0x21b)](_0x1e4065){const _0x292592=a12_0x2a0494,_0x54a488=(0x0,getRoutes_1[_0x292592(0x1e7)])(_0x1e4065),_0x591972=[];for(let _0x170dec in _0x54a488){for(let _0x170bad in _0x54a488[_0x170dec][_0x292592(0x21a)]){let _0x46f6c7=_0x54a488[_0x170dec][_0x292592(0x21a)][_0x170bad],_0x184aef=[];for(let _0x266d01 in _0x46f6c7['request']){_0x184aef[_0x292592(0x1f9)](_0x46f6c7['request'][_0x266d01]);}_0x591972[_0x292592(0x1f9)]({'title':_0x54a488[_0x170dec]['summary']+':'+_0x46f6c7[_0x292592(0x217)],'prefix':_0x54a488[_0x170dec][_0x292592(0x218)],'router':_0x46f6c7[_0x292592(0x209)],'method':_0x46f6c7['method'],'describe':_0x46f6c7[_0x292592(0x1d4)]||'','filepath':_0x54a488[_0x170dec][_0x292592(0x1e4)]||'','request':_0x184aef});}}const _0x5d8cab=(0x0,path_1['join'])(__dirname,_0x292592(0x1e8));return(0x0,fs_1['readFileSync'])(_0x5d8cab,{'encoding':_0x292592(0x210)})[_0x292592(0x1e2)](/__res__/g,_0x292592(0x1dc))['replace'](_0x292592(0x211),JSON[_0x292592(0x215)](_0x591972))[_0x292592(0x1e2)](_0x292592(0x1d8),JSON[_0x292592(0x215)](this[_0x292592(0x1fd)][_0x292592(0x20c)]));}};exports[a12_0x2a0494(0x1ed)]=ApitestService,__decorate([(0x0,core_3[a12_0x2a0494(0x1f6)])(a12_0x2a0494(0x21d)),__metadata(a12_0x2a0494(0x203),Object)],ApitestService[a12_0x2a0494(0x219)],'config',void 0x0),exports[a12_0x2a0494(0x1ed)]=ApitestService=__decorate([(0x0,core_2['Provide'])(a12_0x2a0494(0x1d7)),(0x0,core_3['Scope'])(core_3[a12_0x2a0494(0x1de)]['Singleton'])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a12_0x2a0494(0x1ea)](){const _0x1cbbd8=a12_0x2a0494;if(this[_0x1cbbd8(0x1d7)]){const _0x18ce19={'module':![]};return this[_0x1cbbd8(0x1f7)][_0x1cbbd8(0x1f5)]()&&(_0x18ce19[_0x1cbbd8(0x1e4)]=!![]),await this[_0x1cbbd8(0x1ed)][_0x1cbbd8(0x21b)](_0x18ce19);}return'';}async[a12_0x2a0494(0x214)](_0xeefcd9){const _0x12f1e6=a12_0x2a0494;if(this['apitest']){const _0x3de955={'module':_0xeefcd9};return this[_0x12f1e6(0x1f7)]['isDevelopmentEnvironment']()&&(_0x3de955['filepath']=!![]),await this['ApitestService'][_0x12f1e6(0x21b)](_0x3de955);}return'';}async[a12_0x2a0494(0x1ec)](){const _0x51f7a1=a12_0x2a0494;if((0x0,path_1[_0x51f7a1(0x1da)])(this[_0x51f7a1(0x20a)][_0x51f7a1(0x1e0)][_0x51f7a1(0x1f3)])){var _0x1daf62=(0x0,path_1[_0x51f7a1(0x1d9)])(__dirname,_0x51f7a1(0x1d3)+this[_0x51f7a1(0x20a)][_0x51f7a1(0x1e0)][_0x51f7a1(0x1f3)][_0x51f7a1(0x1e2)](_0x51f7a1(0x1dc),'/'));if(_0x1daf62['substring'](_0x1daf62[_0x51f7a1(0x1db)]-0xb)!=_0x51f7a1(0x1fe)){this[_0x51f7a1(0x20a)][_0x51f7a1(0x200)](_0x51f7a1(0x1ef),'public,\x20max-age=604800');if((0x0,path_1[_0x51f7a1(0x1da)])(this[_0x51f7a1(0x20a)]['request'][_0x51f7a1(0x1f3)])=='.js')this['ctx'][_0x51f7a1(0x200)](_0x51f7a1(0x1d1),'application/javascript;\x20charset=utf-8');else(0x0,path_1['extname'])(this['ctx'][_0x51f7a1(0x1e0)]['url'])==_0x51f7a1(0x1eb)&&this[_0x51f7a1(0x20a)][_0x51f7a1(0x200)]('content-type',_0x51f7a1(0x206));return(0x0,fs_1[_0x51f7a1(0x1e9)])(_0x1daf62)&&(0x0,fs_1[_0x51f7a1(0x1f2)])(_0x1daf62,{'encoding':_0x51f7a1(0x210)});}}return'';}};function a12_0xb00a(){const _0x495721=['ctx','design:paramtypes','devices','ApitestStaticController','Inject','Controller','utf-8','__apiList__','8nPAOPF','1616825tUHdIV','apitestmodule','stringify','__decorate','summary','prefix','prototype','routes','apidoc','search','anncicapi','decorate','toString','content-type','143ZxEmJc','../../public/','description','7626294rnOfhk','constructor','apitest','__devices__','join','extname','length','/apiteststatic/','9985608ggUDjQ','ScopeEnum','function','request','@midwayjs/core','replace','apply','filepath','object','path','getRoutes','../../public/index.html','existsSync','apitesthtml','.css','apiteststatic','ApitestService','3155055oMjQzj','cache-control','metadata','design:returntype','readFileSync','url','__param','isDevelopmentEnvironment','Config','Environment','Get','push','/apiteststatic/*','148jwIyIZ','defineProperty','config','/index.html','getOwnPropertyDescriptor','set','16sDoilj','../helper/getRoutes','design:type','749661qZzuXe','/apitest','text/css;\x20charset=utf-8','699970SJHgfm','10689WrRDXY','route'];a12_0xb00a=function(){return _0x495721;};return a12_0xb00a();}exports[a12_0x2a0494(0x20d)]=ApitestStaticController,__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x2a0494(0x203),Object)],ApitestStaticController[a12_0x2a0494(0x219)],'ctx',void 0x0),__decorate([(0x0,core_3[a12_0x2a0494(0x20e)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],ApitestStaticController['prototype'],a12_0x2a0494(0x1f7),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x2a0494(0x203),ApitestService)],ApitestStaticController[a12_0x2a0494(0x219)],a12_0x2a0494(0x1ed),void 0x0),__decorate([(0x0,core_3[a12_0x2a0494(0x1f6)])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x2a0494(0x219)],'apitest',void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x2a0494(0x21d)),__metadata('design:type',Object)],ApitestStaticController[a12_0x2a0494(0x219)],a12_0x2a0494(0x1fd),void 0x0),__decorate([(0x0,core_2[a12_0x2a0494(0x1f8)])(a12_0x2a0494(0x205)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a12_0x2a0494(0x1f1),Promise)],ApitestStaticController[a12_0x2a0494(0x219)],'apitesthtml',null),__decorate([(0x0,core_2[a12_0x2a0494(0x1f8)])('/apitest-:module'),__param(0x0,(0x0,core_2['Param'])('module')),__metadata(a12_0x2a0494(0x203),Function),__metadata(a12_0x2a0494(0x20b),[String]),__metadata(a12_0x2a0494(0x1f1),Promise)],ApitestStaticController['prototype'],a12_0x2a0494(0x214),null),__decorate([(0x0,core_2[a12_0x2a0494(0x1f8)])(a12_0x2a0494(0x1fa)),__metadata(a12_0x2a0494(0x203),Function),__metadata(a12_0x2a0494(0x20b),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x2a0494(0x219)],a12_0x2a0494(0x1ec),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a12_0x2a0494(0x20f)])('/'),(0x0,core_3['Scope'])(core_3[a12_0x2a0494(0x1de)]['Request'])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13_0x25ff74=a13_0x1f98;function a13_0x2dd3(){const _0x396f22=['worksheets','search','model','getColumn','App','isNumber','(((.+)+)+)+$','download','exceljs','Api\x20Excel\x20Error:\x20','object','./ExcelStream','header','5CIxAhj','app','key','columns','push','koa-send','filter','prototype','set','49382998ohEGGR','/public/xlsx/','writeFile','206591HIAUfn','length','findRows','constructor','export','\x20is\x20read\x20fail','ExcelService','Scope','getCell','13tDRPUP','10WzuwBD','parse','keys','values','41010twgDNw','4070961JFglGx','metadata','108LosLNP','endsWith','handler','function','@midwayjs/core','getAppDir','existsSync','YYYY/MM/DD','decorate','toString','cellCount','2446341KxpEiv','eachCell','4BAGrfl','frozen','onWrite','.xlsx','Workbook','295UJdQyT','__metadata','value','498092DGOfel','324890XVQPkB','__decorate','40SGoFZd','getWorksheet','replace','startsWith','substring','apply','addWorksheet','__esModule','ScopeEnum','xlsx','defineProperty','stream','get','ExcelStream'];a13_0x2dd3=function(){return _0x396f22;};return a13_0x2dd3();}(function(_0x93880,_0xb1740c){const _0x461fa6=a13_0x1f98,_0x2cdd98=_0x93880();while(!![]){try{const _0x2cf3b7=-parseInt(_0x461fa6(0x139))/0x1*(parseInt(_0x461fa6(0x16c))/0x2)+-parseInt(_0x461fa6(0x161))/0x3*(parseInt(_0x461fa6(0x163))/0x4)+parseInt(_0x461fa6(0x168))/0x5*(-parseInt(_0x461fa6(0x153))/0x6)+parseInt(_0x461fa6(0x16b))/0x7*(-parseInt(_0x461fa6(0x16e))/0x8)+-parseInt(_0x461fa6(0x154))/0x9*(parseInt(_0x461fa6(0x14f))/0xa)+parseInt(_0x461fa6(0x145))/0xb*(-parseInt(_0x461fa6(0x156))/0xc)+-parseInt(_0x461fa6(0x14e))/0xd*(-parseInt(_0x461fa6(0x142))/0xe);if(_0x2cf3b7===_0xb1740c)break;else _0x2cdd98['push'](_0x2cdd98['shift']());}catch(_0x1aeeb5){_0x2cdd98['push'](_0x2cdd98['shift']());}}}(a13_0x2dd3,0x7ec72));const a13_0x37c3ff=(function(){let _0x2799c7=!![];return function(_0x5803c7,_0x48dbd8){const _0x36c41f=_0x2799c7?function(){const _0x120b89=a13_0x1f98;if(_0x48dbd8){const _0xad764b=_0x48dbd8[_0x120b89(0x173)](_0x5803c7,arguments);return _0x48dbd8=null,_0xad764b;}}:function(){};return _0x2799c7=![],_0x36c41f;};}()),a13_0x196cc5=a13_0x37c3ff(this,function(){const _0x3be735=a13_0x1f98;return a13_0x196cc5[_0x3be735(0x15f)]()['search'](_0x3be735(0x132))['toString']()[_0x3be735(0x148)](a13_0x196cc5)[_0x3be735(0x17d)](_0x3be735(0x132));});a13_0x196cc5();'use strict';function a13_0x1f98(_0x3e95c8,_0x57947e){const _0x40d73e=a13_0x2dd3();return a13_0x1f98=function(_0x196cc5,_0x37c3ff){_0x196cc5=_0x196cc5-0x130;let _0x2dd3d4=_0x40d73e[_0x196cc5];return _0x2dd3d4;},a13_0x1f98(_0x3e95c8,_0x57947e);}var __decorate=this&&this[a13_0x25ff74(0x16d)]||function(_0x966142,_0xb38f49,_0x46113d,_0x1b4882){const _0x541525=a13_0x25ff74;var _0x4ad636=arguments[_0x541525(0x146)],_0x34922b=_0x4ad636<0x3?_0xb38f49:_0x1b4882===null?_0x1b4882=Object['getOwnPropertyDescriptor'](_0xb38f49,_0x46113d):_0x1b4882,_0x4fe06e;if(typeof Reflect===_0x541525(0x136)&&typeof Reflect['decorate']===_0x541525(0x159))_0x34922b=Reflect[_0x541525(0x15e)](_0x966142,_0xb38f49,_0x46113d,_0x1b4882);else{for(var _0x448f6d=_0x966142[_0x541525(0x146)]-0x1;_0x448f6d>=0x0;_0x448f6d--)if(_0x4fe06e=_0x966142[_0x448f6d])_0x34922b=(_0x4ad636<0x3?_0x4fe06e(_0x34922b):_0x4ad636>0x3?_0x4fe06e(_0xb38f49,_0x46113d,_0x34922b):_0x4fe06e(_0xb38f49,_0x46113d))||_0x34922b;}return _0x4ad636>0x3&&_0x34922b&&Object[_0x541525(0x178)](_0xb38f49,_0x46113d,_0x34922b),_0x34922b;},__metadata=this&&this[a13_0x25ff74(0x169)]||function(_0x377a75,_0x5aa1b5){const _0x8aed46=a13_0x25ff74;if(typeof Reflect===_0x8aed46(0x136)&&typeof Reflect[_0x8aed46(0x155)]===_0x8aed46(0x159))return Reflect[_0x8aed46(0x155)](_0x377a75,_0x5aa1b5);};Object['defineProperty'](exports,a13_0x25ff74(0x175),{'value':!![]}),exports[a13_0x25ff74(0x14b)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x25ff74(0x134)),koasend=require(a13_0x25ff74(0x13e)),core_1=require(a13_0x25ff74(0x15a)),ExcelStream_1=require(a13_0x25ff74(0x137));let ExcelService=class ExcelService{async[a13_0x25ff74(0x150)](_0xa41697,_0x3c4f6a,_0x5c7b96=[0x0]){const _0x41e58e=a13_0x25ff74;var _0xb2cbc2,_0x470542;const _0x393bd9=new exceljs[(_0x41e58e(0x167))](),_0x2f8078=[];let _0x250321=_0xa41697[_0x41e58e(0x170)](/(\\|\/)/g,'/')[_0x41e58e(0x170)](/\/{2,}/g,'/');!(_0x250321===null||_0x250321===void 0x0?void 0x0:_0x250321['startsWith']('/'))&&(_0x250321=this[_0x41e58e(0x13a)][_0x41e58e(0x15b)]()+'/'+_0x250321);try{await _0x393bd9[_0x41e58e(0x177)]['readFile'](_0x250321);}catch(_0x278ab7){return console['log'](_0x41e58e(0x135)+_0x250321+_0x41e58e(0x14a)),_0x2f8078;}for(const _0x55633d of _0x5c7b96){const _0x14e334=lodash[_0x41e58e(0x131)](_0x55633d)?((_0xb2cbc2=_0x393bd9[_0x41e58e(0x17c)])===null||_0xb2cbc2===void 0x0?void 0x0:_0xb2cbc2[_0x55633d])||undefined:_0x393bd9[_0x41e58e(0x16f)](_0x55633d);if(_0x14e334){var _0x65fc97=0x1;const _0x1c3d1d=_0x14e334['getRow'](0x1),_0x146aac=await new Promise(_0x3f3fd9=>{const _0xfedd07=_0x41e58e,_0x38607b={};_0x1c3d1d[_0xfedd07(0x162)]((_0x10b977,_0xafc656)=>{const _0x245690=_0xfedd07;for(const _0x57ad60 of _0x3c4f6a){if(_0x10b977['value']==_0x57ad60['header'])_0x65fc97=0x2,_0x38607b[_0x57ad60[_0x245690(0x13b)]]={'header':_0x10b977['col'],'handler':(_0x57ad60===null||_0x57ad60===void 0x0?void 0x0:_0x57ad60['onRead'])||(_0x57ad60===null||_0x57ad60===void 0x0?void 0x0:_0x57ad60[_0x245690(0x158)])};else{if(!_0x38607b[_0x57ad60[_0x245690(0x13b)]])try{const _0x5a28d8=_0x1c3d1d&&_0x1c3d1d[_0x245690(0x14d)](_0x57ad60[_0x245690(0x138)]);_0x5a28d8&&(_0x38607b[_0x57ad60[_0x245690(0x13b)]]={'header':_0x5a28d8['col'],'handler':(_0x57ad60===null||_0x57ad60===void 0x0?void 0x0:_0x57ad60['onRead'])||(_0x57ad60===null||_0x57ad60===void 0x0?void 0x0:_0x57ad60['handler'])});}catch{}}}_0x1c3d1d[_0x245690(0x160)]==_0xafc656&&_0x3f3fd9(_0x38607b);});});_0x45bd6f:for(const _0x46b669 of _0x14e334[_0x41e58e(0x147)](_0x65fc97,_0x14e334['rowCount'])){if(typeof(_0x46b669===null||_0x46b669===void 0x0?void 0x0:_0x46b669[_0x41e58e(0x14d)])!=_0x41e58e(0x159))continue _0x45bd6f;const _0xe70222={};_0x4de589:for(const _0x7c608d in _0x146aac){if(_0x146aac[_0x7c608d][_0x41e58e(0x138)]){const _0xb89207=_0x46b669[_0x41e58e(0x14d)](_0x146aac[_0x7c608d]['header']);if(!_0xb89207)continue _0x4de589;try{_0xb89207[_0x41e58e(0x15f)]();}catch(_0x5db649){_0xb89207['toString']=()=>{const _0x40f660=_0x41e58e;var _0x102761;return''+(((_0x102761=_0xb89207===null||_0xb89207===void 0x0?void 0x0:_0xb89207[_0x40f660(0x17e)])===null||_0x102761===void 0x0?void 0x0:_0x102761[_0x40f660(0x16a)])||'');};}typeof((_0x470542=_0x146aac[_0x7c608d])===null||_0x470542===void 0x0?void 0x0:_0x470542['handler'])==_0x41e58e(0x159)?_0xe70222[_0x7c608d]=await _0x146aac[_0x7c608d][_0x41e58e(0x158)](lodash[_0x41e58e(0x141)]({},_0x7c608d,(_0xb89207===null||_0xb89207===void 0x0?void 0x0:_0xb89207['toString']())||''),_0xb89207['model']):_0xe70222[_0x7c608d]=(_0xb89207===null||_0xb89207===void 0x0?void 0x0:_0xb89207[_0x41e58e(0x15f)]())||'';}}Object[_0x41e58e(0x151)](_0xe70222)['length']>0x0&&Object[_0x41e58e(0x152)](_0xe70222)[_0x41e58e(0x13f)](_0x52e1ab=>_0x52e1ab!='')[_0x41e58e(0x146)]>0x0&&_0x2f8078[_0x41e58e(0x13d)](_0xe70222);}}}return _0x2f8078;}async[a13_0x25ff74(0x149)](_0x1011e5,_0x1adacc,_0x37e2ed,_0x38a95b,_0x1c1a1a){const _0x3f7093=a13_0x25ff74;var _0x58e0bd,_0x4c914a,_0x27e3af;const _0x2c73a1=new exceljs[(_0x3f7093(0x167))](),_0x35d33e={},_0x3fd072=[],_0x4a198a=_0x2c73a1[_0x3f7093(0x174)]('Sheet\x201',{'views':[{'state':_0x3f7093(0x164),'ySplit':0x1}]});for(const _0x1efb01 in _0x1adacc){_0x35d33e[_0x1adacc[_0x1efb01][_0x3f7093(0x13b)]]=_0x1adacc[_0x1efb01]['header'],_0x3fd072['push']({'header':_0x1adacc[_0x1efb01][_0x3f7093(0x138)],'key':(_0x58e0bd=_0x1adacc[_0x1efb01])===null||_0x58e0bd===void 0x0?void 0x0:_0x58e0bd['key'][_0x3f7093(0x170)](/\./g,'_')});}_0x4a198a[_0x3f7093(0x13c)]=_0x3fd072;for(const _0x3472a2 in _0x37e2ed){const _0x514dbe=_0x37e2ed[_0x3472a2],_0x4b22ad=_0x4a198a['addRow']({});for(let _0x2709b8 in _0x1adacc){const _0x21816c=_0x1adacc[_0x2709b8][_0x3f7093(0x13b)][_0x3f7093(0x170)](/\./g,'_'),_0x1ef923=_0x4a198a[_0x3f7093(0x17f)](_0x21816c),_0x11b2d1=_0x4b22ad===null||_0x4b22ad===void 0x0?void 0x0:_0x4b22ad[_0x3f7093(0x14d)](_0x21816c);if(typeof((_0x4c914a=_0x1adacc[_0x2709b8])===null||_0x4c914a===void 0x0?void 0x0:_0x4c914a[_0x3f7093(0x165)])=='function')_0x11b2d1[_0x3f7093(0x16a)]=await _0x1adacc[_0x2709b8][_0x3f7093(0x165)](_0x514dbe,{'row':_0x4b22ad,'col':_0x1ef923,'cell':_0x11b2d1,'sheet':_0x4a198a})||'';else typeof((_0x27e3af=_0x1adacc[_0x2709b8])===null||_0x27e3af===void 0x0?void 0x0:_0x27e3af[_0x3f7093(0x158)])==_0x3f7093(0x159)?_0x11b2d1['value']=await _0x1adacc[_0x2709b8][_0x3f7093(0x158)](_0x514dbe,{'row':_0x4b22ad,'col':_0x1ef923,'cell':_0x11b2d1,'sheet':_0x4a198a})||'':_0x11b2d1[_0x3f7093(0x16a)]=lodash[_0x3f7093(0x17a)](_0x514dbe,_0x1adacc[_0x2709b8][_0x3f7093(0x13b)],'');}}typeof _0x1c1a1a==_0x3f7093(0x159)&&await _0x1c1a1a({'workbook':_0x2c73a1,'worksheet':_0x4a198a});let _0x5b2912='';const _0x377a23=_0x1011e5+_0x3f7093(0x166);if(_0x38a95b&&_0x38a95b[_0x3f7093(0x171)]('/'))_0x5b2912=''+_0x38a95b;else _0x38a95b&&!_0x38a95b['startsWith']('/')&&!_0x38a95b[_0x3f7093(0x171)]('\x5c')?_0x5b2912=this[_0x3f7093(0x13a)]['getAppDir']()+'/'+_0x38a95b:_0x5b2912=this[_0x3f7093(0x13a)][_0x3f7093(0x15b)]()+_0x3f7093(0x143)+dayjs()['format'](_0x3f7093(0x15d));return(_0x5b2912['endsWith']('/')||_0x5b2912[_0x3f7093(0x157)]('\x5c'))&&(_0x5b2912=_0x5b2912[_0x3f7093(0x172)](0x0,_0x5b2912[_0x3f7093(0x146)]-0x1)),_0x5b2912=_0x5b2912[_0x3f7093(0x170)](/(\\|\/)/g,'/')[_0x3f7093(0x170)](/\/{2,}/g,'/'),!fs[_0x3f7093(0x15c)](_0x5b2912)&&fs['mkdirSync'](_0x5b2912,{'recursive':!![]}),await _0x2c73a1[_0x3f7093(0x177)][_0x3f7093(0x144)]((_0x5b2912+'/'+_0x377a23)[_0x3f7093(0x170)](/(\\|\/)/g,'/')[_0x3f7093(0x170)](/\/{2,}/g,'/')),{'filename':_0x377a23,'filepath':(_0x5b2912[_0x3f7093(0x172)]((''+this[_0x3f7093(0x13a)]['getAppDir']())[_0x3f7093(0x146)])+'/'+_0x377a23)[_0x3f7093(0x170)](/(\\|\/)/g,'/')[_0x3f7093(0x170)](/\/{2,}/g,'/')};}async[a13_0x25ff74(0x179)](_0x1396d2,_0x3e172e={'suffix':['xls',a13_0x25ff74(0x177)]}){const _0x24e97f=a13_0x25ff74;return await ExcelStream_1[_0x24e97f(0x17b)]['instance'](_0x1396d2,_0x3e172e);}async[a13_0x25ff74(0x133)](_0x56799e,_0x1f97d5){return await koasend(_0x56799e,''+_0x1f97d5);}};exports[a13_0x25ff74(0x14b)]=ExcelService,__decorate([(0x0,core_1[a13_0x25ff74(0x130)])(),__metadata('design:type',Object)],ExcelService[a13_0x25ff74(0x140)],a13_0x25ff74(0x13a),void 0x0),exports[a13_0x25ff74(0x14b)]=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a13_0x25ff74(0x14c)])(core_1[a13_0x25ff74(0x176)]['Singleton'])],ExcelService);
|
|
1
|
+
const a13_0x57167c=a13_0x41b9;(function(_0xee78bb,_0x250b57){const _0x4b77ac=a13_0x41b9,_0x3baaad=_0xee78bb();while(!![]){try{const _0x5234a3=parseInt(_0x4b77ac(0x1a9))/0x1*(parseInt(_0x4b77ac(0x1c7))/0x2)+-parseInt(_0x4b77ac(0x184))/0x3+-parseInt(_0x4b77ac(0x1cc))/0x4*(parseInt(_0x4b77ac(0x1c2))/0x5)+parseInt(_0x4b77ac(0x19b))/0x6+parseInt(_0x4b77ac(0x1a8))/0x7*(parseInt(_0x4b77ac(0x1a7))/0x8)+-parseInt(_0x4b77ac(0x17d))/0x9+parseInt(_0x4b77ac(0x19a))/0xa;if(_0x5234a3===_0x250b57)break;else _0x3baaad['push'](_0x3baaad['shift']());}catch(_0x495560){_0x3baaad['push'](_0x3baaad['shift']());}}}(a13_0x5d17,0x460b7));const a13_0x11fad5=(function(){let _0x40494f=!![];return function(_0x4321db,_0x2c778c){const _0x243d38=_0x40494f?function(){const _0xe81bb0=a13_0x41b9;if(_0x2c778c){const _0x5be441=_0x2c778c[_0xe81bb0(0x1a2)](_0x4321db,arguments);return _0x2c778c=null,_0x5be441;}}:function(){};return _0x40494f=![],_0x243d38;};}()),a13_0x2a2a41=a13_0x11fad5(this,function(){const _0x1c184c=a13_0x41b9;return a13_0x2a2a41[_0x1c184c(0x1c3)]()[_0x1c184c(0x17e)](_0x1c184c(0x192))[_0x1c184c(0x1c3)]()[_0x1c184c(0x1a6)](a13_0x2a2a41)[_0x1c184c(0x17e)](_0x1c184c(0x192));});function a13_0x5d17(){const _0x553830=['Sheet\x201','xlsx','@midwayjs/core','existsSync','getCell','model','object','export','isNumber','handler','App','getWorksheet','__metadata','app','keys','Singleton','getAppDir','header','mkdirSync','download','rowCount','100490bnJIiH','toString','value','columns','length','2UpjYOo','function','readFile','metadata','replace','16OFYwxz','addRow','4380246NaZDnH','search','Provide','ExcelService','worksheets','koa-send','key','1719501DNZbhY','exceljs','onRead','__esModule','log','instance','YYYY/MM/DD','endsWith','Scope','__decorate','startsWith','prototype','onWrite','format','(((.+)+)+)+$','/public/xlsx/','decorate','getRow','./ExcelStream','addWorksheet','ExcelStream','findRows','2884350UEwTAa','3191688UfcGPk','frozen','set','eachCell','substring','col','Api\x20Excel\x20Error:\x20','apply','design:type','getOwnPropertyDescriptor','defineProperty','constructor','46888OjvNJc','98AlXuNY','524719jkCODj','getColumn','Workbook','parse'];a13_0x5d17=function(){return _0x553830;};return a13_0x5d17();}function a13_0x41b9(_0x25567c,_0x45a531){const _0x377faa=a13_0x5d17();return a13_0x41b9=function(_0x2a2a41,_0x11fad5){_0x2a2a41=_0x2a2a41-0x17d;let _0x5d177f=_0x377faa[_0x2a2a41];return _0x5d177f;},a13_0x41b9(_0x25567c,_0x45a531);}a13_0x2a2a41();'use strict';var __decorate=this&&this[a13_0x57167c(0x18d)]||function(_0xa41ae8,_0x3e6579,_0x1b244b,_0x1db5fb){const _0x12bed2=a13_0x57167c;var _0x114997=arguments[_0x12bed2(0x1c6)],_0x47a5c8=_0x114997<0x3?_0x3e6579:_0x1db5fb===null?_0x1db5fb=Object[_0x12bed2(0x1a4)](_0x3e6579,_0x1b244b):_0x1db5fb,_0x4205d1;if(typeof Reflect==='object'&&typeof Reflect[_0x12bed2(0x194)]===_0x12bed2(0x1c8))_0x47a5c8=Reflect[_0x12bed2(0x194)](_0xa41ae8,_0x3e6579,_0x1b244b,_0x1db5fb);else{for(var _0x5c2e6d=_0xa41ae8[_0x12bed2(0x1c6)]-0x1;_0x5c2e6d>=0x0;_0x5c2e6d--)if(_0x4205d1=_0xa41ae8[_0x5c2e6d])_0x47a5c8=(_0x114997<0x3?_0x4205d1(_0x47a5c8):_0x114997>0x3?_0x4205d1(_0x3e6579,_0x1b244b,_0x47a5c8):_0x4205d1(_0x3e6579,_0x1b244b))||_0x47a5c8;}return _0x114997>0x3&&_0x47a5c8&&Object[_0x12bed2(0x1a5)](_0x3e6579,_0x1b244b,_0x47a5c8),_0x47a5c8;},__metadata=this&&this[a13_0x57167c(0x1b9)]||function(_0x2c201f,_0x5b73eb){const _0x46d518=a13_0x57167c;if(typeof Reflect===_0x46d518(0x1b3)&&typeof Reflect[_0x46d518(0x1ca)]===_0x46d518(0x1c8))return Reflect[_0x46d518(0x1ca)](_0x2c201f,_0x5b73eb);};Object[a13_0x57167c(0x1a5)](exports,a13_0x57167c(0x187),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a13_0x57167c(0x185)),koasend=require(a13_0x57167c(0x182)),core_1=require(a13_0x57167c(0x1af)),ExcelStream_1=require(a13_0x57167c(0x196));let ExcelService=class ExcelService{async[a13_0x57167c(0x1ac)](_0x506c01,_0x586f59,_0x3a94a3=[0x0]){const _0x556f77=a13_0x57167c;var _0x4b2f3c,_0x58a133;const _0x3eca65=new exceljs[(_0x556f77(0x1ab))](),_0x3632d1=[];let _0x577f2f=_0x506c01[_0x556f77(0x1cb)](/(\\|\/)/g,'/')[_0x556f77(0x1cb)](/\/{2,}/g,'/');!(_0x577f2f===null||_0x577f2f===void 0x0?void 0x0:_0x577f2f[_0x556f77(0x18e)]('/'))&&(_0x577f2f=this[_0x556f77(0x1ba)][_0x556f77(0x1bd)]()+'/'+_0x577f2f);try{await _0x3eca65[_0x556f77(0x1ae)][_0x556f77(0x1c9)](_0x577f2f);}catch(_0x1c8152){return console[_0x556f77(0x188)](_0x556f77(0x1a1)+_0x577f2f+'\x20is\x20read\x20fail'),_0x3632d1;}for(const _0x141d85 of _0x3a94a3){const _0xba57c6=lodash[_0x556f77(0x1b5)](_0x141d85)?((_0x4b2f3c=_0x3eca65[_0x556f77(0x181)])===null||_0x4b2f3c===void 0x0?void 0x0:_0x4b2f3c[_0x141d85])||undefined:_0x3eca65[_0x556f77(0x1b8)](_0x141d85);if(_0xba57c6){var _0x498a20=0x1;const _0x10164d=_0xba57c6[_0x556f77(0x195)](0x1),_0x1038ec=await new Promise(_0x2ed04d=>{const _0x49f345=_0x556f77,_0x565e4f={};_0x10164d[_0x49f345(0x19e)]((_0x515a93,_0x4bb318)=>{const _0xaacd6d=_0x49f345;for(const _0x5b2134 of _0x586f59){if(_0x515a93[_0xaacd6d(0x1c4)]==_0x5b2134[_0xaacd6d(0x1be)])_0x498a20=0x2,_0x565e4f[_0x5b2134[_0xaacd6d(0x183)]]={'header':_0x515a93[_0xaacd6d(0x1a0)],'handler':(_0x5b2134===null||_0x5b2134===void 0x0?void 0x0:_0x5b2134[_0xaacd6d(0x186)])||(_0x5b2134===null||_0x5b2134===void 0x0?void 0x0:_0x5b2134[_0xaacd6d(0x1b6)])};else{if(!_0x565e4f[_0x5b2134['key']])try{const _0x5ea134=_0x10164d&&_0x10164d['getCell'](_0x5b2134[_0xaacd6d(0x1be)]);_0x5ea134&&(_0x565e4f[_0x5b2134[_0xaacd6d(0x183)]]={'header':_0x5ea134['col'],'handler':(_0x5b2134===null||_0x5b2134===void 0x0?void 0x0:_0x5b2134[_0xaacd6d(0x186)])||(_0x5b2134===null||_0x5b2134===void 0x0?void 0x0:_0x5b2134['handler'])});}catch{}}}_0x10164d['cellCount']==_0x4bb318&&_0x2ed04d(_0x565e4f);});});_0x1e591c:for(const _0x93b371 of _0xba57c6[_0x556f77(0x199)](_0x498a20,_0xba57c6[_0x556f77(0x1c1)])){if(typeof(_0x93b371===null||_0x93b371===void 0x0?void 0x0:_0x93b371[_0x556f77(0x1b1)])!=_0x556f77(0x1c8))continue _0x1e591c;const _0x34caad={};_0x4f9d51:for(const _0x1e21ef in _0x1038ec){if(_0x1038ec[_0x1e21ef]['header']){const _0xad3f32=_0x93b371[_0x556f77(0x1b1)](_0x1038ec[_0x1e21ef][_0x556f77(0x1be)]);if(!_0xad3f32)continue _0x4f9d51;try{_0xad3f32[_0x556f77(0x1c3)]();}catch(_0x1d22a1){_0xad3f32['toString']=()=>{const _0x552daa=_0x556f77;var _0xe25913;return''+(((_0xe25913=_0xad3f32===null||_0xad3f32===void 0x0?void 0x0:_0xad3f32[_0x552daa(0x1b2)])===null||_0xe25913===void 0x0?void 0x0:_0xe25913[_0x552daa(0x1c4)])||'');};}typeof((_0x58a133=_0x1038ec[_0x1e21ef])===null||_0x58a133===void 0x0?void 0x0:_0x58a133['handler'])==_0x556f77(0x1c8)?_0x34caad[_0x1e21ef]=await _0x1038ec[_0x1e21ef][_0x556f77(0x1b6)](lodash[_0x556f77(0x19d)]({},_0x1e21ef,(_0xad3f32===null||_0xad3f32===void 0x0?void 0x0:_0xad3f32['toString']())||''),_0xad3f32[_0x556f77(0x1b2)]):_0x34caad[_0x1e21ef]=(_0xad3f32===null||_0xad3f32===void 0x0?void 0x0:_0xad3f32[_0x556f77(0x1c3)]())||'';}}Object[_0x556f77(0x1bb)](_0x34caad)[_0x556f77(0x1c6)]>0x0&&Object['values'](_0x34caad)['filter'](_0x30eb28=>_0x30eb28!='')[_0x556f77(0x1c6)]>0x0&&_0x3632d1['push'](_0x34caad);}}}return _0x3632d1;}async[a13_0x57167c(0x1b4)](_0x2c96eb,_0x1f14f7,_0x528033,_0x36f369,_0x42154f){const _0x2afe40=a13_0x57167c;var _0x381f0e,_0x21733d,_0x4fa831;const _0x55d36a=new exceljs['Workbook'](),_0x303d67={},_0x157b20=[],_0x36514a=_0x55d36a[_0x2afe40(0x197)](_0x2afe40(0x1ad),{'views':[{'state':_0x2afe40(0x19c),'ySplit':0x1}]});for(const _0x240a0f in _0x1f14f7){_0x303d67[_0x1f14f7[_0x240a0f][_0x2afe40(0x183)]]=_0x1f14f7[_0x240a0f][_0x2afe40(0x1be)],_0x157b20['push']({'header':_0x1f14f7[_0x240a0f][_0x2afe40(0x1be)],'key':(_0x381f0e=_0x1f14f7[_0x240a0f])===null||_0x381f0e===void 0x0?void 0x0:_0x381f0e['key'][_0x2afe40(0x1cb)](/\./g,'_')});}_0x36514a[_0x2afe40(0x1c5)]=_0x157b20;for(const _0x17d756 in _0x528033){const _0x6f2d47=_0x528033[_0x17d756],_0x3d887e=_0x36514a[_0x2afe40(0x1cd)]({});for(let _0xd0bcf1 in _0x1f14f7){const _0x44efb0=_0x1f14f7[_0xd0bcf1][_0x2afe40(0x183)][_0x2afe40(0x1cb)](/\./g,'_'),_0x3d40bf=_0x36514a[_0x2afe40(0x1aa)](_0x44efb0),_0x1d662a=_0x3d887e===null||_0x3d887e===void 0x0?void 0x0:_0x3d887e[_0x2afe40(0x1b1)](_0x44efb0);if(typeof((_0x21733d=_0x1f14f7[_0xd0bcf1])===null||_0x21733d===void 0x0?void 0x0:_0x21733d['onWrite'])==_0x2afe40(0x1c8))_0x1d662a[_0x2afe40(0x1c4)]=await _0x1f14f7[_0xd0bcf1][_0x2afe40(0x190)](_0x6f2d47,{'row':_0x3d887e,'col':_0x3d40bf,'cell':_0x1d662a,'sheet':_0x36514a})||'';else typeof((_0x4fa831=_0x1f14f7[_0xd0bcf1])===null||_0x4fa831===void 0x0?void 0x0:_0x4fa831[_0x2afe40(0x1b6)])=='function'?_0x1d662a[_0x2afe40(0x1c4)]=await _0x1f14f7[_0xd0bcf1][_0x2afe40(0x1b6)](_0x6f2d47,{'row':_0x3d887e,'col':_0x3d40bf,'cell':_0x1d662a,'sheet':_0x36514a})||'':_0x1d662a['value']=lodash['get'](_0x6f2d47,_0x1f14f7[_0xd0bcf1][_0x2afe40(0x183)],'');}}typeof _0x42154f=='function'&&await _0x42154f({'workbook':_0x55d36a,'worksheet':_0x36514a});let _0x2a533f='';const _0x2306c1=_0x2c96eb+'.xlsx';if(_0x36f369&&_0x36f369[_0x2afe40(0x18e)]('/'))_0x2a533f=''+_0x36f369;else _0x36f369&&!_0x36f369['startsWith']('/')&&!_0x36f369[_0x2afe40(0x18e)]('\x5c')?_0x2a533f=this[_0x2afe40(0x1ba)][_0x2afe40(0x1bd)]()+'/'+_0x36f369:_0x2a533f=this[_0x2afe40(0x1ba)][_0x2afe40(0x1bd)]()+_0x2afe40(0x193)+dayjs()[_0x2afe40(0x191)](_0x2afe40(0x18a));return(_0x2a533f[_0x2afe40(0x18b)]('/')||_0x2a533f[_0x2afe40(0x18b)]('\x5c'))&&(_0x2a533f=_0x2a533f['substring'](0x0,_0x2a533f[_0x2afe40(0x1c6)]-0x1)),_0x2a533f=_0x2a533f[_0x2afe40(0x1cb)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x2afe40(0x1b0)](_0x2a533f)&&fs[_0x2afe40(0x1bf)](_0x2a533f,{'recursive':!![]}),await _0x55d36a[_0x2afe40(0x1ae)]['writeFile']((_0x2a533f+'/'+_0x2306c1)[_0x2afe40(0x1cb)](/(\\|\/)/g,'/')[_0x2afe40(0x1cb)](/\/{2,}/g,'/')),{'filename':_0x2306c1,'filepath':(_0x2a533f[_0x2afe40(0x19f)]((''+this[_0x2afe40(0x1ba)]['getAppDir']())[_0x2afe40(0x1c6)])+'/'+_0x2306c1)[_0x2afe40(0x1cb)](/(\\|\/)/g,'/')[_0x2afe40(0x1cb)](/\/{2,}/g,'/')};}async['stream'](_0xabb6d5,_0x500aa4={'suffix':['xls',a13_0x57167c(0x1ae)]}){const _0x2f667f=a13_0x57167c;return await ExcelStream_1[_0x2f667f(0x198)][_0x2f667f(0x189)](_0xabb6d5,_0x500aa4);}async[a13_0x57167c(0x1c0)](_0x632fcf,_0x4585a7){return await koasend(_0x632fcf,''+_0x4585a7);}};exports[a13_0x57167c(0x180)]=ExcelService,__decorate([(0x0,core_1[a13_0x57167c(0x1b7)])(),__metadata(a13_0x57167c(0x1a3),Object)],ExcelService[a13_0x57167c(0x18f)],a13_0x57167c(0x1ba),void 0x0),exports[a13_0x57167c(0x180)]=ExcelService=__decorate([(0x0,core_1[a13_0x57167c(0x17f)])(),(0x0,core_1[a13_0x57167c(0x18c)])(core_1['ScopeEnum'][a13_0x57167c(0x1bc)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x4a8cc6=a14_0x5662;(function(_0x3def9b,_0x57d9f2){const _0x5bb98=a14_0x5662,_0x1a47b5=_0x3def9b();while(!![]){try{const _0x49ef6e=-parseInt(_0x5bb98(0x183))/0x1+parseInt(_0x5bb98(0x18d))/0x2+-parseInt(_0x5bb98(0x17e))/0x3*(-parseInt(_0x5bb98(0x19b))/0x4)+-parseInt(_0x5bb98(0x185))/0x5*(-parseInt(_0x5bb98(0x19f))/0x6)+parseInt(_0x5bb98(0x1c0))/0x7+parseInt(_0x5bb98(0x1a4))/0x8+-parseInt(_0x5bb98(0x192))/0x9*(parseInt(_0x5bb98(0x1ba))/0xa);if(_0x49ef6e===_0x57d9f2)break;else _0x1a47b5['push'](_0x1a47b5['shift']());}catch(_0x224bea){_0x1a47b5['push'](_0x1a47b5['shift']());}}}(a14_0x4ba1,0x2166e));const a14_0xb72dbd=(function(){let _0x26e12c=!![];return function(_0x17b04d,_0x2124b9){const _0x561f24=_0x26e12c?function(){if(_0x2124b9){const _0xbd5799=_0x2124b9['apply'](_0x17b04d,arguments);return _0x2124b9=null,_0xbd5799;}}:function(){};return _0x26e12c=![],_0x561f24;};}()),a14_0x9017d5=a14_0xb72dbd(this,function(){const _0x3ecdb9=a14_0x5662;return a14_0x9017d5[_0x3ecdb9(0x189)]()[_0x3ecdb9(0x1b4)]('(((.+)+)+)+$')['toString']()['constructor'](a14_0x9017d5)[_0x3ecdb9(0x1b4)](_0x3ecdb9(0x1be));});a14_0x9017d5();'use strict';Object[a14_0x4a8cc6(0x1a3)](exports,a14_0x4a8cc6(0x198),{'value':!![]}),exports[a14_0x4a8cc6(0x17f)]=void 0x0;const fs=require('fs'),path=require(a14_0x4a8cc6(0x1b6)),exceljs=require(a14_0x4a8cc6(0x191));function a14_0x4ba1(){const _0x3d3857=['ExcelStream','Workbook','set','model','228885BxRYeu','col','5rtsPKq','rootpath','stream','getWriterSheet','toString','includes','isArray','writer','118580odNbCn','WorkbookWriter','commit','handler','exceljs','1170mZackF','header','row','ignore','cellCount','substring','__esModule','writeFile','sheets','14052rwdhvd','getWorksheet','getCell','length','526062GjWSbZ','startsWith','existsSync','get','defineProperty','1261552jOdske','xlsx','frozen','has','suffix','getRow','columns','WorksheetWriterMap','key','addRow','WorkbookReader','indexOf','values','isNumber','addWorksheet','value','search','xls','path','replace','error','finished','13460oebOzD','worksheets','save','function','(((.+)+)+)+$','instance','1012760Pgchtf','reader','78YhZqlg'];a14_0x4ba1=function(){return _0x3d3857;};return a14_0x4ba1();}class ExcelStream{constructor(_0x5bde0b,_0x16095f){const _0xa1ed89=a14_0x4a8cc6;this[_0xa1ed89(0x1ab)]=new Map(),(this['WorkbookWriter']=_0x5bde0b,this[_0xa1ed89(0x1ae)]=_0x16095f);}static[a14_0x4a8cc6(0x1bf)](_0x3f16cf,_0x2bbf42={'suffix':[a14_0x4a8cc6(0x1b5),a14_0x4a8cc6(0x1a5)]}){return new Promise(async(_0x1971f8,_0x1683e6)=>{const _0x2f3a5e=a14_0x5662,_0x103122=_0x3f16cf[_0x2f3a5e(0x197)]((_0x3f16cf[_0x2f3a5e(0x1af)]('/')>-0x1?_0x3f16cf['lastIndexOf']('/'):_0x3f16cf['lastIndexOf']('\x5c'))+0x1),_0x53a5d1=path['dirname'](((_0x2bbf42===null||_0x2bbf42===void 0x0?void 0x0:_0x2bbf42[_0x2f3a5e(0x186)])&&!_0x3f16cf[_0x2f3a5e(0x1a0)](_0x2bbf42[_0x2f3a5e(0x186)])?_0x2bbf42['rootpath']+'/'+_0x3f16cf:'/'+_0x3f16cf)[_0x2f3a5e(0x1b7)](/(\\|\/)/g,'/')[_0x2f3a5e(0x1b7)](/\/{2,}/g,'/'));if(!((_0x2bbf42===null||_0x2bbf42===void 0x0?void 0x0:_0x2bbf42['suffix'])?_0x2bbf42[_0x2f3a5e(0x1a8)]:[_0x2f3a5e(0x1b5),_0x2f3a5e(0x1a5)])[_0x2f3a5e(0x18a)](_0x103122[_0x2f3a5e(0x197)](_0x103122['lastIndexOf']('.')+0x1)))return _0x1683e6('文件名格式错误');if(!fs[_0x2f3a5e(0x1a1)]((_0x53a5d1+'/'+_0x103122)[_0x2f3a5e(0x1b7)](/(\\|\/)/g,'/')[_0x2f3a5e(0x1b7)](/\/{2,}/g,'/'))){!fs['existsSync'](_0x53a5d1)&&fs['mkdirSync'](_0x53a5d1,{'recursive':!![]});const _0x30194a=new exceljs[(_0x2f3a5e(0x180))]();await _0x30194a[_0x2f3a5e(0x1a5)][_0x2f3a5e(0x199)]((_0x53a5d1+'/'+_0x103122)[_0x2f3a5e(0x1b7)](/(\\|\/)/g,'/')[_0x2f3a5e(0x1b7)](/\/{2,}/g,'/'));}const _0x4195cb=new exceljs[(_0x2f3a5e(0x187))][(_0x2f3a5e(0x1a5))][(_0x2f3a5e(0x18e))]({'filename':(_0x53a5d1+'/'+_0x103122)[_0x2f3a5e(0x1b7)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x5769e6=new exceljs[(_0x2f3a5e(0x187))][(_0x2f3a5e(0x1a5))][(_0x2f3a5e(0x1ae))]((_0x53a5d1+'/'+_0x103122)[_0x2f3a5e(0x1b7)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),{'worksheets':'emit','sharedStrings':_0x2f3a5e(0x195),'hyperlinks':_0x2f3a5e(0x195),'styles':_0x2f3a5e(0x195)});return _0x1971f8(new ExcelStream(_0x4195cb,_0x5769e6));});}async[a14_0x4a8cc6(0x18c)](_0x54a4c4,_0xad1bcb,_0x530588=0x0){const _0x5e41da=a14_0x4a8cc6;var _0x34ef14,_0x4a15fc;const _0x1b79f4=await this[_0x5e41da(0x188)](_0x530588,!![]),_0x291669={},_0x2a1908=[];for(const _0x13c3cc in _0x54a4c4){_0x291669[_0x54a4c4[_0x13c3cc]['key']]=_0x54a4c4[_0x13c3cc][_0x5e41da(0x193)],_0x2a1908['push']({'header':_0x54a4c4[_0x13c3cc]['header'],'key':(_0x34ef14=_0x54a4c4[_0x13c3cc])===null||_0x34ef14===void 0x0?void 0x0:_0x34ef14[_0x5e41da(0x1ac)]['replace'](/\./g,'_')});}(_0x1b79f4===null||_0x1b79f4===void 0x0?void 0x0:_0x1b79f4[_0x5e41da(0x1aa)])!=_0x2a1908&&(_0x1b79f4[_0x5e41da(0x1aa)]=_0x2a1908);for(const _0x5c778e in _0xad1bcb){const _0x3636ad=_0xad1bcb[_0x5c778e],_0x387958=_0x1b79f4[_0x5e41da(0x1ad)]({});for(let _0x22629d in _0x54a4c4){const _0x4d4715=_0x54a4c4[_0x22629d][_0x5e41da(0x1ac)][_0x5e41da(0x1b7)](/\./g,'_'),_0x32e80e=_0x1b79f4['getColumn'](_0x4d4715),_0x124b8d=_0x387958===null||_0x387958===void 0x0?void 0x0:_0x387958[_0x5e41da(0x19d)](_0x4d4715);typeof((_0x4a15fc=_0x54a4c4[_0x22629d])===null||_0x4a15fc===void 0x0?void 0x0:_0x4a15fc['handler'])==_0x5e41da(0x1bd)?_0x124b8d[_0x5e41da(0x1b3)]=await _0x54a4c4[_0x22629d][_0x5e41da(0x190)](_0x3636ad,{'row':_0x387958,'col':_0x32e80e,'cell':_0x124b8d,'sheet':_0x1b79f4})||'':_0x124b8d[_0x5e41da(0x1b3)]=lodash[_0x5e41da(0x1a2)](_0x3636ad,_0x54a4c4[_0x22629d][_0x5e41da(0x1ac)],'');}}return this;}async[a14_0x4a8cc6(0x1c1)](_0x571ab8,_0x233f4d,_0xb8879={'sheets':0x0}){const _0x1f8586=a14_0x4a8cc6;var _0x39ebf0;const _0x450a49=(_0xb8879===null||_0xb8879===void 0x0?void 0x0:_0xb8879[_0x1f8586(0x19a)])?Array[_0x1f8586(0x18b)](_0xb8879['sheets'])?_0xb8879['sheets']:[_0xb8879[_0x1f8586(0x19a)]]:[0x0],_0x580e58=_0x2cb925=>new Promise(async(_0x4b0994,_0x4bb4c8)=>{const _0x58d483=_0x1f8586,_0x7a6d53=_0x2cb925[_0x58d483(0x1a9)](0x1),_0x1640fb=await new Promise(_0x3a2f4f=>{const _0x3b9885={};_0x7a6d53['eachCell']((_0x4776a8,_0x2c8dec)=>{const _0x24854a=a14_0x5662;for(const _0x17f542 of _0x571ab8){if(_0x4776a8[_0x24854a(0x1b3)]==_0x17f542[_0x24854a(0x193)])_0x3b9885[_0x17f542[_0x24854a(0x1ac)]]={'header':_0x4776a8[_0x24854a(0x184)],'handler':_0x17f542[_0x24854a(0x190)]};else{if(!_0x3b9885[_0x17f542[_0x24854a(0x1ac)]])try{const _0x59e756=_0x7a6d53&&_0x7a6d53[_0x24854a(0x19d)](_0x17f542[_0x24854a(0x193)]);_0x59e756&&(_0x3b9885[_0x17f542[_0x24854a(0x1ac)]]={'header':_0x59e756['col'],'handler':_0x17f542[_0x24854a(0x190)]});}catch{}}}_0x7a6d53[_0x24854a(0x196)]==_0x2c8dec&&_0x3a2f4f(_0x3b9885);});});_0x2cb925['on'](_0x58d483(0x1b9),_0x57f43e=>_0x4b0994(_0x2cb925)),_0x2cb925['on'](_0x58d483(0x1b8),_0x26ef47=>_0x4bb4c8(_0x26ef47)),_0x2cb925['on'](_0x58d483(0x194),async _0x33d687=>{const _0x1b729d=_0x58d483;var _0x2c0be9;if(typeof(_0x33d687===null||_0x33d687===void 0x0?void 0x0:_0x33d687['getCell'])==_0x1b729d(0x1bd)){const _0x2b6ee4={};_0x38f020:for(const _0x3be004 in _0x1640fb){if(_0x1640fb[_0x3be004]['header']){const _0x1b450e=_0x33d687[_0x1b729d(0x19d)](_0x1640fb[_0x3be004]['header']);if(!_0x1b450e)continue _0x38f020;try{_0x1b450e[_0x1b729d(0x189)]();}catch(_0x27146b){_0x1b450e[_0x1b729d(0x189)]=()=>{const _0x539c5c=_0x1b729d;var _0x5f018e;return''+(((_0x5f018e=_0x1b450e===null||_0x1b450e===void 0x0?void 0x0:_0x1b450e[_0x539c5c(0x182)])===null||_0x5f018e===void 0x0?void 0x0:_0x5f018e['value'])||'');};}typeof((_0x2c0be9=_0x1640fb[_0x3be004])===null||_0x2c0be9===void 0x0?void 0x0:_0x2c0be9['handler'])==_0x1b729d(0x1bd)?_0x2b6ee4[_0x3be004]=await _0x1640fb[_0x3be004][_0x1b729d(0x190)](lodash['set']({},_0x3be004,(_0x1b450e===null||_0x1b450e===void 0x0?void 0x0:_0x1b450e['toString']())||''),_0x1b450e['model']):_0x2b6ee4[_0x3be004]=(_0x1b450e===null||_0x1b450e===void 0x0?void 0x0:_0x1b450e[_0x1b729d(0x189)]())||'';}}Object['keys'](_0x2b6ee4)[_0x1b729d(0x19e)]>0x0&&Object[_0x1b729d(0x1b0)](_0x2b6ee4)['filter'](_0x20f8d0=>_0x20f8d0!='')[_0x1b729d(0x19e)]>0x0&&await _0x233f4d(_0x2b6ee4,{'sheet':_0x2cb925,'row':_0x33d687});}}),await _0x2cb925['read']();});for(const _0x5d7283 of _0x450a49){const _0x34cd5f=lodash[_0x1f8586(0x1b1)](_0x5d7283)?((_0x39ebf0=this[_0x1f8586(0x1ae)][_0x1f8586(0x1bb)])===null||_0x39ebf0===void 0x0?void 0x0:_0x39ebf0[_0x5d7283])||undefined:this[_0x1f8586(0x1ae)][_0x1f8586(0x19c)](_0x5d7283);_0x34cd5f&&await _0x580e58(_0x34cd5f);}}async[a14_0x4a8cc6(0x1bc)](){const _0x5a54b8=a14_0x4a8cc6;return await this[_0x5a54b8(0x18e)][_0x5a54b8(0x18f)](),this;}async[a14_0x4a8cc6(0x188)](_0x38f145,_0x21f766=![]){const _0x498df0=a14_0x4a8cc6;let _0x3fedc1=this[_0x498df0(0x18e)][_0x498df0(0x19c)](_0x38f145);return!_0x3fedc1&&this['WorksheetWriterMap'][_0x498df0(0x1a7)](_0x38f145)&&(_0x3fedc1=this[_0x498df0(0x1ab)][_0x498df0(0x1a2)](_0x38f145)),!_0x3fedc1&&_0x21f766&&(_0x3fedc1=this[_0x498df0(0x18e)][_0x498df0(0x1b2)](lodash[_0x498df0(0x1b1)](_0x38f145)?undefined:''+_0x38f145,{'views':[{'state':_0x498df0(0x1a6),'ySplit':0x0}]}),this[_0x498df0(0x1ab)][_0x498df0(0x181)](_0x38f145,_0x3fedc1)),_0x3fedc1;}}function a14_0x5662(_0x13dab8,_0x34781b){const _0x58261a=a14_0x4ba1();return a14_0x5662=function(_0x9017d5,_0xb72dbd){_0x9017d5=_0x9017d5-0x17e;let _0x4ba10e=_0x58261a[_0x9017d5];return _0x4ba10e;},a14_0x5662(_0x13dab8,_0x34781b);}exports[a14_0x4a8cc6(0x17f)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x1c234a=a15_0x1108;function a15_0x1108(_0x13561e,_0x32b3bc){var _0x312356=a15_0xeb06();return a15_0x1108=function(_0x4e905,_0x1c446f){_0x4e905=_0x4e905-0x1ba;var _0xeb0665=_0x312356[_0x4e905];return _0xeb0665;},a15_0x1108(_0x13561e,_0x32b3bc);}function a15_0xeb06(){var _0x1791a9=['6RyGuFi','8PolVqX','toString','ACTION_KEY','search','anncic-api:action:route','APPSCONFIG_KEY','1991040zYLlQg','AppsConfigTmp','anncic-api:action','47awRIvL','130185YHBjBQ','constructor','1580bqfEig','ACTION_ROUTE_KEY','274470jdktEZ','10nhqCCA','616350KXvkim','defineProperty','(((.+)+)+)+$','1231911VchdGY','__esModule','7390aHdEpT','1095nFgwcg'];a15_0xeb06=function(){return _0x1791a9;};return a15_0xeb06();}(function(_0xb8ac52,_0x3c5923){var _0x201710=a15_0x1108,_0x4ee60a=_0xb8ac52();while(!![]){try{var _0xf1ae09=-parseInt(_0x201710(0x1c1))/0x1*(parseInt(_0x201710(0x1cd))/0x2)+-parseInt(_0x201710(0x1ce))/0x3*(parseInt(_0x201710(0x1c4))/0x4)+parseInt(_0x201710(0x1c6))/0x5*(parseInt(_0x201710(0x1cf))/0x6)+parseInt(_0x201710(0x1c8))/0x7*(parseInt(_0x201710(0x1d0))/0x8)+parseInt(_0x201710(0x1cb))/0x9*(parseInt(_0x201710(0x1c7))/0xa)+-parseInt(_0x201710(0x1c2))/0xb+parseInt(_0x201710(0x1be))/0xc;if(_0xf1ae09===_0x3c5923)break;else _0x4ee60a['push'](_0x4ee60a['shift']());}catch(_0x513852){_0x4ee60a['push'](_0x4ee60a['shift']());}}}(a15_0xeb06,0x1c564));var a15_0x1c446f=(function(){var _0x32aa1f=!![];return function(_0x36035e,_0x39e346){var _0x4e5e09=_0x32aa1f?function(){if(_0x39e346){var _0x29b349=_0x39e346['apply'](_0x36035e,arguments);return _0x39e346=null,_0x29b349;}}:function(){};return _0x32aa1f=![],_0x4e5e09;};}()),a15_0x4e905=a15_0x1c446f(this,function(){var _0x8235f9=a15_0x1108;return a15_0x4e905[_0x8235f9(0x1d1)]()[_0x8235f9(0x1bb)](_0x8235f9(0x1ca))['toString']()[_0x8235f9(0x1c3)](a15_0x4e905)['search'](_0x8235f9(0x1ca));});a15_0x4e905();'use strict';Object[a15_0x1c234a(0x1c9)](exports,a15_0x1c234a(0x1cc),{'value':!![]}),exports['AppsConfigTmp']=exports['APPSCONFIG_KEY']=exports['ACTION_ROUTE_KEY']=exports[a15_0x1c234a(0x1ba)]=void 0x0,exports[a15_0x1c234a(0x1ba)]=a15_0x1c234a(0x1c0),exports[a15_0x1c234a(0x1c5)]=a15_0x1c234a(0x1bc),exports[a15_0x1c234a(0x1bd)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a15_0x1c234a(0x1bf)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x5e1879=a16_0x4c86;function a16_0x303e(){var _0x3a37da=['6VDNSLY','_isreverse','number','1:是;0:否','8794125AHnJVQ','(((.+)+)+)+$','_order','412848HbUnFt','trim','__decorate','getOwnPropertyDescriptor','Rule','design:type','search','min','_page','prototype','9780OhUJMf','5JWAiUh','RuleType','decorate','1376764PPQvac','__metadata','toString','644677DwufUI','defineProperty','是否倒序','4340DsQxOx','排序方式','__esModule','apply','function','30asffaM','分页数量','226960TUZFLy','PageDTO','valid','259795urjcPe','integer','第一页为1,第二页为2','constructor','metadata','length'];a16_0x303e=function(){return _0x3a37da;};return a16_0x303e();}(function(_0x463ed6,_0x6bd2c7){var _0x3cc63e=a16_0x4c86,_0x5c7405=_0x463ed6();while(!![]){try{var _0x2ecb7e=-parseInt(_0x3cc63e(0x12b))/0x1+parseInt(_0x3cc63e(0x138))/0x2*(parseInt(_0x3cc63e(0x131))/0x3)+-parseInt(_0x3cc63e(0x11b))/0x4*(-parseInt(_0x3cc63e(0x118))/0x5)+parseInt(_0x3cc63e(0x117))/0x6*(-parseInt(_0x3cc63e(0x121))/0x7)+-parseInt(_0x3cc63e(0x128))/0x8+parseInt(_0x3cc63e(0x135))/0x9+parseInt(_0x3cc63e(0x126))/0xa*(parseInt(_0x3cc63e(0x11e))/0xb);if(_0x2ecb7e===_0x6bd2c7)break;else _0x5c7405['push'](_0x5c7405['shift']());}catch(_0x3f89f0){_0x5c7405['push'](_0x5c7405['shift']());}}}(a16_0x303e,0x95394));var a16_0x19d0b0=(function(){var _0x367b37=!![];return function(_0x1d8f6b,_0x478d97){var _0x29562f=_0x367b37?function(){var _0x94f4c=a16_0x4c86;if(_0x478d97){var _0x401a2b=_0x478d97[_0x94f4c(0x124)](_0x1d8f6b,arguments);return _0x478d97=null,_0x401a2b;}}:function(){};return _0x367b37=![],_0x29562f;};}()),a16_0x31249c=a16_0x19d0b0(this,function(){var _0x296c8e=a16_0x4c86;return a16_0x31249c[_0x296c8e(0x11d)]()['search'](_0x296c8e(0x136))[_0x296c8e(0x11d)]()[_0x296c8e(0x12e)](a16_0x31249c)[_0x296c8e(0x113)](_0x296c8e(0x136));});a16_0x31249c();'use strict';var __decorate=this&&this[a16_0x5e1879(0x10f)]||function(_0x40d230,_0x2f784f,_0x1b96fa,_0x2a12bb){var _0x340334=a16_0x5e1879,_0x27b9a5=arguments[_0x340334(0x130)],_0x2a83d1=_0x27b9a5<0x3?_0x2f784f:_0x2a12bb===null?_0x2a12bb=Object[_0x340334(0x110)](_0x2f784f,_0x1b96fa):_0x2a12bb,_0xf778c0;if(typeof Reflect==='object'&&typeof Reflect[_0x340334(0x11a)]==='function')_0x2a83d1=Reflect[_0x340334(0x11a)](_0x40d230,_0x2f784f,_0x1b96fa,_0x2a12bb);else{for(var _0x1e567b=_0x40d230[_0x340334(0x130)]-0x1;_0x1e567b>=0x0;_0x1e567b--)if(_0xf778c0=_0x40d230[_0x1e567b])_0x2a83d1=(_0x27b9a5<0x3?_0xf778c0(_0x2a83d1):_0x27b9a5>0x3?_0xf778c0(_0x2f784f,_0x1b96fa,_0x2a83d1):_0xf778c0(_0x2f784f,_0x1b96fa))||_0x2a83d1;}return _0x27b9a5>0x3&&_0x2a83d1&&Object[_0x340334(0x11f)](_0x2f784f,_0x1b96fa,_0x2a83d1),_0x2a83d1;},__metadata=this&&this[a16_0x5e1879(0x11c)]||function(_0x2ea51d,_0x1deddb){var _0x133bd0=a16_0x5e1879;if(typeof Reflect==='object'&&typeof Reflect[_0x133bd0(0x12f)]===_0x133bd0(0x125))return Reflect[_0x133bd0(0x12f)](_0x2ea51d,_0x1deddb);};Object[a16_0x5e1879(0x11f)](exports,a16_0x5e1879(0x123),{'value':!![]}),exports[a16_0x5e1879(0x129)]=void 0x0;function a16_0x4c86(_0x332a11,_0x2cc7a3){var _0x5a9ba9=a16_0x303e();return a16_0x4c86=function(_0x31249c,_0x19d0b0){_0x31249c=_0x31249c-0x10e;var _0x303e14=_0x5a9ba9[_0x31249c];return _0x303e14;},a16_0x4c86(_0x332a11,_0x2cc7a3);}const validator_1=require('@anncic-api/validator');class PageDTO{}exports[a16_0x5e1879(0x129)]=PageDTO,__decorate([(0x0,validator_1[a16_0x5e1879(0x111)])('分页',validator_1[a16_0x5e1879(0x119)][a16_0x5e1879(0x133)]()[a16_0x5e1879(0x12c)]()[a16_0x5e1879(0x114)](0x1),a16_0x5e1879(0x12d)),__metadata(a16_0x5e1879(0x112),Number)],PageDTO[a16_0x5e1879(0x116)],a16_0x5e1879(0x115),void 0x0),__decorate([(0x0,validator_1[a16_0x5e1879(0x111)])(a16_0x5e1879(0x127),validator_1[a16_0x5e1879(0x119)][a16_0x5e1879(0x133)]()[a16_0x5e1879(0x12c)]()[a16_0x5e1879(0x114)](0x1)),__metadata(a16_0x5e1879(0x112),Number)],PageDTO[a16_0x5e1879(0x116)],'_size',void 0x0),__decorate([(0x0,validator_1[a16_0x5e1879(0x111)])(a16_0x5e1879(0x122),validator_1[a16_0x5e1879(0x119)]['string']()[a16_0x5e1879(0x10e)]()),__metadata(a16_0x5e1879(0x112),String)],PageDTO[a16_0x5e1879(0x116)],a16_0x5e1879(0x137),void 0x0),__decorate([(0x0,validator_1[a16_0x5e1879(0x111)])(a16_0x5e1879(0x120),validator_1[a16_0x5e1879(0x119)][a16_0x5e1879(0x133)]()[a16_0x5e1879(0x12c)]()[a16_0x5e1879(0x12a)](0x0,0x1),a16_0x5e1879(0x134)),__metadata('design:type',Number)],PageDTO[a16_0x5e1879(0x116)],a16_0x5e1879(0x132),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a17_0x58d025=a17_0x2a6c;function a17_0x2a6c(_0x4938a7,_0xb1f8f8){var _0x55a561=a17_0xaea6();return a17_0x2a6c=function(_0x165dd0,_0x33573a){_0x165dd0=_0x165dd0-0x139;var _0xaea6=_0x55a561[_0x165dd0];return _0xaea6;},a17_0x2a6c(_0x4938a7,_0xb1f8f8);}(function(_0x1f2415,_0xf2efdd){var _0x55f611=a17_0x2a6c,_0x41225c=_0x1f2415();while(!![]){try{var _0x2a4e74=-parseInt(_0x55f611(0x13d))/0x1*(-parseInt(_0x55f611(0x13e))/0x2)+-parseInt(_0x55f611(0x142))/0x3*(parseInt(_0x55f611(0x144))/0x4)+parseInt(_0x55f611(0x14b))/0x5+-parseInt(_0x55f611(0x146))/0x6*(parseInt(_0x55f611(0x13a))/0x7)+-parseInt(_0x55f611(0x147))/0x8*(parseInt(_0x55f611(0x141))/0x9)+-parseInt(_0x55f611(0x139))/0xa+parseInt(_0x55f611(0x143))/0xb;if(_0x2a4e74===_0xf2efdd)break;else _0x41225c['push'](_0x41225c['shift']());}catch(_0x5243b9){_0x41225c['push'](_0x41225c['shift']());}}}(a17_0xaea6,0xb39e1));var a17_0x33573a=(function(){var _0xf0547a=!![];return function(_0x1e9b59,_0x24e145){var _0x2db506=_0xf0547a?function(){var _0x41ae9a=a17_0x2a6c;if(_0x24e145){var _0x576e98=_0x24e145[_0x41ae9a(0x13b)](_0x1e9b59,arguments);return _0x24e145=null,_0x576e98;}}:function(){};return _0xf0547a=![],_0x2db506;};}()),a17_0x165dd0=a17_0x33573a(this,function(){var _0x3d5179=a17_0x2a6c;return a17_0x165dd0[_0x3d5179(0x14a)]()[_0x3d5179(0x13c)]('(((.+)+)+)+$')['toString']()[_0x3d5179(0x145)](a17_0x165dd0)[_0x3d5179(0x13c)](_0x3d5179(0x13f));});a17_0x165dd0();'use strict';Object[a17_0x58d025(0x148)](exports,'__esModule',{'value':!![]}),exports[a17_0x58d025(0x149)]=exports['INTERCEPT_KEY']=void 0x0,exports[a17_0x58d025(0x140)]='anncic-api:intercept';class InterceptTargetTmp{}exports[a17_0x58d025(0x149)]=InterceptTargetTmp;function a17_0xaea6(){var _0x4a29b3=['18mZdvHP','12839123xrCymB','339652MRsrAW','constructor','2092404sUgHLZ','2463416JVfYEZ','defineProperty','InterceptTargetTmp','toString','5309800DGZfxU','2723930BdNicM','28RRGVDb','apply','search','1XPayGb','1982588zINcqJ','(((.+)+)+)+$','INTERCEPT_KEY','9RWveef'];a17_0xaea6=function(){return _0x4a29b3;};return a17_0xaea6();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.70",
|
|
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.70",
|
|
21
|
+
"@anncic-api/core": "^3.4.70",
|
|
22
|
+
"@anncic-api/event": "^3.4.70",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.70",
|
|
24
|
+
"@anncic-api/validator": "^3.4.70",
|
|
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.70",
|
|
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": "4f7a5a300b9451c66326b80e3e63a7d8e10900ae"
|
|
40
40
|
}
|