anncic-api 1.4.25 → 1.4.26
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_0xade78b=a0_0x5c32;function a0_0x5c32(_0x37d366,_0x2658d5){var _0x384a63=a0_0x384a();return a0_0x5c32=function(_0x5c325d,_0x320111){_0x5c325d=_0x5c325d-0x76;var _0x427d1c=_0x384a63[_0x5c325d];return _0x427d1c;},a0_0x5c32(_0x37d366,_0x2658d5);}(function(_0x2d516a,_0x5aef4d){var _0x56a9ec=a0_0x5c32,_0x2643d4=_0x2d516a();while(!![]){try{var _0x2a096c=-parseInt(_0x56a9ec(0x81))/0x1*(-parseInt(_0x56a9ec(0x79))/0x2)+parseInt(_0x56a9ec(0x7b))/0x3*(parseInt(_0x56a9ec(0x85))/0x4)+parseInt(_0x56a9ec(0x84))/0x5+-parseInt(_0x56a9ec(0x7f))/0x6+parseInt(_0x56a9ec(0x82))/0x7+-parseInt(_0x56a9ec(0x76))/0x8+parseInt(_0x56a9ec(0x83))/0x9*(-parseInt(_0x56a9ec(0x7d))/0xa);if(_0x2a096c===_0x5aef4d)break;else _0x2643d4['push'](_0x2643d4['shift']());}catch(_0x58096f){_0x2643d4['push'](_0x2643d4['shift']());}}}(a0_0x384a,0x25b68));function a0_0x384a(){var _0x5ca725=['name','72328wTCQVQ','20mb','default','78868IVFSVH','dhauo1234420123gg3234901','129LDRNLE','/runtime/.upload','30UpoIWQ','text','1376190JMmPLS','__esModule','2REHxNr','684026RRnyHH','450621mwINFR','590440OwyVSR','23108tWvnix','appDir'];a0_0x384a=function(){return _0x5ca725;};return a0_0x384a();}Object['defineProperty'](exports,a0_0xade78b(0x80),{'value':!![]}),exports[a0_0xade78b(0x78)]=_0x22d3b9=>{var _0x1828b4=a0_0xade78b;return{'apitest':!![],'keys':_0x22d3b9[_0x1828b4(0x87)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x1828b4(0x7a),'checkcode':_0x1828b4(0x7a)}}},'bodyParser':{'enableTypes':['json','form',_0x1828b4(0x7e),'xml'],'formLimit':_0x1828b4(0x77),'jsonLimit':_0x1828b4(0x77),'textLimit':_0x1828b4(0x77),'xmlLimit':_0x1828b4(0x77)},'upload':{'tmpdir':_0x22d3b9[_0x1828b4(0x86)]+_0x1828b4(0x7c),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x1afbee=a1_0xe7d0;function a1_0xe7d0(_0x40bab4,_0x271f2d){var _0x2b2cc4=a1_0x2b2c();return a1_0xe7d0=function(_0xe7d081,_0x4526b1){_0xe7d081=_0xe7d081-0xbe;var _0x11437c=_0x2b2cc4[_0xe7d081];return _0x11437c;},a1_0xe7d0(_0x40bab4,_0x271f2d);}(function(_0x21063f,_0x59eb81){var _0x3c902e=a1_0xe7d0,_0x1117b6=_0x21063f();while(!![]){try{var _0x17b958=parseInt(_0x3c902e(0xbf))/0x1+-parseInt(_0x3c902e(0xc4))/0x2*(parseInt(_0x3c902e(0xca))/0x3)+-parseInt(_0x3c902e(0xc2))/0x4+parseInt(_0x3c902e(0xc5))/0x5*(parseInt(_0x3c902e(0xc3))/0x6)+parseInt(_0x3c902e(0xc7))/0x7*(parseInt(_0x3c902e(0xc1))/0x8)+parseInt(_0x3c902e(0xc9))/0x9+parseInt(_0x3c902e(0xc0))/0xa*(parseInt(_0x3c902e(0xbe))/0xb);if(_0x17b958===_0x59eb81)break;else _0x1117b6['push'](_0x1117b6['shift']());}catch(_0x1fdece){_0x1117b6['push'](_0x1117b6['shift']());}}}(a1_0x2b2c,0xa5fe7));function a1_0x2b2c(){var _0x5b93c2=['defineProperty','11zAgiTY','259068WNbuUO','2321910bEmLPM','3736hcmLPf','1151420MqzGAi','2388SrJqff','2617820pmGsTN','12940NuPVlC','default','6643dfTEFJ','__esModule','2809890TZsNbz','3ykCvnV'];a1_0x2b2c=function(){return _0x5b93c2;};return a1_0x2b2c();}Object[a1_0x1afbee(0xcb)](exports,a1_0x1afbee(0xc8),{'value':!![]}),exports[a1_0x1afbee(0xc6)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x419dc1=a2_0x2906;(function(_0xc0c699,_0x50b476){const _0x341fc8=a2_0x2906,_0x362369=_0xc0c699();while(!![]){try{const _0x37bb94=-parseInt(_0x341fc8(0x164))/0x1*(-parseInt(_0x341fc8(0x16b))/0x2)+parseInt(_0x341fc8(0x11f))/0x3+parseInt(_0x341fc8(0xf9))/0x4*(-parseInt(_0x341fc8(0x167))/0x5)+parseInt(_0x341fc8(0x117))/0x6+parseInt(_0x341fc8(0x15b))/0x7*(-parseInt(_0x341fc8(0x10e))/0x8)+parseInt(_0x341fc8(0x137))/0x9*(-parseInt(_0x341fc8(0x14a))/0xa)+-parseInt(_0x341fc8(0x14f))/0xb*(-parseInt(_0x341fc8(0x108))/0xc);if(_0x37bb94===_0x50b476)break;else _0x362369['push'](_0x362369['shift']());}catch(_0x56481a){_0x362369['push'](_0x362369['shift']());}}}(a2_0x2001,0xc5a0f));var __decorate=this&&this[a2_0x419dc1(0x10a)]||function(_0x456697,_0x4af86d,_0x2eb659,_0x56923f){const _0x563ee2=a2_0x419dc1;var _0x146e5d=arguments[_0x563ee2(0x14b)],_0x3b9c09=_0x146e5d<0x3?_0x4af86d:_0x56923f===null?_0x56923f=Object[_0x563ee2(0x12f)](_0x4af86d,_0x2eb659):_0x56923f,_0x10e13e;if(typeof Reflect===_0x563ee2(0x127)&&typeof Reflect[_0x563ee2(0x13a)]===_0x563ee2(0x10b))_0x3b9c09=Reflect[_0x563ee2(0x13a)](_0x456697,_0x4af86d,_0x2eb659,_0x56923f);else{for(var _0x32de1d=_0x456697[_0x563ee2(0x14b)]-0x1;_0x32de1d>=0x0;_0x32de1d--)if(_0x10e13e=_0x456697[_0x32de1d])_0x3b9c09=(_0x146e5d<0x3?_0x10e13e(_0x3b9c09):_0x146e5d>0x3?_0x10e13e(_0x4af86d,_0x2eb659,_0x3b9c09):_0x10e13e(_0x4af86d,_0x2eb659))||_0x3b9c09;}return _0x146e5d>0x3&&_0x3b9c09&&Object[_0x563ee2(0x129)](_0x4af86d,_0x2eb659,_0x3b9c09),_0x3b9c09;},__metadata=this&&this[a2_0x419dc1(0x112)]||function(_0x30b8fc,_0x4219bd){const _0x2f5439=a2_0x419dc1;if(typeof Reflect===_0x2f5439(0x127)&&typeof Reflect[_0x2f5439(0xfa)]===_0x2f5439(0x10b))return Reflect[_0x2f5439(0xfa)](_0x30b8fc,_0x4219bd);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x419dc1(0x15d)]=void 0x0;const core_1=require(a2_0x419dc1(0x168)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x419dc1(0x147)),ApiService_1=require(a2_0x419dc1(0x160)),action_1=require(a2_0x419dc1(0xfe)),fs=require('fs'),koasend=require('koa-send'),koa=require('@midwayjs/koa'),i18n=require(a2_0x419dc1(0xff)),upload=require(a2_0x419dc1(0x165)),staticFile=require(a2_0x419dc1(0x141)),crossDomain=require(a2_0x419dc1(0x157)),ConfigDefault=require(a2_0x419dc1(0x135)),ConfigProduction=require(a2_0x419dc1(0x131)),anncic=require(a2_0x419dc1(0x149)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x419dc1(0x102)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');function a2_0x2001(){const _0x1a10b5=['loggerConfig','397516SsnkPR','config','CustomConfiguration','Inject','/runtime/apps-','./service/ApiService','koa','midwayLogger','dirs','25178SvDQSj','@midwayjs/upload','tmpdir','288675rjpzoB','@midwayjs/core','string','clients','88FllTgz','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','App','design:type','getBaseDir','addObject','80vONRXf','metadata','undefined','intercept','isDirectory','./types/action','@midwayjs/i18n','requestContext','toLowerCase','@anncic-api/event','upload','-log','query','statSync','isDevelopmentEnvironment','6842556bEwUvv','get','__decorate','function','devices','method','184xocHuq','keys','application','_matchedRoute','__metadata','getApplications','headers','getAppDir','app','3981000ibfYuv','prototype','bodyXml','/apps/','MidwayEnvironmentService','forEach','key','device','3363714yNkjMN','context','checksign','assign','decorator','hanlderApplications','handler','readdirSync','object','checkConfigKeys','defineProperty','isNull','input','getConfiguration','MidwayDecoratorService','mkdirSync','getOwnPropertyDescriptor','defaultsDeep','./config/config.production','isClass','args','environment','./config/config.default','isFunction','4221JqSFlY','default','文件不存在','decorate','HEADERS_SIGNATURE','onReady','ApiService','apimit','staticFile','/apps','@midwayjs/static-file','request','DEFAULT','MidwayConfigService','isString','target','./exception/ApiError','REQUEST_OBJ_CTX_KEY','@anncic-api/core','28420jrvkEL','length','anncicapi','Anncic-api\x20static-file\x20:\x20mkdir\x20','existsSync','33kQIVlT','/runtime','ApiError','handlerActionRoute','.log','proceed','dir','anncic-api','@midwayjs/cross-domain','isArray','defineProperties'];a2_0x2001=function(){return _0x1a10b5;};return a2_0x2001();}let CustomConfiguration=class CustomConfiguration{async[a2_0x419dc1(0x13c)](){const _0x4c841c=a2_0x419dc1;await this['filterConfig'](),await this[_0x4c841c(0x15a)](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x4c841c(0x124)]();}async[a2_0x419dc1(0x128)](){}async[a2_0x419dc1(0x152)](){const _0x55ce2b=a2_0x419dc1,_0x2653bc=this[_0x55ce2b(0x15c)][_0x55ce2b(0x12c)]();this[_0x55ce2b(0x123)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x4a5eec=>{const _0xb9daf3=_0x55ce2b,_0x3c11a3=_0x4a5eec[_0xb9daf3(0xfa)];return{'before':async _0x1b09fe=>{const _0x60c108=_0xb9daf3;var _0x4e37f9,_0x42230e;const _0x1c2dd6=(_0x4e37f9=_0x1b09fe===null||_0x1b09fe===void 0x0?void 0x0:_0x1b09fe[_0x60c108(0x146)])===null||_0x4e37f9===void 0x0?void 0x0:_0x4e37f9[core_2[_0x60c108(0x148)]];if(_0x1c2dd6&&(_0x3c11a3===null||_0x3c11a3===void 0x0?void 0x0:_0x3c11a3[_0x60c108(0x13e)])){if(!this[_0x60c108(0x13d)][_0x60c108(0x121)]((_0x42230e=_0x1c2dd6===null||_0x1c2dd6===void 0x0?void 0x0:_0x1c2dd6[_0x60c108(0x142)])===null||_0x42230e===void 0x0?void 0x0:_0x42230e[_0x60c108(0x114)]))throw new AnnError(ApiError_1[_0x60c108(0x151)][_0x60c108(0x13b)]);}},'around':async _0x394254=>{const _0x3a11c8=_0xb9daf3;var _0x19fbb0,_0x25ce83,_0x22d266,_0x45580e,_0x2401bc;const _0x394c1b=(_0x19fbb0=_0x394254===null||_0x394254===void 0x0?void 0x0:_0x394254[_0x3a11c8(0x146)])===null||_0x19fbb0===void 0x0?void 0x0:_0x19fbb0[core_2[_0x3a11c8(0x148)]];if(_0x394c1b&&(_0x3c11a3===null||_0x3c11a3===void 0x0?void 0x0:_0x3c11a3[_0x3a11c8(0x13e)])&&((_0x3c11a3===null||_0x3c11a3===void 0x0?void 0x0:_0x3c11a3['intercept'])||typeof(_0x3c11a3===null||_0x3c11a3===void 0x0?void 0x0:_0x3c11a3[_0x3a11c8(0xfc)])==_0x3a11c8(0xfb))){if(((_0x25ce83=_0x394c1b[_0x3a11c8(0x114)])===null||_0x25ce83===void 0x0?void 0x0:_0x25ce83[_0x3a11c8(0x11e)])&&((_0x2401bc=(_0x45580e=(_0x22d266=_0x2653bc===null||_0x2653bc===void 0x0?void 0x0:_0x2653bc[_0x3a11c8(0x14c)])===null||_0x22d266===void 0x0?void 0x0:_0x22d266['devices'])===null||_0x45580e===void 0x0?void 0x0:_0x45580e[_0x394c1b[_0x3a11c8(0x114)]['device']])===null||_0x2401bc===void 0x0?void 0x0:_0x2401bc[_0x3a11c8(0xfc)])){const _0x2282e5=Array['isArray'](_0x2653bc[_0x3a11c8(0x14c)]['devices'][_0x394c1b[_0x3a11c8(0x114)]['device']][_0x3a11c8(0xfc)])?_0x2653bc['anncicapi'][_0x3a11c8(0x10c)][_0x394c1b['headers']['device']]['intercept']:[_0x2653bc['anncicapi'][_0x3a11c8(0x10c)][_0x394c1b['headers'][_0x3a11c8(0x11e)]][_0x3a11c8(0xfc)]];for(const _0x11ef69 of _0x2282e5){if(core_1['Types'][_0x3a11c8(0x132)](_0x11ef69)||typeof _0x11ef69=='string'){const _0x10fd45=await _0x394c1b[_0x3a11c8(0x100)]['getAsync'](_0x11ef69);typeof(_0x10fd45===null||_0x10fd45===void 0x0?void 0x0:_0x10fd45[_0x3a11c8(0x125)])==_0x3a11c8(0x10b)&&await _0x10fd45['handler'](typeof(_0x394c1b===null||_0x394c1b===void 0x0?void 0x0:_0x394c1b[_0x3a11c8(0x10d)])==_0x3a11c8(0x169)&&(_0x394c1b===null||_0x394c1b===void 0x0?void 0x0:_0x394c1b['_matchedRoute'])?_0x394c1b[_0x3a11c8(0x10d)][_0x3a11c8(0x101)]()+'@'+(_0x394c1b===null||_0x394c1b===void 0x0?void 0x0:_0x394c1b[_0x3a11c8(0x111)]):undefined,_0x394c1b,_0x3c11a3);}else core_1['Types'][_0x3a11c8(0x136)](_0x11ef69)&&await _0x11ef69(typeof(_0x394c1b===null||_0x394c1b===void 0x0?void 0x0:_0x394c1b[_0x3a11c8(0x10d)])==_0x3a11c8(0x169)&&(_0x394c1b===null||_0x394c1b===void 0x0?void 0x0:_0x394c1b[_0x3a11c8(0x111)])?_0x394c1b[_0x3a11c8(0x10d)][_0x3a11c8(0x101)]()+'@'+(_0x394c1b===null||_0x394c1b===void 0x0?void 0x0:_0x394c1b['_matchedRoute']):undefined,_0x394c1b,_0x3c11a3);}}}return await _0x394254[_0x3a11c8(0x154)](..._0x394254[_0x3a11c8(0x133)]);},'afterThrow':(_0x20f352,_0x2aef54)=>{throw _0x2aef54;}};});}async[a2_0x419dc1(0x124)](){const _0x228550=a2_0x419dc1;this[_0x228550(0x110)][_0x228550(0x113)]([_0x228550(0x161)])[_0x228550(0x11c)](_0x1824ef=>{const _0x17d268=_0x228550;(_0x1824ef===null||_0x1824ef===void 0x0?void 0x0:_0x1824ef[_0x17d268(0x120)])&&Object[_0x17d268(0x159)](_0x1824ef[_0x17d268(0x120)],{'ok':{'value':function(_0xae569,_0x368d40,_0x3795b6=0x0){return{'code':_0x3795b6,'data':_0xae569,'extra':_0x368d40};}},'input':{'value':function(_0x42639d,_0x421bf1){const _0x26a7e9=_0x17d268;var _0x5d4128;const _0x486f0f=lodash[_0x26a7e9(0x130)]({},this[_0x26a7e9(0x142)]['body']||this[_0x26a7e9(0x142)][((_0x5d4128=config===null||config===void 0x0?void 0x0:config[_0x26a7e9(0x119)])===null||_0x5d4128===void 0x0?void 0x0:_0x5d4128[_0x26a7e9(0x11d)])||'body']||{},this[_0x26a7e9(0x142)][_0x26a7e9(0x105)]||{});return _0x42639d?lodash[_0x26a7e9(0x109)](_0x486f0f,_0x42639d,_0x421bf1):_0x486f0f;}},'when':{'value':async function(_0x5ed39f,_0x187abb){const _0x26e10a=_0x17d268,_0x39945a=this[_0x26e10a(0x12b)](_0x5ed39f,null);if(!lodash[_0x26e10a(0x12a)](_0x39945a))return await _0x187abb(_0x39945a);}},'only':{'value':function(_0x291240){const _0x781ab5=_0x17d268,_0x1c6a2c={};for(let _0x298e0a=0x0;_0x298e0a<_0x291240[_0x781ab5(0x14b)];_0x298e0a++){lodash[_0x781ab5(0x158)](_0x291240[_0x298e0a])&&_0x291240[_0x298e0a][_0x781ab5(0x14b)]>0x0&&lodash[_0x781ab5(0x145)](_0x291240[_0x298e0a][0x0])&&(_0x1c6a2c[_0x291240[_0x298e0a][0x0]]=this[_0x781ab5(0x12b)](_0x291240[_0x298e0a][0x0],_0x291240[_0x298e0a][_0x781ab5(0x14b)]>0x1?_0x291240[_0x298e0a][0x1]:null));}return _0x1c6a2c;}},'koasend':{'value':function(_0x2a3918,_0x3fe3fb){const _0x247c73=_0x17d268;if(!fs[_0x247c73(0x14e)](this[_0x247c73(0x116)][_0x247c73(0x115)]()+'/'+_0x2a3918))return _0x247c73(0x139);return this['attachment'](_0x3fe3fb||_0x2a3918),koasend(this,_0x2a3918);}}});});}async['loggerConfig'](){const _0x3de538=a2_0x419dc1;var _0x24b448,_0x2c1849;if(fs['existsSync'](this['app'][_0x3de538(0x16f)]()+'/apps')&&fs[_0x3de538(0x106)](this[_0x3de538(0x116)][_0x3de538(0x16f)]()+'/apps')[_0x3de538(0xfd)]()){const _0x4abba5=this[_0x3de538(0x15c)][_0x3de538(0x12c)](),_0x57513c=((_0x24b448=_0x4abba5===null||_0x4abba5===void 0x0?void 0x0:_0x4abba5[_0x3de538(0x162)])===null||_0x24b448===void 0x0?void 0x0:_0x24b448[_0x3de538(0x16a)])||{};for(const _0x217199 of fs[_0x3de538(0x126)](this[_0x3de538(0x116)][_0x3de538(0x16f)]()+_0x3de538(0x140))){if(!fs[_0x3de538(0x106)](this[_0x3de538(0x116)]['getBaseDir']()+_0x3de538(0x11a)+_0x217199)['isDirectory']())continue;if(_0x57513c===null||_0x57513c===void 0x0?void 0x0:_0x57513c[_0x217199])continue;_0x57513c[_0x217199]=Object[_0x3de538(0x122)]({},((_0x2c1849=_0x4abba5===null||_0x4abba5===void 0x0?void 0x0:_0x4abba5['midwayLogger'])===null||_0x2c1849===void 0x0?void 0x0:_0x2c1849[_0x3de538(0x138)])||{'maxSize':'1m','dir':this['app']['getAppDir']()+_0x3de538(0x150)},{'enableJSON':!![],'enableConsole':this[_0x3de538(0x134)][_0x3de538(0x107)](),'fileLogName':_0x217199+_0x3de538(0x153),'dir':this['app'][_0x3de538(0x115)]()+_0x3de538(0x15f)+_0x217199+_0x3de538(0x104)});}Object['keys'](_0x57513c)[_0x3de538(0x14b)]>0x0&&(!_0x4abba5['midwayLogger']&&(_0x4abba5[_0x3de538(0x162)]={'default':{'maxSize':'1m','dir':this['app'][_0x3de538(0x115)]()+_0x3de538(0x150)}}),_0x4abba5[_0x3de538(0x162)][_0x3de538(0x16a)]=_0x57513c),this['config'][_0x3de538(0xf8)](_0x4abba5);}}async['filterConfig'](){const _0x94bcdd=a2_0x419dc1;var _0x9ca937,_0x4ffb4d,_0x1505a5,_0x5cc190,_0x1d7057,_0xf4fd1b;const _0x5d4094=this[_0x94bcdd(0x15c)]['getConfiguration']();((_0x4ffb4d=(_0x9ca937=_0x5d4094===null||_0x5d4094===void 0x0?void 0x0:_0x5d4094[_0x94bcdd(0x14c)])===null||_0x9ca937===void 0x0?void 0x0:_0x9ca937[_0x94bcdd(0x10c)])===null||_0x4ffb4d===void 0x0?void 0x0:_0x4ffb4d[_0x94bcdd(0x143)])&&Object[_0x94bcdd(0x10f)](_0x5d4094[_0x94bcdd(0x14c)][_0x94bcdd(0x10c)])[_0x94bcdd(0x14b)]>0x1&&delete _0x5d4094['anncicapi'][_0x94bcdd(0x10c)][_0x94bcdd(0x143)];if((_0x1505a5=_0x5d4094===null||_0x5d4094===void 0x0?void 0x0:_0x5d4094['staticFile'])===null||_0x1505a5===void 0x0?void 0x0:_0x1505a5[_0x94bcdd(0x163)])for(const _0xdab97 in _0x5d4094[_0x94bcdd(0x13f)][_0x94bcdd(0x163)]){((_0x5cc190=_0x5d4094[_0x94bcdd(0x13f)][_0x94bcdd(0x163)][_0xdab97])===null||_0x5cc190===void 0x0?void 0x0:_0x5cc190[_0x94bcdd(0x155)])&&typeof((_0x1d7057=_0x5d4094['staticFile'][_0x94bcdd(0x163)][_0xdab97])===null||_0x1d7057===void 0x0?void 0x0:_0x1d7057[_0x94bcdd(0x155)])==_0x94bcdd(0x169)&&!fs[_0x94bcdd(0x14e)](_0x5d4094[_0x94bcdd(0x13f)]['dirs'][_0xdab97]['dir'])&&(fs[_0x94bcdd(0x12e)](_0x5d4094[_0x94bcdd(0x13f)][_0x94bcdd(0x163)][_0xdab97][_0x94bcdd(0x155)],{'recursive':!![]}),console['log'](_0x94bcdd(0x14d)+_0x5d4094['staticFile'][_0x94bcdd(0x163)][_0xdab97]['dir']));}((_0xf4fd1b=_0x5d4094===null||_0x5d4094===void 0x0?void 0x0:_0x5d4094[_0x94bcdd(0x103)])===null||_0xf4fd1b===void 0x0?void 0x0:_0xf4fd1b[_0x94bcdd(0x166)])&&!fs[_0x94bcdd(0x14e)](_0x5d4094['upload'][_0x94bcdd(0x166)])&&(fs[_0x94bcdd(0x12e)](_0x5d4094[_0x94bcdd(0x103)]['tmpdir'],{'recursive':!![]}),console['log'](_0x94bcdd(0x16c)+_0x5d4094[_0x94bcdd(0x103)]['tmpdir'])),this[_0x94bcdd(0x15c)][_0x94bcdd(0xf8)](_0x5d4094);}};function a2_0x2906(_0x194ab4,_0x57ef0c){const _0x2001f5=a2_0x2001();return a2_0x2906=function(_0x29066b,_0x2daeca){_0x29066b=_0x29066b-0xf8;let _0x29337b=_0x2001f5[_0x29066b];return _0x29337b;},a2_0x2906(_0x194ab4,_0x57ef0c);}__decorate([(0x0,core_1[a2_0x419dc1(0x16d)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x419dc1(0x118)],a2_0x419dc1(0x116),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x419dc1(0x16e),core_2[a2_0x419dc1(0x144)])],CustomConfiguration[a2_0x419dc1(0x118)],a2_0x419dc1(0x15c),void 0x0),__decorate([(0x0,core_1[a2_0x419dc1(0x15e)])(),__metadata(a2_0x419dc1(0x16e),core_2[a2_0x419dc1(0x12d)])],CustomConfiguration[a2_0x419dc1(0x118)],a2_0x419dc1(0x123),void 0x0),__decorate([(0x0,core_1[a2_0x419dc1(0x15e)])(),__metadata(a2_0x419dc1(0x16e),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x419dc1(0x118)],'application',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x419dc1(0x16e),core_2[a2_0x419dc1(0x11b)])],CustomConfiguration['prototype'],a2_0x419dc1(0x134),void 0x0),__decorate([(0x0,core_1[a2_0x419dc1(0x15e)])(),__metadata(a2_0x419dc1(0x16e),ApiService_1[a2_0x419dc1(0x13d)])],CustomConfiguration[a2_0x419dc1(0x118)],a2_0x419dc1(0x13d),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x419dc1(0x156),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x419dc1(0x15d)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x54fda0=a2_0xd28f;(function(_0x38daec,_0x5b49c4){const _0x5879f5=a2_0xd28f,_0x35b107=_0x38daec();while(!![]){try{const _0x3cf280=-parseInt(_0x5879f5(0x158))/0x1*(-parseInt(_0x5879f5(0x144))/0x2)+-parseInt(_0x5879f5(0x156))/0x3*(parseInt(_0x5879f5(0x14f))/0x4)+parseInt(_0x5879f5(0x169))/0x5*(parseInt(_0x5879f5(0x17b))/0x6)+-parseInt(_0x5879f5(0x1a4))/0x7+parseInt(_0x5879f5(0x147))/0x8*(-parseInt(_0x5879f5(0x16e))/0x9)+parseInt(_0x5879f5(0x1a7))/0xa+-parseInt(_0x5879f5(0x17d))/0xb;if(_0x3cf280===_0x5b49c4)break;else _0x35b107['push'](_0x35b107['shift']());}catch(_0x21cb43){_0x35b107['push'](_0x35b107['shift']());}}}(a2_0x1e5d,0x786db));function a2_0xd28f(_0xa8f122,_0x554c1a){const _0x1e5d46=a2_0x1e5d();return a2_0xd28f=function(_0xd28f7d,_0x402fdf){_0xd28f7d=_0xd28f7d-0x13e;let _0x11e6b0=_0x1e5d46[_0xd28f7d];return _0x11e6b0;},a2_0xd28f(_0xa8f122,_0x554c1a);}function a2_0x1e5d(){const _0x28bef2=['Configuration','getApplications','Inject','ACTION_ROUTE_KEY','default','readdirSync','-log','defineProperty','App','REQUEST_OBJ_CTX_KEY','__metadata','isDirectory','staticFile','filterConfig','midwayLogger','/runtime/apps-','requestContext','design:type','anncic-apihelper','236376jmmmgx','target','body','5740860KVtSJw','handler','log','@midwayjs/core','文件不存在','anncic-api','DEFAULT','intercept','apimit','decorator','/apps','isClass','onReady','ApiService','ApiError','isDevelopmentEnvironment','args','get','2LNIUxC','bodyXml','MidwayApplicationManager','8KXvCFv','query','statSync','object','clients','mkdirSync','devices','koa-send','1300EfQvim','function','method','Types','anncicapi','key','length','891RmmsjY','.log','734009mGfnjS','request','/runtime','./config/config.default','device','getAsync','checkConfigKeys','context','isString','getOwnPropertyDescriptor','./exception/ApiError','dirs','isFunction','defaultsDeep','@midwayjs/cross-domain','getBaseDir','assign','40ItHJXQ','/apps/','dir','addObject','./types/action','4032792mCupSo','@midwayjs/i18n','string','app','registerMethodHandler','config','application','@midwayjs/static-file','getConfiguration','koa','isNull','existsSync','keys','376272VVejyH','input','8119485eKYdbU','toLowerCase','decorate','metadata','environment','_matchedRoute','tmpdir','checksign','loggerConfig','upload','isArray','CustomConfiguration','forEach','@midwayjs/koa','HEADERS_SIGNATURE','@anncic-api/typeorm','headers','prototype','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','getAppDir'];a2_0x1e5d=function(){return _0x28bef2;};return a2_0x1e5d();}var __decorate=this&&this['__decorate']||function(_0x3ddfad,_0x11ae5f,_0x2c70db,_0x473a59){const _0x561185=a2_0xd28f;var _0x22d7f0=arguments[_0x561185(0x155)],_0x1ec1bd=_0x22d7f0<0x3?_0x11ae5f:_0x473a59===null?_0x473a59=Object[_0x561185(0x161)](_0x11ae5f,_0x2c70db):_0x473a59,_0x452a59;if(typeof Reflect===_0x561185(0x14a)&&typeof Reflect[_0x561185(0x17f)]===_0x561185(0x150))_0x1ec1bd=Reflect[_0x561185(0x17f)](_0x3ddfad,_0x11ae5f,_0x2c70db,_0x473a59);else{for(var _0x8fa3b4=_0x3ddfad[_0x561185(0x155)]-0x1;_0x8fa3b4>=0x0;_0x8fa3b4--)if(_0x452a59=_0x3ddfad[_0x8fa3b4])_0x1ec1bd=(_0x22d7f0<0x3?_0x452a59(_0x1ec1bd):_0x22d7f0>0x3?_0x452a59(_0x11ae5f,_0x2c70db,_0x1ec1bd):_0x452a59(_0x11ae5f,_0x2c70db))||_0x1ec1bd;}return _0x22d7f0>0x3&&_0x1ec1bd&&Object[_0x561185(0x198)](_0x11ae5f,_0x2c70db,_0x1ec1bd),_0x1ec1bd;},__metadata=this&&this[a2_0x54fda0(0x19b)]||function(_0x55dc51,_0x1a2b83){const _0x50f8f8=a2_0x54fda0;if(typeof Reflect==='object'&&typeof Reflect[_0x50f8f8(0x180)]==='function')return Reflect[_0x50f8f8(0x180)](_0x55dc51,_0x1a2b83);};Object[a2_0x54fda0(0x198)](exports,'__esModule',{'value':!![]}),exports[a2_0x54fda0(0x188)]=void 0x0;const core_1=require(a2_0x54fda0(0x1aa)),core_2=require(a2_0x54fda0(0x1aa)),ApiError_1=require(a2_0x54fda0(0x162)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x54fda0(0x16d)),fs=require('fs'),koasend=require(a2_0x54fda0(0x14e)),koa=require(a2_0x54fda0(0x18a)),i18n=require(a2_0x54fda0(0x16f)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x54fda0(0x175)),crossDomain=require(a2_0x54fda0(0x166)),ConfigDefault=require(a2_0x54fda0(0x15b)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x54fda0(0x18c)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x54fda0(0x1a3));let CustomConfiguration=class CustomConfiguration{async[a2_0x54fda0(0x13e)](){const _0x381f6e=a2_0x54fda0;await this[_0x381f6e(0x19e)](),await this['loggerConfig'](),await this[_0x381f6e(0x15e)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x54fda0(0x15e)](){}async['handlerActionRoute'](){const _0x4bd680=a2_0x54fda0,_0x2a2eca=this['config'][_0x4bd680(0x176)]();this['decorator'][_0x4bd680(0x172)](action_1[_0x4bd680(0x194)],_0x16a606=>{const _0x1ce3ba=_0x4bd680,_0x787adf=_0x16a606[_0x1ce3ba(0x180)];return{'before':async _0x5bfa6f=>{const _0x45d01b=_0x1ce3ba;var _0x31529f,_0x231e83;const _0x13243f=(_0x31529f=_0x5bfa6f===null||_0x5bfa6f===void 0x0?void 0x0:_0x5bfa6f[_0x45d01b(0x1a5)])===null||_0x31529f===void 0x0?void 0x0:_0x31529f[core_2[_0x45d01b(0x19a)]];if(_0x13243f&&(_0x787adf===null||_0x787adf===void 0x0?void 0x0:_0x787adf['apimit'])){if(!this['ApiService'][_0x45d01b(0x184)]((_0x231e83=_0x13243f===null||_0x13243f===void 0x0?void 0x0:_0x13243f[_0x45d01b(0x159)])===null||_0x231e83===void 0x0?void 0x0:_0x231e83[_0x45d01b(0x18d)]))throw new AnnError(ApiError_1[_0x45d01b(0x140)][_0x45d01b(0x18b)]);}},'around':async _0x130ae1=>{const _0x5d96ef=_0x1ce3ba;var _0x726adc,_0x5692bf,_0x4ea9f4,_0x5c1d70,_0x13ecdf;const _0x54e4d2=(_0x726adc=_0x130ae1===null||_0x130ae1===void 0x0?void 0x0:_0x130ae1[_0x5d96ef(0x1a5)])===null||_0x726adc===void 0x0?void 0x0:_0x726adc[core_2[_0x5d96ef(0x19a)]];if(_0x54e4d2&&(_0x787adf===null||_0x787adf===void 0x0?void 0x0:_0x787adf[_0x5d96ef(0x1af)])&&((_0x787adf===null||_0x787adf===void 0x0?void 0x0:_0x787adf[_0x5d96ef(0x1ae)])||typeof(_0x787adf===null||_0x787adf===void 0x0?void 0x0:_0x787adf[_0x5d96ef(0x1ae)])=='undefined')){if(((_0x5692bf=_0x54e4d2['headers'])===null||_0x5692bf===void 0x0?void 0x0:_0x5692bf[_0x5d96ef(0x15c)])&&((_0x13ecdf=(_0x5c1d70=(_0x4ea9f4=_0x2a2eca===null||_0x2a2eca===void 0x0?void 0x0:_0x2a2eca[_0x5d96ef(0x153)])===null||_0x4ea9f4===void 0x0?void 0x0:_0x4ea9f4['devices'])===null||_0x5c1d70===void 0x0?void 0x0:_0x5c1d70[_0x54e4d2[_0x5d96ef(0x18d)][_0x5d96ef(0x15c)]])===null||_0x13ecdf===void 0x0?void 0x0:_0x13ecdf[_0x5d96ef(0x1ae)])){const _0x5e2cb2=Array['isArray'](_0x2a2eca[_0x5d96ef(0x153)][_0x5d96ef(0x14d)][_0x54e4d2['headers'][_0x5d96ef(0x15c)]][_0x5d96ef(0x1ae)])?_0x2a2eca[_0x5d96ef(0x153)][_0x5d96ef(0x14d)][_0x54e4d2['headers'][_0x5d96ef(0x15c)]][_0x5d96ef(0x1ae)]:[_0x2a2eca[_0x5d96ef(0x153)][_0x5d96ef(0x14d)][_0x54e4d2[_0x5d96ef(0x18d)][_0x5d96ef(0x15c)]][_0x5d96ef(0x1ae)]];for(const _0x1486e2 of _0x5e2cb2){if(core_1[_0x5d96ef(0x152)][_0x5d96ef(0x1b2)](_0x1486e2)||typeof _0x1486e2==_0x5d96ef(0x170)){const _0x4ff0e1=await _0x54e4d2[_0x5d96ef(0x1a1)][_0x5d96ef(0x15d)](_0x1486e2);typeof(_0x4ff0e1===null||_0x4ff0e1===void 0x0?void 0x0:_0x4ff0e1[_0x5d96ef(0x1a8)])==_0x5d96ef(0x150)&&await _0x4ff0e1['handler'](typeof(_0x54e4d2===null||_0x54e4d2===void 0x0?void 0x0:_0x54e4d2[_0x5d96ef(0x151)])==_0x5d96ef(0x170)&&(_0x54e4d2===null||_0x54e4d2===void 0x0?void 0x0:_0x54e4d2[_0x5d96ef(0x182)])?_0x54e4d2['method'][_0x5d96ef(0x17e)]()+'@'+(_0x54e4d2===null||_0x54e4d2===void 0x0?void 0x0:_0x54e4d2['_matchedRoute']):undefined,_0x54e4d2,_0x787adf);}else core_1[_0x5d96ef(0x152)][_0x5d96ef(0x164)](_0x1486e2)&&await _0x1486e2(typeof(_0x54e4d2===null||_0x54e4d2===void 0x0?void 0x0:_0x54e4d2[_0x5d96ef(0x151)])==_0x5d96ef(0x170)&&(_0x54e4d2===null||_0x54e4d2===void 0x0?void 0x0:_0x54e4d2[_0x5d96ef(0x182)])?_0x54e4d2[_0x5d96ef(0x151)][_0x5d96ef(0x17e)]()+'@'+(_0x54e4d2===null||_0x54e4d2===void 0x0?void 0x0:_0x54e4d2[_0x5d96ef(0x182)]):undefined,_0x54e4d2,_0x787adf);}}}return await _0x130ae1['proceed'](..._0x130ae1[_0x5d96ef(0x142)]);},'afterThrow':(_0xd0b8c5,_0x5ab67f)=>{throw _0x5ab67f;}};});}async['hanlderApplications'](){const _0x499e3a=a2_0x54fda0;this[_0x499e3a(0x174)][_0x499e3a(0x192)]([_0x499e3a(0x177)])[_0x499e3a(0x189)](_0x5c98c3=>{const _0x5b547d=_0x499e3a;(_0x5c98c3===null||_0x5c98c3===void 0x0?void 0x0:_0x5c98c3['context'])&&Object['defineProperties'](_0x5c98c3[_0x5b547d(0x15f)],{'ok':{'value':function(_0x487659,_0x7e7965,_0x4c5efb=0x0){return{'code':_0x4c5efb,'data':_0x487659,'extra':_0x7e7965};}},'input':{'value':function(_0x1b98a2,_0x1bbb4e){const _0x279ce4=_0x5b547d;var _0x5502f8;const _0x22e4a4=lodash[_0x279ce4(0x165)]({},this[_0x279ce4(0x159)][_0x279ce4(0x1a6)]||this[_0x279ce4(0x159)][((_0x5502f8=config===null||config===void 0x0?void 0x0:config[_0x279ce4(0x145)])===null||_0x5502f8===void 0x0?void 0x0:_0x5502f8[_0x279ce4(0x154)])||_0x279ce4(0x1a6)]||{},this[_0x279ce4(0x159)][_0x279ce4(0x148)]||{});return _0x1b98a2?lodash[_0x279ce4(0x143)](_0x22e4a4,_0x1b98a2,_0x1bbb4e):_0x22e4a4;}},'when':{'value':async function(_0x1df6cc,_0x551291){const _0x421985=_0x5b547d,_0x337f6e=this[_0x421985(0x17c)](_0x1df6cc,null);if(!lodash[_0x421985(0x178)](_0x337f6e))return await _0x551291(_0x337f6e);}},'only':{'value':function(_0x215d72){const _0xf23b4d=_0x5b547d,_0x4c3290={};for(let _0xdda408=0x0;_0xdda408<_0x215d72['length'];_0xdda408++){lodash[_0xf23b4d(0x187)](_0x215d72[_0xdda408])&&_0x215d72[_0xdda408]['length']>0x0&&lodash[_0xf23b4d(0x160)](_0x215d72[_0xdda408][0x0])&&(_0x4c3290[_0x215d72[_0xdda408][0x0]]=this[_0xf23b4d(0x17c)](_0x215d72[_0xdda408][0x0],_0x215d72[_0xdda408][_0xf23b4d(0x155)]>0x1?_0x215d72[_0xdda408][0x1]:null));}return _0x4c3290;}},'koasend':{'value':function(_0x3fc00c,_0xe028b8){const _0x6d7673=_0x5b547d;if(!fs['existsSync'](this[_0x6d7673(0x171)][_0x6d7673(0x190)]()+'/'+_0x3fc00c))return _0x6d7673(0x1ab);return this['attachment'](_0xe028b8||_0x3fc00c),koasend(this,_0x3fc00c);}}});});}async[a2_0x54fda0(0x185)](){const _0x1360f0=a2_0x54fda0;var _0xf3e1f0,_0xc511ae;if(fs[_0x1360f0(0x179)](this[_0x1360f0(0x171)][_0x1360f0(0x167)]()+_0x1360f0(0x1b1))&&fs['statSync'](this[_0x1360f0(0x171)][_0x1360f0(0x167)]()+_0x1360f0(0x1b1))[_0x1360f0(0x19c)]()){const _0x122e26=this[_0x1360f0(0x173)][_0x1360f0(0x176)](),_0x29cb64=((_0xf3e1f0=_0x122e26===null||_0x122e26===void 0x0?void 0x0:_0x122e26[_0x1360f0(0x19f)])===null||_0xf3e1f0===void 0x0?void 0x0:_0xf3e1f0[_0x1360f0(0x14b)])||{};for(const _0x404e25 of fs[_0x1360f0(0x196)](this[_0x1360f0(0x171)][_0x1360f0(0x167)]()+_0x1360f0(0x1b1))){if(!fs[_0x1360f0(0x149)](this[_0x1360f0(0x171)][_0x1360f0(0x167)]()+_0x1360f0(0x16a)+_0x404e25)[_0x1360f0(0x19c)]())continue;if(_0x29cb64===null||_0x29cb64===void 0x0?void 0x0:_0x29cb64[_0x404e25])continue;_0x29cb64[_0x404e25]=Object[_0x1360f0(0x168)]({},((_0xc511ae=_0x122e26===null||_0x122e26===void 0x0?void 0x0:_0x122e26[_0x1360f0(0x19f)])===null||_0xc511ae===void 0x0?void 0x0:_0xc511ae[_0x1360f0(0x195)])||{'maxSize':'1m','dir':this[_0x1360f0(0x171)][_0x1360f0(0x190)]()+_0x1360f0(0x15a)},{'enableJSON':!![],'enableConsole':this[_0x1360f0(0x181)][_0x1360f0(0x141)](),'fileLogName':_0x404e25+_0x1360f0(0x157),'dir':this[_0x1360f0(0x171)][_0x1360f0(0x190)]()+_0x1360f0(0x1a0)+_0x404e25+_0x1360f0(0x197)});}Object[_0x1360f0(0x17a)](_0x29cb64)[_0x1360f0(0x155)]>0x0&&(!_0x122e26[_0x1360f0(0x19f)]&&(_0x122e26[_0x1360f0(0x19f)]={'default':{'maxSize':'1m','dir':this[_0x1360f0(0x171)][_0x1360f0(0x190)]()+'/runtime'}}),_0x122e26[_0x1360f0(0x19f)][_0x1360f0(0x14b)]=_0x29cb64),this[_0x1360f0(0x173)][_0x1360f0(0x16c)](_0x122e26);}}async[a2_0x54fda0(0x19e)](){const _0x1b207e=a2_0x54fda0;var _0x172f3c,_0x47d1cd,_0x6fced4,_0x53c3bd,_0x26d35d,_0x433379;const _0x228e6c=this['config'][_0x1b207e(0x176)]();((_0x47d1cd=(_0x172f3c=_0x228e6c===null||_0x228e6c===void 0x0?void 0x0:_0x228e6c['anncicapi'])===null||_0x172f3c===void 0x0?void 0x0:_0x172f3c[_0x1b207e(0x14d)])===null||_0x47d1cd===void 0x0?void 0x0:_0x47d1cd[_0x1b207e(0x1ad)])&&Object['keys'](_0x228e6c[_0x1b207e(0x153)][_0x1b207e(0x14d)])[_0x1b207e(0x155)]>0x1&&delete _0x228e6c[_0x1b207e(0x153)][_0x1b207e(0x14d)][_0x1b207e(0x1ad)];if((_0x6fced4=_0x228e6c===null||_0x228e6c===void 0x0?void 0x0:_0x228e6c[_0x1b207e(0x19d)])===null||_0x6fced4===void 0x0?void 0x0:_0x6fced4['dirs'])for(const _0x1e5cb2 in _0x228e6c[_0x1b207e(0x19d)][_0x1b207e(0x163)]){((_0x53c3bd=_0x228e6c[_0x1b207e(0x19d)]['dirs'][_0x1e5cb2])===null||_0x53c3bd===void 0x0?void 0x0:_0x53c3bd[_0x1b207e(0x16b)])&&typeof((_0x26d35d=_0x228e6c[_0x1b207e(0x19d)][_0x1b207e(0x163)][_0x1e5cb2])===null||_0x26d35d===void 0x0?void 0x0:_0x26d35d[_0x1b207e(0x16b)])==_0x1b207e(0x170)&&!fs[_0x1b207e(0x179)](_0x228e6c[_0x1b207e(0x19d)][_0x1b207e(0x163)][_0x1e5cb2][_0x1b207e(0x16b)])&&(fs['mkdirSync'](_0x228e6c['staticFile'][_0x1b207e(0x163)][_0x1e5cb2][_0x1b207e(0x16b)],{'recursive':!![]}),console[_0x1b207e(0x1a9)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x228e6c[_0x1b207e(0x19d)][_0x1b207e(0x163)][_0x1e5cb2][_0x1b207e(0x16b)]));}((_0x433379=_0x228e6c===null||_0x228e6c===void 0x0?void 0x0:_0x228e6c[_0x1b207e(0x186)])===null||_0x433379===void 0x0?void 0x0:_0x433379['tmpdir'])&&!fs[_0x1b207e(0x179)](_0x228e6c['upload'][_0x1b207e(0x183)])&&(fs[_0x1b207e(0x14c)](_0x228e6c[_0x1b207e(0x186)][_0x1b207e(0x183)],{'recursive':!![]}),console[_0x1b207e(0x1a9)](_0x1b207e(0x18f)+_0x228e6c[_0x1b207e(0x186)][_0x1b207e(0x183)])),this[_0x1b207e(0x173)][_0x1b207e(0x16c)](_0x228e6c);}};__decorate([(0x0,core_1[a2_0x54fda0(0x199)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x54fda0(0x18e)],a2_0x54fda0(0x171),void 0x0),__decorate([(0x0,core_1[a2_0x54fda0(0x193)])(),__metadata(a2_0x54fda0(0x1a2),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x54fda0(0x18e)],a2_0x54fda0(0x173),void 0x0),__decorate([(0x0,core_1[a2_0x54fda0(0x193)])(),__metadata(a2_0x54fda0(0x1a2),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x54fda0(0x18e)],a2_0x54fda0(0x1b0),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x54fda0(0x1a2),core_2[a2_0x54fda0(0x146)])],CustomConfiguration[a2_0x54fda0(0x18e)],a2_0x54fda0(0x174),void 0x0),__decorate([(0x0,core_1[a2_0x54fda0(0x193)])(),__metadata(a2_0x54fda0(0x1a2),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x54fda0(0x18e)],a2_0x54fda0(0x181),void 0x0),__decorate([(0x0,core_1[a2_0x54fda0(0x193)])(),__metadata(a2_0x54fda0(0x1a2),ApiService_1[a2_0x54fda0(0x13f)])],CustomConfiguration[a2_0x54fda0(0x18e)],a2_0x54fda0(0x13f),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x54fda0(0x191)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x54fda0(0x1ac),'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_0x565be=a3_0xc5bd;(function(_0x57b60d,_0x5e45ed){const _0x1d6cb1=a3_0xc5bd,_0x52bf2b=_0x57b60d();while(!![]){try{const _0x423f27=-parseInt(_0x1d6cb1(0xe7))/0x1+-parseInt(_0x1d6cb1(0xd9))/0x2*(parseInt(_0x1d6cb1(0xdd))/0x3)+-parseInt(_0x1d6cb1(0xe1))/0x4+parseInt(_0x1d6cb1(0xc7))/0x5*(-parseInt(_0x1d6cb1(0xbf))/0x6)+parseInt(_0x1d6cb1(0xe0))/0x7*(parseInt(_0x1d6cb1(0xec))/0x8)+-parseInt(_0x1d6cb1(0xc3))/0x9+-parseInt(_0x1d6cb1(0xe2))/0xa*(-parseInt(_0x1d6cb1(0xd7))/0xb);if(_0x423f27===_0x5e45ed)break;else _0x52bf2b['push'](_0x52bf2b['shift']());}catch(_0x38d44f){_0x52bf2b['push'](_0x52bf2b['shift']());}}}(a3_0x2e81,0x7e114));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x565be(0xcb)]=void 0x0;function a3_0xc5bd(_0x5a277f,_0x349fce){const _0x2e8116=a3_0x2e81();return a3_0xc5bd=function(_0xc5bd4f,_0x4e8cc0){_0xc5bd4f=_0xc5bd4f-0xbb;let _0x2d851b=_0x2e8116[_0xc5bd4f];return _0x2d851b;},a3_0xc5bd(_0x5a277f,_0x349fce);}const fs=require('fs'),core_1=require(a3_0x565be(0xef)),action_1=require(a3_0x565be(0xd0));function a3_0x2e81(){const _0xadd1ef=['42655rUtLqe','apps/','module','middlewareIgnore','Action','Controller','route','splice','cwd','../types/action','saveClassMetadata','match','indexOf','prefix','/controller/','AppsConfigTmp','1515877gghKAP','startsWith','995132RcgoyY','length','substring','replace','3JbqQms','-action','-controller','112021OmFmDp','181408PHJuTo','120uZMQpL','filepath','APPSCONFIG_KEY','basic/controller/','/apps/','320134FBaByJ','join','endsWith','\x20文件请放在app/controller/文件下','push','368KJvpZu','isArray','trim','@midwayjs/core','\x20文件请放在apps/','ACTION_KEY','app/controller/','existsSync','462TYrjAr','saveModule','/controller/文件下','middleware','3181599DNaJQF','/config.','toLowerCase','split'];a3_0x2e81=function(){return _0xadd1ef;};return a3_0x2e81();}function Action(_0x45e29e,_0x31c09b,_0x3e84b4={'middleware':[],'sensitive':!![]}){return _0x2c752a=>{const _0x22299e=a3_0xc5bd;var _0x954e8c;_0x3e84b4['tagName']=_0x31c09b;const _0xed443d=parseRoute(_0x45e29e);if(_0xed443d[_0x22299e(0xc9)]){_0x3e84b4['prefix']=_0x3e84b4[_0x22299e(0xd4)]?'/'+_0xed443d['module']+'/'+_0x3e84b4['prefix']:'/'+_0xed443d[_0x22299e(0xcd)];_0xed443d[_0x22299e(0xd4)]&&(_0x3e84b4[_0x22299e(0xd4)]='/'+_0xed443d[_0x22299e(0xd4)]+'/'+_0x3e84b4['prefix']);if(fs[_0x22299e(0xbe)](_0xed443d['rootpath']+_0x22299e(0xe6)+_0xed443d['module']+_0x22299e(0xc4)+(lodash['endsWith'](_0xed443d[_0x22299e(0xe3)],'ts')?'ts':'js'))){const _0x38dd07=include(_0xed443d['rootpath']+_0x22299e(0xe6)+_0xed443d['module']+_0x22299e(0xc4)+(lodash[_0x22299e(0xe9)](_0xed443d['filepath'],'ts')?'ts':'js'));if(_0x38dd07[_0x22299e(0xc2)]&&lodash[_0x22299e(0xed)](_0x38dd07[_0x22299e(0xc2)])&&_0x38dd07[_0x22299e(0xc2)][_0x22299e(0xda)]>0x0)for(let _0x15e995 in _0x38dd07['middleware']){if(((_0x954e8c=_0x38dd07===null||_0x38dd07===void 0x0?void 0x0:_0x38dd07[_0x22299e(0xca)])===null||_0x954e8c===void 0x0?void 0x0:_0x954e8c[_0x22299e(0xda)])>0x0&&_0x38dd07['middlewareIgnore']['indexOf'](_0x38dd07[_0x22299e(0xc2)][_0x15e995])!=-0x1)continue;_0x3e84b4[_0x22299e(0xc2)][_0x22299e(0xeb)](_0x38dd07[_0x22299e(0xc2)][_0x15e995]);}const _0x458e17=(0x0,core_1['getClassMetadata'])(action_1[_0x22299e(0xe4)],action_1[_0x22299e(0xd6)])||{};_0x458e17[''+_0xed443d['module']]=_0x38dd07,(0x0,core_1[_0x22299e(0xd1)])(action_1['APPSCONFIG_KEY'],_0x458e17,action_1[_0x22299e(0xd6)]);}_0x3e84b4[_0x22299e(0xd4)]=_0x3e84b4[_0x22299e(0xd4)][_0x22299e(0xc5)]()[_0x22299e(0xdc)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x22299e(0xbc)],_0x2c752a),(0x0,core_1[_0x22299e(0xcc)])(_0x3e84b4['prefix'],_0x3e84b4)(_0x2c752a),(0x0,core_1[_0x22299e(0xd1)])(action_1['ACTION_KEY'],{'prefix':_0x3e84b4[_0x22299e(0xd4)],'pprefix':_0xed443d['prefix'],'module':_0xed443d['module'],'filepath':_0xed443d['filepath'],'routerOptions':_0x3e84b4},_0x2c752a);}else _0x3e84b4[_0x22299e(0xd4)]=_0x3e84b4[_0x22299e(0xd4)]?'/'+_0x3e84b4['prefix']:'/'+_0xed443d[_0x22299e(0xcd)],_0xed443d['prefix']&&(_0x3e84b4[_0x22299e(0xd4)]='/'+_0xed443d[_0x22299e(0xd4)]+'/'+_0x3e84b4[_0x22299e(0xd4)]),_0x3e84b4[_0x22299e(0xd4)]=_0x3e84b4[_0x22299e(0xd4)]['toLowerCase']()[_0x22299e(0xdc)](/\/{2,}/g,'/'),(0x0,core_1[_0x22299e(0xc0)])(action_1[_0x22299e(0xbc)],_0x2c752a),(0x0,core_1[_0x22299e(0xcc)])(_0x3e84b4[_0x22299e(0xd4)],_0x3e84b4)(_0x2c752a),(0x0,core_1['saveClassMetadata'])(action_1[_0x22299e(0xbc)],{'prefix':_0x3e84b4[_0x22299e(0xd4)],'module':_0xed443d[_0x22299e(0xc9)],'pprefix':_0xed443d[_0x22299e(0xd4)],'filepath':_0xed443d[_0x22299e(0xe3)],'routerOptions':_0x3e84b4},_0x2c752a);};}exports['Action']=Action;function parseRoute(_0x1979ec){const _0x518b73=a3_0x565be;_0x1979ec=_0x1979ec[_0x518b73(0xdc)](/(\\|\/)/g,'/');const _0x174fe7=process[_0x518b73(0xcf)]()[_0x518b73(0xdc)](/(\\|\/)/g,'/'),_0x447611=_0x1979ec[_0x518b73(0xdb)](0x0,_0x174fe7['length']+_0x1979ec[_0x518b73(0xdb)](_0x174fe7[_0x518b73(0xda)]+0x1)[_0x518b73(0xd3)]('/')+0x1),_0x6e7533=_0x1979ec[_0x518b73(0xdb)](_0x447611['length']+0x1)[_0x518b73(0xdc)](/(\\|\/)/g,'/'),_0x2a5a94={'route':'','prefix':![],'module':![],'rootpath':_0x447611,'filepath':_0x6e7533};if(_0x6e7533['startsWith'](_0x518b73(0xbd))||_0x6e7533['startsWith'](_0x518b73(0xe5))){const _0x1c8eb2=_0x6e7533[_0x518b73(0xdb)]((_0x6e7533[_0x518b73(0xd8)](_0x518b73(0xbd))?_0x518b73(0xbd):'basic/controller/')[_0x518b73(0xda)])[_0x518b73(0xc6)]('/')['filter'](_0x5553ad=>_0x5553ad&&_0x5553ad[_0x518b73(0xee)]());return _0x1c8eb2[_0x518b73(0xda)]>0x1&&(_0x2a5a94[_0x518b73(0xd4)]=_0x1c8eb2[0x0][_0x518b73(0xc5)](),_0x1c8eb2[_0x518b73(0xce)](0x0,0x1)),_0x2a5a94[_0x518b73(0xcd)]=('/'+_0x1c8eb2[_0x518b73(0xe8)]('/'))[_0x518b73(0xdc)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x518b73(0xd2)](/[\/|A-Z]*[^A-Z]+/g)[_0x518b73(0xe8)]('-')[_0x518b73(0xc5)]()['replace'](/\/\-/g,'/'),_0x2a5a94[_0x518b73(0xcd)]['endsWith'](_0x518b73(0xde))&&(_0x2a5a94['route']=_0x2a5a94[_0x518b73(0xcd)]['substring'](0x0,_0x2a5a94[_0x518b73(0xcd)][_0x518b73(0xda)]-0x7)),_0x2a5a94[_0x518b73(0xcd)]['endsWith'](_0x518b73(0xdf))&&(_0x2a5a94['route']=_0x2a5a94[_0x518b73(0xcd)][_0x518b73(0xdb)](0x0,_0x2a5a94[_0x518b73(0xcd)]['length']-0xb)),_0x2a5a94;}else{if(_0x6e7533[_0x518b73(0xd8)]('apps/')){const _0x2f5278=_0x6e7533[_0x518b73(0xdb)](0x0,_0x6e7533[_0x518b73(0xd3)](_0x518b73(0xe6))+0x5),_0x292953=_0x6e7533['substring'](_0x2f5278['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x518b73(0xc6)]('/')[0x0];if(_0x6e7533[_0x518b73(0xd8)](_0x518b73(0xc8)+_0x292953+'/controller/')){const _0x388ebb=_0x6e7533[_0x518b73(0xdb)]((_0x2f5278+'/'+_0x292953+_0x518b73(0xd5))['length'])[_0x518b73(0xc6)]('/')['filter'](_0x45bf6b=>_0x45bf6b&&_0x45bf6b[_0x518b73(0xee)]());return _0x388ebb['length']>0x1&&(_0x2a5a94[_0x518b73(0xd4)]=_0x388ebb[0x0]['toLowerCase'](),_0x388ebb[_0x518b73(0xce)](0x0,0x1)),_0x2a5a94[_0x518b73(0xc9)]=_0x292953,_0x2a5a94['route']=('/'+_0x292953+'/'+_0x388ebb['join']('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x518b73(0xd2)](/[\/|A-Z]*[^A-Z]+/g)[_0x518b73(0xe8)]('-')['toLowerCase']()[_0x518b73(0xdc)](/\/\-/g,'/'),_0x2a5a94[_0x518b73(0xcd)][_0x518b73(0xe9)](_0x518b73(0xde))&&(_0x2a5a94['route']=_0x2a5a94['route'][_0x518b73(0xdb)](0x0,_0x2a5a94['route'][_0x518b73(0xda)]-0x7)),_0x2a5a94[_0x518b73(0xcd)]['endsWith'](_0x518b73(0xdf))&&(_0x2a5a94[_0x518b73(0xcd)]=_0x2a5a94[_0x518b73(0xcd)][_0x518b73(0xdb)](0x0,_0x2a5a94[_0x518b73(0xcd)][_0x518b73(0xda)]-0xb)),_0x2a5a94;}throw new Error(_0x6e7533+_0x518b73(0xbb)+_0x292953+_0x518b73(0xc1));}}throw new Error(_0x6e7533+_0x518b73(0xea));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x53c5b9=a4_0x5408;(function(_0x807a5f,_0x2805ab){const _0x234731=a4_0x5408,_0x58b0ca=_0x807a5f();while(!![]){try{const _0x5802ff=parseInt(_0x234731(0x106))/0x1+-parseInt(_0x234731(0x10c))/0x2*(-parseInt(_0x234731(0xf2))/0x3)+parseInt(_0x234731(0xf8))/0x4*(-parseInt(_0x234731(0xef))/0x5)+parseInt(_0x234731(0xfe))/0x6+-parseInt(_0x234731(0xfb))/0x7*(-parseInt(_0x234731(0xf0))/0x8)+parseInt(_0x234731(0x107))/0x9+-parseInt(_0x234731(0xfc))/0xa;if(_0x5802ff===_0x2805ab)break;else _0x58b0ca['push'](_0x58b0ca['shift']());}catch(_0x3fddf2){_0x58b0ca['push'](_0x58b0ca['shift']());}}}(a4_0x3dc4,0x4a03d));function a4_0x3dc4(){const _0x1d6cd7=['intercept','401634uPCuKs','ACTION_ROUTE_KEY','delete','toLowerCase','length','string','del','RequestMapping','192516zXYbnN','3529305DxdAnv','get','createCustomMethodDecorator','description','routerName','110588uGwEZP','20yyZVoT','4229304YvoQZk','Api','3UrAjvD','@midwayjs/core','@anncic-api/validator','middleware','validate','filter','43028OxLFkK','apimit','../types/action','7rYdgCF','8893640qeiZtv'];a4_0x3dc4=function(){return _0x1d6cd7;};return a4_0x3dc4();}function a4_0x5408(_0x3b27ba,_0x38df47){const _0x3dc4d5=a4_0x3dc4();return a4_0x5408=function(_0x5408d6,_0x44dc01){_0x5408d6=_0x5408d6-0xef;let _0x1a9960=_0x3dc4d5[_0x5408d6];return _0x1a9960;},a4_0x5408(_0x3b27ba,_0x38df47);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x53c5b9(0xf1)]=void 0x0;const validator_1=require(a4_0x53c5b9(0xf4)),core_1=require(a4_0x53c5b9(0xf3)),action_1=require(a4_0x53c5b9(0xfa));function Api(_0x2d62a0,_0x85f971=a4_0x53c5b9(0x108),_0x416d58='/',_0x384c7f={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1e7f8e,_0x120d6c,_0x570374)=>{const _0x3e1cfc=a4_0x5408;var _0x10dfdb,_0x9571cc,_0x48ed5e;!_0x384c7f[_0x3e1cfc(0xf5)]&&(_0x384c7f['middleware']=[]);!((_0x10dfdb=_0x384c7f===null||_0x384c7f===void 0x0?void 0x0:_0x384c7f[_0x3e1cfc(0xf6)])===null||_0x10dfdb===void 0x0?void 0x0:_0x10dfdb['validationOptions'])&&(_0x384c7f[_0x3e1cfc(0xf6)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3e1cfc(0x103)}});if(((_0x9571cc=_0x384c7f===null||_0x384c7f===void 0x0?void 0x0:_0x384c7f[_0x3e1cfc(0xf5)])===null||_0x9571cc===void 0x0?void 0x0:_0x9571cc[_0x3e1cfc(0x102)])>0x0&&((_0x48ed5e=_0x384c7f===null||_0x384c7f===void 0x0?void 0x0:_0x384c7f['middlewareIgnore'])===null||_0x48ed5e===void 0x0?void 0x0:_0x48ed5e[_0x3e1cfc(0x102)])>0x0)for(let _0x4947c8 in _0x384c7f[_0x3e1cfc(0xf5)]){_0x384c7f['middlewareIgnore']['indexOf'](_0x384c7f[_0x3e1cfc(0xf5)][_0x4947c8])!==-0x1&&(_0x384c7f[_0x3e1cfc(0xf5)][_0x4947c8]=null);}_0x384c7f['routerName']=_0x2d62a0,(0x0,validator_1['Validator'])(_0x384c7f['validate'])(_0x1e7f8e,_0x120d6c,_0x570374),(0x0,core_1[_0x3e1cfc(0x105)])(Object['assign'](_0x384c7f,{'path':_0x416d58,'requestMethod':(_0x85f971=='del'?_0x3e1cfc(0x100):_0x85f971)[_0x3e1cfc(0x101)]()}))(_0x1e7f8e,_0x120d6c,_0x570374),(0x0,core_1['attachClassMetadata'])(action_1[_0x3e1cfc(0xff)],{'path':_0x416d58,'method':_0x120d6c,'apimit':_0x384c7f[_0x3e1cfc(0xf9)],'intercept':_0x384c7f['intercept'],'routerName':_0x384c7f[_0x3e1cfc(0x10b)],'description':_0x384c7f[_0x3e1cfc(0x10a)],'middleware':(_0x384c7f['middleware']||[])[_0x3e1cfc(0xf7)](_0x13be0d=>!!_0x13be0d),'requestMethod':(_0x85f971==_0x3e1cfc(0x104)?_0x3e1cfc(0x100):_0x85f971)[_0x3e1cfc(0x101)]()},_0x1e7f8e),(0x0,core_1[_0x3e1cfc(0x109)])(action_1[_0x3e1cfc(0xff)],{'path':_0x416d58,'method':_0x120d6c,'apimit':_0x384c7f[_0x3e1cfc(0xf9)],'intercept':_0x384c7f[_0x3e1cfc(0xfd)],'routerName':_0x384c7f[_0x3e1cfc(0x10b)],'description':_0x384c7f[_0x3e1cfc(0x10a)],'middleware':(_0x384c7f[_0x3e1cfc(0xf5)]||[])[_0x3e1cfc(0xf7)](_0x213565=>!!_0x213565),'requestMethod':(_0x85f971=='del'?_0x3e1cfc(0x100):_0x85f971)[_0x3e1cfc(0x101)]()})(_0x1e7f8e,_0x120d6c,_0x570374);};}exports[a4_0x53c5b9(0xf1)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0xec2658=a5_0x1664;(function(_0x4a39ca,_0x3eae2e){const _0x2eb2c9=a5_0x1664,_0x1c91f9=_0x4a39ca();while(!![]){try{const _0x93d05d=parseInt(_0x2eb2c9(0x1ca))/0x1*(parseInt(_0x2eb2c9(0x1c6))/0x2)+parseInt(_0x2eb2c9(0x1c7))/0x3*(-parseInt(_0x2eb2c9(0x1cb))/0x4)+parseInt(_0x2eb2c9(0x1c4))/0x5+parseInt(_0x2eb2c9(0x1c1))/0x6+parseInt(_0x2eb2c9(0x1cc))/0x7+parseInt(_0x2eb2c9(0x1b8))/0x8+-parseInt(_0x2eb2c9(0x1bd))/0x9;if(_0x93d05d===_0x3eae2e)break;else _0x1c91f9['push'](_0x1c91f9['shift']());}catch(_0x1d4cc6){_0x1c91f9['push'](_0x1c91f9['shift']());}}}(a5_0x313c,0x7b979));Object[a5_0xec2658(0x1ba)](exports,'__esModule',{'value':!![]}),exports[a5_0xec2658(0x1b9)]=void 0x0;function a5_0x313c(){const _0x4da7b2=['5184080JjHmjI','Apitest','defineProperty','apidoc','REQUEST_OBJ_CTX_KEY','9241371kBjzGs','filepath','get','/apitest','5425692PnPvov','ApitestService','getAsync','93855VopDGx','../service/ApitestService','89616JEogCZ','3oThszQ','MidwayEnvironmentService','getConfig','8OrakOE','2602116EkJjrX','1778378UWNhDT','RequestMapping','getApplicationContext'];a5_0x313c=function(){return _0x4da7b2;};return a5_0x313c();}const core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0xec2658(0x1c5));function Apitest(_0x8b19a=a5_0xec2658(0x1c0),_0x43aa22){return(_0x3d110a,_0x491c69,_0x1c4d34)=>{const _0x461a77=a5_0x1664;return(0x0,core_1[_0x461a77(0x1b6)])({'path':_0x8b19a,'requestMethod':_0x461a77(0x1bf)})(_0x3d110a,_0x491c69,_0x1c4d34),_0x1c4d34['value']=async function(..._0x2cbe48){const _0x112e1b=_0x461a77;var _0x28a65e;const _0x38b4d0=(_0x28a65e=this[core_1[_0x112e1b(0x1bc)]])===null||_0x28a65e===void 0x0?void 0x0:_0x28a65e['app'];if(_0x38b4d0&&_0x38b4d0[_0x112e1b(0x1c9)]('apitest')){const _0x640d80=await _0x38b4d0[_0x112e1b(0x1b7)]()[_0x112e1b(0x1c3)](ApitestService_1[_0x112e1b(0x1c2)]),_0x3013d6=await _0x38b4d0[_0x112e1b(0x1b7)]()['getAsync'](core_1[_0x112e1b(0x1c8)]);return _0x3013d6['isDevelopmentEnvironment']()&&(_0x43aa22[_0x112e1b(0x1be)]=!![]),await _0x640d80[_0x112e1b(0x1bb)](_0x43aa22);}return'';},_0x1c4d34;};}function a5_0x1664(_0x316c35,_0x1bbe67){const _0x313cbb=a5_0x313c();return a5_0x1664=function(_0x166467,_0x5a84fb){_0x166467=_0x166467-0x1b6;let _0x56b06b=_0x313cbb[_0x166467];return _0x56b06b;},a5_0x1664(_0x316c35,_0x1bbe67);}exports[a5_0xec2658(0x1b9)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x395e(_0x5433a4,_0x501251){var _0x57ee96=a6_0x57ee();return a6_0x395e=function(_0x395e15,_0x4dc4e4){_0x395e15=_0x395e15-0xf9;var _0x26a508=_0x57ee96[_0x395e15];return _0x26a508;},a6_0x395e(_0x5433a4,_0x501251);}var a6_0x2fda91=a6_0x395e;(function(_0x2758f7,_0x33f19a){var _0x23efe3=a6_0x395e,_0x18fba6=_0x2758f7();while(!![]){try{var _0x371eb3=-parseInt(_0x23efe3(0x106))/0x1+-parseInt(_0x23efe3(0x10a))/0x2*(parseInt(_0x23efe3(0x102))/0x3)+parseInt(_0x23efe3(0x113))/0x4+parseInt(_0x23efe3(0x101))/0x5+parseInt(_0x23efe3(0x103))/0x6*(parseInt(_0x23efe3(0xfa))/0x7)+-parseInt(_0x23efe3(0xfd))/0x8+-parseInt(_0x23efe3(0x112))/0x9*(-parseInt(_0x23efe3(0x10b))/0xa);if(_0x371eb3===_0x33f19a)break;else _0x18fba6['push'](_0x18fba6['shift']());}catch(_0x2f9261){_0x18fba6['push'](_0x18fba6['shift']());}}}(a6_0x57ee,0xad450));function a6_0x57ee(){var _0x385152=['__decorate','HEADERS_CHECKCODE','TIMEOUT','45fEywMC','890960bCbvQr','HEADERS_LACK','design:type','length','HEADERS_DEVICE','7dKLXoR','metadata','__esModule','4928320fyLuGH','defineProperty','decorate','请求头信息不完整','4379345amIZio','1953crtXDb','1612686QusdiR','object','TIMEOUT_LOGINTIME','390269ndZtHR','signature验证失败','请使用正确的设备','请求超时,请重试','3768NCkezQ','3150230dcKZxk','ApiError','getOwnPropertyDescriptor','HEADERS_SIGNATURE'];a6_0x57ee=function(){return _0x385152;};return a6_0x57ee();}var __decorate=this&&this[a6_0x2fda91(0x10f)]||function(_0x38af62,_0x3f8e96,_0x10db4b,_0x51fa59){var _0x1971c0=a6_0x2fda91,_0x21c961=arguments[_0x1971c0(0x116)],_0x3b08fe=_0x21c961<0x3?_0x3f8e96:_0x51fa59===null?_0x51fa59=Object[_0x1971c0(0x10d)](_0x3f8e96,_0x10db4b):_0x51fa59,_0x255969;if(typeof Reflect===_0x1971c0(0x104)&&typeof Reflect['decorate']==='function')_0x3b08fe=Reflect[_0x1971c0(0xff)](_0x38af62,_0x3f8e96,_0x10db4b,_0x51fa59);else{for(var _0xabc17c=_0x38af62[_0x1971c0(0x116)]-0x1;_0xabc17c>=0x0;_0xabc17c--)if(_0x255969=_0x38af62[_0xabc17c])_0x3b08fe=(_0x21c961<0x3?_0x255969(_0x3b08fe):_0x21c961>0x3?_0x255969(_0x3f8e96,_0x10db4b,_0x3b08fe):_0x255969(_0x3f8e96,_0x10db4b))||_0x3b08fe;}return _0x21c961>0x3&&_0x3b08fe&&Object[_0x1971c0(0xfe)](_0x3f8e96,_0x10db4b,_0x3b08fe),_0x3b08fe;},__metadata=this&&this['__metadata']||function(_0xc9e2e8,_0x544382){var _0x52e6d0=a6_0x2fda91;if(typeof Reflect===_0x52e6d0(0x104)&&typeof Reflect[_0x52e6d0(0xfb)]==='function')return Reflect[_0x52e6d0(0xfb)](_0xc9e2e8,_0x544382);};Object['defineProperty'](exports,a6_0x2fda91(0xfc),{'value':!![]}),exports[a6_0x2fda91(0x10c)]=void 0x0;class ApiError{}ApiError[a6_0x2fda91(0x111)]=0x3d7e31,ApiError[a6_0x2fda91(0x114)]=0x3d7e32,ApiError[a6_0x2fda91(0xf9)]=0x3d7e33,ApiError[a6_0x2fda91(0x10e)]=0x3d7e34,ApiError[a6_0x2fda91(0x110)]=0x3d7e35,ApiError[a6_0x2fda91(0x105)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x2fda91(0x109)),__metadata(a6_0x2fda91(0x115),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x2fda91(0x100)),__metadata(a6_0x2fda91(0x115),Object)],ApiError,a6_0x2fda91(0x114),void 0x0),__decorate([AnnErrorMsg(a6_0x2fda91(0x108)),__metadata(a6_0x2fda91(0x115),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x2fda91(0x107)),__metadata(a6_0x2fda91(0x115),Object)],ApiError,a6_0x2fda91(0x10e),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,a6_0x2fda91(0x110),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata('design:type',Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports[a6_0x2fda91(0x10c)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a7_0xb3b6(){const _0x1b512b=['298124joKTAN','4FYtXPI','98960DiOqeX','5038425AibUzZ','942129SGjkse','1364772zlNPWW','__esModule','823284HeajpN','defineProperty','251NUUUFk','@midwayjs/core','getClassMetadata','get','APPSCONFIG_KEY','getAppsConfig','5xlbnWx','../types/action'];a7_0xb3b6=function(){return _0x1b512b;};return a7_0xb3b6();}function a7_0x5bc6(_0x152037,_0x202c34){const _0xb3b6b3=a7_0xb3b6();return a7_0x5bc6=function(_0x5bc664,_0x6a4c8f){_0x5bc664=_0x5bc664-0x121;let _0x2090b2=_0xb3b6b3[_0x5bc664];return _0x2090b2;},a7_0x5bc6(_0x152037,_0x202c34);}const a7_0xb86a37=a7_0x5bc6;(function(_0x36190b,_0x350258){const _0x2c3801=a7_0x5bc6,_0x5e5fd2=_0x36190b();while(!![]){try{const _0x52b1a5=parseInt(_0x2c3801(0x12c))/0x1*(parseInt(_0x2c3801(0x124))/0x2)+-parseInt(_0x2c3801(0x127))/0x3+parseInt(_0x2c3801(0x123))/0x4+-parseInt(_0x2c3801(0x121))/0x5*(parseInt(_0x2c3801(0x128))/0x6)+parseInt(_0x2c3801(0x12a))/0x7+-parseInt(_0x2c3801(0x125))/0x8+parseInt(_0x2c3801(0x126))/0x9;if(_0x52b1a5===_0x350258)break;else _0x5e5fd2['push'](_0x5e5fd2['shift']());}catch(_0x4e60f9){_0x5e5fd2['push'](_0x5e5fd2['shift']());}}}(a7_0xb3b6,0x307c3));Object[a7_0xb86a37(0x12b)](exports,a7_0xb86a37(0x129),{'value':!![]}),exports[a7_0xb86a37(0x131)]=void 0x0;const core_1=require(a7_0xb86a37(0x12d)),action_1=require(a7_0xb86a37(0x122));function getAppsConfig(_0x5748bc){const _0x55164a=a7_0xb86a37,_0x326b29=(0x0,core_1[_0x55164a(0x12e)])(action_1[_0x55164a(0x130)],action_1['AppsConfigTmp'])||{};return _0x5748bc?lodash[_0x55164a(0x12f)](_0x326b29,_0x5748bc):_0x326b29;}exports[a7_0xb86a37(0x131)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x4d4f52=a8_0xde1f;(function(_0x16b10e,_0x5dc1c4){const _0x1d26ba=a8_0xde1f,_0x167b09=_0x16b10e();while(!![]){try{const _0x4bac26=parseInt(_0x1d26ba(0x1fd))/0x1*(parseInt(_0x1d26ba(0x1c5))/0x2)+parseInt(_0x1d26ba(0x1cf))/0x3*(parseInt(_0x1d26ba(0x1b8))/0x4)+-parseInt(_0x1d26ba(0x1a8))/0x5*(-parseInt(_0x1d26ba(0x1cd))/0x6)+-parseInt(_0x1d26ba(0x1b1))/0x7+parseInt(_0x1d26ba(0x1e9))/0x8+parseInt(_0x1d26ba(0x1e1))/0x9*(-parseInt(_0x1d26ba(0x1ea))/0xa)+parseInt(_0x1d26ba(0x1a7))/0xb*(-parseInt(_0x1d26ba(0x1fb))/0xc);if(_0x4bac26===_0x5dc1c4)break;else _0x167b09['push'](_0x167b09['shift']());}catch(_0x59a4fd){_0x167b09['push'](_0x167b09['shift']());}}}(a8_0x2396,0xc5562));function a8_0x2396(){const _0x39acd9=['routerName','212cehHCx','defineProperty','describe','max','allow','rules','String','string','pprefix','description','key','min','flags.presence','2774844jnGIRV','find','args','RouteParamTypes','metadata','number','isArray','title','3180882ehWakK','indexOf','26178WpThyY','path','startsWith','query','log','INJECT_CUSTOM_PARAM','Object','push','length','concat','ACTION_KEY','getRoutes','limit','request','test','HEADERS','-array','文件上传-','531LmRNNi','getClassMetadata','object','method','intercept','flags.default','parameterIndex','ACTION_ROUTE_KEY','8710304FkQKoj','6470uYpVWI','File','boolean','name','header','type','/static/apitest','../types/action','Boolean','flags.label','summary','static/apitest','flags.description','module','@midwayjs/core','propertyData','join','180ETDurq','children','1CgilAQ','RULES_KEY','只允许:[','prefix','getMethodParamTypes','array','@anncic-api/validator','filepath','Number','routes','default','1683473TCKNYL','10HNukpC','replace','FIELDS','iterator','__esModule','body','items','route','routerOptions','5998118yOssNO','QUERY','filter','get','file','tagName'];a8_0x2396=function(){return _0x39acd9;};return a8_0x2396();}Object[a8_0x4d4f52(0x1b9)](exports,a8_0x4d4f52(0x1ac),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0xde1f(_0x4ec3f6,_0x44b86f){const _0x239663=a8_0x2396();return a8_0xde1f=function(_0xde1f34,_0x2a94fb){_0xde1f34=_0xde1f34-0x1a4;let _0x27d865=_0x239663[_0xde1f34];return _0x27d865;},a8_0xde1f(_0x4ec3f6,_0x44b86f);}const lodash_1=require('lodash'),validator_1=require(a8_0x4d4f52(0x203)),core_1=require(a8_0x4d4f52(0x1f8)),core_2=require('@midwayjs/core'),core_3=require(a8_0x4d4f52(0x1f8)),action_1=require(a8_0x4d4f52(0x1f1));function getRoutes(_0x653264={'prefix':'/','module':![]}){const _0x9830e1=a8_0x4d4f52;var _0x4c294e,_0x495167;const _0x1e2027=(0x0,core_3['listModule'])(action_1[_0x9830e1(0x1d9)]),_0x4f4260={},_0x1c541e=Array[_0x9830e1(0x1cb)](_0x653264[_0x9830e1(0x1b3)]||[])?_0x653264[_0x9830e1(0x1b3)]||[]:[_0x653264[_0x9830e1(0x1b3)]];_0xe5740f:for(const _0x5d284d of _0x1e2027){let _0x3af0a0=(0x0,core_3['getClassMetadata'])(action_1['ACTION_KEY'],_0x5d284d),_0x562c94=(0x0,core_3[_0x9830e1(0x1e2)])(action_1[_0x9830e1(0x1e8)],_0x5d284d);if(_0x3af0a0&&_0x562c94){let _0x1edeff=_0x3af0a0[_0x9830e1(0x200)],_0x4d10d2={};if(_0x653264[_0x9830e1(0x1f7)]&&(0x0,lodash_1[_0x9830e1(0x1b4)])(_0x3af0a0,_0x9830e1(0x1f7),![])!=_0x653264[_0x9830e1(0x1f7)])continue _0xe5740f;else{if(_0x653264[_0x9830e1(0x1f7)]===![]&&!!(0x0,lodash_1[_0x9830e1(0x1b4)])(_0x3af0a0,_0x9830e1(0x1f7),null))continue _0xe5740f;}if(_0x653264[_0x9830e1(0x200)]&&!_0x1edeff[_0x9830e1(0x1d1)](_0x653264[_0x9830e1(0x200)]))continue _0xe5740f;_0x1edeff!=='/'?(_0x4d10d2[_0x9830e1(0x1f4)]=(_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0[_0x9830e1(0x1b0)][_0x9830e1(0x1b6)])||(/^\//[_0x9830e1(0x1dd)](_0x1edeff)?_0x1edeff['split']('/')[0x1]:_0x1edeff),_0x4d10d2[_0x9830e1(0x1c1)]=(_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0[_0x9830e1(0x1b0)][_0x9830e1(0x1c1)])||_0x4d10d2['summary'],_0x4d10d2[_0x9830e1(0x1a5)]=[]):(_0x4d10d2[_0x9830e1(0x1f4)]=(_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0[_0x9830e1(0x1b0)][_0x9830e1(0x1b6)])||_0x9830e1(0x1a6),_0x4d10d2[_0x9830e1(0x1c1)]=(_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0[_0x9830e1(0x1b0)]['description'])||'',_0x4d10d2[_0x9830e1(0x1a5)]=[]);_0x653264[_0x9830e1(0x204)]&&(_0x4d10d2[_0x9830e1(0x204)]=_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0['filepath']);(_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0[_0x9830e1(0x1c0)])&&(_0x4d10d2[_0x9830e1(0x200)]=_0x3af0a0[_0x9830e1(0x1c0)]);(_0x3af0a0===null||_0x3af0a0===void 0x0?void 0x0:_0x3af0a0['module'])&&(_0x4d10d2[_0x9830e1(0x1f7)]=_0x3af0a0[_0x9830e1(0x1f7)]);let _0xa29545=(0x0,core_3[_0x9830e1(0x1e2)])(core_2[_0x9830e1(0x1d4)],_0x5d284d)||{};if(typeof _0x562c94[Symbol[_0x9830e1(0x1ab)]]==='function')for(let _0x34dbd0 of _0x562c94){if((_0x653264===null||_0x653264===void 0x0?void 0x0:_0x653264[_0x9830e1(0x1e5)])&&!(_0x34dbd0===null||_0x34dbd0===void 0x0?void 0x0:_0x34dbd0[_0x9830e1(0x1e5)]))continue;let _0x5aee84={};_0x5aee84['method']=_0x34dbd0['requestMethod'],_0x5aee84[_0x9830e1(0x1af)]=(_0x1edeff+_0x34dbd0[_0x9830e1(0x1d0)])[_0x9830e1(0x1a9)](/\/{1,}/,'/'),_0x5aee84[_0x9830e1(0x1f4)]=(_0x34dbd0===null||_0x34dbd0===void 0x0?void 0x0:_0x34dbd0[_0x9830e1(0x1b7)])||_0x4d10d2['summary']||_0x9830e1(0x1a6),_0x5aee84[_0x9830e1(0x1c1)]=(_0x34dbd0===null||_0x34dbd0===void 0x0?void 0x0:_0x34dbd0[_0x9830e1(0x1c1)])||'',_0x5aee84[_0x9830e1(0x1dc)]=[];if(!(0x0,lodash_1[_0x9830e1(0x1d1)])(_0x5aee84[_0x9830e1(0x1af)],_0x9830e1(0x1f5))&&!(0x0,lodash_1[_0x9830e1(0x1d1)])(_0x5aee84['route'],_0x9830e1(0x1f0))&&_0x1c541e['indexOf'](_0x5aee84['route'])===-0x1){if(!(_0x653264===null||_0x653264===void 0x0?void 0x0:_0x653264['noreq'])){let _0x31eb65=(0x0,core_3[_0x9830e1(0x201)])(new _0x5d284d(),_0x34dbd0[_0x9830e1(0x1e4)]);for(const _0x4bb2df in _0x31eb65){let _0x138ef1=(_0x4c294e=_0xa29545[_0x34dbd0[_0x9830e1(0x1e4)]])===null||_0x4c294e===void 0x0?void 0x0:_0x4c294e[_0x9830e1(0x1c6)](_0x4c9544=>_0x4c9544['parameterIndex']==_0x4bb2df&&_0x4c9544[_0x9830e1(0x1c2)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x4c9544===null||_0x4c9544===void 0x0?void 0x0:_0x4c9544[_0x9830e1(0x1c9)]));if(_0x138ef1===null||_0x138ef1===void 0x0?void 0x0:_0x138ef1[_0x9830e1(0x1c9)]){let _0x3d4bef=convertTypeToString(_0x138ef1['metadata'][_0x9830e1(0x1ef)]||0x0);if([_0x9830e1(0x1d2),'body'][_0x9830e1(0x1ce)](_0x3d4bef)!=-0x1&&_0x138ef1[_0x9830e1(0x1c9)][_0x9830e1(0x1f9)][_0x9830e1(0x1ce)](':')==-0x1&&!_0x5aee84['request'][_0x9830e1(0x1c6)](_0x43a90d=>_0x43a90d[_0x9830e1(0x1c2)]==_0x138ef1[_0x9830e1(0x1c9)][_0x9830e1(0x1f9)]))_0x5aee84[_0x9830e1(0x1dc)][_0x9830e1(0x1d6)]({'key':_0x138ef1[_0x9830e1(0x1c9)][_0x9830e1(0x1f9)],'title':_0x138ef1[_0x9830e1(0x1c9)]['propertyData'],'type':convertSchemaType(_0x31eb65[_0x138ef1[_0x9830e1(0x1e7)]][_0x9830e1(0x1ed)]),'required':![],'default':'','desc':''});else{if(_0x3d4bef==_0x9830e1(0x1b5)){let _0x3ae4ef=((_0x495167=_0x138ef1===null||_0x138ef1===void 0x0?void 0x0:_0x138ef1[_0x9830e1(0x1c9)])===null||_0x495167===void 0x0?void 0x0:_0x495167[_0x9830e1(0x1f9)])||_0x9830e1(0x1b5);_0x3ae4ef[_0x9830e1(0x1ce)](':')==-0x1&&!_0x5aee84[_0x9830e1(0x1dc)]['find'](_0x361a57=>_0x361a57[_0x9830e1(0x1c2)]==_0x3ae4ef&&_0x361a57['type']==_0x9830e1(0x1b5))&&_0x5aee84[_0x9830e1(0x1dc)][_0x9830e1(0x1d6)]({'key':_0x3ae4ef,'title':_0x9830e1(0x1e0)+_0x3ae4ef,'type':_0x9830e1(0x1b5),'required':!![],'default':'','desc':''});}}}else{const _0x18704c=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x9830e1(0x1fe)],_0x31eb65[_0x4bb2df]);_0x18704c&&_0x5aee84['request']['push'](...getJoiRequest(_0x18704c));}}}_0x4d10d2['routes']['push'](_0x5aee84);}}if(_0x4d10d2[_0x9830e1(0x1a5)][_0x9830e1(0x1d7)]>0x0){let _0x51a6b6=_0x4f4260[_0x1edeff];_0x51a6b6?(_0x51a6b6[_0x9830e1(0x1f4)]!=_0x4d10d2[_0x9830e1(0x1f4)]&&(_0x51a6b6[_0x9830e1(0x1f4)]=_0x51a6b6[_0x9830e1(0x1f4)]+','+_0x4d10d2[_0x9830e1(0x1f4)]),_0x51a6b6[_0x9830e1(0x1c1)]!=_0x4d10d2[_0x9830e1(0x1c1)]&&(_0x51a6b6[_0x9830e1(0x1c1)]=_0x51a6b6[_0x9830e1(0x1c1)]+','+_0x4d10d2[_0x9830e1(0x1c1)]),_0x51a6b6[_0x9830e1(0x1a5)]=_0x51a6b6[_0x9830e1(0x1a5)][_0x9830e1(0x1d8)](_0x4d10d2[_0x9830e1(0x1a5)]),_0x4f4260[_0x1edeff]=_0x51a6b6):_0x4f4260[_0x1edeff]=_0x4d10d2;}}}return _0x4f4260;}exports[a8_0x4d4f52(0x1da)]=getRoutes;function getJoiRequest(_0x48693d){const _0x58989a=a8_0x4d4f52,_0x38fb38=[];for(let _0x21ddc9 in _0x48693d){const _0x2004de={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2cdf14=typeof _0x48693d[_0x21ddc9]['describe']=='function'?_0x48693d[_0x21ddc9][_0x58989a(0x1ba)]():_0x48693d[_0x21ddc9];_0x2004de[_0x58989a(0x1c2)]=_0x21ddc9,_0x2004de[_0x58989a(0x1ef)]=_0x2cdf14[_0x58989a(0x1ef)],_0x2004de[_0x58989a(0x1cc)]=(0x0,lodash_1[_0x58989a(0x1b4)])(_0x2cdf14,_0x58989a(0x1f3),_0x21ddc9),_0x2004de[_0x58989a(0x1a6)]=(0x0,lodash_1[_0x58989a(0x1b4)])(_0x2cdf14,_0x58989a(0x1e6),''),_0x2004de['required']=(0x0,lodash_1[_0x58989a(0x1b4)])(_0x2cdf14,_0x58989a(0x1c4),'')=='required',_0x2004de[_0x58989a(0x1c1)]=(0x0,lodash_1[_0x58989a(0x1b4)])(_0x2cdf14,_0x58989a(0x1f6),'');if(_0x2cdf14[_0x58989a(0x1ef)]==_0x58989a(0x1e3))_0x2004de[_0x58989a(0x1fc)]=getJoiRequest(_0x2cdf14['keys']);else _0x2cdf14['type']==_0x58989a(0x202)&&_0x2cdf14[_0x58989a(0x1ae)]&&Array['isArray'](_0x2cdf14[_0x58989a(0x1ae)])&&_0x2cdf14[_0x58989a(0x1ae)][0x0]&&console[_0x58989a(0x1d3)](_0x21ddc9+_0x58989a(0x1df),_0x2cdf14);_0x2cdf14[_0x58989a(0x1bc)]&&Array['isArray'](_0x2cdf14[_0x58989a(0x1bc)])&&_0x2cdf14[_0x58989a(0x1bc)]['length']>0x0&&(_0x2004de[_0x58989a(0x1c1)]=_0x58989a(0x1ff)+_0x2cdf14[_0x58989a(0x1bc)][_0x58989a(0x1fa)](',')+'];'+_0x2004de['description']);if(_0x2004de[_0x58989a(0x1c2)]&&_0x2004de['type']){const _0x1f27a3={};for(const _0x5d42f5 of _0x2cdf14[_0x58989a(0x1bd)]||[]){if(_0x5d42f5[_0x58989a(0x1ed)]==='min'&&_0x5d42f5['args'])_0x1f27a3[_0x58989a(0x1c3)]=_0x5d42f5[_0x58989a(0x1c7)][_0x58989a(0x1db)];else _0x5d42f5[_0x58989a(0x1ed)]===_0x58989a(0x1bb)&&(_0x1f27a3[_0x58989a(0x1bb)]=_0x5d42f5[_0x58989a(0x1c7)][_0x58989a(0x1db)]);}_0x2004de[_0x58989a(0x1bd)]=_0x1f27a3;}_0x2004de['key']&&_0x2004de[_0x58989a(0x1cc)]&&_0x38fb38[_0x58989a(0x1d6)](_0x2004de);}return _0x38fb38;}function convertSchemaType(_0x3290d1){const _0x299eef=a8_0x4d4f52;switch(_0x3290d1){case _0x299eef(0x1d5):return'object';case _0x299eef(0x1f2):return _0x299eef(0x1ec);case _0x299eef(0x1a4):return _0x299eef(0x1ca);case _0x299eef(0x1be):return _0x299eef(0x1bf);case _0x299eef(0x1eb):return _0x299eef(0x1b5);default:return _0x299eef(0x1bf);}}function convertTypeToString(_0x5106a3){const _0x3b870b=a8_0x4d4f52;switch(_0x5106a3){case core_1[_0x3b870b(0x1c8)][_0x3b870b(0x1de)]:return _0x3b870b(0x1ee);case core_1[_0x3b870b(0x1c8)][_0x3b870b(0x1b2)]:return'query';case core_1['RouteParamTypes']['PARAM']:return'path';case core_1[_0x3b870b(0x1c8)]['BODY']:return _0x3b870b(0x1ad);case core_1[_0x3b870b(0x1c8)][_0x3b870b(0x1aa)]:case core_1[_0x3b870b(0x1c8)]['FILESSTREAM']:case core_1[_0x3b870b(0x1c8)]['FILESTREAM']:return _0x3b870b(0x1b5);default:return'header';}}
|
|
1
|
+
'use strict';const a8_0x2e52a4=a8_0x178b;(function(_0x18bd1c,_0x45cc0f){const _0x15db6e=a8_0x178b,_0x40942a=_0x18bd1c();while(!![]){try{const _0x15ec4c=parseInt(_0x15db6e(0xd7))/0x1*(parseInt(_0x15db6e(0x9b))/0x2)+-parseInt(_0x15db6e(0x82))/0x3*(parseInt(_0x15db6e(0xb7))/0x4)+-parseInt(_0x15db6e(0xc5))/0x5*(parseInt(_0x15db6e(0xbb))/0x6)+-parseInt(_0x15db6e(0x92))/0x7+-parseInt(_0x15db6e(0x84))/0x8+parseInt(_0x15db6e(0xca))/0x9*(parseInt(_0x15db6e(0xb2))/0xa)+parseInt(_0x15db6e(0xb1))/0xb*(parseInt(_0x15db6e(0xb9))/0xc);if(_0x15ec4c===_0x45cc0f)break;else _0x40942a['push'](_0x40942a['shift']());}catch(_0x4d7824){_0x40942a['push'](_0x40942a['shift']());}}}(a8_0x3485,0x931cb));Object['defineProperty'](exports,a8_0x2e52a4(0xc3),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x3485(){const _0x331766=['BODY','144qEKNqA','RouteParamTypes','module','items','-array','name','allow','limit','header','args','max','/static/apitest','requestMethod','143203TnLJSH','required','WEB_ROUTER_PARAM_KEY','routerOptions','number','type','FILESTREAM','string','filepath','FIELDS','default','prefix','1929SGjDwL','flags.default','9118016xzoelx','boolean','File','lodash','request','getClassExtendedMetadata','HEADERS','query','object','log','getRoutes','filter','indexOf','ACTION_ROUTE_KEY','5486341CpehvX','route','length','summary','function','method','rules','metadata','describe','12xJTsFl','flags.description','flags.presence','INJECT_CUSTOM_PARAM','title','listModule','description','Object','tagName','replace','ACTION_KEY','RULES_KEY','noreq','getClassMetadata','propertyData','只允许:[','routes','static/apitest','min','body','startsWith','文件上传-','32095393dqLUAU','88940qahCkG','FILESSTREAM','@anncic-api/validator','pprefix','push','5932euANKt','getMethodParamTypes','12rssLpk','file','60qLdGTX','isArray','parameterIndex','key','intercept','routerName','find','get','__esModule','children','219815VtDsor','@midwayjs/core','flags.label','array'];a8_0x3485=function(){return _0x331766;};return a8_0x3485();}const lodash_1=require(a8_0x2e52a4(0x87)),validator_1=require(a8_0x2e52a4(0xb4)),core_1=require(a8_0x2e52a4(0xc6)),core_2=require(a8_0x2e52a4(0xc6)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x5c6d8f={'prefix':'/','module':![]}){const _0x1c37b2=a8_0x2e52a4;var _0xf9be9d,_0x5cdc1d;const _0x29b266=(0x0,core_3[_0x1c37b2(0xa0)])(action_1[_0x1c37b2(0xa5)]),_0x418ed3={},_0x3aa8bd=Array['isArray'](_0x5c6d8f[_0x1c37b2(0x8f)]||[])?_0x5c6d8f[_0x1c37b2(0x8f)]||[]:[_0x5c6d8f[_0x1c37b2(0x8f)]];_0x5065e4:for(const _0x369707 of _0x29b266){let _0x37b619=(0x0,core_3[_0x1c37b2(0xa8)])(action_1[_0x1c37b2(0xa5)],_0x369707),_0x3c0759=(0x0,core_3['getClassMetadata'])(action_1[_0x1c37b2(0x91)],_0x369707);if(_0x37b619&&_0x3c0759){let _0x1af969=_0x37b619[_0x1c37b2(0x81)],_0x187253={};if(_0x5c6d8f[_0x1c37b2(0xcc)]&&(0x0,lodash_1[_0x1c37b2(0xc2)])(_0x37b619,_0x1c37b2(0xcc),![])!=_0x5c6d8f[_0x1c37b2(0xcc)])continue _0x5065e4;else{if(_0x5c6d8f['module']===![]&&!!(0x0,lodash_1['get'])(_0x37b619,_0x1c37b2(0xcc),null))continue _0x5065e4;}if(_0x5c6d8f['prefix']&&!_0x1af969[_0x1c37b2(0xaf)](_0x5c6d8f[_0x1c37b2(0x81)]))continue _0x5065e4;_0x1af969!=='/'?(_0x187253[_0x1c37b2(0x95)]=(_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619[_0x1c37b2(0xda)][_0x1c37b2(0xa3)])||(/^\//['test'](_0x1af969)?_0x1af969['split']('/')[0x1]:_0x1af969),_0x187253[_0x1c37b2(0xa1)]=(_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619[_0x1c37b2(0xda)]['description'])||_0x187253['summary'],_0x187253[_0x1c37b2(0xab)]=[]):(_0x187253['summary']=(_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619['routerOptions'][_0x1c37b2(0xa3)])||_0x1c37b2(0x80),_0x187253['description']=(_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619[_0x1c37b2(0xda)][_0x1c37b2(0xa1)])||'',_0x187253[_0x1c37b2(0xab)]=[]);_0x5c6d8f['filepath']&&(_0x187253[_0x1c37b2(0xdf)]=_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619['filepath']);(_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619[_0x1c37b2(0xb5)])&&(_0x187253[_0x1c37b2(0x81)]=_0x37b619['pprefix']);(_0x37b619===null||_0x37b619===void 0x0?void 0x0:_0x37b619[_0x1c37b2(0xcc)])&&(_0x187253[_0x1c37b2(0xcc)]=_0x37b619['module']);let _0x6d014=(0x0,core_3[_0x1c37b2(0xa8)])(core_2[_0x1c37b2(0x9e)],_0x369707)||{};if(typeof _0x3c0759[Symbol['iterator']]===_0x1c37b2(0x96))for(let _0x1c184f of _0x3c0759){if((_0x5c6d8f===null||_0x5c6d8f===void 0x0?void 0x0:_0x5c6d8f[_0x1c37b2(0xbf)])&&!(_0x1c184f===null||_0x1c184f===void 0x0?void 0x0:_0x1c184f[_0x1c37b2(0xbf)]))continue;let _0xc4fc13={};_0xc4fc13[_0x1c37b2(0x97)]=_0x1c184f[_0x1c37b2(0xd6)],_0xc4fc13[_0x1c37b2(0x93)]=(_0x1af969+_0x1c184f['path'])[_0x1c37b2(0xa4)](/\/{1,}/,'/'),_0xc4fc13[_0x1c37b2(0x95)]=(_0x1c184f===null||_0x1c184f===void 0x0?void 0x0:_0x1c184f[_0x1c37b2(0xc0)])||_0x187253[_0x1c37b2(0x95)]||_0x1c37b2(0x80),_0xc4fc13[_0x1c37b2(0xa1)]=(_0x1c184f===null||_0x1c184f===void 0x0?void 0x0:_0x1c184f[_0x1c37b2(0xa1)])||'',_0xc4fc13[_0x1c37b2(0x88)]=[];if(!(0x0,lodash_1[_0x1c37b2(0xaf)])(_0xc4fc13['route'],_0x1c37b2(0xac))&&!(0x0,lodash_1[_0x1c37b2(0xaf)])(_0xc4fc13[_0x1c37b2(0x93)],_0x1c37b2(0xd5))&&_0x3aa8bd['indexOf'](_0xc4fc13[_0x1c37b2(0x93)])===-0x1){if(!(_0x5c6d8f===null||_0x5c6d8f===void 0x0?void 0x0:_0x5c6d8f[_0x1c37b2(0xa7)])){let _0x29334d=(0x0,core_3[_0x1c37b2(0xb8)])(new _0x369707(),_0x1c184f[_0x1c37b2(0x97)]);for(const _0x3a8732 in _0x29334d){let _0xc9193a=(_0xf9be9d=_0x6d014[_0x1c184f[_0x1c37b2(0x97)]])===null||_0xf9be9d===void 0x0?void 0x0:_0xf9be9d[_0x1c37b2(0xc1)](_0x4e4b9a=>_0x4e4b9a[_0x1c37b2(0xbd)]==_0x3a8732&&_0x4e4b9a[_0x1c37b2(0xbe)]===core_2[_0x1c37b2(0xd9)]&&(_0x4e4b9a===null||_0x4e4b9a===void 0x0?void 0x0:_0x4e4b9a[_0x1c37b2(0x99)]));if(_0xc9193a===null||_0xc9193a===void 0x0?void 0x0:_0xc9193a[_0x1c37b2(0x99)]){let _0x150719=convertTypeToString(_0xc9193a[_0x1c37b2(0x99)]['type']||0x0);if([_0x1c37b2(0x8b),_0x1c37b2(0xae)][_0x1c37b2(0x90)](_0x150719)!=-0x1&&_0xc9193a['metadata']['propertyData'][_0x1c37b2(0x90)](':')==-0x1&&!_0xc4fc13['request'][_0x1c37b2(0xc1)](_0x664a6=>_0x664a6[_0x1c37b2(0xbe)]==_0xc9193a[_0x1c37b2(0x99)]['propertyData']))_0xc4fc13[_0x1c37b2(0x88)][_0x1c37b2(0xb6)]({'key':_0xc9193a['metadata']['propertyData'],'title':_0xc9193a[_0x1c37b2(0x99)]['propertyData'],'type':convertSchemaType(_0x29334d[_0xc9193a[_0x1c37b2(0xbd)]][_0x1c37b2(0xcf)]),'required':![],'default':'','desc':''});else{if(_0x150719=='file'){let _0x1bf154=((_0x5cdc1d=_0xc9193a===null||_0xc9193a===void 0x0?void 0x0:_0xc9193a[_0x1c37b2(0x99)])===null||_0x5cdc1d===void 0x0?void 0x0:_0x5cdc1d[_0x1c37b2(0xa9)])||_0x1c37b2(0xba);_0x1bf154[_0x1c37b2(0x90)](':')==-0x1&&!_0xc4fc13[_0x1c37b2(0x88)]['find'](_0x17ba21=>_0x17ba21[_0x1c37b2(0xbe)]==_0x1bf154&&_0x17ba21['type']==_0x1c37b2(0xba))&&_0xc4fc13[_0x1c37b2(0x88)][_0x1c37b2(0xb6)]({'key':_0x1bf154,'title':_0x1c37b2(0xb0)+_0x1bf154,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x36a041=(0x0,core_3[_0x1c37b2(0x89)])(validator_1[_0x1c37b2(0xa6)],_0x29334d[_0x3a8732]);_0x36a041&&_0xc4fc13[_0x1c37b2(0x88)]['push'](...getJoiRequest(_0x36a041));}}}_0x187253['routes']['push'](_0xc4fc13);}}if(_0x187253['routes'][_0x1c37b2(0x94)]>0x0){let _0x2168da=_0x418ed3[_0x1af969];_0x2168da?(_0x2168da[_0x1c37b2(0x95)]!=_0x187253[_0x1c37b2(0x95)]&&(_0x2168da[_0x1c37b2(0x95)]=_0x2168da['summary']+','+_0x187253[_0x1c37b2(0x95)]),_0x2168da[_0x1c37b2(0xa1)]!=_0x187253['description']&&(_0x2168da['description']=_0x2168da[_0x1c37b2(0xa1)]+','+_0x187253['description']),_0x2168da['routes']=_0x2168da[_0x1c37b2(0xab)]['concat'](_0x187253[_0x1c37b2(0xab)]),_0x418ed3[_0x1af969]=_0x2168da):_0x418ed3[_0x1af969]=_0x187253;}}}return _0x418ed3;}exports[a8_0x2e52a4(0x8e)]=getRoutes;function a8_0x178b(_0x208ddd,_0x5ba0ec){const _0x34852c=a8_0x3485();return a8_0x178b=function(_0x178b0f,_0x5669e4){_0x178b0f=_0x178b0f-0x7f;let _0x215142=_0x34852c[_0x178b0f];return _0x215142;},a8_0x178b(_0x208ddd,_0x5ba0ec);}function getJoiRequest(_0x35dfaf){const _0x1ca0da=a8_0x2e52a4,_0x50a15c=[];for(let _0x2f2f58 in _0x35dfaf){const _0x570370={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3622a3=typeof _0x35dfaf[_0x2f2f58][_0x1ca0da(0x9a)]==_0x1ca0da(0x96)?_0x35dfaf[_0x2f2f58][_0x1ca0da(0x9a)]():_0x35dfaf[_0x2f2f58];_0x570370[_0x1ca0da(0xbe)]=_0x2f2f58,_0x570370[_0x1ca0da(0xdc)]=_0x3622a3['type'],_0x570370[_0x1ca0da(0x9f)]=(0x0,lodash_1['get'])(_0x3622a3,_0x1ca0da(0xc7),_0x2f2f58),_0x570370[_0x1ca0da(0x80)]=(0x0,lodash_1[_0x1ca0da(0xc2)])(_0x3622a3,_0x1ca0da(0x83),''),_0x570370['required']=(0x0,lodash_1[_0x1ca0da(0xc2)])(_0x3622a3,_0x1ca0da(0x9d),'')==_0x1ca0da(0xd8),_0x570370[_0x1ca0da(0xa1)]=(0x0,lodash_1['get'])(_0x3622a3,_0x1ca0da(0x9c),'');if(_0x3622a3['type']==_0x1ca0da(0x8c))_0x570370[_0x1ca0da(0xc4)]=getJoiRequest(_0x3622a3['keys']);else _0x3622a3[_0x1ca0da(0xdc)]==_0x1ca0da(0xc8)&&_0x3622a3['items']&&Array[_0x1ca0da(0xbc)](_0x3622a3[_0x1ca0da(0xcd)])&&_0x3622a3[_0x1ca0da(0xcd)][0x0]&&console[_0x1ca0da(0x8d)](_0x2f2f58+_0x1ca0da(0xce),_0x3622a3);_0x3622a3[_0x1ca0da(0xd0)]&&Array[_0x1ca0da(0xbc)](_0x3622a3[_0x1ca0da(0xd0)])&&_0x3622a3['allow'][_0x1ca0da(0x94)]>0x0&&(_0x570370[_0x1ca0da(0xa1)]=_0x1ca0da(0xaa)+_0x3622a3[_0x1ca0da(0xd0)]['join'](',')+'];'+_0x570370['description']);if(_0x570370[_0x1ca0da(0xbe)]&&_0x570370[_0x1ca0da(0xdc)]){const _0xf8fab1={};for(const _0x2712a2 of _0x3622a3['rules']||[]){if(_0x2712a2[_0x1ca0da(0xcf)]==='min'&&_0x2712a2[_0x1ca0da(0xd3)])_0xf8fab1[_0x1ca0da(0xad)]=_0x2712a2[_0x1ca0da(0xd3)][_0x1ca0da(0xd1)];else _0x2712a2[_0x1ca0da(0xcf)]===_0x1ca0da(0xd4)&&(_0xf8fab1[_0x1ca0da(0xd4)]=_0x2712a2['args'][_0x1ca0da(0xd1)]);}_0x570370[_0x1ca0da(0x98)]=_0xf8fab1;}_0x570370['key']&&_0x570370['title']&&_0x50a15c[_0x1ca0da(0xb6)](_0x570370);}return _0x50a15c;}function convertSchemaType(_0x3045b8){const _0x5d23c6=a8_0x2e52a4;switch(_0x3045b8){case _0x5d23c6(0xa2):return'object';case'Boolean':return _0x5d23c6(0x85);case'Number':return _0x5d23c6(0xdb);case'String':return _0x5d23c6(0xde);case _0x5d23c6(0x86):return'file';default:return _0x5d23c6(0xde);}}function convertTypeToString(_0x2fc34d){const _0x426a42=a8_0x2e52a4;switch(_0x2fc34d){case core_1[_0x426a42(0xcb)][_0x426a42(0x8a)]:return _0x426a42(0xd2);case core_1[_0x426a42(0xcb)]['QUERY']:return _0x426a42(0x8b);case core_1[_0x426a42(0xcb)]['PARAM']:return'path';case core_1['RouteParamTypes'][_0x426a42(0xc9)]:return _0x426a42(0xae);case core_1['RouteParamTypes'][_0x426a42(0x7f)]:case core_1['RouteParamTypes'][_0x426a42(0xb3)]:case core_1[_0x426a42(0xcb)][_0x426a42(0xdd)]:return _0x426a42(0xba);default:return _0x426a42(0xd2);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x3a7b3d=a9_0x227a;(function(_0x11ab32,_0x3233c2){var _0x29851f=a9_0x227a,_0x2db56b=_0x11ab32();while(!![]){try{var _0x284dcc=parseInt(_0x29851f(0x195))/0x1*(-parseInt(_0x29851f(0x19f))/0x2)+-parseInt(_0x29851f(0x1a6))/0x3*(parseInt(_0x29851f(0x19e))/0x4)+-parseInt(_0x29851f(0x19a))/0x5*(parseInt(_0x29851f(0x1a3))/0x6)+-parseInt(_0x29851f(0x18d))/0x7+parseInt(_0x29851f(0x193))/0x8*(parseInt(_0x29851f(0x196))/0x9)+parseInt(_0x29851f(0x1a9))/0xa+parseInt(_0x29851f(0x19c))/0xb;if(_0x284dcc===_0x3233c2)break;else _0x2db56b['push'](_0x2db56b['shift']());}catch(_0x2d03df){_0x2db56b['push'](_0x2db56b['shift']());}}}(a9_0x534b,0xc29b0));var __createBinding=this&&this[a9_0x3a7b3d(0x1ac)]||(Object[a9_0x3a7b3d(0x184)]?function(_0x1c6813,_0x5693c3,_0x3a6460,_0x592bc7){var _0x5ed170=a9_0x3a7b3d;if(_0x592bc7===undefined)_0x592bc7=_0x3a6460;var _0x56694e=Object[_0x5ed170(0x1bc)](_0x5693c3,_0x3a6460);(!_0x56694e||(_0x5ed170(0x1b7)in _0x56694e?!_0x5693c3[_0x5ed170(0x1b6)]:_0x56694e[_0x5ed170(0x18b)]||_0x56694e[_0x5ed170(0x19b)]))&&(_0x56694e={'enumerable':!![],'get':function(){return _0x5693c3[_0x3a6460];}}),Object['defineProperty'](_0x1c6813,_0x592bc7,_0x56694e);}:function(_0x124778,_0x2268cd,_0x1225e3,_0xf1c5de){if(_0xf1c5de===undefined)_0xf1c5de=_0x1225e3;_0x124778[_0xf1c5de]=_0x2268cd[_0x1225e3];}),__exportStar=this&&this[a9_0x3a7b3d(0x189)]||function(_0x45edda,_0x4e2a88){var _0x21e184=a9_0x3a7b3d;for(var _0x582ae6 in _0x45edda)if(_0x582ae6!==_0x21e184(0x1a0)&&!Object[_0x21e184(0x1a4)][_0x21e184(0x197)][_0x21e184(0x1c2)](_0x4e2a88,_0x582ae6))__createBinding(_0x4e2a88,_0x45edda,_0x582ae6);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=exports[a9_0x3a7b3d(0x185)]=exports[a9_0x3a7b3d(0x1bb)]=exports[a9_0x3a7b3d(0x1b4)]=exports[a9_0x3a7b3d(0x1ad)]=exports['Logger']=exports[a9_0x3a7b3d(0x18e)]=exports[a9_0x3a7b3d(0x1ae)]=exports['Init']=exports[a9_0x3a7b3d(0x1c3)]=exports[a9_0x3a7b3d(0x187)]=exports[a9_0x3a7b3d(0x186)]=exports[a9_0x3a7b3d(0x194)]=exports[a9_0x3a7b3d(0x1a7)]=exports['Files']=exports['File']=exports[a9_0x3a7b3d(0x1b2)]=exports[a9_0x3a7b3d(0x1b0)]=exports[a9_0x3a7b3d(0x1a8)]=exports[a9_0x3a7b3d(0x1be)]=exports[a9_0x3a7b3d(0x1ba)]=exports['EventService']=exports['CacheService']=exports[a9_0x3a7b3d(0x1a2)]=exports[a9_0x3a7b3d(0x1c0)]=exports[a9_0x3a7b3d(0x1af)]=exports['Action']=exports[a9_0x3a7b3d(0x1b8)]=void 0x0;const getAppsConfig_1=require(a9_0x3a7b3d(0x1ab));Object['defineProperty'](exports,a9_0x3a7b3d(0x1b3),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x3a7b3d(0x190)),exports),__exportStar(require(a9_0x3a7b3d(0x198)),exports);var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,a9_0x3a7b3d(0x1b8),{'enumerable':!![],'get':function(){var _0x50fbb8=a9_0x3a7b3d;return ActionApi_1[_0x50fbb8(0x1b8)];}});var Action_1=require(a9_0x3a7b3d(0x192));Object['defineProperty'](exports,'Action',{'enumerable':!![],'get':function(){var _0x503b82=a9_0x3a7b3d;return Action_1[_0x503b82(0x188)];}});var ActionApitest_1=require(a9_0x3a7b3d(0x199));Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1af),{'enumerable':!![],'get':function(){var _0x245c77=a9_0x3a7b3d;return ActionApitest_1[_0x245c77(0x1af)];}});var getRoutes_1=require(a9_0x3a7b3d(0x1a1));Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1c0),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});function a9_0x227a(_0x574879,_0x1df8bd){var _0x534bce=a9_0x534b();return a9_0x227a=function(_0x227ab0,_0x252564){_0x227ab0=_0x227ab0-0x184;var _0x51553b=_0x534bce[_0x227ab0];return _0x51553b;},a9_0x227a(_0x574879,_0x1df8bd);}var ApiError_1=require(a9_0x3a7b3d(0x1aa));Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1a2),{'enumerable':!![],'get':function(){var _0x469996=a9_0x3a7b3d;return ApiError_1[_0x469996(0x1a2)];}});var cache_1=require(a9_0x3a7b3d(0x19d));Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x18a),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x3a7b3d(0x18c));Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1bf),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x3a7b3d(0x1b1));Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x182957=a9_0x3a7b3d;return ApiService_1[_0x182957(0x1ba)];}});var ExcelService_1=require('./service/ExcelService');Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1be),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x3a7b3d(0x18f));Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1a8),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1b0),{'enumerable':!![],'get':function(){var _0x342a62=a9_0x3a7b3d;return validator_1[_0x342a62(0x1b0)];}});var configuration_1=require('./configuration');Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1b2),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x3a7b3d(0x191));function a9_0x534b(){var _0x4e2232=['ValidatorService','./service/ApiService','Configuration','getAppsConfig','Inject','File','__esModule','get','Api','Init','ApiService','Scope','getOwnPropertyDescriptor','Logger','ExcelService','EventService','getRoutes','defineProperty','call','Headers','create','ScopeEnum','Param','Query','Action','__exportStar','CacheService','writable','@anncic-api/event','564935PhvMHt','Config','@anncic-api/validator','./types/common','@midwayjs/core','./decorator/Action','12617320NBrHxj','Body','83833ULXdnQ','9tWuUrI','hasOwnProperty','./service/ApitestService','./decorator/ActionApitest','6929085IONGhG','configurable','22593681AlIzrK','@anncic-api/cache','664vhANXV','36UsNyhM','default','./helper/getRoutes','ApiError','6CsGpaS','prototype','Files','24612MaOzCT','Fields','ValidatorError','15033480BlAznT','./exception/ApiError','./helper/getAppsConfig','__createBinding','Provide','App','Apitest'];a9_0x534b=function(){return _0x4e2232;};return a9_0x534b();}Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1b5),{'enumerable':!![],'get':function(){var _0x579055=a9_0x3a7b3d;return core_1[_0x579055(0x1b5)];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1a5),{'enumerable':!![],'get':function(){var _0x5a47f0=a9_0x3a7b3d;return core_1[_0x5a47f0(0x1a5)];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x3a7b3d(0x1c1)](exports,'Body',{'enumerable':!![],'get':function(){var _0x4c1363=a9_0x3a7b3d;return core_1[_0x4c1363(0x194)];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x186),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object['defineProperty'](exports,a9_0x3a7b3d(0x187),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1c3),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1b9),{'enumerable':!![],'get':function(){var _0x2b4c72=a9_0x3a7b3d;return core_1[_0x2b4c72(0x1b9)];}});var core_2=require(a9_0x3a7b3d(0x191));Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){var _0x5f06cc=a9_0x3a7b3d;return core_2[_0x5f06cc(0x1ae)];}}),Object['defineProperty'](exports,a9_0x3a7b3d(0x18e),{'enumerable':!![],'get':function(){var _0x4a6e23=a9_0x3a7b3d;return core_2[_0x4a6e23(0x18e)];}}),Object['defineProperty'](exports,a9_0x3a7b3d(0x1bd),{'enumerable':!![],'get':function(){var _0x2fc81b=a9_0x3a7b3d;return core_2[_0x2fc81b(0x1bd)];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1ad),{'enumerable':!![],'get':function(){var _0x95f50e=a9_0x3a7b3d;return core_2[_0x95f50e(0x1ad)];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1b4),{'enumerable':!![],'get':function(){var _0x16a20f=a9_0x3a7b3d;return core_2[_0x16a20f(0x1b4)];}}),Object[a9_0x3a7b3d(0x1c1)](exports,a9_0x3a7b3d(0x1bb),{'enumerable':!![],'get':function(){var _0x255f56=a9_0x3a7b3d;return core_2[_0x255f56(0x1bb)];}}),Object['defineProperty'](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x5e6fb9=a9_0x3a7b3d;return core_2[_0x5e6fb9(0x185)];}}),global[a9_0x3a7b3d(0x1b3)]=getAppsConfig_1[a9_0x3a7b3d(0x1b3)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a10_0x22b5(_0x10f700,_0x543af1){var _0x434100=a10_0x4341();return a10_0x22b5=function(_0x22b588,_0x20e5e1){_0x22b588=_0x22b588-0x1a0;var _0x3a3e79=_0x434100[_0x22b588];return _0x3a3e79;},a10_0x22b5(_0x10f700,_0x543af1);}var a10_0x5db35f=a10_0x22b5;(function(_0x192f13,_0x5982a8){var _0x1b393e=a10_0x22b5,_0x24ae33=_0x192f13();while(!![]){try{var _0x2e9510=parseInt(_0x1b393e(0x1d5))/0x1*(parseInt(_0x1b393e(0x1a5))/0x2)+parseInt(_0x1b393e(0x1b8))/0x3*(-parseInt(_0x1b393e(0x1d2))/0x4)+-parseInt(_0x1b393e(0x1be))/0x5*(-parseInt(_0x1b393e(0x1ab))/0x6)+parseInt(_0x1b393e(0x1a6))/0x7+-parseInt(_0x1b393e(0x1b2))/0x8*(parseInt(_0x1b393e(0x1b9))/0x9)+-parseInt(_0x1b393e(0x1a1))/0xa+parseInt(_0x1b393e(0x1cc))/0xb*(parseInt(_0x1b393e(0x1d1))/0xc);if(_0x2e9510===_0x5982a8)break;else _0x24ae33['push'](_0x24ae33['shift']());}catch(_0x1bdec3){_0x24ae33['push'](_0x24ae33['shift']());}}}(a10_0x4341,0x514f0));var __decorate=this&&this[a10_0x5db35f(0x1ae)]||function(_0x2c5f1d,_0x4efbfc,_0x1d3824,_0x1a5175){var _0x4e44c1=a10_0x5db35f,_0x57187e=arguments['length'],_0x12ba42=_0x57187e<0x3?_0x4efbfc:_0x1a5175===null?_0x1a5175=Object['getOwnPropertyDescriptor'](_0x4efbfc,_0x1d3824):_0x1a5175,_0x3d26ce;if(typeof Reflect==='object'&&typeof Reflect[_0x4e44c1(0x1a2)]==='function')_0x12ba42=Reflect[_0x4e44c1(0x1a2)](_0x2c5f1d,_0x4efbfc,_0x1d3824,_0x1a5175);else{for(var _0x16fea7=_0x2c5f1d[_0x4e44c1(0x1cd)]-0x1;_0x16fea7>=0x0;_0x16fea7--)if(_0x3d26ce=_0x2c5f1d[_0x16fea7])_0x12ba42=(_0x57187e<0x3?_0x3d26ce(_0x12ba42):_0x57187e>0x3?_0x3d26ce(_0x4efbfc,_0x1d3824,_0x12ba42):_0x3d26ce(_0x4efbfc,_0x1d3824))||_0x12ba42;}return _0x57187e>0x3&&_0x12ba42&&Object[_0x4e44c1(0x1bf)](_0x4efbfc,_0x1d3824,_0x12ba42),_0x12ba42;},__metadata=this&&this['__metadata']||function(_0x4c4980,_0x2c8f48){var _0x14a2e7=a10_0x5db35f;if(typeof Reflect===_0x14a2e7(0x1cb)&&typeof Reflect[_0x14a2e7(0x1ac)]==='function')return Reflect[_0x14a2e7(0x1ac)](_0x4c4980,_0x2c8f48);};Object[a10_0x5db35f(0x1bf)](exports,a10_0x5db35f(0x1c6),{'value':!![]}),exports[a10_0x5db35f(0x1a7)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a10_0x5db35f(0x1d9)),ApiError_1=require(a10_0x5db35f(0x1b0));function a10_0x4341(){var _0x1a3a0c=['secret','requesttime','HEADERS_CHECKCODE','TIMEOUT_LOGINTIME','40930staSED','defineProperty','device','entries','HEADERS_DEVICE','password','abs','devices','__esModule','signature','HEADERS_LACK','logintime','checksign','object','22nXjkVo','length','getcheck','toString','Config','4573092BwjijR','8QQuiKz','toLowerCase','checkcode','189291viuHEe','now','push','logintimeout','@midwayjs/core','config','ApiError','3029840lAdyfH','decorate','MD5','undefined','4JgzzgB','259203BINneq','ApiService','token','join','ScopeEnum','120GwucBh','metadata','HEADERS_SIGNATURE','__decorate','secret=','../exception/ApiError','fromEntries','2322728lGuTEf','getsign','prototype','Singleton','timeout','map','622722LxQWTd','9QoZHnp'];a10_0x4341=function(){return _0x1a3a0c;};return a10_0x4341();}let ApiService=class ApiService{[a10_0x5db35f(0x1c3)](_0x258a00){var _0x49a9b1=a10_0x5db35f,_0x6a4502;return _0x258a00?(0x0,crypto_js_1['MD5'])(_0x258a00+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x49a9b1(0x1a3)])(_0x258a00)[_0x49a9b1(0x1cf)]()+((_0x6a4502=this[_0x49a9b1(0x1da)])===null||_0x6a4502===void 0x0?void 0x0:_0x6a4502[_0x49a9b1(0x1c3)]))['toString']())[_0x49a9b1(0x1cf)]():'';}[a10_0x5db35f(0x1ce)](_0x181a4b,_0x4c5788,_0x4e8855=Date[a10_0x5db35f(0x1d6)]()){return{'Token':_0x181a4b,'Logintime':_0x4e8855,'Checkcode':this['checkcode'](_0x181a4b,_0x4c5788,_0x4e8855)};}[a10_0x5db35f(0x1b3)](_0x23c8a6={}){var _0x39d398=a10_0x5db35f,_0x7edc67;const _0x2e4e45=[],_0x4ac800=Object[_0x39d398(0x1b1)](Object[_0x39d398(0x1c1)](_0x23c8a6)[_0x39d398(0x1b7)](_0x575baf=>[_0x575baf[0x0][_0x39d398(0x1d3)](),_0x575baf[0x1]]));for(let _0x2071b6 of[_0x39d398(0x1c0),_0x39d398(0x1bb),_0x39d398(0x1a8),_0x39d398(0x1c9),_0x39d398(0x1d4)]){if(typeof _0x4ac800[_0x2071b6]==_0x39d398(0x1a4))throw new AnnError(ApiError_1[_0x39d398(0x1a0)][_0x39d398(0x1c8)],{'message':'缺少头信息:'+_0x2071b6});_0x2e4e45[_0x39d398(0x1d7)](_0x2071b6+'='+_0x4ac800[_0x2071b6]);}if(Date[_0x39d398(0x1d6)]()-Math['abs'](_0x4ac800[_0x39d398(0x1bb)])>this[_0x39d398(0x1da)][_0x39d398(0x1b6)])throw new AnnError(ApiError_1[_0x39d398(0x1a0)]['TIMEOUT']);if((((_0x7edc67=this[_0x39d398(0x1da)]['devices'][_0x4ac800[_0x39d398(0x1c0)]])===null||_0x7edc67===void 0x0?void 0x0:_0x7edc67[_0x39d398(0x1d8)])||0x0)>0x0&&Date['now']()-Math[_0x39d398(0x1c4)](_0x4ac800[_0x39d398(0x1c9)])>this[_0x39d398(0x1da)][_0x39d398(0x1c5)][_0x4ac800[_0x39d398(0x1c0)]][_0x39d398(0x1d8)])throw new AnnError(ApiError_1[_0x39d398(0x1a0)][_0x39d398(0x1bd)]);if(!this[_0x39d398(0x1da)][_0x39d398(0x1c5)][_0x4ac800[_0x39d398(0x1c0)]]||!this[_0x39d398(0x1da)][_0x39d398(0x1c5)][_0x4ac800['device']]['secret']||!this['config'][_0x39d398(0x1c5)][_0x4ac800[_0x39d398(0x1c0)]][_0x39d398(0x1d4)])throw new AnnError(ApiError_1[_0x39d398(0x1a0)][_0x39d398(0x1c2)]);if(_0x4ac800['token']&&_0x4ac800[_0x39d398(0x1d4)]!=this['checkcode'](_0x4ac800['token'],_0x4ac800[_0x39d398(0x1c0)],_0x4ac800[_0x39d398(0x1c9)]))throw new AnnError(ApiError_1[_0x39d398(0x1a0)][_0x39d398(0x1bc)]);return _0x2e4e45[_0x39d398(0x1d7)](_0x39d398(0x1af)+this['config'][_0x39d398(0x1c5)][_0x4ac800[_0x39d398(0x1c0)]][_0x39d398(0x1ba)]),(0x0,crypto_js_1[_0x39d398(0x1a3)])(_0x2e4e45['sort']()[_0x39d398(0x1a9)](''))[_0x39d398(0x1cf)]();}[a10_0x5db35f(0x1d4)](_0x4944b1,_0x2334c3,_0x2be0a1=Date[a10_0x5db35f(0x1d6)]()){var _0x3fc008=a10_0x5db35f,_0x4cc928,_0x4b6a12,_0xd3d347;if(!((_0x4cc928=this[_0x3fc008(0x1da)])===null||_0x4cc928===void 0x0?void 0x0:_0x4cc928[_0x3fc008(0x1c5)][_0x2334c3])||!((_0xd3d347=(_0x4b6a12=this['config'])===null||_0x4b6a12===void 0x0?void 0x0:_0x4b6a12[_0x3fc008(0x1c5)][_0x2334c3])===null||_0xd3d347===void 0x0?void 0x0:_0xd3d347[_0x3fc008(0x1d4)]))throw new AnnError(ApiError_1[_0x3fc008(0x1a0)][_0x3fc008(0x1c2)]);return(0x0,crypto_js_1[_0x3fc008(0x1a3)])(_0x4944b1+(0x0,crypto_js_1[_0x3fc008(0x1a3)])(_0x2be0a1+this[_0x3fc008(0x1da)][_0x3fc008(0x1c5)][_0x2334c3][_0x3fc008(0x1d4)])[_0x3fc008(0x1cf)]())[_0x3fc008(0x1cf)]();}[a10_0x5db35f(0x1ca)](_0x2c70d4={}){var _0x16fd9b=a10_0x5db35f;const _0x267ff1=Object[_0x16fd9b(0x1b1)](Object[_0x16fd9b(0x1c1)](_0x2c70d4)['map'](_0x195fda=>[_0x195fda[0x0]['toLowerCase'](),_0x195fda[0x1]]));if(!(_0x267ff1===null||_0x267ff1===void 0x0?void 0x0:_0x267ff1['signature']))throw new AnnError(ApiError_1[_0x16fd9b(0x1a0)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x267ff1===null||_0x267ff1===void 0x0?void 0x0:_0x267ff1[_0x16fd9b(0x1c7)])!=this[_0x16fd9b(0x1b3)](_0x267ff1))throw new AnnError(ApiError_1[_0x16fd9b(0x1a0)][_0x16fd9b(0x1ad)]);return!![];}};__decorate([(0x0,core_1[a10_0x5db35f(0x1d0)])('anncicapi'),__metadata('design:type',Object)],ApiService[a10_0x5db35f(0x1b4)],a10_0x5db35f(0x1da),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a10_0x5db35f(0x1aa)][a10_0x5db35f(0x1b5)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0xeb2da1=a11_0x1ca6;(function(_0x54c0bc,_0x35597c){const _0xd4683=a11_0x1ca6,_0xa87910=_0x54c0bc();while(!![]){try{const _0x1016a4=parseInt(_0xd4683(0xd2))/0x1*(-parseInt(_0xd4683(0x106))/0x2)+parseInt(_0xd4683(0xd4))/0x3+-parseInt(_0xd4683(0xd0))/0x4+parseInt(_0xd4683(0xe7))/0x5+parseInt(_0xd4683(0xfb))/0x6+-parseInt(_0xd4683(0xcd))/0x7+parseInt(_0xd4683(0xf7))/0x8;if(_0x1016a4===_0x35597c)break;else _0xa87910['push'](_0xa87910['shift']());}catch(_0x1d6782){_0xa87910['push'](_0xa87910['shift']());}}}(a11_0x2cb2,0x38664));var __decorate=this&&this[a11_0xeb2da1(0xca)]||function(_0x1741e8,_0x2d983e,_0x2d6e2b,_0xd636b8){const _0x349a2b=a11_0xeb2da1;var _0x1e098b=arguments[_0x349a2b(0xde)],_0x5c77c9=_0x1e098b<0x3?_0x2d983e:_0xd636b8===null?_0xd636b8=Object[_0x349a2b(0xfa)](_0x2d983e,_0x2d6e2b):_0xd636b8,_0x4dc213;if(typeof Reflect===_0x349a2b(0xc1)&&typeof Reflect[_0x349a2b(0xdf)]==='function')_0x5c77c9=Reflect['decorate'](_0x1741e8,_0x2d983e,_0x2d6e2b,_0xd636b8);else{for(var _0x43d932=_0x1741e8[_0x349a2b(0xde)]-0x1;_0x43d932>=0x0;_0x43d932--)if(_0x4dc213=_0x1741e8[_0x43d932])_0x5c77c9=(_0x1e098b<0x3?_0x4dc213(_0x5c77c9):_0x1e098b>0x3?_0x4dc213(_0x2d983e,_0x2d6e2b,_0x5c77c9):_0x4dc213(_0x2d983e,_0x2d6e2b))||_0x5c77c9;}return _0x1e098b>0x3&&_0x5c77c9&&Object[_0x349a2b(0xf8)](_0x2d983e,_0x2d6e2b,_0x5c77c9),_0x5c77c9;},__metadata=this&&this[a11_0xeb2da1(0xc0)]||function(_0x1fa3bb,_0x5a4b49){const _0x50686e=a11_0xeb2da1;if(typeof Reflect===_0x50686e(0xc1)&&typeof Reflect[_0x50686e(0xc7)]===_0x50686e(0x105))return Reflect[_0x50686e(0xc7)](_0x1fa3bb,_0x5a4b49);},__param=this&&this[a11_0xeb2da1(0xfe)]||function(_0x370ff8,_0x1c7702){return function(_0x54043b,_0x11dfa0){_0x1c7702(_0x54043b,_0x11dfa0,_0x370ff8);};};Object[a11_0xeb2da1(0xf8)](exports,a11_0xeb2da1(0xd8),{'value':!![]}),exports[a11_0xeb2da1(0xd3)]=exports['ApitestService']=void 0x0;function a11_0x1ca6(_0x1f5835,_0x3181df){const _0x2cb254=a11_0x2cb2();return a11_0x1ca6=function(_0x1ca62a,_0x464a5c){_0x1ca62a=_0x1ca62a-0xb8;let _0x4e5fbe=_0x2cb254[_0x1ca62a];return _0x4e5fbe;},a11_0x1ca6(_0x1f5835,_0x3181df);}const path_1=require(a11_0xeb2da1(0x100)),fs_1=require('fs'),core_1=require(a11_0xeb2da1(0xbd)),core_2=require(a11_0xeb2da1(0xbd)),core_3=require(a11_0xeb2da1(0xbd)),getRoutes_1=require(a11_0xeb2da1(0xe2));let ApitestService=class ApitestService{async['apidoc'](_0x211400){const _0x3830b5=a11_0xeb2da1,_0x68e8ea=(0x0,getRoutes_1[_0x3830b5(0xe1)])(_0x211400),_0x35031a=[];for(let _0x3d0329 in _0x68e8ea){for(let _0x400a39 in _0x68e8ea[_0x3d0329][_0x3830b5(0x104)]){let _0x2a8674=_0x68e8ea[_0x3d0329][_0x3830b5(0x104)][_0x400a39],_0x3ce42a=[];for(let _0x24f8da in _0x2a8674[_0x3830b5(0xf4)]){_0x3ce42a[_0x3830b5(0xc4)](_0x2a8674[_0x3830b5(0xf4)][_0x24f8da]);}_0x35031a[_0x3830b5(0xc4)]({'title':_0x68e8ea[_0x3d0329]['summary']+':'+_0x2a8674[_0x3830b5(0xe0)],'prefix':_0x68e8ea[_0x3d0329][_0x3830b5(0xba)],'router':_0x2a8674[_0x3830b5(0xeb)],'method':_0x2a8674[_0x3830b5(0xf2)],'describe':_0x2a8674[_0x3830b5(0xb9)]||'','filepath':_0x68e8ea[_0x3d0329][_0x3830b5(0xee)]||'','request':_0x3ce42a});}}const _0x4a0390=(0x0,path_1[_0x3830b5(0xbe)])(__dirname,_0x3830b5(0xcf));return(0x0,fs_1[_0x3830b5(0x107)])(_0x4a0390,{'encoding':'utf-8'})[_0x3830b5(0xf5)](/__res__/g,'/apiteststatic/')['replace'](_0x3830b5(0xbf),JSON[_0x3830b5(0xc9)](_0x35031a))[_0x3830b5(0xf5)](_0x3830b5(0xce),JSON[_0x3830b5(0xc9)](this['config'][_0x3830b5(0xd5)]));}};__decorate([(0x0,core_3[a11_0xeb2da1(0xec)])(a11_0xeb2da1(0xb8)),__metadata(a11_0xeb2da1(0xcb),Object)],ApitestService[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xf0),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0xeb2da1(0xd9)),(0x0,core_3['Scope'])(core_3[a11_0xeb2da1(0xf6)]['Singleton'])],ApitestService),exports[a11_0xeb2da1(0xe3)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0xeb2da1(0xfc)](){const _0x490754=a11_0xeb2da1;if(this[_0x490754(0xd9)]){const _0x35593c={'module':![]};return this[_0x490754(0xe4)]['isDevelopmentEnvironment']()&&(_0x35593c[_0x490754(0xee)]=!![]),await this[_0x490754(0xe3)][_0x490754(0xef)](_0x35593c);}return'';}async[a11_0xeb2da1(0xf1)](_0x256f28){const _0x311a81=a11_0xeb2da1;if(this[_0x311a81(0xd9)]){const _0x182611={'module':_0x256f28};return this[_0x311a81(0xe4)]['isDevelopmentEnvironment']()&&(_0x182611[_0x311a81(0xee)]=!![]),await this[_0x311a81(0xe3)]['apidoc'](_0x182611);}return'';}async[a11_0xeb2da1(0xbc)](){const _0x13c1e7=a11_0xeb2da1;if((0x0,path_1[_0x13c1e7(0xc8)])(this['ctx'][_0x13c1e7(0xf4)]['url'])){var _0x1cee9b=(0x0,path_1[_0x13c1e7(0xbe)])(__dirname,_0x13c1e7(0xe9)+this[_0x13c1e7(0xff)][_0x13c1e7(0xf4)]['url'][_0x13c1e7(0xf5)](_0x13c1e7(0xbb),'/'));if(_0x1cee9b[_0x13c1e7(0xe6)](_0x1cee9b[_0x13c1e7(0xde)]-0xb)!=_0x13c1e7(0xd7)){this[_0x13c1e7(0xff)][_0x13c1e7(0xf3)](_0x13c1e7(0xdc),_0x13c1e7(0xd1));if((0x0,path_1[_0x13c1e7(0xc8)])(this['ctx']['request'][_0x13c1e7(0x102)])==_0x13c1e7(0xdb))this[_0x13c1e7(0xff)][_0x13c1e7(0xf3)](_0x13c1e7(0xe8),_0x13c1e7(0xc5));else(0x0,path_1[_0x13c1e7(0xc8)])(this['ctx']['request'][_0x13c1e7(0x102)])==_0x13c1e7(0xea)&&this['ctx'][_0x13c1e7(0xf3)]('content-type',_0x13c1e7(0xf9));return(0x0,fs_1[_0x13c1e7(0xed)])(_0x1cee9b)&&(0x0,fs_1[_0x13c1e7(0x107)])(_0x1cee9b,{'encoding':'utf-8'});}}return'';}};function a11_0x2cb2(){const _0x3aa669=['/index.html','__esModule','apitest','/apitest','.js','cache-control','Get','length','decorate','summary','getRoutes','../helper/getRoutes','ApitestService','Environment','Scope','substring','1816285FPZtsL','content-type','../../public/','.css','route','Config','existsSync','filepath','apidoc','config','apitestmodule','method','set','request','replace','ScopeEnum','2158520sxWAXB','defineProperty','text/css;\x20charset=utf-8','getOwnPropertyDescriptor','1544748tWxpwI','apitesthtml','Controller','__param','ctx','path','design:returntype','url','prototype','routes','function','764024QkToRT','readFileSync','anncicapi','description','prefix','/apiteststatic/','apiteststatic','@midwayjs/core','join','__apiList__','__metadata','object','design:paramtypes','module','push','application/javascript;\x20charset=utf-8','MidwayEnvironmentService','metadata','extname','stringify','__decorate','design:type','Param','1673238tbRPrK','__devices__','../../public/index.html','1444296XNdAbH','public,\x20max-age=604800','1dEKhUP','ApitestStaticController','967806hgUvPb','devices','Request'];a11_0x2cb2=function(){return _0x3aa669;};return a11_0x2cb2();}__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0xeb2da1(0xcb),Object)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xff),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',core_1[a11_0xeb2da1(0xc6)])],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xe4),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0xeb2da1(0xcb),ApitestService)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xe3),void 0x0),__decorate([(0x0,core_3[a11_0xeb2da1(0xec)])(a11_0xeb2da1(0xd9)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xd9),void 0x0),__decorate([(0x0,core_3[a11_0xeb2da1(0xec)])(a11_0xeb2da1(0xb8)),__metadata(a11_0xeb2da1(0xcb),Object)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xf0),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0xeb2da1(0xda)),__metadata(a11_0xeb2da1(0xcb),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xfc),null),__decorate([(0x0,core_2[a11_0xeb2da1(0xdd)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0xeb2da1(0xcc)])(a11_0xeb2da1(0xc3))),__metadata(a11_0xeb2da1(0xcb),Function),__metadata(a11_0xeb2da1(0xc2),[String]),__metadata(a11_0xeb2da1(0x101),Promise)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xf1),null),__decorate([(0x0,core_2[a11_0xeb2da1(0xdd)])('/apiteststatic/*'),__metadata(a11_0xeb2da1(0xcb),Function),__metadata(a11_0xeb2da1(0xc2),[]),__metadata(a11_0xeb2da1(0x101),Promise)],ApitestStaticController[a11_0xeb2da1(0x103)],a11_0xeb2da1(0xbc),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0xeb2da1(0xfd)])('/'),(0x0,core_3[a11_0xeb2da1(0xe5)])(core_3[a11_0xeb2da1(0xf6)][a11_0xeb2da1(0xd6)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x1d05b9=a12_0x37a0;function a12_0x37a0(_0x1ea2f4,_0x30f324){const _0x4031e6=a12_0x4031();return a12_0x37a0=function(_0x37a011,_0x41fd8b){_0x37a011=_0x37a011-0x1c5;let _0x43f6db=_0x4031e6[_0x37a011];return _0x43f6db;},a12_0x37a0(_0x1ea2f4,_0x30f324);}(function(_0xc1cbd1,_0x1feb27){const _0x1f6644=a12_0x37a0,_0x579072=_0xc1cbd1();while(!![]){try{const _0x5767b4=parseInt(_0x1f6644(0x1e2))/0x1+parseInt(_0x1f6644(0x1eb))/0x2+-parseInt(_0x1f6644(0x1d4))/0x3*(-parseInt(_0x1f6644(0x1f4))/0x4)+-parseInt(_0x1f6644(0x1f6))/0x5+-parseInt(_0x1f6644(0x1dc))/0x6+parseInt(_0x1f6644(0x1fc))/0x7*(-parseInt(_0x1f6644(0x1dd))/0x8)+parseInt(_0x1f6644(0x1f0))/0x9*(-parseInt(_0x1f6644(0x1c8))/0xa);if(_0x5767b4===_0x1feb27)break;else _0x579072['push'](_0x579072['shift']());}catch(_0x2a6868){_0x579072['push'](_0x579072['shift']());}}}(a12_0x4031,0xa78a3));var __decorate=this&&this[a12_0x1d05b9(0x1f1)]||function(_0x3d40c0,_0x4ab231,_0x1b68ab,_0x34ae5c){const _0x4a4093=a12_0x1d05b9;var _0x2e73a3=arguments[_0x4a4093(0x1ef)],_0x52b1a6=_0x2e73a3<0x3?_0x4ab231:_0x34ae5c===null?_0x34ae5c=Object[_0x4a4093(0x1e9)](_0x4ab231,_0x1b68ab):_0x34ae5c,_0x2a3a4a;if(typeof Reflect===_0x4a4093(0x1d6)&&typeof Reflect[_0x4a4093(0x1c6)]===_0x4a4093(0x1da))_0x52b1a6=Reflect[_0x4a4093(0x1c6)](_0x3d40c0,_0x4ab231,_0x1b68ab,_0x34ae5c);else{for(var _0x426603=_0x3d40c0['length']-0x1;_0x426603>=0x0;_0x426603--)if(_0x2a3a4a=_0x3d40c0[_0x426603])_0x52b1a6=(_0x2e73a3<0x3?_0x2a3a4a(_0x52b1a6):_0x2e73a3>0x3?_0x2a3a4a(_0x4ab231,_0x1b68ab,_0x52b1a6):_0x2a3a4a(_0x4ab231,_0x1b68ab))||_0x52b1a6;}return _0x2e73a3>0x3&&_0x52b1a6&&Object[_0x4a4093(0x1f8)](_0x4ab231,_0x1b68ab,_0x52b1a6),_0x52b1a6;},__metadata=this&&this['__metadata']||function(_0x5a6bd0,_0x5598a7){const _0x1c4321=a12_0x1d05b9;if(typeof Reflect===_0x1c4321(0x1d6)&&typeof Reflect[_0x1c4321(0x201)]==='function')return Reflect[_0x1c4321(0x201)](_0x5a6bd0,_0x5598a7);};Object[a12_0x1d05b9(0x1f8)](exports,a12_0x1d05b9(0x1f5),{'value':!![]}),exports[a12_0x1d05b9(0x1c7)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1d05b9(0x204)),koasend=require('koa-send'),core_1=require(a12_0x1d05b9(0x1de));let ExcelService=class ExcelService{async[a12_0x1d05b9(0x1ca)](_0xb005bb,_0x16f00d,_0x1fc628=[0x0]){const _0x3c28ca=a12_0x1d05b9;var _0xada3e0,_0x4cd21f;const _0x42de7c=new exceljs[(_0x3c28ca(0x206))](),_0x708aba=[];let _0x12334d=_0xb005bb[_0x3c28ca(0x1f9)](/(\\|\/)/g,'/')[_0x3c28ca(0x1f9)](/\/{2,}/g,'/');!(_0x12334d===null||_0x12334d===void 0x0?void 0x0:_0x12334d[_0x3c28ca(0x1e7)]('/'))&&(_0x12334d=this['app'][_0x3c28ca(0x1e6)]()+'/'+_0x12334d);try{await _0x42de7c[_0x3c28ca(0x1e3)]['readFile'](_0x12334d);}catch(_0x41a029){return console[_0x3c28ca(0x1df)](_0x3c28ca(0x1c9)+_0x12334d+'\x20is\x20read\x20fail'),_0x708aba;}for(const _0x361200 of _0x1fc628){const _0x33665=lodash[_0x3c28ca(0x208)](_0x361200)?((_0xada3e0=_0x42de7c[_0x3c28ca(0x1ff)])===null||_0xada3e0===void 0x0?void 0x0:_0xada3e0[_0x361200])||undefined:_0x42de7c['getWorksheet'](_0x361200);if(_0x33665){var _0x4e6f95=0x1;const _0x174cd7=_0x33665['getRow'](0x1),_0xdbe538=await new Promise(_0x517356=>{const _0x4f3d0f=_0x3c28ca,_0x1e3624={};_0x174cd7[_0x4f3d0f(0x1ed)]((_0x52405e,_0x294328)=>{const _0x4a601b=_0x4f3d0f;for(const _0x390a32 of _0x16f00d){if(_0x52405e[_0x4a601b(0x203)]==_0x390a32['header'])_0x4e6f95=0x2,_0x1e3624[_0x390a32[_0x4a601b(0x1d0)]]={'header':_0x52405e[_0x4a601b(0x1e5)],'handler':_0x390a32[_0x4a601b(0x207)]};else{if(!_0x1e3624[_0x390a32[_0x4a601b(0x1d0)]])try{const _0x465ea6=_0x174cd7[_0x4a601b(0x1cd)](_0x390a32[_0x4a601b(0x1cc)]);_0x465ea6&&(_0x1e3624[_0x390a32[_0x4a601b(0x1d0)]]={'header':_0x465ea6['col'],'handler':_0x390a32[_0x4a601b(0x207)]});}catch{}}}_0x174cd7[_0x4a601b(0x1e8)]==_0x294328&&_0x517356(_0x1e3624);});});for(const _0x1c8c56 of _0x33665[_0x3c28ca(0x1ee)](_0x4e6f95,_0x33665['rowCount'])){const _0x446101={};for(const _0x43f567 in _0xdbe538){if(_0xdbe538[_0x43f567][_0x3c28ca(0x1cc)]){const _0x1df511=_0x1c8c56[_0x3c28ca(0x1cd)](_0xdbe538[_0x43f567]['header']);typeof((_0x4cd21f=_0xdbe538[_0x43f567])===null||_0x4cd21f===void 0x0?void 0x0:_0x4cd21f['handler'])==_0x3c28ca(0x1da)?_0x446101[_0x43f567]=await _0xdbe538[_0x43f567][_0x3c28ca(0x207)]((_0x1df511===null||_0x1df511===void 0x0?void 0x0:_0x1df511[_0x3c28ca(0x1f2)]())||'',_0x1df511[_0x3c28ca(0x1fa)]):_0x446101[_0x43f567]=(_0x1df511===null||_0x1df511===void 0x0?void 0x0:_0x1df511[_0x3c28ca(0x1f2)]())||'';}}Object[_0x3c28ca(0x1fd)](_0x446101)[_0x3c28ca(0x1ef)]>0x0&&_0x708aba[_0x3c28ca(0x1d5)](_0x446101);}}}return _0x708aba;}async[a12_0x1d05b9(0x1f7)](_0x416305,_0x2df6a4,_0x1b7fc2,_0x542216=a12_0x1d05b9(0x1d2)){const _0x5d567f=a12_0x1d05b9;var _0xf2db47,_0x200faf;const _0x122aea=new exceljs[(_0x5d567f(0x206))](),_0x4ba707={},_0x174681=[],_0x14cf07=_0x122aea[_0x5d567f(0x202)](_0x5d567f(0x1ec),{'views':[{'state':_0x5d567f(0x1db),'xSplit':0x1}]});for(const _0x5497d5 in _0x2df6a4){_0x4ba707[_0x2df6a4[_0x5497d5]['key']]=_0x2df6a4[_0x5497d5][_0x5d567f(0x1cc)],_0x174681[_0x5d567f(0x1d5)]({'header':_0x2df6a4[_0x5497d5]['header'],'key':(_0xf2db47=_0x2df6a4[_0x5497d5])===null||_0xf2db47===void 0x0?void 0x0:_0xf2db47['key'][_0x5d567f(0x1f9)](/\./g,'_')});}_0x14cf07[_0x5d567f(0x1d1)]=_0x174681;for(const _0x4fe9d3 of _0x1b7fc2){const _0xa9719a={};for(const _0x22bf7d in _0x2df6a4){typeof((_0x200faf=_0x2df6a4[_0x22bf7d])===null||_0x200faf===void 0x0?void 0x0:_0x200faf['handler'])==_0x5d567f(0x1da)?_0xa9719a[_0x2df6a4[_0x22bf7d][_0x5d567f(0x1d0)]['replace'](/\./g,'_')]=await _0x2df6a4[_0x22bf7d][_0x5d567f(0x207)](_0x4fe9d3):_0xa9719a[_0x2df6a4[_0x22bf7d][_0x5d567f(0x1d0)]['replace'](/\./g,'_')]=lodash[_0x5d567f(0x1cb)](_0x4fe9d3,_0x2df6a4[_0x22bf7d][_0x5d567f(0x1d0)],'');}_0x14cf07[_0x5d567f(0x1c5)](_0xa9719a);}let _0x3bfd16='';const _0x35e3cf=_0x416305+'-'+lodash[_0x5d567f(0x1fe)](0x2710,0x1869f)+_0x5d567f(0x1e0);if(_0x542216&&_0x542216[_0x5d567f(0x1e7)]('/'))_0x3bfd16=''+_0x542216;else _0x542216&&!_0x542216['startsWith']('/')&&!_0x542216['startsWith']('\x5c')?_0x3bfd16=this[_0x5d567f(0x1cf)][_0x5d567f(0x1e6)]()+'/'+_0x542216:_0x3bfd16=this[_0x5d567f(0x1cf)][_0x5d567f(0x1e6)]()+_0x5d567f(0x1e4);return(_0x3bfd16[_0x5d567f(0x1d7)]('/')||_0x3bfd16['endsWith']('\x5c'))&&(_0x3bfd16=_0x3bfd16[_0x5d567f(0x1ea)](0x0,_0x3bfd16[_0x5d567f(0x1ef)]-0x1)),_0x3bfd16=_0x3bfd16[_0x5d567f(0x1f9)](/(\\|\/)/g,'/')[_0x5d567f(0x1f9)](/\/{2,}/g,'/'),!fs[_0x5d567f(0x1d9)](_0x3bfd16)&&fs['mkdirSync'](_0x3bfd16,{'recursive':!![]}),await _0x122aea[_0x5d567f(0x1e3)][_0x5d567f(0x1d3)]((_0x3bfd16+'/'+_0x35e3cf)['replace'](/(\\|\/)/g,'/')[_0x5d567f(0x1f9)](/\/{2,}/g,'/')),{'filename':_0x35e3cf,'filepath':(_0x3bfd16[_0x5d567f(0x1ea)]((''+this[_0x5d567f(0x1cf)][_0x5d567f(0x1e6)]())[_0x5d567f(0x1ef)])+'/'+_0x35e3cf)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0x50d671,_0x3de48f){return await koasend(_0x50d671,''+_0x3de48f);}};__decorate([(0x0,core_1[a12_0x1d05b9(0x205)])(),__metadata(a12_0x1d05b9(0x200),Object)],ExcelService[a12_0x1d05b9(0x1d8)],a12_0x1d05b9(0x1cf),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x1d05b9(0x1f3)])(),(0x0,core_1[a12_0x1d05b9(0x1fb)])(core_1[a12_0x1d05b9(0x1e1)][a12_0x1d05b9(0x1ce)])],ExcelService),exports[a12_0x1d05b9(0x1c7)]=ExcelService;function a12_0x4031(){const _0x2462d4=['toString','Provide','3487908SOAmbM','__esModule','5425oJMIMt','export','defineProperty','replace','model','Scope','1846117gQIRem','keys','random','worksheets','design:type','metadata','addWorksheet','value','exceljs','App','Workbook','handler','isNumber','addRow','decorate','ExcelService','275050nfbdze','Api\x20Excel\x20Error:\x20','parse','get','header','getCell','Singleton','app','key','columns','public/xlsx','writeFile','3teLZEY','push','object','endsWith','prototype','existsSync','function','frozen','2672610VGEOkL','8NCzSVi','@midwayjs/core','log','.xlsx','ScopeEnum','904800oqvksP','xlsx','/public/xlsx','col','getAppDir','startsWith','cellCount','getOwnPropertyDescriptor','substring','889734hOJLqA','Sheet\x201','eachCell','findRows','length','270HtllQz','__decorate'];a12_0x4031=function(){return _0x2462d4;};return a12_0x4031();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a13_0x3e81(_0x2b7f2c,_0x35bc48){var _0x23017a=a13_0x2301();return a13_0x3e81=function(_0x3e810c,_0x533147){_0x3e810c=_0x3e810c-0x166;var _0x5e62d0=_0x23017a[_0x3e810c];return _0x5e62d0;},a13_0x3e81(_0x2b7f2c,_0x35bc48);}var a13_0x19f756=a13_0x3e81;(function(_0x1898af,_0x85e2ef){var _0x462895=a13_0x3e81,_0xe1de39=_0x1898af();while(!![]){try{var _0x3277bc=-parseInt(_0x462895(0x168))/0x1*(-parseInt(_0x462895(0x16a))/0x2)+parseInt(_0x462895(0x17a))/0x3*(parseInt(_0x462895(0x169))/0x4)+-parseInt(_0x462895(0x16e))/0x5*(parseInt(_0x462895(0x170))/0x6)+parseInt(_0x462895(0x175))/0x7+parseInt(_0x462895(0x171))/0x8*(-parseInt(_0x462895(0x16d))/0x9)+parseInt(_0x462895(0x176))/0xa*(-parseInt(_0x462895(0x16b))/0xb)+-parseInt(_0x462895(0x167))/0xc*(-parseInt(_0x462895(0x174))/0xd);if(_0x3277bc===_0x85e2ef)break;else _0xe1de39['push'](_0xe1de39['shift']());}catch(_0x175785){_0xe1de39['push'](_0xe1de39['shift']());}}}(a13_0x2301,0xf10b9));function a13_0x2301(){var _0x5db9e8=['5694ChZpsr','8donLLC','ACTION_ROUTE_KEY','__esModule','13PetOcn','5495175LFqNRy','310BnbNxE','ACTION_KEY','defineProperty','anncic-api:apps:config','812487wBlsFg','anncic-api:action:route','9948936WVXDkW','20953mWqoae','8RuxyAz','52DbGMQJ','330627cQTasG','AppsConfigTmp','490653jtyDFQ','3830biqBBe','anncic-api:action'];a13_0x2301=function(){return _0x5db9e8;};return a13_0x2301();}Object[a13_0x19f756(0x178)](exports,a13_0x19f756(0x173),{'value':!![]}),exports[a13_0x19f756(0x16c)]=exports['APPSCONFIG_KEY']=exports['ACTION_ROUTE_KEY']=exports[a13_0x19f756(0x177)]=void 0x0,exports[a13_0x19f756(0x177)]=a13_0x19f756(0x16f),exports[a13_0x19f756(0x172)]=a13_0x19f756(0x166),exports['APPSCONFIG_KEY']=a13_0x19f756(0x179);class AppsConfigTmp{}exports[a13_0x19f756(0x16c)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a14_0x5400(){var _0x38aed6=['13hWNzEa','length','排序方式','integer','number','4938680oeydze','13798690iQzLgP','_isreverse','__metadata','4uRieAI','9yrzrps','55qWGprZ','prototype','valid','function','20pyvaZe','282486kzJPyf','metadata','object','558918EpooEw','897591zzbMPC','trim','PageDTO','RuleType','getOwnPropertyDescriptor','38567076dpGmOc','min','第一页为1,第二页为2','7XdBzCL','__decorate','1:是;0:否','12300816ZvEjnj','defineProperty','分页数量','@anncic-api/validator','string','是否倒序','decorate','__esModule','Rule'];a14_0x5400=function(){return _0x38aed6;};return a14_0x5400();}var a14_0x378477=a14_0xb804;(function(_0x33770f,_0x3d0d3a){var _0x1f5376=a14_0xb804,_0x1e5d41=_0x33770f();while(!![]){try{var _0x49db2d=parseInt(_0x1f5376(0x100))/0x1*(parseInt(_0x1f5376(0x107))/0x2)+parseInt(_0x1f5376(0x10b))/0x3*(-parseInt(_0x1f5376(0x106))/0x4)+parseInt(_0x1f5376(0x102))/0x5*(-parseInt(_0x1f5376(0x10a))/0x6)+-parseInt(_0x1f5376(0x113))/0x7*(parseInt(_0x1f5376(0xfc))/0x8)+parseInt(_0x1f5376(0x101))/0x9*(parseInt(_0x1f5376(0xfd))/0xa)+-parseInt(_0x1f5376(0x116))/0xb+-parseInt(_0x1f5376(0x110))/0xc*(-parseInt(_0x1f5376(0x11f))/0xd);if(_0x49db2d===_0x3d0d3a)break;else _0x1e5d41['push'](_0x1e5d41['shift']());}catch(_0x2b47f5){_0x1e5d41['push'](_0x1e5d41['shift']());}}}(a14_0x5400,0xdc569));function a14_0xb804(_0x4aab6e,_0x104fe7){var _0x5400fe=a14_0x5400();return a14_0xb804=function(_0xb804a0,_0x320c0f){_0xb804a0=_0xb804a0-0xf8;var _0xeb91a2=_0x5400fe[_0xb804a0];return _0xeb91a2;},a14_0xb804(_0x4aab6e,_0x104fe7);}var __decorate=this&&this[a14_0x378477(0x114)]||function(_0x907eb0,_0x3353d2,_0x105200,_0x3e14cb){var _0x31b911=a14_0x378477,_0x3fee5e=arguments[_0x31b911(0xf8)],_0x13915d=_0x3fee5e<0x3?_0x3353d2:_0x3e14cb===null?_0x3e14cb=Object[_0x31b911(0x10f)](_0x3353d2,_0x105200):_0x3e14cb,_0x580a6a;if(typeof Reflect===_0x31b911(0x109)&&typeof Reflect[_0x31b911(0x11c)]===_0x31b911(0x105))_0x13915d=Reflect['decorate'](_0x907eb0,_0x3353d2,_0x105200,_0x3e14cb);else{for(var _0x3599a1=_0x907eb0[_0x31b911(0xf8)]-0x1;_0x3599a1>=0x0;_0x3599a1--)if(_0x580a6a=_0x907eb0[_0x3599a1])_0x13915d=(_0x3fee5e<0x3?_0x580a6a(_0x13915d):_0x3fee5e>0x3?_0x580a6a(_0x3353d2,_0x105200,_0x13915d):_0x580a6a(_0x3353d2,_0x105200))||_0x13915d;}return _0x3fee5e>0x3&&_0x13915d&&Object[_0x31b911(0x117)](_0x3353d2,_0x105200,_0x13915d),_0x13915d;},__metadata=this&&this[a14_0x378477(0xff)]||function(_0x218153,_0x585b2a){var _0x1049a7=a14_0x378477;if(typeof Reflect===_0x1049a7(0x109)&&typeof Reflect[_0x1049a7(0x108)]===_0x1049a7(0x105))return Reflect[_0x1049a7(0x108)](_0x218153,_0x585b2a);};Object['defineProperty'](exports,a14_0x378477(0x11d),{'value':!![]}),exports[a14_0x378477(0x10d)]=void 0x0;const validator_1=require(a14_0x378477(0x119));class PageDTO{}__decorate([(0x0,validator_1[a14_0x378477(0x11e)])('分页',validator_1[a14_0x378477(0x10e)][a14_0x378477(0xfb)]()[a14_0x378477(0xfa)]()[a14_0x378477(0x111)](0x1),a14_0x378477(0x112)),__metadata('design:type',Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x378477(0x11e)])(a14_0x378477(0x118),validator_1[a14_0x378477(0x10e)][a14_0x378477(0xfb)]()[a14_0x378477(0xfa)]()[a14_0x378477(0x111)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x378477(0x103)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x378477(0x11e)])(a14_0x378477(0xf9),validator_1[a14_0x378477(0x10e)][a14_0x378477(0x11a)]()[a14_0x378477(0x10c)]()),__metadata('design:type',String)],PageDTO['prototype'],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x378477(0x11e)])(a14_0x378477(0x11b),validator_1[a14_0x378477(0x10e)][a14_0x378477(0xfb)]()[a14_0x378477(0xfa)]()[a14_0x378477(0x104)](0x0,0x1),a14_0x378477(0x115)),__metadata('design:type',Number)],PageDTO[a14_0x378477(0x103)],a14_0x378477(0xfe),void 0x0),exports[a14_0x378477(0x10d)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.26",
|
|
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.26",
|
|
21
|
+
"@anncic-api/core": "^1.4.26",
|
|
22
|
+
"@anncic-api/event": "^1.4.26",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.26",
|
|
24
|
+
"@anncic-api/validator": "^1.4.26",
|
|
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.26",
|
|
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": "2b46646a074fc14c48509aa692a16a9f012616ef"
|
|
43
43
|
}
|