anncic-api 1.3.20 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a0_0x46b1ca=a0_0x34ef;(function(_0x57c1e6,_0x25fd2e){var _0x59c1ca=a0_0x34ef,_0x324023=_0x57c1e6();while(!![]){try{var _0x20f934=parseInt(_0x59c1ca(0x1a4))/0x1*(parseInt(_0x59c1ca(0x19b))/0x2)+parseInt(_0x59c1ca(0x1a0))/0x3*(-parseInt(_0x59c1ca(0x1a7))/0x4)+-parseInt(_0x59c1ca(0x1a2))/0x5*(-parseInt(_0x59c1ca(0x19d))/0x6)+parseInt(_0x59c1ca(0x1b1))/0x7+-parseInt(_0x59c1ca(0x19f))/0x8+-parseInt(_0x59c1ca(0x1a1))/0x9*(parseInt(_0x59c1ca(0x1af))/0xa)+-parseInt(_0x59c1ca(0x1a8))/0xb*(parseInt(_0x59c1ca(0x1ad))/0xc);if(_0x20f934===_0x25fd2e)break;else _0x324023['push'](_0x324023['shift']());}catch(_0x1926f){_0x324023['push'](_0x324023['shift']());}}}(a0_0x46c5,0xcabcb));function a0_0x34ef(_0x1ee64c,_0x5d6580){var _0x46c5d2=a0_0x46c5();return a0_0x34ef=function(_0x34ef7f,_0x295ccf){_0x34ef7f=_0x34ef7f-0x19b;var _0x36fd43=_0x46c5d2[_0x34ef7f];return _0x36fd43;},a0_0x34ef(_0x1ee64c,_0x5d6580);}Object[a0_0x46b1ca(0x1a3)](exports,a0_0x46b1ca(0x1a5),{'value':!![]}),exports[a0_0x46b1ca(0x19c)]=_0x4b13fa=>{var _0x330182=a0_0x46b1ca;return{'apitest':!![],'keys':_0x4b13fa['name'],'anncicapi':{'timeout':0x1388,'password':_0x330182(0x19e),'devices':{'DEFAULT':{'secret':_0x330182(0x1a6),'checkcode':_0x330182(0x1a6)}}},'bodyParser':{'enableTypes':[_0x330182(0x1ab),_0x330182(0x1b0),'text',_0x330182(0x1aa)],'formLimit':_0x330182(0x1ae),'jsonLimit':_0x330182(0x1ae),'textLimit':_0x330182(0x1ae),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x4b13fa[_0x330182(0x1a9)]+_0x330182(0x1ac),'cleanTimeout':0x5265c00}};};function a0_0x46c5(){var _0xefd9ea=['defineProperty','7379hIfoBm','__esModule','dhauo1234420123gg3234901','39924uHtJCo','143onoGUP','appDir','xml','json','/runtime/.upload','439788wAqrCo','20mb','4817660MycIMm','form','5344717tALBFf','414BQdHhn','default','102MfQmBD','zhiulanuiy7892387985hnoi','3583664JYfOFq','39kZowAP','18GmmeHx','163855aJwdzH'];a0_0x46c5=function(){return _0xefd9ea;};return a0_0x46c5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x227d3d=a1_0x3e39;function a1_0x332a(){var _0x165fb5=['48YWuvlU','2cRhkqp','1473613OuLuFK','50792NimaFn','46777068xNVqzQ','defineProperty','7178265dNsTtJ','__esModule','9019115vyCCrN','6jeFZTu','10HPuKwd','2054066GxVcFN','219CkWAAH','default','11354079mSaktI'];a1_0x332a=function(){return _0x165fb5;};return a1_0x332a();}function a1_0x3e39(_0x3690ce,_0x2373bd){var _0x332a19=a1_0x332a();return a1_0x3e39=function(_0x3e39bc,_0x36da3c){_0x3e39bc=_0x3e39bc-0x14f;var _0x3d3532=_0x332a19[_0x3e39bc];return _0x3d3532;},a1_0x3e39(_0x3690ce,_0x2373bd);}(function(_0xa63f08,_0x533b0b){var _0x1ae406=a1_0x3e39,_0x480f04=_0xa63f08();while(!![]){try{var _0x439abb=parseInt(_0x1ae406(0x159))/0x1*(parseInt(_0x1ae406(0x158))/0x2)+-parseInt(_0x1ae406(0x154))/0x3*(-parseInt(_0x1ae406(0x15a))/0x4)+parseInt(_0x1ae406(0x150))/0x5*(-parseInt(_0x1ae406(0x151))/0x6)+parseInt(_0x1ae406(0x153))/0x7*(-parseInt(_0x1ae406(0x157))/0x8)+-parseInt(_0x1ae406(0x15d))/0x9*(parseInt(_0x1ae406(0x152))/0xa)+-parseInt(_0x1ae406(0x156))/0xb+parseInt(_0x1ae406(0x15b))/0xc;if(_0x439abb===_0x533b0b)break;else _0x480f04['push'](_0x480f04['shift']());}catch(_0x5555d0){_0x480f04['push'](_0x480f04['shift']());}}}(a1_0x332a,0xdccef));Object[a1_0x227d3d(0x15c)](exports,a1_0x227d3d(0x14f),{'value':!![]}),exports[a1_0x227d3d(0x155)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x20ac80=a2_0x4c5d;(function(_0x3d01ab,_0x1348cb){const _0x56be2a=a2_0x4c5d,_0x17de75=_0x3d01ab();while(!![]){try{const _0x3a1300=-parseInt(_0x56be2a(0xe6))/0x1+-parseInt(_0x56be2a(0xe8))/0x2+-parseInt(_0x56be2a(0x12a))/0x3*(parseInt(_0x56be2a(0x110))/0x4)+-parseInt(_0x56be2a(0x140))/0x5*(-parseInt(_0x56be2a(0x119))/0x6)+-parseInt(_0x56be2a(0x10f))/0x7*(parseInt(_0x56be2a(0x124))/0x8)+-parseInt(_0x56be2a(0x101))/0x9+parseInt(_0x56be2a(0x134))/0xa*(parseInt(_0x56be2a(0xfb))/0xb);if(_0x3a1300===_0x1348cb)break;else _0x17de75['push'](_0x17de75['shift']());}catch(_0x3fc9ac){_0x17de75['push'](_0x17de75['shift']());}}}(a2_0x331f,0x4a559));var __decorate=this&&this['__decorate']||function(_0x427656,_0xa5db10,_0x395c9a,_0x8a1a86){const _0x350200=a2_0x4c5d;var _0x5bd14b=arguments[_0x350200(0xf3)],_0x399de6=_0x5bd14b<0x3?_0xa5db10:_0x8a1a86===null?_0x8a1a86=Object[_0x350200(0x115)](_0xa5db10,_0x395c9a):_0x8a1a86,_0x4e1131;if(typeof Reflect===_0x350200(0x10e)&&typeof Reflect[_0x350200(0x127)]===_0x350200(0x13b))_0x399de6=Reflect[_0x350200(0x127)](_0x427656,_0xa5db10,_0x395c9a,_0x8a1a86);else{for(var _0x388e3b=_0x427656[_0x350200(0xf3)]-0x1;_0x388e3b>=0x0;_0x388e3b--)if(_0x4e1131=_0x427656[_0x388e3b])_0x399de6=(_0x5bd14b<0x3?_0x4e1131(_0x399de6):_0x5bd14b>0x3?_0x4e1131(_0xa5db10,_0x395c9a,_0x399de6):_0x4e1131(_0xa5db10,_0x395c9a))||_0x399de6;}return _0x5bd14b>0x3&&_0x399de6&&Object['defineProperty'](_0xa5db10,_0x395c9a,_0x399de6),_0x399de6;},__metadata=this&&this[a2_0x20ac80(0xe5)]||function(_0x116a36,_0x10a48e){const _0x483386=a2_0x20ac80;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x483386(0x11b)](_0x116a36,_0x10a48e);};function a2_0x4c5d(_0x467555,_0x836032){const _0x331fa6=a2_0x331f();return a2_0x4c5d=function(_0x4c5df4,_0x3f3590){_0x4c5df4=_0x4c5df4-0xe3;let _0x5dc07d=_0x331fa6[_0x4c5df4];return _0x5dc07d;},a2_0x4c5d(_0x467555,_0x836032);}Object[a2_0x20ac80(0x109)](exports,'__esModule',{'value':!![]}),exports[a2_0x20ac80(0xf2)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x20ac80(0x12e)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x20ac80(0xf5)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x20ac80(0x12d)),crossDomain=require(a2_0x20ac80(0x112)),ConfigDefault=require(a2_0x20ac80(0xfd)),ConfigProduction=require(a2_0x20ac80(0x100)),anncic=require(a2_0x20ac80(0xf4)),anncicCache=require(a2_0x20ac80(0x11d)),anncicEvent=require(a2_0x20ac80(0x125)),anncicTypeorm=require(a2_0x20ac80(0xec)),anncicValidator=require(a2_0x20ac80(0x121)),anncicHelper=require(a2_0x20ac80(0x139));let CustomConfiguration=class CustomConfiguration{async[a2_0x20ac80(0xf6)](){const _0x3ec50c=a2_0x20ac80;await this[_0x3ec50c(0x114)](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x3ec50c(0x107)]();}async[a2_0x20ac80(0x13c)](){}async[a2_0x20ac80(0x118)](){const _0x42202e=a2_0x20ac80,_0xdee3c2=this['config'][_0x42202e(0x104)]();this['decorator'][_0x42202e(0xee)](action_1['ACTION_ROUTE_KEY'],_0x2ae8d0=>{const _0x13fdcb=_0x2ae8d0['metadata'];return{'before':async _0x52a3db=>{const _0x8c1cb4=a2_0x4c5d;var _0x429305,_0x5785c4;const _0x476810=(_0x429305=_0x52a3db===null||_0x52a3db===void 0x0?void 0x0:_0x52a3db['target'])===null||_0x429305===void 0x0?void 0x0:_0x429305[core_2[_0x8c1cb4(0x105)]];if(_0x476810&&(_0x13fdcb===null||_0x13fdcb===void 0x0?void 0x0:_0x13fdcb[_0x8c1cb4(0x130)])){if(!this[_0x8c1cb4(0x138)][_0x8c1cb4(0x126)]((_0x5785c4=_0x476810===null||_0x476810===void 0x0?void 0x0:_0x476810['request'])===null||_0x5785c4===void 0x0?void 0x0:_0x5785c4[_0x8c1cb4(0x102)]))throw new AnnError(ApiError_1[_0x8c1cb4(0x120)][_0x8c1cb4(0xf0)]);}},'around':async _0x117a7d=>{const _0xcd2d56=a2_0x4c5d;var _0x45b53b,_0x5b32fc,_0x3f92af,_0x454872,_0x4cee7a;const _0x135439=(_0x45b53b=_0x117a7d===null||_0x117a7d===void 0x0?void 0x0:_0x117a7d[_0xcd2d56(0x123)])===null||_0x45b53b===void 0x0?void 0x0:_0x45b53b[core_2[_0xcd2d56(0x105)]];if(_0x135439&&(_0x13fdcb===null||_0x13fdcb===void 0x0?void 0x0:_0x13fdcb[_0xcd2d56(0x130)])){if(((_0x5b32fc=_0x135439[_0xcd2d56(0x102)])===null||_0x5b32fc===void 0x0?void 0x0:_0x5b32fc[_0xcd2d56(0xe4)])&&((_0x4cee7a=(_0x454872=(_0x3f92af=_0xdee3c2===null||_0xdee3c2===void 0x0?void 0x0:_0xdee3c2[_0xcd2d56(0x136)])===null||_0x3f92af===void 0x0?void 0x0:_0x3f92af[_0xcd2d56(0x122)])===null||_0x454872===void 0x0?void 0x0:_0x454872[_0x135439['headers'][_0xcd2d56(0xe4)]])===null||_0x4cee7a===void 0x0?void 0x0:_0x4cee7a[_0xcd2d56(0x116)])){const _0x3c1d80=Array[_0xcd2d56(0xe7)](_0xdee3c2[_0xcd2d56(0x136)][_0xcd2d56(0x122)][_0x135439[_0xcd2d56(0x102)]['device']][_0xcd2d56(0x116)])?_0xdee3c2[_0xcd2d56(0x136)][_0xcd2d56(0x122)][_0x135439[_0xcd2d56(0x102)][_0xcd2d56(0xe4)]][_0xcd2d56(0x116)]:[_0xdee3c2[_0xcd2d56(0x136)]['devices'][_0x135439['headers']['device']][_0xcd2d56(0x116)]];for(const _0x23378f of _0x3c1d80){if(core_1[_0xcd2d56(0x113)][_0xcd2d56(0x129)](_0x23378f)||typeof _0x23378f==_0xcd2d56(0x142)){const _0x28ea36=await _0x135439[_0xcd2d56(0x13e)][_0xcd2d56(0x12b)](_0x23378f);typeof(_0x28ea36===null||_0x28ea36===void 0x0?void 0x0:_0x28ea36[_0xcd2d56(0x137)])=='function'&&await _0x28ea36['handler'](typeof(_0x135439===null||_0x135439===void 0x0?void 0x0:_0x135439['method'])==_0xcd2d56(0x142)&&(_0x135439===null||_0x135439===void 0x0?void 0x0:_0x135439[_0xcd2d56(0x131)])?_0x135439[_0xcd2d56(0x11f)][_0xcd2d56(0xe9)]()+'@'+(_0x135439===null||_0x135439===void 0x0?void 0x0:_0x135439[_0xcd2d56(0x131)]):undefined,_0x135439,_0x13fdcb);}else core_1['Types'][_0xcd2d56(0x10c)](_0x23378f)&&await _0x23378f(typeof(_0x135439===null||_0x135439===void 0x0?void 0x0:_0x135439[_0xcd2d56(0x11f)])==_0xcd2d56(0x142)&&(_0x135439===null||_0x135439===void 0x0?void 0x0:_0x135439[_0xcd2d56(0x131)])?_0x135439['method'][_0xcd2d56(0xe9)]()+'@'+(_0x135439===null||_0x135439===void 0x0?void 0x0:_0x135439[_0xcd2d56(0x131)]):undefined,_0x135439,_0x13fdcb);}}}return await _0x117a7d[_0xcd2d56(0xf8)](..._0x117a7d[_0xcd2d56(0x143)]);},'afterThrow':(_0x176559,_0x3bc35a)=>{throw _0x3bc35a;}};});}async[a2_0x20ac80(0x107)](){const _0x11dc66=a2_0x20ac80;this['application'][_0x11dc66(0xed)]([_0x11dc66(0x108)])['forEach'](_0x31495d=>{const _0x30e10d=_0x11dc66;(_0x31495d===null||_0x31495d===void 0x0?void 0x0:_0x31495d[_0x30e10d(0x11e)])&&Object[_0x30e10d(0xe3)](_0x31495d[_0x30e10d(0x11e)],{'ok':{'value':function(_0x494c7a,_0x3fb1d0,_0x2517eb=0x0){return{'code':_0x2517eb,'data':_0x494c7a,'extra':_0x3fb1d0};}},'input':{'value':function(_0x1adafd,_0x2f4321){const _0x55388a=_0x30e10d;var _0x4371ed;const _0xb69034=lodash['defaultsDeep']({},this[_0x55388a(0xff)][_0x55388a(0x11c)]||this['request'][((_0x4371ed=config===null||config===void 0x0?void 0x0:config[_0x55388a(0x13d)])===null||_0x4371ed===void 0x0?void 0x0:_0x4371ed[_0x55388a(0x10d)])||_0x55388a(0x11c)]||{},this['request']['query']||{});return _0x1adafd?lodash[_0x55388a(0xea)](_0xb69034,_0x1adafd,_0x2f4321):_0xb69034;}},'when':{'value':async function(_0xd48e68,_0xb6ce74){const _0x30318e=_0x30e10d,_0xcef317=this[_0x30318e(0x132)](_0xd48e68,null);if(!lodash[_0x30318e(0xf7)](_0xcef317))return await _0xb6ce74(_0xcef317);}},'only':{'value':function(_0x5cdea3){const _0xbd29be=_0x30e10d,_0x300679={};for(let _0x1bcd72=0x0;_0x1bcd72<_0x5cdea3[_0xbd29be(0xf3)];_0x1bcd72++){lodash[_0xbd29be(0xe7)](_0x5cdea3[_0x1bcd72])&&_0x5cdea3[_0x1bcd72]['length']>0x0&&lodash['isString'](_0x5cdea3[_0x1bcd72][0x0])&&(_0x300679[_0x5cdea3[_0x1bcd72][0x0]]=this[_0xbd29be(0x132)](_0x5cdea3[_0x1bcd72][0x0],_0x5cdea3[_0x1bcd72]['length']>0x1?_0x5cdea3[_0x1bcd72][0x1]:null));}return _0x300679;}}});});}async[a2_0x20ac80(0x114)](){const _0x9bcc83=a2_0x20ac80;var _0x23b74e,_0x135c0b,_0x55f6df,_0x5880d5,_0xc54820,_0x41eb8f;const _0x2eda3e=this['config'][_0x9bcc83(0x104)]();((_0x135c0b=(_0x23b74e=_0x2eda3e===null||_0x2eda3e===void 0x0?void 0x0:_0x2eda3e[_0x9bcc83(0x136)])===null||_0x23b74e===void 0x0?void 0x0:_0x23b74e[_0x9bcc83(0x122)])===null||_0x135c0b===void 0x0?void 0x0:_0x135c0b['DEFAULT'])&&Object[_0x9bcc83(0xfc)](_0x2eda3e['anncicapi'][_0x9bcc83(0x122)])['length']>0x1&&delete _0x2eda3e[_0x9bcc83(0x136)][_0x9bcc83(0x122)][_0x9bcc83(0x13f)];if((_0x55f6df=_0x2eda3e===null||_0x2eda3e===void 0x0?void 0x0:_0x2eda3e['staticFile'])===null||_0x55f6df===void 0x0?void 0x0:_0x55f6df['dirs'])for(const _0x415e65 in _0x2eda3e[_0x9bcc83(0xeb)][_0x9bcc83(0x117)]){((_0x5880d5=_0x2eda3e[_0x9bcc83(0xeb)][_0x9bcc83(0x117)][_0x415e65])===null||_0x5880d5===void 0x0?void 0x0:_0x5880d5[_0x9bcc83(0x106)])&&typeof((_0xc54820=_0x2eda3e[_0x9bcc83(0xeb)][_0x9bcc83(0x117)][_0x415e65])===null||_0xc54820===void 0x0?void 0x0:_0xc54820[_0x9bcc83(0x106)])==_0x9bcc83(0x142)&&!fs[_0x9bcc83(0x11a)](_0x2eda3e[_0x9bcc83(0xeb)]['dirs'][_0x415e65][_0x9bcc83(0x106)])&&(fs[_0x9bcc83(0xf1)](_0x2eda3e[_0x9bcc83(0xeb)][_0x9bcc83(0x117)][_0x415e65][_0x9bcc83(0x106)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2eda3e[_0x9bcc83(0xeb)]['dirs'][_0x415e65][_0x9bcc83(0x106)]));}((_0x41eb8f=_0x2eda3e===null||_0x2eda3e===void 0x0?void 0x0:_0x2eda3e[_0x9bcc83(0x12c)])===null||_0x41eb8f===void 0x0?void 0x0:_0x41eb8f[_0x9bcc83(0xf9)])&&!fs[_0x9bcc83(0x11a)](_0x2eda3e['upload'][_0x9bcc83(0xf9)])&&(fs[_0x9bcc83(0xf1)](_0x2eda3e[_0x9bcc83(0x12c)][_0x9bcc83(0xf9)],{'recursive':!![]}),console[_0x9bcc83(0xfa)](_0x9bcc83(0x133)+_0x2eda3e[_0x9bcc83(0x12c)][_0x9bcc83(0xf9)])),this['config'][_0x9bcc83(0xef)](_0x2eda3e);}};function a2_0x331f(){const _0x4307d4=['defineProperty','MidwayEnvironmentService','MidwayDecoratorService','isFunction','key','object','7BYMQSo','913372nehbAu','Configuration','@midwayjs/cross-domain','Types','filterConfig','getOwnPropertyDescriptor','intercept','dirs','handlerActionRoute','3144090vlxYzh','existsSync','metadata','body','@anncic-api/cache','context','method','ApiError','@anncic-api/validator','devices','target','3988408BejSfq','@anncic-api/event','checksign','decorate','prototype','isClass','3fufpGV','getAsync','upload','@midwayjs/static-file','./types/action','MidwayApplicationManager','apimit','_matchedRoute','input','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','50EnqJnG','environment','anncicapi','handler','ApiService','anncic-apihelper','design:type','function','checkConfigKeys','bodyXml','requestContext','DEFAULT','5GZGGgT','anncic-api','string','args','defineProperties','device','__metadata','575865xkGIVr','isArray','363606WivSBL','toLowerCase','get','staticFile','@anncic-api/typeorm','getApplications','registerMethodHandler','addObject','HEADERS_SIGNATURE','mkdirSync','CustomConfiguration','length','@anncic-api/core','@midwayjs/i18n','onReady','isNull','proceed','tmpdir','log','2933073ydZXZV','keys','./config/config.default','Inject','request','./config/config.production','613755bkLlyI','headers','application','getConfiguration','REQUEST_OBJ_CTX_KEY','dir','hanlderApplications','koa'];a2_0x331f=function(){return _0x4307d4;};return a2_0x331f();}__decorate([(0x0,core_1[a2_0x20ac80(0xfe)])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0x20ac80(0xfe)])(),__metadata(a2_0x20ac80(0x13a),core_2[a2_0x20ac80(0x10b)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x20ac80(0x13a),core_2[a2_0x20ac80(0x12f)])],CustomConfiguration['prototype'],a2_0x20ac80(0x103),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x20ac80(0x13a),core_2[a2_0x20ac80(0x10a)])],CustomConfiguration[a2_0x20ac80(0x128)],a2_0x20ac80(0x135),void 0x0),__decorate([(0x0,core_1[a2_0x20ac80(0xfe)])(),__metadata(a2_0x20ac80(0x13a),ApiService_1[a2_0x20ac80(0x138)])],CustomConfiguration[a2_0x20ac80(0x128)],a2_0x20ac80(0x138),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x20ac80(0x111)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x20ac80(0x141),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x20ac80(0xf2)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x4be0f3=a2_0x55cd;(function(_0x2643b8,_0x561875){const _0x76ebad=a2_0x55cd,_0x1fef73=_0x2643b8();while(!![]){try{const _0x11a0df=-parseInt(_0x76ebad(0x18e))/0x1+parseInt(_0x76ebad(0x156))/0x2*(parseInt(_0x76ebad(0x135))/0x3)+-parseInt(_0x76ebad(0x144))/0x4+-parseInt(_0x76ebad(0x13d))/0x5*(parseInt(_0x76ebad(0x132))/0x6)+parseInt(_0x76ebad(0x18d))/0x7+-parseInt(_0x76ebad(0x14d))/0x8*(parseInt(_0x76ebad(0x143))/0x9)+-parseInt(_0x76ebad(0x137))/0xa*(-parseInt(_0x76ebad(0x16f))/0xb);if(_0x11a0df===_0x561875)break;else _0x1fef73['push'](_0x1fef73['shift']());}catch(_0x50663a){_0x1fef73['push'](_0x1fef73['shift']());}}}(a2_0x45cd,0x237b3));function a2_0x55cd(_0x59096e,_0x430fc2){const _0x45cdc8=a2_0x45cd();return a2_0x55cd=function(_0x55cd3a,_0x5a0c80){_0x55cd3a=_0x55cd3a-0x12d;let _0x17a4a6=_0x45cdc8[_0x55cd3a];return _0x17a4a6;},a2_0x55cd(_0x59096e,_0x430fc2);}var __decorate=this&&this[a2_0x4be0f3(0x13b)]||function(_0x511684,_0x2e8c49,_0x46b87f,_0x29bd5a){const _0x23bea4=a2_0x4be0f3;var _0x5c085e=arguments[_0x23bea4(0x133)],_0x5ac813=_0x5c085e<0x3?_0x2e8c49:_0x29bd5a===null?_0x29bd5a=Object['getOwnPropertyDescriptor'](_0x2e8c49,_0x46b87f):_0x29bd5a,_0x3ad5a2;if(typeof Reflect===_0x23bea4(0x155)&&typeof Reflect[_0x23bea4(0x149)]===_0x23bea4(0x140))_0x5ac813=Reflect[_0x23bea4(0x149)](_0x511684,_0x2e8c49,_0x46b87f,_0x29bd5a);else{for(var _0xf5c9af=_0x511684[_0x23bea4(0x133)]-0x1;_0xf5c9af>=0x0;_0xf5c9af--)if(_0x3ad5a2=_0x511684[_0xf5c9af])_0x5ac813=(_0x5c085e<0x3?_0x3ad5a2(_0x5ac813):_0x5c085e>0x3?_0x3ad5a2(_0x2e8c49,_0x46b87f,_0x5ac813):_0x3ad5a2(_0x2e8c49,_0x46b87f))||_0x5ac813;}return _0x5c085e>0x3&&_0x5ac813&&Object[_0x23bea4(0x190)](_0x2e8c49,_0x46b87f,_0x5ac813),_0x5ac813;},__metadata=this&&this[a2_0x4be0f3(0x18c)]||function(_0xd58b68,_0x3c3f0c){const _0x47746a=a2_0x4be0f3;if(typeof Reflect===_0x47746a(0x155)&&typeof Reflect['metadata']===_0x47746a(0x140))return Reflect['metadata'](_0xd58b68,_0x3c3f0c);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4be0f3(0x131)]=void 0x0;const core_1=require(a2_0x4be0f3(0x189)),core_2=require(a2_0x4be0f3(0x189)),ApiError_1=require(a2_0x4be0f3(0x145)),ApiService_1=require(a2_0x4be0f3(0x15f)),action_1=require(a2_0x4be0f3(0x14a)),fs=require('fs'),koa=require(a2_0x4be0f3(0x136)),i18n=require(a2_0x4be0f3(0x179)),upload=require(a2_0x4be0f3(0x16b)),staticFile=require(a2_0x4be0f3(0x13e)),crossDomain=require(a2_0x4be0f3(0x172)),ConfigDefault=require(a2_0x4be0f3(0x182)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x4be0f3(0x12e)),anncicTypeorm=require(a2_0x4be0f3(0x176)),anncicValidator=require(a2_0x4be0f3(0x152)),anncicHelper=require(a2_0x4be0f3(0x183));let CustomConfiguration=class CustomConfiguration{async[a2_0x4be0f3(0x18a)](){const _0x1db563=a2_0x4be0f3;await this[_0x1db563(0x164)](),await this[_0x1db563(0x142)](),await this[_0x1db563(0x13a)](),await this[_0x1db563(0x178)]();}async['checkConfigKeys'](){}async[a2_0x4be0f3(0x13a)](){const _0x492f3c=a2_0x4be0f3,_0xbface6=this[_0x492f3c(0x138)][_0x492f3c(0x17f)]();this[_0x492f3c(0x16d)][_0x492f3c(0x188)](action_1['ACTION_ROUTE_KEY'],_0x5e6833=>{const _0x4d4560=_0x492f3c,_0x326a75=_0x5e6833[_0x4d4560(0x15e)];return{'before':async _0x416076=>{const _0x1c8d84=_0x4d4560;var _0x26c992,_0x30dbb6;const _0x2c3bcd=(_0x26c992=_0x416076===null||_0x416076===void 0x0?void 0x0:_0x416076[_0x1c8d84(0x180)])===null||_0x26c992===void 0x0?void 0x0:_0x26c992[core_2[_0x1c8d84(0x158)]];if(_0x2c3bcd&&(_0x326a75===null||_0x326a75===void 0x0?void 0x0:_0x326a75[_0x1c8d84(0x151)])){if(!this[_0x1c8d84(0x173)][_0x1c8d84(0x17d)]((_0x30dbb6=_0x2c3bcd===null||_0x2c3bcd===void 0x0?void 0x0:_0x2c3bcd[_0x1c8d84(0x166)])===null||_0x30dbb6===void 0x0?void 0x0:_0x30dbb6[_0x1c8d84(0x16a)]))throw new AnnError(ApiError_1[_0x1c8d84(0x13f)][_0x1c8d84(0x153)]);}},'around':async _0x4ebf00=>{const _0x10ca25=_0x4d4560;var _0x563d34,_0x14de52,_0x1fcb9b,_0x4061fe,_0x533010;const _0x58a0c9=(_0x563d34=_0x4ebf00===null||_0x4ebf00===void 0x0?void 0x0:_0x4ebf00[_0x10ca25(0x180)])===null||_0x563d34===void 0x0?void 0x0:_0x563d34[core_2[_0x10ca25(0x158)]];if(_0x58a0c9&&(_0x326a75===null||_0x326a75===void 0x0?void 0x0:_0x326a75[_0x10ca25(0x151)])){if(((_0x14de52=_0x58a0c9['headers'])===null||_0x14de52===void 0x0?void 0x0:_0x14de52['device'])&&((_0x533010=(_0x4061fe=(_0x1fcb9b=_0xbface6===null||_0xbface6===void 0x0?void 0x0:_0xbface6['anncicapi'])===null||_0x1fcb9b===void 0x0?void 0x0:_0x1fcb9b[_0x10ca25(0x161)])===null||_0x4061fe===void 0x0?void 0x0:_0x4061fe[_0x58a0c9[_0x10ca25(0x16a)][_0x10ca25(0x15b)]])===null||_0x533010===void 0x0?void 0x0:_0x533010[_0x10ca25(0x162)])){const _0x4cd28a=Array['isArray'](_0xbface6[_0x10ca25(0x14c)]['devices'][_0x58a0c9[_0x10ca25(0x16a)][_0x10ca25(0x15b)]][_0x10ca25(0x162)])?_0xbface6[_0x10ca25(0x14c)]['devices'][_0x58a0c9[_0x10ca25(0x16a)][_0x10ca25(0x15b)]][_0x10ca25(0x162)]:[_0xbface6['anncicapi']['devices'][_0x58a0c9[_0x10ca25(0x16a)]['device']]['intercept']];for(const _0x47a7b7 of _0x4cd28a){if(core_1[_0x10ca25(0x14b)][_0x10ca25(0x141)](_0x47a7b7)||typeof _0x47a7b7=='string'){const _0x3e91dd=await _0x58a0c9['requestContext'][_0x10ca25(0x185)](_0x47a7b7);typeof(_0x3e91dd===null||_0x3e91dd===void 0x0?void 0x0:_0x3e91dd[_0x10ca25(0x163)])=='function'&&await _0x3e91dd[_0x10ca25(0x163)](typeof(_0x58a0c9===null||_0x58a0c9===void 0x0?void 0x0:_0x58a0c9['method'])==_0x10ca25(0x17e)&&(_0x58a0c9===null||_0x58a0c9===void 0x0?void 0x0:_0x58a0c9['_matchedRoute'])?_0x58a0c9[_0x10ca25(0x160)][_0x10ca25(0x146)]()+'@'+(_0x58a0c9===null||_0x58a0c9===void 0x0?void 0x0:_0x58a0c9[_0x10ca25(0x157)]):undefined,_0x58a0c9,_0x326a75);}else core_1[_0x10ca25(0x14b)][_0x10ca25(0x192)](_0x47a7b7)&&await _0x47a7b7(typeof(_0x58a0c9===null||_0x58a0c9===void 0x0?void 0x0:_0x58a0c9['method'])==_0x10ca25(0x17e)&&(_0x58a0c9===null||_0x58a0c9===void 0x0?void 0x0:_0x58a0c9['_matchedRoute'])?_0x58a0c9[_0x10ca25(0x160)][_0x10ca25(0x146)]()+'@'+(_0x58a0c9===null||_0x58a0c9===void 0x0?void 0x0:_0x58a0c9['_matchedRoute']):undefined,_0x58a0c9,_0x326a75);}}}return await _0x4ebf00['proceed'](..._0x4ebf00['args']);},'afterThrow':(_0x1b8fdb,_0x4f75aa)=>{throw _0x4f75aa;}};});}async[a2_0x4be0f3(0x178)](){const _0x4d8a09=a2_0x4be0f3;this['application'][_0x4d8a09(0x12d)]([_0x4d8a09(0x18b)])[_0x4d8a09(0x130)](_0x1883ca=>{const _0x3f94e6=_0x4d8a09;(_0x1883ca===null||_0x1883ca===void 0x0?void 0x0:_0x1883ca[_0x3f94e6(0x167)])&&Object[_0x3f94e6(0x15a)](_0x1883ca['context'],{'ok':{'value':function(_0x406c18,_0x3a088e,_0x3fd0a3=0x0){return{'code':_0x3fd0a3,'data':_0x406c18,'extra':_0x3a088e};}},'input':{'value':function(_0x4207f2,_0x321fed){const _0x4f1c99=_0x3f94e6;var _0x45643e;const _0x1483da=lodash[_0x4f1c99(0x139)]({},this[_0x4f1c99(0x166)][_0x4f1c99(0x17b)]||this[_0x4f1c99(0x166)][((_0x45643e=config===null||config===void 0x0?void 0x0:config[_0x4f1c99(0x175)])===null||_0x45643e===void 0x0?void 0x0:_0x45643e[_0x4f1c99(0x191)])||_0x4f1c99(0x17b)]||{},this[_0x4f1c99(0x166)][_0x4f1c99(0x170)]||{});return _0x4207f2?lodash[_0x4f1c99(0x15d)](_0x1483da,_0x4207f2,_0x321fed):_0x1483da;}},'when':{'value':async function(_0x59e15b,_0x3edf4e){const _0x2b1b81=_0x3f94e6,_0x76030f=this[_0x2b1b81(0x159)](_0x59e15b,null);if(!lodash[_0x2b1b81(0x169)](_0x76030f))return await _0x3edf4e(_0x76030f);}},'only':{'value':function(_0x57d088){const _0x348f1c=_0x3f94e6,_0x454d36={};for(let _0x2ea9ee=0x0;_0x2ea9ee<_0x57d088[_0x348f1c(0x133)];_0x2ea9ee++){lodash[_0x348f1c(0x154)](_0x57d088[_0x2ea9ee])&&_0x57d088[_0x2ea9ee][_0x348f1c(0x133)]>0x0&&lodash[_0x348f1c(0x14e)](_0x57d088[_0x2ea9ee][0x0])&&(_0x454d36[_0x57d088[_0x2ea9ee][0x0]]=this['input'](_0x57d088[_0x2ea9ee][0x0],_0x57d088[_0x2ea9ee][_0x348f1c(0x133)]>0x1?_0x57d088[_0x2ea9ee][0x1]:null));}return _0x454d36;}}});});}async[a2_0x4be0f3(0x164)](){const _0x1ddef4=a2_0x4be0f3;var _0x542f3c,_0x1b8768,_0x57ac97,_0x2536a6,_0xb9e41a,_0x542c1e;const _0x397ec8=this[_0x1ddef4(0x138)][_0x1ddef4(0x17f)]();((_0x1b8768=(_0x542f3c=_0x397ec8===null||_0x397ec8===void 0x0?void 0x0:_0x397ec8['anncicapi'])===null||_0x542f3c===void 0x0?void 0x0:_0x542f3c[_0x1ddef4(0x161)])===null||_0x1b8768===void 0x0?void 0x0:_0x1b8768[_0x1ddef4(0x187)])&&Object[_0x1ddef4(0x181)](_0x397ec8['anncicapi'][_0x1ddef4(0x161)])['length']>0x1&&delete _0x397ec8['anncicapi'][_0x1ddef4(0x161)]['DEFAULT'];if((_0x57ac97=_0x397ec8===null||_0x397ec8===void 0x0?void 0x0:_0x397ec8['staticFile'])===null||_0x57ac97===void 0x0?void 0x0:_0x57ac97[_0x1ddef4(0x184)])for(const _0x316541 in _0x397ec8[_0x1ddef4(0x147)][_0x1ddef4(0x184)]){((_0x2536a6=_0x397ec8[_0x1ddef4(0x147)][_0x1ddef4(0x184)][_0x316541])===null||_0x2536a6===void 0x0?void 0x0:_0x2536a6[_0x1ddef4(0x16e)])&&typeof((_0xb9e41a=_0x397ec8[_0x1ddef4(0x147)]['dirs'][_0x316541])===null||_0xb9e41a===void 0x0?void 0x0:_0xb9e41a[_0x1ddef4(0x16e)])==_0x1ddef4(0x17e)&&!fs[_0x1ddef4(0x171)](_0x397ec8[_0x1ddef4(0x147)][_0x1ddef4(0x184)][_0x316541][_0x1ddef4(0x16e)])&&(fs['mkdirSync'](_0x397ec8[_0x1ddef4(0x147)][_0x1ddef4(0x184)][_0x316541]['dir'],{'recursive':!![]}),console[_0x1ddef4(0x186)](_0x1ddef4(0x16c)+_0x397ec8[_0x1ddef4(0x147)][_0x1ddef4(0x184)][_0x316541]['dir']));}((_0x542c1e=_0x397ec8===null||_0x397ec8===void 0x0?void 0x0:_0x397ec8[_0x1ddef4(0x174)])===null||_0x542c1e===void 0x0?void 0x0:_0x542c1e[_0x1ddef4(0x18f)])&&!fs['existsSync'](_0x397ec8['upload'][_0x1ddef4(0x18f)])&&(fs['mkdirSync'](_0x397ec8[_0x1ddef4(0x174)]['tmpdir'],{'recursive':!![]}),console['log'](_0x1ddef4(0x15c)+_0x397ec8[_0x1ddef4(0x174)]['tmpdir'])),this['config'][_0x1ddef4(0x17c)](_0x397ec8);}};__decorate([(0x0,core_1[a2_0x4be0f3(0x17a)])(),__metadata(a2_0x4be0f3(0x134),core_2[a2_0x4be0f3(0x168)])],CustomConfiguration['prototype'],a2_0x4be0f3(0x138),void 0x0),__decorate([(0x0,core_1[a2_0x4be0f3(0x17a)])(),__metadata(a2_0x4be0f3(0x134),core_2[a2_0x4be0f3(0x148)])],CustomConfiguration[a2_0x4be0f3(0x177)],a2_0x4be0f3(0x16d),void 0x0),__decorate([(0x0,core_1[a2_0x4be0f3(0x17a)])(),__metadata(a2_0x4be0f3(0x134),core_2[a2_0x4be0f3(0x13c)])],CustomConfiguration[a2_0x4be0f3(0x177)],a2_0x4be0f3(0x14f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4be0f3(0x134),core_2[a2_0x4be0f3(0x12f)])],CustomConfiguration[a2_0x4be0f3(0x177)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x4be0f3(0x17a)])(),__metadata(a2_0x4be0f3(0x134),ApiService_1[a2_0x4be0f3(0x173)])],CustomConfiguration['prototype'],a2_0x4be0f3(0x173),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4be0f3(0x150)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4be0f3(0x165),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4be0f3(0x131)]=CustomConfiguration;function a2_0x45cd(){const _0x5da34d=['isString','application','Configuration','apimit','@anncic-api/validator','HEADERS_SIGNATURE','isArray','object','29004NivnSy','_matchedRoute','REQUEST_OBJ_CTX_KEY','input','defineProperties','device','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','get','metadata','./service/ApiService','method','devices','intercept','handler','filterConfig','anncic-api','request','context','MidwayConfigService','isNull','headers','@midwayjs/upload','Anncic-api\x20static-file\x20:\x20mkdir\x20','decorator','dir','187neMRqJ','query','existsSync','@midwayjs/cross-domain','ApiService','upload','bodyXml','@anncic-api/typeorm','prototype','hanlderApplications','@midwayjs/i18n','Inject','body','addObject','checksign','string','getConfiguration','target','keys','./config/config.default','anncic-apihelper','dirs','getAsync','log','DEFAULT','registerMethodHandler','@midwayjs/core','onReady','koa','__metadata','818601txDHAY','229411FGUHud','tmpdir','defineProperty','key','isFunction','getApplications','@anncic-api/event','MidwayEnvironmentService','forEach','CustomConfiguration','5598JGlUFm','length','design:type','42iLUbZk','@midwayjs/koa','246340OruYvg','config','defaultsDeep','handlerActionRoute','__decorate','MidwayApplicationManager','1015vziUnU','@midwayjs/static-file','ApiError','function','isClass','checkConfigKeys','36BrBApP','360144WtLbmD','./exception/ApiError','toLowerCase','staticFile','MidwayDecoratorService','decorate','./types/action','Types','anncicapi','169144prFmSn'];a2_0x45cd=function(){return _0x5da34d;};return a2_0x45cd();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x2e3166=a3_0x4bdb;(function(_0x138160,_0x398b8c){const _0x2cf0d8=a3_0x4bdb,_0x607c0d=_0x138160();while(!![]){try{const _0x1e7e18=parseInt(_0x2cf0d8(0xaf))/0x1*(-parseInt(_0x2cf0d8(0x9d))/0x2)+parseInt(_0x2cf0d8(0xaa))/0x3+-parseInt(_0x2cf0d8(0xac))/0x4+parseInt(_0x2cf0d8(0xc8))/0x5*(-parseInt(_0x2cf0d8(0xa9))/0x6)+parseInt(_0x2cf0d8(0xb2))/0x7+parseInt(_0x2cf0d8(0x9e))/0x8*(parseInt(_0x2cf0d8(0xab))/0x9)+parseInt(_0x2cf0d8(0xc0))/0xa;if(_0x1e7e18===_0x398b8c)break;else _0x607c0d['push'](_0x607c0d['shift']());}catch(_0x3f5062){_0x607c0d['push'](_0x607c0d['shift']());}}}(a3_0x380d,0xa9000));Object[a3_0x2e3166(0xa1)](exports,a3_0x2e3166(0x9c),{'value':!![]}),exports['parseRoute']=exports[a3_0x2e3166(0xb4)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x2e3166(0xcc)),action_1=require(a3_0x2e3166(0xbd));function Action(_0x1d7090,_0x23f8f8,_0x3e44bb={'middleware':[],'sensitive':!![]}){return _0x52e32a=>{const _0x4112ad=a3_0x4bdb;_0x3e44bb[_0x4112ad(0x98)]=_0x23f8f8;const _0x2308d1=parseRoute(_0x1d7090);if(_0x2308d1[_0x4112ad(0xa6)]){_0x3e44bb['prefix']=_0x3e44bb[_0x4112ad(0xb7)]?'/'+_0x2308d1[_0x4112ad(0xa6)]+'/'+_0x3e44bb[_0x4112ad(0xb7)]:'/'+_0x2308d1[_0x4112ad(0xa3)];_0x2308d1[_0x4112ad(0xb7)]&&(_0x3e44bb['prefix']='/'+_0x2308d1[_0x4112ad(0xb7)]+'/'+_0x3e44bb[_0x4112ad(0xb7)]);if(fs[_0x4112ad(0xbc)](_0x2308d1[_0x4112ad(0xa2)]+_0x4112ad(0x99)+_0x2308d1[_0x4112ad(0xa6)]+'/config.'+(lodash[_0x4112ad(0x9f)](_0x2308d1[_0x4112ad(0xad)],'ts')?'ts':'js'))){const _0x2b3295=include(_0x2308d1[_0x4112ad(0xa2)]+_0x4112ad(0x99)+_0x2308d1[_0x4112ad(0xa6)]+_0x4112ad(0xc3)+(lodash[_0x4112ad(0x9f)](_0x2308d1[_0x4112ad(0xad)],'ts')?'ts':'js'));if(_0x2b3295[_0x4112ad(0x9a)]&&lodash[_0x4112ad(0xb6)](_0x2b3295[_0x4112ad(0x9a)])&&_0x2b3295['middleware'][_0x4112ad(0xbf)]>0x0)for(let _0x456c80 in _0x2b3295[_0x4112ad(0x9a)]){_0x2b3295[_0x4112ad(0xc7)][_0x4112ad(0xa7)](_0x2b3295[_0x4112ad(0x9a)][_0x456c80])==-0x1&&_0x3e44bb[_0x4112ad(0x9a)][_0x4112ad(0xc5)](_0x2b3295[_0x4112ad(0x9a)][_0x456c80]);}const _0x4320d5=(0x0,core_1['getClassMetadata'])(action_1[_0x4112ad(0xa4)],action_1[_0x4112ad(0xbe)])||{};_0x4320d5[''+_0x2308d1[_0x4112ad(0xa6)]]=_0x2b3295,(0x0,core_1[_0x4112ad(0xc4)])(action_1[_0x4112ad(0xa4)],_0x4320d5,action_1[_0x4112ad(0xbe)]);}_0x3e44bb[_0x4112ad(0xb7)]=_0x3e44bb[_0x4112ad(0xb7)][_0x4112ad(0xb8)]()[_0x4112ad(0xa8)](/\/{2,}/g,'/'),(0x0,core_1[_0x4112ad(0xa0)])(action_1['ACTION_KEY'],_0x52e32a),(0x0,core_1[_0x4112ad(0xb9)])(_0x3e44bb[_0x4112ad(0xb7)],_0x3e44bb)(_0x52e32a),(0x0,core_1[_0x4112ad(0xc4)])(action_1[_0x4112ad(0xc9)],{'prefix':_0x3e44bb[_0x4112ad(0xb7)],'pprefix':_0x2308d1[_0x4112ad(0xb7)],'module':_0x2308d1[_0x4112ad(0xa6)],'filepath':_0x2308d1[_0x4112ad(0xad)],'routerOptions':_0x3e44bb},_0x52e32a);}else _0x3e44bb[_0x4112ad(0xb7)]=_0x3e44bb[_0x4112ad(0xb7)]?'/'+_0x3e44bb[_0x4112ad(0xb7)]:'/'+_0x2308d1[_0x4112ad(0xa3)],_0x2308d1[_0x4112ad(0xb7)]&&(_0x3e44bb[_0x4112ad(0xb7)]='/'+_0x2308d1[_0x4112ad(0xb7)]+'/'+_0x3e44bb[_0x4112ad(0xb7)]),_0x3e44bb[_0x4112ad(0xb7)]=_0x3e44bb['prefix'][_0x4112ad(0xb8)]()[_0x4112ad(0xa8)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x4112ad(0xc9)],_0x52e32a),(0x0,core_1[_0x4112ad(0xb9)])(_0x3e44bb['prefix'],_0x3e44bb)(_0x52e32a),(0x0,core_1[_0x4112ad(0xc4)])(action_1[_0x4112ad(0xc9)],{'prefix':_0x3e44bb['prefix'],'module':_0x2308d1[_0x4112ad(0xa6)],'pprefix':_0x2308d1['prefix'],'filepath':_0x2308d1[_0x4112ad(0xad)],'routerOptions':_0x3e44bb},_0x52e32a);};}exports[a3_0x2e3166(0xb4)]=Action;function a3_0x380d(){const _0x39bc3c=['saveModule','defineProperty','rootpath','route','APPSCONFIG_KEY','-controller','module','indexOf','replace','600HvENIo','2870523KPlxzm','45rMKzHF','2537944ItDrFl','filepath','-action','40308gslXAP','splice','split','5607112ZeAItK','substring','Action','filter','isArray','prefix','toLowerCase','Controller','apps/','join','existsSync','../types/action','AppsConfigTmp','length','2117690RVxbxN','trim','match','/config.','saveClassMetadata','push','/controller/','middlewareIgnore','17730synqNT','ACTION_KEY','\x20文件请放在apps/','app/controller/','@midwayjs/core','parseRoute','tagName','/apps/','middleware','startsWith','__esModule','64JamdPP','1602464IftONI','endsWith'];a3_0x380d=function(){return _0x39bc3c;};return a3_0x380d();}function parseRoute(_0x2458af){const _0x5b655f=a3_0x2e3166;_0x2458af=_0x2458af[_0x5b655f(0xa8)](/(\\|\/)/g,'/');const _0x27c5ac=process['cwd']()[_0x5b655f(0xa8)](/(\\|\/)/g,'/'),_0x3fe0e1=_0x2458af[_0x5b655f(0xb3)](0x0,_0x27c5ac[_0x5b655f(0xbf)]+_0x2458af[_0x5b655f(0xb3)](_0x27c5ac[_0x5b655f(0xbf)]+0x1)['indexOf']('/')+0x1),_0x234f4b=_0x2458af[_0x5b655f(0xb3)](_0x3fe0e1['length']+0x1)[_0x5b655f(0xa8)](/(\\|\/)/g,'/'),_0x17f412={'route':'','prefix':![],'module':![],'rootpath':_0x3fe0e1,'filepath':_0x234f4b};if(_0x234f4b[_0x5b655f(0x9b)](_0x5b655f(0xcb))){const _0x336bb8=_0x234f4b[_0x5b655f(0xb3)](_0x5b655f(0xcb)[_0x5b655f(0xbf)])[_0x5b655f(0xb1)]('/')[_0x5b655f(0xb5)](_0x3c1f3e=>_0x3c1f3e&&_0x3c1f3e[_0x5b655f(0xc1)]());return _0x336bb8[_0x5b655f(0xbf)]>0x1&&(_0x17f412[_0x5b655f(0xb7)]=_0x336bb8[0x0][_0x5b655f(0xb8)](),_0x336bb8[_0x5b655f(0xb0)](0x0,0x1)),_0x17f412[_0x5b655f(0xa3)]=('/'+_0x336bb8[_0x5b655f(0xbb)]('/'))[_0x5b655f(0xa8)](/(\.ts|\.js)$/,'')[_0x5b655f(0xa8)](/\/{2,}/g,'/')[_0x5b655f(0xc2)](/[\/|A-Z]*[^A-Z]+/g)[_0x5b655f(0xbb)]('-')[_0x5b655f(0xb8)]()[_0x5b655f(0xa8)](/\/\-/g,'/'),_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0x9f)](_0x5b655f(0xae))&&(_0x17f412['route']=_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0xb3)](0x0,_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0xbf)]-0x7)),_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0x9f)]('-controller')&&(_0x17f412[_0x5b655f(0xa3)]=_0x17f412['route'][_0x5b655f(0xb3)](0x0,_0x17f412['route'][_0x5b655f(0xbf)]-0xb)),_0x17f412;}else{if(_0x234f4b[_0x5b655f(0x9b)](_0x5b655f(0xba))){const _0x142533=_0x234f4b['substring'](0x0,_0x234f4b[_0x5b655f(0xa7)]('/apps/')+0x5),_0x5e0bd8=_0x234f4b[_0x5b655f(0xb3)](_0x142533[_0x5b655f(0xbf)]+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x234f4b[_0x5b655f(0x9b)](_0x5b655f(0xba)+_0x5e0bd8+_0x5b655f(0xc6))){const _0x2fad2b=_0x234f4b['substring']((_0x142533+'/'+_0x5e0bd8+_0x5b655f(0xc6))[_0x5b655f(0xbf)])[_0x5b655f(0xb1)]('/')[_0x5b655f(0xb5)](_0x2699e5=>_0x2699e5&&_0x2699e5['trim']());return _0x2fad2b[_0x5b655f(0xbf)]>0x1&&(_0x17f412[_0x5b655f(0xb7)]=_0x2fad2b[0x0][_0x5b655f(0xb8)](),_0x2fad2b[_0x5b655f(0xb0)](0x0,0x1)),_0x17f412[_0x5b655f(0xa6)]=_0x5e0bd8,_0x17f412[_0x5b655f(0xa3)]=('/'+_0x5e0bd8+'/'+_0x2fad2b[_0x5b655f(0xbb)]('/'))[_0x5b655f(0xa8)](/(\.ts|\.js)$/,'')[_0x5b655f(0xa8)](/\/{2,}/,'/')[_0x5b655f(0xc2)](/[\/|A-Z]*[^A-Z]+/g)[_0x5b655f(0xbb)]('-')[_0x5b655f(0xb8)]()[_0x5b655f(0xa8)](/\/\-/g,'/'),_0x17f412[_0x5b655f(0xa3)]['endsWith']('-action')&&(_0x17f412[_0x5b655f(0xa3)]=_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0xb3)](0x0,_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0xbf)]-0x7)),_0x17f412[_0x5b655f(0xa3)][_0x5b655f(0x9f)](_0x5b655f(0xa5))&&(_0x17f412[_0x5b655f(0xa3)]=_0x17f412[_0x5b655f(0xa3)]['substring'](0x0,_0x17f412[_0x5b655f(0xa3)]['length']-0xb)),_0x17f412;}throw new Error(_0x234f4b+_0x5b655f(0xca)+_0x5e0bd8+'/controller/文件下');}}throw new Error(_0x234f4b+'\x20文件请放在app/controller/文件下');}function a3_0x4bdb(_0x2b68aa,_0x53fd6d){const _0x380d2a=a3_0x380d();return a3_0x4bdb=function(_0x4bdbe2,_0x4ce12a){_0x4bdbe2=_0x4bdbe2-0x97;let _0xcd96cc=_0x380d2a[_0x4bdbe2];return _0xcd96cc;},a3_0x4bdb(_0x2b68aa,_0x53fd6d);}exports[a3_0x2e3166(0x97)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x9ead(){const _0x50f8c5=['validate','del','createCustomMethodDecorator','Api','1151304vCdaZA','733856GwKOAa','attachClassMetadata','length','24762330ZtkSmL','string','../types/action','1048671suJiKV','9910188UKdALa','middleware','@anncic-api/validator','toLowerCase','routerName','indexOf','delete','apimit','531032xBgOCs','assign','get','middlewareIgnore','77hwXHQI','defineProperty','3399975lCXxnk','description','RequestMapping','ACTION_ROUTE_KEY','6MEGPrA','filter'];a4_0x9ead=function(){return _0x50f8c5;};return a4_0x9ead();}const a4_0x47064d=a4_0x1a6a;(function(_0x1df60f,_0x7c331c){const _0x2bff1e=a4_0x1a6a,_0x500bb6=_0x1df60f();while(!![]){try{const _0x3d1ef8=-parseInt(_0x2bff1e(0xb7))/0x1+-parseInt(_0x2bff1e(0xb1))/0x2+parseInt(_0x2bff1e(0xaa))/0x3*(parseInt(_0x2bff1e(0xc0))/0x4)+-parseInt(_0x2bff1e(0xa6))/0x5+parseInt(_0x2bff1e(0xb8))/0x6+parseInt(_0x2bff1e(0xa4))/0x7*(-parseInt(_0x2bff1e(0xb0))/0x8)+parseInt(_0x2bff1e(0xb4))/0x9;if(_0x3d1ef8===_0x7c331c)break;else _0x500bb6['push'](_0x500bb6['shift']());}catch(_0x5522f4){_0x500bb6['push'](_0x500bb6['shift']());}}}(a4_0x9ead,0xf1afb));function a4_0x1a6a(_0xa7b386,_0x3c4a14){const _0x9eadd9=a4_0x9ead();return a4_0x1a6a=function(_0x1a6a61,_0x550d85){_0x1a6a61=_0x1a6a61-0xa4;let _0x4668d0=_0x9eadd9[_0x1a6a61];return _0x4668d0;},a4_0x1a6a(_0xa7b386,_0x3c4a14);}Object[a4_0x47064d(0xa5)](exports,'__esModule',{'value':!![]}),exports['Api']=void 0x0;const validator_1=require(a4_0x47064d(0xba)),core_1=require('@midwayjs/core'),action_1=require(a4_0x47064d(0xb6));function Api(_0x1c39fd,_0x5ea689=a4_0x47064d(0xc2),_0x573322='/',_0x121185={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1b4a32,_0x904f52,_0x67b778)=>{const _0x3f2493=a4_0x1a6a;var _0x114979,_0x2ee7fd,_0x4a4a96;!_0x121185['middleware']&&(_0x121185[_0x3f2493(0xb9)]=[]);!((_0x114979=_0x121185===null||_0x121185===void 0x0?void 0x0:_0x121185[_0x3f2493(0xac)])===null||_0x114979===void 0x0?void 0x0:_0x114979['validationOptions'])&&(_0x121185['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3f2493(0xb5)}});if(((_0x2ee7fd=_0x121185===null||_0x121185===void 0x0?void 0x0:_0x121185[_0x3f2493(0xb9)])===null||_0x2ee7fd===void 0x0?void 0x0:_0x2ee7fd['length'])>0x0&&((_0x4a4a96=_0x121185===null||_0x121185===void 0x0?void 0x0:_0x121185[_0x3f2493(0xc3)])===null||_0x4a4a96===void 0x0?void 0x0:_0x4a4a96[_0x3f2493(0xb3)])>0x0)for(let _0x52d6a2 in _0x121185[_0x3f2493(0xb9)]){_0x121185[_0x3f2493(0xc3)][_0x3f2493(0xbd)](_0x121185[_0x3f2493(0xb9)][_0x52d6a2])!==-0x1&&(_0x121185[_0x3f2493(0xb9)][_0x52d6a2]=null);}_0x121185['routerName']=_0x1c39fd,(0x0,validator_1['Validator'])(_0x121185[_0x3f2493(0xac)])(_0x1b4a32,_0x904f52,_0x67b778),(0x0,core_1[_0x3f2493(0xa8)])(Object[_0x3f2493(0xc1)](_0x121185,{'path':_0x573322,'requestMethod':(_0x5ea689=='del'?_0x3f2493(0xbe):_0x5ea689)[_0x3f2493(0xbb)]()}))(_0x1b4a32,_0x904f52,_0x67b778),(0x0,core_1[_0x3f2493(0xb2)])(action_1[_0x3f2493(0xa9)],{'path':_0x573322,'method':_0x904f52,'apimit':_0x121185[_0x3f2493(0xbf)],'routerName':_0x121185['routerName'],'description':_0x121185['description'],'middleware':(_0x121185[_0x3f2493(0xb9)]||[])[_0x3f2493(0xab)](_0xb1f2b5=>!!_0xb1f2b5),'requestMethod':(_0x5ea689==_0x3f2493(0xad)?_0x3f2493(0xbe):_0x5ea689)[_0x3f2493(0xbb)]()},_0x1b4a32),(0x0,core_1[_0x3f2493(0xae)])(action_1[_0x3f2493(0xa9)],{'path':_0x573322,'method':_0x904f52,'apimit':_0x121185['apimit'],'routerName':_0x121185[_0x3f2493(0xbc)],'description':_0x121185[_0x3f2493(0xa7)],'middleware':(_0x121185['middleware']||[])[_0x3f2493(0xab)](_0x15c10e=>!!_0x15c10e),'requestMethod':(_0x5ea689==_0x3f2493(0xad)?_0x3f2493(0xbe):_0x5ea689)[_0x3f2493(0xbb)]()})(_0x1b4a32,_0x904f52,_0x67b778);};}exports[a4_0x47064d(0xaf)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0xa31f76=a5_0x354e;function a5_0xcf5b(){const _0x546699=['apidoc','/apitest','defineProperty','640047iIqsgg','@midwayjs/core','../service/ApitestService','228CRkruj','4488480qwazoc','get','MidwayEnvironmentService','ApitestService','Apitest','81304luxKHF','1373100BkGNca','getAsync','getConfig','value','RequestMapping','REQUEST_OBJ_CTX_KEY','getApplicationContext','__esModule','apitest','39963fqqpCP','951849HsXtZa','171VMacIF','1916476EfjgRx'];a5_0xcf5b=function(){return _0x546699;};return a5_0xcf5b();}(function(_0x2ac227,_0xb364af){const _0x5711bc=a5_0x354e,_0x5cbc9e=_0x2ac227();while(!![]){try{const _0x26c3c=parseInt(_0x5711bc(0x154))/0x1+-parseInt(_0x5711bc(0x15e))/0x2+parseInt(_0x5711bc(0x14e))/0x3+-parseInt(_0x5711bc(0x150))/0x4+parseInt(_0x5711bc(0x158))/0x5+-parseInt(_0x5711bc(0x157))/0x6*(parseInt(_0x5711bc(0x14d))/0x7)+-parseInt(_0x5711bc(0x15d))/0x8*(-parseInt(_0x5711bc(0x14f))/0x9);if(_0x26c3c===_0xb364af)break;else _0x5cbc9e['push'](_0x5cbc9e['shift']());}catch(_0x4633e5){_0x5cbc9e['push'](_0x5cbc9e['shift']());}}}(a5_0xcf5b,0xa27a8));Object[a5_0xa31f76(0x153)](exports,a5_0xa31f76(0x14b),{'value':!![]}),exports[a5_0xa31f76(0x15c)]=void 0x0;function a5_0x354e(_0x546993,_0x47531f){const _0xcf5bd8=a5_0xcf5b();return a5_0x354e=function(_0x354eed,_0x29b5f2){_0x354eed=_0x354eed-0x14a;let _0x4d5f53=_0xcf5bd8[_0x354eed];return _0x4d5f53;},a5_0x354e(_0x546993,_0x47531f);}const core_1=require(a5_0xa31f76(0x155)),ApitestService_1=require(a5_0xa31f76(0x156));function Apitest(_0x1254f8=a5_0xa31f76(0x152),_0x4b9e6e){return(_0x4682ce,_0x1bf95c,_0x4f6dac)=>{const _0x5df7f9=a5_0x354e;return(0x0,core_1[_0x5df7f9(0x162)])({'path':_0x1254f8,'requestMethod':_0x5df7f9(0x159)})(_0x4682ce,_0x1bf95c,_0x4f6dac),_0x4f6dac[_0x5df7f9(0x161)]=async function(..._0x57d88a){const _0x491352=_0x5df7f9;var _0x2c5d7f;const _0x3e31cf=(_0x2c5d7f=this[core_1[_0x491352(0x163)]])===null||_0x2c5d7f===void 0x0?void 0x0:_0x2c5d7f['app'];if(_0x3e31cf&&_0x3e31cf[_0x491352(0x160)](_0x491352(0x14c))){const _0x22655f=await _0x3e31cf[_0x491352(0x14a)]()[_0x491352(0x15f)](ApitestService_1[_0x491352(0x15b)]),_0x58bd28=await _0x3e31cf['getApplicationContext']()['getAsync'](core_1[_0x491352(0x15a)]);return _0x58bd28['isDevelopmentEnvironment']()&&(_0x4b9e6e['filepath']=!![]),await _0x22655f[_0x491352(0x151)](_0x4b9e6e);}return'';},_0x4f6dac;};}exports[a5_0xa31f76(0x15c)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a6_0x5b0c(_0x524cc4,_0x2e5ad5){var _0x39c1a1=a6_0x39c1();return a6_0x5b0c=function(_0x5b0c07,_0x5d7ac5){_0x5b0c07=_0x5b0c07-0xb5;var _0x4309a8=_0x39c1a1[_0x5b0c07];return _0x4309a8;},a6_0x5b0c(_0x524cc4,_0x2e5ad5);}var a6_0x5126a4=a6_0x5b0c;(function(_0x46a477,_0x108404){var _0x41f485=a6_0x5b0c,_0x4b3eb7=_0x46a477();while(!![]){try{var _0x10b52b=-parseInt(_0x41f485(0xc9))/0x1*(parseInt(_0x41f485(0xba))/0x2)+-parseInt(_0x41f485(0xb8))/0x3+-parseInt(_0x41f485(0xce))/0x4+parseInt(_0x41f485(0xbe))/0x5+-parseInt(_0x41f485(0xc3))/0x6*(parseInt(_0x41f485(0xcd))/0x7)+parseInt(_0x41f485(0xc6))/0x8+parseInt(_0x41f485(0xbd))/0x9*(parseInt(_0x41f485(0xbc))/0xa);if(_0x10b52b===_0x108404)break;else _0x4b3eb7['push'](_0x4b3eb7['shift']());}catch(_0x5e35c8){_0x4b3eb7['push'](_0x4b3eb7['shift']());}}}(a6_0x39c1,0x882d5));var __decorate=this&&this[a6_0x5126a4(0xc5)]||function(_0x2b254e,_0xb220fa,_0x356f0f,_0x872fbc){var _0x56374e=a6_0x5126a4,_0x180e64=arguments[_0x56374e(0xb6)],_0x3ff617=_0x180e64<0x3?_0xb220fa:_0x872fbc===null?_0x872fbc=Object[_0x56374e(0xc8)](_0xb220fa,_0x356f0f):_0x872fbc,_0x3d580b;if(typeof Reflect===_0x56374e(0xcb)&&typeof Reflect['decorate']===_0x56374e(0xc2))_0x3ff617=Reflect[_0x56374e(0xc7)](_0x2b254e,_0xb220fa,_0x356f0f,_0x872fbc);else{for(var _0x1528ab=_0x2b254e[_0x56374e(0xb6)]-0x1;_0x1528ab>=0x0;_0x1528ab--)if(_0x3d580b=_0x2b254e[_0x1528ab])_0x3ff617=(_0x180e64<0x3?_0x3d580b(_0x3ff617):_0x180e64>0x3?_0x3d580b(_0xb220fa,_0x356f0f,_0x3ff617):_0x3d580b(_0xb220fa,_0x356f0f))||_0x3ff617;}return _0x180e64>0x3&&_0x3ff617&&Object['defineProperty'](_0xb220fa,_0x356f0f,_0x3ff617),_0x3ff617;},__metadata=this&&this['__metadata']||function(_0x522806,_0x2164bf){var _0xe8dd5a=a6_0x5126a4;if(typeof Reflect===_0xe8dd5a(0xcb)&&typeof Reflect[_0xe8dd5a(0xb7)]==='function')return Reflect['metadata'](_0x522806,_0x2164bf);};Object[a6_0x5126a4(0xd2)](exports,a6_0x5126a4(0xbf),{'value':!![]}),exports[a6_0x5126a4(0xc4)]=void 0x0;function a6_0x39c1(){var _0x184683=['202MgubHo','TIMEOUT','699640EatGTL','351aBNYcj','4663920uHUVeh','__esModule','HEADERS_SIGNATURE','design:type','function','49206tcbLXA','ApiError','__decorate','1569376oUglHF','decorate','getOwnPropertyDescriptor','7509JOsmiY','请使用正确的设备','object','HEADERS_CHECKCODE','791tIogjX','3911808hVwIQa','HEADERS_LACK','网络繁忙,请稍后重试','signature验证失败','defineProperty','验证失败,请重新登录','length','metadata','1910091AVGtKH','HEADERS_DEVICE'];a6_0x39c1=function(){return _0x184683;};return a6_0x39c1();}class ApiError{}ApiError[a6_0x5126a4(0xbb)]=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError[a6_0x5126a4(0xb9)]=0x3d7e33,ApiError[a6_0x5126a4(0xcc)]=0x3d7e34,ApiError[a6_0x5126a4(0xc0)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x5126a4(0xd0)),__metadata('design:type',Object)],ApiError,a6_0x5126a4(0xbb),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x5126a4(0xc1),Object)],ApiError,a6_0x5126a4(0xcf),void 0x0),__decorate([AnnErrorMsg(a6_0x5126a4(0xca)),__metadata(a6_0x5126a4(0xc1),Object)],ApiError,a6_0x5126a4(0xb9),void 0x0),__decorate([AnnErrorMsg(a6_0x5126a4(0xb5)),__metadata('design:type',Object)],ApiError,a6_0x5126a4(0xcc),void 0x0),__decorate([AnnErrorMsg(a6_0x5126a4(0xd1)),__metadata(a6_0x5126a4(0xc1),Object)],ApiError,a6_0x5126a4(0xc0),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x51c836=a7_0xaa85;(function(_0xe0ec49,_0x29da3a){const _0x375f21=a7_0xaa85,_0x40aae1=_0xe0ec49();while(!![]){try{const _0x412855=-parseInt(_0x375f21(0x89))/0x1+-parseInt(_0x375f21(0x8d))/0x2*(parseInt(_0x375f21(0x90))/0x3)+-parseInt(_0x375f21(0x8f))/0x4+-parseInt(_0x375f21(0x88))/0x5*(parseInt(_0x375f21(0x87))/0x6)+parseInt(_0x375f21(0x8b))/0x7+-parseInt(_0x375f21(0x86))/0x8*(parseInt(_0x375f21(0x96))/0x9)+parseInt(_0x375f21(0x91))/0xa;if(_0x412855===_0x29da3a)break;else _0x40aae1['push'](_0x40aae1['shift']());}catch(_0x250c30){_0x40aae1['push'](_0x40aae1['shift']());}}}(a7_0xea4f,0xd8e7e));Object[a7_0x51c836(0x8c)](exports,a7_0x51c836(0x93),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0x51c836(0x95)),action_1=require('../types/action');function getAppsConfig(_0xefc736){const _0x125a71=a7_0x51c836,_0x50098c=(0x0,core_1[_0x125a71(0x94)])(action_1[_0x125a71(0x92)],action_1[_0x125a71(0x8e)])||{};return _0xefc736?lodash[_0x125a71(0x97)](_0x50098c,_0xefc736):_0x50098c;}function a7_0xaa85(_0x5a86b4,_0x94013e){const _0xea4f1=a7_0xea4f();return a7_0xaa85=function(_0xaa850a,_0x22e1e1){_0xaa850a=_0xaa850a-0x86;let _0x35a18d=_0xea4f1[_0xaa850a];return _0x35a18d;},a7_0xaa85(_0x5a86b4,_0x94013e);}function a7_0xea4f(){const _0x1dcead=['defineProperty','2fAXUMj','AppsConfigTmp','4240004fUWLPN','3942051bRMSZj','55188080dUoePJ','APPSCONFIG_KEY','__esModule','getClassMetadata','@midwayjs/core','9GTQjsk','get','5270568kSDebP','36210KGinln','545cWWiBC','1088688CgLjCZ','getAppsConfig','1042860gPtOub'];a7_0xea4f=function(){return _0x1dcead;};return a7_0xea4f();}exports[a7_0x51c836(0x8a)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a8_0x4f3f(){const _0x2456f7=['allow','string','propertyData','static/apitest','module','metadata','routerOptions','RouteParamTypes','find','Boolean','file','4493136VGnqcC','get','1649718oVdgBD','flags.label','split','pprefix','route','parameterIndex','function','lodash','BODY','13016JfBNYs','FILESSTREAM','min','95578GGQUCH','String','number','push','requestMethod','items','args','__esModule','iterator','rules','startsWith','filepath','3493mGGqHD','body','max','key','Number','type','ACTION_ROUTE_KEY','filter','File','concat','5027780RlvrQD','flags.default','query','replace','FILESTREAM','getMethodParamTypes','-array','isArray','getClassMetadata','defineProperty','log','default','routes','name','PARAM','test','length','4609255verxMB','文件上传-','description','ACTION_KEY','14RZwqZu','children','flags.description','required','array','../types/action','noreq','path','HEADERS','limit','indexOf','tagName','RULES_KEY','object','4ayrZOw','@midwayjs/core','summary','keys','prefix','@anncic-api/validator','title','WEB_ROUTER_PARAM_KEY','header','FIELDS','3912663jnONiY','getClassExtendedMetadata','routerName','request','getRoutes','method'];a8_0x4f3f=function(){return _0x2456f7;};return a8_0x4f3f();}const a8_0x50676c=a8_0x4e88;(function(_0x481f6b,_0xa71194){const _0x55419d=a8_0x4e88,_0x44a5a9=_0x481f6b();while(!![]){try{const _0x455a57=-parseInt(_0x55419d(0x22a))/0x1*(-parseInt(_0x55419d(0x1ff))/0x2)+-parseInt(_0x55419d(0x242))/0x3+-parseInt(_0x55419d(0x238))/0x4*(-parseInt(_0x55419d(0x226))/0x5)+-parseInt(_0x55419d(0x1f1))/0x6+parseInt(_0x55419d(0x20b))/0x7*(parseInt(_0x55419d(0x1fc))/0x8)+-parseInt(_0x55419d(0x1f3))/0x9+parseInt(_0x55419d(0x215))/0xa;if(_0x455a57===_0xa71194)break;else _0x44a5a9['push'](_0x44a5a9['shift']());}catch(_0x3a0ce2){_0x44a5a9['push'](_0x44a5a9['shift']());}}}(a8_0x4f3f,0xa35f1));function a8_0x4e88(_0x598c95,_0x46e948){const _0x4f3f20=a8_0x4f3f();return a8_0x4e88=function(_0x4e88a0,_0x15ebd4){_0x4e88a0=_0x4e88a0-0x1ef;let _0x374d36=_0x4f3f20[_0x4e88a0];return _0x374d36;},a8_0x4e88(_0x598c95,_0x46e948);}Object[a8_0x50676c(0x21e)](exports,a8_0x50676c(0x206),{'value':!![]}),exports[a8_0x50676c(0x246)]=void 0x0;const lodash_1=require(a8_0x50676c(0x1fa)),validator_1=require(a8_0x50676c(0x23d)),core_1=require('@midwayjs/core'),core_2=require(a8_0x50676c(0x239)),core_3=require(a8_0x50676c(0x239)),action_1=require(a8_0x50676c(0x22f));function getRoutes(_0x219182={'prefix':'/','module':![]}){const _0x30ed8f=a8_0x50676c;var _0x1c94bc,_0x51b3be;const _0xda41db=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x23c5b9={},_0xe7d359=Array[_0x30ed8f(0x21c)](_0x219182[_0x30ed8f(0x212)]||[])?_0x219182[_0x30ed8f(0x212)]||[]:[_0x219182['filter']];_0xa0029b:for(const _0x14858a of _0xda41db){let _0xb9547f=(0x0,core_3[_0x30ed8f(0x21d)])(action_1[_0x30ed8f(0x229)],_0x14858a),_0x56a740=(0x0,core_3[_0x30ed8f(0x21d)])(action_1[_0x30ed8f(0x211)],_0x14858a);if(_0xb9547f&&_0x56a740){let _0x2d3c4a=_0xb9547f[_0x30ed8f(0x23c)],_0x4b4396={};if(_0x219182[_0x30ed8f(0x24c)]&&(0x0,lodash_1[_0x30ed8f(0x1f2)])(_0xb9547f,_0x30ed8f(0x24c),![])!=_0x219182['module'])continue _0xa0029b;else{if(_0x219182[_0x30ed8f(0x24c)]===![]&&!!(0x0,lodash_1[_0x30ed8f(0x1f2)])(_0xb9547f,_0x30ed8f(0x24c),null))continue _0xa0029b;}if(_0x219182[_0x30ed8f(0x23c)]&&!_0x2d3c4a[_0x30ed8f(0x209)](_0x219182['prefix']))continue _0xa0029b;_0x2d3c4a!=='/'?(_0x4b4396['summary']=(_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f[_0x30ed8f(0x24e)][_0x30ed8f(0x235)])||(/^\//[_0x30ed8f(0x224)](_0x2d3c4a)?_0x2d3c4a[_0x30ed8f(0x1f5)]('/')[0x1]:_0x2d3c4a),_0x4b4396['description']=(_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f[_0x30ed8f(0x24e)]['description'])||_0x4b4396[_0x30ed8f(0x23a)],_0x4b4396[_0x30ed8f(0x221)]=[]):(_0x4b4396['summary']=(_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f['routerOptions'][_0x30ed8f(0x235)])||_0x30ed8f(0x220),_0x4b4396[_0x30ed8f(0x228)]=(_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f[_0x30ed8f(0x24e)][_0x30ed8f(0x228)])||'',_0x4b4396[_0x30ed8f(0x221)]=[]);_0x219182[_0x30ed8f(0x20a)]&&(_0x4b4396['filepath']=_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f['filepath']);(_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f[_0x30ed8f(0x1f6)])&&(_0x4b4396['prefix']=_0xb9547f['pprefix']);(_0xb9547f===null||_0xb9547f===void 0x0?void 0x0:_0xb9547f[_0x30ed8f(0x24c)])&&(_0x4b4396[_0x30ed8f(0x24c)]=_0xb9547f[_0x30ed8f(0x24c)]);let _0x2066fc=(0x0,core_3[_0x30ed8f(0x21d)])(core_2['INJECT_CUSTOM_PARAM'],_0x14858a)||{};if(typeof _0x56a740[Symbol[_0x30ed8f(0x207)]]===_0x30ed8f(0x1f9))for(let _0x30d4b1 of _0x56a740){let _0xa49e68={};_0xa49e68[_0x30ed8f(0x247)]=_0x30d4b1[_0x30ed8f(0x203)],_0xa49e68[_0x30ed8f(0x1f7)]=(_0x2d3c4a+_0x30d4b1[_0x30ed8f(0x231)])[_0x30ed8f(0x218)](/\/{1,}/,'/'),_0xa49e68[_0x30ed8f(0x23a)]=(_0x30d4b1===null||_0x30d4b1===void 0x0?void 0x0:_0x30d4b1[_0x30ed8f(0x244)])||_0x4b4396[_0x30ed8f(0x23a)]||_0x30ed8f(0x220),_0xa49e68[_0x30ed8f(0x228)]=(_0x30d4b1===null||_0x30d4b1===void 0x0?void 0x0:_0x30d4b1[_0x30ed8f(0x228)])||'',_0xa49e68['request']=[];if(!(0x0,lodash_1[_0x30ed8f(0x209)])(_0xa49e68[_0x30ed8f(0x1f7)],_0x30ed8f(0x24b))&&!(0x0,lodash_1[_0x30ed8f(0x209)])(_0xa49e68[_0x30ed8f(0x1f7)],'/static/apitest')&&_0xe7d359['indexOf'](_0xa49e68[_0x30ed8f(0x1f7)])===-0x1){if(!(_0x219182===null||_0x219182===void 0x0?void 0x0:_0x219182[_0x30ed8f(0x230)])){let _0x269b4d=(0x0,core_3[_0x30ed8f(0x21a)])(new _0x14858a(),_0x30d4b1[_0x30ed8f(0x247)]);for(const _0x255681 in _0x269b4d){let _0x3fc69f=(_0x1c94bc=_0x2066fc[_0x30d4b1[_0x30ed8f(0x247)]])===null||_0x1c94bc===void 0x0?void 0x0:_0x1c94bc[_0x30ed8f(0x250)](_0x5a29ba=>_0x5a29ba[_0x30ed8f(0x1f8)]==_0x255681&&_0x5a29ba[_0x30ed8f(0x20e)]===core_2[_0x30ed8f(0x23f)]&&(_0x5a29ba===null||_0x5a29ba===void 0x0?void 0x0:_0x5a29ba['metadata']));if(_0x3fc69f===null||_0x3fc69f===void 0x0?void 0x0:_0x3fc69f[_0x30ed8f(0x24d)]){let _0x5b2b00=convertTypeToString(_0x3fc69f[_0x30ed8f(0x24d)]['type']||0x0);if([_0x30ed8f(0x217),_0x30ed8f(0x20c)][_0x30ed8f(0x234)](_0x5b2b00)!=-0x1&&_0x3fc69f[_0x30ed8f(0x24d)][_0x30ed8f(0x24a)][_0x30ed8f(0x234)](':')==-0x1&&!_0xa49e68[_0x30ed8f(0x245)][_0x30ed8f(0x250)](_0x2d3896=>_0x2d3896[_0x30ed8f(0x20e)]==_0x3fc69f[_0x30ed8f(0x24d)][_0x30ed8f(0x24a)]))_0xa49e68[_0x30ed8f(0x245)]['push']({'key':_0x3fc69f[_0x30ed8f(0x24d)]['propertyData'],'title':_0x3fc69f[_0x30ed8f(0x24d)][_0x30ed8f(0x24a)],'type':convertSchemaType(_0x269b4d[_0x3fc69f[_0x30ed8f(0x1f8)]][_0x30ed8f(0x222)]),'required':![],'default':'','desc':''});else{if(_0x5b2b00==_0x30ed8f(0x1f0)){let _0xd2c7a8=((_0x51b3be=_0x3fc69f===null||_0x3fc69f===void 0x0?void 0x0:_0x3fc69f[_0x30ed8f(0x24d)])===null||_0x51b3be===void 0x0?void 0x0:_0x51b3be[_0x30ed8f(0x24a)])||_0x30ed8f(0x1f0);_0xd2c7a8[_0x30ed8f(0x234)](':')==-0x1&&!_0xa49e68['request']['find'](_0x2a5852=>_0x2a5852['key']==_0xd2c7a8&&_0x2a5852[_0x30ed8f(0x210)]=='file')&&_0xa49e68['request'][_0x30ed8f(0x202)]({'key':_0xd2c7a8,'title':_0x30ed8f(0x227)+_0xd2c7a8,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x424770=(0x0,core_3[_0x30ed8f(0x243)])(validator_1[_0x30ed8f(0x236)],_0x269b4d[_0x255681]);_0x424770&&_0xa49e68[_0x30ed8f(0x245)][_0x30ed8f(0x202)](...getJoiRequest(_0x424770));}}}_0x4b4396[_0x30ed8f(0x221)]['push'](_0xa49e68);}}if(_0x4b4396[_0x30ed8f(0x221)][_0x30ed8f(0x225)]>0x0){let _0x5c4f2f=_0x23c5b9[_0x2d3c4a];_0x5c4f2f?(_0x5c4f2f[_0x30ed8f(0x23a)]!=_0x4b4396[_0x30ed8f(0x23a)]&&(_0x5c4f2f['summary']=_0x5c4f2f['summary']+','+_0x4b4396[_0x30ed8f(0x23a)]),_0x5c4f2f[_0x30ed8f(0x228)]!=_0x4b4396['description']&&(_0x5c4f2f['description']=_0x5c4f2f[_0x30ed8f(0x228)]+','+_0x4b4396['description']),_0x5c4f2f[_0x30ed8f(0x221)]=_0x5c4f2f[_0x30ed8f(0x221)][_0x30ed8f(0x214)](_0x4b4396['routes']),_0x23c5b9[_0x2d3c4a]=_0x5c4f2f):_0x23c5b9[_0x2d3c4a]=_0x4b4396;}}}return _0x23c5b9;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x3f593c){const _0x1de223=a8_0x50676c,_0x199a9e=[];for(let _0x18252b in _0x3f593c){const _0x39fa79={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4f9155=typeof _0x3f593c[_0x18252b]['describe']==_0x1de223(0x1f9)?_0x3f593c[_0x18252b]['describe']():_0x3f593c[_0x18252b];_0x39fa79['key']=_0x18252b,_0x39fa79[_0x1de223(0x210)]=_0x4f9155[_0x1de223(0x210)],_0x39fa79[_0x1de223(0x23e)]=(0x0,lodash_1['get'])(_0x4f9155,_0x1de223(0x1f4),_0x18252b),_0x39fa79[_0x1de223(0x220)]=(0x0,lodash_1[_0x1de223(0x1f2)])(_0x4f9155,_0x1de223(0x216),''),_0x39fa79[_0x1de223(0x22d)]=(0x0,lodash_1['get'])(_0x4f9155,'flags.presence','')==_0x1de223(0x22d),_0x39fa79[_0x1de223(0x228)]=(0x0,lodash_1['get'])(_0x4f9155,_0x1de223(0x22c),'');if(_0x4f9155[_0x1de223(0x210)]==_0x1de223(0x237))_0x39fa79[_0x1de223(0x22b)]=getJoiRequest(_0x4f9155[_0x1de223(0x23b)]);else _0x4f9155[_0x1de223(0x210)]==_0x1de223(0x22e)&&_0x4f9155[_0x1de223(0x204)]&&Array[_0x1de223(0x21c)](_0x4f9155[_0x1de223(0x204)])&&_0x4f9155['items'][0x0]&&console[_0x1de223(0x21f)](_0x18252b+_0x1de223(0x21b),_0x4f9155);_0x4f9155['allow']&&Array[_0x1de223(0x21c)](_0x4f9155[_0x1de223(0x248)])&&_0x4f9155[_0x1de223(0x248)][_0x1de223(0x225)]>0x0&&(_0x39fa79[_0x1de223(0x228)]='只允许:['+_0x4f9155['allow']['join'](',')+'];'+_0x39fa79[_0x1de223(0x228)]);if(_0x39fa79['key']&&_0x39fa79[_0x1de223(0x210)]){const _0x3b1aef={};for(const _0x1b0a08 of _0x4f9155['rules']||[]){if(_0x1b0a08[_0x1de223(0x222)]==='min'&&_0x1b0a08[_0x1de223(0x205)])_0x3b1aef[_0x1de223(0x1fe)]=_0x1b0a08[_0x1de223(0x205)][_0x1de223(0x233)];else _0x1b0a08['name']==='max'&&(_0x3b1aef[_0x1de223(0x20d)]=_0x1b0a08[_0x1de223(0x205)][_0x1de223(0x233)]);}_0x39fa79[_0x1de223(0x208)]=_0x3b1aef;}_0x39fa79['key']&&_0x39fa79[_0x1de223(0x23e)]&&_0x199a9e['push'](_0x39fa79);}return _0x199a9e;}function convertSchemaType(_0x1edfe6){const _0x8e703d=a8_0x50676c;switch(_0x1edfe6){case'Object':return _0x8e703d(0x237);case _0x8e703d(0x1ef):return'boolean';case _0x8e703d(0x20f):return _0x8e703d(0x201);case _0x8e703d(0x200):return _0x8e703d(0x249);case _0x8e703d(0x213):return _0x8e703d(0x1f0);default:return _0x8e703d(0x249);}}function convertTypeToString(_0x5dd58b){const _0x5cdec9=a8_0x50676c;switch(_0x5dd58b){case core_1[_0x5cdec9(0x24f)][_0x5cdec9(0x232)]:return _0x5cdec9(0x240);case core_1[_0x5cdec9(0x24f)]['QUERY']:return _0x5cdec9(0x217);case core_1[_0x5cdec9(0x24f)][_0x5cdec9(0x223)]:return _0x5cdec9(0x231);case core_1['RouteParamTypes'][_0x5cdec9(0x1fb)]:return _0x5cdec9(0x20c);case core_1[_0x5cdec9(0x24f)][_0x5cdec9(0x241)]:case core_1[_0x5cdec9(0x24f)][_0x5cdec9(0x1fd)]:case core_1[_0x5cdec9(0x24f)][_0x5cdec9(0x219)]:return'file';default:return _0x5cdec9(0x240);}}
|
|
1
|
+
'use strict';const a8_0x39b1ac=a8_0x2461;function a8_0x5ad0(){const _0x291444=['startsWith','flags.label','metadata','children','routes','test','length','max','module','request','propertyData','getClassExtendedMetadata','filepath','flags.default','push','297618mJavOn','flags.presence','join','title','path','type','static/apitest','getMethodParamTypes','indexOf','../types/action','body','parameterIndex','tagName','2831810pAIgfw','__esModule','log','175923WMJHod','description','RouteParamTypes','8fduBhU','10666565zIIqpQ','items','find','String','boolean','只允许:[','PARAM','allow','method','rules','min','@anncic-api/validator','routerOptions','routerName','name','split','key','keys','filter','12AHkbmn','listModule','query','object','WEB_ROUTER_PARAM_KEY','@midwayjs/core','flags.description','limit','2994cNsmvl','文件上传-','Number','1499931Xqaboo','string','HEADERS','BODY','defineProperty','Boolean','describe','number','12WlCwOr','get','isArray','concat','getRoutes','456YwlVXF','getClassMetadata','Object','lodash','route','FILESSTREAM','summary','QUERY','function','FIELDS','args','7526585rAMBQw','ACTION_ROUTE_KEY','file','prefix','default','header','-array','INJECT_CUSTOM_PARAM','/static/apitest','3130yAaKEQ'];a8_0x5ad0=function(){return _0x291444;};return a8_0x5ad0();}(function(_0xeb3fd4,_0x2cb464){const _0x5542aa=a8_0x2461,_0x3b78c1=_0xeb3fd4();while(!![]){try{const _0x4aac4c=-parseInt(_0x5542aa(0x16c))/0x1*(-parseInt(_0x5542aa(0x159))/0x2)+parseInt(_0x5542aa(0x18b))/0x3*(parseInt(_0x5542aa(0x193))/0x4)+parseInt(_0x5542aa(0x1ac))/0x5*(parseInt(_0x5542aa(0x188))/0x6)+-parseInt(_0x5542aa(0x16d))/0x7+-parseInt(_0x5542aa(0x198))/0x8*(parseInt(_0x5542aa(0x169))/0x9)+-parseInt(_0x5542aa(0x166))/0xa+-parseInt(_0x5542aa(0x1a3))/0xb*(-parseInt(_0x5542aa(0x180))/0xc);if(_0x4aac4c===_0x2cb464)break;else _0x3b78c1['push'](_0x3b78c1['shift']());}catch(_0xb58975){_0x3b78c1['push'](_0x3b78c1['shift']());}}}(a8_0x5ad0,0xbafa1));function a8_0x2461(_0x3a3edc,_0x156443){const _0x5ad0c3=a8_0x5ad0();return a8_0x2461=function(_0x246102,_0x807980){_0x246102=_0x246102-0x156;let _0x8ad024=_0x5ad0c3[_0x246102];return _0x8ad024;},a8_0x2461(_0x3a3edc,_0x156443);}Object[a8_0x39b1ac(0x18f)](exports,a8_0x39b1ac(0x167),{'value':!![]}),exports[a8_0x39b1ac(0x197)]=void 0x0;const lodash_1=require(a8_0x39b1ac(0x19b)),validator_1=require(a8_0x39b1ac(0x178)),core_1=require(a8_0x39b1ac(0x185)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),action_1=require(a8_0x39b1ac(0x162));function getRoutes(_0x929ed={'prefix':'/','module':![]}){const _0x131cef=a8_0x39b1ac;var _0x21e8d7,_0x385b2f;const _0x14e417=(0x0,core_3[_0x131cef(0x181)])(action_1['ACTION_KEY']),_0x5449ac={},_0x3e2f0e=Array[_0x131cef(0x195)](_0x929ed[_0x131cef(0x17f)]||[])?_0x929ed[_0x131cef(0x17f)]||[]:[_0x929ed[_0x131cef(0x17f)]];_0x3d345b:for(const _0xfafbd of _0x14e417){let _0x56ae96=(0x0,core_3[_0x131cef(0x199)])(action_1['ACTION_KEY'],_0xfafbd),_0x562ee9=(0x0,core_3[_0x131cef(0x199)])(action_1[_0x131cef(0x1a4)],_0xfafbd);if(_0x56ae96&&_0x562ee9){let _0x1b8fe8=_0x56ae96[_0x131cef(0x1a6)],_0x24e1c4={};if(_0x929ed['module']&&(0x0,lodash_1[_0x131cef(0x194)])(_0x56ae96,'module',![])!=_0x929ed[_0x131cef(0x1b5)])continue _0x3d345b;else{if(_0x929ed[_0x131cef(0x1b5)]===![]&&!!(0x0,lodash_1[_0x131cef(0x194)])(_0x56ae96,_0x131cef(0x1b5),null))continue _0x3d345b;}if(_0x929ed[_0x131cef(0x1a6)]&&!_0x1b8fe8[_0x131cef(0x1ad)](_0x929ed[_0x131cef(0x1a6)]))continue _0x3d345b;_0x1b8fe8!=='/'?(_0x24e1c4['summary']=(_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96[_0x131cef(0x179)][_0x131cef(0x165)])||(/^\//[_0x131cef(0x1b2)](_0x1b8fe8)?_0x1b8fe8[_0x131cef(0x17c)]('/')[0x1]:_0x1b8fe8),_0x24e1c4[_0x131cef(0x16a)]=(_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96[_0x131cef(0x179)][_0x131cef(0x16a)])||_0x24e1c4['summary'],_0x24e1c4[_0x131cef(0x1b1)]=[]):(_0x24e1c4[_0x131cef(0x19e)]=(_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96[_0x131cef(0x179)][_0x131cef(0x165)])||_0x131cef(0x1a7),_0x24e1c4[_0x131cef(0x16a)]=(_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96[_0x131cef(0x179)]['description'])||'',_0x24e1c4[_0x131cef(0x1b1)]=[]);_0x929ed[_0x131cef(0x156)]&&(_0x24e1c4[_0x131cef(0x156)]=_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96[_0x131cef(0x156)]);(_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96['pprefix'])&&(_0x24e1c4[_0x131cef(0x1a6)]=_0x56ae96['pprefix']);(_0x56ae96===null||_0x56ae96===void 0x0?void 0x0:_0x56ae96['module'])&&(_0x24e1c4['module']=_0x56ae96[_0x131cef(0x1b5)]);let _0x5a9be3=(0x0,core_3[_0x131cef(0x199)])(core_2[_0x131cef(0x1aa)],_0xfafbd)||{};if(typeof _0x562ee9[Symbol['iterator']]===_0x131cef(0x1a0))for(let _0x151113 of _0x562ee9){let _0x161387={};_0x161387['method']=_0x151113['requestMethod'],_0x161387[_0x131cef(0x19c)]=(_0x1b8fe8+_0x151113[_0x131cef(0x15d)])['replace'](/\/{1,}/,'/'),_0x161387[_0x131cef(0x19e)]=(_0x151113===null||_0x151113===void 0x0?void 0x0:_0x151113[_0x131cef(0x17a)])||_0x24e1c4['summary']||_0x131cef(0x1a7),_0x161387['description']=(_0x151113===null||_0x151113===void 0x0?void 0x0:_0x151113['description'])||'',_0x161387[_0x131cef(0x1b6)]=[];if(!(0x0,lodash_1[_0x131cef(0x1ad)])(_0x161387[_0x131cef(0x19c)],_0x131cef(0x15f))&&!(0x0,lodash_1[_0x131cef(0x1ad)])(_0x161387[_0x131cef(0x19c)],_0x131cef(0x1ab))&&_0x3e2f0e[_0x131cef(0x161)](_0x161387['route'])===-0x1){if(!(_0x929ed===null||_0x929ed===void 0x0?void 0x0:_0x929ed['noreq'])){let _0x267e9b=(0x0,core_3[_0x131cef(0x160)])(new _0xfafbd(),_0x151113['method']);for(const _0x2625ee in _0x267e9b){let _0x5db434=(_0x21e8d7=_0x5a9be3[_0x151113[_0x131cef(0x175)]])===null||_0x21e8d7===void 0x0?void 0x0:_0x21e8d7[_0x131cef(0x16f)](_0x11274c=>_0x11274c[_0x131cef(0x164)]==_0x2625ee&&_0x11274c[_0x131cef(0x17d)]===core_2[_0x131cef(0x184)]&&(_0x11274c===null||_0x11274c===void 0x0?void 0x0:_0x11274c[_0x131cef(0x1af)]));if(_0x5db434===null||_0x5db434===void 0x0?void 0x0:_0x5db434['metadata']){let _0x48ce17=convertTypeToString(_0x5db434['metadata'][_0x131cef(0x15e)]||0x0);if([_0x131cef(0x182),_0x131cef(0x163)][_0x131cef(0x161)](_0x48ce17)!=-0x1&&_0x5db434[_0x131cef(0x1af)][_0x131cef(0x1b7)][_0x131cef(0x161)](':')==-0x1&&!_0x161387['request'][_0x131cef(0x16f)](_0x4fb4a6=>_0x4fb4a6[_0x131cef(0x17d)]==_0x5db434[_0x131cef(0x1af)][_0x131cef(0x1b7)]))_0x161387[_0x131cef(0x1b6)][_0x131cef(0x158)]({'key':_0x5db434[_0x131cef(0x1af)][_0x131cef(0x1b7)],'title':_0x5db434[_0x131cef(0x1af)][_0x131cef(0x1b7)],'type':convertSchemaType(_0x267e9b[_0x5db434['parameterIndex']][_0x131cef(0x17b)]),'required':![],'default':'','desc':''});else{if(_0x48ce17==_0x131cef(0x1a5)){let _0x3cde98=((_0x385b2f=_0x5db434===null||_0x5db434===void 0x0?void 0x0:_0x5db434[_0x131cef(0x1af)])===null||_0x385b2f===void 0x0?void 0x0:_0x385b2f[_0x131cef(0x1b7)])||_0x131cef(0x1a5);_0x3cde98[_0x131cef(0x161)](':')==-0x1&&!_0x161387[_0x131cef(0x1b6)]['find'](_0x19d5ba=>_0x19d5ba[_0x131cef(0x17d)]==_0x3cde98&&_0x19d5ba[_0x131cef(0x15e)]==_0x131cef(0x1a5))&&_0x161387[_0x131cef(0x1b6)][_0x131cef(0x158)]({'key':_0x3cde98,'title':_0x131cef(0x189)+_0x3cde98,'type':_0x131cef(0x1a5),'required':!![],'default':'','desc':''});}}}else{const _0x3b0135=(0x0,core_3[_0x131cef(0x1b8)])(validator_1['RULES_KEY'],_0x267e9b[_0x2625ee]);_0x3b0135&&_0x161387[_0x131cef(0x1b6)]['push'](...getJoiRequest(_0x3b0135));}}}_0x24e1c4[_0x131cef(0x1b1)]['push'](_0x161387);}}if(_0x24e1c4[_0x131cef(0x1b1)][_0x131cef(0x1b3)]>0x0){let _0x49d63a=_0x5449ac[_0x1b8fe8];_0x49d63a?(_0x49d63a[_0x131cef(0x19e)]!=_0x24e1c4[_0x131cef(0x19e)]&&(_0x49d63a['summary']=_0x49d63a['summary']+','+_0x24e1c4[_0x131cef(0x19e)]),_0x49d63a[_0x131cef(0x16a)]!=_0x24e1c4[_0x131cef(0x16a)]&&(_0x49d63a[_0x131cef(0x16a)]=_0x49d63a[_0x131cef(0x16a)]+','+_0x24e1c4[_0x131cef(0x16a)]),_0x49d63a[_0x131cef(0x1b1)]=_0x49d63a[_0x131cef(0x1b1)][_0x131cef(0x196)](_0x24e1c4['routes']),_0x5449ac[_0x1b8fe8]=_0x49d63a):_0x5449ac[_0x1b8fe8]=_0x24e1c4;}}}return _0x5449ac;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x268bb5){const _0x34dd16=a8_0x39b1ac,_0x3cf66f=[];for(let _0xac2a0f in _0x268bb5){const _0x227a3c={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x22e1a5=typeof _0x268bb5[_0xac2a0f]['describe']==_0x34dd16(0x1a0)?_0x268bb5[_0xac2a0f][_0x34dd16(0x191)]():_0x268bb5[_0xac2a0f];_0x227a3c[_0x34dd16(0x17d)]=_0xac2a0f,_0x227a3c['type']=_0x22e1a5[_0x34dd16(0x15e)],_0x227a3c[_0x34dd16(0x15c)]=(0x0,lodash_1[_0x34dd16(0x194)])(_0x22e1a5,_0x34dd16(0x1ae),_0xac2a0f),_0x227a3c[_0x34dd16(0x1a7)]=(0x0,lodash_1[_0x34dd16(0x194)])(_0x22e1a5,_0x34dd16(0x157),''),_0x227a3c['required']=(0x0,lodash_1['get'])(_0x22e1a5,_0x34dd16(0x15a),'')=='required',_0x227a3c['description']=(0x0,lodash_1[_0x34dd16(0x194)])(_0x22e1a5,_0x34dd16(0x186),'');if(_0x22e1a5[_0x34dd16(0x15e)]==_0x34dd16(0x183))_0x227a3c[_0x34dd16(0x1b0)]=getJoiRequest(_0x22e1a5[_0x34dd16(0x17e)]);else _0x22e1a5[_0x34dd16(0x15e)]=='array'&&_0x22e1a5[_0x34dd16(0x16e)]&&Array[_0x34dd16(0x195)](_0x22e1a5[_0x34dd16(0x16e)])&&_0x22e1a5[_0x34dd16(0x16e)][0x0]&&console[_0x34dd16(0x168)](_0xac2a0f+_0x34dd16(0x1a9),_0x22e1a5);_0x22e1a5['allow']&&Array[_0x34dd16(0x195)](_0x22e1a5[_0x34dd16(0x174)])&&_0x22e1a5[_0x34dd16(0x174)][_0x34dd16(0x1b3)]>0x0&&(_0x227a3c[_0x34dd16(0x16a)]=_0x34dd16(0x172)+_0x22e1a5[_0x34dd16(0x174)][_0x34dd16(0x15b)](',')+'];'+_0x227a3c[_0x34dd16(0x16a)]);if(_0x227a3c[_0x34dd16(0x17d)]&&_0x227a3c[_0x34dd16(0x15e)]){const _0x30b85e={};for(const _0x44af66 of _0x22e1a5[_0x34dd16(0x176)]||[]){if(_0x44af66[_0x34dd16(0x17b)]===_0x34dd16(0x177)&&_0x44af66[_0x34dd16(0x1a2)])_0x30b85e[_0x34dd16(0x177)]=_0x44af66[_0x34dd16(0x1a2)]['limit'];else _0x44af66[_0x34dd16(0x17b)]===_0x34dd16(0x1b4)&&(_0x30b85e[_0x34dd16(0x1b4)]=_0x44af66[_0x34dd16(0x1a2)][_0x34dd16(0x187)]);}_0x227a3c[_0x34dd16(0x176)]=_0x30b85e;}_0x227a3c[_0x34dd16(0x17d)]&&_0x227a3c[_0x34dd16(0x15c)]&&_0x3cf66f[_0x34dd16(0x158)](_0x227a3c);}return _0x3cf66f;}function convertSchemaType(_0x297459){const _0x2e962e=a8_0x39b1ac;switch(_0x297459){case _0x2e962e(0x19a):return _0x2e962e(0x183);case _0x2e962e(0x190):return _0x2e962e(0x171);case _0x2e962e(0x18a):return _0x2e962e(0x192);case _0x2e962e(0x170):return _0x2e962e(0x18c);case'File':return'file';default:return'string';}}function convertTypeToString(_0x15ef00){const _0x12e8b2=a8_0x39b1ac;switch(_0x15ef00){case core_1[_0x12e8b2(0x16b)][_0x12e8b2(0x18d)]:return _0x12e8b2(0x1a8);case core_1[_0x12e8b2(0x16b)][_0x12e8b2(0x19f)]:return _0x12e8b2(0x182);case core_1[_0x12e8b2(0x16b)][_0x12e8b2(0x173)]:return _0x12e8b2(0x15d);case core_1[_0x12e8b2(0x16b)][_0x12e8b2(0x18e)]:return _0x12e8b2(0x163);case core_1['RouteParamTypes'][_0x12e8b2(0x1a1)]:case core_1['RouteParamTypes'][_0x12e8b2(0x19d)]:case core_1[_0x12e8b2(0x16b)]['FILESTREAM']:return'file';default:return _0x12e8b2(0x1a8);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x30b2e0=a9_0x544e;(function(_0x47c2f3,_0x29ac0c){var _0x4f1609=a9_0x544e,_0x1369aa=_0x47c2f3();while(!![]){try{var _0x2b3b13=parseInt(_0x4f1609(0x1e2))/0x1+-parseInt(_0x4f1609(0x1e3))/0x2*(-parseInt(_0x4f1609(0x202))/0x3)+-parseInt(_0x4f1609(0x1d3))/0x4+parseInt(_0x4f1609(0x205))/0x5*(-parseInt(_0x4f1609(0x201))/0x6)+-parseInt(_0x4f1609(0x1fd))/0x7*(parseInt(_0x4f1609(0x1e0))/0x8)+-parseInt(_0x4f1609(0x1f4))/0x9+parseInt(_0x4f1609(0x1ec))/0xa;if(_0x2b3b13===_0x29ac0c)break;else _0x1369aa['push'](_0x1369aa['shift']());}catch(_0x59320b){_0x1369aa['push'](_0x1369aa['shift']());}}}(a9_0x4224,0x31838));var __createBinding=this&&this[a9_0x30b2e0(0x1e4)]||(Object['create']?function(_0x4c8ce3,_0x2a46c7,_0x1da965,_0x4725d9){var _0x16be27=a9_0x30b2e0;if(_0x4725d9===undefined)_0x4725d9=_0x1da965;var _0x499726=Object[_0x16be27(0x1d5)](_0x2a46c7,_0x1da965);(!_0x499726||(_0x16be27(0x1ee)in _0x499726?!_0x2a46c7[_0x16be27(0x1cf)]:_0x499726[_0x16be27(0x1d8)]||_0x499726[_0x16be27(0x1e9)]))&&(_0x499726={'enumerable':!![],'get':function(){return _0x2a46c7[_0x1da965];}}),Object[_0x16be27(0x1f1)](_0x4c8ce3,_0x4725d9,_0x499726);}:function(_0x1aafad,_0x5f58d0,_0x356e00,_0x15b459){if(_0x15b459===undefined)_0x15b459=_0x356e00;_0x1aafad[_0x15b459]=_0x5f58d0[_0x356e00];}),__exportStar=this&&this['__exportStar']||function(_0x489277,_0x4c7331){var _0x24e7b3=a9_0x30b2e0;for(var _0x372cd8 in _0x489277)if(_0x372cd8!==_0x24e7b3(0x1d1)&&!Object['prototype'][_0x24e7b3(0x200)][_0x24e7b3(0x207)](_0x4c7331,_0x372cd8))__createBinding(_0x4c7331,_0x489277,_0x372cd8);};Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1cf),{'value':!![]}),exports['getAppsConfig']=exports[a9_0x30b2e0(0x1e7)]=exports[a9_0x30b2e0(0x1f8)]=exports[a9_0x30b2e0(0x1de)]=exports['Provide']=exports[a9_0x30b2e0(0x1d7)]=exports['Config']=exports[a9_0x30b2e0(0x1dc)]=exports['Init']=exports[a9_0x30b2e0(0x1fb)]=exports[a9_0x30b2e0(0x1ff)]=exports[a9_0x30b2e0(0x1d4)]=exports['Body']=exports[a9_0x30b2e0(0x1f2)]=exports[a9_0x30b2e0(0x1d6)]=exports[a9_0x30b2e0(0x1e6)]=exports[a9_0x30b2e0(0x1ea)]=exports[a9_0x30b2e0(0x1d9)]=exports[a9_0x30b2e0(0x1db)]=exports[a9_0x30b2e0(0x1ed)]=exports['ApiService']=exports['EventService']=exports[a9_0x30b2e0(0x1ef)]=exports[a9_0x30b2e0(0x1d2)]=exports[a9_0x30b2e0(0x1fe)]=exports[a9_0x30b2e0(0x1ce)]=exports[a9_0x30b2e0(0x1f0)]=exports[a9_0x30b2e0(0x1fc)]=void 0x0;const getAppsConfig_1=require(a9_0x30b2e0(0x1da));Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1e8),{'enumerable':!![],'get':function(){var _0x340fe4=a9_0x30b2e0;return getAppsConfig_1[_0x340fe4(0x1e8)];}}),__exportStar(require(a9_0x30b2e0(0x1e5)),exports),__exportStar(require(a9_0x30b2e0(0x1f6)),exports);var ActionApi_1=require(a9_0x30b2e0(0x1eb));function a9_0x544e(_0x593f80,_0x171c68){var _0x4224da=a9_0x4224();return a9_0x544e=function(_0x544eab,_0x19958d){_0x544eab=_0x544eab-0x1cc;var _0x43304e=_0x4224da[_0x544eab];return _0x43304e;},a9_0x544e(_0x593f80,_0x171c68);}Object[a9_0x30b2e0(0x1f1)](exports,'Api',{'enumerable':!![],'get':function(){var _0x486d3a=a9_0x30b2e0;return ActionApi_1[_0x486d3a(0x1fc)];}});var Action_1=require(a9_0x30b2e0(0x1d0));function a9_0x4224(){var _0x31b465=['5jcpvaQ','EventService','call','Init','./configuration','@anncic-api/event','Apitest','__esModule','./decorator/Action','default','ApiError','772100HEqePT','Param','getOwnPropertyDescriptor','Files','Logger','writable','ValidatorService','./helper/getAppsConfig','ValidatorError','App','@anncic-api/cache','Inject','./service/ApiService','248YyPRuS','./helper/getRoutes','140611qoPQGw','28mDlfKj','__createBinding','./types/common','File','ScopeEnum','getAppsConfig','configurable','Configuration','./decorator/ActionApi','9261900MQfrNx','ExcelService','get','CacheService','Action','defineProperty','Fields','ApiService','2537172jcAcCq','Body','./service/ApitestService','./service/ExcelService','Scope','Provide','@anncic-api/validator','Headers','Api','41293OEjDhk','getRoutes','Query','hasOwnProperty','1636482jyKLIK','14262uGIdSP','@midwayjs/core','Config'];a9_0x4224=function(){return _0x31b465;};return a9_0x4224();}Object['defineProperty'](exports,a9_0x30b2e0(0x1f0),{'enumerable':!![],'get':function(){var _0x15880f=a9_0x30b2e0;return Action_1[_0x15880f(0x1f0)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object['defineProperty'](exports,a9_0x30b2e0(0x1ce),{'enumerable':!![],'get':function(){var _0x560c87=a9_0x30b2e0;return ActionApitest_1[_0x560c87(0x1ce)];}});var getRoutes_1=require(a9_0x30b2e0(0x1e1));Object[a9_0x30b2e0(0x1f1)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x15298f=a9_0x30b2e0;return getRoutes_1[_0x15298f(0x1fe)];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1d2),{'enumerable':!![],'get':function(){var _0x47ee71=a9_0x30b2e0;return ApiError_1[_0x47ee71(0x1d2)];}});var cache_1=require(a9_0x30b2e0(0x1dd));Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1ef),{'enumerable':!![],'get':function(){var _0x388983=a9_0x30b2e0;return cache_1[_0x388983(0x1ef)];}});var event_1=require(a9_0x30b2e0(0x1cd));Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x206),{'enumerable':!![],'get':function(){var _0x592367=a9_0x30b2e0;return event_1[_0x592367(0x206)];}});var ApiService_1=require(a9_0x30b2e0(0x1df));Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1f3),{'enumerable':!![],'get':function(){var _0x203799=a9_0x30b2e0;return ApiService_1[_0x203799(0x1f3)];}});var ExcelService_1=require(a9_0x30b2e0(0x1f7));Object['defineProperty'](exports,a9_0x30b2e0(0x1ed),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x30b2e0(0x1fa));Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1db),{'enumerable':!![],'get':function(){var _0x7fafb0=a9_0x30b2e0;return validator_1[_0x7fafb0(0x1db)];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1d9),{'enumerable':!![],'get':function(){var _0x4c21ea=a9_0x30b2e0;return validator_1[_0x4c21ea(0x1d9)];}});var configuration_1=require(a9_0x30b2e0(0x1cc));Object[a9_0x30b2e0(0x1f1)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x30b2e0(0x203));Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1e6),{'enumerable':!![],'get':function(){var _0x27cb18=a9_0x30b2e0;return core_1[_0x27cb18(0x1e6)];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1d6),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object['defineProperty'](exports,a9_0x30b2e0(0x1f2),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object['defineProperty'](exports,a9_0x30b2e0(0x1f5),{'enumerable':!![],'get':function(){var _0x131da9=a9_0x30b2e0;return core_1[_0x131da9(0x1f5)];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1d4),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x30b2e0(0x1f1)](exports,'Query',{'enumerable':!![],'get':function(){var _0x52718c=a9_0x30b2e0;return core_1[_0x52718c(0x1ff)];}}),Object['defineProperty'](exports,'Headers',{'enumerable':!![],'get':function(){var _0x30bc1f=a9_0x30b2e0;return core_1[_0x30bc1f(0x1fb)];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x208),{'enumerable':!![],'get':function(){var _0x355ae9=a9_0x30b2e0;return core_1[_0x355ae9(0x208)];}});var core_2=require(a9_0x30b2e0(0x203));Object['defineProperty'](exports,a9_0x30b2e0(0x1dc),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x204),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1d7),{'enumerable':!![],'get':function(){var _0x32108c=a9_0x30b2e0;return core_2[_0x32108c(0x1d7)];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1f9),{'enumerable':!![],'get':function(){var _0x32cc8b=a9_0x30b2e0;return core_2[_0x32cc8b(0x1f9)];}}),Object[a9_0x30b2e0(0x1f1)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x7460b5=a9_0x30b2e0;return core_2[_0x7460b5(0x1de)];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1f8),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x30b2e0(0x1f1)](exports,a9_0x30b2e0(0x1e7),{'enumerable':!![],'get':function(){var _0x5469f5=a9_0x30b2e0;return core_2[_0x5469f5(0x1e7)];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x30b2e0(0x1e8)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x57eee4=a10_0x575b;(function(_0x3bac55,_0x328791){var _0x41e515=a10_0x575b,_0x534ae7=_0x3bac55();while(!![]){try{var _0x389cdb=parseInt(_0x41e515(0x8d))/0x1+-parseInt(_0x41e515(0x90))/0x2*(parseInt(_0x41e515(0xac))/0x3)+-parseInt(_0x41e515(0x85))/0x4*(-parseInt(_0x41e515(0x9d))/0x5)+parseInt(_0x41e515(0xb2))/0x6+parseInt(_0x41e515(0x9e))/0x7+-parseInt(_0x41e515(0xaf))/0x8+parseInt(_0x41e515(0xa0))/0x9;if(_0x389cdb===_0x328791)break;else _0x534ae7['push'](_0x534ae7['shift']());}catch(_0x84f91e){_0x534ae7['push'](_0x534ae7['shift']());}}}(a10_0x40dc,0x22dde));var __decorate=this&&this['__decorate']||function(_0x1cdc2b,_0x5170ae,_0x1fce40,_0xce950){var _0x2d0e41=a10_0x575b,_0x18127e=arguments[_0x2d0e41(0x92)],_0x238493=_0x18127e<0x3?_0x5170ae:_0xce950===null?_0xce950=Object[_0x2d0e41(0x88)](_0x5170ae,_0x1fce40):_0xce950,_0x4d0744;if(typeof Reflect===_0x2d0e41(0x9f)&&typeof Reflect[_0x2d0e41(0x93)]===_0x2d0e41(0xad))_0x238493=Reflect[_0x2d0e41(0x93)](_0x1cdc2b,_0x5170ae,_0x1fce40,_0xce950);else{for(var _0x2b3677=_0x1cdc2b[_0x2d0e41(0x92)]-0x1;_0x2b3677>=0x0;_0x2b3677--)if(_0x4d0744=_0x1cdc2b[_0x2b3677])_0x238493=(_0x18127e<0x3?_0x4d0744(_0x238493):_0x18127e>0x3?_0x4d0744(_0x5170ae,_0x1fce40,_0x238493):_0x4d0744(_0x5170ae,_0x1fce40))||_0x238493;}return _0x18127e>0x3&&_0x238493&&Object[_0x2d0e41(0x87)](_0x5170ae,_0x1fce40,_0x238493),_0x238493;},__metadata=this&&this['__metadata']||function(_0x47d4aa,_0x34e94e){var _0x5eee41=a10_0x575b;if(typeof Reflect===_0x5eee41(0x9f)&&typeof Reflect[_0x5eee41(0x7e)]===_0x5eee41(0xad))return Reflect[_0x5eee41(0x7e)](_0x47d4aa,_0x34e94e);};function a10_0x40dc(){var _0x57cd34=['push','length','decorate','signature','password','getcheck','Config','prototype','sort','entries','Scope','fromEntries','40WEuryV','1344875JtFROz','object','1240488MJabam','join','__esModule','TIMEOUT','MD5','timeout','devices','now','map','secret','toString','HEADERS_DEVICE','9MfyIYI','function','ApiError','1988120bvMttP','HEADERS_SIGNATURE','缺少头信息:','436152PdXmlZ','checkcode','undefined','metadata','toLowerCase','token','ApiService','crypto-js','getsign','config','42808mWlaya','缺少头信息:signature','defineProperty','getOwnPropertyDescriptor','logintime','device','HEADERS_CHECKCODE','secret=','183621NnHcqF','abs','checksign','187038OXNvse'];a10_0x40dc=function(){return _0x57cd34;};return a10_0x40dc();}function a10_0x575b(_0x615c1b,_0x2da722){var _0x40dcb9=a10_0x40dc();return a10_0x575b=function(_0x575b2c,_0x17d0b8){_0x575b2c=_0x575b2c-0x7c;var _0x3bd6ac=_0x40dcb9[_0x575b2c];return _0x3bd6ac;},a10_0x575b(_0x615c1b,_0x2da722);}Object['defineProperty'](exports,a10_0x57eee4(0xa2),{'value':!![]}),exports[a10_0x57eee4(0x81)]=void 0x0;const crypto_js_1=require(a10_0x57eee4(0x82)),core_1=require('@midwayjs/core'),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a10_0x57eee4(0x95)](_0x505b4c){var _0x559ae7=a10_0x57eee4,_0x2bb344;return _0x505b4c?(0x0,crypto_js_1['MD5'])(_0x505b4c+(0x0,crypto_js_1[_0x559ae7(0xa4)])((0x0,crypto_js_1[_0x559ae7(0xa4)])(_0x505b4c)[_0x559ae7(0xaa)]()+((_0x2bb344=this[_0x559ae7(0x84)])===null||_0x2bb344===void 0x0?void 0x0:_0x2bb344[_0x559ae7(0x95)]))[_0x559ae7(0xaa)]())[_0x559ae7(0xaa)]():'';}[a10_0x57eee4(0x96)](_0x31b4e6,_0x423336,_0x13a5a8=Date['now']()){return{'Token':_0x31b4e6,'Logintime':_0x13a5a8,'Checkcode':this['checkcode'](_0x31b4e6,_0x423336,_0x13a5a8)};}[a10_0x57eee4(0x83)](_0x5d1504={}){var _0x1fcbe0=a10_0x57eee4;const _0x379db1=[],_0x5a7bfa=Object['fromEntries'](Object[_0x1fcbe0(0x9a)](_0x5d1504)[_0x1fcbe0(0xa8)](_0x524146=>[_0x524146[0x0]['toLowerCase'](),_0x524146[0x1]]));for(let _0x559dcd of['device','requesttime',_0x1fcbe0(0x80),'logintime','checkcode']){if(typeof _0x5a7bfa[_0x559dcd]==_0x1fcbe0(0x7d))throw new AnnError(ApiError_1[_0x1fcbe0(0xae)]['HEADERS_LACK'],{'message':_0x1fcbe0(0xb1)+_0x559dcd});_0x379db1[_0x1fcbe0(0x91)](_0x559dcd+'='+_0x5a7bfa[_0x559dcd]);}if(Math[_0x1fcbe0(0x8e)](_0x5a7bfa['requesttime'])-Date[_0x1fcbe0(0xa7)]()>this[_0x1fcbe0(0x84)][_0x1fcbe0(0xa5)])throw new AnnError(ApiError_1[_0x1fcbe0(0xae)][_0x1fcbe0(0xa3)]);if(!this['config']['devices'][_0x5a7bfa[_0x1fcbe0(0x8a)]]||!this[_0x1fcbe0(0x84)]['devices'][_0x5a7bfa['device']][_0x1fcbe0(0xa9)]||!this['config'][_0x1fcbe0(0xa6)][_0x5a7bfa[_0x1fcbe0(0x8a)]][_0x1fcbe0(0x7c)])throw new AnnError(ApiError_1[_0x1fcbe0(0xae)][_0x1fcbe0(0xab)]);if(_0x5a7bfa[_0x1fcbe0(0x80)]&&_0x5a7bfa[_0x1fcbe0(0x7c)]!=this[_0x1fcbe0(0x7c)](_0x5a7bfa[_0x1fcbe0(0x80)],_0x5a7bfa['device'],_0x5a7bfa[_0x1fcbe0(0x89)]))throw new AnnError(ApiError_1[_0x1fcbe0(0xae)][_0x1fcbe0(0x8b)]);return _0x379db1['push'](_0x1fcbe0(0x8c)+this[_0x1fcbe0(0x84)][_0x1fcbe0(0xa6)][_0x5a7bfa[_0x1fcbe0(0x8a)]][_0x1fcbe0(0xa9)]),(0x0,crypto_js_1[_0x1fcbe0(0xa4)])(_0x379db1[_0x1fcbe0(0x99)]()[_0x1fcbe0(0xa1)](''))['toString']();}[a10_0x57eee4(0x7c)](_0x582d9a,_0x2510fc,_0x119679=Date[a10_0x57eee4(0xa7)]()){var _0x5454c0=a10_0x57eee4,_0x2d5e50,_0x3f461a,_0x3b7ffa;if(!((_0x2d5e50=this[_0x5454c0(0x84)])===null||_0x2d5e50===void 0x0?void 0x0:_0x2d5e50[_0x5454c0(0xa6)][_0x2510fc])||!((_0x3b7ffa=(_0x3f461a=this[_0x5454c0(0x84)])===null||_0x3f461a===void 0x0?void 0x0:_0x3f461a[_0x5454c0(0xa6)][_0x2510fc])===null||_0x3b7ffa===void 0x0?void 0x0:_0x3b7ffa[_0x5454c0(0x7c)]))throw new AnnError(ApiError_1[_0x5454c0(0xae)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x5454c0(0xa4)])(_0x582d9a+(0x0,crypto_js_1['MD5'])(_0x119679+this['config'][_0x5454c0(0xa6)][_0x2510fc][_0x5454c0(0x7c)])['toString']())[_0x5454c0(0xaa)]();}[a10_0x57eee4(0x8f)](_0x55adfd={}){var _0xeab7c4=a10_0x57eee4;const _0x4e763f=Object[_0xeab7c4(0x9c)](Object['entries'](_0x55adfd)[_0xeab7c4(0xa8)](_0x10f2bf=>[_0x10f2bf[0x0][_0xeab7c4(0x7f)](),_0x10f2bf[0x1]]));if(!(_0x4e763f===null||_0x4e763f===void 0x0?void 0x0:_0x4e763f[_0xeab7c4(0x94)]))throw new AnnError(ApiError_1[_0xeab7c4(0xae)]['HEADERS_LACK'],{'message':_0xeab7c4(0x86)});if((_0x4e763f===null||_0x4e763f===void 0x0?void 0x0:_0x4e763f[_0xeab7c4(0x94)])!=this[_0xeab7c4(0x83)](_0x4e763f))throw new AnnError(ApiError_1[_0xeab7c4(0xae)][_0xeab7c4(0xb0)]);return!![];}};__decorate([(0x0,core_1[a10_0x57eee4(0x97)])('anncicapi'),__metadata('design:type',Object)],ApiService[a10_0x57eee4(0x98)],'config',void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x57eee4(0x9b)])(core_1['ScopeEnum']['Singleton'])],ApiService),exports[a10_0x57eee4(0x81)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a11_0x3054cb=a11_0xff6d;function a11_0xff6d(_0x49eb43,_0x252f60){const _0x587696=a11_0x5876();return a11_0xff6d=function(_0xff6d55,_0x8c8177){_0xff6d55=_0xff6d55-0x174;let _0x5f57f2=_0x587696[_0xff6d55];return _0x5f57f2;},a11_0xff6d(_0x49eb43,_0x252f60);}function a11_0x5876(){const _0x29a964=['function','utf-8','/apitest','../../public/','module','defineProperty','ScopeEnum','apitesthtml','/index.html','628041iAkxNQ','.css','devices','MidwayEnvironmentService','content-type','Inject','method','replace','427206YIhVMq','apitestmodule','substring','set','anncicapi','23697MWYCRm','Singleton','getOwnPropertyDescriptor','Provide','Scope','prototype','apitest','filepath','stringify','extname','15995TzgqAU','length','ApitestStaticController','Get','object','routes','10GfYzgn','route','design:paramtypes','Controller','../../public/index.html','ctx','../helper/getRoutes','text/css;\x20charset=utf-8','config','/apiteststatic/','ApitestService','apidoc','__metadata','prefix','Environment','Request','design:type','metadata','1736nOrIUr','Config','/apitest-:module','__devices__','decorate','246769CoVGwK','2718075CYybDh','673057TRKNXN','url','request','apiteststatic','@midwayjs/core','/apiteststatic/*','readFileSync','1434VqFFVW','Param','design:returntype','join','public,\x20max-age=604800','4sbkspB','__param'];a11_0x5876=function(){return _0x29a964;};return a11_0x5876();}(function(_0x413286,_0x2fd2bb){const _0x4f9082=a11_0xff6d,_0x437647=_0x413286();while(!![]){try{const _0x5e94d0=parseInt(_0x4f9082(0x1aa))/0x1+-parseInt(_0x4f9082(0x17e))/0x2+parseInt(_0x4f9082(0x176))/0x3*(-parseInt(_0x4f9082(0x1b8))/0x4)+-parseInt(_0x4f9082(0x1ab))/0x5+-parseInt(_0x4f9082(0x1b3))/0x6*(-parseInt(_0x4f9082(0x18d))/0x7)+parseInt(_0x4f9082(0x1a5))/0x8*(parseInt(_0x4f9082(0x183))/0x9)+parseInt(_0x4f9082(0x193))/0xa*(parseInt(_0x4f9082(0x1ac))/0xb);if(_0x5e94d0===_0x2fd2bb)break;else _0x437647['push'](_0x437647['shift']());}catch(_0x5d9674){_0x437647['push'](_0x437647['shift']());}}}(a11_0x5876,0x70073));var __decorate=this&&this['__decorate']||function(_0x291793,_0x3338b8,_0x345722,_0x4ddfe9){const _0x330eac=a11_0xff6d;var _0x4e1f25=arguments[_0x330eac(0x18e)],_0x524280=_0x4e1f25<0x3?_0x3338b8:_0x4ddfe9===null?_0x4ddfe9=Object[_0x330eac(0x185)](_0x3338b8,_0x345722):_0x4ddfe9,_0x4171df;if(typeof Reflect===_0x330eac(0x191)&&typeof Reflect[_0x330eac(0x1a9)]==='function')_0x524280=Reflect[_0x330eac(0x1a9)](_0x291793,_0x3338b8,_0x345722,_0x4ddfe9);else{for(var _0x4c9487=_0x291793[_0x330eac(0x18e)]-0x1;_0x4c9487>=0x0;_0x4c9487--)if(_0x4171df=_0x291793[_0x4c9487])_0x524280=(_0x4e1f25<0x3?_0x4171df(_0x524280):_0x4e1f25>0x3?_0x4171df(_0x3338b8,_0x345722,_0x524280):_0x4171df(_0x3338b8,_0x345722))||_0x524280;}return _0x4e1f25>0x3&&_0x524280&&Object[_0x330eac(0x1bf)](_0x3338b8,_0x345722,_0x524280),_0x524280;},__metadata=this&&this[a11_0x3054cb(0x19f)]||function(_0x2089c0,_0x44cc3e){const _0x29f70e=a11_0x3054cb;if(typeof Reflect===_0x29f70e(0x191)&&typeof Reflect[_0x29f70e(0x1a4)]===_0x29f70e(0x1ba))return Reflect[_0x29f70e(0x1a4)](_0x2089c0,_0x44cc3e);},__param=this&&this[a11_0x3054cb(0x1b9)]||function(_0xe3d09b,_0x10fd84){return function(_0x17b4f6,_0x2b61b3){_0x10fd84(_0x17b4f6,_0x2b61b3,_0xe3d09b);};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11_0x3054cb(0x18f)]=exports['ApitestService']=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x3054cb(0x1b0)),core_2=require(a11_0x3054cb(0x1b0)),core_3=require(a11_0x3054cb(0x1b0)),getRoutes_1=require(a11_0x3054cb(0x199));let ApitestService=class ApitestService{async[a11_0x3054cb(0x19e)](_0x1d89b9){const _0x1e7528=a11_0x3054cb,_0x2d519e=(0x0,getRoutes_1['getRoutes'])(_0x1d89b9),_0x30f350=[];for(let _0x1c8104 in _0x2d519e){for(let _0x398d75 in _0x2d519e[_0x1c8104][_0x1e7528(0x192)]){let _0x35f88e=_0x2d519e[_0x1c8104][_0x1e7528(0x192)][_0x398d75],_0x2e0504=[];for(let _0x9efebb in _0x35f88e[_0x1e7528(0x1ae)]){_0x2e0504['push'](_0x35f88e[_0x1e7528(0x1ae)][_0x9efebb]);}_0x30f350['push']({'title':_0x2d519e[_0x1c8104]['summary']+':'+_0x35f88e['summary'],'prefix':_0x2d519e[_0x1c8104][_0x1e7528(0x1a0)],'router':_0x35f88e[_0x1e7528(0x194)],'method':_0x35f88e[_0x1e7528(0x17c)],'describe':_0x35f88e['description']||'','filepath':_0x2d519e[_0x1c8104][_0x1e7528(0x18a)]||'','request':_0x2e0504});}}const _0x5aec51=(0x0,path_1[_0x1e7528(0x1b6)])(__dirname,_0x1e7528(0x197));return(0x0,fs_1[_0x1e7528(0x1b2)])(_0x5aec51,{'encoding':_0x1e7528(0x1bb)})[_0x1e7528(0x17d)](/__res__/g,_0x1e7528(0x19c))['replace']('__apiList__',JSON[_0x1e7528(0x18b)](_0x30f350))['replace'](_0x1e7528(0x1a8),JSON[_0x1e7528(0x18b)](this[_0x1e7528(0x19b)][_0x1e7528(0x178)]));}};__decorate([(0x0,core_3['Config'])(a11_0x3054cb(0x182)),__metadata(a11_0x3054cb(0x1a3),Object)],ApitestService[a11_0x3054cb(0x188)],a11_0x3054cb(0x19b),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x3054cb(0x186)])(a11_0x3054cb(0x189)),(0x0,core_3[a11_0x3054cb(0x187)])(core_3[a11_0x3054cb(0x1c0)][a11_0x3054cb(0x184)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x3054cb(0x174)](){const _0x430964=a11_0x3054cb;if(this['apitest']){const _0x2494d7={'module':![]};return this[_0x430964(0x1a1)]['isDevelopmentEnvironment']()&&(_0x2494d7[_0x430964(0x18a)]=!![]),await this['ApitestService'][_0x430964(0x19e)](_0x2494d7);}return'';}async[a11_0x3054cb(0x17f)](_0x22ee4c){const _0x74088c=a11_0x3054cb;if(this[_0x74088c(0x189)]){const _0x2c1c06={'module':_0x22ee4c};return this[_0x74088c(0x1a1)]['isDevelopmentEnvironment']()&&(_0x2c1c06[_0x74088c(0x18a)]=!![]),await this[_0x74088c(0x19d)][_0x74088c(0x19e)](_0x2c1c06);}return'';}async[a11_0x3054cb(0x1af)](){const _0x23f91d=a11_0x3054cb;if((0x0,path_1[_0x23f91d(0x18c)])(this[_0x23f91d(0x198)][_0x23f91d(0x1ae)]['url'])){var _0x61548d=(0x0,path_1[_0x23f91d(0x1b6)])(__dirname,_0x23f91d(0x1bd)+this[_0x23f91d(0x198)]['request'][_0x23f91d(0x1ad)][_0x23f91d(0x17d)]('/apiteststatic/','/'));if(_0x61548d[_0x23f91d(0x180)](_0x61548d[_0x23f91d(0x18e)]-0xb)!=_0x23f91d(0x175)){this[_0x23f91d(0x198)][_0x23f91d(0x181)]('cache-control',_0x23f91d(0x1b7));if((0x0,path_1[_0x23f91d(0x18c)])(this[_0x23f91d(0x198)]['request'][_0x23f91d(0x1ad)])=='.js')this[_0x23f91d(0x198)][_0x23f91d(0x181)]('content-type','application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x23f91d(0x18c)])(this[_0x23f91d(0x198)]['request']['url'])==_0x23f91d(0x177)&&this[_0x23f91d(0x198)][_0x23f91d(0x181)](_0x23f91d(0x17a),_0x23f91d(0x19a));return(0x0,fs_1['existsSync'])(_0x61548d)&&(0x0,fs_1[_0x23f91d(0x1b2)])(_0x61548d,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a11_0x3054cb(0x17b)])(),__metadata(a11_0x3054cb(0x1a3),Object)],ApitestStaticController[a11_0x3054cb(0x188)],a11_0x3054cb(0x198),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x3054cb(0x1a3),core_1[a11_0x3054cb(0x179)])],ApitestStaticController['prototype'],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x3054cb(0x17b)])(),__metadata(a11_0x3054cb(0x1a3),ApitestService)],ApitestStaticController[a11_0x3054cb(0x188)],a11_0x3054cb(0x19d),void 0x0),__decorate([(0x0,core_3[a11_0x3054cb(0x1a6)])(a11_0x3054cb(0x189)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x3054cb(0x188)],a11_0x3054cb(0x189),void 0x0),__decorate([(0x0,core_3[a11_0x3054cb(0x1a6)])(a11_0x3054cb(0x182)),__metadata(a11_0x3054cb(0x1a3),Object)],ApitestStaticController[a11_0x3054cb(0x188)],a11_0x3054cb(0x19b),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x3054cb(0x1bc)),__metadata('design:type',Function),__metadata(a11_0x3054cb(0x195),[]),__metadata(a11_0x3054cb(0x1b5),Promise)],ApitestStaticController[a11_0x3054cb(0x188)],a11_0x3054cb(0x174),null),__decorate([(0x0,core_2[a11_0x3054cb(0x190)])(a11_0x3054cb(0x1a7)),__param(0x0,(0x0,core_2[a11_0x3054cb(0x1b4)])(a11_0x3054cb(0x1be))),__metadata(a11_0x3054cb(0x1a3),Function),__metadata('design:paramtypes',[String]),__metadata(a11_0x3054cb(0x1b5),Promise)],ApitestStaticController[a11_0x3054cb(0x188)],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x3054cb(0x190)])(a11_0x3054cb(0x1b1)),__metadata(a11_0x3054cb(0x1a3),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x3054cb(0x1b5),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x3054cb(0x196)])('/'),(0x0,core_3['Scope'])(core_3[a11_0x3054cb(0x1c0)][a11_0x3054cb(0x1a2)])],ApitestStaticController),exports[a11_0x3054cb(0x18f)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x139e88=a12_0x2dc2;(function(_0x177a96,_0x5ad962){const _0x1dfdba=a12_0x2dc2,_0x101035=_0x177a96();while(!![]){try{const _0x56f347=parseInt(_0x1dfdba(0x18a))/0x1+-parseInt(_0x1dfdba(0x178))/0x2+parseInt(_0x1dfdba(0x17a))/0x3+parseInt(_0x1dfdba(0x191))/0x4*(-parseInt(_0x1dfdba(0x171))/0x5)+-parseInt(_0x1dfdba(0x16b))/0x6+parseInt(_0x1dfdba(0x18f))/0x7+-parseInt(_0x1dfdba(0x174))/0x8*(-parseInt(_0x1dfdba(0x1a1))/0x9);if(_0x56f347===_0x5ad962)break;else _0x101035['push'](_0x101035['shift']());}catch(_0x4dacf5){_0x101035['push'](_0x101035['shift']());}}}(a12_0x179b,0x1d0b7));var __decorate=this&&this[a12_0x139e88(0x19c)]||function(_0x10c5ad,_0x38b777,_0xc3af4b,_0x5d56f4){const _0x5e89e8=a12_0x139e88;var _0x3143a3=arguments[_0x5e89e8(0x190)],_0xe76040=_0x3143a3<0x3?_0x38b777:_0x5d56f4===null?_0x5d56f4=Object[_0x5e89e8(0x17f)](_0x38b777,_0xc3af4b):_0x5d56f4,_0x430f4f;if(typeof Reflect==='object'&&typeof Reflect[_0x5e89e8(0x187)]===_0x5e89e8(0x1a3))_0xe76040=Reflect[_0x5e89e8(0x187)](_0x10c5ad,_0x38b777,_0xc3af4b,_0x5d56f4);else{for(var _0x2f8a7d=_0x10c5ad[_0x5e89e8(0x190)]-0x1;_0x2f8a7d>=0x0;_0x2f8a7d--)if(_0x430f4f=_0x10c5ad[_0x2f8a7d])_0xe76040=(_0x3143a3<0x3?_0x430f4f(_0xe76040):_0x3143a3>0x3?_0x430f4f(_0x38b777,_0xc3af4b,_0xe76040):_0x430f4f(_0x38b777,_0xc3af4b))||_0xe76040;}return _0x3143a3>0x3&&_0xe76040&&Object[_0x5e89e8(0x1a0)](_0x38b777,_0xc3af4b,_0xe76040),_0xe76040;},__metadata=this&&this[a12_0x139e88(0x17e)]||function(_0x412c0,_0x14a2ec){const _0x394b86=a12_0x139e88;if(typeof Reflect===_0x394b86(0x19b)&&typeof Reflect[_0x394b86(0x17c)]===_0x394b86(0x1a3))return Reflect[_0x394b86(0x17c)](_0x412c0,_0x14a2ec);};Object['defineProperty'](exports,a12_0x139e88(0x169),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x139e88(0x173)),koasend=require('koa-send'),core_1=require('@midwayjs/core');function a12_0x179b(){const _0x5435b0=['length','148QveuDN','cellCount','App','toString','ScopeEnum','worksheets','writeFile','getWorksheet','getAppDir','key','object','__decorate','col','download','push','defineProperty','913941SrlaKm','endsWith','function','header','__esModule','getRow','163632lAYVJV','keys','random','Provide','Scope','startsWith','17690UqJReH','.xlsx','exceljs','24ghJjlW','substring','replace','Singleton','179384cOhWdj','Workbook','125178rfNusN','rowCount','metadata','Sheet\x201','__metadata','getOwnPropertyDescriptor','columns','eachCell','handler','findRows','xlsx','addWorksheet','getCell','decorate','mkdirSync','addRow','15265qiAEqF','app','parse','export','\x20is\x20read\x20fail','36393RhVgBJ'];a12_0x179b=function(){return _0x5435b0;};return a12_0x179b();}function a12_0x2dc2(_0x3562b2,_0x45cb6a){const _0x179bda=a12_0x179b();return a12_0x2dc2=function(_0x2dc251,_0x20a0be){_0x2dc251=_0x2dc251-0x169;let _0x447c48=_0x179bda[_0x2dc251];return _0x447c48;},a12_0x2dc2(_0x3562b2,_0x45cb6a);}let ExcelService=class ExcelService{async[a12_0x139e88(0x18c)](_0x33ac61,_0x275f7a,_0x121a87=[0x0]){const _0x3f43e9=a12_0x139e88;var _0x2d6a5c,_0x259159;const _0x2c37f0=new exceljs[(_0x3f43e9(0x179))](),_0x33b4c9=[];let _0x2b6979=_0x33ac61['replace'](/(\\|\/)/g,'/')[_0x3f43e9(0x176)](/\/{2,}/g,'/');!(_0x2b6979===null||_0x2b6979===void 0x0?void 0x0:_0x2b6979[_0x3f43e9(0x170)]('/'))&&(_0x2b6979=this[_0x3f43e9(0x18b)]['getAppDir']()+'/'+_0x2b6979);try{await _0x2c37f0['xlsx']['readFile'](_0x2b6979);}catch(_0x4e8cb9){return console['log']('Api\x20Excel\x20Error:\x20'+_0x2b6979+_0x3f43e9(0x18e)),_0x33b4c9;}for(const _0xb9e63 of _0x121a87){const _0x34e202=lodash['isNumber'](_0xb9e63)?((_0x2d6a5c=_0x2c37f0[_0x3f43e9(0x196)])===null||_0x2d6a5c===void 0x0?void 0x0:_0x2d6a5c[_0xb9e63])||undefined:_0x2c37f0[_0x3f43e9(0x198)](_0xb9e63);if(_0x34e202){var _0x51818a=0x1;const _0x3b4141=_0x34e202[_0x3f43e9(0x16a)](0x1),_0xb00583=await new Promise(_0x57aaa8=>{const _0x568b1c=_0x3f43e9,_0xf5acff={};_0x3b4141[_0x568b1c(0x181)]((_0x33fdfb,_0x25ee88)=>{const _0x3a9fb5=_0x568b1c;for(const _0x1f4392 of _0x275f7a){if(_0x33fdfb['value']==_0x1f4392['header'])_0x51818a=0x2,_0xf5acff[_0x1f4392['key']]={'header':_0x33fdfb[_0x3a9fb5(0x19d)],'handler':_0x1f4392['handler']};else{if(!_0xf5acff[_0x1f4392['key']])try{const _0x239792=_0x3b4141[_0x3a9fb5(0x186)](_0x1f4392[_0x3a9fb5(0x1a4)]);_0x239792&&(_0xf5acff[_0x1f4392[_0x3a9fb5(0x19a)]]={'header':_0x239792[_0x3a9fb5(0x19d)],'handler':_0x1f4392[_0x3a9fb5(0x182)]});}catch{}}}_0x3b4141[_0x3a9fb5(0x192)]==_0x25ee88&&_0x57aaa8(_0xf5acff);});});for(const _0x102330 of _0x34e202[_0x3f43e9(0x183)](_0x51818a,_0x34e202[_0x3f43e9(0x17b)])){const _0xfa97b3={};for(const _0x34f938 in _0xb00583){if(_0xb00583[_0x34f938][_0x3f43e9(0x1a4)]){const _0xbbea52=_0x102330['getCell'](_0xb00583[_0x34f938][_0x3f43e9(0x1a4)]);typeof((_0x259159=_0xb00583[_0x34f938])===null||_0x259159===void 0x0?void 0x0:_0x259159[_0x3f43e9(0x182)])==_0x3f43e9(0x1a3)?_0xfa97b3[_0x34f938]=await _0xb00583[_0x34f938][_0x3f43e9(0x182)]((_0xbbea52===null||_0xbbea52===void 0x0?void 0x0:_0xbbea52[_0x3f43e9(0x194)]())||'',_0xbbea52['model']):_0xfa97b3[_0x34f938]=(_0xbbea52===null||_0xbbea52===void 0x0?void 0x0:_0xbbea52[_0x3f43e9(0x194)]())||'';}}Object[_0x3f43e9(0x16c)](_0xfa97b3)['length']>0x0&&_0x33b4c9[_0x3f43e9(0x19f)](_0xfa97b3);}}}return _0x33b4c9;}async[a12_0x139e88(0x18d)](_0x4d3258,_0x459e73,_0x591b3e,_0x243c35='public/xlsx'){const _0x74392a=a12_0x139e88;var _0x51dd2e,_0x3cc770;const _0x1d0601=new exceljs['Workbook'](),_0x2a6b94={},_0x11a831=[],_0x2ef6a8=_0x1d0601[_0x74392a(0x185)](_0x74392a(0x17d),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x18f166 in _0x459e73){_0x2a6b94[_0x459e73[_0x18f166]['key']]=_0x459e73[_0x18f166][_0x74392a(0x1a4)],_0x11a831[_0x74392a(0x19f)]({'header':_0x459e73[_0x18f166][_0x74392a(0x1a4)],'key':(_0x51dd2e=_0x459e73[_0x18f166])===null||_0x51dd2e===void 0x0?void 0x0:_0x51dd2e[_0x74392a(0x19a)][_0x74392a(0x176)](/\./g,'_')});}_0x2ef6a8[_0x74392a(0x180)]=_0x11a831;for(const _0xac69ec of _0x591b3e){const _0x26e73d={};for(const _0x3365c6 in _0x459e73){typeof((_0x3cc770=_0x459e73[_0x3365c6])===null||_0x3cc770===void 0x0?void 0x0:_0x3cc770['handler'])=='function'?_0x26e73d[_0x459e73[_0x3365c6][_0x74392a(0x19a)][_0x74392a(0x176)](/\./g,'_')]=await _0x459e73[_0x3365c6][_0x74392a(0x182)](_0xac69ec):_0x26e73d[_0x459e73[_0x3365c6][_0x74392a(0x19a)][_0x74392a(0x176)](/\./g,'_')]=lodash['get'](_0xac69ec,_0x459e73[_0x3365c6][_0x74392a(0x19a)],'');}_0x2ef6a8[_0x74392a(0x189)](_0x26e73d);}let _0x25e90b='';const _0x5aa1b1=_0x4d3258+'-'+lodash[_0x74392a(0x16d)](0x2710,0x1869f)+_0x74392a(0x172);if(_0x243c35&&_0x243c35[_0x74392a(0x170)]('/'))_0x25e90b=''+_0x243c35;else _0x243c35&&!_0x243c35[_0x74392a(0x170)]('/')&&!_0x243c35[_0x74392a(0x170)]('\x5c')?_0x25e90b=this[_0x74392a(0x18b)][_0x74392a(0x199)]()+'/'+_0x243c35:_0x25e90b=this['app'][_0x74392a(0x199)]()+'/public/xlsx';return(_0x25e90b[_0x74392a(0x1a2)]('/')||_0x25e90b['endsWith']('\x5c'))&&(_0x25e90b=_0x25e90b[_0x74392a(0x175)](0x0,_0x25e90b[_0x74392a(0x190)]-0x1)),_0x25e90b=_0x25e90b[_0x74392a(0x176)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x25e90b)&&fs[_0x74392a(0x188)](_0x25e90b,{'recursive':!![]}),await _0x1d0601[_0x74392a(0x184)][_0x74392a(0x197)]((_0x25e90b+'/'+_0x5aa1b1)[_0x74392a(0x176)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x5aa1b1,'filepath':(_0x25e90b['substring']((''+this[_0x74392a(0x18b)][_0x74392a(0x199)]())[_0x74392a(0x190)])+'/'+_0x5aa1b1)[_0x74392a(0x176)](/(\\|\/)/g,'/')[_0x74392a(0x176)](/\/{2,}/g,'/')};}async[a12_0x139e88(0x19e)](_0x5a1ce4,_0x4f924b){return await koasend(_0x5a1ce4,''+_0x4f924b);}};__decorate([(0x0,core_1[a12_0x139e88(0x193)])(),__metadata('design:type',Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x139e88(0x16e)])(),(0x0,core_1[a12_0x139e88(0x16f)])(core_1[a12_0x139e88(0x195)][a12_0x139e88(0x177)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x5d5f05=a13_0x4dc1;(function(_0x577cee,_0x2ea7c0){var _0x4f9b08=a13_0x4dc1,_0x3ec493=_0x577cee();while(!![]){try{var _0x3ff5d0=-parseInt(_0x4f9b08(0x1c1))/0x1+-parseInt(_0x4f9b08(0x1c6))/0x2+-parseInt(_0x4f9b08(0x1bd))/0x3+parseInt(_0x4f9b08(0x1cb))/0x4*(parseInt(_0x4f9b08(0x1c8))/0x5)+-parseInt(_0x4f9b08(0x1c9))/0x6*(parseInt(_0x4f9b08(0x1bc))/0x7)+-parseInt(_0x4f9b08(0x1c3))/0x8+parseInt(_0x4f9b08(0x1c7))/0x9;if(_0x3ff5d0===_0x2ea7c0)break;else _0x3ec493['push'](_0x3ec493['shift']());}catch(_0x3f9d4d){_0x3ec493['push'](_0x3ec493['shift']());}}}(a13_0x4e66,0x51f7e));function a13_0x4dc1(_0x519784,_0x7e8790){var _0x4e6642=a13_0x4e66();return a13_0x4dc1=function(_0x4dc130,_0x4751ea){_0x4dc130=_0x4dc130-0x1bb;var _0x189aad=_0x4e6642[_0x4dc130];return _0x189aad;},a13_0x4dc1(_0x519784,_0x7e8790);}Object[a13_0x5d5f05(0x1c5)](exports,a13_0x5d5f05(0x1c4),{'value':!![]}),exports[a13_0x5d5f05(0x1c2)]=exports[a13_0x5d5f05(0x1bb)]=exports[a13_0x5d5f05(0x1bf)]=exports[a13_0x5d5f05(0x1be)]=void 0x0,exports[a13_0x5d5f05(0x1be)]=a13_0x5d5f05(0x1ca),exports[a13_0x5d5f05(0x1bf)]='anncic-api:action:route',exports[a13_0x5d5f05(0x1bb)]=a13_0x5d5f05(0x1c0);function a13_0x4e66(){var _0xec28f2=['303966HaBYoB','AppsConfigTmp','2319048XHRPPd','__esModule','defineProperty','274388SfHKnf','9794988XmIJzP','2005zEmVIC','164292BrMpgv','anncic-api:action','6292FPtlsF','APPSCONFIG_KEY','147CwdeTI','231900wVQauP','ACTION_KEY','ACTION_ROUTE_KEY','anncic-api:apps:config'];a13_0x4e66=function(){return _0xec28f2;};return a13_0x4e66();}class AppsConfigTmp{}exports[a13_0x5d5f05(0x1c2)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a14_0x2859af=a14_0x5d75;(function(_0x3acb5a,_0x161ace){var _0x1b6770=a14_0x5d75,_0x2c4739=_0x3acb5a();while(!![]){try{var _0x27e5c9=parseInt(_0x1b6770(0xb1))/0x1*(parseInt(_0x1b6770(0xaf))/0x2)+-parseInt(_0x1b6770(0xb5))/0x3+-parseInt(_0x1b6770(0xc1))/0x4+parseInt(_0x1b6770(0xaa))/0x5+parseInt(_0x1b6770(0xbe))/0x6*(parseInt(_0x1b6770(0xa5))/0x7)+-parseInt(_0x1b6770(0xb6))/0x8+-parseInt(_0x1b6770(0xa6))/0x9;if(_0x27e5c9===_0x161ace)break;else _0x2c4739['push'](_0x2c4739['shift']());}catch(_0x1ea616){_0x2c4739['push'](_0x2c4739['shift']());}}}(a14_0x2afb,0x1e717));var __decorate=this&&this[a14_0x2859af(0xbb)]||function(_0x13c449,_0x471c70,_0x8ce744,_0x1aee46){var _0xa08751=a14_0x2859af,_0x16ec14=arguments[_0xa08751(0xbf)],_0x5a603f=_0x16ec14<0x3?_0x471c70:_0x1aee46===null?_0x1aee46=Object[_0xa08751(0xad)](_0x471c70,_0x8ce744):_0x1aee46,_0x52b937;if(typeof Reflect===_0xa08751(0xb2)&&typeof Reflect[_0xa08751(0xa7)]===_0xa08751(0xc5))_0x5a603f=Reflect[_0xa08751(0xa7)](_0x13c449,_0x471c70,_0x8ce744,_0x1aee46);else{for(var _0x4fbd66=_0x13c449[_0xa08751(0xbf)]-0x1;_0x4fbd66>=0x0;_0x4fbd66--)if(_0x52b937=_0x13c449[_0x4fbd66])_0x5a603f=(_0x16ec14<0x3?_0x52b937(_0x5a603f):_0x16ec14>0x3?_0x52b937(_0x471c70,_0x8ce744,_0x5a603f):_0x52b937(_0x471c70,_0x8ce744))||_0x5a603f;}return _0x16ec14>0x3&&_0x5a603f&&Object[_0xa08751(0xb3)](_0x471c70,_0x8ce744,_0x5a603f),_0x5a603f;},__metadata=this&&this['__metadata']||function(_0x3d45f5,_0x2871c4){var _0x382e12=a14_0x2859af;if(typeof Reflect===_0x382e12(0xb2)&&typeof Reflect[_0x382e12(0xa9)]==='function')return Reflect[_0x382e12(0xa9)](_0x3d45f5,_0x2871c4);};Object[a14_0x2859af(0xb3)](exports,a14_0x2859af(0xb9),{'value':!![]}),exports[a14_0x2859af(0xb8)]=void 0x0;const validator_1=require(a14_0x2859af(0xc4));function a14_0x2afb(){var _0x25488c=['metadata','1145765txKwug','integer','排序方式','getOwnPropertyDescriptor','min','4BSexBt','RuleType','89689spFvbs','object','defineProperty','prototype','506244ZyZYyO','55624BgyrlE','1:是;0:否','PageDTO','__esModule','trim','__decorate','_isreverse','_order','1338jSaoMI','length','Rule','15496NGRJdk','design:type','是否倒序','@anncic-api/validator','function','第一页为1,第二页为2','_page','string','分页数量','14ccGEnX','942363RUQWps','decorate','_size'];a14_0x2afb=function(){return _0x25488c;};return a14_0x2afb();}class PageDTO{}function a14_0x5d75(_0x2573ae,_0x111392){var _0x2afb3e=a14_0x2afb();return a14_0x5d75=function(_0x5d7514,_0x111ea4){_0x5d7514=_0x5d7514-0xa5;var _0x2a1540=_0x2afb3e[_0x5d7514];return _0x2a1540;},a14_0x5d75(_0x2573ae,_0x111392);}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a14_0x2859af(0xb0)]['number']()[a14_0x2859af(0xab)]()[a14_0x2859af(0xae)](0x1),a14_0x2859af(0xc6)),__metadata(a14_0x2859af(0xc2),Number)],PageDTO[a14_0x2859af(0xb4)],a14_0x2859af(0xc7),void 0x0),__decorate([(0x0,validator_1[a14_0x2859af(0xc0)])(a14_0x2859af(0xc9),validator_1[a14_0x2859af(0xb0)]['number']()[a14_0x2859af(0xab)]()[a14_0x2859af(0xae)](0x1)),__metadata(a14_0x2859af(0xc2),Number)],PageDTO[a14_0x2859af(0xb4)],a14_0x2859af(0xa8),void 0x0),__decorate([(0x0,validator_1[a14_0x2859af(0xc0)])(a14_0x2859af(0xac),validator_1['RuleType'][a14_0x2859af(0xc8)]()[a14_0x2859af(0xba)]()),__metadata('design:type',String)],PageDTO[a14_0x2859af(0xb4)],a14_0x2859af(0xbd),void 0x0),__decorate([(0x0,validator_1[a14_0x2859af(0xc0)])(a14_0x2859af(0xc3),validator_1[a14_0x2859af(0xb0)]['number']()[a14_0x2859af(0xab)]()['valid'](0x0,0x1),a14_0x2859af(0xb7)),__metadata(a14_0x2859af(0xc2),Number)],PageDTO['prototype'],a14_0x2859af(0xbc),void 0x0),exports[a14_0x2859af(0xb8)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
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.
|
|
21
|
-
"@anncic-api/core": "^1.
|
|
22
|
-
"@anncic-api/event": "^1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.
|
|
24
|
-
"@anncic-api/validator": "^1.
|
|
20
|
+
"@anncic-api/cache": "^1.4.1",
|
|
21
|
+
"@anncic-api/core": "^1.4.1",
|
|
22
|
+
"@anncic-api/event": "^1.4.1",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.1",
|
|
24
|
+
"@anncic-api/validator": "^1.4.1",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.
|
|
30
|
+
"anncic-apihelper": "^1.4.1",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8e13622dd8e4e8378c03ed4e72c8417e86fd6c6f"
|
|
43
43
|
}
|