anncic-api 1.1.49 → 1.2.0
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 +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a0_0x8f8175=a0_0x3635;function a0_0x27c5(){var _0x1f55ae=['zhiulanuiy7892387985hnoi','338525nQoYGz','94928ERbICv','xml','/runtime/.upload','dhauo1234420123gg3234901','34576rlhYRN','appDir','301YctoYu','5153080kOtVsu','6PCNNeY','3263085KGbGcS','264abZvKL','name','text','__esModule','34156MvuvaC','defineProperty','20mb','7478010yRNgwM','form','default','930FsEIaL'];a0_0x27c5=function(){return _0x1f55ae;};return a0_0x27c5();}(function(_0x1eae9a,_0x394280){var _0x2940e1=a0_0x3635,_0x2fc991=_0x1eae9a();while(!![]){try{var _0x4587a9=-parseInt(_0x2940e1(0x1f3))/0x1+-parseInt(_0x2940e1(0x1ea))/0x2*(-parseInt(_0x2940e1(0x1e6))/0x3)+parseInt(_0x2940e1(0x1fa))/0x4+parseInt(_0x2940e1(0x1ed))/0x5*(parseInt(_0x2940e1(0x1e4))/0x6)+parseInt(_0x2940e1(0x1f9))/0x7*(-parseInt(_0x2940e1(0x1f7))/0x8)+-parseInt(_0x2940e1(0x1e5))/0x9+-parseInt(_0x2940e1(0x1f0))/0xa*(parseInt(_0x2940e1(0x1f2))/0xb);if(_0x4587a9===_0x394280)break;else _0x2fc991['push'](_0x2fc991['shift']());}catch(_0x4853ef){_0x2fc991['push'](_0x2fc991['shift']());}}}(a0_0x27c5,0xbec0a));function a0_0x3635(_0x4e47d9,_0x463aa6){var _0x27c5af=a0_0x27c5();return a0_0x3635=function(_0x3635a6,_0x52910e){_0x3635a6=_0x3635a6-0x1e4;var _0x171df8=_0x27c5af[_0x3635a6];return _0x171df8;},a0_0x3635(_0x4e47d9,_0x463aa6);}Object[a0_0x8f8175(0x1eb)](exports,a0_0x8f8175(0x1e9),{'value':!![]}),exports[a0_0x8f8175(0x1ef)]=_0x5983fd=>{var _0x5651a2=a0_0x8f8175;return{'apitest':!![],'keys':_0x5983fd[_0x5651a2(0x1e7)],'anncicapi':{'timeout':0x1388,'password':_0x5651a2(0x1f1),'devices':{'DEFAULT':{'secret':_0x5651a2(0x1f6),'checkcode':_0x5651a2(0x1f6)}}},'bodyParser':{'enableTypes':['json',_0x5651a2(0x1ee),_0x5651a2(0x1e8),_0x5651a2(0x1f4)],'formLimit':_0x5651a2(0x1ec),'jsonLimit':_0x5651a2(0x1ec),'textLimit':'20mb','xmlLimit':_0x5651a2(0x1ec)},'upload':{'tmpdir':_0x5983fd[_0x5651a2(0x1f8)]+_0x5651a2(0x1f5),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x1a9821=a1_0x1297;function a1_0x1297(_0x2991c1,_0x36d9c6){var _0x3c7343=a1_0x3c73();return a1_0x1297=function(_0x1297e3,_0x1663df){_0x1297e3=_0x1297e3-0x16d;var _0x5a86e6=_0x3c7343[_0x1297e3];return _0x5a86e6;},a1_0x1297(_0x2991c1,_0x36d9c6);}(function(_0x15aafd,_0x161adf){var _0x4a4286=a1_0x1297,_0x29e3d7=_0x15aafd();while(!![]){try{var _0x313e62=parseInt(_0x4a4286(0x173))/0x1+-parseInt(_0x4a4286(0x16f))/0x2+-parseInt(_0x4a4286(0x170))/0x3*(parseInt(_0x4a4286(0x172))/0x4)+parseInt(_0x4a4286(0x175))/0x5+parseInt(_0x4a4286(0x174))/0x6+-parseInt(_0x4a4286(0x16d))/0x7+parseInt(_0x4a4286(0x171))/0x8;if(_0x313e62===_0x161adf)break;else _0x29e3d7['push'](_0x29e3d7['shift']());}catch(_0x18efd2){_0x29e3d7['push'](_0x29e3d7['shift']());}}}(a1_0x3c73,0x8c589));function a1_0x3c73(){var _0x471950=['2474040LRMDnO','28cmjimW','914761RjDFKl','786246XjeXns','4182040qEVlIy','7453705aupwvK','__esModule','212780uORnhL','190887zNKRBJ'];a1_0x3c73=function(){return _0x471950;};return a1_0x3c73();}Object['defineProperty'](exports,a1_0x1a9821(0x16e),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x1fde(){const _0x302e3c=['mkdirSync','665cHhNyI','Inject','@anncic-api/event','function','anncicapi','upload','@anncic-api/core','registerMethodHandler','anncic-apihelper','40RusvGW','intercept','3478GLbbje','prototype','CustomConfiguration','forEach','_matchedRoute','target','hanlderApplications','MidwayEnvironmentService','key','865gJjKFw','isClass','dirs','handler','metadata','@midwayjs/decorator','toLowerCase','input','@midwayjs/static-file','@midwayjs/task','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','Types','tmpdir','defineProperty','decorate','design:type','./service/ApiService','3388908bCvtDD','devices','HEADERS_SIGNATURE','__esModule','./exception/ApiError','Configuration','koa','21040QcEIwh','ApiService','existsSync','application','@midwayjs/core','apimit','anncic-api','staticFile','ACTION_ROUTE_KEY','REQUEST_OBJ_CTX_KEY','ApiError','isNull','@anncic-api/typeorm','3210Jrbhio','method','headers','@anncic-api/cache','2757DfGQOk','config','15790NuBSIW','2155158aBBwBE','object','addObject','length','Anncic-api\x20static-file\x20:\x20mkdir\x20','environment','isString','isArray','args','defaultsDeep','filterConfig','@midwayjs/i18n','1133MJsmft','MidwayApplicationManager','query','request','string','body','device','bodyXml','MidwayConfigService','checkConfigKeys','DEFAULT','dir','decorator','@midwayjs/koa','checksign','log','context','1100vBxtFh','handlerActionRoute'];a2_0x1fde=function(){return _0x302e3c;};return a2_0x1fde();}const a2_0x17c584=a2_0xfa33;(function(_0x349faa,_0x8edff4){const _0x3727b8=a2_0xfa33,_0x16e943=_0x349faa();while(!![]){try{const _0x43eac9=-parseInt(_0x3727b8(0x127))/0x1*(-parseInt(_0x3727b8(0x125))/0x2)+-parseInt(_0x3727b8(0xf9))/0x3*(parseInt(_0x3727b8(0x119))/0x4)+parseInt(_0x3727b8(0x130))/0x5*(-parseInt(_0x3727b8(0xf5))/0x6)+parseInt(_0x3727b8(0x11c))/0x7*(-parseInt(_0x3727b8(0xe8))/0x8)+parseInt(_0x3727b8(0xfc))/0x9+parseInt(_0x3727b8(0xfb))/0xa*(parseInt(_0x3727b8(0x108))/0xb)+parseInt(_0x3727b8(0xe1))/0xc;if(_0x43eac9===_0x8edff4)break;else _0x16e943['push'](_0x16e943['shift']());}catch(_0x1ee1ec){_0x16e943['push'](_0x16e943['shift']());}}}(a2_0x1fde,0x26cda));function a2_0xfa33(_0xcfd13d,_0x484164){const _0x1fdefb=a2_0x1fde();return a2_0xfa33=function(_0xfa33be,_0x27edfa){_0xfa33be=_0xfa33be-0xd2;let _0x1ba9e8=_0x1fdefb[_0xfa33be];return _0x1ba9e8;},a2_0xfa33(_0xcfd13d,_0x484164);}var __decorate=this&&this['__decorate']||function(_0x29e72b,_0x35506c,_0x4c070a,_0x53a705){const _0x1acf9f=a2_0xfa33;var _0x5b409d=arguments[_0x1acf9f(0xff)],_0x4e5698=_0x5b409d<0x3?_0x35506c:_0x53a705===null?_0x53a705=Object['getOwnPropertyDescriptor'](_0x35506c,_0x4c070a):_0x53a705,_0x31f821;if(typeof Reflect===_0x1acf9f(0xfd)&&typeof Reflect[_0x1acf9f(0xde)]===_0x1acf9f(0x11f))_0x4e5698=Reflect[_0x1acf9f(0xde)](_0x29e72b,_0x35506c,_0x4c070a,_0x53a705);else{for(var _0x53b5f2=_0x29e72b[_0x1acf9f(0xff)]-0x1;_0x53b5f2>=0x0;_0x53b5f2--)if(_0x31f821=_0x29e72b[_0x53b5f2])_0x4e5698=(_0x5b409d<0x3?_0x31f821(_0x4e5698):_0x5b409d>0x3?_0x31f821(_0x35506c,_0x4c070a,_0x4e5698):_0x31f821(_0x35506c,_0x4c070a))||_0x4e5698;}return _0x5b409d>0x3&&_0x4e5698&&Object[_0x1acf9f(0xdd)](_0x35506c,_0x4c070a,_0x4e5698),_0x4e5698;},__metadata=this&&this['__metadata']||function(_0x6e4965,_0x19ba53){const _0x4bd56a=a2_0xfa33;if(typeof Reflect===_0x4bd56a(0xfd)&&typeof Reflect[_0x4bd56a(0xd4)]==='function')return Reflect[_0x4bd56a(0xd4)](_0x6e4965,_0x19ba53);};Object[a2_0x17c584(0xdd)](exports,a2_0x17c584(0xe4),{'value':!![]}),exports[a2_0x17c584(0x129)]=void 0x0;const decorator_1=require(a2_0x17c584(0xd5)),core_1=require(a2_0x17c584(0xec)),ApiError_1=require(a2_0x17c584(0xe5)),ApiService_1=require(a2_0x17c584(0xe0)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x17c584(0x115)),i18n=require(a2_0x17c584(0x107)),task=require(a2_0x17c584(0xd9)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x17c584(0xd8)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x17c584(0x122)),anncicCache=require(a2_0x17c584(0xf8)),anncicEvent=require(a2_0x17c584(0x11e)),anncicTypeorm=require(a2_0x17c584(0xf4)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x17c584(0x124));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5ce324=a2_0x17c584;await this['filterConfig'](),await this[_0x5ce324(0x111)](),await this[_0x5ce324(0x11a)](),await this['hanlderApplications']();}async[a2_0x17c584(0x111)](){}async[a2_0x17c584(0x11a)](){const _0x47ae88=a2_0x17c584,_0xcbdd6d=this['config']['getConfiguration']();this[_0x47ae88(0x114)][_0x47ae88(0x123)](action_1[_0x47ae88(0xf0)],_0x2ebb00=>{const _0x3d01e0=_0x47ae88,_0x36385c=_0x2ebb00[_0x3d01e0(0xd4)];return{'before':async _0x578f68=>{const _0x477dfa=_0x3d01e0;var _0x558507,_0x42dfa0;const _0x4ba77b=(_0x558507=_0x578f68===null||_0x578f68===void 0x0?void 0x0:_0x578f68[_0x477dfa(0x12c)])===null||_0x558507===void 0x0?void 0x0:_0x558507[core_1[_0x477dfa(0xf1)]];if(_0x4ba77b&&(_0x36385c===null||_0x36385c===void 0x0?void 0x0:_0x36385c[_0x477dfa(0xed)])){if(!this['ApiService'][_0x477dfa(0x116)]((_0x42dfa0=_0x4ba77b===null||_0x4ba77b===void 0x0?void 0x0:_0x4ba77b[_0x477dfa(0x10b)])===null||_0x42dfa0===void 0x0?void 0x0:_0x42dfa0[_0x477dfa(0xf7)]))throw new AnnError(ApiError_1[_0x477dfa(0xf2)][_0x477dfa(0xe3)]);}},'around':async _0x3729c7=>{const _0x198459=_0x3d01e0;var _0x42717a,_0x49ecc7,_0x311a48,_0x521977,_0x1e54ef;const _0xccdc17=(_0x42717a=_0x3729c7===null||_0x3729c7===void 0x0?void 0x0:_0x3729c7[_0x198459(0x12c)])===null||_0x42717a===void 0x0?void 0x0:_0x42717a[core_1[_0x198459(0xf1)]];if(_0xccdc17&&(_0x36385c===null||_0x36385c===void 0x0?void 0x0:_0x36385c[_0x198459(0xed)])){if(((_0x49ecc7=_0xccdc17[_0x198459(0xf7)])===null||_0x49ecc7===void 0x0?void 0x0:_0x49ecc7['device'])&&((_0x1e54ef=(_0x521977=(_0x311a48=_0xcbdd6d===null||_0xcbdd6d===void 0x0?void 0x0:_0xcbdd6d[_0x198459(0x120)])===null||_0x311a48===void 0x0?void 0x0:_0x311a48[_0x198459(0xe2)])===null||_0x521977===void 0x0?void 0x0:_0x521977[_0xccdc17[_0x198459(0xf7)][_0x198459(0x10e)]])===null||_0x1e54ef===void 0x0?void 0x0:_0x1e54ef['intercept'])){const _0x20c193=Array['isArray'](_0xcbdd6d[_0x198459(0x120)][_0x198459(0xe2)][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)])?_0xcbdd6d[_0x198459(0x120)][_0x198459(0xe2)][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)]:[_0xcbdd6d[_0x198459(0x120)]['devices'][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)]];for(const _0x6d27aa of _0x20c193){if(decorator_1['Types'][_0x198459(0x131)](_0x6d27aa)||typeof _0x6d27aa==_0x198459(0x10c)){const _0x1a2684=await _0xccdc17['requestContext']['getAsync'](_0x6d27aa);typeof(_0x1a2684===null||_0x1a2684===void 0x0?void 0x0:_0x1a2684[_0x198459(0xd3)])==_0x198459(0x11f)&&await _0x1a2684[_0x198459(0xd3)](typeof(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0xf6)])==_0x198459(0x10c)&&(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute'])?_0xccdc17['method'][_0x198459(0xd6)]()+'@'+(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0x12b)]):undefined,_0xccdc17,_0x36385c);}else decorator_1[_0x198459(0xdb)]['isFunction'](_0x6d27aa)&&await _0x6d27aa(typeof(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0xf6)])=='string'&&(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute'])?_0xccdc17[_0x198459(0xf6)][_0x198459(0xd6)]()+'@'+(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute']):undefined,_0xccdc17,_0x36385c);}}}return await _0x3729c7['proceed'](..._0x3729c7[_0x198459(0x104)]);},'afterThrow':(_0x27531f,_0x947fd8)=>{throw _0x947fd8;}};});}async[a2_0x17c584(0x12d)](){const _0x1b2402=a2_0x17c584;this[_0x1b2402(0xeb)]['getApplications']([_0x1b2402(0xe7)])[_0x1b2402(0x12a)](_0x43d715=>{const _0x848cdb=_0x1b2402;(_0x43d715===null||_0x43d715===void 0x0?void 0x0:_0x43d715[_0x848cdb(0x118)])&&Object['defineProperties'](_0x43d715[_0x848cdb(0x118)],{'ok':{'value':function(_0x574ec7,_0x46bb6a,_0x12cf32=0x0){return{'code':_0x12cf32,'data':_0x574ec7,'extra':_0x46bb6a};}},'input':{'value':function(_0x5dc6db,_0x499832){const _0x49d111=_0x848cdb;var _0x5120fe;const _0x5a2c01=lodash[_0x49d111(0x105)]({},this['request'][_0x49d111(0x10d)]||this[_0x49d111(0x10b)][((_0x5120fe=config===null||config===void 0x0?void 0x0:config[_0x49d111(0x10f)])===null||_0x5120fe===void 0x0?void 0x0:_0x5120fe[_0x49d111(0x12f)])||_0x49d111(0x10d)]||{},this[_0x49d111(0x10b)][_0x49d111(0x10a)]||{});return _0x5dc6db?lodash['get'](_0x5a2c01,_0x5dc6db,_0x499832):_0x5a2c01;}},'when':{'value':async function(_0x3fe98d,_0x627d03){const _0x61be5b=_0x848cdb,_0x423f34=this[_0x61be5b(0xd7)](_0x3fe98d,null);if(!lodash[_0x61be5b(0xf3)](_0x423f34))return await _0x627d03(_0x423f34);}},'only':{'value':function(_0x1ba7f1){const _0x7a4eba=_0x848cdb,_0x3aa094={};for(let _0x11aa7c=0x0;_0x11aa7c<_0x1ba7f1['length'];_0x11aa7c++){lodash[_0x7a4eba(0x103)](_0x1ba7f1[_0x11aa7c])&&_0x1ba7f1[_0x11aa7c]['length']>0x0&&lodash[_0x7a4eba(0x102)](_0x1ba7f1[_0x11aa7c][0x0])&&(_0x3aa094[_0x1ba7f1[_0x11aa7c][0x0]]=this[_0x7a4eba(0xd7)](_0x1ba7f1[_0x11aa7c][0x0],_0x1ba7f1[_0x11aa7c][_0x7a4eba(0xff)]>0x1?_0x1ba7f1[_0x11aa7c][0x1]:null));}return _0x3aa094;}}});});}async[a2_0x17c584(0x106)](){const _0x20bfea=a2_0x17c584;var _0x42f6a5,_0x580ea4,_0x43969d,_0x341f52,_0x166f61,_0xbabd03;const _0x53a8d2=this[_0x20bfea(0xfa)]['getConfiguration']();((_0x580ea4=(_0x42f6a5=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2[_0x20bfea(0x120)])===null||_0x42f6a5===void 0x0?void 0x0:_0x42f6a5['devices'])===null||_0x580ea4===void 0x0?void 0x0:_0x580ea4[_0x20bfea(0x112)])&&Object['keys'](_0x53a8d2[_0x20bfea(0x120)][_0x20bfea(0xe2)])['length']>0x1&&delete _0x53a8d2[_0x20bfea(0x120)][_0x20bfea(0xe2)][_0x20bfea(0x112)];if((_0x43969d=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2[_0x20bfea(0xef)])===null||_0x43969d===void 0x0?void 0x0:_0x43969d[_0x20bfea(0xd2)])for(const _0x2f592f in _0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)]){((_0x341f52=_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f])===null||_0x341f52===void 0x0?void 0x0:_0x341f52[_0x20bfea(0x113)])&&typeof((_0x166f61=_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f])===null||_0x166f61===void 0x0?void 0x0:_0x166f61[_0x20bfea(0x113)])==_0x20bfea(0x10c)&&!fs[_0x20bfea(0xea)](_0x53a8d2['staticFile']['dirs'][_0x2f592f][_0x20bfea(0x113)])&&(fs[_0x20bfea(0x11b)](_0x53a8d2['staticFile']['dirs'][_0x2f592f][_0x20bfea(0x113)],{'recursive':!![]}),console[_0x20bfea(0x117)](_0x20bfea(0x100)+_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f][_0x20bfea(0x113)]));}((_0xbabd03=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2['upload'])===null||_0xbabd03===void 0x0?void 0x0:_0xbabd03['tmpdir'])&&!fs[_0x20bfea(0xea)](_0x53a8d2['upload']['tmpdir'])&&(fs[_0x20bfea(0x11b)](_0x53a8d2[_0x20bfea(0x121)]['tmpdir'],{'recursive':!![]}),console[_0x20bfea(0x117)](_0x20bfea(0xda)+_0x53a8d2[_0x20bfea(0x121)][_0x20bfea(0xdc)])),this[_0x20bfea(0xfa)][_0x20bfea(0xfe)](_0x53a8d2);}};__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x110)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0xfa),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x109)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0xeb),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x12e)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0x101),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x17c584(0xe9),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x17c584(0xe6)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x17c584(0xee),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x17c584(0x129)]=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x1775(_0x463ad6,_0x44ed40){const _0x4cbe15=a2_0x4cbe();return a2_0x1775=function(_0x177506,_0x4ead1b){_0x177506=_0x177506-0x10d;let _0x2f9e7e=_0x4cbe15[_0x177506];return _0x2f9e7e;},a2_0x1775(_0x463ad6,_0x44ed40);}const a2_0x425053=a2_0x1775;(function(_0x1b6c81,_0x24af2a){const _0x474103=a2_0x1775,_0x57b800=_0x1b6c81();while(!![]){try{const _0x1491ba=parseInt(_0x474103(0x14c))/0x1*(parseInt(_0x474103(0x12f))/0x2)+parseInt(_0x474103(0x11b))/0x3*(parseInt(_0x474103(0x13a))/0x4)+-parseInt(_0x474103(0x139))/0x5+parseInt(_0x474103(0x159))/0x6*(-parseInt(_0x474103(0x151))/0x7)+-parseInt(_0x474103(0x141))/0x8+parseInt(_0x474103(0x169))/0x9*(-parseInt(_0x474103(0x15b))/0xa)+parseInt(_0x474103(0x110))/0xb;if(_0x1491ba===_0x24af2a)break;else _0x57b800['push'](_0x57b800['shift']());}catch(_0x131240){_0x57b800['push'](_0x57b800['shift']());}}}(a2_0x4cbe,0x797dd));var __decorate=this&&this['__decorate']||function(_0x31b606,_0x3c4bac,_0x5d054a,_0x23465e){const _0x4f116=a2_0x1775;var _0x49cf05=arguments['length'],_0x358e0a=_0x49cf05<0x3?_0x3c4bac:_0x23465e===null?_0x23465e=Object[_0x4f116(0x156)](_0x3c4bac,_0x5d054a):_0x23465e,_0x6a4b48;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4f116(0x12e))_0x358e0a=Reflect[_0x4f116(0x117)](_0x31b606,_0x3c4bac,_0x5d054a,_0x23465e);else{for(var _0x4d2cac=_0x31b606[_0x4f116(0x124)]-0x1;_0x4d2cac>=0x0;_0x4d2cac--)if(_0x6a4b48=_0x31b606[_0x4d2cac])_0x358e0a=(_0x49cf05<0x3?_0x6a4b48(_0x358e0a):_0x49cf05>0x3?_0x6a4b48(_0x3c4bac,_0x5d054a,_0x358e0a):_0x6a4b48(_0x3c4bac,_0x5d054a))||_0x358e0a;}return _0x49cf05>0x3&&_0x358e0a&&Object[_0x4f116(0x16a)](_0x3c4bac,_0x5d054a,_0x358e0a),_0x358e0a;},__metadata=this&&this[a2_0x425053(0x121)]||function(_0x14ac81,_0x174c47){const _0x512131=a2_0x425053;if(typeof Reflect==='object'&&typeof Reflect[_0x512131(0x163)]===_0x512131(0x12e))return Reflect[_0x512131(0x163)](_0x14ac81,_0x174c47);};Object[a2_0x425053(0x16a)](exports,a2_0x425053(0x129),{'value':!![]}),exports[a2_0x425053(0x143)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a2_0x425053(0x10e)),ApiError_1=require(a2_0x425053(0x154)),ApiService_1=require(a2_0x425053(0x15d)),action_1=require(a2_0x425053(0x10f)),fs=require('fs'),koa=require(a2_0x425053(0x13c)),i18n=require(a2_0x425053(0x153)),task=require(a2_0x425053(0x130)),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x425053(0x123)),ConfigDefault=require(a2_0x425053(0x128)),ConfigProduction=require(a2_0x425053(0x11c)),anncic=require(a2_0x425053(0x14d)),anncicCache=require(a2_0x425053(0x157)),anncicEvent=require(a2_0x425053(0x167)),anncicTypeorm=require(a2_0x425053(0x131)),anncicValidator=require(a2_0x425053(0x14a)),anncicHelper=require(a2_0x425053(0x164));let CustomConfiguration=class CustomConfiguration{async[a2_0x425053(0x12b)](){const _0x1f2f19=a2_0x425053;await this[_0x1f2f19(0x115)](),await this[_0x1f2f19(0x149)](),await this[_0x1f2f19(0x14b)](),await this['hanlderApplications']();}async[a2_0x425053(0x149)](){}async[a2_0x425053(0x14b)](){const _0x1dd096=a2_0x425053,_0x2124c1=this[_0x1dd096(0x132)]['getConfiguration']();this[_0x1dd096(0x15a)]['registerMethodHandler'](action_1[_0x1dd096(0x14f)],_0x4347e3=>{const _0x3b9a3b=_0x1dd096,_0x4ec7c7=_0x4347e3[_0x3b9a3b(0x163)];return{'before':async _0x3f4e7a=>{const _0x33364f=_0x3b9a3b;var _0xcee8e7,_0x3ea735;const _0xd5d050=(_0xcee8e7=_0x3f4e7a===null||_0x3f4e7a===void 0x0?void 0x0:_0x3f4e7a[_0x33364f(0x119)])===null||_0xcee8e7===void 0x0?void 0x0:_0xcee8e7[core_1['REQUEST_OBJ_CTX_KEY']];if(_0xd5d050&&(_0x4ec7c7===null||_0x4ec7c7===void 0x0?void 0x0:_0x4ec7c7[_0x33364f(0x145)])){if(!this['ApiService'][_0x33364f(0x11a)]((_0x3ea735=_0xd5d050===null||_0xd5d050===void 0x0?void 0x0:_0xd5d050['request'])===null||_0x3ea735===void 0x0?void 0x0:_0x3ea735[_0x33364f(0x15e)]))throw new AnnError(ApiError_1[_0x33364f(0x113)][_0x33364f(0x144)]);}},'around':async _0x8986a3=>{const _0x3b68f7=_0x3b9a3b;var _0x4c52b5,_0xaa9e9e,_0x1cbedd,_0x2d6ecb,_0x3bab2d;const _0x4c5468=(_0x4c52b5=_0x8986a3===null||_0x8986a3===void 0x0?void 0x0:_0x8986a3['target'])===null||_0x4c52b5===void 0x0?void 0x0:_0x4c52b5[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x4c5468&&(_0x4ec7c7===null||_0x4ec7c7===void 0x0?void 0x0:_0x4ec7c7[_0x3b68f7(0x145)])){if(((_0xaa9e9e=_0x4c5468[_0x3b68f7(0x15e)])===null||_0xaa9e9e===void 0x0?void 0x0:_0xaa9e9e[_0x3b68f7(0x112)])&&((_0x3bab2d=(_0x2d6ecb=(_0x1cbedd=_0x2124c1===null||_0x2124c1===void 0x0?void 0x0:_0x2124c1[_0x3b68f7(0x13d)])===null||_0x1cbedd===void 0x0?void 0x0:_0x1cbedd[_0x3b68f7(0x137)])===null||_0x2d6ecb===void 0x0?void 0x0:_0x2d6ecb[_0x4c5468['headers']['device']])===null||_0x3bab2d===void 0x0?void 0x0:_0x3bab2d[_0x3b68f7(0x133)])){const _0x452765=Array[_0x3b68f7(0x142)](_0x2124c1[_0x3b68f7(0x13d)][_0x3b68f7(0x137)][_0x4c5468['headers'][_0x3b68f7(0x112)]][_0x3b68f7(0x133)])?_0x2124c1['anncicapi'][_0x3b68f7(0x137)][_0x4c5468[_0x3b68f7(0x15e)]['device']][_0x3b68f7(0x133)]:[_0x2124c1['anncicapi']['devices'][_0x4c5468[_0x3b68f7(0x15e)]['device']]['intercept']];for(const _0x5fc19e of _0x452765){if(decorator_1[_0x3b68f7(0x11d)][_0x3b68f7(0x152)](_0x5fc19e)||typeof _0x5fc19e==_0x3b68f7(0x148)){const _0x1da22d=await _0x4c5468[_0x3b68f7(0x13f)][_0x3b68f7(0x12c)](_0x5fc19e);typeof(_0x1da22d===null||_0x1da22d===void 0x0?void 0x0:_0x1da22d[_0x3b68f7(0x146)])=='function'&&await _0x1da22d[_0x3b68f7(0x146)](typeof(_0x4c5468===null||_0x4c5468===void 0x0?void 0x0:_0x4c5468['method'])==_0x3b68f7(0x148)&&(_0x4c5468===null||_0x4c5468===void 0x0?void 0x0:_0x4c5468[_0x3b68f7(0x10d)])?_0x4c5468[_0x3b68f7(0x13b)][_0x3b68f7(0x118)]()+'@'+(_0x4c5468===null||_0x4c5468===void 0x0?void 0x0:_0x4c5468[_0x3b68f7(0x10d)]):undefined,_0x4c5468,_0x4ec7c7);}else decorator_1[_0x3b68f7(0x11d)]['isFunction'](_0x5fc19e)&&await _0x5fc19e(typeof(_0x4c5468===null||_0x4c5468===void 0x0?void 0x0:_0x4c5468[_0x3b68f7(0x13b)])==_0x3b68f7(0x148)&&(_0x4c5468===null||_0x4c5468===void 0x0?void 0x0:_0x4c5468['_matchedRoute'])?_0x4c5468['method'][_0x3b68f7(0x118)]()+'@'+(_0x4c5468===null||_0x4c5468===void 0x0?void 0x0:_0x4c5468[_0x3b68f7(0x10d)]):undefined,_0x4c5468,_0x4ec7c7);}}}return await _0x8986a3['proceed'](..._0x8986a3[_0x3b68f7(0x150)]);},'afterThrow':(_0x521b26,_0x499554)=>{throw _0x499554;}};});}async['hanlderApplications'](){const _0x5e7627=a2_0x425053;this[_0x5e7627(0x15f)][_0x5e7627(0x155)](['koa'])[_0x5e7627(0x134)](_0x26804d=>{const _0x4c3873=_0x5e7627;(_0x26804d===null||_0x26804d===void 0x0?void 0x0:_0x26804d[_0x4c3873(0x161)])&&Object['defineProperties'](_0x26804d[_0x4c3873(0x161)],{'ok':{'value':function(_0x4ce935,_0x4d2705,_0x53cb59=0x0){return{'code':_0x53cb59,'data':_0x4ce935,'extra':_0x4d2705};}},'input':{'value':function(_0x521b00,_0xd6b90b){const _0x1fd077=_0x4c3873;var _0x22e18d;const _0x5582e3=lodash[_0x1fd077(0x111)]({},this[_0x1fd077(0x126)][_0x1fd077(0x15c)]||this[_0x1fd077(0x126)][((_0x22e18d=config===null||config===void 0x0?void 0x0:config[_0x1fd077(0x13e)])===null||_0x22e18d===void 0x0?void 0x0:_0x22e18d[_0x1fd077(0x147)])||_0x1fd077(0x15c)]||{},this[_0x1fd077(0x126)]['query']||{});return _0x521b00?lodash['get'](_0x5582e3,_0x521b00,_0xd6b90b):_0x5582e3;}},'when':{'value':async function(_0x1211f3,_0xa5c13c){const _0x33a65c=_0x4c3873,_0x39ba4a=this[_0x33a65c(0x135)](_0x1211f3,null);if(!lodash['isNull'](_0x39ba4a))return await _0xa5c13c(_0x39ba4a);}},'only':{'value':function(_0x1f7334){const _0x58517e=_0x4c3873,_0x277559={};for(let _0x4f4828=0x0;_0x4f4828<_0x1f7334['length'];_0x4f4828++){lodash[_0x58517e(0x142)](_0x1f7334[_0x4f4828])&&_0x1f7334[_0x4f4828][_0x58517e(0x124)]>0x0&&lodash['isString'](_0x1f7334[_0x4f4828][0x0])&&(_0x277559[_0x1f7334[_0x4f4828][0x0]]=this['input'](_0x1f7334[_0x4f4828][0x0],_0x1f7334[_0x4f4828][_0x58517e(0x124)]>0x1?_0x1f7334[_0x4f4828][0x1]:null));}return _0x277559;}}});});}async[a2_0x425053(0x115)](){const _0xc02fc5=a2_0x425053;var _0x1bfe94,_0x2142fa,_0x3e314b,_0x3bacd6,_0x338d9a,_0x2c695c;const _0x137e02=this[_0xc02fc5(0x132)][_0xc02fc5(0x158)]();((_0x2142fa=(_0x1bfe94=_0x137e02===null||_0x137e02===void 0x0?void 0x0:_0x137e02[_0xc02fc5(0x13d)])===null||_0x1bfe94===void 0x0?void 0x0:_0x1bfe94['devices'])===null||_0x2142fa===void 0x0?void 0x0:_0x2142fa[_0xc02fc5(0x168)])&&Object['keys'](_0x137e02[_0xc02fc5(0x13d)][_0xc02fc5(0x137)])[_0xc02fc5(0x124)]>0x1&&delete _0x137e02[_0xc02fc5(0x13d)][_0xc02fc5(0x137)]['DEFAULT'];if((_0x3e314b=_0x137e02===null||_0x137e02===void 0x0?void 0x0:_0x137e02[_0xc02fc5(0x14e)])===null||_0x3e314b===void 0x0?void 0x0:_0x3e314b[_0xc02fc5(0x12a)])for(const _0x47b90e in _0x137e02[_0xc02fc5(0x14e)]['dirs']){((_0x3bacd6=_0x137e02['staticFile'][_0xc02fc5(0x12a)][_0x47b90e])===null||_0x3bacd6===void 0x0?void 0x0:_0x3bacd6[_0xc02fc5(0x138)])&&typeof((_0x338d9a=_0x137e02[_0xc02fc5(0x14e)]['dirs'][_0x47b90e])===null||_0x338d9a===void 0x0?void 0x0:_0x338d9a[_0xc02fc5(0x138)])==_0xc02fc5(0x148)&&!fs[_0xc02fc5(0x125)](_0x137e02[_0xc02fc5(0x14e)][_0xc02fc5(0x12a)][_0x47b90e][_0xc02fc5(0x138)])&&(fs['mkdirSync'](_0x137e02['staticFile']['dirs'][_0x47b90e][_0xc02fc5(0x138)],{'recursive':!![]}),console['log'](_0xc02fc5(0x162)+_0x137e02['staticFile'][_0xc02fc5(0x12a)][_0x47b90e][_0xc02fc5(0x138)]));}((_0x2c695c=_0x137e02===null||_0x137e02===void 0x0?void 0x0:_0x137e02[_0xc02fc5(0x16b)])===null||_0x2c695c===void 0x0?void 0x0:_0x2c695c['tmpdir'])&&!fs[_0xc02fc5(0x125)](_0x137e02['upload'][_0xc02fc5(0x116)])&&(fs[_0xc02fc5(0x166)](_0x137e02[_0xc02fc5(0x16b)][_0xc02fc5(0x116)],{'recursive':!![]}),console[_0xc02fc5(0x12d)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x137e02[_0xc02fc5(0x16b)]['tmpdir'])),this['config'][_0xc02fc5(0x11e)](_0x137e02);}};function a2_0x4cbe(){const _0x3d9bab=['request','Inject','./config/config.default','__esModule','dirs','onReady','getAsync','log','function','454IsnLhi','@midwayjs/task','@anncic-api/typeorm','config','intercept','forEach','input','MidwayEnvironmentService','devices','dir','3699470zmlsqY','40JGkeWD','method','@midwayjs/koa','anncicapi','bodyXml','requestContext','Configuration','2728792HQyALb','isArray','CustomConfiguration','HEADERS_SIGNATURE','apimit','handler','key','string','checkConfigKeys','@anncic-api/validator','handlerActionRoute','851HRvFKc','@anncic-api/core','staticFile','ACTION_ROUTE_KEY','args','1064ewPQIs','isClass','@midwayjs/i18n','./exception/ApiError','getApplications','getOwnPropertyDescriptor','@anncic-api/cache','getConfiguration','25404qpTInd','decorator','25040ymmKyK','body','./service/ApiService','headers','application','design:type','context','Anncic-api\x20static-file\x20:\x20mkdir\x20','metadata','anncic-apihelper','prototype','mkdirSync','@anncic-api/event','DEFAULT','2232nCpscG','defineProperty','upload','_matchedRoute','@midwayjs/core','./types/action','25567905vebiQz','defaultsDeep','device','ApiError','anncic-api','filterConfig','tmpdir','decorate','toLowerCase','target','checksign','97695uPxCbY','./config/config.production','Types','addObject','ApiService','MidwayDecoratorService','__metadata','environment','@midwayjs/cross-domain','length','existsSync'];a2_0x4cbe=function(){return _0x3d9bab;};return a2_0x4cbe();}__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1['MidwayConfigService'])],CustomConfiguration[a2_0x425053(0x165)],a2_0x425053(0x132),void 0x0),__decorate([(0x0,decorator_1[a2_0x425053(0x127)])(),__metadata(a2_0x425053(0x160),core_1[a2_0x425053(0x120)])],CustomConfiguration[a2_0x425053(0x165)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x425053(0x127)])(),__metadata(a2_0x425053(0x160),core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x425053(0x165)],a2_0x425053(0x15f),void 0x0),__decorate([(0x0,decorator_1[a2_0x425053(0x127)])(),__metadata(a2_0x425053(0x160),core_1[a2_0x425053(0x136)])],CustomConfiguration[a2_0x425053(0x165)],a2_0x425053(0x122),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x425053(0x160),ApiService_1[a2_0x425053(0x11f)])],CustomConfiguration[a2_0x425053(0x165)],a2_0x425053(0x11f),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x425053(0x140)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x425053(0x114),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x425053(0x143)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x1e8a49=a3_0x4164;function a3_0x2716(){const _0x441589=['substring','middleware','1274572EzFlCb','middlewareIgnore','saveModule','parseRoute','942972TFoJwW','\x20文件请放在app/controller/文件下','Action','ACTION_KEY','filepath','apps/','filter','/apps/','APPSCONFIG_KEY','42808SnTxyo','9018840LEnGoo','7ebtZJq','module','prefix','-action','defineProperty','@midwayjs/decorator','1530ReFWsS','2571078hLmnjy','app/controller/','length','indexOf','trim','join','endsWith','AppsConfigTmp','__esModule','\x20文件请放在apps/','startsWith','../types/action','saveClassMetadata','existsSync','replace','27UdIycC','push','-controller','toLowerCase','115912qWxTtk','rootpath','/config.','splice','/controller/文件下','3288020StlRfD','split','cwd','match','tagName','/controller/','Controller','route'];a3_0x2716=function(){return _0x441589;};return a3_0x2716();}function a3_0x4164(_0x43691f,_0x40a69e){const _0x271680=a3_0x2716();return a3_0x4164=function(_0x41645f,_0x436611){_0x41645f=_0x41645f-0x1c0;let _0x2ca403=_0x271680[_0x41645f];return _0x2ca403;},a3_0x4164(_0x43691f,_0x40a69e);}(function(_0x526fe8,_0x444e82){const _0x5e0452=a3_0x4164,_0x20beee=_0x526fe8();while(!![]){try{const _0x3916e3=-parseInt(_0x5e0452(0x1e4))/0x1+parseInt(_0x5e0452(0x1e0))/0x2+parseInt(_0x5e0452(0x1cd))/0x3*(-parseInt(_0x5e0452(0x1d1))/0x4)+parseInt(_0x5e0452(0x1d6))/0x5+-parseInt(_0x5e0452(0x1f6))/0x6*(-parseInt(_0x5e0452(0x1ef))/0x7)+parseInt(_0x5e0452(0x1ed))/0x8*(-parseInt(_0x5e0452(0x1f5))/0x9)+parseInt(_0x5e0452(0x1ee))/0xa;if(_0x3916e3===_0x444e82)break;else _0x20beee['push'](_0x20beee['shift']());}catch(_0x266ed2){_0x20beee['push'](_0x20beee['shift']());}}}(a3_0x2716,0x7cf63));Object[a3_0x1e8a49(0x1f3)](exports,a3_0x1e8a49(0x1c6),{'value':!![]}),exports[a3_0x1e8a49(0x1e3)]=exports[a3_0x1e8a49(0x1e6)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x1e8a49(0x1f4)),action_1=require(a3_0x1e8a49(0x1c9));function Action(_0x4448b9,_0x2e4419,_0x53c6cd={'middleware':[],'sensitive':!![]}){return _0x448ede=>{const _0x2e3842=a3_0x4164;_0x53c6cd[_0x2e3842(0x1da)]=_0x2e4419;const _0x12a438=parseRoute(_0x4448b9);if(_0x12a438[_0x2e3842(0x1f0)]){_0x53c6cd[_0x2e3842(0x1f1)]=_0x53c6cd[_0x2e3842(0x1f1)]?'/'+_0x12a438[_0x2e3842(0x1f0)]+'/'+_0x53c6cd[_0x2e3842(0x1f1)]:'/'+_0x12a438['route'];_0x12a438[_0x2e3842(0x1f1)]&&(_0x53c6cd[_0x2e3842(0x1f1)]='/'+_0x12a438[_0x2e3842(0x1f1)]+'/'+_0x53c6cd[_0x2e3842(0x1f1)]);if(fs[_0x2e3842(0x1cb)](_0x12a438['rootpath']+_0x2e3842(0x1eb)+_0x12a438[_0x2e3842(0x1f0)]+_0x2e3842(0x1d3)+(lodash['endsWith'](_0x12a438[_0x2e3842(0x1e8)],'ts')?'ts':'js'))){const _0x50937d=include(_0x12a438[_0x2e3842(0x1d2)]+'/apps/'+_0x12a438['module']+'/config.'+(lodash[_0x2e3842(0x1c4)](_0x12a438['filepath'],'ts')?'ts':'js'));if(_0x50937d['middleware']&&lodash['isArray'](_0x50937d[_0x2e3842(0x1df)])&&_0x50937d[_0x2e3842(0x1df)]['length']>0x0)for(let _0x3245e9 in _0x50937d[_0x2e3842(0x1df)]){_0x50937d[_0x2e3842(0x1e1)][_0x2e3842(0x1c1)](_0x50937d[_0x2e3842(0x1df)][_0x3245e9])==-0x1&&_0x53c6cd['middleware'][_0x2e3842(0x1ce)](_0x50937d[_0x2e3842(0x1df)][_0x3245e9]);}const _0x783941=(0x0,decorator_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0x783941[''+_0x12a438[_0x2e3842(0x1f0)]]=_0x50937d,(0x0,decorator_1['saveClassMetadata'])(action_1[_0x2e3842(0x1ec)],_0x783941,action_1[_0x2e3842(0x1c5)]);}_0x53c6cd[_0x2e3842(0x1f1)]=_0x53c6cd[_0x2e3842(0x1f1)][_0x2e3842(0x1d0)]()[_0x2e3842(0x1cc)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2e3842(0x1e2)])(action_1['ACTION_KEY'],_0x448ede),(0x0,decorator_1[_0x2e3842(0x1dc)])(_0x53c6cd[_0x2e3842(0x1f1)],_0x53c6cd)(_0x448ede),(0x0,decorator_1[_0x2e3842(0x1ca)])(action_1['ACTION_KEY'],{'prefix':_0x53c6cd[_0x2e3842(0x1f1)],'pprefix':_0x12a438[_0x2e3842(0x1f1)],'module':_0x12a438[_0x2e3842(0x1f0)],'filepath':_0x12a438[_0x2e3842(0x1e8)],'routerOptions':_0x53c6cd},_0x448ede);}else _0x53c6cd[_0x2e3842(0x1f1)]=_0x53c6cd[_0x2e3842(0x1f1)]?'/'+_0x53c6cd[_0x2e3842(0x1f1)]:'/'+_0x12a438[_0x2e3842(0x1dd)],_0x12a438['prefix']&&(_0x53c6cd[_0x2e3842(0x1f1)]='/'+_0x12a438['prefix']+'/'+_0x53c6cd[_0x2e3842(0x1f1)]),_0x53c6cd[_0x2e3842(0x1f1)]=_0x53c6cd[_0x2e3842(0x1f1)][_0x2e3842(0x1d0)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2e3842(0x1e2)])(action_1['ACTION_KEY'],_0x448ede),(0x0,decorator_1[_0x2e3842(0x1dc)])(_0x53c6cd['prefix'],_0x53c6cd)(_0x448ede),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x2e3842(0x1e7)],{'prefix':_0x53c6cd[_0x2e3842(0x1f1)],'module':_0x12a438[_0x2e3842(0x1f0)],'pprefix':_0x12a438[_0x2e3842(0x1f1)],'filepath':_0x12a438['filepath'],'routerOptions':_0x53c6cd},_0x448ede);};}exports[a3_0x1e8a49(0x1e6)]=Action;function parseRoute(_0x39758e){const _0x17e4d5=a3_0x1e8a49;_0x39758e=_0x39758e[_0x17e4d5(0x1cc)](/(\\|\/)/g,'/');const _0x3596e9=process[_0x17e4d5(0x1d8)]()[_0x17e4d5(0x1cc)](/(\\|\/)/g,'/'),_0x59a0b5=_0x39758e['substring'](0x0,_0x3596e9[_0x17e4d5(0x1c0)]+_0x39758e[_0x17e4d5(0x1de)](_0x3596e9[_0x17e4d5(0x1c0)]+0x1)[_0x17e4d5(0x1c1)]('/')+0x1),_0x56dc9f=_0x39758e[_0x17e4d5(0x1de)](_0x59a0b5['length']+0x1)[_0x17e4d5(0x1cc)](/(\\|\/)/g,'/'),_0x49851f={'route':'','prefix':![],'module':![],'rootpath':_0x59a0b5,'filepath':_0x56dc9f};if(_0x56dc9f[_0x17e4d5(0x1c8)]('app/controller/')){const _0x107c94=_0x56dc9f['substring'](_0x17e4d5(0x1f7)[_0x17e4d5(0x1c0)])[_0x17e4d5(0x1d7)]('/')[_0x17e4d5(0x1ea)](_0x7bd224=>_0x7bd224&&_0x7bd224['trim']());return _0x107c94[_0x17e4d5(0x1c0)]>0x1&&(_0x49851f[_0x17e4d5(0x1f1)]=_0x107c94[0x0][_0x17e4d5(0x1d0)](),_0x107c94[_0x17e4d5(0x1d4)](0x0,0x1)),_0x49851f['route']=('/'+_0x107c94['join']('/'))[_0x17e4d5(0x1cc)](/(\.ts|\.js)$/,'')[_0x17e4d5(0x1cc)](/\/{2,}/g,'/')[_0x17e4d5(0x1d9)](/[\/|A-Z]*[^A-Z]+/g)[_0x17e4d5(0x1c3)]('-')[_0x17e4d5(0x1d0)]()['replace'](/\/\-/g,'/'),_0x49851f['route'][_0x17e4d5(0x1c4)](_0x17e4d5(0x1f2))&&(_0x49851f[_0x17e4d5(0x1dd)]=_0x49851f[_0x17e4d5(0x1dd)][_0x17e4d5(0x1de)](0x0,_0x49851f[_0x17e4d5(0x1dd)][_0x17e4d5(0x1c0)]-0x7)),_0x49851f['route']['endsWith'](_0x17e4d5(0x1cf))&&(_0x49851f[_0x17e4d5(0x1dd)]=_0x49851f[_0x17e4d5(0x1dd)]['substring'](0x0,_0x49851f[_0x17e4d5(0x1dd)][_0x17e4d5(0x1c0)]-0xb)),_0x49851f;}else{if(_0x56dc9f[_0x17e4d5(0x1c8)]('apps/')){const _0x5a6539=_0x56dc9f[_0x17e4d5(0x1de)](0x0,_0x56dc9f[_0x17e4d5(0x1c1)](_0x17e4d5(0x1eb))+0x5),_0x125372=_0x56dc9f[_0x17e4d5(0x1de)](_0x5a6539[_0x17e4d5(0x1c0)]+0x1)[_0x17e4d5(0x1cc)](/(\\|\/)/g,'/')[_0x17e4d5(0x1d7)]('/')[0x0];if(_0x56dc9f[_0x17e4d5(0x1c8)](_0x17e4d5(0x1e9)+_0x125372+_0x17e4d5(0x1db))){const _0x4cdd52=_0x56dc9f['substring']((_0x5a6539+'/'+_0x125372+'/controller/')[_0x17e4d5(0x1c0)])[_0x17e4d5(0x1d7)]('/')['filter'](_0x186acd=>_0x186acd&&_0x186acd[_0x17e4d5(0x1c2)]());return _0x4cdd52[_0x17e4d5(0x1c0)]>0x1&&(_0x49851f[_0x17e4d5(0x1f1)]=_0x4cdd52[0x0][_0x17e4d5(0x1d0)](),_0x4cdd52[_0x17e4d5(0x1d4)](0x0,0x1)),_0x49851f[_0x17e4d5(0x1f0)]=_0x125372,_0x49851f[_0x17e4d5(0x1dd)]=('/'+_0x125372+'/'+_0x4cdd52[_0x17e4d5(0x1c3)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x17e4d5(0x1cc)](/\/{2,}/,'/')[_0x17e4d5(0x1d9)](/[\/|A-Z]*[^A-Z]+/g)[_0x17e4d5(0x1c3)]('-')[_0x17e4d5(0x1d0)]()[_0x17e4d5(0x1cc)](/\/\-/g,'/'),_0x49851f[_0x17e4d5(0x1dd)]['endsWith'](_0x17e4d5(0x1f2))&&(_0x49851f['route']=_0x49851f[_0x17e4d5(0x1dd)][_0x17e4d5(0x1de)](0x0,_0x49851f['route'][_0x17e4d5(0x1c0)]-0x7)),_0x49851f[_0x17e4d5(0x1dd)][_0x17e4d5(0x1c4)]('-controller')&&(_0x49851f[_0x17e4d5(0x1dd)]=_0x49851f['route']['substring'](0x0,_0x49851f['route'][_0x17e4d5(0x1c0)]-0xb)),_0x49851f;}throw new Error(_0x56dc9f+_0x17e4d5(0x1c7)+_0x125372+_0x17e4d5(0x1d5));}}throw new Error(_0x56dc9f+_0x17e4d5(0x1e5));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a4_0x44f139=a4_0x45fa;function a4_0x45fa(_0x422c46,_0xaa25f8){const _0x5005c4=a4_0x5005();return a4_0x45fa=function(_0x45fa59,_0x3254ba){_0x45fa59=_0x45fa59-0xe9;let _0x1dd399=_0x5005c4[_0x45fa59];return _0x1dd399;},a4_0x45fa(_0x422c46,_0xaa25f8);}(function(_0x1c9376,_0x39dae6){const _0x237b8f=a4_0x45fa,_0x34e2aa=_0x1c9376();while(!![]){try{const _0x334661=-parseInt(_0x237b8f(0x107))/0x1*(parseInt(_0x237b8f(0xf8))/0x2)+parseInt(_0x237b8f(0xf5))/0x3+parseInt(_0x237b8f(0xf2))/0x4+parseInt(_0x237b8f(0x103))/0x5*(parseInt(_0x237b8f(0x10a))/0x6)+-parseInt(_0x237b8f(0x101))/0x7*(parseInt(_0x237b8f(0xf6))/0x8)+-parseInt(_0x237b8f(0xef))/0x9*(-parseInt(_0x237b8f(0xf4))/0xa)+-parseInt(_0x237b8f(0x108))/0xb*(parseInt(_0x237b8f(0xea))/0xc);if(_0x334661===_0x39dae6)break;else _0x34e2aa['push'](_0x34e2aa['shift']());}catch(_0x5cc52d){_0x34e2aa['push'](_0x34e2aa['shift']());}}}(a4_0x5005,0xeb346));function a4_0x5005(){const _0x481301=['6059435IlOhWv','del','@anncic-api/validator','assign','91831skXzQA','11OFTAEH','defineProperty','6poNBGL','description','Validator','utc','41455452RTZiWt','Api','validationOptions','length','toLowerCase','9pTBAaD','middleware','validate','5707756evNUEE','createCustomMethodDecorator','15429110gKfVqs','5637603LyDPum','568AzUsWM','ACTION_ROUTE_KEY','34xqoFqJ','middlewareIgnore','@midwayjs/decorator','__esModule','indexOf','attachClassMetadata','filter','routerName','apimit','8064rHsaWy','delete'];a4_0x5005=function(){return _0x481301;};return a4_0x5005();}Object[a4_0x44f139(0x109)](exports,a4_0x44f139(0xfb),{'value':!![]}),exports[a4_0x44f139(0xeb)]=void 0x0;const validator_1=require(a4_0x44f139(0x105)),decorator_1=require(a4_0x44f139(0xfa)),action_1=require('../types/action');function Api(_0x484905,_0x39fed9='get',_0x26b8dd='/',_0x1dfb99={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x35acf7,_0x288c6d,_0x598b6d)=>{const _0x569136=a4_0x45fa;var _0xc2bd25,_0x3e87bb,_0xb445c9;!_0x1dfb99[_0x569136(0xf0)]&&(_0x1dfb99[_0x569136(0xf0)]=[]);!((_0xc2bd25=_0x1dfb99===null||_0x1dfb99===void 0x0?void 0x0:_0x1dfb99['validate'])===null||_0xc2bd25===void 0x0?void 0x0:_0xc2bd25[_0x569136(0xec)])&&(_0x1dfb99[_0x569136(0xf1)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x569136(0xe9)}});if(((_0x3e87bb=_0x1dfb99===null||_0x1dfb99===void 0x0?void 0x0:_0x1dfb99[_0x569136(0xf0)])===null||_0x3e87bb===void 0x0?void 0x0:_0x3e87bb[_0x569136(0xed)])>0x0&&((_0xb445c9=_0x1dfb99===null||_0x1dfb99===void 0x0?void 0x0:_0x1dfb99['middlewareIgnore'])===null||_0xb445c9===void 0x0?void 0x0:_0xb445c9[_0x569136(0xed)])>0x0)for(let _0x46b56f in _0x1dfb99['middleware']){_0x1dfb99[_0x569136(0xf9)][_0x569136(0xfc)](_0x1dfb99[_0x569136(0xf0)][_0x46b56f])!==-0x1&&(_0x1dfb99[_0x569136(0xf0)][_0x46b56f]=null);}_0x1dfb99['routerName']=_0x484905,(0x0,validator_1[_0x569136(0x10c)])(_0x1dfb99[_0x569136(0xf1)])(_0x35acf7,_0x288c6d,_0x598b6d),(0x0,decorator_1['RequestMapping'])(Object[_0x569136(0x106)](_0x1dfb99,{'path':_0x26b8dd,'requestMethod':(_0x39fed9==_0x569136(0x104)?_0x569136(0x102):_0x39fed9)[_0x569136(0xee)]()}))(_0x35acf7,_0x288c6d,_0x598b6d),(0x0,decorator_1[_0x569136(0xfd)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x26b8dd,'method':_0x288c6d,'apimit':_0x1dfb99[_0x569136(0x100)],'routerName':_0x1dfb99[_0x569136(0xff)],'description':_0x1dfb99[_0x569136(0x10b)],'middleware':(_0x1dfb99[_0x569136(0xf0)]||[])[_0x569136(0xfe)](_0x3f830c=>!!_0x3f830c),'requestMethod':(_0x39fed9==_0x569136(0x104)?_0x569136(0x102):_0x39fed9)[_0x569136(0xee)]()},_0x35acf7),(0x0,decorator_1[_0x569136(0xf3)])(action_1[_0x569136(0xf7)],{'path':_0x26b8dd,'method':_0x288c6d,'apimit':_0x1dfb99[_0x569136(0x100)],'routerName':_0x1dfb99['routerName'],'description':_0x1dfb99[_0x569136(0x10b)],'middleware':(_0x1dfb99[_0x569136(0xf0)]||[])[_0x569136(0xfe)](_0x43d703=>!!_0x43d703),'requestMethod':(_0x39fed9==_0x569136(0x104)?'delete':_0x39fed9)[_0x569136(0xee)]()})(_0x35acf7,_0x288c6d,_0x598b6d);};}exports[a4_0x44f139(0xeb)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x557883=a5_0x1aef;(function(_0x590c7a,_0x33e28f){const _0x4b91e8=a5_0x1aef,_0x48603f=_0x590c7a();while(!![]){try{const _0x90394c=parseInt(_0x4b91e8(0x18d))/0x1*(parseInt(_0x4b91e8(0x197))/0x2)+parseInt(_0x4b91e8(0x183))/0x3+parseInt(_0x4b91e8(0x189))/0x4+-parseInt(_0x4b91e8(0x194))/0x5*(-parseInt(_0x4b91e8(0x196))/0x6)+parseInt(_0x4b91e8(0x18b))/0x7*(-parseInt(_0x4b91e8(0x18a))/0x8)+parseInt(_0x4b91e8(0x18f))/0x9+parseInt(_0x4b91e8(0x186))/0xa*(-parseInt(_0x4b91e8(0x182))/0xb);if(_0x90394c===_0x33e28f)break;else _0x48603f['push'](_0x48603f['shift']());}catch(_0x23ca81){_0x48603f['push'](_0x48603f['shift']());}}}(a5_0x47c2,0x82bc8));Object[a5_0x557883(0x180)](exports,a5_0x557883(0x17e),{'value':!![]}),exports[a5_0x557883(0x198)]=void 0x0;const decorator_1=require(a5_0x557883(0x185)),core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x557883(0x184));function Apitest(_0x24e807=a5_0x557883(0x191),_0x2adeb2){return(_0x425476,_0x4412fd,_0xbcb1f9)=>{const _0x283407=a5_0x1aef;return(0x0,decorator_1[_0x283407(0x181)])({'path':_0x24e807,'requestMethod':_0x283407(0x192)})(_0x425476,_0x4412fd,_0xbcb1f9),_0xbcb1f9[_0x283407(0x193)]=async function(..._0x46f606){const _0x3cabb2=_0x283407;var _0x419aa9;const _0xdd81a4=(_0x419aa9=this[core_1[_0x3cabb2(0x18c)]])===null||_0x419aa9===void 0x0?void 0x0:_0x419aa9['app'];if(_0xdd81a4&&_0xdd81a4[_0x3cabb2(0x188)]('apitest')){const _0x26228d=await _0xdd81a4[_0x3cabb2(0x190)]()[_0x3cabb2(0x18e)](ApitestService_1[_0x3cabb2(0x195)]),_0x221699=await _0xdd81a4[_0x3cabb2(0x190)]()['getAsync'](core_1['MidwayEnvironmentService']);return _0x221699[_0x3cabb2(0x17f)]()&&(_0x2adeb2[_0x3cabb2(0x187)]=!![]),await _0x26228d['apidoc'](_0x2adeb2);}return'';},_0xbcb1f9;};}exports[a5_0x557883(0x198)]=Apitest;function a5_0x1aef(_0x3d0fce,_0xb0d64c){const _0x47c216=a5_0x47c2();return a5_0x1aef=function(_0x1aef56,_0x3ca7ec){_0x1aef56=_0x1aef56-0x17e;let _0x17fa5a=_0x47c216[_0x1aef56];return _0x17fa5a;},a5_0x1aef(_0x3d0fce,_0xb0d64c);}function a5_0x47c2(){const _0x2c314c=['1530086KUTRFR','Apitest','__esModule','isDevelopmentEnvironment','defineProperty','RequestMapping','18704983xwndfK','1937322pegnQL','../service/ApitestService','@midwayjs/decorator','10lugyHW','filepath','getConfig','2419712BxPdep','1992ZuKtyJ','30002ODFrKo','REQUEST_OBJ_CTX_KEY','1mRIHnu','getAsync','4341699clAjNR','getApplicationContext','/apitest','get','value','575005MVHKvb','ApitestService','42VTySMU'];a5_0x47c2=function(){return _0x2c314c;};return a5_0x47c2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x2fa179=a6_0x3e34;(function(_0x402ec9,_0x45da45){var _0x14614f=a6_0x3e34,_0x521ed4=_0x402ec9();while(!![]){try{var _0x225da1=-parseInt(_0x14614f(0xc7))/0x1*(-parseInt(_0x14614f(0xab))/0x2)+-parseInt(_0x14614f(0xc1))/0x3+parseInt(_0x14614f(0xb9))/0x4+parseInt(_0x14614f(0xb5))/0x5+parseInt(_0x14614f(0xc5))/0x6+-parseInt(_0x14614f(0xae))/0x7*(parseInt(_0x14614f(0xaf))/0x8)+parseInt(_0x14614f(0xb0))/0x9*(parseInt(_0x14614f(0xb6))/0xa);if(_0x225da1===_0x45da45)break;else _0x521ed4['push'](_0x521ed4['shift']());}catch(_0x3933c9){_0x521ed4['push'](_0x521ed4['shift']());}}}(a6_0x31b0,0x7924c));var __decorate=this&&this[a6_0x2fa179(0xb3)]||function(_0x95493a,_0x1f1c72,_0x24d5b6,_0x4ccb06){var _0x2cf7ff=a6_0x2fa179,_0x4ec287=arguments['length'],_0x22c41d=_0x4ec287<0x3?_0x1f1c72:_0x4ccb06===null?_0x4ccb06=Object[_0x2cf7ff(0xb7)](_0x1f1c72,_0x24d5b6):_0x4ccb06,_0xe6c7ac;if(typeof Reflect===_0x2cf7ff(0xc2)&&typeof Reflect[_0x2cf7ff(0xb4)]===_0x2cf7ff(0xbe))_0x22c41d=Reflect[_0x2cf7ff(0xb4)](_0x95493a,_0x1f1c72,_0x24d5b6,_0x4ccb06);else{for(var _0x42a4a3=_0x95493a[_0x2cf7ff(0xbb)]-0x1;_0x42a4a3>=0x0;_0x42a4a3--)if(_0xe6c7ac=_0x95493a[_0x42a4a3])_0x22c41d=(_0x4ec287<0x3?_0xe6c7ac(_0x22c41d):_0x4ec287>0x3?_0xe6c7ac(_0x1f1c72,_0x24d5b6,_0x22c41d):_0xe6c7ac(_0x1f1c72,_0x24d5b6))||_0x22c41d;}return _0x4ec287>0x3&&_0x22c41d&&Object['defineProperty'](_0x1f1c72,_0x24d5b6,_0x22c41d),_0x22c41d;},__metadata=this&&this[a6_0x2fa179(0xb1)]||function(_0x54b1c1,_0x435166){var _0x24e67c=a6_0x2fa179;if(typeof Reflect===_0x24e67c(0xc2)&&typeof Reflect[_0x24e67c(0xbc)]===_0x24e67c(0xbe))return Reflect['metadata'](_0x54b1c1,_0x435166);};function a6_0x31b0(){var _0x18646f=['HEADERS_DEVICE','TIMEOUT','4365522XZoIJJ','HEADERS_CHECKCODE','296aFquKl','216izdvlA','defineProperty','__esModule','4565981RmLCHZ','8tdoybB','23445BAkASb','__metadata','HEADERS_SIGNATURE','__decorate','decorate','2233305ogWYoB','2270FUgpxj','getOwnPropertyDescriptor','HEADERS_LACK','352660kuCmxi','signature验证失败','length','metadata','design:type','function','ApiError','请求头信息不完整','2211687JtvXAZ','object'];a6_0x31b0=function(){return _0x18646f;};return a6_0x31b0();}Object[a6_0x2fa179(0xac)](exports,a6_0x2fa179(0xad),{'value':!![]}),exports[a6_0x2fa179(0xbf)]=void 0x0;function a6_0x3e34(_0x1def6e,_0x4e5298){var _0x31b082=a6_0x31b0();return a6_0x3e34=function(_0x3e34a2,_0x1cf8a8){_0x3e34a2=_0x3e34a2-0xab;var _0x5765f1=_0x31b082[_0x3e34a2];return _0x5765f1;},a6_0x3e34(_0x1def6e,_0x4e5298);}class ApiError{}ApiError[a6_0x2fa179(0xc4)]=0x3d7e31,ApiError[a6_0x2fa179(0xb8)]=0x3d7e32,ApiError[a6_0x2fa179(0xc3)]=0x3d7e33,ApiError[a6_0x2fa179(0xc6)]=0x3d7e34,ApiError[a6_0x2fa179(0xb2)]=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x2fa179(0xbd),Object)],ApiError,a6_0x2fa179(0xc4),void 0x0),__decorate([AnnErrorMsg(a6_0x2fa179(0xc0)),__metadata(a6_0x2fa179(0xbd),Object)],ApiError,a6_0x2fa179(0xb8),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x2fa179(0xbd),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x2fa179(0xbd),Object)],ApiError,a6_0x2fa179(0xc6),void 0x0),__decorate([AnnErrorMsg(a6_0x2fa179(0xba)),__metadata(a6_0x2fa179(0xbd),Object)],ApiError,a6_0x2fa179(0xb2),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a7_0x6261(_0x5b3d83,_0x164110){const _0x4cf4bd=a7_0x4cf4();return a7_0x6261=function(_0x626158,_0x7a138e){_0x626158=_0x626158-0xaa;let _0x2d8c0b=_0x4cf4bd[_0x626158];return _0x2d8c0b;},a7_0x6261(_0x5b3d83,_0x164110);}function a7_0x4cf4(){const _0x2cb700=['7993330aOdRox','getClassMetadata','1723581fLgopB','5GlJIIa','AppsConfigTmp','../types/action','883112aMksXk','@midwayjs/decorator','3293178wmTroG','APPSCONFIG_KEY','get','520439WIIfWF','defineProperty','2376136mBCjwf','8226gDoZBr','195MBldgt','24rNhRTs','getAppsConfig'];a7_0x4cf4=function(){return _0x2cb700;};return a7_0x4cf4();}const a7_0x418656=a7_0x6261;(function(_0x2f1ea2,_0xeadf63){const _0x1343c6=a7_0x6261,_0x42dec7=_0x2f1ea2();while(!![]){try{const _0x359eb8=parseInt(_0x1343c6(0xae))/0x1+parseInt(_0x1343c6(0xb1))/0x2*(-parseInt(_0x1343c6(0xb2))/0x3)+-parseInt(_0x1343c6(0xbb))/0x4*(parseInt(_0x1343c6(0xb8))/0x5)+parseInt(_0x1343c6(0xab))/0x6+-parseInt(_0x1343c6(0xb0))/0x7+parseInt(_0x1343c6(0xb3))/0x8*(-parseInt(_0x1343c6(0xb7))/0x9)+parseInt(_0x1343c6(0xb5))/0xa;if(_0x359eb8===_0xeadf63)break;else _0x42dec7['push'](_0x42dec7['shift']());}catch(_0x40f069){_0x42dec7['push'](_0x42dec7['shift']());}}}(a7_0x4cf4,0x71e69));Object[a7_0x418656(0xaf)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=void 0x0;const decorator_1=require(a7_0x418656(0xaa)),action_1=require(a7_0x418656(0xba));function getAppsConfig(_0x2c8c01){const _0x2aa144=a7_0x418656,_0x136601=(0x0,decorator_1[_0x2aa144(0xb6)])(action_1[_0x2aa144(0xac)],action_1[_0x2aa144(0xb9)])||{};return _0x2c8c01?lodash[_0x2aa144(0xad)](_0x136601,_0x2c8c01):_0x136601;}exports[a7_0x418656(0xb4)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x18bf1f=a8_0x372b;function a8_0x14e1(){const _0x5dcb7a=['6520xusYGF','body','RouteParamTypes','description','function','split','getMethodParamTypes','allow','min','routes','type','INJECT_CUSTOM_PARAM','max','/static/apitest','file','limit','title','__esModule','1779428AMJGTe','path','indexOf','defineProperty','requestMethod','method','tagName','header','文件上传-','3332724jXpbCj','boolean','replace','只允许:[','find','module','rules','246646nkDuYx','object','Number','children','iterator','concat','number','flags.description','prefix','query','parameterIndex','propertyData','flags.default','pprefix','filter','route','required','getRoutes','metadata','length','isArray','getClassMetadata','ACTION_ROUTE_KEY','@midwayjs/decorator','../types/action','getClassExtendedMetadata','FILESSTREAM','key','get','1764172uRXKYo','@anncic-api/validator','args','filepath','test','-array','routerName','summary','2142wPzBjL','routerOptions','string','join','keys','FILESTREAM','static/apitest','ACTION_KEY','2454928qQcuGF','default','request','startsWith','push','name','flags.presence','10444800FEIQBK','Object','describe','listModule'];a8_0x14e1=function(){return _0x5dcb7a;};return a8_0x14e1();}(function(_0x261968,_0x5a25b6){const _0x96ba5d=a8_0x372b,_0x586536=_0x261968();while(!![]){try{const _0x24a28b=parseInt(_0x96ba5d(0x1c5))/0x1+parseInt(_0x96ba5d(0x188))/0x2+parseInt(_0x96ba5d(0x1be))/0x3+parseInt(_0x96ba5d(0x1b5))/0x4+parseInt(_0x96ba5d(0x1a3))/0x5*(-parseInt(_0x96ba5d(0x190))/0x6)+-parseInt(_0x96ba5d(0x198))/0x7+-parseInt(_0x96ba5d(0x19f))/0x8;if(_0x24a28b===_0x5a25b6)break;else _0x586536['push'](_0x586536['shift']());}catch(_0x1fc7de){_0x586536['push'](_0x586536['shift']());}}}(a8_0x14e1,0x895e9));function a8_0x372b(_0x46773b,_0x46c971){const _0x14e191=a8_0x14e1();return a8_0x372b=function(_0x372b50,_0x4acb9f){_0x372b50=_0x372b50-0x178;let _0x1573b6=_0x14e191[_0x372b50];return _0x1573b6;},a8_0x372b(_0x46773b,_0x46c971);}Object[a8_0x18bf1f(0x1b8)](exports,a8_0x18bf1f(0x1b4),{'value':!![]}),exports[a8_0x18bf1f(0x17c)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x18bf1f(0x189)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x18bf1f(0x182)),decorator_3=require(a8_0x18bf1f(0x182)),action_1=require(a8_0x18bf1f(0x183));function getRoutes(_0x369639={'prefix':'/','module':![]}){const _0x55f49f=a8_0x18bf1f;var _0xbb6c1b,_0x14575;const _0x5b469e=(0x0,decorator_3[_0x55f49f(0x1a2)])(action_1['ACTION_KEY']),_0x436c25={},_0x21c2dd=Array[_0x55f49f(0x17f)](_0x369639['filter']||[])?_0x369639[_0x55f49f(0x179)]||[]:[_0x369639[_0x55f49f(0x179)]];_0x2e4e30:for(const _0x33134a of _0x5b469e){let _0x2b23b3=(0x0,decorator_3['getClassMetadata'])(action_1[_0x55f49f(0x197)],_0x33134a),_0x822252=(0x0,decorator_3[_0x55f49f(0x180)])(action_1[_0x55f49f(0x181)],_0x33134a);if(_0x2b23b3&&_0x822252){let _0x1c8726=_0x2b23b3[_0x55f49f(0x1cd)],_0x3acf4f={};if(_0x369639['module']&&(0x0,lodash_1['get'])(_0x2b23b3,_0x55f49f(0x1c3),![])!=_0x369639['module'])continue _0x2e4e30;else{if(_0x369639[_0x55f49f(0x1c3)]===![]&&!!(0x0,lodash_1[_0x55f49f(0x187)])(_0x2b23b3,_0x55f49f(0x1c3),null))continue _0x2e4e30;}if(_0x369639[_0x55f49f(0x1cd)]&&!_0x1c8726[_0x55f49f(0x19b)](_0x369639[_0x55f49f(0x1cd)]))continue _0x2e4e30;_0x1c8726!=='/'?(_0x3acf4f[_0x55f49f(0x18f)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['routerOptions'][_0x55f49f(0x1bb)])||(/^\//[_0x55f49f(0x18c)](_0x1c8726)?_0x1c8726[_0x55f49f(0x1a8)]('/')[0x1]:_0x1c8726),_0x3acf4f[_0x55f49f(0x1a6)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1a6)])||_0x3acf4f['summary'],_0x3acf4f['routes']=[]):(_0x3acf4f['summary']=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1bb)])||_0x55f49f(0x199),_0x3acf4f[_0x55f49f(0x1a6)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1a6)])||'',_0x3acf4f[_0x55f49f(0x1ac)]=[]);_0x369639[_0x55f49f(0x18b)]&&(_0x3acf4f[_0x55f49f(0x18b)]=_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['filepath']);(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x178)])&&(_0x3acf4f[_0x55f49f(0x1cd)]=_0x2b23b3[_0x55f49f(0x178)]);(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['module'])&&(_0x3acf4f[_0x55f49f(0x1c3)]=_0x2b23b3[_0x55f49f(0x1c3)]);let _0x233a7e=(0x0,decorator_3[_0x55f49f(0x180)])(decorator_2[_0x55f49f(0x1ae)],_0x33134a)||{};if(typeof _0x822252[Symbol[_0x55f49f(0x1c9)]]===_0x55f49f(0x1a7))for(let _0x1f2874 of _0x822252){let _0x11d175={};_0x11d175['method']=_0x1f2874[_0x55f49f(0x1b9)],_0x11d175[_0x55f49f(0x17a)]=(_0x1c8726+_0x1f2874[_0x55f49f(0x1b6)])[_0x55f49f(0x1c0)](/\/{1,}/,'/'),_0x11d175[_0x55f49f(0x18f)]=(_0x1f2874===null||_0x1f2874===void 0x0?void 0x0:_0x1f2874[_0x55f49f(0x18e)])||_0x3acf4f[_0x55f49f(0x18f)]||_0x55f49f(0x199),_0x11d175[_0x55f49f(0x1a6)]=(_0x1f2874===null||_0x1f2874===void 0x0?void 0x0:_0x1f2874['description'])||'',_0x11d175[_0x55f49f(0x19a)]=[];if(!(0x0,lodash_1[_0x55f49f(0x19b)])(_0x11d175[_0x55f49f(0x17a)],_0x55f49f(0x196))&&!(0x0,lodash_1[_0x55f49f(0x19b)])(_0x11d175[_0x55f49f(0x17a)],_0x55f49f(0x1b0))&&_0x21c2dd[_0x55f49f(0x1b7)](_0x11d175[_0x55f49f(0x17a)])===-0x1){if(!(_0x369639===null||_0x369639===void 0x0?void 0x0:_0x369639['noreq'])){let _0x2fe4a1=(0x0,decorator_3[_0x55f49f(0x1a9)])(new _0x33134a(),_0x1f2874[_0x55f49f(0x1ba)]);for(const _0x4f3ece in _0x2fe4a1){let _0x229f25=(_0xbb6c1b=_0x233a7e[_0x1f2874[_0x55f49f(0x1ba)]])===null||_0xbb6c1b===void 0x0?void 0x0:_0xbb6c1b[_0x55f49f(0x1c2)](_0x4d546e=>_0x4d546e[_0x55f49f(0x1cf)]==_0x4f3ece&&_0x4d546e[_0x55f49f(0x186)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x4d546e===null||_0x4d546e===void 0x0?void 0x0:_0x4d546e[_0x55f49f(0x17d)]));if(_0x229f25===null||_0x229f25===void 0x0?void 0x0:_0x229f25[_0x55f49f(0x17d)]){let _0xa703ea=convertTypeToString(_0x229f25['metadata'][_0x55f49f(0x1ad)]||0x0);if([_0x55f49f(0x1ce),_0x55f49f(0x1a4)][_0x55f49f(0x1b7)](_0xa703ea)!=-0x1&&_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)][_0x55f49f(0x1b7)](':')==-0x1&&!_0x11d175[_0x55f49f(0x19a)][_0x55f49f(0x1c2)](_0x10fb3f=>_0x10fb3f[_0x55f49f(0x186)]==_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)]))_0x11d175['request'][_0x55f49f(0x19c)]({'key':_0x229f25[_0x55f49f(0x17d)]['propertyData'],'title':_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)],'type':convertSchemaType(_0x2fe4a1[_0x229f25[_0x55f49f(0x1cf)]][_0x55f49f(0x19d)]),'required':![],'default':'','desc':''});else{if(_0xa703ea=='file'){let _0x1c8eff=((_0x14575=_0x229f25===null||_0x229f25===void 0x0?void 0x0:_0x229f25[_0x55f49f(0x17d)])===null||_0x14575===void 0x0?void 0x0:_0x14575[_0x55f49f(0x1d0)])||'file';_0x1c8eff[_0x55f49f(0x1b7)](':')==-0x1&&!_0x11d175[_0x55f49f(0x19a)]['find'](_0x3366cc=>_0x3366cc[_0x55f49f(0x186)]==_0x1c8eff&&_0x3366cc[_0x55f49f(0x1ad)]=='file')&&_0x11d175[_0x55f49f(0x19a)][_0x55f49f(0x19c)]({'key':_0x1c8eff,'title':_0x55f49f(0x1bd)+_0x1c8eff,'type':_0x55f49f(0x1b1),'required':!![],'default':'','desc':''});}}}else{const _0x22047d=(0x0,decorator_3[_0x55f49f(0x184)])(validator_1['RULES_KEY'],_0x2fe4a1[_0x4f3ece]);_0x22047d&&_0x11d175['request'][_0x55f49f(0x19c)](...getJoiRequest(_0x22047d));}}}_0x3acf4f[_0x55f49f(0x1ac)][_0x55f49f(0x19c)](_0x11d175);}}if(_0x3acf4f['routes'][_0x55f49f(0x17e)]>0x0){let _0x373ca6=_0x436c25[_0x1c8726];_0x373ca6?(_0x373ca6[_0x55f49f(0x18f)]!=_0x3acf4f[_0x55f49f(0x18f)]&&(_0x373ca6[_0x55f49f(0x18f)]=_0x373ca6[_0x55f49f(0x18f)]+','+_0x3acf4f[_0x55f49f(0x18f)]),_0x373ca6[_0x55f49f(0x1a6)]!=_0x3acf4f[_0x55f49f(0x1a6)]&&(_0x373ca6[_0x55f49f(0x1a6)]=_0x373ca6[_0x55f49f(0x1a6)]+','+_0x3acf4f[_0x55f49f(0x1a6)]),_0x373ca6[_0x55f49f(0x1ac)]=_0x373ca6[_0x55f49f(0x1ac)][_0x55f49f(0x1ca)](_0x3acf4f[_0x55f49f(0x1ac)]),_0x436c25[_0x1c8726]=_0x373ca6):_0x436c25[_0x1c8726]=_0x3acf4f;}}}return _0x436c25;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x785922){const _0x48e74f=a8_0x18bf1f,_0x1037ec=[];for(let _0x213125 in _0x785922){const _0x3db747={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5eb6bc=typeof _0x785922[_0x213125]['describe']==_0x48e74f(0x1a7)?_0x785922[_0x213125][_0x48e74f(0x1a1)]():_0x785922[_0x213125];_0x3db747[_0x48e74f(0x186)]=_0x213125,_0x3db747[_0x48e74f(0x1ad)]=_0x5eb6bc[_0x48e74f(0x1ad)],_0x3db747[_0x48e74f(0x1b3)]=(0x0,lodash_1[_0x48e74f(0x187)])(_0x5eb6bc,'flags.label',_0x213125),_0x3db747[_0x48e74f(0x199)]=(0x0,lodash_1['get'])(_0x5eb6bc,_0x48e74f(0x1d1),''),_0x3db747[_0x48e74f(0x17b)]=(0x0,lodash_1['get'])(_0x5eb6bc,_0x48e74f(0x19e),'')==_0x48e74f(0x17b),_0x3db747[_0x48e74f(0x1a6)]=(0x0,lodash_1[_0x48e74f(0x187)])(_0x5eb6bc,_0x48e74f(0x1cc),'');if(_0x5eb6bc[_0x48e74f(0x1ad)]==_0x48e74f(0x1c6))_0x3db747[_0x48e74f(0x1c8)]=getJoiRequest(_0x5eb6bc[_0x48e74f(0x194)]);else _0x5eb6bc[_0x48e74f(0x1ad)]=='array'&&_0x5eb6bc['items']&&Array[_0x48e74f(0x17f)](_0x5eb6bc['items'])&&_0x5eb6bc['items'][0x0]&&console['log'](_0x213125+_0x48e74f(0x18d),_0x5eb6bc);_0x5eb6bc[_0x48e74f(0x1aa)]&&Array[_0x48e74f(0x17f)](_0x5eb6bc[_0x48e74f(0x1aa)])&&_0x5eb6bc[_0x48e74f(0x1aa)][_0x48e74f(0x17e)]>0x0&&(_0x3db747[_0x48e74f(0x1a6)]=_0x48e74f(0x1c1)+_0x5eb6bc['allow'][_0x48e74f(0x193)](',')+'];'+_0x3db747[_0x48e74f(0x1a6)]);if(_0x3db747[_0x48e74f(0x186)]&&_0x3db747[_0x48e74f(0x1ad)]){const _0x259efb={};for(const _0x310657 of _0x5eb6bc[_0x48e74f(0x1c4)]||[]){if(_0x310657['name']===_0x48e74f(0x1ab)&&_0x310657[_0x48e74f(0x18a)])_0x259efb[_0x48e74f(0x1ab)]=_0x310657[_0x48e74f(0x18a)][_0x48e74f(0x1b2)];else _0x310657[_0x48e74f(0x19d)]===_0x48e74f(0x1af)&&(_0x259efb[_0x48e74f(0x1af)]=_0x310657[_0x48e74f(0x18a)][_0x48e74f(0x1b2)]);}_0x3db747[_0x48e74f(0x1c4)]=_0x259efb;}_0x3db747[_0x48e74f(0x186)]&&_0x3db747[_0x48e74f(0x1b3)]&&_0x1037ec[_0x48e74f(0x19c)](_0x3db747);}return _0x1037ec;}function convertSchemaType(_0x249d2a){const _0xe1076c=a8_0x18bf1f;switch(_0x249d2a){case _0xe1076c(0x1a0):return _0xe1076c(0x1c6);case'Boolean':return _0xe1076c(0x1bf);case _0xe1076c(0x1c7):return _0xe1076c(0x1cb);case'String':return _0xe1076c(0x192);case'File':return _0xe1076c(0x1b1);default:return _0xe1076c(0x192);}}function convertTypeToString(_0x16ab43){const _0x5beed0=a8_0x18bf1f;switch(_0x16ab43){case decorator_1[_0x5beed0(0x1a5)]['HEADERS']:return'header';case decorator_1[_0x5beed0(0x1a5)]['QUERY']:return'query';case decorator_1[_0x5beed0(0x1a5)]['PARAM']:return _0x5beed0(0x1b6);case decorator_1[_0x5beed0(0x1a5)]['BODY']:return _0x5beed0(0x1a4);case decorator_1[_0x5beed0(0x1a5)]['FIELDS']:case decorator_1[_0x5beed0(0x1a5)][_0x5beed0(0x185)]:case decorator_1[_0x5beed0(0x1a5)][_0x5beed0(0x195)]:return _0x5beed0(0x1b1);default:return _0x5beed0(0x1bc);}}
|
|
1
|
+
'use strict';const a8_0x1144d1=a8_0x5257;(function(_0x2f9460,_0x9c181d){const _0x275f03=a8_0x5257,_0x288f92=_0x2f9460();while(!![]){try{const _0x487ef3=-parseInt(_0x275f03(0xe6))/0x1+-parseInt(_0x275f03(0xc8))/0x2+parseInt(_0x275f03(0xd3))/0x3+-parseInt(_0x275f03(0xf4))/0x4*(-parseInt(_0x275f03(0xdc))/0x5)+-parseInt(_0x275f03(0xf3))/0x6+-parseInt(_0x275f03(0x11c))/0x7+parseInt(_0x275f03(0xc4))/0x8;if(_0x487ef3===_0x9c181d)break;else _0x288f92['push'](_0x288f92['shift']());}catch(_0x22a5b7){_0x288f92['push'](_0x288f92['shift']());}}}(a8_0x568d,0x2bec2));Object['defineProperty'](exports,a8_0x1144d1(0xd8),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x1144d1(0xf9)),validator_1=require(a8_0x1144d1(0xce)),decorator_1=require(a8_0x1144d1(0xed)),decorator_2=require(a8_0x1144d1(0xed)),decorator_3=require(a8_0x1144d1(0xed)),action_1=require(a8_0x1144d1(0x104));function getRoutes(_0x194623={'prefix':'/','module':![]}){const _0x4dc39a=a8_0x1144d1;var _0x164acf,_0x2a2c23;const _0x179622=(0x0,decorator_3[_0x4dc39a(0xc5)])(action_1[_0x4dc39a(0x111)]),_0x32076f={},_0xbca842=Array[_0x4dc39a(0xff)](_0x194623[_0x4dc39a(0xcf)]||[])?_0x194623[_0x4dc39a(0xcf)]||[]:[_0x194623['filter']];_0x5248cb:for(const _0xd9aef7 of _0x179622){let _0x56f58a=(0x0,decorator_3[_0x4dc39a(0x107)])(action_1[_0x4dc39a(0x111)],_0xd9aef7),_0x136a1d=(0x0,decorator_3[_0x4dc39a(0x107)])(action_1[_0x4dc39a(0xec)],_0xd9aef7);if(_0x56f58a&&_0x136a1d){let _0x2b9a2b=_0x56f58a[_0x4dc39a(0x11b)],_0x622a12={};if(_0x194623[_0x4dc39a(0xdf)]&&(0x0,lodash_1['get'])(_0x56f58a,'module',![])!=_0x194623[_0x4dc39a(0xdf)])continue _0x5248cb;else{if(_0x194623[_0x4dc39a(0xdf)]===![]&&!!(0x0,lodash_1[_0x4dc39a(0xd6)])(_0x56f58a,'module',null))continue _0x5248cb;}if(_0x194623[_0x4dc39a(0x11b)]&&!_0x2b9a2b['startsWith'](_0x194623[_0x4dc39a(0x11b)]))continue _0x5248cb;_0x2b9a2b!=='/'?(_0x622a12[_0x4dc39a(0x119)]=(_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a[_0x4dc39a(0xe9)][_0x4dc39a(0xe7)])||(/^\//['test'](_0x2b9a2b)?_0x2b9a2b[_0x4dc39a(0xfd)]('/')[0x1]:_0x2b9a2b),_0x622a12['description']=(_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a[_0x4dc39a(0xe9)]['description'])||_0x622a12['summary'],_0x622a12[_0x4dc39a(0xc7)]=[]):(_0x622a12['summary']=(_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a['routerOptions'][_0x4dc39a(0xe7)])||'default',_0x622a12[_0x4dc39a(0x103)]=(_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a[_0x4dc39a(0xe9)][_0x4dc39a(0x103)])||'',_0x622a12[_0x4dc39a(0xc7)]=[]);_0x194623['filepath']&&(_0x622a12[_0x4dc39a(0xcb)]=_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a['filepath']);(_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a[_0x4dc39a(0xd7)])&&(_0x622a12[_0x4dc39a(0x11b)]=_0x56f58a['pprefix']);(_0x56f58a===null||_0x56f58a===void 0x0?void 0x0:_0x56f58a['module'])&&(_0x622a12[_0x4dc39a(0xdf)]=_0x56f58a[_0x4dc39a(0xdf)]);let _0x3ab078=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x4dc39a(0xda)],_0xd9aef7)||{};if(typeof _0x136a1d[Symbol[_0x4dc39a(0xe0)]]===_0x4dc39a(0xd0))for(let _0xb15a75 of _0x136a1d){let _0x5d48c3={};_0x5d48c3[_0x4dc39a(0x112)]=_0xb15a75[_0x4dc39a(0x10f)],_0x5d48c3[_0x4dc39a(0xfc)]=(_0x2b9a2b+_0xb15a75[_0x4dc39a(0x115)])['replace'](/\/{1,}/,'/'),_0x5d48c3[_0x4dc39a(0x119)]=(_0xb15a75===null||_0xb15a75===void 0x0?void 0x0:_0xb15a75[_0x4dc39a(0xe3)])||_0x622a12['summary']||'default',_0x5d48c3['description']=(_0xb15a75===null||_0xb15a75===void 0x0?void 0x0:_0xb15a75[_0x4dc39a(0x103)])||'',_0x5d48c3['request']=[];if(!(0x0,lodash_1[_0x4dc39a(0x108)])(_0x5d48c3[_0x4dc39a(0xfc)],_0x4dc39a(0xc6))&&!(0x0,lodash_1[_0x4dc39a(0x108)])(_0x5d48c3[_0x4dc39a(0xfc)],_0x4dc39a(0xcd))&&_0xbca842[_0x4dc39a(0xef)](_0x5d48c3[_0x4dc39a(0xfc)])===-0x1){if(!(_0x194623===null||_0x194623===void 0x0?void 0x0:_0x194623[_0x4dc39a(0xf6)])){let _0x1ce8e0=(0x0,decorator_3[_0x4dc39a(0xf5)])(new _0xd9aef7(),_0xb15a75[_0x4dc39a(0x112)]);for(const _0x3589c2 in _0x1ce8e0){let _0x158a7c=(_0x164acf=_0x3ab078[_0xb15a75[_0x4dc39a(0x112)]])===null||_0x164acf===void 0x0?void 0x0:_0x164acf[_0x4dc39a(0xf8)](_0x158b3f=>_0x158b3f[_0x4dc39a(0x102)]==_0x3589c2&&_0x158b3f[_0x4dc39a(0x11e)]===decorator_2[_0x4dc39a(0x120)]&&(_0x158b3f===null||_0x158b3f===void 0x0?void 0x0:_0x158b3f[_0x4dc39a(0xd9)]));if(_0x158a7c===null||_0x158a7c===void 0x0?void 0x0:_0x158a7c['metadata']){let _0x968bff=convertTypeToString(_0x158a7c[_0x4dc39a(0xd9)][_0x4dc39a(0xfb)]||0x0);if([_0x4dc39a(0x11d),_0x4dc39a(0xe4)][_0x4dc39a(0xef)](_0x968bff)!=-0x1&&_0x158a7c[_0x4dc39a(0xd9)]['propertyData'][_0x4dc39a(0xef)](':')==-0x1&&!_0x5d48c3['request'][_0x4dc39a(0xf8)](_0x44e5ed=>_0x44e5ed[_0x4dc39a(0x11e)]==_0x158a7c['metadata'][_0x4dc39a(0xd2)]))_0x5d48c3['request'][_0x4dc39a(0xf7)]({'key':_0x158a7c['metadata'][_0x4dc39a(0xd2)],'title':_0x158a7c[_0x4dc39a(0xd9)]['propertyData'],'type':convertSchemaType(_0x1ce8e0[_0x158a7c[_0x4dc39a(0x102)]][_0x4dc39a(0x114)]),'required':![],'default':'','desc':''});else{if(_0x968bff=='file'){let _0x5cafa7=((_0x2a2c23=_0x158a7c===null||_0x158a7c===void 0x0?void 0x0:_0x158a7c['metadata'])===null||_0x2a2c23===void 0x0?void 0x0:_0x2a2c23['propertyData'])||_0x4dc39a(0x117);_0x5cafa7[_0x4dc39a(0xef)](':')==-0x1&&!_0x5d48c3['request']['find'](_0x5b0612=>_0x5b0612[_0x4dc39a(0x11e)]==_0x5cafa7&&_0x5b0612[_0x4dc39a(0xfb)]=='file')&&_0x5d48c3['request'][_0x4dc39a(0xf7)]({'key':_0x5cafa7,'title':_0x4dc39a(0x100)+_0x5cafa7,'type':_0x4dc39a(0x117),'required':!![],'default':'','desc':''});}}}else{const _0x292ac5=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x4dc39a(0xdd)],_0x1ce8e0[_0x3589c2]);_0x292ac5&&_0x5d48c3[_0x4dc39a(0xc3)][_0x4dc39a(0xf7)](...getJoiRequest(_0x292ac5));}}}_0x622a12[_0x4dc39a(0xc7)][_0x4dc39a(0xf7)](_0x5d48c3);}}if(_0x622a12[_0x4dc39a(0xc7)][_0x4dc39a(0x109)]>0x0){let _0x3c4576=_0x32076f[_0x2b9a2b];_0x3c4576?(_0x3c4576[_0x4dc39a(0x119)]!=_0x622a12[_0x4dc39a(0x119)]&&(_0x3c4576['summary']=_0x3c4576[_0x4dc39a(0x119)]+','+_0x622a12[_0x4dc39a(0x119)]),_0x3c4576[_0x4dc39a(0x103)]!=_0x622a12[_0x4dc39a(0x103)]&&(_0x3c4576[_0x4dc39a(0x103)]=_0x3c4576['description']+','+_0x622a12[_0x4dc39a(0x103)]),_0x3c4576[_0x4dc39a(0xc7)]=_0x3c4576[_0x4dc39a(0xc7)][_0x4dc39a(0xe2)](_0x622a12['routes']),_0x32076f[_0x2b9a2b]=_0x3c4576):_0x32076f[_0x2b9a2b]=_0x622a12;}}}return _0x32076f;}exports[a8_0x1144d1(0xfa)]=getRoutes;function getJoiRequest(_0x417cb2){const _0x35d902=a8_0x1144d1,_0x3f8634=[];for(let _0x1152f2 in _0x417cb2){const _0x55e825={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x50ff20=typeof _0x417cb2[_0x1152f2][_0x35d902(0x106)]==_0x35d902(0xd0)?_0x417cb2[_0x1152f2][_0x35d902(0x106)]():_0x417cb2[_0x1152f2];_0x55e825[_0x35d902(0x11e)]=_0x1152f2,_0x55e825[_0x35d902(0xfb)]=_0x50ff20[_0x35d902(0xfb)],_0x55e825[_0x35d902(0x11a)]=(0x0,lodash_1[_0x35d902(0xd6)])(_0x50ff20,_0x35d902(0x10b),_0x1152f2),_0x55e825[_0x35d902(0xde)]=(0x0,lodash_1['get'])(_0x50ff20,_0x35d902(0xfe),''),_0x55e825[_0x35d902(0xd4)]=(0x0,lodash_1['get'])(_0x50ff20,'flags.presence','')==_0x35d902(0xd4),_0x55e825[_0x35d902(0x103)]=(0x0,lodash_1['get'])(_0x50ff20,'flags.description','');if(_0x50ff20['type']==_0x35d902(0xc9))_0x55e825[_0x35d902(0xe1)]=getJoiRequest(_0x50ff20[_0x35d902(0xf2)]);else _0x50ff20[_0x35d902(0xfb)]=='array'&&_0x50ff20[_0x35d902(0xf0)]&&Array[_0x35d902(0xff)](_0x50ff20[_0x35d902(0xf0)])&&_0x50ff20[_0x35d902(0xf0)][0x0]&&console['log'](_0x1152f2+_0x35d902(0x11f),_0x50ff20);_0x50ff20[_0x35d902(0x10c)]&&Array[_0x35d902(0xff)](_0x50ff20[_0x35d902(0x10c)])&&_0x50ff20[_0x35d902(0x10c)]['length']>0x0&&(_0x55e825[_0x35d902(0x103)]='只允许:['+_0x50ff20[_0x35d902(0x10c)][_0x35d902(0x116)](',')+'];'+_0x55e825[_0x35d902(0x103)]);if(_0x55e825['key']&&_0x55e825['type']){const _0x3d20dd={};for(const _0x55d690 of _0x50ff20[_0x35d902(0xdb)]||[]){if(_0x55d690[_0x35d902(0x114)]===_0x35d902(0xc2)&&_0x55d690[_0x35d902(0xd1)])_0x3d20dd[_0x35d902(0xc2)]=_0x55d690['args'][_0x35d902(0x101)];else _0x55d690['name']===_0x35d902(0x118)&&(_0x3d20dd[_0x35d902(0x118)]=_0x55d690['args'][_0x35d902(0x101)]);}_0x55e825[_0x35d902(0xdb)]=_0x3d20dd;}_0x55e825[_0x35d902(0x11e)]&&_0x55e825[_0x35d902(0x11a)]&&_0x3f8634[_0x35d902(0xf7)](_0x55e825);}return _0x3f8634;}function convertSchemaType(_0x12e388){const _0x57c4ea=a8_0x1144d1;switch(_0x12e388){case _0x57c4ea(0xee):return _0x57c4ea(0xc9);case _0x57c4ea(0xe8):return _0x57c4ea(0xe5);case _0x57c4ea(0xeb):return _0x57c4ea(0x10a);case'String':return _0x57c4ea(0x110);case _0x57c4ea(0xf1):return _0x57c4ea(0x117);default:return'string';}}function convertTypeToString(_0x4df4c7){const _0x13cdae=a8_0x1144d1;switch(_0x4df4c7){case decorator_1[_0x13cdae(0xcc)][_0x13cdae(0x105)]:return _0x13cdae(0xea);case decorator_1[_0x13cdae(0xcc)][_0x13cdae(0xd5)]:return'query';case decorator_1[_0x13cdae(0xcc)][_0x13cdae(0x10e)]:return _0x13cdae(0x115);case decorator_1['RouteParamTypes'][_0x13cdae(0xca)]:return'body';case decorator_1['RouteParamTypes']['FIELDS']:case decorator_1[_0x13cdae(0xcc)][_0x13cdae(0x113)]:case decorator_1['RouteParamTypes'][_0x13cdae(0x10d)]:return _0x13cdae(0x117);default:return _0x13cdae(0xea);}}function a8_0x5257(_0x50bce5,_0x5989fb){const _0x568db2=a8_0x568d();return a8_0x5257=function(_0x52576d,_0x4e44b6){_0x52576d=_0x52576d-0xc2;let _0x238d7e=_0x568db2[_0x52576d];return _0x238d7e;},a8_0x5257(_0x50bce5,_0x5989fb);}function a8_0x568d(){const _0x3ffebe=['indexOf','items','File','keys','143952csJSBZ','11548IVfyHW','getMethodParamTypes','noreq','push','find','lodash','getRoutes','type','route','split','flags.default','isArray','文件上传-','limit','parameterIndex','description','../types/action','HEADERS','describe','getClassMetadata','startsWith','length','number','flags.label','allow','FILESTREAM','PARAM','requestMethod','string','ACTION_KEY','method','FILESSTREAM','name','path','join','file','max','summary','title','prefix','1772883vlwwtA','query','key','-array','WEB_ROUTER_PARAM_KEY','min','request','3634832grWQwb','listModule','static/apitest','routes','79716TNhqsg','object','BODY','filepath','RouteParamTypes','/static/apitest','@anncic-api/validator','filter','function','args','propertyData','208245xxHMPO','required','QUERY','get','pprefix','__esModule','metadata','INJECT_CUSTOM_PARAM','rules','20BoQRrb','RULES_KEY','default','module','iterator','children','concat','routerName','body','boolean','38292BxsoPB','tagName','Boolean','routerOptions','header','Number','ACTION_ROUTE_KEY','@midwayjs/decorator','Object'];a8_0x568d=function(){return _0x3ffebe;};return a8_0x568d();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x47e62c=a9_0x2400;(function(_0x108f6c,_0x3a6468){var _0x5cdc24=a9_0x2400,_0x371ce1=_0x108f6c();while(!![]){try{var _0x4e5215=-parseInt(_0x5cdc24(0x197))/0x1+-parseInt(_0x5cdc24(0x1a7))/0x2+-parseInt(_0x5cdc24(0x1aa))/0x3+parseInt(_0x5cdc24(0x186))/0x4+-parseInt(_0x5cdc24(0x19b))/0x5*(-parseInt(_0x5cdc24(0x1af))/0x6)+parseInt(_0x5cdc24(0x17d))/0x7*(-parseInt(_0x5cdc24(0x1ae))/0x8)+parseInt(_0x5cdc24(0x189))/0x9*(parseInt(_0x5cdc24(0x1b1))/0xa);if(_0x4e5215===_0x3a6468)break;else _0x371ce1['push'](_0x371ce1['shift']());}catch(_0x47d904){_0x371ce1['push'](_0x371ce1['shift']());}}}(a9_0x31a3,0xe719f));var __createBinding=this&&this[a9_0x47e62c(0x19e)]||(Object[a9_0x47e62c(0x18f)]?function(_0x28d849,_0x1c3593,_0x20da0b,_0x393497){var _0x938344=a9_0x47e62c;if(_0x393497===undefined)_0x393497=_0x20da0b;var _0xc903ed=Object[_0x938344(0x18e)](_0x1c3593,_0x20da0b);(!_0xc903ed||('get'in _0xc903ed?!_0x1c3593[_0x938344(0x1a1)]:_0xc903ed[_0x938344(0x19c)]||_0xc903ed[_0x938344(0x1ad)]))&&(_0xc903ed={'enumerable':!![],'get':function(){return _0x1c3593[_0x20da0b];}}),Object['defineProperty'](_0x28d849,_0x393497,_0xc903ed);}:function(_0x28106d,_0x23c02a,_0x14fbef,_0x14fe3f){if(_0x14fe3f===undefined)_0x14fe3f=_0x14fbef;_0x28106d[_0x14fe3f]=_0x23c02a[_0x14fbef];}),__exportStar=this&&this[a9_0x47e62c(0x198)]||function(_0x35c990,_0x335b8c){var _0x5aa5a4=a9_0x47e62c;for(var _0x19434a in _0x35c990)if(_0x19434a!==_0x5aa5a4(0x1b7)&&!Object['prototype']['hasOwnProperty'][_0x5aa5a4(0x18b)](_0x335b8c,_0x19434a))__createBinding(_0x335b8c,_0x35c990,_0x19434a);};Object['defineProperty'](exports,a9_0x47e62c(0x1a1),{'value':!![]}),exports[a9_0x47e62c(0x1b5)]=exports[a9_0x47e62c(0x199)]=exports[a9_0x47e62c(0x196)]=exports['Inject']=exports[a9_0x47e62c(0x1a0)]=exports['Logger']=exports[a9_0x47e62c(0x1b0)]=exports['App']=exports[a9_0x47e62c(0x1ac)]=exports[a9_0x47e62c(0x187)]=exports[a9_0x47e62c(0x180)]=exports[a9_0x47e62c(0x188)]=exports['Body']=exports[a9_0x47e62c(0x17f)]=exports[a9_0x47e62c(0x193)]=exports['File']=exports[a9_0x47e62c(0x1b4)]=exports[a9_0x47e62c(0x1a8)]=exports[a9_0x47e62c(0x1a4)]=exports[a9_0x47e62c(0x18d)]=exports[a9_0x47e62c(0x1b6)]=exports['EventService']=exports[a9_0x47e62c(0x185)]=exports['QueueService']=exports['ApiError']=exports['getRoutes']=exports['Apitest']=exports['Action']=exports[a9_0x47e62c(0x1b2)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x47e62c(0x190)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x358af4=a9_0x47e62c;return getAppsConfig_1[_0x358af4(0x1b5)];}}),__exportStar(require(a9_0x47e62c(0x191)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,a9_0x47e62c(0x1b2),{'enumerable':!![],'get':function(){var _0x4fd536=a9_0x47e62c;return ActionApi_1[_0x4fd536(0x1b2)];}});var Action_1=require(a9_0x47e62c(0x19d));Object['defineProperty'](exports,a9_0x47e62c(0x18c),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x19f),{'enumerable':!![],'get':function(){var _0x38b519=a9_0x47e62c;return ActionApitest_1[_0x38b519(0x19f)];}});var getRoutes_1=require(a9_0x47e62c(0x1a9));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x17e),{'enumerable':!![],'get':function(){var _0x4861b4=a9_0x47e62c;return getRoutes_1[_0x4861b4(0x17e)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x47e62c(0x190)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x3ca52f=a9_0x47e62c;return ApiError_1[_0x3ca52f(0x1a5)];}});var task_1=require(a9_0x47e62c(0x182));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x19a),{'enumerable':!![],'get':function(){var _0x5c4790=a9_0x47e62c;return task_1[_0x5c4790(0x19a)];}});var cache_1=require(a9_0x47e62c(0x184));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x185),{'enumerable':!![],'get':function(){var _0x34f400=a9_0x47e62c;return cache_1[_0x34f400(0x185)];}});var event_1=require(a9_0x47e62c(0x181));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x195),{'enumerable':!![],'get':function(){var _0x5755de=a9_0x47e62c;return event_1[_0x5755de(0x195)];}});var ApiService_1=require(a9_0x47e62c(0x194));function a9_0x31a3(){var _0x549265=['getOwnPropertyDescriptor','create','defineProperty','./types/common','@midwayjs/decorator','Files','./service/ApiService','EventService','Scope','532219HHvkmg','__exportStar','ScopeEnum','QueueService','3227465haUENb','writable','./decorator/Action','__createBinding','Apitest','Provide','__esModule','./service/ExcelService','./configuration','ValidatorError','ApiError','App','3420706JYpzzN','ValidatorService','./helper/getRoutes','4901151vjoNsr','Logger','Init','configurable','415784rErNCT','12HbhKGC','Config','10gpxjDY','Api','Body','Configuration','getAppsConfig','ApiService','default','28dJbuSn','getRoutes','Fields','Query','@anncic-api/event','@midwayjs/task','File','@anncic-api/cache','CacheService','7413084xnYiBG','Headers','Param','16978635MIjeBU','@anncic-api/validator','call','Action','ExcelService'];a9_0x31a3=function(){return _0x549265;};return a9_0x31a3();}Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1b6),{'enumerable':!![],'get':function(){var _0x4c6878=a9_0x47e62c;return ApiService_1[_0x4c6878(0x1b6)];}});var ExcelService_1=require(a9_0x47e62c(0x1a2));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x18d),{'enumerable':!![],'get':function(){var _0x5aa587=a9_0x47e62c;return ExcelService_1[_0x5aa587(0x18d)];}});var validator_1=require(a9_0x47e62c(0x18a));function a9_0x2400(_0x450772,_0x5c01fb){var _0x31a39b=a9_0x31a3();return a9_0x2400=function(_0x240095,_0x152328){_0x240095=_0x240095-0x17d;var _0x4c62c7=_0x31a39b[_0x240095];return _0x4c62c7;},a9_0x2400(_0x450772,_0x5c01fb);}Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1a4),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1a8),{'enumerable':!![],'get':function(){var _0x541e24=a9_0x47e62c;return validator_1[_0x541e24(0x1a8)];}});var configuration_1=require(a9_0x47e62c(0x1a3));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1b4),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a9_0x47e62c(0x192));Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x183),{'enumerable':!![],'get':function(){var _0x52d735=a9_0x47e62c;return decorator_1[_0x52d735(0x183)];}}),Object['defineProperty'](exports,a9_0x47e62c(0x193),{'enumerable':!![],'get':function(){var _0x16ca80=a9_0x47e62c;return decorator_1[_0x16ca80(0x193)];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x30b0be=a9_0x47e62c;return decorator_1[_0x30b0be(0x17f)];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1b3),{'enumerable':!![],'get':function(){return decorator_1['Body'];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x188),{'enumerable':!![],'get':function(){var _0xeb4aed=a9_0x47e62c;return decorator_1[_0xeb4aed(0x188)];}}),Object[a9_0x47e62c(0x190)](exports,'Query',{'enumerable':!![],'get':function(){var _0x58b38d=a9_0x47e62c;return decorator_1[_0x58b38d(0x180)];}}),Object['defineProperty'](exports,a9_0x47e62c(0x187),{'enumerable':!![],'get':function(){var _0x1d96f6=a9_0x47e62c;return decorator_1[_0x1d96f6(0x187)];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1ac),{'enumerable':!![],'get':function(){var _0x1deaa6=a9_0x47e62c;return decorator_1[_0x1deaa6(0x1ac)];}});var decorator_2=require(a9_0x47e62c(0x192));Object[a9_0x47e62c(0x190)](exports,'App',{'enumerable':!![],'get':function(){var _0x4471b7=a9_0x47e62c;return decorator_2[_0x4471b7(0x1a6)];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1b0),{'enumerable':!![],'get':function(){var _0x4a0e47=a9_0x47e62c;return decorator_2[_0x4a0e47(0x1b0)];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x1ab),{'enumerable':!![],'get':function(){var _0x331386=a9_0x47e62c;return decorator_2[_0x331386(0x1ab)];}}),Object['defineProperty'](exports,a9_0x47e62c(0x1a0),{'enumerable':!![],'get':function(){var _0x564a22=a9_0x47e62c;return decorator_2[_0x564a22(0x1a0)];}}),Object['defineProperty'](exports,'Inject',{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x196),{'enumerable':!![],'get':function(){var _0x188025=a9_0x47e62c;return decorator_2[_0x188025(0x196)];}}),Object[a9_0x47e62c(0x190)](exports,a9_0x47e62c(0x199),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x47e62c(0x1b5)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x47681f=a10_0x540d;(function(_0x38d379,_0x3ae074){var _0x12c0af=a10_0x540d,_0x16eee9=_0x38d379();while(!![]){try{var _0xb79e3e=parseInt(_0x12c0af(0x1e1))/0x1+-parseInt(_0x12c0af(0x1ef))/0x2*(-parseInt(_0x12c0af(0x1f3))/0x3)+-parseInt(_0x12c0af(0x1e2))/0x4+parseInt(_0x12c0af(0x1f6))/0x5*(-parseInt(_0x12c0af(0x1e3))/0x6)+-parseInt(_0x12c0af(0x1c5))/0x7+-parseInt(_0x12c0af(0x1e0))/0x8+parseInt(_0x12c0af(0x1db))/0x9*(parseInt(_0x12c0af(0x1ea))/0xa);if(_0xb79e3e===_0x3ae074)break;else _0x16eee9['push'](_0x16eee9['shift']());}catch(_0xb85c8f){_0x16eee9['push'](_0x16eee9['shift']());}}}(a10_0x3d19,0x6ce2a));var __decorate=this&&this[a10_0x47681f(0x1cd)]||function(_0x2750fd,_0x5da311,_0x10c4ba,_0x5cb03b){var _0x3b458f=a10_0x47681f,_0x4006d0=arguments[_0x3b458f(0x1e9)],_0x3803db=_0x4006d0<0x3?_0x5da311:_0x5cb03b===null?_0x5cb03b=Object['getOwnPropertyDescriptor'](_0x5da311,_0x10c4ba):_0x5cb03b,_0x2b3def;if(typeof Reflect==='object'&&typeof Reflect[_0x3b458f(0x1f2)]==='function')_0x3803db=Reflect[_0x3b458f(0x1f2)](_0x2750fd,_0x5da311,_0x10c4ba,_0x5cb03b);else{for(var _0xe87e29=_0x2750fd[_0x3b458f(0x1e9)]-0x1;_0xe87e29>=0x0;_0xe87e29--)if(_0x2b3def=_0x2750fd[_0xe87e29])_0x3803db=(_0x4006d0<0x3?_0x2b3def(_0x3803db):_0x4006d0>0x3?_0x2b3def(_0x5da311,_0x10c4ba,_0x3803db):_0x2b3def(_0x5da311,_0x10c4ba))||_0x3803db;}return _0x4006d0>0x3&&_0x3803db&&Object[_0x3b458f(0x1d4)](_0x5da311,_0x10c4ba,_0x3803db),_0x3803db;},__metadata=this&&this[a10_0x47681f(0x1cc)]||function(_0x4ae1e3,_0x276d9a){var _0x3217a6=a10_0x47681f;if(typeof Reflect===_0x3217a6(0x1be)&&typeof Reflect['metadata']===_0x3217a6(0x1cf))return Reflect[_0x3217a6(0x1c3)](_0x4ae1e3,_0x276d9a);};function a10_0x540d(_0x29a54e,_0x51cee8){var _0x3d1928=a10_0x3d19();return a10_0x540d=function(_0x540ddb,_0x335566){_0x540ddb=_0x540ddb-0x1bc;var _0xb1b053=_0x3d1928[_0x540ddb];return _0xb1b053;},a10_0x540d(_0x29a54e,_0x51cee8);}Object['defineProperty'](exports,a10_0x47681f(0x1de),{'value':!![]}),exports[a10_0x47681f(0x1da)]=void 0x0;const crypto_js_1=require(a10_0x47681f(0x1bf)),decorator_1=require(a10_0x47681f(0x1c1)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{['password'](_0xf367ab){var _0x281224=a10_0x47681f,_0x106b4b;return _0xf367ab?(0x0,crypto_js_1[_0x281224(0x1ec)])(_0xf367ab+(0x0,crypto_js_1[_0x281224(0x1ec)])((0x0,crypto_js_1[_0x281224(0x1ec)])(_0xf367ab)[_0x281224(0x1d7)]()+((_0x106b4b=this[_0x281224(0x1ca)])===null||_0x106b4b===void 0x0?void 0x0:_0x106b4b[_0x281224(0x1f7)]))[_0x281224(0x1d7)]())['toString']():'';}[a10_0x47681f(0x1f0)](_0x4a2379,_0x34c3d7,_0x24c6b7=Date[a10_0x47681f(0x1e6)]()){var _0x53f6f7=a10_0x47681f;return{'Token':_0x4a2379,'Logintime':_0x24c6b7,'Checkcode':this[_0x53f6f7(0x1e8)](_0x4a2379,_0x34c3d7,_0x24c6b7)};}[a10_0x47681f(0x1f1)](_0x2d3e4d={}){var _0x578737=a10_0x47681f;const _0x35f6dc=[],_0x3bb154=Object[_0x578737(0x1ce)](Object[_0x578737(0x1eb)](_0x2d3e4d)[_0x578737(0x1d9)](_0x2369e5=>[_0x2369e5[0x0]['toLowerCase'](),_0x2369e5[0x1]]));for(let _0x13f63e of[_0x578737(0x1dc),_0x578737(0x1f4),'token','logintime',_0x578737(0x1e8)]){if(typeof _0x3bb154[_0x13f63e]==_0x578737(0x1dd))throw new AnnError(ApiError_1[_0x578737(0x1c9)][_0x578737(0x1f5)],{'message':_0x578737(0x1d6)+_0x13f63e});_0x35f6dc['push'](_0x13f63e+'='+_0x3bb154[_0x13f63e]);}if(Math[_0x578737(0x1df)](_0x3bb154['requesttime'])-Date['now']()>this[_0x578737(0x1ca)][_0x578737(0x1d2)])throw new AnnError(ApiError_1['ApiError'][_0x578737(0x1c0)]);if(!this[_0x578737(0x1ca)][_0x578737(0x1ed)][_0x3bb154[_0x578737(0x1dc)]]||!this[_0x578737(0x1ca)]['devices'][_0x3bb154[_0x578737(0x1dc)]][_0x578737(0x1bc)]||!this[_0x578737(0x1ca)][_0x578737(0x1ed)][_0x3bb154[_0x578737(0x1dc)]][_0x578737(0x1e8)])throw new AnnError(ApiError_1[_0x578737(0x1c9)][_0x578737(0x1ee)]);if(_0x3bb154[_0x578737(0x1e7)]&&_0x3bb154['checkcode']!=this[_0x578737(0x1e8)](_0x3bb154['token'],_0x3bb154[_0x578737(0x1dc)],_0x3bb154['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x578737(0x1c4)]);return _0x35f6dc[_0x578737(0x1d8)](_0x578737(0x1bd)+this[_0x578737(0x1ca)][_0x578737(0x1ed)][_0x3bb154['device']][_0x578737(0x1bc)]),(0x0,crypto_js_1['MD5'])(_0x35f6dc[_0x578737(0x1d3)]()[_0x578737(0x1e4)](''))['toString']();}[a10_0x47681f(0x1e8)](_0x45da7e,_0x1abf7c,_0x4097f0=Date[a10_0x47681f(0x1e6)]()){var _0x4a17e7=a10_0x47681f,_0x34db83,_0x5aedc8,_0x27fb4c;if(!((_0x34db83=this[_0x4a17e7(0x1ca)])===null||_0x34db83===void 0x0?void 0x0:_0x34db83[_0x4a17e7(0x1ed)][_0x1abf7c])||!((_0x27fb4c=(_0x5aedc8=this[_0x4a17e7(0x1ca)])===null||_0x5aedc8===void 0x0?void 0x0:_0x5aedc8['devices'][_0x1abf7c])===null||_0x27fb4c===void 0x0?void 0x0:_0x27fb4c[_0x4a17e7(0x1e8)]))throw new AnnError(ApiError_1[_0x4a17e7(0x1c9)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x4a17e7(0x1ec)])(_0x45da7e+(0x0,crypto_js_1[_0x4a17e7(0x1ec)])(_0x4097f0+this[_0x4a17e7(0x1ca)]['devices'][_0x1abf7c][_0x4a17e7(0x1e8)])[_0x4a17e7(0x1d7)]())['toString']();}['checksign'](_0x103a9c={}){var _0x136d52=a10_0x47681f;const _0x3ed288=Object[_0x136d52(0x1ce)](Object['entries'](_0x103a9c)[_0x136d52(0x1d9)](_0x2f917c=>[_0x2f917c[0x0][_0x136d52(0x1cb)](),_0x2f917c[0x1]]));if(!(_0x3ed288===null||_0x3ed288===void 0x0?void 0x0:_0x3ed288[_0x136d52(0x1c6)]))throw new AnnError(ApiError_1['ApiError'][_0x136d52(0x1f5)],{'message':_0x136d52(0x1c2)});if((_0x3ed288===null||_0x3ed288===void 0x0?void 0x0:_0x3ed288[_0x136d52(0x1c6)])!=this[_0x136d52(0x1f1)](_0x3ed288))throw new AnnError(ApiError_1[_0x136d52(0x1c9)][_0x136d52(0x1c7)]);return!![];}};function a10_0x3d19(){var _0x2535c1=['metadata','HEADERS_CHECKCODE','5842746SRXqPJ','signature','HEADERS_SIGNATURE','Scope','ApiError','config','toLowerCase','__metadata','__decorate','fromEntries','function','Provide','Singleton','timeout','sort','defineProperty','anncicapi','缺少头信息:','toString','push','map','ApiService','54fntRyr','device','undefined','__esModule','abs','7131008ovtYbE','649829vIomrK','2759840ioxZYx','5036034tcaBkM','join','Config','now','token','checkcode','length','5057240ZAJUlQ','entries','MD5','devices','HEADERS_DEVICE','62nfVysK','getcheck','getsign','decorate','1662fcpObT','requesttime','HEADERS_LACK','5fJzYzU','password','secret','secret=','object','crypto-js','TIMEOUT','@midwayjs/decorator','缺少头信息:signature'];a10_0x3d19=function(){return _0x2535c1;};return a10_0x3d19();}__decorate([(0x0,decorator_1[a10_0x47681f(0x1e5)])(a10_0x47681f(0x1d5)),__metadata('design:type',Object)],ApiService['prototype'],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x47681f(0x1d0)])(),(0x0,decorator_1[a10_0x47681f(0x1c8)])(decorator_1['ScopeEnum'][a10_0x47681f(0x1d1)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0x2a5a(_0x4cd863,_0x3bae7c){const _0x4826a9=a11_0x4826();return a11_0x2a5a=function(_0x2a5a73,_0x32c95b){_0x2a5a73=_0x2a5a73-0x1bc;let _0xb6994a=_0x4826a9[_0x2a5a73];return _0xb6994a;},a11_0x2a5a(_0x4cd863,_0x3bae7c);}const a11_0x35a259=a11_0x2a5a;(function(_0x3feaea,_0x212e47){const _0x4e965d=a11_0x2a5a,_0x3924ff=_0x3feaea();while(!![]){try{const _0x1e3fe3=parseInt(_0x4e965d(0x1d3))/0x1*(parseInt(_0x4e965d(0x205))/0x2)+-parseInt(_0x4e965d(0x210))/0x3*(-parseInt(_0x4e965d(0x1e4))/0x4)+-parseInt(_0x4e965d(0x1e7))/0x5*(parseInt(_0x4e965d(0x1c4))/0x6)+-parseInt(_0x4e965d(0x1f9))/0x7*(-parseInt(_0x4e965d(0x1bc))/0x8)+parseInt(_0x4e965d(0x1dd))/0x9+-parseInt(_0x4e965d(0x203))/0xa+-parseInt(_0x4e965d(0x1bd))/0xb*(parseInt(_0x4e965d(0x1f1))/0xc);if(_0x1e3fe3===_0x212e47)break;else _0x3924ff['push'](_0x3924ff['shift']());}catch(_0x7184da){_0x3924ff['push'](_0x3924ff['shift']());}}}(a11_0x4826,0x1b737));var __decorate=this&&this[a11_0x35a259(0x1f2)]||function(_0x5a6a07,_0x35e5ee,_0x583d6e,_0x26361c){const _0x36a46a=a11_0x35a259;var _0x1593aa=arguments[_0x36a46a(0x1f3)],_0x5d13d0=_0x1593aa<0x3?_0x35e5ee:_0x26361c===null?_0x26361c=Object[_0x36a46a(0x1d8)](_0x35e5ee,_0x583d6e):_0x26361c,_0x372abd;if(typeof Reflect===_0x36a46a(0x1e2)&&typeof Reflect[_0x36a46a(0x1e9)]===_0x36a46a(0x1f0))_0x5d13d0=Reflect['decorate'](_0x5a6a07,_0x35e5ee,_0x583d6e,_0x26361c);else{for(var _0x3ff397=_0x5a6a07['length']-0x1;_0x3ff397>=0x0;_0x3ff397--)if(_0x372abd=_0x5a6a07[_0x3ff397])_0x5d13d0=(_0x1593aa<0x3?_0x372abd(_0x5d13d0):_0x1593aa>0x3?_0x372abd(_0x35e5ee,_0x583d6e,_0x5d13d0):_0x372abd(_0x35e5ee,_0x583d6e))||_0x5d13d0;}return _0x1593aa>0x3&&_0x5d13d0&&Object[_0x36a46a(0x1f7)](_0x35e5ee,_0x583d6e,_0x5d13d0),_0x5d13d0;},__metadata=this&&this[a11_0x35a259(0x1cb)]||function(_0x3d6cfb,_0x1a21d5){const _0x38ff37=a11_0x35a259;if(typeof Reflect===_0x38ff37(0x1e2)&&typeof Reflect[_0x38ff37(0x1d9)]===_0x38ff37(0x1f0))return Reflect['metadata'](_0x3d6cfb,_0x1a21d5);},__param=this&&this[a11_0x35a259(0x1fd)]||function(_0x18a19f,_0x5215c4){return function(_0x1f42ae,_0x586efe){_0x5215c4(_0x1f42ae,_0x586efe,_0x18a19f);};};Object[a11_0x35a259(0x1f7)](exports,a11_0x35a259(0x1d4),{'value':!![]}),exports[a11_0x35a259(0x1cd)]=exports[a11_0x35a259(0x1c6)]=void 0x0;function a11_0x4826(){const _0x5428aa=['/apiteststatic/','decorate','filepath','readFileSync','isDevelopmentEnvironment','application/javascript;\x20charset=utf-8','/index.html','design:paramtypes','function','328356XwlYwS','__decorate','length','apitestmodule','Inject','__apiList__','defineProperty','Param','7VKeuqQ','/apiteststatic/*','url','summary','__param','apitest','substring','ScopeEnum','Scope','config','31990rEUZfP','design:returntype','1036QKfUno','apidoc','Config','/apitest','.css','../helper/getRoutes','Environment','devices','.js','request','module','5145kcqAkp','1276456qKjrrG','88HeCfeQ','replace','Controller','public,\x20max-age=604800','content-type','extname','Provide','3948tJUmOD','getRoutes','ApitestService','push','text/css;\x20charset=utf-8','set','../../public/index.html','__metadata','ctx','ApitestStaticController','join','design:type','apitesthtml','utf-8','prefix','270UZalMd','__esModule','existsSync','cache-control','prototype','getOwnPropertyDescriptor','metadata','routes','@midwayjs/core','anncicapi','197874fQEEMI','apiteststatic','path','/apitest-:module','__devices__','object','method','356eQXcVo','MidwayEnvironmentService','Get','1060dKVvzV'];a11_0x4826=function(){return _0x5428aa;};return a11_0x4826();}const path_1=require(a11_0x35a259(0x1df)),fs_1=require('fs'),core_1=require(a11_0x35a259(0x1db)),decorator_1=require('@midwayjs/decorator'),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require(a11_0x35a259(0x20a));let ApitestService=class ApitestService{async[a11_0x35a259(0x206)](_0x54ae28){const _0x5b75aa=a11_0x35a259,_0x18deed=(0x0,getRoutes_1[_0x5b75aa(0x1c5)])(_0x54ae28),_0x1e625c=[];for(let _0x55595e in _0x18deed){for(let _0x359066 in _0x18deed[_0x55595e][_0x5b75aa(0x1da)]){let _0x11dce4=_0x18deed[_0x55595e][_0x5b75aa(0x1da)][_0x359066],_0x118c11=[];for(let _0x2cfd84 in _0x11dce4[_0x5b75aa(0x20e)]){_0x118c11[_0x5b75aa(0x1c7)](_0x11dce4[_0x5b75aa(0x20e)][_0x2cfd84]);}_0x1e625c[_0x5b75aa(0x1c7)]({'title':_0x18deed[_0x55595e][_0x5b75aa(0x1fc)]+':'+_0x11dce4[_0x5b75aa(0x1fc)],'prefix':_0x18deed[_0x55595e][_0x5b75aa(0x1d2)],'router':_0x11dce4['route'],'method':_0x11dce4[_0x5b75aa(0x1e3)],'describe':_0x11dce4['description']||'','filepath':_0x18deed[_0x55595e]['filepath']||'','request':_0x118c11});}}const _0x46dc0e=(0x0,path_1[_0x5b75aa(0x1ce)])(__dirname,_0x5b75aa(0x1ca));return(0x0,fs_1[_0x5b75aa(0x1eb)])(_0x46dc0e,{'encoding':_0x5b75aa(0x1d1)})[_0x5b75aa(0x1be)](/__res__/g,_0x5b75aa(0x1e8))[_0x5b75aa(0x1be)](_0x5b75aa(0x1f6),JSON['stringify'](_0x1e625c))[_0x5b75aa(0x1be)](_0x5b75aa(0x1e1),JSON['stringify'](this[_0x5b75aa(0x202)][_0x5b75aa(0x20c)]));}};__decorate([(0x0,decorator_2[a11_0x35a259(0x207)])('anncicapi'),__metadata(a11_0x35a259(0x1cf),Object)],ApitestService[a11_0x35a259(0x1d7)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x35a259(0x1c3)])('apitest'),(0x0,decorator_2[a11_0x35a259(0x201)])(decorator_2[a11_0x35a259(0x200)]['Singleton'])],ApitestService),exports[a11_0x35a259(0x1c6)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x35a259(0x1d0)](){const _0x39cb6f=a11_0x35a259;if(this[_0x39cb6f(0x1fe)]){const _0x334324={'module':![]};return this[_0x39cb6f(0x20b)][_0x39cb6f(0x1ec)]()&&(_0x334324[_0x39cb6f(0x1ea)]=!![]),await this['ApitestService'][_0x39cb6f(0x206)](_0x334324);}return'';}async['apitestmodule'](_0x5e697c){const _0x3d88f1=a11_0x35a259;if(this[_0x3d88f1(0x1fe)]){const _0x2fc8bf={'module':_0x5e697c};return this[_0x3d88f1(0x20b)][_0x3d88f1(0x1ec)]()&&(_0x2fc8bf['filepath']=!![]),await this['ApitestService']['apidoc'](_0x2fc8bf);}return'';}async[a11_0x35a259(0x1de)](){const _0x487f63=a11_0x35a259;if((0x0,path_1[_0x487f63(0x1c2)])(this[_0x487f63(0x1cc)][_0x487f63(0x20e)][_0x487f63(0x1fb)])){var _0x4131eb=(0x0,path_1['join'])(__dirname,'../../public/'+this[_0x487f63(0x1cc)][_0x487f63(0x20e)][_0x487f63(0x1fb)]['replace'](_0x487f63(0x1e8),'/'));if(_0x4131eb[_0x487f63(0x1ff)](_0x4131eb[_0x487f63(0x1f3)]-0xb)!=_0x487f63(0x1ee)){this[_0x487f63(0x1cc)][_0x487f63(0x1c9)](_0x487f63(0x1d6),_0x487f63(0x1c0));if((0x0,path_1[_0x487f63(0x1c2)])(this['ctx'][_0x487f63(0x20e)][_0x487f63(0x1fb)])==_0x487f63(0x20d))this[_0x487f63(0x1cc)]['set'](_0x487f63(0x1c1),_0x487f63(0x1ed));else(0x0,path_1[_0x487f63(0x1c2)])(this['ctx'][_0x487f63(0x20e)][_0x487f63(0x1fb)])==_0x487f63(0x209)&&this[_0x487f63(0x1cc)][_0x487f63(0x1c9)](_0x487f63(0x1c1),_0x487f63(0x1c8));return(0x0,fs_1[_0x487f63(0x1d5)])(_0x4131eb)&&(0x0,fs_1[_0x487f63(0x1eb)])(_0x4131eb,{'encoding':_0x487f63(0x1d1)});}}return'';}};__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x35a259(0x1cf),Object)],ApitestStaticController[a11_0x35a259(0x1d7)],a11_0x35a259(0x1cc),void 0x0),__decorate([(0x0,decorator_2[a11_0x35a259(0x1f5)])(),__metadata('design:type',core_1[a11_0x35a259(0x1e5)])],ApitestStaticController['prototype'],a11_0x35a259(0x20b),void 0x0),__decorate([(0x0,decorator_2[a11_0x35a259(0x1f5)])(),__metadata(a11_0x35a259(0x1cf),ApitestService)],ApitestStaticController[a11_0x35a259(0x1d7)],a11_0x35a259(0x1c6),void 0x0),__decorate([(0x0,decorator_2[a11_0x35a259(0x207)])('apitest'),__metadata(a11_0x35a259(0x1cf),Boolean)],ApitestStaticController['prototype'],a11_0x35a259(0x1fe),void 0x0),__decorate([(0x0,decorator_2[a11_0x35a259(0x207)])(a11_0x35a259(0x1dc)),__metadata('design:type',Object)],ApitestStaticController[a11_0x35a259(0x1d7)],'config',void 0x0),__decorate([(0x0,decorator_1[a11_0x35a259(0x1e6)])(a11_0x35a259(0x208)),__metadata(a11_0x35a259(0x1cf),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x35a259(0x204),Promise)],ApitestStaticController[a11_0x35a259(0x1d7)],a11_0x35a259(0x1d0),null),__decorate([(0x0,decorator_1[a11_0x35a259(0x1e6)])(a11_0x35a259(0x1e0)),__param(0x0,(0x0,decorator_1[a11_0x35a259(0x1f8)])(a11_0x35a259(0x20f))),__metadata(a11_0x35a259(0x1cf),Function),__metadata(a11_0x35a259(0x1ef),[String]),__metadata(a11_0x35a259(0x204),Promise)],ApitestStaticController['prototype'],a11_0x35a259(0x1f4),null),__decorate([(0x0,decorator_1[a11_0x35a259(0x1e6)])(a11_0x35a259(0x1fa)),__metadata('design:type',Function),__metadata(a11_0x35a259(0x1ef),[]),__metadata(a11_0x35a259(0x204),Promise)],ApitestStaticController['prototype'],a11_0x35a259(0x1de),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x35a259(0x1bf)])('/'),(0x0,decorator_2[a11_0x35a259(0x201)])(decorator_2[a11_0x35a259(0x200)]['Request'])],ApitestStaticController),exports[a11_0x35a259(0x1cd)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a12_0x1f7d2b=a12_0x4a60;(function(_0x3a0902,_0x3a678b){const _0xebecb5=a12_0x4a60,_0x3487f9=_0x3a0902();while(!![]){try{const _0x1576ec=parseInt(_0xebecb5(0x19f))/0x1+-parseInt(_0xebecb5(0x17f))/0x2+parseInt(_0xebecb5(0x17b))/0x3*(-parseInt(_0xebecb5(0x179))/0x4)+parseInt(_0xebecb5(0x19e))/0x5+-parseInt(_0xebecb5(0x1aa))/0x6+-parseInt(_0xebecb5(0x1ac))/0x7*(-parseInt(_0xebecb5(0x1a3))/0x8)+parseInt(_0xebecb5(0x18e))/0x9*(parseInt(_0xebecb5(0x1a6))/0xa);if(_0x1576ec===_0x3a678b)break;else _0x3487f9['push'](_0x3487f9['shift']());}catch(_0x36bf85){_0x3487f9['push'](_0x3487f9['shift']());}}}(a12_0x50bc,0xc5b0c));var __decorate=this&&this['__decorate']||function(_0x41fce9,_0x833e5f,_0x37a348,_0x4bd5e7){const _0x154976=a12_0x4a60;var _0xe59648=arguments[_0x154976(0x178)],_0x33406a=_0xe59648<0x3?_0x833e5f:_0x4bd5e7===null?_0x4bd5e7=Object[_0x154976(0x19c)](_0x833e5f,_0x37a348):_0x4bd5e7,_0x1e7752;if(typeof Reflect===_0x154976(0x183)&&typeof Reflect[_0x154976(0x199)]===_0x154976(0x1a8))_0x33406a=Reflect['decorate'](_0x41fce9,_0x833e5f,_0x37a348,_0x4bd5e7);else{for(var _0x14cd0e=_0x41fce9[_0x154976(0x178)]-0x1;_0x14cd0e>=0x0;_0x14cd0e--)if(_0x1e7752=_0x41fce9[_0x14cd0e])_0x33406a=(_0xe59648<0x3?_0x1e7752(_0x33406a):_0xe59648>0x3?_0x1e7752(_0x833e5f,_0x37a348,_0x33406a):_0x1e7752(_0x833e5f,_0x37a348))||_0x33406a;}return _0xe59648>0x3&&_0x33406a&&Object[_0x154976(0x184)](_0x833e5f,_0x37a348,_0x33406a),_0x33406a;},__metadata=this&&this[a12_0x1f7d2b(0x181)]||function(_0x1698f4,_0x4c76a6){const _0x48460c=a12_0x1f7d2b;if(typeof Reflect===_0x48460c(0x183)&&typeof Reflect[_0x48460c(0x192)]===_0x48460c(0x1a8))return Reflect['metadata'](_0x1698f4,_0x4c76a6);};Object[a12_0x1f7d2b(0x184)](exports,a12_0x1f7d2b(0x1ae),{'value':!![]}),exports[a12_0x1f7d2b(0x17a)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1f7d2b(0x1a4)),koasend=require('koa-send'),decorator_1=require('@midwayjs/decorator');function a12_0x4a60(_0x569da4,_0x7371f){const _0x50bc43=a12_0x50bc();return a12_0x4a60=function(_0x4a6008,_0x355df9){_0x4a6008=_0x4a6008-0x176;let _0x335d5d=_0x50bc43[_0x4a6008];return _0x335d5d;},a12_0x4a60(_0x569da4,_0x7371f);}let ExcelService=class ExcelService{async[a12_0x1f7d2b(0x1b0)](_0x1dc137,_0x1401c9,_0x24c379=[0x0]){const _0x5e39c4=a12_0x1f7d2b;var _0x107775,_0x513dbb;const _0x2cf262=new exceljs[(_0x5e39c4(0x1b3))](),_0x30c896=[];let _0x36b969=_0x1dc137[_0x5e39c4(0x1b4)](/(\\|\/)/g,'/')[_0x5e39c4(0x1b4)](/\/{2,}/g,'/');!(_0x36b969===null||_0x36b969===void 0x0?void 0x0:_0x36b969[_0x5e39c4(0x198)]('/'))&&(_0x36b969=this[_0x5e39c4(0x1a0)][_0x5e39c4(0x1ad)]()+'/'+_0x36b969);try{await _0x2cf262[_0x5e39c4(0x17e)]['readFile'](_0x36b969);}catch(_0x22781e){return console['log'](_0x5e39c4(0x188)+_0x36b969+'\x20is\x20read\x20fail'),_0x30c896;}for(const _0x2e5100 of _0x24c379){const _0x291057=lodash[_0x5e39c4(0x1a1)](_0x2e5100)?((_0x107775=_0x2cf262[_0x5e39c4(0x189)])===null||_0x107775===void 0x0?void 0x0:_0x107775[_0x2e5100])||undefined:_0x2cf262[_0x5e39c4(0x17d)](_0x2e5100);if(_0x291057){var _0x1bde9d=0x1;const _0x239f8f=_0x291057[_0x5e39c4(0x182)](0x1),_0x424968=await new Promise(_0x290dba=>{const _0x5019d8=_0x5e39c4,_0x17c6a6={};_0x239f8f[_0x5019d8(0x180)]((_0x2b87f7,_0x537b8b)=>{const _0x126a2f=_0x5019d8;for(const _0xb6a639 of _0x1401c9){if(_0x2b87f7[_0x126a2f(0x197)]==_0xb6a639[_0x126a2f(0x194)])_0x1bde9d=0x2,_0x17c6a6[_0xb6a639[_0x126a2f(0x1a2)]]={'header':_0x2b87f7[_0x126a2f(0x191)],'handler':_0xb6a639['handler']};else{if(!_0x17c6a6[_0xb6a639[_0x126a2f(0x1a2)]])try{const _0x12d8d1=_0x239f8f['getCell'](_0xb6a639[_0x126a2f(0x194)]);_0x12d8d1&&(_0x17c6a6[_0xb6a639['key']]={'header':_0x12d8d1['col'],'handler':_0xb6a639[_0x126a2f(0x1a7)]});}catch{}}}_0x239f8f[_0x126a2f(0x17c)]==_0x537b8b&&_0x290dba(_0x17c6a6);});});for(const _0x37f7eb of _0x291057['findRows'](_0x1bde9d,_0x291057[_0x5e39c4(0x196)])){const _0x2b9add={};for(const _0x390279 in _0x424968){_0x424968[_0x390279][_0x5e39c4(0x194)]&&(typeof((_0x513dbb=_0x424968[_0x390279])===null||_0x513dbb===void 0x0?void 0x0:_0x513dbb[_0x5e39c4(0x1a7)])=='function'?_0x2b9add[_0x390279]=_0x424968[_0x390279][_0x5e39c4(0x1a7)](_0x37f7eb['getCell'](lodash[_0x5e39c4(0x1a9)](''+_0x424968[_0x390279][_0x5e39c4(0x194)],'\x20'))[_0x5e39c4(0x1ab)]()):_0x2b9add[_0x390279]=_0x37f7eb['getCell'](_0x424968[_0x390279][_0x5e39c4(0x194)])[_0x5e39c4(0x1ab)]());}Object[_0x5e39c4(0x1b1)](_0x2b9add)[_0x5e39c4(0x178)]>0x0&&_0x30c896['push'](_0x2b9add);}}}return _0x30c896;}async['export'](_0x5897f5,_0x747041,_0x44ec1d,_0x235267=a12_0x1f7d2b(0x18b)){const _0x1777e3=a12_0x1f7d2b;var _0x382d65,_0x901c6f;const _0x24015c=new exceljs['Workbook'](),_0x5cdf4e={},_0x9fe383=[],_0x1e674c=_0x24015c[_0x1777e3(0x195)](_0x1777e3(0x1a5),{'views':[{'state':_0x1777e3(0x1af),'xSplit':0x1}]});for(const _0x57516f in _0x747041){_0x5cdf4e[_0x747041[_0x57516f]['key']]=_0x747041[_0x57516f][_0x1777e3(0x194)],_0x9fe383[_0x1777e3(0x186)]({'header':_0x747041[_0x57516f][_0x1777e3(0x194)],'key':(_0x382d65=_0x747041[_0x57516f])===null||_0x382d65===void 0x0?void 0x0:_0x382d65['key'][_0x1777e3(0x1b4)](/\./g,'_')});}_0x1e674c[_0x1777e3(0x190)]=_0x9fe383;for(const _0x4402ae of _0x44ec1d){const _0x38b4c1={};for(const _0x49b6ac in _0x747041){typeof((_0x901c6f=_0x747041[_0x49b6ac])===null||_0x901c6f===void 0x0?void 0x0:_0x901c6f[_0x1777e3(0x1a7)])=='function'?_0x38b4c1[_0x747041[_0x49b6ac][_0x1777e3(0x1a2)][_0x1777e3(0x1b4)](/\./g,'_')]=await _0x747041[_0x49b6ac]['handler'](_0x4402ae):_0x38b4c1[_0x747041[_0x49b6ac]['key'][_0x1777e3(0x1b4)](/\./g,'_')]=lodash[_0x1777e3(0x18f)](_0x4402ae,_0x747041[_0x49b6ac][_0x1777e3(0x1a2)],'');}_0x1e674c[_0x1777e3(0x19d)](_0x38b4c1);}let _0x1378fc='';const _0x2b0ae9=_0x5897f5+'-'+lodash[_0x1777e3(0x19a)](0x2710,0x1869f)+_0x1777e3(0x1b5);if(_0x235267&&_0x235267[_0x1777e3(0x198)]('/'))_0x1378fc=''+_0x235267;else _0x235267&&!_0x235267[_0x1777e3(0x198)]('/')&&!_0x235267[_0x1777e3(0x198)]('\x5c')?_0x1378fc=this[_0x1777e3(0x1a0)][_0x1777e3(0x1ad)]()+'/'+_0x235267:_0x1378fc=this[_0x1777e3(0x1a0)][_0x1777e3(0x1ad)]()+_0x1777e3(0x18c);return(_0x1378fc[_0x1777e3(0x193)]('/')||_0x1378fc['endsWith']('\x5c'))&&(_0x1378fc=_0x1378fc['substring'](0x0,_0x1378fc[_0x1777e3(0x178)]-0x1)),_0x1378fc=_0x1378fc['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x1777e3(0x185)](_0x1378fc)&&fs[_0x1777e3(0x1b2)](_0x1378fc,{'recursive':!![]}),await _0x24015c[_0x1777e3(0x17e)][_0x1777e3(0x18d)]((_0x1378fc+'/'+_0x2b0ae9)[_0x1777e3(0x1b4)](/(\\|\/)/g,'/')[_0x1777e3(0x1b4)](/\/{2,}/g,'/')),{'filename':_0x2b0ae9,'filepath':(_0x1378fc[_0x1777e3(0x187)]((''+this['app'][_0x1777e3(0x1ad)]())[_0x1777e3(0x178)])+'/'+_0x2b0ae9)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0x2295e2,_0x11fdfa){return await koasend(_0x2295e2,''+_0x11fdfa);}};__decorate([(0x0,decorator_1[a12_0x1f7d2b(0x176)])(),__metadata('design:type',Object)],ExcelService['prototype'],a12_0x1f7d2b(0x1a0),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x1f7d2b(0x19b)])(),(0x0,decorator_1['Scope'])(decorator_1[a12_0x1f7d2b(0x18a)][a12_0x1f7d2b(0x177)])],ExcelService),exports['ExcelService']=ExcelService;function a12_0x50bc(){const _0x3c7b32=['50jiRanA','handler','function','trim','101316DZkqgJ','toString','2674833UuePNd','getAppDir','__esModule','frozen','parse','keys','mkdirSync','Workbook','replace','.xlsx','App','Singleton','length','4zqZgqC','ExcelService','2868183SMVbMj','cellCount','getWorksheet','xlsx','2550390jkawkl','eachCell','__metadata','getRow','object','defineProperty','existsSync','push','substring','Api\x20Excel\x20Error:\x20','worksheets','ScopeEnum','public/xlsx','/public/xlsx','writeFile','2521305ELiuMe','get','columns','col','metadata','endsWith','header','addWorksheet','rowCount','value','startsWith','decorate','random','Provide','getOwnPropertyDescriptor','addRow','2478625onPUmG','779313gIrGGN','app','isNumber','key','8NcaUzr','exceljs','Sheet\x201'];a12_0x50bc=function(){return _0x3c7b32;};return a12_0x50bc();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x5ea8(_0x31a695,_0x109eab){var _0x55075e=a13_0x5507();return a13_0x5ea8=function(_0x5ea877,_0x45bc3d){_0x5ea877=_0x5ea877-0x1a9;var _0x4122d5=_0x55075e[_0x5ea877];return _0x4122d5;},a13_0x5ea8(_0x31a695,_0x109eab);}var a13_0x54b303=a13_0x5ea8;(function(_0x54d1bf,_0x18f1b7){var _0x2588b2=a13_0x5ea8,_0x5ec8d3=_0x54d1bf();while(!![]){try{var _0x1235c=-parseInt(_0x2588b2(0x1ae))/0x1*(-parseInt(_0x2588b2(0x1ac))/0x2)+parseInt(_0x2588b2(0x1aa))/0x3+-parseInt(_0x2588b2(0x1af))/0x4*(-parseInt(_0x2588b2(0x1b9))/0x5)+parseInt(_0x2588b2(0x1b3))/0x6*(parseInt(_0x2588b2(0x1b8))/0x7)+-parseInt(_0x2588b2(0x1b5))/0x8+parseInt(_0x2588b2(0x1b1))/0x9+-parseInt(_0x2588b2(0x1b4))/0xa*(parseInt(_0x2588b2(0x1ad))/0xb);if(_0x1235c===_0x18f1b7)break;else _0x5ec8d3['push'](_0x5ec8d3['shift']());}catch(_0x432f12){_0x5ec8d3['push'](_0x5ec8d3['shift']());}}}(a13_0x5507,0x6be25));function a13_0x5507(){var _0x297ed9=['2427310LHlpHI','ACTION_KEY','__esModule','756186gHDzNe','ACTION_ROUTE_KEY','61178dtBcMg','77HktgBq','7rLLPII','4BsAQiD','APPSCONFIG_KEY','6548220TuEUiF','AppsConfigTmp','1616022GPwjTI','1187470wrRSSD','5403536AMJIKD','anncic-api:action','anncic-api:apps:config','7OAQqNR'];a13_0x5507=function(){return _0x297ed9;};return a13_0x5507();}Object['defineProperty'](exports,a13_0x54b303(0x1a9),{'value':!![]}),exports[a13_0x54b303(0x1b2)]=exports[a13_0x54b303(0x1b0)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x54b303(0x1ba)]=void 0x0,exports[a13_0x54b303(0x1ba)]=a13_0x54b303(0x1b6),exports[a13_0x54b303(0x1ab)]='anncic-api:action:route',exports[a13_0x54b303(0x1b0)]=a13_0x54b303(0x1b7);class AppsConfigTmp{}exports[a13_0x54b303(0x1b2)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a14_0x2903(){var _0x50cb59=['排序方式','metadata','@anncic-api/validator','prototype','1483514KztWSP','integer','min','_page','1386045wGsFkd','Rule','第一页为1,第二页为2','_isreverse','decorate','22127VjhCMA','RuleType','18573280kghEXd','20HaoPye','660934fznuNR','number','__esModule','length','971688PCETSr','design:type','分页数量','1:是;0:否','4scWREn','416LqBrKX','是否倒序','defineProperty','function','PageDTO','2813598fRHLRZ'];a14_0x2903=function(){return _0x50cb59;};return a14_0x2903();}var a14_0x430f1e=a14_0x1db3;(function(_0x34e360,_0x41c6c6){var _0xc913e=a14_0x1db3,_0x3e59ca=_0x34e360();while(!![]){try{var _0x445f8b=-parseInt(_0xc913e(0x12f))/0x1+-parseInt(_0xc913e(0x122))/0x2+parseInt(_0xc913e(0x126))/0x3*(parseInt(_0xc913e(0x117))/0x4)+-parseInt(_0xc913e(0x12e))/0x5*(parseInt(_0xc913e(0x113))/0x6)+parseInt(_0xc913e(0x12b))/0x7*(-parseInt(_0xc913e(0x118))/0x8)+parseInt(_0xc913e(0x11d))/0x9+parseInt(_0xc913e(0x12d))/0xa;if(_0x445f8b===_0x41c6c6)break;else _0x3e59ca['push'](_0x3e59ca['shift']());}catch(_0x143f0a){_0x3e59ca['push'](_0x3e59ca['shift']());}}}(a14_0x2903,0x65d56));function a14_0x1db3(_0x17ad48,_0x49ff9e){var _0x29037f=a14_0x2903();return a14_0x1db3=function(_0x1db3fa,_0x10f0a2){_0x1db3fa=_0x1db3fa-0x112;var _0x5d38e2=_0x29037f[_0x1db3fa];return _0x5d38e2;},a14_0x1db3(_0x17ad48,_0x49ff9e);}var __decorate=this&&this['__decorate']||function(_0x147423,_0xd67091,_0x5807a3,_0x5a5308){var _0x2dc507=a14_0x1db3,_0x8ced9d=arguments[_0x2dc507(0x112)],_0x485468=_0x8ced9d<0x3?_0xd67091:_0x5a5308===null?_0x5a5308=Object['getOwnPropertyDescriptor'](_0xd67091,_0x5807a3):_0x5a5308,_0x1779a4;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x2dc507(0x11b))_0x485468=Reflect[_0x2dc507(0x12a)](_0x147423,_0xd67091,_0x5807a3,_0x5a5308);else{for(var _0x3153d8=_0x147423[_0x2dc507(0x112)]-0x1;_0x3153d8>=0x0;_0x3153d8--)if(_0x1779a4=_0x147423[_0x3153d8])_0x485468=(_0x8ced9d<0x3?_0x1779a4(_0x485468):_0x8ced9d>0x3?_0x1779a4(_0xd67091,_0x5807a3,_0x485468):_0x1779a4(_0xd67091,_0x5807a3))||_0x485468;}return _0x8ced9d>0x3&&_0x485468&&Object[_0x2dc507(0x11a)](_0xd67091,_0x5807a3,_0x485468),_0x485468;},__metadata=this&&this['__metadata']||function(_0x31a6c7,_0x2a7879){var _0x848108=a14_0x1db3;if(typeof Reflect==='object'&&typeof Reflect[_0x848108(0x11f)]===_0x848108(0x11b))return Reflect['metadata'](_0x31a6c7,_0x2a7879);};Object[a14_0x430f1e(0x11a)](exports,a14_0x430f1e(0x131),{'value':!![]}),exports[a14_0x430f1e(0x11c)]=void 0x0;const validator_1=require(a14_0x430f1e(0x120));class PageDTO{}__decorate([(0x0,validator_1[a14_0x430f1e(0x127)])('分页',validator_1[a14_0x430f1e(0x12c)]['number']()['integer']()[a14_0x430f1e(0x124)](0x1),a14_0x430f1e(0x128)),__metadata(a14_0x430f1e(0x114),Number)],PageDTO[a14_0x430f1e(0x121)],a14_0x430f1e(0x125),void 0x0),__decorate([(0x0,validator_1[a14_0x430f1e(0x127)])(a14_0x430f1e(0x115),validator_1[a14_0x430f1e(0x12c)][a14_0x430f1e(0x130)]()[a14_0x430f1e(0x123)]()[a14_0x430f1e(0x124)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x430f1e(0x121)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x430f1e(0x127)])(a14_0x430f1e(0x11e),validator_1[a14_0x430f1e(0x12c)]['string']()['trim']()),__metadata(a14_0x430f1e(0x114),String)],PageDTO[a14_0x430f1e(0x121)],'_order',void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x430f1e(0x119),validator_1[a14_0x430f1e(0x12c)]['number']()['integer']()['valid'](0x0,0x1),a14_0x430f1e(0x116)),__metadata('design:type',Number)],PageDTO[a14_0x430f1e(0x121)],a14_0x430f1e(0x129),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,27 +17,27 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.
|
|
21
|
-
"@anncic-api/core": "^1.
|
|
22
|
-
"@anncic-api/event": "^1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.
|
|
24
|
-
"@anncic-api/validator": "^1.
|
|
25
|
-
"@midwayjs/cross-domain": "^3.
|
|
26
|
-
"@midwayjs/i18n": "^3.
|
|
27
|
-
"@midwayjs/koa": "^3.
|
|
28
|
-
"@midwayjs/static-file": "^3.
|
|
29
|
-
"@midwayjs/task": "^3.
|
|
30
|
-
"@midwayjs/upload": "^3.
|
|
20
|
+
"@anncic-api/cache": "^1.2.0",
|
|
21
|
+
"@anncic-api/core": "^1.2.0",
|
|
22
|
+
"@anncic-api/event": "^1.2.0",
|
|
23
|
+
"@anncic-api/typeorm": "^1.2.0",
|
|
24
|
+
"@anncic-api/validator": "^1.2.0",
|
|
25
|
+
"@midwayjs/cross-domain": "^3.6.0",
|
|
26
|
+
"@midwayjs/i18n": "^3.6.0",
|
|
27
|
+
"@midwayjs/koa": "^3.6.0",
|
|
28
|
+
"@midwayjs/static-file": "^3.6.0",
|
|
29
|
+
"@midwayjs/task": "^3.6.0",
|
|
30
|
+
"@midwayjs/upload": "^3.6.0",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.
|
|
32
|
+
"anncic-apihelper": "^1.2.0",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
|
-
"urllib": "^3.
|
|
35
|
+
"urllib": "^3.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^18.
|
|
38
|
+
"@types/node": "^18.8.4",
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
|
-
"typescript": "^4.
|
|
40
|
+
"typescript": "^4.8.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "df8a56632f1499078db546232c694e3e0bc11290"
|
|
43
43
|
}
|