anncic-api 3.4.33 → 3.4.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x45ad54=a0_0x4581;function a0_0xfad5(){var _0xcd91c9=['__esModule','zhiulanuiy7892387985hnoi','1203708VcrirG','2PbGycD','default','apply','name','/runtime/.upload','1393329bOxgtZ','defineProperty','json','appDir','(((.+)+)+)+$','2777208NpjYUl','text','27kppnOa','2998500UMEcOk','xml','3051558DMvXDj','20mb','183723LslhUw','toString','5ZUBJeK','search','311128brDNUe','_token','dhauo1234420123gg3234901','constructor'];a0_0xfad5=function(){return _0xcd91c9;};return a0_0xfad5();}(function(_0x1adcc8,_0xa44ae9){var _0x101f13=a0_0x4581,_0x2852ca=_0x1adcc8();while(!![]){try{var _0x1e1002=-parseInt(_0x101f13(0xaf))/0x1*(parseInt(_0x101f13(0xba))/0x2)+-parseInt(_0x101f13(0xb9))/0x3+-parseInt(_0x101f13(0xa8))/0x4*(-parseInt(_0x101f13(0xb1))/0x5)+parseInt(_0x101f13(0xad))/0x6+parseInt(_0x101f13(0xbf))/0x7+parseInt(_0x101f13(0xb3))/0x8*(-parseInt(_0x101f13(0xaa))/0x9)+-parseInt(_0x101f13(0xab))/0xa;if(_0x1e1002===_0xa44ae9)break;else _0x2852ca['push'](_0x2852ca['shift']());}catch(_0xae944f){_0x2852ca['push'](_0x2852ca['shift']());}}}(a0_0xfad5,0x61c4c));var a0_0x54d8bd=(function(){var _0x311aee=!![];return function(_0x2e75c8,_0x3c3a60){var _0xc62600=_0x311aee?function(){var _0x4ed61c=a0_0x4581;if(_0x3c3a60){var _0x2af898=_0x3c3a60[_0x4ed61c(0xbc)](_0x2e75c8,arguments);return _0x3c3a60=null,_0x2af898;}}:function(){};return _0x311aee=![],_0xc62600;};}()),a0_0x438480=a0_0x54d8bd(this,function(){var _0x59bdb6=a0_0x4581;return a0_0x438480[_0x59bdb6(0xb0)]()[_0x59bdb6(0xb2)]('(((.+)+)+)+$')[_0x59bdb6(0xb0)]()[_0x59bdb6(0xb6)](a0_0x438480)[_0x59bdb6(0xb2)](_0x59bdb6(0xa7));});a0_0x438480();function a0_0x4581(_0xc9fc82,_0x162424){var _0x38e9db=a0_0xfad5();return a0_0x4581=function(_0x438480,_0x54d8bd){_0x438480=_0x438480-0xa6;var _0xfad544=_0x38e9db[_0x438480];return _0xfad544;},a0_0x4581(_0xc9fc82,_0x162424);}'use strict';Object[a0_0x45ad54(0xc0)](exports,a0_0x45ad54(0xb7),{'value':!![]}),exports[a0_0x45ad54(0xbb)]=_0x3bcb3f=>{var _0x596151=a0_0x45ad54;return{'apitest':!![],'keys':_0x3bcb3f[_0x596151(0xbd)],'anncicapi':{'requestKey':_0x596151(0xb4),'password':_0x596151(0xb8),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x596151(0xb5)}}},'bodyParser':{'enableTypes':[_0x596151(0xc1),'form',_0x596151(0xa9),_0x596151(0xac)],'formLimit':_0x596151(0xae),'jsonLimit':'20mb','textLimit':_0x596151(0xae),'xmlLimit':_0x596151(0xae),'enable':!![]},'upload':{'tmpdir':_0x3bcb3f[_0x596151(0xa6)]+_0x596151(0xbe),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x45c8f0=a1_0x3e55;(function(_0x345506,_0xc0cef6){var _0x1b9821=a1_0x3e55,_0x5cc7fa=_0x345506();while(!![]){try{var _0x2ff573=-parseInt(_0x1b9821(0x141))/0x1+parseInt(_0x1b9821(0x13d))/0x2+-parseInt(_0x1b9821(0x140))/0x3+-parseInt(_0x1b9821(0x138))/0x4*(parseInt(_0x1b9821(0x146))/0x5)+-parseInt(_0x1b9821(0x13b))/0x6+parseInt(_0x1b9821(0x143))/0x7*(parseInt(_0x1b9821(0x137))/0x8)+parseInt(_0x1b9821(0x145))/0x9*(parseInt(_0x1b9821(0x13f))/0xa);if(_0x2ff573===_0xc0cef6)break;else _0x5cc7fa['push'](_0x5cc7fa['shift']());}catch(_0x44d693){_0x5cc7fa['push'](_0x5cc7fa['shift']());}}}(a1_0x271e,0x71819));var a1_0xe3610a=(function(){var _0x2624e2=!![];return function(_0x49d2d4,_0x1958bf){var _0x5a0b3e=_0x2624e2?function(){var _0x182200=a1_0x3e55;if(_0x1958bf){var _0x2d6671=_0x1958bf[_0x182200(0x13a)](_0x49d2d4,arguments);return _0x1958bf=null,_0x2d6671;}}:function(){};return _0x2624e2=![],_0x5a0b3e;};}()),a1_0x1f8e06=a1_0xe3610a(this,function(){var _0x349ac0=a1_0x3e55;return a1_0x1f8e06['toString']()[_0x349ac0(0x13e)](_0x349ac0(0x13c))[_0x349ac0(0x144)]()['constructor'](a1_0x1f8e06)[_0x349ac0(0x13e)](_0x349ac0(0x13c));});a1_0x1f8e06();function a1_0x3e55(_0x4dc01f,_0x1ddfc3){var _0x44cc91=a1_0x271e();return a1_0x3e55=function(_0x1f8e06,_0xe3610a){_0x1f8e06=_0x1f8e06-0x137;var _0x271e7c=_0x44cc91[_0x1f8e06];return _0x271e7c;},a1_0x3e55(_0x4dc01f,_0x1ddfc3);}'use strict';function a1_0x271e(){var _0x5827ed=['48569SNHbWU','defineProperty','419279rkXvLR','toString','1540503JYQqqg','1211245povjbl','__esModule','40ySXXnl','12BnQDSK','default','apply','4386720NQksGD','(((.+)+)+)+$','697354uANYXi','search','110TxFjga','1678926sXnmbe'];a1_0x271e=function(){return _0x5827ed;};return a1_0x271e();}Object[a1_0x45c8f0(0x142)](exports,a1_0x45c8f0(0x147),{'value':!![]}),exports[a1_0x45c8f0(0x139)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x5800c3=a2_0x1c10;(function(_0x1466f0,_0xee15c7){const _0x1f6006=a2_0x1c10,_0x31e085=_0x1466f0();while(!![]){try{const _0x3fd5d3=-parseInt(_0x1f6006(0x220))/0x1+-parseInt(_0x1f6006(0x20d))/0x2*(parseInt(_0x1f6006(0x240))/0x3)+-parseInt(_0x1f6006(0x1e9))/0x4*(-parseInt(_0x1f6006(0x266))/0x5)+parseInt(_0x1f6006(0x216))/0x6+parseInt(_0x1f6006(0x25d))/0x7+-parseInt(_0x1f6006(0x27a))/0x8+-parseInt(_0x1f6006(0x250))/0x9*(-parseInt(_0x1f6006(0x25b))/0xa);if(_0x3fd5d3===_0xee15c7)break;else _0x31e085['push'](_0x31e085['shift']());}catch(_0x254caf){_0x31e085['push'](_0x31e085['shift']());}}}(a2_0x2054,0xd1f64));const a2_0x472fec=(function(){let _0x20d78a=!![];return function(_0x2845a9,_0x1b996d){const _0x3fda81=_0x20d78a?function(){const _0x5465ff=a2_0x1c10;if(_0x1b996d){const _0x8561a=_0x1b996d[_0x5465ff(0x227)](_0x2845a9,arguments);return _0x1b996d=null,_0x8561a;}}:function(){};return _0x20d78a=![],_0x3fda81;};}()),a2_0x4df5e7=a2_0x472fec(this,function(){const _0x148397=a2_0x1c10;return a2_0x4df5e7[_0x148397(0x275)]()['search'](_0x148397(0x244))[_0x148397(0x275)]()[_0x148397(0x24d)](a2_0x4df5e7)['search'](_0x148397(0x244));});function a2_0x1c10(_0x42add0,_0x1aab60){const _0x1a6855=a2_0x2054();return a2_0x1c10=function(_0x4df5e7,_0x472fec){_0x4df5e7=_0x4df5e7-0x1e8;let _0x20540f=_0x1a6855[_0x4df5e7];return _0x20540f;},a2_0x1c10(_0x42add0,_0x1aab60);}a2_0x4df5e7();'use strict';var __decorate=this&&this[a2_0x5800c3(0x257)]||function(_0xd90381,_0x215681,_0x19c5dc,_0x567ee6){const _0x40fcd8=a2_0x5800c3;var _0x50f569=arguments[_0x40fcd8(0x1eb)],_0x3f1c55=_0x50f569<0x3?_0x215681:_0x567ee6===null?_0x567ee6=Object['getOwnPropertyDescriptor'](_0x215681,_0x19c5dc):_0x567ee6,_0x2d6700;if(typeof Reflect==='object'&&typeof Reflect[_0x40fcd8(0x26a)]==='function')_0x3f1c55=Reflect[_0x40fcd8(0x26a)](_0xd90381,_0x215681,_0x19c5dc,_0x567ee6);else{for(var _0x1b9f76=_0xd90381[_0x40fcd8(0x1eb)]-0x1;_0x1b9f76>=0x0;_0x1b9f76--)if(_0x2d6700=_0xd90381[_0x1b9f76])_0x3f1c55=(_0x50f569<0x3?_0x2d6700(_0x3f1c55):_0x50f569>0x3?_0x2d6700(_0x215681,_0x19c5dc,_0x3f1c55):_0x2d6700(_0x215681,_0x19c5dc))||_0x3f1c55;}return _0x50f569>0x3&&_0x3f1c55&&Object[_0x40fcd8(0x239)](_0x215681,_0x19c5dc,_0x3f1c55),_0x3f1c55;},__metadata=this&&this[a2_0x5800c3(0x24a)]||function(_0x11f725,_0x47d4bc){const _0x3bf27c=a2_0x5800c3;if(typeof Reflect===_0x3bf27c(0x25c)&&typeof Reflect[_0x3bf27c(0x1f3)]===_0x3bf27c(0x20c))return Reflect['metadata'](_0x11f725,_0x47d4bc);};Object[a2_0x5800c3(0x239)](exports,a2_0x5800c3(0x1f1),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x5800c3(0x1ec)),core_2=require(a2_0x5800c3(0x1ec)),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),intercept_1=require(a2_0x5800c3(0x230)),action_1=require(a2_0x5800c3(0x208)),fs=require('fs'),koasend=require(a2_0x5800c3(0x217)),koa=require(a2_0x5800c3(0x246)),upload=require(a2_0x5800c3(0x222)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x5800c3(0x1ee)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x5800c3(0x24e)),anncic=require(a2_0x5800c3(0x279)),anncicCache=require(a2_0x5800c3(0x249)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x5800c3(0x278)](){const _0x13f7e0=a2_0x5800c3;await this['filterConfig'](),await this[_0x13f7e0(0x254)](),await this['handlerActionRoute'](),await this[_0x13f7e0(0x1ff)]();}async[a2_0x5800c3(0x263)](){const _0x3f12f2=a2_0x5800c3,_0xb34247=this['config'][_0x3f12f2(0x26b)](),_0xceab6f=(0x0,core_1[_0x3f12f2(0x26e)])(intercept_1[_0x3f12f2(0x1fc)],intercept_1['InterceptTargetTmp'])||{};this[_0x3f12f2(0x258)][_0x3f12f2(0x23f)](action_1[_0x3f12f2(0x225)],_0x242989=>{const _0x44fc5e=_0x3f12f2;var _0x4b552c;const _0x5610a3=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{},_0x494f91=_0x242989[_0x44fc5e(0x1f3)],_0x4e4b58=(0x0,core_1[_0x44fc5e(0x26e)])(action_1[_0x44fc5e(0x262)],_0x242989['target'])||{},_0x2439f5=((_0x4b552c=_0x4e4b58===null||_0x4e4b58===void 0x0?void 0x0:_0x4e4b58[_0x44fc5e(0x219)])===null||_0x4b552c===void 0x0?void 0x0:_0x4b552c[_0x44fc5e(0x1f4)](0x0,_0x4e4b58[_0x44fc5e(0x219)][_0x44fc5e(0x22a)]('.')))||'',_0x519797=(_0x4e4b58===null||_0x4e4b58===void 0x0?void 0x0:_0x4e4b58[_0x44fc5e(0x241)])?(_0x5610a3===null||_0x5610a3===void 0x0?void 0x0:_0x5610a3[_0x4e4b58[_0x44fc5e(0x241)]])||{}:{};return{'before':async _0x55579a=>{const _0x1550ba=_0x44fc5e;var _0x229bfa,_0x4b8985,_0x57646b,_0x4b90be;const _0x450ac8=(_0x229bfa=_0x55579a===null||_0x55579a===void 0x0?void 0x0:_0x55579a[_0x1550ba(0x25f)])===null||_0x229bfa===void 0x0?void 0x0:_0x229bfa[core_2[_0x1550ba(0x261)]],_0x3baf81=lodash[_0x1550ba(0x271)]({},_0x450ac8[_0x1550ba(0x1f0)]['body']||_0x450ac8[_0x1550ba(0x1f0)][((_0x4b8985=_0xb34247===null||_0xb34247===void 0x0?void 0x0:_0xb34247[_0x1550ba(0x21b)])===null||_0x4b8985===void 0x0?void 0x0:_0x4b8985['key'])||_0x1550ba(0x1f6)]||{},_0x450ac8[_0x1550ba(0x1f0)][_0x1550ba(0x1f2)]||{});_0x450ac8[_0x1550ba(0x26c)]={'module':(_0x519797===null||_0x519797===void 0x0?void 0x0:_0x519797[_0x1550ba(0x1f8)])||'','routePath':''+_0x450ac8['path'],'routeName':_0x4e4b58['routerOptions'][_0x1550ba(0x204)]+'@'+_0x494f91[_0x1550ba(0x202)],'routeMethod':((_0x494f91===null||_0x494f91===void 0x0?void 0x0:_0x494f91['requestMethod'])||_0x450ac8[_0x1550ba(0x211)]||'')[_0x1550ba(0x267)](),'routeDescription':(_0x494f91===null||_0x494f91===void 0x0?void 0x0:_0x494f91[_0x1550ba(0x229)])||'','filemethod':_0x2439f5+'@'+(_0x494f91[_0x1550ba(0x211)]||'')};if(_0x450ac8&&(_0x494f91===null||_0x494f91===void 0x0?void 0x0:_0x494f91[_0x1550ba(0x21c)]))try{const _0x48e738=((_0x57646b=_0xb34247===null||_0xb34247===void 0x0?void 0x0:_0xb34247[_0x1550ba(0x21a)])===null||_0x57646b===void 0x0?void 0x0:_0x57646b['requestKey'])&&typeof(_0x3baf81===null||_0x3baf81===void 0x0?void 0x0:_0x3baf81[_0xb34247[_0x1550ba(0x21a)][_0x1550ba(0x23e)]])==_0x1550ba(0x21e)?JSON['parse'](base64_decode(_0x3baf81[_0xb34247['anncicapi']['requestKey']])||'{}')||{}:((_0x4b90be=_0x450ac8===null||_0x450ac8===void 0x0?void 0x0:_0x450ac8[_0x1550ba(0x1f0)])===null||_0x4b90be===void 0x0?void 0x0:_0x4b90be['headers'])||{};if(!this[_0x1550ba(0x255)][_0x1550ba(0x270)](_0x48e738))throw new AnnError(ApiError_1['ApiError'][_0x1550ba(0x203)]);}catch(_0x15f405){if(_0x15f405 instanceof AnnError)throw _0x15f405;else throw new AnnError(ApiError_1[_0x1550ba(0x1f5)][_0x1550ba(0x247)]);}},'around':async _0xf2f7ca=>{const _0x304ad5=_0x44fc5e;var _0x4a8d24,_0x4a074b,_0x1b38ce;const _0x386148=(_0x4a8d24=_0xf2f7ca===null||_0xf2f7ca===void 0x0?void 0x0:_0xf2f7ca[_0x304ad5(0x25f)])===null||_0x4a8d24===void 0x0?void 0x0:_0x4a8d24[core_2[_0x304ad5(0x261)]];if(_0x386148&&(_0x494f91===null||_0x494f91===void 0x0?void 0x0:_0x494f91[_0x304ad5(0x21c)])&&((_0x494f91===null||_0x494f91===void 0x0?void 0x0:_0x494f91[_0x304ad5(0x264)])||typeof(_0x494f91===null||_0x494f91===void 0x0?void 0x0:_0x494f91[_0x304ad5(0x264)])==_0x304ad5(0x1fd))){if(((_0x4a074b=_0x386148[_0x304ad5(0x23c)])===null||_0x4a074b===void 0x0?void 0x0:_0x4a074b[_0x304ad5(0x27c)])&&((_0x1b38ce=_0xceab6f===null||_0xceab6f===void 0x0?void 0x0:_0xceab6f[_0x386148['headers']['device']])===null||_0x1b38ce===void 0x0?void 0x0:_0x1b38ce['length'])>0x0)for(const _0x37a7c5 of _0xceab6f[_0x386148[_0x304ad5(0x23c)][_0x304ad5(0x27c)]]||[]){if(core_1[_0x304ad5(0x268)][_0x304ad5(0x20f)](_0x37a7c5)){const _0x3d4991=await _0x386148[_0x304ad5(0x251)][_0x304ad5(0x221)](_0x37a7c5);typeof(_0x3d4991===null||_0x3d4991===void 0x0?void 0x0:_0x3d4991[_0x304ad5(0x20a)])==_0x304ad5(0x20c)?await _0x3d4991['match'](_0x386148,typeof(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x211)])==_0x304ad5(0x21e)&&(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x207)])?_0x386148[_0x304ad5(0x211)][_0x304ad5(0x267)]()+'@'+(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x207)]):undefined,_0x494f91)&&await _0x3d4991['handler'](_0x386148,typeof(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x211)])==_0x304ad5(0x21e)&&(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148['_matchedRoute'])?_0x386148[_0x304ad5(0x211)][_0x304ad5(0x267)]()+'@'+(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x207)]):undefined,_0x494f91):await _0x3d4991[_0x304ad5(0x234)](_0x386148,typeof(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x211)])=='string'&&(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x207)])?_0x386148[_0x304ad5(0x211)]['toLowerCase']()+'@'+(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148['_matchedRoute']):undefined,_0x494f91);}else core_1[_0x304ad5(0x268)][_0x304ad5(0x237)](_0x37a7c5)&&await _0x37a7c5(_0x386148,typeof(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x211)])==_0x304ad5(0x21e)&&(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x207)])?_0x386148[_0x304ad5(0x211)][_0x304ad5(0x267)]()+'@'+(_0x386148===null||_0x386148===void 0x0?void 0x0:_0x386148[_0x304ad5(0x207)]):undefined,_0x494f91);}}return await _0xf2f7ca[_0x304ad5(0x213)](..._0xf2f7ca['args']);},'afterThrow':(_0x313cfa,_0x5831f9)=>{throw _0x5831f9;}};});}async[a2_0x5800c3(0x1ff)](){const _0xda2e57=a2_0x5800c3,_0x4e85ea=this[_0xda2e57(0x26d)][_0xda2e57(0x26b)]();this[_0xda2e57(0x1ed)][_0xda2e57(0x212)]([_0xda2e57(0x22b)])[_0xda2e57(0x23a)](_0x57e26d=>{const _0x269961=_0xda2e57;(_0x57e26d===null||_0x57e26d===void 0x0?void 0x0:_0x57e26d['context'])&&Object[_0x269961(0x1fa)](_0x57e26d[_0x269961(0x226)],{'hosturl':{'configurable':![],'get':function(){const _0x23a933=_0x269961;var _0x5dc8bb,_0x40ae42,_0x367f2a,_0x59a6e7;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x23a933(0x256)][_0x23a933(0x232)]('http')){let _0x1773ba=this[_0x23a933(0x256)][_0x23a933(0x1f7)](':');return['80',_0x23a933(0x20e)][_0x23a933(0x25a)](_0x1773ba===null||_0x1773ba===void 0x0?void 0x0:_0x1773ba[0x1])?''+(!!((_0x40ae42=(_0x5dc8bb=this===null||this===void 0x0?void 0x0:this[_0x23a933(0x22d)])===null||_0x5dc8bb===void 0x0?void 0x0:_0x5dc8bb['connection'])===null||_0x40ae42===void 0x0?void 0x0:_0x40ae42['encrypted'])||(_0x1773ba===null||_0x1773ba===void 0x0?void 0x0:_0x1773ba[0x1])==_0x23a933(0x20e)?_0x23a933(0x252):_0x23a933(0x21d))+_0x1773ba[0x0]:''+(!!((_0x59a6e7=(_0x367f2a=this===null||this===void 0x0?void 0x0:this[_0x23a933(0x22d)])===null||_0x367f2a===void 0x0?void 0x0:_0x367f2a['connection'])===null||_0x59a6e7===void 0x0?void 0x0:_0x59a6e7[_0x23a933(0x210)])?_0x23a933(0x252):_0x23a933(0x21d))+this[_0x23a933(0x256)];}return'';}},'ok':{'value':function(_0x538234,_0x2faa4b,_0x148c7d=0x0){return{'code':_0x148c7d,'data':_0x538234,'extra':_0x2faa4b};}},'input':{'value':function(_0x496063,_0x452111){const _0x16cd5f=_0x269961;var _0x3f9ac6;const _0x2a2a8=lodash['defaultsDeep']({},this[_0x16cd5f(0x1f0)][_0x16cd5f(0x1f6)]||this[_0x16cd5f(0x1f0)][((_0x3f9ac6=_0x4e85ea===null||_0x4e85ea===void 0x0?void 0x0:_0x4e85ea[_0x16cd5f(0x21b)])===null||_0x3f9ac6===void 0x0?void 0x0:_0x3f9ac6[_0x16cd5f(0x22e)])||'body']||{},this[_0x16cd5f(0x1f0)][_0x16cd5f(0x1f2)]||{});return _0x496063?lodash[_0x16cd5f(0x1fb)](_0x2a2a8,_0x496063,_0x452111):_0x2a2a8;}},'when':{'value':async function(_0x56ece7,_0x3899b0){const _0xa0b719=_0x269961,_0x4b8c58=this['input'](_0x56ece7,null);if(!lodash[_0xa0b719(0x26f)](_0x4b8c58))return await _0x3899b0(_0x4b8c58);}},'only':{'value':function(_0x3fc618){const _0x361ab1=_0x269961,_0x133e57={};for(let _0x4e98cd=0x0;_0x4e98cd<_0x3fc618['length'];_0x4e98cd++){lodash[_0x361ab1(0x233)](_0x3fc618[_0x4e98cd])&&_0x3fc618[_0x4e98cd]['length']>0x0&&lodash['isString'](_0x3fc618[_0x4e98cd][0x0])&&(_0x133e57[_0x3fc618[_0x4e98cd][0x0]]=this['input'](_0x3fc618[_0x4e98cd][0x0],_0x3fc618[_0x4e98cd][_0x361ab1(0x1eb)]>0x1?_0x3fc618[_0x4e98cd][0x1]:null));}return _0x133e57;}},'koasend':{'value':async function(_0x52c48a,_0x1c5878){const _0x25bcea=_0x269961;if(_0x52c48a&&!fs[_0x25bcea(0x248)](_0x52c48a)&&!fs['existsSync'](this['app'][_0x25bcea(0x1fe)]()+'/'+_0x52c48a))return _0x25bcea(0x245);return _0x52c48a=fs[_0x25bcea(0x248)](_0x52c48a)?_0x52c48a:this[_0x25bcea(0x22c)][_0x25bcea(0x1fe)]()+'/'+_0x52c48a,this[_0x25bcea(0x200)](_0x1c5878||_0x52c48a),await koasend(this,_0x52c48a);}}});});}async['loggerConfig'](){const _0x3a6e8a=a2_0x5800c3;var _0x2535cc,_0x548ef9;if(fs[_0x3a6e8a(0x248)](this[_0x3a6e8a(0x22c)][_0x3a6e8a(0x243)]()+'/apps')&&fs['statSync'](this[_0x3a6e8a(0x22c)]['getBaseDir']()+_0x3a6e8a(0x235))[_0x3a6e8a(0x242)]()){const _0x18a6f6=this['config'][_0x3a6e8a(0x26b)](),_0x455477=((_0x2535cc=_0x18a6f6===null||_0x18a6f6===void 0x0?void 0x0:_0x18a6f6[_0x3a6e8a(0x24b)])===null||_0x2535cc===void 0x0?void 0x0:_0x2535cc[_0x3a6e8a(0x223)])||{};for(const _0x56a1bf of fs[_0x3a6e8a(0x1e8)](this[_0x3a6e8a(0x22c)]['getBaseDir']()+'/apps')){if(!fs[_0x3a6e8a(0x25e)](this['app'][_0x3a6e8a(0x243)]()+_0x3a6e8a(0x205)+_0x56a1bf)[_0x3a6e8a(0x242)]())continue;!(_0x455477===null||_0x455477===void 0x0?void 0x0:_0x455477[_0x56a1bf])&&(_0x455477[_0x56a1bf]=Object[_0x3a6e8a(0x21f)]({},((_0x548ef9=_0x18a6f6===null||_0x18a6f6===void 0x0?void 0x0:_0x18a6f6[_0x3a6e8a(0x24b)])===null||_0x548ef9===void 0x0?void 0x0:_0x548ef9[_0x3a6e8a(0x24c)])||{'maxSize':'1m','dir':this[_0x3a6e8a(0x22c)]['getAppDir']()+_0x3a6e8a(0x228)},{'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0x56a1bf+_0x3a6e8a(0x231),'dir':this['app'][_0x3a6e8a(0x1fe)]()+_0x3a6e8a(0x276)+_0x56a1bf})),this[_0x3a6e8a(0x22f)][_0x3a6e8a(0x224)](_0x56a1bf,_0x455477[_0x56a1bf]);}Object[_0x3a6e8a(0x259)](_0x455477)['length']>0x0&&(!_0x18a6f6['midwayLogger']&&(_0x18a6f6['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x3a6e8a(0x22c)][_0x3a6e8a(0x1fe)]()+_0x3a6e8a(0x228)}}),_0x18a6f6[_0x3a6e8a(0x24b)][_0x3a6e8a(0x223)]=_0x455477),this[_0x3a6e8a(0x26d)][_0x3a6e8a(0x206)](_0x18a6f6);}}async[a2_0x5800c3(0x215)](){const _0x58d942=a2_0x5800c3;var _0x151aaa,_0x467277,_0x3da269,_0x3c62ed,_0x4c8ed8,_0x3bd217;const _0xec8975=this['config'][_0x58d942(0x26b)]();((_0x467277=(_0x151aaa=_0xec8975===null||_0xec8975===void 0x0?void 0x0:_0xec8975[_0x58d942(0x21a)])===null||_0x151aaa===void 0x0?void 0x0:_0x151aaa['devices'])===null||_0x467277===void 0x0?void 0x0:_0x467277['DEFAULT'])&&Object[_0x58d942(0x259)](_0xec8975[_0x58d942(0x21a)]['devices'])[_0x58d942(0x1eb)]>0x1&&delete _0xec8975[_0x58d942(0x21a)][_0x58d942(0x201)][_0x58d942(0x277)];if((_0x3da269=_0xec8975===null||_0xec8975===void 0x0?void 0x0:_0xec8975['staticFile'])===null||_0x3da269===void 0x0?void 0x0:_0x3da269[_0x58d942(0x253)])for(const _0x50db11 in _0xec8975['staticFile'][_0x58d942(0x253)]){((_0x3c62ed=_0xec8975[_0x58d942(0x218)]['dirs'][_0x50db11])===null||_0x3c62ed===void 0x0?void 0x0:_0x3c62ed[_0x58d942(0x274)])&&typeof((_0x4c8ed8=_0xec8975[_0x58d942(0x218)][_0x58d942(0x253)][_0x50db11])===null||_0x4c8ed8===void 0x0?void 0x0:_0x4c8ed8['dir'])=='string'&&!fs[_0x58d942(0x248)](_0xec8975[_0x58d942(0x218)][_0x58d942(0x253)][_0x50db11][_0x58d942(0x274)])&&(fs['mkdirSync'](_0xec8975['staticFile'][_0x58d942(0x253)][_0x50db11]['dir'],{'recursive':!![]}),console[_0x58d942(0x1ef)](_0x58d942(0x238)+_0xec8975['staticFile'][_0x58d942(0x253)][_0x50db11][_0x58d942(0x274)]));}((_0x3bd217=_0xec8975===null||_0xec8975===void 0x0?void 0x0:_0xec8975['upload'])===null||_0x3bd217===void 0x0?void 0x0:_0x3bd217[_0x58d942(0x236)])&&!fs['existsSync'](_0xec8975[_0x58d942(0x214)][_0x58d942(0x236)])&&(fs[_0x58d942(0x265)](_0xec8975[_0x58d942(0x214)]['tmpdir'],{'recursive':!![]}),console['log'](_0x58d942(0x273)+_0xec8975[_0x58d942(0x214)][_0x58d942(0x236)])),this[_0x58d942(0x26d)][_0x58d942(0x206)](_0xec8975);}};function a2_0x2054(){const _0x2bead6=['app','req','key','loggerService','./types/intercept','.log','startsWith','isArray','handler','/apps','tmpdir','isFunction','Anncic-api\x20static-file\x20:\x20mkdir\x20','defineProperty','forEach','MidwayDecoratorService','headers','anncic-api','requestKey','registerMethodHandler','87dpIWiR','module','isDirectory','getBaseDir','(((.+)+)+)+$','文件不存在','@midwayjs/koa','_UNKNOW_','existsSync','@anncic-api/cache','__metadata','midwayLogger','default','constructor','./config/config.production','App','9rCUStH','requestContext','https://','dirs','loggerConfig','ApiService','host','__decorate','decorator','keys','includes','24363140LzZSJu','object','1227779KTqniH','statSync','target','environment','REQUEST_OBJ_CTX_KEY','ACTION_KEY','handlerActionRoute','intercept','mkdirSync','10QDgRPz','toLowerCase','Types','design:type','decorate','getConfiguration','_matchedRouteMeta','config','getClassMetadata','isNull','checksign','defaultsDeep','MidwayConfigService','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','dir','toString','/runtime/apps-','DEFAULT','onReady','@anncic-api/core','10023448YeWLYB','Configuration','device','readdirSync','1782236GZIgRJ','prototype','length','@midwayjs/core','application','@midwayjs/cross-domain','log','request','__esModule','query','metadata','substring','ApiError','body','split','name','MidwayLoggerService','defineProperties','get','INTERCEPT_KEY','undefined','getAppDir','hanlderApplications','attachment','devices','routerName','HEADERS_SIGNATURE','tagName','/apps/','addObject','_matchedRoute','./types/action','Inject','match','MidwayApplicationManager','function','68478VRYszJ','443','isClass','encrypted','method','getApplications','proceed','upload','filterConfig','7307832cRyXRT','koa-send','staticFile','filepath','anncicapi','bodyXml','apimit','http://','string','assign','1614935fjlloX','getAsync','@midwayjs/upload','clients','createLogger','ACTION_ROUTE_KEY','context','apply','/runtime','description','lastIndexOf','koa'];a2_0x2054=function(){return _0x2bead6;};return a2_0x2054();}__decorate([(0x0,core_1[a2_0x5800c3(0x24f)])(),__metadata(a2_0x5800c3(0x269),Object)],CustomConfiguration[a2_0x5800c3(0x1ea)],a2_0x5800c3(0x22c),void 0x0),__decorate([(0x0,core_1[a2_0x5800c3(0x209)])(),__metadata(a2_0x5800c3(0x269),core_2[a2_0x5800c3(0x272)])],CustomConfiguration[a2_0x5800c3(0x1ea)],a2_0x5800c3(0x26d),void 0x0),__decorate([(0x0,core_1[a2_0x5800c3(0x209)])(),__metadata(a2_0x5800c3(0x269),core_2[a2_0x5800c3(0x23b)])],CustomConfiguration[a2_0x5800c3(0x1ea)],a2_0x5800c3(0x258),void 0x0),__decorate([(0x0,core_1[a2_0x5800c3(0x209)])(),__metadata(a2_0x5800c3(0x269),core_2[a2_0x5800c3(0x20b)])],CustomConfiguration[a2_0x5800c3(0x1ea)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x5800c3(0x209)])(),__metadata(a2_0x5800c3(0x269),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x5800c3(0x1ea)],a2_0x5800c3(0x260),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_1[a2_0x5800c3(0x1f9)])],CustomConfiguration[a2_0x5800c3(0x1ea)],a2_0x5800c3(0x22f),void 0x0),__decorate([(0x0,core_1[a2_0x5800c3(0x209)])(),__metadata(a2_0x5800c3(0x269),ApiService_1[a2_0x5800c3(0x255)])],CustomConfiguration['prototype'],a2_0x5800c3(0x255),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x5800c3(0x27b)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x5800c3(0x23d),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
const a2_0xd69804=a2_0x2b9e;function a2_0x2b9e(_0x26e143,_0x2dfbc6){const _0x3a5cbb=a2_0x3167();return a2_0x2b9e=function(_0x2e0872,_0x1e02af){_0x2e0872=_0x2e0872-0xdc;let _0x316737=_0x3a5cbb[_0x2e0872];return _0x316737;},a2_0x2b9e(_0x26e143,_0x2dfbc6);}(function(_0x2e7685,_0x1bfebe){const _0xc309f4=a2_0x2b9e,_0x2f90ee=_0x2e7685();while(!![]){try{const _0x15e859=-parseInt(_0xc309f4(0xf7))/0x1*(parseInt(_0xc309f4(0x123))/0x2)+-parseInt(_0xc309f4(0x15b))/0x3+-parseInt(_0xc309f4(0xe1))/0x4*(-parseInt(_0xc309f4(0x16c))/0x5)+parseInt(_0xc309f4(0x155))/0x6+-parseInt(_0xc309f4(0x140))/0x7*(-parseInt(_0xc309f4(0x11d))/0x8)+-parseInt(_0xc309f4(0xf9))/0x9*(-parseInt(_0xc309f4(0x136))/0xa)+-parseInt(_0xc309f4(0xf5))/0xb;if(_0x15e859===_0x1bfebe)break;else _0x2f90ee['push'](_0x2f90ee['shift']());}catch(_0x43c215){_0x2f90ee['push'](_0x2f90ee['shift']());}}}(a2_0x3167,0x8d1db));const a2_0x1e02af=(function(){let _0x42b887=!![];return function(_0x257d99,_0x594e0c){const _0x5ed70d=_0x42b887?function(){const _0x40fe8e=a2_0x2b9e;if(_0x594e0c){const _0xd49d68=_0x594e0c[_0x40fe8e(0xf0)](_0x257d99,arguments);return _0x594e0c=null,_0xd49d68;}}:function(){};return _0x42b887=![],_0x5ed70d;};}()),a2_0x2e0872=a2_0x1e02af(this,function(){const _0x5599e4=a2_0x2b9e;return a2_0x2e0872[_0x5599e4(0x158)]()[_0x5599e4(0x141)](_0x5599e4(0xe2))[_0x5599e4(0x158)]()[_0x5599e4(0x12a)](a2_0x2e0872)[_0x5599e4(0x141)](_0x5599e4(0xe2));});a2_0x2e0872();'use strict';var __decorate=this&&this[a2_0xd69804(0xe5)]||function(_0x5373df,_0x237525,_0x179f48,_0x118b19){const _0x2e4a87=a2_0xd69804;var _0x2bb565=arguments[_0x2e4a87(0xf1)],_0x1fb2d4=_0x2bb565<0x3?_0x237525:_0x118b19===null?_0x118b19=Object[_0x2e4a87(0x165)](_0x237525,_0x179f48):_0x118b19,_0x1ecb79;if(typeof Reflect===_0x2e4a87(0x151)&&typeof Reflect['decorate']===_0x2e4a87(0x129))_0x1fb2d4=Reflect[_0x2e4a87(0x10f)](_0x5373df,_0x237525,_0x179f48,_0x118b19);else{for(var _0x16d8cb=_0x5373df['length']-0x1;_0x16d8cb>=0x0;_0x16d8cb--)if(_0x1ecb79=_0x5373df[_0x16d8cb])_0x1fb2d4=(_0x2bb565<0x3?_0x1ecb79(_0x1fb2d4):_0x2bb565>0x3?_0x1ecb79(_0x237525,_0x179f48,_0x1fb2d4):_0x1ecb79(_0x237525,_0x179f48))||_0x1fb2d4;}return _0x2bb565>0x3&&_0x1fb2d4&&Object[_0x2e4a87(0x118)](_0x237525,_0x179f48,_0x1fb2d4),_0x1fb2d4;},__metadata=this&&this[a2_0xd69804(0x100)]||function(_0x24c11d,_0x130932){const _0x95da70=a2_0xd69804;if(typeof Reflect===_0x95da70(0x151)&&typeof Reflect['metadata']==='function')return Reflect[_0x95da70(0x11a)](_0x24c11d,_0x130932);};Object[a2_0xd69804(0x118)](exports,'__esModule',{'value':!![]}),exports[a2_0xd69804(0xf3)]=void 0x0;function a2_0x3167(){const _0x381577=['design:type','http://','getConfiguration','midwayLogger','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/core','dirs','method','_matchedRouteMeta','apply','length','handler','CustomConfiguration','isNull','1433267hVUFuU','decorator','147307SUmAJP','toLowerCase','54aeUphS','MidwayEnvironmentService','dir','ApiError','hanlderApplications','log','_matchedRoute','__metadata','requestKey','module','isArray','statSync','onReady','string','handlerActionRoute','requestContext','routerName','forEach','mkdirSync','@anncic-api/cache','.log','includes','decorate','intercept','@midwayjs/cross-domain','req','staticFile','startsWith','proceed','default','koa-send','defineProperty','INTERCEPT_KEY','metadata','target','MidwayDecoratorService','8Ksujly','device','checksign','apimit','registerMethodHandler','isString','10DMjknE','split','application','substring','input','@anncic-api/core','function','constructor','/runtime','assign','defaultsDeep','AppsConfigTmp','args','Configuration','/apps','devices','./types/action','keys','ACTION_ROUTE_KEY','1463530zcBYgp','/apps/','Types','ApiService','createLogger','app','@midwayjs/upload','filterConfig','./config/config.production','443','3864245yHWaHY','search','defineProperties','Anncic-api\x20static-file\x20:\x20mkdir\x20','headers','filepath','getClassMetadata','getAsync','loggerService','isDirectory','body','MidwayLoggerService','@anncic-api/event','./service/ApiService','config','koa','anncicapi','object','@midwayjs/koa','loggerConfig','environment','863490wxHjAA','getAppDir','REQUEST_OBJ_CTX_KEY','toString','getBaseDir','@anncic-api/validator','2166831nQTMoJ','文件不存在','InterceptTargetTmp','MidwayConfigService','request','Inject','App','host','upload','./config/config.default','getOwnPropertyDescriptor','key','clients','APPSCONFIG_KEY','routerOptions','existsSync','readdirSync','988420EIfXUv','./types/intercept','./exception/ApiError','isClass','addObject','name','DEFAULT','https://','match','attachment','anncic-api','12JrmBGW','(((.+)+)+)+$','tmpdir','encrypted','__decorate','prototype'];a2_0x3167=function(){return _0x381577;};return a2_0x3167();}const core_1=require(a2_0xd69804(0xec)),core_2=require(a2_0xd69804(0xec)),ApiError_1=require(a2_0xd69804(0x16e)),ApiService_1=require(a2_0xd69804(0x14d)),intercept_1=require(a2_0xd69804(0x16d)),action_1=require(a2_0xd69804(0x133)),fs=require('fs'),koasend=require(a2_0xd69804(0x117)),koa=require(a2_0xd69804(0x152)),upload=require(a2_0xd69804(0x13c)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0xd69804(0x111)),ConfigDefault=require(a2_0xd69804(0x164)),ConfigProduction=require(a2_0xd69804(0x13e)),anncic=require(a2_0xd69804(0x128)),anncicCache=require(a2_0xd69804(0x10c)),anncicEvent=require(a2_0xd69804(0x14c)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0xd69804(0x15a)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0xd69804(0x105)](){const _0x112246=a2_0xd69804;await this[_0x112246(0x13d)](),await this['loggerConfig'](),await this[_0x112246(0x107)](),await this[_0x112246(0xfd)]();}async[a2_0xd69804(0x107)](){const _0x843b03=a2_0xd69804,_0x504dc4=this[_0x843b03(0x14e)][_0x843b03(0xe9)](),_0x46d9f4=(0x0,core_1[_0x843b03(0x146)])(intercept_1[_0x843b03(0x119)],intercept_1[_0x843b03(0x15d)])||{};this[_0x843b03(0xf6)][_0x843b03(0x121)](action_1[_0x843b03(0x135)],_0x4d8f0f=>{const _0x416bd2=_0x843b03;var _0x3e3a5d;const _0x2a6ffe=(0x0,core_1[_0x416bd2(0x146)])(action_1[_0x416bd2(0x168)],action_1[_0x416bd2(0x12e)])||{},_0x3ab23a=_0x4d8f0f[_0x416bd2(0x11a)],_0x319589=(0x0,core_1[_0x416bd2(0x146)])(action_1['ACTION_KEY'],_0x4d8f0f[_0x416bd2(0x11b)])||{},_0x248904=((_0x3e3a5d=_0x319589===null||_0x319589===void 0x0?void 0x0:_0x319589[_0x416bd2(0x145)])===null||_0x3e3a5d===void 0x0?void 0x0:_0x3e3a5d[_0x416bd2(0x126)](0x0,_0x319589[_0x416bd2(0x145)]['lastIndexOf']('.')))||'',_0x270f02=(_0x319589===null||_0x319589===void 0x0?void 0x0:_0x319589[_0x416bd2(0x102)])?(_0x2a6ffe===null||_0x2a6ffe===void 0x0?void 0x0:_0x2a6ffe[_0x319589[_0x416bd2(0x102)]])||{}:{};return{'before':async _0xe12c97=>{const _0x4af4cb=_0x416bd2;var _0x162c8c,_0x2712e6,_0xb1f05a,_0x204c27;const _0x558a5d=(_0x162c8c=_0xe12c97===null||_0xe12c97===void 0x0?void 0x0:_0xe12c97[_0x4af4cb(0x11b)])===null||_0x162c8c===void 0x0?void 0x0:_0x162c8c[core_2[_0x4af4cb(0x157)]],_0x10905a=lodash['defaultsDeep']({},_0x558a5d[_0x4af4cb(0x15f)][_0x4af4cb(0x14a)]||_0x558a5d[_0x4af4cb(0x15f)][((_0x2712e6=_0x504dc4===null||_0x504dc4===void 0x0?void 0x0:_0x504dc4['bodyXml'])===null||_0x2712e6===void 0x0?void 0x0:_0x2712e6[_0x4af4cb(0x166)])||'body']||{},_0x558a5d[_0x4af4cb(0x15f)]['query']||{});_0x558a5d[_0x4af4cb(0xef)]={'module':(_0x270f02===null||_0x270f02===void 0x0?void 0x0:_0x270f02[_0x4af4cb(0x171)])||'','routePath':''+_0x558a5d['path'],'routeName':_0x319589[_0x4af4cb(0x169)]['tagName']+'@'+_0x3ab23a[_0x4af4cb(0x109)],'routeMethod':((_0x3ab23a===null||_0x3ab23a===void 0x0?void 0x0:_0x3ab23a['requestMethod'])||_0x558a5d[_0x4af4cb(0xee)]||'')[_0x4af4cb(0xf8)](),'routeDescription':(_0x3ab23a===null||_0x3ab23a===void 0x0?void 0x0:_0x3ab23a['description'])||'','filemethod':_0x248904+'@'+(_0x3ab23a['method']||'')};if(_0x558a5d&&(_0x3ab23a===null||_0x3ab23a===void 0x0?void 0x0:_0x3ab23a['apimit']))try{const _0x5bf279=((_0xb1f05a=_0x504dc4===null||_0x504dc4===void 0x0?void 0x0:_0x504dc4[_0x4af4cb(0x150)])===null||_0xb1f05a===void 0x0?void 0x0:_0xb1f05a['requestKey'])&&typeof(_0x10905a===null||_0x10905a===void 0x0?void 0x0:_0x10905a[_0x504dc4[_0x4af4cb(0x150)][_0x4af4cb(0x101)]])==_0x4af4cb(0x106)?JSON['parse'](base64_decode(_0x10905a[_0x504dc4[_0x4af4cb(0x150)][_0x4af4cb(0x101)]])||'{}')||{}:((_0x204c27=_0x558a5d===null||_0x558a5d===void 0x0?void 0x0:_0x558a5d[_0x4af4cb(0x15f)])===null||_0x204c27===void 0x0?void 0x0:_0x204c27[_0x4af4cb(0x144)])||{};if(!this[_0x4af4cb(0x139)][_0x4af4cb(0x11f)](_0x5bf279))throw new AnnError(ApiError_1[_0x4af4cb(0xfc)]['HEADERS_SIGNATURE']);}catch(_0x33b70d){if(_0x33b70d instanceof AnnError)throw _0x33b70d;else throw new AnnError(ApiError_1[_0x4af4cb(0xfc)]['_UNKNOW_']);}},'around':async _0x518e14=>{const _0x2d0470=_0x416bd2;var _0x1e5707,_0x55f322,_0x15eef3;const _0xd5c4e7=(_0x1e5707=_0x518e14===null||_0x518e14===void 0x0?void 0x0:_0x518e14['target'])===null||_0x1e5707===void 0x0?void 0x0:_0x1e5707[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xd5c4e7&&(_0x3ab23a===null||_0x3ab23a===void 0x0?void 0x0:_0x3ab23a[_0x2d0470(0x120)])&&((_0x3ab23a===null||_0x3ab23a===void 0x0?void 0x0:_0x3ab23a[_0x2d0470(0x110)])||typeof(_0x3ab23a===null||_0x3ab23a===void 0x0?void 0x0:_0x3ab23a[_0x2d0470(0x110)])=='undefined')){if(((_0x55f322=_0xd5c4e7[_0x2d0470(0x144)])===null||_0x55f322===void 0x0?void 0x0:_0x55f322['device'])&&((_0x15eef3=_0x46d9f4===null||_0x46d9f4===void 0x0?void 0x0:_0x46d9f4[_0xd5c4e7['headers'][_0x2d0470(0x11e)]])===null||_0x15eef3===void 0x0?void 0x0:_0x15eef3[_0x2d0470(0xf1)])>0x0)for(const _0x358d53 of _0x46d9f4[_0xd5c4e7['headers']['device']]||[]){if(core_1[_0x2d0470(0x138)][_0x2d0470(0x16f)](_0x358d53)){const _0x15a211=await _0xd5c4e7[_0x2d0470(0x108)][_0x2d0470(0x147)](_0x358d53);typeof(_0x15a211===null||_0x15a211===void 0x0?void 0x0:_0x15a211['match'])==_0x2d0470(0x129)?await _0x15a211[_0x2d0470(0xde)](_0xd5c4e7,typeof(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xee)])==_0x2d0470(0x106)&&(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)])?_0xd5c4e7[_0x2d0470(0xee)][_0x2d0470(0xf8)]()+'@'+(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)]):undefined,_0x3ab23a)&&await _0x15a211[_0x2d0470(0xf2)](_0xd5c4e7,typeof(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7['method'])==_0x2d0470(0x106)&&(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)])?_0xd5c4e7['method'][_0x2d0470(0xf8)]()+'@'+(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7['_matchedRoute']):undefined,_0x3ab23a):await _0x15a211['handler'](_0xd5c4e7,typeof(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xee)])==_0x2d0470(0x106)&&(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)])?_0xd5c4e7[_0x2d0470(0xee)][_0x2d0470(0xf8)]()+'@'+(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)]):undefined,_0x3ab23a);}else core_1['Types']['isFunction'](_0x358d53)&&await _0x358d53(_0xd5c4e7,typeof(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xee)])==_0x2d0470(0x106)&&(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)])?_0xd5c4e7[_0x2d0470(0xee)][_0x2d0470(0xf8)]()+'@'+(_0xd5c4e7===null||_0xd5c4e7===void 0x0?void 0x0:_0xd5c4e7[_0x2d0470(0xff)]):undefined,_0x3ab23a);}}return await _0x518e14[_0x2d0470(0x115)](..._0x518e14[_0x2d0470(0x12f)]);},'afterThrow':(_0x3a4677,_0x36b7ea)=>{throw _0x36b7ea;}};});}async[a2_0xd69804(0xfd)](){const _0x43fa68=a2_0xd69804,_0x1f8360=this[_0x43fa68(0x14e)][_0x43fa68(0xe9)]();this[_0x43fa68(0x125)]['getApplications']([_0x43fa68(0x14f)])[_0x43fa68(0x10a)](_0x42b865=>{const _0xc3c32c=_0x43fa68;(_0x42b865===null||_0x42b865===void 0x0?void 0x0:_0x42b865['context'])&&Object[_0xc3c32c(0x142)](_0x42b865['context'],{'hosturl':{'configurable':![],'get':function(){const _0x16e2d5=_0xc3c32c;var _0x6e3f3f,_0x44db28,_0x36d74d,_0x49a596;if((this===null||this===void 0x0?void 0x0:this[_0x16e2d5(0x162)])&&!this[_0x16e2d5(0x162)][_0x16e2d5(0x114)]('http')){let _0x4fbf8d=this[_0x16e2d5(0x162)][_0x16e2d5(0x124)](':');return['80',_0x16e2d5(0x13f)][_0x16e2d5(0x10e)](_0x4fbf8d===null||_0x4fbf8d===void 0x0?void 0x0:_0x4fbf8d[0x1])?''+(!!((_0x44db28=(_0x6e3f3f=this===null||this===void 0x0?void 0x0:this[_0x16e2d5(0x112)])===null||_0x6e3f3f===void 0x0?void 0x0:_0x6e3f3f['connection'])===null||_0x44db28===void 0x0?void 0x0:_0x44db28[_0x16e2d5(0xe4)])||(_0x4fbf8d===null||_0x4fbf8d===void 0x0?void 0x0:_0x4fbf8d[0x1])=='443'?_0x16e2d5(0xdd):_0x16e2d5(0xe8))+_0x4fbf8d[0x0]:''+(!!((_0x49a596=(_0x36d74d=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x36d74d===void 0x0?void 0x0:_0x36d74d['connection'])===null||_0x49a596===void 0x0?void 0x0:_0x49a596[_0x16e2d5(0xe4)])?_0x16e2d5(0xdd):_0x16e2d5(0xe8))+this[_0x16e2d5(0x162)];}return'';}},'ok':{'value':function(_0x4252da,_0x5c00b0,_0x5c71c8=0x0){return{'code':_0x5c71c8,'data':_0x4252da,'extra':_0x5c00b0};}},'input':{'value':function(_0xa962f4,_0x2b949d){const _0x3cd7ea=_0xc3c32c;var _0x157b93;const _0x1ed50e=lodash[_0x3cd7ea(0x12d)]({},this[_0x3cd7ea(0x15f)][_0x3cd7ea(0x14a)]||this[_0x3cd7ea(0x15f)][((_0x157b93=_0x1f8360===null||_0x1f8360===void 0x0?void 0x0:_0x1f8360['bodyXml'])===null||_0x157b93===void 0x0?void 0x0:_0x157b93['key'])||'body']||{},this[_0x3cd7ea(0x15f)]['query']||{});return _0xa962f4?lodash['get'](_0x1ed50e,_0xa962f4,_0x2b949d):_0x1ed50e;}},'when':{'value':async function(_0x5c143c,_0x107172){const _0x5dbd16=_0xc3c32c,_0x215410=this['input'](_0x5c143c,null);if(!lodash[_0x5dbd16(0xf4)](_0x215410))return await _0x107172(_0x215410);}},'only':{'value':function(_0x190874){const _0x378772=_0xc3c32c,_0xd29b1f={};for(let _0x42f665=0x0;_0x42f665<_0x190874[_0x378772(0xf1)];_0x42f665++){lodash[_0x378772(0x103)](_0x190874[_0x42f665])&&_0x190874[_0x42f665][_0x378772(0xf1)]>0x0&&lodash[_0x378772(0x122)](_0x190874[_0x42f665][0x0])&&(_0xd29b1f[_0x190874[_0x42f665][0x0]]=this[_0x378772(0x127)](_0x190874[_0x42f665][0x0],_0x190874[_0x42f665][_0x378772(0xf1)]>0x1?_0x190874[_0x42f665][0x1]:null));}return _0xd29b1f;}},'koasend':{'value':async function(_0x380366,_0x242d5b){const _0x48682b=_0xc3c32c;if(_0x380366&&!fs['existsSync'](_0x380366)&&!fs['existsSync'](this['app']['getAppDir']()+'/'+_0x380366))return _0x48682b(0x15c);return _0x380366=fs[_0x48682b(0x16a)](_0x380366)?_0x380366:this[_0x48682b(0x13b)][_0x48682b(0x156)]()+'/'+_0x380366,this[_0x48682b(0xdf)](_0x242d5b||_0x380366),await koasend(this,_0x380366);}}});});}async[a2_0xd69804(0x153)](){const _0xe64a70=a2_0xd69804;var _0x4940be,_0x31f43b;if(fs[_0xe64a70(0x16a)](this['app'][_0xe64a70(0x159)]()+_0xe64a70(0x131))&&fs[_0xe64a70(0x104)](this[_0xe64a70(0x13b)][_0xe64a70(0x159)]()+_0xe64a70(0x131))[_0xe64a70(0x149)]()){const _0x5d4989=this[_0xe64a70(0x14e)][_0xe64a70(0xe9)](),_0xbaa6c0=((_0x4940be=_0x5d4989===null||_0x5d4989===void 0x0?void 0x0:_0x5d4989[_0xe64a70(0xea)])===null||_0x4940be===void 0x0?void 0x0:_0x4940be[_0xe64a70(0x167)])||{};for(const _0x24fa85 of fs[_0xe64a70(0x16b)](this[_0xe64a70(0x13b)][_0xe64a70(0x159)]()+'/apps')){if(!fs[_0xe64a70(0x104)](this[_0xe64a70(0x13b)][_0xe64a70(0x159)]()+_0xe64a70(0x137)+_0x24fa85)[_0xe64a70(0x149)]())continue;!(_0xbaa6c0===null||_0xbaa6c0===void 0x0?void 0x0:_0xbaa6c0[_0x24fa85])&&(_0xbaa6c0[_0x24fa85]=Object[_0xe64a70(0x12c)]({},((_0x31f43b=_0x5d4989===null||_0x5d4989===void 0x0?void 0x0:_0x5d4989[_0xe64a70(0xea)])===null||_0x31f43b===void 0x0?void 0x0:_0x31f43b[_0xe64a70(0x116)])||{'maxSize':'1m','dir':this[_0xe64a70(0x13b)][_0xe64a70(0x156)]()+_0xe64a70(0x12b)},{'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0x24fa85+_0xe64a70(0x10d),'dir':this[_0xe64a70(0x13b)][_0xe64a70(0x156)]()+'/runtime/apps-'+_0x24fa85})),this['loggerService'][_0xe64a70(0x13a)](_0x24fa85,_0xbaa6c0[_0x24fa85]);}Object[_0xe64a70(0x134)](_0xbaa6c0)[_0xe64a70(0xf1)]>0x0&&(!_0x5d4989['midwayLogger']&&(_0x5d4989[_0xe64a70(0xea)]={'default':{'maxSize':'1m','dir':this[_0xe64a70(0x13b)][_0xe64a70(0x156)]()+_0xe64a70(0x12b)}}),_0x5d4989[_0xe64a70(0xea)][_0xe64a70(0x167)]=_0xbaa6c0),this[_0xe64a70(0x14e)][_0xe64a70(0x170)](_0x5d4989);}}async[a2_0xd69804(0x13d)](){const _0x4e6cf4=a2_0xd69804;var _0x3a8e8c,_0x4f3555,_0x1db759,_0x15ca02,_0x174ae8,_0x5783b1;const _0x34ffdb=this[_0x4e6cf4(0x14e)][_0x4e6cf4(0xe9)]();((_0x4f3555=(_0x3a8e8c=_0x34ffdb===null||_0x34ffdb===void 0x0?void 0x0:_0x34ffdb[_0x4e6cf4(0x150)])===null||_0x3a8e8c===void 0x0?void 0x0:_0x3a8e8c[_0x4e6cf4(0x132)])===null||_0x4f3555===void 0x0?void 0x0:_0x4f3555['DEFAULT'])&&Object[_0x4e6cf4(0x134)](_0x34ffdb[_0x4e6cf4(0x150)][_0x4e6cf4(0x132)])[_0x4e6cf4(0xf1)]>0x1&&delete _0x34ffdb['anncicapi'][_0x4e6cf4(0x132)][_0x4e6cf4(0xdc)];if((_0x1db759=_0x34ffdb===null||_0x34ffdb===void 0x0?void 0x0:_0x34ffdb['staticFile'])===null||_0x1db759===void 0x0?void 0x0:_0x1db759[_0x4e6cf4(0xed)])for(const _0x26a23b in _0x34ffdb['staticFile'][_0x4e6cf4(0xed)]){((_0x15ca02=_0x34ffdb[_0x4e6cf4(0x113)][_0x4e6cf4(0xed)][_0x26a23b])===null||_0x15ca02===void 0x0?void 0x0:_0x15ca02[_0x4e6cf4(0xfb)])&&typeof((_0x174ae8=_0x34ffdb[_0x4e6cf4(0x113)][_0x4e6cf4(0xed)][_0x26a23b])===null||_0x174ae8===void 0x0?void 0x0:_0x174ae8[_0x4e6cf4(0xfb)])==_0x4e6cf4(0x106)&&!fs[_0x4e6cf4(0x16a)](_0x34ffdb['staticFile'][_0x4e6cf4(0xed)][_0x26a23b][_0x4e6cf4(0xfb)])&&(fs[_0x4e6cf4(0x10b)](_0x34ffdb['staticFile']['dirs'][_0x26a23b][_0x4e6cf4(0xfb)],{'recursive':!![]}),console['log'](_0x4e6cf4(0x143)+_0x34ffdb[_0x4e6cf4(0x113)][_0x4e6cf4(0xed)][_0x26a23b][_0x4e6cf4(0xfb)]));}((_0x5783b1=_0x34ffdb===null||_0x34ffdb===void 0x0?void 0x0:_0x34ffdb[_0x4e6cf4(0x163)])===null||_0x5783b1===void 0x0?void 0x0:_0x5783b1['tmpdir'])&&!fs[_0x4e6cf4(0x16a)](_0x34ffdb['upload'][_0x4e6cf4(0xe3)])&&(fs[_0x4e6cf4(0x10b)](_0x34ffdb[_0x4e6cf4(0x163)]['tmpdir'],{'recursive':!![]}),console[_0x4e6cf4(0xfe)](_0x4e6cf4(0xeb)+_0x34ffdb[_0x4e6cf4(0x163)][_0x4e6cf4(0xe3)])),this[_0x4e6cf4(0x14e)][_0x4e6cf4(0x170)](_0x34ffdb);}};__decorate([(0x0,core_1[a2_0xd69804(0x161)])(),__metadata(a2_0xd69804(0xe7),Object)],CustomConfiguration[a2_0xd69804(0xe6)],a2_0xd69804(0x13b),void 0x0),__decorate([(0x0,core_1[a2_0xd69804(0x160)])(),__metadata(a2_0xd69804(0xe7),core_2[a2_0xd69804(0x15e)])],CustomConfiguration[a2_0xd69804(0xe6)],'config',void 0x0),__decorate([(0x0,core_1[a2_0xd69804(0x160)])(),__metadata(a2_0xd69804(0xe7),core_2[a2_0xd69804(0x11c)])],CustomConfiguration['prototype'],a2_0xd69804(0xf6),void 0x0),__decorate([(0x0,core_1[a2_0xd69804(0x160)])(),__metadata(a2_0xd69804(0xe7),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0xd69804(0xe6)],a2_0xd69804(0x125),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0xd69804(0xe7),core_2[a2_0xd69804(0xfa)])],CustomConfiguration['prototype'],a2_0xd69804(0x154),void 0x0),__decorate([(0x0,core_1[a2_0xd69804(0x160)])(),__metadata(a2_0xd69804(0xe7),core_1[a2_0xd69804(0x14b)])],CustomConfiguration['prototype'],a2_0xd69804(0x148),void 0x0),__decorate([(0x0,core_1[a2_0xd69804(0x160)])(),__metadata(a2_0xd69804(0xe7),ApiService_1[a2_0xd69804(0x139)])],CustomConfiguration[a2_0xd69804(0xe6)],a2_0xd69804(0x139),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0xd69804(0x130)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0xd69804(0xe0),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xd69804(0xf3)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x2051d1=a3_0x4fe8;(function(_0x30d277,_0xe62750){const _0x42cfc1=a3_0x4fe8,_0x1a81a9=_0x30d277();while(!![]){try{const _0x309ed2=parseInt(_0x42cfc1(0x13b))/0x1+-parseInt(_0x42cfc1(0x121))/0x2*(-parseInt(_0x42cfc1(0x15e))/0x3)+-parseInt(_0x42cfc1(0x119))/0x4*(-parseInt(_0x42cfc1(0x157))/0x5)+parseInt(_0x42cfc1(0x13e))/0x6+-parseInt(_0x42cfc1(0x14c))/0x7*(parseInt(_0x42cfc1(0x138))/0x8)+parseInt(_0x42cfc1(0x137))/0x9+-parseInt(_0x42cfc1(0x112))/0xa;if(_0x309ed2===_0xe62750)break;else _0x1a81a9['push'](_0x1a81a9['shift']());}catch(_0x57d323){_0x1a81a9['push'](_0x1a81a9['shift']());}}}(a3_0x1523,0x7bc52));function a3_0x4fe8(_0x501ecd,_0xf186fd){const _0x51f285=a3_0x1523();return a3_0x4fe8=function(_0x519b8a,_0x3d5680){_0x519b8a=_0x519b8a-0x112;let _0x1523da=_0x51f285[_0x519b8a];return _0x1523da;},a3_0x4fe8(_0x501ecd,_0xf186fd);}const a3_0x3d5680=(function(){let _0x1faee2=!![];return function(_0x251116,_0x410fed){const _0x582cbd=_0x1faee2?function(){const _0x347a13=a3_0x4fe8;if(_0x410fed){const _0x22f5e5=_0x410fed[_0x347a13(0x11c)](_0x251116,arguments);return _0x410fed=null,_0x22f5e5;}}:function(){};return _0x1faee2=![],_0x582cbd;};}()),a3_0x519b8a=a3_0x3d5680(this,function(){const _0x2da9d2=a3_0x4fe8;return a3_0x519b8a['toString']()[_0x2da9d2(0x143)](_0x2da9d2(0x15a))['toString']()[_0x2da9d2(0x13d)](a3_0x519b8a)[_0x2da9d2(0x143)](_0x2da9d2(0x15a));});a3_0x519b8a();'use strict';var _a,_b;Object[a3_0x2051d1(0x114)](exports,a3_0x2051d1(0x155),{'value':!![]}),exports['parseRoute']=exports[a3_0x2051d1(0x144)]=exports[a3_0x2051d1(0x140)]=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a3_0x2051d1(0x12a)),core_2=require(a3_0x2051d1(0x12a)),action_1=require(a3_0x2051d1(0x136)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x2051d1(0x15f)])===null||_a===void 0x0?void 0x0:_a[a3_0x2051d1(0x115)])||((_b=process===null||process===void 0x0?void 0x0:process[a3_0x2051d1(0x15f)])===null||_b===void 0x0?void 0x0:_b[a3_0x2051d1(0x131)]);function Action(_0x4a6594,_0x3d237a,_0x251d33={'middleware':[],'sensitive':!![]}){return _0x2122a3=>{const _0x4a0ef7=a3_0x4fe8;var _0x18627c;_0x251d33[_0x4a0ef7(0x14f)]=_0x3d237a;const _0x52c2b5=parseRoute(_0x4a6594);if(_0x52c2b5[_0x4a0ef7(0x13a)]){_0x251d33[_0x4a0ef7(0x126)]=_0x251d33[_0x4a0ef7(0x126)]?'/'+_0x52c2b5['module']+'/'+_0x251d33[_0x4a0ef7(0x126)]:'/'+_0x52c2b5[_0x4a0ef7(0x129)];_0x52c2b5[_0x4a0ef7(0x126)]&&(_0x251d33['prefix']='/'+_0x52c2b5['prefix']+'/'+_0x251d33['prefix']);_0x251d33[_0x4a0ef7(0x126)]=_0x251d33[_0x4a0ef7(0x126)][_0x4a0ef7(0x158)]()[_0x4a0ef7(0x123)](/\/{2,}/g,'/');const _0x169b94=getModuleConfig(_0x52c2b5[_0x4a0ef7(0x134)]+_0x4a0ef7(0x122),_0x52c2b5[_0x4a0ef7(0x13a)],lodash[_0x4a0ef7(0x11b)](_0x52c2b5[_0x4a0ef7(0x15c)],'ts')?'ts':'js');if(lodash[_0x4a0ef7(0x14d)](_0x169b94[_0x4a0ef7(0x11d)])&&_0x169b94['middleware']['length']>0x0)for(let _0x3ec82c in _0x169b94[_0x4a0ef7(0x11d)]){if(((_0x18627c=_0x169b94===null||_0x169b94===void 0x0?void 0x0:_0x169b94[_0x4a0ef7(0x149)])===null||_0x18627c===void 0x0?void 0x0:_0x18627c['length'])>0x0&&_0x169b94['middlewareIgnore'][_0x4a0ef7(0x14a)](_0x169b94[_0x4a0ef7(0x11d)][_0x3ec82c])!=-0x1)continue;_0x251d33['middleware'][_0x4a0ef7(0x132)](_0x169b94[_0x4a0ef7(0x11d)][_0x3ec82c]);}(0x0,core_1['saveModule'])(action_1[_0x4a0ef7(0x124)],_0x2122a3),(0x0,core_1['Controller'])(_0x251d33[_0x4a0ef7(0x126)],_0x251d33)(_0x2122a3),(0x0,core_1[_0x4a0ef7(0x14e)])(action_1['ACTION_KEY'],{'prefix':_0x251d33[_0x4a0ef7(0x126)],'pprefix':_0x52c2b5[_0x4a0ef7(0x126)],'module':_0x52c2b5[_0x4a0ef7(0x13a)],'filepath':_0x52c2b5[_0x4a0ef7(0x15c)],'routerOptions':_0x251d33},_0x2122a3);}else _0x251d33['prefix']=_0x251d33[_0x4a0ef7(0x126)]?'/'+_0x251d33['prefix']:'/'+_0x52c2b5[_0x4a0ef7(0x129)],_0x52c2b5[_0x4a0ef7(0x126)]&&(_0x251d33[_0x4a0ef7(0x126)]='/'+_0x52c2b5[_0x4a0ef7(0x126)]+'/'+_0x251d33[_0x4a0ef7(0x126)]),_0x251d33[_0x4a0ef7(0x126)]=_0x251d33[_0x4a0ef7(0x126)]['toLowerCase']()[_0x4a0ef7(0x123)](/\/{2,}/g,'/'),(0x0,core_1[_0x4a0ef7(0x116)])(action_1[_0x4a0ef7(0x124)],_0x2122a3),(0x0,core_1[_0x4a0ef7(0x14b)])(_0x251d33['prefix'],_0x251d33)(_0x2122a3),(0x0,core_1[_0x4a0ef7(0x14e)])(action_1[_0x4a0ef7(0x124)],{'prefix':_0x251d33[_0x4a0ef7(0x126)],'module':_0x52c2b5['module'],'pprefix':_0x52c2b5[_0x4a0ef7(0x126)],'filepath':_0x52c2b5[_0x4a0ef7(0x15c)],'routerOptions':_0x251d33},_0x2122a3);};}exports['Action']=Action,Action[a3_0x2051d1(0x153)]=function(_0x405d1d,_0x466a76='/',_0x31195e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2b3905,_0x15126e,_0x3bf983)=>{ActionApi(_0x405d1d,'get',_0x466a76,_0x31195e)(_0x2b3905,_0x15126e,_0x3bf983);};},Action['post']=function(_0x36391a,_0x172b88='/',_0x2f191d={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x11edc1,_0x27b166,_0x47b793)=>{const _0x57e5bf=a3_0x4fe8;ActionApi(_0x36391a,_0x57e5bf(0x127),_0x172b88,_0x2f191d)(_0x11edc1,_0x27b166,_0x47b793);};};function a3_0x1523(){const _0x30937d=['Validator','__esModule','apps/','545cxQPgm','toLowerCase','validationOptions','(((.+)+)+)+$','validate','filepath','/config.','861VeejVt','env','RequestMapping','\x20文件请放在apps/','trim','13175030VtogXF','/controller/','defineProperty','MIDWAY_SERVER_ENV','saveModule','ACTION_ROUTE_KEY','keys','5944weHXFx','APPSCONFIG_KEY','endsWith','apply','middleware','/apps/','routerName','join','606bbzpVo','/apps','replace','ACTION_KEY','splice','prefix','post','substring','route','@midwayjs/core','intercept','apimit','match','-controller','filter','defaultsDeep','NODE_ENV','push','/controller/文件下','rootpath','basic/controller/','../types/action','6904152YcfSrX','113352qAmgmT','AppsConfigTmp','module','698092TWEeOS','app/controller/','constructor','1597014FYzuuN','attachClassMetadata','Action','split','parseRoute','search','ActionApi','length','description','createCustomMethodDecorator','string','middlewareIgnore','indexOf','Controller','77NwmVxA','isArray','saveClassMetadata','tagName','startsWith','-action','assign','get'];a3_0x1523=function(){return _0x30937d;};return a3_0x1523();}function ActionApi(_0x13fa51,_0x4aa024=a3_0x2051d1(0x153),_0x1f2427='/',_0x542792={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3d52ef,_0x2673f5,_0x29a11f)=>{const _0x287d83=a3_0x4fe8;var _0x1ffa6e,_0x47c123,_0x2b5571;!_0x542792['middleware']&&(_0x542792[_0x287d83(0x11d)]=[]);!((_0x1ffa6e=_0x542792===null||_0x542792===void 0x0?void 0x0:_0x542792[_0x287d83(0x15b)])===null||_0x1ffa6e===void 0x0?void 0x0:_0x1ffa6e[_0x287d83(0x159)])&&(_0x542792['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x287d83(0x148)}});if(!_0x1f2427)_0x1f2427='/';else typeof _0x1f2427=='string'&&(!_0x1f2427[_0x287d83(0x150)]('/')&&!_0x1f2427[_0x287d83(0x150)]('-')&&(_0x1f2427='/'+_0x1f2427));typeof _0x542792[_0x287d83(0x12c)]=='undefined'&&(_0x542792[_0x287d83(0x12c)]=!![]);if(((_0x47c123=_0x542792===null||_0x542792===void 0x0?void 0x0:_0x542792[_0x287d83(0x11d)])===null||_0x47c123===void 0x0?void 0x0:_0x47c123[_0x287d83(0x145)])>0x0&&((_0x2b5571=_0x542792===null||_0x542792===void 0x0?void 0x0:_0x542792[_0x287d83(0x149)])===null||_0x2b5571===void 0x0?void 0x0:_0x2b5571[_0x287d83(0x145)])>0x0)for(let _0x5732f3 in _0x542792[_0x287d83(0x11d)]){_0x542792[_0x287d83(0x149)]['indexOf'](_0x542792[_0x287d83(0x11d)][_0x5732f3])!==-0x1&&(_0x542792[_0x287d83(0x11d)][_0x5732f3]=null);}_0x542792[_0x287d83(0x11f)]=_0x13fa51,(0x0,validator_1[_0x287d83(0x154)])(_0x542792[_0x287d83(0x15b)])(_0x3d52ef,_0x2673f5,_0x29a11f),(0x0,core_2[_0x287d83(0x160)])(Object[_0x287d83(0x152)](_0x542792,{'path':_0x1f2427,'requestMethod':(_0x4aa024||_0x287d83(0x153))['toLowerCase']()}))(_0x3d52ef,_0x2673f5,_0x29a11f),(0x0,core_2[_0x287d83(0x13f)])(action_1[_0x287d83(0x117)],{'path':_0x1f2427,'method':_0x2673f5,'apimit':_0x542792['apimit'],'intercept':_0x542792[_0x287d83(0x12b)],'routerName':_0x542792['routerName'],'description':_0x542792[_0x287d83(0x146)],'middleware':(_0x542792['middleware']||[])['filter'](_0x4238f1=>!!_0x4238f1),'requestMethod':(_0x4aa024||_0x287d83(0x153))[_0x287d83(0x158)]()},_0x3d52ef),(0x0,core_2[_0x287d83(0x147)])(action_1[_0x287d83(0x117)],{'path':_0x1f2427,'method':_0x2673f5,'apimit':_0x542792[_0x287d83(0x12c)],'intercept':_0x542792[_0x287d83(0x12b)],'routerName':_0x542792[_0x287d83(0x11f)],'description':_0x542792['description'],'middleware':(_0x542792['middleware']||[])[_0x287d83(0x12f)](_0x4e3b84=>!!_0x4e3b84),'requestMethod':(_0x4aa024||'get')[_0x287d83(0x158)]()})(_0x3d52ef,_0x2673f5,_0x29a11f);};}exports[a3_0x2051d1(0x144)]=ActionApi;function parseRoute(_0x5cfdaf){const _0x261327=a3_0x2051d1;_0x5cfdaf=_0x5cfdaf[_0x261327(0x123)](/(\\|\/)/g,'/');const _0x392d1d=process['cwd']()[_0x261327(0x123)](/(\\|\/)/g,'/'),_0x503f93=_0x5cfdaf['substring'](0x0,_0x392d1d[_0x261327(0x145)]+_0x5cfdaf[_0x261327(0x128)](_0x392d1d[_0x261327(0x145)]+0x1)[_0x261327(0x14a)]('/')+0x1),_0x227433=_0x5cfdaf[_0x261327(0x128)](_0x503f93[_0x261327(0x145)]+0x1)[_0x261327(0x123)](/(\\|\/)/g,'/'),_0x38f04f={'route':'','prefix':![],'module':![],'rootpath':_0x503f93,'filepath':_0x227433};if(_0x227433[_0x261327(0x150)](_0x261327(0x13c))||_0x227433[_0x261327(0x150)]('basic/controller/')){const _0xa2dc90=_0x227433[_0x261327(0x128)]((_0x227433[_0x261327(0x150)](_0x261327(0x13c))?_0x261327(0x13c):_0x261327(0x135))[_0x261327(0x145)])['split']('/')[_0x261327(0x12f)](_0x26f098=>_0x26f098&&_0x26f098[_0x261327(0x162)]());return _0xa2dc90['length']>0x1&&(_0x38f04f[_0x261327(0x126)]=_0xa2dc90[0x0][_0x261327(0x158)](),_0xa2dc90[_0x261327(0x125)](0x0,0x1)),_0x38f04f[_0x261327(0x129)]=('/'+_0xa2dc90['join']('/'))[_0x261327(0x123)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x261327(0x120)]('-')['toLowerCase']()[_0x261327(0x123)](/\/\-/g,'/'),_0x38f04f[_0x261327(0x129)][_0x261327(0x11b)](_0x261327(0x151))&&(_0x38f04f[_0x261327(0x129)]=_0x38f04f[_0x261327(0x129)][_0x261327(0x128)](0x0,_0x38f04f[_0x261327(0x129)][_0x261327(0x145)]-0x7)),_0x38f04f[_0x261327(0x129)]['endsWith'](_0x261327(0x12e))&&(_0x38f04f[_0x261327(0x129)]=_0x38f04f[_0x261327(0x129)][_0x261327(0x128)](0x0,_0x38f04f[_0x261327(0x129)]['length']-0xb)),_0x38f04f;}else{if(_0x227433['startsWith'](_0x261327(0x156))){const _0x461257=_0x227433[_0x261327(0x128)](0x0,_0x227433[_0x261327(0x14a)](_0x261327(0x11e))+0x5),_0x23939f=_0x227433[_0x261327(0x128)](_0x461257[_0x261327(0x145)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x261327(0x141)]('/')[0x0];if(_0x227433[_0x261327(0x150)](_0x261327(0x156)+_0x23939f+_0x261327(0x113))){const _0x4e7927=_0x227433['substring']((_0x461257+'/'+_0x23939f+_0x261327(0x113))['length'])[_0x261327(0x141)]('/')[_0x261327(0x12f)](_0x4bb6c8=>_0x4bb6c8&&_0x4bb6c8[_0x261327(0x162)]());return _0x4e7927[_0x261327(0x145)]>0x1&&(_0x38f04f[_0x261327(0x126)]=_0x4e7927[0x0][_0x261327(0x158)](),_0x4e7927[_0x261327(0x125)](0x0,0x1)),_0x38f04f[_0x261327(0x13a)]=_0x23939f,_0x38f04f['route']=('/'+_0x23939f+'/'+_0x4e7927['join']('/'))[_0x261327(0x123)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x261327(0x12d)](/[\/|A-Z]*[^A-Z]+/g)[_0x261327(0x120)]('-')[_0x261327(0x158)]()['replace'](/\/\-/g,'/'),_0x38f04f[_0x261327(0x129)][_0x261327(0x11b)]('-action')&&(_0x38f04f[_0x261327(0x129)]=_0x38f04f[_0x261327(0x129)]['substring'](0x0,_0x38f04f[_0x261327(0x129)][_0x261327(0x145)]-0x7)),_0x38f04f['route'][_0x261327(0x11b)](_0x261327(0x12e))&&(_0x38f04f[_0x261327(0x129)]=_0x38f04f[_0x261327(0x129)]['substring'](0x0,_0x38f04f[_0x261327(0x129)][_0x261327(0x145)]-0xb)),_0x38f04f;}throw new Error(_0x227433+_0x261327(0x161)+_0x23939f+_0x261327(0x133));}}throw new Error(_0x227433+'\x20文件请放在app/controller/文件下');}exports[a3_0x2051d1(0x142)]=parseRoute;const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1[a3_0x2051d1(0x11a)],action_1[a3_0x2051d1(0x139)])||{};function getModuleConfig(_0x2affb2,_0x38450a,_0x46d648){const _0x2bed2e=a3_0x2051d1;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x38450a])){let _0x46c600={};if(NODE_ENV&&fs['existsSync'](_0x2affb2+'/'+_0x38450a+_0x2bed2e(0x15d)+NODE_ENV+'.'+_0x46d648)){const _0x1fa271=include(_0x2affb2+'/'+_0x38450a+_0x2bed2e(0x15d)+NODE_ENV+'.'+_0x46d648);Object[_0x2bed2e(0x118)](_0x1fa271)[_0x2bed2e(0x145)]>0x0&&(_0x46c600=lodash['defaultsDeep'](_0x46c600,_0x1fa271));}if(fs['existsSync'](_0x2affb2+_0x2bed2e(0x15d)+_0x46d648)){const _0x339b63=include(_0x2affb2+_0x2bed2e(0x15d)+_0x46d648);Object[_0x2bed2e(0x118)](_0x339b63)[_0x2bed2e(0x145)]>0x0&&(_0x46c600=lodash[_0x2bed2e(0x130)](_0x46c600,_0x339b63));}moduleConfigTmp[_0x38450a]=_0x46c600,(0x0,core_1['saveClassMetadata'])(action_1[_0x2bed2e(0x11a)],moduleConfigTmp,action_1[_0x2bed2e(0x139)]);}return moduleConfigTmp[_0x38450a];}
|
|
1
|
+
const a3_0x1aae31=a3_0xa9ff;function a3_0xa9ff(_0x5d9b67,_0x15abd6){const _0x1a29e4=a3_0x37e4();return a3_0xa9ff=function(_0x11c60f,_0x3b9cd0){_0x11c60f=_0x11c60f-0xfb;let _0x37e4b5=_0x1a29e4[_0x11c60f];return _0x37e4b5;},a3_0xa9ff(_0x5d9b67,_0x15abd6);}(function(_0x17ae06,_0x2d7777){const _0x3f12f6=a3_0xa9ff,_0x3377ce=_0x17ae06();while(!![]){try{const _0x149a31=parseInt(_0x3f12f6(0x13f))/0x1+-parseInt(_0x3f12f6(0x10d))/0x2+-parseInt(_0x3f12f6(0x11c))/0x3*(-parseInt(_0x3f12f6(0xfe))/0x4)+parseInt(_0x3f12f6(0x12e))/0x5*(-parseInt(_0x3f12f6(0x129))/0x6)+parseInt(_0x3f12f6(0x13b))/0x7+parseInt(_0x3f12f6(0x125))/0x8+-parseInt(_0x3f12f6(0x119))/0x9;if(_0x149a31===_0x2d7777)break;else _0x3377ce['push'](_0x3377ce['shift']());}catch(_0x388261){_0x3377ce['push'](_0x3377ce['shift']());}}}(a3_0x37e4,0x3078c));const a3_0x3b9cd0=(function(){let _0x2483f7=!![];return function(_0x5d0fd8,_0x471213){const _0x5cbf6c=_0x2483f7?function(){const _0x5d9bb4=a3_0xa9ff;if(_0x471213){const _0x6144c0=_0x471213[_0x5d9bb4(0x13c)](_0x5d0fd8,arguments);return _0x471213=null,_0x6144c0;}}:function(){};return _0x2483f7=![],_0x5cbf6c;};}()),a3_0x11c60f=a3_0x3b9cd0(this,function(){const _0x4c7458=a3_0xa9ff;return a3_0x11c60f[_0x4c7458(0x120)]()[_0x4c7458(0x12c)](_0x4c7458(0x10b))[_0x4c7458(0x120)]()['constructor'](a3_0x11c60f)[_0x4c7458(0x12c)](_0x4c7458(0x10b));});a3_0x11c60f();'use strict';var _a,_b;Object[a3_0x1aae31(0x12d)](exports,a3_0x1aae31(0x139),{'value':!![]}),exports[a3_0x1aae31(0x114)]=exports['ActionApi']=exports[a3_0x1aae31(0xfd)]=void 0x0;function a3_0x37e4(){const _0x5e6702=['string','indexOf','post','description','Action','874816UZPHAU','undefined','-controller','-action','rootpath','prefix','@midwayjs/core','join','AppsConfigTmp','MIDWAY_SERVER_ENV','existsSync','toLowerCase','cwd','(((.+)+)+)+$','APPSCONFIG_KEY','382788refZmF','assign','ActionApi','filepath','middleware','routerName','length','parseRoute','middlewareIgnore','substring','splice','../types/action','1530828KCIWiZ','apimit','match','3wIKSbF','split','ACTION_KEY','Controller','toString','validate','env','replace','app/controller/','1702440hyGftc','saveModule','@anncic-api/validator','get','489438YGcAnC','keys','basic/controller/','search','defineProperty','5BqEEME','trim','/config.','module','/apps','intercept','defaultsDeep','attachClassMetadata','route','isArray','tagName','__esModule','filter','1310540JKytqI','apply','/controller/文件下','RequestMapping','22870EmTsgz','\x20文件请放在app/controller/文件下','startsWith','endsWith','saveClassMetadata','/controller/'];a3_0x37e4=function(){return _0x5e6702;};return a3_0x37e4();}const fs=require('fs'),validator_1=require(a3_0x1aae31(0x127)),core_1=require('@midwayjs/core'),core_2=require(a3_0x1aae31(0x104)),action_1=require(a3_0x1aae31(0x118)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x1aae31(0x122)])===null||_a===void 0x0?void 0x0:_a[a3_0x1aae31(0x107)])||((_b=process===null||process===void 0x0?void 0x0:process[a3_0x1aae31(0x122)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x223b9d,_0x8c78a6,_0x2a5be6={'middleware':[],'sensitive':!![]}){return _0x2ab597=>{const _0xc72a60=a3_0xa9ff;var _0x190a94;_0x2a5be6[_0xc72a60(0x138)]=_0x8c78a6;const _0x477ce6=parseRoute(_0x223b9d);if(_0x477ce6[_0xc72a60(0x131)]){_0x2a5be6['prefix']=_0x2a5be6[_0xc72a60(0x103)]?'/'+_0x477ce6[_0xc72a60(0x131)]+'/'+_0x2a5be6[_0xc72a60(0x103)]:'/'+_0x477ce6[_0xc72a60(0x136)];_0x477ce6[_0xc72a60(0x103)]&&(_0x2a5be6[_0xc72a60(0x103)]='/'+_0x477ce6[_0xc72a60(0x103)]+'/'+_0x2a5be6[_0xc72a60(0x103)]);_0x2a5be6['prefix']=_0x2a5be6['prefix'][_0xc72a60(0x109)]()['replace'](/\/{2,}/g,'/');const _0x45c4ba=getModuleConfig(_0x477ce6[_0xc72a60(0x102)]+_0xc72a60(0x132),_0x477ce6['module'],lodash[_0xc72a60(0x142)](_0x477ce6[_0xc72a60(0x110)],'ts')?'ts':'js');if(lodash[_0xc72a60(0x137)](_0x45c4ba[_0xc72a60(0x111)])&&_0x45c4ba[_0xc72a60(0x111)][_0xc72a60(0x113)]>0x0)for(let _0x4059dd in _0x45c4ba[_0xc72a60(0x111)]){if(((_0x190a94=_0x45c4ba===null||_0x45c4ba===void 0x0?void 0x0:_0x45c4ba[_0xc72a60(0x115)])===null||_0x190a94===void 0x0?void 0x0:_0x190a94['length'])>0x0&&_0x45c4ba[_0xc72a60(0x115)][_0xc72a60(0x146)](_0x45c4ba[_0xc72a60(0x111)][_0x4059dd])!=-0x1)continue;_0x2a5be6[_0xc72a60(0x111)]['push'](_0x45c4ba[_0xc72a60(0x111)][_0x4059dd]);}(0x0,core_1['saveModule'])(action_1[_0xc72a60(0x11e)],_0x2ab597),(0x0,core_1[_0xc72a60(0x11f)])(_0x2a5be6[_0xc72a60(0x103)],_0x2a5be6)(_0x2ab597),(0x0,core_1[_0xc72a60(0x143)])(action_1[_0xc72a60(0x11e)],{'prefix':_0x2a5be6[_0xc72a60(0x103)],'pprefix':_0x477ce6['prefix'],'module':_0x477ce6[_0xc72a60(0x131)],'filepath':_0x477ce6[_0xc72a60(0x110)],'routerOptions':_0x2a5be6},_0x2ab597);}else _0x2a5be6[_0xc72a60(0x103)]=_0x2a5be6[_0xc72a60(0x103)]?'/'+_0x2a5be6[_0xc72a60(0x103)]:'/'+_0x477ce6['route'],_0x477ce6[_0xc72a60(0x103)]&&(_0x2a5be6['prefix']='/'+_0x477ce6[_0xc72a60(0x103)]+'/'+_0x2a5be6[_0xc72a60(0x103)]),_0x2a5be6['prefix']=_0x2a5be6[_0xc72a60(0x103)][_0xc72a60(0x109)]()[_0xc72a60(0x123)](/\/{2,}/g,'/'),(0x0,core_1[_0xc72a60(0x126)])(action_1[_0xc72a60(0x11e)],_0x2ab597),(0x0,core_1[_0xc72a60(0x11f)])(_0x2a5be6[_0xc72a60(0x103)],_0x2a5be6)(_0x2ab597),(0x0,core_1[_0xc72a60(0x143)])(action_1[_0xc72a60(0x11e)],{'prefix':_0x2a5be6[_0xc72a60(0x103)],'module':_0x477ce6[_0xc72a60(0x131)],'pprefix':_0x477ce6['prefix'],'filepath':_0x477ce6[_0xc72a60(0x110)],'routerOptions':_0x2a5be6},_0x2ab597);};}exports[a3_0x1aae31(0xfd)]=Action,Action[a3_0x1aae31(0x128)]=function(_0x264a40,_0x5d5381='/',_0xd74f5f={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x393d03,_0x552f1e,_0x126ef9)=>{const _0x5e2b82=a3_0xa9ff;ActionApi(_0x264a40,_0x5e2b82(0x128),_0x5d5381,_0xd74f5f)(_0x393d03,_0x552f1e,_0x126ef9);};},Action['post']=function(_0x47eb04,_0x5d8fc3='/',_0x3fe11e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x130db0,_0x2f56c0,_0x536044)=>{const _0x877ada=a3_0xa9ff;ActionApi(_0x47eb04,_0x877ada(0xfb),_0x5d8fc3,_0x3fe11e)(_0x130db0,_0x2f56c0,_0x536044);};};function ActionApi(_0x3a7fde,_0x4aa0be=a3_0x1aae31(0x128),_0x34f7a0='/',_0x4668e0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x25efd0,_0x224a81,_0xe77fd)=>{const _0xa3f0b9=a3_0xa9ff;var _0x3f75b5,_0x33ba98,_0x4e5447;!_0x4668e0[_0xa3f0b9(0x111)]&&(_0x4668e0[_0xa3f0b9(0x111)]=[]);!((_0x3f75b5=_0x4668e0===null||_0x4668e0===void 0x0?void 0x0:_0x4668e0[_0xa3f0b9(0x121)])===null||_0x3f75b5===void 0x0?void 0x0:_0x3f75b5['validationOptions'])&&(_0x4668e0[_0xa3f0b9(0x121)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0xa3f0b9(0x145)}});if(!_0x34f7a0)_0x34f7a0='/';else typeof _0x34f7a0==_0xa3f0b9(0x145)&&(!_0x34f7a0[_0xa3f0b9(0x141)]('/')&&!_0x34f7a0[_0xa3f0b9(0x141)]('-')&&(_0x34f7a0='/'+_0x34f7a0));typeof _0x4668e0[_0xa3f0b9(0x11a)]==_0xa3f0b9(0xff)&&(_0x4668e0[_0xa3f0b9(0x11a)]=!![]);if(((_0x33ba98=_0x4668e0===null||_0x4668e0===void 0x0?void 0x0:_0x4668e0[_0xa3f0b9(0x111)])===null||_0x33ba98===void 0x0?void 0x0:_0x33ba98[_0xa3f0b9(0x113)])>0x0&&((_0x4e5447=_0x4668e0===null||_0x4668e0===void 0x0?void 0x0:_0x4668e0[_0xa3f0b9(0x115)])===null||_0x4e5447===void 0x0?void 0x0:_0x4e5447[_0xa3f0b9(0x113)])>0x0)for(let _0x42cdc2 in _0x4668e0['middleware']){_0x4668e0[_0xa3f0b9(0x115)][_0xa3f0b9(0x146)](_0x4668e0[_0xa3f0b9(0x111)][_0x42cdc2])!==-0x1&&(_0x4668e0[_0xa3f0b9(0x111)][_0x42cdc2]=null);}_0x4668e0[_0xa3f0b9(0x112)]=_0x3a7fde,(0x0,validator_1['Validator'])(_0x4668e0[_0xa3f0b9(0x121)])(_0x25efd0,_0x224a81,_0xe77fd),(0x0,core_2[_0xa3f0b9(0x13e)])(Object[_0xa3f0b9(0x10e)](_0x4668e0,{'path':_0x34f7a0,'requestMethod':(_0x4aa0be||_0xa3f0b9(0x128))['toLowerCase']()}))(_0x25efd0,_0x224a81,_0xe77fd),(0x0,core_2[_0xa3f0b9(0x135)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x34f7a0,'method':_0x224a81,'apimit':_0x4668e0[_0xa3f0b9(0x11a)],'intercept':_0x4668e0[_0xa3f0b9(0x133)],'routerName':_0x4668e0[_0xa3f0b9(0x112)],'description':_0x4668e0['description'],'middleware':(_0x4668e0[_0xa3f0b9(0x111)]||[])[_0xa3f0b9(0x13a)](_0x56ce6b=>!!_0x56ce6b),'requestMethod':(_0x4aa0be||_0xa3f0b9(0x128))['toLowerCase']()},_0x25efd0),(0x0,core_2['createCustomMethodDecorator'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x34f7a0,'method':_0x224a81,'apimit':_0x4668e0[_0xa3f0b9(0x11a)],'intercept':_0x4668e0[_0xa3f0b9(0x133)],'routerName':_0x4668e0[_0xa3f0b9(0x112)],'description':_0x4668e0[_0xa3f0b9(0xfc)],'middleware':(_0x4668e0['middleware']||[])[_0xa3f0b9(0x13a)](_0x58c5e2=>!!_0x58c5e2),'requestMethod':(_0x4aa0be||'get')['toLowerCase']()})(_0x25efd0,_0x224a81,_0xe77fd);};}exports[a3_0x1aae31(0x10f)]=ActionApi;function parseRoute(_0x210dd0){const _0x24c1ce=a3_0x1aae31;_0x210dd0=_0x210dd0[_0x24c1ce(0x123)](/(\\|\/)/g,'/');const _0x5b31b2=process[_0x24c1ce(0x10a)]()[_0x24c1ce(0x123)](/(\\|\/)/g,'/'),_0x49559b=_0x210dd0[_0x24c1ce(0x116)](0x0,_0x5b31b2[_0x24c1ce(0x113)]+_0x210dd0[_0x24c1ce(0x116)](_0x5b31b2[_0x24c1ce(0x113)]+0x1)['indexOf']('/')+0x1),_0x555118=_0x210dd0[_0x24c1ce(0x116)](_0x49559b[_0x24c1ce(0x113)]+0x1)[_0x24c1ce(0x123)](/(\\|\/)/g,'/'),_0x486943={'route':'','prefix':![],'module':![],'rootpath':_0x49559b,'filepath':_0x555118};if(_0x555118[_0x24c1ce(0x141)](_0x24c1ce(0x124))||_0x555118[_0x24c1ce(0x141)]('basic/controller/')){const _0x7cb8ab=_0x555118[_0x24c1ce(0x116)]((_0x555118[_0x24c1ce(0x141)]('app/controller/')?_0x24c1ce(0x124):_0x24c1ce(0x12b))[_0x24c1ce(0x113)])[_0x24c1ce(0x11d)]('/')[_0x24c1ce(0x13a)](_0x270eeb=>_0x270eeb&&_0x270eeb[_0x24c1ce(0x12f)]());return _0x7cb8ab[_0x24c1ce(0x113)]>0x1&&(_0x486943[_0x24c1ce(0x103)]=_0x7cb8ab[0x0][_0x24c1ce(0x109)](),_0x7cb8ab[_0x24c1ce(0x117)](0x0,0x1)),_0x486943[_0x24c1ce(0x136)]=('/'+_0x7cb8ab[_0x24c1ce(0x105)]('/'))[_0x24c1ce(0x123)](/(\.ts|\.js)$/,'')[_0x24c1ce(0x123)](/\/{2,}/g,'/')[_0x24c1ce(0x11b)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x24c1ce(0x109)]()[_0x24c1ce(0x123)](/\/\-/g,'/'),_0x486943[_0x24c1ce(0x136)]['endsWith']('-action')&&(_0x486943[_0x24c1ce(0x136)]=_0x486943[_0x24c1ce(0x136)]['substring'](0x0,_0x486943['route'][_0x24c1ce(0x113)]-0x7)),_0x486943['route'][_0x24c1ce(0x142)](_0x24c1ce(0x100))&&(_0x486943[_0x24c1ce(0x136)]=_0x486943['route']['substring'](0x0,_0x486943[_0x24c1ce(0x136)][_0x24c1ce(0x113)]-0xb)),_0x486943;}else{if(_0x555118[_0x24c1ce(0x141)]('apps/')){const _0x9ff01d=_0x555118[_0x24c1ce(0x116)](0x0,_0x555118[_0x24c1ce(0x146)]('/apps/')+0x5),_0x25fb90=_0x555118[_0x24c1ce(0x116)](_0x9ff01d[_0x24c1ce(0x113)]+0x1)[_0x24c1ce(0x123)](/(\\|\/)/g,'/')[_0x24c1ce(0x11d)]('/')[0x0];if(_0x555118[_0x24c1ce(0x141)]('apps/'+_0x25fb90+'/controller/')){const _0x45d106=_0x555118[_0x24c1ce(0x116)]((_0x9ff01d+'/'+_0x25fb90+_0x24c1ce(0x144))[_0x24c1ce(0x113)])[_0x24c1ce(0x11d)]('/')[_0x24c1ce(0x13a)](_0xf37863=>_0xf37863&&_0xf37863['trim']());return _0x45d106['length']>0x1&&(_0x486943['prefix']=_0x45d106[0x0]['toLowerCase'](),_0x45d106['splice'](0x0,0x1)),_0x486943[_0x24c1ce(0x131)]=_0x25fb90,_0x486943[_0x24c1ce(0x136)]=('/'+_0x25fb90+'/'+_0x45d106['join']('/'))[_0x24c1ce(0x123)](/(\.ts|\.js)$/,'')[_0x24c1ce(0x123)](/\/{2,}/g,'/')[_0x24c1ce(0x11b)](/[\/|A-Z]*[^A-Z]+/g)[_0x24c1ce(0x105)]('-')[_0x24c1ce(0x109)]()[_0x24c1ce(0x123)](/\/\-/g,'/'),_0x486943['route'][_0x24c1ce(0x142)](_0x24c1ce(0x101))&&(_0x486943[_0x24c1ce(0x136)]=_0x486943['route'][_0x24c1ce(0x116)](0x0,_0x486943['route'][_0x24c1ce(0x113)]-0x7)),_0x486943[_0x24c1ce(0x136)][_0x24c1ce(0x142)](_0x24c1ce(0x100))&&(_0x486943['route']=_0x486943[_0x24c1ce(0x136)][_0x24c1ce(0x116)](0x0,_0x486943['route'][_0x24c1ce(0x113)]-0xb)),_0x486943;}throw new Error(_0x555118+'\x20文件请放在apps/'+_0x25fb90+_0x24c1ce(0x13d));}}throw new Error(_0x555118+_0x24c1ce(0x140));}exports['parseRoute']=parseRoute;const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1[a3_0x1aae31(0x10c)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0xddab54,_0x29f77a,_0x1e9a56){const _0x589168=a3_0x1aae31;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x29f77a])){let _0x46473b={};if(NODE_ENV&&fs[_0x589168(0x108)](_0xddab54+'/'+_0x29f77a+_0x589168(0x130)+NODE_ENV+'.'+_0x1e9a56)){const _0x5546a0=include(_0xddab54+'/'+_0x29f77a+_0x589168(0x130)+NODE_ENV+'.'+_0x1e9a56);Object[_0x589168(0x12a)](_0x5546a0)['length']>0x0&&(_0x46473b=lodash[_0x589168(0x134)](_0x46473b,_0x5546a0));}if(fs[_0x589168(0x108)](_0xddab54+'/config.'+_0x1e9a56)){const _0x2b4a92=include(_0xddab54+_0x589168(0x130)+_0x1e9a56);Object[_0x589168(0x12a)](_0x2b4a92)['length']>0x0&&(_0x46473b=lodash[_0x589168(0x134)](_0x46473b,_0x2b4a92));}moduleConfigTmp[_0x29f77a]=_0x46473b,(0x0,core_1[_0x589168(0x143)])(action_1[_0x589168(0x10c)],moduleConfigTmp,action_1[_0x589168(0x106)]);}return moduleConfigTmp[_0x29f77a];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a4_0x88ae(){const _0x1c5bf1=['(((.+)+)+)+$','REQUEST_OBJ_CTX_KEY','10YGjcZu','filepath','2yutmaA','__esModule','search','486800uEKfxu','5314810PEXumK','getAsync','toString','../service/ApitestService','constructor','getApplicationContext','588176WzFyRi','148602kLcjhm','isDevelopmentEnvironment','app','3271041RRGAiQ','520316YyJdkl','@midwayjs/core','apply','getConfig','1334292PeJuUY','ApitestService','Apitest','defineProperty','get','7EerRTi'];a4_0x88ae=function(){return _0x1c5bf1;};return a4_0x88ae();}const a4_0x4ee960=a4_0x5849;(function(_0x2f29fb,_0xd1b723){const _0x80f5d4=a4_0x5849,_0xedabf4=_0x2f29fb();while(!![]){try{const _0x333ed0=parseInt(_0x80f5d4(0xa7))/0x1+-parseInt(_0x80f5d4(0xba))/0x2*(-parseInt(_0x80f5d4(0xb0))/0x3)+-parseInt(_0x80f5d4(0xac))/0x4*(-parseInt(_0x80f5d4(0xb8))/0x5)+parseInt(_0x80f5d4(0xa8))/0x6*(parseInt(_0x80f5d4(0xb5))/0x7)+-parseInt(_0x80f5d4(0xbd))/0x8+-parseInt(_0x80f5d4(0xab))/0x9+-parseInt(_0x80f5d4(0xbe))/0xa;if(_0x333ed0===_0xd1b723)break;else _0xedabf4['push'](_0xedabf4['shift']());}catch(_0x390cd9){_0xedabf4['push'](_0xedabf4['shift']());}}}(a4_0x88ae,0x58665));const a4_0x3a6b4d=(function(){let _0x4fa351=!![];return function(_0x1c42a,_0x80012a){const _0x22fa6a=_0x4fa351?function(){const _0x26c98a=a4_0x5849;if(_0x80012a){const _0x1c3e6a=_0x80012a[_0x26c98a(0xae)](_0x1c42a,arguments);return _0x80012a=null,_0x1c3e6a;}}:function(){};return _0x4fa351=![],_0x22fa6a;};}()),a4_0x41b637=a4_0x3a6b4d(this,function(){const _0x2fd23=a4_0x5849;return a4_0x41b637[_0x2fd23(0xa3)]()[_0x2fd23(0xbc)]('(((.+)+)+)+$')[_0x2fd23(0xa3)]()[_0x2fd23(0xa5)](a4_0x41b637)[_0x2fd23(0xbc)](_0x2fd23(0xb6));});a4_0x41b637();'use strict';Object[a4_0x4ee960(0xb3)](exports,a4_0x4ee960(0xbb),{'value':!![]}),exports[a4_0x4ee960(0xb2)]=void 0x0;function a4_0x5849(_0x301fef,_0x25b43e){const _0x201615=a4_0x88ae();return a4_0x5849=function(_0x41b637,_0x3a6b4d){_0x41b637=_0x41b637-0xa3;let _0x88aefe=_0x201615[_0x41b637];return _0x88aefe;},a4_0x5849(_0x301fef,_0x25b43e);}const core_1=require(a4_0x4ee960(0xad)),ApitestService_1=require(a4_0x4ee960(0xa4));function Apitest(_0x1200c3='/apitest',_0xf7e7b2){return(_0xdc6141,_0x4dc5e8,_0x312da5)=>{const _0x415046=a4_0x5849;return(0x0,core_1['RequestMapping'])({'path':_0x1200c3,'requestMethod':_0x415046(0xb4)})(_0xdc6141,_0x4dc5e8,_0x312da5),_0x312da5['value']=async function(..._0x4c8052){const _0x56df5c=_0x415046;var _0x2fbced;const _0x3227b1=(_0x2fbced=this[core_1[_0x56df5c(0xb7)]])===null||_0x2fbced===void 0x0?void 0x0:_0x2fbced[_0x56df5c(0xaa)];if(_0x3227b1&&_0x3227b1[_0x56df5c(0xaf)]('apitest')){const _0x6485ae=await _0x3227b1[_0x56df5c(0xa6)]()[_0x56df5c(0xbf)](ApitestService_1[_0x56df5c(0xb1)]),_0xdae93f=await _0x3227b1[_0x56df5c(0xa6)]()[_0x56df5c(0xbf)](core_1['MidwayEnvironmentService']);return _0xdae93f[_0x56df5c(0xa9)]()&&(_0xf7e7b2[_0x56df5c(0xb9)]=!![]),await _0x6485ae['apidoc'](_0xf7e7b2);}return'';},_0x312da5;};}exports[a4_0x4ee960(0xb2)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x1ede97=a5_0x26f7;function a5_0x26f7(_0x3771b0,_0x3f5415){const _0x35747d=a5_0x4421();return a5_0x26f7=function(_0x5b00b3,_0xe7edbe){_0x5b00b3=_0x5b00b3-0x6f;let _0x442157=_0x35747d[_0x5b00b3];return _0x442157;},a5_0x26f7(_0x3771b0,_0x3f5415);}(function(_0x3a60bc,_0x49b9cf){const _0x26f3a7=a5_0x26f7,_0x20914b=_0x3a60bc();while(!![]){try{const _0x2eb97d=parseInt(_0x26f3a7(0x87))/0x1+parseInt(_0x26f3a7(0x6f))/0x2*(-parseInt(_0x26f3a7(0x81))/0x3)+-parseInt(_0x26f3a7(0x82))/0x4+-parseInt(_0x26f3a7(0x73))/0x5*(parseInt(_0x26f3a7(0x83))/0x6)+-parseInt(_0x26f3a7(0x8a))/0x7+-parseInt(_0x26f3a7(0x7b))/0x8+-parseInt(_0x26f3a7(0x8b))/0x9*(-parseInt(_0x26f3a7(0x74))/0xa);if(_0x2eb97d===_0x49b9cf)break;else _0x20914b['push'](_0x20914b['shift']());}catch(_0x12dc9c){_0x20914b['push'](_0x20914b['shift']());}}}(a5_0x4421,0x6fcc0));const a5_0xe7edbe=(function(){let _0x4e69ab=!![];return function(_0xe7456f,_0x1dd3d8){const _0x115a58=_0x4e69ab?function(){const _0x4f5101=a5_0x26f7;if(_0x1dd3d8){const _0x1095bf=_0x1dd3d8[_0x4f5101(0x86)](_0xe7456f,arguments);return _0x1dd3d8=null,_0x1095bf;}}:function(){};return _0x4e69ab=![],_0x115a58;};}()),a5_0x5b00b3=a5_0xe7edbe(this,function(){const _0x4283ce=a5_0x26f7;return a5_0x5b00b3[_0x4283ce(0x7e)]()[_0x4283ce(0x79)](_0x4283ce(0x7d))[_0x4283ce(0x7e)]()[_0x4283ce(0x70)](a5_0x5b00b3)['search']('(((.+)+)+)+$');});function a5_0x4421(){const _0x19997e=['1157632yYYkoy','18NhOSGM','INTERCEPT_KEY','1426244PewnpS','constructor','__esModule','includes','10Vvcgoc','7474810zDqOOg','@midwayjs/core','IIntercept','../types/intercept','Provide','search','match','2461408SeXVCc','Intercept','(((.+)+)+)+$','toString','push','Singleton','3TudhNM','130472dymiIk','1434612BoHjKq','getClassMetadata','isArray','apply','659954mEAIAE','InterceptTargetTmp','Scope'];a5_0x4421=function(){return _0x19997e;};return a5_0x4421();}a5_0x5b00b3();'use strict';Object['defineProperty'](exports,a5_0x1ede97(0x71),{'value':!![]}),exports['IIntercept']=exports[a5_0x1ede97(0x7c)]=void 0x0;const core_1=require(a5_0x1ede97(0x75)),intercept_1=require(a5_0x1ede97(0x77));function Intercept(_0x4541ce){return _0x11cc70=>{const _0x5b7e5f=a5_0x26f7,_0x273d62=(0x0,core_1[_0x5b7e5f(0x84)])(intercept_1[_0x5b7e5f(0x8c)],intercept_1[_0x5b7e5f(0x88)])||{};for(let _0x5df1de of Array[_0x5b7e5f(0x85)](_0x4541ce)?_0x4541ce:[_0x4541ce]){_0x5df1de=_0x5df1de['toUpperCase']();!(_0x273d62===null||_0x273d62===void 0x0?void 0x0:_0x273d62[_0x5df1de])&&(_0x273d62[_0x5df1de]=[]);if(_0x273d62[_0x5df1de][_0x5b7e5f(0x72)](_0x11cc70))continue;_0x273d62[_0x5df1de][_0x5b7e5f(0x7f)](_0x11cc70);}(0x0,core_1[_0x5b7e5f(0x78)])()(_0x11cc70),(0x0,core_1[_0x5b7e5f(0x89)])(core_1['ScopeEnum'][_0x5b7e5f(0x80)])(_0x11cc70),(0x0,core_1['saveClassMetadata'])(intercept_1[_0x5b7e5f(0x8c)],_0x273d62,intercept_1[_0x5b7e5f(0x88)]);};}exports['Intercept']=Intercept;class IIntercept{async[a5_0x1ede97(0x7a)](_0x27a8b0,_0x1383a4,_0x5878b2){return!![];}}exports[a5_0x1ede97(0x76)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a6_0x68d3(_0x108507,_0x3a00a9){var _0x23a0b3=a6_0x3f74();return a6_0x68d3=function(_0x47b993,_0x54f811){_0x47b993=_0x47b993-0xfb;var _0x3f74c7=_0x23a0b3[_0x47b993];return _0x3f74c7;},a6_0x68d3(_0x108507,_0x3a00a9);}function a6_0x3f74(){var _0x458378=['1804ETqxQt','HEADERS_LACK','255hmjVZv','27727ZZmoVo','929892OfUpUO','decorate','TIMEOUT_LOGINTIME','getOwnPropertyDescriptor','object','ApiError','__decorate','5118136JBQuoE','84996YCAKZz','HEADERS_CHECKCODE','__metadata','780NgHfwY','length','(((.+)+)+)+$','请使用正确的设备','search','HEADERS_SIGNATURE','HEADERS_DEVICE','toString','design:type','7166440vagrGd','1865HbOYxk','defineProperty','5582qsFMQl','metadata','请求头信息不完整','constructor','TIMEOUT','9OpKLLQ','824RldZGa','apply','signature验证失败'];a6_0x3f74=function(){return _0x458378;};return a6_0x3f74();}var a6_0x3ecab9=a6_0x68d3;(function(_0xd860f6,_0x3576e2){var _0x4f7738=a6_0x68d3,_0x379b98=_0xd860f6();while(!![]){try{var _0x50874d=parseInt(_0x4f7738(0x106))/0x1*(parseInt(_0x4f7738(0xfb))/0x2)+parseInt(_0x4f7738(0x108))/0x3+parseInt(_0x4f7738(0x101))/0x4*(parseInt(_0x4f7738(0x11d))/0x5)+-parseInt(_0x4f7738(0x113))/0x6*(parseInt(_0x4f7738(0x107))/0x7)+-parseInt(_0x4f7738(0x10f))/0x8*(parseInt(_0x4f7738(0x100))/0x9)+-parseInt(_0x4f7738(0x11c))/0xa+-parseInt(_0x4f7738(0x104))/0xb*(-parseInt(_0x4f7738(0x110))/0xc);if(_0x50874d===_0x3576e2)break;else _0x379b98['push'](_0x379b98['shift']());}catch(_0x9d251e){_0x379b98['push'](_0x379b98['shift']());}}}(a6_0x3f74,0x5eeaa));var a6_0x54f811=(function(){var _0xdb44b7=!![];return function(_0x1ca995,_0x5acb8c){var _0x2dcb30=_0xdb44b7?function(){var _0x5c7052=a6_0x68d3;if(_0x5acb8c){var _0x41bec6=_0x5acb8c[_0x5c7052(0x102)](_0x1ca995,arguments);return _0x5acb8c=null,_0x41bec6;}}:function(){};return _0xdb44b7=![],_0x2dcb30;};}()),a6_0x47b993=a6_0x54f811(this,function(){var _0x2a6085=a6_0x68d3;return a6_0x47b993[_0x2a6085(0x11a)]()[_0x2a6085(0x117)](_0x2a6085(0x115))[_0x2a6085(0x11a)]()[_0x2a6085(0xfe)](a6_0x47b993)[_0x2a6085(0x117)]('(((.+)+)+)+$');});a6_0x47b993();'use strict';var __decorate=this&&this[a6_0x3ecab9(0x10e)]||function(_0x28fcf8,_0x5aa2b0,_0x2e576b,_0x5d8b39){var _0x5be26f=a6_0x3ecab9,_0x236c2a=arguments[_0x5be26f(0x114)],_0x2ac9c4=_0x236c2a<0x3?_0x5aa2b0:_0x5d8b39===null?_0x5d8b39=Object[_0x5be26f(0x10b)](_0x5aa2b0,_0x2e576b):_0x5d8b39,_0x3602c6;if(typeof Reflect===_0x5be26f(0x10c)&&typeof Reflect[_0x5be26f(0x109)]==='function')_0x2ac9c4=Reflect[_0x5be26f(0x109)](_0x28fcf8,_0x5aa2b0,_0x2e576b,_0x5d8b39);else{for(var _0xdbb4be=_0x28fcf8['length']-0x1;_0xdbb4be>=0x0;_0xdbb4be--)if(_0x3602c6=_0x28fcf8[_0xdbb4be])_0x2ac9c4=(_0x236c2a<0x3?_0x3602c6(_0x2ac9c4):_0x236c2a>0x3?_0x3602c6(_0x5aa2b0,_0x2e576b,_0x2ac9c4):_0x3602c6(_0x5aa2b0,_0x2e576b))||_0x2ac9c4;}return _0x236c2a>0x3&&_0x2ac9c4&&Object[_0x5be26f(0x11e)](_0x5aa2b0,_0x2e576b,_0x2ac9c4),_0x2ac9c4;},__metadata=this&&this[a6_0x3ecab9(0x112)]||function(_0x495c41,_0x30dbf2){var _0x17e41a=a6_0x3ecab9;if(typeof Reflect===_0x17e41a(0x10c)&&typeof Reflect[_0x17e41a(0xfc)]==='function')return Reflect['metadata'](_0x495c41,_0x30dbf2);};Object[a6_0x3ecab9(0x11e)](exports,'__esModule',{'value':!![]}),exports[a6_0x3ecab9(0x10d)]=void 0x0;class ApiError extends AnnError{}ApiError[a6_0x3ecab9(0xff)]=0x19003,ApiError[a6_0x3ecab9(0x105)]=0x18e72,ApiError[a6_0x3ecab9(0x119)]=0x18e73,ApiError[a6_0x3ecab9(0x118)]=0x18e74,ApiError[a6_0x3ecab9(0x111)]=0x18e75,ApiError[a6_0x3ecab9(0x10a)]=0x18e76,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata(a6_0x3ecab9(0x11b),Object)],ApiError,a6_0x3ecab9(0xff),void 0x0),__decorate([AnnErrorMsg(a6_0x3ecab9(0xfd)),__metadata(a6_0x3ecab9(0x11b),Object)],ApiError,a6_0x3ecab9(0x105),void 0x0),__decorate([AnnErrorMsg(a6_0x3ecab9(0x116)),__metadata(a6_0x3ecab9(0x11b),Object)],ApiError,a6_0x3ecab9(0x119),void 0x0),__decorate([AnnErrorMsg(a6_0x3ecab9(0x103)),__metadata(a6_0x3ecab9(0x11b),Object)],ApiError,a6_0x3ecab9(0x118),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x3ecab9(0x11b),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata('design:type',Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports[a6_0x3ecab9(0x10d)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x4da3ae=a7_0x49db;(function(_0x7a0ded,_0x95dc99){const _0x12b22c=a7_0x49db,_0x3f3cba=_0x7a0ded();while(!![]){try{const _0x212581=-parseInt(_0x12b22c(0x170))/0x1+-parseInt(_0x12b22c(0x16e))/0x2*(parseInt(_0x12b22c(0x17d))/0x3)+-parseInt(_0x12b22c(0x16d))/0x4*(parseInt(_0x12b22c(0x17c))/0x5)+parseInt(_0x12b22c(0x17f))/0x6+-parseInt(_0x12b22c(0x175))/0x7+-parseInt(_0x12b22c(0x174))/0x8+parseInt(_0x12b22c(0x16a))/0x9;if(_0x212581===_0x95dc99)break;else _0x3f3cba['push'](_0x3f3cba['shift']());}catch(_0x502d8b){_0x3f3cba['push'](_0x3f3cba['shift']());}}}(a7_0x391e,0xbd8c8));function a7_0x391e(){const _0x47b1ba=['2763354QPLsUN','getClassMetadata','29097126WIUjoL','@midwayjs/core','getAppsConfig','931276OemrPn','564QkLmqz','toString','775172yxVQVU','__esModule','apply','AppsConfigTmp','181240sKVfyL','9652153KlYYhA','search','APPSCONFIG_KEY','../types/action','get','(((.+)+)+)+$','defineProperty','15rnPNPp','447iMNcjD','constructor'];a7_0x391e=function(){return _0x47b1ba;};return a7_0x391e();}const a7_0x4c3529=(function(){let _0x4f482a=!![];return function(_0x2b16b0,_0x6c7b15){const _0x117c56=_0x4f482a?function(){const _0x34f478=a7_0x49db;if(_0x6c7b15){const _0x146daf=_0x6c7b15[_0x34f478(0x172)](_0x2b16b0,arguments);return _0x6c7b15=null,_0x146daf;}}:function(){};return _0x4f482a=![],_0x117c56;};}()),a7_0x141365=a7_0x4c3529(this,function(){const _0x53b931=a7_0x49db;return a7_0x141365[_0x53b931(0x16f)]()[_0x53b931(0x176)](_0x53b931(0x17a))['toString']()[_0x53b931(0x17e)](a7_0x141365)[_0x53b931(0x176)](_0x53b931(0x17a));});function a7_0x49db(_0xcdf6d7,_0x5bbfc8){const _0x4fdabf=a7_0x391e();return a7_0x49db=function(_0x141365,_0x4c3529){_0x141365=_0x141365-0x16a;let _0x391e28=_0x4fdabf[_0x141365];return _0x391e28;},a7_0x49db(_0xcdf6d7,_0x5bbfc8);}a7_0x141365();'use strict';Object[a7_0x4da3ae(0x17b)](exports,a7_0x4da3ae(0x171),{'value':!![]}),exports[a7_0x4da3ae(0x16c)]=void 0x0;const core_1=require(a7_0x4da3ae(0x16b)),action_1=require(a7_0x4da3ae(0x178));function getAppsConfig(_0x21c9eb){const _0x217bd6=a7_0x4da3ae,_0x51a81c=(0x0,core_1[_0x217bd6(0x180)])(action_1[_0x217bd6(0x177)],action_1[_0x217bd6(0x173)])||{};return _0x21c9eb?lodash[_0x217bd6(0x179)](_0x51a81c,_0x21c9eb):_0x51a81c;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x130e09=a8_0x542d;(function(_0x4f7c9e,_0x18d307){const _0x53f284=a8_0x542d,_0x324a82=_0x4f7c9e();while(!![]){try{const _0x1964c9=parseInt(_0x53f284(0x20a))/0x1*(-parseInt(_0x53f284(0x1bc))/0x2)+-parseInt(_0x53f284(0x1fe))/0x3+-parseInt(_0x53f284(0x1d6))/0x4+-parseInt(_0x53f284(0x1bf))/0x5+parseInt(_0x53f284(0x1c6))/0x6*(-parseInt(_0x53f284(0x1b3))/0x7)+-parseInt(_0x53f284(0x1c3))/0x8*(parseInt(_0x53f284(0x204))/0x9)+parseInt(_0x53f284(0x1bb))/0xa*(parseInt(_0x53f284(0x1e5))/0xb);if(_0x1964c9===_0x18d307)break;else _0x324a82['push'](_0x324a82['shift']());}catch(_0x35ced0){_0x324a82['push'](_0x324a82['shift']());}}}(a8_0x87d2,0xc52bb));const a8_0x78a3c2=(function(){let _0x5613dc=!![];return function(_0x169f10,_0x443862){const _0x5925e0=_0x5613dc?function(){const _0x32a6ef=a8_0x542d;if(_0x443862){const _0x306cf6=_0x443862[_0x32a6ef(0x1e7)](_0x169f10,arguments);return _0x443862=null,_0x306cf6;}}:function(){};return _0x5613dc=![],_0x5925e0;};}()),a8_0x3ac34b=a8_0x78a3c2(this,function(){const _0x640ac2=a8_0x542d;return a8_0x3ac34b[_0x640ac2(0x1fa)]()['search'](_0x640ac2(0x1a9))[_0x640ac2(0x1fa)]()[_0x640ac2(0x1b8)](a8_0x3ac34b)[_0x640ac2(0x1f0)](_0x640ac2(0x1a9));});function a8_0x542d(_0x332b08,_0x2c2b8c){const _0x482c24=a8_0x87d2();return a8_0x542d=function(_0x3ac34b,_0x78a3c2){_0x3ac34b=_0x3ac34b-0x1a7;let _0x87d25=_0x482c24[_0x3ac34b];return _0x87d25;},a8_0x542d(_0x332b08,_0x2c2b8c);}a8_0x3ac34b();'use strict';Object[a8_0x130e09(0x201)](exports,a8_0x130e09(0x1f3),{'value':!![]}),exports[a8_0x130e09(0x1de)]=void 0x0;const lodash_1=require(a8_0x130e09(0x1f2)),validator_1=require(a8_0x130e09(0x1ca)),core_1=require(a8_0x130e09(0x1d4)),core_2=require(a8_0x130e09(0x1d4)),core_3=require(a8_0x130e09(0x1d4)),action_1=require(a8_0x130e09(0x1d7));function a8_0x87d2(){const _0x3ea09b=['string','type','listModule','336712gmQjFX','summary','items','486fBcKZu','describe','routerOptions','filepath','@anncic-api/validator','push','indexOf','min','file','requestMethod','boolean','FIELDS','ACTION_ROUTE_KEY','filter','@midwayjs/core','title','1332780pkiJCX','../types/action','route','allow','header','tagName','key','String','getRoutes','rules','startsWith','substring','getClassMetadata','module','isArray','363UqGrQJ','number','apply','default','propertyData','flags.label','method','split','body','concat','replace','search','query','lodash','__esModule','test','limit','WEB_ROUTER_PARAM_KEY','find','name','Object','toString','flags.description','INJECT_CUSTOM_PARAM','RULES_KEY','2384274nbPeYq','/static/apitest','QUERY','defineProperty','routes','keys','342IUxQlA','function','pprefix','get','path','request','694hBrzsX','intercept','children','FILESSTREAM','metadata','PARAM','parameterIndex','(((.+)+)+)+$','args','flags.presence','static/apitest','iterator','Number','Boolean','getMethodParamTypes','length','description','21504agnWFz','只允许:[','RouteParamTypes','max','HEADERS','constructor','array','required','1420190MkAxYF','364WYDJNm','prefix','noreq','3882705fwMEcr'];a8_0x87d2=function(){return _0x3ea09b;};return a8_0x87d2();}function getRoutes(_0x178dfe={'prefix':'/','module':![]}){const _0x193493=a8_0x130e09;var _0x3343db,_0x24abc3;const _0x40fe16=(0x0,core_3[_0x193493(0x1c2)])(action_1['ACTION_KEY']),_0x40d84a={},_0x5d7e0=Array[_0x193493(0x1e4)](_0x178dfe[_0x193493(0x1d3)]||[])?_0x178dfe[_0x193493(0x1d3)]||[]:[_0x178dfe[_0x193493(0x1d3)]];_0x712448:for(const _0x16e14b of _0x40fe16){let _0xaa5c62=(0x0,core_3[_0x193493(0x1e2)])(action_1['ACTION_KEY'],_0x16e14b),_0x55962f=(0x0,core_3[_0x193493(0x1e2)])(action_1[_0x193493(0x1d2)],_0x16e14b);if(_0xaa5c62&&_0x55962f){let _0x49855e=_0xaa5c62['prefix'],_0x5455a0={};if(_0x178dfe[_0x193493(0x1e3)]&&(0x0,lodash_1[_0x193493(0x207)])(_0xaa5c62,_0x193493(0x1e3),![])!=_0x178dfe[_0x193493(0x1e3)])continue _0x712448;else{if(_0x178dfe[_0x193493(0x1e3)]===![]&&!!(0x0,lodash_1[_0x193493(0x207)])(_0xaa5c62,_0x193493(0x1e3),null))continue _0x712448;}if(_0x178dfe[_0x193493(0x1bd)]&&!_0x49855e['startsWith'](_0x178dfe[_0x193493(0x1bd)]))continue _0x712448;_0x49855e!=='/'?(_0x5455a0[_0x193493(0x1c4)]=(_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62[_0x193493(0x1c8)][_0x193493(0x1db)])||(/^\//[_0x193493(0x1f4)](_0x49855e)?_0x49855e[_0x193493(0x1ec)]('/')[0x1]:_0x49855e),_0x5455a0[_0x193493(0x1b2)]=(_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62['routerOptions'][_0x193493(0x1b2)])||_0x5455a0[_0x193493(0x1c4)],_0x5455a0['routes']=[]):(_0x5455a0[_0x193493(0x1c4)]=(_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62[_0x193493(0x1c8)][_0x193493(0x1db)])||_0x193493(0x1e8),_0x5455a0[_0x193493(0x1b2)]=(_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62[_0x193493(0x1c8)][_0x193493(0x1b2)])||'',_0x5455a0[_0x193493(0x202)]=[]);_0x178dfe[_0x193493(0x1c9)]&&(_0x5455a0[_0x193493(0x1c9)]=_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62[_0x193493(0x1c9)]);(_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62[_0x193493(0x206)])&&(_0x5455a0[_0x193493(0x1bd)]=_0xaa5c62[_0x193493(0x206)]);(_0xaa5c62===null||_0xaa5c62===void 0x0?void 0x0:_0xaa5c62[_0x193493(0x1e3)])&&(_0x5455a0[_0x193493(0x1e3)]=_0xaa5c62[_0x193493(0x1e3)]);let _0x202e4e=(0x0,core_3[_0x193493(0x1e2)])(core_2[_0x193493(0x1fc)],_0x16e14b)||{};if(typeof _0x55962f[Symbol[_0x193493(0x1ad)]]===_0x193493(0x205))for(let _0x1e972b of _0x55962f){if((_0x178dfe===null||_0x178dfe===void 0x0?void 0x0:_0x178dfe[_0x193493(0x20b)])&&!(_0x1e972b===null||_0x1e972b===void 0x0?void 0x0:_0x1e972b['intercept']))continue;let _0x18fe19={};_0x18fe19[_0x193493(0x1eb)]=_0x1e972b[_0x193493(0x1cf)],_0x18fe19['route']=(_0x49855e+_0x1e972b[_0x193493(0x208)])[_0x193493(0x1ef)](/\/{2,}/g,'/'),_0x18fe19[_0x193493(0x1c4)]=(_0x1e972b===null||_0x1e972b===void 0x0?void 0x0:_0x1e972b['routerName'])||_0x5455a0['summary']||_0x193493(0x1e8),_0x18fe19[_0x193493(0x1b2)]=(_0x1e972b===null||_0x1e972b===void 0x0?void 0x0:_0x1e972b[_0x193493(0x1b2)])||'',_0x18fe19['request']=[];_0x18fe19[_0x193493(0x1d8)]['endsWith']('/')&&(_0x18fe19[_0x193493(0x1d8)]=_0x18fe19[_0x193493(0x1d8)][_0x193493(0x1e1)](0x0,_0x18fe19[_0x193493(0x1d8)][_0x193493(0x1b1)]-0x1));if(!(0x0,lodash_1[_0x193493(0x1e0)])(_0x18fe19[_0x193493(0x1d8)],_0x193493(0x1ac))&&!(0x0,lodash_1[_0x193493(0x1e0)])(_0x18fe19[_0x193493(0x1d8)],_0x193493(0x1ff))&&_0x5d7e0[_0x193493(0x1cc)](_0x18fe19['route'])===-0x1){if(!(_0x178dfe===null||_0x178dfe===void 0x0?void 0x0:_0x178dfe[_0x193493(0x1be)])){let _0x58a86f=(0x0,core_3[_0x193493(0x1b0)])(new _0x16e14b(),_0x1e972b[_0x193493(0x1eb)]);for(const _0x137e3d in _0x58a86f){let _0x54183a=(_0x3343db=_0x202e4e[_0x1e972b[_0x193493(0x1eb)]])===null||_0x3343db===void 0x0?void 0x0:_0x3343db['find'](_0x343781=>_0x343781[_0x193493(0x1a8)]==_0x137e3d&&_0x343781['key']===core_2[_0x193493(0x1f6)]&&(_0x343781===null||_0x343781===void 0x0?void 0x0:_0x343781[_0x193493(0x20e)]));if(_0x54183a===null||_0x54183a===void 0x0?void 0x0:_0x54183a[_0x193493(0x20e)]){let _0x4d71ec=convertTypeToString(_0x54183a['metadata'][_0x193493(0x1c1)]||0x0);if([_0x193493(0x1f1),'body']['indexOf'](_0x4d71ec)!=-0x1&&_0x54183a[_0x193493(0x20e)][_0x193493(0x1e9)]['indexOf'](':')==-0x1&&!_0x18fe19[_0x193493(0x209)][_0x193493(0x1f7)](_0x5e01b2=>_0x5e01b2[_0x193493(0x1dc)]==_0x54183a[_0x193493(0x20e)]['propertyData']))_0x18fe19[_0x193493(0x209)][_0x193493(0x1cb)]({'key':_0x54183a['metadata'][_0x193493(0x1e9)],'title':_0x54183a[_0x193493(0x20e)]['propertyData'],'type':convertSchemaType(_0x58a86f[_0x54183a['parameterIndex']][_0x193493(0x1f8)]),'required':![],'default':'','desc':''});else{if(_0x4d71ec==_0x193493(0x1ce)){let _0x229b29=((_0x24abc3=_0x54183a===null||_0x54183a===void 0x0?void 0x0:_0x54183a[_0x193493(0x20e)])===null||_0x24abc3===void 0x0?void 0x0:_0x24abc3[_0x193493(0x1e9)])||_0x193493(0x1ce);_0x229b29[_0x193493(0x1cc)](':')==-0x1&&!_0x18fe19[_0x193493(0x209)][_0x193493(0x1f7)](_0x27f3a9=>_0x27f3a9[_0x193493(0x1dc)]==_0x229b29&&_0x27f3a9['type']==_0x193493(0x1ce))&&_0x18fe19[_0x193493(0x209)][_0x193493(0x1cb)]({'key':_0x229b29,'title':'文件上传-'+_0x229b29,'type':_0x193493(0x1ce),'required':!![],'default':'','desc':''});}}}else{const _0x4e9d35=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x193493(0x1fd)],_0x58a86f[_0x137e3d]);_0x4e9d35&&_0x18fe19['request'][_0x193493(0x1cb)](...getJoiRequest(_0x4e9d35));}}}_0x5455a0['routes']['push'](_0x18fe19);}}if(_0x5455a0[_0x193493(0x202)]['length']>0x0){let _0x1c75d5=_0x40d84a[_0x49855e];_0x1c75d5?(_0x1c75d5['summary']!=_0x5455a0[_0x193493(0x1c4)]&&(_0x1c75d5[_0x193493(0x1c4)]=_0x1c75d5[_0x193493(0x1c4)]+','+_0x5455a0[_0x193493(0x1c4)]),_0x1c75d5[_0x193493(0x1b2)]!=_0x5455a0['description']&&(_0x1c75d5[_0x193493(0x1b2)]=_0x1c75d5['description']+','+_0x5455a0[_0x193493(0x1b2)]),_0x1c75d5[_0x193493(0x202)]=_0x1c75d5[_0x193493(0x202)][_0x193493(0x1ee)](_0x5455a0['routes']),_0x40d84a[_0x49855e]=_0x1c75d5):_0x40d84a[_0x49855e]=_0x5455a0;}}}return _0x40d84a;}exports[a8_0x130e09(0x1de)]=getRoutes;function getJoiRequest(_0x598234){const _0x20b2ca=a8_0x130e09,_0x16d434=[];for(let _0x33b09b in _0x598234){const _0x55d48f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1c62d1=typeof _0x598234[_0x33b09b][_0x20b2ca(0x1c7)]==_0x20b2ca(0x205)?_0x598234[_0x33b09b][_0x20b2ca(0x1c7)]():_0x598234[_0x33b09b];_0x55d48f['key']=_0x33b09b,_0x55d48f[_0x20b2ca(0x1c1)]=_0x1c62d1[_0x20b2ca(0x1c1)],_0x55d48f[_0x20b2ca(0x1d5)]=(0x0,lodash_1[_0x20b2ca(0x207)])(_0x1c62d1,_0x20b2ca(0x1ea),_0x33b09b),_0x55d48f['default']=(0x0,lodash_1['get'])(_0x1c62d1,'flags.default',''),_0x55d48f[_0x20b2ca(0x1ba)]=(0x0,lodash_1[_0x20b2ca(0x207)])(_0x1c62d1,_0x20b2ca(0x1ab),'')==_0x20b2ca(0x1ba),_0x55d48f[_0x20b2ca(0x1b2)]=(0x0,lodash_1[_0x20b2ca(0x207)])(_0x1c62d1,_0x20b2ca(0x1fb),'');if(_0x1c62d1['type']=='object')_0x55d48f[_0x20b2ca(0x20c)]=getJoiRequest(_0x1c62d1[_0x20b2ca(0x203)]);else{if(_0x1c62d1['type']==_0x20b2ca(0x1b9)&&_0x1c62d1[_0x20b2ca(0x1c5)]&&Array[_0x20b2ca(0x1e4)](_0x1c62d1['items'])&&_0x1c62d1[_0x20b2ca(0x1c5)][0x0]){}}_0x1c62d1[_0x20b2ca(0x1d9)]&&Array[_0x20b2ca(0x1e4)](_0x1c62d1['allow'])&&_0x1c62d1[_0x20b2ca(0x1d9)][_0x20b2ca(0x1b1)]>0x0&&(_0x55d48f[_0x20b2ca(0x1b2)]=_0x20b2ca(0x1b4)+_0x1c62d1[_0x20b2ca(0x1d9)]['join'](',')+'];'+_0x55d48f[_0x20b2ca(0x1b2)]);if(_0x55d48f['key']&&_0x55d48f[_0x20b2ca(0x1c1)]){const _0x494d00={};for(const _0x37cf2a of _0x1c62d1[_0x20b2ca(0x1df)]||[]){if(_0x37cf2a[_0x20b2ca(0x1f8)]==='min'&&_0x37cf2a['args'])_0x494d00[_0x20b2ca(0x1cd)]=_0x37cf2a[_0x20b2ca(0x1aa)][_0x20b2ca(0x1f5)];else _0x37cf2a[_0x20b2ca(0x1f8)]===_0x20b2ca(0x1b6)&&(_0x494d00['max']=_0x37cf2a['args'][_0x20b2ca(0x1f5)]);}_0x55d48f[_0x20b2ca(0x1df)]=_0x494d00;}_0x55d48f['key']&&_0x55d48f[_0x20b2ca(0x1d5)]&&_0x16d434[_0x20b2ca(0x1cb)](_0x55d48f);}return _0x16d434;}function convertSchemaType(_0x152e3e){const _0x5d8f74=a8_0x130e09;switch(_0x152e3e){case _0x5d8f74(0x1f9):return'object';case _0x5d8f74(0x1af):return _0x5d8f74(0x1d0);case _0x5d8f74(0x1ae):return _0x5d8f74(0x1e6);case _0x5d8f74(0x1dd):return _0x5d8f74(0x1c0);case'File':return _0x5d8f74(0x1ce);default:return _0x5d8f74(0x1c0);}}function convertTypeToString(_0x25920e){const _0x100638=a8_0x130e09;switch(_0x25920e){case core_1[_0x100638(0x1b5)][_0x100638(0x1b7)]:return _0x100638(0x1da);case core_1[_0x100638(0x1b5)][_0x100638(0x200)]:return _0x100638(0x1f1);case core_1[_0x100638(0x1b5)][_0x100638(0x1a7)]:return _0x100638(0x208);case core_1[_0x100638(0x1b5)]['BODY']:return _0x100638(0x1ed);case core_1[_0x100638(0x1b5)][_0x100638(0x1d1)]:case core_1[_0x100638(0x1b5)][_0x100638(0x20d)]:case core_1[_0x100638(0x1b5)]['FILESTREAM']:return _0x100638(0x1ce);default:return _0x100638(0x1da);}}
|
|
1
|
+
const a8_0x236c27=a8_0x46be;function a8_0x1d56(){const _0x962d33=['metadata','substring','Number','limit','push','pprefix','Boolean','String','flags.label','apply','rules','PARAM','parameterIndex','HEADERS','1035010SzjuYA','131XEOMvV','3697326wrRowY','requestMethod','FILESSTREAM','replace','route','toString','static/apitest','RULES_KEY','key','header','function','request','RouteParamTypes','flags.presence','string','getClassMetadata','method','type','describe','min','search','@midwayjs/core','filter','find','只允许:[','flags.default','defineProperty','args','concat','1962376oxJONO','getRoutes','@anncic-api/validator','INJECT_CUSTOM_PARAM','path','1402722ONjTfg','name','1078QPgGFa','split','max','getClassExtendedMetadata','routerName','indexOf','__esModule','constructor','99kQPlXJ','file','propertyData','Object','description','File','flags.description','ACTION_ROUTE_KEY','BODY','query','module','join','required','object','length','endsWith','listModule','routes','default','FIELDS','body','ACTION_KEY','文件上传-','(((.+)+)+)+$','tagName','allow','summary','boolean','17016evPuPX','get','FILESTREAM','isArray','6srZiBK','lodash','filepath','startsWith','2469865cNFFxp','routerOptions','items','74sdafyp','title','getMethodParamTypes','prefix','/static/apitest','children'];a8_0x1d56=function(){return _0x962d33;};return a8_0x1d56();}(function(_0x5b70a1,_0x321dec){const _0x315b93=a8_0x46be,_0x437413=_0x5b70a1();while(!![]){try{const _0x476034=-parseInt(_0x315b93(0x192))/0x1*(parseInt(_0x315b93(0x17d))/0x2)+parseInt(_0x315b93(0x1b5))/0x3+parseInt(_0x315b93(0x1b0))/0x4+parseInt(_0x315b93(0x17a))/0x5*(parseInt(_0x315b93(0x176))/0x6)+parseInt(_0x315b93(0x1b7))/0x7*(parseInt(_0x315b93(0x172))/0x8)+-parseInt(_0x315b93(0x193))/0x9+-parseInt(_0x315b93(0x191))/0xa*(parseInt(_0x315b93(0x156))/0xb);if(_0x476034===_0x321dec)break;else _0x437413['push'](_0x437413['shift']());}catch(_0x337656){_0x437413['push'](_0x437413['shift']());}}}(a8_0x1d56,0x69991));const a8_0xc181a4=(function(){let _0x570fb7=!![];return function(_0x40f62e,_0x11b058){const _0x391c72=_0x570fb7?function(){const _0x7eb09b=a8_0x46be;if(_0x11b058){const _0x5efcc9=_0x11b058[_0x7eb09b(0x18c)](_0x40f62e,arguments);return _0x11b058=null,_0x5efcc9;}}:function(){};return _0x570fb7=![],_0x391c72;};}()),a8_0x40d103=a8_0xc181a4(this,function(){const _0x5e11b6=a8_0x46be;return a8_0x40d103[_0x5e11b6(0x198)]()[_0x5e11b6(0x1a7)]('(((.+)+)+)+$')['toString']()[_0x5e11b6(0x1be)](a8_0x40d103)[_0x5e11b6(0x1a7)](_0x5e11b6(0x16d));});function a8_0x46be(_0x4914b8,_0x2c7b51){const _0x27e996=a8_0x1d56();return a8_0x46be=function(_0x40d103,_0xc181a4){_0x40d103=_0x40d103-0x156;let _0x1d56ca=_0x27e996[_0x40d103];return _0x1d56ca;},a8_0x46be(_0x4914b8,_0x2c7b51);}a8_0x40d103();'use strict';Object[a8_0x236c27(0x1ad)](exports,a8_0x236c27(0x1bd),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x236c27(0x177)),validator_1=require(a8_0x236c27(0x1b2)),core_1=require(a8_0x236c27(0x1a8)),core_2=require(a8_0x236c27(0x1a8)),core_3=require(a8_0x236c27(0x1a8)),action_1=require('../types/action');function getRoutes(_0x1867f4={'prefix':'/','module':![]}){const _0x15f121=a8_0x236c27;var _0x2c2926,_0x247c00;const _0x4f2124=(0x0,core_3[_0x15f121(0x166)])(action_1[_0x15f121(0x16b)]),_0x802891={},_0x394b06=Array[_0x15f121(0x175)](_0x1867f4[_0x15f121(0x1a9)]||[])?_0x1867f4[_0x15f121(0x1a9)]||[]:[_0x1867f4[_0x15f121(0x1a9)]];_0x2a711e:for(const _0x2285d5 of _0x4f2124){let _0x18ffad=(0x0,core_3[_0x15f121(0x1a2)])(action_1[_0x15f121(0x16b)],_0x2285d5),_0x58cdad=(0x0,core_3[_0x15f121(0x1a2)])(action_1[_0x15f121(0x15d)],_0x2285d5);if(_0x18ffad&&_0x58cdad){let _0x3daf86=_0x18ffad[_0x15f121(0x180)],_0x1ccff6={};if(_0x1867f4[_0x15f121(0x160)]&&(0x0,lodash_1[_0x15f121(0x173)])(_0x18ffad,'module',![])!=_0x1867f4[_0x15f121(0x160)])continue _0x2a711e;else{if(_0x1867f4['module']===![]&&!!(0x0,lodash_1['get'])(_0x18ffad,_0x15f121(0x160),null))continue _0x2a711e;}if(_0x1867f4[_0x15f121(0x180)]&&!_0x3daf86[_0x15f121(0x179)](_0x1867f4[_0x15f121(0x180)]))continue _0x2a711e;_0x3daf86!=='/'?(_0x1ccff6['summary']=(_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad['routerOptions'][_0x15f121(0x16e)])||(/^\//['test'](_0x3daf86)?_0x3daf86[_0x15f121(0x1b8)]('/')[0x1]:_0x3daf86),_0x1ccff6[_0x15f121(0x15a)]=(_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad[_0x15f121(0x17b)][_0x15f121(0x15a)])||_0x1ccff6[_0x15f121(0x170)],_0x1ccff6[_0x15f121(0x167)]=[]):(_0x1ccff6['summary']=(_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad['routerOptions'][_0x15f121(0x16e)])||_0x15f121(0x168),_0x1ccff6[_0x15f121(0x15a)]=(_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad[_0x15f121(0x17b)][_0x15f121(0x15a)])||'',_0x1ccff6['routes']=[]);_0x1867f4[_0x15f121(0x178)]&&(_0x1ccff6[_0x15f121(0x178)]=_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad[_0x15f121(0x178)]);(_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad[_0x15f121(0x188)])&&(_0x1ccff6[_0x15f121(0x180)]=_0x18ffad[_0x15f121(0x188)]);(_0x18ffad===null||_0x18ffad===void 0x0?void 0x0:_0x18ffad[_0x15f121(0x160)])&&(_0x1ccff6['module']=_0x18ffad[_0x15f121(0x160)]);let _0x4aba4d=(0x0,core_3[_0x15f121(0x1a2)])(core_2[_0x15f121(0x1b3)],_0x2285d5)||{};if(typeof _0x58cdad[Symbol['iterator']]==='function')for(let _0x4a2f81 of _0x58cdad){if((_0x1867f4===null||_0x1867f4===void 0x0?void 0x0:_0x1867f4['intercept'])&&!(_0x4a2f81===null||_0x4a2f81===void 0x0?void 0x0:_0x4a2f81['intercept']))continue;let _0x3d090c={};_0x3d090c['method']=_0x4a2f81[_0x15f121(0x194)],_0x3d090c[_0x15f121(0x197)]=(_0x3daf86+_0x4a2f81[_0x15f121(0x1b4)])[_0x15f121(0x196)](/\/{2,}/g,'/'),_0x3d090c[_0x15f121(0x170)]=(_0x4a2f81===null||_0x4a2f81===void 0x0?void 0x0:_0x4a2f81[_0x15f121(0x1bb)])||_0x1ccff6[_0x15f121(0x170)]||_0x15f121(0x168),_0x3d090c[_0x15f121(0x15a)]=(_0x4a2f81===null||_0x4a2f81===void 0x0?void 0x0:_0x4a2f81[_0x15f121(0x15a)])||'',_0x3d090c[_0x15f121(0x19e)]=[];_0x3d090c[_0x15f121(0x197)][_0x15f121(0x165)]('/')&&(_0x3d090c[_0x15f121(0x197)]=_0x3d090c[_0x15f121(0x197)][_0x15f121(0x184)](0x0,_0x3d090c[_0x15f121(0x197)]['length']-0x1));if(!(0x0,lodash_1[_0x15f121(0x179)])(_0x3d090c[_0x15f121(0x197)],_0x15f121(0x199))&&!(0x0,lodash_1[_0x15f121(0x179)])(_0x3d090c[_0x15f121(0x197)],_0x15f121(0x181))&&_0x394b06['indexOf'](_0x3d090c[_0x15f121(0x197)])===-0x1){if(!(_0x1867f4===null||_0x1867f4===void 0x0?void 0x0:_0x1867f4['noreq'])){let _0x222232=(0x0,core_3[_0x15f121(0x17f)])(new _0x2285d5(),_0x4a2f81[_0x15f121(0x1a3)]);for(const _0x107735 in _0x222232){let _0x5d86f4=(_0x2c2926=_0x4aba4d[_0x4a2f81[_0x15f121(0x1a3)]])===null||_0x2c2926===void 0x0?void 0x0:_0x2c2926[_0x15f121(0x1aa)](_0x2c4d24=>_0x2c4d24[_0x15f121(0x18f)]==_0x107735&&_0x2c4d24[_0x15f121(0x19b)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x2c4d24===null||_0x2c4d24===void 0x0?void 0x0:_0x2c4d24['metadata']));if(_0x5d86f4===null||_0x5d86f4===void 0x0?void 0x0:_0x5d86f4[_0x15f121(0x183)]){let _0x90348=convertTypeToString(_0x5d86f4[_0x15f121(0x183)][_0x15f121(0x1a4)]||0x0);if([_0x15f121(0x15f),_0x15f121(0x16a)][_0x15f121(0x1bc)](_0x90348)!=-0x1&&_0x5d86f4[_0x15f121(0x183)][_0x15f121(0x158)]['indexOf'](':')==-0x1&&!_0x3d090c[_0x15f121(0x19e)][_0x15f121(0x1aa)](_0x312d5b=>_0x312d5b[_0x15f121(0x19b)]==_0x5d86f4[_0x15f121(0x183)][_0x15f121(0x158)]))_0x3d090c['request']['push']({'key':_0x5d86f4['metadata'][_0x15f121(0x158)],'title':_0x5d86f4[_0x15f121(0x183)][_0x15f121(0x158)],'type':convertSchemaType(_0x222232[_0x5d86f4[_0x15f121(0x18f)]][_0x15f121(0x1b6)]),'required':![],'default':'','desc':''});else{if(_0x90348==_0x15f121(0x157)){let _0x2d2909=((_0x247c00=_0x5d86f4===null||_0x5d86f4===void 0x0?void 0x0:_0x5d86f4[_0x15f121(0x183)])===null||_0x247c00===void 0x0?void 0x0:_0x247c00[_0x15f121(0x158)])||'file';_0x2d2909[_0x15f121(0x1bc)](':')==-0x1&&!_0x3d090c['request'][_0x15f121(0x1aa)](_0x2c2f7a=>_0x2c2f7a[_0x15f121(0x19b)]==_0x2d2909&&_0x2c2f7a[_0x15f121(0x1a4)]=='file')&&_0x3d090c['request'][_0x15f121(0x187)]({'key':_0x2d2909,'title':_0x15f121(0x16c)+_0x2d2909,'type':_0x15f121(0x157),'required':!![],'default':'','desc':''});}}}else{const _0x46ba82=(0x0,core_3[_0x15f121(0x1ba)])(validator_1[_0x15f121(0x19a)],_0x222232[_0x107735]);_0x46ba82&&_0x3d090c['request'][_0x15f121(0x187)](...getJoiRequest(_0x46ba82));}}}_0x1ccff6[_0x15f121(0x167)][_0x15f121(0x187)](_0x3d090c);}}if(_0x1ccff6[_0x15f121(0x167)][_0x15f121(0x164)]>0x0){let _0x529ac0=_0x802891[_0x3daf86];_0x529ac0?(_0x529ac0[_0x15f121(0x170)]!=_0x1ccff6[_0x15f121(0x170)]&&(_0x529ac0[_0x15f121(0x170)]=_0x529ac0[_0x15f121(0x170)]+','+_0x1ccff6['summary']),_0x529ac0[_0x15f121(0x15a)]!=_0x1ccff6[_0x15f121(0x15a)]&&(_0x529ac0[_0x15f121(0x15a)]=_0x529ac0[_0x15f121(0x15a)]+','+_0x1ccff6[_0x15f121(0x15a)]),_0x529ac0[_0x15f121(0x167)]=_0x529ac0[_0x15f121(0x167)][_0x15f121(0x1af)](_0x1ccff6[_0x15f121(0x167)]),_0x802891[_0x3daf86]=_0x529ac0):_0x802891[_0x3daf86]=_0x1ccff6;}}}return _0x802891;}exports[a8_0x236c27(0x1b1)]=getRoutes;function getJoiRequest(_0x3dd980){const _0x3aca1f=a8_0x236c27,_0x2b17c7=[];for(let _0x3ffd6a in _0x3dd980){const _0x52a3c6={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1ff1f0=typeof _0x3dd980[_0x3ffd6a][_0x3aca1f(0x1a5)]==_0x3aca1f(0x19d)?_0x3dd980[_0x3ffd6a][_0x3aca1f(0x1a5)]():_0x3dd980[_0x3ffd6a];_0x52a3c6['key']=_0x3ffd6a,_0x52a3c6[_0x3aca1f(0x1a4)]=_0x1ff1f0[_0x3aca1f(0x1a4)],_0x52a3c6[_0x3aca1f(0x17e)]=(0x0,lodash_1[_0x3aca1f(0x173)])(_0x1ff1f0,_0x3aca1f(0x18b),_0x3ffd6a),_0x52a3c6[_0x3aca1f(0x168)]=(0x0,lodash_1[_0x3aca1f(0x173)])(_0x1ff1f0,_0x3aca1f(0x1ac),''),_0x52a3c6[_0x3aca1f(0x162)]=(0x0,lodash_1[_0x3aca1f(0x173)])(_0x1ff1f0,_0x3aca1f(0x1a0),'')=='required',_0x52a3c6[_0x3aca1f(0x15a)]=(0x0,lodash_1[_0x3aca1f(0x173)])(_0x1ff1f0,_0x3aca1f(0x15c),'');if(_0x1ff1f0[_0x3aca1f(0x1a4)]==_0x3aca1f(0x163))_0x52a3c6[_0x3aca1f(0x182)]=getJoiRequest(_0x1ff1f0['keys']);else{if(_0x1ff1f0['type']=='array'&&_0x1ff1f0[_0x3aca1f(0x17c)]&&Array['isArray'](_0x1ff1f0[_0x3aca1f(0x17c)])&&_0x1ff1f0['items'][0x0]){}}_0x1ff1f0[_0x3aca1f(0x16f)]&&Array[_0x3aca1f(0x175)](_0x1ff1f0[_0x3aca1f(0x16f)])&&_0x1ff1f0[_0x3aca1f(0x16f)][_0x3aca1f(0x164)]>0x0&&(_0x52a3c6[_0x3aca1f(0x15a)]=_0x3aca1f(0x1ab)+_0x1ff1f0[_0x3aca1f(0x16f)][_0x3aca1f(0x161)](',')+'];'+_0x52a3c6[_0x3aca1f(0x15a)]);if(_0x52a3c6[_0x3aca1f(0x19b)]&&_0x52a3c6[_0x3aca1f(0x1a4)]){const _0x591dc7={};for(const _0x4b56cf of _0x1ff1f0[_0x3aca1f(0x18d)]||[]){if(_0x4b56cf[_0x3aca1f(0x1b6)]===_0x3aca1f(0x1a6)&&_0x4b56cf[_0x3aca1f(0x1ae)])_0x591dc7['min']=_0x4b56cf[_0x3aca1f(0x1ae)][_0x3aca1f(0x186)];else _0x4b56cf[_0x3aca1f(0x1b6)]===_0x3aca1f(0x1b9)&&(_0x591dc7[_0x3aca1f(0x1b9)]=_0x4b56cf[_0x3aca1f(0x1ae)][_0x3aca1f(0x186)]);}_0x52a3c6[_0x3aca1f(0x18d)]=_0x591dc7;}_0x52a3c6['key']&&_0x52a3c6[_0x3aca1f(0x17e)]&&_0x2b17c7['push'](_0x52a3c6);}return _0x2b17c7;}function convertSchemaType(_0x4bd225){const _0x4a6a43=a8_0x236c27;switch(_0x4bd225){case _0x4a6a43(0x159):return _0x4a6a43(0x163);case _0x4a6a43(0x189):return _0x4a6a43(0x171);case _0x4a6a43(0x185):return'number';case _0x4a6a43(0x18a):return _0x4a6a43(0x1a1);case _0x4a6a43(0x15b):return _0x4a6a43(0x157);default:return _0x4a6a43(0x1a1);}}function convertTypeToString(_0x23d598){const _0x7f9273=a8_0x236c27;switch(_0x23d598){case core_1[_0x7f9273(0x19f)][_0x7f9273(0x190)]:return _0x7f9273(0x19c);case core_1[_0x7f9273(0x19f)]['QUERY']:return _0x7f9273(0x15f);case core_1[_0x7f9273(0x19f)][_0x7f9273(0x18e)]:return _0x7f9273(0x1b4);case core_1[_0x7f9273(0x19f)][_0x7f9273(0x15e)]:return _0x7f9273(0x16a);case core_1['RouteParamTypes'][_0x7f9273(0x169)]:case core_1[_0x7f9273(0x19f)][_0x7f9273(0x195)]:case core_1[_0x7f9273(0x19f)][_0x7f9273(0x174)]:return _0x7f9273(0x157);default:return _0x7f9273(0x19c);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x5e8bb0=a9_0x1503;(function(_0x3ef0e6,_0x5ee481){var _0x455a15=a9_0x1503,_0xb7be11=_0x3ef0e6();while(!![]){try{var _0x545a49=-parseInt(_0x455a15(0x1a6))/0x1+-parseInt(_0x455a15(0x1a2))/0x2*(parseInt(_0x455a15(0x185))/0x3)+parseInt(_0x455a15(0x179))/0x4+parseInt(_0x455a15(0x18d))/0x5*(parseInt(_0x455a15(0x1a0))/0x6)+parseInt(_0x455a15(0x167))/0x7+-parseInt(_0x455a15(0x17d))/0x8*(parseInt(_0x455a15(0x18f))/0x9)+parseInt(_0x455a15(0x17a))/0xa*(parseInt(_0x455a15(0x189))/0xb);if(_0x545a49===_0x5ee481)break;else _0xb7be11['push'](_0xb7be11['shift']());}catch(_0x52f5c5){_0xb7be11['push'](_0xb7be11['shift']());}}}(a9_0x1763,0x2c618));var a9_0x2d82ee=(function(){var _0x2c15cc=!![];return function(_0x3d17ef,_0x37856a){var _0x57b9f2=_0x2c15cc?function(){var _0x12be98=a9_0x1503;if(_0x37856a){var _0x58e6eb=_0x37856a[_0x12be98(0x16c)](_0x3d17ef,arguments);return _0x37856a=null,_0x58e6eb;}}:function(){};return _0x2c15cc=![],_0x57b9f2;};}()),a9_0x1a6935=a9_0x2d82ee(this,function(){var _0x3df072=a9_0x1503;return a9_0x1a6935[_0x3df072(0x1a8)]()[_0x3df072(0x182)]('(((.+)+)+)+$')[_0x3df072(0x1a8)]()[_0x3df072(0x19c)](a9_0x1a6935)['search'](_0x3df072(0x17e));});a9_0x1a6935();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a9_0x5e8bb0(0x19b)]?function(_0xc03e62,_0x235361,_0x386906,_0x35de47){var _0x2582e1=a9_0x5e8bb0;if(_0x35de47===undefined)_0x35de47=_0x386906;var _0x22a668=Object[_0x2582e1(0x16a)](_0x235361,_0x386906);(!_0x22a668||(_0x2582e1(0x16e)in _0x22a668?!_0x235361[_0x2582e1(0x18c)]:_0x22a668['writable']||_0x22a668['configurable']))&&(_0x22a668={'enumerable':!![],'get':function(){return _0x235361[_0x386906];}}),Object['defineProperty'](_0xc03e62,_0x35de47,_0x22a668);}:function(_0x570909,_0x18cffd,_0x471e30,_0x59a9ee){if(_0x59a9ee===undefined)_0x59a9ee=_0x471e30;_0x570909[_0x59a9ee]=_0x18cffd[_0x471e30];}),__exportStar=this&&this[a9_0x5e8bb0(0x18b)]||function(_0x17fc53,_0x3e7952){var _0x1361f6=a9_0x5e8bb0;for(var _0x5924af in _0x17fc53)if(_0x5924af!==_0x1361f6(0x187)&&!Object[_0x1361f6(0x191)][_0x1361f6(0x19e)][_0x1361f6(0x1a3)](_0x3e7952,_0x5924af))__createBinding(_0x3e7952,_0x17fc53,_0x5924af);};Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x18c),{'value':!![]}),exports[a9_0x5e8bb0(0x19a)]=exports[a9_0x5e8bb0(0x1a9)]=exports[a9_0x5e8bb0(0x198)]=exports[a9_0x5e8bb0(0x1a1)]=exports[a9_0x5e8bb0(0x184)]=exports[a9_0x5e8bb0(0x173)]=exports[a9_0x5e8bb0(0x195)]=exports[a9_0x5e8bb0(0x1a5)]=exports[a9_0x5e8bb0(0x16f)]=exports[a9_0x5e8bb0(0x16b)]=exports['Headers']=exports['Query']=exports['Param']=exports[a9_0x5e8bb0(0x1a7)]=exports[a9_0x5e8bb0(0x170)]=exports['Files']=exports['File']=exports[a9_0x5e8bb0(0x168)]=exports[a9_0x5e8bb0(0x16d)]=exports[a9_0x5e8bb0(0x17f)]=exports[a9_0x5e8bb0(0x169)]=exports['ApiService']=exports[a9_0x5e8bb0(0x190)]=exports[a9_0x5e8bb0(0x19d)]=exports[a9_0x5e8bb0(0x172)]=exports[a9_0x5e8bb0(0x175)]=exports[a9_0x5e8bb0(0x194)]=exports[a9_0x5e8bb0(0x1a4)]=exports[a9_0x5e8bb0(0x17b)]=exports['Action']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a9_0x5e8bb0(0x19a),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x5e8bb0(0x19f)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a9_0x5e8bb0(0x180));Object[a9_0x5e8bb0(0x183)](exports,'Action',{'enumerable':!![],'get':function(){var _0x206471=a9_0x5e8bb0;return Action_1[_0x206471(0x188)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x17b),{'enumerable':!![],'get':function(){var _0x5aa46c=a9_0x5e8bb0;return ActionApitest_1[_0x5aa46c(0x17b)];}});var Intercept_1=require(a9_0x5e8bb0(0x178));Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x1a4),{'enumerable':!![],'get':function(){var _0xd69ad0=a9_0x5e8bb0;return Intercept_1[_0xd69ad0(0x1a4)];}}),Object['defineProperty'](exports,'IIntercept',{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a9_0x5e8bb0(0x181));Object[a9_0x5e8bb0(0x183)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x2d235d=a9_0x5e8bb0;return getRoutes_1[_0x2d235d(0x175)];}});var ApiError_1=require(a9_0x5e8bb0(0x192));Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x172),{'enumerable':!![],'get':function(){var _0xa9c573=a9_0x5e8bb0;return ApiError_1[_0xa9c573(0x172)];}});var cache_1=require(a9_0x5e8bb0(0x18e));Object[a9_0x5e8bb0(0x183)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x32849c=a9_0x5e8bb0;return cache_1[_0x32849c(0x19d)];}});var event_1=require(a9_0x5e8bb0(0x196));Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x190),{'enumerable':!![],'get':function(){var _0x433f83=a9_0x5e8bb0;return event_1[_0x433f83(0x190)];}});var ApiService_1=require(a9_0x5e8bb0(0x193));Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x197),{'enumerable':!![],'get':function(){var _0x50ade4=a9_0x5e8bb0;return ApiService_1[_0x50ade4(0x197)];}});var ExcelService_1=require(a9_0x5e8bb0(0x171));function a9_0x1503(_0xa6255d,_0x52b47c){var _0x4cd241=a9_0x1763();return a9_0x1503=function(_0x1a6935,_0x2d82ee){_0x1a6935=_0x1a6935-0x167;var _0x1763d4=_0x4cd241[_0x1a6935];return _0x1763d4;},a9_0x1503(_0xa6255d,_0x52b47c);}Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x169),{'enumerable':!![],'get':function(){var _0x2c9f30=a9_0x5e8bb0;return ExcelService_1[_0x2c9f30(0x169)];}});var validator_1=require(a9_0x5e8bb0(0x186));Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x17f),{'enumerable':!![],'get':function(){var _0x5d8475=a9_0x5e8bb0;return validator_1[_0x5d8475(0x17f)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x16d),{'enumerable':!![],'get':function(){var _0x31eec4=a9_0x5e8bb0;return validator_1[_0x31eec4(0x16d)];}});var configuration_1=require('./configuration');function a9_0x1763(){var _0x83fc70=['EventService','prototype','./exception/ApiError','./service/ApiService','IIntercept','Logger','@anncic-api/event','ApiService','Singleton','@midwayjs/core','getAppsConfig','create','constructor','CacheService','hasOwnProperty','./types/common','6GdbtfW','Scope','260718roUCxr','call','Intercept','Config','304652XTjmsT','Body','toString','ScopeEnum','1030575aLmeRc','Configuration','ExcelService','getOwnPropertyDescriptor','Init','apply','ValidatorService','get','App','Fields','./service/ExcelService','ApiError','Provide','Files','getRoutes','Param','File','./decorator/Intercept','409680LvuhLy','10PfvmDk','Apitest','Query','8528cEDVMW','(((.+)+)+)+$','ValidatorError','./decorator/Action','./helper/getRoutes','search','defineProperty','Inject','6OULLwZ','@anncic-api/validator','default','Action','5133326eSZdPW','Headers','__exportStar','__esModule','932395WZlwGB','@anncic-api/cache','1314XjdSsY'];a9_0x1763=function(){return _0x83fc70;};return a9_0x1763();}Object[a9_0x5e8bb0(0x183)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x5e8bb0(0x199));Object[a9_0x5e8bb0(0x183)](exports,'File',{'enumerable':!![],'get':function(){var _0x8932fc=a9_0x5e8bb0;return core_1[_0x8932fc(0x177)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x174),{'enumerable':!![],'get':function(){var _0x5dae9d=a9_0x5e8bb0;return core_1[_0x5dae9d(0x174)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x170),{'enumerable':!![],'get':function(){var _0x34e04a=a9_0x5e8bb0;return core_1[_0x34e04a(0x170)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x1a7),{'enumerable':!![],'get':function(){var _0x32ddb8=a9_0x5e8bb0;return core_1[_0x32ddb8(0x1a7)];}}),Object[a9_0x5e8bb0(0x183)](exports,'Param',{'enumerable':!![],'get':function(){var _0x3fb95d=a9_0x5e8bb0;return core_1[_0x3fb95d(0x176)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x17c),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x5e8bb0(0x183)](exports,'Headers',{'enumerable':!![],'get':function(){var _0xd8d9fc=a9_0x5e8bb0;return core_1[_0xd8d9fc(0x18a)];}}),Object[a9_0x5e8bb0(0x183)](exports,'Init',{'enumerable':!![],'get':function(){var _0x3782d5=a9_0x5e8bb0;return core_1[_0x3782d5(0x16b)];}});var core_2=require(a9_0x5e8bb0(0x199));Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x16f),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,a9_0x5e8bb0(0x1a5),{'enumerable':!![],'get':function(){var _0x3c3805=a9_0x5e8bb0;return core_2[_0x3c3805(0x1a5)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x195),{'enumerable':!![],'get':function(){var _0x43579b=a9_0x5e8bb0;return core_2[_0x43579b(0x195)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x173),{'enumerable':!![],'get':function(){var _0x2114e8=a9_0x5e8bb0;return core_2[_0x2114e8(0x173)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x184),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x5e8bb0(0x183)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x3a1a71=a9_0x5e8bb0;return core_2[_0x3a1a71(0x1a1)];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x198),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a9_0x5e8bb0(0x183)](exports,a9_0x5e8bb0(0x1a9),{'enumerable':!![],'get':function(){var _0x3a7c37=a9_0x5e8bb0;return core_2[_0x3a7c37(0x1a9)];}}),global[a9_0x5e8bb0(0x19a)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x3ed702=a10_0x33a5;(function(_0x30591e,_0x2e4855){var _0x279b54=a10_0x33a5,_0x384f30=_0x30591e();while(!![]){try{var _0x1794e0=parseInt(_0x279b54(0xbb))/0x1+-parseInt(_0x279b54(0x92))/0x2*(parseInt(_0x279b54(0xd1))/0x3)+-parseInt(_0x279b54(0xc7))/0x4+-parseInt(_0x279b54(0x9b))/0x5+parseInt(_0x279b54(0xa5))/0x6+parseInt(_0x279b54(0xb2))/0x7*(-parseInt(_0x279b54(0xba))/0x8)+parseInt(_0x279b54(0xb0))/0x9;if(_0x1794e0===_0x2e4855)break;else _0x384f30['push'](_0x384f30['shift']());}catch(_0x2e08b2){_0x384f30['push'](_0x384f30['shift']());}}}(a10_0x4d3f,0xd6a21));var a10_0x584165=(function(){var _0x2af663=!![];return function(_0xd03d23,_0x23972f){var _0x5297f3=_0x2af663?function(){var _0x370911=a10_0x33a5;if(_0x23972f){var _0x3cf5d3=_0x23972f[_0x370911(0xb1)](_0xd03d23,arguments);return _0x23972f=null,_0x3cf5d3;}}:function(){};return _0x2af663=![],_0x5297f3;};}()),a10_0x56f9f1=a10_0x584165(this,function(){var _0x212636=a10_0x33a5;return a10_0x56f9f1[_0x212636(0x9f)]()[_0x212636(0xa6)](_0x212636(0xc6))[_0x212636(0x9f)]()[_0x212636(0xa3)](a10_0x56f9f1)['search']('(((.+)+)+)+$');});a10_0x56f9f1();function a10_0x33a5(_0x253a6c,_0x37b773){var _0x32b4d1=a10_0x4d3f();return a10_0x33a5=function(_0x56f9f1,_0x584165){_0x56f9f1=_0x56f9f1-0x91;var _0x4d3ff4=_0x32b4d1[_0x56f9f1];return _0x4d3ff4;},a10_0x33a5(_0x253a6c,_0x37b773);}'use strict';var __decorate=this&&this[a10_0x3ed702(0xd3)]||function(_0x43387a,_0x49f5f3,_0x24cc08,_0x1f4e20){var _0x300056=a10_0x3ed702,_0x1bf87f=arguments[_0x300056(0x99)],_0x2849fd=_0x1bf87f<0x3?_0x49f5f3:_0x1f4e20===null?_0x1f4e20=Object[_0x300056(0xca)](_0x49f5f3,_0x24cc08):_0x1f4e20,_0x4101bc;if(typeof Reflect===_0x300056(0xab)&&typeof Reflect[_0x300056(0xc0)]===_0x300056(0xa1))_0x2849fd=Reflect[_0x300056(0xc0)](_0x43387a,_0x49f5f3,_0x24cc08,_0x1f4e20);else{for(var _0x11e267=_0x43387a[_0x300056(0x99)]-0x1;_0x11e267>=0x0;_0x11e267--)if(_0x4101bc=_0x43387a[_0x11e267])_0x2849fd=(_0x1bf87f<0x3?_0x4101bc(_0x2849fd):_0x1bf87f>0x3?_0x4101bc(_0x49f5f3,_0x24cc08,_0x2849fd):_0x4101bc(_0x49f5f3,_0x24cc08))||_0x2849fd;}return _0x1bf87f>0x3&&_0x2849fd&&Object[_0x300056(0xa9)](_0x49f5f3,_0x24cc08,_0x2849fd),_0x2849fd;},__metadata=this&&this['__metadata']||function(_0x5e5e80,_0x2ac2f6){var _0x29ccc4=a10_0x3ed702;if(typeof Reflect==='object'&&typeof Reflect[_0x29ccc4(0xb5)]==='function')return Reflect[_0x29ccc4(0xb5)](_0x5e5e80,_0x2ac2f6);};Object[a10_0x3ed702(0xa9)](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;function a10_0x4d3f(){var _0x3b1f94=['entries','sort','25410600GQuuZK','apply','27643dSSRPM','验证失败','Provide','metadata','signature','Scope','crypto-js','push','232mTWues','1175979thSowx','token','getsign','ApiError','undefined','decorate','HEADERS_SIGNATURE','substring','devices','map','secret=','(((.+)+)+)+$','6114232JJqVwO','anncicapi','TIMEOUT','getOwnPropertyDescriptor','logintime','ScopeEnum','password','TIMEOUT_LOGINTIME','prototype','ApiService','2535723DYQRHY','../exception/ApiError','__decorate','请求超时,请重试或改善网络环境','4MLOpUk','fromEntries','now','config','HEADERS_CHECKCODE','@midwayjs/core','checkcode','length','timeout','5197150ZTUmpG','logintimeout','MD5','secret','toString','device','function','Config','constructor','HEADERS_LACK','7516494cwtXSk','search','abs','HEADERS_DEVICE','defineProperty','Singleton','object','design:type','requesttime'];a10_0x4d3f=function(){return _0x3b1f94;};return a10_0x4d3f();}const crypto_js_1=require(a10_0x3ed702(0xb8)),core_1=require(a10_0x3ed702(0x97)),ApiError_1=require(a10_0x3ed702(0xd2));let ApiService=class ApiService{[a10_0x3ed702(0xcd)](_0x19fc9a){var _0x4584f8=a10_0x3ed702,_0x1fbbdb;return _0x19fc9a?(0x0,crypto_js_1[_0x4584f8(0x9d)])(''+_0x19fc9a+(0x0,crypto_js_1[_0x4584f8(0x9d)])((0x0,crypto_js_1['MD5'])(''+_0x19fc9a)[_0x4584f8(0x9f)]()+(''+((_0x1fbbdb=this[_0x4584f8(0x95)])===null||_0x1fbbdb===void 0x0?void 0x0:_0x1fbbdb[_0x4584f8(0xcd)])))[_0x4584f8(0x9f)]())['toString']():'';}['getcheck'](_0x1e8f86,_0x3dfcfd,_0x27c20e=Date[a10_0x3ed702(0x94)]()){var _0x628a26=a10_0x3ed702;return{'Token':_0x1e8f86,'Logintime':_0x27c20e,'Checkcode':this[_0x628a26(0x98)](_0x1e8f86,_0x3dfcfd,_0x27c20e)};}['getsign'](_0x2bf9e7={}){var _0x18aa42=a10_0x3ed702,_0x4b6335,_0x195c03;const _0xc9401d=[],_0x31a740=Object[_0x18aa42(0x93)](Object[_0x18aa42(0xae)](_0x2bf9e7)[_0x18aa42(0xc4)](_0x2f06f5=>[_0x2f06f5[0x0]['toLowerCase'](),_0x2f06f5[0x1]]));for(let _0x1ff955 of[_0x18aa42(0xa0),_0x18aa42(0xad),'token',_0x18aa42(0xcb),_0x18aa42(0x98)]){if(typeof _0x31a740[_0x1ff955]==_0x18aa42(0xbf))throw new AnnError(ApiError_1[_0x18aa42(0xbe)][_0x18aa42(0xa4)],{'message':_0x18aa42(0xb3)});_0xc9401d[_0x18aa42(0xb9)](_0x1ff955+'='+_0x31a740[_0x1ff955]);}_0x31a740[_0x18aa42(0xad)]&&((_0x4b6335=_0x31a740[_0x18aa42(0xad)])===null||_0x4b6335===void 0x0?void 0x0:_0x4b6335[_0x18aa42(0x99)])==0xa&&(_0x31a740[_0x18aa42(0xad)]=_0x31a740[_0x18aa42(0xad)]*0x3e8);if(this[_0x18aa42(0x95)][_0x18aa42(0x9a)]&&parseInt((''+Date[_0x18aa42(0x94)]())['substring'](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x18aa42(0xa7)](_0x31a740['requesttime']))[_0x18aa42(0xc2)](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this[_0x18aa42(0x95)][_0x18aa42(0x9a)]))throw new AnnError(ApiError_1[_0x18aa42(0xbe)][_0x18aa42(0xc9)],{'message':_0x18aa42(0x91),'requesttime':_0x31a740['requesttime'],'timestamp':Date['now']()});if((((_0x195c03=this[_0x18aa42(0x95)][_0x18aa42(0xc3)][_0x31a740[_0x18aa42(0xa0)]])===null||_0x195c03===void 0x0?void 0x0:_0x195c03['logintimeout'])||0x0)>0x0&&Date['now']()-Math[_0x18aa42(0xa7)](_0x31a740[_0x18aa42(0xcb)])>this['config'][_0x18aa42(0xc3)][_0x31a740[_0x18aa42(0xa0)]][_0x18aa42(0x9c)])throw new AnnError(ApiError_1[_0x18aa42(0xbe)][_0x18aa42(0xce)]);if(!this[_0x18aa42(0x95)][_0x18aa42(0xc3)][_0x31a740[_0x18aa42(0xa0)]]||!this[_0x18aa42(0x95)][_0x18aa42(0xc3)][_0x31a740['device']][_0x18aa42(0x9e)]||!this[_0x18aa42(0x95)][_0x18aa42(0xc3)][_0x31a740[_0x18aa42(0xa0)]][_0x18aa42(0x98)])throw new AnnError(ApiError_1['ApiError'][_0x18aa42(0xa8)]);if(_0x31a740[_0x18aa42(0xbc)]&&_0x31a740['checkcode']!=this[_0x18aa42(0x98)](_0x31a740[_0x18aa42(0xbc)],_0x31a740[_0x18aa42(0xa0)],_0x31a740[_0x18aa42(0xcb)]))throw new AnnError(ApiError_1[_0x18aa42(0xbe)][_0x18aa42(0x96)]);return _0xc9401d[_0x18aa42(0xb9)](_0x18aa42(0xc5)+this[_0x18aa42(0x95)][_0x18aa42(0xc3)][_0x31a740[_0x18aa42(0xa0)]][_0x18aa42(0x9e)]),(0x0,crypto_js_1['MD5'])(_0xc9401d[_0x18aa42(0xaf)]()['join'](''))[_0x18aa42(0x9f)]();}[a10_0x3ed702(0x98)](_0x11bc9b,_0x2c2788,_0x2dc809=Date[a10_0x3ed702(0x94)]()){var _0x3a1fdf=a10_0x3ed702,_0x3cf7a2,_0x34bc25,_0x300179;if(!((_0x3cf7a2=this['config'])===null||_0x3cf7a2===void 0x0?void 0x0:_0x3cf7a2[_0x3a1fdf(0xc3)][_0x2c2788])||!((_0x300179=(_0x34bc25=this[_0x3a1fdf(0x95)])===null||_0x34bc25===void 0x0?void 0x0:_0x34bc25[_0x3a1fdf(0xc3)][_0x2c2788])===null||_0x300179===void 0x0?void 0x0:_0x300179[_0x3a1fdf(0x98)]))throw new AnnError(ApiError_1[_0x3a1fdf(0xbe)][_0x3a1fdf(0xa8)]);return(0x0,crypto_js_1[_0x3a1fdf(0x9d)])(''+_0x11bc9b+(0x0,crypto_js_1[_0x3a1fdf(0x9d)])(''+_0x2dc809+(''+this[_0x3a1fdf(0x95)][_0x3a1fdf(0xc3)][_0x2c2788][_0x3a1fdf(0x98)]))[_0x3a1fdf(0x9f)]())[_0x3a1fdf(0x9f)]();}['checksign'](_0xa3fa77={}){var _0x980637=a10_0x3ed702;const _0x3a8562=Object[_0x980637(0x93)](Object[_0x980637(0xae)](_0xa3fa77)[_0x980637(0xc4)](_0x400579=>[_0x400579[0x0]['toLowerCase'](),_0x400579[0x1]]));if(!(_0x3a8562===null||_0x3a8562===void 0x0?void 0x0:_0x3a8562[_0x980637(0xb6)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x980637(0xb3)});if((_0x3a8562===null||_0x3a8562===void 0x0?void 0x0:_0x3a8562[_0x980637(0xb6)])!=this[_0x980637(0xbd)](_0x3a8562))throw new AnnError(ApiError_1[_0x980637(0xbe)][_0x980637(0xc1)],{'message':_0x980637(0xb3)});return!![];}};__decorate([(0x0,core_1[a10_0x3ed702(0xa2)])(a10_0x3ed702(0xc8)),__metadata(a10_0x3ed702(0xac),Object)],ApiService[a10_0x3ed702(0xcf)],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x3ed702(0xb4)])(),(0x0,core_1[a10_0x3ed702(0xb7)])(core_1[a10_0x3ed702(0xcc)][a10_0x3ed702(0xaa)])],ApiService),exports[a10_0x3ed702(0xd0)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x48d5f5=a11_0x2233;(function(_0x1767fc,_0x3a0780){const _0x276033=a11_0x2233,_0x33c5f6=_0x1767fc();while(!![]){try{const _0x59f2db=parseInt(_0x276033(0x1c7))/0x1+parseInt(_0x276033(0x1d3))/0x2*(-parseInt(_0x276033(0x1e0))/0x3)+-parseInt(_0x276033(0x1cc))/0x4+-parseInt(_0x276033(0x20f))/0x5*(-parseInt(_0x276033(0x200))/0x6)+parseInt(_0x276033(0x1e4))/0x7+parseInt(_0x276033(0x1e2))/0x8+-parseInt(_0x276033(0x216))/0x9;if(_0x59f2db===_0x3a0780)break;else _0x33c5f6['push'](_0x33c5f6['shift']());}catch(_0x3c560c){_0x33c5f6['push'](_0x33c5f6['shift']());}}}(a11_0x218d,0x3b385));const a11_0x3ccd72=(function(){let _0x483792=!![];return function(_0x2d0c84,_0x3a87df){const _0x179c8f=_0x483792?function(){const _0x48c461=a11_0x2233;if(_0x3a87df){const _0x1eb6a2=_0x3a87df[_0x48c461(0x1cf)](_0x2d0c84,arguments);return _0x3a87df=null,_0x1eb6a2;}}:function(){};return _0x483792=![],_0x179c8f;};}()),a11_0x307f60=a11_0x3ccd72(this,function(){const _0x375d33=a11_0x2233;return a11_0x307f60['toString']()[_0x375d33(0x1ec)]('(((.+)+)+)+$')[_0x375d33(0x1fc)]()[_0x375d33(0x1e3)](a11_0x307f60)[_0x375d33(0x1ec)](_0x375d33(0x1d7));});a11_0x307f60();function a11_0x218d(){const _0x3f2953=['/index.html','getRoutes','toString','__decorate','decorate','__metadata','48idnYnc','module','__param','apiteststatic','application/javascript;\x20charset=utf-8','Environment','design:type','Inject','ScopeEnum','metadata','Singleton','__apiList__','Controller','/apiteststatic/*','utf-8','261920mrPtrg','ApitestStaticController','apitestmodule','public,\x20max-age=604800','MidwayEnvironmentService','design:paramtypes','anncicapi','2445939yyIktc','config','ApitestService','getOwnPropertyDescriptor','118111qNjeXL','apitesthtml','ctx','route','routes','1780744aNHQqM','Param','prototype','apply','path','substring','.css','2aBlyOZ','method','Provide','Config','(((.+)+)+)+$','stringify','@midwayjs/core','request','replace','Get','join','apidoc','readFileSync','123039LjYPfY','.js','3346320FhAKEn','constructor','315434fBVIxq','set','defineProperty','design:returntype','url','description','extname','summary','search','length','isDevelopmentEnvironment','apitest','push','/apitest-:module','__esModule','filepath','existsSync','Scope','function','content-type','__devices__','../../public/index.html'];a11_0x218d=function(){return _0x3f2953;};return a11_0x218d();}'use strict';var __decorate=this&&this[a11_0x48d5f5(0x1fd)]||function(_0x4f46d6,_0x243c53,_0x5d022a,_0x2427fd){const _0x2a03e5=a11_0x48d5f5;var _0x30a59a=arguments[_0x2a03e5(0x1ed)],_0x93598=_0x30a59a<0x3?_0x243c53:_0x2427fd===null?_0x2427fd=Object[_0x2a03e5(0x1c6)](_0x243c53,_0x5d022a):_0x2427fd,_0x532759;if(typeof Reflect==='object'&&typeof Reflect[_0x2a03e5(0x1fe)]==='function')_0x93598=Reflect[_0x2a03e5(0x1fe)](_0x4f46d6,_0x243c53,_0x5d022a,_0x2427fd);else{for(var _0xaf8062=_0x4f46d6[_0x2a03e5(0x1ed)]-0x1;_0xaf8062>=0x0;_0xaf8062--)if(_0x532759=_0x4f46d6[_0xaf8062])_0x93598=(_0x30a59a<0x3?_0x532759(_0x93598):_0x30a59a>0x3?_0x532759(_0x243c53,_0x5d022a,_0x93598):_0x532759(_0x243c53,_0x5d022a))||_0x93598;}return _0x30a59a>0x3&&_0x93598&&Object['defineProperty'](_0x243c53,_0x5d022a,_0x93598),_0x93598;},__metadata=this&&this[a11_0x48d5f5(0x1ff)]||function(_0x335a5a,_0x36e9c0){const _0x59112f=a11_0x48d5f5;if(typeof Reflect==='object'&&typeof Reflect[_0x59112f(0x209)]===_0x59112f(0x1f6))return Reflect['metadata'](_0x335a5a,_0x36e9c0);},__param=this&&this[a11_0x48d5f5(0x202)]||function(_0x5039c6,_0x1c73f4){return function(_0x4a2c2a,_0x2500f5){_0x1c73f4(_0x4a2c2a,_0x2500f5,_0x5039c6);};};function a11_0x2233(_0x202ad6,_0x57550f){const _0x161426=a11_0x218d();return a11_0x2233=function(_0x307f60,_0x3ccd72){_0x307f60=_0x307f60-0x1c4;let _0x218dcf=_0x161426[_0x307f60];return _0x218dcf;},a11_0x2233(_0x202ad6,_0x57550f);}Object[a11_0x48d5f5(0x1e6)](exports,a11_0x48d5f5(0x1f2),{'value':!![]}),exports[a11_0x48d5f5(0x210)]=exports[a11_0x48d5f5(0x1c5)]=void 0x0;const path_1=require(a11_0x48d5f5(0x1d0)),fs_1=require('fs'),core_1=require(a11_0x48d5f5(0x1d9)),core_2=require('@midwayjs/core'),core_3=require(a11_0x48d5f5(0x1d9)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a11_0x48d5f5(0x1de)](_0x17b6b0){const _0x4c1c29=a11_0x48d5f5,_0x1db818=(0x0,getRoutes_1[_0x4c1c29(0x1fb)])(_0x17b6b0),_0x269cde=[];for(let _0x31ef57 in _0x1db818){for(let _0x262a4a in _0x1db818[_0x31ef57][_0x4c1c29(0x1cb)]){let _0x31a889=_0x1db818[_0x31ef57][_0x4c1c29(0x1cb)][_0x262a4a],_0x42e46d=[];for(let _0x467802 in _0x31a889[_0x4c1c29(0x1da)]){_0x42e46d['push'](_0x31a889[_0x4c1c29(0x1da)][_0x467802]);}_0x269cde[_0x4c1c29(0x1f0)]({'title':_0x1db818[_0x31ef57][_0x4c1c29(0x1eb)]+':'+_0x31a889[_0x4c1c29(0x1eb)],'prefix':_0x1db818[_0x31ef57]['prefix'],'router':_0x31a889[_0x4c1c29(0x1ca)],'method':_0x31a889[_0x4c1c29(0x1d4)],'describe':_0x31a889[_0x4c1c29(0x1e9)]||'','filepath':_0x1db818[_0x31ef57][_0x4c1c29(0x1f3)]||'','request':_0x42e46d});}}const _0xfef960=(0x0,path_1[_0x4c1c29(0x1dd)])(__dirname,_0x4c1c29(0x1f9));return(0x0,fs_1[_0x4c1c29(0x1df)])(_0xfef960,{'encoding':'utf-8'})[_0x4c1c29(0x1db)](/__res__/g,'/apiteststatic/')[_0x4c1c29(0x1db)](_0x4c1c29(0x20b),JSON[_0x4c1c29(0x1d8)](_0x269cde))[_0x4c1c29(0x1db)](_0x4c1c29(0x1f8),JSON['stringify'](this[_0x4c1c29(0x1c4)]['devices']));}};__decorate([(0x0,core_3[a11_0x48d5f5(0x1d6)])(a11_0x48d5f5(0x215)),__metadata(a11_0x48d5f5(0x206),Object)],ApitestService['prototype'],a11_0x48d5f5(0x1c4),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x48d5f5(0x1d5)])(a11_0x48d5f5(0x1ef)),(0x0,core_3[a11_0x48d5f5(0x1f5)])(core_3['ScopeEnum'][a11_0x48d5f5(0x20a)])],ApitestService),exports[a11_0x48d5f5(0x1c5)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x48d5f5(0x1c8)](){const _0x3c00d6=a11_0x48d5f5;if(this[_0x3c00d6(0x1ef)]){const _0x6a0162={'module':![]};return this['Environment'][_0x3c00d6(0x1ee)]()&&(_0x6a0162[_0x3c00d6(0x1f3)]=!![]),await this['ApitestService'][_0x3c00d6(0x1de)](_0x6a0162);}return'';}async[a11_0x48d5f5(0x211)](_0x550870){const _0x1725e2=a11_0x48d5f5;if(this[_0x1725e2(0x1ef)]){const _0x37302f={'module':_0x550870};return this[_0x1725e2(0x205)]['isDevelopmentEnvironment']()&&(_0x37302f['filepath']=!![]),await this[_0x1725e2(0x1c5)][_0x1725e2(0x1de)](_0x37302f);}return'';}async[a11_0x48d5f5(0x203)](){const _0x2ec6ca=a11_0x48d5f5;if((0x0,path_1[_0x2ec6ca(0x1ea)])(this[_0x2ec6ca(0x1c9)]['request']['url'])){var _0x407c31=(0x0,path_1[_0x2ec6ca(0x1dd)])(__dirname,'../../public/'+this['ctx']['request']['url'][_0x2ec6ca(0x1db)]('/apiteststatic/','/'));if(_0x407c31[_0x2ec6ca(0x1d1)](_0x407c31[_0x2ec6ca(0x1ed)]-0xb)!=_0x2ec6ca(0x1fa)){this[_0x2ec6ca(0x1c9)][_0x2ec6ca(0x1e5)]('cache-control',_0x2ec6ca(0x212));if((0x0,path_1[_0x2ec6ca(0x1ea)])(this[_0x2ec6ca(0x1c9)][_0x2ec6ca(0x1da)][_0x2ec6ca(0x1e8)])==_0x2ec6ca(0x1e1))this['ctx'][_0x2ec6ca(0x1e5)](_0x2ec6ca(0x1f7),_0x2ec6ca(0x204));else(0x0,path_1[_0x2ec6ca(0x1ea)])(this['ctx'][_0x2ec6ca(0x1da)][_0x2ec6ca(0x1e8)])==_0x2ec6ca(0x1d2)&&this[_0x2ec6ca(0x1c9)][_0x2ec6ca(0x1e5)](_0x2ec6ca(0x1f7),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x2ec6ca(0x1f4)])(_0x407c31)&&(0x0,fs_1[_0x2ec6ca(0x1df)])(_0x407c31,{'encoding':_0x2ec6ca(0x20e)});}}return'';}};__decorate([(0x0,core_3[a11_0x48d5f5(0x207)])(),__metadata(a11_0x48d5f5(0x206),Object)],ApitestStaticController['prototype'],a11_0x48d5f5(0x1c9),void 0x0),__decorate([(0x0,core_3[a11_0x48d5f5(0x207)])(),__metadata('design:type',core_1[a11_0x48d5f5(0x213)])],ApitestStaticController[a11_0x48d5f5(0x1ce)],a11_0x48d5f5(0x205),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController['prototype'],a11_0x48d5f5(0x1c5),void 0x0),__decorate([(0x0,core_3[a11_0x48d5f5(0x1d6)])(a11_0x48d5f5(0x1ef)),__metadata(a11_0x48d5f5(0x206),Boolean)],ApitestStaticController[a11_0x48d5f5(0x1ce)],'apitest',void 0x0),__decorate([(0x0,core_3[a11_0x48d5f5(0x1d6)])('anncicapi'),__metadata(a11_0x48d5f5(0x206),Object)],ApitestStaticController[a11_0x48d5f5(0x1ce)],'config',void 0x0),__decorate([(0x0,core_2['Get'])('/apitest'),__metadata(a11_0x48d5f5(0x206),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x48d5f5(0x1e7),Promise)],ApitestStaticController['prototype'],a11_0x48d5f5(0x1c8),null),__decorate([(0x0,core_2['Get'])(a11_0x48d5f5(0x1f1)),__param(0x0,(0x0,core_2[a11_0x48d5f5(0x1cd)])(a11_0x48d5f5(0x201))),__metadata(a11_0x48d5f5(0x206),Function),__metadata(a11_0x48d5f5(0x214),[String]),__metadata(a11_0x48d5f5(0x1e7),Promise)],ApitestStaticController[a11_0x48d5f5(0x1ce)],a11_0x48d5f5(0x211),null),__decorate([(0x0,core_2[a11_0x48d5f5(0x1dc)])(a11_0x48d5f5(0x20d)),__metadata(a11_0x48d5f5(0x206),Function),__metadata(a11_0x48d5f5(0x214),[]),__metadata(a11_0x48d5f5(0x1e7),Promise)],ApitestStaticController[a11_0x48d5f5(0x1ce)],a11_0x48d5f5(0x203),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x48d5f5(0x20c)])('/'),(0x0,core_3['Scope'])(core_3[a11_0x48d5f5(0x208)]['Request'])],ApitestStaticController),exports[a11_0x48d5f5(0x210)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x2d88e9=a12_0x2806;function a12_0x2806(_0x15124b,_0x561261){const _0x190c59=a12_0x2427();return a12_0x2806=function(_0x6d97da,_0x7b08ed){_0x6d97da=_0x6d97da-0x15a;let _0x24277b=_0x190c59[_0x6d97da];return _0x24277b;},a12_0x2806(_0x15124b,_0x561261);}(function(_0x7b8e7a,_0x29533d){const _0xcedcc1=a12_0x2806,_0x1836b8=_0x7b8e7a();while(!![]){try{const _0x152107=parseInt(_0xcedcc1(0x176))/0x1+-parseInt(_0xcedcc1(0x168))/0x2*(parseInt(_0xcedcc1(0x199))/0x3)+parseInt(_0xcedcc1(0x16b))/0x4+-parseInt(_0xcedcc1(0x15b))/0x5+-parseInt(_0xcedcc1(0x189))/0x6+parseInt(_0xcedcc1(0x1a6))/0x7+parseInt(_0xcedcc1(0x18a))/0x8;if(_0x152107===_0x29533d)break;else _0x1836b8['push'](_0x1836b8['shift']());}catch(_0x57754b){_0x1836b8['push'](_0x1836b8['shift']());}}}(a12_0x2427,0x26a82));const a12_0x7b08ed=(function(){let _0x34bbd8=!![];return function(_0x324601,_0x47e8f4){const _0x36e1d1=_0x34bbd8?function(){if(_0x47e8f4){const _0x24a93a=_0x47e8f4['apply'](_0x324601,arguments);return _0x47e8f4=null,_0x24a93a;}}:function(){};return _0x34bbd8=![],_0x36e1d1;};}()),a12_0x6d97da=a12_0x7b08ed(this,function(){const _0x59b864=a12_0x2806;return a12_0x6d97da[_0x59b864(0x191)]()[_0x59b864(0x18f)](_0x59b864(0x173))['toString']()[_0x59b864(0x160)](a12_0x6d97da)[_0x59b864(0x18f)](_0x59b864(0x173));});function a12_0x2427(){const _0x4ccb58=['exceljs','model','constructor','getAppDir','function','replace','object','__esModule','value','app','451630XSzRkK','instance','parse','316164VdqbaV','frozen','koa-send','decorate','App','getRow','length','\x20is\x20read\x20fail','(((.+)+)+)+$','key','Workbook','207081cnwEky','get','Singleton','@midwayjs/core','Provide','isNumber','getOwnPropertyDescriptor','eachCell','ExcelService','worksheets','findRows','startsWith','xlsx','filter','existsSync','stream','writeFile','prototype','cellCount','950682kpuGfX','895704yavafr','getWorksheet','__decorate','endsWith','set','search','metadata','toString','download','values','onWrite','__metadata','export','Api\x20Excel\x20Error:\x20','Sheet\x201','3bDrokM','log','/public/xlsx/','onRead','./ExcelStream','getCell','push','handler','defineProperty','ExcelStream','xls','Scope','ScopeEnum','1786120cjPHHE','readFile','553225NGVIya','header','col'];a12_0x2427=function(){return _0x4ccb58;};return a12_0x2427();}a12_0x6d97da();'use strict';var __decorate=this&&this[a12_0x2d88e9(0x18c)]||function(_0x3223d3,_0x3a6297,_0x516f8a,_0x3c3d55){const _0x4f9885=a12_0x2d88e9;var _0x5e7acb=arguments[_0x4f9885(0x171)],_0x11917b=_0x5e7acb<0x3?_0x3a6297:_0x3c3d55===null?_0x3c3d55=Object[_0x4f9885(0x17c)](_0x3a6297,_0x516f8a):_0x3c3d55,_0x5953db;if(typeof Reflect==='object'&&typeof Reflect[_0x4f9885(0x16e)]===_0x4f9885(0x162))_0x11917b=Reflect[_0x4f9885(0x16e)](_0x3223d3,_0x3a6297,_0x516f8a,_0x3c3d55);else{for(var _0x18143d=_0x3223d3[_0x4f9885(0x171)]-0x1;_0x18143d>=0x0;_0x18143d--)if(_0x5953db=_0x3223d3[_0x18143d])_0x11917b=(_0x5e7acb<0x3?_0x5953db(_0x11917b):_0x5e7acb>0x3?_0x5953db(_0x3a6297,_0x516f8a,_0x11917b):_0x5953db(_0x3a6297,_0x516f8a))||_0x11917b;}return _0x5e7acb>0x3&&_0x11917b&&Object[_0x4f9885(0x1a1)](_0x3a6297,_0x516f8a,_0x11917b),_0x11917b;},__metadata=this&&this[a12_0x2d88e9(0x195)]||function(_0x492461,_0x4bccbc){const _0xb90c5f=a12_0x2d88e9;if(typeof Reflect===_0xb90c5f(0x164)&&typeof Reflect[_0xb90c5f(0x190)]===_0xb90c5f(0x162))return Reflect[_0xb90c5f(0x190)](_0x492461,_0x4bccbc);};Object[a12_0x2d88e9(0x1a1)](exports,a12_0x2d88e9(0x165),{'value':!![]}),exports[a12_0x2d88e9(0x17e)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x2d88e9(0x15e)),koasend=require(a12_0x2d88e9(0x16d)),core_1=require(a12_0x2d88e9(0x179)),ExcelStream_1=require(a12_0x2d88e9(0x19d));let ExcelService=class ExcelService{async[a12_0x2d88e9(0x16a)](_0x15359b,_0x4d099e,_0x501aa9=[0x0]){const _0x3eabf7=a12_0x2d88e9;var _0x4fc27d,_0x35d0d9;const _0x446bd1=new exceljs[(_0x3eabf7(0x175))](),_0x561ef4=[];let _0x29de31=_0x15359b[_0x3eabf7(0x163)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x29de31===null||_0x29de31===void 0x0?void 0x0:_0x29de31[_0x3eabf7(0x181)]('/'))&&(_0x29de31=this['app'][_0x3eabf7(0x161)]()+'/'+_0x29de31);try{await _0x446bd1[_0x3eabf7(0x182)][_0x3eabf7(0x15a)](_0x29de31);}catch(_0xb9b641){return console[_0x3eabf7(0x19a)](_0x3eabf7(0x197)+_0x29de31+_0x3eabf7(0x172)),_0x561ef4;}for(const _0x460364 of _0x501aa9){const _0x3c8001=lodash[_0x3eabf7(0x17b)](_0x460364)?((_0x4fc27d=_0x446bd1[_0x3eabf7(0x17f)])===null||_0x4fc27d===void 0x0?void 0x0:_0x4fc27d[_0x460364])||undefined:_0x446bd1[_0x3eabf7(0x18b)](_0x460364);if(_0x3c8001){var _0x4e99b5=0x1;const _0x35b5c4=_0x3c8001[_0x3eabf7(0x170)](0x1),_0x255d6b=await new Promise(_0x4ebae3=>{const _0x8bb8bc=_0x3eabf7,_0x475f87={};_0x35b5c4[_0x8bb8bc(0x17d)]((_0x5c235a,_0x3d5588)=>{const _0x45a975=_0x8bb8bc;for(const _0x4b09ba of _0x4d099e){if(_0x5c235a[_0x45a975(0x166)]==_0x4b09ba['header'])_0x4e99b5=0x2,_0x475f87[_0x4b09ba[_0x45a975(0x174)]]={'header':_0x5c235a[_0x45a975(0x15d)],'handler':(_0x4b09ba===null||_0x4b09ba===void 0x0?void 0x0:_0x4b09ba[_0x45a975(0x19c)])||(_0x4b09ba===null||_0x4b09ba===void 0x0?void 0x0:_0x4b09ba[_0x45a975(0x1a0)])};else{if(!_0x475f87[_0x4b09ba[_0x45a975(0x174)]])try{const _0x10ffbb=_0x35b5c4&&_0x35b5c4['getCell'](_0x4b09ba[_0x45a975(0x15c)]);_0x10ffbb&&(_0x475f87[_0x4b09ba[_0x45a975(0x174)]]={'header':_0x10ffbb[_0x45a975(0x15d)],'handler':(_0x4b09ba===null||_0x4b09ba===void 0x0?void 0x0:_0x4b09ba[_0x45a975(0x19c)])||(_0x4b09ba===null||_0x4b09ba===void 0x0?void 0x0:_0x4b09ba['handler'])});}catch{}}}_0x35b5c4[_0x45a975(0x188)]==_0x3d5588&&_0x4ebae3(_0x475f87);});});_0x3103d0:for(const _0x1e1bbc of _0x3c8001[_0x3eabf7(0x180)](_0x4e99b5,_0x3c8001['rowCount'])){if(typeof(_0x1e1bbc===null||_0x1e1bbc===void 0x0?void 0x0:_0x1e1bbc['getCell'])!='function')continue _0x3103d0;const _0xb72406={};_0x3505f1:for(const _0x410a22 in _0x255d6b){if(_0x255d6b[_0x410a22][_0x3eabf7(0x15c)]){const _0x168f0b=_0x1e1bbc[_0x3eabf7(0x19e)](_0x255d6b[_0x410a22][_0x3eabf7(0x15c)]);if(!_0x168f0b)continue _0x3505f1;try{_0x168f0b[_0x3eabf7(0x191)]();}catch(_0x485431){_0x168f0b[_0x3eabf7(0x191)]=()=>{const _0x54a991=_0x3eabf7;var _0x1feed1;return''+(((_0x1feed1=_0x168f0b===null||_0x168f0b===void 0x0?void 0x0:_0x168f0b['model'])===null||_0x1feed1===void 0x0?void 0x0:_0x1feed1[_0x54a991(0x166)])||'');};}typeof((_0x35d0d9=_0x255d6b[_0x410a22])===null||_0x35d0d9===void 0x0?void 0x0:_0x35d0d9['handler'])==_0x3eabf7(0x162)?_0xb72406[_0x410a22]=await _0x255d6b[_0x410a22]['handler'](lodash[_0x3eabf7(0x18e)]({},_0x410a22,(_0x168f0b===null||_0x168f0b===void 0x0?void 0x0:_0x168f0b[_0x3eabf7(0x191)]())||''),_0x168f0b[_0x3eabf7(0x15f)]):_0xb72406[_0x410a22]=(_0x168f0b===null||_0x168f0b===void 0x0?void 0x0:_0x168f0b[_0x3eabf7(0x191)]())||'';}}Object['keys'](_0xb72406)[_0x3eabf7(0x171)]>0x0&&Object[_0x3eabf7(0x193)](_0xb72406)[_0x3eabf7(0x183)](_0x204f3a=>_0x204f3a!='')['length']>0x0&&_0x561ef4[_0x3eabf7(0x19f)](_0xb72406);}}}return _0x561ef4;}async[a12_0x2d88e9(0x196)](_0x1e8b52,_0x138f93,_0x455e05,_0x64e709,_0x353b94){const _0x8db3d4=a12_0x2d88e9;var _0x5688dd,_0x4f1731,_0x903233;const _0x3b24a2=new exceljs['Workbook'](),_0x3fd30c={},_0x24b4e7=[],_0x382395=_0x3b24a2['addWorksheet'](_0x8db3d4(0x198),{'views':[{'state':_0x8db3d4(0x16c),'ySplit':0x1}]});for(const _0x42b111 in _0x138f93){_0x3fd30c[_0x138f93[_0x42b111][_0x8db3d4(0x174)]]=_0x138f93[_0x42b111][_0x8db3d4(0x15c)],_0x24b4e7[_0x8db3d4(0x19f)]({'header':_0x138f93[_0x42b111]['header'],'key':(_0x5688dd=_0x138f93[_0x42b111])===null||_0x5688dd===void 0x0?void 0x0:_0x5688dd[_0x8db3d4(0x174)]['replace'](/\./g,'_')});}_0x382395['columns']=_0x24b4e7;for(const _0x260e9c in _0x455e05){const _0x50ad12=_0x455e05[_0x260e9c],_0xcd79db=_0x382395['addRow']({});for(let _0x5bbe64 in _0x138f93){const _0x4c19be=_0x138f93[_0x5bbe64][_0x8db3d4(0x174)][_0x8db3d4(0x163)](/\./g,'_'),_0x56c73a=_0x382395['getColumn'](_0x4c19be),_0x455963=_0xcd79db===null||_0xcd79db===void 0x0?void 0x0:_0xcd79db[_0x8db3d4(0x19e)](_0x4c19be);if(typeof((_0x4f1731=_0x138f93[_0x5bbe64])===null||_0x4f1731===void 0x0?void 0x0:_0x4f1731[_0x8db3d4(0x194)])==_0x8db3d4(0x162))_0x455963['value']=await _0x138f93[_0x5bbe64][_0x8db3d4(0x194)](_0x50ad12,{'row':_0xcd79db,'col':_0x56c73a,'cell':_0x455963,'sheet':_0x382395})||'';else typeof((_0x903233=_0x138f93[_0x5bbe64])===null||_0x903233===void 0x0?void 0x0:_0x903233[_0x8db3d4(0x1a0)])==_0x8db3d4(0x162)?_0x455963[_0x8db3d4(0x166)]=await _0x138f93[_0x5bbe64]['handler'](_0x50ad12,{'row':_0xcd79db,'col':_0x56c73a,'cell':_0x455963,'sheet':_0x382395})||'':_0x455963['value']=lodash[_0x8db3d4(0x177)](_0x50ad12,_0x138f93[_0x5bbe64][_0x8db3d4(0x174)],'');}}typeof _0x353b94==_0x8db3d4(0x162)&&await _0x353b94({'workbook':_0x3b24a2,'worksheet':_0x382395});let _0xa943dc='';const _0x449fff=_0x1e8b52+'.xlsx';if(_0x64e709&&_0x64e709[_0x8db3d4(0x181)]('/'))_0xa943dc=''+_0x64e709;else _0x64e709&&!_0x64e709[_0x8db3d4(0x181)]('/')&&!_0x64e709['startsWith']('\x5c')?_0xa943dc=this[_0x8db3d4(0x167)][_0x8db3d4(0x161)]()+'/'+_0x64e709:_0xa943dc=this[_0x8db3d4(0x167)][_0x8db3d4(0x161)]()+_0x8db3d4(0x19b)+dayjs()['format']('YYYY/MM/DD');return(_0xa943dc[_0x8db3d4(0x18d)]('/')||_0xa943dc[_0x8db3d4(0x18d)]('\x5c'))&&(_0xa943dc=_0xa943dc['substring'](0x0,_0xa943dc['length']-0x1)),_0xa943dc=_0xa943dc[_0x8db3d4(0x163)](/(\\|\/)/g,'/')[_0x8db3d4(0x163)](/\/{2,}/g,'/'),!fs[_0x8db3d4(0x184)](_0xa943dc)&&fs['mkdirSync'](_0xa943dc,{'recursive':!![]}),await _0x3b24a2[_0x8db3d4(0x182)][_0x8db3d4(0x186)]((_0xa943dc+'/'+_0x449fff)[_0x8db3d4(0x163)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x449fff,'filepath':(_0xa943dc['substring']((''+this[_0x8db3d4(0x167)][_0x8db3d4(0x161)]())['length'])+'/'+_0x449fff)[_0x8db3d4(0x163)](/(\\|\/)/g,'/')[_0x8db3d4(0x163)](/\/{2,}/g,'/')};}async[a12_0x2d88e9(0x185)](_0xafb7d9,_0x26bddd={'suffix':[a12_0x2d88e9(0x1a3),a12_0x2d88e9(0x182)]}){const _0x175804=a12_0x2d88e9;return await ExcelStream_1[_0x175804(0x1a2)][_0x175804(0x169)](_0xafb7d9,_0x26bddd);}async[a12_0x2d88e9(0x192)](_0x4c1347,_0x549e4e){return await koasend(_0x4c1347,''+_0x549e4e);}};__decorate([(0x0,core_1[a12_0x2d88e9(0x16f)])(),__metadata('design:type',Object)],ExcelService[a12_0x2d88e9(0x187)],a12_0x2d88e9(0x167),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x2d88e9(0x17a)])(),(0x0,core_1[a12_0x2d88e9(0x1a4)])(core_1[a12_0x2d88e9(0x1a5)][a12_0x2d88e9(0x178)])],ExcelService),exports[a12_0x2d88e9(0x17e)]=ExcelService;
|
|
1
|
+
function a12_0x18f1(){const _0x5e51a9=['511alRgCk','\x20is\x20read\x20fail','substring','Api\x20Excel\x20Error:\x20','rowCount','writeFile','filter','(((.+)+)+)+$','addRow','design:type','Scope','138ugELJE','getColumn','9354wYZurY','ScopeEnum','stream','YYYY/MM/DD','__metadata','136961VkLsWJ','getWorksheet','xlsx','export','header','toString','50hMsKwA','instance','7929OHFwoa','52455BWLIeV','columns','startsWith','app','metadata','key','App','readFile','ExcelStream','replace','decorate','4797BDjVnK','getCell','__esModule','Singleton','exceljs','frozen','search','function','findRows','getAppDir','keys','ExcelService','value','onRead','mkdirSync','Sheet\x201','prototype','Workbook','format','set','parse','handler','addWorksheet','isNumber','defineProperty','model','/public/xlsx/','koa-send','constructor','length','42132oqAhve','values','endsWith','eachCell','xls','onWrite','37404JJtozC','cellCount','376aHEGSq','2216adRxxd','object','__decorate','7206yuOwIv','./ExcelStream'];a12_0x18f1=function(){return _0x5e51a9;};return a12_0x18f1();}const a12_0x1970e4=a12_0x5b38;(function(_0x2f7596,_0x5aebb2){const _0x3b0efa=a12_0x5b38,_0x16d8ee=_0x2f7596();while(!![]){try{const _0x2150de=parseInt(_0x3b0efa(0x148))/0x1+parseInt(_0x3b0efa(0xfc))/0x2*(parseInt(_0x3b0efa(0x109))/0x3)+-parseInt(_0x3b0efa(0x14a))/0x4*(parseInt(_0x3b0efa(0x119))/0x5)+parseInt(_0x3b0efa(0x10b))/0x6*(parseInt(_0x3b0efa(0xfe))/0x7)+parseInt(_0x3b0efa(0xf9))/0x8*(parseInt(_0x3b0efa(0x118))/0x9)+-parseInt(_0x3b0efa(0x116))/0xa*(parseInt(_0x3b0efa(0x110))/0xb)+-parseInt(_0x3b0efa(0x142))/0xc*(-parseInt(_0x3b0efa(0x124))/0xd);if(_0x2150de===_0x5aebb2)break;else _0x16d8ee['push'](_0x16d8ee['shift']());}catch(_0x475af3){_0x16d8ee['push'](_0x16d8ee['shift']());}}}(a12_0x18f1,0xc54c8));const a12_0x3fc38c=(function(){let _0x194597=!![];return function(_0xf41973,_0x3dcead){const _0x4cc7d9=_0x194597?function(){if(_0x3dcead){const _0x18301f=_0x3dcead['apply'](_0xf41973,arguments);return _0x3dcead=null,_0x18301f;}}:function(){};return _0x194597=![],_0x4cc7d9;};}()),a12_0x44abef=a12_0x3fc38c(this,function(){const _0x45dbcb=a12_0x5b38;return a12_0x44abef[_0x45dbcb(0x115)]()[_0x45dbcb(0x12a)](_0x45dbcb(0x105))['toString']()[_0x45dbcb(0x140)](a12_0x44abef)[_0x45dbcb(0x12a)]('(((.+)+)+)+$');});a12_0x44abef();'use strict';var __decorate=this&&this[a12_0x1970e4(0xfb)]||function(_0x3d7c2a,_0x1e2d0e,_0x352d40,_0x3279ef){const _0x5d3259=a12_0x1970e4;var _0x33647f=arguments['length'],_0x166cc7=_0x33647f<0x3?_0x1e2d0e:_0x3279ef===null?_0x3279ef=Object['getOwnPropertyDescriptor'](_0x1e2d0e,_0x352d40):_0x3279ef,_0x4e3e20;if(typeof Reflect===_0x5d3259(0xfa)&&typeof Reflect[_0x5d3259(0x123)]==='function')_0x166cc7=Reflect[_0x5d3259(0x123)](_0x3d7c2a,_0x1e2d0e,_0x352d40,_0x3279ef);else{for(var _0x33e7dc=_0x3d7c2a[_0x5d3259(0x141)]-0x1;_0x33e7dc>=0x0;_0x33e7dc--)if(_0x4e3e20=_0x3d7c2a[_0x33e7dc])_0x166cc7=(_0x33647f<0x3?_0x4e3e20(_0x166cc7):_0x33647f>0x3?_0x4e3e20(_0x1e2d0e,_0x352d40,_0x166cc7):_0x4e3e20(_0x1e2d0e,_0x352d40))||_0x166cc7;}return _0x33647f>0x3&&_0x166cc7&&Object['defineProperty'](_0x1e2d0e,_0x352d40,_0x166cc7),_0x166cc7;},__metadata=this&&this[a12_0x1970e4(0x10f)]||function(_0x15b3c5,_0x3c6d5a){const _0x24d269=a12_0x1970e4;if(typeof Reflect==='object'&&typeof Reflect[_0x24d269(0x11d)]==='function')return Reflect[_0x24d269(0x11d)](_0x15b3c5,_0x3c6d5a);};Object[a12_0x1970e4(0x13c)](exports,a12_0x1970e4(0x126),{'value':!![]}),exports[a12_0x1970e4(0x12f)]=void 0x0;function a12_0x5b38(_0x28ac92,_0x6344d8){const _0x58d37e=a12_0x18f1();return a12_0x5b38=function(_0x44abef,_0x3fc38c){_0x44abef=_0x44abef-0xf9;let _0x18f1ce=_0x58d37e[_0x44abef];return _0x18f1ce;},a12_0x5b38(_0x28ac92,_0x6344d8);}const fs=require('fs'),exceljs=require(a12_0x1970e4(0x128)),koasend=require(a12_0x1970e4(0x13f)),core_1=require('@midwayjs/core'),ExcelStream_1=require(a12_0x1970e4(0xfd));let ExcelService=class ExcelService{async[a12_0x1970e4(0x138)](_0x3ae322,_0x251a1c,_0x5da1f4=[0x0]){const _0x15f9a6=a12_0x1970e4;var _0xaf407d,_0x57f781;const _0x342ab0=new exceljs[(_0x15f9a6(0x135))](),_0x5da460=[];let _0x163776=_0x3ae322[_0x15f9a6(0x122)](/(\\|\/)/g,'/')[_0x15f9a6(0x122)](/\/{2,}/g,'/');!(_0x163776===null||_0x163776===void 0x0?void 0x0:_0x163776[_0x15f9a6(0x11b)]('/'))&&(_0x163776=this['app'][_0x15f9a6(0x12d)]()+'/'+_0x163776);try{await _0x342ab0['xlsx'][_0x15f9a6(0x120)](_0x163776);}catch(_0x40ad7f){return console['log'](_0x15f9a6(0x101)+_0x163776+_0x15f9a6(0xff)),_0x5da460;}for(const _0x457d22 of _0x5da1f4){const _0x2be8a0=lodash[_0x15f9a6(0x13b)](_0x457d22)?((_0xaf407d=_0x342ab0['worksheets'])===null||_0xaf407d===void 0x0?void 0x0:_0xaf407d[_0x457d22])||undefined:_0x342ab0[_0x15f9a6(0x111)](_0x457d22);if(_0x2be8a0){var _0x5c8f1d=0x1;const _0x4f3e7e=_0x2be8a0['getRow'](0x1),_0x29f2fa=await new Promise(_0x72b96e=>{const _0x3e06cc=_0x15f9a6,_0x384847={};_0x4f3e7e[_0x3e06cc(0x145)]((_0x1d5170,_0x2d3d4f)=>{const _0x4df7dd=_0x3e06cc;for(const _0x50497a of _0x251a1c){if(_0x1d5170[_0x4df7dd(0x130)]==_0x50497a[_0x4df7dd(0x114)])_0x5c8f1d=0x2,_0x384847[_0x50497a[_0x4df7dd(0x11e)]]={'header':_0x1d5170['col'],'handler':(_0x50497a===null||_0x50497a===void 0x0?void 0x0:_0x50497a[_0x4df7dd(0x131)])||(_0x50497a===null||_0x50497a===void 0x0?void 0x0:_0x50497a[_0x4df7dd(0x139)])};else{if(!_0x384847[_0x50497a[_0x4df7dd(0x11e)]])try{const _0x339b97=_0x4f3e7e&&_0x4f3e7e['getCell'](_0x50497a[_0x4df7dd(0x114)]);_0x339b97&&(_0x384847[_0x50497a[_0x4df7dd(0x11e)]]={'header':_0x339b97['col'],'handler':(_0x50497a===null||_0x50497a===void 0x0?void 0x0:_0x50497a[_0x4df7dd(0x131)])||(_0x50497a===null||_0x50497a===void 0x0?void 0x0:_0x50497a[_0x4df7dd(0x139)])});}catch{}}}_0x4f3e7e[_0x4df7dd(0x149)]==_0x2d3d4f&&_0x72b96e(_0x384847);});});_0x2e5b6f:for(const _0x361c49 of _0x2be8a0[_0x15f9a6(0x12c)](_0x5c8f1d,_0x2be8a0[_0x15f9a6(0x102)])){if(typeof(_0x361c49===null||_0x361c49===void 0x0?void 0x0:_0x361c49[_0x15f9a6(0x125)])!=_0x15f9a6(0x12b))continue _0x2e5b6f;const _0x452694={};_0x1ae9cf:for(const _0x50581d in _0x29f2fa){if(_0x29f2fa[_0x50581d][_0x15f9a6(0x114)]){const _0x3e26cf=_0x361c49[_0x15f9a6(0x125)](_0x29f2fa[_0x50581d][_0x15f9a6(0x114)]);if(!_0x3e26cf)continue _0x1ae9cf;try{_0x3e26cf[_0x15f9a6(0x115)]();}catch(_0x387707){_0x3e26cf[_0x15f9a6(0x115)]=()=>{const _0x9c83bc=_0x15f9a6;var _0x115601;return''+(((_0x115601=_0x3e26cf===null||_0x3e26cf===void 0x0?void 0x0:_0x3e26cf[_0x9c83bc(0x13d)])===null||_0x115601===void 0x0?void 0x0:_0x115601['value'])||'');};}typeof((_0x57f781=_0x29f2fa[_0x50581d])===null||_0x57f781===void 0x0?void 0x0:_0x57f781[_0x15f9a6(0x139)])=='function'?_0x452694[_0x50581d]=await _0x29f2fa[_0x50581d][_0x15f9a6(0x139)](lodash[_0x15f9a6(0x137)]({},_0x50581d,(_0x3e26cf===null||_0x3e26cf===void 0x0?void 0x0:_0x3e26cf['toString']())||''),_0x3e26cf[_0x15f9a6(0x13d)]):_0x452694[_0x50581d]=(_0x3e26cf===null||_0x3e26cf===void 0x0?void 0x0:_0x3e26cf[_0x15f9a6(0x115)]())||'';}}Object[_0x15f9a6(0x12e)](_0x452694)[_0x15f9a6(0x141)]>0x0&&Object[_0x15f9a6(0x143)](_0x452694)[_0x15f9a6(0x104)](_0x363b5a=>_0x363b5a!='')[_0x15f9a6(0x141)]>0x0&&_0x5da460['push'](_0x452694);}}}return _0x5da460;}async[a12_0x1970e4(0x113)](_0x16f845,_0x378464,_0x27eaef,_0x1ea0c6,_0x3fb114){const _0x2c784a=a12_0x1970e4;var _0x37abcc,_0x1fa108,_0x461466;const _0x20727a=new exceljs[(_0x2c784a(0x135))](),_0x53973a={},_0x27e0ae=[],_0x3cd50d=_0x20727a[_0x2c784a(0x13a)](_0x2c784a(0x133),{'views':[{'state':_0x2c784a(0x129),'ySplit':0x1}]});for(const _0x1671d1 in _0x378464){_0x53973a[_0x378464[_0x1671d1][_0x2c784a(0x11e)]]=_0x378464[_0x1671d1]['header'],_0x27e0ae['push']({'header':_0x378464[_0x1671d1][_0x2c784a(0x114)],'key':(_0x37abcc=_0x378464[_0x1671d1])===null||_0x37abcc===void 0x0?void 0x0:_0x37abcc[_0x2c784a(0x11e)][_0x2c784a(0x122)](/\./g,'_')});}_0x3cd50d[_0x2c784a(0x11a)]=_0x27e0ae;for(const _0x5dada3 in _0x27eaef){const _0x30bc5d=_0x27eaef[_0x5dada3],_0x4be4f8=_0x3cd50d[_0x2c784a(0x106)]({});for(let _0x21cc47 in _0x378464){const _0xa86bf9=_0x378464[_0x21cc47][_0x2c784a(0x11e)]['replace'](/\./g,'_'),_0x2f1e62=_0x3cd50d[_0x2c784a(0x10a)](_0xa86bf9),_0x4dedf5=_0x4be4f8===null||_0x4be4f8===void 0x0?void 0x0:_0x4be4f8['getCell'](_0xa86bf9);if(typeof((_0x1fa108=_0x378464[_0x21cc47])===null||_0x1fa108===void 0x0?void 0x0:_0x1fa108[_0x2c784a(0x147)])==_0x2c784a(0x12b))_0x4dedf5[_0x2c784a(0x130)]=await _0x378464[_0x21cc47][_0x2c784a(0x147)](_0x30bc5d,{'row':_0x4be4f8,'col':_0x2f1e62,'cell':_0x4dedf5,'sheet':_0x3cd50d})||'';else typeof((_0x461466=_0x378464[_0x21cc47])===null||_0x461466===void 0x0?void 0x0:_0x461466[_0x2c784a(0x139)])==_0x2c784a(0x12b)?_0x4dedf5[_0x2c784a(0x130)]=await _0x378464[_0x21cc47][_0x2c784a(0x139)](_0x30bc5d,{'row':_0x4be4f8,'col':_0x2f1e62,'cell':_0x4dedf5,'sheet':_0x3cd50d})||'':_0x4dedf5[_0x2c784a(0x130)]=lodash['get'](_0x30bc5d,_0x378464[_0x21cc47][_0x2c784a(0x11e)],'');}}typeof _0x3fb114==_0x2c784a(0x12b)&&await _0x3fb114({'workbook':_0x20727a,'worksheet':_0x3cd50d});let _0x2c72bb='';const _0x583d34=_0x16f845+'.xlsx';if(_0x1ea0c6&&_0x1ea0c6[_0x2c784a(0x11b)]('/'))_0x2c72bb=''+_0x1ea0c6;else _0x1ea0c6&&!_0x1ea0c6['startsWith']('/')&&!_0x1ea0c6[_0x2c784a(0x11b)]('\x5c')?_0x2c72bb=this[_0x2c784a(0x11c)][_0x2c784a(0x12d)]()+'/'+_0x1ea0c6:_0x2c72bb=this[_0x2c784a(0x11c)][_0x2c784a(0x12d)]()+_0x2c784a(0x13e)+dayjs()[_0x2c784a(0x136)](_0x2c784a(0x10e));return(_0x2c72bb[_0x2c784a(0x144)]('/')||_0x2c72bb['endsWith']('\x5c'))&&(_0x2c72bb=_0x2c72bb['substring'](0x0,_0x2c72bb[_0x2c784a(0x141)]-0x1)),_0x2c72bb=_0x2c72bb[_0x2c784a(0x122)](/(\\|\/)/g,'/')[_0x2c784a(0x122)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2c72bb)&&fs[_0x2c784a(0x132)](_0x2c72bb,{'recursive':!![]}),await _0x20727a[_0x2c784a(0x112)][_0x2c784a(0x103)]((_0x2c72bb+'/'+_0x583d34)[_0x2c784a(0x122)](/(\\|\/)/g,'/')[_0x2c784a(0x122)](/\/{2,}/g,'/')),{'filename':_0x583d34,'filepath':(_0x2c72bb[_0x2c784a(0x100)]((''+this[_0x2c784a(0x11c)][_0x2c784a(0x12d)]())['length'])+'/'+_0x583d34)[_0x2c784a(0x122)](/(\\|\/)/g,'/')[_0x2c784a(0x122)](/\/{2,}/g,'/')};}async[a12_0x1970e4(0x10d)](_0x203478,_0x3270fd={'suffix':[a12_0x1970e4(0x146),'xlsx']}){const _0x422ef6=a12_0x1970e4;return await ExcelStream_1[_0x422ef6(0x121)][_0x422ef6(0x117)](_0x203478,_0x3270fd);}async['download'](_0x5f5acb,_0x41ea64){return await koasend(_0x5f5acb,''+_0x41ea64);}};__decorate([(0x0,core_1[a12_0x1970e4(0x11f)])(),__metadata(a12_0x1970e4(0x107),Object)],ExcelService[a12_0x1970e4(0x134)],a12_0x1970e4(0x11c),void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a12_0x1970e4(0x108)])(core_1[a12_0x1970e4(0x10c)][a12_0x1970e4(0x127)])],ExcelService),exports[a12_0x1970e4(0x12f)]=ExcelService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x38cfc9=a13_0x56cc;(function(_0x4ff81b,_0x5dabd1){const _0x4b6997=a13_0x56cc,_0xe72607=_0x4ff81b();while(!![]){try{const _0x40bf9f=-parseInt(_0x4b6997(0xf7))/0x1*(-parseInt(_0x4b6997(0x139))/0x2)+parseInt(_0x4b6997(0x115))/0x3*(parseInt(_0x4b6997(0x100))/0x4)+parseInt(_0x4b6997(0x12b))/0x5+parseInt(_0x4b6997(0xf6))/0x6+-parseInt(_0x4b6997(0x12e))/0x7*(-parseInt(_0x4b6997(0x118))/0x8)+parseInt(_0x4b6997(0x112))/0x9+-parseInt(_0x4b6997(0x122))/0xa*(parseInt(_0x4b6997(0x10d))/0xb);if(_0x40bf9f===_0x5dabd1)break;else _0xe72607['push'](_0xe72607['shift']());}catch(_0x4d6755){_0xe72607['push'](_0xe72607['shift']());}}}(a13_0x4537,0x6f4cc));const a13_0x53a97e=(function(){let _0x5225c4=!![];return function(_0x23beaf,_0x4c3831){const _0x306c33=_0x5225c4?function(){const _0x5aeb11=a13_0x56cc;if(_0x4c3831){const _0x1be5b9=_0x4c3831[_0x5aeb11(0x13a)](_0x23beaf,arguments);return _0x4c3831=null,_0x1be5b9;}}:function(){};return _0x5225c4=![],_0x306c33;};}()),a13_0x4b0c13=a13_0x53a97e(this,function(){const _0x3c4a66=a13_0x56cc;return a13_0x4b0c13[_0x3c4a66(0x125)]()[_0x3c4a66(0x127)](_0x3c4a66(0x103))[_0x3c4a66(0x125)]()[_0x3c4a66(0x11c)](a13_0x4b0c13)['search']('(((.+)+)+)+$');});a13_0x4b0c13();'use strict';function a13_0x4537(){const _0x1be2d9=['Workbook','xls','constructor','frozen','dirname','row','getCell','getWriterSheet','69780LgYipG','value','isNumber','toString','addWorksheet','search','handler','model','WorkbookWriter','1707430uSTscq','function','key','2321641YRmqob','columns','WorkbookReader','save','col','finished','xlsx','writer','reader','replace','getWorksheet','20QboYQW','apply','defineProperty','sheets','startsWith','1660236Xgauyl','60980bReOmF','文件名格式错误','addRow','has','commit','indexOf','rootpath','cellCount','lastIndexOf','24LZbYWR','suffix','worksheets','(((.+)+)+)+$','values','eachCell','WorksheetWriterMap','keys','mkdirSync','ignore','ExcelStream','filter','emit','4235ptcnOZ','set','get','isArray','stream','5219262odESqr','path','length','335589dUbDKF','getRow','header','16PJsOfk','push'];a13_0x4537=function(){return _0x1be2d9;};return a13_0x4537();}Object[a13_0x38cfc9(0x13b)](exports,'__esModule',{'value':!![]}),exports[a13_0x38cfc9(0x10a)]=void 0x0;const fs=require('fs'),path=require(a13_0x38cfc9(0x113)),exceljs=require('exceljs');function a13_0x56cc(_0x1dc637,_0x30c40c){const _0x4e9d34=a13_0x4537();return a13_0x56cc=function(_0x4b0c13,_0x53a97e){_0x4b0c13=_0x4b0c13-0xf5;let _0x45372=_0x4e9d34[_0x4b0c13];return _0x45372;},a13_0x56cc(_0x1dc637,_0x30c40c);}class ExcelStream{constructor(_0x11fa0e,_0x4e4fe8){const _0x3d95b0=a13_0x38cfc9;this[_0x3d95b0(0x106)]=new Map(),(this[_0x3d95b0(0x12a)]=_0x11fa0e,this['WorkbookReader']=_0x4e4fe8);}static['instance'](_0x43c860,_0x58c08e={'suffix':['xls',a13_0x38cfc9(0x134)]}){return new Promise(async(_0x4604be,_0x264324)=>{const _0xc0cca5=a13_0x56cc,_0x475c1e=_0x43c860['substring']((_0x43c860[_0xc0cca5(0xfc)]('/')>-0x1?_0x43c860[_0xc0cca5(0xff)]('/'):_0x43c860['lastIndexOf']('\x5c'))+0x1),_0x1c202d=path[_0xc0cca5(0x11e)](((_0x58c08e===null||_0x58c08e===void 0x0?void 0x0:_0x58c08e[_0xc0cca5(0xfd)])&&!_0x43c860[_0xc0cca5(0xf5)](_0x58c08e['rootpath'])?_0x58c08e[_0xc0cca5(0xfd)]+'/'+_0x43c860:'/'+_0x43c860)[_0xc0cca5(0x137)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x58c08e===null||_0x58c08e===void 0x0?void 0x0:_0x58c08e[_0xc0cca5(0x101)])?_0x58c08e['suffix']:[_0xc0cca5(0x11b),'xlsx'])['includes'](_0x475c1e['substring'](_0x475c1e[_0xc0cca5(0xff)]('.')+0x1)))return _0x264324(_0xc0cca5(0xf8));if(!fs['existsSync']((_0x1c202d+'/'+_0x475c1e)[_0xc0cca5(0x137)](/(\\|\/)/g,'/')[_0xc0cca5(0x137)](/\/{2,}/g,'/'))){!fs['existsSync'](_0x1c202d)&&fs[_0xc0cca5(0x108)](_0x1c202d,{'recursive':!![]});const _0x5cf57a=new exceljs[(_0xc0cca5(0x11a))]();await _0x5cf57a[_0xc0cca5(0x134)]['writeFile']((_0x1c202d+'/'+_0x475c1e)[_0xc0cca5(0x137)](/(\\|\/)/g,'/')[_0xc0cca5(0x137)](/\/{2,}/g,'/'));}const _0x4a2e77=new exceljs[(_0xc0cca5(0x111))][(_0xc0cca5(0x134))]['WorkbookWriter']({'filename':(_0x1c202d+'/'+_0x475c1e)[_0xc0cca5(0x137)](/(\\|\/)/g,'/')[_0xc0cca5(0x137)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x4bcfc6=new exceljs[(_0xc0cca5(0x111))]['xlsx'][(_0xc0cca5(0x130))]((_0x1c202d+'/'+_0x475c1e)['replace'](/(\\|\/)/g,'/')[_0xc0cca5(0x137)](/\/{2,}/g,'/'),{'worksheets':_0xc0cca5(0x10c),'sharedStrings':_0xc0cca5(0x109),'hyperlinks':_0xc0cca5(0x109),'styles':_0xc0cca5(0x109)});return _0x4604be(new ExcelStream(_0x4a2e77,_0x4bcfc6));});}async[a13_0x38cfc9(0x135)](_0x4199d7,_0x24d607,_0x37ccf5=0x0){const _0x4ab667=a13_0x38cfc9;var _0x1ba8bb,_0x3a7589;const _0x44792c=await this['getWriterSheet'](_0x37ccf5,!![]),_0x507f66={},_0x2f9dc4=[];for(const _0x7dcf4e in _0x4199d7){_0x507f66[_0x4199d7[_0x7dcf4e]['key']]=_0x4199d7[_0x7dcf4e][_0x4ab667(0x117)],_0x2f9dc4[_0x4ab667(0x119)]({'header':_0x4199d7[_0x7dcf4e][_0x4ab667(0x117)],'key':(_0x1ba8bb=_0x4199d7[_0x7dcf4e])===null||_0x1ba8bb===void 0x0?void 0x0:_0x1ba8bb[_0x4ab667(0x12d)][_0x4ab667(0x137)](/\./g,'_')});}(_0x44792c===null||_0x44792c===void 0x0?void 0x0:_0x44792c[_0x4ab667(0x12f)])!=_0x2f9dc4&&(_0x44792c[_0x4ab667(0x12f)]=_0x2f9dc4);for(const _0x23b1c7 in _0x24d607){const _0x28596e=_0x24d607[_0x23b1c7],_0x59d021=_0x44792c[_0x4ab667(0xf9)]({});for(let _0x5156fa in _0x4199d7){const _0x5218ec=_0x4199d7[_0x5156fa][_0x4ab667(0x12d)][_0x4ab667(0x137)](/\./g,'_'),_0x4273c9=_0x44792c['getColumn'](_0x5218ec),_0x34b9d8=_0x59d021===null||_0x59d021===void 0x0?void 0x0:_0x59d021[_0x4ab667(0x120)](_0x5218ec);typeof((_0x3a7589=_0x4199d7[_0x5156fa])===null||_0x3a7589===void 0x0?void 0x0:_0x3a7589['handler'])==_0x4ab667(0x12c)?_0x34b9d8[_0x4ab667(0x123)]=await _0x4199d7[_0x5156fa]['handler'](_0x28596e,{'row':_0x59d021,'col':_0x4273c9,'cell':_0x34b9d8,'sheet':_0x44792c})||'':_0x34b9d8[_0x4ab667(0x123)]=lodash[_0x4ab667(0x10f)](_0x28596e,_0x4199d7[_0x5156fa]['key'],'');}}return this;}async[a13_0x38cfc9(0x136)](_0xd99631,_0x2ea65f,_0x160666={'sheets':0x0}){const _0x16fbd4=a13_0x38cfc9;var _0x362c3f;const _0x3b7865=(_0x160666===null||_0x160666===void 0x0?void 0x0:_0x160666[_0x16fbd4(0x13c)])?Array[_0x16fbd4(0x110)](_0x160666['sheets'])?_0x160666[_0x16fbd4(0x13c)]:[_0x160666[_0x16fbd4(0x13c)]]:[0x0],_0x1f8d54=_0x2d80d6=>new Promise(async(_0x407c45,_0x378a7c)=>{const _0xce47fe=_0x16fbd4,_0x496ae7=_0x2d80d6[_0xce47fe(0x116)](0x1),_0x2d4eff=await new Promise(_0x581ffb=>{const _0x39a334=_0xce47fe,_0x2ad209={};_0x496ae7[_0x39a334(0x105)]((_0x154876,_0x47ca02)=>{const _0x25d83d=_0x39a334;for(const _0x141847 of _0xd99631){if(_0x154876['value']==_0x141847[_0x25d83d(0x117)])_0x2ad209[_0x141847[_0x25d83d(0x12d)]]={'header':_0x154876[_0x25d83d(0x132)],'handler':_0x141847[_0x25d83d(0x128)]};else{if(!_0x2ad209[_0x141847[_0x25d83d(0x12d)]])try{const _0x3f4454=_0x496ae7&&_0x496ae7[_0x25d83d(0x120)](_0x141847[_0x25d83d(0x117)]);_0x3f4454&&(_0x2ad209[_0x141847[_0x25d83d(0x12d)]]={'header':_0x3f4454[_0x25d83d(0x132)],'handler':_0x141847[_0x25d83d(0x128)]});}catch{}}}_0x496ae7[_0x25d83d(0xfe)]==_0x47ca02&&_0x581ffb(_0x2ad209);});});_0x2d80d6['on'](_0xce47fe(0x133),_0x1451bc=>_0x407c45(_0x2d80d6)),_0x2d80d6['on']('error',_0x9cf1ba=>_0x378a7c(_0x9cf1ba)),_0x2d80d6['on'](_0xce47fe(0x11f),async _0x233fce=>{const _0x10d5cc=_0xce47fe;var _0x3d2328;if(typeof(_0x233fce===null||_0x233fce===void 0x0?void 0x0:_0x233fce[_0x10d5cc(0x120)])==_0x10d5cc(0x12c)){const _0x129c94={};_0x14ce09:for(const _0x39c845 in _0x2d4eff){if(_0x2d4eff[_0x39c845]['header']){const _0x5e9cb0=_0x233fce[_0x10d5cc(0x120)](_0x2d4eff[_0x39c845]['header']);if(!_0x5e9cb0)continue _0x14ce09;try{_0x5e9cb0[_0x10d5cc(0x125)]();}catch(_0x2c51ac){_0x5e9cb0['toString']=()=>{const _0x1192d9=_0x10d5cc;var _0x5607f1;return''+(((_0x5607f1=_0x5e9cb0===null||_0x5e9cb0===void 0x0?void 0x0:_0x5e9cb0['model'])===null||_0x5607f1===void 0x0?void 0x0:_0x5607f1[_0x1192d9(0x123)])||'');};}typeof((_0x3d2328=_0x2d4eff[_0x39c845])===null||_0x3d2328===void 0x0?void 0x0:_0x3d2328[_0x10d5cc(0x128)])=='function'?_0x129c94[_0x39c845]=await _0x2d4eff[_0x39c845]['handler'](lodash[_0x10d5cc(0x10e)]({},_0x39c845,(_0x5e9cb0===null||_0x5e9cb0===void 0x0?void 0x0:_0x5e9cb0[_0x10d5cc(0x125)]())||''),_0x5e9cb0[_0x10d5cc(0x129)]):_0x129c94[_0x39c845]=(_0x5e9cb0===null||_0x5e9cb0===void 0x0?void 0x0:_0x5e9cb0[_0x10d5cc(0x125)]())||'';}}Object[_0x10d5cc(0x107)](_0x129c94)[_0x10d5cc(0x114)]>0x0&&Object[_0x10d5cc(0x104)](_0x129c94)[_0x10d5cc(0x10b)](_0x372585=>_0x372585!='')[_0x10d5cc(0x114)]>0x0&&await _0x2ea65f(_0x129c94,{'sheet':_0x2d80d6,'row':_0x233fce});}}),await _0x2d80d6['read']();});for(const _0x2c9f40 of _0x3b7865){const _0x54cd31=lodash[_0x16fbd4(0x124)](_0x2c9f40)?((_0x362c3f=this['WorkbookReader'][_0x16fbd4(0x102)])===null||_0x362c3f===void 0x0?void 0x0:_0x362c3f[_0x2c9f40])||undefined:this[_0x16fbd4(0x130)][_0x16fbd4(0x138)](_0x2c9f40);_0x54cd31&&await _0x1f8d54(_0x54cd31);}}async[a13_0x38cfc9(0x131)](){const _0xdfea5a=a13_0x38cfc9;return await this[_0xdfea5a(0x12a)][_0xdfea5a(0xfb)](),this;}async[a13_0x38cfc9(0x121)](_0x2f0da7,_0x181f4d=![]){const _0x47505e=a13_0x38cfc9;let _0x368215=this[_0x47505e(0x12a)][_0x47505e(0x138)](_0x2f0da7);return!_0x368215&&this[_0x47505e(0x106)][_0x47505e(0xfa)](_0x2f0da7)&&(_0x368215=this[_0x47505e(0x106)]['get'](_0x2f0da7)),!_0x368215&&_0x181f4d&&(_0x368215=this[_0x47505e(0x12a)][_0x47505e(0x126)](lodash[_0x47505e(0x124)](_0x2f0da7)?undefined:''+_0x2f0da7,{'views':[{'state':_0x47505e(0x11d),'ySplit':0x0}]}),this[_0x47505e(0x106)][_0x47505e(0x10e)](_0x2f0da7,_0x368215)),_0x368215;}}exports[a13_0x38cfc9(0x10a)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x5db343=a14_0x484e;function a14_0x1dc7(){var _0x5550d4=['anncic-api:action:route','74886VSgcwe','4ukWkeA','defineProperty','APPSCONFIG_KEY','ACTION_KEY','6nkQWUf','252530XtRdyc','1364360QQaGgp','apply','302634KnuTrA','AppsConfigTmp','8323100ILobbe','__esModule','ACTION_ROUTE_KEY','(((.+)+)+)+$','search','129210KqfgRb','192728aQzanF','constructor','toString','32ypYyEK'];a14_0x1dc7=function(){return _0x5550d4;};return a14_0x1dc7();}function a14_0x484e(_0x31d58a,_0x20cbdd){var _0x5b01e3=a14_0x1dc7();return a14_0x484e=function(_0x21372e,_0xddec9e){_0x21372e=_0x21372e-0xfd;var _0x1dc78c=_0x5b01e3[_0x21372e];return _0x1dc78c;},a14_0x484e(_0x31d58a,_0x20cbdd);}(function(_0x51cb3f,_0x3957a2){var _0x90d03c=a14_0x484e,_0x45bb61=_0x51cb3f();while(!![]){try{var _0x24a532=parseInt(_0x90d03c(0x103))/0x1*(parseInt(_0x90d03c(0x109))/0x2)+parseInt(_0x90d03c(0x102))/0x3+parseInt(_0x90d03c(0x106))/0x4*(parseInt(_0x90d03c(0x10e))/0x5)+-parseInt(_0x90d03c(0x10d))/0x6*(-parseInt(_0x90d03c(0x108))/0x7)+parseInt(_0x90d03c(0x10f))/0x8+parseInt(_0x90d03c(0x111))/0x9+-parseInt(_0x90d03c(0xfd))/0xa;if(_0x24a532===_0x3957a2)break;else _0x45bb61['push'](_0x45bb61['shift']());}catch(_0x44472f){_0x45bb61['push'](_0x45bb61['shift']());}}}(a14_0x1dc7,0x3485d));var a14_0xddec9e=(function(){var _0x4b6886=!![];return function(_0x2d24d7,_0x489c74){var _0x32b834=_0x4b6886?function(){var _0x5e3ef4=a14_0x484e;if(_0x489c74){var _0x4501d4=_0x489c74[_0x5e3ef4(0x110)](_0x2d24d7,arguments);return _0x489c74=null,_0x4501d4;}}:function(){};return _0x4b6886=![],_0x32b834;};}()),a14_0x21372e=a14_0xddec9e(this,function(){var _0x3362f2=a14_0x484e;return a14_0x21372e[_0x3362f2(0x105)]()['search'](_0x3362f2(0x100))['toString']()[_0x3362f2(0x104)](a14_0x21372e)[_0x3362f2(0x101)]('(((.+)+)+)+$');});a14_0x21372e();'use strict';Object[a14_0x5db343(0x10a)](exports,a14_0x5db343(0xfe),{'value':!![]}),exports['AppsConfigTmp']=exports[a14_0x5db343(0x10b)]=exports[a14_0x5db343(0xff)]=exports[a14_0x5db343(0x10c)]=void 0x0,exports[a14_0x5db343(0x10c)]='anncic-api:action',exports[a14_0x5db343(0xff)]=a14_0x5db343(0x107),exports['APPSCONFIG_KEY']='anncic-api:apps:config';class AppsConfigTmp{}exports[a14_0x5db343(0x112)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a15_0x2e13af=a15_0x2d11;(function(_0x24fd70,_0x26fdc1){var _0x5154aa=a15_0x2d11,_0xb3121b=_0x24fd70();while(!![]){try{var _0x34f2cb=-parseInt(_0x5154aa(0xa8))/0x1+-parseInt(_0x5154aa(0x96))/0x2*(parseInt(_0x5154aa(0x97))/0x3)+parseInt(_0x5154aa(0x99))/0x4+-parseInt(_0x5154aa(0x9a))/0x5+parseInt(_0x5154aa(0x8c))/0x6*(-parseInt(_0x5154aa(0x91))/0x7)+parseInt(_0x5154aa(0x8f))/0x8*(parseInt(_0x5154aa(0x98))/0x9)+parseInt(_0x5154aa(0x8a))/0xa*(parseInt(_0x5154aa(0xac))/0xb);if(_0x34f2cb===_0x26fdc1)break;else _0xb3121b['push'](_0xb3121b['shift']());}catch(_0x35beef){_0xb3121b['push'](_0xb3121b['shift']());}}}(a15_0x4fc7,0xd0231));function a15_0x2d11(_0x33d714,_0x288f1b){var _0xd4d261=a15_0x4fc7();return a15_0x2d11=function(_0x5761bb,_0x2caa55){_0x5761bb=_0x5761bb-0x8a;var _0x4fc7b6=_0xd4d261[_0x5761bb];return _0x4fc7b6;},a15_0x2d11(_0x33d714,_0x288f1b);}var a15_0x2caa55=(function(){var _0x14b3f9=!![];return function(_0x5de6c0,_0x393bc8){var _0x455e56=_0x14b3f9?function(){var _0x232249=a15_0x2d11;if(_0x393bc8){var _0x1eddaf=_0x393bc8[_0x232249(0xb0)](_0x5de6c0,arguments);return _0x393bc8=null,_0x1eddaf;}}:function(){};return _0x14b3f9=![],_0x455e56;};}()),a15_0x5761bb=a15_0x2caa55(this,function(){var _0x571569=a15_0x2d11;return a15_0x5761bb[_0x571569(0xa7)]()[_0x571569(0xaa)](_0x571569(0xa6))[_0x571569(0xa7)]()[_0x571569(0xb1)](a15_0x5761bb)[_0x571569(0xaa)](_0x571569(0xa6));});function a15_0x4fc7(){var _0xe3698e=['是否倒序','2WsXUXg','4933860Hsqcan','1840779JnNqji','4776452sQMWPV','1688020noHLKC','RuleType','metadata','__esModule','_page','PageDTO','length','number','object','分页数量','Rule','design:type','(((.+)+)+)+$','toString','1470693DxCFGa','排序方式','search','defineProperty','308lzHTmk','__metadata','integer','__decorate','apply','constructor','920110THREvd','getOwnPropertyDescriptor','4476FsWPwF','trim','function','56yznqwQ','_isreverse','8414rLBLpu','decorate','prototype','第一页为1,第二页为2'];a15_0x4fc7=function(){return _0xe3698e;};return a15_0x4fc7();}a15_0x5761bb();'use strict';var __decorate=this&&this[a15_0x2e13af(0xaf)]||function(_0x51ff80,_0x1fe7ea,_0x3809ee,_0x2eebcc){var _0x5158aa=a15_0x2e13af,_0x26659c=arguments[_0x5158aa(0xa0)],_0x496d9c=_0x26659c<0x3?_0x1fe7ea:_0x2eebcc===null?_0x2eebcc=Object[_0x5158aa(0x8b)](_0x1fe7ea,_0x3809ee):_0x2eebcc,_0x335f95;if(typeof Reflect===_0x5158aa(0xa2)&&typeof Reflect[_0x5158aa(0x92)]===_0x5158aa(0x8e))_0x496d9c=Reflect[_0x5158aa(0x92)](_0x51ff80,_0x1fe7ea,_0x3809ee,_0x2eebcc);else{for(var _0x339ea2=_0x51ff80['length']-0x1;_0x339ea2>=0x0;_0x339ea2--)if(_0x335f95=_0x51ff80[_0x339ea2])_0x496d9c=(_0x26659c<0x3?_0x335f95(_0x496d9c):_0x26659c>0x3?_0x335f95(_0x1fe7ea,_0x3809ee,_0x496d9c):_0x335f95(_0x1fe7ea,_0x3809ee))||_0x496d9c;}return _0x26659c>0x3&&_0x496d9c&&Object['defineProperty'](_0x1fe7ea,_0x3809ee,_0x496d9c),_0x496d9c;},__metadata=this&&this[a15_0x2e13af(0xad)]||function(_0x41d10e,_0x484cd6){var _0x4ef56a=a15_0x2e13af;if(typeof Reflect===_0x4ef56a(0xa2)&&typeof Reflect[_0x4ef56a(0x9c)]===_0x4ef56a(0x8e))return Reflect[_0x4ef56a(0x9c)](_0x41d10e,_0x484cd6);};Object[a15_0x2e13af(0xab)](exports,a15_0x2e13af(0x9d),{'value':!![]}),exports[a15_0x2e13af(0x9f)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a15_0x2e13af(0xa4)])('分页',validator_1[a15_0x2e13af(0x9b)][a15_0x2e13af(0xa1)]()[a15_0x2e13af(0xae)]()['min'](0x1),a15_0x2e13af(0x94)),__metadata(a15_0x2e13af(0xa5),Number)],PageDTO[a15_0x2e13af(0x93)],a15_0x2e13af(0x9e),void 0x0),__decorate([(0x0,validator_1[a15_0x2e13af(0xa4)])(a15_0x2e13af(0xa3),validator_1[a15_0x2e13af(0x9b)]['number']()[a15_0x2e13af(0xae)]()['min'](0x1)),__metadata(a15_0x2e13af(0xa5),Number)],PageDTO[a15_0x2e13af(0x93)],'_size',void 0x0),__decorate([(0x0,validator_1[a15_0x2e13af(0xa4)])(a15_0x2e13af(0xa9),validator_1[a15_0x2e13af(0x9b)]['string']()[a15_0x2e13af(0x8d)]()),__metadata('design:type',String)],PageDTO[a15_0x2e13af(0x93)],'_order',void 0x0),__decorate([(0x0,validator_1[a15_0x2e13af(0xa4)])(a15_0x2e13af(0x95),validator_1[a15_0x2e13af(0x9b)]['number']()[a15_0x2e13af(0xae)]()['valid'](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO[a15_0x2e13af(0x93)],a15_0x2e13af(0x90),void 0x0),exports[a15_0x2e13af(0x9f)]=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a16_0x2e2bb3=a16_0x46f3;(function(_0x2db4ea,_0x33c6b){var _0x446583=a16_0x46f3,_0x13e650=_0x2db4ea();while(!![]){try{var _0x56cb8c=-parseInt(_0x446583(0xd0))/0x1+parseInt(_0x446583(0xd1))/0x2*(parseInt(_0x446583(0xd8))/0x3)+parseInt(_0x446583(0xd4))/0x4*(parseInt(_0x446583(0xce))/0x5)+parseInt(_0x446583(0xdb))/0x6*(-parseInt(_0x446583(0xda))/0x7)+-parseInt(_0x446583(0xcc))/0x8+-parseInt(_0x446583(0xd9))/0x9+parseInt(_0x446583(0xcf))/0xa*(parseInt(_0x446583(0xdc))/0xb);if(_0x56cb8c===_0x33c6b)break;else _0x13e650['push'](_0x13e650['shift']());}catch(_0x116418){_0x13e650['push'](_0x13e650['shift']());}}}(a16_0x3600,0x59de9));var a16_0x35a858=(function(){var _0x3356a8=!![];return function(_0x4e8ff4,_0x573f34){var _0x200413=_0x3356a8?function(){var _0x579f59=a16_0x46f3;if(_0x573f34){var _0x224358=_0x573f34[_0x579f59(0xcb)](_0x4e8ff4,arguments);return _0x573f34=null,_0x224358;}}:function(){};return _0x3356a8=![],_0x200413;};}()),a16_0x26adaa=a16_0x35a858(this,function(){var _0x280df1=a16_0x46f3;return a16_0x26adaa[_0x280df1(0xcd)]()[_0x280df1(0xd7)]('(((.+)+)+)+$')[_0x280df1(0xcd)]()['constructor'](a16_0x26adaa)[_0x280df1(0xd7)](_0x280df1(0xd6));});function a16_0x46f3(_0x1b73c5,_0x52bdee){var _0x3e8193=a16_0x3600();return a16_0x46f3=function(_0x26adaa,_0x35a858){_0x26adaa=_0x26adaa-0xcb;var _0x36005d=_0x3e8193[_0x26adaa];return _0x36005d;},a16_0x46f3(_0x1b73c5,_0x52bdee);}a16_0x26adaa();function a16_0x3600(){var _0x2053e4=['defineProperty','85532GVgfFy','INTERCEPT_KEY','(((.+)+)+)+$','search','998601UbnKZy','6289326bZccwW','7HIUvRx','1015074UjhPUv','11mEJHqD','InterceptTargetTmp','anncic-api:intercept','apply','2014744xWPgee','toString','160EUjiQb','5855210tQYhBf','447570qKnEXZ','4XBbRuY','__esModule'];a16_0x3600=function(){return _0x2053e4;};return a16_0x3600();}'use strict';Object[a16_0x2e2bb3(0xd3)](exports,a16_0x2e2bb3(0xd2),{'value':!![]}),exports['InterceptTargetTmp']=exports[a16_0x2e2bb3(0xd5)]=void 0x0,exports[a16_0x2e2bb3(0xd5)]=a16_0x2e2bb3(0xde);class InterceptTargetTmp{}exports[a16_0x2e2bb3(0xdd)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.35",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.4.
|
|
21
|
-
"@anncic-api/core": "^3.4.
|
|
22
|
-
"@anncic-api/event": "^3.4.
|
|
23
|
-
"@anncic-api/typeorm": "^3.4.
|
|
24
|
-
"@anncic-api/validator": "^3.4.
|
|
20
|
+
"@anncic-api/cache": "^3.4.35",
|
|
21
|
+
"@anncic-api/core": "^3.4.35",
|
|
22
|
+
"@anncic-api/event": "^3.4.35",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.35",
|
|
24
|
+
"@anncic-api/validator": "^3.4.35",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.12.8",
|
|
26
26
|
"@midwayjs/koa": "^3.12.8",
|
|
27
27
|
"@midwayjs/static-file": "^3.12.8",
|
|
28
28
|
"@midwayjs/upload": "^3.12.8",
|
|
29
|
-
"anncic-apihelper": "^3.4.
|
|
29
|
+
"anncic-apihelper": "^3.4.35",
|
|
30
30
|
"exceljs": "^4.4.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "83103dec69df5b7264ece0a31d3f67e190997d8f"
|
|
39
39
|
}
|