anncic-api 1.1.35 → 1.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x45c76a=a0_0x33d5;(function(_0x58e72b,_0x1eb538){var _0x32ff84=a0_0x33d5,_0x523524=_0x58e72b();while(!![]){try{var _0xcf1d82=parseInt(_0x32ff84(0xb6))/0x1*(parseInt(_0x32ff84(0xac))/0x2)+parseInt(_0x32ff84(0xae))/0x3+parseInt(_0x32ff84(0xb8))/0x4+parseInt(_0x32ff84(0xb0))/0x5+parseInt(_0x32ff84(0xb7))/0x6*(-parseInt(_0x32ff84(0xba))/0x7)+-parseInt(_0x32ff84(0xb3))/0x8*(parseInt(_0x32ff84(0xb4))/0x9)+parseInt(_0x32ff84(0xb2))/0xa*(-parseInt(_0x32ff84(0xaf))/0xb);if(_0xcf1d82===_0x1eb538)break;else _0x523524['push'](_0x523524['shift']());}catch(_0x13d8d8){_0x523524['push'](_0x523524['shift']());}}}(a0_0x3cee,0x41961));function a0_0x3cee(){var _0xdf9ee=['320061iymkxQ','name','dhauo1234420123gg3234901','__esModule','xml','form','951646URINox','json','1381716xLXfWB','99UTSzfv','1352430xwlbew','text','1254310nHENtW','8IIxxgv','458361CwHQUc','20mb','1VdxIUw','24Konouj','1697840FNocUn','appDir'];a0_0x3cee=function(){return _0xdf9ee;};return a0_0x3cee();}function a0_0x33d5(_0x50c0f1,_0x3b0a4a){var _0x3cee99=a0_0x3cee();return a0_0x33d5=function(_0x33d53d,_0x2bd3bc){_0x33d53d=_0x33d53d-0xaa;var _0x57dd0b=_0x3cee99[_0x33d53d];return _0x57dd0b;},a0_0x33d5(_0x50c0f1,_0x3b0a4a);}Object['defineProperty'](exports,a0_0x45c76a(0xbd),{'value':!![]}),exports['default']=_0x2dc212=>{var _0x3d079b=a0_0x45c76a;return{'apitest':!![],'keys':_0x2dc212[_0x3d079b(0xbb)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x3d079b(0xbc),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x3d079b(0xad),_0x3d079b(0xab),_0x3d079b(0xb1),_0x3d079b(0xaa)],'formLimit':_0x3d079b(0xb5),'jsonLimit':_0x3d079b(0xb5),'textLimit':'20mb','xmlLimit':_0x3d079b(0xb5)},'upload':{'tmpdir':_0x2dc212[_0x3d079b(0xb9)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a1_0x202c(_0x36e007,_0x5a6c1c){var _0x38f316=a1_0x38f3();return a1_0x202c=function(_0x202c4c,_0xadf1af){_0x202c4c=_0x202c4c-0xfc;var _0x5967f7=_0x38f316[_0x202c4c];return _0x5967f7;},a1_0x202c(_0x36e007,_0x5a6c1c);}var a1_0xbc2960=a1_0x202c;(function(_0x499370,_0x1a846e){var _0x5cc179=a1_0x202c,_0x4fe79d=_0x499370();while(!![]){try{var _0xfe73fe=-parseInt(_0x5cc179(0x104))/0x1+parseInt(_0x5cc179(0xfc))/0x2+parseInt(_0x5cc179(0x101))/0x3+parseInt(_0x5cc179(0x103))/0x4+-parseInt(_0x5cc179(0x100))/0x5+-parseInt(_0x5cc179(0x102))/0x6+parseInt(_0x5cc179(0xfe))/0x7*(parseInt(_0x5cc179(0xff))/0x8);if(_0xfe73fe===_0x1a846e)break;else _0x4fe79d['push'](_0x4fe79d['shift']());}catch(_0x3a5c84){_0x4fe79d['push'](_0x4fe79d['shift']());}}}(a1_0x38f3,0xdf172));function a1_0x38f3(){var _0x655ebc=['__esModule','2384670zFLAMn','defineProperty','14peKmMJ','6179408IsGhOc','5965185WxLMNS','2027115fpzfhE','4871892EBNZic','2825396SMWdbR','1200444NFBkPI','default'];a1_0x38f3=function(){return _0x655ebc;};return a1_0x38f3();}Object[a1_0xbc2960(0xfd)](exports,a1_0xbc2960(0x106),{'value':!![]}),exports[a1_0xbc2960(0x105)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x5df3bc=a2_0x21fc;(function(_0x477d50,_0x3942ba){const _0x1fed03=a2_0x21fc,_0x41ec56=_0x477d50();while(!![]){try{const _0x31f490=parseInt(_0x1fed03(0x154))/0x1*(parseInt(_0x1fed03(0x169))/0x2)+parseInt(_0x1fed03(0x144))/0x3+-parseInt(_0x1fed03(0x174))/0x4*(parseInt(_0x1fed03(0x143))/0x5)+-parseInt(_0x1fed03(0x14a))/0x6+parseInt(_0x1fed03(0x16a))/0x7*(-parseInt(_0x1fed03(0x126))/0x8)+parseInt(_0x1fed03(0x150))/0x9+parseInt(_0x1fed03(0x151))/0xa;if(_0x31f490===_0x3942ba)break;else _0x41ec56['push'](_0x41ec56['shift']());}catch(_0x25c173){_0x41ec56['push'](_0x41ec56['shift']());}}}(a2_0x11c3,0xe0cf7));function a2_0x21fc(_0x5eada9,_0x59eb0c){const _0x11c300=a2_0x11c3();return a2_0x21fc=function(_0x21fcad,_0xee9f41){_0x21fcad=_0x21fcad-0x125;let _0x1c893e=_0x11c300[_0x21fcad];return _0x1c893e;},a2_0x21fc(_0x5eada9,_0x59eb0c);}function a2_0x11c3(){const _0x26513f=['checkConfigKeys','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/i18n','10760472vEQYIY','onReady','REQUEST_OBJ_CTX_KEY','CustomConfiguration','toLowerCase','HEADERS_SIGNATURE','4507335JpCFJu','14962810QNoiWT','requestContext','koa','146221vPRjdn','checksign','filterConfig','apimit','@anncic-api/cache','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','environment','handlerActionRoute','mkdirSync','keys','MidwayEnvironmentService','object','@midwayjs/cross-domain','body','isClass','./types/action','input','function','Configuration','MidwayConfigService','dirs','20AiGmPx','126nPDrqJ','@anncic-api/core','getAsync','_matchedRoute','devices','@anncic-api/validator','request','upload','ACTION_ROUTE_KEY','getOwnPropertyDescriptor','1538788vJtKJA','@midwayjs/core','method','device','isNull','dir','./service/ApiService','key','@anncic-api/typeorm','ApiError','isFunction','DEFAULT','defineProperty','isString','prototype','getApplications','design:type','proceed','get','Inject','bodyXml','anncicapi','162280cLZUJM','__esModule','decorate','staticFile','isArray','intercept','Types','./config/config.production','log','registerMethodHandler','headers','handler','tmpdir','query','application','target','length','config','@midwayjs/decorator','MidwayApplicationManager','string','metadata','decorator','existsSync','ApiService','defineProperties','hanlderApplications','@midwayjs/static-file','getConfiguration','20lOBRfj','3476541VUzHZV','context','__metadata'];a2_0x11c3=function(){return _0x26513f;};return a2_0x11c3();}var __decorate=this&&this['__decorate']||function(_0x4889e8,_0x16e012,_0x43eb68,_0x4ea4db){const _0x41f38f=a2_0x21fc;var _0x4c20ec=arguments[_0x41f38f(0x136)],_0x395964=_0x4c20ec<0x3?_0x16e012:_0x4ea4db===null?_0x4ea4db=Object[_0x41f38f(0x173)](_0x16e012,_0x43eb68):_0x4ea4db,_0x88fcfa;if(typeof Reflect===_0x41f38f(0x15f)&&typeof Reflect['decorate']===_0x41f38f(0x165))_0x395964=Reflect[_0x41f38f(0x128)](_0x4889e8,_0x16e012,_0x43eb68,_0x4ea4db);else{for(var _0x4f2120=_0x4889e8[_0x41f38f(0x136)]-0x1;_0x4f2120>=0x0;_0x4f2120--)if(_0x88fcfa=_0x4889e8[_0x4f2120])_0x395964=(_0x4c20ec<0x3?_0x88fcfa(_0x395964):_0x4c20ec>0x3?_0x88fcfa(_0x16e012,_0x43eb68,_0x395964):_0x88fcfa(_0x16e012,_0x43eb68))||_0x395964;}return _0x4c20ec>0x3&&_0x395964&&Object[_0x41f38f(0x180)](_0x16e012,_0x43eb68,_0x395964),_0x395964;},__metadata=this&&this[a2_0x5df3bc(0x146)]||function(_0x3bca4e,_0x55ae25){const _0x2f55c4=a2_0x5df3bc;if(typeof Reflect===_0x2f55c4(0x15f)&&typeof Reflect['metadata']===_0x2f55c4(0x165))return Reflect[_0x2f55c4(0x13b)](_0x3bca4e,_0x55ae25);};Object[a2_0x5df3bc(0x180)](exports,a2_0x5df3bc(0x127),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0x5df3bc(0x138)),core_1=require(a2_0x5df3bc(0x175)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x5df3bc(0x17a)),action_1=require(a2_0x5df3bc(0x163)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x5df3bc(0x149)),task=require('@midwayjs/task'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x5df3bc(0x141)),crossDomain=require(a2_0x5df3bc(0x160)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x5df3bc(0x12d)),anncic=require(a2_0x5df3bc(0x16b)),anncicCache=require(a2_0x5df3bc(0x158)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x5df3bc(0x17c)),anncicValidator=require(a2_0x5df3bc(0x16f)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x5df3bc(0x14b)](){const _0x505014=a2_0x5df3bc;await this[_0x505014(0x156)](),await this[_0x505014(0x147)](),await this['handlerActionRoute'](),await this[_0x505014(0x140)]();}async[a2_0x5df3bc(0x147)](){}async[a2_0x5df3bc(0x15b)](){const _0x56e90d=a2_0x5df3bc,_0x1d29cd=this[_0x56e90d(0x137)][_0x56e90d(0x142)]();this[_0x56e90d(0x13c)][_0x56e90d(0x12f)](action_1[_0x56e90d(0x172)],_0x1f80ac=>{const _0x3f26e5=_0x56e90d,_0x5872e3=_0x1f80ac[_0x3f26e5(0x13b)];return{'before':async _0x2362a7=>{const _0x487993=_0x3f26e5;var _0x48f9be,_0x3560a0;const _0x54a50b=(_0x48f9be=_0x2362a7===null||_0x2362a7===void 0x0?void 0x0:_0x2362a7[_0x487993(0x135)])===null||_0x48f9be===void 0x0?void 0x0:_0x48f9be[core_1[_0x487993(0x14c)]];if(_0x54a50b&&(_0x5872e3===null||_0x5872e3===void 0x0?void 0x0:_0x5872e3[_0x487993(0x157)])){if(!this[_0x487993(0x13e)][_0x487993(0x155)]((_0x3560a0=_0x54a50b===null||_0x54a50b===void 0x0?void 0x0:_0x54a50b[_0x487993(0x170)])===null||_0x3560a0===void 0x0?void 0x0:_0x3560a0[_0x487993(0x130)]))throw new AnnError(ApiError_1[_0x487993(0x17d)][_0x487993(0x14f)]);}},'around':async _0x13676f=>{const _0x490e33=_0x3f26e5;var _0x2ab2bc,_0x83c2e2,_0x2b1a9a,_0x2e5f13,_0x36c556;const _0x1c7cf9=(_0x2ab2bc=_0x13676f===null||_0x13676f===void 0x0?void 0x0:_0x13676f[_0x490e33(0x135)])===null||_0x2ab2bc===void 0x0?void 0x0:_0x2ab2bc[core_1[_0x490e33(0x14c)]];if(_0x1c7cf9&&(_0x5872e3===null||_0x5872e3===void 0x0?void 0x0:_0x5872e3[_0x490e33(0x157)])){if(((_0x83c2e2=_0x1c7cf9[_0x490e33(0x130)])===null||_0x83c2e2===void 0x0?void 0x0:_0x83c2e2[_0x490e33(0x177)])&&((_0x36c556=(_0x2e5f13=(_0x2b1a9a=_0x1d29cd===null||_0x1d29cd===void 0x0?void 0x0:_0x1d29cd[_0x490e33(0x125)])===null||_0x2b1a9a===void 0x0?void 0x0:_0x2b1a9a[_0x490e33(0x16e)])===null||_0x2e5f13===void 0x0?void 0x0:_0x2e5f13[_0x1c7cf9[_0x490e33(0x130)][_0x490e33(0x177)]])===null||_0x36c556===void 0x0?void 0x0:_0x36c556[_0x490e33(0x12b)])){const _0x54027a=Array[_0x490e33(0x12a)](_0x1d29cd['anncicapi'][_0x490e33(0x16e)][_0x1c7cf9[_0x490e33(0x130)]['device']][_0x490e33(0x12b)])?_0x1d29cd[_0x490e33(0x125)]['devices'][_0x1c7cf9[_0x490e33(0x130)][_0x490e33(0x177)]]['intercept']:[_0x1d29cd[_0x490e33(0x125)][_0x490e33(0x16e)][_0x1c7cf9[_0x490e33(0x130)][_0x490e33(0x177)]]['intercept']];for(const _0x358588 of _0x54027a){if(decorator_1['Types'][_0x490e33(0x162)](_0x358588)||typeof _0x358588==_0x490e33(0x13a)){const _0x460ab5=await _0x1c7cf9[_0x490e33(0x152)][_0x490e33(0x16c)](_0x358588);typeof(_0x460ab5===null||_0x460ab5===void 0x0?void 0x0:_0x460ab5[_0x490e33(0x131)])==_0x490e33(0x165)&&await _0x460ab5[_0x490e33(0x131)](typeof(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9['method'])==_0x490e33(0x13a)&&(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9[_0x490e33(0x16d)])?_0x1c7cf9[_0x490e33(0x176)][_0x490e33(0x14e)]()+'@'+(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9[_0x490e33(0x16d)]):undefined,_0x1c7cf9,_0x5872e3);}else decorator_1[_0x490e33(0x12c)][_0x490e33(0x17e)](_0x358588)&&await _0x358588(typeof(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9['method'])==_0x490e33(0x13a)&&(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9['_matchedRoute'])?_0x1c7cf9[_0x490e33(0x176)][_0x490e33(0x14e)]()+'@'+(_0x1c7cf9===null||_0x1c7cf9===void 0x0?void 0x0:_0x1c7cf9[_0x490e33(0x16d)]):undefined,_0x1c7cf9,_0x5872e3);}}}return await _0x13676f[_0x490e33(0x185)](..._0x13676f['args']);},'afterThrow':(_0x529b19,_0x20bd0d)=>{throw _0x20bd0d;}};});}async['hanlderApplications'](){const _0x7b9b09=a2_0x5df3bc;this[_0x7b9b09(0x134)][_0x7b9b09(0x183)]([_0x7b9b09(0x153)])['forEach'](_0x18fd0c=>{const _0x456170=_0x7b9b09;(_0x18fd0c===null||_0x18fd0c===void 0x0?void 0x0:_0x18fd0c['context'])&&Object[_0x456170(0x13f)](_0x18fd0c[_0x456170(0x145)],{'ok':{'value':function(_0x15e3a1,_0x10c240,_0x195c6d=0x0){return{'code':_0x195c6d,'data':_0x15e3a1,'extra':_0x10c240};}},'err':{'value':function(_0x15472d,_0x2768ae,_0x5ed4be=0x1){return{'code':_0x5ed4be,'extra':_0x2768ae,'msg':_0x15472d};}},'input':{'value':function(_0x204de,_0x4bc5d5){const _0x1dc97c=_0x456170;var _0x3b1513;const _0x2a2b76=lodash['defaultsDeep']({},this[_0x1dc97c(0x170)]['body']||this['request'][((_0x3b1513=config===null||config===void 0x0?void 0x0:config[_0x1dc97c(0x188)])===null||_0x3b1513===void 0x0?void 0x0:_0x3b1513[_0x1dc97c(0x17b)])||_0x1dc97c(0x161)]||{},this[_0x1dc97c(0x170)][_0x1dc97c(0x133)]||{});return _0x204de?lodash[_0x1dc97c(0x186)](_0x2a2b76,_0x204de,_0x4bc5d5):_0x2a2b76;}},'when':{'value':async function(_0x58ea7a,_0x3a53e9){const _0x47c9b5=_0x456170,_0x2d233e=this['input'](_0x58ea7a,null);if(!lodash[_0x47c9b5(0x178)](_0x2d233e))return await _0x3a53e9(_0x2d233e);}},'only':{'value':function(_0x560b01){const _0x23cc6e=_0x456170,_0x358f9d={};for(let _0x1b564a=0x0;_0x1b564a<_0x560b01[_0x23cc6e(0x136)];_0x1b564a++){lodash[_0x23cc6e(0x12a)](_0x560b01[_0x1b564a])&&_0x560b01[_0x1b564a][_0x23cc6e(0x136)]>0x0&&lodash[_0x23cc6e(0x181)](_0x560b01[_0x1b564a][0x0])&&(_0x358f9d[_0x560b01[_0x1b564a][0x0]]=this[_0x23cc6e(0x164)](_0x560b01[_0x1b564a][0x0],_0x560b01[_0x1b564a][_0x23cc6e(0x136)]>0x1?_0x560b01[_0x1b564a][0x1]:null));}return _0x358f9d;}}});});}async[a2_0x5df3bc(0x156)](){const _0x21993f=a2_0x5df3bc;var _0x24d54a,_0x189241,_0x305673,_0x5327c7,_0x12d2e2,_0x3643e6;const _0x557876=this[_0x21993f(0x137)]['getConfiguration']();((_0x189241=(_0x24d54a=_0x557876===null||_0x557876===void 0x0?void 0x0:_0x557876['anncicapi'])===null||_0x24d54a===void 0x0?void 0x0:_0x24d54a['devices'])===null||_0x189241===void 0x0?void 0x0:_0x189241['DEFAULT'])&&Object[_0x21993f(0x15d)](_0x557876[_0x21993f(0x125)][_0x21993f(0x16e)])[_0x21993f(0x136)]>0x1&&delete _0x557876['anncicapi'][_0x21993f(0x16e)][_0x21993f(0x17f)];if((_0x305673=_0x557876===null||_0x557876===void 0x0?void 0x0:_0x557876[_0x21993f(0x129)])===null||_0x305673===void 0x0?void 0x0:_0x305673[_0x21993f(0x168)])for(const _0x131c5b in _0x557876[_0x21993f(0x129)]['dirs']){((_0x5327c7=_0x557876[_0x21993f(0x129)][_0x21993f(0x168)][_0x131c5b])===null||_0x5327c7===void 0x0?void 0x0:_0x5327c7[_0x21993f(0x179)])&&typeof((_0x12d2e2=_0x557876[_0x21993f(0x129)][_0x21993f(0x168)][_0x131c5b])===null||_0x12d2e2===void 0x0?void 0x0:_0x12d2e2[_0x21993f(0x179)])==_0x21993f(0x13a)&&!fs[_0x21993f(0x13d)](_0x557876[_0x21993f(0x129)][_0x21993f(0x168)][_0x131c5b][_0x21993f(0x179)])&&(fs[_0x21993f(0x15c)](_0x557876[_0x21993f(0x129)]['dirs'][_0x131c5b][_0x21993f(0x179)],{'recursive':!![]}),console['log'](_0x21993f(0x148)+_0x557876['staticFile'][_0x21993f(0x168)][_0x131c5b][_0x21993f(0x179)]));}((_0x3643e6=_0x557876===null||_0x557876===void 0x0?void 0x0:_0x557876[_0x21993f(0x171)])===null||_0x3643e6===void 0x0?void 0x0:_0x3643e6[_0x21993f(0x132)])&&!fs[_0x21993f(0x13d)](_0x557876[_0x21993f(0x171)]['tmpdir'])&&(fs[_0x21993f(0x15c)](_0x557876[_0x21993f(0x171)]['tmpdir'],{'recursive':!![]}),console[_0x21993f(0x12e)](_0x21993f(0x159)+_0x557876['upload'][_0x21993f(0x132)])),this[_0x21993f(0x137)]['addObject'](_0x557876);}};__decorate([(0x0,decorator_1[a2_0x5df3bc(0x187)])(),__metadata(a2_0x5df3bc(0x184),core_1[a2_0x5df3bc(0x167)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x137),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x5df3bc(0x184),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x13c),void 0x0),__decorate([(0x0,decorator_1[a2_0x5df3bc(0x187)])(),__metadata(a2_0x5df3bc(0x184),core_1[a2_0x5df3bc(0x139)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x134),void 0x0),__decorate([(0x0,decorator_1[a2_0x5df3bc(0x187)])(),__metadata(a2_0x5df3bc(0x184),core_1[a2_0x5df3bc(0x15e)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x15a),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x5df3bc(0x184),ApiService_1[a2_0x5df3bc(0x13e)])],CustomConfiguration[a2_0x5df3bc(0x182)],a2_0x5df3bc(0x13e),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x5df3bc(0x166)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x5df3bc(0x14d)]=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x7095(){const _0x3e5c37=['getConfiguration','6dczJza','mkdirSync','_matchedRoute','length','__esModule','458385ClFgSL','key','target','proceed','log','746808scUoDw','@midwayjs/decorator','devices','keys','dir','7573976zlGORc','koa','19621qPDmkE','requestContext','method','design:type','decorator','ApiService','CustomConfiguration','function','isString','anncic-api','handler','decorate','anncic-apihelper','intercept','REQUEST_OBJ_CTX_KEY','Types','tmpdir','environment','@midwayjs/core','string','@midwayjs/i18n','105860mbGDVb','18128781JyrtUH','defineProperty','getAsync','@midwayjs/upload','Inject','MidwayApplicationManager','MidwayEnvironmentService','isClass','isFunction','toLowerCase','headers','MidwayConfigService','@midwayjs/task','checkConfigKeys','3003CnIQoJ','checksign','__metadata','isArray','__decorate','anncicapi','@anncic-api/validator','application','input','apimit','defaultsDeep','hanlderApplications','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','DEFAULT','./types/action','body','metadata','request','dirs','isNull','registerMethodHandler','getApplications','device','defineProperties','addObject','prototype','object','ACTION_ROUTE_KEY','./service/ApiService','staticFile','config','upload','bodyXml','Anncic-api\x20static-file\x20:\x20mkdir\x20','filterConfig','get','Configuration','context','./config/config.production','616dzxKMe'];a2_0x7095=function(){return _0x3e5c37;};return a2_0x7095();}const a2_0x195461=a2_0x3d7f;function a2_0x3d7f(_0x3be52f,_0x3121be){const _0x709587=a2_0x7095();return a2_0x3d7f=function(_0x3d7fa3,_0x4e96b3){_0x3d7fa3=_0x3d7fa3-0x179;let _0x450c06=_0x709587[_0x3d7fa3];return _0x450c06;},a2_0x3d7f(_0x3be52f,_0x3121be);}(function(_0x50a3ac,_0xfeaced){const _0x5d707d=a2_0x3d7f,_0x1011e8=_0x50a3ac();while(!![]){try{const _0x4979ba=-parseInt(_0x5d707d(0x1af))/0x1+-parseInt(_0x5d707d(0x1a3))/0x2*(-parseInt(_0x5d707d(0x17c))/0x3)+-parseInt(_0x5d707d(0x1cb))/0x4+parseInt(_0x5d707d(0x1aa))/0x5+-parseInt(_0x5d707d(0x1a5))/0x6*(-parseInt(_0x5d707d(0x1b6))/0x7)+-parseInt(_0x5d707d(0x1b4))/0x8+parseInt(_0x5d707d(0x1cc))/0x9;if(_0x4979ba===_0xfeaced)break;else _0x1011e8['push'](_0x1011e8['shift']());}catch(_0x53aa60){_0x1011e8['push'](_0x1011e8['shift']());}}}(a2_0x7095,0xaa2f5));var __decorate=this&&this[a2_0x195461(0x180)]||function(_0x3816e5,_0x3121fc,_0x105701,_0x38a6bb){const _0x1881e9=a2_0x195461;var _0x1f22bd=arguments[_0x1881e9(0x1a8)],_0x3658d2=_0x1f22bd<0x3?_0x3121fc:_0x38a6bb===null?_0x38a6bb=Object['getOwnPropertyDescriptor'](_0x3121fc,_0x105701):_0x38a6bb,_0xdd7247;if(typeof Reflect===_0x1881e9(0x196)&&typeof Reflect[_0x1881e9(0x1c1)]===_0x1881e9(0x1bd))_0x3658d2=Reflect[_0x1881e9(0x1c1)](_0x3816e5,_0x3121fc,_0x105701,_0x38a6bb);else{for(var _0x5281ab=_0x3816e5['length']-0x1;_0x5281ab>=0x0;_0x5281ab--)if(_0xdd7247=_0x3816e5[_0x5281ab])_0x3658d2=(_0x1f22bd<0x3?_0xdd7247(_0x3658d2):_0x1f22bd>0x3?_0xdd7247(_0x3121fc,_0x105701,_0x3658d2):_0xdd7247(_0x3121fc,_0x105701))||_0x3658d2;}return _0x1f22bd>0x3&&_0x3658d2&&Object['defineProperty'](_0x3121fc,_0x105701,_0x3658d2),_0x3658d2;},__metadata=this&&this[a2_0x195461(0x17e)]||function(_0x5cd708,_0x571e45){const _0x5a2dbf=a2_0x195461;if(typeof Reflect==='object'&&typeof Reflect[_0x5a2dbf(0x18c)]===_0x5a2dbf(0x1bd))return Reflect[_0x5a2dbf(0x18c)](_0x5cd708,_0x571e45);};Object[a2_0x195461(0x1cd)](exports,a2_0x195461(0x1a9),{'value':!![]}),exports[a2_0x195461(0x1bc)]=void 0x0;const decorator_1=require(a2_0x195461(0x1b0)),core_1=require(a2_0x195461(0x1c8)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x195461(0x198)),action_1=require(a2_0x195461(0x18a)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x195461(0x1ca)),task=require(a2_0x195461(0x17a)),upload=require(a2_0x195461(0x1cf)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x195461(0x1a2)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x195461(0x182)),anncicHelper=require(a2_0x195461(0x1c2));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x3e2610=a2_0x195461;await this['filterConfig'](),await this[_0x3e2610(0x17b)](),await this['handlerActionRoute'](),await this[_0x3e2610(0x187)]();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x1dbc53=a2_0x195461,_0x258595=this[_0x1dbc53(0x19a)][_0x1dbc53(0x1a4)]();this[_0x1dbc53(0x1ba)][_0x1dbc53(0x190)](action_1[_0x1dbc53(0x197)],_0x1d322d=>{const _0x4e0dfa=_0x1dbc53,_0x2d1573=_0x1d322d[_0x4e0dfa(0x18c)];return{'before':async _0x8ccd1d=>{const _0xac4553=_0x4e0dfa;var _0x546cdc,_0x4d9225;const _0x4ac468=(_0x546cdc=_0x8ccd1d===null||_0x8ccd1d===void 0x0?void 0x0:_0x8ccd1d[_0xac4553(0x1ac)])===null||_0x546cdc===void 0x0?void 0x0:_0x546cdc[core_1[_0xac4553(0x1c4)]];if(_0x4ac468&&(_0x2d1573===null||_0x2d1573===void 0x0?void 0x0:_0x2d1573[_0xac4553(0x185)])){if(!this[_0xac4553(0x1bb)][_0xac4553(0x17d)]((_0x4d9225=_0x4ac468===null||_0x4ac468===void 0x0?void 0x0:_0x4ac468['request'])===null||_0x4d9225===void 0x0?void 0x0:_0x4d9225[_0xac4553(0x1d6)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0xdb56c5=>{const _0x44ab86=_0x4e0dfa;var _0x460291,_0x5ee01c,_0x35c536,_0x1ecd53,_0x2637cf;const _0x3e78eb=(_0x460291=_0xdb56c5===null||_0xdb56c5===void 0x0?void 0x0:_0xdb56c5[_0x44ab86(0x1ac)])===null||_0x460291===void 0x0?void 0x0:_0x460291[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x3e78eb&&(_0x2d1573===null||_0x2d1573===void 0x0?void 0x0:_0x2d1573[_0x44ab86(0x185)])){if(((_0x5ee01c=_0x3e78eb[_0x44ab86(0x1d6)])===null||_0x5ee01c===void 0x0?void 0x0:_0x5ee01c[_0x44ab86(0x192)])&&((_0x2637cf=(_0x1ecd53=(_0x35c536=_0x258595===null||_0x258595===void 0x0?void 0x0:_0x258595[_0x44ab86(0x181)])===null||_0x35c536===void 0x0?void 0x0:_0x35c536[_0x44ab86(0x1b1)])===null||_0x1ecd53===void 0x0?void 0x0:_0x1ecd53[_0x3e78eb[_0x44ab86(0x1d6)][_0x44ab86(0x192)]])===null||_0x2637cf===void 0x0?void 0x0:_0x2637cf[_0x44ab86(0x1c3)])){const _0x108b5a=Array[_0x44ab86(0x17f)](_0x258595[_0x44ab86(0x181)][_0x44ab86(0x1b1)][_0x3e78eb[_0x44ab86(0x1d6)]['device']]['intercept'])?_0x258595['anncicapi'][_0x44ab86(0x1b1)][_0x3e78eb[_0x44ab86(0x1d6)]['device']][_0x44ab86(0x1c3)]:[_0x258595[_0x44ab86(0x181)][_0x44ab86(0x1b1)][_0x3e78eb[_0x44ab86(0x1d6)][_0x44ab86(0x192)]][_0x44ab86(0x1c3)]];for(const _0x1ce04 of _0x108b5a){if(decorator_1[_0x44ab86(0x1c5)][_0x44ab86(0x1d3)](_0x1ce04)||typeof _0x1ce04=='string'){const _0x7eb53d=await _0x3e78eb[_0x44ab86(0x1b7)][_0x44ab86(0x1ce)](_0x1ce04);typeof(_0x7eb53d===null||_0x7eb53d===void 0x0?void 0x0:_0x7eb53d[_0x44ab86(0x1c0)])==_0x44ab86(0x1bd)&&await _0x7eb53d['handler'](typeof(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1b8)])==_0x44ab86(0x1c9)&&(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)])?_0x3e78eb[_0x44ab86(0x1b8)][_0x44ab86(0x1d5)]()+'@'+(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)]):undefined,_0x3e78eb,_0x2d1573);}else decorator_1[_0x44ab86(0x1c5)][_0x44ab86(0x1d4)](_0x1ce04)&&await _0x1ce04(typeof(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb['method'])==_0x44ab86(0x1c9)&&(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)])?_0x3e78eb['method'][_0x44ab86(0x1d5)]()+'@'+(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)]):undefined,_0x3e78eb,_0x2d1573);}}}return await _0xdb56c5[_0x44ab86(0x1ad)](..._0xdb56c5['args']);},'afterThrow':(_0x3dfa87,_0xa2278)=>{throw _0xa2278;}};});}async[a2_0x195461(0x187)](){const _0x4b8f80=a2_0x195461;this[_0x4b8f80(0x183)][_0x4b8f80(0x191)]([_0x4b8f80(0x1b5)])['forEach'](_0x167e0b=>{const _0x3e3f54=_0x4b8f80;(_0x167e0b===null||_0x167e0b===void 0x0?void 0x0:_0x167e0b[_0x3e3f54(0x1a1)])&&Object[_0x3e3f54(0x193)](_0x167e0b[_0x3e3f54(0x1a1)],{'ok':{'value':function(_0x3e1c5d,_0x31fe28,_0x30e1ec=0x0){return{'code':_0x30e1ec,'data':_0x3e1c5d,'extra':_0x31fe28};}},'err':{'value':function(_0x4972f9,_0x5180e4,_0x435370=0x1){return{'code':_0x435370,'extra':_0x5180e4,'msg':_0x4972f9};}},'input':{'value':function(_0x3a4185,_0x56133b){const _0x4e3253=_0x3e3f54;var _0x137f91;const _0x1de5b3=lodash[_0x4e3253(0x186)]({},this[_0x4e3253(0x18d)][_0x4e3253(0x18b)]||this[_0x4e3253(0x18d)][((_0x137f91=config===null||config===void 0x0?void 0x0:config[_0x4e3253(0x19c)])===null||_0x137f91===void 0x0?void 0x0:_0x137f91[_0x4e3253(0x1ab)])||'body']||{},this['request']['query']||{});return _0x3a4185?lodash[_0x4e3253(0x19f)](_0x1de5b3,_0x3a4185,_0x56133b):_0x1de5b3;}},'when':{'value':async function(_0x5e17fb,_0x2a3924){const _0x13a241=_0x3e3f54,_0xc33f8=this[_0x13a241(0x184)](_0x5e17fb,null);if(!lodash[_0x13a241(0x18f)](_0xc33f8))return await _0x2a3924(_0xc33f8);}},'only':{'value':function(_0x4ff514){const _0x272f98=_0x3e3f54,_0x54d837={};for(let _0x4847d2=0x0;_0x4847d2<_0x4ff514[_0x272f98(0x1a8)];_0x4847d2++){lodash[_0x272f98(0x17f)](_0x4ff514[_0x4847d2])&&_0x4ff514[_0x4847d2][_0x272f98(0x1a8)]>0x0&&lodash[_0x272f98(0x1be)](_0x4ff514[_0x4847d2][0x0])&&(_0x54d837[_0x4ff514[_0x4847d2][0x0]]=this[_0x272f98(0x184)](_0x4ff514[_0x4847d2][0x0],_0x4ff514[_0x4847d2]['length']>0x1?_0x4ff514[_0x4847d2][0x1]:null));}return _0x54d837;}}});});}async[a2_0x195461(0x19e)](){const _0x269d1b=a2_0x195461;var _0x15f175,_0x1d395e,_0x2cfd93,_0x2ae10f,_0x1177ff,_0x105b25;const _0x2b34b6=this[_0x269d1b(0x19a)][_0x269d1b(0x1a4)]();((_0x1d395e=(_0x15f175=_0x2b34b6===null||_0x2b34b6===void 0x0?void 0x0:_0x2b34b6['anncicapi'])===null||_0x15f175===void 0x0?void 0x0:_0x15f175[_0x269d1b(0x1b1)])===null||_0x1d395e===void 0x0?void 0x0:_0x1d395e[_0x269d1b(0x189)])&&Object[_0x269d1b(0x1b2)](_0x2b34b6[_0x269d1b(0x181)]['devices'])[_0x269d1b(0x1a8)]>0x1&&delete _0x2b34b6[_0x269d1b(0x181)][_0x269d1b(0x1b1)]['DEFAULT'];if((_0x2cfd93=_0x2b34b6===null||_0x2b34b6===void 0x0?void 0x0:_0x2b34b6[_0x269d1b(0x199)])===null||_0x2cfd93===void 0x0?void 0x0:_0x2cfd93[_0x269d1b(0x18e)])for(const _0x93dad1 in _0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)]){((_0x2ae10f=_0x2b34b6['staticFile'][_0x269d1b(0x18e)][_0x93dad1])===null||_0x2ae10f===void 0x0?void 0x0:_0x2ae10f[_0x269d1b(0x1b3)])&&typeof((_0x1177ff=_0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)][_0x93dad1])===null||_0x1177ff===void 0x0?void 0x0:_0x1177ff[_0x269d1b(0x1b3)])=='string'&&!fs['existsSync'](_0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)][_0x93dad1][_0x269d1b(0x1b3)])&&(fs[_0x269d1b(0x1a6)](_0x2b34b6['staticFile'][_0x269d1b(0x18e)][_0x93dad1][_0x269d1b(0x1b3)],{'recursive':!![]}),console[_0x269d1b(0x1ae)](_0x269d1b(0x19d)+_0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)][_0x93dad1][_0x269d1b(0x1b3)]));}((_0x105b25=_0x2b34b6===null||_0x2b34b6===void 0x0?void 0x0:_0x2b34b6[_0x269d1b(0x19b)])===null||_0x105b25===void 0x0?void 0x0:_0x105b25[_0x269d1b(0x1c6)])&&!fs['existsSync'](_0x2b34b6[_0x269d1b(0x19b)]['tmpdir'])&&(fs[_0x269d1b(0x1a6)](_0x2b34b6[_0x269d1b(0x19b)][_0x269d1b(0x1c6)],{'recursive':!![]}),console['log'](_0x269d1b(0x188)+_0x2b34b6[_0x269d1b(0x19b)][_0x269d1b(0x1c6)])),this[_0x269d1b(0x19a)][_0x269d1b(0x194)](_0x2b34b6);}};__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1[a2_0x195461(0x179)])],CustomConfiguration[a2_0x195461(0x195)],a2_0x195461(0x19a),void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x195461(0x1ba),void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1[a2_0x195461(0x1d1)])],CustomConfiguration[a2_0x195461(0x195)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1[a2_0x195461(0x1d2)])],CustomConfiguration[a2_0x195461(0x195)],a2_0x195461(0x1c7),void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x195461(0x195)],a2_0x195461(0x1bb),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x195461(0x1a0)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x195461(0x1bf),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x63370c=a3_0x1d44;(function(_0x36be07,_0x1f23e6){const _0x1d10da=a3_0x1d44,_0x22799f=_0x36be07();while(!![]){try{const _0x581e6d=parseInt(_0x1d10da(0xa7))/0x1*(parseInt(_0x1d10da(0x98))/0x2)+-parseInt(_0x1d10da(0x97))/0x3+-parseInt(_0x1d10da(0xa4))/0x4*(-parseInt(_0x1d10da(0x99))/0x5)+-parseInt(_0x1d10da(0xa8))/0x6*(-parseInt(_0x1d10da(0x9c))/0x7)+parseInt(_0x1d10da(0xb5))/0x8*(-parseInt(_0x1d10da(0x8d))/0x9)+parseInt(_0x1d10da(0xaf))/0xa*(parseInt(_0x1d10da(0xbf))/0xb)+parseInt(_0x1d10da(0xae))/0xc*(-parseInt(_0x1d10da(0xac))/0xd);if(_0x581e6d===_0x1f23e6)break;else _0x22799f['push'](_0x22799f['shift']());}catch(_0x1ffbe5){_0x22799f['push'](_0x22799f['shift']());}}}(a3_0xe707,0x9e860));Object[a3_0x63370c(0x9f)](exports,a3_0x63370c(0x8e),{'value':!![]}),exports[a3_0x63370c(0xc3)]=exports['Action']=void 0x0;function a3_0x1d44(_0x396cb5,_0xbad20d){const _0xe707f4=a3_0xe707();return a3_0x1d44=function(_0x1d44c0,_0x2f271c){_0x1d44c0=_0x1d44c0-0x8d;let _0x1ef4bd=_0xe707f4[_0x1d44c0];return _0x1ef4bd;},a3_0x1d44(_0x396cb5,_0xbad20d);}const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x63370c(0xbe));function a3_0xe707(){const _0x5b6742=['length','247546QVPxfh','/controller/文件下','96SXEnoR','307270LvUipH','middleware','push','route','middlewareIgnore','rootpath','174176ityvEG','-action','ACTION_KEY','getClassMetadata','join','app/controller/','saveModule','Controller','AppsConfigTmp','../types/action','264vMkjgg','/apps/','trim','/config.','parseRoute','APPSCONFIG_KEY','279TsEnUK','__esModule','Action','substring','filter','apps/','match','startsWith','split','splice','920160xWyXAH','2pruqSy','25fPLRQm','existsSync','saveClassMetadata','812EIPOnn','endsWith','module','defineProperty','replace','indexOf','filepath','prefix','450416niPato','toLowerCase','/controller/','416828mJJHWX','3414FbsoCo','-controller','isArray'];a3_0xe707=function(){return _0x5b6742;};return a3_0xe707();}function Action(_0x51bc55,_0x2479ba,_0x5baaae={'middleware':[],'sensitive':!![]}){return _0x338708=>{const _0x39be7b=a3_0x1d44;_0x5baaae['tagName']=_0x2479ba;const _0x3b2849=parseRoute(_0x51bc55);if(_0x3b2849[_0x39be7b(0x9e)]){_0x5baaae[_0x39be7b(0xa3)]=_0x5baaae['prefix']?'/'+_0x3b2849[_0x39be7b(0x9e)]+'/'+_0x5baaae[_0x39be7b(0xa3)]:'/'+_0x3b2849[_0x39be7b(0xb2)];_0x3b2849[_0x39be7b(0xa3)]&&(_0x5baaae[_0x39be7b(0xa3)]='/'+_0x3b2849[_0x39be7b(0xa3)]+'/'+_0x5baaae[_0x39be7b(0xa3)]);if(fs[_0x39be7b(0x9a)](_0x3b2849[_0x39be7b(0xb4)]+'/apps/'+_0x3b2849[_0x39be7b(0x9e)]+'/config.'+(lodash[_0x39be7b(0x9d)](_0x3b2849[_0x39be7b(0xa2)],'ts')?'ts':'js'))){const _0x8826e3=include(_0x3b2849[_0x39be7b(0xb4)]+_0x39be7b(0xc0)+_0x3b2849['module']+_0x39be7b(0xc2)+(lodash[_0x39be7b(0x9d)](_0x3b2849[_0x39be7b(0xa2)],'ts')?'ts':'js'));if(_0x8826e3[_0x39be7b(0xb0)]&&lodash[_0x39be7b(0xaa)](_0x8826e3[_0x39be7b(0xb0)])&&_0x8826e3[_0x39be7b(0xb0)][_0x39be7b(0xab)]>0x0)for(let _0x4fd136 in _0x8826e3['middleware']){_0x8826e3[_0x39be7b(0xb3)][_0x39be7b(0xa1)](_0x8826e3[_0x39be7b(0xb0)][_0x4fd136])==-0x1&&_0x5baaae['middleware'][_0x39be7b(0xb1)](_0x8826e3[_0x39be7b(0xb0)][_0x4fd136]);}const _0x507551=(0x0,decorator_1[_0x39be7b(0xb8)])(action_1[_0x39be7b(0xc4)],action_1['AppsConfigTmp'])||{};_0x507551[''+_0x3b2849[_0x39be7b(0x9e)]]=_0x8826e3,(0x0,decorator_1[_0x39be7b(0x9b)])(action_1['APPSCONFIG_KEY'],_0x507551,action_1[_0x39be7b(0xbd)]);}_0x5baaae[_0x39be7b(0xa3)]=_0x5baaae[_0x39be7b(0xa3)][_0x39be7b(0xa5)]()[_0x39be7b(0xa0)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x39be7b(0xbb)])(action_1['ACTION_KEY'],_0x338708),(0x0,decorator_1[_0x39be7b(0xbc)])(_0x5baaae[_0x39be7b(0xa3)],_0x5baaae)(_0x338708),(0x0,decorator_1[_0x39be7b(0x9b)])(action_1[_0x39be7b(0xb7)],{'prefix':_0x5baaae['prefix'],'pprefix':_0x3b2849[_0x39be7b(0xa3)],'module':_0x3b2849[_0x39be7b(0x9e)],'filepath':_0x3b2849[_0x39be7b(0xa2)],'routerOptions':_0x5baaae},_0x338708);}else _0x5baaae[_0x39be7b(0xa3)]=_0x5baaae['prefix']?'/'+_0x5baaae[_0x39be7b(0xa3)]:'/'+_0x3b2849[_0x39be7b(0xb2)],_0x3b2849[_0x39be7b(0xa3)]&&(_0x5baaae['prefix']='/'+_0x3b2849['prefix']+'/'+_0x5baaae[_0x39be7b(0xa3)]),_0x5baaae[_0x39be7b(0xa3)]=_0x5baaae['prefix'][_0x39be7b(0xa5)]()[_0x39be7b(0xa0)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x39be7b(0xb7)],_0x338708),(0x0,decorator_1['Controller'])(_0x5baaae[_0x39be7b(0xa3)],_0x5baaae)(_0x338708),(0x0,decorator_1[_0x39be7b(0x9b)])(action_1[_0x39be7b(0xb7)],{'prefix':_0x5baaae[_0x39be7b(0xa3)],'module':_0x3b2849[_0x39be7b(0x9e)],'pprefix':_0x3b2849[_0x39be7b(0xa3)],'filepath':_0x3b2849[_0x39be7b(0xa2)],'routerOptions':_0x5baaae},_0x338708);};}exports[a3_0x63370c(0x8f)]=Action;function parseRoute(_0x399935){const _0x59b94c=a3_0x63370c;_0x399935=_0x399935['replace'](/(\\|\/)/g,'/');const _0x46631d=process['cwd']()[_0x59b94c(0xa0)](/(\\|\/)/g,'/'),_0x22c7a0=_0x399935[_0x59b94c(0x90)](0x0,_0x46631d[_0x59b94c(0xab)]+_0x399935['substring'](_0x46631d[_0x59b94c(0xab)]+0x1)['indexOf']('/')+0x1),_0x313775=_0x399935[_0x59b94c(0x90)](_0x22c7a0[_0x59b94c(0xab)]+0x1)[_0x59b94c(0xa0)](/(\\|\/)/g,'/'),_0x43cf00={'route':'','prefix':![],'module':![],'rootpath':_0x22c7a0,'filepath':_0x313775};if(_0x313775['startsWith'](_0x59b94c(0xba))){const _0x2090aa=_0x313775[_0x59b94c(0x90)](_0x59b94c(0xba)[_0x59b94c(0xab)])['split']('/')[_0x59b94c(0x91)](_0x3ef5fe=>_0x3ef5fe&&_0x3ef5fe[_0x59b94c(0xc1)]());return _0x2090aa[_0x59b94c(0xab)]>0x1&&(_0x43cf00[_0x59b94c(0xa3)]=_0x2090aa[0x0]['toLowerCase'](),_0x2090aa[_0x59b94c(0x96)](0x0,0x1)),_0x43cf00[_0x59b94c(0xb2)]=('/'+_0x2090aa[_0x59b94c(0xb9)]('/'))[_0x59b94c(0xa0)](/(\.ts|\.js)$/,'')[_0x59b94c(0xa0)](/\/{2,}/g,'/')[_0x59b94c(0x93)](/[\/|A-Z]*[^A-Z]+/g)[_0x59b94c(0xb9)]('-')['toLowerCase']()[_0x59b94c(0xa0)](/\/\-/g,'/'),_0x43cf00['route'][_0x59b94c(0x9d)](_0x59b94c(0xb6))&&(_0x43cf00[_0x59b94c(0xb2)]=_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x90)](0x0,_0x43cf00[_0x59b94c(0xb2)]['length']-0x7)),_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x9d)](_0x59b94c(0xa9))&&(_0x43cf00[_0x59b94c(0xb2)]=_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x90)](0x0,_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0xab)]-0xb)),_0x43cf00;}else{if(_0x313775[_0x59b94c(0x94)](_0x59b94c(0x92))){const _0x5eb5f6=_0x313775[_0x59b94c(0x90)](0x0,_0x313775[_0x59b94c(0xa1)]('/apps/')+0x5),_0x2dc3f3=_0x313775['substring'](_0x5eb5f6[_0x59b94c(0xab)]+0x1)[_0x59b94c(0xa0)](/(\\|\/)/g,'/')[_0x59b94c(0x95)]('/')[0x0];if(_0x313775[_0x59b94c(0x94)](_0x59b94c(0x92)+_0x2dc3f3+_0x59b94c(0xa6))){const _0x55521f=_0x313775['substring']((_0x5eb5f6+'/'+_0x2dc3f3+_0x59b94c(0xa6))[_0x59b94c(0xab)])['split']('/')[_0x59b94c(0x91)](_0x15af99=>_0x15af99&&_0x15af99[_0x59b94c(0xc1)]());return _0x55521f[_0x59b94c(0xab)]>0x1&&(_0x43cf00['prefix']=_0x55521f[0x0][_0x59b94c(0xa5)](),_0x55521f[_0x59b94c(0x96)](0x0,0x1)),_0x43cf00[_0x59b94c(0x9e)]=_0x2dc3f3,_0x43cf00['route']=('/'+_0x2dc3f3+'/'+_0x55521f['join']('/'))[_0x59b94c(0xa0)](/(\.ts|\.js)$/,'')[_0x59b94c(0xa0)](/\/{2,}/,'/')[_0x59b94c(0x93)](/[\/|A-Z]*[^A-Z]+/g)[_0x59b94c(0xb9)]('-')[_0x59b94c(0xa5)]()[_0x59b94c(0xa0)](/\/\-/g,'/'),_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x9d)](_0x59b94c(0xb6))&&(_0x43cf00[_0x59b94c(0xb2)]=_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x90)](0x0,_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0xab)]-0x7)),_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x9d)](_0x59b94c(0xa9))&&(_0x43cf00[_0x59b94c(0xb2)]=_0x43cf00[_0x59b94c(0xb2)][_0x59b94c(0x90)](0x0,_0x43cf00[_0x59b94c(0xb2)]['length']-0xb)),_0x43cf00;}throw new Error(_0x313775+'\x20文件请放在apps/'+_0x2dc3f3+_0x59b94c(0xad));}}throw new Error(_0x313775+'\x20文件请放在app/controller/文件下');}exports[a3_0x63370c(0xc3)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x293b4b=a4_0x468f;(function(_0x2268d0,_0x3afc44){const _0xd9e111=a4_0x468f,_0x42b6c3=_0x2268d0();while(!![]){try{const _0x22d90d=parseInt(_0xd9e111(0x132))/0x1+-parseInt(_0xd9e111(0x139))/0x2*(-parseInt(_0xd9e111(0x13b))/0x3)+-parseInt(_0xd9e111(0x149))/0x4+-parseInt(_0xd9e111(0x13a))/0x5+-parseInt(_0xd9e111(0x150))/0x6*(-parseInt(_0xd9e111(0x145))/0x7)+parseInt(_0xd9e111(0x133))/0x8+-parseInt(_0xd9e111(0x134))/0x9;if(_0x22d90d===_0x3afc44)break;else _0x42b6c3['push'](_0x42b6c3['shift']());}catch(_0x108999){_0x42b6c3['push'](_0x42b6c3['shift']());}}}(a4_0x1604,0xa400d));Object[a4_0x293b4b(0x137)](exports,a4_0x293b4b(0x14a),{'value':!![]}),exports[a4_0x293b4b(0x135)]=void 0x0;function a4_0x468f(_0x4e3482,_0x48761e){const _0x1604cc=a4_0x1604();return a4_0x468f=function(_0x468f0c,_0x162290){_0x468f0c=_0x468f0c-0x132;let _0x450fc0=_0x1604cc[_0x468f0c];return _0x450fc0;},a4_0x468f(_0x4e3482,_0x48761e);}const validator_1=require(a4_0x293b4b(0x14f)),decorator_1=require(a4_0x293b4b(0x13c)),action_1=require(a4_0x293b4b(0x140));function a4_0x1604(){const _0x262d18=['Api','length','defineProperty','filter','102edBDev','1481500RxgsYX','34290vHaiLF','@midwayjs/decorator','apimit','del','createCustomMethodDecorator','../types/action','assign','Validator','delete','middleware','322WRhvFN','routerName','get','validate','3244052dmHssO','__esModule','indexOf','toLowerCase','attachClassMetadata','description','@anncic-api/validator','136638ylXenN','middlewareIgnore','626594xuexOA','1782520BlBwfn','6307443hhtVpH'];a4_0x1604=function(){return _0x262d18;};return a4_0x1604();}function Api(_0x5d4c45,_0x51315b=a4_0x293b4b(0x147),_0x381f30='/',_0x1a87a6={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x33a4b2,_0x201457,_0x15c6e0)=>{const _0x5cb2d7=a4_0x468f;var _0x36c72e,_0x98384f,_0xd67c77;!_0x1a87a6[_0x5cb2d7(0x144)]&&(_0x1a87a6[_0x5cb2d7(0x144)]=[]);!((_0x36c72e=_0x1a87a6===null||_0x1a87a6===void 0x0?void 0x0:_0x1a87a6[_0x5cb2d7(0x148)])===null||_0x36c72e===void 0x0?void 0x0:_0x36c72e['validationOptions'])&&(_0x1a87a6[_0x5cb2d7(0x148)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'utc'}});if(((_0x98384f=_0x1a87a6===null||_0x1a87a6===void 0x0?void 0x0:_0x1a87a6[_0x5cb2d7(0x144)])===null||_0x98384f===void 0x0?void 0x0:_0x98384f[_0x5cb2d7(0x136)])>0x0&&((_0xd67c77=_0x1a87a6===null||_0x1a87a6===void 0x0?void 0x0:_0x1a87a6[_0x5cb2d7(0x151)])===null||_0xd67c77===void 0x0?void 0x0:_0xd67c77[_0x5cb2d7(0x136)])>0x0)for(let _0x5055de in _0x1a87a6[_0x5cb2d7(0x144)]){_0x1a87a6['middlewareIgnore'][_0x5cb2d7(0x14b)](_0x1a87a6[_0x5cb2d7(0x144)][_0x5055de])!==-0x1&&(_0x1a87a6['middleware'][_0x5055de]=null);}_0x1a87a6['routerName']=_0x5d4c45,(0x0,validator_1[_0x5cb2d7(0x142)])(_0x1a87a6['validate'])(_0x33a4b2,_0x201457,_0x15c6e0),(0x0,decorator_1['RequestMapping'])(Object[_0x5cb2d7(0x141)](_0x1a87a6,{'path':_0x381f30,'requestMethod':(_0x51315b==_0x5cb2d7(0x13e)?_0x5cb2d7(0x143):_0x51315b)[_0x5cb2d7(0x14c)]()}))(_0x33a4b2,_0x201457,_0x15c6e0),(0x0,decorator_1[_0x5cb2d7(0x14d)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x381f30,'method':_0x201457,'apimit':_0x1a87a6[_0x5cb2d7(0x13d)],'routerName':_0x1a87a6[_0x5cb2d7(0x146)],'description':_0x1a87a6[_0x5cb2d7(0x14e)],'middleware':(_0x1a87a6[_0x5cb2d7(0x144)]||[])[_0x5cb2d7(0x138)](_0x4a2395=>!!_0x4a2395),'requestMethod':(_0x51315b==_0x5cb2d7(0x13e)?_0x5cb2d7(0x143):_0x51315b)[_0x5cb2d7(0x14c)]()},_0x33a4b2),(0x0,decorator_1[_0x5cb2d7(0x13f)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x381f30,'method':_0x201457,'apimit':_0x1a87a6[_0x5cb2d7(0x13d)],'routerName':_0x1a87a6[_0x5cb2d7(0x146)],'description':_0x1a87a6[_0x5cb2d7(0x14e)],'middleware':(_0x1a87a6['middleware']||[])[_0x5cb2d7(0x138)](_0x170ab1=>!!_0x170ab1),'requestMethod':(_0x51315b=='del'?_0x5cb2d7(0x143):_0x51315b)[_0x5cb2d7(0x14c)]()})(_0x33a4b2,_0x201457,_0x15c6e0);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x50676a=a5_0x48cb;(function(_0x3e0c6a,_0xea446f){const _0x2d1021=a5_0x48cb,_0x1c6064=_0x3e0c6a();while(!![]){try{const _0x54f051=-parseInt(_0x2d1021(0x92))/0x1+-parseInt(_0x2d1021(0x88))/0x2*(-parseInt(_0x2d1021(0x9e))/0x3)+-parseInt(_0x2d1021(0x9d))/0x4*(parseInt(_0x2d1021(0x9b))/0x5)+-parseInt(_0x2d1021(0x9a))/0x6+-parseInt(_0x2d1021(0x93))/0x7+-parseInt(_0x2d1021(0x91))/0x8+parseInt(_0x2d1021(0x95))/0x9;if(_0x54f051===_0xea446f)break;else _0x1c6064['push'](_0x1c6064['shift']());}catch(_0x1a2c6d){_0x1c6064['push'](_0x1c6064['shift']());}}}(a5_0x3cb3,0xa5bf8));function a5_0x48cb(_0x4989e9,_0x3c7e3e){const _0x3cb3eb=a5_0x3cb3();return a5_0x48cb=function(_0x48cb93,_0x4eb912){_0x48cb93=_0x48cb93-0x88;let _0x33217e=_0x3cb3eb[_0x48cb93];return _0x33217e;},a5_0x48cb(_0x4989e9,_0x3c7e3e);}function a5_0x3cb3(){const _0x14ed68=['__esModule','ApitestService','get','../service/ApitestService','getApplicationContext','Apitest','4660360AbNjeA','1320607Jwfxrl','3721683zNJlbZ','apidoc','42300477YTunWG','value','filepath','defineProperty','getConfig','2746620EhXbjV','68800duoVYc','MidwayEnvironmentService','360zfJRqQ','18PQTgmf','REQUEST_OBJ_CTX_KEY','getAsync','36614WQuNhM','@midwayjs/core','apitest'];a5_0x3cb3=function(){return _0x14ed68;};return a5_0x3cb3();}Object[a5_0x50676a(0x98)](exports,a5_0x50676a(0x8b),{'value':!![]}),exports[a5_0x50676a(0x90)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x50676a(0x89)),ApitestService_1=require(a5_0x50676a(0x8e));function Apitest(_0x43add5='/apitest',_0x96d300){return(_0x1fba9f,_0x20a7c7,_0x27f6e5)=>{const _0x1bcd36=a5_0x48cb;return(0x0,decorator_1['RequestMapping'])({'path':_0x43add5,'requestMethod':_0x1bcd36(0x8d)})(_0x1fba9f,_0x20a7c7,_0x27f6e5),_0x27f6e5[_0x1bcd36(0x96)]=async function(..._0x3329aa){const _0x4930bf=_0x1bcd36;var _0x427a87;const _0xf9951d=(_0x427a87=this[core_1[_0x4930bf(0x9f)]])===null||_0x427a87===void 0x0?void 0x0:_0x427a87['app'];if(_0xf9951d&&_0xf9951d[_0x4930bf(0x99)](_0x4930bf(0x8a))){const _0x41b1ca=await _0xf9951d[_0x4930bf(0x8f)]()[_0x4930bf(0xa0)](ApitestService_1[_0x4930bf(0x8c)]),_0x138b83=await _0xf9951d[_0x4930bf(0x8f)]()['getAsync'](core_1[_0x4930bf(0x9c)]);return _0x138b83['isDevelopmentEnvironment']()&&(_0x96d300[_0x4930bf(0x97)]=!![]),await _0x41b1ca[_0x4930bf(0x94)](_0x96d300);}return'';},_0x27f6e5;};}exports[a5_0x50676a(0x90)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x46c7e3=a6_0x5493;(function(_0x23ab28,_0x57b593){var _0x553d0f=a6_0x5493,_0x51a646=_0x23ab28();while(!![]){try{var _0x506efd=-parseInt(_0x553d0f(0xa8))/0x1+-parseInt(_0x553d0f(0xa9))/0x2+-parseInt(_0x553d0f(0xae))/0x3*(-parseInt(_0x553d0f(0xb4))/0x4)+-parseInt(_0x553d0f(0xa6))/0x5+parseInt(_0x553d0f(0xb0))/0x6*(-parseInt(_0x553d0f(0xb2))/0x7)+-parseInt(_0x553d0f(0xb3))/0x8+parseInt(_0x553d0f(0xa1))/0x9;if(_0x506efd===_0x57b593)break;else _0x51a646['push'](_0x51a646['shift']());}catch(_0x304a24){_0x51a646['push'](_0x51a646['shift']());}}}(a6_0x5731,0x474a6));var __decorate=this&&this[a6_0x46c7e3(0xa0)]||function(_0x293110,_0x2f4fe5,_0x8ea60,_0x4e7e79){var _0x5ce7c0=a6_0x46c7e3,_0x482202=arguments['length'],_0x16de64=_0x482202<0x3?_0x2f4fe5:_0x4e7e79===null?_0x4e7e79=Object[_0x5ce7c0(0xa4)](_0x2f4fe5,_0x8ea60):_0x4e7e79,_0x16aca6;if(typeof Reflect==='object'&&typeof Reflect[_0x5ce7c0(0x9c)]===_0x5ce7c0(0x9e))_0x16de64=Reflect[_0x5ce7c0(0x9c)](_0x293110,_0x2f4fe5,_0x8ea60,_0x4e7e79);else{for(var _0x430690=_0x293110['length']-0x1;_0x430690>=0x0;_0x430690--)if(_0x16aca6=_0x293110[_0x430690])_0x16de64=(_0x482202<0x3?_0x16aca6(_0x16de64):_0x482202>0x3?_0x16aca6(_0x2f4fe5,_0x8ea60,_0x16de64):_0x16aca6(_0x2f4fe5,_0x8ea60))||_0x16de64;}return _0x482202>0x3&&_0x16de64&&Object[_0x5ce7c0(0x9f)](_0x2f4fe5,_0x8ea60,_0x16de64),_0x16de64;},__metadata=this&&this['__metadata']||function(_0x16326f,_0x30eb45){var _0x367ab9=a6_0x46c7e3;if(typeof Reflect==='object'&&typeof Reflect[_0x367ab9(0xab)]===_0x367ab9(0x9e))return Reflect['metadata'](_0x16326f,_0x30eb45);};function a6_0x5493(_0x256543,_0x20861a){var _0x573178=a6_0x5731();return a6_0x5493=function(_0x549369,_0xc6b283){_0x549369=_0x549369-0x9b;var _0x2d8f41=_0x573178[_0x549369];return _0x2d8f41;},a6_0x5493(_0x256543,_0x20861a);}Object[a6_0x46c7e3(0x9f)](exports,a6_0x46c7e3(0x9d),{'value':!![]}),exports[a6_0x46c7e3(0xaa)]=void 0x0;function a6_0x5731(){var _0x67e479=['HEADERS_DEVICE','2287440dbcSXV','signature验证失败','239381CnhZHS','648326IWsSaU','ApiError','metadata','网络繁忙,请稍后重试','请使用正确的设备','6rpYEQU','HEADERS_CHECKCODE','2909136mcEKnu','HEADERS_LACK','7YQGwHc','1792112cACWVK','153496QNakIk','design:type','decorate','__esModule','function','defineProperty','__decorate','17506440QbrCoQ','checkcode验证失败','HEADERS_SIGNATURE','getOwnPropertyDescriptor'];a6_0x5731=function(){return _0x67e479;};return a6_0x5731();}class ApiError{}ApiError['TIMEOUT']=0x3d7e31,ApiError[a6_0x46c7e3(0xb1)]=0x3d7e32,ApiError[a6_0x46c7e3(0xa5)]=0x3d7e33,ApiError[a6_0x46c7e3(0xaf)]=0x3d7e34,ApiError[a6_0x46c7e3(0xa3)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x46c7e3(0xac)),__metadata(a6_0x46c7e3(0x9b),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x46c7e3(0x9b),Object)],ApiError,a6_0x46c7e3(0xb1),void 0x0),__decorate([AnnErrorMsg(a6_0x46c7e3(0xad)),__metadata(a6_0x46c7e3(0x9b),Object)],ApiError,a6_0x46c7e3(0xa5),void 0x0),__decorate([AnnErrorMsg(a6_0x46c7e3(0xa2)),__metadata(a6_0x46c7e3(0x9b),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x46c7e3(0xa7)),__metadata(a6_0x46c7e3(0x9b),Object)],ApiError,a6_0x46c7e3(0xa3),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x3ff102=a7_0x1b34;(function(_0x334162,_0x117533){const _0x3c7c50=a7_0x1b34,_0x36c881=_0x334162();while(!![]){try{const _0x4d6ffd=parseInt(_0x3c7c50(0x164))/0x1+-parseInt(_0x3c7c50(0x15e))/0x2+-parseInt(_0x3c7c50(0x163))/0x3*(-parseInt(_0x3c7c50(0x158))/0x4)+parseInt(_0x3c7c50(0x15d))/0x5*(parseInt(_0x3c7c50(0x160))/0x6)+parseInt(_0x3c7c50(0x15c))/0x7*(-parseInt(_0x3c7c50(0x156))/0x8)+-parseInt(_0x3c7c50(0x166))/0x9*(parseInt(_0x3c7c50(0x165))/0xa)+parseInt(_0x3c7c50(0x15a))/0xb;if(_0x4d6ffd===_0x117533)break;else _0x36c881['push'](_0x36c881['shift']());}catch(_0x1d8cd7){_0x36c881['push'](_0x36c881['shift']());}}}(a7_0x1059,0xbddda));Object[a7_0x3ff102(0x159)](exports,a7_0x3ff102(0x15f),{'value':!![]}),exports[a7_0x3ff102(0x167)]=void 0x0;const decorator_1=require(a7_0x3ff102(0x161)),action_1=require('../types/action');function a7_0x1059(){const _0x33e1f3=['15RSueWQ','568438rVBjZj','1830ERxKnx','32337wbCrbE','getAppsConfig','1048YsexWx','get','812488ysnGHM','defineProperty','2364989YFWquJ','getClassMetadata','32641zaKgbM','4186995aJifYs','1180768UoIjof','__esModule','6PxmIaT','@midwayjs/decorator','APPSCONFIG_KEY'];a7_0x1059=function(){return _0x33e1f3;};return a7_0x1059();}function a7_0x1b34(_0x47bb77,_0x4dcbe2){const _0x105905=a7_0x1059();return a7_0x1b34=function(_0x1b3497,_0x465e07){_0x1b3497=_0x1b3497-0x156;let _0x18af25=_0x105905[_0x1b3497];return _0x18af25;},a7_0x1b34(_0x47bb77,_0x4dcbe2);}function getAppsConfig(_0x51cdfa){const _0x1fc470=a7_0x3ff102,_0x54dbdc=(0x0,decorator_1[_0x1fc470(0x15b)])(action_1[_0x1fc470(0x162)],action_1['AppsConfigTmp'])||{};return _0x51cdfa?lodash[_0x1fc470(0x157)](_0x54dbdc,_0x51cdfa):_0x54dbdc;}exports[a7_0x3ff102(0x167)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a8_0xded8(_0x24f0d6,_0xb60f8f){const _0x624c4e=a8_0x624c();return a8_0xded8=function(_0xded8a8,_0x4ecaa0){_0xded8a8=_0xded8a8-0x10e;let _0x3dc70b=_0x624c4e[_0xded8a8];return _0x3dc70b;},a8_0xded8(_0x24f0d6,_0xb60f8f);}function a8_0x624c(){const _0x2eaa4e=['number','array','RULES_KEY','describe','../types/action','function','145351aiOtNa','header','flags.description','/static/apitest','__esModule','metadata','HEADERS','String','Object','request','pprefix','module','default','getMethodParamTypes','文件上传-','concat','BODY','length','QUERY','items','test','rules','max','Number','iterator','noreq','getRoutes','replace','getClassMetadata','split','filter','RouteParamTypes','@midwayjs/decorator','122965xmTTEZ','indexOf','file','isArray','key','2931832GjNHpM','156646jSrZrA','filepath','route','ACTION_ROUTE_KEY','routerOptions','object','9MHyLef','parameterIndex','prefix','INJECT_CUSTOM_PARAM','type','WEB_ROUTER_PARAM_KEY','description','1366788RaVrxj','listModule','allow','required','method','find','body','join','args','title','name','930HylyqW','routes','ACTION_KEY','propertyData','summary','11EiLzNx','tagName','static/apitest','3IFYccN','get','flags.presence','10178xEgClz','-array','children','push','只允许:[','flags.label','limit','log','query','startsWith','11167570fLvKWo','string','Boolean'];a8_0x624c=function(){return _0x2eaa4e;};return a8_0x624c();}const a8_0x2c3d22=a8_0xded8;(function(_0x250d10,_0x5b3237){const _0xc4eaad=a8_0xded8,_0x3d0088=_0x250d10();while(!![]){try{const _0x4406e8=-parseInt(_0xc4eaad(0x153))/0x1+-parseInt(_0xc4eaad(0x11d))/0x2+parseInt(_0xc4eaad(0x13d))/0x3*(-parseInt(_0xc4eaad(0x12a))/0x4)+-parseInt(_0xc4eaad(0x117))/0x5+parseInt(_0xc4eaad(0x135))/0x6*(parseInt(_0xc4eaad(0x140))/0x7)+parseInt(_0xc4eaad(0x11c))/0x8*(-parseInt(_0xc4eaad(0x123))/0x9)+-parseInt(_0xc4eaad(0x14a))/0xa*(-parseInt(_0xc4eaad(0x13a))/0xb);if(_0x4406e8===_0x5b3237)break;else _0x3d0088['push'](_0x3d0088['shift']());}catch(_0x402b7c){_0x3d0088['push'](_0x3d0088['shift']());}}}(a8_0x624c,0x5e294));Object['defineProperty'](exports,a8_0x2c3d22(0x157),{'value':!![]}),exports[a8_0x2c3d22(0x110)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0x2c3d22(0x116)),decorator_2=require(a8_0x2c3d22(0x116)),decorator_3=require('@midwayjs/decorator'),action_1=require(a8_0x2c3d22(0x151));function getRoutes(_0x5f0b8c={'prefix':'/','module':![]}){const _0x1e0e03=a8_0x2c3d22;var _0x43579d,_0x2a9929;const _0xb6dfc0=(0x0,decorator_3[_0x1e0e03(0x12b)])(action_1[_0x1e0e03(0x137)]),_0x3966b9={},_0x23766f=Array[_0x1e0e03(0x11a)](_0x5f0b8c[_0x1e0e03(0x114)]||[])?_0x5f0b8c[_0x1e0e03(0x114)]||[]:[_0x5f0b8c[_0x1e0e03(0x114)]];_0x3e35f2:for(const _0x3453c2 of _0xb6dfc0){let _0x4e6407=(0x0,decorator_3['getClassMetadata'])(action_1[_0x1e0e03(0x137)],_0x3453c2),_0x963a1d=(0x0,decorator_3[_0x1e0e03(0x112)])(action_1[_0x1e0e03(0x120)],_0x3453c2);if(_0x4e6407&&_0x963a1d){let _0x28d96e=_0x4e6407[_0x1e0e03(0x125)],_0x4920b8={};if(_0x5f0b8c[_0x1e0e03(0x15e)]&&(0x0,lodash_1[_0x1e0e03(0x13e)])(_0x4e6407,_0x1e0e03(0x15e),![])!=_0x5f0b8c[_0x1e0e03(0x15e)])continue _0x3e35f2;else{if(_0x5f0b8c[_0x1e0e03(0x15e)]===![]&&!!(0x0,lodash_1[_0x1e0e03(0x13e)])(_0x4e6407,_0x1e0e03(0x15e),null))continue _0x3e35f2;}if(_0x5f0b8c[_0x1e0e03(0x125)]&&!_0x28d96e[_0x1e0e03(0x149)](_0x5f0b8c['prefix']))continue _0x3e35f2;_0x28d96e!=='/'?(_0x4920b8['summary']=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407['routerOptions']['tagName'])||(/^\//[_0x1e0e03(0x167)](_0x28d96e)?_0x28d96e[_0x1e0e03(0x113)]('/')[0x1]:_0x28d96e),_0x4920b8[_0x1e0e03(0x129)]=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x121)]['description'])||_0x4920b8['summary'],_0x4920b8[_0x1e0e03(0x136)]=[]):(_0x4920b8[_0x1e0e03(0x139)]=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407['routerOptions'][_0x1e0e03(0x13b)])||_0x1e0e03(0x15f),_0x4920b8['description']=(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x121)][_0x1e0e03(0x129)])||'',_0x4920b8[_0x1e0e03(0x136)]=[]);_0x5f0b8c['filepath']&&(_0x4920b8[_0x1e0e03(0x11e)]=_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x11e)]);(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x15d)])&&(_0x4920b8[_0x1e0e03(0x125)]=_0x4e6407['pprefix']);(_0x4e6407===null||_0x4e6407===void 0x0?void 0x0:_0x4e6407[_0x1e0e03(0x15e)])&&(_0x4920b8[_0x1e0e03(0x15e)]=_0x4e6407[_0x1e0e03(0x15e)]);let _0x8d1a2=(0x0,decorator_3[_0x1e0e03(0x112)])(decorator_2[_0x1e0e03(0x126)],_0x3453c2)||{};if(typeof _0x963a1d[Symbol[_0x1e0e03(0x10e)]]===_0x1e0e03(0x152))for(let _0x283588 of _0x963a1d){let _0x2c77ac={};_0x2c77ac['method']=_0x283588['requestMethod'],_0x2c77ac['route']=(_0x28d96e+_0x283588['path'])[_0x1e0e03(0x111)](/\/{1,}/,'/'),_0x2c77ac[_0x1e0e03(0x139)]=(_0x283588===null||_0x283588===void 0x0?void 0x0:_0x283588['routerName'])||_0x4920b8[_0x1e0e03(0x139)]||_0x1e0e03(0x15f),_0x2c77ac[_0x1e0e03(0x129)]=(_0x283588===null||_0x283588===void 0x0?void 0x0:_0x283588[_0x1e0e03(0x129)])||'',_0x2c77ac[_0x1e0e03(0x15c)]=[];if(!(0x0,lodash_1[_0x1e0e03(0x149)])(_0x2c77ac['route'],_0x1e0e03(0x13c))&&!(0x0,lodash_1['startsWith'])(_0x2c77ac[_0x1e0e03(0x11f)],_0x1e0e03(0x156))&&_0x23766f[_0x1e0e03(0x118)](_0x2c77ac[_0x1e0e03(0x11f)])===-0x1){if(!(_0x5f0b8c===null||_0x5f0b8c===void 0x0?void 0x0:_0x5f0b8c[_0x1e0e03(0x10f)])){let _0x5d1bdb=(0x0,decorator_3[_0x1e0e03(0x160)])(new _0x3453c2(),_0x283588[_0x1e0e03(0x12e)]);for(const _0x5274b9 in _0x5d1bdb){let _0x36eeae=(_0x43579d=_0x8d1a2[_0x283588['method']])===null||_0x43579d===void 0x0?void 0x0:_0x43579d['find'](_0xa17c0f=>_0xa17c0f[_0x1e0e03(0x124)]==_0x5274b9&&_0xa17c0f[_0x1e0e03(0x11b)]===decorator_2[_0x1e0e03(0x128)]&&(_0xa17c0f===null||_0xa17c0f===void 0x0?void 0x0:_0xa17c0f['metadata']));if(_0x36eeae===null||_0x36eeae===void 0x0?void 0x0:_0x36eeae['metadata']){let _0x577773=convertTypeToString(_0x36eeae['metadata'][_0x1e0e03(0x127)]||0x0);if([_0x1e0e03(0x148),'body']['indexOf'](_0x577773)!=-0x1&&_0x36eeae['metadata'][_0x1e0e03(0x138)][_0x1e0e03(0x118)](':')==-0x1&&!_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x12f)](_0x5e1501=>_0x5e1501[_0x1e0e03(0x11b)]==_0x36eeae[_0x1e0e03(0x158)][_0x1e0e03(0x138)]))_0x2c77ac['request']['push']({'key':_0x36eeae['metadata'][_0x1e0e03(0x138)],'title':_0x36eeae[_0x1e0e03(0x158)][_0x1e0e03(0x138)],'type':convertSchemaType(_0x5d1bdb[_0x36eeae[_0x1e0e03(0x124)]]['name']),'required':![],'default':'','desc':''});else{if(_0x577773=='file'){let _0x124b8e=((_0x2a9929=_0x36eeae===null||_0x36eeae===void 0x0?void 0x0:_0x36eeae[_0x1e0e03(0x158)])===null||_0x2a9929===void 0x0?void 0x0:_0x2a9929['propertyData'])||'file';_0x124b8e[_0x1e0e03(0x118)](':')==-0x1&&!_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x12f)](_0x2a5c5a=>_0x2a5c5a[_0x1e0e03(0x11b)]==_0x124b8e&&_0x2a5c5a[_0x1e0e03(0x127)]==_0x1e0e03(0x119))&&_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x143)]({'key':_0x124b8e,'title':_0x1e0e03(0x161)+_0x124b8e,'type':_0x1e0e03(0x119),'required':!![],'default':'','desc':''});}}}else{const _0x1e401e=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x1e0e03(0x14f)],_0x5d1bdb[_0x5274b9]);_0x1e401e&&_0x2c77ac[_0x1e0e03(0x15c)][_0x1e0e03(0x143)](...getJoiRequest(_0x1e401e));}}}_0x4920b8[_0x1e0e03(0x136)][_0x1e0e03(0x143)](_0x2c77ac);}}if(_0x4920b8[_0x1e0e03(0x136)][_0x1e0e03(0x164)]>0x0){let _0x4eb6ba=_0x3966b9[_0x28d96e];_0x4eb6ba?(_0x4eb6ba[_0x1e0e03(0x139)]!=_0x4920b8['summary']&&(_0x4eb6ba['summary']=_0x4eb6ba['summary']+','+_0x4920b8[_0x1e0e03(0x139)]),_0x4eb6ba[_0x1e0e03(0x129)]!=_0x4920b8[_0x1e0e03(0x129)]&&(_0x4eb6ba['description']=_0x4eb6ba[_0x1e0e03(0x129)]+','+_0x4920b8[_0x1e0e03(0x129)]),_0x4eb6ba['routes']=_0x4eb6ba[_0x1e0e03(0x136)][_0x1e0e03(0x162)](_0x4920b8[_0x1e0e03(0x136)]),_0x3966b9[_0x28d96e]=_0x4eb6ba):_0x3966b9[_0x28d96e]=_0x4920b8;}}}return _0x3966b9;}exports[a8_0x2c3d22(0x110)]=getRoutes;function getJoiRequest(_0x60b0f3){const _0x1a642a=a8_0x2c3d22,_0x246391=[];for(let _0x41478d in _0x60b0f3){const _0x719e98={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3e2074=typeof _0x60b0f3[_0x41478d][_0x1a642a(0x150)]=='function'?_0x60b0f3[_0x41478d]['describe']():_0x60b0f3[_0x41478d];_0x719e98[_0x1a642a(0x11b)]=_0x41478d,_0x719e98['type']=_0x3e2074[_0x1a642a(0x127)],_0x719e98[_0x1a642a(0x133)]=(0x0,lodash_1[_0x1a642a(0x13e)])(_0x3e2074,_0x1a642a(0x145),_0x41478d),_0x719e98[_0x1a642a(0x15f)]=(0x0,lodash_1[_0x1a642a(0x13e)])(_0x3e2074,'flags.default',''),_0x719e98[_0x1a642a(0x12d)]=(0x0,lodash_1['get'])(_0x3e2074,_0x1a642a(0x13f),'')=='required',_0x719e98[_0x1a642a(0x129)]=(0x0,lodash_1[_0x1a642a(0x13e)])(_0x3e2074,_0x1a642a(0x155),'');if(_0x3e2074[_0x1a642a(0x127)]==_0x1a642a(0x122))_0x719e98[_0x1a642a(0x142)]=getJoiRequest(_0x3e2074['keys']);else _0x3e2074[_0x1a642a(0x127)]==_0x1a642a(0x14e)&&_0x3e2074[_0x1a642a(0x166)]&&Array[_0x1a642a(0x11a)](_0x3e2074['items'])&&_0x3e2074[_0x1a642a(0x166)][0x0]&&console[_0x1a642a(0x147)](_0x41478d+_0x1a642a(0x141),_0x3e2074);_0x3e2074[_0x1a642a(0x12c)]&&Array[_0x1a642a(0x11a)](_0x3e2074['allow'])&&_0x3e2074[_0x1a642a(0x12c)]['length']>0x0&&(_0x719e98['description']=_0x1a642a(0x144)+_0x3e2074[_0x1a642a(0x12c)][_0x1a642a(0x131)](',')+'];'+_0x719e98[_0x1a642a(0x129)]);if(_0x719e98[_0x1a642a(0x11b)]&&_0x719e98[_0x1a642a(0x127)]){const _0x49d6b5={};for(const _0xcff0fa of _0x3e2074[_0x1a642a(0x168)]||[]){if(_0xcff0fa[_0x1a642a(0x134)]==='min'&&_0xcff0fa[_0x1a642a(0x132)])_0x49d6b5['min']=_0xcff0fa[_0x1a642a(0x132)][_0x1a642a(0x146)];else _0xcff0fa[_0x1a642a(0x134)]===_0x1a642a(0x169)&&(_0x49d6b5['max']=_0xcff0fa['args'][_0x1a642a(0x146)]);}_0x719e98['rules']=_0x49d6b5;}_0x719e98[_0x1a642a(0x11b)]&&_0x719e98[_0x1a642a(0x133)]&&_0x246391['push'](_0x719e98);}return _0x246391;}function convertSchemaType(_0x4bc9e5){const _0x402f5c=a8_0x2c3d22;switch(_0x4bc9e5){case _0x402f5c(0x15b):return _0x402f5c(0x122);case _0x402f5c(0x14c):return'boolean';case _0x402f5c(0x16a):return _0x402f5c(0x14d);case _0x402f5c(0x15a):return'string';case'File':return _0x402f5c(0x119);default:return _0x402f5c(0x14b);}}function convertTypeToString(_0x281d3a){const _0xae6498=a8_0x2c3d22;switch(_0x281d3a){case decorator_1[_0xae6498(0x115)][_0xae6498(0x159)]:return'header';case decorator_1['RouteParamTypes'][_0xae6498(0x165)]:return _0xae6498(0x148);case decorator_1['RouteParamTypes']['PARAM']:return'path';case decorator_1['RouteParamTypes'][_0xae6498(0x163)]:return _0xae6498(0x130);case decorator_1[_0xae6498(0x115)]['FIELDS']:case decorator_1[_0xae6498(0x115)]['FILESSTREAM']:case decorator_1[_0xae6498(0x115)]['FILESTREAM']:return _0xae6498(0x119);default:return _0xae6498(0x154);}}
|
|
1
|
+
'use strict';const a8_0x525475=a8_0x54a2;(function(_0x138e4,_0x547f66){const _0x785bbc=a8_0x54a2,_0x420a3a=_0x138e4();while(!![]){try{const _0x2e8cb0=-parseInt(_0x785bbc(0x13c))/0x1+parseInt(_0x785bbc(0x122))/0x2+parseInt(_0x785bbc(0x14a))/0x3+parseInt(_0x785bbc(0xfc))/0x4*(parseInt(_0x785bbc(0x142))/0x5)+-parseInt(_0x785bbc(0x138))/0x6*(-parseInt(_0x785bbc(0x110))/0x7)+parseInt(_0x785bbc(0x12a))/0x8+parseInt(_0x785bbc(0x107))/0x9*(-parseInt(_0x785bbc(0x139))/0xa);if(_0x2e8cb0===_0x547f66)break;else _0x420a3a['push'](_0x420a3a['shift']());}catch(_0x2b9bf8){_0x420a3a['push'](_0x420a3a['shift']());}}}(a8_0x1bd1,0xebb91));Object[a8_0x525475(0x12f)](exports,a8_0x525475(0x13e),{'value':!![]}),exports[a8_0x525475(0x126)]=void 0x0;const lodash_1=require(a8_0x525475(0x145)),validator_1=require(a8_0x525475(0x10a)),decorator_1=require(a8_0x525475(0x147)),decorator_2=require('@midwayjs/decorator'),decorator_3=require('@midwayjs/decorator'),action_1=require('../types/action');function getRoutes(_0x4f2a9b={'prefix':'/','module':![]}){const _0x242ec4=a8_0x525475;var _0x504660,_0x42204c;const _0x44170f=(0x0,decorator_3[_0x242ec4(0x12e)])(action_1['ACTION_KEY']),_0x4e692e={},_0x31501f=Array[_0x242ec4(0x11e)](_0x4f2a9b[_0x242ec4(0xff)]||[])?_0x4f2a9b[_0x242ec4(0xff)]||[]:[_0x4f2a9b[_0x242ec4(0xff)]];_0x5c2565:for(const _0x2dfc4a of _0x44170f){let _0x335e1c=(0x0,decorator_3['getClassMetadata'])(action_1[_0x242ec4(0x133)],_0x2dfc4a),_0x4531c0=(0x0,decorator_3[_0x242ec4(0xf7)])(action_1['ACTION_ROUTE_KEY'],_0x2dfc4a);if(_0x335e1c&&_0x4531c0){let _0x3a5d57=_0x335e1c['prefix'],_0x32229b={};if(_0x4f2a9b[_0x242ec4(0x148)]&&(0x0,lodash_1[_0x242ec4(0x136)])(_0x335e1c,_0x242ec4(0x148),![])!=_0x4f2a9b['module'])continue _0x5c2565;else{if(_0x4f2a9b['module']===![]&&!!(0x0,lodash_1['get'])(_0x335e1c,_0x242ec4(0x148),null))continue _0x5c2565;}if(_0x4f2a9b['prefix']&&!_0x3a5d57['startsWith'](_0x4f2a9b[_0x242ec4(0x117)]))continue _0x5c2565;_0x3a5d57!=='/'?(_0x32229b[_0x242ec4(0x140)]=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x100)])||(/^\//[_0x242ec4(0x13d)](_0x3a5d57)?_0x3a5d57['split']('/')[0x1]:_0x3a5d57),_0x32229b[_0x242ec4(0x124)]=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x124)])||_0x32229b['summary'],_0x32229b[_0x242ec4(0x127)]=[]):(_0x32229b[_0x242ec4(0x140)]=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x100)])||_0x242ec4(0x14e),_0x32229b['description']=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x124)])||'',_0x32229b[_0x242ec4(0x127)]=[]);_0x4f2a9b[_0x242ec4(0x120)]&&(_0x32229b[_0x242ec4(0x120)]=_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c['filepath']);(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0xf8)])&&(_0x32229b['prefix']=_0x335e1c['pprefix']);(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x148)])&&(_0x32229b[_0x242ec4(0x148)]=_0x335e1c['module']);let _0x508598=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x242ec4(0x143)],_0x2dfc4a)||{};if(typeof _0x4531c0[Symbol['iterator']]==='function')for(let _0x5de12a of _0x4531c0){let _0x38b2c9={};_0x38b2c9[_0x242ec4(0x121)]=_0x5de12a[_0x242ec4(0x128)],_0x38b2c9[_0x242ec4(0x13a)]=(_0x3a5d57+_0x5de12a[_0x242ec4(0xfe)])[_0x242ec4(0x118)](/\/{1,}/,'/'),_0x38b2c9['summary']=(_0x5de12a===null||_0x5de12a===void 0x0?void 0x0:_0x5de12a[_0x242ec4(0x131)])||_0x32229b[_0x242ec4(0x140)]||_0x242ec4(0x14e),_0x38b2c9[_0x242ec4(0x124)]=(_0x5de12a===null||_0x5de12a===void 0x0?void 0x0:_0x5de12a[_0x242ec4(0x124)])||'',_0x38b2c9[_0x242ec4(0x13f)]=[];if(!(0x0,lodash_1[_0x242ec4(0x129)])(_0x38b2c9[_0x242ec4(0x13a)],_0x242ec4(0x132))&&!(0x0,lodash_1[_0x242ec4(0x129)])(_0x38b2c9[_0x242ec4(0x13a)],_0x242ec4(0x11a))&&_0x31501f[_0x242ec4(0xfa)](_0x38b2c9[_0x242ec4(0x13a)])===-0x1){if(!(_0x4f2a9b===null||_0x4f2a9b===void 0x0?void 0x0:_0x4f2a9b[_0x242ec4(0x101)])){let _0x25e760=(0x0,decorator_3[_0x242ec4(0x13b)])(new _0x2dfc4a(),_0x5de12a[_0x242ec4(0x121)]);for(const _0x52b64b in _0x25e760){let _0x4c893f=(_0x504660=_0x508598[_0x5de12a[_0x242ec4(0x121)]])===null||_0x504660===void 0x0?void 0x0:_0x504660[_0x242ec4(0x150)](_0x1aa9fe=>_0x1aa9fe[_0x242ec4(0x146)]==_0x52b64b&&_0x1aa9fe['key']===decorator_2[_0x242ec4(0x141)]&&(_0x1aa9fe===null||_0x1aa9fe===void 0x0?void 0x0:_0x1aa9fe[_0x242ec4(0x105)]));if(_0x4c893f===null||_0x4c893f===void 0x0?void 0x0:_0x4c893f[_0x242ec4(0x105)]){let _0x4cbd8b=convertTypeToString(_0x4c893f[_0x242ec4(0x105)][_0x242ec4(0x106)]||0x0);if([_0x242ec4(0x10f),_0x242ec4(0x104)]['indexOf'](_0x4cbd8b)!=-0x1&&_0x4c893f[_0x242ec4(0x105)][_0x242ec4(0x11f)][_0x242ec4(0xfa)](':')==-0x1&&!_0x38b2c9[_0x242ec4(0x13f)]['find'](_0xa2097e=>_0xa2097e[_0x242ec4(0x144)]==_0x4c893f['metadata'][_0x242ec4(0x11f)]))_0x38b2c9[_0x242ec4(0x13f)][_0x242ec4(0x14b)]({'key':_0x4c893f[_0x242ec4(0x105)][_0x242ec4(0x11f)],'title':_0x4c893f['metadata'][_0x242ec4(0x11f)],'type':convertSchemaType(_0x25e760[_0x4c893f[_0x242ec4(0x146)]][_0x242ec4(0x123)]),'required':![],'default':'','desc':''});else{if(_0x4cbd8b==_0x242ec4(0x11d)){let _0x22d23d=((_0x42204c=_0x4c893f===null||_0x4c893f===void 0x0?void 0x0:_0x4c893f[_0x242ec4(0x105)])===null||_0x42204c===void 0x0?void 0x0:_0x42204c[_0x242ec4(0x11f)])||'file';_0x22d23d[_0x242ec4(0xfa)](':')==-0x1&&!_0x38b2c9[_0x242ec4(0x13f)][_0x242ec4(0x150)](_0x17173f=>_0x17173f[_0x242ec4(0x144)]==_0x22d23d&&_0x17173f[_0x242ec4(0x106)]=='file')&&_0x38b2c9['request']['push']({'key':_0x22d23d,'title':_0x242ec4(0x116)+_0x22d23d,'type':_0x242ec4(0x11d),'required':!![],'default':'','desc':''});}}}else{const _0x1c0d5e=(0x0,decorator_3[_0x242ec4(0x11b)])(validator_1[_0x242ec4(0x135)],_0x25e760[_0x52b64b]);_0x1c0d5e&&_0x38b2c9[_0x242ec4(0x13f)][_0x242ec4(0x14b)](...getJoiRequest(_0x1c0d5e));}}}_0x32229b[_0x242ec4(0x127)][_0x242ec4(0x14b)](_0x38b2c9);}}if(_0x32229b[_0x242ec4(0x127)][_0x242ec4(0x10d)]>0x0){let _0x5e6f7a=_0x4e692e[_0x3a5d57];_0x5e6f7a?(_0x5e6f7a[_0x242ec4(0x140)]!=_0x32229b[_0x242ec4(0x140)]&&(_0x5e6f7a[_0x242ec4(0x140)]=_0x5e6f7a['summary']+','+_0x32229b[_0x242ec4(0x140)]),_0x5e6f7a[_0x242ec4(0x124)]!=_0x32229b[_0x242ec4(0x124)]&&(_0x5e6f7a[_0x242ec4(0x124)]=_0x5e6f7a[_0x242ec4(0x124)]+','+_0x32229b[_0x242ec4(0x124)]),_0x5e6f7a[_0x242ec4(0x127)]=_0x5e6f7a['routes'][_0x242ec4(0xf6)](_0x32229b[_0x242ec4(0x127)]),_0x4e692e[_0x3a5d57]=_0x5e6f7a):_0x4e692e[_0x3a5d57]=_0x32229b;}}}return _0x4e692e;}exports[a8_0x525475(0x126)]=getRoutes;function a8_0x1bd1(){const _0x25602e=['PARAM','indexOf','FILESSTREAM','458364QQlyUH','Number','path','filter','tagName','noreq','boolean','flags.description','body','metadata','type','9hSQLiF','number','object','@anncic-api/validator','required','log','length','min','query','42tqUWyb','keys','-array','Object','title','allow','文件上传-','prefix','replace','rules','/static/apitest','getClassExtendedMetadata','flags.presence','file','isArray','propertyData','filepath','method','859368sxAhyT','name','description','limit','getRoutes','routes','requestMethod','startsWith','10792536EyGJYg','RouteParamTypes','max','routerOptions','listModule','defineProperty','header','routerName','static/apitest','ACTION_KEY','items','RULES_KEY','get','args','849474zjZPNf','43928070QIqLfa','route','getMethodParamTypes','534842CfcdRN','test','__esModule','request','summary','WEB_ROUTER_PARAM_KEY','60SjQpmK','INJECT_CUSTOM_PARAM','key','lodash','parameterIndex','@midwayjs/decorator','module','children','5669559QtGFBm','push','FIELDS','Boolean','default','FILESTREAM','find','只允许:[','QUERY','describe','File','flags.label','concat','getClassMetadata','pprefix'];a8_0x1bd1=function(){return _0x25602e;};return a8_0x1bd1();}function a8_0x54a2(_0x10b5d6,_0x4633e9){const _0x1bd1fa=a8_0x1bd1();return a8_0x54a2=function(_0x54a27a,_0x316f11){_0x54a27a=_0x54a27a-0xf1;let _0x2665ce=_0x1bd1fa[_0x54a27a];return _0x2665ce;},a8_0x54a2(_0x10b5d6,_0x4633e9);}function getJoiRequest(_0x1bd843){const _0x210f25=a8_0x525475,_0x471a42=[];for(let _0x4bf363 in _0x1bd843){const _0x2ddeef={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3a7a21=typeof _0x1bd843[_0x4bf363][_0x210f25(0xf3)]=='function'?_0x1bd843[_0x4bf363][_0x210f25(0xf3)]():_0x1bd843[_0x4bf363];_0x2ddeef[_0x210f25(0x144)]=_0x4bf363,_0x2ddeef[_0x210f25(0x106)]=_0x3a7a21[_0x210f25(0x106)],_0x2ddeef[_0x210f25(0x114)]=(0x0,lodash_1['get'])(_0x3a7a21,_0x210f25(0xf5),_0x4bf363),_0x2ddeef[_0x210f25(0x14e)]=(0x0,lodash_1[_0x210f25(0x136)])(_0x3a7a21,'flags.default',''),_0x2ddeef[_0x210f25(0x10b)]=(0x0,lodash_1[_0x210f25(0x136)])(_0x3a7a21,_0x210f25(0x11c),'')==_0x210f25(0x10b),_0x2ddeef['description']=(0x0,lodash_1[_0x210f25(0x136)])(_0x3a7a21,_0x210f25(0x103),'');if(_0x3a7a21['type']==_0x210f25(0x109))_0x2ddeef[_0x210f25(0x149)]=getJoiRequest(_0x3a7a21[_0x210f25(0x111)]);else _0x3a7a21[_0x210f25(0x106)]=='array'&&_0x3a7a21[_0x210f25(0x134)]&&Array[_0x210f25(0x11e)](_0x3a7a21[_0x210f25(0x134)])&&_0x3a7a21[_0x210f25(0x134)][0x0]&&console[_0x210f25(0x10c)](_0x4bf363+_0x210f25(0x112),_0x3a7a21);_0x3a7a21[_0x210f25(0x115)]&&Array[_0x210f25(0x11e)](_0x3a7a21[_0x210f25(0x115)])&&_0x3a7a21[_0x210f25(0x115)][_0x210f25(0x10d)]>0x0&&(_0x2ddeef['description']=_0x210f25(0xf1)+_0x3a7a21[_0x210f25(0x115)]['join'](',')+'];'+_0x2ddeef[_0x210f25(0x124)]);if(_0x2ddeef[_0x210f25(0x144)]&&_0x2ddeef[_0x210f25(0x106)]){const _0x23f44a={};for(const _0x2afa9d of _0x3a7a21[_0x210f25(0x119)]||[]){if(_0x2afa9d[_0x210f25(0x123)]==='min'&&_0x2afa9d[_0x210f25(0x137)])_0x23f44a[_0x210f25(0x10e)]=_0x2afa9d[_0x210f25(0x137)][_0x210f25(0x125)];else _0x2afa9d[_0x210f25(0x123)]===_0x210f25(0x12c)&&(_0x23f44a[_0x210f25(0x12c)]=_0x2afa9d[_0x210f25(0x137)][_0x210f25(0x125)]);}_0x2ddeef['rules']=_0x23f44a;}_0x2ddeef[_0x210f25(0x144)]&&_0x2ddeef['title']&&_0x471a42[_0x210f25(0x14b)](_0x2ddeef);}return _0x471a42;}function convertSchemaType(_0x2eb77e){const _0x1230c9=a8_0x525475;switch(_0x2eb77e){case _0x1230c9(0x113):return _0x1230c9(0x109);case _0x1230c9(0x14d):return _0x1230c9(0x102);case _0x1230c9(0xfd):return _0x1230c9(0x108);case'String':return'string';case _0x1230c9(0xf4):return _0x1230c9(0x11d);default:return'string';}}function convertTypeToString(_0x129c94){const _0x245000=a8_0x525475;switch(_0x129c94){case decorator_1[_0x245000(0x12b)]['HEADERS']:return'header';case decorator_1['RouteParamTypes'][_0x245000(0xf2)]:return _0x245000(0x10f);case decorator_1['RouteParamTypes'][_0x245000(0xf9)]:return _0x245000(0xfe);case decorator_1[_0x245000(0x12b)]['BODY']:return _0x245000(0x104);case decorator_1[_0x245000(0x12b)][_0x245000(0x14c)]:case decorator_1[_0x245000(0x12b)][_0x245000(0xfb)]:case decorator_1[_0x245000(0x12b)][_0x245000(0x14f)]:return _0x245000(0x11d);default:return _0x245000(0x130);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x181adb=a9_0x4c34;(function(_0xa4f604,_0x57bc01){var _0x5e42c2=a9_0x4c34,_0x2a7249=_0xa4f604();while(!![]){try{var _0x380de1=-parseInt(_0x5e42c2(0x94))/0x1+parseInt(_0x5e42c2(0x8d))/0x2+-parseInt(_0x5e42c2(0x9c))/0x3*(parseInt(_0x5e42c2(0x85))/0x4)+-parseInt(_0x5e42c2(0x9b))/0x5+parseInt(_0x5e42c2(0x87))/0x6*(-parseInt(_0x5e42c2(0x93))/0x7)+-parseInt(_0x5e42c2(0x75))/0x8+parseInt(_0x5e42c2(0x6a))/0x9*(parseInt(_0x5e42c2(0x92))/0xa);if(_0x380de1===_0x57bc01)break;else _0x2a7249['push'](_0x2a7249['shift']());}catch(_0x35fb81){_0x2a7249['push'](_0x2a7249['shift']());}}}(a9_0x4e6a,0x1e74f));var __createBinding=this&&this[a9_0x181adb(0x95)]||(Object['create']?function(_0x57dd54,_0x4d2e6e,_0x2c9942,_0x3e01bd){var _0x117647=a9_0x181adb;if(_0x3e01bd===undefined)_0x3e01bd=_0x2c9942;var _0x55c9b5=Object[_0x117647(0x97)](_0x4d2e6e,_0x2c9942);(!_0x55c9b5||('get'in _0x55c9b5?!_0x4d2e6e['__esModule']:_0x55c9b5[_0x117647(0x8a)]||_0x55c9b5[_0x117647(0x7e)]))&&(_0x55c9b5={'enumerable':!![],'get':function(){return _0x4d2e6e[_0x2c9942];}}),Object[_0x117647(0x82)](_0x57dd54,_0x3e01bd,_0x55c9b5);}:function(_0x15a465,_0x1add07,_0x4658a3,_0x59067e){if(_0x59067e===undefined)_0x59067e=_0x4658a3;_0x15a465[_0x59067e]=_0x1add07[_0x4658a3];}),__exportStar=this&&this[a9_0x181adb(0x86)]||function(_0x30a262,_0x21ae42){var _0x439ade=a9_0x181adb;for(var _0x9cabf0 in _0x30a262)if(_0x9cabf0!==_0x439ade(0xa2)&&!Object[_0x439ade(0x81)]['hasOwnProperty'][_0x439ade(0x80)](_0x21ae42,_0x9cabf0))__createBinding(_0x21ae42,_0x30a262,_0x9cabf0);};Object[a9_0x181adb(0x82)](exports,'__esModule',{'value':!![]}),exports[a9_0x181adb(0x98)]=exports[a9_0x181adb(0x90)]=exports[a9_0x181adb(0x9d)]=exports[a9_0x181adb(0x78)]=exports[a9_0x181adb(0xa3)]=exports[a9_0x181adb(0x7c)]=exports[a9_0x181adb(0x70)]=exports[a9_0x181adb(0x6d)]=exports[a9_0x181adb(0x9f)]=exports[a9_0x181adb(0x8b)]=exports[a9_0x181adb(0x88)]=exports[a9_0x181adb(0x99)]=exports['Body']=exports[a9_0x181adb(0x76)]=exports[a9_0x181adb(0xa4)]=exports[a9_0x181adb(0x68)]=exports[a9_0x181adb(0x96)]=exports[a9_0x181adb(0x6b)]=exports[a9_0x181adb(0x6e)]=exports[a9_0x181adb(0xa5)]=exports[a9_0x181adb(0x72)]=exports[a9_0x181adb(0x8e)]=exports[a9_0x181adb(0x9e)]=exports[a9_0x181adb(0x7a)]=exports[a9_0x181adb(0x79)]=exports['getRoutes']=exports[a9_0x181adb(0x69)]=exports[a9_0x181adb(0x7b)]=exports[a9_0x181adb(0x7d)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x98),{'enumerable':!![],'get':function(){var _0x276992=a9_0x181adb;return getAppsConfig_1[_0x276992(0x98)];}}),__exportStar(require(a9_0x181adb(0x74)),exports),__exportStar(require(a9_0x181adb(0x73)),exports);var ActionApi_1=require(a9_0x181adb(0x91));Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x7d),{'enumerable':!![],'get':function(){var _0x47c081=a9_0x181adb;return ActionApi_1[_0x47c081(0x7d)];}});var Action_1=require('./decorator/Action');function a9_0x4e6a(){var _0x35263e=['3342yaTISF','Query','Body','writable','Headers','@anncic-api/event','380362JYqfqt','EventService','@midwayjs/decorator','ScopeEnum','./decorator/ActionApi','140ZmsOPV','1323MapuHK','154875WXgwKq','__createBinding','Configuration','getOwnPropertyDescriptor','getAppsConfig','Param','./service/ExcelService','951815JjwBCo','25206mtUVpQ','Scope','CacheService','Init','@anncic-api/validator','./exception/ApiError','default','Provide','Files','ExcelService','File','Apitest','420813dFVOMG','ValidatorService','getRoutes','App','ValidatorError','@anncic-api/cache','Config','./decorator/ActionApitest','ApiService','./service/ApitestService','./types/common','677384kZmvSO','Fields','CustomConfiguration','Inject','ApiError','QueueService','Action','Logger','Api','configurable','./helper/getRoutes','call','prototype','defineProperty','@midwayjs/task','./configuration','88TwmbgN','__exportStar'];a9_0x4e6a=function(){return _0x35263e;};return a9_0x4e6a();}Object[a9_0x181adb(0x82)](exports,'Action',{'enumerable':!![],'get':function(){var _0x42f7a7=a9_0x181adb;return Action_1[_0x42f7a7(0x7b)];}});var ActionApitest_1=require(a9_0x181adb(0x71));Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x69),{'enumerable':!![],'get':function(){var _0x67e299=a9_0x181adb;return ActionApitest_1[_0x67e299(0x69)];}});var getRoutes_1=require(a9_0x181adb(0x7f));Object['defineProperty'](exports,a9_0x181adb(0x6c),{'enumerable':!![],'get':function(){var _0x4ca1a4=a9_0x181adb;return getRoutes_1[_0x4ca1a4(0x6c)];}});var ApiError_1=require(a9_0x181adb(0xa1));Object[a9_0x181adb(0x82)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x554973=a9_0x181adb;return ApiError_1[_0x554973(0x79)];}});var task_1=require(a9_0x181adb(0x83));Object[a9_0x181adb(0x82)](exports,'QueueService',{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a9_0x181adb(0x6f));Object[a9_0x181adb(0x82)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x4c9a65=a9_0x181adb;return cache_1[_0x4c9a65(0x9e)];}});var event_1=require(a9_0x181adb(0x8c));function a9_0x4c34(_0x3891e3,_0x156184){var _0x4e6a5e=a9_0x4e6a();return a9_0x4c34=function(_0x4c341f,_0x331a99){_0x4c341f=_0x4c341f-0x68;var _0x2f2d21=_0x4e6a5e[_0x4c341f];return _0x2f2d21;},a9_0x4c34(_0x3891e3,_0x156184);}Object[a9_0x181adb(0x82)](exports,'EventService',{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x1449de=a9_0x181adb;return ApiService_1[_0x1449de(0x72)];}});var ExcelService_1=require(a9_0x181adb(0x9a));Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0xa5),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x181adb(0xa0));Object['defineProperty'](exports,a9_0x181adb(0x6e),{'enumerable':!![],'get':function(){var _0x4a2e8a=a9_0x181adb;return validator_1[_0x4a2e8a(0x6e)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x6b),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x181adb(0x84));Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x96),{'enumerable':!![],'get':function(){var _0x43efbd=a9_0x181adb;return configuration_1[_0x43efbd(0x77)];}});var decorator_1=require(a9_0x181adb(0x8f));Object['defineProperty'](exports,a9_0x181adb(0x68),{'enumerable':!![],'get':function(){var _0x5c6c1b=a9_0x181adb;return decorator_1[_0x5c6c1b(0x68)];}}),Object[a9_0x181adb(0x82)](exports,'Files',{'enumerable':!![],'get':function(){var _0x5099ba=a9_0x181adb;return decorator_1[_0x5099ba(0xa4)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x76),{'enumerable':!![],'get':function(){var _0x5d5dd9=a9_0x181adb;return decorator_1[_0x5d5dd9(0x76)];}}),Object['defineProperty'](exports,a9_0x181adb(0x89),{'enumerable':!![],'get':function(){var _0x31f7dd=a9_0x181adb;return decorator_1[_0x31f7dd(0x89)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x99),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object['defineProperty'](exports,a9_0x181adb(0x88),{'enumerable':!![],'get':function(){var _0xd6be76=a9_0x181adb;return decorator_1[_0xd6be76(0x88)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x8b),{'enumerable':!![],'get':function(){var _0xa49a97=a9_0x181adb;return decorator_1[_0xa49a97(0x8b)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x9f),{'enumerable':!![],'get':function(){return decorator_1['Init'];}});var decorator_2=require(a9_0x181adb(0x8f));Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x6d),{'enumerable':!![],'get':function(){var _0x288ce9=a9_0x181adb;return decorator_2[_0x288ce9(0x6d)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x70),{'enumerable':!![],'get':function(){var _0x5d37bf=a9_0x181adb;return decorator_2[_0x5d37bf(0x70)];}}),Object[a9_0x181adb(0x82)](exports,'Logger',{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0xa3),{'enumerable':!![],'get':function(){var _0x813822=a9_0x181adb;return decorator_2[_0x813822(0xa3)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x78),{'enumerable':!![],'get':function(){var _0xa47eec=a9_0x181adb;return decorator_2[_0xa47eec(0x78)];}}),Object['defineProperty'](exports,a9_0x181adb(0x9d),{'enumerable':!![],'get':function(){var _0x106c14=a9_0x181adb;return decorator_2[_0x106c14(0x9d)];}}),Object[a9_0x181adb(0x82)](exports,a9_0x181adb(0x90),{'enumerable':!![],'get':function(){var _0x38b0b3=a9_0x181adb;return decorator_2[_0x38b0b3(0x90)];}}),global[a9_0x181adb(0x98)]=getAppsConfig_1[a9_0x181adb(0x98)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a10_0x1754(_0x5bb9bc,_0x67c3f1){var _0x24ce7d=a10_0x24ce();return a10_0x1754=function(_0x17541a,_0x3c359f){_0x17541a=_0x17541a-0x132;var _0xdb71c3=_0x24ce7d[_0x17541a];return _0xdb71c3;},a10_0x1754(_0x5bb9bc,_0x67c3f1);}var a10_0x23ffb9=a10_0x1754;(function(_0x5a5d92,_0x1953a1){var _0x1ff21c=a10_0x1754,_0x2fa0ad=_0x5a5d92();while(!![]){try{var _0x50efef=-parseInt(_0x1ff21c(0x15f))/0x1+-parseInt(_0x1ff21c(0x165))/0x2+parseInt(_0x1ff21c(0x162))/0x3*(parseInt(_0x1ff21c(0x15c))/0x4)+-parseInt(_0x1ff21c(0x138))/0x5+parseInt(_0x1ff21c(0x147))/0x6*(-parseInt(_0x1ff21c(0x133))/0x7)+-parseInt(_0x1ff21c(0x14b))/0x8+parseInt(_0x1ff21c(0x14f))/0x9;if(_0x50efef===_0x1953a1)break;else _0x2fa0ad['push'](_0x2fa0ad['shift']());}catch(_0x1aa903){_0x2fa0ad['push'](_0x2fa0ad['shift']());}}}(a10_0x24ce,0x8323d));function a10_0x24ce(){var _0xb52b78=['toLowerCase','TIMEOUT','__metadata','getOwnPropertyDescriptor','secret','Config','1403752psVtVq','getcheck','Scope','push','design:type','2720735bVcaVe','undefined','Singleton','HEADERS_DEVICE','缺少头信息:signature','decorate','now','secret=','HEADERS_LACK','token','fromEntries','checkcode','defineProperty','ApiError','entries','6sfqVzt','getsign','metadata','__decorate','5630808skqRUF','map','../exception/ApiError','timeout','19720971TFqFxS','object','devices','password','logintime','ApiService','config','sort','Provide','ScopeEnum','function','join','__esModule','4wUOYZK','requesttime','MD5','120983OVOSuP','length','@midwayjs/decorator','1699344tRLVyy','checksign','toString','1302002UhkQMV','device','crypto-js'];a10_0x24ce=function(){return _0xb52b78;};return a10_0x24ce();}var __decorate=this&&this[a10_0x23ffb9(0x14a)]||function(_0x2c4796,_0x3b3f6f,_0x175cb3,_0x36ee20){var _0x5cacda=a10_0x23ffb9,_0x308d47=arguments[_0x5cacda(0x160)],_0x3b36bb=_0x308d47<0x3?_0x3b3f6f:_0x36ee20===null?_0x36ee20=Object[_0x5cacda(0x16b)](_0x3b3f6f,_0x175cb3):_0x36ee20,_0x306b16;if(typeof Reflect===_0x5cacda(0x150)&&typeof Reflect[_0x5cacda(0x13d)]===_0x5cacda(0x159))_0x3b36bb=Reflect[_0x5cacda(0x13d)](_0x2c4796,_0x3b3f6f,_0x175cb3,_0x36ee20);else{for(var _0x27740f=_0x2c4796[_0x5cacda(0x160)]-0x1;_0x27740f>=0x0;_0x27740f--)if(_0x306b16=_0x2c4796[_0x27740f])_0x3b36bb=(_0x308d47<0x3?_0x306b16(_0x3b36bb):_0x308d47>0x3?_0x306b16(_0x3b3f6f,_0x175cb3,_0x3b36bb):_0x306b16(_0x3b3f6f,_0x175cb3))||_0x3b36bb;}return _0x308d47>0x3&&_0x3b36bb&&Object[_0x5cacda(0x144)](_0x3b3f6f,_0x175cb3,_0x3b36bb),_0x3b36bb;},__metadata=this&&this[a10_0x23ffb9(0x16a)]||function(_0x38731f,_0x12d917){var _0x11b65b=a10_0x23ffb9;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x11b65b(0x159))return Reflect[_0x11b65b(0x149)](_0x38731f,_0x12d917);};Object['defineProperty'](exports,a10_0x23ffb9(0x15b),{'value':!![]}),exports[a10_0x23ffb9(0x154)]=void 0x0;const crypto_js_1=require(a10_0x23ffb9(0x167)),decorator_1=require(a10_0x23ffb9(0x161)),ApiError_1=require(a10_0x23ffb9(0x14d));let ApiService=class ApiService{[a10_0x23ffb9(0x152)](_0x97a788){var _0x399f5d=a10_0x23ffb9,_0x4c8bf0;return _0x97a788?(0x0,crypto_js_1['MD5'])(_0x97a788+(0x0,crypto_js_1[_0x399f5d(0x15e)])((0x0,crypto_js_1[_0x399f5d(0x15e)])(_0x97a788)[_0x399f5d(0x164)]()+((_0x4c8bf0=this['config'])===null||_0x4c8bf0===void 0x0?void 0x0:_0x4c8bf0[_0x399f5d(0x152)]))['toString']())['toString']():'';}[a10_0x23ffb9(0x134)](_0x37e36a,_0x326112,_0x816bd7=Date[a10_0x23ffb9(0x13e)]()){return{'Token':_0x37e36a,'Logintime':_0x816bd7,'Checkcode':this['checkcode'](_0x37e36a,_0x326112,_0x816bd7)};}[a10_0x23ffb9(0x148)](_0x4e59d6={}){var _0x393554=a10_0x23ffb9;const _0x187d05=[],_0xf30fa3=Object[_0x393554(0x142)](Object[_0x393554(0x146)](_0x4e59d6)[_0x393554(0x14c)](_0x33eaa3=>[_0x33eaa3[0x0]['toLowerCase'](),_0x33eaa3[0x1]]));for(let _0x4845af of[_0x393554(0x166),_0x393554(0x15d),_0x393554(0x141),'logintime',_0x393554(0x143)]){if(typeof _0xf30fa3[_0x4845af]==_0x393554(0x139))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':'缺少头信息:'+_0x4845af});_0x187d05[_0x393554(0x136)](_0x4845af+'='+_0xf30fa3[_0x4845af]);}if(Math['abs'](_0xf30fa3[_0x393554(0x15d)])-Date['now']()>this[_0x393554(0x155)][_0x393554(0x14e)])throw new AnnError(ApiError_1['ApiError'][_0x393554(0x169)]);if(!this[_0x393554(0x155)][_0x393554(0x151)][_0xf30fa3[_0x393554(0x166)]]||!this[_0x393554(0x155)]['devices'][_0xf30fa3[_0x393554(0x166)]][_0x393554(0x16c)]||!this['config']['devices'][_0xf30fa3['device']]['checkcode'])throw new AnnError(ApiError_1[_0x393554(0x145)]['HEADERS_DEVICE']);if(_0xf30fa3[_0x393554(0x141)]&&_0xf30fa3[_0x393554(0x143)]!=this[_0x393554(0x143)](_0xf30fa3[_0x393554(0x141)],_0xf30fa3[_0x393554(0x166)],_0xf30fa3[_0x393554(0x153)]))throw new AnnError(ApiError_1[_0x393554(0x145)]['HEADERS_CHECKCODE']);return _0x187d05[_0x393554(0x136)](_0x393554(0x13f)+this[_0x393554(0x155)][_0x393554(0x151)][_0xf30fa3[_0x393554(0x166)]][_0x393554(0x16c)]),(0x0,crypto_js_1[_0x393554(0x15e)])(_0x187d05[_0x393554(0x156)]()[_0x393554(0x15a)](''))[_0x393554(0x164)]();}[a10_0x23ffb9(0x143)](_0xba096c,_0x1a06c8,_0x4d3da9=Date[a10_0x23ffb9(0x13e)]()){var _0x349ca6=a10_0x23ffb9,_0x24b0b0,_0x435972,_0x4b0b46;if(!((_0x24b0b0=this[_0x349ca6(0x155)])===null||_0x24b0b0===void 0x0?void 0x0:_0x24b0b0['devices'][_0x1a06c8])||!((_0x4b0b46=(_0x435972=this[_0x349ca6(0x155)])===null||_0x435972===void 0x0?void 0x0:_0x435972['devices'][_0x1a06c8])===null||_0x4b0b46===void 0x0?void 0x0:_0x4b0b46['checkcode']))throw new AnnError(ApiError_1[_0x349ca6(0x145)][_0x349ca6(0x13b)]);return(0x0,crypto_js_1[_0x349ca6(0x15e)])(_0xba096c+(0x0,crypto_js_1['MD5'])(_0x4d3da9+this['config']['devices'][_0x1a06c8]['checkcode'])[_0x349ca6(0x164)]())['toString']();}[a10_0x23ffb9(0x163)](_0x27c935={}){var _0x2bc8d8=a10_0x23ffb9;const _0x17fc2d=Object['fromEntries'](Object['entries'](_0x27c935)[_0x2bc8d8(0x14c)](_0x5f3219=>[_0x5f3219[0x0][_0x2bc8d8(0x168)](),_0x5f3219[0x1]]));if(!(_0x17fc2d===null||_0x17fc2d===void 0x0?void 0x0:_0x17fc2d['signature']))throw new AnnError(ApiError_1[_0x2bc8d8(0x145)][_0x2bc8d8(0x140)],{'message':_0x2bc8d8(0x13c)});if((_0x17fc2d===null||_0x17fc2d===void 0x0?void 0x0:_0x17fc2d['signature'])!=this[_0x2bc8d8(0x148)](_0x17fc2d))throw new AnnError(ApiError_1[_0x2bc8d8(0x145)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x23ffb9(0x132)])('anncicapi'),__metadata(a10_0x23ffb9(0x137),Object)],ApiService['prototype'],a10_0x23ffb9(0x155),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x23ffb9(0x157)])(),(0x0,decorator_1[a10_0x23ffb9(0x135)])(decorator_1[a10_0x23ffb9(0x158)][a10_0x23ffb9(0x13a)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x259df3=a11_0x3114;(function(_0x1d88b,_0x4b26ee){const _0xe31ac0=a11_0x3114,_0x396433=_0x1d88b();while(!![]){try{const _0x5c69d6=parseInt(_0xe31ac0(0x200))/0x1*(parseInt(_0xe31ac0(0x21e))/0x2)+-parseInt(_0xe31ac0(0x1f7))/0x3+-parseInt(_0xe31ac0(0x1f9))/0x4+parseInt(_0xe31ac0(0x236))/0x5+-parseInt(_0xe31ac0(0x223))/0x6+-parseInt(_0xe31ac0(0x1fc))/0x7*(parseInt(_0xe31ac0(0x21c))/0x8)+parseInt(_0xe31ac0(0x227))/0x9*(parseInt(_0xe31ac0(0x215))/0xa);if(_0x5c69d6===_0x4b26ee)break;else _0x396433['push'](_0x396433['shift']());}catch(_0x4e2678){_0x396433['push'](_0x396433['shift']());}}}(a11_0x4d64,0x77d7c));var __decorate=this&&this[a11_0x259df3(0x235)]||function(_0x4fb3cd,_0x343161,_0x114e50,_0x3061ea){const _0x1ac921=a11_0x259df3;var _0x5a7de4=arguments['length'],_0x4acd74=_0x5a7de4<0x3?_0x343161:_0x3061ea===null?_0x3061ea=Object['getOwnPropertyDescriptor'](_0x343161,_0x114e50):_0x3061ea,_0x15a15f;if(typeof Reflect===_0x1ac921(0x1fd)&&typeof Reflect[_0x1ac921(0x1f6)]===_0x1ac921(0x22a))_0x4acd74=Reflect['decorate'](_0x4fb3cd,_0x343161,_0x114e50,_0x3061ea);else{for(var _0x4cf2b7=_0x4fb3cd['length']-0x1;_0x4cf2b7>=0x0;_0x4cf2b7--)if(_0x15a15f=_0x4fb3cd[_0x4cf2b7])_0x4acd74=(_0x5a7de4<0x3?_0x15a15f(_0x4acd74):_0x5a7de4>0x3?_0x15a15f(_0x343161,_0x114e50,_0x4acd74):_0x15a15f(_0x343161,_0x114e50))||_0x4acd74;}return _0x5a7de4>0x3&&_0x4acd74&&Object[_0x1ac921(0x205)](_0x343161,_0x114e50,_0x4acd74),_0x4acd74;},__metadata=this&&this[a11_0x259df3(0x21d)]||function(_0x5e004e,_0x4affbb){const _0x2bae54=a11_0x259df3;if(typeof Reflect===_0x2bae54(0x1fd)&&typeof Reflect['metadata']===_0x2bae54(0x22a))return Reflect[_0x2bae54(0x20c)](_0x5e004e,_0x4affbb);},__param=this&&this[a11_0x259df3(0x207)]||function(_0x4928e8,_0x3e19a1){return function(_0x1edf73,_0x303ce5){_0x3e19a1(_0x1edf73,_0x303ce5,_0x4928e8);};};Object[a11_0x259df3(0x205)](exports,'__esModule',{'value':!![]}),exports[a11_0x259df3(0x1f5)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x259df3(0x23a)),fs_1=require('fs'),core_1=require(a11_0x259df3(0x228)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a11_0x259df3(0x21f)),getRoutes_1=require(a11_0x259df3(0x1f3));let ApitestService=class ApitestService{async[a11_0x259df3(0x230)](_0x3b6552){const _0x417873=a11_0x259df3,_0xc01971=(0x0,getRoutes_1['getRoutes'])(_0x3b6552),_0x39dbba=[];for(let _0x174bac in _0xc01971){for(let _0x30a6c0 in _0xc01971[_0x174bac][_0x417873(0x204)]){let _0x5051b7=_0xc01971[_0x174bac]['routes'][_0x30a6c0],_0x515d6e=[];for(let _0x394785 in _0x5051b7[_0x417873(0x203)]){_0x515d6e['push'](_0x5051b7[_0x417873(0x203)][_0x394785]);}_0x39dbba[_0x417873(0x202)]({'title':_0xc01971[_0x174bac]['summary']+':'+_0x5051b7['summary'],'prefix':_0xc01971[_0x174bac][_0x417873(0x212)],'router':_0x5051b7[_0x417873(0x1fb)],'method':_0x5051b7[_0x417873(0x1f8)],'describe':_0x5051b7[_0x417873(0x234)]||'','filepath':_0xc01971[_0x174bac][_0x417873(0x22b)]||'','request':_0x515d6e});}}const _0x374910=(0x0,path_1['join'])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x417873(0x210)])(_0x374910,{'encoding':_0x417873(0x22c)})['replace'](/__res__/g,_0x417873(0x209))[_0x417873(0x226)](_0x417873(0x23f),JSON[_0x417873(0x218)](_0x39dbba))['replace']('__devices__',JSON[_0x417873(0x218)](this[_0x417873(0x238)][_0x417873(0x22d)]));}};__decorate([(0x0,decorator_2[a11_0x259df3(0x213)])(a11_0x259df3(0x23e)),__metadata(a11_0x259df3(0x222),Object)],ApitestService[a11_0x259df3(0x214)],a11_0x259df3(0x238),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])(a11_0x259df3(0x1f4)),(0x0,decorator_2[a11_0x259df3(0x208)])(decorator_2[a11_0x259df3(0x219)][a11_0x259df3(0x21b)])],ApitestService),exports[a11_0x259df3(0x21a)]=ApitestService;function a11_0x3114(_0x361041,_0x31b5c4){const _0x4d640d=a11_0x4d64();return a11_0x3114=function(_0x31149c,_0x4d52a4){_0x31149c=_0x31149c-0x1f3;let _0x5902d5=_0x4d640d[_0x31149c];return _0x5902d5;},a11_0x3114(_0x361041,_0x31b5c4);}let ApitestStaticController=class ApitestStaticController{async[a11_0x259df3(0x233)](){const _0x3b1811=a11_0x259df3;if(this['apitest']){const _0x269964={'module':![]};return this[_0x3b1811(0x20e)][_0x3b1811(0x232)]()&&(_0x269964[_0x3b1811(0x22b)]=!![]),await this['ApitestService'][_0x3b1811(0x230)](_0x269964);}return'';}async[a11_0x259df3(0x239)](_0xe796cb){const _0x520115=a11_0x259df3;if(this[_0x520115(0x1f4)]){const _0x370322={'module':_0xe796cb};return this[_0x520115(0x20e)][_0x520115(0x232)]()&&(_0x370322[_0x520115(0x22b)]=!![]),await this[_0x520115(0x21a)][_0x520115(0x230)](_0x370322);}return'';}async['apiteststatic'](){const _0x20170b=a11_0x259df3;if((0x0,path_1[_0x20170b(0x23c)])(this[_0x20170b(0x237)][_0x20170b(0x203)][_0x20170b(0x20d)])){var _0xed8a97=(0x0,path_1[_0x20170b(0x221)])(__dirname,_0x20170b(0x23d)+this[_0x20170b(0x237)][_0x20170b(0x203)][_0x20170b(0x20d)][_0x20170b(0x226)](_0x20170b(0x209),'/'));if(_0xed8a97[_0x20170b(0x1fa)](_0xed8a97['length']-0xb)!=_0x20170b(0x231)){this[_0x20170b(0x237)]['set'](_0x20170b(0x20b),_0x20170b(0x201));if((0x0,path_1['extname'])(this[_0x20170b(0x237)]['request'][_0x20170b(0x20d)])=='.js')this[_0x20170b(0x237)][_0x20170b(0x211)](_0x20170b(0x1fe),_0x20170b(0x240));else(0x0,path_1[_0x20170b(0x23c)])(this[_0x20170b(0x237)]['request'][_0x20170b(0x20d)])==_0x20170b(0x1ff)&&this[_0x20170b(0x237)]['set'](_0x20170b(0x1fe),_0x20170b(0x225));return(0x0,fs_1[_0x20170b(0x241)])(_0xed8a97)&&(0x0,fs_1['readFileSync'])(_0xed8a97,{'encoding':_0x20170b(0x22c)});}}return'';}};function a11_0x4d64(){const _0x26a134=['__metadata','2lhvLOC','@midwayjs/decorator','Get','join','design:type','1592418LoMgTE','/apitest-:module','text/css;\x20charset=utf-8','replace','55647avgFrx','@midwayjs/core','Inject','function','filepath','utf-8','devices','module','MidwayEnvironmentService','apidoc','/index.html','isDevelopmentEnvironment','apitesthtml','description','__decorate','4414545yNwLrH','ctx','config','apitestmodule','path','design:returntype','extname','../../public/','anncicapi','__apiList__','application/javascript;\x20charset=utf-8','existsSync','Controller','../helper/getRoutes','apitest','ApitestStaticController','decorate','583929clCXwk','method','3910860ZmsgmT','substring','route','4571aOzbpV','object','content-type','.css','754568jGBxba','public,\x20max-age=604800','push','request','routes','defineProperty','/apitest','__param','Scope','/apiteststatic/','design:paramtypes','cache-control','metadata','url','Environment','Request','readFileSync','set','prefix','Config','prototype','1790jITKTo','Param','/apiteststatic/*','stringify','ScopeEnum','ApitestService','Singleton','9992dkfzCF'];a11_0x4d64=function(){return _0x26a134;};return a11_0x4d64();}__decorate([(0x0,decorator_2[a11_0x259df3(0x229)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x259df3(0x214)],a11_0x259df3(0x237),void 0x0),__decorate([(0x0,decorator_2[a11_0x259df3(0x229)])(),__metadata('design:type',core_1[a11_0x259df3(0x22f)])],ApitestStaticController[a11_0x259df3(0x214)],a11_0x259df3(0x20e),void 0x0),__decorate([(0x0,decorator_2[a11_0x259df3(0x229)])(),__metadata(a11_0x259df3(0x222),ApitestService)],ApitestStaticController[a11_0x259df3(0x214)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2['Config'])('apitest'),__metadata(a11_0x259df3(0x222),Boolean)],ApitestStaticController[a11_0x259df3(0x214)],a11_0x259df3(0x1f4),void 0x0),__decorate([(0x0,decorator_2[a11_0x259df3(0x213)])(a11_0x259df3(0x23e)),__metadata(a11_0x259df3(0x222),Object)],ApitestStaticController[a11_0x259df3(0x214)],'config',void 0x0),__decorate([(0x0,decorator_1[a11_0x259df3(0x220)])(a11_0x259df3(0x206)),__metadata(a11_0x259df3(0x222),Function),__metadata(a11_0x259df3(0x20a),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x259df3(0x214)],'apitesthtml',null),__decorate([(0x0,decorator_1[a11_0x259df3(0x220)])(a11_0x259df3(0x224)),__param(0x0,(0x0,decorator_1[a11_0x259df3(0x216)])(a11_0x259df3(0x22e))),__metadata(a11_0x259df3(0x222),Function),__metadata(a11_0x259df3(0x20a),[String]),__metadata(a11_0x259df3(0x23b),Promise)],ApitestStaticController[a11_0x259df3(0x214)],a11_0x259df3(0x239),null),__decorate([(0x0,decorator_1[a11_0x259df3(0x220)])(a11_0x259df3(0x217)),__metadata(a11_0x259df3(0x222),Function),__metadata(a11_0x259df3(0x20a),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x259df3(0x214)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x259df3(0x242)])('/'),(0x0,decorator_2[a11_0x259df3(0x208)])(decorator_2[a11_0x259df3(0x219)][a11_0x259df3(0x20f)])],ApitestStaticController),exports[a11_0x259df3(0x1f5)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0xf48883=a12_0x3fe9;function a12_0x3fe9(_0xaa2549,_0x191a39){const _0x3cf4db=a12_0x3cf4();return a12_0x3fe9=function(_0x3fe937,_0x7c0c4f){_0x3fe937=_0x3fe937-0x1a8;let _0x24e97a=_0x3cf4db[_0x3fe937];return _0x24e97a;},a12_0x3fe9(_0xaa2549,_0x191a39);}(function(_0x2671bd,_0xc8bb29){const _0x3bc176=a12_0x3fe9,_0xa7e2bf=_0x2671bd();while(!![]){try{const _0x1ff9b3=-parseInt(_0x3bc176(0x1d4))/0x1+parseInt(_0x3bc176(0x1af))/0x2*(-parseInt(_0x3bc176(0x1e3))/0x3)+parseInt(_0x3bc176(0x1e4))/0x4+-parseInt(_0x3bc176(0x1c1))/0x5*(-parseInt(_0x3bc176(0x1c4))/0x6)+parseInt(_0x3bc176(0x1ab))/0x7*(-parseInt(_0x3bc176(0x1e7))/0x8)+-parseInt(_0x3bc176(0x1b8))/0x9*(-parseInt(_0x3bc176(0x1b3))/0xa)+parseInt(_0x3bc176(0x1db))/0xb;if(_0x1ff9b3===_0xc8bb29)break;else _0xa7e2bf['push'](_0xa7e2bf['shift']());}catch(_0x16531f){_0xa7e2bf['push'](_0xa7e2bf['shift']());}}}(a12_0x3cf4,0xaa21c));function a12_0x3cf4(){const _0x3e3509=['substring','rowCount','Sheet\x201','__metadata','readFile','22052063CNEMZS','Singleton','push','startsWith','addRow','/public/xlsx','defineProperty','decorate','1935114qJdhHB','208604sbkQql','getAppDir','function','6038536NfEYFZ','header','isNumber','__decorate','col','7ToPCNt','Provide','__esModule','getCell','2qWihmW','endsWith','Scope','object','60spOyiT','download','log','Api\x20Excel\x20Error:\x20','design:type','495927ePuket','getOwnPropertyDescriptor','ExcelService','getWorksheet','addWorksheet','existsSync','public/xlsx','ScopeEnum','toString','143215Jmtcny','exceljs','App','24jBYYAp','replace','mkdirSync','get','.xlsx','findRows','random','worksheets','app','columns','prototype','metadata','value','key','handler','length','405359TcriCz','keys'];a12_0x3cf4=function(){return _0x3e3509;};return a12_0x3cf4();}var __decorate=this&&this[a12_0xf48883(0x1a9)]||function(_0x1a4508,_0x25685b,_0x40da7d,_0x13c8c8){const _0x32ca8b=a12_0xf48883;var _0xa6275b=arguments[_0x32ca8b(0x1d3)],_0x26ce8f=_0xa6275b<0x3?_0x25685b:_0x13c8c8===null?_0x13c8c8=Object[_0x32ca8b(0x1b9)](_0x25685b,_0x40da7d):_0x13c8c8,_0x1ec718;if(typeof Reflect===_0x32ca8b(0x1b2)&&typeof Reflect['decorate']==='function')_0x26ce8f=Reflect[_0x32ca8b(0x1e2)](_0x1a4508,_0x25685b,_0x40da7d,_0x13c8c8);else{for(var _0x4c73da=_0x1a4508[_0x32ca8b(0x1d3)]-0x1;_0x4c73da>=0x0;_0x4c73da--)if(_0x1ec718=_0x1a4508[_0x4c73da])_0x26ce8f=(_0xa6275b<0x3?_0x1ec718(_0x26ce8f):_0xa6275b>0x3?_0x1ec718(_0x25685b,_0x40da7d,_0x26ce8f):_0x1ec718(_0x25685b,_0x40da7d))||_0x26ce8f;}return _0xa6275b>0x3&&_0x26ce8f&&Object[_0x32ca8b(0x1e1)](_0x25685b,_0x40da7d,_0x26ce8f),_0x26ce8f;},__metadata=this&&this[a12_0xf48883(0x1d9)]||function(_0x1137ea,_0x232579){const _0x13c2dd=a12_0xf48883;if(typeof Reflect===_0x13c2dd(0x1b2)&&typeof Reflect[_0x13c2dd(0x1cf)]===_0x13c2dd(0x1e6))return Reflect[_0x13c2dd(0x1cf)](_0x1137ea,_0x232579);};Object['defineProperty'](exports,a12_0xf48883(0x1ad),{'value':!![]}),exports[a12_0xf48883(0x1ba)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0xf48883(0x1c2)),koasend=require('koa-send'),decorator_1=require('@midwayjs/decorator');let ExcelService=class ExcelService{async['parse'](_0xaf3184,_0x9024a4,_0x1f8e53=[0x0]){const _0x1834c9=a12_0xf48883;var _0x48e23d,_0x558ca8;const _0x3e9306=new exceljs['Workbook'](),_0x753b29=[];let _0x3fcbff=_0xaf3184[_0x1834c9(0x1c5)](/(\\|\/)/g,'/')[_0x1834c9(0x1c5)](/\/{2,}/g,'/');!(_0x3fcbff===null||_0x3fcbff===void 0x0?void 0x0:_0x3fcbff[_0x1834c9(0x1de)]('/'))&&(_0x3fcbff=this[_0x1834c9(0x1cc)][_0x1834c9(0x1e5)]()+'/'+_0x3fcbff);try{await _0x3e9306['xlsx'][_0x1834c9(0x1da)](_0x3fcbff);}catch(_0x3a44cb){return console[_0x1834c9(0x1b5)](_0x1834c9(0x1b6)+_0x3fcbff+'\x20is\x20read\x20fail'),_0x753b29;}for(const _0x4c5ef4 of _0x1f8e53){const _0x500dec=lodash[_0x1834c9(0x1a8)](_0x4c5ef4)?((_0x48e23d=_0x3e9306[_0x1834c9(0x1cb)])===null||_0x48e23d===void 0x0?void 0x0:_0x48e23d[_0x4c5ef4])||undefined:_0x3e9306[_0x1834c9(0x1bb)](_0x4c5ef4);if(_0x500dec){var _0x3180a5=0x1;const _0x19752f=_0x500dec['getRow'](0x1),_0x302618=await new Promise(_0x3ea21b=>{const _0x15d420={};_0x19752f['eachCell']((_0x1cd4df,_0x51aee4)=>{const _0x137e5e=a12_0x3fe9;for(const _0x2c28b2 of _0x9024a4){if(_0x1cd4df[_0x137e5e(0x1d0)]==_0x2c28b2['header'])_0x3180a5=0x2,_0x15d420[_0x2c28b2[_0x137e5e(0x1d1)]]={'header':_0x1cd4df[_0x137e5e(0x1aa)],'handler':_0x2c28b2[_0x137e5e(0x1d2)]};else{if(!_0x15d420[_0x2c28b2[_0x137e5e(0x1d1)]])try{const _0x3982c2=_0x19752f[_0x137e5e(0x1ae)](_0x2c28b2['header']);_0x3982c2&&(_0x15d420[_0x2c28b2['key']]={'header':_0x3982c2[_0x137e5e(0x1aa)],'handler':_0x2c28b2[_0x137e5e(0x1d2)]});}catch{}}}_0x19752f['cellCount']==_0x51aee4&&_0x3ea21b(_0x15d420);});});for(const _0x539a8a of _0x500dec[_0x1834c9(0x1c9)](_0x3180a5,_0x500dec[_0x1834c9(0x1d7)])){const _0x1f9843={};for(const _0x2ed39e in _0x302618){_0x302618[_0x2ed39e][_0x1834c9(0x1e8)]&&(typeof((_0x558ca8=_0x302618[_0x2ed39e])===null||_0x558ca8===void 0x0?void 0x0:_0x558ca8[_0x1834c9(0x1d2)])==_0x1834c9(0x1e6)?_0x1f9843[_0x2ed39e]=_0x302618[_0x2ed39e][_0x1834c9(0x1d2)](_0x539a8a[_0x1834c9(0x1ae)](lodash['trim'](''+_0x302618[_0x2ed39e][_0x1834c9(0x1e8)],'\x20'))[_0x1834c9(0x1c0)]()):_0x1f9843[_0x2ed39e]=_0x539a8a['getCell'](_0x302618[_0x2ed39e][_0x1834c9(0x1e8)])[_0x1834c9(0x1c0)]());}Object[_0x1834c9(0x1d5)](_0x1f9843)[_0x1834c9(0x1d3)]>0x0&&_0x753b29['push'](_0x1f9843);}}}return _0x753b29;}async['export'](_0x1444e4,_0x1266d8,_0x4fabcf,_0x3e4e7d=a12_0xf48883(0x1be)){const _0x336491=a12_0xf48883;var _0x26cf2a,_0x4a6e51;const _0x57f9b7=new exceljs['Workbook'](),_0x5bdaf4={},_0x287f26=[],_0x19c2b4=_0x57f9b7[_0x336491(0x1bc)](_0x336491(0x1d8),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x476587 in _0x1266d8){_0x5bdaf4[_0x1266d8[_0x476587]['key']]=_0x1266d8[_0x476587]['header'],_0x287f26[_0x336491(0x1dd)]({'header':_0x1266d8[_0x476587][_0x336491(0x1e8)],'key':(_0x26cf2a=_0x1266d8[_0x476587])===null||_0x26cf2a===void 0x0?void 0x0:_0x26cf2a[_0x336491(0x1d1)][_0x336491(0x1c5)](/\./g,'_')});}_0x19c2b4[_0x336491(0x1cd)]=_0x287f26;for(const _0x1f7559 of _0x4fabcf){const _0x22eb7b={};for(const _0x37292f in _0x1266d8){typeof((_0x4a6e51=_0x1266d8[_0x37292f])===null||_0x4a6e51===void 0x0?void 0x0:_0x4a6e51[_0x336491(0x1d2)])==_0x336491(0x1e6)?_0x22eb7b[_0x1266d8[_0x37292f][_0x336491(0x1d1)][_0x336491(0x1c5)](/\./g,'_')]=await _0x1266d8[_0x37292f]['handler'](_0x1f7559):_0x22eb7b[_0x1266d8[_0x37292f][_0x336491(0x1d1)][_0x336491(0x1c5)](/\./g,'_')]=lodash[_0x336491(0x1c7)](_0x1f7559,_0x1266d8[_0x37292f]['key'],'');}_0x19c2b4[_0x336491(0x1df)](_0x22eb7b);}let _0x2732a2='';const _0x199cad=_0x1444e4+'-'+lodash[_0x336491(0x1ca)](0x2710,0x1869f)+_0x336491(0x1c8);if(_0x3e4e7d&&_0x3e4e7d[_0x336491(0x1de)]('/'))_0x2732a2=''+_0x3e4e7d;else _0x3e4e7d&&!_0x3e4e7d[_0x336491(0x1de)]('/')&&!_0x3e4e7d[_0x336491(0x1de)]('\x5c')?_0x2732a2=this['app'][_0x336491(0x1e5)]()+'/'+_0x3e4e7d:_0x2732a2=this['app']['getAppDir']()+_0x336491(0x1e0);return(_0x2732a2[_0x336491(0x1b0)]('/')||_0x2732a2[_0x336491(0x1b0)]('\x5c'))&&(_0x2732a2=_0x2732a2['substring'](0x0,_0x2732a2[_0x336491(0x1d3)]-0x1)),_0x2732a2=_0x2732a2[_0x336491(0x1c5)](/(\\|\/)/g,'/')[_0x336491(0x1c5)](/\/{2,}/g,'/'),!fs[_0x336491(0x1bd)](_0x2732a2)&&fs[_0x336491(0x1c6)](_0x2732a2,{'recursive':!![]}),await _0x57f9b7['xlsx']['writeFile']((_0x2732a2+'/'+_0x199cad)[_0x336491(0x1c5)](/(\\|\/)/g,'/')[_0x336491(0x1c5)](/\/{2,}/g,'/')),{'filename':_0x199cad,'filepath':(_0x2732a2[_0x336491(0x1d6)]((''+this[_0x336491(0x1cc)][_0x336491(0x1e5)]())[_0x336491(0x1d3)])+'/'+_0x199cad)[_0x336491(0x1c5)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0xf48883(0x1b4)](_0x15baae,_0x438b27){return await koasend(_0x15baae,''+_0x438b27);}};__decorate([(0x0,decorator_1[a12_0xf48883(0x1c3)])(),__metadata(a12_0xf48883(0x1b7),Object)],ExcelService[a12_0xf48883(0x1ce)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0xf48883(0x1ac)])(),(0x0,decorator_1[a12_0xf48883(0x1b1)])(decorator_1[a12_0xf48883(0x1bf)][a12_0xf48883(0x1dc)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x5b8a08=a13_0x2844;function a13_0x5855(){var _0x25556f=['APPSCONFIG_KEY','860739zfDSdY','1233268jysPFQ','AppsConfigTmp','ACTION_KEY','42FsgSBE','anncic-api:action','ACTION_ROUTE_KEY','anncic-api:apps:config','324sUEBTK','20IJojAV','5943184WxOkfs','513915FwyPDl','117eHLLKO','7pdOJYM','__esModule','16788Ulcgoy','1209438ykFSEo','anncic-api:action:route','457150IvadCx'];a13_0x5855=function(){return _0x25556f;};return a13_0x5855();}(function(_0x15dc38,_0x26aec2){var _0x5178b0=a13_0x2844,_0x41e14e=_0x15dc38();while(!![]){try{var _0x3fa2f0=parseInt(_0x5178b0(0x12c))/0x1+-parseInt(_0x5178b0(0x130))/0x2*(parseInt(_0x5178b0(0x139))/0x3)+-parseInt(_0x5178b0(0x136))/0x4*(-parseInt(_0x5178b0(0x12a))/0x5)+-parseInt(_0x5178b0(0x131))/0x6+parseInt(_0x5178b0(0x12e))/0x7*(parseInt(_0x5178b0(0x12b))/0x8)+parseInt(_0x5178b0(0x12d))/0x9*(parseInt(_0x5178b0(0x133))/0xa)+-parseInt(_0x5178b0(0x135))/0xb*(parseInt(_0x5178b0(0x13d))/0xc);if(_0x3fa2f0===_0x26aec2)break;else _0x41e14e['push'](_0x41e14e['shift']());}catch(_0x34f40d){_0x41e14e['push'](_0x41e14e['shift']());}}}(a13_0x5855,0x9f514));Object['defineProperty'](exports,a13_0x5b8a08(0x12f),{'value':!![]}),exports[a13_0x5b8a08(0x137)]=exports['APPSCONFIG_KEY']=exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports[a13_0x5b8a08(0x138)]=a13_0x5b8a08(0x13a),exports[a13_0x5b8a08(0x13b)]=a13_0x5b8a08(0x132),exports[a13_0x5b8a08(0x134)]=a13_0x5b8a08(0x13c);function a13_0x2844(_0x1f60e9,_0x39e0a1){var _0x58559a=a13_0x5855();return a13_0x2844=function(_0x284402,_0x45687c){_0x284402=_0x284402-0x12a;var _0x109777=_0x58559a[_0x284402];return _0x109777;},a13_0x2844(_0x1f60e9,_0x39e0a1);}class AppsConfigTmp{}exports[a13_0x5b8a08(0x137)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x2b7c45=a14_0x326b;(function(_0x189a0e,_0x2e5302){var _0x1ce759=a14_0x326b,_0x5c89b8=_0x189a0e();while(!![]){try{var _0x1b38ae=-parseInt(_0x1ce759(0x1e1))/0x1+-parseInt(_0x1ce759(0x1ef))/0x2+-parseInt(_0x1ce759(0x1f8))/0x3*(-parseInt(_0x1ce759(0x1fd))/0x4)+parseInt(_0x1ce759(0x1fc))/0x5+-parseInt(_0x1ce759(0x1e5))/0x6*(parseInt(_0x1ce759(0x1de))/0x7)+-parseInt(_0x1ce759(0x1f3))/0x8+parseInt(_0x1ce759(0x1ed))/0x9*(parseInt(_0x1ce759(0x1f5))/0xa);if(_0x1b38ae===_0x2e5302)break;else _0x5c89b8['push'](_0x5c89b8['shift']());}catch(_0x56359b){_0x5c89b8['push'](_0x5c89b8['shift']());}}}(a14_0xdf4b,0x84ec3));function a14_0xdf4b(){var _0x334da6=['length','225474SHCnjJ','分页数量','@anncic-api/validator','__decorate','design:type','decorate','RuleType','PageDTO','4218993uKInSw','min','535920oLahom','__metadata','_page','prototype','4869472sPoelS','_size','10uDbdNa','getOwnPropertyDescriptor','integer','468MNzcts','__esModule','第一页为1,第二页为2','trim','2815985wdUNoR','15076dFQTxL','Rule','排序方式','function','1:是;0:否','7FUjaBf','object','是否倒序','161264PsIrNF','string','number'];a14_0xdf4b=function(){return _0x334da6;};return a14_0xdf4b();}function a14_0x326b(_0xd2d2e2,_0x326b31){var _0xdf4b34=a14_0xdf4b();return a14_0x326b=function(_0x326b1d,_0x6781da){_0x326b1d=_0x326b1d-0x1dc;var _0xd7d83e=_0xdf4b34[_0x326b1d];return _0xd7d83e;},a14_0x326b(_0xd2d2e2,_0x326b31);}var __decorate=this&&this[a14_0x2b7c45(0x1e8)]||function(_0x2ae9cd,_0x6888bf,_0xf93b54,_0xe694cd){var _0x269926=a14_0x2b7c45,_0x196f0c=arguments[_0x269926(0x1e4)],_0x5d5675=_0x196f0c<0x3?_0x6888bf:_0xe694cd===null?_0xe694cd=Object[_0x269926(0x1f6)](_0x6888bf,_0xf93b54):_0xe694cd,_0x38ebc2;if(typeof Reflect==='object'&&typeof Reflect[_0x269926(0x1ea)]===_0x269926(0x1dc))_0x5d5675=Reflect[_0x269926(0x1ea)](_0x2ae9cd,_0x6888bf,_0xf93b54,_0xe694cd);else{for(var _0xfa6388=_0x2ae9cd['length']-0x1;_0xfa6388>=0x0;_0xfa6388--)if(_0x38ebc2=_0x2ae9cd[_0xfa6388])_0x5d5675=(_0x196f0c<0x3?_0x38ebc2(_0x5d5675):_0x196f0c>0x3?_0x38ebc2(_0x6888bf,_0xf93b54,_0x5d5675):_0x38ebc2(_0x6888bf,_0xf93b54))||_0x5d5675;}return _0x196f0c>0x3&&_0x5d5675&&Object['defineProperty'](_0x6888bf,_0xf93b54,_0x5d5675),_0x5d5675;},__metadata=this&&this[a14_0x2b7c45(0x1f0)]||function(_0x5025d4,_0x3dd679){var _0x111e54=a14_0x2b7c45;if(typeof Reflect===_0x111e54(0x1df)&&typeof Reflect['metadata']===_0x111e54(0x1dc))return Reflect['metadata'](_0x5025d4,_0x3dd679);};Object['defineProperty'](exports,a14_0x2b7c45(0x1f9),{'value':!![]}),exports[a14_0x2b7c45(0x1ec)]=void 0x0;const validator_1=require(a14_0x2b7c45(0x1e7));class PageDTO{}__decorate([(0x0,validator_1[a14_0x2b7c45(0x1fe)])('分页',validator_1[a14_0x2b7c45(0x1eb)][a14_0x2b7c45(0x1e3)]()[a14_0x2b7c45(0x1f7)]()[a14_0x2b7c45(0x1ee)](0x1),a14_0x2b7c45(0x1fa)),__metadata(a14_0x2b7c45(0x1e9),Number)],PageDTO[a14_0x2b7c45(0x1f2)],a14_0x2b7c45(0x1f1),void 0x0),__decorate([(0x0,validator_1[a14_0x2b7c45(0x1fe)])(a14_0x2b7c45(0x1e6),validator_1[a14_0x2b7c45(0x1eb)][a14_0x2b7c45(0x1e3)]()[a14_0x2b7c45(0x1f7)]()[a14_0x2b7c45(0x1ee)](0x1)),__metadata(a14_0x2b7c45(0x1e9),Number)],PageDTO[a14_0x2b7c45(0x1f2)],a14_0x2b7c45(0x1f4),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x2b7c45(0x1ff),validator_1[a14_0x2b7c45(0x1eb)][a14_0x2b7c45(0x1e2)]()[a14_0x2b7c45(0x1fb)]()),__metadata(a14_0x2b7c45(0x1e9),String)],PageDTO['prototype'],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x2b7c45(0x1fe)])(a14_0x2b7c45(0x1e0),validator_1[a14_0x2b7c45(0x1eb)]['number']()['integer']()['valid'](0x0,0x1),a14_0x2b7c45(0x1dd)),__metadata(a14_0x2b7c45(0x1e9),Number)],PageDTO['prototype'],'_isreverse',void 0x0),exports[a14_0x2b7c45(0x1ec)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.37",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.37",
|
|
21
|
+
"@anncic-api/core": "^1.1.37",
|
|
22
|
+
"@anncic-api/event": "^1.1.37",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.37",
|
|
24
|
+
"@anncic-api/validator": "^1.1.37",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.37",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "f185a8f3fc82694027a003e9890934ccb6abdb1d"
|
|
43
43
|
}
|