anncic-api 3.4.86 → 3.4.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.local.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/index.d.ts +5 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x312ce7=a0_0xd620;function a0_0xd620(_0x3d1e64,_0x107f91){var _0x2be23f=a0_0x117a();return a0_0xd620=function(_0x430495,_0x2b79cd){_0x430495=_0x430495-0x167;var _0x117ae2=_0x2be23f[_0x430495];return _0x117ae2;},a0_0xd620(_0x3d1e64,_0x107f91);}function a0_0x117a(){var _0xb2faa3=['9652325bWxDJV','__esModule','20mb','/runtime/.upload','default','name','8150696sXimfv','toString','env','appDir','search','/runtime','form','{midway-bull}{','15871779RKFsJE','file','18WkrulM','38nwZYje','_token','98554hoKJDy','469089XdYFOJ','text','(((.+)+)+)+$','30081970iounte','270d','28ClDpHS','apply','xml','4066643AAxelV','dhauo1234420123gg3234901','constructor','defineProperty'];a0_0x117a=function(){return _0xb2faa3;};return a0_0x117a();}(function(_0x2b3ae9,_0x1dcb79){var _0x3d26c9=a0_0xd620,_0x2aeaa7=_0x2b3ae9();while(!![]){try{var _0x11476b=-parseInt(_0x3d26c9(0x169))/0x1*(parseInt(_0x3d26c9(0x167))/0x2)+-parseInt(_0x3d26c9(0x16a))/0x3*(parseInt(_0x3d26c9(0x16f))/0x4)+parseInt(_0x3d26c9(0x176))/0x5+parseInt(_0x3d26c9(0x186))/0x6*(-parseInt(_0x3d26c9(0x172))/0x7)+-parseInt(_0x3d26c9(0x17c))/0x8+parseInt(_0x3d26c9(0x184))/0x9+parseInt(_0x3d26c9(0x16d))/0xa;if(_0x11476b===_0x1dcb79)break;else _0x2aeaa7['push'](_0x2aeaa7['shift']());}catch(_0x4ee10c){_0x2aeaa7['push'](_0x2aeaa7['shift']());}}}(a0_0x117a,0xeda82));var a0_0x2b79cd=(function(){var _0x189ccb=!![];return function(_0x3a241a,_0x44b36d){var _0x1181f8=_0x189ccb?function(){var _0x16facc=a0_0xd620;if(_0x44b36d){var _0x28d466=_0x44b36d[_0x16facc(0x170)](_0x3a241a,arguments);return _0x44b36d=null,_0x28d466;}}:function(){};return _0x189ccb=![],_0x1181f8;};}()),a0_0x430495=a0_0x2b79cd(this,function(){var _0x284a95=a0_0xd620;return a0_0x430495['toString']()['search'](_0x284a95(0x16c))[_0x284a95(0x17d)]()[_0x284a95(0x174)](a0_0x430495)[_0x284a95(0x180)]('(((.+)+)+)+$');});a0_0x430495();'use strict';Object[a0_0x312ce7(0x175)](exports,a0_0x312ce7(0x177),{'value':!![]}),exports[a0_0x312ce7(0x17a)]=_0x95cfd8=>{var _0x1ad91f=a0_0x312ce7;return{'apitest':!![],'keys':_0x95cfd8[_0x1ad91f(0x17b)],'anncicapi':{'requestKey':_0x1ad91f(0x168),'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x1ad91f(0x173),'checkcode':_0x1ad91f(0x173)}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':_0x1ad91f(0x16e),'dir':_0x95cfd8[_0x1ad91f(0x17f)]+_0x1ad91f(0x181)}},'bodyParser':{'enableTypes':['json',_0x1ad91f(0x182),_0x1ad91f(0x16b),_0x1ad91f(0x171)],'formLimit':_0x1ad91f(0x178),'jsonLimit':'20mb','textLimit':_0x1ad91f(0x178),'xmlLimit':_0x1ad91f(0x178),'enable':!![]},'upload':{'tmpdir':_0x95cfd8[_0x1ad91f(0x17f)]+_0x1ad91f(0x179),'cleanTimeout':0x5265c00},'busboy':{'mode':_0x1ad91f(0x185),'tmpdir':_0x95cfd8[_0x1ad91f(0x17f)]+_0x1ad91f(0x179),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x1ad91f(0x183)+_0x95cfd8[_0x1ad91f(0x17b)]+':'+((_0x95cfd8===null||_0x95cfd8===void 0x0?void 0x0:_0x95cfd8['env'])?_0x95cfd8[_0x1ad91f(0x17e)]+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a1_0x3b31(){var _0x157760=['135tDvDwg','18ZxtcHn','(((.+)+)+)+$','657872slqUPZ','2739480JnlePv','3430588FfjuUg','apply','3LFXjGC','4602770ivWStn','15492OCACCC','default','search','410696BHyEEM','toString','defineProperty','constructor','1956036pSqXBw'];a1_0x3b31=function(){return _0x157760;};return a1_0x3b31();}var a1_0x14cb45=a1_0x340b;function a1_0x340b(_0x45a584,_0x323509){var _0x1bec6a=a1_0x3b31();return a1_0x340b=function(_0x58b27b,_0x5e149f){_0x58b27b=_0x58b27b-0x1d7;var _0x3b31d1=_0x1bec6a[_0x58b27b];return _0x3b31d1;},a1_0x340b(_0x45a584,_0x323509);}(function(_0x3ce76c,_0x3f5dee){var _0x3fbe8c=a1_0x340b,_0x1b4e7b=_0x3ce76c();while(!![]){try{var _0x4c8402=-parseInt(_0x3fbe8c(0x1e5))/0x1+-parseInt(_0x3fbe8c(0x1dc))/0x2*(parseInt(_0x3fbe8c(0x1e0))/0x3)+-parseInt(_0x3fbe8c(0x1e2))/0x4*(parseInt(_0x3fbe8c(0x1d9))/0x5)+parseInt(_0x3fbe8c(0x1d8))/0x6+-parseInt(_0x3fbe8c(0x1de))/0x7+parseInt(_0x3fbe8c(0x1dd))/0x8+-parseInt(_0x3fbe8c(0x1da))/0x9*(-parseInt(_0x3fbe8c(0x1e1))/0xa);if(_0x4c8402===_0x3f5dee)break;else _0x1b4e7b['push'](_0x1b4e7b['shift']());}catch(_0x4231be){_0x1b4e7b['push'](_0x1b4e7b['shift']());}}}(a1_0x3b31,0x3e2f4));var a1_0x5e149f=(function(){var _0x4c5300=!![];return function(_0x27039a,_0x10db71){var _0x504536=_0x4c5300?function(){var _0x419a6d=a1_0x340b;if(_0x10db71){var _0x57a40d=_0x10db71[_0x419a6d(0x1df)](_0x27039a,arguments);return _0x10db71=null,_0x57a40d;}}:function(){};return _0x4c5300=![],_0x504536;};}()),a1_0x58b27b=a1_0x5e149f(this,function(){var _0x1c690b=a1_0x340b;return a1_0x58b27b[_0x1c690b(0x1e6)]()[_0x1c690b(0x1e4)](_0x1c690b(0x1db))[_0x1c690b(0x1e6)]()[_0x1c690b(0x1d7)](a1_0x58b27b)[_0x1c690b(0x1e4)](_0x1c690b(0x1db));});a1_0x58b27b();'use strict';Object[a1_0x14cb45(0x1e7)](exports,'__esModule',{'value':!![]}),exports[a1_0x14cb45(0x1e3)]=_0x5e6889=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x3738a9=a2_0x41b7;(function(_0x2e28eb,_0xe97e29){var _0x477ea7=a2_0x41b7,_0xfbbf36=_0x2e28eb();while(!![]){try{var _0x59cf6e=parseInt(_0x477ea7(0x89))/0x1*(parseInt(_0x477ea7(0x83))/0x2)+-parseInt(_0x477ea7(0x81))/0x3+-parseInt(_0x477ea7(0x86))/0x4*(-parseInt(_0x477ea7(0x7c))/0x5)+parseInt(_0x477ea7(0x7f))/0x6*(-parseInt(_0x477ea7(0x7d))/0x7)+parseInt(_0x477ea7(0x85))/0x8*(-parseInt(_0x477ea7(0x8a))/0x9)+-parseInt(_0x477ea7(0x82))/0xa+parseInt(_0x477ea7(0x8b))/0xb*(parseInt(_0x477ea7(0x7e))/0xc);if(_0x59cf6e===_0xe97e29)break;else _0xfbbf36['push'](_0xfbbf36['shift']());}catch(_0x3c729a){_0xfbbf36['push'](_0xfbbf36['shift']());}}}(a2_0x4dde,0x48d7c));var a2_0x2ebd3d=(function(){var _0x1f5abf=!![];return function(_0xf4ec4b,_0x5ed99b){var _0x2457b7=_0x1f5abf?function(){if(_0x5ed99b){var _0x188b63=_0x5ed99b['apply'](_0xf4ec4b,arguments);return _0x5ed99b=null,_0x188b63;}}:function(){};return _0x1f5abf=![],_0x2457b7;};}()),a2_0x12a237=a2_0x2ebd3d(this,function(){var _0x314868=a2_0x41b7;return a2_0x12a237[_0x314868(0x8c)]()[_0x314868(0x80)]('(((.+)+)+)+$')[_0x314868(0x8c)]()['constructor'](a2_0x12a237)['search'](_0x314868(0x87));});a2_0x12a237();function a2_0x4dde(){var _0x577ea8=['279iwDCSn','11TbORlI','toString','48075LCGKtI','91vEoXeP','1929636xwkbHw','109518Igipxb','search','50517FqHHaC','2568030CNSuUv','25006eRCANy','default','41848ntWEje','176kKrMbM','(((.+)+)+)+$','__esModule','31BrFmia'];a2_0x4dde=function(){return _0x577ea8;};return a2_0x4dde();}function a2_0x41b7(_0x165611,_0x3a516b){var _0x1de900=a2_0x4dde();return a2_0x41b7=function(_0x12a237,_0x2ebd3d){_0x12a237=_0x12a237-0x7c;var _0x4dde57=_0x1de900[_0x12a237];return _0x4dde57;},a2_0x41b7(_0x165611,_0x3a516b);}'use strict';Object['defineProperty'](exports,a2_0x3738a9(0x88),{'value':!![]}),exports[a2_0x3738a9(0x84)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x38eb2f=a3_0x4a88;function a3_0x4a88(_0x5e1306,_0xa6a1){const _0x117ae4=a3_0x2cc1();return a3_0x4a88=function(_0x84633e,_0x39cba2){_0x84633e=_0x84633e-0x1c5;let _0x2cc1ef=_0x117ae4[_0x84633e];return _0x2cc1ef;},a3_0x4a88(_0x5e1306,_0xa6a1);}(function(_0x4553fc,_0x501131){const _0x1db07d=a3_0x4a88,_0x1e0187=_0x4553fc();while(!![]){try{const _0x4abde2=parseInt(_0x1db07d(0x1fd))/0x1*(-parseInt(_0x1db07d(0x1e3))/0x2)+parseInt(_0x1db07d(0x233))/0x3*(-parseInt(_0x1db07d(0x200))/0x4)+-parseInt(_0x1db07d(0x239))/0x5+-parseInt(_0x1db07d(0x20f))/0x6*(parseInt(_0x1db07d(0x203))/0x7)+-parseInt(_0x1db07d(0x21c))/0x8*(parseInt(_0x1db07d(0x1f2))/0x9)+-parseInt(_0x1db07d(0x23f))/0xa+parseInt(_0x1db07d(0x1fa))/0xb;if(_0x4abde2===_0x501131)break;else _0x1e0187['push'](_0x1e0187['shift']());}catch(_0x57db15){_0x1e0187['push'](_0x1e0187['shift']());}}}(a3_0x2cc1,0x1bf25));const a3_0x39cba2=(function(){let _0x488724=!![];return function(_0x4c00e8,_0x2f5ee2){const _0x1a8b58=_0x488724?function(){const _0x2308c7=a3_0x4a88;if(_0x2f5ee2){const _0x22c203=_0x2f5ee2[_0x2308c7(0x1e0)](_0x4c00e8,arguments);return _0x2f5ee2=null,_0x22c203;}}:function(){};return _0x488724=![],_0x1a8b58;};}()),a3_0x84633e=a3_0x39cba2(this,function(){const _0x451248=a3_0x4a88;return a3_0x84633e[_0x451248(0x1cf)]()[_0x451248(0x1d1)](_0x451248(0x1de))[_0x451248(0x1cf)]()[_0x451248(0x21a)](a3_0x84633e)[_0x451248(0x1d1)]('(((.+)+)+)+$');});a3_0x84633e();function a3_0x2cc1(){const _0x35a62b=['routerOptions','headers','prototype','DEFAULT','koa-send','application','HEADERS_SIGNATURE','getBaseDir','/apps/','InterceptTargetTmp','readdirSync','anncic-api','handler','9hQWzHX','filterConfig','mkdirSync','args','__esModule','isClass','intercept','startsWith','7203064iWcBTZ','koa','dir','712ndNjrn','req','./exception/ApiError','36eKGIub','log','name','9884iPgJsv','Anncic-api\x20static-file\x20:\x20mkdir\x20','split','runtime','__decorate','@midwayjs/cross-domain','defaultsDeep','REQUEST_OBJ_CTX_KEY','key','app','body','parse','702TaIiml','design:type','context','http://','config','metadata','CustomConfiguration','anncic-apihelper','requestMethod','ApiService','INTERCEPT_KEY','constructor','loggerConfig','936328eRVApM','getAsync','upload','existsSync','defineProperties','Inject','method','dirs','keys','forEach','basic','isNull','/apps','@anncic-api/cache','device','undefined','environment','ACTION_ROUTE_KEY','apps-','getClassMetadata','host','function','@midwayjs/static-file','4371tkQVYM','getOwnPropertyDescriptor','anncicapi','https://','文件不存在','decorate','520765KOXRLt','getAppDir','requestKey','toLowerCase','bodyXml','attachment','1059560HutWsT','app.log','MidwayApplicationManager','decorator','onReady','join','connection','http','input','Types','MidwayConfigService','object','APPSCONFIG_KEY','requestContext','handlerActionRoute','@anncic-api/validator','@midwayjs/busboy','/app','basic.log','getApplications','isString','module','match','isDirectory','path','statSync','./config/config.production','tmpdir','443','target','filepath','apimit','request','devices','encrypted','isDevelopmentEnvironment','@anncic-api/event','isFunction','get','ACTION_KEY','270d','.log','string','_matchedRoute','MidwayDecoratorService','hanlderApplications','toString','clients','search','registerMethodHandler','addObject','query','@midwayjs/core','_matchedRouteMeta','getConfiguration','ApiError','staticFile','tagName','length','defineProperty','midwayLogger','(((.+)+)+)+$','createLogger','apply','@anncic-api/typeorm','includes','98Wvstcb','description'];a3_0x2cc1=function(){return _0x35a62b;};return a3_0x2cc1();}'use strict';var __decorate=this&&this[a3_0x38eb2f(0x207)]||function(_0x509805,_0x5843cc,_0x36413c,_0x48679f){const _0x352f07=a3_0x38eb2f;var _0x565264=arguments[_0x352f07(0x1db)],_0x232b4d=_0x565264<0x3?_0x5843cc:_0x48679f===null?_0x48679f=Object[_0x352f07(0x234)](_0x5843cc,_0x36413c):_0x48679f,_0x155317;if(typeof Reflect===_0x352f07(0x24a)&&typeof Reflect[_0x352f07(0x238)]===_0x352f07(0x231))_0x232b4d=Reflect[_0x352f07(0x238)](_0x509805,_0x5843cc,_0x36413c,_0x48679f);else{for(var _0x2a7d9a=_0x509805[_0x352f07(0x1db)]-0x1;_0x2a7d9a>=0x0;_0x2a7d9a--)if(_0x155317=_0x509805[_0x2a7d9a])_0x232b4d=(_0x565264<0x3?_0x155317(_0x232b4d):_0x565264>0x3?_0x155317(_0x5843cc,_0x36413c,_0x232b4d):_0x155317(_0x5843cc,_0x36413c))||_0x232b4d;}return _0x565264>0x3&&_0x232b4d&&Object[_0x352f07(0x1dc)](_0x5843cc,_0x36413c,_0x232b4d),_0x232b4d;},__metadata=this&&this['__metadata']||function(_0x2d7fa5,_0x4509a5){const _0x92d4ac=a3_0x38eb2f;if(typeof Reflect===_0x92d4ac(0x24a)&&typeof Reflect['metadata']===_0x92d4ac(0x231))return Reflect[_0x92d4ac(0x214)](_0x2d7fa5,_0x4509a5);};Object[a3_0x38eb2f(0x1dc)](exports,a3_0x38eb2f(0x1f6),{'value':!![]}),exports[a3_0x38eb2f(0x215)]=void 0x0;const core_1=require(a3_0x38eb2f(0x1d5)),core_2=require(a3_0x38eb2f(0x1d5)),ApiError_1=require(a3_0x38eb2f(0x1ff)),ApiService_1=require('./service/ApiService'),intercept_1=require('./types/intercept'),action_1=require('./types/action'),fs=require('fs'),path=require(a3_0x38eb2f(0x257)),koasend=require(a3_0x38eb2f(0x1e9)),koa=require('@midwayjs/koa'),upload=require(a3_0x38eb2f(0x24f)),staticFile=require(a3_0x38eb2f(0x232)),crossDomain=require(a3_0x38eb2f(0x208)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a3_0x38eb2f(0x259)),anncic=require('@anncic-api/core'),anncicCache=require(a3_0x38eb2f(0x229)),anncicEvent=require(a3_0x38eb2f(0x1c5)),anncicTypeorm=require(a3_0x38eb2f(0x1e1)),anncicValidator=require(a3_0x38eb2f(0x24e)),anncicHelper=require(a3_0x38eb2f(0x216));let CustomConfiguration=class CustomConfiguration{async[a3_0x38eb2f(0x243)](){const _0x4ad0cf=a3_0x38eb2f;await this['filterConfig'](),await this[_0x4ad0cf(0x21b)](),await this[_0x4ad0cf(0x24d)](),await this[_0x4ad0cf(0x1ce)]();}async['handlerActionRoute'](){const _0x406b7c=a3_0x38eb2f,_0x4ca580=this[_0x406b7c(0x213)]['getConfiguration'](),_0x45b093=(0x0,core_1[_0x406b7c(0x22f)])(intercept_1[_0x406b7c(0x219)],intercept_1[_0x406b7c(0x1ee)])||{};this['decorator'][_0x406b7c(0x1d2)](action_1[_0x406b7c(0x22d)],_0x29c21c=>{const _0x490522=_0x406b7c;var _0x9a7418;const _0x2f6322=(0x0,core_1[_0x490522(0x22f)])(action_1[_0x490522(0x24b)],action_1['AppsConfigTmp'])||{},_0x1ae2de=_0x29c21c[_0x490522(0x214)],_0x1fcd69=(0x0,core_1[_0x490522(0x22f)])(action_1[_0x490522(0x1c8)],_0x29c21c[_0x490522(0x25c)])||{},_0x395c5e=((_0x9a7418=_0x1fcd69===null||_0x1fcd69===void 0x0?void 0x0:_0x1fcd69['filepath'])===null||_0x9a7418===void 0x0?void 0x0:_0x9a7418['substring'](0x0,_0x1fcd69[_0x490522(0x25d)]['lastIndexOf']('.')))||'',_0x1b8028=(_0x1fcd69===null||_0x1fcd69===void 0x0?void 0x0:_0x1fcd69[_0x490522(0x254)])?(_0x2f6322===null||_0x2f6322===void 0x0?void 0x0:_0x2f6322[_0x1fcd69[_0x490522(0x254)]])||{}:{};return{'before':async _0x11e666=>{const _0x35327d=_0x490522;var _0x5e369b,_0x4deb7e,_0x39454e,_0x6650b9;const _0x48f30c=(_0x5e369b=_0x11e666===null||_0x11e666===void 0x0?void 0x0:_0x11e666[_0x35327d(0x25c)])===null||_0x5e369b===void 0x0?void 0x0:_0x5e369b[core_2['REQUEST_OBJ_CTX_KEY']],_0x5dbe24=lodash['defaultsDeep']({},_0x48f30c[_0x35327d(0x25f)][_0x35327d(0x20d)]||_0x48f30c[_0x35327d(0x25f)][((_0x4deb7e=_0x4ca580===null||_0x4ca580===void 0x0?void 0x0:_0x4ca580[_0x35327d(0x23d)])===null||_0x4deb7e===void 0x0?void 0x0:_0x4deb7e[_0x35327d(0x20b)])||_0x35327d(0x20d)]||{},_0x48f30c[_0x35327d(0x25f)]['query']||{});_0x48f30c[_0x35327d(0x1d6)]={'module':(_0x1b8028===null||_0x1b8028===void 0x0?void 0x0:_0x1b8028[_0x35327d(0x202)])||'','routePath':''+_0x48f30c[_0x35327d(0x257)],'routeName':_0x1fcd69[_0x35327d(0x1e5)][_0x35327d(0x1da)]+'@'+_0x1ae2de['routerName'],'routeMethod':((_0x1ae2de===null||_0x1ae2de===void 0x0?void 0x0:_0x1ae2de[_0x35327d(0x217)])||_0x48f30c[_0x35327d(0x222)]||'')[_0x35327d(0x23c)](),'routeDescription':(_0x1ae2de===null||_0x1ae2de===void 0x0?void 0x0:_0x1ae2de[_0x35327d(0x1e4)])||'','filemethod':_0x395c5e+'@'+(_0x1ae2de['method']||'')};if(_0x48f30c&&(_0x1ae2de===null||_0x1ae2de===void 0x0?void 0x0:_0x1ae2de['apimit']))try{const _0xab9e7=((_0x39454e=_0x4ca580===null||_0x4ca580===void 0x0?void 0x0:_0x4ca580[_0x35327d(0x235)])===null||_0x39454e===void 0x0?void 0x0:_0x39454e['requestKey'])&&typeof(_0x5dbe24===null||_0x5dbe24===void 0x0?void 0x0:_0x5dbe24[_0x4ca580[_0x35327d(0x235)][_0x35327d(0x23b)]])==_0x35327d(0x1cb)?JSON[_0x35327d(0x20e)](base64_decode(_0x5dbe24[_0x4ca580[_0x35327d(0x235)][_0x35327d(0x23b)]])||'{}')||{}:((_0x6650b9=_0x48f30c===null||_0x48f30c===void 0x0?void 0x0:_0x48f30c[_0x35327d(0x25f)])===null||_0x6650b9===void 0x0?void 0x0:_0x6650b9['headers'])||{};if(!this['ApiService']['checksign'](_0xab9e7))throw new AnnError(ApiError_1['ApiError'][_0x35327d(0x1eb)]);for(const _0x2db8a5 in _0xab9e7||{}){_0x48f30c['headers'][_0x2db8a5]=_0xab9e7[_0x2db8a5];}}catch(_0x149c42){if(_0x149c42 instanceof AnnError)throw _0x149c42;else throw new AnnError(ApiError_1[_0x35327d(0x1d8)]['_UNKNOW_']);}},'around':async _0x1bafae=>{const _0x2e9f52=_0x490522;var _0x3608e2,_0x187cbf,_0x24ec25;const _0xff292e=(_0x3608e2=_0x1bafae===null||_0x1bafae===void 0x0?void 0x0:_0x1bafae[_0x2e9f52(0x25c)])===null||_0x3608e2===void 0x0?void 0x0:_0x3608e2[core_2[_0x2e9f52(0x20a)]];if(_0xff292e&&(_0x1ae2de===null||_0x1ae2de===void 0x0?void 0x0:_0x1ae2de[_0x2e9f52(0x25e)])&&((_0x1ae2de===null||_0x1ae2de===void 0x0?void 0x0:_0x1ae2de[_0x2e9f52(0x1f8)])||typeof(_0x1ae2de===null||_0x1ae2de===void 0x0?void 0x0:_0x1ae2de['intercept'])==_0x2e9f52(0x22b))){if(((_0x187cbf=_0xff292e[_0x2e9f52(0x1e6)])===null||_0x187cbf===void 0x0?void 0x0:_0x187cbf[_0x2e9f52(0x22a)])&&((_0x24ec25=_0x45b093===null||_0x45b093===void 0x0?void 0x0:_0x45b093[_0xff292e[_0x2e9f52(0x1e6)]['device']])===null||_0x24ec25===void 0x0?void 0x0:_0x24ec25[_0x2e9f52(0x1db)])>0x0)for(const _0x212a97 of _0x45b093[_0xff292e[_0x2e9f52(0x1e6)][_0x2e9f52(0x22a)]]||[]){if(core_1[_0x2e9f52(0x248)][_0x2e9f52(0x1f7)](_0x212a97)){const _0x26cf89=await _0xff292e[_0x2e9f52(0x24c)][_0x2e9f52(0x21d)](_0x212a97);typeof(_0x26cf89===null||_0x26cf89===void 0x0?void 0x0:_0x26cf89[_0x2e9f52(0x255)])==_0x2e9f52(0x231)?await _0x26cf89[_0x2e9f52(0x255)](_0xff292e,typeof(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x222)])==_0x2e9f52(0x1cb)&&(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)])?_0xff292e['method']['toLowerCase']()+'@'+(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)]):undefined,_0x1ae2de)&&await _0x26cf89[_0x2e9f52(0x1f1)](_0xff292e,typeof(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x222)])==_0x2e9f52(0x1cb)&&(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)])?_0xff292e['method'][_0x2e9f52(0x23c)]()+'@'+(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)]):undefined,_0x1ae2de):await _0x26cf89['handler'](_0xff292e,typeof(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x222)])==_0x2e9f52(0x1cb)&&(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)])?_0xff292e[_0x2e9f52(0x222)]['toLowerCase']()+'@'+(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)]):undefined,_0x1ae2de);}else core_1[_0x2e9f52(0x248)][_0x2e9f52(0x1c6)](_0x212a97)&&await _0x212a97(_0xff292e,typeof(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e['method'])==_0x2e9f52(0x1cb)&&(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e[_0x2e9f52(0x1cc)])?_0xff292e[_0x2e9f52(0x222)]['toLowerCase']()+'@'+(_0xff292e===null||_0xff292e===void 0x0?void 0x0:_0xff292e['_matchedRoute']):undefined,_0x1ae2de);}}return await _0x1bafae['proceed'](..._0x1bafae[_0x2e9f52(0x1f5)]);},'afterThrow':(_0x100b79,_0x315475)=>{throw _0x315475;}};});}async[a3_0x38eb2f(0x1ce)](){const _0x27017b=a3_0x38eb2f,_0x33dd0f=this[_0x27017b(0x213)][_0x27017b(0x1d7)]();this['application'][_0x27017b(0x252)]([_0x27017b(0x1fb)])[_0x27017b(0x225)](_0x15effd=>{const _0x435540=_0x27017b;(_0x15effd===null||_0x15effd===void 0x0?void 0x0:_0x15effd[_0x435540(0x211)])&&Object[_0x435540(0x220)](_0x15effd[_0x435540(0x211)],{'hosturl':{'configurable':![],'get':function(){const _0x354393=_0x435540;var _0x25e76b,_0x127381,_0x480452,_0x23cd19;if((this===null||this===void 0x0?void 0x0:this[_0x354393(0x230)])&&!this[_0x354393(0x230)][_0x354393(0x1f9)](_0x354393(0x246))){let _0x52fa0a=this[_0x354393(0x230)][_0x354393(0x205)](':');return['80','443'][_0x354393(0x1e2)](_0x52fa0a===null||_0x52fa0a===void 0x0?void 0x0:_0x52fa0a[0x1])?''+(!!((_0x127381=(_0x25e76b=this===null||this===void 0x0?void 0x0:this[_0x354393(0x1fe)])===null||_0x25e76b===void 0x0?void 0x0:_0x25e76b[_0x354393(0x245)])===null||_0x127381===void 0x0?void 0x0:_0x127381[_0x354393(0x261)])||(_0x52fa0a===null||_0x52fa0a===void 0x0?void 0x0:_0x52fa0a[0x1])==_0x354393(0x25b)?'https://':_0x354393(0x212))+_0x52fa0a[0x0]:''+(!!((_0x23cd19=(_0x480452=this===null||this===void 0x0?void 0x0:this[_0x354393(0x1fe)])===null||_0x480452===void 0x0?void 0x0:_0x480452['connection'])===null||_0x23cd19===void 0x0?void 0x0:_0x23cd19[_0x354393(0x261)])?_0x354393(0x236):_0x354393(0x212))+this['host'];}return'';}},'ok':{'value':function(_0x6ba5a9,_0x4b48cb,_0x611f30=0x0){return{'code':_0x611f30,'data':_0x6ba5a9,'extra':_0x4b48cb};}},'input':{'value':function(_0x488d8a,_0x5ef045){const _0x5bfc17=_0x435540;var _0x37efbd;const _0x333c33=lodash[_0x5bfc17(0x209)]({},this[_0x5bfc17(0x25f)][_0x5bfc17(0x20d)]||this['request'][((_0x37efbd=_0x33dd0f===null||_0x33dd0f===void 0x0?void 0x0:_0x33dd0f[_0x5bfc17(0x23d)])===null||_0x37efbd===void 0x0?void 0x0:_0x37efbd[_0x5bfc17(0x20b)])||_0x5bfc17(0x20d)]||{},this['request'][_0x5bfc17(0x1d4)]||{});return _0x488d8a?lodash[_0x5bfc17(0x1c7)](_0x333c33,_0x488d8a,_0x5ef045):_0x333c33;}},'when':{'value':async function(_0x577cef,_0x224196){const _0x563e7f=_0x435540,_0x268a59=this['input'](_0x577cef,null);if(!lodash[_0x563e7f(0x227)](_0x268a59))return await _0x224196(_0x268a59);}},'only':{'value':function(_0x1281fd){const _0x3897e2=_0x435540,_0x2e684f={};for(let _0x413b8b=0x0;_0x413b8b<_0x1281fd[_0x3897e2(0x1db)];_0x413b8b++){lodash['isArray'](_0x1281fd[_0x413b8b])&&_0x1281fd[_0x413b8b][_0x3897e2(0x1db)]>0x0&&lodash[_0x3897e2(0x253)](_0x1281fd[_0x413b8b][0x0])&&(_0x2e684f[_0x1281fd[_0x413b8b][0x0]]=this[_0x3897e2(0x247)](_0x1281fd[_0x413b8b][0x0],_0x1281fd[_0x413b8b][_0x3897e2(0x1db)]>0x1?_0x1281fd[_0x413b8b][0x1]:null));}return _0x2e684f;}},'koasend':{'value':async function(_0x387a5a,_0x53415d){const _0x3b2a7a=_0x435540;if(_0x387a5a&&!fs['existsSync'](_0x387a5a)&&!fs[_0x3b2a7a(0x21f)](this['app']['getAppDir']()+'/'+_0x387a5a))return _0x3b2a7a(0x237);return _0x387a5a=fs[_0x3b2a7a(0x21f)](_0x387a5a)?_0x387a5a:this[_0x3b2a7a(0x20c)][_0x3b2a7a(0x23a)]()+'/'+_0x387a5a,this[_0x3b2a7a(0x23e)](_0x53415d||_0x387a5a),await koasend(this,_0x387a5a);}}});});}async[a3_0x38eb2f(0x21b)](){const _0x373351=a3_0x38eb2f;var _0x45cfc0;if(fs[_0x373351(0x21f)](this['app']['getBaseDir']()+_0x373351(0x228))&&fs[_0x373351(0x258)](this['app'][_0x373351(0x1ec)]()+_0x373351(0x228))[_0x373351(0x256)]()){const _0xd27ec1=this[_0x373351(0x213)][_0x373351(0x1d7)](),_0xea52c0=((_0x45cfc0=_0xd27ec1===null||_0xd27ec1===void 0x0?void 0x0:_0xd27ec1[_0x373351(0x1dd)])===null||_0x45cfc0===void 0x0?void 0x0:_0x45cfc0[_0x373351(0x1d0)])||{};!fs[_0x373351(0x21f)](this[_0x373351(0x20c)]['getBaseDir']()+_0x373351(0x250))&&(_0xea52c0[_0x373351(0x20c)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x373351(0x262)](),'fileLogName':_0x373351(0x240),'dir':path[_0x373351(0x244)](this[_0x373351(0x20c)][_0x373351(0x23a)](),_0x373351(0x206),_0x373351(0x20c))});!fs['existsSync'](this[_0x373351(0x20c)][_0x373351(0x1ec)]()+'/basic')&&(_0xea52c0[_0x373351(0x226)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x373351(0x22c)][_0x373351(0x262)](),'fileLogName':_0x373351(0x251),'dir':path[_0x373351(0x244)](this[_0x373351(0x20c)]['getAppDir'](),_0x373351(0x206),_0x373351(0x226))});for(const _0x5ec1ff of fs[_0x373351(0x1ef)](this['app'][_0x373351(0x1ec)]()+'/apps')){if(!fs[_0x373351(0x258)](this[_0x373351(0x20c)][_0x373351(0x1ec)]()+_0x373351(0x1ed)+_0x5ec1ff)[_0x373351(0x256)]())continue;!(_0xea52c0===null||_0xea52c0===void 0x0?void 0x0:_0xea52c0[_0x5ec1ff])&&(_0xea52c0[_0x5ec1ff]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x373351(0x22c)]['isDevelopmentEnvironment'](),'fileLogName':_0x5ec1ff+_0x373351(0x1ca),'dir':path[_0x373351(0x244)](this[_0x373351(0x20c)][_0x373351(0x23a)](),_0x373351(0x206),_0x373351(0x22e)+_0x5ec1ff)}),this['loggerService'][_0x373351(0x1df)](_0x5ec1ff,_0xea52c0[_0x5ec1ff]);}Object['keys'](_0xea52c0)[_0x373351(0x1db)]>0x0&&(!_0xd27ec1['midwayLogger']&&(_0xd27ec1[_0x373351(0x1dd)]={'default':{'maxSize':'1m','maxFiles':_0x373351(0x1c9),'dir':path[_0x373351(0x244)](this[_0x373351(0x20c)][_0x373351(0x23a)](),_0x373351(0x206))}}),_0xd27ec1[_0x373351(0x1dd)]['clients']=_0xea52c0),this[_0x373351(0x213)][_0x373351(0x1d3)](_0xd27ec1);}}async[a3_0x38eb2f(0x1f3)](){const _0x428eaf=a3_0x38eb2f;var _0x908068,_0x3a4908,_0xbe2d50,_0x4aca63,_0x3220f8,_0x6e76fc;const _0x34cf72=this['config'][_0x428eaf(0x1d7)]();((_0x3a4908=(_0x908068=_0x34cf72===null||_0x34cf72===void 0x0?void 0x0:_0x34cf72['anncicapi'])===null||_0x908068===void 0x0?void 0x0:_0x908068[_0x428eaf(0x260)])===null||_0x3a4908===void 0x0?void 0x0:_0x3a4908[_0x428eaf(0x1e8)])&&Object[_0x428eaf(0x224)](_0x34cf72[_0x428eaf(0x235)]['devices'])[_0x428eaf(0x1db)]>0x1&&delete _0x34cf72['anncicapi'][_0x428eaf(0x260)][_0x428eaf(0x1e8)];if((_0xbe2d50=_0x34cf72===null||_0x34cf72===void 0x0?void 0x0:_0x34cf72[_0x428eaf(0x1d9)])===null||_0xbe2d50===void 0x0?void 0x0:_0xbe2d50[_0x428eaf(0x223)])for(const _0x2045b9 in _0x34cf72[_0x428eaf(0x1d9)][_0x428eaf(0x223)]){((_0x4aca63=_0x34cf72['staticFile'][_0x428eaf(0x223)][_0x2045b9])===null||_0x4aca63===void 0x0?void 0x0:_0x4aca63[_0x428eaf(0x1fc)])&&typeof((_0x3220f8=_0x34cf72['staticFile'][_0x428eaf(0x223)][_0x2045b9])===null||_0x3220f8===void 0x0?void 0x0:_0x3220f8['dir'])=='string'&&!fs['existsSync'](_0x34cf72[_0x428eaf(0x1d9)][_0x428eaf(0x223)][_0x2045b9]['dir'])&&(fs[_0x428eaf(0x1f4)](_0x34cf72['staticFile']['dirs'][_0x2045b9]['dir'],{'recursive':!![]}),console[_0x428eaf(0x201)](_0x428eaf(0x204)+_0x34cf72[_0x428eaf(0x1d9)][_0x428eaf(0x223)][_0x2045b9][_0x428eaf(0x1fc)]));}((_0x6e76fc=_0x34cf72===null||_0x34cf72===void 0x0?void 0x0:_0x34cf72['upload'])===null||_0x6e76fc===void 0x0?void 0x0:_0x6e76fc[_0x428eaf(0x25a)])&&!fs[_0x428eaf(0x21f)](_0x34cf72[_0x428eaf(0x21e)][_0x428eaf(0x25a)])&&(fs[_0x428eaf(0x1f4)](_0x34cf72['upload'][_0x428eaf(0x25a)],{'recursive':!![]}),console[_0x428eaf(0x201)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x34cf72[_0x428eaf(0x21e)][_0x428eaf(0x25a)])),this[_0x428eaf(0x213)][_0x428eaf(0x1d3)](_0x34cf72);}};exports[a3_0x38eb2f(0x215)]=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata(a3_0x38eb2f(0x210),Object)],CustomConfiguration['prototype'],a3_0x38eb2f(0x20c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x38eb2f(0x210),core_2[a3_0x38eb2f(0x249)])],CustomConfiguration[a3_0x38eb2f(0x1e7)],a3_0x38eb2f(0x213),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x38eb2f(0x210),core_2[a3_0x38eb2f(0x1cd)])],CustomConfiguration[a3_0x38eb2f(0x1e7)],a3_0x38eb2f(0x242),void 0x0),__decorate([(0x0,core_1[a3_0x38eb2f(0x221)])(),__metadata('design:type',core_2[a3_0x38eb2f(0x241)])],CustomConfiguration[a3_0x38eb2f(0x1e7)],a3_0x38eb2f(0x1ea),void 0x0),__decorate([(0x0,core_1[a3_0x38eb2f(0x221)])(),__metadata(a3_0x38eb2f(0x210),core_2['MidwayEnvironmentService'])],CustomConfiguration[a3_0x38eb2f(0x1e7)],a3_0x38eb2f(0x22c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x38eb2f(0x210),core_1['MidwayLoggerService'])],CustomConfiguration[a3_0x38eb2f(0x1e7)],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0x38eb2f(0x221)])(),__metadata(a3_0x38eb2f(0x210),ApiService_1[a3_0x38eb2f(0x218)])],CustomConfiguration['prototype'],a3_0x38eb2f(0x218),void 0x0),exports[a3_0x38eb2f(0x215)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x38eb2f(0x1f0),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a3_0x126243=a3_0x1c80;(function(_0x1e7c17,_0x166a2f){const _0x5ec4d0=a3_0x1c80,_0x2cf6a3=_0x1e7c17();while(!![]){try{const _0x34279e=-parseInt(_0x5ec4d0(0x103))/0x1*(parseInt(_0x5ec4d0(0xbd))/0x2)+-parseInt(_0x5ec4d0(0xab))/0x3+parseInt(_0x5ec4d0(0xb2))/0x4+-parseInt(_0x5ec4d0(0x109))/0x5+parseInt(_0x5ec4d0(0x97))/0x6+-parseInt(_0x5ec4d0(0xfe))/0x7*(-parseInt(_0x5ec4d0(0xfb))/0x8)+parseInt(_0x5ec4d0(0xb0))/0x9;if(_0x34279e===_0x166a2f)break;else _0x2cf6a3['push'](_0x2cf6a3['shift']());}catch(_0x4e13a9){_0x2cf6a3['push'](_0x2cf6a3['shift']());}}}(a3_0x3210,0xbeef8));const a3_0x554c93=(function(){let _0x24734f=!![];return function(_0x315a9b,_0x1c0990){const _0x420f0a=_0x24734f?function(){const _0x3ef928=a3_0x1c80;if(_0x1c0990){const _0x595cdb=_0x1c0990[_0x3ef928(0xe1)](_0x315a9b,arguments);return _0x1c0990=null,_0x595cdb;}}:function(){};return _0x24734f=![],_0x420f0a;};}()),a3_0x5d1f01=a3_0x554c93(this,function(){const _0x247727=a3_0x1c80;return a3_0x5d1f01[_0x247727(0x102)]()[_0x247727(0x119)](_0x247727(0x11a))[_0x247727(0x102)]()[_0x247727(0xc3)](a3_0x5d1f01)[_0x247727(0x119)]('(((.+)+)+)+$');});a3_0x5d1f01();function a3_0x1c80(_0x412f71,_0x3bb01a){const _0x1dceeb=a3_0x3210();return a3_0x1c80=function(_0x5d1f01,_0x554c93){_0x5d1f01=_0x5d1f01-0x90;let _0x321097=_0x1dceeb[_0x5d1f01];return _0x321097;},a3_0x1c80(_0x412f71,_0x3bb01a);}'use strict';var __decorate=this&&this[a3_0x126243(0x11b)]||function(_0x5b6a29,_0x57029c,_0x49160f,_0x281bc6){const _0x40137a=a3_0x126243;var _0x10ffb0=arguments[_0x40137a(0xa5)],_0x2ecefe=_0x10ffb0<0x3?_0x57029c:_0x281bc6===null?_0x281bc6=Object[_0x40137a(0xf2)](_0x57029c,_0x49160f):_0x281bc6,_0x16729d;if(typeof Reflect===_0x40137a(0xc8)&&typeof Reflect[_0x40137a(0xcd)]==='function')_0x2ecefe=Reflect[_0x40137a(0xcd)](_0x5b6a29,_0x57029c,_0x49160f,_0x281bc6);else{for(var _0x379b68=_0x5b6a29[_0x40137a(0xa5)]-0x1;_0x379b68>=0x0;_0x379b68--)if(_0x16729d=_0x5b6a29[_0x379b68])_0x2ecefe=(_0x10ffb0<0x3?_0x16729d(_0x2ecefe):_0x10ffb0>0x3?_0x16729d(_0x57029c,_0x49160f,_0x2ecefe):_0x16729d(_0x57029c,_0x49160f))||_0x2ecefe;}return _0x10ffb0>0x3&&_0x2ecefe&&Object[_0x40137a(0x11d)](_0x57029c,_0x49160f,_0x2ecefe),_0x2ecefe;},__metadata=this&&this['__metadata']||function(_0x2a7494,_0xaf8ad6){const _0x32e0a0=a3_0x126243;if(typeof Reflect===_0x32e0a0(0xc8)&&typeof Reflect[_0x32e0a0(0x99)]==='function')return Reflect['metadata'](_0x2a7494,_0xaf8ad6);};Object[a3_0x126243(0x11d)](exports,a3_0x126243(0x117),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a3_0x126243(0x106)),core_2=require(a3_0x126243(0x106)),ApiError_1=require(a3_0x126243(0x9c)),ApiService_1=require(a3_0x126243(0x11e)),intercept_1=require(a3_0x126243(0x105)),action_1=require(a3_0x126243(0x10e)),fs=require('fs'),path=require(a3_0x126243(0x91)),koasend=require('koa-send'),koa=require(a3_0x126243(0xa1)),upload=require(a3_0x126243(0x9f)),staticFile=require(a3_0x126243(0xee)),crossDomain=require(a3_0x126243(0x126)),ConfigDefault=require(a3_0x126243(0xc4)),ConfigProduction=require(a3_0x126243(0xd8)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a3_0x126243(0xd9)),anncicTypeorm=require(a3_0x126243(0x95)),anncicValidator=require(a3_0x126243(0xaa)),anncicHelper=require('anncic-apihelper');function a3_0x3210(){const _0x2b37b5=['req','@midwayjs/cross-domain','log','statSync','onReady','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','/apps/','path','MidwayApplicationManager','bodyXml','ACTION_ROUTE_KEY','@anncic-api/typeorm','tmpdir','4597908tArIWK','Inject','metadata','http://','midwayLogger','./exception/ApiError','method','mkdirSync','@midwayjs/busboy','requestKey','@midwayjs/koa','string','createLogger','design:type','length','MidwayLoggerService','Anncic-api\x20static-file\x20:\x20mkdir\x20','ApiService','query','@anncic-api/validator','4667943VSCJCB','koa','文件不存在','MidwayConfigService','clients','19345248NIucdC','lastIndexOf','4665736wzSeNv','dirs','loggerConfig','decorator','filterConfig','existsSync','isClass','upload','attachment','registerMethodHandler','REQUEST_OBJ_CTX_KEY','66OylTsl','getClassMetadata','toLowerCase','APPSCONFIG_KEY','description','Configuration','constructor','./config/config.default','_matchedRoute','hanlderApplications','Types','object','anncicapi','prototype','INTERCEPT_KEY','isDirectory','decorate','MidwayEnvironmentService','getConfiguration','request','apimit','/app','InterceptTargetTmp','runtime','keys','host','isNull','./config/config.production','@anncic-api/event','parse','CustomConfiguration','getAppDir','basic.log','intercept','https://','undefined','apply','_matchedRouteMeta','HEADERS_SIGNATURE','args','environment','getBaseDir','/basic','devices','_UNKNOW_','context','device','addObject','routerName','@midwayjs/static-file','basic','handlerActionRoute','application','getOwnPropertyDescriptor','app','filepath','includes','dir','apps-','connection','DEFAULT','headers','19432KocgyW','app.log','module','623UbPKvn','handler','defineProperties','input','toString','38173EyEDTC','ApiError','./types/intercept','@midwayjs/core','join','getApplications','3503215nMMMXV','ACTION_KEY','isDevelopmentEnvironment','isString','function','./types/action','443','config','loggerService','readdirSync','MidwayDecoratorService','getAsync','defaultsDeep','target','__esModule','staticFile','search','(((.+)+)+)+$','__decorate','/apps','defineProperty','./service/ApiService','tagName','270d','proceed','match','routerOptions','encrypted'];a3_0x3210=function(){return _0x2b37b5;};return a3_0x3210();}let CustomConfiguration=class CustomConfiguration{async[a3_0x126243(0x129)](){const _0x2fdc97=a3_0x126243;await this[_0x2fdc97(0xb6)](),await this[_0x2fdc97(0xb4)](),await this[_0x2fdc97(0xf0)](),await this[_0x2fdc97(0xc6)]();}async[a3_0x126243(0xf0)](){const _0x4db393=a3_0x126243,_0x66c97=this[_0x4db393(0x110)][_0x4db393(0xcf)](),_0x1f976f=(0x0,core_1['getClassMetadata'])(intercept_1[_0x4db393(0xcb)],intercept_1[_0x4db393(0xd3)])||{};this['decorator'][_0x4db393(0xbb)](action_1[_0x4db393(0x94)],_0x17f242=>{const _0x5ee4ca=_0x4db393;var _0x1672e4;const _0x5647e7=(0x0,core_1[_0x5ee4ca(0xbe)])(action_1[_0x5ee4ca(0xc0)],action_1['AppsConfigTmp'])||{},_0x47f1ac=_0x17f242[_0x5ee4ca(0x99)],_0x8ea593=(0x0,core_1[_0x5ee4ca(0xbe)])(action_1[_0x5ee4ca(0x10a)],_0x17f242['target'])||{},_0x916330=((_0x1672e4=_0x8ea593===null||_0x8ea593===void 0x0?void 0x0:_0x8ea593[_0x5ee4ca(0xf4)])===null||_0x1672e4===void 0x0?void 0x0:_0x1672e4['substring'](0x0,_0x8ea593[_0x5ee4ca(0xf4)][_0x5ee4ca(0xb1)]('.')))||'',_0x8d6b36=(_0x8ea593===null||_0x8ea593===void 0x0?void 0x0:_0x8ea593[_0x5ee4ca(0xfd)])?(_0x5647e7===null||_0x5647e7===void 0x0?void 0x0:_0x5647e7[_0x8ea593['module']])||{}:{};return{'before':async _0x191b00=>{const _0x376fc9=_0x5ee4ca;var _0x5ff9a1,_0x4d8b8a,_0x250917,_0x578749;const _0x1e2147=(_0x5ff9a1=_0x191b00===null||_0x191b00===void 0x0?void 0x0:_0x191b00[_0x376fc9(0x116)])===null||_0x5ff9a1===void 0x0?void 0x0:_0x5ff9a1[core_2[_0x376fc9(0xbc)]],_0x5e557f=lodash[_0x376fc9(0x115)]({},_0x1e2147[_0x376fc9(0xd0)]['body']||_0x1e2147['request'][((_0x4d8b8a=_0x66c97===null||_0x66c97===void 0x0?void 0x0:_0x66c97['bodyXml'])===null||_0x4d8b8a===void 0x0?void 0x0:_0x4d8b8a['key'])||'body']||{},_0x1e2147[_0x376fc9(0xd0)][_0x376fc9(0xa9)]||{});_0x1e2147[_0x376fc9(0xe2)]={'module':(_0x8d6b36===null||_0x8d6b36===void 0x0?void 0x0:_0x8d6b36['name'])||'','routePath':''+_0x1e2147[_0x376fc9(0x91)],'routeName':_0x8ea593[_0x376fc9(0x123)][_0x376fc9(0x11f)]+'@'+_0x47f1ac[_0x376fc9(0xed)],'routeMethod':((_0x47f1ac===null||_0x47f1ac===void 0x0?void 0x0:_0x47f1ac['requestMethod'])||_0x1e2147['method']||'')[_0x376fc9(0xbf)](),'routeDescription':(_0x47f1ac===null||_0x47f1ac===void 0x0?void 0x0:_0x47f1ac[_0x376fc9(0xc1)])||'','filemethod':_0x916330+'@'+(_0x47f1ac['method']||'')};if(_0x1e2147&&(_0x47f1ac===null||_0x47f1ac===void 0x0?void 0x0:_0x47f1ac['apimit']))try{const _0x2e04f1=((_0x250917=_0x66c97===null||_0x66c97===void 0x0?void 0x0:_0x66c97['anncicapi'])===null||_0x250917===void 0x0?void 0x0:_0x250917[_0x376fc9(0xa0)])&&typeof(_0x5e557f===null||_0x5e557f===void 0x0?void 0x0:_0x5e557f[_0x66c97[_0x376fc9(0xc9)][_0x376fc9(0xa0)]])==_0x376fc9(0xa2)?JSON[_0x376fc9(0xda)](base64_decode(_0x5e557f[_0x66c97[_0x376fc9(0xc9)][_0x376fc9(0xa0)]])||'{}')||{}:((_0x578749=_0x1e2147===null||_0x1e2147===void 0x0?void 0x0:_0x1e2147[_0x376fc9(0xd0)])===null||_0x578749===void 0x0?void 0x0:_0x578749[_0x376fc9(0xfa)])||{};if(!this[_0x376fc9(0xa8)]['checksign'](_0x2e04f1))throw new AnnError(ApiError_1[_0x376fc9(0x104)][_0x376fc9(0xe3)]);for(const _0x1bbec6 in _0x2e04f1||{}){_0x1e2147[_0x376fc9(0xfa)][_0x1bbec6]=_0x2e04f1[_0x1bbec6];}}catch(_0x5e9713){if(_0x5e9713 instanceof AnnError)throw _0x5e9713;else throw new AnnError(ApiError_1[_0x376fc9(0x104)][_0x376fc9(0xe9)]);}},'around':async _0x18f6a5=>{const _0x5f58a8=_0x5ee4ca;var _0x426f85,_0x38f8b0,_0x10973e;const _0x3f6cf3=(_0x426f85=_0x18f6a5===null||_0x18f6a5===void 0x0?void 0x0:_0x18f6a5[_0x5f58a8(0x116)])===null||_0x426f85===void 0x0?void 0x0:_0x426f85[core_2[_0x5f58a8(0xbc)]];if(_0x3f6cf3&&(_0x47f1ac===null||_0x47f1ac===void 0x0?void 0x0:_0x47f1ac[_0x5f58a8(0xd1)])&&((_0x47f1ac===null||_0x47f1ac===void 0x0?void 0x0:_0x47f1ac[_0x5f58a8(0xde)])||typeof(_0x47f1ac===null||_0x47f1ac===void 0x0?void 0x0:_0x47f1ac['intercept'])==_0x5f58a8(0xe0))){if(((_0x38f8b0=_0x3f6cf3[_0x5f58a8(0xfa)])===null||_0x38f8b0===void 0x0?void 0x0:_0x38f8b0[_0x5f58a8(0xeb)])&&((_0x10973e=_0x1f976f===null||_0x1f976f===void 0x0?void 0x0:_0x1f976f[_0x3f6cf3[_0x5f58a8(0xfa)][_0x5f58a8(0xeb)]])===null||_0x10973e===void 0x0?void 0x0:_0x10973e['length'])>0x0)for(const _0x1973c9 of _0x1f976f[_0x3f6cf3[_0x5f58a8(0xfa)][_0x5f58a8(0xeb)]]||[]){if(core_1[_0x5f58a8(0xc7)][_0x5f58a8(0xb8)](_0x1973c9)){const _0x2e1c3e=await _0x3f6cf3['requestContext'][_0x5f58a8(0x114)](_0x1973c9);typeof(_0x2e1c3e===null||_0x2e1c3e===void 0x0?void 0x0:_0x2e1c3e[_0x5f58a8(0x122)])==_0x5f58a8(0x10d)?await _0x2e1c3e[_0x5f58a8(0x122)](_0x3f6cf3,typeof(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0x9d)])==_0x5f58a8(0xa2)&&(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)])?_0x3f6cf3['method']['toLowerCase']()+'@'+(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)]):undefined,_0x47f1ac)&&await _0x2e1c3e[_0x5f58a8(0xff)](_0x3f6cf3,typeof(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0x9d)])==_0x5f58a8(0xa2)&&(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)])?_0x3f6cf3[_0x5f58a8(0x9d)]['toLowerCase']()+'@'+(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)]):undefined,_0x47f1ac):await _0x2e1c3e[_0x5f58a8(0xff)](_0x3f6cf3,typeof(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0x9d)])==_0x5f58a8(0xa2)&&(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)])?_0x3f6cf3[_0x5f58a8(0x9d)][_0x5f58a8(0xbf)]()+'@'+(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)]):undefined,_0x47f1ac);}else core_1[_0x5f58a8(0xc7)]['isFunction'](_0x1973c9)&&await _0x1973c9(_0x3f6cf3,typeof(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3['method'])=='string'&&(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3['_matchedRoute'])?_0x3f6cf3[_0x5f58a8(0x9d)][_0x5f58a8(0xbf)]()+'@'+(_0x3f6cf3===null||_0x3f6cf3===void 0x0?void 0x0:_0x3f6cf3[_0x5f58a8(0xc5)]):undefined,_0x47f1ac);}}return await _0x18f6a5[_0x5f58a8(0x121)](..._0x18f6a5[_0x5f58a8(0xe4)]);},'afterThrow':(_0x24ccb2,_0x1c8152)=>{throw _0x1c8152;}};});}async['hanlderApplications'](){const _0x2f1a9a=a3_0x126243,_0x3f4681=this[_0x2f1a9a(0x110)][_0x2f1a9a(0xcf)]();this[_0x2f1a9a(0xf1)][_0x2f1a9a(0x108)]([_0x2f1a9a(0xac)])['forEach'](_0xf942e7=>{const _0x55973f=_0x2f1a9a;(_0xf942e7===null||_0xf942e7===void 0x0?void 0x0:_0xf942e7['context'])&&Object[_0x55973f(0x100)](_0xf942e7[_0x55973f(0xea)],{'hosturl':{'configurable':![],'get':function(){const _0x5bcda0=_0x55973f;var _0xf2eaa5,_0x5944a4,_0xfd91d7,_0x4b754e;if((this===null||this===void 0x0?void 0x0:this[_0x5bcda0(0xd6)])&&!this['host']['startsWith']('http')){let _0x5dbc28=this[_0x5bcda0(0xd6)]['split'](':');return['80',_0x5bcda0(0x10f)][_0x5bcda0(0xf5)](_0x5dbc28===null||_0x5dbc28===void 0x0?void 0x0:_0x5dbc28[0x1])?''+(!!((_0x5944a4=(_0xf2eaa5=this===null||this===void 0x0?void 0x0:this[_0x5bcda0(0x125)])===null||_0xf2eaa5===void 0x0?void 0x0:_0xf2eaa5[_0x5bcda0(0xf8)])===null||_0x5944a4===void 0x0?void 0x0:_0x5944a4['encrypted'])||(_0x5dbc28===null||_0x5dbc28===void 0x0?void 0x0:_0x5dbc28[0x1])=='443'?_0x5bcda0(0xdf):'http://')+_0x5dbc28[0x0]:''+(!!((_0x4b754e=(_0xfd91d7=this===null||this===void 0x0?void 0x0:this[_0x5bcda0(0x125)])===null||_0xfd91d7===void 0x0?void 0x0:_0xfd91d7['connection'])===null||_0x4b754e===void 0x0?void 0x0:_0x4b754e[_0x5bcda0(0x124)])?_0x5bcda0(0xdf):_0x5bcda0(0x9a))+this[_0x5bcda0(0xd6)];}return'';}},'ok':{'value':function(_0x3f528f,_0x4cb103,_0x346caa=0x0){return{'code':_0x346caa,'data':_0x3f528f,'extra':_0x4cb103};}},'input':{'value':function(_0x3a59bd,_0x3dc2a9){const _0x19c7f7=_0x55973f;var _0x1facbe;const _0x5d53ad=lodash[_0x19c7f7(0x115)]({},this[_0x19c7f7(0xd0)]['body']||this[_0x19c7f7(0xd0)][((_0x1facbe=_0x3f4681===null||_0x3f4681===void 0x0?void 0x0:_0x3f4681[_0x19c7f7(0x93)])===null||_0x1facbe===void 0x0?void 0x0:_0x1facbe['key'])||'body']||{},this['request'][_0x19c7f7(0xa9)]||{});return _0x3a59bd?lodash['get'](_0x5d53ad,_0x3a59bd,_0x3dc2a9):_0x5d53ad;}},'when':{'value':async function(_0x1855fd,_0x5410b5){const _0xf65765=_0x55973f,_0x214f27=this[_0xf65765(0x101)](_0x1855fd,null);if(!lodash[_0xf65765(0xd7)](_0x214f27))return await _0x5410b5(_0x214f27);}},'only':{'value':function(_0x3595d9){const _0x470396=_0x55973f,_0x1443fb={};for(let _0x2ced38=0x0;_0x2ced38<_0x3595d9[_0x470396(0xa5)];_0x2ced38++){lodash['isArray'](_0x3595d9[_0x2ced38])&&_0x3595d9[_0x2ced38]['length']>0x0&&lodash[_0x470396(0x10c)](_0x3595d9[_0x2ced38][0x0])&&(_0x1443fb[_0x3595d9[_0x2ced38][0x0]]=this['input'](_0x3595d9[_0x2ced38][0x0],_0x3595d9[_0x2ced38]['length']>0x1?_0x3595d9[_0x2ced38][0x1]:null));}return _0x1443fb;}},'koasend':{'value':async function(_0x23942a,_0x55710c){const _0x3e357c=_0x55973f;if(_0x23942a&&!fs[_0x3e357c(0xb7)](_0x23942a)&&!fs[_0x3e357c(0xb7)](this[_0x3e357c(0xf3)][_0x3e357c(0xdc)]()+'/'+_0x23942a))return _0x3e357c(0xad);return _0x23942a=fs[_0x3e357c(0xb7)](_0x23942a)?_0x23942a:this[_0x3e357c(0xf3)]['getAppDir']()+'/'+_0x23942a,this[_0x3e357c(0xba)](_0x55710c||_0x23942a),await koasend(this,_0x23942a);}}});});}async[a3_0x126243(0xb4)](){const _0x1062c8=a3_0x126243;var _0x468762;if(fs[_0x1062c8(0xb7)](this[_0x1062c8(0xf3)][_0x1062c8(0xe6)]()+_0x1062c8(0x11c))&&fs[_0x1062c8(0x128)](this[_0x1062c8(0xf3)][_0x1062c8(0xe6)]()+_0x1062c8(0x11c))['isDirectory']()){const _0xf8d5bc=this[_0x1062c8(0x110)]['getConfiguration'](),_0x18b6d8=((_0x468762=_0xf8d5bc===null||_0xf8d5bc===void 0x0?void 0x0:_0xf8d5bc['midwayLogger'])===null||_0x468762===void 0x0?void 0x0:_0x468762['clients'])||{};!fs[_0x1062c8(0xb7)](this[_0x1062c8(0xf3)][_0x1062c8(0xe6)]()+_0x1062c8(0xd2))&&(_0x18b6d8[_0x1062c8(0xf3)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x1062c8(0x10b)](),'fileLogName':_0x1062c8(0xfc),'dir':path[_0x1062c8(0x107)](this[_0x1062c8(0xf3)]['getAppDir'](),'runtime',_0x1062c8(0xf3))});!fs[_0x1062c8(0xb7)](this['app']['getBaseDir']()+_0x1062c8(0xe7))&&(_0x18b6d8[_0x1062c8(0xef)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x1062c8(0xe5)][_0x1062c8(0x10b)](),'fileLogName':_0x1062c8(0xdd),'dir':path[_0x1062c8(0x107)](this[_0x1062c8(0xf3)]['getAppDir'](),_0x1062c8(0xd4),_0x1062c8(0xef))});for(const _0x3468dc of fs[_0x1062c8(0x112)](this['app']['getBaseDir']()+_0x1062c8(0x11c))){if(!fs[_0x1062c8(0x128)](this[_0x1062c8(0xf3)]['getBaseDir']()+_0x1062c8(0x90)+_0x3468dc)[_0x1062c8(0xcc)]())continue;!(_0x18b6d8===null||_0x18b6d8===void 0x0?void 0x0:_0x18b6d8[_0x3468dc])&&(_0x18b6d8[_0x3468dc]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x1062c8(0xe5)][_0x1062c8(0x10b)](),'fileLogName':_0x3468dc+'.log','dir':path[_0x1062c8(0x107)](this[_0x1062c8(0xf3)][_0x1062c8(0xdc)](),_0x1062c8(0xd4),_0x1062c8(0xf7)+_0x3468dc)}),this[_0x1062c8(0x111)][_0x1062c8(0xa3)](_0x3468dc,_0x18b6d8[_0x3468dc]);}Object['keys'](_0x18b6d8)[_0x1062c8(0xa5)]>0x0&&(!_0xf8d5bc[_0x1062c8(0x9b)]&&(_0xf8d5bc[_0x1062c8(0x9b)]={'default':{'maxSize':'1m','maxFiles':_0x1062c8(0x120),'dir':path['join'](this[_0x1062c8(0xf3)]['getAppDir'](),_0x1062c8(0xd4))}}),_0xf8d5bc['midwayLogger'][_0x1062c8(0xaf)]=_0x18b6d8),this['config'][_0x1062c8(0xec)](_0xf8d5bc);}}async['filterConfig'](){const _0x39ebb5=a3_0x126243;var _0x5312c4,_0x58562c,_0xa421a2,_0x229f5c,_0x1ed0ba,_0x26cce3;const _0x231307=this[_0x39ebb5(0x110)]['getConfiguration']();((_0x58562c=(_0x5312c4=_0x231307===null||_0x231307===void 0x0?void 0x0:_0x231307[_0x39ebb5(0xc9)])===null||_0x5312c4===void 0x0?void 0x0:_0x5312c4[_0x39ebb5(0xe8)])===null||_0x58562c===void 0x0?void 0x0:_0x58562c[_0x39ebb5(0xf9)])&&Object[_0x39ebb5(0xd5)](_0x231307[_0x39ebb5(0xc9)][_0x39ebb5(0xe8)])['length']>0x1&&delete _0x231307['anncicapi'][_0x39ebb5(0xe8)][_0x39ebb5(0xf9)];if((_0xa421a2=_0x231307===null||_0x231307===void 0x0?void 0x0:_0x231307[_0x39ebb5(0x118)])===null||_0xa421a2===void 0x0?void 0x0:_0xa421a2[_0x39ebb5(0xb3)])for(const _0x5c415e in _0x231307['staticFile'][_0x39ebb5(0xb3)]){((_0x229f5c=_0x231307[_0x39ebb5(0x118)]['dirs'][_0x5c415e])===null||_0x229f5c===void 0x0?void 0x0:_0x229f5c[_0x39ebb5(0xf6)])&&typeof((_0x1ed0ba=_0x231307['staticFile'][_0x39ebb5(0xb3)][_0x5c415e])===null||_0x1ed0ba===void 0x0?void 0x0:_0x1ed0ba['dir'])=='string'&&!fs[_0x39ebb5(0xb7)](_0x231307[_0x39ebb5(0x118)][_0x39ebb5(0xb3)][_0x5c415e][_0x39ebb5(0xf6)])&&(fs[_0x39ebb5(0x9e)](_0x231307[_0x39ebb5(0x118)]['dirs'][_0x5c415e]['dir'],{'recursive':!![]}),console[_0x39ebb5(0x127)](_0x39ebb5(0xa7)+_0x231307[_0x39ebb5(0x118)][_0x39ebb5(0xb3)][_0x5c415e]['dir']));}((_0x26cce3=_0x231307===null||_0x231307===void 0x0?void 0x0:_0x231307[_0x39ebb5(0xb9)])===null||_0x26cce3===void 0x0?void 0x0:_0x26cce3[_0x39ebb5(0x96)])&&!fs['existsSync'](_0x231307[_0x39ebb5(0xb9)][_0x39ebb5(0x96)])&&(fs['mkdirSync'](_0x231307[_0x39ebb5(0xb9)][_0x39ebb5(0x96)],{'recursive':!![]}),console['log'](_0x39ebb5(0x12a)+_0x231307['upload'][_0x39ebb5(0x96)])),this[_0x39ebb5(0x110)]['addObject'](_0x231307);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a3_0x126243(0xf3),void 0x0),__decorate([(0x0,core_1[a3_0x126243(0x98)])(),__metadata(a3_0x126243(0xa4),core_2[a3_0x126243(0xae)])],CustomConfiguration[a3_0x126243(0xca)],'config',void 0x0),__decorate([(0x0,core_1[a3_0x126243(0x98)])(),__metadata(a3_0x126243(0xa4),core_2[a3_0x126243(0x113)])],CustomConfiguration[a3_0x126243(0xca)],a3_0x126243(0xb5),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x126243(0xa4),core_2[a3_0x126243(0x92)])],CustomConfiguration[a3_0x126243(0xca)],a3_0x126243(0xf1),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x126243(0xa4),core_2[a3_0x126243(0xce)])],CustomConfiguration[a3_0x126243(0xca)],a3_0x126243(0xe5),void 0x0),__decorate([(0x0,core_1[a3_0x126243(0x98)])(),__metadata(a3_0x126243(0xa4),core_1[a3_0x126243(0xa6)])],CustomConfiguration[a3_0x126243(0xca)],a3_0x126243(0x111),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x126243(0xa4),ApiService_1[a3_0x126243(0xa8)])],CustomConfiguration['prototype'],a3_0x126243(0xa8),void 0x0),exports[a3_0x126243(0xdb)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0x126243(0xc2)])({'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 a4_0x4ad38e=a4_0x3abf;(function(_0x4dd1ad,_0x568bdd){const _0x5ecd22=a4_0x3abf,_0x52c92b=_0x4dd1ad();while(!![]){try{const _0xc8b661=parseInt(_0x5ecd22(0xf8))/0x1+parseInt(_0x5ecd22(0xfd))/0x2*(-parseInt(_0x5ecd22(0xfa))/0x3)+parseInt(_0x5ecd22(0xe3))/0x4+parseInt(_0x5ecd22(0xf7))/0x5*(parseInt(_0x5ecd22(0x113))/0x6)+parseInt(_0x5ecd22(0xeb))/0x7+parseInt(_0x5ecd22(0xe0))/0x8+-parseInt(_0x5ecd22(0xe9))/0x9;if(_0xc8b661===_0x568bdd)break;else _0x52c92b['push'](_0x52c92b['shift']());}catch(_0x1fab25){_0x52c92b['push'](_0x52c92b['shift']());}}}(a4_0x54da,0xaa40e));const a4_0x589de4=(function(){let _0x2b4f61=!![];return function(_0x1099c1,_0x2f6a55){const _0x200dda=_0x2b4f61?function(){const _0x1b5b04=a4_0x3abf;if(_0x2f6a55){const _0x24a7bd=_0x2f6a55[_0x1b5b04(0xdc)](_0x1099c1,arguments);return _0x2f6a55=null,_0x24a7bd;}}:function(){};return _0x2b4f61=![],_0x200dda;};}()),a4_0x4418a7=a4_0x589de4(this,function(){const _0x302abe=a4_0x3abf;return a4_0x4418a7[_0x302abe(0xf4)]()[_0x302abe(0x107)](_0x302abe(0x11f))['toString']()[_0x302abe(0x115)](a4_0x4418a7)[_0x302abe(0x107)](_0x302abe(0x11f));});a4_0x4418a7();'use strict';var _a,_b;Object['defineProperty'](exports,a4_0x4ad38e(0xe5),{'value':!![]}),exports['Action']=Action,exports['ActionApi']=ActionApi,exports[a4_0x4ad38e(0xd7)]=parseRoute;function a4_0x3abf(_0x544157,_0x326165){const _0x16ed35=a4_0x54da();return a4_0x3abf=function(_0x4418a7,_0x589de4){_0x4418a7=_0x4418a7-0xd2;let _0x54da31=_0x16ed35[_0x4418a7];return _0x54da31;},a4_0x3abf(_0x544157,_0x326165);}const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a4_0x4ad38e(0x111)),core_2=require(a4_0x4ad38e(0x111)),action_1=require(a4_0x4ad38e(0x11e)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a[a4_0x4ad38e(0xd6)])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x142c9a,_0x3390a5,_0x2d55a7={'middleware':[],'sensitive':!![]}){return _0xa41070=>{const _0x3933ff=a4_0x3abf;var _0x1c9ac7;_0x2d55a7[_0x3933ff(0x10f)]=_0x3390a5;const _0x142aa6=parseRoute(_0x142c9a);if(_0x142aa6['module']){_0x2d55a7[_0x3933ff(0xde)]=_0x2d55a7['prefix']?'/'+_0x142aa6[_0x3933ff(0x114)]+'/'+_0x2d55a7['prefix']:'/'+_0x142aa6[_0x3933ff(0x11c)];_0x142aa6[_0x3933ff(0xde)]&&(_0x2d55a7[_0x3933ff(0xde)]='/'+_0x142aa6['prefix']+'/'+_0x2d55a7[_0x3933ff(0xde)]);_0x2d55a7[_0x3933ff(0xde)]=_0x2d55a7['prefix']['toLowerCase']()[_0x3933ff(0xed)](/\/{2,}/g,'/');const _0x469341=getModuleConfig(_0x142aa6[_0x3933ff(0xff)]+_0x3933ff(0x116),_0x142aa6[_0x3933ff(0x114)],lodash['endsWith'](_0x142aa6[_0x3933ff(0x10a)],'ts')?'ts':'js');if(lodash[_0x3933ff(0xe8)](_0x469341[_0x3933ff(0xe1)])&&_0x469341[_0x3933ff(0xe1)][_0x3933ff(0x11d)]>0x0)for(let _0x17e5f5 in _0x469341[_0x3933ff(0xe1)]){if(((_0x1c9ac7=_0x469341===null||_0x469341===void 0x0?void 0x0:_0x469341[_0x3933ff(0x118)])===null||_0x1c9ac7===void 0x0?void 0x0:_0x1c9ac7['length'])>0x0&&_0x469341[_0x3933ff(0x118)][_0x3933ff(0xf9)](_0x469341[_0x3933ff(0xe1)][_0x17e5f5])!=-0x1)continue;_0x2d55a7[_0x3933ff(0xe1)][_0x3933ff(0x102)](_0x469341['middleware'][_0x17e5f5]);}(0x0,core_1[_0x3933ff(0xec)])(action_1['ACTION_KEY'],_0xa41070),(0x0,core_1[_0x3933ff(0xe7)])(_0x2d55a7[_0x3933ff(0xde)],_0x2d55a7)(_0xa41070),(0x0,core_1[_0x3933ff(0xd2)])(action_1['ACTION_KEY'],{'prefix':_0x2d55a7['prefix'],'pprefix':_0x142aa6[_0x3933ff(0xde)],'module':_0x142aa6[_0x3933ff(0x114)],'filepath':_0x142aa6[_0x3933ff(0x10a)],'routerOptions':_0x2d55a7},_0xa41070);}else _0x2d55a7[_0x3933ff(0xde)]=_0x2d55a7[_0x3933ff(0xde)]?'/'+_0x2d55a7[_0x3933ff(0xde)]:'/'+_0x142aa6[_0x3933ff(0x11c)],_0x142aa6[_0x3933ff(0xde)]&&(_0x2d55a7[_0x3933ff(0xde)]='/'+_0x142aa6[_0x3933ff(0xde)]+'/'+_0x2d55a7['prefix']),_0x2d55a7[_0x3933ff(0xde)]=_0x2d55a7[_0x3933ff(0xde)][_0x3933ff(0xf1)]()[_0x3933ff(0xed)](/\/{2,}/g,'/'),(0x0,core_1[_0x3933ff(0xec)])(action_1['ACTION_KEY'],_0xa41070),(0x0,core_1[_0x3933ff(0xe7)])(_0x2d55a7[_0x3933ff(0xde)],_0x2d55a7)(_0xa41070),(0x0,core_1[_0x3933ff(0xd2)])(action_1[_0x3933ff(0xee)],{'prefix':_0x2d55a7[_0x3933ff(0xde)],'module':_0x142aa6[_0x3933ff(0x114)],'pprefix':_0x142aa6[_0x3933ff(0xde)],'filepath':_0x142aa6[_0x3933ff(0x10a)],'routerOptions':_0x2d55a7},_0xa41070);};}Action[a4_0x4ad38e(0x119)]=function(_0x5a720c,_0x479771='/',_0x176806={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x42b4b9,_0x138013,_0x117df1)=>{const _0x26c1b8=a4_0x3abf;ActionApi(_0x5a720c,_0x26c1b8(0x119),_0x479771,_0x176806)(_0x42b4b9,_0x138013,_0x117df1);};},Action['post']=function(_0x488c7a,_0x424398='/',_0x5282c2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x44619a,_0x36d421,_0x10e5ac)=>{const _0x2fe280=a4_0x3abf;ActionApi(_0x488c7a,_0x2fe280(0xe4),_0x424398,_0x5282c2)(_0x44619a,_0x36d421,_0x10e5ac);};};function ActionApi(_0x5c4c9f,_0xfe5fa4=a4_0x4ad38e(0x119),_0x3843bb='/',_0x3ddc64={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3dc141,_0x57a3d9,_0x32f07c)=>{const _0x1cf40d=a4_0x3abf;var _0x2cfd01,_0x5677b4,_0x2a4415;!_0x3ddc64['middleware']&&(_0x3ddc64['middleware']=[]);!((_0x2cfd01=_0x3ddc64===null||_0x3ddc64===void 0x0?void 0x0:_0x3ddc64[_0x1cf40d(0xd8)])===null||_0x2cfd01===void 0x0?void 0x0:_0x2cfd01[_0x1cf40d(0xf2)])&&(_0x3ddc64[_0x1cf40d(0xd8)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x3843bb)_0x3843bb='/';else typeof _0x3843bb==_0x1cf40d(0x10b)&&(!_0x3843bb[_0x1cf40d(0x10c)]('/')&&!_0x3843bb[_0x1cf40d(0x10c)]('-')&&(_0x3843bb='/'+_0x3843bb));typeof _0x3ddc64[_0x1cf40d(0x10e)]==_0x1cf40d(0xea)&&(_0x3ddc64[_0x1cf40d(0x10e)]=!![]);if(((_0x5677b4=_0x3ddc64===null||_0x3ddc64===void 0x0?void 0x0:_0x3ddc64[_0x1cf40d(0xe1)])===null||_0x5677b4===void 0x0?void 0x0:_0x5677b4['length'])>0x0&&((_0x2a4415=_0x3ddc64===null||_0x3ddc64===void 0x0?void 0x0:_0x3ddc64[_0x1cf40d(0x118)])===null||_0x2a4415===void 0x0?void 0x0:_0x2a4415[_0x1cf40d(0x11d)])>0x0)for(let _0x4ea317 in _0x3ddc64[_0x1cf40d(0xe1)]){_0x3ddc64[_0x1cf40d(0x118)]['indexOf'](_0x3ddc64[_0x1cf40d(0xe1)][_0x4ea317])!==-0x1&&(_0x3ddc64[_0x1cf40d(0xe1)][_0x4ea317]=null);}_0x3ddc64[_0x1cf40d(0x112)]=_0x5c4c9f,(0x0,validator_1[_0x1cf40d(0x10d)])(_0x3ddc64[_0x1cf40d(0xd8)])(_0x3dc141,_0x57a3d9,_0x32f07c),(0x0,core_2[_0x1cf40d(0xf5)])(Object[_0x1cf40d(0xfe)](_0x3ddc64,{'path':_0x3843bb,'requestMethod':(_0xfe5fa4||_0x1cf40d(0x119))[_0x1cf40d(0xf1)]()}))(_0x3dc141,_0x57a3d9,_0x32f07c),(0x0,core_2[_0x1cf40d(0xd3)])(action_1[_0x1cf40d(0xf0)],{'path':_0x3843bb,'method':_0x57a3d9,'apimit':_0x3ddc64[_0x1cf40d(0x10e)],'intercept':_0x3ddc64[_0x1cf40d(0x101)],'routerName':_0x3ddc64[_0x1cf40d(0x112)],'description':_0x3ddc64[_0x1cf40d(0xe6)],'middleware':(_0x3ddc64[_0x1cf40d(0xe1)]||[])['filter'](_0xfb25d1=>!!_0xfb25d1),'requestMethod':(_0xfe5fa4||_0x1cf40d(0x119))[_0x1cf40d(0xf1)]()},_0x3dc141),(0x0,core_2[_0x1cf40d(0xef)])(action_1[_0x1cf40d(0xf0)],{'path':_0x3843bb,'method':_0x57a3d9,'apimit':_0x3ddc64['apimit'],'intercept':_0x3ddc64['intercept'],'routerName':_0x3ddc64[_0x1cf40d(0x112)],'description':_0x3ddc64[_0x1cf40d(0xe6)],'middleware':(_0x3ddc64[_0x1cf40d(0xe1)]||[])[_0x1cf40d(0xdd)](_0x1b17e3=>!!_0x1b17e3),'requestMethod':(_0xfe5fa4||_0x1cf40d(0x119))[_0x1cf40d(0xf1)]()})(_0x3dc141,_0x57a3d9,_0x32f07c);};}function parseRoute(_0x443c4a){const _0x431a3d=a4_0x4ad38e;_0x443c4a=_0x443c4a['replace'](/(\\|\/)/g,'/');const _0x214c06=process[_0x431a3d(0x103)]()['replace'](/(\\|\/)/g,'/'),_0x533b44=_0x443c4a[_0x431a3d(0xd9)](0x0,_0x214c06['length']+_0x443c4a['substring'](_0x214c06[_0x431a3d(0x11d)]+0x1)[_0x431a3d(0xf9)]('/')+0x1),_0x2b68b7=_0x443c4a[_0x431a3d(0xd9)](_0x533b44['length']+0x1)[_0x431a3d(0xed)](/(\\|\/)/g,'/'),_0x4eed5d={'route':'','prefix':![],'module':![],'rootpath':_0x533b44,'filepath':_0x2b68b7};if(_0x2b68b7[_0x431a3d(0x10c)](_0x431a3d(0x109))||_0x2b68b7[_0x431a3d(0x10c)]('basic/controller/')){const _0x2975c0=_0x2b68b7[_0x431a3d(0xd9)]((_0x2b68b7[_0x431a3d(0x10c)](_0x431a3d(0x109))?_0x431a3d(0x109):_0x431a3d(0xd5))['length'])[_0x431a3d(0x11b)]('/')['filter'](_0x1bec7f=>_0x1bec7f&&_0x1bec7f[_0x431a3d(0x11a)]());return _0x2975c0[_0x431a3d(0x11d)]>0x1&&(_0x4eed5d[_0x431a3d(0xde)]=_0x2975c0[0x0][_0x431a3d(0xf1)](),_0x2975c0['splice'](0x0,0x1)),_0x4eed5d[_0x431a3d(0x11c)]=('/'+_0x2975c0[_0x431a3d(0xfb)]('/'))[_0x431a3d(0xed)](/(\.ts|\.js)$/,'')[_0x431a3d(0xed)](/\/{2,}/g,'/')[_0x431a3d(0xf6)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x431a3d(0xed)](/\/\-/g,'/'),_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0x117)](_0x431a3d(0xdb))&&(_0x4eed5d[_0x431a3d(0x11c)]=_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0xd9)](0x0,_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0x11d)]-0x7)),_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0x117)]('-controller')&&(_0x4eed5d[_0x431a3d(0x11c)]=_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0xd9)](0x0,_0x4eed5d[_0x431a3d(0x11c)]['length']-0xb)),_0x4eed5d;}else{if(_0x2b68b7['startsWith'](_0x431a3d(0x105))){const _0x2a64f2=_0x2b68b7['substring'](0x0,_0x2b68b7[_0x431a3d(0xf9)](_0x431a3d(0x106))+0x5),_0x26e6a8=_0x2b68b7[_0x431a3d(0xd9)](_0x2a64f2[_0x431a3d(0x11d)]+0x1)[_0x431a3d(0xed)](/(\\|\/)/g,'/')[_0x431a3d(0x11b)]('/')[0x0];if(_0x2b68b7[_0x431a3d(0x10c)](_0x431a3d(0x105)+_0x26e6a8+'/controller/')){const _0x5e9e50=_0x2b68b7[_0x431a3d(0xd9)]((_0x2a64f2+'/'+_0x26e6a8+'/controller/')['length'])['split']('/')[_0x431a3d(0xdd)](_0x4ed77f=>_0x4ed77f&&_0x4ed77f[_0x431a3d(0x11a)]());return _0x5e9e50[_0x431a3d(0x11d)]>0x1&&(_0x4eed5d[_0x431a3d(0xde)]=_0x5e9e50[0x0][_0x431a3d(0xf1)](),_0x5e9e50['splice'](0x0,0x1)),_0x4eed5d[_0x431a3d(0x114)]=_0x26e6a8,_0x4eed5d[_0x431a3d(0x11c)]=('/'+_0x26e6a8+'/'+_0x5e9e50[_0x431a3d(0xfb)]('/'))[_0x431a3d(0xed)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x431a3d(0xf6)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x431a3d(0xf1)]()[_0x431a3d(0xed)](/\/\-/g,'/'),_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0x117)](_0x431a3d(0xdb))&&(_0x4eed5d['route']=_0x4eed5d['route'][_0x431a3d(0xd9)](0x0,_0x4eed5d[_0x431a3d(0x11c)]['length']-0x7)),_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0x117)](_0x431a3d(0xfc))&&(_0x4eed5d[_0x431a3d(0x11c)]=_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0xd9)](0x0,_0x4eed5d[_0x431a3d(0x11c)][_0x431a3d(0x11d)]-0xb)),_0x4eed5d;}throw new Error(_0x2b68b7+'\x20文件请放在apps/'+_0x26e6a8+_0x431a3d(0xdf));}}throw new Error(_0x2b68b7+'\x20文件请放在app/controller/文件下');}function a4_0x54da(){const _0x4e7a12=['attachClassMetadata','values','basic/controller/','MIDWAY_SERVER_ENV','parseRoute','validate','substring','/config.','-action','apply','filter','prefix','/controller/文件下','2483376NcAcfP','middleware','defaultsDeep','5370708tlcPaL','post','__esModule','description','Controller','isArray','29297061LMVAYg','undefined','4275831lApovD','saveModule','replace','ACTION_KEY','createCustomMethodDecorator','ACTION_ROUTE_KEY','toLowerCase','validationOptions','/config.default.','toString','RequestMapping','match','5jEyWpe','943266hXKJdd','indexOf','240744IFUvkJ','join','-controller','6hGkdQY','assign','rootpath','APPSCONFIG_KEY','intercept','push','cwd','keys','apps/','/apps/','search','getClassMetadata','app/controller/','filepath','string','startsWith','Validator','apimit','tagName','existsSync','@midwayjs/core','routerName','5916798iEFzbe','module','constructor','/apps','endsWith','middlewareIgnore','get','trim','split','route','length','../types/action','(((.+)+)+)+$','saveClassMetadata'];a4_0x54da=function(){return _0x4e7a12;};return a4_0x54da();}const moduleConfigTmp=(0x0,core_1[a4_0x4ad38e(0x108)])(action_1[a4_0x4ad38e(0x100)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x4c4144,_0x4dbf80,_0x148613){const _0x36feb2=a4_0x4ad38e;if(Object[_0x36feb2(0xd4)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x4dbf80])||{})[_0x36feb2(0x11d)]==0x0){let _0x479272={};if(NODE_ENV&&fs[_0x36feb2(0x110)](_0x4c4144+'/'+_0x4dbf80+'/config.'+NODE_ENV+'.'+_0x148613)){const _0x3b1a48=include(_0x4c4144+'/'+_0x4dbf80+_0x36feb2(0xda)+NODE_ENV+'.'+_0x148613);Object[_0x36feb2(0x104)](_0x3b1a48)[_0x36feb2(0x11d)]>0x0&&(_0x479272=lodash[_0x36feb2(0xe2)](_0x479272,_0x3b1a48));}if(fs[_0x36feb2(0x110)](_0x4c4144+'/'+_0x4dbf80+_0x36feb2(0xf3)+_0x148613)){const _0x2bac5a=include(_0x4c4144+'/'+_0x4dbf80+'/config.default.'+_0x148613);Object[_0x36feb2(0x104)](_0x2bac5a)['length']>0x0&&(_0x479272=lodash[_0x36feb2(0xe2)](_0x479272,_0x2bac5a));}if(fs[_0x36feb2(0x110)](_0x4c4144+'/'+_0x4dbf80+'/config.'+_0x148613)){const _0x33b7b5=include(_0x4c4144+'/'+_0x4dbf80+_0x36feb2(0xda)+_0x148613);Object[_0x36feb2(0x104)](_0x33b7b5)[_0x36feb2(0x11d)]>0x0&&(_0x479272=lodash[_0x36feb2(0xe2)](_0x479272,_0x33b7b5));}moduleConfigTmp[_0x4dbf80]=_0x479272,(0x0,core_1['saveClassMetadata'])(action_1[_0x36feb2(0x100)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x4dbf80];}
|
|
1
|
+
const a4_0x30fbe0=a4_0x2137;(function(_0x172854,_0x13aaa3){const _0x4388d4=a4_0x2137,_0x3cd247=_0x172854();while(!![]){try{const _0x57b873=-parseInt(_0x4388d4(0x76))/0x1*(-parseInt(_0x4388d4(0xba))/0x2)+-parseInt(_0x4388d4(0x9e))/0x3+-parseInt(_0x4388d4(0x91))/0x4+-parseInt(_0x4388d4(0x95))/0x5*(-parseInt(_0x4388d4(0x8e))/0x6)+parseInt(_0x4388d4(0xca))/0x7+parseInt(_0x4388d4(0xb1))/0x8+parseInt(_0x4388d4(0xc5))/0x9;if(_0x57b873===_0x13aaa3)break;else _0x3cd247['push'](_0x3cd247['shift']());}catch(_0x5cd474){_0x3cd247['push'](_0x3cd247['shift']());}}}(a4_0x57e1,0x8cfd2));const a4_0x2ad9f5=(function(){let _0x50e8ef=!![];return function(_0xf8aee3,_0x31ec82){const _0x202ab6=_0x50e8ef?function(){const _0x43f6d6=a4_0x2137;if(_0x31ec82){const _0x3f093a=_0x31ec82[_0x43f6d6(0x8a)](_0xf8aee3,arguments);return _0x31ec82=null,_0x3f093a;}}:function(){};return _0x50e8ef=![],_0x202ab6;};}()),a4_0x3eda53=a4_0x2ad9f5(this,function(){const _0x33f5c2=a4_0x2137;return a4_0x3eda53[_0x33f5c2(0x8d)]()[_0x33f5c2(0xc0)](_0x33f5c2(0xae))[_0x33f5c2(0x8d)]()[_0x33f5c2(0x92)](a4_0x3eda53)[_0x33f5c2(0xc0)](_0x33f5c2(0xae));});a4_0x3eda53();'use strict';var _a,_b;Object[a4_0x30fbe0(0x9d)](exports,a4_0x30fbe0(0x99),{'value':!![]}),exports[a4_0x30fbe0(0xc7)]=Action,exports[a4_0x30fbe0(0xa5)]=ActionApi,exports[a4_0x30fbe0(0x86)]=parseRoute;function a4_0x2137(_0x3e02d1,_0x196c15){const _0x149a1c=a4_0x57e1();return a4_0x2137=function(_0x3eda53,_0x2ad9f5){_0x3eda53=_0x3eda53-0x75;let _0x57e120=_0x149a1c[_0x3eda53];return _0x57e120;},a4_0x2137(_0x3e02d1,_0x196c15);}const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a4_0x30fbe0(0xc2)),core_2=require('@midwayjs/core'),action_1=require(a4_0x30fbe0(0x7b)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x30fbe0(0xc8)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x30fbe0(0xc8)])===null||_b===void 0x0?void 0x0:_b[a4_0x30fbe0(0x87)]);function Action(_0x4813f8,_0x2b992b,_0x5a1454={'middleware':[],'sensitive':!![]}){return _0x4f87f6=>{const _0x448d3c=a4_0x2137;var _0x11b7fe;_0x5a1454[_0x448d3c(0xbf)]=_0x2b992b;const _0xf594b4=parseRoute(_0x4813f8);if(_0xf594b4['module']){_0x5a1454['prefix']=_0x5a1454['prefix']?'/'+_0xf594b4[_0x448d3c(0x88)]+'/'+_0x5a1454[_0x448d3c(0xa1)]:'/'+_0xf594b4[_0x448d3c(0x7d)];_0xf594b4[_0x448d3c(0xa1)]&&(_0x5a1454[_0x448d3c(0xa1)]='/'+_0xf594b4['prefix']+'/'+_0x5a1454[_0x448d3c(0xa1)]);_0x5a1454[_0x448d3c(0xa1)]=_0x5a1454[_0x448d3c(0xa1)][_0x448d3c(0xb5)]()[_0x448d3c(0xa9)](/\/{2,}/g,'/');const _0x22a247=getModuleConfig(_0xf594b4[_0x448d3c(0x93)]+_0x448d3c(0x98),_0xf594b4[_0x448d3c(0x88)],lodash['endsWith'](_0xf594b4[_0x448d3c(0x77)],'ts')?'ts':'js');if(lodash[_0x448d3c(0x8f)](_0x22a247[_0x448d3c(0xc1)])&&_0x22a247['middleware'][_0x448d3c(0xc9)]>0x0)for(let _0x4b9a1a in _0x22a247[_0x448d3c(0xc1)]){if(((_0x11b7fe=_0x22a247===null||_0x22a247===void 0x0?void 0x0:_0x22a247[_0x448d3c(0xa4)])===null||_0x11b7fe===void 0x0?void 0x0:_0x11b7fe[_0x448d3c(0xc9)])>0x0&&_0x22a247['middlewareIgnore']['indexOf'](_0x22a247[_0x448d3c(0xc1)][_0x4b9a1a])!=-0x1)continue;_0x5a1454[_0x448d3c(0xc1)][_0x448d3c(0x94)](_0x22a247['middleware'][_0x4b9a1a]);}(0x0,core_1[_0x448d3c(0xb8)])(action_1['ACTION_KEY'],_0x4f87f6),(0x0,core_1[_0x448d3c(0x79)])(_0x5a1454[_0x448d3c(0xa1)],_0x5a1454)(_0x4f87f6),(0x0,core_1['saveClassMetadata'])(action_1[_0x448d3c(0x83)],{'prefix':_0x5a1454[_0x448d3c(0xa1)],'pprefix':_0xf594b4['prefix'],'module':_0xf594b4[_0x448d3c(0x88)],'filepath':_0xf594b4[_0x448d3c(0x77)],'routerOptions':_0x5a1454},_0x4f87f6);}else _0x5a1454[_0x448d3c(0xa1)]=_0x5a1454[_0x448d3c(0xa1)]?'/'+_0x5a1454[_0x448d3c(0xa1)]:'/'+_0xf594b4[_0x448d3c(0x7d)],_0xf594b4[_0x448d3c(0xa1)]&&(_0x5a1454[_0x448d3c(0xa1)]='/'+_0xf594b4[_0x448d3c(0xa1)]+'/'+_0x5a1454[_0x448d3c(0xa1)]),_0x5a1454[_0x448d3c(0xa1)]=_0x5a1454[_0x448d3c(0xa1)][_0x448d3c(0xb5)]()[_0x448d3c(0xa9)](/\/{2,}/g,'/'),(0x0,core_1[_0x448d3c(0xb8)])(action_1['ACTION_KEY'],_0x4f87f6),(0x0,core_1[_0x448d3c(0x79)])(_0x5a1454['prefix'],_0x5a1454)(_0x4f87f6),(0x0,core_1['saveClassMetadata'])(action_1[_0x448d3c(0x83)],{'prefix':_0x5a1454[_0x448d3c(0xa1)],'module':_0xf594b4[_0x448d3c(0x88)],'pprefix':_0xf594b4[_0x448d3c(0xa1)],'filepath':_0xf594b4[_0x448d3c(0x77)],'routerOptions':_0x5a1454},_0x4f87f6);};}function a4_0x57e1(){const _0x43c5d5=['(((.+)+)+)+$','-controller','getClassMetadata','9075288OCsndb','split','Validator','assign','toLowerCase','match','ACTION_ROUTE_KEY','saveModule','apimit','2mkmoAt','APPSCONFIG_KEY','indexOf','splice','get','tagName','search','middleware','@midwayjs/core','cwd','join','4823856tDrOuX','values','Action','env','length','432096MMLjQA','keys','257206nlCHvV','filepath','description','Controller','validate','../types/action','post','route','/config.default.','intercept','undefined','basic/controller/','attachClassMetadata','ACTION_KEY','\x20文件请放在app/controller/文件下','validationOptions','parseRoute','NODE_ENV','module','endsWith','apply','filter','saveClassMetadata','toString','8346nonTFr','isArray','/config.','2743140nZVCbR','constructor','rootpath','push','1465mXiGpR','AppsConfigTmp','apps/','/apps','__esModule','routerName','/apps/','/controller/文件下','defineProperty','3400851ITNCOh','trim','substring','prefix','defaultsDeep','string','middlewareIgnore','ActionApi','RequestMapping','app/controller/','\x20文件请放在apps/','replace','startsWith','existsSync','/controller/','-action'];a4_0x57e1=function(){return _0x43c5d5;};return a4_0x57e1();}Action[a4_0x30fbe0(0xbe)]=function(_0x195734,_0x267f90='/',_0x1c3a80={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xf7ded7,_0x2c12fc,_0xcc3935)=>{const _0x3bce06=a4_0x2137;ActionApi(_0x195734,_0x3bce06(0xbe),_0x267f90,_0x1c3a80)(_0xf7ded7,_0x2c12fc,_0xcc3935);};},Action[a4_0x30fbe0(0x7c)]=function(_0x31a7a9,_0x2a878b='/',_0x3cafe5={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xaa91b7,_0x53a3b7,_0x1a7819)=>{const _0xa0bc86=a4_0x2137;ActionApi(_0x31a7a9,_0xa0bc86(0x7c),_0x2a878b,_0x3cafe5)(_0xaa91b7,_0x53a3b7,_0x1a7819);};};function ActionApi(_0x1b0e29,_0x45ab4b=a4_0x30fbe0(0xbe),_0x5b1d29='/',_0x4662b8={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x9f31e2,_0x55ba28,_0x2fc50a)=>{const _0x202692=a4_0x2137;var _0x15a136,_0x393d63,_0x55156e;!_0x4662b8[_0x202692(0xc1)]&&(_0x4662b8[_0x202692(0xc1)]=[]);!((_0x15a136=_0x4662b8===null||_0x4662b8===void 0x0?void 0x0:_0x4662b8[_0x202692(0x7a)])===null||_0x15a136===void 0x0?void 0x0:_0x15a136[_0x202692(0x85)])&&(_0x4662b8[_0x202692(0x7a)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x202692(0xa3)}});if(!_0x5b1d29)_0x5b1d29='/';else typeof _0x5b1d29==_0x202692(0xa3)&&(!_0x5b1d29['startsWith']('/')&&!_0x5b1d29[_0x202692(0xaa)]('-')&&(_0x5b1d29='/'+_0x5b1d29));typeof _0x4662b8[_0x202692(0xb9)]==_0x202692(0x80)&&(_0x4662b8[_0x202692(0xb9)]=!![]);if(((_0x393d63=_0x4662b8===null||_0x4662b8===void 0x0?void 0x0:_0x4662b8[_0x202692(0xc1)])===null||_0x393d63===void 0x0?void 0x0:_0x393d63['length'])>0x0&&((_0x55156e=_0x4662b8===null||_0x4662b8===void 0x0?void 0x0:_0x4662b8['middlewareIgnore'])===null||_0x55156e===void 0x0?void 0x0:_0x55156e[_0x202692(0xc9)])>0x0)for(let _0x563c7a in _0x4662b8[_0x202692(0xc1)]){_0x4662b8[_0x202692(0xa4)]['indexOf'](_0x4662b8[_0x202692(0xc1)][_0x563c7a])!==-0x1&&(_0x4662b8[_0x202692(0xc1)][_0x563c7a]=null);}_0x4662b8['routerName']=_0x1b0e29,(0x0,validator_1[_0x202692(0xb3)])(_0x4662b8[_0x202692(0x7a)])(_0x9f31e2,_0x55ba28,_0x2fc50a),(0x0,core_2[_0x202692(0xa6)])(Object[_0x202692(0xb4)](_0x4662b8,{'path':_0x5b1d29,'requestMethod':(_0x45ab4b||_0x202692(0xbe))[_0x202692(0xb5)]()}))(_0x9f31e2,_0x55ba28,_0x2fc50a),(0x0,core_2[_0x202692(0x82)])(action_1[_0x202692(0xb7)],{'path':_0x5b1d29,'method':_0x55ba28,'apimit':_0x4662b8[_0x202692(0xb9)],'intercept':_0x4662b8[_0x202692(0x7f)],'routerName':_0x4662b8[_0x202692(0x9a)],'description':_0x4662b8[_0x202692(0x78)],'middleware':(_0x4662b8[_0x202692(0xc1)]||[])[_0x202692(0x8b)](_0x2da7e0=>!!_0x2da7e0),'requestMethod':(_0x45ab4b||'get')[_0x202692(0xb5)]()},_0x9f31e2),(0x0,core_2['createCustomMethodDecorator'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x5b1d29,'method':_0x55ba28,'apimit':_0x4662b8[_0x202692(0xb9)],'intercept':_0x4662b8[_0x202692(0x7f)],'routerName':_0x4662b8[_0x202692(0x9a)],'description':_0x4662b8[_0x202692(0x78)],'middleware':(_0x4662b8[_0x202692(0xc1)]||[])[_0x202692(0x8b)](_0x3eaa35=>!!_0x3eaa35),'requestMethod':(_0x45ab4b||_0x202692(0xbe))['toLowerCase']()})(_0x9f31e2,_0x55ba28,_0x2fc50a);};}function parseRoute(_0x24e84d){const _0x36ab81=a4_0x30fbe0;_0x24e84d=_0x24e84d[_0x36ab81(0xa9)](/(\\|\/)/g,'/');const _0xdf10fc=process[_0x36ab81(0xc3)]()[_0x36ab81(0xa9)](/(\\|\/)/g,'/'),_0x562750=_0x24e84d[_0x36ab81(0xa0)](0x0,_0xdf10fc[_0x36ab81(0xc9)]+_0x24e84d['substring'](_0xdf10fc[_0x36ab81(0xc9)]+0x1)[_0x36ab81(0xbc)]('/')+0x1),_0x22f39b=_0x24e84d[_0x36ab81(0xa0)](_0x562750[_0x36ab81(0xc9)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x5da802={'route':'','prefix':![],'module':![],'rootpath':_0x562750,'filepath':_0x22f39b};if(_0x22f39b['startsWith'](_0x36ab81(0xa7))||_0x22f39b[_0x36ab81(0xaa)](_0x36ab81(0x81))){const _0x50fc72=_0x22f39b['substring']((_0x22f39b[_0x36ab81(0xaa)](_0x36ab81(0xa7))?_0x36ab81(0xa7):_0x36ab81(0x81))['length'])[_0x36ab81(0xb2)]('/')[_0x36ab81(0x8b)](_0x3bf6c2=>_0x3bf6c2&&_0x3bf6c2[_0x36ab81(0x9f)]());return _0x50fc72['length']>0x1&&(_0x5da802[_0x36ab81(0xa1)]=_0x50fc72[0x0][_0x36ab81(0xb5)](),_0x50fc72[_0x36ab81(0xbd)](0x0,0x1)),_0x5da802[_0x36ab81(0x7d)]=('/'+_0x50fc72[_0x36ab81(0xc4)]('/'))[_0x36ab81(0xa9)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x36ab81(0xb6)](/[\/|A-Z]*[^A-Z]+/g)[_0x36ab81(0xc4)]('-')[_0x36ab81(0xb5)]()['replace'](/\/\-/g,'/'),_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0x89)](_0x36ab81(0xad))&&(_0x5da802[_0x36ab81(0x7d)]=_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xa0)](0x0,_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xc9)]-0x7)),_0x5da802['route']['endsWith'](_0x36ab81(0xaf))&&(_0x5da802['route']=_0x5da802['route'][_0x36ab81(0xa0)](0x0,_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xc9)]-0xb)),_0x5da802;}else{if(_0x22f39b[_0x36ab81(0xaa)](_0x36ab81(0x97))){const _0x1d77cd=_0x22f39b[_0x36ab81(0xa0)](0x0,_0x22f39b[_0x36ab81(0xbc)](_0x36ab81(0x9b))+0x5),_0x40c776=_0x22f39b['substring'](_0x1d77cd[_0x36ab81(0xc9)]+0x1)[_0x36ab81(0xa9)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x22f39b[_0x36ab81(0xaa)](_0x36ab81(0x97)+_0x40c776+_0x36ab81(0xac))){const _0x1678c8=_0x22f39b[_0x36ab81(0xa0)]((_0x1d77cd+'/'+_0x40c776+_0x36ab81(0xac))[_0x36ab81(0xc9)])[_0x36ab81(0xb2)]('/')['filter'](_0x52d01e=>_0x52d01e&&_0x52d01e[_0x36ab81(0x9f)]());return _0x1678c8[_0x36ab81(0xc9)]>0x1&&(_0x5da802[_0x36ab81(0xa1)]=_0x1678c8[0x0][_0x36ab81(0xb5)](),_0x1678c8[_0x36ab81(0xbd)](0x0,0x1)),_0x5da802[_0x36ab81(0x88)]=_0x40c776,_0x5da802['route']=('/'+_0x40c776+'/'+_0x1678c8[_0x36ab81(0xc4)]('/'))[_0x36ab81(0xa9)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x36ab81(0xb6)](/[\/|A-Z]*[^A-Z]+/g)[_0x36ab81(0xc4)]('-')['toLowerCase']()[_0x36ab81(0xa9)](/\/\-/g,'/'),_0x5da802['route'][_0x36ab81(0x89)](_0x36ab81(0xad))&&(_0x5da802['route']=_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xa0)](0x0,_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xc9)]-0x7)),_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0x89)](_0x36ab81(0xaf))&&(_0x5da802[_0x36ab81(0x7d)]=_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xa0)](0x0,_0x5da802[_0x36ab81(0x7d)][_0x36ab81(0xc9)]-0xb)),_0x5da802;}throw new Error(_0x22f39b+_0x36ab81(0xa8)+_0x40c776+_0x36ab81(0x9c));}}throw new Error(_0x22f39b+_0x36ab81(0x84));}const moduleConfigTmp=(0x0,core_1[a4_0x30fbe0(0xb0)])(action_1['APPSCONFIG_KEY'],action_1[a4_0x30fbe0(0x96)])||{};function getModuleConfig(_0x14c877,_0x5875f3,_0x1d97e7){const _0x417ae3=a4_0x30fbe0;if(Object[_0x417ae3(0xc6)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x5875f3])||{})[_0x417ae3(0xc9)]==0x0){let _0x52c0e2={};if(NODE_ENV&&fs[_0x417ae3(0xab)](_0x14c877+'/'+_0x5875f3+_0x417ae3(0x90)+NODE_ENV+'.'+_0x1d97e7)){const _0x30b679=include(_0x14c877+'/'+_0x5875f3+_0x417ae3(0x90)+NODE_ENV+'.'+_0x1d97e7);Object['keys'](_0x30b679)[_0x417ae3(0xc9)]>0x0&&(_0x52c0e2=lodash[_0x417ae3(0xa2)](_0x52c0e2,_0x30b679));}if(fs['existsSync'](_0x14c877+'/'+_0x5875f3+'/config.default.'+_0x1d97e7)){const _0x56f3ab=include(_0x14c877+'/'+_0x5875f3+_0x417ae3(0x7e)+_0x1d97e7);Object[_0x417ae3(0x75)](_0x56f3ab)[_0x417ae3(0xc9)]>0x0&&(_0x52c0e2=lodash[_0x417ae3(0xa2)](_0x52c0e2,_0x56f3ab));}if(fs[_0x417ae3(0xab)](_0x14c877+'/'+_0x5875f3+_0x417ae3(0x90)+_0x1d97e7)){const _0x24c198=include(_0x14c877+'/'+_0x5875f3+_0x417ae3(0x90)+_0x1d97e7);Object['keys'](_0x24c198)[_0x417ae3(0xc9)]>0x0&&(_0x52c0e2=lodash[_0x417ae3(0xa2)](_0x52c0e2,_0x24c198));}moduleConfigTmp[_0x5875f3]=_0x52c0e2,(0x0,core_1[_0x417ae3(0x8c)])(action_1[_0x417ae3(0xbb)],moduleConfigTmp,action_1[_0x417ae3(0x96)]);}return moduleConfigTmp[_0x5875f3];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x4eae1d=a5_0x1928;(function(_0x54b5e1,_0x4cc46d){const _0xceb084=a5_0x1928,_0x327e09=_0x54b5e1();while(!![]){try{const _0x29eaf5=parseInt(_0xceb084(0x102))/0x1+parseInt(_0xceb084(0x10b))/0x2+parseInt(_0xceb084(0x10e))/0x3+parseInt(_0xceb084(0x111))/0x4+parseInt(_0xceb084(0x10a))/0x5*(parseInt(_0xceb084(0x113))/0x6)+parseInt(_0xceb084(0x114))/0x7+-parseInt(_0xceb084(0x104))/0x8;if(_0x29eaf5===_0x4cc46d)break;else _0x327e09['push'](_0x327e09['shift']());}catch(_0x22fb7b){_0x327e09['push'](_0x327e09['shift']());}}}(a5_0x186d,0x54512));function a5_0x1928(_0x10279a,_0x275beb){const _0x300d58=a5_0x186d();return a5_0x1928=function(_0x3b1966,_0x493db2){_0x3b1966=_0x3b1966-0x102;let _0x186dbb=_0x300d58[_0x3b1966];return _0x186dbb;},a5_0x1928(_0x10279a,_0x275beb);}const a5_0x493db2=(function(){let _0x202ab9=!![];return function(_0x37dd8d,_0x4c72fe){const _0x2af1b8=_0x202ab9?function(){if(_0x4c72fe){const _0x552278=_0x4c72fe['apply'](_0x37dd8d,arguments);return _0x4c72fe=null,_0x552278;}}:function(){};return _0x202ab9=![],_0x2af1b8;};}()),a5_0x3b1966=a5_0x493db2(this,function(){const _0x19981c=a5_0x1928;return a5_0x3b1966[_0x19981c(0x108)]()[_0x19981c(0x103)]('(((.+)+)+)+$')[_0x19981c(0x108)]()['constructor'](a5_0x3b1966)[_0x19981c(0x103)](_0x19981c(0x110));});a5_0x3b1966();'use strict';Object[a5_0x4eae1d(0x106)](exports,a5_0x4eae1d(0x116),{'value':!![]}),exports['Apitest']=Apitest;const core_1=require(a5_0x4eae1d(0x107)),ApitestService_1=require('../service/ApitestService');function a5_0x186d(){const _0x421e3f=['/apitest','(((.+)+)+)+$','1129056xXxjgK','apidoc','1762710NDtRas','1352204PpxsiX','apitest','__esModule','getConfig','getAsync','getApplicationContext','113685kNzdhg','search','7231232ThTKdX','value','defineProperty','@midwayjs/core','toString','filepath','5LGNOYQ','106288ZiFVid','MidwayEnvironmentService','isDevelopmentEnvironment','939648aqzzlo'];a5_0x186d=function(){return _0x421e3f;};return a5_0x186d();}function Apitest(_0x511f8d=a5_0x4eae1d(0x10f),_0x560b76){return(_0x10f98b,_0x26a32a,_0xfb2678)=>{const _0x2cbd53=a5_0x1928;return(0x0,core_1['RequestMapping'])({'path':_0x511f8d,'requestMethod':'get'})(_0x10f98b,_0x26a32a,_0xfb2678),_0xfb2678[_0x2cbd53(0x105)]=async function(..._0x17d4d0){const _0xf822e=_0x2cbd53;var _0x31e94f;const _0x48f658=(_0x31e94f=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x31e94f===void 0x0?void 0x0:_0x31e94f['app'];if(_0x48f658&&_0x48f658[_0xf822e(0x117)](_0xf822e(0x115))){const _0xd91952=await _0x48f658[_0xf822e(0x119)]()[_0xf822e(0x118)](ApitestService_1['ApitestService']),_0x41d01a=await _0x48f658[_0xf822e(0x119)]()[_0xf822e(0x118)](core_1[_0xf822e(0x10c)]);return _0x41d01a[_0xf822e(0x10d)]()&&(_0x560b76[_0xf822e(0x109)]=!![]),await _0xd91952[_0xf822e(0x112)](_0x560b76);}return'';},_0xfb2678;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6_0x4e53f4=a6_0x35bb;(function(_0x352630,_0x8f78a9){const _0x33b4a3=a6_0x35bb,_0xeb9d9a=_0x352630();while(!![]){try{const _0x2f67a2=-parseInt(_0x33b4a3(0xac))/0x1+-parseInt(_0x33b4a3(0xc2))/0x2+parseInt(_0x33b4a3(0xaf))/0x3*(parseInt(_0x33b4a3(0xab))/0x4)+-parseInt(_0x33b4a3(0xbf))/0x5*(-parseInt(_0x33b4a3(0xba))/0x6)+-parseInt(_0x33b4a3(0xb3))/0x7+-parseInt(_0x33b4a3(0xad))/0x8+parseInt(_0x33b4a3(0xc3))/0x9*(-parseInt(_0x33b4a3(0xb4))/0xa);if(_0x2f67a2===_0x8f78a9)break;else _0xeb9d9a['push'](_0xeb9d9a['shift']());}catch(_0x3d125c){_0xeb9d9a['push'](_0xeb9d9a['shift']());}}}(a6_0x855b,0x51b03));const a6_0x9de1f9=(function(){let _0x483de2=!![];return function(_0x1a9140,_0x170f5c){const _0x2efe4a=_0x483de2?function(){if(_0x170f5c){const _0x1fdda1=_0x170f5c['apply'](_0x1a9140,arguments);return _0x170f5c=null,_0x1fdda1;}}:function(){};return _0x483de2=![],_0x2efe4a;};}()),a6_0x52f683=a6_0x9de1f9(this,function(){const _0xb90d09=a6_0x35bb;return a6_0x52f683['toString']()[_0xb90d09(0xb8)](_0xb90d09(0xb0))['toString']()['constructor'](a6_0x52f683)[_0xb90d09(0xb8)](_0xb90d09(0xb0));});a6_0x52f683();'use strict';Object[a6_0x4e53f4(0xb2)](exports,'__esModule',{'value':!![]}),exports['IIntercept']=void 0x0,exports[a6_0x4e53f4(0xb1)]=Intercept;const core_1=require(a6_0x4e53f4(0xc1)),intercept_1=require(a6_0x4e53f4(0xb7));function Intercept(_0x4576a6){return _0x260d5b=>{const _0x1eebf6=a6_0x35bb,_0x47f3b2=(0x0,core_1[_0x1eebf6(0xbb)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x1eebf6(0xbd)])||{};for(let _0x3aad6c of Array['isArray'](_0x4576a6)?_0x4576a6:[_0x4576a6]){_0x3aad6c=_0x3aad6c[_0x1eebf6(0xb9)]();!(_0x47f3b2===null||_0x47f3b2===void 0x0?void 0x0:_0x47f3b2[_0x3aad6c])&&(_0x47f3b2[_0x3aad6c]=[]);if(_0x47f3b2[_0x3aad6c][_0x1eebf6(0xbe)](_0x260d5b))continue;_0x47f3b2[_0x3aad6c][_0x1eebf6(0xae)](_0x260d5b);}(0x0,core_1['Provide'])()(_0x260d5b),(0x0,core_1['Scope'])(core_1[_0x1eebf6(0xbc)][_0x1eebf6(0xb6)])(_0x260d5b),(0x0,core_1['saveClassMetadata'])(intercept_1[_0x1eebf6(0xc0)],_0x47f3b2,intercept_1['InterceptTargetTmp']);};}class IIntercept{async[a6_0x4e53f4(0xb5)](_0x15d61a,_0x1cfc1b,_0xa23004){return!![];}}function a6_0x855b(){const _0x3cb6eb=['Intercept','defineProperty','3051566dImwUp','1878310BHxhKP','match','Singleton','../types/intercept','search','toUpperCase','12hCogyT','getClassMetadata','ScopeEnum','InterceptTargetTmp','includes','1450025ybFvCw','INTERCEPT_KEY','@midwayjs/core','90756zAemQb','9sfZcYb','IIntercept','92qTFiVJ','107078SPwsaM','245880yfZBUM','push','73245lUCkpo','(((.+)+)+)+$'];a6_0x855b=function(){return _0x3cb6eb;};return a6_0x855b();}function a6_0x35bb(_0x1ee900,_0x9f13b8){const _0x4027d2=a6_0x855b();return a6_0x35bb=function(_0x52f683,_0x9de1f9){_0x52f683=_0x52f683-0xab;let _0x855b7b=_0x4027d2[_0x52f683];return _0x855b7b;},a6_0x35bb(_0x1ee900,_0x9f13b8);}exports[a6_0x4e53f4(0xc4)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a7_0x4e06(_0x253327,_0x5ed1f8){var _0xcababb=a7_0x9920();return a7_0x4e06=function(_0xfd11b0,_0x60e39a){_0xfd11b0=_0xfd11b0-0xb1;var _0x9920a5=_0xcababb[_0xfd11b0];return _0x9920a5;},a7_0x4e06(_0x253327,_0x5ed1f8);}function a7_0x9920(){var _0x504d18=['请使用正确的设备','toString','search','metadata','859160ezHpSF','510736YPgNaa','请求超时,请重试','209tflEGZ','验证失败,请重新登录','signature验证失败','登录超时,请重新登录','203NHytTX','HEADERS_LACK','length','object','HEADERS_SIGNATURE','TIMEOUT','请求头信息不完整','TIMEOUT_LOGINTIME','constructor','6321834KOmuiT','getOwnPropertyDescriptor','HEADERS_DEVICE','3624784yxmSZW','(((.+)+)+)+$','design:type','854QkhWOX','55698CKCqKq','HEADERS_CHECKCODE','decorate','1665580UQKhpi','apply','__decorate','function','defineProperty','18JEjrAu'];a7_0x9920=function(){return _0x504d18;};return a7_0x9920();}var a7_0x2d4f17=a7_0x4e06;(function(_0x33a07b,_0x1252fb){var _0x2ad877=a7_0x4e06,_0x1b145b=_0x33a07b();while(!![]){try{var _0x266bf7=parseInt(_0x2ad877(0xcf))/0x1*(-parseInt(_0x2ad877(0xbe))/0x2)+parseInt(_0x2ad877(0xc7))/0x3*(parseInt(_0x2ad877(0xcd))/0x4)+parseInt(_0x2ad877(0xc2))/0x5+-parseInt(_0x2ad877(0xbf))/0x6*(parseInt(_0x2ad877(0xd3))/0x7)+parseInt(_0x2ad877(0xbb))/0x8+-parseInt(_0x2ad877(0xb8))/0x9+-parseInt(_0x2ad877(0xcc))/0xa;if(_0x266bf7===_0x1252fb)break;else _0x1b145b['push'](_0x1b145b['shift']());}catch(_0x4fb8b0){_0x1b145b['push'](_0x1b145b['shift']());}}}(a7_0x9920,0x63016));var a7_0x60e39a=(function(){var _0x2977f2=!![];return function(_0x1b7ece,_0x291ce6){var _0x9b1cb5=_0x2977f2?function(){var _0x109acc=a7_0x4e06;if(_0x291ce6){var _0x55e831=_0x291ce6[_0x109acc(0xc3)](_0x1b7ece,arguments);return _0x291ce6=null,_0x55e831;}}:function(){};return _0x2977f2=![],_0x9b1cb5;};}()),a7_0xfd11b0=a7_0x60e39a(this,function(){var _0x2165ee=a7_0x4e06;return a7_0xfd11b0[_0x2165ee(0xc9)]()[_0x2165ee(0xca)](_0x2165ee(0xbc))['toString']()[_0x2165ee(0xb7)](a7_0xfd11b0)[_0x2165ee(0xca)](_0x2165ee(0xbc));});a7_0xfd11b0();'use strict';var __decorate=this&&this[a7_0x2d4f17(0xc4)]||function(_0x44eebb,_0x47ed47,_0x36fc99,_0x207c81){var _0x4116bc=a7_0x2d4f17,_0x1c7e0e=arguments[_0x4116bc(0xb1)],_0x55672d=_0x1c7e0e<0x3?_0x47ed47:_0x207c81===null?_0x207c81=Object[_0x4116bc(0xb9)](_0x47ed47,_0x36fc99):_0x207c81,_0x394516;if(typeof Reflect==='object'&&typeof Reflect[_0x4116bc(0xc1)]===_0x4116bc(0xc5))_0x55672d=Reflect['decorate'](_0x44eebb,_0x47ed47,_0x36fc99,_0x207c81);else{for(var _0x4f7016=_0x44eebb['length']-0x1;_0x4f7016>=0x0;_0x4f7016--)if(_0x394516=_0x44eebb[_0x4f7016])_0x55672d=(_0x1c7e0e<0x3?_0x394516(_0x55672d):_0x1c7e0e>0x3?_0x394516(_0x47ed47,_0x36fc99,_0x55672d):_0x394516(_0x47ed47,_0x36fc99))||_0x55672d;}return _0x1c7e0e>0x3&&_0x55672d&&Object[_0x4116bc(0xc6)](_0x47ed47,_0x36fc99,_0x55672d),_0x55672d;},__metadata=this&&this['__metadata']||function(_0x43c7e3,_0xa3b6fc){var _0x43790e=a7_0x2d4f17;if(typeof Reflect===_0x43790e(0xb2)&&typeof Reflect['metadata']===_0x43790e(0xc5))return Reflect[_0x43790e(0xcb)](_0x43c7e3,_0xa3b6fc);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}exports['ApiError']=ApiError,ApiError[a7_0x2d4f17(0xb4)]=0x19003,ApiError[a7_0x2d4f17(0xd4)]=0x18e72,ApiError[a7_0x2d4f17(0xba)]=0x18e73,ApiError[a7_0x2d4f17(0xb3)]=0x18e74,ApiError[a7_0x2d4f17(0xc0)]=0x18e75,ApiError[a7_0x2d4f17(0xb6)]=0x18e76,__decorate([AnnErrorMsg(a7_0x2d4f17(0xce)),__metadata('design:type',Object)],ApiError,a7_0x2d4f17(0xb4),void 0x0),__decorate([AnnErrorMsg(a7_0x2d4f17(0xb5)),__metadata(a7_0x2d4f17(0xbd),Object)],ApiError,a7_0x2d4f17(0xd4),void 0x0),__decorate([AnnErrorMsg(a7_0x2d4f17(0xc8)),__metadata(a7_0x2d4f17(0xbd),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a7_0x2d4f17(0xd1)),__metadata(a7_0x2d4f17(0xbd),Object)],ApiError,a7_0x2d4f17(0xb3),void 0x0),__decorate([AnnErrorMsg(a7_0x2d4f17(0xd0)),__metadata('design:type',Object)],ApiError,a7_0x2d4f17(0xc0),void 0x0),__decorate([AnnErrorMsg(a7_0x2d4f17(0xd2)),__metadata(a7_0x2d4f17(0xbd),Object)],ApiError,a7_0x2d4f17(0xb6),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x3c6fc0=a8_0x2fb2;(function(_0x5d08a3,_0x3d75f5){const _0x15563d=a8_0x2fb2,_0x20dd43=_0x5d08a3();while(!![]){try{const _0x39f37e=parseInt(_0x15563d(0xc6))/0x1+parseInt(_0x15563d(0xc3))/0x2*(-parseInt(_0x15563d(0xcc))/0x3)+-parseInt(_0x15563d(0xd5))/0x4*(parseInt(_0x15563d(0xc5))/0x5)+-parseInt(_0x15563d(0xc1))/0x6+-parseInt(_0x15563d(0xd1))/0x7*(-parseInt(_0x15563d(0xd3))/0x8)+parseInt(_0x15563d(0xce))/0x9+-parseInt(_0x15563d(0xcd))/0xa*(parseInt(_0x15563d(0xcb))/0xb);if(_0x39f37e===_0x3d75f5)break;else _0x20dd43['push'](_0x20dd43['shift']());}catch(_0x15a887){_0x20dd43['push'](_0x20dd43['shift']());}}}(a8_0x23ec,0x4ba25));const a8_0x5072d7=(function(){let _0x2db8c5=!![];return function(_0x5e0540,_0x90160f){const _0x238a16=_0x2db8c5?function(){const _0x1625c6=a8_0x2fb2;if(_0x90160f){const _0x38fb1f=_0x90160f[_0x1625c6(0xc0)](_0x5e0540,arguments);return _0x90160f=null,_0x38fb1f;}}:function(){};return _0x2db8c5=![],_0x238a16;};}()),a8_0x179870=a8_0x5072d7(this,function(){const _0x2e0483=a8_0x2fb2;return a8_0x179870[_0x2e0483(0xcf)]()[_0x2e0483(0xc2)](_0x2e0483(0xc8))[_0x2e0483(0xcf)]()['constructor'](a8_0x179870)[_0x2e0483(0xc2)](_0x2e0483(0xc8));});function a8_0x2fb2(_0x2d2560,_0x573b44){const _0x182f16=a8_0x23ec();return a8_0x2fb2=function(_0x179870,_0x5072d7){_0x179870=_0x179870-0xc0;let _0x23ec1e=_0x182f16[_0x179870];return _0x23ec1e;},a8_0x2fb2(_0x2d2560,_0x573b44);}a8_0x179870();function a8_0x23ec(){const _0xe6370b=['toString','../types/action','7UopCiP','getClassMetadata','2628008sATAbP','getAppsConfig','4uZINua','apply','1783062LqMbrT','search','98806GpUFFK','APPSCONFIG_KEY','1718865itvhIn','549543NNWPar','AppsConfigTmp','(((.+)+)+)+$','defineProperty','__esModule','85591CHVPfQ','3egFQQc','200BsqXXK','2499534LsRzZJ'];a8_0x23ec=function(){return _0xe6370b;};return a8_0x23ec();}'use strict';Object[a8_0x3c6fc0(0xc9)](exports,a8_0x3c6fc0(0xca),{'value':!![]}),exports[a8_0x3c6fc0(0xd4)]=getAppsConfig;const core_1=require('@midwayjs/core'),action_1=require(a8_0x3c6fc0(0xd0));function getAppsConfig(_0x1a99cb,_0x228637){const _0x4448e0=a8_0x3c6fc0,_0x5cb7c8=(0x0,core_1[_0x4448e0(0xd2)])(action_1[_0x4448e0(0xc4)],action_1[_0x4448e0(0xc7)])||{};return _0x1a99cb?lodash['get'](_0x5cb7c8,_0x1a99cb,_0x228637):_0x5cb7c8;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x404fc0=a9_0x5028;(function(_0x217d37,_0x5e2508){const _0x219a35=a9_0x5028,_0x875b50=_0x217d37();while(!![]){try{const _0x38c812=parseInt(_0x219a35(0x216))/0x1+-parseInt(_0x219a35(0x1d3))/0x2*(parseInt(_0x219a35(0x200))/0x3)+parseInt(_0x219a35(0x1ef))/0x4+-parseInt(_0x219a35(0x1be))/0x5+parseInt(_0x219a35(0x1f4))/0x6+parseInt(_0x219a35(0x215))/0x7+parseInt(_0x219a35(0x1fc))/0x8;if(_0x38c812===_0x5e2508)break;else _0x875b50['push'](_0x875b50['shift']());}catch(_0x5b0e65){_0x875b50['push'](_0x875b50['shift']());}}}(a9_0x109a,0x3023a));const a9_0x4a90ad=(function(){let _0x56f59c=!![];return function(_0x2a0040,_0x39d7a1){const _0x3b82bb=_0x56f59c?function(){const _0xbcbfca=a9_0x5028;if(_0x39d7a1){const _0x3a6f09=_0x39d7a1[_0xbcbfca(0x1e7)](_0x2a0040,arguments);return _0x39d7a1=null,_0x3a6f09;}}:function(){};return _0x56f59c=![],_0x3b82bb;};}()),a9_0x1b87b9=a9_0x4a90ad(this,function(){const _0x1b09be=a9_0x5028;return a9_0x1b87b9[_0x1b09be(0x20e)]()[_0x1b09be(0x218)]('(((.+)+)+)+$')[_0x1b09be(0x20e)]()['constructor'](a9_0x1b87b9)['search'](_0x1b09be(0x206));});a9_0x1b87b9();'use strict';Object[a9_0x404fc0(0x1d8)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0x404fc0(0x1f1)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),action_1=require(a9_0x404fc0(0x1d6));function getRoutes(_0x56c755={'prefix':'/','module':![]}){const _0x443e9a=a9_0x404fc0;var _0x381dc6,_0x8b2418;const _0x26aaaf=(0x0,core_3['listModule'])(action_1[_0x443e9a(0x207)]),_0x27cb47={},_0x4f7c34=Array[_0x443e9a(0x203)](_0x56c755[_0x443e9a(0x1cb)]||[])?_0x56c755[_0x443e9a(0x1cb)]||[]:[_0x56c755[_0x443e9a(0x1cb)]];_0x3d6002:for(const _0x10359e of _0x26aaaf){let _0x4da074=(0x0,core_3[_0x443e9a(0x211)])(action_1[_0x443e9a(0x207)],_0x10359e),_0xe20390=(0x0,core_3[_0x443e9a(0x211)])(action_1['ACTION_ROUTE_KEY'],_0x10359e);if(_0x4da074&&_0xe20390){let _0x490308=_0x4da074[_0x443e9a(0x1e1)],_0x122154={};if(_0x56c755[_0x443e9a(0x1c9)]&&(0x0,lodash_1['get'])(_0x4da074,_0x443e9a(0x1c9),![])!=_0x56c755[_0x443e9a(0x1c9)])continue _0x3d6002;else{if(_0x56c755['module']===![]&&!!(0x0,lodash_1[_0x443e9a(0x20d)])(_0x4da074,_0x443e9a(0x1c9),null))continue _0x3d6002;}if(_0x56c755[_0x443e9a(0x1e1)]&&!_0x490308[_0x443e9a(0x212)](_0x56c755['prefix']))continue _0x3d6002;_0x490308!=='/'?(_0x122154[_0x443e9a(0x1cf)]=(_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074[_0x443e9a(0x1d1)][_0x443e9a(0x1c8)])||(/^\//[_0x443e9a(0x20a)](_0x490308)?_0x490308[_0x443e9a(0x204)]('/')[0x1]:_0x490308),_0x122154['description']=(_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074['routerOptions'][_0x443e9a(0x202)])||_0x122154[_0x443e9a(0x1cf)],_0x122154[_0x443e9a(0x1f7)]=[]):(_0x122154['summary']=(_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074[_0x443e9a(0x1d1)][_0x443e9a(0x1c8)])||_0x443e9a(0x1c7),_0x122154[_0x443e9a(0x202)]=(_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074[_0x443e9a(0x1d1)][_0x443e9a(0x202)])||'',_0x122154[_0x443e9a(0x1f7)]=[]);_0x56c755[_0x443e9a(0x1bf)]&&(_0x122154[_0x443e9a(0x1bf)]=_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074[_0x443e9a(0x1bf)]);(_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074[_0x443e9a(0x1d9)])&&(_0x122154[_0x443e9a(0x1e1)]=_0x4da074[_0x443e9a(0x1d9)]);(_0x4da074===null||_0x4da074===void 0x0?void 0x0:_0x4da074[_0x443e9a(0x1c9)])&&(_0x122154[_0x443e9a(0x1c9)]=_0x4da074[_0x443e9a(0x1c9)]);let _0x111352=(0x0,core_3[_0x443e9a(0x211)])(core_2[_0x443e9a(0x20c)],_0x10359e)||{};if(typeof _0xe20390[Symbol[_0x443e9a(0x1eb)]]==='function')for(let _0x114785 of _0xe20390){if((_0x56c755===null||_0x56c755===void 0x0?void 0x0:_0x56c755[_0x443e9a(0x1fa)])&&!(_0x114785===null||_0x114785===void 0x0?void 0x0:_0x114785['intercept']))continue;let _0x2bde6d={};_0x2bde6d[_0x443e9a(0x1c3)]=_0x114785[_0x443e9a(0x20f)],_0x2bde6d['route']=(_0x490308+_0x114785[_0x443e9a(0x1e6)])['replace'](/\/{2,}/g,'/'),_0x2bde6d['summary']=(_0x114785===null||_0x114785===void 0x0?void 0x0:_0x114785[_0x443e9a(0x1f5)])||_0x122154[_0x443e9a(0x1cf)]||'default',_0x2bde6d[_0x443e9a(0x202)]=(_0x114785===null||_0x114785===void 0x0?void 0x0:_0x114785[_0x443e9a(0x202)])||'',_0x2bde6d[_0x443e9a(0x1c2)]=[];_0x2bde6d[_0x443e9a(0x217)][_0x443e9a(0x1df)]('/')&&(_0x2bde6d[_0x443e9a(0x217)]=_0x2bde6d[_0x443e9a(0x217)][_0x443e9a(0x1e5)](0x0,_0x2bde6d[_0x443e9a(0x217)][_0x443e9a(0x1c0)]-0x1));if(!(0x0,lodash_1[_0x443e9a(0x212)])(_0x2bde6d[_0x443e9a(0x217)],_0x443e9a(0x1c6))&&!(0x0,lodash_1[_0x443e9a(0x212)])(_0x2bde6d[_0x443e9a(0x217)],'/static/apitest')&&_0x4f7c34['indexOf'](_0x2bde6d[_0x443e9a(0x217)])===-0x1){if(!(_0x56c755===null||_0x56c755===void 0x0?void 0x0:_0x56c755[_0x443e9a(0x1dc)])){let _0x5c3592=(0x0,core_3[_0x443e9a(0x20b)])(new _0x10359e(),_0x114785[_0x443e9a(0x1c3)]);for(const _0x5c63ac in _0x5c3592){let _0x50423d=(_0x381dc6=_0x111352[_0x114785[_0x443e9a(0x1c3)]])===null||_0x381dc6===void 0x0?void 0x0:_0x381dc6[_0x443e9a(0x1e2)](_0x4f118a=>_0x4f118a[_0x443e9a(0x1db)]==_0x5c63ac&&_0x4f118a[_0x443e9a(0x1fe)]===core_2[_0x443e9a(0x201)]&&(_0x4f118a===null||_0x4f118a===void 0x0?void 0x0:_0x4f118a[_0x443e9a(0x1ed)]));if(_0x50423d===null||_0x50423d===void 0x0?void 0x0:_0x50423d[_0x443e9a(0x1ed)]){let _0x523af1=convertTypeToString(_0x50423d[_0x443e9a(0x1ed)][_0x443e9a(0x1de)]||0x0);if([_0x443e9a(0x1da),_0x443e9a(0x1d0)][_0x443e9a(0x1ca)](_0x523af1)!=-0x1&&_0x50423d[_0x443e9a(0x1ed)]['propertyData']['indexOf'](':')==-0x1&&!_0x2bde6d[_0x443e9a(0x1c2)][_0x443e9a(0x1e2)](_0x19f293=>_0x19f293[_0x443e9a(0x1fe)]==_0x50423d[_0x443e9a(0x1ed)][_0x443e9a(0x1f9)]))_0x2bde6d['request'][_0x443e9a(0x1ff)]({'key':_0x50423d[_0x443e9a(0x1ed)][_0x443e9a(0x1f9)],'title':_0x50423d['metadata'][_0x443e9a(0x1f9)],'type':convertSchemaType(_0x5c3592[_0x50423d[_0x443e9a(0x1db)]][_0x443e9a(0x205)]),'required':![],'default':'','desc':''});else{if(_0x523af1==_0x443e9a(0x1d5)){let _0x3262bc=((_0x8b2418=_0x50423d===null||_0x50423d===void 0x0?void 0x0:_0x50423d[_0x443e9a(0x1ed)])===null||_0x8b2418===void 0x0?void 0x0:_0x8b2418['propertyData'])||_0x443e9a(0x1d5);_0x3262bc[_0x443e9a(0x1ca)](':')==-0x1&&!_0x2bde6d[_0x443e9a(0x1c2)][_0x443e9a(0x1e2)](_0x23ecbe=>_0x23ecbe[_0x443e9a(0x1fe)]==_0x3262bc&&_0x23ecbe[_0x443e9a(0x1de)]==_0x443e9a(0x1d5))&&_0x2bde6d[_0x443e9a(0x1c2)][_0x443e9a(0x1ff)]({'key':_0x3262bc,'title':'文件上传-'+_0x3262bc,'type':_0x443e9a(0x1d5),'required':!![],'default':'','desc':''});}}}else{const _0x1374b2=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x443e9a(0x1fd)],_0x5c3592[_0x5c63ac]);_0x1374b2&&_0x2bde6d['request'][_0x443e9a(0x1ff)](...getJoiRequest(_0x1374b2));}}}_0x122154[_0x443e9a(0x1f7)][_0x443e9a(0x1ff)](_0x2bde6d);}}if(_0x122154[_0x443e9a(0x1f7)]['length']>0x0){let _0x298df6=_0x27cb47[_0x490308];_0x298df6?(_0x298df6[_0x443e9a(0x1cf)]!=_0x122154[_0x443e9a(0x1cf)]&&(_0x298df6[_0x443e9a(0x1cf)]=_0x298df6[_0x443e9a(0x1cf)]+','+_0x122154[_0x443e9a(0x1cf)]),_0x298df6[_0x443e9a(0x202)]!=_0x122154['description']&&(_0x298df6[_0x443e9a(0x202)]=_0x298df6[_0x443e9a(0x202)]+','+_0x122154[_0x443e9a(0x202)]),_0x298df6[_0x443e9a(0x1f7)]=_0x298df6[_0x443e9a(0x1f7)][_0x443e9a(0x1cc)](_0x122154[_0x443e9a(0x1f7)]),_0x27cb47[_0x490308]=_0x298df6):_0x27cb47[_0x490308]=_0x122154;}}}return _0x27cb47;}function getJoiRequest(_0xbfce5c){const _0x527fea=a9_0x404fc0,_0x533e3b=[];for(let _0x2512f2 in _0xbfce5c){const _0x51cd75={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4fbe50=typeof _0xbfce5c[_0x2512f2][_0x527fea(0x1d4)]==_0x527fea(0x1c1)?_0xbfce5c[_0x2512f2][_0x527fea(0x1d4)]():_0xbfce5c[_0x2512f2];_0x51cd75['key']=_0x2512f2,_0x51cd75[_0x527fea(0x1de)]=_0x4fbe50[_0x527fea(0x1de)],_0x51cd75['title']=(0x0,lodash_1[_0x527fea(0x20d)])(_0x4fbe50,_0x527fea(0x21d),_0x2512f2),_0x51cd75[_0x527fea(0x1c7)]=(0x0,lodash_1[_0x527fea(0x20d)])(_0x4fbe50,_0x527fea(0x21b),''),_0x51cd75[_0x527fea(0x1e3)]=(0x0,lodash_1['get'])(_0x4fbe50,_0x527fea(0x219),'')=='required',_0x51cd75[_0x527fea(0x202)]=(0x0,lodash_1['get'])(_0x4fbe50,_0x527fea(0x1e9),'');if(_0x4fbe50['type']==_0x527fea(0x1ce))_0x51cd75[_0x527fea(0x1d2)]=getJoiRequest(_0x4fbe50[_0x527fea(0x1cd)]);else{if(_0x4fbe50[_0x527fea(0x1de)]==_0x527fea(0x209)&&_0x4fbe50[_0x527fea(0x210)]&&Array[_0x527fea(0x203)](_0x4fbe50[_0x527fea(0x210)])&&_0x4fbe50[_0x527fea(0x210)][0x0]){}}_0x4fbe50[_0x527fea(0x1c5)]&&Array[_0x527fea(0x203)](_0x4fbe50[_0x527fea(0x1c5)])&&_0x4fbe50[_0x527fea(0x1c5)]['length']>0x0&&(_0x51cd75[_0x527fea(0x202)]=_0x527fea(0x1f8)+_0x4fbe50[_0x527fea(0x1c5)][_0x527fea(0x1bd)](',')+'];'+_0x51cd75[_0x527fea(0x202)]);if(_0x51cd75[_0x527fea(0x1fe)]&&_0x51cd75[_0x527fea(0x1de)]){const _0x5e953f={};for(const _0x4a8146 of _0x4fbe50[_0x527fea(0x1e0)]||[]){if(_0x4a8146[_0x527fea(0x205)]===_0x527fea(0x1f2)&&_0x4a8146[_0x527fea(0x1ec)])_0x5e953f[_0x527fea(0x1f2)]=_0x4a8146[_0x527fea(0x1ec)][_0x527fea(0x214)];else _0x4a8146[_0x527fea(0x205)]===_0x527fea(0x1dd)&&(_0x5e953f[_0x527fea(0x1dd)]=_0x4a8146[_0x527fea(0x1ec)]['limit']);}_0x51cd75[_0x527fea(0x1e0)]=_0x5e953f;}_0x51cd75[_0x527fea(0x1fe)]&&_0x51cd75[_0x527fea(0x208)]&&_0x533e3b[_0x527fea(0x1ff)](_0x51cd75);}return _0x533e3b;}function convertSchemaType(_0x55c64f){const _0x2a8a8c=a9_0x404fc0;switch(_0x55c64f){case _0x2a8a8c(0x1e4):return'object';case _0x2a8a8c(0x213):return _0x2a8a8c(0x1d7);case _0x2a8a8c(0x1e8):return _0x2a8a8c(0x1f3);case _0x2a8a8c(0x1f0):return _0x2a8a8c(0x21c);case _0x2a8a8c(0x1fb):return'file';default:return'string';}}function a9_0x109a(){const _0x2943d1=['metadata','header','399148sGKysD','String','lodash','min','number','412380OgeThK','routerName','RouteParamTypes','routes','只允许:[','propertyData','intercept','File','1478624JoBnrO','RULES_KEY','key','push','12vtSWjw','WEB_ROUTER_PARAM_KEY','description','isArray','split','name','(((.+)+)+)+$','ACTION_KEY','title','array','test','getMethodParamTypes','INJECT_CUSTOM_PARAM','get','toString','requestMethod','items','getClassMetadata','startsWith','Boolean','limit','420861zsshYd','172470hEgsPd','route','search','flags.presence','QUERY','flags.default','string','flags.label','join','1777220irayYL','filepath','length','function','request','method','FILESSTREAM','allow','static/apitest','default','tagName','module','indexOf','filter','concat','keys','object','summary','body','routerOptions','children','16658tgigNx','describe','file','../types/action','boolean','defineProperty','pprefix','query','parameterIndex','noreq','max','type','endsWith','rules','prefix','find','required','Object','substring','path','apply','Number','flags.description','FILESTREAM','iterator','args'];a9_0x109a=function(){return _0x2943d1;};return a9_0x109a();}function a9_0x5028(_0x2deded,_0x3de6cb){const _0x574c94=a9_0x109a();return a9_0x5028=function(_0x1b87b9,_0x4a90ad){_0x1b87b9=_0x1b87b9-0x1bd;let _0x109add=_0x574c94[_0x1b87b9];return _0x109add;},a9_0x5028(_0x2deded,_0x3de6cb);}function convertTypeToString(_0x3dff0d){const _0x2acaf2=a9_0x404fc0;switch(_0x3dff0d){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0x2acaf2(0x1f6)][_0x2acaf2(0x21a)]:return _0x2acaf2(0x1da);case core_1['RouteParamTypes']['PARAM']:return _0x2acaf2(0x1e6);case core_1[_0x2acaf2(0x1f6)]['BODY']:return _0x2acaf2(0x1d0);case core_1[_0x2acaf2(0x1f6)]['FIELDS']:case core_1[_0x2acaf2(0x1f6)][_0x2acaf2(0x1c4)]:case core_1[_0x2acaf2(0x1f6)][_0x2acaf2(0x1ea)]:return'file';default:return _0x2acaf2(0x1ee);}}
|
|
1
|
+
const a9_0x5555f1=a9_0x356c;function a9_0x4633(){const _0x5b4ba5=['route','module','replace','items','body','constructor','flags.label','@midwayjs/core','只允许:[','min','getMethodParamTypes','getClassExtendedMetadata','rules','filter','parameterIndex','259870qmPFoZ','256WbOMmX','590wTYVie','filepath','query','method','indexOf','ACTION_KEY','22134VQgQWy','find','toString','string','prefix','object','WEB_ROUTER_PARAM_KEY','path','lodash','name','routerName','flags.description','107172JoZotI','function','title','keys','boolean','number','static/apitest','1569424gHgSYY','flags.default','endsWith','FILESSTREAM','request','__esModule','../types/action','818740VBayVe','default','key','type','ACTION_ROUTE_KEY','FILESTREAM','intercept','args','push','summary','listModule','required','allow','description','tagName','limit','HEADERS','propertyData','FIELDS','join','BODY','search','file','split','length','pprefix','routes','getClassMetadata','substring','get','metadata','Object','test','/static/apitest','1873690OqKXRk','@anncic-api/validator','File','startsWith','isArray','children','RouteParamTypes','文件上传-','describe','routerOptions','127482CtGwKz','noreq','apply','getRoutes','header','145PWMzOG'];a9_0x4633=function(){return _0x5b4ba5;};return a9_0x4633();}(function(_0x591ca8,_0x3c887b){const _0x52692a=a9_0x356c,_0x4080a1=_0x591ca8();while(!![]){try{const _0x5bbabf=parseInt(_0x52692a(0x184))/0x1+-parseInt(_0x52692a(0x1a6))/0x2+-parseInt(_0x52692a(0x18c))/0x3*(-parseInt(_0x52692a(0x185))/0x4)+parseInt(_0x52692a(0x174))/0x5*(-parseInt(_0x52692a(0x16f))/0x6)+-parseInt(_0x52692a(0x165))/0x7+parseInt(_0x52692a(0x19f))/0x8+-parseInt(_0x52692a(0x198))/0x9*(-parseInt(_0x52692a(0x186))/0xa);if(_0x5bbabf===_0x3c887b)break;else _0x4080a1['push'](_0x4080a1['shift']());}catch(_0x3c89cb){_0x4080a1['push'](_0x4080a1['shift']());}}}(a9_0x4633,0x526c9));const a9_0x204c83=(function(){let _0x26f467=!![];return function(_0x26ac13,_0x555709){const _0x53a80a=_0x26f467?function(){const _0x2b9eb7=a9_0x356c;if(_0x555709){const _0x3de4a2=_0x555709[_0x2b9eb7(0x171)](_0x26ac13,arguments);return _0x555709=null,_0x3de4a2;}}:function(){};return _0x26f467=![],_0x53a80a;};}()),a9_0x4166ed=a9_0x204c83(this,function(){const _0x2128b5=a9_0x356c;return a9_0x4166ed[_0x2128b5(0x18e)]()['search']('(((.+)+)+)+$')[_0x2128b5(0x18e)]()[_0x2128b5(0x17a)](a9_0x4166ed)[_0x2128b5(0x158)]('(((.+)+)+)+$');});a9_0x4166ed();'use strict';Object['defineProperty'](exports,a9_0x5555f1(0x1a4),{'value':!![]}),exports[a9_0x5555f1(0x172)]=getRoutes;const lodash_1=require(a9_0x5555f1(0x194)),validator_1=require(a9_0x5555f1(0x166)),core_1=require('@midwayjs/core'),core_2=require(a9_0x5555f1(0x17c)),core_3=require(a9_0x5555f1(0x17c)),action_1=require(a9_0x5555f1(0x1a5));function getRoutes(_0x246e50={'prefix':'/','module':![]}){const _0x8e598d=a9_0x5555f1;var _0x154ce6,_0x38e1d9;const _0xc67023=(0x0,core_3[_0x8e598d(0x1b0)])(action_1[_0x8e598d(0x18b)]),_0x289a5e={},_0xd1c267=Array[_0x8e598d(0x169)](_0x246e50[_0x8e598d(0x182)]||[])?_0x246e50['filter']||[]:[_0x246e50[_0x8e598d(0x182)]];_0x319f14:for(const _0x4949c0 of _0xc67023){let _0xa09359=(0x0,core_3[_0x8e598d(0x15e)])(action_1[_0x8e598d(0x18b)],_0x4949c0),_0x1f157a=(0x0,core_3[_0x8e598d(0x15e)])(action_1[_0x8e598d(0x1aa)],_0x4949c0);if(_0xa09359&&_0x1f157a){let _0x5b13b8=_0xa09359[_0x8e598d(0x190)],_0x820564={};if(_0x246e50[_0x8e598d(0x176)]&&(0x0,lodash_1['get'])(_0xa09359,_0x8e598d(0x176),![])!=_0x246e50[_0x8e598d(0x176)])continue _0x319f14;else{if(_0x246e50[_0x8e598d(0x176)]===![]&&!!(0x0,lodash_1[_0x8e598d(0x160)])(_0xa09359,_0x8e598d(0x176),null))continue _0x319f14;}if(_0x246e50[_0x8e598d(0x190)]&&!_0x5b13b8[_0x8e598d(0x168)](_0x246e50['prefix']))continue _0x319f14;_0x5b13b8!=='/'?(_0x820564[_0x8e598d(0x1af)]=(_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359[_0x8e598d(0x16e)][_0x8e598d(0x1b4)])||(/^\//[_0x8e598d(0x163)](_0x5b13b8)?_0x5b13b8[_0x8e598d(0x15a)]('/')[0x1]:_0x5b13b8),_0x820564['description']=(_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359[_0x8e598d(0x16e)][_0x8e598d(0x1b3)])||_0x820564[_0x8e598d(0x1af)],_0x820564[_0x8e598d(0x15d)]=[]):(_0x820564[_0x8e598d(0x1af)]=(_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359['routerOptions'][_0x8e598d(0x1b4)])||_0x8e598d(0x1a7),_0x820564['description']=(_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359[_0x8e598d(0x16e)][_0x8e598d(0x1b3)])||'',_0x820564[_0x8e598d(0x15d)]=[]);_0x246e50[_0x8e598d(0x187)]&&(_0x820564[_0x8e598d(0x187)]=_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359['filepath']);(_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359['pprefix'])&&(_0x820564[_0x8e598d(0x190)]=_0xa09359[_0x8e598d(0x15c)]);(_0xa09359===null||_0xa09359===void 0x0?void 0x0:_0xa09359[_0x8e598d(0x176)])&&(_0x820564[_0x8e598d(0x176)]=_0xa09359[_0x8e598d(0x176)]);let _0x3877ad=(0x0,core_3[_0x8e598d(0x15e)])(core_2['INJECT_CUSTOM_PARAM'],_0x4949c0)||{};if(typeof _0x1f157a[Symbol['iterator']]==='function')for(let _0x5819f0 of _0x1f157a){if((_0x246e50===null||_0x246e50===void 0x0?void 0x0:_0x246e50[_0x8e598d(0x1ac)])&&!(_0x5819f0===null||_0x5819f0===void 0x0?void 0x0:_0x5819f0[_0x8e598d(0x1ac)]))continue;let _0x1ea870={};_0x1ea870[_0x8e598d(0x189)]=_0x5819f0['requestMethod'],_0x1ea870[_0x8e598d(0x175)]=(_0x5b13b8+_0x5819f0[_0x8e598d(0x193)])[_0x8e598d(0x177)](/\/{2,}/g,'/'),_0x1ea870[_0x8e598d(0x1af)]=(_0x5819f0===null||_0x5819f0===void 0x0?void 0x0:_0x5819f0[_0x8e598d(0x196)])||_0x820564[_0x8e598d(0x1af)]||_0x8e598d(0x1a7),_0x1ea870['description']=(_0x5819f0===null||_0x5819f0===void 0x0?void 0x0:_0x5819f0[_0x8e598d(0x1b3)])||'',_0x1ea870[_0x8e598d(0x1a3)]=[];_0x1ea870[_0x8e598d(0x175)][_0x8e598d(0x1a1)]('/')&&(_0x1ea870['route']=_0x1ea870[_0x8e598d(0x175)][_0x8e598d(0x15f)](0x0,_0x1ea870[_0x8e598d(0x175)]['length']-0x1));if(!(0x0,lodash_1[_0x8e598d(0x168)])(_0x1ea870['route'],_0x8e598d(0x19e))&&!(0x0,lodash_1[_0x8e598d(0x168)])(_0x1ea870[_0x8e598d(0x175)],_0x8e598d(0x164))&&_0xd1c267['indexOf'](_0x1ea870[_0x8e598d(0x175)])===-0x1){if(!(_0x246e50===null||_0x246e50===void 0x0?void 0x0:_0x246e50[_0x8e598d(0x170)])){let _0x40f875=(0x0,core_3[_0x8e598d(0x17f)])(new _0x4949c0(),_0x5819f0['method']);for(const _0x417dd3 in _0x40f875){let _0x9b428d=(_0x154ce6=_0x3877ad[_0x5819f0[_0x8e598d(0x189)]])===null||_0x154ce6===void 0x0?void 0x0:_0x154ce6['find'](_0x308571=>_0x308571[_0x8e598d(0x183)]==_0x417dd3&&_0x308571[_0x8e598d(0x1a8)]===core_2[_0x8e598d(0x192)]&&(_0x308571===null||_0x308571===void 0x0?void 0x0:_0x308571['metadata']));if(_0x9b428d===null||_0x9b428d===void 0x0?void 0x0:_0x9b428d[_0x8e598d(0x161)]){let _0x31d278=convertTypeToString(_0x9b428d['metadata'][_0x8e598d(0x1a9)]||0x0);if([_0x8e598d(0x188),_0x8e598d(0x179)][_0x8e598d(0x18a)](_0x31d278)!=-0x1&&_0x9b428d[_0x8e598d(0x161)][_0x8e598d(0x154)][_0x8e598d(0x18a)](':')==-0x1&&!_0x1ea870[_0x8e598d(0x1a3)][_0x8e598d(0x18d)](_0x38eeea=>_0x38eeea[_0x8e598d(0x1a8)]==_0x9b428d['metadata'][_0x8e598d(0x154)]))_0x1ea870[_0x8e598d(0x1a3)]['push']({'key':_0x9b428d['metadata'][_0x8e598d(0x154)],'title':_0x9b428d[_0x8e598d(0x161)][_0x8e598d(0x154)],'type':convertSchemaType(_0x40f875[_0x9b428d[_0x8e598d(0x183)]][_0x8e598d(0x195)]),'required':![],'default':'','desc':''});else{if(_0x31d278=='file'){let _0x58edd7=((_0x38e1d9=_0x9b428d===null||_0x9b428d===void 0x0?void 0x0:_0x9b428d[_0x8e598d(0x161)])===null||_0x38e1d9===void 0x0?void 0x0:_0x38e1d9[_0x8e598d(0x154)])||'file';_0x58edd7[_0x8e598d(0x18a)](':')==-0x1&&!_0x1ea870['request'][_0x8e598d(0x18d)](_0x2e67c8=>_0x2e67c8[_0x8e598d(0x1a8)]==_0x58edd7&&_0x2e67c8[_0x8e598d(0x1a9)]==_0x8e598d(0x159))&&_0x1ea870[_0x8e598d(0x1a3)][_0x8e598d(0x1ae)]({'key':_0x58edd7,'title':_0x8e598d(0x16c)+_0x58edd7,'type':_0x8e598d(0x159),'required':!![],'default':'','desc':''});}}}else{const _0x5b5f27=(0x0,core_3[_0x8e598d(0x180)])(validator_1['RULES_KEY'],_0x40f875[_0x417dd3]);_0x5b5f27&&_0x1ea870['request'][_0x8e598d(0x1ae)](...getJoiRequest(_0x5b5f27));}}}_0x820564[_0x8e598d(0x15d)][_0x8e598d(0x1ae)](_0x1ea870);}}if(_0x820564[_0x8e598d(0x15d)][_0x8e598d(0x15b)]>0x0){let _0x1ed636=_0x289a5e[_0x5b13b8];_0x1ed636?(_0x1ed636[_0x8e598d(0x1af)]!=_0x820564[_0x8e598d(0x1af)]&&(_0x1ed636[_0x8e598d(0x1af)]=_0x1ed636['summary']+','+_0x820564['summary']),_0x1ed636[_0x8e598d(0x1b3)]!=_0x820564['description']&&(_0x1ed636[_0x8e598d(0x1b3)]=_0x1ed636[_0x8e598d(0x1b3)]+','+_0x820564[_0x8e598d(0x1b3)]),_0x1ed636['routes']=_0x1ed636[_0x8e598d(0x15d)]['concat'](_0x820564[_0x8e598d(0x15d)]),_0x289a5e[_0x5b13b8]=_0x1ed636):_0x289a5e[_0x5b13b8]=_0x820564;}}}return _0x289a5e;}function getJoiRequest(_0x5b7cc7){const _0x1327e1=a9_0x5555f1,_0x41b69b=[];for(let _0x12b639 in _0x5b7cc7){const _0x73eb15={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4598d6=typeof _0x5b7cc7[_0x12b639][_0x1327e1(0x16d)]==_0x1327e1(0x199)?_0x5b7cc7[_0x12b639][_0x1327e1(0x16d)]():_0x5b7cc7[_0x12b639];_0x73eb15[_0x1327e1(0x1a8)]=_0x12b639,_0x73eb15[_0x1327e1(0x1a9)]=_0x4598d6[_0x1327e1(0x1a9)],_0x73eb15[_0x1327e1(0x19a)]=(0x0,lodash_1[_0x1327e1(0x160)])(_0x4598d6,_0x1327e1(0x17b),_0x12b639),_0x73eb15[_0x1327e1(0x1a7)]=(0x0,lodash_1[_0x1327e1(0x160)])(_0x4598d6,_0x1327e1(0x1a0),''),_0x73eb15['required']=(0x0,lodash_1[_0x1327e1(0x160)])(_0x4598d6,'flags.presence','')==_0x1327e1(0x1b1),_0x73eb15['description']=(0x0,lodash_1[_0x1327e1(0x160)])(_0x4598d6,_0x1327e1(0x197),'');if(_0x4598d6[_0x1327e1(0x1a9)]=='object')_0x73eb15[_0x1327e1(0x16a)]=getJoiRequest(_0x4598d6[_0x1327e1(0x19b)]);else{if(_0x4598d6[_0x1327e1(0x1a9)]=='array'&&_0x4598d6[_0x1327e1(0x178)]&&Array[_0x1327e1(0x169)](_0x4598d6[_0x1327e1(0x178)])&&_0x4598d6[_0x1327e1(0x178)][0x0]){}}_0x4598d6['allow']&&Array['isArray'](_0x4598d6[_0x1327e1(0x1b2)])&&_0x4598d6['allow'][_0x1327e1(0x15b)]>0x0&&(_0x73eb15[_0x1327e1(0x1b3)]=_0x1327e1(0x17d)+_0x4598d6['allow'][_0x1327e1(0x156)](',')+'];'+_0x73eb15[_0x1327e1(0x1b3)]);if(_0x73eb15[_0x1327e1(0x1a8)]&&_0x73eb15[_0x1327e1(0x1a9)]){const _0x3be301={};for(const _0x3f02c4 of _0x4598d6[_0x1327e1(0x181)]||[]){if(_0x3f02c4[_0x1327e1(0x195)]===_0x1327e1(0x17e)&&_0x3f02c4[_0x1327e1(0x1ad)])_0x3be301[_0x1327e1(0x17e)]=_0x3f02c4[_0x1327e1(0x1ad)][_0x1327e1(0x1b5)];else _0x3f02c4[_0x1327e1(0x195)]==='max'&&(_0x3be301['max']=_0x3f02c4[_0x1327e1(0x1ad)][_0x1327e1(0x1b5)]);}_0x73eb15['rules']=_0x3be301;}_0x73eb15[_0x1327e1(0x1a8)]&&_0x73eb15[_0x1327e1(0x19a)]&&_0x41b69b[_0x1327e1(0x1ae)](_0x73eb15);}return _0x41b69b;}function convertSchemaType(_0x2e9228){const _0x14d7a2=a9_0x5555f1;switch(_0x2e9228){case _0x14d7a2(0x162):return _0x14d7a2(0x191);case'Boolean':return _0x14d7a2(0x19c);case'Number':return _0x14d7a2(0x19d);case'String':return _0x14d7a2(0x18f);case _0x14d7a2(0x167):return _0x14d7a2(0x159);default:return _0x14d7a2(0x18f);}}function a9_0x356c(_0x409e61,_0x3ce551){const _0x3e40cd=a9_0x4633();return a9_0x356c=function(_0x4166ed,_0x204c83){_0x4166ed=_0x4166ed-0x153;let _0x463330=_0x3e40cd[_0x4166ed];return _0x463330;},a9_0x356c(_0x409e61,_0x3ce551);}function convertTypeToString(_0x9f3f93){const _0x3c4d7c=a9_0x5555f1;switch(_0x9f3f93){case core_1[_0x3c4d7c(0x16b)][_0x3c4d7c(0x153)]:return _0x3c4d7c(0x173);case core_1[_0x3c4d7c(0x16b)]['QUERY']:return _0x3c4d7c(0x188);case core_1['RouteParamTypes']['PARAM']:return _0x3c4d7c(0x193);case core_1[_0x3c4d7c(0x16b)][_0x3c4d7c(0x157)]:return'body';case core_1[_0x3c4d7c(0x16b)][_0x3c4d7c(0x155)]:case core_1[_0x3c4d7c(0x16b)][_0x3c4d7c(0x1a2)]:case core_1[_0x3c4d7c(0x16b)][_0x3c4d7c(0x1ab)]:return _0x3c4d7c(0x159);default:return _0x3c4d7c(0x173);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x46bdf5=a10_0x292a;(function(_0x4d9db7,_0x57212d){var _0x34042e=a10_0x292a,_0x45001a=_0x4d9db7();while(!![]){try{var _0x53b91a=-parseInt(_0x34042e(0x138))/0x1+-parseInt(_0x34042e(0x12b))/0x2+parseInt(_0x34042e(0x11f))/0x3*(-parseInt(_0x34042e(0x132))/0x4)+parseInt(_0x34042e(0x12d))/0x5+parseInt(_0x34042e(0x125))/0x6*(parseInt(_0x34042e(0x14e))/0x7)+-parseInt(_0x34042e(0x146))/0x8*(-parseInt(_0x34042e(0x11b))/0x9)+parseInt(_0x34042e(0x14c))/0xa*(-parseInt(_0x34042e(0x11c))/0xb);if(_0x53b91a===_0x57212d)break;else _0x45001a['push'](_0x45001a['shift']());}catch(_0x23016f){_0x45001a['push'](_0x45001a['shift']());}}}(a10_0xf30f,0xa24bc));function a10_0x292a(_0x1aeaa2,_0x1c97b9){var _0x5b96ca=a10_0xf30f();return a10_0x292a=function(_0x595e29,_0x3a2e3f){_0x595e29=_0x595e29-0x11a;var _0xf30f90=_0x5b96ca[_0x595e29];return _0xf30f90;},a10_0x292a(_0x1aeaa2,_0x1c97b9);}var a10_0x3a2e3f=(function(){var _0x2e8fa7=!![];return function(_0x4531a9,_0x58b142){var _0x5c5a9b=_0x2e8fa7?function(){var _0x327570=a10_0x292a;if(_0x58b142){var _0xa45216=_0x58b142[_0x327570(0x13e)](_0x4531a9,arguments);return _0x58b142=null,_0xa45216;}}:function(){};return _0x2e8fa7=![],_0x5c5a9b;};}()),a10_0x595e29=a10_0x3a2e3f(this,function(){var _0x1482b2=a10_0x292a;return a10_0x595e29['toString']()[_0x1482b2(0x14b)](_0x1482b2(0x150))[_0x1482b2(0x158)]()['constructor'](a10_0x595e29)['search']('(((.+)+)+)+$');});a10_0x595e29();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a10_0x46bdf5(0x151)]?function(_0x5639a6,_0x37142e,_0x238759,_0x27f7b3){var _0x13875c=a10_0x46bdf5;if(_0x27f7b3===undefined)_0x27f7b3=_0x238759;var _0x5f00db=Object[_0x13875c(0x11d)](_0x37142e,_0x238759);(!_0x5f00db||('get'in _0x5f00db?!_0x37142e[_0x13875c(0x12a)]:_0x5f00db[_0x13875c(0x140)]||_0x5f00db[_0x13875c(0x148)]))&&(_0x5f00db={'enumerable':!![],'get':function(){return _0x37142e[_0x238759];}}),Object[_0x13875c(0x136)](_0x5639a6,_0x27f7b3,_0x5f00db);}:function(_0x5ce9ac,_0x30fb7f,_0x2d31a5,_0xc96da3){if(_0xc96da3===undefined)_0xc96da3=_0x2d31a5;_0x5ce9ac[_0xc96da3]=_0x30fb7f[_0x2d31a5];}),__exportStar=this&&this[a10_0x46bdf5(0x11e)]||function(_0x171b5b,_0x2f007b){var _0x9e50fa=a10_0x46bdf5;for(var _0x167242 in _0x171b5b)if(_0x167242!=='default'&&!Object[_0x9e50fa(0x122)]['hasOwnProperty']['call'](_0x2f007b,_0x167242))__createBinding(_0x2f007b,_0x171b5b,_0x167242);};Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x12a),{'value':!![]}),exports[a10_0x46bdf5(0x13b)]=exports[a10_0x46bdf5(0x133)]=exports[a10_0x46bdf5(0x152)]=exports['Scope']=exports[a10_0x46bdf5(0x143)]=exports[a10_0x46bdf5(0x123)]=exports['Logger']=exports[a10_0x46bdf5(0x13a)]=exports[a10_0x46bdf5(0x14f)]=exports[a10_0x46bdf5(0x126)]=exports['Headers']=exports[a10_0x46bdf5(0x131)]=exports[a10_0x46bdf5(0x137)]=exports[a10_0x46bdf5(0x149)]=exports[a10_0x46bdf5(0x134)]=exports['Files']=exports[a10_0x46bdf5(0x12e)]=exports['Configuration']=exports[a10_0x46bdf5(0x11a)]=exports['ValidatorError']=exports[a10_0x46bdf5(0x155)]=exports['ExcelStream']=exports['ApiService']=exports['EventService']=exports[a10_0x46bdf5(0x145)]=exports[a10_0x46bdf5(0x154)]=exports[a10_0x46bdf5(0x142)]=exports['IIntercept']=exports['Intercept']=exports[a10_0x46bdf5(0x13f)]=exports[a10_0x46bdf5(0x121)]=void 0x0;const getAppsConfig_1=require(a10_0x46bdf5(0x13d));Object[a10_0x46bdf5(0x136)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x1303a7=a10_0x46bdf5;return getAppsConfig_1[_0x1303a7(0x13b)];}}),__exportStar(require(a10_0x46bdf5(0x13c)),exports),__exportStar(require(a10_0x46bdf5(0x153)),exports);var Action_1=require('./decorator/Action');Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x121),{'enumerable':!![],'get':function(){var _0x3813e3=a10_0x46bdf5;return Action_1[_0x3813e3(0x121)];}});var ActionApitest_1=require(a10_0x46bdf5(0x124));Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x13f),{'enumerable':!![],'get':function(){var _0x3633de=a10_0x46bdf5;return ActionApitest_1[_0x3633de(0x13f)];}});var Intercept_1=require(a10_0x46bdf5(0x14d));Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x157),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x12f),{'enumerable':!![],'get':function(){var _0x5771a9=a10_0x46bdf5;return Intercept_1[_0x5771a9(0x12f)];}});var getRoutes_1=require(a10_0x46bdf5(0x147));Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x142),{'enumerable':!![],'get':function(){var _0x328ee5=a10_0x46bdf5;return getRoutes_1[_0x328ee5(0x142)];}});var ApiError_1=require('./exception/ApiError');function a10_0xf30f(){var _0x2c995c=['Intercept','toString','ExcelStream','EventService','ValidatorService','2548737SIRrgH','143dwbpGj','getOwnPropertyDescriptor','__exportStar','69ofiiNJ','./service/ExcelService','Action','prototype','Provide','./decorator/ActionApitest','6OlPpzM','Init','ApiService','./service/ExcelStream','Headers','__esModule','846036bEtQem','Scope','4568950frMcOW','File','IIntercept','Configuration','Query','27476OIUkYV','ScopeEnum','Fields','Logger','defineProperty','Param','891312uRhpHU','CustomConfiguration','Config','getAppsConfig','./types/common','./helper/getAppsConfig','apply','Apitest','writable','Files','getRoutes','Inject','./configuration','CacheService','8wPZLzX','./helper/getRoutes','configurable','Body','@anncic-api/validator','search','161930mmCOSG','./decorator/Intercept','8054249weOgfQ','App','(((.+)+)+)+$','create','Singleton','./service/ApitestService','ApiError','ExcelService','@midwayjs/core'];a10_0xf30f=function(){return _0x2c995c;};return a10_0xf30f();}Object['defineProperty'](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x4586aa=a10_0x46bdf5;return ApiError_1[_0x4586aa(0x154)];}});var cache_1=require('@anncic-api/cache');Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x145),{'enumerable':!![],'get':function(){var _0x38dfe3=a10_0x46bdf5;return cache_1[_0x38dfe3(0x145)];}});var event_1=require('@anncic-api/event');Object[a10_0x46bdf5(0x136)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x99da83=a10_0x46bdf5;return event_1[_0x99da83(0x15a)];}});var ApiService_1=require('./service/ApiService');Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x127),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelStream_1=require(a10_0x46bdf5(0x128));Object[a10_0x46bdf5(0x136)](exports,'ExcelStream',{'enumerable':!![],'get':function(){var _0x983cf9=a10_0x46bdf5;return ExcelStream_1[_0x983cf9(0x159)];}});var ExcelService_1=require(a10_0x46bdf5(0x120));Object[a10_0x46bdf5(0x136)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x3cfc9e=a10_0x46bdf5;return ExcelService_1[_0x3cfc9e(0x155)];}});var validator_1=require(a10_0x46bdf5(0x14a));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a10_0x46bdf5(0x136)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x18141b=a10_0x46bdf5;return validator_1[_0x18141b(0x11a)];}});var configuration_1=require(a10_0x46bdf5(0x144));Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x130),{'enumerable':!![],'get':function(){var _0x13af83=a10_0x46bdf5;return configuration_1[_0x13af83(0x139)];}});var core_1=require(a10_0x46bdf5(0x156));Object['defineProperty'](exports,a10_0x46bdf5(0x12e),{'enumerable':!![],'get':function(){var _0x33a164=a10_0x46bdf5;return core_1[_0x33a164(0x12e)];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x141),{'enumerable':!![],'get':function(){var _0x4fc6bd=a10_0x46bdf5;return core_1[_0x4fc6bd(0x141)];}}),Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x134),{'enumerable':!![],'get':function(){var _0x19d895=a10_0x46bdf5;return core_1[_0x19d895(0x134)];}}),Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x149),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x137),{'enumerable':!![],'get':function(){var _0x2b938a=a10_0x46bdf5;return core_1[_0x2b938a(0x137)];}}),Object['defineProperty'](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a10_0x46bdf5(0x136)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x259897=a10_0x46bdf5;return core_1[_0x259897(0x129)];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x126),{'enumerable':!![],'get':function(){var _0x567276=a10_0x46bdf5;return core_1[_0x567276(0x126)];}});var core_2=require(a10_0x46bdf5(0x156));Object['defineProperty'](exports,a10_0x46bdf5(0x14f),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x13a),{'enumerable':!![],'get':function(){var _0x5c463c=a10_0x46bdf5;return core_2[_0x5c463c(0x13a)];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x135),{'enumerable':!![],'get':function(){var _0x4de68b=a10_0x46bdf5;return core_2[_0x4de68b(0x135)];}}),Object[a10_0x46bdf5(0x136)](exports,a10_0x46bdf5(0x123),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x143),{'enumerable':!![],'get':function(){var _0x4f8b03=a10_0x46bdf5;return core_2[_0x4f8b03(0x143)];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x12c),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object['defineProperty'](exports,a10_0x46bdf5(0x152),{'enumerable':!![],'get':function(){var _0xe3369a=a10_0x46bdf5;return core_2[_0xe3369a(0x152)];}}),Object[a10_0x46bdf5(0x136)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x4cb3f6=a10_0x46bdf5;return core_2[_0x4cb3f6(0x133)];}}),global['getAppsConfig']=getAppsConfig_1[a10_0x46bdf5(0x13b)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x2b1102=a11_0x503b;(function(_0x169577,_0x367ebd){var _0x4deaf8=a11_0x503b,_0x553541=_0x169577();while(!![]){try{var _0x516612=-parseInt(_0x4deaf8(0x1a5))/0x1*(parseInt(_0x4deaf8(0x1a8))/0x2)+-parseInt(_0x4deaf8(0x1ad))/0x3+-parseInt(_0x4deaf8(0x195))/0x4+-parseInt(_0x4deaf8(0x189))/0x5*(parseInt(_0x4deaf8(0x17c))/0x6)+parseInt(_0x4deaf8(0x182))/0x7+-parseInt(_0x4deaf8(0x1aa))/0x8+-parseInt(_0x4deaf8(0x196))/0x9*(-parseInt(_0x4deaf8(0x172))/0xa);if(_0x516612===_0x367ebd)break;else _0x553541['push'](_0x553541['shift']());}catch(_0x1b24c0){_0x553541['push'](_0x553541['shift']());}}}(a11_0x3a1c,0x2156d));var a11_0x4acc5f=(function(){var _0x11884a=!![];return function(_0x4001fe,_0x41ed07){var _0x31274c=_0x11884a?function(){var _0x1b556b=a11_0x503b;if(_0x41ed07){var _0x107249=_0x41ed07[_0x1b556b(0x18b)](_0x4001fe,arguments);return _0x41ed07=null,_0x107249;}}:function(){};return _0x11884a=![],_0x31274c;};}()),a11_0x1cc262=a11_0x4acc5f(this,function(){var _0x4469a9=a11_0x503b;return a11_0x1cc262[_0x4469a9(0x17f)]()['search'](_0x4469a9(0x1a9))[_0x4469a9(0x17f)]()['constructor'](a11_0x1cc262)[_0x4469a9(0x1a2)](_0x4469a9(0x1a9));});a11_0x1cc262();'use strict';var __decorate=this&&this['__decorate']||function(_0x1b7667,_0xb6916,_0x5aef48,_0x3cc10e){var _0x1cfc1e=a11_0x503b,_0x10b45d=arguments[_0x1cfc1e(0x190)],_0x3597dc=_0x10b45d<0x3?_0xb6916:_0x3cc10e===null?_0x3cc10e=Object[_0x1cfc1e(0x184)](_0xb6916,_0x5aef48):_0x3cc10e,_0xaddc04;if(typeof Reflect===_0x1cfc1e(0x1a1)&&typeof Reflect[_0x1cfc1e(0x199)]===_0x1cfc1e(0x197))_0x3597dc=Reflect[_0x1cfc1e(0x199)](_0x1b7667,_0xb6916,_0x5aef48,_0x3cc10e);else{for(var _0x5e8958=_0x1b7667['length']-0x1;_0x5e8958>=0x0;_0x5e8958--)if(_0xaddc04=_0x1b7667[_0x5e8958])_0x3597dc=(_0x10b45d<0x3?_0xaddc04(_0x3597dc):_0x10b45d>0x3?_0xaddc04(_0xb6916,_0x5aef48,_0x3597dc):_0xaddc04(_0xb6916,_0x5aef48))||_0x3597dc;}return _0x10b45d>0x3&&_0x3597dc&&Object['defineProperty'](_0xb6916,_0x5aef48,_0x3597dc),_0x3597dc;},__metadata=this&&this[a11_0x2b1102(0x194)]||function(_0x2cda3b,_0x4309af){var _0x382d8f=a11_0x2b1102;if(typeof Reflect===_0x382d8f(0x1a1)&&typeof Reflect[_0x382d8f(0x198)]===_0x382d8f(0x197))return Reflect[_0x382d8f(0x198)](_0x2cda3b,_0x4309af);};Object['defineProperty'](exports,a11_0x2b1102(0x17a),{'value':!![]}),exports[a11_0x2b1102(0x1af)]=void 0x0;const crypto_js_1=require(a11_0x2b1102(0x19a)),core_1=require('@midwayjs/core'),ApiError_1=require(a11_0x2b1102(0x192));let ApiService=class ApiService{[a11_0x2b1102(0x19d)](_0x33c1e8){var _0x114f15=a11_0x2b1102,_0x349786;return _0x33c1e8?(0x0,crypto_js_1[_0x114f15(0x178)])(''+_0x33c1e8+(0x0,crypto_js_1[_0x114f15(0x178)])((0x0,crypto_js_1[_0x114f15(0x178)])(''+_0x33c1e8)[_0x114f15(0x17f)]()+(''+((_0x349786=this['config'])===null||_0x349786===void 0x0?void 0x0:_0x349786[_0x114f15(0x19d)])))['toString']())[_0x114f15(0x17f)]():'';}[a11_0x2b1102(0x191)](_0x43ed0d,_0x5d81bb,_0x317128=Date['now']()){var _0x4b22b2=a11_0x2b1102;return{'Token':_0x43ed0d,'Logintime':_0x317128,'Checkcode':this[_0x4b22b2(0x18f)](_0x43ed0d,_0x5d81bb,_0x317128)};}[a11_0x2b1102(0x1ae)](_0x21b16b={}){var _0x295608=a11_0x2b1102,_0x37f44e,_0x17a120;const _0x72092e=[],_0x43b7e0=Object['fromEntries'](Object[_0x295608(0x19e)](_0x21b16b)['map'](_0x4ca905=>[_0x4ca905[0x0]['toLowerCase'](),_0x4ca905[0x1]]));for(let _0x2642b8 of[_0x295608(0x180),_0x295608(0x1b1),_0x295608(0x1a0),'logintime',_0x295608(0x18f)]){if(typeof _0x43b7e0[_0x2642b8]=='undefined')throw new AnnError(ApiError_1[_0x295608(0x18e)][_0x295608(0x171)],{'message':_0x295608(0x183)});_0x72092e['push'](_0x2642b8+'='+_0x43b7e0[_0x2642b8]);}_0x43b7e0['requesttime']&&((_0x37f44e=_0x43b7e0[_0x295608(0x1b1)])===null||_0x37f44e===void 0x0?void 0x0:_0x37f44e['length'])==0xa&&(_0x43b7e0[_0x295608(0x1b1)]=_0x43b7e0[_0x295608(0x1b1)]*0x3e8);if(this[_0x295608(0x1a4)]['timeout']&&parseInt((''+Date[_0x295608(0x193)]())[_0x295608(0x176)](0x0,0xd)[_0x295608(0x1b0)](0xd,'0'))-parseInt((''+Math['abs'](_0x43b7e0['requesttime']))[_0x295608(0x176)](0x0,0xd)[_0x295608(0x1b0)](0xd,'0'))>parseInt(this[_0x295608(0x1a4)]['timeout']))throw new AnnError(ApiError_1[_0x295608(0x18e)][_0x295608(0x18d)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x43b7e0['requesttime'],'timestamp':Date['now']()});if((((_0x17a120=this[_0x295608(0x1a4)][_0x295608(0x1a7)][_0x43b7e0[_0x295608(0x180)]])===null||_0x17a120===void 0x0?void 0x0:_0x17a120[_0x295608(0x18a)])||0x0)>0x0&&Date[_0x295608(0x193)]()-Math['abs'](_0x43b7e0[_0x295608(0x19c)])>this['config'][_0x295608(0x1a7)][_0x43b7e0[_0x295608(0x180)]]['logintimeout'])throw new AnnError(ApiError_1['ApiError'][_0x295608(0x1a3)]);if(!this[_0x295608(0x1a4)]['devices'][_0x43b7e0['device']]||!this['config'][_0x295608(0x1a7)][_0x43b7e0[_0x295608(0x180)]]['secret']||!this[_0x295608(0x1a4)]['devices'][_0x43b7e0[_0x295608(0x180)]][_0x295608(0x18f)])throw new AnnError(ApiError_1['ApiError'][_0x295608(0x188)]);if(_0x43b7e0['token']&&_0x43b7e0['checkcode']!=this[_0x295608(0x18f)](_0x43b7e0['token'],_0x43b7e0['device'],_0x43b7e0[_0x295608(0x19c)]))throw new AnnError(ApiError_1[_0x295608(0x18e)][_0x295608(0x18c)]);return _0x72092e[_0x295608(0x1ab)](_0x295608(0x186)+this['config'][_0x295608(0x1a7)][_0x43b7e0[_0x295608(0x180)]][_0x295608(0x1ac)]),(0x0,crypto_js_1[_0x295608(0x178)])(_0x72092e[_0x295608(0x1b2)]()['join'](''))[_0x295608(0x17f)]();}[a11_0x2b1102(0x18f)](_0x2d0a9b,_0x422ad8,_0x2f3a88=Date['now']()){var _0x3bac77=a11_0x2b1102,_0x3a171a,_0xd8648d,_0xfb1c51;if(!((_0x3a171a=this[_0x3bac77(0x1a4)])===null||_0x3a171a===void 0x0?void 0x0:_0x3a171a[_0x3bac77(0x1a7)][_0x422ad8])||!((_0xfb1c51=(_0xd8648d=this[_0x3bac77(0x1a4)])===null||_0xd8648d===void 0x0?void 0x0:_0xd8648d[_0x3bac77(0x1a7)][_0x422ad8])===null||_0xfb1c51===void 0x0?void 0x0:_0xfb1c51[_0x3bac77(0x18f)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x3bac77(0x178)])(''+_0x2d0a9b+(0x0,crypto_js_1[_0x3bac77(0x178)])(''+_0x2f3a88+(''+this['config'][_0x3bac77(0x1a7)][_0x422ad8][_0x3bac77(0x18f)]))[_0x3bac77(0x17f)]())[_0x3bac77(0x17f)]();}[a11_0x2b1102(0x17d)](_0x1aff48={}){var _0x8572ab=a11_0x2b1102;const _0x1f21e0=Object[_0x8572ab(0x17e)](Object[_0x8572ab(0x19e)](_0x1aff48)[_0x8572ab(0x181)](_0xdfed8c=>[_0xdfed8c[0x0][_0x8572ab(0x173)](),_0xdfed8c[0x1]]));if(!(_0x1f21e0===null||_0x1f21e0===void 0x0?void 0x0:_0x1f21e0[_0x8572ab(0x19f)]))throw new AnnError(ApiError_1[_0x8572ab(0x18e)][_0x8572ab(0x171)],{'message':_0x8572ab(0x183)});if((_0x1f21e0===null||_0x1f21e0===void 0x0?void 0x0:_0x1f21e0['signature'])!=this[_0x8572ab(0x1ae)](_0x1f21e0))throw new AnnError(ApiError_1[_0x8572ab(0x18e)][_0x8572ab(0x179)],{'message':_0x8572ab(0x183)});return!![];}};function a11_0x503b(_0x5100fc,_0x3250ef){var _0x1d7090=a11_0x3a1c();return a11_0x503b=function(_0x1cc262,_0x4acc5f){_0x1cc262=_0x1cc262-0x171;var _0x3a1c5a=_0x1d7090[_0x1cc262];return _0x3a1c5a;},a11_0x503b(_0x5100fc,_0x3250ef);}function a11_0x3a1c(){var _0x48d087=['getsign','ApiService','padEnd','requesttime','sort','HEADERS_LACK','70WEGmMa','toLowerCase','Config','anncicapi','substring','prototype','MD5','HEADERS_SIGNATURE','__esModule','Singleton','492ShSfyV','checksign','fromEntries','toString','device','map','1331260QWTpac','验证失败','getOwnPropertyDescriptor','design:type','secret=','ScopeEnum','HEADERS_DEVICE','15390eIEyzv','logintimeout','apply','HEADERS_CHECKCODE','TIMEOUT','ApiError','checkcode','length','getcheck','../exception/ApiError','now','__metadata','638296XFcmYv','1038627aYWuan','function','metadata','decorate','crypto-js','Scope','logintime','password','entries','signature','token','object','search','TIMEOUT_LOGINTIME','config','15937oXoXwg','Provide','devices','26dwnkWp','(((.+)+)+)+$','85672JkRgaB','push','secret','694752PBroyK'];a11_0x3a1c=function(){return _0x48d087;};return a11_0x3a1c();}exports['ApiService']=ApiService,__decorate([(0x0,core_1[a11_0x2b1102(0x174)])(a11_0x2b1102(0x175)),__metadata(a11_0x2b1102(0x185),Object)],ApiService[a11_0x2b1102(0x177)],a11_0x2b1102(0x1a4),void 0x0),exports[a11_0x2b1102(0x1af)]=ApiService=__decorate([(0x0,core_1[a11_0x2b1102(0x1a6)])(),(0x0,core_1[a11_0x2b1102(0x19b)])(core_1[a11_0x2b1102(0x187)][a11_0x2b1102(0x17b)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a12_0x575c(_0x29de9b,_0x1e08b8){const _0xeddf2c=a12_0x5f1a();return a12_0x575c=function(_0x49609a,_0x5cf9b1){_0x49609a=_0x49609a-0xa8;let _0x5f1aee=_0xeddf2c[_0x49609a];return _0x5f1aee;},a12_0x575c(_0x29de9b,_0x1e08b8);}function a12_0x5f1a(){const _0x3f0875=['search','existsSync','Singleton','apidoc','760bsynYH','2879964RlyKkb','prototype','__esModule','/apitest-:module','apiteststatic','Config','text/css;\x20charset=utf-8','decorate','prefix','filepath','content-type','../helper/getRoutes','745964TaoCIH','stringify','Environment','request','design:paramtypes','__decorate','public,\x20max-age=604800','102664vCIucc','97101VnTVHk','apitest','../../public/','567HXkxYr','__metadata','length','Param','substring','url','/apiteststatic/','application/javascript;\x20charset=utf-8','metadata','Provide','toString','2631395KAxuiI','/apiteststatic/*','.css','6252brqeNv','extname','__apiList__','apply','/apitest','design:returntype','Scope','design:type','replace','anncicapi','ApitestStaticController','apitesthtml','26083409QTIwlL','Inject','ctx','isDevelopmentEnvironment','1504GsaBuB','description','../../public/index.html','MidwayEnvironmentService','@midwayjs/core','ScopeEnum','ApitestService','route','Get','module','push','function','set','apitestmodule','devices','.js','readFileSync','routes','__param','constructor','Request','join','config','object','1dFQhVX','summary'];a12_0x5f1a=function(){return _0x3f0875;};return a12_0x5f1a();}const a12_0x2d35de=a12_0x575c;(function(_0x4f09f5,_0x3e94dd){const _0xc1e510=a12_0x575c,_0x567bb4=_0x4f09f5();while(!![]){try{const _0x2a8165=parseInt(_0xc1e510(0xf9))/0x1*(parseInt(_0xc1e510(0xb8))/0x2)+-parseInt(_0xc1e510(0xd1))/0x3*(-parseInt(_0xc1e510(0xe1))/0x4)+-parseInt(_0xc1e510(0xce))/0x5+parseInt(_0xc1e510(0xac))/0x6+parseInt(_0xc1e510(0xc3))/0x7*(parseInt(_0xc1e510(0xbf))/0x8)+parseInt(_0xc1e510(0xc0))/0x9*(parseInt(_0xc1e510(0xab))/0xa)+-parseInt(_0xc1e510(0xdd))/0xb;if(_0x2a8165===_0x3e94dd)break;else _0x567bb4['push'](_0x567bb4['shift']());}catch(_0xd0fc0f){_0x567bb4['push'](_0x567bb4['shift']());}}}(a12_0x5f1a,0x921e3));const a12_0x5cf9b1=(function(){let _0x201f0e=!![];return function(_0x33e147,_0x1f289e){const _0x39dff1=_0x201f0e?function(){const _0x973608=a12_0x575c;if(_0x1f289e){const _0x4e8f6c=_0x1f289e[_0x973608(0xd4)](_0x33e147,arguments);return _0x1f289e=null,_0x4e8f6c;}}:function(){};return _0x201f0e=![],_0x39dff1;};}()),a12_0x49609a=a12_0x5cf9b1(this,function(){const _0x33c2fd=a12_0x575c;return a12_0x49609a[_0x33c2fd(0xcd)]()['search']('(((.+)+)+)+$')[_0x33c2fd(0xcd)]()[_0x33c2fd(0xf4)](a12_0x49609a)[_0x33c2fd(0xfb)]('(((.+)+)+)+$');});a12_0x49609a();'use strict';var __decorate=this&&this[a12_0x2d35de(0xbd)]||function(_0x284ca8,_0xb7b5c8,_0x384c91,_0x18e0c5){const _0x584e1e=a12_0x2d35de;var _0x44e185=arguments[_0x584e1e(0xc5)],_0x3b81fb=_0x44e185<0x3?_0xb7b5c8:_0x18e0c5===null?_0x18e0c5=Object['getOwnPropertyDescriptor'](_0xb7b5c8,_0x384c91):_0x18e0c5,_0x3f5589;if(typeof Reflect==='object'&&typeof Reflect[_0x584e1e(0xb3)]===_0x584e1e(0xec))_0x3b81fb=Reflect['decorate'](_0x284ca8,_0xb7b5c8,_0x384c91,_0x18e0c5);else{for(var _0x28b9dd=_0x284ca8[_0x584e1e(0xc5)]-0x1;_0x28b9dd>=0x0;_0x28b9dd--)if(_0x3f5589=_0x284ca8[_0x28b9dd])_0x3b81fb=(_0x44e185<0x3?_0x3f5589(_0x3b81fb):_0x44e185>0x3?_0x3f5589(_0xb7b5c8,_0x384c91,_0x3b81fb):_0x3f5589(_0xb7b5c8,_0x384c91))||_0x3b81fb;}return _0x44e185>0x3&&_0x3b81fb&&Object['defineProperty'](_0xb7b5c8,_0x384c91,_0x3b81fb),_0x3b81fb;},__metadata=this&&this[a12_0x2d35de(0xc4)]||function(_0x5b93fd,_0x42954a){const _0x1c8c04=a12_0x2d35de;if(typeof Reflect===_0x1c8c04(0xf8)&&typeof Reflect[_0x1c8c04(0xcb)]===_0x1c8c04(0xec))return Reflect[_0x1c8c04(0xcb)](_0x5b93fd,_0x42954a);},__param=this&&this[a12_0x2d35de(0xf3)]||function(_0x2eeaad,_0x5e1ee3){return function(_0x409108,_0x56347f){_0x5e1ee3(_0x409108,_0x56347f,_0x2eeaad);};};Object['defineProperty'](exports,a12_0x2d35de(0xae),{'value':!![]}),exports[a12_0x2d35de(0xdb)]=exports[a12_0x2d35de(0xe7)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a12_0x2d35de(0xe5)),core_2=require(a12_0x2d35de(0xe5)),core_3=require(a12_0x2d35de(0xe5)),getRoutes_1=require(a12_0x2d35de(0xb7));let ApitestService=class ApitestService{async['apidoc'](_0x1a3387){const _0x13e339=a12_0x2d35de,_0x491184=(0x0,getRoutes_1['getRoutes'])(_0x1a3387),_0x3f9beb=[];for(let _0x33b864 in _0x491184){for(let _0x1df1c8 in _0x491184[_0x33b864][_0x13e339(0xf2)]){let _0x58c639=_0x491184[_0x33b864][_0x13e339(0xf2)][_0x1df1c8],_0x376228=[];for(let _0x2f6310 in _0x58c639[_0x13e339(0xbb)]){_0x376228['push'](_0x58c639[_0x13e339(0xbb)][_0x2f6310]);}_0x3f9beb[_0x13e339(0xeb)]({'title':_0x491184[_0x33b864]['summary']+':'+_0x58c639[_0x13e339(0xfa)],'prefix':_0x491184[_0x33b864][_0x13e339(0xb4)],'router':_0x58c639[_0x13e339(0xe8)],'method':_0x58c639['method'],'describe':_0x58c639[_0x13e339(0xe2)]||'','filepath':_0x491184[_0x33b864][_0x13e339(0xb5)]||'','request':_0x376228});}}const _0x3ae7b6=(0x0,path_1[_0x13e339(0xf6)])(__dirname,_0x13e339(0xe3));return(0x0,fs_1[_0x13e339(0xf1)])(_0x3ae7b6,{'encoding':'utf-8'})[_0x13e339(0xd9)](/__res__/g,_0x13e339(0xc9))[_0x13e339(0xd9)](_0x13e339(0xd3),JSON[_0x13e339(0xb9)](_0x3f9beb))[_0x13e339(0xd9)]('__devices__',JSON[_0x13e339(0xb9)](this[_0x13e339(0xf7)][_0x13e339(0xef)]));}};exports[a12_0x2d35de(0xe7)]=ApitestService,__decorate([(0x0,core_3[a12_0x2d35de(0xb1)])(a12_0x2d35de(0xda)),__metadata(a12_0x2d35de(0xd8),Object)],ApitestService['prototype'],a12_0x2d35de(0xf7),void 0x0),exports[a12_0x2d35de(0xe7)]=ApitestService=__decorate([(0x0,core_2[a12_0x2d35de(0xcc)])(a12_0x2d35de(0xc1)),(0x0,core_3[a12_0x2d35de(0xd7)])(core_3[a12_0x2d35de(0xe6)][a12_0x2d35de(0xa9)])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a12_0x2d35de(0xdc)](){const _0x545e48=a12_0x2d35de;if(this[_0x545e48(0xc1)]){const _0x4fca78={'module':![]};return this[_0x545e48(0xba)][_0x545e48(0xe0)]()&&(_0x4fca78['filepath']=!![]),await this['ApitestService'][_0x545e48(0xaa)](_0x4fca78);}return'';}async[a12_0x2d35de(0xee)](_0x576363){const _0x4dba40=a12_0x2d35de;if(this[_0x4dba40(0xc1)]){const _0x327f3e={'module':_0x576363};return this[_0x4dba40(0xba)]['isDevelopmentEnvironment']()&&(_0x327f3e[_0x4dba40(0xb5)]=!![]),await this[_0x4dba40(0xe7)][_0x4dba40(0xaa)](_0x327f3e);}return'';}async[a12_0x2d35de(0xb0)](){const _0x36edf7=a12_0x2d35de;if((0x0,path_1[_0x36edf7(0xd2)])(this[_0x36edf7(0xdf)][_0x36edf7(0xbb)]['url'])){var _0x33dffc=(0x0,path_1[_0x36edf7(0xf6)])(__dirname,_0x36edf7(0xc2)+this['ctx']['request']['url'][_0x36edf7(0xd9)](_0x36edf7(0xc9),'/'));if(_0x33dffc[_0x36edf7(0xc7)](_0x33dffc['length']-0xb)!='/index.html'){this[_0x36edf7(0xdf)]['set']('cache-control',_0x36edf7(0xbe));if((0x0,path_1[_0x36edf7(0xd2)])(this[_0x36edf7(0xdf)][_0x36edf7(0xbb)][_0x36edf7(0xc8)])==_0x36edf7(0xf0))this[_0x36edf7(0xdf)][_0x36edf7(0xed)]('content-type',_0x36edf7(0xca));else(0x0,path_1[_0x36edf7(0xd2)])(this[_0x36edf7(0xdf)][_0x36edf7(0xbb)][_0x36edf7(0xc8)])==_0x36edf7(0xd0)&&this['ctx'][_0x36edf7(0xed)](_0x36edf7(0xb6),_0x36edf7(0xb2));return(0x0,fs_1[_0x36edf7(0xa8)])(_0x33dffc)&&(0x0,fs_1['readFileSync'])(_0x33dffc,{'encoding':'utf-8'});}}return'';}};exports[a12_0x2d35de(0xdb)]=ApitestStaticController,__decorate([(0x0,core_3[a12_0x2d35de(0xde)])(),__metadata(a12_0x2d35de(0xd8),Object)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xdf),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x2d35de(0xd8),core_1[a12_0x2d35de(0xe4)])],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xba),void 0x0),__decorate([(0x0,core_3[a12_0x2d35de(0xde)])(),__metadata(a12_0x2d35de(0xd8),ApitestService)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xe7),void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x2d35de(0xc1)),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xc1),void 0x0),__decorate([(0x0,core_3[a12_0x2d35de(0xb1)])('anncicapi'),__metadata(a12_0x2d35de(0xd8),Object)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xf7),void 0x0),__decorate([(0x0,core_2['Get'])(a12_0x2d35de(0xd5)),__metadata(a12_0x2d35de(0xd8),Function),__metadata(a12_0x2d35de(0xbc),[]),__metadata(a12_0x2d35de(0xd6),Promise)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xdc),null),__decorate([(0x0,core_2[a12_0x2d35de(0xe9)])(a12_0x2d35de(0xaf)),__param(0x0,(0x0,core_2[a12_0x2d35de(0xc6)])(a12_0x2d35de(0xea))),__metadata(a12_0x2d35de(0xd8),Function),__metadata(a12_0x2d35de(0xbc),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xee),null),__decorate([(0x0,core_2['Get'])(a12_0x2d35de(0xcf)),__metadata('design:type',Function),__metadata(a12_0x2d35de(0xbc),[]),__metadata(a12_0x2d35de(0xd6),Promise)],ApitestStaticController[a12_0x2d35de(0xad)],a12_0x2d35de(0xb0),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a12_0x2d35de(0xf5)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13_0x2cd4e9=a13_0x1a55;(function(_0x429286,_0x598bd7){const _0x38517c=a13_0x1a55,_0x245922=_0x429286();while(!![]){try{const _0x1f5e96=parseInt(_0x38517c(0x185))/0x1+-parseInt(_0x38517c(0x1c0))/0x2+-parseInt(_0x38517c(0x1b8))/0x3+-parseInt(_0x38517c(0x1c3))/0x4*(parseInt(_0x38517c(0x1b7))/0x5)+-parseInt(_0x38517c(0x1ac))/0x6*(parseInt(_0x38517c(0x18d))/0x7)+parseInt(_0x38517c(0x188))/0x8*(parseInt(_0x38517c(0x196))/0x9)+parseInt(_0x38517c(0x1bf))/0xa;if(_0x1f5e96===_0x598bd7)break;else _0x245922['push'](_0x245922['shift']());}catch(_0x5deeca){_0x245922['push'](_0x245922['shift']());}}}(a13_0xe231,0xbedf3));const a13_0x3ba9ad=(function(){let _0x56c0f3=!![];return function(_0x350f10,_0x5b425e){const _0x568d7d=_0x56c0f3?function(){if(_0x5b425e){const _0x23a9ce=_0x5b425e['apply'](_0x350f10,arguments);return _0x5b425e=null,_0x23a9ce;}}:function(){};return _0x56c0f3=![],_0x568d7d;};}()),a13_0x515529=a13_0x3ba9ad(this,function(){const _0x3fe21f=a13_0x1a55;return a13_0x515529[_0x3fe21f(0x1a1)]()['search'](_0x3fe21f(0x18e))['toString']()[_0x3fe21f(0x1ba)](a13_0x515529)['search'](_0x3fe21f(0x18e));});a13_0x515529();'use strict';var __decorate=this&&this[a13_0x2cd4e9(0x1ad)]||function(_0x547974,_0x39b202,_0xe50062,_0x31f5db){const _0x551e54=a13_0x2cd4e9;var _0x3880e0=arguments[_0x551e54(0x19e)],_0x4bf13a=_0x3880e0<0x3?_0x39b202:_0x31f5db===null?_0x31f5db=Object['getOwnPropertyDescriptor'](_0x39b202,_0xe50062):_0x31f5db,_0x5ac0f4;if(typeof Reflect===_0x551e54(0x17e)&&typeof Reflect[_0x551e54(0x191)]===_0x551e54(0x19b))_0x4bf13a=Reflect[_0x551e54(0x191)](_0x547974,_0x39b202,_0xe50062,_0x31f5db);else{for(var _0x119c7b=_0x547974['length']-0x1;_0x119c7b>=0x0;_0x119c7b--)if(_0x5ac0f4=_0x547974[_0x119c7b])_0x4bf13a=(_0x3880e0<0x3?_0x5ac0f4(_0x4bf13a):_0x3880e0>0x3?_0x5ac0f4(_0x39b202,_0xe50062,_0x4bf13a):_0x5ac0f4(_0x39b202,_0xe50062))||_0x4bf13a;}return _0x3880e0>0x3&&_0x4bf13a&&Object['defineProperty'](_0x39b202,_0xe50062,_0x4bf13a),_0x4bf13a;},__metadata=this&&this['__metadata']||function(_0x3e1b44,_0x234396){const _0x8e2cbb=a13_0x2cd4e9;if(typeof Reflect===_0x8e2cbb(0x17e)&&typeof Reflect[_0x8e2cbb(0x1b1)]===_0x8e2cbb(0x19b))return Reflect[_0x8e2cbb(0x1b1)](_0x3e1b44,_0x234396);};Object['defineProperty'](exports,a13_0x2cd4e9(0x186),{'value':!![]}),exports['ExcelService']=void 0x0;function a13_0xe231(){const _0x2c334d=['model','addRow','replace','32015LEYQyJ','1285074OuJosg','parse','constructor','header','rowCount','columns','addWorksheet','17760480cRMweO','2274264HjSPrd','endsWith','getColumn','612BKOePN','object','log','design:type','prototype','xls','Provide','xlsx','1253446iITZzU','__esModule','mkdirSync','16IPmfWs','handler','App','push','value','469jROrdW','(((.+)+)+)+$','./ExcelStream','getAppDir','decorate','ExcelStream','format','getCell','findRows','4891473rrKgnU','\x20is\x20read\x20fail','keys','Workbook','writeFile','function','readFile','key','length','instance','onWrite','toString','ExcelService','download','getWorksheet','startsWith','worksheets','app','substring','onRead','Sheet\x201','frozen','70704XFlAAb','__decorate','export','ScopeEnum','get','metadata','cellCount','set'];a13_0xe231=function(){return _0x2c334d;};return a13_0xe231();}const fs=require('fs'),exceljs=require('exceljs'),koasend=require('koa-send'),core_1=require('@midwayjs/core'),ExcelStream_1=require(a13_0x2cd4e9(0x18f));let ExcelService=class ExcelService{async[a13_0x2cd4e9(0x1b9)](_0x1e849f,_0x398a89,_0xdb575c=[0x0]){const _0x312956=a13_0x2cd4e9;var _0x2935c6,_0x54e4b5;const _0x5792f3=new exceljs[(_0x312956(0x199))](),_0x36e4cd=[];let _0x3df858=_0x1e849f['replace'](/(\\|\/)/g,'/')[_0x312956(0x1b6)](/\/{2,}/g,'/');!(_0x3df858===null||_0x3df858===void 0x0?void 0x0:_0x3df858[_0x312956(0x1a5)]('/'))&&(_0x3df858=this[_0x312956(0x1a7)][_0x312956(0x190)]()+'/'+_0x3df858);try{await _0x5792f3[_0x312956(0x184)][_0x312956(0x19c)](_0x3df858);}catch(_0x233f0b){return console[_0x312956(0x17f)]('Api\x20Excel\x20Error:\x20'+_0x3df858+_0x312956(0x197)),_0x36e4cd;}for(const _0x26b465 of _0xdb575c){const _0x3283fc=lodash['isNumber'](_0x26b465)?((_0x2935c6=_0x5792f3[_0x312956(0x1a6)])===null||_0x2935c6===void 0x0?void 0x0:_0x2935c6[_0x26b465])||undefined:_0x5792f3[_0x312956(0x1a4)](_0x26b465);if(_0x3283fc){var _0x29325a=0x1;const _0x3fd135=_0x3283fc['getRow'](0x1),_0x1d7915=await new Promise(_0x5ed452=>{const _0x25dc66={};_0x3fd135['eachCell']((_0x110587,_0x4a8a55)=>{const _0x182abf=a13_0x1a55;for(const _0x381ae7 of _0x398a89){if(_0x110587[_0x182abf(0x18c)]==_0x381ae7['header'])_0x29325a=0x2,_0x25dc66[_0x381ae7[_0x182abf(0x19d)]]={'header':_0x110587['col'],'handler':(_0x381ae7===null||_0x381ae7===void 0x0?void 0x0:_0x381ae7[_0x182abf(0x1a9)])||(_0x381ae7===null||_0x381ae7===void 0x0?void 0x0:_0x381ae7[_0x182abf(0x189)])};else{if(!_0x25dc66[_0x381ae7[_0x182abf(0x19d)]])try{const _0x1f7d03=_0x3fd135&&_0x3fd135[_0x182abf(0x194)](_0x381ae7[_0x182abf(0x1bb)]);_0x1f7d03&&(_0x25dc66[_0x381ae7[_0x182abf(0x19d)]]={'header':_0x1f7d03['col'],'handler':(_0x381ae7===null||_0x381ae7===void 0x0?void 0x0:_0x381ae7[_0x182abf(0x1a9)])||(_0x381ae7===null||_0x381ae7===void 0x0?void 0x0:_0x381ae7[_0x182abf(0x189)])});}catch{}}}_0x3fd135[_0x182abf(0x1b2)]==_0x4a8a55&&_0x5ed452(_0x25dc66);});});_0x5ed2cf:for(const _0x27f440 of _0x3283fc[_0x312956(0x195)](_0x29325a,_0x3283fc[_0x312956(0x1bc)])){if(typeof(_0x27f440===null||_0x27f440===void 0x0?void 0x0:_0x27f440[_0x312956(0x194)])!=_0x312956(0x19b))continue _0x5ed2cf;const _0x2733ce={};_0x10891d:for(const _0x23469f in _0x1d7915){if(_0x1d7915[_0x23469f]['header']){const _0x164f82=_0x27f440['getCell'](_0x1d7915[_0x23469f][_0x312956(0x1bb)]);if(!_0x164f82)continue _0x10891d;try{_0x164f82[_0x312956(0x1a1)]();}catch(_0x3a9afd){_0x164f82[_0x312956(0x1a1)]=()=>{const _0x212595=_0x312956;var _0x1ab39a;return''+(((_0x1ab39a=_0x164f82===null||_0x164f82===void 0x0?void 0x0:_0x164f82[_0x212595(0x1b4)])===null||_0x1ab39a===void 0x0?void 0x0:_0x1ab39a[_0x212595(0x18c)])||'');};}typeof((_0x54e4b5=_0x1d7915[_0x23469f])===null||_0x54e4b5===void 0x0?void 0x0:_0x54e4b5[_0x312956(0x189)])=='function'?_0x2733ce[_0x23469f]=await _0x1d7915[_0x23469f][_0x312956(0x189)](lodash[_0x312956(0x1b3)]({},_0x23469f,(_0x164f82===null||_0x164f82===void 0x0?void 0x0:_0x164f82[_0x312956(0x1a1)]())||''),_0x164f82['model']):_0x2733ce[_0x23469f]=(_0x164f82===null||_0x164f82===void 0x0?void 0x0:_0x164f82['toString']())||'';}}Object[_0x312956(0x198)](_0x2733ce)[_0x312956(0x19e)]>0x0&&Object['values'](_0x2733ce)['filter'](_0x7fc073=>_0x7fc073!='')[_0x312956(0x19e)]>0x0&&_0x36e4cd[_0x312956(0x18b)](_0x2733ce);}}}return _0x36e4cd;}async[a13_0x2cd4e9(0x1ae)](_0x1e2d95,_0x5f09e1,_0x3538dc,_0x59bf1d,_0x13f3cf){const _0x5ac6b8=a13_0x2cd4e9;var _0x51448c,_0x2e4000,_0x3f8f9b;const _0x4fb962=new exceljs[(_0x5ac6b8(0x199))](),_0x1cef8f={},_0x332bb9=[],_0x136dae=_0x4fb962[_0x5ac6b8(0x1be)](_0x5ac6b8(0x1aa),{'views':[{'state':_0x5ac6b8(0x1ab),'ySplit':0x1}]});for(const _0x3cfbfb in _0x5f09e1){_0x1cef8f[_0x5f09e1[_0x3cfbfb][_0x5ac6b8(0x19d)]]=_0x5f09e1[_0x3cfbfb][_0x5ac6b8(0x1bb)],_0x332bb9[_0x5ac6b8(0x18b)]({'header':_0x5f09e1[_0x3cfbfb]['header'],'key':(_0x51448c=_0x5f09e1[_0x3cfbfb])===null||_0x51448c===void 0x0?void 0x0:_0x51448c[_0x5ac6b8(0x19d)]['replace'](/\./g,'_')});}_0x136dae[_0x5ac6b8(0x1bd)]=_0x332bb9;for(const _0x14acd4 in _0x3538dc){const _0x670960=_0x3538dc[_0x14acd4],_0x405444=_0x136dae[_0x5ac6b8(0x1b5)]({});for(let _0x3298c2 in _0x5f09e1){const _0x15dabd=_0x5f09e1[_0x3298c2][_0x5ac6b8(0x19d)][_0x5ac6b8(0x1b6)](/\./g,'_'),_0x20e1a5=_0x136dae[_0x5ac6b8(0x1c2)](_0x15dabd),_0x1924cf=_0x405444===null||_0x405444===void 0x0?void 0x0:_0x405444[_0x5ac6b8(0x194)](_0x15dabd);if(typeof((_0x2e4000=_0x5f09e1[_0x3298c2])===null||_0x2e4000===void 0x0?void 0x0:_0x2e4000[_0x5ac6b8(0x1a0)])==_0x5ac6b8(0x19b))_0x1924cf[_0x5ac6b8(0x18c)]=await _0x5f09e1[_0x3298c2][_0x5ac6b8(0x1a0)](_0x670960,{'row':_0x405444,'col':_0x20e1a5,'cell':_0x1924cf,'sheet':_0x136dae})||'';else typeof((_0x3f8f9b=_0x5f09e1[_0x3298c2])===null||_0x3f8f9b===void 0x0?void 0x0:_0x3f8f9b[_0x5ac6b8(0x189)])==_0x5ac6b8(0x19b)?_0x1924cf[_0x5ac6b8(0x18c)]=await _0x5f09e1[_0x3298c2][_0x5ac6b8(0x189)](_0x670960,{'row':_0x405444,'col':_0x20e1a5,'cell':_0x1924cf,'sheet':_0x136dae})||'':_0x1924cf[_0x5ac6b8(0x18c)]=lodash[_0x5ac6b8(0x1b0)](_0x670960,_0x5f09e1[_0x3298c2][_0x5ac6b8(0x19d)],'');}}typeof _0x13f3cf==_0x5ac6b8(0x19b)&&await _0x13f3cf({'workbook':_0x4fb962,'worksheet':_0x136dae});let _0x2f6de5='';const _0x36a9cd=_0x1e2d95+'.xlsx';if(_0x59bf1d&&_0x59bf1d[_0x5ac6b8(0x1a5)]('/'))_0x2f6de5=''+_0x59bf1d;else _0x59bf1d&&!_0x59bf1d[_0x5ac6b8(0x1a5)]('/')&&!_0x59bf1d[_0x5ac6b8(0x1a5)]('\x5c')?_0x2f6de5=this[_0x5ac6b8(0x1a7)][_0x5ac6b8(0x190)]()+'/'+_0x59bf1d:_0x2f6de5=this[_0x5ac6b8(0x1a7)][_0x5ac6b8(0x190)]()+'/public/xlsx/'+dayjs()[_0x5ac6b8(0x193)]('YYYY/MM/DD');return(_0x2f6de5[_0x5ac6b8(0x1c1)]('/')||_0x2f6de5['endsWith']('\x5c'))&&(_0x2f6de5=_0x2f6de5[_0x5ac6b8(0x1a8)](0x0,_0x2f6de5[_0x5ac6b8(0x19e)]-0x1)),_0x2f6de5=_0x2f6de5[_0x5ac6b8(0x1b6)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x2f6de5)&&fs[_0x5ac6b8(0x187)](_0x2f6de5,{'recursive':!![]}),await _0x4fb962[_0x5ac6b8(0x184)][_0x5ac6b8(0x19a)]((_0x2f6de5+'/'+_0x36a9cd)['replace'](/(\\|\/)/g,'/')[_0x5ac6b8(0x1b6)](/\/{2,}/g,'/')),{'filename':_0x36a9cd,'filepath':(_0x2f6de5[_0x5ac6b8(0x1a8)]((''+this[_0x5ac6b8(0x1a7)][_0x5ac6b8(0x190)]())[_0x5ac6b8(0x19e)])+'/'+_0x36a9cd)[_0x5ac6b8(0x1b6)](/(\\|\/)/g,'/')[_0x5ac6b8(0x1b6)](/\/{2,}/g,'/')};}async['stream'](_0x2c325f,_0x52335d={'suffix':[a13_0x2cd4e9(0x182),a13_0x2cd4e9(0x184)]}){const _0x3d1fce=a13_0x2cd4e9;return await ExcelStream_1[_0x3d1fce(0x192)][_0x3d1fce(0x19f)](_0x2c325f,_0x52335d);}async[a13_0x2cd4e9(0x1a3)](_0x15ae72,_0x1440e8){return await koasend(_0x15ae72,''+_0x1440e8);}};function a13_0x1a55(_0x366b74,_0x2e5712){const _0x1f7182=a13_0xe231();return a13_0x1a55=function(_0x515529,_0x3ba9ad){_0x515529=_0x515529-0x17e;let _0xe231b0=_0x1f7182[_0x515529];return _0xe231b0;},a13_0x1a55(_0x366b74,_0x2e5712);}exports[a13_0x2cd4e9(0x1a2)]=ExcelService,__decorate([(0x0,core_1[a13_0x2cd4e9(0x18a)])(),__metadata(a13_0x2cd4e9(0x180),Object)],ExcelService[a13_0x2cd4e9(0x181)],'app',void 0x0),exports[a13_0x2cd4e9(0x1a2)]=ExcelService=__decorate([(0x0,core_1[a13_0x2cd4e9(0x183)])(),(0x0,core_1['Scope'])(core_1[a13_0x2cd4e9(0x1af)]['Singleton'])],ExcelService);
|
|
1
|
+
function a13_0xf4ad(_0x137caa,_0x5c93dc){const _0x23ba3d=a13_0x1830();return a13_0xf4ad=function(_0x5ca154,_0x391f91){_0x5ca154=_0x5ca154-0x1c6;let _0x1830ce=_0x23ba3d[_0x5ca154];return _0x1830ce;},a13_0xf4ad(_0x137caa,_0x5c93dc);}const a13_0x1c2d39=a13_0xf4ad;(function(_0x5e4ec1,_0x3f294e){const _0x25c722=a13_0xf4ad,_0x50a0a7=_0x5e4ec1();while(!![]){try{const _0x1b77f0=parseInt(_0x25c722(0x1e8))/0x1+parseInt(_0x25c722(0x203))/0x2+-parseInt(_0x25c722(0x1da))/0x3*(-parseInt(_0x25c722(0x1d1))/0x4)+-parseInt(_0x25c722(0x1ff))/0x5+parseInt(_0x25c722(0x207))/0x6*(parseInt(_0x25c722(0x206))/0x7)+-parseInt(_0x25c722(0x1cd))/0x8+parseInt(_0x25c722(0x201))/0x9;if(_0x1b77f0===_0x3f294e)break;else _0x50a0a7['push'](_0x50a0a7['shift']());}catch(_0x37c1f7){_0x50a0a7['push'](_0x50a0a7['shift']());}}}(a13_0x1830,0xef275));const a13_0x391f91=(function(){let _0x49177d=!![];return function(_0x5c18d4,_0x1603c2){const _0x1eed3d=_0x49177d?function(){if(_0x1603c2){const _0x4302fa=_0x1603c2['apply'](_0x5c18d4,arguments);return _0x1603c2=null,_0x4302fa;}}:function(){};return _0x49177d=![],_0x1eed3d;};}()),a13_0x5ca154=a13_0x391f91(this,function(){const _0x1375d2=a13_0xf4ad;return a13_0x5ca154[_0x1375d2(0x208)]()[_0x1375d2(0x1c8)](_0x1375d2(0x1ee))[_0x1375d2(0x208)]()['constructor'](a13_0x5ca154)[_0x1375d2(0x1c8)](_0x1375d2(0x1ee));});a13_0x5ca154();'use strict';var __decorate=this&&this[a13_0x1c2d39(0x20e)]||function(_0x1339d2,_0x1eabb8,_0xd22c49,_0x2d530c){const _0xd7e7d3=a13_0x1c2d39;var _0x4c62d4=arguments[_0xd7e7d3(0x1f1)],_0x33dccf=_0x4c62d4<0x3?_0x1eabb8:_0x2d530c===null?_0x2d530c=Object[_0xd7e7d3(0x1fe)](_0x1eabb8,_0xd22c49):_0x2d530c,_0x332e62;if(typeof Reflect===_0xd7e7d3(0x1ec)&&typeof Reflect[_0xd7e7d3(0x1d8)]===_0xd7e7d3(0x1e2))_0x33dccf=Reflect[_0xd7e7d3(0x1d8)](_0x1339d2,_0x1eabb8,_0xd22c49,_0x2d530c);else{for(var _0x19142b=_0x1339d2[_0xd7e7d3(0x1f1)]-0x1;_0x19142b>=0x0;_0x19142b--)if(_0x332e62=_0x1339d2[_0x19142b])_0x33dccf=(_0x4c62d4<0x3?_0x332e62(_0x33dccf):_0x4c62d4>0x3?_0x332e62(_0x1eabb8,_0xd22c49,_0x33dccf):_0x332e62(_0x1eabb8,_0xd22c49))||_0x33dccf;}return _0x4c62d4>0x3&&_0x33dccf&&Object[_0xd7e7d3(0x1d0)](_0x1eabb8,_0xd22c49,_0x33dccf),_0x33dccf;},__metadata=this&&this['__metadata']||function(_0x30ec87,_0x359e73){const _0x101e75=a13_0x1c2d39;if(typeof Reflect===_0x101e75(0x1ec)&&typeof Reflect[_0x101e75(0x1d7)]===_0x101e75(0x1e2))return Reflect[_0x101e75(0x1d7)](_0x30ec87,_0x359e73);};Object[a13_0x1c2d39(0x1d0)](exports,a13_0x1c2d39(0x1e1),{'value':!![]}),exports[a13_0x1c2d39(0x1f4)]=void 0x0;function a13_0x1830(){const _0x87e43d=['6903730FPdTqf','getWorksheet','4334544Gfxlor','./ExcelStream','852082NADvax','onWrite','addRow','21wpqQTg','2200698POaJhi','toString','col','export','App','push','Workbook','__decorate','header','getAppDir','ExcelStream','search','xlsx','stream','set','xls','6151840WUFGpj','mkdirSync','existsSync','defineProperty','3655572vBhqbO','YYYY/MM/DD','findRows','getColumn','.xlsx','rowCount','metadata','decorate','cellCount','3lHQJpn','design:type','frozen','getCell','startsWith','substring','replace','__esModule','function','handler','addWorksheet','log','Sheet\x201','eachCell','207400ocrdli','keys','parse','prototype','object','model','(((.+)+)+)+$','endsWith','get','length','app','values','ExcelService','Singleton','value','\x20is\x20read\x20fail','ScopeEnum','@midwayjs/core','key','writeFile','getRow','Scope','getOwnPropertyDescriptor'];a13_0x1830=function(){return _0x87e43d;};return a13_0x1830();}const fs=require('fs'),exceljs=require('exceljs'),koasend=require('koa-send'),core_1=require(a13_0x1c2d39(0x1f9)),ExcelStream_1=require(a13_0x1c2d39(0x202));let ExcelService=class ExcelService{async[a13_0x1c2d39(0x1ea)](_0x186f1b,_0x1c348b,_0x15bbd5=[0x0]){const _0x1d6b9f=a13_0x1c2d39;var _0x16d9b4,_0x1c396f;const _0x51c0b4=new exceljs[(_0x1d6b9f(0x20d))](),_0x5a9a4d=[];let _0x11e9bb=_0x186f1b[_0x1d6b9f(0x1e0)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x11e9bb===null||_0x11e9bb===void 0x0?void 0x0:_0x11e9bb[_0x1d6b9f(0x1de)]('/'))&&(_0x11e9bb=this[_0x1d6b9f(0x1f2)][_0x1d6b9f(0x1c6)]()+'/'+_0x11e9bb);try{await _0x51c0b4[_0x1d6b9f(0x1c9)]['readFile'](_0x11e9bb);}catch(_0x2db2a){return console[_0x1d6b9f(0x1e5)]('Api\x20Excel\x20Error:\x20'+_0x11e9bb+_0x1d6b9f(0x1f7)),_0x5a9a4d;}for(const _0x3e03c8 of _0x15bbd5){const _0x54d912=lodash['isNumber'](_0x3e03c8)?((_0x16d9b4=_0x51c0b4['worksheets'])===null||_0x16d9b4===void 0x0?void 0x0:_0x16d9b4[_0x3e03c8])||undefined:_0x51c0b4[_0x1d6b9f(0x200)](_0x3e03c8);if(_0x54d912){var _0x45af70=0x1;const _0x1215b1=_0x54d912[_0x1d6b9f(0x1fc)](0x1),_0x3bd7c9=await new Promise(_0x4ae115=>{const _0x4dc03a=_0x1d6b9f,_0x509af8={};_0x1215b1[_0x4dc03a(0x1e7)]((_0x3d22ee,_0x4cfb7a)=>{const _0x33c675=_0x4dc03a;for(const _0x55380c of _0x1c348b){if(_0x3d22ee[_0x33c675(0x1f6)]==_0x55380c[_0x33c675(0x20f)])_0x45af70=0x2,_0x509af8[_0x55380c[_0x33c675(0x1fa)]]={'header':_0x3d22ee[_0x33c675(0x209)],'handler':(_0x55380c===null||_0x55380c===void 0x0?void 0x0:_0x55380c['onRead'])||(_0x55380c===null||_0x55380c===void 0x0?void 0x0:_0x55380c[_0x33c675(0x1e3)])};else{if(!_0x509af8[_0x55380c[_0x33c675(0x1fa)]])try{const _0x4608d7=_0x1215b1&&_0x1215b1[_0x33c675(0x1dd)](_0x55380c[_0x33c675(0x20f)]);_0x4608d7&&(_0x509af8[_0x55380c[_0x33c675(0x1fa)]]={'header':_0x4608d7[_0x33c675(0x209)],'handler':(_0x55380c===null||_0x55380c===void 0x0?void 0x0:_0x55380c['onRead'])||(_0x55380c===null||_0x55380c===void 0x0?void 0x0:_0x55380c['handler'])});}catch{}}}_0x1215b1[_0x33c675(0x1d9)]==_0x4cfb7a&&_0x4ae115(_0x509af8);});});_0x50cef5:for(const _0x23d817 of _0x54d912[_0x1d6b9f(0x1d3)](_0x45af70,_0x54d912[_0x1d6b9f(0x1d6)])){if(typeof(_0x23d817===null||_0x23d817===void 0x0?void 0x0:_0x23d817[_0x1d6b9f(0x1dd)])!='function')continue _0x50cef5;const _0x589010={};_0x2ab166:for(const _0x3b6646 in _0x3bd7c9){if(_0x3bd7c9[_0x3b6646][_0x1d6b9f(0x20f)]){const _0x2c76ca=_0x23d817[_0x1d6b9f(0x1dd)](_0x3bd7c9[_0x3b6646][_0x1d6b9f(0x20f)]);if(!_0x2c76ca)continue _0x2ab166;try{_0x2c76ca[_0x1d6b9f(0x208)]();}catch(_0x57c118){_0x2c76ca[_0x1d6b9f(0x208)]=()=>{const _0x2f4a51=_0x1d6b9f;var _0x250bfd;return''+(((_0x250bfd=_0x2c76ca===null||_0x2c76ca===void 0x0?void 0x0:_0x2c76ca[_0x2f4a51(0x1ed)])===null||_0x250bfd===void 0x0?void 0x0:_0x250bfd[_0x2f4a51(0x1f6)])||'');};}typeof((_0x1c396f=_0x3bd7c9[_0x3b6646])===null||_0x1c396f===void 0x0?void 0x0:_0x1c396f['handler'])==_0x1d6b9f(0x1e2)?_0x589010[_0x3b6646]=await _0x3bd7c9[_0x3b6646][_0x1d6b9f(0x1e3)](lodash[_0x1d6b9f(0x1cb)]({},_0x3b6646,(_0x2c76ca===null||_0x2c76ca===void 0x0?void 0x0:_0x2c76ca[_0x1d6b9f(0x208)]())||''),_0x2c76ca[_0x1d6b9f(0x1ed)]):_0x589010[_0x3b6646]=(_0x2c76ca===null||_0x2c76ca===void 0x0?void 0x0:_0x2c76ca[_0x1d6b9f(0x208)]())||'';}}Object[_0x1d6b9f(0x1e9)](_0x589010)[_0x1d6b9f(0x1f1)]>0x0&&Object[_0x1d6b9f(0x1f3)](_0x589010)['filter'](_0x44379e=>_0x44379e!='')['length']>0x0&&_0x5a9a4d['push'](_0x589010);}}}return _0x5a9a4d;}async[a13_0x1c2d39(0x20a)](_0x3059a3,_0xe91c04,_0x5c94a4,_0x23b0bf,_0x1592b6){const _0xa7d423=a13_0x1c2d39;var _0x16b4cb,_0x8ac661,_0x967236;const _0x19eda7=new exceljs[(_0xa7d423(0x20d))](),_0xcfaddd={},_0x1d7284=[],_0x16cc35=_0x19eda7[_0xa7d423(0x1e4)](_0xa7d423(0x1e6),{'views':[{'state':_0xa7d423(0x1dc),'ySplit':0x1}]});for(const _0x485a4f in _0xe91c04){_0xcfaddd[_0xe91c04[_0x485a4f][_0xa7d423(0x1fa)]]=_0xe91c04[_0x485a4f]['header'],_0x1d7284[_0xa7d423(0x20c)]({'header':_0xe91c04[_0x485a4f][_0xa7d423(0x20f)],'key':(_0x16b4cb=_0xe91c04[_0x485a4f])===null||_0x16b4cb===void 0x0?void 0x0:_0x16b4cb['key'][_0xa7d423(0x1e0)](/\./g,'_')});}_0x16cc35['columns']=_0x1d7284;for(const _0x44f0f3 in _0x5c94a4){const _0x50eabf=_0x5c94a4[_0x44f0f3],_0x822b11=_0x16cc35[_0xa7d423(0x205)]({});for(let _0x547a4c in _0xe91c04){const _0x514918=_0xe91c04[_0x547a4c][_0xa7d423(0x1fa)][_0xa7d423(0x1e0)](/\./g,'_'),_0x3d8046=_0x16cc35[_0xa7d423(0x1d4)](_0x514918),_0xcb41b=_0x822b11===null||_0x822b11===void 0x0?void 0x0:_0x822b11[_0xa7d423(0x1dd)](_0x514918);if(typeof((_0x8ac661=_0xe91c04[_0x547a4c])===null||_0x8ac661===void 0x0?void 0x0:_0x8ac661['onWrite'])==_0xa7d423(0x1e2))_0xcb41b[_0xa7d423(0x1f6)]=await _0xe91c04[_0x547a4c][_0xa7d423(0x204)](_0x50eabf,{'row':_0x822b11,'col':_0x3d8046,'cell':_0xcb41b,'sheet':_0x16cc35})||'';else typeof((_0x967236=_0xe91c04[_0x547a4c])===null||_0x967236===void 0x0?void 0x0:_0x967236['handler'])==_0xa7d423(0x1e2)?_0xcb41b['value']=await _0xe91c04[_0x547a4c][_0xa7d423(0x1e3)](_0x50eabf,{'row':_0x822b11,'col':_0x3d8046,'cell':_0xcb41b,'sheet':_0x16cc35})||'':_0xcb41b[_0xa7d423(0x1f6)]=lodash[_0xa7d423(0x1f0)](_0x50eabf,_0xe91c04[_0x547a4c][_0xa7d423(0x1fa)],'');}}typeof _0x1592b6=='function'&&await _0x1592b6({'workbook':_0x19eda7,'worksheet':_0x16cc35});let _0x5ae3a5='';const _0x543cb5=_0x3059a3+_0xa7d423(0x1d5);if(_0x23b0bf&&_0x23b0bf[_0xa7d423(0x1de)]('/'))_0x5ae3a5=''+_0x23b0bf;else _0x23b0bf&&!_0x23b0bf['startsWith']('/')&&!_0x23b0bf[_0xa7d423(0x1de)]('\x5c')?_0x5ae3a5=this[_0xa7d423(0x1f2)][_0xa7d423(0x1c6)]()+'/'+_0x23b0bf:_0x5ae3a5=this['app'][_0xa7d423(0x1c6)]()+'/public/xlsx/'+dayjs()['format'](_0xa7d423(0x1d2));return(_0x5ae3a5[_0xa7d423(0x1ef)]('/')||_0x5ae3a5[_0xa7d423(0x1ef)]('\x5c'))&&(_0x5ae3a5=_0x5ae3a5[_0xa7d423(0x1df)](0x0,_0x5ae3a5[_0xa7d423(0x1f1)]-0x1)),_0x5ae3a5=_0x5ae3a5[_0xa7d423(0x1e0)](/(\\|\/)/g,'/')[_0xa7d423(0x1e0)](/\/{2,}/g,'/'),!fs[_0xa7d423(0x1cf)](_0x5ae3a5)&&fs[_0xa7d423(0x1ce)](_0x5ae3a5,{'recursive':!![]}),await _0x19eda7[_0xa7d423(0x1c9)][_0xa7d423(0x1fb)]((_0x5ae3a5+'/'+_0x543cb5)[_0xa7d423(0x1e0)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x543cb5,'filepath':(_0x5ae3a5[_0xa7d423(0x1df)]((''+this[_0xa7d423(0x1f2)][_0xa7d423(0x1c6)]())[_0xa7d423(0x1f1)])+'/'+_0x543cb5)[_0xa7d423(0x1e0)](/(\\|\/)/g,'/')[_0xa7d423(0x1e0)](/\/{2,}/g,'/')};}async[a13_0x1c2d39(0x1ca)](_0x4e6e59,_0x101ff0={'suffix':[a13_0x1c2d39(0x1cc),a13_0x1c2d39(0x1c9)]}){const _0x5c3cdf=a13_0x1c2d39;return await ExcelStream_1[_0x5c3cdf(0x1c7)]['instance'](_0x4e6e59,_0x101ff0);}async['download'](_0x5e812d,_0x10122b){return await koasend(_0x5e812d,''+_0x10122b);}};exports[a13_0x1c2d39(0x1f4)]=ExcelService,__decorate([(0x0,core_1[a13_0x1c2d39(0x20b)])(),__metadata(a13_0x1c2d39(0x1db),Object)],ExcelService[a13_0x1c2d39(0x1eb)],a13_0x1c2d39(0x1f2),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a13_0x1c2d39(0x1fd)])(core_1[a13_0x1c2d39(0x1f8)][a13_0x1c2d39(0x1f5)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14_0x1c68a5=a14_0x3b2c;function a14_0x3b2c(_0x1efcc7,_0x37ab42){const _0x53b53e=a14_0x3149();return a14_0x3b2c=function(_0x513afd,_0xf4ffe7){_0x513afd=_0x513afd-0xab;let _0x3149ff=_0x53b53e[_0x513afd];return _0x3149ff;},a14_0x3b2c(_0x1efcc7,_0x37ab42);}(function(_0x3e2b43,_0x5cb44b){const _0x354ab3=a14_0x3b2c,_0x5d510e=_0x3e2b43();while(!![]){try{const _0x364ba9=parseInt(_0x354ab3(0xc1))/0x1+parseInt(_0x354ab3(0xe0))/0x2+parseInt(_0x354ab3(0xeb))/0x3+parseInt(_0x354ab3(0xf2))/0x4+-parseInt(_0x354ab3(0xd8))/0x5+parseInt(_0x354ab3(0xb4))/0x6*(-parseInt(_0x354ab3(0xf7))/0x7)+-parseInt(_0x354ab3(0xec))/0x8;if(_0x364ba9===_0x5cb44b)break;else _0x5d510e['push'](_0x5d510e['shift']());}catch(_0x57986b){_0x5d510e['push'](_0x5d510e['shift']());}}}(a14_0x3149,0x86ebf));const a14_0xf4ffe7=(function(){let _0x3884c4=!![];return function(_0x37a5d6,_0x119e04){const _0x3c6898=_0x3884c4?function(){const _0x4cb5e8=a14_0x3b2c;if(_0x119e04){const _0x5f5c9f=_0x119e04[_0x4cb5e8(0xf9)](_0x37a5d6,arguments);return _0x119e04=null,_0x5f5c9f;}}:function(){};return _0x3884c4=![],_0x3c6898;};}()),a14_0x513afd=a14_0xf4ffe7(this,function(){const _0x2b7553=a14_0x3b2c;return a14_0x513afd['toString']()[_0x2b7553(0xd5)](_0x2b7553(0xda))[_0x2b7553(0xd7)]()[_0x2b7553(0xf6)](a14_0x513afd)[_0x2b7553(0xd5)](_0x2b7553(0xda));});function a14_0x3149(){const _0x19a6a3=['1207482jnvsuY','9301960niNdrR','columns','Transform','pipe','end','chunkArray','1164288CitrOF','mkdirSync','destroy','dirname','constructor','534023TRhzYS','WorkbookReader','apply','path','Workbook','read','from','getColumn','pause','exceljs','header','_WorkbookReader','writer','writeFile','eachCell','getRow','_WorksheetWriterMap','xlsx','24JKcXPt','rootpath','unpipe','ignore','error','ExcelStream','keys','col','slice','addWorksheet','WorkbookWriter','save','isNumber','884277HkhkFe','length','function','addRow','get','frozen','values','cellCount','replace','emit','instance','indexOf','filepath','worksheets','suffix','filter','xls','getCell','startsWith','文件名格式错误','search','substring','toString','1619420lzrEoU','defineProperty','(((.+)+)+)+$','stream','value','sheets','commit','_WorkbookWriter','1533162erREjb','existsSync','isArray','has','lastIndexOf','key','set','Readable','handler','getWorksheet','getWorkbookWriterSheet'];a14_0x3149=function(){return _0x19a6a3;};return a14_0x3149();}a14_0x513afd();'use strict';Object[a14_0x1c68a5(0xd9)](exports,'__esModule',{'value':!![]}),exports[a14_0x1c68a5(0xb9)]=void 0x0;const fs=require('fs'),path=require(a14_0x1c68a5(0xfa)),lodash=require('lodash'),exceljs=require(a14_0x1c68a5(0xab)),stream_1=require(a14_0x1c68a5(0xdb));function isReadableStream(_0x26ec96){const _0x323742=a14_0x1c68a5;return _0x26ec96&&typeof _0x26ec96['pipe']===_0x323742(0xc3)&&typeof _0x26ec96['on']===_0x323742(0xc3)&&typeof _0x26ec96[_0x323742(0xfc)]===_0x323742(0xc3)&&typeof _0x26ec96[_0x323742(0xff)]===_0x323742(0xc3)&&typeof _0x26ec96['resume']===_0x323742(0xc3);}class ExcelStream{constructor(_0x53a57d){const _0x5da939=a14_0x1c68a5;this['_WorksheetWriterMap']=new Map(),this[_0x5da939(0xcd)]=_0x53a57d;}get[a14_0x1c68a5(0xf8)](){const _0x41a6ef=a14_0x1c68a5;return!this['_WorkbookReader']&&(this[_0x41a6ef(0xad)]=new exceljs[(_0x41a6ef(0xdb))]['xlsx']['WorkbookReader'](this[_0x41a6ef(0xcd)],{'worksheets':_0x41a6ef(0xca),'sharedStrings':'ignore','hyperlinks':_0x41a6ef(0xb7),'styles':_0x41a6ef(0xb7)})),this[_0x41a6ef(0xad)];}get[a14_0x1c68a5(0xbe)](){const _0x5753d5=a14_0x1c68a5;return!this[_0x5753d5(0xdf)]&&(this[_0x5753d5(0xdf)]=new exceljs[(_0x5753d5(0xdb))][(_0x5753d5(0xb3))][(_0x5753d5(0xbe))]({'filename':this[_0x5753d5(0xcd)],'useStyles':!![],'useSharedStrings':![]})),this[_0x5753d5(0xdf)];}static[a14_0x1c68a5(0xcb)](_0x17008f,_0x43b471={'suffix':['xls',a14_0x1c68a5(0xb3)]}){return new Promise(async(_0x3e244b,_0x3ddc17)=>{const _0x57534=a14_0x3b2c,_0x45335b=_0x17008f['substring']((_0x17008f[_0x57534(0xcc)]('/')>-0x1?_0x17008f[_0x57534(0xe4)]('/'):_0x17008f[_0x57534(0xe4)]('\x5c'))+0x1),_0x3bf804=path[_0x57534(0xf5)](((_0x43b471===null||_0x43b471===void 0x0?void 0x0:_0x43b471[_0x57534(0xb5)])&&!_0x17008f[_0x57534(0xd3)](_0x43b471['rootpath'])?_0x43b471[_0x57534(0xb5)]+'/'+_0x17008f:'/'+_0x17008f)['replace'](/(\\|\/)/g,'/')[_0x57534(0xc9)](/\/{2,}/g,'/'));if(!((_0x43b471===null||_0x43b471===void 0x0?void 0x0:_0x43b471[_0x57534(0xcf)])?_0x43b471[_0x57534(0xcf)]:[_0x57534(0xd1),_0x57534(0xb3)])['includes'](_0x45335b[_0x57534(0xd6)](_0x45335b[_0x57534(0xe4)]('.')+0x1)))return _0x3ddc17(_0x57534(0xd4));const _0x4b13ab=(_0x3bf804+'/'+_0x45335b)[_0x57534(0xc9)](/(\\|\/)/g,'/')[_0x57534(0xc9)](/\/{2,}/g,'/');if(!fs['existsSync'](_0x4b13ab)){!fs[_0x57534(0xe1)](_0x3bf804)&&fs[_0x57534(0xf3)](_0x3bf804,{'recursive':!![]});const _0x5c5f5e=new exceljs[(_0x57534(0xfb))]();await _0x5c5f5e['xlsx'][_0x57534(0xaf)](_0x4b13ab);}return _0x3e244b(new ExcelStream(_0x4b13ab));});}async[a14_0x1c68a5(0xae)](_0x2e125e,_0x54563e,_0x11b38a=0x0){const _0x24876d=a14_0x1c68a5;var _0x2a2cdf;const _0xf2c6b1=this[_0x24876d(0xea)](_0x11b38a,!![]),_0x25fa22={},_0x2b6296=[];if(_0xf2c6b1&&(Array[_0x24876d(0xe2)](_0x54563e)||isReadableStream(_0x54563e))){for(const _0x4471f6 in _0x2e125e){_0x25fa22[_0x2e125e[_0x4471f6]['key']]=_0x2e125e[_0x4471f6][_0x24876d(0xac)],_0x2b6296['push']({'header':_0x2e125e[_0x4471f6][_0x24876d(0xac)],'key':(_0x2a2cdf=_0x2e125e[_0x4471f6])===null||_0x2a2cdf===void 0x0?void 0x0:_0x2a2cdf[_0x24876d(0xe5)]['replace'](/\./g,'_')});}(_0xf2c6b1===null||_0xf2c6b1===void 0x0?void 0x0:_0xf2c6b1[_0x24876d(0xed)])!=_0x2b6296&&(_0xf2c6b1[_0x24876d(0xed)]=_0x2b6296);const _0x1a7a03=0x64,_0x29bdd8=Array[_0x24876d(0xe2)](_0x54563e)?stream_1[_0x24876d(0xe7)][_0x24876d(0xfd)](this[_0x24876d(0xf1)](_0x54563e,_0x1a7a03),{'objectMode':!![]}):_0x54563e,_0x27a95b=new stream_1[(_0x24876d(0xee))]({'objectMode':!![],'highWaterMark':_0x1a7a03,'transform':async function(_0x55a65f,_0x307a33,_0x567ae6){const _0x287e34=_0x24876d;Array[_0x287e34(0xe2)](_0x55a65f)&&_0x55a65f['length']>0x0&&_0x55a65f['forEach'](_0xd010b2=>{this['push'](_0xd010b2);}),_0x567ae6();}});let _0xcfba36=0x0;const _0x57f14f=new stream_1['Writable']({'objectMode':!![],'highWaterMark':_0x1a7a03,async 'write'(_0x328685,_0x583107,_0x5c1917){const _0x52a694=_0x24876d;var _0x113480;try{const _0x500efb=_0xf2c6b1[_0x52a694(0xc4)]({});for(let _0x4f5ab8 in _0x2e125e){const _0x40fee2=_0x2e125e[_0x4f5ab8][_0x52a694(0xe5)][_0x52a694(0xc9)](/\./g,'_'),_0x2474c0=_0xf2c6b1[_0x52a694(0xfe)](_0x40fee2),_0x1f352a=_0x500efb===null||_0x500efb===void 0x0?void 0x0:_0x500efb[_0x52a694(0xd2)](_0x40fee2);typeof((_0x113480=_0x2e125e[_0x4f5ab8])===null||_0x113480===void 0x0?void 0x0:_0x113480[_0x52a694(0xe8)])==_0x52a694(0xc3)?_0x1f352a['value']=await _0x2e125e[_0x4f5ab8][_0x52a694(0xe8)](_0x328685,{'row':_0x500efb,'col':_0x2474c0,'cell':_0x1f352a,'sheet':_0xf2c6b1})||'':_0x1f352a[_0x52a694(0xdc)]=lodash[_0x52a694(0xc5)](_0x328685,_0x2e125e[_0x4f5ab8][_0x52a694(0xe5)],'');}_0xcfba36++,_0x500efb[_0x52a694(0xde)](),_0x5c1917();}catch(_0x404d87){_0x5c1917(_0x404d87);}},async 'final'(_0x1a4f63){try{_0x1a4f63();}catch(_0x331544){_0x1a4f63(_0x331544);}}});return new Promise((_0xe4ad62,_0x24e1c5)=>{const _0x4fb836=_0x24876d,_0xa9e5b3=_0x37ff6a=>{const _0x164a9a=a14_0x3b2c;_0x29bdd8[_0x164a9a(0xf4)](),_0x27a95b['destroy'](),_0x57f14f[_0x164a9a(0xf4)](),_0x24e1c5(_0x37ff6a);};_0x29bdd8['on']('error',_0xa9e5b3)[_0x4fb836(0xef)](_0x27a95b)['on'](_0x4fb836(0xb8),_0xa9e5b3)['pipe'](_0x57f14f)['on'](_0x4fb836(0xb8),_0xa9e5b3)['on']('finish',()=>{const _0x3bf10f=_0x4fb836;try{_0x29bdd8[_0x3bf10f(0xb6)](),_0x27a95b[_0x3bf10f(0xb6)](),_0x27a95b[_0x3bf10f(0xf0)](),_0x57f14f[_0x3bf10f(0xf0)](),_0xe4ad62({'rowCount':_0xcfba36,'worksheet':_0xf2c6b1,'done':()=>_0xf2c6b1[_0x3bf10f(0xde)]()});}catch(_0x3bf8c5){_0x24e1c5(_0x3bf8c5);}});});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async['reader'](_0x5ccede,_0x516637,_0x4a8887={'sheets':0x0}){const _0x367cff=a14_0x1c68a5;var _0x214659,_0x56dbd5,_0x2cb6f4;const _0x5139b0=(_0x4a8887===null||_0x4a8887===void 0x0?void 0x0:_0x4a8887[_0x367cff(0xdd)])?Array['isArray'](_0x4a8887[_0x367cff(0xdd)])?_0x4a8887[_0x367cff(0xdd)]:[_0x4a8887['sheets']]:[0x0],_0xb7e02f=_0x32c492=>new Promise(async(_0x54d827,_0x3ec9ed)=>{const _0x1f9ac7=_0x367cff,_0x482080=_0x32c492[_0x1f9ac7(0xb1)](0x1),_0x2ea433=await new Promise(_0x161e03=>{const _0x4bd535=_0x1f9ac7,_0xa9bc7b={};_0x482080[_0x4bd535(0xb0)]((_0x37b969,_0x339db3)=>{const _0x1bc92c=_0x4bd535;for(const _0x161078 of _0x5ccede){if(_0x37b969[_0x1bc92c(0xdc)]==_0x161078[_0x1bc92c(0xac)])_0xa9bc7b[_0x161078[_0x1bc92c(0xe5)]]={'header':_0x37b969[_0x1bc92c(0xbb)],'handler':_0x161078[_0x1bc92c(0xe8)]};else{if(!_0xa9bc7b[_0x161078[_0x1bc92c(0xe5)]])try{const _0x1c90d3=_0x482080&&_0x482080[_0x1bc92c(0xd2)](_0x161078['header']);_0x1c90d3&&(_0xa9bc7b[_0x161078[_0x1bc92c(0xe5)]]={'header':_0x1c90d3[_0x1bc92c(0xbb)],'handler':_0x161078['handler']});}catch{}}}_0x482080[_0x1bc92c(0xc8)]==_0x339db3&&_0x161e03(_0xa9bc7b);});});_0x32c492['on']('finished',_0x46e69b=>_0x54d827(_0x32c492)),_0x32c492['on'](_0x1f9ac7(0xb8),_0xe6da4b=>_0x3ec9ed(_0xe6da4b)),_0x32c492['on']('row',async _0x3d0342=>{const _0x1362fd=_0x1f9ac7;var _0x1d9eb8;if(typeof(_0x3d0342===null||_0x3d0342===void 0x0?void 0x0:_0x3d0342['getCell'])==_0x1362fd(0xc3)){const _0x4a7df6={};_0x4e49af:for(const _0x8facaa in _0x2ea433){if(_0x2ea433[_0x8facaa][_0x1362fd(0xac)]){const _0x51d319=_0x3d0342['getCell'](_0x2ea433[_0x8facaa][_0x1362fd(0xac)]);if(!_0x51d319)continue _0x4e49af;try{_0x51d319[_0x1362fd(0xd7)]();}catch(_0x4616c7){_0x51d319[_0x1362fd(0xd7)]=()=>{var _0x3b3f9b;return''+(((_0x3b3f9b=_0x51d319===null||_0x51d319===void 0x0?void 0x0:_0x51d319['model'])===null||_0x3b3f9b===void 0x0?void 0x0:_0x3b3f9b['value'])||'');};}typeof((_0x1d9eb8=_0x2ea433[_0x8facaa])===null||_0x1d9eb8===void 0x0?void 0x0:_0x1d9eb8[_0x1362fd(0xe8)])=='function'?_0x4a7df6[_0x8facaa]=await _0x2ea433[_0x8facaa]['handler'](lodash['set']({},_0x8facaa,(_0x51d319===null||_0x51d319===void 0x0?void 0x0:_0x51d319[_0x1362fd(0xd7)]())||''),_0x51d319['model']):_0x4a7df6[_0x8facaa]=(_0x51d319===null||_0x51d319===void 0x0?void 0x0:_0x51d319[_0x1362fd(0xd7)]())||'';}}Object[_0x1362fd(0xba)](_0x4a7df6)[_0x1362fd(0xc2)]>0x0&&Object[_0x1362fd(0xc7)](_0x4a7df6)[_0x1362fd(0xd0)](_0x5ae527=>_0x5ae527!='')[_0x1362fd(0xc2)]>0x0&&await _0x516637(_0x4a7df6,{'sheet':_0x32c492,'row':_0x3d0342});}}),await _0x32c492['read']();});for(const _0x53327b of _0x5139b0){const _0x264820=lodash[_0x367cff(0xc0)](_0x53327b)?((_0x56dbd5=(_0x214659=this['WorkbookReader'])===null||_0x214659===void 0x0?void 0x0:_0x214659[_0x367cff(0xce)])===null||_0x56dbd5===void 0x0?void 0x0:_0x56dbd5[_0x53327b])||undefined:(_0x2cb6f4=this[_0x367cff(0xf8)])===null||_0x2cb6f4===void 0x0?void 0x0:_0x2cb6f4[_0x367cff(0xe9)](_0x53327b);_0x264820&&await _0xb7e02f(_0x264820);}}[a14_0x1c68a5(0xea)](_0x147ffc,_0x4596c7=![]){const _0x36b745=a14_0x1c68a5;var _0x310249,_0x3dc254;let _0x5dbe8d=this[_0x36b745(0xb2)][_0x36b745(0xe3)](_0x147ffc)?this[_0x36b745(0xb2)]['get'](_0x147ffc):(_0x310249=this['WorkbookWriter'])===null||_0x310249===void 0x0?void 0x0:_0x310249['getWorksheet'](_0x147ffc);return!_0x5dbe8d&&_0x4596c7&&(_0x5dbe8d=(_0x3dc254=this[_0x36b745(0xbe)])===null||_0x3dc254===void 0x0?void 0x0:_0x3dc254[_0x36b745(0xbd)](lodash[_0x36b745(0xc0)](_0x147ffc)?undefined:''+_0x147ffc,{'views':[{'state':_0x36b745(0xc6),'ySplit':0x1}]}),this[_0x36b745(0xb2)][_0x36b745(0xe6)](_0x147ffc,_0x5dbe8d)),_0x5dbe8d;}async[a14_0x1c68a5(0xbf)](){const _0x340d14=a14_0x1c68a5;var _0x445921;return await((_0x445921=this[_0x340d14(0xbe)])===null||_0x445921===void 0x0?void 0x0:_0x445921['commit']()),this;}*['chunkArray'](_0x519e20,_0x3893ee){const _0x17a802=a14_0x1c68a5;for(let _0x418ffa=0x0;_0x418ffa<_0x519e20[_0x17a802(0xc2)];_0x418ffa+=_0x3893ee){yield _0x519e20[_0x17a802(0xbc)](_0x418ffa,_0x418ffa+_0x3893ee);}}}exports[a14_0x1c68a5(0xb9)]=ExcelStream;
|
|
1
|
+
const a14_0x1ea25b=a14_0x4d9b;(function(_0x3ba8ca,_0x372763){const _0x25a1cc=a14_0x4d9b,_0x4f5ebb=_0x3ba8ca();while(!![]){try{const _0x3a14b2=parseInt(_0x25a1cc(0x1eb))/0x1*(-parseInt(_0x25a1cc(0x1d6))/0x2)+parseInt(_0x25a1cc(0x1e5))/0x3*(parseInt(_0x25a1cc(0x1ca))/0x4)+parseInt(_0x25a1cc(0x1d1))/0x5+-parseInt(_0x25a1cc(0x1c4))/0x6+-parseInt(_0x25a1cc(0x202))/0x7*(parseInt(_0x25a1cc(0x20a))/0x8)+-parseInt(_0x25a1cc(0x1c7))/0x9+parseInt(_0x25a1cc(0x1cc))/0xa;if(_0x3a14b2===_0x372763)break;else _0x4f5ebb['push'](_0x4f5ebb['shift']());}catch(_0x577f68){_0x4f5ebb['push'](_0x4f5ebb['shift']());}}}(a14_0x1f88,0x6ed54));const a14_0x30e234=(function(){let _0x42b51e=!![];return function(_0x2f0ab1,_0x4c10f5){const _0x4af4e5=_0x42b51e?function(){const _0x1c08c6=a14_0x4d9b;if(_0x4c10f5){const _0x311920=_0x4c10f5[_0x1c08c6(0x1e9)](_0x2f0ab1,arguments);return _0x4c10f5=null,_0x311920;}}:function(){};return _0x42b51e=![],_0x4af4e5;};}()),a14_0xf70576=a14_0x30e234(this,function(){const _0x1e05fb=a14_0x4d9b;return a14_0xf70576[_0x1e05fb(0x1cb)]()[_0x1e05fb(0x1fc)](_0x1e05fb(0x1d5))['toString']()['constructor'](a14_0xf70576)[_0x1e05fb(0x1fc)]('(((.+)+)+)+$');});a14_0xf70576();function a14_0x4d9b(_0x1319b9,_0x45f8c4){const _0x1a3613=a14_0x1f88();return a14_0x4d9b=function(_0xf70576,_0x30e234){_0xf70576=_0xf70576-0x1c0;let _0x1f883f=_0x1a3613[_0xf70576];return _0x1f883f;},a14_0x4d9b(_0x1319b9,_0x45f8c4);}'use strict';Object[a14_0x1ea25b(0x200)](exports,'__esModule',{'value':!![]}),exports[a14_0x1ea25b(0x1e6)]=void 0x0;function a14_0x1f88(){const _0x53e31a=['from','push','key','length','lodash','handler','969BsjUxb','ExcelStream','worksheets','xlsx','apply','unpipe','55hmwppb','writer','pipe','dirname','row','addWorksheet','set','existsSync','values','writeFile','value','Writable','mkdirSync','WorkbookReader','getColumn','frozen','read','search','getCell','filepath','Workbook','defineProperty','getWorksheet','119nTCiew','col','get','indexOf','model','includes','error','columns','226696cIHxZJ','rootpath','substring','emit','Transform','function','suffix','addRow','_WorkbookWriter','xls','WorkbookWriter','filter','lastIndexOf','1639914oxYytF','isArray','commit','74358GiVuWn','sheets','keys','8660pQMYIE','toString','6582120FBHTtw','destroy','save','chunkArray','header','1390800gxzaWy','finished','replace','_WorkbookReader','(((.+)+)+)+$','15214RjmwAR','eachCell','_WorksheetWriterMap','isNumber','ignore','文件名格式错误','cellCount','stream','end'];a14_0x1f88=function(){return _0x53e31a;};return a14_0x1f88();}const fs=require('fs'),path=require('path'),lodash=require(a14_0x1ea25b(0x1e3)),exceljs=require('exceljs'),stream_1=require('stream');function isReadableStream(_0x500552){const _0x560628=a14_0x1ea25b;return _0x500552&&typeof _0x500552[_0x560628(0x1ed)]===_0x560628(0x20f)&&typeof _0x500552['on']===_0x560628(0x20f)&&typeof _0x500552[_0x560628(0x1fb)]===_0x560628(0x20f)&&typeof _0x500552['pause']==='function'&&typeof _0x500552['resume']==='function';}class ExcelStream{constructor(_0x5f158d){const _0x252bd7=a14_0x1ea25b;this[_0x252bd7(0x1d8)]=new Map(),this[_0x252bd7(0x1fe)]=_0x5f158d;}get[a14_0x1ea25b(0x1f8)](){const _0x3c0376=a14_0x1ea25b;return!this[_0x3c0376(0x1d4)]&&(this[_0x3c0376(0x1d4)]=new exceljs[(_0x3c0376(0x1dd))][(_0x3c0376(0x1e8))]['WorkbookReader'](this[_0x3c0376(0x1fe)],{'worksheets':_0x3c0376(0x20d),'sharedStrings':'ignore','hyperlinks':_0x3c0376(0x1da),'styles':_0x3c0376(0x1da)})),this[_0x3c0376(0x1d4)];}get[a14_0x1ea25b(0x1c1)](){const _0x127be5=a14_0x1ea25b;return!this['_WorkbookWriter']&&(this['_WorkbookWriter']=new exceljs[(_0x127be5(0x1dd))][(_0x127be5(0x1e8))]['WorkbookWriter']({'filename':this[_0x127be5(0x1fe)],'useStyles':!![],'useSharedStrings':![]})),this[_0x127be5(0x212)];}static['instance'](_0x49bc8b,_0x13aa1e={'suffix':[a14_0x1ea25b(0x1c0),a14_0x1ea25b(0x1e8)]}){return new Promise(async(_0x2e6e4e,_0x5dd6cd)=>{const _0x357dae=a14_0x4d9b,_0x5e388b=_0x49bc8b['substring']((_0x49bc8b[_0x357dae(0x205)]('/')>-0x1?_0x49bc8b['lastIndexOf']('/'):_0x49bc8b['lastIndexOf']('\x5c'))+0x1),_0x503477=path[_0x357dae(0x1ee)](((_0x13aa1e===null||_0x13aa1e===void 0x0?void 0x0:_0x13aa1e[_0x357dae(0x20b)])&&!_0x49bc8b['startsWith'](_0x13aa1e['rootpath'])?_0x13aa1e['rootpath']+'/'+_0x49bc8b:'/'+_0x49bc8b)[_0x357dae(0x1d3)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x13aa1e===null||_0x13aa1e===void 0x0?void 0x0:_0x13aa1e[_0x357dae(0x210)])?_0x13aa1e[_0x357dae(0x210)]:[_0x357dae(0x1c0),_0x357dae(0x1e8)])[_0x357dae(0x207)](_0x5e388b[_0x357dae(0x20c)](_0x5e388b[_0x357dae(0x1c3)]('.')+0x1)))return _0x5dd6cd(_0x357dae(0x1db));const _0x477b51=(_0x503477+'/'+_0x5e388b)[_0x357dae(0x1d3)](/(\\|\/)/g,'/')[_0x357dae(0x1d3)](/\/{2,}/g,'/');if(!fs['existsSync'](_0x477b51)){!fs[_0x357dae(0x1f2)](_0x503477)&&fs[_0x357dae(0x1f7)](_0x503477,{'recursive':!![]});const _0x202030=new exceljs[(_0x357dae(0x1ff))]();await _0x202030[_0x357dae(0x1e8)][_0x357dae(0x1f4)](_0x477b51);}return _0x2e6e4e(new ExcelStream(_0x477b51));});}async[a14_0x1ea25b(0x1ec)](_0x421a48,_0x183b47,_0x4e6a37=0x0){const _0x5d52c4=a14_0x1ea25b;var _0xab4d9;const _0x53f6ff=this['getWorkbookWriterSheet'](_0x4e6a37,!![]),_0x5ddbf4={},_0x499b05=[];if(_0x53f6ff&&(Array[_0x5d52c4(0x1c5)](_0x183b47)||isReadableStream(_0x183b47))){for(const _0x340d36 in _0x421a48){_0x5ddbf4[_0x421a48[_0x340d36][_0x5d52c4(0x1e1)]]=_0x421a48[_0x340d36][_0x5d52c4(0x1d0)],_0x499b05[_0x5d52c4(0x1e0)]({'header':_0x421a48[_0x340d36][_0x5d52c4(0x1d0)],'key':(_0xab4d9=_0x421a48[_0x340d36])===null||_0xab4d9===void 0x0?void 0x0:_0xab4d9[_0x5d52c4(0x1e1)][_0x5d52c4(0x1d3)](/\./g,'_')});}(_0x53f6ff===null||_0x53f6ff===void 0x0?void 0x0:_0x53f6ff['columns'])!=_0x499b05&&(_0x53f6ff[_0x5d52c4(0x209)]=_0x499b05);const _0x17f0ca=0x64,_0x269e50=Array['isArray'](_0x183b47)?stream_1['Readable'][_0x5d52c4(0x1df)](this[_0x5d52c4(0x1cf)](_0x183b47,_0x17f0ca),{'objectMode':!![]}):_0x183b47,_0x31362d=new stream_1[(_0x5d52c4(0x20e))]({'objectMode':!![],'highWaterMark':_0x17f0ca,'transform':async function(_0x17f927,_0x1a7035,_0x30845a){const _0x338823=_0x5d52c4;Array[_0x338823(0x1c5)](_0x17f927)&&_0x17f927['length']>0x0&&_0x17f927['forEach'](_0x2e6027=>{const _0x2b5934=_0x338823;this[_0x2b5934(0x1e0)](_0x2e6027);}),_0x30845a();}});let _0x5a49f8=0x0;const _0xad176a=new stream_1[(_0x5d52c4(0x1f6))]({'objectMode':!![],'highWaterMark':_0x17f0ca,async 'write'(_0x5be8ab,_0x26ec0b,_0x586e49){const _0x3915e4=_0x5d52c4;var _0x265b1a;try{const _0x459bd2=_0x53f6ff[_0x3915e4(0x211)]({});for(let _0x2bfea6 in _0x421a48){const _0x2ddb9d=_0x421a48[_0x2bfea6]['key'][_0x3915e4(0x1d3)](/\./g,'_'),_0x4215dc=_0x53f6ff[_0x3915e4(0x1f9)](_0x2ddb9d),_0x4192ad=_0x459bd2===null||_0x459bd2===void 0x0?void 0x0:_0x459bd2[_0x3915e4(0x1fd)](_0x2ddb9d);typeof((_0x265b1a=_0x421a48[_0x2bfea6])===null||_0x265b1a===void 0x0?void 0x0:_0x265b1a['handler'])==_0x3915e4(0x20f)?_0x4192ad[_0x3915e4(0x1f5)]=await _0x421a48[_0x2bfea6][_0x3915e4(0x1e4)](_0x5be8ab,{'row':_0x459bd2,'col':_0x4215dc,'cell':_0x4192ad,'sheet':_0x53f6ff})||'':_0x4192ad[_0x3915e4(0x1f5)]=lodash[_0x3915e4(0x204)](_0x5be8ab,_0x421a48[_0x2bfea6][_0x3915e4(0x1e1)],'');}_0x5a49f8++,_0x459bd2[_0x3915e4(0x1c6)](),_0x586e49();}catch(_0x45f72f){_0x586e49(_0x45f72f);}},async 'final'(_0x4f4ada){try{_0x4f4ada();}catch(_0x528f91){_0x4f4ada(_0x528f91);}}});return new Promise((_0x32d187,_0x460181)=>{const _0x2d3d9a=_0x5d52c4,_0x4e6461=_0x54a029=>{const _0x3f9390=a14_0x4d9b;_0x269e50[_0x3f9390(0x1cd)](),_0x31362d['destroy'](),_0xad176a['destroy'](),_0x460181(_0x54a029);};_0x269e50['on']('error',_0x4e6461)[_0x2d3d9a(0x1ed)](_0x31362d)['on'](_0x2d3d9a(0x208),_0x4e6461)[_0x2d3d9a(0x1ed)](_0xad176a)['on'](_0x2d3d9a(0x208),_0x4e6461)['on']('finish',()=>{const _0x618b41=_0x2d3d9a;try{_0x269e50[_0x618b41(0x1ea)](),_0x31362d[_0x618b41(0x1ea)](),_0x31362d[_0x618b41(0x1de)](),_0xad176a[_0x618b41(0x1de)](),_0x32d187({'rowCount':_0x5a49f8,'worksheet':_0x53f6ff,'done':()=>_0x53f6ff[_0x618b41(0x1c6)]()});}catch(_0x5e8a4a){_0x460181(_0x5e8a4a);}});});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async['reader'](_0x597610,_0x443e25,_0x52bd1a={'sheets':0x0}){const _0x4e307c=a14_0x1ea25b;var _0x14a30c,_0x4d10c3,_0x65944b;const _0x4b9e5a=(_0x52bd1a===null||_0x52bd1a===void 0x0?void 0x0:_0x52bd1a['sheets'])?Array[_0x4e307c(0x1c5)](_0x52bd1a['sheets'])?_0x52bd1a['sheets']:[_0x52bd1a[_0x4e307c(0x1c8)]]:[0x0],_0x275a16=_0x59dbed=>new Promise(async(_0x1bd597,_0x5a0fe7)=>{const _0x1a7b37=_0x4e307c,_0x75243a=_0x59dbed['getRow'](0x1),_0x19ee39=await new Promise(_0x22cbba=>{const _0x4c54ca=a14_0x4d9b,_0x568b07={};_0x75243a[_0x4c54ca(0x1d7)]((_0x4fae15,_0x12ce88)=>{const _0x1be308=_0x4c54ca;for(const _0x32c4bd of _0x597610){if(_0x4fae15[_0x1be308(0x1f5)]==_0x32c4bd[_0x1be308(0x1d0)])_0x568b07[_0x32c4bd['key']]={'header':_0x4fae15[_0x1be308(0x203)],'handler':_0x32c4bd[_0x1be308(0x1e4)]};else{if(!_0x568b07[_0x32c4bd[_0x1be308(0x1e1)]])try{const _0xd381e5=_0x75243a&&_0x75243a['getCell'](_0x32c4bd['header']);_0xd381e5&&(_0x568b07[_0x32c4bd[_0x1be308(0x1e1)]]={'header':_0xd381e5[_0x1be308(0x203)],'handler':_0x32c4bd['handler']});}catch{}}}_0x75243a[_0x1be308(0x1dc)]==_0x12ce88&&_0x22cbba(_0x568b07);});});_0x59dbed['on'](_0x1a7b37(0x1d2),_0x45996d=>_0x1bd597(_0x59dbed)),_0x59dbed['on'](_0x1a7b37(0x208),_0x33b66a=>_0x5a0fe7(_0x33b66a)),_0x59dbed['on'](_0x1a7b37(0x1ef),async _0x4af98e=>{const _0xcbdac3=_0x1a7b37;var _0x4b94cd;if(typeof(_0x4af98e===null||_0x4af98e===void 0x0?void 0x0:_0x4af98e[_0xcbdac3(0x1fd)])==_0xcbdac3(0x20f)){const _0x230bbe={};_0x331504:for(const _0x8dfa51 in _0x19ee39){if(_0x19ee39[_0x8dfa51][_0xcbdac3(0x1d0)]){const _0x53dc59=_0x4af98e[_0xcbdac3(0x1fd)](_0x19ee39[_0x8dfa51][_0xcbdac3(0x1d0)]);if(!_0x53dc59)continue _0x331504;try{_0x53dc59[_0xcbdac3(0x1cb)]();}catch(_0x50783c){_0x53dc59[_0xcbdac3(0x1cb)]=()=>{const _0x2a9d53=_0xcbdac3;var _0x2841c4;return''+(((_0x2841c4=_0x53dc59===null||_0x53dc59===void 0x0?void 0x0:_0x53dc59[_0x2a9d53(0x206)])===null||_0x2841c4===void 0x0?void 0x0:_0x2841c4['value'])||'');};}typeof((_0x4b94cd=_0x19ee39[_0x8dfa51])===null||_0x4b94cd===void 0x0?void 0x0:_0x4b94cd[_0xcbdac3(0x1e4)])==_0xcbdac3(0x20f)?_0x230bbe[_0x8dfa51]=await _0x19ee39[_0x8dfa51]['handler'](lodash[_0xcbdac3(0x1f1)]({},_0x8dfa51,(_0x53dc59===null||_0x53dc59===void 0x0?void 0x0:_0x53dc59['toString']())||''),_0x53dc59[_0xcbdac3(0x206)]):_0x230bbe[_0x8dfa51]=(_0x53dc59===null||_0x53dc59===void 0x0?void 0x0:_0x53dc59[_0xcbdac3(0x1cb)]())||'';}}Object[_0xcbdac3(0x1c9)](_0x230bbe)[_0xcbdac3(0x1e2)]>0x0&&Object[_0xcbdac3(0x1f3)](_0x230bbe)[_0xcbdac3(0x1c2)](_0x556f1a=>_0x556f1a!='')[_0xcbdac3(0x1e2)]>0x0&&await _0x443e25(_0x230bbe,{'sheet':_0x59dbed,'row':_0x4af98e});}}),await _0x59dbed['read']();});for(const _0x2166fd of _0x4b9e5a){const _0x445099=lodash[_0x4e307c(0x1d9)](_0x2166fd)?((_0x4d10c3=(_0x14a30c=this[_0x4e307c(0x1f8)])===null||_0x14a30c===void 0x0?void 0x0:_0x14a30c[_0x4e307c(0x1e7)])===null||_0x4d10c3===void 0x0?void 0x0:_0x4d10c3[_0x2166fd])||undefined:(_0x65944b=this[_0x4e307c(0x1f8)])===null||_0x65944b===void 0x0?void 0x0:_0x65944b[_0x4e307c(0x201)](_0x2166fd);_0x445099&&await _0x275a16(_0x445099);}}['getWorkbookWriterSheet'](_0x2c7d9c,_0x2cad8b=![]){const _0x56cdd1=a14_0x1ea25b;var _0x410656,_0x3584ed;let _0x955317=this['_WorksheetWriterMap']['has'](_0x2c7d9c)?this[_0x56cdd1(0x1d8)][_0x56cdd1(0x204)](_0x2c7d9c):(_0x410656=this[_0x56cdd1(0x1c1)])===null||_0x410656===void 0x0?void 0x0:_0x410656[_0x56cdd1(0x201)](_0x2c7d9c);return!_0x955317&&_0x2cad8b&&(_0x955317=(_0x3584ed=this['WorkbookWriter'])===null||_0x3584ed===void 0x0?void 0x0:_0x3584ed[_0x56cdd1(0x1f0)](lodash['isNumber'](_0x2c7d9c)?undefined:''+_0x2c7d9c,{'views':[{'state':_0x56cdd1(0x1fa),'ySplit':0x1}]}),this[_0x56cdd1(0x1d8)][_0x56cdd1(0x1f1)](_0x2c7d9c,_0x955317)),_0x955317;}async[a14_0x1ea25b(0x1ce)](){var _0x4092ab;return await((_0x4092ab=this['WorkbookWriter'])===null||_0x4092ab===void 0x0?void 0x0:_0x4092ab['commit']()),this;}*['chunkArray'](_0x41901c,_0x175b0a){const _0x50008f=a14_0x1ea25b;for(let _0x4a2909=0x0;_0x4a2909<_0x41901c[_0x50008f(0x1e2)];_0x4a2909+=_0x175b0a){yield _0x41901c['slice'](_0x4a2909,_0x4a2909+_0x175b0a);}}}exports[a14_0x1ea25b(0x1e6)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a15_0x39c7f2=a15_0x4fb9;(function(_0x4ea7a9,_0x9fe958){var _0x47d971=a15_0x4fb9,_0x366584=_0x4ea7a9();while(!![]){try{var _0x2e76a3=parseInt(_0x47d971(0xea))/0x1+-parseInt(_0x47d971(0xdd))/0x2*(parseInt(_0x47d971(0xe8))/0x3)+parseInt(_0x47d971(0xf1))/0x4*(parseInt(_0x47d971(0xe4))/0x5)+parseInt(_0x47d971(0xdc))/0x6+parseInt(_0x47d971(0xe6))/0x7*(-parseInt(_0x47d971(0xed))/0x8)+-parseInt(_0x47d971(0xee))/0x9*(parseInt(_0x47d971(0xe1))/0xa)+parseInt(_0x47d971(0xf0))/0xb*(parseInt(_0x47d971(0xec))/0xc);if(_0x2e76a3===_0x9fe958)break;else _0x366584['push'](_0x366584['shift']());}catch(_0x1de952){_0x366584['push'](_0x366584['shift']());}}}(a15_0x43c8,0x339b2));var a15_0x3722b4=(function(){var _0x31ca9a=!![];return function(_0x588c5b,_0x53a6b6){var _0x3e6548=_0x31ca9a?function(){var _0x1970d0=a15_0x4fb9;if(_0x53a6b6){var _0x2b0c50=_0x53a6b6[_0x1970d0(0xe0)](_0x588c5b,arguments);return _0x53a6b6=null,_0x2b0c50;}}:function(){};return _0x31ca9a=![],_0x3e6548;};}()),a15_0x23a67a=a15_0x3722b4(this,function(){var _0x3f9def=a15_0x4fb9;return a15_0x23a67a[_0x3f9def(0xd9)]()['search'](_0x3f9def(0xe9))['toString']()[_0x3f9def(0xef)](a15_0x23a67a)[_0x3f9def(0xe5)](_0x3f9def(0xe9));});a15_0x23a67a();'use strict';function a15_0x43c8(){var _0x330207=['58634VNMAoX','__esModule','21912TmTUYg','584WqEqQh','216xnjzwt','constructor','781vllfGN','13928NjHeBu','toString','ACTION_ROUTE_KEY','anncic-api:action','1733718wttSIK','232ynPMSa','ACTION_KEY','AppsConfigTmp','apply','540TrnLJP','defineProperty','anncic-api:action:route','115yqhEHz','search','29967NblBzy','anncic-api:apps:config','831XzWobT','(((.+)+)+)+$'];a15_0x43c8=function(){return _0x330207;};return a15_0x43c8();}Object[a15_0x39c7f2(0xe2)](exports,a15_0x39c7f2(0xeb),{'value':!![]}),exports['AppsConfigTmp']=exports['APPSCONFIG_KEY']=exports['ACTION_ROUTE_KEY']=exports[a15_0x39c7f2(0xde)]=void 0x0,exports[a15_0x39c7f2(0xde)]=a15_0x39c7f2(0xdb),exports[a15_0x39c7f2(0xda)]=a15_0x39c7f2(0xe3),exports['APPSCONFIG_KEY']=a15_0x39c7f2(0xe7);class AppsConfigTmp{}function a15_0x4fb9(_0x44400e,_0x186010){var _0x451982=a15_0x43c8();return a15_0x4fb9=function(_0x23a67a,_0x3722b4){_0x23a67a=_0x23a67a-0xd9;var _0x43c8b2=_0x451982[_0x23a67a];return _0x43c8b2;},a15_0x4fb9(_0x44400e,_0x186010);}exports[a15_0x39c7f2(0xdf)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a16_0x532a(_0x5a5f4c,_0x330ba0){var _0x5bc643=a16_0x3b22();return a16_0x532a=function(_0x5ec7cd,_0xdffb81){_0x5ec7cd=_0x5ec7cd-0xb5;var _0x3b225b=_0x5bc643[_0x5ec7cd];return _0x3b225b;},a16_0x532a(_0x5a5f4c,_0x330ba0);}var a16_0x34e23a=a16_0x532a;(function(_0x5b6bda,_0x368b78){var _0x39ab16=a16_0x532a,_0x11e958=_0x5b6bda();while(!![]){try{var _0x1a3ea1=parseInt(_0x39ab16(0xda))/0x1*(-parseInt(_0x39ab16(0xca))/0x2)+parseInt(_0x39ab16(0xcc))/0x3*(parseInt(_0x39ab16(0xd6))/0x4)+-parseInt(_0x39ab16(0xbe))/0x5+-parseInt(_0x39ab16(0xc7))/0x6*(parseInt(_0x39ab16(0xcd))/0x7)+-parseInt(_0x39ab16(0xce))/0x8+parseInt(_0x39ab16(0xdc))/0x9+-parseInt(_0x39ab16(0xdd))/0xa*(-parseInt(_0x39ab16(0xc8))/0xb);if(_0x1a3ea1===_0x368b78)break;else _0x11e958['push'](_0x11e958['shift']());}catch(_0x26bc1c){_0x11e958['push'](_0x11e958['shift']());}}}(a16_0x3b22,0xdee0c));var a16_0xdffb81=(function(){var _0x3806fc=!![];return function(_0x536dc3,_0x15810){var _0x2d7cfb=_0x3806fc?function(){var _0x499ecb=a16_0x532a;if(_0x15810){var _0x3a90b3=_0x15810[_0x499ecb(0xd3)](_0x536dc3,arguments);return _0x15810=null,_0x3a90b3;}}:function(){};return _0x3806fc=![],_0x2d7cfb;};}()),a16_0x5ec7cd=a16_0xdffb81(this,function(){var _0x57093f=a16_0x532a;return a16_0x5ec7cd[_0x57093f(0xd4)]()['search'](_0x57093f(0xd7))['toString']()[_0x57093f(0xcb)](a16_0x5ec7cd)[_0x57093f(0xd2)](_0x57093f(0xd7));});a16_0x5ec7cd();function a16_0x3b22(){var _0x47da17=['decorate','defineProperty','RuleType','_order','1:是;0:否','valid','design:type','PageDTO','_isreverse','3351275ZfYXOc','分页数量','__esModule','@anncic-api/validator','number','length','_size','metadata','Rule','30PnecMv','18507137GYDODF','排序方式','2882sfhDpD','constructor','3BAzjaf','485387vTzfdu','9719008WgwGrT','getOwnPropertyDescriptor','min','trim','search','apply','toString','integer','5402392ClyYNM','(((.+)+)+)+$','_page','第一页为1,第二页为2','976bqvRQJ','prototype','13662855QDyszK','10cFdUJb','是否倒序'];a16_0x3b22=function(){return _0x47da17;};return a16_0x3b22();}'use strict';var __decorate=this&&this['__decorate']||function(_0x414b73,_0xcf65d0,_0x2ff493,_0x5c9181){var _0xf5302b=a16_0x532a,_0x43351b=arguments[_0xf5302b(0xc3)],_0x2f6c25=_0x43351b<0x3?_0xcf65d0:_0x5c9181===null?_0x5c9181=Object[_0xf5302b(0xcf)](_0xcf65d0,_0x2ff493):_0x5c9181,_0x59c3b9;if(typeof Reflect==='object'&&typeof Reflect[_0xf5302b(0xb5)]==='function')_0x2f6c25=Reflect[_0xf5302b(0xb5)](_0x414b73,_0xcf65d0,_0x2ff493,_0x5c9181);else{for(var _0x268825=_0x414b73[_0xf5302b(0xc3)]-0x1;_0x268825>=0x0;_0x268825--)if(_0x59c3b9=_0x414b73[_0x268825])_0x2f6c25=(_0x43351b<0x3?_0x59c3b9(_0x2f6c25):_0x43351b>0x3?_0x59c3b9(_0xcf65d0,_0x2ff493,_0x2f6c25):_0x59c3b9(_0xcf65d0,_0x2ff493))||_0x2f6c25;}return _0x43351b>0x3&&_0x2f6c25&&Object['defineProperty'](_0xcf65d0,_0x2ff493,_0x2f6c25),_0x2f6c25;},__metadata=this&&this['__metadata']||function(_0xf52c92,_0x24c4bc){var _0xeaa171=a16_0x532a;if(typeof Reflect==='object'&&typeof Reflect[_0xeaa171(0xc5)]==='function')return Reflect['metadata'](_0xf52c92,_0x24c4bc);};Object[a16_0x34e23a(0xb6)](exports,a16_0x34e23a(0xc0),{'value':!![]}),exports[a16_0x34e23a(0xbc)]=void 0x0;const validator_1=require(a16_0x34e23a(0xc1));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a16_0x34e23a(0xb7)]['number']()[a16_0x34e23a(0xd5)]()['min'](0x1),a16_0x34e23a(0xd9)),__metadata('design:type',Number)],PageDTO['prototype'],a16_0x34e23a(0xd8),void 0x0),__decorate([(0x0,validator_1[a16_0x34e23a(0xc6)])(a16_0x34e23a(0xbf),validator_1['RuleType']['number']()['integer']()[a16_0x34e23a(0xd0)](0x1)),__metadata(a16_0x34e23a(0xbb),Number)],PageDTO[a16_0x34e23a(0xdb)],a16_0x34e23a(0xc4),void 0x0),__decorate([(0x0,validator_1['Rule'])(a16_0x34e23a(0xc9),validator_1[a16_0x34e23a(0xb7)]['string']()[a16_0x34e23a(0xd1)]()),__metadata(a16_0x34e23a(0xbb),String)],PageDTO[a16_0x34e23a(0xdb)],a16_0x34e23a(0xb8),void 0x0),__decorate([(0x0,validator_1['Rule'])(a16_0x34e23a(0xde),validator_1[a16_0x34e23a(0xb7)][a16_0x34e23a(0xc2)]()[a16_0x34e23a(0xd5)]()[a16_0x34e23a(0xba)](0x0,0x1),a16_0x34e23a(0xb9)),__metadata(a16_0x34e23a(0xbb),Number)],PageDTO[a16_0x34e23a(0xdb)],a16_0x34e23a(0xbd),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x52c526=a17_0x43c1;function a17_0x43c1(_0x2de695,_0x19fdd5){var _0x361340=a17_0x1051();return a17_0x43c1=function(_0x17384e,_0x34c884){_0x17384e=_0x17384e-0x195;var _0x1051e5=_0x361340[_0x17384e];return _0x1051e5;},a17_0x43c1(_0x2de695,_0x19fdd5);}function a17_0x1051(){var _0x149e15=['50708ijReeM','INTERCEPT_KEY','toString','21FUhnzh','__esModule','4782KBUUUE','184650wmaBTi','anncic-api:intercept','constructor','41586GuHfVB','1320EtJoKy','628606qigpsQ','1734816VmUUMn','20xEeOSO','90GGEzuG','search','(((.+)+)+)+$','3866553mWaJFK'];a17_0x1051=function(){return _0x149e15;};return a17_0x1051();}(function(_0x4b30ef,_0x25a2e4){var _0x4ae24b=a17_0x43c1,_0x18932f=_0x4b30ef();while(!![]){try{var _0x506727=-parseInt(_0x4ae24b(0x1a3))/0x1*(parseInt(_0x4ae24b(0x197))/0x2)+-parseInt(_0x4ae24b(0x1a6))/0x3*(-parseInt(_0x4ae24b(0x19b))/0x4)+-parseInt(_0x4ae24b(0x198))/0x5*(-parseInt(_0x4ae24b(0x1a5))/0x6)+-parseInt(_0x4ae24b(0x1a0))/0x7+parseInt(_0x4ae24b(0x19a))/0x8+-parseInt(_0x4ae24b(0x19f))/0x9+parseInt(_0x4ae24b(0x19c))/0xa*(parseInt(_0x4ae24b(0x199))/0xb);if(_0x506727===_0x25a2e4)break;else _0x18932f['push'](_0x18932f['shift']());}catch(_0x4a159d){_0x18932f['push'](_0x18932f['shift']());}}}(a17_0x1051,0x5bc02));var a17_0x34c884=(function(){var _0x1e3bde=!![];return function(_0x377409,_0x24fbaf){var _0x392ec9=_0x1e3bde?function(){if(_0x24fbaf){var _0x1004c2=_0x24fbaf['apply'](_0x377409,arguments);return _0x24fbaf=null,_0x1004c2;}}:function(){};return _0x1e3bde=![],_0x392ec9;};}()),a17_0x17384e=a17_0x34c884(this,function(){var _0x1ad4b1=a17_0x43c1;return a17_0x17384e[_0x1ad4b1(0x1a2)]()[_0x1ad4b1(0x19d)](_0x1ad4b1(0x19e))[_0x1ad4b1(0x1a2)]()[_0x1ad4b1(0x196)](a17_0x17384e)['search'](_0x1ad4b1(0x19e));});a17_0x17384e();'use strict';Object['defineProperty'](exports,a17_0x52c526(0x1a4),{'value':!![]}),exports['InterceptTargetTmp']=exports[a17_0x52c526(0x1a1)]=void 0x0,exports[a17_0x52c526(0x1a1)]=a17_0x52c526(0x195);class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/index.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ declare module '@midwayjs/koa/dist/interface' {
|
|
|
21
21
|
filemethod: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
request:{
|
|
25
|
+
body?: any;
|
|
26
|
+
rawBody: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
koasend(filepath: string, filename?: string): Promise<void>;
|
|
25
30
|
|
|
26
31
|
when(key: string, callbal: (value: any) => {}): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.87",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.4.
|
|
21
|
-
"@anncic-api/core": "^3.4.
|
|
22
|
-
"@anncic-api/event": "^3.4.
|
|
23
|
-
"@anncic-api/typeorm": "^3.4.
|
|
24
|
-
"@anncic-api/validator": "^3.4.
|
|
20
|
+
"@anncic-api/cache": "^3.4.87",
|
|
21
|
+
"@anncic-api/core": "^3.4.87",
|
|
22
|
+
"@anncic-api/event": "^3.4.87",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.87",
|
|
24
|
+
"@anncic-api/validator": "^3.4.87",
|
|
25
25
|
"@midwayjs/busboy": "^3.17.1",
|
|
26
26
|
"@midwayjs/cross-domain": "^3.17.1",
|
|
27
27
|
"@midwayjs/koa": "^3.17.1",
|
|
28
28
|
"@midwayjs/logger": "^3.4.2",
|
|
29
29
|
"@midwayjs/static-file": "^3.17.1",
|
|
30
|
-
"anncic-apihelper": "^3.4.
|
|
30
|
+
"anncic-apihelper": "^3.4.87",
|
|
31
31
|
"exceljs": "^4.4.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"javascript-obfuscator": "^4.0.2",
|
|
37
37
|
"typescript": "^5.5.4"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f76b4ab53481dfd06c4354b8d789aadd95aeff3b"
|
|
40
40
|
}
|