anncic-api 1.4.21 → 1.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x30bc15=a0_0x21ac;function a0_0x21ac(_0x4c1b8d,_0x3aed6b){var _0x29fa0d=a0_0x29fa();return a0_0x21ac=function(_0x21ac7d,_0xab502c){_0x21ac7d=_0x21ac7d-0x102;var _0x42fb65=_0x29fa0d[_0x21ac7d];return _0x42fb65;},a0_0x21ac(_0x4c1b8d,_0x3aed6b);}(function(_0x3c33cc,_0x35654c){var _0x22c2a4=a0_0x21ac,_0x2698e0=_0x3c33cc();while(!![]){try{var _0x36f92c=parseInt(_0x22c2a4(0x10b))/0x1+parseInt(_0x22c2a4(0x108))/0x2*(parseInt(_0x22c2a4(0x10a))/0x3)+parseInt(_0x22c2a4(0x115))/0x4+-parseInt(_0x22c2a4(0x107))/0x5*(parseInt(_0x22c2a4(0x104))/0x6)+parseInt(_0x22c2a4(0x103))/0x7*(parseInt(_0x22c2a4(0x10f))/0x8)+parseInt(_0x22c2a4(0x105))/0x9*(parseInt(_0x22c2a4(0x116))/0xa)+parseInt(_0x22c2a4(0x102))/0xb*(-parseInt(_0x22c2a4(0x111))/0xc);if(_0x36f92c===_0x35654c)break;else _0x2698e0['push'](_0x2698e0['shift']());}catch(_0x26e4a9){_0x2698e0['push'](_0x2698e0['shift']());}}}(a0_0x29fa,0x60e74));function a0_0x29fa(){var _0x59e166=['42PUPhzt','679218SQXXem','713457SkqaIs','20mb','5XKrWXj','1120546SkwfHj','/runtime/.upload','3EgzErg','346057jcakvs','dhauo1234420123gg3234901','name','text','110656qzmRtx','zhiulanuiy7892387985hnoi','35652xvrvzh','default','form','defineProperty','1318856kkJvVh','40BhErel','4169MTdfrU'];a0_0x29fa=function(){return _0x59e166;};return a0_0x29fa();}Object[a0_0x30bc15(0x114)](exports,'__esModule',{'value':!![]}),exports[a0_0x30bc15(0x112)]=_0x50d92a=>{var _0x1ebc84=a0_0x30bc15;return{'apitest':!![],'keys':_0x50d92a[_0x1ebc84(0x10d)],'anncicapi':{'timeout':0x1388,'password':_0x1ebc84(0x110),'devices':{'DEFAULT':{'secret':_0x1ebc84(0x10c),'checkcode':_0x1ebc84(0x10c)}}},'bodyParser':{'enableTypes':['json',_0x1ebc84(0x113),_0x1ebc84(0x10e),'xml'],'formLimit':_0x1ebc84(0x106),'jsonLimit':_0x1ebc84(0x106),'textLimit':_0x1ebc84(0x106),'xmlLimit':_0x1ebc84(0x106)},'upload':{'tmpdir':_0x50d92a['appDir']+_0x1ebc84(0x109),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x38979a=a1_0x3f68;function a1_0x3f68(_0x4447e9,_0x2d2d43){var _0x45abad=a1_0x45ab();return a1_0x3f68=function(_0x3f68a9,_0x5c211b){_0x3f68a9=_0x3f68a9-0xed;var _0x4babba=_0x45abad[_0x3f68a9];return _0x4babba;},a1_0x3f68(_0x4447e9,_0x2d2d43);}(function(_0xb46846,_0x5e39ec){var _0x3f7182=a1_0x3f68,_0x308f22=_0xb46846();while(!![]){try{var _0xa78b24=-parseInt(_0x3f7182(0xf4))/0x1+-parseInt(_0x3f7182(0xef))/0x2+-parseInt(_0x3f7182(0xf0))/0x3*(parseInt(_0x3f7182(0xf7))/0x4)+parseInt(_0x3f7182(0xed))/0x5+parseInt(_0x3f7182(0xf6))/0x6+parseInt(_0x3f7182(0xf3))/0x7+parseInt(_0x3f7182(0xf2))/0x8;if(_0xa78b24===_0x5e39ec)break;else _0x308f22['push'](_0x308f22['shift']());}catch(_0x54089d){_0x308f22['push'](_0x308f22['shift']());}}}(a1_0x45ab,0x19f9e));Object[a1_0x38979a(0xee)](exports,a1_0x38979a(0xf1),{'value':!![]}),exports[a1_0x38979a(0xf5)]={'apitest':![],'anncicapi':{'timeout':0x1388}};function a1_0x45ab(){var _0x28c9e3=['2710016bbtFwQ','1225140nGOaAk','212322uwtaoC','default','454716UsNJry','8DjbbYg','461550lnUIjw','defineProperty','373208FUcElY','264816HDfGWD','__esModule'];a1_0x45ab=function(){return _0x28c9e3;};return a1_0x45ab();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x9bf543=a2_0x5e66;(function(_0x25e6ae,_0x342e95){const _0x2acae5=a2_0x5e66,_0x4aab7c=_0x25e6ae();while(!![]){try{const _0x39418f=-parseInt(_0x2acae5(0x12f))/0x1*(parseInt(_0x2acae5(0x177))/0x2)+-parseInt(_0x2acae5(0x146))/0x3+parseInt(_0x2acae5(0x133))/0x4+parseInt(_0x2acae5(0x12c))/0x5+-parseInt(_0x2acae5(0x187))/0x6+parseInt(_0x2acae5(0x17c))/0x7+parseInt(_0x2acae5(0x14d))/0x8;if(_0x39418f===_0x342e95)break;else _0x4aab7c['push'](_0x4aab7c['shift']());}catch(_0x3bcca0){_0x4aab7c['push'](_0x4aab7c['shift']());}}}(a2_0x3f49,0xdabf0));var __decorate=this&&this[a2_0x9bf543(0x145)]||function(_0x3da39c,_0x416703,_0x1da8a0,_0x56fb7d){const _0x4cd8d7=a2_0x9bf543;var _0x5edd99=arguments[_0x4cd8d7(0x18b)],_0x36554a=_0x5edd99<0x3?_0x416703:_0x56fb7d===null?_0x56fb7d=Object[_0x4cd8d7(0x13c)](_0x416703,_0x1da8a0):_0x56fb7d,_0x46b876;if(typeof Reflect===_0x4cd8d7(0x13d)&&typeof Reflect[_0x4cd8d7(0x15c)]===_0x4cd8d7(0x15e))_0x36554a=Reflect['decorate'](_0x3da39c,_0x416703,_0x1da8a0,_0x56fb7d);else{for(var _0x31dbc1=_0x3da39c['length']-0x1;_0x31dbc1>=0x0;_0x31dbc1--)if(_0x46b876=_0x3da39c[_0x31dbc1])_0x36554a=(_0x5edd99<0x3?_0x46b876(_0x36554a):_0x5edd99>0x3?_0x46b876(_0x416703,_0x1da8a0,_0x36554a):_0x46b876(_0x416703,_0x1da8a0))||_0x36554a;}return _0x5edd99>0x3&&_0x36554a&&Object[_0x4cd8d7(0x131)](_0x416703,_0x1da8a0,_0x36554a),_0x36554a;},__metadata=this&&this[a2_0x9bf543(0x12a)]||function(_0x3195a6,_0x188938){const _0x271bbe=a2_0x9bf543;if(typeof Reflect===_0x271bbe(0x13d)&&typeof Reflect['metadata']===_0x271bbe(0x15e))return Reflect[_0x271bbe(0x151)](_0x3195a6,_0x188938);};function a2_0x5e66(_0x755557,_0x3a3cd4){const _0x3f4986=a2_0x3f49();return a2_0x5e66=function(_0x5e664d,_0x350bf9){_0x5e664d=_0x5e664d-0x123;let _0x2783ed=_0x3f4986[_0x5e664d];return _0x2783ed;},a2_0x5e66(_0x755557,_0x3a3cd4);}Object['defineProperty'](exports,a2_0x9bf543(0x167),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x9bf543(0x18f)),core_2=require(a2_0x9bf543(0x18f)),ApiError_1=require(a2_0x9bf543(0x184)),ApiService_1=require(a2_0x9bf543(0x16f)),action_1=require(a2_0x9bf543(0x127)),fs=require('fs'),koasend=require(a2_0x9bf543(0x186)),koa=require(a2_0x9bf543(0x123)),i18n=require(a2_0x9bf543(0x157)),upload=require(a2_0x9bf543(0x13b)),staticFile=require(a2_0x9bf543(0x138)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x9bf543(0x154)),ConfigProduction=require(a2_0x9bf543(0x13a)),anncic=require(a2_0x9bf543(0x13f)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x9bf543(0x188)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x9bf543(0x14c)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0xd0b67c=a2_0x9bf543;await this[_0xd0b67c(0x14f)](),await this[_0xd0b67c(0x178)](),await this[_0xd0b67c(0x17d)](),await this['handlerActionRoute'](),await this[_0xd0b67c(0x139)]();}async[a2_0x9bf543(0x17d)](){}async[a2_0x9bf543(0x163)](){const _0x42d995=a2_0x9bf543,_0x45a2f8=this['config'][_0x42d995(0x132)]();this[_0x42d995(0x144)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0xf8d800=>{const _0x48f961=_0x42d995,_0x15dacd=_0xf8d800[_0x48f961(0x151)];return{'before':async _0x40b8b0=>{const _0x5969fd=_0x48f961;var _0x43bfe7,_0x40bb99;const _0xb91e10=(_0x43bfe7=_0x40b8b0===null||_0x40b8b0===void 0x0?void 0x0:_0x40b8b0[_0x5969fd(0x137)])===null||_0x43bfe7===void 0x0?void 0x0:_0x43bfe7[core_2[_0x5969fd(0x18d)]];_0xb91e10['metadata']=_0x15dacd||{};if(_0xb91e10&&(_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd[_0x5969fd(0x14b)])){if(!this[_0x5969fd(0x183)][_0x5969fd(0x143)]((_0x40bb99=_0xb91e10===null||_0xb91e10===void 0x0?void 0x0:_0xb91e10[_0x5969fd(0x162)])===null||_0x40bb99===void 0x0?void 0x0:_0x40bb99[_0x5969fd(0x18c)]))throw new AnnError(ApiError_1[_0x5969fd(0x173)][_0x5969fd(0x13e)]);}},'around':async _0x567c48=>{const _0x21be02=_0x48f961;var _0x428fca,_0x4fe002,_0x88d996,_0x2ce19b,_0x2d8125;const _0x2f19f2=(_0x428fca=_0x567c48===null||_0x567c48===void 0x0?void 0x0:_0x567c48[_0x21be02(0x137)])===null||_0x428fca===void 0x0?void 0x0:_0x428fca[core_2[_0x21be02(0x18d)]];if(_0x2f19f2&&(_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd[_0x21be02(0x14b)])&&((_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd[_0x21be02(0x168)])||typeof(_0x15dacd===null||_0x15dacd===void 0x0?void 0x0:_0x15dacd['intercept'])==_0x21be02(0x130))){if(((_0x4fe002=_0x2f19f2[_0x21be02(0x18c)])===null||_0x4fe002===void 0x0?void 0x0:_0x4fe002[_0x21be02(0x160)])&&((_0x2d8125=(_0x2ce19b=(_0x88d996=_0x45a2f8===null||_0x45a2f8===void 0x0?void 0x0:_0x45a2f8[_0x21be02(0x171)])===null||_0x88d996===void 0x0?void 0x0:_0x88d996['devices'])===null||_0x2ce19b===void 0x0?void 0x0:_0x2ce19b[_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]])===null||_0x2d8125===void 0x0?void 0x0:_0x2d8125[_0x21be02(0x168)])){const _0x36a51a=Array[_0x21be02(0x125)](_0x45a2f8[_0x21be02(0x171)][_0x21be02(0x159)][_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]]['intercept'])?_0x45a2f8[_0x21be02(0x171)][_0x21be02(0x159)][_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]][_0x21be02(0x168)]:[_0x45a2f8[_0x21be02(0x171)]['devices'][_0x2f19f2[_0x21be02(0x18c)][_0x21be02(0x160)]][_0x21be02(0x168)]];for(const _0x283486 of _0x36a51a){if(core_1[_0x21be02(0x14a)][_0x21be02(0x172)](_0x283486)||typeof _0x283486==_0x21be02(0x152)){const _0x36d025=await _0x2f19f2[_0x21be02(0x155)]['getAsync'](_0x283486);typeof(_0x36d025===null||_0x36d025===void 0x0?void 0x0:_0x36d025[_0x21be02(0x180)])==_0x21be02(0x15e)&&await _0x36d025[_0x21be02(0x180)](typeof(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2[_0x21be02(0x164)])==_0x21be02(0x152)&&(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2['_matchedRoute'])?_0x2f19f2[_0x21be02(0x164)][_0x21be02(0x141)]()+'@'+(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2[_0x21be02(0x156)]):undefined,_0x2f19f2,_0x15dacd);}else core_1[_0x21be02(0x14a)][_0x21be02(0x126)](_0x283486)&&await _0x283486(typeof(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2['method'])=='string'&&(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2[_0x21be02(0x156)])?_0x2f19f2['method'][_0x21be02(0x141)]()+'@'+(_0x2f19f2===null||_0x2f19f2===void 0x0?void 0x0:_0x2f19f2['_matchedRoute']):undefined,_0x2f19f2,_0x15dacd);}}}return await _0x567c48[_0x21be02(0x12d)](..._0x567c48['args']);},'afterThrow':(_0x7067ee,_0x40e206)=>{throw _0x40e206;}};});}async[a2_0x9bf543(0x139)](){const _0x110a1c=a2_0x9bf543;this[_0x110a1c(0x176)]['getApplications']([_0x110a1c(0x12b)])['forEach'](_0x2f666c=>{const _0x1486b3=_0x110a1c;(_0x2f666c===null||_0x2f666c===void 0x0?void 0x0:_0x2f666c[_0x1486b3(0x158)])&&Object[_0x1486b3(0x15b)](_0x2f666c[_0x1486b3(0x158)],{'ok':{'value':function(_0x44f7bd,_0x478880,_0x1c98ca=0x0){return{'code':_0x1c98ca,'data':_0x44f7bd,'extra':_0x478880};}},'input':{'value':function(_0x3a2463,_0x421452){const _0xd5600e=_0x1486b3;var _0x1fb7bf;const _0x210e8b=lodash['defaultsDeep']({},this[_0xd5600e(0x162)]['body']||this['request'][((_0x1fb7bf=config===null||config===void 0x0?void 0x0:config[_0xd5600e(0x169)])===null||_0x1fb7bf===void 0x0?void 0x0:_0x1fb7bf[_0xd5600e(0x175)])||'body']||{},this[_0xd5600e(0x162)][_0xd5600e(0x148)]||{});return _0x3a2463?lodash['get'](_0x210e8b,_0x3a2463,_0x421452):_0x210e8b;}},'when':{'value':async function(_0x9c4a18,_0xdb78a4){const _0xb5eec3=_0x1486b3,_0x3897b4=this['input'](_0x9c4a18,null);if(!lodash[_0xb5eec3(0x18e)](_0x3897b4))return await _0xdb78a4(_0x3897b4);}},'only':{'value':function(_0x487209){const _0x33360a=_0x1486b3,_0x56f963={};for(let _0xbe2c47=0x0;_0xbe2c47<_0x487209[_0x33360a(0x18b)];_0xbe2c47++){lodash[_0x33360a(0x125)](_0x487209[_0xbe2c47])&&_0x487209[_0xbe2c47][_0x33360a(0x18b)]>0x0&&lodash['isString'](_0x487209[_0xbe2c47][0x0])&&(_0x56f963[_0x487209[_0xbe2c47][0x0]]=this[_0x33360a(0x17f)](_0x487209[_0xbe2c47][0x0],_0x487209[_0xbe2c47]['length']>0x1?_0x487209[_0xbe2c47][0x1]:null));}return _0x56f963;}},'koasend':{'value':function(_0x1e403d){const _0x25add8=_0x1486b3;if(!fs[_0x25add8(0x153)](this['app'][_0x25add8(0x17b)]()+'/'+_0x1e403d))return _0x25add8(0x12e);return koasend(this,_0x1e403d);}}});});}async[a2_0x9bf543(0x178)](){const _0x1f5355=a2_0x9bf543;var _0x26a5ca,_0x4d3e81;if(fs[_0x1f5355(0x153)](this[_0x1f5355(0x18a)][_0x1f5355(0x124)]()+'/apps')&&fs[_0x1f5355(0x147)](this[_0x1f5355(0x18a)]['getBaseDir']()+_0x1f5355(0x134))[_0x1f5355(0x16b)]()){const _0x32b3a9=this[_0x1f5355(0x136)][_0x1f5355(0x132)](),_0x5d572b=((_0x26a5ca=_0x32b3a9===null||_0x32b3a9===void 0x0?void 0x0:_0x32b3a9[_0x1f5355(0x128)])===null||_0x26a5ca===void 0x0?void 0x0:_0x26a5ca[_0x1f5355(0x191)])||{};for(const _0x5eaff5 of fs[_0x1f5355(0x170)](this[_0x1f5355(0x18a)][_0x1f5355(0x124)]()+'/apps')){if(!fs[_0x1f5355(0x147)](this['app'][_0x1f5355(0x124)]()+_0x1f5355(0x182)+_0x5eaff5)[_0x1f5355(0x16b)]())continue;if(_0x5d572b===null||_0x5d572b===void 0x0?void 0x0:_0x5d572b[_0x5eaff5])continue;_0x5d572b[_0x5eaff5]=Object[_0x1f5355(0x189)]({},((_0x4d3e81=_0x32b3a9===null||_0x32b3a9===void 0x0?void 0x0:_0x32b3a9[_0x1f5355(0x128)])===null||_0x4d3e81===void 0x0?void 0x0:_0x4d3e81[_0x1f5355(0x166)])||{'maxSize':'1m','dir':this['app'][_0x1f5355(0x17b)]()+_0x1f5355(0x165)},{'enableJSON':!![],'enableConsole':this[_0x1f5355(0x190)][_0x1f5355(0x16e)](),'fileLogName':_0x5eaff5+_0x1f5355(0x179),'dir':this[_0x1f5355(0x18a)]['getAppDir']()+_0x1f5355(0x185)+_0x5eaff5+_0x1f5355(0x16a)});}Object[_0x1f5355(0x174)](_0x5d572b)[_0x1f5355(0x18b)]>0x0&&(!_0x32b3a9[_0x1f5355(0x128)]&&(_0x32b3a9['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x1f5355(0x18a)][_0x1f5355(0x17b)]()+_0x1f5355(0x165)}}),_0x32b3a9[_0x1f5355(0x128)][_0x1f5355(0x191)]=_0x5d572b),this[_0x1f5355(0x136)]['addObject'](_0x32b3a9);}}async['filterConfig'](){const _0x41b14d=a2_0x9bf543;var _0xed717,_0x4e1d13,_0x583445,_0x3ec0b1,_0x44adc0,_0x2a01a5;const _0x48f728=this[_0x41b14d(0x136)][_0x41b14d(0x132)]();((_0x4e1d13=(_0xed717=_0x48f728===null||_0x48f728===void 0x0?void 0x0:_0x48f728[_0x41b14d(0x171)])===null||_0xed717===void 0x0?void 0x0:_0xed717[_0x41b14d(0x159)])===null||_0x4e1d13===void 0x0?void 0x0:_0x4e1d13[_0x41b14d(0x140)])&&Object[_0x41b14d(0x174)](_0x48f728[_0x41b14d(0x171)][_0x41b14d(0x159)])[_0x41b14d(0x18b)]>0x1&&delete _0x48f728['anncicapi']['devices'][_0x41b14d(0x140)];if((_0x583445=_0x48f728===null||_0x48f728===void 0x0?void 0x0:_0x48f728['staticFile'])===null||_0x583445===void 0x0?void 0x0:_0x583445[_0x41b14d(0x16d)])for(const _0x390041 in _0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)]){((_0x3ec0b1=_0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)][_0x390041])===null||_0x3ec0b1===void 0x0?void 0x0:_0x3ec0b1['dir'])&&typeof((_0x44adc0=_0x48f728['staticFile']['dirs'][_0x390041])===null||_0x44adc0===void 0x0?void 0x0:_0x44adc0[_0x41b14d(0x192)])==_0x41b14d(0x152)&&!fs['existsSync'](_0x48f728['staticFile'][_0x41b14d(0x16d)][_0x390041][_0x41b14d(0x192)])&&(fs['mkdirSync'](_0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)][_0x390041][_0x41b14d(0x192)],{'recursive':!![]}),console[_0x41b14d(0x16c)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x48f728[_0x41b14d(0x150)][_0x41b14d(0x16d)][_0x390041][_0x41b14d(0x192)]));}((_0x2a01a5=_0x48f728===null||_0x48f728===void 0x0?void 0x0:_0x48f728[_0x41b14d(0x14e)])===null||_0x2a01a5===void 0x0?void 0x0:_0x2a01a5[_0x41b14d(0x15f)])&&!fs['existsSync'](_0x48f728[_0x41b14d(0x14e)][_0x41b14d(0x15f)])&&(fs[_0x41b14d(0x181)](_0x48f728['upload']['tmpdir'],{'recursive':!![]}),console[_0x41b14d(0x16c)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x48f728[_0x41b14d(0x14e)][_0x41b14d(0x15f)])),this['config'][_0x41b14d(0x135)](_0x48f728);}};__decorate([(0x0,core_1[a2_0x9bf543(0x129)])(),__metadata(a2_0x9bf543(0x161),Object)],CustomConfiguration[a2_0x9bf543(0x149)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata(a2_0x9bf543(0x161),core_2[a2_0x9bf543(0x17a)])],CustomConfiguration[a2_0x9bf543(0x149)],a2_0x9bf543(0x136),void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata(a2_0x9bf543(0x161),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x9bf543(0x149)],a2_0x9bf543(0x144),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x9bf543(0x161),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata(a2_0x9bf543(0x161),core_2[a2_0x9bf543(0x142)])],CustomConfiguration[a2_0x9bf543(0x149)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x9bf543(0x15d)])(),__metadata('design:type',ApiService_1[a2_0x9bf543(0x183)])],CustomConfiguration['prototype'],a2_0x9bf543(0x183),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x9bf543(0x15a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x9bf543(0x17e)]=CustomConfiguration;function a2_0x3f49(){const _0x349547=['application','17538PCLgkE','loggerConfig','.log','MidwayConfigService','getAppDir','1035454BePdoF','checkConfigKeys','CustomConfiguration','input','handler','mkdirSync','/apps/','ApiService','./exception/ApiError','/runtime/apps-','koa-send','3536118teoxSJ','@anncic-api/event','assign','app','length','headers','REQUEST_OBJ_CTX_KEY','isNull','@midwayjs/core','environment','clients','dir','@midwayjs/koa','getBaseDir','isArray','isFunction','./types/action','midwayLogger','App','__metadata','koa','6401345piLkiV','proceed','文件不存在','76QBtfrQ','undefined','defineProperty','getConfiguration','3912288cKNBHZ','/apps','addObject','config','target','@midwayjs/static-file','hanlderApplications','./config/config.production','@midwayjs/upload','getOwnPropertyDescriptor','object','HEADERS_SIGNATURE','@anncic-api/core','DEFAULT','toLowerCase','MidwayEnvironmentService','checksign','decorator','__decorate','4493433QrUMPM','statSync','query','prototype','Types','apimit','@anncic-api/validator','9946632jnJayj','upload','filterConfig','staticFile','metadata','string','existsSync','./config/config.default','requestContext','_matchedRoute','@midwayjs/i18n','context','devices','anncic-api','defineProperties','decorate','Inject','function','tmpdir','device','design:type','request','handlerActionRoute','method','/runtime','default','__esModule','intercept','bodyXml','-log','isDirectory','log','dirs','isDevelopmentEnvironment','./service/ApiService','readdirSync','anncicapi','isClass','ApiError','keys','key'];a2_0x3f49=function(){return _0x349547;};return a2_0x3f49();}
|
|
1
|
+
'use strict';const a2_0x537052=a2_0xd545;function a2_0x1bec(){const _0x21a36e=['filterConfig','18529njocXa','getConfiguration','getBaseDir','-log','anncic-api','statSync','@anncic-api/cache','checksign','@midwayjs/i18n','defineProperty','./config/config.default','design:type','request','checkConfigKeys','Inject','headers','HEADERS_SIGNATURE','./config/config.production','isFunction','upload','866196xrjDzq','object','addObject','REQUEST_OBJ_CTX_KEY','toLowerCase','requestContext','@anncic-api/core','isString','/apps','1342888YZhdGi','MidwayConfigService','MidwayApplicationManager','_matchedRoute','loggerConfig','isDirectory','target','dirs','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','clients','1280035YFrJsv','environment','application','function','prototype','352ioLGXM','mkdirSync','文件不存在','readdirSync','.log','devices','anncicapi','apimit','query','log','string','@midwayjs/koa','handlerActionRoute','./types/action','koa-send','hanlderApplications','CustomConfiguration','body','length','676561lZSmkp','4579902egfgWD','tmpdir','1063912lHdQZa','getAppDir','/apps/','staticFile','decorate','@midwayjs/upload','onReady','ApiService','@midwayjs/cross-domain','get','defaultsDeep','method','defineProperties','/runtime','Anncic-api\x20static-file\x20:\x20mkdir\x20','koa','isClass','assign','__decorate','@anncic-api/typeorm','MidwayEnvironmentService','MidwayDecoratorService','app','keys','__esModule','args','dir','getAsync','Types','3RVbKBT','context','config','./service/ApiService','@midwayjs/core','@midwayjs/static-file','existsSync','isNull','ACTION_ROUTE_KEY','device','intercept','midwayLogger','default','getApplications','Configuration','decorator','metadata'];a2_0x1bec=function(){return _0x21a36e;};return a2_0x1bec();}(function(_0xccfbfb,_0x212696){const _0x588890=a2_0xd545,_0x23322d=_0xccfbfb();while(!![]){try{const _0x4fa234=parseInt(_0x588890(0x143))/0x1+parseInt(_0x588890(0x146))/0x2+-parseInt(_0x588890(0x163))/0x3*(parseInt(_0x588890(0x121))/0x4)+parseInt(_0x588890(0x12b))/0x5+-parseInt(_0x588890(0x118))/0x6+parseInt(_0x588890(0x175))/0x7*(-parseInt(_0x588890(0x130))/0x8)+-parseInt(_0x588890(0x144))/0x9;if(_0x4fa234===_0x212696)break;else _0x23322d['push'](_0x23322d['shift']());}catch(_0x1f30ee){_0x23322d['push'](_0x23322d['shift']());}}}(a2_0x1bec,0x57ab2));var __decorate=this&&this[a2_0x537052(0x158)]||function(_0x4fba17,_0x2501bd,_0x52df14,_0x22547e){const _0x3440e3=a2_0x537052;var _0x217002=arguments['length'],_0x47cd89=_0x217002<0x3?_0x2501bd:_0x22547e===null?_0x22547e=Object['getOwnPropertyDescriptor'](_0x2501bd,_0x52df14):_0x22547e,_0x164a5c;if(typeof Reflect===_0x3440e3(0x119)&&typeof Reflect[_0x3440e3(0x14a)]===_0x3440e3(0x12e))_0x47cd89=Reflect[_0x3440e3(0x14a)](_0x4fba17,_0x2501bd,_0x52df14,_0x22547e);else{for(var _0x1d9f05=_0x4fba17['length']-0x1;_0x1d9f05>=0x0;_0x1d9f05--)if(_0x164a5c=_0x4fba17[_0x1d9f05])_0x47cd89=(_0x217002<0x3?_0x164a5c(_0x47cd89):_0x217002>0x3?_0x164a5c(_0x2501bd,_0x52df14,_0x47cd89):_0x164a5c(_0x2501bd,_0x52df14))||_0x47cd89;}return _0x217002>0x3&&_0x47cd89&&Object[_0x3440e3(0x17e)](_0x2501bd,_0x52df14,_0x47cd89),_0x47cd89;},__metadata=this&&this['__metadata']||function(_0x42f2d7,_0xf9375d){const _0x23b86c=a2_0x537052;if(typeof Reflect===_0x23b86c(0x119)&&typeof Reflect[_0x23b86c(0x173)]===_0x23b86c(0x12e))return Reflect[_0x23b86c(0x173)](_0x42f2d7,_0xf9375d);};Object[a2_0x537052(0x17e)](exports,a2_0x537052(0x15e),{'value':!![]}),exports[a2_0x537052(0x140)]=void 0x0;const core_1=require(a2_0x537052(0x167)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x537052(0x166)),action_1=require(a2_0x537052(0x13d)),fs=require('fs'),koasend=require(a2_0x537052(0x13e)),koa=require(a2_0x537052(0x13b)),i18n=require(a2_0x537052(0x17d)),upload=require(a2_0x537052(0x14b)),staticFile=require(a2_0x537052(0x168)),crossDomain=require(a2_0x537052(0x14e)),ConfigDefault=require(a2_0x537052(0x17f)),ConfigProduction=require(a2_0x537052(0x186)),anncic=require(a2_0x537052(0x11e)),anncicCache=require(a2_0x537052(0x17b)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x537052(0x159)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x537052(0x14c)](){const _0x12972c=a2_0x537052;await this[_0x12972c(0x174)](),await this[_0x12972c(0x125)](),await this['checkConfigKeys'](),await this[_0x12972c(0x13c)](),await this[_0x12972c(0x13f)]();}async[a2_0x537052(0x182)](){}async[a2_0x537052(0x13c)](){const _0x432bdd=a2_0x537052,_0xedec0c=this[_0x432bdd(0x165)][_0x432bdd(0x176)]();this[_0x432bdd(0x172)]['registerMethodHandler'](action_1[_0x432bdd(0x16b)],_0x4ff92c=>{const _0x5a3e0d=_0x432bdd,_0x7efd3=_0x4ff92c[_0x5a3e0d(0x173)];return{'before':async _0xeb7f5d=>{const _0x180a25=_0x5a3e0d;var _0x657816,_0x422918;const _0x40fed2=(_0x657816=_0xeb7f5d===null||_0xeb7f5d===void 0x0?void 0x0:_0xeb7f5d[_0x180a25(0x127)])===null||_0x657816===void 0x0?void 0x0:_0x657816[core_2[_0x180a25(0x11b)]];if(_0x40fed2&&(_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3[_0x180a25(0x137)])){if(!this['ApiService'][_0x180a25(0x17c)]((_0x422918=_0x40fed2===null||_0x40fed2===void 0x0?void 0x0:_0x40fed2[_0x180a25(0x181)])===null||_0x422918===void 0x0?void 0x0:_0x422918[_0x180a25(0x184)]))throw new AnnError(ApiError_1['ApiError'][_0x180a25(0x185)]);}},'around':async _0x234c72=>{const _0x424b4a=_0x5a3e0d;var _0x1d37ad,_0x4706ab,_0xdbafe4,_0x2c2d3,_0x553c26;const _0x105a00=(_0x1d37ad=_0x234c72===null||_0x234c72===void 0x0?void 0x0:_0x234c72[_0x424b4a(0x127)])===null||_0x1d37ad===void 0x0?void 0x0:_0x1d37ad[core_2[_0x424b4a(0x11b)]];if(_0x105a00&&(_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3[_0x424b4a(0x137)])&&((_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3['intercept'])||typeof(_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3[_0x424b4a(0x16d)])=='undefined')){if(((_0x4706ab=_0x105a00[_0x424b4a(0x184)])===null||_0x4706ab===void 0x0?void 0x0:_0x4706ab['device'])&&((_0x553c26=(_0x2c2d3=(_0xdbafe4=_0xedec0c===null||_0xedec0c===void 0x0?void 0x0:_0xedec0c['anncicapi'])===null||_0xdbafe4===void 0x0?void 0x0:_0xdbafe4['devices'])===null||_0x2c2d3===void 0x0?void 0x0:_0x2c2d3[_0x105a00[_0x424b4a(0x184)][_0x424b4a(0x16c)]])===null||_0x553c26===void 0x0?void 0x0:_0x553c26[_0x424b4a(0x16d)])){const _0x407a38=Array['isArray'](_0xedec0c[_0x424b4a(0x136)][_0x424b4a(0x135)][_0x105a00['headers']['device']]['intercept'])?_0xedec0c[_0x424b4a(0x136)][_0x424b4a(0x135)][_0x105a00[_0x424b4a(0x184)][_0x424b4a(0x16c)]]['intercept']:[_0xedec0c['anncicapi'][_0x424b4a(0x135)][_0x105a00['headers'][_0x424b4a(0x16c)]][_0x424b4a(0x16d)]];for(const _0x383156 of _0x407a38){if(core_1[_0x424b4a(0x162)][_0x424b4a(0x156)](_0x383156)||typeof _0x383156==_0x424b4a(0x13a)){const _0x36faee=await _0x105a00[_0x424b4a(0x11d)][_0x424b4a(0x161)](_0x383156);typeof(_0x36faee===null||_0x36faee===void 0x0?void 0x0:_0x36faee['handler'])=='function'&&await _0x36faee['handler'](typeof(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x151)])==_0x424b4a(0x13a)&&(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x124)])?_0x105a00[_0x424b4a(0x151)][_0x424b4a(0x11c)]()+'@'+(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x124)]):undefined,_0x105a00,_0x7efd3);}else core_1[_0x424b4a(0x162)][_0x424b4a(0x187)](_0x383156)&&await _0x383156(typeof(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x151)])==_0x424b4a(0x13a)&&(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00['_matchedRoute'])?_0x105a00['method'][_0x424b4a(0x11c)]()+'@'+(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x124)]):undefined,_0x105a00,_0x7efd3);}}}return await _0x234c72['proceed'](..._0x234c72[_0x424b4a(0x15f)]);},'afterThrow':(_0x4e3568,_0x1a98ea)=>{throw _0x1a98ea;}};});}async[a2_0x537052(0x13f)](){const _0xb80dba=a2_0x537052;this[_0xb80dba(0x12d)][_0xb80dba(0x170)]([_0xb80dba(0x155)])['forEach'](_0x2f0acc=>{const _0x1daa35=_0xb80dba;(_0x2f0acc===null||_0x2f0acc===void 0x0?void 0x0:_0x2f0acc[_0x1daa35(0x164)])&&Object[_0x1daa35(0x152)](_0x2f0acc[_0x1daa35(0x164)],{'ok':{'value':function(_0x5a104c,_0xe83637,_0xb16c2f=0x0){return{'code':_0xb16c2f,'data':_0x5a104c,'extra':_0xe83637};}},'input':{'value':function(_0x141dee,_0x303001){const _0x159a26=_0x1daa35;var _0x2c400d;const _0x1f1c07=lodash[_0x159a26(0x150)]({},this[_0x159a26(0x181)]['body']||this[_0x159a26(0x181)][((_0x2c400d=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x2c400d===void 0x0?void 0x0:_0x2c400d['key'])||_0x159a26(0x141)]||{},this[_0x159a26(0x181)][_0x159a26(0x138)]||{});return _0x141dee?lodash[_0x159a26(0x14f)](_0x1f1c07,_0x141dee,_0x303001):_0x1f1c07;}},'when':{'value':async function(_0x48c13b,_0x32b91b){const _0xf436f0=_0x1daa35,_0x3659aa=this['input'](_0x48c13b,null);if(!lodash[_0xf436f0(0x16a)](_0x3659aa))return await _0x32b91b(_0x3659aa);}},'only':{'value':function(_0x33b231){const _0x2e298e=_0x1daa35,_0x3c7192={};for(let _0x51029c=0x0;_0x51029c<_0x33b231[_0x2e298e(0x142)];_0x51029c++){lodash['isArray'](_0x33b231[_0x51029c])&&_0x33b231[_0x51029c][_0x2e298e(0x142)]>0x0&&lodash[_0x2e298e(0x11f)](_0x33b231[_0x51029c][0x0])&&(_0x3c7192[_0x33b231[_0x51029c][0x0]]=this['input'](_0x33b231[_0x51029c][0x0],_0x33b231[_0x51029c]['length']>0x1?_0x33b231[_0x51029c][0x1]:null));}return _0x3c7192;}},'koasend':{'value':function(_0x20c30c){const _0xc0fdfe=_0x1daa35;if(!fs['existsSync'](this[_0xc0fdfe(0x15c)]['getAppDir']()+'/'+_0x20c30c))return _0xc0fdfe(0x132);return koasend(this,_0x20c30c);}}});});}async[a2_0x537052(0x125)](){const _0x34dbdc=a2_0x537052;var _0x41a011,_0x33f03a;if(fs[_0x34dbdc(0x169)](this[_0x34dbdc(0x15c)][_0x34dbdc(0x177)]()+'/apps')&&fs[_0x34dbdc(0x17a)](this[_0x34dbdc(0x15c)][_0x34dbdc(0x177)]()+_0x34dbdc(0x120))[_0x34dbdc(0x126)]()){const _0x317ef2=this[_0x34dbdc(0x165)][_0x34dbdc(0x176)](),_0x473880=((_0x41a011=_0x317ef2===null||_0x317ef2===void 0x0?void 0x0:_0x317ef2[_0x34dbdc(0x16e)])===null||_0x41a011===void 0x0?void 0x0:_0x41a011[_0x34dbdc(0x12a)])||{};for(const _0x5cb7f0 of fs[_0x34dbdc(0x133)](this['app'][_0x34dbdc(0x177)]()+_0x34dbdc(0x120))){if(!fs[_0x34dbdc(0x17a)](this[_0x34dbdc(0x15c)]['getBaseDir']()+_0x34dbdc(0x148)+_0x5cb7f0)[_0x34dbdc(0x126)]())continue;if(_0x473880===null||_0x473880===void 0x0?void 0x0:_0x473880[_0x5cb7f0])continue;_0x473880[_0x5cb7f0]=Object[_0x34dbdc(0x157)]({},((_0x33f03a=_0x317ef2===null||_0x317ef2===void 0x0?void 0x0:_0x317ef2[_0x34dbdc(0x16e)])===null||_0x33f03a===void 0x0?void 0x0:_0x33f03a[_0x34dbdc(0x16f)])||{'maxSize':'1m','dir':this['app'][_0x34dbdc(0x147)]()+_0x34dbdc(0x153)},{'enableJSON':!![],'enableConsole':this[_0x34dbdc(0x12c)]['isDevelopmentEnvironment'](),'fileLogName':_0x5cb7f0+_0x34dbdc(0x134),'dir':this[_0x34dbdc(0x15c)]['getAppDir']()+'/runtime/apps-'+_0x5cb7f0+_0x34dbdc(0x178)});}Object[_0x34dbdc(0x15d)](_0x473880)[_0x34dbdc(0x142)]>0x0&&(!_0x317ef2[_0x34dbdc(0x16e)]&&(_0x317ef2[_0x34dbdc(0x16e)]={'default':{'maxSize':'1m','dir':this[_0x34dbdc(0x15c)][_0x34dbdc(0x147)]()+_0x34dbdc(0x153)}}),_0x317ef2[_0x34dbdc(0x16e)][_0x34dbdc(0x12a)]=_0x473880),this['config'][_0x34dbdc(0x11a)](_0x317ef2);}}async['filterConfig'](){const _0x2b6533=a2_0x537052;var _0x255083,_0xc606e0,_0x17780a,_0x3578b6,_0x2f3eaf,_0x33457b;const _0x4acc72=this['config'][_0x2b6533(0x176)]();((_0xc606e0=(_0x255083=_0x4acc72===null||_0x4acc72===void 0x0?void 0x0:_0x4acc72['anncicapi'])===null||_0x255083===void 0x0?void 0x0:_0x255083[_0x2b6533(0x135)])===null||_0xc606e0===void 0x0?void 0x0:_0xc606e0['DEFAULT'])&&Object[_0x2b6533(0x15d)](_0x4acc72['anncicapi']['devices'])[_0x2b6533(0x142)]>0x1&&delete _0x4acc72[_0x2b6533(0x136)][_0x2b6533(0x135)]['DEFAULT'];if((_0x17780a=_0x4acc72===null||_0x4acc72===void 0x0?void 0x0:_0x4acc72[_0x2b6533(0x149)])===null||_0x17780a===void 0x0?void 0x0:_0x17780a[_0x2b6533(0x128)])for(const _0x460e1d in _0x4acc72['staticFile'][_0x2b6533(0x128)]){((_0x3578b6=_0x4acc72[_0x2b6533(0x149)]['dirs'][_0x460e1d])===null||_0x3578b6===void 0x0?void 0x0:_0x3578b6[_0x2b6533(0x160)])&&typeof((_0x2f3eaf=_0x4acc72['staticFile'][_0x2b6533(0x128)][_0x460e1d])===null||_0x2f3eaf===void 0x0?void 0x0:_0x2f3eaf[_0x2b6533(0x160)])==_0x2b6533(0x13a)&&!fs['existsSync'](_0x4acc72[_0x2b6533(0x149)]['dirs'][_0x460e1d]['dir'])&&(fs['mkdirSync'](_0x4acc72[_0x2b6533(0x149)]['dirs'][_0x460e1d][_0x2b6533(0x160)],{'recursive':!![]}),console[_0x2b6533(0x139)](_0x2b6533(0x154)+_0x4acc72[_0x2b6533(0x149)][_0x2b6533(0x128)][_0x460e1d]['dir']));}((_0x33457b=_0x4acc72===null||_0x4acc72===void 0x0?void 0x0:_0x4acc72[_0x2b6533(0x117)])===null||_0x33457b===void 0x0?void 0x0:_0x33457b[_0x2b6533(0x145)])&&!fs[_0x2b6533(0x169)](_0x4acc72[_0x2b6533(0x117)][_0x2b6533(0x145)])&&(fs[_0x2b6533(0x131)](_0x4acc72['upload']['tmpdir'],{'recursive':!![]}),console['log'](_0x2b6533(0x129)+_0x4acc72[_0x2b6533(0x117)]['tmpdir'])),this['config'][_0x2b6533(0x11a)](_0x4acc72);}};function a2_0xd545(_0x4c6d4e,_0xa6211e){const _0x1beca2=a2_0x1bec();return a2_0xd545=function(_0xd54526,_0x385495){_0xd54526=_0xd54526-0x117;let _0x2ed515=_0x1beca2[_0xd54526];return _0x2ed515;},a2_0xd545(_0x4c6d4e,_0xa6211e);}__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x15c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x537052(0x180),core_2[a2_0x537052(0x122)])],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x165),void 0x0),__decorate([(0x0,core_1[a2_0x537052(0x183)])(),__metadata('design:type',core_2[a2_0x537052(0x15b)])],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x172),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x537052(0x180),core_2[a2_0x537052(0x123)])],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x12d),void 0x0),__decorate([(0x0,core_1[a2_0x537052(0x183)])(),__metadata('design:type',core_2[a2_0x537052(0x15a)])],CustomConfiguration[a2_0x537052(0x12f)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x537052(0x183)])(),__metadata(a2_0x537052(0x180),ApiService_1[a2_0x537052(0x14d)])],CustomConfiguration[a2_0x537052(0x12f)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x537052(0x171)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x537052(0x179),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x25cc1b=a3_0x56c7;(function(_0x371b28,_0x584de8){const _0x59205a=a3_0x56c7,_0x3f7ded=_0x371b28();while(!![]){try{const _0xe9d9ea=parseInt(_0x59205a(0x1e1))/0x1*(parseInt(_0x59205a(0x1ed))/0x2)+-parseInt(_0x59205a(0x1ea))/0x3+-parseInt(_0x59205a(0x1eb))/0x4*(-parseInt(_0x59205a(0x1d9))/0x5)+parseInt(_0x59205a(0x1e4))/0x6*(-parseInt(_0x59205a(0x1ca))/0x7)+parseInt(_0x59205a(0x1d3))/0x8*(-parseInt(_0x59205a(0x1dc))/0x9)+parseInt(_0x59205a(0x1f2))/0xa+parseInt(_0x59205a(0x1d7))/0xb*(-parseInt(_0x59205a(0x1e8))/0xc);if(_0xe9d9ea===_0x584de8)break;else _0x3f7ded['push'](_0x3f7ded['shift']());}catch(_0x2baf2e){_0x3f7ded['push'](_0x3f7ded['shift']());}}}(a3_0x16b0,0x57eee));Object[a3_0x25cc1b(0x1c5)](exports,a3_0x25cc1b(0x1e3),{'value':!![]}),exports[a3_0x25cc1b(0x1f4)]=exports[a3_0x25cc1b(0x1d5)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require(a3_0x25cc1b(0x1e6));function Action(_0x1b7c6d,_0x1665b9,_0x5e81d8={'middleware':[],'sensitive':!![]}){return _0x3803b8=>{const _0x127db5=a3_0x56c7;var _0x436fa7;_0x5e81d8[_0x127db5(0x1c8)]=_0x1665b9;const _0x487bd3=parseRoute(_0x1b7c6d);if(_0x487bd3[_0x127db5(0x1d1)]){_0x5e81d8[_0x127db5(0x1ec)]=_0x5e81d8['prefix']?'/'+_0x487bd3[_0x127db5(0x1d1)]+'/'+_0x5e81d8[_0x127db5(0x1ec)]:'/'+_0x487bd3['route'];_0x487bd3['prefix']&&(_0x5e81d8[_0x127db5(0x1ec)]='/'+_0x487bd3[_0x127db5(0x1ec)]+'/'+_0x5e81d8[_0x127db5(0x1ec)]);if(fs[_0x127db5(0x1be)](_0x487bd3[_0x127db5(0x1da)]+_0x127db5(0x1d2)+_0x487bd3['module']+_0x127db5(0x1df)+(lodash['endsWith'](_0x487bd3[_0x127db5(0x1f6)],'ts')?'ts':'js'))){const _0x9e690a=include(_0x487bd3[_0x127db5(0x1da)]+_0x127db5(0x1d2)+_0x487bd3['module']+_0x127db5(0x1df)+(lodash[_0x127db5(0x1f3)](_0x487bd3[_0x127db5(0x1f6)],'ts')?'ts':'js'));if(_0x9e690a[_0x127db5(0x1ee)]&&lodash['isArray'](_0x9e690a[_0x127db5(0x1ee)])&&_0x9e690a[_0x127db5(0x1ee)][_0x127db5(0x1e5)]>0x0)for(let _0x17a544 in _0x9e690a[_0x127db5(0x1ee)]){if(((_0x436fa7=_0x9e690a===null||_0x9e690a===void 0x0?void 0x0:_0x9e690a[_0x127db5(0x1f1)])===null||_0x436fa7===void 0x0?void 0x0:_0x436fa7[_0x127db5(0x1e5)])>0x0&&_0x9e690a['middlewareIgnore']['indexOf'](_0x9e690a['middleware'][_0x17a544])!=-0x1)continue;_0x5e81d8['middleware'][_0x127db5(0x1ce)](_0x9e690a[_0x127db5(0x1ee)][_0x17a544]);}const _0x2cc351=(0x0,core_1['getClassMetadata'])(action_1[_0x127db5(0x1de)],action_1[_0x127db5(0x1c6)])||{};_0x2cc351[''+_0x487bd3[_0x127db5(0x1d1)]]=_0x9e690a,(0x0,core_1[_0x127db5(0x1bd)])(action_1[_0x127db5(0x1de)],_0x2cc351,action_1['AppsConfigTmp']);}_0x5e81d8['prefix']=_0x5e81d8[_0x127db5(0x1ec)][_0x127db5(0x1cf)]()[_0x127db5(0x1dd)](/\/{2,}/g,'/'),(0x0,core_1[_0x127db5(0x1c0)])(action_1[_0x127db5(0x1e9)],_0x3803b8),(0x0,core_1[_0x127db5(0x1d6)])(_0x5e81d8[_0x127db5(0x1ec)],_0x5e81d8)(_0x3803b8),(0x0,core_1[_0x127db5(0x1bd)])(action_1[_0x127db5(0x1e9)],{'prefix':_0x5e81d8[_0x127db5(0x1ec)],'pprefix':_0x487bd3[_0x127db5(0x1ec)],'module':_0x487bd3[_0x127db5(0x1d1)],'filepath':_0x487bd3[_0x127db5(0x1f6)],'routerOptions':_0x5e81d8},_0x3803b8);}else _0x5e81d8[_0x127db5(0x1ec)]=_0x5e81d8[_0x127db5(0x1ec)]?'/'+_0x5e81d8[_0x127db5(0x1ec)]:'/'+_0x487bd3['route'],_0x487bd3[_0x127db5(0x1ec)]&&(_0x5e81d8[_0x127db5(0x1ec)]='/'+_0x487bd3[_0x127db5(0x1ec)]+'/'+_0x5e81d8[_0x127db5(0x1ec)]),_0x5e81d8[_0x127db5(0x1ec)]=_0x5e81d8[_0x127db5(0x1ec)]['toLowerCase']()[_0x127db5(0x1dd)](/\/{2,}/g,'/'),(0x0,core_1[_0x127db5(0x1c0)])(action_1[_0x127db5(0x1e9)],_0x3803b8),(0x0,core_1[_0x127db5(0x1d6)])(_0x5e81d8[_0x127db5(0x1ec)],_0x5e81d8)(_0x3803b8),(0x0,core_1[_0x127db5(0x1bd)])(action_1[_0x127db5(0x1e9)],{'prefix':_0x5e81d8[_0x127db5(0x1ec)],'module':_0x487bd3['module'],'pprefix':_0x487bd3['prefix'],'filepath':_0x487bd3[_0x127db5(0x1f6)],'routerOptions':_0x5e81d8},_0x3803b8);};}exports[a3_0x25cc1b(0x1d5)]=Action;function a3_0x56c7(_0x2bba97,_0x2c7373){const _0x16b0d5=a3_0x16b0();return a3_0x56c7=function(_0x56c766,_0x1c7bbf){_0x56c766=_0x56c766-0x1bd;let _0x34bf50=_0x16b0d5[_0x56c766];return _0x34bf50;},a3_0x56c7(_0x2bba97,_0x2c7373);}function parseRoute(_0x880af8){const _0x4f34c9=a3_0x25cc1b;_0x880af8=_0x880af8[_0x4f34c9(0x1dd)](/(\\|\/)/g,'/');const _0x4a816e=process[_0x4f34c9(0x1cc)]()[_0x4f34c9(0x1dd)](/(\\|\/)/g,'/'),_0x509f5a=_0x880af8['substring'](0x0,_0x4a816e[_0x4f34c9(0x1e5)]+_0x880af8[_0x4f34c9(0x1e0)](_0x4a816e[_0x4f34c9(0x1e5)]+0x1)[_0x4f34c9(0x1e2)]('/')+0x1),_0x23a571=_0x880af8['substring'](_0x509f5a[_0x4f34c9(0x1e5)]+0x1)['replace'](/(\\|\/)/g,'/'),_0xf4672={'route':'','prefix':![],'module':![],'rootpath':_0x509f5a,'filepath':_0x23a571};if(_0x23a571[_0x4f34c9(0x1cb)](_0x4f34c9(0x1d0))||_0x23a571[_0x4f34c9(0x1cb)](_0x4f34c9(0x1c9))){const _0x13b99e=_0x23a571[_0x4f34c9(0x1e0)]((_0x23a571[_0x4f34c9(0x1cb)](_0x4f34c9(0x1d0))?_0x4f34c9(0x1d0):_0x4f34c9(0x1c9))[_0x4f34c9(0x1e5)])[_0x4f34c9(0x1c1)]('/')[_0x4f34c9(0x1e7)](_0x4700e1=>_0x4700e1&&_0x4700e1[_0x4f34c9(0x1c7)]());return _0x13b99e[_0x4f34c9(0x1e5)]>0x1&&(_0xf4672[_0x4f34c9(0x1ec)]=_0x13b99e[0x0][_0x4f34c9(0x1cf)](),_0x13b99e[_0x4f34c9(0x1cd)](0x0,0x1)),_0xf4672[_0x4f34c9(0x1bf)]=('/'+_0x13b99e[_0x4f34c9(0x1db)]('/'))[_0x4f34c9(0x1dd)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x4f34c9(0x1ef)](/[\/|A-Z]*[^A-Z]+/g)[_0x4f34c9(0x1db)]('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0xf4672[_0x4f34c9(0x1bf)]['endsWith'](_0x4f34c9(0x1f5))&&(_0xf4672['route']=_0xf4672['route'][_0x4f34c9(0x1e0)](0x0,_0xf4672[_0x4f34c9(0x1bf)][_0x4f34c9(0x1e5)]-0x7)),_0xf4672['route']['endsWith'](_0x4f34c9(0x1d8))&&(_0xf4672[_0x4f34c9(0x1bf)]=_0xf4672[_0x4f34c9(0x1bf)][_0x4f34c9(0x1e0)](0x0,_0xf4672[_0x4f34c9(0x1bf)][_0x4f34c9(0x1e5)]-0xb)),_0xf4672;}else{if(_0x23a571[_0x4f34c9(0x1cb)](_0x4f34c9(0x1d4))){const _0x3cd7e8=_0x23a571[_0x4f34c9(0x1e0)](0x0,_0x23a571[_0x4f34c9(0x1e2)]('/apps/')+0x5),_0x4e1075=_0x23a571[_0x4f34c9(0x1e0)](_0x3cd7e8[_0x4f34c9(0x1e5)]+0x1)[_0x4f34c9(0x1dd)](/(\\|\/)/g,'/')[_0x4f34c9(0x1c1)]('/')[0x0];if(_0x23a571[_0x4f34c9(0x1cb)](_0x4f34c9(0x1d4)+_0x4e1075+_0x4f34c9(0x1f0))){const _0xa1bdf7=_0x23a571[_0x4f34c9(0x1e0)]((_0x3cd7e8+'/'+_0x4e1075+'/controller/')['length'])[_0x4f34c9(0x1c1)]('/')['filter'](_0xe3c159=>_0xe3c159&&_0xe3c159[_0x4f34c9(0x1c7)]());return _0xa1bdf7[_0x4f34c9(0x1e5)]>0x1&&(_0xf4672['prefix']=_0xa1bdf7[0x0][_0x4f34c9(0x1cf)](),_0xa1bdf7[_0x4f34c9(0x1cd)](0x0,0x1)),_0xf4672[_0x4f34c9(0x1d1)]=_0x4e1075,_0xf4672[_0x4f34c9(0x1bf)]=('/'+_0x4e1075+'/'+_0xa1bdf7[_0x4f34c9(0x1db)]('/'))[_0x4f34c9(0x1dd)](/(\.ts|\.js)$/,'')[_0x4f34c9(0x1dd)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4f34c9(0x1db)]('-')[_0x4f34c9(0x1cf)]()[_0x4f34c9(0x1dd)](/\/\-/g,'/'),_0xf4672[_0x4f34c9(0x1bf)][_0x4f34c9(0x1f3)](_0x4f34c9(0x1f5))&&(_0xf4672[_0x4f34c9(0x1bf)]=_0xf4672['route'][_0x4f34c9(0x1e0)](0x0,_0xf4672[_0x4f34c9(0x1bf)][_0x4f34c9(0x1e5)]-0x7)),_0xf4672['route'][_0x4f34c9(0x1f3)](_0x4f34c9(0x1d8))&&(_0xf4672[_0x4f34c9(0x1bf)]=_0xf4672[_0x4f34c9(0x1bf)][_0x4f34c9(0x1e0)](0x0,_0xf4672['route'][_0x4f34c9(0x1e5)]-0xb)),_0xf4672;}throw new Error(_0x23a571+_0x4f34c9(0x1c4)+_0x4e1075+_0x4f34c9(0x1c3));}}throw new Error(_0x23a571+_0x4f34c9(0x1c2));}exports[a3_0x25cc1b(0x1f4)]=parseRoute;function a3_0x16b0(){const _0x54de7b=['Action','Controller','3747711EhVlNA','-controller','89825sDEoyu','rootpath','join','641466AafpOp','replace','APPSCONFIG_KEY','/config.','substring','79439kwPkcq','indexOf','__esModule','284766QXTOxK','length','../types/action','filter','36oNUqdW','ACTION_KEY','9777OJYXxU','120eSAvyv','prefix','12cMomFe','middleware','match','/controller/','middlewareIgnore','5599610SKIlBu','endsWith','parseRoute','-action','filepath','saveClassMetadata','existsSync','route','saveModule','split','\x20文件请放在app/controller/文件下','/controller/文件下','\x20文件请放在apps/','defineProperty','AppsConfigTmp','trim','tagName','basic/controller/','7BCWNup','startsWith','cwd','splice','push','toLowerCase','app/controller/','module','/apps/','16rKWgkt','apps/'];a3_0x16b0=function(){return _0x54de7b;};return a3_0x16b0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x4068(_0x30882e,_0x1202ff){const _0x2f7d3d=a4_0x2f7d();return a4_0x4068=function(_0x4068d9,_0x396235){_0x4068d9=_0x4068d9-0x13c;let _0x595076=_0x2f7d3d[_0x4068d9];return _0x595076;},a4_0x4068(_0x30882e,_0x1202ff);}const a4_0x161228=a4_0x4068;(function(_0x142bc9,_0x436037){const _0x259c3f=a4_0x4068,_0x1a807f=_0x142bc9();while(!![]){try{const _0x15d21b=-parseInt(_0x259c3f(0x14f))/0x1*(-parseInt(_0x259c3f(0x13f))/0x2)+parseInt(_0x259c3f(0x152))/0x3*(parseInt(_0x259c3f(0x154))/0x4)+-parseInt(_0x259c3f(0x14c))/0x5+parseInt(_0x259c3f(0x13d))/0x6+parseInt(_0x259c3f(0x15c))/0x7+-parseInt(_0x259c3f(0x146))/0x8*(-parseInt(_0x259c3f(0x13e))/0x9)+parseInt(_0x259c3f(0x143))/0xa*(-parseInt(_0x259c3f(0x141))/0xb);if(_0x15d21b===_0x436037)break;else _0x1a807f['push'](_0x1a807f['shift']());}catch(_0x5740bb){_0x1a807f['push'](_0x1a807f['shift']());}}}(a4_0x2f7d,0x4503a));function a4_0x2f7d(){const _0x29e751=['2208976ZjxGAz','../types/action','2557308OwtWTO','629973skuiHf','116BGeXEs','del','341sXpDJx','get','302230DnJvCJ','attachClassMetadata','length','24mYtAzK','indexOf','ACTION_ROUTE_KEY','toLowerCase','validationOptions','middleware','980450IKccnb','validate','filter','4027dKlxGJ','middlewareIgnore','@anncic-api/validator','6XOHHux','intercept','460684kfzSds','delete','description','RequestMapping','apimit','routerName','string','Api'];a4_0x2f7d=function(){return _0x29e751;};return a4_0x2f7d();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x161228(0x15b)]=void 0x0;const validator_1=require(a4_0x161228(0x151)),core_1=require('@midwayjs/core'),action_1=require(a4_0x161228(0x13c));function Api(_0x564b3d,_0x337a9d=a4_0x161228(0x142),_0x4982b7='/',_0x5e68db={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2bf564,_0x190fa0,_0x4b4819)=>{const _0x4632b8=a4_0x4068;var _0x1e086e,_0x201d11,_0x24214e;!_0x5e68db[_0x4632b8(0x14b)]&&(_0x5e68db[_0x4632b8(0x14b)]=[]);!((_0x1e086e=_0x5e68db===null||_0x5e68db===void 0x0?void 0x0:_0x5e68db[_0x4632b8(0x14d)])===null||_0x1e086e===void 0x0?void 0x0:_0x1e086e[_0x4632b8(0x14a)])&&(_0x5e68db[_0x4632b8(0x14d)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x4632b8(0x15a)}});if(((_0x201d11=_0x5e68db===null||_0x5e68db===void 0x0?void 0x0:_0x5e68db[_0x4632b8(0x14b)])===null||_0x201d11===void 0x0?void 0x0:_0x201d11[_0x4632b8(0x145)])>0x0&&((_0x24214e=_0x5e68db===null||_0x5e68db===void 0x0?void 0x0:_0x5e68db[_0x4632b8(0x150)])===null||_0x24214e===void 0x0?void 0x0:_0x24214e[_0x4632b8(0x145)])>0x0)for(let _0x1d96b5 in _0x5e68db[_0x4632b8(0x14b)]){_0x5e68db['middlewareIgnore'][_0x4632b8(0x147)](_0x5e68db[_0x4632b8(0x14b)][_0x1d96b5])!==-0x1&&(_0x5e68db['middleware'][_0x1d96b5]=null);}_0x5e68db[_0x4632b8(0x159)]=_0x564b3d,(0x0,validator_1['Validator'])(_0x5e68db[_0x4632b8(0x14d)])(_0x2bf564,_0x190fa0,_0x4b4819),(0x0,core_1[_0x4632b8(0x157)])(Object['assign'](_0x5e68db,{'path':_0x4982b7,'requestMethod':(_0x337a9d=='del'?_0x4632b8(0x155):_0x337a9d)[_0x4632b8(0x149)]()}))(_0x2bf564,_0x190fa0,_0x4b4819),(0x0,core_1[_0x4632b8(0x144)])(action_1[_0x4632b8(0x148)],{'path':_0x4982b7,'method':_0x190fa0,'apimit':_0x5e68db[_0x4632b8(0x158)],'intercept':_0x5e68db['intercept'],'routerName':_0x5e68db['routerName'],'description':_0x5e68db['description'],'middleware':(_0x5e68db[_0x4632b8(0x14b)]||[])[_0x4632b8(0x14e)](_0x5288ec=>!!_0x5288ec),'requestMethod':(_0x337a9d==_0x4632b8(0x140)?_0x4632b8(0x155):_0x337a9d)[_0x4632b8(0x149)]()},_0x2bf564),(0x0,core_1['createCustomMethodDecorator'])(action_1[_0x4632b8(0x148)],{'path':_0x4982b7,'method':_0x190fa0,'apimit':_0x5e68db['apimit'],'intercept':_0x5e68db[_0x4632b8(0x153)],'routerName':_0x5e68db[_0x4632b8(0x159)],'description':_0x5e68db[_0x4632b8(0x156)],'middleware':(_0x5e68db[_0x4632b8(0x14b)]||[])['filter'](_0x1377d8=>!!_0x1377d8),'requestMethod':(_0x337a9d==_0x4632b8(0x140)?_0x4632b8(0x155):_0x337a9d)[_0x4632b8(0x149)]()})(_0x2bf564,_0x190fa0,_0x4b4819);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x5de1ad=a5_0x463f;(function(_0x4b621c,_0x476f30){const _0xe44a77=a5_0x463f,_0x4b0978=_0x4b621c();while(!![]){try{const _0x3aa905=-parseInt(_0xe44a77(0xa9))/0x1*(parseInt(_0xe44a77(0xac))/0x2)+-parseInt(_0xe44a77(0xa3))/0x3+parseInt(_0xe44a77(0xab))/0x4*(parseInt(_0xe44a77(0x97))/0x5)+-parseInt(_0xe44a77(0xa7))/0x6*(-parseInt(_0xe44a77(0xa5))/0x7)+parseInt(_0xe44a77(0xa2))/0x8*(-parseInt(_0xe44a77(0xa4))/0x9)+parseInt(_0xe44a77(0x95))/0xa+parseInt(_0xe44a77(0x9d))/0xb*(-parseInt(_0xe44a77(0x99))/0xc);if(_0x3aa905===_0x476f30)break;else _0x4b0978['push'](_0x4b0978['shift']());}catch(_0x5b17d7){_0x4b0978['push'](_0x4b0978['shift']());}}}(a5_0x5b66,0xb1283));Object[a5_0x5de1ad(0x9c)](exports,a5_0x5de1ad(0x9b),{'value':!![]}),exports[a5_0x5de1ad(0xaf)]=void 0x0;const core_1=require(a5_0x5de1ad(0x98)),ApitestService_1=require(a5_0x5de1ad(0xa8));function Apitest(_0x37ef87=a5_0x5de1ad(0x96),_0x1a5f7e){return(_0x1611dd,_0x13a024,_0x357c3e)=>{const _0x33979e=a5_0x463f;return(0x0,core_1[_0x33979e(0xa1)])({'path':_0x37ef87,'requestMethod':_0x33979e(0xb2)})(_0x1611dd,_0x13a024,_0x357c3e),_0x357c3e[_0x33979e(0x9e)]=async function(..._0x5b2a74){const _0x2db15f=_0x33979e;var _0xbf5a61;const _0x51e5e8=(_0xbf5a61=this[core_1[_0x2db15f(0x9f)]])===null||_0xbf5a61===void 0x0?void 0x0:_0xbf5a61[_0x2db15f(0xae)];if(_0x51e5e8&&_0x51e5e8[_0x2db15f(0xb1)](_0x2db15f(0xad))){const _0x3f496a=await _0x51e5e8[_0x2db15f(0xa6)]()['getAsync'](ApitestService_1['ApitestService']),_0x50f9d8=await _0x51e5e8['getApplicationContext']()[_0x2db15f(0x9a)](core_1[_0x2db15f(0xaa)]);return _0x50f9d8[_0x2db15f(0xa0)]()&&(_0x1a5f7e[_0x2db15f(0xb0)]=!![]),await _0x3f496a['apidoc'](_0x1a5f7e);}return'';},_0x357c3e;};}function a5_0x463f(_0x29597f,_0x20dd96){const _0x5b66de=a5_0x5b66();return a5_0x463f=function(_0x463f64,_0x309783){_0x463f64=_0x463f64-0x95;let _0x350da0=_0x5b66de[_0x463f64];return _0x350da0;},a5_0x463f(_0x29597f,_0x20dd96);}exports[a5_0x5de1ad(0xaf)]=Apitest;function a5_0x5b66(){const _0x3d55ea=['getAsync','__esModule','defineProperty','153098RWyoYz','value','REQUEST_OBJ_CTX_KEY','isDevelopmentEnvironment','RequestMapping','1016LCZipZ','3900477kKMdXP','3078vPbQsd','1302259wzOZzl','getApplicationContext','30csyIaf','../service/ApitestService','2565ZpdRea','MidwayEnvironmentService','4mUNIkq','668KcxBbQ','apitest','app','Apitest','filepath','getConfig','get','10225170PVkBKS','/apitest','6049210nVhcEW','@midwayjs/core','204OVslPX'];a5_0x5b66=function(){return _0x3d55ea;};return a5_0x5b66();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a6_0x5ac8(_0x5c8cc9,_0x12c95e){var _0x44fe93=a6_0x44fe();return a6_0x5ac8=function(_0x5ac8f9,_0x1fe19d){_0x5ac8f9=_0x5ac8f9-0x1b4;var _0x24287d=_0x44fe93[_0x5ac8f9];return _0x24287d;},a6_0x5ac8(_0x5c8cc9,_0x12c95e);}var a6_0x528bed=a6_0x5ac8;(function(_0x4f1b5b,_0x55111f){var _0x23ad73=a6_0x5ac8,_0x451271=_0x4f1b5b();while(!![]){try{var _0x5ddf86=-parseInt(_0x23ad73(0x1cf))/0x1*(-parseInt(_0x23ad73(0x1ba))/0x2)+-parseInt(_0x23ad73(0x1bd))/0x3+parseInt(_0x23ad73(0x1c6))/0x4+parseInt(_0x23ad73(0x1ce))/0x5*(-parseInt(_0x23ad73(0x1cd))/0x6)+-parseInt(_0x23ad73(0x1b4))/0x7+-parseInt(_0x23ad73(0x1c8))/0x8+-parseInt(_0x23ad73(0x1be))/0x9*(-parseInt(_0x23ad73(0x1b7))/0xa);if(_0x5ddf86===_0x55111f)break;else _0x451271['push'](_0x451271['shift']());}catch(_0x4fcddd){_0x451271['push'](_0x451271['shift']());}}}(a6_0x44fe,0xb9e4e));function a6_0x44fe(){var _0x30edf9=['HEADERS_SIGNATURE','signature验证失败','54NXiRHe','808965ginYou','29oPLaKu','length','defineProperty','10644655vEkKWT','object','ApiError','40KhCzxy','HEADERS_CHECKCODE','登录超时,请重新登录','72934kfrtPL','HEADERS_DEVICE','__decorate','942594COQiJm','9580716PQqEJG','TIMEOUT','metadata','getOwnPropertyDescriptor','TIMEOUT_LOGINTIME','HEADERS_LACK','decorate','design:type','481316xXlkaf','__esModule','11068368mWcmEg','请求超时,请重试','function'];a6_0x44fe=function(){return _0x30edf9;};return a6_0x44fe();}var __decorate=this&&this[a6_0x528bed(0x1bc)]||function(_0x9264b0,_0x1ab1cf,_0x150675,_0x1c35c5){var _0x167943=a6_0x528bed,_0x25f068=arguments[_0x167943(0x1d0)],_0x4d3c7b=_0x25f068<0x3?_0x1ab1cf:_0x1c35c5===null?_0x1c35c5=Object[_0x167943(0x1c1)](_0x1ab1cf,_0x150675):_0x1c35c5,_0x4eac25;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x167943(0x1ca))_0x4d3c7b=Reflect[_0x167943(0x1c4)](_0x9264b0,_0x1ab1cf,_0x150675,_0x1c35c5);else{for(var _0x1a374c=_0x9264b0['length']-0x1;_0x1a374c>=0x0;_0x1a374c--)if(_0x4eac25=_0x9264b0[_0x1a374c])_0x4d3c7b=(_0x25f068<0x3?_0x4eac25(_0x4d3c7b):_0x25f068>0x3?_0x4eac25(_0x1ab1cf,_0x150675,_0x4d3c7b):_0x4eac25(_0x1ab1cf,_0x150675))||_0x4d3c7b;}return _0x25f068>0x3&&_0x4d3c7b&&Object[_0x167943(0x1d1)](_0x1ab1cf,_0x150675,_0x4d3c7b),_0x4d3c7b;},__metadata=this&&this['__metadata']||function(_0x276445,_0x4649a6){var _0x1e0d49=a6_0x528bed;if(typeof Reflect===_0x1e0d49(0x1b5)&&typeof Reflect[_0x1e0d49(0x1c0)]===_0x1e0d49(0x1ca))return Reflect[_0x1e0d49(0x1c0)](_0x276445,_0x4649a6);};Object[a6_0x528bed(0x1d1)](exports,a6_0x528bed(0x1c7),{'value':!![]}),exports[a6_0x528bed(0x1b6)]=void 0x0;class ApiError{}ApiError[a6_0x528bed(0x1bf)]=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError[a6_0x528bed(0x1bb)]=0x3d7e33,ApiError['HEADERS_SIGNATURE']=0x3d7e34,ApiError[a6_0x528bed(0x1b8)]=0x3d7e35,ApiError[a6_0x528bed(0x1c2)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x528bed(0x1c9)),__metadata(a6_0x528bed(0x1c5),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x528bed(0x1c5),Object)],ApiError,a6_0x528bed(0x1c3),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x528bed(0x1c5),Object)],ApiError,a6_0x528bed(0x1bb),void 0x0),__decorate([AnnErrorMsg(a6_0x528bed(0x1cc)),__metadata(a6_0x528bed(0x1c5),Object)],ApiError,a6_0x528bed(0x1cb),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x528bed(0x1c5),Object)],ApiError,a6_0x528bed(0x1b8),void 0x0),__decorate([AnnErrorMsg(a6_0x528bed(0x1b9)),__metadata(a6_0x528bed(0x1c5),Object)],ApiError,a6_0x528bed(0x1c2),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x6aaad2=a7_0x373e;function a7_0x45b0(){const _0x5cb1f7=['10748128jfiIIf','6911298drxmCP','3794547ivkSCS','../types/action','34562XTIuTi','12710iybhbP','@midwayjs/core','APPSCONFIG_KEY','AppsConfigTmp','259994UwMola','get','9BcraBB','420716oXBeFz','defineProperty','211703vJydeD','35aylXZr','2yQehtC','__esModule'];a7_0x45b0=function(){return _0x5cb1f7;};return a7_0x45b0();}(function(_0x3819e8,_0x389330){const _0x9efd11=a7_0x373e,_0x58e241=_0x3819e8();while(!![]){try{const _0x3938f8=-parseInt(_0x9efd11(0x1f0))/0x1*(-parseInt(_0x9efd11(0x1f2))/0x2)+parseInt(_0x9efd11(0x1f6))/0x3+parseInt(_0x9efd11(0x1ee))/0x4*(parseInt(_0x9efd11(0x1f1))/0x5)+parseInt(_0x9efd11(0x1f5))/0x6+parseInt(_0x9efd11(0x1eb))/0x7+parseInt(_0x9efd11(0x1f4))/0x8*(parseInt(_0x9efd11(0x1ed))/0x9)+-parseInt(_0x9efd11(0x1f9))/0xa*(parseInt(_0x9efd11(0x1f8))/0xb);if(_0x3938f8===_0x389330)break;else _0x58e241['push'](_0x58e241['shift']());}catch(_0x20d7dc){_0x58e241['push'](_0x58e241['shift']());}}}(a7_0x45b0,0xb78f8));function a7_0x373e(_0x2c99d4,_0x5ebcf8){const _0x45b07e=a7_0x45b0();return a7_0x373e=function(_0x373ecd,_0x176d59){_0x373ecd=_0x373ecd-0x1e8;let _0x16daff=_0x45b07e[_0x373ecd];return _0x16daff;},a7_0x373e(_0x2c99d4,_0x5ebcf8);}Object[a7_0x6aaad2(0x1ef)](exports,a7_0x6aaad2(0x1f3),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0x6aaad2(0x1e8)),action_1=require(a7_0x6aaad2(0x1f7));function getAppsConfig(_0x95bfc4){const _0x319d15=a7_0x6aaad2,_0x3f6654=(0x0,core_1['getClassMetadata'])(action_1[_0x319d15(0x1e9)],action_1[_0x319d15(0x1ea)])||{};return _0x95bfc4?lodash[_0x319d15(0x1ec)](_0x3f6654,_0x95bfc4):_0x3f6654;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x4c3142=a8_0x347e;(function(_0x12c427,_0x46d532){const _0x23deb2=a8_0x347e,_0x214f75=_0x12c427();while(!![]){try{const _0x586ec9=-parseInt(_0x23deb2(0x14f))/0x1*(parseInt(_0x23deb2(0x165))/0x2)+-parseInt(_0x23deb2(0x16c))/0x3+-parseInt(_0x23deb2(0x188))/0x4+parseInt(_0x23deb2(0x177))/0x5*(parseInt(_0x23deb2(0x14a))/0x6)+parseInt(_0x23deb2(0x148))/0x7+-parseInt(_0x23deb2(0x182))/0x8+parseInt(_0x23deb2(0x161))/0x9;if(_0x586ec9===_0x46d532)break;else _0x214f75['push'](_0x214f75['shift']());}catch(_0x3ead1d){_0x214f75['push'](_0x214f75['shift']());}}}(a8_0x3f2c,0xb970c));function a8_0x3f2c(){const _0x484ebf=['file','4021464VLuCEr','routes','limit','static/apitest','tagName','string','parameterIndex','get','startsWith','name','RULES_KEY','425dxdcKa','concat','routerName','request','summary','split','min','WEB_ROUTER_PARAM_KEY','default','String','rules','2223040jPKoDa','getRoutes','noreq','prefix','flags.label','__esModule','5712060evWMih','pprefix','max','query','getMethodParamTypes','function','array','description','../types/action','push','QUERY','@midwayjs/core','path','requestMethod','lodash','header','isArray','indexOf','PARAM','ACTION_KEY','Boolean','allow','title','method','HEADERS','object','filepath','propertyData','187488IWBKVU','find','48390rLPFil','module','INJECT_CUSTOM_PARAM','listModule','文件上传-','1OcvvZf','args','/static/apitest','getClassMetadata','join','RouteParamTypes','boolean','只允许:[','File','getClassExtendedMetadata','ACTION_ROUTE_KEY','flags.description','required','replace','type','body','intercept','route','36776619qohhPw','children','key','filter','1985306KWWrJY','items','routerOptions','FILESSTREAM','metadata','@anncic-api/validator'];a8_0x3f2c=function(){return _0x484ebf;};return a8_0x3f2c();}Object['defineProperty'](exports,a8_0x4c3142(0x187),{'value':!![]}),exports[a8_0x4c3142(0x183)]=void 0x0;const lodash_1=require(a8_0x4c3142(0x13a)),validator_1=require(a8_0x4c3142(0x16a)),core_1=require('@midwayjs/core'),core_2=require(a8_0x4c3142(0x137)),core_3=require(a8_0x4c3142(0x137)),action_1=require(a8_0x4c3142(0x134));function getRoutes(_0x87160e={'prefix':'/','module':![]}){const _0x47a518=a8_0x4c3142;var _0x5d8038,_0x4f33fc;const _0x27754d=(0x0,core_3[_0x47a518(0x14d)])(action_1[_0x47a518(0x13f)]),_0x5eb8aa={},_0x26df8f=Array[_0x47a518(0x13c)](_0x87160e['filter']||[])?_0x87160e[_0x47a518(0x164)]||[]:[_0x87160e[_0x47a518(0x164)]];_0x1bd2d9:for(const _0x1c403e of _0x27754d){let _0x13d2d4=(0x0,core_3[_0x47a518(0x152)])(action_1[_0x47a518(0x13f)],_0x1c403e),_0x8cedd6=(0x0,core_3[_0x47a518(0x152)])(action_1[_0x47a518(0x159)],_0x1c403e);if(_0x13d2d4&&_0x8cedd6){let _0x3c1719=_0x13d2d4[_0x47a518(0x185)],_0x30174b={};if(_0x87160e[_0x47a518(0x14b)]&&(0x0,lodash_1['get'])(_0x13d2d4,_0x47a518(0x14b),![])!=_0x87160e[_0x47a518(0x14b)])continue _0x1bd2d9;else{if(_0x87160e[_0x47a518(0x14b)]===![]&&!!(0x0,lodash_1['get'])(_0x13d2d4,_0x47a518(0x14b),null))continue _0x1bd2d9;}if(_0x87160e[_0x47a518(0x185)]&&!_0x3c1719[_0x47a518(0x174)](_0x87160e[_0x47a518(0x185)]))continue _0x1bd2d9;_0x3c1719!=='/'?(_0x30174b['summary']=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x167)]['tagName'])||(/^\//['test'](_0x3c1719)?_0x3c1719[_0x47a518(0x17c)]('/')[0x1]:_0x3c1719),_0x30174b['description']=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4['routerOptions'][_0x47a518(0x133)])||_0x30174b['summary'],_0x30174b['routes']=[]):(_0x30174b[_0x47a518(0x17b)]=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4['routerOptions'][_0x47a518(0x170)])||_0x47a518(0x17f),_0x30174b[_0x47a518(0x133)]=(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x167)]['description'])||'',_0x30174b[_0x47a518(0x16d)]=[]);_0x87160e[_0x47a518(0x146)]&&(_0x30174b[_0x47a518(0x146)]=_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x146)]);(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x189)])&&(_0x30174b[_0x47a518(0x185)]=_0x13d2d4['pprefix']);(_0x13d2d4===null||_0x13d2d4===void 0x0?void 0x0:_0x13d2d4[_0x47a518(0x14b)])&&(_0x30174b[_0x47a518(0x14b)]=_0x13d2d4[_0x47a518(0x14b)]);let _0x30582c=(0x0,core_3['getClassMetadata'])(core_2[_0x47a518(0x14c)],_0x1c403e)||{};if(typeof _0x8cedd6[Symbol['iterator']]===_0x47a518(0x131))for(let _0x2190e7 of _0x8cedd6){if((_0x87160e===null||_0x87160e===void 0x0?void 0x0:_0x87160e[_0x47a518(0x15f)])&&!(_0x2190e7===null||_0x2190e7===void 0x0?void 0x0:_0x2190e7[_0x47a518(0x15f)]))continue;let _0x4d6480={};_0x4d6480[_0x47a518(0x143)]=_0x2190e7[_0x47a518(0x139)],_0x4d6480[_0x47a518(0x160)]=(_0x3c1719+_0x2190e7[_0x47a518(0x138)])[_0x47a518(0x15c)](/\/{1,}/,'/'),_0x4d6480[_0x47a518(0x17b)]=(_0x2190e7===null||_0x2190e7===void 0x0?void 0x0:_0x2190e7[_0x47a518(0x179)])||_0x30174b[_0x47a518(0x17b)]||_0x47a518(0x17f),_0x4d6480['description']=(_0x2190e7===null||_0x2190e7===void 0x0?void 0x0:_0x2190e7[_0x47a518(0x133)])||'',_0x4d6480[_0x47a518(0x17a)]=[];if(!(0x0,lodash_1[_0x47a518(0x174)])(_0x4d6480[_0x47a518(0x160)],_0x47a518(0x16f))&&!(0x0,lodash_1[_0x47a518(0x174)])(_0x4d6480['route'],_0x47a518(0x151))&&_0x26df8f[_0x47a518(0x13d)](_0x4d6480[_0x47a518(0x160)])===-0x1){if(!(_0x87160e===null||_0x87160e===void 0x0?void 0x0:_0x87160e[_0x47a518(0x184)])){let _0x34f8cb=(0x0,core_3[_0x47a518(0x130)])(new _0x1c403e(),_0x2190e7[_0x47a518(0x143)]);for(const _0x2f53d7 in _0x34f8cb){let _0x23d08e=(_0x5d8038=_0x30582c[_0x2190e7[_0x47a518(0x143)]])===null||_0x5d8038===void 0x0?void 0x0:_0x5d8038['find'](_0x4c6f1f=>_0x4c6f1f['parameterIndex']==_0x2f53d7&&_0x4c6f1f[_0x47a518(0x163)]===core_2[_0x47a518(0x17e)]&&(_0x4c6f1f===null||_0x4c6f1f===void 0x0?void 0x0:_0x4c6f1f[_0x47a518(0x169)]));if(_0x23d08e===null||_0x23d08e===void 0x0?void 0x0:_0x23d08e[_0x47a518(0x169)]){let _0x4100f4=convertTypeToString(_0x23d08e['metadata'][_0x47a518(0x15d)]||0x0);if([_0x47a518(0x18b),_0x47a518(0x15e)][_0x47a518(0x13d)](_0x4100f4)!=-0x1&&_0x23d08e[_0x47a518(0x169)][_0x47a518(0x147)][_0x47a518(0x13d)](':')==-0x1&&!_0x4d6480[_0x47a518(0x17a)][_0x47a518(0x149)](_0x52344b=>_0x52344b[_0x47a518(0x163)]==_0x23d08e[_0x47a518(0x169)][_0x47a518(0x147)]))_0x4d6480['request'][_0x47a518(0x135)]({'key':_0x23d08e[_0x47a518(0x169)][_0x47a518(0x147)],'title':_0x23d08e['metadata'][_0x47a518(0x147)],'type':convertSchemaType(_0x34f8cb[_0x23d08e[_0x47a518(0x172)]][_0x47a518(0x175)]),'required':![],'default':'','desc':''});else{if(_0x4100f4==_0x47a518(0x16b)){let _0x137c42=((_0x4f33fc=_0x23d08e===null||_0x23d08e===void 0x0?void 0x0:_0x23d08e[_0x47a518(0x169)])===null||_0x4f33fc===void 0x0?void 0x0:_0x4f33fc[_0x47a518(0x147)])||_0x47a518(0x16b);_0x137c42[_0x47a518(0x13d)](':')==-0x1&&!_0x4d6480[_0x47a518(0x17a)]['find'](_0x3f5c42=>_0x3f5c42[_0x47a518(0x163)]==_0x137c42&&_0x3f5c42[_0x47a518(0x15d)]==_0x47a518(0x16b))&&_0x4d6480[_0x47a518(0x17a)][_0x47a518(0x135)]({'key':_0x137c42,'title':_0x47a518(0x14e)+_0x137c42,'type':_0x47a518(0x16b),'required':!![],'default':'','desc':''});}}}else{const _0x2b48e0=(0x0,core_3[_0x47a518(0x158)])(validator_1[_0x47a518(0x176)],_0x34f8cb[_0x2f53d7]);_0x2b48e0&&_0x4d6480[_0x47a518(0x17a)][_0x47a518(0x135)](...getJoiRequest(_0x2b48e0));}}}_0x30174b[_0x47a518(0x16d)][_0x47a518(0x135)](_0x4d6480);}}if(_0x30174b[_0x47a518(0x16d)]['length']>0x0){let _0xa5a53=_0x5eb8aa[_0x3c1719];_0xa5a53?(_0xa5a53[_0x47a518(0x17b)]!=_0x30174b[_0x47a518(0x17b)]&&(_0xa5a53[_0x47a518(0x17b)]=_0xa5a53[_0x47a518(0x17b)]+','+_0x30174b['summary']),_0xa5a53[_0x47a518(0x133)]!=_0x30174b[_0x47a518(0x133)]&&(_0xa5a53[_0x47a518(0x133)]=_0xa5a53[_0x47a518(0x133)]+','+_0x30174b[_0x47a518(0x133)]),_0xa5a53[_0x47a518(0x16d)]=_0xa5a53[_0x47a518(0x16d)][_0x47a518(0x178)](_0x30174b[_0x47a518(0x16d)]),_0x5eb8aa[_0x3c1719]=_0xa5a53):_0x5eb8aa[_0x3c1719]=_0x30174b;}}}return _0x5eb8aa;}function a8_0x347e(_0x5012a7,_0x43d3cc){const _0x3f2cf2=a8_0x3f2c();return a8_0x347e=function(_0x347e16,_0x20a2ea){_0x347e16=_0x347e16-0x130;let _0x2831db=_0x3f2cf2[_0x347e16];return _0x2831db;},a8_0x347e(_0x5012a7,_0x43d3cc);}exports[a8_0x4c3142(0x183)]=getRoutes;function getJoiRequest(_0x22f083){const _0x18a720=a8_0x4c3142,_0x18a139=[];for(let _0x1352ad in _0x22f083){const _0x17967f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3ced67=typeof _0x22f083[_0x1352ad]['describe']==_0x18a720(0x131)?_0x22f083[_0x1352ad]['describe']():_0x22f083[_0x1352ad];_0x17967f[_0x18a720(0x163)]=_0x1352ad,_0x17967f['type']=_0x3ced67[_0x18a720(0x15d)],_0x17967f[_0x18a720(0x142)]=(0x0,lodash_1['get'])(_0x3ced67,_0x18a720(0x186),_0x1352ad),_0x17967f[_0x18a720(0x17f)]=(0x0,lodash_1[_0x18a720(0x173)])(_0x3ced67,'flags.default',''),_0x17967f[_0x18a720(0x15b)]=(0x0,lodash_1[_0x18a720(0x173)])(_0x3ced67,'flags.presence','')==_0x18a720(0x15b),_0x17967f['description']=(0x0,lodash_1['get'])(_0x3ced67,_0x18a720(0x15a),'');if(_0x3ced67[_0x18a720(0x15d)]==_0x18a720(0x145))_0x17967f[_0x18a720(0x162)]=getJoiRequest(_0x3ced67['keys']);else _0x3ced67[_0x18a720(0x15d)]==_0x18a720(0x132)&&_0x3ced67[_0x18a720(0x166)]&&Array[_0x18a720(0x13c)](_0x3ced67[_0x18a720(0x166)])&&_0x3ced67[_0x18a720(0x166)][0x0]&&console['log'](_0x1352ad+'-array',_0x3ced67);_0x3ced67['allow']&&Array[_0x18a720(0x13c)](_0x3ced67[_0x18a720(0x141)])&&_0x3ced67['allow']['length']>0x0&&(_0x17967f[_0x18a720(0x133)]=_0x18a720(0x156)+_0x3ced67['allow'][_0x18a720(0x153)](',')+'];'+_0x17967f[_0x18a720(0x133)]);if(_0x17967f[_0x18a720(0x163)]&&_0x17967f['type']){const _0x5b0b3d={};for(const _0x714d46 of _0x3ced67[_0x18a720(0x181)]||[]){if(_0x714d46[_0x18a720(0x175)]===_0x18a720(0x17d)&&_0x714d46['args'])_0x5b0b3d['min']=_0x714d46[_0x18a720(0x150)][_0x18a720(0x16e)];else _0x714d46[_0x18a720(0x175)]==='max'&&(_0x5b0b3d[_0x18a720(0x18a)]=_0x714d46[_0x18a720(0x150)][_0x18a720(0x16e)]);}_0x17967f[_0x18a720(0x181)]=_0x5b0b3d;}_0x17967f['key']&&_0x17967f['title']&&_0x18a139[_0x18a720(0x135)](_0x17967f);}return _0x18a139;}function convertSchemaType(_0x1892f5){const _0x4f9c88=a8_0x4c3142;switch(_0x1892f5){case'Object':return _0x4f9c88(0x145);case _0x4f9c88(0x140):return _0x4f9c88(0x155);case'Number':return'number';case _0x4f9c88(0x180):return _0x4f9c88(0x171);case _0x4f9c88(0x157):return _0x4f9c88(0x16b);default:return _0x4f9c88(0x171);}}function convertTypeToString(_0x553232){const _0x243f10=a8_0x4c3142;switch(_0x553232){case core_1[_0x243f10(0x154)][_0x243f10(0x144)]:return'header';case core_1['RouteParamTypes'][_0x243f10(0x136)]:return _0x243f10(0x18b);case core_1[_0x243f10(0x154)][_0x243f10(0x13e)]:return _0x243f10(0x138);case core_1[_0x243f10(0x154)]['BODY']:return'body';case core_1['RouteParamTypes']['FIELDS']:case core_1[_0x243f10(0x154)][_0x243f10(0x168)]:case core_1[_0x243f10(0x154)]['FILESTREAM']:return _0x243f10(0x16b);default:return _0x243f10(0x13b);}}
|
|
1
|
+
'use strict';const a8_0xe61618=a8_0x2aac;(function(_0x2e6cac,_0x36aa76){const _0x19a94a=a8_0x2aac,_0x3e5173=_0x2e6cac();while(!![]){try{const _0x21bd97=parseInt(_0x19a94a(0x140))/0x1*(-parseInt(_0x19a94a(0x139))/0x2)+-parseInt(_0x19a94a(0x11f))/0x3*(parseInt(_0x19a94a(0x128))/0x4)+-parseInt(_0x19a94a(0x14b))/0x5+parseInt(_0x19a94a(0x137))/0x6*(-parseInt(_0x19a94a(0x121))/0x7)+-parseInt(_0x19a94a(0x10f))/0x8+-parseInt(_0x19a94a(0x13c))/0x9*(-parseInt(_0x19a94a(0x133))/0xa)+-parseInt(_0x19a94a(0x104))/0xb*(-parseInt(_0x19a94a(0x149))/0xc);if(_0x21bd97===_0x36aa76)break;else _0x3e5173['push'](_0x3e5173['shift']());}catch(_0x42871b){_0x3e5173['push'](_0x3e5173['shift']());}}}(a8_0x5db3,0x9f8b2));function a8_0x5db3(){const _0x430ca5=['type','File','log','ACTION_ROUTE_KEY','filter','propertyData','ACTION_KEY','prefix','String','WEB_ROUTER_PARAM_KEY','1820QQiUBs','getMethodParamTypes','isArray','summary','215178cDExEI','title','6946ShJmYn','@anncic-api/validator','routerOptions','17235UXbCRc','required','keys','route','89WmourC','request','body','limit','file','min','RouteParamTypes','describe','filepath','372uJCqlm','只允许:[','1107660bXiUnv','flags.default','query','array','number','get','startsWith','PARAM','name','replace','object','BODY','string','description','children','文件上传-','default','concat','boolean','allow','getRoutes','flags.presence','metadata','flags.description','requestMethod','942062nrctTG','args','parameterIndex','FIELDS','getClassMetadata','push','QUERY','rules','@midwayjs/core','items','iterator','1924624ebdSCZ','intercept','routes','FILESTREAM','lodash','FILESSTREAM','path','function','Object','routerName','tagName','test','RULES_KEY','header','module','pprefix','12FJbYWQ','method','91YpcwQf','indexOf','/static/apitest','key','listModule','length','max','1112516IdlVtD'];a8_0x5db3=function(){return _0x430ca5;};return a8_0x5db3();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0xe61618(0x113)),validator_1=require(a8_0xe61618(0x13a)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a8_0xe61618(0x10c)),action_1=require('../types/action');function a8_0x2aac(_0x2e42b7,_0x117036){const _0x5db321=a8_0x5db3();return a8_0x2aac=function(_0x2aacba,_0x3978b2){_0x2aacba=_0x2aacba-0x102;let _0x53ddd4=_0x5db321[_0x2aacba];return _0x53ddd4;},a8_0x2aac(_0x2e42b7,_0x117036);}function getRoutes(_0x1c1a4f={'prefix':'/','module':![]}){const _0x3bfc7c=a8_0xe61618;var _0x3283be,_0x461eb2;const _0x29c131=(0x0,core_3[_0x3bfc7c(0x125)])(action_1['ACTION_KEY']),_0x39441d={},_0x1d01e3=Array[_0x3bfc7c(0x135)](_0x1c1a4f['filter']||[])?_0x1c1a4f[_0x3bfc7c(0x12d)]||[]:[_0x1c1a4f[_0x3bfc7c(0x12d)]];_0x21ef35:for(const _0x2a61a0 of _0x29c131){let _0x230061=(0x0,core_3[_0x3bfc7c(0x108)])(action_1[_0x3bfc7c(0x12f)],_0x2a61a0),_0x256cf5=(0x0,core_3[_0x3bfc7c(0x108)])(action_1[_0x3bfc7c(0x12c)],_0x2a61a0);if(_0x230061&&_0x256cf5){let _0x40f564=_0x230061['prefix'],_0x1a27f2={};if(_0x1c1a4f[_0x3bfc7c(0x11d)]&&(0x0,lodash_1[_0x3bfc7c(0x150)])(_0x230061,_0x3bfc7c(0x11d),![])!=_0x1c1a4f[_0x3bfc7c(0x11d)])continue _0x21ef35;else{if(_0x1c1a4f[_0x3bfc7c(0x11d)]===![]&&!!(0x0,lodash_1['get'])(_0x230061,'module',null))continue _0x21ef35;}if(_0x1c1a4f[_0x3bfc7c(0x130)]&&!_0x40f564[_0x3bfc7c(0x151)](_0x1c1a4f[_0x3bfc7c(0x130)]))continue _0x21ef35;_0x40f564!=='/'?(_0x1a27f2[_0x3bfc7c(0x136)]=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)][_0x3bfc7c(0x119)])||(/^\//[_0x3bfc7c(0x11a)](_0x40f564)?_0x40f564['split']('/')[0x1]:_0x40f564),_0x1a27f2['description']=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)][_0x3bfc7c(0x158)])||_0x1a27f2[_0x3bfc7c(0x136)],_0x1a27f2[_0x3bfc7c(0x111)]=[]):(_0x1a27f2[_0x3bfc7c(0x136)]=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)]['tagName'])||_0x3bfc7c(0x15b),_0x1a27f2[_0x3bfc7c(0x158)]=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)][_0x3bfc7c(0x158)])||'',_0x1a27f2[_0x3bfc7c(0x111)]=[]);_0x1c1a4f[_0x3bfc7c(0x148)]&&(_0x1a27f2[_0x3bfc7c(0x148)]=_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x148)]);(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061['pprefix'])&&(_0x1a27f2['prefix']=_0x230061[_0x3bfc7c(0x11e)]);(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x11d)])&&(_0x1a27f2[_0x3bfc7c(0x11d)]=_0x230061['module']);let _0x2b592b=(0x0,core_3[_0x3bfc7c(0x108)])(core_2['INJECT_CUSTOM_PARAM'],_0x2a61a0)||{};if(typeof _0x256cf5[Symbol[_0x3bfc7c(0x10e)]]===_0x3bfc7c(0x116))for(let _0x2b06b6 of _0x256cf5){if((_0x1c1a4f===null||_0x1c1a4f===void 0x0?void 0x0:_0x1c1a4f[_0x3bfc7c(0x110)])&&!(_0x2b06b6===null||_0x2b06b6===void 0x0?void 0x0:_0x2b06b6[_0x3bfc7c(0x110)]))continue;let _0x45f484={};_0x45f484[_0x3bfc7c(0x120)]=_0x2b06b6[_0x3bfc7c(0x103)],_0x45f484[_0x3bfc7c(0x13f)]=(_0x40f564+_0x2b06b6['path'])[_0x3bfc7c(0x154)](/\/{1,}/,'/'),_0x45f484['summary']=(_0x2b06b6===null||_0x2b06b6===void 0x0?void 0x0:_0x2b06b6[_0x3bfc7c(0x118)])||_0x1a27f2['summary']||'default',_0x45f484[_0x3bfc7c(0x158)]=(_0x2b06b6===null||_0x2b06b6===void 0x0?void 0x0:_0x2b06b6[_0x3bfc7c(0x158)])||'',_0x45f484[_0x3bfc7c(0x141)]=[];if(!(0x0,lodash_1[_0x3bfc7c(0x151)])(_0x45f484[_0x3bfc7c(0x13f)],'static/apitest')&&!(0x0,lodash_1[_0x3bfc7c(0x151)])(_0x45f484['route'],_0x3bfc7c(0x123))&&_0x1d01e3[_0x3bfc7c(0x122)](_0x45f484[_0x3bfc7c(0x13f)])===-0x1){if(!(_0x1c1a4f===null||_0x1c1a4f===void 0x0?void 0x0:_0x1c1a4f['noreq'])){let _0x5d3b50=(0x0,core_3[_0x3bfc7c(0x134)])(new _0x2a61a0(),_0x2b06b6['method']);for(const _0x3fd54d in _0x5d3b50){let _0x48a50c=(_0x3283be=_0x2b592b[_0x2b06b6[_0x3bfc7c(0x120)]])===null||_0x3283be===void 0x0?void 0x0:_0x3283be['find'](_0x2ee907=>_0x2ee907['parameterIndex']==_0x3fd54d&&_0x2ee907['key']===core_2[_0x3bfc7c(0x132)]&&(_0x2ee907===null||_0x2ee907===void 0x0?void 0x0:_0x2ee907[_0x3bfc7c(0x161)]));if(_0x48a50c===null||_0x48a50c===void 0x0?void 0x0:_0x48a50c['metadata']){let _0x3fb75a=convertTypeToString(_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x129)]||0x0);if([_0x3bfc7c(0x14d),'body']['indexOf'](_0x3fb75a)!=-0x1&&_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x12e)][_0x3bfc7c(0x122)](':')==-0x1&&!_0x45f484[_0x3bfc7c(0x141)]['find'](_0x4e8e28=>_0x4e8e28[_0x3bfc7c(0x124)]==_0x48a50c['metadata'][_0x3bfc7c(0x12e)]))_0x45f484['request'][_0x3bfc7c(0x109)]({'key':_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x12e)],'title':_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x12e)],'type':convertSchemaType(_0x5d3b50[_0x48a50c[_0x3bfc7c(0x106)]][_0x3bfc7c(0x153)]),'required':![],'default':'','desc':''});else{if(_0x3fb75a==_0x3bfc7c(0x144)){let _0x5d0946=((_0x461eb2=_0x48a50c===null||_0x48a50c===void 0x0?void 0x0:_0x48a50c[_0x3bfc7c(0x161)])===null||_0x461eb2===void 0x0?void 0x0:_0x461eb2[_0x3bfc7c(0x12e)])||_0x3bfc7c(0x144);_0x5d0946[_0x3bfc7c(0x122)](':')==-0x1&&!_0x45f484[_0x3bfc7c(0x141)]['find'](_0x4b45ca=>_0x4b45ca[_0x3bfc7c(0x124)]==_0x5d0946&&_0x4b45ca[_0x3bfc7c(0x129)]=='file')&&_0x45f484[_0x3bfc7c(0x141)][_0x3bfc7c(0x109)]({'key':_0x5d0946,'title':_0x3bfc7c(0x15a)+_0x5d0946,'type':_0x3bfc7c(0x144),'required':!![],'default':'','desc':''});}}}else{const _0x33b0df=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x3bfc7c(0x11b)],_0x5d3b50[_0x3fd54d]);_0x33b0df&&_0x45f484[_0x3bfc7c(0x141)][_0x3bfc7c(0x109)](...getJoiRequest(_0x33b0df));}}}_0x1a27f2['routes'][_0x3bfc7c(0x109)](_0x45f484);}}if(_0x1a27f2[_0x3bfc7c(0x111)][_0x3bfc7c(0x126)]>0x0){let _0x277ea1=_0x39441d[_0x40f564];_0x277ea1?(_0x277ea1['summary']!=_0x1a27f2['summary']&&(_0x277ea1[_0x3bfc7c(0x136)]=_0x277ea1[_0x3bfc7c(0x136)]+','+_0x1a27f2[_0x3bfc7c(0x136)]),_0x277ea1[_0x3bfc7c(0x158)]!=_0x1a27f2[_0x3bfc7c(0x158)]&&(_0x277ea1['description']=_0x277ea1['description']+','+_0x1a27f2[_0x3bfc7c(0x158)]),_0x277ea1[_0x3bfc7c(0x111)]=_0x277ea1[_0x3bfc7c(0x111)][_0x3bfc7c(0x15c)](_0x1a27f2[_0x3bfc7c(0x111)]),_0x39441d[_0x40f564]=_0x277ea1):_0x39441d[_0x40f564]=_0x1a27f2;}}}return _0x39441d;}exports[a8_0xe61618(0x15f)]=getRoutes;function getJoiRequest(_0x27e89a){const _0x51cfad=a8_0xe61618,_0x376508=[];for(let _0x217606 in _0x27e89a){const _0x32000a={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x9a7534=typeof _0x27e89a[_0x217606][_0x51cfad(0x147)]==_0x51cfad(0x116)?_0x27e89a[_0x217606][_0x51cfad(0x147)]():_0x27e89a[_0x217606];_0x32000a[_0x51cfad(0x124)]=_0x217606,_0x32000a[_0x51cfad(0x129)]=_0x9a7534[_0x51cfad(0x129)],_0x32000a['title']=(0x0,lodash_1[_0x51cfad(0x150)])(_0x9a7534,'flags.label',_0x217606),_0x32000a[_0x51cfad(0x15b)]=(0x0,lodash_1['get'])(_0x9a7534,_0x51cfad(0x14c),''),_0x32000a[_0x51cfad(0x13d)]=(0x0,lodash_1[_0x51cfad(0x150)])(_0x9a7534,_0x51cfad(0x160),'')==_0x51cfad(0x13d),_0x32000a[_0x51cfad(0x158)]=(0x0,lodash_1['get'])(_0x9a7534,_0x51cfad(0x102),'');if(_0x9a7534[_0x51cfad(0x129)]==_0x51cfad(0x155))_0x32000a[_0x51cfad(0x159)]=getJoiRequest(_0x9a7534[_0x51cfad(0x13e)]);else _0x9a7534[_0x51cfad(0x129)]==_0x51cfad(0x14e)&&_0x9a7534[_0x51cfad(0x10d)]&&Array['isArray'](_0x9a7534[_0x51cfad(0x10d)])&&_0x9a7534[_0x51cfad(0x10d)][0x0]&&console[_0x51cfad(0x12b)](_0x217606+'-array',_0x9a7534);_0x9a7534[_0x51cfad(0x15e)]&&Array['isArray'](_0x9a7534[_0x51cfad(0x15e)])&&_0x9a7534[_0x51cfad(0x15e)][_0x51cfad(0x126)]>0x0&&(_0x32000a[_0x51cfad(0x158)]=_0x51cfad(0x14a)+_0x9a7534[_0x51cfad(0x15e)]['join'](',')+'];'+_0x32000a['description']);if(_0x32000a[_0x51cfad(0x124)]&&_0x32000a[_0x51cfad(0x129)]){const _0x5eb015={};for(const _0x1f4397 of _0x9a7534[_0x51cfad(0x10b)]||[]){if(_0x1f4397['name']===_0x51cfad(0x145)&&_0x1f4397[_0x51cfad(0x105)])_0x5eb015['min']=_0x1f4397[_0x51cfad(0x105)][_0x51cfad(0x143)];else _0x1f4397[_0x51cfad(0x153)]===_0x51cfad(0x127)&&(_0x5eb015[_0x51cfad(0x127)]=_0x1f4397[_0x51cfad(0x105)][_0x51cfad(0x143)]);}_0x32000a[_0x51cfad(0x10b)]=_0x5eb015;}_0x32000a[_0x51cfad(0x124)]&&_0x32000a[_0x51cfad(0x138)]&&_0x376508['push'](_0x32000a);}return _0x376508;}function convertSchemaType(_0xb2f770){const _0x2fa010=a8_0xe61618;switch(_0xb2f770){case _0x2fa010(0x117):return'object';case'Boolean':return _0x2fa010(0x15d);case'Number':return _0x2fa010(0x14f);case _0x2fa010(0x131):return _0x2fa010(0x157);case _0x2fa010(0x12a):return _0x2fa010(0x144);default:return _0x2fa010(0x157);}}function convertTypeToString(_0x1ea1ef){const _0x4c6d69=a8_0xe61618;switch(_0x1ea1ef){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x10a)]:return'query';case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x152)]:return _0x4c6d69(0x115);case core_1['RouteParamTypes'][_0x4c6d69(0x156)]:return _0x4c6d69(0x142);case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x107)]:case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x114)]:case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x112)]:return _0x4c6d69(0x144);default:return _0x4c6d69(0x11c);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x24ddae=a9_0x42f4;(function(_0x476c34,_0x4a840d){var _0x559ace=a9_0x42f4,_0x4309e3=_0x476c34();while(!![]){try{var _0x54200a=parseInt(_0x559ace(0x175))/0x1+-parseInt(_0x559ace(0x180))/0x2+-parseInt(_0x559ace(0x17f))/0x3+-parseInt(_0x559ace(0x16a))/0x4+parseInt(_0x559ace(0x178))/0x5+parseInt(_0x559ace(0x187))/0x6*(-parseInt(_0x559ace(0x18a))/0x7)+parseInt(_0x559ace(0x18c))/0x8*(parseInt(_0x559ace(0x168))/0x9);if(_0x54200a===_0x4a840d)break;else _0x4309e3['push'](_0x4309e3['shift']());}catch(_0xffc7d7){_0x4309e3['push'](_0x4309e3['shift']());}}}(a9_0x21ad,0x2ef94));var __createBinding=this&&this[a9_0x24ddae(0x195)]||(Object[a9_0x24ddae(0x19e)]?function(_0x39b152,_0x149532,_0x832513,_0x3d366b){var _0x2f0e66=a9_0x24ddae;if(_0x3d366b===undefined)_0x3d366b=_0x832513;var _0xe6dcb3=Object[_0x2f0e66(0x188)](_0x149532,_0x832513);(!_0xe6dcb3||('get'in _0xe6dcb3?!_0x149532[_0x2f0e66(0x197)]:_0xe6dcb3['writable']||_0xe6dcb3[_0x2f0e66(0x192)]))&&(_0xe6dcb3={'enumerable':!![],'get':function(){return _0x149532[_0x832513];}}),Object[_0x2f0e66(0x19c)](_0x39b152,_0x3d366b,_0xe6dcb3);}:function(_0x2a699e,_0x28d752,_0x58e735,_0x1c9220){if(_0x1c9220===undefined)_0x1c9220=_0x58e735;_0x2a699e[_0x1c9220]=_0x28d752[_0x58e735];}),__exportStar=this&&this[a9_0x24ddae(0x18d)]||function(_0xe7f4d7,_0x27d57b){var _0xf58bbd=a9_0x24ddae;for(var _0x32b9eb in _0xe7f4d7)if(_0x32b9eb!==_0xf58bbd(0x19f)&&!Object[_0xf58bbd(0x17d)][_0xf58bbd(0x185)][_0xf58bbd(0x177)](_0x27d57b,_0x32b9eb))__createBinding(_0x27d57b,_0xe7f4d7,_0x32b9eb);};Object['defineProperty'](exports,a9_0x24ddae(0x197),{'value':!![]}),exports['getAppsConfig']=exports['ScopeEnum']=exports['Scope']=exports[a9_0x24ddae(0x19a)]=exports[a9_0x24ddae(0x17a)]=exports[a9_0x24ddae(0x165)]=exports['Config']=exports[a9_0x24ddae(0x173)]=exports['Init']=exports[a9_0x24ddae(0x167)]=exports[a9_0x24ddae(0x18f)]=exports[a9_0x24ddae(0x191)]=exports['Body']=exports[a9_0x24ddae(0x198)]=exports[a9_0x24ddae(0x17c)]=exports['File']=exports[a9_0x24ddae(0x1a0)]=exports[a9_0x24ddae(0x176)]=exports[a9_0x24ddae(0x18e)]=exports[a9_0x24ddae(0x194)]=exports[a9_0x24ddae(0x17b)]=exports[a9_0x24ddae(0x182)]=exports[a9_0x24ddae(0x199)]=exports['ApiError']=exports[a9_0x24ddae(0x166)]=exports[a9_0x24ddae(0x16e)]=exports[a9_0x24ddae(0x186)]=exports[a9_0x24ddae(0x183)]=void 0x0;const getAppsConfig_1=require(a9_0x24ddae(0x16f));Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x16c),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x24ddae(0x196)),exports),__exportStar(require(a9_0x24ddae(0x16d)),exports);var ActionApi_1=require(a9_0x24ddae(0x193));Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x183),{'enumerable':!![],'get':function(){var _0x1c3b44=a9_0x24ddae;return ActionApi_1[_0x1c3b44(0x183)];}});function a9_0x42f4(_0x4e15db,_0x3be94c){var _0x21ada2=a9_0x21ad();return a9_0x42f4=function(_0x42f44a,_0x4aca58){_0x42f44a=_0x42f44a-0x164;var _0x93eff7=_0x21ada2[_0x42f44a];return _0x93eff7;},a9_0x42f4(_0x4e15db,_0x3be94c);}var Action_1=require(a9_0x24ddae(0x184));Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x186),{'enumerable':!![],'get':function(){var _0x5c868d=a9_0x24ddae;return Action_1[_0x5c868d(0x186)];}});var ActionApitest_1=require(a9_0x24ddae(0x179));Object['defineProperty'](exports,a9_0x24ddae(0x16e),{'enumerable':!![],'get':function(){var _0x1743dd=a9_0x24ddae;return ActionApitest_1[_0x1743dd(0x16e)];}});var getRoutes_1=require(a9_0x24ddae(0x174));function a9_0x21ad(){var _0x92eec2=['Api','./decorator/Action','hasOwnProperty','Action','6nUXPKF','getOwnPropertyDescriptor','./exception/ApiError','1578507dhQccj','@anncic-api/event','5932360eTxIxW','__exportStar','ValidatorError','Query','CustomConfiguration','Param','configurable','./decorator/ActionApi','ExcelService','__createBinding','./types/common','__esModule','Fields','CacheService','Inject','@anncic-api/cache','defineProperty','ApiError','create','default','Configuration','Config','Logger','getRoutes','Headers','9zaXSom','@midwayjs/core','750216UkwJTD','File','getAppsConfig','./service/ApitestService','Apitest','./helper/getAppsConfig','./service/ExcelService','Init','ScopeEnum','App','./helper/getRoutes','149324pWWdrn','ValidatorService','call','758365dRqnUq','./decorator/ActionApitest','Provide','ApiService','Files','prototype','Body','374160KWIibp','624726XTCvpe','./service/ApiService','EventService'];a9_0x21ad=function(){return _0x92eec2;};return a9_0x21ad();}Object['defineProperty'](exports,a9_0x24ddae(0x166),{'enumerable':!![],'get':function(){var _0x1cdd44=a9_0x24ddae;return getRoutes_1[_0x1cdd44(0x166)];}});var ApiError_1=require(a9_0x24ddae(0x189));Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x19d),{'enumerable':!![],'get':function(){var _0x25a2bb=a9_0x24ddae;return ApiError_1[_0x25a2bb(0x19d)];}});var cache_1=require(a9_0x24ddae(0x19b));Object[a9_0x24ddae(0x19c)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x25e446=a9_0x24ddae;return cache_1[_0x25e446(0x199)];}});var event_1=require(a9_0x24ddae(0x18b));Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x182),{'enumerable':!![],'get':function(){var _0x1b7967=a9_0x24ddae;return event_1[_0x1b7967(0x182)];}});var ApiService_1=require(a9_0x24ddae(0x181));Object['defineProperty'](exports,a9_0x24ddae(0x17b),{'enumerable':!![],'get':function(){var _0x9d153f=a9_0x24ddae;return ApiService_1[_0x9d153f(0x17b)];}});var ExcelService_1=require(a9_0x24ddae(0x170));Object[a9_0x24ddae(0x19c)](exports,'ExcelService',{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require('@anncic-api/validator');Object['defineProperty'](exports,a9_0x24ddae(0x18e),{'enumerable':!![],'get':function(){var _0x19b9d4=a9_0x24ddae;return validator_1[_0x19b9d4(0x18e)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x176),{'enumerable':!![],'get':function(){var _0xbf582d=a9_0x24ddae;return validator_1[_0xbf582d(0x176)];}});var configuration_1=require('./configuration');Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x1a0),{'enumerable':!![],'get':function(){var _0x39d1de=a9_0x24ddae;return configuration_1[_0x39d1de(0x190)];}});var core_1=require(a9_0x24ddae(0x169));Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){var _0x654e24=a9_0x24ddae;return core_1[_0x654e24(0x16b)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x17c),{'enumerable':!![],'get':function(){var _0x3e0343=a9_0x24ddae;return core_1[_0x3e0343(0x17c)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x198),{'enumerable':!![],'get':function(){var _0x216dc1=a9_0x24ddae;return core_1[_0x216dc1(0x198)];}}),Object[a9_0x24ddae(0x19c)](exports,'Body',{'enumerable':!![],'get':function(){var _0x4055fc=a9_0x24ddae;return core_1[_0x4055fc(0x17e)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x191),{'enumerable':!![],'get':function(){var _0x1e3f97=a9_0x24ddae;return core_1[_0x1e3f97(0x191)];}}),Object['defineProperty'](exports,'Query',{'enumerable':!![],'get':function(){var _0xf144c8=a9_0x24ddae;return core_1[_0xf144c8(0x18f)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x167),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a9_0x24ddae(0x19c)](exports,'Init',{'enumerable':!![],'get':function(){var _0xe2295b=a9_0x24ddae;return core_1[_0xe2295b(0x171)];}});var core_2=require('@midwayjs/core');Object[a9_0x24ddae(0x19c)](exports,'App',{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x164),{'enumerable':!![],'get':function(){var _0x202ac0=a9_0x24ddae;return core_2[_0x202ac0(0x164)];}}),Object['defineProperty'](exports,a9_0x24ddae(0x165),{'enumerable':!![],'get':function(){var _0x3512fa=a9_0x24ddae;return core_2[_0x3512fa(0x165)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x17a),{'enumerable':!![],'get':function(){var _0x430255=a9_0x24ddae;return core_2[_0x430255(0x17a)];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x19a),{'enumerable':!![],'get':function(){var _0x9c8981=a9_0x24ddae;return core_2[_0x9c8981(0x19a)];}}),Object[a9_0x24ddae(0x19c)](exports,'Scope',{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x24ddae(0x19c)](exports,a9_0x24ddae(0x172),{'enumerable':!![],'get':function(){var _0x2e6de6=a9_0x24ddae;return core_2[_0x2e6de6(0x172)];}}),global['getAppsConfig']=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x252d51=a10_0x1b83;function a10_0x1b83(_0x2c666b,_0x2d3d00){var _0x1e3846=a10_0x1e38();return a10_0x1b83=function(_0x1b83b0,_0x43b61a){_0x1b83b0=_0x1b83b0-0xeb;var _0x4852d4=_0x1e3846[_0x1b83b0];return _0x4852d4;},a10_0x1b83(_0x2c666b,_0x2d3d00);}(function(_0x2586d3,_0x1a96df){var _0x59ea2f=a10_0x1b83,_0x5e2976=_0x2586d3();while(!![]){try{var _0x3276d3=parseInt(_0x59ea2f(0x101))/0x1+parseInt(_0x59ea2f(0x11a))/0x2*(parseInt(_0x59ea2f(0xf2))/0x3)+parseInt(_0x59ea2f(0x111))/0x4+parseInt(_0x59ea2f(0xf7))/0x5+-parseInt(_0x59ea2f(0x121))/0x6+-parseInt(_0x59ea2f(0xed))/0x7*(parseInt(_0x59ea2f(0xf9))/0x8)+-parseInt(_0x59ea2f(0x11f))/0x9;if(_0x3276d3===_0x1a96df)break;else _0x5e2976['push'](_0x5e2976['shift']());}catch(_0x24593a){_0x5e2976['push'](_0x5e2976['shift']());}}}(a10_0x1e38,0x35ec0));function a10_0x1e38(){var _0x2ca6d6=['236948GsNTlX','@midwayjs/core','__esModule','toLowerCase','prototype','join','timeout','Config','requesttime','crypto-js','abs','getsign','defineProperty','getcheck','ScopeEnum','now','716088cRkNLL','signature','checksign','ApiError','缺少头信息:signature','metadata','toString','TIMEOUT','decorate','1784AexbIL','token','anncicapi','HEADERS_DEVICE','缺少头信息:','2519928hQjUCw','devices','2004048HZeCWC','password','__decorate','function','secret=','../exception/ApiError','__metadata','entries','object','2248393rzShMB','HEADERS_LACK','config','logintimeout','HEADERS_CHECKCODE','1263LKimky','HEADERS_SIGNATURE','Provide','checkcode','length','1822805EBoqFe','fromEntries','8IXJdTi','map','design:type','push','device','MD5','ApiService','logintime'];a10_0x1e38=function(){return _0x2ca6d6;};return a10_0x1e38();}var __decorate=this&&this[a10_0x252d51(0x123)]||function(_0x14247a,_0x440a23,_0x2c49d2,_0x48cfaf){var _0x3e7a20=a10_0x252d51,_0x519eb3=arguments[_0x3e7a20(0xf6)],_0x5d3fc6=_0x519eb3<0x3?_0x440a23:_0x48cfaf===null?_0x48cfaf=Object['getOwnPropertyDescriptor'](_0x440a23,_0x2c49d2):_0x48cfaf,_0x2fd954;if(typeof Reflect===_0x3e7a20(0xec)&&typeof Reflect[_0x3e7a20(0x119)]===_0x3e7a20(0x124))_0x5d3fc6=Reflect[_0x3e7a20(0x119)](_0x14247a,_0x440a23,_0x2c49d2,_0x48cfaf);else{for(var _0x3dcd0a=_0x14247a[_0x3e7a20(0xf6)]-0x1;_0x3dcd0a>=0x0;_0x3dcd0a--)if(_0x2fd954=_0x14247a[_0x3dcd0a])_0x5d3fc6=(_0x519eb3<0x3?_0x2fd954(_0x5d3fc6):_0x519eb3>0x3?_0x2fd954(_0x440a23,_0x2c49d2,_0x5d3fc6):_0x2fd954(_0x440a23,_0x2c49d2))||_0x5d3fc6;}return _0x519eb3>0x3&&_0x5d3fc6&&Object[_0x3e7a20(0x10d)](_0x440a23,_0x2c49d2,_0x5d3fc6),_0x5d3fc6;},__metadata=this&&this[a10_0x252d51(0x127)]||function(_0x5863e3,_0x5c863b){var _0x470b20=a10_0x252d51;if(typeof Reflect===_0x470b20(0xec)&&typeof Reflect[_0x470b20(0x116)]==='function')return Reflect[_0x470b20(0x116)](_0x5863e3,_0x5c863b);};Object[a10_0x252d51(0x10d)](exports,a10_0x252d51(0x103),{'value':!![]}),exports[a10_0x252d51(0xff)]=void 0x0;const crypto_js_1=require(a10_0x252d51(0x10a)),core_1=require(a10_0x252d51(0x102)),ApiError_1=require(a10_0x252d51(0x126));let ApiService=class ApiService{[a10_0x252d51(0x122)](_0xbf5171){var _0x3e3e7b=a10_0x252d51,_0x25e722;return _0xbf5171?(0x0,crypto_js_1[_0x3e3e7b(0xfe)])(_0xbf5171+(0x0,crypto_js_1[_0x3e3e7b(0xfe)])((0x0,crypto_js_1[_0x3e3e7b(0xfe)])(_0xbf5171)[_0x3e3e7b(0x117)]()+((_0x25e722=this[_0x3e3e7b(0xef)])===null||_0x25e722===void 0x0?void 0x0:_0x25e722[_0x3e3e7b(0x122)]))[_0x3e3e7b(0x117)]())[_0x3e3e7b(0x117)]():'';}[a10_0x252d51(0x10e)](_0x1506ca,_0x4286c3,_0x522e17=Date[a10_0x252d51(0x110)]()){return{'Token':_0x1506ca,'Logintime':_0x522e17,'Checkcode':this['checkcode'](_0x1506ca,_0x4286c3,_0x522e17)};}['getsign'](_0x5cb292={}){var _0x1747c8=a10_0x252d51,_0x31aab6;const _0x481015=[],_0x315f2a=Object[_0x1747c8(0xf8)](Object[_0x1747c8(0xeb)](_0x5cb292)[_0x1747c8(0xfa)](_0x3b19fd=>[_0x3b19fd[0x0][_0x1747c8(0x104)](),_0x3b19fd[0x1]]));for(let _0x30538b of[_0x1747c8(0xfd),_0x1747c8(0x109),'token',_0x1747c8(0x100),_0x1747c8(0xf5)]){if(typeof _0x315f2a[_0x30538b]=='undefined')throw new AnnError(ApiError_1[_0x1747c8(0x114)][_0x1747c8(0xee)],{'message':_0x1747c8(0x11e)+_0x30538b});_0x481015['push'](_0x30538b+'='+_0x315f2a[_0x30538b]);}if(Date['now']()-Math['abs'](_0x315f2a[_0x1747c8(0x109)])>this['config'][_0x1747c8(0x107)])throw new AnnError(ApiError_1[_0x1747c8(0x114)][_0x1747c8(0x118)]);if((((_0x31aab6=this[_0x1747c8(0xef)][_0x1747c8(0x120)][_0x315f2a[_0x1747c8(0xfd)]])===null||_0x31aab6===void 0x0?void 0x0:_0x31aab6[_0x1747c8(0xf0)])||0x0)>0x0&&Date['now']()-Math[_0x1747c8(0x10b)](_0x315f2a['logintime'])>this[_0x1747c8(0xef)][_0x1747c8(0x120)][_0x315f2a['device']]['logintimeout'])throw new AnnError(ApiError_1[_0x1747c8(0x114)]['TIMEOUT_LOGINTIME']);if(!this['config'][_0x1747c8(0x120)][_0x315f2a[_0x1747c8(0xfd)]]||!this['config']['devices'][_0x315f2a[_0x1747c8(0xfd)]]['secret']||!this['config'][_0x1747c8(0x120)][_0x315f2a[_0x1747c8(0xfd)]]['checkcode'])throw new AnnError(ApiError_1[_0x1747c8(0x114)]['HEADERS_DEVICE']);if(_0x315f2a[_0x1747c8(0x11b)]&&_0x315f2a[_0x1747c8(0xf5)]!=this[_0x1747c8(0xf5)](_0x315f2a[_0x1747c8(0x11b)],_0x315f2a[_0x1747c8(0xfd)],_0x315f2a[_0x1747c8(0x100)]))throw new AnnError(ApiError_1[_0x1747c8(0x114)][_0x1747c8(0xf1)]);return _0x481015[_0x1747c8(0xfc)](_0x1747c8(0x125)+this[_0x1747c8(0xef)]['devices'][_0x315f2a[_0x1747c8(0xfd)]]['secret']),(0x0,crypto_js_1[_0x1747c8(0xfe)])(_0x481015['sort']()[_0x1747c8(0x106)](''))['toString']();}['checkcode'](_0x2c74b7,_0x502e30,_0x596821=Date[a10_0x252d51(0x110)]()){var _0x468eb5=a10_0x252d51,_0x20320c,_0x4644a8,_0x4f38c5;if(!((_0x20320c=this[_0x468eb5(0xef)])===null||_0x20320c===void 0x0?void 0x0:_0x20320c[_0x468eb5(0x120)][_0x502e30])||!((_0x4f38c5=(_0x4644a8=this[_0x468eb5(0xef)])===null||_0x4644a8===void 0x0?void 0x0:_0x4644a8['devices'][_0x502e30])===null||_0x4f38c5===void 0x0?void 0x0:_0x4f38c5[_0x468eb5(0xf5)]))throw new AnnError(ApiError_1[_0x468eb5(0x114)][_0x468eb5(0x11d)]);return(0x0,crypto_js_1['MD5'])(_0x2c74b7+(0x0,crypto_js_1['MD5'])(_0x596821+this[_0x468eb5(0xef)][_0x468eb5(0x120)][_0x502e30]['checkcode'])[_0x468eb5(0x117)]())['toString']();}[a10_0x252d51(0x113)](_0x902632={}){var _0x58bbb3=a10_0x252d51;const _0x4159fa=Object[_0x58bbb3(0xf8)](Object[_0x58bbb3(0xeb)](_0x902632)['map'](_0x568abc=>[_0x568abc[0x0]['toLowerCase'](),_0x568abc[0x1]]));if(!(_0x4159fa===null||_0x4159fa===void 0x0?void 0x0:_0x4159fa[_0x58bbb3(0x112)]))throw new AnnError(ApiError_1[_0x58bbb3(0x114)]['HEADERS_LACK'],{'message':_0x58bbb3(0x115)});if((_0x4159fa===null||_0x4159fa===void 0x0?void 0x0:_0x4159fa['signature'])!=this[_0x58bbb3(0x10c)](_0x4159fa))throw new AnnError(ApiError_1['ApiError'][_0x58bbb3(0xf3)]);return!![];}};__decorate([(0x0,core_1[a10_0x252d51(0x108)])(a10_0x252d51(0x11c)),__metadata(a10_0x252d51(0xfb),Object)],ApiService[a10_0x252d51(0x105)],a10_0x252d51(0xef),void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x252d51(0xf4)])(),(0x0,core_1['Scope'])(core_1[a10_0x252d51(0x10f)]['Singleton'])],ApiService),exports[a10_0x252d51(0xff)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x55eb0f=a11_0x3905;function a11_0x3dff(){const _0x26bf12=['.css','module','ScopeEnum','prototype','route','../../public/','Get','set','apidoc','1378157NHUeMu','isDevelopmentEnvironment','/apiteststatic/*','defineProperty','push','request','15368lUScZT','metadata','@midwayjs/core','content-type','routes','devices','__apiList__','ApitestService','design:paramtypes','config','path','../../public/index.html','Request','ctx','Environment','getOwnPropertyDescriptor','getRoutes','__metadata','5837890uLSMRe','function','1821075gJAVzu','__param','.js','apiteststatic','1160304CoOLas','2412OoaDPH','method','360nYEKoq','Inject','Scope','Config','6FgvBRH','design:returntype','length','anncicapi','__esModule','/apiteststatic/','__decorate','cache-control','/apitest-:module','ApitestStaticController','description','summary','filepath','application/javascript;\x20charset=utf-8','../helper/getRoutes','readFileSync','extname','300315FYdgix','4VbpJwS','/index.html','apitesthtml','design:type','text/css;\x20charset=utf-8','utf-8','6058556ilKAKA','url','apitest','decorate','5rUnceN','object','replace','MidwayEnvironmentService','Provide'];a11_0x3dff=function(){return _0x26bf12;};return a11_0x3dff();}(function(_0x111709,_0x200b85){const _0x1bb916=a11_0x3905,_0x258edd=_0x111709();while(!![]){try{const _0x22d381=-parseInt(_0x1bb916(0xa4))/0x1*(parseInt(_0x1bb916(0x93))/0x2)+-parseInt(_0x1bb916(0xd7))/0x3*(parseInt(_0x1bb916(0xa5))/0x4)+parseInt(_0x1bb916(0xaf))/0x5*(parseInt(_0x1bb916(0xdb))/0x6)+-parseInt(_0x1bb916(0xab))/0x7+parseInt(_0x1bb916(0xc3))/0x8*(-parseInt(_0x1bb916(0xdc))/0x9)+-parseInt(_0x1bb916(0xd5))/0xa+parseInt(_0x1bb916(0xbd))/0xb*(parseInt(_0x1bb916(0xde))/0xc);if(_0x22d381===_0x200b85)break;else _0x258edd['push'](_0x258edd['shift']());}catch(_0x2b90d5){_0x258edd['push'](_0x258edd['shift']());}}}(a11_0x3dff,0x7529b));var __decorate=this&&this[a11_0x55eb0f(0x99)]||function(_0x5be582,_0x27c938,_0x38a93a,_0xe12b0a){const _0x2218e1=a11_0x55eb0f;var _0xe76d8e=arguments[_0x2218e1(0x95)],_0x101298=_0xe76d8e<0x3?_0x27c938:_0xe12b0a===null?_0xe12b0a=Object[_0x2218e1(0xd2)](_0x27c938,_0x38a93a):_0xe12b0a,_0x38f962;if(typeof Reflect===_0x2218e1(0xb0)&&typeof Reflect[_0x2218e1(0xae)]===_0x2218e1(0xd6))_0x101298=Reflect[_0x2218e1(0xae)](_0x5be582,_0x27c938,_0x38a93a,_0xe12b0a);else{for(var _0x259221=_0x5be582[_0x2218e1(0x95)]-0x1;_0x259221>=0x0;_0x259221--)if(_0x38f962=_0x5be582[_0x259221])_0x101298=(_0xe76d8e<0x3?_0x38f962(_0x101298):_0xe76d8e>0x3?_0x38f962(_0x27c938,_0x38a93a,_0x101298):_0x38f962(_0x27c938,_0x38a93a))||_0x101298;}return _0xe76d8e>0x3&&_0x101298&&Object[_0x2218e1(0xc0)](_0x27c938,_0x38a93a,_0x101298),_0x101298;},__metadata=this&&this[a11_0x55eb0f(0xd4)]||function(_0x11896d,_0x5efa9b){const _0x405864=a11_0x55eb0f;if(typeof Reflect===_0x405864(0xb0)&&typeof Reflect[_0x405864(0xc4)]===_0x405864(0xd6))return Reflect[_0x405864(0xc4)](_0x11896d,_0x5efa9b);},__param=this&&this[a11_0x55eb0f(0xd8)]||function(_0x233187,_0x1e9a8d){return function(_0x1b406c,_0x4bba3c){_0x1e9a8d(_0x1b406c,_0x4bba3c,_0x233187);};};Object['defineProperty'](exports,a11_0x55eb0f(0x97),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x55eb0f(0xca)]=void 0x0;const path_1=require(a11_0x55eb0f(0xcd)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x55eb0f(0xc5)),core_3=require(a11_0x55eb0f(0xc5)),getRoutes_1=require(a11_0x55eb0f(0xa1));let ApitestService=class ApitestService{async[a11_0x55eb0f(0xbc)](_0x1e9efb){const _0x585104=a11_0x55eb0f,_0x4e5b2f=(0x0,getRoutes_1[_0x585104(0xd3)])(_0x1e9efb),_0x8443d7=[];for(let _0x55fd10 in _0x4e5b2f){for(let _0x140d95 in _0x4e5b2f[_0x55fd10][_0x585104(0xc7)]){let _0x20a08f=_0x4e5b2f[_0x55fd10][_0x585104(0xc7)][_0x140d95],_0x18c199=[];for(let _0x2c0135 in _0x20a08f[_0x585104(0xc2)]){_0x18c199[_0x585104(0xc1)](_0x20a08f[_0x585104(0xc2)][_0x2c0135]);}_0x8443d7[_0x585104(0xc1)]({'title':_0x4e5b2f[_0x55fd10][_0x585104(0x9e)]+':'+_0x20a08f[_0x585104(0x9e)],'prefix':_0x4e5b2f[_0x55fd10]['prefix'],'router':_0x20a08f[_0x585104(0xb8)],'method':_0x20a08f[_0x585104(0xdd)],'describe':_0x20a08f[_0x585104(0x9d)]||'','filepath':_0x4e5b2f[_0x55fd10][_0x585104(0x9f)]||'','request':_0x18c199});}}const _0x936f36=(0x0,path_1['join'])(__dirname,_0x585104(0xce));return(0x0,fs_1[_0x585104(0xa2)])(_0x936f36,{'encoding':_0x585104(0xaa)})[_0x585104(0xb1)](/__res__/g,_0x585104(0x98))[_0x585104(0xb1)](_0x585104(0xc9),JSON['stringify'](_0x8443d7))[_0x585104(0xb1)]('__devices__',JSON['stringify'](this[_0x585104(0xcc)][_0x585104(0xc8)]));}};function a11_0x3905(_0x51d07c,_0x9a7235){const _0x3dffbb=a11_0x3dff();return a11_0x3905=function(_0x39056d,_0xda439b){_0x39056d=_0x39056d-0x90;let _0xf8cd4f=_0x3dffbb[_0x39056d];return _0xf8cd4f;},a11_0x3905(_0x51d07c,_0x9a7235);}__decorate([(0x0,core_3[a11_0x55eb0f(0x92)])(a11_0x55eb0f(0x96)),__metadata('design:type',Object)],ApitestService[a11_0x55eb0f(0xb7)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x55eb0f(0xb3)])(a11_0x55eb0f(0xad)),(0x0,core_3[a11_0x55eb0f(0x91)])(core_3['ScopeEnum']['Singleton'])],ApitestService),exports[a11_0x55eb0f(0xca)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x55eb0f(0xa7)](){const _0x2308f3=a11_0x55eb0f;if(this['apitest']){const _0xb26250={'module':![]};return this[_0x2308f3(0xd1)][_0x2308f3(0xbe)]()&&(_0xb26250[_0x2308f3(0x9f)]=!![]),await this[_0x2308f3(0xca)]['apidoc'](_0xb26250);}return'';}async['apitestmodule'](_0x1ddb04){const _0x2d5abf=a11_0x55eb0f;if(this['apitest']){const _0x381e7a={'module':_0x1ddb04};return this['Environment'][_0x2d5abf(0xbe)]()&&(_0x381e7a[_0x2d5abf(0x9f)]=!![]),await this[_0x2d5abf(0xca)][_0x2d5abf(0xbc)](_0x381e7a);}return'';}async[a11_0x55eb0f(0xda)](){const _0x433a49=a11_0x55eb0f;if((0x0,path_1['extname'])(this['ctx'][_0x433a49(0xc2)][_0x433a49(0xac)])){var _0x41ce35=(0x0,path_1['join'])(__dirname,_0x433a49(0xb9)+this[_0x433a49(0xd0)][_0x433a49(0xc2)][_0x433a49(0xac)][_0x433a49(0xb1)](_0x433a49(0x98),'/'));if(_0x41ce35['substring'](_0x41ce35['length']-0xb)!=_0x433a49(0xa6)){this['ctx'][_0x433a49(0xbb)](_0x433a49(0x9a),'public,\x20max-age=604800');if((0x0,path_1[_0x433a49(0xa3)])(this[_0x433a49(0xd0)]['request']['url'])==_0x433a49(0xd9))this['ctx'][_0x433a49(0xbb)](_0x433a49(0xc6),_0x433a49(0xa0));else(0x0,path_1[_0x433a49(0xa3)])(this[_0x433a49(0xd0)]['request'][_0x433a49(0xac)])==_0x433a49(0xb4)&&this[_0x433a49(0xd0)][_0x433a49(0xbb)](_0x433a49(0xc6),_0x433a49(0xa9));return(0x0,fs_1['existsSync'])(_0x41ce35)&&(0x0,fs_1[_0x433a49(0xa2)])(_0x41ce35,{'encoding':_0x433a49(0xaa)});}}return'';}};__decorate([(0x0,core_3[a11_0x55eb0f(0x90)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x55eb0f(0xd0),void 0x0),__decorate([(0x0,core_3[a11_0x55eb0f(0x90)])(),__metadata(a11_0x55eb0f(0xa8),core_1[a11_0x55eb0f(0xb2)])],ApitestStaticController[a11_0x55eb0f(0xb7)],a11_0x55eb0f(0xd1),void 0x0),__decorate([(0x0,core_3[a11_0x55eb0f(0x90)])(),__metadata(a11_0x55eb0f(0xa8),ApitestService)],ApitestStaticController['prototype'],a11_0x55eb0f(0xca),void 0x0),__decorate([(0x0,core_3[a11_0x55eb0f(0x92)])(a11_0x55eb0f(0xad)),__metadata(a11_0x55eb0f(0xa8),Boolean)],ApitestStaticController[a11_0x55eb0f(0xb7)],'apitest',void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x55eb0f(0x96)),__metadata(a11_0x55eb0f(0xa8),Object)],ApitestStaticController[a11_0x55eb0f(0xb7)],a11_0x55eb0f(0xcc),void 0x0),__decorate([(0x0,core_2[a11_0x55eb0f(0xba)])('/apitest'),__metadata('design:type',Function),__metadata(a11_0x55eb0f(0xcb),[]),__metadata(a11_0x55eb0f(0x94),Promise)],ApitestStaticController[a11_0x55eb0f(0xb7)],a11_0x55eb0f(0xa7),null),__decorate([(0x0,core_2[a11_0x55eb0f(0xba)])(a11_0x55eb0f(0x9b)),__param(0x0,(0x0,core_2['Param'])(a11_0x55eb0f(0xb5))),__metadata(a11_0x55eb0f(0xa8),Function),__metadata(a11_0x55eb0f(0xcb),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x55eb0f(0xba)])(a11_0x55eb0f(0xbf)),__metadata(a11_0x55eb0f(0xa8),Function),__metadata(a11_0x55eb0f(0xcb),[]),__metadata(a11_0x55eb0f(0x94),Promise)],ApitestStaticController[a11_0x55eb0f(0xb7)],a11_0x55eb0f(0xda),null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a11_0x55eb0f(0x91)])(core_3[a11_0x55eb0f(0xb6)][a11_0x55eb0f(0xcf)])],ApitestStaticController),exports[a11_0x55eb0f(0x9c)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x1b3d38=a12_0x93b2;(function(_0x64558c,_0x369018){const _0x3fae20=a12_0x93b2,_0x161578=_0x64558c();while(!![]){try{const _0x382cbc=-parseInt(_0x3fae20(0xb9))/0x1*(-parseInt(_0x3fae20(0x83))/0x2)+-parseInt(_0x3fae20(0x7c))/0x3*(-parseInt(_0x3fae20(0x8b))/0x4)+parseInt(_0x3fae20(0xa8))/0x5+parseInt(_0x3fae20(0xaf))/0x6+-parseInt(_0x3fae20(0xb0))/0x7+parseInt(_0x3fae20(0x84))/0x8+-parseInt(_0x3fae20(0x9b))/0x9;if(_0x382cbc===_0x369018)break;else _0x161578['push'](_0x161578['shift']());}catch(_0x14b7c2){_0x161578['push'](_0x161578['shift']());}}}(a12_0x1696,0x265a8));var __decorate=this&&this[a12_0x1b3d38(0x97)]||function(_0x4d1d22,_0x4498c7,_0x15af0e,_0x2eab99){const _0x57df96=a12_0x1b3d38;var _0x1a3caf=arguments[_0x57df96(0x7d)],_0x17fd7a=_0x1a3caf<0x3?_0x4498c7:_0x2eab99===null?_0x2eab99=Object[_0x57df96(0xb2)](_0x4498c7,_0x15af0e):_0x2eab99,_0x1491af;if(typeof Reflect===_0x57df96(0xbb)&&typeof Reflect['decorate']===_0x57df96(0x91))_0x17fd7a=Reflect['decorate'](_0x4d1d22,_0x4498c7,_0x15af0e,_0x2eab99);else{for(var _0x4b632d=_0x4d1d22[_0x57df96(0x7d)]-0x1;_0x4b632d>=0x0;_0x4b632d--)if(_0x1491af=_0x4d1d22[_0x4b632d])_0x17fd7a=(_0x1a3caf<0x3?_0x1491af(_0x17fd7a):_0x1a3caf>0x3?_0x1491af(_0x4498c7,_0x15af0e,_0x17fd7a):_0x1491af(_0x4498c7,_0x15af0e))||_0x17fd7a;}return _0x1a3caf>0x3&&_0x17fd7a&&Object[_0x57df96(0x8d)](_0x4498c7,_0x15af0e,_0x17fd7a),_0x17fd7a;},__metadata=this&&this[a12_0x1b3d38(0x99)]||function(_0x32caec,_0x5ee34f){const _0x19305c=a12_0x1b3d38;if(typeof Reflect===_0x19305c(0xbb)&&typeof Reflect[_0x19305c(0xa6)]===_0x19305c(0x91))return Reflect[_0x19305c(0xa6)](_0x32caec,_0x5ee34f);};function a12_0x1696(){const _0x165fdf=['header','/public/xlsx','addRow','key','@midwayjs/core','Provide','metadata','substring','56190DQkGdk','log','export','ScopeEnum','writeFile','addWorksheet','mkdirSync','1083234BOLMpd','203742tYGLjC','rowCount','getOwnPropertyDescriptor','readFile','design:type','worksheets','exceljs','ExcelService','columns','9038sXcavP','public/xlsx','object','App','getCell','3aNTWpQ','length','.xlsx','prototype','download','replace','xlsx','10uwxDMV','1413848deXIgA','Sheet\x201','koa-send','Scope','col','keys','get','389996lGpQVQ','eachCell','defineProperty','cellCount','parse','existsSync','function','endsWith','handler','app','getWorksheet','push','__decorate','frozen','__metadata','random','2924955bgetNx','getAppDir','startsWith','Singleton','Workbook'];a12_0x1696=function(){return _0x165fdf;};return a12_0x1696();}Object[a12_0x1b3d38(0x8d)](exports,'__esModule',{'value':!![]}),exports[a12_0x1b3d38(0xb7)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1b3d38(0xb6)),koasend=require(a12_0x1b3d38(0x86)),core_1=require(a12_0x1b3d38(0xa4));let ExcelService=class ExcelService{async[a12_0x1b3d38(0x8f)](_0x30f515,_0x1cea36,_0x2f8dac=[0x0]){const _0x3d42f7=a12_0x1b3d38;var _0x40220f,_0x5542e1;const _0x26f545=new exceljs['Workbook'](),_0x3b6176=[];let _0x4fd202=_0x30f515[_0x3d42f7(0x81)](/(\\|\/)/g,'/')[_0x3d42f7(0x81)](/\/{2,}/g,'/');!(_0x4fd202===null||_0x4fd202===void 0x0?void 0x0:_0x4fd202[_0x3d42f7(0x9d)]('/'))&&(_0x4fd202=this['app'][_0x3d42f7(0x9c)]()+'/'+_0x4fd202);try{await _0x26f545[_0x3d42f7(0x82)][_0x3d42f7(0xb3)](_0x4fd202);}catch(_0x3371bb){return console[_0x3d42f7(0xa9)]('Api\x20Excel\x20Error:\x20'+_0x4fd202+'\x20is\x20read\x20fail'),_0x3b6176;}for(const _0x199e5b of _0x2f8dac){const _0x4373a5=lodash['isNumber'](_0x199e5b)?((_0x40220f=_0x26f545[_0x3d42f7(0xb5)])===null||_0x40220f===void 0x0?void 0x0:_0x40220f[_0x199e5b])||undefined:_0x26f545[_0x3d42f7(0x95)](_0x199e5b);if(_0x4373a5){var _0x5420a1=0x1;const _0x245b08=_0x4373a5['getRow'](0x1),_0xa67a42=await new Promise(_0x183c16=>{const _0x468be6=_0x3d42f7,_0x3fd631={};_0x245b08[_0x468be6(0x8c)]((_0xf7ebe2,_0x5eb1e3)=>{const _0x587766=_0x468be6;for(const _0x355bf5 of _0x1cea36){if(_0xf7ebe2['value']==_0x355bf5[_0x587766(0xa0)])_0x5420a1=0x2,_0x3fd631[_0x355bf5[_0x587766(0xa3)]]={'header':_0xf7ebe2[_0x587766(0x88)],'handler':_0x355bf5[_0x587766(0x93)]};else{if(!_0x3fd631[_0x355bf5[_0x587766(0xa3)]])try{const _0x27d33b=_0x245b08[_0x587766(0x7b)](_0x355bf5[_0x587766(0xa0)]);_0x27d33b&&(_0x3fd631[_0x355bf5[_0x587766(0xa3)]]={'header':_0x27d33b[_0x587766(0x88)],'handler':_0x355bf5[_0x587766(0x93)]});}catch{}}}_0x245b08[_0x587766(0x8e)]==_0x5eb1e3&&_0x183c16(_0x3fd631);});});for(const _0x1f3161 of _0x4373a5['findRows'](_0x5420a1,_0x4373a5[_0x3d42f7(0xb1)])){const _0x311971={};for(const _0x19db84 in _0xa67a42){if(_0xa67a42[_0x19db84][_0x3d42f7(0xa0)]){const _0x10ef59=_0x1f3161[_0x3d42f7(0x7b)](_0xa67a42[_0x19db84][_0x3d42f7(0xa0)]);typeof((_0x5542e1=_0xa67a42[_0x19db84])===null||_0x5542e1===void 0x0?void 0x0:_0x5542e1[_0x3d42f7(0x93)])==_0x3d42f7(0x91)?_0x311971[_0x19db84]=await _0xa67a42[_0x19db84][_0x3d42f7(0x93)]((_0x10ef59===null||_0x10ef59===void 0x0?void 0x0:_0x10ef59['toString']())||'',_0x10ef59['model']):_0x311971[_0x19db84]=(_0x10ef59===null||_0x10ef59===void 0x0?void 0x0:_0x10ef59['toString']())||'';}}Object[_0x3d42f7(0x89)](_0x311971)['length']>0x0&&_0x3b6176[_0x3d42f7(0x96)](_0x311971);}}}return _0x3b6176;}async[a12_0x1b3d38(0xaa)](_0x1a13d,_0x131ad6,_0x4ada5d,_0x4f42cb=a12_0x1b3d38(0xba)){const _0x3448ae=a12_0x1b3d38;var _0x557465,_0x3c3893;const _0x39e9da=new exceljs[(_0x3448ae(0x9f))](),_0x3bf240={},_0x1eaaea=[],_0x51b75a=_0x39e9da[_0x3448ae(0xad)](_0x3448ae(0x85),{'views':[{'state':_0x3448ae(0x98),'xSplit':0x1}]});for(const _0xf5e0f8 in _0x131ad6){_0x3bf240[_0x131ad6[_0xf5e0f8][_0x3448ae(0xa3)]]=_0x131ad6[_0xf5e0f8]['header'],_0x1eaaea['push']({'header':_0x131ad6[_0xf5e0f8][_0x3448ae(0xa0)],'key':(_0x557465=_0x131ad6[_0xf5e0f8])===null||_0x557465===void 0x0?void 0x0:_0x557465[_0x3448ae(0xa3)][_0x3448ae(0x81)](/\./g,'_')});}_0x51b75a[_0x3448ae(0xb8)]=_0x1eaaea;for(const _0x2fab34 of _0x4ada5d){const _0x54c788={};for(const _0x38bce2 in _0x131ad6){typeof((_0x3c3893=_0x131ad6[_0x38bce2])===null||_0x3c3893===void 0x0?void 0x0:_0x3c3893['handler'])==_0x3448ae(0x91)?_0x54c788[_0x131ad6[_0x38bce2][_0x3448ae(0xa3)]['replace'](/\./g,'_')]=await _0x131ad6[_0x38bce2][_0x3448ae(0x93)](_0x2fab34):_0x54c788[_0x131ad6[_0x38bce2][_0x3448ae(0xa3)][_0x3448ae(0x81)](/\./g,'_')]=lodash[_0x3448ae(0x8a)](_0x2fab34,_0x131ad6[_0x38bce2][_0x3448ae(0xa3)],'');}_0x51b75a[_0x3448ae(0xa2)](_0x54c788);}let _0x55b683='';const _0x2554ed=_0x1a13d+'-'+lodash[_0x3448ae(0x9a)](0x2710,0x1869f)+_0x3448ae(0x7e);if(_0x4f42cb&&_0x4f42cb[_0x3448ae(0x9d)]('/'))_0x55b683=''+_0x4f42cb;else _0x4f42cb&&!_0x4f42cb[_0x3448ae(0x9d)]('/')&&!_0x4f42cb['startsWith']('\x5c')?_0x55b683=this['app'][_0x3448ae(0x9c)]()+'/'+_0x4f42cb:_0x55b683=this[_0x3448ae(0x94)][_0x3448ae(0x9c)]()+_0x3448ae(0xa1);return(_0x55b683[_0x3448ae(0x92)]('/')||_0x55b683[_0x3448ae(0x92)]('\x5c'))&&(_0x55b683=_0x55b683[_0x3448ae(0xa7)](0x0,_0x55b683[_0x3448ae(0x7d)]-0x1)),_0x55b683=_0x55b683[_0x3448ae(0x81)](/(\\|\/)/g,'/')[_0x3448ae(0x81)](/\/{2,}/g,'/'),!fs[_0x3448ae(0x90)](_0x55b683)&&fs[_0x3448ae(0xae)](_0x55b683,{'recursive':!![]}),await _0x39e9da[_0x3448ae(0x82)][_0x3448ae(0xac)]((_0x55b683+'/'+_0x2554ed)['replace'](/(\\|\/)/g,'/')[_0x3448ae(0x81)](/\/{2,}/g,'/')),{'filename':_0x2554ed,'filepath':(_0x55b683[_0x3448ae(0xa7)]((''+this['app'][_0x3448ae(0x9c)]())[_0x3448ae(0x7d)])+'/'+_0x2554ed)[_0x3448ae(0x81)](/(\\|\/)/g,'/')[_0x3448ae(0x81)](/\/{2,}/g,'/')};}async[a12_0x1b3d38(0x80)](_0x32b58f,_0x5df485){return await koasend(_0x32b58f,''+_0x5df485);}};function a12_0x93b2(_0x159668,_0x2d5444){const _0x169651=a12_0x1696();return a12_0x93b2=function(_0x93b2d9,_0x574c92){_0x93b2d9=_0x93b2d9-0x7a;let _0xd49d91=_0x169651[_0x93b2d9];return _0xd49d91;},a12_0x93b2(_0x159668,_0x2d5444);}__decorate([(0x0,core_1[a12_0x1b3d38(0x7a)])(),__metadata(a12_0x1b3d38(0xb4),Object)],ExcelService[a12_0x1b3d38(0x7f)],a12_0x1b3d38(0x94),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x1b3d38(0xa5)])(),(0x0,core_1[a12_0x1b3d38(0x87)])(core_1[a12_0x1b3d38(0xab)][a12_0x1b3d38(0x9e)])],ExcelService),exports[a12_0x1b3d38(0xb7)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0xb3208=a13_0x1558;function a13_0x4da2(){var _0x2b2e8c=['5106303ziEDTV','ACTION_ROUTE_KEY','1563432SzVUEB','ACTION_KEY','2304KbNDWM','32AynGER','210ZtbyeP','4560RqBHOZ','__esModule','anncic-api:apps:config','13202rkJskx','109715ejCncH','AppsConfigTmp','10jGyvlO','anncic-api:action:route','APPSCONFIG_KEY','39049lrghni','280XGaBQd','130TWtAtx','6786945wxHiAu','defineProperty'];a13_0x4da2=function(){return _0x2b2e8c;};return a13_0x4da2();}(function(_0xf9a9ea,_0x2d1ab9){var _0x42d7a5=a13_0x1558,_0x2a499a=_0xf9a9ea();while(!![]){try{var _0x17fb45=-parseInt(_0x42d7a5(0x106))/0x1*(-parseInt(_0x42d7a5(0xfb))/0x2)+-parseInt(_0x42d7a5(0x10f))/0x3*(parseInt(_0x42d7a5(0xfd))/0x4)+parseInt(_0x42d7a5(0x101))/0x5*(parseInt(_0x42d7a5(0xfc))/0x6)+-parseInt(_0x42d7a5(0x100))/0x7*(-parseInt(_0x42d7a5(0x107))/0x8)+parseInt(_0x42d7a5(0x10b))/0x9*(parseInt(_0x42d7a5(0x103))/0xa)+parseInt(_0x42d7a5(0x109))/0xb+parseInt(_0x42d7a5(0x10d))/0xc*(-parseInt(_0x42d7a5(0x108))/0xd);if(_0x17fb45===_0x2d1ab9)break;else _0x2a499a['push'](_0x2a499a['shift']());}catch(_0x3547f1){_0x2a499a['push'](_0x2a499a['shift']());}}}(a13_0x4da2,0x7178d));Object[a13_0xb3208(0x10a)](exports,a13_0xb3208(0xfe),{'value':!![]}),exports[a13_0xb3208(0x102)]=exports[a13_0xb3208(0x105)]=exports['ACTION_ROUTE_KEY']=exports[a13_0xb3208(0x10e)]=void 0x0,exports[a13_0xb3208(0x10e)]='anncic-api:action',exports[a13_0xb3208(0x10c)]=a13_0xb3208(0x104),exports['APPSCONFIG_KEY']=a13_0xb3208(0xff);function a13_0x1558(_0x1c90a2,_0x5a6514){var _0x4da217=a13_0x4da2();return a13_0x1558=function(_0x1558b8,_0x4deb39){_0x1558b8=_0x1558b8-0xfb;var _0x2eff0c=_0x4da217[_0x1558b8];return _0x2eff0c;},a13_0x1558(_0x1c90a2,_0x5a6514);}class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x270f17=a14_0x5bf5;(function(_0x3c646c,_0x174611){var _0x4c0a83=a14_0x5bf5,_0x28af2b=_0x3c646c();while(!![]){try{var _0x14b99e=-parseInt(_0x4c0a83(0x96))/0x1*(-parseInt(_0x4c0a83(0xb3))/0x2)+-parseInt(_0x4c0a83(0x9b))/0x3*(-parseInt(_0x4c0a83(0x93))/0x4)+-parseInt(_0x4c0a83(0x94))/0x5*(parseInt(_0x4c0a83(0xb1))/0x6)+parseInt(_0x4c0a83(0x9a))/0x7+-parseInt(_0x4c0a83(0xab))/0x8+parseInt(_0x4c0a83(0xac))/0x9+parseInt(_0x4c0a83(0x97))/0xa;if(_0x14b99e===_0x174611)break;else _0x28af2b['push'](_0x28af2b['shift']());}catch(_0x3a2e69){_0x28af2b['push'](_0x28af2b['shift']());}}}(a14_0x436d,0xa4fee));function a14_0x5bf5(_0x569c30,_0x519b11){var _0x436d01=a14_0x436d();return a14_0x5bf5=function(_0x5bf55a,_0x2b57da){_0x5bf55a=_0x5bf55a-0x8e;var _0x5c968c=_0x436d01[_0x5bf55a];return _0x5c968c;},a14_0x5bf5(_0x569c30,_0x519b11);}var __decorate=this&&this[a14_0x270f17(0xa3)]||function(_0x1b28ce,_0x5abb6b,_0x18f939,_0x1d4e3f){var _0x2a5459=a14_0x270f17,_0x3f8373=arguments[_0x2a5459(0xaa)],_0x9e74b4=_0x3f8373<0x3?_0x5abb6b:_0x1d4e3f===null?_0x1d4e3f=Object[_0x2a5459(0xa0)](_0x5abb6b,_0x18f939):_0x1d4e3f,_0x2f3d4f;if(typeof Reflect===_0x2a5459(0xa7)&&typeof Reflect[_0x2a5459(0xae)]===_0x2a5459(0x8e))_0x9e74b4=Reflect[_0x2a5459(0xae)](_0x1b28ce,_0x5abb6b,_0x18f939,_0x1d4e3f);else{for(var _0xdfb1e1=_0x1b28ce['length']-0x1;_0xdfb1e1>=0x0;_0xdfb1e1--)if(_0x2f3d4f=_0x1b28ce[_0xdfb1e1])_0x9e74b4=(_0x3f8373<0x3?_0x2f3d4f(_0x9e74b4):_0x3f8373>0x3?_0x2f3d4f(_0x5abb6b,_0x18f939,_0x9e74b4):_0x2f3d4f(_0x5abb6b,_0x18f939))||_0x9e74b4;}return _0x3f8373>0x3&&_0x9e74b4&&Object[_0x2a5459(0xa6)](_0x5abb6b,_0x18f939,_0x9e74b4),_0x9e74b4;},__metadata=this&&this[a14_0x270f17(0x9d)]||function(_0x1172a9,_0x3eab05){var _0x490766=a14_0x270f17;if(typeof Reflect===_0x490766(0xa7)&&typeof Reflect[_0x490766(0xa8)]===_0x490766(0x8e))return Reflect[_0x490766(0xa8)](_0x1172a9,_0x3eab05);};Object[a14_0x270f17(0xa6)](exports,a14_0x270f17(0x91),{'value':!![]}),exports[a14_0x270f17(0x95)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a14_0x270f17(0x9e)])('分页',validator_1[a14_0x270f17(0x9c)]['number']()['integer']()['min'](0x1),a14_0x270f17(0x99)),__metadata(a14_0x270f17(0x90),Number)],PageDTO['prototype'],a14_0x270f17(0xb4),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x270f17(0xa1),validator_1[a14_0x270f17(0x9c)][a14_0x270f17(0xa2)]()[a14_0x270f17(0x98)]()[a14_0x270f17(0x9f)](0x1)),__metadata(a14_0x270f17(0x90),Number)],PageDTO[a14_0x270f17(0xb2)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x270f17(0x9e)])(a14_0x270f17(0x92),validator_1[a14_0x270f17(0x9c)][a14_0x270f17(0xa4)]()[a14_0x270f17(0xa5)]()),__metadata(a14_0x270f17(0x90),String)],PageDTO[a14_0x270f17(0xb2)],a14_0x270f17(0xad),void 0x0),__decorate([(0x0,validator_1[a14_0x270f17(0x9e)])(a14_0x270f17(0xb0),validator_1[a14_0x270f17(0x9c)]['number']()[a14_0x270f17(0x98)]()[a14_0x270f17(0xa9)](0x0,0x1),a14_0x270f17(0x8f)),__metadata(a14_0x270f17(0x90),Number)],PageDTO['prototype'],a14_0x270f17(0xaf),void 0x0),exports['PageDTO']=PageDTO;function a14_0x436d(){var _0x386e11=['length','5561672uOypvW','346509aYUcur','_order','decorate','_isreverse','是否倒序','1176564MygkzR','prototype','1434hkAXoX','_page','function','1:是;0:否','design:type','__esModule','排序方式','92XAvFXa','15sMjjxr','PageDTO','431gHDIZH','3113260RQfjDA','integer','第一页为1,第二页为2','6911520Wumuqr','40839znbFZa','RuleType','__metadata','Rule','min','getOwnPropertyDescriptor','分页数量','number','__decorate','string','trim','defineProperty','object','metadata','valid'];a14_0x436d=function(){return _0x386e11;};return a14_0x436d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.22",
|
|
21
|
+
"@anncic-api/core": "^1.4.22",
|
|
22
|
+
"@anncic-api/event": "^1.4.22",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.22",
|
|
24
|
+
"@anncic-api/validator": "^1.4.22",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.22",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "60b66cdaaf850e963345cfd226f2aec091e1bd50"
|
|
43
43
|
}
|