anncic-api 3.4.43 → 3.4.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.d.ts +12 -0
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.local.d.ts +2 -0
- package/dist/config/config.local.js +1 -0
- 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.d.ts +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.d.ts +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/index.d.ts +3 -0
- package/package.json +13 -12
|
@@ -11,6 +11,13 @@ declare const _default: (appinfo: any) => {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
midwayLogger: {
|
|
15
|
+
default: {
|
|
16
|
+
maxSize: string;
|
|
17
|
+
maxFiles: string;
|
|
18
|
+
dir: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
14
21
|
bodyParser: {
|
|
15
22
|
enableTypes: string[];
|
|
16
23
|
formLimit: string;
|
|
@@ -23,5 +30,10 @@ declare const _default: (appinfo: any) => {
|
|
|
23
30
|
tmpdir: string;
|
|
24
31
|
cleanTimeout: number;
|
|
25
32
|
};
|
|
33
|
+
busboy: {
|
|
34
|
+
mode: string;
|
|
35
|
+
tmpdir: string;
|
|
36
|
+
cleanTimeout: number;
|
|
37
|
+
};
|
|
26
38
|
};
|
|
27
39
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x4e96(_0x33b1cb,_0x2c64c0){var _0x26fb70=a0_0x4771();return a0_0x4e96=function(_0x23fee3,_0x40a5a5){_0x23fee3=_0x23fee3-0x1d7;var _0x477127=_0x26fb70[_0x23fee3];return _0x477127;},a0_0x4e96(_0x33b1cb,_0x2c64c0);}function a0_0x4771(){var _0xc841f7=['default','/runtime/.upload','dhauo1234420123gg3234901','7792204lcaxhO','file','xml','(((.+)+)+)+$','17080261TviYRU','2332224CxynRx','text','__esModule','598blBwjk','zhiulanuiy7892387985hnoi','appDir','_token','3448BVoHuU','2942985hPAJSV','defineProperty','18864dRDfnY','apply','20mb','/runtime','toString','552246zChzJe','30rJAmby','55LAwACM','form','1753QnomVf'];a0_0x4771=function(){return _0xc841f7;};return a0_0x4771();}var a0_0x2db06f=a0_0x4e96;(function(_0x3f47b2,_0x2f9882){var _0x36d605=a0_0x4e96,_0x17b02a=_0x3f47b2();while(!![]){try{var _0x5d08c2=-parseInt(_0x36d605(0x1e6))/0x1*(-parseInt(_0x36d605(0x1f2))/0x2)+-parseInt(_0x36d605(0x1db))/0x3+-parseInt(_0x36d605(0x1ef))/0x4+parseInt(_0x36d605(0x1e4))/0x5*(-parseInt(_0x36d605(0x1e2))/0x6)+-parseInt(_0x36d605(0x1ea))/0x7+parseInt(_0x36d605(0x1da))/0x8*(-parseInt(_0x36d605(0x1dd))/0x9)+parseInt(_0x36d605(0x1e3))/0xa*(parseInt(_0x36d605(0x1ee))/0xb);if(_0x5d08c2===_0x2f9882)break;else _0x17b02a['push'](_0x17b02a['shift']());}catch(_0x2bfad3){_0x17b02a['push'](_0x17b02a['shift']());}}}(a0_0x4771,0x8fe26));var a0_0x40a5a5=(function(){var _0x361d66=!![];return function(_0x300d2d,_0x10f8fa){var _0x44cede=_0x361d66?function(){var _0x2dea5e=a0_0x4e96;if(_0x10f8fa){var _0x2a0b21=_0x10f8fa[_0x2dea5e(0x1de)](_0x300d2d,arguments);return _0x10f8fa=null,_0x2a0b21;}}:function(){};return _0x361d66=![],_0x44cede;};}()),a0_0x23fee3=a0_0x40a5a5(this,function(){var _0x3f89fb=a0_0x4e96;return a0_0x23fee3['toString']()['search'](_0x3f89fb(0x1ed))[_0x3f89fb(0x1e1)]()['constructor'](a0_0x23fee3)['search']('(((.+)+)+)+$');});a0_0x23fee3();'use strict';Object[a0_0x2db06f(0x1dc)](exports,a0_0x2db06f(0x1f1),{'value':!![]}),exports[a0_0x2db06f(0x1e7)]=_0x30c7b4=>{var _0x3ade09=a0_0x2db06f;return{'apitest':!![],'keys':_0x30c7b4['name'],'anncicapi':{'requestKey':_0x3ade09(0x1d9),'password':_0x3ade09(0x1d7),'devices':{'DEFAULT':{'secret':_0x3ade09(0x1e9),'checkcode':_0x3ade09(0x1e9)}}},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':'270d','dir':_0x30c7b4[_0x3ade09(0x1d8)]+_0x3ade09(0x1e0)}},'bodyParser':{'enableTypes':['json',_0x3ade09(0x1e5),_0x3ade09(0x1f0),_0x3ade09(0x1ec)],'formLimit':_0x3ade09(0x1df),'jsonLimit':'20mb','textLimit':_0x3ade09(0x1df),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x30c7b4['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00},'busboy':{'mode':_0x3ade09(0x1eb),'tmpdir':_0x30c7b4[_0x3ade09(0x1d8)]+_0x3ade09(0x1e8),'cleanTimeout':0x5265c00}};};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a1_0x5cf7(){var _0x5cbd60=['892ggbhrq','constructor','43080411aOmucy','apply','default','36455jZKbOh','174999oRphfL','52JIfhzS','1515251FihStN','5596764awpDBg','7gaYjfM','(((.+)+)+)+$','702JqBncW','__esModule','search','toString','51020etovBk','8950672gyHcSR'];a1_0x5cf7=function(){return _0x5cbd60;};return a1_0x5cf7();}function a1_0x5567(_0x1222b1,_0x11c324){var _0x470244=a1_0x5cf7();return a1_0x5567=function(_0x7e981a,_0x541265){_0x7e981a=_0x7e981a-0x6f;var _0x5cf73a=_0x470244[_0x7e981a];return _0x5cf73a;},a1_0x5567(_0x1222b1,_0x11c324);}var a1_0x3a4165=a1_0x5567;(function(_0x592378,_0x3ec215){var _0x592fb6=a1_0x5567,_0x42e863=_0x592378();while(!![]){try{var _0x5366c6=-parseInt(_0x592fb6(0x6f))/0x1+-parseInt(_0x592fb6(0x80))/0x2*(parseInt(_0x592fb6(0x7f))/0x3)+parseInt(_0x592fb6(0x79))/0x4*(-parseInt(_0x592fb6(0x7e))/0x5)+parseInt(_0x592fb6(0x70))/0x6+-parseInt(_0x592fb6(0x71))/0x7*(-parseInt(_0x592fb6(0x78))/0x8)+parseInt(_0x592fb6(0x73))/0x9*(-parseInt(_0x592fb6(0x77))/0xa)+parseInt(_0x592fb6(0x7b))/0xb;if(_0x5366c6===_0x3ec215)break;else _0x42e863['push'](_0x42e863['shift']());}catch(_0x49a22e){_0x42e863['push'](_0x42e863['shift']());}}}(a1_0x5cf7,0xdeb8f));var a1_0x541265=(function(){var _0x355d28=!![];return function(_0x4ccf86,_0x2593d0){var _0x26baf8=_0x355d28?function(){var _0x4cf3e7=a1_0x5567;if(_0x2593d0){var _0x2719fe=_0x2593d0[_0x4cf3e7(0x7c)](_0x4ccf86,arguments);return _0x2593d0=null,_0x2719fe;}}:function(){};return _0x355d28=![],_0x26baf8;};}()),a1_0x7e981a=a1_0x541265(this,function(){var _0x114f1e=a1_0x5567;return a1_0x7e981a[_0x114f1e(0x76)]()[_0x114f1e(0x75)](_0x114f1e(0x72))[_0x114f1e(0x76)]()[_0x114f1e(0x7a)](a1_0x7e981a)[_0x114f1e(0x75)](_0x114f1e(0x72));});a1_0x7e981a();'use strict';Object['defineProperty'](exports,a1_0x3a4165(0x74),{'value':!![]}),exports[a1_0x3a4165(0x7d)]=_0x24f022=>{return{};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x53f248=a2_0x246f;function a2_0x246f(_0xa76a04,_0x589aa1){var _0x30fee3=a2_0x2e46();return a2_0x246f=function(_0x3b601e,_0x521246){_0x3b601e=_0x3b601e-0xbe;var _0x2e461f=_0x30fee3[_0x3b601e];return _0x2e461f;},a2_0x246f(_0xa76a04,_0x589aa1);}(function(_0x18fdaa,_0x4ac60a){var _0x5635c8=a2_0x246f,_0x4b8d7d=_0x18fdaa();while(!![]){try{var _0x4fda69=parseInt(_0x5635c8(0xc4))/0x1*(-parseInt(_0x5635c8(0xcb))/0x2)+parseInt(_0x5635c8(0xbf))/0x3+parseInt(_0x5635c8(0xbe))/0x4*(-parseInt(_0x5635c8(0xc2))/0x5)+-parseInt(_0x5635c8(0xc8))/0x6+-parseInt(_0x5635c8(0xc9))/0x7*(-parseInt(_0x5635c8(0xc6))/0x8)+parseInt(_0x5635c8(0xc7))/0x9+parseInt(_0x5635c8(0xc3))/0xa;if(_0x4fda69===_0x4ac60a)break;else _0x4b8d7d['push'](_0x4b8d7d['shift']());}catch(_0x571733){_0x4b8d7d['push'](_0x4b8d7d['shift']());}}}(a2_0x2e46,0xd815a));var a2_0x521246=(function(){var _0x382c00=!![];return function(_0x371ee3,_0x1e96eb){var _0x312539=_0x382c00?function(){if(_0x1e96eb){var _0x479a4e=_0x1e96eb['apply'](_0x371ee3,arguments);return _0x1e96eb=null,_0x479a4e;}}:function(){};return _0x382c00=![],_0x312539;};}()),a2_0x3b601e=a2_0x521246(this,function(){var _0x117cfb=a2_0x246f;return a2_0x3b601e[_0x117cfb(0xca)]()[_0x117cfb(0xc5)](_0x117cfb(0xc0))[_0x117cfb(0xca)]()['constructor'](a2_0x3b601e)['search'](_0x117cfb(0xc0));});a2_0x3b601e();'use strict';Object['defineProperty'](exports,a2_0x53f248(0xc1),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};function a2_0x2e46(){var _0x5b0356=['709VdYiQB','search','937672nlalEQ','4196142IUQTCr','7105224cGtITm','14upWAxN','toString','1982wOcGEK','971824CTjcIQ','3592137vOzGNH','(((.+)+)+)+$','__esModule','20ygeSqc','18456940PkVqCD'];a2_0x2e46=function(){return _0x5b0356;};return a2_0x2e46();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x23722f=a2_0x2863;function a2_0x2863(_0x207faa,_0x5e8663){const _0x885dbf=a2_0x6bbb();return a2_0x2863=function(_0x142fa4,_0xe14395){_0x142fa4=_0x142fa4-0x11a;let _0x6bbb07=_0x885dbf[_0x142fa4];return _0x6bbb07;},a2_0x2863(_0x207faa,_0x5e8663);}(function(_0x5eaff2,_0x1e6711){const _0x18147e=a2_0x2863,_0x39b787=_0x5eaff2();while(!![]){try{const _0x9a835b=parseInt(_0x18147e(0x15d))/0x1+parseInt(_0x18147e(0x1a6))/0x2*(parseInt(_0x18147e(0x129))/0x3)+parseInt(_0x18147e(0x19a))/0x4+parseInt(_0x18147e(0x18d))/0x5+-parseInt(_0x18147e(0x136))/0x6+parseInt(_0x18147e(0x123))/0x7+-parseInt(_0x18147e(0x13e))/0x8;if(_0x9a835b===_0x1e6711)break;else _0x39b787['push'](_0x39b787['shift']());}catch(_0x7cba32){_0x39b787['push'](_0x39b787['shift']());}}}(a2_0x6bbb,0x9ed7f));const a2_0xe14395=(function(){let _0x1376c6=!![];return function(_0x5742c1,_0x15d40d){const _0x4c11ec=_0x1376c6?function(){const _0x3e27d2=a2_0x2863;if(_0x15d40d){const _0x2bb13c=_0x15d40d[_0x3e27d2(0x166)](_0x5742c1,arguments);return _0x15d40d=null,_0x2bb13c;}}:function(){};return _0x1376c6=![],_0x4c11ec;};}()),a2_0x142fa4=a2_0xe14395(this,function(){const _0x48933c=a2_0x2863;return a2_0x142fa4[_0x48933c(0x17f)]()[_0x48933c(0x169)](_0x48933c(0x173))[_0x48933c(0x17f)]()['constructor'](a2_0x142fa4)[_0x48933c(0x169)](_0x48933c(0x173));});a2_0x142fa4();'use strict';var __decorate=this&&this[a2_0x23722f(0x11d)]||function(_0x603ae,_0x299a04,_0x4519c4,_0x5c3309){const _0x889d1c=a2_0x23722f;var _0x16f1b2=arguments['length'],_0x390ad3=_0x16f1b2<0x3?_0x299a04:_0x5c3309===null?_0x5c3309=Object[_0x889d1c(0x191)](_0x299a04,_0x4519c4):_0x5c3309,_0x3111cb;if(typeof Reflect===_0x889d1c(0x17e)&&typeof Reflect['decorate']===_0x889d1c(0x164))_0x390ad3=Reflect[_0x889d1c(0x121)](_0x603ae,_0x299a04,_0x4519c4,_0x5c3309);else{for(var _0x149ee6=_0x603ae[_0x889d1c(0x160)]-0x1;_0x149ee6>=0x0;_0x149ee6--)if(_0x3111cb=_0x603ae[_0x149ee6])_0x390ad3=(_0x16f1b2<0x3?_0x3111cb(_0x390ad3):_0x16f1b2>0x3?_0x3111cb(_0x299a04,_0x4519c4,_0x390ad3):_0x3111cb(_0x299a04,_0x4519c4))||_0x390ad3;}return _0x16f1b2>0x3&&_0x390ad3&&Object[_0x889d1c(0x143)](_0x299a04,_0x4519c4,_0x390ad3),_0x390ad3;},__metadata=this&&this[a2_0x23722f(0x16c)]||function(_0x14beab,_0x495fd0){const _0x5653c1=a2_0x23722f;if(typeof Reflect===_0x5653c1(0x17e)&&typeof Reflect[_0x5653c1(0x15e)]===_0x5653c1(0x164))return Reflect[_0x5653c1(0x15e)](_0x14beab,_0x495fd0);};Object['defineProperty'](exports,a2_0x23722f(0x161),{'value':!![]}),exports[a2_0x23722f(0x176)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x23722f(0x18a)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x23722f(0x13b)),intercept_1=require(a2_0x23722f(0x159)),action_1=require(a2_0x23722f(0x177)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x23722f(0x194)),upload=require(a2_0x23722f(0x192)),staticFile=require(a2_0x23722f(0x13a)),crossDomain=require(a2_0x23722f(0x178)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x23722f(0x149)),anncic=require(a2_0x23722f(0x122)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x23722f(0x147)),anncicTypeorm=require(a2_0x23722f(0x12e)),anncicValidator=require(a2_0x23722f(0x170)),anncicHelper=require(a2_0x23722f(0x163));function a2_0x6bbb(){const _0xb82f29=['./service/ApiService','DEFAULT','statSync','6061384yXmFJV','http','method','proceed','isClass','defineProperty','Configuration','key','checksign','@anncic-api/event','dirs','./config/config.production','ApiError','upload','includes','undefined','decorator','_matchedRoute','forEach','config','design:type','description','ACTION_ROUTE_KEY','.log','startsWith','MidwayDecoratorService','HEADERS_SIGNATURE','./types/intercept','query','target','req','261633RVrMza','metadata','https://','length','__esModule','anncic-api','anncic-apihelper','function','path','apply','anncicapi','filepath','search','isDirectory','isNull','__metadata','ApiService','devices','getApplications','@anncic-api/validator','headers','getBaseDir','(((.+)+)+)+$','attachment','getAsync','CustomConfiguration','./types/action','@midwayjs/cross-domain','isFunction','/apps','log','tmpdir','443','object','toString','_matchedRouteMeta','encrypted','module','loggerConfig','handler','default','host','substring','InterceptTargetTmp','app','@midwayjs/core','connection','name','512645zcDpaQ','midwayLogger','input','string','getOwnPropertyDescriptor','@midwayjs/upload','requestKey','@midwayjs/koa','apimit','http://','match','hanlderApplications','文件不存在','149900AEieMW','application','defineProperties','App','handlerActionRoute','context','Types','/apps/','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','Anncic-api\x20static-file\x20:\x20mkdir\x20','existsSync','_UNKNOW_','2XsXiug','/runtime/apps-','mkdirSync','addObject','prototype','keys','bodyXml','getConfiguration','MidwayConfigService','body','staticFile','filterConfig','__decorate','get','requestMethod','/runtime','decorate','@anncic-api/core','5130566BWTiBI','getAppDir','defaultsDeep','clients','loggerService','toLowerCase','2252133ELofKu','dir','REQUEST_OBJ_CTX_KEY','getClassMetadata','MidwayEnvironmentService','@anncic-api/typeorm','split','Inject','tagName','APPSCONFIG_KEY','environment','MidwayLoggerService','routerName','2861940MqRsQQ','lastIndexOf','intercept','request','@midwayjs/static-file'];a2_0x6bbb=function(){return _0xb82f29;};return a2_0x6bbb();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5bfee8=a2_0x23722f;await this[_0x5bfee8(0x11c)](),await this[_0x5bfee8(0x183)](),await this['handlerActionRoute'](),await this[_0x5bfee8(0x198)]();}async[a2_0x23722f(0x19e)](){const _0x125edc=a2_0x23722f,_0x27811d=this[_0x125edc(0x151)][_0x125edc(0x1ad)](),_0x3c977c=(0x0,core_1[_0x125edc(0x12c)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x125edc(0x188)])||{};this[_0x125edc(0x14e)]['registerMethodHandler'](action_1[_0x125edc(0x154)],_0x4af857=>{const _0x484d2f=_0x125edc;var _0x37f202;const _0x5ef328=(0x0,core_1['getClassMetadata'])(action_1[_0x484d2f(0x132)],action_1['AppsConfigTmp'])||{},_0x25b130=_0x4af857[_0x484d2f(0x15e)],_0x5d69b4=(0x0,core_1[_0x484d2f(0x12c)])(action_1['ACTION_KEY'],_0x4af857[_0x484d2f(0x15b)])||{},_0x18604e=((_0x37f202=_0x5d69b4===null||_0x5d69b4===void 0x0?void 0x0:_0x5d69b4['filepath'])===null||_0x37f202===void 0x0?void 0x0:_0x37f202[_0x484d2f(0x187)](0x0,_0x5d69b4[_0x484d2f(0x168)][_0x484d2f(0x137)]('.')))||'',_0x2327a0=(_0x5d69b4===null||_0x5d69b4===void 0x0?void 0x0:_0x5d69b4[_0x484d2f(0x182)])?(_0x5ef328===null||_0x5ef328===void 0x0?void 0x0:_0x5ef328[_0x5d69b4['module']])||{}:{};return{'before':async _0x231631=>{const _0x5ba064=_0x484d2f;var _0x451beb,_0x1855a6,_0x5adf16,_0x3a5570;const _0x5540b6=(_0x451beb=_0x231631===null||_0x231631===void 0x0?void 0x0:_0x231631[_0x5ba064(0x15b)])===null||_0x451beb===void 0x0?void 0x0:_0x451beb[core_2[_0x5ba064(0x12b)]],_0x3adcb2=lodash[_0x5ba064(0x125)]({},_0x5540b6[_0x5ba064(0x139)][_0x5ba064(0x11a)]||_0x5540b6[_0x5ba064(0x139)][((_0x1855a6=_0x27811d===null||_0x27811d===void 0x0?void 0x0:_0x27811d[_0x5ba064(0x1ac)])===null||_0x1855a6===void 0x0?void 0x0:_0x1855a6[_0x5ba064(0x145)])||_0x5ba064(0x11a)]||{},_0x5540b6['request'][_0x5ba064(0x15a)]||{});_0x5540b6[_0x5ba064(0x180)]={'module':(_0x2327a0===null||_0x2327a0===void 0x0?void 0x0:_0x2327a0[_0x5ba064(0x18c)])||'','routePath':''+_0x5540b6[_0x5ba064(0x165)],'routeName':_0x5d69b4['routerOptions'][_0x5ba064(0x131)]+'@'+_0x25b130[_0x5ba064(0x135)],'routeMethod':((_0x25b130===null||_0x25b130===void 0x0?void 0x0:_0x25b130[_0x5ba064(0x11f)])||_0x5540b6[_0x5ba064(0x140)]||'')[_0x5ba064(0x128)](),'routeDescription':(_0x25b130===null||_0x25b130===void 0x0?void 0x0:_0x25b130[_0x5ba064(0x153)])||'','filemethod':_0x18604e+'@'+(_0x25b130[_0x5ba064(0x140)]||'')};if(_0x5540b6&&(_0x25b130===null||_0x25b130===void 0x0?void 0x0:_0x25b130[_0x5ba064(0x195)]))try{const _0x12eb55=((_0x5adf16=_0x27811d===null||_0x27811d===void 0x0?void 0x0:_0x27811d[_0x5ba064(0x167)])===null||_0x5adf16===void 0x0?void 0x0:_0x5adf16[_0x5ba064(0x193)])&&typeof(_0x3adcb2===null||_0x3adcb2===void 0x0?void 0x0:_0x3adcb2[_0x27811d['anncicapi'][_0x5ba064(0x193)]])==_0x5ba064(0x190)?JSON['parse'](base64_decode(_0x3adcb2[_0x27811d[_0x5ba064(0x167)]['requestKey']])||'{}')||{}:((_0x3a5570=_0x5540b6===null||_0x5540b6===void 0x0?void 0x0:_0x5540b6[_0x5ba064(0x139)])===null||_0x3a5570===void 0x0?void 0x0:_0x3a5570[_0x5ba064(0x171)])||{};if(!this[_0x5ba064(0x16d)][_0x5ba064(0x146)](_0x12eb55))throw new AnnError(ApiError_1[_0x5ba064(0x14a)][_0x5ba064(0x158)]);}catch(_0x4c50be){if(_0x4c50be instanceof AnnError)throw _0x4c50be;else throw new AnnError(ApiError_1[_0x5ba064(0x14a)][_0x5ba064(0x1a5)]);}},'around':async _0x5a00fc=>{const _0x4c3858=_0x484d2f;var _0x354821,_0x332a71,_0x388f13;const _0x18d8ef=(_0x354821=_0x5a00fc===null||_0x5a00fc===void 0x0?void 0x0:_0x5a00fc[_0x4c3858(0x15b)])===null||_0x354821===void 0x0?void 0x0:_0x354821[core_2[_0x4c3858(0x12b)]];if(_0x18d8ef&&(_0x25b130===null||_0x25b130===void 0x0?void 0x0:_0x25b130[_0x4c3858(0x195)])&&((_0x25b130===null||_0x25b130===void 0x0?void 0x0:_0x25b130[_0x4c3858(0x138)])||typeof(_0x25b130===null||_0x25b130===void 0x0?void 0x0:_0x25b130['intercept'])==_0x4c3858(0x14d))){if(((_0x332a71=_0x18d8ef['headers'])===null||_0x332a71===void 0x0?void 0x0:_0x332a71['device'])&&((_0x388f13=_0x3c977c===null||_0x3c977c===void 0x0?void 0x0:_0x3c977c[_0x18d8ef[_0x4c3858(0x171)]['device']])===null||_0x388f13===void 0x0?void 0x0:_0x388f13[_0x4c3858(0x160)])>0x0)for(const _0x57ce91 of _0x3c977c[_0x18d8ef['headers']['device']]||[]){if(core_1[_0x4c3858(0x1a0)][_0x4c3858(0x142)](_0x57ce91)){const _0x22ef65=await _0x18d8ef['requestContext'][_0x4c3858(0x175)](_0x57ce91);typeof(_0x22ef65===null||_0x22ef65===void 0x0?void 0x0:_0x22ef65['match'])==_0x4c3858(0x164)?await _0x22ef65[_0x4c3858(0x197)](_0x18d8ef,typeof(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x140)])==_0x4c3858(0x190)&&(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)])?_0x18d8ef[_0x4c3858(0x140)][_0x4c3858(0x128)]()+'@'+(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)]):undefined,_0x25b130)&&await _0x22ef65[_0x4c3858(0x184)](_0x18d8ef,typeof(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x140)])==_0x4c3858(0x190)&&(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)])?_0x18d8ef[_0x4c3858(0x140)][_0x4c3858(0x128)]()+'@'+(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)]):undefined,_0x25b130):await _0x22ef65[_0x4c3858(0x184)](_0x18d8ef,typeof(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x140)])==_0x4c3858(0x190)&&(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)])?_0x18d8ef[_0x4c3858(0x140)]['toLowerCase']()+'@'+(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef['_matchedRoute']):undefined,_0x25b130);}else core_1[_0x4c3858(0x1a0)][_0x4c3858(0x179)](_0x57ce91)&&await _0x57ce91(_0x18d8ef,typeof(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x140)])==_0x4c3858(0x190)&&(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)])?_0x18d8ef[_0x4c3858(0x140)][_0x4c3858(0x128)]()+'@'+(_0x18d8ef===null||_0x18d8ef===void 0x0?void 0x0:_0x18d8ef[_0x4c3858(0x14f)]):undefined,_0x25b130);}}return await _0x5a00fc[_0x4c3858(0x141)](..._0x5a00fc['args']);},'afterThrow':(_0x1d885b,_0x45644a)=>{throw _0x45644a;}};});}async[a2_0x23722f(0x198)](){const _0x2593ef=a2_0x23722f,_0xad1ed9=this[_0x2593ef(0x151)][_0x2593ef(0x1ad)]();this[_0x2593ef(0x19b)][_0x2593ef(0x16f)](['koa'])[_0x2593ef(0x150)](_0x4ef364=>{const _0x31b6a1=_0x2593ef;(_0x4ef364===null||_0x4ef364===void 0x0?void 0x0:_0x4ef364[_0x31b6a1(0x19f)])&&Object[_0x31b6a1(0x19c)](_0x4ef364[_0x31b6a1(0x19f)],{'hosturl':{'configurable':![],'get':function(){const _0x43396c=_0x31b6a1;var _0x286876,_0x297a2c,_0xa31f07,_0x8f7772;if((this===null||this===void 0x0?void 0x0:this[_0x43396c(0x186)])&&!this[_0x43396c(0x186)][_0x43396c(0x156)](_0x43396c(0x13f))){let _0x16321d=this['host'][_0x43396c(0x12f)](':');return['80',_0x43396c(0x17d)][_0x43396c(0x14c)](_0x16321d===null||_0x16321d===void 0x0?void 0x0:_0x16321d[0x1])?''+(!!((_0x297a2c=(_0x286876=this===null||this===void 0x0?void 0x0:this[_0x43396c(0x15c)])===null||_0x286876===void 0x0?void 0x0:_0x286876[_0x43396c(0x18b)])===null||_0x297a2c===void 0x0?void 0x0:_0x297a2c['encrypted'])||(_0x16321d===null||_0x16321d===void 0x0?void 0x0:_0x16321d[0x1])=='443'?'https://':_0x43396c(0x196))+_0x16321d[0x0]:''+(!!((_0x8f7772=(_0xa31f07=this===null||this===void 0x0?void 0x0:this[_0x43396c(0x15c)])===null||_0xa31f07===void 0x0?void 0x0:_0xa31f07[_0x43396c(0x18b)])===null||_0x8f7772===void 0x0?void 0x0:_0x8f7772[_0x43396c(0x181)])?_0x43396c(0x15f):_0x43396c(0x196))+this['host'];}return'';}},'ok':{'value':function(_0x43645f,_0x2610ef,_0xe7689=0x0){return{'code':_0xe7689,'data':_0x43645f,'extra':_0x2610ef};}},'input':{'value':function(_0xd9f9bb,_0x2361be){const _0x2e7e70=_0x31b6a1;var _0x56f627;const _0x26edc6=lodash[_0x2e7e70(0x125)]({},this['request'][_0x2e7e70(0x11a)]||this[_0x2e7e70(0x139)][((_0x56f627=_0xad1ed9===null||_0xad1ed9===void 0x0?void 0x0:_0xad1ed9[_0x2e7e70(0x1ac)])===null||_0x56f627===void 0x0?void 0x0:_0x56f627[_0x2e7e70(0x145)])||_0x2e7e70(0x11a)]||{},this['request']['query']||{});return _0xd9f9bb?lodash[_0x2e7e70(0x11e)](_0x26edc6,_0xd9f9bb,_0x2361be):_0x26edc6;}},'when':{'value':async function(_0x131bc7,_0x251304){const _0x2c8b15=_0x31b6a1,_0x400ca1=this[_0x2c8b15(0x18f)](_0x131bc7,null);if(!lodash[_0x2c8b15(0x16b)](_0x400ca1))return await _0x251304(_0x400ca1);}},'only':{'value':function(_0x1a7a07){const _0x3c7a56=_0x31b6a1,_0x45d9c7={};for(let _0x4057ec=0x0;_0x4057ec<_0x1a7a07['length'];_0x4057ec++){lodash['isArray'](_0x1a7a07[_0x4057ec])&&_0x1a7a07[_0x4057ec][_0x3c7a56(0x160)]>0x0&&lodash['isString'](_0x1a7a07[_0x4057ec][0x0])&&(_0x45d9c7[_0x1a7a07[_0x4057ec][0x0]]=this['input'](_0x1a7a07[_0x4057ec][0x0],_0x1a7a07[_0x4057ec][_0x3c7a56(0x160)]>0x1?_0x1a7a07[_0x4057ec][0x1]:null));}return _0x45d9c7;}},'koasend':{'value':async function(_0xc8aad,_0x214ae5){const _0x31f368=_0x31b6a1;if(_0xc8aad&&!fs[_0x31f368(0x1a4)](_0xc8aad)&&!fs[_0x31f368(0x1a4)](this[_0x31f368(0x189)][_0x31f368(0x124)]()+'/'+_0xc8aad))return _0x31f368(0x199);return _0xc8aad=fs[_0x31f368(0x1a4)](_0xc8aad)?_0xc8aad:this[_0x31f368(0x189)][_0x31f368(0x124)]()+'/'+_0xc8aad,this[_0x31f368(0x174)](_0x214ae5||_0xc8aad),await koasend(this,_0xc8aad);}}});});}async['loggerConfig'](){const _0x5ca6bb=a2_0x23722f;var _0x524569,_0x584434;if(fs[_0x5ca6bb(0x1a4)](this['app'][_0x5ca6bb(0x172)]()+_0x5ca6bb(0x17a))&&fs['statSync'](this['app'][_0x5ca6bb(0x172)]()+_0x5ca6bb(0x17a))[_0x5ca6bb(0x16a)]()){const _0x2037f5=this[_0x5ca6bb(0x151)]['getConfiguration'](),_0x4c9baf=((_0x524569=_0x2037f5===null||_0x2037f5===void 0x0?void 0x0:_0x2037f5[_0x5ca6bb(0x18e)])===null||_0x524569===void 0x0?void 0x0:_0x524569[_0x5ca6bb(0x126)])||{};for(const _0x118fe3 of fs['readdirSync'](this[_0x5ca6bb(0x189)]['getBaseDir']()+'/apps')){if(!fs[_0x5ca6bb(0x13d)](this[_0x5ca6bb(0x189)][_0x5ca6bb(0x172)]()+_0x5ca6bb(0x1a1)+_0x118fe3)[_0x5ca6bb(0x16a)]())continue;!(_0x4c9baf===null||_0x4c9baf===void 0x0?void 0x0:_0x4c9baf[_0x118fe3])&&(_0x4c9baf[_0x118fe3]=Object['assign']({},((_0x584434=_0x2037f5===null||_0x2037f5===void 0x0?void 0x0:_0x2037f5['midwayLogger'])===null||_0x584434===void 0x0?void 0x0:_0x584434[_0x5ca6bb(0x185)])||{'maxSize':'1m','dir':this[_0x5ca6bb(0x189)][_0x5ca6bb(0x124)]()+_0x5ca6bb(0x120)},{'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0x118fe3+_0x5ca6bb(0x155),'dir':this[_0x5ca6bb(0x189)][_0x5ca6bb(0x124)]()+_0x5ca6bb(0x1a7)+_0x118fe3})),this[_0x5ca6bb(0x127)]['createLogger'](_0x118fe3,_0x4c9baf[_0x118fe3]);}Object[_0x5ca6bb(0x1ab)](_0x4c9baf)['length']>0x0&&(!_0x2037f5[_0x5ca6bb(0x18e)]&&(_0x2037f5[_0x5ca6bb(0x18e)]={'default':{'maxSize':'1m','dir':this['app']['getAppDir']()+_0x5ca6bb(0x120)}}),_0x2037f5['midwayLogger'][_0x5ca6bb(0x126)]=_0x4c9baf),this[_0x5ca6bb(0x151)][_0x5ca6bb(0x1a9)](_0x2037f5);}}async[a2_0x23722f(0x11c)](){const _0x461df9=a2_0x23722f;var _0xfdd8fd,_0x253203,_0x13b068,_0x4c0350,_0x542ae6,_0x41ea7c;const _0x27f117=this['config']['getConfiguration']();((_0x253203=(_0xfdd8fd=_0x27f117===null||_0x27f117===void 0x0?void 0x0:_0x27f117[_0x461df9(0x167)])===null||_0xfdd8fd===void 0x0?void 0x0:_0xfdd8fd[_0x461df9(0x16e)])===null||_0x253203===void 0x0?void 0x0:_0x253203[_0x461df9(0x13c)])&&Object['keys'](_0x27f117['anncicapi']['devices'])['length']>0x1&&delete _0x27f117[_0x461df9(0x167)][_0x461df9(0x16e)][_0x461df9(0x13c)];if((_0x13b068=_0x27f117===null||_0x27f117===void 0x0?void 0x0:_0x27f117[_0x461df9(0x11b)])===null||_0x13b068===void 0x0?void 0x0:_0x13b068[_0x461df9(0x148)])for(const _0x2f9569 in _0x27f117[_0x461df9(0x11b)][_0x461df9(0x148)]){((_0x4c0350=_0x27f117[_0x461df9(0x11b)]['dirs'][_0x2f9569])===null||_0x4c0350===void 0x0?void 0x0:_0x4c0350[_0x461df9(0x12a)])&&typeof((_0x542ae6=_0x27f117[_0x461df9(0x11b)][_0x461df9(0x148)][_0x2f9569])===null||_0x542ae6===void 0x0?void 0x0:_0x542ae6['dir'])==_0x461df9(0x190)&&!fs[_0x461df9(0x1a4)](_0x27f117[_0x461df9(0x11b)][_0x461df9(0x148)][_0x2f9569]['dir'])&&(fs[_0x461df9(0x1a8)](_0x27f117['staticFile']['dirs'][_0x2f9569][_0x461df9(0x12a)],{'recursive':!![]}),console[_0x461df9(0x17b)](_0x461df9(0x1a3)+_0x27f117['staticFile'][_0x461df9(0x148)][_0x2f9569][_0x461df9(0x12a)]));}((_0x41ea7c=_0x27f117===null||_0x27f117===void 0x0?void 0x0:_0x27f117[_0x461df9(0x14b)])===null||_0x41ea7c===void 0x0?void 0x0:_0x41ea7c[_0x461df9(0x17c)])&&!fs[_0x461df9(0x1a4)](_0x27f117[_0x461df9(0x14b)][_0x461df9(0x17c)])&&(fs[_0x461df9(0x1a8)](_0x27f117[_0x461df9(0x14b)][_0x461df9(0x17c)],{'recursive':!![]}),console[_0x461df9(0x17b)](_0x461df9(0x1a2)+_0x27f117[_0x461df9(0x14b)][_0x461df9(0x17c)])),this[_0x461df9(0x151)][_0x461df9(0x1a9)](_0x27f117);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a2_0x23722f(0x19d)])(),__metadata(a2_0x23722f(0x152),Object)],CustomConfiguration[a2_0x23722f(0x1aa)],a2_0x23722f(0x189),void 0x0),__decorate([(0x0,core_1[a2_0x23722f(0x130)])(),__metadata(a2_0x23722f(0x152),core_2[a2_0x23722f(0x1ae)])],CustomConfiguration[a2_0x23722f(0x1aa)],a2_0x23722f(0x151),void 0x0),__decorate([(0x0,core_1[a2_0x23722f(0x130)])(),__metadata('design:type',core_2[a2_0x23722f(0x157)])],CustomConfiguration[a2_0x23722f(0x1aa)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x23722f(0x130)])(),__metadata(a2_0x23722f(0x152),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x23722f(0x1aa)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x23722f(0x130)])(),__metadata('design:type',core_2[a2_0x23722f(0x12d)])],CustomConfiguration[a2_0x23722f(0x1aa)],a2_0x23722f(0x133),void 0x0),__decorate([(0x0,core_1[a2_0x23722f(0x130)])(),__metadata(a2_0x23722f(0x152),core_1[a2_0x23722f(0x134)])],CustomConfiguration[a2_0x23722f(0x1aa)],a2_0x23722f(0x127),void 0x0),__decorate([(0x0,core_1[a2_0x23722f(0x130)])(),__metadata(a2_0x23722f(0x152),ApiService_1[a2_0x23722f(0x16d)])],CustomConfiguration[a2_0x23722f(0x1aa)],a2_0x23722f(0x16d),void 0x0),exports[a2_0x23722f(0x176)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x23722f(0x144)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x23722f(0x162),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a3_0x507835=a3_0x5a4d;function a3_0x5a4d(_0x64ec62,_0x3622ce){const _0x38accc=a3_0x34d1();return a3_0x5a4d=function(_0x12dcbb,_0x4ff69c){_0x12dcbb=_0x12dcbb-0x19b;let _0x34d10d=_0x38accc[_0x12dcbb];return _0x34d10d;},a3_0x5a4d(_0x64ec62,_0x3622ce);}(function(_0xacb16f,_0x1f2555){const _0x3bcdd5=a3_0x5a4d,_0x209894=_0xacb16f();while(!![]){try{const _0x359ad7=parseInt(_0x3bcdd5(0x226))/0x1*(parseInt(_0x3bcdd5(0x219))/0x2)+-parseInt(_0x3bcdd5(0x1d7))/0x3*(parseInt(_0x3bcdd5(0x1c0))/0x4)+parseInt(_0x3bcdd5(0x1fe))/0x5+parseInt(_0x3bcdd5(0x1ef))/0x6*(parseInt(_0x3bcdd5(0x1e3))/0x7)+-parseInt(_0x3bcdd5(0x1d9))/0x8*(-parseInt(_0x3bcdd5(0x209))/0x9)+-parseInt(_0x3bcdd5(0x1c1))/0xa*(-parseInt(_0x3bcdd5(0x1ee))/0xb)+-parseInt(_0x3bcdd5(0x19f))/0xc*(parseInt(_0x3bcdd5(0x222))/0xd);if(_0x359ad7===_0x1f2555)break;else _0x209894['push'](_0x209894['shift']());}catch(_0x45f54c){_0x209894['push'](_0x209894['shift']());}}}(a3_0x34d1,0x69c86));const a3_0x4ff69c=(function(){let _0x628b3e=!![];return function(_0x2dff16,_0x1577cc){const _0x356683=_0x628b3e?function(){const _0x222de1=a3_0x5a4d;if(_0x1577cc){const _0x28a1af=_0x1577cc[_0x222de1(0x22f)](_0x2dff16,arguments);return _0x1577cc=null,_0x28a1af;}}:function(){};return _0x628b3e=![],_0x356683;};}()),a3_0x12dcbb=a3_0x4ff69c(this,function(){const _0x4159de=a3_0x5a4d;return a3_0x12dcbb[_0x4159de(0x20b)]()[_0x4159de(0x1d5)](_0x4159de(0x1ce))[_0x4159de(0x20b)]()[_0x4159de(0x1de)](a3_0x12dcbb)[_0x4159de(0x1d5)](_0x4159de(0x1ce));});function a3_0x34d1(){const _0x189725=['/runtime','dir','string','anncicapi','tagName','ACTION_ROUTE_KEY','requestMethod','AppsConfigTmp','7450461tHZKeU','HEADERS_SIGNATURE','toString','headers','get','@midwayjs/static-file','handler','addObject','bodyXml','routerOptions','isClass','devices','method','http','getConfiguration','metadata','2LEkeKS','defaultsDeep','substring','@anncic-api/core','Inject','handlerActionRoute','undefined','default','loggerConfig','1882127torVUW','key','keys','hanlderApplications','454035qTujEP','./types/intercept','lastIndexOf','createLogger','assign','config','koa-send','encrypted','.log','apply','readdirSync','Types','isNull','connection','/runtime/apps-','requestKey','apimit','path','84uFHsJp','anncic-apihelper','toLowerCase','upload','decorate','__metadata','koa','MidwayApplicationManager','req','./exception/ApiError','filterConfig','270d','./config/config.production','staticFile','host','request','isArray','App','application','MidwayConfigService','443','__esModule','defineProperty','MidwayLoggerService','getClassMetadata','./types/action','existsSync','attachment','MidwayEnvironmentService','statSync','Configuration','/apps/','文件不存在','1612NCrtMN','10ZJGMoR','getBaseDir','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','midwayLogger','./config/config.default','INTERCEPT_KEY','device','context','decorator','length','design:type','function','_UNKNOW_','(((.+)+)+)+$','input','ApiService','routerName','./service/ApiService','dirs','@anncic-api/event','search','mkdirSync','5583QUuCdv','isString','8bIXLBV','object','app','getAsync','_matchedRoute','constructor','match','CustomConfiguration','REQUEST_OBJ_CTX_KEY','@anncic-api/validator','1967OGdhdw','isDirectory','isFunction','ACTION_KEY','@midwayjs/core','query','target','proceed','https://','@midwayjs/koa','includes','1242406CgQqtg','11586oDbwYf','environment','anncic-api','@anncic-api/typeorm','intercept','tmpdir','APPSCONFIG_KEY','module','getAppDir','body','http://','DEFAULT','filepath','/apps','prototype','1296505AmmVpx','ApiError','description'];a3_0x34d1=function(){return _0x189725;};return a3_0x34d1();}a3_0x12dcbb();'use strict';var __decorate=this&&this['__decorate']||function(_0x2fb52b,_0x1c3c0f,_0x5d453c,_0x19b9cd){const _0x5797f2=a3_0x5a4d;var _0x305c50=arguments[_0x5797f2(0x1ca)],_0x228550=_0x305c50<0x3?_0x1c3c0f:_0x19b9cd===null?_0x19b9cd=Object['getOwnPropertyDescriptor'](_0x1c3c0f,_0x5d453c):_0x19b9cd,_0x521f3b;if(typeof Reflect===_0x5797f2(0x1da)&&typeof Reflect[_0x5797f2(0x1a3)]==='function')_0x228550=Reflect[_0x5797f2(0x1a3)](_0x2fb52b,_0x1c3c0f,_0x5d453c,_0x19b9cd);else{for(var _0x26e60b=_0x2fb52b[_0x5797f2(0x1ca)]-0x1;_0x26e60b>=0x0;_0x26e60b--)if(_0x521f3b=_0x2fb52b[_0x26e60b])_0x228550=(_0x305c50<0x3?_0x521f3b(_0x228550):_0x305c50>0x3?_0x521f3b(_0x1c3c0f,_0x5d453c,_0x228550):_0x521f3b(_0x1c3c0f,_0x5d453c))||_0x228550;}return _0x305c50>0x3&&_0x228550&&Object[_0x5797f2(0x1b5)](_0x1c3c0f,_0x5d453c,_0x228550),_0x228550;},__metadata=this&&this[a3_0x507835(0x1a4)]||function(_0x5ccae1,_0x3c42a6){const _0x14ae55=a3_0x507835;if(typeof Reflect===_0x14ae55(0x1da)&&typeof Reflect['metadata']===_0x14ae55(0x1cc))return Reflect[_0x14ae55(0x218)](_0x5ccae1,_0x3c42a6);};Object[a3_0x507835(0x1b5)](exports,a3_0x507835(0x1b4),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a3_0x507835(0x1e7)),core_2=require(a3_0x507835(0x1e7)),ApiError_1=require(a3_0x507835(0x1a8)),ApiService_1=require(a3_0x507835(0x1d2)),intercept_1=require(a3_0x507835(0x227)),action_1=require(a3_0x507835(0x1b8)),fs=require('fs'),koasend=require(a3_0x507835(0x22c)),koa=require(a3_0x507835(0x1ec)),upload=require('@midwayjs/busboy'),staticFile=require(a3_0x507835(0x20e)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a3_0x507835(0x1c5)),ConfigProduction=require(a3_0x507835(0x1ab)),anncic=require(a3_0x507835(0x21c)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a3_0x507835(0x1d4)),anncicTypeorm=require(a3_0x507835(0x1f2)),anncicValidator=require(a3_0x507835(0x1e2)),anncicHelper=require(a3_0x507835(0x1a0));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x3cee11=a3_0x507835;await this['filterConfig'](),await this[_0x3cee11(0x221)](),await this[_0x3cee11(0x21e)](),await this[_0x3cee11(0x225)]();}async[a3_0x507835(0x21e)](){const _0x46481e=a3_0x507835,_0x239193=this[_0x46481e(0x22b)][_0x46481e(0x217)](),_0x5860df=(0x0,core_1['getClassMetadata'])(intercept_1[_0x46481e(0x1c6)],intercept_1['InterceptTargetTmp'])||{};this[_0x46481e(0x1c9)]['registerMethodHandler'](action_1[_0x46481e(0x206)],_0xb17d1a=>{const _0x4b1775=_0x46481e;var _0x4a2f90;const _0x30eaa0=(0x0,core_1['getClassMetadata'])(action_1[_0x4b1775(0x1f5)],action_1[_0x4b1775(0x208)])||{},_0x4d2ff6=_0xb17d1a[_0x4b1775(0x218)],_0xa45f0e=(0x0,core_1[_0x4b1775(0x1b7)])(action_1[_0x4b1775(0x1e6)],_0xb17d1a[_0x4b1775(0x1e9)])||{},_0x594117=((_0x4a2f90=_0xa45f0e===null||_0xa45f0e===void 0x0?void 0x0:_0xa45f0e[_0x4b1775(0x1fb)])===null||_0x4a2f90===void 0x0?void 0x0:_0x4a2f90[_0x4b1775(0x21b)](0x0,_0xa45f0e[_0x4b1775(0x1fb)][_0x4b1775(0x228)]('.')))||'',_0xeb7a2a=(_0xa45f0e===null||_0xa45f0e===void 0x0?void 0x0:_0xa45f0e[_0x4b1775(0x1f6)])?(_0x30eaa0===null||_0x30eaa0===void 0x0?void 0x0:_0x30eaa0[_0xa45f0e[_0x4b1775(0x1f6)]])||{}:{};return{'before':async _0x516e27=>{const _0x241caa=_0x4b1775;var _0x4c304d,_0xe55dbb,_0xe94f35,_0x9c0805;const _0x3f4b29=(_0x4c304d=_0x516e27===null||_0x516e27===void 0x0?void 0x0:_0x516e27['target'])===null||_0x4c304d===void 0x0?void 0x0:_0x4c304d[core_2[_0x241caa(0x1e1)]],_0x551a99=lodash['defaultsDeep']({},_0x3f4b29[_0x241caa(0x1ae)][_0x241caa(0x1f8)]||_0x3f4b29[_0x241caa(0x1ae)][((_0xe55dbb=_0x239193===null||_0x239193===void 0x0?void 0x0:_0x239193[_0x241caa(0x211)])===null||_0xe55dbb===void 0x0?void 0x0:_0xe55dbb[_0x241caa(0x223)])||_0x241caa(0x1f8)]||{},_0x3f4b29[_0x241caa(0x1ae)][_0x241caa(0x1e8)]||{});_0x3f4b29['_matchedRouteMeta']={'module':(_0xeb7a2a===null||_0xeb7a2a===void 0x0?void 0x0:_0xeb7a2a['name'])||'','routePath':''+_0x3f4b29[_0x241caa(0x19e)],'routeName':_0xa45f0e[_0x241caa(0x212)][_0x241caa(0x205)]+'@'+_0x4d2ff6[_0x241caa(0x1d1)],'routeMethod':((_0x4d2ff6===null||_0x4d2ff6===void 0x0?void 0x0:_0x4d2ff6[_0x241caa(0x207)])||_0x3f4b29[_0x241caa(0x215)]||'')[_0x241caa(0x1a1)](),'routeDescription':(_0x4d2ff6===null||_0x4d2ff6===void 0x0?void 0x0:_0x4d2ff6[_0x241caa(0x200)])||'','filemethod':_0x594117+'@'+(_0x4d2ff6[_0x241caa(0x215)]||'')};if(_0x3f4b29&&(_0x4d2ff6===null||_0x4d2ff6===void 0x0?void 0x0:_0x4d2ff6[_0x241caa(0x19d)]))try{const _0x17cdca=((_0xe94f35=_0x239193===null||_0x239193===void 0x0?void 0x0:_0x239193[_0x241caa(0x204)])===null||_0xe94f35===void 0x0?void 0x0:_0xe94f35[_0x241caa(0x19c)])&&typeof(_0x551a99===null||_0x551a99===void 0x0?void 0x0:_0x551a99[_0x239193[_0x241caa(0x204)][_0x241caa(0x19c)]])==_0x241caa(0x203)?JSON['parse'](base64_decode(_0x551a99[_0x239193[_0x241caa(0x204)]['requestKey']])||'{}')||{}:((_0x9c0805=_0x3f4b29===null||_0x3f4b29===void 0x0?void 0x0:_0x3f4b29[_0x241caa(0x1ae)])===null||_0x9c0805===void 0x0?void 0x0:_0x9c0805[_0x241caa(0x20c)])||{};if(!this[_0x241caa(0x1d0)]['checksign'](_0x17cdca))throw new AnnError(ApiError_1['ApiError'][_0x241caa(0x20a)]);for(const _0x18dca2 in _0x17cdca||{}){_0x3f4b29['headers'][_0x18dca2]=_0x17cdca[_0x18dca2];}}catch(_0x5c9024){if(_0x5c9024 instanceof AnnError)throw _0x5c9024;else throw new AnnError(ApiError_1[_0x241caa(0x1ff)][_0x241caa(0x1cd)]);}},'around':async _0x537e53=>{const _0x4e2da5=_0x4b1775;var _0x46b5a8,_0x34727c,_0x45b048;const _0x77689c=(_0x46b5a8=_0x537e53===null||_0x537e53===void 0x0?void 0x0:_0x537e53[_0x4e2da5(0x1e9)])===null||_0x46b5a8===void 0x0?void 0x0:_0x46b5a8[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x77689c&&(_0x4d2ff6===null||_0x4d2ff6===void 0x0?void 0x0:_0x4d2ff6[_0x4e2da5(0x19d)])&&((_0x4d2ff6===null||_0x4d2ff6===void 0x0?void 0x0:_0x4d2ff6[_0x4e2da5(0x1f3)])||typeof(_0x4d2ff6===null||_0x4d2ff6===void 0x0?void 0x0:_0x4d2ff6['intercept'])==_0x4e2da5(0x21f))){if(((_0x34727c=_0x77689c[_0x4e2da5(0x20c)])===null||_0x34727c===void 0x0?void 0x0:_0x34727c[_0x4e2da5(0x1c7)])&&((_0x45b048=_0x5860df===null||_0x5860df===void 0x0?void 0x0:_0x5860df[_0x77689c[_0x4e2da5(0x20c)][_0x4e2da5(0x1c7)]])===null||_0x45b048===void 0x0?void 0x0:_0x45b048[_0x4e2da5(0x1ca)])>0x0)for(const _0x1216c2 of _0x5860df[_0x77689c[_0x4e2da5(0x20c)][_0x4e2da5(0x1c7)]]||[]){if(core_1['Types'][_0x4e2da5(0x213)](_0x1216c2)){const _0x4cffc2=await _0x77689c['requestContext'][_0x4e2da5(0x1dc)](_0x1216c2);typeof(_0x4cffc2===null||_0x4cffc2===void 0x0?void 0x0:_0x4cffc2['match'])==_0x4e2da5(0x1cc)?await _0x4cffc2[_0x4e2da5(0x1df)](_0x77689c,typeof(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x215)])==_0x4e2da5(0x203)&&(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)])?_0x77689c[_0x4e2da5(0x215)][_0x4e2da5(0x1a1)]()+'@'+(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)]):undefined,_0x4d2ff6)&&await _0x4cffc2[_0x4e2da5(0x20f)](_0x77689c,typeof(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c['method'])==_0x4e2da5(0x203)&&(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)])?_0x77689c[_0x4e2da5(0x215)][_0x4e2da5(0x1a1)]()+'@'+(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)]):undefined,_0x4d2ff6):await _0x4cffc2[_0x4e2da5(0x20f)](_0x77689c,typeof(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x215)])==_0x4e2da5(0x203)&&(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)])?_0x77689c[_0x4e2da5(0x215)]['toLowerCase']()+'@'+(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)]):undefined,_0x4d2ff6);}else core_1[_0x4e2da5(0x231)][_0x4e2da5(0x1e5)](_0x1216c2)&&await _0x1216c2(_0x77689c,typeof(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c['method'])==_0x4e2da5(0x203)&&(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c['_matchedRoute'])?_0x77689c['method'][_0x4e2da5(0x1a1)]()+'@'+(_0x77689c===null||_0x77689c===void 0x0?void 0x0:_0x77689c[_0x4e2da5(0x1dd)]):undefined,_0x4d2ff6);}}return await _0x537e53[_0x4e2da5(0x1ea)](..._0x537e53['args']);},'afterThrow':(_0x5b3410,_0x6d7f61)=>{throw _0x6d7f61;}};});}async['hanlderApplications'](){const _0x5ee718=a3_0x507835,_0x326fbc=this[_0x5ee718(0x22b)][_0x5ee718(0x217)]();this['application']['getApplications']([_0x5ee718(0x1a5)])['forEach'](_0x2b2921=>{const _0x5e2af6=_0x5ee718;(_0x2b2921===null||_0x2b2921===void 0x0?void 0x0:_0x2b2921['context'])&&Object['defineProperties'](_0x2b2921[_0x5e2af6(0x1c8)],{'hosturl':{'configurable':![],'get':function(){const _0x4cf511=_0x5e2af6;var _0x946d48,_0x4367ff,_0x1f6b5d,_0x2b2754;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this['host']['startsWith'](_0x4cf511(0x216))){let _0x38cbcc=this[_0x4cf511(0x1ad)]['split'](':');return['80','443'][_0x4cf511(0x1ed)](_0x38cbcc===null||_0x38cbcc===void 0x0?void 0x0:_0x38cbcc[0x1])?''+(!!((_0x4367ff=(_0x946d48=this===null||this===void 0x0?void 0x0:this[_0x4cf511(0x1a7)])===null||_0x946d48===void 0x0?void 0x0:_0x946d48[_0x4cf511(0x233)])===null||_0x4367ff===void 0x0?void 0x0:_0x4367ff[_0x4cf511(0x22d)])||(_0x38cbcc===null||_0x38cbcc===void 0x0?void 0x0:_0x38cbcc[0x1])==_0x4cf511(0x1b3)?'https://':'http://')+_0x38cbcc[0x0]:''+(!!((_0x2b2754=(_0x1f6b5d=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x1f6b5d===void 0x0?void 0x0:_0x1f6b5d['connection'])===null||_0x2b2754===void 0x0?void 0x0:_0x2b2754['encrypted'])?_0x4cf511(0x1eb):_0x4cf511(0x1f9))+this[_0x4cf511(0x1ad)];}return'';}},'ok':{'value':function(_0x73c50e,_0x5a8b83,_0xd806ea=0x0){return{'code':_0xd806ea,'data':_0x73c50e,'extra':_0x5a8b83};}},'input':{'value':function(_0x5e7245,_0x5a0829){const _0x269f1e=_0x5e2af6;var _0x330bfa;const _0x1d832=lodash[_0x269f1e(0x21a)]({},this[_0x269f1e(0x1ae)][_0x269f1e(0x1f8)]||this[_0x269f1e(0x1ae)][((_0x330bfa=_0x326fbc===null||_0x326fbc===void 0x0?void 0x0:_0x326fbc['bodyXml'])===null||_0x330bfa===void 0x0?void 0x0:_0x330bfa[_0x269f1e(0x223)])||_0x269f1e(0x1f8)]||{},this[_0x269f1e(0x1ae)][_0x269f1e(0x1e8)]||{});return _0x5e7245?lodash[_0x269f1e(0x20d)](_0x1d832,_0x5e7245,_0x5a0829):_0x1d832;}},'when':{'value':async function(_0x10c8eb,_0x2c9954){const _0x4e97c1=_0x5e2af6,_0xa7c68e=this[_0x4e97c1(0x1cf)](_0x10c8eb,null);if(!lodash[_0x4e97c1(0x232)](_0xa7c68e))return await _0x2c9954(_0xa7c68e);}},'only':{'value':function(_0x469b38){const _0xda101d=_0x5e2af6,_0x39870d={};for(let _0x3eb0f2=0x0;_0x3eb0f2<_0x469b38[_0xda101d(0x1ca)];_0x3eb0f2++){lodash[_0xda101d(0x1af)](_0x469b38[_0x3eb0f2])&&_0x469b38[_0x3eb0f2]['length']>0x0&&lodash[_0xda101d(0x1d8)](_0x469b38[_0x3eb0f2][0x0])&&(_0x39870d[_0x469b38[_0x3eb0f2][0x0]]=this[_0xda101d(0x1cf)](_0x469b38[_0x3eb0f2][0x0],_0x469b38[_0x3eb0f2][_0xda101d(0x1ca)]>0x1?_0x469b38[_0x3eb0f2][0x1]:null));}return _0x39870d;}},'koasend':{'value':async function(_0x3d41e5,_0x10ca4c){const _0x7650b9=_0x5e2af6;if(_0x3d41e5&&!fs[_0x7650b9(0x1b9)](_0x3d41e5)&&!fs[_0x7650b9(0x1b9)](this['app'][_0x7650b9(0x1f7)]()+'/'+_0x3d41e5))return _0x7650b9(0x1bf);return _0x3d41e5=fs[_0x7650b9(0x1b9)](_0x3d41e5)?_0x3d41e5:this[_0x7650b9(0x1db)]['getAppDir']()+'/'+_0x3d41e5,this[_0x7650b9(0x1ba)](_0x10ca4c||_0x3d41e5),await koasend(this,_0x3d41e5);}}});});}async[a3_0x507835(0x221)](){const _0x1f9b73=a3_0x507835;var _0x149f15,_0x4d87fa;if(fs['existsSync'](this['app'][_0x1f9b73(0x1c2)]()+_0x1f9b73(0x1fc))&&fs['statSync'](this['app'][_0x1f9b73(0x1c2)]()+_0x1f9b73(0x1fc))[_0x1f9b73(0x1e4)]()){const _0x3e6c16=this[_0x1f9b73(0x22b)][_0x1f9b73(0x217)](),_0x5c68ac=((_0x149f15=_0x3e6c16===null||_0x3e6c16===void 0x0?void 0x0:_0x3e6c16[_0x1f9b73(0x1c4)])===null||_0x149f15===void 0x0?void 0x0:_0x149f15['clients'])||{};for(const _0xd0c56b of fs[_0x1f9b73(0x230)](this[_0x1f9b73(0x1db)]['getBaseDir']()+_0x1f9b73(0x1fc))){if(!fs[_0x1f9b73(0x1bc)](this[_0x1f9b73(0x1db)][_0x1f9b73(0x1c2)]()+_0x1f9b73(0x1be)+_0xd0c56b)[_0x1f9b73(0x1e4)]())continue;!(_0x5c68ac===null||_0x5c68ac===void 0x0?void 0x0:_0x5c68ac[_0xd0c56b])&&(_0x5c68ac[_0xd0c56b]=Object[_0x1f9b73(0x22a)]({},((_0x4d87fa=_0x3e6c16===null||_0x3e6c16===void 0x0?void 0x0:_0x3e6c16[_0x1f9b73(0x1c4)])===null||_0x4d87fa===void 0x0?void 0x0:_0x4d87fa[_0x1f9b73(0x220)])||{'maxSize':'1m','dir':this[_0x1f9b73(0x1db)]['getAppDir']()+_0x1f9b73(0x201)},{'enableJSON':!![],'enableConsole':this[_0x1f9b73(0x1f0)]['isDevelopmentEnvironment'](),'fileLogName':_0xd0c56b+_0x1f9b73(0x22e),'dir':this[_0x1f9b73(0x1db)]['getAppDir']()+_0x1f9b73(0x19b)+_0xd0c56b})),this['loggerService'][_0x1f9b73(0x229)](_0xd0c56b,_0x5c68ac[_0xd0c56b]);}Object['keys'](_0x5c68ac)[_0x1f9b73(0x1ca)]>0x0&&(!_0x3e6c16[_0x1f9b73(0x1c4)]&&(_0x3e6c16[_0x1f9b73(0x1c4)]={'default':{'maxSize':'1m','maxFiles':_0x1f9b73(0x1aa),'dir':this[_0x1f9b73(0x1db)][_0x1f9b73(0x1f7)]()+_0x1f9b73(0x201)}}),_0x3e6c16[_0x1f9b73(0x1c4)]['clients']=_0x5c68ac),this[_0x1f9b73(0x22b)][_0x1f9b73(0x210)](_0x3e6c16);}}async[a3_0x507835(0x1a9)](){const _0x2e0601=a3_0x507835;var _0x1f8589,_0x537f17,_0x3c2a04,_0xe5c149,_0x30749f,_0xf42cae;const _0x5ef878=this[_0x2e0601(0x22b)][_0x2e0601(0x217)]();((_0x537f17=(_0x1f8589=_0x5ef878===null||_0x5ef878===void 0x0?void 0x0:_0x5ef878[_0x2e0601(0x204)])===null||_0x1f8589===void 0x0?void 0x0:_0x1f8589[_0x2e0601(0x214)])===null||_0x537f17===void 0x0?void 0x0:_0x537f17[_0x2e0601(0x1fa)])&&Object[_0x2e0601(0x224)](_0x5ef878[_0x2e0601(0x204)]['devices'])[_0x2e0601(0x1ca)]>0x1&&delete _0x5ef878['anncicapi'][_0x2e0601(0x214)][_0x2e0601(0x1fa)];if((_0x3c2a04=_0x5ef878===null||_0x5ef878===void 0x0?void 0x0:_0x5ef878[_0x2e0601(0x1ac)])===null||_0x3c2a04===void 0x0?void 0x0:_0x3c2a04[_0x2e0601(0x1d3)])for(const _0x33391f in _0x5ef878[_0x2e0601(0x1ac)]['dirs']){((_0xe5c149=_0x5ef878['staticFile']['dirs'][_0x33391f])===null||_0xe5c149===void 0x0?void 0x0:_0xe5c149[_0x2e0601(0x202)])&&typeof((_0x30749f=_0x5ef878['staticFile']['dirs'][_0x33391f])===null||_0x30749f===void 0x0?void 0x0:_0x30749f[_0x2e0601(0x202)])==_0x2e0601(0x203)&&!fs[_0x2e0601(0x1b9)](_0x5ef878[_0x2e0601(0x1ac)][_0x2e0601(0x1d3)][_0x33391f][_0x2e0601(0x202)])&&(fs[_0x2e0601(0x1d6)](_0x5ef878[_0x2e0601(0x1ac)]['dirs'][_0x33391f]['dir'],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x5ef878['staticFile'][_0x2e0601(0x1d3)][_0x33391f][_0x2e0601(0x202)]));}((_0xf42cae=_0x5ef878===null||_0x5ef878===void 0x0?void 0x0:_0x5ef878[_0x2e0601(0x1a2)])===null||_0xf42cae===void 0x0?void 0x0:_0xf42cae[_0x2e0601(0x1f4)])&&!fs[_0x2e0601(0x1b9)](_0x5ef878[_0x2e0601(0x1a2)]['tmpdir'])&&(fs[_0x2e0601(0x1d6)](_0x5ef878[_0x2e0601(0x1a2)][_0x2e0601(0x1f4)],{'recursive':!![]}),console['log'](_0x2e0601(0x1c3)+_0x5ef878[_0x2e0601(0x1a2)][_0x2e0601(0x1f4)])),this[_0x2e0601(0x22b)][_0x2e0601(0x210)](_0x5ef878);}};exports[a3_0x507835(0x1e0)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0x507835(0x1b0)])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a3_0x507835(0x1db),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x507835(0x1cb),core_2[a3_0x507835(0x1b2)])],CustomConfiguration[a3_0x507835(0x1fd)],a3_0x507835(0x22b),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x507835(0x1cb),core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a3_0x507835(0x1c9),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x507835(0x1a6)])],CustomConfiguration[a3_0x507835(0x1fd)],a3_0x507835(0x1b1),void 0x0),__decorate([(0x0,core_1[a3_0x507835(0x21d)])(),__metadata(a3_0x507835(0x1cb),core_2[a3_0x507835(0x1bb)])],CustomConfiguration[a3_0x507835(0x1fd)],a3_0x507835(0x1f0),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x507835(0x1cb),core_1[a3_0x507835(0x1b6)])],CustomConfiguration['prototype'],'loggerService',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x507835(0x1cb),ApiService_1[a3_0x507835(0x1d0)])],CustomConfiguration['prototype'],'ApiService',void 0x0),exports[a3_0x507835(0x1e0)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0x507835(0x1bd)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x507835(0x1f1),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x32d843=a3_0x18fe;(function(_0x538af3,_0xf8dbf){const _0x3e7903=a3_0x18fe,_0x4ad0c8=_0x538af3();while(!![]){try{const _0x4775ed=parseInt(_0x3e7903(0x79))/0x1*(parseInt(_0x3e7903(0x78))/0x2)+-parseInt(_0x3e7903(0x82))/0x3+-parseInt(_0x3e7903(0x83))/0x4+-parseInt(_0x3e7903(0xb5))/0x5+-parseInt(_0x3e7903(0x8e))/0x6*(-parseInt(_0x3e7903(0xbf))/0x7)+parseInt(_0x3e7903(0xb7))/0x8+parseInt(_0x3e7903(0x8a))/0x9;if(_0x4775ed===_0xf8dbf)break;else _0x4ad0c8['push'](_0x4ad0c8['shift']());}catch(_0x5dad58){_0x4ad0c8['push'](_0x4ad0c8['shift']());}}}(a3_0x51c7,0x573fe));const a3_0x21df3c=(function(){let _0x250924=!![];return function(_0x1fe0cb,_0x81a16e){const _0x4f511d=_0x250924?function(){const _0x4e1331=a3_0x18fe;if(_0x81a16e){const _0x4bdcdf=_0x81a16e[_0x4e1331(0xaa)](_0x1fe0cb,arguments);return _0x81a16e=null,_0x4bdcdf;}}:function(){};return _0x250924=![],_0x4f511d;};}()),a3_0x4e3811=a3_0x21df3c(this,function(){const _0x1dd131=a3_0x18fe;return a3_0x4e3811[_0x1dd131(0x88)]()['search']('(((.+)+)+)+$')[_0x1dd131(0x88)]()[_0x1dd131(0x8b)](a3_0x4e3811)[_0x1dd131(0xa3)]('(((.+)+)+)+$');});a3_0x4e3811();'use strict';var _a,_b;Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Action']=Action,exports[a3_0x32d843(0x8f)]=ActionApi,exports[a3_0x32d843(0xb3)]=parseRoute;const fs=require('fs'),validator_1=require(a3_0x32d843(0x9e)),core_1=require('@midwayjs/core'),core_2=require(a3_0x32d843(0x91)),action_1=require('../types/action'),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x32d843(0xc0)])===null||_a===void 0x0?void 0x0:_a[a3_0x32d843(0xa2)])||((_b=process===null||process===void 0x0?void 0x0:process[a3_0x32d843(0xc0)])===null||_b===void 0x0?void 0x0:_b[a3_0x32d843(0x7b)]);function Action(_0xcc101b,_0x23912e,_0x27cfbf={'middleware':[],'sensitive':!![]}){return _0x3d9cd2=>{const _0x41360a=a3_0x18fe;var _0x48eaed;_0x27cfbf['tagName']=_0x23912e;const _0x340556=parseRoute(_0xcc101b);if(_0x340556[_0x41360a(0xb0)]){_0x27cfbf[_0x41360a(0xae)]=_0x27cfbf[_0x41360a(0xae)]?'/'+_0x340556[_0x41360a(0xb0)]+'/'+_0x27cfbf[_0x41360a(0xae)]:'/'+_0x340556[_0x41360a(0x93)];_0x340556[_0x41360a(0xae)]&&(_0x27cfbf[_0x41360a(0xae)]='/'+_0x340556['prefix']+'/'+_0x27cfbf['prefix']);_0x27cfbf['prefix']=_0x27cfbf[_0x41360a(0xae)][_0x41360a(0x96)]()['replace'](/\/{2,}/g,'/');const _0x41bc1e=getModuleConfig(_0x340556['rootpath']+_0x41360a(0x9d),_0x340556['module'],lodash[_0x41360a(0x7d)](_0x340556['filepath'],'ts')?'ts':'js');if(lodash[_0x41360a(0x74)](_0x41bc1e[_0x41360a(0xb8)])&&_0x41bc1e['middleware'][_0x41360a(0x7e)]>0x0)for(let _0x57e109 in _0x41bc1e[_0x41360a(0xb8)]){if(((_0x48eaed=_0x41bc1e===null||_0x41bc1e===void 0x0?void 0x0:_0x41bc1e[_0x41360a(0xac)])===null||_0x48eaed===void 0x0?void 0x0:_0x48eaed['length'])>0x0&&_0x41bc1e[_0x41360a(0xac)][_0x41360a(0xba)](_0x41bc1e['middleware'][_0x57e109])!=-0x1)continue;_0x27cfbf[_0x41360a(0xb8)][_0x41360a(0x95)](_0x41bc1e[_0x41360a(0xb8)][_0x57e109]);}(0x0,core_1[_0x41360a(0x81)])(action_1['ACTION_KEY'],_0x3d9cd2),(0x0,core_1[_0x41360a(0xbb)])(_0x27cfbf[_0x41360a(0xae)],_0x27cfbf)(_0x3d9cd2),(0x0,core_1[_0x41360a(0x94)])(action_1[_0x41360a(0x76)],{'prefix':_0x27cfbf[_0x41360a(0xae)],'pprefix':_0x340556[_0x41360a(0xae)],'module':_0x340556[_0x41360a(0xb0)],'filepath':_0x340556['filepath'],'routerOptions':_0x27cfbf},_0x3d9cd2);}else _0x27cfbf[_0x41360a(0xae)]=_0x27cfbf[_0x41360a(0xae)]?'/'+_0x27cfbf[_0x41360a(0xae)]:'/'+_0x340556['route'],_0x340556[_0x41360a(0xae)]&&(_0x27cfbf['prefix']='/'+_0x340556[_0x41360a(0xae)]+'/'+_0x27cfbf['prefix']),_0x27cfbf[_0x41360a(0xae)]=_0x27cfbf[_0x41360a(0xae)][_0x41360a(0x96)]()[_0x41360a(0xb9)](/\/{2,}/g,'/'),(0x0,core_1[_0x41360a(0x81)])(action_1['ACTION_KEY'],_0x3d9cd2),(0x0,core_1[_0x41360a(0xbb)])(_0x27cfbf[_0x41360a(0xae)],_0x27cfbf)(_0x3d9cd2),(0x0,core_1[_0x41360a(0x94)])(action_1['ACTION_KEY'],{'prefix':_0x27cfbf[_0x41360a(0xae)],'module':_0x340556[_0x41360a(0xb0)],'pprefix':_0x340556[_0x41360a(0xae)],'filepath':_0x340556[_0x41360a(0x9f)],'routerOptions':_0x27cfbf},_0x3d9cd2);};}Action[a3_0x32d843(0xaf)]=function(_0x3d73fe,_0x1061e8='/',_0x252d81={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x31a09d,_0x35501b,_0x11de90)=>{const _0x5641f8=a3_0x18fe;ActionApi(_0x3d73fe,_0x5641f8(0xaf),_0x1061e8,_0x252d81)(_0x31a09d,_0x35501b,_0x11de90);};},Action[a3_0x32d843(0xb1)]=function(_0x54d572,_0x412bc9='/',_0x4f82b2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x54ef42,_0x1c113f,_0x403314)=>{const _0x2aef4f=a3_0x18fe;ActionApi(_0x54d572,_0x2aef4f(0xb1),_0x412bc9,_0x4f82b2)(_0x54ef42,_0x1c113f,_0x403314);};};function ActionApi(_0x373143,_0x2725cb=a3_0x32d843(0xaf),_0xc8d2c8='/',_0x360c0a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2a537d,_0xad72ff,_0x103573)=>{const _0x3f946c=a3_0x18fe;var _0x2686fc,_0x1f75ca,_0x1410c8;!_0x360c0a[_0x3f946c(0xb8)]&&(_0x360c0a[_0x3f946c(0xb8)]=[]);!((_0x2686fc=_0x360c0a===null||_0x360c0a===void 0x0?void 0x0:_0x360c0a[_0x3f946c(0x87)])===null||_0x2686fc===void 0x0?void 0x0:_0x2686fc[_0x3f946c(0x98)])&&(_0x360c0a[_0x3f946c(0x87)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3f946c(0x77)}});if(!_0xc8d2c8)_0xc8d2c8='/';else typeof _0xc8d2c8=='string'&&(!_0xc8d2c8[_0x3f946c(0x9b)]('/')&&!_0xc8d2c8[_0x3f946c(0x9b)]('-')&&(_0xc8d2c8='/'+_0xc8d2c8));typeof _0x360c0a[_0x3f946c(0x99)]==_0x3f946c(0x7f)&&(_0x360c0a[_0x3f946c(0x99)]=!![]);if(((_0x1f75ca=_0x360c0a===null||_0x360c0a===void 0x0?void 0x0:_0x360c0a['middleware'])===null||_0x1f75ca===void 0x0?void 0x0:_0x1f75ca[_0x3f946c(0x7e)])>0x0&&((_0x1410c8=_0x360c0a===null||_0x360c0a===void 0x0?void 0x0:_0x360c0a[_0x3f946c(0xac)])===null||_0x1410c8===void 0x0?void 0x0:_0x1410c8[_0x3f946c(0x7e)])>0x0)for(let _0x2f3e40 in _0x360c0a[_0x3f946c(0xb8)]){_0x360c0a[_0x3f946c(0xac)][_0x3f946c(0xba)](_0x360c0a[_0x3f946c(0xb8)][_0x2f3e40])!==-0x1&&(_0x360c0a['middleware'][_0x2f3e40]=null);}_0x360c0a[_0x3f946c(0xb6)]=_0x373143,(0x0,validator_1['Validator'])(_0x360c0a[_0x3f946c(0x87)])(_0x2a537d,_0xad72ff,_0x103573),(0x0,core_2[_0x3f946c(0xbc)])(Object[_0x3f946c(0xb2)](_0x360c0a,{'path':_0xc8d2c8,'requestMethod':(_0x2725cb||_0x3f946c(0xaf))[_0x3f946c(0x96)]()}))(_0x2a537d,_0xad72ff,_0x103573),(0x0,core_2[_0x3f946c(0x75)])(action_1[_0x3f946c(0xa6)],{'path':_0xc8d2c8,'method':_0xad72ff,'apimit':_0x360c0a[_0x3f946c(0x99)],'intercept':_0x360c0a[_0x3f946c(0x80)],'routerName':_0x360c0a[_0x3f946c(0xb6)],'description':_0x360c0a[_0x3f946c(0x84)],'middleware':(_0x360c0a[_0x3f946c(0xb8)]||[])[_0x3f946c(0x9c)](_0x574026=>!!_0x574026),'requestMethod':(_0x2725cb||'get')[_0x3f946c(0x96)]()},_0x2a537d),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x3f946c(0xa6)],{'path':_0xc8d2c8,'method':_0xad72ff,'apimit':_0x360c0a[_0x3f946c(0x99)],'intercept':_0x360c0a['intercept'],'routerName':_0x360c0a['routerName'],'description':_0x360c0a[_0x3f946c(0x84)],'middleware':(_0x360c0a[_0x3f946c(0xb8)]||[])[_0x3f946c(0x9c)](_0x4af9e9=>!!_0x4af9e9),'requestMethod':(_0x2725cb||'get')[_0x3f946c(0x96)]()})(_0x2a537d,_0xad72ff,_0x103573);};}function parseRoute(_0x191ec9){const _0x416b11=a3_0x32d843;_0x191ec9=_0x191ec9[_0x416b11(0xb9)](/(\\|\/)/g,'/');const _0x5d166a=process[_0x416b11(0x85)]()['replace'](/(\\|\/)/g,'/'),_0x564388=_0x191ec9[_0x416b11(0x7a)](0x0,_0x5d166a[_0x416b11(0x7e)]+_0x191ec9[_0x416b11(0x7a)](_0x5d166a[_0x416b11(0x7e)]+0x1)[_0x416b11(0xba)]('/')+0x1),_0x86728b=_0x191ec9[_0x416b11(0x7a)](_0x564388[_0x416b11(0x7e)]+0x1)[_0x416b11(0xb9)](/(\\|\/)/g,'/'),_0x5387f3={'route':'','prefix':![],'module':![],'rootpath':_0x564388,'filepath':_0x86728b};if(_0x86728b[_0x416b11(0x9b)](_0x416b11(0x86))||_0x86728b['startsWith'](_0x416b11(0x8c))){const _0x208d74=_0x86728b[_0x416b11(0x7a)]((_0x86728b[_0x416b11(0x9b)](_0x416b11(0x86))?_0x416b11(0x86):_0x416b11(0x8c))[_0x416b11(0x7e)])[_0x416b11(0x97)]('/')['filter'](_0x54985e=>_0x54985e&&_0x54985e[_0x416b11(0xb4)]());return _0x208d74[_0x416b11(0x7e)]>0x1&&(_0x5387f3[_0x416b11(0xae)]=_0x208d74[0x0][_0x416b11(0x96)](),_0x208d74[_0x416b11(0xbd)](0x0,0x1)),_0x5387f3['route']=('/'+_0x208d74['join']('/'))[_0x416b11(0xb9)](/(\.ts|\.js)$/,'')[_0x416b11(0xb9)](/\/{2,}/g,'/')[_0x416b11(0xa8)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x416b11(0x96)]()[_0x416b11(0xb9)](/\/\-/g,'/'),_0x5387f3[_0x416b11(0x93)][_0x416b11(0x7d)](_0x416b11(0xad))&&(_0x5387f3[_0x416b11(0x93)]=_0x5387f3[_0x416b11(0x93)]['substring'](0x0,_0x5387f3['route'][_0x416b11(0x7e)]-0x7)),_0x5387f3[_0x416b11(0x93)]['endsWith'](_0x416b11(0x92))&&(_0x5387f3['route']=_0x5387f3[_0x416b11(0x93)][_0x416b11(0x7a)](0x0,_0x5387f3[_0x416b11(0x93)][_0x416b11(0x7e)]-0xb)),_0x5387f3;}else{if(_0x86728b[_0x416b11(0x9b)]('apps/')){const _0x21ed5d=_0x86728b[_0x416b11(0x7a)](0x0,_0x86728b[_0x416b11(0xba)](_0x416b11(0x89))+0x5),_0x2c5566=_0x86728b[_0x416b11(0x7a)](_0x21ed5d[_0x416b11(0x7e)]+0x1)[_0x416b11(0xb9)](/(\\|\/)/g,'/')[_0x416b11(0x97)]('/')[0x0];if(_0x86728b['startsWith'](_0x416b11(0xa9)+_0x2c5566+'/controller/')){const _0x1e74b4=_0x86728b['substring']((_0x21ed5d+'/'+_0x2c5566+_0x416b11(0x9a))[_0x416b11(0x7e)])['split']('/')[_0x416b11(0x9c)](_0x243a8a=>_0x243a8a&&_0x243a8a[_0x416b11(0xb4)]());return _0x1e74b4[_0x416b11(0x7e)]>0x1&&(_0x5387f3[_0x416b11(0xae)]=_0x1e74b4[0x0][_0x416b11(0x96)](),_0x1e74b4['splice'](0x0,0x1)),_0x5387f3[_0x416b11(0xb0)]=_0x2c5566,_0x5387f3['route']=('/'+_0x2c5566+'/'+_0x1e74b4[_0x416b11(0x7c)]('/'))[_0x416b11(0xb9)](/(\.ts|\.js)$/,'')[_0x416b11(0xb9)](/\/{2,}/g,'/')[_0x416b11(0xa8)](/[\/|A-Z]*[^A-Z]+/g)[_0x416b11(0x7c)]('-')[_0x416b11(0x96)]()[_0x416b11(0xb9)](/\/\-/g,'/'),_0x5387f3[_0x416b11(0x93)][_0x416b11(0x7d)](_0x416b11(0xad))&&(_0x5387f3[_0x416b11(0x93)]=_0x5387f3[_0x416b11(0x93)][_0x416b11(0x7a)](0x0,_0x5387f3[_0x416b11(0x93)]['length']-0x7)),_0x5387f3[_0x416b11(0x93)][_0x416b11(0x7d)](_0x416b11(0x92))&&(_0x5387f3[_0x416b11(0x93)]=_0x5387f3[_0x416b11(0x93)]['substring'](0x0,_0x5387f3[_0x416b11(0x93)]['length']-0xb)),_0x5387f3;}throw new Error(_0x86728b+_0x416b11(0xa7)+_0x2c5566+_0x416b11(0x90));}}throw new Error(_0x86728b+'\x20文件请放在app/controller/文件下');}function a3_0x18fe(_0x24c6cd,_0x3aec40){const _0x39e034=a3_0x51c7();return a3_0x18fe=function(_0x4e3811,_0x21df3c){_0x4e3811=_0x4e3811-0x74;let _0x51c79c=_0x39e034[_0x4e3811];return _0x51c79c;},a3_0x18fe(_0x24c6cd,_0x3aec40);}const moduleConfigTmp=(0x0,core_1[a3_0x32d843(0xa1)])(action_1[a3_0x32d843(0xbe)],action_1[a3_0x32d843(0xa4)])||{};function a3_0x51c7(){const _0x2c4060=['RequestMapping','splice','APPSCONFIG_KEY','2380bBoMsp','env','isArray','attachClassMetadata','ACTION_KEY','string','2284BEVyMD','431fxbQTw','substring','NODE_ENV','join','endsWith','length','undefined','intercept','saveModule','935580HlGaiU','1680492LbRmAL','description','cwd','app/controller/','validate','toString','/apps/','3686184gzSdca','constructor','basic/controller/','defaultsDeep','7572GJbvju','ActionApi','/controller/文件下','@midwayjs/core','-controller','route','saveClassMetadata','push','toLowerCase','split','validationOptions','apimit','/controller/','startsWith','filter','/apps','@anncic-api/validator','filepath','existsSync','getClassMetadata','MIDWAY_SERVER_ENV','search','AppsConfigTmp','/config.','ACTION_ROUTE_KEY','\x20文件请放在apps/','match','apps/','apply','keys','middlewareIgnore','-action','prefix','get','module','post','assign','parseRoute','trim','3105920nncjxH','routerName','3037464LmbtlZ','middleware','replace','indexOf','Controller'];a3_0x51c7=function(){return _0x2c4060;};return a3_0x51c7();}function getModuleConfig(_0x419a6f,_0x43d9f8,_0x127a4b){const _0x435996=a3_0x32d843;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x43d9f8])){let _0x360d5d={};if(NODE_ENV&&fs[_0x435996(0xa0)](_0x419a6f+'/'+_0x43d9f8+_0x435996(0xa5)+NODE_ENV+'.'+_0x127a4b)){const _0x657f2b=include(_0x419a6f+'/'+_0x43d9f8+'/config.'+NODE_ENV+'.'+_0x127a4b);Object[_0x435996(0xab)](_0x657f2b)['length']>0x0&&(_0x360d5d=lodash[_0x435996(0x8d)](_0x360d5d,_0x657f2b));}if(fs[_0x435996(0xa0)](_0x419a6f+_0x435996(0xa5)+_0x127a4b)){const _0x51b2a6=include(_0x419a6f+'/config.'+_0x127a4b);Object[_0x435996(0xab)](_0x51b2a6)[_0x435996(0x7e)]>0x0&&(_0x360d5d=lodash[_0x435996(0x8d)](_0x360d5d,_0x51b2a6));}moduleConfigTmp[_0x43d9f8]=_0x360d5d,(0x0,core_1['saveClassMetadata'])(action_1[_0x435996(0xbe)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x43d9f8];}
|
|
1
|
+
const a4_0x48900f=a4_0x1a5b;(function(_0x5ced43,_0x1be16d){const _0x411590=a4_0x1a5b,_0x4c4478=_0x5ced43();while(!![]){try{const _0x3dbb5c=-parseInt(_0x411590(0x1ff))/0x1*(-parseInt(_0x411590(0x1fb))/0x2)+-parseInt(_0x411590(0x224))/0x3+-parseInt(_0x411590(0x1ed))/0x4*(-parseInt(_0x411590(0x20d))/0x5)+parseInt(_0x411590(0x21f))/0x6*(parseInt(_0x411590(0x234))/0x7)+parseInt(_0x411590(0x1f7))/0x8+-parseInt(_0x411590(0x225))/0x9*(-parseInt(_0x411590(0x206))/0xa)+-parseInt(_0x411590(0x1f5))/0xb;if(_0x3dbb5c===_0x1be16d)break;else _0x4c4478['push'](_0x4c4478['shift']());}catch(_0x240462){_0x4c4478['push'](_0x4c4478['shift']());}}}(a4_0x2943,0xcf36d));const a4_0xc767ac=(function(){let _0x5c76a2=!![];return function(_0x52197f,_0x3220d0){const _0x28d704=_0x5c76a2?function(){const _0x5362c1=a4_0x1a5b;if(_0x3220d0){const _0x2cdc7a=_0x3220d0[_0x5362c1(0x201)](_0x52197f,arguments);return _0x3220d0=null,_0x2cdc7a;}}:function(){};return _0x5c76a2=![],_0x28d704;};}()),a4_0x128208=a4_0xc767ac(this,function(){const _0x348e38=a4_0x1a5b;return a4_0x128208[_0x348e38(0x216)]()[_0x348e38(0x219)](_0x348e38(0x22c))['toString']()[_0x348e38(0x1ee)](a4_0x128208)['search'](_0x348e38(0x22c));});a4_0x128208();'use strict';function a4_0x1a5b(_0x2e8b5b,_0x360983){const _0x10eaf1=a4_0x2943();return a4_0x1a5b=function(_0x128208,_0xc767ac){_0x128208=_0x128208-0x1eb;let _0x2943ec=_0x10eaf1[_0x128208];return _0x2943ec;},a4_0x1a5b(_0x2e8b5b,_0x360983);}var _a,_b;Object[a4_0x48900f(0x220)](exports,a4_0x48900f(0x22d),{'value':!![]}),exports['Action']=Action,exports[a4_0x48900f(0x20a)]=ActionApi,exports['parseRoute']=parseRoute;const fs=require('fs'),validator_1=require(a4_0x48900f(0x202)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a4_0x48900f(0x229)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x48900f(0x1f8)])===null||_a===void 0x0?void 0x0:_a[a4_0x48900f(0x20b)])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a4_0x48900f(0x211)]);function a4_0x2943(){const _0x1d67b9=['saveClassMetadata','Controller','get','20rxtpFq','prefix','string','\x20文件请放在app/controller/文件下','ActionApi','MIDWAY_SERVER_ENV','/apps','1339990gaGKmp','intercept','route','toLowerCase','NODE_ENV','existsSync','keys','/controller/','app/controller/','toString','replace','routerName','search','/controller/文件下','ACTION_ROUTE_KEY','filepath','assign','AppsConfigTmp','4816518nxSzix','defineProperty','split','match','startsWith','1116006RnojCp','914427GHOcJf','description','cwd','/config.','../types/action','APPSCONFIG_KEY','splice','(((.+)+)+)+$','__esModule','endsWith','trim','middleware','substring','post','basic/controller/','7PflFoL','getClassMetadata','rootpath','validationOptions','apps/','push','-action','join','8oKfdlt','constructor','validate','createCustomMethodDecorator','/apps/','isArray','filter','-controller','35141117yAHwuX','module','9740616GEJEDW','env','ACTION_KEY','defaultsDeep','21932CvQCcA','length','middlewareIgnore','indexOf','151wRfCEX','apimit','apply','@anncic-api/validator'];a4_0x2943=function(){return _0x1d67b9;};return a4_0x2943();}function Action(_0x115594,_0x270ee4,_0x9a42d9={'middleware':[],'sensitive':!![]}){return _0x3229c5=>{const _0x3e9e65=a4_0x1a5b;var _0x26733b;_0x9a42d9['tagName']=_0x270ee4;const _0x2b4d5b=parseRoute(_0x115594);if(_0x2b4d5b[_0x3e9e65(0x1f6)]){_0x9a42d9[_0x3e9e65(0x207)]=_0x9a42d9[_0x3e9e65(0x207)]?'/'+_0x2b4d5b[_0x3e9e65(0x1f6)]+'/'+_0x9a42d9['prefix']:'/'+_0x2b4d5b['route'];_0x2b4d5b[_0x3e9e65(0x207)]&&(_0x9a42d9[_0x3e9e65(0x207)]='/'+_0x2b4d5b[_0x3e9e65(0x207)]+'/'+_0x9a42d9['prefix']);_0x9a42d9[_0x3e9e65(0x207)]=_0x9a42d9['prefix'][_0x3e9e65(0x210)]()[_0x3e9e65(0x217)](/\/{2,}/g,'/');const _0x31e2b8=getModuleConfig(_0x2b4d5b[_0x3e9e65(0x236)]+_0x3e9e65(0x20c),_0x2b4d5b['module'],lodash[_0x3e9e65(0x22e)](_0x2b4d5b['filepath'],'ts')?'ts':'js');if(lodash[_0x3e9e65(0x1f2)](_0x31e2b8[_0x3e9e65(0x230)])&&_0x31e2b8['middleware'][_0x3e9e65(0x1fc)]>0x0)for(let _0x28f3b1 in _0x31e2b8[_0x3e9e65(0x230)]){if(((_0x26733b=_0x31e2b8===null||_0x31e2b8===void 0x0?void 0x0:_0x31e2b8[_0x3e9e65(0x1fd)])===null||_0x26733b===void 0x0?void 0x0:_0x26733b[_0x3e9e65(0x1fc)])>0x0&&_0x31e2b8['middlewareIgnore'][_0x3e9e65(0x1fe)](_0x31e2b8[_0x3e9e65(0x230)][_0x28f3b1])!=-0x1)continue;_0x9a42d9['middleware'][_0x3e9e65(0x239)](_0x31e2b8[_0x3e9e65(0x230)][_0x28f3b1]);}(0x0,core_1['saveModule'])(action_1[_0x3e9e65(0x1f9)],_0x3229c5),(0x0,core_1[_0x3e9e65(0x204)])(_0x9a42d9[_0x3e9e65(0x207)],_0x9a42d9)(_0x3229c5),(0x0,core_1[_0x3e9e65(0x203)])(action_1[_0x3e9e65(0x1f9)],{'prefix':_0x9a42d9[_0x3e9e65(0x207)],'pprefix':_0x2b4d5b[_0x3e9e65(0x207)],'module':_0x2b4d5b['module'],'filepath':_0x2b4d5b[_0x3e9e65(0x21c)],'routerOptions':_0x9a42d9},_0x3229c5);}else _0x9a42d9[_0x3e9e65(0x207)]=_0x9a42d9['prefix']?'/'+_0x9a42d9[_0x3e9e65(0x207)]:'/'+_0x2b4d5b[_0x3e9e65(0x20f)],_0x2b4d5b['prefix']&&(_0x9a42d9['prefix']='/'+_0x2b4d5b['prefix']+'/'+_0x9a42d9[_0x3e9e65(0x207)]),_0x9a42d9[_0x3e9e65(0x207)]=_0x9a42d9['prefix'][_0x3e9e65(0x210)]()[_0x3e9e65(0x217)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x3e9e65(0x1f9)],_0x3229c5),(0x0,core_1['Controller'])(_0x9a42d9[_0x3e9e65(0x207)],_0x9a42d9)(_0x3229c5),(0x0,core_1[_0x3e9e65(0x203)])(action_1[_0x3e9e65(0x1f9)],{'prefix':_0x9a42d9[_0x3e9e65(0x207)],'module':_0x2b4d5b[_0x3e9e65(0x1f6)],'pprefix':_0x2b4d5b['prefix'],'filepath':_0x2b4d5b[_0x3e9e65(0x21c)],'routerOptions':_0x9a42d9},_0x3229c5);};}Action['get']=function(_0x2cf783,_0x4a971e='/',_0x447a3b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5cc0c7,_0x2fa04a,_0xa72d48)=>{ActionApi(_0x2cf783,'get',_0x4a971e,_0x447a3b)(_0x5cc0c7,_0x2fa04a,_0xa72d48);};},Action[a4_0x48900f(0x232)]=function(_0x364ae0,_0x11f435='/',_0x1c95e7={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2aa892,_0x4b03e1,_0x4ff71b)=>{ActionApi(_0x364ae0,'post',_0x11f435,_0x1c95e7)(_0x2aa892,_0x4b03e1,_0x4ff71b);};};function ActionApi(_0x840af,_0x19ef49=a4_0x48900f(0x205),_0x2c77f6='/',_0x388078={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4ec6b2,_0x88968d,_0x56600f)=>{const _0x4e860b=a4_0x1a5b;var _0x202a07,_0x16c330,_0x4a7ad4;!_0x388078[_0x4e860b(0x230)]&&(_0x388078[_0x4e860b(0x230)]=[]);!((_0x202a07=_0x388078===null||_0x388078===void 0x0?void 0x0:_0x388078[_0x4e860b(0x1ef)])===null||_0x202a07===void 0x0?void 0x0:_0x202a07[_0x4e860b(0x237)])&&(_0x388078[_0x4e860b(0x1ef)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x2c77f6)_0x2c77f6='/';else typeof _0x2c77f6==_0x4e860b(0x208)&&(!_0x2c77f6[_0x4e860b(0x223)]('/')&&!_0x2c77f6['startsWith']('-')&&(_0x2c77f6='/'+_0x2c77f6));typeof _0x388078[_0x4e860b(0x200)]=='undefined'&&(_0x388078['apimit']=!![]);if(((_0x16c330=_0x388078===null||_0x388078===void 0x0?void 0x0:_0x388078['middleware'])===null||_0x16c330===void 0x0?void 0x0:_0x16c330['length'])>0x0&&((_0x4a7ad4=_0x388078===null||_0x388078===void 0x0?void 0x0:_0x388078[_0x4e860b(0x1fd)])===null||_0x4a7ad4===void 0x0?void 0x0:_0x4a7ad4[_0x4e860b(0x1fc)])>0x0)for(let _0x218ded in _0x388078[_0x4e860b(0x230)]){_0x388078[_0x4e860b(0x1fd)][_0x4e860b(0x1fe)](_0x388078[_0x4e860b(0x230)][_0x218ded])!==-0x1&&(_0x388078[_0x4e860b(0x230)][_0x218ded]=null);}_0x388078[_0x4e860b(0x218)]=_0x840af,(0x0,validator_1['Validator'])(_0x388078[_0x4e860b(0x1ef)])(_0x4ec6b2,_0x88968d,_0x56600f),(0x0,core_2['RequestMapping'])(Object[_0x4e860b(0x21d)](_0x388078,{'path':_0x2c77f6,'requestMethod':(_0x19ef49||_0x4e860b(0x205))[_0x4e860b(0x210)]()}))(_0x4ec6b2,_0x88968d,_0x56600f),(0x0,core_2['attachClassMetadata'])(action_1[_0x4e860b(0x21b)],{'path':_0x2c77f6,'method':_0x88968d,'apimit':_0x388078[_0x4e860b(0x200)],'intercept':_0x388078[_0x4e860b(0x20e)],'routerName':_0x388078['routerName'],'description':_0x388078[_0x4e860b(0x226)],'middleware':(_0x388078[_0x4e860b(0x230)]||[])['filter'](_0x70f98c=>!!_0x70f98c),'requestMethod':(_0x19ef49||'get')[_0x4e860b(0x210)]()},_0x4ec6b2),(0x0,core_2[_0x4e860b(0x1f0)])(action_1[_0x4e860b(0x21b)],{'path':_0x2c77f6,'method':_0x88968d,'apimit':_0x388078[_0x4e860b(0x200)],'intercept':_0x388078['intercept'],'routerName':_0x388078[_0x4e860b(0x218)],'description':_0x388078['description'],'middleware':(_0x388078[_0x4e860b(0x230)]||[])[_0x4e860b(0x1f3)](_0x283b14=>!!_0x283b14),'requestMethod':(_0x19ef49||_0x4e860b(0x205))[_0x4e860b(0x210)]()})(_0x4ec6b2,_0x88968d,_0x56600f);};}function parseRoute(_0x578f40){const _0x5d76bd=a4_0x48900f;_0x578f40=_0x578f40[_0x5d76bd(0x217)](/(\\|\/)/g,'/');const _0x18bc1f=process[_0x5d76bd(0x227)]()[_0x5d76bd(0x217)](/(\\|\/)/g,'/'),_0x56a64f=_0x578f40[_0x5d76bd(0x231)](0x0,_0x18bc1f['length']+_0x578f40['substring'](_0x18bc1f[_0x5d76bd(0x1fc)]+0x1)[_0x5d76bd(0x1fe)]('/')+0x1),_0x5e8c5b=_0x578f40[_0x5d76bd(0x231)](_0x56a64f[_0x5d76bd(0x1fc)]+0x1)[_0x5d76bd(0x217)](/(\\|\/)/g,'/'),_0x274dd1={'route':'','prefix':![],'module':![],'rootpath':_0x56a64f,'filepath':_0x5e8c5b};if(_0x5e8c5b[_0x5d76bd(0x223)](_0x5d76bd(0x215))||_0x5e8c5b[_0x5d76bd(0x223)](_0x5d76bd(0x233))){const _0x543944=_0x5e8c5b[_0x5d76bd(0x231)]((_0x5e8c5b[_0x5d76bd(0x223)](_0x5d76bd(0x215))?_0x5d76bd(0x215):_0x5d76bd(0x233))[_0x5d76bd(0x1fc)])[_0x5d76bd(0x221)]('/')['filter'](_0x4f7452=>_0x4f7452&&_0x4f7452[_0x5d76bd(0x22f)]());return _0x543944[_0x5d76bd(0x1fc)]>0x1&&(_0x274dd1[_0x5d76bd(0x207)]=_0x543944[0x0][_0x5d76bd(0x210)](),_0x543944[_0x5d76bd(0x22b)](0x0,0x1)),_0x274dd1[_0x5d76bd(0x20f)]=('/'+_0x543944['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0x5d76bd(0x217)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x5d76bd(0x1ec)]('-')[_0x5d76bd(0x210)]()[_0x5d76bd(0x217)](/\/\-/g,'/'),_0x274dd1['route'][_0x5d76bd(0x22e)]('-action')&&(_0x274dd1[_0x5d76bd(0x20f)]=_0x274dd1['route']['substring'](0x0,_0x274dd1[_0x5d76bd(0x20f)]['length']-0x7)),_0x274dd1['route'][_0x5d76bd(0x22e)](_0x5d76bd(0x1f4))&&(_0x274dd1[_0x5d76bd(0x20f)]=_0x274dd1['route']['substring'](0x0,_0x274dd1[_0x5d76bd(0x20f)][_0x5d76bd(0x1fc)]-0xb)),_0x274dd1;}else{if(_0x5e8c5b[_0x5d76bd(0x223)](_0x5d76bd(0x238))){const _0x39113b=_0x5e8c5b[_0x5d76bd(0x231)](0x0,_0x5e8c5b['indexOf'](_0x5d76bd(0x1f1))+0x5),_0x5b1194=_0x5e8c5b['substring'](_0x39113b[_0x5d76bd(0x1fc)]+0x1)[_0x5d76bd(0x217)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x5e8c5b[_0x5d76bd(0x223)](_0x5d76bd(0x238)+_0x5b1194+_0x5d76bd(0x214))){const _0x7c8d7f=_0x5e8c5b[_0x5d76bd(0x231)]((_0x39113b+'/'+_0x5b1194+_0x5d76bd(0x214))[_0x5d76bd(0x1fc)])[_0x5d76bd(0x221)]('/')[_0x5d76bd(0x1f3)](_0x150778=>_0x150778&&_0x150778[_0x5d76bd(0x22f)]());return _0x7c8d7f[_0x5d76bd(0x1fc)]>0x1&&(_0x274dd1['prefix']=_0x7c8d7f[0x0]['toLowerCase'](),_0x7c8d7f['splice'](0x0,0x1)),_0x274dd1[_0x5d76bd(0x1f6)]=_0x5b1194,_0x274dd1[_0x5d76bd(0x20f)]=('/'+_0x5b1194+'/'+_0x7c8d7f[_0x5d76bd(0x1ec)]('/'))[_0x5d76bd(0x217)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x5d76bd(0x222)](/[\/|A-Z]*[^A-Z]+/g)[_0x5d76bd(0x1ec)]('-')['toLowerCase']()[_0x5d76bd(0x217)](/\/\-/g,'/'),_0x274dd1[_0x5d76bd(0x20f)]['endsWith'](_0x5d76bd(0x1eb))&&(_0x274dd1[_0x5d76bd(0x20f)]=_0x274dd1['route'][_0x5d76bd(0x231)](0x0,_0x274dd1['route'][_0x5d76bd(0x1fc)]-0x7)),_0x274dd1[_0x5d76bd(0x20f)]['endsWith'](_0x5d76bd(0x1f4))&&(_0x274dd1[_0x5d76bd(0x20f)]=_0x274dd1[_0x5d76bd(0x20f)][_0x5d76bd(0x231)](0x0,_0x274dd1[_0x5d76bd(0x20f)][_0x5d76bd(0x1fc)]-0xb)),_0x274dd1;}throw new Error(_0x5e8c5b+'\x20文件请放在apps/'+_0x5b1194+_0x5d76bd(0x21a));}}throw new Error(_0x5e8c5b+_0x5d76bd(0x209));}const moduleConfigTmp=(0x0,core_1[a4_0x48900f(0x235)])(action_1[a4_0x48900f(0x22a)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x47e86c,_0x796104,_0x2b759b){const _0x526ce1=a4_0x48900f;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x796104])){let _0x27c289={};if(NODE_ENV&&fs[_0x526ce1(0x212)](_0x47e86c+'/'+_0x796104+'/config.'+NODE_ENV+'.'+_0x2b759b)){const _0x1cfce2=include(_0x47e86c+'/'+_0x796104+_0x526ce1(0x228)+NODE_ENV+'.'+_0x2b759b);Object[_0x526ce1(0x213)](_0x1cfce2)['length']>0x0&&(_0x27c289=lodash['defaultsDeep'](_0x27c289,_0x1cfce2));}if(fs[_0x526ce1(0x212)](_0x47e86c+_0x526ce1(0x228)+_0x2b759b)){const _0xd9b7e3=include(_0x47e86c+'/config.'+_0x2b759b);Object[_0x526ce1(0x213)](_0xd9b7e3)['length']>0x0&&(_0x27c289=lodash[_0x526ce1(0x1fa)](_0x27c289,_0xd9b7e3));}moduleConfigTmp[_0x796104]=_0x27c289,(0x0,core_1[_0x526ce1(0x203)])(action_1[_0x526ce1(0x22a)],moduleConfigTmp,action_1[_0x526ce1(0x21e)]);}return moduleConfigTmp[_0x796104];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x5501(_0x263dc9,_0x31f97c){const _0x250c01=a5_0x4cfe();return a5_0x5501=function(_0x281625,_0x402203){_0x281625=_0x281625-0x1b4;let _0x4cfe02=_0x250c01[_0x281625];return _0x4cfe02;},a5_0x5501(_0x263dc9,_0x31f97c);}const a5_0x543080=a5_0x5501;(function(_0x4a6873,_0x1414c3){const _0x586b33=a5_0x5501,_0x231acb=_0x4a6873();while(!![]){try{const _0x349a7f=-parseInt(_0x586b33(0x1b5))/0x1*(parseInt(_0x586b33(0x1bf))/0x2)+-parseInt(_0x586b33(0x1cc))/0x3+-parseInt(_0x586b33(0x1c4))/0x4+parseInt(_0x586b33(0x1c0))/0x5*(parseInt(_0x586b33(0x1c6))/0x6)+-parseInt(_0x586b33(0x1d1))/0x7+parseInt(_0x586b33(0x1bb))/0x8*(-parseInt(_0x586b33(0x1cf))/0x9)+parseInt(_0x586b33(0x1be))/0xa;if(_0x349a7f===_0x1414c3)break;else _0x231acb['push'](_0x231acb['shift']());}catch(_0x2cd4b1){_0x231acb['push'](_0x231acb['shift']());}}}(a5_0x4cfe,0x37e7f));function a5_0x4cfe(){const _0x554ffc=['getApplicationContext','app','MidwayEnvironmentService','1056060Jutyuo','getAsync','6XcWEUq','apply','constructor','apitest','@midwayjs/core','getConfig','794559JGjorj','../service/ApitestService','Apitest','22284PYriVO','(((.+)+)+)+$','31591iFyIcY','RequestMapping','85573Ydvjii','value','toString','defineProperty','isDevelopmentEnvironment','search','40uCVNng','ApitestService','get','9174280HvxHbW','6SbNzdZ','570215oxqQQd'];a5_0x4cfe=function(){return _0x554ffc;};return a5_0x4cfe();}const a5_0x402203=(function(){let _0x258744=!![];return function(_0x1e7c99,_0x14e44b){const _0xe6d1d1=_0x258744?function(){const _0x29f655=a5_0x5501;if(_0x14e44b){const _0x3186ef=_0x14e44b[_0x29f655(0x1c7)](_0x1e7c99,arguments);return _0x14e44b=null,_0x3186ef;}}:function(){};return _0x258744=![],_0xe6d1d1;};}()),a5_0x281625=a5_0x402203(this,function(){const _0x1789c1=a5_0x5501;return a5_0x281625[_0x1789c1(0x1b7)]()[_0x1789c1(0x1ba)]('(((.+)+)+)+$')['toString']()[_0x1789c1(0x1c8)](a5_0x281625)[_0x1789c1(0x1ba)](_0x1789c1(0x1d0));});a5_0x281625();'use strict';Object[a5_0x543080(0x1b8)](exports,'__esModule',{'value':!![]}),exports[a5_0x543080(0x1ce)]=Apitest;const core_1=require(a5_0x543080(0x1ca)),ApitestService_1=require(a5_0x543080(0x1cd));function Apitest(_0x5aa34e='/apitest',_0x52b9b0){return(_0x959436,_0x11cfb6,_0xe162d5)=>{const _0x488ee3=a5_0x5501;return(0x0,core_1[_0x488ee3(0x1b4)])({'path':_0x5aa34e,'requestMethod':_0x488ee3(0x1bd)})(_0x959436,_0x11cfb6,_0xe162d5),_0xe162d5[_0x488ee3(0x1b6)]=async function(..._0x58dff9){const _0x7c9ac4=_0x488ee3;var _0x2b65cd;const _0x34c1d2=(_0x2b65cd=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x2b65cd===void 0x0?void 0x0:_0x2b65cd[_0x7c9ac4(0x1c2)];if(_0x34c1d2&&_0x34c1d2[_0x7c9ac4(0x1cb)](_0x7c9ac4(0x1c9))){const _0x3f0f52=await _0x34c1d2[_0x7c9ac4(0x1c1)]()[_0x7c9ac4(0x1c5)](ApitestService_1[_0x7c9ac4(0x1bc)]),_0x2ac9eb=await _0x34c1d2[_0x7c9ac4(0x1c1)]()['getAsync'](core_1[_0x7c9ac4(0x1c3)]);return _0x2ac9eb[_0x7c9ac4(0x1b9)]()&&(_0x52b9b0['filepath']=!![]),await _0x3f0f52['apidoc'](_0x52b9b0);}return'';},_0xe162d5;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5974de=a6_0x3079;(function(_0x66b5e4,_0x401362){const _0x520005=a6_0x3079,_0x5a1fd6=_0x66b5e4();while(!![]){try{const _0x3b77cc=-parseInt(_0x520005(0x100))/0x1+-parseInt(_0x520005(0xfe))/0x2*(parseInt(_0x520005(0x117))/0x3)+parseInt(_0x520005(0xf8))/0x4+-parseInt(_0x520005(0x113))/0x5*(parseInt(_0x520005(0x116))/0x6)+-parseInt(_0x520005(0xfb))/0x7*(-parseInt(_0x520005(0x118))/0x8)+-parseInt(_0x520005(0x112))/0x9+-parseInt(_0x520005(0x101))/0xa*(-parseInt(_0x520005(0x109))/0xb);if(_0x3b77cc===_0x401362)break;else _0x5a1fd6['push'](_0x5a1fd6['shift']());}catch(_0x15c055){_0x5a1fd6['push'](_0x5a1fd6['shift']());}}}(a6_0x472b,0xf344f));const a6_0x22fb56=(function(){let _0x469f9e=!![];return function(_0xeb471e,_0x56ee24){const _0x46521e=_0x469f9e?function(){const _0x1e06e2=a6_0x3079;if(_0x56ee24){const _0x543cd9=_0x56ee24[_0x1e06e2(0x107)](_0xeb471e,arguments);return _0x56ee24=null,_0x543cd9;}}:function(){};return _0x469f9e=![],_0x46521e;};}()),a6_0x52de5=a6_0x22fb56(this,function(){const _0x5d6e94=a6_0x3079;return a6_0x52de5[_0x5d6e94(0xfa)]()[_0x5d6e94(0x104)](_0x5d6e94(0x110))['toString']()[_0x5d6e94(0x102)](a6_0x52de5)[_0x5d6e94(0x104)](_0x5d6e94(0x110));});a6_0x52de5();'use strict';Object[a6_0x5974de(0x111)](exports,'__esModule',{'value':!![]}),exports[a6_0x5974de(0x114)]=void 0x0,exports[a6_0x5974de(0x10b)]=Intercept;function a6_0x472b(){const _0x4f46e5=['isArray','getClassMetadata','5362wvQAhu','match','1109408zBmjPO','10OYngDx','constructor','ScopeEnum','search','Scope','Singleton','apply','INTERCEPT_KEY','44855173CUapcp','Provide','Intercept','toUpperCase','saveClassMetadata','InterceptTargetTmp','push','(((.+)+)+)+$','defineProperty','5060205JmBACG','35qZwxxw','IIntercept','@midwayjs/core','1475964dMJUED','1743KzMPmi','12157480TIoSCo','1401100CbKJeM','../types/intercept','toString','7UjcZwA'];a6_0x472b=function(){return _0x4f46e5;};return a6_0x472b();}const core_1=require(a6_0x5974de(0x115)),intercept_1=require(a6_0x5974de(0xf9));function a6_0x3079(_0x14fabd,_0x1dc7b4){const _0x368f26=a6_0x472b();return a6_0x3079=function(_0x52de5,_0x22fb56){_0x52de5=_0x52de5-0xf8;let _0x472b8c=_0x368f26[_0x52de5];return _0x472b8c;},a6_0x3079(_0x14fabd,_0x1dc7b4);}function Intercept(_0x1e8ed0){return _0x48352f=>{const _0x4157d2=a6_0x3079,_0x4dec21=(0x0,core_1[_0x4157d2(0xfd)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x4157d2(0x10e)])||{};for(let _0x3722dc of Array[_0x4157d2(0xfc)](_0x1e8ed0)?_0x1e8ed0:[_0x1e8ed0]){_0x3722dc=_0x3722dc[_0x4157d2(0x10c)]();!(_0x4dec21===null||_0x4dec21===void 0x0?void 0x0:_0x4dec21[_0x3722dc])&&(_0x4dec21[_0x3722dc]=[]);if(_0x4dec21[_0x3722dc]['includes'](_0x48352f))continue;_0x4dec21[_0x3722dc][_0x4157d2(0x10f)](_0x48352f);}(0x0,core_1[_0x4157d2(0x10a)])()(_0x48352f),(0x0,core_1[_0x4157d2(0x105)])(core_1[_0x4157d2(0x103)][_0x4157d2(0x106)])(_0x48352f),(0x0,core_1[_0x4157d2(0x10d)])(intercept_1[_0x4157d2(0x108)],_0x4dec21,intercept_1[_0x4157d2(0x10e)]);};}class IIntercept{async[a6_0x5974de(0xff)](_0x2477a8,_0x3effd4,_0x10dcb7){return!![];}}exports[a6_0x5974de(0x114)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x456ab4=a7_0x19c3;(function(_0x3a7f4e,_0x528861){var _0x3ffccc=a7_0x19c3,_0x297b1e=_0x3a7f4e();while(!![]){try{var _0x107e1e=-parseInt(_0x3ffccc(0xd9))/0x1+parseInt(_0x3ffccc(0xe1))/0x2*(-parseInt(_0x3ffccc(0xcc))/0x3)+-parseInt(_0x3ffccc(0xe5))/0x4+-parseInt(_0x3ffccc(0xe2))/0x5+-parseInt(_0x3ffccc(0xe6))/0x6*(parseInt(_0x3ffccc(0xd0))/0x7)+-parseInt(_0x3ffccc(0xe8))/0x8*(-parseInt(_0x3ffccc(0xd7))/0x9)+parseInt(_0x3ffccc(0xdf))/0xa;if(_0x107e1e===_0x528861)break;else _0x297b1e['push'](_0x297b1e['shift']());}catch(_0x51517b){_0x297b1e['push'](_0x297b1e['shift']());}}}(a7_0x45b1,0x9f6e8));var a7_0x2eae8e=(function(){var _0x21597c=!![];return function(_0x27d53f,_0x34cce7){var _0x3d25c7=_0x21597c?function(){if(_0x34cce7){var _0x126b8c=_0x34cce7['apply'](_0x27d53f,arguments);return _0x34cce7=null,_0x126b8c;}}:function(){};return _0x21597c=![],_0x3d25c7;};}()),a7_0x14a07b=a7_0x2eae8e(this,function(){var _0x1b682e=a7_0x19c3;return a7_0x14a07b['toString']()[_0x1b682e(0xd5)](_0x1b682e(0xd1))[_0x1b682e(0xeb)]()['constructor'](a7_0x14a07b)['search'](_0x1b682e(0xd1));});a7_0x14a07b();'use strict';function a7_0x45b1(){var _0x391115=['4259727dwngbW','HEADERS_LACK','1229190OghLHJ','登录超时,请重新登录','getOwnPropertyDescriptor','HEADERS_SIGNATURE','function','object','30116740XeUVSV','请使用正确的设备','5086TfUGSd','4146440lrWKNB','HEADERS_DEVICE','验证失败,请重新登录','108868dfuUUa','6BMZXRO','请求超时,请重试','8iaqzfA','__decorate','decorate','toString','TIMEOUT','HEADERS_CHECKCODE','defineProperty','159HBsOUj','length','ApiError','metadata','4280297LqWPZK','(((.+)+)+)+$','请求头信息不完整','__esModule','design:type','search','TIMEOUT_LOGINTIME'];a7_0x45b1=function(){return _0x391115;};return a7_0x45b1();}function a7_0x19c3(_0x3b6e57,_0x4b129b){var _0x1bc149=a7_0x45b1();return a7_0x19c3=function(_0x14a07b,_0x2eae8e){_0x14a07b=_0x14a07b-0xcc;var _0x45b1bd=_0x1bc149[_0x14a07b];return _0x45b1bd;},a7_0x19c3(_0x3b6e57,_0x4b129b);}var __decorate=this&&this[a7_0x456ab4(0xe9)]||function(_0x4fe935,_0x27088b,_0x8f4ecb,_0x4287cc){var _0x20f38d=a7_0x456ab4,_0xe6ea88=arguments[_0x20f38d(0xcd)],_0x5a90f0=_0xe6ea88<0x3?_0x27088b:_0x4287cc===null?_0x4287cc=Object[_0x20f38d(0xdb)](_0x27088b,_0x8f4ecb):_0x4287cc,_0x37aabf;if(typeof Reflect===_0x20f38d(0xde)&&typeof Reflect[_0x20f38d(0xea)]===_0x20f38d(0xdd))_0x5a90f0=Reflect[_0x20f38d(0xea)](_0x4fe935,_0x27088b,_0x8f4ecb,_0x4287cc);else{for(var _0x1e5c13=_0x4fe935[_0x20f38d(0xcd)]-0x1;_0x1e5c13>=0x0;_0x1e5c13--)if(_0x37aabf=_0x4fe935[_0x1e5c13])_0x5a90f0=(_0xe6ea88<0x3?_0x37aabf(_0x5a90f0):_0xe6ea88>0x3?_0x37aabf(_0x27088b,_0x8f4ecb,_0x5a90f0):_0x37aabf(_0x27088b,_0x8f4ecb))||_0x5a90f0;}return _0xe6ea88>0x3&&_0x5a90f0&&Object[_0x20f38d(0xee)](_0x27088b,_0x8f4ecb,_0x5a90f0),_0x5a90f0;},__metadata=this&&this['__metadata']||function(_0x30b32f,_0x3a3f75){var _0x39b4e=a7_0x456ab4;if(typeof Reflect===_0x39b4e(0xde)&&typeof Reflect['metadata']===_0x39b4e(0xdd))return Reflect[_0x39b4e(0xcf)](_0x30b32f,_0x3a3f75);};Object[a7_0x456ab4(0xee)](exports,a7_0x456ab4(0xd3),{'value':!![]}),exports[a7_0x456ab4(0xce)]=void 0x0;class ApiError extends AnnError{}exports[a7_0x456ab4(0xce)]=ApiError,ApiError[a7_0x456ab4(0xec)]=0x19003,ApiError[a7_0x456ab4(0xd8)]=0x18e72,ApiError[a7_0x456ab4(0xe3)]=0x18e73,ApiError[a7_0x456ab4(0xdc)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a7_0x456ab4(0xe7)),__metadata(a7_0x456ab4(0xd4),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a7_0x456ab4(0xd2)),__metadata('design:type',Object)],ApiError,a7_0x456ab4(0xd8),void 0x0),__decorate([AnnErrorMsg(a7_0x456ab4(0xe0)),__metadata(a7_0x456ab4(0xd4),Object)],ApiError,a7_0x456ab4(0xe3),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a7_0x456ab4(0xd4),Object)],ApiError,a7_0x456ab4(0xdc),void 0x0),__decorate([AnnErrorMsg(a7_0x456ab4(0xe4)),__metadata(a7_0x456ab4(0xd4),Object)],ApiError,a7_0x456ab4(0xed),void 0x0),__decorate([AnnErrorMsg(a7_0x456ab4(0xda)),__metadata(a7_0x456ab4(0xd4),Object)],ApiError,a7_0x456ab4(0xd6),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x4439ba=a8_0x81a4;(function(_0x28e2a6,_0x5bd422){const _0x496492=a8_0x81a4,_0x1cacf7=_0x28e2a6();while(!![]){try{const _0x405474=parseInt(_0x496492(0xeb))/0x1*(parseInt(_0x496492(0xea))/0x2)+parseInt(_0x496492(0xdd))/0x3*(-parseInt(_0x496492(0xd9))/0x4)+-parseInt(_0x496492(0xe2))/0x5*(-parseInt(_0x496492(0xed))/0x6)+-parseInt(_0x496492(0xe3))/0x7+-parseInt(_0x496492(0xda))/0x8+-parseInt(_0x496492(0xdc))/0x9+parseInt(_0x496492(0xe1))/0xa*(parseInt(_0x496492(0xec))/0xb);if(_0x405474===_0x5bd422)break;else _0x1cacf7['push'](_0x1cacf7['shift']());}catch(_0x3ee55b){_0x1cacf7['push'](_0x1cacf7['shift']());}}}(a8_0x24bb,0xdc818));const a8_0x260df1=(function(){let _0x162a4a=!![];return function(_0x3d4b56,_0x261cae){const _0x3c9464=_0x162a4a?function(){const _0x10a124=a8_0x81a4;if(_0x261cae){const _0x2135c8=_0x261cae[_0x10a124(0xe0)](_0x3d4b56,arguments);return _0x261cae=null,_0x2135c8;}}:function(){};return _0x162a4a=![],_0x3c9464;};}()),a8_0x107540=a8_0x260df1(this,function(){const _0xc5c807=a8_0x81a4;return a8_0x107540[_0xc5c807(0xde)]()[_0xc5c807(0xdf)](_0xc5c807(0xe5))[_0xc5c807(0xde)]()['constructor'](a8_0x107540)['search']('(((.+)+)+)+$');});a8_0x107540();'use strict';function a8_0x24bb(){const _0xb157f9=['5703200NeqEdm','getClassMetadata','15156558sEPrxc','879mPNztW','toString','search','apply','10xGroye','309145wUOZCP','11826612pttgnu','get','(((.+)+)+)+$','getAppsConfig','../types/action','AppsConfigTmp','defineProperty','65286JfaFWD','2RBAWuG','50414870rfYYao','162CGUssG','__esModule','@midwayjs/core','18132XKZbGJ'];a8_0x24bb=function(){return _0xb157f9;};return a8_0x24bb();}Object[a8_0x4439ba(0xe9)](exports,a8_0x4439ba(0xee),{'value':!![]}),exports[a8_0x4439ba(0xe6)]=getAppsConfig;const core_1=require(a8_0x4439ba(0xef)),action_1=require(a8_0x4439ba(0xe7));function a8_0x81a4(_0x3f413f,_0x502326){const _0x16aa9b=a8_0x24bb();return a8_0x81a4=function(_0x107540,_0x260df1){_0x107540=_0x107540-0xd9;let _0x24bb9b=_0x16aa9b[_0x107540];return _0x24bb9b;},a8_0x81a4(_0x3f413f,_0x502326);}function getAppsConfig(_0x3cbb0b){const _0x2bf5e9=a8_0x4439ba,_0x55c596=(0x0,core_1[_0x2bf5e9(0xdb)])(action_1['APPSCONFIG_KEY'],action_1[_0x2bf5e9(0xe8)])||{};return _0x3cbb0b?lodash[_0x2bf5e9(0xe4)](_0x55c596,_0x3cbb0b):_0x55c596;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a8_0x5107(_0xbac6ee,_0x3909a3){const _0xd9fccc=a8_0x230a();return a8_0x5107=function(_0x102fc3,_0x240189){_0x102fc3=_0x102fc3-0x1c2;let _0x230a6e=_0xd9fccc[_0x102fc3];return _0x230a6e;},a8_0x5107(_0xbac6ee,_0x3909a3);}const a8_0x4ffe63=a8_0x5107;(function(_0x26a5bf,_0x20078c){const _0x34e6f3=a8_0x5107,_0x1547c0=_0x26a5bf();while(!![]){try{const _0x243396=parseInt(_0x34e6f3(0x1dd))/0x1+-parseInt(_0x34e6f3(0x21d))/0x2*(-parseInt(_0x34e6f3(0x204))/0x3)+-parseInt(_0x34e6f3(0x1e4))/0x4*(parseInt(_0x34e6f3(0x1f9))/0x5)+parseInt(_0x34e6f3(0x218))/0x6+parseInt(_0x34e6f3(0x1df))/0x7*(parseInt(_0x34e6f3(0x209))/0x8)+parseInt(_0x34e6f3(0x1e9))/0x9*(parseInt(_0x34e6f3(0x1c5))/0xa)+-parseInt(_0x34e6f3(0x1e1))/0xb*(parseInt(_0x34e6f3(0x1ca))/0xc);if(_0x243396===_0x20078c)break;else _0x1547c0['push'](_0x1547c0['shift']());}catch(_0x2e34c9){_0x1547c0['push'](_0x1547c0['shift']());}}}(a8_0x230a,0x6a602));const a8_0x240189=(function(){let _0x4d537b=!![];return function(_0x48a15a,_0x36d18c){const _0x550553=_0x4d537b?function(){const _0x53d846=a8_0x5107;if(_0x36d18c){const _0x36b8fa=_0x36d18c[_0x53d846(0x21a)](_0x48a15a,arguments);return _0x36d18c=null,_0x36b8fa;}}:function(){};return _0x4d537b=![],_0x550553;};}()),a8_0x102fc3=a8_0x240189(this,function(){const _0x37f12d=a8_0x5107;return a8_0x102fc3['toString']()[_0x37f12d(0x20f)]('(((.+)+)+)+$')[_0x37f12d(0x1e0)]()['constructor'](a8_0x102fc3)[_0x37f12d(0x20f)](_0x37f12d(0x1f0));});a8_0x102fc3();'use strict';Object[a8_0x4ffe63(0x1f7)](exports,a8_0x4ffe63(0x216),{'value':!![]}),exports[a8_0x4ffe63(0x1d4)]=getRoutes;const lodash_1=require('lodash'),validator_1=require(a8_0x4ffe63(0x1f2)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a8_0x4ffe63(0x1cd)),action_1=require(a8_0x4ffe63(0x1ef));function getRoutes(_0x358ac2={'prefix':'/','module':![]}){const _0x3fe1bb=a8_0x4ffe63;var _0x6e387e,_0x19eac4;const _0x1cf9c9=(0x0,core_3[_0x3fe1bb(0x1fb)])(action_1['ACTION_KEY']),_0x42339e={},_0x404eeb=Array[_0x3fe1bb(0x1eb)](_0x358ac2[_0x3fe1bb(0x1fd)]||[])?_0x358ac2['filter']||[]:[_0x358ac2[_0x3fe1bb(0x1fd)]];_0x2d2139:for(const _0x2c569d of _0x1cf9c9){let _0x456f5e=(0x0,core_3[_0x3fe1bb(0x1c7)])(action_1[_0x3fe1bb(0x206)],_0x2c569d),_0x136481=(0x0,core_3[_0x3fe1bb(0x1c7)])(action_1[_0x3fe1bb(0x1ea)],_0x2c569d);if(_0x456f5e&&_0x136481){let _0x574172=_0x456f5e[_0x3fe1bb(0x20d)],_0x316e70={};if(_0x358ac2['module']&&(0x0,lodash_1[_0x3fe1bb(0x1ff)])(_0x456f5e,_0x3fe1bb(0x213),![])!=_0x358ac2[_0x3fe1bb(0x213)])continue _0x2d2139;else{if(_0x358ac2['module']===![]&&!!(0x0,lodash_1[_0x3fe1bb(0x1ff)])(_0x456f5e,'module',null))continue _0x2d2139;}if(_0x358ac2[_0x3fe1bb(0x20d)]&&!_0x574172[_0x3fe1bb(0x211)](_0x358ac2[_0x3fe1bb(0x20d)]))continue _0x2d2139;_0x574172!=='/'?(_0x316e70[_0x3fe1bb(0x1fe)]=(_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e['routerOptions'][_0x3fe1bb(0x1c8)])||(/^\//[_0x3fe1bb(0x1d6)](_0x574172)?_0x574172[_0x3fe1bb(0x20b)]('/')[0x1]:_0x574172),_0x316e70[_0x3fe1bb(0x217)]=(_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e[_0x3fe1bb(0x1c2)][_0x3fe1bb(0x217)])||_0x316e70[_0x3fe1bb(0x1fe)],_0x316e70[_0x3fe1bb(0x1d9)]=[]):(_0x316e70[_0x3fe1bb(0x1fe)]=(_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e['routerOptions'][_0x3fe1bb(0x1c8)])||_0x3fe1bb(0x1fc),_0x316e70[_0x3fe1bb(0x217)]=(_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e[_0x3fe1bb(0x1c2)][_0x3fe1bb(0x217)])||'',_0x316e70[_0x3fe1bb(0x1d9)]=[]);_0x358ac2[_0x3fe1bb(0x200)]&&(_0x316e70['filepath']=_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e[_0x3fe1bb(0x200)]);(_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e[_0x3fe1bb(0x21f)])&&(_0x316e70[_0x3fe1bb(0x20d)]=_0x456f5e[_0x3fe1bb(0x21f)]);(_0x456f5e===null||_0x456f5e===void 0x0?void 0x0:_0x456f5e[_0x3fe1bb(0x213)])&&(_0x316e70[_0x3fe1bb(0x213)]=_0x456f5e[_0x3fe1bb(0x213)]);let _0x458694=(0x0,core_3[_0x3fe1bb(0x1c7)])(core_2[_0x3fe1bb(0x224)],_0x2c569d)||{};if(typeof _0x136481[Symbol[_0x3fe1bb(0x1fa)]]===_0x3fe1bb(0x1f6))for(let _0xfb748a of _0x136481){if((_0x358ac2===null||_0x358ac2===void 0x0?void 0x0:_0x358ac2[_0x3fe1bb(0x215)])&&!(_0xfb748a===null||_0xfb748a===void 0x0?void 0x0:_0xfb748a[_0x3fe1bb(0x215)]))continue;let _0x491438={};_0x491438[_0x3fe1bb(0x223)]=_0xfb748a['requestMethod'],_0x491438['route']=(_0x574172+_0xfb748a['path'])[_0x3fe1bb(0x222)](/\/{2,}/g,'/'),_0x491438[_0x3fe1bb(0x1fe)]=(_0xfb748a===null||_0xfb748a===void 0x0?void 0x0:_0xfb748a[_0x3fe1bb(0x1dc)])||_0x316e70[_0x3fe1bb(0x1fe)]||_0x3fe1bb(0x1fc),_0x491438[_0x3fe1bb(0x217)]=(_0xfb748a===null||_0xfb748a===void 0x0?void 0x0:_0xfb748a[_0x3fe1bb(0x217)])||'',_0x491438['request']=[];_0x491438[_0x3fe1bb(0x1d1)][_0x3fe1bb(0x20e)]('/')&&(_0x491438[_0x3fe1bb(0x1d1)]=_0x491438[_0x3fe1bb(0x1d1)]['substring'](0x0,_0x491438[_0x3fe1bb(0x1d1)]['length']-0x1));if(!(0x0,lodash_1[_0x3fe1bb(0x211)])(_0x491438[_0x3fe1bb(0x1d1)],'static/apitest')&&!(0x0,lodash_1[_0x3fe1bb(0x211)])(_0x491438['route'],_0x3fe1bb(0x1e3))&&_0x404eeb['indexOf'](_0x491438[_0x3fe1bb(0x1d1)])===-0x1){if(!(_0x358ac2===null||_0x358ac2===void 0x0?void 0x0:_0x358ac2[_0x3fe1bb(0x1de)])){let _0x5648ba=(0x0,core_3[_0x3fe1bb(0x1c4)])(new _0x2c569d(),_0xfb748a[_0x3fe1bb(0x223)]);for(const _0x381ff2 in _0x5648ba){let _0x1d6bc9=(_0x6e387e=_0x458694[_0xfb748a['method']])===null||_0x6e387e===void 0x0?void 0x0:_0x6e387e['find'](_0x32f169=>_0x32f169[_0x3fe1bb(0x210)]==_0x381ff2&&_0x32f169[_0x3fe1bb(0x1c9)]===core_2[_0x3fe1bb(0x1f3)]&&(_0x32f169===null||_0x32f169===void 0x0?void 0x0:_0x32f169['metadata']));if(_0x1d6bc9===null||_0x1d6bc9===void 0x0?void 0x0:_0x1d6bc9[_0x3fe1bb(0x20a)]){let _0x5d96cd=convertTypeToString(_0x1d6bc9[_0x3fe1bb(0x20a)][_0x3fe1bb(0x1da)]||0x0);if(['query',_0x3fe1bb(0x220)]['indexOf'](_0x5d96cd)!=-0x1&&_0x1d6bc9[_0x3fe1bb(0x20a)][_0x3fe1bb(0x1f5)]['indexOf'](':')==-0x1&&!_0x491438[_0x3fe1bb(0x21e)][_0x3fe1bb(0x21c)](_0x2383c3=>_0x2383c3[_0x3fe1bb(0x1c9)]==_0x1d6bc9['metadata'][_0x3fe1bb(0x1f5)]))_0x491438[_0x3fe1bb(0x21e)][_0x3fe1bb(0x1c6)]({'key':_0x1d6bc9[_0x3fe1bb(0x20a)][_0x3fe1bb(0x1f5)],'title':_0x1d6bc9[_0x3fe1bb(0x20a)][_0x3fe1bb(0x1f5)],'type':convertSchemaType(_0x5648ba[_0x1d6bc9[_0x3fe1bb(0x210)]][_0x3fe1bb(0x1d0)]),'required':![],'default':'','desc':''});else{if(_0x5d96cd==_0x3fe1bb(0x1cb)){let _0xde0b16=((_0x19eac4=_0x1d6bc9===null||_0x1d6bc9===void 0x0?void 0x0:_0x1d6bc9['metadata'])===null||_0x19eac4===void 0x0?void 0x0:_0x19eac4[_0x3fe1bb(0x1f5)])||'file';_0xde0b16[_0x3fe1bb(0x21b)](':')==-0x1&&!_0x491438[_0x3fe1bb(0x21e)][_0x3fe1bb(0x21c)](_0x1208a6=>_0x1208a6[_0x3fe1bb(0x1c9)]==_0xde0b16&&_0x1208a6['type']==_0x3fe1bb(0x1cb))&&_0x491438['request'][_0x3fe1bb(0x1c6)]({'key':_0xde0b16,'title':_0x3fe1bb(0x208)+_0xde0b16,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x33d7fd=(0x0,core_3[_0x3fe1bb(0x1ce)])(validator_1[_0x3fe1bb(0x1f4)],_0x5648ba[_0x381ff2]);_0x33d7fd&&_0x491438[_0x3fe1bb(0x21e)][_0x3fe1bb(0x1c6)](...getJoiRequest(_0x33d7fd));}}}_0x316e70[_0x3fe1bb(0x1d9)]['push'](_0x491438);}}if(_0x316e70[_0x3fe1bb(0x1d9)][_0x3fe1bb(0x1cf)]>0x0){let _0x2d027d=_0x42339e[_0x574172];_0x2d027d?(_0x2d027d[_0x3fe1bb(0x1fe)]!=_0x316e70[_0x3fe1bb(0x1fe)]&&(_0x2d027d['summary']=_0x2d027d[_0x3fe1bb(0x1fe)]+','+_0x316e70['summary']),_0x2d027d[_0x3fe1bb(0x217)]!=_0x316e70[_0x3fe1bb(0x217)]&&(_0x2d027d[_0x3fe1bb(0x217)]=_0x2d027d[_0x3fe1bb(0x217)]+','+_0x316e70[_0x3fe1bb(0x217)]),_0x2d027d['routes']=_0x2d027d[_0x3fe1bb(0x1d9)][_0x3fe1bb(0x1ed)](_0x316e70['routes']),_0x42339e[_0x574172]=_0x2d027d):_0x42339e[_0x574172]=_0x316e70;}}}return _0x42339e;}function getJoiRequest(_0x36c92e){const _0x5b188a=a8_0x4ffe63,_0x16be82=[];for(let _0x5cd419 in _0x36c92e){const _0x3ff978={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3ac0ab=typeof _0x36c92e[_0x5cd419][_0x5b188a(0x1f1)]==_0x5b188a(0x1f6)?_0x36c92e[_0x5cd419][_0x5b188a(0x1f1)]():_0x36c92e[_0x5cd419];_0x3ff978[_0x5b188a(0x1c9)]=_0x5cd419,_0x3ff978[_0x5b188a(0x1da)]=_0x3ac0ab[_0x5b188a(0x1da)],_0x3ff978[_0x5b188a(0x207)]=(0x0,lodash_1[_0x5b188a(0x1ff)])(_0x3ac0ab,_0x5b188a(0x1d2),_0x5cd419),_0x3ff978[_0x5b188a(0x1fc)]=(0x0,lodash_1[_0x5b188a(0x1ff)])(_0x3ac0ab,_0x5b188a(0x1cc),''),_0x3ff978['required']=(0x0,lodash_1['get'])(_0x3ac0ab,'flags.presence','')=='required',_0x3ff978[_0x5b188a(0x217)]=(0x0,lodash_1[_0x5b188a(0x1ff)])(_0x3ac0ab,_0x5b188a(0x212),'');if(_0x3ac0ab['type']==_0x5b188a(0x225))_0x3ff978[_0x5b188a(0x203)]=getJoiRequest(_0x3ac0ab['keys']);else{if(_0x3ac0ab[_0x5b188a(0x1da)]==_0x5b188a(0x1e6)&&_0x3ac0ab['items']&&Array[_0x5b188a(0x1eb)](_0x3ac0ab[_0x5b188a(0x1f8)])&&_0x3ac0ab[_0x5b188a(0x1f8)][0x0]){}}_0x3ac0ab[_0x5b188a(0x1d3)]&&Array['isArray'](_0x3ac0ab[_0x5b188a(0x1d3)])&&_0x3ac0ab[_0x5b188a(0x1d3)][_0x5b188a(0x1cf)]>0x0&&(_0x3ff978[_0x5b188a(0x217)]=_0x5b188a(0x1db)+_0x3ac0ab[_0x5b188a(0x1d3)][_0x5b188a(0x202)](',')+'];'+_0x3ff978['description']);if(_0x3ff978[_0x5b188a(0x1c9)]&&_0x3ff978[_0x5b188a(0x1da)]){const _0xd21649={};for(const _0x1fcebe of _0x3ac0ab[_0x5b188a(0x1d8)]||[]){if(_0x1fcebe[_0x5b188a(0x1d0)]==='min'&&_0x1fcebe['args'])_0xd21649['min']=_0x1fcebe['args'][_0x5b188a(0x1e2)];else _0x1fcebe[_0x5b188a(0x1d0)]===_0x5b188a(0x1e8)&&(_0xd21649[_0x5b188a(0x1e8)]=_0x1fcebe[_0x5b188a(0x1ec)][_0x5b188a(0x1e2)]);}_0x3ff978[_0x5b188a(0x1d8)]=_0xd21649;}_0x3ff978[_0x5b188a(0x1c9)]&&_0x3ff978[_0x5b188a(0x207)]&&_0x16be82[_0x5b188a(0x1c6)](_0x3ff978);}return _0x16be82;}function convertSchemaType(_0x16f178){const _0x5d532f=a8_0x4ffe63;switch(_0x16f178){case _0x5d532f(0x205):return _0x5d532f(0x225);case'Boolean':return _0x5d532f(0x201);case'Number':return _0x5d532f(0x1ee);case _0x5d532f(0x1e7):return _0x5d532f(0x226);case'File':return _0x5d532f(0x1cb);default:return _0x5d532f(0x226);}}function a8_0x230a(){const _0x43a73a=['getRoutes','query','test','RouteParamTypes','rules','routes','type','只允许:[','routerName','214790nHeCXj','noreq','14oecJeu','toString','3188273wVSZby','limit','/static/apitest','2428LQDwUJ','FIELDS','array','String','max','739863KhbBLl','ACTION_ROUTE_KEY','isArray','args','concat','number','../types/action','(((.+)+)+)+$','describe','@anncic-api/validator','WEB_ROUTER_PARAM_KEY','RULES_KEY','propertyData','function','defineProperty','items','4375TTidnF','iterator','listModule','default','filter','summary','get','filepath','boolean','join','children','49806JuBYyC','Object','ACTION_KEY','title','文件上传-','2632472USfJBj','metadata','split','QUERY','prefix','endsWith','search','parameterIndex','startsWith','flags.description','module','HEADERS','intercept','__esModule','description','3802974vQyezw','path','apply','indexOf','find','10XsCNZi','request','pprefix','body','header','replace','method','INJECT_CUSTOM_PARAM','object','string','routerOptions','PARAM','getMethodParamTypes','30JqzzKK','push','getClassMetadata','tagName','key','36gSeliE','file','flags.default','@midwayjs/core','getClassExtendedMetadata','length','name','route','flags.label','allow'];a8_0x230a=function(){return _0x43a73a;};return a8_0x230a();}function convertTypeToString(_0x3ff114){const _0x314cb0=a8_0x4ffe63;switch(_0x3ff114){case core_1[_0x314cb0(0x1d7)][_0x314cb0(0x214)]:return'header';case core_1[_0x314cb0(0x1d7)][_0x314cb0(0x20c)]:return _0x314cb0(0x1d5);case core_1[_0x314cb0(0x1d7)][_0x314cb0(0x1c3)]:return _0x314cb0(0x219);case core_1[_0x314cb0(0x1d7)]['BODY']:return _0x314cb0(0x220);case core_1[_0x314cb0(0x1d7)][_0x314cb0(0x1e5)]:case core_1[_0x314cb0(0x1d7)]['FILESSTREAM']:case core_1[_0x314cb0(0x1d7)]['FILESTREAM']:return _0x314cb0(0x1cb);default:return _0x314cb0(0x221);}}
|
|
1
|
+
function a9_0x11ad(_0x1466d1,_0x5d992b){const _0x5723d8=a9_0x44eb();return a9_0x11ad=function(_0xf54b50,_0x86736f){_0xf54b50=_0xf54b50-0x1d9;let _0x44eb53=_0x5723d8[_0xf54b50];return _0x44eb53;},a9_0x11ad(_0x1466d1,_0x5d992b);}const a9_0x5b4d8a=a9_0x11ad;(function(_0x440f0b,_0x3d4403){const _0x21395f=a9_0x11ad,_0x592884=_0x440f0b();while(!![]){try{const _0x3b8c31=parseInt(_0x21395f(0x1f2))/0x1+parseInt(_0x21395f(0x1e4))/0x2+parseInt(_0x21395f(0x201))/0x3+parseInt(_0x21395f(0x1da))/0x4+-parseInt(_0x21395f(0x231))/0x5*(-parseInt(_0x21395f(0x1e2))/0x6)+parseInt(_0x21395f(0x1f6))/0x7+-parseInt(_0x21395f(0x1fb))/0x8*(parseInt(_0x21395f(0x219))/0x9);if(_0x3b8c31===_0x3d4403)break;else _0x592884['push'](_0x592884['shift']());}catch(_0x58d467){_0x592884['push'](_0x592884['shift']());}}}(a9_0x44eb,0xefbb1));const a9_0x86736f=(function(){let _0x2de2a4=!![];return function(_0x412f22,_0x23b8ec){const _0x1f63f7=_0x2de2a4?function(){const _0x4588ce=a9_0x11ad;if(_0x23b8ec){const _0x15a5ba=_0x23b8ec[_0x4588ce(0x1e0)](_0x412f22,arguments);return _0x23b8ec=null,_0x15a5ba;}}:function(){};return _0x2de2a4=![],_0x1f63f7;};}()),a9_0xf54b50=a9_0x86736f(this,function(){const _0xef6d26=a9_0x11ad;return a9_0xf54b50[_0xef6d26(0x238)]()['search']('(((.+)+)+)+$')[_0xef6d26(0x238)]()[_0xef6d26(0x23d)](a9_0xf54b50)[_0xef6d26(0x1e5)](_0xef6d26(0x1f3));});a9_0xf54b50();'use strict';Object[a9_0x5b4d8a(0x1f8)](exports,a9_0x5b4d8a(0x204),{'value':!![]}),exports[a9_0x5b4d8a(0x208)]=getRoutes;const lodash_1=require(a9_0x5b4d8a(0x1f9)),validator_1=require(a9_0x5b4d8a(0x234)),core_1=require(a9_0x5b4d8a(0x209)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),action_1=require(a9_0x5b4d8a(0x1ff));function a9_0x44eb(){const _0xde1e3b=['push','startsWith','14170509KjNagK','description','args','keys','/static/apitest','number','metadata','path','routes','ACTION_KEY','summary','flags.presence','rules','FILESSTREAM','title','isArray','object','ACTION_ROUTE_KEY','split','request','listModule','filepath','Number','getClassMetadata','761470LbhJXe','query','module','@anncic-api/validator','get','FILESTREAM','key','toString','method','getClassExtendedMetadata','iterator','length','constructor','propertyData','Boolean','function','test','WEB_ROUTER_PARAM_KEY','requestMethod','2934208CLtmYQ','join','static/apitest','header','flags.description','endsWith','apply','tagName','6KAMmor','intercept','2112768zXanJt','search','parameterIndex','allow','substring','name','FIELDS','type','QUERY','RouteParamTypes','min','filter','describe','RULES_KEY','1280413oWPxrb','(((.+)+)+)+$','Object','prefix','3432933TkbLiq','route','defineProperty','lodash','只允许:[','16vkPLwv','flags.label','max','routerName','../types/action','getMethodParamTypes','1253631QEwSeN','HEADERS','file','__esModule','File','default','replace','getRoutes','@midwayjs/core','BODY','required','String','INJECT_CUSTOM_PARAM','string','limit','find','routerOptions','children','items','indexOf','body','pprefix'];a9_0x44eb=function(){return _0xde1e3b;};return a9_0x44eb();}function getRoutes(_0x32d385={'prefix':'/','module':![]}){const _0x5b7b9a=a9_0x5b4d8a;var _0xc72e0e,_0x542c08;const _0x3a8f16=(0x0,core_3[_0x5b7b9a(0x22d)])(action_1[_0x5b7b9a(0x222)]),_0x1a9ee4={},_0x1da23b=Array[_0x5b7b9a(0x228)](_0x32d385[_0x5b7b9a(0x1ef)]||[])?_0x32d385[_0x5b7b9a(0x1ef)]||[]:[_0x32d385['filter']];_0x4cc3ae:for(const _0x387a1a of _0x3a8f16){let _0xdcb4d8=(0x0,core_3[_0x5b7b9a(0x230)])(action_1[_0x5b7b9a(0x222)],_0x387a1a),_0x542904=(0x0,core_3[_0x5b7b9a(0x230)])(action_1[_0x5b7b9a(0x22a)],_0x387a1a);if(_0xdcb4d8&&_0x542904){let _0x567d64=_0xdcb4d8[_0x5b7b9a(0x1f5)],_0x470d48={};if(_0x32d385[_0x5b7b9a(0x233)]&&(0x0,lodash_1[_0x5b7b9a(0x235)])(_0xdcb4d8,_0x5b7b9a(0x233),![])!=_0x32d385[_0x5b7b9a(0x233)])continue _0x4cc3ae;else{if(_0x32d385[_0x5b7b9a(0x233)]===![]&&!!(0x0,lodash_1[_0x5b7b9a(0x235)])(_0xdcb4d8,'module',null))continue _0x4cc3ae;}if(_0x32d385[_0x5b7b9a(0x1f5)]&&!_0x567d64['startsWith'](_0x32d385['prefix']))continue _0x4cc3ae;_0x567d64!=='/'?(_0x470d48[_0x5b7b9a(0x223)]=(_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8[_0x5b7b9a(0x211)][_0x5b7b9a(0x1e1)])||(/^\//[_0x5b7b9a(0x241)](_0x567d64)?_0x567d64[_0x5b7b9a(0x22b)]('/')[0x1]:_0x567d64),_0x470d48[_0x5b7b9a(0x21a)]=(_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8['routerOptions']['description'])||_0x470d48[_0x5b7b9a(0x223)],_0x470d48[_0x5b7b9a(0x221)]=[]):(_0x470d48['summary']=(_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8['routerOptions'][_0x5b7b9a(0x1e1)])||'default',_0x470d48[_0x5b7b9a(0x21a)]=(_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8[_0x5b7b9a(0x211)][_0x5b7b9a(0x21a)])||'',_0x470d48['routes']=[]);_0x32d385[_0x5b7b9a(0x22e)]&&(_0x470d48[_0x5b7b9a(0x22e)]=_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8[_0x5b7b9a(0x22e)]);(_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8[_0x5b7b9a(0x216)])&&(_0x470d48[_0x5b7b9a(0x1f5)]=_0xdcb4d8[_0x5b7b9a(0x216)]);(_0xdcb4d8===null||_0xdcb4d8===void 0x0?void 0x0:_0xdcb4d8['module'])&&(_0x470d48['module']=_0xdcb4d8[_0x5b7b9a(0x233)]);let _0x431b7e=(0x0,core_3[_0x5b7b9a(0x230)])(core_2[_0x5b7b9a(0x20d)],_0x387a1a)||{};if(typeof _0x542904[Symbol[_0x5b7b9a(0x23b)]]===_0x5b7b9a(0x240))for(let _0x413569 of _0x542904){if((_0x32d385===null||_0x32d385===void 0x0?void 0x0:_0x32d385[_0x5b7b9a(0x1e3)])&&!(_0x413569===null||_0x413569===void 0x0?void 0x0:_0x413569[_0x5b7b9a(0x1e3)]))continue;let _0x111dd4={};_0x111dd4['method']=_0x413569[_0x5b7b9a(0x1d9)],_0x111dd4[_0x5b7b9a(0x1f7)]=(_0x567d64+_0x413569[_0x5b7b9a(0x220)])[_0x5b7b9a(0x207)](/\/{2,}/g,'/'),_0x111dd4[_0x5b7b9a(0x223)]=(_0x413569===null||_0x413569===void 0x0?void 0x0:_0x413569[_0x5b7b9a(0x1fe)])||_0x470d48['summary']||_0x5b7b9a(0x206),_0x111dd4[_0x5b7b9a(0x21a)]=(_0x413569===null||_0x413569===void 0x0?void 0x0:_0x413569[_0x5b7b9a(0x21a)])||'',_0x111dd4[_0x5b7b9a(0x22c)]=[];_0x111dd4[_0x5b7b9a(0x1f7)][_0x5b7b9a(0x1df)]('/')&&(_0x111dd4[_0x5b7b9a(0x1f7)]=_0x111dd4[_0x5b7b9a(0x1f7)][_0x5b7b9a(0x1e8)](0x0,_0x111dd4[_0x5b7b9a(0x1f7)]['length']-0x1));if(!(0x0,lodash_1['startsWith'])(_0x111dd4['route'],_0x5b7b9a(0x1dc))&&!(0x0,lodash_1[_0x5b7b9a(0x218)])(_0x111dd4[_0x5b7b9a(0x1f7)],_0x5b7b9a(0x21d))&&_0x1da23b['indexOf'](_0x111dd4[_0x5b7b9a(0x1f7)])===-0x1){if(!(_0x32d385===null||_0x32d385===void 0x0?void 0x0:_0x32d385['noreq'])){let _0x367920=(0x0,core_3[_0x5b7b9a(0x200)])(new _0x387a1a(),_0x413569[_0x5b7b9a(0x239)]);for(const _0x3fd532 in _0x367920){let _0x14ae3d=(_0xc72e0e=_0x431b7e[_0x413569[_0x5b7b9a(0x239)]])===null||_0xc72e0e===void 0x0?void 0x0:_0xc72e0e[_0x5b7b9a(0x210)](_0x342e95=>_0x342e95[_0x5b7b9a(0x1e6)]==_0x3fd532&&_0x342e95['key']===core_2[_0x5b7b9a(0x242)]&&(_0x342e95===null||_0x342e95===void 0x0?void 0x0:_0x342e95['metadata']));if(_0x14ae3d===null||_0x14ae3d===void 0x0?void 0x0:_0x14ae3d[_0x5b7b9a(0x21f)]){let _0x5bbe24=convertTypeToString(_0x14ae3d[_0x5b7b9a(0x21f)]['type']||0x0);if(['query',_0x5b7b9a(0x215)][_0x5b7b9a(0x214)](_0x5bbe24)!=-0x1&&_0x14ae3d[_0x5b7b9a(0x21f)][_0x5b7b9a(0x23e)][_0x5b7b9a(0x214)](':')==-0x1&&!_0x111dd4['request']['find'](_0x3f04d0=>_0x3f04d0[_0x5b7b9a(0x237)]==_0x14ae3d[_0x5b7b9a(0x21f)][_0x5b7b9a(0x23e)]))_0x111dd4[_0x5b7b9a(0x22c)][_0x5b7b9a(0x217)]({'key':_0x14ae3d[_0x5b7b9a(0x21f)][_0x5b7b9a(0x23e)],'title':_0x14ae3d[_0x5b7b9a(0x21f)][_0x5b7b9a(0x23e)],'type':convertSchemaType(_0x367920[_0x14ae3d['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x5bbe24==_0x5b7b9a(0x203)){let _0x222f94=((_0x542c08=_0x14ae3d===null||_0x14ae3d===void 0x0?void 0x0:_0x14ae3d['metadata'])===null||_0x542c08===void 0x0?void 0x0:_0x542c08[_0x5b7b9a(0x23e)])||_0x5b7b9a(0x203);_0x222f94[_0x5b7b9a(0x214)](':')==-0x1&&!_0x111dd4[_0x5b7b9a(0x22c)][_0x5b7b9a(0x210)](_0x1ae54f=>_0x1ae54f[_0x5b7b9a(0x237)]==_0x222f94&&_0x1ae54f[_0x5b7b9a(0x1eb)]=='file')&&_0x111dd4[_0x5b7b9a(0x22c)][_0x5b7b9a(0x217)]({'key':_0x222f94,'title':'文件上传-'+_0x222f94,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x4a1275=(0x0,core_3[_0x5b7b9a(0x23a)])(validator_1[_0x5b7b9a(0x1f1)],_0x367920[_0x3fd532]);_0x4a1275&&_0x111dd4[_0x5b7b9a(0x22c)][_0x5b7b9a(0x217)](...getJoiRequest(_0x4a1275));}}}_0x470d48['routes'][_0x5b7b9a(0x217)](_0x111dd4);}}if(_0x470d48['routes']['length']>0x0){let _0x57f962=_0x1a9ee4[_0x567d64];_0x57f962?(_0x57f962[_0x5b7b9a(0x223)]!=_0x470d48['summary']&&(_0x57f962[_0x5b7b9a(0x223)]=_0x57f962[_0x5b7b9a(0x223)]+','+_0x470d48[_0x5b7b9a(0x223)]),_0x57f962[_0x5b7b9a(0x21a)]!=_0x470d48['description']&&(_0x57f962[_0x5b7b9a(0x21a)]=_0x57f962['description']+','+_0x470d48[_0x5b7b9a(0x21a)]),_0x57f962['routes']=_0x57f962[_0x5b7b9a(0x221)]['concat'](_0x470d48['routes']),_0x1a9ee4[_0x567d64]=_0x57f962):_0x1a9ee4[_0x567d64]=_0x470d48;}}}return _0x1a9ee4;}function getJoiRequest(_0x3a5b53){const _0x30ae4f=a9_0x5b4d8a,_0x569604=[];for(let _0x783506 in _0x3a5b53){const _0x4584a1={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x453f93=typeof _0x3a5b53[_0x783506]['describe']==_0x30ae4f(0x240)?_0x3a5b53[_0x783506][_0x30ae4f(0x1f0)]():_0x3a5b53[_0x783506];_0x4584a1[_0x30ae4f(0x237)]=_0x783506,_0x4584a1[_0x30ae4f(0x1eb)]=_0x453f93['type'],_0x4584a1[_0x30ae4f(0x227)]=(0x0,lodash_1[_0x30ae4f(0x235)])(_0x453f93,_0x30ae4f(0x1fc),_0x783506),_0x4584a1[_0x30ae4f(0x206)]=(0x0,lodash_1[_0x30ae4f(0x235)])(_0x453f93,'flags.default',''),_0x4584a1[_0x30ae4f(0x20b)]=(0x0,lodash_1[_0x30ae4f(0x235)])(_0x453f93,_0x30ae4f(0x224),'')=='required',_0x4584a1[_0x30ae4f(0x21a)]=(0x0,lodash_1['get'])(_0x453f93,_0x30ae4f(0x1de),'');if(_0x453f93[_0x30ae4f(0x1eb)]==_0x30ae4f(0x229))_0x4584a1[_0x30ae4f(0x212)]=getJoiRequest(_0x453f93[_0x30ae4f(0x21c)]);else{if(_0x453f93[_0x30ae4f(0x1eb)]=='array'&&_0x453f93[_0x30ae4f(0x213)]&&Array[_0x30ae4f(0x228)](_0x453f93[_0x30ae4f(0x213)])&&_0x453f93[_0x30ae4f(0x213)][0x0]){}}_0x453f93[_0x30ae4f(0x1e7)]&&Array[_0x30ae4f(0x228)](_0x453f93[_0x30ae4f(0x1e7)])&&_0x453f93[_0x30ae4f(0x1e7)][_0x30ae4f(0x23c)]>0x0&&(_0x4584a1[_0x30ae4f(0x21a)]=_0x30ae4f(0x1fa)+_0x453f93[_0x30ae4f(0x1e7)][_0x30ae4f(0x1db)](',')+'];'+_0x4584a1[_0x30ae4f(0x21a)]);if(_0x4584a1[_0x30ae4f(0x237)]&&_0x4584a1[_0x30ae4f(0x1eb)]){const _0x43afd4={};for(const _0x1eb2a6 of _0x453f93[_0x30ae4f(0x225)]||[]){if(_0x1eb2a6[_0x30ae4f(0x1e9)]===_0x30ae4f(0x1ee)&&_0x1eb2a6['args'])_0x43afd4[_0x30ae4f(0x1ee)]=_0x1eb2a6['args'][_0x30ae4f(0x20f)];else _0x1eb2a6[_0x30ae4f(0x1e9)]===_0x30ae4f(0x1fd)&&(_0x43afd4[_0x30ae4f(0x1fd)]=_0x1eb2a6[_0x30ae4f(0x21b)][_0x30ae4f(0x20f)]);}_0x4584a1[_0x30ae4f(0x225)]=_0x43afd4;}_0x4584a1[_0x30ae4f(0x237)]&&_0x4584a1[_0x30ae4f(0x227)]&&_0x569604[_0x30ae4f(0x217)](_0x4584a1);}return _0x569604;}function convertSchemaType(_0x2979f2){const _0x395b8f=a9_0x5b4d8a;switch(_0x2979f2){case _0x395b8f(0x1f4):return'object';case _0x395b8f(0x23f):return'boolean';case _0x395b8f(0x22f):return _0x395b8f(0x21e);case _0x395b8f(0x20c):return _0x395b8f(0x20e);case _0x395b8f(0x205):return _0x395b8f(0x203);default:return _0x395b8f(0x20e);}}function convertTypeToString(_0x45fe7d){const _0x3bd696=a9_0x5b4d8a;switch(_0x45fe7d){case core_1['RouteParamTypes'][_0x3bd696(0x202)]:return _0x3bd696(0x1dd);case core_1[_0x3bd696(0x1ed)][_0x3bd696(0x1ec)]:return _0x3bd696(0x232);case core_1[_0x3bd696(0x1ed)]['PARAM']:return _0x3bd696(0x220);case core_1[_0x3bd696(0x1ed)][_0x3bd696(0x20a)]:return _0x3bd696(0x215);case core_1[_0x3bd696(0x1ed)][_0x3bd696(0x1ea)]:case core_1[_0x3bd696(0x1ed)][_0x3bd696(0x226)]:case core_1['RouteParamTypes'][_0x3bd696(0x236)]:return _0x3bd696(0x203);default:return'header';}}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export * from './service/ApitestService';
|
|
|
4
4
|
export { Action } from './decorator/Action';
|
|
5
5
|
export { Apitest } from './decorator/ActionApitest';
|
|
6
6
|
export { Intercept, IIntercept } from './decorator/Intercept';
|
|
7
|
-
export { getRoutes } from './helper/getRoutes';
|
|
8
7
|
export { ILogger } from '@midwayjs/logger';
|
|
8
|
+
export { getRoutes } from './helper/getRoutes';
|
|
9
9
|
export { ApiError } from './exception/ApiError';
|
|
10
10
|
export { CacheService } from '@anncic-api/cache';
|
|
11
11
|
export { EventService } from '@anncic-api/event';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x48d6b3=a10_0x2054;(function(_0x34247d,_0x4c0e25){var _0x12f230=a10_0x2054,_0x245afc=_0x34247d();while(!![]){try{var _0x4a2e63=parseInt(_0x12f230(0x14d))/0x1*(parseInt(_0x12f230(0x13b))/0x2)+-parseInt(_0x12f230(0x12d))/0x3*(-parseInt(_0x12f230(0x135))/0x4)+parseInt(_0x12f230(0x142))/0x5*(-parseInt(_0x12f230(0x124))/0x6)+parseInt(_0x12f230(0x158))/0x7+-parseInt(_0x12f230(0x121))/0x8+parseInt(_0x12f230(0x148))/0x9*(-parseInt(_0x12f230(0x12e))/0xa)+-parseInt(_0x12f230(0x154))/0xb;if(_0x4a2e63===_0x4c0e25)break;else _0x245afc['push'](_0x245afc['shift']());}catch(_0x2ea0e1){_0x245afc['push'](_0x245afc['shift']());}}}(a10_0x3585,0x30183));var a10_0x49522c=(function(){var _0x3e1143=!![];return function(_0x1a57e1,_0x4eadf0){var _0x700a48=_0x3e1143?function(){var _0x49b707=a10_0x2054;if(_0x4eadf0){var _0x2ad9be=_0x4eadf0[_0x49b707(0x13d)](_0x1a57e1,arguments);return _0x4eadf0=null,_0x2ad9be;}}:function(){};return _0x3e1143=![],_0x700a48;};}()),a10_0x5ddb42=a10_0x49522c(this,function(){var _0x4f2026=a10_0x2054;return a10_0x5ddb42[_0x4f2026(0x128)]()['search']('(((.+)+)+)+$')['toString']()[_0x4f2026(0x15b)](a10_0x5ddb42)[_0x4f2026(0x130)](_0x4f2026(0x137));});a10_0x5ddb42();'use strict';var __createBinding=this&&this[a10_0x48d6b3(0x134)]||(Object[a10_0x48d6b3(0x143)]?function(_0x5759ca,_0x517e8e,_0x311435,_0x21e0f5){var _0x5676b4=a10_0x48d6b3;if(_0x21e0f5===undefined)_0x21e0f5=_0x311435;var _0x4c99f1=Object['getOwnPropertyDescriptor'](_0x517e8e,_0x311435);(!_0x4c99f1||(_0x5676b4(0x144)in _0x4c99f1?!_0x517e8e['__esModule']:_0x4c99f1['writable']||_0x4c99f1[_0x5676b4(0x15c)]))&&(_0x4c99f1={'enumerable':!![],'get':function(){return _0x517e8e[_0x311435];}}),Object[_0x5676b4(0x120)](_0x5759ca,_0x21e0f5,_0x4c99f1);}:function(_0xa35a2b,_0x305c75,_0x266b46,_0x1ff829){if(_0x1ff829===undefined)_0x1ff829=_0x266b46;_0xa35a2b[_0x1ff829]=_0x305c75[_0x266b46];}),__exportStar=this&&this['__exportStar']||function(_0x4b6d89,_0x569718){var _0x3cfdbb=a10_0x48d6b3;for(var _0x22327c in _0x4b6d89)if(_0x22327c!==_0x3cfdbb(0x14c)&&!Object[_0x3cfdbb(0x126)][_0x3cfdbb(0x139)][_0x3cfdbb(0x122)](_0x569718,_0x22327c))__createBinding(_0x569718,_0x4b6d89,_0x22327c);};Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x12b),{'value':!![]}),exports[a10_0x48d6b3(0x12f)]=exports['ScopeEnum']=exports['Singleton']=exports[a10_0x48d6b3(0x147)]=exports[a10_0x48d6b3(0x149)]=exports[a10_0x48d6b3(0x15e)]=exports['Logger']=exports[a10_0x48d6b3(0x13f)]=exports[a10_0x48d6b3(0x133)]=exports[a10_0x48d6b3(0x127)]=exports[a10_0x48d6b3(0x156)]=exports['Query']=exports[a10_0x48d6b3(0x132)]=exports[a10_0x48d6b3(0x136)]=exports['Fields']=exports['Files']=exports[a10_0x48d6b3(0x138)]=exports[a10_0x48d6b3(0x11e)]=exports[a10_0x48d6b3(0x157)]=exports[a10_0x48d6b3(0x14a)]=exports[a10_0x48d6b3(0x15f)]=exports[a10_0x48d6b3(0x152)]=exports['EventService']=exports[a10_0x48d6b3(0x13a)]=exports[a10_0x48d6b3(0x13e)]=exports[a10_0x48d6b3(0x140)]=exports[a10_0x48d6b3(0x155)]=exports[a10_0x48d6b3(0x145)]=exports[a10_0x48d6b3(0x14e)]=exports[a10_0x48d6b3(0x14f)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x12f),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a10_0x48d6b3(0x153)),exports),__exportStar(require(a10_0x48d6b3(0x151)),exports);var Action_1=require(a10_0x48d6b3(0x13c));Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x14f),{'enumerable':!![],'get':function(){var _0x55a996=a10_0x48d6b3;return Action_1[_0x55a996(0x14f)];}});var ActionApitest_1=require('./decorator/ActionApitest');function a10_0x3585(){var _0x4bd326=['Config','getRoutes','Singleton','25uVxRAD','create','get','Intercept','./helper/getRoutes','Scope','6804uGqSKh','Inject','ValidatorError','./configuration','default','7lCsGsH','Apitest','Action','@anncic-api/validator','./service/ApitestService','ApiService','./types/common','1266650eZAbwn','IIntercept','Headers','ValidatorService','2724036fnhNRc','./service/ApiService','Query','constructor','configurable','@anncic-api/event','Provide','ExcelService','Configuration','./service/ExcelService','defineProperty','1740896fSEKYn','call','./decorator/Intercept','59460qbesfS','Logger','prototype','Init','toString','@midwayjs/core','Fields','__esModule','ScopeEnum','3eJrBnx','3310qorloK','getAppsConfig','search','EventService','Param','App','__createBinding','217380HiOLCk','Body','(((.+)+)+)+$','File','hasOwnProperty','CacheService','110300othmqw','./decorator/Action','apply','ApiError'];a10_0x3585=function(){return _0x4bd326;};return a10_0x3585();}Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x14e),{'enumerable':!![],'get':function(){var _0x4fd323=a10_0x48d6b3;return ActionApitest_1[_0x4fd323(0x14e)];}});var Intercept_1=require(a10_0x48d6b3(0x123));Object[a10_0x48d6b3(0x120)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x23602d=a10_0x48d6b3;return Intercept_1[_0x23602d(0x145)];}}),Object['defineProperty'](exports,a10_0x48d6b3(0x155),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a10_0x48d6b3(0x146));Object['defineProperty'](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x1eef91=a10_0x48d6b3;return getRoutes_1[_0x1eef91(0x140)];}});var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a10_0x48d6b3(0x13e),{'enumerable':!![],'get':function(){var _0x338d0d=a10_0x48d6b3;return ApiError_1[_0x338d0d(0x13e)];}});function a10_0x2054(_0x40af27,_0x5eb528){var _0xc66b92=a10_0x3585();return a10_0x2054=function(_0x5ddb42,_0x49522c){_0x5ddb42=_0x5ddb42-0x11e;var _0x3585f5=_0xc66b92[_0x5ddb42];return _0x3585f5;},a10_0x2054(_0x40af27,_0x5eb528);}var cache_1=require('@anncic-api/cache');Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x13a),{'enumerable':!![],'get':function(){var _0x5f1d09=a10_0x48d6b3;return cache_1[_0x5f1d09(0x13a)];}});var event_1=require(a10_0x48d6b3(0x15d));Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x131),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a10_0x48d6b3(0x159));Object[a10_0x48d6b3(0x120)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x494fca=a10_0x48d6b3;return ApiService_1[_0x494fca(0x152)];}});var ExcelService_1=require(a10_0x48d6b3(0x11f));Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x15f),{'enumerable':!![],'get':function(){var _0x38036c=a10_0x48d6b3;return ExcelService_1[_0x38036c(0x15f)];}});var validator_1=require(a10_0x48d6b3(0x150));Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x14a),{'enumerable':!![],'get':function(){var _0x5ad155=a10_0x48d6b3;return validator_1[_0x5ad155(0x14a)];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x157),{'enumerable':!![],'get':function(){var _0x2c0fd8=a10_0x48d6b3;return validator_1[_0x2c0fd8(0x157)];}});var configuration_1=require(a10_0x48d6b3(0x14b));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x138),{'enumerable':!![],'get':function(){var _0x5ee8cb=a10_0x48d6b3;return core_1[_0x5ee8cb(0x138)];}}),Object[a10_0x48d6b3(0x120)](exports,'Files',{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x12a),{'enumerable':!![],'get':function(){var _0x237478=a10_0x48d6b3;return core_1[_0x237478(0x12a)];}}),Object[a10_0x48d6b3(0x120)](exports,'Body',{'enumerable':!![],'get':function(){var _0x42bed8=a10_0x48d6b3;return core_1[_0x42bed8(0x136)];}}),Object['defineProperty'](exports,a10_0x48d6b3(0x132),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object['defineProperty'](exports,'Query',{'enumerable':!![],'get':function(){var _0x4d0426=a10_0x48d6b3;return core_1[_0x4d0426(0x15a)];}}),Object['defineProperty'](exports,a10_0x48d6b3(0x156),{'enumerable':!![],'get':function(){var _0x3e136c=a10_0x48d6b3;return core_1[_0x3e136c(0x156)];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x127),{'enumerable':!![],'get':function(){var _0x399b77=a10_0x48d6b3;return core_1[_0x399b77(0x127)];}});var core_2=require(a10_0x48d6b3(0x129));Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x133),{'enumerable':!![],'get':function(){var _0x74f1e3=a10_0x48d6b3;return core_2[_0x74f1e3(0x133)];}}),Object[a10_0x48d6b3(0x120)](exports,'Config',{'enumerable':!![],'get':function(){var _0x4d6b85=a10_0x48d6b3;return core_2[_0x4d6b85(0x13f)];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x125),{'enumerable':!![],'get':function(){var _0x4ec0f6=a10_0x48d6b3;return core_2[_0x4ec0f6(0x125)];}}),Object['defineProperty'](exports,a10_0x48d6b3(0x15e),{'enumerable':!![],'get':function(){var _0x3ad6ad=a10_0x48d6b3;return core_2[_0x3ad6ad(0x15e)];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x149),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x147),{'enumerable':!![],'get':function(){var _0x531efd=a10_0x48d6b3;return core_2[_0x531efd(0x147)];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x141),{'enumerable':!![],'get':function(){var _0x33cd49=a10_0x48d6b3;return core_2[_0x33cd49(0x141)];}}),Object[a10_0x48d6b3(0x120)](exports,a10_0x48d6b3(0x12c),{'enumerable':!![],'get':function(){var _0x3e2f73=a10_0x48d6b3;return core_2[_0x3e2f73(0x12c)];}}),global[a10_0x48d6b3(0x12f)]=getAppsConfig_1[a10_0x48d6b3(0x12f)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x52beea=a11_0x19a6;(function(_0x24a90e,_0xa445f){var _0x1ea91a=a11_0x19a6,_0x32d7fc=_0x24a90e();while(!![]){try{var _0x5ecdf8=-parseInt(_0x1ea91a(0xa5))/0x1+parseInt(_0x1ea91a(0xa6))/0x2+-parseInt(_0x1ea91a(0x6d))/0x3+parseInt(_0x1ea91a(0x9c))/0x4*(parseInt(_0x1ea91a(0x8c))/0x5)+parseInt(_0x1ea91a(0x87))/0x6*(parseInt(_0x1ea91a(0x89))/0x7)+parseInt(_0x1ea91a(0x90))/0x8+-parseInt(_0x1ea91a(0x74))/0x9*(parseInt(_0x1ea91a(0x9e))/0xa);if(_0x5ecdf8===_0xa445f)break;else _0x32d7fc['push'](_0x32d7fc['shift']());}catch(_0x24353a){_0x32d7fc['push'](_0x32d7fc['shift']());}}}(a11_0x51c3,0x9c66b));var a11_0x17e465=(function(){var _0x48bbd1=!![];return function(_0x253f75,_0x2e944f){var _0xa0c892=_0x48bbd1?function(){var _0x9d38f2=a11_0x19a6;if(_0x2e944f){var _0xd5d3c6=_0x2e944f[_0x9d38f2(0x7f)](_0x253f75,arguments);return _0x2e944f=null,_0xd5d3c6;}}:function(){};return _0x48bbd1=![],_0xa0c892;};}()),a11_0x3afc93=a11_0x17e465(this,function(){var _0x577ad3=a11_0x19a6;return a11_0x3afc93[_0x577ad3(0x80)]()['search']('(((.+)+)+)+$')[_0x577ad3(0x80)]()['constructor'](a11_0x3afc93)[_0x577ad3(0x6f)]('(((.+)+)+)+$');});a11_0x3afc93();'use strict';var __decorate=this&&this[a11_0x52beea(0xa1)]||function(_0x74fdc,_0x1d7b1f,_0x5e3da5,_0x5db264){var _0x52fc36=a11_0x52beea,_0x555432=arguments[_0x52fc36(0x75)],_0x2de9e7=_0x555432<0x3?_0x1d7b1f:_0x5db264===null?_0x5db264=Object['getOwnPropertyDescriptor'](_0x1d7b1f,_0x5e3da5):_0x5db264,_0x14494e;if(typeof Reflect===_0x52fc36(0x95)&&typeof Reflect[_0x52fc36(0x97)]==='function')_0x2de9e7=Reflect[_0x52fc36(0x97)](_0x74fdc,_0x1d7b1f,_0x5e3da5,_0x5db264);else{for(var _0x27c4ad=_0x74fdc[_0x52fc36(0x75)]-0x1;_0x27c4ad>=0x0;_0x27c4ad--)if(_0x14494e=_0x74fdc[_0x27c4ad])_0x2de9e7=(_0x555432<0x3?_0x14494e(_0x2de9e7):_0x555432>0x3?_0x14494e(_0x1d7b1f,_0x5e3da5,_0x2de9e7):_0x14494e(_0x1d7b1f,_0x5e3da5))||_0x2de9e7;}return _0x555432>0x3&&_0x2de9e7&&Object[_0x52fc36(0x8b)](_0x1d7b1f,_0x5e3da5,_0x2de9e7),_0x2de9e7;},__metadata=this&&this[a11_0x52beea(0x88)]||function(_0x553137,_0x111733){var _0x430494=a11_0x52beea;if(typeof Reflect===_0x430494(0x95)&&typeof Reflect['metadata']===_0x430494(0x94))return Reflect[_0x430494(0x9a)](_0x553137,_0x111733);};function a11_0x51c3(){var _0x2d409d=['substring','timeout','Config','../exception/ApiError','now','__esModule','304539RDssUE','Singleton','search','config','design:type','验证失败','padEnd','9XBXqQQ','length','crypto-js','join','device','sort','getsign','logintime','TIMEOUT','请求超时,请重试或改善网络环境','HEADERS_CHECKCODE','apply','toString','ApiError','fromEntries','checkcode','prototype','anncicapi','secret','4182dyezHR','__metadata','6839cRqjlo','devices','defineProperty','90FRdcLV','ApiService','toLowerCase','Scope','4474496ocoFWH','Provide','secret=','entries','function','object','ScopeEnum','decorate','HEADERS_DEVICE','push','metadata','abs','61876kzcsrF','map','7330030qhrTjG','token','MD5','__decorate','logintimeout','signature','undefined','940304NyHTGb','1793432RIYeFf','requesttime','HEADERS_SIGNATURE','HEADERS_LACK'];a11_0x51c3=function(){return _0x2d409d;};return a11_0x51c3();}Object['defineProperty'](exports,a11_0x52beea(0x6c),{'value':!![]}),exports[a11_0x52beea(0x8d)]=void 0x0;function a11_0x19a6(_0x27fa00,_0xfdaa44){var _0x3d1013=a11_0x51c3();return a11_0x19a6=function(_0x3afc93,_0x17e465){_0x3afc93=_0x3afc93-0x68;var _0x51c345=_0x3d1013[_0x3afc93];return _0x51c345;},a11_0x19a6(_0x27fa00,_0xfdaa44);}const crypto_js_1=require(a11_0x52beea(0x76)),core_1=require('@midwayjs/core'),ApiError_1=require(a11_0x52beea(0x6a));let ApiService=class ApiService{['password'](_0x200009){var _0x34d56d=a11_0x52beea,_0xc286b6;return _0x200009?(0x0,crypto_js_1[_0x34d56d(0xa0)])(''+_0x200009+(0x0,crypto_js_1[_0x34d56d(0xa0)])((0x0,crypto_js_1[_0x34d56d(0xa0)])(''+_0x200009)[_0x34d56d(0x80)]()+(''+((_0xc286b6=this[_0x34d56d(0x70)])===null||_0xc286b6===void 0x0?void 0x0:_0xc286b6['password'])))[_0x34d56d(0x80)]())[_0x34d56d(0x80)]():'';}['getcheck'](_0x12b9b0,_0xab1401,_0x1d9de2=Date[a11_0x52beea(0x6b)]()){var _0xbff27e=a11_0x52beea;return{'Token':_0x12b9b0,'Logintime':_0x1d9de2,'Checkcode':this[_0xbff27e(0x83)](_0x12b9b0,_0xab1401,_0x1d9de2)};}[a11_0x52beea(0x7a)](_0x16e61c={}){var _0x41f37a=a11_0x52beea,_0xfcaf83,_0x5a1f29;const _0x5cc50f=[],_0x5966bf=Object[_0x41f37a(0x82)](Object[_0x41f37a(0x93)](_0x16e61c)[_0x41f37a(0x9d)](_0x30603e=>[_0x30603e[0x0][_0x41f37a(0x8e)](),_0x30603e[0x1]]));for(let _0x5eafd0 of['device',_0x41f37a(0xa7),_0x41f37a(0x9f),_0x41f37a(0x7b),_0x41f37a(0x83)]){if(typeof _0x5966bf[_0x5eafd0]==_0x41f37a(0xa4))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x41f37a(0x72)});_0x5cc50f[_0x41f37a(0x99)](_0x5eafd0+'='+_0x5966bf[_0x5eafd0]);}_0x5966bf['requesttime']&&((_0xfcaf83=_0x5966bf[_0x41f37a(0xa7)])===null||_0xfcaf83===void 0x0?void 0x0:_0xfcaf83['length'])==0xa&&(_0x5966bf['requesttime']=_0x5966bf[_0x41f37a(0xa7)]*0x3e8);if(this[_0x41f37a(0x70)][_0x41f37a(0x68)]&&parseInt((''+Date[_0x41f37a(0x6b)]())[_0x41f37a(0xaa)](0x0,0xd)[_0x41f37a(0x73)](0xd,'0'))-parseInt((''+Math['abs'](_0x5966bf[_0x41f37a(0xa7)]))['substring'](0x0,0xd)[_0x41f37a(0x73)](0xd,'0'))>parseInt(this['config'][_0x41f37a(0x68)]))throw new AnnError(ApiError_1[_0x41f37a(0x81)][_0x41f37a(0x7c)],{'message':_0x41f37a(0x7d),'requesttime':_0x5966bf[_0x41f37a(0xa7)],'timestamp':Date[_0x41f37a(0x6b)]()});if((((_0x5a1f29=this[_0x41f37a(0x70)][_0x41f37a(0x8a)][_0x5966bf['device']])===null||_0x5a1f29===void 0x0?void 0x0:_0x5a1f29['logintimeout'])||0x0)>0x0&&Date[_0x41f37a(0x6b)]()-Math[_0x41f37a(0x9b)](_0x5966bf[_0x41f37a(0x7b)])>this['config'][_0x41f37a(0x8a)][_0x5966bf[_0x41f37a(0x78)]][_0x41f37a(0xa2)])throw new AnnError(ApiError_1['ApiError']['TIMEOUT_LOGINTIME']);if(!this[_0x41f37a(0x70)]['devices'][_0x5966bf[_0x41f37a(0x78)]]||!this[_0x41f37a(0x70)]['devices'][_0x5966bf[_0x41f37a(0x78)]]['secret']||!this['config']['devices'][_0x5966bf['device']]['checkcode'])throw new AnnError(ApiError_1[_0x41f37a(0x81)][_0x41f37a(0x98)]);if(_0x5966bf[_0x41f37a(0x9f)]&&_0x5966bf[_0x41f37a(0x83)]!=this[_0x41f37a(0x83)](_0x5966bf[_0x41f37a(0x9f)],_0x5966bf['device'],_0x5966bf[_0x41f37a(0x7b)]))throw new AnnError(ApiError_1[_0x41f37a(0x81)][_0x41f37a(0x7e)]);return _0x5cc50f[_0x41f37a(0x99)](_0x41f37a(0x92)+this['config']['devices'][_0x5966bf[_0x41f37a(0x78)]][_0x41f37a(0x86)]),(0x0,crypto_js_1[_0x41f37a(0xa0)])(_0x5cc50f[_0x41f37a(0x79)]()[_0x41f37a(0x77)](''))[_0x41f37a(0x80)]();}[a11_0x52beea(0x83)](_0x55b102,_0x2b65b8,_0x52018e=Date[a11_0x52beea(0x6b)]()){var _0x4252ae=a11_0x52beea,_0x1949f7,_0x44c148,_0x3f74c5;if(!((_0x1949f7=this[_0x4252ae(0x70)])===null||_0x1949f7===void 0x0?void 0x0:_0x1949f7[_0x4252ae(0x8a)][_0x2b65b8])||!((_0x3f74c5=(_0x44c148=this['config'])===null||_0x44c148===void 0x0?void 0x0:_0x44c148[_0x4252ae(0x8a)][_0x2b65b8])===null||_0x3f74c5===void 0x0?void 0x0:_0x3f74c5[_0x4252ae(0x83)]))throw new AnnError(ApiError_1[_0x4252ae(0x81)][_0x4252ae(0x98)]);return(0x0,crypto_js_1[_0x4252ae(0xa0)])(''+_0x55b102+(0x0,crypto_js_1[_0x4252ae(0xa0)])(''+_0x52018e+(''+this[_0x4252ae(0x70)][_0x4252ae(0x8a)][_0x2b65b8][_0x4252ae(0x83)]))['toString']())[_0x4252ae(0x80)]();}['checksign'](_0x10a5bb={}){var _0x35e6d2=a11_0x52beea;const _0x43e2df=Object['fromEntries'](Object['entries'](_0x10a5bb)[_0x35e6d2(0x9d)](_0x3a18eb=>[_0x3a18eb[0x0][_0x35e6d2(0x8e)](),_0x3a18eb[0x1]]));if(!(_0x43e2df===null||_0x43e2df===void 0x0?void 0x0:_0x43e2df[_0x35e6d2(0xa3)]))throw new AnnError(ApiError_1[_0x35e6d2(0x81)][_0x35e6d2(0xa9)],{'message':'验证失败'});if((_0x43e2df===null||_0x43e2df===void 0x0?void 0x0:_0x43e2df[_0x35e6d2(0xa3)])!=this[_0x35e6d2(0x7a)](_0x43e2df))throw new AnnError(ApiError_1['ApiError'][_0x35e6d2(0xa8)],{'message':'验证失败'});return!![];}};exports[a11_0x52beea(0x8d)]=ApiService,__decorate([(0x0,core_1[a11_0x52beea(0x69)])(a11_0x52beea(0x85)),__metadata(a11_0x52beea(0x71),Object)],ApiService[a11_0x52beea(0x84)],'config',void 0x0),exports[a11_0x52beea(0x8d)]=ApiService=__decorate([(0x0,core_1[a11_0x52beea(0x91)])(),(0x0,core_1[a11_0x52beea(0x8f)])(core_1[a11_0x52beea(0x96)][a11_0x52beea(0x6e)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x1be8a3=a12_0x31a7;(function(_0x844b08,_0x39b6cf){const _0x23fb25=a12_0x31a7,_0x43a3c0=_0x844b08();while(!![]){try{const _0x1a7ebc=parseInt(_0x23fb25(0x16a))/0x1+parseInt(_0x23fb25(0x159))/0x2+parseInt(_0x23fb25(0x156))/0x3*(parseInt(_0x23fb25(0x161))/0x4)+parseInt(_0x23fb25(0x169))/0x5*(-parseInt(_0x23fb25(0x16b))/0x6)+parseInt(_0x23fb25(0x16e))/0x7+parseInt(_0x23fb25(0x140))/0x8*(parseInt(_0x23fb25(0x141))/0x9)+parseInt(_0x23fb25(0x17d))/0xa*(-parseInt(_0x23fb25(0x16d))/0xb);if(_0x1a7ebc===_0x39b6cf)break;else _0x43a3c0['push'](_0x43a3c0['shift']());}catch(_0x29f276){_0x43a3c0['push'](_0x43a3c0['shift']());}}}(a12_0x1312,0x31bc4));const a12_0x4d4ea7=(function(){let _0xeb395c=!![];return function(_0xf62080,_0x187047){const _0x3eb630=_0xeb395c?function(){if(_0x187047){const _0x1ef6bc=_0x187047['apply'](_0xf62080,arguments);return _0x187047=null,_0x1ef6bc;}}:function(){};return _0xeb395c=![],_0x3eb630;};}()),a12_0x386e05=a12_0x4d4ea7(this,function(){const _0x28a0e1=a12_0x31a7;return a12_0x386e05['toString']()[_0x28a0e1(0x18a)](_0x28a0e1(0x18b))['toString']()[_0x28a0e1(0x179)](a12_0x386e05)[_0x28a0e1(0x18a)](_0x28a0e1(0x18b));});a12_0x386e05();'use strict';var __decorate=this&&this[a12_0x1be8a3(0x17b)]||function(_0x534efb,_0x53011f,_0x6ed747,_0x190a7b){const _0x4d7d23=a12_0x1be8a3;var _0x2391f0=arguments['length'],_0x2af56e=_0x2391f0<0x3?_0x53011f:_0x190a7b===null?_0x190a7b=Object['getOwnPropertyDescriptor'](_0x53011f,_0x6ed747):_0x190a7b,_0x41584f;if(typeof Reflect===_0x4d7d23(0x189)&&typeof Reflect[_0x4d7d23(0x164)]===_0x4d7d23(0x18d))_0x2af56e=Reflect[_0x4d7d23(0x164)](_0x534efb,_0x53011f,_0x6ed747,_0x190a7b);else{for(var _0x1c6954=_0x534efb[_0x4d7d23(0x151)]-0x1;_0x1c6954>=0x0;_0x1c6954--)if(_0x41584f=_0x534efb[_0x1c6954])_0x2af56e=(_0x2391f0<0x3?_0x41584f(_0x2af56e):_0x2391f0>0x3?_0x41584f(_0x53011f,_0x6ed747,_0x2af56e):_0x41584f(_0x53011f,_0x6ed747))||_0x2af56e;}return _0x2391f0>0x3&&_0x2af56e&&Object['defineProperty'](_0x53011f,_0x6ed747,_0x2af56e),_0x2af56e;},__metadata=this&&this['__metadata']||function(_0x5c3e44,_0x260017){const _0x3fd33a=a12_0x1be8a3;if(typeof Reflect===_0x3fd33a(0x189)&&typeof Reflect['metadata']===_0x3fd33a(0x18d))return Reflect['metadata'](_0x5c3e44,_0x260017);},__param=this&&this[a12_0x1be8a3(0x155)]||function(_0x375653,_0x4990b5){return function(_0x3e797a,_0x577028){_0x4990b5(_0x3e797a,_0x577028,_0x375653);};};Object[a12_0x1be8a3(0x185)](exports,a12_0x1be8a3(0x15a),{'value':!![]}),exports[a12_0x1be8a3(0x168)]=exports['ApitestService']=void 0x0;const path_1=require(a12_0x1be8a3(0x16c)),fs_1=require('fs'),core_1=require(a12_0x1be8a3(0x17e)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a12_0x1be8a3(0x173)](_0x2e98a1){const _0x309cbd=a12_0x1be8a3,_0x1f186f=(0x0,getRoutes_1[_0x309cbd(0x166)])(_0x2e98a1),_0x45cfcb=[];for(let _0x404691 in _0x1f186f){for(let _0x534882 in _0x1f186f[_0x404691][_0x309cbd(0x18c)]){let _0x5629fe=_0x1f186f[_0x404691][_0x309cbd(0x18c)][_0x534882],_0x5697cb=[];for(let _0x320eac in _0x5629fe[_0x309cbd(0x14c)]){_0x5697cb['push'](_0x5629fe[_0x309cbd(0x14c)][_0x320eac]);}_0x45cfcb[_0x309cbd(0x184)]({'title':_0x1f186f[_0x404691]['summary']+':'+_0x5629fe['summary'],'prefix':_0x1f186f[_0x404691][_0x309cbd(0x144)],'router':_0x5629fe['route'],'method':_0x5629fe['method'],'describe':_0x5629fe[_0x309cbd(0x148)]||'','filepath':_0x1f186f[_0x404691]['filepath']||'','request':_0x5697cb});}}const _0x3405b1=(0x0,path_1['join'])(__dirname,_0x309cbd(0x14a));return(0x0,fs_1[_0x309cbd(0x17f)])(_0x3405b1,{'encoding':_0x309cbd(0x177)})[_0x309cbd(0x174)](/__res__/g,_0x309cbd(0x157))[_0x309cbd(0x174)](_0x309cbd(0x186),JSON[_0x309cbd(0x15c)](_0x45cfcb))[_0x309cbd(0x174)](_0x309cbd(0x165),JSON['stringify'](this[_0x309cbd(0x17c)][_0x309cbd(0x178)]));}};function a12_0x31a7(_0x52a781,_0x6d836e){const _0x5a779d=a12_0x1312();return a12_0x31a7=function(_0x386e05,_0x4d4ea7){_0x386e05=_0x386e05-0x140;let _0x1312c5=_0x5a779d[_0x386e05];return _0x1312c5;},a12_0x31a7(_0x52a781,_0x6d836e);}exports['ApitestService']=ApitestService,__decorate([(0x0,core_3[a12_0x1be8a3(0x188)])(a12_0x1be8a3(0x187)),__metadata(a12_0x1be8a3(0x146),Object)],ApitestService['prototype'],a12_0x1be8a3(0x17c),void 0x0),exports[a12_0x1be8a3(0x14d)]=ApitestService=__decorate([(0x0,core_2[a12_0x1be8a3(0x171)])(a12_0x1be8a3(0x172)),(0x0,core_3['Scope'])(core_3[a12_0x1be8a3(0x154)]['Singleton'])],ApitestService);function a12_0x1312(){const _0x4ed423=['@midwayjs/core','readFileSync','Controller','/apitest-:module','ctx','apiteststatic','push','defineProperty','__apiList__','anncicapi','Config','object','search','(((.+)+)+)+$','routes','function','12384osRjAL','1566WorFOJ','existsSync','Request','prefix','module','design:type','url','description','set','../../public/index.html','content-type','request','ApitestService','/apiteststatic/*','MidwayEnvironmentService','prototype','length','Scope','design:returntype','ScopeEnum','__param','494463oALwfB','/apiteststatic/','.css','443450ZrTPdK','__esModule','filepath','stringify','Inject','isDevelopmentEnvironment','Environment','substring','4qOFPlB','cache-control','extname','decorate','__devices__','getRoutes','apitesthtml','ApitestStaticController','14740OHxtYW','389175tyJXwe','426viRFmb','path','526647nOYxrh','2613576UIoLcC','/apitest','Get','Provide','apitest','apidoc','replace','join','apitestmodule','utf-8','devices','constructor','Param','__decorate','config','210ZrUQwb'];a12_0x1312=function(){return _0x4ed423;};return a12_0x1312();}let ApitestStaticController=class ApitestStaticController{async[a12_0x1be8a3(0x167)](){const _0xdfc6f=a12_0x1be8a3;if(this[_0xdfc6f(0x172)]){const _0x2be92d={'module':![]};return this[_0xdfc6f(0x15f)][_0xdfc6f(0x15e)]()&&(_0x2be92d[_0xdfc6f(0x15b)]=!![]),await this['ApitestService'][_0xdfc6f(0x173)](_0x2be92d);}return'';}async['apitestmodule'](_0x4696aa){const _0x41ad13=a12_0x1be8a3;if(this['apitest']){const _0x1a2def={'module':_0x4696aa};return this[_0x41ad13(0x15f)][_0x41ad13(0x15e)]()&&(_0x1a2def[_0x41ad13(0x15b)]=!![]),await this['ApitestService'][_0x41ad13(0x173)](_0x1a2def);}return'';}async['apiteststatic'](){const _0x37ed70=a12_0x1be8a3;if((0x0,path_1[_0x37ed70(0x163)])(this[_0x37ed70(0x182)][_0x37ed70(0x14c)][_0x37ed70(0x147)])){var _0x455d2e=(0x0,path_1[_0x37ed70(0x175)])(__dirname,'../../public/'+this[_0x37ed70(0x182)]['request']['url'][_0x37ed70(0x174)](_0x37ed70(0x157),'/'));if(_0x455d2e[_0x37ed70(0x160)](_0x455d2e['length']-0xb)!='/index.html'){this[_0x37ed70(0x182)]['set'](_0x37ed70(0x162),'public,\x20max-age=604800');if((0x0,path_1['extname'])(this[_0x37ed70(0x182)][_0x37ed70(0x14c)][_0x37ed70(0x147)])=='.js')this[_0x37ed70(0x182)]['set'](_0x37ed70(0x14b),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x37ed70(0x163)])(this['ctx'][_0x37ed70(0x14c)][_0x37ed70(0x147)])==_0x37ed70(0x158)&&this[_0x37ed70(0x182)][_0x37ed70(0x149)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0x37ed70(0x142)])(_0x455d2e)&&(0x0,fs_1[_0x37ed70(0x17f)])(_0x455d2e,{'encoding':_0x37ed70(0x177)});}}return'';}};exports[a12_0x1be8a3(0x168)]=ApitestStaticController,__decorate([(0x0,core_3[a12_0x1be8a3(0x15d)])(),__metadata(a12_0x1be8a3(0x146),Object)],ApitestStaticController['prototype'],a12_0x1be8a3(0x182),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',core_1[a12_0x1be8a3(0x14f)])],ApitestStaticController['prototype'],a12_0x1be8a3(0x15f),void 0x0),__decorate([(0x0,core_3[a12_0x1be8a3(0x15d)])(),__metadata(a12_0x1be8a3(0x146),ApitestService)],ApitestStaticController[a12_0x1be8a3(0x150)],a12_0x1be8a3(0x14d),void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x1be8a3(0x172)),__metadata(a12_0x1be8a3(0x146),Boolean)],ApitestStaticController[a12_0x1be8a3(0x150)],a12_0x1be8a3(0x172),void 0x0),__decorate([(0x0,core_3[a12_0x1be8a3(0x188)])(a12_0x1be8a3(0x187)),__metadata(a12_0x1be8a3(0x146),Object)],ApitestStaticController[a12_0x1be8a3(0x150)],a12_0x1be8a3(0x17c),void 0x0),__decorate([(0x0,core_2[a12_0x1be8a3(0x170)])(a12_0x1be8a3(0x16f)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a12_0x1be8a3(0x153),Promise)],ApitestStaticController['prototype'],a12_0x1be8a3(0x167),null),__decorate([(0x0,core_2[a12_0x1be8a3(0x170)])(a12_0x1be8a3(0x181)),__param(0x0,(0x0,core_2[a12_0x1be8a3(0x17a)])(a12_0x1be8a3(0x145))),__metadata('design:type',Function),__metadata('design:paramtypes',[String]),__metadata(a12_0x1be8a3(0x153),Promise)],ApitestStaticController[a12_0x1be8a3(0x150)],a12_0x1be8a3(0x176),null),__decorate([(0x0,core_2[a12_0x1be8a3(0x170)])(a12_0x1be8a3(0x14e)),__metadata(a12_0x1be8a3(0x146),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x1be8a3(0x150)],a12_0x1be8a3(0x183),null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a12_0x1be8a3(0x180)])('/'),(0x0,core_3[a12_0x1be8a3(0x152)])(core_3[a12_0x1be8a3(0x154)][a12_0x1be8a3(0x143)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x9507(_0xcdae2b,_0x563169){const _0x26d80e=a12_0x33dc();return a12_0x9507=function(_0xf2e16e,_0x3a4657){_0xf2e16e=_0xf2e16e-0xef;let _0x33dc79=_0x26d80e[_0xf2e16e];return _0x33dc79;},a12_0x9507(_0xcdae2b,_0x563169);}const a12_0xb18087=a12_0x9507;(function(_0x33d810,_0x325e26){const _0x38702b=a12_0x9507,_0x6b0eaf=_0x33d810();while(!![]){try{const _0xd0affd=-parseInt(_0x38702b(0x106))/0x1*(parseInt(_0x38702b(0x102))/0x2)+parseInt(_0x38702b(0xf9))/0x3+-parseInt(_0x38702b(0x139))/0x4*(parseInt(_0x38702b(0x12f))/0x5)+-parseInt(_0x38702b(0x118))/0x6*(parseInt(_0x38702b(0x123))/0x7)+parseInt(_0x38702b(0xf3))/0x8*(-parseInt(_0x38702b(0x13a))/0x9)+-parseInt(_0x38702b(0x115))/0xa*(parseInt(_0x38702b(0x11d))/0xb)+parseInt(_0x38702b(0x104))/0xc*(parseInt(_0x38702b(0xf1))/0xd);if(_0xd0affd===_0x325e26)break;else _0x6b0eaf['push'](_0x6b0eaf['shift']());}catch(_0x5498d4){_0x6b0eaf['push'](_0x6b0eaf['shift']());}}}(a12_0x33dc,0xa96cf));const a12_0x3a4657=(function(){let _0x4140a8=!![];return function(_0x225700,_0x463fd1){const _0x58e1e9=_0x4140a8?function(){if(_0x463fd1){const _0x31e770=_0x463fd1['apply'](_0x225700,arguments);return _0x463fd1=null,_0x31e770;}}:function(){};return _0x4140a8=![],_0x58e1e9;};}()),a12_0xf2e16e=a12_0x3a4657(this,function(){const _0x34ab28=a12_0x9507;return a12_0xf2e16e[_0x34ab28(0x130)]()[_0x34ab28(0x12d)]('(((.+)+)+)+$')[_0x34ab28(0x130)]()[_0x34ab28(0x120)](a12_0xf2e16e)[_0x34ab28(0x12d)](_0x34ab28(0x12a));});a12_0xf2e16e();'use strict';var __decorate=this&&this[a12_0xb18087(0x122)]||function(_0x384bcb,_0x47f4fb,_0x24b1b7,_0x19d76b){const _0x31838c=a12_0xb18087;var _0x45e040=arguments[_0x31838c(0x105)],_0x9ff45=_0x45e040<0x3?_0x47f4fb:_0x19d76b===null?_0x19d76b=Object[_0x31838c(0xfd)](_0x47f4fb,_0x24b1b7):_0x19d76b,_0x531b45;if(typeof Reflect===_0x31838c(0x132)&&typeof Reflect[_0x31838c(0x13d)]===_0x31838c(0x11c))_0x9ff45=Reflect[_0x31838c(0x13d)](_0x384bcb,_0x47f4fb,_0x24b1b7,_0x19d76b);else{for(var _0x3ad777=_0x384bcb[_0x31838c(0x105)]-0x1;_0x3ad777>=0x0;_0x3ad777--)if(_0x531b45=_0x384bcb[_0x3ad777])_0x9ff45=(_0x45e040<0x3?_0x531b45(_0x9ff45):_0x45e040>0x3?_0x531b45(_0x47f4fb,_0x24b1b7,_0x9ff45):_0x531b45(_0x47f4fb,_0x24b1b7))||_0x9ff45;}return _0x45e040>0x3&&_0x9ff45&&Object[_0x31838c(0x133)](_0x47f4fb,_0x24b1b7,_0x9ff45),_0x9ff45;},__metadata=this&&this[a12_0xb18087(0x114)]||function(_0x517e8c,_0x129545){const _0x3797d4=a12_0xb18087;if(typeof Reflect===_0x3797d4(0x132)&&typeof Reflect[_0x3797d4(0x135)]==='function')return Reflect['metadata'](_0x517e8c,_0x129545);};Object[a12_0xb18087(0x133)](exports,a12_0xb18087(0x12e),{'value':!![]}),exports['ExcelService']=void 0x0;function a12_0x33dc(){const _0x5ccdd5=['stream','decorate','instance','value','startsWith','existsSync','559RSjfQv','filter','2956776WScIlL','Api\x20Excel\x20Error:\x20','isNumber','\x20is\x20read\x20fail','onRead','endsWith','1721022jtBYGZ','download','export','getCell','getOwnPropertyDescriptor','getWorksheet','Sheet\x201','./ExcelStream','.xlsx','6366PaFUtS','ExcelStream','1056036RRODfs','length','417fEyPWZ','writeFile','log','parse','getAppDir','Scope','xlsx','Provide','ScopeEnum','ExcelService','exceljs','findRows','columns','handler','__metadata','550daFnKw','app','model','5261442phTwII','mkdirSync','key','format','function','98967CbZXiP','addWorksheet','col','constructor','eachCell','__decorate','7fdBtsL','Workbook','addRow','frozen','koa-send','onWrite','xls','(((.+)+)+)+$','cellCount','YYYY/MM/DD','search','__esModule','161135Zjrpex','toString','getColumn','object','defineProperty','push','metadata','set','replace','@midwayjs/core','28kkbYrf','18azdgwv','header'];a12_0x33dc=function(){return _0x5ccdd5;};return a12_0x33dc();}const fs=require('fs'),exceljs=require(a12_0xb18087(0x110)),koasend=require(a12_0xb18087(0x127)),core_1=require(a12_0xb18087(0x138)),ExcelStream_1=require(a12_0xb18087(0x100));let ExcelService=class ExcelService{async[a12_0xb18087(0x109)](_0x2f6df8,_0x300d4c,_0x313be8=[0x0]){const _0x164231=a12_0xb18087;var _0x33f4ad,_0x3b6cac;const _0x40c1d2=new exceljs[(_0x164231(0x124))](),_0x360794=[];let _0x4d3f04=_0x2f6df8['replace'](/(\\|\/)/g,'/')[_0x164231(0x137)](/\/{2,}/g,'/');!(_0x4d3f04===null||_0x4d3f04===void 0x0?void 0x0:_0x4d3f04[_0x164231(0xef)]('/'))&&(_0x4d3f04=this['app'][_0x164231(0x10a)]()+'/'+_0x4d3f04);try{await _0x40c1d2[_0x164231(0x10c)]['readFile'](_0x4d3f04);}catch(_0xb54a8e){return console[_0x164231(0x108)](_0x164231(0xf4)+_0x4d3f04+_0x164231(0xf6)),_0x360794;}for(const _0x25cce0 of _0x313be8){const _0x5a1480=lodash[_0x164231(0xf5)](_0x25cce0)?((_0x33f4ad=_0x40c1d2['worksheets'])===null||_0x33f4ad===void 0x0?void 0x0:_0x33f4ad[_0x25cce0])||undefined:_0x40c1d2[_0x164231(0xfe)](_0x25cce0);if(_0x5a1480){var _0x12aed7=0x1;const _0x5db280=_0x5a1480['getRow'](0x1),_0x5d653f=await new Promise(_0xf3f9b5=>{const _0x595b33=_0x164231,_0x3e8faa={};_0x5db280[_0x595b33(0x121)]((_0x24fc59,_0x1d701c)=>{const _0x53f017=_0x595b33;for(const _0x3fcbe3 of _0x300d4c){if(_0x24fc59[_0x53f017(0x13f)]==_0x3fcbe3[_0x53f017(0x13b)])_0x12aed7=0x2,_0x3e8faa[_0x3fcbe3[_0x53f017(0x11a)]]={'header':_0x24fc59[_0x53f017(0x11f)],'handler':(_0x3fcbe3===null||_0x3fcbe3===void 0x0?void 0x0:_0x3fcbe3[_0x53f017(0xf7)])||(_0x3fcbe3===null||_0x3fcbe3===void 0x0?void 0x0:_0x3fcbe3[_0x53f017(0x113)])};else{if(!_0x3e8faa[_0x3fcbe3['key']])try{const _0x5d3c8a=_0x5db280&&_0x5db280[_0x53f017(0xfc)](_0x3fcbe3[_0x53f017(0x13b)]);_0x5d3c8a&&(_0x3e8faa[_0x3fcbe3[_0x53f017(0x11a)]]={'header':_0x5d3c8a[_0x53f017(0x11f)],'handler':(_0x3fcbe3===null||_0x3fcbe3===void 0x0?void 0x0:_0x3fcbe3[_0x53f017(0xf7)])||(_0x3fcbe3===null||_0x3fcbe3===void 0x0?void 0x0:_0x3fcbe3[_0x53f017(0x113)])});}catch{}}}_0x5db280[_0x53f017(0x12b)]==_0x1d701c&&_0xf3f9b5(_0x3e8faa);});});_0x486688:for(const _0x334826 of _0x5a1480[_0x164231(0x111)](_0x12aed7,_0x5a1480['rowCount'])){if(typeof(_0x334826===null||_0x334826===void 0x0?void 0x0:_0x334826[_0x164231(0xfc)])!=_0x164231(0x11c))continue _0x486688;const _0x1e3685={};_0x4d917f:for(const _0x576ae1 in _0x5d653f){if(_0x5d653f[_0x576ae1][_0x164231(0x13b)]){const _0x1914aa=_0x334826[_0x164231(0xfc)](_0x5d653f[_0x576ae1]['header']);if(!_0x1914aa)continue _0x4d917f;try{_0x1914aa[_0x164231(0x130)]();}catch(_0x1c4410){_0x1914aa[_0x164231(0x130)]=()=>{const _0x350311=_0x164231;var _0x1fb627;return''+(((_0x1fb627=_0x1914aa===null||_0x1914aa===void 0x0?void 0x0:_0x1914aa[_0x350311(0x117)])===null||_0x1fb627===void 0x0?void 0x0:_0x1fb627[_0x350311(0x13f)])||'');};}typeof((_0x3b6cac=_0x5d653f[_0x576ae1])===null||_0x3b6cac===void 0x0?void 0x0:_0x3b6cac[_0x164231(0x113)])==_0x164231(0x11c)?_0x1e3685[_0x576ae1]=await _0x5d653f[_0x576ae1][_0x164231(0x113)](lodash[_0x164231(0x136)]({},_0x576ae1,(_0x1914aa===null||_0x1914aa===void 0x0?void 0x0:_0x1914aa[_0x164231(0x130)]())||''),_0x1914aa[_0x164231(0x117)]):_0x1e3685[_0x576ae1]=(_0x1914aa===null||_0x1914aa===void 0x0?void 0x0:_0x1914aa[_0x164231(0x130)]())||'';}}Object['keys'](_0x1e3685)[_0x164231(0x105)]>0x0&&Object['values'](_0x1e3685)[_0x164231(0xf2)](_0x1ce08c=>_0x1ce08c!='')[_0x164231(0x105)]>0x0&&_0x360794[_0x164231(0x134)](_0x1e3685);}}}return _0x360794;}async[a12_0xb18087(0xfb)](_0x42a0e0,_0x5b5723,_0x5156b6,_0x313c2a,_0x2d05db){const _0x34a37d=a12_0xb18087;var _0x295456,_0x27e45a,_0xf630f5;const _0x30159b=new exceljs[(_0x34a37d(0x124))](),_0x337109={},_0x6a47a3=[],_0x2a0ae8=_0x30159b[_0x34a37d(0x11e)](_0x34a37d(0xff),{'views':[{'state':_0x34a37d(0x126),'ySplit':0x1}]});for(const _0x164358 in _0x5b5723){_0x337109[_0x5b5723[_0x164358][_0x34a37d(0x11a)]]=_0x5b5723[_0x164358][_0x34a37d(0x13b)],_0x6a47a3[_0x34a37d(0x134)]({'header':_0x5b5723[_0x164358][_0x34a37d(0x13b)],'key':(_0x295456=_0x5b5723[_0x164358])===null||_0x295456===void 0x0?void 0x0:_0x295456['key'][_0x34a37d(0x137)](/\./g,'_')});}_0x2a0ae8[_0x34a37d(0x112)]=_0x6a47a3;for(const _0x4147b8 in _0x5156b6){const _0x40f40f=_0x5156b6[_0x4147b8],_0x4dc6c0=_0x2a0ae8[_0x34a37d(0x125)]({});for(let _0x8e7408 in _0x5b5723){const _0x311a93=_0x5b5723[_0x8e7408][_0x34a37d(0x11a)][_0x34a37d(0x137)](/\./g,'_'),_0x36f19e=_0x2a0ae8[_0x34a37d(0x131)](_0x311a93),_0x5bbd4e=_0x4dc6c0===null||_0x4dc6c0===void 0x0?void 0x0:_0x4dc6c0[_0x34a37d(0xfc)](_0x311a93);if(typeof((_0x27e45a=_0x5b5723[_0x8e7408])===null||_0x27e45a===void 0x0?void 0x0:_0x27e45a[_0x34a37d(0x128)])==_0x34a37d(0x11c))_0x5bbd4e[_0x34a37d(0x13f)]=await _0x5b5723[_0x8e7408][_0x34a37d(0x128)](_0x40f40f,{'row':_0x4dc6c0,'col':_0x36f19e,'cell':_0x5bbd4e,'sheet':_0x2a0ae8})||'';else typeof((_0xf630f5=_0x5b5723[_0x8e7408])===null||_0xf630f5===void 0x0?void 0x0:_0xf630f5[_0x34a37d(0x113)])==_0x34a37d(0x11c)?_0x5bbd4e['value']=await _0x5b5723[_0x8e7408]['handler'](_0x40f40f,{'row':_0x4dc6c0,'col':_0x36f19e,'cell':_0x5bbd4e,'sheet':_0x2a0ae8})||'':_0x5bbd4e[_0x34a37d(0x13f)]=lodash['get'](_0x40f40f,_0x5b5723[_0x8e7408][_0x34a37d(0x11a)],'');}}typeof _0x2d05db==_0x34a37d(0x11c)&&await _0x2d05db({'workbook':_0x30159b,'worksheet':_0x2a0ae8});let _0x507ea9='';const _0x2f04ad=_0x42a0e0+_0x34a37d(0x101);if(_0x313c2a&&_0x313c2a[_0x34a37d(0xef)]('/'))_0x507ea9=''+_0x313c2a;else _0x313c2a&&!_0x313c2a[_0x34a37d(0xef)]('/')&&!_0x313c2a['startsWith']('\x5c')?_0x507ea9=this[_0x34a37d(0x116)][_0x34a37d(0x10a)]()+'/'+_0x313c2a:_0x507ea9=this[_0x34a37d(0x116)]['getAppDir']()+'/public/xlsx/'+dayjs()[_0x34a37d(0x11b)](_0x34a37d(0x12c));return(_0x507ea9[_0x34a37d(0xf8)]('/')||_0x507ea9[_0x34a37d(0xf8)]('\x5c'))&&(_0x507ea9=_0x507ea9['substring'](0x0,_0x507ea9[_0x34a37d(0x105)]-0x1)),_0x507ea9=_0x507ea9['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x34a37d(0xf0)](_0x507ea9)&&fs[_0x34a37d(0x119)](_0x507ea9,{'recursive':!![]}),await _0x30159b[_0x34a37d(0x10c)][_0x34a37d(0x107)]((_0x507ea9+'/'+_0x2f04ad)[_0x34a37d(0x137)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x2f04ad,'filepath':(_0x507ea9['substring']((''+this[_0x34a37d(0x116)][_0x34a37d(0x10a)]())[_0x34a37d(0x105)])+'/'+_0x2f04ad)[_0x34a37d(0x137)](/(\\|\/)/g,'/')[_0x34a37d(0x137)](/\/{2,}/g,'/')};}async[a12_0xb18087(0x13c)](_0x1e19db,_0x36df32={'suffix':[a12_0xb18087(0x129),a12_0xb18087(0x10c)]}){const _0x164800=a12_0xb18087;return await ExcelStream_1[_0x164800(0x103)][_0x164800(0x13e)](_0x1e19db,_0x36df32);}async[a12_0xb18087(0xfa)](_0x509f2b,_0x1fa594){return await koasend(_0x509f2b,''+_0x1fa594);}};exports[a12_0xb18087(0x10f)]=ExcelService,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService['prototype'],a12_0xb18087(0x116),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1[a12_0xb18087(0x10d)])(),(0x0,core_1[a12_0xb18087(0x10b)])(core_1[a12_0xb18087(0x10e)]['Singleton'])],ExcelService);
|
|
1
|
+
const a13_0x369acb=a13_0x4e14;(function(_0x4c231f,_0x8e8843){const _0x3256fb=a13_0x4e14,_0x35d392=_0x4c231f();while(!![]){try{const _0x8dc0bc=-parseInt(_0x3256fb(0xc6))/0x1*(parseInt(_0x3256fb(0xaa))/0x2)+-parseInt(_0x3256fb(0xd6))/0x3*(-parseInt(_0x3256fb(0xb1))/0x4)+-parseInt(_0x3256fb(0xa1))/0x5*(-parseInt(_0x3256fb(0xa8))/0x6)+-parseInt(_0x3256fb(0xb9))/0x7*(parseInt(_0x3256fb(0xb4))/0x8)+parseInt(_0x3256fb(0xc9))/0x9*(parseInt(_0x3256fb(0xda))/0xa)+-parseInt(_0x3256fb(0xab))/0xb*(-parseInt(_0x3256fb(0xcd))/0xc)+-parseInt(_0x3256fb(0xc1))/0xd;if(_0x8dc0bc===_0x8e8843)break;else _0x35d392['push'](_0x35d392['shift']());}catch(_0x6f91f4){_0x35d392['push'](_0x35d392['shift']());}}}(a13_0x54ce,0x40a31));const a13_0x2116c3=(function(){let _0x5a07b7=!![];return function(_0x464309,_0x5e9477){const _0x4bc12f=_0x5a07b7?function(){if(_0x5e9477){const _0x318ed1=_0x5e9477['apply'](_0x464309,arguments);return _0x5e9477=null,_0x318ed1;}}:function(){};return _0x5a07b7=![],_0x4bc12f;};}()),a13_0x58a963=a13_0x2116c3(this,function(){const _0x27ea0a=a13_0x4e14;return a13_0x58a963['toString']()[_0x27ea0a(0xac)](_0x27ea0a(0x9d))['toString']()[_0x27ea0a(0xe4)](a13_0x58a963)[_0x27ea0a(0xac)](_0x27ea0a(0x9d));});function a13_0x54ce(){const _0xc65b56=['length','9988hYVdor','2309604ZzNtnX','search','stream','function','Singleton','__metadata','708460ankmpu','App','filter','80ZzPrqF','defineProperty','ExcelService','instance','koa-send','37667tRzDSN','.xlsx','Workbook','__esModule','format','exceljs','parse','xls','3094793VaVOzT','frozen','getAppDir','./ExcelStream','worksheets','91UbtNeN','getWorksheet','addWorksheet','387ycymPs','xlsx','object','getCell','12nYOCjq','replace','handler','values','endsWith','key','eachCell','Sheet\x201','col','6BVmtmr','substring','Scope','decorate','84170FlANdN','header','Api\x20Excel\x20Error:\x20','design:type','getOwnPropertyDescriptor','isNumber','log','metadata','app','value','constructor','writeFile','/public/xlsx/','getRow','existsSync','startsWith','onRead','(((.+)+)+)+$','prototype','toString','push','38615WXdYil','addRow','onWrite','\x20is\x20read\x20fail','ExcelStream','model','keys','66slsXrm'];a13_0x54ce=function(){return _0xc65b56;};return a13_0x54ce();}a13_0x58a963();function a13_0x4e14(_0x1cf55a,_0x4a745a){const _0x1b111e=a13_0x54ce();return a13_0x4e14=function(_0x58a963,_0x2116c3){_0x58a963=_0x58a963-0x9c;let _0x54cef6=_0x1b111e[_0x58a963];return _0x54cef6;},a13_0x4e14(_0x1cf55a,_0x4a745a);}'use strict';var __decorate=this&&this['__decorate']||function(_0x4cd110,_0x4c0af3,_0x233683,_0x4843d3){const _0x546ed9=a13_0x4e14;var _0x2d8c9b=arguments[_0x546ed9(0xa9)],_0xdea883=_0x2d8c9b<0x3?_0x4c0af3:_0x4843d3===null?_0x4843d3=Object[_0x546ed9(0xde)](_0x4c0af3,_0x233683):_0x4843d3,_0x595b9f;if(typeof Reflect==='object'&&typeof Reflect[_0x546ed9(0xd9)]==='function')_0xdea883=Reflect[_0x546ed9(0xd9)](_0x4cd110,_0x4c0af3,_0x233683,_0x4843d3);else{for(var _0x5c7e7d=_0x4cd110[_0x546ed9(0xa9)]-0x1;_0x5c7e7d>=0x0;_0x5c7e7d--)if(_0x595b9f=_0x4cd110[_0x5c7e7d])_0xdea883=(_0x2d8c9b<0x3?_0x595b9f(_0xdea883):_0x2d8c9b>0x3?_0x595b9f(_0x4c0af3,_0x233683,_0xdea883):_0x595b9f(_0x4c0af3,_0x233683))||_0xdea883;}return _0x2d8c9b>0x3&&_0xdea883&&Object[_0x546ed9(0xb5)](_0x4c0af3,_0x233683,_0xdea883),_0xdea883;},__metadata=this&&this[a13_0x369acb(0xb0)]||function(_0x173ded,_0x34c7b3){const _0xe322e2=a13_0x369acb;if(typeof Reflect===_0xe322e2(0xcb)&&typeof Reflect[_0xe322e2(0xe1)]===_0xe322e2(0xae))return Reflect[_0xe322e2(0xe1)](_0x173ded,_0x34c7b3);};Object[a13_0x369acb(0xb5)](exports,a13_0x369acb(0xbc),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a13_0x369acb(0xbe)),koasend=require(a13_0x369acb(0xb8)),core_1=require('@midwayjs/core'),ExcelStream_1=require(a13_0x369acb(0xc4));let ExcelService=class ExcelService{async[a13_0x369acb(0xbf)](_0x8db2e3,_0x33509e,_0x1ce56b=[0x0]){const _0x58b0cf=a13_0x369acb;var _0x490111,_0x44e7fe;const _0x2d0954=new exceljs[(_0x58b0cf(0xbb))](),_0x361ed4=[];let _0x26f3d8=_0x8db2e3[_0x58b0cf(0xce)](/(\\|\/)/g,'/')[_0x58b0cf(0xce)](/\/{2,}/g,'/');!(_0x26f3d8===null||_0x26f3d8===void 0x0?void 0x0:_0x26f3d8[_0x58b0cf(0xe9)]('/'))&&(_0x26f3d8=this['app'][_0x58b0cf(0xc3)]()+'/'+_0x26f3d8);try{await _0x2d0954[_0x58b0cf(0xca)]['readFile'](_0x26f3d8);}catch(_0x579431){return console[_0x58b0cf(0xe0)](_0x58b0cf(0xdc)+_0x26f3d8+_0x58b0cf(0xa4)),_0x361ed4;}for(const _0x1ad07b of _0x1ce56b){const _0x1db95f=lodash[_0x58b0cf(0xdf)](_0x1ad07b)?((_0x490111=_0x2d0954[_0x58b0cf(0xc5)])===null||_0x490111===void 0x0?void 0x0:_0x490111[_0x1ad07b])||undefined:_0x2d0954[_0x58b0cf(0xc7)](_0x1ad07b);if(_0x1db95f){var _0x2ba3b0=0x1;const _0x18f866=_0x1db95f[_0x58b0cf(0xe7)](0x1),_0x1d0bbe=await new Promise(_0x26624e=>{const _0x3ac726=_0x58b0cf,_0x122510={};_0x18f866[_0x3ac726(0xd3)]((_0x2472db,_0x27f250)=>{const _0x52afd2=_0x3ac726;for(const _0x5de40d of _0x33509e){if(_0x2472db[_0x52afd2(0xe3)]==_0x5de40d['header'])_0x2ba3b0=0x2,_0x122510[_0x5de40d[_0x52afd2(0xd2)]]={'header':_0x2472db[_0x52afd2(0xd5)],'handler':(_0x5de40d===null||_0x5de40d===void 0x0?void 0x0:_0x5de40d[_0x52afd2(0x9c)])||(_0x5de40d===null||_0x5de40d===void 0x0?void 0x0:_0x5de40d[_0x52afd2(0xcf)])};else{if(!_0x122510[_0x5de40d['key']])try{const _0x2c2c8f=_0x18f866&&_0x18f866[_0x52afd2(0xcc)](_0x5de40d[_0x52afd2(0xdb)]);_0x2c2c8f&&(_0x122510[_0x5de40d[_0x52afd2(0xd2)]]={'header':_0x2c2c8f['col'],'handler':(_0x5de40d===null||_0x5de40d===void 0x0?void 0x0:_0x5de40d[_0x52afd2(0x9c)])||(_0x5de40d===null||_0x5de40d===void 0x0?void 0x0:_0x5de40d[_0x52afd2(0xcf)])});}catch{}}}_0x18f866['cellCount']==_0x27f250&&_0x26624e(_0x122510);});});_0x2a4773:for(const _0x36bbf3 of _0x1db95f['findRows'](_0x2ba3b0,_0x1db95f['rowCount'])){if(typeof(_0x36bbf3===null||_0x36bbf3===void 0x0?void 0x0:_0x36bbf3[_0x58b0cf(0xcc)])!=_0x58b0cf(0xae))continue _0x2a4773;const _0x4e79da={};_0x42df6d:for(const _0x346d34 in _0x1d0bbe){if(_0x1d0bbe[_0x346d34][_0x58b0cf(0xdb)]){const _0x256ea9=_0x36bbf3[_0x58b0cf(0xcc)](_0x1d0bbe[_0x346d34]['header']);if(!_0x256ea9)continue _0x42df6d;try{_0x256ea9[_0x58b0cf(0x9f)]();}catch(_0x2f9101){_0x256ea9[_0x58b0cf(0x9f)]=()=>{const _0x165c6c=_0x58b0cf;var _0x151348;return''+(((_0x151348=_0x256ea9===null||_0x256ea9===void 0x0?void 0x0:_0x256ea9[_0x165c6c(0xa6)])===null||_0x151348===void 0x0?void 0x0:_0x151348['value'])||'');};}typeof((_0x44e7fe=_0x1d0bbe[_0x346d34])===null||_0x44e7fe===void 0x0?void 0x0:_0x44e7fe[_0x58b0cf(0xcf)])==_0x58b0cf(0xae)?_0x4e79da[_0x346d34]=await _0x1d0bbe[_0x346d34][_0x58b0cf(0xcf)](lodash['set']({},_0x346d34,(_0x256ea9===null||_0x256ea9===void 0x0?void 0x0:_0x256ea9[_0x58b0cf(0x9f)]())||''),_0x256ea9[_0x58b0cf(0xa6)]):_0x4e79da[_0x346d34]=(_0x256ea9===null||_0x256ea9===void 0x0?void 0x0:_0x256ea9[_0x58b0cf(0x9f)]())||'';}}Object[_0x58b0cf(0xa7)](_0x4e79da)[_0x58b0cf(0xa9)]>0x0&&Object[_0x58b0cf(0xd0)](_0x4e79da)[_0x58b0cf(0xb3)](_0x55a31d=>_0x55a31d!='')['length']>0x0&&_0x361ed4['push'](_0x4e79da);}}}return _0x361ed4;}async['export'](_0x2ff8e3,_0x2e1867,_0x363623,_0x54a897,_0x2d396c){const _0xf59552=a13_0x369acb;var _0x42b844,_0x53ad99,_0x3cfb01;const _0x16deb5=new exceljs[(_0xf59552(0xbb))](),_0x5bbc0b={},_0x236c62=[],_0x175724=_0x16deb5[_0xf59552(0xc8)](_0xf59552(0xd4),{'views':[{'state':_0xf59552(0xc2),'ySplit':0x1}]});for(const _0x38408c in _0x2e1867){_0x5bbc0b[_0x2e1867[_0x38408c][_0xf59552(0xd2)]]=_0x2e1867[_0x38408c]['header'],_0x236c62[_0xf59552(0xa0)]({'header':_0x2e1867[_0x38408c][_0xf59552(0xdb)],'key':(_0x42b844=_0x2e1867[_0x38408c])===null||_0x42b844===void 0x0?void 0x0:_0x42b844[_0xf59552(0xd2)]['replace'](/\./g,'_')});}_0x175724['columns']=_0x236c62;for(const _0x3787ff in _0x363623){const _0xefb058=_0x363623[_0x3787ff],_0x127db2=_0x175724[_0xf59552(0xa2)]({});for(let _0x2c5783 in _0x2e1867){const _0x140961=_0x2e1867[_0x2c5783]['key'][_0xf59552(0xce)](/\./g,'_'),_0x53fa47=_0x175724['getColumn'](_0x140961),_0x1379c7=_0x127db2===null||_0x127db2===void 0x0?void 0x0:_0x127db2[_0xf59552(0xcc)](_0x140961);if(typeof((_0x53ad99=_0x2e1867[_0x2c5783])===null||_0x53ad99===void 0x0?void 0x0:_0x53ad99[_0xf59552(0xa3)])==_0xf59552(0xae))_0x1379c7[_0xf59552(0xe3)]=await _0x2e1867[_0x2c5783][_0xf59552(0xa3)](_0xefb058,{'row':_0x127db2,'col':_0x53fa47,'cell':_0x1379c7,'sheet':_0x175724})||'';else typeof((_0x3cfb01=_0x2e1867[_0x2c5783])===null||_0x3cfb01===void 0x0?void 0x0:_0x3cfb01[_0xf59552(0xcf)])=='function'?_0x1379c7[_0xf59552(0xe3)]=await _0x2e1867[_0x2c5783][_0xf59552(0xcf)](_0xefb058,{'row':_0x127db2,'col':_0x53fa47,'cell':_0x1379c7,'sheet':_0x175724})||'':_0x1379c7['value']=lodash['get'](_0xefb058,_0x2e1867[_0x2c5783][_0xf59552(0xd2)],'');}}typeof _0x2d396c==_0xf59552(0xae)&&await _0x2d396c({'workbook':_0x16deb5,'worksheet':_0x175724});let _0x558045='';const _0xb1316e=_0x2ff8e3+_0xf59552(0xba);if(_0x54a897&&_0x54a897['startsWith']('/'))_0x558045=''+_0x54a897;else _0x54a897&&!_0x54a897[_0xf59552(0xe9)]('/')&&!_0x54a897[_0xf59552(0xe9)]('\x5c')?_0x558045=this[_0xf59552(0xe2)]['getAppDir']()+'/'+_0x54a897:_0x558045=this[_0xf59552(0xe2)]['getAppDir']()+_0xf59552(0xe6)+dayjs()[_0xf59552(0xbd)]('YYYY/MM/DD');return(_0x558045[_0xf59552(0xd1)]('/')||_0x558045['endsWith']('\x5c'))&&(_0x558045=_0x558045[_0xf59552(0xd7)](0x0,_0x558045[_0xf59552(0xa9)]-0x1)),_0x558045=_0x558045[_0xf59552(0xce)](/(\\|\/)/g,'/')[_0xf59552(0xce)](/\/{2,}/g,'/'),!fs[_0xf59552(0xe8)](_0x558045)&&fs['mkdirSync'](_0x558045,{'recursive':!![]}),await _0x16deb5['xlsx'][_0xf59552(0xe5)]((_0x558045+'/'+_0xb1316e)['replace'](/(\\|\/)/g,'/')[_0xf59552(0xce)](/\/{2,}/g,'/')),{'filename':_0xb1316e,'filepath':(_0x558045[_0xf59552(0xd7)]((''+this[_0xf59552(0xe2)]['getAppDir']())[_0xf59552(0xa9)])+'/'+_0xb1316e)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a13_0x369acb(0xad)](_0x6cd5de,_0x15f765={'suffix':[a13_0x369acb(0xc0),a13_0x369acb(0xca)]}){const _0x348ce3=a13_0x369acb;return await ExcelStream_1[_0x348ce3(0xa5)][_0x348ce3(0xb7)](_0x6cd5de,_0x15f765);}async['download'](_0x510846,_0x3cef6b){return await koasend(_0x510846,''+_0x3cef6b);}};exports[a13_0x369acb(0xb6)]=ExcelService,__decorate([(0x0,core_1[a13_0x369acb(0xb2)])(),__metadata(a13_0x369acb(0xdd),Object)],ExcelService[a13_0x369acb(0x9e)],a13_0x369acb(0xe2),void 0x0),exports[a13_0x369acb(0xb6)]=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a13_0x369acb(0xd8)])(core_1['ScopeEnum'][a13_0x369acb(0xaf)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x588878=a14_0x59df;(function(_0x2dafcb,_0x3f13bc){const _0x55dc3c=a14_0x59df,_0x6dfb5e=_0x2dafcb();while(!![]){try{const _0x2cfa60=-parseInt(_0x55dc3c(0x127))/0x1+parseInt(_0x55dc3c(0x10b))/0x2+parseInt(_0x55dc3c(0x120))/0x3+-parseInt(_0x55dc3c(0x110))/0x4+parseInt(_0x55dc3c(0xf6))/0x5+-parseInt(_0x55dc3c(0x101))/0x6*(-parseInt(_0x55dc3c(0x123))/0x7)+-parseInt(_0x55dc3c(0xf2))/0x8*(parseInt(_0x55dc3c(0x105))/0x9);if(_0x2cfa60===_0x3f13bc)break;else _0x6dfb5e['push'](_0x6dfb5e['shift']());}catch(_0xaf7cfe){_0x6dfb5e['push'](_0x6dfb5e['shift']());}}}(a14_0x172a,0x2e310));const a14_0x2ba6f2=(function(){let _0x106c7b=!![];return function(_0xf7e411,_0x4a1e9a){const _0x1a1854=_0x106c7b?function(){if(_0x4a1e9a){const _0x4c555=_0x4a1e9a['apply'](_0xf7e411,arguments);return _0x4a1e9a=null,_0x4c555;}}:function(){};return _0x106c7b=![],_0x1a1854;};}()),a14_0x1195d1=a14_0x2ba6f2(this,function(){const _0x210dba=a14_0x59df;return a14_0x1195d1['toString']()[_0x210dba(0x12a)](_0x210dba(0x10f))[_0x210dba(0x117)]()[_0x210dba(0x10e)](a14_0x1195d1)[_0x210dba(0x12a)](_0x210dba(0x10f));});a14_0x1195d1();function a14_0x172a(){const _0x2cb054=['ignore','9zNaqGS','WorkbookReader','exceljs','push','getCell','reader','698734ovQCae','existsSync','has','constructor','(((.+)+)+)+$','1298600CzLuKj','substring','get','dirname','mkdirSync','isArray','set','toString','xlsx','defineProperty','lastIndexOf','model','getWriterSheet','getColumn','header','handler','751386GhSCHS','col','finished','161HxWvrG','frozen','writer','length','305592bCLHvt','function','error','search','key','indexOf','WorkbookWriter','replace','columns','getRow','worksheets','addWorksheet','isNumber','1057864krfCXY','path','suffix','__esModule','283895GwjjRE','eachCell','startsWith','xls','value','ExcelStream','sheets','row','commit','cellCount','rootpath','76974tVimUt','stream','WorksheetWriterMap'];a14_0x172a=function(){return _0x2cb054;};return a14_0x172a();}'use strict';function a14_0x59df(_0x11f46c,_0x5e6e9d){const _0x58a379=a14_0x172a();return a14_0x59df=function(_0x1195d1,_0x2ba6f2){_0x1195d1=_0x1195d1-0xea;let _0x172ab8=_0x58a379[_0x1195d1];return _0x172ab8;},a14_0x59df(_0x11f46c,_0x5e6e9d);}Object[a14_0x588878(0x119)](exports,a14_0x588878(0xf5),{'value':!![]}),exports[a14_0x588878(0xfb)]=void 0x0;const fs=require('fs'),path=require(a14_0x588878(0xf3)),exceljs=require(a14_0x588878(0x107));class ExcelStream{constructor(_0x26b7e5,_0x4ad8f9){const _0x31d9c9=a14_0x588878;this['WorksheetWriterMap']=new Map(),(this[_0x31d9c9(0xeb)]=_0x26b7e5,this['WorkbookReader']=_0x4ad8f9);}static['instance'](_0x2ec23a,_0xadd2b1={'suffix':['xls','xlsx']}){return new Promise(async(_0x4584e0,_0x7185b4)=>{const _0x2b70dd=a14_0x59df,_0x27136e=_0x2ec23a['substring']((_0x2ec23a[_0x2b70dd(0xea)]('/')>-0x1?_0x2ec23a[_0x2b70dd(0x11a)]('/'):_0x2ec23a[_0x2b70dd(0x11a)]('\x5c'))+0x1),_0x19c3c7=path[_0x2b70dd(0x113)](((_0xadd2b1===null||_0xadd2b1===void 0x0?void 0x0:_0xadd2b1[_0x2b70dd(0x100)])&&!_0x2ec23a[_0x2b70dd(0xf8)](_0xadd2b1[_0x2b70dd(0x100)])?_0xadd2b1[_0x2b70dd(0x100)]+'/'+_0x2ec23a:'/'+_0x2ec23a)['replace'](/(\\|\/)/g,'/')[_0x2b70dd(0xec)](/\/{2,}/g,'/'));if(!((_0xadd2b1===null||_0xadd2b1===void 0x0?void 0x0:_0xadd2b1['suffix'])?_0xadd2b1[_0x2b70dd(0xf4)]:[_0x2b70dd(0xf9),_0x2b70dd(0x118)])['includes'](_0x27136e[_0x2b70dd(0x111)](_0x27136e['lastIndexOf']('.')+0x1)))return _0x7185b4('文件名格式错误');if(!fs['existsSync']((_0x19c3c7+'/'+_0x27136e)[_0x2b70dd(0xec)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'))){!fs[_0x2b70dd(0x10c)](_0x19c3c7)&&fs[_0x2b70dd(0x114)](_0x19c3c7,{'recursive':!![]});const _0x534117=new exceljs['Workbook']();await _0x534117[_0x2b70dd(0x118)]['writeFile']((_0x19c3c7+'/'+_0x27136e)['replace'](/(\\|\/)/g,'/')[_0x2b70dd(0xec)](/\/{2,}/g,'/'));}const _0x1cb3e5=new exceljs[(_0x2b70dd(0x102))][(_0x2b70dd(0x118))]['WorkbookWriter']({'filename':(_0x19c3c7+'/'+_0x27136e)[_0x2b70dd(0xec)](/(\\|\/)/g,'/')[_0x2b70dd(0xec)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x3a6d3a=new exceljs[(_0x2b70dd(0x102))][(_0x2b70dd(0x118))][(_0x2b70dd(0x106))]((_0x19c3c7+'/'+_0x27136e)[_0x2b70dd(0xec)](/(\\|\/)/g,'/')[_0x2b70dd(0xec)](/\/{2,}/g,'/'),{'worksheets':'emit','sharedStrings':_0x2b70dd(0x104),'hyperlinks':_0x2b70dd(0x104),'styles':_0x2b70dd(0x104)});return _0x4584e0(new ExcelStream(_0x1cb3e5,_0x3a6d3a));});}async[a14_0x588878(0x125)](_0x1c0b08,_0x5ea844,_0xe2f33c=0x0){const _0x21644a=a14_0x588878;var _0x5e383f,_0x57e120;const _0x19b4c6=await this[_0x21644a(0x11c)](_0xe2f33c,!![]),_0x222ceb={},_0x3c96a3=[];for(const _0xe862cb in _0x1c0b08){_0x222ceb[_0x1c0b08[_0xe862cb][_0x21644a(0x12b)]]=_0x1c0b08[_0xe862cb]['header'],_0x3c96a3[_0x21644a(0x108)]({'header':_0x1c0b08[_0xe862cb][_0x21644a(0x11e)],'key':(_0x5e383f=_0x1c0b08[_0xe862cb])===null||_0x5e383f===void 0x0?void 0x0:_0x5e383f[_0x21644a(0x12b)][_0x21644a(0xec)](/\./g,'_')});}(_0x19b4c6===null||_0x19b4c6===void 0x0?void 0x0:_0x19b4c6[_0x21644a(0xed)])!=_0x3c96a3&&(_0x19b4c6[_0x21644a(0xed)]=_0x3c96a3);for(const _0x2f23c0 in _0x5ea844){const _0x39c5bf=_0x5ea844[_0x2f23c0],_0x1a0d5d=_0x19b4c6['addRow']({});for(let _0x11fef7 in _0x1c0b08){const _0x10db7f=_0x1c0b08[_0x11fef7][_0x21644a(0x12b)][_0x21644a(0xec)](/\./g,'_'),_0x105312=_0x19b4c6[_0x21644a(0x11d)](_0x10db7f),_0x34d493=_0x1a0d5d===null||_0x1a0d5d===void 0x0?void 0x0:_0x1a0d5d[_0x21644a(0x109)](_0x10db7f);typeof((_0x57e120=_0x1c0b08[_0x11fef7])===null||_0x57e120===void 0x0?void 0x0:_0x57e120[_0x21644a(0x11f)])==_0x21644a(0x128)?_0x34d493[_0x21644a(0xfa)]=await _0x1c0b08[_0x11fef7][_0x21644a(0x11f)](_0x39c5bf,{'row':_0x1a0d5d,'col':_0x105312,'cell':_0x34d493,'sheet':_0x19b4c6})||'':_0x34d493[_0x21644a(0xfa)]=lodash[_0x21644a(0x112)](_0x39c5bf,_0x1c0b08[_0x11fef7]['key'],'');}}return this;}async[a14_0x588878(0x10a)](_0x5b63ac,_0x4aa0ed,_0x149a5e={'sheets':0x0}){const _0x5455f1=a14_0x588878;var _0x5728f4;const _0x50b0e0=(_0x149a5e===null||_0x149a5e===void 0x0?void 0x0:_0x149a5e[_0x5455f1(0xfc)])?Array[_0x5455f1(0x115)](_0x149a5e['sheets'])?_0x149a5e[_0x5455f1(0xfc)]:[_0x149a5e['sheets']]:[0x0],_0x39394d=_0x1e355c=>new Promise(async(_0x2b714a,_0x7195a1)=>{const _0x416bbc=_0x5455f1,_0x21b99a=_0x1e355c[_0x416bbc(0xee)](0x1),_0x27bf86=await new Promise(_0x493c85=>{const _0x546c16=_0x416bbc,_0x46d08b={};_0x21b99a[_0x546c16(0xf7)]((_0x282e5f,_0xd0a27f)=>{const _0x3b9f54=_0x546c16;for(const _0x5587fb of _0x5b63ac){if(_0x282e5f[_0x3b9f54(0xfa)]==_0x5587fb[_0x3b9f54(0x11e)])_0x46d08b[_0x5587fb[_0x3b9f54(0x12b)]]={'header':_0x282e5f['col'],'handler':_0x5587fb[_0x3b9f54(0x11f)]};else{if(!_0x46d08b[_0x5587fb['key']])try{const _0x4a1214=_0x21b99a&&_0x21b99a[_0x3b9f54(0x109)](_0x5587fb[_0x3b9f54(0x11e)]);_0x4a1214&&(_0x46d08b[_0x5587fb[_0x3b9f54(0x12b)]]={'header':_0x4a1214[_0x3b9f54(0x121)],'handler':_0x5587fb[_0x3b9f54(0x11f)]});}catch{}}}_0x21b99a[_0x3b9f54(0xff)]==_0xd0a27f&&_0x493c85(_0x46d08b);});});_0x1e355c['on'](_0x416bbc(0x122),_0x3ba769=>_0x2b714a(_0x1e355c)),_0x1e355c['on'](_0x416bbc(0x129),_0x56095b=>_0x7195a1(_0x56095b)),_0x1e355c['on'](_0x416bbc(0xfd),async _0x2433f5=>{const _0xd9c76=_0x416bbc;var _0xfbfb97;if(typeof(_0x2433f5===null||_0x2433f5===void 0x0?void 0x0:_0x2433f5[_0xd9c76(0x109)])==_0xd9c76(0x128)){const _0x21368c={};_0x317fa8:for(const _0x13beb8 in _0x27bf86){if(_0x27bf86[_0x13beb8]['header']){const _0x360c2d=_0x2433f5[_0xd9c76(0x109)](_0x27bf86[_0x13beb8]['header']);if(!_0x360c2d)continue _0x317fa8;try{_0x360c2d[_0xd9c76(0x117)]();}catch(_0x4049c6){_0x360c2d[_0xd9c76(0x117)]=()=>{const _0x2fb7c2=_0xd9c76;var _0x5b36d4;return''+(((_0x5b36d4=_0x360c2d===null||_0x360c2d===void 0x0?void 0x0:_0x360c2d[_0x2fb7c2(0x11b)])===null||_0x5b36d4===void 0x0?void 0x0:_0x5b36d4[_0x2fb7c2(0xfa)])||'');};}typeof((_0xfbfb97=_0x27bf86[_0x13beb8])===null||_0xfbfb97===void 0x0?void 0x0:_0xfbfb97['handler'])==_0xd9c76(0x128)?_0x21368c[_0x13beb8]=await _0x27bf86[_0x13beb8][_0xd9c76(0x11f)](lodash[_0xd9c76(0x116)]({},_0x13beb8,(_0x360c2d===null||_0x360c2d===void 0x0?void 0x0:_0x360c2d[_0xd9c76(0x117)]())||''),_0x360c2d[_0xd9c76(0x11b)]):_0x21368c[_0x13beb8]=(_0x360c2d===null||_0x360c2d===void 0x0?void 0x0:_0x360c2d[_0xd9c76(0x117)]())||'';}}Object['keys'](_0x21368c)[_0xd9c76(0x126)]>0x0&&Object['values'](_0x21368c)['filter'](_0xa69079=>_0xa69079!='')[_0xd9c76(0x126)]>0x0&&await _0x4aa0ed(_0x21368c,{'sheet':_0x1e355c,'row':_0x2433f5});}}),await _0x1e355c['read']();});for(const _0x2727f of _0x50b0e0){const _0x37bfa3=lodash['isNumber'](_0x2727f)?((_0x5728f4=this['WorkbookReader'][_0x5455f1(0xef)])===null||_0x5728f4===void 0x0?void 0x0:_0x5728f4[_0x2727f])||undefined:this[_0x5455f1(0x106)]['getWorksheet'](_0x2727f);_0x37bfa3&&await _0x39394d(_0x37bfa3);}}async['save'](){const _0x1557b6=a14_0x588878;return await this[_0x1557b6(0xeb)][_0x1557b6(0xfe)](),this;}async[a14_0x588878(0x11c)](_0xb7231a,_0x251bb6=![]){const _0x8d656a=a14_0x588878;let _0x484fc7=this['WorkbookWriter']['getWorksheet'](_0xb7231a);return!_0x484fc7&&this['WorksheetWriterMap'][_0x8d656a(0x10d)](_0xb7231a)&&(_0x484fc7=this[_0x8d656a(0x103)][_0x8d656a(0x112)](_0xb7231a)),!_0x484fc7&&_0x251bb6&&(_0x484fc7=this[_0x8d656a(0xeb)][_0x8d656a(0xf0)](lodash[_0x8d656a(0xf1)](_0xb7231a)?undefined:''+_0xb7231a,{'views':[{'state':_0x8d656a(0x124),'ySplit':0x0}]}),this[_0x8d656a(0x103)]['set'](_0xb7231a,_0x484fc7)),_0x484fc7;}}exports['ExcelStream']=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x5d9b(){var _0x27cb53=['anncic-api:action','2224786jzLaPh','__esModule','toString','defineProperty','21KAFHEO','25430488ravOsH','27337rWLNpp','APPSCONFIG_KEY','constructor','1502800FjvORz','467808vZgNXT','(((.+)+)+)+$','2512878cdSxPH','AppsConfigTmp','search','ACTION_ROUTE_KEY','anncic-api:action:route','439422swVeKD','anncic-api:apps:config','ACTION_KEY'];a15_0x5d9b=function(){return _0x27cb53;};return a15_0x5d9b();}var a15_0x120dc9=a15_0x373a;function a15_0x373a(_0x209a0a,_0x299c3e){var _0x336f06=a15_0x5d9b();return a15_0x373a=function(_0x10d369,_0x37eb2e){_0x10d369=_0x10d369-0x1e6;var _0x5d9b86=_0x336f06[_0x10d369];return _0x5d9b86;},a15_0x373a(_0x209a0a,_0x299c3e);}(function(_0xfa3895,_0x40b68d){var _0x6b0c7b=a15_0x373a,_0x74aa1=_0xfa3895();while(!![]){try{var _0x193f02=-parseInt(_0x6b0c7b(0x1f7))/0x1+-parseInt(_0x6b0c7b(0x1f1))/0x2+-parseInt(_0x6b0c7b(0x1e8))/0x3+-parseInt(_0x6b0c7b(0x1e6))/0x4+-parseInt(_0x6b0c7b(0x1fa))/0x5+parseInt(_0x6b0c7b(0x1ed))/0x6*(-parseInt(_0x6b0c7b(0x1f5))/0x7)+parseInt(_0x6b0c7b(0x1f6))/0x8;if(_0x193f02===_0x40b68d)break;else _0x74aa1['push'](_0x74aa1['shift']());}catch(_0x28505f){_0x74aa1['push'](_0x74aa1['shift']());}}}(a15_0x5d9b,0x89c08));var a15_0x37eb2e=(function(){var _0xe8a117=!![];return function(_0x1bab24,_0x10eaa5){var _0x1b0061=_0xe8a117?function(){if(_0x10eaa5){var _0x138357=_0x10eaa5['apply'](_0x1bab24,arguments);return _0x10eaa5=null,_0x138357;}}:function(){};return _0xe8a117=![],_0x1b0061;};}()),a15_0x10d369=a15_0x37eb2e(this,function(){var _0x2f4c96=a15_0x373a;return a15_0x10d369[_0x2f4c96(0x1f3)]()['search'](_0x2f4c96(0x1e7))[_0x2f4c96(0x1f3)]()[_0x2f4c96(0x1f9)](a15_0x10d369)[_0x2f4c96(0x1ea)](_0x2f4c96(0x1e7));});a15_0x10d369();'use strict';Object[a15_0x120dc9(0x1f4)](exports,a15_0x120dc9(0x1f2),{'value':!![]}),exports[a15_0x120dc9(0x1e9)]=exports[a15_0x120dc9(0x1f8)]=exports[a15_0x120dc9(0x1eb)]=exports['ACTION_KEY']=void 0x0,exports[a15_0x120dc9(0x1ef)]=a15_0x120dc9(0x1f0),exports[a15_0x120dc9(0x1eb)]=a15_0x120dc9(0x1ec),exports[a15_0x120dc9(0x1f8)]=a15_0x120dc9(0x1ee);class AppsConfigTmp{}exports[a15_0x120dc9(0x1e9)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x5da3b5=a16_0x4249;function a16_0x4249(_0x2a4fc5,_0x5acccb){var _0x756022=a16_0x358c();return a16_0x4249=function(_0x523108,_0x2b700a){_0x523108=_0x523108-0x10b;var _0x358c98=_0x756022[_0x523108];return _0x358c98;},a16_0x4249(_0x2a4fc5,_0x5acccb);}(function(_0x1a3b32,_0x2bdda3){var _0x1060a6=a16_0x4249,_0x2d5b61=_0x1a3b32();while(!![]){try{var _0x19e0f0=parseInt(_0x1060a6(0x10f))/0x1*(-parseInt(_0x1060a6(0x11e))/0x2)+parseInt(_0x1060a6(0x118))/0x3+parseInt(_0x1060a6(0x12a))/0x4+-parseInt(_0x1060a6(0x12b))/0x5+-parseInt(_0x1060a6(0x111))/0x6+-parseInt(_0x1060a6(0x11d))/0x7+parseInt(_0x1060a6(0x11a))/0x8*(parseInt(_0x1060a6(0x129))/0x9);if(_0x19e0f0===_0x2bdda3)break;else _0x2d5b61['push'](_0x2d5b61['shift']());}catch(_0x24eb0d){_0x2d5b61['push'](_0x2d5b61['shift']());}}}(a16_0x358c,0x381b3));var a16_0x2b700a=(function(){var _0x294661=!![];return function(_0x10e65d,_0xf83c3f){var _0x5901ff=_0x294661?function(){var _0x18346b=a16_0x4249;if(_0xf83c3f){var _0x5c52eb=_0xf83c3f[_0x18346b(0x110)](_0x10e65d,arguments);return _0xf83c3f=null,_0x5c52eb;}}:function(){};return _0x294661=![],_0x5901ff;};}()),a16_0x523108=a16_0x2b700a(this,function(){var _0x5ac303=a16_0x4249;return a16_0x523108['toString']()[_0x5ac303(0x119)](_0x5ac303(0x114))[_0x5ac303(0x10b)]()['constructor'](a16_0x523108)[_0x5ac303(0x119)](_0x5ac303(0x114));});a16_0x523108();'use strict';var __decorate=this&&this[a16_0x5da3b5(0x11c)]||function(_0x38817a,_0x2327ec,_0x15b27c,_0x3f33e4){var _0x863d94=a16_0x5da3b5,_0x512702=arguments[_0x863d94(0x126)],_0x16840f=_0x512702<0x3?_0x2327ec:_0x3f33e4===null?_0x3f33e4=Object[_0x863d94(0x116)](_0x2327ec,_0x15b27c):_0x3f33e4,_0x32e19a;if(typeof Reflect==='object'&&typeof Reflect[_0x863d94(0x10e)]===_0x863d94(0x120))_0x16840f=Reflect[_0x863d94(0x10e)](_0x38817a,_0x2327ec,_0x15b27c,_0x3f33e4);else{for(var _0x5993d9=_0x38817a['length']-0x1;_0x5993d9>=0x0;_0x5993d9--)if(_0x32e19a=_0x38817a[_0x5993d9])_0x16840f=(_0x512702<0x3?_0x32e19a(_0x16840f):_0x512702>0x3?_0x32e19a(_0x2327ec,_0x15b27c,_0x16840f):_0x32e19a(_0x2327ec,_0x15b27c))||_0x16840f;}return _0x512702>0x3&&_0x16840f&&Object[_0x863d94(0x122)](_0x2327ec,_0x15b27c,_0x16840f),_0x16840f;},__metadata=this&&this[a16_0x5da3b5(0x124)]||function(_0x2d32c3,_0x46f757){var _0x2f1006=a16_0x5da3b5;if(typeof Reflect==='object'&&typeof Reflect[_0x2f1006(0x113)]==='function')return Reflect[_0x2f1006(0x113)](_0x2d32c3,_0x46f757);};Object[a16_0x5da3b5(0x122)](exports,a16_0x5da3b5(0x130),{'value':!![]}),exports[a16_0x5da3b5(0x115)]=void 0x0;function a16_0x358c(){var _0x5a6ef0=['8oGzpGm','min','__decorate','2542463llOiYl','324uwJuzX','number','function','prototype','defineProperty','design:type','__metadata','第一页为1,第二页为2','length','valid','_page','14215878gXPMkC','846348cbmZAx','1816850YQykmG','排序方式','Rule','@anncic-api/validator','_order','__esModule','toString','_isreverse','RuleType','decorate','2818MIHOIB','apply','2535270WFexNc','_size','metadata','(((.+)+)+)+$','PageDTO','getOwnPropertyDescriptor','trim','132966aRlaYo','search'];a16_0x358c=function(){return _0x5a6ef0;};return a16_0x358c();}const validator_1=require(a16_0x5da3b5(0x12e));class PageDTO{}exports[a16_0x5da3b5(0x115)]=PageDTO,__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a16_0x5da3b5(0x10d)][a16_0x5da3b5(0x11f)]()['integer']()['min'](0x1),a16_0x5da3b5(0x125)),__metadata(a16_0x5da3b5(0x123),Number)],PageDTO[a16_0x5da3b5(0x121)],a16_0x5da3b5(0x128),void 0x0),__decorate([(0x0,validator_1[a16_0x5da3b5(0x12d)])('分页数量',validator_1[a16_0x5da3b5(0x10d)][a16_0x5da3b5(0x11f)]()['integer']()[a16_0x5da3b5(0x11b)](0x1)),__metadata(a16_0x5da3b5(0x123),Number)],PageDTO['prototype'],a16_0x5da3b5(0x112),void 0x0),__decorate([(0x0,validator_1['Rule'])(a16_0x5da3b5(0x12c),validator_1[a16_0x5da3b5(0x10d)]['string']()[a16_0x5da3b5(0x117)]()),__metadata(a16_0x5da3b5(0x123),String)],PageDTO[a16_0x5da3b5(0x121)],a16_0x5da3b5(0x12f),void 0x0),__decorate([(0x0,validator_1['Rule'])('是否倒序',validator_1['RuleType'][a16_0x5da3b5(0x11f)]()['integer']()[a16_0x5da3b5(0x127)](0x0,0x1),'1:是;0:否'),__metadata(a16_0x5da3b5(0x123),Number)],PageDTO[a16_0x5da3b5(0x121)],a16_0x5da3b5(0x10c),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x11a6c8=a17_0x30e3;(function(_0x5992a0,_0x1eb52f){var _0x15e946=a17_0x30e3,_0x216106=_0x5992a0();while(!![]){try{var _0x3defdd=-parseInt(_0x15e946(0x1ad))/0x1+-parseInt(_0x15e946(0x1a6))/0x2*(parseInt(_0x15e946(0x1a7))/0x3)+-parseInt(_0x15e946(0x1a9))/0x4+-parseInt(_0x15e946(0x1a4))/0x5*(-parseInt(_0x15e946(0x19e))/0x6)+-parseInt(_0x15e946(0x1a5))/0x7*(-parseInt(_0x15e946(0x1aa))/0x8)+-parseInt(_0x15e946(0x1ac))/0x9*(-parseInt(_0x15e946(0x19c))/0xa)+parseInt(_0x15e946(0x19d))/0xb;if(_0x3defdd===_0x1eb52f)break;else _0x216106['push'](_0x216106['shift']());}catch(_0x15a2d4){_0x216106['push'](_0x216106['shift']());}}}(a17_0x249a,0x7b070));var a17_0x440805=(function(){var _0x1ff43e=!![];return function(_0x466c87,_0x443ae4){var _0x5a0277=_0x1ff43e?function(){var _0x287a45=a17_0x30e3;if(_0x443ae4){var _0x42def3=_0x443ae4[_0x287a45(0x1a2)](_0x466c87,arguments);return _0x443ae4=null,_0x42def3;}}:function(){};return _0x1ff43e=![],_0x5a0277;};}()),a17_0x4c56de=a17_0x440805(this,function(){var _0x3adfbc=a17_0x30e3;return a17_0x4c56de[_0x3adfbc(0x19f)]()[_0x3adfbc(0x1af)]('(((.+)+)+)+$')[_0x3adfbc(0x19f)]()[_0x3adfbc(0x1a3)](a17_0x4c56de)[_0x3adfbc(0x1af)](_0x3adfbc(0x1a1));});a17_0x4c56de();'use strict';Object[a17_0x11a6c8(0x1ae)](exports,'__esModule',{'value':!![]}),exports[a17_0x11a6c8(0x1ab)]=exports[a17_0x11a6c8(0x1a8)]=void 0x0,exports[a17_0x11a6c8(0x1a8)]=a17_0x11a6c8(0x1a0);class InterceptTargetTmp{}function a17_0x30e3(_0x3f72bd,_0x87e9a6){var _0x166ff6=a17_0x249a();return a17_0x30e3=function(_0x4c56de,_0x440805){_0x4c56de=_0x4c56de-0x19c;var _0x249a96=_0x166ff6[_0x4c56de];return _0x249a96;},a17_0x30e3(_0x3f72bd,_0x87e9a6);}function a17_0x249a(){var _0x32e001=['InterceptTargetTmp','9qeAdGr','7079WrPEPh','defineProperty','search','495270cvggtR','8662896XDzlxW','37578numPlt','toString','anncic-api:intercept','(((.+)+)+)+$','apply','constructor','50TDZFVM','4795mjQWKx','2oZtRye','1926642CrrOuj','INTERCEPT_KEY','2408180LXSWLe','9992gOZMXi'];a17_0x249a=function(){return _0x32e001;};return a17_0x249a();}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ declare module '@midwayjs/koa/dist/interface' {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
|
|
36
38
|
declare module 'http' {
|
|
37
39
|
interface IncomingHttpHeaders {
|
|
38
40
|
token: string;
|
|
@@ -40,5 +42,6 @@ declare module 'http' {
|
|
|
40
42
|
checkcode: string;
|
|
41
43
|
logintime: string;
|
|
42
44
|
requesttime: string;
|
|
45
|
+
[key:string]: string | undefined;
|
|
43
46
|
}
|
|
44
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.45",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +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.
|
|
25
|
-
"@midwayjs/
|
|
26
|
-
"@midwayjs/
|
|
27
|
-
"@midwayjs/
|
|
28
|
-
"@midwayjs/
|
|
29
|
-
"
|
|
20
|
+
"@anncic-api/cache": "^3.4.45",
|
|
21
|
+
"@anncic-api/core": "^3.4.45",
|
|
22
|
+
"@anncic-api/event": "^3.4.45",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.45",
|
|
24
|
+
"@anncic-api/validator": "^3.4.45",
|
|
25
|
+
"@midwayjs/busboy": "^3.17.1",
|
|
26
|
+
"@midwayjs/cross-domain": "^3.17.1",
|
|
27
|
+
"@midwayjs/koa": "^3.17.1",
|
|
28
|
+
"@midwayjs/logger": "^3.4.2",
|
|
29
|
+
"@midwayjs/static-file": "^3.17.1",
|
|
30
|
+
"anncic-apihelper": "^3.4.45",
|
|
30
31
|
"exceljs": "^4.4.0",
|
|
31
32
|
"koa-send": "^5.0.1"
|
|
32
33
|
},
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
"javascript-obfuscator": "^4.0.2",
|
|
36
37
|
"typescript": "^5.5.4"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fc37029307789ee6d083cf15937861a9983e25f7"
|
|
39
40
|
}
|