anncic-api 1.1.40 → 1.1.42
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/index.d.ts +0 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x2e60ff=a0_0x5d17;(function(_0x52082e,_0x4762aa){var _0x57978e=a0_0x5d17,_0x578a1f=_0x52082e();while(!![]){try{var _0x32d80b=-parseInt(_0x57978e(0xfa))/0x1+parseInt(_0x57978e(0x10c))/0x2*(parseInt(_0x57978e(0x100))/0x3)+parseInt(_0x57978e(0x109))/0x4*(-parseInt(_0x57978e(0x10a))/0x5)+-parseInt(_0x57978e(0x103))/0x6*(-parseInt(_0x57978e(0x10b))/0x7)+parseInt(_0x57978e(0x107))/0x8+-parseInt(_0x57978e(0xfc))/0x9*(-parseInt(_0x57978e(0xff))/0xa)+parseInt(_0x57978e(0xfb))/0xb;if(_0x32d80b===_0x4762aa)break;else _0x578a1f['push'](_0x578a1f['shift']());}catch(_0x3a3f01){_0x578a1f['push'](_0x578a1f['shift']());}}}(a0_0x26de,0xd653e));function a0_0x5d17(_0x2dc7aa,_0x3944a0){var _0x26de2f=a0_0x26de();return a0_0x5d17=function(_0x5d1755,_0x1de767){_0x5d1755=_0x5d1755-0xf9;var _0xa87734=_0x26de2f[_0x5d1755];return _0xa87734;},a0_0x5d17(_0x2dc7aa,_0x3944a0);}Object[a0_0x2e60ff(0x101)](exports,a0_0x2e60ff(0x106),{'value':!![]}),exports[a0_0x2e60ff(0x10d)]=_0x1418bb=>{var _0x16f646=a0_0x2e60ff;return{'apitest':!![],'keys':_0x1418bb[_0x16f646(0xf9)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x16f646(0x104),'checkcode':_0x16f646(0x104)}}},'bodyParser':{'enableTypes':['json',_0x16f646(0x108),'text',_0x16f646(0x105)],'formLimit':_0x16f646(0xfe),'jsonLimit':_0x16f646(0xfe),'textLimit':_0x16f646(0xfe),'xmlLimit':_0x16f646(0xfe)},'upload':{'tmpdir':_0x1418bb[_0x16f646(0xfd)]+_0x16f646(0x102),'cleanTimeout':0x5265c00}};};function a0_0x26de(){var _0x48b863=['367958rYiiOp','default','name','1509597sTLPyI','7623550yoagEW','66753TqXTcx','appDir','20mb','340wymidy','6YBZVAN','defineProperty','/runtime/.upload','39786rIdyBm','dhauo1234420123gg3234901','xml','__esModule','6185640AFVNhD','form','19464nPEcSD','1285gQCkSm','1638RSaBcd'];a0_0x26de=function(){return _0x48b863;};return a0_0x26de();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x46bf(){var _0x3884f9=['764286AeiDwS','955tjKMdW','43886MDkTat','defineProperty','2130561cwGtKy','15762KmhoEz','21pxyuCK','50TwaLTG','7150232VdchZc','1749776kJpduV','3611706SyJUGO','__esModule','default'];a1_0x46bf=function(){return _0x3884f9;};return a1_0x46bf();}var a1_0x41b9a5=a1_0x3e7f;(function(_0xe985d1,_0x5babe8){var _0x4bfb54=a1_0x3e7f,_0x3f1347=_0xe985d1();while(!![]){try{var _0x5da640=parseInt(_0x4bfb54(0xac))/0x1*(parseInt(_0x4bfb54(0xa8))/0x2)+parseInt(_0x4bfb54(0xa6))/0x3+-parseInt(_0x4bfb54(0xa2))/0x4+-parseInt(_0x4bfb54(0xa7))/0x5*(parseInt(_0x4bfb54(0xab))/0x6)+parseInt(_0x4bfb54(0xa3))/0x7+-parseInt(_0x4bfb54(0xae))/0x8+parseInt(_0x4bfb54(0xaa))/0x9*(parseInt(_0x4bfb54(0xad))/0xa);if(_0x5da640===_0x5babe8)break;else _0x3f1347['push'](_0x3f1347['shift']());}catch(_0x2ee0fe){_0x3f1347['push'](_0x3f1347['shift']());}}}(a1_0x46bf,0x8e22c));function a1_0x3e7f(_0x48b350,_0x3830f6){var _0x46bf58=a1_0x46bf();return a1_0x3e7f=function(_0x3e7fce,_0x1e9559){_0x3e7fce=_0x3e7fce-0xa2;var _0x276c0b=_0x46bf58[_0x3e7fce];return _0x276c0b;},a1_0x3e7f(_0x48b350,_0x3830f6);}Object[a1_0x41b9a5(0xa9)](exports,a1_0x41b9a5(0xa4),{'value':!![]}),exports[a1_0x41b9a5(0xa5)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x536c(_0x155ccd,_0xa2bc8f){const _0x99be22=a2_0x99be();return a2_0x536c=function(_0x536c95,_0x8d7f26){_0x536c95=_0x536c95-0x90;let _0x30988c=_0x99be22[_0x536c95];return _0x30988c;},a2_0x536c(_0x155ccd,_0xa2bc8f);}const a2_0xdc800a=a2_0x536c;(function(_0x590b9d,_0xeabf67){const _0x4b8aad=a2_0x536c,_0x111151=_0x590b9d();while(!![]){try{const _0x36ce69=-parseInt(_0x4b8aad(0xae))/0x1+parseInt(_0x4b8aad(0xb3))/0x2*(-parseInt(_0x4b8aad(0xb1))/0x3)+parseInt(_0x4b8aad(0xa8))/0x4*(-parseInt(_0x4b8aad(0xc5))/0x5)+parseInt(_0x4b8aad(0xf7))/0x6*(-parseInt(_0x4b8aad(0xe2))/0x7)+-parseInt(_0x4b8aad(0xa9))/0x8+parseInt(_0x4b8aad(0x99))/0x9+parseInt(_0x4b8aad(0xca))/0xa*(parseInt(_0x4b8aad(0xe9))/0xb);if(_0x36ce69===_0xeabf67)break;else _0x111151['push'](_0x111151['shift']());}catch(_0x3dc340){_0x111151['push'](_0x111151['shift']());}}}(a2_0x99be,0x374ad));var __decorate=this&&this[a2_0xdc800a(0xc6)]||function(_0xe7bfa9,_0xaecdbb,_0x2c45dd,_0x20f354){const _0x32f986=a2_0xdc800a;var _0x464f9d=arguments[_0x32f986(0xac)],_0x351155=_0x464f9d<0x3?_0xaecdbb:_0x20f354===null?_0x20f354=Object[_0x32f986(0xcb)](_0xaecdbb,_0x2c45dd):_0x20f354,_0xb9d574;if(typeof Reflect===_0x32f986(0xf1)&&typeof Reflect[_0x32f986(0xdc)]===_0x32f986(0xd1))_0x351155=Reflect[_0x32f986(0xdc)](_0xe7bfa9,_0xaecdbb,_0x2c45dd,_0x20f354);else{for(var _0x56cf12=_0xe7bfa9['length']-0x1;_0x56cf12>=0x0;_0x56cf12--)if(_0xb9d574=_0xe7bfa9[_0x56cf12])_0x351155=(_0x464f9d<0x3?_0xb9d574(_0x351155):_0x464f9d>0x3?_0xb9d574(_0xaecdbb,_0x2c45dd,_0x351155):_0xb9d574(_0xaecdbb,_0x2c45dd))||_0x351155;}return _0x464f9d>0x3&&_0x351155&&Object[_0x32f986(0xa0)](_0xaecdbb,_0x2c45dd,_0x351155),_0x351155;},__metadata=this&&this[a2_0xdc800a(0x93)]||function(_0x36d490,_0x5b380a){const _0xac4f38=a2_0xdc800a;if(typeof Reflect===_0xac4f38(0xf1)&&typeof Reflect[_0xac4f38(0x92)]===_0xac4f38(0xd1))return Reflect[_0xac4f38(0x92)](_0x36d490,_0x5b380a);};Object[a2_0xdc800a(0xa0)](exports,a2_0xdc800a(0xeb),{'value':!![]}),exports[a2_0xdc800a(0x91)]=void 0x0;const decorator_1=require(a2_0xdc800a(0xd0)),core_1=require(a2_0xdc800a(0xe8)),ApiError_1=require(a2_0xdc800a(0xb0)),ApiService_1=require(a2_0xdc800a(0xc7)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0xdc800a(0xd5)),i18n=require(a2_0xdc800a(0xe3)),task=require(a2_0xdc800a(0x95)),upload=require(a2_0xdc800a(0xf6)),staticFile=require(a2_0xdc800a(0xbc)),crossDomain=require(a2_0xdc800a(0xc8)),ConfigDefault=require(a2_0xdc800a(0xe4)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0xdc800a(0xc1)),anncicCache=require(a2_0xdc800a(0xaf)),anncicEvent=require(a2_0xdc800a(0xb8)),anncicTypeorm=require(a2_0xdc800a(0xc0)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0xdc800a(0x9b));let CustomConfiguration=class CustomConfiguration{async[a2_0xdc800a(0xcd)](){const _0x39137d=a2_0xdc800a;await this[_0x39137d(0xda)](),await this[_0x39137d(0xf8)](),await this[_0x39137d(0xef)](),await this[_0x39137d(0xd3)]();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x5531e4=a2_0xdc800a,_0x25815d=this[_0x5531e4(0xf4)][_0x5531e4(0xc9)]();this[_0x5531e4(0xa1)]['registerMethodHandler'](action_1[_0x5531e4(0x9d)],_0x4fd360=>{const _0x2ad30e=_0x5531e4,_0x30aae7=_0x4fd360[_0x2ad30e(0x92)];return{'before':async _0x3e8912=>{const _0xd7d65c=_0x2ad30e;var _0x279f17,_0x460c15;const _0x474ca2=(_0x279f17=_0x3e8912===null||_0x3e8912===void 0x0?void 0x0:_0x3e8912['target'])===null||_0x279f17===void 0x0?void 0x0:_0x279f17[core_1[_0xd7d65c(0x98)]];if(_0x474ca2&&(_0x30aae7===null||_0x30aae7===void 0x0?void 0x0:_0x30aae7['apimit'])){if(!this[_0xd7d65c(0x9c)][_0xd7d65c(0xf0)]((_0x460c15=_0x474ca2===null||_0x474ca2===void 0x0?void 0x0:_0x474ca2[_0xd7d65c(0x9e)])===null||_0x460c15===void 0x0?void 0x0:_0x460c15[_0xd7d65c(0xbe)]))throw new AnnError(ApiError_1[_0xd7d65c(0xb2)][_0xd7d65c(0xdb)]);}},'around':async _0x2636f7=>{const _0x599348=_0x2ad30e;var _0x13fb98,_0x389f05,_0x3f0bc1,_0x35fc90,_0x349164;const _0x35b5c6=(_0x13fb98=_0x2636f7===null||_0x2636f7===void 0x0?void 0x0:_0x2636f7[_0x599348(0xdf)])===null||_0x13fb98===void 0x0?void 0x0:_0x13fb98[core_1[_0x599348(0x98)]];if(_0x35b5c6&&(_0x30aae7===null||_0x30aae7===void 0x0?void 0x0:_0x30aae7[_0x599348(0xc2)])){if(((_0x389f05=_0x35b5c6[_0x599348(0xbe)])===null||_0x389f05===void 0x0?void 0x0:_0x389f05['device'])&&((_0x349164=(_0x35fc90=(_0x3f0bc1=_0x25815d===null||_0x25815d===void 0x0?void 0x0:_0x25815d[_0x599348(0xea)])===null||_0x3f0bc1===void 0x0?void 0x0:_0x3f0bc1['devices'])===null||_0x35fc90===void 0x0?void 0x0:_0x35fc90[_0x35b5c6[_0x599348(0xbe)][_0x599348(0x96)]])===null||_0x349164===void 0x0?void 0x0:_0x349164['intercept'])){const _0x34515d=Array[_0x599348(0xf3)](_0x25815d[_0x599348(0xea)][_0x599348(0xb7)][_0x35b5c6[_0x599348(0xbe)]['device']][_0x599348(0x97)])?_0x25815d['anncicapi'][_0x599348(0xb7)][_0x35b5c6[_0x599348(0xbe)][_0x599348(0x96)]][_0x599348(0x97)]:[_0x25815d[_0x599348(0xea)]['devices'][_0x35b5c6[_0x599348(0xbe)][_0x599348(0x96)]][_0x599348(0x97)]];for(const _0x4fe9d8 of _0x34515d){if(decorator_1[_0x599348(0xe7)][_0x599348(0xab)](_0x4fe9d8)||typeof _0x4fe9d8==_0x599348(0xf5)){const _0x2af293=await _0x35b5c6[_0x599348(0xe6)][_0x599348(0xe0)](_0x4fe9d8);typeof(_0x2af293===null||_0x2af293===void 0x0?void 0x0:_0x2af293[_0x599348(0xbf)])==_0x599348(0xd1)&&await _0x2af293['handler'](typeof(_0x35b5c6===null||_0x35b5c6===void 0x0?void 0x0:_0x35b5c6[_0x599348(0x94)])==_0x599348(0xf5)&&(_0x35b5c6===null||_0x35b5c6===void 0x0?void 0x0:_0x35b5c6[_0x599348(0xa6)])?_0x35b5c6['method'][_0x599348(0xbb)]()+'@'+(_0x35b5c6===null||_0x35b5c6===void 0x0?void 0x0:_0x35b5c6[_0x599348(0xa6)]):undefined,_0x35b5c6,_0x30aae7);}else decorator_1['Types'][_0x599348(0xd6)](_0x4fe9d8)&&await _0x4fe9d8(typeof(_0x35b5c6===null||_0x35b5c6===void 0x0?void 0x0:_0x35b5c6[_0x599348(0x94)])==_0x599348(0xf5)&&(_0x35b5c6===null||_0x35b5c6===void 0x0?void 0x0:_0x35b5c6[_0x599348(0xa6)])?_0x35b5c6[_0x599348(0x94)]['toLowerCase']()+'@'+(_0x35b5c6===null||_0x35b5c6===void 0x0?void 0x0:_0x35b5c6[_0x599348(0xa6)]):undefined,_0x35b5c6,_0x30aae7);}}}return await _0x2636f7[_0x599348(0xa7)](..._0x2636f7['args']);},'afterThrow':(_0x2b8e9e,_0x7866b7)=>{throw _0x7866b7;}};});}async[a2_0xdc800a(0xd3)](){const _0x5b7479=a2_0xdc800a;this[_0x5b7479(0xf2)][_0x5b7479(0xc4)]([_0x5b7479(0xcf)])[_0x5b7479(0xb5)](_0x4f2382=>{const _0xc0265c=_0x5b7479;(_0x4f2382===null||_0x4f2382===void 0x0?void 0x0:_0x4f2382[_0xc0265c(0xe1)])&&Object[_0xc0265c(0xa2)](_0x4f2382[_0xc0265c(0xe1)],{'ok':{'value':function(_0x3f3bb8,_0x1e7538,_0x332a06=0x0){return{'code':_0x332a06,'data':_0x3f3bb8,'extra':_0x1e7538};}},'input':{'value':function(_0x4b2a41,_0x3cbdc9){const _0x209d70=_0xc0265c;var _0x1bc182;const _0x2045d2=lodash[_0x209d70(0xd2)]({},this[_0x209d70(0x9e)][_0x209d70(0x9f)]||this[_0x209d70(0x9e)][((_0x1bc182=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x1bc182===void 0x0?void 0x0:_0x1bc182['key'])||_0x209d70(0x9f)]||{},this[_0x209d70(0x9e)][_0x209d70(0x9a)]||{});return _0x4b2a41?lodash[_0x209d70(0xa4)](_0x2045d2,_0x4b2a41,_0x3cbdc9):_0x2045d2;}},'when':{'value':async function(_0x276ab7,_0x2e3c81){const _0xd38e5f=_0xc0265c,_0x54412d=this['input'](_0x276ab7,null);if(!lodash[_0xd38e5f(0xa3)](_0x54412d))return await _0x2e3c81(_0x54412d);}},'only':{'value':function(_0x28ea31){const _0x680cd6=_0xc0265c,_0x52b840={};for(let _0x459011=0x0;_0x459011<_0x28ea31['length'];_0x459011++){lodash['isArray'](_0x28ea31[_0x459011])&&_0x28ea31[_0x459011][_0x680cd6(0xac)]>0x0&&lodash[_0x680cd6(0xbd)](_0x28ea31[_0x459011][0x0])&&(_0x52b840[_0x28ea31[_0x459011][0x0]]=this[_0x680cd6(0xcc)](_0x28ea31[_0x459011][0x0],_0x28ea31[_0x459011]['length']>0x1?_0x28ea31[_0x459011][0x1]:null));}return _0x52b840;}}});});}async[a2_0xdc800a(0xda)](){const _0xa3d90d=a2_0xdc800a;var _0x45dcc1,_0x8a6719,_0x7dcb03,_0x3e2cfe,_0x3e03fe,_0x26bc13;const _0x2d1dd6=this[_0xa3d90d(0xf4)][_0xa3d90d(0xc9)]();((_0x8a6719=(_0x45dcc1=_0x2d1dd6===null||_0x2d1dd6===void 0x0?void 0x0:_0x2d1dd6['anncicapi'])===null||_0x45dcc1===void 0x0?void 0x0:_0x45dcc1[_0xa3d90d(0xb7)])===null||_0x8a6719===void 0x0?void 0x0:_0x8a6719[_0xa3d90d(0xd8)])&&Object[_0xa3d90d(0xde)](_0x2d1dd6[_0xa3d90d(0xea)][_0xa3d90d(0xb7)])[_0xa3d90d(0xac)]>0x1&&delete _0x2d1dd6['anncicapi'][_0xa3d90d(0xb7)]['DEFAULT'];if((_0x7dcb03=_0x2d1dd6===null||_0x2d1dd6===void 0x0?void 0x0:_0x2d1dd6[_0xa3d90d(0xc3)])===null||_0x7dcb03===void 0x0?void 0x0:_0x7dcb03['dirs'])for(const _0x434fde in _0x2d1dd6[_0xa3d90d(0xc3)][_0xa3d90d(0xe5)]){((_0x3e2cfe=_0x2d1dd6[_0xa3d90d(0xc3)][_0xa3d90d(0xe5)][_0x434fde])===null||_0x3e2cfe===void 0x0?void 0x0:_0x3e2cfe[_0xa3d90d(0xd9)])&&typeof((_0x3e03fe=_0x2d1dd6[_0xa3d90d(0xc3)][_0xa3d90d(0xe5)][_0x434fde])===null||_0x3e03fe===void 0x0?void 0x0:_0x3e03fe[_0xa3d90d(0xd9)])==_0xa3d90d(0xf5)&&!fs[_0xa3d90d(0xd4)](_0x2d1dd6['staticFile']['dirs'][_0x434fde][_0xa3d90d(0xd9)])&&(fs['mkdirSync'](_0x2d1dd6['staticFile'][_0xa3d90d(0xe5)][_0x434fde][_0xa3d90d(0xd9)],{'recursive':!![]}),console[_0xa3d90d(0xd7)](_0xa3d90d(0xec)+_0x2d1dd6[_0xa3d90d(0xc3)][_0xa3d90d(0xe5)][_0x434fde][_0xa3d90d(0xd9)]));}((_0x26bc13=_0x2d1dd6===null||_0x2d1dd6===void 0x0?void 0x0:_0x2d1dd6['upload'])===null||_0x26bc13===void 0x0?void 0x0:_0x26bc13[_0xa3d90d(0xdd)])&&!fs['existsSync'](_0x2d1dd6[_0xa3d90d(0xb4)][_0xa3d90d(0xdd)])&&(fs[_0xa3d90d(0xce)](_0x2d1dd6[_0xa3d90d(0xb4)][_0xa3d90d(0xdd)],{'recursive':!![]}),console[_0xa3d90d(0xd7)](_0xa3d90d(0x90)+_0x2d1dd6[_0xa3d90d(0xb4)][_0xa3d90d(0xdd)])),this[_0xa3d90d(0xf4)][_0xa3d90d(0xee)](_0x2d1dd6);}};__decorate([(0x0,decorator_1[a2_0xdc800a(0xf9)])(),__metadata(a2_0xdc800a(0xa5),core_1[a2_0xdc800a(0xb9)])],CustomConfiguration[a2_0xdc800a(0xba)],a2_0xdc800a(0xf4),void 0x0),__decorate([(0x0,decorator_1[a2_0xdc800a(0xf9)])(),__metadata(a2_0xdc800a(0xa5),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0xdc800a(0xba)],a2_0xdc800a(0xa1),void 0x0),__decorate([(0x0,decorator_1[a2_0xdc800a(0xf9)])(),__metadata(a2_0xdc800a(0xa5),core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0xdc800a(0xba)],a2_0xdc800a(0xf2),void 0x0),__decorate([(0x0,decorator_1[a2_0xdc800a(0xf9)])(),__metadata(a2_0xdc800a(0xa5),core_1[a2_0xdc800a(0xed)])],CustomConfiguration[a2_0xdc800a(0xba)],a2_0xdc800a(0xaa),void 0x0),__decorate([(0x0,decorator_1[a2_0xdc800a(0xf9)])(),__metadata('design:type',ApiService_1[a2_0xdc800a(0x9c)])],CustomConfiguration[a2_0xdc800a(0xba)],a2_0xdc800a(0x9c),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0xdc800a(0xad)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0xdc800a(0xb6),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;function a2_0x99be(){const _0x491401=['config','string','@midwayjs/upload','186qajoRq','checkConfigKeys','Inject','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','CustomConfiguration','metadata','__metadata','method','@midwayjs/task','device','intercept','REQUEST_OBJ_CTX_KEY','3328605llzjAa','query','anncic-apihelper','ApiService','ACTION_ROUTE_KEY','request','body','defineProperty','decorator','defineProperties','isNull','get','design:type','_matchedRoute','proceed','8XPRidn','156416jgzVln','environment','isClass','length','Configuration','344650vRZDSU','@anncic-api/cache','./exception/ApiError','177mSvEKz','ApiError','7342SCRhmZ','upload','forEach','anncic-api','devices','@anncic-api/event','MidwayConfigService','prototype','toLowerCase','@midwayjs/static-file','isString','headers','handler','@anncic-api/typeorm','@anncic-api/core','apimit','staticFile','getApplications','489995EGYpFz','__decorate','./service/ApiService','@midwayjs/cross-domain','getConfiguration','10LgsEdA','getOwnPropertyDescriptor','input','onReady','mkdirSync','koa','@midwayjs/decorator','function','defaultsDeep','hanlderApplications','existsSync','@midwayjs/koa','isFunction','log','DEFAULT','dir','filterConfig','HEADERS_SIGNATURE','decorate','tmpdir','keys','target','getAsync','context','5439oZYLTS','@midwayjs/i18n','./config/config.default','dirs','requestContext','Types','@midwayjs/core','7232588WRSeeh','anncicapi','__esModule','Anncic-api\x20static-file\x20:\x20mkdir\x20','MidwayEnvironmentService','addObject','handlerActionRoute','checksign','object','application','isArray'];a2_0x99be=function(){return _0x491401;};return a2_0x99be();}
|
|
1
|
+
'use strict';function a2_0x43f3(){const _0xadb141=['265440EEredr','keys','body','dirs','Inject','isArray','isFunction','decorator','length','getConfiguration','apimit','defineProperty','anncic-api','onReady','design:type','Types','defineProperties','MidwayDecoratorService','@midwayjs/decorator','intercept','@anncic-api/event','MidwayApplicationManager','ApiService','filterConfig','headers','Anncic-api\x20static-file\x20:\x20mkdir\x20','@anncic-api/typeorm','616171tjGNQO','function','isNull','isClass','bodyXml','@midwayjs/cross-domain','getOwnPropertyDescriptor','3483964iGgQoI','getApplications','target','@midwayjs/task','handlerActionRoute','_matchedRoute','metadata','toLowerCase','object','environment','checkConfigKeys','HEADERS_SIGNATURE','handler','addObject','./config/config.default','request','CustomConfiguration','47572WQoXdb','args','96pXngvS','__esModule','dir','hanlderApplications','@midwayjs/core','decorate','upload','222eiGGMC','DEFAULT','Configuration','log','30HxwIPq','12xHuHWf','@anncic-api/cache','input','config','5779998HocrGD','./service/ApiService','496345rXzYua','29788wDcQMc','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','devices','isString','anncicapi','device','mkdirSync','existsSync','staticFile','registerMethodHandler','method','@midwayjs/i18n','tmpdir','query','./types/action','string','checksign','context','defaultsDeep','prototype'];a2_0x43f3=function(){return _0xadb141;};return a2_0x43f3();}const a2_0x4dbd26=a2_0x49a6;(function(_0x44bdbf,_0x382cab){const _0xb394bb=a2_0x49a6,_0x13caf6=_0x44bdbf();while(!![]){try{const _0xf0f275=-parseInt(_0xb394bb(0x20c))/0x1+-parseInt(_0xb394bb(0x224))/0x2+parseInt(_0xb394bb(0x1d1))/0x3*(parseInt(_0xb394bb(0x1dd))/0x4)+parseInt(_0xb394bb(0x1dc))/0x5*(-parseInt(_0xb394bb(0x1d6))/0x6)+parseInt(_0xb394bb(0x1f1))/0x7*(parseInt(_0xb394bb(0x226))/0x8)+-parseInt(_0xb394bb(0x1da))/0x9+-parseInt(_0xb394bb(0x1d5))/0xa*(-parseInt(_0xb394bb(0x213))/0xb);if(_0xf0f275===_0x382cab)break;else _0x13caf6['push'](_0x13caf6['shift']());}catch(_0x3624c7){_0x13caf6['push'](_0x13caf6['shift']());}}}(a2_0x43f3,0x741b5));function a2_0x49a6(_0x4c90cb,_0x182660){const _0x43f3a1=a2_0x43f3();return a2_0x49a6=function(_0x49a650,_0x28abc9){_0x49a650=_0x49a650-0x1d0;let _0x2a2c3f=_0x43f3a1[_0x49a650];return _0x2a2c3f;},a2_0x49a6(_0x4c90cb,_0x182660);}var __decorate=this&&this['__decorate']||function(_0x3f3e17,_0x1c98fd,_0x200f1b,_0x27ca3f){const _0x15df87=a2_0x49a6;var _0x1925aa=arguments['length'],_0xc814b1=_0x1925aa<0x3?_0x1c98fd:_0x27ca3f===null?_0x27ca3f=Object[_0x15df87(0x212)](_0x1c98fd,_0x200f1b):_0x27ca3f,_0x4d79c6;if(typeof Reflect===_0x15df87(0x21b)&&typeof Reflect[_0x15df87(0x22b)]===_0x15df87(0x20d))_0xc814b1=Reflect[_0x15df87(0x22b)](_0x3f3e17,_0x1c98fd,_0x200f1b,_0x27ca3f);else{for(var _0x32c087=_0x3f3e17[_0x15df87(0x1f9)]-0x1;_0x32c087>=0x0;_0x32c087--)if(_0x4d79c6=_0x3f3e17[_0x32c087])_0xc814b1=(_0x1925aa<0x3?_0x4d79c6(_0xc814b1):_0x1925aa>0x3?_0x4d79c6(_0x1c98fd,_0x200f1b,_0xc814b1):_0x4d79c6(_0x1c98fd,_0x200f1b))||_0xc814b1;}return _0x1925aa>0x3&&_0xc814b1&&Object[_0x15df87(0x1fc)](_0x1c98fd,_0x200f1b,_0xc814b1),_0xc814b1;},__metadata=this&&this['__metadata']||function(_0x21a764,_0x4ad2f1){const _0x55d0d1=a2_0x49a6;if(typeof Reflect===_0x55d0d1(0x21b)&&typeof Reflect[_0x55d0d1(0x219)]===_0x55d0d1(0x20d))return Reflect[_0x55d0d1(0x219)](_0x21a764,_0x4ad2f1);};Object[a2_0x4dbd26(0x1fc)](exports,a2_0x4dbd26(0x227),{'value':!![]}),exports[a2_0x4dbd26(0x223)]=void 0x0;const decorator_1=require(a2_0x4dbd26(0x203)),core_1=require(a2_0x4dbd26(0x22a)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x4dbd26(0x1db)),action_1=require(a2_0x4dbd26(0x1eb)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x4dbd26(0x1e8)),task=require(a2_0x4dbd26(0x216)),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4dbd26(0x211)),ConfigDefault=require(a2_0x4dbd26(0x221)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x4dbd26(0x1d7)),anncicEvent=require(a2_0x4dbd26(0x205)),anncicTypeorm=require(a2_0x4dbd26(0x20b)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x4dbd26(0x1fe)](){const _0x6b0d0=a2_0x4dbd26;await this[_0x6b0d0(0x208)](),await this[_0x6b0d0(0x21d)](),await this[_0x6b0d0(0x217)](),await this[_0x6b0d0(0x229)]();}async[a2_0x4dbd26(0x21d)](){}async[a2_0x4dbd26(0x217)](){const _0x17ac0e=a2_0x4dbd26,_0x2e7c8f=this[_0x17ac0e(0x1d9)][_0x17ac0e(0x1fa)]();this[_0x17ac0e(0x1f8)][_0x17ac0e(0x1e6)](action_1['ACTION_ROUTE_KEY'],_0x383397=>{const _0x25ffce=_0x17ac0e,_0x2d2679=_0x383397[_0x25ffce(0x219)];return{'before':async _0x32800=>{const _0x3184c7=_0x25ffce;var _0x2d5154,_0x3098f8;const _0x1efc10=(_0x2d5154=_0x32800===null||_0x32800===void 0x0?void 0x0:_0x32800[_0x3184c7(0x215)])===null||_0x2d5154===void 0x0?void 0x0:_0x2d5154[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x1efc10&&(_0x2d2679===null||_0x2d2679===void 0x0?void 0x0:_0x2d2679[_0x3184c7(0x1fb)])){if(!this[_0x3184c7(0x207)][_0x3184c7(0x1ed)]((_0x3098f8=_0x1efc10===null||_0x1efc10===void 0x0?void 0x0:_0x1efc10[_0x3184c7(0x222)])===null||_0x3098f8===void 0x0?void 0x0:_0x3098f8[_0x3184c7(0x209)]))throw new AnnError(ApiError_1['ApiError'][_0x3184c7(0x21e)]);}},'around':async _0x19de3f=>{const _0x4e59d0=_0x25ffce;var _0x327602,_0x10bcb6,_0x302f51,_0x5829c5,_0x417e45;const _0xcbc475=(_0x327602=_0x19de3f===null||_0x19de3f===void 0x0?void 0x0:_0x19de3f['target'])===null||_0x327602===void 0x0?void 0x0:_0x327602[core_1['REQUEST_OBJ_CTX_KEY']];if(_0xcbc475&&(_0x2d2679===null||_0x2d2679===void 0x0?void 0x0:_0x2d2679[_0x4e59d0(0x1fb)])){if(((_0x10bcb6=_0xcbc475[_0x4e59d0(0x209)])===null||_0x10bcb6===void 0x0?void 0x0:_0x10bcb6[_0x4e59d0(0x1e2)])&&((_0x417e45=(_0x5829c5=(_0x302f51=_0x2e7c8f===null||_0x2e7c8f===void 0x0?void 0x0:_0x2e7c8f[_0x4e59d0(0x1e1)])===null||_0x302f51===void 0x0?void 0x0:_0x302f51[_0x4e59d0(0x1df)])===null||_0x5829c5===void 0x0?void 0x0:_0x5829c5[_0xcbc475[_0x4e59d0(0x209)]['device']])===null||_0x417e45===void 0x0?void 0x0:_0x417e45[_0x4e59d0(0x204)])){const _0x51d22d=Array[_0x4e59d0(0x1f6)](_0x2e7c8f['anncicapi'][_0x4e59d0(0x1df)][_0xcbc475[_0x4e59d0(0x209)][_0x4e59d0(0x1e2)]][_0x4e59d0(0x204)])?_0x2e7c8f[_0x4e59d0(0x1e1)][_0x4e59d0(0x1df)][_0xcbc475[_0x4e59d0(0x209)][_0x4e59d0(0x1e2)]]['intercept']:[_0x2e7c8f[_0x4e59d0(0x1e1)][_0x4e59d0(0x1df)][_0xcbc475['headers']['device']][_0x4e59d0(0x204)]];for(const _0x5d9465 of _0x51d22d){if(decorator_1[_0x4e59d0(0x200)][_0x4e59d0(0x20f)](_0x5d9465)||typeof _0x5d9465==_0x4e59d0(0x1ec)){const _0x354c0d=await _0xcbc475['requestContext']['getAsync'](_0x5d9465);typeof(_0x354c0d===null||_0x354c0d===void 0x0?void 0x0:_0x354c0d[_0x4e59d0(0x21f)])==_0x4e59d0(0x20d)&&await _0x354c0d[_0x4e59d0(0x21f)](typeof(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475['method'])==_0x4e59d0(0x1ec)&&(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x218)])?_0xcbc475[_0x4e59d0(0x1e7)][_0x4e59d0(0x21a)]()+'@'+(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475['_matchedRoute']):undefined,_0xcbc475,_0x2d2679);}else decorator_1['Types'][_0x4e59d0(0x1f7)](_0x5d9465)&&await _0x5d9465(typeof(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x1e7)])==_0x4e59d0(0x1ec)&&(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x218)])?_0xcbc475[_0x4e59d0(0x1e7)]['toLowerCase']()+'@'+(_0xcbc475===null||_0xcbc475===void 0x0?void 0x0:_0xcbc475[_0x4e59d0(0x218)]):undefined,_0xcbc475,_0x2d2679);}}}return await _0x19de3f['proceed'](..._0x19de3f[_0x4e59d0(0x225)]);},'afterThrow':(_0x3b1fd6,_0x41c10b)=>{throw _0x41c10b;}};});}async[a2_0x4dbd26(0x229)](){const _0x5748c3=a2_0x4dbd26;this['application'][_0x5748c3(0x214)](['koa'])['forEach'](_0x307f10=>{const _0x13c34f=_0x5748c3;(_0x307f10===null||_0x307f10===void 0x0?void 0x0:_0x307f10['context'])&&Object[_0x13c34f(0x201)](_0x307f10[_0x13c34f(0x1ee)],{'ok':{'value':function(_0x32d66b,_0x20e0aa,_0x30d9e5=0x0){return{'code':_0x30d9e5,'data':_0x32d66b,'extra':_0x20e0aa};}},'input':{'value':function(_0x1ed530,_0x1bfed9){const _0x561fce=_0x13c34f;var _0x205b68;const _0x391785=lodash[_0x561fce(0x1ef)]({},this[_0x561fce(0x222)][_0x561fce(0x1f3)]||this[_0x561fce(0x222)][((_0x205b68=config===null||config===void 0x0?void 0x0:config[_0x561fce(0x210)])===null||_0x205b68===void 0x0?void 0x0:_0x205b68['key'])||_0x561fce(0x1f3)]||{},this['request'][_0x561fce(0x1ea)]||{});return _0x1ed530?lodash['get'](_0x391785,_0x1ed530,_0x1bfed9):_0x391785;}},'when':{'value':async function(_0x269890,_0x124b4e){const _0x18aaff=_0x13c34f,_0xba01ca=this[_0x18aaff(0x1d8)](_0x269890,null);if(!lodash[_0x18aaff(0x20e)](_0xba01ca))return await _0x124b4e(_0xba01ca);}},'only':{'value':function(_0x429f64){const _0x3a0158=_0x13c34f,_0x201fef={};for(let _0x15b4cb=0x0;_0x15b4cb<_0x429f64[_0x3a0158(0x1f9)];_0x15b4cb++){lodash[_0x3a0158(0x1f6)](_0x429f64[_0x15b4cb])&&_0x429f64[_0x15b4cb][_0x3a0158(0x1f9)]>0x0&&lodash[_0x3a0158(0x1e0)](_0x429f64[_0x15b4cb][0x0])&&(_0x201fef[_0x429f64[_0x15b4cb][0x0]]=this[_0x3a0158(0x1d8)](_0x429f64[_0x15b4cb][0x0],_0x429f64[_0x15b4cb][_0x3a0158(0x1f9)]>0x1?_0x429f64[_0x15b4cb][0x1]:null));}return _0x201fef;}}});});}async['filterConfig'](){const _0xe78258=a2_0x4dbd26;var _0x3882c2,_0x227d70,_0x1c2c97,_0x3e9bed,_0x44ea51,_0x21afc7;const _0x59e7c7=this[_0xe78258(0x1d9)][_0xe78258(0x1fa)]();((_0x227d70=(_0x3882c2=_0x59e7c7===null||_0x59e7c7===void 0x0?void 0x0:_0x59e7c7['anncicapi'])===null||_0x3882c2===void 0x0?void 0x0:_0x3882c2['devices'])===null||_0x227d70===void 0x0?void 0x0:_0x227d70[_0xe78258(0x1d2)])&&Object[_0xe78258(0x1f2)](_0x59e7c7['anncicapi'][_0xe78258(0x1df)])[_0xe78258(0x1f9)]>0x1&&delete _0x59e7c7['anncicapi'][_0xe78258(0x1df)][_0xe78258(0x1d2)];if((_0x1c2c97=_0x59e7c7===null||_0x59e7c7===void 0x0?void 0x0:_0x59e7c7[_0xe78258(0x1e5)])===null||_0x1c2c97===void 0x0?void 0x0:_0x1c2c97['dirs'])for(const _0x3dd1dc in _0x59e7c7['staticFile'][_0xe78258(0x1f4)]){((_0x3e9bed=_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc])===null||_0x3e9bed===void 0x0?void 0x0:_0x3e9bed['dir'])&&typeof((_0x44ea51=_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc])===null||_0x44ea51===void 0x0?void 0x0:_0x44ea51['dir'])==_0xe78258(0x1ec)&&!fs['existsSync'](_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc]['dir'])&&(fs[_0xe78258(0x1e3)](_0x59e7c7[_0xe78258(0x1e5)][_0xe78258(0x1f4)][_0x3dd1dc]['dir'],{'recursive':!![]}),console[_0xe78258(0x1d4)](_0xe78258(0x20a)+_0x59e7c7['staticFile']['dirs'][_0x3dd1dc][_0xe78258(0x228)]));}((_0x21afc7=_0x59e7c7===null||_0x59e7c7===void 0x0?void 0x0:_0x59e7c7[_0xe78258(0x1d0)])===null||_0x21afc7===void 0x0?void 0x0:_0x21afc7[_0xe78258(0x1e9)])&&!fs[_0xe78258(0x1e4)](_0x59e7c7[_0xe78258(0x1d0)][_0xe78258(0x1e9)])&&(fs['mkdirSync'](_0x59e7c7[_0xe78258(0x1d0)][_0xe78258(0x1e9)],{'recursive':!![]}),console['log'](_0xe78258(0x1de)+_0x59e7c7['upload'][_0xe78258(0x1e9)])),this['config'][_0xe78258(0x220)](_0x59e7c7);}};__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata(a2_0x4dbd26(0x1ff),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x4dbd26(0x1f0)],a2_0x4dbd26(0x1d9),void 0x0),__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata('design:type',core_1[a2_0x4dbd26(0x202)])],CustomConfiguration[a2_0x4dbd26(0x1f0)],a2_0x4dbd26(0x1f8),void 0x0),__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata(a2_0x4dbd26(0x1ff),core_1[a2_0x4dbd26(0x206)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1f5)])(),__metadata(a2_0x4dbd26(0x1ff),core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x4dbd26(0x21c),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x4dbd26(0x1f0)],a2_0x4dbd26(0x207),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x4dbd26(0x1d3)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x4dbd26(0x1fd),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4dbd26(0x223)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x2aa4f5=a3_0x221e;(function(_0x3b44ba,_0x17dc6d){const _0x1579bb=a3_0x221e,_0x1ac04f=_0x3b44ba();while(!![]){try{const _0x493249=parseInt(_0x1579bb(0x165))/0x1*(parseInt(_0x1579bb(0x18c))/0x2)+parseInt(_0x1579bb(0x186))/0x3+-parseInt(_0x1579bb(0x15a))/0x4+-parseInt(_0x1579bb(0x158))/0x5*(-parseInt(_0x1579bb(0x16f))/0x6)+-parseInt(_0x1579bb(0x16e))/0x7+parseInt(_0x1579bb(0x176))/0x8*(-parseInt(_0x1579bb(0x159))/0x9)+parseInt(_0x1579bb(0x174))/0xa*(-parseInt(_0x1579bb(0x187))/0xb);if(_0x493249===_0x17dc6d)break;else _0x1ac04f['push'](_0x1ac04f['shift']());}catch(_0x57f379){_0x1ac04f['push'](_0x1ac04f['shift']());}}}(a3_0x5b20,0x8702d));function a3_0x221e(_0x37b35f,_0x32fb7e){const _0x5b2018=a3_0x5b20();return a3_0x221e=function(_0x221e80,_0x554217){_0x221e80=_0x221e80-0x157;let _0x2b2df6=_0x5b2018[_0x221e80];return _0x2b2df6;},a3_0x221e(_0x37b35f,_0x32fb7e);}Object[a3_0x2aa4f5(0x188)](exports,a3_0x2aa4f5(0x161),{'value':!![]}),exports[a3_0x2aa4f5(0x180)]=exports[a3_0x2aa4f5(0x16a)]=void 0x0;function a3_0x5b20(){const _0x3ceafa=['2534283zDNTQt','297JchMwV','defineProperty','rootpath','-controller','startsWith','214036aYXiJi','length','5JeEvvV','27ReLXEg','317028jQWHPa','-action','saveClassMetadata','join','substring','route','middleware','__esModule','prefix','APPSCONFIG_KEY','ACTION_KEY','10WEusNO','AppsConfigTmp','endsWith','push','filter','Action','@midwayjs/decorator','filepath','\x20文件请放在app/controller/文件下','958426EecTUq','4921410EsBzAv','replace','match','middlewareIgnore','indexOf','699590QZWQoP','/config.','205608MueuQn','cwd','apps/','trim','app/controller/','/controller/','/apps/','saveModule','tagName','../types/action','parseRoute','split','Controller','\x20文件请放在apps/','toLowerCase','module'];a3_0x5b20=function(){return _0x3ceafa;};return a3_0x5b20();}const fs=require('fs'),decorator_1=require(a3_0x2aa4f5(0x16b)),action_1=require(a3_0x2aa4f5(0x17f));function Action(_0xb89ebb,_0x12ba15,_0x5240b9={'middleware':[],'sensitive':!![]}){return _0x3c26e5=>{const _0x690fc3=a3_0x221e;_0x5240b9[_0x690fc3(0x17e)]=_0x12ba15;const _0x5e6d3d=parseRoute(_0xb89ebb);if(_0x5e6d3d['module']){_0x5240b9[_0x690fc3(0x162)]=_0x5240b9['prefix']?'/'+_0x5e6d3d['module']+'/'+_0x5240b9[_0x690fc3(0x162)]:'/'+_0x5e6d3d[_0x690fc3(0x15f)];_0x5e6d3d['prefix']&&(_0x5240b9[_0x690fc3(0x162)]='/'+_0x5e6d3d['prefix']+'/'+_0x5240b9[_0x690fc3(0x162)]);if(fs['existsSync'](_0x5e6d3d[_0x690fc3(0x189)]+_0x690fc3(0x17c)+_0x5e6d3d[_0x690fc3(0x185)]+_0x690fc3(0x175)+(lodash[_0x690fc3(0x167)](_0x5e6d3d[_0x690fc3(0x16c)],'ts')?'ts':'js'))){const _0x1d90f1=include(_0x5e6d3d[_0x690fc3(0x189)]+_0x690fc3(0x17c)+_0x5e6d3d[_0x690fc3(0x185)]+_0x690fc3(0x175)+(lodash[_0x690fc3(0x167)](_0x5e6d3d[_0x690fc3(0x16c)],'ts')?'ts':'js'));if(_0x1d90f1['middleware']&&lodash['isArray'](_0x1d90f1['middleware'])&&_0x1d90f1[_0x690fc3(0x160)]['length']>0x0)for(let _0x553e05 in _0x1d90f1[_0x690fc3(0x160)]){_0x1d90f1[_0x690fc3(0x172)]['indexOf'](_0x1d90f1[_0x690fc3(0x160)][_0x553e05])==-0x1&&_0x5240b9[_0x690fc3(0x160)][_0x690fc3(0x168)](_0x1d90f1[_0x690fc3(0x160)][_0x553e05]);}const _0x59fc23=(0x0,decorator_1['getClassMetadata'])(action_1[_0x690fc3(0x163)],action_1['AppsConfigTmp'])||{};_0x59fc23[''+_0x5e6d3d[_0x690fc3(0x185)]]=_0x1d90f1,(0x0,decorator_1[_0x690fc3(0x15c)])(action_1[_0x690fc3(0x163)],_0x59fc23,action_1[_0x690fc3(0x166)]);}_0x5240b9['prefix']=_0x5240b9[_0x690fc3(0x162)][_0x690fc3(0x184)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x690fc3(0x17d)])(action_1['ACTION_KEY'],_0x3c26e5),(0x0,decorator_1[_0x690fc3(0x182)])(_0x5240b9[_0x690fc3(0x162)],_0x5240b9)(_0x3c26e5),(0x0,decorator_1[_0x690fc3(0x15c)])(action_1[_0x690fc3(0x164)],{'prefix':_0x5240b9[_0x690fc3(0x162)],'pprefix':_0x5e6d3d[_0x690fc3(0x162)],'module':_0x5e6d3d[_0x690fc3(0x185)],'filepath':_0x5e6d3d[_0x690fc3(0x16c)],'routerOptions':_0x5240b9},_0x3c26e5);}else _0x5240b9[_0x690fc3(0x162)]=_0x5240b9[_0x690fc3(0x162)]?'/'+_0x5240b9[_0x690fc3(0x162)]:'/'+_0x5e6d3d[_0x690fc3(0x15f)],_0x5e6d3d[_0x690fc3(0x162)]&&(_0x5240b9['prefix']='/'+_0x5e6d3d[_0x690fc3(0x162)]+'/'+_0x5240b9[_0x690fc3(0x162)]),_0x5240b9[_0x690fc3(0x162)]=_0x5240b9[_0x690fc3(0x162)][_0x690fc3(0x184)]()[_0x690fc3(0x170)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x690fc3(0x17d)])(action_1[_0x690fc3(0x164)],_0x3c26e5),(0x0,decorator_1[_0x690fc3(0x182)])(_0x5240b9['prefix'],_0x5240b9)(_0x3c26e5),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x690fc3(0x164)],{'prefix':_0x5240b9[_0x690fc3(0x162)],'module':_0x5e6d3d['module'],'pprefix':_0x5e6d3d[_0x690fc3(0x162)],'filepath':_0x5e6d3d[_0x690fc3(0x16c)],'routerOptions':_0x5240b9},_0x3c26e5);};}exports['Action']=Action;function parseRoute(_0x5c539d){const _0x295791=a3_0x2aa4f5;_0x5c539d=_0x5c539d[_0x295791(0x170)](/(\\|\/)/g,'/');const _0x5941bd=process[_0x295791(0x177)]()[_0x295791(0x170)](/(\\|\/)/g,'/'),_0x1d1810=_0x5c539d['substring'](0x0,_0x5941bd[_0x295791(0x157)]+_0x5c539d['substring'](_0x5941bd['length']+0x1)['indexOf']('/')+0x1),_0x142d5c=_0x5c539d['substring'](_0x1d1810[_0x295791(0x157)]+0x1)[_0x295791(0x170)](/(\\|\/)/g,'/'),_0x511a4e={'route':'','prefix':![],'module':![],'rootpath':_0x1d1810,'filepath':_0x142d5c};if(_0x142d5c[_0x295791(0x18b)](_0x295791(0x17a))){const _0x282e4e=_0x142d5c[_0x295791(0x15e)](_0x295791(0x17a)[_0x295791(0x157)])[_0x295791(0x181)]('/')['filter'](_0x57d85f=>_0x57d85f&&_0x57d85f[_0x295791(0x179)]());return _0x282e4e[_0x295791(0x157)]>0x1&&(_0x511a4e['prefix']=_0x282e4e[0x0][_0x295791(0x184)](),_0x282e4e['splice'](0x0,0x1)),_0x511a4e['route']=('/'+_0x282e4e[_0x295791(0x15d)]('/'))[_0x295791(0x170)](/(\.ts|\.js)$/,'')[_0x295791(0x170)](/\/{2,}/g,'/')[_0x295791(0x171)](/[\/|A-Z]*[^A-Z]+/g)[_0x295791(0x15d)]('-')[_0x295791(0x184)]()[_0x295791(0x170)](/\/\-/g,'/'),_0x511a4e[_0x295791(0x15f)]['endsWith'](_0x295791(0x15b))&&(_0x511a4e[_0x295791(0x15f)]=_0x511a4e[_0x295791(0x15f)][_0x295791(0x15e)](0x0,_0x511a4e[_0x295791(0x15f)][_0x295791(0x157)]-0x7)),_0x511a4e[_0x295791(0x15f)][_0x295791(0x167)]('-controller')&&(_0x511a4e[_0x295791(0x15f)]=_0x511a4e[_0x295791(0x15f)][_0x295791(0x15e)](0x0,_0x511a4e[_0x295791(0x15f)]['length']-0xb)),_0x511a4e;}else{if(_0x142d5c[_0x295791(0x18b)](_0x295791(0x178))){const _0x4596a9=_0x142d5c['substring'](0x0,_0x142d5c[_0x295791(0x173)](_0x295791(0x17c))+0x5),_0x15cb1f=_0x142d5c[_0x295791(0x15e)](_0x4596a9[_0x295791(0x157)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x295791(0x181)]('/')[0x0];if(_0x142d5c['startsWith'](_0x295791(0x178)+_0x15cb1f+'/controller/')){const _0x3edda1=_0x142d5c[_0x295791(0x15e)]((_0x4596a9+'/'+_0x15cb1f+_0x295791(0x17b))[_0x295791(0x157)])[_0x295791(0x181)]('/')[_0x295791(0x169)](_0x1976b0=>_0x1976b0&&_0x1976b0[_0x295791(0x179)]());return _0x3edda1[_0x295791(0x157)]>0x1&&(_0x511a4e[_0x295791(0x162)]=_0x3edda1[0x0][_0x295791(0x184)](),_0x3edda1['splice'](0x0,0x1)),_0x511a4e['module']=_0x15cb1f,_0x511a4e[_0x295791(0x15f)]=('/'+_0x15cb1f+'/'+_0x3edda1[_0x295791(0x15d)]('/'))[_0x295791(0x170)](/(\.ts|\.js)$/,'')[_0x295791(0x170)](/\/{2,}/,'/')[_0x295791(0x171)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x511a4e[_0x295791(0x15f)][_0x295791(0x167)](_0x295791(0x15b))&&(_0x511a4e['route']=_0x511a4e['route']['substring'](0x0,_0x511a4e[_0x295791(0x15f)][_0x295791(0x157)]-0x7)),_0x511a4e[_0x295791(0x15f)][_0x295791(0x167)](_0x295791(0x18a))&&(_0x511a4e[_0x295791(0x15f)]=_0x511a4e[_0x295791(0x15f)][_0x295791(0x15e)](0x0,_0x511a4e[_0x295791(0x15f)][_0x295791(0x157)]-0xb)),_0x511a4e;}throw new Error(_0x142d5c+_0x295791(0x183)+_0x15cb1f+'/controller/文件下');}}throw new Error(_0x142d5c+_0x295791(0x16d));}exports[a3_0x2aa4f5(0x180)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a4_0x4639(_0x1d5d06,_0x979f58){const _0x190625=a4_0x1906();return a4_0x4639=function(_0x463909,_0x2a8482){_0x463909=_0x463909-0x10d;let _0x515adf=_0x190625[_0x463909];return _0x515adf;},a4_0x4639(_0x1d5d06,_0x979f58);}const a4_0x14b39f=a4_0x4639;(function(_0x54d165,_0x574b76){const _0x1312c0=a4_0x4639,_0x4bff82=_0x54d165();while(!![]){try{const _0x30c823=-parseInt(_0x1312c0(0x11c))/0x1*(parseInt(_0x1312c0(0x10f))/0x2)+-parseInt(_0x1312c0(0x12a))/0x3+-parseInt(_0x1312c0(0x122))/0x4+parseInt(_0x1312c0(0x128))/0x5+-parseInt(_0x1312c0(0x10d))/0x6+parseInt(_0x1312c0(0x11a))/0x7*(-parseInt(_0x1312c0(0x11b))/0x8)+-parseInt(_0x1312c0(0x120))/0x9*(-parseInt(_0x1312c0(0x115))/0xa);if(_0x30c823===_0x574b76)break;else _0x4bff82['push'](_0x4bff82['shift']());}catch(_0x173185){_0x4bff82['push'](_0x4bff82['shift']());}}}(a4_0x1906,0xc43b7));Object[a4_0x14b39f(0x121)](exports,a4_0x14b39f(0x118),{'value':!![]}),exports['Api']=void 0x0;const validator_1=require(a4_0x14b39f(0x129)),decorator_1=require('@midwayjs/decorator'),action_1=require('../types/action');function Api(_0x2b5577,_0x308829='get',_0x58920d='/',_0x3e344b={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x18ea98,_0x2222b7,_0x5b3e7d)=>{const _0x545ec7=a4_0x4639;var _0x2671a8,_0xb52ac3,_0x6e7d2f;!_0x3e344b['middleware']&&(_0x3e344b[_0x545ec7(0x10e)]=[]);!((_0x2671a8=_0x3e344b===null||_0x3e344b===void 0x0?void 0x0:_0x3e344b[_0x545ec7(0x11f)])===null||_0x2671a8===void 0x0?void 0x0:_0x2671a8[_0x545ec7(0x113)])&&(_0x3e344b[_0x545ec7(0x11f)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'utc'}});if(((_0xb52ac3=_0x3e344b===null||_0x3e344b===void 0x0?void 0x0:_0x3e344b[_0x545ec7(0x10e)])===null||_0xb52ac3===void 0x0?void 0x0:_0xb52ac3[_0x545ec7(0x12b)])>0x0&&((_0x6e7d2f=_0x3e344b===null||_0x3e344b===void 0x0?void 0x0:_0x3e344b['middlewareIgnore'])===null||_0x6e7d2f===void 0x0?void 0x0:_0x6e7d2f[_0x545ec7(0x12b)])>0x0)for(let _0x30de8c in _0x3e344b[_0x545ec7(0x10e)]){_0x3e344b[_0x545ec7(0x124)][_0x545ec7(0x112)](_0x3e344b[_0x545ec7(0x10e)][_0x30de8c])!==-0x1&&(_0x3e344b[_0x545ec7(0x10e)][_0x30de8c]=null);}_0x3e344b[_0x545ec7(0x11e)]=_0x2b5577,(0x0,validator_1[_0x545ec7(0x110)])(_0x3e344b[_0x545ec7(0x11f)])(_0x18ea98,_0x2222b7,_0x5b3e7d),(0x0,decorator_1[_0x545ec7(0x119)])(Object['assign'](_0x3e344b,{'path':_0x58920d,'requestMethod':(_0x308829==_0x545ec7(0x116)?_0x545ec7(0x117):_0x308829)[_0x545ec7(0x11d)]()}))(_0x18ea98,_0x2222b7,_0x5b3e7d),(0x0,decorator_1['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x58920d,'method':_0x2222b7,'apimit':_0x3e344b['apimit'],'routerName':_0x3e344b[_0x545ec7(0x11e)],'description':_0x3e344b[_0x545ec7(0x114)],'middleware':(_0x3e344b[_0x545ec7(0x10e)]||[])[_0x545ec7(0x125)](_0x43789c=>!!_0x43789c),'requestMethod':(_0x308829=='del'?_0x545ec7(0x117):_0x308829)[_0x545ec7(0x11d)]()},_0x18ea98),(0x0,decorator_1[_0x545ec7(0x126)])(action_1[_0x545ec7(0x123)],{'path':_0x58920d,'method':_0x2222b7,'apimit':_0x3e344b[_0x545ec7(0x111)],'routerName':_0x3e344b[_0x545ec7(0x11e)],'description':_0x3e344b['description'],'middleware':(_0x3e344b[_0x545ec7(0x10e)]||[])[_0x545ec7(0x125)](_0x43dd1e=>!!_0x43dd1e),'requestMethod':(_0x308829==_0x545ec7(0x116)?_0x545ec7(0x117):_0x308829)[_0x545ec7(0x11d)]()})(_0x18ea98,_0x2222b7,_0x5b3e7d);};}exports[a4_0x14b39f(0x127)]=Api;function a4_0x1906(){const _0x549373=['routerName','validate','9nuRlXa','defineProperty','6177780lVYncc','ACTION_ROUTE_KEY','middlewareIgnore','filter','createCustomMethodDecorator','Api','5480390QoQZUK','@anncic-api/validator','908661BRBlNb','length','5547414JmQWCo','middleware','32cNIKKG','Validator','apimit','indexOf','validationOptions','description','34678430wPArxp','del','delete','__esModule','RequestMapping','4403GEjidW','11464bGOHUU','5431AZXQKg','toLowerCase'];a4_0x1906=function(){return _0x549373;};return a4_0x1906();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0xdc8305=a5_0x37cd;function a5_0x37cd(_0x47f12a,_0x5a9f34){const _0x388890=a5_0x3888();return a5_0x37cd=function(_0x37cde4,_0x563cd9){_0x37cde4=_0x37cde4-0x170;let _0xebfad6=_0x388890[_0x37cde4];return _0xebfad6;},a5_0x37cd(_0x47f12a,_0x5a9f34);}(function(_0x49a568,_0x3fa435){const _0x7e6483=a5_0x37cd,_0xa544f6=_0x49a568();while(!![]){try{const _0x4450a2=parseInt(_0x7e6483(0x184))/0x1+parseInt(_0x7e6483(0x17a))/0x2+parseInt(_0x7e6483(0x18a))/0x3*(-parseInt(_0x7e6483(0x174))/0x4)+parseInt(_0x7e6483(0x189))/0x5*(parseInt(_0x7e6483(0x172))/0x6)+-parseInt(_0x7e6483(0x177))/0x7*(parseInt(_0x7e6483(0x17f))/0x8)+-parseInt(_0x7e6483(0x175))/0x9+parseInt(_0x7e6483(0x17d))/0xa;if(_0x4450a2===_0x3fa435)break;else _0xa544f6['push'](_0xa544f6['shift']());}catch(_0x4cae10){_0xa544f6['push'](_0xa544f6['shift']());}}}(a5_0x3888,0x9339d));Object[a5_0xdc8305(0x181)](exports,a5_0xdc8305(0x186),{'value':!![]}),exports[a5_0xdc8305(0x183)]=void 0x0;const decorator_1=require(a5_0xdc8305(0x170)),core_1=require(a5_0xdc8305(0x182)),ApitestService_1=require(a5_0xdc8305(0x187));function a5_0x3888(){const _0x2e9228=['Apitest','376363ilFysZ','filepath','__esModule','../service/ApitestService','RequestMapping','5slqfIx','3610284aeaUKO','@midwayjs/decorator','ApitestService','2821818xzCOME','apidoc','4mcBYBt','3504825SQqKUD','getAsync','434ZnBzYt','REQUEST_OBJ_CTX_KEY','getApplicationContext','561426lYhFNN','app','MidwayEnvironmentService','21812250PoiZxe','get','143576QfRcDc','apitest','defineProperty','@midwayjs/core'];a5_0x3888=function(){return _0x2e9228;};return a5_0x3888();}function Apitest(_0x47b57c='/apitest',_0x394c2d){return(_0x4fd5a9,_0x39908,_0x273a9b)=>{const _0xeae9b0=a5_0x37cd;return(0x0,decorator_1[_0xeae9b0(0x188)])({'path':_0x47b57c,'requestMethod':_0xeae9b0(0x17e)})(_0x4fd5a9,_0x39908,_0x273a9b),_0x273a9b['value']=async function(..._0xf5ae92){const _0x1c1baa=_0xeae9b0;var _0x1ba166;const _0x157b9a=(_0x1ba166=this[core_1[_0x1c1baa(0x178)]])===null||_0x1ba166===void 0x0?void 0x0:_0x1ba166[_0x1c1baa(0x17b)];if(_0x157b9a&&_0x157b9a['getConfig'](_0x1c1baa(0x180))){const _0x34566a=await _0x157b9a[_0x1c1baa(0x179)]()[_0x1c1baa(0x176)](ApitestService_1[_0x1c1baa(0x171)]),_0x4aa13f=await _0x157b9a[_0x1c1baa(0x179)]()[_0x1c1baa(0x176)](core_1[_0x1c1baa(0x17c)]);return _0x4aa13f['isDevelopmentEnvironment']()&&(_0x394c2d[_0x1c1baa(0x185)]=!![]),await _0x34566a[_0x1c1baa(0x173)](_0x394c2d);}return'';},_0x273a9b;};}exports[a5_0xdc8305(0x183)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x528bfb=a6_0x4f37;(function(_0x549b5f,_0x57a6c1){var _0x48465e=a6_0x4f37,_0x411524=_0x549b5f();while(!![]){try{var _0x20c432=-parseInt(_0x48465e(0xa3))/0x1+-parseInt(_0x48465e(0x91))/0x2*(-parseInt(_0x48465e(0xa8))/0x3)+-parseInt(_0x48465e(0x99))/0x4+parseInt(_0x48465e(0x8d))/0x5+-parseInt(_0x48465e(0xa4))/0x6+parseInt(_0x48465e(0xa0))/0x7+parseInt(_0x48465e(0x9d))/0x8;if(_0x20c432===_0x57a6c1)break;else _0x411524['push'](_0x411524['shift']());}catch(_0x1ba699){_0x411524['push'](_0x411524['shift']());}}}(a6_0x2a5c,0x32668));var __decorate=this&&this[a6_0x528bfb(0x92)]||function(_0x598078,_0x3802e0,_0x499d37,_0x7342ab){var _0x58cdf0=a6_0x528bfb,_0x4d39d2=arguments[_0x58cdf0(0xa1)],_0x177bff=_0x4d39d2<0x3?_0x3802e0:_0x7342ab===null?_0x7342ab=Object[_0x58cdf0(0x8e)](_0x3802e0,_0x499d37):_0x7342ab,_0x452691;if(typeof Reflect===_0x58cdf0(0x9e)&&typeof Reflect[_0x58cdf0(0x94)]===_0x58cdf0(0x95))_0x177bff=Reflect[_0x58cdf0(0x94)](_0x598078,_0x3802e0,_0x499d37,_0x7342ab);else{for(var _0x527a78=_0x598078['length']-0x1;_0x527a78>=0x0;_0x527a78--)if(_0x452691=_0x598078[_0x527a78])_0x177bff=(_0x4d39d2<0x3?_0x452691(_0x177bff):_0x4d39d2>0x3?_0x452691(_0x3802e0,_0x499d37,_0x177bff):_0x452691(_0x3802e0,_0x499d37))||_0x177bff;}return _0x4d39d2>0x3&&_0x177bff&&Object[_0x58cdf0(0x93)](_0x3802e0,_0x499d37,_0x177bff),_0x177bff;},__metadata=this&&this[a6_0x528bfb(0xa7)]||function(_0x5bb5be,_0x37abb8){var _0x1abae1=a6_0x528bfb;if(typeof Reflect===_0x1abae1(0x9e)&&typeof Reflect[_0x1abae1(0xa2)]==='function')return Reflect[_0x1abae1(0xa2)](_0x5bb5be,_0x37abb8);};Object[a6_0x528bfb(0x93)](exports,a6_0x528bfb(0x9a),{'value':!![]}),exports[a6_0x528bfb(0x9f)]=void 0x0;class ApiError{}function a6_0x4f37(_0x1bada4,_0x113f26){var _0x2a5cc9=a6_0x2a5c();return a6_0x4f37=function(_0x4f37bf,_0x246255){_0x4f37bf=_0x4f37bf-0x8d;var _0x2e50b4=_0x2a5cc9[_0x4f37bf];return _0x2e50b4;},a6_0x4f37(_0x1bada4,_0x113f26);}function a6_0x2a5c(){var _0x507850=['2286318GosycH','signature验证失败','HEADERS_SIGNATURE','__metadata','354NfjDWM','1850415mBIrFd','getOwnPropertyDescriptor','HEADERS_CHECKCODE','TIMEOUT','354QdWzYY','__decorate','defineProperty','decorate','function','请使用正确的设备','design:type','请求头信息不完整','182256hvjThf','__esModule','网络繁忙,请稍后重试','checkcode验证失败','2085328ibjilW','object','ApiError','1795192IfaUeF','length','metadata','275034HlUNFo'];a6_0x2a5c=function(){return _0x507850;};return a6_0x2a5c();}ApiError['TIMEOUT']=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError['HEADERS_DEVICE']=0x3d7e33,ApiError[a6_0x528bfb(0x8f)]=0x3d7e34,ApiError[a6_0x528bfb(0xa6)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x528bfb(0x9b)),__metadata('design:type',Object)],ApiError,a6_0x528bfb(0x90),void 0x0),__decorate([AnnErrorMsg(a6_0x528bfb(0x98)),__metadata(a6_0x528bfb(0x97),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x528bfb(0x96)),__metadata(a6_0x528bfb(0x97),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x528bfb(0x9c)),__metadata(a6_0x528bfb(0x97),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x528bfb(0xa5)),__metadata(a6_0x528bfb(0x97),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports[a6_0x528bfb(0x9f)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a7_0x4008(_0x35f124,_0x3f48d3){const _0x4acc05=a7_0x4acc();return a7_0x4008=function(_0x40085f,_0x422eeb){_0x40085f=_0x40085f-0x198;let _0xf199b0=_0x4acc05[_0x40085f];return _0xf199b0;},a7_0x4008(_0x35f124,_0x3f48d3);}const a7_0x14ebbc=a7_0x4008;(function(_0x5d1fd9,_0xa44f7b){const _0x4b4869=a7_0x4008,_0x3ad571=_0x5d1fd9();while(!![]){try{const _0x8b54d=-parseInt(_0x4b4869(0x1a7))/0x1+-parseInt(_0x4b4869(0x1a8))/0x2*(parseInt(_0x4b4869(0x198))/0x3)+parseInt(_0x4b4869(0x19f))/0x4*(parseInt(_0x4b4869(0x1a6))/0x5)+parseInt(_0x4b4869(0x19d))/0x6*(parseInt(_0x4b4869(0x1a0))/0x7)+parseInt(_0x4b4869(0x1a1))/0x8*(parseInt(_0x4b4869(0x1aa))/0x9)+-parseInt(_0x4b4869(0x1a5))/0xa+-parseInt(_0x4b4869(0x1a9))/0xb*(-parseInt(_0x4b4869(0x19a))/0xc);if(_0x8b54d===_0xa44f7b)break;else _0x3ad571['push'](_0x3ad571['shift']());}catch(_0x54b6b8){_0x3ad571['push'](_0x3ad571['shift']());}}}(a7_0x4acc,0x25b28));Object['defineProperty'](exports,a7_0x14ebbc(0x199),{'value':!![]}),exports['getAppsConfig']=void 0x0;const decorator_1=require(a7_0x14ebbc(0x1a4)),action_1=require('../types/action');function a7_0x4acc(){const _0x36c931=['676629EHGXKN','__esModule','1884nIhJlL','APPSCONFIG_KEY','getAppsConfig','36QOmpNL','get','4jpfliM','138334CYVTJp','72nklFtI','getClassMetadata','AppsConfigTmp','@midwayjs/decorator','499290QUKltM','1427515quggfP','139130cRQJii','2txAaaE','572Eimkos','156771ZcygeN'];a7_0x4acc=function(){return _0x36c931;};return a7_0x4acc();}function getAppsConfig(_0x56541a){const _0x24b6c5=a7_0x14ebbc,_0x12bf98=(0x0,decorator_1[_0x24b6c5(0x1a2)])(action_1[_0x24b6c5(0x19b)],action_1[_0x24b6c5(0x1a3)])||{};return _0x56541a?lodash[_0x24b6c5(0x19e)](_0x12bf98,_0x56541a):_0x12bf98;}exports[a7_0x14ebbc(0x19c)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x1530ab=a8_0x59f0;(function(_0x4273b0,_0x45e0a6){const _0xfef910=a8_0x59f0,_0x3fe776=_0x4273b0();while(!![]){try{const _0x54a1b9=-parseInt(_0xfef910(0xc6))/0x1+parseInt(_0xfef910(0xc4))/0x2+-parseInt(_0xfef910(0xab))/0x3*(parseInt(_0xfef910(0x9b))/0x4)+parseInt(_0xfef910(0xae))/0x5+parseInt(_0xfef910(0xa9))/0x6+parseInt(_0xfef910(0x97))/0x7*(-parseInt(_0xfef910(0xaa))/0x8)+-parseInt(_0xfef910(0xc5))/0x9*(parseInt(_0xfef910(0xa8))/0xa);if(_0x54a1b9===_0x45e0a6)break;else _0x3fe776['push'](_0x3fe776['shift']());}catch(_0x4e5390){_0x3fe776['push'](_0x3fe776['shift']());}}}(a8_0x28fd,0x3aafb));function a8_0x28fd(){const _0x48ec26=['title','RouteParamTypes','QUERY','getClassExtendedMetadata','prefix','Boolean','-array','flags.default','defineProperty','HEADERS','max','pprefix','677174mOOKiy','11268ELQTjg','373647JaKIaF','ACTION_KEY','WEB_ROUTER_PARAM_KEY','length','body','required','File','split','metadata','String','routes','文件上传-','route','min','push','module','allow','/static/apitest','type','default','summary','children','FILESTREAM','filter','只允许:[','indexOf','routerOptions','listModule','flags.description','__esModule','header','routerName','getRoutes','concat','key','describe','path','log','@anncic-api/validator','get','join','boolean','filepath','find','limit','@midwayjs/decorator','rules','INJECT_CUSTOM_PARAM','Object','543053EvNtFN','array','items','description','356wCSXKI','keys','function','args','string','propertyData','replace','ACTION_ROUTE_KEY','tagName','noreq','FIELDS','requestMethod','getClassMetadata','1430shOZgC','2059026vOhfFH','8ZeBQBW','5178YIxPly','object','isArray','1712485OSZSaR','request','file','query','name','flags.label','RULES_KEY','method','startsWith','BODY'];a8_0x28fd=function(){return _0x48ec26;};return a8_0x28fd();}Object[a8_0x1530ab(0xc0)](exports,a8_0x1530ab(0x83),{'value':!![]}),exports[a8_0x1530ab(0x86)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x1530ab(0x8c)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x1530ab(0x93)),decorator_3=require(a8_0x1530ab(0x93)),action_1=require('../types/action');function a8_0x59f0(_0x27367b,_0x405f18){const _0x28fd1c=a8_0x28fd();return a8_0x59f0=function(_0x59f0c5,_0x2f6897){_0x59f0c5=_0x59f0c5-0x72;let _0x1441ec=_0x28fd1c[_0x59f0c5];return _0x1441ec;},a8_0x59f0(_0x27367b,_0x405f18);}function getRoutes(_0x3ceaa5={'prefix':'/','module':![]}){const _0x26b7d2=a8_0x1530ab;var _0x20a1a7,_0xdc8aeb;const _0x15f2e9=(0x0,decorator_3[_0x26b7d2(0x81)])(action_1[_0x26b7d2(0xc7)]),_0x8ef242={},_0x3e8f4c=Array['isArray'](_0x3ceaa5['filter']||[])?_0x3ceaa5[_0x26b7d2(0x7d)]||[]:[_0x3ceaa5[_0x26b7d2(0x7d)]];_0xa4e7bd:for(const _0x10a1e8 of _0x15f2e9){let _0x396b19=(0x0,decorator_3[_0x26b7d2(0xa7)])(action_1[_0x26b7d2(0xc7)],_0x10a1e8),_0x52f4e9=(0x0,decorator_3[_0x26b7d2(0xa7)])(action_1[_0x26b7d2(0xa2)],_0x10a1e8);if(_0x396b19&&_0x52f4e9){let _0x11340d=_0x396b19[_0x26b7d2(0xbc)],_0x4cb29a={};if(_0x3ceaa5[_0x26b7d2(0x75)]&&(0x0,lodash_1[_0x26b7d2(0x8d)])(_0x396b19,_0x26b7d2(0x75),![])!=_0x3ceaa5[_0x26b7d2(0x75)])continue _0xa4e7bd;else{if(_0x3ceaa5[_0x26b7d2(0x75)]===![]&&!!(0x0,lodash_1[_0x26b7d2(0x8d)])(_0x396b19,_0x26b7d2(0x75),null))continue _0xa4e7bd;}if(_0x3ceaa5['prefix']&&!_0x11340d['startsWith'](_0x3ceaa5[_0x26b7d2(0xbc)]))continue _0xa4e7bd;_0x11340d!=='/'?(_0x4cb29a[_0x26b7d2(0x7a)]=(_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19[_0x26b7d2(0x80)][_0x26b7d2(0xa3)])||(/^\//['test'](_0x11340d)?_0x11340d[_0x26b7d2(0xcd)]('/')[0x1]:_0x11340d),_0x4cb29a[_0x26b7d2(0x9a)]=(_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19[_0x26b7d2(0x80)][_0x26b7d2(0x9a)])||_0x4cb29a[_0x26b7d2(0x7a)],_0x4cb29a[_0x26b7d2(0xd0)]=[]):(_0x4cb29a[_0x26b7d2(0x7a)]=(_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19[_0x26b7d2(0x80)][_0x26b7d2(0xa3)])||'default',_0x4cb29a['description']=(_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19[_0x26b7d2(0x80)][_0x26b7d2(0x9a)])||'',_0x4cb29a[_0x26b7d2(0xd0)]=[]);_0x3ceaa5[_0x26b7d2(0x90)]&&(_0x4cb29a[_0x26b7d2(0x90)]=_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19[_0x26b7d2(0x90)]);(_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19[_0x26b7d2(0xc3)])&&(_0x4cb29a[_0x26b7d2(0xbc)]=_0x396b19[_0x26b7d2(0xc3)]);(_0x396b19===null||_0x396b19===void 0x0?void 0x0:_0x396b19['module'])&&(_0x4cb29a[_0x26b7d2(0x75)]=_0x396b19['module']);let _0x43545b=(0x0,decorator_3[_0x26b7d2(0xa7)])(decorator_2[_0x26b7d2(0x95)],_0x10a1e8)||{};if(typeof _0x52f4e9[Symbol['iterator']]==='function')for(let _0x4fa996 of _0x52f4e9){let _0x3b2aa3={};_0x3b2aa3[_0x26b7d2(0xb5)]=_0x4fa996[_0x26b7d2(0xa6)],_0x3b2aa3[_0x26b7d2(0x72)]=(_0x11340d+_0x4fa996[_0x26b7d2(0x8a)])[_0x26b7d2(0xa1)](/\/{1,}/,'/'),_0x3b2aa3[_0x26b7d2(0x7a)]=(_0x4fa996===null||_0x4fa996===void 0x0?void 0x0:_0x4fa996[_0x26b7d2(0x85)])||_0x4cb29a['summary']||_0x26b7d2(0x79),_0x3b2aa3['description']=(_0x4fa996===null||_0x4fa996===void 0x0?void 0x0:_0x4fa996[_0x26b7d2(0x9a)])||'',_0x3b2aa3[_0x26b7d2(0xaf)]=[];if(!(0x0,lodash_1['startsWith'])(_0x3b2aa3['route'],'static/apitest')&&!(0x0,lodash_1[_0x26b7d2(0xb6)])(_0x3b2aa3[_0x26b7d2(0x72)],_0x26b7d2(0x77))&&_0x3e8f4c['indexOf'](_0x3b2aa3[_0x26b7d2(0x72)])===-0x1){if(!(_0x3ceaa5===null||_0x3ceaa5===void 0x0?void 0x0:_0x3ceaa5[_0x26b7d2(0xa4)])){let _0xbc39ca=(0x0,decorator_3['getMethodParamTypes'])(new _0x10a1e8(),_0x4fa996[_0x26b7d2(0xb5)]);for(const _0x529cec in _0xbc39ca){let _0x28e4f0=(_0x20a1a7=_0x43545b[_0x4fa996[_0x26b7d2(0xb5)]])===null||_0x20a1a7===void 0x0?void 0x0:_0x20a1a7['find'](_0x1beaec=>_0x1beaec['parameterIndex']==_0x529cec&&_0x1beaec['key']===decorator_2[_0x26b7d2(0xc8)]&&(_0x1beaec===null||_0x1beaec===void 0x0?void 0x0:_0x1beaec[_0x26b7d2(0xce)]));if(_0x28e4f0===null||_0x28e4f0===void 0x0?void 0x0:_0x28e4f0[_0x26b7d2(0xce)]){let _0x390350=convertTypeToString(_0x28e4f0[_0x26b7d2(0xce)][_0x26b7d2(0x78)]||0x0);if([_0x26b7d2(0xb1),'body'][_0x26b7d2(0x7f)](_0x390350)!=-0x1&&_0x28e4f0[_0x26b7d2(0xce)][_0x26b7d2(0xa0)]['indexOf'](':')==-0x1&&!_0x3b2aa3[_0x26b7d2(0xaf)][_0x26b7d2(0x91)](_0x2ff030=>_0x2ff030[_0x26b7d2(0x88)]==_0x28e4f0['metadata'][_0x26b7d2(0xa0)]))_0x3b2aa3[_0x26b7d2(0xaf)][_0x26b7d2(0x74)]({'key':_0x28e4f0['metadata'][_0x26b7d2(0xa0)],'title':_0x28e4f0['metadata'][_0x26b7d2(0xa0)],'type':convertSchemaType(_0xbc39ca[_0x28e4f0['parameterIndex']][_0x26b7d2(0xb2)]),'required':![],'default':'','desc':''});else{if(_0x390350==_0x26b7d2(0xb0)){let _0x309581=((_0xdc8aeb=_0x28e4f0===null||_0x28e4f0===void 0x0?void 0x0:_0x28e4f0[_0x26b7d2(0xce)])===null||_0xdc8aeb===void 0x0?void 0x0:_0xdc8aeb[_0x26b7d2(0xa0)])||'file';_0x309581[_0x26b7d2(0x7f)](':')==-0x1&&!_0x3b2aa3[_0x26b7d2(0xaf)][_0x26b7d2(0x91)](_0xd75d5b=>_0xd75d5b[_0x26b7d2(0x88)]==_0x309581&&_0xd75d5b[_0x26b7d2(0x78)]==_0x26b7d2(0xb0))&&_0x3b2aa3[_0x26b7d2(0xaf)]['push']({'key':_0x309581,'title':_0x26b7d2(0xd1)+_0x309581,'type':_0x26b7d2(0xb0),'required':!![],'default':'','desc':''});}}}else{const _0x49769f=(0x0,decorator_3[_0x26b7d2(0xbb)])(validator_1[_0x26b7d2(0xb4)],_0xbc39ca[_0x529cec]);_0x49769f&&_0x3b2aa3[_0x26b7d2(0xaf)]['push'](...getJoiRequest(_0x49769f));}}}_0x4cb29a[_0x26b7d2(0xd0)][_0x26b7d2(0x74)](_0x3b2aa3);}}if(_0x4cb29a['routes'][_0x26b7d2(0xc9)]>0x0){let _0x1dbef5=_0x8ef242[_0x11340d];_0x1dbef5?(_0x1dbef5[_0x26b7d2(0x7a)]!=_0x4cb29a[_0x26b7d2(0x7a)]&&(_0x1dbef5['summary']=_0x1dbef5[_0x26b7d2(0x7a)]+','+_0x4cb29a[_0x26b7d2(0x7a)]),_0x1dbef5[_0x26b7d2(0x9a)]!=_0x4cb29a[_0x26b7d2(0x9a)]&&(_0x1dbef5['description']=_0x1dbef5['description']+','+_0x4cb29a[_0x26b7d2(0x9a)]),_0x1dbef5[_0x26b7d2(0xd0)]=_0x1dbef5[_0x26b7d2(0xd0)][_0x26b7d2(0x87)](_0x4cb29a['routes']),_0x8ef242[_0x11340d]=_0x1dbef5):_0x8ef242[_0x11340d]=_0x4cb29a;}}}return _0x8ef242;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x24eeff){const _0x3a6843=a8_0x1530ab,_0x1fb03b=[];for(let _0x29a520 in _0x24eeff){const _0x2dbc4f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x11c637=typeof _0x24eeff[_0x29a520]['describe']==_0x3a6843(0x9d)?_0x24eeff[_0x29a520][_0x3a6843(0x89)]():_0x24eeff[_0x29a520];_0x2dbc4f[_0x3a6843(0x88)]=_0x29a520,_0x2dbc4f[_0x3a6843(0x78)]=_0x11c637[_0x3a6843(0x78)],_0x2dbc4f['title']=(0x0,lodash_1[_0x3a6843(0x8d)])(_0x11c637,_0x3a6843(0xb3),_0x29a520),_0x2dbc4f['default']=(0x0,lodash_1[_0x3a6843(0x8d)])(_0x11c637,_0x3a6843(0xbf),''),_0x2dbc4f['required']=(0x0,lodash_1[_0x3a6843(0x8d)])(_0x11c637,'flags.presence','')==_0x3a6843(0xcb),_0x2dbc4f['description']=(0x0,lodash_1[_0x3a6843(0x8d)])(_0x11c637,_0x3a6843(0x82),'');if(_0x11c637['type']==_0x3a6843(0xac))_0x2dbc4f[_0x3a6843(0x7b)]=getJoiRequest(_0x11c637[_0x3a6843(0x9c)]);else _0x11c637[_0x3a6843(0x78)]==_0x3a6843(0x98)&&_0x11c637[_0x3a6843(0x99)]&&Array['isArray'](_0x11c637['items'])&&_0x11c637['items'][0x0]&&console[_0x3a6843(0x8b)](_0x29a520+_0x3a6843(0xbe),_0x11c637);_0x11c637[_0x3a6843(0x76)]&&Array[_0x3a6843(0xad)](_0x11c637[_0x3a6843(0x76)])&&_0x11c637['allow']['length']>0x0&&(_0x2dbc4f[_0x3a6843(0x9a)]=_0x3a6843(0x7e)+_0x11c637[_0x3a6843(0x76)][_0x3a6843(0x8e)](',')+'];'+_0x2dbc4f['description']);if(_0x2dbc4f[_0x3a6843(0x88)]&&_0x2dbc4f[_0x3a6843(0x78)]){const _0x2838ca={};for(const _0xc2a3f7 of _0x11c637[_0x3a6843(0x94)]||[]){if(_0xc2a3f7[_0x3a6843(0xb2)]===_0x3a6843(0x73)&&_0xc2a3f7[_0x3a6843(0x9e)])_0x2838ca[_0x3a6843(0x73)]=_0xc2a3f7[_0x3a6843(0x9e)][_0x3a6843(0x92)];else _0xc2a3f7['name']==='max'&&(_0x2838ca[_0x3a6843(0xc2)]=_0xc2a3f7[_0x3a6843(0x9e)]['limit']);}_0x2dbc4f[_0x3a6843(0x94)]=_0x2838ca;}_0x2dbc4f[_0x3a6843(0x88)]&&_0x2dbc4f[_0x3a6843(0xb8)]&&_0x1fb03b['push'](_0x2dbc4f);}return _0x1fb03b;}function convertSchemaType(_0x57711e){const _0x5eb29f=a8_0x1530ab;switch(_0x57711e){case _0x5eb29f(0x96):return _0x5eb29f(0xac);case _0x5eb29f(0xbd):return _0x5eb29f(0x8f);case'Number':return'number';case _0x5eb29f(0xcf):return _0x5eb29f(0x9f);case _0x5eb29f(0xcc):return _0x5eb29f(0xb0);default:return _0x5eb29f(0x9f);}}function convertTypeToString(_0x1ced43){const _0x299ffb=a8_0x1530ab;switch(_0x1ced43){case decorator_1[_0x299ffb(0xb9)][_0x299ffb(0xc1)]:return'header';case decorator_1[_0x299ffb(0xb9)][_0x299ffb(0xba)]:return _0x299ffb(0xb1);case decorator_1['RouteParamTypes']['PARAM']:return'path';case decorator_1[_0x299ffb(0xb9)][_0x299ffb(0xb7)]:return _0x299ffb(0xca);case decorator_1[_0x299ffb(0xb9)][_0x299ffb(0xa5)]:case decorator_1[_0x299ffb(0xb9)]['FILESSTREAM']:case decorator_1[_0x299ffb(0xb9)][_0x299ffb(0x7c)]:return'file';default:return _0x299ffb(0x84);}}
|
|
1
|
+
'use strict';function a8_0x2e6f(){const _0x3f77c4=['pprefix','metadata','3174LGKXMR','FILESTREAM','routerOptions','994VFXlfA','number','/static/apitest','HEADERS','summary','name','4961817KsugpJ','flags.description','object','method','filepath','routes','limit','@midwayjs/decorator','prefix','log','getClassExtendedMetadata','max','57gpzOaX','12484fsNjvO','static/apitest','listModule','items','getMethodParamTypes','string','86533CSbVkf','BODY','getRoutes','test','header','path','split','file','default','routerName','isArray','-array','type','key','RULES_KEY','ACTION_KEY','module','children','min','push','indexOf','propertyData','flags.label','route','flags.default','parameterIndex','requestMethod','@anncic-api/validator','describe','allow','67710BmenxR','Number','PARAM','defineProperty','tagName','request','rules','getClassMetadata','FIELDS','FILESSTREAM','Boolean','function','757352PyRAPm','length','filter','ACTION_ROUTE_KEY','lodash','description','1097096omTGfl','required','File','startsWith','body','replace','title','Object','只允许:[','query','get','RouteParamTypes','args','noreq','find'];a8_0x2e6f=function(){return _0x3f77c4;};return a8_0x2e6f();}const a8_0x5afa02=a8_0x3e1c;(function(_0x28ff83,_0x4a2797){const _0x2115fb=a8_0x3e1c,_0x6d9e87=_0x28ff83();while(!![]){try{const _0x4fc234=parseInt(_0x2115fb(0x10f))/0x1+parseInt(_0x2115fb(0x109))/0x2*(-parseInt(_0x2115fb(0x108))/0x3)+-parseInt(_0x2115fb(0xdc))/0x4+-parseInt(_0x2115fb(0x12d))/0x5+-parseInt(_0x2115fb(0xf3))/0x6*(parseInt(_0x2115fb(0xf6))/0x7)+-parseInt(_0x2115fb(0xe2))/0x8+parseInt(_0x2115fb(0xfc))/0x9;if(_0x4fc234===_0x4a2797)break;else _0x6d9e87['push'](_0x6d9e87['shift']());}catch(_0xfe97c){_0x6d9e87['push'](_0x6d9e87['shift']());}}}(a8_0x2e6f,0x196b1));Object[a8_0x5afa02(0x130)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x5afa02(0xe0)),validator_1=require(a8_0x5afa02(0x12a)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x5afa02(0x103)),decorator_3=require(a8_0x5afa02(0x103)),action_1=require('../types/action');function getRoutes(_0x19eb63={'prefix':'/','module':![]}){const _0x58f878=a8_0x5afa02;var _0x35b94f,_0x32b526;const _0x42e0b1=(0x0,decorator_3[_0x58f878(0x10b)])(action_1['ACTION_KEY']),_0xdf969f={},_0x162353=Array['isArray'](_0x19eb63[_0x58f878(0xde)]||[])?_0x19eb63[_0x58f878(0xde)]||[]:[_0x19eb63[_0x58f878(0xde)]];_0x4ea10e:for(const _0x3f8c14 of _0x42e0b1){let _0x5dd79a=(0x0,decorator_3[_0x58f878(0x134)])(action_1[_0x58f878(0x11e)],_0x3f8c14),_0x3abf53=(0x0,decorator_3[_0x58f878(0x134)])(action_1[_0x58f878(0xdf)],_0x3f8c14);if(_0x5dd79a&&_0x3abf53){let _0x54f1e7=_0x5dd79a['prefix'],_0x4bb7af={};if(_0x19eb63[_0x58f878(0x11f)]&&(0x0,lodash_1[_0x58f878(0xec)])(_0x5dd79a,_0x58f878(0x11f),![])!=_0x19eb63[_0x58f878(0x11f)])continue _0x4ea10e;else{if(_0x19eb63[_0x58f878(0x11f)]===![]&&!!(0x0,lodash_1[_0x58f878(0xec)])(_0x5dd79a,_0x58f878(0x11f),null))continue _0x4ea10e;}if(_0x19eb63[_0x58f878(0x104)]&&!_0x54f1e7[_0x58f878(0xe5)](_0x19eb63[_0x58f878(0x104)]))continue _0x4ea10e;_0x54f1e7!=='/'?(_0x4bb7af[_0x58f878(0xfa)]=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0xf5)][_0x58f878(0x131)])||(/^\//[_0x58f878(0x112)](_0x54f1e7)?_0x54f1e7[_0x58f878(0x115)]('/')[0x1]:_0x54f1e7),_0x4bb7af['description']=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a['routerOptions'][_0x58f878(0xe1)])||_0x4bb7af[_0x58f878(0xfa)],_0x4bb7af[_0x58f878(0x101)]=[]):(_0x4bb7af[_0x58f878(0xfa)]=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a['routerOptions'][_0x58f878(0x131)])||_0x58f878(0x117),_0x4bb7af[_0x58f878(0xe1)]=(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a['routerOptions'][_0x58f878(0xe1)])||'',_0x4bb7af[_0x58f878(0x101)]=[]);_0x19eb63[_0x58f878(0x100)]&&(_0x4bb7af[_0x58f878(0x100)]=_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0x100)]);(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0xf1)])&&(_0x4bb7af[_0x58f878(0x104)]=_0x5dd79a[_0x58f878(0xf1)]);(_0x5dd79a===null||_0x5dd79a===void 0x0?void 0x0:_0x5dd79a[_0x58f878(0x11f)])&&(_0x4bb7af[_0x58f878(0x11f)]=_0x5dd79a['module']);let _0x44f99e=(0x0,decorator_3[_0x58f878(0x134)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x3f8c14)||{};if(typeof _0x3abf53[Symbol['iterator']]===_0x58f878(0xdb))for(let _0x2987cd of _0x3abf53){let _0x5213c5={};_0x5213c5[_0x58f878(0xff)]=_0x2987cd[_0x58f878(0x129)],_0x5213c5[_0x58f878(0x126)]=(_0x54f1e7+_0x2987cd[_0x58f878(0x114)])[_0x58f878(0xe7)](/\/{1,}/,'/'),_0x5213c5[_0x58f878(0xfa)]=(_0x2987cd===null||_0x2987cd===void 0x0?void 0x0:_0x2987cd[_0x58f878(0x118)])||_0x4bb7af[_0x58f878(0xfa)]||_0x58f878(0x117),_0x5213c5[_0x58f878(0xe1)]=(_0x2987cd===null||_0x2987cd===void 0x0?void 0x0:_0x2987cd[_0x58f878(0xe1)])||'',_0x5213c5[_0x58f878(0x132)]=[];if(!(0x0,lodash_1[_0x58f878(0xe5)])(_0x5213c5[_0x58f878(0x126)],_0x58f878(0x10a))&&!(0x0,lodash_1[_0x58f878(0xe5)])(_0x5213c5[_0x58f878(0x126)],_0x58f878(0xf8))&&_0x162353[_0x58f878(0x123)](_0x5213c5['route'])===-0x1){if(!(_0x19eb63===null||_0x19eb63===void 0x0?void 0x0:_0x19eb63[_0x58f878(0xef)])){let _0x582703=(0x0,decorator_3[_0x58f878(0x10d)])(new _0x3f8c14(),_0x2987cd['method']);for(const _0x27ee03 in _0x582703){let _0x5b0298=(_0x35b94f=_0x44f99e[_0x2987cd[_0x58f878(0xff)]])===null||_0x35b94f===void 0x0?void 0x0:_0x35b94f[_0x58f878(0xf0)](_0xad220d=>_0xad220d[_0x58f878(0x128)]==_0x27ee03&&_0xad220d[_0x58f878(0x11c)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0xad220d===null||_0xad220d===void 0x0?void 0x0:_0xad220d['metadata']));if(_0x5b0298===null||_0x5b0298===void 0x0?void 0x0:_0x5b0298[_0x58f878(0xf2)]){let _0x97c935=convertTypeToString(_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x11b)]||0x0);if([_0x58f878(0xeb),_0x58f878(0xe6)][_0x58f878(0x123)](_0x97c935)!=-0x1&&_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)][_0x58f878(0x123)](':')==-0x1&&!_0x5213c5[_0x58f878(0x132)][_0x58f878(0xf0)](_0x30bc98=>_0x30bc98[_0x58f878(0x11c)]==_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)]))_0x5213c5['request'][_0x58f878(0x122)]({'key':_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)],'title':_0x5b0298[_0x58f878(0xf2)][_0x58f878(0x124)],'type':convertSchemaType(_0x582703[_0x5b0298[_0x58f878(0x128)]]['name']),'required':![],'default':'','desc':''});else{if(_0x97c935==_0x58f878(0x116)){let _0x292567=((_0x32b526=_0x5b0298===null||_0x5b0298===void 0x0?void 0x0:_0x5b0298[_0x58f878(0xf2)])===null||_0x32b526===void 0x0?void 0x0:_0x32b526['propertyData'])||_0x58f878(0x116);_0x292567[_0x58f878(0x123)](':')==-0x1&&!_0x5213c5[_0x58f878(0x132)][_0x58f878(0xf0)](_0x16c440=>_0x16c440[_0x58f878(0x11c)]==_0x292567&&_0x16c440[_0x58f878(0x11b)]==_0x58f878(0x116))&&_0x5213c5[_0x58f878(0x132)][_0x58f878(0x122)]({'key':_0x292567,'title':'文件上传-'+_0x292567,'type':_0x58f878(0x116),'required':!![],'default':'','desc':''});}}}else{const _0x293220=(0x0,decorator_3[_0x58f878(0x106)])(validator_1[_0x58f878(0x11d)],_0x582703[_0x27ee03]);_0x293220&&_0x5213c5[_0x58f878(0x132)][_0x58f878(0x122)](...getJoiRequest(_0x293220));}}}_0x4bb7af['routes'][_0x58f878(0x122)](_0x5213c5);}}if(_0x4bb7af[_0x58f878(0x101)][_0x58f878(0xdd)]>0x0){let _0xb288b2=_0xdf969f[_0x54f1e7];_0xb288b2?(_0xb288b2[_0x58f878(0xfa)]!=_0x4bb7af[_0x58f878(0xfa)]&&(_0xb288b2[_0x58f878(0xfa)]=_0xb288b2[_0x58f878(0xfa)]+','+_0x4bb7af['summary']),_0xb288b2[_0x58f878(0xe1)]!=_0x4bb7af[_0x58f878(0xe1)]&&(_0xb288b2['description']=_0xb288b2[_0x58f878(0xe1)]+','+_0x4bb7af[_0x58f878(0xe1)]),_0xb288b2[_0x58f878(0x101)]=_0xb288b2['routes']['concat'](_0x4bb7af[_0x58f878(0x101)]),_0xdf969f[_0x54f1e7]=_0xb288b2):_0xdf969f[_0x54f1e7]=_0x4bb7af;}}}return _0xdf969f;}exports[a8_0x5afa02(0x111)]=getRoutes;function a8_0x3e1c(_0x51a662,_0x54baff){const _0x2e6f0d=a8_0x2e6f();return a8_0x3e1c=function(_0x3e1c87,_0x445362){_0x3e1c87=_0x3e1c87-0xda;let _0x22d614=_0x2e6f0d[_0x3e1c87];return _0x22d614;},a8_0x3e1c(_0x51a662,_0x54baff);}function getJoiRequest(_0x466467){const _0x56195b=a8_0x5afa02,_0x3d27d6=[];for(let _0x5ff6a6 in _0x466467){const _0x3a3d8e={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x437be8=typeof _0x466467[_0x5ff6a6][_0x56195b(0x12b)]=='function'?_0x466467[_0x5ff6a6][_0x56195b(0x12b)]():_0x466467[_0x5ff6a6];_0x3a3d8e[_0x56195b(0x11c)]=_0x5ff6a6,_0x3a3d8e[_0x56195b(0x11b)]=_0x437be8['type'],_0x3a3d8e['title']=(0x0,lodash_1[_0x56195b(0xec)])(_0x437be8,_0x56195b(0x125),_0x5ff6a6),_0x3a3d8e[_0x56195b(0x117)]=(0x0,lodash_1[_0x56195b(0xec)])(_0x437be8,_0x56195b(0x127),''),_0x3a3d8e[_0x56195b(0xe3)]=(0x0,lodash_1['get'])(_0x437be8,'flags.presence','')==_0x56195b(0xe3),_0x3a3d8e[_0x56195b(0xe1)]=(0x0,lodash_1[_0x56195b(0xec)])(_0x437be8,_0x56195b(0xfd),'');if(_0x437be8['type']==_0x56195b(0xfe))_0x3a3d8e[_0x56195b(0x120)]=getJoiRequest(_0x437be8['keys']);else _0x437be8[_0x56195b(0x11b)]=='array'&&_0x437be8[_0x56195b(0x10c)]&&Array[_0x56195b(0x119)](_0x437be8[_0x56195b(0x10c)])&&_0x437be8[_0x56195b(0x10c)][0x0]&&console[_0x56195b(0x105)](_0x5ff6a6+_0x56195b(0x11a),_0x437be8);_0x437be8[_0x56195b(0x12c)]&&Array['isArray'](_0x437be8[_0x56195b(0x12c)])&&_0x437be8[_0x56195b(0x12c)][_0x56195b(0xdd)]>0x0&&(_0x3a3d8e[_0x56195b(0xe1)]=_0x56195b(0xea)+_0x437be8[_0x56195b(0x12c)]['join'](',')+'];'+_0x3a3d8e[_0x56195b(0xe1)]);if(_0x3a3d8e[_0x56195b(0x11c)]&&_0x3a3d8e[_0x56195b(0x11b)]){const _0x21fec6={};for(const _0x3ebf7e of _0x437be8[_0x56195b(0x133)]||[]){if(_0x3ebf7e[_0x56195b(0xfb)]===_0x56195b(0x121)&&_0x3ebf7e[_0x56195b(0xee)])_0x21fec6[_0x56195b(0x121)]=_0x3ebf7e[_0x56195b(0xee)]['limit'];else _0x3ebf7e[_0x56195b(0xfb)]===_0x56195b(0x107)&&(_0x21fec6[_0x56195b(0x107)]=_0x3ebf7e[_0x56195b(0xee)][_0x56195b(0x102)]);}_0x3a3d8e['rules']=_0x21fec6;}_0x3a3d8e['key']&&_0x3a3d8e[_0x56195b(0xe8)]&&_0x3d27d6[_0x56195b(0x122)](_0x3a3d8e);}return _0x3d27d6;}function convertSchemaType(_0x569502){const _0x1c4ff9=a8_0x5afa02;switch(_0x569502){case _0x1c4ff9(0xe9):return'object';case _0x1c4ff9(0xda):return'boolean';case _0x1c4ff9(0x12e):return _0x1c4ff9(0xf7);case'String':return'string';case _0x1c4ff9(0xe4):return _0x1c4ff9(0x116);default:return _0x1c4ff9(0x10e);}}function convertTypeToString(_0x11e344){const _0x7a06a0=a8_0x5afa02;switch(_0x11e344){case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0xf9)]:return'header';case decorator_1[_0x7a06a0(0xed)]['QUERY']:return'query';case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x12f)]:return _0x7a06a0(0x114);case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x110)]:return _0x7a06a0(0xe6);case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x135)]:case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0x136)]:case decorator_1[_0x7a06a0(0xed)][_0x7a06a0(0xf4)]:return _0x7a06a0(0x116);default:return _0x7a06a0(0x113);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x298022=a9_0x2f2b;(function(_0x3d056a,_0x2ce759){var _0x111bcf=a9_0x2f2b,_0x54c2bf=_0x3d056a();while(!![]){try{var _0x5e3b9b=parseInt(_0x111bcf(0x168))/0x1+-parseInt(_0x111bcf(0x147))/0x2+-parseInt(_0x111bcf(0x15e))/0x3+parseInt(_0x111bcf(0x163))/0x4*(-parseInt(_0x111bcf(0x176))/0x5)+parseInt(_0x111bcf(0x175))/0x6+parseInt(_0x111bcf(0x155))/0x7*(parseInt(_0x111bcf(0x16a))/0x8)+-parseInt(_0x111bcf(0x170))/0x9*(-parseInt(_0x111bcf(0x16d))/0xa);if(_0x5e3b9b===_0x2ce759)break;else _0x54c2bf['push'](_0x54c2bf['shift']());}catch(_0x175d23){_0x54c2bf['push'](_0x54c2bf['shift']());}}}(a9_0x29e9,0x6fdbe));var __createBinding=this&&this[a9_0x298022(0x156)]||(Object[a9_0x298022(0x146)]?function(_0x5eeca6,_0x1f0183,_0x19e677,_0x5e6d78){var _0x4a2e83=a9_0x298022;if(_0x5e6d78===undefined)_0x5e6d78=_0x19e677;var _0x4a50d4=Object['getOwnPropertyDescriptor'](_0x1f0183,_0x19e677);(!_0x4a50d4||(_0x4a2e83(0x154)in _0x4a50d4?!_0x1f0183[_0x4a2e83(0x166)]:_0x4a50d4[_0x4a2e83(0x140)]||_0x4a50d4['configurable']))&&(_0x4a50d4={'enumerable':!![],'get':function(){return _0x1f0183[_0x19e677];}}),Object[_0x4a2e83(0x157)](_0x5eeca6,_0x5e6d78,_0x4a50d4);}:function(_0x52466e,_0x4a1e43,_0x5cdc5b,_0x5b2b26){if(_0x5b2b26===undefined)_0x5b2b26=_0x5cdc5b;_0x52466e[_0x5b2b26]=_0x4a1e43[_0x5cdc5b];}),__exportStar=this&&this[a9_0x298022(0x172)]||function(_0x45fca2,_0x188ef0){var _0x2e9e1f=a9_0x298022;for(var _0xdae2a3 in _0x45fca2)if(_0xdae2a3!==_0x2e9e1f(0x158)&&!Object[_0x2e9e1f(0x152)][_0x2e9e1f(0x13c)]['call'](_0x188ef0,_0xdae2a3))__createBinding(_0x188ef0,_0x45fca2,_0xdae2a3);};Object[a9_0x298022(0x157)](exports,a9_0x298022(0x166),{'value':!![]}),exports[a9_0x298022(0x16e)]=exports['ScopeEnum']=exports[a9_0x298022(0x16b)]=exports[a9_0x298022(0x16c)]=exports[a9_0x298022(0x16f)]=exports[a9_0x298022(0x173)]=exports[a9_0x298022(0x159)]=exports[a9_0x298022(0x162)]=exports[a9_0x298022(0x15b)]=exports[a9_0x298022(0x144)]=exports[a9_0x298022(0x165)]=exports[a9_0x298022(0x14f)]=exports['Body']=exports[a9_0x298022(0x145)]=exports[a9_0x298022(0x13b)]=exports[a9_0x298022(0x150)]=exports[a9_0x298022(0x161)]=exports['ValidatorService']=exports[a9_0x298022(0x148)]=exports['ExcelService']=exports[a9_0x298022(0x14e)]=exports['EventService']=exports[a9_0x298022(0x167)]=exports[a9_0x298022(0x15a)]=exports[a9_0x298022(0x13e)]=exports[a9_0x298022(0x14a)]=exports[a9_0x298022(0x171)]=exports[a9_0x298022(0x15c)]=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');function a9_0x29e9(){var _0x4e43b2=['@midwayjs/decorator','getRoutes','./decorator/Action','@anncic-api/validator','ValidatorService','ApiService','Param','File','@midwayjs/task','prototype','./helper/getRoutes','get','2394098WDrqQr','__createBinding','defineProperty','default','Config','QueueService','Init','Action','Api','2160765RYxqMz','@anncic-api/cache','ExcelService','Configuration','App','2306364TFpLZX','./service/ApitestService','Query','__esModule','CacheService','358013CbKkmW','./configuration','8NPFILQ','Scope','Inject','2370zwTSZl','getAppsConfig','Provide','63099QgeuPU','Apitest','__exportStar','Logger','EventService','1482492wdcWit','5zHwCth','./service/ApiService','ScopeEnum','Files','hasOwnProperty','./exception/ApiError','ApiError','./decorator/ActionApi','writable','./service/ExcelService','Body','CustomConfiguration','Headers','Fields','create','1707392WiaXZi','ValidatorError'];a9_0x29e9=function(){return _0x4e43b2;};return a9_0x29e9();}Object[a9_0x298022(0x157)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x4c560a=a9_0x298022;return getAppsConfig_1[_0x4c560a(0x16e)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x298022(0x164)),exports);var ActionApi_1=require(a9_0x298022(0x13f));Object['defineProperty'](exports,'Api',{'enumerable':!![],'get':function(){var _0x8a3131=a9_0x298022;return ActionApi_1[_0x8a3131(0x15d)];}});var Action_1=require(a9_0x298022(0x14b));Object['defineProperty'](exports,a9_0x298022(0x15c),{'enumerable':!![],'get':function(){var _0x2cfe89=a9_0x298022;return Action_1[_0x2cfe89(0x15c)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x298022(0x157)](exports,a9_0x298022(0x171),{'enumerable':!![],'get':function(){var _0x51e264=a9_0x298022;return ActionApitest_1[_0x51e264(0x171)];}});var getRoutes_1=require(a9_0x298022(0x153));Object[a9_0x298022(0x157)](exports,a9_0x298022(0x14a),{'enumerable':!![],'get':function(){var _0x12e95d=a9_0x298022;return getRoutes_1[_0x12e95d(0x14a)];}});var ApiError_1=require(a9_0x298022(0x13d));Object[a9_0x298022(0x157)](exports,'ApiError',{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a9_0x298022(0x151));Object[a9_0x298022(0x157)](exports,a9_0x298022(0x15a),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a9_0x298022(0x15f));Object[a9_0x298022(0x157)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x393b1d=a9_0x298022;return cache_1[_0x393b1d(0x167)];}});function a9_0x2f2b(_0xb60312,_0xcc0d5a){var _0x29e968=a9_0x29e9();return a9_0x2f2b=function(_0x2f2ba4,_0x4198b0){_0x2f2ba4=_0x2f2ba4-0x13a;var _0x282468=_0x29e968[_0x2f2ba4];return _0x282468;},a9_0x2f2b(_0xb60312,_0xcc0d5a);}var event_1=require('@anncic-api/event');Object[a9_0x298022(0x157)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x1e80de=a9_0x298022;return event_1[_0x1e80de(0x174)];}});var ApiService_1=require(a9_0x298022(0x177));Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x298022(0x141));Object[a9_0x298022(0x157)](exports,a9_0x298022(0x160),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x298022(0x14c));Object['defineProperty'](exports,a9_0x298022(0x148),{'enumerable':!![],'get':function(){var _0x47a297=a9_0x298022;return validator_1[_0x47a297(0x148)];}}),Object[a9_0x298022(0x157)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x57daab=a9_0x298022;return validator_1[_0x57daab(0x14d)];}});var configuration_1=require(a9_0x298022(0x169));Object['defineProperty'](exports,a9_0x298022(0x161),{'enumerable':!![],'get':function(){var _0x357829=a9_0x298022;return configuration_1[_0x357829(0x143)];}});var decorator_1=require(a9_0x298022(0x149));Object[a9_0x298022(0x157)](exports,a9_0x298022(0x150),{'enumerable':!![],'get':function(){var _0x5a2c53=a9_0x298022;return decorator_1[_0x5a2c53(0x150)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x13b),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x145),{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object['defineProperty'](exports,a9_0x298022(0x142),{'enumerable':!![],'get':function(){var _0x124d63=a9_0x298022;return decorator_1[_0x124d63(0x142)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x14f),{'enumerable':!![],'get':function(){var _0x1de970=a9_0x298022;return decorator_1[_0x1de970(0x14f)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x165),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x144),{'enumerable':!![],'get':function(){var _0x58d094=a9_0x298022;return decorator_1[_0x58d094(0x144)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x15b),{'enumerable':!![],'get':function(){return decorator_1['Init'];}});var decorator_2=require('@midwayjs/decorator');Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a9_0x298022(0x157)](exports,'Config',{'enumerable':!![],'get':function(){var _0x5749de=a9_0x298022;return decorator_2[_0x5749de(0x159)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x173),{'enumerable':!![],'get':function(){var _0x14ee85=a9_0x298022;return decorator_2[_0x14ee85(0x173)];}}),Object['defineProperty'](exports,a9_0x298022(0x16f),{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object['defineProperty'](exports,a9_0x298022(0x16c),{'enumerable':!![],'get':function(){var _0x2461a4=a9_0x298022;return decorator_2[_0x2461a4(0x16c)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x16b),{'enumerable':!![],'get':function(){var _0x2b26d2=a9_0x298022;return decorator_2[_0x2b26d2(0x16b)];}}),Object[a9_0x298022(0x157)](exports,a9_0x298022(0x13a),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}}),global[a9_0x298022(0x16e)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x404186=a10_0x54a2;(function(_0x591e05,_0x4ac06f){var _0xadf014=a10_0x54a2,_0x463f98=_0x591e05();while(!![]){try{var _0xa925=parseInt(_0xadf014(0x12d))/0x1+parseInt(_0xadf014(0x133))/0x2*(-parseInt(_0xadf014(0x123))/0x3)+parseInt(_0xadf014(0x14d))/0x4*(-parseInt(_0xadf014(0x12f))/0x5)+parseInt(_0xadf014(0x126))/0x6*(-parseInt(_0xadf014(0x132))/0x7)+-parseInt(_0xadf014(0x129))/0x8*(parseInt(_0xadf014(0x13d))/0x9)+parseInt(_0xadf014(0x124))/0xa*(parseInt(_0xadf014(0x142))/0xb)+parseInt(_0xadf014(0x146))/0xc*(parseInt(_0xadf014(0x149))/0xd);if(_0xa925===_0x4ac06f)break;else _0x463f98['push'](_0x463f98['shift']());}catch(_0x7c4f5){_0x463f98['push'](_0x463f98['shift']());}}}(a10_0x344d,0x888e0));var __decorate=this&&this[a10_0x404186(0x128)]||function(_0x2d268a,_0x393518,_0x446d47,_0x4b1f45){var _0x45f918=a10_0x404186,_0x4c2a07=arguments[_0x45f918(0x14e)],_0x4fe2ab=_0x4c2a07<0x3?_0x393518:_0x4b1f45===null?_0x4b1f45=Object[_0x45f918(0x144)](_0x393518,_0x446d47):_0x4b1f45,_0x43157b;if(typeof Reflect==='object'&&typeof Reflect[_0x45f918(0x12a)]===_0x45f918(0x151))_0x4fe2ab=Reflect['decorate'](_0x2d268a,_0x393518,_0x446d47,_0x4b1f45);else{for(var _0x3947aa=_0x2d268a[_0x45f918(0x14e)]-0x1;_0x3947aa>=0x0;_0x3947aa--)if(_0x43157b=_0x2d268a[_0x3947aa])_0x4fe2ab=(_0x4c2a07<0x3?_0x43157b(_0x4fe2ab):_0x4c2a07>0x3?_0x43157b(_0x393518,_0x446d47,_0x4fe2ab):_0x43157b(_0x393518,_0x446d47))||_0x4fe2ab;}return _0x4c2a07>0x3&&_0x4fe2ab&&Object['defineProperty'](_0x393518,_0x446d47,_0x4fe2ab),_0x4fe2ab;},__metadata=this&&this[a10_0x404186(0x13a)]||function(_0x1e1706,_0x194430){var _0x715e6d=a10_0x404186;if(typeof Reflect===_0x715e6d(0x131)&&typeof Reflect[_0x715e6d(0x12e)]==='function')return Reflect[_0x715e6d(0x12e)](_0x1e1706,_0x194430);};function a10_0x344d(){var _0xa4f84a=['__metadata','Singleton','fromEntries','1402965vByNjY','secret','getsign','ScopeEnum','HEADERS_LACK','355773MvsckA','../exception/ApiError','getOwnPropertyDescriptor','token','24XpnEXK','requesttime','toString','14707589XHFGaR','logintime','checkcode','devices','4371316VCsAIG','length','now','ApiService','function','entries','undefined','HEADERS_DEVICE','design:type','map','ApiError','signature','3eNniNs','310pDdZAb','abs','1232598VFNzof','config','__decorate','48XTBOWv','decorate','TIMEOUT','timeout','884644HnAWhQ','metadata','5tCdttU','push','object','35raBTOz','1070702rYlpGl','password','缺少头信息:','HEADERS_CHECKCODE','crypto-js','MD5','device'];a10_0x344d=function(){return _0xa4f84a;};return a10_0x344d();}function a10_0x54a2(_0x432dbe,_0x267714){var _0x344d6b=a10_0x344d();return a10_0x54a2=function(_0x54a2fb,_0x3b2912){_0x54a2fb=_0x54a2fb-0x121;var _0x2f089f=_0x344d6b[_0x54a2fb];return _0x2f089f;},a10_0x54a2(_0x432dbe,_0x267714);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10_0x404186(0x150)]=void 0x0;const crypto_js_1=require(a10_0x404186(0x137)),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x404186(0x143));let ApiService=class ApiService{[a10_0x404186(0x134)](_0x5f02ef){var _0x5a0464=a10_0x404186,_0x473dc2;return _0x5f02ef?(0x0,crypto_js_1['MD5'])(_0x5f02ef+(0x0,crypto_js_1[_0x5a0464(0x138)])((0x0,crypto_js_1[_0x5a0464(0x138)])(_0x5f02ef)[_0x5a0464(0x148)]()+((_0x473dc2=this[_0x5a0464(0x127)])===null||_0x473dc2===void 0x0?void 0x0:_0x473dc2[_0x5a0464(0x134)]))[_0x5a0464(0x148)]())[_0x5a0464(0x148)]():'';}['getcheck'](_0x1af41f,_0x1cc056,_0x5afaa3=Date[a10_0x404186(0x14f)]()){var _0xaaa26b=a10_0x404186;return{'Token':_0x1af41f,'Logintime':_0x5afaa3,'Checkcode':this[_0xaaa26b(0x14b)](_0x1af41f,_0x1cc056,_0x5afaa3)};}['getsign'](_0x4a45eb={}){var _0xda2158=a10_0x404186;const _0x10a5eb=[],_0x428fd5=Object[_0xda2158(0x13c)](Object[_0xda2158(0x152)](_0x4a45eb)[_0xda2158(0x156)](_0x5371cd=>[_0x5371cd[0x0]['toLowerCase'](),_0x5371cd[0x1]]));for(let _0x353fee of[_0xda2158(0x139),_0xda2158(0x147),_0xda2158(0x145),_0xda2158(0x14a),_0xda2158(0x14b)]){if(typeof _0x428fd5[_0x353fee]==_0xda2158(0x153))throw new AnnError(ApiError_1[_0xda2158(0x121)][_0xda2158(0x141)],{'message':_0xda2158(0x135)+_0x353fee});_0x10a5eb[_0xda2158(0x130)](_0x353fee+'='+_0x428fd5[_0x353fee]);}if(Math[_0xda2158(0x125)](_0x428fd5[_0xda2158(0x147)])-Date['now']()>this[_0xda2158(0x127)][_0xda2158(0x12c)])throw new AnnError(ApiError_1[_0xda2158(0x121)][_0xda2158(0x12b)]);if(!this['config'][_0xda2158(0x14c)][_0x428fd5[_0xda2158(0x139)]]||!this[_0xda2158(0x127)][_0xda2158(0x14c)][_0x428fd5[_0xda2158(0x139)]][_0xda2158(0x13e)]||!this[_0xda2158(0x127)][_0xda2158(0x14c)][_0x428fd5[_0xda2158(0x139)]][_0xda2158(0x14b)])throw new AnnError(ApiError_1[_0xda2158(0x121)]['HEADERS_DEVICE']);if(_0x428fd5[_0xda2158(0x145)]&&_0x428fd5[_0xda2158(0x14b)]!=this[_0xda2158(0x14b)](_0x428fd5['token'],_0x428fd5[_0xda2158(0x139)],_0x428fd5[_0xda2158(0x14a)]))throw new AnnError(ApiError_1[_0xda2158(0x121)][_0xda2158(0x136)]);return _0x10a5eb[_0xda2158(0x130)]('secret='+this['config'][_0xda2158(0x14c)][_0x428fd5[_0xda2158(0x139)]][_0xda2158(0x13e)]),(0x0,crypto_js_1[_0xda2158(0x138)])(_0x10a5eb['sort']()['join'](''))[_0xda2158(0x148)]();}[a10_0x404186(0x14b)](_0x41b031,_0x219323,_0x331d24=Date[a10_0x404186(0x14f)]()){var _0x3ce983=a10_0x404186,_0x3355eb,_0x505a47,_0x535b35;if(!((_0x3355eb=this['config'])===null||_0x3355eb===void 0x0?void 0x0:_0x3355eb[_0x3ce983(0x14c)][_0x219323])||!((_0x535b35=(_0x505a47=this[_0x3ce983(0x127)])===null||_0x505a47===void 0x0?void 0x0:_0x505a47[_0x3ce983(0x14c)][_0x219323])===null||_0x535b35===void 0x0?void 0x0:_0x535b35['checkcode']))throw new AnnError(ApiError_1[_0x3ce983(0x121)][_0x3ce983(0x154)]);return(0x0,crypto_js_1['MD5'])(_0x41b031+(0x0,crypto_js_1[_0x3ce983(0x138)])(_0x331d24+this[_0x3ce983(0x127)]['devices'][_0x219323][_0x3ce983(0x14b)])[_0x3ce983(0x148)]())[_0x3ce983(0x148)]();}['checksign'](_0x421bb1={}){var _0x82edfe=a10_0x404186;const _0x14f416=Object[_0x82edfe(0x13c)](Object['entries'](_0x421bb1)[_0x82edfe(0x156)](_0x51a557=>[_0x51a557[0x0]['toLowerCase'](),_0x51a557[0x1]]));if(!(_0x14f416===null||_0x14f416===void 0x0?void 0x0:_0x14f416[_0x82edfe(0x122)]))throw new AnnError(ApiError_1[_0x82edfe(0x121)][_0x82edfe(0x141)],{'message':'缺少头信息:signature'});if((_0x14f416===null||_0x14f416===void 0x0?void 0x0:_0x14f416[_0x82edfe(0x122)])!=this[_0x82edfe(0x13f)](_0x14f416))throw new AnnError(ApiError_1[_0x82edfe(0x121)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1['Config'])('anncicapi'),__metadata(a10_0x404186(0x155),Object)],ApiService['prototype'],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1['Scope'])(decorator_1[a10_0x404186(0x140)][a10_0x404186(0x13b)])],ApiService),exports[a10_0x404186(0x150)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x84fdf6=a11_0x23e3;(function(_0x3d9975,_0x478c05){const _0x234e8c=a11_0x23e3,_0x51f5cd=_0x3d9975();while(!![]){try{const _0x184513=parseInt(_0x234e8c(0x10a))/0x1*(-parseInt(_0x234e8c(0x122))/0x2)+-parseInt(_0x234e8c(0x116))/0x3*(-parseInt(_0x234e8c(0x117))/0x4)+-parseInt(_0x234e8c(0xe8))/0x5+parseInt(_0x234e8c(0x113))/0x6*(parseInt(_0x234e8c(0xf2))/0x7)+-parseInt(_0x234e8c(0x10c))/0x8+-parseInt(_0x234e8c(0xe9))/0x9+-parseInt(_0x234e8c(0x10e))/0xa*(-parseInt(_0x234e8c(0xf1))/0xb);if(_0x184513===_0x478c05)break;else _0x51f5cd['push'](_0x51f5cd['shift']());}catch(_0x39eaac){_0x51f5cd['push'](_0x51f5cd['shift']());}}}(a11_0x1a5d,0xc9883));var __decorate=this&&this[a11_0x84fdf6(0xe4)]||function(_0x403a74,_0x5bf35f,_0x329c66,_0x51c5b4){const _0x385d7f=a11_0x84fdf6;var _0x45cd64=arguments[_0x385d7f(0xed)],_0x19018c=_0x45cd64<0x3?_0x5bf35f:_0x51c5b4===null?_0x51c5b4=Object['getOwnPropertyDescriptor'](_0x5bf35f,_0x329c66):_0x51c5b4,_0x35b71a;if(typeof Reflect===_0x385d7f(0x125)&&typeof Reflect[_0x385d7f(0x121)]===_0x385d7f(0xfc))_0x19018c=Reflect[_0x385d7f(0x121)](_0x403a74,_0x5bf35f,_0x329c66,_0x51c5b4);else{for(var _0x44c90f=_0x403a74['length']-0x1;_0x44c90f>=0x0;_0x44c90f--)if(_0x35b71a=_0x403a74[_0x44c90f])_0x19018c=(_0x45cd64<0x3?_0x35b71a(_0x19018c):_0x45cd64>0x3?_0x35b71a(_0x5bf35f,_0x329c66,_0x19018c):_0x35b71a(_0x5bf35f,_0x329c66))||_0x19018c;}return _0x45cd64>0x3&&_0x19018c&&Object[_0x385d7f(0x112)](_0x5bf35f,_0x329c66,_0x19018c),_0x19018c;},__metadata=this&&this[a11_0x84fdf6(0xf3)]||function(_0x4e6f4c,_0x3302f0){const _0x563577=a11_0x84fdf6;if(typeof Reflect===_0x563577(0x125)&&typeof Reflect[_0x563577(0x12c)]===_0x563577(0xfc))return Reflect[_0x563577(0x12c)](_0x4e6f4c,_0x3302f0);},__param=this&&this[a11_0x84fdf6(0x110)]||function(_0x30c0e4,_0x4d2831){return function(_0x1cf7c1,_0x4bb40d){_0x4d2831(_0x1cf7c1,_0x4bb40d,_0x30c0e4);};};Object[a11_0x84fdf6(0x112)](exports,a11_0x84fdf6(0x109),{'value':!![]}),exports[a11_0x84fdf6(0xff)]=exports[a11_0x84fdf6(0x11a)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x84fdf6(0xf7)),decorator_1=require(a11_0x84fdf6(0xfe)),decorator_2=require(a11_0x84fdf6(0xfe)),getRoutes_1=require(a11_0x84fdf6(0x126));let ApitestService=class ApitestService{async[a11_0x84fdf6(0x118)](_0x5c8fb9){const _0x482f30=a11_0x84fdf6,_0x274452=(0x0,getRoutes_1[_0x482f30(0xf8)])(_0x5c8fb9),_0x5b5474=[];for(let _0x3511c2 in _0x274452){for(let _0x1b3313 in _0x274452[_0x3511c2][_0x482f30(0xec)]){let _0x5a9248=_0x274452[_0x3511c2][_0x482f30(0xec)][_0x1b3313],_0x32a033=[];for(let _0x1c45d1 in _0x5a9248['request']){_0x32a033['push'](_0x5a9248[_0x482f30(0x104)][_0x1c45d1]);}_0x5b5474[_0x482f30(0x123)]({'title':_0x274452[_0x3511c2]['summary']+':'+_0x5a9248[_0x482f30(0x12a)],'prefix':_0x274452[_0x3511c2]['prefix'],'router':_0x5a9248[_0x482f30(0xf4)],'method':_0x5a9248[_0x482f30(0xfb)],'describe':_0x5a9248['description']||'','filepath':_0x274452[_0x3511c2]['filepath']||'','request':_0x32a033});}}const _0x30cd2c=(0x0,path_1[_0x482f30(0xe2)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x482f30(0xf5)])(_0x30cd2c,{'encoding':_0x482f30(0x105)})[_0x482f30(0xde)](/__res__/g,'/apiteststatic/')[_0x482f30(0xde)](_0x482f30(0x114),JSON[_0x482f30(0x100)](_0x5b5474))[_0x482f30(0xde)](_0x482f30(0xe0),JSON['stringify'](this[_0x482f30(0xf0)][_0x482f30(0x11d)]));}};__decorate([(0x0,decorator_2[a11_0x84fdf6(0xe5)])(a11_0x84fdf6(0xf9)),__metadata(a11_0x84fdf6(0x11f),Object)],ApitestService['prototype'],a11_0x84fdf6(0xf0),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])(a11_0x84fdf6(0x127)),(0x0,decorator_2[a11_0x84fdf6(0xdd)])(decorator_2[a11_0x84fdf6(0xe3)][a11_0x84fdf6(0x12b)])],ApitestService),exports['ApitestService']=ApitestService;function a11_0x23e3(_0x3b6fb1,_0x249f5b){const _0x1a5dac=a11_0x1a5d();return a11_0x23e3=function(_0x23e3bd,_0x1a9430){_0x23e3bd=_0x23e3bd-0xdd;let _0x397ba0=_0x1a5dac[_0x23e3bd];return _0x397ba0;},a11_0x23e3(_0x3b6fb1,_0x249f5b);}let ApitestStaticController=class ApitestStaticController{async[a11_0x84fdf6(0x106)](){const _0x1cfe4d=a11_0x84fdf6;if(this['apitest']){const _0xbedd43={'module':![]};return this[_0x1cfe4d(0xe7)][_0x1cfe4d(0xe1)]()&&(_0xbedd43[_0x1cfe4d(0xef)]=!![]),await this[_0x1cfe4d(0x11a)][_0x1cfe4d(0x118)](_0xbedd43);}return'';}async[a11_0x84fdf6(0xdf)](_0x44fc0a){const _0x4129b0=a11_0x84fdf6;if(this[_0x4129b0(0x127)]){const _0x1cc32a={'module':_0x44fc0a};return this['Environment']['isDevelopmentEnvironment']()&&(_0x1cc32a[_0x4129b0(0xef)]=!![]),await this[_0x4129b0(0x11a)][_0x4129b0(0x118)](_0x1cc32a);}return'';}async[a11_0x84fdf6(0x11b)](){const _0x586f23=a11_0x84fdf6;if((0x0,path_1[_0x586f23(0x120)])(this['ctx']['request'][_0x586f23(0x102)])){var _0x2e0311=(0x0,path_1[_0x586f23(0xe2)])(__dirname,_0x586f23(0x115)+this[_0x586f23(0x10d)][_0x586f23(0x104)]['url'][_0x586f23(0xde)]('/apiteststatic/','/'));if(_0x2e0311[_0x586f23(0xee)](_0x2e0311[_0x586f23(0xed)]-0xb)!=_0x586f23(0x11e)){this[_0x586f23(0x10d)][_0x586f23(0xe6)]('cache-control',_0x586f23(0x10b));if((0x0,path_1[_0x586f23(0x120)])(this[_0x586f23(0x10d)][_0x586f23(0x104)][_0x586f23(0x102)])=='.js')this[_0x586f23(0x10d)]['set'](_0x586f23(0xea),_0x586f23(0xf6));else(0x0,path_1[_0x586f23(0x120)])(this['ctx'][_0x586f23(0x104)][_0x586f23(0x102)])=='.css'&&this[_0x586f23(0x10d)]['set'](_0x586f23(0xea),_0x586f23(0x119));return(0x0,fs_1[_0x586f23(0x10f)])(_0x2e0311)&&(0x0,fs_1['readFileSync'])(_0x2e0311,{'encoding':_0x586f23(0x105)});}}return'';}};function a11_0x1a5d(){const _0x5a3e79=['push','/apitest','object','../helper/getRoutes','apitest','design:paramtypes','Get','summary','Singleton','metadata','Scope','replace','apitestmodule','__devices__','isDevelopmentEnvironment','join','ScopeEnum','__decorate','Config','set','Environment','5683765fLIAXl','4690530FKchCk','content-type','Request','routes','length','substring','filepath','config','10120YDJBNP','7BltQFG','__metadata','route','readFileSync','application/javascript;\x20charset=utf-8','@midwayjs/core','getRoutes','anncicapi','Param','method','function','module','@midwayjs/decorator','ApitestStaticController','stringify','MidwayEnvironmentService','url','design:returntype','request','utf-8','apitesthtml','Controller','prototype','__esModule','34MruSHR','public,\x20max-age=604800','4650416XIhwTu','ctx','21520XzGTZz','existsSync','__param','/apiteststatic/*','defineProperty','6558000PpAewx','__apiList__','../../public/','24918PRqtNA','348DRqjbm','apidoc','text/css;\x20charset=utf-8','ApitestService','apiteststatic','Inject','devices','/index.html','design:type','extname','decorate','42986LYpgOY'];a11_0x1a5d=function(){return _0x5a3e79;};return a11_0x1a5d();}__decorate([(0x0,decorator_2[a11_0x84fdf6(0x11c)])(),__metadata(a11_0x84fdf6(0x11f),Object)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0x10d),void 0x0),__decorate([(0x0,decorator_2[a11_0x84fdf6(0x11c)])(),__metadata(a11_0x84fdf6(0x11f),core_1[a11_0x84fdf6(0x101)])],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0xe7),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x84fdf6(0x11f),ApitestService)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0x11a),void 0x0),__decorate([(0x0,decorator_2[a11_0x84fdf6(0xe5)])('apitest'),__metadata(a11_0x84fdf6(0x11f),Boolean)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0x127),void 0x0),__decorate([(0x0,decorator_2[a11_0x84fdf6(0xe5)])(a11_0x84fdf6(0xf9)),__metadata(a11_0x84fdf6(0x11f),Object)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0xf0),void 0x0),__decorate([(0x0,decorator_1[a11_0x84fdf6(0x129)])(a11_0x84fdf6(0x124)),__metadata(a11_0x84fdf6(0x11f),Function),__metadata(a11_0x84fdf6(0x128),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0x106),null),__decorate([(0x0,decorator_1[a11_0x84fdf6(0x129)])('/apitest-:module'),__param(0x0,(0x0,decorator_1[a11_0x84fdf6(0xfa)])(a11_0x84fdf6(0xfd))),__metadata(a11_0x84fdf6(0x11f),Function),__metadata(a11_0x84fdf6(0x128),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0xdf),null),__decorate([(0x0,decorator_1[a11_0x84fdf6(0x129)])(a11_0x84fdf6(0x111)),__metadata(a11_0x84fdf6(0x11f),Function),__metadata(a11_0x84fdf6(0x128),[]),__metadata(a11_0x84fdf6(0x103),Promise)],ApitestStaticController[a11_0x84fdf6(0x108)],a11_0x84fdf6(0x11b),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x84fdf6(0x107)])('/'),(0x0,decorator_2[a11_0x84fdf6(0xdd)])(decorator_2[a11_0x84fdf6(0xe3)][a11_0x84fdf6(0xeb)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0xd5c3fb=a12_0x4f1a;(function(_0x410dd3,_0x26f2b1){const _0x43829e=a12_0x4f1a,_0x2fa2a3=_0x410dd3();while(!![]){try{const _0x27db38=-parseInt(_0x43829e(0xe7))/0x1+parseInt(_0x43829e(0x11a))/0x2*(parseInt(_0x43829e(0x10a))/0x3)+-parseInt(_0x43829e(0x10c))/0x4+-parseInt(_0x43829e(0xfa))/0x5+-parseInt(_0x43829e(0xf8))/0x6+parseInt(_0x43829e(0x116))/0x7*(parseInt(_0x43829e(0x102))/0x8)+-parseInt(_0x43829e(0x105))/0x9*(-parseInt(_0x43829e(0xfd))/0xa);if(_0x27db38===_0x26f2b1)break;else _0x2fa2a3['push'](_0x2fa2a3['shift']());}catch(_0xa9ff98){_0x2fa2a3['push'](_0x2fa2a3['shift']());}}}(a12_0x5376,0x6d95c));function a12_0x5376(){const _0xbe5a34=['header','keys','startsWith','key','Workbook','ExcelService','getRow','__metadata','handler','writeFile','4828488lAXRUP','getOwnPropertyDescriptor','328390EDGCNz','App','addRow','13180EyDRyX','xlsx','toString','object','defineProperty','11304vKxXWY','value','prototype','8514MfkJZd','length','app','metadata','col','1385205VWcbyv','.xlsx','1350208zFVmWT','worksheets','findRows','push','replace','\x20is\x20read\x20fail','decorate','endsWith','Api\x20Excel\x20Error:\x20','@midwayjs/decorator','574xGRKgL','frozen','Sheet\x201','koa-send','2tGRwbr','existsSync','random','getCell','__decorate','getWorksheet','mkdirSync','substring','167591SITzcb','parse','function','cellCount','addWorksheet','getAppDir','columns'];a12_0x5376=function(){return _0xbe5a34;};return a12_0x5376();}var __decorate=this&&this[a12_0xd5c3fb(0xe3)]||function(_0x1678c2,_0x5929de,_0x3b4090,_0x3a5339){const _0x48a3eb=a12_0xd5c3fb;var _0x114896=arguments[_0x48a3eb(0x106)],_0x405268=_0x114896<0x3?_0x5929de:_0x3a5339===null?_0x3a5339=Object[_0x48a3eb(0xf9)](_0x5929de,_0x3b4090):_0x3a5339,_0x4ef43f;if(typeof Reflect===_0x48a3eb(0x100)&&typeof Reflect[_0x48a3eb(0x112)]===_0x48a3eb(0xe9))_0x405268=Reflect[_0x48a3eb(0x112)](_0x1678c2,_0x5929de,_0x3b4090,_0x3a5339);else{for(var _0x370918=_0x1678c2[_0x48a3eb(0x106)]-0x1;_0x370918>=0x0;_0x370918--)if(_0x4ef43f=_0x1678c2[_0x370918])_0x405268=(_0x114896<0x3?_0x4ef43f(_0x405268):_0x114896>0x3?_0x4ef43f(_0x5929de,_0x3b4090,_0x405268):_0x4ef43f(_0x5929de,_0x3b4090))||_0x405268;}return _0x114896>0x3&&_0x405268&&Object[_0x48a3eb(0x101)](_0x5929de,_0x3b4090,_0x405268),_0x405268;},__metadata=this&&this[a12_0xd5c3fb(0xf5)]||function(_0x447cbe,_0x164065){const _0x91c9eb=a12_0xd5c3fb;if(typeof Reflect===_0x91c9eb(0x100)&&typeof Reflect[_0x91c9eb(0x108)]==='function')return Reflect['metadata'](_0x447cbe,_0x164065);};function a12_0x4f1a(_0x409818,_0x29f955){const _0x537615=a12_0x5376();return a12_0x4f1a=function(_0x4f1a26,_0x473269){_0x4f1a26=_0x4f1a26-0xe3;let _0x4fc0e1=_0x537615[_0x4f1a26];return _0x4fc0e1;},a12_0x4f1a(_0x409818,_0x29f955);}Object[a12_0xd5c3fb(0x101)](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0xd5c3fb(0x119)),decorator_1=require(a12_0xd5c3fb(0x115));let ExcelService=class ExcelService{async[a12_0xd5c3fb(0xe8)](_0x4ad00b,_0x2ac99a,_0xcf4eb5=[0x0]){const _0x4b0f88=a12_0xd5c3fb;var _0x4e89fc,_0x750c3;const _0x29acb0=new exceljs['Workbook'](),_0x333a59=[];let _0x25800b=_0x4ad00b[_0x4b0f88(0x110)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x25800b===null||_0x25800b===void 0x0?void 0x0:_0x25800b[_0x4b0f88(0xf0)]('/'))&&(_0x25800b=this[_0x4b0f88(0x107)][_0x4b0f88(0xec)]()+'/'+_0x25800b);try{await _0x29acb0[_0x4b0f88(0xfe)]['readFile'](_0x25800b);}catch(_0xf17234){return console['log'](_0x4b0f88(0x114)+_0x25800b+_0x4b0f88(0x111)),_0x333a59;}for(const _0x58ef51 of _0xcf4eb5){const _0x35ff46=lodash['isNumber'](_0x58ef51)?((_0x4e89fc=_0x29acb0[_0x4b0f88(0x10d)])===null||_0x4e89fc===void 0x0?void 0x0:_0x4e89fc[_0x58ef51])||undefined:_0x29acb0[_0x4b0f88(0xe4)](_0x58ef51);if(_0x35ff46){var _0x2b05e2=0x1;const _0x163f31=_0x35ff46[_0x4b0f88(0xf4)](0x1),_0x2c64dd=await new Promise(_0xf437e3=>{const _0x3c151b={};_0x163f31['eachCell']((_0x2cf073,_0x543737)=>{const _0x583034=a12_0x4f1a;for(const _0x360de1 of _0x2ac99a){if(_0x2cf073[_0x583034(0x103)]==_0x360de1[_0x583034(0xee)])_0x2b05e2=0x2,_0x3c151b[_0x360de1['key']]={'header':_0x2cf073[_0x583034(0x109)],'handler':_0x360de1[_0x583034(0xf6)]};else{if(!_0x3c151b[_0x360de1['key']])try{const _0x2e43b7=_0x163f31[_0x583034(0x11d)](_0x360de1[_0x583034(0xee)]);_0x2e43b7&&(_0x3c151b[_0x360de1['key']]={'header':_0x2e43b7['col'],'handler':_0x360de1[_0x583034(0xf6)]});}catch{}}}_0x163f31[_0x583034(0xea)]==_0x543737&&_0xf437e3(_0x3c151b);});});for(const _0x3c3177 of _0x35ff46[_0x4b0f88(0x10e)](_0x2b05e2,_0x35ff46['rowCount'])){const _0x2250b7={};for(const _0x50bec0 in _0x2c64dd){_0x2c64dd[_0x50bec0][_0x4b0f88(0xee)]&&(typeof((_0x750c3=_0x2c64dd[_0x50bec0])===null||_0x750c3===void 0x0?void 0x0:_0x750c3['handler'])==_0x4b0f88(0xe9)?_0x2250b7[_0x50bec0]=_0x2c64dd[_0x50bec0][_0x4b0f88(0xf6)](_0x3c3177[_0x4b0f88(0x11d)](lodash['trim'](''+_0x2c64dd[_0x50bec0][_0x4b0f88(0xee)],'\x20'))[_0x4b0f88(0xff)]()):_0x2250b7[_0x50bec0]=_0x3c3177['getCell'](_0x2c64dd[_0x50bec0][_0x4b0f88(0xee)])['toString']());}Object[_0x4b0f88(0xef)](_0x2250b7)[_0x4b0f88(0x106)]>0x0&&_0x333a59['push'](_0x2250b7);}}}return _0x333a59;}async['export'](_0x421405,_0x35a35c,_0x1fc0c2,_0x21ad35='public/xlsx'){const _0x20eef8=a12_0xd5c3fb;var _0x551df9,_0xff7ee;const _0x5c829b=new exceljs[(_0x20eef8(0xf2))](),_0x2a7dde={},_0x563f71=[],_0x513eb3=_0x5c829b[_0x20eef8(0xeb)](_0x20eef8(0x118),{'views':[{'state':_0x20eef8(0x117),'xSplit':0x1}]});for(const _0x530945 in _0x35a35c){_0x2a7dde[_0x35a35c[_0x530945][_0x20eef8(0xf1)]]=_0x35a35c[_0x530945][_0x20eef8(0xee)],_0x563f71[_0x20eef8(0x10f)]({'header':_0x35a35c[_0x530945][_0x20eef8(0xee)],'key':(_0x551df9=_0x35a35c[_0x530945])===null||_0x551df9===void 0x0?void 0x0:_0x551df9[_0x20eef8(0xf1)]['replace'](/\./g,'_')});}_0x513eb3[_0x20eef8(0xed)]=_0x563f71;for(const _0x1cae78 of _0x1fc0c2){const _0x1b78d9={};for(const _0x5e2197 in _0x35a35c){typeof((_0xff7ee=_0x35a35c[_0x5e2197])===null||_0xff7ee===void 0x0?void 0x0:_0xff7ee[_0x20eef8(0xf6)])==_0x20eef8(0xe9)?_0x1b78d9[_0x35a35c[_0x5e2197][_0x20eef8(0xf1)][_0x20eef8(0x110)](/\./g,'_')]=await _0x35a35c[_0x5e2197][_0x20eef8(0xf6)](_0x1cae78):_0x1b78d9[_0x35a35c[_0x5e2197][_0x20eef8(0xf1)][_0x20eef8(0x110)](/\./g,'_')]=lodash['get'](_0x1cae78,_0x35a35c[_0x5e2197][_0x20eef8(0xf1)],'');}_0x513eb3[_0x20eef8(0xfc)](_0x1b78d9);}let _0x906ebe='';const _0x28798d=_0x421405+'-'+lodash[_0x20eef8(0x11c)](0x2710,0x1869f)+_0x20eef8(0x10b);if(_0x21ad35&&_0x21ad35[_0x20eef8(0xf0)]('/'))_0x906ebe=''+_0x21ad35;else _0x21ad35&&!_0x21ad35['startsWith']('/')&&!_0x21ad35[_0x20eef8(0xf0)]('\x5c')?_0x906ebe=this[_0x20eef8(0x107)][_0x20eef8(0xec)]()+'/'+_0x21ad35:_0x906ebe=this[_0x20eef8(0x107)]['getAppDir']()+'/public/xlsx';return(_0x906ebe[_0x20eef8(0x113)]('/')||_0x906ebe['endsWith']('\x5c'))&&(_0x906ebe=_0x906ebe[_0x20eef8(0xe6)](0x0,_0x906ebe[_0x20eef8(0x106)]-0x1)),_0x906ebe=_0x906ebe['replace'](/(\\|\/)/g,'/')[_0x20eef8(0x110)](/\/{2,}/g,'/'),!fs[_0x20eef8(0x11b)](_0x906ebe)&&fs[_0x20eef8(0xe5)](_0x906ebe,{'recursive':!![]}),await _0x5c829b[_0x20eef8(0xfe)][_0x20eef8(0xf7)]((_0x906ebe+'/'+_0x28798d)['replace'](/(\\|\/)/g,'/')[_0x20eef8(0x110)](/\/{2,}/g,'/')),{'filename':_0x28798d,'filepath':(_0x906ebe['substring']((''+this[_0x20eef8(0x107)][_0x20eef8(0xec)]())[_0x20eef8(0x106)])+'/'+_0x28798d)[_0x20eef8(0x110)](/(\\|\/)/g,'/')[_0x20eef8(0x110)](/\/{2,}/g,'/')};}async['download'](_0x1e8147,_0xbadfdd){return await koasend(_0x1e8147,''+_0xbadfdd);}};__decorate([(0x0,decorator_1[a12_0xd5c3fb(0xfb)])(),__metadata('design:type',Object)],ExcelService[a12_0xd5c3fb(0x104)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum']['Singleton'])],ExcelService),exports[a12_0xd5c3fb(0xf3)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x4e91(_0x11c3db,_0x2b5947){var _0x4e968e=a13_0x4e96();return a13_0x4e91=function(_0x4e9144,_0x3e0a02){_0x4e9144=_0x4e9144-0x112;var _0x3339b2=_0x4e968e[_0x4e9144];return _0x3339b2;},a13_0x4e91(_0x11c3db,_0x2b5947);}var a13_0x4326bc=a13_0x4e91;function a13_0x4e96(){var _0xd8d209=['902570uWNqxf','3QOpmkk','AppsConfigTmp','anncic-api:action:route','ACTION_ROUTE_KEY','anncic-api:apps:config','4772eMOrFD','3885788TroQJA','24rDzCWy','54EywQLO','5019zPgVat','APPSCONFIG_KEY','81BTragW','4633790nVvxtU','7770472LRAodT','167959alVdmn','6402gvZOpp'];a13_0x4e96=function(){return _0xd8d209;};return a13_0x4e96();}(function(_0xd3cfb5,_0x363fc8){var _0x182510=a13_0x4e91,_0x5061e7=_0xd3cfb5();while(!![]){try{var _0x722bff=parseInt(_0x182510(0x11e))/0x1*(-parseInt(_0x182510(0x121))/0x2)+parseInt(_0x182510(0x119))/0x3*(parseInt(_0x182510(0x11f))/0x4)+-parseInt(_0x182510(0x114))/0x5+-parseInt(_0x182510(0x117))/0x6*(-parseInt(_0x182510(0x122))/0x7)+-parseInt(_0x182510(0x115))/0x8+-parseInt(_0x182510(0x113))/0x9*(-parseInt(_0x182510(0x118))/0xa)+parseInt(_0x182510(0x116))/0xb*(parseInt(_0x182510(0x120))/0xc);if(_0x722bff===_0x363fc8)break;else _0x5061e7['push'](_0x5061e7['shift']());}catch(_0x491c0b){_0x5061e7['push'](_0x5061e7['shift']());}}}(a13_0x4e96,0x86dea));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['AppsConfigTmp']=exports['APPSCONFIG_KEY']=exports[a13_0x4326bc(0x11c)]=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a13_0x4326bc(0x11c)]=a13_0x4326bc(0x11b),exports[a13_0x4326bc(0x112)]=a13_0x4326bc(0x11d);class AppsConfigTmp{}exports[a13_0x4326bc(0x11a)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x1b502d=a14_0x1517;(function(_0x5c2f78,_0x4c6ec4){var _0x28be0e=a14_0x1517,_0xc67775=_0x5c2f78();while(!![]){try{var _0x4757a3=parseInt(_0x28be0e(0xbb))/0x1+parseInt(_0x28be0e(0xba))/0x2*(parseInt(_0x28be0e(0xa1))/0x3)+-parseInt(_0x28be0e(0x9e))/0x4+parseInt(_0x28be0e(0xac))/0x5+parseInt(_0x28be0e(0xa0))/0x6*(-parseInt(_0x28be0e(0xab))/0x7)+-parseInt(_0x28be0e(0xb1))/0x8+parseInt(_0x28be0e(0xb6))/0x9;if(_0x4757a3===_0x4c6ec4)break;else _0xc67775['push'](_0xc67775['shift']());}catch(_0x2ca276){_0xc67775['push'](_0xc67775['shift']());}}}(a14_0xcd77,0xe2004));var __decorate=this&&this[a14_0x1b502d(0xa3)]||function(_0x23834c,_0x2b2794,_0x2e3506,_0x461353){var _0x449319=a14_0x1b502d,_0x152264=arguments[_0x449319(0xae)],_0x37ec23=_0x152264<0x3?_0x2b2794:_0x461353===null?_0x461353=Object[_0x449319(0xa9)](_0x2b2794,_0x2e3506):_0x461353,_0x40f5cd;if(typeof Reflect===_0x449319(0xb9)&&typeof Reflect[_0x449319(0xad)]==='function')_0x37ec23=Reflect[_0x449319(0xad)](_0x23834c,_0x2b2794,_0x2e3506,_0x461353);else{for(var _0x3a3adf=_0x23834c['length']-0x1;_0x3a3adf>=0x0;_0x3a3adf--)if(_0x40f5cd=_0x23834c[_0x3a3adf])_0x37ec23=(_0x152264<0x3?_0x40f5cd(_0x37ec23):_0x152264>0x3?_0x40f5cd(_0x2b2794,_0x2e3506,_0x37ec23):_0x40f5cd(_0x2b2794,_0x2e3506))||_0x37ec23;}return _0x152264>0x3&&_0x37ec23&&Object[_0x449319(0xaf)](_0x2b2794,_0x2e3506,_0x37ec23),_0x37ec23;},__metadata=this&&this[a14_0x1b502d(0xa4)]||function(_0x150c5d,_0x3b2353){var _0x485190=a14_0x1b502d;if(typeof Reflect===_0x485190(0xb9)&&typeof Reflect[_0x485190(0xaa)]==='function')return Reflect[_0x485190(0xaa)](_0x150c5d,_0x3b2353);};function a14_0x1517(_0x44650c,_0x17692d){var _0xcd7789=a14_0xcd77();return a14_0x1517=function(_0x1517c5,_0x2f25bb){_0x1517c5=_0x1517c5-0x9e;var _0x28839a=_0xcd7789[_0x1517c5];return _0x28839a;},a14_0x1517(_0x44650c,_0x17692d);}function a14_0xcd77(){var _0x2c1410=['RuleType','design:type','分页数量','13207599FREJCW','@anncic-api/validator','prototype','object','76LCAzaR','405331YglFXz','3330220idkVIQ','valid','438PrcxiQ','48777ThUFdY','Rule','__decorate','__metadata','min','integer','trim','__esModule','getOwnPropertyDescriptor','metadata','145621BEwQqU','9159820PGWhiX','decorate','length','defineProperty','PageDTO','8366192giVJfQ','number'];a14_0xcd77=function(){return _0x2c1410;};return a14_0xcd77();}Object['defineProperty'](exports,a14_0x1b502d(0xa8),{'value':!![]}),exports[a14_0x1b502d(0xb0)]=void 0x0;const validator_1=require(a14_0x1b502d(0xb7));class PageDTO{}__decorate([(0x0,validator_1[a14_0x1b502d(0xa2)])('分页',validator_1[a14_0x1b502d(0xb3)][a14_0x1b502d(0xb2)]()[a14_0x1b502d(0xa6)]()['min'](0x1),'第一页为1,第二页为2'),__metadata(a14_0x1b502d(0xb4),Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x1b502d(0xa2)])(a14_0x1b502d(0xb5),validator_1['RuleType']['number']()[a14_0x1b502d(0xa6)]()[a14_0x1b502d(0xa5)](0x1)),__metadata(a14_0x1b502d(0xb4),Number)],PageDTO[a14_0x1b502d(0xb8)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x1b502d(0xa2)])('排序方式',validator_1[a14_0x1b502d(0xb3)]['string']()[a14_0x1b502d(0xa7)]()),__metadata(a14_0x1b502d(0xb4),String)],PageDTO['prototype'],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x1b502d(0xa2)])('是否倒序',validator_1[a14_0x1b502d(0xb3)][a14_0x1b502d(0xb2)]()[a14_0x1b502d(0xa6)]()[a14_0x1b502d(0x9f)](0x0,0x1),'1:是;0:否'),__metadata(a14_0x1b502d(0xb4),Number)],PageDTO[a14_0x1b502d(0xb8)],'_isreverse',void 0x0),exports[a14_0x1b502d(0xb0)]=PageDTO;
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ declare module '@midwayjs/koa/dist/interface' {
|
|
|
10
10
|
input(key?: string, defval?: any): any | { [key: string]: any } | any[];
|
|
11
11
|
|
|
12
12
|
ok(data?: any, extra?: any, code?: number): { code: number, data: any, extra: any };
|
|
13
|
-
err(message: string, extra?: any, code?: number): { code: number, extra: any, message: string };
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.42",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.42",
|
|
21
|
+
"@anncic-api/core": "^1.1.42",
|
|
22
|
+
"@anncic-api/event": "^1.1.42",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.42",
|
|
24
|
+
"@anncic-api/validator": "^1.1.42",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.42",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "81443f0288e3ebaa132732e0a3e616bdaa35f3c1"
|
|
43
43
|
}
|