anncic-api 1.1.47 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x5726(){var _0x4c7745=['1918BKrvKu','4992024xjcExH','19024KNssTm','4282680lgrtBC','text','appDir','20mb','dhauo1234420123gg3234901','zhiulanuiy7892387985hnoi','/runtime/.upload','__esModule','3275592TpgIVz','name','256709kGLHRY','defineProperty','64cznXLO','16144821QqGUIg','15567kudxFF','form'];a0_0x5726=function(){return _0x4c7745;};return a0_0x5726();}var a0_0x5c971c=a0_0x1f40;(function(_0x4c610f,_0x51d425){var _0x22c730=a0_0x1f40,_0x50ffde=_0x4c610f();while(!![]){try{var _0x138535=parseInt(_0x22c730(0x1ca))/0x1+-parseInt(_0x22c730(0x1cc))/0x2*(-parseInt(_0x22c730(0x1ce))/0x3)+parseInt(_0x22c730(0x1c8))/0x4+parseInt(_0x22c730(0x1d3))/0x5+parseInt(_0x22c730(0x1d1))/0x6+-parseInt(_0x22c730(0x1d0))/0x7*(parseInt(_0x22c730(0x1d2))/0x8)+-parseInt(_0x22c730(0x1cd))/0x9;if(_0x138535===_0x51d425)break;else _0x50ffde['push'](_0x50ffde['shift']());}catch(_0x2b37b3){_0x50ffde['push'](_0x50ffde['shift']());}}}(a0_0x5726,0x76592));function a0_0x1f40(_0x207a2f,_0x4e0338){var _0x5726c8=a0_0x5726();return a0_0x1f40=function(_0x1f40be,_0x1d8e65){_0x1f40be=_0x1f40be-0x1c4;var _0x57071e=_0x5726c8[_0x1f40be];return _0x57071e;},a0_0x1f40(_0x207a2f,_0x4e0338);}Object[a0_0x5c971c(0x1cb)](exports,a0_0x5c971c(0x1c7),{'value':!![]}),exports['default']=_0x3a7ad5=>{var _0x2186b3=a0_0x5c971c;return{'apitest':!![],'keys':_0x3a7ad5[_0x2186b3(0x1c9)],'anncicapi':{'timeout':0x1388,'password':_0x2186b3(0x1c5),'devices':{'DEFAULT':{'secret':_0x2186b3(0x1c4),'checkcode':_0x2186b3(0x1c4)}}},'bodyParser':{'enableTypes':['json',_0x2186b3(0x1cf),_0x2186b3(0x1d4),'xml'],'formLimit':_0x2186b3(0x1d6),'jsonLimit':'20mb','textLimit':_0x2186b3(0x1d6),'xmlLimit':_0x2186b3(0x1d6)},'upload':{'tmpdir':_0x3a7ad5[_0x2186b3(0x1d5)]+_0x2186b3(0x1c6),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x25365f=a1_0x579c;(function(_0x3546b9,_0x2991da){var _0x3ec8f2=a1_0x579c,_0x4def37=_0x3546b9();while(!![]){try{var _0x1707b9=parseInt(_0x3ec8f2(0x1dc))/0x1+parseInt(_0x3ec8f2(0x1e3))/0x2*(parseInt(_0x3ec8f2(0x1e1))/0x3)+-parseInt(_0x3ec8f2(0x1da))/0x4+-parseInt(_0x3ec8f2(0x1dd))/0x5*(parseInt(_0x3ec8f2(0x1e2))/0x6)+-parseInt(_0x3ec8f2(0x1de))/0x7*(-parseInt(_0x3ec8f2(0x1e0))/0x8)+parseInt(_0x3ec8f2(0x1d9))/0x9*(-parseInt(_0x3ec8f2(0x1d8))/0xa)+parseInt(_0x3ec8f2(0x1db))/0xb;if(_0x1707b9===_0x2991da)break;else _0x4def37['push'](_0x4def37['shift']());}catch(_0x1ee4f3){_0x4def37['push'](_0x4def37['shift']());}}}(a1_0x32a8,0xeb92a));function a1_0x32a8(){var _0x14b64c=['3759320yNDaQG','13742839FInIZr','1036792BsWNkJ','6357640CTkwgN','7bpqBDD','defineProperty','1190328JDSbDk','597tnvCmT','6VLVccL','14246Siekyx','10OrsKsp','6085305aHTgHe'];a1_0x32a8=function(){return _0x14b64c;};return a1_0x32a8();}function a1_0x579c(_0x4bbf49,_0x182ba9){var _0x32a894=a1_0x32a8();return a1_0x579c=function(_0x579c82,_0x1ceee1){_0x579c82=_0x579c82-0x1d8;var _0x58b737=_0x32a894[_0x579c82];return _0x58b737;},a1_0x579c(_0x4bbf49,_0x182ba9);}Object[a1_0x25365f(0x1df)](exports,'__esModule',{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x2c6dd5=a2_0x17c6;(function(_0x4a6840,_0x2e4a48){const _0x38fe17=a2_0x17c6,_0x2c2e88=_0x4a6840();while(!![]){try{const _0x40926a=parseInt(_0x38fe17(0xde))/0x1*(parseInt(_0x38fe17(0xda))/0x2)+parseInt(_0x38fe17(0xd5))/0x3+-parseInt(_0x38fe17(0x10b))/0x4+parseInt(_0x38fe17(0xcd))/0x5*(parseInt(_0x38fe17(0xfd))/0x6)+parseInt(_0x38fe17(0xe0))/0x7*(parseInt(_0x38fe17(0xfe))/0x8)+-parseInt(_0x38fe17(0x104))/0x9*(-parseInt(_0x38fe17(0xc4))/0xa)+-parseInt(_0x38fe17(0x105))/0xb;if(_0x40926a===_0x2e4a48)break;else _0x2c2e88['push'](_0x2c2e88['shift']());}catch(_0x1014f9){_0x2c2e88['push'](_0x2c2e88['shift']());}}}(a2_0x51ad,0x976c7));function a2_0x17c6(_0x546eed,_0x34af68){const _0x51ad1e=a2_0x51ad();return a2_0x17c6=function(_0x17c644,_0x2448c){_0x17c644=_0x17c644-0xb6;let _0x1e25be=_0x51ad1e[_0x17c644];return _0x1e25be;},a2_0x17c6(_0x546eed,_0x34af68);}var __decorate=this&&this[a2_0x2c6dd5(0xca)]||function(_0x3639a2,_0x51834f,_0x5e5127,_0x4b70c9){const _0x11cc2f=a2_0x2c6dd5;var _0x35b2ff=arguments[_0x11cc2f(0xf3)],_0x356c1f=_0x35b2ff<0x3?_0x51834f:_0x4b70c9===null?_0x4b70c9=Object[_0x11cc2f(0xe4)](_0x51834f,_0x5e5127):_0x4b70c9,_0xbab05d;if(typeof Reflect===_0x11cc2f(0xfa)&&typeof Reflect[_0x11cc2f(0xc5)]===_0x11cc2f(0xb7))_0x356c1f=Reflect[_0x11cc2f(0xc5)](_0x3639a2,_0x51834f,_0x5e5127,_0x4b70c9);else{for(var _0x52c67e=_0x3639a2[_0x11cc2f(0xf3)]-0x1;_0x52c67e>=0x0;_0x52c67e--)if(_0xbab05d=_0x3639a2[_0x52c67e])_0x356c1f=(_0x35b2ff<0x3?_0xbab05d(_0x356c1f):_0x35b2ff>0x3?_0xbab05d(_0x51834f,_0x5e5127,_0x356c1f):_0xbab05d(_0x51834f,_0x5e5127))||_0x356c1f;}return _0x35b2ff>0x3&&_0x356c1f&&Object['defineProperty'](_0x51834f,_0x5e5127,_0x356c1f),_0x356c1f;},__metadata=this&&this[a2_0x2c6dd5(0xb9)]||function(_0x3984e1,_0xb3ab7c){const _0x3216e6=a2_0x2c6dd5;if(typeof Reflect==='object'&&typeof Reflect[_0x3216e6(0xf5)]===_0x3216e6(0xb7))return Reflect['metadata'](_0x3984e1,_0xb3ab7c);};Object[a2_0x2c6dd5(0xcb)](exports,a2_0x2c6dd5(0xe7),{'value':!![]}),exports[a2_0x2c6dd5(0x117)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x2c6dd5(0xe5)),ApiService_1=require(a2_0x2c6dd5(0xdb)),action_1=require(a2_0x2c6dd5(0x10a)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require(a2_0x2c6dd5(0xeb)),upload=require(a2_0x2c6dd5(0xf1)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2c6dd5(0xfb)),ConfigDefault=require(a2_0x2c6dd5(0xed)),ConfigProduction=require(a2_0x2c6dd5(0xd2)),anncic=require(a2_0x2c6dd5(0xef)),anncicCache=require(a2_0x2c6dd5(0xdc)),anncicEvent=require(a2_0x2c6dd5(0xff)),anncicTypeorm=require(a2_0x2c6dd5(0xe6)),anncicValidator=require(a2_0x2c6dd5(0xb6)),anncicHelper=require(a2_0x2c6dd5(0xdf));let CustomConfiguration=class CustomConfiguration{async[a2_0x2c6dd5(0x115)](){const _0x1cc5ac=a2_0x2c6dd5;await this['filterConfig'](),await this[_0x1cc5ac(0xc0)](),await this[_0x1cc5ac(0x113)](),await this['hanlderApplications']();}async[a2_0x2c6dd5(0xc0)](){}async[a2_0x2c6dd5(0x113)](){const _0x6c6b0b=a2_0x2c6dd5,_0x44841f=this['config'][_0x6c6b0b(0xc6)]();this['decorator'][_0x6c6b0b(0xd4)](action_1[_0x6c6b0b(0x103)],_0x4b994d=>{const _0x79ad85=_0x6c6b0b,_0x47e9b8=_0x4b994d[_0x79ad85(0xf5)];return{'before':async _0x30cfff=>{const _0x23fe9e=_0x79ad85;var _0x24bdae,_0x31273d;const _0x573ca2=(_0x24bdae=_0x30cfff===null||_0x30cfff===void 0x0?void 0x0:_0x30cfff[_0x23fe9e(0xdd)])===null||_0x24bdae===void 0x0?void 0x0:_0x24bdae[core_1[_0x23fe9e(0xf6)]];if(_0x573ca2&&(_0x47e9b8===null||_0x47e9b8===void 0x0?void 0x0:_0x47e9b8[_0x23fe9e(0xb8)])){if(!this[_0x23fe9e(0xd9)][_0x23fe9e(0xd0)]((_0x31273d=_0x573ca2===null||_0x573ca2===void 0x0?void 0x0:_0x573ca2[_0x23fe9e(0xe1)])===null||_0x31273d===void 0x0?void 0x0:_0x31273d[_0x23fe9e(0xf9)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x34b9e9=>{const _0x1cf7fc=_0x79ad85;var _0x590efe,_0x36d19d,_0x1c9ed5,_0x81ec1c,_0x4ceaf2;const _0x440224=(_0x590efe=_0x34b9e9===null||_0x34b9e9===void 0x0?void 0x0:_0x34b9e9[_0x1cf7fc(0xdd)])===null||_0x590efe===void 0x0?void 0x0:_0x590efe[core_1[_0x1cf7fc(0xf6)]];if(_0x440224&&(_0x47e9b8===null||_0x47e9b8===void 0x0?void 0x0:_0x47e9b8[_0x1cf7fc(0xb8)])){if(((_0x36d19d=_0x440224[_0x1cf7fc(0xf9)])===null||_0x36d19d===void 0x0?void 0x0:_0x36d19d[_0x1cf7fc(0x10e)])&&((_0x4ceaf2=(_0x81ec1c=(_0x1c9ed5=_0x44841f===null||_0x44841f===void 0x0?void 0x0:_0x44841f[_0x1cf7fc(0x101)])===null||_0x1c9ed5===void 0x0?void 0x0:_0x1c9ed5['devices'])===null||_0x81ec1c===void 0x0?void 0x0:_0x81ec1c[_0x440224[_0x1cf7fc(0xf9)][_0x1cf7fc(0x10e)]])===null||_0x4ceaf2===void 0x0?void 0x0:_0x4ceaf2[_0x1cf7fc(0xbb)])){const _0x384111=Array['isArray'](_0x44841f['anncicapi'][_0x1cf7fc(0xe3)][_0x440224['headers'][_0x1cf7fc(0x10e)]][_0x1cf7fc(0xbb)])?_0x44841f[_0x1cf7fc(0x101)][_0x1cf7fc(0xe3)][_0x440224[_0x1cf7fc(0xf9)][_0x1cf7fc(0x10e)]][_0x1cf7fc(0xbb)]:[_0x44841f[_0x1cf7fc(0x101)][_0x1cf7fc(0xe3)][_0x440224[_0x1cf7fc(0xf9)][_0x1cf7fc(0x10e)]][_0x1cf7fc(0xbb)]];for(const _0x325e65 of _0x384111){if(decorator_1[_0x1cf7fc(0xe2)][_0x1cf7fc(0xd8)](_0x325e65)||typeof _0x325e65==_0x1cf7fc(0xba)){const _0x192e24=await _0x440224[_0x1cf7fc(0x100)][_0x1cf7fc(0xbe)](_0x325e65);typeof(_0x192e24===null||_0x192e24===void 0x0?void 0x0:_0x192e24[_0x1cf7fc(0xcc)])==_0x1cf7fc(0xb7)&&await _0x192e24[_0x1cf7fc(0xcc)](typeof(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224['method'])==_0x1cf7fc(0xba)&&(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)])?_0x440224['method'][_0x1cf7fc(0xc2)]()+'@'+(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)]):undefined,_0x440224,_0x47e9b8);}else decorator_1[_0x1cf7fc(0xe2)][_0x1cf7fc(0xbc)](_0x325e65)&&await _0x325e65(typeof(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xd6)])==_0x1cf7fc(0xba)&&(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)])?_0x440224[_0x1cf7fc(0xd6)][_0x1cf7fc(0xc2)]()+'@'+(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)]):undefined,_0x440224,_0x47e9b8);}}}return await _0x34b9e9[_0x1cf7fc(0xf7)](..._0x34b9e9[_0x1cf7fc(0xd7)]);},'afterThrow':(_0x1a6a84,_0x28f556)=>{throw _0x28f556;}};});}async[a2_0x2c6dd5(0x106)](){const _0x568950=a2_0x2c6dd5;this['application'][_0x568950(0xce)]([_0x568950(0x111)])[_0x568950(0x107)](_0x5597dc=>{const _0x167807=_0x568950;(_0x5597dc===null||_0x5597dc===void 0x0?void 0x0:_0x5597dc[_0x167807(0x112)])&&Object[_0x167807(0xc3)](_0x5597dc[_0x167807(0x112)],{'ok':{'value':function(_0x542443,_0x29ab07,_0x542ae0=0x0){return{'code':_0x542ae0,'data':_0x542443,'extra':_0x29ab07};}},'input':{'value':function(_0x31a57b,_0x93fb23){const _0x53b491=_0x167807;var _0x424bff;const _0x13b86b=lodash[_0x53b491(0xf0)]({},this['request'][_0x53b491(0xee)]||this[_0x53b491(0xe1)][((_0x424bff=config===null||config===void 0x0?void 0x0:config[_0x53b491(0x118)])===null||_0x424bff===void 0x0?void 0x0:_0x424bff[_0x53b491(0x108)])||_0x53b491(0xee)]||{},this[_0x53b491(0xe1)][_0x53b491(0xc1)]||{});return _0x31a57b?lodash['get'](_0x13b86b,_0x31a57b,_0x93fb23):_0x13b86b;}},'when':{'value':async function(_0x33f3af,_0x32723b){const _0x4cd315=_0x167807,_0x102822=this[_0x4cd315(0xf8)](_0x33f3af,null);if(!lodash[_0x4cd315(0x110)](_0x102822))return await _0x32723b(_0x102822);}},'only':{'value':function(_0x4fcc19){const _0x263e31=_0x167807,_0x5b0728={};for(let _0xfa0470=0x0;_0xfa0470<_0x4fcc19[_0x263e31(0xf3)];_0xfa0470++){lodash[_0x263e31(0xbd)](_0x4fcc19[_0xfa0470])&&_0x4fcc19[_0xfa0470]['length']>0x0&&lodash['isString'](_0x4fcc19[_0xfa0470][0x0])&&(_0x5b0728[_0x4fcc19[_0xfa0470][0x0]]=this[_0x263e31(0xf8)](_0x4fcc19[_0xfa0470][0x0],_0x4fcc19[_0xfa0470][_0x263e31(0xf3)]>0x1?_0x4fcc19[_0xfa0470][0x1]:null));}return _0x5b0728;}}});});}async[a2_0x2c6dd5(0x10f)](){const _0x2b250c=a2_0x2c6dd5;var _0x5697db,_0x561ed0,_0xff45fd,_0x490597,_0x68cd0e,_0x169b18;const _0x4c0f10=this[_0x2b250c(0x10d)][_0x2b250c(0xc6)]();((_0x561ed0=(_0x5697db=_0x4c0f10===null||_0x4c0f10===void 0x0?void 0x0:_0x4c0f10['anncicapi'])===null||_0x5697db===void 0x0?void 0x0:_0x5697db[_0x2b250c(0xe3)])===null||_0x561ed0===void 0x0?void 0x0:_0x561ed0['DEFAULT'])&&Object[_0x2b250c(0xe8)](_0x4c0f10[_0x2b250c(0x101)][_0x2b250c(0xe3)])[_0x2b250c(0xf3)]>0x1&&delete _0x4c0f10['anncicapi'][_0x2b250c(0xe3)]['DEFAULT'];if((_0xff45fd=_0x4c0f10===null||_0x4c0f10===void 0x0?void 0x0:_0x4c0f10[_0x2b250c(0xbf)])===null||_0xff45fd===void 0x0?void 0x0:_0xff45fd[_0x2b250c(0x109)])for(const _0x293c66 in _0x4c0f10[_0x2b250c(0xbf)][_0x2b250c(0x109)]){((_0x490597=_0x4c0f10[_0x2b250c(0xbf)]['dirs'][_0x293c66])===null||_0x490597===void 0x0?void 0x0:_0x490597[_0x2b250c(0xd1)])&&typeof((_0x68cd0e=_0x4c0f10[_0x2b250c(0xbf)]['dirs'][_0x293c66])===null||_0x68cd0e===void 0x0?void 0x0:_0x68cd0e[_0x2b250c(0xd1)])==_0x2b250c(0xba)&&!fs[_0x2b250c(0xea)](_0x4c0f10[_0x2b250c(0xbf)][_0x2b250c(0x109)][_0x293c66][_0x2b250c(0xd1)])&&(fs[_0x2b250c(0x116)](_0x4c0f10['staticFile']['dirs'][_0x293c66][_0x2b250c(0xd1)],{'recursive':!![]}),console['log'](_0x2b250c(0x10c)+_0x4c0f10[_0x2b250c(0xbf)][_0x2b250c(0x109)][_0x293c66][_0x2b250c(0xd1)]));}((_0x169b18=_0x4c0f10===null||_0x4c0f10===void 0x0?void 0x0:_0x4c0f10[_0x2b250c(0x102)])===null||_0x169b18===void 0x0?void 0x0:_0x169b18[_0x2b250c(0xe9)])&&!fs['existsSync'](_0x4c0f10[_0x2b250c(0x102)][_0x2b250c(0xe9)])&&(fs[_0x2b250c(0x116)](_0x4c0f10['upload']['tmpdir'],{'recursive':!![]}),console['log'](_0x2b250c(0xf2)+_0x4c0f10[_0x2b250c(0x102)][_0x2b250c(0xe9)])),this['config'][_0x2b250c(0x114)](_0x4c0f10);}};function a2_0x51ad(){const _0x40d9af=['anncicapi','upload','ACTION_ROUTE_KEY','119916wbfXsu','24284601yjaUOl','hanlderApplications','forEach','key','dirs','./types/action','4648248dhsInz','Anncic-api\x20static-file\x20:\x20mkdir\x20','config','device','filterConfig','isNull','koa','context','handlerActionRoute','addObject','onReady','mkdirSync','CustomConfiguration','bodyXml','@anncic-api/validator','function','apimit','__metadata','string','intercept','isFunction','isArray','getAsync','staticFile','checkConfigKeys','query','toLowerCase','defineProperties','860AFFSAA','decorate','getConfiguration','decorator','Configuration','environment','__decorate','defineProperty','handler','250865oHgbkw','getApplications','Inject','checksign','dir','./config/config.production','MidwayConfigService','registerMethodHandler','3031026RqFqfJ','method','args','isClass','ApiService','4FNNayq','./service/ApiService','@anncic-api/cache','target','77237pBNEyP','anncic-apihelper','7WRQhBp','request','Types','devices','getOwnPropertyDescriptor','./exception/ApiError','@anncic-api/typeorm','__esModule','keys','tmpdir','existsSync','@midwayjs/task','_matchedRoute','./config/config.default','body','@anncic-api/core','defaultsDeep','@midwayjs/upload','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','length','prototype','metadata','REQUEST_OBJ_CTX_KEY','proceed','input','headers','object','@midwayjs/cross-domain','design:type','138kLyFgc','4202600LdchHB','@anncic-api/event','requestContext'];a2_0x51ad=function(){return _0x40d9af;};return a2_0x51ad();}__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),core_1[a2_0x2c6dd5(0xd3)])],CustomConfiguration[a2_0x2c6dd5(0xf4)],a2_0x2c6dd5(0x10d),void 0x0),__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x2c6dd5(0xf4)],a2_0x2c6dd5(0xc7),void 0x0),__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),core_1['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x2c6dd5(0xfc),core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x2c6dd5(0xc9),void 0x0),__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),ApiService_1[a2_0x2c6dd5(0xd9)])],CustomConfiguration[a2_0x2c6dd5(0xf4)],a2_0x2c6dd5(0xd9),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xc8)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x1fde(){const _0x302e3c=['mkdirSync','665cHhNyI','Inject','@anncic-api/event','function','anncicapi','upload','@anncic-api/core','registerMethodHandler','anncic-apihelper','40RusvGW','intercept','3478GLbbje','prototype','CustomConfiguration','forEach','_matchedRoute','target','hanlderApplications','MidwayEnvironmentService','key','865gJjKFw','isClass','dirs','handler','metadata','@midwayjs/decorator','toLowerCase','input','@midwayjs/static-file','@midwayjs/task','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','Types','tmpdir','defineProperty','decorate','design:type','./service/ApiService','3388908bCvtDD','devices','HEADERS_SIGNATURE','__esModule','./exception/ApiError','Configuration','koa','21040QcEIwh','ApiService','existsSync','application','@midwayjs/core','apimit','anncic-api','staticFile','ACTION_ROUTE_KEY','REQUEST_OBJ_CTX_KEY','ApiError','isNull','@anncic-api/typeorm','3210Jrbhio','method','headers','@anncic-api/cache','2757DfGQOk','config','15790NuBSIW','2155158aBBwBE','object','addObject','length','Anncic-api\x20static-file\x20:\x20mkdir\x20','environment','isString','isArray','args','defaultsDeep','filterConfig','@midwayjs/i18n','1133MJsmft','MidwayApplicationManager','query','request','string','body','device','bodyXml','MidwayConfigService','checkConfigKeys','DEFAULT','dir','decorator','@midwayjs/koa','checksign','log','context','1100vBxtFh','handlerActionRoute'];a2_0x1fde=function(){return _0x302e3c;};return a2_0x1fde();}const a2_0x17c584=a2_0xfa33;(function(_0x349faa,_0x8edff4){const _0x3727b8=a2_0xfa33,_0x16e943=_0x349faa();while(!![]){try{const _0x43eac9=-parseInt(_0x3727b8(0x127))/0x1*(-parseInt(_0x3727b8(0x125))/0x2)+-parseInt(_0x3727b8(0xf9))/0x3*(parseInt(_0x3727b8(0x119))/0x4)+parseInt(_0x3727b8(0x130))/0x5*(-parseInt(_0x3727b8(0xf5))/0x6)+parseInt(_0x3727b8(0x11c))/0x7*(-parseInt(_0x3727b8(0xe8))/0x8)+parseInt(_0x3727b8(0xfc))/0x9+parseInt(_0x3727b8(0xfb))/0xa*(parseInt(_0x3727b8(0x108))/0xb)+parseInt(_0x3727b8(0xe1))/0xc;if(_0x43eac9===_0x8edff4)break;else _0x16e943['push'](_0x16e943['shift']());}catch(_0x1ee1ec){_0x16e943['push'](_0x16e943['shift']());}}}(a2_0x1fde,0x26cda));function a2_0xfa33(_0xcfd13d,_0x484164){const _0x1fdefb=a2_0x1fde();return a2_0xfa33=function(_0xfa33be,_0x27edfa){_0xfa33be=_0xfa33be-0xd2;let _0x1ba9e8=_0x1fdefb[_0xfa33be];return _0x1ba9e8;},a2_0xfa33(_0xcfd13d,_0x484164);}var __decorate=this&&this['__decorate']||function(_0x29e72b,_0x35506c,_0x4c070a,_0x53a705){const _0x1acf9f=a2_0xfa33;var _0x5b409d=arguments[_0x1acf9f(0xff)],_0x4e5698=_0x5b409d<0x3?_0x35506c:_0x53a705===null?_0x53a705=Object['getOwnPropertyDescriptor'](_0x35506c,_0x4c070a):_0x53a705,_0x31f821;if(typeof Reflect===_0x1acf9f(0xfd)&&typeof Reflect[_0x1acf9f(0xde)]===_0x1acf9f(0x11f))_0x4e5698=Reflect[_0x1acf9f(0xde)](_0x29e72b,_0x35506c,_0x4c070a,_0x53a705);else{for(var _0x53b5f2=_0x29e72b[_0x1acf9f(0xff)]-0x1;_0x53b5f2>=0x0;_0x53b5f2--)if(_0x31f821=_0x29e72b[_0x53b5f2])_0x4e5698=(_0x5b409d<0x3?_0x31f821(_0x4e5698):_0x5b409d>0x3?_0x31f821(_0x35506c,_0x4c070a,_0x4e5698):_0x31f821(_0x35506c,_0x4c070a))||_0x4e5698;}return _0x5b409d>0x3&&_0x4e5698&&Object[_0x1acf9f(0xdd)](_0x35506c,_0x4c070a,_0x4e5698),_0x4e5698;},__metadata=this&&this['__metadata']||function(_0x6e4965,_0x19ba53){const _0x4bd56a=a2_0xfa33;if(typeof Reflect===_0x4bd56a(0xfd)&&typeof Reflect[_0x4bd56a(0xd4)]==='function')return Reflect[_0x4bd56a(0xd4)](_0x6e4965,_0x19ba53);};Object[a2_0x17c584(0xdd)](exports,a2_0x17c584(0xe4),{'value':!![]}),exports[a2_0x17c584(0x129)]=void 0x0;const decorator_1=require(a2_0x17c584(0xd5)),core_1=require(a2_0x17c584(0xec)),ApiError_1=require(a2_0x17c584(0xe5)),ApiService_1=require(a2_0x17c584(0xe0)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x17c584(0x115)),i18n=require(a2_0x17c584(0x107)),task=require(a2_0x17c584(0xd9)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x17c584(0xd8)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x17c584(0x122)),anncicCache=require(a2_0x17c584(0xf8)),anncicEvent=require(a2_0x17c584(0x11e)),anncicTypeorm=require(a2_0x17c584(0xf4)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x17c584(0x124));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5ce324=a2_0x17c584;await this['filterConfig'](),await this[_0x5ce324(0x111)](),await this[_0x5ce324(0x11a)](),await this['hanlderApplications']();}async[a2_0x17c584(0x111)](){}async[a2_0x17c584(0x11a)](){const _0x47ae88=a2_0x17c584,_0xcbdd6d=this['config']['getConfiguration']();this[_0x47ae88(0x114)][_0x47ae88(0x123)](action_1[_0x47ae88(0xf0)],_0x2ebb00=>{const _0x3d01e0=_0x47ae88,_0x36385c=_0x2ebb00[_0x3d01e0(0xd4)];return{'before':async _0x578f68=>{const _0x477dfa=_0x3d01e0;var _0x558507,_0x42dfa0;const _0x4ba77b=(_0x558507=_0x578f68===null||_0x578f68===void 0x0?void 0x0:_0x578f68[_0x477dfa(0x12c)])===null||_0x558507===void 0x0?void 0x0:_0x558507[core_1[_0x477dfa(0xf1)]];if(_0x4ba77b&&(_0x36385c===null||_0x36385c===void 0x0?void 0x0:_0x36385c[_0x477dfa(0xed)])){if(!this['ApiService'][_0x477dfa(0x116)]((_0x42dfa0=_0x4ba77b===null||_0x4ba77b===void 0x0?void 0x0:_0x4ba77b[_0x477dfa(0x10b)])===null||_0x42dfa0===void 0x0?void 0x0:_0x42dfa0[_0x477dfa(0xf7)]))throw new AnnError(ApiError_1[_0x477dfa(0xf2)][_0x477dfa(0xe3)]);}},'around':async _0x3729c7=>{const _0x198459=_0x3d01e0;var _0x42717a,_0x49ecc7,_0x311a48,_0x521977,_0x1e54ef;const _0xccdc17=(_0x42717a=_0x3729c7===null||_0x3729c7===void 0x0?void 0x0:_0x3729c7[_0x198459(0x12c)])===null||_0x42717a===void 0x0?void 0x0:_0x42717a[core_1[_0x198459(0xf1)]];if(_0xccdc17&&(_0x36385c===null||_0x36385c===void 0x0?void 0x0:_0x36385c[_0x198459(0xed)])){if(((_0x49ecc7=_0xccdc17[_0x198459(0xf7)])===null||_0x49ecc7===void 0x0?void 0x0:_0x49ecc7['device'])&&((_0x1e54ef=(_0x521977=(_0x311a48=_0xcbdd6d===null||_0xcbdd6d===void 0x0?void 0x0:_0xcbdd6d[_0x198459(0x120)])===null||_0x311a48===void 0x0?void 0x0:_0x311a48[_0x198459(0xe2)])===null||_0x521977===void 0x0?void 0x0:_0x521977[_0xccdc17[_0x198459(0xf7)][_0x198459(0x10e)]])===null||_0x1e54ef===void 0x0?void 0x0:_0x1e54ef['intercept'])){const _0x20c193=Array['isArray'](_0xcbdd6d[_0x198459(0x120)][_0x198459(0xe2)][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)])?_0xcbdd6d[_0x198459(0x120)][_0x198459(0xe2)][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)]:[_0xcbdd6d[_0x198459(0x120)]['devices'][_0xccdc17['headers'][_0x198459(0x10e)]][_0x198459(0x126)]];for(const _0x6d27aa of _0x20c193){if(decorator_1['Types'][_0x198459(0x131)](_0x6d27aa)||typeof _0x6d27aa==_0x198459(0x10c)){const _0x1a2684=await _0xccdc17['requestContext']['getAsync'](_0x6d27aa);typeof(_0x1a2684===null||_0x1a2684===void 0x0?void 0x0:_0x1a2684[_0x198459(0xd3)])==_0x198459(0x11f)&&await _0x1a2684[_0x198459(0xd3)](typeof(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0xf6)])==_0x198459(0x10c)&&(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute'])?_0xccdc17['method'][_0x198459(0xd6)]()+'@'+(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0x12b)]):undefined,_0xccdc17,_0x36385c);}else decorator_1[_0x198459(0xdb)]['isFunction'](_0x6d27aa)&&await _0x6d27aa(typeof(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17[_0x198459(0xf6)])=='string'&&(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute'])?_0xccdc17[_0x198459(0xf6)][_0x198459(0xd6)]()+'@'+(_0xccdc17===null||_0xccdc17===void 0x0?void 0x0:_0xccdc17['_matchedRoute']):undefined,_0xccdc17,_0x36385c);}}}return await _0x3729c7['proceed'](..._0x3729c7[_0x198459(0x104)]);},'afterThrow':(_0x27531f,_0x947fd8)=>{throw _0x947fd8;}};});}async[a2_0x17c584(0x12d)](){const _0x1b2402=a2_0x17c584;this[_0x1b2402(0xeb)]['getApplications']([_0x1b2402(0xe7)])[_0x1b2402(0x12a)](_0x43d715=>{const _0x848cdb=_0x1b2402;(_0x43d715===null||_0x43d715===void 0x0?void 0x0:_0x43d715[_0x848cdb(0x118)])&&Object['defineProperties'](_0x43d715[_0x848cdb(0x118)],{'ok':{'value':function(_0x574ec7,_0x46bb6a,_0x12cf32=0x0){return{'code':_0x12cf32,'data':_0x574ec7,'extra':_0x46bb6a};}},'input':{'value':function(_0x5dc6db,_0x499832){const _0x49d111=_0x848cdb;var _0x5120fe;const _0x5a2c01=lodash[_0x49d111(0x105)]({},this['request'][_0x49d111(0x10d)]||this[_0x49d111(0x10b)][((_0x5120fe=config===null||config===void 0x0?void 0x0:config[_0x49d111(0x10f)])===null||_0x5120fe===void 0x0?void 0x0:_0x5120fe[_0x49d111(0x12f)])||_0x49d111(0x10d)]||{},this[_0x49d111(0x10b)][_0x49d111(0x10a)]||{});return _0x5dc6db?lodash['get'](_0x5a2c01,_0x5dc6db,_0x499832):_0x5a2c01;}},'when':{'value':async function(_0x3fe98d,_0x627d03){const _0x61be5b=_0x848cdb,_0x423f34=this[_0x61be5b(0xd7)](_0x3fe98d,null);if(!lodash[_0x61be5b(0xf3)](_0x423f34))return await _0x627d03(_0x423f34);}},'only':{'value':function(_0x1ba7f1){const _0x7a4eba=_0x848cdb,_0x3aa094={};for(let _0x11aa7c=0x0;_0x11aa7c<_0x1ba7f1['length'];_0x11aa7c++){lodash[_0x7a4eba(0x103)](_0x1ba7f1[_0x11aa7c])&&_0x1ba7f1[_0x11aa7c]['length']>0x0&&lodash[_0x7a4eba(0x102)](_0x1ba7f1[_0x11aa7c][0x0])&&(_0x3aa094[_0x1ba7f1[_0x11aa7c][0x0]]=this[_0x7a4eba(0xd7)](_0x1ba7f1[_0x11aa7c][0x0],_0x1ba7f1[_0x11aa7c][_0x7a4eba(0xff)]>0x1?_0x1ba7f1[_0x11aa7c][0x1]:null));}return _0x3aa094;}}});});}async[a2_0x17c584(0x106)](){const _0x20bfea=a2_0x17c584;var _0x42f6a5,_0x580ea4,_0x43969d,_0x341f52,_0x166f61,_0xbabd03;const _0x53a8d2=this[_0x20bfea(0xfa)]['getConfiguration']();((_0x580ea4=(_0x42f6a5=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2[_0x20bfea(0x120)])===null||_0x42f6a5===void 0x0?void 0x0:_0x42f6a5['devices'])===null||_0x580ea4===void 0x0?void 0x0:_0x580ea4[_0x20bfea(0x112)])&&Object['keys'](_0x53a8d2[_0x20bfea(0x120)][_0x20bfea(0xe2)])['length']>0x1&&delete _0x53a8d2[_0x20bfea(0x120)][_0x20bfea(0xe2)][_0x20bfea(0x112)];if((_0x43969d=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2[_0x20bfea(0xef)])===null||_0x43969d===void 0x0?void 0x0:_0x43969d[_0x20bfea(0xd2)])for(const _0x2f592f in _0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)]){((_0x341f52=_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f])===null||_0x341f52===void 0x0?void 0x0:_0x341f52[_0x20bfea(0x113)])&&typeof((_0x166f61=_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f])===null||_0x166f61===void 0x0?void 0x0:_0x166f61[_0x20bfea(0x113)])==_0x20bfea(0x10c)&&!fs[_0x20bfea(0xea)](_0x53a8d2['staticFile']['dirs'][_0x2f592f][_0x20bfea(0x113)])&&(fs[_0x20bfea(0x11b)](_0x53a8d2['staticFile']['dirs'][_0x2f592f][_0x20bfea(0x113)],{'recursive':!![]}),console[_0x20bfea(0x117)](_0x20bfea(0x100)+_0x53a8d2[_0x20bfea(0xef)][_0x20bfea(0xd2)][_0x2f592f][_0x20bfea(0x113)]));}((_0xbabd03=_0x53a8d2===null||_0x53a8d2===void 0x0?void 0x0:_0x53a8d2['upload'])===null||_0xbabd03===void 0x0?void 0x0:_0xbabd03['tmpdir'])&&!fs[_0x20bfea(0xea)](_0x53a8d2['upload']['tmpdir'])&&(fs[_0x20bfea(0x11b)](_0x53a8d2[_0x20bfea(0x121)]['tmpdir'],{'recursive':!![]}),console[_0x20bfea(0x117)](_0x20bfea(0xda)+_0x53a8d2[_0x20bfea(0x121)][_0x20bfea(0xdc)])),this[_0x20bfea(0xfa)][_0x20bfea(0xfe)](_0x53a8d2);}};__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x110)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0xfa),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x109)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0xeb),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),core_1[a2_0x17c584(0x12e)])],CustomConfiguration[a2_0x17c584(0x128)],a2_0x17c584(0x101),void 0x0),__decorate([(0x0,decorator_1[a2_0x17c584(0x11d)])(),__metadata(a2_0x17c584(0xdf),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x17c584(0xe9),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x17c584(0xe6)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x17c584(0xee),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x17c584(0x129)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x560692=a3_0x3157;function a3_0x3157(_0x32f889,_0x319bae){const _0x232a16=a3_0x232a();return a3_0x3157=function(_0x3157df,_0x439be9){_0x3157df=_0x3157df-0x160;let _0x2f67cb=_0x232a16[_0x3157df];return _0x2f67cb;},a3_0x3157(_0x32f889,_0x319bae);}(function(_0x3150f7,_0x66a9c3){const _0x24d830=a3_0x3157,_0x477571=_0x3150f7();while(!![]){try{const _0x248459=parseInt(_0x24d830(0x16d))/0x1*(-parseInt(_0x24d830(0x16b))/0x2)+-parseInt(_0x24d830(0x186))/0x3*(-parseInt(_0x24d830(0x177))/0x4)+parseInt(_0x24d830(0x173))/0x5+-parseInt(_0x24d830(0x16f))/0x6*(parseInt(_0x24d830(0x17c))/0x7)+parseInt(_0x24d830(0x169))/0x8+parseInt(_0x24d830(0x168))/0x9*(-parseInt(_0x24d830(0x192))/0xa)+-parseInt(_0x24d830(0x162))/0xb;if(_0x248459===_0x66a9c3)break;else _0x477571['push'](_0x477571['shift']());}catch(_0x4234ae){_0x477571['push'](_0x477571['shift']());}}}(a3_0x232a,0xd65df));function a3_0x232a(){const _0x45a407=['2067327QysESs','7097160BaSxpI','-action','397228PSHUTz','\x20文件请放在app/controller/文件下','3vRlmgw','existsSync','9354utDfmP','indexOf','split','saveModule','6701685eIAfBr','splice','-controller','Action','152cuKgvz','substring','toLowerCase','rootpath','route','959sSmiEE','Controller','filepath','startsWith','endsWith','\x20文件请放在apps/','middleware','trim','getClassMetadata','ACTION_KEY','122523uVUJbp','cwd','@midwayjs/decorator','filter','app/controller/','APPSCONFIG_KEY','apps/','/apps/','replace','/config.','parseRoute','module','70HxPncW','saveClassMetadata','../types/action','length','5324517vEjqmq','isArray','prefix','/controller/','join','defineProperty'];a3_0x232a=function(){return _0x45a407;};return a3_0x232a();}Object[a3_0x560692(0x167)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x560692(0x176)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x560692(0x188)),action_1=require(a3_0x560692(0x160));function Action(_0x34e85f,_0x3de0d4,_0x1eb4cc={'middleware':[],'sensitive':!![]}){return _0x561ec9=>{const _0x57f655=a3_0x3157;_0x1eb4cc['tagName']=_0x3de0d4;const _0x45a4a5=parseRoute(_0x34e85f);if(_0x45a4a5[_0x57f655(0x191)]){_0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)]?'/'+_0x45a4a5['module']+'/'+_0x1eb4cc[_0x57f655(0x164)]:'/'+_0x45a4a5[_0x57f655(0x17b)];_0x45a4a5[_0x57f655(0x164)]&&(_0x1eb4cc[_0x57f655(0x164)]='/'+_0x45a4a5['prefix']+'/'+_0x1eb4cc[_0x57f655(0x164)]);if(fs[_0x57f655(0x16e)](_0x45a4a5[_0x57f655(0x17a)]+_0x57f655(0x18d)+_0x45a4a5['module']+_0x57f655(0x18f)+(lodash[_0x57f655(0x180)](_0x45a4a5['filepath'],'ts')?'ts':'js'))){const _0x1ff1e7=include(_0x45a4a5['rootpath']+_0x57f655(0x18d)+_0x45a4a5['module']+_0x57f655(0x18f)+(lodash[_0x57f655(0x180)](_0x45a4a5[_0x57f655(0x17e)],'ts')?'ts':'js'));if(_0x1ff1e7[_0x57f655(0x182)]&&lodash[_0x57f655(0x163)](_0x1ff1e7[_0x57f655(0x182)])&&_0x1ff1e7[_0x57f655(0x182)][_0x57f655(0x161)]>0x0)for(let _0x27a4f4 in _0x1ff1e7[_0x57f655(0x182)]){_0x1ff1e7['middlewareIgnore']['indexOf'](_0x1ff1e7['middleware'][_0x27a4f4])==-0x1&&_0x1eb4cc[_0x57f655(0x182)]['push'](_0x1ff1e7['middleware'][_0x27a4f4]);}const _0x4f7087=(0x0,decorator_1[_0x57f655(0x184)])(action_1[_0x57f655(0x18b)],action_1['AppsConfigTmp'])||{};_0x4f7087[''+_0x45a4a5['module']]=_0x1ff1e7,(0x0,decorator_1[_0x57f655(0x193)])(action_1[_0x57f655(0x18b)],_0x4f7087,action_1['AppsConfigTmp']);}_0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)][_0x57f655(0x179)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x57f655(0x172)])(action_1[_0x57f655(0x185)],_0x561ec9),(0x0,decorator_1[_0x57f655(0x17d)])(_0x1eb4cc['prefix'],_0x1eb4cc)(_0x561ec9),(0x0,decorator_1[_0x57f655(0x193)])(action_1['ACTION_KEY'],{'prefix':_0x1eb4cc[_0x57f655(0x164)],'pprefix':_0x45a4a5['prefix'],'module':_0x45a4a5[_0x57f655(0x191)],'filepath':_0x45a4a5[_0x57f655(0x17e)],'routerOptions':_0x1eb4cc},_0x561ec9);}else _0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)]?'/'+_0x1eb4cc[_0x57f655(0x164)]:'/'+_0x45a4a5['route'],_0x45a4a5[_0x57f655(0x164)]&&(_0x1eb4cc[_0x57f655(0x164)]='/'+_0x45a4a5[_0x57f655(0x164)]+'/'+_0x1eb4cc[_0x57f655(0x164)]),_0x1eb4cc[_0x57f655(0x164)]=_0x1eb4cc[_0x57f655(0x164)]['toLowerCase']()[_0x57f655(0x18e)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x57f655(0x172)])(action_1[_0x57f655(0x185)],_0x561ec9),(0x0,decorator_1[_0x57f655(0x17d)])(_0x1eb4cc[_0x57f655(0x164)],_0x1eb4cc)(_0x561ec9),(0x0,decorator_1[_0x57f655(0x193)])(action_1[_0x57f655(0x185)],{'prefix':_0x1eb4cc['prefix'],'module':_0x45a4a5[_0x57f655(0x191)],'pprefix':_0x45a4a5[_0x57f655(0x164)],'filepath':_0x45a4a5[_0x57f655(0x17e)],'routerOptions':_0x1eb4cc},_0x561ec9);};}exports['Action']=Action;function parseRoute(_0x5cb4ed){const _0x45ade5=a3_0x560692;_0x5cb4ed=_0x5cb4ed['replace'](/(\\|\/)/g,'/');const _0x1b9697=process[_0x45ade5(0x187)]()['replace'](/(\\|\/)/g,'/'),_0x227e11=_0x5cb4ed['substring'](0x0,_0x1b9697[_0x45ade5(0x161)]+_0x5cb4ed['substring'](_0x1b9697[_0x45ade5(0x161)]+0x1)[_0x45ade5(0x170)]('/')+0x1),_0x38b4ad=_0x5cb4ed[_0x45ade5(0x178)](_0x227e11[_0x45ade5(0x161)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x20a1b9={'route':'','prefix':![],'module':![],'rootpath':_0x227e11,'filepath':_0x38b4ad};if(_0x38b4ad[_0x45ade5(0x17f)](_0x45ade5(0x18a))){const _0x11725e=_0x38b4ad[_0x45ade5(0x178)](_0x45ade5(0x18a)[_0x45ade5(0x161)])[_0x45ade5(0x171)]('/')[_0x45ade5(0x189)](_0x35340c=>_0x35340c&&_0x35340c[_0x45ade5(0x183)]());return _0x11725e[_0x45ade5(0x161)]>0x1&&(_0x20a1b9[_0x45ade5(0x164)]=_0x11725e[0x0][_0x45ade5(0x179)](),_0x11725e[_0x45ade5(0x174)](0x0,0x1)),_0x20a1b9['route']=('/'+_0x11725e[_0x45ade5(0x166)]('/'))[_0x45ade5(0x18e)](/(\.ts|\.js)$/,'')[_0x45ade5(0x18e)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x45ade5(0x166)]('-')[_0x45ade5(0x179)]()[_0x45ade5(0x18e)](/\/\-/g,'/'),_0x20a1b9[_0x45ade5(0x17b)]['endsWith']('-action')&&(_0x20a1b9[_0x45ade5(0x17b)]=_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x178)](0x0,_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x161)]-0x7)),_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x180)](_0x45ade5(0x175))&&(_0x20a1b9[_0x45ade5(0x17b)]=_0x20a1b9[_0x45ade5(0x17b)]['substring'](0x0,_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x161)]-0xb)),_0x20a1b9;}else{if(_0x38b4ad[_0x45ade5(0x17f)](_0x45ade5(0x18c))){const _0x4472b9=_0x38b4ad[_0x45ade5(0x178)](0x0,_0x38b4ad['indexOf'](_0x45ade5(0x18d))+0x5),_0x363369=_0x38b4ad[_0x45ade5(0x178)](_0x4472b9['length']+0x1)[_0x45ade5(0x18e)](/(\\|\/)/g,'/')[_0x45ade5(0x171)]('/')[0x0];if(_0x38b4ad[_0x45ade5(0x17f)](_0x45ade5(0x18c)+_0x363369+_0x45ade5(0x165))){const _0x3aba=_0x38b4ad[_0x45ade5(0x178)]((_0x4472b9+'/'+_0x363369+_0x45ade5(0x165))['length'])['split']('/')[_0x45ade5(0x189)](_0x456be6=>_0x456be6&&_0x456be6[_0x45ade5(0x183)]());return _0x3aba['length']>0x1&&(_0x20a1b9['prefix']=_0x3aba[0x0]['toLowerCase'](),_0x3aba['splice'](0x0,0x1)),_0x20a1b9[_0x45ade5(0x191)]=_0x363369,_0x20a1b9[_0x45ade5(0x17b)]=('/'+_0x363369+'/'+_0x3aba[_0x45ade5(0x166)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x45ade5(0x18e)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x45ade5(0x166)]('-')['toLowerCase']()[_0x45ade5(0x18e)](/\/\-/g,'/'),_0x20a1b9['route'][_0x45ade5(0x180)](_0x45ade5(0x16a))&&(_0x20a1b9[_0x45ade5(0x17b)]=_0x20a1b9['route'][_0x45ade5(0x178)](0x0,_0x20a1b9['route'][_0x45ade5(0x161)]-0x7)),_0x20a1b9[_0x45ade5(0x17b)]['endsWith'](_0x45ade5(0x175))&&(_0x20a1b9['route']=_0x20a1b9['route'][_0x45ade5(0x178)](0x0,_0x20a1b9[_0x45ade5(0x17b)][_0x45ade5(0x161)]-0xb)),_0x20a1b9;}throw new Error(_0x38b4ad+_0x45ade5(0x181)+_0x363369+'/controller/文件下');}}throw new Error(_0x38b4ad+_0x45ade5(0x16c));}exports[a3_0x560692(0x190)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x22fe(_0x8ce53,_0x235137){const _0x4d7f9e=a4_0x4d7f();return a4_0x22fe=function(_0x22fe36,_0xdf25d5){_0x22fe36=_0x22fe36-0x1c3;let _0x3d0ab9=_0x4d7f9e[_0x22fe36];return _0x3d0ab9;},a4_0x22fe(_0x8ce53,_0x235137);}const a4_0x398e06=a4_0x22fe;(function(_0x1d8904,_0x2697c6){const _0x80ae82=a4_0x22fe,_0x4fcbab=_0x1d8904();while(!![]){try{const _0x594960=-parseInt(_0x80ae82(0x1db))/0x1*(-parseInt(_0x80ae82(0x1e1))/0x2)+-parseInt(_0x80ae82(0x1e4))/0x3+-parseInt(_0x80ae82(0x1cd))/0x4*(parseInt(_0x80ae82(0x1e2))/0x5)+-parseInt(_0x80ae82(0x1d4))/0x6+-parseInt(_0x80ae82(0x1de))/0x7*(parseInt(_0x80ae82(0x1cc))/0x8)+parseInt(_0x80ae82(0x1e5))/0x9*(-parseInt(_0x80ae82(0x1ca))/0xa)+parseInt(_0x80ae82(0x1d7))/0xb*(parseInt(_0x80ae82(0x1cf))/0xc);if(_0x594960===_0x2697c6)break;else _0x4fcbab['push'](_0x4fcbab['shift']());}catch(_0x2200b3){_0x4fcbab['push'](_0x4fcbab['shift']());}}}(a4_0x4d7f,0xcef91));Object[a4_0x398e06(0x1df)](exports,a4_0x398e06(0x1c7),{'value':!![]}),exports[a4_0x398e06(0x1c5)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x398e06(0x1d6)),action_1=require(a4_0x398e06(0x1d9));function Api(_0x2c4e23,_0x1cf1ca=a4_0x398e06(0x1d1),_0x29415b='/',_0x236fa5={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4ce169,_0x5108d6,_0x238b81)=>{const _0x194906=a4_0x22fe;var _0x3d3ead,_0x12fe4a,_0xed9a14;!_0x236fa5[_0x194906(0x1dd)]&&(_0x236fa5['middleware']=[]);!((_0x3d3ead=_0x236fa5===null||_0x236fa5===void 0x0?void 0x0:_0x236fa5[_0x194906(0x1d0)])===null||_0x3d3ead===void 0x0?void 0x0:_0x3d3ead['validationOptions'])&&(_0x236fa5[_0x194906(0x1d0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x194906(0x1d2)}});if(((_0x12fe4a=_0x236fa5===null||_0x236fa5===void 0x0?void 0x0:_0x236fa5[_0x194906(0x1dd)])===null||_0x12fe4a===void 0x0?void 0x0:_0x12fe4a[_0x194906(0x1c4)])>0x0&&((_0xed9a14=_0x236fa5===null||_0x236fa5===void 0x0?void 0x0:_0x236fa5[_0x194906(0x1e0)])===null||_0xed9a14===void 0x0?void 0x0:_0xed9a14[_0x194906(0x1c4)])>0x0)for(let _0x1143c1 in _0x236fa5['middleware']){_0x236fa5['middlewareIgnore'][_0x194906(0x1e3)](_0x236fa5[_0x194906(0x1dd)][_0x1143c1])!==-0x1&&(_0x236fa5[_0x194906(0x1dd)][_0x1143c1]=null);}_0x236fa5[_0x194906(0x1c8)]=_0x2c4e23,(0x0,validator_1[_0x194906(0x1c9)])(_0x236fa5[_0x194906(0x1d0)])(_0x4ce169,_0x5108d6,_0x238b81),(0x0,decorator_1['RequestMapping'])(Object['assign'](_0x236fa5,{'path':_0x29415b,'requestMethod':(_0x1cf1ca==_0x194906(0x1d8)?_0x194906(0x1c6):_0x1cf1ca)[_0x194906(0x1da)]()}))(_0x4ce169,_0x5108d6,_0x238b81),(0x0,decorator_1[_0x194906(0x1d5)])(action_1[_0x194906(0x1cb)],{'path':_0x29415b,'method':_0x5108d6,'apimit':_0x236fa5[_0x194906(0x1ce)],'routerName':_0x236fa5[_0x194906(0x1c8)],'description':_0x236fa5[_0x194906(0x1dc)],'middleware':(_0x236fa5[_0x194906(0x1dd)]||[])[_0x194906(0x1d3)](_0x3bc306=>!!_0x3bc306),'requestMethod':(_0x1cf1ca==_0x194906(0x1d8)?_0x194906(0x1c6):_0x1cf1ca)[_0x194906(0x1da)]()},_0x4ce169),(0x0,decorator_1[_0x194906(0x1c3)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x29415b,'method':_0x5108d6,'apimit':_0x236fa5[_0x194906(0x1ce)],'routerName':_0x236fa5[_0x194906(0x1c8)],'description':_0x236fa5[_0x194906(0x1dc)],'middleware':(_0x236fa5['middleware']||[])[_0x194906(0x1d3)](_0x4db620=>!!_0x4db620),'requestMethod':(_0x1cf1ca==_0x194906(0x1d8)?_0x194906(0x1c6):_0x1cf1ca)['toLowerCase']()})(_0x4ce169,_0x5108d6,_0x238b81);};}exports[a4_0x398e06(0x1c5)]=Api;function a4_0x4d7f(){const _0x48f297=['3293337BaZCDh','4875462GYtIWM','createCustomMethodDecorator','length','Api','delete','__esModule','routerName','Validator','30ffWLDH','ACTION_ROUTE_KEY','664QcBErW','100lDdgpz','apimit','2476956Lbjccu','validate','get','utc','filter','3590364RTdywZ','attachClassMetadata','@midwayjs/decorator','242iYuhrK','del','../types/action','toLowerCase','1cbPnLj','description','middleware','131894CEgMpQ','defineProperty','middlewareIgnore','3339876dCGomH','95610fYxgyN','indexOf'];a4_0x4d7f=function(){return _0x48f297;};return a4_0x4d7f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x113d76=a5_0x1768;(function(_0x1690ca,_0x1da5a3){const _0x4ab3b5=a5_0x1768,_0x389af5=_0x1690ca();while(!![]){try{const _0x37774d=parseInt(_0x4ab3b5(0x152))/0x1+-parseInt(_0x4ab3b5(0x153))/0x2+-parseInt(_0x4ab3b5(0x156))/0x3*(parseInt(_0x4ab3b5(0x15e))/0x4)+-parseInt(_0x4ab3b5(0x14f))/0x5*(parseInt(_0x4ab3b5(0x15a))/0x6)+parseInt(_0x4ab3b5(0x147))/0x7*(parseInt(_0x4ab3b5(0x150))/0x8)+-parseInt(_0x4ab3b5(0x15d))/0x9+parseInt(_0x4ab3b5(0x151))/0xa;if(_0x37774d===_0x1da5a3)break;else _0x389af5['push'](_0x389af5['shift']());}catch(_0x353b3c){_0x389af5['push'](_0x389af5['shift']());}}}(a5_0x16f2,0x7fb07));Object[a5_0x113d76(0x155)](exports,'__esModule',{'value':!![]}),exports[a5_0x113d76(0x146)]=void 0x0;function a5_0x16f2(){const _0x1e9640=['app','RequestMapping','../service/ApitestService','ApitestService','filepath','REQUEST_OBJ_CTX_KEY','getAsync','5AlsUrJ','32TCmgkk','11319750zRhseF','489876XobqxO','338616WAGdbO','@midwayjs/core','defineProperty','3201xyFYQt','@midwayjs/decorator','get','apitest','2902314YHsskq','MidwayEnvironmentService','value','2126736mMNJQi','3548SByFXL','Apitest','1289617SaGxJr'];a5_0x16f2=function(){return _0x1e9640;};return a5_0x16f2();}const decorator_1=require(a5_0x113d76(0x157)),core_1=require(a5_0x113d76(0x154)),ApitestService_1=require(a5_0x113d76(0x14a));function a5_0x1768(_0x5d1486,_0x4afa2e){const _0x16f2e9=a5_0x16f2();return a5_0x1768=function(_0x176867,_0xfc3a9){_0x176867=_0x176867-0x146;let _0x22303b=_0x16f2e9[_0x176867];return _0x22303b;},a5_0x1768(_0x5d1486,_0x4afa2e);}function Apitest(_0x4a7c95='/apitest',_0x4e6cf8){return(_0x114610,_0xee1b5c,_0x4837d2)=>{const _0x4b8d09=a5_0x1768;return(0x0,decorator_1[_0x4b8d09(0x149)])({'path':_0x4a7c95,'requestMethod':_0x4b8d09(0x158)})(_0x114610,_0xee1b5c,_0x4837d2),_0x4837d2[_0x4b8d09(0x15c)]=async function(..._0x1734f1){const _0xa8bd6a=_0x4b8d09;var _0x53db25;const _0x52c8a1=(_0x53db25=this[core_1[_0xa8bd6a(0x14d)]])===null||_0x53db25===void 0x0?void 0x0:_0x53db25[_0xa8bd6a(0x148)];if(_0x52c8a1&&_0x52c8a1['getConfig'](_0xa8bd6a(0x159))){const _0x1b0185=await _0x52c8a1['getApplicationContext']()[_0xa8bd6a(0x14e)](ApitestService_1[_0xa8bd6a(0x14b)]),_0x59c8e5=await _0x52c8a1['getApplicationContext']()[_0xa8bd6a(0x14e)](core_1[_0xa8bd6a(0x15b)]);return _0x59c8e5['isDevelopmentEnvironment']()&&(_0x4e6cf8[_0xa8bd6a(0x14c)]=!![]),await _0x1b0185['apidoc'](_0x4e6cf8);}return'';},_0x4837d2;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x599648=a6_0x584d;(function(_0x2c5eb7,_0x549691){var _0x57e5bc=a6_0x584d,_0x2b6603=_0x2c5eb7();while(!![]){try{var _0xf6d259=parseInt(_0x57e5bc(0xd4))/0x1*(-parseInt(_0x57e5bc(0xdc))/0x2)+parseInt(_0x57e5bc(0xcf))/0x3+-parseInt(_0x57e5bc(0xd7))/0x4*(parseInt(_0x57e5bc(0xdf))/0x5)+parseInt(_0x57e5bc(0xdd))/0x6+parseInt(_0x57e5bc(0xea))/0x7+parseInt(_0x57e5bc(0xe6))/0x8*(parseInt(_0x57e5bc(0xdb))/0x9)+-parseInt(_0x57e5bc(0xd0))/0xa;if(_0xf6d259===_0x549691)break;else _0x2b6603['push'](_0x2b6603['shift']());}catch(_0x5a6376){_0x2b6603['push'](_0x2b6603['shift']());}}}(a6_0x1a05,0xa10f1));var __decorate=this&&this['__decorate']||function(_0x485a6d,_0x308877,_0x348ae7,_0x49fe3a){var _0x4382dd=a6_0x584d,_0x87fea9=arguments[_0x4382dd(0xd2)],_0x477eeb=_0x87fea9<0x3?_0x308877:_0x49fe3a===null?_0x49fe3a=Object['getOwnPropertyDescriptor'](_0x308877,_0x348ae7):_0x49fe3a,_0x58e26b;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4382dd(0xd5))_0x477eeb=Reflect[_0x4382dd(0xe3)](_0x485a6d,_0x308877,_0x348ae7,_0x49fe3a);else{for(var _0x380223=_0x485a6d[_0x4382dd(0xd2)]-0x1;_0x380223>=0x0;_0x380223--)if(_0x58e26b=_0x485a6d[_0x380223])_0x477eeb=(_0x87fea9<0x3?_0x58e26b(_0x477eeb):_0x87fea9>0x3?_0x58e26b(_0x308877,_0x348ae7,_0x477eeb):_0x58e26b(_0x308877,_0x348ae7))||_0x477eeb;}return _0x87fea9>0x3&&_0x477eeb&&Object[_0x4382dd(0xe0)](_0x308877,_0x348ae7,_0x477eeb),_0x477eeb;},__metadata=this&&this[a6_0x599648(0xe1)]||function(_0x4e910b,_0x54ad8d){var _0x5e2692=a6_0x599648;if(typeof Reflect===_0x5e2692(0xe2)&&typeof Reflect[_0x5e2692(0xce)]===_0x5e2692(0xd5))return Reflect[_0x5e2692(0xce)](_0x4e910b,_0x54ad8d);};function a6_0x1a05(){var _0x135959=['3119395SmVSTv','defineProperty','__metadata','object','decorate','HEADERS_LACK','design:type','10264Mcqvkv','请使用正确的设备','signature验证失败','ApiError','1049888BWDyzB','metadata','3611064hletoM','3006430fTuyie','HEADERS_DEVICE','length','checkcode验证失败','4409xKWUfy','function','TIMEOUT','8EVPhLX','HEADERS_CHECKCODE','__esModule','HEADERS_SIGNATURE','4122LWGjTj','448HLCkBT','7526568EkRsFv','请求头信息不完整'];a6_0x1a05=function(){return _0x135959;};return a6_0x1a05();}Object['defineProperty'](exports,a6_0x599648(0xd9),{'value':!![]}),exports['ApiError']=void 0x0;function a6_0x584d(_0x1ea86b,_0x27be80){var _0x1a0595=a6_0x1a05();return a6_0x584d=function(_0x584de1,_0x269956){_0x584de1=_0x584de1-0xce;var _0x256c46=_0x1a0595[_0x584de1];return _0x256c46;},a6_0x584d(_0x1ea86b,_0x27be80);}class ApiError{}ApiError[a6_0x599648(0xd6)]=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError['HEADERS_DEVICE']=0x3d7e33,ApiError[a6_0x599648(0xd8)]=0x3d7e34,ApiError[a6_0x599648(0xda)]=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x599648(0xe5),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xde)),__metadata(a6_0x599648(0xe5),Object)],ApiError,a6_0x599648(0xe4),void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xe7)),__metadata(a6_0x599648(0xe5),Object)],ApiError,a6_0x599648(0xd1),void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xd3)),__metadata(a6_0x599648(0xe5),Object)],ApiError,a6_0x599648(0xd8),void 0x0),__decorate([AnnErrorMsg(a6_0x599648(0xe8)),__metadata('design:type',Object)],ApiError,a6_0x599648(0xda),void 0x0),exports[a6_0x599648(0xe9)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x35f32a=a7_0xa988;(function(_0x5a151b,_0x4fde5b){const _0x25342b=a7_0xa988,_0x5ab516=_0x5a151b();while(!![]){try{const _0x1da346=-parseInt(_0x25342b(0x194))/0x1+parseInt(_0x25342b(0x189))/0x2*(-parseInt(_0x25342b(0x195))/0x3)+parseInt(_0x25342b(0x190))/0x4+parseInt(_0x25342b(0x18f))/0x5+parseInt(_0x25342b(0x193))/0x6+-parseInt(_0x25342b(0x187))/0x7*(parseInt(_0x25342b(0x18c))/0x8)+parseInt(_0x25342b(0x188))/0x9;if(_0x1da346===_0x4fde5b)break;else _0x5ab516['push'](_0x5ab516['shift']());}catch(_0x21071e){_0x5ab516['push'](_0x5ab516['shift']());}}}(a7_0x1979,0x20a8d));function a7_0x1979(){const _0x23cf49=['defineProperty','509610cOPVQt','256868BcbJpQ','124218kPZudq','__esModule','getAppsConfig','29113tFPqsF','3696345jUeAFy','2RvZyND','getClassMetadata','AppsConfigTmp','496Tapsvo','get','../types/action','304565PTHvmQ','533408hHbPol','APPSCONFIG_KEY'];a7_0x1979=function(){return _0x23cf49;};return a7_0x1979();}function a7_0xa988(_0x4711e0,_0x52583b){const _0x1979c1=a7_0x1979();return a7_0xa988=function(_0xa988b8,_0xa21a99){_0xa988b8=_0xa988b8-0x186;let _0x4e0e32=_0x1979c1[_0xa988b8];return _0x4e0e32;},a7_0xa988(_0x4711e0,_0x52583b);}Object[a7_0x35f32a(0x192)](exports,a7_0x35f32a(0x196),{'value':!![]}),exports[a7_0x35f32a(0x186)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),action_1=require(a7_0x35f32a(0x18e));function getAppsConfig(_0x22e4e2){const _0x1eebb2=a7_0x35f32a,_0x4dce06=(0x0,decorator_1[_0x1eebb2(0x18a)])(action_1[_0x1eebb2(0x191)],action_1[_0x1eebb2(0x18b)])||{};return _0x22e4e2?lodash[_0x1eebb2(0x18d)](_0x4dce06,_0x22e4e2):_0x4dce06;}exports[a7_0x35f32a(0x186)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x4f8726=a8_0x1e1d;(function(_0xdeb66c,_0x340fb8){const _0x69cb84=a8_0x1e1d,_0xcdd26a=_0xdeb66c();while(!![]){try{const _0x4dcb54=-parseInt(_0x69cb84(0x140))/0x1+-parseInt(_0x69cb84(0x14c))/0x2*(-parseInt(_0x69cb84(0x174))/0x3)+-parseInt(_0x69cb84(0x151))/0x4*(parseInt(_0x69cb84(0x143))/0x5)+-parseInt(_0x69cb84(0x15e))/0x6+parseInt(_0x69cb84(0x177))/0x7*(-parseInt(_0x69cb84(0x176))/0x8)+parseInt(_0x69cb84(0x136))/0x9+parseInt(_0x69cb84(0x13f))/0xa;if(_0x4dcb54===_0x340fb8)break;else _0xcdd26a['push'](_0xcdd26a['shift']());}catch(_0x2f65d6){_0xcdd26a['push'](_0xcdd26a['shift']());}}}(a8_0x29e3,0x22c98));Object[a8_0x4f8726(0x187)](exports,'__esModule',{'value':!![]}),exports[a8_0x4f8726(0x155)]=void 0x0;const lodash_1=require(a8_0x4f8726(0x145)),validator_1=require(a8_0x4f8726(0x16a)),decorator_1=require(a8_0x4f8726(0x14b)),decorator_2=require(a8_0x4f8726(0x14b)),decorator_3=require(a8_0x4f8726(0x14b)),action_1=require('../types/action');function getRoutes(_0x2baf1a={'prefix':'/','module':![]}){const _0x4c4af3=a8_0x4f8726;var _0x4e6e55,_0x390935;const _0x418a18=(0x0,decorator_3['listModule'])(action_1[_0x4c4af3(0x13b)]),_0x4d7085={},_0x2e4a92=Array['isArray'](_0x2baf1a['filter']||[])?_0x2baf1a[_0x4c4af3(0x132)]||[]:[_0x2baf1a[_0x4c4af3(0x132)]];_0x7b483:for(const _0x17200c of _0x418a18){let _0x19efeb=(0x0,decorator_3[_0x4c4af3(0x170)])(action_1[_0x4c4af3(0x13b)],_0x17200c),_0xbd8b62=(0x0,decorator_3[_0x4c4af3(0x170)])(action_1[_0x4c4af3(0x17c)],_0x17200c);if(_0x19efeb&&_0xbd8b62){let _0x296361=_0x19efeb[_0x4c4af3(0x15f)],_0x2dade9={};if(_0x2baf1a[_0x4c4af3(0x188)]&&(0x0,lodash_1[_0x4c4af3(0x159)])(_0x19efeb,_0x4c4af3(0x188),![])!=_0x2baf1a[_0x4c4af3(0x188)])continue _0x7b483;else{if(_0x2baf1a[_0x4c4af3(0x188)]===![]&&!!(0x0,lodash_1[_0x4c4af3(0x159)])(_0x19efeb,'module',null))continue _0x7b483;}if(_0x2baf1a[_0x4c4af3(0x15f)]&&!_0x296361[_0x4c4af3(0x146)](_0x2baf1a['prefix']))continue _0x7b483;_0x296361!=='/'?(_0x2dade9[_0x4c4af3(0x189)]=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)][_0x4c4af3(0x18a)])||(/^\//[_0x4c4af3(0x168)](_0x296361)?_0x296361[_0x4c4af3(0x164)]('/')[0x1]:_0x296361),_0x2dade9[_0x4c4af3(0x13a)]=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)]['description'])||_0x2dade9[_0x4c4af3(0x189)],_0x2dade9[_0x4c4af3(0x16d)]=[]):(_0x2dade9[_0x4c4af3(0x189)]=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)][_0x4c4af3(0x18a)])||_0x4c4af3(0x18b),_0x2dade9['description']=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)][_0x4c4af3(0x13a)])||'',_0x2dade9['routes']=[]);_0x2baf1a['filepath']&&(_0x2dade9[_0x4c4af3(0x150)]=_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x150)]);(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x154)])&&(_0x2dade9['prefix']=_0x19efeb[_0x4c4af3(0x154)]);(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x188)])&&(_0x2dade9[_0x4c4af3(0x188)]=_0x19efeb['module']);let _0x3bd0bd=(0x0,decorator_3[_0x4c4af3(0x170)])(decorator_2[_0x4c4af3(0x141)],_0x17200c)||{};if(typeof _0xbd8b62[Symbol[_0x4c4af3(0x15a)]]===_0x4c4af3(0x16f))for(let _0x3b8eed of _0xbd8b62){let _0x4eb498={};_0x4eb498[_0x4c4af3(0x13c)]=_0x3b8eed['requestMethod'],_0x4eb498[_0x4c4af3(0x165)]=(_0x296361+_0x3b8eed[_0x4c4af3(0x18c)])[_0x4c4af3(0x15b)](/\/{1,}/,'/'),_0x4eb498[_0x4c4af3(0x189)]=(_0x3b8eed===null||_0x3b8eed===void 0x0?void 0x0:_0x3b8eed['routerName'])||_0x2dade9[_0x4c4af3(0x189)]||'default',_0x4eb498[_0x4c4af3(0x13a)]=(_0x3b8eed===null||_0x3b8eed===void 0x0?void 0x0:_0x3b8eed[_0x4c4af3(0x13a)])||'',_0x4eb498[_0x4c4af3(0x162)]=[];if(!(0x0,lodash_1['startsWith'])(_0x4eb498[_0x4c4af3(0x165)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x4eb498[_0x4c4af3(0x165)],_0x4c4af3(0x153))&&_0x2e4a92[_0x4c4af3(0x17b)](_0x4eb498[_0x4c4af3(0x165)])===-0x1){if(!(_0x2baf1a===null||_0x2baf1a===void 0x0?void 0x0:_0x2baf1a['noreq'])){let _0x4736df=(0x0,decorator_3[_0x4c4af3(0x16e)])(new _0x17200c(),_0x3b8eed[_0x4c4af3(0x13c)]);for(const _0x5ba86d in _0x4736df){let _0x58eb7f=(_0x4e6e55=_0x3bd0bd[_0x3b8eed[_0x4c4af3(0x13c)]])===null||_0x4e6e55===void 0x0?void 0x0:_0x4e6e55[_0x4c4af3(0x134)](_0x2861b6=>_0x2861b6[_0x4c4af3(0x17e)]==_0x5ba86d&&_0x2861b6[_0x4c4af3(0x171)]===decorator_2[_0x4c4af3(0x169)]&&(_0x2861b6===null||_0x2861b6===void 0x0?void 0x0:_0x2861b6['metadata']));if(_0x58eb7f===null||_0x58eb7f===void 0x0?void 0x0:_0x58eb7f[_0x4c4af3(0x182)]){let _0x6771dd=convertTypeToString(_0x58eb7f[_0x4c4af3(0x182)][_0x4c4af3(0x137)]||0x0);if([_0x4c4af3(0x142),'body'][_0x4c4af3(0x17b)](_0x6771dd)!=-0x1&&_0x58eb7f[_0x4c4af3(0x182)]['propertyData'][_0x4c4af3(0x17b)](':')==-0x1&&!_0x4eb498[_0x4c4af3(0x162)][_0x4c4af3(0x134)](_0x3a8063=>_0x3a8063[_0x4c4af3(0x171)]==_0x58eb7f[_0x4c4af3(0x182)]['propertyData']))_0x4eb498[_0x4c4af3(0x162)][_0x4c4af3(0x167)]({'key':_0x58eb7f[_0x4c4af3(0x182)]['propertyData'],'title':_0x58eb7f[_0x4c4af3(0x182)][_0x4c4af3(0x139)],'type':convertSchemaType(_0x4736df[_0x58eb7f[_0x4c4af3(0x17e)]][_0x4c4af3(0x157)]),'required':![],'default':'','desc':''});else{if(_0x6771dd=='file'){let _0x433094=((_0x390935=_0x58eb7f===null||_0x58eb7f===void 0x0?void 0x0:_0x58eb7f[_0x4c4af3(0x182)])===null||_0x390935===void 0x0?void 0x0:_0x390935['propertyData'])||_0x4c4af3(0x185);_0x433094[_0x4c4af3(0x17b)](':')==-0x1&&!_0x4eb498['request'][_0x4c4af3(0x134)](_0x328258=>_0x328258['key']==_0x433094&&_0x328258[_0x4c4af3(0x137)]=='file')&&_0x4eb498[_0x4c4af3(0x162)][_0x4c4af3(0x167)]({'key':_0x433094,'title':_0x4c4af3(0x17f)+_0x433094,'type':_0x4c4af3(0x185),'required':!![],'default':'','desc':''});}}}else{const _0x4b2283=(0x0,decorator_3[_0x4c4af3(0x163)])(validator_1[_0x4c4af3(0x14d)],_0x4736df[_0x5ba86d]);_0x4b2283&&_0x4eb498['request'][_0x4c4af3(0x167)](...getJoiRequest(_0x4b2283));}}}_0x2dade9[_0x4c4af3(0x16d)][_0x4c4af3(0x167)](_0x4eb498);}}if(_0x2dade9['routes'][_0x4c4af3(0x180)]>0x0){let _0x4aeaaf=_0x4d7085[_0x296361];_0x4aeaaf?(_0x4aeaaf[_0x4c4af3(0x189)]!=_0x2dade9[_0x4c4af3(0x189)]&&(_0x4aeaaf[_0x4c4af3(0x189)]=_0x4aeaaf[_0x4c4af3(0x189)]+','+_0x2dade9[_0x4c4af3(0x189)]),_0x4aeaaf[_0x4c4af3(0x13a)]!=_0x2dade9[_0x4c4af3(0x13a)]&&(_0x4aeaaf[_0x4c4af3(0x13a)]=_0x4aeaaf['description']+','+_0x2dade9[_0x4c4af3(0x13a)]),_0x4aeaaf[_0x4c4af3(0x16d)]=_0x4aeaaf[_0x4c4af3(0x16d)][_0x4c4af3(0x149)](_0x2dade9[_0x4c4af3(0x16d)]),_0x4d7085[_0x296361]=_0x4aeaaf):_0x4d7085[_0x296361]=_0x2dade9;}}}return _0x4d7085;}exports[a8_0x4f8726(0x155)]=getRoutes;function a8_0x1e1d(_0x3b1cf6,_0x34272d){const _0x29e3d6=a8_0x29e3();return a8_0x1e1d=function(_0x1e1dd9,_0x3f40d7){_0x1e1dd9=_0x1e1dd9-0x131;let _0x118485=_0x29e3d6[_0x1e1dd9];return _0x118485;},a8_0x1e1d(_0x3b1cf6,_0x34272d);}function getJoiRequest(_0x2cca52){const _0x575b69=a8_0x4f8726,_0x1766de=[];for(let _0x50aeb1 in _0x2cca52){const _0x324143={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x519cfd=typeof _0x2cca52[_0x50aeb1][_0x575b69(0x160)]==_0x575b69(0x16f)?_0x2cca52[_0x50aeb1]['describe']():_0x2cca52[_0x50aeb1];_0x324143[_0x575b69(0x171)]=_0x50aeb1,_0x324143[_0x575b69(0x137)]=_0x519cfd['type'],_0x324143[_0x575b69(0x18d)]=(0x0,lodash_1[_0x575b69(0x159)])(_0x519cfd,_0x575b69(0x138),_0x50aeb1),_0x324143[_0x575b69(0x18b)]=(0x0,lodash_1[_0x575b69(0x159)])(_0x519cfd,'flags.default',''),_0x324143[_0x575b69(0x148)]=(0x0,lodash_1[_0x575b69(0x159)])(_0x519cfd,_0x575b69(0x183),'')=='required',_0x324143[_0x575b69(0x13a)]=(0x0,lodash_1['get'])(_0x519cfd,_0x575b69(0x131),'');if(_0x519cfd[_0x575b69(0x137)]==_0x575b69(0x14a))_0x324143['children']=getJoiRequest(_0x519cfd[_0x575b69(0x17d)]);else _0x519cfd[_0x575b69(0x137)]==_0x575b69(0x14e)&&_0x519cfd[_0x575b69(0x147)]&&Array[_0x575b69(0x15d)](_0x519cfd['items'])&&_0x519cfd[_0x575b69(0x147)][0x0]&&console[_0x575b69(0x172)](_0x50aeb1+'-array',_0x519cfd);_0x519cfd[_0x575b69(0x178)]&&Array[_0x575b69(0x15d)](_0x519cfd[_0x575b69(0x178)])&&_0x519cfd['allow'][_0x575b69(0x180)]>0x0&&(_0x324143[_0x575b69(0x13a)]='只允许:['+_0x519cfd[_0x575b69(0x178)][_0x575b69(0x16b)](',')+'];'+_0x324143[_0x575b69(0x13a)]);if(_0x324143['key']&&_0x324143[_0x575b69(0x137)]){const _0x35d45f={};for(const _0x220acd of _0x519cfd[_0x575b69(0x173)]||[]){if(_0x220acd[_0x575b69(0x157)]===_0x575b69(0x16c)&&_0x220acd['args'])_0x35d45f[_0x575b69(0x16c)]=_0x220acd[_0x575b69(0x133)]['limit'];else _0x220acd[_0x575b69(0x157)]===_0x575b69(0x179)&&(_0x35d45f[_0x575b69(0x179)]=_0x220acd[_0x575b69(0x133)][_0x575b69(0x13d)]);}_0x324143[_0x575b69(0x173)]=_0x35d45f;}_0x324143[_0x575b69(0x171)]&&_0x324143[_0x575b69(0x18d)]&&_0x1766de[_0x575b69(0x167)](_0x324143);}return _0x1766de;}function convertSchemaType(_0x144d82){const _0x369ab4=a8_0x4f8726;switch(_0x144d82){case _0x369ab4(0x158):return _0x369ab4(0x14a);case _0x369ab4(0x13e):return _0x369ab4(0x156);case _0x369ab4(0x166):return _0x369ab4(0x15c);case _0x369ab4(0x152):return _0x369ab4(0x184);case _0x369ab4(0x175):return'file';default:return _0x369ab4(0x184);}}function a8_0x29e3(){const _0x1d59f5=['flags.presence','string','file','FIELDS','defineProperty','module','summary','tagName','default','path','title','flags.description','filter','args','find','QUERY','2014380xOdIXN','type','flags.label','propertyData','description','ACTION_KEY','method','limit','Boolean','3700730IILwmi','186628iSFUcJ','INJECT_CUSTOM_PARAM','query','10UnqiRZ','RouteParamTypes','lodash','startsWith','items','required','concat','object','@midwayjs/decorator','18566VemjMg','RULES_KEY','array','routerOptions','filepath','268268gUyIKM','String','/static/apitest','pprefix','getRoutes','boolean','name','Object','get','iterator','replace','number','isArray','1538772mTTpsA','prefix','describe','body','request','getClassExtendedMetadata','split','route','Number','push','test','WEB_ROUTER_PARAM_KEY','@anncic-api/validator','join','min','routes','getMethodParamTypes','function','getClassMetadata','key','log','rules','57aqNALO','File','23792iLqWCF','119XZglTb','allow','max','header','indexOf','ACTION_ROUTE_KEY','keys','parameterIndex','文件上传-','length','BODY','metadata'];a8_0x29e3=function(){return _0x1d59f5;};return a8_0x29e3();}function convertTypeToString(_0x8c712a){const _0x5b6d38=a8_0x4f8726;switch(_0x8c712a){case decorator_1[_0x5b6d38(0x144)]['HEADERS']:return _0x5b6d38(0x17a);case decorator_1[_0x5b6d38(0x144)][_0x5b6d38(0x135)]:return _0x5b6d38(0x142);case decorator_1[_0x5b6d38(0x144)]['PARAM']:return _0x5b6d38(0x18c);case decorator_1[_0x5b6d38(0x144)][_0x5b6d38(0x181)]:return _0x5b6d38(0x161);case decorator_1[_0x5b6d38(0x144)][_0x5b6d38(0x186)]:case decorator_1['RouteParamTypes']['FILESSTREAM']:case decorator_1[_0x5b6d38(0x144)]['FILESTREAM']:return _0x5b6d38(0x185);default:return _0x5b6d38(0x17a);}}
|
|
1
|
+
'use strict';const a8_0x18bf1f=a8_0x372b;function a8_0x14e1(){const _0x5dcb7a=['6520xusYGF','body','RouteParamTypes','description','function','split','getMethodParamTypes','allow','min','routes','type','INJECT_CUSTOM_PARAM','max','/static/apitest','file','limit','title','__esModule','1779428AMJGTe','path','indexOf','defineProperty','requestMethod','method','tagName','header','文件上传-','3332724jXpbCj','boolean','replace','只允许:[','find','module','rules','246646nkDuYx','object','Number','children','iterator','concat','number','flags.description','prefix','query','parameterIndex','propertyData','flags.default','pprefix','filter','route','required','getRoutes','metadata','length','isArray','getClassMetadata','ACTION_ROUTE_KEY','@midwayjs/decorator','../types/action','getClassExtendedMetadata','FILESSTREAM','key','get','1764172uRXKYo','@anncic-api/validator','args','filepath','test','-array','routerName','summary','2142wPzBjL','routerOptions','string','join','keys','FILESTREAM','static/apitest','ACTION_KEY','2454928qQcuGF','default','request','startsWith','push','name','flags.presence','10444800FEIQBK','Object','describe','listModule'];a8_0x14e1=function(){return _0x5dcb7a;};return a8_0x14e1();}(function(_0x261968,_0x5a25b6){const _0x96ba5d=a8_0x372b,_0x586536=_0x261968();while(!![]){try{const _0x24a28b=parseInt(_0x96ba5d(0x1c5))/0x1+parseInt(_0x96ba5d(0x188))/0x2+parseInt(_0x96ba5d(0x1be))/0x3+parseInt(_0x96ba5d(0x1b5))/0x4+parseInt(_0x96ba5d(0x1a3))/0x5*(-parseInt(_0x96ba5d(0x190))/0x6)+-parseInt(_0x96ba5d(0x198))/0x7+-parseInt(_0x96ba5d(0x19f))/0x8;if(_0x24a28b===_0x5a25b6)break;else _0x586536['push'](_0x586536['shift']());}catch(_0x1fc7de){_0x586536['push'](_0x586536['shift']());}}}(a8_0x14e1,0x895e9));function a8_0x372b(_0x46773b,_0x46c971){const _0x14e191=a8_0x14e1();return a8_0x372b=function(_0x372b50,_0x4acb9f){_0x372b50=_0x372b50-0x178;let _0x1573b6=_0x14e191[_0x372b50];return _0x1573b6;},a8_0x372b(_0x46773b,_0x46c971);}Object[a8_0x18bf1f(0x1b8)](exports,a8_0x18bf1f(0x1b4),{'value':!![]}),exports[a8_0x18bf1f(0x17c)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x18bf1f(0x189)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x18bf1f(0x182)),decorator_3=require(a8_0x18bf1f(0x182)),action_1=require(a8_0x18bf1f(0x183));function getRoutes(_0x369639={'prefix':'/','module':![]}){const _0x55f49f=a8_0x18bf1f;var _0xbb6c1b,_0x14575;const _0x5b469e=(0x0,decorator_3[_0x55f49f(0x1a2)])(action_1['ACTION_KEY']),_0x436c25={},_0x21c2dd=Array[_0x55f49f(0x17f)](_0x369639['filter']||[])?_0x369639[_0x55f49f(0x179)]||[]:[_0x369639[_0x55f49f(0x179)]];_0x2e4e30:for(const _0x33134a of _0x5b469e){let _0x2b23b3=(0x0,decorator_3['getClassMetadata'])(action_1[_0x55f49f(0x197)],_0x33134a),_0x822252=(0x0,decorator_3[_0x55f49f(0x180)])(action_1[_0x55f49f(0x181)],_0x33134a);if(_0x2b23b3&&_0x822252){let _0x1c8726=_0x2b23b3[_0x55f49f(0x1cd)],_0x3acf4f={};if(_0x369639['module']&&(0x0,lodash_1['get'])(_0x2b23b3,_0x55f49f(0x1c3),![])!=_0x369639['module'])continue _0x2e4e30;else{if(_0x369639[_0x55f49f(0x1c3)]===![]&&!!(0x0,lodash_1[_0x55f49f(0x187)])(_0x2b23b3,_0x55f49f(0x1c3),null))continue _0x2e4e30;}if(_0x369639[_0x55f49f(0x1cd)]&&!_0x1c8726[_0x55f49f(0x19b)](_0x369639[_0x55f49f(0x1cd)]))continue _0x2e4e30;_0x1c8726!=='/'?(_0x3acf4f[_0x55f49f(0x18f)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['routerOptions'][_0x55f49f(0x1bb)])||(/^\//[_0x55f49f(0x18c)](_0x1c8726)?_0x1c8726[_0x55f49f(0x1a8)]('/')[0x1]:_0x1c8726),_0x3acf4f[_0x55f49f(0x1a6)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1a6)])||_0x3acf4f['summary'],_0x3acf4f['routes']=[]):(_0x3acf4f['summary']=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1bb)])||_0x55f49f(0x199),_0x3acf4f[_0x55f49f(0x1a6)]=(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x191)][_0x55f49f(0x1a6)])||'',_0x3acf4f[_0x55f49f(0x1ac)]=[]);_0x369639[_0x55f49f(0x18b)]&&(_0x3acf4f[_0x55f49f(0x18b)]=_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['filepath']);(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3[_0x55f49f(0x178)])&&(_0x3acf4f[_0x55f49f(0x1cd)]=_0x2b23b3[_0x55f49f(0x178)]);(_0x2b23b3===null||_0x2b23b3===void 0x0?void 0x0:_0x2b23b3['module'])&&(_0x3acf4f[_0x55f49f(0x1c3)]=_0x2b23b3[_0x55f49f(0x1c3)]);let _0x233a7e=(0x0,decorator_3[_0x55f49f(0x180)])(decorator_2[_0x55f49f(0x1ae)],_0x33134a)||{};if(typeof _0x822252[Symbol[_0x55f49f(0x1c9)]]===_0x55f49f(0x1a7))for(let _0x1f2874 of _0x822252){let _0x11d175={};_0x11d175['method']=_0x1f2874[_0x55f49f(0x1b9)],_0x11d175[_0x55f49f(0x17a)]=(_0x1c8726+_0x1f2874[_0x55f49f(0x1b6)])[_0x55f49f(0x1c0)](/\/{1,}/,'/'),_0x11d175[_0x55f49f(0x18f)]=(_0x1f2874===null||_0x1f2874===void 0x0?void 0x0:_0x1f2874[_0x55f49f(0x18e)])||_0x3acf4f[_0x55f49f(0x18f)]||_0x55f49f(0x199),_0x11d175[_0x55f49f(0x1a6)]=(_0x1f2874===null||_0x1f2874===void 0x0?void 0x0:_0x1f2874['description'])||'',_0x11d175[_0x55f49f(0x19a)]=[];if(!(0x0,lodash_1[_0x55f49f(0x19b)])(_0x11d175[_0x55f49f(0x17a)],_0x55f49f(0x196))&&!(0x0,lodash_1[_0x55f49f(0x19b)])(_0x11d175[_0x55f49f(0x17a)],_0x55f49f(0x1b0))&&_0x21c2dd[_0x55f49f(0x1b7)](_0x11d175[_0x55f49f(0x17a)])===-0x1){if(!(_0x369639===null||_0x369639===void 0x0?void 0x0:_0x369639['noreq'])){let _0x2fe4a1=(0x0,decorator_3[_0x55f49f(0x1a9)])(new _0x33134a(),_0x1f2874[_0x55f49f(0x1ba)]);for(const _0x4f3ece in _0x2fe4a1){let _0x229f25=(_0xbb6c1b=_0x233a7e[_0x1f2874[_0x55f49f(0x1ba)]])===null||_0xbb6c1b===void 0x0?void 0x0:_0xbb6c1b[_0x55f49f(0x1c2)](_0x4d546e=>_0x4d546e[_0x55f49f(0x1cf)]==_0x4f3ece&&_0x4d546e[_0x55f49f(0x186)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x4d546e===null||_0x4d546e===void 0x0?void 0x0:_0x4d546e[_0x55f49f(0x17d)]));if(_0x229f25===null||_0x229f25===void 0x0?void 0x0:_0x229f25[_0x55f49f(0x17d)]){let _0xa703ea=convertTypeToString(_0x229f25['metadata'][_0x55f49f(0x1ad)]||0x0);if([_0x55f49f(0x1ce),_0x55f49f(0x1a4)][_0x55f49f(0x1b7)](_0xa703ea)!=-0x1&&_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)][_0x55f49f(0x1b7)](':')==-0x1&&!_0x11d175[_0x55f49f(0x19a)][_0x55f49f(0x1c2)](_0x10fb3f=>_0x10fb3f[_0x55f49f(0x186)]==_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)]))_0x11d175['request'][_0x55f49f(0x19c)]({'key':_0x229f25[_0x55f49f(0x17d)]['propertyData'],'title':_0x229f25[_0x55f49f(0x17d)][_0x55f49f(0x1d0)],'type':convertSchemaType(_0x2fe4a1[_0x229f25[_0x55f49f(0x1cf)]][_0x55f49f(0x19d)]),'required':![],'default':'','desc':''});else{if(_0xa703ea=='file'){let _0x1c8eff=((_0x14575=_0x229f25===null||_0x229f25===void 0x0?void 0x0:_0x229f25[_0x55f49f(0x17d)])===null||_0x14575===void 0x0?void 0x0:_0x14575[_0x55f49f(0x1d0)])||'file';_0x1c8eff[_0x55f49f(0x1b7)](':')==-0x1&&!_0x11d175[_0x55f49f(0x19a)]['find'](_0x3366cc=>_0x3366cc[_0x55f49f(0x186)]==_0x1c8eff&&_0x3366cc[_0x55f49f(0x1ad)]=='file')&&_0x11d175[_0x55f49f(0x19a)][_0x55f49f(0x19c)]({'key':_0x1c8eff,'title':_0x55f49f(0x1bd)+_0x1c8eff,'type':_0x55f49f(0x1b1),'required':!![],'default':'','desc':''});}}}else{const _0x22047d=(0x0,decorator_3[_0x55f49f(0x184)])(validator_1['RULES_KEY'],_0x2fe4a1[_0x4f3ece]);_0x22047d&&_0x11d175['request'][_0x55f49f(0x19c)](...getJoiRequest(_0x22047d));}}}_0x3acf4f[_0x55f49f(0x1ac)][_0x55f49f(0x19c)](_0x11d175);}}if(_0x3acf4f['routes'][_0x55f49f(0x17e)]>0x0){let _0x373ca6=_0x436c25[_0x1c8726];_0x373ca6?(_0x373ca6[_0x55f49f(0x18f)]!=_0x3acf4f[_0x55f49f(0x18f)]&&(_0x373ca6[_0x55f49f(0x18f)]=_0x373ca6[_0x55f49f(0x18f)]+','+_0x3acf4f[_0x55f49f(0x18f)]),_0x373ca6[_0x55f49f(0x1a6)]!=_0x3acf4f[_0x55f49f(0x1a6)]&&(_0x373ca6[_0x55f49f(0x1a6)]=_0x373ca6[_0x55f49f(0x1a6)]+','+_0x3acf4f[_0x55f49f(0x1a6)]),_0x373ca6[_0x55f49f(0x1ac)]=_0x373ca6[_0x55f49f(0x1ac)][_0x55f49f(0x1ca)](_0x3acf4f[_0x55f49f(0x1ac)]),_0x436c25[_0x1c8726]=_0x373ca6):_0x436c25[_0x1c8726]=_0x3acf4f;}}}return _0x436c25;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x785922){const _0x48e74f=a8_0x18bf1f,_0x1037ec=[];for(let _0x213125 in _0x785922){const _0x3db747={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5eb6bc=typeof _0x785922[_0x213125]['describe']==_0x48e74f(0x1a7)?_0x785922[_0x213125][_0x48e74f(0x1a1)]():_0x785922[_0x213125];_0x3db747[_0x48e74f(0x186)]=_0x213125,_0x3db747[_0x48e74f(0x1ad)]=_0x5eb6bc[_0x48e74f(0x1ad)],_0x3db747[_0x48e74f(0x1b3)]=(0x0,lodash_1[_0x48e74f(0x187)])(_0x5eb6bc,'flags.label',_0x213125),_0x3db747[_0x48e74f(0x199)]=(0x0,lodash_1['get'])(_0x5eb6bc,_0x48e74f(0x1d1),''),_0x3db747[_0x48e74f(0x17b)]=(0x0,lodash_1['get'])(_0x5eb6bc,_0x48e74f(0x19e),'')==_0x48e74f(0x17b),_0x3db747[_0x48e74f(0x1a6)]=(0x0,lodash_1[_0x48e74f(0x187)])(_0x5eb6bc,_0x48e74f(0x1cc),'');if(_0x5eb6bc[_0x48e74f(0x1ad)]==_0x48e74f(0x1c6))_0x3db747[_0x48e74f(0x1c8)]=getJoiRequest(_0x5eb6bc[_0x48e74f(0x194)]);else _0x5eb6bc[_0x48e74f(0x1ad)]=='array'&&_0x5eb6bc['items']&&Array[_0x48e74f(0x17f)](_0x5eb6bc['items'])&&_0x5eb6bc['items'][0x0]&&console['log'](_0x213125+_0x48e74f(0x18d),_0x5eb6bc);_0x5eb6bc[_0x48e74f(0x1aa)]&&Array[_0x48e74f(0x17f)](_0x5eb6bc[_0x48e74f(0x1aa)])&&_0x5eb6bc[_0x48e74f(0x1aa)][_0x48e74f(0x17e)]>0x0&&(_0x3db747[_0x48e74f(0x1a6)]=_0x48e74f(0x1c1)+_0x5eb6bc['allow'][_0x48e74f(0x193)](',')+'];'+_0x3db747[_0x48e74f(0x1a6)]);if(_0x3db747[_0x48e74f(0x186)]&&_0x3db747[_0x48e74f(0x1ad)]){const _0x259efb={};for(const _0x310657 of _0x5eb6bc[_0x48e74f(0x1c4)]||[]){if(_0x310657['name']===_0x48e74f(0x1ab)&&_0x310657[_0x48e74f(0x18a)])_0x259efb[_0x48e74f(0x1ab)]=_0x310657[_0x48e74f(0x18a)][_0x48e74f(0x1b2)];else _0x310657[_0x48e74f(0x19d)]===_0x48e74f(0x1af)&&(_0x259efb[_0x48e74f(0x1af)]=_0x310657[_0x48e74f(0x18a)][_0x48e74f(0x1b2)]);}_0x3db747[_0x48e74f(0x1c4)]=_0x259efb;}_0x3db747[_0x48e74f(0x186)]&&_0x3db747[_0x48e74f(0x1b3)]&&_0x1037ec[_0x48e74f(0x19c)](_0x3db747);}return _0x1037ec;}function convertSchemaType(_0x249d2a){const _0xe1076c=a8_0x18bf1f;switch(_0x249d2a){case _0xe1076c(0x1a0):return _0xe1076c(0x1c6);case'Boolean':return _0xe1076c(0x1bf);case _0xe1076c(0x1c7):return _0xe1076c(0x1cb);case'String':return _0xe1076c(0x192);case'File':return _0xe1076c(0x1b1);default:return _0xe1076c(0x192);}}function convertTypeToString(_0x16ab43){const _0x5beed0=a8_0x18bf1f;switch(_0x16ab43){case decorator_1[_0x5beed0(0x1a5)]['HEADERS']:return'header';case decorator_1[_0x5beed0(0x1a5)]['QUERY']:return'query';case decorator_1[_0x5beed0(0x1a5)]['PARAM']:return _0x5beed0(0x1b6);case decorator_1[_0x5beed0(0x1a5)]['BODY']:return _0x5beed0(0x1a4);case decorator_1[_0x5beed0(0x1a5)]['FIELDS']:case decorator_1[_0x5beed0(0x1a5)][_0x5beed0(0x185)]:case decorator_1[_0x5beed0(0x1a5)][_0x5beed0(0x195)]:return _0x5beed0(0x1b1);default:return _0x5beed0(0x1bc);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a9_0xe114c5=a9_0x4013;(function(_0x9331d5,_0x3a5aa5){var _0xffa44c=a9_0x4013,_0x295e1a=_0x9331d5();while(!![]){try{var _0x19bdcb=-parseInt(_0xffa44c(0x10f))/0x1*(parseInt(_0xffa44c(0x144))/0x2)+-parseInt(_0xffa44c(0x109))/0x3*(parseInt(_0xffa44c(0x115))/0x4)+parseInt(_0xffa44c(0x13b))/0x5+-parseInt(_0xffa44c(0x124))/0x6*(parseInt(_0xffa44c(0x131))/0x7)+-parseInt(_0xffa44c(0x12a))/0x8+parseInt(_0xffa44c(0x127))/0x9*(parseInt(_0xffa44c(0x13d))/0xa)+parseInt(_0xffa44c(0x113))/0xb*(parseInt(_0xffa44c(0x13a))/0xc);if(_0x19bdcb===_0x3a5aa5)break;else _0x295e1a['push'](_0x295e1a['shift']());}catch(_0x3ca693){_0x295e1a['push'](_0x295e1a['shift']());}}}(a9_0x3307,0x51d9d));var __createBinding=this&&this[a9_0xe114c5(0x112)]||(Object[a9_0xe114c5(0x120)]?function(_0x1fb902,_0x12b9b5,_0x59f5e4,_0x56971b){var _0x4fbb50=a9_0xe114c5;if(_0x56971b===undefined)_0x56971b=_0x59f5e4;var _0xc88185=Object[_0x4fbb50(0x11f)](_0x12b9b5,_0x59f5e4);(!_0xc88185||(_0x4fbb50(0x10d)in _0xc88185?!_0x12b9b5[_0x4fbb50(0x130)]:_0xc88185['writable']||_0xc88185[_0x4fbb50(0x119)]))&&(_0xc88185={'enumerable':!![],'get':function(){return _0x12b9b5[_0x59f5e4];}}),Object[_0x4fbb50(0x133)](_0x1fb902,_0x56971b,_0xc88185);}:function(_0x395175,_0xf34043,_0x4c9965,_0x31ed6e){if(_0x31ed6e===undefined)_0x31ed6e=_0x4c9965;_0x395175[_0x31ed6e]=_0xf34043[_0x4c9965];}),__exportStar=this&&this[a9_0xe114c5(0x125)]||function(_0x50dcc4,_0x4dcebe){var _0x235bec=a9_0xe114c5;for(var _0x10783b in _0x50dcc4)if(_0x10783b!==_0x235bec(0x10b)&&!Object[_0x235bec(0x123)][_0x235bec(0x10c)][_0x235bec(0x139)](_0x4dcebe,_0x10783b))__createBinding(_0x4dcebe,_0x50dcc4,_0x10783b);};Object[a9_0xe114c5(0x133)](exports,'__esModule',{'value':!![]}),exports[a9_0xe114c5(0x134)]=exports[a9_0xe114c5(0x10a)]=exports[a9_0xe114c5(0x136)]=exports[a9_0xe114c5(0x12f)]=exports['Provide']=exports['Logger']=exports['Config']=exports[a9_0xe114c5(0x141)]=exports[a9_0xe114c5(0x108)]=exports[a9_0xe114c5(0x11a)]=exports['Query']=exports[a9_0xe114c5(0x135)]=exports[a9_0xe114c5(0x117)]=exports['Fields']=exports[a9_0xe114c5(0x116)]=exports[a9_0xe114c5(0x137)]=exports[a9_0xe114c5(0x12e)]=exports['ValidatorService']=exports[a9_0xe114c5(0x143)]=exports['ExcelService']=exports[a9_0xe114c5(0x10e)]=exports[a9_0xe114c5(0x110)]=exports[a9_0xe114c5(0x13c)]=exports[a9_0xe114c5(0x129)]=exports['ApiError']=exports[a9_0xe114c5(0x12c)]=exports[a9_0xe114c5(0x122)]=exports[a9_0xe114c5(0x142)]=exports[a9_0xe114c5(0x13f)]=void 0x0;const getAppsConfig_1=require(a9_0xe114c5(0x111));Object['defineProperty'](exports,a9_0xe114c5(0x134),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0xe114c5(0x12b)),exports),__exportStar(require(a9_0xe114c5(0x140)),exports);var ActionApi_1=require(a9_0xe114c5(0x11b));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x13f),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require('./decorator/Action');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x142),{'enumerable':!![],'get':function(){var _0x31ae3c=a9_0xe114c5;return Action_1[_0x31ae3c(0x142)];}});var ActionApitest_1=require(a9_0xe114c5(0x11c));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x122),{'enumerable':!![],'get':function(){var _0x139bb7=a9_0xe114c5;return ActionApitest_1[_0x139bb7(0x122)];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x12c),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0xe114c5(0x121));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x128),{'enumerable':!![],'get':function(){var _0x415bc8=a9_0xe114c5;return ApiError_1[_0x415bc8(0x128)];}});var task_1=require('@midwayjs/task');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x129),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a9_0xe114c5(0x11d));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x13c),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x110),{'enumerable':!![],'get':function(){var _0x5e89fa=a9_0xe114c5;return event_1[_0x5e89fa(0x110)];}});var ApiService_1=require(a9_0xe114c5(0x13e));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x10e),{'enumerable':!![],'get':function(){var _0x380c33=a9_0xe114c5;return ApiService_1[_0x380c33(0x10e)];}});var ExcelService_1=require('./service/ExcelService');Object[a9_0xe114c5(0x133)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x262e35=a9_0xe114c5;return ExcelService_1[_0x262e35(0x138)];}});var validator_1=require('@anncic-api/validator');Object[a9_0xe114c5(0x133)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x5d59e1=a9_0xe114c5;return validator_1[_0x5d59e1(0x143)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x145),{'enumerable':!![],'get':function(){var _0x8f4f1f=a9_0xe114c5;return validator_1[_0x8f4f1f(0x145)];}});var configuration_1=require(a9_0xe114c5(0x114));Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x12e),{'enumerable':!![],'get':function(){var _0x1ad3eb=a9_0xe114c5;return configuration_1[_0x1ad3eb(0x12d)];}});var decorator_1=require('@midwayjs/decorator');Object[a9_0xe114c5(0x133)](exports,'File',{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x116),{'enumerable':!![],'get':function(){var _0xecacb0=a9_0xe114c5;return decorator_1[_0xecacb0(0x116)];}}),Object[a9_0xe114c5(0x133)](exports,'Fields',{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object[a9_0xe114c5(0x133)](exports,'Body',{'enumerable':!![],'get':function(){var _0x28d577=a9_0xe114c5;return decorator_1[_0x28d577(0x117)];}}),Object['defineProperty'](exports,a9_0xe114c5(0x135),{'enumerable':!![],'get':function(){var _0x474934=a9_0xe114c5;return decorator_1[_0x474934(0x135)];}}),Object['defineProperty'](exports,a9_0xe114c5(0x118),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x11a),{'enumerable':!![],'get':function(){var _0x4a9f6a=a9_0xe114c5;return decorator_1[_0x4a9f6a(0x11a)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x108),{'enumerable':!![],'get':function(){var _0x5664e6=a9_0xe114c5;return decorator_1[_0x5664e6(0x108)];}});function a9_0x4013(_0x11f6af,_0x5761eb){var _0x3307e2=a9_0x3307();return a9_0x4013=function(_0x40134d,_0xd75ea8){_0x40134d=_0x40134d-0x108;var _0x1f66c8=_0x3307e2[_0x40134d];return _0x1f66c8;},a9_0x4013(_0x11f6af,_0x5761eb);}var decorator_2=require('@midwayjs/decorator');Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x132),{'enumerable':!![],'get':function(){var _0x413b97=a9_0xe114c5;return decorator_2[_0x413b97(0x132)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x11e),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object['defineProperty'](exports,a9_0xe114c5(0x126),{'enumerable':!![],'get':function(){var _0xd15758=a9_0xe114c5;return decorator_2[_0xd15758(0x126)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x12f),{'enumerable':!![],'get':function(){var _0x241535=a9_0xe114c5;return decorator_2[_0x241535(0x12f)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x136),{'enumerable':!![],'get':function(){var _0x2b6c31=a9_0xe114c5;return decorator_2[_0x2b6c31(0x136)];}}),Object[a9_0xe114c5(0x133)](exports,a9_0xe114c5(0x10a),{'enumerable':!![],'get':function(){var _0x4c83e8=a9_0xe114c5;return decorator_2[_0x4c83e8(0x10a)];}}),global[a9_0xe114c5(0x134)]=getAppsConfig_1[a9_0xe114c5(0x134)];function a9_0x3307(){var _0x4ab0d7=['ExcelService','call','17661012uPYZPM','2042775tojIVR','CacheService','10pBwPyw','./service/ApiService','Api','./service/ApitestService','App','Action','ValidatorError','712wjEpqJ','ValidatorService','Init','57MZPeRT','ScopeEnum','default','hasOwnProperty','get','ApiService','1512YIhTqo','EventService','./helper/getAppsConfig','__createBinding','11HknMhV','./configuration','20924TCLLai','Files','Body','Query','configurable','Headers','./decorator/ActionApi','./decorator/ActionApitest','@anncic-api/cache','Logger','getOwnPropertyDescriptor','create','./exception/ApiError','Apitest','prototype','11652hDUBBW','__exportStar','Provide','949293SQBPXD','ApiError','QueueService','3799416eIJDWy','./types/common','getRoutes','CustomConfiguration','Configuration','Inject','__esModule','1939CyknkE','Config','defineProperty','getAppsConfig','Param','Scope','File'];a9_0x3307=function(){return _0x4ab0d7;};return a9_0x3307();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x10ecc8=a10_0x2266;(function(_0x3a5cad,_0x5704db){var _0x28565b=a10_0x2266,_0x3a52b2=_0x3a5cad();while(!![]){try{var _0xf26d58=-parseInt(_0x28565b(0x1c3))/0x1*(parseInt(_0x28565b(0x1e2))/0x2)+-parseInt(_0x28565b(0x1db))/0x3+parseInt(_0x28565b(0x1d9))/0x4+parseInt(_0x28565b(0x1b4))/0x5*(-parseInt(_0x28565b(0x1c1))/0x6)+parseInt(_0x28565b(0x1bd))/0x7+-parseInt(_0x28565b(0x1b3))/0x8*(parseInt(_0x28565b(0x1de))/0x9)+parseInt(_0x28565b(0x1d4))/0xa*(parseInt(_0x28565b(0x1ce))/0xb);if(_0xf26d58===_0x5704db)break;else _0x3a52b2['push'](_0x3a52b2['shift']());}catch(_0x52a8f1){_0x3a52b2['push'](_0x3a52b2['shift']());}}}(a10_0x3de2,0x965ae));var __decorate=this&&this[a10_0x10ecc8(0x1e1)]||function(_0x50fb8a,_0xf5b4eb,_0x10e25e,_0x155054){var _0x14353c=a10_0x10ecc8,_0x2cd4cd=arguments[_0x14353c(0x1b9)],_0x4cc30f=_0x2cd4cd<0x3?_0xf5b4eb:_0x155054===null?_0x155054=Object[_0x14353c(0x1cf)](_0xf5b4eb,_0x10e25e):_0x155054,_0x403129;if(typeof Reflect===_0x14353c(0x1b8)&&typeof Reflect[_0x14353c(0x1ca)]==='function')_0x4cc30f=Reflect[_0x14353c(0x1ca)](_0x50fb8a,_0xf5b4eb,_0x10e25e,_0x155054);else{for(var _0x265b03=_0x50fb8a['length']-0x1;_0x265b03>=0x0;_0x265b03--)if(_0x403129=_0x50fb8a[_0x265b03])_0x4cc30f=(_0x2cd4cd<0x3?_0x403129(_0x4cc30f):_0x2cd4cd>0x3?_0x403129(_0xf5b4eb,_0x10e25e,_0x4cc30f):_0x403129(_0xf5b4eb,_0x10e25e))||_0x4cc30f;}return _0x2cd4cd>0x3&&_0x4cc30f&&Object[_0x14353c(0x1c4)](_0xf5b4eb,_0x10e25e,_0x4cc30f),_0x4cc30f;},__metadata=this&&this[a10_0x10ecc8(0x1e7)]||function(_0x498c91,_0x126456){var _0x166bce=a10_0x10ecc8;if(typeof Reflect===_0x166bce(0x1b8)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x498c91,_0x126456);};function a10_0x3de2(){var _0x5a69d9=['signature','Provide','15851qoxMsK','getOwnPropertyDescriptor','Scope','now','secret','anncicapi','12050ymDVwu','ApiError','Singleton','push','config','4753684gXNrrr','token','2025777cJwqCH','prototype','device','18VHkQlU','toLowerCase','password','__decorate','6uvGTSD','entries','缺少头信息:','HEADERS_DEVICE','Config','__metadata','HEADERS_CHECKCODE','ScopeEnum','115792CXmiNF','20ikexzg','ApiService','../exception/ApiError','getsign','object','length','toString','secret=','checkcode','683634sgxkOR','undefined','__esModule','MD5','1358256dsrUKu','logintime','265641dKCZjn','defineProperty','timeout','HEADERS_LACK','fromEntries','TIMEOUT','map','decorate','devices'];a10_0x3de2=function(){return _0x5a69d9;};return a10_0x3de2();}Object[a10_0x10ecc8(0x1c4)](exports,a10_0x10ecc8(0x1bf),{'value':!![]}),exports[a10_0x10ecc8(0x1b5)]=void 0x0;function a10_0x2266(_0x1bcb41,_0x344d97){var _0x3de25d=a10_0x3de2();return a10_0x2266=function(_0x2266b4,_0x2b4f0a){_0x2266b4=_0x2266b4-0x1b3;var _0x28e4de=_0x3de25d[_0x2266b4];return _0x28e4de;},a10_0x2266(_0x1bcb41,_0x344d97);}const crypto_js_1=require('crypto-js'),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x10ecc8(0x1b6));let ApiService=class ApiService{['password'](_0x2a9050){var _0x176e62=a10_0x10ecc8,_0x369b57;return _0x2a9050?(0x0,crypto_js_1['MD5'])(_0x2a9050+(0x0,crypto_js_1[_0x176e62(0x1c0)])((0x0,crypto_js_1[_0x176e62(0x1c0)])(_0x2a9050)[_0x176e62(0x1ba)]()+((_0x369b57=this[_0x176e62(0x1d8)])===null||_0x369b57===void 0x0?void 0x0:_0x369b57[_0x176e62(0x1e0)]))[_0x176e62(0x1ba)]())[_0x176e62(0x1ba)]():'';}['getcheck'](_0x2732b2,_0x2e9223,_0x3a540f=Date[a10_0x10ecc8(0x1d1)]()){var _0x57ddd7=a10_0x10ecc8;return{'Token':_0x2732b2,'Logintime':_0x3a540f,'Checkcode':this[_0x57ddd7(0x1bc)](_0x2732b2,_0x2e9223,_0x3a540f)};}[a10_0x10ecc8(0x1b7)](_0x5e7062={}){var _0x1786b0=a10_0x10ecc8;const _0x19b432=[],_0x23c552=Object[_0x1786b0(0x1c7)](Object[_0x1786b0(0x1e3)](_0x5e7062)[_0x1786b0(0x1c9)](_0x3404a1=>[_0x3404a1[0x0]['toLowerCase'](),_0x3404a1[0x1]]));for(let _0x4d587c of[_0x1786b0(0x1dd),'requesttime',_0x1786b0(0x1da),_0x1786b0(0x1c2),_0x1786b0(0x1bc)]){if(typeof _0x23c552[_0x4d587c]==_0x1786b0(0x1be))throw new AnnError(ApiError_1[_0x1786b0(0x1d5)][_0x1786b0(0x1c6)],{'message':_0x1786b0(0x1e4)+_0x4d587c});_0x19b432['push'](_0x4d587c+'='+_0x23c552[_0x4d587c]);}if(Math['abs'](_0x23c552['requesttime'])-Date[_0x1786b0(0x1d1)]()>this['config'][_0x1786b0(0x1c5)])throw new AnnError(ApiError_1[_0x1786b0(0x1d5)][_0x1786b0(0x1c8)]);if(!this[_0x1786b0(0x1d8)]['devices'][_0x23c552[_0x1786b0(0x1dd)]]||!this['config'][_0x1786b0(0x1cb)][_0x23c552[_0x1786b0(0x1dd)]][_0x1786b0(0x1d2)]||!this[_0x1786b0(0x1d8)][_0x1786b0(0x1cb)][_0x23c552[_0x1786b0(0x1dd)]][_0x1786b0(0x1bc)])throw new AnnError(ApiError_1[_0x1786b0(0x1d5)]['HEADERS_DEVICE']);if(_0x23c552[_0x1786b0(0x1da)]&&_0x23c552[_0x1786b0(0x1bc)]!=this['checkcode'](_0x23c552[_0x1786b0(0x1da)],_0x23c552['device'],_0x23c552[_0x1786b0(0x1c2)]))throw new AnnError(ApiError_1[_0x1786b0(0x1d5)][_0x1786b0(0x1e8)]);return _0x19b432[_0x1786b0(0x1d7)](_0x1786b0(0x1bb)+this[_0x1786b0(0x1d8)][_0x1786b0(0x1cb)][_0x23c552['device']][_0x1786b0(0x1d2)]),(0x0,crypto_js_1[_0x1786b0(0x1c0)])(_0x19b432['sort']()['join'](''))[_0x1786b0(0x1ba)]();}[a10_0x10ecc8(0x1bc)](_0x3c367b,_0x3735ed,_0x24e30d=Date[a10_0x10ecc8(0x1d1)]()){var _0x410f3c=a10_0x10ecc8,_0x51947d,_0x18e4d9,_0x33918c;if(!((_0x51947d=this['config'])===null||_0x51947d===void 0x0?void 0x0:_0x51947d[_0x410f3c(0x1cb)][_0x3735ed])||!((_0x33918c=(_0x18e4d9=this[_0x410f3c(0x1d8)])===null||_0x18e4d9===void 0x0?void 0x0:_0x18e4d9[_0x410f3c(0x1cb)][_0x3735ed])===null||_0x33918c===void 0x0?void 0x0:_0x33918c['checkcode']))throw new AnnError(ApiError_1[_0x410f3c(0x1d5)][_0x410f3c(0x1e5)]);return(0x0,crypto_js_1[_0x410f3c(0x1c0)])(_0x3c367b+(0x0,crypto_js_1[_0x410f3c(0x1c0)])(_0x24e30d+this['config'][_0x410f3c(0x1cb)][_0x3735ed][_0x410f3c(0x1bc)])[_0x410f3c(0x1ba)]())[_0x410f3c(0x1ba)]();}['checksign'](_0x53a7a8={}){var _0x2831b8=a10_0x10ecc8;const _0x2f87f6=Object[_0x2831b8(0x1c7)](Object[_0x2831b8(0x1e3)](_0x53a7a8)['map'](_0x113190=>[_0x113190[0x0][_0x2831b8(0x1df)](),_0x113190[0x1]]));if(!(_0x2f87f6===null||_0x2f87f6===void 0x0?void 0x0:_0x2f87f6[_0x2831b8(0x1cc)]))throw new AnnError(ApiError_1[_0x2831b8(0x1d5)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x2f87f6===null||_0x2f87f6===void 0x0?void 0x0:_0x2f87f6[_0x2831b8(0x1cc)])!=this[_0x2831b8(0x1b7)](_0x2f87f6))throw new AnnError(ApiError_1[_0x2831b8(0x1d5)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x10ecc8(0x1e6)])(a10_0x10ecc8(0x1d3)),__metadata('design:type',Object)],ApiService[a10_0x10ecc8(0x1dc)],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x10ecc8(0x1cd)])(),(0x0,decorator_1[a10_0x10ecc8(0x1d0)])(decorator_1[a10_0x10ecc8(0x1e9)][a10_0x10ecc8(0x1d6)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x178d79=a11_0x11a0;(function(_0x40d32,_0x16e76f){const _0x319ecc=a11_0x11a0,_0x1eb4a2=_0x40d32();while(!![]){try{const _0x5b7008=parseInt(_0x319ecc(0x114))/0x1+-parseInt(_0x319ecc(0x139))/0x2*(-parseInt(_0x319ecc(0x122))/0x3)+parseInt(_0x319ecc(0x137))/0x4+-parseInt(_0x319ecc(0x126))/0x5+parseInt(_0x319ecc(0x113))/0x6+-parseInt(_0x319ecc(0x118))/0x7*(-parseInt(_0x319ecc(0x13b))/0x8)+-parseInt(_0x319ecc(0x145))/0x9;if(_0x5b7008===_0x16e76f)break;else _0x1eb4a2['push'](_0x1eb4a2['shift']());}catch(_0x4478e8){_0x1eb4a2['push'](_0x1eb4a2['shift']());}}}(a11_0x12e8,0x8e0a8));function a11_0x12e8(){const _0x4387b5=['.css','filepath','design:returntype','application/javascript;\x20charset=utf-8','request','.js','8479800pfgbNx','MidwayEnvironmentService','/apitest-:module','apitesthtml','__esModule','utf-8','Config','@midwayjs/core','config','__metadata','extname','/apiteststatic/*','design:type','prototype','summary','ctx','Provide','substring','object','ApitestStaticController','route','Get','3459984bDrwru','194998nPJJjk','__param','Inject','design:paramtypes','2130877ETZMwv','anncicapi','readFileSync','apitestmodule','url','apiteststatic','Environment','@midwayjs/decorator','apitest','metadata','551526aFayRM','/index.html','stringify','text/css;\x20charset=utf-8','5198885nDqtRn','Scope','function','defineProperty','decorate','join','Param','cache-control','set','/apitest','prefix','ApitestService','length','isDevelopmentEnvironment','/apiteststatic/','existsSync','__decorate','3009344MGcVIc','getOwnPropertyDescriptor','8vdMOaX','apidoc','8wYrHVK','replace','ScopeEnum','description'];a11_0x12e8=function(){return _0x4387b5;};return a11_0x12e8();}var __decorate=this&&this[a11_0x178d79(0x136)]||function(_0xf5a4ea,_0x436d58,_0x2d1acf,_0x36b78a){const _0x2f088a=a11_0x178d79;var _0x510512=arguments[_0x2f088a(0x132)],_0x53c7b1=_0x510512<0x3?_0x436d58:_0x36b78a===null?_0x36b78a=Object[_0x2f088a(0x138)](_0x436d58,_0x2d1acf):_0x36b78a,_0x229b65;if(typeof Reflect===_0x2f088a(0x10f)&&typeof Reflect[_0x2f088a(0x12a)]==='function')_0x53c7b1=Reflect[_0x2f088a(0x12a)](_0xf5a4ea,_0x436d58,_0x2d1acf,_0x36b78a);else{for(var _0x1c4da3=_0xf5a4ea[_0x2f088a(0x132)]-0x1;_0x1c4da3>=0x0;_0x1c4da3--)if(_0x229b65=_0xf5a4ea[_0x1c4da3])_0x53c7b1=(_0x510512<0x3?_0x229b65(_0x53c7b1):_0x510512>0x3?_0x229b65(_0x436d58,_0x2d1acf,_0x53c7b1):_0x229b65(_0x436d58,_0x2d1acf))||_0x53c7b1;}return _0x510512>0x3&&_0x53c7b1&&Object[_0x2f088a(0x129)](_0x436d58,_0x2d1acf,_0x53c7b1),_0x53c7b1;},__metadata=this&&this[a11_0x178d79(0x106)]||function(_0x3b30b5,_0x45ee49){const _0x52c9f3=a11_0x178d79;if(typeof Reflect===_0x52c9f3(0x10f)&&typeof Reflect[_0x52c9f3(0x121)]===_0x52c9f3(0x128))return Reflect[_0x52c9f3(0x121)](_0x3b30b5,_0x45ee49);},__param=this&&this[a11_0x178d79(0x115)]||function(_0x485e75,_0x4691a4){return function(_0x179066,_0x3f14c2){_0x4691a4(_0x179066,_0x3f14c2,_0x485e75);};};Object['defineProperty'](exports,a11_0x178d79(0x149),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x178d79(0x131)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x178d79(0x14c)),decorator_1=require(a11_0x178d79(0x11f)),decorator_2=require(a11_0x178d79(0x11f)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async['apidoc'](_0x161c6f){const _0x585f07=a11_0x178d79,_0x4336ca=(0x0,getRoutes_1['getRoutes'])(_0x161c6f),_0x26c080=[];for(let _0x56cee0 in _0x4336ca){for(let _0xf5e53b in _0x4336ca[_0x56cee0]['routes']){let _0xef2508=_0x4336ca[_0x56cee0]['routes'][_0xf5e53b],_0x7cc77b=[];for(let _0x50bc72 in _0xef2508[_0x585f07(0x143)]){_0x7cc77b['push'](_0xef2508['request'][_0x50bc72]);}_0x26c080['push']({'title':_0x4336ca[_0x56cee0][_0x585f07(0x10b)]+':'+_0xef2508[_0x585f07(0x10b)],'prefix':_0x4336ca[_0x56cee0][_0x585f07(0x130)],'router':_0xef2508[_0x585f07(0x111)],'method':_0xef2508['method'],'describe':_0xef2508[_0x585f07(0x13e)]||'','filepath':_0x4336ca[_0x56cee0][_0x585f07(0x140)]||'','request':_0x7cc77b});}}const _0x5c4f13=(0x0,path_1[_0x585f07(0x12b)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x585f07(0x11a)])(_0x5c4f13,{'encoding':_0x585f07(0x14a)})[_0x585f07(0x13c)](/__res__/g,_0x585f07(0x134))[_0x585f07(0x13c)]('__apiList__',JSON['stringify'](_0x26c080))['replace']('__devices__',JSON[_0x585f07(0x124)](this[_0x585f07(0x105)]['devices']));}};function a11_0x11a0(_0x3bedff,_0x58b474){const _0x12e837=a11_0x12e8();return a11_0x11a0=function(_0x11a084,_0x1a298e){_0x11a084=_0x11a084-0x105;let _0x4ecbec=_0x12e837[_0x11a084];return _0x4ecbec;},a11_0x11a0(_0x3bedff,_0x58b474);}__decorate([(0x0,decorator_2[a11_0x178d79(0x14b)])(a11_0x178d79(0x119)),__metadata(a11_0x178d79(0x109),Object)],ApitestService[a11_0x178d79(0x10a)],a11_0x178d79(0x105),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x178d79(0x10d)])(a11_0x178d79(0x120)),(0x0,decorator_2['Scope'])(decorator_2[a11_0x178d79(0x13d)]['Singleton'])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x1b5598=a11_0x178d79;if(this[_0x1b5598(0x120)]){const _0x1427dd={'module':![]};return this['Environment'][_0x1b5598(0x133)]()&&(_0x1427dd[_0x1b5598(0x140)]=!![]),await this[_0x1b5598(0x131)][_0x1b5598(0x13a)](_0x1427dd);}return'';}async[a11_0x178d79(0x11b)](_0x340e0c){const _0x5d7640=a11_0x178d79;if(this['apitest']){const _0x27d971={'module':_0x340e0c};return this['Environment'][_0x5d7640(0x133)]()&&(_0x27d971['filepath']=!![]),await this[_0x5d7640(0x131)]['apidoc'](_0x27d971);}return'';}async[a11_0x178d79(0x11d)](){const _0x56250d=a11_0x178d79;if((0x0,path_1[_0x56250d(0x107)])(this[_0x56250d(0x10c)][_0x56250d(0x143)]['url'])){var _0x87694b=(0x0,path_1[_0x56250d(0x12b)])(__dirname,'../../public/'+this[_0x56250d(0x10c)][_0x56250d(0x143)][_0x56250d(0x11c)][_0x56250d(0x13c)]('/apiteststatic/','/'));if(_0x87694b[_0x56250d(0x10e)](_0x87694b['length']-0xb)!=_0x56250d(0x123)){this[_0x56250d(0x10c)]['set'](_0x56250d(0x12d),'public,\x20max-age=604800');if((0x0,path_1[_0x56250d(0x107)])(this['ctx'][_0x56250d(0x143)][_0x56250d(0x11c)])==_0x56250d(0x144))this['ctx'][_0x56250d(0x12e)]('content-type',_0x56250d(0x142));else(0x0,path_1[_0x56250d(0x107)])(this[_0x56250d(0x10c)][_0x56250d(0x143)][_0x56250d(0x11c)])==_0x56250d(0x13f)&&this[_0x56250d(0x10c)][_0x56250d(0x12e)]('content-type',_0x56250d(0x125));return(0x0,fs_1[_0x56250d(0x135)])(_0x87694b)&&(0x0,fs_1[_0x56250d(0x11a)])(_0x87694b,{'encoding':_0x56250d(0x14a)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x178d79(0x116)])(),__metadata(a11_0x178d79(0x109),Object)],ApitestStaticController['prototype'],a11_0x178d79(0x10c),void 0x0),__decorate([(0x0,decorator_2[a11_0x178d79(0x116)])(),__metadata(a11_0x178d79(0x109),core_1[a11_0x178d79(0x146)])],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x11e),void 0x0),__decorate([(0x0,decorator_2[a11_0x178d79(0x116)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x131),void 0x0),__decorate([(0x0,decorator_2['Config'])('apitest'),__metadata(a11_0x178d79(0x109),Boolean)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x120),void 0x0),__decorate([(0x0,decorator_2[a11_0x178d79(0x14b)])(a11_0x178d79(0x119)),__metadata(a11_0x178d79(0x109),Object)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x105),void 0x0),__decorate([(0x0,decorator_1[a11_0x178d79(0x112)])(a11_0x178d79(0x12f)),__metadata(a11_0x178d79(0x109),Function),__metadata(a11_0x178d79(0x117),[]),__metadata(a11_0x178d79(0x141),Promise)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x148),null),__decorate([(0x0,decorator_1[a11_0x178d79(0x112)])(a11_0x178d79(0x147)),__param(0x0,(0x0,decorator_1[a11_0x178d79(0x12c)])('module')),__metadata('design:type',Function),__metadata(a11_0x178d79(0x117),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x178d79(0x10a)],a11_0x178d79(0x11b),null),__decorate([(0x0,decorator_1[a11_0x178d79(0x112)])(a11_0x178d79(0x108)),__metadata('design:type',Function),__metadata(a11_0x178d79(0x117),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x178d79(0x11d),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2[a11_0x178d79(0x127)])(decorator_2['ScopeEnum']['Request'])],ApitestStaticController),exports[a11_0x178d79(0x110)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a12_0x21fe(){const _0x370f2a=['2881116sPAPkF','startsWith','public/xlsx','Scope','key','app','getAppDir','getOwnPropertyDescriptor','length','Workbook','addWorksheet','design:type','header','keys','toString','isNumber','writeFile','6ymAJbO','exceljs','defineProperty','mkdirSync','random','handler','/public/xlsx','ExcelService','__metadata','metadata','1013433piEPPd','eachCell','.xlsx','cellCount','4898624CYZSlo','@midwayjs/decorator','trim','5KReyRG','readFile','endsWith','getRow','__esModule','\x20is\x20read\x20fail','function','value','Provide','App','9152568AztMGq','col','1594196PfBsJk','export','64510WpTSeb','substring','getCell','columns','1926IkvXoq','182720DROXXf','decorate','Api\x20Excel\x20Error:\x20','xlsx','object','replace','ScopeEnum'];a12_0x21fe=function(){return _0x370f2a;};return a12_0x21fe();}const a12_0x142d3a=a12_0x3d15;function a12_0x3d15(_0x45e196,_0x40baa0){const _0x21fe14=a12_0x21fe();return a12_0x3d15=function(_0x3d1549,_0x5a1b75){_0x3d1549=_0x3d1549-0x174;let _0x4d313e=_0x21fe14[_0x3d1549];return _0x4d313e;},a12_0x3d15(_0x45e196,_0x40baa0);}(function(_0x385bb4,_0x33ee06){const _0x190a32=a12_0x3d15,_0x7ad247=_0x385bb4();while(!![]){try{const _0x42f5f3=-parseInt(_0x190a32(0x191))/0x1+-parseInt(_0x190a32(0x1a9))/0x2*(-parseInt(_0x190a32(0x177))/0x3)+parseInt(_0x190a32(0x18a))/0x4*(parseInt(_0x190a32(0x17e))/0x5)+-parseInt(_0x190a32(0x188))/0x6+parseInt(_0x190a32(0x198))/0x7+-parseInt(_0x190a32(0x17b))/0x8+-parseInt(_0x190a32(0x190))/0x9*(-parseInt(_0x190a32(0x18c))/0xa);if(_0x42f5f3===_0x33ee06)break;else _0x7ad247['push'](_0x7ad247['shift']());}catch(_0x293921){_0x7ad247['push'](_0x7ad247['shift']());}}}(a12_0x21fe,0xd7b98));var __decorate=this&&this['__decorate']||function(_0x4a6f7d,_0x2c794e,_0x1e8a45,_0x31ae2f){const _0xacfd56=a12_0x3d15;var _0x1c29b2=arguments[_0xacfd56(0x1a0)],_0xd57072=_0x1c29b2<0x3?_0x2c794e:_0x31ae2f===null?_0x31ae2f=Object[_0xacfd56(0x19f)](_0x2c794e,_0x1e8a45):_0x31ae2f,_0x470830;if(typeof Reflect===_0xacfd56(0x195)&&typeof Reflect[_0xacfd56(0x192)]==='function')_0xd57072=Reflect[_0xacfd56(0x192)](_0x4a6f7d,_0x2c794e,_0x1e8a45,_0x31ae2f);else{for(var _0x32e305=_0x4a6f7d[_0xacfd56(0x1a0)]-0x1;_0x32e305>=0x0;_0x32e305--)if(_0x470830=_0x4a6f7d[_0x32e305])_0xd57072=(_0x1c29b2<0x3?_0x470830(_0xd57072):_0x1c29b2>0x3?_0x470830(_0x2c794e,_0x1e8a45,_0xd57072):_0x470830(_0x2c794e,_0x1e8a45))||_0xd57072;}return _0x1c29b2>0x3&&_0xd57072&&Object[_0xacfd56(0x1ab)](_0x2c794e,_0x1e8a45,_0xd57072),_0xd57072;},__metadata=this&&this[a12_0x142d3a(0x175)]||function(_0x4eb437,_0x4fc242){const _0x2d9199=a12_0x142d3a;if(typeof Reflect===_0x2d9199(0x195)&&typeof Reflect[_0x2d9199(0x176)]===_0x2d9199(0x184))return Reflect[_0x2d9199(0x176)](_0x4eb437,_0x4fc242);};Object[a12_0x142d3a(0x1ab)](exports,a12_0x142d3a(0x182),{'value':!![]}),exports[a12_0x142d3a(0x174)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x142d3a(0x1aa)),koasend=require('koa-send'),decorator_1=require(a12_0x142d3a(0x17c));let ExcelService=class ExcelService{async['parse'](_0x3d6693,_0x35f5fc,_0x54d857=[0x0]){const _0x51de23=a12_0x142d3a;var _0x20f58a,_0xaa7118;const _0x3c442c=new exceljs[(_0x51de23(0x1a1))](),_0x3dd95c=[];let _0x599408=_0x3d6693['replace'](/(\\|\/)/g,'/')[_0x51de23(0x196)](/\/{2,}/g,'/');!(_0x599408===null||_0x599408===void 0x0?void 0x0:_0x599408[_0x51de23(0x199)]('/'))&&(_0x599408=this['app'][_0x51de23(0x19e)]()+'/'+_0x599408);try{await _0x3c442c[_0x51de23(0x194)][_0x51de23(0x17f)](_0x599408);}catch(_0x34860a){return console['log'](_0x51de23(0x193)+_0x599408+_0x51de23(0x183)),_0x3dd95c;}for(const _0x729236 of _0x54d857){const _0x4125d4=lodash[_0x51de23(0x1a7)](_0x729236)?((_0x20f58a=_0x3c442c['worksheets'])===null||_0x20f58a===void 0x0?void 0x0:_0x20f58a[_0x729236])||undefined:_0x3c442c['getWorksheet'](_0x729236);if(_0x4125d4){var _0x5d123a=0x1;const _0x5f0954=_0x4125d4[_0x51de23(0x181)](0x1),_0x51081e=await new Promise(_0x1a3797=>{const _0x34d5df=_0x51de23,_0x3647d9={};_0x5f0954[_0x34d5df(0x178)]((_0x192917,_0x328470)=>{const _0x5181ac=_0x34d5df;for(const _0x10f8b8 of _0x35f5fc){if(_0x192917[_0x5181ac(0x185)]==_0x10f8b8[_0x5181ac(0x1a4)])_0x5d123a=0x2,_0x3647d9[_0x10f8b8[_0x5181ac(0x19c)]]={'header':_0x192917['col'],'handler':_0x10f8b8[_0x5181ac(0x1ae)]};else{if(!_0x3647d9[_0x10f8b8[_0x5181ac(0x19c)]])try{const _0x5aceda=_0x5f0954[_0x5181ac(0x18e)](_0x10f8b8[_0x5181ac(0x1a4)]);_0x5aceda&&(_0x3647d9[_0x10f8b8['key']]={'header':_0x5aceda[_0x5181ac(0x189)],'handler':_0x10f8b8['handler']});}catch{}}}_0x5f0954[_0x5181ac(0x17a)]==_0x328470&&_0x1a3797(_0x3647d9);});});for(const _0x7c7555 of _0x4125d4['findRows'](_0x5d123a,_0x4125d4['rowCount'])){const _0x229203={};for(const _0x33fbf8 in _0x51081e){_0x51081e[_0x33fbf8][_0x51de23(0x1a4)]&&(typeof((_0xaa7118=_0x51081e[_0x33fbf8])===null||_0xaa7118===void 0x0?void 0x0:_0xaa7118[_0x51de23(0x1ae)])==_0x51de23(0x184)?_0x229203[_0x33fbf8]=_0x51081e[_0x33fbf8][_0x51de23(0x1ae)](_0x7c7555[_0x51de23(0x18e)](lodash[_0x51de23(0x17d)](''+_0x51081e[_0x33fbf8][_0x51de23(0x1a4)],'\x20'))[_0x51de23(0x1a6)]()):_0x229203[_0x33fbf8]=_0x7c7555[_0x51de23(0x18e)](_0x51081e[_0x33fbf8][_0x51de23(0x1a4)])[_0x51de23(0x1a6)]());}Object[_0x51de23(0x1a5)](_0x229203)[_0x51de23(0x1a0)]>0x0&&_0x3dd95c['push'](_0x229203);}}}return _0x3dd95c;}async[a12_0x142d3a(0x18b)](_0x497eb5,_0xf1b59e,_0x393014,_0x2502a5=a12_0x142d3a(0x19a)){const _0x580fa7=a12_0x142d3a;var _0x2b235a,_0x37b620;const _0x33d161=new exceljs['Workbook'](),_0x485ae1={},_0x559831=[],_0x3fb615=_0x33d161[_0x580fa7(0x1a2)]('Sheet\x201',{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x4e2356 in _0xf1b59e){_0x485ae1[_0xf1b59e[_0x4e2356][_0x580fa7(0x19c)]]=_0xf1b59e[_0x4e2356][_0x580fa7(0x1a4)],_0x559831['push']({'header':_0xf1b59e[_0x4e2356]['header'],'key':(_0x2b235a=_0xf1b59e[_0x4e2356])===null||_0x2b235a===void 0x0?void 0x0:_0x2b235a[_0x580fa7(0x19c)][_0x580fa7(0x196)](/\./g,'_')});}_0x3fb615[_0x580fa7(0x18f)]=_0x559831;for(const _0x34bec6 of _0x393014){const _0x56931f={};for(const _0x8e5d6b in _0xf1b59e){typeof((_0x37b620=_0xf1b59e[_0x8e5d6b])===null||_0x37b620===void 0x0?void 0x0:_0x37b620[_0x580fa7(0x1ae)])==_0x580fa7(0x184)?_0x56931f[_0xf1b59e[_0x8e5d6b][_0x580fa7(0x19c)][_0x580fa7(0x196)](/\./g,'_')]=await _0xf1b59e[_0x8e5d6b][_0x580fa7(0x1ae)](_0x34bec6):_0x56931f[_0xf1b59e[_0x8e5d6b]['key']['replace'](/\./g,'_')]=lodash['get'](_0x34bec6,_0xf1b59e[_0x8e5d6b][_0x580fa7(0x19c)],'');}_0x3fb615['addRow'](_0x56931f);}let _0x2af4cf='';const _0x505820=_0x497eb5+'-'+lodash[_0x580fa7(0x1ad)](0x2710,0x1869f)+_0x580fa7(0x179);if(_0x2502a5&&_0x2502a5['startsWith']('/'))_0x2af4cf=''+_0x2502a5;else _0x2502a5&&!_0x2502a5[_0x580fa7(0x199)]('/')&&!_0x2502a5[_0x580fa7(0x199)]('\x5c')?_0x2af4cf=this['app'][_0x580fa7(0x19e)]()+'/'+_0x2502a5:_0x2af4cf=this[_0x580fa7(0x19d)]['getAppDir']()+_0x580fa7(0x1af);return(_0x2af4cf[_0x580fa7(0x180)]('/')||_0x2af4cf[_0x580fa7(0x180)]('\x5c'))&&(_0x2af4cf=_0x2af4cf[_0x580fa7(0x18d)](0x0,_0x2af4cf['length']-0x1)),_0x2af4cf=_0x2af4cf[_0x580fa7(0x196)](/(\\|\/)/g,'/')[_0x580fa7(0x196)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2af4cf)&&fs[_0x580fa7(0x1ac)](_0x2af4cf,{'recursive':!![]}),await _0x33d161[_0x580fa7(0x194)][_0x580fa7(0x1a8)]((_0x2af4cf+'/'+_0x505820)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x505820,'filepath':(_0x2af4cf[_0x580fa7(0x18d)]((''+this[_0x580fa7(0x19d)][_0x580fa7(0x19e)]())[_0x580fa7(0x1a0)])+'/'+_0x505820)[_0x580fa7(0x196)](/(\\|\/)/g,'/')[_0x580fa7(0x196)](/\/{2,}/g,'/')};}async['download'](_0x4a7585,_0x2be7d8){return await koasend(_0x4a7585,''+_0x2be7d8);}};__decorate([(0x0,decorator_1[a12_0x142d3a(0x187)])(),__metadata(a12_0x142d3a(0x1a3),Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x142d3a(0x186)])(),(0x0,decorator_1[a12_0x142d3a(0x19b)])(decorator_1[a12_0x142d3a(0x197)]['Singleton'])],ExcelService),exports[a12_0x142d3a(0x174)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a13_0x441f95=a13_0x19b5;(function(_0x3c4d62,_0x12c3de){var _0x4cb367=a13_0x19b5,_0x231b9f=_0x3c4d62();while(!![]){try{var _0x3a5b66=parseInt(_0x4cb367(0x1b2))/0x1+-parseInt(_0x4cb367(0x1b3))/0x2*(parseInt(_0x4cb367(0x1bf))/0x3)+parseInt(_0x4cb367(0x1c0))/0x4+parseInt(_0x4cb367(0x1b5))/0x5+-parseInt(_0x4cb367(0x1ba))/0x6*(parseInt(_0x4cb367(0x1b7))/0x7)+parseInt(_0x4cb367(0x1b4))/0x8+-parseInt(_0x4cb367(0x1bb))/0x9;if(_0x3a5b66===_0x12c3de)break;else _0x231b9f['push'](_0x231b9f['shift']());}catch(_0x2d0f3a){_0x231b9f['push'](_0x231b9f['shift']());}}}(a13_0x4bdb,0x71322));function a13_0x19b5(_0x4ecebc,_0x240c25){var _0x4bdbdd=a13_0x4bdb();return a13_0x19b5=function(_0x19b58d,_0x12de53){_0x19b58d=_0x19b58d-0x1af;var _0x533a04=_0x4bdbdd[_0x19b58d];return _0x533a04;},a13_0x19b5(_0x4ecebc,_0x240c25);}function a13_0x4bdb(){var _0x3881b6=['3282496BAFMxj','3300075awEEFU','anncic-api:action','1544221vkcCEA','APPSCONFIG_KEY','anncic-api:apps:config','12LluBYE','12159117kQTDCY','__esModule','ACTION_KEY','ACTION_ROUTE_KEY','27IjhWsA','2414712wtwpHl','anncic-api:action:route','AppsConfigTmp','defineProperty','916673iPbIyg','74402TOvYht'];a13_0x4bdb=function(){return _0x3881b6;};return a13_0x4bdb();}Object[a13_0x441f95(0x1b1)](exports,a13_0x441f95(0x1bc),{'value':!![]}),exports[a13_0x441f95(0x1b0)]=exports[a13_0x441f95(0x1b8)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x441f95(0x1bd)]=void 0x0,exports['ACTION_KEY']=a13_0x441f95(0x1b6),exports[a13_0x441f95(0x1be)]=a13_0x441f95(0x1af),exports['APPSCONFIG_KEY']=a13_0x441f95(0x1b9);class AppsConfigTmp{}exports[a13_0x441f95(0x1b0)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a14_0x1cab57=a14_0x2114;(function(_0x3d7716,_0xa06efd){var _0x44d484=a14_0x2114,_0x3f9c88=_0x3d7716();while(!![]){try{var _0x299d7c=-parseInt(_0x44d484(0x15c))/0x1*(-parseInt(_0x44d484(0x159))/0x2)+-parseInt(_0x44d484(0x15a))/0x3*(-parseInt(_0x44d484(0x162))/0x4)+-parseInt(_0x44d484(0x146))/0x5*(-parseInt(_0x44d484(0x155))/0x6)+-parseInt(_0x44d484(0x154))/0x7+parseInt(_0x44d484(0x14b))/0x8+-parseInt(_0x44d484(0x144))/0x9+-parseInt(_0x44d484(0x142))/0xa;if(_0x299d7c===_0xa06efd)break;else _0x3f9c88['push'](_0x3f9c88['shift']());}catch(_0x369fd1){_0x3f9c88['push'](_0x3f9c88['shift']());}}}(a14_0x361c,0xa9dc6));function a14_0x2114(_0x516f46,_0x324250){var _0x361c6e=a14_0x361c();return a14_0x2114=function(_0x211437,_0x1b7bf6){_0x211437=_0x211437-0x13c;var _0x504387=_0x361c6e[_0x211437];return _0x504387;},a14_0x2114(_0x516f46,_0x324250);}var __decorate=this&&this[a14_0x1cab57(0x14c)]||function(_0x296d40,_0x5e4f48,_0x5f36bf,_0x5ab51c){var _0x2addd9=a14_0x1cab57,_0x33c9ca=arguments[_0x2addd9(0x140)],_0xb16c8f=_0x33c9ca<0x3?_0x5e4f48:_0x5ab51c===null?_0x5ab51c=Object['getOwnPropertyDescriptor'](_0x5e4f48,_0x5f36bf):_0x5ab51c,_0x507ac9;if(typeof Reflect===_0x2addd9(0x150)&&typeof Reflect[_0x2addd9(0x14e)]===_0x2addd9(0x147))_0xb16c8f=Reflect[_0x2addd9(0x14e)](_0x296d40,_0x5e4f48,_0x5f36bf,_0x5ab51c);else{for(var _0x518048=_0x296d40[_0x2addd9(0x140)]-0x1;_0x518048>=0x0;_0x518048--)if(_0x507ac9=_0x296d40[_0x518048])_0xb16c8f=(_0x33c9ca<0x3?_0x507ac9(_0xb16c8f):_0x33c9ca>0x3?_0x507ac9(_0x5e4f48,_0x5f36bf,_0xb16c8f):_0x507ac9(_0x5e4f48,_0x5f36bf))||_0xb16c8f;}return _0x33c9ca>0x3&&_0xb16c8f&&Object[_0x2addd9(0x143)](_0x5e4f48,_0x5f36bf,_0xb16c8f),_0xb16c8f;},__metadata=this&&this[a14_0x1cab57(0x15b)]||function(_0x3eaa5b,_0x5889cd){var _0x5208db=a14_0x1cab57;if(typeof Reflect===_0x5208db(0x150)&&typeof Reflect[_0x5208db(0x148)]===_0x5208db(0x147))return Reflect['metadata'](_0x3eaa5b,_0x5889cd);};Object[a14_0x1cab57(0x143)](exports,a14_0x1cab57(0x15e),{'value':!![]}),exports[a14_0x1cab57(0x158)]=void 0x0;const validator_1=require(a14_0x1cab57(0x13e));function a14_0x361c(){var _0x2636ff=['481208SmsCta','__decorate','是否倒序','decorate','第一页为1,第二页为2','object','integer','分页数量','_order','1713320YILKSr','60tSlRDG','Rule','trim','PageDTO','1180miOOja','1033989zmvCiH','__metadata','1369BQaPcv','_size','__esModule','number','string','_isreverse','4zeDUZi','排序方式','prototype','@anncic-api/validator','design:type','length','RuleType','2408870titUIJ','defineProperty','9999693rdjHyy','min','539975PcGezR','function','metadata','valid','1:是;0:否'];a14_0x361c=function(){return _0x2636ff;};return a14_0x361c();}class PageDTO{}__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])('分页',validator_1['RuleType'][a14_0x1cab57(0x15f)]()[a14_0x1cab57(0x151)]()[a14_0x1cab57(0x145)](0x1),a14_0x1cab57(0x14f)),__metadata(a14_0x1cab57(0x13f),Number)],PageDTO[a14_0x1cab57(0x13d)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])(a14_0x1cab57(0x152),validator_1[a14_0x1cab57(0x141)][a14_0x1cab57(0x15f)]()['integer']()[a14_0x1cab57(0x145)](0x1)),__metadata(a14_0x1cab57(0x13f),Number)],PageDTO['prototype'],a14_0x1cab57(0x15d),void 0x0),__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])(a14_0x1cab57(0x13c),validator_1[a14_0x1cab57(0x141)][a14_0x1cab57(0x160)]()[a14_0x1cab57(0x157)]()),__metadata(a14_0x1cab57(0x13f),String)],PageDTO[a14_0x1cab57(0x13d)],a14_0x1cab57(0x153),void 0x0),__decorate([(0x0,validator_1[a14_0x1cab57(0x156)])(a14_0x1cab57(0x14d),validator_1[a14_0x1cab57(0x141)][a14_0x1cab57(0x15f)]()['integer']()[a14_0x1cab57(0x149)](0x0,0x1),a14_0x1cab57(0x14a)),__metadata(a14_0x1cab57(0x13f),Number)],PageDTO[a14_0x1cab57(0x13d)],a14_0x1cab57(0x161),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.49",
|
|
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.49",
|
|
21
|
+
"@anncic-api/core": "^1.1.49",
|
|
22
|
+
"@anncic-api/event": "^1.1.49",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.49",
|
|
24
|
+
"@anncic-api/validator": "^1.1.49",
|
|
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.49",
|
|
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": "10ab408455a086be10e39bc4b73ea68053dd103e"
|
|
43
43
|
}
|