anncic-api 3.7.2 → 3.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.local.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/helper/getSwaggerJson.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x7fb7bb=a0_0x1a21;(function(_0x3e551a,_0x384b56){var _0x308126=a0_0x1a21,_0x3f1670=_0x3e551a();while(!![]){try{var _0x10c6aa=parseInt(_0x308126(0x6f))/0x1+-parseInt(_0x308126(0x80))/0x2+parseInt(_0x308126(0x71))/0x3*(parseInt(_0x308126(0x8a))/0x4)+-parseInt(_0x308126(0x74))/0x5+-parseInt(_0x308126(0x7a))/0x6+-parseInt(_0x308126(0x7c))/0x7*(parseInt(_0x308126(0x8b))/0x8)+parseInt(_0x308126(0x73))/0x9*(parseInt(_0x308126(0x76))/0xa);if(_0x10c6aa===_0x384b56)break;else _0x3f1670['push'](_0x3f1670['shift']());}catch(_0x3b3764){_0x3f1670['push'](_0x3f1670['shift']());}}}(a0_0x2a5e,0x8cbf1));var a0_0x4b35fa=(function(){var _0xedb2ca=!![];return function(_0x27a227,_0x2a8807){var _0x121329=_0xedb2ca?function(){var _0x4bb5f1=a0_0x1a21;if(_0x2a8807){var _0x34067d=_0x2a8807[_0x4bb5f1(0x84)](_0x27a227,arguments);return _0x2a8807=null,_0x34067d;}}:function(){};return _0xedb2ca=![],_0x121329;};}()),a0_0x36a648=a0_0x4b35fa(this,function(){var _0x26268d=a0_0x1a21;return a0_0x36a648[_0x26268d(0x7f)]()[_0x26268d(0x83)](_0x26268d(0x77))[_0x26268d(0x7f)]()['constructor'](a0_0x36a648)[_0x26268d(0x83)](_0x26268d(0x77));});a0_0x36a648();function a0_0x2a5e(){var _0x35808f=['search','apply','env','270d','appDir','text','default','8MngFqN','8GKbqEi','json','1109635VrHhXe','xml','533457FjBOWP','20mb','81iSCvOs','5553940pxKXAv','{midway-bull}{','1607020boaOSB','(((.+)+)+)+$','/runtime','_token','1574826ccieHy','form','5671666VOGhQe','name','/runtime/.upload','toString','303194xttECV','dhauo1234420123gg3234901','defineProperty'];a0_0x2a5e=function(){return _0x35808f;};return a0_0x2a5e();}function a0_0x1a21(_0x3b4877,_0x3c9674){var _0x2a14ce=a0_0x2a5e();return a0_0x1a21=function(_0x36a648,_0x4b35fa){_0x36a648=_0x36a648-0x6e;var _0x2a5e34=_0x2a14ce[_0x36a648];return _0x2a5e34;},a0_0x1a21(_0x3b4877,_0x3c9674);}'use strict';Object[a0_0x7fb7bb(0x82)](exports,'__esModule',{'value':!![]}),exports[a0_0x7fb7bb(0x89)]=_0x562518=>{var _0x164d12=a0_0x7fb7bb;return{'apitest':!![],'keys':_0x562518[_0x164d12(0x7d)],'anncicapi':{'requestKey':_0x164d12(0x79),'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x164d12(0x81),'checkcode':'dhauo1234420123gg3234901'}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':_0x164d12(0x86),'dir':_0x562518[_0x164d12(0x87)]+_0x164d12(0x78)}},'bodyParser':{'enableTypes':[_0x164d12(0x6e),_0x164d12(0x7b),_0x164d12(0x88),_0x164d12(0x70)],'formLimit':_0x164d12(0x72),'jsonLimit':_0x164d12(0x72),'textLimit':_0x164d12(0x72),'xmlLimit':_0x164d12(0x72),'enable':!![]},'upload':{'tmpdir':_0x562518[_0x164d12(0x87)]+'/runtime/.upload','cleanTimeout':0x5265c00},'busboy':{'mode':'file','tmpdir':_0x562518[_0x164d12(0x87)]+_0x164d12(0x7e),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x164d12(0x75)+_0x562518[_0x164d12(0x7d)]+':'+((_0x562518===null||_0x562518===void 0x0?void 0x0:_0x562518[_0x164d12(0x85)])?_0x562518[_0x164d12(0x85)]+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x3f95(_0x532b14,_0x20b427){var _0x2aa1bc=a1_0x2a1d();return a1_0x3f95=function(_0x4ae3d1,_0x1083fc){_0x4ae3d1=_0x4ae3d1-0x93;var _0x2a1d6d=_0x2aa1bc[_0x4ae3d1];return _0x2a1d6d;},a1_0x3f95(_0x532b14,_0x20b427);}var a1_0x356c97=a1_0x3f95;(function(_0x1901c1,_0x539be2){var _0xd0d845=a1_0x3f95,_0x6b81d5=_0x1901c1();while(!![]){try{var _0xaba327=-parseInt(_0xd0d845(0x97))/0x1*(-parseInt(_0xd0d845(0x98))/0x2)+-parseInt(_0xd0d845(0xa1))/0x3+parseInt(_0xd0d845(0xa4))/0x4*(parseInt(_0xd0d845(0x9b))/0x5)+parseInt(_0xd0d845(0xa3))/0x6*(parseInt(_0xd0d845(0x9e))/0x7)+-parseInt(_0xd0d845(0x9d))/0x8*(parseInt(_0xd0d845(0xa0))/0x9)+-parseInt(_0xd0d845(0x9c))/0xa*(-parseInt(_0xd0d845(0xa2))/0xb)+parseInt(_0xd0d845(0x9f))/0xc;if(_0xaba327===_0x539be2)break;else _0x6b81d5['push'](_0x6b81d5['shift']());}catch(_0x278df5){_0x6b81d5['push'](_0x6b81d5['shift']());}}}(a1_0x2a1d,0xe7b7e));var a1_0x1083fc=(function(){var _0x38118b=!![];return function(_0x23d12e,_0x1bc6c7){var _0x431a1e=_0x38118b?function(){var _0x2cb53b=a1_0x3f95;if(_0x1bc6c7){var _0x54f552=_0x1bc6c7[_0x2cb53b(0x93)](_0x23d12e,arguments);return _0x1bc6c7=null,_0x54f552;}}:function(){};return _0x38118b=![],_0x431a1e;};}()),a1_0x4ae3d1=a1_0x1083fc(this,function(){var _0x2e82fb=a1_0x3f95;return a1_0x4ae3d1[_0x2e82fb(0x9a)]()[_0x2e82fb(0x95)](_0x2e82fb(0xa5))['toString']()['constructor'](a1_0x4ae3d1)[_0x2e82fb(0x95)](_0x2e82fb(0xa5));});a1_0x4ae3d1();'use strict';function a1_0x2a1d(){var _0x38dccb=['defineProperty','toString','28470xetWzD','10bEEMyG','64xfSCoB','33390xTBftq','865944tCLUPU','684387dUjfzf','3483030XCftIO','2405128iHPTqd','1206HHVaHX','96DcNrhD','(((.+)+)+)+$','apply','__esModule','search','default','1xJifzb','2664472jmIZlU'];a1_0x2a1d=function(){return _0x38dccb;};return a1_0x2a1d();}Object[a1_0x356c97(0x99)](exports,a1_0x356c97(0x94),{'value':!![]}),exports[a1_0x356c97(0x96)]=_0x1e50e0=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x30bd5b=a2_0x2035;(function(_0x35665e,_0x3498d6){var _0x1fea64=a2_0x2035,_0x331ce5=_0x35665e();while(!![]){try{var _0x8ebcb0=parseInt(_0x1fea64(0x92))/0x1+parseInt(_0x1fea64(0x96))/0x2*(parseInt(_0x1fea64(0x97))/0x3)+-parseInt(_0x1fea64(0xa2))/0x4*(parseInt(_0x1fea64(0x9d))/0x5)+parseInt(_0x1fea64(0xa1))/0x6+-parseInt(_0x1fea64(0x98))/0x7*(-parseInt(_0x1fea64(0x94))/0x8)+parseInt(_0x1fea64(0x93))/0x9*(-parseInt(_0x1fea64(0x9c))/0xa)+-parseInt(_0x1fea64(0x9b))/0xb*(-parseInt(_0x1fea64(0xa4))/0xc);if(_0x8ebcb0===_0x3498d6)break;else _0x331ce5['push'](_0x331ce5['shift']());}catch(_0x553af8){_0x331ce5['push'](_0x331ce5['shift']());}}}(a2_0x58bc,0xf15bf));function a2_0x2035(_0x6a4f9c,_0x125e54){var _0x3f1677=a2_0x58bc();return a2_0x2035=function(_0x3f0d2c,_0x28a68e){_0x3f0d2c=_0x3f0d2c-0x92;var _0x58bc3b=_0x3f1677[_0x3f0d2c];return _0x58bc3b;},a2_0x2035(_0x6a4f9c,_0x125e54);}var a2_0x28a68e=(function(){var _0x3ad290=!![];return function(_0x44fbf4,_0x32386b){var _0x262fd7=_0x3ad290?function(){var _0x28496e=a2_0x2035;if(_0x32386b){var _0x21ef79=_0x32386b[_0x28496e(0x99)](_0x44fbf4,arguments);return _0x32386b=null,_0x21ef79;}}:function(){};return _0x3ad290=![],_0x262fd7;};}()),a2_0x3f0d2c=a2_0x28a68e(this,function(){var _0xdd4d27=a2_0x2035;return a2_0x3f0d2c['toString']()[_0xdd4d27(0x95)](_0xdd4d27(0xa0))[_0xdd4d27(0x9f)]()[_0xdd4d27(0x9e)](a2_0x3f0d2c)[_0xdd4d27(0x95)]('(((.+)+)+)+$');});a2_0x3f0d2c();'use strict';function a2_0x58bc(){var _0x3eb6b5=['(((.+)+)+)+$','3453672dHWxMf','1964xiOFSk','defineProperty','580116IoKugH','1217411eTSaHV','18PhtEGv','633464xpjuUe','search','180nrjdUg','25689TNrCTu','7JIWhtf','apply','__esModule','198BLViWC','2785030xSQxKj','20035AlLncH','constructor','toString'];a2_0x58bc=function(){return _0x3eb6b5;};return a2_0x58bc();}Object[a2_0x30bd5b(0xa3)](exports,a2_0x30bd5b(0x9a),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x15c3ff=a3_0x29a8;(function(_0x1d052e,_0x5e64d3){const _0x165780=a3_0x29a8,_0x404f34=_0x1d052e();while(!![]){try{const _0x535d7e=-parseInt(_0x165780(0x194))/0x1*(parseInt(_0x165780(0x1ce))/0x2)+parseInt(_0x165780(0x1fd))/0x3*(-parseInt(_0x165780(0x197))/0x4)+parseInt(_0x165780(0x1de))/0x5*(parseInt(_0x165780(0x1b6))/0x6)+-parseInt(_0x165780(0x1c3))/0x7+-parseInt(_0x165780(0x19e))/0x8+-parseInt(_0x165780(0x1d5))/0x9+parseInt(_0x165780(0x1ec))/0xa;if(_0x535d7e===_0x5e64d3)break;else _0x404f34['push'](_0x404f34['shift']());}catch(_0x2cf1ca){_0x404f34['push'](_0x404f34['shift']());}}}(a3_0x5848,0x95a72));function a3_0x29a8(_0x565fe6,_0x3a7404){const _0x325e07=a3_0x5848();return a3_0x29a8=function(_0x2fcd07,_0x3bef32){_0x2fcd07=_0x2fcd07-0x17d;let _0x58485c=_0x325e07[_0x2fcd07];return _0x58485c;},a3_0x29a8(_0x565fe6,_0x3a7404);}const a3_0x3bef32=(function(){let _0x334fe7=!![];return function(_0x3ec73b,_0x59e986){const _0x7b4eac=_0x334fe7?function(){const _0x9df956=a3_0x29a8;if(_0x59e986){const _0x2cbd1e=_0x59e986[_0x9df956(0x17e)](_0x3ec73b,arguments);return _0x59e986=null,_0x2cbd1e;}}:function(){};return _0x334fe7=![],_0x7b4eac;};}()),a3_0x2fcd07=a3_0x3bef32(this,function(){const _0x480511=a3_0x29a8;return a3_0x2fcd07[_0x480511(0x1b3)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a3_0x2fcd07)[_0x480511(0x1a4)](_0x480511(0x1f3));});a3_0x2fcd07();'use strict';var __decorate=this&&this['__decorate']||function(_0xe93e31,_0x124c02,_0x4f5e4b,_0x584be7){const _0x454651=a3_0x29a8;var _0x21f900=arguments[_0x454651(0x19f)],_0x407060=_0x21f900<0x3?_0x124c02:_0x584be7===null?_0x584be7=Object[_0x454651(0x1c5)](_0x124c02,_0x4f5e4b):_0x584be7,_0x462a8a;if(typeof Reflect===_0x454651(0x1ab)&&typeof Reflect[_0x454651(0x1b9)]===_0x454651(0x20b))_0x407060=Reflect[_0x454651(0x1b9)](_0xe93e31,_0x124c02,_0x4f5e4b,_0x584be7);else{for(var _0x383afa=_0xe93e31[_0x454651(0x19f)]-0x1;_0x383afa>=0x0;_0x383afa--)if(_0x462a8a=_0xe93e31[_0x383afa])_0x407060=(_0x21f900<0x3?_0x462a8a(_0x407060):_0x21f900>0x3?_0x462a8a(_0x124c02,_0x4f5e4b,_0x407060):_0x462a8a(_0x124c02,_0x4f5e4b))||_0x407060;}return _0x21f900>0x3&&_0x407060&&Object[_0x454651(0x1f8)](_0x124c02,_0x4f5e4b,_0x407060),_0x407060;},__metadata=this&&this[a3_0x15c3ff(0x1c2)]||function(_0x54917c,_0x23e88b){const _0x39536a=a3_0x15c3ff;if(typeof Reflect===_0x39536a(0x1ab)&&typeof Reflect[_0x39536a(0x207)]===_0x39536a(0x20b))return Reflect[_0x39536a(0x207)](_0x54917c,_0x23e88b);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x15c3ff(0x1bc)]=void 0x0;const core_1=require(a3_0x15c3ff(0x1bf)),core_2=require(a3_0x15c3ff(0x1bf)),ApiError_1=require(a3_0x15c3ff(0x1e4)),ApiService_1=require(a3_0x15c3ff(0x18d)),intercept_1=require(a3_0x15c3ff(0x1e7)),action_1=require(a3_0x15c3ff(0x215)),fs=require('fs'),path=require(a3_0x15c3ff(0x210)),koasend=require(a3_0x15c3ff(0x1af)),koa=require('@midwayjs/koa'),upload=require(a3_0x15c3ff(0x1fa)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a3_0x15c3ff(0x1b1)),ConfigProduction=require(a3_0x15c3ff(0x1fb)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a3_0x15c3ff(0x1ee)),anncicValidator=require(a3_0x15c3ff(0x18e)),anncicHelper=require(a3_0x15c3ff(0x1e1));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x3546a7=a3_0x15c3ff;await this['filterConfig'](),await this[_0x3546a7(0x1a6)](),await this[_0x3546a7(0x189)](),await this['hanlderApplications']();}async[a3_0x15c3ff(0x189)](){const _0x4186e0=a3_0x15c3ff,_0x317311=this[_0x4186e0(0x20f)][_0x4186e0(0x206)](),_0x577122=(0x0,core_1[_0x4186e0(0x213)])(intercept_1[_0x4186e0(0x1a7)],intercept_1[_0x4186e0(0x204)])||{};this['decorator'][_0x4186e0(0x209)](action_1[_0x4186e0(0x196)],_0x5dc257=>{const _0x391fbc=_0x4186e0;var _0x56d01c;const _0x5b6870=(0x0,core_1[_0x391fbc(0x213)])(action_1[_0x391fbc(0x1b0)],action_1[_0x391fbc(0x20c)])||{},_0x564d55=_0x5dc257[_0x391fbc(0x207)],_0x5a1e4a=(0x0,core_1[_0x391fbc(0x213)])(action_1['ACTION_KEY'],_0x5dc257[_0x391fbc(0x1e9)])||{},_0x52ba8f=((_0x56d01c=_0x5a1e4a===null||_0x5a1e4a===void 0x0?void 0x0:_0x5a1e4a[_0x391fbc(0x1e2)])===null||_0x56d01c===void 0x0?void 0x0:_0x56d01c['substring'](0x0,_0x5a1e4a[_0x391fbc(0x1e2)][_0x391fbc(0x186)]('.')))||'',_0x5d5f20=(_0x5a1e4a===null||_0x5a1e4a===void 0x0?void 0x0:_0x5a1e4a['module'])?(_0x5b6870===null||_0x5b6870===void 0x0?void 0x0:_0x5b6870[_0x5a1e4a[_0x391fbc(0x1dc)]])||{}:{};return{'before':async _0x5c8182=>{const _0x1ac9c0=_0x391fbc;var _0x288053,_0x71c78,_0x8a9750,_0x4faaeb;const _0xfeeb6d=(_0x288053=_0x5c8182===null||_0x5c8182===void 0x0?void 0x0:_0x5c8182[_0x1ac9c0(0x1e9)])===null||_0x288053===void 0x0?void 0x0:_0x288053[core_2[_0x1ac9c0(0x187)]],_0x2b7b90=lodash[_0x1ac9c0(0x1fe)]({},_0xfeeb6d['request']['body']||_0xfeeb6d[_0x1ac9c0(0x1a3)][((_0x71c78=_0x317311===null||_0x317311===void 0x0?void 0x0:_0x317311[_0x1ac9c0(0x1b5)])===null||_0x71c78===void 0x0?void 0x0:_0x71c78[_0x1ac9c0(0x1a1)])||_0x1ac9c0(0x191)]||{},_0xfeeb6d[_0x1ac9c0(0x1a3)][_0x1ac9c0(0x1fc)]||{});_0xfeeb6d[_0x1ac9c0(0x18f)]={'module':(_0x5d5f20===null||_0x5d5f20===void 0x0?void 0x0:_0x5d5f20[_0x1ac9c0(0x198)])||'','routePath':''+_0xfeeb6d[_0x1ac9c0(0x210)],'routeName':_0x5a1e4a[_0x1ac9c0(0x1f9)][_0x1ac9c0(0x17d)]+'@'+_0x564d55[_0x1ac9c0(0x1c7)],'routeMethod':((_0x564d55===null||_0x564d55===void 0x0?void 0x0:_0x564d55[_0x1ac9c0(0x1ae)])||_0xfeeb6d['method']||'')[_0x1ac9c0(0x1b4)](),'routeDescription':(_0x564d55===null||_0x564d55===void 0x0?void 0x0:_0x564d55['description'])||'','filemethod':_0x52ba8f+'@'+(_0x564d55[_0x1ac9c0(0x19b)]||'')};if(_0xfeeb6d&&(_0x564d55===null||_0x564d55===void 0x0?void 0x0:_0x564d55[_0x1ac9c0(0x1c1)]))try{const _0x56d0a0=((_0x8a9750=_0x317311===null||_0x317311===void 0x0?void 0x0:_0x317311[_0x1ac9c0(0x202)])===null||_0x8a9750===void 0x0?void 0x0:_0x8a9750['requestKey'])&&typeof(_0x2b7b90===null||_0x2b7b90===void 0x0?void 0x0:_0x2b7b90[_0x317311['anncicapi']['requestKey']])=='string'?JSON[_0x1ac9c0(0x19a)](base64_decode(_0x2b7b90[_0x317311['anncicapi'][_0x1ac9c0(0x1ba)]])||'{}')||{}:((_0x4faaeb=_0xfeeb6d===null||_0xfeeb6d===void 0x0?void 0x0:_0xfeeb6d[_0x1ac9c0(0x1a3)])===null||_0x4faaeb===void 0x0?void 0x0:_0x4faaeb[_0x1ac9c0(0x1f5)])||{};if(!this[_0x1ac9c0(0x1d8)]['checksign'](_0x56d0a0))throw new AnnError(ApiError_1[_0x1ac9c0(0x200)][_0x1ac9c0(0x1a5)]);for(const _0x3ba8f6 in _0x56d0a0||{}){_0xfeeb6d[_0x1ac9c0(0x1f5)][_0x3ba8f6]=_0x56d0a0[_0x3ba8f6];}}catch(_0x567f39){if(_0x567f39 instanceof AnnError)throw _0x567f39;else throw new AnnError(ApiError_1['ApiError'][_0x1ac9c0(0x1cf)]);}},'around':async _0x18d111=>{const _0x446f98=_0x391fbc;var _0x44bef8,_0x545150,_0x45219b;const _0x45d8cf=(_0x44bef8=_0x18d111===null||_0x18d111===void 0x0?void 0x0:_0x18d111[_0x446f98(0x1e9)])===null||_0x44bef8===void 0x0?void 0x0:_0x44bef8[core_2[_0x446f98(0x187)]];if(_0x45d8cf&&(_0x564d55===null||_0x564d55===void 0x0?void 0x0:_0x564d55[_0x446f98(0x1c1)])&&((_0x564d55===null||_0x564d55===void 0x0?void 0x0:_0x564d55[_0x446f98(0x1ac)])||typeof(_0x564d55===null||_0x564d55===void 0x0?void 0x0:_0x564d55[_0x446f98(0x1ac)])==_0x446f98(0x1a0))){if(((_0x545150=_0x45d8cf[_0x446f98(0x1f5)])===null||_0x545150===void 0x0?void 0x0:_0x545150[_0x446f98(0x1d7)])&&((_0x45219b=_0x577122===null||_0x577122===void 0x0?void 0x0:_0x577122[_0x45d8cf['headers'][_0x446f98(0x1d7)]])===null||_0x45219b===void 0x0?void 0x0:_0x45219b[_0x446f98(0x19f)])>0x0)for(const _0xd6bb4a of _0x577122[_0x45d8cf[_0x446f98(0x1f5)][_0x446f98(0x1d7)]]||[]){if(core_1[_0x446f98(0x1a2)][_0x446f98(0x1d6)](_0xd6bb4a)){const _0x8d233e=await _0x45d8cf[_0x446f98(0x19c)]['getAsync'](_0xd6bb4a);typeof(_0x8d233e===null||_0x8d233e===void 0x0?void 0x0:_0x8d233e[_0x446f98(0x1eb)])==_0x446f98(0x20b)?await _0x8d233e[_0x446f98(0x1eb)](_0x45d8cf,typeof(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x19b)])==_0x446f98(0x1d1)&&(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)])?_0x45d8cf[_0x446f98(0x19b)][_0x446f98(0x1b4)]()+'@'+(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)]):undefined,_0x564d55)&&await _0x8d233e[_0x446f98(0x1d4)](_0x45d8cf,typeof(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf['method'])==_0x446f98(0x1d1)&&(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)])?_0x45d8cf[_0x446f98(0x19b)][_0x446f98(0x1b4)]()+'@'+(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)]):undefined,_0x564d55):await _0x8d233e[_0x446f98(0x1d4)](_0x45d8cf,typeof(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x19b)])=='string'&&(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)])?_0x45d8cf['method']['toLowerCase']()+'@'+(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)]):undefined,_0x564d55);}else core_1[_0x446f98(0x1a2)][_0x446f98(0x1a9)](_0xd6bb4a)&&await _0xd6bb4a(_0x45d8cf,typeof(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x19b)])==_0x446f98(0x1d1)&&(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf['_matchedRoute'])?_0x45d8cf['method'][_0x446f98(0x1b4)]()+'@'+(_0x45d8cf===null||_0x45d8cf===void 0x0?void 0x0:_0x45d8cf[_0x446f98(0x20d)]):undefined,_0x564d55);}}return await _0x18d111[_0x446f98(0x1e6)](..._0x18d111[_0x446f98(0x1db)]);},'afterThrow':(_0x5d0be1,_0x59e3ae)=>{throw _0x59e3ae;}};});}async[a3_0x15c3ff(0x1f0)](){const _0x5bf81e=a3_0x15c3ff,_0x32e1f5=this[_0x5bf81e(0x20f)][_0x5bf81e(0x206)]();this[_0x5bf81e(0x1d0)][_0x5bf81e(0x1c8)](['koa'])[_0x5bf81e(0x1f4)](_0xab5cfe=>{const _0x2b20f5=_0x5bf81e;(_0xab5cfe===null||_0xab5cfe===void 0x0?void 0x0:_0xab5cfe[_0x2b20f5(0x1bd)])&&Object[_0x2b20f5(0x212)](_0xab5cfe[_0x2b20f5(0x1bd)],{'hosturl':{'configurable':![],'get':function(){const _0x5ee250=_0x2b20f5;var _0x1bea44,_0x3c8aa9,_0x1aa183,_0x3ee16f;if((this===null||this===void 0x0?void 0x0:this[_0x5ee250(0x1b7)])&&!this['host'][_0x5ee250(0x214)](_0x5ee250(0x1d2))){let _0x2b1fdf=this['host']['split'](':');return['80','443'][_0x5ee250(0x1cd)](_0x2b1fdf===null||_0x2b1fdf===void 0x0?void 0x0:_0x2b1fdf[0x1])?''+(!!((_0x3c8aa9=(_0x1bea44=this===null||this===void 0x0?void 0x0:this[_0x5ee250(0x1c4)])===null||_0x1bea44===void 0x0?void 0x0:_0x1bea44['connection'])===null||_0x3c8aa9===void 0x0?void 0x0:_0x3c8aa9[_0x5ee250(0x203)])||(_0x2b1fdf===null||_0x2b1fdf===void 0x0?void 0x0:_0x2b1fdf[0x1])==_0x5ee250(0x1d3)?_0x5ee250(0x1bb):'http://')+_0x2b1fdf[0x0]:''+(!!((_0x3ee16f=(_0x1aa183=this===null||this===void 0x0?void 0x0:this[_0x5ee250(0x1c4)])===null||_0x1aa183===void 0x0?void 0x0:_0x1aa183[_0x5ee250(0x208)])===null||_0x3ee16f===void 0x0?void 0x0:_0x3ee16f[_0x5ee250(0x203)])?_0x5ee250(0x1bb):_0x5ee250(0x19d))+this[_0x5ee250(0x1b7)];}return'';}},'ok':{'value':function(_0x2a473c,_0x58bab7,_0x51144f=0x0){return{'code':_0x51144f,'data':_0x2a473c,'extra':_0x58bab7};}},'input':{'value':function(_0x2c0ec1,_0x324b9c){const _0x359255=_0x2b20f5;var _0x27363d;const _0x360170=lodash[_0x359255(0x1fe)]({},this['request']['body']||this[_0x359255(0x1a3)][((_0x27363d=_0x32e1f5===null||_0x32e1f5===void 0x0?void 0x0:_0x32e1f5[_0x359255(0x1b5)])===null||_0x27363d===void 0x0?void 0x0:_0x27363d[_0x359255(0x1a1)])||'body']||{},this[_0x359255(0x1a3)][_0x359255(0x1fc)]||{});return _0x2c0ec1?lodash[_0x359255(0x1ef)](_0x360170,_0x2c0ec1,_0x324b9c):_0x360170;}},'when':{'value':async function(_0x538452,_0x27fbcf){const _0x4ff51c=_0x2b20f5,_0x5d7b09=this[_0x4ff51c(0x211)](_0x538452,null);if(!lodash[_0x4ff51c(0x1e5)](_0x5d7b09))return await _0x27fbcf(_0x5d7b09);}},'only':{'value':function(_0x239edd){const _0x4f93ca=_0x2b20f5,_0x55fab1={};for(let _0x46923e=0x0;_0x46923e<_0x239edd['length'];_0x46923e++){lodash[_0x4f93ca(0x1e8)](_0x239edd[_0x46923e])&&_0x239edd[_0x46923e][_0x4f93ca(0x19f)]>0x0&&lodash['isString'](_0x239edd[_0x46923e][0x0])&&(_0x55fab1[_0x239edd[_0x46923e][0x0]]=this['input'](_0x239edd[_0x46923e][0x0],_0x239edd[_0x46923e][_0x4f93ca(0x19f)]>0x1?_0x239edd[_0x46923e][0x1]:null));}return _0x55fab1;}},'koasend':{'value':async function(_0x1c3fa1,_0x4576d3){const _0x3df56c=_0x2b20f5;if(_0x1c3fa1&&!fs[_0x3df56c(0x193)](_0x1c3fa1)&&!fs[_0x3df56c(0x193)](this[_0x3df56c(0x1ff)][_0x3df56c(0x1c6)]()+'/'+_0x1c3fa1))return'文件不存在';return _0x1c3fa1=fs[_0x3df56c(0x193)](_0x1c3fa1)?_0x1c3fa1:this[_0x3df56c(0x1ff)]['getAppDir']()+'/'+_0x1c3fa1,this[_0x3df56c(0x1e3)](_0x4576d3||_0x1c3fa1),await koasend(this,_0x1c3fa1);}}});});}async[a3_0x15c3ff(0x1a6)](){const _0x42194=a3_0x15c3ff;var _0x40861a;if(fs[_0x42194(0x193)](this[_0x42194(0x1ff)]['getBaseDir']()+_0x42194(0x20a))&&fs[_0x42194(0x18c)](this[_0x42194(0x1ff)][_0x42194(0x1ed)]()+_0x42194(0x20a))['isDirectory']()){const _0x5b9936=this[_0x42194(0x20f)][_0x42194(0x206)](),_0x44f97a=((_0x40861a=_0x5b9936===null||_0x5b9936===void 0x0?void 0x0:_0x5b9936[_0x42194(0x17f)])===null||_0x40861a===void 0x0?void 0x0:_0x40861a[_0x42194(0x1ca)])||{};!fs[_0x42194(0x193)](this[_0x42194(0x1ff)]['getBaseDir']()+'/app')&&(_0x44f97a[_0x42194(0x1ff)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x42194(0x188)][_0x42194(0x18b)](),'fileLogName':_0x42194(0x1b2),'dir':path[_0x42194(0x1f6)](this[_0x42194(0x1ff)][_0x42194(0x1c6)](),_0x42194(0x18a),_0x42194(0x1ff))});!fs[_0x42194(0x193)](this[_0x42194(0x1ff)][_0x42194(0x1ed)]()+_0x42194(0x1a8))&&(_0x44f97a[_0x42194(0x1dd)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x42194(0x188)][_0x42194(0x18b)](),'fileLogName':_0x42194(0x1be),'dir':path[_0x42194(0x1f6)](this['app']['getAppDir'](),'runtime','basic')});for(const _0x324863 of fs[_0x42194(0x183)](this[_0x42194(0x1ff)][_0x42194(0x1ed)]()+_0x42194(0x20a))){if(!fs[_0x42194(0x18c)](this[_0x42194(0x1ff)]['getBaseDir']()+'/apps/'+_0x324863)[_0x42194(0x184)]())continue;!(_0x44f97a===null||_0x44f97a===void 0x0?void 0x0:_0x44f97a[_0x324863])&&(_0x44f97a[_0x324863]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x42194(0x188)][_0x42194(0x18b)](),'fileLogName':_0x324863+_0x42194(0x20e),'dir':path[_0x42194(0x1f6)](this['app']['getAppDir'](),_0x42194(0x18a),'apps-'+_0x324863)}),this[_0x42194(0x1b8)][_0x42194(0x185)](_0x324863,_0x44f97a[_0x324863]);}Object[_0x42194(0x1ad)](_0x44f97a)[_0x42194(0x19f)]>0x0&&(!_0x5b9936[_0x42194(0x17f)]&&(_0x5b9936[_0x42194(0x17f)]={'default':{'maxSize':'1m','maxFiles':_0x42194(0x205),'dir':path['join'](this[_0x42194(0x1ff)][_0x42194(0x1c6)](),_0x42194(0x18a))}}),_0x5b9936[_0x42194(0x17f)][_0x42194(0x1ca)]=_0x44f97a),this[_0x42194(0x20f)]['addObject'](_0x5b9936);}}async['filterConfig'](){const _0x56299b=a3_0x15c3ff;var _0x532187,_0x4307fd,_0x2bc560,_0x3cb85f,_0x1de3d8,_0xbda781;const _0xcc32e4=this[_0x56299b(0x20f)][_0x56299b(0x206)]();((_0x4307fd=(_0x532187=_0xcc32e4===null||_0xcc32e4===void 0x0?void 0x0:_0xcc32e4[_0x56299b(0x202)])===null||_0x532187===void 0x0?void 0x0:_0x532187[_0x56299b(0x1aa)])===null||_0x4307fd===void 0x0?void 0x0:_0x4307fd['DEFAULT'])&&Object[_0x56299b(0x1ad)](_0xcc32e4['anncicapi'][_0x56299b(0x1aa)])['length']>0x1&&delete _0xcc32e4[_0x56299b(0x202)]['devices'][_0x56299b(0x1d9)];if((_0x2bc560=_0xcc32e4===null||_0xcc32e4===void 0x0?void 0x0:_0xcc32e4['staticFile'])===null||_0x2bc560===void 0x0?void 0x0:_0x2bc560['dirs'])for(const _0x571a04 in _0xcc32e4['staticFile'][_0x56299b(0x195)]){((_0x3cb85f=_0xcc32e4[_0x56299b(0x1cc)][_0x56299b(0x195)][_0x571a04])===null||_0x3cb85f===void 0x0?void 0x0:_0x3cb85f[_0x56299b(0x1df)])&&typeof((_0x1de3d8=_0xcc32e4['staticFile']['dirs'][_0x571a04])===null||_0x1de3d8===void 0x0?void 0x0:_0x1de3d8[_0x56299b(0x1df)])==_0x56299b(0x1d1)&&!fs[_0x56299b(0x193)](_0xcc32e4[_0x56299b(0x1cc)][_0x56299b(0x195)][_0x571a04][_0x56299b(0x1df)])&&(fs[_0x56299b(0x1f2)](_0xcc32e4[_0x56299b(0x1cc)]['dirs'][_0x571a04][_0x56299b(0x1df)],{'recursive':!![]}),console[_0x56299b(0x180)](_0x56299b(0x201)+_0xcc32e4[_0x56299b(0x1cc)][_0x56299b(0x195)][_0x571a04][_0x56299b(0x1df)]));}((_0xbda781=_0xcc32e4===null||_0xcc32e4===void 0x0?void 0x0:_0xcc32e4[_0x56299b(0x190)])===null||_0xbda781===void 0x0?void 0x0:_0xbda781[_0x56299b(0x1f1)])&&!fs['existsSync'](_0xcc32e4[_0x56299b(0x190)][_0x56299b(0x1f1)])&&(fs[_0x56299b(0x1f2)](_0xcc32e4[_0x56299b(0x190)][_0x56299b(0x1f1)],{'recursive':!![]}),console[_0x56299b(0x180)](_0x56299b(0x1da)+_0xcc32e4[_0x56299b(0x190)][_0x56299b(0x1f1)])),this[_0x56299b(0x20f)][_0x56299b(0x1cb)](_0xcc32e4);}};exports[a3_0x15c3ff(0x1bc)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0x15c3ff(0x1f7)])(),__metadata(a3_0x15c3ff(0x192),Object)],CustomConfiguration[a3_0x15c3ff(0x1e0)],a3_0x15c3ff(0x1ff),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x15c3ff(0x192),core_2['MidwayConfigService'])],CustomConfiguration[a3_0x15c3ff(0x1e0)],a3_0x15c3ff(0x20f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x15c3ff(0x182)])],CustomConfiguration[a3_0x15c3ff(0x1e0)],'decorator',void 0x0),__decorate([(0x0,core_1[a3_0x15c3ff(0x1ea)])(),__metadata(a3_0x15c3ff(0x192),core_2[a3_0x15c3ff(0x1c0)])],CustomConfiguration['prototype'],a3_0x15c3ff(0x1d0),void 0x0),__decorate([(0x0,core_1[a3_0x15c3ff(0x1ea)])(),__metadata('design:type',core_2['MidwayEnvironmentService'])],CustomConfiguration[a3_0x15c3ff(0x1e0)],a3_0x15c3ff(0x188),void 0x0),__decorate([(0x0,core_1[a3_0x15c3ff(0x1ea)])(),__metadata(a3_0x15c3ff(0x192),core_1[a3_0x15c3ff(0x1c9)])],CustomConfiguration[a3_0x15c3ff(0x1e0)],a3_0x15c3ff(0x1b8),void 0x0),__decorate([(0x0,core_1[a3_0x15c3ff(0x1ea)])(),__metadata(a3_0x15c3ff(0x192),ApiService_1['ApiService'])],CustomConfiguration[a3_0x15c3ff(0x1e0)],a3_0x15c3ff(0x1d8),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a3_0x15c3ff(0x181)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x15c3ff(0x199),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);function a3_0x5848(){const _0x4c9b35=['_matchedRoute','.log','config','path','input','defineProperties','getClassMetadata','startsWith','./types/action','tagName','apply','midwayLogger','log','Configuration','MidwayDecoratorService','readdirSync','isDirectory','createLogger','lastIndexOf','REQUEST_OBJ_CTX_KEY','environment','handlerActionRoute','runtime','isDevelopmentEnvironment','statSync','./service/ApiService','@anncic-api/validator','_matchedRouteMeta','upload','body','design:type','existsSync','54wmljLH','dirs','ACTION_ROUTE_KEY','12YwXgpg','name','anncic-api','parse','method','requestContext','http://','5529656WbMXMG','length','undefined','key','Types','request','search','HEADERS_SIGNATURE','loggerConfig','INTERCEPT_KEY','/basic','isFunction','devices','object','intercept','keys','requestMethod','koa-send','APPSCONFIG_KEY','./config/config.default','app.log','toString','toLowerCase','bodyXml','18VXoFVP','host','loggerService','decorate','requestKey','https://','CustomConfiguration','context','basic.log','@midwayjs/core','MidwayApplicationManager','apimit','__metadata','3504053JsiNTA','req','getOwnPropertyDescriptor','getAppDir','routerName','getApplications','MidwayLoggerService','clients','addObject','staticFile','includes','12872Qtalkn','_UNKNOW_','application','string','http','443','handler','9875916NchsyA','isClass','device','ApiService','DEFAULT','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','args','module','basic','1663715pwDpit','dir','prototype','anncic-apihelper','filepath','attachment','./exception/ApiError','isNull','proceed','./types/intercept','isArray','target','Inject','match','28431590nsIscg','getBaseDir','@anncic-api/typeorm','get','hanlderApplications','tmpdir','mkdirSync','(((.+)+)+)+$','forEach','headers','join','App','defineProperty','routerOptions','@midwayjs/busboy','./config/config.production','query','591756ImKAAi','defaultsDeep','app','ApiError','Anncic-api\x20static-file\x20:\x20mkdir\x20','anncicapi','encrypted','InterceptTargetTmp','270d','getConfiguration','metadata','connection','registerMethodHandler','/apps','function','AppsConfigTmp'];a3_0x5848=function(){return _0x4c9b35;};return a3_0x5848();}
|
|
1
|
+
const a3_0x57ddde=a3_0x3fc0;(function(_0x2751b7,_0x111e6d){const _0x515ea0=a3_0x3fc0,_0x203fe4=_0x2751b7();while(!![]){try{const _0x3b854b=-parseInt(_0x515ea0(0x1c9))/0x1*(parseInt(_0x515ea0(0x15a))/0x2)+-parseInt(_0x515ea0(0x17c))/0x3*(parseInt(_0x515ea0(0x1c1))/0x4)+parseInt(_0x515ea0(0x171))/0x5+parseInt(_0x515ea0(0x1d8))/0x6*(-parseInt(_0x515ea0(0x158))/0x7)+-parseInt(_0x515ea0(0x1c7))/0x8+parseInt(_0x515ea0(0x1e1))/0x9+parseInt(_0x515ea0(0x1d5))/0xa;if(_0x3b854b===_0x111e6d)break;else _0x203fe4['push'](_0x203fe4['shift']());}catch(_0x1775c){_0x203fe4['push'](_0x203fe4['shift']());}}}(a3_0x556c,0x875c1));function a3_0x3fc0(_0x543dc1,_0x363068){const _0x3e4d90=a3_0x556c();return a3_0x3fc0=function(_0xddb56b,_0x875deb){_0xddb56b=_0xddb56b-0x149;let _0x556c66=_0x3e4d90[_0xddb56b];return _0x556c66;},a3_0x3fc0(_0x543dc1,_0x363068);}const a3_0x875deb=(function(){let _0x4e845c=!![];return function(_0x3e9a9c,_0x86935f){const _0x7c67df=_0x4e845c?function(){const _0xca7315=a3_0x3fc0;if(_0x86935f){const _0x4bff81=_0x86935f[_0xca7315(0x187)](_0x3e9a9c,arguments);return _0x86935f=null,_0x4bff81;}}:function(){};return _0x4e845c=![],_0x7c67df;};}()),a3_0xddb56b=a3_0x875deb(this,function(){const _0x407e3b=a3_0x3fc0;return a3_0xddb56b['toString']()[_0x407e3b(0x15b)](_0x407e3b(0x172))[_0x407e3b(0x19c)]()[_0x407e3b(0x151)](a3_0xddb56b)[_0x407e3b(0x15b)](_0x407e3b(0x172));});a3_0xddb56b();'use strict';var __decorate=this&&this[a3_0x57ddde(0x1da)]||function(_0x333079,_0x4f6016,_0x5679b6,_0x501502){const _0x5f5aa9=a3_0x57ddde;var _0x844483=arguments[_0x5f5aa9(0x19d)],_0x5c6ee5=_0x844483<0x3?_0x4f6016:_0x501502===null?_0x501502=Object[_0x5f5aa9(0x197)](_0x4f6016,_0x5679b6):_0x501502,_0x7323ff;if(typeof Reflect===_0x5f5aa9(0x1ce)&&typeof Reflect[_0x5f5aa9(0x1c6)]==='function')_0x5c6ee5=Reflect[_0x5f5aa9(0x1c6)](_0x333079,_0x4f6016,_0x5679b6,_0x501502);else{for(var _0x5a0e90=_0x333079[_0x5f5aa9(0x19d)]-0x1;_0x5a0e90>=0x0;_0x5a0e90--)if(_0x7323ff=_0x333079[_0x5a0e90])_0x5c6ee5=(_0x844483<0x3?_0x7323ff(_0x5c6ee5):_0x844483>0x3?_0x7323ff(_0x4f6016,_0x5679b6,_0x5c6ee5):_0x7323ff(_0x4f6016,_0x5679b6))||_0x5c6ee5;}return _0x844483>0x3&&_0x5c6ee5&&Object[_0x5f5aa9(0x184)](_0x4f6016,_0x5679b6,_0x5c6ee5),_0x5c6ee5;},__metadata=this&&this[a3_0x57ddde(0x1d3)]||function(_0x2c9877,_0x26725){const _0x4a0300=a3_0x57ddde;if(typeof Reflect===_0x4a0300(0x1ce)&&typeof Reflect['metadata']===_0x4a0300(0x1ba))return Reflect['metadata'](_0x2c9877,_0x26725);};function a3_0x556c(){const _0x46c66a=['MidwayApplicationManager','2259417qDQRjK','application','handlerActionRoute','./types/intercept','defaultsDeep','devices','./config/config.production','config','defineProperty','ACTION_ROUTE_KEY','headers','apply','anncic-apihelper','requestMethod','@midwayjs/cross-domain','anncic-api','method','requestKey','log','/apps','isDirectory','hanlderApplications','onReady','HEADERS_SIGNATURE','string','APPSCONFIG_KEY','getConfiguration','getOwnPropertyDescriptor','443','isNull','registerMethodHandler','ApiService','toString','length','isArray','module','app.log','DEFAULT','statSync','.log','host','tmpdir','includes','prototype','App','__esModule','attachment','app','koa','substring','keys','request','clients','loggerConfig','addObject','target','270d','design:type','undefined','filepath','basic.log','isDevelopmentEnvironment','function','anncicapi','req','get','tagName','context','mkdirSync','4ElrlIm','existsSync','defineProperties','ApiError','_matchedRoute','decorate','5976784aQGJxa','bodyXml','1492qVIigX','http://','Types','match','./exception/ApiError','object','handler','getApplications','apps-','startsWith','__metadata','apimit','22697190cHcThV','getAsync','/basic','661272iWXwEP','koa-send','__decorate','encrypted','./types/action','dir','routerName','basic','join','4210983Ltuzhb','_UNKNOW_','Configuration','body','_matchedRouteMeta','toLowerCase','https://','@midwayjs/koa','input','REQUEST_OBJ_CTX_KEY','decorator','runtime','MidwayEnvironmentService','constructor','key','@anncic-api/cache','environment','AppsConfigTmp','getAppDir','midwayLogger','14PVVdvh','parse','870dZwaFX','search','connection','INTERCEPT_KEY','InterceptTargetTmp','@midwayjs/core','staticFile','getBaseDir','metadata','readdirSync','isFunction','args','getClassMetadata','device','query','requestContext','Inject','upload','@anncic-api/validator','lastIndexOf','./service/ApiService','createLogger','MidwayConfigService','932540FNVgjZ','(((.+)+)+)+$','/app','filterConfig','dirs','@anncic-api/typeorm','loggerService','@midwayjs/static-file','/apps/','CustomConfiguration'];a3_0x556c=function(){return _0x46c66a;};return a3_0x556c();}Object['defineProperty'](exports,a3_0x57ddde(0x1a9),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a3_0x57ddde(0x15f)),ApiError_1=require(a3_0x57ddde(0x1cd)),ApiService_1=require(a3_0x57ddde(0x16e)),intercept_1=require(a3_0x57ddde(0x17f)),action_1=require(a3_0x57ddde(0x1dc)),fs=require('fs'),path=require('path'),koasend=require(a3_0x57ddde(0x1d9)),koa=require(a3_0x57ddde(0x14b)),upload=require('@midwayjs/busboy'),staticFile=require(a3_0x57ddde(0x178)),crossDomain=require(a3_0x57ddde(0x18a)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a3_0x57ddde(0x182)),anncic=require('@anncic-api/core'),anncicCache=require(a3_0x57ddde(0x153)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a3_0x57ddde(0x176)),anncicValidator=require(a3_0x57ddde(0x16c)),anncicHelper=require(a3_0x57ddde(0x188));let CustomConfiguration=class CustomConfiguration{async[a3_0x57ddde(0x192)](){const _0x56316d=a3_0x57ddde;await this[_0x56316d(0x174)](),await this[_0x56316d(0x1b1)](),await this[_0x56316d(0x17e)](),await this['hanlderApplications']();}async[a3_0x57ddde(0x17e)](){const _0xfa6ee0=a3_0x57ddde,_0x64d18a=this[_0xfa6ee0(0x183)]['getConfiguration'](),_0x4f03fc=(0x0,core_1[_0xfa6ee0(0x166)])(intercept_1[_0xfa6ee0(0x15d)],intercept_1[_0xfa6ee0(0x15e)])||{};this['decorator'][_0xfa6ee0(0x19a)](action_1[_0xfa6ee0(0x185)],_0x1dd9ed=>{const _0x1646c4=_0xfa6ee0;var _0xbb6708;const _0x121147=(0x0,core_1[_0x1646c4(0x166)])(action_1[_0x1646c4(0x195)],action_1[_0x1646c4(0x155)])||{},_0x2f14e9=_0x1dd9ed[_0x1646c4(0x162)],_0x2f0e61=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0x1dd9ed[_0x1646c4(0x1b3)])||{},_0x31b1f1=((_0xbb6708=_0x2f0e61===null||_0x2f0e61===void 0x0?void 0x0:_0x2f0e61['filepath'])===null||_0xbb6708===void 0x0?void 0x0:_0xbb6708[_0x1646c4(0x1ad)](0x0,_0x2f0e61[_0x1646c4(0x1b7)][_0x1646c4(0x16d)]('.')))||'',_0x5d0c1e=(_0x2f0e61===null||_0x2f0e61===void 0x0?void 0x0:_0x2f0e61[_0x1646c4(0x19f)])?(_0x121147===null||_0x121147===void 0x0?void 0x0:_0x121147[_0x2f0e61[_0x1646c4(0x19f)]])||{}:{};return{'before':async _0x362058=>{const _0x1dc2ef=_0x1646c4;var _0x1268fa,_0x4b4655,_0x20928f,_0xf7b04c;const _0x2bf28a=(_0x1268fa=_0x362058===null||_0x362058===void 0x0?void 0x0:_0x362058[_0x1dc2ef(0x1b3)])===null||_0x1268fa===void 0x0?void 0x0:_0x1268fa[core_2[_0x1dc2ef(0x14d)]],_0x30e55a=lodash[_0x1dc2ef(0x180)]({},_0x2bf28a['request'][_0x1dc2ef(0x1e4)]||_0x2bf28a[_0x1dc2ef(0x1af)][((_0x4b4655=_0x64d18a===null||_0x64d18a===void 0x0?void 0x0:_0x64d18a['bodyXml'])===null||_0x4b4655===void 0x0?void 0x0:_0x4b4655[_0x1dc2ef(0x152)])||_0x1dc2ef(0x1e4)]||{},_0x2bf28a[_0x1dc2ef(0x1af)]['query']||{});_0x2bf28a[_0x1dc2ef(0x1e5)]={'module':(_0x5d0c1e===null||_0x5d0c1e===void 0x0?void 0x0:_0x5d0c1e['name'])||'','routePath':''+_0x2bf28a['path'],'routeName':_0x2f0e61['routerOptions'][_0x1dc2ef(0x1be)]+'@'+_0x2f14e9[_0x1dc2ef(0x1de)],'routeMethod':((_0x2f14e9===null||_0x2f14e9===void 0x0?void 0x0:_0x2f14e9[_0x1dc2ef(0x189)])||_0x2bf28a[_0x1dc2ef(0x18c)]||'')['toLowerCase'](),'routeDescription':(_0x2f14e9===null||_0x2f14e9===void 0x0?void 0x0:_0x2f14e9['description'])||'','filemethod':_0x31b1f1+'@'+(_0x2f14e9[_0x1dc2ef(0x18c)]||'')};if(_0x2bf28a&&(_0x2f14e9===null||_0x2f14e9===void 0x0?void 0x0:_0x2f14e9[_0x1dc2ef(0x1d4)]))try{const _0xf9c3d5=((_0x20928f=_0x64d18a===null||_0x64d18a===void 0x0?void 0x0:_0x64d18a['anncicapi'])===null||_0x20928f===void 0x0?void 0x0:_0x20928f[_0x1dc2ef(0x18d)])&&typeof(_0x30e55a===null||_0x30e55a===void 0x0?void 0x0:_0x30e55a[_0x64d18a[_0x1dc2ef(0x1bb)][_0x1dc2ef(0x18d)]])==_0x1dc2ef(0x194)?JSON[_0x1dc2ef(0x159)](base64_decode(_0x30e55a[_0x64d18a['anncicapi'][_0x1dc2ef(0x18d)]])||'{}')||{}:((_0xf7b04c=_0x2bf28a===null||_0x2bf28a===void 0x0?void 0x0:_0x2bf28a[_0x1dc2ef(0x1af)])===null||_0xf7b04c===void 0x0?void 0x0:_0xf7b04c[_0x1dc2ef(0x186)])||{};if(!this[_0x1dc2ef(0x19b)]['checksign'](_0xf9c3d5))throw new AnnError(ApiError_1[_0x1dc2ef(0x1c4)][_0x1dc2ef(0x193)]);for(const _0xcb9c9f in _0xf9c3d5||{}){_0x2bf28a[_0x1dc2ef(0x186)][_0xcb9c9f]=_0xf9c3d5[_0xcb9c9f];}}catch(_0x5d6f60){if(_0x5d6f60 instanceof AnnError)throw _0x5d6f60;else throw new AnnError(ApiError_1[_0x1dc2ef(0x1c4)][_0x1dc2ef(0x1e2)]);}},'around':async _0x40e5c9=>{const _0x2b485f=_0x1646c4;var _0x57817d,_0x146ec4,_0xa558bc;const _0x20ff56=(_0x57817d=_0x40e5c9===null||_0x40e5c9===void 0x0?void 0x0:_0x40e5c9['target'])===null||_0x57817d===void 0x0?void 0x0:_0x57817d[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x20ff56&&(_0x2f14e9===null||_0x2f14e9===void 0x0?void 0x0:_0x2f14e9[_0x2b485f(0x1d4)])&&((_0x2f14e9===null||_0x2f14e9===void 0x0?void 0x0:_0x2f14e9['intercept'])||typeof(_0x2f14e9===null||_0x2f14e9===void 0x0?void 0x0:_0x2f14e9['intercept'])==_0x2b485f(0x1b6))){if(((_0x146ec4=_0x20ff56['headers'])===null||_0x146ec4===void 0x0?void 0x0:_0x146ec4[_0x2b485f(0x167)])&&((_0xa558bc=_0x4f03fc===null||_0x4f03fc===void 0x0?void 0x0:_0x4f03fc[_0x20ff56[_0x2b485f(0x186)][_0x2b485f(0x167)]])===null||_0xa558bc===void 0x0?void 0x0:_0xa558bc[_0x2b485f(0x19d)])>0x0)for(const _0x3d52e1 of _0x4f03fc[_0x20ff56[_0x2b485f(0x186)][_0x2b485f(0x167)]]||[]){if(core_1[_0x2b485f(0x1cb)]['isClass'](_0x3d52e1)){const _0x85670e=await _0x20ff56[_0x2b485f(0x169)][_0x2b485f(0x1d6)](_0x3d52e1);typeof(_0x85670e===null||_0x85670e===void 0x0?void 0x0:_0x85670e[_0x2b485f(0x1cc)])==_0x2b485f(0x1ba)?await _0x85670e[_0x2b485f(0x1cc)](_0x20ff56,typeof(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x18c)])==_0x2b485f(0x194)&&(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)])?_0x20ff56[_0x2b485f(0x18c)]['toLowerCase']()+'@'+(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)]):undefined,_0x2f14e9)&&await _0x85670e[_0x2b485f(0x1cf)](_0x20ff56,typeof(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56['method'])==_0x2b485f(0x194)&&(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)])?_0x20ff56['method'][_0x2b485f(0x149)]()+'@'+(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56['_matchedRoute']):undefined,_0x2f14e9):await _0x85670e['handler'](_0x20ff56,typeof(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56['method'])==_0x2b485f(0x194)&&(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)])?_0x20ff56[_0x2b485f(0x18c)]['toLowerCase']()+'@'+(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)]):undefined,_0x2f14e9);}else core_1['Types'][_0x2b485f(0x164)](_0x3d52e1)&&await _0x3d52e1(_0x20ff56,typeof(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x18c)])==_0x2b485f(0x194)&&(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)])?_0x20ff56[_0x2b485f(0x18c)][_0x2b485f(0x149)]()+'@'+(_0x20ff56===null||_0x20ff56===void 0x0?void 0x0:_0x20ff56[_0x2b485f(0x1c5)]):undefined,_0x2f14e9);}}return await _0x40e5c9['proceed'](..._0x40e5c9[_0x2b485f(0x165)]);},'afterThrow':(_0x33800e,_0x26ffcd)=>{throw _0x26ffcd;}};});}async[a3_0x57ddde(0x191)](){const _0x49fbd0=a3_0x57ddde,_0x427f09=this['config']['getConfiguration']();this['application'][_0x49fbd0(0x1d0)]([_0x49fbd0(0x1ac)])['forEach'](_0x442361=>{const _0x40f646=_0x49fbd0;(_0x442361===null||_0x442361===void 0x0?void 0x0:_0x442361[_0x40f646(0x1bf)])&&Object[_0x40f646(0x1c3)](_0x442361['context'],{'hosturl':{'configurable':![],'get':function(){const _0x14eb2f=_0x40f646;var _0x3cf891,_0xff2925,_0x439008,_0x2635af;if((this===null||this===void 0x0?void 0x0:this[_0x14eb2f(0x1a4)])&&!this[_0x14eb2f(0x1a4)][_0x14eb2f(0x1d2)]('http')){let _0x683d07=this[_0x14eb2f(0x1a4)]['split'](':');return['80','443'][_0x14eb2f(0x1a6)](_0x683d07===null||_0x683d07===void 0x0?void 0x0:_0x683d07[0x1])?''+(!!((_0xff2925=(_0x3cf891=this===null||this===void 0x0?void 0x0:this[_0x14eb2f(0x1bc)])===null||_0x3cf891===void 0x0?void 0x0:_0x3cf891['connection'])===null||_0xff2925===void 0x0?void 0x0:_0xff2925['encrypted'])||(_0x683d07===null||_0x683d07===void 0x0?void 0x0:_0x683d07[0x1])==_0x14eb2f(0x198)?_0x14eb2f(0x14a):_0x14eb2f(0x1ca))+_0x683d07[0x0]:''+(!!((_0x2635af=(_0x439008=this===null||this===void 0x0?void 0x0:this[_0x14eb2f(0x1bc)])===null||_0x439008===void 0x0?void 0x0:_0x439008[_0x14eb2f(0x15c)])===null||_0x2635af===void 0x0?void 0x0:_0x2635af[_0x14eb2f(0x1db)])?_0x14eb2f(0x14a):'http://')+this[_0x14eb2f(0x1a4)];}return'';}},'ok':{'value':function(_0x49204b,_0x2a85ae,_0x229cb9=0x0){return{'code':_0x229cb9,'data':_0x49204b,'extra':_0x2a85ae};}},'input':{'value':function(_0x46b3c3,_0x4b5037){const _0x5b8095=_0x40f646;var _0x527829;const _0x409c45=lodash[_0x5b8095(0x180)]({},this[_0x5b8095(0x1af)]['body']||this['request'][((_0x527829=_0x427f09===null||_0x427f09===void 0x0?void 0x0:_0x427f09[_0x5b8095(0x1c8)])===null||_0x527829===void 0x0?void 0x0:_0x527829[_0x5b8095(0x152)])||'body']||{},this[_0x5b8095(0x1af)][_0x5b8095(0x168)]||{});return _0x46b3c3?lodash[_0x5b8095(0x1bd)](_0x409c45,_0x46b3c3,_0x4b5037):_0x409c45;}},'when':{'value':async function(_0x44c899,_0x408962){const _0x93a6a7=_0x40f646,_0x268c8a=this[_0x93a6a7(0x14c)](_0x44c899,null);if(!lodash[_0x93a6a7(0x199)](_0x268c8a))return await _0x408962(_0x268c8a);}},'only':{'value':function(_0x12232d){const _0x3ff3a5=_0x40f646,_0x5440b7={};for(let _0x12e259=0x0;_0x12e259<_0x12232d['length'];_0x12e259++){lodash[_0x3ff3a5(0x19e)](_0x12232d[_0x12e259])&&_0x12232d[_0x12e259][_0x3ff3a5(0x19d)]>0x0&&lodash['isString'](_0x12232d[_0x12e259][0x0])&&(_0x5440b7[_0x12232d[_0x12e259][0x0]]=this['input'](_0x12232d[_0x12e259][0x0],_0x12232d[_0x12e259][_0x3ff3a5(0x19d)]>0x1?_0x12232d[_0x12e259][0x1]:null));}return _0x5440b7;}},'koasend':{'value':async function(_0x2d9a62,_0x3995e1){const _0x39f778=_0x40f646;if(_0x2d9a62&&!fs['existsSync'](_0x2d9a62)&&!fs[_0x39f778(0x1c2)](this[_0x39f778(0x1ab)][_0x39f778(0x156)]()+'/'+_0x2d9a62))return'文件不存在';return _0x2d9a62=fs['existsSync'](_0x2d9a62)?_0x2d9a62:this[_0x39f778(0x1ab)][_0x39f778(0x156)]()+'/'+_0x2d9a62,this[_0x39f778(0x1aa)](_0x3995e1||_0x2d9a62),await koasend(this,_0x2d9a62);}}});});}async[a3_0x57ddde(0x1b1)](){const _0x122150=a3_0x57ddde;var _0x627ff;if(fs[_0x122150(0x1c2)](this[_0x122150(0x1ab)]['getBaseDir']()+_0x122150(0x18f))&&fs['statSync'](this[_0x122150(0x1ab)]['getBaseDir']()+_0x122150(0x18f))[_0x122150(0x190)]()){const _0x2ac75f=this[_0x122150(0x183)][_0x122150(0x196)](),_0x2fd7f4=((_0x627ff=_0x2ac75f===null||_0x2ac75f===void 0x0?void 0x0:_0x2ac75f[_0x122150(0x157)])===null||_0x627ff===void 0x0?void 0x0:_0x627ff[_0x122150(0x1b0)])||{};!fs['existsSync'](this[_0x122150(0x1ab)][_0x122150(0x161)]()+_0x122150(0x173))&&(_0x2fd7f4['app']={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x122150(0x1b9)](),'fileLogName':_0x122150(0x1a0),'dir':path[_0x122150(0x1e0)](this[_0x122150(0x1ab)]['getAppDir'](),_0x122150(0x14f),'app')});!fs['existsSync'](this[_0x122150(0x1ab)][_0x122150(0x161)]()+_0x122150(0x1d7))&&(_0x2fd7f4[_0x122150(0x1df)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x122150(0x154)]['isDevelopmentEnvironment'](),'fileLogName':_0x122150(0x1b8),'dir':path[_0x122150(0x1e0)](this[_0x122150(0x1ab)][_0x122150(0x156)](),'runtime',_0x122150(0x1df))});for(const _0x5a82ff of fs[_0x122150(0x163)](this[_0x122150(0x1ab)][_0x122150(0x161)]()+_0x122150(0x18f))){if(!fs[_0x122150(0x1a2)](this[_0x122150(0x1ab)][_0x122150(0x161)]()+_0x122150(0x179)+_0x5a82ff)[_0x122150(0x190)]())continue;!(_0x2fd7f4===null||_0x2fd7f4===void 0x0?void 0x0:_0x2fd7f4[_0x5a82ff])&&(_0x2fd7f4[_0x5a82ff]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x122150(0x154)][_0x122150(0x1b9)](),'fileLogName':_0x5a82ff+_0x122150(0x1a3),'dir':path[_0x122150(0x1e0)](this[_0x122150(0x1ab)][_0x122150(0x156)](),_0x122150(0x14f),_0x122150(0x1d1)+_0x5a82ff)}),this[_0x122150(0x177)][_0x122150(0x16f)](_0x5a82ff,_0x2fd7f4[_0x5a82ff]);}Object[_0x122150(0x1ae)](_0x2fd7f4)[_0x122150(0x19d)]>0x0&&(!_0x2ac75f[_0x122150(0x157)]&&(_0x2ac75f[_0x122150(0x157)]={'default':{'maxSize':'1m','maxFiles':_0x122150(0x1b4),'dir':path[_0x122150(0x1e0)](this[_0x122150(0x1ab)][_0x122150(0x156)](),_0x122150(0x14f))}}),_0x2ac75f[_0x122150(0x157)][_0x122150(0x1b0)]=_0x2fd7f4),this[_0x122150(0x183)][_0x122150(0x1b2)](_0x2ac75f);}}async[a3_0x57ddde(0x174)](){const _0x6eba5f=a3_0x57ddde;var _0x50c2a9,_0x243e1c,_0x5dcea1,_0x2c89a4,_0x886589,_0x115e16;const _0x5d3819=this['config'][_0x6eba5f(0x196)]();((_0x243e1c=(_0x50c2a9=_0x5d3819===null||_0x5d3819===void 0x0?void 0x0:_0x5d3819[_0x6eba5f(0x1bb)])===null||_0x50c2a9===void 0x0?void 0x0:_0x50c2a9[_0x6eba5f(0x181)])===null||_0x243e1c===void 0x0?void 0x0:_0x243e1c[_0x6eba5f(0x1a1)])&&Object[_0x6eba5f(0x1ae)](_0x5d3819[_0x6eba5f(0x1bb)]['devices'])[_0x6eba5f(0x19d)]>0x1&&delete _0x5d3819['anncicapi'][_0x6eba5f(0x181)]['DEFAULT'];if((_0x5dcea1=_0x5d3819===null||_0x5d3819===void 0x0?void 0x0:_0x5d3819[_0x6eba5f(0x160)])===null||_0x5dcea1===void 0x0?void 0x0:_0x5dcea1[_0x6eba5f(0x175)])for(const _0x5163ca in _0x5d3819[_0x6eba5f(0x160)]['dirs']){((_0x2c89a4=_0x5d3819[_0x6eba5f(0x160)][_0x6eba5f(0x175)][_0x5163ca])===null||_0x2c89a4===void 0x0?void 0x0:_0x2c89a4['dir'])&&typeof((_0x886589=_0x5d3819[_0x6eba5f(0x160)]['dirs'][_0x5163ca])===null||_0x886589===void 0x0?void 0x0:_0x886589[_0x6eba5f(0x1dd)])==_0x6eba5f(0x194)&&!fs[_0x6eba5f(0x1c2)](_0x5d3819[_0x6eba5f(0x160)][_0x6eba5f(0x175)][_0x5163ca][_0x6eba5f(0x1dd)])&&(fs['mkdirSync'](_0x5d3819[_0x6eba5f(0x160)][_0x6eba5f(0x175)][_0x5163ca][_0x6eba5f(0x1dd)],{'recursive':!![]}),console[_0x6eba5f(0x18e)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x5d3819['staticFile'][_0x6eba5f(0x175)][_0x5163ca]['dir']));}((_0x115e16=_0x5d3819===null||_0x5d3819===void 0x0?void 0x0:_0x5d3819[_0x6eba5f(0x16b)])===null||_0x115e16===void 0x0?void 0x0:_0x115e16[_0x6eba5f(0x1a5)])&&!fs['existsSync'](_0x5d3819[_0x6eba5f(0x16b)]['tmpdir'])&&(fs[_0x6eba5f(0x1c0)](_0x5d3819[_0x6eba5f(0x16b)]['tmpdir'],{'recursive':!![]}),console['log']('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x5d3819['upload']['tmpdir'])),this[_0x6eba5f(0x183)]['addObject'](_0x5d3819);}};exports[a3_0x57ddde(0x17a)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0x57ddde(0x1a8)])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a3_0x57ddde(0x1ab),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x57ddde(0x1b5),core_2[a3_0x57ddde(0x170)])],CustomConfiguration[a3_0x57ddde(0x1a7)],'config',void 0x0),__decorate([(0x0,core_1[a3_0x57ddde(0x16a)])(),__metadata(a3_0x57ddde(0x1b5),core_2['MidwayDecoratorService'])],CustomConfiguration[a3_0x57ddde(0x1a7)],a3_0x57ddde(0x14e),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x57ddde(0x17b)])],CustomConfiguration[a3_0x57ddde(0x1a7)],a3_0x57ddde(0x17d),void 0x0),__decorate([(0x0,core_1[a3_0x57ddde(0x16a)])(),__metadata(a3_0x57ddde(0x1b5),core_2[a3_0x57ddde(0x150)])],CustomConfiguration['prototype'],a3_0x57ddde(0x154),void 0x0),__decorate([(0x0,core_1[a3_0x57ddde(0x16a)])(),__metadata(a3_0x57ddde(0x1b5),core_1['MidwayLoggerService'])],CustomConfiguration[a3_0x57ddde(0x1a7)],a3_0x57ddde(0x177),void 0x0),__decorate([(0x0,core_1[a3_0x57ddde(0x16a)])(),__metadata(a3_0x57ddde(0x1b5),ApiService_1[a3_0x57ddde(0x19b)])],CustomConfiguration[a3_0x57ddde(0x1a7)],a3_0x57ddde(0x19b),void 0x0),exports[a3_0x57ddde(0x17a)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0x57ddde(0x1e3)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x57ddde(0x18b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0xf2d7e0=a4_0x4858;(function(_0x26811b,_0x215bea){const _0x1f8ef3=a4_0x4858,_0x5dd106=_0x26811b();while(!![]){try{const _0x29ec17=parseInt(_0x1f8ef3(0xae))/0x1*(parseInt(_0x1f8ef3(0xe5))/0x2)+parseInt(_0x1f8ef3(0xa4))/0x3+-parseInt(_0x1f8ef3(0xa2))/0x4*(-parseInt(_0x1f8ef3(0xcd))/0x5)+parseInt(_0x1f8ef3(0xd3))/0x6+parseInt(_0x1f8ef3(0x9a))/0x7+parseInt(_0x1f8ef3(0xbc))/0x8+parseInt(_0x1f8ef3(0xbd))/0x9*(-parseInt(_0x1f8ef3(0xb6))/0xa);if(_0x29ec17===_0x215bea)break;else _0x5dd106['push'](_0x5dd106['shift']());}catch(_0x9b55d1){_0x5dd106['push'](_0x5dd106['shift']());}}}(a4_0x3186,0x5e836));const a4_0x39fb92=(function(){let _0x5c50de=!![];return function(_0x46e59a,_0x2ba793){const _0x3e0f7c=_0x5c50de?function(){const _0xde531a=a4_0x4858;if(_0x2ba793){const _0x8936a2=_0x2ba793[_0xde531a(0xc5)](_0x46e59a,arguments);return _0x2ba793=null,_0x8936a2;}}:function(){};return _0x5c50de=![],_0x3e0f7c;};}()),a4_0x2f6a37=a4_0x39fb92(this,function(){const _0x49342f=a4_0x4858;return a4_0x2f6a37[_0x49342f(0xbf)]()['search'](_0x49342f(0xb4))['toString']()[_0x49342f(0xd1)](a4_0x2f6a37)[_0x49342f(0x9e)]('(((.+)+)+)+$');});a4_0x2f6a37();'use strict';var _a,_b;function a4_0x4858(_0x28a717,_0x80723d){const _0xa5f9f6=a4_0x3186();return a4_0x4858=function(_0x2f6a37,_0x39fb92){_0x2f6a37=_0x2f6a37-0x9a;let _0x31868d=_0xa5f9f6[_0x2f6a37];return _0x31868d;},a4_0x4858(_0x28a717,_0x80723d);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0xf2d7e0(0xe2)]=Action,exports[a4_0xf2d7e0(0xc0)]=ActionApi,exports[a4_0xf2d7e0(0xb9)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0xf2d7e0(0xab)),core_1=require(a4_0xf2d7e0(0xa9)),core_2=require(a4_0xf2d7e0(0xa9)),action_1=require(a4_0xf2d7e0(0xdd)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0xf2d7e0(0x9f)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x43ea24,_0x2c0b1a,_0x2b5997={'middleware':[],'sensitive':!![]}){return _0x925ed1=>{const _0x197da7=a4_0x4858;var _0x587af5;_0x2b5997['tagName']=_0x2c0b1a;const _0x48b66d=parseRoute(_0x43ea24);if(_0x48b66d[_0x197da7(0xa8)]){_0x2b5997['prefix']=_0x2b5997['prefix']?'/'+_0x48b66d['module']+'/'+_0x2b5997[_0x197da7(0xa7)]:'/'+_0x48b66d['route'];_0x48b66d[_0x197da7(0xa7)]&&(_0x2b5997[_0x197da7(0xa7)]='/'+_0x48b66d['prefix']+'/'+_0x2b5997['prefix']);_0x2b5997[_0x197da7(0xa7)]=_0x2b5997[_0x197da7(0xa7)][_0x197da7(0xa1)]()[_0x197da7(0xc8)](/\/{2,}/g,'/');const _0x5f4581=getModuleConfig(_0x48b66d['rootpath']+_0x197da7(0xd6),_0x48b66d[_0x197da7(0xa8)],lodash[_0x197da7(0x9d)](_0x48b66d[_0x197da7(0xba)],'ts')?'ts':'js');if(lodash[_0x197da7(0xbe)](_0x5f4581[_0x197da7(0xd2)])&&_0x5f4581['middleware'][_0x197da7(0xde)]>0x0)for(let _0x36c04d in _0x5f4581[_0x197da7(0xd2)]){if(((_0x587af5=_0x5f4581===null||_0x5f4581===void 0x0?void 0x0:_0x5f4581[_0x197da7(0xb8)])===null||_0x587af5===void 0x0?void 0x0:_0x587af5[_0x197da7(0xde)])>0x0&&_0x5f4581[_0x197da7(0xb8)][_0x197da7(0xc9)](_0x5f4581[_0x197da7(0xd2)][_0x36c04d])!=-0x1)continue;_0x2b5997[_0x197da7(0xd2)][_0x197da7(0xd9)](_0x5f4581['middleware'][_0x36c04d]);}(0x0,core_1['saveModule'])(action_1[_0x197da7(0xe3)],_0x925ed1),(0x0,core_1['Controller'])(_0x2b5997['prefix'],_0x2b5997)(_0x925ed1),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x2b5997[_0x197da7(0xa7)],'pprefix':_0x48b66d[_0x197da7(0xa7)],'module':_0x48b66d[_0x197da7(0xa8)],'filepath':_0x48b66d['filepath'],'routerOptions':_0x2b5997},_0x925ed1);}else _0x2b5997['prefix']=_0x2b5997[_0x197da7(0xa7)]?'/'+_0x2b5997[_0x197da7(0xa7)]:'/'+_0x48b66d[_0x197da7(0xe1)],_0x48b66d['prefix']&&(_0x2b5997[_0x197da7(0xa7)]='/'+_0x48b66d['prefix']+'/'+_0x2b5997[_0x197da7(0xa7)]),_0x2b5997[_0x197da7(0xa7)]=_0x2b5997['prefix'][_0x197da7(0xa1)]()[_0x197da7(0xc8)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x197da7(0xe3)],_0x925ed1),(0x0,core_1[_0x197da7(0xcb)])(_0x2b5997[_0x197da7(0xa7)],_0x2b5997)(_0x925ed1),(0x0,core_1[_0x197da7(0xc7)])(action_1['ACTION_KEY'],{'prefix':_0x2b5997[_0x197da7(0xa7)],'module':_0x48b66d[_0x197da7(0xa8)],'pprefix':_0x48b66d[_0x197da7(0xa7)],'filepath':_0x48b66d[_0x197da7(0xba)],'routerOptions':_0x2b5997},_0x925ed1);};}Action[a4_0xf2d7e0(0xa0)]=function(_0x21edbe,_0x3d6179='/',_0x3ed3dc={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x16dbbe,_0x2da1ca,_0x31fa82)=>{const _0x5d03eb=a4_0x4858;ActionApi(_0x21edbe,_0x5d03eb(0xa0),_0x3d6179,_0x3ed3dc)(_0x16dbbe,_0x2da1ca,_0x31fa82);};},Action['post']=function(_0x16f0a8,_0x3b363d='/',_0x549e08={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x8f91f8,_0x339b95,_0x2895dd)=>{const _0x6e2988=a4_0x4858;ActionApi(_0x16f0a8,_0x6e2988(0x9c),_0x3b363d,_0x549e08)(_0x8f91f8,_0x339b95,_0x2895dd);};};function ActionApi(_0x24dfeb,_0x1be3d8=a4_0xf2d7e0(0xa0),_0x3dff73='/',_0x487b36={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2c4858,_0x54eb7c,_0x38d09c)=>{const _0x442d06=a4_0x4858;var _0x13cf23,_0x25f1a8,_0xcae296;!_0x487b36[_0x442d06(0xd2)]&&(_0x487b36[_0x442d06(0xd2)]=[]);!((_0x13cf23=_0x487b36===null||_0x487b36===void 0x0?void 0x0:_0x487b36[_0x442d06(0xaf)])===null||_0x13cf23===void 0x0?void 0x0:_0x13cf23[_0x442d06(0xb7)])&&(_0x487b36[_0x442d06(0xaf)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x442d06(0xd8)}});if(!_0x3dff73)_0x3dff73='/';else typeof _0x3dff73==_0x442d06(0xd8)&&(!_0x3dff73['startsWith']('/')&&!_0x3dff73['startsWith']('-')&&(_0x3dff73='/'+_0x3dff73));typeof _0x487b36[_0x442d06(0xe6)]=='undefined'&&(_0x487b36[_0x442d06(0xe6)]=!![]);if(((_0x25f1a8=_0x487b36===null||_0x487b36===void 0x0?void 0x0:_0x487b36[_0x442d06(0xd2)])===null||_0x25f1a8===void 0x0?void 0x0:_0x25f1a8[_0x442d06(0xde)])>0x0&&((_0xcae296=_0x487b36===null||_0x487b36===void 0x0?void 0x0:_0x487b36['middlewareIgnore'])===null||_0xcae296===void 0x0?void 0x0:_0xcae296['length'])>0x0)for(let _0x429824 in _0x487b36[_0x442d06(0xd2)]){_0x487b36['middlewareIgnore'][_0x442d06(0xc9)](_0x487b36[_0x442d06(0xd2)][_0x429824])!==-0x1&&(_0x487b36[_0x442d06(0xd2)][_0x429824]=null);}_0x487b36[_0x442d06(0xad)]=_0x24dfeb,(0x0,validator_1[_0x442d06(0xb1)])(_0x487b36[_0x442d06(0xaf)])(_0x2c4858,_0x54eb7c,_0x38d09c),(0x0,core_2[_0x442d06(0xa6)])(Object['assign'](_0x487b36,{'path':_0x3dff73,'requestMethod':(_0x1be3d8||'get')[_0x442d06(0xa1)]()}))(_0x2c4858,_0x54eb7c,_0x38d09c),(0x0,core_2[_0x442d06(0xb5)])(action_1[_0x442d06(0xc4)],{'path':_0x3dff73,'method':_0x54eb7c,'apimit':_0x487b36[_0x442d06(0xe6)],'intercept':_0x487b36['intercept'],'routerName':_0x487b36[_0x442d06(0xad)],'description':_0x487b36[_0x442d06(0xb3)],'middleware':(_0x487b36[_0x442d06(0xd2)]||[])[_0x442d06(0x9b)](_0x248de5=>!!_0x248de5),'requestMethod':(_0x1be3d8||_0x442d06(0xa0))[_0x442d06(0xa1)]()},_0x2c4858),(0x0,core_2[_0x442d06(0xc2)])(action_1[_0x442d06(0xc4)],{'path':_0x3dff73,'method':_0x54eb7c,'apimit':_0x487b36['apimit'],'intercept':_0x487b36[_0x442d06(0xe7)],'routerName':_0x487b36[_0x442d06(0xad)],'description':_0x487b36[_0x442d06(0xb3)],'middleware':(_0x487b36[_0x442d06(0xd2)]||[])[_0x442d06(0x9b)](_0x737d08=>!!_0x737d08),'requestMethod':(_0x1be3d8||'get')[_0x442d06(0xa1)]()})(_0x2c4858,_0x54eb7c,_0x38d09c);};}function parseRoute(_0x5b94be){const _0x40bf75=a4_0xf2d7e0;_0x5b94be=_0x5b94be[_0x40bf75(0xc8)](/(\\|\/)/g,'/');const _0x131bc9=process['cwd']()[_0x40bf75(0xc8)](/(\\|\/)/g,'/'),_0x4bad6f=_0x5b94be[_0x40bf75(0xd5)](0x0,_0x131bc9[_0x40bf75(0xde)]+_0x5b94be[_0x40bf75(0xd5)](_0x131bc9[_0x40bf75(0xde)]+0x1)[_0x40bf75(0xc9)]('/')+0x1),_0x11ba2f=_0x5b94be[_0x40bf75(0xd5)](_0x4bad6f['length']+0x1)[_0x40bf75(0xc8)](/(\\|\/)/g,'/'),_0x4b310d={'route':'','prefix':![],'module':![],'rootpath':_0x4bad6f,'filepath':_0x11ba2f};if(_0x11ba2f[_0x40bf75(0xac)]('app/controller/')||_0x11ba2f[_0x40bf75(0xac)]('basic/controller/')){const _0x4ecc8e=_0x11ba2f['substring']((_0x11ba2f['startsWith'](_0x40bf75(0xca))?_0x40bf75(0xca):_0x40bf75(0xe4))[_0x40bf75(0xde)])[_0x40bf75(0xb0)]('/')[_0x40bf75(0x9b)](_0x25d098=>_0x25d098&&_0x25d098[_0x40bf75(0xa5)]());return _0x4ecc8e[_0x40bf75(0xde)]>0x1&&(_0x4b310d[_0x40bf75(0xa7)]=_0x4ecc8e[0x0][_0x40bf75(0xa1)](),_0x4ecc8e[_0x40bf75(0xcf)](0x0,0x1)),_0x4b310d[_0x40bf75(0xe1)]=('/'+_0x4ecc8e[_0x40bf75(0xda)]('/'))[_0x40bf75(0xc8)](/(\.ts|\.js)$/,'')[_0x40bf75(0xc8)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x40bf75(0xda)]('-')[_0x40bf75(0xa1)]()[_0x40bf75(0xc8)](/\/\-/g,'/'),_0x4b310d[_0x40bf75(0xe1)][_0x40bf75(0x9d)](_0x40bf75(0xd4))&&(_0x4b310d[_0x40bf75(0xe1)]=_0x4b310d[_0x40bf75(0xe1)][_0x40bf75(0xd5)](0x0,_0x4b310d['route'][_0x40bf75(0xde)]-0x7)),_0x4b310d['route']['endsWith'](_0x40bf75(0xdb))&&(_0x4b310d[_0x40bf75(0xe1)]=_0x4b310d['route'][_0x40bf75(0xd5)](0x0,_0x4b310d[_0x40bf75(0xe1)][_0x40bf75(0xde)]-0xb)),_0x4b310d;}else{if(_0x11ba2f['startsWith']('apps/')){const _0x4b860a=_0x11ba2f[_0x40bf75(0xd5)](0x0,_0x11ba2f[_0x40bf75(0xc9)]('/apps/')+0x5),_0x4035da=_0x11ba2f[_0x40bf75(0xd5)](_0x4b860a[_0x40bf75(0xde)]+0x1)[_0x40bf75(0xc8)](/(\\|\/)/g,'/')[_0x40bf75(0xb0)]('/')[0x0];if(_0x11ba2f[_0x40bf75(0xac)](_0x40bf75(0xd0)+_0x4035da+'/controller/')){const _0x76552=_0x11ba2f[_0x40bf75(0xd5)]((_0x4b860a+'/'+_0x4035da+_0x40bf75(0xa3))[_0x40bf75(0xde)])[_0x40bf75(0xb0)]('/')[_0x40bf75(0x9b)](_0x1af924=>_0x1af924&&_0x1af924['trim']());return _0x76552[_0x40bf75(0xde)]>0x1&&(_0x4b310d[_0x40bf75(0xa7)]=_0x76552[0x0][_0x40bf75(0xa1)](),_0x76552['splice'](0x0,0x1)),_0x4b310d[_0x40bf75(0xa8)]=_0x4035da,_0x4b310d[_0x40bf75(0xe1)]=('/'+_0x4035da+'/'+_0x76552[_0x40bf75(0xda)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x40bf75(0xce)](/[\/|A-Z]*[^A-Z]+/g)[_0x40bf75(0xda)]('-')[_0x40bf75(0xa1)]()[_0x40bf75(0xc8)](/\/\-/g,'/'),_0x4b310d[_0x40bf75(0xe1)]['endsWith']('-action')&&(_0x4b310d[_0x40bf75(0xe1)]=_0x4b310d[_0x40bf75(0xe1)][_0x40bf75(0xd5)](0x0,_0x4b310d['route']['length']-0x7)),_0x4b310d[_0x40bf75(0xe1)]['endsWith'](_0x40bf75(0xdb))&&(_0x4b310d['route']=_0x4b310d[_0x40bf75(0xe1)]['substring'](0x0,_0x4b310d[_0x40bf75(0xe1)]['length']-0xb)),_0x4b310d;}throw new Error(_0x11ba2f+_0x40bf75(0xc3)+_0x4035da+_0x40bf75(0xdc));}}throw new Error(_0x11ba2f+_0x40bf75(0xd7));}const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1[a4_0xf2d7e0(0xaa)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x161385,_0x3fcae8,_0x1857cd){const _0x50b5bc=a4_0xf2d7e0;if(Object[_0x50b5bc(0xbb)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x3fcae8])||{})[_0x50b5bc(0xde)]==0x0){let _0x5579b7={};if(NODE_ENV&&fs[_0x50b5bc(0xe0)](_0x161385+'/'+_0x3fcae8+_0x50b5bc(0xdf)+NODE_ENV+'.'+_0x1857cd)){const _0x27103e=include(_0x161385+'/'+_0x3fcae8+'/config.'+NODE_ENV+'.'+_0x1857cd);Object[_0x50b5bc(0xcc)](_0x27103e)[_0x50b5bc(0xde)]>0x0&&(_0x5579b7=lodash[_0x50b5bc(0xb2)](_0x5579b7,_0x27103e));}if(fs['existsSync'](_0x161385+'/'+_0x3fcae8+'/config.default.'+_0x1857cd)){const _0x110dec=include(_0x161385+'/'+_0x3fcae8+_0x50b5bc(0xc6)+_0x1857cd);Object[_0x50b5bc(0xcc)](_0x110dec)[_0x50b5bc(0xde)]>0x0&&(_0x5579b7=lodash['defaultsDeep'](_0x5579b7,_0x110dec));}if(fs[_0x50b5bc(0xe0)](_0x161385+'/'+_0x3fcae8+'/config.'+_0x1857cd)){const _0x4bcc60=include(_0x161385+'/'+_0x3fcae8+_0x50b5bc(0xdf)+_0x1857cd);Object[_0x50b5bc(0xcc)](_0x4bcc60)[_0x50b5bc(0xde)]>0x0&&(_0x5579b7=lodash['defaultsDeep'](_0x5579b7,_0x4bcc60));}moduleConfigTmp[_0x3fcae8]=_0x5579b7,(0x0,core_1[_0x50b5bc(0xc7)])(action_1[_0x50b5bc(0xaa)],moduleConfigTmp,action_1[_0x50b5bc(0xc1)]);}return moduleConfigTmp[_0x3fcae8];}function a4_0x3186(){const _0x44ef5d=['1935aHRcCJ','isArray','toString','ActionApi','AppsConfigTmp','createCustomMethodDecorator','\x20文件请放在apps/','ACTION_ROUTE_KEY','apply','/config.default.','saveClassMetadata','replace','indexOf','app/controller/','Controller','keys','15mrtfpz','match','splice','apps/','constructor','middleware','794748KNfuzL','-action','substring','/apps','\x20文件请放在app/controller/文件下','string','push','join','-controller','/controller/文件下','../types/action','length','/config.','existsSync','route','Action','ACTION_KEY','basic/controller/','86tpkbGG','apimit','intercept','5247942fvKrAD','filter','post','endsWith','search','env','get','toLowerCase','382188kUFCZy','/controller/','1423755SzKYpt','trim','RequestMapping','prefix','module','@midwayjs/core','APPSCONFIG_KEY','@anncic-api/validator','startsWith','routerName','17158VmfnLG','validate','split','Validator','defaultsDeep','description','(((.+)+)+)+$','attachClassMetadata','124330mvVrfI','validationOptions','middlewareIgnore','parseRoute','filepath','values','5432296PpmaTB'];a4_0x3186=function(){return _0x44ef5d;};return a4_0x3186();}
|
|
1
|
+
const a4_0x22cdb9=a4_0x3cd5;(function(_0x93d7a,_0x4399f0){const _0x1a71cd=a4_0x3cd5,_0x289e8c=_0x93d7a();while(!![]){try{const _0x3120a6=parseInt(_0x1a71cd(0x1f3))/0x1*(parseInt(_0x1a71cd(0x213))/0x2)+-parseInt(_0x1a71cd(0x1f7))/0x3*(parseInt(_0x1a71cd(0x217))/0x4)+parseInt(_0x1a71cd(0x1e6))/0x5+-parseInt(_0x1a71cd(0x1f8))/0x6*(parseInt(_0x1a71cd(0x1f1))/0x7)+parseInt(_0x1a71cd(0x20a))/0x8*(-parseInt(_0x1a71cd(0x1eb))/0x9)+parseInt(_0x1a71cd(0x1e7))/0xa+-parseInt(_0x1a71cd(0x220))/0xb*(-parseInt(_0x1a71cd(0x230))/0xc);if(_0x3120a6===_0x4399f0)break;else _0x289e8c['push'](_0x289e8c['shift']());}catch(_0xcff4a9){_0x289e8c['push'](_0x289e8c['shift']());}}}(a4_0x5e69,0x2dff7));function a4_0x5e69(){const _0x3c98e9=['parseRoute','__esModule','filepath','validate','889UjwUtu','app/controller/','260FWBwcn','createCustomMethodDecorator','get','MIDWAY_SERVER_ENV','331179xuNFTf','10554zTqnld','\x20文件请放在app/controller/文件下','-controller','keys','/apps/','\x20文件请放在apps/','env','/controller/','AppsConfigTmp','substring','RequestMapping','/controller/文件下','join','assign','post','endsWith','splice','intercept','8sjaiSl','(((.+)+)+)+$','string','defaultsDeep','APPSCONFIG_KEY','isArray','saveClassMetadata','routerName','middleware','1462tyqNMU','length','Controller','constructor','8gSDkxv','/config.default.','saveModule','ACTION_ROUTE_KEY','toString','Validator','@midwayjs/core','apps/','values','54758unMoDr','startsWith','undefined','match','module','basic/controller/','description','filter','ACTION_KEY','replace','cwd','ActionApi','route','prefix','existsSync','split','900OOHKnB','@anncic-api/validator','/config.','../types/action','apimit','toLowerCase','search','/apps','attachClassMetadata','-action','255525sUIkHr','3518290JCRZYk','indexOf','middlewareIgnore','tagName','3003822AibkxC','Action'];a4_0x5e69=function(){return _0x3c98e9;};return a4_0x5e69();}const a4_0x17eee1=(function(){let _0x4b1827=!![];return function(_0x298f55,_0x3c9137){const _0x1f1813=_0x4b1827?function(){if(_0x3c9137){const _0x21dcad=_0x3c9137['apply'](_0x298f55,arguments);return _0x3c9137=null,_0x21dcad;}}:function(){};return _0x4b1827=![],_0x1f1813;};}()),a4_0x396430=a4_0x17eee1(this,function(){const _0x1ed9b3=a4_0x3cd5;return a4_0x396430[_0x1ed9b3(0x21b)]()[_0x1ed9b3(0x1e2)]('(((.+)+)+)+$')['toString']()[_0x1ed9b3(0x216)](a4_0x396430)[_0x1ed9b3(0x1e2)](_0x1ed9b3(0x20b));});a4_0x396430();function a4_0x3cd5(_0x127539,_0x2650dd){const _0x4aa7d9=a4_0x5e69();return a4_0x3cd5=function(_0x396430,_0x17eee1){_0x396430=_0x396430-0x1df;let _0x5e69fa=_0x4aa7d9[_0x396430];return _0x5e69fa;},a4_0x3cd5(_0x127539,_0x2650dd);}'use strict';var _a,_b;Object['defineProperty'](exports,a4_0x22cdb9(0x1ee),{'value':!![]}),exports[a4_0x22cdb9(0x1ec)]=Action,exports[a4_0x22cdb9(0x22b)]=ActionApi,exports[a4_0x22cdb9(0x1ed)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x22cdb9(0x231)),core_1=require('@midwayjs/core'),core_2=require(a4_0x22cdb9(0x21d)),action_1=require(a4_0x22cdb9(0x1df)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x22cdb9(0x1fe)])===null||_a===void 0x0?void 0x0:_a[a4_0x22cdb9(0x1f6)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x22cdb9(0x1fe)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x221695,_0x533f4c,_0x102676={'middleware':[],'sensitive':!![]}){return _0xa0840f=>{const _0x36fd03=a4_0x3cd5;var _0x3370c1;_0x102676[_0x36fd03(0x1ea)]=_0x533f4c;const _0x4e3d6f=parseRoute(_0x221695);if(_0x4e3d6f[_0x36fd03(0x224)]){_0x102676[_0x36fd03(0x22d)]=_0x102676[_0x36fd03(0x22d)]?'/'+_0x4e3d6f[_0x36fd03(0x224)]+'/'+_0x102676[_0x36fd03(0x22d)]:'/'+_0x4e3d6f[_0x36fd03(0x22c)];_0x4e3d6f['prefix']&&(_0x102676[_0x36fd03(0x22d)]='/'+_0x4e3d6f[_0x36fd03(0x22d)]+'/'+_0x102676['prefix']);_0x102676[_0x36fd03(0x22d)]=_0x102676[_0x36fd03(0x22d)][_0x36fd03(0x1e1)]()[_0x36fd03(0x229)](/\/{2,}/g,'/');const _0x283af2=getModuleConfig(_0x4e3d6f['rootpath']+_0x36fd03(0x1e3),_0x4e3d6f[_0x36fd03(0x224)],lodash[_0x36fd03(0x207)](_0x4e3d6f[_0x36fd03(0x1ef)],'ts')?'ts':'js');if(lodash[_0x36fd03(0x20f)](_0x283af2[_0x36fd03(0x212)])&&_0x283af2['middleware'][_0x36fd03(0x214)]>0x0)for(let _0x4a81fc in _0x283af2[_0x36fd03(0x212)]){if(((_0x3370c1=_0x283af2===null||_0x283af2===void 0x0?void 0x0:_0x283af2['middlewareIgnore'])===null||_0x3370c1===void 0x0?void 0x0:_0x3370c1[_0x36fd03(0x214)])>0x0&&_0x283af2['middlewareIgnore'][_0x36fd03(0x1e8)](_0x283af2[_0x36fd03(0x212)][_0x4a81fc])!=-0x1)continue;_0x102676[_0x36fd03(0x212)]['push'](_0x283af2[_0x36fd03(0x212)][_0x4a81fc]);}(0x0,core_1[_0x36fd03(0x219)])(action_1[_0x36fd03(0x228)],_0xa0840f),(0x0,core_1[_0x36fd03(0x215)])(_0x102676[_0x36fd03(0x22d)],_0x102676)(_0xa0840f),(0x0,core_1[_0x36fd03(0x210)])(action_1[_0x36fd03(0x228)],{'prefix':_0x102676['prefix'],'pprefix':_0x4e3d6f[_0x36fd03(0x22d)],'module':_0x4e3d6f['module'],'filepath':_0x4e3d6f[_0x36fd03(0x1ef)],'routerOptions':_0x102676},_0xa0840f);}else _0x102676['prefix']=_0x102676[_0x36fd03(0x22d)]?'/'+_0x102676[_0x36fd03(0x22d)]:'/'+_0x4e3d6f['route'],_0x4e3d6f[_0x36fd03(0x22d)]&&(_0x102676[_0x36fd03(0x22d)]='/'+_0x4e3d6f[_0x36fd03(0x22d)]+'/'+_0x102676['prefix']),_0x102676['prefix']=_0x102676[_0x36fd03(0x22d)][_0x36fd03(0x1e1)]()[_0x36fd03(0x229)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x36fd03(0x228)],_0xa0840f),(0x0,core_1['Controller'])(_0x102676[_0x36fd03(0x22d)],_0x102676)(_0xa0840f),(0x0,core_1['saveClassMetadata'])(action_1[_0x36fd03(0x228)],{'prefix':_0x102676[_0x36fd03(0x22d)],'module':_0x4e3d6f[_0x36fd03(0x224)],'pprefix':_0x4e3d6f[_0x36fd03(0x22d)],'filepath':_0x4e3d6f[_0x36fd03(0x1ef)],'routerOptions':_0x102676},_0xa0840f);};}Action[a4_0x22cdb9(0x1f5)]=function(_0x3e666f,_0x451d6b='/',_0x5d445d={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1e3dd5,_0x522a42,_0x5d01bb)=>{ActionApi(_0x3e666f,'get',_0x451d6b,_0x5d445d)(_0x1e3dd5,_0x522a42,_0x5d01bb);};},Action[a4_0x22cdb9(0x206)]=function(_0x1df470,_0x23d5ed='/',_0x3ca7a3={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x253245,_0x150af4,_0x376b3d)=>{const _0x5a23cd=a4_0x3cd5;ActionApi(_0x1df470,_0x5a23cd(0x206),_0x23d5ed,_0x3ca7a3)(_0x253245,_0x150af4,_0x376b3d);};};function ActionApi(_0x17d375,_0x286fed=a4_0x22cdb9(0x1f5),_0x33d4a3='/',_0x95b026={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x11676d,_0x308c0f,_0x24517a)=>{const _0x3827d1=a4_0x3cd5;var _0x5cb2ff,_0x30feeb,_0x552e67;!_0x95b026[_0x3827d1(0x212)]&&(_0x95b026[_0x3827d1(0x212)]=[]);!((_0x5cb2ff=_0x95b026===null||_0x95b026===void 0x0?void 0x0:_0x95b026['validate'])===null||_0x5cb2ff===void 0x0?void 0x0:_0x5cb2ff['validationOptions'])&&(_0x95b026[_0x3827d1(0x1f0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3827d1(0x20c)}});if(!_0x33d4a3)_0x33d4a3='/';else typeof _0x33d4a3=='string'&&(!_0x33d4a3[_0x3827d1(0x221)]('/')&&!_0x33d4a3[_0x3827d1(0x221)]('-')&&(_0x33d4a3='/'+_0x33d4a3));typeof _0x95b026[_0x3827d1(0x1e0)]==_0x3827d1(0x222)&&(_0x95b026[_0x3827d1(0x1e0)]=!![]);if(((_0x30feeb=_0x95b026===null||_0x95b026===void 0x0?void 0x0:_0x95b026['middleware'])===null||_0x30feeb===void 0x0?void 0x0:_0x30feeb[_0x3827d1(0x214)])>0x0&&((_0x552e67=_0x95b026===null||_0x95b026===void 0x0?void 0x0:_0x95b026[_0x3827d1(0x1e9)])===null||_0x552e67===void 0x0?void 0x0:_0x552e67[_0x3827d1(0x214)])>0x0)for(let _0x381206 in _0x95b026[_0x3827d1(0x212)]){_0x95b026[_0x3827d1(0x1e9)][_0x3827d1(0x1e8)](_0x95b026['middleware'][_0x381206])!==-0x1&&(_0x95b026[_0x3827d1(0x212)][_0x381206]=null);}_0x95b026[_0x3827d1(0x211)]=_0x17d375,(0x0,validator_1[_0x3827d1(0x21c)])(_0x95b026[_0x3827d1(0x1f0)])(_0x11676d,_0x308c0f,_0x24517a),(0x0,core_2[_0x3827d1(0x202)])(Object[_0x3827d1(0x205)](_0x95b026,{'path':_0x33d4a3,'requestMethod':(_0x286fed||_0x3827d1(0x1f5))[_0x3827d1(0x1e1)]()}))(_0x11676d,_0x308c0f,_0x24517a),(0x0,core_2[_0x3827d1(0x1e4)])(action_1[_0x3827d1(0x21a)],{'path':_0x33d4a3,'method':_0x308c0f,'apimit':_0x95b026['apimit'],'intercept':_0x95b026[_0x3827d1(0x209)],'routerName':_0x95b026[_0x3827d1(0x211)],'description':_0x95b026['description'],'middleware':(_0x95b026['middleware']||[])[_0x3827d1(0x227)](_0x2082dc=>!!_0x2082dc),'requestMethod':(_0x286fed||_0x3827d1(0x1f5))[_0x3827d1(0x1e1)]()},_0x11676d),(0x0,core_2[_0x3827d1(0x1f4)])(action_1[_0x3827d1(0x21a)],{'path':_0x33d4a3,'method':_0x308c0f,'apimit':_0x95b026[_0x3827d1(0x1e0)],'intercept':_0x95b026[_0x3827d1(0x209)],'routerName':_0x95b026['routerName'],'description':_0x95b026[_0x3827d1(0x226)],'middleware':(_0x95b026[_0x3827d1(0x212)]||[])[_0x3827d1(0x227)](_0x26a940=>!!_0x26a940),'requestMethod':(_0x286fed||_0x3827d1(0x1f5))[_0x3827d1(0x1e1)]()})(_0x11676d,_0x308c0f,_0x24517a);};}function parseRoute(_0x541258){const _0x15ffb9=a4_0x22cdb9;_0x541258=_0x541258[_0x15ffb9(0x229)](/(\\|\/)/g,'/');const _0x297fc3=process[_0x15ffb9(0x22a)]()[_0x15ffb9(0x229)](/(\\|\/)/g,'/'),_0x2cfba7=_0x541258['substring'](0x0,_0x297fc3['length']+_0x541258[_0x15ffb9(0x201)](_0x297fc3[_0x15ffb9(0x214)]+0x1)[_0x15ffb9(0x1e8)]('/')+0x1),_0x1c68c7=_0x541258[_0x15ffb9(0x201)](_0x2cfba7['length']+0x1)[_0x15ffb9(0x229)](/(\\|\/)/g,'/'),_0x3da196={'route':'','prefix':![],'module':![],'rootpath':_0x2cfba7,'filepath':_0x1c68c7};if(_0x1c68c7[_0x15ffb9(0x221)](_0x15ffb9(0x1f2))||_0x1c68c7[_0x15ffb9(0x221)](_0x15ffb9(0x225))){const _0x278013=_0x1c68c7[_0x15ffb9(0x201)]((_0x1c68c7[_0x15ffb9(0x221)]('app/controller/')?_0x15ffb9(0x1f2):_0x15ffb9(0x225))['length'])['split']('/')['filter'](_0x5f54cd=>_0x5f54cd&&_0x5f54cd['trim']());return _0x278013[_0x15ffb9(0x214)]>0x1&&(_0x3da196[_0x15ffb9(0x22d)]=_0x278013[0x0]['toLowerCase'](),_0x278013[_0x15ffb9(0x208)](0x0,0x1)),_0x3da196[_0x15ffb9(0x22c)]=('/'+_0x278013[_0x15ffb9(0x204)]('/'))[_0x15ffb9(0x229)](/(\.ts|\.js)$/,'')[_0x15ffb9(0x229)](/\/{2,}/g,'/')[_0x15ffb9(0x223)](/[\/|A-Z]*[^A-Z]+/g)[_0x15ffb9(0x204)]('-')[_0x15ffb9(0x1e1)]()[_0x15ffb9(0x229)](/\/\-/g,'/'),_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x207)](_0x15ffb9(0x1e5))&&(_0x3da196[_0x15ffb9(0x22c)]=_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x201)](0x0,_0x3da196[_0x15ffb9(0x22c)]['length']-0x7)),_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x207)](_0x15ffb9(0x1fa))&&(_0x3da196['route']=_0x3da196['route']['substring'](0x0,_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x214)]-0xb)),_0x3da196;}else{if(_0x1c68c7[_0x15ffb9(0x221)](_0x15ffb9(0x21e))){const _0x21a6f6=_0x1c68c7[_0x15ffb9(0x201)](0x0,_0x1c68c7[_0x15ffb9(0x1e8)](_0x15ffb9(0x1fc))+0x5),_0xa61378=_0x1c68c7[_0x15ffb9(0x201)](_0x21a6f6['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x15ffb9(0x22f)]('/')[0x0];if(_0x1c68c7[_0x15ffb9(0x221)](_0x15ffb9(0x21e)+_0xa61378+'/controller/')){const _0xa31117=_0x1c68c7[_0x15ffb9(0x201)]((_0x21a6f6+'/'+_0xa61378+_0x15ffb9(0x1ff))[_0x15ffb9(0x214)])[_0x15ffb9(0x22f)]('/')[_0x15ffb9(0x227)](_0x50e498=>_0x50e498&&_0x50e498['trim']());return _0xa31117['length']>0x1&&(_0x3da196[_0x15ffb9(0x22d)]=_0xa31117[0x0][_0x15ffb9(0x1e1)](),_0xa31117[_0x15ffb9(0x208)](0x0,0x1)),_0x3da196['module']=_0xa61378,_0x3da196[_0x15ffb9(0x22c)]=('/'+_0xa61378+'/'+_0xa31117['join']('/'))[_0x15ffb9(0x229)](/(\.ts|\.js)$/,'')[_0x15ffb9(0x229)](/\/{2,}/g,'/')[_0x15ffb9(0x223)](/[\/|A-Z]*[^A-Z]+/g)[_0x15ffb9(0x204)]('-')['toLowerCase']()[_0x15ffb9(0x229)](/\/\-/g,'/'),_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x207)](_0x15ffb9(0x1e5))&&(_0x3da196[_0x15ffb9(0x22c)]=_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x201)](0x0,_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x214)]-0x7)),_0x3da196[_0x15ffb9(0x22c)][_0x15ffb9(0x207)](_0x15ffb9(0x1fa))&&(_0x3da196[_0x15ffb9(0x22c)]=_0x3da196[_0x15ffb9(0x22c)]['substring'](0x0,_0x3da196['route'][_0x15ffb9(0x214)]-0xb)),_0x3da196;}throw new Error(_0x1c68c7+_0x15ffb9(0x1fd)+_0xa61378+_0x15ffb9(0x203));}}throw new Error(_0x1c68c7+_0x15ffb9(0x1f9));}const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1[a4_0x22cdb9(0x20e)],action_1[a4_0x22cdb9(0x200)])||{};function getModuleConfig(_0x55ade8,_0x899476,_0x1f9be7){const _0x153b9e=a4_0x22cdb9;if(Object[_0x153b9e(0x21f)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x899476])||{})[_0x153b9e(0x214)]==0x0){let _0x39401c={};if(NODE_ENV&&fs['existsSync'](_0x55ade8+'/'+_0x899476+'/config.'+NODE_ENV+'.'+_0x1f9be7)){const _0x4a12eb=include(_0x55ade8+'/'+_0x899476+'/config.'+NODE_ENV+'.'+_0x1f9be7);Object[_0x153b9e(0x1fb)](_0x4a12eb)[_0x153b9e(0x214)]>0x0&&(_0x39401c=lodash[_0x153b9e(0x20d)](_0x39401c,_0x4a12eb));}if(fs[_0x153b9e(0x22e)](_0x55ade8+'/'+_0x899476+_0x153b9e(0x218)+_0x1f9be7)){const _0x2cbacb=include(_0x55ade8+'/'+_0x899476+_0x153b9e(0x218)+_0x1f9be7);Object[_0x153b9e(0x1fb)](_0x2cbacb)[_0x153b9e(0x214)]>0x0&&(_0x39401c=lodash[_0x153b9e(0x20d)](_0x39401c,_0x2cbacb));}if(fs['existsSync'](_0x55ade8+'/'+_0x899476+_0x153b9e(0x232)+_0x1f9be7)){const _0x13d5a6=include(_0x55ade8+'/'+_0x899476+'/config.'+_0x1f9be7);Object[_0x153b9e(0x1fb)](_0x13d5a6)['length']>0x0&&(_0x39401c=lodash[_0x153b9e(0x20d)](_0x39401c,_0x13d5a6));}moduleConfigTmp[_0x899476]=_0x39401c,(0x0,core_1['saveClassMetadata'])(action_1[_0x153b9e(0x20e)],moduleConfigTmp,action_1[_0x153b9e(0x200)]);}return moduleConfigTmp[_0x899476];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x4d12(_0x52caf9,_0x43251a){const _0x39c55c=a5_0x4822();return a5_0x4d12=function(_0x4f2ef9,_0xf46652){_0x4f2ef9=_0x4f2ef9-0x110;let _0x482206=_0x39c55c[_0x4f2ef9];return _0x482206;},a5_0x4d12(_0x52caf9,_0x43251a);}const a5_0x242174=a5_0x4d12;(function(_0xb03ff4,_0x74de57){const _0x3b67e4=a5_0x4d12,_0x41139e=_0xb03ff4();while(!![]){try{const _0x30fe71=parseInt(_0x3b67e4(0x122))/0x1*(parseInt(_0x3b67e4(0x120))/0x2)+parseInt(_0x3b67e4(0x11e))/0x3*(-parseInt(_0x3b67e4(0x119))/0x4)+parseInt(_0x3b67e4(0x12e))/0x5+-parseInt(_0x3b67e4(0x127))/0x6*(parseInt(_0x3b67e4(0x113))/0x7)+-parseInt(_0x3b67e4(0x11d))/0x8*(parseInt(_0x3b67e4(0x131))/0x9)+parseInt(_0x3b67e4(0x126))/0xa*(parseInt(_0x3b67e4(0x12f))/0xb)+parseInt(_0x3b67e4(0x125))/0xc;if(_0x30fe71===_0x74de57)break;else _0x41139e['push'](_0x41139e['shift']());}catch(_0x110566){_0x41139e['push'](_0x41139e['shift']());}}}(a5_0x4822,0x36dd6));const a5_0xf46652=(function(){let _0x4ea1cb=!![];return function(_0x248cf1,_0x70bdb9){const _0x2fa493=_0x4ea1cb?function(){const _0x5d06fc=a5_0x4d12;if(_0x70bdb9){const _0x26eed3=_0x70bdb9[_0x5d06fc(0x12b)](_0x248cf1,arguments);return _0x70bdb9=null,_0x26eed3;}}:function(){};return _0x4ea1cb=![],_0x2fa493;};}()),a5_0x4f2ef9=a5_0xf46652(this,function(){const _0x48aad4=a5_0x4d12;return a5_0x4f2ef9[_0x48aad4(0x129)]()[_0x48aad4(0x112)](_0x48aad4(0x118))[_0x48aad4(0x129)]()['constructor'](a5_0x4f2ef9)['search'](_0x48aad4(0x118));});a5_0x4f2ef9();'use strict';function a5_0x4822(){const _0xf75956=['4IPQUFe','apitest','../service/ApitestService','@midwayjs/core','345368JVAyzl','606219CfATCZ','/apitest','844938ZtmoGs','app','1DNYdHG','__esModule','get','1321236SYIjBV','80icBnXK','7644mtTDRs','RequestMapping','toString','REQUEST_OBJ_CTX_KEY','apply','getConfig','defineProperty','1476920RIdyDr','11YOvIab','getApplicationContext','9suFZAk','MidwayEnvironmentService','getAsync','search','1967znKkrQ','Apitest','value','apidoc','isDevelopmentEnvironment','(((.+)+)+)+$'];a5_0x4822=function(){return _0xf75956;};return a5_0x4822();}Object[a5_0x242174(0x12d)](exports,a5_0x242174(0x123),{'value':!![]}),exports[a5_0x242174(0x114)]=Apitest;const core_1=require(a5_0x242174(0x11c)),ApitestService_1=require(a5_0x242174(0x11b));function Apitest(_0x411bd4=a5_0x242174(0x11f),_0x1f5058){return(_0x2cba32,_0x3d3c19,_0x168dbc)=>{const _0x411b33=a5_0x4d12;return(0x0,core_1[_0x411b33(0x128)])({'path':_0x411bd4,'requestMethod':_0x411b33(0x124)})(_0x2cba32,_0x3d3c19,_0x168dbc),_0x168dbc[_0x411b33(0x115)]=async function(..._0x8d7d2f){const _0x56e73d=_0x411b33;var _0x2807ae;const _0x4fc595=(_0x2807ae=this[core_1[_0x56e73d(0x12a)]])===null||_0x2807ae===void 0x0?void 0x0:_0x2807ae[_0x56e73d(0x121)];if(_0x4fc595&&_0x4fc595[_0x56e73d(0x12c)](_0x56e73d(0x11a))){const _0x297433=await _0x4fc595[_0x56e73d(0x130)]()[_0x56e73d(0x111)](ApitestService_1['ApitestService']),_0x2737b8=await _0x4fc595[_0x56e73d(0x130)]()[_0x56e73d(0x111)](core_1[_0x56e73d(0x110)]);return _0x2737b8[_0x56e73d(0x117)]()&&(_0x1f5058['filepath']=!![]),await _0x297433[_0x56e73d(0x116)](_0x1f5058);}return'';},_0x168dbc;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x169c93=a6_0x4132;function a6_0x4132(_0xc7551,_0x23f040){const _0x5486b8=a6_0x4d9d();return a6_0x4132=function(_0x202b73,_0x2900a0){_0x202b73=_0x202b73-0x191;let _0x4d9dd3=_0x5486b8[_0x202b73];return _0x4d9dd3;},a6_0x4132(_0xc7551,_0x23f040);}(function(_0x163531,_0x20a670){const _0xfbbdb4=a6_0x4132,_0x119462=_0x163531();while(!![]){try{const _0x234b68=-parseInt(_0xfbbdb4(0x1af))/0x1*(-parseInt(_0xfbbdb4(0x1a1))/0x2)+parseInt(_0xfbbdb4(0x191))/0x3+-parseInt(_0xfbbdb4(0x1a9))/0x4+-parseInt(_0xfbbdb4(0x1a3))/0x5+parseInt(_0xfbbdb4(0x192))/0x6*(parseInt(_0xfbbdb4(0x194))/0x7)+parseInt(_0xfbbdb4(0x1ac))/0x8*(-parseInt(_0xfbbdb4(0x1ab))/0x9)+-parseInt(_0xfbbdb4(0x1a8))/0xa;if(_0x234b68===_0x20a670)break;else _0x119462['push'](_0x119462['shift']());}catch(_0x2b8276){_0x119462['push'](_0x119462['shift']());}}}(a6_0x4d9d,0x9d55d));const a6_0x2900a0=(function(){let _0x46d7c=!![];return function(_0x278b55,_0x2c3260){const _0x27e209=_0x46d7c?function(){if(_0x2c3260){const _0x401cd9=_0x2c3260['apply'](_0x278b55,arguments);return _0x2c3260=null,_0x401cd9;}}:function(){};return _0x46d7c=![],_0x27e209;};}()),a6_0x202b73=a6_0x2900a0(this,function(){const _0x5bad9f=a6_0x4132;return a6_0x202b73[_0x5bad9f(0x1a2)]()[_0x5bad9f(0x1aa)](_0x5bad9f(0x19b))[_0x5bad9f(0x1a2)]()[_0x5bad9f(0x1a6)](a6_0x202b73)[_0x5bad9f(0x1aa)]('(((.+)+)+)+$');});a6_0x202b73();'use strict';Object[a6_0x169c93(0x1a4)](exports,a6_0x169c93(0x19a),{'value':!![]}),exports['IIntercept']=void 0x0,exports['Intercept']=Intercept;function a6_0x4d9d(){const _0x50aca2=['10605321VoOAuB','8HyurvR','push','IIntercept','335DZcDAI','1950120vEoSHY','1283820DUmgYA','toUpperCase','35JBaLNe','@midwayjs/core','includes','INTERCEPT_KEY','getClassMetadata','../types/intercept','__esModule','(((.+)+)+)+$','match','isArray','InterceptTargetTmp','Singleton','Provide','3350iDLcMv','toString','1476395CqntmR','defineProperty','ScopeEnum','constructor','Scope','1015960NNYaNg','245304QcGNYi','search'];a6_0x4d9d=function(){return _0x50aca2;};return a6_0x4d9d();}const core_1=require(a6_0x169c93(0x195)),intercept_1=require(a6_0x169c93(0x199));function Intercept(_0x29de7f){return _0x5ec797=>{const _0x21b6ca=a6_0x4132,_0x31e556=(0x0,core_1[_0x21b6ca(0x198)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};for(let _0x56abe4 of Array[_0x21b6ca(0x19d)](_0x29de7f)?_0x29de7f:[_0x29de7f]){_0x56abe4=_0x56abe4[_0x21b6ca(0x193)]();!(_0x31e556===null||_0x31e556===void 0x0?void 0x0:_0x31e556[_0x56abe4])&&(_0x31e556[_0x56abe4]=[]);if(_0x31e556[_0x56abe4][_0x21b6ca(0x196)](_0x5ec797))continue;_0x31e556[_0x56abe4][_0x21b6ca(0x1ad)](_0x5ec797);}(0x0,core_1[_0x21b6ca(0x1a0)])()(_0x5ec797),(0x0,core_1[_0x21b6ca(0x1a7)])(core_1[_0x21b6ca(0x1a5)][_0x21b6ca(0x19f)])(_0x5ec797),(0x0,core_1['saveClassMetadata'])(intercept_1[_0x21b6ca(0x197)],_0x31e556,intercept_1[_0x21b6ca(0x19e)]);};}class IIntercept{async[a6_0x169c93(0x19c)](_0x21c4ad,_0x455c96,_0x151e07){return!![];}}exports[a6_0x169c93(0x1ae)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x13a964=a7_0x2f85;(function(_0x3d13a3,_0x2bebec){var _0x5929db=a7_0x2f85,_0x174d36=_0x3d13a3();while(!![]){try{var _0x4ef737=-parseInt(_0x5929db(0xfd))/0x1+parseInt(_0x5929db(0xef))/0x2+parseInt(_0x5929db(0x104))/0x3*(parseInt(_0x5929db(0xf1))/0x4)+parseInt(_0x5929db(0xf3))/0x5+parseInt(_0x5929db(0xf9))/0x6*(-parseInt(_0x5929db(0x103))/0x7)+parseInt(_0x5929db(0xea))/0x8+parseInt(_0x5929db(0xe9))/0x9*(-parseInt(_0x5929db(0xf2))/0xa);if(_0x4ef737===_0x2bebec)break;else _0x174d36['push'](_0x174d36['shift']());}catch(_0x31cf1d){_0x174d36['push'](_0x174d36['shift']());}}}(a7_0x3591,0x58d36));var a7_0xf67ae0=(function(){var _0x54f9cc=!![];return function(_0x4864e4,_0x2446d7){var _0x21c222=_0x54f9cc?function(){if(_0x2446d7){var _0x560702=_0x2446d7['apply'](_0x4864e4,arguments);return _0x2446d7=null,_0x560702;}}:function(){};return _0x54f9cc=![],_0x21c222;};}()),a7_0x4af137=a7_0xf67ae0(this,function(){var _0xf80aa2=a7_0x2f85;return a7_0x4af137[_0xf80aa2(0x100)]()[_0xf80aa2(0x108)]('(((.+)+)+)+$')[_0xf80aa2(0x100)]()[_0xf80aa2(0xed)](a7_0x4af137)[_0xf80aa2(0x108)](_0xf80aa2(0xe8));});function a7_0x2f85(_0x1dd8be,_0x5110e6){var _0x47dd2e=a7_0x3591();return a7_0x2f85=function(_0x4af137,_0xf67ae0){_0x4af137=_0x4af137-0xe7;var _0x359175=_0x47dd2e[_0x4af137];return _0x359175;},a7_0x2f85(_0x1dd8be,_0x5110e6);}a7_0x4af137();'use strict';function a7_0x3591(){var _0x1e1917=['547506JciFEV','3851312mBREvj','HEADERS_CHECKCODE','__esModule','constructor','HEADERS_SIGNATURE','829880QEzOiU','请求头信息不完整','962552fUoQQe','60jwlieV','1336060MYTPuF','请求超时,请重试','HEADERS_DEVICE','design:type','object','length','17502drWKLa','ApiError','decorate','getOwnPropertyDescriptor','514935bykjWd','function','metadata','toString','TIMEOUT','signature验证失败','385QPWcNf','3TBtDbB','请使用正确的设备','__decorate','defineProperty','search','TIMEOUT_LOGINTIME','(((.+)+)+)+$'];a7_0x3591=function(){return _0x1e1917;};return a7_0x3591();}var __decorate=this&&this[a7_0x13a964(0x106)]||function(_0x103f4a,_0x3f180c,_0x525b6d,_0x4631b6){var _0x48ccbd=a7_0x13a964,_0x356dcd=arguments[_0x48ccbd(0xf8)],_0x2fd8df=_0x356dcd<0x3?_0x3f180c:_0x4631b6===null?_0x4631b6=Object[_0x48ccbd(0xfc)](_0x3f180c,_0x525b6d):_0x4631b6,_0x1bd721;if(typeof Reflect===_0x48ccbd(0xf7)&&typeof Reflect[_0x48ccbd(0xfb)]===_0x48ccbd(0xfe))_0x2fd8df=Reflect['decorate'](_0x103f4a,_0x3f180c,_0x525b6d,_0x4631b6);else{for(var _0x2ad338=_0x103f4a['length']-0x1;_0x2ad338>=0x0;_0x2ad338--)if(_0x1bd721=_0x103f4a[_0x2ad338])_0x2fd8df=(_0x356dcd<0x3?_0x1bd721(_0x2fd8df):_0x356dcd>0x3?_0x1bd721(_0x3f180c,_0x525b6d,_0x2fd8df):_0x1bd721(_0x3f180c,_0x525b6d))||_0x2fd8df;}return _0x356dcd>0x3&&_0x2fd8df&&Object[_0x48ccbd(0x107)](_0x3f180c,_0x525b6d,_0x2fd8df),_0x2fd8df;},__metadata=this&&this['__metadata']||function(_0x220882,_0x2f41b6){var _0x479bcc=a7_0x13a964;if(typeof Reflect==='object'&&typeof Reflect[_0x479bcc(0xff)]===_0x479bcc(0xfe))return Reflect[_0x479bcc(0xff)](_0x220882,_0x2f41b6);};Object[a7_0x13a964(0x107)](exports,a7_0x13a964(0xec),{'value':!![]}),exports[a7_0x13a964(0xfa)]=void 0x0;class ApiError extends AnnError{}exports[a7_0x13a964(0xfa)]=ApiError,ApiError[a7_0x13a964(0x101)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a7_0x13a964(0xf5)]=0x18e73,ApiError[a7_0x13a964(0xee)]=0x18e74,ApiError[a7_0x13a964(0xeb)]=0x18e75,ApiError[a7_0x13a964(0xe7)]=0x18e76,__decorate([AnnErrorMsg(a7_0x13a964(0xf4)),__metadata(a7_0x13a964(0xf6),Object)],ApiError,a7_0x13a964(0x101),void 0x0),__decorate([AnnErrorMsg(a7_0x13a964(0xf0)),__metadata(a7_0x13a964(0xf6),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a7_0x13a964(0x105)),__metadata(a7_0x13a964(0xf6),Object)],ApiError,a7_0x13a964(0xf5),void 0x0),__decorate([AnnErrorMsg(a7_0x13a964(0x102)),__metadata('design:type',Object)],ApiError,a7_0x13a964(0xee),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a7_0x13a964(0xf6),Object)],ApiError,a7_0x13a964(0xeb),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata('design:type',Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x3ab8f7=a8_0x1c1f;(function(_0x3741cc,_0x10f218){const _0x53114e=a8_0x1c1f,_0x1ea93b=_0x3741cc();while(!![]){try{const _0x3e6a82=-parseInt(_0x53114e(0xc0))/0x1+parseInt(_0x53114e(0xc3))/0x2+-parseInt(_0x53114e(0xc6))/0x3*(parseInt(_0x53114e(0xcb))/0x4)+-parseInt(_0x53114e(0xcd))/0x5*(-parseInt(_0x53114e(0xc5))/0x6)+parseInt(_0x53114e(0xcf))/0x7+parseInt(_0x53114e(0xd3))/0x8*(parseInt(_0x53114e(0xc8))/0x9)+-parseInt(_0x53114e(0xca))/0xa;if(_0x3e6a82===_0x10f218)break;else _0x1ea93b['push'](_0x1ea93b['shift']());}catch(_0x47619a){_0x1ea93b['push'](_0x1ea93b['shift']());}}}(a8_0x36ab,0xced35));const a8_0xa615d0=(function(){let _0x6bae04=!![];return function(_0x3ddae9,_0x372e2d){const _0x47dcae=_0x6bae04?function(){const _0x17d727=a8_0x1c1f;if(_0x372e2d){const _0xc58e4f=_0x372e2d[_0x17d727(0xd1)](_0x3ddae9,arguments);return _0x372e2d=null,_0xc58e4f;}}:function(){};return _0x6bae04=![],_0x47dcae;};}()),a8_0x84cd80=a8_0xa615d0(this,function(){const _0x5ec3ef=a8_0x1c1f;return a8_0x84cd80[_0x5ec3ef(0xc7)]()[_0x5ec3ef(0xd0)](_0x5ec3ef(0xce))[_0x5ec3ef(0xc7)]()[_0x5ec3ef(0xc2)](a8_0x84cd80)[_0x5ec3ef(0xd0)]('(((.+)+)+)+$');});a8_0x84cd80();function a8_0x36ab(){const _0x56fb70=['apply','getClassMetadata','138328wqTCqr','AppsConfigTmp','getAppsConfig','262357dNrGaL','APPSCONFIG_KEY','constructor','274260dZBraB','get','1902jGqJgG','32673BYDpMr','toString','423vnwtaJ','defineProperty','15905010FrKiIY','92htVPxp','@midwayjs/core','6295SxAVyg','(((.+)+)+)+$','11211186YepXlG','search'];a8_0x36ab=function(){return _0x56fb70;};return a8_0x36ab();}'use strict';function a8_0x1c1f(_0x37967d,_0x519cb2){const _0x49c0ff=a8_0x36ab();return a8_0x1c1f=function(_0x84cd80,_0xa615d0){_0x84cd80=_0x84cd80-0xc0;let _0x36abd5=_0x49c0ff[_0x84cd80];return _0x36abd5;},a8_0x1c1f(_0x37967d,_0x519cb2);}Object[a8_0x3ab8f7(0xc9)](exports,'__esModule',{'value':!![]}),exports[a8_0x3ab8f7(0xd5)]=getAppsConfig;const core_1=require(a8_0x3ab8f7(0xcc)),action_1=require('../types/action');function getAppsConfig(_0x2d73c2,_0x23b91d){const _0x405df1=a8_0x3ab8f7,_0x3fd8a6=(0x0,core_1[_0x405df1(0xd2)])(action_1[_0x405df1(0xc1)],action_1[_0x405df1(0xd4)])||{};return _0x2d73c2?lodash[_0x405df1(0xc4)](_0x3fd8a6,_0x2d73c2,_0x23b91d):_0x3fd8a6;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x469e4b=a9_0xc07c;function a9_0x1120(){const _0x238f44=['query','1803wStJla','indexOf','只允许:[','header','routerName','required','items','defineProperty','../types/action','test','10671441tLKfDa','get','filter','ACTION_KEY','default','constructor','INJECT_CUSTOM_PARAM','8RRWbhk','404295sFvfdy','flags.presence','WEB_ROUTER_PARAM_KEY','FIELDS','search','Object','flags.default','getClassExtendedMetadata','method','lodash','911617BAXHil','routerOptions','args','key','length','ACTION_ROUTE_KEY','RouteParamTypes','metadata','boolean','507348gthQxG','function','File','array','push','rules','body','describe','listModule','number','startsWith','title','flags.description','FILESSTREAM','pprefix','RULES_KEY','keys','flags.label','@midwayjs/core','2740duPxVn','file','getMethodParamTypes','propertyData','request','QUERY','string','path','summary','(((.+)+)+)+$','isArray','children','intercept','join','split','prefix','limit','type','98615mwLLCr','route','noreq','66mAxSYB','find','module','allow','FILESTREAM','toString','description','name','getClassMetadata','routes','parameterIndex','1730094PTKKFW','tagName','160NWBWPx','Boolean','requestMethod','BODY','object'];a9_0x1120=function(){return _0x238f44;};return a9_0x1120();}(function(_0x236a02,_0x33b70a){const _0xe2936f=a9_0xc07c,_0x1946cb=_0x236a02();while(!![]){try{const _0x5a18f7=parseInt(_0xe2936f(0x17f))/0x1+-parseInt(_0xe2936f(0x18d))/0x2+parseInt(_0xe2936f(0x195))/0x3*(parseInt(_0xe2936f(0x16d))/0x4)+parseInt(_0xe2936f(0x1a7))/0x5*(parseInt(_0xe2936f(0x182))/0x6)+-parseInt(_0xe2936f(0x1b1))/0x7*(parseInt(_0xe2936f(0x1a6))/0x8)+-parseInt(_0xe2936f(0x1ba))/0x9*(parseInt(_0xe2936f(0x18f))/0xa)+parseInt(_0xe2936f(0x19f))/0xb;if(_0x5a18f7===_0x33b70a)break;else _0x1946cb['push'](_0x1946cb['shift']());}catch(_0x37fb62){_0x1946cb['push'](_0x1946cb['shift']());}}}(a9_0x1120,0x7364a));const a9_0x2b01e8=(function(){let _0x218d5d=!![];return function(_0x1329e4,_0x391ea8){const _0x43a9da=_0x218d5d?function(){if(_0x391ea8){const _0x2a5ee9=_0x391ea8['apply'](_0x1329e4,arguments);return _0x391ea8=null,_0x2a5ee9;}}:function(){};return _0x218d5d=![],_0x43a9da;};}()),a9_0x1dee6a=a9_0x2b01e8(this,function(){const _0x5543a0=a9_0xc07c;return a9_0x1dee6a[_0x5543a0(0x187)]()[_0x5543a0(0x1ab)](_0x5543a0(0x176))[_0x5543a0(0x187)]()[_0x5543a0(0x1a4)](a9_0x1dee6a)[_0x5543a0(0x1ab)](_0x5543a0(0x176));});function a9_0xc07c(_0x24129e,_0x2b5beb){const _0x108e5a=a9_0x1120();return a9_0xc07c=function(_0x1dee6a,_0x2b01e8){_0x1dee6a=_0x1dee6a-0x163;let _0x1120fd=_0x108e5a[_0x1dee6a];return _0x1120fd;},a9_0xc07c(_0x24129e,_0x2b5beb);}a9_0x1dee6a();'use strict';Object[a9_0x469e4b(0x19c)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0x469e4b(0x1b0)),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x469e4b(0x16c)),core_2=require(a9_0x469e4b(0x16c)),core_3=require(a9_0x469e4b(0x16c)),action_1=require(a9_0x469e4b(0x19d));function getRoutes(_0x970411={'prefix':'/','module':![]}){const _0x39617b=a9_0x469e4b;var _0x258e82,_0x568d57;const _0x359b96=(0x0,core_3[_0x39617b(0x1c2)])(action_1[_0x39617b(0x1a2)]),_0xae6ced={},_0x1e043e=Array[_0x39617b(0x177)](_0x970411['filter']||[])?_0x970411[_0x39617b(0x1a1)]||[]:[_0x970411['filter']];_0x307aea:for(const _0x53fb8a of _0x359b96){let _0xa0a81e=(0x0,core_3[_0x39617b(0x18a)])(action_1[_0x39617b(0x1a2)],_0x53fb8a),_0x4c8fa3=(0x0,core_3[_0x39617b(0x18a)])(action_1[_0x39617b(0x1b6)],_0x53fb8a);if(_0xa0a81e&&_0x4c8fa3){let _0x3876c7=_0xa0a81e['prefix'],_0x17bf61={};if(_0x970411[_0x39617b(0x184)]&&(0x0,lodash_1[_0x39617b(0x1a0)])(_0xa0a81e,_0x39617b(0x184),![])!=_0x970411[_0x39617b(0x184)])continue _0x307aea;else{if(_0x970411['module']===![]&&!!(0x0,lodash_1[_0x39617b(0x1a0)])(_0xa0a81e,_0x39617b(0x184),null))continue _0x307aea;}if(_0x970411[_0x39617b(0x17c)]&&!_0x3876c7['startsWith'](_0x970411[_0x39617b(0x17c)]))continue _0x307aea;_0x3876c7!=='/'?(_0x17bf61[_0x39617b(0x175)]=(_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e[_0x39617b(0x1b2)][_0x39617b(0x18e)])||(/^\//[_0x39617b(0x19e)](_0x3876c7)?_0x3876c7[_0x39617b(0x17b)]('/')[0x1]:_0x3876c7),_0x17bf61['description']=(_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e[_0x39617b(0x1b2)]['description'])||_0x17bf61[_0x39617b(0x175)],_0x17bf61[_0x39617b(0x18b)]=[]):(_0x17bf61[_0x39617b(0x175)]=(_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e[_0x39617b(0x1b2)][_0x39617b(0x18e)])||_0x39617b(0x1a3),_0x17bf61[_0x39617b(0x188)]=(_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e[_0x39617b(0x1b2)][_0x39617b(0x188)])||'',_0x17bf61['routes']=[]);_0x970411['filepath']&&(_0x17bf61['filepath']=_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e['filepath']);(_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e[_0x39617b(0x168)])&&(_0x17bf61[_0x39617b(0x17c)]=_0xa0a81e['pprefix']);(_0xa0a81e===null||_0xa0a81e===void 0x0?void 0x0:_0xa0a81e['module'])&&(_0x17bf61[_0x39617b(0x184)]=_0xa0a81e['module']);let _0x571a4b=(0x0,core_3['getClassMetadata'])(core_2[_0x39617b(0x1a5)],_0x53fb8a)||{};if(typeof _0x4c8fa3[Symbol['iterator']]===_0x39617b(0x1bb))for(let _0x3946d5 of _0x4c8fa3){if((_0x970411===null||_0x970411===void 0x0?void 0x0:_0x970411[_0x39617b(0x179)])&&!(_0x3946d5===null||_0x3946d5===void 0x0?void 0x0:_0x3946d5['intercept']))continue;let _0x1415b4={};_0x1415b4[_0x39617b(0x1af)]=_0x3946d5[_0x39617b(0x191)],_0x1415b4[_0x39617b(0x180)]=(_0x3876c7+_0x3946d5[_0x39617b(0x174)])['replace'](/\/{2,}/g,'/'),_0x1415b4['summary']=(_0x3946d5===null||_0x3946d5===void 0x0?void 0x0:_0x3946d5[_0x39617b(0x199)])||_0x17bf61[_0x39617b(0x175)]||_0x39617b(0x1a3),_0x1415b4[_0x39617b(0x188)]=(_0x3946d5===null||_0x3946d5===void 0x0?void 0x0:_0x3946d5['description'])||'',_0x1415b4[_0x39617b(0x171)]=[];_0x1415b4[_0x39617b(0x180)]['endsWith']('/')&&(_0x1415b4['route']=_0x1415b4['route']['substring'](0x0,_0x1415b4[_0x39617b(0x180)][_0x39617b(0x1b5)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x1415b4[_0x39617b(0x180)],'static/apitest')&&!(0x0,lodash_1[_0x39617b(0x164)])(_0x1415b4[_0x39617b(0x180)],'/static/apitest')&&_0x1e043e[_0x39617b(0x196)](_0x1415b4['route'])===-0x1){if(!(_0x970411===null||_0x970411===void 0x0?void 0x0:_0x970411[_0x39617b(0x181)])){let _0x2e17ed=(0x0,core_3[_0x39617b(0x16f)])(new _0x53fb8a(),_0x3946d5[_0x39617b(0x1af)]);for(const _0xd4508d in _0x2e17ed){let _0x20f746=(_0x258e82=_0x571a4b[_0x3946d5[_0x39617b(0x1af)]])===null||_0x258e82===void 0x0?void 0x0:_0x258e82[_0x39617b(0x183)](_0x1010d6=>_0x1010d6[_0x39617b(0x18c)]==_0xd4508d&&_0x1010d6[_0x39617b(0x1b4)]===core_2[_0x39617b(0x1a9)]&&(_0x1010d6===null||_0x1010d6===void 0x0?void 0x0:_0x1010d6[_0x39617b(0x1b8)]));if(_0x20f746===null||_0x20f746===void 0x0?void 0x0:_0x20f746[_0x39617b(0x1b8)]){let _0x4b8f68=convertTypeToString(_0x20f746[_0x39617b(0x1b8)]['type']||0x0);if([_0x39617b(0x194),_0x39617b(0x1c0)]['indexOf'](_0x4b8f68)!=-0x1&&_0x20f746[_0x39617b(0x1b8)][_0x39617b(0x170)][_0x39617b(0x196)](':')==-0x1&&!_0x1415b4[_0x39617b(0x171)]['find'](_0x19bafa=>_0x19bafa[_0x39617b(0x1b4)]==_0x20f746[_0x39617b(0x1b8)]['propertyData']))_0x1415b4[_0x39617b(0x171)][_0x39617b(0x1be)]({'key':_0x20f746[_0x39617b(0x1b8)][_0x39617b(0x170)],'title':_0x20f746[_0x39617b(0x1b8)][_0x39617b(0x170)],'type':convertSchemaType(_0x2e17ed[_0x20f746[_0x39617b(0x18c)]][_0x39617b(0x189)]),'required':![],'default':'','desc':''});else{if(_0x4b8f68=='file'){let _0x6a28b8=((_0x568d57=_0x20f746===null||_0x20f746===void 0x0?void 0x0:_0x20f746[_0x39617b(0x1b8)])===null||_0x568d57===void 0x0?void 0x0:_0x568d57[_0x39617b(0x170)])||_0x39617b(0x16e);_0x6a28b8[_0x39617b(0x196)](':')==-0x1&&!_0x1415b4[_0x39617b(0x171)][_0x39617b(0x183)](_0x5b0b9e=>_0x5b0b9e['key']==_0x6a28b8&&_0x5b0b9e[_0x39617b(0x17e)]==_0x39617b(0x16e))&&_0x1415b4[_0x39617b(0x171)][_0x39617b(0x1be)]({'key':_0x6a28b8,'title':'文件上传-'+_0x6a28b8,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x8a7a27=(0x0,core_3[_0x39617b(0x1ae)])(validator_1[_0x39617b(0x169)],_0x2e17ed[_0xd4508d]);_0x8a7a27&&_0x1415b4[_0x39617b(0x171)][_0x39617b(0x1be)](...getJoiRequest(_0x8a7a27));}}}_0x17bf61[_0x39617b(0x18b)][_0x39617b(0x1be)](_0x1415b4);}}if(_0x17bf61['routes'][_0x39617b(0x1b5)]>0x0){let _0x41eb79=_0xae6ced[_0x3876c7];_0x41eb79?(_0x41eb79[_0x39617b(0x175)]!=_0x17bf61[_0x39617b(0x175)]&&(_0x41eb79['summary']=_0x41eb79[_0x39617b(0x175)]+','+_0x17bf61['summary']),_0x41eb79[_0x39617b(0x188)]!=_0x17bf61['description']&&(_0x41eb79['description']=_0x41eb79['description']+','+_0x17bf61[_0x39617b(0x188)]),_0x41eb79[_0x39617b(0x18b)]=_0x41eb79['routes']['concat'](_0x17bf61[_0x39617b(0x18b)]),_0xae6ced[_0x3876c7]=_0x41eb79):_0xae6ced[_0x3876c7]=_0x17bf61;}}}return _0xae6ced;}function getJoiRequest(_0x3a04eb){const _0x32404a=a9_0x469e4b;var _0x5c1d16,_0x1dcbe6;const _0x5dadf9=[];for(let _0x753c5c in _0x3a04eb){const _0x2e9181={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1aa5e8=typeof _0x3a04eb[_0x753c5c]['describe']==_0x32404a(0x1bb)?_0x3a04eb[_0x753c5c][_0x32404a(0x1c1)]():_0x3a04eb[_0x753c5c];_0x2e9181[_0x32404a(0x1b4)]=_0x753c5c,_0x2e9181[_0x32404a(0x17e)]=_0x1aa5e8[_0x32404a(0x17e)],_0x2e9181[_0x32404a(0x165)]=(0x0,lodash_1[_0x32404a(0x1a0)])(_0x1aa5e8,_0x32404a(0x16b),_0x753c5c),_0x2e9181[_0x32404a(0x1a3)]=(0x0,lodash_1[_0x32404a(0x1a0)])(_0x1aa5e8,_0x32404a(0x1ad),''),_0x2e9181[_0x32404a(0x19a)]=(0x0,lodash_1[_0x32404a(0x1a0)])(_0x1aa5e8,_0x32404a(0x1a8),'')==_0x32404a(0x19a),_0x2e9181[_0x32404a(0x188)]=(0x0,lodash_1[_0x32404a(0x1a0)])(_0x1aa5e8,_0x32404a(0x166),'');if(_0x1aa5e8['type']==_0x32404a(0x193))(_0x1aa5e8===null||_0x1aa5e8===void 0x0?void 0x0:_0x1aa5e8[_0x32404a(0x16a)])&&(_0x2e9181['children']=getJoiRequest(_0x1aa5e8[_0x32404a(0x16a)]));else _0x1aa5e8['type']==_0x32404a(0x1bd)&&_0x1aa5e8[_0x32404a(0x19b)]&&Array['isArray'](_0x1aa5e8[_0x32404a(0x19b)])&&(((_0x1dcbe6=(_0x5c1d16=_0x1aa5e8===null||_0x1aa5e8===void 0x0?void 0x0:_0x1aa5e8[_0x32404a(0x19b)])===null||_0x5c1d16===void 0x0?void 0x0:_0x5c1d16[0x0])===null||_0x1dcbe6===void 0x0?void 0x0:_0x1dcbe6[_0x32404a(0x16a)])&&(_0x2e9181[_0x32404a(0x178)]=getJoiRequest(_0x1aa5e8[_0x32404a(0x19b)][0x0][_0x32404a(0x16a)])));_0x1aa5e8['allow']&&Array[_0x32404a(0x177)](_0x1aa5e8[_0x32404a(0x185)])&&_0x1aa5e8[_0x32404a(0x185)][_0x32404a(0x1b5)]>0x0&&(_0x2e9181[_0x32404a(0x188)]=_0x32404a(0x197)+_0x1aa5e8[_0x32404a(0x185)][_0x32404a(0x17a)](',')+'];'+_0x2e9181[_0x32404a(0x188)]);if(_0x2e9181[_0x32404a(0x1b4)]&&_0x2e9181['type']){const _0x4c2951={};for(const _0x1f0d60 of _0x1aa5e8[_0x32404a(0x1bf)]||[]){if(_0x1f0d60[_0x32404a(0x189)]==='min'&&_0x1f0d60['args'])_0x4c2951['min']=_0x1f0d60['args'][_0x32404a(0x17d)];else _0x1f0d60[_0x32404a(0x189)]==='max'&&(_0x4c2951['max']=_0x1f0d60[_0x32404a(0x1b3)][_0x32404a(0x17d)]);}_0x2e9181[_0x32404a(0x1bf)]=_0x4c2951;}_0x2e9181[_0x32404a(0x1b4)]&&_0x2e9181[_0x32404a(0x165)]&&_0x5dadf9[_0x32404a(0x1be)](_0x2e9181);}return _0x5dadf9;}function convertSchemaType(_0xc6a60b){const _0x5b6ccd=a9_0x469e4b;switch(_0xc6a60b){case _0x5b6ccd(0x1ac):return _0x5b6ccd(0x193);case _0x5b6ccd(0x190):return _0x5b6ccd(0x1b9);case'Number':return _0x5b6ccd(0x163);case'String':return'string';case _0x5b6ccd(0x1bc):return _0x5b6ccd(0x16e);default:return _0x5b6ccd(0x173);}}function convertTypeToString(_0xbc20c1){const _0x122421=a9_0x469e4b;switch(_0xbc20c1){case core_1[_0x122421(0x1b7)]['HEADERS']:return _0x122421(0x198);case core_1[_0x122421(0x1b7)][_0x122421(0x172)]:return _0x122421(0x194);case core_1[_0x122421(0x1b7)]['PARAM']:return _0x122421(0x174);case core_1[_0x122421(0x1b7)][_0x122421(0x192)]:return _0x122421(0x1c0);case core_1[_0x122421(0x1b7)][_0x122421(0x1aa)]:case core_1['RouteParamTypes'][_0x122421(0x167)]:case core_1['RouteParamTypes'][_0x122421(0x186)]:return _0x122421(0x16e);default:return'header';}}
|
|
1
|
+
const a9_0x2e0a18=a9_0x595c;(function(_0x4c2862,_0x566531){const _0x57ec49=a9_0x595c,_0x163a0b=_0x4c2862();while(!![]){try{const _0x128e76=-parseInt(_0x57ec49(0x1ad))/0x1*(-parseInt(_0x57ec49(0x1a5))/0x2)+-parseInt(_0x57ec49(0x1e7))/0x3+parseInt(_0x57ec49(0x201))/0x4*(parseInt(_0x57ec49(0x1e6))/0x5)+-parseInt(_0x57ec49(0x1f9))/0x6+parseInt(_0x57ec49(0x19d))/0x7+parseInt(_0x57ec49(0x1be))/0x8+parseInt(_0x57ec49(0x1b0))/0x9*(-parseInt(_0x57ec49(0x1df))/0xa);if(_0x128e76===_0x566531)break;else _0x163a0b['push'](_0x163a0b['shift']());}catch(_0x46f641){_0x163a0b['push'](_0x163a0b['shift']());}}}(a9_0x471b,0x5beb9));const a9_0x17b849=(function(){let _0xb602b7=!![];return function(_0x4c8d70,_0x4637f8){const _0x4eb15a=_0xb602b7?function(){if(_0x4637f8){const _0x543f0d=_0x4637f8['apply'](_0x4c8d70,arguments);return _0x4637f8=null,_0x543f0d;}}:function(){};return _0xb602b7=![],_0x4eb15a;};}()),a9_0x102535=a9_0x17b849(this,function(){const _0x1f1abb=a9_0x595c;return a9_0x102535[_0x1f1abb(0x1a2)]()[_0x1f1abb(0x1e0)]('(((.+)+)+)+$')['toString']()[_0x1f1abb(0x1e9)](a9_0x102535)[_0x1f1abb(0x1e0)](_0x1f1abb(0x1f1));});a9_0x102535();'use strict';function a9_0x471b(){const _0xc8e743=['path','min','INJECT_CUSTOM_PARAM','lodash','FILESTREAM','String','isArray','9471410JRMgGw','search','rules','routes','method','summary','filter','305XnCLyF','727128hpbrEF','default','constructor','getClassMetadata','prefix','@midwayjs/core','length','concat','iterator','push','(((.+)+)+)+$','flags.label','key','parameterIndex','tagName','object','max','route','2936322JllnzZ','keys','static/apitest','args','只允许:[','file','split','intercept','19076sWXCIL','getRoutes','4908582wwAxqx','PARAM','FILESSTREAM','name','string','toString','Number','noreq','2TseuJw','body','ACTION_ROUTE_KEY','defineProperty','module','File','number','QUERY','342476zjYoYa','routerOptions','indexOf','9pmZvCw','RULES_KEY','title','requestMethod','required','request','type','flags.description','test','function','propertyData','文件上传-','describe','getClassExtendedMetadata','5766384XVwzPn','pprefix','startsWith','listModule','ACTION_KEY','__esModule','@anncic-api/validator','flags.default','get','substring','items','limit','query','getMethodParamTypes','/static/apitest','HEADERS','allow','Object','filepath','find','header','endsWith','metadata','description','children','RouteParamTypes'];a9_0x471b=function(){return _0xc8e743;};return a9_0x471b();}Object[a9_0x2e0a18(0x1a8)](exports,a9_0x2e0a18(0x1c3),{'value':!![]}),exports[a9_0x2e0a18(0x19c)]=getRoutes;const lodash_1=require(a9_0x2e0a18(0x1db)),validator_1=require(a9_0x2e0a18(0x1c4)),core_1=require(a9_0x2e0a18(0x1ec)),core_2=require(a9_0x2e0a18(0x1ec)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function a9_0x595c(_0x2469f0,_0x75e0cb){const _0x7ebfbb=a9_0x471b();return a9_0x595c=function(_0x102535,_0x17b849){_0x102535=_0x102535-0x19c;let _0x471b1a=_0x7ebfbb[_0x102535];return _0x471b1a;},a9_0x595c(_0x2469f0,_0x75e0cb);}function getRoutes(_0x3309bf={'prefix':'/','module':![]}){const _0x3fc137=a9_0x2e0a18;var _0x52e722,_0x4e0f8d;const _0x5d212e=(0x0,core_3[_0x3fc137(0x1c1)])(action_1[_0x3fc137(0x1c2)]),_0x47a577={},_0x4bc6c1=Array['isArray'](_0x3309bf[_0x3fc137(0x1e5)]||[])?_0x3309bf['filter']||[]:[_0x3309bf[_0x3fc137(0x1e5)]];_0x5a9325:for(const _0x3867fe of _0x5d212e){let _0x320b0f=(0x0,core_3[_0x3fc137(0x1ea)])(action_1[_0x3fc137(0x1c2)],_0x3867fe),_0x27892a=(0x0,core_3[_0x3fc137(0x1ea)])(action_1[_0x3fc137(0x1a7)],_0x3867fe);if(_0x320b0f&&_0x27892a){let _0x5ae5b1=_0x320b0f[_0x3fc137(0x1eb)],_0x50a938={};if(_0x3309bf['module']&&(0x0,lodash_1['get'])(_0x320b0f,_0x3fc137(0x1a9),![])!=_0x3309bf[_0x3fc137(0x1a9)])continue _0x5a9325;else{if(_0x3309bf['module']===![]&&!!(0x0,lodash_1[_0x3fc137(0x1c6)])(_0x320b0f,_0x3fc137(0x1a9),null))continue _0x5a9325;}if(_0x3309bf[_0x3fc137(0x1eb)]&&!_0x5ae5b1[_0x3fc137(0x1c0)](_0x3309bf[_0x3fc137(0x1eb)]))continue _0x5a9325;_0x5ae5b1!=='/'?(_0x50a938['summary']=(_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f['routerOptions'][_0x3fc137(0x1f5)])||(/^\//[_0x3fc137(0x1b8)](_0x5ae5b1)?_0x5ae5b1[_0x3fc137(0x1ff)]('/')[0x1]:_0x5ae5b1),_0x50a938[_0x3fc137(0x1d5)]=(_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f[_0x3fc137(0x1ae)][_0x3fc137(0x1d5)])||_0x50a938[_0x3fc137(0x1e4)],_0x50a938[_0x3fc137(0x1e2)]=[]):(_0x50a938[_0x3fc137(0x1e4)]=(_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f[_0x3fc137(0x1ae)][_0x3fc137(0x1f5)])||_0x3fc137(0x1e8),_0x50a938['description']=(_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f[_0x3fc137(0x1ae)][_0x3fc137(0x1d5)])||'',_0x50a938['routes']=[]);_0x3309bf[_0x3fc137(0x1d0)]&&(_0x50a938[_0x3fc137(0x1d0)]=_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f['filepath']);(_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f['pprefix'])&&(_0x50a938[_0x3fc137(0x1eb)]=_0x320b0f[_0x3fc137(0x1bf)]);(_0x320b0f===null||_0x320b0f===void 0x0?void 0x0:_0x320b0f[_0x3fc137(0x1a9)])&&(_0x50a938[_0x3fc137(0x1a9)]=_0x320b0f[_0x3fc137(0x1a9)]);let _0x309d3e=(0x0,core_3['getClassMetadata'])(core_2[_0x3fc137(0x1da)],_0x3867fe)||{};if(typeof _0x27892a[Symbol[_0x3fc137(0x1ef)]]===_0x3fc137(0x1b9))for(let _0x1e7847 of _0x27892a){if((_0x3309bf===null||_0x3309bf===void 0x0?void 0x0:_0x3309bf[_0x3fc137(0x200)])&&!(_0x1e7847===null||_0x1e7847===void 0x0?void 0x0:_0x1e7847['intercept']))continue;let _0x2817db={};_0x2817db['method']=_0x1e7847[_0x3fc137(0x1b3)],_0x2817db[_0x3fc137(0x1f8)]=(_0x5ae5b1+_0x1e7847[_0x3fc137(0x1d8)])['replace'](/\/{2,}/g,'/'),_0x2817db['summary']=(_0x1e7847===null||_0x1e7847===void 0x0?void 0x0:_0x1e7847['routerName'])||_0x50a938[_0x3fc137(0x1e4)]||_0x3fc137(0x1e8),_0x2817db[_0x3fc137(0x1d5)]=(_0x1e7847===null||_0x1e7847===void 0x0?void 0x0:_0x1e7847['description'])||'',_0x2817db[_0x3fc137(0x1b5)]=[];_0x2817db[_0x3fc137(0x1f8)][_0x3fc137(0x1d3)]('/')&&(_0x2817db[_0x3fc137(0x1f8)]=_0x2817db[_0x3fc137(0x1f8)][_0x3fc137(0x1c7)](0x0,_0x2817db[_0x3fc137(0x1f8)][_0x3fc137(0x1ed)]-0x1));if(!(0x0,lodash_1[_0x3fc137(0x1c0)])(_0x2817db[_0x3fc137(0x1f8)],_0x3fc137(0x1fb))&&!(0x0,lodash_1['startsWith'])(_0x2817db[_0x3fc137(0x1f8)],_0x3fc137(0x1cc))&&_0x4bc6c1[_0x3fc137(0x1af)](_0x2817db[_0x3fc137(0x1f8)])===-0x1){if(!(_0x3309bf===null||_0x3309bf===void 0x0?void 0x0:_0x3309bf[_0x3fc137(0x1a4)])){let _0x57593b=(0x0,core_3[_0x3fc137(0x1cb)])(new _0x3867fe(),_0x1e7847[_0x3fc137(0x1e3)]);for(const _0x43491c in _0x57593b){let _0x5d4081=(_0x52e722=_0x309d3e[_0x1e7847['method']])===null||_0x52e722===void 0x0?void 0x0:_0x52e722[_0x3fc137(0x1d1)](_0x3314c5=>_0x3314c5[_0x3fc137(0x1f4)]==_0x43491c&&_0x3314c5[_0x3fc137(0x1f3)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x3314c5===null||_0x3314c5===void 0x0?void 0x0:_0x3314c5[_0x3fc137(0x1d4)]));if(_0x5d4081===null||_0x5d4081===void 0x0?void 0x0:_0x5d4081[_0x3fc137(0x1d4)]){let _0x2aa7a7=convertTypeToString(_0x5d4081['metadata']['type']||0x0);if(['query',_0x3fc137(0x1a6)][_0x3fc137(0x1af)](_0x2aa7a7)!=-0x1&&_0x5d4081['metadata'][_0x3fc137(0x1ba)][_0x3fc137(0x1af)](':')==-0x1&&!_0x2817db[_0x3fc137(0x1b5)]['find'](_0x2c42fc=>_0x2c42fc['key']==_0x5d4081[_0x3fc137(0x1d4)]['propertyData']))_0x2817db['request']['push']({'key':_0x5d4081[_0x3fc137(0x1d4)][_0x3fc137(0x1ba)],'title':_0x5d4081[_0x3fc137(0x1d4)][_0x3fc137(0x1ba)],'type':convertSchemaType(_0x57593b[_0x5d4081[_0x3fc137(0x1f4)]][_0x3fc137(0x1a0)]),'required':![],'default':'','desc':''});else{if(_0x2aa7a7==_0x3fc137(0x1fe)){let _0x52e6e6=((_0x4e0f8d=_0x5d4081===null||_0x5d4081===void 0x0?void 0x0:_0x5d4081[_0x3fc137(0x1d4)])===null||_0x4e0f8d===void 0x0?void 0x0:_0x4e0f8d[_0x3fc137(0x1ba)])||'file';_0x52e6e6[_0x3fc137(0x1af)](':')==-0x1&&!_0x2817db[_0x3fc137(0x1b5)]['find'](_0x413e88=>_0x413e88[_0x3fc137(0x1f3)]==_0x52e6e6&&_0x413e88[_0x3fc137(0x1b6)]==_0x3fc137(0x1fe))&&_0x2817db[_0x3fc137(0x1b5)][_0x3fc137(0x1f0)]({'key':_0x52e6e6,'title':_0x3fc137(0x1bb)+_0x52e6e6,'type':_0x3fc137(0x1fe),'required':!![],'default':'','desc':''});}}}else{const _0x462eb6=(0x0,core_3[_0x3fc137(0x1bd)])(validator_1[_0x3fc137(0x1b1)],_0x57593b[_0x43491c]);_0x462eb6&&_0x2817db[_0x3fc137(0x1b5)][_0x3fc137(0x1f0)](...getJoiRequest(_0x462eb6));}}}_0x50a938['routes']['push'](_0x2817db);}}if(_0x50a938['routes']['length']>0x0){let _0x18da0d=_0x47a577[_0x5ae5b1];_0x18da0d?(_0x18da0d['summary']!=_0x50a938[_0x3fc137(0x1e4)]&&(_0x18da0d['summary']=_0x18da0d[_0x3fc137(0x1e4)]+','+_0x50a938[_0x3fc137(0x1e4)]),_0x18da0d[_0x3fc137(0x1d5)]!=_0x50a938[_0x3fc137(0x1d5)]&&(_0x18da0d['description']=_0x18da0d['description']+','+_0x50a938['description']),_0x18da0d['routes']=_0x18da0d[_0x3fc137(0x1e2)][_0x3fc137(0x1ee)](_0x50a938[_0x3fc137(0x1e2)]),_0x47a577[_0x5ae5b1]=_0x18da0d):_0x47a577[_0x5ae5b1]=_0x50a938;}}}return _0x47a577;}function getJoiRequest(_0x465558){const _0x4cc67f=a9_0x2e0a18;var _0x2cf55c,_0x50cc83;const _0x2ee7de=[];for(let _0x1d6e32 in _0x465558){const _0x3d1afa={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x270ad1=typeof _0x465558[_0x1d6e32][_0x4cc67f(0x1bc)]==_0x4cc67f(0x1b9)?_0x465558[_0x1d6e32][_0x4cc67f(0x1bc)]():_0x465558[_0x1d6e32];_0x3d1afa['key']=_0x1d6e32,_0x3d1afa[_0x4cc67f(0x1b6)]=_0x270ad1['type'],_0x3d1afa['title']=(0x0,lodash_1[_0x4cc67f(0x1c6)])(_0x270ad1,_0x4cc67f(0x1f2),_0x1d6e32),_0x3d1afa[_0x4cc67f(0x1e8)]=(0x0,lodash_1['get'])(_0x270ad1,_0x4cc67f(0x1c5),''),_0x3d1afa[_0x4cc67f(0x1b4)]=(0x0,lodash_1['get'])(_0x270ad1,'flags.presence','')=='required',_0x3d1afa[_0x4cc67f(0x1d5)]=(0x0,lodash_1[_0x4cc67f(0x1c6)])(_0x270ad1,_0x4cc67f(0x1b7),'');if(_0x270ad1[_0x4cc67f(0x1b6)]==_0x4cc67f(0x1f6))(_0x270ad1===null||_0x270ad1===void 0x0?void 0x0:_0x270ad1[_0x4cc67f(0x1fa)])&&(_0x3d1afa[_0x4cc67f(0x1d6)]=getJoiRequest(_0x270ad1[_0x4cc67f(0x1fa)]));else _0x270ad1['type']=='array'&&_0x270ad1[_0x4cc67f(0x1c8)]&&Array[_0x4cc67f(0x1de)](_0x270ad1[_0x4cc67f(0x1c8)])&&(((_0x50cc83=(_0x2cf55c=_0x270ad1===null||_0x270ad1===void 0x0?void 0x0:_0x270ad1[_0x4cc67f(0x1c8)])===null||_0x2cf55c===void 0x0?void 0x0:_0x2cf55c[0x0])===null||_0x50cc83===void 0x0?void 0x0:_0x50cc83[_0x4cc67f(0x1fa)])&&(_0x3d1afa[_0x4cc67f(0x1d6)]=getJoiRequest(_0x270ad1[_0x4cc67f(0x1c8)][0x0]['keys'])));_0x270ad1[_0x4cc67f(0x1ce)]&&Array[_0x4cc67f(0x1de)](_0x270ad1[_0x4cc67f(0x1ce)])&&_0x270ad1[_0x4cc67f(0x1ce)][_0x4cc67f(0x1ed)]>0x0&&(_0x3d1afa[_0x4cc67f(0x1d5)]=_0x4cc67f(0x1fd)+_0x270ad1[_0x4cc67f(0x1ce)]['join'](',')+'];'+_0x3d1afa[_0x4cc67f(0x1d5)]);if(_0x3d1afa[_0x4cc67f(0x1f3)]&&_0x3d1afa['type']){const _0x47a24b={};for(const _0x571bdd of _0x270ad1[_0x4cc67f(0x1e1)]||[]){if(_0x571bdd['name']===_0x4cc67f(0x1d9)&&_0x571bdd[_0x4cc67f(0x1fc)])_0x47a24b[_0x4cc67f(0x1d9)]=_0x571bdd[_0x4cc67f(0x1fc)][_0x4cc67f(0x1c9)];else _0x571bdd[_0x4cc67f(0x1a0)]===_0x4cc67f(0x1f7)&&(_0x47a24b[_0x4cc67f(0x1f7)]=_0x571bdd['args']['limit']);}_0x3d1afa[_0x4cc67f(0x1e1)]=_0x47a24b;}_0x3d1afa[_0x4cc67f(0x1f3)]&&_0x3d1afa[_0x4cc67f(0x1b2)]&&_0x2ee7de[_0x4cc67f(0x1f0)](_0x3d1afa);}return _0x2ee7de;}function convertSchemaType(_0x463141){const _0x9f619b=a9_0x2e0a18;switch(_0x463141){case _0x9f619b(0x1cf):return _0x9f619b(0x1f6);case'Boolean':return'boolean';case _0x9f619b(0x1a3):return _0x9f619b(0x1ab);case _0x9f619b(0x1dd):return'string';case _0x9f619b(0x1aa):return _0x9f619b(0x1fe);default:return _0x9f619b(0x1a1);}}function convertTypeToString(_0x39fe9d){const _0x186d76=a9_0x2e0a18;switch(_0x39fe9d){case core_1[_0x186d76(0x1d7)][_0x186d76(0x1cd)]:return _0x186d76(0x1d2);case core_1[_0x186d76(0x1d7)][_0x186d76(0x1ac)]:return _0x186d76(0x1ca);case core_1['RouteParamTypes'][_0x186d76(0x19e)]:return _0x186d76(0x1d8);case core_1[_0x186d76(0x1d7)]['BODY']:return _0x186d76(0x1a6);case core_1[_0x186d76(0x1d7)]['FIELDS']:case core_1[_0x186d76(0x1d7)][_0x186d76(0x19f)]:case core_1[_0x186d76(0x1d7)][_0x186d76(0x1dc)]:return _0x186d76(0x1fe);default:return _0x186d76(0x1d2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x1063(){const _0x39a893=['children','paths','items','body','summary','length','method','title','607833jZpaZu','request','116599apOYsj','getRoutes','./getRoutes','170EUfKaX','minimum','defineProperty','3418472niUsXC','route','maximum','includes','push','constructor','1210074QZvbdn','min','43716LVNmoH','description','(((.+)+)+)+$','7PYRFQc','1.0.0','search','825518hytyfZ','toString','2.0','215XSHABE','application/json','tags','rules','key','routes','prefix','properties','apply','object','required','272604JiYpuF','type'];a10_0x1063=function(){return _0x39a893;};return a10_0x1063();}const a10_0x2622f2=a10_0x33d3;(function(_0x28c756,_0x5a6e32){const _0xd3529a=a10_0x33d3,_0x86c9cb=_0x28c756();while(!![]){try{const _0x2f3d1e=-parseInt(_0xd3529a(0x131))/0x1+-parseInt(_0xd3529a(0x145))/0x2+-parseInt(_0xd3529a(0x153))/0x3+-parseInt(_0xd3529a(0x13f))/0x4*(parseInt(_0xd3529a(0x148))/0x5)+-parseInt(_0xd3529a(0x13d))/0x6+parseInt(_0xd3529a(0x142))/0x7*(parseInt(_0xd3529a(0x137))/0x8)+parseInt(_0xd3529a(0x15d))/0x9*(parseInt(_0xd3529a(0x134))/0xa);if(_0x2f3d1e===_0x5a6e32)break;else _0x86c9cb['push'](_0x86c9cb['shift']());}catch(_0x34d033){_0x86c9cb['push'](_0x86c9cb['shift']());}}}(a10_0x1063,0x453c2));function a10_0x33d3(_0x542091,_0x144ab3){const _0x25ec5=a10_0x1063();return a10_0x33d3=function(_0x4faeea,_0x1d83b2){_0x4faeea=_0x4faeea-0x131;let _0x10636b=_0x25ec5[_0x4faeea];return _0x10636b;},a10_0x33d3(_0x542091,_0x144ab3);}const a10_0x1d83b2=(function(){let _0x21aa79=!![];return function(_0x118588,_0x5a7a58){const _0x5122c8=_0x21aa79?function(){const _0x5a2372=a10_0x33d3;if(_0x5a7a58){const _0x476b8a=_0x5a7a58[_0x5a2372(0x150)](_0x118588,arguments);return _0x5a7a58=null,_0x476b8a;}}:function(){};return _0x21aa79=![],_0x5122c8;};}()),a10_0x4faeea=a10_0x1d83b2(this,function(){const _0x14c813=a10_0x33d3;return a10_0x4faeea['toString']()[_0x14c813(0x144)](_0x14c813(0x141))[_0x14c813(0x146)]()[_0x14c813(0x13c)](a10_0x4faeea)[_0x14c813(0x144)](_0x14c813(0x141));});a10_0x4faeea();'use strict';Object[a10_0x2622f2(0x136)](exports,'__esModule',{'value':!![]}),exports['getSwaggerJson']=getSwaggerJson;const getRoutes_1=require(a10_0x2622f2(0x133));function getSwaggerJson(_0x571196={'prefix':'/','module':![]}){const _0x4eb147=a10_0x2622f2;var _0x107445;const _0xdae484=(0x0,getRoutes_1[_0x4eb147(0x132)])(_0x571196),_0x3dbcd1={'info':{'title':'接口文档','description':'本接口文档由API自动解析生成','version':_0x4eb147(0x143)},'tags':[],'paths':{},'swagger':_0x4eb147(0x147)};for(const _0x1cef1d in _0xdae484){const _0x1d183a=_0xdae484[_0x1cef1d];(_0x1d183a===null||_0x1d183a===void 0x0?void 0x0:_0x1d183a[_0x4eb147(0x14e)])&&_0x1d183a['prefix']!='/'&&!_0x3dbcd1[_0x4eb147(0x14a)]['includes'](_0x1d183a[_0x4eb147(0x14e)])&&_0x3dbcd1[_0x4eb147(0x14a)][_0x4eb147(0x13b)](_0x1d183a[_0x4eb147(0x14e)]);(_0x1d183a===null||_0x1d183a===void 0x0?void 0x0:_0x1d183a[_0x4eb147(0x159)])&&_0x1d183a[_0x4eb147(0x159)]!=''&&!_0x3dbcd1[_0x4eb147(0x14a)]['includes'](_0x1d183a[_0x4eb147(0x14e)]+'/'+_0x1d183a[_0x4eb147(0x159)])&&_0x3dbcd1[_0x4eb147(0x14a)][_0x4eb147(0x13b)](_0x1d183a[_0x4eb147(0x14e)]+'/'+_0x1d183a[_0x4eb147(0x159)]);for(const _0x103dae of(_0x1d183a===null||_0x1d183a===void 0x0?void 0x0:_0x1d183a[_0x4eb147(0x14d)])||[]){_0x103dae[_0x4eb147(0x138)]&&(!_0x3dbcd1[_0x4eb147(0x156)][_0x103dae['route']]&&(_0x3dbcd1[_0x4eb147(0x156)][_0x103dae['route']]={}),!_0x3dbcd1['paths'][_0x103dae[_0x4eb147(0x138)]][_0x103dae['method']]&&(_0x3dbcd1[_0x4eb147(0x156)][_0x103dae[_0x4eb147(0x138)]][_0x103dae[_0x4eb147(0x15b)]]={'summary':_0x103dae[_0x4eb147(0x159)],'deprecated':![],'description':(_0x103dae===null||_0x103dae===void 0x0?void 0x0:_0x103dae[_0x4eb147(0x140)])||'','tags':[_0x1d183a['prefix']+'/'+_0x1d183a[_0x4eb147(0x159)]],'consumes':['application/json'],'produces':[_0x4eb147(0x149)],'responses':{},'security':[],'parameters':[{'in':_0x4eb147(0x158),'name':'body','required':((_0x107445=_0x103dae===null||_0x103dae===void 0x0?void 0x0:_0x103dae[_0x4eb147(0x15e)])===null||_0x107445===void 0x0?void 0x0:_0x107445[_0x4eb147(0x15a)])>0x0,'schema':getSwaggerJsonParametersSchema((_0x103dae===null||_0x103dae===void 0x0?void 0x0:_0x103dae[_0x4eb147(0x15e)])||[])}]}));}}return _0x3dbcd1;}function getSwaggerJsonParametersSchema(_0x16a15a=[],_0x24ee45=a10_0x2622f2(0x151)){const _0x12eacb=a10_0x2622f2;var _0x3f0369,_0x3cfa17,_0x3aeaf2;const _0x4ffd4d={'type':_0x24ee45};if(_0x24ee45==_0x12eacb(0x151)){_0x4ffd4d[_0x12eacb(0x14f)]={},_0x4ffd4d[_0x12eacb(0x152)]=[];for(const _0x23ad05 of _0x16a15a){_0x23ad05[_0x12eacb(0x152)]&&!_0x4ffd4d[_0x12eacb(0x152)][_0x12eacb(0x13a)](_0x23ad05[_0x12eacb(0x14c)])&&_0x4ffd4d[_0x12eacb(0x152)][_0x12eacb(0x13b)](_0x23ad05[_0x12eacb(0x14c)]),((_0x3f0369=_0x23ad05===null||_0x23ad05===void 0x0?void 0x0:_0x23ad05[_0x12eacb(0x155)])===null||_0x3f0369===void 0x0?void 0x0:_0x3f0369[_0x12eacb(0x15a)])>0x0?_0x4ffd4d['properties'][_0x23ad05['key']]=getSwaggerJsonParametersSchema(_0x23ad05[_0x12eacb(0x155)],_0x23ad05[_0x12eacb(0x154)]):(_0x4ffd4d[_0x12eacb(0x14f)][_0x23ad05[_0x12eacb(0x14c)]]={'type':_0x23ad05['type'],'title':_0x23ad05[_0x12eacb(0x15c)],'default':_0x23ad05['default'],'description':_0x23ad05['description']},((_0x3cfa17=_0x23ad05===null||_0x23ad05===void 0x0?void 0x0:_0x23ad05[_0x12eacb(0x14b)])===null||_0x3cfa17===void 0x0?void 0x0:_0x3cfa17['max'])&&(_0x4ffd4d[_0x12eacb(0x14f)][_0x23ad05[_0x12eacb(0x14c)]][_0x12eacb(0x139)]=_0x23ad05[_0x12eacb(0x14b)]['max']),((_0x3aeaf2=_0x23ad05===null||_0x23ad05===void 0x0?void 0x0:_0x23ad05[_0x12eacb(0x14b)])===null||_0x3aeaf2===void 0x0?void 0x0:_0x3aeaf2[_0x12eacb(0x13e)])&&(_0x4ffd4d[_0x12eacb(0x14f)][_0x23ad05['key']][_0x12eacb(0x135)]=_0x23ad05[_0x12eacb(0x14b)][_0x12eacb(0x13e)]));}}else _0x24ee45=='array'&&(_0x4ffd4d[_0x12eacb(0x157)]=getSwaggerJsonParametersSchema(_0x16a15a,'object'));return _0x4ffd4d;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x3ce481=a11_0x4c94;(function(_0x290980,_0x2dcc5f){var _0x153f3b=a11_0x4c94,_0x4bfb03=_0x290980();while(!![]){try{var _0x5adc3e=parseInt(_0x153f3b(0xc1))/0x1+-parseInt(_0x153f3b(0xae))/0x2+-parseInt(_0x153f3b(0x96))/0x3*(parseInt(_0x153f3b(0xa0))/0x4)+parseInt(_0x153f3b(0x98))/0x5*(parseInt(_0x153f3b(0xb5))/0x6)+-parseInt(_0x153f3b(0xc8))/0x7*(-parseInt(_0x153f3b(0xbe))/0x8)+-parseInt(_0x153f3b(0xa5))/0x9*(-parseInt(_0x153f3b(0xb6))/0xa)+-parseInt(_0x153f3b(0xba))/0xb;if(_0x5adc3e===_0x2dcc5f)break;else _0x4bfb03['push'](_0x4bfb03['shift']());}catch(_0x2239d3){_0x4bfb03['push'](_0x4bfb03['shift']());}}}(a11_0x1d15,0xce810));var a11_0xa6710d=(function(){var _0x1eef20=!![];return function(_0x281d75,_0x20df0d){var _0x24aebf=_0x1eef20?function(){if(_0x20df0d){var _0x1a4f7a=_0x20df0d['apply'](_0x281d75,arguments);return _0x20df0d=null,_0x1a4f7a;}}:function(){};return _0x1eef20=![],_0x24aebf;};}()),a11_0x268915=a11_0xa6710d(this,function(){var _0xa253c8=a11_0x4c94;return a11_0x268915[_0xa253c8(0xc5)]()['search'](_0xa253c8(0x85))[_0xa253c8(0xc5)]()[_0xa253c8(0x92)](a11_0x268915)[_0xa253c8(0xa8)](_0xa253c8(0x85));});a11_0x268915();'use strict';var __createBinding=this&&this[a11_0x3ce481(0xa4)]||(Object[a11_0x3ce481(0xb4)]?function(_0x2c8e73,_0x3a5818,_0xc1c8b0,_0x5edd5b){var _0x571e91=a11_0x3ce481;if(_0x5edd5b===undefined)_0x5edd5b=_0xc1c8b0;var _0x350dbc=Object[_0x571e91(0x9d)](_0x3a5818,_0xc1c8b0);(!_0x350dbc||(_0x571e91(0xb7)in _0x350dbc?!_0x3a5818[_0x571e91(0xa1)]:_0x350dbc[_0x571e91(0xb1)]||_0x350dbc[_0x571e91(0x82)]))&&(_0x350dbc={'enumerable':!![],'get':function(){return _0x3a5818[_0xc1c8b0];}}),Object[_0x571e91(0x90)](_0x2c8e73,_0x5edd5b,_0x350dbc);}:function(_0x1d702e,_0x587bd8,_0xec4b,_0x2690bb){if(_0x2690bb===undefined)_0x2690bb=_0xec4b;_0x1d702e[_0x2690bb]=_0x587bd8[_0xec4b];}),__exportStar=this&&this['__exportStar']||function(_0x37a482,_0x117f9f){var _0x38bb38=a11_0x3ce481;for(var _0x245272 in _0x37a482)if(_0x245272!==_0x38bb38(0x93)&&!Object['prototype']['hasOwnProperty'][_0x38bb38(0x8e)](_0x117f9f,_0x245272))__createBinding(_0x117f9f,_0x37a482,_0x245272);};Object[a11_0x3ce481(0x90)](exports,'__esModule',{'value':!![]}),exports[a11_0x3ce481(0xaa)]=exports['ScopeEnum']=exports['Singleton']=exports[a11_0x3ce481(0xa2)]=exports['Inject']=exports['Provide']=exports[a11_0x3ce481(0x8c)]=exports[a11_0x3ce481(0x83)]=exports[a11_0x3ce481(0x8f)]=exports[a11_0x3ce481(0x9a)]=exports['Headers']=exports['Query']=exports[a11_0x3ce481(0xc3)]=exports['Body']=exports[a11_0x3ce481(0xc4)]=exports[a11_0x3ce481(0xb2)]=exports['File']=exports['Configuration']=exports[a11_0x3ce481(0xc2)]=exports['ValidatorError']=exports[a11_0x3ce481(0xbf)]=exports['ExcelStream']=exports[a11_0x3ce481(0x9c)]=exports[a11_0x3ce481(0x97)]=exports['CacheService']=exports[a11_0x3ce481(0xb8)]=exports['getSwaggerJson']=exports[a11_0x3ce481(0xc7)]=exports['IIntercept']=exports[a11_0x3ce481(0xb9)]=exports[a11_0x3ce481(0x87)]=exports[a11_0x3ce481(0x8d)]=void 0x0;const getAppsConfig_1=require(a11_0x3ce481(0xc0));Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xaa),{'enumerable':!![],'get':function(){var _0x1e24bc=a11_0x3ce481;return getAppsConfig_1[_0x1e24bc(0xaa)];}}),__exportStar(require(a11_0x3ce481(0xa9)),exports),__exportStar(require(a11_0x3ce481(0xc6)),exports);var Action_1=require('./decorator/Action');function a11_0x4c94(_0x33917b,_0x476c04){var _0x10189a=a11_0x1d15();return a11_0x4c94=function(_0x268915,_0xa6710d){_0x268915=_0x268915-0x82;var _0x1d1596=_0x10189a[_0x268915];return _0x1d1596;},a11_0x4c94(_0x33917b,_0x476c04);}Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x8d),{'enumerable':!![],'get':function(){var _0x174aa6=a11_0x3ce481;return Action_1[_0x174aa6(0x8d)];}});var ActionApitest_1=require(a11_0x3ce481(0x9b));Object['defineProperty'](exports,a11_0x3ce481(0x87),{'enumerable':!![],'get':function(){var _0x1760a6=a11_0x3ce481;return ActionApitest_1[_0x1760a6(0x87)];}});var Intercept_1=require('./decorator/Intercept');Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xb9),{'enumerable':!![],'get':function(){var _0x47bf53=a11_0x3ce481;return Intercept_1[_0x47bf53(0xb9)];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x91),{'enumerable':!![],'get':function(){var _0x2ac119=a11_0x3ce481;return Intercept_1[_0x2ac119(0x91)];}});var getRoutes_1=require('./helper/getRoutes');Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xc7),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var getSwaggerJson_1=require(a11_0x3ce481(0xbb));Object[a11_0x3ce481(0x90)](exports,'getSwaggerJson',{'enumerable':!![],'get':function(){var _0x4d0f91=a11_0x3ce481;return getSwaggerJson_1[_0x4d0f91(0x95)];}});var ApiError_1=require(a11_0x3ce481(0xa3));Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xb8),{'enumerable':!![],'get':function(){var _0x10d14a=a11_0x3ce481;return ApiError_1[_0x10d14a(0xb8)];}});var cache_1=require(a11_0x3ce481(0xab));Object[a11_0x3ce481(0x90)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x3dd43d=a11_0x3ce481;return cache_1[_0x3dd43d(0xad)];}});function a11_0x1d15(){var _0x1aeaf8=['Fields','toString','./service/ApitestService','getRoutes','61852dsgEGb','configurable','Config','CustomConfiguration','(((.+)+)+)+$','./service/ApiService','Apitest','Headers','Configuration','Singleton','Provide','Logger','Action','call','App','defineProperty','IIntercept','constructor','default','ExcelStream','getSwaggerJson','30XuAJIt','EventService','3960135qEeuno','./service/ExcelStream','Init','./decorator/ActionApitest','ApiService','getOwnPropertyDescriptor','Query','File','54224lLsiAK','__esModule','Scope','./exception/ApiError','__createBinding','520119koLrOQ','./configuration','Inject','search','./types/common','getAppsConfig','@anncic-api/cache','@anncic-api/event','CacheService','1097002OlaEQV','ValidatorError','./service/ExcelService','writable','Files','@midwayjs/core','create','6NsSweq','80AbqwAa','get','ApiError','Intercept','30184594bCztlg','./helper/getSwaggerJson','ScopeEnum','Body','1312oNkpay','ExcelService','./helper/getAppsConfig','1570496Zhanwj','ValidatorService','Param'];a11_0x1d15=function(){return _0x1aeaf8;};return a11_0x1d15();}var event_1=require(a11_0x3ce481(0xac));Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x97),{'enumerable':!![],'get':function(){var _0x1ba823=a11_0x3ce481;return event_1[_0x1ba823(0x97)];}});var ApiService_1=require(a11_0x3ce481(0x86));Object[a11_0x3ce481(0x90)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x5b6e0e=a11_0x3ce481;return ApiService_1[_0x5b6e0e(0x9c)];}});var ExcelStream_1=require(a11_0x3ce481(0x99));Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x94),{'enumerable':!![],'get':function(){return ExcelStream_1['ExcelStream'];}});var ExcelService_1=require(a11_0x3ce481(0xb0));Object['defineProperty'](exports,a11_0x3ce481(0xbf),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require('@anncic-api/validator');Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xaf),{'enumerable':!![],'get':function(){var _0x59ed12=a11_0x3ce481;return validator_1[_0x59ed12(0xaf)];}}),Object[a11_0x3ce481(0x90)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x38d5cc=a11_0x3ce481;return validator_1[_0x38d5cc(0xc2)];}});var configuration_1=require(a11_0x3ce481(0xa6));Object['defineProperty'](exports,a11_0x3ce481(0x89),{'enumerable':!![],'get':function(){var _0x1d839f=a11_0x3ce481;return configuration_1[_0x1d839f(0x84)];}});var core_1=require(a11_0x3ce481(0xb3));Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x9f),{'enumerable':!![],'get':function(){var _0x19e2eb=a11_0x3ce481;return core_1[_0x19e2eb(0x9f)];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xb2),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object['defineProperty'](exports,a11_0x3ce481(0xc4),{'enumerable':!![],'get':function(){var _0x3a2559=a11_0x3ce481;return core_1[_0x3a2559(0xc4)];}}),Object[a11_0x3ce481(0x90)](exports,'Body',{'enumerable':!![],'get':function(){var _0x530d5d=a11_0x3ce481;return core_1[_0x530d5d(0xbd)];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xc3),{'enumerable':!![],'get':function(){var _0x22cd26=a11_0x3ce481;return core_1[_0x22cd26(0xc3)];}}),Object['defineProperty'](exports,'Query',{'enumerable':!![],'get':function(){var _0xc1f338=a11_0x3ce481;return core_1[_0xc1f338(0x9e)];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x88),{'enumerable':!![],'get':function(){var _0x5c43b0=a11_0x3ce481;return core_1[_0x5c43b0(0x88)];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x9a),{'enumerable':!![],'get':function(){var _0x92a78=a11_0x3ce481;return core_1[_0x92a78(0x9a)];}});var core_2=require('@midwayjs/core');Object['defineProperty'](exports,a11_0x3ce481(0x8f),{'enumerable':!![],'get':function(){var _0x40ccad=a11_0x3ce481;return core_2[_0x40ccad(0x8f)];}}),Object[a11_0x3ce481(0x90)](exports,'Config',{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a11_0x3ce481(0x90)](exports,'Logger',{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0x8b),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a11_0x3ce481(0x90)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x322b5f=a11_0x3ce481;return core_2[_0x322b5f(0xa7)];}}),Object[a11_0x3ce481(0x90)](exports,a11_0x3ce481(0xa2),{'enumerable':!![],'get':function(){var _0xb11d6e=a11_0x3ce481;return core_2[_0xb11d6e(0xa2)];}}),Object[a11_0x3ce481(0x90)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x51bd6e=a11_0x3ce481;return core_2[_0x51bd6e(0x8a)];}}),Object[a11_0x3ce481(0x90)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x3dafcf=a11_0x3ce481;return core_2[_0x3dafcf(0xbc)];}}),global['getAppsConfig']=getAppsConfig_1[a11_0x3ce481(0xaa)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a12_0x4c6013=a12_0x4001;(function(_0x53d6ae,_0x547ce7){var _0x179cc4=a12_0x4001,_0x2bd18d=_0x53d6ae();while(!![]){try{var _0x439838=parseInt(_0x179cc4(0x18a))/0x1*(-parseInt(_0x179cc4(0x1b2))/0x2)+-parseInt(_0x179cc4(0x199))/0x3*(parseInt(_0x179cc4(0x190))/0x4)+parseInt(_0x179cc4(0x19a))/0x5*(-parseInt(_0x179cc4(0x1bf))/0x6)+-parseInt(_0x179cc4(0x19c))/0x7*(-parseInt(_0x179cc4(0x1a6))/0x8)+-parseInt(_0x179cc4(0x18e))/0x9*(parseInt(_0x179cc4(0x1b9))/0xa)+parseInt(_0x179cc4(0x1af))/0xb*(parseInt(_0x179cc4(0x185))/0xc)+parseInt(_0x179cc4(0x184))/0xd;if(_0x439838===_0x547ce7)break;else _0x2bd18d['push'](_0x2bd18d['shift']());}catch(_0x452043){_0x2bd18d['push'](_0x2bd18d['shift']());}}}(a12_0x3a1f,0x61d33));var a12_0x1ae3e5=(function(){var _0x473588=!![];return function(_0x1f41ed,_0x4379f3){var _0x14932b=_0x473588?function(){var _0x4cfbf4=a12_0x4001;if(_0x4379f3){var _0x2c897e=_0x4379f3[_0x4cfbf4(0x1a4)](_0x1f41ed,arguments);return _0x4379f3=null,_0x2c897e;}}:function(){};return _0x473588=![],_0x14932b;};}()),a12_0x1869ee=a12_0x1ae3e5(this,function(){var _0x5997a7=a12_0x4001;return a12_0x1869ee['toString']()[_0x5997a7(0x1bc)](_0x5997a7(0x1b4))['toString']()[_0x5997a7(0x188)](a12_0x1869ee)[_0x5997a7(0x1bc)](_0x5997a7(0x1b4));});a12_0x1869ee();'use strict';var __decorate=this&&this[a12_0x4c6013(0x1a2)]||function(_0x5a8408,_0x395f21,_0x199f82,_0x2586a1){var _0xe8cd32=a12_0x4c6013,_0x1903cf=arguments['length'],_0x2afa91=_0x1903cf<0x3?_0x395f21:_0x2586a1===null?_0x2586a1=Object[_0xe8cd32(0x1b6)](_0x395f21,_0x199f82):_0x2586a1,_0x45d966;if(typeof Reflect===_0xe8cd32(0x191)&&typeof Reflect[_0xe8cd32(0x1be)]===_0xe8cd32(0x193))_0x2afa91=Reflect[_0xe8cd32(0x1be)](_0x5a8408,_0x395f21,_0x199f82,_0x2586a1);else{for(var _0x22ad0e=_0x5a8408[_0xe8cd32(0x18f)]-0x1;_0x22ad0e>=0x0;_0x22ad0e--)if(_0x45d966=_0x5a8408[_0x22ad0e])_0x2afa91=(_0x1903cf<0x3?_0x45d966(_0x2afa91):_0x1903cf>0x3?_0x45d966(_0x395f21,_0x199f82,_0x2afa91):_0x45d966(_0x395f21,_0x199f82))||_0x2afa91;}return _0x1903cf>0x3&&_0x2afa91&&Object[_0xe8cd32(0x17f)](_0x395f21,_0x199f82,_0x2afa91),_0x2afa91;},__metadata=this&&this[a12_0x4c6013(0x187)]||function(_0x42ffe3,_0x452d15){var _0x31e80d=a12_0x4c6013;if(typeof Reflect===_0x31e80d(0x191)&&typeof Reflect[_0x31e80d(0x1ab)]===_0x31e80d(0x193))return Reflect[_0x31e80d(0x1ab)](_0x42ffe3,_0x452d15);};Object[a12_0x4c6013(0x17f)](exports,a12_0x4c6013(0x1bb),{'value':!![]}),exports[a12_0x4c6013(0x198)]=void 0x0;function a12_0x3a1f(){var _0x466516=['defineProperty','@midwayjs/core','push','checkcode','ScopeEnum','23553504klIYYq','23808MfsiUF','now','__metadata','constructor','substring','187317pDgpdf','device','HEADERS_CHECKCODE','Singleton','153qbAKGs','length','24324lAFOIO','object','crypto-js','function','logintime','entries','logintimeout','TIMEOUT_LOGINTIME','ApiService','204YXsODf','21985KRDhSm','toString','2497453rYXncg','toLowerCase','ApiError','join','undefined','Scope','__decorate','HEADERS_SIGNATURE','apply','signature','8HtJLiX','../exception/ApiError','map','secret','design:type','metadata','prototype','TIMEOUT','getcheck','4015zzEhUB','devices','MD5','8DvcACf','requesttime','(((.+)+)+)+$','secret=','getOwnPropertyDescriptor','anncicapi','HEADERS_DEVICE','422410spOFiV','timeout','__esModule','search','验证失败','decorate','834juBRzU','padEnd','token','abs','password','config','请求超时,请重试或改善网络环境','fromEntries','getsign'];a12_0x3a1f=function(){return _0x466516;};return a12_0x3a1f();}function a12_0x4001(_0x5ae0d9,_0x5e76d9){var _0x599536=a12_0x3a1f();return a12_0x4001=function(_0x1869ee,_0x1ae3e5){_0x1869ee=_0x1869ee-0x17f;var _0x3a1f34=_0x599536[_0x1869ee];return _0x3a1f34;},a12_0x4001(_0x5ae0d9,_0x5e76d9);}const crypto_js_1=require(a12_0x4c6013(0x192)),core_1=require(a12_0x4c6013(0x180)),ApiError_1=require(a12_0x4c6013(0x1a7));let ApiService=class ApiService{[a12_0x4c6013(0x1c3)](_0x5439de){var _0x42ccd2=a12_0x4c6013,_0x259c74;return _0x5439de?(0x0,crypto_js_1[_0x42ccd2(0x1b1)])(''+_0x5439de+(0x0,crypto_js_1[_0x42ccd2(0x1b1)])((0x0,crypto_js_1[_0x42ccd2(0x1b1)])(''+_0x5439de)['toString']()+(''+((_0x259c74=this['config'])===null||_0x259c74===void 0x0?void 0x0:_0x259c74[_0x42ccd2(0x1c3)])))['toString']())[_0x42ccd2(0x19b)]():'';}[a12_0x4c6013(0x1ae)](_0x3891a7,_0x3b007b,_0x5a0314=Date[a12_0x4c6013(0x186)]()){var _0x2c2c14=a12_0x4c6013;return{'Token':_0x3891a7,'Logintime':_0x5a0314,'Checkcode':this[_0x2c2c14(0x182)](_0x3891a7,_0x3b007b,_0x5a0314)};}['getsign'](_0x262f57={}){var _0x1e44ba=a12_0x4c6013,_0x84af72,_0x57f73f;const _0x233402=[],_0x8bdc8a=Object[_0x1e44ba(0x1c6)](Object[_0x1e44ba(0x195)](_0x262f57)[_0x1e44ba(0x1a8)](_0x4631c5=>[_0x4631c5[0x0][_0x1e44ba(0x19d)](),_0x4631c5[0x1]]));for(let _0x3da9f9 of[_0x1e44ba(0x18b),_0x1e44ba(0x1b3),_0x1e44ba(0x1c1),_0x1e44ba(0x194),_0x1e44ba(0x182)]){if(typeof _0x8bdc8a[_0x3da9f9]==_0x1e44ba(0x1a0))throw new AnnError(ApiError_1[_0x1e44ba(0x19e)]['HEADERS_LACK'],{'message':_0x1e44ba(0x1bd)});_0x233402[_0x1e44ba(0x181)](_0x3da9f9+'='+_0x8bdc8a[_0x3da9f9]);}_0x8bdc8a[_0x1e44ba(0x1b3)]&&((_0x84af72=_0x8bdc8a[_0x1e44ba(0x1b3)])===null||_0x84af72===void 0x0?void 0x0:_0x84af72[_0x1e44ba(0x18f)])==0xa&&(_0x8bdc8a[_0x1e44ba(0x1b3)]=_0x8bdc8a['requesttime']*0x3e8);if(this[_0x1e44ba(0x1c4)][_0x1e44ba(0x1ba)]&&parseInt((''+Date[_0x1e44ba(0x186)]())[_0x1e44ba(0x189)](0x0,0xd)[_0x1e44ba(0x1c0)](0xd,'0'))-parseInt((''+Math[_0x1e44ba(0x1c2)](_0x8bdc8a[_0x1e44ba(0x1b3)]))[_0x1e44ba(0x189)](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this['config'][_0x1e44ba(0x1ba)]))throw new AnnError(ApiError_1[_0x1e44ba(0x19e)][_0x1e44ba(0x1ad)],{'message':_0x1e44ba(0x1c5),'requesttime':_0x8bdc8a[_0x1e44ba(0x1b3)],'timestamp':Date[_0x1e44ba(0x186)]()});if((((_0x57f73f=this[_0x1e44ba(0x1c4)][_0x1e44ba(0x1b0)][_0x8bdc8a[_0x1e44ba(0x18b)]])===null||_0x57f73f===void 0x0?void 0x0:_0x57f73f[_0x1e44ba(0x196)])||0x0)>0x0&&Date['now']()-Math['abs'](_0x8bdc8a[_0x1e44ba(0x194)])>this[_0x1e44ba(0x1c4)]['devices'][_0x8bdc8a[_0x1e44ba(0x18b)]]['logintimeout'])throw new AnnError(ApiError_1[_0x1e44ba(0x19e)][_0x1e44ba(0x197)]);if(!this[_0x1e44ba(0x1c4)][_0x1e44ba(0x1b0)][_0x8bdc8a[_0x1e44ba(0x18b)]]||!this[_0x1e44ba(0x1c4)][_0x1e44ba(0x1b0)][_0x8bdc8a[_0x1e44ba(0x18b)]][_0x1e44ba(0x1a9)]||!this['config'][_0x1e44ba(0x1b0)][_0x8bdc8a[_0x1e44ba(0x18b)]]['checkcode'])throw new AnnError(ApiError_1[_0x1e44ba(0x19e)][_0x1e44ba(0x1b8)]);if(_0x8bdc8a[_0x1e44ba(0x1c1)]&&_0x8bdc8a['checkcode']!=this[_0x1e44ba(0x182)](_0x8bdc8a[_0x1e44ba(0x1c1)],_0x8bdc8a[_0x1e44ba(0x18b)],_0x8bdc8a[_0x1e44ba(0x194)]))throw new AnnError(ApiError_1[_0x1e44ba(0x19e)][_0x1e44ba(0x18c)]);return _0x233402[_0x1e44ba(0x181)](_0x1e44ba(0x1b5)+this[_0x1e44ba(0x1c4)][_0x1e44ba(0x1b0)][_0x8bdc8a[_0x1e44ba(0x18b)]][_0x1e44ba(0x1a9)]),(0x0,crypto_js_1['MD5'])(_0x233402['sort']()[_0x1e44ba(0x19f)](''))['toString']();}['checkcode'](_0x5c7140,_0x3c5f31,_0x144364=Date[a12_0x4c6013(0x186)]()){var _0x30d848=a12_0x4c6013,_0x1b4006,_0x14571a,_0x23bcc4;if(!((_0x1b4006=this['config'])===null||_0x1b4006===void 0x0?void 0x0:_0x1b4006[_0x30d848(0x1b0)][_0x3c5f31])||!((_0x23bcc4=(_0x14571a=this[_0x30d848(0x1c4)])===null||_0x14571a===void 0x0?void 0x0:_0x14571a['devices'][_0x3c5f31])===null||_0x23bcc4===void 0x0?void 0x0:_0x23bcc4[_0x30d848(0x182)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x30d848(0x1b1)])(''+_0x5c7140+(0x0,crypto_js_1[_0x30d848(0x1b1)])(''+_0x144364+(''+this['config']['devices'][_0x3c5f31]['checkcode']))[_0x30d848(0x19b)]())[_0x30d848(0x19b)]();}['checksign'](_0x18bc1a={}){var _0x3ae4e2=a12_0x4c6013;const _0x3c3dff=Object[_0x3ae4e2(0x1c6)](Object[_0x3ae4e2(0x195)](_0x18bc1a)[_0x3ae4e2(0x1a8)](_0x360af7=>[_0x360af7[0x0][_0x3ae4e2(0x19d)](),_0x360af7[0x1]]));if(!(_0x3c3dff===null||_0x3c3dff===void 0x0?void 0x0:_0x3c3dff[_0x3ae4e2(0x1a5)]))throw new AnnError(ApiError_1[_0x3ae4e2(0x19e)]['HEADERS_LACK'],{'message':_0x3ae4e2(0x1bd)});if((_0x3c3dff===null||_0x3c3dff===void 0x0?void 0x0:_0x3c3dff[_0x3ae4e2(0x1a5)])!=this[_0x3ae4e2(0x1c7)](_0x3c3dff))throw new AnnError(ApiError_1[_0x3ae4e2(0x19e)][_0x3ae4e2(0x1a3)],{'message':_0x3ae4e2(0x1bd)});return!![];}};exports[a12_0x4c6013(0x198)]=ApiService,__decorate([(0x0,core_1['Config'])(a12_0x4c6013(0x1b7)),__metadata(a12_0x4c6013(0x1aa),Object)],ApiService[a12_0x4c6013(0x1ac)],a12_0x4c6013(0x1c4),void 0x0),exports['ApiService']=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a12_0x4c6013(0x1a1)])(core_1[a12_0x4c6013(0x183)][a12_0x4c6013(0x18d)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x5cfffd=a13_0x486b;(function(_0x2e6c97,_0x2292da){const _0x2a6ebb=a13_0x486b,_0x40cd1f=_0x2e6c97();while(!![]){try{const _0x28560f=-parseInt(_0x2a6ebb(0x15e))/0x1+-parseInt(_0x2a6ebb(0x183))/0x2*(-parseInt(_0x2a6ebb(0x17e))/0x3)+-parseInt(_0x2a6ebb(0x165))/0x4+parseInt(_0x2a6ebb(0x144))/0x5*(-parseInt(_0x2a6ebb(0x17f))/0x6)+parseInt(_0x2a6ebb(0x15d))/0x7+-parseInt(_0x2a6ebb(0x176))/0x8*(-parseInt(_0x2a6ebb(0x13c))/0x9)+-parseInt(_0x2a6ebb(0x171))/0xa*(parseInt(_0x2a6ebb(0x15f))/0xb);if(_0x28560f===_0x2292da)break;else _0x40cd1f['push'](_0x40cd1f['shift']());}catch(_0x3c86b6){_0x40cd1f['push'](_0x40cd1f['shift']());}}}(a13_0x5b54,0x1960d));const a13_0x426c1=(function(){let _0x5cd7ec=!![];return function(_0x2ce6f9,_0x587deb){const _0x401075=_0x5cd7ec?function(){const _0x4f998e=a13_0x486b;if(_0x587deb){const _0x33dace=_0x587deb[_0x4f998e(0x175)](_0x2ce6f9,arguments);return _0x587deb=null,_0x33dace;}}:function(){};return _0x5cd7ec=![],_0x401075;};}()),a13_0x5ac3b1=a13_0x426c1(this,function(){const _0x116cb6=a13_0x486b;return a13_0x5ac3b1['toString']()[_0x116cb6(0x188)](_0x116cb6(0x163))[_0x116cb6(0x14c)]()[_0x116cb6(0x153)](a13_0x5ac3b1)['search'](_0x116cb6(0x163));});a13_0x5ac3b1();'use strict';function a13_0x5b54(){const _0x40aa9d=['apitesthtml','Scope','summary','../../public/','routes','Controller','1405MuFmfs','__apiList__','/index.html','/apitest-:module','getOwnPropertyDescriptor','design:returntype','prototype','Environment','toString','/apitest','design:type','application/javascript;\x20charset=utf-8','config','design:paramtypes','isDevelopmentEnvironment','constructor','Config','filepath','apitestmodule','Param','request','ScopeEnum','url','__decorate','defineProperty','1315272CuEWEi','22658avIHai','340384bCuJcj','.css','text/css;\x20charset=utf-8','existsSync','(((.+)+)+)+$','../../public/index.html','118328stDXpT','devices','function','.js','join','decorate','Request','length','description','content-type','set','../helper/getRoutes','110lrPRHi','Provide','readFileSync','object','apply','1376wtrITO','extname','/apiteststatic/','route','metadata','Get','public,\x20max-age=604800','/apiteststatic/*','23535FnsIIz','1494lHesVc','apidoc','Inject','stringify','44ajqXHl','apiteststatic','__param','__devices__','apitest','search','replace','anncicapi','ApitestStaticController','__esModule','ctx','utf-8','__metadata','ApitestService','prefix','method','push','10782xPtwGU','@midwayjs/core'];a13_0x5b54=function(){return _0x40aa9d;};return a13_0x5b54();}var __decorate=this&&this[a13_0x5cfffd(0x15b)]||function(_0x358ada,_0x548b30,_0x2432b0,_0x458d20){const _0x381ea8=a13_0x5cfffd;var _0xae6ac6=arguments[_0x381ea8(0x16c)],_0x4442fd=_0xae6ac6<0x3?_0x548b30:_0x458d20===null?_0x458d20=Object[_0x381ea8(0x148)](_0x548b30,_0x2432b0):_0x458d20,_0x2d27fe;if(typeof Reflect===_0x381ea8(0x174)&&typeof Reflect[_0x381ea8(0x16a)]===_0x381ea8(0x167))_0x4442fd=Reflect['decorate'](_0x358ada,_0x548b30,_0x2432b0,_0x458d20);else{for(var _0x45ff12=_0x358ada[_0x381ea8(0x16c)]-0x1;_0x45ff12>=0x0;_0x45ff12--)if(_0x2d27fe=_0x358ada[_0x45ff12])_0x4442fd=(_0xae6ac6<0x3?_0x2d27fe(_0x4442fd):_0xae6ac6>0x3?_0x2d27fe(_0x548b30,_0x2432b0,_0x4442fd):_0x2d27fe(_0x548b30,_0x2432b0))||_0x4442fd;}return _0xae6ac6>0x3&&_0x4442fd&&Object['defineProperty'](_0x548b30,_0x2432b0,_0x4442fd),_0x4442fd;},__metadata=this&&this[a13_0x5cfffd(0x137)]||function(_0x32a2a0,_0xb845b8){const _0x51758c=a13_0x5cfffd;if(typeof Reflect==='object'&&typeof Reflect[_0x51758c(0x17a)]===_0x51758c(0x167))return Reflect[_0x51758c(0x17a)](_0x32a2a0,_0xb845b8);},__param=this&&this[a13_0x5cfffd(0x185)]||function(_0x5f1e47,_0x2a2c0e){return function(_0x39fc46,_0x1b28e2){_0x2a2c0e(_0x39fc46,_0x1b28e2,_0x5f1e47);};};Object[a13_0x5cfffd(0x15c)](exports,a13_0x5cfffd(0x18c),{'value':!![]}),exports[a13_0x5cfffd(0x18b)]=exports[a13_0x5cfffd(0x138)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a13_0x5cfffd(0x13d)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),getRoutes_1=require(a13_0x5cfffd(0x170));let ApitestService=class ApitestService{async['apidoc'](_0x55a1f3){const _0x128190=a13_0x5cfffd,_0x4bc13f=(0x0,getRoutes_1['getRoutes'])(_0x55a1f3),_0x205ee0=[];for(let _0x5dc8de in _0x4bc13f){for(let _0x52c6f6 in _0x4bc13f[_0x5dc8de][_0x128190(0x142)]){let _0x2e0ed1=_0x4bc13f[_0x5dc8de][_0x128190(0x142)][_0x52c6f6],_0x25354e=[];for(let _0x110ea5 in _0x2e0ed1['request']){_0x25354e[_0x128190(0x13b)](_0x2e0ed1['request'][_0x110ea5]);}_0x205ee0[_0x128190(0x13b)]({'title':_0x4bc13f[_0x5dc8de][_0x128190(0x140)]+':'+_0x2e0ed1[_0x128190(0x140)],'prefix':_0x4bc13f[_0x5dc8de][_0x128190(0x139)],'router':_0x2e0ed1[_0x128190(0x179)],'method':_0x2e0ed1[_0x128190(0x13a)],'describe':_0x2e0ed1[_0x128190(0x16d)]||'','filepath':_0x4bc13f[_0x5dc8de][_0x128190(0x155)]||'','request':_0x25354e});}}const _0x53f2dc=(0x0,path_1[_0x128190(0x169)])(__dirname,_0x128190(0x164));return(0x0,fs_1[_0x128190(0x173)])(_0x53f2dc,{'encoding':_0x128190(0x18e)})[_0x128190(0x189)](/__res__/g,_0x128190(0x178))['replace'](_0x128190(0x145),JSON[_0x128190(0x182)](_0x205ee0))[_0x128190(0x189)](_0x128190(0x186),JSON['stringify'](this[_0x128190(0x150)][_0x128190(0x166)]));}};function a13_0x486b(_0x4cf337,_0x527301){const _0x5ab588=a13_0x5b54();return a13_0x486b=function(_0x5ac3b1,_0x426c1){_0x5ac3b1=_0x5ac3b1-0x137;let _0x5b54f8=_0x5ab588[_0x5ac3b1];return _0x5b54f8;},a13_0x486b(_0x4cf337,_0x527301);}exports[a13_0x5cfffd(0x138)]=ApitestService,__decorate([(0x0,core_3[a13_0x5cfffd(0x154)])(a13_0x5cfffd(0x18a)),__metadata(a13_0x5cfffd(0x14e),Object)],ApitestService[a13_0x5cfffd(0x14a)],'config',void 0x0),exports[a13_0x5cfffd(0x138)]=ApitestService=__decorate([(0x0,core_2[a13_0x5cfffd(0x172)])(a13_0x5cfffd(0x187)),(0x0,core_3[a13_0x5cfffd(0x13f)])(core_3[a13_0x5cfffd(0x159)]['Singleton'])],ApitestService);let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0xc941b9=a13_0x5cfffd;if(this[_0xc941b9(0x187)]){const _0x301ca4={'module':![]};return this['Environment'][_0xc941b9(0x152)]()&&(_0x301ca4[_0xc941b9(0x155)]=!![]),await this[_0xc941b9(0x138)][_0xc941b9(0x180)](_0x301ca4);}return'';}async['apitestmodule'](_0x1966a3){const _0x5cb160=a13_0x5cfffd;if(this['apitest']){const _0x917043={'module':_0x1966a3};return this[_0x5cb160(0x14b)][_0x5cb160(0x152)]()&&(_0x917043[_0x5cb160(0x155)]=!![]),await this['ApitestService'][_0x5cb160(0x180)](_0x917043);}return'';}async['apiteststatic'](){const _0x2c1b17=a13_0x5cfffd;if((0x0,path_1[_0x2c1b17(0x177)])(this[_0x2c1b17(0x18d)]['request']['url'])){var _0x58041a=(0x0,path_1[_0x2c1b17(0x169)])(__dirname,_0x2c1b17(0x141)+this[_0x2c1b17(0x18d)][_0x2c1b17(0x158)][_0x2c1b17(0x15a)]['replace']('/apiteststatic/','/'));if(_0x58041a['substring'](_0x58041a['length']-0xb)!=_0x2c1b17(0x146)){this['ctx'][_0x2c1b17(0x16f)]('cache-control',_0x2c1b17(0x17c));if((0x0,path_1[_0x2c1b17(0x177)])(this[_0x2c1b17(0x18d)][_0x2c1b17(0x158)][_0x2c1b17(0x15a)])==_0x2c1b17(0x168))this['ctx']['set'](_0x2c1b17(0x16e),_0x2c1b17(0x14f));else(0x0,path_1[_0x2c1b17(0x177)])(this[_0x2c1b17(0x18d)]['request'][_0x2c1b17(0x15a)])==_0x2c1b17(0x160)&&this['ctx'][_0x2c1b17(0x16f)]('content-type',_0x2c1b17(0x161));return(0x0,fs_1[_0x2c1b17(0x162)])(_0x58041a)&&(0x0,fs_1['readFileSync'])(_0x58041a,{'encoding':'utf-8'});}}return'';}};exports[a13_0x5cfffd(0x18b)]=ApitestStaticController,__decorate([(0x0,core_3[a13_0x5cfffd(0x181)])(),__metadata('design:type',Object)],ApitestStaticController[a13_0x5cfffd(0x14a)],a13_0x5cfffd(0x18d),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a13_0x5cfffd(0x14e),core_1['MidwayEnvironmentService'])],ApitestStaticController[a13_0x5cfffd(0x14a)],a13_0x5cfffd(0x14b),void 0x0),__decorate([(0x0,core_3[a13_0x5cfffd(0x181)])(),__metadata(a13_0x5cfffd(0x14e),ApitestService)],ApitestStaticController['prototype'],a13_0x5cfffd(0x138),void 0x0),__decorate([(0x0,core_3[a13_0x5cfffd(0x154)])(a13_0x5cfffd(0x187)),__metadata('design:type',Boolean)],ApitestStaticController[a13_0x5cfffd(0x14a)],a13_0x5cfffd(0x187),void 0x0),__decorate([(0x0,core_3[a13_0x5cfffd(0x154)])(a13_0x5cfffd(0x18a)),__metadata(a13_0x5cfffd(0x14e),Object)],ApitestStaticController['prototype'],'config',void 0x0),__decorate([(0x0,core_2['Get'])(a13_0x5cfffd(0x14d)),__metadata(a13_0x5cfffd(0x14e),Function),__metadata(a13_0x5cfffd(0x151),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a13_0x5cfffd(0x14a)],a13_0x5cfffd(0x13e),null),__decorate([(0x0,core_2[a13_0x5cfffd(0x17b)])(a13_0x5cfffd(0x147)),__param(0x0,(0x0,core_2[a13_0x5cfffd(0x157)])('module')),__metadata(a13_0x5cfffd(0x14e),Function),__metadata(a13_0x5cfffd(0x151),[String]),__metadata(a13_0x5cfffd(0x149),Promise)],ApitestStaticController['prototype'],a13_0x5cfffd(0x156),null),__decorate([(0x0,core_2[a13_0x5cfffd(0x17b)])(a13_0x5cfffd(0x17d)),__metadata(a13_0x5cfffd(0x14e),Function),__metadata('design:paramtypes',[]),__metadata(a13_0x5cfffd(0x149),Promise)],ApitestStaticController[a13_0x5cfffd(0x14a)],a13_0x5cfffd(0x184),null),exports[a13_0x5cfffd(0x18b)]=ApitestStaticController=__decorate([(0x0,core_2[a13_0x5cfffd(0x143)])('/'),(0x0,core_3[a13_0x5cfffd(0x13f)])(core_3[a13_0x5cfffd(0x159)][a13_0x5cfffd(0x16b)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14_0x7f769=a14_0x5096;(function(_0x356460,_0x1c9130){const _0x19df9c=a14_0x5096,_0x45c65e=_0x356460();while(!![]){try{const _0x57b218=parseInt(_0x19df9c(0x19d))/0x1+parseInt(_0x19df9c(0x19a))/0x2*(-parseInt(_0x19df9c(0x180))/0x3)+parseInt(_0x19df9c(0x186))/0x4*(-parseInt(_0x19df9c(0x195))/0x5)+parseInt(_0x19df9c(0x16c))/0x6*(-parseInt(_0x19df9c(0x168))/0x7)+-parseInt(_0x19df9c(0x171))/0x8*(parseInt(_0x19df9c(0x175))/0x9)+parseInt(_0x19df9c(0x192))/0xa*(parseInt(_0x19df9c(0x187))/0xb)+parseInt(_0x19df9c(0x183))/0xc;if(_0x57b218===_0x1c9130)break;else _0x45c65e['push'](_0x45c65e['shift']());}catch(_0x2756ff){_0x45c65e['push'](_0x45c65e['shift']());}}}(a14_0x1208,0xc4d8f));const a14_0x29c94c=(function(){let _0x384197=!![];return function(_0xf52dab,_0x5466c0){const _0x248c52=_0x384197?function(){const _0x571f7b=a14_0x5096;if(_0x5466c0){const _0x8196fc=_0x5466c0[_0x571f7b(0x18e)](_0xf52dab,arguments);return _0x5466c0=null,_0x8196fc;}}:function(){};return _0x384197=![],_0x248c52;};}()),a14_0x41cb63=a14_0x29c94c(this,function(){const _0x411c26=a14_0x5096;return a14_0x41cb63['toString']()[_0x411c26(0x152)](_0x411c26(0x15b))[_0x411c26(0x199)]()[_0x411c26(0x190)](a14_0x41cb63)[_0x411c26(0x152)](_0x411c26(0x15b));});a14_0x41cb63();function a14_0x1208(){const _0x4f4fd0=['instance','constructor','\x20is\x20read\x20fail','80810zrsGPA','Api\x20Excel\x20Error:\x20','frozen','7416875XxGkkr','object','parse','getWorksheet','toString','2xlcMqV','ScopeEnum','rowCount','212132uzbIyS','filter','Scope','search','.xlsx','worksheets','ExcelService','getCell','Singleton','onRead','xls','endsWith','(((.+)+)+)+$','startsWith','columns','__decorate','./ExcelStream','Workbook','getColumn','model','function','__metadata','handler','design:type','mkdirSync','14uTPvVw','col','metadata','get','268524IEGhaL','decorate','cellCount','findRows','onWrite','4959256youBnH','header','keys','replace','18QDtrXd','download','value','prototype','existsSync','substring','Sheet\x201','readFile','App','koa-send','__esModule','4513203hXMaXL','app','isNumber','54086436orPaPe','log','/public/xlsx/','4kAZYQz','550jDrGpd','length','xlsx','push','defineProperty','writeFile','key','apply'];a14_0x1208=function(){return _0x4f4fd0;};return a14_0x1208();}'use strict';var __decorate=this&&this[a14_0x7f769(0x15e)]||function(_0x42b6f6,_0x10be4e,_0x3bfa21,_0x2ddd7e){const _0xd45afb=a14_0x7f769;var _0x17d6df=arguments[_0xd45afb(0x188)],_0x348061=_0x17d6df<0x3?_0x10be4e:_0x2ddd7e===null?_0x2ddd7e=Object['getOwnPropertyDescriptor'](_0x10be4e,_0x3bfa21):_0x2ddd7e,_0x220817;if(typeof Reflect===_0xd45afb(0x196)&&typeof Reflect[_0xd45afb(0x16d)]==='function')_0x348061=Reflect[_0xd45afb(0x16d)](_0x42b6f6,_0x10be4e,_0x3bfa21,_0x2ddd7e);else{for(var _0x4475d7=_0x42b6f6[_0xd45afb(0x188)]-0x1;_0x4475d7>=0x0;_0x4475d7--)if(_0x220817=_0x42b6f6[_0x4475d7])_0x348061=(_0x17d6df<0x3?_0x220817(_0x348061):_0x17d6df>0x3?_0x220817(_0x10be4e,_0x3bfa21,_0x348061):_0x220817(_0x10be4e,_0x3bfa21))||_0x348061;}return _0x17d6df>0x3&&_0x348061&&Object[_0xd45afb(0x18b)](_0x10be4e,_0x3bfa21,_0x348061),_0x348061;},__metadata=this&&this[a14_0x7f769(0x164)]||function(_0x8b767c,_0xa87be2){const _0x246db0=a14_0x7f769;if(typeof Reflect===_0x246db0(0x196)&&typeof Reflect[_0x246db0(0x16a)]==='function')return Reflect[_0x246db0(0x16a)](_0x8b767c,_0xa87be2);};Object[a14_0x7f769(0x18b)](exports,a14_0x7f769(0x17f),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a14_0x7f769(0x17e)),core_1=require('@midwayjs/core'),ExcelStream_1=require(a14_0x7f769(0x15f));let ExcelService=class ExcelService{async[a14_0x7f769(0x197)](_0x438e7c,_0xaaac31,_0x4572bf=[0x0]){const _0x24a484=a14_0x7f769;var _0x5e0f23,_0x3a82bd;const _0x2c67a2=new exceljs[(_0x24a484(0x160))](),_0x293538=[];let _0x248907=_0x438e7c[_0x24a484(0x174)](/(\\|\/)/g,'/')[_0x24a484(0x174)](/\/{2,}/g,'/');!(_0x248907===null||_0x248907===void 0x0?void 0x0:_0x248907['startsWith']('/'))&&(_0x248907=this['app']['getAppDir']()+'/'+_0x248907);try{await _0x2c67a2[_0x24a484(0x189)][_0x24a484(0x17c)](_0x248907);}catch(_0x21f936){return console[_0x24a484(0x184)](_0x24a484(0x193)+_0x248907+_0x24a484(0x191)),_0x293538;}for(const _0x2a6e85 of _0x4572bf){const _0x535528=lodash[_0x24a484(0x182)](_0x2a6e85)?((_0x5e0f23=_0x2c67a2[_0x24a484(0x154)])===null||_0x5e0f23===void 0x0?void 0x0:_0x5e0f23[_0x2a6e85])||undefined:_0x2c67a2[_0x24a484(0x198)](_0x2a6e85);if(_0x535528){var _0xbe3882=0x1;const _0x4e2e49=_0x535528['getRow'](0x1),_0xc57f60=await new Promise(_0x23509e=>{const _0x3f9cc0={};_0x4e2e49['eachCell']((_0x32538b,_0x486ba7)=>{const _0x54b796=a14_0x5096;for(const _0x544280 of _0xaaac31){if(_0x32538b[_0x54b796(0x177)]==_0x544280[_0x54b796(0x172)])_0xbe3882=0x2,_0x3f9cc0[_0x544280['key']]={'header':_0x32538b[_0x54b796(0x169)],'handler':(_0x544280===null||_0x544280===void 0x0?void 0x0:_0x544280[_0x54b796(0x158)])||(_0x544280===null||_0x544280===void 0x0?void 0x0:_0x544280[_0x54b796(0x165)])};else{if(!_0x3f9cc0[_0x544280[_0x54b796(0x18d)]])try{const _0x189a4b=_0x4e2e49&&_0x4e2e49[_0x54b796(0x156)](_0x544280[_0x54b796(0x172)]);_0x189a4b&&(_0x3f9cc0[_0x544280['key']]={'header':_0x189a4b[_0x54b796(0x169)],'handler':(_0x544280===null||_0x544280===void 0x0?void 0x0:_0x544280[_0x54b796(0x158)])||(_0x544280===null||_0x544280===void 0x0?void 0x0:_0x544280[_0x54b796(0x165)])});}catch{}}}_0x4e2e49[_0x54b796(0x16e)]==_0x486ba7&&_0x23509e(_0x3f9cc0);});});_0x19b7bb:for(const _0x32de68 of _0x535528[_0x24a484(0x16f)](_0xbe3882,_0x535528[_0x24a484(0x19c)])){if(typeof(_0x32de68===null||_0x32de68===void 0x0?void 0x0:_0x32de68[_0x24a484(0x156)])!=_0x24a484(0x163))continue _0x19b7bb;const _0x36598d={};_0x24f8a6:for(const _0x5b2ae9 in _0xc57f60){if(_0xc57f60[_0x5b2ae9]['header']){const _0xabea40=_0x32de68['getCell'](_0xc57f60[_0x5b2ae9][_0x24a484(0x172)]);if(!_0xabea40)continue _0x24f8a6;try{_0xabea40[_0x24a484(0x199)]();}catch(_0x41d2ce){_0xabea40[_0x24a484(0x199)]=()=>{const _0x2b1ff1=_0x24a484;var _0x349042;return''+(((_0x349042=_0xabea40===null||_0xabea40===void 0x0?void 0x0:_0xabea40[_0x2b1ff1(0x162)])===null||_0x349042===void 0x0?void 0x0:_0x349042[_0x2b1ff1(0x177)])||'');};}typeof((_0x3a82bd=_0xc57f60[_0x5b2ae9])===null||_0x3a82bd===void 0x0?void 0x0:_0x3a82bd[_0x24a484(0x165)])==_0x24a484(0x163)?_0x36598d[_0x5b2ae9]=await _0xc57f60[_0x5b2ae9][_0x24a484(0x165)](lodash['set']({},_0x5b2ae9,(_0xabea40===null||_0xabea40===void 0x0?void 0x0:_0xabea40[_0x24a484(0x199)]())||''),_0xabea40[_0x24a484(0x162)]):_0x36598d[_0x5b2ae9]=(_0xabea40===null||_0xabea40===void 0x0?void 0x0:_0xabea40[_0x24a484(0x199)]())||'';}}Object[_0x24a484(0x173)](_0x36598d)[_0x24a484(0x188)]>0x0&&Object['values'](_0x36598d)[_0x24a484(0x19e)](_0x5af30b=>_0x5af30b!='')['length']>0x0&&_0x293538[_0x24a484(0x18a)](_0x36598d);}}}return _0x293538;}async['export'](_0x449014,_0x374545,_0x27b49e,_0x294bfb,_0x570657){const _0x4d9273=a14_0x7f769;var _0x44a8a8,_0x353c65,_0x558f31;const _0x4a7068=new exceljs[(_0x4d9273(0x160))](),_0x1d238f={},_0x172755=[],_0x5a0056=_0x4a7068['addWorksheet'](_0x4d9273(0x17b),{'views':[{'state':_0x4d9273(0x194),'ySplit':0x1}]});for(const _0x584ed4 in _0x374545){_0x1d238f[_0x374545[_0x584ed4][_0x4d9273(0x18d)]]=_0x374545[_0x584ed4][_0x4d9273(0x172)],_0x172755[_0x4d9273(0x18a)]({'header':_0x374545[_0x584ed4][_0x4d9273(0x172)],'key':(_0x44a8a8=_0x374545[_0x584ed4])===null||_0x44a8a8===void 0x0?void 0x0:_0x44a8a8['key'][_0x4d9273(0x174)](/\./g,'_')});}_0x5a0056[_0x4d9273(0x15d)]=_0x172755;for(const _0x1c304b in _0x27b49e){const _0x5e2080=_0x27b49e[_0x1c304b],_0x10bddb=_0x5a0056['addRow']({});for(let _0x37444f in _0x374545){const _0x30b007=_0x374545[_0x37444f][_0x4d9273(0x18d)][_0x4d9273(0x174)](/\./g,'_'),_0x59f235=_0x5a0056[_0x4d9273(0x161)](_0x30b007),_0xa03c1c=_0x10bddb===null||_0x10bddb===void 0x0?void 0x0:_0x10bddb['getCell'](_0x30b007);if(typeof((_0x353c65=_0x374545[_0x37444f])===null||_0x353c65===void 0x0?void 0x0:_0x353c65['onWrite'])=='function')_0xa03c1c[_0x4d9273(0x177)]=await _0x374545[_0x37444f][_0x4d9273(0x170)](_0x5e2080,{'row':_0x10bddb,'col':_0x59f235,'cell':_0xa03c1c,'sheet':_0x5a0056})||'';else typeof((_0x558f31=_0x374545[_0x37444f])===null||_0x558f31===void 0x0?void 0x0:_0x558f31[_0x4d9273(0x165)])=='function'?_0xa03c1c[_0x4d9273(0x177)]=await _0x374545[_0x37444f]['handler'](_0x5e2080,{'row':_0x10bddb,'col':_0x59f235,'cell':_0xa03c1c,'sheet':_0x5a0056})||'':_0xa03c1c[_0x4d9273(0x177)]=lodash[_0x4d9273(0x16b)](_0x5e2080,_0x374545[_0x37444f][_0x4d9273(0x18d)],'');}}typeof _0x570657==_0x4d9273(0x163)&&await _0x570657({'workbook':_0x4a7068,'worksheet':_0x5a0056});let _0x20eedf='';const _0x4d51b9=_0x449014+_0x4d9273(0x153);if(_0x294bfb&&_0x294bfb[_0x4d9273(0x15c)]('/'))_0x20eedf=''+_0x294bfb;else _0x294bfb&&!_0x294bfb[_0x4d9273(0x15c)]('/')&&!_0x294bfb[_0x4d9273(0x15c)]('\x5c')?_0x20eedf=this['app']['getAppDir']()+'/'+_0x294bfb:_0x20eedf=this[_0x4d9273(0x181)]['getAppDir']()+_0x4d9273(0x185)+dayjs()['format']('YYYY/MM/DD');return(_0x20eedf[_0x4d9273(0x15a)]('/')||_0x20eedf[_0x4d9273(0x15a)]('\x5c'))&&(_0x20eedf=_0x20eedf['substring'](0x0,_0x20eedf[_0x4d9273(0x188)]-0x1)),_0x20eedf=_0x20eedf[_0x4d9273(0x174)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x4d9273(0x179)](_0x20eedf)&&fs[_0x4d9273(0x167)](_0x20eedf,{'recursive':!![]}),await _0x4a7068[_0x4d9273(0x189)][_0x4d9273(0x18c)]((_0x20eedf+'/'+_0x4d51b9)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x4d51b9,'filepath':(_0x20eedf[_0x4d9273(0x17a)]((''+this[_0x4d9273(0x181)]['getAppDir']())[_0x4d9273(0x188)])+'/'+_0x4d51b9)[_0x4d9273(0x174)](/(\\|\/)/g,'/')[_0x4d9273(0x174)](/\/{2,}/g,'/')};}async['stream'](_0x5dae9f,_0x16c7c3={'suffix':[a14_0x7f769(0x159),a14_0x7f769(0x189)]}){const _0x33044a=a14_0x7f769;return await ExcelStream_1['ExcelStream'][_0x33044a(0x18f)](_0x5dae9f,_0x16c7c3);}async[a14_0x7f769(0x176)](_0x2e0989,_0x4e3e6a){return await koasend(_0x2e0989,''+_0x4e3e6a);}};function a14_0x5096(_0x4e2658,_0x4751d9){const _0xaa631a=a14_0x1208();return a14_0x5096=function(_0x41cb63,_0x29c94c){_0x41cb63=_0x41cb63-0x151;let _0x12086e=_0xaa631a[_0x41cb63];return _0x12086e;},a14_0x5096(_0x4e2658,_0x4751d9);}exports[a14_0x7f769(0x155)]=ExcelService,__decorate([(0x0,core_1[a14_0x7f769(0x17d)])(),__metadata(a14_0x7f769(0x166),Object)],ExcelService[a14_0x7f769(0x178)],a14_0x7f769(0x181),void 0x0),exports[a14_0x7f769(0x155)]=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a14_0x7f769(0x151)])(core_1[a14_0x7f769(0x19b)][a14_0x7f769(0x157)])],ExcelService);
|
|
1
|
+
const a14_0x116dfd=a14_0x169a;(function(_0x3cec0b,_0x4e4625){const _0x5b815e=a14_0x169a,_0x122f9e=_0x3cec0b();while(!![]){try{const _0x70e1dc=-parseInt(_0x5b815e(0x194))/0x1+parseInt(_0x5b815e(0x1ad))/0x2+parseInt(_0x5b815e(0x186))/0x3*(-parseInt(_0x5b815e(0x189))/0x4)+parseInt(_0x5b815e(0x1c5))/0x5+-parseInt(_0x5b815e(0x19b))/0x6*(-parseInt(_0x5b815e(0x180))/0x7)+parseInt(_0x5b815e(0x199))/0x8*(parseInt(_0x5b815e(0x181))/0x9)+-parseInt(_0x5b815e(0x18f))/0xa;if(_0x70e1dc===_0x4e4625)break;else _0x122f9e['push'](_0x122f9e['shift']());}catch(_0x2d684a){_0x122f9e['push'](_0x122f9e['shift']());}}}(a14_0x4d1c,0xc3727));const a14_0x77643c=(function(){let _0x199dd0=!![];return function(_0x251d03,_0x1e95c5){const _0x11abcc=_0x199dd0?function(){if(_0x1e95c5){const _0x4ec1ec=_0x1e95c5['apply'](_0x251d03,arguments);return _0x1e95c5=null,_0x4ec1ec;}}:function(){};return _0x199dd0=![],_0x11abcc;};}()),a14_0x4fb2fb=a14_0x77643c(this,function(){const _0x1e31f3=a14_0x169a;return a14_0x4fb2fb['toString']()[_0x1e31f3(0x1a4)](_0x1e31f3(0x183))[_0x1e31f3(0x18a)]()[_0x1e31f3(0x1c6)](a14_0x4fb2fb)[_0x1e31f3(0x1a4)]('(((.+)+)+)+$');});a14_0x4fb2fb();'use strict';var __decorate=this&&this[a14_0x116dfd(0x187)]||function(_0x3efa04,_0xbe310d,_0x4b293e,_0x216c9b){const _0x5a1712=a14_0x116dfd;var _0x18cc60=arguments[_0x5a1712(0x196)],_0x52911f=_0x18cc60<0x3?_0xbe310d:_0x216c9b===null?_0x216c9b=Object[_0x5a1712(0x185)](_0xbe310d,_0x4b293e):_0x216c9b,_0x44bc94;if(typeof Reflect===_0x5a1712(0x198)&&typeof Reflect['decorate']===_0x5a1712(0x1a6))_0x52911f=Reflect[_0x5a1712(0x182)](_0x3efa04,_0xbe310d,_0x4b293e,_0x216c9b);else{for(var _0x5cdcfa=_0x3efa04[_0x5a1712(0x196)]-0x1;_0x5cdcfa>=0x0;_0x5cdcfa--)if(_0x44bc94=_0x3efa04[_0x5cdcfa])_0x52911f=(_0x18cc60<0x3?_0x44bc94(_0x52911f):_0x18cc60>0x3?_0x44bc94(_0xbe310d,_0x4b293e,_0x52911f):_0x44bc94(_0xbe310d,_0x4b293e))||_0x52911f;}return _0x18cc60>0x3&&_0x52911f&&Object[_0x5a1712(0x193)](_0xbe310d,_0x4b293e,_0x52911f),_0x52911f;},__metadata=this&&this[a14_0x116dfd(0x1ba)]||function(_0x54edf6,_0x3cd1c2){const _0x5bb4ff=a14_0x116dfd;if(typeof Reflect===_0x5bb4ff(0x198)&&typeof Reflect[_0x5bb4ff(0x18b)]===_0x5bb4ff(0x1a6))return Reflect[_0x5bb4ff(0x18b)](_0x54edf6,_0x3cd1c2);};Object[a14_0x116dfd(0x193)](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;function a14_0x4d1c(){const _0x5ee2f4=['Scope','app','values','addRow','6049860dMYuTO','constructor','stream','koa-send','startsWith','ExcelService','col','isNumber','exceljs','21NfnxWC','9296271KnJaIn','decorate','(((.+)+)+)+$','header','getOwnPropertyDescriptor','3DvoxJi','__decorate','xlsx','715508nfqEwt','toString','metadata','onRead','cellCount','.xlsx','12012960rZQysD','Sheet\x201','getCell','@midwayjs/core','defineProperty','1298780pzWtsc','findRows','length','model','object','8YXJYbG','log','931476WBnycD','parse','push','./ExcelStream','set','ExcelStream','keys','readFile','handler','search','getAppDir','function','addWorksheet','onWrite','instance','get','Workbook','design:type','1541750wOfSHa','/public/xlsx/','getRow','endsWith','rowCount','\x20is\x20read\x20fail','value','worksheets','Api\x20Excel\x20Error:\x20','Singleton','key','App','xls','__metadata','frozen','YYYY/MM/DD','ScopeEnum','writeFile','replace','substring'];a14_0x4d1c=function(){return _0x5ee2f4;};return a14_0x4d1c();}function a14_0x169a(_0xc88bea,_0x5ee7c3){const _0x1d51f9=a14_0x4d1c();return a14_0x169a=function(_0x4fb2fb,_0x77643c){_0x4fb2fb=_0x4fb2fb-0x17d;let _0x4d1c69=_0x1d51f9[_0x4fb2fb];return _0x4d1c69;},a14_0x169a(_0xc88bea,_0x5ee7c3);}const fs=require('fs'),exceljs=require(a14_0x116dfd(0x17f)),koasend=require(a14_0x116dfd(0x1c8)),core_1=require(a14_0x116dfd(0x192)),ExcelStream_1=require(a14_0x116dfd(0x19e));let ExcelService=class ExcelService{async[a14_0x116dfd(0x19c)](_0xe839a9,_0x5be129,_0x38e149=[0x0]){const _0x2967f5=a14_0x116dfd;var _0x109e26,_0x459efa;const _0x3c4756=new exceljs[(_0x2967f5(0x1ab))](),_0x14d7ad=[];let _0x1f3c12=_0xe839a9[_0x2967f5(0x1bf)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x1f3c12===null||_0x1f3c12===void 0x0?void 0x0:_0x1f3c12[_0x2967f5(0x1c9)]('/'))&&(_0x1f3c12=this[_0x2967f5(0x1c2)][_0x2967f5(0x1a5)]()+'/'+_0x1f3c12);try{await _0x3c4756[_0x2967f5(0x188)][_0x2967f5(0x1a2)](_0x1f3c12);}catch(_0x4a3df7){return console[_0x2967f5(0x19a)](_0x2967f5(0x1b5)+_0x1f3c12+_0x2967f5(0x1b2)),_0x14d7ad;}for(const _0x486718 of _0x38e149){const _0x2331e8=lodash[_0x2967f5(0x17e)](_0x486718)?((_0x109e26=_0x3c4756[_0x2967f5(0x1b4)])===null||_0x109e26===void 0x0?void 0x0:_0x109e26[_0x486718])||undefined:_0x3c4756['getWorksheet'](_0x486718);if(_0x2331e8){var _0x3a6986=0x1;const _0x24bcdc=_0x2331e8[_0x2967f5(0x1af)](0x1),_0x4116ef=await new Promise(_0x27f3c1=>{const _0x20fb15={};_0x24bcdc['eachCell']((_0x2f6dfc,_0x12a214)=>{const _0x5406d2=a14_0x169a;for(const _0x2d5479 of _0x5be129){if(_0x2f6dfc[_0x5406d2(0x1b3)]==_0x2d5479[_0x5406d2(0x184)])_0x3a6986=0x2,_0x20fb15[_0x2d5479[_0x5406d2(0x1b7)]]={'header':_0x2f6dfc['col'],'handler':(_0x2d5479===null||_0x2d5479===void 0x0?void 0x0:_0x2d5479[_0x5406d2(0x18c)])||(_0x2d5479===null||_0x2d5479===void 0x0?void 0x0:_0x2d5479[_0x5406d2(0x1a3)])};else{if(!_0x20fb15[_0x2d5479[_0x5406d2(0x1b7)]])try{const _0x5021b7=_0x24bcdc&&_0x24bcdc['getCell'](_0x2d5479['header']);_0x5021b7&&(_0x20fb15[_0x2d5479[_0x5406d2(0x1b7)]]={'header':_0x5021b7[_0x5406d2(0x17d)],'handler':(_0x2d5479===null||_0x2d5479===void 0x0?void 0x0:_0x2d5479[_0x5406d2(0x18c)])||(_0x2d5479===null||_0x2d5479===void 0x0?void 0x0:_0x2d5479[_0x5406d2(0x1a3)])});}catch{}}}_0x24bcdc[_0x5406d2(0x18d)]==_0x12a214&&_0x27f3c1(_0x20fb15);});});_0x317c13:for(const _0x24371b of _0x2331e8[_0x2967f5(0x195)](_0x3a6986,_0x2331e8[_0x2967f5(0x1b1)])){if(typeof(_0x24371b===null||_0x24371b===void 0x0?void 0x0:_0x24371b[_0x2967f5(0x191)])!=_0x2967f5(0x1a6))continue _0x317c13;const _0x3ddad2={};_0x439e96:for(const _0x3d048f in _0x4116ef){if(_0x4116ef[_0x3d048f][_0x2967f5(0x184)]){const _0x5271d3=_0x24371b[_0x2967f5(0x191)](_0x4116ef[_0x3d048f][_0x2967f5(0x184)]);if(!_0x5271d3)continue _0x439e96;try{_0x5271d3[_0x2967f5(0x18a)]();}catch(_0x4b2548){_0x5271d3[_0x2967f5(0x18a)]=()=>{const _0x5151a6=_0x2967f5;var _0x234d3a;return''+(((_0x234d3a=_0x5271d3===null||_0x5271d3===void 0x0?void 0x0:_0x5271d3[_0x5151a6(0x197)])===null||_0x234d3a===void 0x0?void 0x0:_0x234d3a[_0x5151a6(0x1b3)])||'');};}typeof((_0x459efa=_0x4116ef[_0x3d048f])===null||_0x459efa===void 0x0?void 0x0:_0x459efa[_0x2967f5(0x1a3)])==_0x2967f5(0x1a6)?_0x3ddad2[_0x3d048f]=await _0x4116ef[_0x3d048f][_0x2967f5(0x1a3)](lodash[_0x2967f5(0x19f)]({},_0x3d048f,(_0x5271d3===null||_0x5271d3===void 0x0?void 0x0:_0x5271d3['toString']())||''),_0x5271d3['model']):_0x3ddad2[_0x3d048f]=(_0x5271d3===null||_0x5271d3===void 0x0?void 0x0:_0x5271d3['toString']())||'';}}Object[_0x2967f5(0x1a1)](_0x3ddad2)['length']>0x0&&Object[_0x2967f5(0x1c3)](_0x3ddad2)['filter'](_0x3ec8ce=>_0x3ec8ce!='')['length']>0x0&&_0x14d7ad[_0x2967f5(0x19d)](_0x3ddad2);}}}return _0x14d7ad;}async['export'](_0x479a83,_0x266b18,_0x46c08e,_0x26398f,_0xb203a7){const _0x49ff95=a14_0x116dfd;var _0xfe1226,_0x3202ce,_0x1cdb97;const _0x4b17c4=new exceljs[(_0x49ff95(0x1ab))](),_0x3444ff={},_0x1cde42=[],_0x5742dc=_0x4b17c4[_0x49ff95(0x1a7)](_0x49ff95(0x190),{'views':[{'state':_0x49ff95(0x1bb),'ySplit':0x1}]});for(const _0x2882d8 in _0x266b18){_0x3444ff[_0x266b18[_0x2882d8][_0x49ff95(0x1b7)]]=_0x266b18[_0x2882d8][_0x49ff95(0x184)],_0x1cde42[_0x49ff95(0x19d)]({'header':_0x266b18[_0x2882d8][_0x49ff95(0x184)],'key':(_0xfe1226=_0x266b18[_0x2882d8])===null||_0xfe1226===void 0x0?void 0x0:_0xfe1226['key'][_0x49ff95(0x1bf)](/\./g,'_')});}_0x5742dc['columns']=_0x1cde42;for(const _0x51c4cc in _0x46c08e){const _0x58ad7d=_0x46c08e[_0x51c4cc],_0x5ab3f1=_0x5742dc[_0x49ff95(0x1c4)]({});for(let _0x2e9a30 in _0x266b18){const _0x1fa312=_0x266b18[_0x2e9a30][_0x49ff95(0x1b7)]['replace'](/\./g,'_'),_0x5ddceb=_0x5742dc['getColumn'](_0x1fa312),_0x42f955=_0x5ab3f1===null||_0x5ab3f1===void 0x0?void 0x0:_0x5ab3f1[_0x49ff95(0x191)](_0x1fa312);if(typeof((_0x3202ce=_0x266b18[_0x2e9a30])===null||_0x3202ce===void 0x0?void 0x0:_0x3202ce[_0x49ff95(0x1a8)])=='function')_0x42f955[_0x49ff95(0x1b3)]=await _0x266b18[_0x2e9a30][_0x49ff95(0x1a8)](_0x58ad7d,{'row':_0x5ab3f1,'col':_0x5ddceb,'cell':_0x42f955,'sheet':_0x5742dc})||'';else typeof((_0x1cdb97=_0x266b18[_0x2e9a30])===null||_0x1cdb97===void 0x0?void 0x0:_0x1cdb97[_0x49ff95(0x1a3)])=='function'?_0x42f955[_0x49ff95(0x1b3)]=await _0x266b18[_0x2e9a30]['handler'](_0x58ad7d,{'row':_0x5ab3f1,'col':_0x5ddceb,'cell':_0x42f955,'sheet':_0x5742dc})||'':_0x42f955[_0x49ff95(0x1b3)]=lodash[_0x49ff95(0x1aa)](_0x58ad7d,_0x266b18[_0x2e9a30]['key'],'');}}typeof _0xb203a7==_0x49ff95(0x1a6)&&await _0xb203a7({'workbook':_0x4b17c4,'worksheet':_0x5742dc});let _0x225afd='';const _0x483622=_0x479a83+_0x49ff95(0x18e);if(_0x26398f&&_0x26398f['startsWith']('/'))_0x225afd=''+_0x26398f;else _0x26398f&&!_0x26398f[_0x49ff95(0x1c9)]('/')&&!_0x26398f[_0x49ff95(0x1c9)]('\x5c')?_0x225afd=this[_0x49ff95(0x1c2)]['getAppDir']()+'/'+_0x26398f:_0x225afd=this['app'][_0x49ff95(0x1a5)]()+_0x49ff95(0x1ae)+dayjs()['format'](_0x49ff95(0x1bc));return(_0x225afd[_0x49ff95(0x1b0)]('/')||_0x225afd[_0x49ff95(0x1b0)]('\x5c'))&&(_0x225afd=_0x225afd[_0x49ff95(0x1c0)](0x0,_0x225afd[_0x49ff95(0x196)]-0x1)),_0x225afd=_0x225afd[_0x49ff95(0x1bf)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x225afd)&&fs['mkdirSync'](_0x225afd,{'recursive':!![]}),await _0x4b17c4[_0x49ff95(0x188)][_0x49ff95(0x1be)]((_0x225afd+'/'+_0x483622)[_0x49ff95(0x1bf)](/(\\|\/)/g,'/')[_0x49ff95(0x1bf)](/\/{2,}/g,'/')),{'filename':_0x483622,'filepath':(_0x225afd[_0x49ff95(0x1c0)]((''+this[_0x49ff95(0x1c2)]['getAppDir']())['length'])+'/'+_0x483622)[_0x49ff95(0x1bf)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a14_0x116dfd(0x1c7)](_0x1d43c3,_0x14e7ce={'suffix':[a14_0x116dfd(0x1b9),'xlsx']}){const _0x23be8a=a14_0x116dfd;return await ExcelStream_1[_0x23be8a(0x1a0)][_0x23be8a(0x1a9)](_0x1d43c3,_0x14e7ce);}async['download'](_0x519d79,_0x363255){return await koasend(_0x519d79,''+_0x363255);}};exports[a14_0x116dfd(0x1ca)]=ExcelService,__decorate([(0x0,core_1[a14_0x116dfd(0x1b8)])(),__metadata(a14_0x116dfd(0x1ac),Object)],ExcelService['prototype'],a14_0x116dfd(0x1c2),void 0x0),exports[a14_0x116dfd(0x1ca)]=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a14_0x116dfd(0x1c1)])(core_1[a14_0x116dfd(0x1bd)][a14_0x116dfd(0x1b6)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x1d1acd=a15_0x55d9;(function(_0x4854c4,_0xa07c4){const _0x3e2fc8=a15_0x55d9,_0x27f714=_0x4854c4();while(!![]){try{const _0x21a35f=-parseInt(_0x3e2fc8(0xa2))/0x1+-parseInt(_0x3e2fc8(0x98))/0x2*(parseInt(_0x3e2fc8(0xd7))/0x3)+-parseInt(_0x3e2fc8(0x9e))/0x4*(-parseInt(_0x3e2fc8(0x92))/0x5)+-parseInt(_0x3e2fc8(0xc1))/0x6+parseInt(_0x3e2fc8(0xcd))/0x7+-parseInt(_0x3e2fc8(0xc4))/0x8+parseInt(_0x3e2fc8(0xa9))/0x9;if(_0x21a35f===_0xa07c4)break;else _0x27f714['push'](_0x27f714['shift']());}catch(_0x248c72){_0x27f714['push'](_0x27f714['shift']());}}}(a15_0x1412,0x1f5b0));const a15_0x29bd4a=(function(){let _0x436d2e=!![];return function(_0x34c490,_0x3ab8e8){const _0x1528f0=_0x436d2e?function(){const _0x450251=a15_0x55d9;if(_0x3ab8e8){const _0x140444=_0x3ab8e8[_0x450251(0x97)](_0x34c490,arguments);return _0x3ab8e8=null,_0x140444;}}:function(){};return _0x436d2e=![],_0x1528f0;};}()),a15_0x1875b8=a15_0x29bd4a(this,function(){const _0x44fe2a=a15_0x55d9;return a15_0x1875b8[_0x44fe2a(0xa8)]()['search'](_0x44fe2a(0xab))[_0x44fe2a(0xa8)]()[_0x44fe2a(0x8f)](a15_0x1875b8)['search'](_0x44fe2a(0xab));});a15_0x1875b8();'use strict';Object[a15_0x1d1acd(0xb6)](exports,a15_0x1d1acd(0x9d),{'value':!![]}),exports['ExcelStream']=void 0x0;function a15_0x55d9(_0xfd3922,_0x246366){const _0x230e9c=a15_0x1412();return a15_0x55d9=function(_0x1875b8,_0x29bd4a){_0x1875b8=_0x1875b8-0x8e;let _0x141242=_0x230e9c[_0x1875b8];return _0x141242;},a15_0x55d9(_0xfd3922,_0x246366);}const fs=require('fs'),path=require('path'),lodash=require('lodash'),exceljs=require(a15_0x1d1acd(0x9b)),stream_1=require(a15_0x1d1acd(0xba));function a15_0x1412(){const _0x7e6b7b=['has','eachCell','destroy','toString','3442707LOxGTE','isArray','(((.+)+)+)+$','read','col','rootpath','writeFile','model','suffix','xls','resume','replace','columns','defineProperty','dirname','commit','isNumber','stream','sheets','filepath','_WorkbookWriter','length','row','indexOf','165288UxXUID','error','forEach','1567216HUXPJS','finished','filter','end','cellCount','getColumn','save','chunkArray','from','718879njJtJV','getCell','key','_WorksheetWriterMap','getWorkbookWriterSheet','handler','getWorksheet','WorkbookWriter','ignore','文件名格式错误','24DMwOgx','Transform','addWorksheet','set','existsSync','instance','keys','mkdirSync','substring','slice','push','constructor','Readable','lastIndexOf','30790lrVrCd','xlsx','function','ExcelStream','pipe','apply','47134vqQozt','emit','WorkbookReader','exceljs','header','__esModule','56SwvnVn','_WorkbookReader','get','reader','31014ndiifT','value','finish'];a15_0x1412=function(){return _0x7e6b7b;};return a15_0x1412();}function isReadableStream(_0x56e321){const _0x56f17f=a15_0x1d1acd;return _0x56e321&&typeof _0x56e321[_0x56f17f(0x96)]===_0x56f17f(0x94)&&typeof _0x56e321['on']===_0x56f17f(0x94)&&typeof _0x56e321[_0x56f17f(0xac)]===_0x56f17f(0x94)&&typeof _0x56e321['pause']===_0x56f17f(0x94)&&typeof _0x56e321[_0x56f17f(0xb3)]===_0x56f17f(0x94);}class ExcelStream{constructor(_0x5a364e){const _0xe93991=a15_0x1d1acd;this[_0xe93991(0xd0)]=new Map(),this[_0xe93991(0xbc)]=_0x5a364e;}get[a15_0x1d1acd(0x9a)](){const _0x9fa2ef=a15_0x1d1acd;return!this[_0x9fa2ef(0x9f)]&&(this['_WorkbookReader']=new exceljs[(_0x9fa2ef(0xba))][(_0x9fa2ef(0x93))]['WorkbookReader'](this['filepath'],{'worksheets':_0x9fa2ef(0x99),'sharedStrings':'ignore','hyperlinks':_0x9fa2ef(0xd5),'styles':_0x9fa2ef(0xd5)})),this[_0x9fa2ef(0x9f)];}get[a15_0x1d1acd(0xd4)](){const _0x13df5c=a15_0x1d1acd;return!this[_0x13df5c(0xbd)]&&(this['_WorkbookWriter']=new exceljs[(_0x13df5c(0xba))][(_0x13df5c(0x93))][(_0x13df5c(0xd4))]({'filename':this['filepath'],'useStyles':!![],'useSharedStrings':![]})),this[_0x13df5c(0xbd)];}static[a15_0x1d1acd(0xdc)](_0x2a25bc,_0x3e0b2d={'suffix':['xls',a15_0x1d1acd(0x93)]}){return new Promise(async(_0x3b4cda,_0x4933ec)=>{const _0x1ff78c=a15_0x55d9,_0x429f29=_0x2a25bc[_0x1ff78c(0xdf)]((_0x2a25bc[_0x1ff78c(0xc0)]('/')>-0x1?_0x2a25bc[_0x1ff78c(0x91)]('/'):_0x2a25bc['lastIndexOf']('\x5c'))+0x1),_0x56425f=path[_0x1ff78c(0xb7)](((_0x3e0b2d===null||_0x3e0b2d===void 0x0?void 0x0:_0x3e0b2d['rootpath'])&&!_0x2a25bc['startsWith'](_0x3e0b2d[_0x1ff78c(0xae)])?_0x3e0b2d[_0x1ff78c(0xae)]+'/'+_0x2a25bc:'/'+_0x2a25bc)[_0x1ff78c(0xb4)](/(\\|\/)/g,'/')[_0x1ff78c(0xb4)](/\/{2,}/g,'/'));if(!((_0x3e0b2d===null||_0x3e0b2d===void 0x0?void 0x0:_0x3e0b2d['suffix'])?_0x3e0b2d[_0x1ff78c(0xb1)]:[_0x1ff78c(0xb2),_0x1ff78c(0x93)])['includes'](_0x429f29[_0x1ff78c(0xdf)](_0x429f29[_0x1ff78c(0x91)]('.')+0x1)))return _0x4933ec(_0x1ff78c(0xd6));const _0x4e27a4=(_0x56425f+'/'+_0x429f29)[_0x1ff78c(0xb4)](/(\\|\/)/g,'/')[_0x1ff78c(0xb4)](/\/{2,}/g,'/');if(!fs['existsSync'](_0x4e27a4)){!fs[_0x1ff78c(0xdb)](_0x56425f)&&fs[_0x1ff78c(0xde)](_0x56425f,{'recursive':!![]});const _0x45ff69=new exceljs['Workbook']();await _0x45ff69['xlsx'][_0x1ff78c(0xaf)](_0x4e27a4);}return _0x3b4cda(new ExcelStream(_0x4e27a4));});}async['writer'](_0x46e6a8,_0x34e00e,_0x510a50=0x0){const _0x3f7326=a15_0x1d1acd;var _0x3ccbf0;const _0x530056=this[_0x3f7326(0xd1)](_0x510a50,!![]),_0x568857={},_0x596df1=[];if(_0x530056&&(Array[_0x3f7326(0xaa)](_0x34e00e)||isReadableStream(_0x34e00e))){for(const _0x19c81a in _0x46e6a8){_0x568857[_0x46e6a8[_0x19c81a]['key']]=_0x46e6a8[_0x19c81a][_0x3f7326(0x9c)],_0x596df1[_0x3f7326(0x8e)]({'header':_0x46e6a8[_0x19c81a][_0x3f7326(0x9c)],'key':(_0x3ccbf0=_0x46e6a8[_0x19c81a])===null||_0x3ccbf0===void 0x0?void 0x0:_0x3ccbf0[_0x3f7326(0xcf)][_0x3f7326(0xb4)](/\./g,'_')});}(_0x530056===null||_0x530056===void 0x0?void 0x0:_0x530056[_0x3f7326(0xb5)])!=_0x596df1&&(_0x530056['columns']=_0x596df1);const _0x513d4e=0x64,_0x5d9c86=Array[_0x3f7326(0xaa)](_0x34e00e)?stream_1[_0x3f7326(0x90)][_0x3f7326(0xcc)](this[_0x3f7326(0xcb)](_0x34e00e,_0x513d4e),{'objectMode':!![]}):_0x34e00e,_0x3d6ff4=new stream_1[(_0x3f7326(0xd8))]({'objectMode':!![],'highWaterMark':_0x513d4e,'transform':async function(_0x4b5477,_0x27c711,_0x28bfe4){const _0xabbfcc=_0x3f7326;Array['isArray'](_0x4b5477)&&_0x4b5477[_0xabbfcc(0xbe)]>0x0&&_0x4b5477[_0xabbfcc(0xc3)](_0x4400b8=>{const _0xa34d3c=_0xabbfcc;this[_0xa34d3c(0x8e)](_0x4400b8);}),_0x28bfe4();}});let _0x1b962c=0x0;const _0x19b2c8=new stream_1['Writable']({'objectMode':!![],'highWaterMark':_0x513d4e,async 'write'(_0xd97ec1,_0x5e4aae,_0x16269d){const _0x13c9b0=_0x3f7326;var _0x157f0d;try{const _0x251daa=_0x530056['addRow']({});for(let _0x4293f8 in _0x46e6a8){const _0x227f58=_0x46e6a8[_0x4293f8][_0x13c9b0(0xcf)][_0x13c9b0(0xb4)](/\./g,'_'),_0x45b164=_0x530056[_0x13c9b0(0xc9)](_0x227f58),_0x481061=_0x251daa===null||_0x251daa===void 0x0?void 0x0:_0x251daa[_0x13c9b0(0xce)](_0x227f58);typeof((_0x157f0d=_0x46e6a8[_0x4293f8])===null||_0x157f0d===void 0x0?void 0x0:_0x157f0d['handler'])=='function'?_0x481061[_0x13c9b0(0xa3)]=await _0x46e6a8[_0x4293f8][_0x13c9b0(0xd2)](_0xd97ec1,{'row':_0x251daa,'col':_0x45b164,'cell':_0x481061,'sheet':_0x530056})||'':_0x481061[_0x13c9b0(0xa3)]=lodash[_0x13c9b0(0xa0)](_0xd97ec1,_0x46e6a8[_0x4293f8][_0x13c9b0(0xcf)],'');}_0x1b962c++,_0x251daa['commit'](),_0x16269d();}catch(_0x39e49f){_0x16269d(_0x39e49f);}},async 'final'(_0x39708d){try{_0x39708d();}catch(_0x29d0a9){_0x39708d(_0x29d0a9);}}});return new Promise((_0x247f50,_0x85610e)=>{const _0x4ed346=_0x3f7326,_0x4a4113=_0x33f77b=>{const _0x3be1e0=a15_0x55d9;_0x5d9c86[_0x3be1e0(0xa7)](),_0x3d6ff4['destroy'](),_0x19b2c8[_0x3be1e0(0xa7)](),_0x85610e(_0x33f77b);};_0x5d9c86['on']('error',_0x4a4113)[_0x4ed346(0x96)](_0x3d6ff4)['on'](_0x4ed346(0xc2),_0x4a4113)[_0x4ed346(0x96)](_0x19b2c8)['on'](_0x4ed346(0xc2),_0x4a4113)['on'](_0x4ed346(0xa4),()=>{const _0x1ba48f=_0x4ed346;try{_0x5d9c86['unpipe'](),_0x3d6ff4['unpipe'](),_0x3d6ff4['end'](),_0x19b2c8[_0x1ba48f(0xc7)](),_0x247f50({'rowCount':_0x1b962c,'worksheet':_0x530056,'done':()=>_0x530056[_0x1ba48f(0xb8)]()});}catch(_0xfb47c9){_0x85610e(_0xfb47c9);}});});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0x1d1acd(0xa1)](_0x277e15,_0x47f856,_0xa43756={'sheets':0x0}){const _0x38a2c8=a15_0x1d1acd;var _0x15697f,_0x229671,_0x6b234d;const _0x45d888=(_0xa43756===null||_0xa43756===void 0x0?void 0x0:_0xa43756[_0x38a2c8(0xbb)])?Array[_0x38a2c8(0xaa)](_0xa43756['sheets'])?_0xa43756[_0x38a2c8(0xbb)]:[_0xa43756[_0x38a2c8(0xbb)]]:[0x0],_0x30efce=_0x3ee2c9=>new Promise(async(_0x14db7a,_0x3a2e58)=>{const _0x7579d1=_0x38a2c8,_0x20dada=_0x3ee2c9['getRow'](0x1),_0x240e0a=await new Promise(_0x5217ef=>{const _0x52fe64=a15_0x55d9,_0x1fbe80={};_0x20dada[_0x52fe64(0xa6)]((_0x15f114,_0x1db47f)=>{const _0x451e61=_0x52fe64;for(const _0x550136 of _0x277e15){if(_0x15f114[_0x451e61(0xa3)]==_0x550136['header'])_0x1fbe80[_0x550136[_0x451e61(0xcf)]]={'header':_0x15f114['col'],'handler':_0x550136[_0x451e61(0xd2)]};else{if(!_0x1fbe80[_0x550136['key']])try{const _0x86f357=_0x20dada&&_0x20dada[_0x451e61(0xce)](_0x550136[_0x451e61(0x9c)]);_0x86f357&&(_0x1fbe80[_0x550136[_0x451e61(0xcf)]]={'header':_0x86f357[_0x451e61(0xad)],'handler':_0x550136[_0x451e61(0xd2)]});}catch{}}}_0x20dada[_0x451e61(0xc8)]==_0x1db47f&&_0x5217ef(_0x1fbe80);});});_0x3ee2c9['on'](_0x7579d1(0xc5),_0x54adfd=>_0x14db7a(_0x3ee2c9)),_0x3ee2c9['on']('error',_0x5c1a6e=>_0x3a2e58(_0x5c1a6e)),_0x3ee2c9['on'](_0x7579d1(0xbf),async _0x425c24=>{const _0x22623d=_0x7579d1;var _0x809661;if(typeof(_0x425c24===null||_0x425c24===void 0x0?void 0x0:_0x425c24[_0x22623d(0xce)])==_0x22623d(0x94)){const _0x382704={};_0x2ede8a:for(const _0x3286aa in _0x240e0a){if(_0x240e0a[_0x3286aa][_0x22623d(0x9c)]){const _0x1c75b5=_0x425c24[_0x22623d(0xce)](_0x240e0a[_0x3286aa][_0x22623d(0x9c)]);if(!_0x1c75b5)continue _0x2ede8a;try{_0x1c75b5[_0x22623d(0xa8)]();}catch(_0x3a5f38){_0x1c75b5['toString']=()=>{const _0x495234=_0x22623d;var _0x301f9a;return''+(((_0x301f9a=_0x1c75b5===null||_0x1c75b5===void 0x0?void 0x0:_0x1c75b5[_0x495234(0xb0)])===null||_0x301f9a===void 0x0?void 0x0:_0x301f9a['value'])||'');};}typeof((_0x809661=_0x240e0a[_0x3286aa])===null||_0x809661===void 0x0?void 0x0:_0x809661[_0x22623d(0xd2)])==_0x22623d(0x94)?_0x382704[_0x3286aa]=await _0x240e0a[_0x3286aa][_0x22623d(0xd2)](lodash[_0x22623d(0xda)]({},_0x3286aa,(_0x1c75b5===null||_0x1c75b5===void 0x0?void 0x0:_0x1c75b5['toString']())||''),_0x1c75b5[_0x22623d(0xb0)]):_0x382704[_0x3286aa]=(_0x1c75b5===null||_0x1c75b5===void 0x0?void 0x0:_0x1c75b5[_0x22623d(0xa8)]())||'';}}Object[_0x22623d(0xdd)](_0x382704)[_0x22623d(0xbe)]>0x0&&Object['values'](_0x382704)[_0x22623d(0xc6)](_0xa150b2=>_0xa150b2!='')['length']>0x0&&await _0x47f856(_0x382704,{'sheet':_0x3ee2c9,'row':_0x425c24});}}),await _0x3ee2c9[_0x7579d1(0xac)]();});for(const _0x10ad32 of _0x45d888){const _0x4e8e94=lodash[_0x38a2c8(0xb9)](_0x10ad32)?((_0x229671=(_0x15697f=this[_0x38a2c8(0x9a)])===null||_0x15697f===void 0x0?void 0x0:_0x15697f['worksheets'])===null||_0x229671===void 0x0?void 0x0:_0x229671[_0x10ad32])||undefined:(_0x6b234d=this[_0x38a2c8(0x9a)])===null||_0x6b234d===void 0x0?void 0x0:_0x6b234d['getWorksheet'](_0x10ad32);_0x4e8e94&&await _0x30efce(_0x4e8e94);}}[a15_0x1d1acd(0xd1)](_0x179f49,_0x5a6838=![]){const _0x5ba2c4=a15_0x1d1acd;var _0x1cd5f7,_0x4d8821;let _0x26ee8d=this['_WorksheetWriterMap'][_0x5ba2c4(0xa5)](_0x179f49)?this[_0x5ba2c4(0xd0)][_0x5ba2c4(0xa0)](_0x179f49):(_0x1cd5f7=this['WorkbookWriter'])===null||_0x1cd5f7===void 0x0?void 0x0:_0x1cd5f7[_0x5ba2c4(0xd3)](_0x179f49);return!_0x26ee8d&&_0x5a6838&&(_0x26ee8d=(_0x4d8821=this['WorkbookWriter'])===null||_0x4d8821===void 0x0?void 0x0:_0x4d8821[_0x5ba2c4(0xd9)](lodash[_0x5ba2c4(0xb9)](_0x179f49)?undefined:''+_0x179f49,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x5ba2c4(0xd0)][_0x5ba2c4(0xda)](_0x179f49,_0x26ee8d)),_0x26ee8d;}async[a15_0x1d1acd(0xca)](){const _0x509e09=a15_0x1d1acd;var _0x35bf2c;return await((_0x35bf2c=this[_0x509e09(0xd4)])===null||_0x35bf2c===void 0x0?void 0x0:_0x35bf2c['commit']()),this;}*[a15_0x1d1acd(0xcb)](_0x26c5b8,_0x3aeb0c){const _0x52e5fa=a15_0x1d1acd;for(let _0x59adb3=0x0;_0x59adb3<_0x26c5b8[_0x52e5fa(0xbe)];_0x59adb3+=_0x3aeb0c){yield _0x26c5b8[_0x52e5fa(0xe0)](_0x59adb3,_0x59adb3+_0x3aeb0c);}}}exports[a15_0x1d1acd(0x95)]=ExcelStream;
|
|
1
|
+
const a15_0xbd1eda=a15_0x3f5a;(function(_0x54c2a4,_0x5d7e24){const _0x331296=a15_0x3f5a,_0x4fa0e5=_0x54c2a4();while(!![]){try{const _0x4a17a5=parseInt(_0x331296(0x9a))/0x1*(parseInt(_0x331296(0x87))/0x2)+parseInt(_0x331296(0x6c))/0x3+-parseInt(_0x331296(0xc1))/0x4*(-parseInt(_0x331296(0x96))/0x5)+-parseInt(_0x331296(0xb9))/0x6*(-parseInt(_0x331296(0x81))/0x7)+parseInt(_0x331296(0xb5))/0x8+-parseInt(_0x331296(0xb8))/0x9+-parseInt(_0x331296(0x8e))/0xa;if(_0x4a17a5===_0x5d7e24)break;else _0x4fa0e5['push'](_0x4fa0e5['shift']());}catch(_0x35d8d9){_0x4fa0e5['push'](_0x4fa0e5['shift']());}}}(a15_0x1eff,0x2bfe6));function a15_0x1eff(){const _0x564b58=['function','60214lNjnyn','ExcelStream','xlsx','startsWith','cellCount','destroy','indexOf','1301070OnhynR','error','defineProperty','filepath','eachCell','rootpath','WorkbookReader','(((.+)+)+)+$','30wVNKPB','Readable','key','columns','1itNEWA','writeFile','isNumber','_WorksheetWriterMap','getWorksheet','dirname','set','chunkArray','suffix','values','reader','getWorkbookWriterSheet','resume','finished','__esModule','row','unpipe','WorkbookWriter','toString','pause','worksheets','finish','existsSync','_WorkbookReader','Transform','getCell','filter','745248shRaqV','value','model','1674279oanElV','211362ocrwEl','ignore','header','end','addWorksheet','lastIndexOf','sheets','isArray','65248JoXYZS','getColumn','614241bBPTYX','path','search','stream','apply','handler','文件名格式错误','emit','writer','read','lodash','get','_WorkbookWriter','col','exceljs','pipe','substring','replace','addRow','slice','instance','14dVmfZk','constructor','length','commit','Writable'];a15_0x1eff=function(){return _0x564b58;};return a15_0x1eff();}function a15_0x3f5a(_0x15a1a5,_0x1e577f){const _0x4355aa=a15_0x1eff();return a15_0x3f5a=function(_0x15751,_0x3b9188){_0x15751=_0x15751-0x6b;let _0x1eff78=_0x4355aa[_0x15751];return _0x1eff78;},a15_0x3f5a(_0x15a1a5,_0x1e577f);}const a15_0x3b9188=(function(){let _0xa6456c=!![];return function(_0x5c2e00,_0x3805b9){const _0x12c220=_0xa6456c?function(){const _0x473f15=a15_0x3f5a;if(_0x3805b9){const _0x1ae917=_0x3805b9[_0x473f15(0x70)](_0x5c2e00,arguments);return _0x3805b9=null,_0x1ae917;}}:function(){};return _0xa6456c=![],_0x12c220;};}()),a15_0x15751=a15_0x3b9188(this,function(){const _0x435636=a15_0x3f5a;return a15_0x15751['toString']()[_0x435636(0x6e)](_0x435636(0x95))[_0x435636(0xac)]()[_0x435636(0x82)](a15_0x15751)[_0x435636(0x6e)](_0x435636(0x95));});a15_0x15751();'use strict';Object[a15_0xbd1eda(0x90)](exports,a15_0xbd1eda(0xa8),{'value':!![]}),exports[a15_0xbd1eda(0x88)]=void 0x0;const fs=require('fs'),path=require(a15_0xbd1eda(0x6d)),lodash=require(a15_0xbd1eda(0x76)),exceljs=require(a15_0xbd1eda(0x7a)),stream_1=require(a15_0xbd1eda(0x6f));function isReadableStream(_0x1aa16d){const _0x1ab52d=a15_0xbd1eda;return _0x1aa16d&&typeof _0x1aa16d['pipe']==='function'&&typeof _0x1aa16d['on']==='function'&&typeof _0x1aa16d['read']===_0x1ab52d(0x86)&&typeof _0x1aa16d[_0x1ab52d(0xad)]===_0x1ab52d(0x86)&&typeof _0x1aa16d[_0x1ab52d(0xa6)]==='function';}class ExcelStream{constructor(_0x3fc93c){const _0x2234b1=a15_0xbd1eda;this[_0x2234b1(0x9d)]=new Map(),this['filepath']=_0x3fc93c;}get[a15_0xbd1eda(0x94)](){const _0x588126=a15_0xbd1eda;return!this[_0x588126(0xb1)]&&(this[_0x588126(0xb1)]=new exceljs[(_0x588126(0x6f))][(_0x588126(0x89))]['WorkbookReader'](this[_0x588126(0x91)],{'worksheets':_0x588126(0x73),'sharedStrings':_0x588126(0xba),'hyperlinks':_0x588126(0xba),'styles':_0x588126(0xba)})),this[_0x588126(0xb1)];}get['WorkbookWriter'](){const _0x5e6b15=a15_0xbd1eda;return!this[_0x5e6b15(0x78)]&&(this[_0x5e6b15(0x78)]=new exceljs[(_0x5e6b15(0x6f))]['xlsx'][(_0x5e6b15(0xab))]({'filename':this[_0x5e6b15(0x91)],'useStyles':!![],'useSharedStrings':![]})),this[_0x5e6b15(0x78)];}static[a15_0xbd1eda(0x80)](_0x54668f,_0x19ac93={'suffix':['xls',a15_0xbd1eda(0x89)]}){return new Promise(async(_0x3d1891,_0x19f8f4)=>{const _0x425f7b=a15_0x3f5a,_0x529172=_0x54668f['substring']((_0x54668f[_0x425f7b(0x8d)]('/')>-0x1?_0x54668f['lastIndexOf']('/'):_0x54668f['lastIndexOf']('\x5c'))+0x1),_0x5e0a7e=path[_0x425f7b(0x9f)](((_0x19ac93===null||_0x19ac93===void 0x0?void 0x0:_0x19ac93[_0x425f7b(0x93)])&&!_0x54668f[_0x425f7b(0x8a)](_0x19ac93[_0x425f7b(0x93)])?_0x19ac93[_0x425f7b(0x93)]+'/'+_0x54668f:'/'+_0x54668f)['replace'](/(\\|\/)/g,'/')[_0x425f7b(0x7d)](/\/{2,}/g,'/'));if(!((_0x19ac93===null||_0x19ac93===void 0x0?void 0x0:_0x19ac93[_0x425f7b(0xa2)])?_0x19ac93[_0x425f7b(0xa2)]:['xls',_0x425f7b(0x89)])['includes'](_0x529172[_0x425f7b(0x7c)](_0x529172[_0x425f7b(0xbe)]('.')+0x1)))return _0x19f8f4(_0x425f7b(0x72));const _0x30a41e=(_0x5e0a7e+'/'+_0x529172)[_0x425f7b(0x7d)](/(\\|\/)/g,'/')[_0x425f7b(0x7d)](/\/{2,}/g,'/');if(!fs['existsSync'](_0x30a41e)){!fs[_0x425f7b(0xb0)](_0x5e0a7e)&&fs['mkdirSync'](_0x5e0a7e,{'recursive':!![]});const _0x1cecc=new exceljs['Workbook']();await _0x1cecc[_0x425f7b(0x89)][_0x425f7b(0x9b)](_0x30a41e);}return _0x3d1891(new ExcelStream(_0x30a41e));});}async[a15_0xbd1eda(0x74)](_0x51b775,_0x5891e8,_0x5e9e68=0x0){const _0x4ea98f=a15_0xbd1eda;var _0x389851;const _0x1df32c=this[_0x4ea98f(0xa5)](_0x5e9e68,!![]),_0x25f22b={},_0x2d69cb=[];if(_0x1df32c&&(Array[_0x4ea98f(0xc0)](_0x5891e8)||isReadableStream(_0x5891e8))){for(const _0x21b0d4 in _0x51b775){_0x25f22b[_0x51b775[_0x21b0d4][_0x4ea98f(0x98)]]=_0x51b775[_0x21b0d4]['header'],_0x2d69cb['push']({'header':_0x51b775[_0x21b0d4][_0x4ea98f(0xbb)],'key':(_0x389851=_0x51b775[_0x21b0d4])===null||_0x389851===void 0x0?void 0x0:_0x389851[_0x4ea98f(0x98)]['replace'](/\./g,'_')});}(_0x1df32c===null||_0x1df32c===void 0x0?void 0x0:_0x1df32c[_0x4ea98f(0x99)])!=_0x2d69cb&&(_0x1df32c[_0x4ea98f(0x99)]=_0x2d69cb);const _0x50b623=0x64,_0x3917ef=Array[_0x4ea98f(0xc0)](_0x5891e8)?stream_1[_0x4ea98f(0x97)]['from'](this[_0x4ea98f(0xa1)](_0x5891e8,_0x50b623),{'objectMode':!![]}):_0x5891e8,_0x8a88f7=new stream_1[(_0x4ea98f(0xb2))]({'objectMode':!![],'highWaterMark':_0x50b623,'transform':async function(_0x32bb2f,_0xeb26fb,_0x3cd0f0){const _0x47238a=_0x4ea98f;Array[_0x47238a(0xc0)](_0x32bb2f)&&_0x32bb2f[_0x47238a(0x83)]>0x0&&_0x32bb2f['forEach'](_0x2b5ed4=>{this['push'](_0x2b5ed4);}),_0x3cd0f0();}});let _0x5b8f6b=0x0;const _0x361590=new stream_1[(_0x4ea98f(0x85))]({'objectMode':!![],'highWaterMark':_0x50b623,async 'write'(_0x5646a2,_0x348849,_0x1d728e){const _0x2a9f73=_0x4ea98f;var _0x33909c;try{const _0x115dc7=_0x1df32c[_0x2a9f73(0x7e)]({});for(let _0xabe927 in _0x51b775){const _0x14f526=_0x51b775[_0xabe927]['key'][_0x2a9f73(0x7d)](/\./g,'_'),_0x2b264b=_0x1df32c[_0x2a9f73(0x6b)](_0x14f526),_0x2f9b5e=_0x115dc7===null||_0x115dc7===void 0x0?void 0x0:_0x115dc7[_0x2a9f73(0xb3)](_0x14f526);typeof((_0x33909c=_0x51b775[_0xabe927])===null||_0x33909c===void 0x0?void 0x0:_0x33909c[_0x2a9f73(0x71)])=='function'?_0x2f9b5e[_0x2a9f73(0xb6)]=await _0x51b775[_0xabe927][_0x2a9f73(0x71)](_0x5646a2,{'row':_0x115dc7,'col':_0x2b264b,'cell':_0x2f9b5e,'sheet':_0x1df32c})||'':_0x2f9b5e['value']=lodash['get'](_0x5646a2,_0x51b775[_0xabe927][_0x2a9f73(0x98)],'');}_0x5b8f6b++,_0x115dc7[_0x2a9f73(0x84)](),_0x1d728e();}catch(_0xbcc91e){_0x1d728e(_0xbcc91e);}},async 'final'(_0x4e4569){try{_0x4e4569();}catch(_0x13ae4f){_0x4e4569(_0x13ae4f);}}});return new Promise((_0x129314,_0x5b00fb)=>{const _0x18c20d=_0x4ea98f,_0x5c5d25=_0x451b37=>{const _0xb843a5=a15_0x3f5a;_0x3917ef['destroy'](),_0x8a88f7['destroy'](),_0x361590[_0xb843a5(0x8c)](),_0x5b00fb(_0x451b37);};_0x3917ef['on'](_0x18c20d(0x8f),_0x5c5d25)[_0x18c20d(0x7b)](_0x8a88f7)['on'](_0x18c20d(0x8f),_0x5c5d25)[_0x18c20d(0x7b)](_0x361590)['on'](_0x18c20d(0x8f),_0x5c5d25)['on'](_0x18c20d(0xaf),()=>{const _0x5bd67d=_0x18c20d;try{_0x3917ef[_0x5bd67d(0xaa)](),_0x8a88f7[_0x5bd67d(0xaa)](),_0x8a88f7[_0x5bd67d(0xbc)](),_0x361590[_0x5bd67d(0xbc)](),_0x129314({'rowCount':_0x5b8f6b,'worksheet':_0x1df32c,'done':()=>_0x1df32c[_0x5bd67d(0x84)]()});}catch(_0x4ca1a7){_0x5b00fb(_0x4ca1a7);}}),Array[_0x18c20d(0xc0)](_0x5891e8)&&_0x3917ef[_0x18c20d(0xa6)]();});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0xbd1eda(0xa4)](_0x155f50,_0x4e5723,_0x3b8470={'sheets':0x0}){const _0x4a1032=a15_0xbd1eda;var _0x1b4cf0,_0x22fb7f,_0x11dbd7;const _0x28971a=(_0x3b8470===null||_0x3b8470===void 0x0?void 0x0:_0x3b8470[_0x4a1032(0xbf)])?Array['isArray'](_0x3b8470['sheets'])?_0x3b8470[_0x4a1032(0xbf)]:[_0x3b8470[_0x4a1032(0xbf)]]:[0x0],_0x4a1d3b=_0x537e06=>new Promise(async(_0x29bdfc,_0x5f0633)=>{const _0x3c7fc3=_0x4a1032,_0x3b72c6=_0x537e06['getRow'](0x1),_0x19da82=await new Promise(_0x3aeb59=>{const _0x2abff0=a15_0x3f5a,_0x413e37={};_0x3b72c6[_0x2abff0(0x92)]((_0x3a039c,_0x391f8)=>{const _0x45af7d=_0x2abff0;for(const _0x2cb909 of _0x155f50){if(_0x3a039c[_0x45af7d(0xb6)]==_0x2cb909[_0x45af7d(0xbb)])_0x413e37[_0x2cb909[_0x45af7d(0x98)]]={'header':_0x3a039c[_0x45af7d(0x79)],'handler':_0x2cb909[_0x45af7d(0x71)]};else{if(!_0x413e37[_0x2cb909['key']])try{const _0x57d423=_0x3b72c6&&_0x3b72c6[_0x45af7d(0xb3)](_0x2cb909[_0x45af7d(0xbb)]);_0x57d423&&(_0x413e37[_0x2cb909[_0x45af7d(0x98)]]={'header':_0x57d423[_0x45af7d(0x79)],'handler':_0x2cb909['handler']});}catch{}}}_0x3b72c6[_0x45af7d(0x8b)]==_0x391f8&&_0x3aeb59(_0x413e37);});});_0x537e06['on'](_0x3c7fc3(0xa7),_0x5cb857=>_0x29bdfc(_0x537e06)),_0x537e06['on'](_0x3c7fc3(0x8f),_0x3e84fd=>_0x5f0633(_0x3e84fd)),_0x537e06['on'](_0x3c7fc3(0xa9),async _0x3c7cd4=>{const _0x10647a=_0x3c7fc3;var _0x3658ac;if(typeof(_0x3c7cd4===null||_0x3c7cd4===void 0x0?void 0x0:_0x3c7cd4[_0x10647a(0xb3)])=='function'){const _0x377a84={};_0x5c35df:for(const _0x3f17c5 in _0x19da82){if(_0x19da82[_0x3f17c5][_0x10647a(0xbb)]){const _0x4b9448=_0x3c7cd4[_0x10647a(0xb3)](_0x19da82[_0x3f17c5][_0x10647a(0xbb)]);if(!_0x4b9448)continue _0x5c35df;try{_0x4b9448[_0x10647a(0xac)]();}catch(_0x32d2bf){_0x4b9448['toString']=()=>{const _0x4aaba5=_0x10647a;var _0x291a60;return''+(((_0x291a60=_0x4b9448===null||_0x4b9448===void 0x0?void 0x0:_0x4b9448[_0x4aaba5(0xb7)])===null||_0x291a60===void 0x0?void 0x0:_0x291a60[_0x4aaba5(0xb6)])||'');};}typeof((_0x3658ac=_0x19da82[_0x3f17c5])===null||_0x3658ac===void 0x0?void 0x0:_0x3658ac[_0x10647a(0x71)])=='function'?_0x377a84[_0x3f17c5]=await _0x19da82[_0x3f17c5]['handler'](lodash['set']({},_0x3f17c5,(_0x4b9448===null||_0x4b9448===void 0x0?void 0x0:_0x4b9448[_0x10647a(0xac)]())||''),_0x4b9448['model']):_0x377a84[_0x3f17c5]=(_0x4b9448===null||_0x4b9448===void 0x0?void 0x0:_0x4b9448['toString']())||'';}}Object['keys'](_0x377a84)['length']>0x0&&Object[_0x10647a(0xa3)](_0x377a84)[_0x10647a(0xb4)](_0x1ec0b2=>_0x1ec0b2!='')['length']>0x0&&await _0x4e5723(_0x377a84,{'sheet':_0x537e06,'row':_0x3c7cd4});}}),await _0x537e06[_0x3c7fc3(0x75)]();});for(const _0x24ca54 of _0x28971a){const _0x10a8f6=lodash[_0x4a1032(0x9c)](_0x24ca54)?((_0x22fb7f=(_0x1b4cf0=this['WorkbookReader'])===null||_0x1b4cf0===void 0x0?void 0x0:_0x1b4cf0[_0x4a1032(0xae)])===null||_0x22fb7f===void 0x0?void 0x0:_0x22fb7f[_0x24ca54])||undefined:(_0x11dbd7=this[_0x4a1032(0x94)])===null||_0x11dbd7===void 0x0?void 0x0:_0x11dbd7[_0x4a1032(0x9e)](_0x24ca54);_0x10a8f6&&await _0x4a1d3b(_0x10a8f6);}}[a15_0xbd1eda(0xa5)](_0x42a6aa,_0x4df39d=![]){const _0xc7d50e=a15_0xbd1eda;var _0x162f72,_0xbc126d;let _0x1e9db8=this['_WorksheetWriterMap']['has'](_0x42a6aa)?this[_0xc7d50e(0x9d)][_0xc7d50e(0x77)](_0x42a6aa):(_0x162f72=this['WorkbookWriter'])===null||_0x162f72===void 0x0?void 0x0:_0x162f72['getWorksheet'](_0x42a6aa);return!_0x1e9db8&&_0x4df39d&&(_0x1e9db8=(_0xbc126d=this['WorkbookWriter'])===null||_0xbc126d===void 0x0?void 0x0:_0xbc126d[_0xc7d50e(0xbd)](lodash[_0xc7d50e(0x9c)](_0x42a6aa)?undefined:''+_0x42a6aa,{'views':[{'state':'frozen','ySplit':0x1}]}),this['_WorksheetWriterMap'][_0xc7d50e(0xa0)](_0x42a6aa,_0x1e9db8)),_0x1e9db8;}async['save'](){const _0x38903a=a15_0xbd1eda;var _0x4e7753;return await((_0x4e7753=this[_0x38903a(0xab)])===null||_0x4e7753===void 0x0?void 0x0:_0x4e7753[_0x38903a(0x84)]()),this;}*['chunkArray'](_0x5d0774,_0x35d1f5){const _0x1a18e1=a15_0xbd1eda;for(let _0x1d909f=0x0;_0x1d909f<_0x5d0774[_0x1a18e1(0x83)];_0x1d909f+=_0x35d1f5){yield _0x5d0774[_0x1a18e1(0x7f)](_0x1d909f,_0x1d909f+_0x35d1f5);}}}exports['ExcelStream']=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x15e56b=a16_0x60f6;(function(_0x118d2f,_0x432afa){var _0x2b7cb5=a16_0x60f6,_0x5dc1db=_0x118d2f();while(!![]){try{var _0x5e4683=-parseInt(_0x2b7cb5(0xb6))/0x1*(parseInt(_0x2b7cb5(0xb9))/0x2)+parseInt(_0x2b7cb5(0xb5))/0x3+parseInt(_0x2b7cb5(0xae))/0x4*(-parseInt(_0x2b7cb5(0xaf))/0x5)+-parseInt(_0x2b7cb5(0xa8))/0x6+parseInt(_0x2b7cb5(0xb8))/0x7+parseInt(_0x2b7cb5(0xb1))/0x8+-parseInt(_0x2b7cb5(0xa6))/0x9*(-parseInt(_0x2b7cb5(0xb3))/0xa);if(_0x5e4683===_0x432afa)break;else _0x5dc1db['push'](_0x5dc1db['shift']());}catch(_0x42675b){_0x5dc1db['push'](_0x5dc1db['shift']());}}}(a16_0x410b,0xd7468));var a16_0x1360e4=(function(){var _0x3628ee=!![];return function(_0x4512a3,_0x596047){var _0x3d09d8=_0x3628ee?function(){if(_0x596047){var _0x1332bc=_0x596047['apply'](_0x4512a3,arguments);return _0x596047=null,_0x1332bc;}}:function(){};return _0x3628ee=![],_0x3d09d8;};}()),a16_0x45a1a4=a16_0x1360e4(this,function(){var _0x3b9dd6=a16_0x60f6;return a16_0x45a1a4[_0x3b9dd6(0xbc)]()['search'](_0x3b9dd6(0xb0))[_0x3b9dd6(0xbc)]()[_0x3b9dd6(0xa7)](a16_0x45a1a4)[_0x3b9dd6(0xb7)](_0x3b9dd6(0xb0));});a16_0x45a1a4();function a16_0x60f6(_0x5ad7de,_0x1082aa){var _0xe04cca=a16_0x410b();return a16_0x60f6=function(_0x45a1a4,_0x1360e4){_0x45a1a4=_0x45a1a4-0xa6;var _0x410b26=_0xe04cca[_0x45a1a4];return _0x410b26;},a16_0x60f6(_0x5ad7de,_0x1082aa);}'use strict';function a16_0x410b(){var _0x3edf1b=['11394328DOpkuj','ACTION_KEY','790MULrFi','AppsConfigTmp','3285414IVtCtw','6BgzyPd','search','8795094BwdNpr','428864LkofsS','anncic-api:action','__esModule','toString','26073OWApVv','constructor','10150242yyapnI','anncic-api:apps:config','ACTION_ROUTE_KEY','APPSCONFIG_KEY','defineProperty','anncic-api:action:route','4DEcpgo','723335VPzJut','(((.+)+)+)+$'];a16_0x410b=function(){return _0x3edf1b;};return a16_0x410b();}Object[a16_0x15e56b(0xac)](exports,a16_0x15e56b(0xbb),{'value':!![]}),exports['AppsConfigTmp']=exports[a16_0x15e56b(0xab)]=exports[a16_0x15e56b(0xaa)]=exports[a16_0x15e56b(0xb2)]=void 0x0,exports[a16_0x15e56b(0xb2)]=a16_0x15e56b(0xba),exports[a16_0x15e56b(0xaa)]=a16_0x15e56b(0xad),exports[a16_0x15e56b(0xab)]=a16_0x15e56b(0xa9);class AppsConfigTmp{}exports[a16_0x15e56b(0xb4)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x6be5f4=a17_0x1b22;(function(_0x4dc5c9,_0x96166e){var _0x120fd9=a17_0x1b22,_0x184f7f=_0x4dc5c9();while(!![]){try{var _0x80fbe=-parseInt(_0x120fd9(0x20a))/0x1*(parseInt(_0x120fd9(0x215))/0x2)+parseInt(_0x120fd9(0x200))/0x3*(-parseInt(_0x120fd9(0x1f5))/0x4)+parseInt(_0x120fd9(0x212))/0x5*(parseInt(_0x120fd9(0x1f9))/0x6)+-parseInt(_0x120fd9(0x1fa))/0x7*(parseInt(_0x120fd9(0x1f7))/0x8)+parseInt(_0x120fd9(0x1f6))/0x9+-parseInt(_0x120fd9(0x1ee))/0xa*(-parseInt(_0x120fd9(0x20b))/0xb)+-parseInt(_0x120fd9(0x1fc))/0xc;if(_0x80fbe===_0x96166e)break;else _0x184f7f['push'](_0x184f7f['shift']());}catch(_0x1a0bbe){_0x184f7f['push'](_0x184f7f['shift']());}}}(a17_0x1143,0xb5a4e));function a17_0x1b22(_0x9278dd,_0x3fdd84){var _0x239daf=a17_0x1143();return a17_0x1b22=function(_0x1effdf,_0x5136d1){_0x1effdf=_0x1effdf-0x1ee;var _0x11430a=_0x239daf[_0x1effdf];return _0x11430a;},a17_0x1b22(_0x9278dd,_0x3fdd84);}var a17_0x5136d1=(function(){var _0x44de71=!![];return function(_0x3a4a81,_0x81691c){var _0x1fd149=_0x44de71?function(){var _0x27006e=a17_0x1b22;if(_0x81691c){var _0x9c094f=_0x81691c[_0x27006e(0x1fd)](_0x3a4a81,arguments);return _0x81691c=null,_0x9c094f;}}:function(){};return _0x44de71=![],_0x1fd149;};}()),a17_0x1effdf=a17_0x5136d1(this,function(){var _0xb1c0d6=a17_0x1b22;return a17_0x1effdf[_0xb1c0d6(0x20f)]()[_0xb1c0d6(0x208)](_0xb1c0d6(0x1f3))[_0xb1c0d6(0x20f)]()['constructor'](a17_0x1effdf)[_0xb1c0d6(0x208)]('(((.+)+)+)+$');});a17_0x1effdf();'use strict';var __decorate=this&&this['__decorate']||function(_0x1cdf28,_0xdbc945,_0x2d562b,_0x1260d3){var _0x47b113=a17_0x1b22,_0x5760de=arguments['length'],_0x5c5d87=_0x5760de<0x3?_0xdbc945:_0x1260d3===null?_0x1260d3=Object[_0x47b113(0x214)](_0xdbc945,_0x2d562b):_0x1260d3,_0x1ea801;if(typeof Reflect==='object'&&typeof Reflect[_0x47b113(0x1f0)]===_0x47b113(0x1f1))_0x5c5d87=Reflect[_0x47b113(0x1f0)](_0x1cdf28,_0xdbc945,_0x2d562b,_0x1260d3);else{for(var _0x5f1058=_0x1cdf28[_0x47b113(0x203)]-0x1;_0x5f1058>=0x0;_0x5f1058--)if(_0x1ea801=_0x1cdf28[_0x5f1058])_0x5c5d87=(_0x5760de<0x3?_0x1ea801(_0x5c5d87):_0x5760de>0x3?_0x1ea801(_0xdbc945,_0x2d562b,_0x5c5d87):_0x1ea801(_0xdbc945,_0x2d562b))||_0x5c5d87;}return _0x5760de>0x3&&_0x5c5d87&&Object[_0x47b113(0x1fb)](_0xdbc945,_0x2d562b,_0x5c5d87),_0x5c5d87;},__metadata=this&&this[a17_0x6be5f4(0x1fe)]||function(_0x39a33a,_0x1edc02){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x39a33a,_0x1edc02);};Object[a17_0x6be5f4(0x1fb)](exports,a17_0x6be5f4(0x1ef),{'value':!![]}),exports[a17_0x6be5f4(0x202)]=void 0x0;const validator_1=require(a17_0x6be5f4(0x201));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a17_0x6be5f4(0x210)])('分页',validator_1[a17_0x6be5f4(0x1f4)]['number']()[a17_0x6be5f4(0x207)]()[a17_0x6be5f4(0x206)](0x1),a17_0x6be5f4(0x20d)),__metadata(a17_0x6be5f4(0x1f2),Number)],PageDTO[a17_0x6be5f4(0x1f8)],a17_0x6be5f4(0x217),void 0x0),__decorate([(0x0,validator_1[a17_0x6be5f4(0x210)])(a17_0x6be5f4(0x204),validator_1[a17_0x6be5f4(0x1f4)][a17_0x6be5f4(0x213)]()[a17_0x6be5f4(0x207)]()[a17_0x6be5f4(0x206)](0x1)),__metadata(a17_0x6be5f4(0x1f2),Number)],PageDTO[a17_0x6be5f4(0x1f8)],a17_0x6be5f4(0x216),void 0x0),__decorate([(0x0,validator_1[a17_0x6be5f4(0x210)])(a17_0x6be5f4(0x20c),validator_1['RuleType'][a17_0x6be5f4(0x209)]()[a17_0x6be5f4(0x20e)]()),__metadata('design:type',String)],PageDTO[a17_0x6be5f4(0x1f8)],a17_0x6be5f4(0x205),void 0x0),__decorate([(0x0,validator_1['Rule'])('是否倒序',validator_1[a17_0x6be5f4(0x1f4)]['number']()['integer']()['valid'](0x0,0x1),a17_0x6be5f4(0x211)),__metadata(a17_0x6be5f4(0x1f2),Number)],PageDTO[a17_0x6be5f4(0x1f8)],a17_0x6be5f4(0x1ff),void 0x0);function a17_0x1143(){var _0x258157=['28940tnBfRt','9766665BwPcYi','5017200KsrKau','prototype','68658swZWpK','14XJoyAN','defineProperty','83856BwUhzQ','apply','__metadata','_isreverse','135DOXpJi','@anncic-api/validator','PageDTO','length','分页数量','_order','min','integer','search','string','1cpiTkU','4343966xVqoiA','排序方式','第一页为1,第二页为2','trim','toString','Rule','1:是;0:否','445HGCSai','number','getOwnPropertyDescriptor','335282JaWEkG','_size','_page','10KlHTXi','__esModule','decorate','function','design:type','(((.+)+)+)+$','RuleType'];a17_0x1143=function(){return _0x258157;};return a17_0x1143();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a18_0x17baf3=a18_0x2f8a;function a18_0x2f8a(_0x19dd90,_0x2b9424){var _0x5a6be1=a18_0x5bf6();return a18_0x2f8a=function(_0x175318,_0x12c23f){_0x175318=_0x175318-0xcf;var _0x5bf657=_0x5a6be1[_0x175318];return _0x5bf657;},a18_0x2f8a(_0x19dd90,_0x2b9424);}(function(_0x37eb32,_0x3d233c){var _0x5899e6=a18_0x2f8a,_0x5b0ffd=_0x37eb32();while(!![]){try{var _0x22e26d=-parseInt(_0x5899e6(0xdc))/0x1+-parseInt(_0x5899e6(0xd5))/0x2*(parseInt(_0x5899e6(0xd0))/0x3)+-parseInt(_0x5899e6(0xd3))/0x4+-parseInt(_0x5899e6(0xe0))/0x5+-parseInt(_0x5899e6(0xda))/0x6*(-parseInt(_0x5899e6(0xdb))/0x7)+-parseInt(_0x5899e6(0xde))/0x8*(-parseInt(_0x5899e6(0xdf))/0x9)+parseInt(_0x5899e6(0xd9))/0xa*(parseInt(_0x5899e6(0xd8))/0xb);if(_0x22e26d===_0x3d233c)break;else _0x5b0ffd['push'](_0x5b0ffd['shift']());}catch(_0x3cb0c8){_0x5b0ffd['push'](_0x5b0ffd['shift']());}}}(a18_0x5bf6,0x58716));var a18_0x12c23f=(function(){var _0x419260=!![];return function(_0x255b6b,_0x4c6d80){var _0xbab43d=_0x419260?function(){var _0x41828f=a18_0x2f8a;if(_0x4c6d80){var _0x49d061=_0x4c6d80[_0x41828f(0xd2)](_0x255b6b,arguments);return _0x4c6d80=null,_0x49d061;}}:function(){};return _0x419260=![],_0xbab43d;};}()),a18_0x175318=a18_0x12c23f(this,function(){var _0x3d28de=a18_0x2f8a;return a18_0x175318['toString']()['search'](_0x3d28de(0xd6))[_0x3d28de(0xe1)]()[_0x3d28de(0xd7)](a18_0x175318)['search'](_0x3d28de(0xd6));});a18_0x175318();'use strict';function a18_0x5bf6(){var _0x573b2c=['InterceptTargetTmp','102334bAXCCQ','(((.+)+)+)+$','constructor','11OViAkB','6341410ttHoDU','16440RgvzYA','574adnKZs','288180TBTRqD','defineProperty','32vcgASR','1141461wYsEXA','2868475HFzORo','toString','INTERCEPT_KEY','3SaMUON','anncic-api:intercept','apply','363332kWmjcl'];a18_0x5bf6=function(){return _0x573b2c;};return a18_0x5bf6();}Object[a18_0x17baf3(0xdd)](exports,'__esModule',{'value':!![]}),exports[a18_0x17baf3(0xd4)]=exports[a18_0x17baf3(0xcf)]=void 0x0,exports[a18_0x17baf3(0xcf)]=a18_0x17baf3(0xd1);class InterceptTargetTmp{}exports[a18_0x17baf3(0xd4)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.4",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@anncic-api/cache": "^3.7.
|
|
22
|
-
"@anncic-api/core": "^3.7.
|
|
23
|
-
"@anncic-api/event": "^3.7.
|
|
24
|
-
"@anncic-api/typeorm": "^3.7.
|
|
25
|
-
"@anncic-api/validator": "^3.7.
|
|
21
|
+
"@anncic-api/cache": "^3.7.4",
|
|
22
|
+
"@anncic-api/core": "^3.7.4",
|
|
23
|
+
"@anncic-api/event": "^3.7.4",
|
|
24
|
+
"@anncic-api/typeorm": "^3.7.4",
|
|
25
|
+
"@anncic-api/validator": "^3.7.4",
|
|
26
26
|
"@midwayjs/busboy": "^3.17.1",
|
|
27
27
|
"@midwayjs/cross-domain": "^3.17.1",
|
|
28
28
|
"@midwayjs/koa": "^3.17.1",
|
|
29
29
|
"@midwayjs/logger": "^3.4.2",
|
|
30
30
|
"@midwayjs/static-file": "^3.17.1",
|
|
31
|
-
"anncic-apihelper": "^3.7.
|
|
31
|
+
"anncic-apihelper": "^3.7.4",
|
|
32
32
|
"exceljs": "^4.4.0",
|
|
33
33
|
"koa-send": "^5.0.1",
|
|
34
34
|
"minimatch": "^10.1.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.2",
|
|
39
39
|
"typescript": "^5.5.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d30ac0ec86b6e84d976377804ade361ce8ba63d5"
|
|
42
42
|
}
|