anncic-api 3.4.41 → 3.4.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/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/index.d.ts +3 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x26c657=a0_0x5af4;(function(_0x3e7236,_0x45d7ae){var _0x1e2193=a0_0x5af4,_0x35acb7=_0x3e7236();while(!![]){try{var _0x24f53a=parseInt(_0x1e2193(0xb5))/0x1*(-parseInt(_0x1e2193(0xc3))/0x2)+parseInt(_0x1e2193(0xbc))/0x3+-parseInt(_0x1e2193(0xc0))/0x4*(-parseInt(_0x1e2193(0xbb))/0x5)+-parseInt(_0x1e2193(0xb4))/0x6*(-parseInt(_0x1e2193(0xc5))/0x7)+parseInt(_0x1e2193(0xc7))/0x8*(parseInt(_0x1e2193(0xb7))/0x9)+-parseInt(_0x1e2193(0xc2))/0xa+-parseInt(_0x1e2193(0xbe))/0xb;if(_0x24f53a===_0x45d7ae)break;else _0x35acb7['push'](_0x35acb7['shift']());}catch(_0x3832fa){_0x35acb7['push'](_0x35acb7['shift']());}}}(a0_0x2e8d,0x4944d));var a0_0x4c3dbe=(function(){var _0x3ac574=!![];return function(_0x83a310,_0x56b347){var _0x58d10f=_0x3ac574?function(){var _0x8c185a=a0_0x5af4;if(_0x56b347){var _0x4a3018=_0x56b347[_0x8c185a(0xc8)](_0x83a310,arguments);return _0x56b347=null,_0x4a3018;}}:function(){};return _0x3ac574=![],_0x58d10f;};}()),a0_0x2473f4=a0_0x4c3dbe(this,function(){var _0x4062bd=a0_0x5af4;return a0_0x2473f4[_0x4062bd(0xc6)]()[_0x4062bd(0xc1)]('(((.+)+)+)+$')['toString']()[_0x4062bd(0xba)](a0_0x2473f4)[_0x4062bd(0xc1)](_0x4062bd(0xc4));});function a0_0x5af4(_0x27be7d,_0x1fe5e9){var _0x4d2c46=a0_0x2e8d();return a0_0x5af4=function(_0x2473f4,_0x4c3dbe){_0x2473f4=_0x2473f4-0xb4;var _0x2e8d12=_0x4d2c46[_0x2473f4];return _0x2e8d12;},a0_0x5af4(_0x27be7d,_0x1fe5e9);}a0_0x2473f4();function a0_0x2e8d(){var _0xab212d=['dhauo1234420123gg3234901','687654hscIjD','xml','796492GTfQWM','search','3534570loPRvC','1161462bPuPYm','(((.+)+)+)+$','205982lTLGhT','toString','5408ngSoWU','apply','appDir','default','text','6hLzuwF','1BaNeTF','__esModule','6102ammkPo','defineProperty','20mb','constructor','15hrLOTL','635064BrWlBN'];a0_0x2e8d=function(){return _0xab212d;};return a0_0x2e8d();}'use strict';Object[a0_0x26c657(0xb8)](exports,a0_0x26c657(0xb6),{'value':!![]}),exports[a0_0x26c657(0xca)]=_0x142c5b=>{var _0x162413=a0_0x26c657;return{'apitest':!![],'keys':_0x142c5b['name'],'anncicapi':{'requestKey':'_token','password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x162413(0xbd)}}},'bodyParser':{'enableTypes':['json','form',_0x162413(0xcb),_0x162413(0xbf)],'formLimit':_0x162413(0xb9),'jsonLimit':_0x162413(0xb9),'textLimit':_0x162413(0xb9),'xmlLimit':_0x162413(0xb9),'enable':!![]},'upload':{'tmpdir':_0x142c5b[_0x162413(0xc9)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x24c84e=a1_0x3d69;(function(_0xef573d,_0xafff03){var _0x122f99=a1_0x3d69,_0x2821a2=_0xef573d();while(!![]){try{var _0x4779cd=-parseInt(_0x122f99(0x7c))/0x1*(parseInt(_0x122f99(0x81))/0x2)+parseInt(_0x122f99(0x8b))/0x3*(parseInt(_0x122f99(0x8d))/0x4)+parseInt(_0x122f99(0x7e))/0x5*(-parseInt(_0x122f99(0x86))/0x6)+-parseInt(_0x122f99(0x80))/0x7*(parseInt(_0x122f99(0x85))/0x8)+parseInt(_0x122f99(0x7d))/0x9*(-parseInt(_0x122f99(0x84))/0xa)+parseInt(_0x122f99(0x88))/0xb*(-parseInt(_0x122f99(0x83))/0xc)+-parseInt(_0x122f99(0x89))/0xd*(-parseInt(_0x122f99(0x87))/0xe);if(_0x4779cd===_0xafff03)break;else _0x2821a2['push'](_0x2821a2['shift']());}catch(_0x27099d){_0x2821a2['push'](_0x2821a2['shift']());}}}(a1_0x184d,0x9f57b));function a1_0x184d(){var _0x5617e6=['1665240jbCswm','44870KUUBzO','64aeoZnv','636KqvPhg','372974gmKxAg','44zzmHNz','1755xKUpzS','toString','254379VGOFng','search','4aFJwsn','constructor','apply','195193tvXxnh','2115pyEbJR','34295hEKBOb','__esModule','263984qaogch','4dLDvHf','(((.+)+)+)+$'];a1_0x184d=function(){return _0x5617e6;};return a1_0x184d();}var a1_0x5b8ddc=(function(){var _0x58bdf9=!![];return function(_0x3796ef,_0x8fb1bf){var _0x33cc68=_0x58bdf9?function(){var _0x1ced92=a1_0x3d69;if(_0x8fb1bf){var _0x4a473a=_0x8fb1bf[_0x1ced92(0x8f)](_0x3796ef,arguments);return _0x8fb1bf=null,_0x4a473a;}}:function(){};return _0x58bdf9=![],_0x33cc68;};}()),a1_0x115d3c=a1_0x5b8ddc(this,function(){var _0x17524b=a1_0x3d69;return a1_0x115d3c[_0x17524b(0x8a)]()[_0x17524b(0x8c)](_0x17524b(0x82))[_0x17524b(0x8a)]()[_0x17524b(0x8e)](a1_0x115d3c)[_0x17524b(0x8c)]('(((.+)+)+)+$');});a1_0x115d3c();function a1_0x3d69(_0x211656,_0x15888a){var _0x28aa28=a1_0x184d();return a1_0x3d69=function(_0x115d3c,_0x5b8ddc){_0x115d3c=_0x115d3c-0x7c;var _0x184d3a=_0x28aa28[_0x115d3c];return _0x184d3a;},a1_0x3d69(_0x211656,_0x15888a);}'use strict';Object['defineProperty'](exports,a1_0x24c84e(0x7f),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x5b9065=a2_0x347e;function a2_0x347e(_0x543ae4,_0xca23dc){const _0x386d24=a2_0x5c9c();return a2_0x347e=function(_0x358923,_0x5df206){_0x358923=_0x358923-0x19e;let _0x5c9c12=_0x386d24[_0x358923];return _0x5c9c12;},a2_0x347e(_0x543ae4,_0xca23dc);}function a2_0x5c9c(){const _0x4be925=['getApplications','@anncic-api/typeorm','readdirSync','@midwayjs/core','801365oHJpQH','ApiService','/runtime','toString','dir','decorate','defineProperty','@anncic-api/core','defineProperties','mkdirSync','http://','文件不存在','isString','20296hzvTKx','isDirectory','filterConfig','decorator','@anncic-api/event','parse','_matchedRouteMeta','handler','onReady','koa','/apps','routerOptions','includes','input','288570syVlNY','7457REzpuH','REQUEST_OBJ_CTX_KEY','DEFAULT','match','loggerConfig','apply','MidwayApplicationManager','https://','registerMethodHandler','ACTION_ROUTE_KEY','undefined','Types','_matchedRoute','handlerActionRoute','./types/action','800828TYrhFz','config','99pNoPbh','intercept','MidwayConfigService','string','http','devices','./config/config.production','device','apimit','ApiError','443','dirs','host','bodyXml','@midwayjs/koa','connection','createLogger','filepath','proceed','addObject','isArray','encrypted','existsSync','__metadata','environment','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','isFunction','headers','path','lastIndexOf','getConfiguration','APPSCONFIG_KEY','prototype','keys','anncic-api','module','startsWith','context','@midwayjs/upload','./service/ApiService','application','@midwayjs/cross-domain','6339672oApqav','tagName','toLowerCase','@midwayjs/static-file','length','./config/config.default','540304SgczoA','body','_UNKNOW_','forEach','metadata','MidwayDecoratorService','isDevelopmentEnvironment','get','constructor','Anncic-api\x20static-file\x20:\x20mkdir\x20','clients','function','log','/apps/','upload','/runtime/apps-','routerName','midwayLogger','target','./types/intercept','36hAlRVY','design:type','tmpdir','loggerService','12inObqj','Inject','app','requestMethod','anncic-apihelper','query','9gODnql','@anncic-api/validator','default','method','requestContext','hanlderApplications','search','getBaseDir','getAppDir','getOwnPropertyDescriptor','requestKey','(((.+)+)+)+$','args','request','10AUUMHP','HEADERS_SIGNATURE','isNull','anncicapi','getClassMetadata','req','staticFile'];a2_0x5c9c=function(){return _0x4be925;};return a2_0x5c9c();}(function(_0x4f1786,_0x3ca25d){const _0x7ab1a6=a2_0x347e,_0x4fbae3=_0x4f1786();while(!![]){try{const _0x3d5c2c=-parseInt(_0x7ab1a6(0x22d))/0x1*(parseInt(_0x7ab1a6(0x206))/0x2)+parseInt(_0x7ab1a6(0x1ee))/0x3*(parseInt(_0x7ab1a6(0x21e))/0x4)+parseInt(_0x7ab1a6(0x211))/0x5+-parseInt(_0x7ab1a6(0x1f2))/0x6*(parseInt(_0x7ab1a6(0x1a8))/0x7)+parseInt(_0x7ab1a6(0x1da))/0x8*(-parseInt(_0x7ab1a6(0x1f8))/0x9)+-parseInt(_0x7ab1a6(0x22c))/0xa*(parseInt(_0x7ab1a6(0x1aa))/0xb)+parseInt(_0x7ab1a6(0x1d4))/0xc;if(_0x3d5c2c===_0x3ca25d)break;else _0x4fbae3['push'](_0x4fbae3['shift']());}catch(_0x589622){_0x4fbae3['push'](_0x4fbae3['shift']());}}}(a2_0x5c9c,0x261db));const a2_0x5df206=(function(){let _0x309d26=!![];return function(_0x1681b0,_0x5dcd20){const _0x36f799=_0x309d26?function(){const _0xae4ee6=a2_0x347e;if(_0x5dcd20){const _0x198c8c=_0x5dcd20[_0xae4ee6(0x19e)](_0x1681b0,arguments);return _0x5dcd20=null,_0x198c8c;}}:function(){};return _0x309d26=![],_0x36f799;};}()),a2_0x358923=a2_0x5df206(this,function(){const _0x45580b=a2_0x347e;return a2_0x358923[_0x45580b(0x214)]()[_0x45580b(0x1fe)](_0x45580b(0x203))[_0x45580b(0x214)]()[_0x45580b(0x1e2)](a2_0x358923)[_0x45580b(0x1fe)](_0x45580b(0x203));});a2_0x358923();'use strict';var __decorate=this&&this['__decorate']||function(_0x3225c6,_0x3b2dd1,_0x22c4fc,_0x4cb5e8){const _0x355fc0=a2_0x347e;var _0x54c0d3=arguments[_0x355fc0(0x1d8)],_0x4ca308=_0x54c0d3<0x3?_0x3b2dd1:_0x4cb5e8===null?_0x4cb5e8=Object[_0x355fc0(0x201)](_0x3b2dd1,_0x22c4fc):_0x4cb5e8,_0x9b042a;if(typeof Reflect==='object'&&typeof Reflect[_0x355fc0(0x216)]===_0x355fc0(0x1e5))_0x4ca308=Reflect[_0x355fc0(0x216)](_0x3225c6,_0x3b2dd1,_0x22c4fc,_0x4cb5e8);else{for(var _0x38c46a=_0x3225c6[_0x355fc0(0x1d8)]-0x1;_0x38c46a>=0x0;_0x38c46a--)if(_0x9b042a=_0x3225c6[_0x38c46a])_0x4ca308=(_0x54c0d3<0x3?_0x9b042a(_0x4ca308):_0x54c0d3>0x3?_0x9b042a(_0x3b2dd1,_0x22c4fc,_0x4ca308):_0x9b042a(_0x3b2dd1,_0x22c4fc))||_0x4ca308;}return _0x54c0d3>0x3&&_0x4ca308&&Object['defineProperty'](_0x3b2dd1,_0x22c4fc,_0x4ca308),_0x4ca308;},__metadata=this&&this[a2_0x5b9065(0x1c1)]||function(_0x3a2191,_0xb5f7c5){const _0x6ae169=a2_0x5b9065;if(typeof Reflect==='object'&&typeof Reflect[_0x6ae169(0x1de)]===_0x6ae169(0x1e5))return Reflect[_0x6ae169(0x1de)](_0x3a2191,_0xb5f7c5);};Object[a2_0x5b9065(0x217)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x5b9065(0x210)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x5b9065(0x1d1)),intercept_1=require(a2_0x5b9065(0x1ed)),action_1=require(a2_0x5b9065(0x1a7)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x5b9065(0x1b8)),upload=require(a2_0x5b9065(0x1d0)),staticFile=require(a2_0x5b9065(0x1d7)),crossDomain=require(a2_0x5b9065(0x1d3)),ConfigDefault=require(a2_0x5b9065(0x1d9)),ConfigProduction=require(a2_0x5b9065(0x1b0)),anncic=require(a2_0x5b9065(0x218)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x5b9065(0x222)),anncicTypeorm=require(a2_0x5b9065(0x20e)),anncicValidator=require(a2_0x5b9065(0x1f9)),anncicHelper=require(a2_0x5b9065(0x1f6));let CustomConfiguration=class CustomConfiguration{async[a2_0x5b9065(0x226)](){const _0x23e322=a2_0x5b9065;await this[_0x23e322(0x220)](),await this[_0x23e322(0x231)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x5b9065(0x1a6)](){const _0x5de464=a2_0x5b9065,_0x27bf9d=this[_0x5de464(0x1a9)][_0x5de464(0x1c8)](),_0x4dee1d=(0x0,core_1[_0x5de464(0x20a)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};this[_0x5de464(0x221)][_0x5de464(0x1a1)](action_1[_0x5de464(0x1a2)],_0x4fa56b=>{const _0x16f2da=_0x5de464;var _0x9d1933;const _0x2ab3b5=(0x0,core_1['getClassMetadata'])(action_1[_0x16f2da(0x1c9)],action_1['AppsConfigTmp'])||{},_0x42df1c=_0x4fa56b['metadata'],_0x1ff863=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0x4fa56b[_0x16f2da(0x1ec)])||{},_0x32f2f2=((_0x9d1933=_0x1ff863===null||_0x1ff863===void 0x0?void 0x0:_0x1ff863[_0x16f2da(0x1bb)])===null||_0x9d1933===void 0x0?void 0x0:_0x9d1933['substring'](0x0,_0x1ff863[_0x16f2da(0x1bb)][_0x16f2da(0x1c7)]('.')))||'',_0x214616=(_0x1ff863===null||_0x1ff863===void 0x0?void 0x0:_0x1ff863['module'])?(_0x2ab3b5===null||_0x2ab3b5===void 0x0?void 0x0:_0x2ab3b5[_0x1ff863[_0x16f2da(0x1cd)]])||{}:{};return{'before':async _0x37b479=>{const _0x1d280a=_0x16f2da;var _0x20d940,_0x5006a6,_0x14d099,_0x17ba86;const _0x1f54c8=(_0x20d940=_0x37b479===null||_0x37b479===void 0x0?void 0x0:_0x37b479[_0x1d280a(0x1ec)])===null||_0x20d940===void 0x0?void 0x0:_0x20d940[core_2[_0x1d280a(0x22e)]],_0x3eefa1=lodash['defaultsDeep']({},_0x1f54c8[_0x1d280a(0x205)]['body']||_0x1f54c8['request'][((_0x5006a6=_0x27bf9d===null||_0x27bf9d===void 0x0?void 0x0:_0x27bf9d[_0x1d280a(0x1b7)])===null||_0x5006a6===void 0x0?void 0x0:_0x5006a6['key'])||_0x1d280a(0x1db)]||{},_0x1f54c8[_0x1d280a(0x205)][_0x1d280a(0x1f7)]||{});_0x1f54c8[_0x1d280a(0x224)]={'module':(_0x214616===null||_0x214616===void 0x0?void 0x0:_0x214616['name'])||'','routePath':''+_0x1f54c8[_0x1d280a(0x1c6)],'routeName':_0x1ff863[_0x1d280a(0x229)][_0x1d280a(0x1d5)]+'@'+_0x42df1c[_0x1d280a(0x1ea)],'routeMethod':((_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x1d280a(0x1f5)])||_0x1f54c8[_0x1d280a(0x1fb)]||'')[_0x1d280a(0x1d6)](),'routeDescription':(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c['description'])||'','filemethod':_0x32f2f2+'@'+(_0x42df1c[_0x1d280a(0x1fb)]||'')};if(_0x1f54c8&&(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x1d280a(0x1b2)]))try{const _0x3a2ab1=((_0x14d099=_0x27bf9d===null||_0x27bf9d===void 0x0?void 0x0:_0x27bf9d['anncicapi'])===null||_0x14d099===void 0x0?void 0x0:_0x14d099[_0x1d280a(0x202)])&&typeof(_0x3eefa1===null||_0x3eefa1===void 0x0?void 0x0:_0x3eefa1[_0x27bf9d[_0x1d280a(0x209)][_0x1d280a(0x202)]])=='string'?JSON[_0x1d280a(0x223)](base64_decode(_0x3eefa1[_0x27bf9d[_0x1d280a(0x209)][_0x1d280a(0x202)]])||'{}')||{}:((_0x17ba86=_0x1f54c8===null||_0x1f54c8===void 0x0?void 0x0:_0x1f54c8['request'])===null||_0x17ba86===void 0x0?void 0x0:_0x17ba86[_0x1d280a(0x1c5)])||{};if(!this[_0x1d280a(0x212)]['checksign'](_0x3a2ab1))throw new AnnError(ApiError_1[_0x1d280a(0x1b3)][_0x1d280a(0x207)]);}catch(_0x26e3b6){if(_0x26e3b6 instanceof AnnError)throw _0x26e3b6;else throw new AnnError(ApiError_1[_0x1d280a(0x1b3)][_0x1d280a(0x1dc)]);}},'around':async _0xcb59a1=>{const _0x2ab383=_0x16f2da;var _0x135c99,_0x5a6475,_0xa731c4;const _0xccd18a=(_0x135c99=_0xcb59a1===null||_0xcb59a1===void 0x0?void 0x0:_0xcb59a1[_0x2ab383(0x1ec)])===null||_0x135c99===void 0x0?void 0x0:_0x135c99[core_2[_0x2ab383(0x22e)]];if(_0xccd18a&&(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x2ab383(0x1b2)])&&((_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x2ab383(0x1ab)])||typeof(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x2ab383(0x1ab)])==_0x2ab383(0x1a3))){if(((_0x5a6475=_0xccd18a[_0x2ab383(0x1c5)])===null||_0x5a6475===void 0x0?void 0x0:_0x5a6475['device'])&&((_0xa731c4=_0x4dee1d===null||_0x4dee1d===void 0x0?void 0x0:_0x4dee1d[_0xccd18a[_0x2ab383(0x1c5)][_0x2ab383(0x1b1)]])===null||_0xa731c4===void 0x0?void 0x0:_0xa731c4['length'])>0x0)for(const _0x196468 of _0x4dee1d[_0xccd18a[_0x2ab383(0x1c5)]['device']]||[]){if(core_1[_0x2ab383(0x1a4)]['isClass'](_0x196468)){const _0x222245=await _0xccd18a[_0x2ab383(0x1fc)]['getAsync'](_0x196468);typeof(_0x222245===null||_0x222245===void 0x0?void 0x0:_0x222245[_0x2ab383(0x230)])==_0x2ab383(0x1e5)?await _0x222245[_0x2ab383(0x230)](_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1fb)])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['_matchedRoute'])?_0xccd18a[_0x2ab383(0x1fb)][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)]):undefined,_0x42df1c)&&await _0x222245[_0x2ab383(0x225)](_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1fb)])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)])?_0xccd18a[_0x2ab383(0x1fb)][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['_matchedRoute']):undefined,_0x42df1c):await _0x222245[_0x2ab383(0x225)](_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['method'])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)])?_0xccd18a[_0x2ab383(0x1fb)][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)]):undefined,_0x42df1c);}else core_1['Types'][_0x2ab383(0x1c4)](_0x196468)&&await _0x196468(_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['method'])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)])?_0xccd18a['method'][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)]):undefined,_0x42df1c);}}return await _0xcb59a1[_0x2ab383(0x1bc)](..._0xcb59a1[_0x2ab383(0x204)]);},'afterThrow':(_0x1bd09c,_0x325b37)=>{throw _0x325b37;}};});}async[a2_0x5b9065(0x1fd)](){const _0x4e1510=a2_0x5b9065,_0x47e9cd=this['config'][_0x4e1510(0x1c8)]();this[_0x4e1510(0x1d2)][_0x4e1510(0x20d)]([_0x4e1510(0x227)])[_0x4e1510(0x1dd)](_0x29a284=>{const _0x460163=_0x4e1510;(_0x29a284===null||_0x29a284===void 0x0?void 0x0:_0x29a284[_0x460163(0x1cf)])&&Object[_0x460163(0x219)](_0x29a284[_0x460163(0x1cf)],{'hosturl':{'configurable':![],'get':function(){const _0x482b91=_0x460163;var _0x5a4c81,_0x4e1b90,_0x2a4614,_0x4bf4d6;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this['host'][_0x482b91(0x1ce)](_0x482b91(0x1ae))){let _0x3916ac=this[_0x482b91(0x1b6)]['split'](':');return['80',_0x482b91(0x1b4)][_0x482b91(0x22a)](_0x3916ac===null||_0x3916ac===void 0x0?void 0x0:_0x3916ac[0x1])?''+(!!((_0x4e1b90=(_0x5a4c81=this===null||this===void 0x0?void 0x0:this[_0x482b91(0x20b)])===null||_0x5a4c81===void 0x0?void 0x0:_0x5a4c81[_0x482b91(0x1b9)])===null||_0x4e1b90===void 0x0?void 0x0:_0x4e1b90[_0x482b91(0x1bf)])||(_0x3916ac===null||_0x3916ac===void 0x0?void 0x0:_0x3916ac[0x1])==_0x482b91(0x1b4)?_0x482b91(0x1a0):'http://')+_0x3916ac[0x0]:''+(!!((_0x4bf4d6=(_0x2a4614=this===null||this===void 0x0?void 0x0:this[_0x482b91(0x20b)])===null||_0x2a4614===void 0x0?void 0x0:_0x2a4614[_0x482b91(0x1b9)])===null||_0x4bf4d6===void 0x0?void 0x0:_0x4bf4d6[_0x482b91(0x1bf)])?_0x482b91(0x1a0):_0x482b91(0x21b))+this[_0x482b91(0x1b6)];}return'';}},'ok':{'value':function(_0x244371,_0x3b7015,_0x3f8c6a=0x0){return{'code':_0x3f8c6a,'data':_0x244371,'extra':_0x3b7015};}},'input':{'value':function(_0x1dc60e,_0x3ba4c4){const _0x479739=_0x460163;var _0x48d4d4;const _0x28a640=lodash['defaultsDeep']({},this['request'][_0x479739(0x1db)]||this[_0x479739(0x205)][((_0x48d4d4=_0x47e9cd===null||_0x47e9cd===void 0x0?void 0x0:_0x47e9cd[_0x479739(0x1b7)])===null||_0x48d4d4===void 0x0?void 0x0:_0x48d4d4['key'])||_0x479739(0x1db)]||{},this[_0x479739(0x205)][_0x479739(0x1f7)]||{});return _0x1dc60e?lodash[_0x479739(0x1e1)](_0x28a640,_0x1dc60e,_0x3ba4c4):_0x28a640;}},'when':{'value':async function(_0x1d054a,_0x31fb39){const _0x3e2b69=_0x460163,_0x3c7b53=this[_0x3e2b69(0x22b)](_0x1d054a,null);if(!lodash[_0x3e2b69(0x208)](_0x3c7b53))return await _0x31fb39(_0x3c7b53);}},'only':{'value':function(_0x5018f2){const _0x10ba48=_0x460163,_0x471e3f={};for(let _0x2ff1d9=0x0;_0x2ff1d9<_0x5018f2[_0x10ba48(0x1d8)];_0x2ff1d9++){lodash[_0x10ba48(0x1be)](_0x5018f2[_0x2ff1d9])&&_0x5018f2[_0x2ff1d9][_0x10ba48(0x1d8)]>0x0&&lodash[_0x10ba48(0x21d)](_0x5018f2[_0x2ff1d9][0x0])&&(_0x471e3f[_0x5018f2[_0x2ff1d9][0x0]]=this['input'](_0x5018f2[_0x2ff1d9][0x0],_0x5018f2[_0x2ff1d9][_0x10ba48(0x1d8)]>0x1?_0x5018f2[_0x2ff1d9][0x1]:null));}return _0x471e3f;}},'koasend':{'value':async function(_0x16cde2,_0x315e96){const _0x33f8dc=_0x460163;if(_0x16cde2&&!fs[_0x33f8dc(0x1c0)](_0x16cde2)&&!fs[_0x33f8dc(0x1c0)](this[_0x33f8dc(0x1f4)][_0x33f8dc(0x200)]()+'/'+_0x16cde2))return _0x33f8dc(0x21c);return _0x16cde2=fs[_0x33f8dc(0x1c0)](_0x16cde2)?_0x16cde2:this[_0x33f8dc(0x1f4)][_0x33f8dc(0x200)]()+'/'+_0x16cde2,this['attachment'](_0x315e96||_0x16cde2),await koasend(this,_0x16cde2);}}});});}async[a2_0x5b9065(0x231)](){const _0x550cd1=a2_0x5b9065;var _0x48578a,_0x59b153;if(fs[_0x550cd1(0x1c0)](this[_0x550cd1(0x1f4)][_0x550cd1(0x1ff)]()+_0x550cd1(0x228))&&fs['statSync'](this[_0x550cd1(0x1f4)]['getBaseDir']()+_0x550cd1(0x228))['isDirectory']()){const _0x394890=this[_0x550cd1(0x1a9)][_0x550cd1(0x1c8)](),_0x5b9cab=((_0x48578a=_0x394890===null||_0x394890===void 0x0?void 0x0:_0x394890[_0x550cd1(0x1eb)])===null||_0x48578a===void 0x0?void 0x0:_0x48578a[_0x550cd1(0x1e4)])||{};for(const _0x741914 of fs[_0x550cd1(0x20f)](this[_0x550cd1(0x1f4)]['getBaseDir']()+_0x550cd1(0x228))){if(!fs['statSync'](this[_0x550cd1(0x1f4)][_0x550cd1(0x1ff)]()+_0x550cd1(0x1e7)+_0x741914)[_0x550cd1(0x21f)]())continue;!(_0x5b9cab===null||_0x5b9cab===void 0x0?void 0x0:_0x5b9cab[_0x741914])&&(_0x5b9cab[_0x741914]=Object['assign']({},((_0x59b153=_0x394890===null||_0x394890===void 0x0?void 0x0:_0x394890[_0x550cd1(0x1eb)])===null||_0x59b153===void 0x0?void 0x0:_0x59b153[_0x550cd1(0x1fa)])||{'maxSize':'1m','dir':this[_0x550cd1(0x1f4)][_0x550cd1(0x200)]()+_0x550cd1(0x213)},{'enableJSON':!![],'enableConsole':this['environment'][_0x550cd1(0x1e0)](),'fileLogName':_0x741914+'.log','dir':this[_0x550cd1(0x1f4)][_0x550cd1(0x200)]()+_0x550cd1(0x1e9)+_0x741914})),this[_0x550cd1(0x1f1)][_0x550cd1(0x1ba)](_0x741914,_0x5b9cab[_0x741914]);}Object['keys'](_0x5b9cab)[_0x550cd1(0x1d8)]>0x0&&(!_0x394890['midwayLogger']&&(_0x394890[_0x550cd1(0x1eb)]={'default':{'maxSize':'1m','dir':this[_0x550cd1(0x1f4)][_0x550cd1(0x200)]()+_0x550cd1(0x213)}}),_0x394890[_0x550cd1(0x1eb)][_0x550cd1(0x1e4)]=_0x5b9cab),this[_0x550cd1(0x1a9)][_0x550cd1(0x1bd)](_0x394890);}}async[a2_0x5b9065(0x220)](){const _0x173234=a2_0x5b9065;var _0x528b74,_0x21d304,_0x501487,_0x7a7a80,_0x49b3a6,_0x50db98;const _0x471a02=this[_0x173234(0x1a9)][_0x173234(0x1c8)]();((_0x21d304=(_0x528b74=_0x471a02===null||_0x471a02===void 0x0?void 0x0:_0x471a02['anncicapi'])===null||_0x528b74===void 0x0?void 0x0:_0x528b74[_0x173234(0x1af)])===null||_0x21d304===void 0x0?void 0x0:_0x21d304['DEFAULT'])&&Object[_0x173234(0x1cb)](_0x471a02[_0x173234(0x209)]['devices'])['length']>0x1&&delete _0x471a02[_0x173234(0x209)][_0x173234(0x1af)][_0x173234(0x22f)];if((_0x501487=_0x471a02===null||_0x471a02===void 0x0?void 0x0:_0x471a02['staticFile'])===null||_0x501487===void 0x0?void 0x0:_0x501487['dirs'])for(const _0x20949a in _0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)]){((_0x7a7a80=_0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)][_0x20949a])===null||_0x7a7a80===void 0x0?void 0x0:_0x7a7a80['dir'])&&typeof((_0x49b3a6=_0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)][_0x20949a])===null||_0x49b3a6===void 0x0?void 0x0:_0x49b3a6[_0x173234(0x215)])==_0x173234(0x1ad)&&!fs[_0x173234(0x1c0)](_0x471a02['staticFile']['dirs'][_0x20949a]['dir'])&&(fs['mkdirSync'](_0x471a02[_0x173234(0x20c)]['dirs'][_0x20949a][_0x173234(0x215)],{'recursive':!![]}),console[_0x173234(0x1e6)](_0x173234(0x1e3)+_0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)][_0x20949a][_0x173234(0x215)]));}((_0x50db98=_0x471a02===null||_0x471a02===void 0x0?void 0x0:_0x471a02['upload'])===null||_0x50db98===void 0x0?void 0x0:_0x50db98[_0x173234(0x1f0)])&&!fs[_0x173234(0x1c0)](_0x471a02[_0x173234(0x1e8)][_0x173234(0x1f0)])&&(fs[_0x173234(0x21a)](_0x471a02[_0x173234(0x1e8)][_0x173234(0x1f0)],{'recursive':!![]}),console['log'](_0x173234(0x1c3)+_0x471a02[_0x173234(0x1e8)][_0x173234(0x1f0)])),this['config'][_0x173234(0x1bd)](_0x471a02);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x1f4),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x5b9065(0x1ac)])],CustomConfiguration['prototype'],a2_0x5b9065(0x1a9),void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),core_2[a2_0x5b9065(0x1df)])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x221),void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),core_2[a2_0x5b9065(0x19f)])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x1d2),void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x1c2),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x5b9065(0x1ef),core_1['MidwayLoggerService'])],CustomConfiguration[a2_0x5b9065(0x1ca)],'loggerService',void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),ApiService_1['ApiService'])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x212),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x5b9065(0x1cc),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
function a2_0x5144(_0x29ddb8,_0x3fec10){const _0x5d4a83=a2_0x3fa2();return a2_0x5144=function(_0x119727,_0xea5ee1){_0x119727=_0x119727-0x162;let _0x3fa2b8=_0x5d4a83[_0x119727];return _0x3fa2b8;},a2_0x5144(_0x29ddb8,_0x3fec10);}const a2_0x392bf1=a2_0x5144;(function(_0x1c082d,_0x3e8539){const _0x4d6bef=a2_0x5144,_0x5e098c=_0x1c082d();while(!![]){try{const _0x1454f7=parseInt(_0x4d6bef(0x17e))/0x1*(parseInt(_0x4d6bef(0x1d6))/0x2)+-parseInt(_0x4d6bef(0x18e))/0x3*(-parseInt(_0x4d6bef(0x1da))/0x4)+-parseInt(_0x4d6bef(0x1a4))/0x5*(-parseInt(_0x4d6bef(0x1a2))/0x6)+parseInt(_0x4d6bef(0x197))/0x7+-parseInt(_0x4d6bef(0x18c))/0x8+parseInt(_0x4d6bef(0x1f5))/0x9*(-parseInt(_0x4d6bef(0x182))/0xa)+-parseInt(_0x4d6bef(0x1e8))/0xb;if(_0x1454f7===_0x3e8539)break;else _0x5e098c['push'](_0x5e098c['shift']());}catch(_0x4d4e25){_0x5e098c['push'](_0x5e098c['shift']());}}}(a2_0x3fa2,0x3a31f));const a2_0xea5ee1=(function(){let _0x13929d=!![];return function(_0x585425,_0x361110){const _0x38c637=_0x13929d?function(){const _0x31be4b=a2_0x5144;if(_0x361110){const _0x1387d5=_0x361110[_0x31be4b(0x1c1)](_0x585425,arguments);return _0x361110=null,_0x1387d5;}}:function(){};return _0x13929d=![],_0x38c637;};}()),a2_0x119727=a2_0xea5ee1(this,function(){const _0x246b24=a2_0x5144;return a2_0x119727[_0x246b24(0x18b)]()[_0x246b24(0x1d0)](_0x246b24(0x1dc))['toString']()[_0x246b24(0x1fd)](a2_0x119727)['search'](_0x246b24(0x1dc));});function a2_0x3fa2(){const _0x23a265=['constructor','log','Configuration','__decorate','isDirectory','environment','./types/intercept','config','clients','__metadata','Inject','CustomConfiguration','filterConfig','./types/action','encrypted','MidwayDecoratorService','checksign','keys','headers','method','substring','length','key','createLogger','input','mkdirSync','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','Types','getConfiguration','169445koWqpv','match','app','object','10pLylOF','intercept','http','host','proceed','attachment','文件不存在','staticFile','connection','toString','3305624SyUurr','anncic-apihelper','9LkLBYq','application','getApplications','./service/ApiService','function','_matchedRouteMeta','@midwayjs/static-file','request','InterceptTargetTmp','2418038YwMVLB','addObject','APPSCONFIG_KEY','target','ACTION_KEY','./config/config.default','prototype','isFunction','requestMethod','devices','@anncic-api/core','18DEXbTx','/apps','21245XtaEEe','./exception/ApiError','/runtime/apps-','description','includes','default','startsWith','undefined','MidwayConfigService','isClass','design:type','upload','defineProperty','@anncic-api/typeorm','readdirSync','toLowerCase','443','AppsConfigTmp','Anncic-api\x20static-file\x20:\x20mkdir\x20','koa-send','tmpdir','statSync','decorate','getOwnPropertyDescriptor','DEFAULT','string','INTERCEPT_KEY','@midwayjs/koa','ApiService','apply','req','defaultsDeep','existsSync','query','http://','handlerActionRoute','bodyXml','MidwayApplicationManager','@midwayjs/core','./config/config.production','getBaseDir','name','filepath','dirs','search','requestKey','lastIndexOf','https://','decorator','isNull','2VxZRFY','midwayLogger','handler','apimit','415804BnYXlZ','@anncic-api/cache','(((.+)+)+)+$','args','anncicapi','@midwayjs/upload','HEADERS_SIGNATURE','registerMethodHandler','REQUEST_OBJ_CTX_KEY','ApiError','module','_matchedRoute','/runtime','_UNKNOW_','1267981andJgp','body','getAppDir','get','parse','hanlderApplications','routerName','@anncic-api/validator','context','forEach','dir','getAsync','loggerConfig','653742zUSLkg','isDevelopmentEnvironment','device','App','metadata','getClassMetadata','defineProperties','requestContext'];a2_0x3fa2=function(){return _0x23a265;};return a2_0x3fa2();}a2_0x119727();'use strict';var __decorate=this&&this[a2_0x392bf1(0x164)]||function(_0x3c2ed2,_0x5ebe6d,_0x246fce,_0x37b144){const _0x58faf8=a2_0x392bf1;var _0x50e1e4=arguments[_0x58faf8(0x176)],_0x551ccf=_0x50e1e4<0x3?_0x5ebe6d:_0x37b144===null?_0x37b144=Object[_0x58faf8(0x1bb)](_0x5ebe6d,_0x246fce):_0x37b144,_0x4a3e5a;if(typeof Reflect==='object'&&typeof Reflect[_0x58faf8(0x1ba)]===_0x58faf8(0x192))_0x551ccf=Reflect['decorate'](_0x3c2ed2,_0x5ebe6d,_0x246fce,_0x37b144);else{for(var _0x50d5fd=_0x3c2ed2[_0x58faf8(0x176)]-0x1;_0x50d5fd>=0x0;_0x50d5fd--)if(_0x4a3e5a=_0x3c2ed2[_0x50d5fd])_0x551ccf=(_0x50e1e4<0x3?_0x4a3e5a(_0x551ccf):_0x50e1e4>0x3?_0x4a3e5a(_0x5ebe6d,_0x246fce,_0x551ccf):_0x4a3e5a(_0x5ebe6d,_0x246fce))||_0x551ccf;}return _0x50e1e4>0x3&&_0x551ccf&&Object[_0x58faf8(0x1b0)](_0x5ebe6d,_0x246fce,_0x551ccf),_0x551ccf;},__metadata=this&&this[a2_0x392bf1(0x16a)]||function(_0x1cb3ae,_0x40e00d){const _0x539611=a2_0x392bf1;if(typeof Reflect===_0x539611(0x181)&&typeof Reflect[_0x539611(0x1f9)]===_0x539611(0x192))return Reflect[_0x539611(0x1f9)](_0x1cb3ae,_0x40e00d);};Object[a2_0x392bf1(0x1b0)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x392bf1(0x1ca)),core_2=require(a2_0x392bf1(0x1ca)),ApiError_1=require(a2_0x392bf1(0x1a5)),ApiService_1=require(a2_0x392bf1(0x191)),intercept_1=require(a2_0x392bf1(0x167)),action_1=require(a2_0x392bf1(0x16e)),fs=require('fs'),koasend=require(a2_0x392bf1(0x1b7)),koa=require(a2_0x392bf1(0x1bf)),upload=require(a2_0x392bf1(0x1df)),staticFile=require(a2_0x392bf1(0x194)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x392bf1(0x19c)),ConfigProduction=require(a2_0x392bf1(0x1cb)),anncic=require(a2_0x392bf1(0x1a1)),anncicCache=require(a2_0x392bf1(0x1db)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x392bf1(0x1b1)),anncicValidator=require(a2_0x392bf1(0x1ef)),anncicHelper=require(a2_0x392bf1(0x18d));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x474e00=a2_0x392bf1;await this['filterConfig'](),await this['loggerConfig'](),await this[_0x474e00(0x1c7)](),await this[_0x474e00(0x1ed)]();}async[a2_0x392bf1(0x1c7)](){const _0x6f022a=a2_0x392bf1,_0x37a62b=this[_0x6f022a(0x168)][_0x6f022a(0x17d)](),_0x4dbca3=(0x0,core_1[_0x6f022a(0x1fa)])(intercept_1[_0x6f022a(0x1be)],intercept_1[_0x6f022a(0x196)])||{};this['decorator'][_0x6f022a(0x1e1)](action_1['ACTION_ROUTE_KEY'],_0x3af775=>{const _0x69da56=_0x6f022a;var _0x303985;const _0x56c6a3=(0x0,core_1[_0x69da56(0x1fa)])(action_1[_0x69da56(0x199)],action_1[_0x69da56(0x1b5)])||{},_0xe3d7b=_0x3af775[_0x69da56(0x1f9)],_0x341fae=(0x0,core_1[_0x69da56(0x1fa)])(action_1[_0x69da56(0x19b)],_0x3af775[_0x69da56(0x19a)])||{},_0x499b61=((_0x303985=_0x341fae===null||_0x341fae===void 0x0?void 0x0:_0x341fae['filepath'])===null||_0x303985===void 0x0?void 0x0:_0x303985[_0x69da56(0x175)](0x0,_0x341fae[_0x69da56(0x1ce)][_0x69da56(0x1d2)]('.')))||'',_0x56c6ef=(_0x341fae===null||_0x341fae===void 0x0?void 0x0:_0x341fae[_0x69da56(0x1e4)])?(_0x56c6a3===null||_0x56c6a3===void 0x0?void 0x0:_0x56c6a3[_0x341fae[_0x69da56(0x1e4)]])||{}:{};return{'before':async _0x379936=>{const _0x151aa1=_0x69da56;var _0x3773e2,_0x1590e7,_0x4991cf,_0x218a3e;const _0x45a1b3=(_0x3773e2=_0x379936===null||_0x379936===void 0x0?void 0x0:_0x379936[_0x151aa1(0x19a)])===null||_0x3773e2===void 0x0?void 0x0:_0x3773e2[core_2['REQUEST_OBJ_CTX_KEY']],_0xd05d42=lodash[_0x151aa1(0x1c3)]({},_0x45a1b3[_0x151aa1(0x195)][_0x151aa1(0x1e9)]||_0x45a1b3[_0x151aa1(0x195)][((_0x1590e7=_0x37a62b===null||_0x37a62b===void 0x0?void 0x0:_0x37a62b[_0x151aa1(0x1c8)])===null||_0x1590e7===void 0x0?void 0x0:_0x1590e7[_0x151aa1(0x177)])||_0x151aa1(0x1e9)]||{},_0x45a1b3['request']['query']||{});_0x45a1b3[_0x151aa1(0x193)]={'module':(_0x56c6ef===null||_0x56c6ef===void 0x0?void 0x0:_0x56c6ef[_0x151aa1(0x1cd)])||'','routePath':''+_0x45a1b3['path'],'routeName':_0x341fae['routerOptions']['tagName']+'@'+_0xe3d7b[_0x151aa1(0x1ee)],'routeMethod':((_0xe3d7b===null||_0xe3d7b===void 0x0?void 0x0:_0xe3d7b[_0x151aa1(0x19f)])||_0x45a1b3[_0x151aa1(0x174)]||'')[_0x151aa1(0x1b3)](),'routeDescription':(_0xe3d7b===null||_0xe3d7b===void 0x0?void 0x0:_0xe3d7b[_0x151aa1(0x1a7)])||'','filemethod':_0x499b61+'@'+(_0xe3d7b[_0x151aa1(0x174)]||'')};if(_0x45a1b3&&(_0xe3d7b===null||_0xe3d7b===void 0x0?void 0x0:_0xe3d7b[_0x151aa1(0x1d9)]))try{const _0x15a69b=((_0x4991cf=_0x37a62b===null||_0x37a62b===void 0x0?void 0x0:_0x37a62b[_0x151aa1(0x1de)])===null||_0x4991cf===void 0x0?void 0x0:_0x4991cf[_0x151aa1(0x1d1)])&&typeof(_0xd05d42===null||_0xd05d42===void 0x0?void 0x0:_0xd05d42[_0x37a62b[_0x151aa1(0x1de)][_0x151aa1(0x1d1)]])==_0x151aa1(0x1bd)?JSON[_0x151aa1(0x1ec)](base64_decode(_0xd05d42[_0x37a62b[_0x151aa1(0x1de)][_0x151aa1(0x1d1)]])||'{}')||{}:((_0x218a3e=_0x45a1b3===null||_0x45a1b3===void 0x0?void 0x0:_0x45a1b3[_0x151aa1(0x195)])===null||_0x218a3e===void 0x0?void 0x0:_0x218a3e[_0x151aa1(0x173)])||{};if(!this[_0x151aa1(0x1c0)][_0x151aa1(0x171)](_0x15a69b))throw new AnnError(ApiError_1[_0x151aa1(0x1e3)][_0x151aa1(0x1e0)]);}catch(_0x281bf1){if(_0x281bf1 instanceof AnnError)throw _0x281bf1;else throw new AnnError(ApiError_1[_0x151aa1(0x1e3)][_0x151aa1(0x1e7)]);}},'around':async _0x41661e=>{const _0x43cdd5=_0x69da56;var _0x249736,_0x305d8e,_0x12c650;const _0x1975aa=(_0x249736=_0x41661e===null||_0x41661e===void 0x0?void 0x0:_0x41661e[_0x43cdd5(0x19a)])===null||_0x249736===void 0x0?void 0x0:_0x249736[core_2[_0x43cdd5(0x1e2)]];if(_0x1975aa&&(_0xe3d7b===null||_0xe3d7b===void 0x0?void 0x0:_0xe3d7b[_0x43cdd5(0x1d9)])&&((_0xe3d7b===null||_0xe3d7b===void 0x0?void 0x0:_0xe3d7b[_0x43cdd5(0x183)])||typeof(_0xe3d7b===null||_0xe3d7b===void 0x0?void 0x0:_0xe3d7b['intercept'])==_0x43cdd5(0x1ab))){if(((_0x305d8e=_0x1975aa[_0x43cdd5(0x173)])===null||_0x305d8e===void 0x0?void 0x0:_0x305d8e[_0x43cdd5(0x1f7)])&&((_0x12c650=_0x4dbca3===null||_0x4dbca3===void 0x0?void 0x0:_0x4dbca3[_0x1975aa[_0x43cdd5(0x173)]['device']])===null||_0x12c650===void 0x0?void 0x0:_0x12c650['length'])>0x0)for(const _0x44b3ac of _0x4dbca3[_0x1975aa[_0x43cdd5(0x173)]['device']]||[]){if(core_1[_0x43cdd5(0x17c)][_0x43cdd5(0x1ad)](_0x44b3ac)){const _0x30c856=await _0x1975aa[_0x43cdd5(0x1fc)][_0x43cdd5(0x1f3)](_0x44b3ac);typeof(_0x30c856===null||_0x30c856===void 0x0?void 0x0:_0x30c856[_0x43cdd5(0x17f)])==_0x43cdd5(0x192)?await _0x30c856['match'](_0x1975aa,typeof(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x174)])==_0x43cdd5(0x1bd)&&(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)])?_0x1975aa[_0x43cdd5(0x174)][_0x43cdd5(0x1b3)]()+'@'+(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)]):undefined,_0xe3d7b)&&await _0x30c856[_0x43cdd5(0x1d8)](_0x1975aa,typeof(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x174)])==_0x43cdd5(0x1bd)&&(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)])?_0x1975aa[_0x43cdd5(0x174)][_0x43cdd5(0x1b3)]()+'@'+(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)]):undefined,_0xe3d7b):await _0x30c856['handler'](_0x1975aa,typeof(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x174)])==_0x43cdd5(0x1bd)&&(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa['_matchedRoute'])?_0x1975aa[_0x43cdd5(0x174)][_0x43cdd5(0x1b3)]()+'@'+(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)]):undefined,_0xe3d7b);}else core_1[_0x43cdd5(0x17c)][_0x43cdd5(0x19e)](_0x44b3ac)&&await _0x44b3ac(_0x1975aa,typeof(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa['method'])=='string'&&(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)])?_0x1975aa[_0x43cdd5(0x174)][_0x43cdd5(0x1b3)]()+'@'+(_0x1975aa===null||_0x1975aa===void 0x0?void 0x0:_0x1975aa[_0x43cdd5(0x1e5)]):undefined,_0xe3d7b);}}return await _0x41661e[_0x43cdd5(0x186)](..._0x41661e[_0x43cdd5(0x1dd)]);},'afterThrow':(_0x211f2f,_0x536118)=>{throw _0x536118;}};});}async[a2_0x392bf1(0x1ed)](){const _0x59db27=a2_0x392bf1,_0xa3a8a2=this[_0x59db27(0x168)][_0x59db27(0x17d)]();this[_0x59db27(0x18f)][_0x59db27(0x190)](['koa'])[_0x59db27(0x1f1)](_0x1e93c5=>{const _0x2ec723=_0x59db27;(_0x1e93c5===null||_0x1e93c5===void 0x0?void 0x0:_0x1e93c5[_0x2ec723(0x1f0)])&&Object[_0x2ec723(0x1fb)](_0x1e93c5[_0x2ec723(0x1f0)],{'hosturl':{'configurable':![],'get':function(){const _0x150a17=_0x2ec723;var _0xd4d05c,_0x299bb6,_0x31644e,_0x5b2613;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x150a17(0x185)][_0x150a17(0x1aa)](_0x150a17(0x184))){let _0x24aeaa=this[_0x150a17(0x185)]['split'](':');return['80','443'][_0x150a17(0x1a8)](_0x24aeaa===null||_0x24aeaa===void 0x0?void 0x0:_0x24aeaa[0x1])?''+(!!((_0x299bb6=(_0xd4d05c=this===null||this===void 0x0?void 0x0:this[_0x150a17(0x1c2)])===null||_0xd4d05c===void 0x0?void 0x0:_0xd4d05c[_0x150a17(0x18a)])===null||_0x299bb6===void 0x0?void 0x0:_0x299bb6[_0x150a17(0x16f)])||(_0x24aeaa===null||_0x24aeaa===void 0x0?void 0x0:_0x24aeaa[0x1])==_0x150a17(0x1b4)?_0x150a17(0x1d3):_0x150a17(0x1c6))+_0x24aeaa[0x0]:''+(!!((_0x5b2613=(_0x31644e=this===null||this===void 0x0?void 0x0:this[_0x150a17(0x1c2)])===null||_0x31644e===void 0x0?void 0x0:_0x31644e[_0x150a17(0x18a)])===null||_0x5b2613===void 0x0?void 0x0:_0x5b2613[_0x150a17(0x16f)])?_0x150a17(0x1d3):_0x150a17(0x1c6))+this[_0x150a17(0x185)];}return'';}},'ok':{'value':function(_0x241927,_0x2d5fc8,_0x599681=0x0){return{'code':_0x599681,'data':_0x241927,'extra':_0x2d5fc8};}},'input':{'value':function(_0x1be915,_0x18633d){const _0xa9084d=_0x2ec723;var _0x4bc58b;const _0x1da70f=lodash[_0xa9084d(0x1c3)]({},this[_0xa9084d(0x195)][_0xa9084d(0x1e9)]||this[_0xa9084d(0x195)][((_0x4bc58b=_0xa3a8a2===null||_0xa3a8a2===void 0x0?void 0x0:_0xa3a8a2['bodyXml'])===null||_0x4bc58b===void 0x0?void 0x0:_0x4bc58b[_0xa9084d(0x177)])||_0xa9084d(0x1e9)]||{},this[_0xa9084d(0x195)][_0xa9084d(0x1c5)]||{});return _0x1be915?lodash[_0xa9084d(0x1eb)](_0x1da70f,_0x1be915,_0x18633d):_0x1da70f;}},'when':{'value':async function(_0x38cf01,_0x1daf8a){const _0x1bdc33=_0x2ec723,_0x1cd860=this['input'](_0x38cf01,null);if(!lodash[_0x1bdc33(0x1d5)](_0x1cd860))return await _0x1daf8a(_0x1cd860);}},'only':{'value':function(_0x4a4c90){const _0x1501c3=_0x2ec723,_0x285199={};for(let _0x31e527=0x0;_0x31e527<_0x4a4c90[_0x1501c3(0x176)];_0x31e527++){lodash['isArray'](_0x4a4c90[_0x31e527])&&_0x4a4c90[_0x31e527][_0x1501c3(0x176)]>0x0&&lodash['isString'](_0x4a4c90[_0x31e527][0x0])&&(_0x285199[_0x4a4c90[_0x31e527][0x0]]=this[_0x1501c3(0x179)](_0x4a4c90[_0x31e527][0x0],_0x4a4c90[_0x31e527][_0x1501c3(0x176)]>0x1?_0x4a4c90[_0x31e527][0x1]:null));}return _0x285199;}},'koasend':{'value':async function(_0x7911a1,_0x3dd0ec){const _0x5393ec=_0x2ec723;if(_0x7911a1&&!fs[_0x5393ec(0x1c4)](_0x7911a1)&&!fs[_0x5393ec(0x1c4)](this[_0x5393ec(0x180)][_0x5393ec(0x1ea)]()+'/'+_0x7911a1))return _0x5393ec(0x188);return _0x7911a1=fs[_0x5393ec(0x1c4)](_0x7911a1)?_0x7911a1:this[_0x5393ec(0x180)][_0x5393ec(0x1ea)]()+'/'+_0x7911a1,this[_0x5393ec(0x187)](_0x3dd0ec||_0x7911a1),await koasend(this,_0x7911a1);}}});});}async[a2_0x392bf1(0x1f4)](){const _0x339ee4=a2_0x392bf1;var _0x5eae80,_0x258796;if(fs['existsSync'](this[_0x339ee4(0x180)][_0x339ee4(0x1cc)]()+_0x339ee4(0x1a3))&&fs[_0x339ee4(0x1b9)](this[_0x339ee4(0x180)][_0x339ee4(0x1cc)]()+_0x339ee4(0x1a3))[_0x339ee4(0x165)]()){const _0x3521cc=this[_0x339ee4(0x168)][_0x339ee4(0x17d)](),_0x133e8b=((_0x5eae80=_0x3521cc===null||_0x3521cc===void 0x0?void 0x0:_0x3521cc[_0x339ee4(0x1d7)])===null||_0x5eae80===void 0x0?void 0x0:_0x5eae80[_0x339ee4(0x169)])||{};for(const _0x1f2c96 of fs[_0x339ee4(0x1b2)](this[_0x339ee4(0x180)][_0x339ee4(0x1cc)]()+_0x339ee4(0x1a3))){if(!fs['statSync'](this[_0x339ee4(0x180)][_0x339ee4(0x1cc)]()+'/apps/'+_0x1f2c96)['isDirectory']())continue;!(_0x133e8b===null||_0x133e8b===void 0x0?void 0x0:_0x133e8b[_0x1f2c96])&&(_0x133e8b[_0x1f2c96]=Object['assign']({},((_0x258796=_0x3521cc===null||_0x3521cc===void 0x0?void 0x0:_0x3521cc[_0x339ee4(0x1d7)])===null||_0x258796===void 0x0?void 0x0:_0x258796[_0x339ee4(0x1a9)])||{'maxSize':'1m','dir':this[_0x339ee4(0x180)][_0x339ee4(0x1ea)]()+_0x339ee4(0x1e6)},{'enableJSON':!![],'enableConsole':this[_0x339ee4(0x166)][_0x339ee4(0x1f6)](),'fileLogName':_0x1f2c96+'.log','dir':this[_0x339ee4(0x180)]['getAppDir']()+_0x339ee4(0x1a6)+_0x1f2c96})),this['loggerService'][_0x339ee4(0x178)](_0x1f2c96,_0x133e8b[_0x1f2c96]);}Object[_0x339ee4(0x172)](_0x133e8b)[_0x339ee4(0x176)]>0x0&&(!_0x3521cc[_0x339ee4(0x1d7)]&&(_0x3521cc[_0x339ee4(0x1d7)]={'default':{'maxSize':'1m','dir':this[_0x339ee4(0x180)][_0x339ee4(0x1ea)]()+_0x339ee4(0x1e6)}}),_0x3521cc[_0x339ee4(0x1d7)][_0x339ee4(0x169)]=_0x133e8b),this['config'][_0x339ee4(0x198)](_0x3521cc);}}async[a2_0x392bf1(0x16d)](){const _0x14a0e0=a2_0x392bf1;var _0x4bf6bc,_0x58636c,_0x1a3c5a,_0x53c3b2,_0x5c4c23,_0x8d1bf;const _0x3bcfea=this[_0x14a0e0(0x168)]['getConfiguration']();((_0x58636c=(_0x4bf6bc=_0x3bcfea===null||_0x3bcfea===void 0x0?void 0x0:_0x3bcfea[_0x14a0e0(0x1de)])===null||_0x4bf6bc===void 0x0?void 0x0:_0x4bf6bc[_0x14a0e0(0x1a0)])===null||_0x58636c===void 0x0?void 0x0:_0x58636c[_0x14a0e0(0x1bc)])&&Object[_0x14a0e0(0x172)](_0x3bcfea['anncicapi'][_0x14a0e0(0x1a0)])['length']>0x1&&delete _0x3bcfea['anncicapi'][_0x14a0e0(0x1a0)]['DEFAULT'];if((_0x1a3c5a=_0x3bcfea===null||_0x3bcfea===void 0x0?void 0x0:_0x3bcfea['staticFile'])===null||_0x1a3c5a===void 0x0?void 0x0:_0x1a3c5a[_0x14a0e0(0x1cf)])for(const _0x3fed61 in _0x3bcfea[_0x14a0e0(0x189)][_0x14a0e0(0x1cf)]){((_0x53c3b2=_0x3bcfea['staticFile']['dirs'][_0x3fed61])===null||_0x53c3b2===void 0x0?void 0x0:_0x53c3b2[_0x14a0e0(0x1f2)])&&typeof((_0x5c4c23=_0x3bcfea['staticFile'][_0x14a0e0(0x1cf)][_0x3fed61])===null||_0x5c4c23===void 0x0?void 0x0:_0x5c4c23[_0x14a0e0(0x1f2)])==_0x14a0e0(0x1bd)&&!fs[_0x14a0e0(0x1c4)](_0x3bcfea[_0x14a0e0(0x189)]['dirs'][_0x3fed61][_0x14a0e0(0x1f2)])&&(fs[_0x14a0e0(0x17a)](_0x3bcfea['staticFile'][_0x14a0e0(0x1cf)][_0x3fed61][_0x14a0e0(0x1f2)],{'recursive':!![]}),console[_0x14a0e0(0x162)](_0x14a0e0(0x1b6)+_0x3bcfea['staticFile'][_0x14a0e0(0x1cf)][_0x3fed61]['dir']));}((_0x8d1bf=_0x3bcfea===null||_0x3bcfea===void 0x0?void 0x0:_0x3bcfea[_0x14a0e0(0x1af)])===null||_0x8d1bf===void 0x0?void 0x0:_0x8d1bf[_0x14a0e0(0x1b8)])&&!fs[_0x14a0e0(0x1c4)](_0x3bcfea[_0x14a0e0(0x1af)][_0x14a0e0(0x1b8)])&&(fs['mkdirSync'](_0x3bcfea['upload'][_0x14a0e0(0x1b8)],{'recursive':!![]}),console['log'](_0x14a0e0(0x17b)+_0x3bcfea[_0x14a0e0(0x1af)][_0x14a0e0(0x1b8)])),this[_0x14a0e0(0x168)][_0x14a0e0(0x198)](_0x3bcfea);}};exports[a2_0x392bf1(0x16c)]=CustomConfiguration,__decorate([(0x0,core_1[a2_0x392bf1(0x1f8)])(),__metadata(a2_0x392bf1(0x1ae),Object)],CustomConfiguration[a2_0x392bf1(0x19d)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x392bf1(0x16b)])(),__metadata('design:type',core_2[a2_0x392bf1(0x1ac)])],CustomConfiguration[a2_0x392bf1(0x19d)],a2_0x392bf1(0x168),void 0x0),__decorate([(0x0,core_1[a2_0x392bf1(0x16b)])(),__metadata(a2_0x392bf1(0x1ae),core_2[a2_0x392bf1(0x170)])],CustomConfiguration[a2_0x392bf1(0x19d)],a2_0x392bf1(0x1d4),void 0x0),__decorate([(0x0,core_1[a2_0x392bf1(0x16b)])(),__metadata('design:type',core_2[a2_0x392bf1(0x1c9)])],CustomConfiguration[a2_0x392bf1(0x19d)],a2_0x392bf1(0x18f),void 0x0),__decorate([(0x0,core_1[a2_0x392bf1(0x16b)])(),__metadata(a2_0x392bf1(0x1ae),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x392bf1(0x19d)],a2_0x392bf1(0x166),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x392bf1(0x1ae),core_1['MidwayLoggerService'])],CustomConfiguration[a2_0x392bf1(0x19d)],'loggerService',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x392bf1(0x1ae),ApiService_1[a2_0x392bf1(0x1c0)])],CustomConfiguration[a2_0x392bf1(0x19d)],a2_0x392bf1(0x1c0),void 0x0),exports[a2_0x392bf1(0x16c)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x392bf1(0x163)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x6db539=a3_0x2bbe;(function(_0x4f9a90,_0x23d5e4){const _0x1c2b0c=a3_0x2bbe,_0x2ba910=_0x4f9a90();while(!![]){try{const _0x4960de=-parseInt(_0x1c2b0c(0xbc))/0x1*(parseInt(_0x1c2b0c(0x9e))/0x2)+parseInt(_0x1c2b0c(0x82))/0x3*(-parseInt(_0x1c2b0c(0xaf))/0x4)+-parseInt(_0x1c2b0c(0xb5))/0x5+parseInt(_0x1c2b0c(0x9a))/0x6+-parseInt(_0x1c2b0c(0x76))/0x7*(-parseInt(_0x1c2b0c(0x7f))/0x8)+-parseInt(_0x1c2b0c(0x80))/0x9*(-parseInt(_0x1c2b0c(0x81))/0xa)+parseInt(_0x1c2b0c(0x73))/0xb*(parseInt(_0x1c2b0c(0x71))/0xc);if(_0x4960de===_0x23d5e4)break;else _0x2ba910['push'](_0x2ba910['shift']());}catch(_0x501018){_0x2ba910['push'](_0x2ba910['shift']());}}}(a3_0x3c56,0xcade2));const a3_0x444732=(function(){let _0x25231e=!![];return function(_0x247a85,_0x559d1b){const _0x475cc8=_0x25231e?function(){const _0x3152ed=a3_0x2bbe;if(_0x559d1b){const _0x4e7fce=_0x559d1b[_0x3152ed(0x7b)](_0x247a85,arguments);return _0x559d1b=null,_0x4e7fce;}}:function(){};return _0x25231e=![],_0x475cc8;};}()),a3_0x2e311b=a3_0x444732(this,function(){const _0x24c74a=a3_0x2bbe;return a3_0x2e311b[_0x24c74a(0x94)]()[_0x24c74a(0xa1)]('(((.+)+)+)+$')[_0x24c74a(0x94)]()[_0x24c74a(0x83)](a3_0x2e311b)[_0x24c74a(0xa1)](_0x24c74a(0xbf));});a3_0x2e311b();function a3_0x2bbe(_0x5b5e56,_0x2b320d){const _0x2da8e1=a3_0x3c56();return a3_0x2bbe=function(_0x2e311b,_0x444732){_0x2e311b=_0x2e311b-0x6f;let _0x3c56d5=_0x2da8e1[_0x2e311b];return _0x3c56d5;},a3_0x2bbe(_0x5b5e56,_0x2b320d);}function a3_0x3c56(){const _0x518b8d=['264aqCtqN','/apps/','__esModule','env','apimit','/controller/文件下','4293055pSbOCe','/controller/','saveClassMetadata','-controller','join','-action','ACTION_KEY','677rxzueW','@anncic-api/validator','saveModule','(((.+)+)+)+$','validate','prefix','getClassMetadata','../types/action','basic/controller/','splice','627084cnBwNU','indexOf','363LdBnXE','APPSCONFIG_KEY','NODE_ENV','7wUvxhT','parseRoute','rootpath','ACTION_ROUTE_KEY','trim','apply','Validator','toLowerCase','split','1626448pHnOfp','8116803zqSCQb','10rNBXzB','16728AuyoRH','constructor','startsWith','existsSync','filepath','replace','middlewareIgnore','substring','middleware','@midwayjs/core','/config.','routerName','endsWith','AppsConfigTmp','apps/','Controller','filter','module','toString','createCustomMethodDecorator','get','assign','keys','RequestMapping','1854528XUtfFN','\x20文件请放在apps/','tagName','length','3194AHilcH','isArray','app/controller/','search','defaultsDeep','match','route','intercept','cwd','description','Action','undefined','/apps','validationOptions','defineProperty','attachClassMetadata','string'];a3_0x3c56=function(){return _0x518b8d;};return a3_0x3c56();}'use strict';var _a,_b;Object[a3_0x6db539(0xac)](exports,a3_0x6db539(0xb1),{'value':!![]}),exports[a3_0x6db539(0xa8)]=Action,exports['ActionApi']=ActionApi,exports[a3_0x6db539(0x77)]=parseRoute;const fs=require('fs'),validator_1=require(a3_0x6db539(0xbd)),core_1=require(a3_0x6db539(0x8b)),core_2=require('@midwayjs/core'),action_1=require(a3_0x6db539(0xc3)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x6db539(0xb2)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a3_0x6db539(0x75)]);function Action(_0x1e41e2,_0x5ce79f,_0x421b3f={'middleware':[],'sensitive':!![]}){return _0x4602b7=>{const _0x15a94e=a3_0x2bbe;var _0x3866b2;_0x421b3f[_0x15a94e(0x9c)]=_0x5ce79f;const _0x5ca9ef=parseRoute(_0x1e41e2);if(_0x5ca9ef['module']){_0x421b3f['prefix']=_0x421b3f[_0x15a94e(0xc1)]?'/'+_0x5ca9ef['module']+'/'+_0x421b3f[_0x15a94e(0xc1)]:'/'+_0x5ca9ef[_0x15a94e(0xa4)];_0x5ca9ef['prefix']&&(_0x421b3f[_0x15a94e(0xc1)]='/'+_0x5ca9ef[_0x15a94e(0xc1)]+'/'+_0x421b3f[_0x15a94e(0xc1)]);_0x421b3f[_0x15a94e(0xc1)]=_0x421b3f[_0x15a94e(0xc1)][_0x15a94e(0x7d)]()['replace'](/\/{2,}/g,'/');const _0x122a19=getModuleConfig(_0x5ca9ef[_0x15a94e(0x78)]+_0x15a94e(0xaa),_0x5ca9ef[_0x15a94e(0x93)],lodash[_0x15a94e(0x8e)](_0x5ca9ef[_0x15a94e(0x86)],'ts')?'ts':'js');if(lodash[_0x15a94e(0x9f)](_0x122a19[_0x15a94e(0x8a)])&&_0x122a19['middleware'][_0x15a94e(0x9d)]>0x0)for(let _0x449d9b in _0x122a19['middleware']){if(((_0x3866b2=_0x122a19===null||_0x122a19===void 0x0?void 0x0:_0x122a19[_0x15a94e(0x88)])===null||_0x3866b2===void 0x0?void 0x0:_0x3866b2['length'])>0x0&&_0x122a19[_0x15a94e(0x88)][_0x15a94e(0x72)](_0x122a19[_0x15a94e(0x8a)][_0x449d9b])!=-0x1)continue;_0x421b3f[_0x15a94e(0x8a)]['push'](_0x122a19[_0x15a94e(0x8a)][_0x449d9b]);}(0x0,core_1['saveModule'])(action_1[_0x15a94e(0xbb)],_0x4602b7),(0x0,core_1[_0x15a94e(0x91)])(_0x421b3f[_0x15a94e(0xc1)],_0x421b3f)(_0x4602b7),(0x0,core_1[_0x15a94e(0xb7)])(action_1[_0x15a94e(0xbb)],{'prefix':_0x421b3f['prefix'],'pprefix':_0x5ca9ef['prefix'],'module':_0x5ca9ef['module'],'filepath':_0x5ca9ef[_0x15a94e(0x86)],'routerOptions':_0x421b3f},_0x4602b7);}else _0x421b3f[_0x15a94e(0xc1)]=_0x421b3f[_0x15a94e(0xc1)]?'/'+_0x421b3f[_0x15a94e(0xc1)]:'/'+_0x5ca9ef['route'],_0x5ca9ef[_0x15a94e(0xc1)]&&(_0x421b3f['prefix']='/'+_0x5ca9ef[_0x15a94e(0xc1)]+'/'+_0x421b3f[_0x15a94e(0xc1)]),_0x421b3f['prefix']=_0x421b3f['prefix'][_0x15a94e(0x7d)]()[_0x15a94e(0x87)](/\/{2,}/g,'/'),(0x0,core_1[_0x15a94e(0xbe)])(action_1[_0x15a94e(0xbb)],_0x4602b7),(0x0,core_1[_0x15a94e(0x91)])(_0x421b3f[_0x15a94e(0xc1)],_0x421b3f)(_0x4602b7),(0x0,core_1[_0x15a94e(0xb7)])(action_1[_0x15a94e(0xbb)],{'prefix':_0x421b3f[_0x15a94e(0xc1)],'module':_0x5ca9ef[_0x15a94e(0x93)],'pprefix':_0x5ca9ef[_0x15a94e(0xc1)],'filepath':_0x5ca9ef[_0x15a94e(0x86)],'routerOptions':_0x421b3f},_0x4602b7);};}Action['get']=function(_0x71fa63,_0x2b73c3='/',_0x1b4d58={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x349f8d,_0x70562b,_0x4a4ffe)=>{const _0x53e612=a3_0x2bbe;ActionApi(_0x71fa63,_0x53e612(0x96),_0x2b73c3,_0x1b4d58)(_0x349f8d,_0x70562b,_0x4a4ffe);};},Action['post']=function(_0x52b3f6,_0x14fff6='/',_0x570197={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1881e4,_0x15c7cd,_0x260b15)=>{ActionApi(_0x52b3f6,'post',_0x14fff6,_0x570197)(_0x1881e4,_0x15c7cd,_0x260b15);};};function ActionApi(_0x387bd0,_0x5d936e=a3_0x6db539(0x96),_0x4f83f0='/',_0x3b9244={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x63bca8,_0x19c721,_0x2f787a)=>{const _0x1d0bf7=a3_0x2bbe;var _0x21e6ea,_0x5a2e2e,_0x439fa7;!_0x3b9244['middleware']&&(_0x3b9244[_0x1d0bf7(0x8a)]=[]);!((_0x21e6ea=_0x3b9244===null||_0x3b9244===void 0x0?void 0x0:_0x3b9244[_0x1d0bf7(0xc0)])===null||_0x21e6ea===void 0x0?void 0x0:_0x21e6ea[_0x1d0bf7(0xab)])&&(_0x3b9244[_0x1d0bf7(0xc0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1d0bf7(0xae)}});if(!_0x4f83f0)_0x4f83f0='/';else typeof _0x4f83f0==_0x1d0bf7(0xae)&&(!_0x4f83f0[_0x1d0bf7(0x84)]('/')&&!_0x4f83f0['startsWith']('-')&&(_0x4f83f0='/'+_0x4f83f0));typeof _0x3b9244[_0x1d0bf7(0xb3)]==_0x1d0bf7(0xa9)&&(_0x3b9244[_0x1d0bf7(0xb3)]=!![]);if(((_0x5a2e2e=_0x3b9244===null||_0x3b9244===void 0x0?void 0x0:_0x3b9244[_0x1d0bf7(0x8a)])===null||_0x5a2e2e===void 0x0?void 0x0:_0x5a2e2e[_0x1d0bf7(0x9d)])>0x0&&((_0x439fa7=_0x3b9244===null||_0x3b9244===void 0x0?void 0x0:_0x3b9244['middlewareIgnore'])===null||_0x439fa7===void 0x0?void 0x0:_0x439fa7['length'])>0x0)for(let _0x1271d5 in _0x3b9244[_0x1d0bf7(0x8a)]){_0x3b9244[_0x1d0bf7(0x88)][_0x1d0bf7(0x72)](_0x3b9244[_0x1d0bf7(0x8a)][_0x1271d5])!==-0x1&&(_0x3b9244['middleware'][_0x1271d5]=null);}_0x3b9244['routerName']=_0x387bd0,(0x0,validator_1[_0x1d0bf7(0x7c)])(_0x3b9244['validate'])(_0x63bca8,_0x19c721,_0x2f787a),(0x0,core_2[_0x1d0bf7(0x99)])(Object[_0x1d0bf7(0x97)](_0x3b9244,{'path':_0x4f83f0,'requestMethod':(_0x5d936e||'get')[_0x1d0bf7(0x7d)]()}))(_0x63bca8,_0x19c721,_0x2f787a),(0x0,core_2[_0x1d0bf7(0xad)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x4f83f0,'method':_0x19c721,'apimit':_0x3b9244[_0x1d0bf7(0xb3)],'intercept':_0x3b9244['intercept'],'routerName':_0x3b9244[_0x1d0bf7(0x8d)],'description':_0x3b9244[_0x1d0bf7(0xa7)],'middleware':(_0x3b9244[_0x1d0bf7(0x8a)]||[])['filter'](_0x5e69b7=>!!_0x5e69b7),'requestMethod':(_0x5d936e||'get')[_0x1d0bf7(0x7d)]()},_0x63bca8),(0x0,core_2[_0x1d0bf7(0x95)])(action_1[_0x1d0bf7(0x79)],{'path':_0x4f83f0,'method':_0x19c721,'apimit':_0x3b9244['apimit'],'intercept':_0x3b9244[_0x1d0bf7(0xa5)],'routerName':_0x3b9244[_0x1d0bf7(0x8d)],'description':_0x3b9244[_0x1d0bf7(0xa7)],'middleware':(_0x3b9244[_0x1d0bf7(0x8a)]||[])[_0x1d0bf7(0x92)](_0x4cd860=>!!_0x4cd860),'requestMethod':(_0x5d936e||_0x1d0bf7(0x96))[_0x1d0bf7(0x7d)]()})(_0x63bca8,_0x19c721,_0x2f787a);};}function parseRoute(_0x4fb32a){const _0x5c455c=a3_0x6db539;_0x4fb32a=_0x4fb32a[_0x5c455c(0x87)](/(\\|\/)/g,'/');const _0xd78a0f=process[_0x5c455c(0xa6)]()['replace'](/(\\|\/)/g,'/'),_0x390fde=_0x4fb32a[_0x5c455c(0x89)](0x0,_0xd78a0f['length']+_0x4fb32a[_0x5c455c(0x89)](_0xd78a0f[_0x5c455c(0x9d)]+0x1)[_0x5c455c(0x72)]('/')+0x1),_0x260103=_0x4fb32a[_0x5c455c(0x89)](_0x390fde[_0x5c455c(0x9d)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x5896af={'route':'','prefix':![],'module':![],'rootpath':_0x390fde,'filepath':_0x260103};if(_0x260103[_0x5c455c(0x84)](_0x5c455c(0xa0))||_0x260103[_0x5c455c(0x84)](_0x5c455c(0x6f))){const _0x182a40=_0x260103[_0x5c455c(0x89)]((_0x260103['startsWith']('app/controller/')?_0x5c455c(0xa0):_0x5c455c(0x6f))[_0x5c455c(0x9d)])[_0x5c455c(0x7e)]('/')[_0x5c455c(0x92)](_0x3e3e32=>_0x3e3e32&&_0x3e3e32[_0x5c455c(0x7a)]());return _0x182a40[_0x5c455c(0x9d)]>0x1&&(_0x5896af[_0x5c455c(0xc1)]=_0x182a40[0x0][_0x5c455c(0x7d)](),_0x182a40[_0x5c455c(0x70)](0x0,0x1)),_0x5896af[_0x5c455c(0xa4)]=('/'+_0x182a40[_0x5c455c(0xb9)]('/'))[_0x5c455c(0x87)](/(\.ts|\.js)$/,'')[_0x5c455c(0x87)](/\/{2,}/g,'/')[_0x5c455c(0xa3)](/[\/|A-Z]*[^A-Z]+/g)[_0x5c455c(0xb9)]('-')[_0x5c455c(0x7d)]()[_0x5c455c(0x87)](/\/\-/g,'/'),_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x8e)]('-action')&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x89)](0x0,_0x5896af['route'][_0x5c455c(0x9d)]-0x7)),_0x5896af['route'][_0x5c455c(0x8e)]('-controller')&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x89)](0x0,_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x9d)]-0xb)),_0x5896af;}else{if(_0x260103[_0x5c455c(0x84)](_0x5c455c(0x90))){const _0x52583c=_0x260103[_0x5c455c(0x89)](0x0,_0x260103['indexOf'](_0x5c455c(0xb0))+0x5),_0x5a04ee=_0x260103[_0x5c455c(0x89)](_0x52583c[_0x5c455c(0x9d)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x5c455c(0x7e)]('/')[0x0];if(_0x260103[_0x5c455c(0x84)](_0x5c455c(0x90)+_0x5a04ee+_0x5c455c(0xb6))){const _0x25d4dc=_0x260103[_0x5c455c(0x89)]((_0x52583c+'/'+_0x5a04ee+_0x5c455c(0xb6))[_0x5c455c(0x9d)])['split']('/')['filter'](_0xec1ec2=>_0xec1ec2&&_0xec1ec2[_0x5c455c(0x7a)]());return _0x25d4dc[_0x5c455c(0x9d)]>0x1&&(_0x5896af[_0x5c455c(0xc1)]=_0x25d4dc[0x0][_0x5c455c(0x7d)](),_0x25d4dc[_0x5c455c(0x70)](0x0,0x1)),_0x5896af[_0x5c455c(0x93)]=_0x5a04ee,_0x5896af[_0x5c455c(0xa4)]=('/'+_0x5a04ee+'/'+_0x25d4dc['join']('/'))[_0x5c455c(0x87)](/(\.ts|\.js)$/,'')[_0x5c455c(0x87)](/\/{2,}/g,'/')[_0x5c455c(0xa3)](/[\/|A-Z]*[^A-Z]+/g)[_0x5c455c(0xb9)]('-')[_0x5c455c(0x7d)]()[_0x5c455c(0x87)](/\/\-/g,'/'),_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x8e)](_0x5c455c(0xba))&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af['route']['substring'](0x0,_0x5896af['route'][_0x5c455c(0x9d)]-0x7)),_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x8e)](_0x5c455c(0xb8))&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af[_0x5c455c(0xa4)]['substring'](0x0,_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x9d)]-0xb)),_0x5896af;}throw new Error(_0x260103+_0x5c455c(0x9b)+_0x5a04ee+_0x5c455c(0xb4));}}throw new Error(_0x260103+'\x20文件请放在app/controller/文件下');}const moduleConfigTmp=(0x0,core_1[a3_0x6db539(0xc2)])(action_1[a3_0x6db539(0x74)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x45ed5e,_0x48a312,_0x2b8c08){const _0x3c0cb9=a3_0x6db539;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x48a312])){let _0x3caa66={};if(NODE_ENV&&fs[_0x3c0cb9(0x85)](_0x45ed5e+'/'+_0x48a312+_0x3c0cb9(0x8c)+NODE_ENV+'.'+_0x2b8c08)){const _0x82cfe8=include(_0x45ed5e+'/'+_0x48a312+'/config.'+NODE_ENV+'.'+_0x2b8c08);Object[_0x3c0cb9(0x98)](_0x82cfe8)[_0x3c0cb9(0x9d)]>0x0&&(_0x3caa66=lodash[_0x3c0cb9(0xa2)](_0x3caa66,_0x82cfe8));}if(fs[_0x3c0cb9(0x85)](_0x45ed5e+'/config.'+_0x2b8c08)){const _0x396ec1=include(_0x45ed5e+_0x3c0cb9(0x8c)+_0x2b8c08);Object[_0x3c0cb9(0x98)](_0x396ec1)[_0x3c0cb9(0x9d)]>0x0&&(_0x3caa66=lodash[_0x3c0cb9(0xa2)](_0x3caa66,_0x396ec1));}moduleConfigTmp[_0x48a312]=_0x3caa66,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1[_0x3c0cb9(0x8f)]);}return moduleConfigTmp[_0x48a312];}
|
|
1
|
+
const a3_0x2a6be8=a3_0x3dec;(function(_0x2c7fb0,_0x52aa3a){const _0x2c0c7b=a3_0x3dec,_0x1d00e1=_0x2c7fb0();while(!![]){try{const _0x584453=parseInt(_0x2c0c7b(0x1c3))/0x1*(-parseInt(_0x2c0c7b(0x1c5))/0x2)+-parseInt(_0x2c0c7b(0x1a3))/0x3+-parseInt(_0x2c0c7b(0x17b))/0x4*(-parseInt(_0x2c0c7b(0x18f))/0x5)+parseInt(_0x2c0c7b(0x190))/0x6+parseInt(_0x2c0c7b(0x1b4))/0x7*(parseInt(_0x2c0c7b(0x182))/0x8)+-parseInt(_0x2c0c7b(0x1a2))/0x9*(parseInt(_0x2c0c7b(0x173))/0xa)+parseInt(_0x2c0c7b(0x1ae))/0xb;if(_0x584453===_0x52aa3a)break;else _0x1d00e1['push'](_0x1d00e1['shift']());}catch(_0x8f4bf5){_0x1d00e1['push'](_0x1d00e1['shift']());}}}(a3_0x4b32,0x4df6b));function a3_0x3dec(_0x266cc9,_0x5575d7){const _0x62243c=a3_0x4b32();return a3_0x3dec=function(_0x2be0c9,_0x471726){_0x2be0c9=_0x2be0c9-0x173;let _0x4b325a=_0x62243c[_0x2be0c9];return _0x4b325a;},a3_0x3dec(_0x266cc9,_0x5575d7);}const a3_0x471726=(function(){let _0x58af71=!![];return function(_0x3f4884,_0x316ca9){const _0x4d5b92=_0x58af71?function(){const _0x1515d6=a3_0x3dec;if(_0x316ca9){const _0x34ec79=_0x316ca9[_0x1515d6(0x17e)](_0x3f4884,arguments);return _0x316ca9=null,_0x34ec79;}}:function(){};return _0x58af71=![],_0x4d5b92;};}()),a3_0x2be0c9=a3_0x471726(this,function(){const _0x4fc1b5=a3_0x3dec;return a3_0x2be0c9[_0x4fc1b5(0x198)]()[_0x4fc1b5(0x18a)]('(((.+)+)+)+$')['toString']()[_0x4fc1b5(0x192)](a3_0x2be0c9)[_0x4fc1b5(0x18a)]('(((.+)+)+)+$');});a3_0x2be0c9();'use strict';var _a,_b;Object[a3_0x2a6be8(0x181)](exports,a3_0x2a6be8(0x19c),{'value':!![]}),exports[a3_0x2a6be8(0x17a)]=Action,exports[a3_0x2a6be8(0x17f)]=ActionApi,exports[a3_0x2a6be8(0x1b7)]=parseRoute;const fs=require('fs'),validator_1=require(a3_0x2a6be8(0x1b9)),core_1=require(a3_0x2a6be8(0x1af)),core_2=require(a3_0x2a6be8(0x1af)),action_1=require(a3_0x2a6be8(0x1bc)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x2a6be8(0x18d)])===null||_a===void 0x0?void 0x0:_a[a3_0x2a6be8(0x1c4)])||((_b=process===null||process===void 0x0?void 0x0:process[a3_0x2a6be8(0x18d)])===null||_b===void 0x0?void 0x0:_b[a3_0x2a6be8(0x176)]);function Action(_0x1f20de,_0x559327,_0x522486={'middleware':[],'sensitive':!![]}){return _0x314a8b=>{const _0x27f5af=a3_0x3dec;var _0xb07224;_0x522486[_0x27f5af(0x18c)]=_0x559327;const _0x28a7bd=parseRoute(_0x1f20de);if(_0x28a7bd[_0x27f5af(0x1ad)]){_0x522486[_0x27f5af(0x174)]=_0x522486['prefix']?'/'+_0x28a7bd['module']+'/'+_0x522486[_0x27f5af(0x174)]:'/'+_0x28a7bd[_0x27f5af(0x187)];_0x28a7bd[_0x27f5af(0x174)]&&(_0x522486['prefix']='/'+_0x28a7bd[_0x27f5af(0x174)]+'/'+_0x522486['prefix']);_0x522486[_0x27f5af(0x174)]=_0x522486[_0x27f5af(0x174)][_0x27f5af(0x179)]()[_0x27f5af(0x196)](/\/{2,}/g,'/');const _0x4bc134=getModuleConfig(_0x28a7bd[_0x27f5af(0x1ab)]+'/apps',_0x28a7bd[_0x27f5af(0x1ad)],lodash[_0x27f5af(0x195)](_0x28a7bd[_0x27f5af(0x193)],'ts')?'ts':'js');if(lodash[_0x27f5af(0x19f)](_0x4bc134[_0x27f5af(0x18e)])&&_0x4bc134[_0x27f5af(0x18e)][_0x27f5af(0x1c0)]>0x0)for(let _0x3fe64f in _0x4bc134[_0x27f5af(0x18e)]){if(((_0xb07224=_0x4bc134===null||_0x4bc134===void 0x0?void 0x0:_0x4bc134[_0x27f5af(0x1a1)])===null||_0xb07224===void 0x0?void 0x0:_0xb07224[_0x27f5af(0x1c0)])>0x0&&_0x4bc134[_0x27f5af(0x1a1)][_0x27f5af(0x1aa)](_0x4bc134['middleware'][_0x3fe64f])!=-0x1)continue;_0x522486['middleware'][_0x27f5af(0x1a5)](_0x4bc134[_0x27f5af(0x18e)][_0x3fe64f]);}(0x0,core_1[_0x27f5af(0x19e)])(action_1['ACTION_KEY'],_0x314a8b),(0x0,core_1[_0x27f5af(0x19d)])(_0x522486[_0x27f5af(0x174)],_0x522486)(_0x314a8b),(0x0,core_1['saveClassMetadata'])(action_1[_0x27f5af(0x18b)],{'prefix':_0x522486['prefix'],'pprefix':_0x28a7bd[_0x27f5af(0x174)],'module':_0x28a7bd[_0x27f5af(0x1ad)],'filepath':_0x28a7bd[_0x27f5af(0x193)],'routerOptions':_0x522486},_0x314a8b);}else _0x522486['prefix']=_0x522486[_0x27f5af(0x174)]?'/'+_0x522486[_0x27f5af(0x174)]:'/'+_0x28a7bd[_0x27f5af(0x187)],_0x28a7bd['prefix']&&(_0x522486[_0x27f5af(0x174)]='/'+_0x28a7bd[_0x27f5af(0x174)]+'/'+_0x522486['prefix']),_0x522486['prefix']=_0x522486[_0x27f5af(0x174)][_0x27f5af(0x179)]()[_0x27f5af(0x196)](/\/{2,}/g,'/'),(0x0,core_1[_0x27f5af(0x19e)])(action_1[_0x27f5af(0x18b)],_0x314a8b),(0x0,core_1[_0x27f5af(0x19d)])(_0x522486[_0x27f5af(0x174)],_0x522486)(_0x314a8b),(0x0,core_1[_0x27f5af(0x1ba)])(action_1['ACTION_KEY'],{'prefix':_0x522486[_0x27f5af(0x174)],'module':_0x28a7bd[_0x27f5af(0x1ad)],'pprefix':_0x28a7bd[_0x27f5af(0x174)],'filepath':_0x28a7bd[_0x27f5af(0x193)],'routerOptions':_0x522486},_0x314a8b);};}Action[a3_0x2a6be8(0x178)]=function(_0x5eb3e7,_0x3414be='/',_0x4f25c3={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5c1a9e,_0x5bbf11,_0x407943)=>{const _0x4b2ac2=a3_0x3dec;ActionApi(_0x5eb3e7,_0x4b2ac2(0x178),_0x3414be,_0x4f25c3)(_0x5c1a9e,_0x5bbf11,_0x407943);};},Action['post']=function(_0x54870d,_0x2afc27='/',_0x4f7be1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1c39a7,_0x3d4c25,_0x1773fe)=>{ActionApi(_0x54870d,'post',_0x2afc27,_0x4f7be1)(_0x1c39a7,_0x3d4c25,_0x1773fe);};};function ActionApi(_0x4bda56,_0x47e0c0=a3_0x2a6be8(0x178),_0x5e2b67='/',_0x888e12={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x18645f,_0x42de16,_0x317029)=>{const _0x6760e6=a3_0x3dec;var _0x2e5a73,_0x4d977c,_0x4a9824;!_0x888e12[_0x6760e6(0x18e)]&&(_0x888e12['middleware']=[]);!((_0x2e5a73=_0x888e12===null||_0x888e12===void 0x0?void 0x0:_0x888e12[_0x6760e6(0x185)])===null||_0x2e5a73===void 0x0?void 0x0:_0x2e5a73[_0x6760e6(0x188)])&&(_0x888e12[_0x6760e6(0x185)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x6760e6(0x1c7)}});if(!_0x5e2b67)_0x5e2b67='/';else typeof _0x5e2b67==_0x6760e6(0x1c7)&&(!_0x5e2b67[_0x6760e6(0x177)]('/')&&!_0x5e2b67[_0x6760e6(0x177)]('-')&&(_0x5e2b67='/'+_0x5e2b67));typeof _0x888e12['apimit']==_0x6760e6(0x186)&&(_0x888e12['apimit']=!![]);if(((_0x4d977c=_0x888e12===null||_0x888e12===void 0x0?void 0x0:_0x888e12[_0x6760e6(0x18e)])===null||_0x4d977c===void 0x0?void 0x0:_0x4d977c[_0x6760e6(0x1c0)])>0x0&&((_0x4a9824=_0x888e12===null||_0x888e12===void 0x0?void 0x0:_0x888e12['middlewareIgnore'])===null||_0x4a9824===void 0x0?void 0x0:_0x4a9824[_0x6760e6(0x1c0)])>0x0)for(let _0x4884e5 in _0x888e12[_0x6760e6(0x18e)]){_0x888e12['middlewareIgnore'][_0x6760e6(0x1aa)](_0x888e12[_0x6760e6(0x18e)][_0x4884e5])!==-0x1&&(_0x888e12['middleware'][_0x4884e5]=null);}_0x888e12[_0x6760e6(0x1a8)]=_0x4bda56,(0x0,validator_1[_0x6760e6(0x1a4)])(_0x888e12[_0x6760e6(0x185)])(_0x18645f,_0x42de16,_0x317029),(0x0,core_2[_0x6760e6(0x1bf)])(Object[_0x6760e6(0x1b5)](_0x888e12,{'path':_0x5e2b67,'requestMethod':(_0x47e0c0||_0x6760e6(0x178))[_0x6760e6(0x179)]()}))(_0x18645f,_0x42de16,_0x317029),(0x0,core_2[_0x6760e6(0x19b)])(action_1[_0x6760e6(0x19a)],{'path':_0x5e2b67,'method':_0x42de16,'apimit':_0x888e12[_0x6760e6(0x1a9)],'intercept':_0x888e12[_0x6760e6(0x1b2)],'routerName':_0x888e12[_0x6760e6(0x1a8)],'description':_0x888e12[_0x6760e6(0x1be)],'middleware':(_0x888e12[_0x6760e6(0x18e)]||[])[_0x6760e6(0x1b8)](_0xfcc051=>!!_0xfcc051),'requestMethod':(_0x47e0c0||_0x6760e6(0x178))['toLowerCase']()},_0x18645f),(0x0,core_2[_0x6760e6(0x1a6)])(action_1[_0x6760e6(0x19a)],{'path':_0x5e2b67,'method':_0x42de16,'apimit':_0x888e12[_0x6760e6(0x1a9)],'intercept':_0x888e12[_0x6760e6(0x1b2)],'routerName':_0x888e12[_0x6760e6(0x1a8)],'description':_0x888e12[_0x6760e6(0x1be)],'middleware':(_0x888e12[_0x6760e6(0x18e)]||[])[_0x6760e6(0x1b8)](_0x2241e8=>!!_0x2241e8),'requestMethod':(_0x47e0c0||_0x6760e6(0x178))[_0x6760e6(0x179)]()})(_0x18645f,_0x42de16,_0x317029);};}function parseRoute(_0x37740e){const _0x4473a3=a3_0x2a6be8;_0x37740e=_0x37740e[_0x4473a3(0x196)](/(\\|\/)/g,'/');const _0x425386=process[_0x4473a3(0x1a0)]()[_0x4473a3(0x196)](/(\\|\/)/g,'/'),_0x1cff79=_0x37740e['substring'](0x0,_0x425386[_0x4473a3(0x1c0)]+_0x37740e['substring'](_0x425386[_0x4473a3(0x1c0)]+0x1)['indexOf']('/')+0x1),_0x1bf2b6=_0x37740e[_0x4473a3(0x175)](_0x1cff79[_0x4473a3(0x1c0)]+0x1)[_0x4473a3(0x196)](/(\\|\/)/g,'/'),_0x1775a5={'route':'','prefix':![],'module':![],'rootpath':_0x1cff79,'filepath':_0x1bf2b6};if(_0x1bf2b6[_0x4473a3(0x177)](_0x4473a3(0x1b0))||_0x1bf2b6[_0x4473a3(0x177)](_0x4473a3(0x183))){const _0x218998=_0x1bf2b6[_0x4473a3(0x175)]((_0x1bf2b6[_0x4473a3(0x177)](_0x4473a3(0x1b0))?'app/controller/':_0x4473a3(0x183))['length'])[_0x4473a3(0x1c2)]('/')['filter'](_0x366ce6=>_0x366ce6&&_0x366ce6['trim']());return _0x218998[_0x4473a3(0x1c0)]>0x1&&(_0x1775a5[_0x4473a3(0x174)]=_0x218998[0x0][_0x4473a3(0x179)](),_0x218998[_0x4473a3(0x1b3)](0x0,0x1)),_0x1775a5['route']=('/'+_0x218998[_0x4473a3(0x189)]('/'))[_0x4473a3(0x196)](/(\.ts|\.js)$/,'')[_0x4473a3(0x196)](/\/{2,}/g,'/')[_0x4473a3(0x191)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x4473a3(0x196)](/\/\-/g,'/'),_0x1775a5[_0x4473a3(0x187)]['endsWith'](_0x4473a3(0x1ac))&&(_0x1775a5[_0x4473a3(0x187)]=_0x1775a5[_0x4473a3(0x187)][_0x4473a3(0x175)](0x0,_0x1775a5[_0x4473a3(0x187)]['length']-0x7)),_0x1775a5[_0x4473a3(0x187)]['endsWith'](_0x4473a3(0x197))&&(_0x1775a5[_0x4473a3(0x187)]=_0x1775a5[_0x4473a3(0x187)][_0x4473a3(0x175)](0x0,_0x1775a5[_0x4473a3(0x187)][_0x4473a3(0x1c0)]-0xb)),_0x1775a5;}else{if(_0x1bf2b6[_0x4473a3(0x177)](_0x4473a3(0x17c))){const _0x15abdc=_0x1bf2b6['substring'](0x0,_0x1bf2b6['indexOf'](_0x4473a3(0x1c8))+0x5),_0x36cf75=_0x1bf2b6[_0x4473a3(0x175)](_0x15abdc[_0x4473a3(0x1c0)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x4473a3(0x1c2)]('/')[0x0];if(_0x1bf2b6[_0x4473a3(0x177)](_0x4473a3(0x17c)+_0x36cf75+_0x4473a3(0x1bb))){const _0x2efffa=_0x1bf2b6[_0x4473a3(0x175)]((_0x15abdc+'/'+_0x36cf75+_0x4473a3(0x1bb))[_0x4473a3(0x1c0)])[_0x4473a3(0x1c2)]('/')[_0x4473a3(0x1b8)](_0x1eb50c=>_0x1eb50c&&_0x1eb50c[_0x4473a3(0x1bd)]());return _0x2efffa[_0x4473a3(0x1c0)]>0x1&&(_0x1775a5[_0x4473a3(0x174)]=_0x2efffa[0x0][_0x4473a3(0x179)](),_0x2efffa[_0x4473a3(0x1b3)](0x0,0x1)),_0x1775a5[_0x4473a3(0x1ad)]=_0x36cf75,_0x1775a5['route']=('/'+_0x36cf75+'/'+_0x2efffa[_0x4473a3(0x189)]('/'))[_0x4473a3(0x196)](/(\.ts|\.js)$/,'')[_0x4473a3(0x196)](/\/{2,}/g,'/')[_0x4473a3(0x191)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x4473a3(0x179)]()[_0x4473a3(0x196)](/\/\-/g,'/'),_0x1775a5[_0x4473a3(0x187)]['endsWith']('-action')&&(_0x1775a5[_0x4473a3(0x187)]=_0x1775a5[_0x4473a3(0x187)]['substring'](0x0,_0x1775a5[_0x4473a3(0x187)][_0x4473a3(0x1c0)]-0x7)),_0x1775a5[_0x4473a3(0x187)][_0x4473a3(0x195)](_0x4473a3(0x197))&&(_0x1775a5[_0x4473a3(0x187)]=_0x1775a5[_0x4473a3(0x187)]['substring'](0x0,_0x1775a5[_0x4473a3(0x187)][_0x4473a3(0x1c0)]-0xb)),_0x1775a5;}throw new Error(_0x1bf2b6+_0x4473a3(0x17d)+_0x36cf75+_0x4473a3(0x1c6));}}throw new Error(_0x1bf2b6+_0x4473a3(0x1c1));}function a3_0x4b32(){const _0x23ef82=['saveClassMetadata','/controller/','../types/action','trim','description','RequestMapping','length','\x20文件请放在app/controller/文件下','split','4kwJfnP','MIDWAY_SERVER_ENV','284298qDkwWv','/controller/文件下','string','/apps/','2270dEAEVR','prefix','substring','NODE_ENV','startsWith','get','toLowerCase','Action','20ryNncx','apps/','\x20文件请放在apps/','apply','ActionApi','/config.','defineProperty','1536296wlHgBI','basic/controller/','defaultsDeep','validate','undefined','route','validationOptions','join','search','ACTION_KEY','tagName','env','middleware','63235aroTEl','800124DWEMNK','match','constructor','filepath','APPSCONFIG_KEY','endsWith','replace','-controller','toString','AppsConfigTmp','ACTION_ROUTE_KEY','attachClassMetadata','__esModule','Controller','saveModule','isArray','cwd','middlewareIgnore','1962guVgiI','858714ZlvjhK','Validator','push','createCustomMethodDecorator','getClassMetadata','routerName','apimit','indexOf','rootpath','-action','module','7072956BnBhiH','@midwayjs/core','app/controller/','existsSync','intercept','splice','14IdqaGq','assign','keys','parseRoute','filter','@anncic-api/validator'];a3_0x4b32=function(){return _0x23ef82;};return a3_0x4b32();}const moduleConfigTmp=(0x0,core_1[a3_0x2a6be8(0x1a7)])(action_1[a3_0x2a6be8(0x194)],action_1[a3_0x2a6be8(0x199)])||{};function getModuleConfig(_0x369838,_0x1d6a4a,_0x117211){const _0x3930fd=a3_0x2a6be8;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x1d6a4a])){let _0x43612b={};if(NODE_ENV&&fs[_0x3930fd(0x1b1)](_0x369838+'/'+_0x1d6a4a+'/config.'+NODE_ENV+'.'+_0x117211)){const _0x3b325d=include(_0x369838+'/'+_0x1d6a4a+_0x3930fd(0x180)+NODE_ENV+'.'+_0x117211);Object[_0x3930fd(0x1b6)](_0x3b325d)[_0x3930fd(0x1c0)]>0x0&&(_0x43612b=lodash[_0x3930fd(0x184)](_0x43612b,_0x3b325d));}if(fs[_0x3930fd(0x1b1)](_0x369838+_0x3930fd(0x180)+_0x117211)){const _0x57b4a7=include(_0x369838+'/config.'+_0x117211);Object[_0x3930fd(0x1b6)](_0x57b4a7)['length']>0x0&&(_0x43612b=lodash[_0x3930fd(0x184)](_0x43612b,_0x57b4a7));}moduleConfigTmp[_0x1d6a4a]=_0x43612b,(0x0,core_1[_0x3930fd(0x1ba)])(action_1[_0x3930fd(0x194)],moduleConfigTmp,action_1[_0x3930fd(0x199)]);}return moduleConfigTmp[_0x1d6a4a];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x688414=a4_0x3b4c;(function(_0x206f19,_0x2acf84){const _0x4dc9aa=a4_0x3b4c,_0x7d9f53=_0x206f19();while(!![]){try{const _0x2945f6=-parseInt(_0x4dc9aa(0x16d))/0x1+-parseInt(_0x4dc9aa(0x171))/0x2*(parseInt(_0x4dc9aa(0x16a))/0x3)+parseInt(_0x4dc9aa(0x165))/0x4+parseInt(_0x4dc9aa(0x15f))/0x5+-parseInt(_0x4dc9aa(0x166))/0x6+-parseInt(_0x4dc9aa(0x170))/0x7*(parseInt(_0x4dc9aa(0x175))/0x8)+parseInt(_0x4dc9aa(0x163))/0x9*(parseInt(_0x4dc9aa(0x15b))/0xa);if(_0x2945f6===_0x2acf84)break;else _0x7d9f53['push'](_0x7d9f53['shift']());}catch(_0x1fbd2d){_0x7d9f53['push'](_0x7d9f53['shift']());}}}(a4_0xd439,0x8256e));const a4_0x38b56e=(function(){let _0x11a623=!![];return function(_0x2fc350,_0x341f0d){const _0x1e296c=_0x11a623?function(){const _0xc7fdcb=a4_0x3b4c;if(_0x341f0d){const _0x7f1017=_0x341f0d[_0xc7fdcb(0x173)](_0x2fc350,arguments);return _0x341f0d=null,_0x7f1017;}}:function(){};return _0x11a623=![],_0x1e296c;};}()),a4_0x10137f=a4_0x38b56e(this,function(){const _0x430530=a4_0x3b4c;return a4_0x10137f[_0x430530(0x15c)]()[_0x430530(0x15d)](_0x430530(0x16f))['toString']()['constructor'](a4_0x10137f)['search'](_0x430530(0x16f));});a4_0x10137f();'use strict';function a4_0x3b4c(_0x589fde,_0x31a9dc){const _0x5f1d57=a4_0xd439();return a4_0x3b4c=function(_0x10137f,_0x38b56e){_0x10137f=_0x10137f-0x15b;let _0xd43950=_0x5f1d57[_0x10137f];return _0xd43950;},a4_0x3b4c(_0x589fde,_0x31a9dc);}Object[a4_0x688414(0x164)](exports,'__esModule',{'value':!![]}),exports[a4_0x688414(0x169)]=Apitest;function a4_0xd439(){const _0x532951=['app','135IiKVad','defineProperty','1658056AFBHHV','1620126mSIIwU','isDevelopmentEnvironment','ApitestService','Apitest','15tZCtdf','../service/ApitestService','get','761527cBrOiM','value','(((.+)+)+)+$','28oFzyYj','104162PzgKKz','MidwayEnvironmentService','apply','getConfig','2038664hqqzqw','961970wwUdRl','toString','search','getAsync','4938430pQiSuX','getApplicationContext','RequestMapping'];a4_0xd439=function(){return _0x532951;};return a4_0xd439();}const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x688414(0x16b));function Apitest(_0x5edaf3='/apitest',_0x458e31){return(_0x4ab74a,_0x385706,_0x2cf7cd)=>{const _0xad60e8=a4_0x3b4c;return(0x0,core_1[_0xad60e8(0x161)])({'path':_0x5edaf3,'requestMethod':_0xad60e8(0x16c)})(_0x4ab74a,_0x385706,_0x2cf7cd),_0x2cf7cd[_0xad60e8(0x16e)]=async function(..._0x1495a5){const _0x1ae3d7=_0xad60e8;var _0x50d888;const _0x45c1b4=(_0x50d888=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x50d888===void 0x0?void 0x0:_0x50d888[_0x1ae3d7(0x162)];if(_0x45c1b4&&_0x45c1b4[_0x1ae3d7(0x174)]('apitest')){const _0x34bcdb=await _0x45c1b4[_0x1ae3d7(0x160)]()[_0x1ae3d7(0x15e)](ApitestService_1[_0x1ae3d7(0x168)]),_0x19f32b=await _0x45c1b4[_0x1ae3d7(0x160)]()[_0x1ae3d7(0x15e)](core_1[_0x1ae3d7(0x172)]);return _0x19f32b[_0x1ae3d7(0x167)]()&&(_0x458e31['filepath']=!![]),await _0x34bcdb['apidoc'](_0x458e31);}return'';},_0x2cf7cd;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x503c32=a5_0x4f5a;(function(_0x3b248c,_0x146610){const _0xdd0c4=a5_0x4f5a,_0x4db81a=_0x3b248c();while(!![]){try{const _0x1d6faa=-parseInt(_0xdd0c4(0x9b))/0x1*(-parseInt(_0xdd0c4(0x8c))/0x2)+-parseInt(_0xdd0c4(0x95))/0x3*(-parseInt(_0xdd0c4(0x87))/0x4)+-parseInt(_0xdd0c4(0x88))/0x5+-parseInt(_0xdd0c4(0x98))/0x6+-parseInt(_0xdd0c4(0x8f))/0x7*(-parseInt(_0xdd0c4(0x94))/0x8)+parseInt(_0xdd0c4(0x92))/0x9+parseInt(_0xdd0c4(0x8a))/0xa;if(_0x1d6faa===_0x146610)break;else _0x4db81a['push'](_0x4db81a['shift']());}catch(_0x4f6ac2){_0x4db81a['push'](_0x4db81a['shift']());}}}(a5_0x27d6,0x1c177));const a5_0x3e6feb=(function(){let _0x11cff2=!![];return function(_0x2fac17,_0x6ac4fd){const _0x4d4f34=_0x11cff2?function(){const _0x377d46=a5_0x4f5a;if(_0x6ac4fd){const _0x3040bf=_0x6ac4fd[_0x377d46(0x84)](_0x2fac17,arguments);return _0x6ac4fd=null,_0x3040bf;}}:function(){};return _0x11cff2=![],_0x4d4f34;};}()),a5_0x22f543=a5_0x3e6feb(this,function(){const _0x4b4cd6=a5_0x4f5a;return a5_0x22f543[_0x4b4cd6(0x89)]()[_0x4b4cd6(0x90)](_0x4b4cd6(0x9a))[_0x4b4cd6(0x89)]()['constructor'](a5_0x22f543)[_0x4b4cd6(0x90)]('(((.+)+)+)+$');});a5_0x22f543();'use strict';function a5_0x4f5a(_0x19799d,_0x3f7148){const _0x5e8949=a5_0x27d6();return a5_0x4f5a=function(_0x22f543,_0x3e6feb){_0x22f543=_0x22f543-0x84;let _0x27d6aa=_0x5e8949[_0x22f543];return _0x27d6aa;},a5_0x4f5a(_0x19799d,_0x3f7148);}Object[a5_0x503c32(0x99)](exports,'__esModule',{'value':!![]}),exports['IIntercept']=void 0x0,exports[a5_0x503c32(0x96)]=Intercept;const core_1=require('@midwayjs/core'),intercept_1=require('../types/intercept');function Intercept(_0x165a90){return _0x12dc7b=>{const _0x5bc5b5=a5_0x4f5a,_0x96368a=(0x0,core_1[_0x5bc5b5(0x8b)])(intercept_1[_0x5bc5b5(0x97)],intercept_1[_0x5bc5b5(0x91)])||{};for(let _0x3d4350 of Array['isArray'](_0x165a90)?_0x165a90:[_0x165a90]){_0x3d4350=_0x3d4350[_0x5bc5b5(0x86)]();!(_0x96368a===null||_0x96368a===void 0x0?void 0x0:_0x96368a[_0x3d4350])&&(_0x96368a[_0x3d4350]=[]);if(_0x96368a[_0x3d4350][_0x5bc5b5(0x8d)](_0x12dc7b))continue;_0x96368a[_0x3d4350]['push'](_0x12dc7b);}(0x0,core_1[_0x5bc5b5(0x93)])()(_0x12dc7b),(0x0,core_1['Scope'])(core_1[_0x5bc5b5(0x9c)][_0x5bc5b5(0x85)])(_0x12dc7b),(0x0,core_1['saveClassMetadata'])(intercept_1['INTERCEPT_KEY'],_0x96368a,intercept_1[_0x5bc5b5(0x91)]);};}function a5_0x27d6(){const _0x284448=['toUpperCase','85660vKdHJJ','402560XmhwdI','toString','6770alhZXC','getClassMetadata','328XDKmOW','includes','match','94024Yraowr','search','InterceptTargetTmp','1076742GyIHIO','Provide','56RtXvLt','3BnnOxP','Intercept','INTERCEPT_KEY','1275258FlpDjf','defineProperty','(((.+)+)+)+$','1051vQsHsg','ScopeEnum','apply','Singleton'];a5_0x27d6=function(){return _0x284448;};return a5_0x27d6();}class IIntercept{async[a5_0x503c32(0x8e)](_0x159321,_0x21efc9,_0x47db68){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x4cf509=a6_0x23b1;(function(_0x5b0565,_0x450bc4){var _0x55810c=a6_0x23b1,_0x428146=_0x5b0565();while(!![]){try{var _0x27ab94=-parseInt(_0x55810c(0x81))/0x1+-parseInt(_0x55810c(0x90))/0x2*(-parseInt(_0x55810c(0x8d))/0x3)+parseInt(_0x55810c(0x7d))/0x4*(parseInt(_0x55810c(0x85))/0x5)+parseInt(_0x55810c(0x80))/0x6+-parseInt(_0x55810c(0x93))/0x7+parseInt(_0x55810c(0x99))/0x8+-parseInt(_0x55810c(0x7c))/0x9;if(_0x27ab94===_0x450bc4)break;else _0x428146['push'](_0x428146['shift']());}catch(_0x3c6d8c){_0x428146['push'](_0x428146['shift']());}}}(a6_0x4066,0x3ea98));var a6_0x3bb185=(function(){var _0x47a434=!![];return function(_0x31bd4e,_0x2d0dc4){var _0x25b121=_0x47a434?function(){var _0x3f188a=a6_0x23b1;if(_0x2d0dc4){var _0x3476a2=_0x2d0dc4[_0x3f188a(0x88)](_0x31bd4e,arguments);return _0x2d0dc4=null,_0x3476a2;}}:function(){};return _0x47a434=![],_0x25b121;};}()),a6_0x14ce9d=a6_0x3bb185(this,function(){var _0x3ca7cf=a6_0x23b1;return a6_0x14ce9d['toString']()[_0x3ca7cf(0x94)]('(((.+)+)+)+$')[_0x3ca7cf(0x8b)]()[_0x3ca7cf(0x8f)](a6_0x14ce9d)[_0x3ca7cf(0x94)](_0x3ca7cf(0x8a));});a6_0x14ce9d();'use strict';var __decorate=this&&this[a6_0x4cf509(0x9b)]||function(_0x559810,_0x2982fa,_0x2eeacc,_0x181e22){var _0x320aa4=a6_0x4cf509,_0x1a0f13=arguments[_0x320aa4(0x96)],_0x201005=_0x1a0f13<0x3?_0x2982fa:_0x181e22===null?_0x181e22=Object['getOwnPropertyDescriptor'](_0x2982fa,_0x2eeacc):_0x181e22,_0x2d6979;if(typeof Reflect==='object'&&typeof Reflect[_0x320aa4(0x7e)]==='function')_0x201005=Reflect[_0x320aa4(0x7e)](_0x559810,_0x2982fa,_0x2eeacc,_0x181e22);else{for(var _0x1a7c72=_0x559810[_0x320aa4(0x96)]-0x1;_0x1a7c72>=0x0;_0x1a7c72--)if(_0x2d6979=_0x559810[_0x1a7c72])_0x201005=(_0x1a0f13<0x3?_0x2d6979(_0x201005):_0x1a0f13>0x3?_0x2d6979(_0x2982fa,_0x2eeacc,_0x201005):_0x2d6979(_0x2982fa,_0x2eeacc))||_0x201005;}return _0x1a0f13>0x3&&_0x201005&&Object[_0x320aa4(0x95)](_0x2982fa,_0x2eeacc,_0x201005),_0x201005;},__metadata=this&&this[a6_0x4cf509(0x9d)]||function(_0x16f7df,_0x4a34c6){var _0x4cd182=a6_0x4cf509;if(typeof Reflect===_0x4cd182(0x82)&&typeof Reflect[_0x4cd182(0x8c)]===_0x4cd182(0x97))return Reflect[_0x4cd182(0x8c)](_0x16f7df,_0x4a34c6);};function a6_0x23b1(_0x264dec,_0x245dcb){var _0x1cbaba=a6_0x4066();return a6_0x23b1=function(_0x14ce9d,_0x3bb185){_0x14ce9d=_0x14ce9d-0x7c;var _0x406606=_0x1cbaba[_0x14ce9d];return _0x406606;},a6_0x23b1(_0x264dec,_0x245dcb);}Object[a6_0x4cf509(0x95)](exports,'__esModule',{'value':!![]}),exports[a6_0x4cf509(0x92)]=void 0x0;function a6_0x4066(){var _0x35dea8=['HEADERS_SIGNATURE','HEADERS_CHECKCODE','456985vWpfKw','design:type','请使用正确的设备','apply','登录超时,请重新登录','(((.+)+)+)+$','toString','metadata','203529iqQIaP','请求头信息不完整','constructor','12WKtqCD','signature验证失败','ApiError','1294258ZrIkXS','search','defineProperty','length','function','TIMEOUT','2096856tGWQvy','TIMEOUT_LOGINTIME','__decorate','HEADERS_DEVICE','__metadata','2110482lcTNRF','4EMEkXq','decorate','请求超时,请重试','895032OVEeMA','233678MFXbxN','object'];a6_0x4066=function(){return _0x35dea8;};return a6_0x4066();}class ApiError extends AnnError{}exports['ApiError']=ApiError,ApiError[a6_0x4cf509(0x98)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a6_0x4cf509(0x9c)]=0x18e73,ApiError[a6_0x4cf509(0x83)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a6_0x4cf509(0x7f)),__metadata(a6_0x4cf509(0x86),Object)],ApiError,a6_0x4cf509(0x98),void 0x0),__decorate([AnnErrorMsg(a6_0x4cf509(0x8e)),__metadata('design:type',Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x4cf509(0x87)),__metadata(a6_0x4cf509(0x86),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x4cf509(0x91)),__metadata(a6_0x4cf509(0x86),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x4cf509(0x86),Object)],ApiError,a6_0x4cf509(0x84),void 0x0),__decorate([AnnErrorMsg(a6_0x4cf509(0x89)),__metadata('design:type',Object)],ApiError,a6_0x4cf509(0x9a),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x14fbba=a7_0xb2fe;(function(_0x14aa2c,_0xe57169){const _0x42e7b3=a7_0xb2fe,_0x29b928=_0x14aa2c();while(!![]){try{const _0x1ca59a=-parseInt(_0x42e7b3(0x15c))/0x1*(parseInt(_0x42e7b3(0x15a))/0x2)+parseInt(_0x42e7b3(0x15b))/0x3+-parseInt(_0x42e7b3(0x14e))/0x4*(parseInt(_0x42e7b3(0x14d))/0x5)+parseInt(_0x42e7b3(0x15d))/0x6*(-parseInt(_0x42e7b3(0x159))/0x7)+parseInt(_0x42e7b3(0x15e))/0x8*(-parseInt(_0x42e7b3(0x151))/0x9)+parseInt(_0x42e7b3(0x148))/0xa*(parseInt(_0x42e7b3(0x14a))/0xb)+-parseInt(_0x42e7b3(0x14f))/0xc*(-parseInt(_0x42e7b3(0x157))/0xd);if(_0x1ca59a===_0xe57169)break;else _0x29b928['push'](_0x29b928['shift']());}catch(_0x58f3d7){_0x29b928['push'](_0x29b928['shift']());}}}(a7_0x260a,0x9d7cc));const a7_0x5f4163=(function(){let _0x1f25c3=!![];return function(_0x531dff,_0x1db945){const _0x33477c=_0x1f25c3?function(){const _0x2b808c=a7_0xb2fe;if(_0x1db945){const _0x160d0d=_0x1db945[_0x2b808c(0x154)](_0x531dff,arguments);return _0x1db945=null,_0x160d0d;}}:function(){};return _0x1f25c3=![],_0x33477c;};}()),a7_0x4e431a=a7_0x5f4163(this,function(){const _0x2c6bcd=a7_0xb2fe;return a7_0x4e431a[_0x2c6bcd(0x152)]()['search']('(((.+)+)+)+$')[_0x2c6bcd(0x152)]()[_0x2c6bcd(0x155)](a7_0x4e431a)[_0x2c6bcd(0x149)](_0x2c6bcd(0x14c));});a7_0x4e431a();'use strict';Object[a7_0x14fbba(0x15f)](exports,a7_0x14fbba(0x150),{'value':!![]}),exports[a7_0x14fbba(0x156)]=getAppsConfig;function a7_0xb2fe(_0x3cae67,_0x31ba4a){const _0x4e243b=a7_0x260a();return a7_0xb2fe=function(_0x4e431a,_0x5f4163){_0x4e431a=_0x4e431a-0x148;let _0x260aed=_0x4e243b[_0x4e431a];return _0x260aed;},a7_0xb2fe(_0x3cae67,_0x31ba4a);}function a7_0x260a(){const _0x10a7fa=['4782650iKyZuI','4dDqfOj','12NKcSOp','__esModule','18krinHn','toString','getClassMetadata','apply','constructor','getAppsConfig','31606198NiTcVg','../types/action','21pYRsDE','14prdDcJ','1734207XATXgD','32457fFNcqC','1457454fLOwOg','2788664tEZoWi','defineProperty','188750Lnltan','search','143uoRjgi','AppsConfigTmp','(((.+)+)+)+$'];a7_0x260a=function(){return _0x10a7fa;};return a7_0x260a();}const core_1=require('@midwayjs/core'),action_1=require(a7_0x14fbba(0x158));function getAppsConfig(_0x19a8d6){const _0x38e514=a7_0x14fbba,_0x345167=(0x0,core_1[_0x38e514(0x153)])(action_1['APPSCONFIG_KEY'],action_1[_0x38e514(0x14b)])||{};return _0x19a8d6?lodash['get'](_0x345167,_0x19a8d6):_0x345167;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x2077cb=a8_0x239a;(function(_0xd7bbdd,_0x3c51af){const _0x22e338=a8_0x239a,_0x1f469b=_0xd7bbdd();while(!![]){try{const _0x21700a=-parseInt(_0x22e338(0x22e))/0x1*(parseInt(_0x22e338(0x20e))/0x2)+parseInt(_0x22e338(0x21f))/0x3*(-parseInt(_0x22e338(0x210))/0x4)+parseInt(_0x22e338(0x221))/0x5*(-parseInt(_0x22e338(0x230))/0x6)+parseInt(_0x22e338(0x223))/0x7+parseInt(_0x22e338(0x20b))/0x8*(parseInt(_0x22e338(0x23e))/0x9)+parseInt(_0x22e338(0x1e8))/0xa+-parseInt(_0x22e338(0x228))/0xb*(-parseInt(_0x22e338(0x203))/0xc);if(_0x21700a===_0x3c51af)break;else _0x1f469b['push'](_0x1f469b['shift']());}catch(_0x268d85){_0x1f469b['push'](_0x1f469b['shift']());}}}(a8_0x28fa,0x5f945));const a8_0x174c81=(function(){let _0x22d918=!![];return function(_0x13402d,_0xf55335){const _0x45fec1=_0x22d918?function(){const _0xf08777=a8_0x239a;if(_0xf55335){const _0x4ff997=_0xf55335[_0xf08777(0x201)](_0x13402d,arguments);return _0xf55335=null,_0x4ff997;}}:function(){};return _0x22d918=![],_0x45fec1;};}()),a8_0x534532=a8_0x174c81(this,function(){const _0x509aa6=a8_0x239a;return a8_0x534532[_0x509aa6(0x1ed)]()[_0x509aa6(0x1f7)](_0x509aa6(0x1e3))[_0x509aa6(0x1ed)]()['constructor'](a8_0x534532)[_0x509aa6(0x1f7)](_0x509aa6(0x1e3));});a8_0x534532();function a8_0x28fa(){const _0x140f54=['HEADERS','module','iterator','getClassMetadata','filter','filepath','RULES_KEY','required','title','(((.+)+)+)+$','object','string','name','isArray','7396120lkgBkb','文件上传-','FILESSTREAM','array','endsWith','toString','@midwayjs/core','只允许:[','routerName','header','lodash','description','method','request','body','search','join','__esModule','min','type','flags.presence','routes','function','ACTION_KEY','rules','apply','summary','1794036vhpKlq','Object','get','INJECT_CUSTOM_PARAM','query','push','flags.description','test','76744vsiTSF','parameterIndex','../types/action','2jDzfHv','describe','192HnrrSf','length','route','concat','static/apitest','find','substring','split','key','FILESTREAM','FIELDS','BODY','prefix','Number','replace','29496zJJdEf','indexOf','565iltDTZ','getRoutes','2888130SvKEla','keys','items','intercept','routerOptions','11WoVqen','String','ACTION_ROUTE_KEY','metadata','tagName','propertyData','479358OTkGqc','File','9534ISqdfK','path','file','number','startsWith','RouteParamTypes','@anncic-api/validator','allow','noreq','getClassExtendedMetadata','flags.label','max','requestMethod','args','207kPFXPS'];a8_0x28fa=function(){return _0x140f54;};return a8_0x28fa();}'use strict';Object['defineProperty'](exports,a8_0x2077cb(0x1f9),{'value':!![]}),exports[a8_0x2077cb(0x222)]=getRoutes;const lodash_1=require(a8_0x2077cb(0x1f2)),validator_1=require(a8_0x2077cb(0x236)),core_1=require(a8_0x2077cb(0x1ee)),core_2=require(a8_0x2077cb(0x1ee)),core_3=require(a8_0x2077cb(0x1ee)),action_1=require(a8_0x2077cb(0x20d));function getRoutes(_0x3645ab={'prefix':'/','module':![]}){const _0x56aa5c=a8_0x2077cb;var _0x574587,_0x30b818;const _0xf45040=(0x0,core_3['listModule'])(action_1[_0x56aa5c(0x1ff)]),_0x14cada={},_0x1fac5b=Array[_0x56aa5c(0x1e7)](_0x3645ab[_0x56aa5c(0x243)]||[])?_0x3645ab[_0x56aa5c(0x243)]||[]:[_0x3645ab['filter']];_0x2b7494:for(const _0x40910a of _0xf45040){let _0x3b34ed=(0x0,core_3['getClassMetadata'])(action_1[_0x56aa5c(0x1ff)],_0x40910a),_0x4df1a1=(0x0,core_3['getClassMetadata'])(action_1[_0x56aa5c(0x22a)],_0x40910a);if(_0x3b34ed&&_0x4df1a1){let _0x5c4ac8=_0x3b34ed['prefix'],_0x5c0200={};if(_0x3645ab['module']&&(0x0,lodash_1[_0x56aa5c(0x205)])(_0x3b34ed,_0x56aa5c(0x240),![])!=_0x3645ab[_0x56aa5c(0x240)])continue _0x2b7494;else{if(_0x3645ab[_0x56aa5c(0x240)]===![]&&!!(0x0,lodash_1['get'])(_0x3b34ed,_0x56aa5c(0x240),null))continue _0x2b7494;}if(_0x3645ab['prefix']&&!_0x5c4ac8['startsWith'](_0x3645ab[_0x56aa5c(0x21c)]))continue _0x2b7494;_0x5c4ac8!=='/'?(_0x5c0200[_0x56aa5c(0x202)]=(_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed[_0x56aa5c(0x227)][_0x56aa5c(0x22c)])||(/^\//[_0x56aa5c(0x20a)](_0x5c4ac8)?_0x5c4ac8[_0x56aa5c(0x217)]('/')[0x1]:_0x5c4ac8),_0x5c0200[_0x56aa5c(0x1f3)]=(_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed[_0x56aa5c(0x227)][_0x56aa5c(0x1f3)])||_0x5c0200[_0x56aa5c(0x202)],_0x5c0200[_0x56aa5c(0x1fd)]=[]):(_0x5c0200[_0x56aa5c(0x202)]=(_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed[_0x56aa5c(0x227)][_0x56aa5c(0x22c)])||'default',_0x5c0200[_0x56aa5c(0x1f3)]=(_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed[_0x56aa5c(0x227)][_0x56aa5c(0x1f3)])||'',_0x5c0200[_0x56aa5c(0x1fd)]=[]);_0x3645ab['filepath']&&(_0x5c0200[_0x56aa5c(0x1df)]=_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed[_0x56aa5c(0x1df)]);(_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed['pprefix'])&&(_0x5c0200[_0x56aa5c(0x21c)]=_0x3b34ed['pprefix']);(_0x3b34ed===null||_0x3b34ed===void 0x0?void 0x0:_0x3b34ed['module'])&&(_0x5c0200[_0x56aa5c(0x240)]=_0x3b34ed[_0x56aa5c(0x240)]);let _0x11f66f=(0x0,core_3[_0x56aa5c(0x242)])(core_2[_0x56aa5c(0x206)],_0x40910a)||{};if(typeof _0x4df1a1[Symbol[_0x56aa5c(0x241)]]===_0x56aa5c(0x1fe))for(let _0xff0d98 of _0x4df1a1){if((_0x3645ab===null||_0x3645ab===void 0x0?void 0x0:_0x3645ab['intercept'])&&!(_0xff0d98===null||_0xff0d98===void 0x0?void 0x0:_0xff0d98[_0x56aa5c(0x226)]))continue;let _0xcc801c={};_0xcc801c[_0x56aa5c(0x1f4)]=_0xff0d98[_0x56aa5c(0x23c)],_0xcc801c[_0x56aa5c(0x212)]=(_0x5c4ac8+_0xff0d98[_0x56aa5c(0x231)])[_0x56aa5c(0x21e)](/\/{2,}/g,'/'),_0xcc801c['summary']=(_0xff0d98===null||_0xff0d98===void 0x0?void 0x0:_0xff0d98[_0x56aa5c(0x1f0)])||_0x5c0200[_0x56aa5c(0x202)]||'default',_0xcc801c[_0x56aa5c(0x1f3)]=(_0xff0d98===null||_0xff0d98===void 0x0?void 0x0:_0xff0d98[_0x56aa5c(0x1f3)])||'',_0xcc801c[_0x56aa5c(0x1f5)]=[];_0xcc801c[_0x56aa5c(0x212)][_0x56aa5c(0x1ec)]('/')&&(_0xcc801c[_0x56aa5c(0x212)]=_0xcc801c[_0x56aa5c(0x212)][_0x56aa5c(0x216)](0x0,_0xcc801c[_0x56aa5c(0x212)][_0x56aa5c(0x211)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0xcc801c[_0x56aa5c(0x212)],_0x56aa5c(0x214))&&!(0x0,lodash_1[_0x56aa5c(0x234)])(_0xcc801c[_0x56aa5c(0x212)],'/static/apitest')&&_0x1fac5b[_0x56aa5c(0x220)](_0xcc801c['route'])===-0x1){if(!(_0x3645ab===null||_0x3645ab===void 0x0?void 0x0:_0x3645ab[_0x56aa5c(0x238)])){let _0x1eaeb2=(0x0,core_3['getMethodParamTypes'])(new _0x40910a(),_0xff0d98[_0x56aa5c(0x1f4)]);for(const _0x578f30 in _0x1eaeb2){let _0x3285ac=(_0x574587=_0x11f66f[_0xff0d98[_0x56aa5c(0x1f4)]])===null||_0x574587===void 0x0?void 0x0:_0x574587[_0x56aa5c(0x215)](_0x52d22c=>_0x52d22c[_0x56aa5c(0x20c)]==_0x578f30&&_0x52d22c['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x52d22c===null||_0x52d22c===void 0x0?void 0x0:_0x52d22c[_0x56aa5c(0x22b)]));if(_0x3285ac===null||_0x3285ac===void 0x0?void 0x0:_0x3285ac[_0x56aa5c(0x22b)]){let _0x3ebe0e=convertTypeToString(_0x3285ac[_0x56aa5c(0x22b)][_0x56aa5c(0x1fb)]||0x0);if(['query','body'][_0x56aa5c(0x220)](_0x3ebe0e)!=-0x1&&_0x3285ac[_0x56aa5c(0x22b)]['propertyData'][_0x56aa5c(0x220)](':')==-0x1&&!_0xcc801c[_0x56aa5c(0x1f5)][_0x56aa5c(0x215)](_0x126417=>_0x126417[_0x56aa5c(0x218)]==_0x3285ac[_0x56aa5c(0x22b)]['propertyData']))_0xcc801c['request'][_0x56aa5c(0x208)]({'key':_0x3285ac[_0x56aa5c(0x22b)][_0x56aa5c(0x22d)],'title':_0x3285ac[_0x56aa5c(0x22b)][_0x56aa5c(0x22d)],'type':convertSchemaType(_0x1eaeb2[_0x3285ac[_0x56aa5c(0x20c)]][_0x56aa5c(0x1e6)]),'required':![],'default':'','desc':''});else{if(_0x3ebe0e==_0x56aa5c(0x232)){let _0x3b1b95=((_0x30b818=_0x3285ac===null||_0x3285ac===void 0x0?void 0x0:_0x3285ac[_0x56aa5c(0x22b)])===null||_0x30b818===void 0x0?void 0x0:_0x30b818[_0x56aa5c(0x22d)])||'file';_0x3b1b95[_0x56aa5c(0x220)](':')==-0x1&&!_0xcc801c['request']['find'](_0x483410=>_0x483410['key']==_0x3b1b95&&_0x483410[_0x56aa5c(0x1fb)]==_0x56aa5c(0x232))&&_0xcc801c[_0x56aa5c(0x1f5)][_0x56aa5c(0x208)]({'key':_0x3b1b95,'title':_0x56aa5c(0x1e9)+_0x3b1b95,'type':_0x56aa5c(0x232),'required':!![],'default':'','desc':''});}}}else{const _0xacc77a=(0x0,core_3[_0x56aa5c(0x239)])(validator_1[_0x56aa5c(0x1e0)],_0x1eaeb2[_0x578f30]);_0xacc77a&&_0xcc801c[_0x56aa5c(0x1f5)][_0x56aa5c(0x208)](...getJoiRequest(_0xacc77a));}}}_0x5c0200[_0x56aa5c(0x1fd)][_0x56aa5c(0x208)](_0xcc801c);}}if(_0x5c0200[_0x56aa5c(0x1fd)][_0x56aa5c(0x211)]>0x0){let _0x17b257=_0x14cada[_0x5c4ac8];_0x17b257?(_0x17b257['summary']!=_0x5c0200[_0x56aa5c(0x202)]&&(_0x17b257['summary']=_0x17b257['summary']+','+_0x5c0200[_0x56aa5c(0x202)]),_0x17b257[_0x56aa5c(0x1f3)]!=_0x5c0200[_0x56aa5c(0x1f3)]&&(_0x17b257[_0x56aa5c(0x1f3)]=_0x17b257[_0x56aa5c(0x1f3)]+','+_0x5c0200[_0x56aa5c(0x1f3)]),_0x17b257[_0x56aa5c(0x1fd)]=_0x17b257['routes'][_0x56aa5c(0x213)](_0x5c0200[_0x56aa5c(0x1fd)]),_0x14cada[_0x5c4ac8]=_0x17b257):_0x14cada[_0x5c4ac8]=_0x5c0200;}}}return _0x14cada;}function getJoiRequest(_0x47239f){const _0x1029b8=a8_0x2077cb,_0x35ef27=[];for(let _0x319fda in _0x47239f){const _0x40caff={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x29fcf4=typeof _0x47239f[_0x319fda][_0x1029b8(0x20f)]=='function'?_0x47239f[_0x319fda][_0x1029b8(0x20f)]():_0x47239f[_0x319fda];_0x40caff[_0x1029b8(0x218)]=_0x319fda,_0x40caff[_0x1029b8(0x1fb)]=_0x29fcf4[_0x1029b8(0x1fb)],_0x40caff[_0x1029b8(0x1e2)]=(0x0,lodash_1[_0x1029b8(0x205)])(_0x29fcf4,_0x1029b8(0x23a),_0x319fda),_0x40caff['default']=(0x0,lodash_1[_0x1029b8(0x205)])(_0x29fcf4,'flags.default',''),_0x40caff[_0x1029b8(0x1e1)]=(0x0,lodash_1['get'])(_0x29fcf4,_0x1029b8(0x1fc),'')==_0x1029b8(0x1e1),_0x40caff[_0x1029b8(0x1f3)]=(0x0,lodash_1[_0x1029b8(0x205)])(_0x29fcf4,_0x1029b8(0x209),'');if(_0x29fcf4[_0x1029b8(0x1fb)]=='object')_0x40caff['children']=getJoiRequest(_0x29fcf4[_0x1029b8(0x224)]);else{if(_0x29fcf4['type']==_0x1029b8(0x1eb)&&_0x29fcf4[_0x1029b8(0x225)]&&Array['isArray'](_0x29fcf4[_0x1029b8(0x225)])&&_0x29fcf4[_0x1029b8(0x225)][0x0]){}}_0x29fcf4['allow']&&Array[_0x1029b8(0x1e7)](_0x29fcf4['allow'])&&_0x29fcf4[_0x1029b8(0x237)]['length']>0x0&&(_0x40caff[_0x1029b8(0x1f3)]=_0x1029b8(0x1ef)+_0x29fcf4[_0x1029b8(0x237)][_0x1029b8(0x1f8)](',')+'];'+_0x40caff[_0x1029b8(0x1f3)]);if(_0x40caff[_0x1029b8(0x218)]&&_0x40caff[_0x1029b8(0x1fb)]){const _0x32618f={};for(const _0x111bce of _0x29fcf4['rules']||[]){if(_0x111bce[_0x1029b8(0x1e6)]===_0x1029b8(0x1fa)&&_0x111bce['args'])_0x32618f[_0x1029b8(0x1fa)]=_0x111bce[_0x1029b8(0x23d)]['limit'];else _0x111bce[_0x1029b8(0x1e6)]===_0x1029b8(0x23b)&&(_0x32618f[_0x1029b8(0x23b)]=_0x111bce['args']['limit']);}_0x40caff[_0x1029b8(0x200)]=_0x32618f;}_0x40caff[_0x1029b8(0x218)]&&_0x40caff['title']&&_0x35ef27[_0x1029b8(0x208)](_0x40caff);}return _0x35ef27;}function a8_0x239a(_0x1a0494,_0x2ce205){const _0x21e3da=a8_0x28fa();return a8_0x239a=function(_0x534532,_0x174c81){_0x534532=_0x534532-0x1df;let _0x28fafc=_0x21e3da[_0x534532];return _0x28fafc;},a8_0x239a(_0x1a0494,_0x2ce205);}function convertSchemaType(_0x563df7){const _0x1dbf03=a8_0x2077cb;switch(_0x563df7){case _0x1dbf03(0x204):return _0x1dbf03(0x1e4);case'Boolean':return'boolean';case _0x1dbf03(0x21d):return _0x1dbf03(0x233);case _0x1dbf03(0x229):return _0x1dbf03(0x1e5);case _0x1dbf03(0x22f):return'file';default:return'string';}}function convertTypeToString(_0x181c4b){const _0x4273b5=a8_0x2077cb;switch(_0x181c4b){case core_1[_0x4273b5(0x235)][_0x4273b5(0x23f)]:return _0x4273b5(0x1f1);case core_1['RouteParamTypes']['QUERY']:return _0x4273b5(0x207);case core_1['RouteParamTypes']['PARAM']:return _0x4273b5(0x231);case core_1[_0x4273b5(0x235)][_0x4273b5(0x21b)]:return _0x4273b5(0x1f6);case core_1[_0x4273b5(0x235)][_0x4273b5(0x21a)]:case core_1[_0x4273b5(0x235)][_0x4273b5(0x1ea)]:case core_1[_0x4273b5(0x235)][_0x4273b5(0x219)]:return _0x4273b5(0x232);default:return _0x4273b5(0x1f1);}}
|
|
1
|
+
const a8_0xb22b3f=a8_0x5d93;(function(_0x501a77,_0x3596c7){const _0x63551d=a8_0x5d93,_0x463039=_0x501a77();while(!![]){try{const _0x1566e7=-parseInt(_0x63551d(0x19d))/0x1*(parseInt(_0x63551d(0x1dd))/0x2)+parseInt(_0x63551d(0x1d9))/0x3*(-parseInt(_0x63551d(0x1c4))/0x4)+parseInt(_0x63551d(0x1b2))/0x5*(-parseInt(_0x63551d(0x1d1))/0x6)+parseInt(_0x63551d(0x1e2))/0x7+parseInt(_0x63551d(0x1a4))/0x8+parseInt(_0x63551d(0x1bb))/0x9+parseInt(_0x63551d(0x1d2))/0xa;if(_0x1566e7===_0x3596c7)break;else _0x463039['push'](_0x463039['shift']());}catch(_0x12d735){_0x463039['push'](_0x463039['shift']());}}}(a8_0x3d47,0xaee0d));const a8_0x36fc9e=(function(){let _0x7d69f9=!![];return function(_0x9176da,_0x45e60b){const _0xb0e5e6=_0x7d69f9?function(){const _0x22eafd=a8_0x5d93;if(_0x45e60b){const _0x7769c3=_0x45e60b[_0x22eafd(0x1df)](_0x9176da,arguments);return _0x45e60b=null,_0x7769c3;}}:function(){};return _0x7d69f9=![],_0xb0e5e6;};}()),a8_0x406b06=a8_0x36fc9e(this,function(){const _0x39ba72=a8_0x5d93;return a8_0x406b06[_0x39ba72(0x19c)]()[_0x39ba72(0x1be)](_0x39ba72(0x1f0))[_0x39ba72(0x19c)]()[_0x39ba72(0x1b8)](a8_0x406b06)[_0x39ba72(0x1be)](_0x39ba72(0x1f0));});a8_0x406b06();'use strict';Object[a8_0xb22b3f(0x1b6)](exports,a8_0xb22b3f(0x19e),{'value':!![]}),exports[a8_0xb22b3f(0x1c1)]=getRoutes;const lodash_1=require(a8_0xb22b3f(0x1d4)),validator_1=require(a8_0xb22b3f(0x1ed)),core_1=require('@midwayjs/core'),core_2=require(a8_0xb22b3f(0x1a0)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x2ee301={'prefix':'/','module':![]}){const _0x5aec5c=a8_0xb22b3f;var _0x4c28e5,_0x3468e1;const _0x802232=(0x0,core_3['listModule'])(action_1[_0x5aec5c(0x199)]),_0x5b383e={},_0x37a4ba=Array[_0x5aec5c(0x1a9)](_0x2ee301['filter']||[])?_0x2ee301[_0x5aec5c(0x1ae)]||[]:[_0x2ee301['filter']];_0x19ee5d:for(const _0x55ffc9 of _0x802232){let _0x57477c=(0x0,core_3[_0x5aec5c(0x19f)])(action_1[_0x5aec5c(0x199)],_0x55ffc9),_0x1cb9de=(0x0,core_3[_0x5aec5c(0x19f)])(action_1[_0x5aec5c(0x1b0)],_0x55ffc9);if(_0x57477c&&_0x1cb9de){let _0x45a5c9=_0x57477c[_0x5aec5c(0x1a1)],_0x8648cc={};if(_0x2ee301['module']&&(0x0,lodash_1[_0x5aec5c(0x1e0)])(_0x57477c,_0x5aec5c(0x1a3),![])!=_0x2ee301[_0x5aec5c(0x1a3)])continue _0x19ee5d;else{if(_0x2ee301[_0x5aec5c(0x1a3)]===![]&&!!(0x0,lodash_1[_0x5aec5c(0x1e0)])(_0x57477c,_0x5aec5c(0x1a3),null))continue _0x19ee5d;}if(_0x2ee301['prefix']&&!_0x45a5c9[_0x5aec5c(0x1b5)](_0x2ee301[_0x5aec5c(0x1a1)]))continue _0x19ee5d;_0x45a5c9!=='/'?(_0x8648cc[_0x5aec5c(0x1c8)]=(_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c['routerOptions']['tagName'])||(/^\//['test'](_0x45a5c9)?_0x45a5c9[_0x5aec5c(0x1ac)]('/')[0x1]:_0x45a5c9),_0x8648cc['description']=(_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c[_0x5aec5c(0x1e8)][_0x5aec5c(0x1ca)])||_0x8648cc['summary'],_0x8648cc[_0x5aec5c(0x1b7)]=[]):(_0x8648cc[_0x5aec5c(0x1c8)]=(_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c[_0x5aec5c(0x1e8)]['tagName'])||_0x5aec5c(0x1aa),_0x8648cc[_0x5aec5c(0x1ca)]=(_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c[_0x5aec5c(0x1e8)][_0x5aec5c(0x1ca)])||'',_0x8648cc[_0x5aec5c(0x1b7)]=[]);_0x2ee301[_0x5aec5c(0x1b9)]&&(_0x8648cc['filepath']=_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c[_0x5aec5c(0x1b9)]);(_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c['pprefix'])&&(_0x8648cc[_0x5aec5c(0x1a1)]=_0x57477c['pprefix']);(_0x57477c===null||_0x57477c===void 0x0?void 0x0:_0x57477c[_0x5aec5c(0x1a3)])&&(_0x8648cc['module']=_0x57477c['module']);let _0x1ec627=(0x0,core_3[_0x5aec5c(0x19f)])(core_2[_0x5aec5c(0x1ef)],_0x55ffc9)||{};if(typeof _0x1cb9de[Symbol[_0x5aec5c(0x1a6)]]===_0x5aec5c(0x1b3))for(let _0x3a8386 of _0x1cb9de){if((_0x2ee301===null||_0x2ee301===void 0x0?void 0x0:_0x2ee301['intercept'])&&!(_0x3a8386===null||_0x3a8386===void 0x0?void 0x0:_0x3a8386['intercept']))continue;let _0x44cc64={};_0x44cc64[_0x5aec5c(0x1a2)]=_0x3a8386[_0x5aec5c(0x1c5)],_0x44cc64[_0x5aec5c(0x1da)]=(_0x45a5c9+_0x3a8386[_0x5aec5c(0x1a8)])[_0x5aec5c(0x19b)](/\/{2,}/g,'/'),_0x44cc64[_0x5aec5c(0x1c8)]=(_0x3a8386===null||_0x3a8386===void 0x0?void 0x0:_0x3a8386[_0x5aec5c(0x1d8)])||_0x8648cc[_0x5aec5c(0x1c8)]||'default',_0x44cc64[_0x5aec5c(0x1ca)]=(_0x3a8386===null||_0x3a8386===void 0x0?void 0x0:_0x3a8386[_0x5aec5c(0x1ca)])||'',_0x44cc64['request']=[];_0x44cc64[_0x5aec5c(0x1da)]['endsWith']('/')&&(_0x44cc64[_0x5aec5c(0x1da)]=_0x44cc64[_0x5aec5c(0x1da)][_0x5aec5c(0x1bf)](0x0,_0x44cc64[_0x5aec5c(0x1da)]['length']-0x1));if(!(0x0,lodash_1[_0x5aec5c(0x1b5)])(_0x44cc64[_0x5aec5c(0x1da)],'static/apitest')&&!(0x0,lodash_1[_0x5aec5c(0x1b5)])(_0x44cc64[_0x5aec5c(0x1da)],'/static/apitest')&&_0x37a4ba[_0x5aec5c(0x1f1)](_0x44cc64['route'])===-0x1){if(!(_0x2ee301===null||_0x2ee301===void 0x0?void 0x0:_0x2ee301['noreq'])){let _0x5abe29=(0x0,core_3[_0x5aec5c(0x1e7)])(new _0x55ffc9(),_0x3a8386[_0x5aec5c(0x1a2)]);for(const _0x3b5538 in _0x5abe29){let _0x35391c=(_0x4c28e5=_0x1ec627[_0x3a8386[_0x5aec5c(0x1a2)]])===null||_0x4c28e5===void 0x0?void 0x0:_0x4c28e5[_0x5aec5c(0x1f2)](_0x249e2a=>_0x249e2a[_0x5aec5c(0x1cd)]==_0x3b5538&&_0x249e2a[_0x5aec5c(0x1d6)]===core_2[_0x5aec5c(0x1e3)]&&(_0x249e2a===null||_0x249e2a===void 0x0?void 0x0:_0x249e2a[_0x5aec5c(0x1c6)]));if(_0x35391c===null||_0x35391c===void 0x0?void 0x0:_0x35391c[_0x5aec5c(0x1c6)]){let _0x45d6f7=convertTypeToString(_0x35391c[_0x5aec5c(0x1c6)][_0x5aec5c(0x1bd)]||0x0);if(['query','body']['indexOf'](_0x45d6f7)!=-0x1&&_0x35391c[_0x5aec5c(0x1c6)][_0x5aec5c(0x1db)]['indexOf'](':')==-0x1&&!_0x44cc64[_0x5aec5c(0x1d3)][_0x5aec5c(0x1f2)](_0x59a33d=>_0x59a33d[_0x5aec5c(0x1d6)]==_0x35391c[_0x5aec5c(0x1c6)][_0x5aec5c(0x1db)]))_0x44cc64['request'][_0x5aec5c(0x1b1)]({'key':_0x35391c[_0x5aec5c(0x1c6)]['propertyData'],'title':_0x35391c['metadata'][_0x5aec5c(0x1db)],'type':convertSchemaType(_0x5abe29[_0x35391c[_0x5aec5c(0x1cd)]][_0x5aec5c(0x1c3)]),'required':![],'default':'','desc':''});else{if(_0x45d6f7==_0x5aec5c(0x1d7)){let _0x5cdc10=((_0x3468e1=_0x35391c===null||_0x35391c===void 0x0?void 0x0:_0x35391c[_0x5aec5c(0x1c6)])===null||_0x3468e1===void 0x0?void 0x0:_0x3468e1[_0x5aec5c(0x1db)])||_0x5aec5c(0x1d7);_0x5cdc10[_0x5aec5c(0x1f1)](':')==-0x1&&!_0x44cc64['request']['find'](_0x5aaa97=>_0x5aaa97[_0x5aec5c(0x1d6)]==_0x5cdc10&&_0x5aaa97[_0x5aec5c(0x1bd)]=='file')&&_0x44cc64['request']['push']({'key':_0x5cdc10,'title':'文件上传-'+_0x5cdc10,'type':_0x5aec5c(0x1d7),'required':!![],'default':'','desc':''});}}}else{const _0x4981ed=(0x0,core_3[_0x5aec5c(0x1ba)])(validator_1[_0x5aec5c(0x1c0)],_0x5abe29[_0x3b5538]);_0x4981ed&&_0x44cc64['request']['push'](...getJoiRequest(_0x4981ed));}}}_0x8648cc[_0x5aec5c(0x1b7)][_0x5aec5c(0x1b1)](_0x44cc64);}}if(_0x8648cc[_0x5aec5c(0x1b7)][_0x5aec5c(0x1dc)]>0x0){let _0x21c5aa=_0x5b383e[_0x45a5c9];_0x21c5aa?(_0x21c5aa[_0x5aec5c(0x1c8)]!=_0x8648cc[_0x5aec5c(0x1c8)]&&(_0x21c5aa[_0x5aec5c(0x1c8)]=_0x21c5aa[_0x5aec5c(0x1c8)]+','+_0x8648cc[_0x5aec5c(0x1c8)]),_0x21c5aa['description']!=_0x8648cc[_0x5aec5c(0x1ca)]&&(_0x21c5aa[_0x5aec5c(0x1ca)]=_0x21c5aa[_0x5aec5c(0x1ca)]+','+_0x8648cc[_0x5aec5c(0x1ca)]),_0x21c5aa[_0x5aec5c(0x1b7)]=_0x21c5aa['routes'][_0x5aec5c(0x1ab)](_0x8648cc['routes']),_0x5b383e[_0x45a5c9]=_0x21c5aa):_0x5b383e[_0x45a5c9]=_0x8648cc;}}}return _0x5b383e;}function getJoiRequest(_0x351559){const _0x20ba1b=a8_0xb22b3f,_0x478354=[];for(let _0xab4b8c in _0x351559){const _0x3192b3={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x455554=typeof _0x351559[_0xab4b8c][_0x20ba1b(0x1a5)]==_0x20ba1b(0x1b3)?_0x351559[_0xab4b8c][_0x20ba1b(0x1a5)]():_0x351559[_0xab4b8c];_0x3192b3[_0x20ba1b(0x1d6)]=_0xab4b8c,_0x3192b3['type']=_0x455554[_0x20ba1b(0x1bd)],_0x3192b3[_0x20ba1b(0x1ec)]=(0x0,lodash_1[_0x20ba1b(0x1e0)])(_0x455554,'flags.label',_0xab4b8c),_0x3192b3[_0x20ba1b(0x1aa)]=(0x0,lodash_1['get'])(_0x455554,_0x20ba1b(0x1cb),''),_0x3192b3['required']=(0x0,lodash_1[_0x20ba1b(0x1e0)])(_0x455554,_0x20ba1b(0x1cc),'')==_0x20ba1b(0x1e1),_0x3192b3[_0x20ba1b(0x1ca)]=(0x0,lodash_1[_0x20ba1b(0x1e0)])(_0x455554,_0x20ba1b(0x1ad),'');if(_0x455554[_0x20ba1b(0x1bd)]==_0x20ba1b(0x1c7))_0x3192b3[_0x20ba1b(0x1cf)]=getJoiRequest(_0x455554[_0x20ba1b(0x1e5)]);else{if(_0x455554['type']==_0x20ba1b(0x1a7)&&_0x455554['items']&&Array[_0x20ba1b(0x1a9)](_0x455554[_0x20ba1b(0x197)])&&_0x455554[_0x20ba1b(0x197)][0x0]){}}_0x455554[_0x20ba1b(0x1f5)]&&Array[_0x20ba1b(0x1a9)](_0x455554[_0x20ba1b(0x1f5)])&&_0x455554['allow'][_0x20ba1b(0x1dc)]>0x0&&(_0x3192b3[_0x20ba1b(0x1ca)]='只允许:['+_0x455554[_0x20ba1b(0x1f5)][_0x20ba1b(0x1ce)](',')+'];'+_0x3192b3[_0x20ba1b(0x1ca)]);if(_0x3192b3[_0x20ba1b(0x1d6)]&&_0x3192b3[_0x20ba1b(0x1bd)]){const _0x2b63a2={};for(const _0x55651d of _0x455554['rules']||[]){if(_0x55651d['name']==='min'&&_0x55651d['args'])_0x2b63a2[_0x20ba1b(0x1c9)]=_0x55651d[_0x20ba1b(0x1af)][_0x20ba1b(0x1eb)];else _0x55651d[_0x20ba1b(0x1c3)]===_0x20ba1b(0x1de)&&(_0x2b63a2[_0x20ba1b(0x1de)]=_0x55651d['args'][_0x20ba1b(0x1eb)]);}_0x3192b3['rules']=_0x2b63a2;}_0x3192b3['key']&&_0x3192b3[_0x20ba1b(0x1ec)]&&_0x478354[_0x20ba1b(0x1b1)](_0x3192b3);}return _0x478354;}function a8_0x5d93(_0x1e6023,_0x350990){const _0x49d423=a8_0x3d47();return a8_0x5d93=function(_0x406b06,_0x36fc9e){_0x406b06=_0x406b06-0x197;let _0x3d4719=_0x49d423[_0x406b06];return _0x3d4719;},a8_0x5d93(_0x1e6023,_0x350990);}function convertSchemaType(_0x2be6da){const _0x33fd31=a8_0xb22b3f;switch(_0x2be6da){case _0x33fd31(0x1f4):return _0x33fd31(0x1c7);case _0x33fd31(0x1e6):return'boolean';case _0x33fd31(0x19a):return _0x33fd31(0x1c2);case'String':return _0x33fd31(0x1f3);case'File':return'file';default:return _0x33fd31(0x1f3);}}function a8_0x3d47(){const _0x282fac=['Boolean','getMethodParamTypes','routerOptions','query','PARAM','limit','title','@anncic-api/validator','FILESTREAM','INJECT_CUSTOM_PARAM','(((.+)+)+)+$','indexOf','find','string','Object','allow','items','RouteParamTypes','ACTION_KEY','Number','replace','toString','11LmJvsV','__esModule','getClassMetadata','@midwayjs/core','prefix','method','module','9011080ybfyDE','describe','iterator','array','path','isArray','default','concat','split','flags.description','filter','args','ACTION_ROUTE_KEY','push','14095PiyFwz','function','BODY','startsWith','defineProperty','routes','constructor','filepath','getClassExtendedMetadata','11427912zGluHs','body','type','search','substring','RULES_KEY','getRoutes','number','name','715940aqwTAb','requestMethod','metadata','object','summary','min','description','flags.default','flags.presence','parameterIndex','join','children','header','2586kyIAEc','2086170DUqCKv','request','lodash','FIELDS','key','file','routerName','9BXriap','route','propertyData','length','62630aPWoSq','max','apply','get','required','1455580UerPxq','WEB_ROUTER_PARAM_KEY','FILESSTREAM','keys'];a8_0x3d47=function(){return _0x282fac;};return a8_0x3d47();}function convertTypeToString(_0x44615b){const _0x53f31f=a8_0xb22b3f;switch(_0x44615b){case core_1[_0x53f31f(0x198)]['HEADERS']:return _0x53f31f(0x1d0);case core_1[_0x53f31f(0x198)]['QUERY']:return _0x53f31f(0x1e9);case core_1[_0x53f31f(0x198)][_0x53f31f(0x1ea)]:return'path';case core_1['RouteParamTypes'][_0x53f31f(0x1b4)]:return _0x53f31f(0x1bc);case core_1['RouteParamTypes'][_0x53f31f(0x1d5)]:case core_1[_0x53f31f(0x198)][_0x53f31f(0x1e4)]:case core_1[_0x53f31f(0x198)][_0x53f31f(0x1ee)]:return _0x53f31f(0x1d7);default:return _0x53f31f(0x1d0);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x563e11=a9_0x2cb2;(function(_0x9d41f8,_0x5a0789){var _0x23556a=a9_0x2cb2,_0x4f71a0=_0x9d41f8();while(!![]){try{var _0x14b6f2=-parseInt(_0x23556a(0x8d))/0x1*(parseInt(_0x23556a(0xa8))/0x2)+parseInt(_0x23556a(0x9f))/0x3*(-parseInt(_0x23556a(0xbd))/0x4)+-parseInt(_0x23556a(0xc8))/0x5*(-parseInt(_0x23556a(0xb3))/0x6)+parseInt(_0x23556a(0xb7))/0x7+parseInt(_0x23556a(0xbf))/0x8+parseInt(_0x23556a(0xa9))/0x9+-parseInt(_0x23556a(0xcc))/0xa*(-parseInt(_0x23556a(0x91))/0xb);if(_0x14b6f2===_0x5a0789)break;else _0x4f71a0['push'](_0x4f71a0['shift']());}catch(_0x1530fb){_0x4f71a0['push'](_0x4f71a0['shift']());}}}(a9_0x1e4e,0xc6188));var a9_0x483abb=(function(){var _0x1af196=!![];return function(_0x9efb2c,_0xa69786){var _0x1843a1=_0x1af196?function(){var _0x5bd3e7=a9_0x2cb2;if(_0xa69786){var _0x12cf8f=_0xa69786[_0x5bd3e7(0x96)](_0x9efb2c,arguments);return _0xa69786=null,_0x12cf8f;}}:function(){};return _0x1af196=![],_0x1843a1;};}()),a9_0x151095=a9_0x483abb(this,function(){var _0xad6b70=a9_0x2cb2;return a9_0x151095[_0xad6b70(0x9b)]()[_0xad6b70(0xc4)](_0xad6b70(0xa2))['toString']()[_0xad6b70(0xcd)](a9_0x151095)[_0xad6b70(0xc4)](_0xad6b70(0xa2));});function a9_0x2cb2(_0x46dbb3,_0x5da437){var _0x17ac64=a9_0x1e4e();return a9_0x2cb2=function(_0x151095,_0x483abb){_0x151095=_0x151095-0x8d;var _0x1e4e45=_0x17ac64[_0x151095];return _0x1e4e45;},a9_0x2cb2(_0x46dbb3,_0x5da437);}a9_0x151095();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a9_0x563e11(0xbb)]?function(_0x1bf505,_0x13aa73,_0x4fa666,_0x3dff6b){var _0x1d9552=a9_0x563e11;if(_0x3dff6b===undefined)_0x3dff6b=_0x4fa666;var _0x1c68af=Object['getOwnPropertyDescriptor'](_0x13aa73,_0x4fa666);(!_0x1c68af||(_0x1d9552(0xbe)in _0x1c68af?!_0x13aa73['__esModule']:_0x1c68af[_0x1d9552(0xad)]||_0x1c68af[_0x1d9552(0x8f)]))&&(_0x1c68af={'enumerable':!![],'get':function(){return _0x13aa73[_0x4fa666];}}),Object[_0x1d9552(0xa6)](_0x1bf505,_0x3dff6b,_0x1c68af);}:function(_0x598979,_0x1f46da,_0x409bff,_0x43b957){if(_0x43b957===undefined)_0x43b957=_0x409bff;_0x598979[_0x43b957]=_0x1f46da[_0x409bff];}),__exportStar=this&&this['__exportStar']||function(_0x5c238a,_0x291d2c){var _0x12c22d=a9_0x563e11;for(var _0x392952 in _0x5c238a)if(_0x392952!==_0x12c22d(0x9a)&&!Object[_0x12c22d(0xb0)][_0x12c22d(0x94)][_0x12c22d(0xa4)](_0x291d2c,_0x392952))__createBinding(_0x291d2c,_0x5c238a,_0x392952);};Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xb6),{'value':!![]}),exports[a9_0x563e11(0xa7)]=exports[a9_0x563e11(0xc3)]=exports[a9_0x563e11(0xb9)]=exports[a9_0x563e11(0xcb)]=exports[a9_0x563e11(0xae)]=exports[a9_0x563e11(0x98)]=exports[a9_0x563e11(0xac)]=exports[a9_0x563e11(0xb1)]=exports[a9_0x563e11(0x90)]=exports[a9_0x563e11(0x8e)]=exports[a9_0x563e11(0x9d)]=exports[a9_0x563e11(0xc9)]=exports[a9_0x563e11(0x95)]=exports[a9_0x563e11(0xce)]=exports[a9_0x563e11(0xb2)]=exports[a9_0x563e11(0xc5)]=exports[a9_0x563e11(0xba)]=exports[a9_0x563e11(0xb4)]=exports[a9_0x563e11(0xc7)]=exports['ValidatorError']=exports[a9_0x563e11(0x9c)]=exports[a9_0x563e11(0x93)]=exports[a9_0x563e11(0xc6)]=exports[a9_0x563e11(0xab)]=exports[a9_0x563e11(0xc2)]=exports[a9_0x563e11(0xb5)]=exports[a9_0x563e11(0xa0)]=exports[a9_0x563e11(0xbc)]=exports['Apitest']=exports[a9_0x563e11(0xc1)]=void 0x0;const getAppsConfig_1=require(a9_0x563e11(0xa1));Object[a9_0x563e11(0xa6)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x26c9d4=a9_0x563e11;return getAppsConfig_1[_0x26c9d4(0xa7)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x563e11(0xaf)),exports);var Action_1=require(a9_0x563e11(0xa5));Object['defineProperty'](exports,a9_0x563e11(0xc1),{'enumerable':!![],'get':function(){var _0x5e1218=a9_0x563e11;return Action_1[_0x5e1218(0xc1)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object['defineProperty'](exports,'Apitest',{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a9_0x563e11(0xca));Object['defineProperty'](exports,a9_0x563e11(0xbc),{'enumerable':!![],'get':function(){var _0x505bbf=a9_0x563e11;return Intercept_1[_0x505bbf(0xbc)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xa0),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});function a9_0x1e4e(){var _0x4eef9a=['1305983mrUGOn','./service/ExcelService','Singleton','File','create','Intercept','32876hAvPcx','get','8058008eHceDa','@midwayjs/core','Action','ApiError','ScopeEnum','search','Files','EventService','ValidatorService','5OQXJkc','Query','./decorator/Intercept','Scope','20ZBilEp','constructor','Body','269gscvKI','Init','configurable','App','2129149MnmYLk','CustomConfiguration','ApiService','hasOwnProperty','Param','apply','@anncic-api/validator','Provide','@anncic-api/cache','default','toString','ExcelService','Headers','./configuration','537PEryEM','IIntercept','./helper/getAppsConfig','(((.+)+)+)+$','ValidatorError','call','./decorator/Action','defineProperty','getAppsConfig','5164zccpYG','5973624ksGUhn','@anncic-api/event','CacheService','Logger','writable','Inject','./service/ApitestService','prototype','Config','Fields','4394910RoEGrr','Configuration','getRoutes','__esModule'];a9_0x1e4e=function(){return _0x4eef9a;};return a9_0x1e4e();}var getRoutes_1=require('./helper/getRoutes');Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xb5),{'enumerable':!![],'get':function(){var _0x448727=a9_0x563e11;return getRoutes_1[_0x448727(0xb5)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xc2),{'enumerable':!![],'get':function(){var _0x163b80=a9_0x563e11;return ApiError_1[_0x163b80(0xc2)];}});var cache_1=require(a9_0x563e11(0x99));Object[a9_0x563e11(0xa6)](exports,'CacheService',{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x563e11(0xaa));Object[a9_0x563e11(0xa6)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x381708=a9_0x563e11;return event_1[_0x381708(0xc6)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0x93),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x563e11(0xb8));Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0x9c),{'enumerable':!![],'get':function(){var _0x5461ff=a9_0x563e11;return ExcelService_1[_0x5461ff(0x9c)];}});var validator_1=require(a9_0x563e11(0x97));Object[a9_0x563e11(0xa6)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x235655=a9_0x563e11;return validator_1[_0x235655(0xa3)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xc7),{'enumerable':!![],'get':function(){var _0x291eb2=a9_0x563e11;return validator_1[_0x291eb2(0xc7)];}});var configuration_1=require(a9_0x563e11(0x9e));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x36a14a=a9_0x563e11;return configuration_1[_0x36a14a(0x92)];}});var core_1=require('@midwayjs/core');Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xba),{'enumerable':!![],'get':function(){var _0x517225=a9_0x563e11;return core_1[_0x517225(0xba)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xc5),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object['defineProperty'](exports,a9_0x563e11(0xb2),{'enumerable':!![],'get':function(){var _0x518d06=a9_0x563e11;return core_1[_0x518d06(0xb2)];}}),Object[a9_0x563e11(0xa6)](exports,'Body',{'enumerable':!![],'get':function(){var _0x1e7d31=a9_0x563e11;return core_1[_0x1e7d31(0xce)];}}),Object['defineProperty'](exports,a9_0x563e11(0x95),{'enumerable':!![],'get':function(){var _0x41528a=a9_0x563e11;return core_1[_0x41528a(0x95)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xc9),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0x9d),{'enumerable':!![],'get':function(){var _0x34961d=a9_0x563e11;return core_1[_0x34961d(0x9d)];}}),Object['defineProperty'](exports,a9_0x563e11(0x8e),{'enumerable':!![],'get':function(){var _0x2bede1=a9_0x563e11;return core_1[_0x2bede1(0x8e)];}});var core_2=require(a9_0x563e11(0xc0));Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0x90),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x563e11(0xa6)](exports,'Config',{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object['defineProperty'](exports,'Logger',{'enumerable':!![],'get':function(){var _0x34e96a=a9_0x563e11;return core_2[_0x34e96a(0xac)];}}),Object['defineProperty'](exports,a9_0x563e11(0x98),{'enumerable':!![],'get':function(){var _0x360a46=a9_0x563e11;return core_2[_0x360a46(0x98)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xae),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object['defineProperty'](exports,a9_0x563e11(0xcb),{'enumerable':!![],'get':function(){var _0x2616c9=a9_0x563e11;return core_2[_0x2616c9(0xcb)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xb9),{'enumerable':!![],'get':function(){var _0x1a3bb8=a9_0x563e11;return core_2[_0x1a3bb8(0xb9)];}}),Object[a9_0x563e11(0xa6)](exports,a9_0x563e11(0xc3),{'enumerable':!![],'get':function(){var _0x1227bb=a9_0x563e11;return core_2[_0x1227bb(0xc3)];}}),global[a9_0x563e11(0xa7)]=getAppsConfig_1[a9_0x563e11(0xa7)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a10_0x48af75=a10_0xdfc8;(function(_0x3f3b63,_0x2e7b71){var _0x5060b8=a10_0xdfc8,_0x570301=_0x3f3b63();while(!![]){try{var _0x39664a=parseInt(_0x5060b8(0x1d2))/0x1+parseInt(_0x5060b8(0x1ee))/0x2*(parseInt(_0x5060b8(0x1cc))/0x3)+parseInt(_0x5060b8(0x205))/0x4+-parseInt(_0x5060b8(0x1ed))/0x5*(parseInt(_0x5060b8(0x1da))/0x6)+parseInt(_0x5060b8(0x1e5))/0x7*(-parseInt(_0x5060b8(0x1d8))/0x8)+parseInt(_0x5060b8(0x1d5))/0x9+parseInt(_0x5060b8(0x1eb))/0xa*(parseInt(_0x5060b8(0x1fa))/0xb);if(_0x39664a===_0x2e7b71)break;else _0x570301['push'](_0x570301['shift']());}catch(_0x180611){_0x570301['push'](_0x570301['shift']());}}}(a10_0x2960,0xc5394));var a10_0x4f6390=(function(){var _0x28e380=!![];return function(_0x56099b,_0x1f9322){var _0x2f3619=_0x28e380?function(){if(_0x1f9322){var _0x11c692=_0x1f9322['apply'](_0x56099b,arguments);return _0x1f9322=null,_0x11c692;}}:function(){};return _0x28e380=![],_0x2f3619;};}()),a10_0xaea25b=a10_0x4f6390(this,function(){var _0x78dabd=a10_0xdfc8;return a10_0xaea25b[_0x78dabd(0x1ca)]()['search'](_0x78dabd(0x1e4))['toString']()[_0x78dabd(0x1f2)](a10_0xaea25b)[_0x78dabd(0x1d7)]('(((.+)+)+)+$');});a10_0xaea25b();'use strict';var __decorate=this&&this['__decorate']||function(_0x5a0dbb,_0x4be2ed,_0x53c950,_0x1c6e1a){var _0x2be465=a10_0xdfc8,_0x3a8d0c=arguments[_0x2be465(0x1f6)],_0x15abad=_0x3a8d0c<0x3?_0x4be2ed:_0x1c6e1a===null?_0x1c6e1a=Object[_0x2be465(0x1f1)](_0x4be2ed,_0x53c950):_0x1c6e1a,_0x56d34e;if(typeof Reflect===_0x2be465(0x209)&&typeof Reflect[_0x2be465(0x206)]===_0x2be465(0x1c8))_0x15abad=Reflect['decorate'](_0x5a0dbb,_0x4be2ed,_0x53c950,_0x1c6e1a);else{for(var _0x307049=_0x5a0dbb['length']-0x1;_0x307049>=0x0;_0x307049--)if(_0x56d34e=_0x5a0dbb[_0x307049])_0x15abad=(_0x3a8d0c<0x3?_0x56d34e(_0x15abad):_0x3a8d0c>0x3?_0x56d34e(_0x4be2ed,_0x53c950,_0x15abad):_0x56d34e(_0x4be2ed,_0x53c950))||_0x15abad;}return _0x3a8d0c>0x3&&_0x15abad&&Object[_0x2be465(0x1ec)](_0x4be2ed,_0x53c950,_0x15abad),_0x15abad;},__metadata=this&&this[a10_0x48af75(0x1d1)]||function(_0x36af03,_0x935d95){var _0x344ad=a10_0x48af75;if(typeof Reflect===_0x344ad(0x209)&&typeof Reflect[_0x344ad(0x1f7)]===_0x344ad(0x1c8))return Reflect['metadata'](_0x36af03,_0x935d95);};Object[a10_0x48af75(0x1ec)](exports,a10_0x48af75(0x1e0),{'value':!![]}),exports[a10_0x48af75(0x1d4)]=void 0x0;function a10_0xdfc8(_0x858a0,_0x5d559c){var _0x37afa3=a10_0x2960();return a10_0xdfc8=function(_0xaea25b,_0x4f6390){_0xaea25b=_0xaea25b-0x1c7;var _0x2960e5=_0x37afa3[_0xaea25b];return _0x2960e5;},a10_0xdfc8(_0x858a0,_0x5d559c);}const crypto_js_1=require(a10_0x48af75(0x1e2)),core_1=require(a10_0x48af75(0x207)),ApiError_1=require(a10_0x48af75(0x1d3));let ApiService=class ApiService{[a10_0x48af75(0x201)](_0x5bd178){var _0x4ccdb3=a10_0x48af75,_0x3b5506;return _0x5bd178?(0x0,crypto_js_1['MD5'])(''+_0x5bd178+(0x0,crypto_js_1[_0x4ccdb3(0x1dd)])((0x0,crypto_js_1[_0x4ccdb3(0x1dd)])(''+_0x5bd178)[_0x4ccdb3(0x1ca)]()+(''+((_0x3b5506=this[_0x4ccdb3(0x1d9)])===null||_0x3b5506===void 0x0?void 0x0:_0x3b5506['password'])))[_0x4ccdb3(0x1ca)]())[_0x4ccdb3(0x1ca)]():'';}[a10_0x48af75(0x208)](_0x19ab99,_0x336461,_0x2a4585=Date['now']()){return{'Token':_0x19ab99,'Logintime':_0x2a4585,'Checkcode':this['checkcode'](_0x19ab99,_0x336461,_0x2a4585)};}[a10_0x48af75(0x20a)](_0x5d984c={}){var _0x2e0593=a10_0x48af75,_0x5b8b9a,_0x22b9d6;const _0x5abe9f=[],_0x576a80=Object[_0x2e0593(0x1cf)](Object['entries'](_0x5d984c)[_0x2e0593(0x1e7)](_0x4b86d8=>[_0x4b86d8[0x0][_0x2e0593(0x1dc)](),_0x4b86d8[0x1]]));for(let _0x4e3c34 of[_0x2e0593(0x1c7),'requesttime',_0x2e0593(0x200),_0x2e0593(0x1ea),'checkcode']){if(typeof _0x576a80[_0x4e3c34]==_0x2e0593(0x1e1))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x2e0593(0x1f8)});_0x5abe9f[_0x2e0593(0x1cb)](_0x4e3c34+'='+_0x576a80[_0x4e3c34]);}_0x576a80['requesttime']&&((_0x5b8b9a=_0x576a80['requesttime'])===null||_0x5b8b9a===void 0x0?void 0x0:_0x5b8b9a[_0x2e0593(0x1f6)])==0xa&&(_0x576a80[_0x2e0593(0x1d6)]=_0x576a80['requesttime']*0x3e8);if(this[_0x2e0593(0x1d9)][_0x2e0593(0x1e8)]&&parseInt((''+Date['now']())[_0x2e0593(0x1ef)](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x2e0593(0x204)](_0x576a80[_0x2e0593(0x1d6)]))[_0x2e0593(0x1ef)](0x0,0xd)[_0x2e0593(0x1e6)](0xd,'0'))>parseInt(this[_0x2e0593(0x1d9)]['timeout']))throw new AnnError(ApiError_1[_0x2e0593(0x1ce)][_0x2e0593(0x1fc)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x576a80['requesttime'],'timestamp':Date['now']()});if((((_0x22b9d6=this[_0x2e0593(0x1d9)]['devices'][_0x576a80[_0x2e0593(0x1c7)]])===null||_0x22b9d6===void 0x0?void 0x0:_0x22b9d6[_0x2e0593(0x1e3)])||0x0)>0x0&&Date[_0x2e0593(0x1fb)]()-Math[_0x2e0593(0x204)](_0x576a80[_0x2e0593(0x1ea)])>this['config']['devices'][_0x576a80[_0x2e0593(0x1c7)]][_0x2e0593(0x1e3)])throw new AnnError(ApiError_1[_0x2e0593(0x1ce)][_0x2e0593(0x1cd)]);if(!this[_0x2e0593(0x1d9)]['devices'][_0x576a80[_0x2e0593(0x1c7)]]||!this[_0x2e0593(0x1d9)][_0x2e0593(0x1c9)][_0x576a80['device']][_0x2e0593(0x1d0)]||!this[_0x2e0593(0x1d9)][_0x2e0593(0x1c9)][_0x576a80[_0x2e0593(0x1c7)]]['checkcode'])throw new AnnError(ApiError_1[_0x2e0593(0x1ce)]['HEADERS_DEVICE']);if(_0x576a80[_0x2e0593(0x200)]&&_0x576a80['checkcode']!=this[_0x2e0593(0x1f9)](_0x576a80[_0x2e0593(0x200)],_0x576a80[_0x2e0593(0x1c7)],_0x576a80[_0x2e0593(0x1ea)]))throw new AnnError(ApiError_1[_0x2e0593(0x1ce)][_0x2e0593(0x1e9)]);return _0x5abe9f['push'](_0x2e0593(0x1f0)+this[_0x2e0593(0x1d9)]['devices'][_0x576a80[_0x2e0593(0x1c7)]]['secret']),(0x0,crypto_js_1[_0x2e0593(0x1dd)])(_0x5abe9f[_0x2e0593(0x1df)]()['join'](''))['toString']();}[a10_0x48af75(0x1f9)](_0x621d33,_0x2a014f,_0x50c2ef=Date['now']()){var _0x312e7d=a10_0x48af75,_0x3f56d5,_0x2c076e,_0xed8395;if(!((_0x3f56d5=this[_0x312e7d(0x1d9)])===null||_0x3f56d5===void 0x0?void 0x0:_0x3f56d5['devices'][_0x2a014f])||!((_0xed8395=(_0x2c076e=this['config'])===null||_0x2c076e===void 0x0?void 0x0:_0x2c076e[_0x312e7d(0x1c9)][_0x2a014f])===null||_0xed8395===void 0x0?void 0x0:_0xed8395[_0x312e7d(0x1f9)]))throw new AnnError(ApiError_1[_0x312e7d(0x1ce)]['HEADERS_DEVICE']);return(0x0,crypto_js_1['MD5'])(''+_0x621d33+(0x0,crypto_js_1['MD5'])(''+_0x50c2ef+(''+this['config']['devices'][_0x2a014f]['checkcode']))[_0x312e7d(0x1ca)]())['toString']();}[a10_0x48af75(0x1f4)](_0x3b4d27={}){var _0x3f427c=a10_0x48af75;const _0xf68869=Object['fromEntries'](Object[_0x3f427c(0x1fe)](_0x3b4d27)['map'](_0x5bf692=>[_0x5bf692[0x0][_0x3f427c(0x1dc)](),_0x5bf692[0x1]]));if(!(_0xf68869===null||_0xf68869===void 0x0?void 0x0:_0xf68869[_0x3f427c(0x1f5)]))throw new AnnError(ApiError_1[_0x3f427c(0x1ce)][_0x3f427c(0x1fd)],{'message':_0x3f427c(0x1f8)});if((_0xf68869===null||_0xf68869===void 0x0?void 0x0:_0xf68869[_0x3f427c(0x1f5)])!=this[_0x3f427c(0x20a)](_0xf68869))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE'],{'message':'验证失败'});return!![];}};function a10_0x2960(){var _0x4857c9=['Config','abs','3431560CYobMM','decorate','@midwayjs/core','getcheck','object','getsign','device','function','devices','toString','push','438xfDZev','TIMEOUT_LOGINTIME','ApiError','fromEntries','secret','__metadata','331436nBfeQR','../exception/ApiError','ApiService','8382843uckGjm','requesttime','search','3512oFOrZZ','config','13434vLpxUC','anncicapi','toLowerCase','MD5','Scope','sort','__esModule','undefined','crypto-js','logintimeout','(((.+)+)+)+$','14903rhOyCX','padEnd','map','timeout','HEADERS_CHECKCODE','logintime','163890xJCfdo','defineProperty','2845SLWvcF','1718fjoeJi','substring','secret=','getOwnPropertyDescriptor','constructor','Singleton','checksign','signature','length','metadata','验证失败','checkcode','517vSQpXE','now','TIMEOUT','HEADERS_LACK','entries','design:type','token','password','prototype'];a10_0x2960=function(){return _0x4857c9;};return a10_0x2960();}exports[a10_0x48af75(0x1d4)]=ApiService,__decorate([(0x0,core_1[a10_0x48af75(0x203)])(a10_0x48af75(0x1db)),__metadata(a10_0x48af75(0x1ff),Object)],ApiService[a10_0x48af75(0x202)],a10_0x48af75(0x1d9),void 0x0),exports[a10_0x48af75(0x1d4)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x48af75(0x1de)])(core_1['ScopeEnum'][a10_0x48af75(0x1f3)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x390850=a11_0x289a;(function(_0x478b71,_0x4c448b){const _0x481ec8=a11_0x289a,_0x1f302a=_0x478b71();while(!![]){try{const _0x803ab6=parseInt(_0x481ec8(0x17b))/0x1+parseInt(_0x481ec8(0x16b))/0x2*(-parseInt(_0x481ec8(0x161))/0x3)+-parseInt(_0x481ec8(0x163))/0x4+parseInt(_0x481ec8(0x150))/0x5*(parseInt(_0x481ec8(0x18f))/0x6)+-parseInt(_0x481ec8(0x146))/0x7*(parseInt(_0x481ec8(0x178))/0x8)+-parseInt(_0x481ec8(0x165))/0x9+-parseInt(_0x481ec8(0x14b))/0xa*(-parseInt(_0x481ec8(0x173))/0xb);if(_0x803ab6===_0x4c448b)break;else _0x1f302a['push'](_0x1f302a['shift']());}catch(_0x3e789f){_0x1f302a['push'](_0x1f302a['shift']());}}}(a11_0x2d58,0xa068a));const a11_0x2baa58=(function(){let _0x37ce09=!![];return function(_0x3539cd,_0x3f21cf){const _0x7e59aa=_0x37ce09?function(){const _0xda4d75=a11_0x289a;if(_0x3f21cf){const _0x121e45=_0x3f21cf[_0xda4d75(0x16e)](_0x3539cd,arguments);return _0x3f21cf=null,_0x121e45;}}:function(){};return _0x37ce09=![],_0x7e59aa;};}()),a11_0x340bb7=a11_0x2baa58(this,function(){const _0x492fce=a11_0x289a;return a11_0x340bb7[_0x492fce(0x15d)]()['search'](_0x492fce(0x13c))[_0x492fce(0x15d)]()[_0x492fce(0x13b)](a11_0x340bb7)[_0x492fce(0x14e)](_0x492fce(0x13c));});a11_0x340bb7();'use strict';function a11_0x289a(_0x371186,_0x5ef362){const _0x411e82=a11_0x2d58();return a11_0x289a=function(_0x340bb7,_0x2baa58){_0x340bb7=_0x340bb7-0x13b;let _0x2d5826=_0x411e82[_0x340bb7];return _0x2d5826;},a11_0x289a(_0x371186,_0x5ef362);}var __decorate=this&&this['__decorate']||function(_0x5a9fd5,_0x46f12d,_0x38ab1b,_0xa65628){const _0x329959=a11_0x289a;var _0x1f4606=arguments['length'],_0x952cf4=_0x1f4606<0x3?_0x46f12d:_0xa65628===null?_0xa65628=Object[_0x329959(0x189)](_0x46f12d,_0x38ab1b):_0xa65628,_0x205461;if(typeof Reflect===_0x329959(0x17c)&&typeof Reflect[_0x329959(0x160)]===_0x329959(0x182))_0x952cf4=Reflect[_0x329959(0x160)](_0x5a9fd5,_0x46f12d,_0x38ab1b,_0xa65628);else{for(var _0x4d8984=_0x5a9fd5[_0x329959(0x192)]-0x1;_0x4d8984>=0x0;_0x4d8984--)if(_0x205461=_0x5a9fd5[_0x4d8984])_0x952cf4=(_0x1f4606<0x3?_0x205461(_0x952cf4):_0x1f4606>0x3?_0x205461(_0x46f12d,_0x38ab1b,_0x952cf4):_0x205461(_0x46f12d,_0x38ab1b))||_0x952cf4;}return _0x1f4606>0x3&&_0x952cf4&&Object[_0x329959(0x14c)](_0x46f12d,_0x38ab1b,_0x952cf4),_0x952cf4;},__metadata=this&&this[a11_0x390850(0x16a)]||function(_0x3f61fa,_0x1a2b7f){const _0x145a8c=a11_0x390850;if(typeof Reflect===_0x145a8c(0x17c)&&typeof Reflect['metadata']==='function')return Reflect[_0x145a8c(0x191)](_0x3f61fa,_0x1a2b7f);},__param=this&&this[a11_0x390850(0x166)]||function(_0x27112b,_0x1a6585){return function(_0x5decc2,_0x51aa54){_0x1a6585(_0x5decc2,_0x51aa54,_0x27112b);};};function a11_0x2d58(){const _0x3aa951=['decorate','450iuWwWY','design:returntype','4218044FsVqUe','@midwayjs/core','2627973WZlbUy','__param','url','apiteststatic','config','__metadata','8812PrhBQb','ApitestStaticController','/apiteststatic/*','apply','stringify','set','design:paramtypes','Singleton','858231YAuCES','replace','anncicapi','route','design:type','43736MtJXdh','apitest','filepath','447259VhVQBC','object','ctx','module','extname','push','routes','function','../../public/','prefix','ScopeEnum','application/javascript;\x20charset=utf-8','../../public/index.html','summary','getOwnPropertyDescriptor','apitesthtml','ApitestService','/apitest-:module','__esModule','Param','2195718rOfobC','/apiteststatic/','metadata','length','constructor','(((.+)+)+)+$','readFileSync','Get','/index.html','devices','.js','join','substring','Controller','apidoc','1295AQKUil','getRoutes','existsSync','utf-8','MidwayEnvironmentService','320AQYGXX','defineProperty','method','search','Environment','10NKeJLj','description','text/css;\x20charset=utf-8','Scope','request','Inject','public,\x20max-age=604800','path','Config','../helper/getRoutes','/apitest','isDevelopmentEnvironment','__devices__','toString','prototype','content-type'];a11_0x2d58=function(){return _0x3aa951;};return a11_0x2d58();}Object[a11_0x390850(0x14c)](exports,a11_0x390850(0x18d),{'value':!![]}),exports[a11_0x390850(0x16c)]=exports[a11_0x390850(0x18b)]=void 0x0;const path_1=require(a11_0x390850(0x157)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x390850(0x164)),core_3=require(a11_0x390850(0x164)),getRoutes_1=require(a11_0x390850(0x159));let ApitestService=class ApitestService{async['apidoc'](_0x15613e){const _0x1bb326=a11_0x390850,_0x508def=(0x0,getRoutes_1[_0x1bb326(0x147)])(_0x15613e),_0x161c68=[];for(let _0x2acd81 in _0x508def){for(let _0x512303 in _0x508def[_0x2acd81][_0x1bb326(0x181)]){let _0x1fe3a2=_0x508def[_0x2acd81][_0x1bb326(0x181)][_0x512303],_0x1327aa=[];for(let _0x8c5af5 in _0x1fe3a2['request']){_0x1327aa[_0x1bb326(0x180)](_0x1fe3a2[_0x1bb326(0x154)][_0x8c5af5]);}_0x161c68[_0x1bb326(0x180)]({'title':_0x508def[_0x2acd81]['summary']+':'+_0x1fe3a2[_0x1bb326(0x188)],'prefix':_0x508def[_0x2acd81][_0x1bb326(0x184)],'router':_0x1fe3a2[_0x1bb326(0x176)],'method':_0x1fe3a2[_0x1bb326(0x14d)],'describe':_0x1fe3a2[_0x1bb326(0x151)]||'','filepath':_0x508def[_0x2acd81][_0x1bb326(0x17a)]||'','request':_0x1327aa});}}const _0x16337e=(0x0,path_1[_0x1bb326(0x142)])(__dirname,_0x1bb326(0x187));return(0x0,fs_1[_0x1bb326(0x13d)])(_0x16337e,{'encoding':_0x1bb326(0x149)})['replace'](/__res__/g,_0x1bb326(0x190))['replace']('__apiList__',JSON['stringify'](_0x161c68))['replace'](_0x1bb326(0x15c),JSON[_0x1bb326(0x16f)](this['config'][_0x1bb326(0x140)]));}};exports['ApitestService']=ApitestService,__decorate([(0x0,core_3[a11_0x390850(0x158)])(a11_0x390850(0x175)),__metadata(a11_0x390850(0x177),Object)],ApitestService[a11_0x390850(0x15e)],a11_0x390850(0x169),void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x390850(0x179)),(0x0,core_3[a11_0x390850(0x153)])(core_3[a11_0x390850(0x185)][a11_0x390850(0x172)])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a11_0x390850(0x18a)](){const _0x2e7fcf=a11_0x390850;if(this[_0x2e7fcf(0x179)]){const _0x5463ce={'module':![]};return this[_0x2e7fcf(0x14f)][_0x2e7fcf(0x15b)]()&&(_0x5463ce[_0x2e7fcf(0x17a)]=!![]),await this[_0x2e7fcf(0x18b)]['apidoc'](_0x5463ce);}return'';}async['apitestmodule'](_0x2cd7a0){const _0x65ed34=a11_0x390850;if(this['apitest']){const _0x2e1fc2={'module':_0x2cd7a0};return this[_0x65ed34(0x14f)][_0x65ed34(0x15b)]()&&(_0x2e1fc2[_0x65ed34(0x17a)]=!![]),await this[_0x65ed34(0x18b)][_0x65ed34(0x145)](_0x2e1fc2);}return'';}async[a11_0x390850(0x168)](){const _0x567a25=a11_0x390850;if((0x0,path_1[_0x567a25(0x17f)])(this[_0x567a25(0x17d)][_0x567a25(0x154)][_0x567a25(0x167)])){var _0x1b5cac=(0x0,path_1['join'])(__dirname,_0x567a25(0x183)+this[_0x567a25(0x17d)][_0x567a25(0x154)][_0x567a25(0x167)][_0x567a25(0x174)](_0x567a25(0x190),'/'));if(_0x1b5cac[_0x567a25(0x143)](_0x1b5cac[_0x567a25(0x192)]-0xb)!=_0x567a25(0x13f)){this['ctx'][_0x567a25(0x170)]('cache-control',_0x567a25(0x156));if((0x0,path_1[_0x567a25(0x17f)])(this[_0x567a25(0x17d)]['request']['url'])==_0x567a25(0x141))this[_0x567a25(0x17d)][_0x567a25(0x170)](_0x567a25(0x15f),_0x567a25(0x186));else(0x0,path_1['extname'])(this[_0x567a25(0x17d)][_0x567a25(0x154)]['url'])=='.css'&&this[_0x567a25(0x17d)][_0x567a25(0x170)](_0x567a25(0x15f),_0x567a25(0x152));return(0x0,fs_1[_0x567a25(0x148)])(_0x1b5cac)&&(0x0,fs_1[_0x567a25(0x13d)])(_0x1b5cac,{'encoding':_0x567a25(0x149)});}}return'';}};exports[a11_0x390850(0x16c)]=ApitestStaticController,__decorate([(0x0,core_3[a11_0x390850(0x155)])(),__metadata(a11_0x390850(0x177),Object)],ApitestStaticController['prototype'],a11_0x390850(0x17d),void 0x0),__decorate([(0x0,core_3[a11_0x390850(0x155)])(),__metadata('design:type',core_1[a11_0x390850(0x14a)])],ApitestStaticController[a11_0x390850(0x15e)],'Environment',void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x390850(0x177),ApitestService)],ApitestStaticController[a11_0x390850(0x15e)],a11_0x390850(0x18b),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x390850(0x179)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x390850(0x15e)],'apitest',void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x390850(0x175)),__metadata('design:type',Object)],ApitestStaticController[a11_0x390850(0x15e)],'config',void 0x0),__decorate([(0x0,core_2[a11_0x390850(0x13e)])(a11_0x390850(0x15a)),__metadata(a11_0x390850(0x177),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x390850(0x162),Promise)],ApitestStaticController[a11_0x390850(0x15e)],a11_0x390850(0x18a),null),__decorate([(0x0,core_2['Get'])(a11_0x390850(0x18c)),__param(0x0,(0x0,core_2[a11_0x390850(0x18e)])(a11_0x390850(0x17e))),__metadata(a11_0x390850(0x177),Function),__metadata(a11_0x390850(0x171),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],'apitestmodule',null),__decorate([(0x0,core_2['Get'])(a11_0x390850(0x16d)),__metadata(a11_0x390850(0x177),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x390850(0x162),Promise)],ApitestStaticController[a11_0x390850(0x15e)],a11_0x390850(0x168),null),exports[a11_0x390850(0x16c)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x390850(0x144)])('/'),(0x0,core_3[a11_0x390850(0x153)])(core_3['ScopeEnum']['Request'])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x225565=a12_0x4a55;function a12_0x47c0(){const _0x4e9795=['function','cellCount','onWrite','search','columns','keys','length','prototype','rowCount','startsWith','endsWith','replace','getAppDir','getRow','104668AFdwqO','worksheets','values','header','ExcelService','Provide','mkdirSync','handler','design:type','push','130992LRBnpj','YYYY/MM/DD','7BmAxyW','1665036pYuhRp','Workbook','xls','model','Api\x20Excel\x20Error:\x20','toString','get','__decorate','export','addWorksheet','eachCell','48UkmqdR','substring','Scope','format','15UNrMJa','getCell','App','filter','ScopeEnum','set','238272iGLIyT','Sheet\x201','xlsx','col','writeFile','1459000NvnZdA','parse','constructor','384012SPWGGv','.xlsx','(((.+)+)+)+$','findRows','19754702LApkiR','object','value','__esModule','160ECXIIZ','frozen','./ExcelStream','defineProperty','getOwnPropertyDescriptor','decorate','download','key','onRead','/public/xlsx/','getWorksheet','stream','ExcelStream','app','exceljs','metadata'];a12_0x47c0=function(){return _0x4e9795;};return a12_0x47c0();}(function(_0x43f06f,_0x1ad89e){const _0x2406e8=a12_0x4a55,_0x18e4d1=_0x43f06f();while(!![]){try{const _0x1ca985=parseInt(_0x2406e8(0x117))/0x1+-parseInt(_0x2406e8(0xee))/0x2+parseInt(_0x2406e8(0x12f))/0x3*(-parseInt(_0x2406e8(0x121))/0x4)+-parseInt(_0x2406e8(0x133))/0x5*(parseInt(_0x2406e8(0x124))/0x6)+-parseInt(_0x2406e8(0x123))/0x7*(parseInt(_0x2406e8(0xe9))/0x8)+-parseInt(_0x2406e8(0xf1))/0x9*(-parseInt(_0x2406e8(0xf9))/0xa)+parseInt(_0x2406e8(0xf5))/0xb;if(_0x1ca985===_0x1ad89e)break;else _0x18e4d1['push'](_0x18e4d1['shift']());}catch(_0x3ba80a){_0x18e4d1['push'](_0x18e4d1['shift']());}}}(a12_0x47c0,0x7220c));const a12_0xb78fae=(function(){let _0x5b01bd=!![];return function(_0x2102f3,_0x39534c){const _0x30bd67=_0x5b01bd?function(){if(_0x39534c){const _0x324080=_0x39534c['apply'](_0x2102f3,arguments);return _0x39534c=null,_0x324080;}}:function(){};return _0x5b01bd=![],_0x30bd67;};}()),a12_0x47587d=a12_0xb78fae(this,function(){const _0x285d1c=a12_0x4a55;return a12_0x47587d[_0x285d1c(0x129)]()[_0x285d1c(0x10c)]('(((.+)+)+)+$')['toString']()[_0x285d1c(0xf0)](a12_0x47587d)[_0x285d1c(0x10c)](_0x285d1c(0xf3));});a12_0x47587d();'use strict';var __decorate=this&&this[a12_0x225565(0x12b)]||function(_0x2bb96f,_0x27bec0,_0x83daf4,_0x3030b8){const _0x301cf5=a12_0x225565;var _0x35210f=arguments[_0x301cf5(0x10f)],_0x1e6416=_0x35210f<0x3?_0x27bec0:_0x3030b8===null?_0x3030b8=Object[_0x301cf5(0xfd)](_0x27bec0,_0x83daf4):_0x3030b8,_0x1536de;if(typeof Reflect===_0x301cf5(0xf6)&&typeof Reflect[_0x301cf5(0xfe)]===_0x301cf5(0x109))_0x1e6416=Reflect[_0x301cf5(0xfe)](_0x2bb96f,_0x27bec0,_0x83daf4,_0x3030b8);else{for(var _0x4724bd=_0x2bb96f[_0x301cf5(0x10f)]-0x1;_0x4724bd>=0x0;_0x4724bd--)if(_0x1536de=_0x2bb96f[_0x4724bd])_0x1e6416=(_0x35210f<0x3?_0x1536de(_0x1e6416):_0x35210f>0x3?_0x1536de(_0x27bec0,_0x83daf4,_0x1e6416):_0x1536de(_0x27bec0,_0x83daf4))||_0x1e6416;}return _0x35210f>0x3&&_0x1e6416&&Object[_0x301cf5(0xfc)](_0x27bec0,_0x83daf4,_0x1e6416),_0x1e6416;},__metadata=this&&this['__metadata']||function(_0x341c03,_0xec3325){const _0x2d83da=a12_0x225565;if(typeof Reflect===_0x2d83da(0xf6)&&typeof Reflect[_0x2d83da(0x108)]===_0x2d83da(0x109))return Reflect[_0x2d83da(0x108)](_0x341c03,_0xec3325);};Object[a12_0x225565(0xfc)](exports,a12_0x225565(0xf8),{'value':!![]}),exports[a12_0x225565(0x11b)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x225565(0x107)),koasend=require('koa-send'),core_1=require('@midwayjs/core'),ExcelStream_1=require(a12_0x225565(0xfb));let ExcelService=class ExcelService{async[a12_0x225565(0xef)](_0x44b5d2,_0x558375,_0x4df005=[0x0]){const _0x5959b0=a12_0x225565;var _0x4918d1,_0x32c062;const _0x24f2ba=new exceljs[(_0x5959b0(0x125))](),_0x162b42=[];let _0xc29b0b=_0x44b5d2[_0x5959b0(0x114)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0xc29b0b===null||_0xc29b0b===void 0x0?void 0x0:_0xc29b0b['startsWith']('/'))&&(_0xc29b0b=this[_0x5959b0(0x106)][_0x5959b0(0x115)]()+'/'+_0xc29b0b);try{await _0x24f2ba[_0x5959b0(0xeb)]['readFile'](_0xc29b0b);}catch(_0x431c5d){return console['log'](_0x5959b0(0x128)+_0xc29b0b+'\x20is\x20read\x20fail'),_0x162b42;}for(const _0x12cc81 of _0x4df005){const _0xeae56e=lodash['isNumber'](_0x12cc81)?((_0x4918d1=_0x24f2ba[_0x5959b0(0x118)])===null||_0x4918d1===void 0x0?void 0x0:_0x4918d1[_0x12cc81])||undefined:_0x24f2ba[_0x5959b0(0x103)](_0x12cc81);if(_0xeae56e){var _0x114591=0x1;const _0x440150=_0xeae56e[_0x5959b0(0x116)](0x1),_0x39bb1e=await new Promise(_0x26af04=>{const _0x5b9a59=_0x5959b0,_0x2fb928={};_0x440150[_0x5b9a59(0x12e)]((_0x4b2cf5,_0x81cf5a)=>{const _0x183a80=_0x5b9a59;for(const _0x5c8f43 of _0x558375){if(_0x4b2cf5[_0x183a80(0xf7)]==_0x5c8f43[_0x183a80(0x11a)])_0x114591=0x2,_0x2fb928[_0x5c8f43['key']]={'header':_0x4b2cf5['col'],'handler':(_0x5c8f43===null||_0x5c8f43===void 0x0?void 0x0:_0x5c8f43['onRead'])||(_0x5c8f43===null||_0x5c8f43===void 0x0?void 0x0:_0x5c8f43[_0x183a80(0x11e)])};else{if(!_0x2fb928[_0x5c8f43[_0x183a80(0x100)]])try{const _0x230b55=_0x440150&&_0x440150[_0x183a80(0x134)](_0x5c8f43['header']);_0x230b55&&(_0x2fb928[_0x5c8f43['key']]={'header':_0x230b55[_0x183a80(0xec)],'handler':(_0x5c8f43===null||_0x5c8f43===void 0x0?void 0x0:_0x5c8f43[_0x183a80(0x101)])||(_0x5c8f43===null||_0x5c8f43===void 0x0?void 0x0:_0x5c8f43['handler'])});}catch{}}}_0x440150[_0x183a80(0x10a)]==_0x81cf5a&&_0x26af04(_0x2fb928);});});_0x22ebf0:for(const _0x3fa3f9 of _0xeae56e[_0x5959b0(0xf4)](_0x114591,_0xeae56e[_0x5959b0(0x111)])){if(typeof(_0x3fa3f9===null||_0x3fa3f9===void 0x0?void 0x0:_0x3fa3f9[_0x5959b0(0x134)])!=_0x5959b0(0x109))continue _0x22ebf0;const _0x10984d={};_0x57e9a1:for(const _0x366c57 in _0x39bb1e){if(_0x39bb1e[_0x366c57][_0x5959b0(0x11a)]){const _0x104ec3=_0x3fa3f9['getCell'](_0x39bb1e[_0x366c57][_0x5959b0(0x11a)]);if(!_0x104ec3)continue _0x57e9a1;try{_0x104ec3[_0x5959b0(0x129)]();}catch(_0x1acae5){_0x104ec3[_0x5959b0(0x129)]=()=>{const _0x1e600f=_0x5959b0;var _0x34869a;return''+(((_0x34869a=_0x104ec3===null||_0x104ec3===void 0x0?void 0x0:_0x104ec3[_0x1e600f(0x127)])===null||_0x34869a===void 0x0?void 0x0:_0x34869a['value'])||'');};}typeof((_0x32c062=_0x39bb1e[_0x366c57])===null||_0x32c062===void 0x0?void 0x0:_0x32c062[_0x5959b0(0x11e)])==_0x5959b0(0x109)?_0x10984d[_0x366c57]=await _0x39bb1e[_0x366c57][_0x5959b0(0x11e)](lodash[_0x5959b0(0xe8)]({},_0x366c57,(_0x104ec3===null||_0x104ec3===void 0x0?void 0x0:_0x104ec3[_0x5959b0(0x129)]())||''),_0x104ec3[_0x5959b0(0x127)]):_0x10984d[_0x366c57]=(_0x104ec3===null||_0x104ec3===void 0x0?void 0x0:_0x104ec3[_0x5959b0(0x129)]())||'';}}Object[_0x5959b0(0x10e)](_0x10984d)[_0x5959b0(0x10f)]>0x0&&Object[_0x5959b0(0x119)](_0x10984d)[_0x5959b0(0xe6)](_0x225408=>_0x225408!='')['length']>0x0&&_0x162b42[_0x5959b0(0x120)](_0x10984d);}}}return _0x162b42;}async[a12_0x225565(0x12c)](_0x385773,_0xc79424,_0x43a217,_0x16413b,_0x51b7f3){const _0x2933a2=a12_0x225565;var _0x3e2e48,_0x22e517,_0xc8963d;const _0x1e1378=new exceljs[(_0x2933a2(0x125))](),_0x2ff11f={},_0x2535ae=[],_0x5eda5c=_0x1e1378[_0x2933a2(0x12d)](_0x2933a2(0xea),{'views':[{'state':_0x2933a2(0xfa),'ySplit':0x1}]});for(const _0x14bb5f in _0xc79424){_0x2ff11f[_0xc79424[_0x14bb5f][_0x2933a2(0x100)]]=_0xc79424[_0x14bb5f][_0x2933a2(0x11a)],_0x2535ae['push']({'header':_0xc79424[_0x14bb5f][_0x2933a2(0x11a)],'key':(_0x3e2e48=_0xc79424[_0x14bb5f])===null||_0x3e2e48===void 0x0?void 0x0:_0x3e2e48['key']['replace'](/\./g,'_')});}_0x5eda5c[_0x2933a2(0x10d)]=_0x2535ae;for(const _0x4cd77a in _0x43a217){const _0x36e435=_0x43a217[_0x4cd77a],_0x4893df=_0x5eda5c['addRow']({});for(let _0x1fa87c in _0xc79424){const _0x5ccee4=_0xc79424[_0x1fa87c][_0x2933a2(0x100)][_0x2933a2(0x114)](/\./g,'_'),_0x12c9e4=_0x5eda5c['getColumn'](_0x5ccee4),_0x255a95=_0x4893df===null||_0x4893df===void 0x0?void 0x0:_0x4893df['getCell'](_0x5ccee4);if(typeof((_0x22e517=_0xc79424[_0x1fa87c])===null||_0x22e517===void 0x0?void 0x0:_0x22e517[_0x2933a2(0x10b)])=='function')_0x255a95[_0x2933a2(0xf7)]=await _0xc79424[_0x1fa87c][_0x2933a2(0x10b)](_0x36e435,{'row':_0x4893df,'col':_0x12c9e4,'cell':_0x255a95,'sheet':_0x5eda5c})||'';else typeof((_0xc8963d=_0xc79424[_0x1fa87c])===null||_0xc8963d===void 0x0?void 0x0:_0xc8963d[_0x2933a2(0x11e)])==_0x2933a2(0x109)?_0x255a95['value']=await _0xc79424[_0x1fa87c][_0x2933a2(0x11e)](_0x36e435,{'row':_0x4893df,'col':_0x12c9e4,'cell':_0x255a95,'sheet':_0x5eda5c})||'':_0x255a95['value']=lodash[_0x2933a2(0x12a)](_0x36e435,_0xc79424[_0x1fa87c]['key'],'');}}typeof _0x51b7f3=='function'&&await _0x51b7f3({'workbook':_0x1e1378,'worksheet':_0x5eda5c});let _0x58131f='';const _0x1f6c57=_0x385773+_0x2933a2(0xf2);if(_0x16413b&&_0x16413b['startsWith']('/'))_0x58131f=''+_0x16413b;else _0x16413b&&!_0x16413b[_0x2933a2(0x112)]('/')&&!_0x16413b['startsWith']('\x5c')?_0x58131f=this['app'][_0x2933a2(0x115)]()+'/'+_0x16413b:_0x58131f=this['app']['getAppDir']()+_0x2933a2(0x102)+dayjs()[_0x2933a2(0x132)](_0x2933a2(0x122));return(_0x58131f[_0x2933a2(0x113)]('/')||_0x58131f[_0x2933a2(0x113)]('\x5c'))&&(_0x58131f=_0x58131f[_0x2933a2(0x130)](0x0,_0x58131f[_0x2933a2(0x10f)]-0x1)),_0x58131f=_0x58131f[_0x2933a2(0x114)](/(\\|\/)/g,'/')[_0x2933a2(0x114)](/\/{2,}/g,'/'),!fs['existsSync'](_0x58131f)&&fs[_0x2933a2(0x11d)](_0x58131f,{'recursive':!![]}),await _0x1e1378['xlsx'][_0x2933a2(0xed)]((_0x58131f+'/'+_0x1f6c57)[_0x2933a2(0x114)](/(\\|\/)/g,'/')[_0x2933a2(0x114)](/\/{2,}/g,'/')),{'filename':_0x1f6c57,'filepath':(_0x58131f[_0x2933a2(0x130)]((''+this[_0x2933a2(0x106)][_0x2933a2(0x115)]())['length'])+'/'+_0x1f6c57)[_0x2933a2(0x114)](/(\\|\/)/g,'/')[_0x2933a2(0x114)](/\/{2,}/g,'/')};}async[a12_0x225565(0x104)](_0x1dcfd3,_0x59e15b={'suffix':[a12_0x225565(0x126),a12_0x225565(0xeb)]}){const _0x3caf34=a12_0x225565;return await ExcelStream_1[_0x3caf34(0x105)]['instance'](_0x1dcfd3,_0x59e15b);}async[a12_0x225565(0xff)](_0x49d6ff,_0x22892e){return await koasend(_0x49d6ff,''+_0x22892e);}};function a12_0x4a55(_0x4ba442,_0xb361ef){const _0x4be1d9=a12_0x47c0();return a12_0x4a55=function(_0x47587d,_0xb78fae){_0x47587d=_0x47587d-0xe6;let _0x47c0ba=_0x4be1d9[_0x47587d];return _0x47c0ba;},a12_0x4a55(_0x4ba442,_0xb361ef);}exports[a12_0x225565(0x11b)]=ExcelService,__decorate([(0x0,core_1[a12_0x225565(0x135)])(),__metadata(a12_0x225565(0x11f),Object)],ExcelService[a12_0x225565(0x110)],a12_0x225565(0x106),void 0x0),exports[a12_0x225565(0x11b)]=ExcelService=__decorate([(0x0,core_1[a12_0x225565(0x11c)])(),(0x0,core_1[a12_0x225565(0x131)])(core_1[a12_0x225565(0xe7)]['Singleton'])],ExcelService);
|
|
1
|
+
function a12_0x3e7f(_0x5a12b9,_0x2d2379){const _0x3a87fc=a12_0x457a();return a12_0x3e7f=function(_0x30410b,_0x512439){_0x30410b=_0x30410b-0x127;let _0x457a93=_0x3a87fc[_0x30410b];return _0x457a93;},a12_0x3e7f(_0x5a12b9,_0x2d2379);}const a12_0x1e3eb2=a12_0x3e7f;(function(_0x3e67b3,_0x4306e6){const _0x475719=a12_0x3e7f,_0x28b613=_0x3e67b3();while(!![]){try{const _0x5cacba=parseInt(_0x475719(0x15e))/0x1+-parseInt(_0x475719(0x143))/0x2*(-parseInt(_0x475719(0x171))/0x3)+-parseInt(_0x475719(0x164))/0x4*(-parseInt(_0x475719(0x177))/0x5)+-parseInt(_0x475719(0x152))/0x6+parseInt(_0x475719(0x16f))/0x7+parseInt(_0x475719(0x13c))/0x8*(parseInt(_0x475719(0x168))/0x9)+-parseInt(_0x475719(0x139))/0xa*(parseInt(_0x475719(0x14f))/0xb);if(_0x5cacba===_0x4306e6)break;else _0x28b613['push'](_0x28b613['shift']());}catch(_0x1242aa){_0x28b613['push'](_0x28b613['shift']());}}}(a12_0x457a,0xacb1f));const a12_0x512439=(function(){let _0x45c948=!![];return function(_0x45fca9,_0x5052e2){const _0x3fa632=_0x45c948?function(){const _0x3b71dc=a12_0x3e7f;if(_0x5052e2){const _0x588907=_0x5052e2[_0x3b71dc(0x174)](_0x45fca9,arguments);return _0x5052e2=null,_0x588907;}}:function(){};return _0x45c948=![],_0x3fa632;};}()),a12_0x30410b=a12_0x512439(this,function(){const _0x3699b6=a12_0x3e7f;return a12_0x30410b[_0x3699b6(0x134)]()[_0x3699b6(0x172)](_0x3699b6(0x162))[_0x3699b6(0x134)]()[_0x3699b6(0x13a)](a12_0x30410b)[_0x3699b6(0x172)](_0x3699b6(0x162));});a12_0x30410b();'use strict';function a12_0x457a(){const _0x1c4424=['20888dVCdAu','ExcelService','cellCount','object','addWorksheet','defineProperty','ScopeEnum','frozen','Provide','model','readFile','getRow','242957CJPUuf','app','\x20is\x20read\x20fail','6955686iMPQVj','value','Api\x20Excel\x20Error:\x20','Singleton','rowCount','__esModule','handler','getCell','stream','metadata','.xlsx','startsWith','219782ynSbMy','length','keys','Sheet\x201','(((.+)+)+)+$','instance','8GdjGDp','./ExcelStream','format','/public/xlsx/','3663vtGygx','App','__decorate','Workbook','isNumber','header','values','2692816OwEIUw','xlsx','366CmoHDy','search','replace','apply','filter','set','2187335AvXdBq','onRead','Scope','col','function','log','mkdirSync','getColumn','design:type','get','getOwnPropertyDescriptor','@midwayjs/core','endsWith','substring','decorate','toString','existsSync','writeFile','ExcelStream','export','530Ikgfyo','constructor','key','5576DVLfGo','koa-send','__metadata','onWrite','getAppDir','worksheets','columns'];a12_0x457a=function(){return _0x1c4424;};return a12_0x457a();}var __decorate=this&&this[a12_0x1e3eb2(0x16a)]||function(_0x163954,_0x32862e,_0x5f1331,_0x4b6d8c){const _0x2fc197=a12_0x1e3eb2;var _0x5e1a13=arguments[_0x2fc197(0x15f)],_0x24bf9e=_0x5e1a13<0x3?_0x32862e:_0x4b6d8c===null?_0x4b6d8c=Object[_0x2fc197(0x12f)](_0x32862e,_0x5f1331):_0x4b6d8c,_0x7802c7;if(typeof Reflect===_0x2fc197(0x146)&&typeof Reflect[_0x2fc197(0x133)]===_0x2fc197(0x129))_0x24bf9e=Reflect[_0x2fc197(0x133)](_0x163954,_0x32862e,_0x5f1331,_0x4b6d8c);else{for(var _0x503f87=_0x163954[_0x2fc197(0x15f)]-0x1;_0x503f87>=0x0;_0x503f87--)if(_0x7802c7=_0x163954[_0x503f87])_0x24bf9e=(_0x5e1a13<0x3?_0x7802c7(_0x24bf9e):_0x5e1a13>0x3?_0x7802c7(_0x32862e,_0x5f1331,_0x24bf9e):_0x7802c7(_0x32862e,_0x5f1331))||_0x24bf9e;}return _0x5e1a13>0x3&&_0x24bf9e&&Object[_0x2fc197(0x148)](_0x32862e,_0x5f1331,_0x24bf9e),_0x24bf9e;},__metadata=this&&this[a12_0x1e3eb2(0x13e)]||function(_0x58da14,_0x4ae7f3){const _0x1a1830=a12_0x1e3eb2;if(typeof Reflect===_0x1a1830(0x146)&&typeof Reflect[_0x1a1830(0x15b)]==='function')return Reflect[_0x1a1830(0x15b)](_0x58da14,_0x4ae7f3);};Object[a12_0x1e3eb2(0x148)](exports,a12_0x1e3eb2(0x157),{'value':!![]}),exports[a12_0x1e3eb2(0x144)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x1e3eb2(0x13d)),core_1=require(a12_0x1e3eb2(0x130)),ExcelStream_1=require(a12_0x1e3eb2(0x165));let ExcelService=class ExcelService{async['parse'](_0x1a960a,_0x548a90,_0x3da951=[0x0]){const _0x2015d3=a12_0x1e3eb2;var _0x3c19f2,_0x33db56;const _0x5d77e1=new exceljs[(_0x2015d3(0x16b))](),_0x3b9c58=[];let _0x265020=_0x1a960a[_0x2015d3(0x173)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x265020===null||_0x265020===void 0x0?void 0x0:_0x265020[_0x2015d3(0x15d)]('/'))&&(_0x265020=this[_0x2015d3(0x150)][_0x2015d3(0x140)]()+'/'+_0x265020);try{await _0x5d77e1[_0x2015d3(0x170)][_0x2015d3(0x14d)](_0x265020);}catch(_0x42eac0){return console[_0x2015d3(0x12a)](_0x2015d3(0x154)+_0x265020+_0x2015d3(0x151)),_0x3b9c58;}for(const _0x4a99c8 of _0x3da951){const _0x4232de=lodash[_0x2015d3(0x16c)](_0x4a99c8)?((_0x3c19f2=_0x5d77e1[_0x2015d3(0x141)])===null||_0x3c19f2===void 0x0?void 0x0:_0x3c19f2[_0x4a99c8])||undefined:_0x5d77e1['getWorksheet'](_0x4a99c8);if(_0x4232de){var _0x88b03b=0x1;const _0x2d46a4=_0x4232de[_0x2015d3(0x14e)](0x1),_0x921afc=await new Promise(_0x4f20f0=>{const _0x36fbc6={};_0x2d46a4['eachCell']((_0x5dc13a,_0x46888c)=>{const _0x1d0717=a12_0x3e7f;for(const _0x1f3739 of _0x548a90){if(_0x5dc13a[_0x1d0717(0x153)]==_0x1f3739[_0x1d0717(0x16d)])_0x88b03b=0x2,_0x36fbc6[_0x1f3739[_0x1d0717(0x13b)]]={'header':_0x5dc13a[_0x1d0717(0x128)],'handler':(_0x1f3739===null||_0x1f3739===void 0x0?void 0x0:_0x1f3739[_0x1d0717(0x178)])||(_0x1f3739===null||_0x1f3739===void 0x0?void 0x0:_0x1f3739[_0x1d0717(0x158)])};else{if(!_0x36fbc6[_0x1f3739[_0x1d0717(0x13b)]])try{const _0x49eedc=_0x2d46a4&&_0x2d46a4[_0x1d0717(0x159)](_0x1f3739['header']);_0x49eedc&&(_0x36fbc6[_0x1f3739[_0x1d0717(0x13b)]]={'header':_0x49eedc[_0x1d0717(0x128)],'handler':(_0x1f3739===null||_0x1f3739===void 0x0?void 0x0:_0x1f3739[_0x1d0717(0x178)])||(_0x1f3739===null||_0x1f3739===void 0x0?void 0x0:_0x1f3739[_0x1d0717(0x158)])});}catch{}}}_0x2d46a4[_0x1d0717(0x145)]==_0x46888c&&_0x4f20f0(_0x36fbc6);});});_0x2021f7:for(const _0x17dcbe of _0x4232de['findRows'](_0x88b03b,_0x4232de[_0x2015d3(0x156)])){if(typeof(_0x17dcbe===null||_0x17dcbe===void 0x0?void 0x0:_0x17dcbe[_0x2015d3(0x159)])!=_0x2015d3(0x129))continue _0x2021f7;const _0x23ed45={};_0x108a44:for(const _0x1d417b in _0x921afc){if(_0x921afc[_0x1d417b]['header']){const _0x51b43d=_0x17dcbe['getCell'](_0x921afc[_0x1d417b][_0x2015d3(0x16d)]);if(!_0x51b43d)continue _0x108a44;try{_0x51b43d['toString']();}catch(_0x258692){_0x51b43d['toString']=()=>{const _0x34393d=_0x2015d3;var _0x4860bb;return''+(((_0x4860bb=_0x51b43d===null||_0x51b43d===void 0x0?void 0x0:_0x51b43d[_0x34393d(0x14c)])===null||_0x4860bb===void 0x0?void 0x0:_0x4860bb[_0x34393d(0x153)])||'');};}typeof((_0x33db56=_0x921afc[_0x1d417b])===null||_0x33db56===void 0x0?void 0x0:_0x33db56['handler'])==_0x2015d3(0x129)?_0x23ed45[_0x1d417b]=await _0x921afc[_0x1d417b][_0x2015d3(0x158)](lodash[_0x2015d3(0x176)]({},_0x1d417b,(_0x51b43d===null||_0x51b43d===void 0x0?void 0x0:_0x51b43d[_0x2015d3(0x134)]())||''),_0x51b43d[_0x2015d3(0x14c)]):_0x23ed45[_0x1d417b]=(_0x51b43d===null||_0x51b43d===void 0x0?void 0x0:_0x51b43d['toString']())||'';}}Object[_0x2015d3(0x160)](_0x23ed45)[_0x2015d3(0x15f)]>0x0&&Object[_0x2015d3(0x16e)](_0x23ed45)[_0x2015d3(0x175)](_0x2ecf12=>_0x2ecf12!='')[_0x2015d3(0x15f)]>0x0&&_0x3b9c58['push'](_0x23ed45);}}}return _0x3b9c58;}async[a12_0x1e3eb2(0x138)](_0x278762,_0x4912a9,_0x5492c3,_0x3cb51c,_0x52d09b){const _0x56f3cb=a12_0x1e3eb2;var _0x1ae897,_0x452deb,_0x4acda4;const _0x463f4e=new exceljs[(_0x56f3cb(0x16b))](),_0x397856={},_0x560ff2=[],_0x545d43=_0x463f4e[_0x56f3cb(0x147)](_0x56f3cb(0x161),{'views':[{'state':_0x56f3cb(0x14a),'ySplit':0x1}]});for(const _0x114c21 in _0x4912a9){_0x397856[_0x4912a9[_0x114c21]['key']]=_0x4912a9[_0x114c21]['header'],_0x560ff2['push']({'header':_0x4912a9[_0x114c21]['header'],'key':(_0x1ae897=_0x4912a9[_0x114c21])===null||_0x1ae897===void 0x0?void 0x0:_0x1ae897['key'][_0x56f3cb(0x173)](/\./g,'_')});}_0x545d43[_0x56f3cb(0x142)]=_0x560ff2;for(const _0x3b91ff in _0x5492c3){const _0x34bd72=_0x5492c3[_0x3b91ff],_0x5261d3=_0x545d43['addRow']({});for(let _0x422465 in _0x4912a9){const _0x5a2527=_0x4912a9[_0x422465][_0x56f3cb(0x13b)][_0x56f3cb(0x173)](/\./g,'_'),_0x38f620=_0x545d43[_0x56f3cb(0x12c)](_0x5a2527),_0x54bd96=_0x5261d3===null||_0x5261d3===void 0x0?void 0x0:_0x5261d3[_0x56f3cb(0x159)](_0x5a2527);if(typeof((_0x452deb=_0x4912a9[_0x422465])===null||_0x452deb===void 0x0?void 0x0:_0x452deb[_0x56f3cb(0x13f)])==_0x56f3cb(0x129))_0x54bd96[_0x56f3cb(0x153)]=await _0x4912a9[_0x422465][_0x56f3cb(0x13f)](_0x34bd72,{'row':_0x5261d3,'col':_0x38f620,'cell':_0x54bd96,'sheet':_0x545d43})||'';else typeof((_0x4acda4=_0x4912a9[_0x422465])===null||_0x4acda4===void 0x0?void 0x0:_0x4acda4[_0x56f3cb(0x158)])==_0x56f3cb(0x129)?_0x54bd96[_0x56f3cb(0x153)]=await _0x4912a9[_0x422465][_0x56f3cb(0x158)](_0x34bd72,{'row':_0x5261d3,'col':_0x38f620,'cell':_0x54bd96,'sheet':_0x545d43})||'':_0x54bd96['value']=lodash[_0x56f3cb(0x12e)](_0x34bd72,_0x4912a9[_0x422465][_0x56f3cb(0x13b)],'');}}typeof _0x52d09b==_0x56f3cb(0x129)&&await _0x52d09b({'workbook':_0x463f4e,'worksheet':_0x545d43});let _0x53bb3a='';const _0x48e93d=_0x278762+_0x56f3cb(0x15c);if(_0x3cb51c&&_0x3cb51c['startsWith']('/'))_0x53bb3a=''+_0x3cb51c;else _0x3cb51c&&!_0x3cb51c[_0x56f3cb(0x15d)]('/')&&!_0x3cb51c[_0x56f3cb(0x15d)]('\x5c')?_0x53bb3a=this[_0x56f3cb(0x150)]['getAppDir']()+'/'+_0x3cb51c:_0x53bb3a=this[_0x56f3cb(0x150)][_0x56f3cb(0x140)]()+_0x56f3cb(0x167)+dayjs()[_0x56f3cb(0x166)]('YYYY/MM/DD');return(_0x53bb3a[_0x56f3cb(0x131)]('/')||_0x53bb3a[_0x56f3cb(0x131)]('\x5c'))&&(_0x53bb3a=_0x53bb3a['substring'](0x0,_0x53bb3a[_0x56f3cb(0x15f)]-0x1)),_0x53bb3a=_0x53bb3a['replace'](/(\\|\/)/g,'/')[_0x56f3cb(0x173)](/\/{2,}/g,'/'),!fs[_0x56f3cb(0x135)](_0x53bb3a)&&fs[_0x56f3cb(0x12b)](_0x53bb3a,{'recursive':!![]}),await _0x463f4e[_0x56f3cb(0x170)][_0x56f3cb(0x136)]((_0x53bb3a+'/'+_0x48e93d)[_0x56f3cb(0x173)](/(\\|\/)/g,'/')[_0x56f3cb(0x173)](/\/{2,}/g,'/')),{'filename':_0x48e93d,'filepath':(_0x53bb3a[_0x56f3cb(0x132)]((''+this[_0x56f3cb(0x150)][_0x56f3cb(0x140)]())[_0x56f3cb(0x15f)])+'/'+_0x48e93d)[_0x56f3cb(0x173)](/(\\|\/)/g,'/')[_0x56f3cb(0x173)](/\/{2,}/g,'/')};}async[a12_0x1e3eb2(0x15a)](_0x52f90b,_0x2ce759={'suffix':['xls',a12_0x1e3eb2(0x170)]}){const _0x1bc28f=a12_0x1e3eb2;return await ExcelStream_1[_0x1bc28f(0x137)][_0x1bc28f(0x163)](_0x52f90b,_0x2ce759);}async['download'](_0x3409b9,_0x1561c6){return await koasend(_0x3409b9,''+_0x1561c6);}};exports[a12_0x1e3eb2(0x144)]=ExcelService,__decorate([(0x0,core_1[a12_0x1e3eb2(0x169)])(),__metadata(a12_0x1e3eb2(0x12d),Object)],ExcelService['prototype'],'app',void 0x0),exports[a12_0x1e3eb2(0x144)]=ExcelService=__decorate([(0x0,core_1[a12_0x1e3eb2(0x14b)])(),(0x0,core_1[a12_0x1e3eb2(0x127)])(core_1[a12_0x1e3eb2(0x149)][a12_0x1e3eb2(0x155)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x2e34c1=a13_0xe00b;(function(_0x22cf3a,_0x1768f0){const _0x2ab237=a13_0xe00b,_0x190cab=_0x22cf3a();while(!![]){try{const _0x5915e1=parseInt(_0x2ab237(0x1f1))/0x1+-parseInt(_0x2ab237(0x200))/0x2*(parseInt(_0x2ab237(0x1ec))/0x3)+parseInt(_0x2ab237(0x1fa))/0x4+parseInt(_0x2ab237(0x1f8))/0x5+parseInt(_0x2ab237(0x1dc))/0x6*(parseInt(_0x2ab237(0x1d5))/0x7)+-parseInt(_0x2ab237(0x1fb))/0x8+parseInt(_0x2ab237(0x1f9))/0x9;if(_0x5915e1===_0x1768f0)break;else _0x190cab['push'](_0x190cab['shift']());}catch(_0x50d8ee){_0x190cab['push'](_0x190cab['shift']());}}}(a13_0x33b8,0xf31ab));const a13_0x5610be=(function(){let _0x1ef886=!![];return function(_0x43b24f,_0x2f8c5d){const _0x13fe7b=_0x1ef886?function(){const _0x30dc82=a13_0xe00b;if(_0x2f8c5d){const _0x132eb0=_0x2f8c5d[_0x30dc82(0x1e9)](_0x43b24f,arguments);return _0x2f8c5d=null,_0x132eb0;}}:function(){};return _0x1ef886=![],_0x13fe7b;};}()),a13_0x566b77=a13_0x5610be(this,function(){const _0x1f9c5f=a13_0xe00b;return a13_0x566b77[_0x1f9c5f(0x1e2)]()[_0x1f9c5f(0x1d7)](_0x1f9c5f(0x1f0))[_0x1f9c5f(0x1e2)]()[_0x1f9c5f(0x1e1)](a13_0x566b77)[_0x1f9c5f(0x1d7)](_0x1f9c5f(0x1f0));});function a13_0xe00b(_0x1ee45b,_0x2bf9a3){const _0x3f6c5d=a13_0x33b8();return a13_0xe00b=function(_0x566b77,_0x5610be){_0x566b77=_0x566b77-0x1d5;let _0x33b8db=_0x3f6c5d[_0x566b77];return _0x33b8db;},a13_0xe00b(_0x1ee45b,_0x2bf9a3);}a13_0x566b77();'use strict';Object['defineProperty'](exports,a13_0x2e34c1(0x1e0),{'value':!![]}),exports[a13_0x2e34c1(0x1e6)]=void 0x0;const fs=require('fs'),path=require(a13_0x2e34c1(0x212)),exceljs=require('exceljs');class ExcelStream{constructor(_0x1d5482,_0x3f5e39){const _0x56f8d8=a13_0x2e34c1;this[_0x56f8d8(0x205)]=new Map(),(this[_0x56f8d8(0x1ee)]=_0x1d5482,this[_0x56f8d8(0x1f5)]=_0x3f5e39);}static[a13_0x2e34c1(0x1fd)](_0x2751a1,_0x345741={'suffix':['xls',a13_0x2e34c1(0x1f4)]}){return new Promise(async(_0x4ae8f4,_0x2cf738)=>{const _0x4732ba=a13_0xe00b,_0x582320=_0x2751a1[_0x4732ba(0x1df)]((_0x2751a1[_0x4732ba(0x202)]('/')>-0x1?_0x2751a1[_0x4732ba(0x1d9)]('/'):_0x2751a1[_0x4732ba(0x1d9)]('\x5c'))+0x1),_0x50ea4e=path[_0x4732ba(0x1f7)](((_0x345741===null||_0x345741===void 0x0?void 0x0:_0x345741['rootpath'])&&!_0x2751a1[_0x4732ba(0x1ea)](_0x345741[_0x4732ba(0x20a)])?_0x345741['rootpath']+'/'+_0x2751a1:'/'+_0x2751a1)[_0x4732ba(0x20e)](/(\\|\/)/g,'/')[_0x4732ba(0x20e)](/\/{2,}/g,'/'));if(!((_0x345741===null||_0x345741===void 0x0?void 0x0:_0x345741['suffix'])?_0x345741[_0x4732ba(0x1f3)]:[_0x4732ba(0x214),_0x4732ba(0x1f4)])[_0x4732ba(0x1f6)](_0x582320['substring'](_0x582320['lastIndexOf']('.')+0x1)))return _0x2cf738(_0x4732ba(0x1e8));if(!fs[_0x4732ba(0x1e3)]((_0x50ea4e+'/'+_0x582320)[_0x4732ba(0x20e)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'))){!fs[_0x4732ba(0x1e3)](_0x50ea4e)&&fs[_0x4732ba(0x1ed)](_0x50ea4e,{'recursive':!![]});const _0xf9e3a0=new exceljs[(_0x4732ba(0x1db))]();await _0xf9e3a0[_0x4732ba(0x1f4)][_0x4732ba(0x1e7)]((_0x50ea4e+'/'+_0x582320)[_0x4732ba(0x20e)](/(\\|\/)/g,'/')[_0x4732ba(0x20e)](/\/{2,}/g,'/'));}const _0x402131=new exceljs[(_0x4732ba(0x210))][(_0x4732ba(0x1f4))][(_0x4732ba(0x1ee))]({'filename':(_0x50ea4e+'/'+_0x582320)[_0x4732ba(0x20e)](/(\\|\/)/g,'/')[_0x4732ba(0x20e)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x1b0ffa=new exceljs[(_0x4732ba(0x210))]['xlsx'][(_0x4732ba(0x1f5))]((_0x50ea4e+'/'+_0x582320)['replace'](/(\\|\/)/g,'/')[_0x4732ba(0x20e)](/\/{2,}/g,'/'),{'worksheets':'emit','sharedStrings':_0x4732ba(0x1de),'hyperlinks':'ignore','styles':_0x4732ba(0x1de)});return _0x4ae8f4(new ExcelStream(_0x402131,_0x1b0ffa));});}async['writer'](_0x1fd465,_0x331535,_0x8c7e8e=0x0){const _0x2cd0dc=a13_0x2e34c1;var _0x5225db,_0x53d70e;const _0x46739b=await this[_0x2cd0dc(0x206)](_0x8c7e8e,!![]),_0x4d7a0c={},_0xb3721=[];for(const _0xcee01f in _0x1fd465){_0x4d7a0c[_0x1fd465[_0xcee01f][_0x2cd0dc(0x1ef)]]=_0x1fd465[_0xcee01f][_0x2cd0dc(0x216)],_0xb3721[_0x2cd0dc(0x1da)]({'header':_0x1fd465[_0xcee01f]['header'],'key':(_0x5225db=_0x1fd465[_0xcee01f])===null||_0x5225db===void 0x0?void 0x0:_0x5225db[_0x2cd0dc(0x1ef)][_0x2cd0dc(0x20e)](/\./g,'_')});}(_0x46739b===null||_0x46739b===void 0x0?void 0x0:_0x46739b['columns'])!=_0xb3721&&(_0x46739b[_0x2cd0dc(0x208)]=_0xb3721);for(const _0x2a6577 in _0x331535){const _0x3f141d=_0x331535[_0x2a6577],_0x12850b=_0x46739b['addRow']({});for(let _0x3daeb8 in _0x1fd465){const _0x17bac2=_0x1fd465[_0x3daeb8][_0x2cd0dc(0x1ef)]['replace'](/\./g,'_'),_0x27fb3d=_0x46739b[_0x2cd0dc(0x207)](_0x17bac2),_0x5e4b54=_0x12850b===null||_0x12850b===void 0x0?void 0x0:_0x12850b['getCell'](_0x17bac2);typeof((_0x53d70e=_0x1fd465[_0x3daeb8])===null||_0x53d70e===void 0x0?void 0x0:_0x53d70e[_0x2cd0dc(0x1e4)])=='function'?_0x5e4b54[_0x2cd0dc(0x213)]=await _0x1fd465[_0x3daeb8]['handler'](_0x3f141d,{'row':_0x12850b,'col':_0x27fb3d,'cell':_0x5e4b54,'sheet':_0x46739b})||'':_0x5e4b54['value']=lodash['get'](_0x3f141d,_0x1fd465[_0x3daeb8][_0x2cd0dc(0x1ef)],'');}}return this;}async['reader'](_0x16f601,_0x4659fe,_0xc4bf86={'sheets':0x0}){const _0x12d087=a13_0x2e34c1;var _0x41ec60;const _0x59b25d=(_0xc4bf86===null||_0xc4bf86===void 0x0?void 0x0:_0xc4bf86['sheets'])?Array['isArray'](_0xc4bf86[_0x12d087(0x20b)])?_0xc4bf86[_0x12d087(0x20b)]:[_0xc4bf86['sheets']]:[0x0],_0x35797e=_0x27bb3c=>new Promise(async(_0x360176,_0x1ee81f)=>{const _0x35fc99=_0x12d087,_0x44f9da=_0x27bb3c[_0x35fc99(0x1ff)](0x1),_0x2cefa1=await new Promise(_0x38d9cf=>{const _0x486c8f=_0x35fc99,_0x553332={};_0x44f9da[_0x486c8f(0x20c)]((_0x3676d6,_0x1d0b5a)=>{const _0x225386=_0x486c8f;for(const _0x3f8e06 of _0x16f601){if(_0x3676d6[_0x225386(0x213)]==_0x3f8e06['header'])_0x553332[_0x3f8e06['key']]={'header':_0x3676d6[_0x225386(0x1eb)],'handler':_0x3f8e06[_0x225386(0x1e4)]};else{if(!_0x553332[_0x3f8e06[_0x225386(0x1ef)]])try{const _0x195e36=_0x44f9da&&_0x44f9da[_0x225386(0x20f)](_0x3f8e06['header']);_0x195e36&&(_0x553332[_0x3f8e06[_0x225386(0x1ef)]]={'header':_0x195e36[_0x225386(0x1eb)],'handler':_0x3f8e06['handler']});}catch{}}}_0x44f9da[_0x225386(0x209)]==_0x1d0b5a&&_0x38d9cf(_0x553332);});});_0x27bb3c['on'](_0x35fc99(0x1e5),_0x4a6a33=>_0x360176(_0x27bb3c)),_0x27bb3c['on']('error',_0x406f68=>_0x1ee81f(_0x406f68)),_0x27bb3c['on'](_0x35fc99(0x215),async _0x5527a2=>{const _0x59f762=_0x35fc99;var _0x2cf924;if(typeof(_0x5527a2===null||_0x5527a2===void 0x0?void 0x0:_0x5527a2[_0x59f762(0x20f)])==_0x59f762(0x1dd)){const _0x1623be={};_0x4340aa:for(const _0x3509cd in _0x2cefa1){if(_0x2cefa1[_0x3509cd][_0x59f762(0x216)]){const _0x374beb=_0x5527a2[_0x59f762(0x20f)](_0x2cefa1[_0x3509cd]['header']);if(!_0x374beb)continue _0x4340aa;try{_0x374beb[_0x59f762(0x1e2)]();}catch(_0x3242eb){_0x374beb[_0x59f762(0x1e2)]=()=>{const _0x26d09c=_0x59f762;var _0xaf3ef7;return''+(((_0xaf3ef7=_0x374beb===null||_0x374beb===void 0x0?void 0x0:_0x374beb[_0x26d09c(0x1f2)])===null||_0xaf3ef7===void 0x0?void 0x0:_0xaf3ef7[_0x26d09c(0x213)])||'');};}typeof((_0x2cf924=_0x2cefa1[_0x3509cd])===null||_0x2cf924===void 0x0?void 0x0:_0x2cf924[_0x59f762(0x1e4)])==_0x59f762(0x1dd)?_0x1623be[_0x3509cd]=await _0x2cefa1[_0x3509cd][_0x59f762(0x1e4)](lodash[_0x59f762(0x211)]({},_0x3509cd,(_0x374beb===null||_0x374beb===void 0x0?void 0x0:_0x374beb[_0x59f762(0x1e2)]())||''),_0x374beb[_0x59f762(0x1f2)]):_0x1623be[_0x3509cd]=(_0x374beb===null||_0x374beb===void 0x0?void 0x0:_0x374beb[_0x59f762(0x1e2)]())||'';}}Object[_0x59f762(0x204)](_0x1623be)['length']>0x0&&Object[_0x59f762(0x203)](_0x1623be)[_0x59f762(0x1fc)](_0x438e4c=>_0x438e4c!='')['length']>0x0&&await _0x4659fe(_0x1623be,{'sheet':_0x27bb3c,'row':_0x5527a2});}}),await _0x27bb3c[_0x35fc99(0x1fe)]();});for(const _0x23765a of _0x59b25d){const _0xc49479=lodash[_0x12d087(0x20d)](_0x23765a)?((_0x41ec60=this['WorkbookReader']['worksheets'])===null||_0x41ec60===void 0x0?void 0x0:_0x41ec60[_0x23765a])||undefined:this[_0x12d087(0x1f5)][_0x12d087(0x1d8)](_0x23765a);_0xc49479&&await _0x35797e(_0xc49479);}}async['save'](){const _0x3b66bc=a13_0x2e34c1;return await this[_0x3b66bc(0x1ee)]['commit'](),this;}async[a13_0x2e34c1(0x206)](_0x564f1f,_0x2da9ae=![]){const _0x110a57=a13_0x2e34c1;let _0x4a36d3=this['WorkbookWriter'][_0x110a57(0x1d8)](_0x564f1f);return!_0x4a36d3&&this[_0x110a57(0x205)]['has'](_0x564f1f)&&(_0x4a36d3=this[_0x110a57(0x205)][_0x110a57(0x201)](_0x564f1f)),!_0x4a36d3&&_0x2da9ae&&(_0x4a36d3=this[_0x110a57(0x1ee)][_0x110a57(0x1d6)](lodash[_0x110a57(0x20d)](_0x564f1f)?undefined:''+_0x564f1f,{'views':[{'state':'frozen','ySplit':0x0}]}),this[_0x110a57(0x205)]['set'](_0x564f1f,_0x4a36d3)),_0x4a36d3;}}exports[a13_0x2e34c1(0x1e6)]=ExcelStream;function a13_0x33b8(){const _0x18fdfe=['values','keys','WorksheetWriterMap','getWriterSheet','getColumn','columns','cellCount','rootpath','sheets','eachCell','isNumber','replace','getCell','stream','set','path','value','xls','row','header','21dtHxhh','addWorksheet','search','getWorksheet','lastIndexOf','push','Workbook','109914eGfTgX','function','ignore','substring','__esModule','constructor','toString','existsSync','handler','finished','ExcelStream','writeFile','文件名格式错误','apply','startsWith','col','729ScQSNp','mkdirSync','WorkbookWriter','key','(((.+)+)+)+$','1327820ZkNzGG','model','suffix','xlsx','WorkbookReader','includes','dirname','5416550RHNWNN','3021687hdnUIo','4649256rkqQEo','13562496vkQDHG','filter','instance','read','getRow','10478tqavHV','get','indexOf'];a13_0x33b8=function(){return _0x18fdfe;};return a13_0x33b8();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x36ccbe=a14_0x3f79;(function(_0x24567e,_0x3ebef5){var _0x4902c4=a14_0x3f79,_0xcdf8bc=_0x24567e();while(!![]){try{var _0x27b102=parseInt(_0x4902c4(0x97))/0x1+-parseInt(_0x4902c4(0xa0))/0x2+parseInt(_0x4902c4(0x8d))/0x3*(parseInt(_0x4902c4(0x94))/0x4)+-parseInt(_0x4902c4(0x90))/0x5*(-parseInt(_0x4902c4(0xa1))/0x6)+parseInt(_0x4902c4(0x8e))/0x7*(-parseInt(_0x4902c4(0x9b))/0x8)+parseInt(_0x4902c4(0x99))/0x9*(parseInt(_0x4902c4(0x9a))/0xa)+-parseInt(_0x4902c4(0x95))/0xb;if(_0x27b102===_0x3ebef5)break;else _0xcdf8bc['push'](_0xcdf8bc['shift']());}catch(_0x37e6e9){_0xcdf8bc['push'](_0xcdf8bc['shift']());}}}(a14_0x56fd,0xea943));var a14_0x5a2b36=(function(){var _0x41fe10=!![];return function(_0x357d01,_0x2f995e){var _0x5d3d30=_0x41fe10?function(){var _0xbc11d3=a14_0x3f79;if(_0x2f995e){var _0x52295b=_0x2f995e[_0xbc11d3(0x9c)](_0x357d01,arguments);return _0x2f995e=null,_0x52295b;}}:function(){};return _0x41fe10=![],_0x5d3d30;};}()),a14_0x17f823=a14_0x5a2b36(this,function(){var _0xdacaf7=a14_0x3f79;return a14_0x17f823[_0xdacaf7(0xa2)]()[_0xdacaf7(0x8f)](_0xdacaf7(0x92))[_0xdacaf7(0xa2)]()[_0xdacaf7(0x91)](a14_0x17f823)[_0xdacaf7(0x8f)]('(((.+)+)+)+$');});a14_0x17f823();'use strict';Object['defineProperty'](exports,a14_0x36ccbe(0x9f),{'value':!![]}),exports[a14_0x36ccbe(0x98)]=exports[a14_0x36ccbe(0x93)]=exports[a14_0x36ccbe(0x8c)]=exports[a14_0x36ccbe(0x96)]=void 0x0,exports[a14_0x36ccbe(0x96)]=a14_0x36ccbe(0x8b),exports[a14_0x36ccbe(0x8c)]=a14_0x36ccbe(0x9d),exports[a14_0x36ccbe(0x93)]=a14_0x36ccbe(0x9e);class AppsConfigTmp{}function a14_0x3f79(_0x2efb18,_0x5d4671){var _0x596803=a14_0x56fd();return a14_0x3f79=function(_0x17f823,_0x5a2b36){_0x17f823=_0x17f823-0x8b;var _0x56fd3e=_0x596803[_0x17f823];return _0x56fd3e;},a14_0x3f79(_0x2efb18,_0x5d4671);}function a14_0x56fd(){var _0xaff65a=['14217SdtGdj','search','6342410wcRpYa','constructor','(((.+)+)+)+$','APPSCONFIG_KEY','5810252XeJAFt','2457169XDWmAg','ACTION_KEY','576471qnIIzN','AppsConfigTmp','9Mdknkj','4585670baNhko','2704YUSvCR','apply','anncic-api:action:route','anncic-api:apps:config','__esModule','3770782FwuAQG','6XNbLgX','toString','anncic-api:action','ACTION_ROUTE_KEY','3DATuCw'];a14_0x56fd=function(){return _0xaff65a;};return a14_0x56fd();}exports[a14_0x36ccbe(0x98)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x231fcb=a15_0x2f5e;(function(_0x27c700,_0x34f900){var _0x12dffe=a15_0x2f5e,_0x5a14fd=_0x27c700();while(!![]){try{var _0x5cedbd=-parseInt(_0x12dffe(0x7e))/0x1*(-parseInt(_0x12dffe(0x72))/0x2)+-parseInt(_0x12dffe(0x86))/0x3+parseInt(_0x12dffe(0x66))/0x4+parseInt(_0x12dffe(0x6c))/0x5*(parseInt(_0x12dffe(0x69))/0x6)+-parseInt(_0x12dffe(0x87))/0x7*(-parseInt(_0x12dffe(0x83))/0x8)+-parseInt(_0x12dffe(0x74))/0x9+-parseInt(_0x12dffe(0x8b))/0xa*(parseInt(_0x12dffe(0x78))/0xb);if(_0x5cedbd===_0x34f900)break;else _0x5a14fd['push'](_0x5a14fd['shift']());}catch(_0x1db337){_0x5a14fd['push'](_0x5a14fd['shift']());}}}(a15_0x4fa2,0x959fe));var a15_0x4f1eda=(function(){var _0x4f6326=!![];return function(_0x31a563,_0x1036c9){var _0x2f8ef8=_0x4f6326?function(){var _0x26a14a=a15_0x2f5e;if(_0x1036c9){var _0xd24338=_0x1036c9[_0x26a14a(0x85)](_0x31a563,arguments);return _0x1036c9=null,_0xd24338;}}:function(){};return _0x4f6326=![],_0x2f8ef8;};}()),a15_0x349de9=a15_0x4f1eda(this,function(){var _0x2d96ed=a15_0x2f5e;return a15_0x349de9[_0x2d96ed(0x80)]()[_0x2d96ed(0x7f)](_0x2d96ed(0x8d))['toString']()['constructor'](a15_0x349de9)['search'](_0x2d96ed(0x8d));});a15_0x349de9();function a15_0x4fa2(){var _0x12c57d=['PageDTO','8XOOHyV','function','apply','1554273dmmLus','598570nGgCFM','design:type','1:是;0:否','Rule','30TnhGIQ','length','(((.+)+)+)+$','min','是否倒序','3737724HNBRXY','prototype','number','169434eomcWl','_order','valid','120kmGoBj','trim','__esModule','integer','_size','decorate','921686lGLPIW','__decorate','546174kNJBHn','第一页为1,第二页为2','@anncic-api/validator','metadata','5234988EYAyLW','RuleType','object','getOwnPropertyDescriptor','_isreverse','defineProperty','2uUcxhr','search','toString','__metadata'];a15_0x4fa2=function(){return _0x12c57d;};return a15_0x4fa2();}'use strict';var __decorate=this&&this[a15_0x231fcb(0x73)]||function(_0x94a15a,_0x2f0fa8,_0x208c04,_0x1a1ac8){var _0x5c81f7=a15_0x231fcb,_0x56562d=arguments[_0x5c81f7(0x8c)],_0x1028a2=_0x56562d<0x3?_0x2f0fa8:_0x1a1ac8===null?_0x1a1ac8=Object[_0x5c81f7(0x7b)](_0x2f0fa8,_0x208c04):_0x1a1ac8,_0x59ab42;if(typeof Reflect===_0x5c81f7(0x7a)&&typeof Reflect['decorate']==='function')_0x1028a2=Reflect[_0x5c81f7(0x71)](_0x94a15a,_0x2f0fa8,_0x208c04,_0x1a1ac8);else{for(var _0x194592=_0x94a15a['length']-0x1;_0x194592>=0x0;_0x194592--)if(_0x59ab42=_0x94a15a[_0x194592])_0x1028a2=(_0x56562d<0x3?_0x59ab42(_0x1028a2):_0x56562d>0x3?_0x59ab42(_0x2f0fa8,_0x208c04,_0x1028a2):_0x59ab42(_0x2f0fa8,_0x208c04))||_0x1028a2;}return _0x56562d>0x3&&_0x1028a2&&Object[_0x5c81f7(0x7d)](_0x2f0fa8,_0x208c04,_0x1028a2),_0x1028a2;},__metadata=this&&this[a15_0x231fcb(0x81)]||function(_0x560e0a,_0x102b1d){var _0x31929e=a15_0x231fcb;if(typeof Reflect==='object'&&typeof Reflect[_0x31929e(0x77)]===_0x31929e(0x84))return Reflect['metadata'](_0x560e0a,_0x102b1d);};Object[a15_0x231fcb(0x7d)](exports,a15_0x231fcb(0x6e),{'value':!![]}),exports[a15_0x231fcb(0x82)]=void 0x0;function a15_0x2f5e(_0xb298b5,_0xf46344){var _0x3e7988=a15_0x4fa2();return a15_0x2f5e=function(_0x349de9,_0x4f1eda){_0x349de9=_0x349de9-0x66;var _0x4fa273=_0x3e7988[_0x349de9];return _0x4fa273;},a15_0x2f5e(_0xb298b5,_0xf46344);}const validator_1=require(a15_0x231fcb(0x76));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a15_0x231fcb(0x8a)])('分页',validator_1[a15_0x231fcb(0x79)][a15_0x231fcb(0x68)]()[a15_0x231fcb(0x6f)]()[a15_0x231fcb(0x8e)](0x1),a15_0x231fcb(0x75)),__metadata(a15_0x231fcb(0x88),Number)],PageDTO[a15_0x231fcb(0x67)],'_page',void 0x0),__decorate([(0x0,validator_1[a15_0x231fcb(0x8a)])('分页数量',validator_1[a15_0x231fcb(0x79)][a15_0x231fcb(0x68)]()[a15_0x231fcb(0x6f)]()[a15_0x231fcb(0x8e)](0x1)),__metadata(a15_0x231fcb(0x88),Number)],PageDTO[a15_0x231fcb(0x67)],a15_0x231fcb(0x70),void 0x0),__decorate([(0x0,validator_1['Rule'])('排序方式',validator_1['RuleType']['string']()[a15_0x231fcb(0x6d)]()),__metadata('design:type',String)],PageDTO[a15_0x231fcb(0x67)],a15_0x231fcb(0x6a),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x231fcb(0x8f),validator_1[a15_0x231fcb(0x79)][a15_0x231fcb(0x68)]()['integer']()[a15_0x231fcb(0x6b)](0x0,0x1),a15_0x231fcb(0x89)),__metadata(a15_0x231fcb(0x88),Number)],PageDTO[a15_0x231fcb(0x67)],a15_0x231fcb(0x7c),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a16_0x245a(_0x3e0aa7,_0xc941b){var _0x43a44a=a16_0x1d85();return a16_0x245a=function(_0x36755e,_0xa18a57){_0x36755e=_0x36755e-0x65;var _0x1d85fb=_0x43a44a[_0x36755e];return _0x1d85fb;},a16_0x245a(_0x3e0aa7,_0xc941b);}var a16_0x5b89b7=a16_0x245a;(function(_0x782875,_0x323a95){var _0x22be20=a16_0x245a,_0x589412=_0x782875();while(!![]){try{var _0x4cffa7=parseInt(_0x22be20(0x66))/0x1*(-parseInt(_0x22be20(0x71))/0x2)+parseInt(_0x22be20(0x72))/0x3+parseInt(_0x22be20(0x6a))/0x4+-parseInt(_0x22be20(0x6d))/0x5+parseInt(_0x22be20(0x6f))/0x6+-parseInt(_0x22be20(0x6e))/0x7+-parseInt(_0x22be20(0x6c))/0x8*(parseInt(_0x22be20(0x70))/0x9);if(_0x4cffa7===_0x323a95)break;else _0x589412['push'](_0x589412['shift']());}catch(_0xea2061){_0x589412['push'](_0x589412['shift']());}}}(a16_0x1d85,0xa689f));var a16_0xa18a57=(function(){var _0x4bf553=!![];return function(_0x1a2f6b,_0x33bb72){var _0x1757d7=_0x4bf553?function(){if(_0x33bb72){var _0x375396=_0x33bb72['apply'](_0x1a2f6b,arguments);return _0x33bb72=null,_0x375396;}}:function(){};return _0x4bf553=![],_0x1757d7;};}()),a16_0x36755e=a16_0xa18a57(this,function(){var _0x3fdebe=a16_0x245a;return a16_0x36755e[_0x3fdebe(0x68)]()[_0x3fdebe(0x74)](_0x3fdebe(0x69))[_0x3fdebe(0x68)]()['constructor'](a16_0x36755e)[_0x3fdebe(0x74)](_0x3fdebe(0x69));});a16_0x36755e();'use strict';Object[a16_0x5b89b7(0x73)](exports,a16_0x5b89b7(0x65),{'value':!![]}),exports[a16_0x5b89b7(0x6b)]=exports['INTERCEPT_KEY']=void 0x0,exports['INTERCEPT_KEY']=a16_0x5b89b7(0x67);class InterceptTargetTmp{}function a16_0x1d85(){var _0x4df98b=['search','__esModule','267646FsNFxM','anncic-api:intercept','toString','(((.+)+)+)+$','3101300iLEtng','InterceptTargetTmp','7048ITYGFZ','2789780LhbHpQ','445193sypRQc','7437168QQUtAz','10683NffOHD','2hQJUFg','1806714uqYCQW','defineProperty'];a16_0x1d85=function(){return _0x4df98b;};return a16_0x1d85();}exports[a16_0x5b89b7(0x6b)]=InterceptTargetTmp;
|
package/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ declare module '@midwayjs/koa/dist/interface' {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
|
|
36
38
|
declare module 'http' {
|
|
37
39
|
interface IncomingHttpHeaders {
|
|
38
40
|
token: string;
|
|
@@ -40,5 +42,6 @@ declare module 'http' {
|
|
|
40
42
|
checkcode: string;
|
|
41
43
|
logintime: string;
|
|
42
44
|
requesttime: string;
|
|
45
|
+
[key:string]: string | undefined;
|
|
43
46
|
}
|
|
44
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.44",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
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.44",
|
|
21
|
+
"@anncic-api/core": "^3.4.44",
|
|
22
|
+
"@anncic-api/event": "^3.4.44",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.44",
|
|
24
|
+
"@anncic-api/validator": "^3.4.44",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.12.8",
|
|
26
26
|
"@midwayjs/koa": "^3.12.8",
|
|
27
27
|
"@midwayjs/static-file": "^3.12.8",
|
|
28
28
|
"@midwayjs/upload": "^3.12.8",
|
|
29
|
-
"anncic-apihelper": "^3.4.
|
|
29
|
+
"anncic-apihelper": "^3.4.44",
|
|
30
30
|
"exceljs": "^4.4.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.5.4"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9711d31dabc4ba3e7d2a49bbf95039404b839ccb"
|
|
39
39
|
}
|