anncic-api 2.1.2 → 2.1.3
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/ActionApi.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/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_0x5f3be6=a0_0x21e4;(function(_0x552d5b,_0x456e54){var _0x3b7386=a0_0x21e4,_0x1b436b=_0x552d5b();while(!![]){try{var _0x29165e=parseInt(_0x3b7386(0x150))/0x1*(-parseInt(_0x3b7386(0x15f))/0x2)+-parseInt(_0x3b7386(0x157))/0x3+parseInt(_0x3b7386(0x15c))/0x4+-parseInt(_0x3b7386(0x147))/0x5*(-parseInt(_0x3b7386(0x14e))/0x6)+parseInt(_0x3b7386(0x155))/0x7*(-parseInt(_0x3b7386(0x151))/0x8)+parseInt(_0x3b7386(0x15d))/0x9+-parseInt(_0x3b7386(0x15b))/0xa*(-parseInt(_0x3b7386(0x14a))/0xb);if(_0x29165e===_0x456e54)break;else _0x1b436b['push'](_0x1b436b['shift']());}catch(_0x43db2d){_0x1b436b['push'](_0x1b436b['shift']());}}}(a0_0x4d11,0x6ef5e));var a0_0x5aac62=(function(){var _0x586d3d=!![];return function(_0x3dae7e,_0x19ec68){var _0x201858=_0x586d3d?function(){var _0x403b1d=a0_0x21e4;if(_0x19ec68){var _0x53c8ab=_0x19ec68[_0x403b1d(0x154)](_0x3dae7e,arguments);return _0x19ec68=null,_0x53c8ab;}}:function(){};return _0x586d3d=![],_0x201858;};}()),a0_0xdefc0f=a0_0x5aac62(this,function(){var _0x369af8=a0_0x21e4;return a0_0xdefc0f[_0x369af8(0x148)]()[_0x369af8(0x153)]('(((.+)+)+)+$')[_0x369af8(0x148)]()[_0x369af8(0x158)](a0_0xdefc0f)[_0x369af8(0x153)](_0x369af8(0x149));});function a0_0x4d11(){var _0x39cb7d=['6092944ShSBLj','name','__esModule','defineProperty','24zfUnwn','dhauo1234420123gg3234901','34601rAXyZJ','397352fCFeUw','xml','search','apply','28QHnOiu','20mb','708147DTegVA','constructor','form','json','10OWcYeA','549612BHptDI','3800403LrvDFN','/runtime/.upload','38mJHSpT','default','appDir','541330HdMrOF','toString','(((.+)+)+)+$'];a0_0x4d11=function(){return _0x39cb7d;};return a0_0x4d11();}function a0_0x21e4(_0x158158,_0x5ba1a8){var _0x3edd2b=a0_0x4d11();return a0_0x21e4=function(_0xdefc0f,_0x5aac62){_0xdefc0f=_0xdefc0f-0x146;var _0x4d1171=_0x3edd2b[_0xdefc0f];return _0x4d1171;},a0_0x21e4(_0x158158,_0x5ba1a8);}a0_0xdefc0f();'use strict';Object[a0_0x5f3be6(0x14d)](exports,a0_0x5f3be6(0x14c),{'value':!![]}),exports[a0_0x5f3be6(0x160)]=_0x10f933=>{var _0x2ffc7a=a0_0x5f3be6;return{'apitest':!![],'keys':_0x10f933[_0x2ffc7a(0x14b)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x2ffc7a(0x14f),'checkcode':_0x2ffc7a(0x14f)}}},'bodyParser':{'enableTypes':[_0x2ffc7a(0x15a),_0x2ffc7a(0x159),'text',_0x2ffc7a(0x152)],'formLimit':_0x2ffc7a(0x156),'jsonLimit':_0x2ffc7a(0x156),'textLimit':'20mb','xmlLimit':_0x2ffc7a(0x156)},'upload':{'tmpdir':_0x10f933[_0x2ffc7a(0x146)]+_0x2ffc7a(0x15e),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a1_0x451fee=a1_0x4756;function a1_0x4756(_0x2ddbd5,_0x168997){var _0x5e2853=a1_0x2336();return a1_0x4756=function(_0x36b7f0,_0x47be46){_0x36b7f0=_0x36b7f0-0x1e2;var _0x23368b=_0x5e2853[_0x36b7f0];return _0x23368b;},a1_0x4756(_0x2ddbd5,_0x168997);}function a1_0x2336(){var _0x25924c=['default','1097025FBhcUU','133101euiaDA','39595430dEmqQx','1150905AgbNey','__esModule','toString','2062rdmcdf','(((.+)+)+)+$','2934PoIInk','6bBCrdg','apply','1281487bhwgvH','defineProperty','850224acPGrU','168PdqfmN','constructor'];a1_0x2336=function(){return _0x25924c;};return a1_0x2336();}(function(_0x52a9d9,_0x256772){var _0x45e379=a1_0x4756,_0x517fd0=_0x52a9d9();while(!![]){try{var _0x13ac32=-parseInt(_0x45e379(0x1ef))/0x1+parseInt(_0x45e379(0x1ea))/0x2*(-parseInt(_0x45e379(0x1ec))/0x3)+-parseInt(_0x45e379(0x1f1))/0x4+-parseInt(_0x45e379(0x1e4))/0x5+parseInt(_0x45e379(0x1ed))/0x6*(-parseInt(_0x45e379(0x1e7))/0x7)+-parseInt(_0x45e379(0x1f2))/0x8*(parseInt(_0x45e379(0x1e5))/0x9)+parseInt(_0x45e379(0x1e6))/0xa;if(_0x13ac32===_0x256772)break;else _0x517fd0['push'](_0x517fd0['shift']());}catch(_0x1c697d){_0x517fd0['push'](_0x517fd0['shift']());}}}(a1_0x2336,0xba3a9));var a1_0x47be46=(function(){var _0x3a6ed6=!![];return function(_0x3c32e3,_0x17f2a7){var _0x24fbdd=_0x3a6ed6?function(){var _0x4a3e2c=a1_0x4756;if(_0x17f2a7){var _0x56d061=_0x17f2a7[_0x4a3e2c(0x1ee)](_0x3c32e3,arguments);return _0x17f2a7=null,_0x56d061;}}:function(){};return _0x3a6ed6=![],_0x24fbdd;};}()),a1_0x36b7f0=a1_0x47be46(this,function(){var _0x55a0b3=a1_0x4756;return a1_0x36b7f0[_0x55a0b3(0x1e9)]()['search'](_0x55a0b3(0x1eb))[_0x55a0b3(0x1e9)]()[_0x55a0b3(0x1e2)](a1_0x36b7f0)['search'](_0x55a0b3(0x1eb));});a1_0x36b7f0();'use strict';Object[a1_0x451fee(0x1f0)](exports,a1_0x451fee(0x1e8),{'value':!![]}),exports[a1_0x451fee(0x1e3)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4cd68b=a2_0x3389;(function(_0x18e966,_0x433e67){const _0x4f96c7=a2_0x3389,_0x49db1a=_0x18e966();while(!![]){try{const _0x28f4cf=-parseInt(_0x4f96c7(0x170))/0x1+-parseInt(_0x4f96c7(0x1e0))/0x2*(parseInt(_0x4f96c7(0x1ad))/0x3)+parseInt(_0x4f96c7(0x17a))/0x4*(parseInt(_0x4f96c7(0x1b6))/0x5)+parseInt(_0x4f96c7(0x1ab))/0x6*(-parseInt(_0x4f96c7(0x1d6))/0x7)+-parseInt(_0x4f96c7(0x195))/0x8*(parseInt(_0x4f96c7(0x1a1))/0x9)+-parseInt(_0x4f96c7(0x17e))/0xa+-parseInt(_0x4f96c7(0x1a5))/0xb*(-parseInt(_0x4f96c7(0x1e7))/0xc);if(_0x28f4cf===_0x433e67)break;else _0x49db1a['push'](_0x49db1a['shift']());}catch(_0x4dda50){_0x49db1a['push'](_0x49db1a['shift']());}}}(a2_0x4e83,0xf2537));function a2_0x3389(_0x37d71e,_0x5053d2){const _0x35e6b8=a2_0x4e83();return a2_0x3389=function(_0x27df96,_0x2c8ca7){_0x27df96=_0x27df96-0x166;let _0x4e83e2=_0x35e6b8[_0x27df96];return _0x4e83e2;},a2_0x3389(_0x37d71e,_0x5053d2);}const a2_0x2c8ca7=(function(){let _0xb321b1=!![];return function(_0x451ab9,_0x3ded07){const _0x1b3fbf=_0xb321b1?function(){const _0x29db24=a2_0x3389;if(_0x3ded07){const _0x38c654=_0x3ded07[_0x29db24(0x1c8)](_0x451ab9,arguments);return _0x3ded07=null,_0x38c654;}}:function(){};return _0xb321b1=![],_0x1b3fbf;};}()),a2_0x27df96=a2_0x2c8ca7(this,function(){const _0x1825e1=a2_0x3389;return a2_0x27df96[_0x1825e1(0x199)]()['search'](_0x1825e1(0x168))['toString']()[_0x1825e1(0x1c7)](a2_0x27df96)[_0x1825e1(0x19c)]('(((.+)+)+)+$');});a2_0x27df96();'use strict';var __decorate=this&&this[a2_0x4cd68b(0x18c)]||function(_0x33924e,_0x200825,_0x5c01d8,_0x5ba43d){const _0x4af9f8=a2_0x4cd68b;var _0x381107=arguments[_0x4af9f8(0x1cb)],_0x2f6e6d=_0x381107<0x3?_0x200825:_0x5ba43d===null?_0x5ba43d=Object[_0x4af9f8(0x1cf)](_0x200825,_0x5c01d8):_0x5ba43d,_0x4c42b5;if(typeof Reflect===_0x4af9f8(0x19d)&&typeof Reflect['decorate']==='function')_0x2f6e6d=Reflect[_0x4af9f8(0x18b)](_0x33924e,_0x200825,_0x5c01d8,_0x5ba43d);else{for(var _0x4622f0=_0x33924e[_0x4af9f8(0x1cb)]-0x1;_0x4622f0>=0x0;_0x4622f0--)if(_0x4c42b5=_0x33924e[_0x4622f0])_0x2f6e6d=(_0x381107<0x3?_0x4c42b5(_0x2f6e6d):_0x381107>0x3?_0x4c42b5(_0x200825,_0x5c01d8,_0x2f6e6d):_0x4c42b5(_0x200825,_0x5c01d8))||_0x2f6e6d;}return _0x381107>0x3&&_0x2f6e6d&&Object[_0x4af9f8(0x191)](_0x200825,_0x5c01d8,_0x2f6e6d),_0x2f6e6d;},__metadata=this&&this[a2_0x4cd68b(0x1a2)]||function(_0x58e37c,_0x11d3c8){const _0x1279fd=a2_0x4cd68b;if(typeof Reflect===_0x1279fd(0x19d)&&typeof Reflect[_0x1279fd(0x172)]===_0x1279fd(0x1b3))return Reflect[_0x1279fd(0x172)](_0x58e37c,_0x11d3c8);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4cd68b(0x16c)]=void 0x0;const core_1=require(a2_0x4cd68b(0x189)),core_2=require(a2_0x4cd68b(0x189)),ApiError_1=require(a2_0x4cd68b(0x1cd)),ApiService_1=require(a2_0x4cd68b(0x1de)),action_1=require(a2_0x4cd68b(0x1a4)),intercept_1=require(a2_0x4cd68b(0x197)),fs=require('fs'),koasend=require(a2_0x4cd68b(0x1ce)),koa=require(a2_0x4cd68b(0x1d1)),i18n=require(a2_0x4cd68b(0x1c2)),upload=require(a2_0x4cd68b(0x1e5)),staticFile=require(a2_0x4cd68b(0x198)),crossDomain=require(a2_0x4cd68b(0x18a)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x4cd68b(0x1d0)),anncic=require(a2_0x4cd68b(0x1b9)),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x2f4c00=a2_0x4cd68b;await this[_0x2f4c00(0x169)](),await this[_0x2f4c00(0x1d2)](),await this['checkConfigKeys'](),await this[_0x2f4c00(0x1ae)](),await this[_0x2f4c00(0x180)]();}async[a2_0x4cd68b(0x1b0)](){}async[a2_0x4cd68b(0x1ae)](){const _0x4ee29c=a2_0x4cd68b,_0x5dfe7a=(0x0,core_1['getClassMetadata'])(intercept_1[_0x4ee29c(0x184)],intercept_1['InterceptTargetTmp'])||{};this[_0x4ee29c(0x1c4)][_0x4ee29c(0x174)](action_1[_0x4ee29c(0x1a9)],_0x28f76a=>{const _0x4cb5f6=_0x4ee29c,_0x488c76=_0x28f76a[_0x4cb5f6(0x172)];return{'before':async _0x3a4ba9=>{const _0x17f05d=_0x4cb5f6;var _0x3288f0,_0x114e24;const _0x53f901=(_0x3288f0=_0x3a4ba9===null||_0x3a4ba9===void 0x0?void 0x0:_0x3a4ba9[_0x17f05d(0x183)])===null||_0x3288f0===void 0x0?void 0x0:_0x3288f0[core_2[_0x17f05d(0x1b4)]];if(_0x53f901&&(_0x488c76===null||_0x488c76===void 0x0?void 0x0:_0x488c76[_0x17f05d(0x1e6)])){if(!this[_0x17f05d(0x1ca)][_0x17f05d(0x16e)]((_0x114e24=_0x53f901===null||_0x53f901===void 0x0?void 0x0:_0x53f901[_0x17f05d(0x1bd)])===null||_0x114e24===void 0x0?void 0x0:_0x114e24[_0x17f05d(0x1d4)]))throw new AnnError(ApiError_1[_0x17f05d(0x1b7)][_0x17f05d(0x187)]);}},'around':async _0x11e898=>{const _0x2d3caf=_0x4cb5f6;var _0x335562,_0x12bf1b,_0x3a90b5;const _0x366bbd=(_0x335562=_0x11e898===null||_0x11e898===void 0x0?void 0x0:_0x11e898['target'])===null||_0x335562===void 0x0?void 0x0:_0x335562[core_2[_0x2d3caf(0x1b4)]];if(_0x366bbd&&(_0x488c76===null||_0x488c76===void 0x0?void 0x0:_0x488c76['apimit'])&&((_0x488c76===null||_0x488c76===void 0x0?void 0x0:_0x488c76[_0x2d3caf(0x1b8)])||typeof(_0x488c76===null||_0x488c76===void 0x0?void 0x0:_0x488c76[_0x2d3caf(0x1b8)])==_0x2d3caf(0x1a0))){if(((_0x12bf1b=_0x366bbd[_0x2d3caf(0x1d4)])===null||_0x12bf1b===void 0x0?void 0x0:_0x12bf1b[_0x2d3caf(0x1db)])&&((_0x3a90b5=_0x5dfe7a===null||_0x5dfe7a===void 0x0?void 0x0:_0x5dfe7a[_0x366bbd[_0x2d3caf(0x1d4)]['device']])===null||_0x3a90b5===void 0x0?void 0x0:_0x3a90b5['length'])>0x0)for(const _0x2947dd of _0x5dfe7a[_0x366bbd[_0x2d3caf(0x1d4)]['device']]||[]){if(core_1[_0x2d3caf(0x1b1)]['isClass'](_0x2947dd)){const _0x557e5d=await _0x366bbd[_0x2d3caf(0x1da)][_0x2d3caf(0x18f)](_0x2947dd);typeof(_0x557e5d===null||_0x557e5d===void 0x0?void 0x0:_0x557e5d['match'])==_0x2d3caf(0x1b3)?await _0x557e5d[_0x2d3caf(0x175)](_0x366bbd,typeof(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd['method'])=='string'&&(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x176)])?_0x366bbd['method']['toLowerCase']()+'@'+(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x176)]):undefined,_0x488c76)&&await _0x557e5d[_0x2d3caf(0x19e)](_0x366bbd,typeof(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x1d3)])==_0x2d3caf(0x190)&&(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x176)])?_0x366bbd[_0x2d3caf(0x1d3)][_0x2d3caf(0x1c0)]()+'@'+(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd['_matchedRoute']):undefined,_0x488c76):await _0x557e5d['handler'](_0x366bbd,typeof(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x1d3)])=='string'&&(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x176)])?_0x366bbd['method'][_0x2d3caf(0x1c0)]()+'@'+(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x176)]):undefined,_0x488c76);}else core_1[_0x2d3caf(0x1b1)]['isFunction'](_0x2947dd)&&await _0x2947dd(_0x366bbd,typeof(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x1d3)])==_0x2d3caf(0x190)&&(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd[_0x2d3caf(0x176)])?_0x366bbd[_0x2d3caf(0x1d3)][_0x2d3caf(0x1c0)]()+'@'+(_0x366bbd===null||_0x366bbd===void 0x0?void 0x0:_0x366bbd['_matchedRoute']):undefined,_0x488c76);}}return await _0x11e898[_0x2d3caf(0x1ba)](..._0x11e898[_0x2d3caf(0x16a)]);},'afterThrow':(_0x3562df,_0x49c29c)=>{throw _0x49c29c;}};});}async['hanlderApplications'](){const _0x2af6bb=a2_0x4cd68b;this[_0x2af6bb(0x1dd)]['getApplications']([_0x2af6bb(0x177)])[_0x2af6bb(0x182)](_0x130855=>{const _0x185cba=_0x2af6bb;(_0x130855===null||_0x130855===void 0x0?void 0x0:_0x130855[_0x185cba(0x1b2)])&&Object[_0x185cba(0x1b5)](_0x130855[_0x185cba(0x1b2)],{'ok':{'value':function(_0x42e347,_0x1c5ad6,_0x3824ad=0x0){return{'code':_0x3824ad,'data':_0x42e347,'extra':_0x1c5ad6};}},'input':{'value':function(_0x2ffb81,_0x5d9e2b){const _0x27304a=_0x185cba;var _0x487b76;const _0x1a75ba=lodash[_0x27304a(0x186)]({},this['request'][_0x27304a(0x1e4)]||this['request'][((_0x487b76=config===null||config===void 0x0?void 0x0:config[_0x27304a(0x1a3)])===null||_0x487b76===void 0x0?void 0x0:_0x487b76[_0x27304a(0x1c5)])||_0x27304a(0x1e4)]||{},this[_0x27304a(0x1bd)][_0x27304a(0x16b)]||{});return _0x2ffb81?lodash[_0x27304a(0x1bb)](_0x1a75ba,_0x2ffb81,_0x5d9e2b):_0x1a75ba;}},'when':{'value':async function(_0x1e5c97,_0x476fa3){const _0x325a6c=_0x185cba,_0x5ec0eb=this[_0x325a6c(0x17d)](_0x1e5c97,null);if(!lodash[_0x325a6c(0x19b)](_0x5ec0eb))return await _0x476fa3(_0x5ec0eb);}},'only':{'value':function(_0x4ab3ba){const _0x302ead=_0x185cba,_0xd8efbc={};for(let _0x53ab4e=0x0;_0x53ab4e<_0x4ab3ba[_0x302ead(0x1cb)];_0x53ab4e++){lodash['isArray'](_0x4ab3ba[_0x53ab4e])&&_0x4ab3ba[_0x53ab4e][_0x302ead(0x1cb)]>0x0&&lodash['isString'](_0x4ab3ba[_0x53ab4e][0x0])&&(_0xd8efbc[_0x4ab3ba[_0x53ab4e][0x0]]=this[_0x302ead(0x17d)](_0x4ab3ba[_0x53ab4e][0x0],_0x4ab3ba[_0x53ab4e][_0x302ead(0x1cb)]>0x1?_0x4ab3ba[_0x53ab4e][0x1]:null));}return _0xd8efbc;}},'koasend':{'value':function(_0x30a336,_0x240e5d){const _0x267c09=_0x185cba;if(!fs[_0x267c09(0x171)](this[_0x267c09(0x18d)]['getAppDir']()+'/'+_0x30a336))return _0x267c09(0x194);return this[_0x267c09(0x178)](_0x240e5d||_0x30a336),koasend(this,_0x30a336);}}});});}async[a2_0x4cd68b(0x1d2)](){const _0x3d4c89=a2_0x4cd68b;var _0x39ec0f,_0x10a01c;if(fs[_0x3d4c89(0x171)](this[_0x3d4c89(0x18d)]['getBaseDir']()+_0x3d4c89(0x181))&&fs[_0x3d4c89(0x185)](this['app'][_0x3d4c89(0x1e1)]()+_0x3d4c89(0x181))[_0x3d4c89(0x1aa)]()){const _0x665d2d=this['config'][_0x3d4c89(0x17f)](),_0x55bf2b=((_0x39ec0f=_0x665d2d===null||_0x665d2d===void 0x0?void 0x0:_0x665d2d[_0x3d4c89(0x1a7)])===null||_0x39ec0f===void 0x0?void 0x0:_0x39ec0f[_0x3d4c89(0x1cc)])||{};for(const _0x115041 of fs['readdirSync'](this[_0x3d4c89(0x18d)]['getBaseDir']()+_0x3d4c89(0x181))){if(!fs['statSync'](this[_0x3d4c89(0x18d)][_0x3d4c89(0x1e1)]()+_0x3d4c89(0x188)+_0x115041)['isDirectory']())continue;if(_0x55bf2b===null||_0x55bf2b===void 0x0?void 0x0:_0x55bf2b[_0x115041])continue;_0x55bf2b[_0x115041]=Object[_0x3d4c89(0x19a)]({},((_0x10a01c=_0x665d2d===null||_0x665d2d===void 0x0?void 0x0:_0x665d2d['midwayLogger'])===null||_0x10a01c===void 0x0?void 0x0:_0x10a01c[_0x3d4c89(0x1dc)])||{'maxSize':'1m','dir':this[_0x3d4c89(0x18d)][_0x3d4c89(0x1a8)]()+_0x3d4c89(0x1d9)},{'enableJSON':!![],'enableConsole':this[_0x3d4c89(0x17c)][_0x3d4c89(0x1d7)](),'fileLogName':_0x115041+_0x3d4c89(0x1e3),'dir':this[_0x3d4c89(0x18d)]['getAppDir']()+'/runtime/apps-'+_0x115041+_0x3d4c89(0x18e)});}Object[_0x3d4c89(0x1bc)](_0x55bf2b)[_0x3d4c89(0x1cb)]>0x0&&(!_0x665d2d['midwayLogger']&&(_0x665d2d[_0x3d4c89(0x1a7)]={'default':{'maxSize':'1m','dir':this['app'][_0x3d4c89(0x1a8)]()+_0x3d4c89(0x1d9)}}),_0x665d2d[_0x3d4c89(0x1a7)][_0x3d4c89(0x1cc)]=_0x55bf2b),this[_0x3d4c89(0x1a6)][_0x3d4c89(0x196)](_0x665d2d);}}async[a2_0x4cd68b(0x169)](){const _0xb2e055=a2_0x4cd68b;var _0x1f8553,_0x3b7e0f,_0x44b1ad,_0x2daa80,_0xbd27c5,_0x4cc1a4;const _0x2c22d2=this[_0xb2e055(0x1a6)][_0xb2e055(0x17f)]();((_0x3b7e0f=(_0x1f8553=_0x2c22d2===null||_0x2c22d2===void 0x0?void 0x0:_0x2c22d2['anncicapi'])===null||_0x1f8553===void 0x0?void 0x0:_0x1f8553[_0xb2e055(0x179)])===null||_0x3b7e0f===void 0x0?void 0x0:_0x3b7e0f[_0xb2e055(0x1c6)])&&Object[_0xb2e055(0x1bc)](_0x2c22d2[_0xb2e055(0x1be)][_0xb2e055(0x179)])[_0xb2e055(0x1cb)]>0x1&&delete _0x2c22d2[_0xb2e055(0x1be)][_0xb2e055(0x179)][_0xb2e055(0x1c6)];if((_0x44b1ad=_0x2c22d2===null||_0x2c22d2===void 0x0?void 0x0:_0x2c22d2['staticFile'])===null||_0x44b1ad===void 0x0?void 0x0:_0x44b1ad['dirs'])for(const _0xa42603 in _0x2c22d2[_0xb2e055(0x1df)]['dirs']){((_0x2daa80=_0x2c22d2['staticFile'][_0xb2e055(0x173)][_0xa42603])===null||_0x2daa80===void 0x0?void 0x0:_0x2daa80[_0xb2e055(0x1c3)])&&typeof((_0xbd27c5=_0x2c22d2[_0xb2e055(0x1df)]['dirs'][_0xa42603])===null||_0xbd27c5===void 0x0?void 0x0:_0xbd27c5[_0xb2e055(0x1c3)])=='string'&&!fs['existsSync'](_0x2c22d2[_0xb2e055(0x1df)][_0xb2e055(0x173)][_0xa42603]['dir'])&&(fs[_0xb2e055(0x167)](_0x2c22d2['staticFile'][_0xb2e055(0x173)][_0xa42603][_0xb2e055(0x1c3)],{'recursive':!![]}),console['log'](_0xb2e055(0x1c1)+_0x2c22d2[_0xb2e055(0x1df)][_0xb2e055(0x173)][_0xa42603][_0xb2e055(0x1c3)]));}((_0x4cc1a4=_0x2c22d2===null||_0x2c22d2===void 0x0?void 0x0:_0x2c22d2[_0xb2e055(0x1e2)])===null||_0x4cc1a4===void 0x0?void 0x0:_0x4cc1a4[_0xb2e055(0x1af)])&&!fs['existsSync'](_0x2c22d2['upload'][_0xb2e055(0x1af)])&&(fs[_0xb2e055(0x167)](_0x2c22d2[_0xb2e055(0x1e2)][_0xb2e055(0x1af)],{'recursive':!![]}),console[_0xb2e055(0x16d)](_0xb2e055(0x16f)+_0x2c22d2[_0xb2e055(0x1e2)]['tmpdir'])),this[_0xb2e055(0x1a6)][_0xb2e055(0x196)](_0x2c22d2);}};__decorate([(0x0,core_1[a2_0x4cd68b(0x1d5)])(),__metadata(a2_0x4cd68b(0x19f),Object)],CustomConfiguration[a2_0x4cd68b(0x192)],a2_0x4cd68b(0x18d),void 0x0),__decorate([(0x0,core_1[a2_0x4cd68b(0x1bf)])(),__metadata(a2_0x4cd68b(0x19f),core_2[a2_0x4cd68b(0x193)])],CustomConfiguration[a2_0x4cd68b(0x192)],a2_0x4cd68b(0x1a6),void 0x0),__decorate([(0x0,core_1[a2_0x4cd68b(0x1bf)])(),__metadata(a2_0x4cd68b(0x19f),core_2[a2_0x4cd68b(0x166)])],CustomConfiguration[a2_0x4cd68b(0x192)],a2_0x4cd68b(0x1c4),void 0x0),__decorate([(0x0,core_1[a2_0x4cd68b(0x1bf)])(),__metadata(a2_0x4cd68b(0x19f),core_2[a2_0x4cd68b(0x1ac)])],CustomConfiguration[a2_0x4cd68b(0x192)],a2_0x4cd68b(0x1dd),void 0x0),__decorate([(0x0,core_1[a2_0x4cd68b(0x1bf)])(),__metadata(a2_0x4cd68b(0x19f),core_2[a2_0x4cd68b(0x17b)])],CustomConfiguration[a2_0x4cd68b(0x192)],a2_0x4cd68b(0x17c),void 0x0),__decorate([(0x0,core_1[a2_0x4cd68b(0x1bf)])(),__metadata('design:type',ApiService_1[a2_0x4cd68b(0x1ca)])],CustomConfiguration[a2_0x4cd68b(0x192)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4cd68b(0x1d8)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4cd68b(0x1c9),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4cd68b(0x16c)]=CustomConfiguration;function a2_0x4e83(){const _0xc0ff1c=['requestContext','device','default','application','./service/ApiService','staticFile','86316UMGnWY','getBaseDir','upload','.log','body','@midwayjs/upload','apimit','60GVqrnC','MidwayDecoratorService','mkdirSync','(((.+)+)+)+$','filterConfig','args','query','CustomConfiguration','log','checksign','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','410683cgEjtG','existsSync','metadata','dirs','registerMethodHandler','match','_matchedRoute','koa','attachment','devices','334204KmMHyJ','MidwayEnvironmentService','environment','input','471370uzMVIC','getConfiguration','hanlderApplications','/apps','forEach','target','INTERCEPT_KEY','statSync','defaultsDeep','HEADERS_SIGNATURE','/apps/','@midwayjs/core','@midwayjs/cross-domain','decorate','__decorate','app','-log','getAsync','string','defineProperty','prototype','MidwayConfigService','文件不存在','8oOQlcm','addObject','./types/intercept','@midwayjs/static-file','toString','assign','isNull','search','object','handler','design:type','undefined','6402006mLGaHE','__metadata','bodyXml','./types/action','2559953cppSKs','config','midwayLogger','getAppDir','ACTION_ROUTE_KEY','isDirectory','62148myPNzl','MidwayApplicationManager','33OdknhK','handlerActionRoute','tmpdir','checkConfigKeys','Types','context','function','REQUEST_OBJ_CTX_KEY','defineProperties','90ovRnPx','ApiError','intercept','@anncic-api/core','proceed','get','keys','request','anncicapi','Inject','toLowerCase','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/i18n','dir','decorator','key','DEFAULT','constructor','apply','anncic-api','ApiService','length','clients','./exception/ApiError','koa-send','getOwnPropertyDescriptor','./config/config.production','@midwayjs/koa','loggerConfig','method','headers','App','21DvpRnL','isDevelopmentEnvironment','Configuration','/runtime'];a2_0x4e83=function(){return _0xc0ff1c;};return a2_0x4e83();}
|
|
1
|
+
function a2_0x3b88(_0x423d2e,_0x253ac2){const _0x4d8ade=a2_0xa7bd();return a2_0x3b88=function(_0x21d267,_0x4c9118){_0x21d267=_0x21d267-0xa9;let _0xa7bd64=_0x4d8ade[_0x21d267];return _0xa7bd64;},a2_0x3b88(_0x423d2e,_0x253ac2);}const a2_0x3f1598=a2_0x3b88;(function(_0x29dbc0,_0x4f5d61){const _0x16a421=a2_0x3b88,_0x47768c=_0x29dbc0();while(!![]){try{const _0x14444f=-parseInt(_0x16a421(0xe3))/0x1+-parseInt(_0x16a421(0xdd))/0x2+-parseInt(_0x16a421(0xde))/0x3+-parseInt(_0x16a421(0x10c))/0x4+-parseInt(_0x16a421(0xd7))/0x5*(parseInt(_0x16a421(0x115))/0x6)+-parseInt(_0x16a421(0xb9))/0x7*(-parseInt(_0x16a421(0xe0))/0x8)+parseInt(_0x16a421(0xf0))/0x9*(parseInt(_0x16a421(0xb6))/0xa);if(_0x14444f===_0x4f5d61)break;else _0x47768c['push'](_0x47768c['shift']());}catch(_0x4e2efc){_0x47768c['push'](_0x47768c['shift']());}}}(a2_0xa7bd,0x28633));const a2_0x4c9118=(function(){let _0x21d012=!![];return function(_0x5b8702,_0x23379b){const _0x518997=_0x21d012?function(){const _0x1db3e1=a2_0x3b88;if(_0x23379b){const _0x5ecf4f=_0x23379b[_0x1db3e1(0xcc)](_0x5b8702,arguments);return _0x23379b=null,_0x5ecf4f;}}:function(){};return _0x21d012=![],_0x518997;};}()),a2_0x21d267=a2_0x4c9118(this,function(){const _0x3559f6=a2_0x3b88;return a2_0x21d267['toString']()[_0x3559f6(0xdf)](_0x3559f6(0x114))[_0x3559f6(0xaf)]()[_0x3559f6(0xf4)](a2_0x21d267)['search']('(((.+)+)+)+$');});a2_0x21d267();'use strict';var __decorate=this&&this[a2_0x3f1598(0x120)]||function(_0x118505,_0x291ffe,_0x3a9bce,_0x6413bf){const _0x5cd99a=a2_0x3f1598;var _0x1d6f8a=arguments[_0x5cd99a(0x100)],_0x4c0768=_0x1d6f8a<0x3?_0x291ffe:_0x6413bf===null?_0x6413bf=Object['getOwnPropertyDescriptor'](_0x291ffe,_0x3a9bce):_0x6413bf,_0x3269f9;if(typeof Reflect===_0x5cd99a(0xfa)&&typeof Reflect[_0x5cd99a(0xda)]===_0x5cd99a(0xdc))_0x4c0768=Reflect[_0x5cd99a(0xda)](_0x118505,_0x291ffe,_0x3a9bce,_0x6413bf);else{for(var _0x30ba6b=_0x118505[_0x5cd99a(0x100)]-0x1;_0x30ba6b>=0x0;_0x30ba6b--)if(_0x3269f9=_0x118505[_0x30ba6b])_0x4c0768=(_0x1d6f8a<0x3?_0x3269f9(_0x4c0768):_0x1d6f8a>0x3?_0x3269f9(_0x291ffe,_0x3a9bce,_0x4c0768):_0x3269f9(_0x291ffe,_0x3a9bce))||_0x4c0768;}return _0x1d6f8a>0x3&&_0x4c0768&&Object[_0x5cd99a(0xea)](_0x291ffe,_0x3a9bce,_0x4c0768),_0x4c0768;},__metadata=this&&this[a2_0x3f1598(0xa9)]||function(_0x4dc1b8,_0x16ecfe){const _0xa281d4=a2_0x3f1598;if(typeof Reflect===_0xa281d4(0xfa)&&typeof Reflect[_0xa281d4(0xe4)]===_0xa281d4(0xdc))return Reflect['metadata'](_0x4dc1b8,_0x16ecfe);};function a2_0xa7bd(){const _0x2888bc=['dir','getConfiguration','loggerConfig','prototype','__metadata','handlerActionRoute','string','keys','defaultsDeep','environment','toString','forEach','@midwayjs/core','key','staticFile','InterceptTargetTmp','headers','60KSsexG','@anncic-api/validator','.log','5404IXuynb','isArray','statSync','dirs','Types','midwayLogger','CustomConfiguration','onReady','@midwayjs/koa','config','DEFAULT','match','context','application','REQUEST_OBJ_CTX_KEY','INTERCEPT_KEY','isString','@midwayjs/i18n','intercept','apply','MidwayApplicationManager','devices','checksign','default','get','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','_matchedRoute','anncicapi','Anncic-api\x20static-file\x20:\x20mkdir\x20','design:type','25050xagFcu','args','apimit','decorate','@anncic-api/event','function','47410dQiVuf','362736VZdjWk','search','864IsFquR','./types/action','__esModule','325881ASfqWm','metadata','bodyXml','@anncic-api/typeorm','mkdirSync','@anncic-api/core','handler','defineProperty','query','Inject','MidwayEnvironmentService','isDevelopmentEnvironment','device','1055034bjrVIS','target','method','decorator','constructor','ApiError','./service/ApiService','getAsync','文件不存在','ApiService','object','input','upload','registerMethodHandler','readdirSync','filterConfig','length','getAppDir','app','MidwayConfigService','getBaseDir','./exception/ApiError','undefined','hanlderApplications','HEADERS_SIGNATURE','addObject','attachment','log','563148BXofDr','clients','./config/config.production','isClass','isNull','getApplications','@midwayjs/upload','Configuration','(((.+)+)+)+$','12LvAPQT','/runtime/apps-','checkConfigKeys','tmpdir','./types/intercept','defineProperties','koa-send','/runtime','toLowerCase','getClassMetadata','existsSync','__decorate','isDirectory','@anncic-api/cache','request'];a2_0xa7bd=function(){return _0x2888bc;};return a2_0xa7bd();}Object[a2_0x3f1598(0xea)](exports,a2_0x3f1598(0xe2),{'value':!![]}),exports[a2_0x3f1598(0xbf)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x3f1598(0xb1)),ApiError_1=require(a2_0x3f1598(0x105)),ApiService_1=require(a2_0x3f1598(0xf6)),action_1=require(a2_0x3f1598(0xe1)),intercept_1=require(a2_0x3f1598(0x119)),fs=require('fs'),koasend=require(a2_0x3f1598(0x11b)),koa=require(a2_0x3f1598(0xc1)),i18n=require(a2_0x3f1598(0xca)),upload=require(a2_0x3f1598(0x112)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x3f1598(0x10e)),anncic=require(a2_0x3f1598(0xe8)),anncicCache=require(a2_0x3f1598(0x122)),anncicEvent=require(a2_0x3f1598(0xdb)),anncicTypeorm=require(a2_0x3f1598(0xe6)),anncicValidator=require(a2_0x3f1598(0xb7)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x3f1598(0xc0)](){const _0x252c73=a2_0x3f1598;await this[_0x252c73(0xff)](),await this[_0x252c73(0x126)](),await this['checkConfigKeys'](),await this[_0x252c73(0xaa)](),await this[_0x252c73(0x107)]();}async[a2_0x3f1598(0x117)](){}async['handlerActionRoute'](){const _0x19ba9c=a2_0x3f1598,_0x17d7cb=(0x0,core_1[_0x19ba9c(0x11e)])(intercept_1[_0x19ba9c(0xc8)],intercept_1[_0x19ba9c(0xb4)])||{};this[_0x19ba9c(0xf3)][_0x19ba9c(0xfd)](action_1['ACTION_ROUTE_KEY'],_0x4b461b=>{const _0x34107f=_0x19ba9c,_0x15ffe5=_0x4b461b[_0x34107f(0xe4)];return{'before':async _0x50bbbe=>{const _0x47a1b5=_0x34107f;var _0x38064e,_0x4c17b5;const _0xf97c77=(_0x38064e=_0x50bbbe===null||_0x50bbbe===void 0x0?void 0x0:_0x50bbbe['target'])===null||_0x38064e===void 0x0?void 0x0:_0x38064e[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xf97c77&&(_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5[_0x47a1b5(0xd9)])){if(!this['ApiService'][_0x47a1b5(0xcf)]((_0x4c17b5=_0xf97c77===null||_0xf97c77===void 0x0?void 0x0:_0xf97c77[_0x47a1b5(0x123)])===null||_0x4c17b5===void 0x0?void 0x0:_0x4c17b5[_0x47a1b5(0xb5)]))throw new AnnError(ApiError_1[_0x47a1b5(0xf5)][_0x47a1b5(0x108)]);}},'around':async _0xef4dde=>{const _0x2f52d4=_0x34107f;var _0x42047a,_0x18e038,_0x1092f4;const _0x4fa64c=(_0x42047a=_0xef4dde===null||_0xef4dde===void 0x0?void 0x0:_0xef4dde[_0x2f52d4(0xf1)])===null||_0x42047a===void 0x0?void 0x0:_0x42047a[core_2[_0x2f52d4(0xc7)]];if(_0x4fa64c&&(_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5['apimit'])&&((_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5[_0x2f52d4(0xcb)])||typeof(_0x15ffe5===null||_0x15ffe5===void 0x0?void 0x0:_0x15ffe5[_0x2f52d4(0xcb)])==_0x2f52d4(0x106))){if(((_0x18e038=_0x4fa64c[_0x2f52d4(0xb5)])===null||_0x18e038===void 0x0?void 0x0:_0x18e038[_0x2f52d4(0xef)])&&((_0x1092f4=_0x17d7cb===null||_0x17d7cb===void 0x0?void 0x0:_0x17d7cb[_0x4fa64c[_0x2f52d4(0xb5)][_0x2f52d4(0xef)]])===null||_0x1092f4===void 0x0?void 0x0:_0x1092f4[_0x2f52d4(0x100)])>0x0)for(const _0x352c2a of _0x17d7cb[_0x4fa64c[_0x2f52d4(0xb5)]['device']]||[]){if(core_1[_0x2f52d4(0xbd)][_0x2f52d4(0x10f)](_0x352c2a)){const _0x3b5fe9=await _0x4fa64c['requestContext'][_0x2f52d4(0xf7)](_0x352c2a);typeof(_0x3b5fe9===null||_0x3b5fe9===void 0x0?void 0x0:_0x3b5fe9[_0x2f52d4(0xc4)])==_0x2f52d4(0xdc)?await _0x3b5fe9['match'](_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c['method'])==_0x2f52d4(0xab)&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)])?_0x4fa64c[_0x2f52d4(0xf2)][_0x2f52d4(0x11d)]()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)]):undefined,_0x15ffe5)&&await _0x3b5fe9[_0x2f52d4(0xe9)](_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xf2)])=='string'&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)])?_0x4fa64c['method'][_0x2f52d4(0x11d)]()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)]):undefined,_0x15ffe5):await _0x3b5fe9[_0x2f52d4(0xe9)](_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xf2)])==_0x2f52d4(0xab)&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)])?_0x4fa64c[_0x2f52d4(0xf2)]['toLowerCase']()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c['_matchedRoute']):undefined,_0x15ffe5);}else core_1['Types']['isFunction'](_0x352c2a)&&await _0x352c2a(_0x4fa64c,typeof(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xf2)])==_0x2f52d4(0xab)&&(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c['_matchedRoute'])?_0x4fa64c[_0x2f52d4(0xf2)]['toLowerCase']()+'@'+(_0x4fa64c===null||_0x4fa64c===void 0x0?void 0x0:_0x4fa64c[_0x2f52d4(0xd3)]):undefined,_0x15ffe5);}}return await _0xef4dde['proceed'](..._0xef4dde[_0x2f52d4(0xd8)]);},'afterThrow':(_0xd8fd1a,_0x10b79f)=>{throw _0x10b79f;}};});}async[a2_0x3f1598(0x107)](){const _0x22e266=a2_0x3f1598;this[_0x22e266(0xc6)][_0x22e266(0x111)](['koa'])[_0x22e266(0xb0)](_0x368183=>{const _0x14d43f=_0x22e266;(_0x368183===null||_0x368183===void 0x0?void 0x0:_0x368183[_0x14d43f(0xc5)])&&Object[_0x14d43f(0x11a)](_0x368183[_0x14d43f(0xc5)],{'ok':{'value':function(_0x8ec441,_0xc32b5e,_0x5293d3=0x0){return{'code':_0x5293d3,'data':_0x8ec441,'extra':_0xc32b5e};}},'input':{'value':function(_0x55e154,_0x392d15){const _0x1e7eed=_0x14d43f;var _0x551ba4;const _0x459322=lodash[_0x1e7eed(0xad)]({},this[_0x1e7eed(0x123)]['body']||this[_0x1e7eed(0x123)][((_0x551ba4=config===null||config===void 0x0?void 0x0:config[_0x1e7eed(0xe5)])===null||_0x551ba4===void 0x0?void 0x0:_0x551ba4[_0x1e7eed(0xb2)])||'body']||{},this['request'][_0x1e7eed(0xeb)]||{});return _0x55e154?lodash[_0x1e7eed(0xd1)](_0x459322,_0x55e154,_0x392d15):_0x459322;}},'when':{'value':async function(_0x59dc17,_0x1922aa){const _0x369dd2=_0x14d43f,_0x284310=this[_0x369dd2(0xfb)](_0x59dc17,null);if(!lodash[_0x369dd2(0x110)](_0x284310))return await _0x1922aa(_0x284310);}},'only':{'value':function(_0x423238){const _0x219657=_0x14d43f,_0x10d0b5={};for(let _0x29b46e=0x0;_0x29b46e<_0x423238[_0x219657(0x100)];_0x29b46e++){lodash[_0x219657(0xba)](_0x423238[_0x29b46e])&&_0x423238[_0x29b46e][_0x219657(0x100)]>0x0&&lodash[_0x219657(0xc9)](_0x423238[_0x29b46e][0x0])&&(_0x10d0b5[_0x423238[_0x29b46e][0x0]]=this[_0x219657(0xfb)](_0x423238[_0x29b46e][0x0],_0x423238[_0x29b46e][_0x219657(0x100)]>0x1?_0x423238[_0x29b46e][0x1]:null));}return _0x10d0b5;}},'koasend':{'value':function(_0x35e3bf,_0x11c5b3){const _0x5ca498=_0x14d43f;if(!fs[_0x5ca498(0x11f)](this[_0x5ca498(0x102)][_0x5ca498(0x101)]()+'/'+_0x35e3bf))return _0x5ca498(0xf8);return this[_0x5ca498(0x10a)](_0x11c5b3||_0x35e3bf),koasend(this,_0x35e3bf);}}});});}async[a2_0x3f1598(0x126)](){const _0xb4001=a2_0x3f1598;var _0x254fb8,_0xf3cce7;if(fs[_0xb4001(0x11f)](this[_0xb4001(0x102)][_0xb4001(0x104)]()+'/apps')&&fs['statSync'](this['app'][_0xb4001(0x104)]()+'/apps')[_0xb4001(0x121)]()){const _0x4d1197=this[_0xb4001(0xc2)][_0xb4001(0x125)](),_0x442309=((_0x254fb8=_0x4d1197===null||_0x4d1197===void 0x0?void 0x0:_0x4d1197['midwayLogger'])===null||_0x254fb8===void 0x0?void 0x0:_0x254fb8[_0xb4001(0x10d)])||{};for(const _0xfb0479 of fs[_0xb4001(0xfe)](this[_0xb4001(0x102)]['getBaseDir']()+'/apps')){if(!fs[_0xb4001(0xbb)](this[_0xb4001(0x102)]['getBaseDir']()+'/apps/'+_0xfb0479)['isDirectory']())continue;if(_0x442309===null||_0x442309===void 0x0?void 0x0:_0x442309[_0xfb0479])continue;_0x442309[_0xfb0479]=Object['assign']({},((_0xf3cce7=_0x4d1197===null||_0x4d1197===void 0x0?void 0x0:_0x4d1197[_0xb4001(0xbe)])===null||_0xf3cce7===void 0x0?void 0x0:_0xf3cce7[_0xb4001(0xd0)])||{'maxSize':'1m','dir':this[_0xb4001(0x102)][_0xb4001(0x101)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0xb4001(0xae)][_0xb4001(0xee)](),'fileLogName':_0xfb0479+_0xb4001(0xb8),'dir':this['app'][_0xb4001(0x101)]()+_0xb4001(0x116)+_0xfb0479+'-log'});}Object[_0xb4001(0xac)](_0x442309)['length']>0x0&&(!_0x4d1197[_0xb4001(0xbe)]&&(_0x4d1197[_0xb4001(0xbe)]={'default':{'maxSize':'1m','dir':this['app'][_0xb4001(0x101)]()+_0xb4001(0x11c)}}),_0x4d1197[_0xb4001(0xbe)][_0xb4001(0x10d)]=_0x442309),this[_0xb4001(0xc2)][_0xb4001(0x109)](_0x4d1197);}}async[a2_0x3f1598(0xff)](){const _0x1a4c06=a2_0x3f1598;var _0x23bb9d,_0x3e4700,_0x68e925,_0xe0e6dc,_0x26c272,_0xc37e05;const _0x37bdd9=this[_0x1a4c06(0xc2)]['getConfiguration']();((_0x3e4700=(_0x23bb9d=_0x37bdd9===null||_0x37bdd9===void 0x0?void 0x0:_0x37bdd9[_0x1a4c06(0xd4)])===null||_0x23bb9d===void 0x0?void 0x0:_0x23bb9d[_0x1a4c06(0xce)])===null||_0x3e4700===void 0x0?void 0x0:_0x3e4700[_0x1a4c06(0xc3)])&&Object[_0x1a4c06(0xac)](_0x37bdd9[_0x1a4c06(0xd4)][_0x1a4c06(0xce)])['length']>0x1&&delete _0x37bdd9[_0x1a4c06(0xd4)][_0x1a4c06(0xce)]['DEFAULT'];if((_0x68e925=_0x37bdd9===null||_0x37bdd9===void 0x0?void 0x0:_0x37bdd9['staticFile'])===null||_0x68e925===void 0x0?void 0x0:_0x68e925[_0x1a4c06(0xbc)])for(const _0x458448 in _0x37bdd9[_0x1a4c06(0xb3)]['dirs']){((_0xe0e6dc=_0x37bdd9[_0x1a4c06(0xb3)]['dirs'][_0x458448])===null||_0xe0e6dc===void 0x0?void 0x0:_0xe0e6dc[_0x1a4c06(0x124)])&&typeof((_0x26c272=_0x37bdd9[_0x1a4c06(0xb3)][_0x1a4c06(0xbc)][_0x458448])===null||_0x26c272===void 0x0?void 0x0:_0x26c272['dir'])==_0x1a4c06(0xab)&&!fs[_0x1a4c06(0x11f)](_0x37bdd9[_0x1a4c06(0xb3)][_0x1a4c06(0xbc)][_0x458448][_0x1a4c06(0x124)])&&(fs[_0x1a4c06(0xe7)](_0x37bdd9['staticFile'][_0x1a4c06(0xbc)][_0x458448][_0x1a4c06(0x124)],{'recursive':!![]}),console[_0x1a4c06(0x10b)](_0x1a4c06(0xd5)+_0x37bdd9['staticFile'][_0x1a4c06(0xbc)][_0x458448][_0x1a4c06(0x124)]));}((_0xc37e05=_0x37bdd9===null||_0x37bdd9===void 0x0?void 0x0:_0x37bdd9['upload'])===null||_0xc37e05===void 0x0?void 0x0:_0xc37e05[_0x1a4c06(0x118)])&&!fs[_0x1a4c06(0x11f)](_0x37bdd9['upload'][_0x1a4c06(0x118)])&&(fs[_0x1a4c06(0xe7)](_0x37bdd9[_0x1a4c06(0xfc)][_0x1a4c06(0x118)],{'recursive':!![]}),console[_0x1a4c06(0x10b)](_0x1a4c06(0xd2)+_0x37bdd9[_0x1a4c06(0xfc)][_0x1a4c06(0x118)])),this[_0x1a4c06(0xc2)][_0x1a4c06(0x109)](_0x37bdd9);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x3f1598(0xd6),Object)],CustomConfiguration[a2_0x3f1598(0x127)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata(a2_0x3f1598(0xd6),core_2[a2_0x3f1598(0x103)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xc2),void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xf3),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x3f1598(0xd6),core_2[a2_0x3f1598(0xcd)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xc6),void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata(a2_0x3f1598(0xd6),core_2[a2_0x3f1598(0xed)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xae),void 0x0),__decorate([(0x0,core_1[a2_0x3f1598(0xec)])(),__metadata('design:type',ApiService_1[a2_0x3f1598(0xf9)])],CustomConfiguration[a2_0x3f1598(0x127)],a2_0x3f1598(0xf9),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x3f1598(0x113)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x3f1598(0xbf)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x33538b=a3_0x3475;(function(_0x516ad2,_0x4db5ed){const _0x5141fb=a3_0x3475,_0x264352=_0x516ad2();while(!![]){try{const _0x318946=parseInt(_0x5141fb(0x159))/0x1*(-parseInt(_0x5141fb(0x14a))/0x2)+parseInt(_0x5141fb(0x177))/0x3+-parseInt(_0x5141fb(0x143))/0x4*(-parseInt(_0x5141fb(0x176))/0x5)+parseInt(_0x5141fb(0x144))/0x6*(parseInt(_0x5141fb(0x174))/0x7)+-parseInt(_0x5141fb(0x16f))/0x8+parseInt(_0x5141fb(0x14c))/0x9+parseInt(_0x5141fb(0x155))/0xa;if(_0x318946===_0x4db5ed)break;else _0x264352['push'](_0x264352['shift']());}catch(_0x2e7037){_0x264352['push'](_0x264352['shift']());}}}(a3_0x5f29,0x81fd9));const a3_0x21ae92=(function(){let _0x4539d0=!![];return function(_0xa0f528,_0x1a1d04){const _0x1dcb51=_0x4539d0?function(){const _0x5a0dfe=a3_0x3475;if(_0x1a1d04){const _0x2d617d=_0x1a1d04[_0x5a0dfe(0x157)](_0xa0f528,arguments);return _0x1a1d04=null,_0x2d617d;}}:function(){};return _0x4539d0=![],_0x1dcb51;};}()),a3_0x580a41=a3_0x21ae92(this,function(){const _0x3a6495=a3_0x3475;return a3_0x580a41[_0x3a6495(0x154)]()[_0x3a6495(0x169)](_0x3a6495(0x16e))['toString']()[_0x3a6495(0x152)](a3_0x580a41)[_0x3a6495(0x169)]('(((.+)+)+)+$');});function a3_0x3475(_0xb8192b,_0x33f83a){const _0x415f71=a3_0x5f29();return a3_0x3475=function(_0x580a41,_0x21ae92){_0x580a41=_0x580a41-0x141;let _0x5f2928=_0x415f71[_0x580a41];return _0x5f2928;},a3_0x3475(_0xb8192b,_0x33f83a);}a3_0x580a41();'use strict';function a3_0x5f29(){const _0x4d96b9=['match','211798jWYerU','module','1894527nhxTRs','apps/','app/controller/','filepath','substring','/config.','constructor','endsWith','toString','1141080CvHtfP','replace','apply','ACTION_KEY','7mxmVAJ','\x20文件请放在apps/','middlewareIgnore','@midwayjs/core','trim','-action','tagName','existsSync','__esModule','/controller/文件下','middleware','defineProperty','/apps/','saveModule','length','prefix','search','join','route','splice','split','(((.+)+)+)+$','1289000swospo','basic/controller/','saveClassMetadata','rootpath','getClassMetadata','15659qFqweR','startsWith','5MdogxB','506931QkVFho','APPSCONFIG_KEY','toLowerCase','parseRoute','Controller','2861336DKgOUP','606BczCIQ','filter','Action','indexOf','../types/action'];a3_0x5f29=function(){return _0x4d96b9;};return a3_0x5f29();}Object[a3_0x33538b(0x164)](exports,a3_0x33538b(0x161),{'value':!![]}),exports[a3_0x33538b(0x141)]=exports[a3_0x33538b(0x146)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x33538b(0x15c)),action_1=require(a3_0x33538b(0x148));function Action(_0x4c33b3,_0x1c7ddc,_0x7423ff={'middleware':[],'sensitive':!![]}){return _0x24ebe5=>{const _0x5632bf=a3_0x3475;var _0x86ad72;_0x7423ff[_0x5632bf(0x15f)]=_0x1c7ddc;const _0x4e01dd=parseRoute(_0x4c33b3);if(_0x4e01dd[_0x5632bf(0x14b)]){_0x7423ff[_0x5632bf(0x168)]=_0x7423ff[_0x5632bf(0x168)]?'/'+_0x4e01dd[_0x5632bf(0x14b)]+'/'+_0x7423ff['prefix']:'/'+_0x4e01dd[_0x5632bf(0x16b)];_0x4e01dd['prefix']&&(_0x7423ff[_0x5632bf(0x168)]='/'+_0x4e01dd[_0x5632bf(0x168)]+'/'+_0x7423ff[_0x5632bf(0x168)]);if(fs[_0x5632bf(0x160)](_0x4e01dd['rootpath']+_0x5632bf(0x165)+_0x4e01dd['module']+_0x5632bf(0x151)+(lodash['endsWith'](_0x4e01dd[_0x5632bf(0x14f)],'ts')?'ts':'js'))){const _0x40cab1=include(_0x4e01dd[_0x5632bf(0x172)]+_0x5632bf(0x165)+_0x4e01dd[_0x5632bf(0x14b)]+_0x5632bf(0x151)+(lodash['endsWith'](_0x4e01dd[_0x5632bf(0x14f)],'ts')?'ts':'js'));if(_0x40cab1['middleware']&&lodash['isArray'](_0x40cab1[_0x5632bf(0x163)])&&_0x40cab1[_0x5632bf(0x163)][_0x5632bf(0x167)]>0x0)for(let _0x157e38 in _0x40cab1[_0x5632bf(0x163)]){if(((_0x86ad72=_0x40cab1===null||_0x40cab1===void 0x0?void 0x0:_0x40cab1[_0x5632bf(0x15b)])===null||_0x86ad72===void 0x0?void 0x0:_0x86ad72[_0x5632bf(0x167)])>0x0&&_0x40cab1['middlewareIgnore']['indexOf'](_0x40cab1[_0x5632bf(0x163)][_0x157e38])!=-0x1)continue;_0x7423ff['middleware']['push'](_0x40cab1[_0x5632bf(0x163)][_0x157e38]);}const _0x3dcb69=(0x0,core_1[_0x5632bf(0x173)])(action_1[_0x5632bf(0x178)],action_1['AppsConfigTmp'])||{};_0x3dcb69[''+_0x4e01dd[_0x5632bf(0x14b)]]=_0x40cab1,(0x0,core_1[_0x5632bf(0x171)])(action_1['APPSCONFIG_KEY'],_0x3dcb69,action_1['AppsConfigTmp']);}_0x7423ff[_0x5632bf(0x168)]=_0x7423ff['prefix'][_0x5632bf(0x179)]()[_0x5632bf(0x156)](/\/{2,}/g,'/'),(0x0,core_1[_0x5632bf(0x166)])(action_1['ACTION_KEY'],_0x24ebe5),(0x0,core_1['Controller'])(_0x7423ff[_0x5632bf(0x168)],_0x7423ff)(_0x24ebe5),(0x0,core_1[_0x5632bf(0x171)])(action_1[_0x5632bf(0x158)],{'prefix':_0x7423ff['prefix'],'pprefix':_0x4e01dd[_0x5632bf(0x168)],'module':_0x4e01dd['module'],'filepath':_0x4e01dd['filepath'],'routerOptions':_0x7423ff},_0x24ebe5);}else _0x7423ff[_0x5632bf(0x168)]=_0x7423ff['prefix']?'/'+_0x7423ff[_0x5632bf(0x168)]:'/'+_0x4e01dd[_0x5632bf(0x16b)],_0x4e01dd[_0x5632bf(0x168)]&&(_0x7423ff[_0x5632bf(0x168)]='/'+_0x4e01dd[_0x5632bf(0x168)]+'/'+_0x7423ff[_0x5632bf(0x168)]),_0x7423ff[_0x5632bf(0x168)]=_0x7423ff[_0x5632bf(0x168)][_0x5632bf(0x179)]()[_0x5632bf(0x156)](/\/{2,}/g,'/'),(0x0,core_1[_0x5632bf(0x166)])(action_1[_0x5632bf(0x158)],_0x24ebe5),(0x0,core_1[_0x5632bf(0x142)])(_0x7423ff['prefix'],_0x7423ff)(_0x24ebe5),(0x0,core_1['saveClassMetadata'])(action_1[_0x5632bf(0x158)],{'prefix':_0x7423ff[_0x5632bf(0x168)],'module':_0x4e01dd[_0x5632bf(0x14b)],'pprefix':_0x4e01dd['prefix'],'filepath':_0x4e01dd[_0x5632bf(0x14f)],'routerOptions':_0x7423ff},_0x24ebe5);};}exports[a3_0x33538b(0x146)]=Action;function parseRoute(_0x49bd76){const _0x11f647=a3_0x33538b;_0x49bd76=_0x49bd76[_0x11f647(0x156)](/(\\|\/)/g,'/');const _0x6f0ea4=process['cwd']()[_0x11f647(0x156)](/(\\|\/)/g,'/'),_0x5e2a8d=_0x49bd76[_0x11f647(0x150)](0x0,_0x6f0ea4['length']+_0x49bd76[_0x11f647(0x150)](_0x6f0ea4[_0x11f647(0x167)]+0x1)[_0x11f647(0x147)]('/')+0x1),_0x4e6520=_0x49bd76[_0x11f647(0x150)](_0x5e2a8d[_0x11f647(0x167)]+0x1)[_0x11f647(0x156)](/(\\|\/)/g,'/'),_0xcffe5a={'route':'','prefix':![],'module':![],'rootpath':_0x5e2a8d,'filepath':_0x4e6520};if(_0x4e6520[_0x11f647(0x175)]('app/controller/')||_0x4e6520[_0x11f647(0x175)](_0x11f647(0x170))){const _0x5cc4df=_0x4e6520[_0x11f647(0x150)]((_0x4e6520[_0x11f647(0x175)]('app/controller/')?_0x11f647(0x14e):'basic/controller/')[_0x11f647(0x167)])[_0x11f647(0x16d)]('/')[_0x11f647(0x145)](_0x238545=>_0x238545&&_0x238545[_0x11f647(0x15d)]());return _0x5cc4df[_0x11f647(0x167)]>0x1&&(_0xcffe5a[_0x11f647(0x168)]=_0x5cc4df[0x0][_0x11f647(0x179)](),_0x5cc4df[_0x11f647(0x16c)](0x0,0x1)),_0xcffe5a[_0x11f647(0x16b)]=('/'+_0x5cc4df[_0x11f647(0x16a)]('/'))[_0x11f647(0x156)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x11f647(0x149)](/[\/|A-Z]*[^A-Z]+/g)[_0x11f647(0x16a)]('-')[_0x11f647(0x179)]()['replace'](/\/\-/g,'/'),_0xcffe5a['route'][_0x11f647(0x153)]('-action')&&(_0xcffe5a[_0x11f647(0x16b)]=_0xcffe5a[_0x11f647(0x16b)]['substring'](0x0,_0xcffe5a[_0x11f647(0x16b)]['length']-0x7)),_0xcffe5a[_0x11f647(0x16b)]['endsWith']('-controller')&&(_0xcffe5a[_0x11f647(0x16b)]=_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x150)](0x0,_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x167)]-0xb)),_0xcffe5a;}else{if(_0x4e6520[_0x11f647(0x175)](_0x11f647(0x14d))){const _0x1a70af=_0x4e6520[_0x11f647(0x150)](0x0,_0x4e6520[_0x11f647(0x147)]('/apps/')+0x5),_0x575d50=_0x4e6520[_0x11f647(0x150)](_0x1a70af[_0x11f647(0x167)]+0x1)[_0x11f647(0x156)](/(\\|\/)/g,'/')[_0x11f647(0x16d)]('/')[0x0];if(_0x4e6520['startsWith'](_0x11f647(0x14d)+_0x575d50+'/controller/')){const _0x2a5bdc=_0x4e6520[_0x11f647(0x150)]((_0x1a70af+'/'+_0x575d50+'/controller/')[_0x11f647(0x167)])['split']('/')[_0x11f647(0x145)](_0x3ae4ba=>_0x3ae4ba&&_0x3ae4ba[_0x11f647(0x15d)]());return _0x2a5bdc[_0x11f647(0x167)]>0x1&&(_0xcffe5a['prefix']=_0x2a5bdc[0x0]['toLowerCase'](),_0x2a5bdc[_0x11f647(0x16c)](0x0,0x1)),_0xcffe5a[_0x11f647(0x14b)]=_0x575d50,_0xcffe5a[_0x11f647(0x16b)]=('/'+_0x575d50+'/'+_0x2a5bdc['join']('/'))[_0x11f647(0x156)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x11f647(0x16a)]('-')[_0x11f647(0x179)]()[_0x11f647(0x156)](/\/\-/g,'/'),_0xcffe5a[_0x11f647(0x16b)]['endsWith'](_0x11f647(0x15e))&&(_0xcffe5a['route']=_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x150)](0x0,_0xcffe5a['route'][_0x11f647(0x167)]-0x7)),_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x153)]('-controller')&&(_0xcffe5a[_0x11f647(0x16b)]=_0xcffe5a['route'][_0x11f647(0x150)](0x0,_0xcffe5a[_0x11f647(0x16b)][_0x11f647(0x167)]-0xb)),_0xcffe5a;}throw new Error(_0x4e6520+_0x11f647(0x15a)+_0x575d50+_0x11f647(0x162));}}throw new Error(_0x4e6520+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x448121=a4_0x4a5a;(function(_0x2c15b6,_0x4b0ba4){const _0x157169=a4_0x4a5a,_0xd5b53=_0x2c15b6();while(!![]){try{const _0x3ad42d=parseInt(_0x157169(0xee))/0x1+parseInt(_0x157169(0xfd))/0x2+-parseInt(_0x157169(0xf6))/0x3+-parseInt(_0x157169(0x103))/0x4*(-parseInt(_0x157169(0xf8))/0x5)+-parseInt(_0x157169(0xf2))/0x6+-parseInt(_0x157169(0x10c))/0x7*(-parseInt(_0x157169(0x105))/0x8)+-parseInt(_0x157169(0xff))/0x9;if(_0x3ad42d===_0x4b0ba4)break;else _0xd5b53['push'](_0xd5b53['shift']());}catch(_0x384adf){_0xd5b53['push'](_0xd5b53['shift']());}}}(a4_0x200d,0xd64a1));const a4_0x32fc5d=(function(){let _0x45f414=!![];return function(_0x1bcf91,_0x18a560){const _0x15b493=_0x45f414?function(){const _0x309c5b=a4_0x4a5a;if(_0x18a560){const _0xd7cbfb=_0x18a560[_0x309c5b(0x10a)](_0x1bcf91,arguments);return _0x18a560=null,_0xd7cbfb;}}:function(){};return _0x45f414=![],_0x15b493;};}()),a4_0x31d86a=a4_0x32fc5d(this,function(){const _0x54beb7=a4_0x4a5a;return a4_0x31d86a[_0x54beb7(0xed)]()[_0x54beb7(0x109)](_0x54beb7(0xf4))['toString']()['constructor'](a4_0x31d86a)[_0x54beb7(0x109)](_0x54beb7(0xf4));});a4_0x31d86a();function a4_0x4a5a(_0x49a61a,_0x37a4ba){const _0x2ad92c=a4_0x200d();return a4_0x4a5a=function(_0x31d86a,_0x32fc5d){_0x31d86a=_0x31d86a-0xe9;let _0x200d5e=_0x2ad92c[_0x31d86a];return _0x200d5e;},a4_0x4a5a(_0x49a61a,_0x37a4ba);}'use strict';function a4_0x200d(){const _0x76e239=['24EimqZs','middleware','RequestMapping','@anncic-api/validator','search','apply','validate','2275084jaGFDt','del','attachClassMetadata','filter','string','toString','865924tCJrCu','Api','createCustomMethodDecorator','Validator','6677934aXztGK','middlewareIgnore','(((.+)+)+)+$','delete','890439VoVDiG','length','5GlFHHZ','ACTION_ROUTE_KEY','__esModule','get','intercept','3464210mYBqYu','routerName','16667100VIuSPZ','defineProperty','apimit','undefined','2265464HTCLRc','toLowerCase'];a4_0x200d=function(){return _0x76e239;};return a4_0x200d();}Object[a4_0x448121(0x100)](exports,a4_0x448121(0xfa),{'value':!![]}),exports[a4_0x448121(0xef)]=void 0x0;const validator_1=require(a4_0x448121(0x108)),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Api(_0x188a7a,_0x1e4de1=a4_0x448121(0xfb),_0x78080='/',_0x3f6f78={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3b4fdd,_0x4944e2,_0x5905ea)=>{const _0x20ef5f=a4_0x4a5a;var _0x2eeaa4,_0xb529db,_0x443e61;!_0x3f6f78[_0x20ef5f(0x106)]&&(_0x3f6f78['middleware']=[]);!((_0x2eeaa4=_0x3f6f78===null||_0x3f6f78===void 0x0?void 0x0:_0x3f6f78[_0x20ef5f(0x10b)])===null||_0x2eeaa4===void 0x0?void 0x0:_0x2eeaa4['validationOptions'])&&(_0x3f6f78['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x20ef5f(0xec)}});typeof _0x3f6f78[_0x20ef5f(0x101)]==_0x20ef5f(0x102)&&(_0x3f6f78['apimit']=!![]);if(((_0xb529db=_0x3f6f78===null||_0x3f6f78===void 0x0?void 0x0:_0x3f6f78['middleware'])===null||_0xb529db===void 0x0?void 0x0:_0xb529db['length'])>0x0&&((_0x443e61=_0x3f6f78===null||_0x3f6f78===void 0x0?void 0x0:_0x3f6f78[_0x20ef5f(0xf3)])===null||_0x443e61===void 0x0?void 0x0:_0x443e61[_0x20ef5f(0xf7)])>0x0)for(let _0xab7ac5 in _0x3f6f78[_0x20ef5f(0x106)]){_0x3f6f78[_0x20ef5f(0xf3)]['indexOf'](_0x3f6f78['middleware'][_0xab7ac5])!==-0x1&&(_0x3f6f78[_0x20ef5f(0x106)][_0xab7ac5]=null);}_0x3f6f78[_0x20ef5f(0xfe)]=_0x188a7a,(0x0,validator_1[_0x20ef5f(0xf1)])(_0x3f6f78['validate'])(_0x3b4fdd,_0x4944e2,_0x5905ea),(0x0,core_1[_0x20ef5f(0x107)])(Object['assign'](_0x3f6f78,{'path':_0x78080,'requestMethod':(_0x1e4de1==_0x20ef5f(0xe9)?_0x20ef5f(0xf5):_0x1e4de1)[_0x20ef5f(0x104)]()}))(_0x3b4fdd,_0x4944e2,_0x5905ea),(0x0,core_1[_0x20ef5f(0xea)])(action_1[_0x20ef5f(0xf9)],{'path':_0x78080,'method':_0x4944e2,'apimit':_0x3f6f78['apimit'],'intercept':_0x3f6f78['intercept'],'routerName':_0x3f6f78[_0x20ef5f(0xfe)],'description':_0x3f6f78['description'],'middleware':(_0x3f6f78[_0x20ef5f(0x106)]||[])[_0x20ef5f(0xeb)](_0x23df74=>!!_0x23df74),'requestMethod':(_0x1e4de1==_0x20ef5f(0xe9)?_0x20ef5f(0xf5):_0x1e4de1)['toLowerCase']()},_0x3b4fdd),(0x0,core_1[_0x20ef5f(0xf0)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x78080,'method':_0x4944e2,'apimit':_0x3f6f78['apimit'],'intercept':_0x3f6f78[_0x20ef5f(0xfc)],'routerName':_0x3f6f78[_0x20ef5f(0xfe)],'description':_0x3f6f78['description'],'middleware':(_0x3f6f78['middleware']||[])['filter'](_0x5bfc1d=>!!_0x5bfc1d),'requestMethod':(_0x1e4de1==_0x20ef5f(0xe9)?_0x20ef5f(0xf5):_0x1e4de1)['toLowerCase']()})(_0x3b4fdd,_0x4944e2,_0x5905ea);};}exports[a4_0x448121(0xef)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x103285=a5_0x4075;(function(_0x26c268,_0x226a19){const _0x2ab69e=a5_0x4075,_0x189b3b=_0x26c268();while(!![]){try{const _0x5e1d9f=parseInt(_0x2ab69e(0x11d))/0x1*(parseInt(_0x2ab69e(0x113))/0x2)+parseInt(_0x2ab69e(0x111))/0x3+parseInt(_0x2ab69e(0x116))/0x4+parseInt(_0x2ab69e(0x10e))/0x5*(parseInt(_0x2ab69e(0x11e))/0x6)+-parseInt(_0x2ab69e(0x117))/0x7*(parseInt(_0x2ab69e(0x11f))/0x8)+-parseInt(_0x2ab69e(0x114))/0x9*(-parseInt(_0x2ab69e(0x10d))/0xa)+-parseInt(_0x2ab69e(0x11c))/0xb*(-parseInt(_0x2ab69e(0x10c))/0xc);if(_0x5e1d9f===_0x226a19)break;else _0x189b3b['push'](_0x189b3b['shift']());}catch(_0x40aa54){_0x189b3b['push'](_0x189b3b['shift']());}}}(a5_0x2b9c,0xd4a9c));const a5_0x5d765a=(function(){let _0x2584c4=!![];return function(_0x53755a,_0x4dd5c9){const _0x564c74=_0x2584c4?function(){const _0x35539a=a5_0x4075;if(_0x4dd5c9){const _0x48cf98=_0x4dd5c9[_0x35539a(0x115)](_0x53755a,arguments);return _0x4dd5c9=null,_0x48cf98;}}:function(){};return _0x2584c4=![],_0x564c74;};}()),a5_0x121181=a5_0x5d765a(this,function(){const _0x1982c2=a5_0x4075;return a5_0x121181[_0x1982c2(0x124)]()[_0x1982c2(0x12b)](_0x1982c2(0x123))[_0x1982c2(0x124)]()[_0x1982c2(0x11a)](a5_0x121181)['search'](_0x1982c2(0x123));});a5_0x121181();'use strict';function a5_0x4075(_0x447f3a,_0x3685cf){const _0x373815=a5_0x2b9c();return a5_0x4075=function(_0x121181,_0x5d765a){_0x121181=_0x121181-0x109;let _0x2b9c0e=_0x373815[_0x121181];return _0x2b9c0e;},a5_0x4075(_0x447f3a,_0x3685cf);}function a5_0x2b9c(){const _0x354623=['114vxoRvI','36153HmpfGF','apply','144908BnDwwW','7LmbEio','ApitestService','get','constructor','getApplicationContext','11VWEajM','2347OnWPwX','22434lcedrp','11173472rEekHB','getAsync','app','getConfig','(((.+)+)+)+$','toString','defineProperty','filepath','RequestMapping','isDevelopmentEnvironment','apitest','__esModule','search','Apitest','@midwayjs/core','REQUEST_OBJ_CTX_KEY','551388yXXyDB','290FLqxqx','1865wZLSXr','/apitest','value','1621971GFCsnz','MidwayEnvironmentService'];a5_0x2b9c=function(){return _0x354623;};return a5_0x2b9c();}Object[a5_0x103285(0x125)](exports,a5_0x103285(0x12a),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a5_0x103285(0x10a)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x121a22=a5_0x103285(0x10f),_0x348719){return(_0x3b7298,_0x2581dd,_0x4901d4)=>{const _0x281eb4=a5_0x4075;return(0x0,core_1[_0x281eb4(0x127)])({'path':_0x121a22,'requestMethod':_0x281eb4(0x119)})(_0x3b7298,_0x2581dd,_0x4901d4),_0x4901d4[_0x281eb4(0x110)]=async function(..._0xdd29eb){const _0x21b2a8=_0x281eb4;var _0x1a7d96;const _0x5b3fdb=(_0x1a7d96=this[core_1[_0x21b2a8(0x10b)]])===null||_0x1a7d96===void 0x0?void 0x0:_0x1a7d96[_0x21b2a8(0x121)];if(_0x5b3fdb&&_0x5b3fdb[_0x21b2a8(0x122)](_0x21b2a8(0x129))){const _0x1ab3f5=await _0x5b3fdb[_0x21b2a8(0x11b)]()['getAsync'](ApitestService_1[_0x21b2a8(0x118)]),_0x5cd5c5=await _0x5b3fdb[_0x21b2a8(0x11b)]()[_0x21b2a8(0x120)](core_1[_0x21b2a8(0x112)]);return _0x5cd5c5[_0x21b2a8(0x128)]()&&(_0x348719[_0x21b2a8(0x126)]=!![]),await _0x1ab3f5['apidoc'](_0x348719);}return'';},_0x4901d4;};}exports[a5_0x103285(0x109)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x7d3158=a6_0x320d;(function(_0x2b528a,_0x1049ac){const _0x5032f1=a6_0x320d,_0x501c7f=_0x2b528a();while(!![]){try{const _0x14e672=parseInt(_0x5032f1(0x198))/0x1*(parseInt(_0x5032f1(0x180))/0x2)+-parseInt(_0x5032f1(0x192))/0x3*(-parseInt(_0x5032f1(0x191))/0x4)+-parseInt(_0x5032f1(0x199))/0x5+parseInt(_0x5032f1(0x183))/0x6*(-parseInt(_0x5032f1(0x18a))/0x7)+parseInt(_0x5032f1(0x188))/0x8*(parseInt(_0x5032f1(0x184))/0x9)+parseInt(_0x5032f1(0x17f))/0xa+parseInt(_0x5032f1(0x18b))/0xb;if(_0x14e672===_0x1049ac)break;else _0x501c7f['push'](_0x501c7f['shift']());}catch(_0x3cbd34){_0x501c7f['push'](_0x501c7f['shift']());}}}(a6_0x5724,0x4c57e));const a6_0x46e0a4=(function(){let _0x444577=!![];return function(_0x51d1f6,_0x856e76){const _0x39a0ee=_0x444577?function(){const _0x6ff4d6=a6_0x320d;if(_0x856e76){const _0x4a407c=_0x856e76[_0x6ff4d6(0x19a)](_0x51d1f6,arguments);return _0x856e76=null,_0x4a407c;}}:function(){};return _0x444577=![],_0x39a0ee;};}()),a6_0x29c28e=a6_0x46e0a4(this,function(){const _0x582a1c=a6_0x320d;return a6_0x29c28e[_0x582a1c(0x190)]()['search'](_0x582a1c(0x196))[_0x582a1c(0x190)]()[_0x582a1c(0x186)](a6_0x29c28e)[_0x582a1c(0x18f)](_0x582a1c(0x196));});a6_0x29c28e();'use strict';Object[a6_0x7d3158(0x187)](exports,a6_0x7d3158(0x195),{'value':!![]}),exports[a6_0x7d3158(0x17e)]=exports[a6_0x7d3158(0x197)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a6_0x7d3158(0x193));function Intercept(_0x161241){return _0x1a705f=>{const _0x242cb6=a6_0x320d,_0xd22f68=(0x0,core_1['getClassMetadata'])(intercept_1[_0x242cb6(0x185)],intercept_1['InterceptTargetTmp'])||{};for(let _0x8586f1 of Array[_0x242cb6(0x189)](_0x161241)?_0x161241:[_0x161241]){_0x8586f1=_0x8586f1[_0x242cb6(0x182)]();!(_0xd22f68===null||_0xd22f68===void 0x0?void 0x0:_0xd22f68[_0x8586f1])&&(_0xd22f68[_0x8586f1]=[]);if(_0xd22f68[_0x8586f1][_0x242cb6(0x181)](_0x1a705f))continue;_0xd22f68[_0x8586f1][_0x242cb6(0x17c)](_0x1a705f);}(0x0,core_1[_0x242cb6(0x17b)])()(_0x1a705f),(0x0,core_1[_0x242cb6(0x18c)])(core_1[_0x242cb6(0x18d)]['Singleton'])(_0x1a705f),(0x0,core_1[_0x242cb6(0x17d)])(intercept_1[_0x242cb6(0x185)],_0xd22f68,intercept_1[_0x242cb6(0x194)]);};}exports[a6_0x7d3158(0x197)]=Intercept;function a6_0x320d(_0x2b5531,_0x2af471){const _0x3f58be=a6_0x5724();return a6_0x320d=function(_0x29c28e,_0x46e0a4){_0x29c28e=_0x29c28e-0x17b;let _0x572461=_0x3f58be[_0x29c28e];return _0x572461;},a6_0x320d(_0x2b5531,_0x2af471);}function a6_0x5724(){const _0x41cca7=['IIntercept','4374280aEpjVZ','39366OoswiI','includes','toUpperCase','24OZwspn','9TvBxlr','INTERCEPT_KEY','constructor','defineProperty','4774648UpvQys','isArray','1023939fsWXLL','741873BXzZFG','Scope','ScopeEnum','match','search','toString','1097736gdkqsG','3WsUEdI','../types/intercept','InterceptTargetTmp','__esModule','(((.+)+)+)+$','Intercept','7PhlmYH','3080535VHDMYB','apply','Provide','push','saveClassMetadata'];a6_0x5724=function(){return _0x41cca7;};return a6_0x5724();}class IIntercept{async[a6_0x7d3158(0x18e)](_0x2c75bb,_0x171143,_0x16ac96){return!![];}}exports[a6_0x7d3158(0x17e)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x136e6d=a7_0xb9f0;(function(_0x4e3fe2,_0x26daab){var _0x23782c=a7_0xb9f0,_0x3e5476=_0x4e3fe2();while(!![]){try{var _0x593457=parseInt(_0x23782c(0xc0))/0x1*(-parseInt(_0x23782c(0xbb))/0x2)+parseInt(_0x23782c(0xb3))/0x3+-parseInt(_0x23782c(0xae))/0x4*(-parseInt(_0x23782c(0xbf))/0x5)+-parseInt(_0x23782c(0xc4))/0x6+parseInt(_0x23782c(0xb9))/0x7+parseInt(_0x23782c(0xaf))/0x8*(-parseInt(_0x23782c(0xba))/0x9)+parseInt(_0x23782c(0xaa))/0xa;if(_0x593457===_0x26daab)break;else _0x3e5476['push'](_0x3e5476['shift']());}catch(_0x24d68d){_0x3e5476['push'](_0x3e5476['shift']());}}}(a7_0x32aa,0xd5ace));function a7_0x32aa(){var _0x54f704=['getOwnPropertyDescriptor','3598338mOTbuR','TIMEOUT_LOGINTIME','请求超时,请重试','constructor','HEADERS_LACK','TIMEOUT','登录超时,请重新登录','metadata','search','__esModule','6828210xklgTg','design:type','decorate','defineProperty','14104oKEwDd','8fLUghl','__metadata','验证失败,请重新登录','__decorate','1661334PmVdxD','toString','(((.+)+)+)+$','ApiError','object','HEADERS_DEVICE','4291140ghdpzW','1134639wCEtqy','2kVWGop','HEADERS_SIGNATURE','请使用正确的设备','HEADERS_CHECKCODE','905rxDFLQ','886817rcLubh','length','function'];a7_0x32aa=function(){return _0x54f704;};return a7_0x32aa();}function a7_0xb9f0(_0x3de90f,_0x213b03){var _0x496ede=a7_0x32aa();return a7_0xb9f0=function(_0x2d719d,_0x2887b4){_0x2d719d=_0x2d719d-0xa1;var _0x32aac5=_0x496ede[_0x2d719d];return _0x32aac5;},a7_0xb9f0(_0x3de90f,_0x213b03);}var a7_0x2887b4=(function(){var _0x281b04=!![];return function(_0x187e04,_0x120c5a){var _0x48bef9=_0x281b04?function(){if(_0x120c5a){var _0x4959d7=_0x120c5a['apply'](_0x187e04,arguments);return _0x120c5a=null,_0x4959d7;}}:function(){};return _0x281b04=![],_0x48bef9;};}()),a7_0x2d719d=a7_0x2887b4(this,function(){var _0x68bc64=a7_0xb9f0;return a7_0x2d719d['toString']()['search'](_0x68bc64(0xb5))[_0x68bc64(0xb4)]()[_0x68bc64(0xa3)](a7_0x2d719d)[_0x68bc64(0xa8)](_0x68bc64(0xb5));});a7_0x2d719d();'use strict';var __decorate=this&&this[a7_0x136e6d(0xb2)]||function(_0x4885fb,_0x194104,_0x286694,_0x37d9f4){var _0x24f0fd=a7_0x136e6d,_0x4bf10b=arguments['length'],_0x470184=_0x4bf10b<0x3?_0x194104:_0x37d9f4===null?_0x37d9f4=Object[_0x24f0fd(0xc3)](_0x194104,_0x286694):_0x37d9f4,_0x436fdc;if(typeof Reflect===_0x24f0fd(0xb7)&&typeof Reflect[_0x24f0fd(0xac)]===_0x24f0fd(0xc2))_0x470184=Reflect[_0x24f0fd(0xac)](_0x4885fb,_0x194104,_0x286694,_0x37d9f4);else{for(var _0x2302e9=_0x4885fb[_0x24f0fd(0xc1)]-0x1;_0x2302e9>=0x0;_0x2302e9--)if(_0x436fdc=_0x4885fb[_0x2302e9])_0x470184=(_0x4bf10b<0x3?_0x436fdc(_0x470184):_0x4bf10b>0x3?_0x436fdc(_0x194104,_0x286694,_0x470184):_0x436fdc(_0x194104,_0x286694))||_0x470184;}return _0x4bf10b>0x3&&_0x470184&&Object[_0x24f0fd(0xad)](_0x194104,_0x286694,_0x470184),_0x470184;},__metadata=this&&this[a7_0x136e6d(0xb0)]||function(_0x42c5c3,_0x9197cd){var _0x257854=a7_0x136e6d;if(typeof Reflect===_0x257854(0xb7)&&typeof Reflect[_0x257854(0xa7)]===_0x257854(0xc2))return Reflect['metadata'](_0x42c5c3,_0x9197cd);};Object['defineProperty'](exports,a7_0x136e6d(0xa9),{'value':!![]}),exports[a7_0x136e6d(0xb6)]=void 0x0;class ApiError extends AnnError{}ApiError[a7_0x136e6d(0xa5)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError[a7_0x136e6d(0xbc)]=0x18e74,ApiError[a7_0x136e6d(0xbe)]=0x18e75,ApiError[a7_0x136e6d(0xa1)]=0x18e76,__decorate([AnnErrorMsg(a7_0x136e6d(0xa2)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a7_0x136e6d(0xab),Object)],ApiError,a7_0x136e6d(0xa4),void 0x0),__decorate([AnnErrorMsg(a7_0x136e6d(0xbd)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,a7_0x136e6d(0xb8),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a7_0x136e6d(0xbc),void 0x0),__decorate([AnnErrorMsg(a7_0x136e6d(0xb1)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,a7_0x136e6d(0xbe),void 0x0),__decorate([AnnErrorMsg(a7_0x136e6d(0xa6)),__metadata(a7_0x136e6d(0xab),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x35f7ee=a8_0x2767;(function(_0x56f44b,_0x181f94){const _0x4fefdc=a8_0x2767,_0x4306e2=_0x56f44b();while(!![]){try{const _0x1a8bc8=-parseInt(_0x4fefdc(0x1ba))/0x1*(-parseInt(_0x4fefdc(0x1ab))/0x2)+parseInt(_0x4fefdc(0x1a7))/0x3+-parseInt(_0x4fefdc(0x1aa))/0x4*(parseInt(_0x4fefdc(0x1b2))/0x5)+-parseInt(_0x4fefdc(0x1b8))/0x6*(-parseInt(_0x4fefdc(0x1b4))/0x7)+parseInt(_0x4fefdc(0x1b3))/0x8+-parseInt(_0x4fefdc(0x1ad))/0x9*(parseInt(_0x4fefdc(0x1ac))/0xa)+-parseInt(_0x4fefdc(0x1bb))/0xb*(parseInt(_0x4fefdc(0x1af))/0xc);if(_0x1a8bc8===_0x181f94)break;else _0x4306e2['push'](_0x4306e2['shift']());}catch(_0x15eb26){_0x4306e2['push'](_0x4306e2['shift']());}}}(a8_0x4a0c,0x467a6));const a8_0x258d22=(function(){let _0x3a9f52=!![];return function(_0x4e8bb8,_0x2e8bc3){const _0x45b1d6=_0x3a9f52?function(){const _0x19c779=a8_0x2767;if(_0x2e8bc3){const _0x41e95a=_0x2e8bc3[_0x19c779(0x1bc)](_0x4e8bb8,arguments);return _0x2e8bc3=null,_0x41e95a;}}:function(){};return _0x3a9f52=![],_0x45b1d6;};}()),a8_0x575377=a8_0x258d22(this,function(){const _0x38d694=a8_0x2767;return a8_0x575377['toString']()['search'](_0x38d694(0x1b7))['toString']()['constructor'](a8_0x575377)[_0x38d694(0x1b1)](_0x38d694(0x1b7));});a8_0x575377();'use strict';Object[a8_0x35f7ee(0x1b0)](exports,a8_0x35f7ee(0x1b9),{'value':!![]}),exports[a8_0x35f7ee(0x1a8)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x2e2da9){const _0x41c548=a8_0x35f7ee,_0x2382c0=(0x0,core_1[_0x41c548(0x1b5)])(action_1[_0x41c548(0x1a9)],action_1[_0x41c548(0x1b6)])||{};return _0x2e2da9?lodash[_0x41c548(0x1ae)](_0x2382c0,_0x2e2da9):_0x2382c0;}exports[a8_0x35f7ee(0x1a8)]=getAppsConfig;function a8_0x2767(_0xa9483d,_0x320679){const _0x9e149b=a8_0x4a0c();return a8_0x2767=function(_0x575377,_0x258d22){_0x575377=_0x575377-0x1a7;let _0x4a0ccc=_0x9e149b[_0x575377];return _0x4a0ccc;},a8_0x2767(_0xa9483d,_0x320679);}function a8_0x4a0c(){const _0x14cf1f=['396aGWSNd','22TnRyeM','apply','1691613yaHFOp','getAppsConfig','APPSCONFIG_KEY','7544VbLxss','1342bvDCPj','10iQkDDk','4645638vbomgL','get','3333612OjhHsS','defineProperty','search','545ETnwZa','2358872IvYgyD','618226joheNJ','getClassMetadata','AppsConfigTmp','(((.+)+)+)+$','30juvAfu','__esModule'];a8_0x4a0c=function(){return _0x14cf1f;};return a8_0x4a0c();}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x55b48b=a9_0x4f4b;(function(_0x5684ac,_0x4d1aa3){const _0x52e4ab=a9_0x4f4b,_0x57e8dd=_0x5684ac();while(!![]){try{const _0x2b0d4a=parseInt(_0x52e4ab(0x99))/0x1*(parseInt(_0x52e4ab(0xcc))/0x2)+-parseInt(_0x52e4ab(0x9f))/0x3+parseInt(_0x52e4ab(0x92))/0x4*(parseInt(_0x52e4ab(0x8a))/0x5)+parseInt(_0x52e4ab(0xdd))/0x6*(parseInt(_0x52e4ab(0xe6))/0x7)+-parseInt(_0x52e4ab(0xaf))/0x8+parseInt(_0x52e4ab(0x87))/0x9+-parseInt(_0x52e4ab(0x8f))/0xa*(parseInt(_0x52e4ab(0xb1))/0xb);if(_0x2b0d4a===_0x4d1aa3)break;else _0x57e8dd['push'](_0x57e8dd['shift']());}catch(_0x24bdb1){_0x57e8dd['push'](_0x57e8dd['shift']());}}}(a9_0x28bf,0x20a62));const a9_0xad5077=(function(){let _0x85ed54=!![];return function(_0x1ba93e,_0x1bef7f){const _0x5a2ad9=_0x85ed54?function(){const _0x205449=a9_0x4f4b;if(_0x1bef7f){const _0x5d4808=_0x1bef7f[_0x205449(0x88)](_0x1ba93e,arguments);return _0x1bef7f=null,_0x5d4808;}}:function(){};return _0x85ed54=![],_0x5a2ad9;};}()),a9_0x256f64=a9_0xad5077(this,function(){const _0x5acf94=a9_0x4f4b;return a9_0x256f64[_0x5acf94(0xc8)]()[_0x5acf94(0x90)](_0x5acf94(0xa3))[_0x5acf94(0xc8)]()[_0x5acf94(0xca)](a9_0x256f64)[_0x5acf94(0x90)](_0x5acf94(0xa3));});a9_0x256f64();'use strict';Object[a9_0x55b48b(0xe4)](exports,a9_0x55b48b(0xd4),{'value':!![]}),exports[a9_0x55b48b(0xba)]=void 0x0;const lodash_1=require(a9_0x55b48b(0xa8)),validator_1=require(a9_0x55b48b(0xd3)),core_1=require(a9_0x55b48b(0xc1)),core_2=require('@midwayjs/core'),core_3=require(a9_0x55b48b(0xc1)),action_1=require(a9_0x55b48b(0xa5));function getRoutes(_0x2af600={'prefix':'/','module':![]}){const _0x1a4865=a9_0x55b48b;var _0x3e3a38,_0x44112c;const _0x1a732f=(0x0,core_3[_0x1a4865(0x9e)])(action_1[_0x1a4865(0x98)]),_0x3824b7={},_0x4c4cd5=Array[_0x1a4865(0xde)](_0x2af600[_0x1a4865(0xa1)]||[])?_0x2af600[_0x1a4865(0xa1)]||[]:[_0x2af600[_0x1a4865(0xa1)]];_0x5d261b:for(const _0x490bdb of _0x1a732f){let _0x4715fb=(0x0,core_3[_0x1a4865(0xa4)])(action_1[_0x1a4865(0x98)],_0x490bdb),_0x2468f8=(0x0,core_3[_0x1a4865(0xa4)])(action_1['ACTION_ROUTE_KEY'],_0x490bdb);if(_0x4715fb&&_0x2468f8){let _0x56f63f=_0x4715fb[_0x1a4865(0x93)],_0xcdacff={};if(_0x2af600[_0x1a4865(0xea)]&&(0x0,lodash_1[_0x1a4865(0xc7)])(_0x4715fb,'module',![])!=_0x2af600[_0x1a4865(0xea)])continue _0x5d261b;else{if(_0x2af600[_0x1a4865(0xea)]===![]&&!!(0x0,lodash_1[_0x1a4865(0xc7)])(_0x4715fb,_0x1a4865(0xea),null))continue _0x5d261b;}if(_0x2af600[_0x1a4865(0x93)]&&!_0x56f63f[_0x1a4865(0x8d)](_0x2af600['prefix']))continue _0x5d261b;_0x56f63f!=='/'?(_0xcdacff[_0x1a4865(0xeb)]=(_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xc2)][_0x1a4865(0xb5)])||(/^\//['test'](_0x56f63f)?_0x56f63f[_0x1a4865(0xad)]('/')[0x1]:_0x56f63f),_0xcdacff[_0x1a4865(0xae)]=(_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xc2)][_0x1a4865(0xae)])||_0xcdacff[_0x1a4865(0xeb)],_0xcdacff[_0x1a4865(0xd0)]=[]):(_0xcdacff[_0x1a4865(0xeb)]=(_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xc2)][_0x1a4865(0xb5)])||_0x1a4865(0xe2),_0xcdacff[_0x1a4865(0xae)]=(_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xc2)]['description'])||'',_0xcdacff[_0x1a4865(0xd0)]=[]);_0x2af600['filepath']&&(_0xcdacff[_0x1a4865(0xc3)]=_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xc3)]);(_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xd6)])&&(_0xcdacff[_0x1a4865(0x93)]=_0x4715fb[_0x1a4865(0xd6)]);(_0x4715fb===null||_0x4715fb===void 0x0?void 0x0:_0x4715fb[_0x1a4865(0xea)])&&(_0xcdacff[_0x1a4865(0xea)]=_0x4715fb[_0x1a4865(0xea)]);let _0x8985ed=(0x0,core_3[_0x1a4865(0xa4)])(core_2['INJECT_CUSTOM_PARAM'],_0x490bdb)||{};if(typeof _0x2468f8[Symbol['iterator']]===_0x1a4865(0xd8))for(let _0x2e2f52 of _0x2468f8){if((_0x2af600===null||_0x2af600===void 0x0?void 0x0:_0x2af600[_0x1a4865(0xb8)])&&!(_0x2e2f52===null||_0x2e2f52===void 0x0?void 0x0:_0x2e2f52['intercept']))continue;let _0x113528={};_0x113528[_0x1a4865(0xd9)]=_0x2e2f52[_0x1a4865(0xa7)],_0x113528['route']=(_0x56f63f+_0x2e2f52[_0x1a4865(0xdb)])[_0x1a4865(0xb4)](/\/{2,}/g,'/'),_0x113528['summary']=(_0x2e2f52===null||_0x2e2f52===void 0x0?void 0x0:_0x2e2f52[_0x1a4865(0x9b)])||_0xcdacff[_0x1a4865(0xeb)]||'default',_0x113528[_0x1a4865(0xae)]=(_0x2e2f52===null||_0x2e2f52===void 0x0?void 0x0:_0x2e2f52['description'])||'',_0x113528[_0x1a4865(0xdc)]=[];_0x113528[_0x1a4865(0xd2)]['endsWith']('/')&&(_0x113528['route']=_0x113528['route'][_0x1a4865(0x96)](0x0,_0x113528[_0x1a4865(0xd2)][_0x1a4865(0xe1)]-0x1));if(!(0x0,lodash_1[_0x1a4865(0x8d)])(_0x113528[_0x1a4865(0xd2)],'static/apitest')&&!(0x0,lodash_1[_0x1a4865(0x8d)])(_0x113528[_0x1a4865(0xd2)],'/static/apitest')&&_0x4c4cd5['indexOf'](_0x113528['route'])===-0x1){if(!(_0x2af600===null||_0x2af600===void 0x0?void 0x0:_0x2af600[_0x1a4865(0xab)])){let _0x2478de=(0x0,core_3[_0x1a4865(0xbb)])(new _0x490bdb(),_0x2e2f52['method']);for(const _0x47d3ec in _0x2478de){let _0x31127d=(_0x3e3a38=_0x8985ed[_0x2e2f52[_0x1a4865(0xd9)]])===null||_0x3e3a38===void 0x0?void 0x0:_0x3e3a38[_0x1a4865(0xe3)](_0x43f095=>_0x43f095['parameterIndex']==_0x47d3ec&&_0x43f095[_0x1a4865(0xbf)]===core_2[_0x1a4865(0xbc)]&&(_0x43f095===null||_0x43f095===void 0x0?void 0x0:_0x43f095[_0x1a4865(0xb6)]));if(_0x31127d===null||_0x31127d===void 0x0?void 0x0:_0x31127d[_0x1a4865(0xb6)]){let _0x85ab1a=convertTypeToString(_0x31127d[_0x1a4865(0xb6)]['type']||0x0);if(['query','body'][_0x1a4865(0xe0)](_0x85ab1a)!=-0x1&&_0x31127d[_0x1a4865(0xb6)]['propertyData'][_0x1a4865(0xe0)](':')==-0x1&&!_0x113528[_0x1a4865(0xdc)]['find'](_0x38be60=>_0x38be60[_0x1a4865(0xbf)]==_0x31127d['metadata'][_0x1a4865(0xb0)]))_0x113528[_0x1a4865(0xdc)][_0x1a4865(0xb2)]({'key':_0x31127d[_0x1a4865(0xb6)][_0x1a4865(0xb0)],'title':_0x31127d[_0x1a4865(0xb6)]['propertyData'],'type':convertSchemaType(_0x2478de[_0x31127d[_0x1a4865(0xa0)]][_0x1a4865(0xa9)]),'required':![],'default':'','desc':''});else{if(_0x85ab1a==_0x1a4865(0xb9)){let _0x5d722e=((_0x44112c=_0x31127d===null||_0x31127d===void 0x0?void 0x0:_0x31127d[_0x1a4865(0xb6)])===null||_0x44112c===void 0x0?void 0x0:_0x44112c[_0x1a4865(0xb0)])||_0x1a4865(0xb9);_0x5d722e[_0x1a4865(0xe0)](':')==-0x1&&!_0x113528[_0x1a4865(0xdc)][_0x1a4865(0xe3)](_0x1c659f=>_0x1c659f[_0x1a4865(0xbf)]==_0x5d722e&&_0x1c659f[_0x1a4865(0xe9)]==_0x1a4865(0xb9))&&_0x113528[_0x1a4865(0xdc)]['push']({'key':_0x5d722e,'title':_0x1a4865(0x8e)+_0x5d722e,'type':_0x1a4865(0xb9),'required':!![],'default':'','desc':''});}}}else{const _0x3a3442=(0x0,core_3[_0x1a4865(0xe7)])(validator_1[_0x1a4865(0xc5)],_0x2478de[_0x47d3ec]);_0x3a3442&&_0x113528['request'][_0x1a4865(0xb2)](...getJoiRequest(_0x3a3442));}}}_0xcdacff[_0x1a4865(0xd0)]['push'](_0x113528);}}if(_0xcdacff['routes']['length']>0x0){let _0x1bd1e9=_0x3824b7[_0x56f63f];_0x1bd1e9?(_0x1bd1e9['summary']!=_0xcdacff[_0x1a4865(0xeb)]&&(_0x1bd1e9[_0x1a4865(0xeb)]=_0x1bd1e9[_0x1a4865(0xeb)]+','+_0xcdacff[_0x1a4865(0xeb)]),_0x1bd1e9['description']!=_0xcdacff[_0x1a4865(0xae)]&&(_0x1bd1e9[_0x1a4865(0xae)]=_0x1bd1e9[_0x1a4865(0xae)]+','+_0xcdacff['description']),_0x1bd1e9[_0x1a4865(0xd0)]=_0x1bd1e9[_0x1a4865(0xd0)][_0x1a4865(0xcf)](_0xcdacff[_0x1a4865(0xd0)]),_0x3824b7[_0x56f63f]=_0x1bd1e9):_0x3824b7[_0x56f63f]=_0xcdacff;}}}return _0x3824b7;}function a9_0x4f4b(_0x9fd4e5,_0x4a047a){const _0x26281e=a9_0x28bf();return a9_0x4f4b=function(_0x256f64,_0xad5077){_0x256f64=_0x256f64-0x86;let _0x28bf90=_0x26281e[_0x256f64];return _0x28bf90;},a9_0x4f4b(_0x9fd4e5,_0x4a047a);}exports[a9_0x55b48b(0xba)]=getRoutes;function getJoiRequest(_0x5df33e){const _0x55adb4=a9_0x55b48b,_0x4271de=[];for(let _0x496a52 in _0x5df33e){const _0x10b4d2={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3a074d=typeof _0x5df33e[_0x496a52][_0x55adb4(0x94)]==_0x55adb4(0xd8)?_0x5df33e[_0x496a52][_0x55adb4(0x94)]():_0x5df33e[_0x496a52];_0x10b4d2[_0x55adb4(0xbf)]=_0x496a52,_0x10b4d2[_0x55adb4(0xe9)]=_0x3a074d['type'],_0x10b4d2['title']=(0x0,lodash_1[_0x55adb4(0xc7)])(_0x3a074d,_0x55adb4(0x8b),_0x496a52),_0x10b4d2[_0x55adb4(0xe2)]=(0x0,lodash_1[_0x55adb4(0xc7)])(_0x3a074d,_0x55adb4(0xb3),''),_0x10b4d2[_0x55adb4(0xa6)]=(0x0,lodash_1[_0x55adb4(0xc7)])(_0x3a074d,_0x55adb4(0x9a),'')==_0x55adb4(0xa6),_0x10b4d2[_0x55adb4(0xae)]=(0x0,lodash_1[_0x55adb4(0xc7)])(_0x3a074d,_0x55adb4(0x89),'');if(_0x3a074d[_0x55adb4(0xe9)]=='object')_0x10b4d2[_0x55adb4(0xdf)]=getJoiRequest(_0x3a074d['keys']);else{if(_0x3a074d[_0x55adb4(0xe9)]==_0x55adb4(0x91)&&_0x3a074d[_0x55adb4(0xc0)]&&Array[_0x55adb4(0xde)](_0x3a074d[_0x55adb4(0xc0)])&&_0x3a074d['items'][0x0]){}}_0x3a074d[_0x55adb4(0xd5)]&&Array[_0x55adb4(0xde)](_0x3a074d[_0x55adb4(0xd5)])&&_0x3a074d[_0x55adb4(0xd5)][_0x55adb4(0xe1)]>0x0&&(_0x10b4d2[_0x55adb4(0xae)]='只允许:['+_0x3a074d[_0x55adb4(0xd5)][_0x55adb4(0xcd)](',')+'];'+_0x10b4d2[_0x55adb4(0xae)]);if(_0x10b4d2['key']&&_0x10b4d2[_0x55adb4(0xe9)]){const _0x22b750={};for(const _0x53a566 of _0x3a074d[_0x55adb4(0xbe)]||[]){if(_0x53a566[_0x55adb4(0xa9)]===_0x55adb4(0xbd)&&_0x53a566['args'])_0x22b750[_0x55adb4(0xbd)]=_0x53a566['args'][_0x55adb4(0xc6)];else _0x53a566['name']===_0x55adb4(0xaa)&&(_0x22b750[_0x55adb4(0xaa)]=_0x53a566[_0x55adb4(0x95)]['limit']);}_0x10b4d2[_0x55adb4(0xbe)]=_0x22b750;}_0x10b4d2[_0x55adb4(0xbf)]&&_0x10b4d2[_0x55adb4(0xc9)]&&_0x4271de['push'](_0x10b4d2);}return _0x4271de;}function convertSchemaType(_0x923d97){const _0x20ad73=a9_0x55b48b;switch(_0x923d97){case _0x20ad73(0xda):return _0x20ad73(0xc4);case _0x20ad73(0x8c):return _0x20ad73(0xd7);case'Number':return _0x20ad73(0xa2);case _0x20ad73(0xd1):return _0x20ad73(0xb7);case _0x20ad73(0x97):return _0x20ad73(0xb9);default:return'string';}}function convertTypeToString(_0x573ea6){const _0x2e3ab=a9_0x55b48b;switch(_0x573ea6){case core_1[_0x2e3ab(0xac)]['HEADERS']:return _0x2e3ab(0x9c);case core_1[_0x2e3ab(0xac)][_0x2e3ab(0xcb)]:return'query';case core_1[_0x2e3ab(0xac)][_0x2e3ab(0x9d)]:return _0x2e3ab(0xdb);case core_1[_0x2e3ab(0xac)][_0x2e3ab(0x86)]:return _0x2e3ab(0xe8);case core_1[_0x2e3ab(0xac)]['FIELDS']:case core_1[_0x2e3ab(0xac)][_0x2e3ab(0xe5)]:case core_1[_0x2e3ab(0xac)][_0x2e3ab(0xce)]:return'file';default:return'header';}}function a9_0x28bf(){const _0xe28da5=['lodash','name','max','noreq','RouteParamTypes','split','description','776592BUIwYc','propertyData','12595nSXUVw','push','flags.default','replace','tagName','metadata','string','intercept','file','getRoutes','getMethodParamTypes','WEB_ROUTER_PARAM_KEY','min','rules','key','items','@midwayjs/core','routerOptions','filepath','object','RULES_KEY','limit','get','toString','title','constructor','QUERY','1298AzNtSi','join','FILESTREAM','concat','routes','String','route','@anncic-api/validator','__esModule','allow','pprefix','boolean','function','method','Object','path','request','24jFAPGh','isArray','children','indexOf','length','default','find','defineProperty','FILESSTREAM','334187NzqlVP','getClassExtendedMetadata','body','type','module','summary','BODY','351918eEEdCr','apply','flags.description','121570hjiRNW','flags.label','Boolean','startsWith','文件上传-','510tnKBJa','search','array','12gbFEHo','prefix','describe','args','substring','File','ACTION_KEY','139yRUSTS','flags.presence','routerName','header','PARAM','listModule','312060BGlRUq','parameterIndex','filter','number','(((.+)+)+)+$','getClassMetadata','../types/action','required','requestMethod'];a9_0x28bf=function(){return _0xe28da5;};return a9_0x28bf();}
|
|
1
|
+
const a9_0x2009de=a9_0x3cbb;(function(_0x139b7d,_0x1a3792){const _0x5c8933=a9_0x3cbb,_0x23856c=_0x139b7d();while(!![]){try{const _0x2d2d44=parseInt(_0x5c8933(0xa4))/0x1+-parseInt(_0x5c8933(0x9c))/0x2*(parseInt(_0x5c8933(0x88))/0x3)+-parseInt(_0x5c8933(0x8c))/0x4*(-parseInt(_0x5c8933(0x95))/0x5)+parseInt(_0x5c8933(0xaa))/0x6*(-parseInt(_0x5c8933(0xc8))/0x7)+parseInt(_0x5c8933(0xb7))/0x8*(-parseInt(_0x5c8933(0x7c))/0x9)+parseInt(_0x5c8933(0xc6))/0xa+parseInt(_0x5c8933(0xbb))/0xb;if(_0x2d2d44===_0x1a3792)break;else _0x23856c['push'](_0x23856c['shift']());}catch(_0x433022){_0x23856c['push'](_0x23856c['shift']());}}}(a9_0x5433,0x1a177));const a9_0x1174f5=(function(){let _0x3b0e13=!![];return function(_0x3831c5,_0x246bfe){const _0x33a20c=_0x3b0e13?function(){const _0x174246=a9_0x3cbb;if(_0x246bfe){const _0x3cf75e=_0x246bfe[_0x174246(0x9e)](_0x3831c5,arguments);return _0x246bfe=null,_0x3cf75e;}}:function(){};return _0x3b0e13=![],_0x33a20c;};}()),a9_0x503d5a=a9_0x1174f5(this,function(){const _0x14d71a=a9_0x3cbb;return a9_0x503d5a['toString']()[_0x14d71a(0xc1)](_0x14d71a(0xcc))[_0x14d71a(0x8a)]()[_0x14d71a(0x80)](a9_0x503d5a)['search'](_0x14d71a(0xcc));});function a9_0x3cbb(_0x252953,_0x3426c7){const _0xff6278=a9_0x5433();return a9_0x3cbb=function(_0x503d5a,_0x1174f5){_0x503d5a=_0x503d5a-0x6d;let _0x5433cb=_0xff6278[_0x503d5a];return _0x5433cb;},a9_0x3cbb(_0x252953,_0x3426c7);}a9_0x503d5a();'use strict';Object[a9_0x2009de(0x6d)](exports,'__esModule',{'value':!![]}),exports[a9_0x2009de(0xa6)]=void 0x0;const lodash_1=require(a9_0x2009de(0x7a)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a9_0x2009de(0x76)),action_1=require(a9_0x2009de(0xaf));function getRoutes(_0x39d0f6={'prefix':'/','module':![]}){const _0x2e98d8=a9_0x2009de;var _0x2d0c47,_0x5b840a;const _0x4aea8a=(0x0,core_3[_0x2e98d8(0x8b)])(action_1[_0x2e98d8(0x90)]),_0x97ea1d={},_0x460b01=Array[_0x2e98d8(0xb1)](_0x39d0f6[_0x2e98d8(0xbe)]||[])?_0x39d0f6[_0x2e98d8(0xbe)]||[]:[_0x39d0f6[_0x2e98d8(0xbe)]];_0x14d045:for(const _0x514d56 of _0x4aea8a){let _0x2bccdf=(0x0,core_3['getClassMetadata'])(action_1[_0x2e98d8(0x90)],_0x514d56),_0x2e86ea=(0x0,core_3[_0x2e98d8(0xc3)])(action_1[_0x2e98d8(0x98)],_0x514d56);if(_0x2bccdf&&_0x2e86ea){let _0x835b0b=_0x2bccdf['prefix'],_0x2ee4eb={};if(_0x39d0f6['module']&&(0x0,lodash_1['get'])(_0x2bccdf,_0x2e98d8(0x92),![])!=_0x39d0f6['module'])continue _0x14d045;else{if(_0x39d0f6[_0x2e98d8(0x92)]===![]&&!!(0x0,lodash_1[_0x2e98d8(0x71)])(_0x2bccdf,_0x2e98d8(0x92),null))continue _0x14d045;}if(_0x39d0f6[_0x2e98d8(0xbd)]&&!_0x835b0b[_0x2e98d8(0x82)](_0x39d0f6[_0x2e98d8(0xbd)]))continue _0x14d045;_0x835b0b!=='/'?(_0x2ee4eb[_0x2e98d8(0xae)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xa3)]['tagName'])||(/^\//[_0x2e98d8(0x9a)](_0x835b0b)?_0x835b0b[_0x2e98d8(0x78)]('/')[0x1]:_0x835b0b),_0x2ee4eb[_0x2e98d8(0x89)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xa3)]['description'])||_0x2ee4eb[_0x2e98d8(0xae)],_0x2ee4eb[_0x2e98d8(0xb6)]=[]):(_0x2ee4eb[_0x2e98d8(0xae)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xa3)]['tagName'])||_0x2e98d8(0xc2),_0x2ee4eb[_0x2e98d8(0x89)]=(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf['routerOptions'][_0x2e98d8(0x89)])||'',_0x2ee4eb[_0x2e98d8(0xb6)]=[]);_0x39d0f6[_0x2e98d8(0xc0)]&&(_0x2ee4eb[_0x2e98d8(0xc0)]=_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xc0)]);(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0xcf)])&&(_0x2ee4eb[_0x2e98d8(0xbd)]=_0x2bccdf[_0x2e98d8(0xcf)]);(_0x2bccdf===null||_0x2bccdf===void 0x0?void 0x0:_0x2bccdf[_0x2e98d8(0x92)])&&(_0x2ee4eb[_0x2e98d8(0x92)]=_0x2bccdf['module']);let _0x4ff9b4=(0x0,core_3['getClassMetadata'])(core_2[_0x2e98d8(0x81)],_0x514d56)||{};if(typeof _0x2e86ea[Symbol[_0x2e98d8(0xb9)]]===_0x2e98d8(0x86))for(let _0x523704 of _0x2e86ea){if((_0x39d0f6===null||_0x39d0f6===void 0x0?void 0x0:_0x39d0f6[_0x2e98d8(0xbc)])&&!(_0x523704===null||_0x523704===void 0x0?void 0x0:_0x523704[_0x2e98d8(0xbc)]))continue;let _0x4d439b={};_0x4d439b[_0x2e98d8(0xa2)]=_0x523704['requestMethod'],_0x4d439b[_0x2e98d8(0xb3)]=(_0x835b0b+_0x523704['path'])['replace'](/\/{2,}/g,'/'),_0x4d439b[_0x2e98d8(0xae)]=(_0x523704===null||_0x523704===void 0x0?void 0x0:_0x523704[_0x2e98d8(0x9b)])||_0x2ee4eb[_0x2e98d8(0xae)]||_0x2e98d8(0xc2),_0x4d439b[_0x2e98d8(0x89)]=(_0x523704===null||_0x523704===void 0x0?void 0x0:_0x523704['description'])||'',_0x4d439b[_0x2e98d8(0xa0)]=[];_0x4d439b['route'][_0x2e98d8(0xa1)]('/')&&(_0x4d439b[_0x2e98d8(0xb3)]=_0x4d439b[_0x2e98d8(0xb3)][_0x2e98d8(0xb5)](0x0,_0x4d439b['route']['length']-0x1));if(!(0x0,lodash_1[_0x2e98d8(0x82)])(_0x4d439b[_0x2e98d8(0xb3)],_0x2e98d8(0x9f))&&!(0x0,lodash_1['startsWith'])(_0x4d439b[_0x2e98d8(0xb3)],_0x2e98d8(0x6e))&&_0x460b01[_0x2e98d8(0xbf)](_0x4d439b['route'])===-0x1){if(!(_0x39d0f6===null||_0x39d0f6===void 0x0?void 0x0:_0x39d0f6[_0x2e98d8(0x75)])){let _0x1cce41=(0x0,core_3[_0x2e98d8(0xca)])(new _0x514d56(),_0x523704[_0x2e98d8(0xa2)]);for(const _0xcdaf43 in _0x1cce41){let _0x1ec195=(_0x2d0c47=_0x4ff9b4[_0x523704[_0x2e98d8(0xa2)]])===null||_0x2d0c47===void 0x0?void 0x0:_0x2d0c47[_0x2e98d8(0x7f)](_0xc299fd=>_0xc299fd[_0x2e98d8(0x9d)]==_0xcdaf43&&_0xc299fd[_0x2e98d8(0x77)]===core_2[_0x2e98d8(0xd0)]&&(_0xc299fd===null||_0xc299fd===void 0x0?void 0x0:_0xc299fd[_0x2e98d8(0xd1)]));if(_0x1ec195===null||_0x1ec195===void 0x0?void 0x0:_0x1ec195['metadata']){let _0x45a99c=convertTypeToString(_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0xce)]||0x0);if([_0x2e98d8(0x84),_0x2e98d8(0x70)][_0x2e98d8(0xbf)](_0x45a99c)!=-0x1&&_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0x8d)][_0x2e98d8(0xbf)](':')==-0x1&&!_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0x7f)](_0x3ac879=>_0x3ac879[_0x2e98d8(0x77)]==_0x1ec195[_0x2e98d8(0xd1)]['propertyData']))_0x4d439b['request'][_0x2e98d8(0xba)]({'key':_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0x8d)],'title':_0x1ec195[_0x2e98d8(0xd1)][_0x2e98d8(0x8d)],'type':convertSchemaType(_0x1cce41[_0x1ec195[_0x2e98d8(0x9d)]][_0x2e98d8(0xa9)]),'required':![],'default':'','desc':''});else{if(_0x45a99c==_0x2e98d8(0xcd)){let _0x4b00cd=((_0x5b840a=_0x1ec195===null||_0x1ec195===void 0x0?void 0x0:_0x1ec195['metadata'])===null||_0x5b840a===void 0x0?void 0x0:_0x5b840a[_0x2e98d8(0x8d)])||_0x2e98d8(0xcd);_0x4b00cd[_0x2e98d8(0xbf)](':')==-0x1&&!_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0x7f)](_0x1500f2=>_0x1500f2[_0x2e98d8(0x77)]==_0x4b00cd&&_0x1500f2['type']==_0x2e98d8(0xcd))&&_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0xba)]({'key':_0x4b00cd,'title':'文件上传-'+_0x4b00cd,'type':_0x2e98d8(0xcd),'required':!![],'default':'','desc':''});}}}else{const _0x24ca33=(0x0,core_3[_0x2e98d8(0xa8)])(validator_1[_0x2e98d8(0x8e)],_0x1cce41[_0xcdaf43]);_0x24ca33&&_0x4d439b[_0x2e98d8(0xa0)][_0x2e98d8(0xba)](...getJoiRequest(_0x24ca33));}}}_0x2ee4eb['routes'][_0x2e98d8(0xba)](_0x4d439b);}}if(_0x2ee4eb['routes'][_0x2e98d8(0xb2)]>0x0){let _0x495cda=_0x97ea1d[_0x835b0b];_0x495cda?(_0x495cda['summary']!=_0x2ee4eb['summary']&&(_0x495cda[_0x2e98d8(0xae)]=_0x495cda[_0x2e98d8(0xae)]+','+_0x2ee4eb[_0x2e98d8(0xae)]),_0x495cda[_0x2e98d8(0x89)]!=_0x2ee4eb['description']&&(_0x495cda[_0x2e98d8(0x89)]=_0x495cda[_0x2e98d8(0x89)]+','+_0x2ee4eb[_0x2e98d8(0x89)]),_0x495cda[_0x2e98d8(0xb6)]=_0x495cda[_0x2e98d8(0xb6)]['concat'](_0x2ee4eb[_0x2e98d8(0xb6)]),_0x97ea1d[_0x835b0b]=_0x495cda):_0x97ea1d[_0x835b0b]=_0x2ee4eb;}}}return _0x97ea1d;}exports[a9_0x2009de(0xa6)]=getRoutes;function getJoiRequest(_0x3f1a2b){const _0x5be9a8=a9_0x2009de,_0x4468ec=[];for(let _0x57bfd4 in _0x3f1a2b){const _0x361cf3={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x12ffa1=typeof _0x3f1a2b[_0x57bfd4][_0x5be9a8(0xc9)]==_0x5be9a8(0x86)?_0x3f1a2b[_0x57bfd4]['describe']():_0x3f1a2b[_0x57bfd4];_0x361cf3['key']=_0x57bfd4,_0x361cf3[_0x5be9a8(0xce)]=_0x12ffa1[_0x5be9a8(0xce)],_0x361cf3[_0x5be9a8(0x85)]=(0x0,lodash_1[_0x5be9a8(0x71)])(_0x12ffa1,'flags.label',_0x57bfd4),_0x361cf3[_0x5be9a8(0xc2)]=(0x0,lodash_1[_0x5be9a8(0x71)])(_0x12ffa1,_0x5be9a8(0x99),''),_0x361cf3[_0x5be9a8(0xd2)]=(0x0,lodash_1['get'])(_0x12ffa1,_0x5be9a8(0x79),'')=='required',_0x361cf3[_0x5be9a8(0x89)]=(0x0,lodash_1[_0x5be9a8(0x71)])(_0x12ffa1,_0x5be9a8(0x74),'');if(_0x12ffa1[_0x5be9a8(0xce)]==_0x5be9a8(0xc5))_0x361cf3[_0x5be9a8(0x97)]=getJoiRequest(_0x12ffa1[_0x5be9a8(0xb8)]);else{if(_0x12ffa1[_0x5be9a8(0xce)]==_0x5be9a8(0x87)&&_0x12ffa1[_0x5be9a8(0xad)]&&Array[_0x5be9a8(0xb1)](_0x12ffa1[_0x5be9a8(0xad)])&&_0x12ffa1['items'][0x0]){}}_0x12ffa1[_0x5be9a8(0xb4)]&&Array[_0x5be9a8(0xb1)](_0x12ffa1[_0x5be9a8(0xb4)])&&_0x12ffa1['allow'][_0x5be9a8(0xb2)]>0x0&&(_0x361cf3[_0x5be9a8(0x89)]=_0x5be9a8(0x83)+_0x12ffa1['allow'][_0x5be9a8(0xb0)](',')+'];'+_0x361cf3[_0x5be9a8(0x89)]);if(_0x361cf3['key']&&_0x361cf3['type']){const _0x1a973b={};for(const _0x29bce7 of _0x12ffa1['rules']||[]){if(_0x29bce7[_0x5be9a8(0xa9)]===_0x5be9a8(0x91)&&_0x29bce7[_0x5be9a8(0xc7)])_0x1a973b['min']=_0x29bce7[_0x5be9a8(0xc7)][_0x5be9a8(0xcb)];else _0x29bce7[_0x5be9a8(0xa9)]===_0x5be9a8(0xa7)&&(_0x1a973b[_0x5be9a8(0xa7)]=_0x29bce7['args']['limit']);}_0x361cf3[_0x5be9a8(0xac)]=_0x1a973b;}_0x361cf3[_0x5be9a8(0x77)]&&_0x361cf3[_0x5be9a8(0x85)]&&_0x4468ec[_0x5be9a8(0xba)](_0x361cf3);}return _0x4468ec;}function convertSchemaType(_0x5d1a1b){const _0x440cac=a9_0x2009de;switch(_0x5d1a1b){case _0x440cac(0xab):return _0x440cac(0xc5);case _0x440cac(0xd3):return _0x440cac(0x7e);case _0x440cac(0x93):return _0x440cac(0x96);case'String':return _0x440cac(0x72);case _0x440cac(0x7b):return _0x440cac(0xcd);default:return _0x440cac(0x72);}}function a9_0x5433(){const _0x570af4=['module','Number','PARAM','10zySbfC','number','children','ACTION_ROUTE_KEY','flags.default','test','routerName','34002LrkvJD','parameterIndex','apply','static/apitest','request','endsWith','method','routerOptions','183726rQdpYw','header','getRoutes','max','getClassExtendedMetadata','name','24vNZSEM','Object','rules','items','summary','../types/action','join','isArray','length','route','allow','substring','routes','135096VlULrt','keys','iterator','push','715550fVseas','intercept','prefix','filter','indexOf','filepath','search','default','getClassMetadata','RouteParamTypes','object','2107890qrcUQg','args','221886aDOLxH','describe','getMethodParamTypes','limit','(((.+)+)+)+$','file','type','pprefix','WEB_ROUTER_PARAM_KEY','metadata','required','Boolean','HEADERS','QUERY','defineProperty','/static/apitest','FILESTREAM','body','get','string','path','flags.description','noreq','@midwayjs/core','key','split','flags.presence','lodash','File','81PLTsWI','BODY','boolean','find','constructor','INJECT_CUSTOM_PARAM','startsWith','只允许:[','query','title','function','array','33AxHpTx','description','toString','listModule','226184SjCRdi','propertyData','RULES_KEY','FIELDS','ACTION_KEY','min'];a9_0x5433=function(){return _0x570af4;};return a9_0x5433();}function convertTypeToString(_0x2034b6){const _0x78d078=a9_0x2009de;switch(_0x2034b6){case core_1[_0x78d078(0xc4)][_0x78d078(0xd4)]:return _0x78d078(0xa5);case core_1[_0x78d078(0xc4)][_0x78d078(0xd5)]:return'query';case core_1['RouteParamTypes'][_0x78d078(0x94)]:return _0x78d078(0x73);case core_1[_0x78d078(0xc4)][_0x78d078(0x7d)]:return _0x78d078(0x70);case core_1[_0x78d078(0xc4)][_0x78d078(0x8f)]:case core_1[_0x78d078(0xc4)]['FILESSTREAM']:case core_1[_0x78d078(0xc4)][_0x78d078(0x6f)]:return'file';default:return _0x78d078(0xa5);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x3116b2=a10_0x38e1;(function(_0xfb5d9b,_0x6eabe3){var _0x4fef9a=a10_0x38e1,_0x5b83a2=_0xfb5d9b();while(!![]){try{var _0x1013cb=-parseInt(_0x4fef9a(0xed))/0x1*(parseInt(_0x4fef9a(0xd8))/0x2)+parseInt(_0x4fef9a(0xd1))/0x3*(parseInt(_0x4fef9a(0xc3))/0x4)+-parseInt(_0x4fef9a(0xd4))/0x5+-parseInt(_0x4fef9a(0xdb))/0x6+-parseInt(_0x4fef9a(0xc2))/0x7+-parseInt(_0x4fef9a(0xbc))/0x8+parseInt(_0x4fef9a(0xe7))/0x9*(parseInt(_0x4fef9a(0xeb))/0xa);if(_0x1013cb===_0x6eabe3)break;else _0x5b83a2['push'](_0x5b83a2['shift']());}catch(_0x3168e1){_0x5b83a2['push'](_0x5b83a2['shift']());}}}(a10_0x3ade,0xdeb8b));var a10_0x32c583=(function(){var _0x5cbdb0=!![];return function(_0x31497f,_0x4aecf5){var _0xcb0005=_0x5cbdb0?function(){if(_0x4aecf5){var _0x1f3fb5=_0x4aecf5['apply'](_0x31497f,arguments);return _0x4aecf5=null,_0x1f3fb5;}}:function(){};return _0x5cbdb0=![],_0xcb0005;};}()),a10_0x54bbda=a10_0x32c583(this,function(){var _0x258515=a10_0x38e1;return a10_0x54bbda[_0x258515(0xee)]()[_0x258515(0xc7)](_0x258515(0xba))['toString']()['constructor'](a10_0x54bbda)[_0x258515(0xc7)](_0x258515(0xba));});a10_0x54bbda();'use strict';var __createBinding=this&&this[a10_0x3116b2(0xec)]||(Object[a10_0x3116b2(0xc4)]?function(_0x311fed,_0x2b7b10,_0x365977,_0x3af0c0){var _0x315b6d=a10_0x3116b2;if(_0x3af0c0===undefined)_0x3af0c0=_0x365977;var _0xdabeed=Object[_0x315b6d(0xc9)](_0x2b7b10,_0x365977);(!_0xdabeed||('get'in _0xdabeed?!_0x2b7b10[_0x315b6d(0xce)]:_0xdabeed[_0x315b6d(0xe1)]||_0xdabeed[_0x315b6d(0xf6)]))&&(_0xdabeed={'enumerable':!![],'get':function(){return _0x2b7b10[_0x365977];}}),Object[_0x315b6d(0xb9)](_0x311fed,_0x3af0c0,_0xdabeed);}:function(_0x2fc6ee,_0x121613,_0x4419d1,_0x43970d){if(_0x43970d===undefined)_0x43970d=_0x4419d1;_0x2fc6ee[_0x43970d]=_0x121613[_0x4419d1];}),__exportStar=this&&this[a10_0x3116b2(0xf1)]||function(_0x246cb4,_0x479829){var _0x6a4e10=a10_0x3116b2;for(var _0x481a32 in _0x246cb4)if(_0x481a32!==_0x6a4e10(0xda)&&!Object['prototype']['hasOwnProperty'][_0x6a4e10(0xc1)](_0x479829,_0x481a32))__createBinding(_0x479829,_0x246cb4,_0x481a32);};Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xce),{'value':!![]}),exports[a10_0x3116b2(0xe4)]=exports[a10_0x3116b2(0xbe)]=exports[a10_0x3116b2(0xf3)]=exports['Scope']=exports['Inject']=exports[a10_0x3116b2(0xcb)]=exports['Logger']=exports['Config']=exports[a10_0x3116b2(0xd0)]=exports[a10_0x3116b2(0xdd)]=exports['Headers']=exports[a10_0x3116b2(0xd9)]=exports[a10_0x3116b2(0xc5)]=exports[a10_0x3116b2(0xca)]=exports['Fields']=exports[a10_0x3116b2(0xcd)]=exports[a10_0x3116b2(0xf5)]=exports['Configuration']=exports[a10_0x3116b2(0xde)]=exports[a10_0x3116b2(0xbd)]=exports[a10_0x3116b2(0xd7)]=exports[a10_0x3116b2(0xc6)]=exports['EventService']=exports[a10_0x3116b2(0xd6)]=exports[a10_0x3116b2(0xc0)]=exports[a10_0x3116b2(0xcc)]=exports[a10_0x3116b2(0xea)]=exports[a10_0x3116b2(0xf4)]=exports[a10_0x3116b2(0xd2)]=exports[a10_0x3116b2(0xd5)]=exports[a10_0x3116b2(0xe5)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe4),{'enumerable':!![],'get':function(){var _0x5115ae=a10_0x3116b2;return getAppsConfig_1[_0x5115ae(0xe4)];}}),__exportStar(require(a10_0x3116b2(0xcf)),exports),__exportStar(require(a10_0x3116b2(0xd3)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe5),{'enumerable':!![],'get':function(){var _0xa06964=a10_0x3116b2;return ActionApi_1[_0xa06964(0xe5)];}});var Action_1=require('./decorator/Action');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd5),{'enumerable':!![],'get':function(){var _0x51569c=a10_0x3116b2;return Action_1[_0x51569c(0xd5)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd2),{'enumerable':!![],'get':function(){var _0x5b4d94=a10_0x3116b2;return ActionApitest_1[_0x5b4d94(0xd2)];}});var Intercept_1=require('./decorator/Intercept');Object['defineProperty'](exports,'Intercept',{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a10_0x3116b2(0xb9)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x2d4992=a10_0x3116b2;return Intercept_1[_0x2d4992(0xea)];}});var getRoutes_1=require(a10_0x3116b2(0xe8));Object[a10_0x3116b2(0xb9)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x2061c2=a10_0x3116b2;return getRoutes_1[_0x2061c2(0xcc)];}});var ApiError_1=require(a10_0x3116b2(0xf2));Object[a10_0x3116b2(0xb9)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x369940=a10_0x3116b2;return ApiError_1[_0x369940(0xc0)];}});var cache_1=require('@anncic-api/cache');Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd6),{'enumerable':!![],'get':function(){var _0x1ad376=a10_0x3116b2;return cache_1[_0x1ad376(0xd6)];}});var event_1=require('@anncic-api/event');Object['defineProperty'](exports,a10_0x3116b2(0xbf),{'enumerable':!![],'get':function(){var _0x24add2=a10_0x3116b2;return event_1[_0x24add2(0xbf)];}});function a10_0x38e1(_0x2b021e,_0x5ca503){var _0x28009c=a10_0x3ade();return a10_0x38e1=function(_0x54bbda,_0x32c583){_0x54bbda=_0x54bbda-0xb9;var _0x3ade7f=_0x28009c[_0x54bbda];return _0x3ade7f;},a10_0x38e1(_0x2b021e,_0x5ca503);}var ApiService_1=require(a10_0x3116b2(0xe6));Object['defineProperty'](exports,a10_0x3116b2(0xc6),{'enumerable':!![],'get':function(){var _0xa82e19=a10_0x3116b2;return ApiService_1[_0xa82e19(0xc6)];}});var ExcelService_1=require(a10_0x3116b2(0xef));Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd7),{'enumerable':!![],'get':function(){var _0x3757fc=a10_0x3116b2;return ExcelService_1[_0x3757fc(0xd7)];}});var validator_1=require(a10_0x3116b2(0xc8));Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xbd),{'enumerable':!![],'get':function(){var _0x22cf30=a10_0x3116b2;return validator_1[_0x22cf30(0xbd)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xde),{'enumerable':!![],'get':function(){var _0x4c1d3b=a10_0x3116b2;return validator_1[_0x4c1d3b(0xde)];}});var configuration_1=require(a10_0x3116b2(0xe0));Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe3),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a10_0x3116b2(0xdf));function a10_0x3ade(){var _0x4aa1ad=['__esModule','./types/common','App','2817ukkmeo','Apitest','./service/ApitestService','7320695SEgQwu','Action','CacheService','ExcelService','10JlAnDB','Query','default','2042832xwmbep','Scope','Init','ValidatorService','@midwayjs/core','./configuration','writable','Headers','Configuration','getAppsConfig','Api','./service/ApiService','2120265EauzPW','./helper/getRoutes','Logger','IIntercept','170BTqylT','__createBinding','62509WBdvHq','toString','./service/ExcelService','Fields','__exportStar','./exception/ApiError','Singleton','Intercept','File','configurable','defineProperty','(((.+)+)+)+$','Config','11132840LYjVJf','ValidatorError','ScopeEnum','EventService','ApiError','call','5606027PvFuNO','5184enWtlE','create','Param','ApiService','search','@anncic-api/validator','getOwnPropertyDescriptor','Body','Provide','getRoutes','Files'];a10_0x3ade=function(){return _0x4aa1ad;};return a10_0x3ade();}Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xf5),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xcd),{'enumerable':!![],'get':function(){var _0x31bfe8=a10_0x3116b2;return core_1[_0x31bfe8(0xcd)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xf0),{'enumerable':!![],'get':function(){var _0x1e9f53=a10_0x3116b2;return core_1[_0x1e9f53(0xf0)];}}),Object['defineProperty'](exports,a10_0x3116b2(0xca),{'enumerable':!![],'get':function(){var _0x4c3544=a10_0x3116b2;return core_1[_0x4c3544(0xca)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xc5),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xd9),{'enumerable':!![],'get':function(){var _0x1a9cfd=a10_0x3116b2;return core_1[_0x1a9cfd(0xd9)];}}),Object[a10_0x3116b2(0xb9)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x153e30=a10_0x3116b2;return core_1[_0x153e30(0xe2)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xdd),{'enumerable':!![],'get':function(){var _0x579d8b=a10_0x3116b2;return core_1[_0x579d8b(0xdd)];}});var core_2=require(a10_0x3116b2(0xdf));Object[a10_0x3116b2(0xb9)](exports,'App',{'enumerable':!![],'get':function(){var _0x360621=a10_0x3116b2;return core_2[_0x360621(0xd0)];}}),Object[a10_0x3116b2(0xb9)](exports,'Config',{'enumerable':!![],'get':function(){var _0x4a7da5=a10_0x3116b2;return core_2[_0x4a7da5(0xbb)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xe9),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a10_0x3116b2(0xb9)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x37c4b2=a10_0x3116b2;return core_2[_0x37c4b2(0xcb)];}}),Object[a10_0x3116b2(0xb9)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xdc),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xf3),{'enumerable':!![],'get':function(){var _0x163fbd=a10_0x3116b2;return core_2[_0x163fbd(0xf3)];}}),Object[a10_0x3116b2(0xb9)](exports,a10_0x3116b2(0xbe),{'enumerable':!![],'get':function(){var _0x5003a7=a10_0x3116b2;return core_2[_0x5003a7(0xbe)];}}),global[a10_0x3116b2(0xe4)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x121449=a11_0x3cca;(function(_0x58dddb,_0x2d9977){var _0x59ba6d=a11_0x3cca,_0x5af7e6=_0x58dddb();while(!![]){try{var _0x35b233=parseInt(_0x59ba6d(0x1c6))/0x1*(-parseInt(_0x59ba6d(0x1ce))/0x2)+-parseInt(_0x59ba6d(0x1f5))/0x3+-parseInt(_0x59ba6d(0x1e2))/0x4*(parseInt(_0x59ba6d(0x1cd))/0x5)+-parseInt(_0x59ba6d(0x1f2))/0x6*(parseInt(_0x59ba6d(0x1b6))/0x7)+-parseInt(_0x59ba6d(0x1cf))/0x8+-parseInt(_0x59ba6d(0x1ca))/0x9*(parseInt(_0x59ba6d(0x1f1))/0xa)+-parseInt(_0x59ba6d(0x1bf))/0xb*(-parseInt(_0x59ba6d(0x1d2))/0xc);if(_0x35b233===_0x2d9977)break;else _0x5af7e6['push'](_0x5af7e6['shift']());}catch(_0x2cd2b6){_0x5af7e6['push'](_0x5af7e6['shift']());}}}(a11_0x55f1,0x8b029));var a11_0x1f0432=(function(){var _0x24b0da=!![];return function(_0x1341d8,_0x1e5424){var _0x27d4ab=_0x24b0da?function(){var _0xac7746=a11_0x3cca;if(_0x1e5424){var _0x3fb029=_0x1e5424[_0xac7746(0x1c9)](_0x1341d8,arguments);return _0x1e5424=null,_0x3fb029;}}:function(){};return _0x24b0da=![],_0x27d4ab;};}()),a11_0x22cb52=a11_0x1f0432(this,function(){var _0x2baffc=a11_0x3cca;return a11_0x22cb52['toString']()['search'](_0x2baffc(0x1ea))[_0x2baffc(0x1dd)]()['constructor'](a11_0x22cb52)[_0x2baffc(0x1e7)](_0x2baffc(0x1ea));});function a11_0x55f1(){var _0x56f666=['TIMEOUT','1420416isMrTO','entries','toLowerCase','decorate','HEADERS_CHECKCODE','anncicapi','__esModule','218351mTbuNc','请求超时,请重试或改善网络环境','push','password','Config','Provide','Singleton','device','object','8129jpBbSu','__decorate','MD5','join','crypto-js','../exception/ApiError','function','7tHQAGM','checksign','token','apply','1269KtsIFe','config','length','5nIwqle','93342smpdEH','6941000PTPXng','secret','design:type','60264PboxbY','getOwnPropertyDescriptor','HEADERS_LACK','logintime','signature','devices','requesttime','abs','@midwayjs/core','Scope','secret=','toString','sort','fromEntries','checkcode','prototype','3169764DTwciV','undefined','getcheck','map','ApiService','search','HEADERS_DEVICE','logintimeout','(((.+)+)+)+$','ApiError','HEADERS_SIGNATURE','metadata','__metadata','TIMEOUT_LOGINTIME','缺少头信息:signature','6310gJHyAc','114hPUBAz','now'];a11_0x55f1=function(){return _0x56f666;};return a11_0x55f1();}function a11_0x3cca(_0x3a4fde,_0x5de07b){var _0x1329eb=a11_0x55f1();return a11_0x3cca=function(_0x22cb52,_0x1f0432){_0x22cb52=_0x22cb52-0x1b2;var _0x55f184=_0x1329eb[_0x22cb52];return _0x55f184;},a11_0x3cca(_0x3a4fde,_0x5de07b);}a11_0x22cb52();'use strict';var __decorate=this&&this[a11_0x121449(0x1c0)]||function(_0x58216c,_0x1502bb,_0x49703f,_0x721b8e){var _0x43ea1f=a11_0x121449,_0x179463=arguments[_0x43ea1f(0x1cc)],_0x9559be=_0x179463<0x3?_0x1502bb:_0x721b8e===null?_0x721b8e=Object[_0x43ea1f(0x1d3)](_0x1502bb,_0x49703f):_0x721b8e,_0x5925ba;if(typeof Reflect==='object'&&typeof Reflect[_0x43ea1f(0x1b2)]===_0x43ea1f(0x1c5))_0x9559be=Reflect['decorate'](_0x58216c,_0x1502bb,_0x49703f,_0x721b8e);else{for(var _0x6f9e1b=_0x58216c[_0x43ea1f(0x1cc)]-0x1;_0x6f9e1b>=0x0;_0x6f9e1b--)if(_0x5925ba=_0x58216c[_0x6f9e1b])_0x9559be=(_0x179463<0x3?_0x5925ba(_0x9559be):_0x179463>0x3?_0x5925ba(_0x1502bb,_0x49703f,_0x9559be):_0x5925ba(_0x1502bb,_0x49703f))||_0x9559be;}return _0x179463>0x3&&_0x9559be&&Object['defineProperty'](_0x1502bb,_0x49703f,_0x9559be),_0x9559be;},__metadata=this&&this[a11_0x121449(0x1ee)]||function(_0x17b13f,_0x2b9b72){var _0x3794f7=a11_0x121449;if(typeof Reflect===_0x3794f7(0x1be)&&typeof Reflect[_0x3794f7(0x1ed)]===_0x3794f7(0x1c5))return Reflect[_0x3794f7(0x1ed)](_0x17b13f,_0x2b9b72);};Object['defineProperty'](exports,a11_0x121449(0x1b5),{'value':!![]}),exports[a11_0x121449(0x1e6)]=void 0x0;const crypto_js_1=require(a11_0x121449(0x1c3)),core_1=require(a11_0x121449(0x1da)),ApiError_1=require(a11_0x121449(0x1c4));let ApiService=class ApiService{['password'](_0x577746){var _0x1c5deb=a11_0x121449,_0x26b01a;return _0x577746?(0x0,crypto_js_1[_0x1c5deb(0x1c1)])(''+_0x577746+(0x0,crypto_js_1[_0x1c5deb(0x1c1)])((0x0,crypto_js_1[_0x1c5deb(0x1c1)])(''+_0x577746)[_0x1c5deb(0x1dd)]()+(''+((_0x26b01a=this[_0x1c5deb(0x1cb)])===null||_0x26b01a===void 0x0?void 0x0:_0x26b01a[_0x1c5deb(0x1b9)])))[_0x1c5deb(0x1dd)]())[_0x1c5deb(0x1dd)]():'';}[a11_0x121449(0x1e4)](_0x524f4e,_0x544e3e,_0x182401=Date[a11_0x121449(0x1f3)]()){var _0x2d7e83=a11_0x121449;return{'Token':_0x524f4e,'Logintime':_0x182401,'Checkcode':this[_0x2d7e83(0x1e0)](_0x524f4e,_0x544e3e,_0x182401)};}['getsign'](_0x4a69c9={}){var _0x58a1f6=a11_0x121449,_0x3c6d9c,_0x3227e6;const _0x41721a=[],_0x3c764a=Object[_0x58a1f6(0x1df)](Object[_0x58a1f6(0x1f6)](_0x4a69c9)['map'](_0xc05fd7=>[_0xc05fd7[0x0][_0x58a1f6(0x1f7)](),_0xc05fd7[0x1]]));for(let _0x3b1d8d of[_0x58a1f6(0x1bd),_0x58a1f6(0x1d8),_0x58a1f6(0x1c8),_0x58a1f6(0x1d5),_0x58a1f6(0x1e0)]){if(typeof _0x3c764a[_0x3b1d8d]==_0x58a1f6(0x1e3))throw new AnnError(ApiError_1['ApiError'][_0x58a1f6(0x1d4)],{'message':'缺少头信息:'+_0x3b1d8d});_0x41721a[_0x58a1f6(0x1b8)](_0x3b1d8d+'='+_0x3c764a[_0x3b1d8d]);}_0x3c764a[_0x58a1f6(0x1d8)]&&((_0x3c6d9c=_0x3c764a[_0x58a1f6(0x1d8)])===null||_0x3c6d9c===void 0x0?void 0x0:_0x3c6d9c[_0x58a1f6(0x1cc)])==0xa&&(_0x3c764a[_0x58a1f6(0x1d8)]=_0x3c764a['requesttime']*0x3e8);if(this[_0x58a1f6(0x1cb)]['timeout']&&Date['now']()-Math[_0x58a1f6(0x1d9)](_0x3c764a[_0x58a1f6(0x1d8)])>this[_0x58a1f6(0x1cb)]['timeout'])throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1f4)],{'message':_0x58a1f6(0x1b7),'requesttime':_0x3c764a[_0x58a1f6(0x1d8)],'timestamp':Date[_0x58a1f6(0x1f3)]()});if((((_0x3227e6=this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]])===null||_0x3227e6===void 0x0?void 0x0:_0x3227e6[_0x58a1f6(0x1e9)])||0x0)>0x0&&Date[_0x58a1f6(0x1f3)]()-Math[_0x58a1f6(0x1d9)](_0x3c764a['logintime'])>this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a['device']]['logintimeout'])throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1ef)]);if(!this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]]||!this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a['device']]['secret']||!this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]]['checkcode'])throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1e8)]);if(_0x3c764a[_0x58a1f6(0x1c8)]&&_0x3c764a[_0x58a1f6(0x1e0)]!=this[_0x58a1f6(0x1e0)](_0x3c764a['token'],_0x3c764a[_0x58a1f6(0x1bd)],_0x3c764a[_0x58a1f6(0x1d5)]))throw new AnnError(ApiError_1[_0x58a1f6(0x1eb)][_0x58a1f6(0x1b3)]);return _0x41721a[_0x58a1f6(0x1b8)](_0x58a1f6(0x1dc)+this[_0x58a1f6(0x1cb)][_0x58a1f6(0x1d7)][_0x3c764a[_0x58a1f6(0x1bd)]][_0x58a1f6(0x1d0)]),(0x0,crypto_js_1['MD5'])(_0x41721a[_0x58a1f6(0x1de)]()[_0x58a1f6(0x1c2)](''))[_0x58a1f6(0x1dd)]();}[a11_0x121449(0x1e0)](_0x232939,_0x3e920a,_0x36a5b4=Date[a11_0x121449(0x1f3)]()){var _0x2621e5=a11_0x121449,_0x343659,_0x4168c3,_0x3fafcd;if(!((_0x343659=this[_0x2621e5(0x1cb)])===null||_0x343659===void 0x0?void 0x0:_0x343659[_0x2621e5(0x1d7)][_0x3e920a])||!((_0x3fafcd=(_0x4168c3=this[_0x2621e5(0x1cb)])===null||_0x4168c3===void 0x0?void 0x0:_0x4168c3['devices'][_0x3e920a])===null||_0x3fafcd===void 0x0?void 0x0:_0x3fafcd[_0x2621e5(0x1e0)]))throw new AnnError(ApiError_1[_0x2621e5(0x1eb)][_0x2621e5(0x1e8)]);return(0x0,crypto_js_1[_0x2621e5(0x1c1)])(''+_0x232939+(0x0,crypto_js_1['MD5'])(''+_0x36a5b4+(''+this[_0x2621e5(0x1cb)]['devices'][_0x3e920a][_0x2621e5(0x1e0)]))['toString']())[_0x2621e5(0x1dd)]();}[a11_0x121449(0x1c7)](_0x10f59e={}){var _0x42a770=a11_0x121449;const _0x5410a7=Object[_0x42a770(0x1df)](Object[_0x42a770(0x1f6)](_0x10f59e)[_0x42a770(0x1e5)](_0x3940e6=>[_0x3940e6[0x0][_0x42a770(0x1f7)](),_0x3940e6[0x1]]));if(!(_0x5410a7===null||_0x5410a7===void 0x0?void 0x0:_0x5410a7[_0x42a770(0x1d6)]))throw new AnnError(ApiError_1[_0x42a770(0x1eb)][_0x42a770(0x1d4)],{'message':_0x42a770(0x1f0)});if((_0x5410a7===null||_0x5410a7===void 0x0?void 0x0:_0x5410a7[_0x42a770(0x1d6)])!=this['getsign'](_0x5410a7))throw new AnnError(ApiError_1[_0x42a770(0x1eb)][_0x42a770(0x1ec)]);return!![];}};__decorate([(0x0,core_1[a11_0x121449(0x1ba)])(a11_0x121449(0x1b4)),__metadata(a11_0x121449(0x1d1),Object)],ApiService[a11_0x121449(0x1e1)],a11_0x121449(0x1cb),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x121449(0x1bb)])(),(0x0,core_1[a11_0x121449(0x1db)])(core_1['ScopeEnum'][a11_0x121449(0x1bc)])],ApiService),exports[a11_0x121449(0x1e6)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x52bd8a=a12_0x137c;(function(_0x5934b2,_0x185a1e){const _0x350543=a12_0x137c,_0x3b9b75=_0x5934b2();while(!![]){try{const _0x33a01c=-parseInt(_0x350543(0x157))/0x1+parseInt(_0x350543(0x170))/0x2*(-parseInt(_0x350543(0x13d))/0x3)+-parseInt(_0x350543(0x13b))/0x4+-parseInt(_0x350543(0x147))/0x5*(parseInt(_0x350543(0x146))/0x6)+-parseInt(_0x350543(0x143))/0x7+-parseInt(_0x350543(0x15d))/0x8+parseInt(_0x350543(0x15a))/0x9;if(_0x33a01c===_0x185a1e)break;else _0x3b9b75['push'](_0x3b9b75['shift']());}catch(_0x3bdb92){_0x3b9b75['push'](_0x3b9b75['shift']());}}}(a12_0x5ca5,0x356a8));const a12_0x9c5c61=(function(){let _0x27d7b4=!![];return function(_0x3e9f58,_0x45406f){const _0x708a68=_0x27d7b4?function(){const _0x446469=a12_0x137c;if(_0x45406f){const _0x4194d2=_0x45406f[_0x446469(0x166)](_0x3e9f58,arguments);return _0x45406f=null,_0x4194d2;}}:function(){};return _0x27d7b4=![],_0x708a68;};}()),a12_0x3b92d1=a12_0x9c5c61(this,function(){const _0x22d096=a12_0x137c;return a12_0x3b92d1[_0x22d096(0x185)]()['search'](_0x22d096(0x14a))[_0x22d096(0x185)]()[_0x22d096(0x158)](a12_0x3b92d1)[_0x22d096(0x159)](_0x22d096(0x14a));});a12_0x3b92d1();'use strict';var __decorate=this&&this['__decorate']||function(_0xd84258,_0x20af70,_0x478661,_0x1eeaf5){const _0x1aadad=a12_0x137c;var _0x38c84d=arguments['length'],_0x4ca54f=_0x38c84d<0x3?_0x20af70:_0x1eeaf5===null?_0x1eeaf5=Object[_0x1aadad(0x139)](_0x20af70,_0x478661):_0x1eeaf5,_0x6d0399;if(typeof Reflect===_0x1aadad(0x14f)&&typeof Reflect[_0x1aadad(0x17b)]==='function')_0x4ca54f=Reflect[_0x1aadad(0x17b)](_0xd84258,_0x20af70,_0x478661,_0x1eeaf5);else{for(var _0x25d3df=_0xd84258[_0x1aadad(0x160)]-0x1;_0x25d3df>=0x0;_0x25d3df--)if(_0x6d0399=_0xd84258[_0x25d3df])_0x4ca54f=(_0x38c84d<0x3?_0x6d0399(_0x4ca54f):_0x38c84d>0x3?_0x6d0399(_0x20af70,_0x478661,_0x4ca54f):_0x6d0399(_0x20af70,_0x478661))||_0x4ca54f;}return _0x38c84d>0x3&&_0x4ca54f&&Object[_0x1aadad(0x150)](_0x20af70,_0x478661,_0x4ca54f),_0x4ca54f;},__metadata=this&&this['__metadata']||function(_0x5bdcdf,_0x175797){const _0x1aceae=a12_0x137c;if(typeof Reflect===_0x1aceae(0x14f)&&typeof Reflect[_0x1aceae(0x165)]===_0x1aceae(0x175))return Reflect[_0x1aceae(0x165)](_0x5bdcdf,_0x175797);},__param=this&&this[a12_0x52bd8a(0x16f)]||function(_0xa23b31,_0x3ff43e){return function(_0x5832a3,_0x4b61bf){_0x3ff43e(_0x5832a3,_0x4b61bf,_0xa23b31);};};Object[a12_0x52bd8a(0x150)](exports,'__esModule',{'value':!![]}),exports['ApitestStaticController']=exports['ApitestService']=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a12_0x52bd8a(0x15e)),core_2=require(a12_0x52bd8a(0x15e)),core_3=require(a12_0x52bd8a(0x15e)),getRoutes_1=require('../helper/getRoutes');function a12_0x137c(_0x33f3ad,_0x2a5aba){const _0x4045ad=a12_0x5ca5();return a12_0x137c=function(_0x3b92d1,_0x9c5c61){_0x3b92d1=_0x3b92d1-0x138;let _0x5ca55b=_0x4045ad[_0x3b92d1];return _0x5ca55b;},a12_0x137c(_0x33f3ad,_0x2a5aba);}let ApitestService=class ApitestService{async[a12_0x52bd8a(0x183)](_0x327e4f){const _0x575bd0=a12_0x52bd8a,_0x568343=(0x0,getRoutes_1['getRoutes'])(_0x327e4f),_0x5e9945=[];for(let _0x27fb6c in _0x568343){for(let _0x46bd06 in _0x568343[_0x27fb6c]['routes']){let _0x3f3cd7=_0x568343[_0x27fb6c][_0x575bd0(0x14d)][_0x46bd06],_0x59e66b=[];for(let _0x1f4ab4 in _0x3f3cd7['request']){_0x59e66b['push'](_0x3f3cd7[_0x575bd0(0x17c)][_0x1f4ab4]);}_0x5e9945[_0x575bd0(0x17e)]({'title':_0x568343[_0x27fb6c][_0x575bd0(0x16b)]+':'+_0x3f3cd7[_0x575bd0(0x16b)],'prefix':_0x568343[_0x27fb6c][_0x575bd0(0x173)],'router':_0x3f3cd7['route'],'method':_0x3f3cd7[_0x575bd0(0x13a)],'describe':_0x3f3cd7[_0x575bd0(0x153)]||'','filepath':_0x568343[_0x27fb6c][_0x575bd0(0x155)]||'','request':_0x59e66b});}}const _0x505090=(0x0,path_1[_0x575bd0(0x16d)])(__dirname,_0x575bd0(0x167));return(0x0,fs_1[_0x575bd0(0x151)])(_0x505090,{'encoding':'utf-8'})[_0x575bd0(0x142)](/__res__/g,_0x575bd0(0x179))[_0x575bd0(0x142)](_0x575bd0(0x186),JSON[_0x575bd0(0x148)](_0x5e9945))['replace'](_0x575bd0(0x13f),JSON[_0x575bd0(0x148)](this[_0x575bd0(0x184)]['devices']));}};__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata('design:type',Object)],ApitestService[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x184),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a12_0x52bd8a(0x15b)),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a12_0x52bd8a(0x149)])],ApitestService),exports[a12_0x52bd8a(0x171)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x52bd8a(0x169)](){const _0x3c261f=a12_0x52bd8a;if(this[_0x3c261f(0x15b)]){const _0x1daa03={'module':![]};return this[_0x3c261f(0x17f)][_0x3c261f(0x168)]()&&(_0x1daa03[_0x3c261f(0x155)]=!![]),await this['ApitestService'][_0x3c261f(0x183)](_0x1daa03);}return'';}async[a12_0x52bd8a(0x17a)](_0x4e200a){const _0x599ee1=a12_0x52bd8a;if(this[_0x599ee1(0x15b)]){const _0x27cdb8={'module':_0x4e200a};return this[_0x599ee1(0x17f)][_0x599ee1(0x168)]()&&(_0x27cdb8[_0x599ee1(0x155)]=!![]),await this[_0x599ee1(0x171)][_0x599ee1(0x183)](_0x27cdb8);}return'';}async['apiteststatic'](){const _0x18fc10=a12_0x52bd8a;if((0x0,path_1[_0x18fc10(0x180)])(this[_0x18fc10(0x177)][_0x18fc10(0x17c)][_0x18fc10(0x17d)])){var _0x252381=(0x0,path_1[_0x18fc10(0x16d)])(__dirname,_0x18fc10(0x15c)+this[_0x18fc10(0x177)][_0x18fc10(0x17c)]['url'][_0x18fc10(0x142)](_0x18fc10(0x179),'/'));if(_0x252381[_0x18fc10(0x174)](_0x252381[_0x18fc10(0x160)]-0xb)!='/index.html'){this[_0x18fc10(0x177)]['set'](_0x18fc10(0x15f),'public,\x20max-age=604800');if((0x0,path_1[_0x18fc10(0x180)])(this[_0x18fc10(0x177)][_0x18fc10(0x17c)][_0x18fc10(0x17d)])==_0x18fc10(0x154))this[_0x18fc10(0x177)][_0x18fc10(0x163)](_0x18fc10(0x161),_0x18fc10(0x182));else(0x0,path_1[_0x18fc10(0x180)])(this[_0x18fc10(0x177)][_0x18fc10(0x17c)][_0x18fc10(0x17d)])==_0x18fc10(0x140)&&this[_0x18fc10(0x177)][_0x18fc10(0x163)](_0x18fc10(0x161),_0x18fc10(0x138));return(0x0,fs_1[_0x18fc10(0x144)])(_0x252381)&&(0x0,fs_1[_0x18fc10(0x151)])(_0x252381,{'encoding':_0x18fc10(0x13c)});}}return'';}};__decorate([(0x0,core_3[a12_0x52bd8a(0x14b)])(),__metadata('design:type',Object)],ApitestStaticController[a12_0x52bd8a(0x152)],'ctx',void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x14b)])(),__metadata(a12_0x52bd8a(0x14c),core_1['MidwayEnvironmentService'])],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x17f),void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x14b)])(),__metadata(a12_0x52bd8a(0x14c),ApitestService)],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x171),void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x178)])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x15b),void 0x0),__decorate([(0x0,core_3[a12_0x52bd8a(0x178)])(a12_0x52bd8a(0x16a)),__metadata(a12_0x52bd8a(0x14c),Object)],ApitestStaticController[a12_0x52bd8a(0x152)],'config',void 0x0),__decorate([(0x0,core_2['Get'])('/apitest'),__metadata('design:type',Function),__metadata(a12_0x52bd8a(0x187),[]),__metadata(a12_0x52bd8a(0x172),Promise)],ApitestStaticController[a12_0x52bd8a(0x152)],'apitesthtml',null),__decorate([(0x0,core_2[a12_0x52bd8a(0x156)])(a12_0x52bd8a(0x13e)),__param(0x0,(0x0,core_2[a12_0x52bd8a(0x176)])(a12_0x52bd8a(0x164))),__metadata(a12_0x52bd8a(0x14c),Function),__metadata(a12_0x52bd8a(0x187),[String]),__metadata(a12_0x52bd8a(0x172),Promise)],ApitestStaticController[a12_0x52bd8a(0x152)],'apitestmodule',null),__decorate([(0x0,core_2[a12_0x52bd8a(0x156)])(a12_0x52bd8a(0x181)),__metadata(a12_0x52bd8a(0x14c),Function),__metadata('design:paramtypes',[]),__metadata(a12_0x52bd8a(0x172),Promise)],ApitestStaticController[a12_0x52bd8a(0x152)],a12_0x52bd8a(0x14e),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x52bd8a(0x141)])('/'),(0x0,core_3[a12_0x52bd8a(0x162)])(core_3[a12_0x52bd8a(0x16c)][a12_0x52bd8a(0x145)])],ApitestStaticController),exports[a12_0x52bd8a(0x16e)]=ApitestStaticController;function a12_0x5ca5(){const _0x3db52f=['(((.+)+)+)+$','Inject','design:type','routes','apiteststatic','object','defineProperty','readFileSync','prototype','description','.js','filepath','Get','407QljeSi','constructor','search','11870199ejxzma','apitest','../../public/','770144kKatUa','@midwayjs/core','cache-control','length','content-type','Scope','set','module','metadata','apply','../../public/index.html','isDevelopmentEnvironment','apitesthtml','anncicapi','summary','ScopeEnum','join','ApitestStaticController','__param','247058ievKoP','ApitestService','design:returntype','prefix','substring','function','Param','ctx','Config','/apiteststatic/','apitestmodule','decorate','request','url','push','Environment','extname','/apiteststatic/*','application/javascript;\x20charset=utf-8','apidoc','config','toString','__apiList__','design:paramtypes','text/css;\x20charset=utf-8','getOwnPropertyDescriptor','method','663992yglKWD','utf-8','9OWozNw','/apitest-:module','__devices__','.css','Controller','replace','2161530xyzoox','existsSync','Request','948414hxjzHE','5BxtwMj','stringify','Singleton'];a12_0x5ca5=function(){return _0x3db52f;};return a12_0x5ca5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x22003c=a13_0x584d;(function(_0x32abf0,_0x577864){const _0x59c9b0=a13_0x584d,_0x2db2f4=_0x32abf0();while(!![]){try{const _0x4d9196=-parseInt(_0x59c9b0(0x15b))/0x1+parseInt(_0x59c9b0(0x16f))/0x2+-parseInt(_0x59c9b0(0x14c))/0x3+parseInt(_0x59c9b0(0x180))/0x4*(-parseInt(_0x59c9b0(0x169))/0x5)+parseInt(_0x59c9b0(0x185))/0x6*(-parseInt(_0x59c9b0(0x16c))/0x7)+-parseInt(_0x59c9b0(0x175))/0x8+-parseInt(_0x59c9b0(0x17e))/0x9*(-parseInt(_0x59c9b0(0x166))/0xa);if(_0x4d9196===_0x577864)break;else _0x2db2f4['push'](_0x2db2f4['shift']());}catch(_0x4d5668){_0x2db2f4['push'](_0x2db2f4['shift']());}}}(a13_0x46ed,0x93848));const a13_0x5499be=(function(){let _0x242aed=!![];return function(_0x48cbab,_0x44ae5f){const _0x3388dd=_0x242aed?function(){if(_0x44ae5f){const _0x505fe5=_0x44ae5f['apply'](_0x48cbab,arguments);return _0x44ae5f=null,_0x505fe5;}}:function(){};return _0x242aed=![],_0x3388dd;};}()),a13_0x406d3d=a13_0x5499be(this,function(){const _0x30271e=a13_0x584d;return a13_0x406d3d[_0x30271e(0x151)]()['search'](_0x30271e(0x153))[_0x30271e(0x151)]()[_0x30271e(0x16e)](a13_0x406d3d)[_0x30271e(0x148)](_0x30271e(0x153));});a13_0x406d3d();'use strict';function a13_0x46ed(){const _0x3d63f9=['object','toString','substring','(((.+)+)+)+$','function','decorate','col','defineProperty','Singleton','isNumber','parse','455209ZfKpTo','Provide','koa-send','header','startsWith','cellCount','key','download','Sheet\x201','readFile','getAppDir','19370deCPYH','endsWith','replace','1290jZwiIN','mkdirSync','random','2485gmhNVY','value','constructor','1534700SXhGZz','model','/public/xlsx/','length','filter','__metadata','1301624puehfu','App','__decorate','existsSync','design:type','Api\x20Excel\x20Error:\x20','handler','getCell','@midwayjs/core','12609ucIHcI','metadata','14716aCxnTf','__esModule','xlsx','ExcelService','columns','8376hjjllx','get','getRow','values','app','keys','set','.xlsx','YYYY/MM/DD','getWorksheet','search','log','writeFile','exceljs','2442543LkGJzF','addWorksheet','addRow','export'];a13_0x46ed=function(){return _0x3d63f9;};return a13_0x46ed();}var __decorate=this&&this[a13_0x22003c(0x177)]||function(_0x3f7aa9,_0x2406f8,_0x216629,_0x25dab4){const _0x22c28b=a13_0x22003c;var _0x3fc4cf=arguments[_0x22c28b(0x172)],_0x486a74=_0x3fc4cf<0x3?_0x2406f8:_0x25dab4===null?_0x25dab4=Object['getOwnPropertyDescriptor'](_0x2406f8,_0x216629):_0x25dab4,_0x57c5ed;if(typeof Reflect===_0x22c28b(0x150)&&typeof Reflect[_0x22c28b(0x155)]===_0x22c28b(0x154))_0x486a74=Reflect[_0x22c28b(0x155)](_0x3f7aa9,_0x2406f8,_0x216629,_0x25dab4);else{for(var _0xa7d867=_0x3f7aa9[_0x22c28b(0x172)]-0x1;_0xa7d867>=0x0;_0xa7d867--)if(_0x57c5ed=_0x3f7aa9[_0xa7d867])_0x486a74=(_0x3fc4cf<0x3?_0x57c5ed(_0x486a74):_0x3fc4cf>0x3?_0x57c5ed(_0x2406f8,_0x216629,_0x486a74):_0x57c5ed(_0x2406f8,_0x216629))||_0x486a74;}return _0x3fc4cf>0x3&&_0x486a74&&Object[_0x22c28b(0x157)](_0x2406f8,_0x216629,_0x486a74),_0x486a74;},__metadata=this&&this[a13_0x22003c(0x174)]||function(_0x312c1e,_0x23c8e3){const _0x52a9c5=a13_0x22003c;if(typeof Reflect===_0x52a9c5(0x150)&&typeof Reflect['metadata']===_0x52a9c5(0x154))return Reflect[_0x52a9c5(0x17f)](_0x312c1e,_0x23c8e3);};Object[a13_0x22003c(0x157)](exports,a13_0x22003c(0x181),{'value':!![]}),exports[a13_0x22003c(0x183)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x22003c(0x14b)),koasend=require(a13_0x22003c(0x15d)),core_1=require(a13_0x22003c(0x17d));let ExcelService=class ExcelService{async[a13_0x22003c(0x15a)](_0x114328,_0x3d1859,_0x4d9f85=[0x0]){const _0x5950fa=a13_0x22003c;var _0x3eb3b4,_0x1caa2a;const _0x595975=new exceljs['Workbook'](),_0x3f51aa=[];let _0x2a10b3=_0x114328['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x2a10b3===null||_0x2a10b3===void 0x0?void 0x0:_0x2a10b3[_0x5950fa(0x15f)]('/'))&&(_0x2a10b3=this['app'][_0x5950fa(0x165)]()+'/'+_0x2a10b3);try{await _0x595975[_0x5950fa(0x182)][_0x5950fa(0x164)](_0x2a10b3);}catch(_0x17a07d){return console[_0x5950fa(0x149)](_0x5950fa(0x17a)+_0x2a10b3+'\x20is\x20read\x20fail'),_0x3f51aa;}for(const _0x4f6e21 of _0x4d9f85){const _0x5cbcf7=lodash[_0x5950fa(0x159)](_0x4f6e21)?((_0x3eb3b4=_0x595975['worksheets'])===null||_0x3eb3b4===void 0x0?void 0x0:_0x3eb3b4[_0x4f6e21])||undefined:_0x595975[_0x5950fa(0x147)](_0x4f6e21);if(_0x5cbcf7){var _0xec1f5d=0x1;const _0x5b76fd=_0x5cbcf7[_0x5950fa(0x187)](0x1),_0x289acf=await new Promise(_0x3d5fd9=>{const _0x1e4cbd={};_0x5b76fd['eachCell']((_0x197282,_0x5db042)=>{const _0x378306=a13_0x584d;for(const _0x3f01df of _0x3d1859){if(_0x197282[_0x378306(0x16d)]==_0x3f01df['header'])_0xec1f5d=0x2,_0x1e4cbd[_0x3f01df[_0x378306(0x161)]]={'header':_0x197282[_0x378306(0x156)],'handler':_0x3f01df[_0x378306(0x17b)]};else{if(!_0x1e4cbd[_0x3f01df[_0x378306(0x161)]])try{const _0x20fc5e=_0x5b76fd&&_0x5b76fd['getCell'](_0x3f01df['header']);_0x20fc5e&&(_0x1e4cbd[_0x3f01df[_0x378306(0x161)]]={'header':_0x20fc5e[_0x378306(0x156)],'handler':_0x3f01df[_0x378306(0x17b)]});}catch{}}}_0x5b76fd[_0x378306(0x160)]==_0x5db042&&_0x3d5fd9(_0x1e4cbd);});});for(const _0x5da2ca of _0x5cbcf7['findRows'](_0xec1f5d,_0x5cbcf7['rowCount'])){const _0x1637bd={};for(const _0x41caf3 in _0x289acf){if(_0x289acf[_0x41caf3][_0x5950fa(0x15e)]){const _0x116b85=_0x5da2ca&&_0x5da2ca[_0x5950fa(0x17c)](_0x289acf[_0x41caf3]['header']);try{_0x116b85['toString']();}catch(_0x31dc17){_0x116b85['toString']=()=>{const _0x12377a=_0x5950fa;var _0x5c16ca;return''+(((_0x5c16ca=_0x116b85===null||_0x116b85===void 0x0?void 0x0:_0x116b85[_0x12377a(0x170)])===null||_0x5c16ca===void 0x0?void 0x0:_0x5c16ca[_0x12377a(0x16d)])||'');};}typeof((_0x1caa2a=_0x289acf[_0x41caf3])===null||_0x1caa2a===void 0x0?void 0x0:_0x1caa2a['handler'])==_0x5950fa(0x154)?_0x1637bd[_0x41caf3]=await _0x289acf[_0x41caf3][_0x5950fa(0x17b)](lodash[_0x5950fa(0x18b)]({},_0x41caf3,(_0x116b85===null||_0x116b85===void 0x0?void 0x0:_0x116b85[_0x5950fa(0x151)]())||''),_0x116b85[_0x5950fa(0x170)]):_0x1637bd[_0x41caf3]=(_0x116b85===null||_0x116b85===void 0x0?void 0x0:_0x116b85[_0x5950fa(0x151)]())||'';}}Object[_0x5950fa(0x18a)](_0x1637bd)[_0x5950fa(0x172)]>0x0&&Object[_0x5950fa(0x188)](_0x1637bd)[_0x5950fa(0x173)](_0x28eb1c=>_0x28eb1c!=='')[_0x5950fa(0x172)]>0x0&&_0x3f51aa['push'](_0x1637bd);}}}return _0x3f51aa;}async[a13_0x22003c(0x14f)](_0x88597c,_0x58b3d4,_0x5e049e,_0x1da6e5){const _0x265742=a13_0x22003c;var _0x2005d6,_0x5ed3e8;const _0x216450=new exceljs['Workbook'](),_0x5332ec={},_0x5849e2=[],_0x4ee9a3=_0x216450[_0x265742(0x14d)](_0x265742(0x163),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x49c17e in _0x58b3d4){_0x5332ec[_0x58b3d4[_0x49c17e][_0x265742(0x161)]]=_0x58b3d4[_0x49c17e]['header'],_0x5849e2['push']({'header':_0x58b3d4[_0x49c17e][_0x265742(0x15e)],'key':(_0x2005d6=_0x58b3d4[_0x49c17e])===null||_0x2005d6===void 0x0?void 0x0:_0x2005d6[_0x265742(0x161)][_0x265742(0x168)](/\./g,'_')});}_0x4ee9a3[_0x265742(0x184)]=_0x5849e2;for(const _0x259c3d of _0x5e049e){const _0x4a7bcd={};for(const _0x20abe9 in _0x58b3d4){typeof((_0x5ed3e8=_0x58b3d4[_0x20abe9])===null||_0x5ed3e8===void 0x0?void 0x0:_0x5ed3e8[_0x265742(0x17b)])=='function'?_0x4a7bcd[_0x58b3d4[_0x20abe9]['key'][_0x265742(0x168)](/\./g,'_')]=await _0x58b3d4[_0x20abe9]['handler'](_0x259c3d):_0x4a7bcd[_0x58b3d4[_0x20abe9][_0x265742(0x161)][_0x265742(0x168)](/\./g,'_')]=lodash[_0x265742(0x186)](_0x259c3d,_0x58b3d4[_0x20abe9][_0x265742(0x161)],'');}_0x4ee9a3[_0x265742(0x14e)](_0x4a7bcd);}let _0x33c692='';const _0x321535=_0x88597c+'-'+lodash[_0x265742(0x16b)](0x186a0,0xf423f)+_0x265742(0x18c);if(_0x1da6e5&&_0x1da6e5['startsWith']('/'))_0x33c692=''+_0x1da6e5;else _0x1da6e5&&!_0x1da6e5[_0x265742(0x15f)]('/')&&!_0x1da6e5['startsWith']('\x5c')?_0x33c692=this['app'][_0x265742(0x165)]()+'/'+_0x1da6e5:_0x33c692=this[_0x265742(0x189)][_0x265742(0x165)]()+_0x265742(0x171)+dayjs()['format'](_0x265742(0x18d));return(_0x33c692[_0x265742(0x167)]('/')||_0x33c692['endsWith']('\x5c'))&&(_0x33c692=_0x33c692[_0x265742(0x152)](0x0,_0x33c692[_0x265742(0x172)]-0x1)),_0x33c692=_0x33c692[_0x265742(0x168)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x265742(0x178)](_0x33c692)&&fs[_0x265742(0x16a)](_0x33c692,{'recursive':!![]}),await _0x216450['xlsx'][_0x265742(0x14a)]((_0x33c692+'/'+_0x321535)[_0x265742(0x168)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x321535,'filepath':(_0x33c692[_0x265742(0x152)]((''+this[_0x265742(0x189)][_0x265742(0x165)]())['length'])+'/'+_0x321535)['replace'](/(\\|\/)/g,'/')[_0x265742(0x168)](/\/{2,}/g,'/')};}async[a13_0x22003c(0x162)](_0x5647b1,_0x394e4d){return await koasend(_0x5647b1,''+_0x394e4d);}};function a13_0x584d(_0x2f281d,_0xc5264b){const _0x423ee7=a13_0x46ed();return a13_0x584d=function(_0x406d3d,_0x5499be){_0x406d3d=_0x406d3d-0x147;let _0x46ed57=_0x423ee7[_0x406d3d];return _0x46ed57;},a13_0x584d(_0x2f281d,_0xc5264b);}__decorate([(0x0,core_1[a13_0x22003c(0x176)])(),__metadata(a13_0x22003c(0x179),Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x22003c(0x15c)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a13_0x22003c(0x158)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x18ec03=a14_0x5df9;(function(_0xe460b8,_0x1ff36d){var _0x3cd4b8=a14_0x5df9,_0x479791=_0xe460b8();while(!![]){try{var _0x574f1c=-parseInt(_0x3cd4b8(0x18a))/0x1+parseInt(_0x3cd4b8(0x181))/0x2+parseInt(_0x3cd4b8(0x184))/0x3+parseInt(_0x3cd4b8(0x18b))/0x4*(parseInt(_0x3cd4b8(0x18c))/0x5)+parseInt(_0x3cd4b8(0x193))/0x6*(-parseInt(_0x3cd4b8(0x18e))/0x7)+-parseInt(_0x3cd4b8(0x18f))/0x8*(parseInt(_0x3cd4b8(0x180))/0x9)+parseInt(_0x3cd4b8(0x191))/0xa*(-parseInt(_0x3cd4b8(0x18d))/0xb);if(_0x574f1c===_0x1ff36d)break;else _0x479791['push'](_0x479791['shift']());}catch(_0x3334a5){_0x479791['push'](_0x479791['shift']());}}}(a14_0x446e,0x7afe2));var a14_0xd766e8=(function(){var _0x32eb17=!![];return function(_0x5d48ed,_0x146bb8){var _0x3d5790=_0x32eb17?function(){var _0x180f95=a14_0x5df9;if(_0x146bb8){var _0x189c57=_0x146bb8[_0x180f95(0x190)](_0x5d48ed,arguments);return _0x146bb8=null,_0x189c57;}}:function(){};return _0x32eb17=![],_0x3d5790;};}()),a14_0x3450ea=a14_0xd766e8(this,function(){var _0x46868b=a14_0x5df9;return a14_0x3450ea['toString']()[_0x46868b(0x17f)](_0x46868b(0x188))[_0x46868b(0x185)]()[_0x46868b(0x183)](a14_0x3450ea)[_0x46868b(0x17f)](_0x46868b(0x188));});a14_0x3450ea();'use strict';Object['defineProperty'](exports,a14_0x18ec03(0x192),{'value':!![]}),exports['AppsConfigTmp']=exports[a14_0x18ec03(0x189)]=exports[a14_0x18ec03(0x187)]=exports[a14_0x18ec03(0x182)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a14_0x18ec03(0x187)]=a14_0x18ec03(0x186),exports[a14_0x18ec03(0x189)]='anncic-api:apps:config';function a14_0x5df9(_0x3945b3,_0xbfd8b4){var _0x22ad9e=a14_0x446e();return a14_0x5df9=function(_0x3450ea,_0xd766e8){_0x3450ea=_0x3450ea-0x17f;var _0x446e8f=_0x22ad9e[_0x3450ea];return _0x446e8f;},a14_0x5df9(_0x3945b3,_0xbfd8b4);}function a14_0x446e(){var _0x1458e5=['anncic-api:action:route','ACTION_ROUTE_KEY','(((.+)+)+)+$','APPSCONFIG_KEY','444785UiHrwY','3564668zfsedz','5ZYTQzh','484IAFnnJ','154xCxQkX','713672ERWSoj','apply','25250Rhhmox','__esModule','224274cYWHQl','search','27DxPtbg','701336ZtWQth','ACTION_KEY','constructor','2723379Vuygsu','toString'];a14_0x446e=function(){return _0x1458e5;};return a14_0x446e();}class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a15_0x3c91(_0x187cdd,_0x2c752a){var _0x265285=a15_0x28e9();return a15_0x3c91=function(_0x34b2b0,_0x4cbe1f){_0x34b2b0=_0x34b2b0-0x99;var _0x28e941=_0x265285[_0x34b2b0];return _0x28e941;},a15_0x3c91(_0x187cdd,_0x2c752a);}var a15_0x473e19=a15_0x3c91;(function(_0xbfc201,_0x1f0fa3){var _0x299d2a=a15_0x3c91,_0xa85fee=_0xbfc201();while(!![]){try{var _0x475b9f=parseInt(_0x299d2a(0xa2))/0x1+-parseInt(_0x299d2a(0xa6))/0x2+-parseInt(_0x299d2a(0xb9))/0x3*(parseInt(_0x299d2a(0xa5))/0x4)+parseInt(_0x299d2a(0xae))/0x5+-parseInt(_0x299d2a(0x9d))/0x6*(parseInt(_0x299d2a(0xaa))/0x7)+parseInt(_0x299d2a(0xb6))/0x8+parseInt(_0x299d2a(0xb1))/0x9*(parseInt(_0x299d2a(0xb7))/0xa);if(_0x475b9f===_0x1f0fa3)break;else _0xa85fee['push'](_0xa85fee['shift']());}catch(_0x545db1){_0xa85fee['push'](_0xa85fee['shift']());}}}(a15_0x28e9,0x838de));var a15_0x4cbe1f=(function(){var _0x4f7b75=!![];return function(_0x3c0157,_0x296b29){var _0x52e2cb=_0x4f7b75?function(){if(_0x296b29){var _0x100db0=_0x296b29['apply'](_0x3c0157,arguments);return _0x296b29=null,_0x100db0;}}:function(){};return _0x4f7b75=![],_0x52e2cb;};}()),a15_0x34b2b0=a15_0x4cbe1f(this,function(){var _0x16d5dd=a15_0x3c91;return a15_0x34b2b0[_0x16d5dd(0x9b)]()[_0x16d5dd(0xb5)]('(((.+)+)+)+$')[_0x16d5dd(0x9b)]()['constructor'](a15_0x34b2b0)['search'](_0x16d5dd(0x99));});a15_0x34b2b0();'use strict';var __decorate=this&&this[a15_0x473e19(0x9a)]||function(_0x5a185a,_0x199375,_0x541628,_0x5df561){var _0x526a30=a15_0x473e19,_0x4236ed=arguments[_0x526a30(0xb3)],_0xe7c8b9=_0x4236ed<0x3?_0x199375:_0x5df561===null?_0x5df561=Object['getOwnPropertyDescriptor'](_0x199375,_0x541628):_0x5df561,_0x385be3;if(typeof Reflect===_0x526a30(0x9f)&&typeof Reflect[_0x526a30(0xb2)]===_0x526a30(0xb0))_0xe7c8b9=Reflect[_0x526a30(0xb2)](_0x5a185a,_0x199375,_0x541628,_0x5df561);else{for(var _0x367dc0=_0x5a185a[_0x526a30(0xb3)]-0x1;_0x367dc0>=0x0;_0x367dc0--)if(_0x385be3=_0x5a185a[_0x367dc0])_0xe7c8b9=(_0x4236ed<0x3?_0x385be3(_0xe7c8b9):_0x4236ed>0x3?_0x385be3(_0x199375,_0x541628,_0xe7c8b9):_0x385be3(_0x199375,_0x541628))||_0xe7c8b9;}return _0x4236ed>0x3&&_0xe7c8b9&&Object[_0x526a30(0xa1)](_0x199375,_0x541628,_0xe7c8b9),_0xe7c8b9;},__metadata=this&&this[a15_0x473e19(0xba)]||function(_0x50fd89,_0x5ee13a){var _0x5f366c=a15_0x473e19;if(typeof Reflect===_0x5f366c(0x9f)&&typeof Reflect[_0x5f366c(0xa0)]===_0x5f366c(0xb0))return Reflect[_0x5f366c(0xa0)](_0x50fd89,_0x5ee13a);};Object[a15_0x473e19(0xa1)](exports,a15_0x473e19(0xa3),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x473e19(0xbc));class PageDTO{}__decorate([(0x0,validator_1[a15_0x473e19(0x9e)])('分页',validator_1[a15_0x473e19(0xad)][a15_0x473e19(0xab)]()[a15_0x473e19(0xa8)]()[a15_0x473e19(0xbb)](0x1),'第一页为1,第二页为2'),__metadata(a15_0x473e19(0xac),Number)],PageDTO['prototype'],a15_0x473e19(0xb4),void 0x0),__decorate([(0x0,validator_1[a15_0x473e19(0x9e)])('分页数量',validator_1['RuleType'][a15_0x473e19(0xab)]()[a15_0x473e19(0xa8)]()[a15_0x473e19(0xbb)](0x1)),__metadata(a15_0x473e19(0xac),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x473e19(0xa4),validator_1['RuleType'][a15_0x473e19(0x9c)]()[a15_0x473e19(0xa9)]()),__metadata(a15_0x473e19(0xac),String)],PageDTO[a15_0x473e19(0xaf)],'_order',void 0x0),__decorate([(0x0,validator_1[a15_0x473e19(0x9e)])(a15_0x473e19(0xb8),validator_1[a15_0x473e19(0xad)][a15_0x473e19(0xab)]()[a15_0x473e19(0xa8)]()['valid'](0x0,0x1),a15_0x473e19(0xa7)),__metadata('design:type',Number)],PageDTO[a15_0x473e19(0xaf)],'_isreverse',void 0x0),exports['PageDTO']=PageDTO;function a15_0x28e9(){var _0x5b6b5c=['__esModule','排序方式','2891128TpvWDE','120780AnGqUG','1:是;0:否','integer','trim','996989VCiFpm','number','design:type','RuleType','4659055qeqoFd','prototype','function','5785794uNYHfi','decorate','length','_page','search','1645512JTWEXM','10fwRNUU','是否倒序','3mXqSAa','__metadata','min','@anncic-api/validator','(((.+)+)+)+$','__decorate','toString','string','42KQuORS','Rule','object','metadata','defineProperty','538641NPyZOb'];a15_0x28e9=function(){return _0x5b6b5c;};return a15_0x28e9();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x32b481=a16_0x11c9;(function(_0x512ca2,_0x5f2bc0){var _0xe9b9f6=a16_0x11c9,_0x3ca8d8=_0x512ca2();while(!![]){try{var _0x49da59=parseInt(_0xe9b9f6(0x80))/0x1*(-parseInt(_0xe9b9f6(0x7c))/0x2)+-parseInt(_0xe9b9f6(0x7d))/0x3+parseInt(_0xe9b9f6(0x7b))/0x4+-parseInt(_0xe9b9f6(0x76))/0x5*(-parseInt(_0xe9b9f6(0x6c))/0x6)+parseInt(_0xe9b9f6(0x73))/0x7*(parseInt(_0xe9b9f6(0x77))/0x8)+parseInt(_0xe9b9f6(0x7e))/0x9*(parseInt(_0xe9b9f6(0x7f))/0xa)+-parseInt(_0xe9b9f6(0x74))/0xb*(parseInt(_0xe9b9f6(0x6f))/0xc);if(_0x49da59===_0x5f2bc0)break;else _0x3ca8d8['push'](_0x3ca8d8['shift']());}catch(_0x4cf1ca){_0x3ca8d8['push'](_0x3ca8d8['shift']());}}}(a16_0x54e6,0x9faea));function a16_0x11c9(_0x48c024,_0x3e36d3){var _0x13ef67=a16_0x54e6();return a16_0x11c9=function(_0x45f1ff,_0x202d3c){_0x45f1ff=_0x45f1ff-0x6c;var _0x54e64f=_0x13ef67[_0x45f1ff];return _0x54e64f;},a16_0x11c9(_0x48c024,_0x3e36d3);}var a16_0x202d3c=(function(){var _0x5676e2=!![];return function(_0x384f05,_0x537255){var _0x9307ab=_0x5676e2?function(){var _0x21ccc5=a16_0x11c9;if(_0x537255){var _0x1bdf5e=_0x537255[_0x21ccc5(0x78)](_0x384f05,arguments);return _0x537255=null,_0x1bdf5e;}}:function(){};return _0x5676e2=![],_0x9307ab;};}()),a16_0x45f1ff=a16_0x202d3c(this,function(){var _0x3c363a=a16_0x11c9;return a16_0x45f1ff[_0x3c363a(0x79)]()[_0x3c363a(0x7a)](_0x3c363a(0x71))['toString']()['constructor'](a16_0x45f1ff)['search'](_0x3c363a(0x71));});a16_0x45f1ff();'use strict';function a16_0x54e6(){var _0x19e045=['apply','toString','search','3678640XLiXnj','2520qoLXhc','669372nUobwl','844551Tyykzj','10oOocGL','896kxtDCN','39540SJFUFi','anncic-api:intercept','defineProperty','13074324yPFOFX','InterceptTargetTmp','(((.+)+)+)+$','__esModule','7ZwaQql','11YIWczP','INTERCEPT_KEY','910SFYIes','7062320VblEqt'];a16_0x54e6=function(){return _0x19e045;};return a16_0x54e6();}Object[a16_0x32b481(0x6e)](exports,a16_0x32b481(0x72),{'value':!![]}),exports[a16_0x32b481(0x70)]=exports[a16_0x32b481(0x75)]=void 0x0,exports['INTERCEPT_KEY']=a16_0x32b481(0x6d);class InterceptTargetTmp{}exports[a16_0x32b481(0x70)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.1.
|
|
21
|
-
"@anncic-api/core": "^2.1.
|
|
22
|
-
"@anncic-api/event": "^2.1.
|
|
23
|
-
"@anncic-api/typeorm": "^2.1.
|
|
24
|
-
"@anncic-api/validator": "^2.1.
|
|
20
|
+
"@anncic-api/cache": "^2.1.3",
|
|
21
|
+
"@anncic-api/core": "^2.1.3",
|
|
22
|
+
"@anncic-api/event": "^2.1.3",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.3",
|
|
24
|
+
"@anncic-api/validator": "^2.1.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.1.
|
|
30
|
+
"anncic-apihelper": "^2.1.3",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"image-size": "^1.0.2",
|
|
33
33
|
"koa-send": "^5.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.0",
|
|
39
39
|
"typescript": "^4.8.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "733c560da89ce47deb5efa9fde7866390828ff73"
|
|
42
42
|
}
|