anncic-api 1.3.12 → 1.3.14
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/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/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a0_0x6c6597=a0_0x1578;(function(_0x40837a,_0x2f1b23){var _0x14642b=a0_0x1578,_0x5ed3da=_0x40837a();while(!![]){try{var _0x45383f=parseInt(_0x14642b(0x167))/0x1*(-parseInt(_0x14642b(0x16e))/0x2)+parseInt(_0x14642b(0x165))/0x3+parseInt(_0x14642b(0x16c))/0x4+parseInt(_0x14642b(0x175))/0x5*(parseInt(_0x14642b(0x16b))/0x6)+-parseInt(_0x14642b(0x162))/0x7*(-parseInt(_0x14642b(0x164))/0x8)+-parseInt(_0x14642b(0x171))/0x9+parseInt(_0x14642b(0x174))/0xa*(-parseInt(_0x14642b(0x169))/0xb);if(_0x45383f===_0x2f1b23)break;else _0x5ed3da['push'](_0x5ed3da['shift']());}catch(_0x5bd8ac){_0x5ed3da['push'](_0x5ed3da['shift']());}}}(a0_0x5b50,0x56355));Object[a0_0x6c6597(0x173)](exports,a0_0x6c6597(0x16f),{'value':!![]}),exports[a0_0x6c6597(0x170)]=_0x369882=>{var _0x15370d=a0_0x6c6597;return{'apitest':!![],'keys':_0x369882[_0x15370d(0x172)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x15370d(0x16d),'checkcode':_0x15370d(0x16d)}}},'bodyParser':{'enableTypes':[_0x15370d(0x16a),'form',_0x15370d(0x163),_0x15370d(0x176)],'formLimit':_0x15370d(0x161),'jsonLimit':_0x15370d(0x161),'textLimit':'20mb','xmlLimit':_0x15370d(0x161)},'upload':{'tmpdir':_0x369882[_0x15370d(0x168)]+_0x15370d(0x166),'cleanTimeout':0x5265c00}};};function a0_0x1578(_0x589e7f,_0x574085){var _0x5b50cd=a0_0x5b50();return a0_0x1578=function(_0x157894,_0xd8a1a2){_0x157894=_0x157894-0x161;var _0x565bde=_0x5b50cd[_0x157894];return _0x565bde;},a0_0x1578(_0x589e7f,_0x574085);}function a0_0x5b50(){var _0x3d0ba7=['/runtime/.upload','270257blKaEk','appDir','11HeBRyF','json','606Ssyjka','1721936HPbqsO','dhauo1234420123gg3234901','2QQAHny','__esModule','default','370800OqcAfc','name','defineProperty','5297470zAeWjX','3595FwpyQe','xml','20mb','321475YKQnWG','text','120WBnDph','7005rapUbg'];a0_0x5b50=function(){return _0x3d0ba7;};return a0_0x5b50();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x15e1(_0x5c2cd9,_0x440cc3){var _0x6ab06b=a1_0x6ab0();return a1_0x15e1=function(_0x15e1f6,_0x5e46fa){_0x15e1f6=_0x15e1f6-0x1d1;var _0x1d87f4=_0x6ab06b[_0x15e1f6];return _0x1d87f4;},a1_0x15e1(_0x5c2cd9,_0x440cc3);}var a1_0x15115c=a1_0x15e1;(function(_0x270b69,_0x59ab3c){var _0x185a31=a1_0x15e1,_0x31b637=_0x270b69();while(!![]){try{var _0x1586cb=parseInt(_0x185a31(0x1d8))/0x1*(-parseInt(_0x185a31(0x1d5))/0x2)+-parseInt(_0x185a31(0x1db))/0x3+parseInt(_0x185a31(0x1dd))/0x4*(-parseInt(_0x185a31(0x1da))/0x5)+-parseInt(_0x185a31(0x1d1))/0x6*(parseInt(_0x185a31(0x1d4))/0x7)+-parseInt(_0x185a31(0x1d6))/0x8+parseInt(_0x185a31(0x1d7))/0x9+parseInt(_0x185a31(0x1d3))/0xa;if(_0x1586cb===_0x59ab3c)break;else _0x31b637['push'](_0x31b637['shift']());}catch(_0x558e66){_0x31b637['push'](_0x31b637['shift']());}}}(a1_0x6ab0,0xbc75c));function a1_0x6ab0(){var _0x32c149=['10041976VwGmnS','956160vkUXfm','323915wvInrp','__esModule','6267405nnGbzd','1817157OTyKrC','defineProperty','4FKjrNj','24MIjIPj','default','57711080iMxswf','1783642JuVwnD','6zITsDF'];a1_0x6ab0=function(){return _0x32c149;};return a1_0x6ab0();}Object[a1_0x15115c(0x1dc)](exports,a1_0x15115c(0x1d9),{'value':!![]}),exports[a1_0x15115c(0x1d2)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x41fb9d=a2_0x386e;(function(_0x54a334,_0x276d09){const _0x2a642b=a2_0x386e,_0x5c1aae=_0x54a334();while(!![]){try{const _0x2f9bc7=parseInt(_0x2a642b(0x20b))/0x1*(parseInt(_0x2a642b(0x20a))/0x2)+-parseInt(_0x2a642b(0x1c9))/0x3*(parseInt(_0x2a642b(0x1c8))/0x4)+-parseInt(_0x2a642b(0x1d1))/0x5+parseInt(_0x2a642b(0x217))/0x6*(-parseInt(_0x2a642b(0x1cf))/0x7)+-parseInt(_0x2a642b(0x1d4))/0x8+-parseInt(_0x2a642b(0x1c2))/0x9*(-parseInt(_0x2a642b(0x1ff))/0xa)+parseInt(_0x2a642b(0x21c))/0xb*(parseInt(_0x2a642b(0x1e1))/0xc);if(_0x2f9bc7===_0x276d09)break;else _0x5c1aae['push'](_0x5c1aae['shift']());}catch(_0x20180b){_0x5c1aae['push'](_0x5c1aae['shift']());}}}(a2_0x2293,0x6ed59));function a2_0x386e(_0x2b99fb,_0x22e9dd){const _0x2293d2=a2_0x2293();return a2_0x386e=function(_0x386e42,_0x5c1fe4){_0x386e42=_0x386e42-0x1b9;let _0x4a9f32=_0x2293d2[_0x386e42];return _0x4a9f32;},a2_0x386e(_0x2b99fb,_0x22e9dd);}var __decorate=this&&this[a2_0x41fb9d(0x1f5)]||function(_0x4a40d6,_0xee3df0,_0x349072,_0x2693d2){const _0x3b2b72=a2_0x41fb9d;var _0x1bb591=arguments[_0x3b2b72(0x1f9)],_0x32d7a6=_0x1bb591<0x3?_0xee3df0:_0x2693d2===null?_0x2693d2=Object[_0x3b2b72(0x1de)](_0xee3df0,_0x349072):_0x2693d2,_0x160d6e;if(typeof Reflect===_0x3b2b72(0x1e4)&&typeof Reflect['decorate']==='function')_0x32d7a6=Reflect[_0x3b2b72(0x1fd)](_0x4a40d6,_0xee3df0,_0x349072,_0x2693d2);else{for(var _0x367fa9=_0x4a40d6[_0x3b2b72(0x1f9)]-0x1;_0x367fa9>=0x0;_0x367fa9--)if(_0x160d6e=_0x4a40d6[_0x367fa9])_0x32d7a6=(_0x1bb591<0x3?_0x160d6e(_0x32d7a6):_0x1bb591>0x3?_0x160d6e(_0xee3df0,_0x349072,_0x32d7a6):_0x160d6e(_0xee3df0,_0x349072))||_0x32d7a6;}return _0x1bb591>0x3&&_0x32d7a6&&Object[_0x3b2b72(0x203)](_0xee3df0,_0x349072,_0x32d7a6),_0x32d7a6;},__metadata=this&&this[a2_0x41fb9d(0x1cb)]||function(_0x2a1548,_0x1cfa23){const _0x20de9a=a2_0x41fb9d;if(typeof Reflect===_0x20de9a(0x1e4)&&typeof Reflect[_0x20de9a(0x1e0)]===_0x20de9a(0x1ec))return Reflect['metadata'](_0x2a1548,_0x1cfa23);};Object[a2_0x41fb9d(0x203)](exports,'__esModule',{'value':!![]}),exports[a2_0x41fb9d(0x21d)]=void 0x0;function a2_0x2293(){const _0x4cfc91=['_matchedRoute','existsSync','5296gSBInG','1308BRzHvl','@anncic-api/typeorm','__metadata','forEach','./service/ApiService','isClass','1883KoTltk','@midwayjs/cross-domain','1668565JeugpH','Types','args','2909280YqhRuy','koa','getConfiguration','@midwayjs/upload','Anncic-api\x20static-file\x20:\x20mkdir\x20','getAsync','anncic-api','request','@anncic-api/cache','anncic-apihelper','getOwnPropertyDescriptor','handler','metadata','427404AzODjI','onReady','MidwayConfigService','object','tmpdir','MidwayApplicationManager','handlerActionRoute','proceed','device','dir','hanlderApplications','function','decorator','MidwayDecoratorService','upload','REQUEST_OBJ_CTX_KEY','@midwayjs/static-file','mkdirSync','config','filterConfig','__decorate','isFunction','isString','anncicapi','length','@anncic-api/validator','@midwayjs/i18n','headers','decorate','defaultsDeep','48320mCveRm','./types/action','defineProperties','apimit','defineProperty','ApiError','@anncic-api/core','MidwayEnvironmentService','staticFile','body','devices','226126FGtyOF','4rjsptU','string','./config/config.default','intercept','DEFAULT','Configuration','context','method','requestContext','Inject','addObject','design:type','11706lwpWHu','application','environment','prototype','bodyXml','319qXoMxL','CustomConfiguration','input','./exception/ApiError','registerMethodHandler','target','dirs','getApplications','ACTION_ROUTE_KEY','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/koa','ApiService','@anncic-api/event','1431jxyrUW','get','@midwayjs/core','isArray'];a2_0x2293=function(){return _0x4cfc91;};return a2_0x2293();}const core_1=require('@midwayjs/core'),core_2=require(a2_0x41fb9d(0x1c4)),ApiError_1=require(a2_0x41fb9d(0x21f)),ApiService_1=require(a2_0x41fb9d(0x1cd)),action_1=require(a2_0x41fb9d(0x200)),fs=require('fs'),koa=require(a2_0x41fb9d(0x1bf)),i18n=require(a2_0x41fb9d(0x1fb)),upload=require(a2_0x41fb9d(0x1d7)),staticFile=require(a2_0x41fb9d(0x1f1)),crossDomain=require(a2_0x41fb9d(0x1d0)),ConfigDefault=require(a2_0x41fb9d(0x20d)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x41fb9d(0x205)),anncicCache=require(a2_0x41fb9d(0x1dc)),anncicEvent=require(a2_0x41fb9d(0x1c1)),anncicTypeorm=require(a2_0x41fb9d(0x1ca)),anncicValidator=require(a2_0x41fb9d(0x1fa)),anncicHelper=require(a2_0x41fb9d(0x1dd));let CustomConfiguration=class CustomConfiguration{async[a2_0x41fb9d(0x1e2)](){const _0x39a179=a2_0x41fb9d;await this[_0x39a179(0x1f4)](),await this['checkConfigKeys'](),await this[_0x39a179(0x1e7)](),await this['hanlderApplications']();}async['checkConfigKeys'](){}async[a2_0x41fb9d(0x1e7)](){const _0xe5f2be=a2_0x41fb9d,_0x5e9071=this['config'][_0xe5f2be(0x1d6)]();this['decorator'][_0xe5f2be(0x1b9)](action_1[_0xe5f2be(0x1bd)],_0xb25449=>{const _0x9298af=_0xe5f2be,_0x5661e0=_0xb25449[_0x9298af(0x1e0)];return{'before':async _0x5bb5c1=>{const _0x5bf069=_0x9298af;var _0x12dfaa,_0xc7da27;const _0x156d21=(_0x12dfaa=_0x5bb5c1===null||_0x5bb5c1===void 0x0?void 0x0:_0x5bb5c1['target'])===null||_0x12dfaa===void 0x0?void 0x0:_0x12dfaa[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x156d21&&(_0x5661e0===null||_0x5661e0===void 0x0?void 0x0:_0x5661e0[_0x5bf069(0x202)])){if(!this['ApiService']['checksign']((_0xc7da27=_0x156d21===null||_0x156d21===void 0x0?void 0x0:_0x156d21[_0x5bf069(0x1db)])===null||_0xc7da27===void 0x0?void 0x0:_0xc7da27['headers']))throw new AnnError(ApiError_1[_0x5bf069(0x204)]['HEADERS_SIGNATURE']);}},'around':async _0x8e9e81=>{const _0xf42db9=_0x9298af;var _0x39685f,_0x3ae175,_0x35f2cd,_0x2f1757,_0x180101;const _0x4a2fc2=(_0x39685f=_0x8e9e81===null||_0x8e9e81===void 0x0?void 0x0:_0x8e9e81[_0xf42db9(0x1ba)])===null||_0x39685f===void 0x0?void 0x0:_0x39685f[core_2[_0xf42db9(0x1f0)]];if(_0x4a2fc2&&(_0x5661e0===null||_0x5661e0===void 0x0?void 0x0:_0x5661e0[_0xf42db9(0x202)])){if(((_0x3ae175=_0x4a2fc2[_0xf42db9(0x1fc)])===null||_0x3ae175===void 0x0?void 0x0:_0x3ae175[_0xf42db9(0x1e9)])&&((_0x180101=(_0x2f1757=(_0x35f2cd=_0x5e9071===null||_0x5e9071===void 0x0?void 0x0:_0x5e9071[_0xf42db9(0x1f8)])===null||_0x35f2cd===void 0x0?void 0x0:_0x35f2cd[_0xf42db9(0x209)])===null||_0x2f1757===void 0x0?void 0x0:_0x2f1757[_0x4a2fc2[_0xf42db9(0x1fc)][_0xf42db9(0x1e9)]])===null||_0x180101===void 0x0?void 0x0:_0x180101['intercept'])){const _0x463e28=Array[_0xf42db9(0x1c5)](_0x5e9071[_0xf42db9(0x1f8)][_0xf42db9(0x209)][_0x4a2fc2[_0xf42db9(0x1fc)]['device']][_0xf42db9(0x20e)])?_0x5e9071['anncicapi'][_0xf42db9(0x209)][_0x4a2fc2[_0xf42db9(0x1fc)]['device']][_0xf42db9(0x20e)]:[_0x5e9071[_0xf42db9(0x1f8)]['devices'][_0x4a2fc2[_0xf42db9(0x1fc)][_0xf42db9(0x1e9)]][_0xf42db9(0x20e)]];for(const _0x2959e5 of _0x463e28){if(core_1[_0xf42db9(0x1d2)][_0xf42db9(0x1ce)](_0x2959e5)||typeof _0x2959e5==_0xf42db9(0x20c)){const _0x120d4d=await _0x4a2fc2[_0xf42db9(0x213)][_0xf42db9(0x1d9)](_0x2959e5);typeof(_0x120d4d===null||_0x120d4d===void 0x0?void 0x0:_0x120d4d[_0xf42db9(0x1df)])==_0xf42db9(0x1ec)&&await _0x120d4d[_0xf42db9(0x1df)](typeof(_0x4a2fc2===null||_0x4a2fc2===void 0x0?void 0x0:_0x4a2fc2[_0xf42db9(0x212)])=='string'&&(_0x4a2fc2===null||_0x4a2fc2===void 0x0?void 0x0:_0x4a2fc2[_0xf42db9(0x1c6)])?_0x4a2fc2[_0xf42db9(0x212)]['toLowerCase']()+'@'+(_0x4a2fc2===null||_0x4a2fc2===void 0x0?void 0x0:_0x4a2fc2[_0xf42db9(0x1c6)]):undefined,_0x4a2fc2,_0x5661e0);}else core_1[_0xf42db9(0x1d2)][_0xf42db9(0x1f6)](_0x2959e5)&&await _0x2959e5(typeof(_0x4a2fc2===null||_0x4a2fc2===void 0x0?void 0x0:_0x4a2fc2[_0xf42db9(0x212)])==_0xf42db9(0x20c)&&(_0x4a2fc2===null||_0x4a2fc2===void 0x0?void 0x0:_0x4a2fc2[_0xf42db9(0x1c6)])?_0x4a2fc2['method']['toLowerCase']()+'@'+(_0x4a2fc2===null||_0x4a2fc2===void 0x0?void 0x0:_0x4a2fc2[_0xf42db9(0x1c6)]):undefined,_0x4a2fc2,_0x5661e0);}}}return await _0x8e9e81[_0xf42db9(0x1e8)](..._0x8e9e81[_0xf42db9(0x1d3)]);},'afterThrow':(_0x177d4e,_0x33beaf)=>{throw _0x33beaf;}};});}async[a2_0x41fb9d(0x1eb)](){const _0x3759e8=a2_0x41fb9d;this[_0x3759e8(0x218)][_0x3759e8(0x1bc)]([_0x3759e8(0x1d5)])[_0x3759e8(0x1cc)](_0x322bf9=>{const _0x30c269=_0x3759e8;(_0x322bf9===null||_0x322bf9===void 0x0?void 0x0:_0x322bf9[_0x30c269(0x211)])&&Object[_0x30c269(0x201)](_0x322bf9[_0x30c269(0x211)],{'ok':{'value':function(_0x269ebe,_0x2f0f3c,_0x4549c1=0x0){return{'code':_0x4549c1,'data':_0x269ebe,'extra':_0x2f0f3c};}},'input':{'value':function(_0x219628,_0x13c81b){const _0x50857c=_0x30c269;var _0x2543c2;const _0x500425=lodash[_0x50857c(0x1fe)]({},this[_0x50857c(0x1db)][_0x50857c(0x208)]||this['request'][((_0x2543c2=config===null||config===void 0x0?void 0x0:config[_0x50857c(0x21b)])===null||_0x2543c2===void 0x0?void 0x0:_0x2543c2['key'])||'body']||{},this['request']['query']||{});return _0x219628?lodash[_0x50857c(0x1c3)](_0x500425,_0x219628,_0x13c81b):_0x500425;}},'when':{'value':async function(_0x1229b9,_0x45bb1f){const _0x49092e=this['input'](_0x1229b9,null);if(!lodash['isNull'](_0x49092e))return await _0x45bb1f(_0x49092e);}},'only':{'value':function(_0x894fb5){const _0x5da195=_0x30c269,_0x2fb35f={};for(let _0x3f3ee9=0x0;_0x3f3ee9<_0x894fb5['length'];_0x3f3ee9++){lodash[_0x5da195(0x1c5)](_0x894fb5[_0x3f3ee9])&&_0x894fb5[_0x3f3ee9][_0x5da195(0x1f9)]>0x0&&lodash[_0x5da195(0x1f7)](_0x894fb5[_0x3f3ee9][0x0])&&(_0x2fb35f[_0x894fb5[_0x3f3ee9][0x0]]=this[_0x5da195(0x21e)](_0x894fb5[_0x3f3ee9][0x0],_0x894fb5[_0x3f3ee9]['length']>0x1?_0x894fb5[_0x3f3ee9][0x1]:null));}return _0x2fb35f;}}});});}async['filterConfig'](){const _0x16087d=a2_0x41fb9d;var _0x54ff80,_0x3b48a1,_0xbb3911,_0x5ce540,_0x4423d1,_0x26f8af;const _0x1b108b=this[_0x16087d(0x1f3)][_0x16087d(0x1d6)]();((_0x3b48a1=(_0x54ff80=_0x1b108b===null||_0x1b108b===void 0x0?void 0x0:_0x1b108b[_0x16087d(0x1f8)])===null||_0x54ff80===void 0x0?void 0x0:_0x54ff80[_0x16087d(0x209)])===null||_0x3b48a1===void 0x0?void 0x0:_0x3b48a1[_0x16087d(0x20f)])&&Object['keys'](_0x1b108b[_0x16087d(0x1f8)][_0x16087d(0x209)])[_0x16087d(0x1f9)]>0x1&&delete _0x1b108b['anncicapi']['devices'][_0x16087d(0x20f)];if((_0xbb3911=_0x1b108b===null||_0x1b108b===void 0x0?void 0x0:_0x1b108b[_0x16087d(0x207)])===null||_0xbb3911===void 0x0?void 0x0:_0xbb3911['dirs'])for(const _0x138f0f in _0x1b108b[_0x16087d(0x207)][_0x16087d(0x1bb)]){((_0x5ce540=_0x1b108b[_0x16087d(0x207)][_0x16087d(0x1bb)][_0x138f0f])===null||_0x5ce540===void 0x0?void 0x0:_0x5ce540[_0x16087d(0x1ea)])&&typeof((_0x4423d1=_0x1b108b['staticFile']['dirs'][_0x138f0f])===null||_0x4423d1===void 0x0?void 0x0:_0x4423d1['dir'])=='string'&&!fs[_0x16087d(0x1c7)](_0x1b108b['staticFile'][_0x16087d(0x1bb)][_0x138f0f][_0x16087d(0x1ea)])&&(fs[_0x16087d(0x1f2)](_0x1b108b['staticFile'][_0x16087d(0x1bb)][_0x138f0f][_0x16087d(0x1ea)],{'recursive':!![]}),console['log'](_0x16087d(0x1d8)+_0x1b108b[_0x16087d(0x207)]['dirs'][_0x138f0f]['dir']));}((_0x26f8af=_0x1b108b===null||_0x1b108b===void 0x0?void 0x0:_0x1b108b['upload'])===null||_0x26f8af===void 0x0?void 0x0:_0x26f8af[_0x16087d(0x1e5)])&&!fs[_0x16087d(0x1c7)](_0x1b108b[_0x16087d(0x1ef)][_0x16087d(0x1e5)])&&(fs[_0x16087d(0x1f2)](_0x1b108b[_0x16087d(0x1ef)][_0x16087d(0x1e5)],{'recursive':!![]}),console['log'](_0x16087d(0x1be)+_0x1b108b['upload'][_0x16087d(0x1e5)])),this['config'][_0x16087d(0x215)](_0x1b108b);}};__decorate([(0x0,core_1[a2_0x41fb9d(0x214)])(),__metadata('design:type',core_2[a2_0x41fb9d(0x1e3)])],CustomConfiguration[a2_0x41fb9d(0x21a)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x41fb9d(0x214)])(),__metadata('design:type',core_2[a2_0x41fb9d(0x1ee)])],CustomConfiguration[a2_0x41fb9d(0x21a)],a2_0x41fb9d(0x1ed),void 0x0),__decorate([(0x0,core_1[a2_0x41fb9d(0x214)])(),__metadata(a2_0x41fb9d(0x216),core_2[a2_0x41fb9d(0x1e6)])],CustomConfiguration['prototype'],a2_0x41fb9d(0x218),void 0x0),__decorate([(0x0,core_1[a2_0x41fb9d(0x214)])(),__metadata('design:type',core_2[a2_0x41fb9d(0x206)])],CustomConfiguration[a2_0x41fb9d(0x21a)],a2_0x41fb9d(0x219),void 0x0),__decorate([(0x0,core_1[a2_0x41fb9d(0x214)])(),__metadata(a2_0x41fb9d(0x216),ApiService_1[a2_0x41fb9d(0x1c0)])],CustomConfiguration[a2_0x41fb9d(0x21a)],a2_0x41fb9d(0x1c0),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x41fb9d(0x210)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x41fb9d(0x1da),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x41fb9d(0x21d)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x551340=a2_0x4031;function a2_0x4031(_0x5cbec5,_0x1e27d4){const _0x134ee7=a2_0x134e();return a2_0x4031=function(_0x4031e1,_0x491679){_0x4031e1=_0x4031e1-0x1d9;let _0x36d729=_0x134ee7[_0x4031e1];return _0x36d729;},a2_0x4031(_0x5cbec5,_0x1e27d4);}(function(_0x309b86,_0x3069fa){const _0x1c34c0=a2_0x4031,_0x226b8a=_0x309b86();while(!![]){try{const _0x4a18f9=parseInt(_0x1c34c0(0x206))/0x1*(-parseInt(_0x1c34c0(0x216))/0x2)+-parseInt(_0x1c34c0(0x218))/0x3*(parseInt(_0x1c34c0(0x207))/0x4)+parseInt(_0x1c34c0(0x20e))/0x5*(parseInt(_0x1c34c0(0x1fd))/0x6)+-parseInt(_0x1c34c0(0x1f1))/0x7+-parseInt(_0x1c34c0(0x204))/0x8+-parseInt(_0x1c34c0(0x236))/0x9*(-parseInt(_0x1c34c0(0x1e2))/0xa)+parseInt(_0x1c34c0(0x1e5))/0xb*(parseInt(_0x1c34c0(0x1dd))/0xc);if(_0x4a18f9===_0x3069fa)break;else _0x226b8a['push'](_0x226b8a['shift']());}catch(_0x16c0da){_0x226b8a['push'](_0x226b8a['shift']());}}}(a2_0x134e,0x77dfe));var __decorate=this&&this[a2_0x551340(0x1ef)]||function(_0x1cef25,_0x322cd3,_0xab3130,_0x5311e3){const _0x5d2c7a=a2_0x551340;var _0x3f84bc=arguments[_0x5d2c7a(0x233)],_0x610f04=_0x3f84bc<0x3?_0x322cd3:_0x5311e3===null?_0x5311e3=Object[_0x5d2c7a(0x1e4)](_0x322cd3,_0xab3130):_0x5311e3,_0x2b37df;if(typeof Reflect===_0x5d2c7a(0x217)&&typeof Reflect[_0x5d2c7a(0x200)]==='function')_0x610f04=Reflect[_0x5d2c7a(0x200)](_0x1cef25,_0x322cd3,_0xab3130,_0x5311e3);else{for(var _0x55a4fc=_0x1cef25[_0x5d2c7a(0x233)]-0x1;_0x55a4fc>=0x0;_0x55a4fc--)if(_0x2b37df=_0x1cef25[_0x55a4fc])_0x610f04=(_0x3f84bc<0x3?_0x2b37df(_0x610f04):_0x3f84bc>0x3?_0x2b37df(_0x322cd3,_0xab3130,_0x610f04):_0x2b37df(_0x322cd3,_0xab3130))||_0x610f04;}return _0x3f84bc>0x3&&_0x610f04&&Object[_0x5d2c7a(0x1ee)](_0x322cd3,_0xab3130,_0x610f04),_0x610f04;},__metadata=this&&this['__metadata']||function(_0x527958,_0x4c4add){const _0x30fb83=a2_0x551340;if(typeof Reflect==='object'&&typeof Reflect[_0x30fb83(0x1f2)]===_0x30fb83(0x210))return Reflect['metadata'](_0x527958,_0x4c4add);};Object[a2_0x551340(0x1ee)](exports,a2_0x551340(0x1ea),{'value':!![]}),exports[a2_0x551340(0x234)]=void 0x0;function a2_0x134e(){const _0xcbf2d4=['defineProperties','3139488vZLMIv','target','329081nBXdpy','4fwskey','existsSync','handler','apimit','isString','ApiService','@midwayjs/cross-domain','41110PNHdyf','./config/config.default','function','input','MidwayDecoratorService','intercept','upload','koa','4tsNZtp','object','1422357tAxaAL','addObject','isArray','device','Inject','config','string','mkdirSync','proceed','@midwayjs/koa','getApplications','onReady','dirs','DEFAULT','requestContext','decorator','./service/ApiService','dir','headers','@midwayjs/static-file','ApiError','bodyXml','args','anncic-api','devices','request','anncicapi','length','CustomConfiguration','staticFile','5296059TxpyXZ','prototype','filterConfig','checksign','@anncic-api/core','design:type','12nQsmmz','./types/action','anncic-apihelper','MidwayConfigService','toLowerCase','10FubAvf','MidwayApplicationManager','getOwnPropertyDescriptor','14532309VLZTvT','context','getConfiguration','method','log','__esModule','_matchedRoute','hanlderApplications','./config/config.production','defineProperty','__decorate','application','465563tWHLnp','metadata','environment','query','REQUEST_OBJ_CTX_KEY','tmpdir','Configuration','Types','./exception/ApiError','@anncic-api/cache','isFunction','isNull','126apsPeE','handlerActionRoute','HEADERS_SIGNATURE','decorate','getAsync','@midwayjs/core'];a2_0x134e=function(){return _0xcbf2d4;};return a2_0x134e();}const core_1=require(a2_0x551340(0x202)),core_2=require(a2_0x551340(0x202)),ApiError_1=require(a2_0x551340(0x1f9)),ApiService_1=require(a2_0x551340(0x228)),action_1=require(a2_0x551340(0x1de)),fs=require('fs'),koa=require(a2_0x551340(0x221)),i18n=require('@midwayjs/i18n'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x551340(0x22b)),crossDomain=require(a2_0x551340(0x20d)),ConfigDefault=require(a2_0x551340(0x20f)),ConfigProduction=require(a2_0x551340(0x1ed)),anncic=require(a2_0x551340(0x1db)),anncicCache=require(a2_0x551340(0x1fa)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x551340(0x1df));let CustomConfiguration=class CustomConfiguration{async[a2_0x551340(0x223)](){const _0x45c4c7=a2_0x551340;await this[_0x45c4c7(0x1d9)](),await this['checkConfigKeys'](),await this[_0x45c4c7(0x1fe)](),await this[_0x45c4c7(0x1ec)]();}async['checkConfigKeys'](){}async[a2_0x551340(0x1fe)](){const _0x211621=a2_0x551340,_0x235031=this[_0x211621(0x21d)][_0x211621(0x1e7)]();this['decorator']['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x5a89df=>{const _0x4d0cfc=_0x211621,_0x28328f=_0x5a89df[_0x4d0cfc(0x1f2)];return{'before':async _0x40ce06=>{const _0x19f850=_0x4d0cfc;var _0x45b3c7,_0x45fecd;const _0x4126ed=(_0x45b3c7=_0x40ce06===null||_0x40ce06===void 0x0?void 0x0:_0x40ce06[_0x19f850(0x205)])===null||_0x45b3c7===void 0x0?void 0x0:_0x45b3c7[core_2[_0x19f850(0x1f5)]];if(_0x4126ed&&(_0x28328f===null||_0x28328f===void 0x0?void 0x0:_0x28328f[_0x19f850(0x20a)])){if(!this[_0x19f850(0x20c)][_0x19f850(0x1da)]((_0x45fecd=_0x4126ed===null||_0x4126ed===void 0x0?void 0x0:_0x4126ed[_0x19f850(0x231)])===null||_0x45fecd===void 0x0?void 0x0:_0x45fecd[_0x19f850(0x22a)]))throw new AnnError(ApiError_1[_0x19f850(0x22c)][_0x19f850(0x1ff)]);}},'around':async _0xd68e92=>{const _0x207b33=_0x4d0cfc;var _0x9ea304,_0x11f9c5,_0x121bd1,_0x13d6bd,_0x334e2f;const _0x393893=(_0x9ea304=_0xd68e92===null||_0xd68e92===void 0x0?void 0x0:_0xd68e92['target'])===null||_0x9ea304===void 0x0?void 0x0:_0x9ea304[core_2[_0x207b33(0x1f5)]];if(_0x393893&&(_0x28328f===null||_0x28328f===void 0x0?void 0x0:_0x28328f['apimit'])){if(((_0x11f9c5=_0x393893[_0x207b33(0x22a)])===null||_0x11f9c5===void 0x0?void 0x0:_0x11f9c5[_0x207b33(0x21b)])&&((_0x334e2f=(_0x13d6bd=(_0x121bd1=_0x235031===null||_0x235031===void 0x0?void 0x0:_0x235031[_0x207b33(0x232)])===null||_0x121bd1===void 0x0?void 0x0:_0x121bd1[_0x207b33(0x230)])===null||_0x13d6bd===void 0x0?void 0x0:_0x13d6bd[_0x393893[_0x207b33(0x22a)]['device']])===null||_0x334e2f===void 0x0?void 0x0:_0x334e2f[_0x207b33(0x213)])){const _0x26ba36=Array[_0x207b33(0x21a)](_0x235031[_0x207b33(0x232)][_0x207b33(0x230)][_0x393893[_0x207b33(0x22a)][_0x207b33(0x21b)]][_0x207b33(0x213)])?_0x235031[_0x207b33(0x232)][_0x207b33(0x230)][_0x393893['headers'][_0x207b33(0x21b)]][_0x207b33(0x213)]:[_0x235031['anncicapi'][_0x207b33(0x230)][_0x393893['headers'][_0x207b33(0x21b)]]['intercept']];for(const _0x2b2caf of _0x26ba36){if(core_1[_0x207b33(0x1f8)]['isClass'](_0x2b2caf)||typeof _0x2b2caf==_0x207b33(0x21e)){const _0x2e1e28=await _0x393893[_0x207b33(0x226)][_0x207b33(0x201)](_0x2b2caf);typeof(_0x2e1e28===null||_0x2e1e28===void 0x0?void 0x0:_0x2e1e28[_0x207b33(0x209)])==_0x207b33(0x210)&&await _0x2e1e28['handler'](typeof(_0x393893===null||_0x393893===void 0x0?void 0x0:_0x393893[_0x207b33(0x1e8)])==_0x207b33(0x21e)&&(_0x393893===null||_0x393893===void 0x0?void 0x0:_0x393893[_0x207b33(0x1eb)])?_0x393893[_0x207b33(0x1e8)][_0x207b33(0x1e1)]()+'@'+(_0x393893===null||_0x393893===void 0x0?void 0x0:_0x393893[_0x207b33(0x1eb)]):undefined,_0x393893,_0x28328f);}else core_1[_0x207b33(0x1f8)][_0x207b33(0x1fb)](_0x2b2caf)&&await _0x2b2caf(typeof(_0x393893===null||_0x393893===void 0x0?void 0x0:_0x393893[_0x207b33(0x1e8)])==_0x207b33(0x21e)&&(_0x393893===null||_0x393893===void 0x0?void 0x0:_0x393893[_0x207b33(0x1eb)])?_0x393893[_0x207b33(0x1e8)][_0x207b33(0x1e1)]()+'@'+(_0x393893===null||_0x393893===void 0x0?void 0x0:_0x393893['_matchedRoute']):undefined,_0x393893,_0x28328f);}}}return await _0xd68e92[_0x207b33(0x220)](..._0xd68e92[_0x207b33(0x22e)]);},'afterThrow':(_0x1876c1,_0x349b8f)=>{throw _0x349b8f;}};});}async[a2_0x551340(0x1ec)](){const _0x2200c4=a2_0x551340;this[_0x2200c4(0x1f0)][_0x2200c4(0x222)]([_0x2200c4(0x215)])['forEach'](_0x301e8b=>{const _0x2e3834=_0x2200c4;(_0x301e8b===null||_0x301e8b===void 0x0?void 0x0:_0x301e8b[_0x2e3834(0x1e6)])&&Object[_0x2e3834(0x203)](_0x301e8b[_0x2e3834(0x1e6)],{'ok':{'value':function(_0x4064bf,_0x303758,_0x13097c=0x0){return{'code':_0x13097c,'data':_0x4064bf,'extra':_0x303758};}},'input':{'value':function(_0x1027c0,_0x1250e2){const _0x227986=_0x2e3834;var _0x387122;const _0x1f8d53=lodash['defaultsDeep']({},this[_0x227986(0x231)]['body']||this[_0x227986(0x231)][((_0x387122=config===null||config===void 0x0?void 0x0:config[_0x227986(0x22d)])===null||_0x387122===void 0x0?void 0x0:_0x387122['key'])||'body']||{},this[_0x227986(0x231)][_0x227986(0x1f4)]||{});return _0x1027c0?lodash['get'](_0x1f8d53,_0x1027c0,_0x1250e2):_0x1f8d53;}},'when':{'value':async function(_0x22a639,_0x108c2d){const _0x46c989=_0x2e3834,_0x4cb3ff=this[_0x46c989(0x211)](_0x22a639,null);if(!lodash[_0x46c989(0x1fc)](_0x4cb3ff))return await _0x108c2d(_0x4cb3ff);}},'only':{'value':function(_0x2811ab){const _0x516061=_0x2e3834,_0x420602={};for(let _0x4e9bd2=0x0;_0x4e9bd2<_0x2811ab['length'];_0x4e9bd2++){lodash[_0x516061(0x21a)](_0x2811ab[_0x4e9bd2])&&_0x2811ab[_0x4e9bd2][_0x516061(0x233)]>0x0&&lodash[_0x516061(0x20b)](_0x2811ab[_0x4e9bd2][0x0])&&(_0x420602[_0x2811ab[_0x4e9bd2][0x0]]=this[_0x516061(0x211)](_0x2811ab[_0x4e9bd2][0x0],_0x2811ab[_0x4e9bd2][_0x516061(0x233)]>0x1?_0x2811ab[_0x4e9bd2][0x1]:null));}return _0x420602;}}});});}async[a2_0x551340(0x1d9)](){const _0x33ec7b=a2_0x551340;var _0x46c507,_0x25b685,_0x15d714,_0x3ac44c,_0x5aa2eb,_0x5e573c;const _0x68dd69=this['config'][_0x33ec7b(0x1e7)]();((_0x25b685=(_0x46c507=_0x68dd69===null||_0x68dd69===void 0x0?void 0x0:_0x68dd69[_0x33ec7b(0x232)])===null||_0x46c507===void 0x0?void 0x0:_0x46c507['devices'])===null||_0x25b685===void 0x0?void 0x0:_0x25b685[_0x33ec7b(0x225)])&&Object['keys'](_0x68dd69[_0x33ec7b(0x232)][_0x33ec7b(0x230)])['length']>0x1&&delete _0x68dd69[_0x33ec7b(0x232)]['devices'][_0x33ec7b(0x225)];if((_0x15d714=_0x68dd69===null||_0x68dd69===void 0x0?void 0x0:_0x68dd69['staticFile'])===null||_0x15d714===void 0x0?void 0x0:_0x15d714['dirs'])for(const _0x5e81c8 in _0x68dd69['staticFile'][_0x33ec7b(0x224)]){((_0x3ac44c=_0x68dd69[_0x33ec7b(0x235)][_0x33ec7b(0x224)][_0x5e81c8])===null||_0x3ac44c===void 0x0?void 0x0:_0x3ac44c[_0x33ec7b(0x229)])&&typeof((_0x5aa2eb=_0x68dd69[_0x33ec7b(0x235)][_0x33ec7b(0x224)][_0x5e81c8])===null||_0x5aa2eb===void 0x0?void 0x0:_0x5aa2eb['dir'])=='string'&&!fs['existsSync'](_0x68dd69[_0x33ec7b(0x235)][_0x33ec7b(0x224)][_0x5e81c8]['dir'])&&(fs[_0x33ec7b(0x21f)](_0x68dd69[_0x33ec7b(0x235)]['dirs'][_0x5e81c8][_0x33ec7b(0x229)],{'recursive':!![]}),console[_0x33ec7b(0x1e9)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x68dd69[_0x33ec7b(0x235)][_0x33ec7b(0x224)][_0x5e81c8][_0x33ec7b(0x229)]));}((_0x5e573c=_0x68dd69===null||_0x68dd69===void 0x0?void 0x0:_0x68dd69[_0x33ec7b(0x214)])===null||_0x5e573c===void 0x0?void 0x0:_0x5e573c['tmpdir'])&&!fs[_0x33ec7b(0x208)](_0x68dd69[_0x33ec7b(0x214)][_0x33ec7b(0x1f6)])&&(fs['mkdirSync'](_0x68dd69[_0x33ec7b(0x214)][_0x33ec7b(0x1f6)],{'recursive':!![]}),console[_0x33ec7b(0x1e9)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x68dd69[_0x33ec7b(0x214)]['tmpdir'])),this['config'][_0x33ec7b(0x219)](_0x68dd69);}};__decorate([(0x0,core_1[a2_0x551340(0x21c)])(),__metadata(a2_0x551340(0x1dc),core_2[a2_0x551340(0x1e0)])],CustomConfiguration[a2_0x551340(0x237)],a2_0x551340(0x21d),void 0x0),__decorate([(0x0,core_1[a2_0x551340(0x21c)])(),__metadata(a2_0x551340(0x1dc),core_2[a2_0x551340(0x212)])],CustomConfiguration[a2_0x551340(0x237)],a2_0x551340(0x227),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x551340(0x1dc),core_2[a2_0x551340(0x1e3)])],CustomConfiguration[a2_0x551340(0x237)],a2_0x551340(0x1f0),void 0x0),__decorate([(0x0,core_1[a2_0x551340(0x21c)])(),__metadata(a2_0x551340(0x1dc),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x551340(0x237)],a2_0x551340(0x1f3),void 0x0),__decorate([(0x0,core_1[a2_0x551340(0x21c)])(),__metadata(a2_0x551340(0x1dc),ApiService_1[a2_0x551340(0x20c)])],CustomConfiguration[a2_0x551340(0x237)],a2_0x551340(0x20c),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x551340(0x1f7)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x551340(0x22f),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x551340(0x234)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x48ac28=a3_0x1235;(function(_0x5942cf,_0x16ec26){const _0x1ce880=a3_0x1235,_0x72ab9c=_0x5942cf();while(!![]){try{const _0x3ed92f=parseInt(_0x1ce880(0x1ee))/0x1*(-parseInt(_0x1ce880(0x203))/0x2)+parseInt(_0x1ce880(0x1f9))/0x3*(-parseInt(_0x1ce880(0x1e5))/0x4)+parseInt(_0x1ce880(0x1d8))/0x5*(-parseInt(_0x1ce880(0x1e0))/0x6)+parseInt(_0x1ce880(0x1e7))/0x7*(-parseInt(_0x1ce880(0x1d3))/0x8)+-parseInt(_0x1ce880(0x1ec))/0x9+parseInt(_0x1ce880(0x206))/0xa+-parseInt(_0x1ce880(0x1eb))/0xb*(-parseInt(_0x1ce880(0x1de))/0xc);if(_0x3ed92f===_0x16ec26)break;else _0x72ab9c['push'](_0x72ab9c['shift']());}catch(_0x438705){_0x72ab9c['push'](_0x72ab9c['shift']());}}}(a3_0x4449,0xb6383));Object[a3_0x48ac28(0x1e9)](exports,a3_0x48ac28(0x1e4),{'value':!![]}),exports['parseRoute']=exports[a3_0x48ac28(0x1f4)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x48ac28(0x1e2)),action_1=require(a3_0x48ac28(0x204));function Action(_0x122d93,_0x2edee1,_0xcb5cfb={'middleware':[],'sensitive':!![]}){return _0xbcb694=>{const _0x3858b2=a3_0x1235;_0xcb5cfb[_0x3858b2(0x1fb)]=_0x2edee1;const _0x1df394=parseRoute(_0x122d93);if(_0x1df394[_0x3858b2(0x1f0)]){_0xcb5cfb['prefix']=_0xcb5cfb['prefix']?'/'+_0x1df394['module']+'/'+_0xcb5cfb[_0x3858b2(0x1f6)]:'/'+_0x1df394[_0x3858b2(0x1e1)];_0x1df394['prefix']&&(_0xcb5cfb[_0x3858b2(0x1f6)]='/'+_0x1df394['prefix']+'/'+_0xcb5cfb['prefix']);if(fs[_0x3858b2(0x1ed)](_0x1df394[_0x3858b2(0x205)]+'/apps/'+_0x1df394[_0x3858b2(0x1f0)]+'/config.'+(lodash[_0x3858b2(0x1db)](_0x1df394[_0x3858b2(0x1e3)],'ts')?'ts':'js'))){const _0x5b5ca7=include(_0x1df394[_0x3858b2(0x205)]+_0x3858b2(0x1df)+_0x1df394['module']+_0x3858b2(0x1f7)+(lodash[_0x3858b2(0x1db)](_0x1df394[_0x3858b2(0x1e3)],'ts')?'ts':'js'));if(_0x5b5ca7['middleware']&&lodash['isArray'](_0x5b5ca7[_0x3858b2(0x1e8)])&&_0x5b5ca7[_0x3858b2(0x1e8)][_0x3858b2(0x1da)]>0x0)for(let _0x3cdde0 in _0x5b5ca7[_0x3858b2(0x1e8)]){_0x5b5ca7[_0x3858b2(0x1dd)][_0x3858b2(0x1ef)](_0x5b5ca7['middleware'][_0x3cdde0])==-0x1&&_0xcb5cfb[_0x3858b2(0x1e8)][_0x3858b2(0x1fa)](_0x5b5ca7['middleware'][_0x3cdde0]);}const _0x25ca12=(0x0,core_1[_0x3858b2(0x1dc)])(action_1[_0x3858b2(0x209)],action_1[_0x3858b2(0x1fe)])||{};_0x25ca12[''+_0x1df394['module']]=_0x5b5ca7,(0x0,core_1['saveClassMetadata'])(action_1[_0x3858b2(0x209)],_0x25ca12,action_1['AppsConfigTmp']);}_0xcb5cfb[_0x3858b2(0x1f6)]=_0xcb5cfb[_0x3858b2(0x1f6)][_0x3858b2(0x1d7)]()[_0x3858b2(0x1d2)](/\/{2,}/g,'/'),(0x0,core_1[_0x3858b2(0x201)])(action_1[_0x3858b2(0x1d5)],_0xbcb694),(0x0,core_1['Controller'])(_0xcb5cfb[_0x3858b2(0x1f6)],_0xcb5cfb)(_0xbcb694),(0x0,core_1[_0x3858b2(0x202)])(action_1['ACTION_KEY'],{'prefix':_0xcb5cfb[_0x3858b2(0x1f6)],'pprefix':_0x1df394[_0x3858b2(0x1f6)],'module':_0x1df394[_0x3858b2(0x1f0)],'filepath':_0x1df394[_0x3858b2(0x1e3)],'routerOptions':_0xcb5cfb},_0xbcb694);}else _0xcb5cfb[_0x3858b2(0x1f6)]=_0xcb5cfb['prefix']?'/'+_0xcb5cfb['prefix']:'/'+_0x1df394[_0x3858b2(0x1e1)],_0x1df394[_0x3858b2(0x1f6)]&&(_0xcb5cfb[_0x3858b2(0x1f6)]='/'+_0x1df394['prefix']+'/'+_0xcb5cfb[_0x3858b2(0x1f6)]),_0xcb5cfb[_0x3858b2(0x1f6)]=_0xcb5cfb[_0x3858b2(0x1f6)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x3858b2(0x201)])(action_1[_0x3858b2(0x1d5)],_0xbcb694),(0x0,core_1[_0x3858b2(0x1d6)])(_0xcb5cfb[_0x3858b2(0x1f6)],_0xcb5cfb)(_0xbcb694),(0x0,core_1[_0x3858b2(0x202)])(action_1[_0x3858b2(0x1d5)],{'prefix':_0xcb5cfb[_0x3858b2(0x1f6)],'module':_0x1df394[_0x3858b2(0x1f0)],'pprefix':_0x1df394[_0x3858b2(0x1f6)],'filepath':_0x1df394[_0x3858b2(0x1e3)],'routerOptions':_0xcb5cfb},_0xbcb694);};}function a3_0x1235(_0x2c10f1,_0x387ff4){const _0x44497c=a3_0x4449();return a3_0x1235=function(_0x123561,_0x454eef){_0x123561=_0x123561-0x1d2;let _0x1f95e1=_0x44497c[_0x123561];return _0x1f95e1;},a3_0x1235(_0x2c10f1,_0x387ff4);}exports[a3_0x48ac28(0x1f4)]=Action;function parseRoute(_0x292d6d){const _0xe2cbf1=a3_0x48ac28;_0x292d6d=_0x292d6d[_0xe2cbf1(0x1d2)](/(\\|\/)/g,'/');const _0x1debf7=process[_0xe2cbf1(0x1f3)]()[_0xe2cbf1(0x1d2)](/(\\|\/)/g,'/'),_0x426a15=_0x292d6d[_0xe2cbf1(0x1d9)](0x0,_0x1debf7['length']+_0x292d6d[_0xe2cbf1(0x1d9)](_0x1debf7['length']+0x1)[_0xe2cbf1(0x1ef)]('/')+0x1),_0x32f891=_0x292d6d['substring'](_0x426a15[_0xe2cbf1(0x1da)]+0x1)[_0xe2cbf1(0x1d2)](/(\\|\/)/g,'/'),_0x32082e={'route':'','prefix':![],'module':![],'rootpath':_0x426a15,'filepath':_0x32f891};if(_0x32f891['startsWith'](_0xe2cbf1(0x1fd))){const _0x32e4d4=_0x32f891[_0xe2cbf1(0x1d9)](_0xe2cbf1(0x1fd)[_0xe2cbf1(0x1da)])['split']('/')[_0xe2cbf1(0x1f2)](_0x4c2f0a=>_0x4c2f0a&&_0x4c2f0a['trim']());return _0x32e4d4[_0xe2cbf1(0x1da)]>0x1&&(_0x32082e[_0xe2cbf1(0x1f6)]=_0x32e4d4[0x0][_0xe2cbf1(0x1d7)](),_0x32e4d4[_0xe2cbf1(0x207)](0x0,0x1)),_0x32082e[_0xe2cbf1(0x1e1)]=('/'+_0x32e4d4[_0xe2cbf1(0x1e6)]('/'))[_0xe2cbf1(0x1d2)](/(\.ts|\.js)$/,'')[_0xe2cbf1(0x1d2)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0xe2cbf1(0x1d7)]()[_0xe2cbf1(0x1d2)](/\/\-/g,'/'),_0x32082e[_0xe2cbf1(0x1e1)]['endsWith'](_0xe2cbf1(0x1d4))&&(_0x32082e[_0xe2cbf1(0x1e1)]=_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1d9)](0x0,_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1da)]-0x7)),_0x32082e['route'][_0xe2cbf1(0x1db)](_0xe2cbf1(0x208))&&(_0x32082e[_0xe2cbf1(0x1e1)]=_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1d9)](0x0,_0x32082e['route'][_0xe2cbf1(0x1da)]-0xb)),_0x32082e;}else{if(_0x32f891[_0xe2cbf1(0x1f1)](_0xe2cbf1(0x1f8))){const _0x37b38c=_0x32f891[_0xe2cbf1(0x1d9)](0x0,_0x32f891['indexOf'](_0xe2cbf1(0x1df))+0x5),_0x5a67e8=_0x32f891[_0xe2cbf1(0x1d9)](_0x37b38c[_0xe2cbf1(0x1da)]+0x1)[_0xe2cbf1(0x1d2)](/(\\|\/)/g,'/')[_0xe2cbf1(0x200)]('/')[0x0];if(_0x32f891[_0xe2cbf1(0x1f1)](_0xe2cbf1(0x1f8)+_0x5a67e8+'/controller/')){const _0x7c3444=_0x32f891[_0xe2cbf1(0x1d9)]((_0x37b38c+'/'+_0x5a67e8+_0xe2cbf1(0x1ff))[_0xe2cbf1(0x1da)])[_0xe2cbf1(0x200)]('/')[_0xe2cbf1(0x1f2)](_0x393037=>_0x393037&&_0x393037[_0xe2cbf1(0x1fc)]());return _0x7c3444[_0xe2cbf1(0x1da)]>0x1&&(_0x32082e[_0xe2cbf1(0x1f6)]=_0x7c3444[0x0][_0xe2cbf1(0x1d7)](),_0x7c3444[_0xe2cbf1(0x207)](0x0,0x1)),_0x32082e[_0xe2cbf1(0x1f0)]=_0x5a67e8,_0x32082e[_0xe2cbf1(0x1e1)]=('/'+_0x5a67e8+'/'+_0x7c3444['join']('/'))[_0xe2cbf1(0x1d2)](/(\.ts|\.js)$/,'')[_0xe2cbf1(0x1d2)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0xe2cbf1(0x1e6)]('-')['toLowerCase']()[_0xe2cbf1(0x1d2)](/\/\-/g,'/'),_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1db)](_0xe2cbf1(0x1d4))&&(_0x32082e[_0xe2cbf1(0x1e1)]=_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1d9)](0x0,_0x32082e[_0xe2cbf1(0x1e1)]['length']-0x7)),_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1db)](_0xe2cbf1(0x208))&&(_0x32082e['route']=_0x32082e[_0xe2cbf1(0x1e1)]['substring'](0x0,_0x32082e[_0xe2cbf1(0x1e1)][_0xe2cbf1(0x1da)]-0xb)),_0x32082e;}throw new Error(_0x32f891+'\x20文件请放在apps/'+_0x5a67e8+_0xe2cbf1(0x1f5));}}throw new Error(_0x32f891+'\x20文件请放在app/controller/文件下');}function a3_0x4449(){const _0x378e65=['APPSCONFIG_KEY','replace','1717008LUYliu','-action','ACTION_KEY','Controller','toLowerCase','365oJiuvU','substring','length','endsWith','getClassMetadata','middlewareIgnore','1236adzDbu','/apps/','67794zpFUuH','route','@midwayjs/core','filepath','__esModule','12Rnmrmb','join','21QBThps','middleware','defineProperty','parseRoute','323103tpTBWz','10698372aKjAPk','existsSync','22nWLpKw','indexOf','module','startsWith','filter','cwd','Action','/controller/文件下','prefix','/config.','apps/','598623cbXNUl','push','tagName','trim','app/controller/','AppsConfigTmp','/controller/','split','saveModule','saveClassMetadata','10300czaEmK','../types/action','rootpath','10902880dOmVNS','splice','-controller'];a3_0x4449=function(){return _0x378e65;};return a3_0x4449();}exports[a3_0x48ac28(0x1ea)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x336ccc=a4_0x4a6e;(function(_0x38e2f5,_0x589ba5){const _0x4c3617=a4_0x4a6e,_0x5d9060=_0x38e2f5();while(!![]){try{const _0x51ae36=-parseInt(_0x4c3617(0x117))/0x1+-parseInt(_0x4c3617(0x10f))/0x2+parseInt(_0x4c3617(0x122))/0x3*(parseInt(_0x4c3617(0x126))/0x4)+parseInt(_0x4c3617(0x111))/0x5+parseInt(_0x4c3617(0x128))/0x6+-parseInt(_0x4c3617(0x112))/0x7*(-parseInt(_0x4c3617(0x11f))/0x8)+-parseInt(_0x4c3617(0x116))/0x9;if(_0x51ae36===_0x589ba5)break;else _0x5d9060['push'](_0x5d9060['shift']());}catch(_0x2520fb){_0x5d9060['push'](_0x5d9060['shift']());}}}(a4_0x4d86,0xb5f54));Object[a4_0x336ccc(0x123)](exports,'__esModule',{'value':!![]}),exports[a4_0x336ccc(0x125)]=void 0x0;function a4_0x4d86(){const _0x3b16f4=['createCustomMethodDecorator','354800vgJrfL','routerName','toLowerCase','48018CxoMXy','defineProperty','description','Api','44cyRipo','ACTION_ROUTE_KEY','7911624qQoApt','middlewareIgnore','del','Validator','@anncic-api/validator','delete','977538xZxiNW','get','6554710sqNCaE','126QVFcXv','length','middleware','assign','18932679ACvvHo','266212JLPdeb','RequestMapping','apimit','filter','indexOf','attachClassMetadata','validate'];a4_0x4d86=function(){return _0x3b16f4;};return a4_0x4d86();}function a4_0x4a6e(_0x426517,_0x291fd3){const _0x4d86c9=a4_0x4d86();return a4_0x4a6e=function(_0x4a6e47,_0x2dc896){_0x4a6e47=_0x4a6e47-0x10d;let _0x577413=_0x4d86c9[_0x4a6e47];return _0x577413;},a4_0x4a6e(_0x426517,_0x291fd3);}const validator_1=require(a4_0x336ccc(0x10d)),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Api(_0x1d1582,_0x1504b2=a4_0x336ccc(0x110),_0x54c5bc='/',_0x2f2e8b={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x77fbf6,_0x478ca5,_0x368595)=>{const _0x53e676=a4_0x4a6e;var _0x1dd152,_0x21ce2a,_0x172d77;!_0x2f2e8b[_0x53e676(0x114)]&&(_0x2f2e8b[_0x53e676(0x114)]=[]);!((_0x1dd152=_0x2f2e8b===null||_0x2f2e8b===void 0x0?void 0x0:_0x2f2e8b[_0x53e676(0x11d)])===null||_0x1dd152===void 0x0?void 0x0:_0x1dd152['validationOptions'])&&(_0x2f2e8b[_0x53e676(0x11d)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(((_0x21ce2a=_0x2f2e8b===null||_0x2f2e8b===void 0x0?void 0x0:_0x2f2e8b[_0x53e676(0x114)])===null||_0x21ce2a===void 0x0?void 0x0:_0x21ce2a[_0x53e676(0x113)])>0x0&&((_0x172d77=_0x2f2e8b===null||_0x2f2e8b===void 0x0?void 0x0:_0x2f2e8b['middlewareIgnore'])===null||_0x172d77===void 0x0?void 0x0:_0x172d77[_0x53e676(0x113)])>0x0)for(let _0x208657 in _0x2f2e8b[_0x53e676(0x114)]){_0x2f2e8b[_0x53e676(0x129)][_0x53e676(0x11b)](_0x2f2e8b[_0x53e676(0x114)][_0x208657])!==-0x1&&(_0x2f2e8b[_0x53e676(0x114)][_0x208657]=null);}_0x2f2e8b[_0x53e676(0x120)]=_0x1d1582,(0x0,validator_1[_0x53e676(0x12b)])(_0x2f2e8b[_0x53e676(0x11d)])(_0x77fbf6,_0x478ca5,_0x368595),(0x0,core_1[_0x53e676(0x118)])(Object[_0x53e676(0x115)](_0x2f2e8b,{'path':_0x54c5bc,'requestMethod':(_0x1504b2==_0x53e676(0x12a)?_0x53e676(0x10e):_0x1504b2)[_0x53e676(0x121)]()}))(_0x77fbf6,_0x478ca5,_0x368595),(0x0,core_1[_0x53e676(0x11c)])(action_1[_0x53e676(0x127)],{'path':_0x54c5bc,'method':_0x478ca5,'apimit':_0x2f2e8b[_0x53e676(0x119)],'routerName':_0x2f2e8b['routerName'],'description':_0x2f2e8b['description'],'middleware':(_0x2f2e8b[_0x53e676(0x114)]||[])[_0x53e676(0x11a)](_0x178a61=>!!_0x178a61),'requestMethod':(_0x1504b2=='del'?_0x53e676(0x10e):_0x1504b2)[_0x53e676(0x121)]()},_0x77fbf6),(0x0,core_1[_0x53e676(0x11e)])(action_1[_0x53e676(0x127)],{'path':_0x54c5bc,'method':_0x478ca5,'apimit':_0x2f2e8b[_0x53e676(0x119)],'routerName':_0x2f2e8b[_0x53e676(0x120)],'description':_0x2f2e8b[_0x53e676(0x124)],'middleware':(_0x2f2e8b[_0x53e676(0x114)]||[])[_0x53e676(0x11a)](_0x11be19=>!!_0x11be19),'requestMethod':(_0x1504b2=='del'?_0x53e676(0x10e):_0x1504b2)[_0x53e676(0x121)]()})(_0x77fbf6,_0x478ca5,_0x368595);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x710e6e=a5_0x48a0;(function(_0x2e6e75,_0x56d197){const _0x98a8ce=a5_0x48a0,_0x19710e=_0x2e6e75();while(!![]){try{const _0x1b35cd=parseInt(_0x98a8ce(0x149))/0x1*(parseInt(_0x98a8ce(0x140))/0x2)+-parseInt(_0x98a8ce(0x13b))/0x3+-parseInt(_0x98a8ce(0x137))/0x4+parseInt(_0x98a8ce(0x13e))/0x5*(parseInt(_0x98a8ce(0x14c))/0x6)+-parseInt(_0x98a8ce(0x14f))/0x7*(-parseInt(_0x98a8ce(0x136))/0x8)+parseInt(_0x98a8ce(0x142))/0x9+-parseInt(_0x98a8ce(0x143))/0xa;if(_0x1b35cd===_0x56d197)break;else _0x19710e['push'](_0x19710e['shift']());}catch(_0x444512){_0x19710e['push'](_0x19710e['shift']());}}}(a5_0x57a9,0x8d33d));Object[a5_0x710e6e(0x14e)](exports,a5_0x710e6e(0x145),{'value':!![]}),exports[a5_0x710e6e(0x13c)]=void 0x0;const core_1=require(a5_0x710e6e(0x14a)),ApitestService_1=require(a5_0x710e6e(0x148));function a5_0x48a0(_0x416c0c,_0x4081f8){const _0x57a909=a5_0x57a9();return a5_0x48a0=function(_0x48a0e4,_0x288b67){_0x48a0e4=_0x48a0e4-0x135;let _0x44a3ae=_0x57a909[_0x48a0e4];return _0x44a3ae;},a5_0x48a0(_0x416c0c,_0x4081f8);}function Apitest(_0xb5b0d3='/apitest',_0x5170cb){return(_0x24105e,_0x399f8b,_0x461335)=>{const _0x20731d=a5_0x48a0;return(0x0,core_1[_0x20731d(0x135)])({'path':_0xb5b0d3,'requestMethod':_0x20731d(0x13f)})(_0x24105e,_0x399f8b,_0x461335),_0x461335[_0x20731d(0x138)]=async function(..._0x4285f9){const _0x50e7d7=_0x20731d;var _0x107f35;const _0x109aaf=(_0x107f35=this[core_1[_0x50e7d7(0x13a)]])===null||_0x107f35===void 0x0?void 0x0:_0x107f35[_0x50e7d7(0x146)];if(_0x109aaf&&_0x109aaf['getConfig'](_0x50e7d7(0x139))){const _0x104b6e=await _0x109aaf[_0x50e7d7(0x14b)]()['getAsync'](ApitestService_1['ApitestService']),_0x39ce0a=await _0x109aaf[_0x50e7d7(0x14b)]()[_0x50e7d7(0x14d)](core_1[_0x50e7d7(0x141)]);return _0x39ce0a[_0x50e7d7(0x147)]()&&(_0x5170cb[_0x50e7d7(0x13d)]=!![]),await _0x104b6e[_0x50e7d7(0x144)](_0x5170cb);}return'';},_0x461335;};}function a5_0x57a9(){const _0x5715af=['filepath','25GNCQuj','get','3482kRdVig','MidwayEnvironmentService','4448457WNKPAF','12195460kMXKve','apidoc','__esModule','app','isDevelopmentEnvironment','../service/ApitestService','587fYOYBf','@midwayjs/core','getApplicationContext','1241994PLWJTs','getAsync','defineProperty','1645ubtWzR','RequestMapping','19480qbfbCK','1723652pvJTzE','value','apitest','REQUEST_OBJ_CTX_KEY','2683908ydSMFx','Apitest'];a5_0x57a9=function(){return _0x5715af;};return a5_0x57a9();}exports[a5_0x710e6e(0x13c)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x15582e=a6_0x7ee0;function a6_0x2b3e(){var _0x3bce3a=['design:type','网络繁忙,请稍后重试','__decorate','HEADERS_DEVICE','1991580XfAtFv','signature验证失败','17058UdAMmo','__metadata','__esModule','length','object','10hmTfCD','defineProperty','getOwnPropertyDescriptor','16Hspbbg','ApiError','2141286mHgsnV','61886PyNjzT','1JsxMeX','请求头信息不完整','72828qpZatg','function','1035102JNZfcp','HEADERS_SIGNATURE','metadata','decorate','6672897OOFQwG','1095nSjXLH','HEADERS_LACK','TIMEOUT'];a6_0x2b3e=function(){return _0x3bce3a;};return a6_0x2b3e();}function a6_0x7ee0(_0x5a67f1,_0x40c012){var _0x2b3e9d=a6_0x2b3e();return a6_0x7ee0=function(_0x7ee033,_0x57ffc6){_0x7ee033=_0x7ee033-0x1c4;var _0x4eaa03=_0x2b3e9d[_0x7ee033];return _0x4eaa03;},a6_0x7ee0(_0x5a67f1,_0x40c012);}(function(_0x1bd66e,_0x5c5be1){var _0xce86ed=a6_0x7ee0,_0x406b1f=_0x1bd66e();while(!![]){try{var _0x57f481=parseInt(_0xce86ed(0x1da))/0x1*(parseInt(_0xce86ed(0x1dc))/0x2)+parseInt(_0xce86ed(0x1de))/0x3+parseInt(_0xce86ed(0x1cc))/0x4+parseInt(_0xce86ed(0x1c5))/0x5*(-parseInt(_0xce86ed(0x1ce))/0x6)+parseInt(_0xce86ed(0x1d8))/0x7*(-parseInt(_0xce86ed(0x1d6))/0x8)+parseInt(_0xce86ed(0x1c4))/0x9+-parseInt(_0xce86ed(0x1d3))/0xa*(-parseInt(_0xce86ed(0x1d9))/0xb);if(_0x57f481===_0x5c5be1)break;else _0x406b1f['push'](_0x406b1f['shift']());}catch(_0xf99cdc){_0x406b1f['push'](_0x406b1f['shift']());}}}(a6_0x2b3e,0x5fb35));var __decorate=this&&this[a6_0x15582e(0x1ca)]||function(_0x5a8288,_0x2d1c8c,_0x3038d7,_0x2b59d7){var _0x102a7f=a6_0x15582e,_0x3397fc=arguments[_0x102a7f(0x1d1)],_0x2aa11b=_0x3397fc<0x3?_0x2d1c8c:_0x2b59d7===null?_0x2b59d7=Object[_0x102a7f(0x1d5)](_0x2d1c8c,_0x3038d7):_0x2b59d7,_0xae2344;if(typeof Reflect===_0x102a7f(0x1d2)&&typeof Reflect['decorate']===_0x102a7f(0x1dd))_0x2aa11b=Reflect[_0x102a7f(0x1e1)](_0x5a8288,_0x2d1c8c,_0x3038d7,_0x2b59d7);else{for(var _0x284998=_0x5a8288[_0x102a7f(0x1d1)]-0x1;_0x284998>=0x0;_0x284998--)if(_0xae2344=_0x5a8288[_0x284998])_0x2aa11b=(_0x3397fc<0x3?_0xae2344(_0x2aa11b):_0x3397fc>0x3?_0xae2344(_0x2d1c8c,_0x3038d7,_0x2aa11b):_0xae2344(_0x2d1c8c,_0x3038d7))||_0x2aa11b;}return _0x3397fc>0x3&&_0x2aa11b&&Object[_0x102a7f(0x1d4)](_0x2d1c8c,_0x3038d7,_0x2aa11b),_0x2aa11b;},__metadata=this&&this[a6_0x15582e(0x1cf)]||function(_0x168f03,_0x3fa1e5){var _0x2d11e2=a6_0x15582e;if(typeof Reflect===_0x2d11e2(0x1d2)&&typeof Reflect[_0x2d11e2(0x1e0)]===_0x2d11e2(0x1dd))return Reflect[_0x2d11e2(0x1e0)](_0x168f03,_0x3fa1e5);};Object['defineProperty'](exports,a6_0x15582e(0x1d0),{'value':!![]}),exports[a6_0x15582e(0x1d7)]=void 0x0;class ApiError{}ApiError[a6_0x15582e(0x1c7)]=0x3d7e31,ApiError[a6_0x15582e(0x1c6)]=0x3d7e32,ApiError[a6_0x15582e(0x1cb)]=0x3d7e33,ApiError['HEADERS_CHECKCODE']=0x3d7e34,ApiError[a6_0x15582e(0x1df)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x15582e(0x1c9)),__metadata(a6_0x15582e(0x1c8),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x15582e(0x1db)),__metadata(a6_0x15582e(0x1c8),Object)],ApiError,a6_0x15582e(0x1c6),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x15582e(0x1c8),Object)],ApiError,a6_0x15582e(0x1cb),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x15582e(0x1c8),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x15582e(0x1cd)),__metadata('design:type',Object)],ApiError,a6_0x15582e(0x1df),void 0x0),exports[a6_0x15582e(0x1d7)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x403239=a7_0x20b3;(function(_0x42789c,_0x433d45){const _0x6fcd8d=a7_0x20b3,_0x677627=_0x42789c();while(!![]){try{const _0x24bf3d=-parseInt(_0x6fcd8d(0x1a3))/0x1+-parseInt(_0x6fcd8d(0x1a0))/0x2+-parseInt(_0x6fcd8d(0x19c))/0x3+-parseInt(_0x6fcd8d(0x19a))/0x4*(parseInt(_0x6fcd8d(0x19e))/0x5)+-parseInt(_0x6fcd8d(0x196))/0x6*(parseInt(_0x6fcd8d(0x199))/0x7)+parseInt(_0x6fcd8d(0x1a1))/0x8+parseInt(_0x6fcd8d(0x195))/0x9;if(_0x24bf3d===_0x433d45)break;else _0x677627['push'](_0x677627['shift']());}catch(_0x4cac8e){_0x677627['push'](_0x677627['shift']());}}}(a7_0x1fea,0x515a1));function a7_0x20b3(_0x19a060,_0x5b5f20){const _0x1fea5e=a7_0x1fea();return a7_0x20b3=function(_0x20b34a,_0x859f6e){_0x20b34a=_0x20b34a-0x195;let _0x5750a5=_0x1fea5e[_0x20b34a];return _0x5750a5;},a7_0x20b3(_0x19a060,_0x5b5f20);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x403239(0x19f)]=void 0x0;function a7_0x1fea(){const _0x431446=['../types/action','getClassMetadata','63BtYWQg','6244WWJeUd','@midwayjs/core','377424LyhlhZ','get','1385neDdwV','getAppsConfig','119714JKTnPV','4892840ZtqaxU','AppsConfigTmp','375394BVQRNJ','11310516XfXNcz','361104ftcjnl'];a7_0x1fea=function(){return _0x431446;};return a7_0x1fea();}const core_1=require(a7_0x403239(0x19b)),action_1=require(a7_0x403239(0x197));function getAppsConfig(_0x3e47b0){const _0x235aa8=a7_0x403239,_0x46b0b7=(0x0,core_1[_0x235aa8(0x198)])(action_1['APPSCONFIG_KEY'],action_1[_0x235aa8(0x1a2)])||{};return _0x3e47b0?lodash[_0x235aa8(0x19d)](_0x46b0b7,_0x3e47b0):_0x46b0b7;}exports[a7_0x403239(0x19f)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a8_0x15f1(_0x577149,_0x2120bf){const _0x3fe443=a8_0x3fe4();return a8_0x15f1=function(_0x15f1e7,_0x463815){_0x15f1e7=_0x15f1e7-0x91;let _0x5735c0=_0x3fe443[_0x15f1e7];return _0x5735c0;},a8_0x15f1(_0x577149,_0x2120bf);}const a8_0xfc84c9=a8_0x15f1;(function(_0x2effb5,_0x1be558){const _0xbc51d1=a8_0x15f1,_0x35cedf=_0x2effb5();while(!![]){try{const _0x54ecab=-parseInt(_0xbc51d1(0xb8))/0x1*(-parseInt(_0xbc51d1(0xa6))/0x2)+parseInt(_0xbc51d1(0xc3))/0x3+-parseInt(_0xbc51d1(0xd9))/0x4*(parseInt(_0xbc51d1(0xa4))/0x5)+-parseInt(_0xbc51d1(0xc5))/0x6+-parseInt(_0xbc51d1(0x99))/0x7+parseInt(_0xbc51d1(0xe5))/0x8+parseInt(_0xbc51d1(0xbd))/0x9;if(_0x54ecab===_0x1be558)break;else _0x35cedf['push'](_0x35cedf['shift']());}catch(_0x92cb3f){_0x35cedf['push'](_0x35cedf['shift']());}}}(a8_0x3fe4,0x97c0c));Object[a8_0xfc84c9(0xd7)](exports,a8_0xfc84c9(0xaf),{'value':!![]}),exports[a8_0xfc84c9(0xae)]=void 0x0;const lodash_1=require(a8_0xfc84c9(0xa5)),validator_1=require(a8_0xfc84c9(0x98)),core_1=require(a8_0xfc84c9(0xb9)),core_2=require(a8_0xfc84c9(0xb9)),core_3=require(a8_0xfc84c9(0xb9)),action_1=require('../types/action');function getRoutes(_0xf7a0e7={'prefix':'/','module':![]}){const _0xf07eaa=a8_0xfc84c9;var _0x2a272a,_0x3bfd0b;const _0x253610=(0x0,core_3['listModule'])(action_1[_0xf07eaa(0xea)]),_0x3bc436={},_0x1d8ccf=Array['isArray'](_0xf7a0e7[_0xf07eaa(0xce)]||[])?_0xf7a0e7[_0xf07eaa(0xce)]||[]:[_0xf7a0e7[_0xf07eaa(0xce)]];_0x5de8f6:for(const _0x1fc335 of _0x253610){let _0x54bf2e=(0x0,core_3[_0xf07eaa(0xc4)])(action_1[_0xf07eaa(0xea)],_0x1fc335),_0xa54e37=(0x0,core_3[_0xf07eaa(0xc4)])(action_1['ACTION_ROUTE_KEY'],_0x1fc335);if(_0x54bf2e&&_0xa54e37){let _0x58d7c6=_0x54bf2e['prefix'],_0x10d2a6={};if(_0xf7a0e7['module']&&(0x0,lodash_1['get'])(_0x54bf2e,_0xf07eaa(0xdc),![])!=_0xf7a0e7[_0xf07eaa(0xdc)])continue _0x5de8f6;else{if(_0xf7a0e7[_0xf07eaa(0xdc)]===![]&&!!(0x0,lodash_1['get'])(_0x54bf2e,_0xf07eaa(0xdc),null))continue _0x5de8f6;}if(_0xf7a0e7[_0xf07eaa(0xbe)]&&!_0x58d7c6[_0xf07eaa(0xdf)](_0xf7a0e7[_0xf07eaa(0xbe)]))continue _0x5de8f6;_0x58d7c6!=='/'?(_0x10d2a6['summary']=(_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e['routerOptions'][_0xf07eaa(0xd2)])||(/^\//['test'](_0x58d7c6)?_0x58d7c6[_0xf07eaa(0xde)]('/')[0x1]:_0x58d7c6),_0x10d2a6[_0xf07eaa(0xbf)]=(_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e[_0xf07eaa(0xd3)][_0xf07eaa(0xbf)])||_0x10d2a6['summary'],_0x10d2a6[_0xf07eaa(0xe7)]=[]):(_0x10d2a6[_0xf07eaa(0xd1)]=(_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e[_0xf07eaa(0xd3)][_0xf07eaa(0xd2)])||_0xf07eaa(0xb4),_0x10d2a6['description']=(_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e[_0xf07eaa(0xd3)][_0xf07eaa(0xbf)])||'',_0x10d2a6['routes']=[]);_0xf7a0e7[_0xf07eaa(0xb7)]&&(_0x10d2a6[_0xf07eaa(0xb7)]=_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e['filepath']);(_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e[_0xf07eaa(0xc9)])&&(_0x10d2a6[_0xf07eaa(0xbe)]=_0x54bf2e[_0xf07eaa(0xc9)]);(_0x54bf2e===null||_0x54bf2e===void 0x0?void 0x0:_0x54bf2e[_0xf07eaa(0xdc)])&&(_0x10d2a6[_0xf07eaa(0xdc)]=_0x54bf2e[_0xf07eaa(0xdc)]);let _0x48633a=(0x0,core_3[_0xf07eaa(0xc4)])(core_2[_0xf07eaa(0xb5)],_0x1fc335)||{};if(typeof _0xa54e37[Symbol['iterator']]===_0xf07eaa(0xb0))for(let _0x52a813 of _0xa54e37){let _0x26322b={};_0x26322b['method']=_0x52a813['requestMethod'],_0x26322b[_0xf07eaa(0xd8)]=(_0x58d7c6+_0x52a813[_0xf07eaa(0xdb)])[_0xf07eaa(0xcc)](/\/{1,}/,'/'),_0x26322b['summary']=(_0x52a813===null||_0x52a813===void 0x0?void 0x0:_0x52a813['routerName'])||_0x10d2a6[_0xf07eaa(0xd1)]||'default',_0x26322b[_0xf07eaa(0xbf)]=(_0x52a813===null||_0x52a813===void 0x0?void 0x0:_0x52a813[_0xf07eaa(0xbf)])||'',_0x26322b[_0xf07eaa(0x93)]=[];if(!(0x0,lodash_1['startsWith'])(_0x26322b[_0xf07eaa(0xd8)],_0xf07eaa(0xa9))&&!(0x0,lodash_1['startsWith'])(_0x26322b[_0xf07eaa(0xd8)],_0xf07eaa(0xda))&&_0x1d8ccf[_0xf07eaa(0xa3)](_0x26322b['route'])===-0x1){if(!(_0xf7a0e7===null||_0xf7a0e7===void 0x0?void 0x0:_0xf7a0e7[_0xf07eaa(0xe1)])){let _0x40c083=(0x0,core_3[_0xf07eaa(0xe8)])(new _0x1fc335(),_0x52a813[_0xf07eaa(0xb6)]);for(const _0x40cc70 in _0x40c083){let _0x43ada6=(_0x2a272a=_0x48633a[_0x52a813[_0xf07eaa(0xb6)]])===null||_0x2a272a===void 0x0?void 0x0:_0x2a272a[_0xf07eaa(0xc1)](_0x500e3d=>_0x500e3d['parameterIndex']==_0x40cc70&&_0x500e3d['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x500e3d===null||_0x500e3d===void 0x0?void 0x0:_0x500e3d[_0xf07eaa(0xad)]));if(_0x43ada6===null||_0x43ada6===void 0x0?void 0x0:_0x43ada6[_0xf07eaa(0xad)]){let _0x2dc42e=convertTypeToString(_0x43ada6[_0xf07eaa(0xad)]['type']||0x0);if(['query',_0xf07eaa(0x92)][_0xf07eaa(0xa3)](_0x2dc42e)!=-0x1&&_0x43ada6[_0xf07eaa(0xad)]['propertyData']['indexOf'](':')==-0x1&&!_0x26322b[_0xf07eaa(0x93)]['find'](_0x49087a=>_0x49087a[_0xf07eaa(0x9d)]==_0x43ada6['metadata'][_0xf07eaa(0xd5)]))_0x26322b[_0xf07eaa(0x93)]['push']({'key':_0x43ada6['metadata'][_0xf07eaa(0xd5)],'title':_0x43ada6[_0xf07eaa(0xad)]['propertyData'],'type':convertSchemaType(_0x40c083[_0x43ada6[_0xf07eaa(0xa8)]][_0xf07eaa(0xcb)]),'required':![],'default':'','desc':''});else{if(_0x2dc42e==_0xf07eaa(0xab)){let _0x41c77d=((_0x3bfd0b=_0x43ada6===null||_0x43ada6===void 0x0?void 0x0:_0x43ada6[_0xf07eaa(0xad)])===null||_0x3bfd0b===void 0x0?void 0x0:_0x3bfd0b[_0xf07eaa(0xd5)])||_0xf07eaa(0xab);_0x41c77d['indexOf'](':')==-0x1&&!_0x26322b['request'][_0xf07eaa(0xc1)](_0x331be9=>_0x331be9[_0xf07eaa(0x9d)]==_0x41c77d&&_0x331be9[_0xf07eaa(0x96)]==_0xf07eaa(0xab))&&_0x26322b['request']['push']({'key':_0x41c77d,'title':_0xf07eaa(0x97)+_0x41c77d,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x10c790=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0xf07eaa(0xd6)],_0x40c083[_0x40cc70]);_0x10c790&&_0x26322b[_0xf07eaa(0x93)]['push'](...getJoiRequest(_0x10c790));}}}_0x10d2a6[_0xf07eaa(0xe7)][_0xf07eaa(0xbc)](_0x26322b);}}if(_0x10d2a6[_0xf07eaa(0xe7)][_0xf07eaa(0xe9)]>0x0){let _0x1960ad=_0x3bc436[_0x58d7c6];_0x1960ad?(_0x1960ad[_0xf07eaa(0xd1)]!=_0x10d2a6[_0xf07eaa(0xd1)]&&(_0x1960ad['summary']=_0x1960ad['summary']+','+_0x10d2a6[_0xf07eaa(0xd1)]),_0x1960ad['description']!=_0x10d2a6[_0xf07eaa(0xbf)]&&(_0x1960ad[_0xf07eaa(0xbf)]=_0x1960ad[_0xf07eaa(0xbf)]+','+_0x10d2a6[_0xf07eaa(0xbf)]),_0x1960ad['routes']=_0x1960ad[_0xf07eaa(0xe7)][_0xf07eaa(0xbb)](_0x10d2a6[_0xf07eaa(0xe7)]),_0x3bc436[_0x58d7c6]=_0x1960ad):_0x3bc436[_0x58d7c6]=_0x10d2a6;}}}return _0x3bc436;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x505ebf){const _0x4867d6=a8_0xfc84c9,_0x175310=[];for(let _0x5a2704 in _0x505ebf){const _0x185da1={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x572ad0=typeof _0x505ebf[_0x5a2704]['describe']=='function'?_0x505ebf[_0x5a2704][_0x4867d6(0xe0)]():_0x505ebf[_0x5a2704];_0x185da1['key']=_0x5a2704,_0x185da1[_0x4867d6(0x96)]=_0x572ad0[_0x4867d6(0x96)],_0x185da1[_0x4867d6(0xe4)]=(0x0,lodash_1[_0x4867d6(0xc2)])(_0x572ad0,'flags.label',_0x5a2704),_0x185da1[_0x4867d6(0xb4)]=(0x0,lodash_1['get'])(_0x572ad0,_0x4867d6(0xe3),''),_0x185da1['required']=(0x0,lodash_1[_0x4867d6(0xc2)])(_0x572ad0,'flags.presence','')==_0x4867d6(0x9b),_0x185da1[_0x4867d6(0xbf)]=(0x0,lodash_1['get'])(_0x572ad0,_0x4867d6(0xb1),'');if(_0x572ad0['type']==_0x4867d6(0xcd))_0x185da1['children']=getJoiRequest(_0x572ad0['keys']);else _0x572ad0[_0x4867d6(0x96)]==_0x4867d6(0xa7)&&_0x572ad0['items']&&Array[_0x4867d6(0xc7)](_0x572ad0['items'])&&_0x572ad0[_0x4867d6(0xdd)][0x0]&&console[_0x4867d6(0xc8)](_0x5a2704+_0x4867d6(0xe2),_0x572ad0);_0x572ad0[_0x4867d6(0xba)]&&Array[_0x4867d6(0xc7)](_0x572ad0[_0x4867d6(0xba)])&&_0x572ad0[_0x4867d6(0xba)][_0x4867d6(0xe9)]>0x0&&(_0x185da1[_0x4867d6(0xbf)]=_0x4867d6(0xac)+_0x572ad0['allow'][_0x4867d6(0xcf)](',')+'];'+_0x185da1[_0x4867d6(0xbf)]);if(_0x185da1[_0x4867d6(0x9d)]&&_0x185da1[_0x4867d6(0x96)]){const _0x3edbbd={};for(const _0xf2edb8 of _0x572ad0['rules']||[]){if(_0xf2edb8[_0x4867d6(0xcb)]===_0x4867d6(0x9f)&&_0xf2edb8['args'])_0x3edbbd[_0x4867d6(0x9f)]=_0xf2edb8[_0x4867d6(0xa1)]['limit'];else _0xf2edb8['name']===_0x4867d6(0x9a)&&(_0x3edbbd[_0x4867d6(0x9a)]=_0xf2edb8['args'][_0x4867d6(0xb3)]);}_0x185da1[_0x4867d6(0x91)]=_0x3edbbd;}_0x185da1[_0x4867d6(0x9d)]&&_0x185da1['title']&&_0x175310[_0x4867d6(0xbc)](_0x185da1);}return _0x175310;}function convertSchemaType(_0x3452d2){const _0x5230f3=a8_0xfc84c9;switch(_0x3452d2){case _0x5230f3(0xa0):return _0x5230f3(0xcd);case _0x5230f3(0x9e):return'boolean';case _0x5230f3(0xa2):return _0x5230f3(0xd4);case _0x5230f3(0xec):return _0x5230f3(0xd0);case _0x5230f3(0xaa):return _0x5230f3(0xab);default:return'string';}}function convertTypeToString(_0x245695){const _0x25c26a=a8_0xfc84c9;switch(_0x245695){case core_1[_0x25c26a(0x9c)][_0x25c26a(0xe6)]:return _0x25c26a(0xeb);case core_1[_0x25c26a(0x9c)][_0x25c26a(0xca)]:return _0x25c26a(0x94);case core_1['RouteParamTypes'][_0x25c26a(0xc6)]:return _0x25c26a(0xdb);case core_1['RouteParamTypes'][_0x25c26a(0x95)]:return _0x25c26a(0x92);case core_1[_0x25c26a(0x9c)][_0x25c26a(0xc0)]:case core_1[_0x25c26a(0x9c)]['FILESSTREAM']:case core_1[_0x25c26a(0x9c)][_0x25c26a(0xb2)]:return _0x25c26a(0xab);default:return _0x25c26a(0xeb);}}function a8_0x3fe4(){const _0x26c6da=['module','items','split','startsWith','describe','noreq','-array','flags.default','title','9232536qHSpcj','HEADERS','routes','getMethodParamTypes','length','ACTION_KEY','header','String','rules','body','request','query','BODY','type','文件上传-','@anncic-api/validator','8622971RrBVlN','max','required','RouteParamTypes','key','Boolean','min','Object','args','Number','indexOf','5STkffz','lodash','905614Jthggp','array','parameterIndex','static/apitest','File','file','只允许:[','metadata','getRoutes','__esModule','function','flags.description','FILESTREAM','limit','default','INJECT_CUSTOM_PARAM','method','filepath','1peiUnl','@midwayjs/core','allow','concat','push','14232717xRNXmM','prefix','description','FIELDS','find','get','1375203ZwlsJO','getClassMetadata','3483384kLkRMY','PARAM','isArray','log','pprefix','QUERY','name','replace','object','filter','join','string','summary','tagName','routerOptions','number','propertyData','RULES_KEY','defineProperty','route','4850764JWlpDW','/static/apitest','path'];a8_0x3fe4=function(){return _0x26c6da;};return a8_0x3fe4();}
|
|
1
|
+
'use strict';const a8_0x329170=a8_0x16ca;(function(_0x386e41,_0x59820d){const _0x40e6f2=a8_0x16ca,_0xcee8bd=_0x386e41();while(!![]){try{const _0x16a116=-parseInt(_0x40e6f2(0x89))/0x1*(-parseInt(_0x40e6f2(0xbe))/0x2)+parseInt(_0x40e6f2(0xdb))/0x3*(parseInt(_0x40e6f2(0xdf))/0x4)+-parseInt(_0x40e6f2(0xd2))/0x5+parseInt(_0x40e6f2(0xc1))/0x6+-parseInt(_0x40e6f2(0xa1))/0x7+parseInt(_0x40e6f2(0xd9))/0x8+-parseInt(_0x40e6f2(0x99))/0x9*(parseInt(_0x40e6f2(0x95))/0xa);if(_0x16a116===_0x59820d)break;else _0xcee8bd['push'](_0xcee8bd['shift']());}catch(_0x225f14){_0xcee8bd['push'](_0xcee8bd['shift']());}}}(a8_0x2f7f,0x8cbdd));Object['defineProperty'](exports,a8_0x329170(0xd3),{'value':!![]}),exports[a8_0x329170(0xd8)]=void 0x0;const lodash_1=require(a8_0x329170(0x85)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require(a8_0x329170(0xd6)),core_3=require(a8_0x329170(0xd6)),action_1=require(a8_0x329170(0xd5));function getRoutes(_0x13a9fc={'prefix':'/','module':![]}){const _0x26ffcf=a8_0x329170;var _0x13ff0e,_0x3705ca;const _0x1f040d=(0x0,core_3[_0x26ffcf(0xa5)])(action_1[_0x26ffcf(0xd4)]),_0x253c5d={},_0x7fb127=Array[_0x26ffcf(0xba)](_0x13a9fc[_0x26ffcf(0xd7)]||[])?_0x13a9fc[_0x26ffcf(0xd7)]||[]:[_0x13a9fc[_0x26ffcf(0xd7)]];_0x3fa387:for(const _0x5dff2a of _0x1f040d){let _0x46417b=(0x0,core_3[_0x26ffcf(0x86)])(action_1['ACTION_KEY'],_0x5dff2a),_0x1b5f81=(0x0,core_3['getClassMetadata'])(action_1[_0x26ffcf(0xab)],_0x5dff2a);if(_0x46417b&&_0x1b5f81){let _0x574db8=_0x46417b[_0x26ffcf(0xcf)],_0x1dd7c9={};if(_0x13a9fc[_0x26ffcf(0xb3)]&&(0x0,lodash_1[_0x26ffcf(0xc5)])(_0x46417b,'module',![])!=_0x13a9fc[_0x26ffcf(0xb3)])continue _0x3fa387;else{if(_0x13a9fc[_0x26ffcf(0xb3)]===![]&&!!(0x0,lodash_1['get'])(_0x46417b,_0x26ffcf(0xb3),null))continue _0x3fa387;}if(_0x13a9fc[_0x26ffcf(0xcf)]&&!_0x574db8[_0x26ffcf(0x87)](_0x13a9fc[_0x26ffcf(0xcf)]))continue _0x3fa387;_0x574db8!=='/'?(_0x1dd7c9[_0x26ffcf(0xb8)]=(_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b[_0x26ffcf(0x84)][_0x26ffcf(0xaf)])||(/^\//[_0x26ffcf(0x8f)](_0x574db8)?_0x574db8[_0x26ffcf(0x9b)]('/')[0x1]:_0x574db8),_0x1dd7c9['description']=(_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b[_0x26ffcf(0x84)][_0x26ffcf(0xc7)])||_0x1dd7c9['summary'],_0x1dd7c9['routes']=[]):(_0x1dd7c9[_0x26ffcf(0xb8)]=(_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b['routerOptions'][_0x26ffcf(0xaf)])||'default',_0x1dd7c9[_0x26ffcf(0xc7)]=(_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b['routerOptions'][_0x26ffcf(0xc7)])||'',_0x1dd7c9[_0x26ffcf(0x9d)]=[]);_0x13a9fc[_0x26ffcf(0xc9)]&&(_0x1dd7c9['filepath']=_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b[_0x26ffcf(0xc9)]);(_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b['pprefix'])&&(_0x1dd7c9[_0x26ffcf(0xcf)]=_0x46417b[_0x26ffcf(0xa7)]);(_0x46417b===null||_0x46417b===void 0x0?void 0x0:_0x46417b['module'])&&(_0x1dd7c9['module']=_0x46417b[_0x26ffcf(0xb3)]);let _0x3cd3cf=(0x0,core_3[_0x26ffcf(0x86)])(core_2[_0x26ffcf(0xa0)],_0x5dff2a)||{};if(typeof _0x1b5f81[Symbol[_0x26ffcf(0x8e)]]===_0x26ffcf(0xa4))for(let _0x30a195 of _0x1b5f81){let _0x11f446={};_0x11f446['method']=_0x30a195[_0x26ffcf(0xb2)],_0x11f446[_0x26ffcf(0x9f)]=(_0x574db8+_0x30a195['path'])[_0x26ffcf(0x8b)](/\/{1,}/,'/'),_0x11f446['summary']=(_0x30a195===null||_0x30a195===void 0x0?void 0x0:_0x30a195[_0x26ffcf(0x93)])||_0x1dd7c9[_0x26ffcf(0xb8)]||_0x26ffcf(0xaa),_0x11f446[_0x26ffcf(0xc7)]=(_0x30a195===null||_0x30a195===void 0x0?void 0x0:_0x30a195[_0x26ffcf(0xc7)])||'',_0x11f446[_0x26ffcf(0xbf)]=[];if(!(0x0,lodash_1['startsWith'])(_0x11f446[_0x26ffcf(0x9f)],'static/apitest')&&!(0x0,lodash_1[_0x26ffcf(0x87)])(_0x11f446[_0x26ffcf(0x9f)],_0x26ffcf(0x83))&&_0x7fb127[_0x26ffcf(0x88)](_0x11f446['route'])===-0x1){if(!(_0x13a9fc===null||_0x13a9fc===void 0x0?void 0x0:_0x13a9fc['noreq'])){let _0x48df0a=(0x0,core_3[_0x26ffcf(0xcd)])(new _0x5dff2a(),_0x30a195['method']);for(const _0x381736 in _0x48df0a){let _0x1cec0c=(_0x13ff0e=_0x3cd3cf[_0x30a195[_0x26ffcf(0xb6)]])===null||_0x13ff0e===void 0x0?void 0x0:_0x13ff0e[_0x26ffcf(0xc3)](_0x23dbb8=>_0x23dbb8[_0x26ffcf(0xca)]==_0x381736&&_0x23dbb8[_0x26ffcf(0xb7)]===core_2[_0x26ffcf(0xd0)]&&(_0x23dbb8===null||_0x23dbb8===void 0x0?void 0x0:_0x23dbb8[_0x26ffcf(0x90)]));if(_0x1cec0c===null||_0x1cec0c===void 0x0?void 0x0:_0x1cec0c['metadata']){let _0x1ecfb3=convertTypeToString(_0x1cec0c[_0x26ffcf(0x90)][_0x26ffcf(0xb5)]||0x0);if([_0x26ffcf(0xb4),_0x26ffcf(0x98)][_0x26ffcf(0x88)](_0x1ecfb3)!=-0x1&&_0x1cec0c[_0x26ffcf(0x90)]['propertyData'][_0x26ffcf(0x88)](':')==-0x1&&!_0x11f446[_0x26ffcf(0xbf)][_0x26ffcf(0xc3)](_0x310934=>_0x310934[_0x26ffcf(0xb7)]==_0x1cec0c[_0x26ffcf(0x90)][_0x26ffcf(0xb1)]))_0x11f446[_0x26ffcf(0xbf)][_0x26ffcf(0x82)]({'key':_0x1cec0c[_0x26ffcf(0x90)][_0x26ffcf(0xb1)],'title':_0x1cec0c[_0x26ffcf(0x90)]['propertyData'],'type':convertSchemaType(_0x48df0a[_0x1cec0c[_0x26ffcf(0xca)]]['name']),'required':![],'default':'','desc':''});else{if(_0x1ecfb3=='file'){let _0x12599c=((_0x3705ca=_0x1cec0c===null||_0x1cec0c===void 0x0?void 0x0:_0x1cec0c[_0x26ffcf(0x90)])===null||_0x3705ca===void 0x0?void 0x0:_0x3705ca[_0x26ffcf(0xb1)])||'file';_0x12599c[_0x26ffcf(0x88)](':')==-0x1&&!_0x11f446[_0x26ffcf(0xbf)]['find'](_0x579927=>_0x579927[_0x26ffcf(0xb7)]==_0x12599c&&_0x579927[_0x26ffcf(0xb5)]==_0x26ffcf(0xcc))&&_0x11f446['request'][_0x26ffcf(0x82)]({'key':_0x12599c,'title':_0x26ffcf(0xac)+_0x12599c,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x589bb2=(0x0,core_3[_0x26ffcf(0xc8)])(validator_1[_0x26ffcf(0x94)],_0x48df0a[_0x381736]);_0x589bb2&&_0x11f446[_0x26ffcf(0xbf)][_0x26ffcf(0x82)](...getJoiRequest(_0x589bb2));}}}_0x1dd7c9[_0x26ffcf(0x9d)]['push'](_0x11f446);}}if(_0x1dd7c9[_0x26ffcf(0x9d)]['length']>0x0){let _0x267a98=_0x253c5d[_0x574db8];_0x267a98?(_0x267a98[_0x26ffcf(0xb8)]!=_0x1dd7c9[_0x26ffcf(0xb8)]&&(_0x267a98[_0x26ffcf(0xb8)]=_0x267a98[_0x26ffcf(0xb8)]+','+_0x1dd7c9[_0x26ffcf(0xb8)]),_0x267a98[_0x26ffcf(0xc7)]!=_0x1dd7c9['description']&&(_0x267a98[_0x26ffcf(0xc7)]=_0x267a98[_0x26ffcf(0xc7)]+','+_0x1dd7c9[_0x26ffcf(0xc7)]),_0x267a98['routes']=_0x267a98[_0x26ffcf(0x9d)][_0x26ffcf(0xa6)](_0x1dd7c9[_0x26ffcf(0x9d)]),_0x253c5d[_0x574db8]=_0x267a98):_0x253c5d[_0x574db8]=_0x1dd7c9;}}}return _0x253c5d;}exports[a8_0x329170(0xd8)]=getRoutes;function getJoiRequest(_0x40a25c){const _0x3f0682=a8_0x329170,_0x4433f9=[];for(let _0x3b4a9a in _0x40a25c){const _0x3f7083={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2d5643=typeof _0x40a25c[_0x3b4a9a][_0x3f0682(0x8a)]==_0x3f0682(0xa4)?_0x40a25c[_0x3b4a9a][_0x3f0682(0x8a)]():_0x40a25c[_0x3b4a9a];_0x3f7083['key']=_0x3b4a9a,_0x3f7083[_0x3f0682(0xb5)]=_0x2d5643[_0x3f0682(0xb5)],_0x3f7083[_0x3f0682(0xd1)]=(0x0,lodash_1[_0x3f0682(0xc5)])(_0x2d5643,_0x3f0682(0xbd),_0x3b4a9a),_0x3f7083[_0x3f0682(0xaa)]=(0x0,lodash_1['get'])(_0x2d5643,_0x3f0682(0x91),''),_0x3f7083[_0x3f0682(0xb0)]=(0x0,lodash_1['get'])(_0x2d5643,_0x3f0682(0xdd),'')=='required',_0x3f7083[_0x3f0682(0xc7)]=(0x0,lodash_1['get'])(_0x2d5643,_0x3f0682(0x9c),'');if(_0x2d5643[_0x3f0682(0xb5)]==_0x3f0682(0xc0))_0x3f7083[_0x3f0682(0xc2)]=getJoiRequest(_0x2d5643[_0x3f0682(0xde)]);else _0x2d5643[_0x3f0682(0xb5)]==_0x3f0682(0xa9)&&_0x2d5643['items']&&Array['isArray'](_0x2d5643[_0x3f0682(0xa8)])&&_0x2d5643['items'][0x0]&&console[_0x3f0682(0x97)](_0x3b4a9a+_0x3f0682(0xda),_0x2d5643);_0x2d5643[_0x3f0682(0xc4)]&&Array['isArray'](_0x2d5643[_0x3f0682(0xc4)])&&_0x2d5643['allow'][_0x3f0682(0xcb)]>0x0&&(_0x3f7083[_0x3f0682(0xc7)]='只允许:['+_0x2d5643[_0x3f0682(0xc4)][_0x3f0682(0xa3)](',')+'];'+_0x3f7083[_0x3f0682(0xc7)]);if(_0x3f7083['key']&&_0x3f7083[_0x3f0682(0xb5)]){const _0x597ed0={};for(const _0x523b74 of _0x2d5643[_0x3f0682(0x8d)]||[]){if(_0x523b74[_0x3f0682(0xae)]===_0x3f0682(0xa2)&&_0x523b74[_0x3f0682(0x9e)])_0x597ed0['min']=_0x523b74[_0x3f0682(0x9e)]['limit'];else _0x523b74[_0x3f0682(0xae)]==='max'&&(_0x597ed0[_0x3f0682(0x81)]=_0x523b74['args']['limit']);}_0x3f7083['rules']=_0x597ed0;}_0x3f7083[_0x3f0682(0xb7)]&&_0x3f7083[_0x3f0682(0xd1)]&&_0x4433f9['push'](_0x3f7083);}return _0x4433f9;}function a8_0x2f7f(){const _0x544541=['3400790MypjIn','__esModule','ACTION_KEY','../types/action','@midwayjs/core','filter','getRoutes','4963440lPraYy','-array','177LLyANR','boolean','flags.presence','keys','20236Zcvqrx','max','push','/static/apitest','routerOptions','lodash','getClassMetadata','startsWith','indexOf','54SqpFvv','describe','replace','Object','rules','iterator','test','metadata','flags.default','header','routerName','RULES_KEY','10610jvBNCa','Boolean','log','body','8955IkecFR','string','split','flags.description','routes','args','route','INJECT_CUSTOM_PARAM','3940517iIuqIU','min','join','function','listModule','concat','pprefix','items','array','default','ACTION_ROUTE_KEY','文件上传-','FIELDS','name','tagName','required','propertyData','requestMethod','module','query','type','method','key','summary','HEADERS','isArray','path','RouteParamTypes','flags.label','33774FHYRWx','request','object','6266712vHgwtH','children','find','allow','get','File','description','getClassExtendedMetadata','filepath','parameterIndex','length','file','getMethodParamTypes','FILESTREAM','prefix','WEB_ROUTER_PARAM_KEY','title'];a8_0x2f7f=function(){return _0x544541;};return a8_0x2f7f();}function convertSchemaType(_0x26b078){const _0x4c59cd=a8_0x329170;switch(_0x26b078){case _0x4c59cd(0x8c):return _0x4c59cd(0xc0);case _0x4c59cd(0x96):return _0x4c59cd(0xdc);case'Number':return'number';case'String':return'string';case _0x4c59cd(0xc6):return _0x4c59cd(0xcc);default:return _0x4c59cd(0x9a);}}function a8_0x16ca(_0x45321,_0x18eee1){const _0x2f7f47=a8_0x2f7f();return a8_0x16ca=function(_0x16ca16,_0x25bdb3){_0x16ca16=_0x16ca16-0x81;let _0x3fdbc3=_0x2f7f47[_0x16ca16];return _0x3fdbc3;},a8_0x16ca(_0x45321,_0x18eee1);}function convertTypeToString(_0x3fbf29){const _0x16dec4=a8_0x329170;switch(_0x3fbf29){case core_1[_0x16dec4(0xbc)][_0x16dec4(0xb9)]:return _0x16dec4(0x92);case core_1['RouteParamTypes']['QUERY']:return _0x16dec4(0xb4);case core_1[_0x16dec4(0xbc)]['PARAM']:return _0x16dec4(0xbb);case core_1[_0x16dec4(0xbc)]['BODY']:return _0x16dec4(0x98);case core_1['RouteParamTypes'][_0x16dec4(0xad)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0x16dec4(0xbc)][_0x16dec4(0xce)]:return'file';default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x30b567=a9_0x50df;(function(_0x2f4902,_0x489e61){var _0x4884f2=a9_0x50df,_0x75122f=_0x2f4902();while(!![]){try{var _0x1d3d70=parseInt(_0x4884f2(0x1e5))/0x1+parseInt(_0x4884f2(0x1d8))/0x2+parseInt(_0x4884f2(0x1f8))/0x3+-parseInt(_0x4884f2(0x1ff))/0x4*(parseInt(_0x4884f2(0x205))/0x5)+parseInt(_0x4884f2(0x1ed))/0x6+-parseInt(_0x4884f2(0x1e3))/0x7+-parseInt(_0x4884f2(0x1e2))/0x8;if(_0x1d3d70===_0x489e61)break;else _0x75122f['push'](_0x75122f['shift']());}catch(_0x40c4f0){_0x75122f['push'](_0x75122f['shift']());}}}(a9_0x2391,0xbaca7));var __createBinding=this&&this[a9_0x30b567(0x1dd)]||(Object['create']?function(_0x5eee78,_0x2fc539,_0x9e5d67,_0x20c183){var _0x4569a0=a9_0x30b567;if(_0x20c183===undefined)_0x20c183=_0x9e5d67;var _0x26c141=Object[_0x4569a0(0x1fe)](_0x2fc539,_0x9e5d67);(!_0x26c141||(_0x4569a0(0x206)in _0x26c141?!_0x2fc539[_0x4569a0(0x1d6)]:_0x26c141['writable']||_0x26c141['configurable']))&&(_0x26c141={'enumerable':!![],'get':function(){return _0x2fc539[_0x9e5d67];}}),Object['defineProperty'](_0x5eee78,_0x20c183,_0x26c141);}:function(_0x4b6143,_0x534f05,_0x1cb3dd,_0x511428){if(_0x511428===undefined)_0x511428=_0x1cb3dd;_0x4b6143[_0x511428]=_0x534f05[_0x1cb3dd];}),__exportStar=this&&this[a9_0x30b567(0x1e0)]||function(_0x12ef30,_0x4c260f){var _0x202129=a9_0x30b567;for(var _0x48c892 in _0x12ef30)if(_0x48c892!==_0x202129(0x204)&&!Object[_0x202129(0x200)]['hasOwnProperty']['call'](_0x4c260f,_0x48c892))__createBinding(_0x4c260f,_0x12ef30,_0x48c892);};Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1d6),{'value':!![]}),exports[a9_0x30b567(0x207)]=exports[a9_0x30b567(0x1e1)]=exports[a9_0x30b567(0x1f2)]=exports[a9_0x30b567(0x203)]=exports[a9_0x30b567(0x1e9)]=exports[a9_0x30b567(0x1f5)]=exports[a9_0x30b567(0x1fa)]=exports[a9_0x30b567(0x1f0)]=exports[a9_0x30b567(0x1da)]=exports['Headers']=exports['Query']=exports[a9_0x30b567(0x1fb)]=exports[a9_0x30b567(0x1f6)]=exports['Fields']=exports[a9_0x30b567(0x1d9)]=exports[a9_0x30b567(0x1d5)]=exports[a9_0x30b567(0x1dc)]=exports[a9_0x30b567(0x1e8)]=exports[a9_0x30b567(0x1f9)]=exports[a9_0x30b567(0x1ec)]=exports[a9_0x30b567(0x202)]=exports[a9_0x30b567(0x1fc)]=exports[a9_0x30b567(0x1d7)]=exports[a9_0x30b567(0x1eb)]=exports['getRoutes']=exports['Apitest']=exports[a9_0x30b567(0x1de)]=exports[a9_0x30b567(0x1db)]=void 0x0;const getAppsConfig_1=require(a9_0x30b567(0x1df));Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x207),{'enumerable':!![],'get':function(){var _0x4d2058=a9_0x30b567;return getAppsConfig_1[_0x4d2058(0x207)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x30b567(0x201)),exports);var ActionApi_1=require(a9_0x30b567(0x1e7));Object['defineProperty'](exports,a9_0x30b567(0x1db),{'enumerable':!![],'get':function(){var _0x2873e6=a9_0x30b567;return ActionApi_1[_0x2873e6(0x1db)];}});var Action_1=require('./decorator/Action');Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1de),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x30b567(0x1f7));Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1fd),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x30b567(0x1f3));Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1e6),{'enumerable':!![],'get':function(){var _0xac5f61=a9_0x30b567;return getRoutes_1[_0xac5f61(0x1e6)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1eb),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require('@anncic-api/cache');Object[a9_0x30b567(0x1ea)](exports,'CacheService',{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});function a9_0x2391(){var _0x3095fe=['__exportStar','ScopeEnum','2945880vsjkcs','3028739jPGoax','@anncic-api/event','236229XxlqVM','getRoutes','./decorator/ActionApi','ValidatorService','Provide','defineProperty','ApiError','ExcelService','7174788CTNAIe','Query','./service/ExcelService','App','@anncic-api/validator','Scope','./helper/getRoutes','Headers','Logger','Body','./decorator/ActionApitest','364410jbmwUV','ValidatorError','Config','Param','EventService','Apitest','getOwnPropertyDescriptor','68PYHgRF','prototype','./service/ApitestService','ApiService','Inject','default','250655cgCZvo','get','getAppsConfig','Fields','File','__esModule','CacheService','1729474nyhpKj','Files','Init','Api','Configuration','__createBinding','Action','./helper/getAppsConfig'];a9_0x2391=function(){return _0x3095fe;};return a9_0x2391();}var event_1=require(a9_0x30b567(0x1e4));Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1fc),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object[a9_0x30b567(0x1ea)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x30b567(0x1ef));Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1ec),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x30b567(0x1f1));Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1f9),{'enumerable':!![],'get':function(){var _0x81d600=a9_0x30b567;return validator_1[_0x81d600(0x1f9)];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1e8),{'enumerable':!![],'get':function(){var _0x358626=a9_0x30b567;return validator_1[_0x358626(0x1e8)];}});var configuration_1=require('./configuration');Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1dc),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1d5),{'enumerable':!![],'get':function(){var _0x17dd04=a9_0x30b567;return core_1[_0x17dd04(0x1d5)];}}),Object[a9_0x30b567(0x1ea)](exports,'Files',{'enumerable':!![],'get':function(){var _0x21ee09=a9_0x30b567;return core_1[_0x21ee09(0x1d9)];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x208),{'enumerable':!![],'get':function(){var _0x313501=a9_0x30b567;return core_1[_0x313501(0x208)];}}),Object['defineProperty'](exports,a9_0x30b567(0x1f6),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1fb),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1ee),{'enumerable':!![],'get':function(){var _0x482028=a9_0x30b567;return core_1[_0x482028(0x1ee)];}}),Object[a9_0x30b567(0x1ea)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x1028f9=a9_0x30b567;return core_1[_0x1028f9(0x1f4)];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1da),{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require('@midwayjs/core');function a9_0x50df(_0x42a66c,_0x4984f7){var _0x239192=a9_0x2391();return a9_0x50df=function(_0x50df81,_0x417ac7){_0x50df81=_0x50df81-0x1d5;var _0x273933=_0x239192[_0x50df81];return _0x273933;},a9_0x50df(_0x42a66c,_0x4984f7);}Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1f0),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1fa),{'enumerable':!![],'get':function(){var _0xd1674b=a9_0x30b567;return core_2[_0xd1674b(0x1fa)];}}),Object['defineProperty'](exports,a9_0x30b567(0x1f5),{'enumerable':!![],'get':function(){var _0x1410c5=a9_0x30b567;return core_2[_0x1410c5(0x1f5)];}}),Object[a9_0x30b567(0x1ea)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x2f285c=a9_0x30b567;return core_2[_0x2f285c(0x1e9)];}}),Object['defineProperty'](exports,a9_0x30b567(0x203),{'enumerable':!![],'get':function(){var _0x1c93e7=a9_0x30b567;return core_2[_0x1c93e7(0x203)];}}),Object['defineProperty'](exports,a9_0x30b567(0x1f2),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x30b567(0x1ea)](exports,a9_0x30b567(0x1e1),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x30b567(0x207)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x17e42a=a10_0x26db;(function(_0x2d52f4,_0x36e417){var _0x44a18b=a10_0x26db,_0x50f63a=_0x2d52f4();while(!![]){try{var _0x2c82d6=parseInt(_0x44a18b(0x83))/0x1*(-parseInt(_0x44a18b(0x80))/0x2)+-parseInt(_0x44a18b(0x93))/0x3+parseInt(_0x44a18b(0xb3))/0x4+parseInt(_0x44a18b(0x98))/0x5*(-parseInt(_0x44a18b(0x9e))/0x6)+-parseInt(_0x44a18b(0xb7))/0x7+parseInt(_0x44a18b(0x96))/0x8*(-parseInt(_0x44a18b(0xa1))/0x9)+parseInt(_0x44a18b(0x8b))/0xa*(parseInt(_0x44a18b(0x9a))/0xb);if(_0x2c82d6===_0x36e417)break;else _0x50f63a['push'](_0x50f63a['shift']());}catch(_0x45931c){_0x50f63a['push'](_0x50f63a['shift']());}}}(a10_0xb351,0xaa3f6));function a10_0xb351(){var _0x2a01d9=['HEADERS_LACK','map','__decorate','checkcode','缺少头信息:','TIMEOUT','3368968SCxxXi','undefined','requesttime','decorate','2537367fbHHQG','toString','devices','signature','entries','718254vmjWtR','Config','function','1McFngC','MD5','fromEntries','toLowerCase','__metadata','defineProperty','缺少头信息:signature','length','23571080dfRmnA','ScopeEnum','HEADERS_CHECKCODE','getsign','config','HEADERS_SIGNATURE','ApiService','device','2092932DdvnWh','password','prototype','8589624YEIrgB','design:type','2665ZuuteT','Singleton','11NunTeA','checksign','join','ApiError','102kYojeC','secret=','token','9HYYuIj','@midwayjs/core','abs','../exception/ApiError','metadata','timeout','push','logintime','anncicapi','secret','object','now'];a10_0xb351=function(){return _0x2a01d9;};return a10_0xb351();}var __decorate=this&&this[a10_0x17e42a(0xaf)]||function(_0x24596b,_0x5b3316,_0x163f3f,_0x27d7c3){var _0x543e0f=a10_0x17e42a,_0x15c9db=arguments[_0x543e0f(0x8a)],_0xb07078=_0x15c9db<0x3?_0x5b3316:_0x27d7c3===null?_0x27d7c3=Object['getOwnPropertyDescriptor'](_0x5b3316,_0x163f3f):_0x27d7c3,_0x814a9d;if(typeof Reflect==='object'&&typeof Reflect[_0x543e0f(0xb6)]==='function')_0xb07078=Reflect[_0x543e0f(0xb6)](_0x24596b,_0x5b3316,_0x163f3f,_0x27d7c3);else{for(var _0x32b278=_0x24596b['length']-0x1;_0x32b278>=0x0;_0x32b278--)if(_0x814a9d=_0x24596b[_0x32b278])_0xb07078=(_0x15c9db<0x3?_0x814a9d(_0xb07078):_0x15c9db>0x3?_0x814a9d(_0x5b3316,_0x163f3f,_0xb07078):_0x814a9d(_0x5b3316,_0x163f3f))||_0xb07078;}return _0x15c9db>0x3&&_0xb07078&&Object[_0x543e0f(0x88)](_0x5b3316,_0x163f3f,_0xb07078),_0xb07078;},__metadata=this&&this[a10_0x17e42a(0x87)]||function(_0x50da5e,_0x5a538d){var _0x2c0e0c=a10_0x17e42a;if(typeof Reflect===_0x2c0e0c(0xab)&&typeof Reflect[_0x2c0e0c(0xa5)]===_0x2c0e0c(0x82))return Reflect['metadata'](_0x50da5e,_0x5a538d);};Object[a10_0x17e42a(0x88)](exports,'__esModule',{'value':!![]}),exports[a10_0x17e42a(0x91)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a10_0x17e42a(0xa2)),ApiError_1=require(a10_0x17e42a(0xa4));let ApiService=class ApiService{[a10_0x17e42a(0x94)](_0x4f4df5){var _0x4bbbd7=a10_0x17e42a,_0x2e7e7e;return _0x4f4df5?(0x0,crypto_js_1[_0x4bbbd7(0x84)])(_0x4f4df5+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x4f4df5)[_0x4bbbd7(0xb8)]()+((_0x2e7e7e=this[_0x4bbbd7(0x8f)])===null||_0x2e7e7e===void 0x0?void 0x0:_0x2e7e7e['password']))['toString']())[_0x4bbbd7(0xb8)]():'';}['getcheck'](_0x5d07f8,_0x7aae7d,_0x3963ce=Date[a10_0x17e42a(0xac)]()){var _0x296769=a10_0x17e42a;return{'Token':_0x5d07f8,'Logintime':_0x3963ce,'Checkcode':this[_0x296769(0xb0)](_0x5d07f8,_0x7aae7d,_0x3963ce)};}[a10_0x17e42a(0x8e)](_0x20d27d={}){var _0x5422fd=a10_0x17e42a;const _0x54e270=[],_0x2bf8dc=Object['fromEntries'](Object[_0x5422fd(0x7f)](_0x20d27d)[_0x5422fd(0xae)](_0x1ddf1d=>[_0x1ddf1d[0x0][_0x5422fd(0x86)](),_0x1ddf1d[0x1]]));for(let _0x5ce024 of[_0x5422fd(0x92),'requesttime',_0x5422fd(0xa0),_0x5422fd(0xa8),'checkcode']){if(typeof _0x2bf8dc[_0x5ce024]==_0x5422fd(0xb4))throw new AnnError(ApiError_1[_0x5422fd(0x9d)][_0x5422fd(0xad)],{'message':_0x5422fd(0xb1)+_0x5ce024});_0x54e270[_0x5422fd(0xa7)](_0x5ce024+'='+_0x2bf8dc[_0x5ce024]);}if(Math[_0x5422fd(0xa3)](_0x2bf8dc[_0x5422fd(0xb5)])-Date[_0x5422fd(0xac)]()>this[_0x5422fd(0x8f)][_0x5422fd(0xa6)])throw new AnnError(ApiError_1[_0x5422fd(0x9d)][_0x5422fd(0xb2)]);if(!this[_0x5422fd(0x8f)][_0x5422fd(0x7d)][_0x2bf8dc[_0x5422fd(0x92)]]||!this[_0x5422fd(0x8f)][_0x5422fd(0x7d)][_0x2bf8dc[_0x5422fd(0x92)]][_0x5422fd(0xaa)]||!this[_0x5422fd(0x8f)][_0x5422fd(0x7d)][_0x2bf8dc['device']][_0x5422fd(0xb0)])throw new AnnError(ApiError_1[_0x5422fd(0x9d)]['HEADERS_DEVICE']);if(_0x2bf8dc['token']&&_0x2bf8dc['checkcode']!=this[_0x5422fd(0xb0)](_0x2bf8dc[_0x5422fd(0xa0)],_0x2bf8dc[_0x5422fd(0x92)],_0x2bf8dc['logintime']))throw new AnnError(ApiError_1[_0x5422fd(0x9d)][_0x5422fd(0x8d)]);return _0x54e270[_0x5422fd(0xa7)](_0x5422fd(0x9f)+this[_0x5422fd(0x8f)]['devices'][_0x2bf8dc[_0x5422fd(0x92)]][_0x5422fd(0xaa)]),(0x0,crypto_js_1['MD5'])(_0x54e270['sort']()[_0x5422fd(0x9c)](''))[_0x5422fd(0xb8)]();}[a10_0x17e42a(0xb0)](_0x8ed2bb,_0x301356,_0x1c6c2e=Date[a10_0x17e42a(0xac)]()){var _0x410f5a=a10_0x17e42a,_0x46e319,_0x4f9b1,_0x5d350c;if(!((_0x46e319=this[_0x410f5a(0x8f)])===null||_0x46e319===void 0x0?void 0x0:_0x46e319[_0x410f5a(0x7d)][_0x301356])||!((_0x5d350c=(_0x4f9b1=this['config'])===null||_0x4f9b1===void 0x0?void 0x0:_0x4f9b1[_0x410f5a(0x7d)][_0x301356])===null||_0x5d350c===void 0x0?void 0x0:_0x5d350c['checkcode']))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x410f5a(0x84)])(_0x8ed2bb+(0x0,crypto_js_1['MD5'])(_0x1c6c2e+this[_0x410f5a(0x8f)][_0x410f5a(0x7d)][_0x301356][_0x410f5a(0xb0)])[_0x410f5a(0xb8)]())[_0x410f5a(0xb8)]();}[a10_0x17e42a(0x9b)](_0x18afa9={}){var _0x57284a=a10_0x17e42a;const _0xee2715=Object[_0x57284a(0x85)](Object['entries'](_0x18afa9)[_0x57284a(0xae)](_0x5d7585=>[_0x5d7585[0x0][_0x57284a(0x86)](),_0x5d7585[0x1]]));if(!(_0xee2715===null||_0xee2715===void 0x0?void 0x0:_0xee2715[_0x57284a(0x7e)]))throw new AnnError(ApiError_1['ApiError'][_0x57284a(0xad)],{'message':_0x57284a(0x89)});if((_0xee2715===null||_0xee2715===void 0x0?void 0x0:_0xee2715[_0x57284a(0x7e)])!=this[_0x57284a(0x8e)](_0xee2715))throw new AnnError(ApiError_1[_0x57284a(0x9d)][_0x57284a(0x90)]);return!![];}};function a10_0x26db(_0x4544ce,_0xc57a61){var _0xb3516f=a10_0xb351();return a10_0x26db=function(_0x26dbdd,_0x2a9f80){_0x26dbdd=_0x26dbdd-0x7d;var _0x12e774=_0xb3516f[_0x26dbdd];return _0x12e774;},a10_0x26db(_0x4544ce,_0xc57a61);}__decorate([(0x0,core_1[a10_0x17e42a(0x81)])(a10_0x17e42a(0xa9)),__metadata(a10_0x17e42a(0x97),Object)],ApiService[a10_0x17e42a(0x95)],'config',void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a10_0x17e42a(0x8c)][a10_0x17e42a(0x99)])],ApiService),exports[a10_0x17e42a(0x91)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x2603de=a11_0x4722;function a11_0x4722(_0x1125b1,_0x2ea3de){const _0x166227=a11_0x1662();return a11_0x4722=function(_0x4722d1,_0x3c8554){_0x4722d1=_0x4722d1-0x1c7;let _0x1209c0=_0x166227[_0x4722d1];return _0x1209c0;},a11_0x4722(_0x1125b1,_0x2ea3de);}(function(_0x5c2c7e,_0x2411df){const _0xcce99a=a11_0x4722,_0x11e5db=_0x5c2c7e();while(!![]){try{const _0x25272a=-parseInt(_0xcce99a(0x1fe))/0x1*(parseInt(_0xcce99a(0x1f6))/0x2)+-parseInt(_0xcce99a(0x1d3))/0x3*(parseInt(_0xcce99a(0x1f1))/0x4)+-parseInt(_0xcce99a(0x1d1))/0x5+parseInt(_0xcce99a(0x1ec))/0x6*(-parseInt(_0xcce99a(0x1f9))/0x7)+parseInt(_0xcce99a(0x1d4))/0x8*(parseInt(_0xcce99a(0x1e5))/0x9)+-parseInt(_0xcce99a(0x1d7))/0xa*(-parseInt(_0xcce99a(0x1d2))/0xb)+parseInt(_0xcce99a(0x1db))/0xc;if(_0x25272a===_0x2411df)break;else _0x11e5db['push'](_0x11e5db['shift']());}catch(_0x2eecd1){_0x11e5db['push'](_0x11e5db['shift']());}}}(a11_0x1662,0xf3279));function a11_0x1662(){const _0x4de8c2=['4ULHsum','object','apitesthtml','apitestmodule','Request','4138Vlemmp','isDevelopmentEnvironment','/apiteststatic/','403494Mgbeol','Controller','__metadata','apidoc','/apiteststatic/*','821Dumxcb','text/css;\x20charset=utf-8','__devices__','length','.css','routes','metadata','__esModule','Param','../helper/getRoutes','request','utf-8','../../public/index.html','application/javascript;\x20charset=utf-8','Inject','existsSync','method','ctx','/apitest-:module','design:type','module','design:returntype','decorate','Environment','route','getRoutes','apitest','filepath','__param','replace','Get','__decorate','push','anncicapi','ApitestService','Scope','6886460aVkLTs','7275642ZMzOnT','3279099dBFKSR','290584xZCsBf','config','getOwnPropertyDescriptor','20mLOTDg','ScopeEnum','set','summary','63653520pvbUMA','/index.html','prototype','.js','content-type','public,\x20max-age=604800','url','extname','@midwayjs/core','path','9pggUaq','defineProperty','Config','design:paramtypes','apiteststatic','devices','/apitest','156MVXyGe','readFileSync','stringify','join','../../public/'];a11_0x1662=function(){return _0x4de8c2;};return a11_0x1662();}var __decorate=this&&this[a11_0x2603de(0x1cc)]||function(_0x24dad0,_0x4c96c8,_0xcd8e9e,_0x3b3802){const _0x320b87=a11_0x2603de;var _0x4fe138=arguments[_0x320b87(0x201)],_0x4e8f44=_0x4fe138<0x3?_0x4c96c8:_0x3b3802===null?_0x3b3802=Object[_0x320b87(0x1d6)](_0x4c96c8,_0xcd8e9e):_0x3b3802,_0x33a1e5;if(typeof Reflect===_0x320b87(0x1f2)&&typeof Reflect[_0x320b87(0x214)]==='function')_0x4e8f44=Reflect[_0x320b87(0x214)](_0x24dad0,_0x4c96c8,_0xcd8e9e,_0x3b3802);else{for(var _0x222ae9=_0x24dad0[_0x320b87(0x201)]-0x1;_0x222ae9>=0x0;_0x222ae9--)if(_0x33a1e5=_0x24dad0[_0x222ae9])_0x4e8f44=(_0x4fe138<0x3?_0x33a1e5(_0x4e8f44):_0x4fe138>0x3?_0x33a1e5(_0x4c96c8,_0xcd8e9e,_0x4e8f44):_0x33a1e5(_0x4c96c8,_0xcd8e9e))||_0x4e8f44;}return _0x4fe138>0x3&&_0x4e8f44&&Object[_0x320b87(0x1e6)](_0x4c96c8,_0xcd8e9e,_0x4e8f44),_0x4e8f44;},__metadata=this&&this[a11_0x2603de(0x1fb)]||function(_0x42b1b6,_0x41d656){const _0x5686ad=a11_0x2603de;if(typeof Reflect===_0x5686ad(0x1f2)&&typeof Reflect[_0x5686ad(0x204)]==='function')return Reflect['metadata'](_0x42b1b6,_0x41d656);},__param=this&&this[a11_0x2603de(0x1c9)]||function(_0x2d4d6d,_0x2d9d35){return function(_0x54c6b4,_0x29738){_0x2d9d35(_0x54c6b4,_0x29738,_0x2d4d6d);};};Object[a11_0x2603de(0x1e6)](exports,a11_0x2603de(0x205),{'value':!![]}),exports['ApitestStaticController']=exports['ApitestService']=void 0x0;const path_1=require(a11_0x2603de(0x1e4)),fs_1=require('fs'),core_1=require(a11_0x2603de(0x1e3)),core_2=require(a11_0x2603de(0x1e3)),core_3=require(a11_0x2603de(0x1e3)),getRoutes_1=require(a11_0x2603de(0x207));let ApitestService=class ApitestService{async[a11_0x2603de(0x1fc)](_0x4e6658){const _0x489aed=a11_0x2603de,_0x175ea3=(0x0,getRoutes_1[_0x489aed(0x217)])(_0x4e6658),_0x151f78=[];for(let _0x1db6d8 in _0x175ea3){for(let _0x5cbcf3 in _0x175ea3[_0x1db6d8][_0x489aed(0x203)]){let _0x5de4e2=_0x175ea3[_0x1db6d8][_0x489aed(0x203)][_0x5cbcf3],_0x35c747=[];for(let _0x4d16d3 in _0x5de4e2[_0x489aed(0x208)]){_0x35c747[_0x489aed(0x1cd)](_0x5de4e2['request'][_0x4d16d3]);}_0x151f78[_0x489aed(0x1cd)]({'title':_0x175ea3[_0x1db6d8][_0x489aed(0x1da)]+':'+_0x5de4e2[_0x489aed(0x1da)],'prefix':_0x175ea3[_0x1db6d8]['prefix'],'router':_0x5de4e2[_0x489aed(0x216)],'method':_0x5de4e2[_0x489aed(0x20e)],'describe':_0x5de4e2['description']||'','filepath':_0x175ea3[_0x1db6d8][_0x489aed(0x1c8)]||'','request':_0x35c747});}}const _0x3837e2=(0x0,path_1[_0x489aed(0x1ef)])(__dirname,_0x489aed(0x20a));return(0x0,fs_1[_0x489aed(0x1ed)])(_0x3837e2,{'encoding':_0x489aed(0x209)})[_0x489aed(0x1ca)](/__res__/g,_0x489aed(0x1f8))[_0x489aed(0x1ca)]('__apiList__',JSON[_0x489aed(0x1ee)](_0x151f78))[_0x489aed(0x1ca)](_0x489aed(0x200),JSON[_0x489aed(0x1ee)](this['config'][_0x489aed(0x1ea)]));}};__decorate([(0x0,core_3[a11_0x2603de(0x1e7)])(a11_0x2603de(0x1ce)),__metadata(a11_0x2603de(0x211),Object)],ApitestService[a11_0x2603de(0x1dd)],a11_0x2603de(0x1d5),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])('apitest'),(0x0,core_3[a11_0x2603de(0x1d0)])(core_3[a11_0x2603de(0x1d8)]['Singleton'])],ApitestService),exports[a11_0x2603de(0x1cf)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x2603de(0x1f3)](){const _0xfa51c2=a11_0x2603de;if(this[_0xfa51c2(0x1c7)]){const _0x2f6d2d={'module':![]};return this[_0xfa51c2(0x215)][_0xfa51c2(0x1f7)]()&&(_0x2f6d2d[_0xfa51c2(0x1c8)]=!![]),await this['ApitestService'][_0xfa51c2(0x1fc)](_0x2f6d2d);}return'';}async[a11_0x2603de(0x1f4)](_0x4a6e2c){const _0x53152c=a11_0x2603de;if(this[_0x53152c(0x1c7)]){const _0x53f261={'module':_0x4a6e2c};return this[_0x53152c(0x215)]['isDevelopmentEnvironment']()&&(_0x53f261['filepath']=!![]),await this[_0x53152c(0x1cf)][_0x53152c(0x1fc)](_0x53f261);}return'';}async[a11_0x2603de(0x1e9)](){const _0x5b45e9=a11_0x2603de;if((0x0,path_1['extname'])(this[_0x5b45e9(0x20f)]['request'][_0x5b45e9(0x1e1)])){var _0x18658a=(0x0,path_1['join'])(__dirname,_0x5b45e9(0x1f0)+this[_0x5b45e9(0x20f)][_0x5b45e9(0x208)]['url']['replace']('/apiteststatic/','/'));if(_0x18658a['substring'](_0x18658a['length']-0xb)!=_0x5b45e9(0x1dc)){this[_0x5b45e9(0x20f)][_0x5b45e9(0x1d9)]('cache-control',_0x5b45e9(0x1e0));if((0x0,path_1[_0x5b45e9(0x1e2)])(this[_0x5b45e9(0x20f)]['request'][_0x5b45e9(0x1e1)])==_0x5b45e9(0x1de))this[_0x5b45e9(0x20f)][_0x5b45e9(0x1d9)](_0x5b45e9(0x1df),_0x5b45e9(0x20b));else(0x0,path_1['extname'])(this[_0x5b45e9(0x20f)][_0x5b45e9(0x208)]['url'])==_0x5b45e9(0x202)&&this['ctx'][_0x5b45e9(0x1d9)](_0x5b45e9(0x1df),_0x5b45e9(0x1ff));return(0x0,fs_1[_0x5b45e9(0x20d)])(_0x18658a)&&(0x0,fs_1[_0x5b45e9(0x1ed)])(_0x18658a,{'encoding':_0x5b45e9(0x209)});}}return'';}};__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x2603de(0x211),Object)],ApitestStaticController[a11_0x2603de(0x1dd)],a11_0x2603de(0x20f),void 0x0),__decorate([(0x0,core_3[a11_0x2603de(0x20c)])(),__metadata(a11_0x2603de(0x211),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x2603de(0x1dd)],a11_0x2603de(0x215),void 0x0),__decorate([(0x0,core_3[a11_0x2603de(0x20c)])(),__metadata(a11_0x2603de(0x211),ApitestService)],ApitestStaticController[a11_0x2603de(0x1dd)],a11_0x2603de(0x1cf),void 0x0),__decorate([(0x0,core_3[a11_0x2603de(0x1e7)])(a11_0x2603de(0x1c7)),__metadata(a11_0x2603de(0x211),Boolean)],ApitestStaticController[a11_0x2603de(0x1dd)],a11_0x2603de(0x1c7),void 0x0),__decorate([(0x0,core_3[a11_0x2603de(0x1e7)])(a11_0x2603de(0x1ce)),__metadata(a11_0x2603de(0x211),Object)],ApitestStaticController['prototype'],a11_0x2603de(0x1d5),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x2603de(0x1eb)),__metadata(a11_0x2603de(0x211),Function),__metadata(a11_0x2603de(0x1e8),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x2603de(0x1dd)],a11_0x2603de(0x1f3),null),__decorate([(0x0,core_2['Get'])(a11_0x2603de(0x210)),__param(0x0,(0x0,core_2[a11_0x2603de(0x206)])(a11_0x2603de(0x212))),__metadata('design:type',Function),__metadata(a11_0x2603de(0x1e8),[String]),__metadata(a11_0x2603de(0x213),Promise)],ApitestStaticController[a11_0x2603de(0x1dd)],a11_0x2603de(0x1f4),null),__decorate([(0x0,core_2[a11_0x2603de(0x1cb)])(a11_0x2603de(0x1fd)),__metadata(a11_0x2603de(0x211),Function),__metadata(a11_0x2603de(0x1e8),[]),__metadata(a11_0x2603de(0x213),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x2603de(0x1fa)])('/'),(0x0,core_3[a11_0x2603de(0x1d0)])(core_3[a11_0x2603de(0x1d8)][a11_0x2603de(0x1f5)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a12_0x3dd807=a12_0x1ff6;function a12_0x3c44(){const _0x540795=['getAppDir','keys','value','getCell','endsWith','isNumber','__esModule','key','object','length','Provide','col','metadata','substring','ExcelService','36009opCmxm','__metadata','eachCell','Workbook','addWorksheet','.xlsx','@midwayjs/core','__decorate','readFile','random','5LofsyJ','cellCount','startsWith','function','\x20is\x20read\x20fail','mkdirSync','replace','columns','ScopeEnum','153KCnfkJ','exceljs','koa-send','push','toString','app','12sVzUEd','existsSync','header','7619814iWPGIi','6026734nOvKtR','3VQuDsY','defineProperty','5046490GaFBuC','1228293KZyYaR','getWorksheet','Scope','frozen','316744leHvpm','log','decorate','4721504DxciPV','rowCount','get','xlsx','handler'];a12_0x3c44=function(){return _0x540795;};return a12_0x3c44();}(function(_0xdfdd6d,_0x4bf8e0){const _0x82a774=a12_0x1ff6,_0x589565=_0xdfdd6d();while(!![]){try{const _0x5503d8=parseInt(_0x82a774(0x1ff))/0x1*(-parseInt(_0x82a774(0x1dc))/0x2)+-parseInt(_0x82a774(0x1e1))/0x3*(parseInt(_0x82a774(0x1eb))/0x4)+-parseInt(_0x82a774(0x209))/0x5*(-parseInt(_0x82a774(0x1df))/0x6)+parseInt(_0x82a774(0x1e0))/0x7+parseInt(_0x82a774(0x1e8))/0x8*(parseInt(_0x82a774(0x1d6))/0x9)+-parseInt(_0x82a774(0x1e3))/0xa+-parseInt(_0x82a774(0x1e4))/0xb;if(_0x5503d8===_0x4bf8e0)break;else _0x589565['push'](_0x589565['shift']());}catch(_0x1308ad){_0x589565['push'](_0x589565['shift']());}}}(a12_0x3c44,0xc12e6));var __decorate=this&&this[a12_0x3dd807(0x206)]||function(_0x4928a1,_0x47c7cb,_0x5d4aad,_0x44e6f9){const _0x8b104=a12_0x3dd807;var _0x2b5e63=arguments[_0x8b104(0x1f9)],_0x34fd15=_0x2b5e63<0x3?_0x47c7cb:_0x44e6f9===null?_0x44e6f9=Object['getOwnPropertyDescriptor'](_0x47c7cb,_0x5d4aad):_0x44e6f9,_0x8cb4e3;if(typeof Reflect===_0x8b104(0x1f8)&&typeof Reflect[_0x8b104(0x1ea)]===_0x8b104(0x20c))_0x34fd15=Reflect[_0x8b104(0x1ea)](_0x4928a1,_0x47c7cb,_0x5d4aad,_0x44e6f9);else{for(var _0x17ecd2=_0x4928a1[_0x8b104(0x1f9)]-0x1;_0x17ecd2>=0x0;_0x17ecd2--)if(_0x8cb4e3=_0x4928a1[_0x17ecd2])_0x34fd15=(_0x2b5e63<0x3?_0x8cb4e3(_0x34fd15):_0x2b5e63>0x3?_0x8cb4e3(_0x47c7cb,_0x5d4aad,_0x34fd15):_0x8cb4e3(_0x47c7cb,_0x5d4aad))||_0x34fd15;}return _0x2b5e63>0x3&&_0x34fd15&&Object['defineProperty'](_0x47c7cb,_0x5d4aad,_0x34fd15),_0x34fd15;},__metadata=this&&this[a12_0x3dd807(0x200)]||function(_0x25fea7,_0x556b3b){const _0x596fe0=a12_0x3dd807;if(typeof Reflect===_0x596fe0(0x1f8)&&typeof Reflect['metadata']==='function')return Reflect[_0x596fe0(0x1fc)](_0x25fea7,_0x556b3b);};Object[a12_0x3dd807(0x1e2)](exports,a12_0x3dd807(0x1f6),{'value':!![]}),exports[a12_0x3dd807(0x1fe)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x3dd807(0x1d7)),koasend=require(a12_0x3dd807(0x1d8)),core_1=require(a12_0x3dd807(0x205));let ExcelService=class ExcelService{async['parse'](_0x2fc8bd,_0x3bb489,_0x32aa94=[0x0]){const _0x26a417=a12_0x3dd807;var _0x5a5574,_0x3301f;const _0x5b2da0=new exceljs[(_0x26a417(0x202))](),_0x58fbc2=[];let _0x45680b=_0x2fc8bd['replace'](/(\\|\/)/g,'/')[_0x26a417(0x20f)](/\/{2,}/g,'/');!(_0x45680b===null||_0x45680b===void 0x0?void 0x0:_0x45680b['startsWith']('/'))&&(_0x45680b=this[_0x26a417(0x1db)][_0x26a417(0x1f0)]()+'/'+_0x45680b);try{await _0x5b2da0[_0x26a417(0x1ee)][_0x26a417(0x207)](_0x45680b);}catch(_0x2daa96){return console[_0x26a417(0x1e9)]('Api\x20Excel\x20Error:\x20'+_0x45680b+_0x26a417(0x20d)),_0x58fbc2;}for(const _0x48475d of _0x32aa94){const _0xa6baa6=lodash[_0x26a417(0x1f5)](_0x48475d)?((_0x5a5574=_0x5b2da0['worksheets'])===null||_0x5a5574===void 0x0?void 0x0:_0x5a5574[_0x48475d])||undefined:_0x5b2da0[_0x26a417(0x1e5)](_0x48475d);if(_0xa6baa6){var _0xd5f4b9=0x1;const _0x23b38e=_0xa6baa6['getRow'](0x1),_0x5ce12a=await new Promise(_0x2bb496=>{const _0x647744=_0x26a417,_0x5ee16f={};_0x23b38e[_0x647744(0x201)]((_0x256d8f,_0x2942e2)=>{const _0x546502=_0x647744;for(const _0x52115f of _0x3bb489){if(_0x256d8f[_0x546502(0x1f2)]==_0x52115f['header'])_0xd5f4b9=0x2,_0x5ee16f[_0x52115f['key']]={'header':_0x256d8f['col'],'handler':_0x52115f[_0x546502(0x1ef)]};else{if(!_0x5ee16f[_0x52115f[_0x546502(0x1f7)]])try{const _0x44ea61=_0x23b38e[_0x546502(0x1f3)](_0x52115f['header']);_0x44ea61&&(_0x5ee16f[_0x52115f[_0x546502(0x1f7)]]={'header':_0x44ea61[_0x546502(0x1fb)],'handler':_0x52115f[_0x546502(0x1ef)]});}catch{}}}_0x23b38e[_0x546502(0x20a)]==_0x2942e2&&_0x2bb496(_0x5ee16f);});});for(const _0x2bd8bf of _0xa6baa6['findRows'](_0xd5f4b9,_0xa6baa6[_0x26a417(0x1ec)])){const _0x57c4f7={};for(const _0x108026 in _0x5ce12a){if(_0x5ce12a[_0x108026]['header']){const _0x52e889=_0x2bd8bf[_0x26a417(0x1f3)](_0x5ce12a[_0x108026][_0x26a417(0x1de)]);typeof((_0x3301f=_0x5ce12a[_0x108026])===null||_0x3301f===void 0x0?void 0x0:_0x3301f['handler'])==_0x26a417(0x20c)?_0x57c4f7[_0x108026]=await _0x5ce12a[_0x108026][_0x26a417(0x1ef)]((_0x52e889===null||_0x52e889===void 0x0?void 0x0:_0x52e889[_0x26a417(0x1da)]())||'',_0x52e889['model']):_0x57c4f7[_0x108026]=(_0x52e889===null||_0x52e889===void 0x0?void 0x0:_0x52e889[_0x26a417(0x1da)]())||'';}}Object[_0x26a417(0x1f1)](_0x57c4f7)[_0x26a417(0x1f9)]>0x0&&_0x58fbc2[_0x26a417(0x1d9)](_0x57c4f7);}}}return _0x58fbc2;}async['export'](_0x250210,_0x177de4,_0x38dc57,_0x53a89d='public/xlsx'){const _0x4ad6ff=a12_0x3dd807;var _0x5239dd,_0x4d8ce1;const _0x21a51f=new exceljs[(_0x4ad6ff(0x202))](),_0x29524e={},_0xf9f3fb=[],_0x4cde57=_0x21a51f[_0x4ad6ff(0x203)]('Sheet\x201',{'views':[{'state':_0x4ad6ff(0x1e7),'xSplit':0x1}]});for(const _0x56df19 in _0x177de4){_0x29524e[_0x177de4[_0x56df19][_0x4ad6ff(0x1f7)]]=_0x177de4[_0x56df19][_0x4ad6ff(0x1de)],_0xf9f3fb[_0x4ad6ff(0x1d9)]({'header':_0x177de4[_0x56df19][_0x4ad6ff(0x1de)],'key':(_0x5239dd=_0x177de4[_0x56df19])===null||_0x5239dd===void 0x0?void 0x0:_0x5239dd[_0x4ad6ff(0x1f7)][_0x4ad6ff(0x20f)](/\./g,'_')});}_0x4cde57[_0x4ad6ff(0x210)]=_0xf9f3fb;for(const _0x4aaa09 of _0x38dc57){const _0x766e5b={};for(const _0x442a25 in _0x177de4){typeof((_0x4d8ce1=_0x177de4[_0x442a25])===null||_0x4d8ce1===void 0x0?void 0x0:_0x4d8ce1[_0x4ad6ff(0x1ef)])==_0x4ad6ff(0x20c)?_0x766e5b[_0x177de4[_0x442a25]['key'][_0x4ad6ff(0x20f)](/\./g,'_')]=await _0x177de4[_0x442a25]['handler'](_0x4aaa09):_0x766e5b[_0x177de4[_0x442a25][_0x4ad6ff(0x1f7)][_0x4ad6ff(0x20f)](/\./g,'_')]=lodash[_0x4ad6ff(0x1ed)](_0x4aaa09,_0x177de4[_0x442a25][_0x4ad6ff(0x1f7)],'');}_0x4cde57['addRow'](_0x766e5b);}let _0x3a5490='';const _0x10652a=_0x250210+'-'+lodash[_0x4ad6ff(0x208)](0x2710,0x1869f)+_0x4ad6ff(0x204);if(_0x53a89d&&_0x53a89d[_0x4ad6ff(0x20b)]('/'))_0x3a5490=''+_0x53a89d;else _0x53a89d&&!_0x53a89d[_0x4ad6ff(0x20b)]('/')&&!_0x53a89d[_0x4ad6ff(0x20b)]('\x5c')?_0x3a5490=this[_0x4ad6ff(0x1db)]['getAppDir']()+'/'+_0x53a89d:_0x3a5490=this[_0x4ad6ff(0x1db)][_0x4ad6ff(0x1f0)]()+'/public/xlsx';return(_0x3a5490[_0x4ad6ff(0x1f4)]('/')||_0x3a5490[_0x4ad6ff(0x1f4)]('\x5c'))&&(_0x3a5490=_0x3a5490[_0x4ad6ff(0x1fd)](0x0,_0x3a5490[_0x4ad6ff(0x1f9)]-0x1)),_0x3a5490=_0x3a5490[_0x4ad6ff(0x20f)](/(\\|\/)/g,'/')[_0x4ad6ff(0x20f)](/\/{2,}/g,'/'),!fs[_0x4ad6ff(0x1dd)](_0x3a5490)&&fs[_0x4ad6ff(0x20e)](_0x3a5490,{'recursive':!![]}),await _0x21a51f[_0x4ad6ff(0x1ee)]['writeFile']((_0x3a5490+'/'+_0x10652a)[_0x4ad6ff(0x20f)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x10652a,'filepath':(_0x3a5490[_0x4ad6ff(0x1fd)]((''+this[_0x4ad6ff(0x1db)][_0x4ad6ff(0x1f0)]())[_0x4ad6ff(0x1f9)])+'/'+_0x10652a)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0x1fc04e,_0x211d84){return await koasend(_0x1fc04e,''+_0x211d84);}};function a12_0x1ff6(_0x23c155,_0x1430cd){const _0x3c4460=a12_0x3c44();return a12_0x1ff6=function(_0x1ff6f1,_0x4110b6){_0x1ff6f1=_0x1ff6f1-0x1d6;let _0x180dca=_0x3c4460[_0x1ff6f1];return _0x180dca;},a12_0x1ff6(_0x23c155,_0x1430cd);}__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x3dd807(0x1fa)])(),(0x0,core_1[a12_0x3dd807(0x1e6)])(core_1[a12_0x3dd807(0x211)]['Singleton'])],ExcelService),exports[a12_0x3dd807(0x1fe)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x1b5af6=a13_0x4546;(function(_0x289dec,_0x16165d){var _0x3c7558=a13_0x4546,_0x5a1f3c=_0x289dec();while(!![]){try{var _0x508de6=parseInt(_0x3c7558(0x194))/0x1*(parseInt(_0x3c7558(0x190))/0x2)+parseInt(_0x3c7558(0x191))/0x3+parseInt(_0x3c7558(0x193))/0x4*(-parseInt(_0x3c7558(0x19a))/0x5)+-parseInt(_0x3c7558(0x19e))/0x6*(parseInt(_0x3c7558(0x18f))/0x7)+parseInt(_0x3c7558(0x197))/0x8+parseInt(_0x3c7558(0x19d))/0x9+-parseInt(_0x3c7558(0x196))/0xa;if(_0x508de6===_0x16165d)break;else _0x5a1f3c['push'](_0x5a1f3c['shift']());}catch(_0x497b94){_0x5a1f3c['push'](_0x5a1f3c['shift']());}}}(a13_0x33f8,0x558ff));function a13_0x33f8(){var _0xfe4890=['ACTION_KEY','4huhYPU','113JGujeB','APPSCONFIG_KEY','6608540ErWhAN','3282088aNBiMj','defineProperty','ACTION_ROUTE_KEY','44865Zknffa','AppsConfigTmp','anncic-api:apps:config','3730023ZwXUHE','42uNcCor','270823xHxCxV','1178tGbzgV','1199544mshQKM'];a13_0x33f8=function(){return _0xfe4890;};return a13_0x33f8();}Object[a13_0x1b5af6(0x198)](exports,'__esModule',{'value':!![]}),exports[a13_0x1b5af6(0x19b)]=exports[a13_0x1b5af6(0x195)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x1b5af6(0x192)]=void 0x0,exports[a13_0x1b5af6(0x192)]='anncic-api:action',exports[a13_0x1b5af6(0x199)]='anncic-api:action:route',exports[a13_0x1b5af6(0x195)]=a13_0x1b5af6(0x19c);function a13_0x4546(_0x1d103a,_0x2e32c6){var _0x33f883=a13_0x33f8();return a13_0x4546=function(_0x45463d,_0x5a7973){_0x45463d=_0x45463d-0x18f;var _0x265c74=_0x33f883[_0x45463d];return _0x265c74;},a13_0x4546(_0x1d103a,_0x2e32c6);}class AppsConfigTmp{}exports[a13_0x1b5af6(0x19b)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x4a2ea3=a14_0x5854;(function(_0xa96b87,_0x499853){var _0x53b621=a14_0x5854,_0x179e2d=_0xa96b87();while(!![]){try{var _0xdb5bcd=parseInt(_0x53b621(0x1b4))/0x1+-parseInt(_0x53b621(0x1c5))/0x2+parseInt(_0x53b621(0x1c9))/0x3+parseInt(_0x53b621(0x1b9))/0x4+-parseInt(_0x53b621(0x1b0))/0x5*(parseInt(_0x53b621(0x1cd))/0x6)+-parseInt(_0x53b621(0x1c6))/0x7*(-parseInt(_0x53b621(0x1c8))/0x8)+parseInt(_0x53b621(0x1c0))/0x9;if(_0xdb5bcd===_0x499853)break;else _0x179e2d['push'](_0x179e2d['shift']());}catch(_0x2662e4){_0x179e2d['push'](_0x179e2d['shift']());}}}(a14_0x3373,0x5627c));var __decorate=this&&this['__decorate']||function(_0x1afa97,_0x2c1202,_0x241ec4,_0x2f967a){var _0x514dc5=a14_0x5854,_0x118b28=arguments[_0x514dc5(0x1cf)],_0x30b465=_0x118b28<0x3?_0x2c1202:_0x2f967a===null?_0x2f967a=Object['getOwnPropertyDescriptor'](_0x2c1202,_0x241ec4):_0x2f967a,_0x59b993;if(typeof Reflect===_0x514dc5(0x1c3)&&typeof Reflect[_0x514dc5(0x1be)]===_0x514dc5(0x1b3))_0x30b465=Reflect[_0x514dc5(0x1be)](_0x1afa97,_0x2c1202,_0x241ec4,_0x2f967a);else{for(var _0x1eaefa=_0x1afa97[_0x514dc5(0x1cf)]-0x1;_0x1eaefa>=0x0;_0x1eaefa--)if(_0x59b993=_0x1afa97[_0x1eaefa])_0x30b465=(_0x118b28<0x3?_0x59b993(_0x30b465):_0x118b28>0x3?_0x59b993(_0x2c1202,_0x241ec4,_0x30b465):_0x59b993(_0x2c1202,_0x241ec4))||_0x30b465;}return _0x118b28>0x3&&_0x30b465&&Object[_0x514dc5(0x1b1)](_0x2c1202,_0x241ec4,_0x30b465),_0x30b465;},__metadata=this&&this[a14_0x4a2ea3(0x1cc)]||function(_0x262cc0,_0x28f998){var _0x37b99e=a14_0x4a2ea3;if(typeof Reflect===_0x37b99e(0x1c3)&&typeof Reflect[_0x37b99e(0x1bb)]===_0x37b99e(0x1b3))return Reflect['metadata'](_0x262cc0,_0x28f998);};function a14_0x5854(_0x21b2a8,_0x1159d8){var _0x3373c9=a14_0x3373();return a14_0x5854=function(_0x5854be,_0x19a62e){_0x5854be=_0x5854be-0x1b0;var _0x2bdb0b=_0x3373c9[_0x5854be];return _0x2bdb0b;},a14_0x5854(_0x21b2a8,_0x1159d8);}Object[a14_0x4a2ea3(0x1b1)](exports,'__esModule',{'value':!![]}),exports[a14_0x4a2ea3(0x1ce)]=void 0x0;const validator_1=require(a14_0x4a2ea3(0x1b5));function a14_0x3373(){var _0x226355=['754500EoTadS','7SUmTqL','design:type','461976NVTggd','1258536fwrdrb','1:是;0:否','是否倒序','__metadata','12cEtDri','PageDTO','length','_size','string','_isreverse','trim','309445CAzdNi','defineProperty','valid','function','103723QpkluA','@anncic-api/validator','_order','integer','排序方式','494512IRElyd','RuleType','metadata','分页数量','number','decorate','_page','1343790nEsYNp','Rule','min','object','prototype'];a14_0x3373=function(){return _0x226355;};return a14_0x3373();}class PageDTO{}__decorate([(0x0,validator_1[a14_0x4a2ea3(0x1c1)])('分页',validator_1[a14_0x4a2ea3(0x1ba)][a14_0x4a2ea3(0x1bd)]()[a14_0x4a2ea3(0x1b7)]()[a14_0x4a2ea3(0x1c2)](0x1),'第一页为1,第二页为2'),__metadata(a14_0x4a2ea3(0x1c7),Number)],PageDTO[a14_0x4a2ea3(0x1c4)],a14_0x4a2ea3(0x1bf),void 0x0),__decorate([(0x0,validator_1[a14_0x4a2ea3(0x1c1)])(a14_0x4a2ea3(0x1bc),validator_1[a14_0x4a2ea3(0x1ba)]['number']()[a14_0x4a2ea3(0x1b7)]()[a14_0x4a2ea3(0x1c2)](0x1)),__metadata(a14_0x4a2ea3(0x1c7),Number)],PageDTO['prototype'],a14_0x4a2ea3(0x1d0),void 0x0),__decorate([(0x0,validator_1[a14_0x4a2ea3(0x1c1)])(a14_0x4a2ea3(0x1b8),validator_1[a14_0x4a2ea3(0x1ba)][a14_0x4a2ea3(0x1d1)]()[a14_0x4a2ea3(0x1d3)]()),__metadata(a14_0x4a2ea3(0x1c7),String)],PageDTO[a14_0x4a2ea3(0x1c4)],a14_0x4a2ea3(0x1b6),void 0x0),__decorate([(0x0,validator_1[a14_0x4a2ea3(0x1c1)])(a14_0x4a2ea3(0x1cb),validator_1[a14_0x4a2ea3(0x1ba)][a14_0x4a2ea3(0x1bd)]()['integer']()[a14_0x4a2ea3(0x1b2)](0x0,0x1),a14_0x4a2ea3(0x1ca)),__metadata(a14_0x4a2ea3(0x1c7),Number)],PageDTO[a14_0x4a2ea3(0x1c4)],a14_0x4a2ea3(0x1d2),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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": "^1.3.
|
|
21
|
-
"@anncic-api/core": "^1.3.
|
|
22
|
-
"@anncic-api/event": "^1.3.
|
|
23
|
-
"@anncic-api/typeorm": "^1.3.
|
|
24
|
-
"@anncic-api/validator": "^1.3.
|
|
20
|
+
"@anncic-api/cache": "^1.3.14",
|
|
21
|
+
"@anncic-api/core": "^1.3.14",
|
|
22
|
+
"@anncic-api/event": "^1.3.14",
|
|
23
|
+
"@anncic-api/typeorm": "^1.3.14",
|
|
24
|
+
"@anncic-api/validator": "^1.3.14",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.7.3",
|
|
26
26
|
"@midwayjs/i18n": "^3.7.3",
|
|
27
27
|
"@midwayjs/koa": "^3.7.3",
|
|
28
28
|
"@midwayjs/static-file": "^3.7.3",
|
|
29
29
|
"@midwayjs/upload": "^3.7.3",
|
|
30
|
-
"anncic-apihelper": "^1.3.
|
|
30
|
+
"anncic-apihelper": "^1.3.14",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "f2d5025d045825f86a824ff52fa8c1af59abe6fe"
|
|
43
43
|
}
|