anncic-api 1.1.42 → 1.1.43
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';var
|
|
1
|
+
'use strict';var a0_0x32d872=a0_0x34a9;(function(_0x3732fe,_0x18e9b5){var _0xb9a007=a0_0x34a9,_0x26b5bf=_0x3732fe();while(!![]){try{var _0x1caa20=parseInt(_0xb9a007(0x88))/0x1*(parseInt(_0xb9a007(0x8a))/0x2)+-parseInt(_0xb9a007(0x85))/0x3+parseInt(_0xb9a007(0x93))/0x4+-parseInt(_0xb9a007(0x94))/0x5*(parseInt(_0xb9a007(0x84))/0x6)+parseInt(_0xb9a007(0x90))/0x7+-parseInt(_0xb9a007(0x91))/0x8+parseInt(_0xb9a007(0x95))/0x9*(parseInt(_0xb9a007(0x8f))/0xa);if(_0x1caa20===_0x18e9b5)break;else _0x26b5bf['push'](_0x26b5bf['shift']());}catch(_0x596b2c){_0x26b5bf['push'](_0x26b5bf['shift']());}}}(a0_0x39c1,0xa29c7));function a0_0x34a9(_0x1418ac,_0x49f58a){var _0x39c17b=a0_0x39c1();return a0_0x34a9=function(_0x34a917,_0x55efea){_0x34a917=_0x34a917-0x83;var _0x2a32ab=_0x39c17b[_0x34a917];return _0x2a32ab;},a0_0x34a9(_0x1418ac,_0x49f58a);}function a0_0x39c1(){var _0x47c234=['5315AgJPVa','1512dVQZHY','form','3108yIOEGn','1701354wrsxAG','dhauo1234420123gg3234901','xml','9drWgmX','20mb','9356ZmOWmg','name','defineProperty','default','__esModule','63110ITBnJG','4906468luJmel','2338440MqXpZF','appDir','1091352jRNnOM'];a0_0x39c1=function(){return _0x47c234;};return a0_0x39c1();}Object[a0_0x32d872(0x8c)](exports,a0_0x32d872(0x8e),{'value':!![]}),exports[a0_0x32d872(0x8d)]=_0x1d2d4b=>{var _0x43a9eb=a0_0x32d872;return{'apitest':!![],'keys':_0x1d2d4b[_0x43a9eb(0x8b)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x43a9eb(0x86)}}},'bodyParser':{'enableTypes':['json',_0x43a9eb(0x83),'text',_0x43a9eb(0x87)],'formLimit':'20mb','jsonLimit':_0x43a9eb(0x89),'textLimit':_0x43a9eb(0x89),'xmlLimit':_0x43a9eb(0x89)},'upload':{'tmpdir':_0x1d2d4b[_0x43a9eb(0x92)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x58a6(){var _0x9129c9=['defineProperty','default','1460140CTfpeh','348999vDLzsU','730278PHJyRW','2963358jIxesI','__esModule','374806HQCALg','96246PbmisW','90000FLRdxK','7rUxzBM','5UYhpbb'];a1_0x58a6=function(){return _0x9129c9;};return a1_0x58a6();}var a1_0x5f48fc=a1_0x3a18;(function(_0x5f555d,_0x2009e9){var _0x24cc8e=a1_0x3a18,_0x5b50fc=_0x5f555d();while(!![]){try{var _0x1f1bd6=-parseInt(_0x24cc8e(0x10c))/0x1+-parseInt(_0x24cc8e(0x10b))/0x2+-parseInt(_0x24cc8e(0x107))/0x3+-parseInt(_0x24cc8e(0x106))/0x4*(-parseInt(_0x24cc8e(0x10f))/0x5)+-parseInt(_0x24cc8e(0x108))/0x6*(parseInt(_0x24cc8e(0x10e))/0x7)+parseInt(_0x24cc8e(0x10d))/0x8+parseInt(_0x24cc8e(0x109))/0x9;if(_0x1f1bd6===_0x2009e9)break;else _0x5b50fc['push'](_0x5b50fc['shift']());}catch(_0x255fcd){_0x5b50fc['push'](_0x5b50fc['shift']());}}}(a1_0x58a6,0x2ce2c));function a1_0x3a18(_0x33afd2,_0x2f54fa){var _0x58a67d=a1_0x58a6();return a1_0x3a18=function(_0x3a18d7,_0x3837ea){_0x3a18d7=_0x3a18d7-0x105;var _0x10298d=_0x58a67d[_0x3a18d7];return _0x10298d;},a1_0x3a18(_0x33afd2,_0x2f54fa);}Object[a1_0x5f48fc(0x110)](exports,a1_0x5f48fc(0x10a),{'value':!![]}),exports[a1_0x5f48fc(0x105)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x43f3(){const _0xadb141=['265440EEredr','keys','body','dirs','Inject','isArray','isFunction','decorator','length','getConfiguration','apimit','defineProperty','anncic-api','onReady','design:type','Types','defineProperties','MidwayDecoratorService','@midwayjs/decorator','intercept','@anncic-api/event','MidwayApplicationManager','ApiService','filterConfig','headers','Anncic-api\x20static-file\x20:\x20mkdir\x20','@anncic-api/typeorm','616171tjGNQO','function','isNull','isClass','bodyXml','@midwayjs/cross-domain','getOwnPropertyDescriptor','3483964iGgQoI','getApplications','target','@midwayjs/task','handlerActionRoute','_matchedRoute','metadata','toLowerCase','object','environment','checkConfigKeys','HEADERS_SIGNATURE','handler','addObject','./config/config.default','request','CustomConfiguration','47572WQoXdb','args','96pXngvS','__esModule','dir','hanlderApplications','@midwayjs/core','decorate','upload','222eiGGMC','DEFAULT','Configuration','log','30HxwIPq','12xHuHWf','@anncic-api/cache','input','config','5779998HocrGD','./service/ApiService','496345rXzYua','29788wDcQMc','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','devices','isString','anncicapi','device','mkdirSync','existsSync','staticFile','registerMethodHandler','method','@midwayjs/i18n','tmpdir','query','./types/action','string','checksign','context','defaultsDeep','prototype'];a2_0x43f3=function(){return _0xadb141;};return a2_0x43f3();}const a2_0x4dbd26=a2_0x49a6;(function(_0x44bdbf,_0x382cab){const _0xb394bb=a2_0x49a6,_0x13caf6=_0x44bdbf();while(!![]){try{const _0xf0f275=-parseInt(_0xb394bb(0x20c))/0x1+-parseInt(_0xb394bb(0x224))/0x2+parseInt(_0xb394bb(0x1d1))/0x3*(parseInt(_0xb394bb(0x1dd))/0x4)+parseInt(_0xb394bb(0x1dc))/0x5*(-parseInt(_0xb394bb(0x1d6))/0x6)+parseInt(_0xb394bb(0x1f1))/0x7*(parseInt(_0xb394bb(0x226))/0x8)+-parseInt(_0xb394bb(0x1da))/0x9+-parseInt(_0xb394bb(0x1d5))/0xa*(-parseInt(_0xb394bb(0x213))/0xb);if(_0xf0f275===_0x382cab)break;else _0x13caf6['push'](_0x13caf6['shift']());}catch(_0x3624c7){_0x13caf6['push'](_0x13caf6['shift']());}}}(a2_0x43f3,0x741b5));function a2_0x49a6(_0x4c90cb,_0x182660){const _0x43f3a1=a2_0x43f3();return a2_0x49a6=function(_0x49a650,_0x28abc9){_0x49a650=_0x49a650-0x1d0;let _0x2a2c3f=_0x43f3a1[_0x49a650];return _0x2a2c3f;},a2_0x49a6(_0x4c90cb,_0x182660);}var __decorate=this&&this['__decorate']||function(_0x3f3e17,_0x1c98fd,_0x200f1b,_0x27ca3f){const _0x15df87=a2_0x49a6;var _0x1925aa=arguments['length'],_0xc814b1=_0x1925aa<0x3?_0x1c98fd:_0x27ca3f===null?_0x27ca3f=Object[_0x15df87(0x212)](_0x1c98fd,_0x200f1b):_0x27ca3f,_0x4d79c6;if(typeof Reflect===_0x15df87(0x21b)&&typeof Reflect[_0x15df87(0x22b)]===_0x15df87(0x20d))_0xc814b1=Reflect[_0x15df87(0x22b)](_0x3f3e17,_0x1c98fd,_0x200f1b,_0x27ca3f);else{for(var _0x32c087=_0x3f3e17[_0x15df87(0x1f9)]-0x1;_0x32c087>=0x0;_0x32c087--)if(_0x4d79c6=_0x3f3e17[_0x32c087])_0xc814b1=(_0x1925aa<0x3?_0x4d79c6(_0xc814b1):_0x1925aa>0x3?_0x4d79c6(_0x1c98fd,_0x200f1b,_0xc814b1):_0x4d79c6(_0x1c98fd,_0x200f1b))||_0xc814b1;}return _0x1925aa>0x3&&_0xc814b1&&Object[_0x15df87(0x1fc)](_0x1c98fd,_0x200f1b,_0xc814b1),_0xc814b1;},__metadata=this&&this['__metadata']||function(_0x21a764,_0x4ad2f1){const _0x55d0d1=a2_0x49a6;if(typeof Reflect===_0x55d0d1(0x21b)&&typeof Reflect[_0x55d0d1(0x219)]===_0x55d0d1(0x20d))return Reflect[_0x55d0d1(0x219)](_0x21a764,_0x4ad2f1);};Object[a2_0x4dbd26(0x1fc)](exports,a2_0x4dbd26(0x227),{'value':!![]}),exports[a2_0x4dbd26(0x223)]=void 0x0;const decorator_1=require(a2_0x4dbd26(0x203)),core_1=require(a2_0x4dbd26(0x22a)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x4dbd26(0x1db)),action_1=require(a2_0x4dbd26(0x1eb)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x4dbd26(0x1e8)),task=require(a2_0x4dbd26(0x216)),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4dbd26(0x211)),ConfigDefault=require(a2_0x4dbd26(0x221)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x4dbd26(0x1d7)),anncicEvent=require(a2_0x4dbd26(0x205)),anncicTypeorm=require(a2_0x4dbd26(0x20b)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x4dbd26(0x1fe)](){const _0x6b0d0=a2_0x4dbd26;await this[_0x6b0d0(0x208)](),await this[_0x6b0d0(0x21d)](),await this[_0x6b0d0(0x217)](),await this[_0x6b0d0(0x229)]();}async[a2_0x4dbd26(0x21d)](){}async[a2_0x4dbd26(0x217)](){const _0x17ac0e=a2_0x4dbd26,_0x2e7c8f=this[_0x17ac0e(0x1d9)][_0x17ac0e(0x1fa)]();this[_0x17ac0e(0x1f8)][_0x17ac0e(0x1e6)](action_1['ACTION_ROUTE_KEY'],_0x383397=>{const _0x25ffce=_0x17ac0e,_0x2d2679=_0x383397[_0x25ffce(0x219)];return{'before':async _0x32800=>{const _0x3184c7=_0x25ffce;var _0x2d5154,_0x3098f8;const _0x1efc10=(_0x2d5154=_0x32800===null||_0x32800===void 0x0?void 0x0:_0x32800[_0x3184c7(0x215)])===null||_0x2d5154===void 0x0?void 0x0:_0x2d5154[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x1efc10&&(_0x2d2679===null||_0x2d2679===void 0x0?void 0x0:_0x2d2679[_0x3184c7(0x1fb)])){if(!this[_0x3184c7(0x207)][_0x3184c7(0x1ed)]((_0x3098f8=_0x1efc10===null||_0x1efc10===void 0x0?void 0x0:_0x1efc10[_0x3184c7(0x222)])===null||_0x3098f8===void 0x0?void 0x0:_0x3098f8[_0x3184c7(0x209)]))throw new AnnError(ApiError_1['ApiError'][_0x3184c7(0x21e)]);}},'around':async _0x19de3f=>{const _0x4e59d0=_0x25ffce;var _0x327602,_0x10bcb6,_0x302f51,_0x5829c5,_0x417e45;const _0xcbc475=(_0x327602=_0x19de3f===null||_0x19de3f===void 0x0?void 0x0:_0x19de3f['target'])===null||_0x327602===void 0x0?void 0x0:_0x327602[core_1['REQUEST_OBJ_CTX_KEY']];if(_0xcbc475&&(_0x2d2679===null||_0x2d2679===void 0x0?void 0x0:_0x2d2679[_0x4e59d0(0x1fb)])){if(((_0x10bcb6=_0xcbc475[_0x4e59d0(0x209)])===null||_0x10bcb6===void 0x0?void 0x0:_0x10bcb6[_0x4e59d0(0x1e2)])&&((_0x417e45=(_0x5829c5=(_0x302f51=_0x2e7c8f===null||_0x2e7c8f===void 0x0?void 0x0:_0x2e7c8f[_0x4e59d0(0x1e1)])===null||_0x302f51===void 0x0?void 0x0:_0x302f51[_0x4e59d0(0x1df)])===null||_0x5829c5===void 0x0?void 0x0:_0x5829c5[_0xcbc475[_0x4e59d0(0x209)]['device']])===null||_0x417e45===void 0x0?void 0x0:_0x417e45[_0x4e59d0(0x204)])){const _0x51d22d=Array[_0x4e59d0(0x1f6)](_0x2e7c8f['anncicapi'][_0x4e59d0(0x1df)][_0xcbc475[_0x4e59d0(0x209)][_0x4e59d0(0x1e2)]][_0x4e59d0(0x204)])?_0x2e7c8f[_0x4e59d0(0x1e1)][_0x4e59d0(0x1df)][_0xcbc475[_0x4e59d0(0x209)][_0x4e59d0(0x1e2)]]['intercept']:[_0x2e7c8f[_0x4e59d0(0x1e1)][_0x4e59d0(0x1df)][_0xcbc475['headers']['device']][_0x4e59d0(0x204)]];for(const _0x5d9465 of _0x51d22d){if(decorator_1[_0x4e59d0(0x200)][_0x4e59d0(0x20f)](_0x5d9465)||typeof _0x5d9465==_0x4e59d0(0x1ec)){const _0x354c0d=await _0xcbc475['requestContext']['getAsync'](_0x5d9465);typeof(_0x354c0d===null||_0x354c0d===void 0x0?void 0x0:_0x354c0d[_0x4e59d0(0x21f)])==_0x4e59d0(0x20d)&&await _0x354c0d[_0x4e59d0(0x21f)](typeof(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475['method'])==_0x4e59d0(0x1ec)&&(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x218)])?_0xcbc475[_0x4e59d0(0x1e7)][_0x4e59d0(0x21a)]()+'@'+(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475['_matchedRoute']):undefined,_0xcbc475,_0x2d2679);}else decorator_1['Types'][_0x4e59d0(0x1f7)](_0x5d9465)&&await _0x5d9465(typeof(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x1e7)])==_0x4e59d0(0x1ec)&&(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x218)])?_0xcbc475[_0x4e59d0(0x1e7)]['toLowerCase']()+'@'+(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x218)]):undefined,_0xcbc475,_0x2d2679);}}}return await _0x19de3f['proceed'](..._0x19de3f[_0x4e59d0(0x225)]);},'afterThrow':(_0x3b1fd6,_0x41c10b)=>{throw _0x41c10b;}};});}async[a2_0x4dbd26(0x229)](){const _0x5748c3=a2_0x4dbd26;this['application'][_0x5748c3(0x214)](['koa'])['forEach'](_0x307f10=>{const _0x13c34f=_0x5748c3;(_0x307f10===null||_0x307f10===void 0x0?void 0x0:_0x307f10['context'])&&Object[_0x13c34f(0x201)](_0x307f10[_0x13c34f(0x1ee)],{'ok':{'value':function(_0x32d66b,_0x20e0aa,_0x30d9e5=0x0){return{'code':_0x30d9e5,'data':_0x32d66b,'extra':_0x20e0aa};}},'input':{'value':function(_0x1ed530,_0x1bfed9){const _0x561fce=_0x13c34f;var _0x205b68;const _0x391785=lodash[_0x561fce(0x1ef)]({},this[_0x561fce(0x222)][_0x561fce(0x1f3)]||this[_0x561fce(0x222)][((_0x205b68=config===null||config===void 0x0?void 0x0:config[_0x561fce(0x210)])===null||_0x205b68===void 0x0?void 0x0:_0x205b68['key'])||_0x561fce(0x1f3)]||{},this['request'][_0x561fce(0x1ea)]||{});return _0x1ed530?lodash['get'](_0x391785,_0x1ed530,_0x1bfed9):_0x391785;}},'when':{'value':async function(_0x269890,_0x124b4e){const _0x18aaff=_0x13c34f,_0xba01ca=this[_0x18aaff(0x1d8)](_0x269890,null);if(!lodash[_0x18aaff(0x20e)](_0xba01ca))return await _0x124b4e(_0xba01ca);}},'only':{'value':function(_0x429f64){const _0x3a0158=_0x13c34f,_0x201fef={};for(let _0x15b4cb=0x0;_0x15b4cb<_0x429f64[_0x3a0158(0x1f9)];_0x15b4cb++){lodash[_0x3a0158(0x1f6)](_0x429f64[_0x15b4cb])&&_0x429f64[_0x15b4cb][_0x3a0158(0x1f9)]>0x0&&lodash[_0x3a0158(0x1e0)](_0x429f64[_0x15b4cb][0x0])&&(_0x201fef[_0x429f64[_0x15b4cb][0x0]]=this[_0x3a0158(0x1d8)](_0x429f64[_0x15b4cb][0x0],_0x429f64[_0x15b4cb][_0x3a0158(0x1f9)]>0x1?_0x429f64[_0x15b4cb][0x1]:null));}return _0x201fef;}}});});}async['filterConfig'](){const _0xe78258=a2_0x4dbd26;var _0x3882c2,_0x227d70,_0x1c2c97,_0x3e9bed,_0x44ea51,_0x21afc7;const _0x59e7c7=this[_0xe78258(0x1d9)][_0xe78258(0x1fa)]();((_0x227d70=(_0x3882c2=_0x59e7c7===null||_0x59e7c7===void 0x0?void 0x0:_0x59e7c7['anncicapi'])===null||_0x3882c2===void 0x0?void 0x0:_0x3882c2['devices'])===null||_0x227d70===void 0x0?void 0x0:_0x227d70[_0xe78258(0x1d2)])&&Object[_0xe78258(0x1f2)](_0x59e7c7['anncicapi'][_0xe78258(0x1df)])[_0xe78258(0x1f9)]>0x1&&delete _0x59e7c7['anncicapi'][_0xe78258(0x1df)][_0xe78258(0x1d2)];if((_0x1c2c97=_0x59e7c7===null||_0x59e7c7===void 0x0?void 0x0:_0x59e7c7[_0xe78258(0x1e5)])===null||_0x1c2c97===void 0x0?void 0x0:_0x1c2c97['dirs'])for(const _0x3dd1dc in _0x59e7c7['staticFile'][_0xe78258(0x1f4)]){((_0x3e9bed=_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc])===null||_0x3e9bed===void 0x0?void 0x0:_0x3e9bed['dir'])&&typeof((_0x44ea51=_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc])===null||_0x44ea51===void 0x0?void 0x0:_0x44ea51['dir'])==_0xe78258(0x1ec)&&!fs['existsSync'](_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc]['dir'])&&(fs[_0xe78258(0x1e3)](_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc]['dir'],{'recursive':!![]}),console[_0xe78258(0x1d4)](_0xe78258(0x20a)+_0x59e7c7['staticFile']['dirs'][_0x3dd1dc][_0xe78258(0x228)]));}((_0x21afc7=_0x59e7c7===null||_0x59e7c7===void 0x0?void 0x0:_0x59e7c7[_0xe78258(0x1d0)])===null||_0x21afc7===void 0x0?void 0x0:_0x21afc7[_0xe78258(0x1e9)])&&!fs[_0xe78258(0x1e4)](_0x59e7c7[_0xe78258(0x1d0)][_0xe78258(0x1e9)])&&(fs['mkdirSync'](_0x59e7c7[_0xe78258(0x1d0)][_0xe78258(0x1e9)],{'recursive':!![]}),console['log'](_0xe78258(0x1de)+_0x59e7c7['upload'][_0xe78258(0x1e9)])),this['config'][_0xe78258(0x220)](_0x59e7c7);}};__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata(a2_0x4dbd26(0x1ff),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x4dbd26(0x1f0)],a2_0x4dbd26(0x1d9),void 0x0),__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata('design:type',core_1[a2_0x4dbd26(0x202)])],CustomConfiguration[a2_0x4dbd26(0x1f0)],a2_0x4dbd26(0x1f8),void 0x0),__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata(a2_0x4dbd26(0x1ff),core_1[a2_0x4dbd26(0x206)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata(a2_0x4dbd26(0x1ff),core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x4dbd26(0x21c),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x4dbd26(0x1f0)],a2_0x4dbd26(0x207),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1d3)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x4dbd26(0x1fd),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4dbd26(0x223)]=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x2e8d(_0x3839e9,_0x214406){const _0xad82ca=a2_0xad82();return a2_0x2e8d=function(_0x2e8d36,_0x59c04d){_0x2e8d36=_0x2e8d36-0x8d;let _0x520a76=_0xad82ca[_0x2e8d36];return _0x520a76;},a2_0x2e8d(_0x3839e9,_0x214406);}const a2_0x55a2e1=a2_0x2e8d;function a2_0xad82(){const _0x1570b3=['metadata','anncic-api','prototype','query','@midwayjs/cross-domain','REQUEST_OBJ_CTX_KEY','dir','length','key','388236wuDPgl','decorate','devices','@anncic-api/validator','getAsync','checkConfigKeys','anncicapi','tmpdir','./service/ApiService','@anncic-api/event','20scUagF','defineProperty','7jAokfh','isNull','upload','isClass','@midwayjs/core','__esModule','proceed','2016LfhWwM','application','headers','registerMethodHandler','Configuration','environment','input','bodyXml','checksign','log','isArray','@anncic-api/typeorm','context','onReady','@midwayjs/koa','mkdirSync','requestContext','121220NvwrAD','staticFile','1717047uGDpGg','26695xhbVvt','existsSync','hanlderApplications','method','MidwayConfigService','toLowerCase','DEFAULT','body','ApiService','forEach','__decorate','handler','design:type','getApplications','MidwayDecoratorService','isFunction','MidwayEnvironmentService','@midwayjs/static-file','config','function','device','216zvEVZB','filterConfig','defaultsDeep','koa','80VRrpqN','./exception/ApiError','apimit','defineProperties','./config/config.default','get','./types/action','@midwayjs/i18n','target','isString','intercept','request','object','handlerActionRoute','_matchedRoute','@midwayjs/decorator','dirs','string','5146616ygZoiP','@midwayjs/task','./config/config.production','1845315INbOwR','decorator','getConfiguration','9661IRRZnm','Inject','@midwayjs/upload'];a2_0xad82=function(){return _0x1570b3;};return a2_0xad82();}(function(_0x3ae6db,_0x995b07){const _0x1c8291=a2_0x2e8d,_0x1e7c3e=_0x3ae6db();while(!![]){try{const _0x23c6ec=parseInt(_0x1c8291(0x96))/0x1*(-parseInt(_0x1c8291(0xe2))/0x2)+-parseInt(_0x1c8291(0x93))/0x3+parseInt(_0x1c8291(0xde))/0x4*(-parseInt(_0x1c8291(0xc9))/0x5)+-parseInt(_0x1c8291(0xa2))/0x6*(-parseInt(_0x1c8291(0xae))/0x7)+-parseInt(_0x1c8291(0x90))/0x8+parseInt(_0x1c8291(0xc8))/0x9*(parseInt(_0x1c8291(0xac))/0xa)+-parseInt(_0x1c8291(0xc6))/0xb*(-parseInt(_0x1c8291(0xb5))/0xc);if(_0x23c6ec===_0x995b07)break;else _0x1e7c3e['push'](_0x1e7c3e['shift']());}catch(_0x10ee1e){_0x1e7c3e['push'](_0x1e7c3e['shift']());}}}(a2_0xad82,0x58fa6));var __decorate=this&&this[a2_0x55a2e1(0xd3)]||function(_0x51a5ed,_0x2eb817,_0x3e4730,_0x1e5a3b){const _0x1a51f7=a2_0x55a2e1;var _0x5e341c=arguments[_0x1a51f7(0xa0)],_0x2cad78=_0x5e341c<0x3?_0x2eb817:_0x1e5a3b===null?_0x1e5a3b=Object['getOwnPropertyDescriptor'](_0x2eb817,_0x3e4730):_0x1e5a3b,_0x33116e;if(typeof Reflect===_0x1a51f7(0xee)&&typeof Reflect[_0x1a51f7(0xa3)]===_0x1a51f7(0xdc))_0x2cad78=Reflect[_0x1a51f7(0xa3)](_0x51a5ed,_0x2eb817,_0x3e4730,_0x1e5a3b);else{for(var _0xfabde4=_0x51a5ed[_0x1a51f7(0xa0)]-0x1;_0xfabde4>=0x0;_0xfabde4--)if(_0x33116e=_0x51a5ed[_0xfabde4])_0x2cad78=(_0x5e341c<0x3?_0x33116e(_0x2cad78):_0x5e341c>0x3?_0x33116e(_0x2eb817,_0x3e4730,_0x2cad78):_0x33116e(_0x2eb817,_0x3e4730))||_0x2cad78;}return _0x5e341c>0x3&&_0x2cad78&&Object[_0x1a51f7(0xad)](_0x2eb817,_0x3e4730,_0x2cad78),_0x2cad78;},__metadata=this&&this['__metadata']||function(_0x3aaf24,_0x8d63fa){const _0x410677=a2_0x55a2e1;if(typeof Reflect===_0x410677(0xee)&&typeof Reflect[_0x410677(0x99)]===_0x410677(0xdc))return Reflect[_0x410677(0x99)](_0x3aaf24,_0x8d63fa);};Object['defineProperty'](exports,a2_0x55a2e1(0xb3),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0x55a2e1(0x8d)),core_1=require(a2_0x55a2e1(0xb2)),ApiError_1=require(a2_0x55a2e1(0xe3)),ApiService_1=require(a2_0x55a2e1(0xaa)),action_1=require(a2_0x55a2e1(0xe8)),fs=require('fs'),koa=require(a2_0x55a2e1(0xc3)),i18n=require(a2_0x55a2e1(0xe9)),task=require(a2_0x55a2e1(0x91)),upload=require(a2_0x55a2e1(0x98)),staticFile=require(a2_0x55a2e1(0xda)),crossDomain=require(a2_0x55a2e1(0x9d)),ConfigDefault=require(a2_0x55a2e1(0xe6)),ConfigProduction=require(a2_0x55a2e1(0x92)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x55a2e1(0xab)),anncicTypeorm=require(a2_0x55a2e1(0xc0)),anncicValidator=require(a2_0x55a2e1(0xa5)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x55a2e1(0xc2)](){const _0x5ff552=a2_0x55a2e1;await this[_0x5ff552(0xdf)](),await this[_0x5ff552(0xa7)](),await this[_0x5ff552(0xef)](),await this[_0x5ff552(0xcb)]();}async[a2_0x55a2e1(0xa7)](){}async[a2_0x55a2e1(0xef)](){const _0x1721c3=a2_0x55a2e1,_0x5237dd=this[_0x1721c3(0xdb)][_0x1721c3(0x95)]();this['decorator'][_0x1721c3(0xb8)](action_1['ACTION_ROUTE_KEY'],_0x390d54=>{const _0x34480d=_0x1721c3,_0x4783a3=_0x390d54[_0x34480d(0x99)];return{'before':async _0x2a6034=>{const _0x3c9973=_0x34480d;var _0x5b7759,_0x35481f;const _0x56e6c8=(_0x5b7759=_0x2a6034===null||_0x2a6034===void 0x0?void 0x0:_0x2a6034[_0x3c9973(0xea)])===null||_0x5b7759===void 0x0?void 0x0:_0x5b7759[core_1[_0x3c9973(0x9e)]];if(_0x56e6c8&&(_0x4783a3===null||_0x4783a3===void 0x0?void 0x0:_0x4783a3[_0x3c9973(0xe4)])){if(!this[_0x3c9973(0xd1)][_0x3c9973(0xbd)]((_0x35481f=_0x56e6c8===null||_0x56e6c8===void 0x0?void 0x0:_0x56e6c8[_0x3c9973(0xed)])===null||_0x35481f===void 0x0?void 0x0:_0x35481f[_0x3c9973(0xb7)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0xad4bba=>{const _0x3a4def=_0x34480d;var _0x17a743,_0x478080,_0x48d64f,_0x5a2615,_0x275403;const _0xa1ac64=(_0x17a743=_0xad4bba===null||_0xad4bba===void 0x0?void 0x0:_0xad4bba[_0x3a4def(0xea)])===null||_0x17a743===void 0x0?void 0x0:_0x17a743[core_1[_0x3a4def(0x9e)]];if(_0xa1ac64&&(_0x4783a3===null||_0x4783a3===void 0x0?void 0x0:_0x4783a3[_0x3a4def(0xe4)])){if(((_0x478080=_0xa1ac64[_0x3a4def(0xb7)])===null||_0x478080===void 0x0?void 0x0:_0x478080['device'])&&((_0x275403=(_0x5a2615=(_0x48d64f=_0x5237dd===null||_0x5237dd===void 0x0?void 0x0:_0x5237dd[_0x3a4def(0xa8)])===null||_0x48d64f===void 0x0?void 0x0:_0x48d64f[_0x3a4def(0xa4)])===null||_0x5a2615===void 0x0?void 0x0:_0x5a2615[_0xa1ac64[_0x3a4def(0xb7)][_0x3a4def(0xdd)]])===null||_0x275403===void 0x0?void 0x0:_0x275403['intercept'])){const _0x532074=Array[_0x3a4def(0xbf)](_0x5237dd[_0x3a4def(0xa8)][_0x3a4def(0xa4)][_0xa1ac64[_0x3a4def(0xb7)][_0x3a4def(0xdd)]][_0x3a4def(0xec)])?_0x5237dd[_0x3a4def(0xa8)][_0x3a4def(0xa4)][_0xa1ac64[_0x3a4def(0xb7)][_0x3a4def(0xdd)]][_0x3a4def(0xec)]:[_0x5237dd['anncicapi']['devices'][_0xa1ac64[_0x3a4def(0xb7)][_0x3a4def(0xdd)]]['intercept']];for(const _0x2cc0ad of _0x532074){if(decorator_1['Types'][_0x3a4def(0xb1)](_0x2cc0ad)||typeof _0x2cc0ad==_0x3a4def(0x8f)){const _0x233ede=await _0xa1ac64[_0x3a4def(0xc5)][_0x3a4def(0xa6)](_0x2cc0ad);typeof(_0x233ede===null||_0x233ede===void 0x0?void 0x0:_0x233ede[_0x3a4def(0xd4)])==_0x3a4def(0xdc)&&await _0x233ede[_0x3a4def(0xd4)](typeof(_0xa1ac64===null||_0xa1ac64===void 0x0?void 0x0:_0xa1ac64[_0x3a4def(0xcc)])=='string'&&(_0xa1ac64===null||_0xa1ac64===void 0x0?void 0x0:_0xa1ac64['_matchedRoute'])?_0xa1ac64[_0x3a4def(0xcc)]['toLowerCase']()+'@'+(_0xa1ac64===null||_0xa1ac64===void 0x0?void 0x0:_0xa1ac64[_0x3a4def(0xf0)]):undefined,_0xa1ac64,_0x4783a3);}else decorator_1['Types'][_0x3a4def(0xd8)](_0x2cc0ad)&&await _0x2cc0ad(typeof(_0xa1ac64===null||_0xa1ac64===void 0x0?void 0x0:_0xa1ac64[_0x3a4def(0xcc)])==_0x3a4def(0x8f)&&(_0xa1ac64===null||_0xa1ac64===void 0x0?void 0x0:_0xa1ac64[_0x3a4def(0xf0)])?_0xa1ac64[_0x3a4def(0xcc)][_0x3a4def(0xce)]()+'@'+(_0xa1ac64===null||_0xa1ac64===void 0x0?void 0x0:_0xa1ac64['_matchedRoute']):undefined,_0xa1ac64,_0x4783a3);}}}return await _0xad4bba[_0x3a4def(0xb4)](..._0xad4bba['args']);},'afterThrow':(_0x2fb567,_0x253412)=>{throw _0x253412;}};});}async['hanlderApplications'](){const _0x1d3818=a2_0x55a2e1;this[_0x1d3818(0xb6)][_0x1d3818(0xd6)]([_0x1d3818(0xe1)])[_0x1d3818(0xd2)](_0x3282b6=>{const _0x5452c1=_0x1d3818;(_0x3282b6===null||_0x3282b6===void 0x0?void 0x0:_0x3282b6['context'])&&Object[_0x5452c1(0xe5)](_0x3282b6[_0x5452c1(0xc1)],{'ok':{'value':function(_0x50ed05,_0x7b1d0e,_0x5494f2=0x0){return{'code':_0x5494f2,'data':_0x50ed05,'extra':_0x7b1d0e};}},'input':{'value':function(_0x26655f,_0x636c8c){const _0x2a1dfb=_0x5452c1;var _0xd2488a;const _0x2777c0=lodash[_0x2a1dfb(0xe0)]({},this[_0x2a1dfb(0xed)][_0x2a1dfb(0xd0)]||this[_0x2a1dfb(0xed)][((_0xd2488a=config===null||config===void 0x0?void 0x0:config[_0x2a1dfb(0xbc)])===null||_0xd2488a===void 0x0?void 0x0:_0xd2488a[_0x2a1dfb(0xa1)])||'body']||{},this[_0x2a1dfb(0xed)][_0x2a1dfb(0x9c)]||{});return _0x26655f?lodash[_0x2a1dfb(0xe7)](_0x2777c0,_0x26655f,_0x636c8c):_0x2777c0;}},'when':{'value':async function(_0x23e3cf,_0x24b94d){const _0x1b7668=_0x5452c1,_0xd4ecdb=this['input'](_0x23e3cf,null);if(!lodash[_0x1b7668(0xaf)](_0xd4ecdb))return await _0x24b94d(_0xd4ecdb);}},'only':{'value':function(_0x1109c4){const _0x59b1b2=_0x5452c1,_0x2ee91f={};for(let _0x923fb0=0x0;_0x923fb0<_0x1109c4[_0x59b1b2(0xa0)];_0x923fb0++){lodash['isArray'](_0x1109c4[_0x923fb0])&&_0x1109c4[_0x923fb0][_0x59b1b2(0xa0)]>0x0&&lodash[_0x59b1b2(0xeb)](_0x1109c4[_0x923fb0][0x0])&&(_0x2ee91f[_0x1109c4[_0x923fb0][0x0]]=this[_0x59b1b2(0xbb)](_0x1109c4[_0x923fb0][0x0],_0x1109c4[_0x923fb0][_0x59b1b2(0xa0)]>0x1?_0x1109c4[_0x923fb0][0x1]:null));}return _0x2ee91f;}}});});}async[a2_0x55a2e1(0xdf)](){const _0x4e4995=a2_0x55a2e1;var _0x31b103,_0x10a4ed,_0x116c3e,_0x569494,_0x3957d6,_0x15db6a;const _0x683402=this[_0x4e4995(0xdb)]['getConfiguration']();((_0x10a4ed=(_0x31b103=_0x683402===null||_0x683402===void 0x0?void 0x0:_0x683402[_0x4e4995(0xa8)])===null||_0x31b103===void 0x0?void 0x0:_0x31b103['devices'])===null||_0x10a4ed===void 0x0?void 0x0:_0x10a4ed['DEFAULT'])&&Object['keys'](_0x683402['anncicapi']['devices'])['length']>0x1&&delete _0x683402[_0x4e4995(0xa8)]['devices'][_0x4e4995(0xcf)];if((_0x116c3e=_0x683402===null||_0x683402===void 0x0?void 0x0:_0x683402['staticFile'])===null||_0x116c3e===void 0x0?void 0x0:_0x116c3e[_0x4e4995(0x8e)])for(const _0x2e1294 in _0x683402[_0x4e4995(0xc7)][_0x4e4995(0x8e)]){((_0x569494=_0x683402[_0x4e4995(0xc7)][_0x4e4995(0x8e)][_0x2e1294])===null||_0x569494===void 0x0?void 0x0:_0x569494['dir'])&&typeof((_0x3957d6=_0x683402[_0x4e4995(0xc7)][_0x4e4995(0x8e)][_0x2e1294])===null||_0x3957d6===void 0x0?void 0x0:_0x3957d6['dir'])==_0x4e4995(0x8f)&&!fs[_0x4e4995(0xca)](_0x683402[_0x4e4995(0xc7)]['dirs'][_0x2e1294]['dir'])&&(fs['mkdirSync'](_0x683402[_0x4e4995(0xc7)][_0x4e4995(0x8e)][_0x2e1294][_0x4e4995(0x9f)],{'recursive':!![]}),console[_0x4e4995(0xbe)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x683402['staticFile'][_0x4e4995(0x8e)][_0x2e1294]['dir']));}((_0x15db6a=_0x683402===null||_0x683402===void 0x0?void 0x0:_0x683402[_0x4e4995(0xb0)])===null||_0x15db6a===void 0x0?void 0x0:_0x15db6a[_0x4e4995(0xa9)])&&!fs['existsSync'](_0x683402[_0x4e4995(0xb0)]['tmpdir'])&&(fs[_0x4e4995(0xc4)](_0x683402[_0x4e4995(0xb0)][_0x4e4995(0xa9)],{'recursive':!![]}),console[_0x4e4995(0xbe)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x683402[_0x4e4995(0xb0)][_0x4e4995(0xa9)])),this['config']['addObject'](_0x683402);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x55a2e1(0xd5),core_1[a2_0x55a2e1(0xcd)])],CustomConfiguration[a2_0x55a2e1(0x9b)],'config',void 0x0),__decorate([(0x0,decorator_1[a2_0x55a2e1(0x97)])(),__metadata(a2_0x55a2e1(0xd5),core_1[a2_0x55a2e1(0xd7)])],CustomConfiguration[a2_0x55a2e1(0x9b)],a2_0x55a2e1(0x94),void 0x0),__decorate([(0x0,decorator_1[a2_0x55a2e1(0x97)])(),__metadata(a2_0x55a2e1(0xd5),core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x55a2e1(0x9b)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x55a2e1(0x97)])(),__metadata(a2_0x55a2e1(0xd5),core_1[a2_0x55a2e1(0xd9)])],CustomConfiguration[a2_0x55a2e1(0x9b)],a2_0x55a2e1(0xba),void 0x0),__decorate([(0x0,decorator_1[a2_0x55a2e1(0x97)])(),__metadata(a2_0x55a2e1(0xd5),ApiService_1[a2_0x55a2e1(0xd1)])],CustomConfiguration[a2_0x55a2e1(0x9b)],a2_0x55a2e1(0xd1),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x55a2e1(0xb9)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x55a2e1(0x9a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a3_0x1185(_0x2d236a,_0x39de25){const _0x36c572=a3_0x36c5();return a3_0x1185=function(_0x1185bc,_0x4391a8){_0x1185bc=_0x1185bc-0x1e2;let _0xaf720a=_0x36c572[_0x1185bc];return _0xaf720a;},a3_0x1185(_0x2d236a,_0x39de25);}const a3_0x426e6c=a3_0x1185;(function(_0x340b3d,_0xbadcc5){const _0x474120=a3_0x1185,_0x12d893=_0x340b3d();while(!![]){try{const _0x26820c=parseInt(_0x474120(0x1fb))/0x1+-parseInt(_0x474120(0x212))/0x2+parseInt(_0x474120(0x210))/0x3+parseInt(_0x474120(0x1ee))/0x4+parseInt(_0x474120(0x1f7))/0x5+parseInt(_0x474120(0x20d))/0x6+-parseInt(_0x474120(0x1fd))/0x7;if(_0x26820c===_0xbadcc5)break;else _0x12d893['push'](_0x12d893['shift']());}catch(_0x2bde89){_0x12d893['push'](_0x12d893['shift']());}}}(a3_0x36c5,0x438f4));Object[a3_0x426e6c(0x1e5)](exports,a3_0x426e6c(0x20e),{'value':!![]}),exports['parseRoute']=exports[a3_0x426e6c(0x1e7)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x426e6c(0x1e4)),action_1=require('../types/action');function Action(_0x491932,_0x5b0060,_0x41a7ca={'middleware':[],'sensitive':!![]}){return _0x39ad33=>{const _0x2f51fd=a3_0x1185;_0x41a7ca[_0x2f51fd(0x208)]=_0x5b0060;const _0xb02f8a=parseRoute(_0x491932);if(_0xb02f8a[_0x2f51fd(0x1f1)]){_0x41a7ca[_0x2f51fd(0x1e8)]=_0x41a7ca[_0x2f51fd(0x1e8)]?'/'+_0xb02f8a['module']+'/'+_0x41a7ca[_0x2f51fd(0x1e8)]:'/'+_0xb02f8a[_0x2f51fd(0x1ea)];_0xb02f8a[_0x2f51fd(0x1e8)]&&(_0x41a7ca['prefix']='/'+_0xb02f8a[_0x2f51fd(0x1e8)]+'/'+_0x41a7ca[_0x2f51fd(0x1e8)]);if(fs[_0x2f51fd(0x1eb)](_0xb02f8a[_0x2f51fd(0x209)]+_0x2f51fd(0x200)+_0xb02f8a[_0x2f51fd(0x1f1)]+_0x2f51fd(0x1e3)+(lodash[_0x2f51fd(0x1f8)](_0xb02f8a[_0x2f51fd(0x1ff)],'ts')?'ts':'js'))){const _0x349561=include(_0xb02f8a[_0x2f51fd(0x209)]+'/apps/'+_0xb02f8a[_0x2f51fd(0x1f1)]+_0x2f51fd(0x1e3)+(lodash[_0x2f51fd(0x1f8)](_0xb02f8a['filepath'],'ts')?'ts':'js'));if(_0x349561[_0x2f51fd(0x1f6)]&&lodash['isArray'](_0x349561[_0x2f51fd(0x1f6)])&&_0x349561['middleware'][_0x2f51fd(0x1fc)]>0x0)for(let _0x4fc2f3 in _0x349561[_0x2f51fd(0x1f6)]){_0x349561[_0x2f51fd(0x205)][_0x2f51fd(0x1f9)](_0x349561[_0x2f51fd(0x1f6)][_0x4fc2f3])==-0x1&&_0x41a7ca['middleware']['push'](_0x349561[_0x2f51fd(0x1f6)][_0x4fc2f3]);}const _0x44d4ef=(0x0,decorator_1[_0x2f51fd(0x1f4)])(action_1[_0x2f51fd(0x207)],action_1['AppsConfigTmp'])||{};_0x44d4ef[''+_0xb02f8a[_0x2f51fd(0x1f1)]]=_0x349561,(0x0,decorator_1[_0x2f51fd(0x1f5)])(action_1['APPSCONFIG_KEY'],_0x44d4ef,action_1[_0x2f51fd(0x1fa)]);}_0x41a7ca[_0x2f51fd(0x1e8)]=_0x41a7ca[_0x2f51fd(0x1e8)][_0x2f51fd(0x1f2)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2f51fd(0x1ed)])(action_1[_0x2f51fd(0x203)],_0x39ad33),(0x0,decorator_1['Controller'])(_0x41a7ca[_0x2f51fd(0x1e8)],_0x41a7ca)(_0x39ad33),(0x0,decorator_1[_0x2f51fd(0x1f5)])(action_1[_0x2f51fd(0x203)],{'prefix':_0x41a7ca[_0x2f51fd(0x1e8)],'pprefix':_0xb02f8a[_0x2f51fd(0x1e8)],'module':_0xb02f8a[_0x2f51fd(0x1f1)],'filepath':_0xb02f8a[_0x2f51fd(0x1ff)],'routerOptions':_0x41a7ca},_0x39ad33);}else _0x41a7ca[_0x2f51fd(0x1e8)]=_0x41a7ca[_0x2f51fd(0x1e8)]?'/'+_0x41a7ca['prefix']:'/'+_0xb02f8a[_0x2f51fd(0x1ea)],_0xb02f8a['prefix']&&(_0x41a7ca[_0x2f51fd(0x1e8)]='/'+_0xb02f8a['prefix']+'/'+_0x41a7ca[_0x2f51fd(0x1e8)]),_0x41a7ca[_0x2f51fd(0x1e8)]=_0x41a7ca[_0x2f51fd(0x1e8)][_0x2f51fd(0x1f2)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x2f51fd(0x203)],_0x39ad33),(0x0,decorator_1[_0x2f51fd(0x1fe)])(_0x41a7ca[_0x2f51fd(0x1e8)],_0x41a7ca)(_0x39ad33),(0x0,decorator_1[_0x2f51fd(0x1f5)])(action_1[_0x2f51fd(0x203)],{'prefix':_0x41a7ca['prefix'],'module':_0xb02f8a[_0x2f51fd(0x1f1)],'pprefix':_0xb02f8a[_0x2f51fd(0x1e8)],'filepath':_0xb02f8a[_0x2f51fd(0x1ff)],'routerOptions':_0x41a7ca},_0x39ad33);};}exports[a3_0x426e6c(0x1e7)]=Action;function a3_0x36c5(){const _0x5210d1=['saveModule','228960lTqWco','filter','splice','module','toLowerCase','/controller/文件下','getClassMetadata','saveClassMetadata','middleware','1105875lHRHJv','endsWith','indexOf','AppsConfigTmp','427194mxIkxW','length','2935401IOiamO','Controller','filepath','/apps/','cwd','\x20文件请放在app/controller/文件下','ACTION_KEY','match','middlewareIgnore','-controller','APPSCONFIG_KEY','tagName','rootpath','startsWith','join','app/controller/','367752EbBtMu','__esModule','replace','1016376thdTwJ','trim','819252hCBGeH','/controller/','/config.','@midwayjs/decorator','defineProperty','-action','Action','prefix','split','route','existsSync','substring'];a3_0x36c5=function(){return _0x5210d1;};return a3_0x36c5();}function parseRoute(_0x1bf08f){const _0x4045f9=a3_0x426e6c;_0x1bf08f=_0x1bf08f[_0x4045f9(0x20f)](/(\\|\/)/g,'/');const _0x320d2e=process[_0x4045f9(0x201)]()[_0x4045f9(0x20f)](/(\\|\/)/g,'/'),_0x20fc00=_0x1bf08f[_0x4045f9(0x1ec)](0x0,_0x320d2e['length']+_0x1bf08f[_0x4045f9(0x1ec)](_0x320d2e['length']+0x1)[_0x4045f9(0x1f9)]('/')+0x1),_0x405dd6=_0x1bf08f[_0x4045f9(0x1ec)](_0x20fc00[_0x4045f9(0x1fc)]+0x1)[_0x4045f9(0x20f)](/(\\|\/)/g,'/'),_0x772bbb={'route':'','prefix':![],'module':![],'rootpath':_0x20fc00,'filepath':_0x405dd6};if(_0x405dd6['startsWith'](_0x4045f9(0x20c))){const _0x5f2883=_0x405dd6[_0x4045f9(0x1ec)]('app/controller/'[_0x4045f9(0x1fc)])[_0x4045f9(0x1e9)]('/')[_0x4045f9(0x1ef)](_0x35b04d=>_0x35b04d&&_0x35b04d[_0x4045f9(0x211)]());return _0x5f2883[_0x4045f9(0x1fc)]>0x1&&(_0x772bbb[_0x4045f9(0x1e8)]=_0x5f2883[0x0][_0x4045f9(0x1f2)](),_0x5f2883[_0x4045f9(0x1f0)](0x0,0x1)),_0x772bbb['route']=('/'+_0x5f2883[_0x4045f9(0x20b)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4045f9(0x20f)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4045f9(0x20b)]('-')[_0x4045f9(0x1f2)]()[_0x4045f9(0x20f)](/\/\-/g,'/'),_0x772bbb[_0x4045f9(0x1ea)]['endsWith'](_0x4045f9(0x1e6))&&(_0x772bbb['route']=_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1ec)](0x0,_0x772bbb['route'][_0x4045f9(0x1fc)]-0x7)),_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1f8)](_0x4045f9(0x206))&&(_0x772bbb[_0x4045f9(0x1ea)]=_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1ec)](0x0,_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1fc)]-0xb)),_0x772bbb;}else{if(_0x405dd6[_0x4045f9(0x20a)]('apps/')){const _0x3cec3c=_0x405dd6[_0x4045f9(0x1ec)](0x0,_0x405dd6[_0x4045f9(0x1f9)]('/apps/')+0x5),_0x2b1068=_0x405dd6[_0x4045f9(0x1ec)](_0x3cec3c['length']+0x1)[_0x4045f9(0x20f)](/(\\|\/)/g,'/')[_0x4045f9(0x1e9)]('/')[0x0];if(_0x405dd6[_0x4045f9(0x20a)]('apps/'+_0x2b1068+_0x4045f9(0x1e2))){const _0x48bd7e=_0x405dd6[_0x4045f9(0x1ec)]((_0x3cec3c+'/'+_0x2b1068+_0x4045f9(0x1e2))['length'])['split']('/')[_0x4045f9(0x1ef)](_0x20fbf6=>_0x20fbf6&&_0x20fbf6[_0x4045f9(0x211)]());return _0x48bd7e[_0x4045f9(0x1fc)]>0x1&&(_0x772bbb[_0x4045f9(0x1e8)]=_0x48bd7e[0x0]['toLowerCase'](),_0x48bd7e[_0x4045f9(0x1f0)](0x0,0x1)),_0x772bbb[_0x4045f9(0x1f1)]=_0x2b1068,_0x772bbb[_0x4045f9(0x1ea)]=('/'+_0x2b1068+'/'+_0x48bd7e[_0x4045f9(0x20b)]('/'))[_0x4045f9(0x20f)](/(\.ts|\.js)$/,'')[_0x4045f9(0x20f)](/\/{2,}/,'/')[_0x4045f9(0x204)](/[\/|A-Z]*[^A-Z]+/g)[_0x4045f9(0x20b)]('-')[_0x4045f9(0x1f2)]()[_0x4045f9(0x20f)](/\/\-/g,'/'),_0x772bbb[_0x4045f9(0x1ea)]['endsWith'](_0x4045f9(0x1e6))&&(_0x772bbb[_0x4045f9(0x1ea)]=_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1ec)](0x0,_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1fc)]-0x7)),_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1f8)](_0x4045f9(0x206))&&(_0x772bbb[_0x4045f9(0x1ea)]=_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1ec)](0x0,_0x772bbb[_0x4045f9(0x1ea)][_0x4045f9(0x1fc)]-0xb)),_0x772bbb;}throw new Error(_0x405dd6+'\x20文件请放在apps/'+_0x2b1068+_0x4045f9(0x1f3));}}throw new Error(_0x405dd6+_0x4045f9(0x202));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a4_0x49aef4=a4_0x4b56;function a4_0xfb3b(){const _0x2d94c6=['middleware','50xNCZkm','30476rQjXAM','__esModule','get','description','2ssDrgh','ACTION_ROUTE_KEY','utc','middlewareIgnore','toLowerCase','del','../types/action','createCustomMethodDecorator','apimit','routerName','28fASJlQ','1737320yHYWZM','validationOptions','Api','attachClassMetadata','length','validate','273082jPhDrS','1543464fZBJIj','9DgYObm','1066901WcCDoK','assign','@midwayjs/decorator','filter','RequestMapping','@anncic-api/validator','indexOf','Validator','921552DEbiCT','7770ebCStP','141rHJYYo','delete','defineProperty'];a4_0xfb3b=function(){return _0x2d94c6;};return a4_0xfb3b();}(function(_0x5518e0,_0x57a008){const _0x117982=a4_0x4b56,_0x3ea562=_0x5518e0();while(!![]){try{const _0x1b7a0=-parseInt(_0x117982(0x78))/0x1*(parseInt(_0x117982(0x89))/0x2)+parseInt(_0x117982(0x6f))/0x3*(-parseInt(_0x117982(0x74))/0x4)+parseInt(_0x117982(0x83))/0x5+-parseInt(_0x117982(0x6e))/0x6*(parseInt(_0x117982(0x82))/0x7)+parseInt(_0x117982(0x8a))/0x8*(parseInt(_0x117982(0x8b))/0x9)+parseInt(_0x117982(0x73))/0xa*(parseInt(_0x117982(0x8c))/0xb)+-parseInt(_0x117982(0x6d))/0xc;if(_0x1b7a0===_0x57a008)break;else _0x3ea562['push'](_0x3ea562['shift']());}catch(_0x23bbd7){_0x3ea562['push'](_0x3ea562['shift']());}}}(a4_0xfb3b,0x4c389));Object[a4_0x49aef4(0x71)](exports,a4_0x49aef4(0x75),{'value':!![]}),exports[a4_0x49aef4(0x85)]=void 0x0;const validator_1=require(a4_0x49aef4(0x6a)),decorator_1=require(a4_0x49aef4(0x8e)),action_1=require(a4_0x49aef4(0x7e));function Api(_0x464de8,_0x2e8269=a4_0x49aef4(0x76),_0x3ae076='/',_0x4b8e4e={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1ca510,_0x330841,_0x5be991)=>{const _0x1ecf49=a4_0x4b56;var _0x316674,_0xadb5db,_0x59ec1b;!_0x4b8e4e['middleware']&&(_0x4b8e4e['middleware']=[]);!((_0x316674=_0x4b8e4e===null||_0x4b8e4e===void 0x0?void 0x0:_0x4b8e4e[_0x1ecf49(0x88)])===null||_0x316674===void 0x0?void 0x0:_0x316674[_0x1ecf49(0x84)])&&(_0x4b8e4e['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1ecf49(0x7a)}});if(((_0xadb5db=_0x4b8e4e===null||_0x4b8e4e===void 0x0?void 0x0:_0x4b8e4e[_0x1ecf49(0x72)])===null||_0xadb5db===void 0x0?void 0x0:_0xadb5db[_0x1ecf49(0x87)])>0x0&&((_0x59ec1b=_0x4b8e4e===null||_0x4b8e4e===void 0x0?void 0x0:_0x4b8e4e[_0x1ecf49(0x7b)])===null||_0x59ec1b===void 0x0?void 0x0:_0x59ec1b[_0x1ecf49(0x87)])>0x0)for(let _0x4d7075 in _0x4b8e4e[_0x1ecf49(0x72)]){_0x4b8e4e[_0x1ecf49(0x7b)][_0x1ecf49(0x6b)](_0x4b8e4e[_0x1ecf49(0x72)][_0x4d7075])!==-0x1&&(_0x4b8e4e[_0x1ecf49(0x72)][_0x4d7075]=null);}_0x4b8e4e[_0x1ecf49(0x81)]=_0x464de8,(0x0,validator_1[_0x1ecf49(0x6c)])(_0x4b8e4e[_0x1ecf49(0x88)])(_0x1ca510,_0x330841,_0x5be991),(0x0,decorator_1[_0x1ecf49(0x90)])(Object[_0x1ecf49(0x8d)](_0x4b8e4e,{'path':_0x3ae076,'requestMethod':(_0x2e8269==_0x1ecf49(0x7d)?'delete':_0x2e8269)[_0x1ecf49(0x7c)]()}))(_0x1ca510,_0x330841,_0x5be991),(0x0,decorator_1[_0x1ecf49(0x86)])(action_1[_0x1ecf49(0x79)],{'path':_0x3ae076,'method':_0x330841,'apimit':_0x4b8e4e[_0x1ecf49(0x80)],'routerName':_0x4b8e4e[_0x1ecf49(0x81)],'description':_0x4b8e4e[_0x1ecf49(0x77)],'middleware':(_0x4b8e4e['middleware']||[])['filter'](_0x813bc9=>!!_0x813bc9),'requestMethod':(_0x2e8269==_0x1ecf49(0x7d)?_0x1ecf49(0x70):_0x2e8269)['toLowerCase']()},_0x1ca510),(0x0,decorator_1[_0x1ecf49(0x7f)])(action_1[_0x1ecf49(0x79)],{'path':_0x3ae076,'method':_0x330841,'apimit':_0x4b8e4e[_0x1ecf49(0x80)],'routerName':_0x4b8e4e[_0x1ecf49(0x81)],'description':_0x4b8e4e[_0x1ecf49(0x77)],'middleware':(_0x4b8e4e[_0x1ecf49(0x72)]||[])[_0x1ecf49(0x8f)](_0x480f36=>!!_0x480f36),'requestMethod':(_0x2e8269==_0x1ecf49(0x7d)?'delete':_0x2e8269)[_0x1ecf49(0x7c)]()})(_0x1ca510,_0x330841,_0x5be991);};}function a4_0x4b56(_0x35603d,_0xb12226){const _0xfb3b57=a4_0xfb3b();return a4_0x4b56=function(_0x4b5640,_0x72bd6){_0x4b5640=_0x4b5640-0x6a;let _0x3311b7=_0xfb3b57[_0x4b5640];return _0x3311b7;},a4_0x4b56(_0x35603d,_0xb12226);}exports[a4_0x49aef4(0x85)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a5_0x19cd(_0x328254,_0x2148b1){const _0x56094f=a5_0x5609();return a5_0x19cd=function(_0x19cda5,_0x1d803c){_0x19cda5=_0x19cda5-0x8b;let _0x2849f6=_0x56094f[_0x19cda5];return _0x2849f6;},a5_0x19cd(_0x328254,_0x2148b1);}const a5_0x28dfbc=a5_0x19cd;(function(_0x524b4d,_0x552cc4){const _0x51e341=a5_0x19cd,_0x4a304d=_0x524b4d();while(!![]){try{const _0x4f4fa7=-parseInt(_0x51e341(0x90))/0x1*(parseInt(_0x51e341(0xa5))/0x2)+parseInt(_0x51e341(0x94))/0x3*(parseInt(_0x51e341(0x96))/0x4)+-parseInt(_0x51e341(0x9f))/0x5+-parseInt(_0x51e341(0x92))/0x6*(-parseInt(_0x51e341(0x98))/0x7)+parseInt(_0x51e341(0xa4))/0x8*(parseInt(_0x51e341(0x9b))/0x9)+-parseInt(_0x51e341(0xa1))/0xa*(parseInt(_0x51e341(0x8b))/0xb)+-parseInt(_0x51e341(0xa6))/0xc*(parseInt(_0x51e341(0x9e))/0xd);if(_0x4f4fa7===_0x552cc4)break;else _0x4a304d['push'](_0x4a304d['shift']());}catch(_0x1260ac){_0x4a304d['push'](_0x4a304d['shift']());}}}(a5_0x5609,0x67b89));Object[a5_0x28dfbc(0x99)](exports,a5_0x28dfbc(0xa0),{'value':!![]}),exports[a5_0x28dfbc(0x9d)]=void 0x0;const decorator_1=require(a5_0x28dfbc(0xa7)),core_1=require(a5_0x28dfbc(0x8d)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x202490=a5_0x28dfbc(0x95),_0x4d0a58){return(_0x507eb1,_0x276315,_0x44ccfa)=>{const _0x598745=a5_0x19cd;return(0x0,decorator_1['RequestMapping'])({'path':_0x202490,'requestMethod':'get'})(_0x507eb1,_0x276315,_0x44ccfa),_0x44ccfa[_0x598745(0x9a)]=async function(..._0x370582){const _0x251440=_0x598745;var _0x299d87;const _0x135dab=(_0x299d87=this[core_1[_0x251440(0x9c)]])===null||_0x299d87===void 0x0?void 0x0:_0x299d87[_0x251440(0x8f)];if(_0x135dab&&_0x135dab[_0x251440(0x93)](_0x251440(0x8e))){const _0x7506c4=await _0x135dab[_0x251440(0x97)]()[_0x251440(0x91)](ApitestService_1[_0x251440(0x8c)]),_0x4f384=await _0x135dab[_0x251440(0x97)]()[_0x251440(0x91)](core_1['MidwayEnvironmentService']);return _0x4f384[_0x251440(0xa3)]()&&(_0x4d0a58['filepath']=!![]),await _0x7506c4[_0x251440(0xa2)](_0x4d0a58);}return'';},_0x44ccfa;};}function a5_0x5609(){const _0x443fcc=['Apitest','637IlMIIC','156700cXArNa','__esModule','40teGLSC','apidoc','isDevelopmentEnvironment','6712rCXHdl','30346DYBqnd','172812jkRPeC','@midwayjs/decorator','482845DXrxJc','ApitestService','@midwayjs/core','apitest','app','16KvbikL','getAsync','786zwMKtZ','getConfig','6UbYNwg','/apitest','543812apXrmm','getApplicationContext','28707hmNdsu','defineProperty','value','8271sUMrQh','REQUEST_OBJ_CTX_KEY'];a5_0x5609=function(){return _0x443fcc;};return a5_0x5609();}exports[a5_0x28dfbc(0x9d)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0xbe486b=a6_0x4305;function a6_0x4305(_0x13e626,_0x39fc30){var _0x3784ab=a6_0x3784();return a6_0x4305=function(_0x4305fa,_0x1fe459){_0x4305fa=_0x4305fa-0x193;var _0x570624=_0x3784ab[_0x4305fa];return _0x570624;},a6_0x4305(_0x13e626,_0x39fc30);}(function(_0x1f65bc,_0x1b58bd){var _0x4d52e1=a6_0x4305,_0x2c0812=_0x1f65bc();while(!![]){try{var _0x571267=parseInt(_0x4d52e1(0x1a5))/0x1*(parseInt(_0x4d52e1(0x1ad))/0x2)+parseInt(_0x4d52e1(0x1ac))/0x3+parseInt(_0x4d52e1(0x19e))/0x4+parseInt(_0x4d52e1(0x194))/0x5+parseInt(_0x4d52e1(0x19b))/0x6+-parseInt(_0x4d52e1(0x19c))/0x7*(-parseInt(_0x4d52e1(0x1a9))/0x8)+parseInt(_0x4d52e1(0x196))/0x9*(-parseInt(_0x4d52e1(0x1a0))/0xa);if(_0x571267===_0x1b58bd)break;else _0x2c0812['push'](_0x2c0812['shift']());}catch(_0x3558e6){_0x2c0812['push'](_0x2c0812['shift']());}}}(a6_0x3784,0x82c36));var __decorate=this&&this[a6_0xbe486b(0x198)]||function(_0x248095,_0x10cf92,_0x46d963,_0xa97509){var _0x3aa9d1=a6_0xbe486b,_0x2cd1fd=arguments[_0x3aa9d1(0x1aa)],_0x9bc5e5=_0x2cd1fd<0x3?_0x10cf92:_0xa97509===null?_0xa97509=Object['getOwnPropertyDescriptor'](_0x10cf92,_0x46d963):_0xa97509,_0x38c4b2;if(typeof Reflect==='object'&&typeof Reflect[_0x3aa9d1(0x19f)]==='function')_0x9bc5e5=Reflect['decorate'](_0x248095,_0x10cf92,_0x46d963,_0xa97509);else{for(var _0x397a00=_0x248095[_0x3aa9d1(0x1aa)]-0x1;_0x397a00>=0x0;_0x397a00--)if(_0x38c4b2=_0x248095[_0x397a00])_0x9bc5e5=(_0x2cd1fd<0x3?_0x38c4b2(_0x9bc5e5):_0x2cd1fd>0x3?_0x38c4b2(_0x10cf92,_0x46d963,_0x9bc5e5):_0x38c4b2(_0x10cf92,_0x46d963))||_0x9bc5e5;}return _0x2cd1fd>0x3&&_0x9bc5e5&&Object['defineProperty'](_0x10cf92,_0x46d963,_0x9bc5e5),_0x9bc5e5;},__metadata=this&&this[a6_0xbe486b(0x1a3)]||function(_0x5a67e5,_0x2fba03){var _0x267f8f=a6_0xbe486b;if(typeof Reflect===_0x267f8f(0x199)&&typeof Reflect[_0x267f8f(0x1a4)]==='function')return Reflect[_0x267f8f(0x1a4)](_0x5a67e5,_0x2fba03);};Object['defineProperty'](exports,a6_0xbe486b(0x1a7),{'value':!![]}),exports[a6_0xbe486b(0x1a1)]=void 0x0;function a6_0x3784(){var _0x18b2d4=['HEADERS_DEVICE','558258OqlFNi','250pBAmMm','请求头信息不完整','3405610dcfQxG','请使用正确的设备','225LbNuir','HEADERS_SIGNATURE','__decorate','object','checkcode验证失败','6323700yDcvhp','28xuSrPJ','HEADERS_CHECKCODE','2253416rTCkWE','decorate','1170710oaSILD','ApiError','TIMEOUT','__metadata','metadata','5385ArHquD','HEADERS_LACK','__esModule','design:type','609488YnPREJ','length'];a6_0x3784=function(){return _0x18b2d4;};return a6_0x3784();}class ApiError{}ApiError[a6_0xbe486b(0x1a2)]=0x3d7e31,ApiError[a6_0xbe486b(0x1a6)]=0x3d7e32,ApiError[a6_0xbe486b(0x1ab)]=0x3d7e33,ApiError[a6_0xbe486b(0x19d)]=0x3d7e34,ApiError[a6_0xbe486b(0x197)]=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata('design:type',Object)],ApiError,a6_0xbe486b(0x1a2),void 0x0),__decorate([AnnErrorMsg(a6_0xbe486b(0x193)),__metadata(a6_0xbe486b(0x1a8),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0xbe486b(0x195)),__metadata(a6_0xbe486b(0x1a8),Object)],ApiError,a6_0xbe486b(0x1ab),void 0x0),__decorate([AnnErrorMsg(a6_0xbe486b(0x19a)),__metadata(a6_0xbe486b(0x1a8),Object)],ApiError,a6_0xbe486b(0x19d),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0xbe486b(0x1a8),Object)],ApiError,a6_0xbe486b(0x197),void 0x0),exports[a6_0xbe486b(0x1a1)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a7_0x23e7a9=a7_0x1cd6;function a7_0x1cd6(_0x282bdc,_0x4dbbaa){const _0x5d35ed=a7_0x5d35();return a7_0x1cd6=function(_0x1cd6fc,_0x22f745){_0x1cd6fc=_0x1cd6fc-0xd7;let _0xb8b850=_0x5d35ed[_0x1cd6fc];return _0xb8b850;},a7_0x1cd6(_0x282bdc,_0x4dbbaa);}(function(_0x1fa7bd,_0x2c05e8){const _0x2e38a5=a7_0x1cd6,_0x7d35ae=_0x1fa7bd();while(!![]){try{const _0x75edb5=-parseInt(_0x2e38a5(0xdc))/0x1+parseInt(_0x2e38a5(0xd7))/0x2+-parseInt(_0x2e38a5(0xd9))/0x3+parseInt(_0x2e38a5(0xde))/0x4*(-parseInt(_0x2e38a5(0xe7))/0x5)+-parseInt(_0x2e38a5(0xd8))/0x6+parseInt(_0x2e38a5(0xe5))/0x7+parseInt(_0x2e38a5(0xdd))/0x8;if(_0x75edb5===_0x2c05e8)break;else _0x7d35ae['push'](_0x7d35ae['shift']());}catch(_0x63037){_0x7d35ae['push'](_0x7d35ae['shift']());}}}(a7_0x5d35,0x4a7cf));Object[a7_0x23e7a9(0xe1)](exports,a7_0x23e7a9(0xdf),{'value':!![]}),exports[a7_0x23e7a9(0xe2)]=void 0x0;const decorator_1=require(a7_0x23e7a9(0xe6)),action_1=require(a7_0x23e7a9(0xe0));function getAppsConfig(_0x5d7d58){const _0x221fcd=a7_0x23e7a9,_0x5af933=(0x0,decorator_1[_0x221fcd(0xda)])(action_1[_0x221fcd(0xe3)],action_1[_0x221fcd(0xdb)])||{};return _0x5d7d58?lodash[_0x221fcd(0xe4)](_0x5af933,_0x5d7d58):_0x5af933;}function a7_0x5d35(){const _0x151b55=['3742585OMJFJL','@midwayjs/decorator','1774985cTVvxc','240678fWAndC','775494hZkOyW','1131765TzabFL','getClassMetadata','AppsConfigTmp','479634ILZVHe','7929952nPdjgv','4FzJhpL','__esModule','../types/action','defineProperty','getAppsConfig','APPSCONFIG_KEY','get'];a7_0x5d35=function(){return _0x151b55;};return a7_0x5d35();}exports[a7_0x23e7a9(0xe2)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a8_0x2e6f(){const _0x3f77c4=['pprefix','metadata','3174LGKXMR','FILESTREAM','routerOptions','994VFXlfA','number','/static/apitest','HEADERS','summary','name','4961817KsugpJ','flags.description','object','method','filepath','routes','limit','@midwayjs/decorator','prefix','log','getClassExtendedMetadata','max','57gpzOaX','12484fsNjvO','static/apitest','listModule','items','getMethodParamTypes','string','86533CSbVkf','BODY','getRoutes','test','header','path','split','file','default','routerName','isArray','-array','type','key','RULES_KEY','ACTION_KEY','module','children','min','push','indexOf','propertyData','flags.label','route','flags.default','parameterIndex','requestMethod','@anncic-api/validator','describe','allow','67710BmenxR','Number','PARAM','defineProperty','tagName','request','rules','getClassMetadata','FIELDS','FILESSTREAM','Boolean','function','757352PyRAPm','length','filter','ACTION_ROUTE_KEY','lodash','description','1097096omTGfl','required','File','startsWith','body','replace','title','Object','只允许:[','query','get','RouteParamTypes','args','noreq','find'];a8_0x2e6f=function(){return _0x3f77c4;};return a8_0x2e6f();}const a8_0x5afa02=a8_0x3e1c;(function(_0x28ff83,_0x4a2797){const _0x2115fb=a8_0x3e1c,_0x6d9e87=_0x28ff83();while(!![]){try{const _0x4fc234=parseInt(_0x2115fb(0x10f))/0x1+parseInt(_0x2115fb(0x109))/0x2*(-parseInt(_0x2115fb(0x108))/0x3)+-parseInt(_0x2115fb(0xdc))/0x4+-parseInt(_0x2115fb(0x12d))/0x5+-parseInt(_0x2115fb(0xf3))/0x6*(parseInt(_0x2115fb(0xf6))/0x7)+-parseInt(_0x2115fb(0xe2))/0x8+parseInt(_0x2115fb(0xfc))/0x9;if(_0x4fc234===_0x4a2797)break;else _0x6d9e87['push'](_0x6d9e87['shift']());}catch(_0xfe97c){_0x6d9e87['push'](_0x6d9e87['shift']());}}}(a8_0x2e6f,0x196b1));Object[a8_0x5afa02(0x130)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x5afa02(0xe0)),validator_1=require(a8_0x5afa02(0x12a)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x5afa02(0x103)),decorator_3=require(a8_0x5afa02(0x103)),action_1=require('../types/action');function getRoutes(_0x19eb63={'prefix':'/','module':![]}){const _0x58f878=a8_0x5afa02;var _0x35b94f,_0x32b526;const _0x42e0b1=(0x0,decorator_3[_0x58f878(0x10b)])(action_1['ACTION_KEY']),_0xdf969f={},_0x162353=Array['isArray'](_0x19eb63[_0x58f878(0xde)]||[])?_0x19eb63[_0x58f878(0xde)]||[]:[_0x19eb63[_0x58f878(0xde)]];_0x4ea10e:for(const _0x3f8c14 of _0x42e0b1){let _0x5dd79a=(0x0,decorator_3[_0x58f878(0x134)])(action_1[_0x58f878(0x11e)],_0x3f8c14),_0x3abf53=(0x0,decorator_3[_0x58f878(0x134)])(action_1[_0x58f878(0xdf)],_0x3f8c14);if(_0x5dd79a&&_0x3abf53){let _0x54f1e7=_0x5dd79a['prefix'],_0x4bb7af={};if(_0x19eb63[_0x58f878(0x11f)]&&(0x0,lodash_1[_0x58f878(0xec)])(_0x5dd79a,_0x58f878(0x11f),![])!=_0x19eb63[_0x58f878(0x11f)])continue _0x4ea10e;else{if(_0x19eb63[_0x58f878(0x11f)]===![]&&!!(0x0,lodash_1[_0x58f878(0xec)])(_0x5dd79a,_0x58f878(0x11f),null))continue _0x4ea10e;}if(_0x19eb63[_0x58f878(0x104)]&&!_0x54f1e7[_0x58f878(0xe5)](_0x19eb63[_0x58f878(0x104)]))continue _0x4ea10e;_0x54f1e7!=='/'?(_0x4bb7af[_0x58f878(0xfa)]=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0xf5)][_0x58f878(0x131)])||(/^\//[_0x58f878(0x112)](_0x54f1e7)?_0x54f1e7[_0x58f878(0x115)]('/')[0x1]:_0x54f1e7),_0x4bb7af['description']=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a['routerOptions'][_0x58f878(0xe1)])||_0x4bb7af[_0x58f878(0xfa)],_0x4bb7af[_0x58f878(0x101)]=[]):(_0x4bb7af[_0x58f878(0xfa)]=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a['routerOptions'][_0x58f878(0x131)])||_0x58f878(0x117),_0x4bb7af[_0x58f878(0xe1)]=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a['routerOptions'][_0x58f878(0xe1)])||'',_0x4bb7af[_0x58f878(0x101)]=[]);_0x19eb63[_0x58f878(0x100)]&&(_0x4bb7af[_0x58f878(0x100)]=_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0x100)]);(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0xf1)])&&(_0x4bb7af[_0x58f878(0x104)]=_0x5dd79a[_0x58f878(0xf1)]);(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0x11f)])&&(_0x4bb7af[_0x58f878(0x11f)]=_0x5dd79a['module']);let _0x44f99e=(0x0,decorator_3[_0x58f878(0x134)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x3f8c14)||{};if(typeof _0x3abf53[Symbol['iterator']]===_0x58f878(0xdb))for(let _0x2987cd of _0x3abf53){let _0x5213c5={};_0x5213c5[_0x58f878(0xff)]=_0x2987cd[_0x58f878(0x129)],_0x5213c5[_0x58f878(0x126)]=(_0x54f1e7+_0x2987cd[_0x58f878(0x114)])[_0x58f878(0xe7)](/\/{1,}/,'/'),_0x5213c5[_0x58f878(0xfa)]=(_0x2987cd===null||_0x2987cd===void 0x0?void 0x0:_0x2987cd[_0x58f878(0x118)])||_0x4bb7af[_0x58f878(0xfa)]||_0x58f878(0x117),_0x5213c5[_0x58f878(0xe1)]=(_0x2987cd===null||_0x2987cd===void 0x0?void 0x0:_0x2987cd[_0x58f878(0xe1)])||'',_0x5213c5[_0x58f878(0x132)]=[];if(!(0x0,lodash_1[_0x58f878(0xe5)])(_0x5213c5[_0x58f878(0x126)],_0x58f878(0x10a))&&!(0x0,lodash_1[_0x58f878(0xe5)])(_0x5213c5[_0x58f878(0x126)],_0x58f878(0xf8))&&_0x162353[_0x58f878(0x123)](_0x5213c5['route'])===-0x1){if(!(_0x19eb63===null||_0x19eb63===void 0x0?void 0x0:_0x19eb63[_0x58f878(0xef)])){let _0x582703=(0x0,decorator_3[_0x58f878(0x10d)])(new _0x3f8c14(),_0x2987cd['method']);for(const _0x27ee03 in _0x582703){let _0x5b0298=(_0x35b94f=_0x44f99e[_0x2987cd[_0x58f878(0xff)]])===null||_0x35b94f===void 0x0?void 0x0:_0x35b94f[_0x58f878(0xf0)](_0xad220d=>_0xad220d[_0x58f878(0x128)]==_0x27ee03&&_0xad220d[_0x58f878(0x11c)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0xad220d===null||_0xad220d===void 0x0?void 0x0:_0xad220d['metadata']));if(_0x5b0298===null||_0x5b0298===void 0x0?void 0x0:_0x5b0298[_0x58f878(0xf2)]){let _0x97c935=convertTypeToString(_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x11b)]||0x0);if([_0x58f878(0xeb),_0x58f878(0xe6)][_0x58f878(0x123)](_0x97c935)!=-0x1&&_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)][_0x58f878(0x123)](':')==-0x1&&!_0x5213c5[_0x58f878(0x132)][_0x58f878(0xf0)](_0x30bc98=>_0x30bc98[_0x58f878(0x11c)]==_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)]))_0x5213c5['request'][_0x58f878(0x122)]({'key':_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)],'title':_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)],'type':convertSchemaType(_0x582703[_0x5b0298[_0x58f878(0x128)]]['name']),'required':![],'default':'','desc':''});else{if(_0x97c935==_0x58f878(0x116)){let _0x292567=((_0x32b526=_0x5b0298===null||_0x5b0298===void 0x0?void 0x0:_0x5b0298[_0x58f878(0xf2)])===null||_0x32b526===void 0x0?void 0x0:_0x32b526['propertyData'])||_0x58f878(0x116);_0x292567[_0x58f878(0x123)](':')==-0x1&&!_0x5213c5[_0x58f878(0x132)][_0x58f878(0xf0)](_0x16c440=>_0x16c440[_0x58f878(0x11c)]==_0x292567&&_0x16c440[_0x58f878(0x11b)]==_0x58f878(0x116))&&_0x5213c5[_0x58f878(0x132)][_0x58f878(0x122)]({'key':_0x292567,'title':'文件上传-'+_0x292567,'type':_0x58f878(0x116),'required':!![],'default':'','desc':''});}}}else{const _0x293220=(0x0,decorator_3[_0x58f878(0x106)])(validator_1[_0x58f878(0x11d)],_0x582703[_0x27ee03]);_0x293220&&_0x5213c5[_0x58f878(0x132)][_0x58f878(0x122)](...getJoiRequest(_0x293220));}}}_0x4bb7af['routes'][_0x58f878(0x122)](_0x5213c5);}}if(_0x4bb7af[_0x58f878(0x101)][_0x58f878(0xdd)]>0x0){let _0xb288b2=_0xdf969f[_0x54f1e7];_0xb288b2?(_0xb288b2[_0x58f878(0xfa)]!=_0x4bb7af[_0x58f878(0xfa)]&&(_0xb288b2[_0x58f878(0xfa)]=_0xb288b2[_0x58f878(0xfa)]+','+_0x4bb7af['summary']),_0xb288b2[_0x58f878(0xe1)]!=_0x4bb7af[_0x58f878(0xe1)]&&(_0xb288b2['description']=_0xb288b2[_0x58f878(0xe1)]+','+_0x4bb7af[_0x58f878(0xe1)]),_0xb288b2[_0x58f878(0x101)]=_0xb288b2['routes']['concat'](_0x4bb7af[_0x58f878(0x101)]),_0xdf969f[_0x54f1e7]=_0xb288b2):_0xdf969f[_0x54f1e7]=_0x4bb7af;}}}return _0xdf969f;}exports[a8_0x5afa02(0x111)]=getRoutes;function a8_0x3e1c(_0x51a662,_0x54baff){const _0x2e6f0d=a8_0x2e6f();return a8_0x3e1c=function(_0x3e1c87,_0x445362){_0x3e1c87=_0x3e1c87-0xda;let _0x22d614=_0x2e6f0d[_0x3e1c87];return _0x22d614;},a8_0x3e1c(_0x51a662,_0x54baff);}function getJoiRequest(_0x466467){const _0x56195b=a8_0x5afa02,_0x3d27d6=[];for(let _0x5ff6a6 in _0x466467){const _0x3a3d8e={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x437be8=typeof _0x466467[_0x5ff6a6][_0x56195b(0x12b)]=='function'?_0x466467[_0x5ff6a6][_0x56195b(0x12b)]():_0x466467[_0x5ff6a6];_0x3a3d8e[_0x56195b(0x11c)]=_0x5ff6a6,_0x3a3d8e[_0x56195b(0x11b)]=_0x437be8['type'],_0x3a3d8e['title']=(0x0,lodash_1[_0x56195b(0xec)])(_0x437be8,_0x56195b(0x125),_0x5ff6a6),_0x3a3d8e[_0x56195b(0x117)]=(0x0,lodash_1[_0x56195b(0xec)])(_0x437be8,_0x56195b(0x127),''),_0x3a3d8e[_0x56195b(0xe3)]=(0x0,lodash_1['get'])(_0x437be8,'flags.presence','')==_0x56195b(0xe3),_0x3a3d8e[_0x56195b(0xe1)]=(0x0,lodash_1[_0x56195b(0xec)])(_0x437be8,_0x56195b(0xfd),'');if(_0x437be8['type']==_0x56195b(0xfe))_0x3a3d8e[_0x56195b(0x120)]=getJoiRequest(_0x437be8['keys']);else _0x437be8[_0x56195b(0x11b)]=='array'&&_0x437be8[_0x56195b(0x10c)]&&Array[_0x56195b(0x119)](_0x437be8[_0x56195b(0x10c)])&&_0x437be8[_0x56195b(0x10c)][0x0]&&console[_0x56195b(0x105)](_0x5ff6a6+_0x56195b(0x11a),_0x437be8);_0x437be8[_0x56195b(0x12c)]&&Array['isArray'](_0x437be8[_0x56195b(0x12c)])&&_0x437be8[_0x56195b(0x12c)][_0x56195b(0xdd)]>0x0&&(_0x3a3d8e[_0x56195b(0xe1)]=_0x56195b(0xea)+_0x437be8[_0x56195b(0x12c)]['join'](',')+'];'+_0x3a3d8e[_0x56195b(0xe1)]);if(_0x3a3d8e[_0x56195b(0x11c)]&&_0x3a3d8e[_0x56195b(0x11b)]){const _0x21fec6={};for(const _0x3ebf7e of _0x437be8[_0x56195b(0x133)]||[]){if(_0x3ebf7e[_0x56195b(0xfb)]===_0x56195b(0x121)&&_0x3ebf7e[_0x56195b(0xee)])_0x21fec6[_0x56195b(0x121)]=_0x3ebf7e[_0x56195b(0xee)]['limit'];else _0x3ebf7e[_0x56195b(0xfb)]===_0x56195b(0x107)&&(_0x21fec6[_0x56195b(0x107)]=_0x3ebf7e[_0x56195b(0xee)][_0x56195b(0x102)]);}_0x3a3d8e['rules']=_0x21fec6;}_0x3a3d8e['key']&&_0x3a3d8e[_0x56195b(0xe8)]&&_0x3d27d6[_0x56195b(0x122)](_0x3a3d8e);}return _0x3d27d6;}function convertSchemaType(_0x569502){const _0x1c4ff9=a8_0x5afa02;switch(_0x569502){case _0x1c4ff9(0xe9):return'object';case _0x1c4ff9(0xda):return'boolean';case _0x1c4ff9(0x12e):return _0x1c4ff9(0xf7);case'String':return'string';case _0x1c4ff9(0xe4):return _0x1c4ff9(0x116);default:return _0x1c4ff9(0x10e);}}function convertTypeToString(_0x11e344){const _0x7a06a0=a8_0x5afa02;switch(_0x11e344){case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0xf9)]:return'header';case decorator_1[_0x7a06a0(0xed)]['QUERY']:return'query';case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x12f)]:return _0x7a06a0(0x114);case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x110)]:return _0x7a06a0(0xe6);case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x135)]:case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x136)]:case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0xf4)]:return _0x7a06a0(0x116);default:return _0x7a06a0(0x113);}}
|
|
1
|
+
'use strict';const a8_0x398155=a8_0x5e35;function a8_0x2f14(){const _0x4c6cbe=['@anncic-api/validator','lodash','FIELDS','function','max','routerName','min','describe','rules','getRoutes','method','object','INJECT_CUSTOM_PARAM','356iCehIU','只允许:[','limit','string','RouteParamTypes','__esModule','/static/apitest','listModule','replace','getClassExtendedMetadata','flags.presence','String','required','544028daCTnH','BODY','isArray','Number','propertyData','routes','tagName','routerOptions','keys','summary','878508lABJyF','children','@midwayjs/decorator','query','type','parameterIndex','4664900ycFbMV','test','description','indexOf','ACTION_KEY','flags.label','default','requestMethod','WEB_ROUTER_PARAM_KEY','flags.description','PARAM','RULES_KEY','297lACaca','number','split','getClassMetadata','-array','prefix','9LNWTZj','filter','items','metadata','Boolean','body','getMethodParamTypes','get','module','push','path','FILESTREAM','file','defineProperty','request','1282260cvbokN','route','header','key','concat','allow','title','29704QPzvyn','static/apitest','257187JeVBJi','args','filepath','2036obIFrO','find','startsWith'];a8_0x2f14=function(){return _0x4c6cbe;};return a8_0x2f14();}(function(_0x3886b3,_0x17db38){const _0x272f53=a8_0x5e35,_0x54ac12=_0x3886b3();while(!![]){try{const _0x350163=-parseInt(_0x272f53(0x114))/0x1*(-parseInt(_0x272f53(0x104))/0x2)+parseInt(_0x272f53(0x143))/0x3*(parseInt(_0x272f53(0x121))/0x4)+-parseInt(_0x272f53(0xf8))/0x5+parseInt(_0x272f53(0x12b))/0x6+-parseInt(_0x272f53(0x101))/0x7+parseInt(_0x272f53(0xff))/0x8*(parseInt(_0x272f53(0x13d))/0x9)+-parseInt(_0x272f53(0x131))/0xa;if(_0x350163===_0x17db38)break;else _0x54ac12['push'](_0x54ac12['shift']());}catch(_0x1834e5){_0x54ac12['push'](_0x54ac12['shift']());}}}(a8_0x2f14,0x4448d));Object[a8_0x398155(0xf6)](exports,a8_0x398155(0x119),{'value':!![]}),exports[a8_0x398155(0x110)]=void 0x0;const lodash_1=require(a8_0x398155(0x108)),validator_1=require(a8_0x398155(0x107)),decorator_1=require(a8_0x398155(0x12d)),decorator_2=require(a8_0x398155(0x12d)),decorator_3=require('@midwayjs/decorator'),action_1=require('../types/action');function a8_0x5e35(_0x5a8757,_0x55779d){const _0x2f1473=a8_0x2f14();return a8_0x5e35=function(_0x5e3545,_0x1572e3){_0x5e3545=_0x5e3545-0xf2;let _0x7afc15=_0x2f1473[_0x5e3545];return _0x7afc15;},a8_0x5e35(_0x5a8757,_0x55779d);}function getRoutes(_0x275910={'prefix':'/','module':![]}){const _0x1157de=a8_0x398155;var _0x54f8a4,_0xf916cb;const _0x595919=(0x0,decorator_3[_0x1157de(0x11b)])(action_1[_0x1157de(0x135)]),_0x23aa9d={},_0x13cfba=Array[_0x1157de(0x123)](_0x275910[_0x1157de(0x144)]||[])?_0x275910[_0x1157de(0x144)]||[]:[_0x275910['filter']];_0x2b7b7c:for(const _0x534d18 of _0x595919){let _0x2afb76=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_KEY'],_0x534d18),_0x2efc81=(0x0,decorator_3[_0x1157de(0x140)])(action_1['ACTION_ROUTE_KEY'],_0x534d18);if(_0x2afb76&&_0x2efc81){let _0x29f15c=_0x2afb76['prefix'],_0xeda2a2={};if(_0x275910[_0x1157de(0x14b)]&&(0x0,lodash_1['get'])(_0x2afb76,'module',![])!=_0x275910[_0x1157de(0x14b)])continue _0x2b7b7c;else{if(_0x275910[_0x1157de(0x14b)]===![]&&!!(0x0,lodash_1[_0x1157de(0x14a)])(_0x2afb76,_0x1157de(0x14b),null))continue _0x2b7b7c;}if(_0x275910['prefix']&&!_0x29f15c[_0x1157de(0x106)](_0x275910[_0x1157de(0x142)]))continue _0x2b7b7c;_0x29f15c!=='/'?(_0xeda2a2[_0x1157de(0x12a)]=(_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76['routerOptions'][_0x1157de(0x127)])||(/^\//[_0x1157de(0x132)](_0x29f15c)?_0x29f15c[_0x1157de(0x13f)]('/')[0x1]:_0x29f15c),_0xeda2a2[_0x1157de(0x133)]=(_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76[_0x1157de(0x128)]['description'])||_0xeda2a2[_0x1157de(0x12a)],_0xeda2a2[_0x1157de(0x126)]=[]):(_0xeda2a2[_0x1157de(0x12a)]=(_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76['routerOptions'][_0x1157de(0x127)])||'default',_0xeda2a2[_0x1157de(0x133)]=(_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76[_0x1157de(0x128)][_0x1157de(0x133)])||'',_0xeda2a2[_0x1157de(0x126)]=[]);_0x275910['filepath']&&(_0xeda2a2[_0x1157de(0x103)]=_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76['filepath']);(_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76['pprefix'])&&(_0xeda2a2[_0x1157de(0x142)]=_0x2afb76['pprefix']);(_0x2afb76===null||_0x2afb76===void 0x0?void 0x0:_0x2afb76[_0x1157de(0x14b)])&&(_0xeda2a2['module']=_0x2afb76['module']);let _0x7e4466=(0x0,decorator_3[_0x1157de(0x140)])(decorator_2[_0x1157de(0x113)],_0x534d18)||{};if(typeof _0x2efc81[Symbol['iterator']]===_0x1157de(0x10a))for(let _0x55e94f of _0x2efc81){let _0x307e3c={};_0x307e3c['method']=_0x55e94f[_0x1157de(0x138)],_0x307e3c[_0x1157de(0xf9)]=(_0x29f15c+_0x55e94f['path'])[_0x1157de(0x11c)](/\/{1,}/,'/'),_0x307e3c[_0x1157de(0x12a)]=(_0x55e94f===null||_0x55e94f===void 0x0?void 0x0:_0x55e94f[_0x1157de(0x10c)])||_0xeda2a2[_0x1157de(0x12a)]||'default',_0x307e3c[_0x1157de(0x133)]=(_0x55e94f===null||_0x55e94f===void 0x0?void 0x0:_0x55e94f['description'])||'',_0x307e3c[_0x1157de(0xf7)]=[];if(!(0x0,lodash_1[_0x1157de(0x106)])(_0x307e3c[_0x1157de(0xf9)],_0x1157de(0x100))&&!(0x0,lodash_1[_0x1157de(0x106)])(_0x307e3c['route'],_0x1157de(0x11a))&&_0x13cfba['indexOf'](_0x307e3c[_0x1157de(0xf9)])===-0x1){if(!(_0x275910===null||_0x275910===void 0x0?void 0x0:_0x275910['noreq'])){let _0x52d1cd=(0x0,decorator_3[_0x1157de(0x149)])(new _0x534d18(),_0x55e94f['method']);for(const _0x37926e in _0x52d1cd){let _0x32b4f6=(_0x54f8a4=_0x7e4466[_0x55e94f[_0x1157de(0x111)]])===null||_0x54f8a4===void 0x0?void 0x0:_0x54f8a4[_0x1157de(0x105)](_0x288ac9=>_0x288ac9[_0x1157de(0x130)]==_0x37926e&&_0x288ac9['key']===decorator_2[_0x1157de(0x139)]&&(_0x288ac9===null||_0x288ac9===void 0x0?void 0x0:_0x288ac9[_0x1157de(0x146)]));if(_0x32b4f6===null||_0x32b4f6===void 0x0?void 0x0:_0x32b4f6[_0x1157de(0x146)]){let _0x1112e8=convertTypeToString(_0x32b4f6['metadata'][_0x1157de(0x12f)]||0x0);if([_0x1157de(0x12e),_0x1157de(0x148)][_0x1157de(0x134)](_0x1112e8)!=-0x1&&_0x32b4f6['metadata'][_0x1157de(0x125)]['indexOf'](':')==-0x1&&!_0x307e3c[_0x1157de(0xf7)][_0x1157de(0x105)](_0x5aa9a3=>_0x5aa9a3[_0x1157de(0xfb)]==_0x32b4f6['metadata'][_0x1157de(0x125)]))_0x307e3c[_0x1157de(0xf7)][_0x1157de(0xf2)]({'key':_0x32b4f6['metadata'][_0x1157de(0x125)],'title':_0x32b4f6[_0x1157de(0x146)][_0x1157de(0x125)],'type':convertSchemaType(_0x52d1cd[_0x32b4f6['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x1112e8==_0x1157de(0xf5)){let _0x3795d7=((_0xf916cb=_0x32b4f6===null||_0x32b4f6===void 0x0?void 0x0:_0x32b4f6[_0x1157de(0x146)])===null||_0xf916cb===void 0x0?void 0x0:_0xf916cb['propertyData'])||_0x1157de(0xf5);_0x3795d7[_0x1157de(0x134)](':')==-0x1&&!_0x307e3c[_0x1157de(0xf7)][_0x1157de(0x105)](_0x3f55d9=>_0x3f55d9[_0x1157de(0xfb)]==_0x3795d7&&_0x3f55d9[_0x1157de(0x12f)]=='file')&&_0x307e3c[_0x1157de(0xf7)]['push']({'key':_0x3795d7,'title':'文件上传-'+_0x3795d7,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0xea22dc=(0x0,decorator_3[_0x1157de(0x11d)])(validator_1[_0x1157de(0x13c)],_0x52d1cd[_0x37926e]);_0xea22dc&&_0x307e3c[_0x1157de(0xf7)][_0x1157de(0xf2)](...getJoiRequest(_0xea22dc));}}}_0xeda2a2[_0x1157de(0x126)][_0x1157de(0xf2)](_0x307e3c);}}if(_0xeda2a2[_0x1157de(0x126)]['length']>0x0){let _0x3e42f1=_0x23aa9d[_0x29f15c];_0x3e42f1?(_0x3e42f1[_0x1157de(0x12a)]!=_0xeda2a2[_0x1157de(0x12a)]&&(_0x3e42f1['summary']=_0x3e42f1[_0x1157de(0x12a)]+','+_0xeda2a2[_0x1157de(0x12a)]),_0x3e42f1[_0x1157de(0x133)]!=_0xeda2a2[_0x1157de(0x133)]&&(_0x3e42f1['description']=_0x3e42f1[_0x1157de(0x133)]+','+_0xeda2a2[_0x1157de(0x133)]),_0x3e42f1[_0x1157de(0x126)]=_0x3e42f1[_0x1157de(0x126)][_0x1157de(0xfc)](_0xeda2a2['routes']),_0x23aa9d[_0x29f15c]=_0x3e42f1):_0x23aa9d[_0x29f15c]=_0xeda2a2;}}}return _0x23aa9d;}exports[a8_0x398155(0x110)]=getRoutes;function getJoiRequest(_0x376155){const _0x5542ad=a8_0x398155,_0x3ac6d4=[];for(let _0x13f392 in _0x376155){const _0x288cc8={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5ee75a=typeof _0x376155[_0x13f392]['describe']==_0x5542ad(0x10a)?_0x376155[_0x13f392][_0x5542ad(0x10e)]():_0x376155[_0x13f392];_0x288cc8['key']=_0x13f392,_0x288cc8[_0x5542ad(0x12f)]=_0x5ee75a[_0x5542ad(0x12f)],_0x288cc8[_0x5542ad(0xfe)]=(0x0,lodash_1[_0x5542ad(0x14a)])(_0x5ee75a,_0x5542ad(0x136),_0x13f392),_0x288cc8[_0x5542ad(0x137)]=(0x0,lodash_1[_0x5542ad(0x14a)])(_0x5ee75a,'flags.default',''),_0x288cc8[_0x5542ad(0x120)]=(0x0,lodash_1['get'])(_0x5ee75a,_0x5542ad(0x11e),'')=='required',_0x288cc8[_0x5542ad(0x133)]=(0x0,lodash_1[_0x5542ad(0x14a)])(_0x5ee75a,_0x5542ad(0x13a),'');if(_0x5ee75a[_0x5542ad(0x12f)]=='object')_0x288cc8[_0x5542ad(0x12c)]=getJoiRequest(_0x5ee75a[_0x5542ad(0x129)]);else _0x5ee75a[_0x5542ad(0x12f)]=='array'&&_0x5ee75a[_0x5542ad(0x145)]&&Array['isArray'](_0x5ee75a[_0x5542ad(0x145)])&&_0x5ee75a[_0x5542ad(0x145)][0x0]&&console['log'](_0x13f392+_0x5542ad(0x141),_0x5ee75a);_0x5ee75a[_0x5542ad(0xfd)]&&Array[_0x5542ad(0x123)](_0x5ee75a[_0x5542ad(0xfd)])&&_0x5ee75a['allow']['length']>0x0&&(_0x288cc8['description']=_0x5542ad(0x115)+_0x5ee75a['allow']['join'](',')+'];'+_0x288cc8['description']);if(_0x288cc8[_0x5542ad(0xfb)]&&_0x288cc8['type']){const _0x491abf={};for(const _0x121cd3 of _0x5ee75a[_0x5542ad(0x10f)]||[]){if(_0x121cd3['name']===_0x5542ad(0x10d)&&_0x121cd3['args'])_0x491abf[_0x5542ad(0x10d)]=_0x121cd3['args'][_0x5542ad(0x116)];else _0x121cd3['name']==='max'&&(_0x491abf[_0x5542ad(0x10b)]=_0x121cd3[_0x5542ad(0x102)][_0x5542ad(0x116)]);}_0x288cc8[_0x5542ad(0x10f)]=_0x491abf;}_0x288cc8['key']&&_0x288cc8[_0x5542ad(0xfe)]&&_0x3ac6d4['push'](_0x288cc8);}return _0x3ac6d4;}function convertSchemaType(_0x36ae55){const _0x6295d9=a8_0x398155;switch(_0x36ae55){case'Object':return _0x6295d9(0x112);case _0x6295d9(0x147):return'boolean';case _0x6295d9(0x124):return _0x6295d9(0x13e);case _0x6295d9(0x11f):return _0x6295d9(0x117);case'File':return'file';default:return _0x6295d9(0x117);}}function convertTypeToString(_0xf0725f){const _0x2570ae=a8_0x398155;switch(_0xf0725f){case decorator_1['RouteParamTypes']['HEADERS']:return _0x2570ae(0xfa);case decorator_1[_0x2570ae(0x118)]['QUERY']:return _0x2570ae(0x12e);case decorator_1[_0x2570ae(0x118)][_0x2570ae(0x13b)]:return _0x2570ae(0xf3);case decorator_1['RouteParamTypes'][_0x2570ae(0x122)]:return _0x2570ae(0x148);case decorator_1[_0x2570ae(0x118)][_0x2570ae(0x109)]:case decorator_1[_0x2570ae(0x118)]['FILESSTREAM']:case decorator_1[_0x2570ae(0x118)][_0x2570ae(0xf4)]:return _0x2570ae(0xf5);default:return _0x2570ae(0xfa);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x3b1267=a9_0x227d;(function(_0x31395b,_0x5f311f){var _0x17ced9=a9_0x227d,_0x3da8aa=_0x31395b();while(!![]){try{var _0x3b20f6=parseInt(_0x17ced9(0x10f))/0x1*(-parseInt(_0x17ced9(0x11c))/0x2)+parseInt(_0x17ced9(0x10c))/0x3+-parseInt(_0x17ced9(0x109))/0x4+parseInt(_0x17ced9(0x138))/0x5+parseInt(_0x17ced9(0x11d))/0x6*(-parseInt(_0x17ced9(0x130))/0x7)+-parseInt(_0x17ced9(0x11b))/0x8*(parseInt(_0x17ced9(0x132))/0x9)+parseInt(_0x17ced9(0x12d))/0xa*(parseInt(_0x17ced9(0x134))/0xb);if(_0x3b20f6===_0x5f311f)break;else _0x3da8aa['push'](_0x3da8aa['shift']());}catch(_0xda4a1){_0x3da8aa['push'](_0x3da8aa['shift']());}}}(a9_0x24f4,0x9d4ac));var __createBinding=this&&this[a9_0x3b1267(0x113)]||(Object[a9_0x3b1267(0x125)]?function(_0x4dd394,_0x10fe29,_0x3834f1,_0x3a80c8){var _0x499fce=a9_0x3b1267;if(_0x3a80c8===undefined)_0x3a80c8=_0x3834f1;var _0x1d3b16=Object[_0x499fce(0x133)](_0x10fe29,_0x3834f1);(!_0x1d3b16||(_0x499fce(0x135)in _0x1d3b16?!_0x10fe29[_0x499fce(0x12f)]:_0x1d3b16[_0x499fce(0x129)]||_0x1d3b16[_0x499fce(0x12a)]))&&(_0x1d3b16={'enumerable':!![],'get':function(){return _0x10fe29[_0x3834f1];}}),Object[_0x499fce(0x115)](_0x4dd394,_0x3a80c8,_0x1d3b16);}:function(_0x1b7025,_0x1b9936,_0x265fdc,_0x55dd5f){if(_0x55dd5f===undefined)_0x55dd5f=_0x265fdc;_0x1b7025[_0x55dd5f]=_0x1b9936[_0x265fdc];}),__exportStar=this&&this[a9_0x3b1267(0x126)]||function(_0x5e6d16,_0x3ad975){var _0x5d0a8e=a9_0x3b1267;for(var _0x3773e3 in _0x5e6d16)if(_0x3773e3!==_0x5d0a8e(0x131)&&!Object[_0x5d0a8e(0x13d)][_0x5d0a8e(0x112)][_0x5d0a8e(0x103)](_0x3ad975,_0x3773e3))__createBinding(_0x3ad975,_0x5e6d16,_0x3773e3);};function a9_0x24f4(){var _0x1dd951=['ValidatorService','./configuration','prototype','App','./helper/getRoutes','Query','File','call','CacheService','getRoutes','ApiError','Files','ApiService','1623916kBHeqH','Config','@anncic-api/cache','2617065jxeDKb','@anncic-api/event','@midwayjs/decorator','19nqIyFb','ExcelService','Scope','hasOwnProperty','__createBinding','./service/ApitestService','defineProperty','./decorator/ActionApi','getAppsConfig','Inject','./exception/ApiError','Init','48PyLkBK','85714VrRyZH','6iyidrX','Fields','Api','Action','Headers','ScopeEnum','Provide','Configuration','create','__exportStar','Apitest','Body','writable','configurable','./helper/getAppsConfig','@midwayjs/task','24910940pJrBTc','Logger','__esModule','8378062PZIKKR','default','687708FHKAOK','getOwnPropertyDescriptor','11otnHCj','get','ValidatorError','EventService','782095hoiTYq','QueueService','./decorator/ActionApitest'];a9_0x24f4=function(){return _0x1dd951;};return a9_0x24f4();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x3b1267(0x117)]=exports[a9_0x3b1267(0x122)]=exports[a9_0x3b1267(0x111)]=exports[a9_0x3b1267(0x118)]=exports[a9_0x3b1267(0x123)]=exports['Logger']=exports[a9_0x3b1267(0x10a)]=exports[a9_0x3b1267(0x13e)]=exports[a9_0x3b1267(0x11a)]=exports[a9_0x3b1267(0x121)]=exports['Query']=exports['Param']=exports[a9_0x3b1267(0x128)]=exports[a9_0x3b1267(0x11e)]=exports[a9_0x3b1267(0x107)]=exports[a9_0x3b1267(0x102)]=exports['Configuration']=exports[a9_0x3b1267(0x13b)]=exports[a9_0x3b1267(0x136)]=exports['ExcelService']=exports[a9_0x3b1267(0x108)]=exports['EventService']=exports['CacheService']=exports[a9_0x3b1267(0x139)]=exports[a9_0x3b1267(0x106)]=exports['getRoutes']=exports[a9_0x3b1267(0x127)]=exports['Action']=exports['Api']=void 0x0;const getAppsConfig_1=require(a9_0x3b1267(0x12b));Object['defineProperty'](exports,a9_0x3b1267(0x117),{'enumerable':!![],'get':function(){var _0x439368=a9_0x3b1267;return getAppsConfig_1[_0x439368(0x117)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x3b1267(0x114)),exports);var ActionApi_1=require(a9_0x3b1267(0x116));function a9_0x227d(_0x586426,_0x59bb23){var _0x24f4d6=a9_0x24f4();return a9_0x227d=function(_0x227d73,_0x321c98){_0x227d73=_0x227d73-0x100;var _0x316bea=_0x24f4d6[_0x227d73];return _0x316bea;},a9_0x227d(_0x586426,_0x59bb23);}Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x11f),{'enumerable':!![],'get':function(){var _0x4b4ea2=a9_0x3b1267;return ActionApi_1[_0x4b4ea2(0x11f)];}});var Action_1=require('./decorator/Action');Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x120),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x3b1267(0x13a));Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x127),{'enumerable':!![],'get':function(){var _0xa11289=a9_0x3b1267;return ActionApitest_1[_0xa11289(0x127)];}});var getRoutes_1=require(a9_0x3b1267(0x100));Object['defineProperty'](exports,a9_0x3b1267(0x105),{'enumerable':!![],'get':function(){var _0x2945c4=a9_0x3b1267;return getRoutes_1[_0x2945c4(0x105)];}});var ApiError_1=require(a9_0x3b1267(0x119));Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x106),{'enumerable':!![],'get':function(){var _0x240c5b=a9_0x3b1267;return ApiError_1[_0x240c5b(0x106)];}});var task_1=require(a9_0x3b1267(0x12c));Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x139),{'enumerable':!![],'get':function(){var _0x452c51=a9_0x3b1267;return task_1[_0x452c51(0x139)];}});var cache_1=require(a9_0x3b1267(0x10b));Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x104),{'enumerable':!![],'get':function(){var _0x287375=a9_0x3b1267;return cache_1[_0x287375(0x104)];}});var event_1=require(a9_0x3b1267(0x10d));Object[a9_0x3b1267(0x115)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x5a20fd=a9_0x3b1267;return event_1[_0x5a20fd(0x137)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x108),{'enumerable':!![],'get':function(){var _0x54cad9=a9_0x3b1267;return ApiService_1[_0x54cad9(0x108)];}});var ExcelService_1=require('./service/ExcelService');Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x110),{'enumerable':!![],'get':function(){var _0x574b05=a9_0x3b1267;return ExcelService_1[_0x574b05(0x110)];}});var validator_1=require('@anncic-api/validator');Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x13b),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x3b1267(0x13c));Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x124),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a9_0x3b1267(0x10e));Object['defineProperty'](exports,a9_0x3b1267(0x102),{'enumerable':!![],'get':function(){var _0x2b2d59=a9_0x3b1267;return decorator_1[_0x2b2d59(0x102)];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x107),{'enumerable':!![],'get':function(){var _0x3987f3=a9_0x3b1267;return decorator_1[_0x3987f3(0x107)];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x128),{'enumerable':!![],'get':function(){var _0x2c268d=a9_0x3b1267;return decorator_1[_0x2c268d(0x128)];}}),Object['defineProperty'](exports,'Param',{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x101),{'enumerable':!![],'get':function(){var _0x4b0781=a9_0x3b1267;return decorator_1[_0x4b0781(0x101)];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x121),{'enumerable':!![],'get':function(){var _0x475447=a9_0x3b1267;return decorator_1[_0x475447(0x121)];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x11a),{'enumerable':!![],'get':function(){return decorator_1['Init'];}});var decorator_2=require(a9_0x3b1267(0x10e));Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x13e),{'enumerable':!![],'get':function(){var _0x5b0382=a9_0x3b1267;return decorator_2[_0x5b0382(0x13e)];}}),Object['defineProperty'](exports,a9_0x3b1267(0x10a),{'enumerable':!![],'get':function(){var _0x3c3750=a9_0x3b1267;return decorator_2[_0x3c3750(0x10a)];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x12e),{'enumerable':!![],'get':function(){var _0x12ec03=a9_0x3b1267;return decorator_2[_0x12ec03(0x12e)];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x123),{'enumerable':!![],'get':function(){var _0xa6465d=a9_0x3b1267;return decorator_2[_0xa6465d(0x123)];}}),Object['defineProperty'](exports,'Inject',{'enumerable':!![],'get':function(){var _0x24bbdd=a9_0x3b1267;return decorator_2[_0x24bbdd(0x118)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x3fc88c=a9_0x3b1267;return decorator_2[_0x3fc88c(0x111)];}}),Object[a9_0x3b1267(0x115)](exports,a9_0x3b1267(0x122),{'enumerable':!![],'get':function(){var _0x4414bd=a9_0x3b1267;return decorator_2[_0x4414bd(0x122)];}}),global[a9_0x3b1267(0x117)]=getAppsConfig_1[a9_0x3b1267(0x117)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x501880=a10_0x23e7;(function(_0x138213,_0x597389){var _0x11e09c=a10_0x23e7,_0x5db27a=_0x138213();while(!![]){try{var _0x3ba865=-parseInt(_0x11e09c(0x1b2))/0x1+-parseInt(_0x11e09c(0x1a2))/0x2*(parseInt(_0x11e09c(0x1b1))/0x3)+-parseInt(_0x11e09c(0x1ab))/0x4*(parseInt(_0x11e09c(0x193))/0x5)+-parseInt(_0x11e09c(0x199))/0x6*(parseInt(_0x11e09c(0x19e))/0x7)+-parseInt(_0x11e09c(0x1b7))/0x8+parseInt(_0x11e09c(0x18f))/0x9*(-parseInt(_0x11e09c(0x1ac))/0xa)+parseInt(_0x11e09c(0x1bb))/0xb*(parseInt(_0x11e09c(0x1b4))/0xc);if(_0x3ba865===_0x597389)break;else _0x5db27a['push'](_0x5db27a['shift']());}catch(_0x51113f){_0x5db27a['push'](_0x5db27a['shift']());}}}(a10_0x3be4,0xa5e7a));function a10_0x23e7(_0x368823,_0x1951e2){var _0x3be466=a10_0x3be4();return a10_0x23e7=function(_0x23e760,_0xb7fdb2){_0x23e760=_0x23e760-0x185;var _0x4d4fe3=_0x3be466[_0x23e760];return _0x4d4fe3;},a10_0x23e7(_0x368823,_0x1951e2);}var __decorate=this&&this[a10_0x501880(0x1a3)]||function(_0x54d61f,_0x52b264,_0x26fe62,_0x43d2ed){var _0x374fcb=a10_0x501880,_0x49a003=arguments[_0x374fcb(0x1a4)],_0x457699=_0x49a003<0x3?_0x52b264:_0x43d2ed===null?_0x43d2ed=Object[_0x374fcb(0x1a8)](_0x52b264,_0x26fe62):_0x43d2ed,_0x309837;if(typeof Reflect==='object'&&typeof Reflect[_0x374fcb(0x1a9)]===_0x374fcb(0x197))_0x457699=Reflect[_0x374fcb(0x1a9)](_0x54d61f,_0x52b264,_0x26fe62,_0x43d2ed);else{for(var _0x4a8220=_0x54d61f[_0x374fcb(0x1a4)]-0x1;_0x4a8220>=0x0;_0x4a8220--)if(_0x309837=_0x54d61f[_0x4a8220])_0x457699=(_0x49a003<0x3?_0x309837(_0x457699):_0x49a003>0x3?_0x309837(_0x52b264,_0x26fe62,_0x457699):_0x309837(_0x52b264,_0x26fe62))||_0x457699;}return _0x49a003>0x3&&_0x457699&&Object[_0x374fcb(0x187)](_0x52b264,_0x26fe62,_0x457699),_0x457699;},__metadata=this&&this[a10_0x501880(0x1b8)]||function(_0x31a79a,_0x4d5a4b){var _0x4c36a3=a10_0x501880;if(typeof Reflect==='object'&&typeof Reflect[_0x4c36a3(0x1b6)]===_0x4c36a3(0x197))return Reflect['metadata'](_0x31a79a,_0x4d5a4b);};Object[a10_0x501880(0x187)](exports,a10_0x501880(0x19a),{'value':!![]}),exports[a10_0x501880(0x191)]=void 0x0;const crypto_js_1=require(a10_0x501880(0x18c)),decorator_1=require(a10_0x501880(0x1a5)),ApiError_1=require(a10_0x501880(0x192));function a10_0x3be4(){var _0x5700fa=['anncicapi','toLowerCase','缺少头信息:signature','defineProperty','TIMEOUT','join','map','secret=','crypto-js','ApiError','entries','8757titWvu','now','ApiService','../exception/ApiError','1070170Zcwdim','sort','timeout','device','function','HEADERS_DEVICE','588BJXzEy','__esModule','toString','password','abs','54453LimqMS','HEADERS_SIGNATURE','signature','config','12dsSoVP','__decorate','length','@midwayjs/decorator','MD5','prototype','getOwnPropertyDescriptor','decorate','getsign','4uBdOAw','13280DQwnwu','token','fromEntries','devices','HEADERS_CHECKCODE','447519pmUBmm','303110rZjAOc','checkcode','9348888zoriGu','secret','metadata','10458432hNSBhq','__metadata','requesttime','design:type','77oipMPv','缺少头信息:','undefined'];a10_0x3be4=function(){return _0x5700fa;};return a10_0x3be4();}let ApiService=class ApiService{[a10_0x501880(0x19c)](_0x18277a){var _0x92a7e7=a10_0x501880,_0x40ed72;return _0x18277a?(0x0,crypto_js_1[_0x92a7e7(0x1a6)])(_0x18277a+(0x0,crypto_js_1[_0x92a7e7(0x1a6)])((0x0,crypto_js_1['MD5'])(_0x18277a)[_0x92a7e7(0x19b)]()+((_0x40ed72=this[_0x92a7e7(0x1a1)])===null||_0x40ed72===void 0x0?void 0x0:_0x40ed72['password']))[_0x92a7e7(0x19b)]())[_0x92a7e7(0x19b)]():'';}['getcheck'](_0x5c6530,_0x24f01f,_0x45a1ce=Date[a10_0x501880(0x190)]()){var _0x2de458=a10_0x501880;return{'Token':_0x5c6530,'Logintime':_0x45a1ce,'Checkcode':this[_0x2de458(0x1b3)](_0x5c6530,_0x24f01f,_0x45a1ce)};}[a10_0x501880(0x1aa)](_0x1bf3f2={}){var _0x41634f=a10_0x501880;const _0x24b924=[],_0x44dc83=Object['fromEntries'](Object[_0x41634f(0x18e)](_0x1bf3f2)[_0x41634f(0x18a)](_0x2c2454=>[_0x2c2454[0x0][_0x41634f(0x185)](),_0x2c2454[0x1]]));for(let _0x335f47 of[_0x41634f(0x196),_0x41634f(0x1b9),_0x41634f(0x1ad),'logintime',_0x41634f(0x1b3)]){if(typeof _0x44dc83[_0x335f47]==_0x41634f(0x1bd))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x41634f(0x1bc)+_0x335f47});_0x24b924['push'](_0x335f47+'='+_0x44dc83[_0x335f47]);}if(Math[_0x41634f(0x19d)](_0x44dc83[_0x41634f(0x1b9)])-Date[_0x41634f(0x190)]()>this[_0x41634f(0x1a1)][_0x41634f(0x195)])throw new AnnError(ApiError_1[_0x41634f(0x18d)][_0x41634f(0x188)]);if(!this[_0x41634f(0x1a1)][_0x41634f(0x1af)][_0x44dc83[_0x41634f(0x196)]]||!this[_0x41634f(0x1a1)][_0x41634f(0x1af)][_0x44dc83[_0x41634f(0x196)]]['secret']||!this[_0x41634f(0x1a1)]['devices'][_0x44dc83[_0x41634f(0x196)]][_0x41634f(0x1b3)])throw new AnnError(ApiError_1['ApiError'][_0x41634f(0x198)]);if(_0x44dc83[_0x41634f(0x1ad)]&&_0x44dc83[_0x41634f(0x1b3)]!=this['checkcode'](_0x44dc83[_0x41634f(0x1ad)],_0x44dc83[_0x41634f(0x196)],_0x44dc83['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x41634f(0x1b0)]);return _0x24b924['push'](_0x41634f(0x18b)+this[_0x41634f(0x1a1)][_0x41634f(0x1af)][_0x44dc83[_0x41634f(0x196)]][_0x41634f(0x1b5)]),(0x0,crypto_js_1[_0x41634f(0x1a6)])(_0x24b924[_0x41634f(0x194)]()[_0x41634f(0x189)](''))['toString']();}[a10_0x501880(0x1b3)](_0x1cb9b3,_0x51863c,_0x44526d=Date[a10_0x501880(0x190)]()){var _0x19c31a=a10_0x501880,_0x28ab42,_0x1f6a0e,_0x17036b;if(!((_0x28ab42=this[_0x19c31a(0x1a1)])===null||_0x28ab42===void 0x0?void 0x0:_0x28ab42[_0x19c31a(0x1af)][_0x51863c])||!((_0x17036b=(_0x1f6a0e=this[_0x19c31a(0x1a1)])===null||_0x1f6a0e===void 0x0?void 0x0:_0x1f6a0e['devices'][_0x51863c])===null||_0x17036b===void 0x0?void 0x0:_0x17036b['checkcode']))throw new AnnError(ApiError_1[_0x19c31a(0x18d)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x19c31a(0x1a6)])(_0x1cb9b3+(0x0,crypto_js_1[_0x19c31a(0x1a6)])(_0x44526d+this[_0x19c31a(0x1a1)]['devices'][_0x51863c]['checkcode'])[_0x19c31a(0x19b)]())[_0x19c31a(0x19b)]();}['checksign'](_0x315f5e={}){var _0x445466=a10_0x501880;const _0x42fb81=Object[_0x445466(0x1ae)](Object[_0x445466(0x18e)](_0x315f5e)[_0x445466(0x18a)](_0x4a41c=>[_0x4a41c[0x0][_0x445466(0x185)](),_0x4a41c[0x1]]));if(!(_0x42fb81===null||_0x42fb81===void 0x0?void 0x0:_0x42fb81[_0x445466(0x1a0)]))throw new AnnError(ApiError_1[_0x445466(0x18d)]['HEADERS_LACK'],{'message':_0x445466(0x186)});if((_0x42fb81===null||_0x42fb81===void 0x0?void 0x0:_0x42fb81[_0x445466(0x1a0)])!=this[_0x445466(0x1aa)](_0x42fb81))throw new AnnError(ApiError_1[_0x445466(0x18d)][_0x445466(0x19f)]);return!![];}};__decorate([(0x0,decorator_1['Config'])(a10_0x501880(0x1be)),__metadata(a10_0x501880(0x1ba),Object)],ApiService[a10_0x501880(0x1a7)],a10_0x501880(0x1a1),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum']['Singleton'])],ApiService),exports[a10_0x501880(0x191)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x233598=a11_0x4b64;(function(_0x40e199,_0xe75090){const _0x6d374e=a11_0x4b64,_0x54e575=_0x40e199();while(!![]){try{const _0xd367c0=parseInt(_0x6d374e(0x188))/0x1+-parseInt(_0x6d374e(0x161))/0x2*(-parseInt(_0x6d374e(0x159))/0x3)+-parseInt(_0x6d374e(0x18b))/0x4*(parseInt(_0x6d374e(0x194))/0x5)+-parseInt(_0x6d374e(0x149))/0x6+parseInt(_0x6d374e(0x16e))/0x7*(-parseInt(_0x6d374e(0x16f))/0x8)+parseInt(_0x6d374e(0x166))/0x9+-parseInt(_0x6d374e(0x16a))/0xa;if(_0xd367c0===_0xe75090)break;else _0x54e575['push'](_0x54e575['shift']());}catch(_0x1e7be2){_0x54e575['push'](_0x54e575['shift']());}}}(a11_0x4bea,0xaac82));function a11_0x4bea(){const _0x5c6cb6=['extname','ApitestService','method','2238715hxOrCr','Get','__devices__','metadata','filepath','1603392MxRpkE','Inject','apitest','request','.js','readFileSync','defineProperty','prototype','ApitestStaticController','public,\x20max-age=604800','apitesthtml','/apiteststatic/','ScopeEnum','Controller','Param','@midwayjs/core','1581xztPQB','/apitest-:module','../helper/getRoutes','stringify','@midwayjs/decorator','text/css;\x20charset=utf-8','isDevelopmentEnvironment','/apiteststatic/*','4754ZFlQyE','decorate','utf-8','join','replace','8621550zQFcdB','getRoutes','apiteststatic','design:paramtypes','6031860ENupoj','content-type','module','description','4712449QkRiUW','8JwJgRD','push','/apitest','object','Request','apidoc','design:returntype','design:type','Config','ctx','length','cache-control','MidwayEnvironmentService','__metadata','summary','__param','anncicapi','Environment','application/javascript;\x20charset=utf-8','Scope','Provide','devices','__esModule','existsSync','config','1375747dWkyVO','url','function','12SApTQC','set','prefix','routes','route','apitestmodule'];a11_0x4bea=function(){return _0x5c6cb6;};return a11_0x4bea();}var __decorate=this&&this['__decorate']||function(_0x4a4ee7,_0x535059,_0x4bc9d3,_0x3dd6a9){const _0xf62d9d=a11_0x4b64;var _0x2934da=arguments[_0xf62d9d(0x179)],_0x9774ae=_0x2934da<0x3?_0x535059:_0x3dd6a9===null?_0x3dd6a9=Object['getOwnPropertyDescriptor'](_0x535059,_0x4bc9d3):_0x3dd6a9,_0x108948;if(typeof Reflect===_0xf62d9d(0x172)&&typeof Reflect['decorate']===_0xf62d9d(0x18a))_0x9774ae=Reflect[_0xf62d9d(0x162)](_0x4a4ee7,_0x535059,_0x4bc9d3,_0x3dd6a9);else{for(var _0x3b5f2a=_0x4a4ee7[_0xf62d9d(0x179)]-0x1;_0x3b5f2a>=0x0;_0x3b5f2a--)if(_0x108948=_0x4a4ee7[_0x3b5f2a])_0x9774ae=(_0x2934da<0x3?_0x108948(_0x9774ae):_0x2934da>0x3?_0x108948(_0x535059,_0x4bc9d3,_0x9774ae):_0x108948(_0x535059,_0x4bc9d3))||_0x9774ae;}return _0x2934da>0x3&&_0x9774ae&&Object[_0xf62d9d(0x14f)](_0x535059,_0x4bc9d3,_0x9774ae),_0x9774ae;},__metadata=this&&this[a11_0x233598(0x17c)]||function(_0x5b58ff,_0x10e3fc){const _0x3560d9=a11_0x233598;if(typeof Reflect==='object'&&typeof Reflect[_0x3560d9(0x197)]==='function')return Reflect['metadata'](_0x5b58ff,_0x10e3fc);},__param=this&&this[a11_0x233598(0x17e)]||function(_0x3156d0,_0x4e66d5){return function(_0x47d245,_0x5a5a7a){_0x4e66d5(_0x47d245,_0x5a5a7a,_0x3156d0);};};Object[a11_0x233598(0x14f)](exports,a11_0x233598(0x185),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x233598(0x192)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x233598(0x158)),decorator_1=require(a11_0x233598(0x15d)),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require(a11_0x233598(0x15b));function a11_0x4b64(_0x12ef97,_0x457b3b){const _0x4bea8=a11_0x4bea();return a11_0x4b64=function(_0x4b646f,_0x3369cb){_0x4b646f=_0x4b646f-0x149;let _0x34091a=_0x4bea8[_0x4b646f];return _0x34091a;},a11_0x4b64(_0x12ef97,_0x457b3b);}let ApitestService=class ApitestService{async[a11_0x233598(0x174)](_0x2385ab){const _0x395b2d=a11_0x233598,_0x1ccebf=(0x0,getRoutes_1[_0x395b2d(0x167)])(_0x2385ab),_0x5afad2=[];for(let _0x3a0fcc in _0x1ccebf){for(let _0x12c2bc in _0x1ccebf[_0x3a0fcc][_0x395b2d(0x18e)]){let _0x22357a=_0x1ccebf[_0x3a0fcc][_0x395b2d(0x18e)][_0x12c2bc],_0x178892=[];for(let _0x2f6e3a in _0x22357a['request']){_0x178892[_0x395b2d(0x170)](_0x22357a['request'][_0x2f6e3a]);}_0x5afad2[_0x395b2d(0x170)]({'title':_0x1ccebf[_0x3a0fcc][_0x395b2d(0x17d)]+':'+_0x22357a[_0x395b2d(0x17d)],'prefix':_0x1ccebf[_0x3a0fcc][_0x395b2d(0x18d)],'router':_0x22357a[_0x395b2d(0x18f)],'method':_0x22357a[_0x395b2d(0x193)],'describe':_0x22357a[_0x395b2d(0x16d)]||'','filepath':_0x1ccebf[_0x3a0fcc][_0x395b2d(0x198)]||'','request':_0x178892});}}const _0x2ec58e=(0x0,path_1[_0x395b2d(0x164)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x395b2d(0x14e)])(_0x2ec58e,{'encoding':_0x395b2d(0x163)})[_0x395b2d(0x165)](/__res__/g,_0x395b2d(0x154))[_0x395b2d(0x165)]('__apiList__',JSON[_0x395b2d(0x15c)](_0x5afad2))[_0x395b2d(0x165)](_0x395b2d(0x196),JSON[_0x395b2d(0x15c)](this[_0x395b2d(0x187)][_0x395b2d(0x184)]));}};__decorate([(0x0,decorator_2['Config'])(a11_0x233598(0x17f)),__metadata('design:type',Object)],ApitestService[a11_0x233598(0x150)],a11_0x233598(0x187),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x233598(0x183)])(a11_0x233598(0x14b)),(0x0,decorator_2['Scope'])(decorator_2[a11_0x233598(0x155)]['Singleton'])],ApitestService),exports[a11_0x233598(0x192)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x233598(0x153)](){const _0x89f36d=a11_0x233598;if(this[_0x89f36d(0x14b)]){const _0x3da33c={'module':![]};return this[_0x89f36d(0x180)][_0x89f36d(0x15f)]()&&(_0x3da33c[_0x89f36d(0x198)]=!![]),await this[_0x89f36d(0x192)][_0x89f36d(0x174)](_0x3da33c);}return'';}async[a11_0x233598(0x190)](_0x4d8269){const _0x45381d=a11_0x233598;if(this[_0x45381d(0x14b)]){const _0x38433d={'module':_0x4d8269};return this[_0x45381d(0x180)][_0x45381d(0x15f)]()&&(_0x38433d['filepath']=!![]),await this[_0x45381d(0x192)][_0x45381d(0x174)](_0x38433d);}return'';}async['apiteststatic'](){const _0x23371b=a11_0x233598;if((0x0,path_1[_0x23371b(0x191)])(this[_0x23371b(0x178)][_0x23371b(0x14c)][_0x23371b(0x189)])){var _0x2731d1=(0x0,path_1[_0x23371b(0x164)])(__dirname,'../../public/'+this[_0x23371b(0x178)][_0x23371b(0x14c)]['url'][_0x23371b(0x165)](_0x23371b(0x154),'/'));if(_0x2731d1['substring'](_0x2731d1[_0x23371b(0x179)]-0xb)!='/index.html'){this[_0x23371b(0x178)]['set'](_0x23371b(0x17a),_0x23371b(0x152));if((0x0,path_1['extname'])(this[_0x23371b(0x178)][_0x23371b(0x14c)][_0x23371b(0x189)])==_0x23371b(0x14d))this[_0x23371b(0x178)][_0x23371b(0x18c)](_0x23371b(0x16b),_0x23371b(0x181));else(0x0,path_1[_0x23371b(0x191)])(this['ctx'][_0x23371b(0x14c)][_0x23371b(0x189)])=='.css'&&this[_0x23371b(0x178)][_0x23371b(0x18c)](_0x23371b(0x16b),_0x23371b(0x15e));return(0x0,fs_1[_0x23371b(0x186)])(_0x2731d1)&&(0x0,fs_1[_0x23371b(0x14e)])(_0x2731d1,{'encoding':_0x23371b(0x163)});}}return'';}};__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x233598(0x176),Object)],ApitestStaticController[a11_0x233598(0x150)],a11_0x233598(0x178),void 0x0),__decorate([(0x0,decorator_2[a11_0x233598(0x14a)])(),__metadata('design:type',core_1[a11_0x233598(0x17b)])],ApitestStaticController[a11_0x233598(0x150)],'Environment',void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x233598(0x176),ApitestService)],ApitestStaticController[a11_0x233598(0x150)],a11_0x233598(0x192),void 0x0),__decorate([(0x0,decorator_2[a11_0x233598(0x177)])('apitest'),__metadata(a11_0x233598(0x176),Boolean)],ApitestStaticController['prototype'],a11_0x233598(0x14b),void 0x0),__decorate([(0x0,decorator_2[a11_0x233598(0x177)])(a11_0x233598(0x17f)),__metadata('design:type',Object)],ApitestStaticController[a11_0x233598(0x150)],a11_0x233598(0x187),void 0x0),__decorate([(0x0,decorator_1['Get'])(a11_0x233598(0x171)),__metadata(a11_0x233598(0x176),Function),__metadata(a11_0x233598(0x169),[]),__metadata(a11_0x233598(0x175),Promise)],ApitestStaticController[a11_0x233598(0x150)],a11_0x233598(0x153),null),__decorate([(0x0,decorator_1[a11_0x233598(0x195)])(a11_0x233598(0x15a)),__param(0x0,(0x0,decorator_1[a11_0x233598(0x157)])(a11_0x233598(0x16c))),__metadata(a11_0x233598(0x176),Function),__metadata(a11_0x233598(0x169),[String]),__metadata(a11_0x233598(0x175),Promise)],ApitestStaticController[a11_0x233598(0x150)],a11_0x233598(0x190),null),__decorate([(0x0,decorator_1[a11_0x233598(0x195)])(a11_0x233598(0x160)),__metadata('design:type',Function),__metadata(a11_0x233598(0x169),[]),__metadata(a11_0x233598(0x175),Promise)],ApitestStaticController[a11_0x233598(0x150)],a11_0x233598(0x168),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x233598(0x156)])('/'),(0x0,decorator_2[a11_0x233598(0x182)])(decorator_2['ScopeEnum'][a11_0x233598(0x173)])],ApitestStaticController),exports[a11_0x233598(0x151)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x1968ef=a12_0x2eed;(function(_0x5d7864,_0x2eb703){const _0x48224f=a12_0x2eed,_0x49eac1=_0x5d7864();while(!![]){try{const _0x1571c8=-parseInt(_0x48224f(0x95))/0x1+-parseInt(_0x48224f(0x9d))/0x2*(-parseInt(_0x48224f(0xad))/0x3)+parseInt(_0x48224f(0xc4))/0x4*(-parseInt(_0x48224f(0xb6))/0x5)+parseInt(_0x48224f(0xa7))/0x6+-parseInt(_0x48224f(0xc9))/0x7*(parseInt(_0x48224f(0xa9))/0x8)+parseInt(_0x48224f(0xc7))/0x9+parseInt(_0x48224f(0xd4))/0xa;if(_0x1571c8===_0x2eb703)break;else _0x49eac1['push'](_0x49eac1['shift']());}catch(_0x2d419d){_0x49eac1['push'](_0x49eac1['shift']());}}}(a12_0x1599,0xf1d82));var __decorate=this&&this['__decorate']||function(_0x1dae9b,_0x5afec4,_0x5226b9,_0x3b5b97){const _0x578343=a12_0x2eed;var _0x406099=arguments[_0x578343(0xbb)],_0x4b9668=_0x406099<0x3?_0x5afec4:_0x3b5b97===null?_0x3b5b97=Object['getOwnPropertyDescriptor'](_0x5afec4,_0x5226b9):_0x3b5b97,_0x174021;if(typeof Reflect===_0x578343(0xc0)&&typeof Reflect[_0x578343(0xab)]===_0x578343(0x9a))_0x4b9668=Reflect[_0x578343(0xab)](_0x1dae9b,_0x5afec4,_0x5226b9,_0x3b5b97);else{for(var _0x2a75ec=_0x1dae9b[_0x578343(0xbb)]-0x1;_0x2a75ec>=0x0;_0x2a75ec--)if(_0x174021=_0x1dae9b[_0x2a75ec])_0x4b9668=(_0x406099<0x3?_0x174021(_0x4b9668):_0x406099>0x3?_0x174021(_0x5afec4,_0x5226b9,_0x4b9668):_0x174021(_0x5afec4,_0x5226b9))||_0x4b9668;}return _0x406099>0x3&&_0x4b9668&&Object[_0x578343(0xae)](_0x5afec4,_0x5226b9,_0x4b9668),_0x4b9668;},__metadata=this&&this[a12_0x1968ef(0xc5)]||function(_0x519f50,_0x18cecd){const _0xb2b67a=a12_0x1968ef;if(typeof Reflect===_0xb2b67a(0xc0)&&typeof Reflect[_0xb2b67a(0x94)]==='function')return Reflect['metadata'](_0x519f50,_0x18cecd);};Object[a12_0x1968ef(0xae)](exports,a12_0x1968ef(0xce),{'value':!![]}),exports[a12_0x1968ef(0xb2)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1968ef(0xcf)),koasend=require(a12_0x1968ef(0xa8)),decorator_1=require(a12_0x1968ef(0xb3));let ExcelService=class ExcelService{async['parse'](_0x2b6e34,_0x25b109,_0x3e0689=[0x0]){const _0x38580c=a12_0x1968ef;var _0x1cd77a,_0x101762;const _0x21b924=new exceljs[(_0x38580c(0xcd))](),_0x992e6e=[];let _0x397949=_0x2b6e34[_0x38580c(0xb1)](/(\\|\/)/g,'/')[_0x38580c(0xb1)](/\/{2,}/g,'/');!(_0x397949===null||_0x397949===void 0x0?void 0x0:_0x397949[_0x38580c(0x9e)]('/'))&&(_0x397949=this[_0x38580c(0xb9)][_0x38580c(0xbc)]()+'/'+_0x397949);try{await _0x21b924[_0x38580c(0xd3)][_0x38580c(0xbe)](_0x397949);}catch(_0x269352){return console[_0x38580c(0xcb)](_0x38580c(0xc1)+_0x397949+'\x20is\x20read\x20fail'),_0x992e6e;}for(const _0x2280e5 of _0x3e0689){const _0x114745=lodash[_0x38580c(0x9c)](_0x2280e5)?((_0x1cd77a=_0x21b924[_0x38580c(0xa0)])===null||_0x1cd77a===void 0x0?void 0x0:_0x1cd77a[_0x2280e5])||undefined:_0x21b924[_0x38580c(0xac)](_0x2280e5);if(_0x114745){var _0x4416a2=0x1;const _0x1fafe5=_0x114745[_0x38580c(0xb0)](0x1),_0x4deb14=await new Promise(_0x20ad77=>{const _0x5c282b=_0x38580c,_0x137a5b={};_0x1fafe5[_0x5c282b(0x9f)]((_0x3f31a5,_0x56d8d9)=>{const _0x1bfc0a=_0x5c282b;for(const _0x4ad765 of _0x25b109){if(_0x3f31a5[_0x1bfc0a(0x98)]==_0x4ad765[_0x1bfc0a(0xbf)])_0x4416a2=0x2,_0x137a5b[_0x4ad765[_0x1bfc0a(0xd0)]]={'header':_0x3f31a5[_0x1bfc0a(0x97)],'handler':_0x4ad765[_0x1bfc0a(0x9b)]};else{if(!_0x137a5b[_0x4ad765['key']])try{const _0x1c72cc=_0x1fafe5['getCell'](_0x4ad765[_0x1bfc0a(0xbf)]);_0x1c72cc&&(_0x137a5b[_0x4ad765['key']]={'header':_0x1c72cc['col'],'handler':_0x4ad765['handler']});}catch{}}}_0x1fafe5[_0x1bfc0a(0xc8)]==_0x56d8d9&&_0x20ad77(_0x137a5b);});});for(const _0x3055cd of _0x114745[_0x38580c(0xb5)](_0x4416a2,_0x114745['rowCount'])){const _0x2f28dd={};for(const _0x156eaa in _0x4deb14){_0x4deb14[_0x156eaa][_0x38580c(0xbf)]&&(typeof((_0x101762=_0x4deb14[_0x156eaa])===null||_0x101762===void 0x0?void 0x0:_0x101762[_0x38580c(0x9b)])==_0x38580c(0x9a)?_0x2f28dd[_0x156eaa]=_0x4deb14[_0x156eaa]['handler'](_0x3055cd[_0x38580c(0xa2)](lodash['trim'](''+_0x4deb14[_0x156eaa]['header'],'\x20'))[_0x38580c(0xa1)]()):_0x2f28dd[_0x156eaa]=_0x3055cd[_0x38580c(0xa2)](_0x4deb14[_0x156eaa][_0x38580c(0xbf)])[_0x38580c(0xa1)]());}Object[_0x38580c(0xa6)](_0x2f28dd)['length']>0x0&&_0x992e6e[_0x38580c(0xb8)](_0x2f28dd);}}}return _0x992e6e;}async['export'](_0x4e7929,_0x286da2,_0x55356e,_0x328cfd=a12_0x1968ef(0xd5)){const _0x137138=a12_0x1968ef;var _0x43ab0a,_0x5828a3;const _0x4caf86=new exceljs[(_0x137138(0xcd))](),_0x57874b={},_0x46f41a=[],_0x54fcc5=_0x4caf86[_0x137138(0xcc)]('Sheet\x201',{'views':[{'state':_0x137138(0xd2),'xSplit':0x1}]});for(const _0x3e0a3f in _0x286da2){_0x57874b[_0x286da2[_0x3e0a3f][_0x137138(0xd0)]]=_0x286da2[_0x3e0a3f]['header'],_0x46f41a[_0x137138(0xb8)]({'header':_0x286da2[_0x3e0a3f][_0x137138(0xbf)],'key':(_0x43ab0a=_0x286da2[_0x3e0a3f])===null||_0x43ab0a===void 0x0?void 0x0:_0x43ab0a['key']['replace'](/\./g,'_')});}_0x54fcc5[_0x137138(0xc2)]=_0x46f41a;for(const _0x2d1498 of _0x55356e){const _0x28bf90={};for(const _0x5884ca in _0x286da2){typeof((_0x5828a3=_0x286da2[_0x5884ca])===null||_0x5828a3===void 0x0?void 0x0:_0x5828a3['handler'])=='function'?_0x28bf90[_0x286da2[_0x5884ca][_0x137138(0xd0)][_0x137138(0xb1)](/\./g,'_')]=await _0x286da2[_0x5884ca][_0x137138(0x9b)](_0x2d1498):_0x28bf90[_0x286da2[_0x5884ca][_0x137138(0xd0)][_0x137138(0xb1)](/\./g,'_')]=lodash[_0x137138(0xb7)](_0x2d1498,_0x286da2[_0x5884ca][_0x137138(0xd0)],'');}_0x54fcc5[_0x137138(0xaf)](_0x28bf90);}let _0x454306='';const _0x4c1fbb=_0x4e7929+'-'+lodash['random'](0x2710,0x1869f)+_0x137138(0xc6);if(_0x328cfd&&_0x328cfd[_0x137138(0x9e)]('/'))_0x454306=''+_0x328cfd;else _0x328cfd&&!_0x328cfd[_0x137138(0x9e)]('/')&&!_0x328cfd['startsWith']('\x5c')?_0x454306=this[_0x137138(0xb9)][_0x137138(0xbc)]()+'/'+_0x328cfd:_0x454306=this[_0x137138(0xb9)][_0x137138(0xbc)]()+_0x137138(0xa3);return(_0x454306[_0x137138(0xc3)]('/')||_0x454306[_0x137138(0xc3)]('\x5c'))&&(_0x454306=_0x454306[_0x137138(0x93)](0x0,_0x454306[_0x137138(0xbb)]-0x1)),_0x454306=_0x454306[_0x137138(0xb1)](/(\\|\/)/g,'/')[_0x137138(0xb1)](/\/{2,}/g,'/'),!fs[_0x137138(0xa4)](_0x454306)&&fs[_0x137138(0x99)](_0x454306,{'recursive':!![]}),await _0x4caf86[_0x137138(0xd3)][_0x137138(0xa5)]((_0x454306+'/'+_0x4c1fbb)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x4c1fbb,'filepath':(_0x454306[_0x137138(0x93)]((''+this['app'][_0x137138(0xbc)]())[_0x137138(0xbb)])+'/'+_0x4c1fbb)[_0x137138(0xb1)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0x1968ef(0xca)](_0x44aa7b,_0x40acc3){return await koasend(_0x44aa7b,''+_0x40acc3);}};function a12_0x2eed(_0x2a731b,_0x2d1f2c){const _0x1599dc=a12_0x1599();return a12_0x2eed=function(_0x2eed5d,_0x12decf){_0x2eed5d=_0x2eed5d-0x93;let _0x47fe14=_0x1599dc[_0x2eed5d];return _0x47fe14;},a12_0x2eed(_0x2a731b,_0x2d1f2c);}function a12_0x1599(){const _0x38cc4b=['__esModule','exceljs','key','design:type','frozen','xlsx','31787270pKwYLf','public/xlsx','substring','metadata','814629CWDgSV','Provide','col','value','mkdirSync','function','handler','isNumber','157004hZcfED','startsWith','eachCell','worksheets','toString','getCell','/public/xlsx','existsSync','writeFile','keys','322056ERQMgA','koa-send','200itSqGa','App','decorate','getWorksheet','6tQVCPl','defineProperty','addRow','getRow','replace','ExcelService','@midwayjs/decorator','Scope','findRows','20RMiMxk','get','push','app','Singleton','length','getAppDir','ScopeEnum','readFile','header','object','Api\x20Excel\x20Error:\x20','columns','endsWith','988964UTnTYt','__metadata','.xlsx','789345DMBoNJ','cellCount','191219dckUpk','download','log','addWorksheet','Workbook'];a12_0x1599=function(){return _0x38cc4b;};return a12_0x1599();}__decorate([(0x0,decorator_1[a12_0x1968ef(0xaa)])(),__metadata(a12_0x1968ef(0xd1),Object)],ExcelService['prototype'],a12_0x1968ef(0xb9),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x1968ef(0x96)])(),(0x0,decorator_1[a12_0x1968ef(0xb4)])(decorator_1[a12_0x1968ef(0xbd)][a12_0x1968ef(0xba)])],ExcelService),exports[a12_0x1968ef(0xb2)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a13_0x2a62ef=a13_0x53a2;(function(_0x1e24f3,_0x2945b4){var _0x219e8e=a13_0x53a2,_0x24f599=_0x1e24f3();while(!![]){try{var _0x1968d4=parseInt(_0x219e8e(0x14c))/0x1+parseInt(_0x219e8e(0x14e))/0x2+parseInt(_0x219e8e(0x14a))/0x3*(parseInt(_0x219e8e(0x14b))/0x4)+parseInt(_0x219e8e(0x155))/0x5*(-parseInt(_0x219e8e(0x151))/0x6)+parseInt(_0x219e8e(0x14d))/0x7*(parseInt(_0x219e8e(0x146))/0x8)+parseInt(_0x219e8e(0x150))/0x9+-parseInt(_0x219e8e(0x152))/0xa;if(_0x1968d4===_0x2945b4)break;else _0x24f599['push'](_0x24f599['shift']());}catch(_0x3125cd){_0x24f599['push'](_0x24f599['shift']());}}}(a13_0x3699,0x9fc9d));function a13_0x3699(){var _0x50c4ad=['3857058EOUUWW','1362PaBZDI','20880050YuCdSq','ACTION_ROUTE_KEY','__esModule','7835VdTtNK','anncic-api:apps:config','33720MmDmhi','APPSCONFIG_KEY','anncic-api:action','AppsConfigTmp','1077ABWFmq','668hYqwik','1233493igIalf','1687JKvlts','720768hIuDjZ','ACTION_KEY'];a13_0x3699=function(){return _0x50c4ad;};return a13_0x3699();}Object['defineProperty'](exports,a13_0x2a62ef(0x154),{'value':!![]}),exports[a13_0x2a62ef(0x149)]=exports[a13_0x2a62ef(0x147)]=exports[a13_0x2a62ef(0x153)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x2a62ef(0x14f)]=a13_0x2a62ef(0x148),exports['ACTION_ROUTE_KEY']='anncic-api:action:route',exports[a13_0x2a62ef(0x147)]=a13_0x2a62ef(0x156);class AppsConfigTmp{}function a13_0x53a2(_0x2398b0,_0x26329e){var _0x369930=a13_0x3699();return a13_0x53a2=function(_0x53a2b1,_0x3b7c12){_0x53a2b1=_0x53a2b1-0x146;var _0x3e5f33=_0x369930[_0x53a2b1];return _0x3e5f33;},a13_0x53a2(_0x2398b0,_0x26329e);}exports[a13_0x2a62ef(0x149)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a14_0x4e30(_0x58ce8f,_0x4bbe56){var _0x160cf3=a14_0x160c();return a14_0x4e30=function(_0x4e30d1,_0x47b6dd){_0x4e30d1=_0x4e30d1-0xe0;var _0x2a50db=_0x160cf3[_0x4e30d1];return _0x2a50db;},a14_0x4e30(_0x58ce8f,_0x4bbe56);}var a14_0x3684d1=a14_0x4e30;(function(_0x5e532d,_0x10c5ef){var _0x2d2c39=a14_0x4e30,_0x250344=_0x5e532d();while(!![]){try{var _0x3e388d=parseInt(_0x2d2c39(0xf6))/0x1*(-parseInt(_0x2d2c39(0xe2))/0x2)+-parseInt(_0x2d2c39(0xed))/0x3+-parseInt(_0x2d2c39(0xe3))/0x4+-parseInt(_0x2d2c39(0xe6))/0x5*(-parseInt(_0x2d2c39(0xe5))/0x6)+parseInt(_0x2d2c39(0xff))/0x7+-parseInt(_0x2d2c39(0xea))/0x8+parseInt(_0x2d2c39(0xe8))/0x9;if(_0x3e388d===_0x10c5ef)break;else _0x250344['push'](_0x250344['shift']());}catch(_0x1a3678){_0x250344['push'](_0x250344['shift']());}}}(a14_0x160c,0x778e9));var __decorate=this&&this['__decorate']||function(_0x2bde33,_0x4d3b9c,_0x56fa07,_0x20dd19){var _0x342ea9=a14_0x4e30,_0x4940d0=arguments[_0x342ea9(0xfe)],_0x14c5b4=_0x4940d0<0x3?_0x4d3b9c:_0x20dd19===null?_0x20dd19=Object[_0x342ea9(0xe7)](_0x4d3b9c,_0x56fa07):_0x20dd19,_0x4dd279;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x342ea9(0xf9))_0x14c5b4=Reflect[_0x342ea9(0xfc)](_0x2bde33,_0x4d3b9c,_0x56fa07,_0x20dd19);else{for(var _0x2c76e5=_0x2bde33[_0x342ea9(0xfe)]-0x1;_0x2c76e5>=0x0;_0x2c76e5--)if(_0x4dd279=_0x2bde33[_0x2c76e5])_0x14c5b4=(_0x4940d0<0x3?_0x4dd279(_0x14c5b4):_0x4940d0>0x3?_0x4dd279(_0x4d3b9c,_0x56fa07,_0x14c5b4):_0x4dd279(_0x4d3b9c,_0x56fa07))||_0x14c5b4;}return _0x4940d0>0x3&&_0x14c5b4&&Object['defineProperty'](_0x4d3b9c,_0x56fa07,_0x14c5b4),_0x14c5b4;},__metadata=this&&this[a14_0x3684d1(0x103)]||function(_0x2e1b02,_0xd0f9be){var _0x353dd4=a14_0x3684d1;if(typeof Reflect==='object'&&typeof Reflect[_0x353dd4(0xf7)]===_0x353dd4(0xf9))return Reflect[_0x353dd4(0xf7)](_0x2e1b02,_0xd0f9be);};Object[a14_0x3684d1(0xe4)](exports,'__esModule',{'value':!![]}),exports[a14_0x3684d1(0xe0)]=void 0x0;function a14_0x160c(){var _0x34610c=['metadata','排序方式','function','Rule','prototype','decorate','@anncic-api/validator','length','1180256smXugL','valid','number','_isreverse','__metadata','PageDTO','_size','16pcVZbI','3358244JeIefd','defineProperty','488010MDvidl','15IYGMhW','getOwnPropertyDescriptor','13515093qHJbZo','分页数量','4014824sDpBYI','第一页为1,第二页为2','_order','122769CXLPQt','RuleType','1:是;0:否','是否倒序','_page','min','design:type','integer','string','5281eiJnta'];a14_0x160c=function(){return _0x34610c;};return a14_0x160c();}const validator_1=require(a14_0x3684d1(0xfd));class PageDTO{}__decorate([(0x0,validator_1[a14_0x3684d1(0xfa)])('分页',validator_1[a14_0x3684d1(0xee)][a14_0x3684d1(0x101)]()[a14_0x3684d1(0xf4)]()[a14_0x3684d1(0xf2)](0x1),a14_0x3684d1(0xeb)),__metadata('design:type',Number)],PageDTO[a14_0x3684d1(0xfb)],a14_0x3684d1(0xf1),void 0x0),__decorate([(0x0,validator_1[a14_0x3684d1(0xfa)])(a14_0x3684d1(0xe9),validator_1['RuleType'][a14_0x3684d1(0x101)]()[a14_0x3684d1(0xf4)]()[a14_0x3684d1(0xf2)](0x1)),__metadata(a14_0x3684d1(0xf3),Number)],PageDTO[a14_0x3684d1(0xfb)],a14_0x3684d1(0xe1),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x3684d1(0xf8),validator_1[a14_0x3684d1(0xee)][a14_0x3684d1(0xf5)]()['trim']()),__metadata(a14_0x3684d1(0xf3),String)],PageDTO[a14_0x3684d1(0xfb)],a14_0x3684d1(0xec),void 0x0),__decorate([(0x0,validator_1[a14_0x3684d1(0xfa)])(a14_0x3684d1(0xf0),validator_1[a14_0x3684d1(0xee)][a14_0x3684d1(0x101)]()['integer']()[a14_0x3684d1(0x100)](0x0,0x1),a14_0x3684d1(0xef)),__metadata(a14_0x3684d1(0xf3),Number)],PageDTO[a14_0x3684d1(0xfb)],a14_0x3684d1(0x102),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.43",
|
|
21
|
+
"@anncic-api/core": "^1.1.43",
|
|
22
|
+
"@anncic-api/event": "^1.1.43",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.43",
|
|
24
|
+
"@anncic-api/validator": "^1.1.43",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.43",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "18fc430ef2bd116eaa2f16cda9ef729473a65146"
|
|
43
43
|
}
|