anncic-api 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x31167b=a0_0x549f;function a0_0x549f(_0x351709,_0x6032ec){var _0x1e8b48=a0_0x1e8b();return a0_0x549f=function(_0x549fcb,_0x342ac4){_0x549fcb=_0x549fcb-0x1e8;var _0x5b0bd5=_0x1e8b48[_0x549fcb];return _0x5b0bd5;},a0_0x549f(_0x351709,_0x6032ec);}(function(_0x33b272,_0x10d4cf){var _0xe0dad0=a0_0x549f,_0x3e3fc8=_0x33b272();while(!![]){try{var _0x4fda47=parseInt(_0xe0dad0(0x1f5))/0x1+-parseInt(_0xe0dad0(0x1f3))/0x2+parseInt(_0xe0dad0(0x1ec))/0x3*(parseInt(_0xe0dad0(0x1ef))/0x4)+parseInt(_0xe0dad0(0x1f0))/0x5+-parseInt(_0xe0dad0(0x1f8))/0x6*(-parseInt(_0xe0dad0(0x1fa))/0x7)+parseInt(_0xe0dad0(0x1f9))/0x8*(-parseInt(_0xe0dad0(0x1f2))/0x9)+-parseInt(_0xe0dad0(0x1f4))/0xa;if(_0x4fda47===_0x10d4cf)break;else _0x3e3fc8['push'](_0x3e3fc8['shift']());}catch(_0x137bcd){_0x3e3fc8['push'](_0x3e3fc8['shift']());}}}(a0_0x1e8b,0x46de2));Object[a0_0x31167b(0x1ee)](exports,a0_0x31167b(0x1f6),{'value':!![]}),exports[a0_0x31167b(0x1e8)]=_0x55cd19=>{var _0x23578b=a0_0x31167b;return{'apitest':!![],'keys':_0x55cd19[_0x23578b(0x1e9)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x23578b(0x1ea),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x23578b(0x1eb),'form','text',_0x23578b(0x1f7)],'formLimit':'20mb','jsonLimit':_0x23578b(0x1ed),'textLimit':'20mb','xmlLimit':'20mb'},'upload':{'tmpdir':_0x55cd19['appDir']+_0x23578b(0x1f1),'cleanTimeout':0x5265c00}};};function a0_0x1e8b(){var _0x519202=['json','3YjMXFT','20mb','defineProperty','237304zxwpWw','2324155MASYtf','/runtime/.upload','1143eIcXde','45780QGWALs','4284160FxMkJa','396738PHIUej','__esModule','xml','639372WNtnba','18008lMtvxD','7UyyyRN','default','name','dhauo1234420123gg3234901'];a0_0x1e8b=function(){return _0x519202;};return a0_0x1e8b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x131dfe=a1_0x492d;(function(_0x1d0859,_0x16297e){var _0x18a18b=a1_0x492d,_0x331951=_0x1d0859();while(!![]){try{var _0xd701c9=parseInt(_0x18a18b(0xa5))/0x1*(-parseInt(_0x18a18b(0xaa))/0x2)+-parseInt(_0x18a18b(0xa7))/0x3*(-parseInt(_0x18a18b(0xa9))/0x4)+parseInt(_0x18a18b(0xa6))/0x5+-parseInt(_0x18a18b(0xa8))/0x6+-parseInt(_0x18a18b(0xab))/0x7+-parseInt(_0x18a18b(0xad))/0x8+parseInt(_0x18a18b(0xa4))/0x9;if(_0xd701c9===_0x16297e)break;else _0x331951['push'](_0x331951['shift']());}catch(_0x2e3d22){_0x331951['push'](_0x331951['shift']());}}}(a1_0x589d,0x49587));function a1_0x492d(_0x47527a,_0x266f5a){var _0x589d87=a1_0x589d();return a1_0x492d=function(_0x492d72,_0x308438){_0x492d72=_0x492d72-0xa4;var _0x6601be=_0x589d87[_0x492d72];return _0x6601be;},a1_0x492d(_0x47527a,_0x266f5a);}function a1_0x589d(){var _0x3284d1=['4tkPxJV','9382OPLTsz','2636613PeZDZO','defineProperty','2772680GvOiTz','default','8783442VJpYgw','109inapSN','2539305rdVxwP','1304772IcXpHB','2302422IYcYPh'];a1_0x589d=function(){return _0x3284d1;};return a1_0x589d();}Object[a1_0x131dfe(0xac)](exports,'__esModule',{'value':!![]}),exports[a1_0x131dfe(0xae)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x32b725=a2_0x4f4c;(function(_0x3f90ee,_0x2edf61){const _0xa8398c=a2_0x4f4c,_0x1ec6d2=_0x3f90ee();while(!![]){try{const _0x258a45=-parseInt(_0xa8398c(0xf1))/0x1*(-parseInt(_0xa8398c(0xfd))/0x2)+parseInt(_0xa8398c(0x130))/0x3+-parseInt(_0xa8398c(0xfc))/0x4*(parseInt(_0xa8398c(0x10f))/0x5)+parseInt(_0xa8398c(0x11a))/0x6+parseInt(_0xa8398c(0x101))/0x7+parseInt(_0xa8398c(0xeb))/0x8+-parseInt(_0xa8398c(0x112))/0x9*(parseInt(_0xa8398c(0x13a))/0xa);if(_0x258a45===_0x2edf61)break;else _0x1ec6d2['push'](_0x1ec6d2['shift']());}catch(_0x2fb9b1){_0x1ec6d2['push'](_0x1ec6d2['shift']());}}}(a2_0xef97,0x30e14));var __decorate=this&&this[a2_0x32b725(0x109)]||function(_0x3e29ef,_0x4f6ebb,_0x2a028a,_0x202429){const _0x721602=a2_0x32b725;var _0x5c25a0=arguments['length'],_0x5a5030=_0x5c25a0<0x3?_0x4f6ebb:_0x202429===null?_0x202429=Object[_0x721602(0x10c)](_0x4f6ebb,_0x2a028a):_0x202429,_0x4c2835;if(typeof Reflect===_0x721602(0xe6)&&typeof Reflect[_0x721602(0xf7)]===_0x721602(0x137))_0x5a5030=Reflect[_0x721602(0xf7)](_0x3e29ef,_0x4f6ebb,_0x2a028a,_0x202429);else{for(var _0x2f16d9=_0x3e29ef[_0x721602(0x123)]-0x1;_0x2f16d9>=0x0;_0x2f16d9--)if(_0x4c2835=_0x3e29ef[_0x2f16d9])_0x5a5030=(_0x5c25a0<0x3?_0x4c2835(_0x5a5030):_0x5c25a0>0x3?_0x4c2835(_0x4f6ebb,_0x2a028a,_0x5a5030):_0x4c2835(_0x4f6ebb,_0x2a028a))||_0x5a5030;}return _0x5c25a0>0x3&&_0x5a5030&&Object['defineProperty'](_0x4f6ebb,_0x2a028a,_0x5a5030),_0x5a5030;},__metadata=this&&this[a2_0x32b725(0x12b)]||function(_0x7e5ad5,_0x37167c){const _0x57937a=a2_0x32b725;if(typeof Reflect===_0x57937a(0xe6)&&typeof Reflect[_0x57937a(0xea)]===_0x57937a(0x137))return Reflect[_0x57937a(0xea)](_0x7e5ad5,_0x37167c);};function a2_0x4f4c(_0x212b8c,_0x35a92c){const _0xef976d=a2_0xef97();return a2_0x4f4c=function(_0x4f4ce3,_0x114f04){_0x4f4ce3=_0x4f4ce3-0xe0;let _0x45dbd9=_0xef976d[_0x4f4ce3];return _0x45dbd9;},a2_0x4f4c(_0x212b8c,_0x35a92c);}Object[a2_0x32b725(0x100)](exports,a2_0x32b725(0x13b),{'value':!![]}),exports[a2_0x32b725(0xee)]=void 0x0;function a2_0xef97(){const _0x36563f=['object','tmpdir','defaultsDeep','environment','metadata','636424MrFAdH','device','@anncic-api/cache','CustomConfiguration','checkConfigKeys','proceed','170349lPBegt','@midwayjs/upload','input','DEFAULT','intercept','hanlderApplications','decorate','forEach','_matchedRoute','./types/action','REQUEST_OBJ_CTX_KEY','24ezxaLi','2iyVRnW','getApplications','registerMethodHandler','defineProperty','2390262skkRGo','bodyXml','anncicapi','./config/config.default','method','dirs','toLowerCase','request','__decorate','devices','context','getOwnPropertyDescriptor','mkdirSync','getConfiguration','34695TtsbJN','onReady','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','9QvDjUf','defineProperties','@midwayjs/koa','requestContext','body','key','@midwayjs/static-file','target','508704czeJMM','log','upload','headers','isArray','addObject','string','application','Inject','length','koa','./exception/ApiError','design:type','Types','isString','@midwayjs/core','handler','__metadata','config','MidwayEnvironmentService','staticFile','@midwayjs/i18n','762315TsAxyT','query','Anncic-api\x20static-file\x20:\x20mkdir\x20','apimit','isClass','prototype','@midwayjs/cross-domain','function','dir','keys','6884110PmBael','__esModule','getAsync','@anncic-api/validator','ApiService','./config/config.production','filterConfig','HEADERS_SIGNATURE','anncic-api','MidwayDecoratorService','MidwayConfigService','handlerActionRoute','@anncic-api/core','ApiError','decorator','anncic-apihelper'];a2_0xef97=function(){return _0x36563f;};return a2_0xef97();}const core_1=require(a2_0x32b725(0x129)),core_2=require(a2_0x32b725(0x129)),ApiError_1=require(a2_0x32b725(0x125)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x32b725(0xfa)),fs=require('fs'),koa=require(a2_0x32b725(0x114)),i18n=require(a2_0x32b725(0x12f)),upload=require(a2_0x32b725(0xf2)),staticFile=require(a2_0x32b725(0x118)),crossDomain=require(a2_0x32b725(0x136)),ConfigDefault=require(a2_0x32b725(0x104)),ConfigProduction=require(a2_0x32b725(0x13f)),anncic=require(a2_0x32b725(0xe2)),anncicCache=require(a2_0x32b725(0xed)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x32b725(0x13d)),anncicHelper=require(a2_0x32b725(0xe5));let CustomConfiguration=class CustomConfiguration{async[a2_0x32b725(0x110)](){const _0x5950a6=a2_0x32b725;await this[_0x5950a6(0x140)](),await this[_0x5950a6(0xef)](),await this[_0x5950a6(0xe1)](),await this['hanlderApplications']();}async[a2_0x32b725(0xef)](){}async[a2_0x32b725(0xe1)](){const _0x16ba02=a2_0x32b725,_0xdb698=this[_0x16ba02(0x12c)][_0x16ba02(0x10e)]();this[_0x16ba02(0xe4)][_0x16ba02(0xff)](action_1['ACTION_ROUTE_KEY'],_0x5e978f=>{const _0x476b42=_0x5e978f['metadata'];return{'before':async _0x39deaa=>{const _0x165f44=a2_0x4f4c;var _0x2eeb54,_0x3fec0f;const _0x1f013b=(_0x2eeb54=_0x39deaa===null||_0x39deaa===void 0x0?void 0x0:_0x39deaa[_0x165f44(0x119)])===null||_0x2eeb54===void 0x0?void 0x0:_0x2eeb54[core_2[_0x165f44(0xfb)]];if(_0x1f013b&&(_0x476b42===null||_0x476b42===void 0x0?void 0x0:_0x476b42['apimit'])){if(!this['ApiService']['checksign']((_0x3fec0f=_0x1f013b===null||_0x1f013b===void 0x0?void 0x0:_0x1f013b[_0x165f44(0x108)])===null||_0x3fec0f===void 0x0?void 0x0:_0x3fec0f[_0x165f44(0x11d)]))throw new AnnError(ApiError_1[_0x165f44(0xe3)][_0x165f44(0x141)]);}},'around':async _0x59185e=>{const _0x219221=a2_0x4f4c;var _0x19d752,_0x24c948,_0x4785f8,_0x44ae06,_0x155a6f;const _0x6df6d1=(_0x19d752=_0x59185e===null||_0x59185e===void 0x0?void 0x0:_0x59185e[_0x219221(0x119)])===null||_0x19d752===void 0x0?void 0x0:_0x19d752[core_2[_0x219221(0xfb)]];if(_0x6df6d1&&(_0x476b42===null||_0x476b42===void 0x0?void 0x0:_0x476b42[_0x219221(0x133)])){if(((_0x24c948=_0x6df6d1[_0x219221(0x11d)])===null||_0x24c948===void 0x0?void 0x0:_0x24c948[_0x219221(0xec)])&&((_0x155a6f=(_0x44ae06=(_0x4785f8=_0xdb698===null||_0xdb698===void 0x0?void 0x0:_0xdb698[_0x219221(0x103)])===null||_0x4785f8===void 0x0?void 0x0:_0x4785f8[_0x219221(0x10a)])===null||_0x44ae06===void 0x0?void 0x0:_0x44ae06[_0x6df6d1[_0x219221(0x11d)][_0x219221(0xec)]])===null||_0x155a6f===void 0x0?void 0x0:_0x155a6f[_0x219221(0xf5)])){const _0x89ade4=Array['isArray'](_0xdb698[_0x219221(0x103)]['devices'][_0x6df6d1[_0x219221(0x11d)][_0x219221(0xec)]]['intercept'])?_0xdb698[_0x219221(0x103)]['devices'][_0x6df6d1[_0x219221(0x11d)][_0x219221(0xec)]][_0x219221(0xf5)]:[_0xdb698['anncicapi'][_0x219221(0x10a)][_0x6df6d1[_0x219221(0x11d)][_0x219221(0xec)]][_0x219221(0xf5)]];for(const _0x565d27 of _0x89ade4){if(core_1[_0x219221(0x127)][_0x219221(0x134)](_0x565d27)||typeof _0x565d27==_0x219221(0x120)){const _0x533c82=await _0x6df6d1[_0x219221(0x115)][_0x219221(0x13c)](_0x565d27);typeof(_0x533c82===null||_0x533c82===void 0x0?void 0x0:_0x533c82[_0x219221(0x12a)])==_0x219221(0x137)&&await _0x533c82[_0x219221(0x12a)](typeof(_0x6df6d1===null||_0x6df6d1===void 0x0?void 0x0:_0x6df6d1[_0x219221(0x105)])=='string'&&(_0x6df6d1===null||_0x6df6d1===void 0x0?void 0x0:_0x6df6d1[_0x219221(0xf9)])?_0x6df6d1['method'][_0x219221(0x107)]()+'@'+(_0x6df6d1===null||_0x6df6d1===void 0x0?void 0x0:_0x6df6d1[_0x219221(0xf9)]):undefined,_0x6df6d1,_0x476b42);}else core_1[_0x219221(0x127)]['isFunction'](_0x565d27)&&await _0x565d27(typeof(_0x6df6d1===null||_0x6df6d1===void 0x0?void 0x0:_0x6df6d1[_0x219221(0x105)])==_0x219221(0x120)&&(_0x6df6d1===null||_0x6df6d1===void 0x0?void 0x0:_0x6df6d1[_0x219221(0xf9)])?_0x6df6d1[_0x219221(0x105)]['toLowerCase']()+'@'+(_0x6df6d1===null||_0x6df6d1===void 0x0?void 0x0:_0x6df6d1[_0x219221(0xf9)]):undefined,_0x6df6d1,_0x476b42);}}}return await _0x59185e[_0x219221(0xf0)](..._0x59185e['args']);},'afterThrow':(_0x1e0001,_0x3c796a)=>{throw _0x3c796a;}};});}async[a2_0x32b725(0xf6)](){const _0x533f4f=a2_0x32b725;this[_0x533f4f(0x121)][_0x533f4f(0xfe)]([_0x533f4f(0x124)])[_0x533f4f(0xf8)](_0x3b6745=>{const _0x3db368=_0x533f4f;(_0x3b6745===null||_0x3b6745===void 0x0?void 0x0:_0x3b6745['context'])&&Object[_0x3db368(0x113)](_0x3b6745[_0x3db368(0x10b)],{'ok':{'value':function(_0x3b2e0c,_0x5cdd1e,_0xfb3e69=0x0){return{'code':_0xfb3e69,'data':_0x3b2e0c,'extra':_0x5cdd1e};}},'input':{'value':function(_0x5797fc,_0x45bfb8){const _0x81db62=_0x3db368;var _0x5dab0b;const _0x553f8e=lodash[_0x81db62(0xe8)]({},this[_0x81db62(0x108)][_0x81db62(0x116)]||this[_0x81db62(0x108)][((_0x5dab0b=config===null||config===void 0x0?void 0x0:config[_0x81db62(0x102)])===null||_0x5dab0b===void 0x0?void 0x0:_0x5dab0b[_0x81db62(0x117)])||'body']||{},this[_0x81db62(0x108)][_0x81db62(0x131)]||{});return _0x5797fc?lodash['get'](_0x553f8e,_0x5797fc,_0x45bfb8):_0x553f8e;}},'when':{'value':async function(_0x1b283d,_0x179bca){const _0x2fee40=_0x3db368,_0x64bd7d=this[_0x2fee40(0xf3)](_0x1b283d,null);if(!lodash['isNull'](_0x64bd7d))return await _0x179bca(_0x64bd7d);}},'only':{'value':function(_0x5154c5){const _0x4801f6=_0x3db368,_0xb672c9={};for(let _0x45e13b=0x0;_0x45e13b<_0x5154c5[_0x4801f6(0x123)];_0x45e13b++){lodash[_0x4801f6(0x11e)](_0x5154c5[_0x45e13b])&&_0x5154c5[_0x45e13b][_0x4801f6(0x123)]>0x0&&lodash[_0x4801f6(0x128)](_0x5154c5[_0x45e13b][0x0])&&(_0xb672c9[_0x5154c5[_0x45e13b][0x0]]=this[_0x4801f6(0xf3)](_0x5154c5[_0x45e13b][0x0],_0x5154c5[_0x45e13b]['length']>0x1?_0x5154c5[_0x45e13b][0x1]:null));}return _0xb672c9;}}});});}async[a2_0x32b725(0x140)](){const _0xe741e7=a2_0x32b725;var _0x3672b0,_0x579254,_0xe8bea6,_0x13bb39,_0x426a4f,_0x41442d;const _0x22010b=this[_0xe741e7(0x12c)][_0xe741e7(0x10e)]();((_0x579254=(_0x3672b0=_0x22010b===null||_0x22010b===void 0x0?void 0x0:_0x22010b[_0xe741e7(0x103)])===null||_0x3672b0===void 0x0?void 0x0:_0x3672b0[_0xe741e7(0x10a)])===null||_0x579254===void 0x0?void 0x0:_0x579254[_0xe741e7(0xf4)])&&Object[_0xe741e7(0x139)](_0x22010b['anncicapi'][_0xe741e7(0x10a)])[_0xe741e7(0x123)]>0x1&&delete _0x22010b[_0xe741e7(0x103)][_0xe741e7(0x10a)]['DEFAULT'];if((_0xe8bea6=_0x22010b===null||_0x22010b===void 0x0?void 0x0:_0x22010b[_0xe741e7(0x12e)])===null||_0xe8bea6===void 0x0?void 0x0:_0xe8bea6[_0xe741e7(0x106)])for(const _0x21eafe in _0x22010b[_0xe741e7(0x12e)][_0xe741e7(0x106)]){((_0x13bb39=_0x22010b['staticFile'][_0xe741e7(0x106)][_0x21eafe])===null||_0x13bb39===void 0x0?void 0x0:_0x13bb39[_0xe741e7(0x138)])&&typeof((_0x426a4f=_0x22010b[_0xe741e7(0x12e)][_0xe741e7(0x106)][_0x21eafe])===null||_0x426a4f===void 0x0?void 0x0:_0x426a4f[_0xe741e7(0x138)])=='string'&&!fs['existsSync'](_0x22010b[_0xe741e7(0x12e)][_0xe741e7(0x106)][_0x21eafe][_0xe741e7(0x138)])&&(fs[_0xe741e7(0x10d)](_0x22010b[_0xe741e7(0x12e)][_0xe741e7(0x106)][_0x21eafe]['dir'],{'recursive':!![]}),console[_0xe741e7(0x11b)](_0xe741e7(0x132)+_0x22010b[_0xe741e7(0x12e)][_0xe741e7(0x106)][_0x21eafe][_0xe741e7(0x138)]));}((_0x41442d=_0x22010b===null||_0x22010b===void 0x0?void 0x0:_0x22010b['upload'])===null||_0x41442d===void 0x0?void 0x0:_0x41442d['tmpdir'])&&!fs['existsSync'](_0x22010b[_0xe741e7(0x11c)][_0xe741e7(0xe7)])&&(fs[_0xe741e7(0x10d)](_0x22010b[_0xe741e7(0x11c)][_0xe741e7(0xe7)],{'recursive':!![]}),console['log'](_0xe741e7(0x111)+_0x22010b[_0xe741e7(0x11c)]['tmpdir'])),this[_0xe741e7(0x12c)][_0xe741e7(0x11f)](_0x22010b);}};__decorate([(0x0,core_1[a2_0x32b725(0x122)])(),__metadata(a2_0x32b725(0x126),core_2[a2_0x32b725(0xe0)])],CustomConfiguration['prototype'],a2_0x32b725(0x12c),void 0x0),__decorate([(0x0,core_1[a2_0x32b725(0x122)])(),__metadata(a2_0x32b725(0x126),core_2[a2_0x32b725(0x143)])],CustomConfiguration['prototype'],a2_0x32b725(0xe4),void 0x0),__decorate([(0x0,core_1[a2_0x32b725(0x122)])(),__metadata(a2_0x32b725(0x126),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x32b725(0x135)],a2_0x32b725(0x121),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x32b725(0x126),core_2[a2_0x32b725(0x12d)])],CustomConfiguration[a2_0x32b725(0x135)],a2_0x32b725(0xe9),void 0x0),__decorate([(0x0,core_1[a2_0x32b725(0x122)])(),__metadata(a2_0x32b725(0x126),ApiService_1[a2_0x32b725(0x13e)])],CustomConfiguration[a2_0x32b725(0x135)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x32b725(0x142),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x32b725(0xee)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x45e067=a2_0x3cfb;(function(_0x42ad4d,_0x4c99f2){const _0x54811a=a2_0x3cfb,_0x8c7f72=_0x42ad4d();while(!![]){try{const _0x4944b4=parseInt(_0x54811a(0x15c))/0x1*(-parseInt(_0x54811a(0x179))/0x2)+parseInt(_0x54811a(0x13a))/0x3+-parseInt(_0x54811a(0x11e))/0x4+parseInt(_0x54811a(0x125))/0x5+-parseInt(_0x54811a(0x14c))/0x6*(-parseInt(_0x54811a(0x139))/0x7)+-parseInt(_0x54811a(0x12e))/0x8+-parseInt(_0x54811a(0x175))/0x9*(-parseInt(_0x54811a(0x167))/0xa);if(_0x4944b4===_0x4c99f2)break;else _0x8c7f72['push'](_0x8c7f72['shift']());}catch(_0x31d280){_0x8c7f72['push'](_0x8c7f72['shift']());}}}(a2_0x5bdb,0xc6c95));function a2_0x3cfb(_0x418370,_0x1b3952){const _0x5bdb18=a2_0x5bdb();return a2_0x3cfb=function(_0x3cfb9d,_0x521134){_0x3cfb9d=_0x3cfb9d-0x11e;let _0x5e2359=_0x5bdb18[_0x3cfb9d];return _0x5e2359;},a2_0x3cfb(_0x418370,_0x1b3952);}var __decorate=this&&this[a2_0x45e067(0x132)]||function(_0x70eb7d,_0x3a4af4,_0x449d0e,_0x276b17){const _0x3dc4de=a2_0x45e067;var _0x85b45c=arguments[_0x3dc4de(0x15f)],_0x443bf8=_0x85b45c<0x3?_0x3a4af4:_0x276b17===null?_0x276b17=Object['getOwnPropertyDescriptor'](_0x3a4af4,_0x449d0e):_0x276b17,_0x568d4d;if(typeof Reflect===_0x3dc4de(0x176)&&typeof Reflect[_0x3dc4de(0x16c)]===_0x3dc4de(0x120))_0x443bf8=Reflect[_0x3dc4de(0x16c)](_0x70eb7d,_0x3a4af4,_0x449d0e,_0x276b17);else{for(var _0x85b7f=_0x70eb7d['length']-0x1;_0x85b7f>=0x0;_0x85b7f--)if(_0x568d4d=_0x70eb7d[_0x85b7f])_0x443bf8=(_0x85b45c<0x3?_0x568d4d(_0x443bf8):_0x85b45c>0x3?_0x568d4d(_0x3a4af4,_0x449d0e,_0x443bf8):_0x568d4d(_0x3a4af4,_0x449d0e))||_0x443bf8;}return _0x85b45c>0x3&&_0x443bf8&&Object[_0x3dc4de(0x17a)](_0x3a4af4,_0x449d0e,_0x443bf8),_0x443bf8;},__metadata=this&&this[a2_0x45e067(0x145)]||function(_0x3f31b0,_0x52f949){const _0x693a56=a2_0x45e067;if(typeof Reflect===_0x693a56(0x176)&&typeof Reflect[_0x693a56(0x148)]===_0x693a56(0x120))return Reflect[_0x693a56(0x148)](_0x3f31b0,_0x52f949);};function a2_0x5bdb(){const _0x232812=['DEFAULT','hanlderApplications','addObject','./config/config.default','./exception/ApiError','@midwayjs/koa','checkConfigKeys','_matchedRoute','__metadata','decorator','existsSync','metadata','MidwayApplicationManager','toLowerCase','method','601428hvOLxF','intercept','anncic-apihelper','environment','MidwayDecoratorService','body','handlerActionRoute','design:type','isArray','onReady','dirs','get','isNull','args','context','@anncic-api/typeorm','164oYtXaG','__esModule','staticFile','length','headers','string','@midwayjs/upload','MidwayEnvironmentService','Inject','upload','mkdirSync','10ZeeJva','ApiError','filterConfig','config','device','decorate','@midwayjs/core','tmpdir','requestContext','@midwayjs/cross-domain','@anncic-api/cache','koa','isClass','anncicapi','7003089OcCHap','object','@anncic-api/core','query','11714fpPcWT','defineProperty','key','1088852WJjQEf','ApiService','function','keys','./types/action','input','Configuration','1914785WYMPRM','anncic-api','application','./config/config.production','Anncic-api\x20static-file\x20:\x20mkdir\x20','devices','dir','defaultsDeep','prototype','8171208QYzhJJ','log','@midwayjs/i18n','CustomConfiguration','__decorate','forEach','getConfiguration','checksign','handler','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','request','28RmRYBQ','4519083SknlJM','@midwayjs/static-file','Types'];a2_0x5bdb=function(){return _0x232812;};return a2_0x5bdb();}Object[a2_0x45e067(0x17a)](exports,a2_0x45e067(0x15d),{'value':!![]}),exports[a2_0x45e067(0x131)]=void 0x0;const core_1=require(a2_0x45e067(0x16d)),core_2=require(a2_0x45e067(0x16d)),ApiError_1=require(a2_0x45e067(0x141)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x45e067(0x122)),fs=require('fs'),koa=require(a2_0x45e067(0x142)),i18n=require(a2_0x45e067(0x130)),upload=require(a2_0x45e067(0x162)),staticFile=require(a2_0x45e067(0x13b)),crossDomain=require(a2_0x45e067(0x170)),ConfigDefault=require(a2_0x45e067(0x140)),ConfigProduction=require(a2_0x45e067(0x128)),anncic=require(a2_0x45e067(0x177)),anncicCache=require(a2_0x45e067(0x171)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x45e067(0x15b)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x45e067(0x14e));let CustomConfiguration=class CustomConfiguration{async[a2_0x45e067(0x155)](){const _0x225da1=a2_0x45e067;await this[_0x225da1(0x169)](),await this['checkConfigKeys'](),await this[_0x225da1(0x152)](),await this[_0x225da1(0x13e)]();}async[a2_0x45e067(0x143)](){}async[a2_0x45e067(0x152)](){const _0x425574=a2_0x45e067,_0x4339d7=this[_0x425574(0x16a)][_0x425574(0x134)]();this[_0x425574(0x146)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x17e4fc=>{const _0x30f728=_0x425574,_0x473b60=_0x17e4fc[_0x30f728(0x148)];return{'before':async _0x520cec=>{const _0x2fd041=_0x30f728;var _0x45f5a6,_0x1910f9;const _0x10f83a=(_0x45f5a6=_0x520cec===null||_0x520cec===void 0x0?void 0x0:_0x520cec['target'])===null||_0x45f5a6===void 0x0?void 0x0:_0x45f5a6[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x10f83a&&(_0x473b60===null||_0x473b60===void 0x0?void 0x0:_0x473b60['apimit'])){if(!this['ApiService'][_0x2fd041(0x135)]((_0x1910f9=_0x10f83a===null||_0x10f83a===void 0x0?void 0x0:_0x10f83a['request'])===null||_0x1910f9===void 0x0?void 0x0:_0x1910f9[_0x2fd041(0x160)]))throw new AnnError(ApiError_1[_0x2fd041(0x168)]['HEADERS_SIGNATURE']);}},'around':async _0x3a453b=>{const _0x2a1af8=_0x30f728;var _0x66e422,_0x310ce8,_0x454562,_0x436b33,_0x152420;const _0x1d77e6=(_0x66e422=_0x3a453b===null||_0x3a453b===void 0x0?void 0x0:_0x3a453b['target'])===null||_0x66e422===void 0x0?void 0x0:_0x66e422[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1d77e6&&(_0x473b60===null||_0x473b60===void 0x0?void 0x0:_0x473b60['apimit'])){if(((_0x310ce8=_0x1d77e6[_0x2a1af8(0x160)])===null||_0x310ce8===void 0x0?void 0x0:_0x310ce8['device'])&&((_0x152420=(_0x436b33=(_0x454562=_0x4339d7===null||_0x4339d7===void 0x0?void 0x0:_0x4339d7['anncicapi'])===null||_0x454562===void 0x0?void 0x0:_0x454562[_0x2a1af8(0x12a)])===null||_0x436b33===void 0x0?void 0x0:_0x436b33[_0x1d77e6[_0x2a1af8(0x160)][_0x2a1af8(0x16b)]])===null||_0x152420===void 0x0?void 0x0:_0x152420[_0x2a1af8(0x14d)])){const _0xd63831=Array[_0x2a1af8(0x154)](_0x4339d7[_0x2a1af8(0x174)][_0x2a1af8(0x12a)][_0x1d77e6['headers'][_0x2a1af8(0x16b)]][_0x2a1af8(0x14d)])?_0x4339d7['anncicapi'][_0x2a1af8(0x12a)][_0x1d77e6[_0x2a1af8(0x160)][_0x2a1af8(0x16b)]][_0x2a1af8(0x14d)]:[_0x4339d7[_0x2a1af8(0x174)][_0x2a1af8(0x12a)][_0x1d77e6['headers'][_0x2a1af8(0x16b)]]['intercept']];for(const _0x4dd400 of _0xd63831){if(core_1[_0x2a1af8(0x13c)][_0x2a1af8(0x173)](_0x4dd400)||typeof _0x4dd400==_0x2a1af8(0x161)){const _0xf4128a=await _0x1d77e6[_0x2a1af8(0x16f)]['getAsync'](_0x4dd400);typeof(_0xf4128a===null||_0xf4128a===void 0x0?void 0x0:_0xf4128a['handler'])=='function'&&await _0xf4128a[_0x2a1af8(0x136)](typeof(_0x1d77e6===null||_0x1d77e6===void 0x0?void 0x0:_0x1d77e6[_0x2a1af8(0x14b)])==_0x2a1af8(0x161)&&(_0x1d77e6===null||_0x1d77e6===void 0x0?void 0x0:_0x1d77e6[_0x2a1af8(0x144)])?_0x1d77e6[_0x2a1af8(0x14b)][_0x2a1af8(0x14a)]()+'@'+(_0x1d77e6===null||_0x1d77e6===void 0x0?void 0x0:_0x1d77e6['_matchedRoute']):undefined,_0x1d77e6,_0x473b60);}else core_1[_0x2a1af8(0x13c)]['isFunction'](_0x4dd400)&&await _0x4dd400(typeof(_0x1d77e6===null||_0x1d77e6===void 0x0?void 0x0:_0x1d77e6[_0x2a1af8(0x14b)])==_0x2a1af8(0x161)&&(_0x1d77e6===null||_0x1d77e6===void 0x0?void 0x0:_0x1d77e6[_0x2a1af8(0x144)])?_0x1d77e6[_0x2a1af8(0x14b)][_0x2a1af8(0x14a)]()+'@'+(_0x1d77e6===null||_0x1d77e6===void 0x0?void 0x0:_0x1d77e6[_0x2a1af8(0x144)]):undefined,_0x1d77e6,_0x473b60);}}}return await _0x3a453b['proceed'](..._0x3a453b[_0x2a1af8(0x159)]);},'afterThrow':(_0x3918a7,_0x13e136)=>{throw _0x13e136;}};});}async[a2_0x45e067(0x13e)](){const _0x11e3d4=a2_0x45e067;this['application']['getApplications']([_0x11e3d4(0x172)])[_0x11e3d4(0x133)](_0x3e1602=>{const _0x3edb59=_0x11e3d4;(_0x3e1602===null||_0x3e1602===void 0x0?void 0x0:_0x3e1602[_0x3edb59(0x15a)])&&Object['defineProperties'](_0x3e1602[_0x3edb59(0x15a)],{'ok':{'value':function(_0x190cb0,_0x1f2fa3,_0x47425d=0x0){return{'code':_0x47425d,'data':_0x190cb0,'extra':_0x1f2fa3};}},'input':{'value':function(_0x3e8aa8,_0x1d206b){const _0x3d9955=_0x3edb59;var _0xb266fb;const _0x14c56b=lodash[_0x3d9955(0x12c)]({},this[_0x3d9955(0x138)]['body']||this[_0x3d9955(0x138)][((_0xb266fb=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0xb266fb===void 0x0?void 0x0:_0xb266fb[_0x3d9955(0x17b)])||_0x3d9955(0x151)]||{},this['request'][_0x3d9955(0x178)]||{});return _0x3e8aa8?lodash[_0x3d9955(0x157)](_0x14c56b,_0x3e8aa8,_0x1d206b):_0x14c56b;}},'when':{'value':async function(_0x19c17c,_0x1c1fb3){const _0x1dac30=_0x3edb59,_0x12909f=this[_0x1dac30(0x123)](_0x19c17c,null);if(!lodash[_0x1dac30(0x158)](_0x12909f))return await _0x1c1fb3(_0x12909f);}},'only':{'value':function(_0x384fdc){const _0x49d299=_0x3edb59,_0x1bb873={};for(let _0x3c8f58=0x0;_0x3c8f58<_0x384fdc[_0x49d299(0x15f)];_0x3c8f58++){lodash[_0x49d299(0x154)](_0x384fdc[_0x3c8f58])&&_0x384fdc[_0x3c8f58]['length']>0x0&&lodash['isString'](_0x384fdc[_0x3c8f58][0x0])&&(_0x1bb873[_0x384fdc[_0x3c8f58][0x0]]=this[_0x49d299(0x123)](_0x384fdc[_0x3c8f58][0x0],_0x384fdc[_0x3c8f58][_0x49d299(0x15f)]>0x1?_0x384fdc[_0x3c8f58][0x1]:null));}return _0x1bb873;}}});});}async[a2_0x45e067(0x169)](){const _0x3e5e18=a2_0x45e067;var _0x666f4d,_0x11c50b,_0x1b1f97,_0x494379,_0x25f8bf,_0x14015b;const _0x52f3ae=this[_0x3e5e18(0x16a)]['getConfiguration']();((_0x11c50b=(_0x666f4d=_0x52f3ae===null||_0x52f3ae===void 0x0?void 0x0:_0x52f3ae[_0x3e5e18(0x174)])===null||_0x666f4d===void 0x0?void 0x0:_0x666f4d[_0x3e5e18(0x12a)])===null||_0x11c50b===void 0x0?void 0x0:_0x11c50b[_0x3e5e18(0x13d)])&&Object[_0x3e5e18(0x121)](_0x52f3ae[_0x3e5e18(0x174)]['devices'])[_0x3e5e18(0x15f)]>0x1&&delete _0x52f3ae[_0x3e5e18(0x174)][_0x3e5e18(0x12a)][_0x3e5e18(0x13d)];if((_0x1b1f97=_0x52f3ae===null||_0x52f3ae===void 0x0?void 0x0:_0x52f3ae[_0x3e5e18(0x15e)])===null||_0x1b1f97===void 0x0?void 0x0:_0x1b1f97['dirs'])for(const _0x59e724 in _0x52f3ae['staticFile'][_0x3e5e18(0x156)]){((_0x494379=_0x52f3ae['staticFile'][_0x3e5e18(0x156)][_0x59e724])===null||_0x494379===void 0x0?void 0x0:_0x494379[_0x3e5e18(0x12b)])&&typeof((_0x25f8bf=_0x52f3ae[_0x3e5e18(0x15e)][_0x3e5e18(0x156)][_0x59e724])===null||_0x25f8bf===void 0x0?void 0x0:_0x25f8bf[_0x3e5e18(0x12b)])==_0x3e5e18(0x161)&&!fs[_0x3e5e18(0x147)](_0x52f3ae['staticFile']['dirs'][_0x59e724][_0x3e5e18(0x12b)])&&(fs[_0x3e5e18(0x166)](_0x52f3ae[_0x3e5e18(0x15e)][_0x3e5e18(0x156)][_0x59e724][_0x3e5e18(0x12b)],{'recursive':!![]}),console[_0x3e5e18(0x12f)](_0x3e5e18(0x129)+_0x52f3ae[_0x3e5e18(0x15e)][_0x3e5e18(0x156)][_0x59e724]['dir']));}((_0x14015b=_0x52f3ae===null||_0x52f3ae===void 0x0?void 0x0:_0x52f3ae[_0x3e5e18(0x165)])===null||_0x14015b===void 0x0?void 0x0:_0x14015b[_0x3e5e18(0x16e)])&&!fs['existsSync'](_0x52f3ae[_0x3e5e18(0x165)][_0x3e5e18(0x16e)])&&(fs['mkdirSync'](_0x52f3ae[_0x3e5e18(0x165)]['tmpdir'],{'recursive':!![]}),console[_0x3e5e18(0x12f)](_0x3e5e18(0x137)+_0x52f3ae['upload'][_0x3e5e18(0x16e)])),this[_0x3e5e18(0x16a)][_0x3e5e18(0x13f)](_0x52f3ae);}};__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x45e067(0x153),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x45e067(0x16a),void 0x0),__decorate([(0x0,core_1[a2_0x45e067(0x164)])(),__metadata('design:type',core_2[a2_0x45e067(0x150)])],CustomConfiguration['prototype'],a2_0x45e067(0x146),void 0x0),__decorate([(0x0,core_1[a2_0x45e067(0x164)])(),__metadata(a2_0x45e067(0x153),core_2[a2_0x45e067(0x149)])],CustomConfiguration[a2_0x45e067(0x12d)],a2_0x45e067(0x127),void 0x0),__decorate([(0x0,core_1[a2_0x45e067(0x164)])(),__metadata(a2_0x45e067(0x153),core_2[a2_0x45e067(0x163)])],CustomConfiguration['prototype'],a2_0x45e067(0x14f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x45e067(0x153),ApiService_1[a2_0x45e067(0x11f)])],CustomConfiguration[a2_0x45e067(0x12d)],a2_0x45e067(0x11f),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x45e067(0x124)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x45e067(0x126),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x45e067(0x131)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x149b94=a3_0x5b86;(function(_0x1d5292,_0x1eed00){const _0x12678d=a3_0x5b86,_0x10fcb7=_0x1d5292();while(!![]){try{const _0x66cffc=-parseInt(_0x12678d(0xd0))/0x1*(-parseInt(_0x12678d(0xc9))/0x2)+parseInt(_0x12678d(0xea))/0x3*(-parseInt(_0x12678d(0xd7))/0x4)+parseInt(_0x12678d(0xe4))/0x5*(-parseInt(_0x12678d(0xe7))/0x6)+parseInt(_0x12678d(0xda))/0x7+-parseInt(_0x12678d(0xe6))/0x8*(-parseInt(_0x12678d(0xdc))/0x9)+parseInt(_0x12678d(0xf0))/0xa*(parseInt(_0x12678d(0xc3))/0xb)+parseInt(_0x12678d(0xf2))/0xc;if(_0x66cffc===_0x1eed00)break;else _0x10fcb7['push'](_0x10fcb7['shift']());}catch(_0xa7308e){_0x10fcb7['push'](_0x10fcb7['shift']());}}}(a3_0x5067,0x6b9d0));function a3_0x5067(){const _0x6d2ee6=['Controller','APPSCONFIG_KEY','339ftHlgx','length','defineProperty','indexOf','\x20文件请放在apps/','middleware','isArray','820GqnvHb','splice','replace','3682119rerslM','getClassMetadata','2819997qyOOAS','../types/action','module','prefix','route','saveClassMetadata','startsWith','/config.','195070XzAfxL','/controller/','8CtNnyi','108ztKRuM','endsWith','existsSync','1335JkObMH','rootpath','join','middlewareIgnore','@midwayjs/core','toLowerCase','10ghSPSD','-controller','87528QGOEFW','saveModule','Action','push','AppsConfigTmp','trim','match','4211581UNXMFD','parseRoute','cwd','/controller/文件下','split','ACTION_KEY','28nnyiub','substring','app/controller/','filepath','/apps/'];a3_0x5067=function(){return _0x6d2ee6;};return a3_0x5067();}Object[a3_0x149b94(0xd2)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x149b94(0xf4)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x149b94(0xee)),action_1=require(a3_0x149b94(0xdd));function Action(_0x5c0a35,_0x3028ac,_0x3ccd2={'middleware':[],'sensitive':!![]}){return _0x516b47=>{const _0x3589b8=a3_0x5b86;_0x3ccd2['tagName']=_0x3028ac;const _0x1ad7d2=parseRoute(_0x5c0a35);if(_0x1ad7d2['module']){_0x3ccd2[_0x3589b8(0xdf)]=_0x3ccd2[_0x3589b8(0xdf)]?'/'+_0x1ad7d2['module']+'/'+_0x3ccd2['prefix']:'/'+_0x1ad7d2['route'];_0x1ad7d2['prefix']&&(_0x3ccd2[_0x3589b8(0xdf)]='/'+_0x1ad7d2[_0x3589b8(0xdf)]+'/'+_0x3ccd2[_0x3589b8(0xdf)]);if(fs[_0x3589b8(0xe9)](_0x1ad7d2[_0x3589b8(0xeb)]+_0x3589b8(0xcd)+_0x1ad7d2['module']+_0x3589b8(0xe3)+(lodash[_0x3589b8(0xe8)](_0x1ad7d2[_0x3589b8(0xcc)],'ts')?'ts':'js'))){const _0xe14d8a=include(_0x1ad7d2[_0x3589b8(0xeb)]+_0x3589b8(0xcd)+_0x1ad7d2['module']+_0x3589b8(0xe3)+(lodash[_0x3589b8(0xe8)](_0x1ad7d2[_0x3589b8(0xcc)],'ts')?'ts':'js'));if(_0xe14d8a[_0x3589b8(0xd5)]&&lodash[_0x3589b8(0xd6)](_0xe14d8a[_0x3589b8(0xd5)])&&_0xe14d8a[_0x3589b8(0xd5)][_0x3589b8(0xd1)]>0x0)for(let _0x2aa151 in _0xe14d8a[_0x3589b8(0xd5)]){_0xe14d8a[_0x3589b8(0xed)][_0x3589b8(0xd3)](_0xe14d8a[_0x3589b8(0xd5)][_0x2aa151])==-0x1&&_0x3ccd2[_0x3589b8(0xd5)][_0x3589b8(0xf5)](_0xe14d8a[_0x3589b8(0xd5)][_0x2aa151]);}const _0x38423b=(0x0,core_1[_0x3589b8(0xdb)])(action_1['APPSCONFIG_KEY'],action_1[_0x3589b8(0xf6)])||{};_0x38423b[''+_0x1ad7d2['module']]=_0xe14d8a,(0x0,core_1[_0x3589b8(0xe1)])(action_1[_0x3589b8(0xcf)],_0x38423b,action_1[_0x3589b8(0xf6)]);}_0x3ccd2[_0x3589b8(0xdf)]=_0x3ccd2[_0x3589b8(0xdf)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x3589b8(0xf3)])(action_1[_0x3589b8(0xc8)],_0x516b47),(0x0,core_1[_0x3589b8(0xce)])(_0x3ccd2[_0x3589b8(0xdf)],_0x3ccd2)(_0x516b47),(0x0,core_1[_0x3589b8(0xe1)])(action_1[_0x3589b8(0xc8)],{'prefix':_0x3ccd2[_0x3589b8(0xdf)],'pprefix':_0x1ad7d2[_0x3589b8(0xdf)],'module':_0x1ad7d2[_0x3589b8(0xde)],'filepath':_0x1ad7d2['filepath'],'routerOptions':_0x3ccd2},_0x516b47);}else _0x3ccd2[_0x3589b8(0xdf)]=_0x3ccd2['prefix']?'/'+_0x3ccd2['prefix']:'/'+_0x1ad7d2[_0x3589b8(0xe0)],_0x1ad7d2[_0x3589b8(0xdf)]&&(_0x3ccd2['prefix']='/'+_0x1ad7d2[_0x3589b8(0xdf)]+'/'+_0x3ccd2['prefix']),_0x3ccd2['prefix']=_0x3ccd2[_0x3589b8(0xdf)][_0x3589b8(0xef)]()[_0x3589b8(0xd9)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x3589b8(0xc8)],_0x516b47),(0x0,core_1[_0x3589b8(0xce)])(_0x3ccd2[_0x3589b8(0xdf)],_0x3ccd2)(_0x516b47),(0x0,core_1[_0x3589b8(0xe1)])(action_1[_0x3589b8(0xc8)],{'prefix':_0x3ccd2['prefix'],'module':_0x1ad7d2[_0x3589b8(0xde)],'pprefix':_0x1ad7d2[_0x3589b8(0xdf)],'filepath':_0x1ad7d2[_0x3589b8(0xcc)],'routerOptions':_0x3ccd2},_0x516b47);};}exports[a3_0x149b94(0xf4)]=Action;function a3_0x5b86(_0x546e17,_0x5da799){const _0x506750=a3_0x5067();return a3_0x5b86=function(_0x5b869a,_0x4fce34){_0x5b869a=_0x5b869a-0xc2;let _0x1c9208=_0x506750[_0x5b869a];return _0x1c9208;},a3_0x5b86(_0x546e17,_0x5da799);}function parseRoute(_0x71f914){const _0x454143=a3_0x149b94;_0x71f914=_0x71f914['replace'](/(\\|\/)/g,'/');const _0x383e69=process[_0x454143(0xc5)]()[_0x454143(0xd9)](/(\\|\/)/g,'/'),_0x2074c1=_0x71f914[_0x454143(0xca)](0x0,_0x383e69['length']+_0x71f914[_0x454143(0xca)](_0x383e69['length']+0x1)[_0x454143(0xd3)]('/')+0x1),_0x3e7422=_0x71f914[_0x454143(0xca)](_0x2074c1[_0x454143(0xd1)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x47a526={'route':'','prefix':![],'module':![],'rootpath':_0x2074c1,'filepath':_0x3e7422};if(_0x3e7422[_0x454143(0xe2)]('app/controller/')){const _0x495273=_0x3e7422[_0x454143(0xca)](_0x454143(0xcb)['length'])[_0x454143(0xc7)]('/')['filter'](_0x4e826c=>_0x4e826c&&_0x4e826c[_0x454143(0xf7)]());return _0x495273[_0x454143(0xd1)]>0x1&&(_0x47a526['prefix']=_0x495273[0x0][_0x454143(0xef)](),_0x495273[_0x454143(0xd8)](0x0,0x1)),_0x47a526[_0x454143(0xe0)]=('/'+_0x495273[_0x454143(0xec)]('/'))[_0x454143(0xd9)](/(\.ts|\.js)$/,'')[_0x454143(0xd9)](/\/{2,}/g,'/')[_0x454143(0xc2)](/[\/|A-Z]*[^A-Z]+/g)[_0x454143(0xec)]('-')[_0x454143(0xef)]()[_0x454143(0xd9)](/\/\-/g,'/'),_0x47a526[_0x454143(0xe0)]['endsWith']('-action')&&(_0x47a526[_0x454143(0xe0)]=_0x47a526[_0x454143(0xe0)][_0x454143(0xca)](0x0,_0x47a526[_0x454143(0xe0)][_0x454143(0xd1)]-0x7)),_0x47a526[_0x454143(0xe0)][_0x454143(0xe8)](_0x454143(0xf1))&&(_0x47a526[_0x454143(0xe0)]=_0x47a526['route'][_0x454143(0xca)](0x0,_0x47a526['route']['length']-0xb)),_0x47a526;}else{if(_0x3e7422[_0x454143(0xe2)]('apps/')){const _0x262872=_0x3e7422[_0x454143(0xca)](0x0,_0x3e7422[_0x454143(0xd3)](_0x454143(0xcd))+0x5),_0x5938ce=_0x3e7422[_0x454143(0xca)](_0x262872[_0x454143(0xd1)]+0x1)[_0x454143(0xd9)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x3e7422[_0x454143(0xe2)]('apps/'+_0x5938ce+_0x454143(0xe5))){const _0x841ef3=_0x3e7422['substring']((_0x262872+'/'+_0x5938ce+_0x454143(0xe5))[_0x454143(0xd1)])[_0x454143(0xc7)]('/')['filter'](_0x1aa9c7=>_0x1aa9c7&&_0x1aa9c7[_0x454143(0xf7)]());return _0x841ef3[_0x454143(0xd1)]>0x1&&(_0x47a526['prefix']=_0x841ef3[0x0][_0x454143(0xef)](),_0x841ef3[_0x454143(0xd8)](0x0,0x1)),_0x47a526['module']=_0x5938ce,_0x47a526['route']=('/'+_0x5938ce+'/'+_0x841ef3[_0x454143(0xec)]('/'))[_0x454143(0xd9)](/(\.ts|\.js)$/,'')[_0x454143(0xd9)](/\/{2,}/,'/')[_0x454143(0xc2)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x454143(0xef)]()[_0x454143(0xd9)](/\/\-/g,'/'),_0x47a526[_0x454143(0xe0)][_0x454143(0xe8)]('-action')&&(_0x47a526[_0x454143(0xe0)]=_0x47a526[_0x454143(0xe0)][_0x454143(0xca)](0x0,_0x47a526[_0x454143(0xe0)][_0x454143(0xd1)]-0x7)),_0x47a526['route'][_0x454143(0xe8)](_0x454143(0xf1))&&(_0x47a526['route']=_0x47a526[_0x454143(0xe0)]['substring'](0x0,_0x47a526[_0x454143(0xe0)][_0x454143(0xd1)]-0xb)),_0x47a526;}throw new Error(_0x3e7422+_0x454143(0xd4)+_0x5938ce+_0x454143(0xc6));}}throw new Error(_0x3e7422+'\x20文件请放在app/controller/文件下');}exports[a3_0x149b94(0xc4)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a4_0x45ee(_0x8f8284,_0x63d8d7){const _0x2bd52b=a4_0x2bd5();return a4_0x45ee=function(_0x45eef8,_0xdf0421){_0x45eef8=_0x45eef8-0x120;let _0x58ee57=_0x2bd52b[_0x45eef8];return _0x58ee57;},a4_0x45ee(_0x8f8284,_0x63d8d7);}const a4_0x544777=a4_0x45ee;(function(_0x4974b0,_0x189ef3){const _0x583bf6=a4_0x45ee,_0x57cd05=_0x4974b0();while(!![]){try{const _0x10f4e9=-parseInt(_0x583bf6(0x120))/0x1+parseInt(_0x583bf6(0x136))/0x2+parseInt(_0x583bf6(0x13d))/0x3*(parseInt(_0x583bf6(0x140))/0x4)+-parseInt(_0x583bf6(0x139))/0x5*(-parseInt(_0x583bf6(0x12e))/0x6)+-parseInt(_0x583bf6(0x13c))/0x7+-parseInt(_0x583bf6(0x13a))/0x8+-parseInt(_0x583bf6(0x124))/0x9*(-parseInt(_0x583bf6(0x135))/0xa);if(_0x10f4e9===_0x189ef3)break;else _0x57cd05['push'](_0x57cd05['shift']());}catch(_0x1f75e6){_0x57cd05['push'](_0x57cd05['shift']());}}}(a4_0x2bd5,0xd0cdb));Object[a4_0x544777(0x133)](exports,a4_0x544777(0x137),{'value':!![]}),exports[a4_0x544777(0x129)]=void 0x0;function a4_0x2bd5(){const _0x10ab37=['toLowerCase','description','get','45EoKBaK','@anncic-api/validator','utc','RequestMapping','del','Api','middleware','length','attachClassMetadata','Validator','10686PhjKQY','@midwayjs/core','indexOf','filter','validate','defineProperty','routerName','4176710CzOmZQ','2032706hNRMSt','__esModule','createCustomMethodDecorator','1745jfwYbL','12255488oQHvub','validationOptions','8051953mcdndT','3iIVmAb','apimit','../types/action','1012436LAvjUX','middlewareIgnore','delete','441912zqmsnE'];a4_0x2bd5=function(){return _0x10ab37;};return a4_0x2bd5();}const validator_1=require(a4_0x544777(0x125)),core_1=require(a4_0x544777(0x12f)),action_1=require(a4_0x544777(0x13f));function Api(_0x479493,_0x306bf7=a4_0x544777(0x123),_0x11f2fb='/',_0x35f398={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x454c3e,_0x3c3929,_0x5aafe6)=>{const _0x24f72d=a4_0x45ee;var _0x504e70,_0x3cc205,_0x42aa7c;!_0x35f398[_0x24f72d(0x12a)]&&(_0x35f398[_0x24f72d(0x12a)]=[]);!((_0x504e70=_0x35f398===null||_0x35f398===void 0x0?void 0x0:_0x35f398[_0x24f72d(0x132)])===null||_0x504e70===void 0x0?void 0x0:_0x504e70[_0x24f72d(0x13b)])&&(_0x35f398[_0x24f72d(0x132)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x24f72d(0x126)}});if(((_0x3cc205=_0x35f398===null||_0x35f398===void 0x0?void 0x0:_0x35f398[_0x24f72d(0x12a)])===null||_0x3cc205===void 0x0?void 0x0:_0x3cc205[_0x24f72d(0x12b)])>0x0&&((_0x42aa7c=_0x35f398===null||_0x35f398===void 0x0?void 0x0:_0x35f398['middlewareIgnore'])===null||_0x42aa7c===void 0x0?void 0x0:_0x42aa7c[_0x24f72d(0x12b)])>0x0)for(let _0x51b70e in _0x35f398[_0x24f72d(0x12a)]){_0x35f398[_0x24f72d(0x141)][_0x24f72d(0x130)](_0x35f398['middleware'][_0x51b70e])!==-0x1&&(_0x35f398[_0x24f72d(0x12a)][_0x51b70e]=null);}_0x35f398[_0x24f72d(0x134)]=_0x479493,(0x0,validator_1[_0x24f72d(0x12d)])(_0x35f398[_0x24f72d(0x132)])(_0x454c3e,_0x3c3929,_0x5aafe6),(0x0,core_1[_0x24f72d(0x127)])(Object['assign'](_0x35f398,{'path':_0x11f2fb,'requestMethod':(_0x306bf7==_0x24f72d(0x128)?_0x24f72d(0x142):_0x306bf7)[_0x24f72d(0x121)]()}))(_0x454c3e,_0x3c3929,_0x5aafe6),(0x0,core_1[_0x24f72d(0x12c)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x11f2fb,'method':_0x3c3929,'apimit':_0x35f398[_0x24f72d(0x13e)],'routerName':_0x35f398['routerName'],'description':_0x35f398[_0x24f72d(0x122)],'middleware':(_0x35f398[_0x24f72d(0x12a)]||[])[_0x24f72d(0x131)](_0x270f74=>!!_0x270f74),'requestMethod':(_0x306bf7==_0x24f72d(0x128)?_0x24f72d(0x142):_0x306bf7)[_0x24f72d(0x121)]()},_0x454c3e),(0x0,core_1[_0x24f72d(0x138)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x11f2fb,'method':_0x3c3929,'apimit':_0x35f398[_0x24f72d(0x13e)],'routerName':_0x35f398[_0x24f72d(0x134)],'description':_0x35f398[_0x24f72d(0x122)],'middleware':(_0x35f398[_0x24f72d(0x12a)]||[])['filter'](_0x2bb5f2=>!!_0x2bb5f2),'requestMethod':(_0x306bf7==_0x24f72d(0x128)?_0x24f72d(0x142):_0x306bf7)[_0x24f72d(0x121)]()})(_0x454c3e,_0x3c3929,_0x5aafe6);};}exports[a4_0x544777(0x129)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0xc1b88=a5_0xfd60;(function(_0x2f1e5b,_0x49901a){const _0x3fcbc1=a5_0xfd60,_0x20733c=_0x2f1e5b();while(!![]){try{const _0x492c9c=-parseInt(_0x3fcbc1(0x97))/0x1*(parseInt(_0x3fcbc1(0x93))/0x2)+-parseInt(_0x3fcbc1(0x9e))/0x3+-parseInt(_0x3fcbc1(0x98))/0x4+parseInt(_0x3fcbc1(0x9c))/0x5*(-parseInt(_0x3fcbc1(0xa9))/0x6)+-parseInt(_0x3fcbc1(0xa3))/0x7+parseInt(_0x3fcbc1(0xa2))/0x8+parseInt(_0x3fcbc1(0x9f))/0x9;if(_0x492c9c===_0x49901a)break;else _0x20733c['push'](_0x20733c['shift']());}catch(_0x7d025d){_0x20733c['push'](_0x20733c['shift']());}}}(a5_0x59f0,0x67359));function a5_0x59f0(){const _0x1b80a3=['get','@midwayjs/core','__esModule','apitest','Apitest','1925220SaeajN','apidoc','REQUEST_OBJ_CTX_KEY','defineProperty','2HXnTHa','filepath','getAsync','RequestMapping','233693hkmHds','2325924bDsURV','/apitest','app','../service/ApitestService','10SUnMUQ','ApitestService','1510212oYttjs','19393983mTicMB','getApplicationContext','value','3076160btPfKg','1094408UBYVaC'];a5_0x59f0=function(){return _0x1b80a3;};return a5_0x59f0();}function a5_0xfd60(_0x4143bd,_0x6e5d4d){const _0x59f0cf=a5_0x59f0();return a5_0xfd60=function(_0xfd60e9,_0x4966dd){_0xfd60e9=_0xfd60e9-0x91;let _0x16b7fe=_0x59f0cf[_0xfd60e9];return _0x16b7fe;},a5_0xfd60(_0x4143bd,_0x6e5d4d);}Object[a5_0xc1b88(0x92)](exports,a5_0xc1b88(0xa6),{'value':!![]}),exports[a5_0xc1b88(0xa8)]=void 0x0;const core_1=require(a5_0xc1b88(0xa5)),ApitestService_1=require(a5_0xc1b88(0x9b));function Apitest(_0x5bcdb6=a5_0xc1b88(0x99),_0x521f7e){return(_0x1375cb,_0xb6b6d0,_0x561114)=>{const _0x1c8b7c=a5_0xfd60;return(0x0,core_1[_0x1c8b7c(0x96)])({'path':_0x5bcdb6,'requestMethod':_0x1c8b7c(0xa4)})(_0x1375cb,_0xb6b6d0,_0x561114),_0x561114[_0x1c8b7c(0xa1)]=async function(..._0x2cb3aa){const _0x4f192b=_0x1c8b7c;var _0x5d262c;const _0x296bcc=(_0x5d262c=this[core_1[_0x4f192b(0x91)]])===null||_0x5d262c===void 0x0?void 0x0:_0x5d262c[_0x4f192b(0x9a)];if(_0x296bcc&&_0x296bcc['getConfig'](_0x4f192b(0xa7))){const _0x3244ef=await _0x296bcc[_0x4f192b(0xa0)]()[_0x4f192b(0x95)](ApitestService_1[_0x4f192b(0x9d)]),_0x1d73a1=await _0x296bcc['getApplicationContext']()[_0x4f192b(0x95)](core_1['MidwayEnvironmentService']);return _0x1d73a1['isDevelopmentEnvironment']()&&(_0x521f7e[_0x4f192b(0x94)]=!![]),await _0x3244ef[_0x4f192b(0xaa)](_0x521f7e);}return'';},_0x561114;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x49a622=a6_0x9138;(function(_0x412d3c,_0x3e2cd7){var _0x3d6546=a6_0x9138,_0x9716d4=_0x412d3c();while(!![]){try{var _0x40e929=-parseInt(_0x3d6546(0xe0))/0x1+-parseInt(_0x3d6546(0xe8))/0x2+parseInt(_0x3d6546(0xd4))/0x3+parseInt(_0x3d6546(0xd0))/0x4*(parseInt(_0x3d6546(0xd2))/0x5)+-parseInt(_0x3d6546(0xd7))/0x6*(parseInt(_0x3d6546(0xdf))/0x7)+-parseInt(_0x3d6546(0xe4))/0x8*(parseInt(_0x3d6546(0xe9))/0x9)+-parseInt(_0x3d6546(0xd8))/0xa*(-parseInt(_0x3d6546(0xd3))/0xb);if(_0x40e929===_0x3e2cd7)break;else _0x9716d4['push'](_0x9716d4['shift']());}catch(_0x3bce52){_0x9716d4['push'](_0x9716d4['shift']());}}}(a6_0x5ae6,0x3ad5c));function a6_0x9138(_0x180dc3,_0xc92ee3){var _0x5ae661=a6_0x5ae6();return a6_0x9138=function(_0x9138c7,_0x426b4e){_0x9138c7=_0x9138c7-0xce;var _0x1d30c5=_0x5ae661[_0x9138c7];return _0x1d30c5;},a6_0x9138(_0x180dc3,_0xc92ee3);}function a6_0x5ae6(){var _0x700eab=['357452EDVGqC','object','HEADERS_LACK','请使用正确的设备','600eBubbj','HEADERS_DEVICE','metadata','__decorate','411630MYFVaU','3159iNEOGk','ApiError','HEADERS_CHECKCODE','TIMEOUT','decorate','defineProperty','signature验证失败','32BFcxZv','getOwnPropertyDescriptor','83230KieemW','1133juoOYc','960849mybPin','__esModule','length','30BdYrHk','79330zoANFg','请求头信息不完整','checkcode验证失败','网络繁忙,请稍后重试','function','design:type','HEADERS_SIGNATURE','615958vgLpaw'];a6_0x5ae6=function(){return _0x700eab;};return a6_0x5ae6();}var __decorate=this&&this[a6_0x49a622(0xe7)]||function(_0x30036d,_0x52753c,_0x20dc35,_0x5eb470){var _0x3e6d63=a6_0x49a622,_0x53d396=arguments['length'],_0x202e8c=_0x53d396<0x3?_0x52753c:_0x5eb470===null?_0x5eb470=Object[_0x3e6d63(0xd1)](_0x52753c,_0x20dc35):_0x5eb470,_0x267d02;if(typeof Reflect===_0x3e6d63(0xe1)&&typeof Reflect[_0x3e6d63(0xed)]===_0x3e6d63(0xdc))_0x202e8c=Reflect['decorate'](_0x30036d,_0x52753c,_0x20dc35,_0x5eb470);else{for(var _0x25dc4c=_0x30036d[_0x3e6d63(0xd6)]-0x1;_0x25dc4c>=0x0;_0x25dc4c--)if(_0x267d02=_0x30036d[_0x25dc4c])_0x202e8c=(_0x53d396<0x3?_0x267d02(_0x202e8c):_0x53d396>0x3?_0x267d02(_0x52753c,_0x20dc35,_0x202e8c):_0x267d02(_0x52753c,_0x20dc35))||_0x202e8c;}return _0x53d396>0x3&&_0x202e8c&&Object[_0x3e6d63(0xce)](_0x52753c,_0x20dc35,_0x202e8c),_0x202e8c;},__metadata=this&&this['__metadata']||function(_0x3de84b,_0x26714b){var _0x3bbf84=a6_0x49a622;if(typeof Reflect===_0x3bbf84(0xe1)&&typeof Reflect[_0x3bbf84(0xe6)]===_0x3bbf84(0xdc))return Reflect[_0x3bbf84(0xe6)](_0x3de84b,_0x26714b);};Object[a6_0x49a622(0xce)](exports,a6_0x49a622(0xd5),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a6_0x49a622(0xec)]=0x3d7e31,ApiError[a6_0x49a622(0xe2)]=0x3d7e32,ApiError[a6_0x49a622(0xe5)]=0x3d7e33,ApiError[a6_0x49a622(0xeb)]=0x3d7e34,ApiError['HEADERS_SIGNATURE']=0x3d7e35,__decorate([AnnErrorMsg(a6_0x49a622(0xdb)),__metadata('design:type',Object)],ApiError,a6_0x49a622(0xec),void 0x0),__decorate([AnnErrorMsg(a6_0x49a622(0xd9)),__metadata(a6_0x49a622(0xdd),Object)],ApiError,a6_0x49a622(0xe2),void 0x0),__decorate([AnnErrorMsg(a6_0x49a622(0xe3)),__metadata('design:type',Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x49a622(0xda)),__metadata(a6_0x49a622(0xdd),Object)],ApiError,a6_0x49a622(0xeb),void 0x0),__decorate([AnnErrorMsg(a6_0x49a622(0xcf)),__metadata(a6_0x49a622(0xdd),Object)],ApiError,a6_0x49a622(0xde),void 0x0),exports[a6_0x49a622(0xea)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x1a184e=a7_0x3c86;(function(_0x6a66d6,_0x290a66){const _0x380ad0=a7_0x3c86,_0x4e53fb=_0x6a66d6();while(!![]){try{const _0x32c2ec=-parseInt(_0x380ad0(0x1e0))/0x1+parseInt(_0x380ad0(0x1e6))/0x2*(parseInt(_0x380ad0(0x1e3))/0x3)+parseInt(_0x380ad0(0x1df))/0x4*(-parseInt(_0x380ad0(0x1e4))/0x5)+-parseInt(_0x380ad0(0x1dc))/0x6*(-parseInt(_0x380ad0(0x1dd))/0x7)+parseInt(_0x380ad0(0x1e1))/0x8*(parseInt(_0x380ad0(0x1e9))/0x9)+parseInt(_0x380ad0(0x1d8))/0xa+parseInt(_0x380ad0(0x1e7))/0xb*(-parseInt(_0x380ad0(0x1e8))/0xc);if(_0x32c2ec===_0x290a66)break;else _0x4e53fb['push'](_0x4e53fb['shift']());}catch(_0x34bc55){_0x4e53fb['push'](_0x4e53fb['shift']());}}}(a7_0x1b4d,0x3078b));function a7_0x3c86(_0x2070b9,_0x50673b){const _0x1b4d5d=a7_0x1b4d();return a7_0x3c86=function(_0x3c86bd,_0x4942e9){_0x3c86bd=_0x3c86bd-0x1d8;let _0x167272=_0x1b4d5d[_0x3c86bd];return _0x167272;},a7_0x3c86(_0x2070b9,_0x50673b);}Object[a7_0x1a184e(0x1de)](exports,'__esModule',{'value':!![]}),exports[a7_0x1a184e(0x1e5)]=void 0x0;const core_1=require(a7_0x1a184e(0x1d9)),action_1=require('../types/action');function getAppsConfig(_0xb481ea){const _0x4b3e75=a7_0x1a184e,_0x5978ba=(0x0,core_1[_0x4b3e75(0x1da)])(action_1['APPSCONFIG_KEY'],action_1[_0x4b3e75(0x1db)])||{};return _0xb481ea?lodash[_0x4b3e75(0x1e2)](_0x5978ba,_0xb481ea):_0x5978ba;}function a7_0x1b4d(){const _0x5c481d=['get','2355xAZgJA','126145nvmyjB','getAppsConfig','730loLUom','66VKgPqA','248628LexKFU','6651CtQkHN','1793800KdakaQ','@midwayjs/core','getClassMetadata','AppsConfigTmp','618wotnog','14371MFVRPa','defineProperty','36YTyTUo','156271nPiQwF','312uzQbEr'];a7_0x1b4d=function(){return _0x5c481d;};return a7_0x1b4d();}exports[a7_0x1a184e(0x1e5)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x4a122a=a8_0x2b22;function a8_0x13dc(){const _0x20a465=['File','indexOf','2000652FOgvWL','prefix','/static/apitest','Boolean','1703042WiAwoa','isArray','750kXeJso','min','routes','-array','find','get','@anncic-api/validator','split','24485eYCqbu','concat','keys','noreq','items','iterator','flags.label','flags.presence','startsWith','length','8tcdXdK','string','path','children','array','2882980kqtmQH','lodash','3wxUaIf','route','log','body','flags.default','6458669Srgwuj','tagName','parameterIndex','request','Number','name','describe','filter','requestMethod','args','summary','object','allow','@midwayjs/core','FILESSTREAM','module','8467146LFMPyS','ACTION_KEY','title','method','pprefix','getRoutes','FIELDS','propertyData','required','number','routerOptions','40ukCRuF','limit','type','default','rules','listModule','key','String','filepath','INJECT_CUSTOM_PARAM','只允许:[','push','PARAM','file','RULES_KEY','379356GjLmdh','getMethodParamTypes','ACTION_ROUTE_KEY','defineProperty','description','RouteParamTypes','query','routerName','join','flags.description','function','文件上传-','max','metadata','getClassMetadata','__esModule'];a8_0x13dc=function(){return _0x20a465;};return a8_0x13dc();}(function(_0x2d8cb1,_0x5e1796){const _0xfe73f6=a8_0x2b22,_0x462b5b=_0x2d8cb1();while(!![]){try{const _0x4a4629=parseInt(_0xfe73f6(0x195))/0x1+parseInt(_0xfe73f6(0x1a7))/0x2*(-parseInt(_0xfe73f6(0x1c6))/0x3)+-parseInt(_0xfe73f6(0x1c4))/0x4+parseInt(_0xfe73f6(0x1b5))/0x5*(parseInt(_0xfe73f6(0x1ad))/0x6)+parseInt(_0xfe73f6(0x1cb))/0x7*(parseInt(_0xfe73f6(0x1bf))/0x8)+parseInt(_0xfe73f6(0x17b))/0x9+-parseInt(_0xfe73f6(0x186))/0xa*(parseInt(_0xfe73f6(0x1ab))/0xb);if(_0x4a4629===_0x5e1796)break;else _0x462b5b['push'](_0x462b5b['shift']());}catch(_0x11402d){_0x462b5b['push'](_0x462b5b['shift']());}}}(a8_0x13dc,0x7da17));Object[a8_0x4a122a(0x198)](exports,a8_0x4a122a(0x1a4),{'value':!![]}),exports[a8_0x4a122a(0x180)]=void 0x0;const lodash_1=require(a8_0x4a122a(0x1c5)),validator_1=require(a8_0x4a122a(0x1b3)),core_1=require(a8_0x4a122a(0x1d8)),core_2=require(a8_0x4a122a(0x1d8)),core_3=require(a8_0x4a122a(0x1d8)),action_1=require('../types/action');function getRoutes(_0x161cb0={'prefix':'/','module':![]}){const _0x550756=a8_0x4a122a;var _0x332746,_0x34fd4e;const _0x6c7259=(0x0,core_3[_0x550756(0x18b)])(action_1[_0x550756(0x17c)]),_0x56f544={},_0x23c079=Array[_0x550756(0x1ac)](_0x161cb0[_0x550756(0x1d2)]||[])?_0x161cb0[_0x550756(0x1d2)]||[]:[_0x161cb0[_0x550756(0x1d2)]];_0x2d1298:for(const _0x42a7f2 of _0x6c7259){let _0x52bf0e=(0x0,core_3[_0x550756(0x1a3)])(action_1[_0x550756(0x17c)],_0x42a7f2),_0x2f9fbe=(0x0,core_3[_0x550756(0x1a3)])(action_1[_0x550756(0x197)],_0x42a7f2);if(_0x52bf0e&&_0x2f9fbe){let _0x521395=_0x52bf0e[_0x550756(0x1a8)],_0x2af9b7={};if(_0x161cb0[_0x550756(0x1da)]&&(0x0,lodash_1[_0x550756(0x1b2)])(_0x52bf0e,_0x550756(0x1da),![])!=_0x161cb0[_0x550756(0x1da)])continue _0x2d1298;else{if(_0x161cb0[_0x550756(0x1da)]===![]&&!!(0x0,lodash_1[_0x550756(0x1b2)])(_0x52bf0e,_0x550756(0x1da),null))continue _0x2d1298;}if(_0x161cb0[_0x550756(0x1a8)]&&!_0x521395[_0x550756(0x1bd)](_0x161cb0['prefix']))continue _0x2d1298;_0x521395!=='/'?(_0x2af9b7[_0x550756(0x1d5)]=(_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e['routerOptions']['tagName'])||(/^\//['test'](_0x521395)?_0x521395[_0x550756(0x1b4)]('/')[0x1]:_0x521395),_0x2af9b7[_0x550756(0x199)]=(_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e[_0x550756(0x185)][_0x550756(0x199)])||_0x2af9b7['summary'],_0x2af9b7[_0x550756(0x1af)]=[]):(_0x2af9b7[_0x550756(0x1d5)]=(_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e[_0x550756(0x185)][_0x550756(0x1cc)])||_0x550756(0x189),_0x2af9b7[_0x550756(0x199)]=(_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e[_0x550756(0x185)][_0x550756(0x199)])||'',_0x2af9b7[_0x550756(0x1af)]=[]);_0x161cb0[_0x550756(0x18e)]&&(_0x2af9b7[_0x550756(0x18e)]=_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e[_0x550756(0x18e)]);(_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e[_0x550756(0x17f)])&&(_0x2af9b7[_0x550756(0x1a8)]=_0x52bf0e[_0x550756(0x17f)]);(_0x52bf0e===null||_0x52bf0e===void 0x0?void 0x0:_0x52bf0e[_0x550756(0x1da)])&&(_0x2af9b7[_0x550756(0x1da)]=_0x52bf0e[_0x550756(0x1da)]);let _0x2abccf=(0x0,core_3[_0x550756(0x1a3)])(core_2[_0x550756(0x18f)],_0x42a7f2)||{};if(typeof _0x2f9fbe[Symbol[_0x550756(0x1ba)]]==='function')for(let _0x444de6 of _0x2f9fbe){let _0x364178={};_0x364178['method']=_0x444de6[_0x550756(0x1d3)],_0x364178[_0x550756(0x1c7)]=(_0x521395+_0x444de6[_0x550756(0x1c1)])['replace'](/\/{1,}/,'/'),_0x364178['summary']=(_0x444de6===null||_0x444de6===void 0x0?void 0x0:_0x444de6[_0x550756(0x19c)])||_0x2af9b7[_0x550756(0x1d5)]||_0x550756(0x189),_0x364178['description']=(_0x444de6===null||_0x444de6===void 0x0?void 0x0:_0x444de6[_0x550756(0x199)])||'',_0x364178[_0x550756(0x1ce)]=[];if(!(0x0,lodash_1['startsWith'])(_0x364178[_0x550756(0x1c7)],'static/apitest')&&!(0x0,lodash_1[_0x550756(0x1bd)])(_0x364178[_0x550756(0x1c7)],_0x550756(0x1a9))&&_0x23c079[_0x550756(0x1a6)](_0x364178[_0x550756(0x1c7)])===-0x1){if(!(_0x161cb0===null||_0x161cb0===void 0x0?void 0x0:_0x161cb0[_0x550756(0x1b8)])){let _0x17e13c=(0x0,core_3[_0x550756(0x196)])(new _0x42a7f2(),_0x444de6[_0x550756(0x17e)]);for(const _0x1912d8 in _0x17e13c){let _0x4df8fb=(_0x332746=_0x2abccf[_0x444de6[_0x550756(0x17e)]])===null||_0x332746===void 0x0?void 0x0:_0x332746[_0x550756(0x1b1)](_0x1af00e=>_0x1af00e['parameterIndex']==_0x1912d8&&_0x1af00e['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x1af00e===null||_0x1af00e===void 0x0?void 0x0:_0x1af00e[_0x550756(0x1a2)]));if(_0x4df8fb===null||_0x4df8fb===void 0x0?void 0x0:_0x4df8fb[_0x550756(0x1a2)]){let _0x3a64fd=convertTypeToString(_0x4df8fb[_0x550756(0x1a2)][_0x550756(0x188)]||0x0);if([_0x550756(0x19b),_0x550756(0x1c9)][_0x550756(0x1a6)](_0x3a64fd)!=-0x1&&_0x4df8fb[_0x550756(0x1a2)][_0x550756(0x182)][_0x550756(0x1a6)](':')==-0x1&&!_0x364178[_0x550756(0x1ce)][_0x550756(0x1b1)](_0x2d9e2b=>_0x2d9e2b[_0x550756(0x18c)]==_0x4df8fb['metadata'][_0x550756(0x182)]))_0x364178[_0x550756(0x1ce)][_0x550756(0x191)]({'key':_0x4df8fb[_0x550756(0x1a2)][_0x550756(0x182)],'title':_0x4df8fb['metadata'][_0x550756(0x182)],'type':convertSchemaType(_0x17e13c[_0x4df8fb[_0x550756(0x1cd)]][_0x550756(0x1d0)]),'required':![],'default':'','desc':''});else{if(_0x3a64fd==_0x550756(0x193)){let _0x2ddeba=((_0x34fd4e=_0x4df8fb===null||_0x4df8fb===void 0x0?void 0x0:_0x4df8fb['metadata'])===null||_0x34fd4e===void 0x0?void 0x0:_0x34fd4e[_0x550756(0x182)])||_0x550756(0x193);_0x2ddeba['indexOf'](':')==-0x1&&!_0x364178[_0x550756(0x1ce)][_0x550756(0x1b1)](_0x153dd1=>_0x153dd1['key']==_0x2ddeba&&_0x153dd1[_0x550756(0x188)]==_0x550756(0x193))&&_0x364178['request']['push']({'key':_0x2ddeba,'title':_0x550756(0x1a0)+_0x2ddeba,'type':_0x550756(0x193),'required':!![],'default':'','desc':''});}}}else{const _0x31d1ee=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x550756(0x194)],_0x17e13c[_0x1912d8]);_0x31d1ee&&_0x364178['request'][_0x550756(0x191)](...getJoiRequest(_0x31d1ee));}}}_0x2af9b7[_0x550756(0x1af)][_0x550756(0x191)](_0x364178);}}if(_0x2af9b7[_0x550756(0x1af)][_0x550756(0x1be)]>0x0){let _0x4bf24d=_0x56f544[_0x521395];_0x4bf24d?(_0x4bf24d[_0x550756(0x1d5)]!=_0x2af9b7[_0x550756(0x1d5)]&&(_0x4bf24d[_0x550756(0x1d5)]=_0x4bf24d[_0x550756(0x1d5)]+','+_0x2af9b7[_0x550756(0x1d5)]),_0x4bf24d[_0x550756(0x199)]!=_0x2af9b7[_0x550756(0x199)]&&(_0x4bf24d[_0x550756(0x199)]=_0x4bf24d[_0x550756(0x199)]+','+_0x2af9b7[_0x550756(0x199)]),_0x4bf24d[_0x550756(0x1af)]=_0x4bf24d[_0x550756(0x1af)][_0x550756(0x1b6)](_0x2af9b7[_0x550756(0x1af)]),_0x56f544[_0x521395]=_0x4bf24d):_0x56f544[_0x521395]=_0x2af9b7;}}}return _0x56f544;}function a8_0x2b22(_0x182017,_0x4d036e){const _0x13dc43=a8_0x13dc();return a8_0x2b22=function(_0x2b22ea,_0x3af48b){_0x2b22ea=_0x2b22ea-0x17b;let _0x5a6466=_0x13dc43[_0x2b22ea];return _0x5a6466;},a8_0x2b22(_0x182017,_0x4d036e);}exports[a8_0x4a122a(0x180)]=getRoutes;function getJoiRequest(_0x1f97f0){const _0x16ff5c=a8_0x4a122a,_0x1e092d=[];for(let _0x316e7f in _0x1f97f0){const _0x41d1b7={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x59e93f=typeof _0x1f97f0[_0x316e7f][_0x16ff5c(0x1d1)]==_0x16ff5c(0x19f)?_0x1f97f0[_0x316e7f][_0x16ff5c(0x1d1)]():_0x1f97f0[_0x316e7f];_0x41d1b7[_0x16ff5c(0x18c)]=_0x316e7f,_0x41d1b7[_0x16ff5c(0x188)]=_0x59e93f['type'],_0x41d1b7[_0x16ff5c(0x17d)]=(0x0,lodash_1['get'])(_0x59e93f,_0x16ff5c(0x1bb),_0x316e7f),_0x41d1b7['default']=(0x0,lodash_1[_0x16ff5c(0x1b2)])(_0x59e93f,_0x16ff5c(0x1ca),''),_0x41d1b7[_0x16ff5c(0x183)]=(0x0,lodash_1[_0x16ff5c(0x1b2)])(_0x59e93f,_0x16ff5c(0x1bc),'')==_0x16ff5c(0x183),_0x41d1b7[_0x16ff5c(0x199)]=(0x0,lodash_1['get'])(_0x59e93f,_0x16ff5c(0x19e),'');if(_0x59e93f['type']==_0x16ff5c(0x1d6))_0x41d1b7[_0x16ff5c(0x1c2)]=getJoiRequest(_0x59e93f[_0x16ff5c(0x1b7)]);else _0x59e93f[_0x16ff5c(0x188)]==_0x16ff5c(0x1c3)&&_0x59e93f[_0x16ff5c(0x1b9)]&&Array[_0x16ff5c(0x1ac)](_0x59e93f['items'])&&_0x59e93f[_0x16ff5c(0x1b9)][0x0]&&console[_0x16ff5c(0x1c8)](_0x316e7f+_0x16ff5c(0x1b0),_0x59e93f);_0x59e93f[_0x16ff5c(0x1d7)]&&Array[_0x16ff5c(0x1ac)](_0x59e93f[_0x16ff5c(0x1d7)])&&_0x59e93f[_0x16ff5c(0x1d7)]['length']>0x0&&(_0x41d1b7['description']=_0x16ff5c(0x190)+_0x59e93f[_0x16ff5c(0x1d7)][_0x16ff5c(0x19d)](',')+'];'+_0x41d1b7[_0x16ff5c(0x199)]);if(_0x41d1b7[_0x16ff5c(0x18c)]&&_0x41d1b7['type']){const _0xdacbd5={};for(const _0x25acf4 of _0x59e93f[_0x16ff5c(0x18a)]||[]){if(_0x25acf4[_0x16ff5c(0x1d0)]===_0x16ff5c(0x1ae)&&_0x25acf4[_0x16ff5c(0x1d4)])_0xdacbd5[_0x16ff5c(0x1ae)]=_0x25acf4['args'][_0x16ff5c(0x187)];else _0x25acf4['name']===_0x16ff5c(0x1a1)&&(_0xdacbd5[_0x16ff5c(0x1a1)]=_0x25acf4[_0x16ff5c(0x1d4)][_0x16ff5c(0x187)]);}_0x41d1b7[_0x16ff5c(0x18a)]=_0xdacbd5;}_0x41d1b7[_0x16ff5c(0x18c)]&&_0x41d1b7[_0x16ff5c(0x17d)]&&_0x1e092d[_0x16ff5c(0x191)](_0x41d1b7);}return _0x1e092d;}function convertSchemaType(_0x9a1ff0){const _0x271059=a8_0x4a122a;switch(_0x9a1ff0){case'Object':return _0x271059(0x1d6);case _0x271059(0x1aa):return'boolean';case _0x271059(0x1cf):return _0x271059(0x184);case _0x271059(0x18d):return _0x271059(0x1c0);case _0x271059(0x1a5):return'file';default:return _0x271059(0x1c0);}}function convertTypeToString(_0xf8e25d){const _0x509532=a8_0x4a122a;switch(_0xf8e25d){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0x509532(0x19a)]['QUERY']:return _0x509532(0x19b);case core_1[_0x509532(0x19a)][_0x509532(0x192)]:return'path';case core_1[_0x509532(0x19a)]['BODY']:return _0x509532(0x1c9);case core_1['RouteParamTypes'][_0x509532(0x181)]:case core_1[_0x509532(0x19a)][_0x509532(0x1d9)]:case core_1[_0x509532(0x19a)]['FILESTREAM']:return _0x509532(0x193);default:return'header';}}
|
|
1
|
+
'use strict';const a8_0xc7ac51=a8_0xd130;(function(_0x37d510,_0x1553c0){const _0x433b92=a8_0xd130,_0x102a89=_0x37d510();while(!![]){try{const _0x4334fe=parseInt(_0x433b92(0x10a))/0x1*(parseInt(_0x433b92(0x115))/0x2)+-parseInt(_0x433b92(0x10e))/0x3*(-parseInt(_0x433b92(0xc8))/0x4)+-parseInt(_0x433b92(0xdf))/0x5*(-parseInt(_0x433b92(0xd7))/0x6)+-parseInt(_0x433b92(0xf7))/0x7*(-parseInt(_0x433b92(0xc4))/0x8)+parseInt(_0x433b92(0xe9))/0x9*(-parseInt(_0x433b92(0xea))/0xa)+parseInt(_0x433b92(0x108))/0xb*(parseInt(_0x433b92(0xc9))/0xc)+parseInt(_0x433b92(0x11b))/0xd*(-parseInt(_0x433b92(0x118))/0xe);if(_0x4334fe===_0x1553c0)break;else _0x102a89['push'](_0x102a89['shift']());}catch(_0x1c9215){_0x102a89['push'](_0x102a89['shift']());}}}(a8_0x3b2e,0xb42d3));function a8_0xd130(_0x461c24,_0x51dc1a){const _0x3b2efa=a8_0x3b2e();return a8_0xd130=function(_0xd1308c,_0x12b271){_0xd1308c=_0xd1308c-0xc1;let _0x52aea0=_0x3b2efa[_0xd1308c];return _0x52aea0;},a8_0xd130(_0x461c24,_0x51dc1a);}Object[a8_0xc7ac51(0xee)](exports,a8_0xc7ac51(0x107),{'value':!![]}),exports[a8_0xc7ac51(0x123)]=void 0x0;const lodash_1=require(a8_0xc7ac51(0x112)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require(a8_0xc7ac51(0xc5)),core_3=require(a8_0xc7ac51(0xc5)),action_1=require(a8_0xc7ac51(0xcb));function a8_0x3b2e(){const _0x1b594a=['flags.description','object','729NyrpbP','boolean','describe','RouteParamTypes','lodash','Number','BODY','1692CexdUy','routes','Boolean','1078FgSGNb','getClassExtendedMetadata','key','215293xMgaEf','iterator','summary','String','ACTION_ROUTE_KEY','FIELDS','get','string','getRoutes','ACTION_KEY','prefix','title','8UxZknP','@midwayjs/core','getMethodParamTypes','tagName','15676BCwtkY','421644IIbJno','-array','../types/action','route','min','module','FILESSTREAM','filter','method','find','array','name','request','default','5000862gOGNYE','flags.label','routerOptions','HEADERS','flags.default','push','PARAM','Object','5hyWnVi','isArray','listModule','path','filepath','metadata','children','allow','file','propertyData','9vBXmKu','11212490HbBzyI','rules','INJECT_CUSTOM_PARAM','indexOf','defineProperty','flags.presence','replace','RULES_KEY','startsWith','header','parameterIndex','required','description','6982171zNFgON','routerName','test','number','pprefix','文件上传-','File','type','body','getClassMetadata','function','args','length','FILESTREAM','items','limit','__esModule','44zuJkcL','concat','249NbCguP','/static/apitest'];a8_0x3b2e=function(){return _0x1b594a;};return a8_0x3b2e();}function getRoutes(_0x3758d8={'prefix':'/','module':![]}){const _0x279bcf=a8_0xc7ac51;var _0x4c38b3,_0x12ec8f;const _0x6dc74b=(0x0,core_3[_0x279bcf(0xe1)])(action_1[_0x279bcf(0xc1)]),_0x213721={},_0x4dc98f=Array['isArray'](_0x3758d8['filter']||[])?_0x3758d8[_0x279bcf(0xd0)]||[]:[_0x3758d8[_0x279bcf(0xd0)]];_0x348e70:for(const _0x4deb88 of _0x6dc74b){let _0x39763d=(0x0,core_3[_0x279bcf(0x100)])(action_1[_0x279bcf(0xc1)],_0x4deb88),_0x41429f=(0x0,core_3['getClassMetadata'])(action_1[_0x279bcf(0x11f)],_0x4deb88);if(_0x39763d&&_0x41429f){let _0x51603c=_0x39763d[_0x279bcf(0xc2)],_0x5d0d92={};if(_0x3758d8[_0x279bcf(0xce)]&&(0x0,lodash_1[_0x279bcf(0x121)])(_0x39763d,_0x279bcf(0xce),![])!=_0x3758d8[_0x279bcf(0xce)])continue _0x348e70;else{if(_0x3758d8['module']===![]&&!!(0x0,lodash_1[_0x279bcf(0x121)])(_0x39763d,_0x279bcf(0xce),null))continue _0x348e70;}if(_0x3758d8['prefix']&&!_0x51603c[_0x279bcf(0xf2)](_0x3758d8[_0x279bcf(0xc2)]))continue _0x348e70;_0x51603c!=='/'?(_0x5d0d92[_0x279bcf(0x11d)]=(_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xd9)][_0x279bcf(0xc7)])||(/^\//[_0x279bcf(0xf9)](_0x51603c)?_0x51603c['split']('/')[0x1]:_0x51603c),_0x5d0d92[_0x279bcf(0xf6)]=(_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xd9)]['description'])||_0x5d0d92[_0x279bcf(0x11d)],_0x5d0d92[_0x279bcf(0x116)]=[]):(_0x5d0d92[_0x279bcf(0x11d)]=(_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xd9)][_0x279bcf(0xc7)])||_0x279bcf(0xd6),_0x5d0d92['description']=(_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xd9)][_0x279bcf(0xf6)])||'',_0x5d0d92[_0x279bcf(0x116)]=[]);_0x3758d8[_0x279bcf(0xe3)]&&(_0x5d0d92[_0x279bcf(0xe3)]=_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xe3)]);(_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xfb)])&&(_0x5d0d92[_0x279bcf(0xc2)]=_0x39763d[_0x279bcf(0xfb)]);(_0x39763d===null||_0x39763d===void 0x0?void 0x0:_0x39763d[_0x279bcf(0xce)])&&(_0x5d0d92[_0x279bcf(0xce)]=_0x39763d[_0x279bcf(0xce)]);let _0x17354c=(0x0,core_3[_0x279bcf(0x100)])(core_2[_0x279bcf(0xec)],_0x4deb88)||{};if(typeof _0x41429f[Symbol[_0x279bcf(0x11c)]]===_0x279bcf(0x101))for(let _0x31d510 of _0x41429f){let _0x32d3ef={};_0x32d3ef[_0x279bcf(0xd1)]=_0x31d510['requestMethod'],_0x32d3ef[_0x279bcf(0xcc)]=(_0x51603c+_0x31d510[_0x279bcf(0xe2)])[_0x279bcf(0xf0)](/\/{1,}/,'/'),_0x32d3ef[_0x279bcf(0x11d)]=(_0x31d510===null||_0x31d510===void 0x0?void 0x0:_0x31d510[_0x279bcf(0xf8)])||_0x5d0d92[_0x279bcf(0x11d)]||_0x279bcf(0xd6),_0x32d3ef[_0x279bcf(0xf6)]=(_0x31d510===null||_0x31d510===void 0x0?void 0x0:_0x31d510[_0x279bcf(0xf6)])||'',_0x32d3ef['request']=[];if(!(0x0,lodash_1['startsWith'])(_0x32d3ef[_0x279bcf(0xcc)],'static/apitest')&&!(0x0,lodash_1[_0x279bcf(0xf2)])(_0x32d3ef['route'],_0x279bcf(0x10b))&&_0x4dc98f[_0x279bcf(0xed)](_0x32d3ef[_0x279bcf(0xcc)])===-0x1){if(!(_0x3758d8===null||_0x3758d8===void 0x0?void 0x0:_0x3758d8['noreq'])){let _0x467e04=(0x0,core_3[_0x279bcf(0xc6)])(new _0x4deb88(),_0x31d510['method']);for(const _0x347565 in _0x467e04){let _0x3bb13e=(_0x4c38b3=_0x17354c[_0x31d510[_0x279bcf(0xd1)]])===null||_0x4c38b3===void 0x0?void 0x0:_0x4c38b3['find'](_0x20dd83=>_0x20dd83[_0x279bcf(0xf4)]==_0x347565&&_0x20dd83[_0x279bcf(0x11a)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x20dd83===null||_0x20dd83===void 0x0?void 0x0:_0x20dd83['metadata']));if(_0x3bb13e===null||_0x3bb13e===void 0x0?void 0x0:_0x3bb13e['metadata']){let _0x24d747=convertTypeToString(_0x3bb13e[_0x279bcf(0xe4)][_0x279bcf(0xfe)]||0x0);if(['query',_0x279bcf(0xff)][_0x279bcf(0xed)](_0x24d747)!=-0x1&&_0x3bb13e['metadata']['propertyData'][_0x279bcf(0xed)](':')==-0x1&&!_0x32d3ef[_0x279bcf(0xd5)][_0x279bcf(0xd2)](_0x504033=>_0x504033[_0x279bcf(0x11a)]==_0x3bb13e['metadata'][_0x279bcf(0xe8)]))_0x32d3ef['request'][_0x279bcf(0xdc)]({'key':_0x3bb13e[_0x279bcf(0xe4)]['propertyData'],'title':_0x3bb13e[_0x279bcf(0xe4)][_0x279bcf(0xe8)],'type':convertSchemaType(_0x467e04[_0x3bb13e['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x24d747==_0x279bcf(0xe7)){let _0x5c8765=((_0x12ec8f=_0x3bb13e===null||_0x3bb13e===void 0x0?void 0x0:_0x3bb13e[_0x279bcf(0xe4)])===null||_0x12ec8f===void 0x0?void 0x0:_0x12ec8f[_0x279bcf(0xe8)])||'file';_0x5c8765[_0x279bcf(0xed)](':')==-0x1&&!_0x32d3ef['request'][_0x279bcf(0xd2)](_0x853f02=>_0x853f02[_0x279bcf(0x11a)]==_0x5c8765&&_0x853f02[_0x279bcf(0xfe)]=='file')&&_0x32d3ef['request'][_0x279bcf(0xdc)]({'key':_0x5c8765,'title':_0x279bcf(0xfc)+_0x5c8765,'type':_0x279bcf(0xe7),'required':!![],'default':'','desc':''});}}}else{const _0x473d3d=(0x0,core_3[_0x279bcf(0x119)])(validator_1[_0x279bcf(0xf1)],_0x467e04[_0x347565]);_0x473d3d&&_0x32d3ef['request'][_0x279bcf(0xdc)](...getJoiRequest(_0x473d3d));}}}_0x5d0d92['routes'][_0x279bcf(0xdc)](_0x32d3ef);}}if(_0x5d0d92[_0x279bcf(0x116)][_0x279bcf(0x103)]>0x0){let _0x2e11c5=_0x213721[_0x51603c];_0x2e11c5?(_0x2e11c5['summary']!=_0x5d0d92[_0x279bcf(0x11d)]&&(_0x2e11c5[_0x279bcf(0x11d)]=_0x2e11c5[_0x279bcf(0x11d)]+','+_0x5d0d92[_0x279bcf(0x11d)]),_0x2e11c5[_0x279bcf(0xf6)]!=_0x5d0d92[_0x279bcf(0xf6)]&&(_0x2e11c5[_0x279bcf(0xf6)]=_0x2e11c5[_0x279bcf(0xf6)]+','+_0x5d0d92[_0x279bcf(0xf6)]),_0x2e11c5['routes']=_0x2e11c5[_0x279bcf(0x116)][_0x279bcf(0x109)](_0x5d0d92[_0x279bcf(0x116)]),_0x213721[_0x51603c]=_0x2e11c5):_0x213721[_0x51603c]=_0x5d0d92;}}}return _0x213721;}exports[a8_0xc7ac51(0x123)]=getRoutes;function getJoiRequest(_0x3f6a8d){const _0x273ea4=a8_0xc7ac51,_0x53df11=[];for(let _0x96f7d5 in _0x3f6a8d){const _0x338ac9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2f6168=typeof _0x3f6a8d[_0x96f7d5][_0x273ea4(0x110)]=='function'?_0x3f6a8d[_0x96f7d5]['describe']():_0x3f6a8d[_0x96f7d5];_0x338ac9[_0x273ea4(0x11a)]=_0x96f7d5,_0x338ac9['type']=_0x2f6168['type'],_0x338ac9[_0x273ea4(0xc3)]=(0x0,lodash_1[_0x273ea4(0x121)])(_0x2f6168,_0x273ea4(0xd8),_0x96f7d5),_0x338ac9[_0x273ea4(0xd6)]=(0x0,lodash_1[_0x273ea4(0x121)])(_0x2f6168,_0x273ea4(0xdb),''),_0x338ac9[_0x273ea4(0xf5)]=(0x0,lodash_1[_0x273ea4(0x121)])(_0x2f6168,_0x273ea4(0xef),'')==_0x273ea4(0xf5),_0x338ac9[_0x273ea4(0xf6)]=(0x0,lodash_1[_0x273ea4(0x121)])(_0x2f6168,_0x273ea4(0x10c),'');if(_0x2f6168[_0x273ea4(0xfe)]==_0x273ea4(0x10d))_0x338ac9[_0x273ea4(0xe5)]=getJoiRequest(_0x2f6168['keys']);else _0x2f6168[_0x273ea4(0xfe)]==_0x273ea4(0xd3)&&_0x2f6168[_0x273ea4(0x105)]&&Array[_0x273ea4(0xe0)](_0x2f6168[_0x273ea4(0x105)])&&_0x2f6168[_0x273ea4(0x105)][0x0]&&console['log'](_0x96f7d5+_0x273ea4(0xca),_0x2f6168);_0x2f6168['allow']&&Array['isArray'](_0x2f6168[_0x273ea4(0xe6)])&&_0x2f6168['allow'][_0x273ea4(0x103)]>0x0&&(_0x338ac9[_0x273ea4(0xf6)]='只允许:['+_0x2f6168[_0x273ea4(0xe6)]['join'](',')+'];'+_0x338ac9[_0x273ea4(0xf6)]);if(_0x338ac9[_0x273ea4(0x11a)]&&_0x338ac9['type']){const _0x3eaa8e={};for(const _0x3c85e2 of _0x2f6168[_0x273ea4(0xeb)]||[]){if(_0x3c85e2[_0x273ea4(0xd4)]===_0x273ea4(0xcd)&&_0x3c85e2[_0x273ea4(0x102)])_0x3eaa8e[_0x273ea4(0xcd)]=_0x3c85e2[_0x273ea4(0x102)]['limit'];else _0x3c85e2[_0x273ea4(0xd4)]==='max'&&(_0x3eaa8e['max']=_0x3c85e2['args'][_0x273ea4(0x106)]);}_0x338ac9[_0x273ea4(0xeb)]=_0x3eaa8e;}_0x338ac9[_0x273ea4(0x11a)]&&_0x338ac9[_0x273ea4(0xc3)]&&_0x53df11[_0x273ea4(0xdc)](_0x338ac9);}return _0x53df11;}function convertSchemaType(_0x35490b){const _0x28c3de=a8_0xc7ac51;switch(_0x35490b){case _0x28c3de(0xde):return _0x28c3de(0x10d);case _0x28c3de(0x117):return _0x28c3de(0x10f);case _0x28c3de(0x113):return _0x28c3de(0xfa);case _0x28c3de(0x11e):return _0x28c3de(0x122);case _0x28c3de(0xfd):return _0x28c3de(0xe7);default:return'string';}}function convertTypeToString(_0x5ce2cd){const _0x1bf519=a8_0xc7ac51;switch(_0x5ce2cd){case core_1[_0x1bf519(0x111)][_0x1bf519(0xda)]:return _0x1bf519(0xf3);case core_1[_0x1bf519(0x111)]['QUERY']:return'query';case core_1[_0x1bf519(0x111)][_0x1bf519(0xdd)]:return _0x1bf519(0xe2);case core_1[_0x1bf519(0x111)][_0x1bf519(0x114)]:return'body';case core_1[_0x1bf519(0x111)][_0x1bf519(0x120)]:case core_1['RouteParamTypes'][_0x1bf519(0xcf)]:case core_1[_0x1bf519(0x111)][_0x1bf519(0x104)]:return _0x1bf519(0xe7);default:return _0x1bf519(0xf3);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x2decf5=a9_0x5e33;(function(_0x551725,_0x2f2240){var _0x392f00=a9_0x5e33,_0x460c3e=_0x551725();while(!![]){try{var _0x4f8273=parseInt(_0x392f00(0x1d9))/0x1*(-parseInt(_0x392f00(0x1d8))/0x2)+-parseInt(_0x392f00(0x1af))/0x3*(parseInt(_0x392f00(0x1bc))/0x4)+-parseInt(_0x392f00(0x1b7))/0x5+parseInt(_0x392f00(0x1c6))/0x6*(-parseInt(_0x392f00(0x1ca))/0x7)+parseInt(_0x392f00(0x1d5))/0x8+parseInt(_0x392f00(0x1a2))/0x9+-parseInt(_0x392f00(0x1a7))/0xa*(-parseInt(_0x392f00(0x1c0))/0xb);if(_0x4f8273===_0x2f2240)break;else _0x460c3e['push'](_0x460c3e['shift']());}catch(_0x13488a){_0x460c3e['push'](_0x460c3e['shift']());}}}(a9_0x2f7c,0x32f7b));var __createBinding=this&&this[a9_0x2decf5(0x1dc)]||(Object[a9_0x2decf5(0x1a3)]?function(_0x2a3e73,_0x42e49d,_0x1c245e,_0x3a3b67){var _0x3174c5=a9_0x2decf5;if(_0x3a3b67===undefined)_0x3a3b67=_0x1c245e;var _0xa96bfe=Object[_0x3174c5(0x1d2)](_0x42e49d,_0x1c245e);(!_0xa96bfe||('get'in _0xa96bfe?!_0x42e49d[_0x3174c5(0x1c1)]:_0xa96bfe[_0x3174c5(0x1cc)]||_0xa96bfe[_0x3174c5(0x1c4)]))&&(_0xa96bfe={'enumerable':!![],'get':function(){return _0x42e49d[_0x1c245e];}}),Object[_0x3174c5(0x1ab)](_0x2a3e73,_0x3a3b67,_0xa96bfe);}:function(_0x7543b8,_0x26540b,_0x12c06b,_0x3c167d){if(_0x3c167d===undefined)_0x3c167d=_0x12c06b;_0x7543b8[_0x3c167d]=_0x26540b[_0x12c06b];}),__exportStar=this&&this['__exportStar']||function(_0x364bf4,_0xc6e8a){var _0x1a2819=a9_0x2decf5;for(var _0x4f7ed1 in _0x364bf4)if(_0x4f7ed1!==_0x1a2819(0x1cf)&&!Object['prototype']['hasOwnProperty'][_0x1a2819(0x1a8)](_0xc6e8a,_0x4f7ed1))__createBinding(_0xc6e8a,_0x364bf4,_0x4f7ed1);};Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1c1),{'value':!![]}),exports['getAppsConfig']=exports[a9_0x2decf5(0x1cd)]=exports[a9_0x2decf5(0x1ce)]=exports['Inject']=exports['Provide']=exports[a9_0x2decf5(0x1c8)]=exports[a9_0x2decf5(0x1c7)]=exports[a9_0x2decf5(0x1a5)]=exports['Init']=exports[a9_0x2decf5(0x1db)]=exports[a9_0x2decf5(0x1be)]=exports[a9_0x2decf5(0x1c9)]=exports[a9_0x2decf5(0x1ac)]=exports['Fields']=exports[a9_0x2decf5(0x1b1)]=exports[a9_0x2decf5(0x1d3)]=exports[a9_0x2decf5(0x1b5)]=exports[a9_0x2decf5(0x1b0)]=exports[a9_0x2decf5(0x1ad)]=exports['ExcelService']=exports[a9_0x2decf5(0x1d6)]=exports['EventService']=exports[a9_0x2decf5(0x1b6)]=exports[a9_0x2decf5(0x1bd)]=exports[a9_0x2decf5(0x1bf)]=exports[a9_0x2decf5(0x1a1)]=exports[a9_0x2decf5(0x1d1)]=exports[a9_0x2decf5(0x1cb)]=void 0x0;const getAppsConfig_1=require(a9_0x2decf5(0x1c3));Object[a9_0x2decf5(0x1ab)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x7cb967=a9_0x2decf5;return getAppsConfig_1[_0x7cb967(0x1b8)];}}),__exportStar(require(a9_0x2decf5(0x1b4)),exports),__exportStar(require(a9_0x2decf5(0x1ba)),exports);var ActionApi_1=require(a9_0x2decf5(0x1b2));Object['defineProperty'](exports,a9_0x2decf5(0x1cb),{'enumerable':!![],'get':function(){var _0x4444e0=a9_0x2decf5;return ActionApi_1[_0x4444e0(0x1cb)];}});var Action_1=require(a9_0x2decf5(0x1ae));Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1d1),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x2decf5(0x1d7));function a9_0x5e33(_0x13ae1a,_0x56b03e){var _0x2f7c24=a9_0x2f7c();return a9_0x5e33=function(_0x5e3333,_0x501c0a){_0x5e3333=_0x5e3333-0x1a1;var _0x3d8da1=_0x2f7c24[_0x5e3333];return _0x3d8da1;},a9_0x5e33(_0x13ae1a,_0x56b03e);}Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1a1),{'enumerable':!![],'get':function(){var _0x57ef8b=a9_0x2decf5;return ActionApitest_1[_0x57ef8b(0x1a1)];}});var getRoutes_1=require(a9_0x2decf5(0x1b9));Object['defineProperty'](exports,a9_0x2decf5(0x1bf),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x2decf5(0x1ab)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x576e91=a9_0x2decf5;return ApiError_1[_0x576e91(0x1bd)];}});var cache_1=require(a9_0x2decf5(0x1c2));Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1b6),{'enumerable':!![],'get':function(){var _0x3586ea=a9_0x2decf5;return cache_1[_0x3586ea(0x1b6)];}});var event_1=require(a9_0x2decf5(0x1a4));Object[a9_0x2decf5(0x1ab)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x436116=a9_0x2decf5;return event_1[_0x436116(0x1da)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x2decf5(0x1ab)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require('./service/ExcelService');Object['defineProperty'](exports,a9_0x2decf5(0x1c5),{'enumerable':!![],'get':function(){var _0x3d37a0=a9_0x2decf5;return ExcelService_1[_0x3d37a0(0x1c5)];}});var validator_1=require(a9_0x2decf5(0x1bb));Object[a9_0x2decf5(0x1ab)](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1b0),{'enumerable':!![],'get':function(){var _0x1bb9b9=a9_0x2decf5;return validator_1[_0x1bb9b9(0x1b0)];}});var configuration_1=require(a9_0x2decf5(0x1a9));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a9_0x2f7c(){var _0x4b0fb0=['ValidatorError','./decorator/Action','489mbLReI','ValidatorService','Files','./decorator/ActionApi','Init','./types/common','Configuration','CacheService','624105HpXSmv','getAppsConfig','./helper/getRoutes','./service/ApitestService','@anncic-api/validator','4612hxrFdl','ApiError','Query','getRoutes','11NOtwgr','__esModule','@anncic-api/cache','./helper/getAppsConfig','configurable','ExcelService','3174EDwRZP','Config','Logger','Param','1764ldqAyD','Api','writable','ScopeEnum','Scope','default','Inject','Action','getOwnPropertyDescriptor','File','Provide','1366376bXwVEH','ApiService','./decorator/ActionApitest','178VDWBFX','1857sFYlZl','EventService','Headers','__createBinding','Apitest','526374qklpTj','create','@anncic-api/event','App','Fields','5908210oNCjoW','call','./configuration','@midwayjs/core','defineProperty','Body'];a9_0x2f7c=function(){return _0x4b0fb0;};return a9_0x2f7c();}var core_1=require('@midwayjs/core');Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1d3),{'enumerable':!![],'get':function(){var _0x2650c5=a9_0x2decf5;return core_1[_0x2650c5(0x1d3)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1b1),{'enumerable':!![],'get':function(){var _0x4f2597=a9_0x2decf5;return core_1[_0x4f2597(0x1b1)];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x33a1b0=a9_0x2decf5;return core_1[_0x33a1b0(0x1a6)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1ac),{'enumerable':!![],'get':function(){var _0x172770=a9_0x2decf5;return core_1[_0x172770(0x1ac)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1c9),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x2decf5(0x1ab)](exports,'Query',{'enumerable':!![],'get':function(){var _0x2a7878=a9_0x2decf5;return core_1[_0x2a7878(0x1be)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1db),{'enumerable':!![],'get':function(){var _0x539e1e=a9_0x2decf5;return core_1[_0x539e1e(0x1db)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1b3),{'enumerable':!![],'get':function(){var _0x125f49=a9_0x2decf5;return core_1[_0x125f49(0x1b3)];}});var core_2=require(a9_0x2decf5(0x1aa));Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1a5),{'enumerable':!![],'get':function(){var _0x449f6c=a9_0x2decf5;return core_2[_0x449f6c(0x1a5)];}}),Object[a9_0x2decf5(0x1ab)](exports,'Config',{'enumerable':!![],'get':function(){var _0x4404ce=a9_0x2decf5;return core_2[_0x4404ce(0x1c7)];}}),Object['defineProperty'](exports,'Logger',{'enumerable':!![],'get':function(){var _0x4f6759=a9_0x2decf5;return core_2[_0x4f6759(0x1c8)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1d4),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,a9_0x2decf5(0x1d0),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1ce),{'enumerable':!![],'get':function(){var _0x16d060=a9_0x2decf5;return core_2[_0x16d060(0x1ce)];}}),Object[a9_0x2decf5(0x1ab)](exports,a9_0x2decf5(0x1cd),{'enumerable':!![],'get':function(){var _0x3ed004=a9_0x2decf5;return core_2[_0x3ed004(0x1cd)];}}),global[a9_0x2decf5(0x1b8)]=getAppsConfig_1[a9_0x2decf5(0x1b8)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x4c6503=a10_0x1c27;(function(_0x23efb5,_0x1756e3){var _0x1f6d69=a10_0x1c27,_0x38cb78=_0x23efb5();while(!![]){try{var _0x258379=-parseInt(_0x1f6d69(0x111))/0x1*(parseInt(_0x1f6d69(0x146))/0x2)+parseInt(_0x1f6d69(0x11a))/0x3*(-parseInt(_0x1f6d69(0x13a))/0x4)+parseInt(_0x1f6d69(0x147))/0x5*(-parseInt(_0x1f6d69(0x122))/0x6)+-parseInt(_0x1f6d69(0x10e))/0x7+-parseInt(_0x1f6d69(0x118))/0x8*(-parseInt(_0x1f6d69(0x10c))/0x9)+parseInt(_0x1f6d69(0x12b))/0xa*(-parseInt(_0x1f6d69(0x132))/0xb)+parseInt(_0x1f6d69(0x112))/0xc;if(_0x258379===_0x1756e3)break;else _0x38cb78['push'](_0x38cb78['shift']());}catch(_0x1c5032){_0x38cb78['push'](_0x38cb78['shift']());}}}(a10_0xecd2,0x313d5));function a10_0xecd2(){var _0x51c238=['requesttime','__esModule','getcheck','length','2200BnPQmY','getsign','6GFvoRm','metadata','checkcode','password','abs','toLowerCase','secret','crypto-js','11598LqmvQz','@midwayjs/core','devices','prototype','device','getOwnPropertyDescriptor','signature','decorate','缺少头信息:signature','480640omwUeD','logintime','object','HEADERS_CHECKCODE','design:type','MD5','toString','33JulMmZ','ApiService','now','push','HEADERS_LACK','Config','__metadata','token','53460SPYQIf','config','fromEntries','map','sort','checksign','function','../exception/ApiError','secret=','Scope','HEADERS_DEVICE','join','4WOgRJE','995ADocgd','11088iZoFOX','entries','2611840YPWvbj','TIMEOUT','HEADERS_SIGNATURE','118087xMqHZe','12333216uLYjKY','ApiError'];a10_0xecd2=function(){return _0x51c238;};return a10_0xecd2();}var __decorate=this&&this['__decorate']||function(_0x1f5691,_0x357ab4,_0x2dd6c6,_0x324464){var _0x54b8a9=a10_0x1c27,_0x30c98f=arguments['length'],_0x37bd10=_0x30c98f<0x3?_0x357ab4:_0x324464===null?_0x324464=Object[_0x54b8a9(0x127)](_0x357ab4,_0x2dd6c6):_0x324464,_0x388e08;if(typeof Reflect==='object'&&typeof Reflect[_0x54b8a9(0x129)]===_0x54b8a9(0x140))_0x37bd10=Reflect[_0x54b8a9(0x129)](_0x1f5691,_0x357ab4,_0x2dd6c6,_0x324464);else{for(var _0x5bf406=_0x1f5691[_0x54b8a9(0x117)]-0x1;_0x5bf406>=0x0;_0x5bf406--)if(_0x388e08=_0x1f5691[_0x5bf406])_0x37bd10=(_0x30c98f<0x3?_0x388e08(_0x37bd10):_0x30c98f>0x3?_0x388e08(_0x357ab4,_0x2dd6c6,_0x37bd10):_0x388e08(_0x357ab4,_0x2dd6c6))||_0x37bd10;}return _0x30c98f>0x3&&_0x37bd10&&Object['defineProperty'](_0x357ab4,_0x2dd6c6,_0x37bd10),_0x37bd10;},__metadata=this&&this[a10_0x4c6503(0x138)]||function(_0x5b11e0,_0x4172fd){var _0x17c02b=a10_0x4c6503;if(typeof Reflect===_0x17c02b(0x12d)&&typeof Reflect[_0x17c02b(0x11b)]===_0x17c02b(0x140))return Reflect[_0x17c02b(0x11b)](_0x5b11e0,_0x4172fd);};Object['defineProperty'](exports,a10_0x4c6503(0x115),{'value':!![]}),exports[a10_0x4c6503(0x133)]=void 0x0;function a10_0x1c27(_0x4dc78c,_0x1f8456){var _0xecd2cd=a10_0xecd2();return a10_0x1c27=function(_0x1c276a,_0x2e4ae1){_0x1c276a=_0x1c276a-0x10c;var _0x2c7ded=_0xecd2cd[_0x1c276a];return _0x2c7ded;},a10_0x1c27(_0x4dc78c,_0x1f8456);}const crypto_js_1=require(a10_0x4c6503(0x121)),core_1=require(a10_0x4c6503(0x123)),ApiError_1=require(a10_0x4c6503(0x141));let ApiService=class ApiService{['password'](_0x40539a){var _0x2cb8e9=a10_0x4c6503,_0x133911;return _0x40539a?(0x0,crypto_js_1[_0x2cb8e9(0x130)])(_0x40539a+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x40539a)[_0x2cb8e9(0x131)]()+((_0x133911=this['config'])===null||_0x133911===void 0x0?void 0x0:_0x133911[_0x2cb8e9(0x11d)]))['toString']())[_0x2cb8e9(0x131)]():'';}[a10_0x4c6503(0x116)](_0x41cda5,_0x1ade8f,_0x3937c7=Date['now']()){var _0x2c35bf=a10_0x4c6503;return{'Token':_0x41cda5,'Logintime':_0x3937c7,'Checkcode':this[_0x2c35bf(0x11c)](_0x41cda5,_0x1ade8f,_0x3937c7)};}[a10_0x4c6503(0x119)](_0x33b478={}){var _0x2f1ff3=a10_0x4c6503;const _0x4ad0b3=[],_0x3049e2=Object['fromEntries'](Object[_0x2f1ff3(0x10d)](_0x33b478)[_0x2f1ff3(0x13d)](_0x4967c8=>[_0x4967c8[0x0][_0x2f1ff3(0x11f)](),_0x4967c8[0x1]]));for(let _0x500847 of[_0x2f1ff3(0x126),_0x2f1ff3(0x114),_0x2f1ff3(0x139),_0x2f1ff3(0x12c),_0x2f1ff3(0x11c)]){if(typeof _0x3049e2[_0x500847]=='undefined')throw new AnnError(ApiError_1[_0x2f1ff3(0x113)][_0x2f1ff3(0x136)],{'message':'缺少头信息:'+_0x500847});_0x4ad0b3[_0x2f1ff3(0x135)](_0x500847+'='+_0x3049e2[_0x500847]);}if(Math[_0x2f1ff3(0x11e)](_0x3049e2[_0x2f1ff3(0x114)])-Date[_0x2f1ff3(0x134)]()>this[_0x2f1ff3(0x13b)]['timeout'])throw new AnnError(ApiError_1[_0x2f1ff3(0x113)][_0x2f1ff3(0x10f)]);if(!this['config'][_0x2f1ff3(0x124)][_0x3049e2[_0x2f1ff3(0x126)]]||!this['config']['devices'][_0x3049e2[_0x2f1ff3(0x126)]]['secret']||!this['config'][_0x2f1ff3(0x124)][_0x3049e2[_0x2f1ff3(0x126)]][_0x2f1ff3(0x11c)])throw new AnnError(ApiError_1[_0x2f1ff3(0x113)][_0x2f1ff3(0x144)]);if(_0x3049e2['token']&&_0x3049e2[_0x2f1ff3(0x11c)]!=this[_0x2f1ff3(0x11c)](_0x3049e2[_0x2f1ff3(0x139)],_0x3049e2['device'],_0x3049e2[_0x2f1ff3(0x12c)]))throw new AnnError(ApiError_1[_0x2f1ff3(0x113)][_0x2f1ff3(0x12e)]);return _0x4ad0b3[_0x2f1ff3(0x135)](_0x2f1ff3(0x142)+this[_0x2f1ff3(0x13b)]['devices'][_0x3049e2[_0x2f1ff3(0x126)]][_0x2f1ff3(0x120)]),(0x0,crypto_js_1[_0x2f1ff3(0x130)])(_0x4ad0b3[_0x2f1ff3(0x13e)]()[_0x2f1ff3(0x145)](''))[_0x2f1ff3(0x131)]();}[a10_0x4c6503(0x11c)](_0xe73d9e,_0x435316,_0x15a0db=Date[a10_0x4c6503(0x134)]()){var _0x126f61=a10_0x4c6503,_0x4d3d16,_0x367be6,_0x4a302c;if(!((_0x4d3d16=this['config'])===null||_0x4d3d16===void 0x0?void 0x0:_0x4d3d16[_0x126f61(0x124)][_0x435316])||!((_0x4a302c=(_0x367be6=this[_0x126f61(0x13b)])===null||_0x367be6===void 0x0?void 0x0:_0x367be6[_0x126f61(0x124)][_0x435316])===null||_0x4a302c===void 0x0?void 0x0:_0x4a302c[_0x126f61(0x11c)]))throw new AnnError(ApiError_1[_0x126f61(0x113)][_0x126f61(0x144)]);return(0x0,crypto_js_1[_0x126f61(0x130)])(_0xe73d9e+(0x0,crypto_js_1[_0x126f61(0x130)])(_0x15a0db+this[_0x126f61(0x13b)][_0x126f61(0x124)][_0x435316][_0x126f61(0x11c)])['toString']())[_0x126f61(0x131)]();}[a10_0x4c6503(0x13f)](_0x49c6c3={}){var _0x20a466=a10_0x4c6503;const _0x2d06c3=Object[_0x20a466(0x13c)](Object[_0x20a466(0x10d)](_0x49c6c3)[_0x20a466(0x13d)](_0x133b15=>[_0x133b15[0x0][_0x20a466(0x11f)](),_0x133b15[0x1]]));if(!(_0x2d06c3===null||_0x2d06c3===void 0x0?void 0x0:_0x2d06c3['signature']))throw new AnnError(ApiError_1['ApiError'][_0x20a466(0x136)],{'message':_0x20a466(0x12a)});if((_0x2d06c3===null||_0x2d06c3===void 0x0?void 0x0:_0x2d06c3[_0x20a466(0x128)])!=this['getsign'](_0x2d06c3))throw new AnnError(ApiError_1['ApiError'][_0x20a466(0x110)]);return!![];}};__decorate([(0x0,core_1[a10_0x4c6503(0x137)])('anncicapi'),__metadata(a10_0x4c6503(0x12f),Object)],ApiService[a10_0x4c6503(0x125)],a10_0x4c6503(0x13b),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x4c6503(0x143)])(core_1['ScopeEnum']['Singleton'])],ApiService),exports[a10_0x4c6503(0x133)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x552e6d=a11_0x2ec9;(function(_0x41610b,_0x2d350e){const _0x1be024=a11_0x2ec9,_0x3dc9d7=_0x41610b();while(!![]){try{const _0x4f5123=-parseInt(_0x1be024(0x12f))/0x1+parseInt(_0x1be024(0x100))/0x2*(-parseInt(_0x1be024(0x10f))/0x3)+parseInt(_0x1be024(0xf9))/0x4*(parseInt(_0x1be024(0xfe))/0x5)+-parseInt(_0x1be024(0x10a))/0x6*(parseInt(_0x1be024(0x106))/0x7)+parseInt(_0x1be024(0x108))/0x8*(-parseInt(_0x1be024(0x129))/0x9)+-parseInt(_0x1be024(0x109))/0xa+parseInt(_0x1be024(0x118))/0xb;if(_0x4f5123===_0x2d350e)break;else _0x3dc9d7['push'](_0x3dc9d7['shift']());}catch(_0x5cc718){_0x3dc9d7['push'](_0x3dc9d7['shift']());}}}(a11_0x24f7,0x91b76));function a11_0x24f7(){const _0x4e9917=['/apiteststatic/*','1359ozEtHp','design:returntype','/index.html','__metadata','Param','__esModule','342197YQmibF','Scope','existsSync','stringify','push','filepath','config','prefix','path','replace','ApitestService','Inject','anncicapi','prototype','apitesthtml','description','Request','route','getOwnPropertyDescriptor','.js','metadata','/apitest','function','__devices__','isDevelopmentEnvironment','utf-8','text/css;\x20charset=utf-8','37652GRBfCj','Environment','design:paramtypes','/apitest-:module','devices','235LySPwc','summary','626TQNXPH','url','ctx','/apiteststatic/','routes','Provide','25781pOEofu','Get','39472mrfeUM','5854620mINYBm','246QvZnwz','getRoutes','extname','Singleton','length','7851trWsNB','../../public/','join','Config','.css','ApitestStaticController','decorate','ScopeEnum','apitest','30769860uWDZTD','set','request','../../public/index.html','public,\x20max-age=604800','__decorate','object','Controller','@midwayjs/core','design:type','apiteststatic','apitestmodule','substring','module','readFileSync','apidoc'];a11_0x24f7=function(){return _0x4e9917;};return a11_0x24f7();}var __decorate=this&&this[a11_0x552e6d(0x11d)]||function(_0x463ca0,_0x4379d5,_0x574e37,_0x454c96){const _0x3a2a79=a11_0x552e6d;var _0x4bca64=arguments[_0x3a2a79(0x10e)],_0x47f9c4=_0x4bca64<0x3?_0x4379d5:_0x454c96===null?_0x454c96=Object[_0x3a2a79(0xf0)](_0x4379d5,_0x574e37):_0x454c96,_0x2b6d34;if(typeof Reflect===_0x3a2a79(0x11e)&&typeof Reflect['decorate']===_0x3a2a79(0xf4))_0x47f9c4=Reflect[_0x3a2a79(0x115)](_0x463ca0,_0x4379d5,_0x574e37,_0x454c96);else{for(var _0x201770=_0x463ca0[_0x3a2a79(0x10e)]-0x1;_0x201770>=0x0;_0x201770--)if(_0x2b6d34=_0x463ca0[_0x201770])_0x47f9c4=(_0x4bca64<0x3?_0x2b6d34(_0x47f9c4):_0x4bca64>0x3?_0x2b6d34(_0x4379d5,_0x574e37,_0x47f9c4):_0x2b6d34(_0x4379d5,_0x574e37))||_0x47f9c4;}return _0x4bca64>0x3&&_0x47f9c4&&Object['defineProperty'](_0x4379d5,_0x574e37,_0x47f9c4),_0x47f9c4;},__metadata=this&&this[a11_0x552e6d(0x12c)]||function(_0x44020a,_0x13a578){const _0x53ec9c=a11_0x552e6d;if(typeof Reflect===_0x53ec9c(0x11e)&&typeof Reflect[_0x53ec9c(0xf2)]===_0x53ec9c(0xf4))return Reflect[_0x53ec9c(0xf2)](_0x44020a,_0x13a578);},__param=this&&this['__param']||function(_0x17aade,_0x1312c5){return function(_0x5029f1,_0xe694bd){_0x1312c5(_0x5029f1,_0xe694bd,_0x17aade);};};function a11_0x2ec9(_0x70a764,_0x4a93b3){const _0x24f77e=a11_0x24f7();return a11_0x2ec9=function(_0x2ec9ad,_0x36a660){_0x2ec9ad=_0x2ec9ad-0xe8;let _0x48c4bd=_0x24f77e[_0x2ec9ad];return _0x48c4bd;},a11_0x2ec9(_0x70a764,_0x4a93b3);}Object['defineProperty'](exports,a11_0x552e6d(0x12e),{'value':!![]}),exports[a11_0x552e6d(0x114)]=exports[a11_0x552e6d(0xe8)]=void 0x0;const path_1=require(a11_0x552e6d(0x137)),fs_1=require('fs'),core_1=require(a11_0x552e6d(0x120)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async['apidoc'](_0x465fed){const _0x122083=a11_0x552e6d,_0x2164fc=(0x0,getRoutes_1[_0x122083(0x10b)])(_0x465fed),_0x3a7806=[];for(let _0x35fe6b in _0x2164fc){for(let _0x5b38f5 in _0x2164fc[_0x35fe6b][_0x122083(0x104)]){let _0x1cd02a=_0x2164fc[_0x35fe6b]['routes'][_0x5b38f5],_0x2966d0=[];for(let _0x2e8c3c in _0x1cd02a[_0x122083(0x11a)]){_0x2966d0[_0x122083(0x133)](_0x1cd02a[_0x122083(0x11a)][_0x2e8c3c]);}_0x3a7806[_0x122083(0x133)]({'title':_0x2164fc[_0x35fe6b][_0x122083(0xff)]+':'+_0x1cd02a[_0x122083(0xff)],'prefix':_0x2164fc[_0x35fe6b][_0x122083(0x136)],'router':_0x1cd02a[_0x122083(0xef)],'method':_0x1cd02a['method'],'describe':_0x1cd02a[_0x122083(0xed)]||'','filepath':_0x2164fc[_0x35fe6b][_0x122083(0x134)]||'','request':_0x2966d0});}}const _0x51f7fd=(0x0,path_1[_0x122083(0x111)])(__dirname,_0x122083(0x11b));return(0x0,fs_1[_0x122083(0x126)])(_0x51f7fd,{'encoding':_0x122083(0xf7)})[_0x122083(0x138)](/__res__/g,_0x122083(0x103))['replace']('__apiList__',JSON['stringify'](_0x3a7806))[_0x122083(0x138)](_0x122083(0xf5),JSON[_0x122083(0x132)](this[_0x122083(0x135)][_0x122083(0xfd)]));}};__decorate([(0x0,core_3['Config'])(a11_0x552e6d(0xea)),__metadata(a11_0x552e6d(0x121),Object)],ApitestService[a11_0x552e6d(0xeb)],a11_0x552e6d(0x135),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x552e6d(0x105)])(a11_0x552e6d(0x117)),(0x0,core_3[a11_0x552e6d(0x130)])(core_3[a11_0x552e6d(0x116)][a11_0x552e6d(0x10d)])],ApitestService),exports[a11_0x552e6d(0xe8)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x552e6d(0xec)](){const _0x3cead8=a11_0x552e6d;if(this[_0x3cead8(0x117)]){const _0x40e291={'module':![]};return this[_0x3cead8(0xfa)][_0x3cead8(0xf6)]()&&(_0x40e291[_0x3cead8(0x134)]=!![]),await this[_0x3cead8(0xe8)]['apidoc'](_0x40e291);}return'';}async[a11_0x552e6d(0x123)](_0x3d19be){const _0x855bdf=a11_0x552e6d;if(this[_0x855bdf(0x117)]){const _0x57dd9a={'module':_0x3d19be};return this[_0x855bdf(0xfa)][_0x855bdf(0xf6)]()&&(_0x57dd9a[_0x855bdf(0x134)]=!![]),await this[_0x855bdf(0xe8)][_0x855bdf(0x127)](_0x57dd9a);}return'';}async[a11_0x552e6d(0x122)](){const _0x2103af=a11_0x552e6d;if((0x0,path_1[_0x2103af(0x10c)])(this['ctx'][_0x2103af(0x11a)]['url'])){var _0x46a43b=(0x0,path_1['join'])(__dirname,_0x2103af(0x110)+this[_0x2103af(0x102)][_0x2103af(0x11a)][_0x2103af(0x101)][_0x2103af(0x138)](_0x2103af(0x103),'/'));if(_0x46a43b[_0x2103af(0x124)](_0x46a43b[_0x2103af(0x10e)]-0xb)!=_0x2103af(0x12b)){this[_0x2103af(0x102)][_0x2103af(0x119)]('cache-control',_0x2103af(0x11c));if((0x0,path_1[_0x2103af(0x10c)])(this[_0x2103af(0x102)][_0x2103af(0x11a)][_0x2103af(0x101)])==_0x2103af(0xf1))this[_0x2103af(0x102)][_0x2103af(0x119)]('content-type','application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x2103af(0x10c)])(this[_0x2103af(0x102)][_0x2103af(0x11a)][_0x2103af(0x101)])==_0x2103af(0x113)&&this[_0x2103af(0x102)][_0x2103af(0x119)]('content-type',_0x2103af(0xf8));return(0x0,fs_1[_0x2103af(0x131)])(_0x46a43b)&&(0x0,fs_1[_0x2103af(0x126)])(_0x46a43b,{'encoding':_0x2103af(0xf7)});}}return'';}};__decorate([(0x0,core_3[a11_0x552e6d(0xe9)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],'ctx',void 0x0),__decorate([(0x0,core_3[a11_0x552e6d(0xe9)])(),__metadata(a11_0x552e6d(0x121),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x552e6d(0xeb)],a11_0x552e6d(0xfa),void 0x0),__decorate([(0x0,core_3[a11_0x552e6d(0xe9)])(),__metadata(a11_0x552e6d(0x121),ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,core_3[a11_0x552e6d(0x112)])(a11_0x552e6d(0x117)),__metadata(a11_0x552e6d(0x121),Boolean)],ApitestStaticController[a11_0x552e6d(0xeb)],a11_0x552e6d(0x117),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x552e6d(0xea)),__metadata(a11_0x552e6d(0x121),Object)],ApitestStaticController[a11_0x552e6d(0xeb)],a11_0x552e6d(0x135),void 0x0),__decorate([(0x0,core_2[a11_0x552e6d(0x107)])(a11_0x552e6d(0xf3)),__metadata(a11_0x552e6d(0x121),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x552e6d(0x107)])(a11_0x552e6d(0xfc)),__param(0x0,(0x0,core_2[a11_0x552e6d(0x12d)])(a11_0x552e6d(0x125))),__metadata('design:type',Function),__metadata('design:paramtypes',[String]),__metadata(a11_0x552e6d(0x12a),Promise)],ApitestStaticController['prototype'],a11_0x552e6d(0x123),null),__decorate([(0x0,core_2['Get'])(a11_0x552e6d(0x128)),__metadata(a11_0x552e6d(0x121),Function),__metadata(a11_0x552e6d(0xfb),[]),__metadata(a11_0x552e6d(0x12a),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x552e6d(0x11f)])('/'),(0x0,core_3['Scope'])(core_3[a11_0x552e6d(0x116)][a11_0x552e6d(0xee)])],ApitestStaticController),exports[a11_0x552e6d(0x114)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x34c514=a12_0x2add;(function(_0x1574cd,_0xe15834){const _0x39e003=a12_0x2add,_0x4bf55d=_0x1574cd();while(!![]){try{const _0x512940=parseInt(_0x39e003(0xce))/0x1*(-parseInt(_0x39e003(0xf5))/0x2)+parseInt(_0x39e003(0xc1))/0x3+parseInt(_0x39e003(0xe8))/0x4*(-parseInt(_0x39e003(0xde))/0x5)+parseInt(_0x39e003(0xf1))/0x6*(parseInt(_0x39e003(0xbe))/0x7)+parseInt(_0x39e003(0xc8))/0x8+parseInt(_0x39e003(0xda))/0x9*(-parseInt(_0x39e003(0xd9))/0xa)+parseInt(_0x39e003(0xd1))/0xb;if(_0x512940===_0xe15834)break;else _0x4bf55d['push'](_0x4bf55d['shift']());}catch(_0x3fadfc){_0x4bf55d['push'](_0x4bf55d['shift']());}}}(a12_0x3df9,0x310f2));var __decorate=this&&this[a12_0x34c514(0xe2)]||function(_0x384dc4,_0x12c4c2,_0x46678a,_0x17d3bb){const _0x3d2e2e=a12_0x34c514;var _0x487642=arguments[_0x3d2e2e(0xcb)],_0x878fe1=_0x487642<0x3?_0x12c4c2:_0x17d3bb===null?_0x17d3bb=Object[_0x3d2e2e(0xee)](_0x12c4c2,_0x46678a):_0x17d3bb,_0x94a9ca;if(typeof Reflect===_0x3d2e2e(0xe1)&&typeof Reflect[_0x3d2e2e(0xb9)]===_0x3d2e2e(0xed))_0x878fe1=Reflect[_0x3d2e2e(0xb9)](_0x384dc4,_0x12c4c2,_0x46678a,_0x17d3bb);else{for(var _0x51e6c7=_0x384dc4[_0x3d2e2e(0xcb)]-0x1;_0x51e6c7>=0x0;_0x51e6c7--)if(_0x94a9ca=_0x384dc4[_0x51e6c7])_0x878fe1=(_0x487642<0x3?_0x94a9ca(_0x878fe1):_0x487642>0x3?_0x94a9ca(_0x12c4c2,_0x46678a,_0x878fe1):_0x94a9ca(_0x12c4c2,_0x46678a))||_0x878fe1;}return _0x487642>0x3&&_0x878fe1&&Object[_0x3d2e2e(0xd0)](_0x12c4c2,_0x46678a,_0x878fe1),_0x878fe1;},__metadata=this&&this['__metadata']||function(_0x420ffa,_0x23b04f){const _0x4f8b54=a12_0x34c514;if(typeof Reflect==='object'&&typeof Reflect[_0x4f8b54(0xd6)]===_0x4f8b54(0xed))return Reflect['metadata'](_0x420ffa,_0x23b04f);};Object[a12_0x34c514(0xd0)](exports,a12_0x34c514(0xcc),{'value':!![]}),exports[a12_0x34c514(0xc3)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x34c514(0xd4)),koasend=require(a12_0x34c514(0xe5)),core_1=require(a12_0x34c514(0xf2));let ExcelService=class ExcelService{async['parse'](_0x238e51,_0x5daf9e,_0x1f1c81=[0x0]){const _0x13d1af=a12_0x34c514;var _0x352230,_0x294fde;const _0x165748=new exceljs[(_0x13d1af(0xdd))](),_0x587c75=[];let _0x45b169=_0x238e51[_0x13d1af(0xbc)](/(\\|\/)/g,'/')[_0x13d1af(0xbc)](/\/{2,}/g,'/');!(_0x45b169===null||_0x45b169===void 0x0?void 0x0:_0x45b169[_0x13d1af(0xc7)]('/'))&&(_0x45b169=this['app'][_0x13d1af(0xf3)]()+'/'+_0x45b169);try{await _0x165748[_0x13d1af(0xb7)][_0x13d1af(0xeb)](_0x45b169);}catch(_0xd32ef3){return console[_0x13d1af(0xea)](_0x13d1af(0xc9)+_0x45b169+_0x13d1af(0xdf)),_0x587c75;}for(const _0x1f8620 of _0x1f1c81){const _0x12091b=lodash[_0x13d1af(0xe4)](_0x1f8620)?((_0x352230=_0x165748[_0x13d1af(0xc5)])===null||_0x352230===void 0x0?void 0x0:_0x352230[_0x1f8620])||undefined:_0x165748['getWorksheet'](_0x1f8620);if(_0x12091b){var _0x20de7d=0x1;const _0x1f016d=_0x12091b['getRow'](0x1),_0x23a9eb=await new Promise(_0x50205f=>{const _0x1c1806=_0x13d1af,_0x53426e={};_0x1f016d[_0x1c1806(0xcd)]((_0x12f263,_0x285137)=>{const _0x5db5c5=_0x1c1806;for(const _0x1744a4 of _0x5daf9e){if(_0x12f263[_0x5db5c5(0xe0)]==_0x1744a4['header'])_0x20de7d=0x2,_0x53426e[_0x1744a4[_0x5db5c5(0xd5)]]={'header':_0x12f263[_0x5db5c5(0xd8)],'handler':_0x1744a4[_0x5db5c5(0xe9)]};else{if(!_0x53426e[_0x1744a4[_0x5db5c5(0xd5)]])try{const _0x4c6802=_0x1f016d[_0x5db5c5(0xc4)](_0x1744a4[_0x5db5c5(0xb6)]);_0x4c6802&&(_0x53426e[_0x1744a4[_0x5db5c5(0xd5)]]={'header':_0x4c6802[_0x5db5c5(0xd8)],'handler':_0x1744a4[_0x5db5c5(0xe9)]});}catch{}}}_0x1f016d[_0x5db5c5(0xef)]==_0x285137&&_0x50205f(_0x53426e);});});for(const _0x2b82a6 of _0x12091b['findRows'](_0x20de7d,_0x12091b['rowCount'])){const _0x169f18={};for(const _0xc51b97 in _0x23a9eb){_0x23a9eb[_0xc51b97][_0x13d1af(0xb6)]&&(typeof((_0x294fde=_0x23a9eb[_0xc51b97])===null||_0x294fde===void 0x0?void 0x0:_0x294fde[_0x13d1af(0xe9)])=='function'?_0x169f18[_0xc51b97]=_0x23a9eb[_0xc51b97][_0x13d1af(0xe9)](_0x2b82a6['getCell'](lodash['trim'](''+_0x23a9eb[_0xc51b97][_0x13d1af(0xb6)],'\x20'))[_0x13d1af(0xd2)]()):_0x169f18[_0xc51b97]=_0x2b82a6[_0x13d1af(0xc4)](_0x23a9eb[_0xc51b97]['header'])[_0x13d1af(0xd2)]());}Object['keys'](_0x169f18)[_0x13d1af(0xcb)]>0x0&&_0x587c75['push'](_0x169f18);}}}return _0x587c75;}async[a12_0x34c514(0xec)](_0x19d629,_0x548fde,_0x4c204f,_0x3aef0e=a12_0x34c514(0xf4)){const _0x577562=a12_0x34c514;var _0x33f171,_0x1917a4;const _0x4c75fd=new exceljs[(_0x577562(0xdd))](),_0x33a610={},_0x3215e7=[],_0x172736=_0x4c75fd[_0x577562(0xdb)](_0x577562(0xca),{'views':[{'state':_0x577562(0xf0),'xSplit':0x1}]});for(const _0x5e9960 in _0x548fde){_0x33a610[_0x548fde[_0x5e9960][_0x577562(0xd5)]]=_0x548fde[_0x5e9960]['header'],_0x3215e7[_0x577562(0xdc)]({'header':_0x548fde[_0x5e9960][_0x577562(0xb6)],'key':(_0x33f171=_0x548fde[_0x5e9960])===null||_0x33f171===void 0x0?void 0x0:_0x33f171[_0x577562(0xd5)][_0x577562(0xbc)](/\./g,'_')});}_0x172736[_0x577562(0xbf)]=_0x3215e7;for(const _0x187f7d of _0x4c204f){const _0x40746e={};for(const _0x59d297 in _0x548fde){typeof((_0x1917a4=_0x548fde[_0x59d297])===null||_0x1917a4===void 0x0?void 0x0:_0x1917a4['handler'])=='function'?_0x40746e[_0x548fde[_0x59d297]['key']['replace'](/\./g,'_')]=await _0x548fde[_0x59d297][_0x577562(0xe9)](_0x187f7d):_0x40746e[_0x548fde[_0x59d297][_0x577562(0xd5)][_0x577562(0xbc)](/\./g,'_')]=lodash[_0x577562(0xcf)](_0x187f7d,_0x548fde[_0x59d297][_0x577562(0xd5)],'');}_0x172736[_0x577562(0xd3)](_0x40746e);}let _0x3210c1='';const _0x472513=_0x19d629+'-'+lodash[_0x577562(0xc2)](0x2710,0x1869f)+_0x577562(0xe3);if(_0x3aef0e&&_0x3aef0e['startsWith']('/'))_0x3210c1=''+_0x3aef0e;else _0x3aef0e&&!_0x3aef0e[_0x577562(0xc7)]('/')&&!_0x3aef0e[_0x577562(0xc7)]('\x5c')?_0x3210c1=this[_0x577562(0xbd)][_0x577562(0xf3)]()+'/'+_0x3aef0e:_0x3210c1=this['app'][_0x577562(0xf3)]()+'/public/xlsx';return(_0x3210c1[_0x577562(0xc6)]('/')||_0x3210c1[_0x577562(0xc6)]('\x5c'))&&(_0x3210c1=_0x3210c1['substring'](0x0,_0x3210c1[_0x577562(0xcb)]-0x1)),_0x3210c1=_0x3210c1[_0x577562(0xbc)](/(\\|\/)/g,'/')[_0x577562(0xbc)](/\/{2,}/g,'/'),!fs['existsSync'](_0x3210c1)&&fs[_0x577562(0xbb)](_0x3210c1,{'recursive':!![]}),await _0x4c75fd[_0x577562(0xb7)][_0x577562(0xba)]((_0x3210c1+'/'+_0x472513)[_0x577562(0xbc)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x472513,'filepath':(_0x3210c1['substring']((''+this[_0x577562(0xbd)][_0x577562(0xf3)]())[_0x577562(0xcb)])+'/'+_0x472513)[_0x577562(0xbc)](/(\\|\/)/g,'/')[_0x577562(0xbc)](/\/{2,}/g,'/')};}async[a12_0x34c514(0xb8)](_0x2a643f,_0x91e92f){return await koasend(_0x2a643f,''+_0x91e92f);}};function a12_0x2add(_0x2ced86,_0x2ffdd4){const _0x3df94a=a12_0x3df9();return a12_0x2add=function(_0x2addc8,_0x522d5b){_0x2addc8=_0x2addc8-0xb5;let _0xdb7074=_0x3df94a[_0x2addc8];return _0xdb7074;},a12_0x2add(_0x2ced86,_0x2ffdd4);}function a12_0x3df9(){const _0x436f59=['eachCell','183090rdPmQd','get','defineProperty','3071123NQiskT','toString','addRow','exceljs','key','metadata','Scope','col','241260UbXcbp','72LWSJuy','addWorksheet','push','Workbook','885LJtcum','\x20is\x20read\x20fail','value','object','__decorate','.xlsx','isNumber','koa-send','prototype','design:type','552LwItBw','handler','log','readFile','export','function','getOwnPropertyDescriptor','cellCount','frozen','523842UwZAyu','@midwayjs/core','getAppDir','public/xlsx','4akopcf','Singleton','header','xlsx','download','decorate','writeFile','mkdirSync','replace','app','7eJNUCF','columns','App','1061931IoIyWc','random','ExcelService','getCell','worksheets','endsWith','startsWith','512664iiQNTj','Api\x20Excel\x20Error:\x20','Sheet\x201','length','__esModule'];a12_0x3df9=function(){return _0x436f59;};return a12_0x3df9();}__decorate([(0x0,core_1[a12_0x34c514(0xc0)])(),__metadata(a12_0x34c514(0xe7),Object)],ExcelService[a12_0x34c514(0xe6)],'app',void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a12_0x34c514(0xd7)])(core_1['ScopeEnum'][a12_0x34c514(0xb5)])],ExcelService),exports[a12_0x34c514(0xc3)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a13_0x2943(){var _0x3a7dd4=['2739fjuTlU','anncic-api:action','1172098ehlLFe','AppsConfigTmp','4fZvyWN','ACTION_KEY','443680sDGrwu','anncic-api:apps:config','1890921SeWpOP','214371NyXWdQ','APPSCONFIG_KEY','3104360Xnrdly','anncic-api:action:route','76825gPoZlM','1JZpmzC','25368DnTLLx','152tWeVgT','414qTlHcN'];a13_0x2943=function(){return _0x3a7dd4;};return a13_0x2943();}var a13_0x12ce52=a13_0x17b2;(function(_0x10570e,_0xf35223){var _0x1b3ae0=a13_0x17b2,_0x2cf41f=_0x10570e();while(!![]){try{var _0x5cb056=-parseInt(_0x1b3ae0(0xd6))/0x1*(-parseInt(_0x1b3ae0(0xdc))/0x2)+-parseInt(_0x1b3ae0(0xe2))/0x3*(parseInt(_0x1b3ae0(0xde))/0x4)+-parseInt(_0x1b3ae0(0xe0))/0x5+-parseInt(_0x1b3ae0(0xd9))/0x6*(parseInt(_0x1b3ae0(0xd5))/0x7)+parseInt(_0x1b3ae0(0xd8))/0x8*(parseInt(_0x1b3ae0(0xe3))/0x9)+parseInt(_0x1b3ae0(0xd3))/0xa+parseInt(_0x1b3ae0(0xda))/0xb*(parseInt(_0x1b3ae0(0xd7))/0xc);if(_0x5cb056===_0xf35223)break;else _0x2cf41f['push'](_0x2cf41f['shift']());}catch(_0x7127e4){_0x2cf41f['push'](_0x2cf41f['shift']());}}}(a13_0x2943,0x6170a));function a13_0x17b2(_0x57bec7,_0x5bcfca){var _0x29431a=a13_0x2943();return a13_0x17b2=function(_0x17b2f7,_0x486b49){_0x17b2f7=_0x17b2f7-0xd3;var _0xa1127d=_0x29431a[_0x17b2f7];return _0xa1127d;},a13_0x17b2(_0x57bec7,_0x5bcfca);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a13_0x12ce52(0xdd)]=exports[a13_0x12ce52(0xe4)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x12ce52(0xdf)]=void 0x0,exports['ACTION_KEY']=a13_0x12ce52(0xdb),exports['ACTION_ROUTE_KEY']=a13_0x12ce52(0xd4),exports[a13_0x12ce52(0xe4)]=a13_0x12ce52(0xe1);class AppsConfigTmp{}exports[a13_0x12ce52(0xdd)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x156300=a14_0x5368;(function(_0x4c3841,_0x29fb62){var _0x546743=a14_0x5368,_0x20983e=_0x4c3841();while(!![]){try{var _0x33ee4c=-parseInt(_0x546743(0x19c))/0x1*(parseInt(_0x546743(0x17c))/0x2)+parseInt(_0x546743(0x188))/0x3+parseInt(_0x546743(0x18c))/0x4*(-parseInt(_0x546743(0x198))/0x5)+-parseInt(_0x546743(0x197))/0x6*(-parseInt(_0x546743(0x19a))/0x7)+parseInt(_0x546743(0x19b))/0x8+parseInt(_0x546743(0x187))/0x9+-parseInt(_0x546743(0x17b))/0xa;if(_0x33ee4c===_0x29fb62)break;else _0x20983e['push'](_0x20983e['shift']());}catch(_0xa3b482){_0x20983e['push'](_0x20983e['shift']());}}}(a14_0x4388,0x2845b));var __decorate=this&&this[a14_0x156300(0x191)]||function(_0x46d339,_0x5bde8e,_0x44d505,_0x115c44){var _0xc283f9=a14_0x156300,_0x58e245=arguments[_0xc283f9(0x186)],_0x421705=_0x58e245<0x3?_0x5bde8e:_0x115c44===null?_0x115c44=Object[_0xc283f9(0x199)](_0x5bde8e,_0x44d505):_0x115c44,_0x1051bf;if(typeof Reflect===_0xc283f9(0x18b)&&typeof Reflect[_0xc283f9(0x195)]===_0xc283f9(0x18a))_0x421705=Reflect[_0xc283f9(0x195)](_0x46d339,_0x5bde8e,_0x44d505,_0x115c44);else{for(var _0x5ca1e8=_0x46d339[_0xc283f9(0x186)]-0x1;_0x5ca1e8>=0x0;_0x5ca1e8--)if(_0x1051bf=_0x46d339[_0x5ca1e8])_0x421705=(_0x58e245<0x3?_0x1051bf(_0x421705):_0x58e245>0x3?_0x1051bf(_0x5bde8e,_0x44d505,_0x421705):_0x1051bf(_0x5bde8e,_0x44d505))||_0x421705;}return _0x58e245>0x3&&_0x421705&&Object[_0xc283f9(0x182)](_0x5bde8e,_0x44d505,_0x421705),_0x421705;},__metadata=this&&this[a14_0x156300(0x194)]||function(_0x779cdd,_0x43d30a){var _0x3b6b3f=a14_0x156300;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x3b6b3f(0x18a))return Reflect[_0x3b6b3f(0x18f)](_0x779cdd,_0x43d30a);};Object['defineProperty'](exports,a14_0x156300(0x185),{'value':!![]}),exports[a14_0x156300(0x17a)]=void 0x0;function a14_0x5368(_0x200a1b,_0xe81911){var _0x438843=a14_0x4388();return a14_0x5368=function(_0x5368da,_0x2d58af){_0x5368da=_0x5368da-0x179;var _0x278b82=_0x438843[_0x5368da];return _0x278b82;},a14_0x5368(_0x200a1b,_0xe81911);}const validator_1=require(a14_0x156300(0x18d));class PageDTO{}function a14_0x4388(){var _0x388f39=['__metadata','decorate','design:type','3786JPCygg','30MxdAIT','getOwnPropertyDescriptor','2765sCUmSU','1390368IUHgPo','1BytMYQ','Rule','1:是;0:否','RuleType','string','PageDTO','2522770AfOaVv','425606tZIalV','trim','_order','_isreverse','分页数量','prototype','defineProperty','integer','第一页为1,第二页为2','__esModule','length','1049085OMwkBC','885933SLpvGN','number','function','object','136588DUZeme','@anncic-api/validator','_size','metadata','是否倒序','__decorate','min','排序方式'];a14_0x4388=function(){return _0x388f39;};return a14_0x4388();}__decorate([(0x0,validator_1['Rule'])('分页',validator_1['RuleType']['number']()['integer']()['min'](0x1),a14_0x156300(0x184)),__metadata(a14_0x156300(0x196),Number)],PageDTO[a14_0x156300(0x181)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x156300(0x19d)])(a14_0x156300(0x180),validator_1[a14_0x156300(0x19f)][a14_0x156300(0x189)]()[a14_0x156300(0x183)]()[a14_0x156300(0x192)](0x1)),__metadata(a14_0x156300(0x196),Number)],PageDTO[a14_0x156300(0x181)],a14_0x156300(0x18e),void 0x0),__decorate([(0x0,validator_1[a14_0x156300(0x19d)])(a14_0x156300(0x193),validator_1[a14_0x156300(0x19f)][a14_0x156300(0x179)]()[a14_0x156300(0x17d)]()),__metadata(a14_0x156300(0x196),String)],PageDTO[a14_0x156300(0x181)],a14_0x156300(0x17e),void 0x0),__decorate([(0x0,validator_1[a14_0x156300(0x19d)])(a14_0x156300(0x190),validator_1[a14_0x156300(0x19f)]['number']()['integer']()['valid'](0x0,0x1),a14_0x156300(0x19e)),__metadata(a14_0x156300(0x196),Number)],PageDTO['prototype'],a14_0x156300(0x17f),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.2.
|
|
21
|
-
"@anncic-api/core": "^1.2.
|
|
22
|
-
"@anncic-api/event": "^1.2.
|
|
23
|
-
"@anncic-api/typeorm": "^1.2.
|
|
24
|
-
"@anncic-api/validator": "^1.2.
|
|
20
|
+
"@anncic-api/cache": "^1.2.3",
|
|
21
|
+
"@anncic-api/core": "^1.2.3",
|
|
22
|
+
"@anncic-api/event": "^1.2.3",
|
|
23
|
+
"@anncic-api/typeorm": "^1.2.3",
|
|
24
|
+
"@anncic-api/validator": "^1.2.3",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.6.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.6.0",
|
|
27
27
|
"@midwayjs/koa": "^3.6.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.6.0",
|
|
29
29
|
"@midwayjs/upload": "^3.6.0",
|
|
30
|
-
"anncic-apihelper": "^1.2.
|
|
30
|
+
"anncic-apihelper": "^1.2.3",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1",
|
|
33
33
|
"urllib": "^3.3.0"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "2.19.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "425478059fdc37cb53af3b1c9022d4cbc116b656"
|
|
41
41
|
}
|