anncic-api 1.1.37 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/index.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0xeff868=a0_0x23ef;function a0_0x3e75(){var _0x234f8a=['default','/runtime/.upload','2WDimWS','xml','1383129iHYwHd','776asHMqq','form','10NGMAsK','text','206967TBgamX','3361304YpkLmg','20mb','json','176wqfojZ','775428ZzVUJD','zhiulanuiy7892387985hnoi','695JUIpge','dhauo1234420123gg3234901','51093wbVSbQ','3823371MhLDBr','6wByuTZ','appDir'];a0_0x3e75=function(){return _0x234f8a;};return a0_0x3e75();}function a0_0x23ef(_0x397c9d,_0x431260){var _0x3e75ee=a0_0x3e75();return a0_0x23ef=function(_0x23efbc,_0x5d90d7){_0x23efbc=_0x23efbc-0x121;var _0x116cbe=_0x3e75ee[_0x23efbc];return _0x116cbe;},a0_0x23ef(_0x397c9d,_0x431260);}(function(_0x241b02,_0x1b7b67){var _0x97ae2b=a0_0x23ef,_0x48df05=_0x241b02();while(!![]){try{var _0x78d45b=-parseInt(_0x97ae2b(0x134))/0x1*(parseInt(_0x97ae2b(0x12d))/0x2)+-parseInt(_0x97ae2b(0x12f))/0x3+parseInt(_0x97ae2b(0x130))/0x4*(-parseInt(_0x97ae2b(0x125))/0x5)+-parseInt(_0x97ae2b(0x129))/0x6*(-parseInt(_0x97ae2b(0x127))/0x7)+-parseInt(_0x97ae2b(0x135))/0x8+parseInt(_0x97ae2b(0x128))/0x9*(parseInt(_0x97ae2b(0x132))/0xa)+parseInt(_0x97ae2b(0x122))/0xb*(parseInt(_0x97ae2b(0x123))/0xc);if(_0x78d45b===_0x1b7b67)break;else _0x48df05['push'](_0x48df05['shift']());}catch(_0x3aa7d6){_0x48df05['push'](_0x48df05['shift']());}}}(a0_0x3e75,0x55aa3));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0xeff868(0x12b)]=_0x9ec53=>{var _0x422bbc=a0_0xeff868;return{'apitest':!![],'keys':_0x9ec53['name'],'anncicapi':{'timeout':0x1388,'password':_0x422bbc(0x124),'devices':{'DEFAULT':{'secret':_0x422bbc(0x126),'checkcode':_0x422bbc(0x126)}}},'bodyParser':{'enableTypes':[_0x422bbc(0x121),_0x422bbc(0x131),_0x422bbc(0x133),_0x422bbc(0x12e)],'formLimit':_0x422bbc(0x136),'jsonLimit':'20mb','textLimit':_0x422bbc(0x136),'xmlLimit':_0x422bbc(0x136)},'upload':{'tmpdir':_0x9ec53[_0x422bbc(0x12a)]+_0x422bbc(0x12c),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x13fb94=a1_0x3f6a;function a1_0x3f6a(_0x3f9e56,_0x293eaa){var _0x1170ae=a1_0x1170();return a1_0x3f6a=function(_0x3f6aab,_0x43a8d8){_0x3f6aab=_0x3f6aab-0x1b7;var _0x37b9cf=_0x1170ae[_0x3f6aab];return _0x37b9cf;},a1_0x3f6a(_0x3f9e56,_0x293eaa);}function a1_0x1170(){var _0x1cfdc1=['312uZziGI','18WDsmkQ','defineProperty','2300859KtvRTk','854007ZkPfzr','509GTuEcP','7079468vuLaXE','999270KljegU','21IozTnw','9868XFkEyK','3168456fQumDV','default','10zBfztz'];a1_0x1170=function(){return _0x1cfdc1;};return a1_0x1170();}(function(_0x4a2d92,_0x1eedad){var _0x4b197d=a1_0x3f6a,_0x435436=_0x4a2d92();while(!![]){try{var _0x138a40=parseInt(_0x4b197d(0x1be))/0x1*(parseInt(_0x4b197d(0x1b9))/0x2)+-parseInt(_0x4b197d(0x1c1))/0x3*(parseInt(_0x4b197d(0x1c2))/0x4)+-parseInt(_0x4b197d(0x1c0))/0x5+-parseInt(_0x4b197d(0x1ba))/0x6*(-parseInt(_0x4b197d(0x1bd))/0x7)+parseInt(_0x4b197d(0x1c3))/0x8+-parseInt(_0x4b197d(0x1bc))/0x9*(-parseInt(_0x4b197d(0x1b8))/0xa)+-parseInt(_0x4b197d(0x1bf))/0xb;if(_0x138a40===_0x1eedad)break;else _0x435436['push'](_0x435436['shift']());}catch(_0x562804){_0x435436['push'](_0x435436['shift']());}}}(a1_0x1170,0x39b74));Object[a1_0x13fb94(0x1bb)](exports,'__esModule',{'value':!![]}),exports[a1_0x13fb94(0x1b7)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x7095(){const _0x3e5c37=['getConfiguration','6dczJza','mkdirSync','_matchedRoute','length','__esModule','458385ClFgSL','key','target','proceed','log','746808scUoDw','@midwayjs/decorator','devices','keys','dir','7573976zlGORc','koa','19621qPDmkE','requestContext','method','design:type','decorator','ApiService','CustomConfiguration','function','isString','anncic-api','handler','decorate','anncic-apihelper','intercept','REQUEST_OBJ_CTX_KEY','Types','tmpdir','environment','@midwayjs/core','string','@midwayjs/i18n','105860mbGDVb','18128781JyrtUH','defineProperty','getAsync','@midwayjs/upload','Inject','MidwayApplicationManager','MidwayEnvironmentService','isClass','isFunction','toLowerCase','headers','MidwayConfigService','@midwayjs/task','checkConfigKeys','3003CnIQoJ','checksign','__metadata','isArray','__decorate','anncicapi','@anncic-api/validator','application','input','apimit','defaultsDeep','hanlderApplications','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','DEFAULT','./types/action','body','metadata','request','dirs','isNull','registerMethodHandler','getApplications','device','defineProperties','addObject','prototype','object','ACTION_ROUTE_KEY','./service/ApiService','staticFile','config','upload','bodyXml','Anncic-api\x20static-file\x20:\x20mkdir\x20','filterConfig','get','Configuration','context','./config/config.production','616dzxKMe'];a2_0x7095=function(){return _0x3e5c37;};return a2_0x7095();}const a2_0x195461=a2_0x3d7f;function a2_0x3d7f(_0x3be52f,_0x3121be){const _0x709587=a2_0x7095();return a2_0x3d7f=function(_0x3d7fa3,_0x4e96b3){_0x3d7fa3=_0x3d7fa3-0x179;let _0x450c06=_0x709587[_0x3d7fa3];return _0x450c06;},a2_0x3d7f(_0x3be52f,_0x3121be);}(function(_0x50a3ac,_0xfeaced){const _0x5d707d=a2_0x3d7f,_0x1011e8=_0x50a3ac();while(!![]){try{const _0x4979ba=-parseInt(_0x5d707d(0x1af))/0x1+-parseInt(_0x5d707d(0x1a3))/0x2*(-parseInt(_0x5d707d(0x17c))/0x3)+-parseInt(_0x5d707d(0x1cb))/0x4+parseInt(_0x5d707d(0x1aa))/0x5+-parseInt(_0x5d707d(0x1a5))/0x6*(-parseInt(_0x5d707d(0x1b6))/0x7)+-parseInt(_0x5d707d(0x1b4))/0x8+parseInt(_0x5d707d(0x1cc))/0x9;if(_0x4979ba===_0xfeaced)break;else _0x1011e8['push'](_0x1011e8['shift']());}catch(_0x53aa60){_0x1011e8['push'](_0x1011e8['shift']());}}}(a2_0x7095,0xaa2f5));var __decorate=this&&this[a2_0x195461(0x180)]||function(_0x3816e5,_0x3121fc,_0x105701,_0x38a6bb){const _0x1881e9=a2_0x195461;var _0x1f22bd=arguments[_0x1881e9(0x1a8)],_0x3658d2=_0x1f22bd<0x3?_0x3121fc:_0x38a6bb===null?_0x38a6bb=Object['getOwnPropertyDescriptor'](_0x3121fc,_0x105701):_0x38a6bb,_0xdd7247;if(typeof Reflect===_0x1881e9(0x196)&&typeof Reflect[_0x1881e9(0x1c1)]===_0x1881e9(0x1bd))_0x3658d2=Reflect[_0x1881e9(0x1c1)](_0x3816e5,_0x3121fc,_0x105701,_0x38a6bb);else{for(var _0x5281ab=_0x3816e5['length']-0x1;_0x5281ab>=0x0;_0x5281ab--)if(_0xdd7247=_0x3816e5[_0x5281ab])_0x3658d2=(_0x1f22bd<0x3?_0xdd7247(_0x3658d2):_0x1f22bd>0x3?_0xdd7247(_0x3121fc,_0x105701,_0x3658d2):_0xdd7247(_0x3121fc,_0x105701))||_0x3658d2;}return _0x1f22bd>0x3&&_0x3658d2&&Object['defineProperty'](_0x3121fc,_0x105701,_0x3658d2),_0x3658d2;},__metadata=this&&this[a2_0x195461(0x17e)]||function(_0x5cd708,_0x571e45){const _0x5a2dbf=a2_0x195461;if(typeof Reflect==='object'&&typeof Reflect[_0x5a2dbf(0x18c)]===_0x5a2dbf(0x1bd))return Reflect[_0x5a2dbf(0x18c)](_0x5cd708,_0x571e45);};Object[a2_0x195461(0x1cd)](exports,a2_0x195461(0x1a9),{'value':!![]}),exports[a2_0x195461(0x1bc)]=void 0x0;const decorator_1=require(a2_0x195461(0x1b0)),core_1=require(a2_0x195461(0x1c8)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x195461(0x198)),action_1=require(a2_0x195461(0x18a)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x195461(0x1ca)),task=require(a2_0x195461(0x17a)),upload=require(a2_0x195461(0x1cf)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x195461(0x1a2)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x195461(0x182)),anncicHelper=require(a2_0x195461(0x1c2));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x3e2610=a2_0x195461;await this['filterConfig'](),await this[_0x3e2610(0x17b)](),await this['handlerActionRoute'](),await this[_0x3e2610(0x187)]();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x1dbc53=a2_0x195461,_0x258595=this[_0x1dbc53(0x19a)][_0x1dbc53(0x1a4)]();this[_0x1dbc53(0x1ba)][_0x1dbc53(0x190)](action_1[_0x1dbc53(0x197)],_0x1d322d=>{const _0x4e0dfa=_0x1dbc53,_0x2d1573=_0x1d322d[_0x4e0dfa(0x18c)];return{'before':async _0x8ccd1d=>{const _0xac4553=_0x4e0dfa;var _0x546cdc,_0x4d9225;const _0x4ac468=(_0x546cdc=_0x8ccd1d===null||_0x8ccd1d===void 0x0?void 0x0:_0x8ccd1d[_0xac4553(0x1ac)])===null||_0x546cdc===void 0x0?void 0x0:_0x546cdc[core_1[_0xac4553(0x1c4)]];if(_0x4ac468&&(_0x2d1573===null||_0x2d1573===void 0x0?void 0x0:_0x2d1573[_0xac4553(0x185)])){if(!this[_0xac4553(0x1bb)][_0xac4553(0x17d)]((_0x4d9225=_0x4ac468===null||_0x4ac468===void 0x0?void 0x0:_0x4ac468['request'])===null||_0x4d9225===void 0x0?void 0x0:_0x4d9225[_0xac4553(0x1d6)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0xdb56c5=>{const _0x44ab86=_0x4e0dfa;var _0x460291,_0x5ee01c,_0x35c536,_0x1ecd53,_0x2637cf;const _0x3e78eb=(_0x460291=_0xdb56c5===null||_0xdb56c5===void 0x0?void 0x0:_0xdb56c5[_0x44ab86(0x1ac)])===null||_0x460291===void 0x0?void 0x0:_0x460291[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x3e78eb&&(_0x2d1573===null||_0x2d1573===void 0x0?void 0x0:_0x2d1573[_0x44ab86(0x185)])){if(((_0x5ee01c=_0x3e78eb[_0x44ab86(0x1d6)])===null||_0x5ee01c===void 0x0?void 0x0:_0x5ee01c[_0x44ab86(0x192)])&&((_0x2637cf=(_0x1ecd53=(_0x35c536=_0x258595===null||_0x258595===void 0x0?void 0x0:_0x258595[_0x44ab86(0x181)])===null||_0x35c536===void 0x0?void 0x0:_0x35c536[_0x44ab86(0x1b1)])===null||_0x1ecd53===void 0x0?void 0x0:_0x1ecd53[_0x3e78eb[_0x44ab86(0x1d6)][_0x44ab86(0x192)]])===null||_0x2637cf===void 0x0?void 0x0:_0x2637cf[_0x44ab86(0x1c3)])){const _0x108b5a=Array[_0x44ab86(0x17f)](_0x258595[_0x44ab86(0x181)][_0x44ab86(0x1b1)][_0x3e78eb[_0x44ab86(0x1d6)]['device']]['intercept'])?_0x258595['anncicapi'][_0x44ab86(0x1b1)][_0x3e78eb[_0x44ab86(0x1d6)]['device']][_0x44ab86(0x1c3)]:[_0x258595[_0x44ab86(0x181)][_0x44ab86(0x1b1)][_0x3e78eb[_0x44ab86(0x1d6)][_0x44ab86(0x192)]][_0x44ab86(0x1c3)]];for(const _0x1ce04 of _0x108b5a){if(decorator_1[_0x44ab86(0x1c5)][_0x44ab86(0x1d3)](_0x1ce04)||typeof _0x1ce04=='string'){const _0x7eb53d=await _0x3e78eb[_0x44ab86(0x1b7)][_0x44ab86(0x1ce)](_0x1ce04);typeof(_0x7eb53d===null||_0x7eb53d===void 0x0?void 0x0:_0x7eb53d[_0x44ab86(0x1c0)])==_0x44ab86(0x1bd)&&await _0x7eb53d['handler'](typeof(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1b8)])==_0x44ab86(0x1c9)&&(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)])?_0x3e78eb[_0x44ab86(0x1b8)][_0x44ab86(0x1d5)]()+'@'+(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)]):undefined,_0x3e78eb,_0x2d1573);}else decorator_1[_0x44ab86(0x1c5)][_0x44ab86(0x1d4)](_0x1ce04)&&await _0x1ce04(typeof(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb['method'])==_0x44ab86(0x1c9)&&(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)])?_0x3e78eb['method'][_0x44ab86(0x1d5)]()+'@'+(_0x3e78eb===null||_0x3e78eb===void 0x0?void 0x0:_0x3e78eb[_0x44ab86(0x1a7)]):undefined,_0x3e78eb,_0x2d1573);}}}return await _0xdb56c5[_0x44ab86(0x1ad)](..._0xdb56c5['args']);},'afterThrow':(_0x3dfa87,_0xa2278)=>{throw _0xa2278;}};});}async[a2_0x195461(0x187)](){const _0x4b8f80=a2_0x195461;this[_0x4b8f80(0x183)][_0x4b8f80(0x191)]([_0x4b8f80(0x1b5)])['forEach'](_0x167e0b=>{const _0x3e3f54=_0x4b8f80;(_0x167e0b===null||_0x167e0b===void 0x0?void 0x0:_0x167e0b[_0x3e3f54(0x1a1)])&&Object[_0x3e3f54(0x193)](_0x167e0b[_0x3e3f54(0x1a1)],{'ok':{'value':function(_0x3e1c5d,_0x31fe28,_0x30e1ec=0x0){return{'code':_0x30e1ec,'data':_0x3e1c5d,'extra':_0x31fe28};}},'err':{'value':function(_0x4972f9,_0x5180e4,_0x435370=0x1){return{'code':_0x435370,'extra':_0x5180e4,'msg':_0x4972f9};}},'input':{'value':function(_0x3a4185,_0x56133b){const _0x4e3253=_0x3e3f54;var _0x137f91;const _0x1de5b3=lodash[_0x4e3253(0x186)]({},this[_0x4e3253(0x18d)][_0x4e3253(0x18b)]||this[_0x4e3253(0x18d)][((_0x137f91=config===null||config===void 0x0?void 0x0:config[_0x4e3253(0x19c)])===null||_0x137f91===void 0x0?void 0x0:_0x137f91[_0x4e3253(0x1ab)])||'body']||{},this['request']['query']||{});return _0x3a4185?lodash[_0x4e3253(0x19f)](_0x1de5b3,_0x3a4185,_0x56133b):_0x1de5b3;}},'when':{'value':async function(_0x5e17fb,_0x2a3924){const _0x13a241=_0x3e3f54,_0xc33f8=this[_0x13a241(0x184)](_0x5e17fb,null);if(!lodash[_0x13a241(0x18f)](_0xc33f8))return await _0x2a3924(_0xc33f8);}},'only':{'value':function(_0x4ff514){const _0x272f98=_0x3e3f54,_0x54d837={};for(let _0x4847d2=0x0;_0x4847d2<_0x4ff514[_0x272f98(0x1a8)];_0x4847d2++){lodash[_0x272f98(0x17f)](_0x4ff514[_0x4847d2])&&_0x4ff514[_0x4847d2][_0x272f98(0x1a8)]>0x0&&lodash[_0x272f98(0x1be)](_0x4ff514[_0x4847d2][0x0])&&(_0x54d837[_0x4ff514[_0x4847d2][0x0]]=this[_0x272f98(0x184)](_0x4ff514[_0x4847d2][0x0],_0x4ff514[_0x4847d2]['length']>0x1?_0x4ff514[_0x4847d2][0x1]:null));}return _0x54d837;}}});});}async[a2_0x195461(0x19e)](){const _0x269d1b=a2_0x195461;var _0x15f175,_0x1d395e,_0x2cfd93,_0x2ae10f,_0x1177ff,_0x105b25;const _0x2b34b6=this[_0x269d1b(0x19a)][_0x269d1b(0x1a4)]();((_0x1d395e=(_0x15f175=_0x2b34b6===null||_0x2b34b6===void 0x0?void 0x0:_0x2b34b6['anncicapi'])===null||_0x15f175===void 0x0?void 0x0:_0x15f175[_0x269d1b(0x1b1)])===null||_0x1d395e===void 0x0?void 0x0:_0x1d395e[_0x269d1b(0x189)])&&Object[_0x269d1b(0x1b2)](_0x2b34b6[_0x269d1b(0x181)]['devices'])[_0x269d1b(0x1a8)]>0x1&&delete _0x2b34b6[_0x269d1b(0x181)][_0x269d1b(0x1b1)]['DEFAULT'];if((_0x2cfd93=_0x2b34b6===null||_0x2b34b6===void 0x0?void 0x0:_0x2b34b6[_0x269d1b(0x199)])===null||_0x2cfd93===void 0x0?void 0x0:_0x2cfd93[_0x269d1b(0x18e)])for(const _0x93dad1 in _0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)]){((_0x2ae10f=_0x2b34b6['staticFile'][_0x269d1b(0x18e)][_0x93dad1])===null||_0x2ae10f===void 0x0?void 0x0:_0x2ae10f[_0x269d1b(0x1b3)])&&typeof((_0x1177ff=_0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)][_0x93dad1])===null||_0x1177ff===void 0x0?void 0x0:_0x1177ff[_0x269d1b(0x1b3)])=='string'&&!fs['existsSync'](_0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)][_0x93dad1][_0x269d1b(0x1b3)])&&(fs[_0x269d1b(0x1a6)](_0x2b34b6['staticFile'][_0x269d1b(0x18e)][_0x93dad1][_0x269d1b(0x1b3)],{'recursive':!![]}),console[_0x269d1b(0x1ae)](_0x269d1b(0x19d)+_0x2b34b6[_0x269d1b(0x199)][_0x269d1b(0x18e)][_0x93dad1][_0x269d1b(0x1b3)]));}((_0x105b25=_0x2b34b6===null||_0x2b34b6===void 0x0?void 0x0:_0x2b34b6[_0x269d1b(0x19b)])===null||_0x105b25===void 0x0?void 0x0:_0x105b25[_0x269d1b(0x1c6)])&&!fs['existsSync'](_0x2b34b6[_0x269d1b(0x19b)]['tmpdir'])&&(fs[_0x269d1b(0x1a6)](_0x2b34b6[_0x269d1b(0x19b)][_0x269d1b(0x1c6)],{'recursive':!![]}),console['log'](_0x269d1b(0x188)+_0x2b34b6[_0x269d1b(0x19b)][_0x269d1b(0x1c6)])),this[_0x269d1b(0x19a)][_0x269d1b(0x194)](_0x2b34b6);}};__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1[a2_0x195461(0x179)])],CustomConfiguration[a2_0x195461(0x195)],a2_0x195461(0x19a),void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x195461(0x1ba),void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1[a2_0x195461(0x1d1)])],CustomConfiguration[a2_0x195461(0x195)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata(a2_0x195461(0x1b9),core_1[a2_0x195461(0x1d2)])],CustomConfiguration[a2_0x195461(0x195)],a2_0x195461(0x1c7),void 0x0),__decorate([(0x0,decorator_1[a2_0x195461(0x1d0)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x195461(0x195)],a2_0x195461(0x1bb),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x195461(0x1a0)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x195461(0x1bf),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x1f16a0=a2_0xe1af;function a2_0x10f6(){const _0x56bafc=['isNull','headers','3519852xLMNYi','isFunction','Configuration','@anncic-api/event','bodyXml','intercept','request','design:type','MidwayDecoratorService','3091jcrOeZ','./config/config.production','./service/ApiService','decorate','ApiService','existsSync','./exception/ApiError','isClass','input','18092CxjwFp','getAsync','9DEFfZr','apimit','__metadata','checksign','27084DrgTLd','devices','body','config','forEach','@midwayjs/static-file','string','29077044kPIeTC','@anncic-api/cache','method','metadata','9dIzGdT','./config/config.default','MidwayEnvironmentService','@midwayjs/cross-domain','dir','Anncic-api\x20static-file\x20:\x20mkdir\x20','function','965OuaVOq','_matchedRoute','48BwfSss','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','hanlderApplications','get','anncic-api','onReady','@midwayjs/core','getConfiguration','staticFile','koa','@midwayjs/i18n','./types/action','defineProperty','handler','prototype','tmpdir','@midwayjs/upload','dirs','device','14104EfzAmV','REQUEST_OBJ_CTX_KEY','registerMethodHandler','__esModule','checkConfigKeys','Inject','target','getOwnPropertyDescriptor','anncicapi','length','object','@anncic-api/typeorm','@anncic-api/validator','@anncic-api/core','environment','anncic-apihelper','log','CustomConfiguration','query','application','handlerActionRoute','proceed','DEFAULT','defaultsDeep','isArray','mkdirSync','@midwayjs/task','@midwayjs/koa','@midwayjs/decorator','1521136aCXyFU','1280nEifDR','key','ApiError','filterConfig','decorator','upload'];a2_0x10f6=function(){return _0x56bafc;};return a2_0x10f6();}(function(_0x4656d0,_0x117000){const _0x381bd5=a2_0xe1af,_0x1bacf6=_0x4656d0();while(!![]){try{const _0x3ee3ba=-parseInt(_0x381bd5(0x11a))/0x1*(parseInt(_0x381bd5(0x107))/0x2)+parseInt(_0x381bd5(0xfe))/0x3*(-parseInt(_0x381bd5(0x152))/0x4)+-parseInt(_0x381bd5(0x105))/0x5*(parseInt(_0x381bd5(0x158))/0x6)+-parseInt(_0x381bd5(0x140))/0x7+-parseInt(_0x381bd5(0x137))/0x8*(parseInt(_0x381bd5(0x154))/0x9)+-parseInt(_0x381bd5(0x138))/0xa*(-parseInt(_0x381bd5(0x149))/0xb)+parseInt(_0x381bd5(0xfa))/0xc;if(_0x3ee3ba===_0x117000)break;else _0x1bacf6['push'](_0x1bacf6['shift']());}catch(_0x37a119){_0x1bacf6['push'](_0x1bacf6['shift']());}}}(a2_0x10f6,0x8485a));var __decorate=this&&this['__decorate']||function(_0x87e738,_0x36ff52,_0x17bcb0,_0x198a50){const _0xb0a5b9=a2_0xe1af;var _0x2719ee=arguments[_0xb0a5b9(0x123)],_0x1e0dab=_0x2719ee<0x3?_0x36ff52:_0x198a50===null?_0x198a50=Object[_0xb0a5b9(0x121)](_0x36ff52,_0x17bcb0):_0x198a50,_0xa8b730;if(typeof Reflect===_0xb0a5b9(0x124)&&typeof Reflect[_0xb0a5b9(0x14c)]===_0xb0a5b9(0x104))_0x1e0dab=Reflect['decorate'](_0x87e738,_0x36ff52,_0x17bcb0,_0x198a50);else{for(var _0x15822d=_0x87e738['length']-0x1;_0x15822d>=0x0;_0x15822d--)if(_0xa8b730=_0x87e738[_0x15822d])_0x1e0dab=(_0x2719ee<0x3?_0xa8b730(_0x1e0dab):_0x2719ee>0x3?_0xa8b730(_0x36ff52,_0x17bcb0,_0x1e0dab):_0xa8b730(_0x36ff52,_0x17bcb0))||_0x1e0dab;}return _0x2719ee>0x3&&_0x1e0dab&&Object[_0xb0a5b9(0x113)](_0x36ff52,_0x17bcb0,_0x1e0dab),_0x1e0dab;},__metadata=this&&this[a2_0x1f16a0(0x156)]||function(_0x405e03,_0x9eb48e){const _0x585703=a2_0x1f16a0;if(typeof Reflect===_0x585703(0x124)&&typeof Reflect[_0x585703(0xfd)]===_0x585703(0x104))return Reflect[_0x585703(0xfd)](_0x405e03,_0x9eb48e);};Object['defineProperty'](exports,a2_0x1f16a0(0x11d),{'value':!![]}),exports[a2_0x1f16a0(0x12b)]=void 0x0;function a2_0xe1af(_0x249c58,_0x445562){const _0x10f66f=a2_0x10f6();return a2_0xe1af=function(_0xe1afec,_0x5edde5){_0xe1afec=_0xe1afec-0xf9;let _0x1ff91d=_0x10f66f[_0xe1afec];return _0x1ff91d;},a2_0xe1af(_0x249c58,_0x445562);}const decorator_1=require(a2_0x1f16a0(0x136)),core_1=require(a2_0x1f16a0(0x10d)),ApiError_1=require(a2_0x1f16a0(0x14f)),ApiService_1=require(a2_0x1f16a0(0x14b)),action_1=require(a2_0x1f16a0(0x112)),fs=require('fs'),koa=require(a2_0x1f16a0(0x135)),i18n=require(a2_0x1f16a0(0x111)),task=require(a2_0x1f16a0(0x134)),upload=require(a2_0x1f16a0(0x117)),staticFile=require(a2_0x1f16a0(0x15d)),crossDomain=require(a2_0x1f16a0(0x101)),ConfigDefault=require(a2_0x1f16a0(0xff)),ConfigProduction=require(a2_0x1f16a0(0x14a)),anncic=require(a2_0x1f16a0(0x127)),anncicCache=require(a2_0x1f16a0(0xfb)),anncicEvent=require(a2_0x1f16a0(0x143)),anncicTypeorm=require(a2_0x1f16a0(0x125)),anncicValidator=require(a2_0x1f16a0(0x126)),anncicHelper=require(a2_0x1f16a0(0x129));let CustomConfiguration=class CustomConfiguration{async[a2_0x1f16a0(0x10c)](){const _0xd581c3=a2_0x1f16a0;await this['filterConfig'](),await this[_0xd581c3(0x11e)](),await this['handlerActionRoute'](),await this[_0xd581c3(0x109)]();}async[a2_0x1f16a0(0x11e)](){}async[a2_0x1f16a0(0x12e)](){const _0x229c8c=a2_0x1f16a0,_0x3f8c51=this[_0x229c8c(0x15b)]['getConfiguration']();this[_0x229c8c(0x13c)][_0x229c8c(0x11c)](action_1['ACTION_ROUTE_KEY'],_0x156127=>{const _0x314d7b=_0x229c8c,_0x52f760=_0x156127[_0x314d7b(0xfd)];return{'before':async _0x16aa10=>{const _0x31290a=_0x314d7b;var _0x385ad4,_0x32801d;const _0x326a2e=(_0x385ad4=_0x16aa10===null||_0x16aa10===void 0x0?void 0x0:_0x16aa10[_0x31290a(0x120)])===null||_0x385ad4===void 0x0?void 0x0:_0x385ad4[core_1[_0x31290a(0x11b)]];if(_0x326a2e&&(_0x52f760===null||_0x52f760===void 0x0?void 0x0:_0x52f760[_0x31290a(0x155)])){if(!this[_0x31290a(0x14d)][_0x31290a(0x157)]((_0x32801d=_0x326a2e===null||_0x326a2e===void 0x0?void 0x0:_0x326a2e['request'])===null||_0x32801d===void 0x0?void 0x0:_0x32801d[_0x31290a(0x13f)]))throw new AnnError(ApiError_1[_0x31290a(0x13a)]['HEADERS_SIGNATURE']);}},'around':async _0xcbebfa=>{const _0x5303d4=_0x314d7b;var _0x208af1,_0x1984a9,_0x12edd3,_0x1cd991,_0x102be6;const _0x5f33e2=(_0x208af1=_0xcbebfa===null||_0xcbebfa===void 0x0?void 0x0:_0xcbebfa[_0x5303d4(0x120)])===null||_0x208af1===void 0x0?void 0x0:_0x208af1[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x5f33e2&&(_0x52f760===null||_0x52f760===void 0x0?void 0x0:_0x52f760[_0x5303d4(0x155)])){if(((_0x1984a9=_0x5f33e2[_0x5303d4(0x13f)])===null||_0x1984a9===void 0x0?void 0x0:_0x1984a9['device'])&&((_0x102be6=(_0x1cd991=(_0x12edd3=_0x3f8c51===null||_0x3f8c51===void 0x0?void 0x0:_0x3f8c51[_0x5303d4(0x122)])===null||_0x12edd3===void 0x0?void 0x0:_0x12edd3[_0x5303d4(0x159)])===null||_0x1cd991===void 0x0?void 0x0:_0x1cd991[_0x5f33e2[_0x5303d4(0x13f)][_0x5303d4(0x119)]])===null||_0x102be6===void 0x0?void 0x0:_0x102be6[_0x5303d4(0x145)])){const _0xc5f85e=Array[_0x5303d4(0x132)](_0x3f8c51[_0x5303d4(0x122)][_0x5303d4(0x159)][_0x5f33e2[_0x5303d4(0x13f)][_0x5303d4(0x119)]]['intercept'])?_0x3f8c51[_0x5303d4(0x122)][_0x5303d4(0x159)][_0x5f33e2[_0x5303d4(0x13f)][_0x5303d4(0x119)]][_0x5303d4(0x145)]:[_0x3f8c51[_0x5303d4(0x122)][_0x5303d4(0x159)][_0x5f33e2[_0x5303d4(0x13f)]['device']][_0x5303d4(0x145)]];for(const _0x19deca of _0xc5f85e){if(decorator_1['Types'][_0x5303d4(0x150)](_0x19deca)||typeof _0x19deca==_0x5303d4(0xf9)){const _0x1d6f79=await _0x5f33e2['requestContext'][_0x5303d4(0x153)](_0x19deca);typeof(_0x1d6f79===null||_0x1d6f79===void 0x0?void 0x0:_0x1d6f79[_0x5303d4(0x114)])=='function'&&await _0x1d6f79[_0x5303d4(0x114)](typeof(_0x5f33e2===null||_0x5f33e2===void 0x0?void 0x0:_0x5f33e2[_0x5303d4(0xfc)])==_0x5303d4(0xf9)&&(_0x5f33e2===null||_0x5f33e2===void 0x0?void 0x0:_0x5f33e2['_matchedRoute'])?_0x5f33e2['method']['toLowerCase']()+'@'+(_0x5f33e2===null||_0x5f33e2===void 0x0?void 0x0:_0x5f33e2[_0x5303d4(0x106)]):undefined,_0x5f33e2,_0x52f760);}else decorator_1['Types'][_0x5303d4(0x141)](_0x19deca)&&await _0x19deca(typeof(_0x5f33e2===null||_0x5f33e2===void 0x0?void 0x0:_0x5f33e2[_0x5303d4(0xfc)])==_0x5303d4(0xf9)&&(_0x5f33e2===null||_0x5f33e2===void 0x0?void 0x0:_0x5f33e2[_0x5303d4(0x106)])?_0x5f33e2['method']['toLowerCase']()+'@'+(_0x5f33e2===null||_0x5f33e2===void 0x0?void 0x0:_0x5f33e2[_0x5303d4(0x106)]):undefined,_0x5f33e2,_0x52f760);}}}return await _0xcbebfa[_0x5303d4(0x12f)](..._0xcbebfa['args']);},'afterThrow':(_0x1e043e,_0x543aaa)=>{throw _0x543aaa;}};});}async['hanlderApplications'](){const _0x4f2711=a2_0x1f16a0;this['application']['getApplications']([_0x4f2711(0x110)])[_0x4f2711(0x15c)](_0x10e454=>{(_0x10e454===null||_0x10e454===void 0x0?void 0x0:_0x10e454['context'])&&Object['defineProperties'](_0x10e454['context'],{'ok':{'value':function(_0x231deb,_0x225900,_0x40b797=0x0){return{'code':_0x40b797,'data':_0x231deb,'extra':_0x225900};}},'input':{'value':function(_0x4fdbf3,_0x3be6e7){const _0x5b5216=a2_0xe1af;var _0x2a9fa6;const _0x2b4abd=lodash[_0x5b5216(0x131)]({},this[_0x5b5216(0x146)][_0x5b5216(0x15a)]||this[_0x5b5216(0x146)][((_0x2a9fa6=config===null||config===void 0x0?void 0x0:config[_0x5b5216(0x144)])===null||_0x2a9fa6===void 0x0?void 0x0:_0x2a9fa6[_0x5b5216(0x139)])||_0x5b5216(0x15a)]||{},this[_0x5b5216(0x146)][_0x5b5216(0x12c)]||{});return _0x4fdbf3?lodash[_0x5b5216(0x10a)](_0x2b4abd,_0x4fdbf3,_0x3be6e7):_0x2b4abd;}},'when':{'value':async function(_0x3141ff,_0x4acee0){const _0x4be9bc=a2_0xe1af,_0x852a82=this[_0x4be9bc(0x151)](_0x3141ff,null);if(!lodash[_0x4be9bc(0x13e)](_0x852a82))return await _0x4acee0(_0x852a82);}},'only':{'value':function(_0x416d70){const _0x5dadc6=a2_0xe1af,_0x2cac9e={};for(let _0x1e7df3=0x0;_0x1e7df3<_0x416d70[_0x5dadc6(0x123)];_0x1e7df3++){lodash[_0x5dadc6(0x132)](_0x416d70[_0x1e7df3])&&_0x416d70[_0x1e7df3][_0x5dadc6(0x123)]>0x0&&lodash['isString'](_0x416d70[_0x1e7df3][0x0])&&(_0x2cac9e[_0x416d70[_0x1e7df3][0x0]]=this[_0x5dadc6(0x151)](_0x416d70[_0x1e7df3][0x0],_0x416d70[_0x1e7df3][_0x5dadc6(0x123)]>0x1?_0x416d70[_0x1e7df3][0x1]:null));}return _0x2cac9e;}}});});}async[a2_0x1f16a0(0x13b)](){const _0x1cea8f=a2_0x1f16a0;var _0x48b0bc,_0xfc0f96,_0x32e1e1,_0x119922,_0x578c4a,_0x13bca1;const _0xf540a6=this[_0x1cea8f(0x15b)][_0x1cea8f(0x10e)]();((_0xfc0f96=(_0x48b0bc=_0xf540a6===null||_0xf540a6===void 0x0?void 0x0:_0xf540a6[_0x1cea8f(0x122)])===null||_0x48b0bc===void 0x0?void 0x0:_0x48b0bc['devices'])===null||_0xfc0f96===void 0x0?void 0x0:_0xfc0f96[_0x1cea8f(0x130)])&&Object['keys'](_0xf540a6[_0x1cea8f(0x122)][_0x1cea8f(0x159)])[_0x1cea8f(0x123)]>0x1&&delete _0xf540a6['anncicapi'][_0x1cea8f(0x159)][_0x1cea8f(0x130)];if((_0x32e1e1=_0xf540a6===null||_0xf540a6===void 0x0?void 0x0:_0xf540a6['staticFile'])===null||_0x32e1e1===void 0x0?void 0x0:_0x32e1e1[_0x1cea8f(0x118)])for(const _0x42b28b in _0xf540a6[_0x1cea8f(0x10f)][_0x1cea8f(0x118)]){((_0x119922=_0xf540a6[_0x1cea8f(0x10f)][_0x1cea8f(0x118)][_0x42b28b])===null||_0x119922===void 0x0?void 0x0:_0x119922[_0x1cea8f(0x102)])&&typeof((_0x578c4a=_0xf540a6[_0x1cea8f(0x10f)][_0x1cea8f(0x118)][_0x42b28b])===null||_0x578c4a===void 0x0?void 0x0:_0x578c4a[_0x1cea8f(0x102)])==_0x1cea8f(0xf9)&&!fs[_0x1cea8f(0x14e)](_0xf540a6[_0x1cea8f(0x10f)][_0x1cea8f(0x118)][_0x42b28b][_0x1cea8f(0x102)])&&(fs['mkdirSync'](_0xf540a6[_0x1cea8f(0x10f)][_0x1cea8f(0x118)][_0x42b28b][_0x1cea8f(0x102)],{'recursive':!![]}),console[_0x1cea8f(0x12a)](_0x1cea8f(0x103)+_0xf540a6[_0x1cea8f(0x10f)][_0x1cea8f(0x118)][_0x42b28b][_0x1cea8f(0x102)]));}((_0x13bca1=_0xf540a6===null||_0xf540a6===void 0x0?void 0x0:_0xf540a6[_0x1cea8f(0x13d)])===null||_0x13bca1===void 0x0?void 0x0:_0x13bca1[_0x1cea8f(0x116)])&&!fs['existsSync'](_0xf540a6['upload']['tmpdir'])&&(fs[_0x1cea8f(0x133)](_0xf540a6['upload']['tmpdir'],{'recursive':!![]}),console['log'](_0x1cea8f(0x108)+_0xf540a6['upload']['tmpdir'])),this[_0x1cea8f(0x15b)]['addObject'](_0xf540a6);}};__decorate([(0x0,decorator_1[a2_0x1f16a0(0x11f)])(),__metadata(a2_0x1f16a0(0x147),core_1['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x1f16a0(0x15b),void 0x0),__decorate([(0x0,decorator_1[a2_0x1f16a0(0x11f)])(),__metadata(a2_0x1f16a0(0x147),core_1[a2_0x1f16a0(0x148)])],CustomConfiguration[a2_0x1f16a0(0x115)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x1f16a0(0x11f)])(),__metadata(a2_0x1f16a0(0x147),core_1['MidwayApplicationManager'])],CustomConfiguration['prototype'],a2_0x1f16a0(0x12d),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a2_0x1f16a0(0x100)])],CustomConfiguration['prototype'],a2_0x1f16a0(0x128),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x1f16a0(0x14d),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1f16a0(0x142)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1f16a0(0x10b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1f16a0(0x12b)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x1b3510=a3_0x4db4;(function(_0x152784,_0x44acaf){const _0x3eb379=a3_0x4db4,_0x54fb5a=_0x152784();while(!![]){try{const _0x1d0504=parseInt(_0x3eb379(0x1b5))/0x1*(-parseInt(_0x3eb379(0x1a7))/0x2)+-parseInt(_0x3eb379(0x1b9))/0x3*(-parseInt(_0x3eb379(0x1cf))/0x4)+parseInt(_0x3eb379(0x1b6))/0x5*(parseInt(_0x3eb379(0x1a9))/0x6)+-parseInt(_0x3eb379(0x1cb))/0x7*(parseInt(_0x3eb379(0x1ad))/0x8)+-parseInt(_0x3eb379(0x1b3))/0x9+-parseInt(_0x3eb379(0x1a6))/0xa*(-parseInt(_0x3eb379(0x1a5))/0xb)+parseInt(_0x3eb379(0x1cc))/0xc;if(_0x1d0504===_0x44acaf)break;else _0x54fb5a['push'](_0x54fb5a['shift']());}catch(_0x178b68){_0x54fb5a['push'](_0x54fb5a['shift']());}}}(a3_0x5299,0xa1227));function a3_0x5299(){const _0x1ef342=['split','2836755SWMByw','module','39kRsWcJ','5Ihfurr','-action','AppsConfigTmp','63qPGeum','existsSync','cwd','indexOf','replace','APPSCONFIG_KEY','/controller/文件下','length','@midwayjs/decorator','apps/','isArray','filter','saveModule','middleware','/apps/','/config.','splice','middlewareIgnore','35gTahqT','4440204lYJLxP','../types/action','filepath','171484nQgYcZ','substring','\x20文件请放在app/controller/文件下','__esModule','saveClassMetadata','join','parseRoute','startsWith','Controller','match','route','prefix','15653xQZnmB','4570psYJXp','41150ePNylS','endsWith','4471458dXIicK','trim','toLowerCase','app/controller/','1421176ZqSfNZ','ACTION_KEY','Action','-controller','/controller/'];a3_0x5299=function(){return _0x1ef342;};return a3_0x5299();}Object['defineProperty'](exports,a3_0x1b3510(0x1d2),{'value':!![]}),exports[a3_0x1b3510(0x1d5)]=exports['Action']=void 0x0;function a3_0x4db4(_0x598f47,_0x4ca9f5){const _0x5299e8=a3_0x5299();return a3_0x4db4=function(_0x4db427,_0x4e4294){_0x4db427=_0x4db427-0x1a4;let _0x3f56d0=_0x5299e8[_0x4db427];return _0x3f56d0;},a3_0x4db4(_0x598f47,_0x4ca9f5);}const fs=require('fs'),decorator_1=require(a3_0x1b3510(0x1c1)),action_1=require(a3_0x1b3510(0x1cd));function Action(_0x449a93,_0x2a4b19,_0x18d1a8={'middleware':[],'sensitive':!![]}){return _0x29c390=>{const _0x186aad=a3_0x4db4;_0x18d1a8['tagName']=_0x2a4b19;const _0x205cc5=parseRoute(_0x449a93);if(_0x205cc5['module']){_0x18d1a8['prefix']=_0x18d1a8[_0x186aad(0x1a4)]?'/'+_0x205cc5['module']+'/'+_0x18d1a8[_0x186aad(0x1a4)]:'/'+_0x205cc5[_0x186aad(0x1d9)];_0x205cc5[_0x186aad(0x1a4)]&&(_0x18d1a8[_0x186aad(0x1a4)]='/'+_0x205cc5[_0x186aad(0x1a4)]+'/'+_0x18d1a8['prefix']);if(fs[_0x186aad(0x1ba)](_0x205cc5['rootpath']+_0x186aad(0x1c7)+_0x205cc5['module']+_0x186aad(0x1c8)+(lodash[_0x186aad(0x1a8)](_0x205cc5[_0x186aad(0x1ce)],'ts')?'ts':'js'))){const _0x461d8a=include(_0x205cc5['rootpath']+'/apps/'+_0x205cc5[_0x186aad(0x1b4)]+'/config.'+(lodash[_0x186aad(0x1a8)](_0x205cc5[_0x186aad(0x1ce)],'ts')?'ts':'js'));if(_0x461d8a[_0x186aad(0x1c6)]&&lodash[_0x186aad(0x1c3)](_0x461d8a[_0x186aad(0x1c6)])&&_0x461d8a[_0x186aad(0x1c6)][_0x186aad(0x1c0)]>0x0)for(let _0x4d4821 in _0x461d8a['middleware']){_0x461d8a[_0x186aad(0x1ca)][_0x186aad(0x1bc)](_0x461d8a[_0x186aad(0x1c6)][_0x4d4821])==-0x1&&_0x18d1a8[_0x186aad(0x1c6)]['push'](_0x461d8a[_0x186aad(0x1c6)][_0x4d4821]);}const _0x4c3818=(0x0,decorator_1['getClassMetadata'])(action_1[_0x186aad(0x1be)],action_1[_0x186aad(0x1b8)])||{};_0x4c3818[''+_0x205cc5[_0x186aad(0x1b4)]]=_0x461d8a,(0x0,decorator_1[_0x186aad(0x1d3)])(action_1['APPSCONFIG_KEY'],_0x4c3818,action_1['AppsConfigTmp']);}_0x18d1a8[_0x186aad(0x1a4)]=_0x18d1a8[_0x186aad(0x1a4)][_0x186aad(0x1ab)]()[_0x186aad(0x1bd)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x186aad(0x1c5)])(action_1[_0x186aad(0x1ae)],_0x29c390),(0x0,decorator_1[_0x186aad(0x1d7)])(_0x18d1a8['prefix'],_0x18d1a8)(_0x29c390),(0x0,decorator_1[_0x186aad(0x1d3)])(action_1['ACTION_KEY'],{'prefix':_0x18d1a8[_0x186aad(0x1a4)],'pprefix':_0x205cc5['prefix'],'module':_0x205cc5[_0x186aad(0x1b4)],'filepath':_0x205cc5[_0x186aad(0x1ce)],'routerOptions':_0x18d1a8},_0x29c390);}else _0x18d1a8['prefix']=_0x18d1a8[_0x186aad(0x1a4)]?'/'+_0x18d1a8[_0x186aad(0x1a4)]:'/'+_0x205cc5[_0x186aad(0x1d9)],_0x205cc5[_0x186aad(0x1a4)]&&(_0x18d1a8[_0x186aad(0x1a4)]='/'+_0x205cc5[_0x186aad(0x1a4)]+'/'+_0x18d1a8[_0x186aad(0x1a4)]),_0x18d1a8['prefix']=_0x18d1a8['prefix'][_0x186aad(0x1ab)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x186aad(0x1c5)])(action_1[_0x186aad(0x1ae)],_0x29c390),(0x0,decorator_1['Controller'])(_0x18d1a8[_0x186aad(0x1a4)],_0x18d1a8)(_0x29c390),(0x0,decorator_1[_0x186aad(0x1d3)])(action_1[_0x186aad(0x1ae)],{'prefix':_0x18d1a8[_0x186aad(0x1a4)],'module':_0x205cc5[_0x186aad(0x1b4)],'pprefix':_0x205cc5[_0x186aad(0x1a4)],'filepath':_0x205cc5[_0x186aad(0x1ce)],'routerOptions':_0x18d1a8},_0x29c390);};}exports[a3_0x1b3510(0x1af)]=Action;function parseRoute(_0x19e16d){const _0x33d509=a3_0x1b3510;_0x19e16d=_0x19e16d['replace'](/(\\|\/)/g,'/');const _0x59dbc8=process[_0x33d509(0x1bb)]()[_0x33d509(0x1bd)](/(\\|\/)/g,'/'),_0x5f126a=_0x19e16d[_0x33d509(0x1d0)](0x0,_0x59dbc8['length']+_0x19e16d[_0x33d509(0x1d0)](_0x59dbc8[_0x33d509(0x1c0)]+0x1)[_0x33d509(0x1bc)]('/')+0x1),_0x3fb9e0=_0x19e16d[_0x33d509(0x1d0)](_0x5f126a[_0x33d509(0x1c0)]+0x1)[_0x33d509(0x1bd)](/(\\|\/)/g,'/'),_0x880b8c={'route':'','prefix':![],'module':![],'rootpath':_0x5f126a,'filepath':_0x3fb9e0};if(_0x3fb9e0['startsWith']('app/controller/')){const _0x37da3a=_0x3fb9e0[_0x33d509(0x1d0)](_0x33d509(0x1ac)[_0x33d509(0x1c0)])[_0x33d509(0x1b2)]('/')[_0x33d509(0x1c4)](_0x45629c=>_0x45629c&&_0x45629c[_0x33d509(0x1aa)]());return _0x37da3a[_0x33d509(0x1c0)]>0x1&&(_0x880b8c[_0x33d509(0x1a4)]=_0x37da3a[0x0][_0x33d509(0x1ab)](),_0x37da3a[_0x33d509(0x1c9)](0x0,0x1)),_0x880b8c['route']=('/'+_0x37da3a[_0x33d509(0x1d4)]('/'))[_0x33d509(0x1bd)](/(\.ts|\.js)$/,'')[_0x33d509(0x1bd)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x33d509(0x1d4)]('-')['toLowerCase']()[_0x33d509(0x1bd)](/\/\-/g,'/'),_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1a8)](_0x33d509(0x1b7))&&(_0x880b8c[_0x33d509(0x1d9)]=_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1d0)](0x0,_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1c0)]-0x7)),_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1a8)](_0x33d509(0x1b0))&&(_0x880b8c[_0x33d509(0x1d9)]=_0x880b8c['route'][_0x33d509(0x1d0)](0x0,_0x880b8c[_0x33d509(0x1d9)]['length']-0xb)),_0x880b8c;}else{if(_0x3fb9e0['startsWith'](_0x33d509(0x1c2))){const _0x31aa26=_0x3fb9e0[_0x33d509(0x1d0)](0x0,_0x3fb9e0[_0x33d509(0x1bc)](_0x33d509(0x1c7))+0x5),_0x2bdafd=_0x3fb9e0[_0x33d509(0x1d0)](_0x31aa26[_0x33d509(0x1c0)]+0x1)[_0x33d509(0x1bd)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x3fb9e0[_0x33d509(0x1d6)](_0x33d509(0x1c2)+_0x2bdafd+'/controller/')){const _0x16a0f6=_0x3fb9e0[_0x33d509(0x1d0)]((_0x31aa26+'/'+_0x2bdafd+_0x33d509(0x1b1))[_0x33d509(0x1c0)])[_0x33d509(0x1b2)]('/')[_0x33d509(0x1c4)](_0x548939=>_0x548939&&_0x548939[_0x33d509(0x1aa)]());return _0x16a0f6[_0x33d509(0x1c0)]>0x1&&(_0x880b8c['prefix']=_0x16a0f6[0x0]['toLowerCase'](),_0x16a0f6[_0x33d509(0x1c9)](0x0,0x1)),_0x880b8c[_0x33d509(0x1b4)]=_0x2bdafd,_0x880b8c[_0x33d509(0x1d9)]=('/'+_0x2bdafd+'/'+_0x16a0f6[_0x33d509(0x1d4)]('/'))[_0x33d509(0x1bd)](/(\.ts|\.js)$/,'')[_0x33d509(0x1bd)](/\/{2,}/,'/')[_0x33d509(0x1d8)](/[\/|A-Z]*[^A-Z]+/g)[_0x33d509(0x1d4)]('-')['toLowerCase']()[_0x33d509(0x1bd)](/\/\-/g,'/'),_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1a8)](_0x33d509(0x1b7))&&(_0x880b8c[_0x33d509(0x1d9)]=_0x880b8c['route']['substring'](0x0,_0x880b8c[_0x33d509(0x1d9)]['length']-0x7)),_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1a8)](_0x33d509(0x1b0))&&(_0x880b8c[_0x33d509(0x1d9)]=_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1d0)](0x0,_0x880b8c[_0x33d509(0x1d9)][_0x33d509(0x1c0)]-0xb)),_0x880b8c;}throw new Error(_0x3fb9e0+'\x20文件请放在apps/'+_0x2bdafd+_0x33d509(0x1bf));}}throw new Error(_0x3fb9e0+_0x33d509(0x1d1));}exports[a3_0x1b3510(0x1d5)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x467aa0=a4_0x13cd;function a4_0x13cd(_0x19da57,_0x55f9eb){const _0x1f3f4a=a4_0x1f3f();return a4_0x13cd=function(_0x13cd9e,_0x3a02a9){_0x13cd9e=_0x13cd9e-0xdd;let _0x164e30=_0x1f3f4a[_0x13cd9e];return _0x164e30;},a4_0x13cd(_0x19da57,_0x55f9eb);}(function(_0x37540d,_0x38ddce){const _0x40ea45=a4_0x13cd,_0x48cebe=_0x37540d();while(!![]){try{const _0x5a1670=parseInt(_0x40ea45(0xee))/0x1+parseInt(_0x40ea45(0xdd))/0x2*(parseInt(_0x40ea45(0xe8))/0x3)+-parseInt(_0x40ea45(0xe1))/0x4+parseInt(_0x40ea45(0xf9))/0x5+-parseInt(_0x40ea45(0xe9))/0x6+-parseInt(_0x40ea45(0xf6))/0x7+parseInt(_0x40ea45(0xec))/0x8*(parseInt(_0x40ea45(0xe2))/0x9);if(_0x5a1670===_0x38ddce)break;else _0x48cebe['push'](_0x48cebe['shift']());}catch(_0x5d9d14){_0x48cebe['push'](_0x48cebe['shift']());}}}(a4_0x1f3f,0x831e5));Object[a4_0x467aa0(0xf4)](exports,a4_0x467aa0(0xf5),{'value':!![]}),exports[a4_0x467aa0(0xf7)]=void 0x0;const validator_1=require(a4_0x467aa0(0xea)),decorator_1=require(a4_0x467aa0(0xdf)),action_1=require(a4_0x467aa0(0xe3));function a4_0x1f3f(){const _0x1d38cc=['Api','middleware','3151005BzOKMJ','description','RequestMapping','del','indexOf','middlewareIgnore','49366USXNUd','attachClassMetadata','@midwayjs/decorator','apimit','3749528HPvEIE','1553571YyjxsA','../types/action','utc','assign','ACTION_ROUTE_KEY','Validator','69rFYSID','835746wKVpKP','@anncic-api/validator','validate','16udLOQa','createCustomMethodDecorator','487908lxwWCZ','filter','delete','routerName','toLowerCase','length','defineProperty','__esModule','2921254uEOykl'];a4_0x1f3f=function(){return _0x1d38cc;};return a4_0x1f3f();}function Api(_0x171f4e,_0x5ce905='get',_0x4b2506='/',_0x3ec1bb={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1f47b5,_0x4b0a41,_0x56fdf4)=>{const _0x42b372=a4_0x13cd;var _0x4b9e2b,_0x4ed8c1,_0x5b35b9;!_0x3ec1bb[_0x42b372(0xf8)]&&(_0x3ec1bb[_0x42b372(0xf8)]=[]);!((_0x4b9e2b=_0x3ec1bb===null||_0x3ec1bb===void 0x0?void 0x0:_0x3ec1bb[_0x42b372(0xeb)])===null||_0x4b9e2b===void 0x0?void 0x0:_0x4b9e2b['validationOptions'])&&(_0x3ec1bb['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x42b372(0xe4)}});if(((_0x4ed8c1=_0x3ec1bb===null||_0x3ec1bb===void 0x0?void 0x0:_0x3ec1bb['middleware'])===null||_0x4ed8c1===void 0x0?void 0x0:_0x4ed8c1[_0x42b372(0xf3)])>0x0&&((_0x5b35b9=_0x3ec1bb===null||_0x3ec1bb===void 0x0?void 0x0:_0x3ec1bb['middlewareIgnore'])===null||_0x5b35b9===void 0x0?void 0x0:_0x5b35b9[_0x42b372(0xf3)])>0x0)for(let _0x314dd0 in _0x3ec1bb[_0x42b372(0xf8)]){_0x3ec1bb[_0x42b372(0xfe)][_0x42b372(0xfd)](_0x3ec1bb[_0x42b372(0xf8)][_0x314dd0])!==-0x1&&(_0x3ec1bb[_0x42b372(0xf8)][_0x314dd0]=null);}_0x3ec1bb[_0x42b372(0xf1)]=_0x171f4e,(0x0,validator_1[_0x42b372(0xe7)])(_0x3ec1bb[_0x42b372(0xeb)])(_0x1f47b5,_0x4b0a41,_0x56fdf4),(0x0,decorator_1[_0x42b372(0xfb)])(Object[_0x42b372(0xe5)](_0x3ec1bb,{'path':_0x4b2506,'requestMethod':(_0x5ce905==_0x42b372(0xfc)?_0x42b372(0xf0):_0x5ce905)[_0x42b372(0xf2)]()}))(_0x1f47b5,_0x4b0a41,_0x56fdf4),(0x0,decorator_1[_0x42b372(0xde)])(action_1[_0x42b372(0xe6)],{'path':_0x4b2506,'method':_0x4b0a41,'apimit':_0x3ec1bb[_0x42b372(0xe0)],'routerName':_0x3ec1bb[_0x42b372(0xf1)],'description':_0x3ec1bb[_0x42b372(0xfa)],'middleware':(_0x3ec1bb[_0x42b372(0xf8)]||[])[_0x42b372(0xef)](_0x52b74e=>!!_0x52b74e),'requestMethod':(_0x5ce905=='del'?_0x42b372(0xf0):_0x5ce905)[_0x42b372(0xf2)]()},_0x1f47b5),(0x0,decorator_1[_0x42b372(0xed)])(action_1[_0x42b372(0xe6)],{'path':_0x4b2506,'method':_0x4b0a41,'apimit':_0x3ec1bb[_0x42b372(0xe0)],'routerName':_0x3ec1bb[_0x42b372(0xf1)],'description':_0x3ec1bb[_0x42b372(0xfa)],'middleware':(_0x3ec1bb[_0x42b372(0xf8)]||[])['filter'](_0x4db59f=>!!_0x4db59f),'requestMethod':(_0x5ce905==_0x42b372(0xfc)?_0x42b372(0xf0):_0x5ce905)[_0x42b372(0xf2)]()})(_0x1f47b5,_0x4b0a41,_0x56fdf4);};}exports[a4_0x467aa0(0xf7)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x360f10=a5_0x46b8;function a5_0x46b8(_0x32038b,_0x1547bb){const _0x513308=a5_0x5133();return a5_0x46b8=function(_0x46b84f,_0x5310e2){_0x46b84f=_0x46b84f-0xb5;let _0x3fc35b=_0x513308[_0x46b84f];return _0x3fc35b;},a5_0x46b8(_0x32038b,_0x1547bb);}(function(_0x1b1d9c,_0x156a4c){const _0x476c3c=a5_0x46b8,_0x4161fe=_0x1b1d9c();while(!![]){try{const _0x32e956=-parseInt(_0x476c3c(0xc7))/0x1+parseInt(_0x476c3c(0xb5))/0x2+parseInt(_0x476c3c(0xc6))/0x3*(parseInt(_0x476c3c(0xc4))/0x4)+-parseInt(_0x476c3c(0xc8))/0x5+parseInt(_0x476c3c(0xba))/0x6*(-parseInt(_0x476c3c(0xcd))/0x7)+parseInt(_0x476c3c(0xbc))/0x8+parseInt(_0x476c3c(0xb9))/0x9*(parseInt(_0x476c3c(0xc9))/0xa);if(_0x32e956===_0x156a4c)break;else _0x4161fe['push'](_0x4161fe['shift']());}catch(_0x37d69a){_0x4161fe['push'](_0x4161fe['shift']());}}}(a5_0x5133,0x625ac));Object[a5_0x360f10(0xcb)](exports,a5_0x360f10(0xc2),{'value':!![]}),exports[a5_0x360f10(0xca)]=void 0x0;const decorator_1=require(a5_0x360f10(0xc5)),core_1=require(a5_0x360f10(0xbd)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x4b5ba2=a5_0x360f10(0xc1),_0x270dd2){return(_0x146f06,_0x5a774b,_0x17f1e6)=>{const _0x55ebfc=a5_0x46b8;return(0x0,decorator_1['RequestMapping'])({'path':_0x4b5ba2,'requestMethod':_0x55ebfc(0xcc)})(_0x146f06,_0x5a774b,_0x17f1e6),_0x17f1e6['value']=async function(..._0x207e14){const _0x3ea643=_0x55ebfc;var _0x451d96;const _0x52ee36=(_0x451d96=this[core_1[_0x3ea643(0xce)]])===null||_0x451d96===void 0x0?void 0x0:_0x451d96[_0x3ea643(0xbb)];if(_0x52ee36&&_0x52ee36[_0x3ea643(0xb8)](_0x3ea643(0xc3))){const _0xe1c2a3=await _0x52ee36[_0x3ea643(0xcf)]()['getAsync'](ApitestService_1[_0x3ea643(0xc0)]),_0x44d018=await _0x52ee36[_0x3ea643(0xcf)]()[_0x3ea643(0xbe)](core_1[_0x3ea643(0xbf)]);return _0x44d018['isDevelopmentEnvironment']()&&(_0x270dd2[_0x3ea643(0xb7)]=!![]),await _0xe1c2a3[_0x3ea643(0xb6)](_0x270dd2);}return'';},_0x17f1e6;};}exports['Apitest']=Apitest;function a5_0x5133(){const _0x3a1c13=['get','2488507rriICI','REQUEST_OBJ_CTX_KEY','getApplicationContext','1435316pAxObZ','apidoc','filepath','getConfig','1683zZlwsG','6EIPrnx','app','761240gMgKcY','@midwayjs/core','getAsync','MidwayEnvironmentService','ApitestService','/apitest','__esModule','apitest','1200IbbtjT','@midwayjs/decorator','2676CYTUYr','31416JWHfcl','3937475dfXQGR','26570TAFjLa','Apitest','defineProperty'];a5_0x5133=function(){return _0x3a1c13;};return a5_0x5133();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x1a23d6=a6_0x440d;(function(_0xc10e53,_0x336d67){var _0x34c62e=a6_0x440d,_0x1bfd4b=_0xc10e53();while(!![]){try{var _0x4707a5=-parseInt(_0x34c62e(0x1ec))/0x1+parseInt(_0x34c62e(0x1ea))/0x2+parseInt(_0x34c62e(0x1e6))/0x3+-parseInt(_0x34c62e(0x1fa))/0x4+-parseInt(_0x34c62e(0x1f2))/0x5+-parseInt(_0x34c62e(0x1e8))/0x6*(parseInt(_0x34c62e(0x1f0))/0x7)+-parseInt(_0x34c62e(0x1ed))/0x8*(-parseInt(_0x34c62e(0x1e9))/0x9);if(_0x4707a5===_0x336d67)break;else _0x1bfd4b['push'](_0x1bfd4b['shift']());}catch(_0x2f535d){_0x1bfd4b['push'](_0x1bfd4b['shift']());}}}(a6_0x3757,0x3a0c2));function a6_0x440d(_0x4d0fe1,_0x4e38b0){var _0x375737=a6_0x3757();return a6_0x440d=function(_0x440d7d,_0x3f689e){_0x440d7d=_0x440d7d-0x1e2;var _0x4f26b8=_0x375737[_0x440d7d];return _0x4f26b8;},a6_0x440d(_0x4d0fe1,_0x4e38b0);}function a6_0x3757(){var _0x1b9fb7=['signature验证失败','function','1320018QpDibA','object','11514hsfWCj','8825607GqZEDk','252446AbkHEf','design:type','434568euOeUM','8EBrRFZ','__decorate','ApiError','1225evqZns','HEADERS_SIGNATURE','1454405yWGKJG','TIMEOUT','length','__esModule','defineProperty','metadata','__metadata','HEADERS_LACK','991264GFrrwv','请使用正确的设备','网络繁忙,请稍后重试','HEADERS_DEVICE','getOwnPropertyDescriptor'];a6_0x3757=function(){return _0x1b9fb7;};return a6_0x3757();}var __decorate=this&&this[a6_0x1a23d6(0x1ee)]||function(_0x43e62a,_0x3563f6,_0x119b0a,_0x2a0111){var _0x4ab642=a6_0x1a23d6,_0x37e0dd=arguments[_0x4ab642(0x1f4)],_0x43ab73=_0x37e0dd<0x3?_0x3563f6:_0x2a0111===null?_0x2a0111=Object[_0x4ab642(0x1e3)](_0x3563f6,_0x119b0a):_0x2a0111,_0x590bea;if(typeof Reflect===_0x4ab642(0x1e7)&&typeof Reflect['decorate']==='function')_0x43ab73=Reflect['decorate'](_0x43e62a,_0x3563f6,_0x119b0a,_0x2a0111);else{for(var _0x686982=_0x43e62a[_0x4ab642(0x1f4)]-0x1;_0x686982>=0x0;_0x686982--)if(_0x590bea=_0x43e62a[_0x686982])_0x43ab73=(_0x37e0dd<0x3?_0x590bea(_0x43ab73):_0x37e0dd>0x3?_0x590bea(_0x3563f6,_0x119b0a,_0x43ab73):_0x590bea(_0x3563f6,_0x119b0a))||_0x43ab73;}return _0x37e0dd>0x3&&_0x43ab73&&Object[_0x4ab642(0x1f6)](_0x3563f6,_0x119b0a,_0x43ab73),_0x43ab73;},__metadata=this&&this[a6_0x1a23d6(0x1f8)]||function(_0x18b717,_0x49b171){var _0x2e8cb5=a6_0x1a23d6;if(typeof Reflect===_0x2e8cb5(0x1e7)&&typeof Reflect[_0x2e8cb5(0x1f7)]===_0x2e8cb5(0x1e5))return Reflect['metadata'](_0x18b717,_0x49b171);};Object[a6_0x1a23d6(0x1f6)](exports,a6_0x1a23d6(0x1f5),{'value':!![]}),exports[a6_0x1a23d6(0x1ef)]=void 0x0;class ApiError{}ApiError[a6_0x1a23d6(0x1f3)]=0x3d7e31,ApiError[a6_0x1a23d6(0x1f9)]=0x3d7e32,ApiError[a6_0x1a23d6(0x1e2)]=0x3d7e33,ApiError['HEADERS_CHECKCODE']=0x3d7e34,ApiError[a6_0x1a23d6(0x1f1)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x1a23d6(0x1fc)),__metadata(a6_0x1a23d6(0x1eb),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x1a23d6(0x1eb),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x1a23d6(0x1fb)),__metadata('design:type',Object)],ApiError,a6_0x1a23d6(0x1e2),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x1a23d6(0x1eb),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x1a23d6(0x1e4)),__metadata(a6_0x1a23d6(0x1eb),Object)],ApiError,a6_0x1a23d6(0x1f1),void 0x0),exports[a6_0x1a23d6(0x1ef)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x94307e=a7_0x4e70;(function(_0x579dc5,_0x26a434){const _0x2a57b1=a7_0x4e70,_0x52f842=_0x579dc5();while(!![]){try{const _0x4b16e8=parseInt(_0x2a57b1(0x121))/0x1+-parseInt(_0x2a57b1(0x12a))/0x2+-parseInt(_0x2a57b1(0x124))/0x3+-parseInt(_0x2a57b1(0x129))/0x4*(-parseInt(_0x2a57b1(0x12b))/0x5)+-parseInt(_0x2a57b1(0x128))/0x6*(-parseInt(_0x2a57b1(0x12d))/0x7)+-parseInt(_0x2a57b1(0x125))/0x8*(-parseInt(_0x2a57b1(0x12c))/0x9)+-parseInt(_0x2a57b1(0x12e))/0xa;if(_0x4b16e8===_0x26a434)break;else _0x52f842['push'](_0x52f842['shift']());}catch(_0x4b9798){_0x52f842['push'](_0x52f842['shift']());}}}(a7_0x1432,0xb2521));function a7_0x1432(){const _0x327ba9=['APPSCONFIG_KEY','AppsConfigTmp','190086sbRaeI','248ErZnvN','getAppsConfig','defineProperty','251310jSWVEQ','4cjiyKX','2892066LYaxkR','3552010IvWhlB','364887tbcUuV','28WHuCJg','9014270CKbNMH','get','../types/action','@midwayjs/decorator','__esModule','1006448izCsCT'];a7_0x1432=function(){return _0x327ba9;};return a7_0x1432();}Object[a7_0x94307e(0x127)](exports,a7_0x94307e(0x132),{'value':!![]}),exports[a7_0x94307e(0x126)]=void 0x0;const decorator_1=require(a7_0x94307e(0x131)),action_1=require(a7_0x94307e(0x130));function a7_0x4e70(_0x23e187,_0x2f90e9){const _0x143286=a7_0x1432();return a7_0x4e70=function(_0x4e708a,_0x43a020){_0x4e708a=_0x4e708a-0x121;let _0x3c95f9=_0x143286[_0x4e708a];return _0x3c95f9;},a7_0x4e70(_0x23e187,_0x2f90e9);}function getAppsConfig(_0x3af83a){const _0x18ef1e=a7_0x94307e,_0x255d6d=(0x0,decorator_1['getClassMetadata'])(action_1[_0x18ef1e(0x122)],action_1[_0x18ef1e(0x123)])||{};return _0x3af83a?lodash[_0x18ef1e(0x12f)](_0x255d6d,_0x3af83a):_0x255d6d;}exports[a7_0x94307e(0x126)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x525475=a8_0x54a2;(function(_0x138e4,_0x547f66){const _0x785bbc=a8_0x54a2,_0x420a3a=_0x138e4();while(!![]){try{const _0x2e8cb0=-parseInt(_0x785bbc(0x13c))/0x1+parseInt(_0x785bbc(0x122))/0x2+parseInt(_0x785bbc(0x14a))/0x3+parseInt(_0x785bbc(0xfc))/0x4*(parseInt(_0x785bbc(0x142))/0x5)+-parseInt(_0x785bbc(0x138))/0x6*(-parseInt(_0x785bbc(0x110))/0x7)+parseInt(_0x785bbc(0x12a))/0x8+parseInt(_0x785bbc(0x107))/0x9*(-parseInt(_0x785bbc(0x139))/0xa);if(_0x2e8cb0===_0x547f66)break;else _0x420a3a['push'](_0x420a3a['shift']());}catch(_0x2b9bf8){_0x420a3a['push'](_0x420a3a['shift']());}}}(a8_0x1bd1,0xebb91));Object[a8_0x525475(0x12f)](exports,a8_0x525475(0x13e),{'value':!![]}),exports[a8_0x525475(0x126)]=void 0x0;const lodash_1=require(a8_0x525475(0x145)),validator_1=require(a8_0x525475(0x10a)),decorator_1=require(a8_0x525475(0x147)),decorator_2=require('@midwayjs/decorator'),decorator_3=require('@midwayjs/decorator'),action_1=require('../types/action');function getRoutes(_0x4f2a9b={'prefix':'/','module':![]}){const _0x242ec4=a8_0x525475;var _0x504660,_0x42204c;const _0x44170f=(0x0,decorator_3[_0x242ec4(0x12e)])(action_1['ACTION_KEY']),_0x4e692e={},_0x31501f=Array[_0x242ec4(0x11e)](_0x4f2a9b[_0x242ec4(0xff)]||[])?_0x4f2a9b[_0x242ec4(0xff)]||[]:[_0x4f2a9b[_0x242ec4(0xff)]];_0x5c2565:for(const _0x2dfc4a of _0x44170f){let _0x335e1c=(0x0,decorator_3['getClassMetadata'])(action_1[_0x242ec4(0x133)],_0x2dfc4a),_0x4531c0=(0x0,decorator_3[_0x242ec4(0xf7)])(action_1['ACTION_ROUTE_KEY'],_0x2dfc4a);if(_0x335e1c&&_0x4531c0){let _0x3a5d57=_0x335e1c['prefix'],_0x32229b={};if(_0x4f2a9b[_0x242ec4(0x148)]&&(0x0,lodash_1[_0x242ec4(0x136)])(_0x335e1c,_0x242ec4(0x148),![])!=_0x4f2a9b['module'])continue _0x5c2565;else{if(_0x4f2a9b['module']===![]&&!!(0x0,lodash_1['get'])(_0x335e1c,_0x242ec4(0x148),null))continue _0x5c2565;}if(_0x4f2a9b['prefix']&&!_0x3a5d57['startsWith'](_0x4f2a9b[_0x242ec4(0x117)]))continue _0x5c2565;_0x3a5d57!=='/'?(_0x32229b[_0x242ec4(0x140)]=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x100)])||(/^\//[_0x242ec4(0x13d)](_0x3a5d57)?_0x3a5d57['split']('/')[0x1]:_0x3a5d57),_0x32229b[_0x242ec4(0x124)]=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x124)])||_0x32229b['summary'],_0x32229b[_0x242ec4(0x127)]=[]):(_0x32229b[_0x242ec4(0x140)]=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x100)])||_0x242ec4(0x14e),_0x32229b['description']=(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x12d)][_0x242ec4(0x124)])||'',_0x32229b[_0x242ec4(0x127)]=[]);_0x4f2a9b[_0x242ec4(0x120)]&&(_0x32229b[_0x242ec4(0x120)]=_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c['filepath']);(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0xf8)])&&(_0x32229b['prefix']=_0x335e1c['pprefix']);(_0x335e1c===null||_0x335e1c===void 0x0?void 0x0:_0x335e1c[_0x242ec4(0x148)])&&(_0x32229b[_0x242ec4(0x148)]=_0x335e1c['module']);let _0x508598=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x242ec4(0x143)],_0x2dfc4a)||{};if(typeof _0x4531c0[Symbol['iterator']]==='function')for(let _0x5de12a of _0x4531c0){let _0x38b2c9={};_0x38b2c9[_0x242ec4(0x121)]=_0x5de12a[_0x242ec4(0x128)],_0x38b2c9[_0x242ec4(0x13a)]=(_0x3a5d57+_0x5de12a[_0x242ec4(0xfe)])[_0x242ec4(0x118)](/\/{1,}/,'/'),_0x38b2c9['summary']=(_0x5de12a===null||_0x5de12a===void 0x0?void 0x0:_0x5de12a[_0x242ec4(0x131)])||_0x32229b[_0x242ec4(0x140)]||_0x242ec4(0x14e),_0x38b2c9[_0x242ec4(0x124)]=(_0x5de12a===null||_0x5de12a===void 0x0?void 0x0:_0x5de12a[_0x242ec4(0x124)])||'',_0x38b2c9[_0x242ec4(0x13f)]=[];if(!(0x0,lodash_1[_0x242ec4(0x129)])(_0x38b2c9[_0x242ec4(0x13a)],_0x242ec4(0x132))&&!(0x0,lodash_1[_0x242ec4(0x129)])(_0x38b2c9[_0x242ec4(0x13a)],_0x242ec4(0x11a))&&_0x31501f[_0x242ec4(0xfa)](_0x38b2c9[_0x242ec4(0x13a)])===-0x1){if(!(_0x4f2a9b===null||_0x4f2a9b===void 0x0?void 0x0:_0x4f2a9b[_0x242ec4(0x101)])){let _0x25e760=(0x0,decorator_3[_0x242ec4(0x13b)])(new _0x2dfc4a(),_0x5de12a[_0x242ec4(0x121)]);for(const _0x52b64b in _0x25e760){let _0x4c893f=(_0x504660=_0x508598[_0x5de12a[_0x242ec4(0x121)]])===null||_0x504660===void 0x0?void 0x0:_0x504660[_0x242ec4(0x150)](_0x1aa9fe=>_0x1aa9fe[_0x242ec4(0x146)]==_0x52b64b&&_0x1aa9fe['key']===decorator_2[_0x242ec4(0x141)]&&(_0x1aa9fe===null||_0x1aa9fe===void 0x0?void 0x0:_0x1aa9fe[_0x242ec4(0x105)]));if(_0x4c893f===null||_0x4c893f===void 0x0?void 0x0:_0x4c893f[_0x242ec4(0x105)]){let _0x4cbd8b=convertTypeToString(_0x4c893f[_0x242ec4(0x105)][_0x242ec4(0x106)]||0x0);if([_0x242ec4(0x10f),_0x242ec4(0x104)]['indexOf'](_0x4cbd8b)!=-0x1&&_0x4c893f[_0x242ec4(0x105)][_0x242ec4(0x11f)][_0x242ec4(0xfa)](':')==-0x1&&!_0x38b2c9[_0x242ec4(0x13f)]['find'](_0xa2097e=>_0xa2097e[_0x242ec4(0x144)]==_0x4c893f['metadata'][_0x242ec4(0x11f)]))_0x38b2c9[_0x242ec4(0x13f)][_0x242ec4(0x14b)]({'key':_0x4c893f[_0x242ec4(0x105)][_0x242ec4(0x11f)],'title':_0x4c893f['metadata'][_0x242ec4(0x11f)],'type':convertSchemaType(_0x25e760[_0x4c893f[_0x242ec4(0x146)]][_0x242ec4(0x123)]),'required':![],'default':'','desc':''});else{if(_0x4cbd8b==_0x242ec4(0x11d)){let _0x22d23d=((_0x42204c=_0x4c893f===null||_0x4c893f===void 0x0?void 0x0:_0x4c893f[_0x242ec4(0x105)])===null||_0x42204c===void 0x0?void 0x0:_0x42204c[_0x242ec4(0x11f)])||'file';_0x22d23d[_0x242ec4(0xfa)](':')==-0x1&&!_0x38b2c9[_0x242ec4(0x13f)][_0x242ec4(0x150)](_0x17173f=>_0x17173f[_0x242ec4(0x144)]==_0x22d23d&&_0x17173f[_0x242ec4(0x106)]=='file')&&_0x38b2c9['request']['push']({'key':_0x22d23d,'title':_0x242ec4(0x116)+_0x22d23d,'type':_0x242ec4(0x11d),'required':!![],'default':'','desc':''});}}}else{const _0x1c0d5e=(0x0,decorator_3[_0x242ec4(0x11b)])(validator_1[_0x242ec4(0x135)],_0x25e760[_0x52b64b]);_0x1c0d5e&&_0x38b2c9[_0x242ec4(0x13f)][_0x242ec4(0x14b)](...getJoiRequest(_0x1c0d5e));}}}_0x32229b[_0x242ec4(0x127)][_0x242ec4(0x14b)](_0x38b2c9);}}if(_0x32229b[_0x242ec4(0x127)][_0x242ec4(0x10d)]>0x0){let _0x5e6f7a=_0x4e692e[_0x3a5d57];_0x5e6f7a?(_0x5e6f7a[_0x242ec4(0x140)]!=_0x32229b[_0x242ec4(0x140)]&&(_0x5e6f7a[_0x242ec4(0x140)]=_0x5e6f7a['summary']+','+_0x32229b[_0x242ec4(0x140)]),_0x5e6f7a[_0x242ec4(0x124)]!=_0x32229b[_0x242ec4(0x124)]&&(_0x5e6f7a[_0x242ec4(0x124)]=_0x5e6f7a[_0x242ec4(0x124)]+','+_0x32229b[_0x242ec4(0x124)]),_0x5e6f7a[_0x242ec4(0x127)]=_0x5e6f7a['routes'][_0x242ec4(0xf6)](_0x32229b[_0x242ec4(0x127)]),_0x4e692e[_0x3a5d57]=_0x5e6f7a):_0x4e692e[_0x3a5d57]=_0x32229b;}}}return _0x4e692e;}exports[a8_0x525475(0x126)]=getRoutes;function a8_0x1bd1(){const _0x25602e=['PARAM','indexOf','FILESSTREAM','458364QQlyUH','Number','path','filter','tagName','noreq','boolean','flags.description','body','metadata','type','9hSQLiF','number','object','@anncic-api/validator','required','log','length','min','query','42tqUWyb','keys','-array','Object','title','allow','文件上传-','prefix','replace','rules','/static/apitest','getClassExtendedMetadata','flags.presence','file','isArray','propertyData','filepath','method','859368sxAhyT','name','description','limit','getRoutes','routes','requestMethod','startsWith','10792536EyGJYg','RouteParamTypes','max','routerOptions','listModule','defineProperty','header','routerName','static/apitest','ACTION_KEY','items','RULES_KEY','get','args','849474zjZPNf','43928070QIqLfa','route','getMethodParamTypes','534842CfcdRN','test','__esModule','request','summary','WEB_ROUTER_PARAM_KEY','60SjQpmK','INJECT_CUSTOM_PARAM','key','lodash','parameterIndex','@midwayjs/decorator','module','children','5669559QtGFBm','push','FIELDS','Boolean','default','FILESTREAM','find','只允许:[','QUERY','describe','File','flags.label','concat','getClassMetadata','pprefix'];a8_0x1bd1=function(){return _0x25602e;};return a8_0x1bd1();}function a8_0x54a2(_0x10b5d6,_0x4633e9){const _0x1bd1fa=a8_0x1bd1();return a8_0x54a2=function(_0x54a27a,_0x316f11){_0x54a27a=_0x54a27a-0xf1;let _0x2665ce=_0x1bd1fa[_0x54a27a];return _0x2665ce;},a8_0x54a2(_0x10b5d6,_0x4633e9);}function getJoiRequest(_0x1bd843){const _0x210f25=a8_0x525475,_0x471a42=[];for(let _0x4bf363 in _0x1bd843){const _0x2ddeef={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3a7a21=typeof _0x1bd843[_0x4bf363][_0x210f25(0xf3)]=='function'?_0x1bd843[_0x4bf363][_0x210f25(0xf3)]():_0x1bd843[_0x4bf363];_0x2ddeef[_0x210f25(0x144)]=_0x4bf363,_0x2ddeef[_0x210f25(0x106)]=_0x3a7a21[_0x210f25(0x106)],_0x2ddeef[_0x210f25(0x114)]=(0x0,lodash_1['get'])(_0x3a7a21,_0x210f25(0xf5),_0x4bf363),_0x2ddeef[_0x210f25(0x14e)]=(0x0,lodash_1[_0x210f25(0x136)])(_0x3a7a21,'flags.default',''),_0x2ddeef[_0x210f25(0x10b)]=(0x0,lodash_1[_0x210f25(0x136)])(_0x3a7a21,_0x210f25(0x11c),'')==_0x210f25(0x10b),_0x2ddeef['description']=(0x0,lodash_1[_0x210f25(0x136)])(_0x3a7a21,_0x210f25(0x103),'');if(_0x3a7a21['type']==_0x210f25(0x109))_0x2ddeef[_0x210f25(0x149)]=getJoiRequest(_0x3a7a21[_0x210f25(0x111)]);else _0x3a7a21[_0x210f25(0x106)]=='array'&&_0x3a7a21[_0x210f25(0x134)]&&Array[_0x210f25(0x11e)](_0x3a7a21[_0x210f25(0x134)])&&_0x3a7a21[_0x210f25(0x134)][0x0]&&console[_0x210f25(0x10c)](_0x4bf363+_0x210f25(0x112),_0x3a7a21);_0x3a7a21[_0x210f25(0x115)]&&Array[_0x210f25(0x11e)](_0x3a7a21[_0x210f25(0x115)])&&_0x3a7a21[_0x210f25(0x115)][_0x210f25(0x10d)]>0x0&&(_0x2ddeef['description']=_0x210f25(0xf1)+_0x3a7a21[_0x210f25(0x115)]['join'](',')+'];'+_0x2ddeef[_0x210f25(0x124)]);if(_0x2ddeef[_0x210f25(0x144)]&&_0x2ddeef[_0x210f25(0x106)]){const _0x23f44a={};for(const _0x2afa9d of _0x3a7a21[_0x210f25(0x119)]||[]){if(_0x2afa9d[_0x210f25(0x123)]==='min'&&_0x2afa9d[_0x210f25(0x137)])_0x23f44a[_0x210f25(0x10e)]=_0x2afa9d[_0x210f25(0x137)][_0x210f25(0x125)];else _0x2afa9d[_0x210f25(0x123)]===_0x210f25(0x12c)&&(_0x23f44a[_0x210f25(0x12c)]=_0x2afa9d[_0x210f25(0x137)][_0x210f25(0x125)]);}_0x2ddeef['rules']=_0x23f44a;}_0x2ddeef[_0x210f25(0x144)]&&_0x2ddeef['title']&&_0x471a42[_0x210f25(0x14b)](_0x2ddeef);}return _0x471a42;}function convertSchemaType(_0x2eb77e){const _0x1230c9=a8_0x525475;switch(_0x2eb77e){case _0x1230c9(0x113):return _0x1230c9(0x109);case _0x1230c9(0x14d):return _0x1230c9(0x102);case _0x1230c9(0xfd):return _0x1230c9(0x108);case'String':return'string';case _0x1230c9(0xf4):return _0x1230c9(0x11d);default:return'string';}}function convertTypeToString(_0x129c94){const _0x245000=a8_0x525475;switch(_0x129c94){case decorator_1[_0x245000(0x12b)]['HEADERS']:return'header';case decorator_1['RouteParamTypes'][_0x245000(0xf2)]:return _0x245000(0x10f);case decorator_1['RouteParamTypes'][_0x245000(0xf9)]:return _0x245000(0xfe);case decorator_1[_0x245000(0x12b)]['BODY']:return _0x245000(0x104);case decorator_1[_0x245000(0x12b)][_0x245000(0x14c)]:case decorator_1[_0x245000(0x12b)][_0x245000(0xfb)]:case decorator_1[_0x245000(0x12b)][_0x245000(0x14f)]:return _0x245000(0x11d);default:return _0x245000(0x130);}}
|
|
1
|
+
'use strict';const a8_0x2f1d4a=a8_0x45e4;(function(_0x5b10a1,_0x2f439e){const _0x29b73c=a8_0x45e4,_0x47a36b=_0x5b10a1();while(!![]){try{const _0x560220=parseInt(_0x29b73c(0x126))/0x1*(-parseInt(_0x29b73c(0x127))/0x2)+-parseInt(_0x29b73c(0x118))/0x3+parseInt(_0x29b73c(0xfe))/0x4*(-parseInt(_0x29b73c(0x13d))/0x5)+-parseInt(_0x29b73c(0x107))/0x6*(-parseInt(_0x29b73c(0x12c))/0x7)+parseInt(_0x29b73c(0x103))/0x8*(parseInt(_0x29b73c(0x137))/0x9)+parseInt(_0x29b73c(0x14a))/0xa+parseInt(_0x29b73c(0x14e))/0xb;if(_0x560220===_0x2f439e)break;else _0x47a36b['push'](_0x47a36b['shift']());}catch(_0x57527e){_0x47a36b['push'](_0x47a36b['shift']());}}}(a8_0x4afe,0x791df));function a8_0x45e4(_0x902b28,_0x378b88){const _0x4afee1=a8_0x4afe();return a8_0x45e4=function(_0x45e430,_0x20fdc5){_0x45e430=_0x45e430-0xfa;let _0x3a3319=_0x4afee1[_0x45e430];return _0x3a3319;},a8_0x45e4(_0x902b28,_0x378b88);}Object[a8_0x2f1d4a(0x13b)](exports,'__esModule',{'value':!![]}),exports[a8_0x2f1d4a(0x125)]=void 0x0;const lodash_1=require(a8_0x2f1d4a(0x109)),validator_1=require(a8_0x2f1d4a(0x11e)),decorator_1=require(a8_0x2f1d4a(0x146)),decorator_2=require(a8_0x2f1d4a(0x146)),decorator_3=require(a8_0x2f1d4a(0x146)),action_1=require(a8_0x2f1d4a(0x153));function a8_0x4afe(){const _0x568c15=['boolean','48762HFQRAs','allow','lodash','isArray','min','find','flags.description','log','parameterIndex','File','RULES_KEY','pprefix','HEADERS','getClassExtendedMetadata','number','filter','iterator','1739895UuzULU','length','push','ACTION_ROUTE_KEY','flags.default','method','@anncic-api/validator','split','ACTION_KEY','header','name','max','prefix','getRoutes','610562EhvQpC','2yRHGrl','required','array','getClassMetadata','routerOptions','581PcLTVY','request','routerName','RouteParamTypes','join','replace','PARAM','noreq','key','String','module','532566qpHsfr','routes','file','route','defineProperty','keys','1051020xyFXfN','describe','children','只允许:[','static/apitest','BODY','metadata','default','requestMethod','@midwayjs/decorator','indexOf','get','summary','6406770BkxMQG','type','tagName','test','5095860msZsxh','path','propertyData','body','Object','../types/action','文件上传-','concat','string','startsWith','getMethodParamTypes','items','title','4GZsOmM','object','description','args','WEB_ROUTER_PARAM_KEY','16mAgsxw','flags.presence','filepath'];a8_0x4afe=function(){return _0x568c15;};return a8_0x4afe();}function getRoutes(_0x162725={'prefix':'/','module':![]}){const _0x1fd69b=a8_0x2f1d4a;var _0x37db5f,_0x2748b1;const _0x22598d=(0x0,decorator_3['listModule'])(action_1[_0x1fd69b(0x120)]),_0x16df00={},_0x2f1d93=Array[_0x1fd69b(0x10a)](_0x162725[_0x1fd69b(0x116)]||[])?_0x162725[_0x1fd69b(0x116)]||[]:[_0x162725[_0x1fd69b(0x116)]];_0x3b16fb:for(const _0x56c848 of _0x22598d){let _0x3194fc=(0x0,decorator_3[_0x1fd69b(0x12a)])(action_1['ACTION_KEY'],_0x56c848),_0x7990b1=(0x0,decorator_3[_0x1fd69b(0x12a)])(action_1[_0x1fd69b(0x11b)],_0x56c848);if(_0x3194fc&&_0x7990b1){let _0x3f6ead=_0x3194fc[_0x1fd69b(0x124)],_0x5a200a={};if(_0x162725[_0x1fd69b(0x136)]&&(0x0,lodash_1[_0x1fd69b(0x148)])(_0x3194fc,_0x1fd69b(0x136),![])!=_0x162725['module'])continue _0x3b16fb;else{if(_0x162725[_0x1fd69b(0x136)]===![]&&!!(0x0,lodash_1['get'])(_0x3194fc,_0x1fd69b(0x136),null))continue _0x3b16fb;}if(_0x162725[_0x1fd69b(0x124)]&&!_0x3f6ead[_0x1fd69b(0xfa)](_0x162725[_0x1fd69b(0x124)]))continue _0x3b16fb;_0x3f6ead!=='/'?(_0x5a200a['summary']=(_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc[_0x1fd69b(0x12b)][_0x1fd69b(0x14c)])||(/^\//[_0x1fd69b(0x14d)](_0x3f6ead)?_0x3f6ead[_0x1fd69b(0x11f)]('/')[0x1]:_0x3f6ead),_0x5a200a['description']=(_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc[_0x1fd69b(0x12b)][_0x1fd69b(0x100)])||_0x5a200a[_0x1fd69b(0x149)],_0x5a200a[_0x1fd69b(0x138)]=[]):(_0x5a200a[_0x1fd69b(0x149)]=(_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc[_0x1fd69b(0x12b)][_0x1fd69b(0x14c)])||_0x1fd69b(0x144),_0x5a200a[_0x1fd69b(0x100)]=(_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc[_0x1fd69b(0x12b)]['description'])||'',_0x5a200a[_0x1fd69b(0x138)]=[]);_0x162725[_0x1fd69b(0x105)]&&(_0x5a200a[_0x1fd69b(0x105)]=_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc['filepath']);(_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc['pprefix'])&&(_0x5a200a['prefix']=_0x3194fc[_0x1fd69b(0x112)]);(_0x3194fc===null||_0x3194fc===void 0x0?void 0x0:_0x3194fc[_0x1fd69b(0x136)])&&(_0x5a200a[_0x1fd69b(0x136)]=_0x3194fc['module']);let _0x36da3a=(0x0,decorator_3[_0x1fd69b(0x12a)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x56c848)||{};if(typeof _0x7990b1[Symbol[_0x1fd69b(0x117)]]==='function')for(let _0x4026bf of _0x7990b1){let _0x48ad2a={};_0x48ad2a[_0x1fd69b(0x11d)]=_0x4026bf[_0x1fd69b(0x145)],_0x48ad2a[_0x1fd69b(0x13a)]=(_0x3f6ead+_0x4026bf[_0x1fd69b(0x14f)])[_0x1fd69b(0x131)](/\/{1,}/,'/'),_0x48ad2a[_0x1fd69b(0x149)]=(_0x4026bf===null||_0x4026bf===void 0x0?void 0x0:_0x4026bf[_0x1fd69b(0x12e)])||_0x5a200a['summary']||'default',_0x48ad2a[_0x1fd69b(0x100)]=(_0x4026bf===null||_0x4026bf===void 0x0?void 0x0:_0x4026bf[_0x1fd69b(0x100)])||'',_0x48ad2a[_0x1fd69b(0x12d)]=[];if(!(0x0,lodash_1[_0x1fd69b(0xfa)])(_0x48ad2a['route'],_0x1fd69b(0x141))&&!(0x0,lodash_1['startsWith'])(_0x48ad2a[_0x1fd69b(0x13a)],'/static/apitest')&&_0x2f1d93[_0x1fd69b(0x147)](_0x48ad2a['route'])===-0x1){if(!(_0x162725===null||_0x162725===void 0x0?void 0x0:_0x162725[_0x1fd69b(0x133)])){let _0x12cdb1=(0x0,decorator_3[_0x1fd69b(0xfb)])(new _0x56c848(),_0x4026bf[_0x1fd69b(0x11d)]);for(const _0x2d91df in _0x12cdb1){let _0x22d5c4=(_0x37db5f=_0x36da3a[_0x4026bf[_0x1fd69b(0x11d)]])===null||_0x37db5f===void 0x0?void 0x0:_0x37db5f[_0x1fd69b(0x10c)](_0x453e40=>_0x453e40['parameterIndex']==_0x2d91df&&_0x453e40['key']===decorator_2[_0x1fd69b(0x102)]&&(_0x453e40===null||_0x453e40===void 0x0?void 0x0:_0x453e40[_0x1fd69b(0x143)]));if(_0x22d5c4===null||_0x22d5c4===void 0x0?void 0x0:_0x22d5c4[_0x1fd69b(0x143)]){let _0x256ef5=convertTypeToString(_0x22d5c4[_0x1fd69b(0x143)]['type']||0x0);if(['query',_0x1fd69b(0x151)]['indexOf'](_0x256ef5)!=-0x1&&_0x22d5c4[_0x1fd69b(0x143)]['propertyData'][_0x1fd69b(0x147)](':')==-0x1&&!_0x48ad2a[_0x1fd69b(0x12d)][_0x1fd69b(0x10c)](_0x92c5ce=>_0x92c5ce[_0x1fd69b(0x134)]==_0x22d5c4[_0x1fd69b(0x143)][_0x1fd69b(0x150)]))_0x48ad2a[_0x1fd69b(0x12d)][_0x1fd69b(0x11a)]({'key':_0x22d5c4[_0x1fd69b(0x143)]['propertyData'],'title':_0x22d5c4[_0x1fd69b(0x143)][_0x1fd69b(0x150)],'type':convertSchemaType(_0x12cdb1[_0x22d5c4[_0x1fd69b(0x10f)]][_0x1fd69b(0x122)]),'required':![],'default':'','desc':''});else{if(_0x256ef5=='file'){let _0x3ca5ec=((_0x2748b1=_0x22d5c4===null||_0x22d5c4===void 0x0?void 0x0:_0x22d5c4['metadata'])===null||_0x2748b1===void 0x0?void 0x0:_0x2748b1[_0x1fd69b(0x150)])||_0x1fd69b(0x139);_0x3ca5ec[_0x1fd69b(0x147)](':')==-0x1&&!_0x48ad2a[_0x1fd69b(0x12d)]['find'](_0x1a2288=>_0x1a2288[_0x1fd69b(0x134)]==_0x3ca5ec&&_0x1a2288['type']==_0x1fd69b(0x139))&&_0x48ad2a[_0x1fd69b(0x12d)][_0x1fd69b(0x11a)]({'key':_0x3ca5ec,'title':_0x1fd69b(0x154)+_0x3ca5ec,'type':_0x1fd69b(0x139),'required':!![],'default':'','desc':''});}}}else{const _0x3be220=(0x0,decorator_3[_0x1fd69b(0x114)])(validator_1[_0x1fd69b(0x111)],_0x12cdb1[_0x2d91df]);_0x3be220&&_0x48ad2a[_0x1fd69b(0x12d)]['push'](...getJoiRequest(_0x3be220));}}}_0x5a200a['routes'][_0x1fd69b(0x11a)](_0x48ad2a);}}if(_0x5a200a[_0x1fd69b(0x138)][_0x1fd69b(0x119)]>0x0){let _0x3e7904=_0x16df00[_0x3f6ead];_0x3e7904?(_0x3e7904['summary']!=_0x5a200a['summary']&&(_0x3e7904[_0x1fd69b(0x149)]=_0x3e7904[_0x1fd69b(0x149)]+','+_0x5a200a[_0x1fd69b(0x149)]),_0x3e7904[_0x1fd69b(0x100)]!=_0x5a200a[_0x1fd69b(0x100)]&&(_0x3e7904[_0x1fd69b(0x100)]=_0x3e7904[_0x1fd69b(0x100)]+','+_0x5a200a[_0x1fd69b(0x100)]),_0x3e7904[_0x1fd69b(0x138)]=_0x3e7904[_0x1fd69b(0x138)][_0x1fd69b(0x155)](_0x5a200a[_0x1fd69b(0x138)]),_0x16df00[_0x3f6ead]=_0x3e7904):_0x16df00[_0x3f6ead]=_0x5a200a;}}}return _0x16df00;}exports[a8_0x2f1d4a(0x125)]=getRoutes;function getJoiRequest(_0x1eba3f){const _0x2ab936=a8_0x2f1d4a,_0x150aec=[];for(let _0xd61601 in _0x1eba3f){const _0x2751fb={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4a8442=typeof _0x1eba3f[_0xd61601]['describe']=='function'?_0x1eba3f[_0xd61601][_0x2ab936(0x13e)]():_0x1eba3f[_0xd61601];_0x2751fb[_0x2ab936(0x134)]=_0xd61601,_0x2751fb[_0x2ab936(0x14b)]=_0x4a8442[_0x2ab936(0x14b)],_0x2751fb[_0x2ab936(0xfd)]=(0x0,lodash_1[_0x2ab936(0x148)])(_0x4a8442,'flags.label',_0xd61601),_0x2751fb[_0x2ab936(0x144)]=(0x0,lodash_1['get'])(_0x4a8442,_0x2ab936(0x11c),''),_0x2751fb['required']=(0x0,lodash_1['get'])(_0x4a8442,_0x2ab936(0x104),'')==_0x2ab936(0x128),_0x2751fb[_0x2ab936(0x100)]=(0x0,lodash_1[_0x2ab936(0x148)])(_0x4a8442,_0x2ab936(0x10d),'');if(_0x4a8442[_0x2ab936(0x14b)]==_0x2ab936(0xff))_0x2751fb[_0x2ab936(0x13f)]=getJoiRequest(_0x4a8442[_0x2ab936(0x13c)]);else _0x4a8442[_0x2ab936(0x14b)]==_0x2ab936(0x129)&&_0x4a8442[_0x2ab936(0xfc)]&&Array[_0x2ab936(0x10a)](_0x4a8442['items'])&&_0x4a8442[_0x2ab936(0xfc)][0x0]&&console[_0x2ab936(0x10e)](_0xd61601+'-array',_0x4a8442);_0x4a8442[_0x2ab936(0x108)]&&Array[_0x2ab936(0x10a)](_0x4a8442[_0x2ab936(0x108)])&&_0x4a8442['allow']['length']>0x0&&(_0x2751fb['description']=_0x2ab936(0x140)+_0x4a8442[_0x2ab936(0x108)][_0x2ab936(0x130)](',')+'];'+_0x2751fb['description']);if(_0x2751fb[_0x2ab936(0x134)]&&_0x2751fb[_0x2ab936(0x14b)]){const _0x357590={};for(const _0x15acb7 of _0x4a8442['rules']||[]){if(_0x15acb7[_0x2ab936(0x122)]===_0x2ab936(0x10b)&&_0x15acb7[_0x2ab936(0x101)])_0x357590[_0x2ab936(0x10b)]=_0x15acb7[_0x2ab936(0x101)]['limit'];else _0x15acb7[_0x2ab936(0x122)]===_0x2ab936(0x123)&&(_0x357590[_0x2ab936(0x123)]=_0x15acb7[_0x2ab936(0x101)]['limit']);}_0x2751fb['rules']=_0x357590;}_0x2751fb[_0x2ab936(0x134)]&&_0x2751fb[_0x2ab936(0xfd)]&&_0x150aec[_0x2ab936(0x11a)](_0x2751fb);}return _0x150aec;}function convertSchemaType(_0x12ebae){const _0x5c7dbb=a8_0x2f1d4a;switch(_0x12ebae){case _0x5c7dbb(0x152):return'object';case'Boolean':return _0x5c7dbb(0x106);case'Number':return _0x5c7dbb(0x115);case _0x5c7dbb(0x135):return'string';case _0x5c7dbb(0x110):return _0x5c7dbb(0x139);default:return _0x5c7dbb(0x156);}}function convertTypeToString(_0x576fc7){const _0x2d4f24=a8_0x2f1d4a;switch(_0x576fc7){case decorator_1[_0x2d4f24(0x12f)][_0x2d4f24(0x113)]:return _0x2d4f24(0x121);case decorator_1[_0x2d4f24(0x12f)]['QUERY']:return'query';case decorator_1[_0x2d4f24(0x12f)][_0x2d4f24(0x132)]:return _0x2d4f24(0x14f);case decorator_1[_0x2d4f24(0x12f)][_0x2d4f24(0x142)]:return _0x2d4f24(0x151);case decorator_1[_0x2d4f24(0x12f)]['FIELDS']:case decorator_1[_0x2d4f24(0x12f)]['FILESSTREAM']:case decorator_1[_0x2d4f24(0x12f)]['FILESTREAM']:return'file';default:return _0x2d4f24(0x121);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x32a269=a9_0x2f45;(function(_0x1be7ff,_0x3af046){var _0x50c609=a9_0x2f45,_0x50b4b2=_0x1be7ff();while(!![]){try{var _0x476fb7=-parseInt(_0x50c609(0xc2))/0x1*(parseInt(_0x50c609(0x90))/0x2)+-parseInt(_0x50c609(0xbf))/0x3+parseInt(_0x50c609(0xa3))/0x4+parseInt(_0x50c609(0xc1))/0x5+parseInt(_0x50c609(0xa7))/0x6*(parseInt(_0x50c609(0xa9))/0x7)+parseInt(_0x50c609(0x94))/0x8*(-parseInt(_0x50c609(0xb9))/0x9)+parseInt(_0x50c609(0xbb))/0xa*(parseInt(_0x50c609(0x9c))/0xb);if(_0x476fb7===_0x3af046)break;else _0x50b4b2['push'](_0x50b4b2['shift']());}catch(_0x14a906){_0x50b4b2['push'](_0x50b4b2['shift']());}}}(a9_0x44da,0xd7987));var __createBinding=this&&this[a9_0x32a269(0x8a)]||(Object['create']?function(_0x2e50d3,_0x2a4465,_0x330e75,_0xdfddf9){var _0x4c02d2=a9_0x32a269;if(_0xdfddf9===undefined)_0xdfddf9=_0x330e75;var _0x154621=Object[_0x4c02d2(0x8c)](_0x2a4465,_0x330e75);(!_0x154621||(_0x4c02d2(0x8f)in _0x154621?!_0x2a4465[_0x4c02d2(0x96)]:_0x154621[_0x4c02d2(0x93)]||_0x154621[_0x4c02d2(0xa1)]))&&(_0x154621={'enumerable':!![],'get':function(){return _0x2a4465[_0x330e75];}}),Object['defineProperty'](_0x2e50d3,_0xdfddf9,_0x154621);}:function(_0x3221c3,_0x4d723b,_0x38d0f3,_0x266b72){if(_0x266b72===undefined)_0x266b72=_0x38d0f3;_0x3221c3[_0x266b72]=_0x4d723b[_0x38d0f3];}),__exportStar=this&&this['__exportStar']||function(_0x42b551,_0x3ce98c){var _0x2763ee=a9_0x32a269;for(var _0x562f5e in _0x42b551)if(_0x562f5e!==_0x2763ee(0xbc)&&!Object[_0x2763ee(0xc4)]['hasOwnProperty']['call'](_0x3ce98c,_0x562f5e))__createBinding(_0x3ce98c,_0x42b551,_0x562f5e);};function a9_0x2f45(_0xe226cf,_0x2b51b2){var _0x44da8d=a9_0x44da();return a9_0x2f45=function(_0x2f457e,_0x364568){_0x2f457e=_0x2f457e-0x88;var _0x46569e=_0x44da8d[_0x2f457e];return _0x46569e;},a9_0x2f45(_0xe226cf,_0x2b51b2);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=exports[a9_0x32a269(0xa6)]=exports[a9_0x32a269(0xa2)]=exports[a9_0x32a269(0xad)]=exports[a9_0x32a269(0xb5)]=exports[a9_0x32a269(0x9b)]=exports[a9_0x32a269(0xb8)]=exports[a9_0x32a269(0x9f)]=exports[a9_0x32a269(0xaa)]=exports[a9_0x32a269(0xbe)]=exports['Query']=exports[a9_0x32a269(0x9a)]=exports[a9_0x32a269(0x89)]=exports[a9_0x32a269(0x92)]=exports['Files']=exports[a9_0x32a269(0x8d)]=exports[a9_0x32a269(0x99)]=exports[a9_0x32a269(0xa4)]=exports[a9_0x32a269(0x8e)]=exports[a9_0x32a269(0xac)]=exports[a9_0x32a269(0xba)]=exports['EventService']=exports['CacheService']=exports[a9_0x32a269(0x91)]=exports[a9_0x32a269(0xb2)]=exports[a9_0x32a269(0xbd)]=exports['Apitest']=exports[a9_0x32a269(0xc0)]=exports[a9_0x32a269(0x98)]=void 0x0;const getAppsConfig_1=require(a9_0x32a269(0xb1));Object[a9_0x32a269(0xb7)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x551e44=a9_0x32a269;return getAppsConfig_1[_0x551e44(0x88)];}}),__exportStar(require(a9_0x32a269(0xaf)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x98),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a9_0x32a269(0x95));Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xc0),{'enumerable':!![],'get':function(){var _0x21cd46=a9_0x32a269;return Action_1[_0x21cd46(0xc0)];}});var ActionApitest_1=require(a9_0x32a269(0xb4));Object[a9_0x32a269(0xb7)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x15716a=a9_0x32a269;return ActionApitest_1[_0x15716a(0xa8)];}});var getRoutes_1=require(a9_0x32a269(0xa0));Object[a9_0x32a269(0xb7)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x1fbb90=a9_0x32a269;return getRoutes_1[_0x1fbb90(0xbd)];}});var ApiError_1=require(a9_0x32a269(0xc5));Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xb2),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require('@midwayjs/task');Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x91),{'enumerable':!![],'get':function(){var _0x3d2c8f=a9_0x32a269;return task_1[_0x3d2c8f(0x91)];}});var cache_1=require(a9_0x32a269(0xb6));function a9_0x44da(){var _0x39ffaa=['6twAsVd','QueueService','Fields','writable','8uBqBPU','./decorator/Action','__esModule','EventService','Api','Configuration','Param','Logger','44jkKaKq','CustomConfiguration','@anncic-api/validator','App','./helper/getRoutes','configurable','Scope','4509740ngsciA','ValidatorService','Query','ScopeEnum','18ZaKfEl','Apitest','1051463fWnBIF','Init','CacheService','ExcelService','Inject','@midwayjs/decorator','./types/common','@anncic-api/event','./helper/getAppsConfig','ApiError','Files','./decorator/ActionApitest','Provide','@anncic-api/cache','defineProperty','Config','15647283fOULgE','ApiService','6582560TwEUhE','default','getRoutes','Headers','2943282xVHUfV','Action','2536525gNJxPf','371877yhjOCG','./configuration','prototype','./exception/ApiError','getAppsConfig','Body','__createBinding','./service/ExcelService','getOwnPropertyDescriptor','File','ValidatorError','get'];a9_0x44da=function(){return _0x39ffaa;};return a9_0x44da();}Object[a9_0x32a269(0xb7)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x2073f1=a9_0x32a269;return cache_1[_0x2073f1(0xab)];}});var event_1=require(a9_0x32a269(0xb0));Object['defineProperty'](exports,a9_0x32a269(0x97),{'enumerable':!![],'get':function(){var _0x79c93b=a9_0x32a269;return event_1[_0x79c93b(0x97)];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,a9_0x32a269(0xba),{'enumerable':!![],'get':function(){var _0xfff922=a9_0x32a269;return ApiService_1[_0xfff922(0xba)];}});var ExcelService_1=require(a9_0x32a269(0x8b));Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xac),{'enumerable':!![],'get':function(){var _0x559ba0=a9_0x32a269;return ExcelService_1[_0x559ba0(0xac)];}});var validator_1=require(a9_0x32a269(0x9e));Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x8e),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object['defineProperty'](exports,a9_0x32a269(0xa4),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x32a269(0xc3));Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x99),{'enumerable':!![],'get':function(){var _0x5d748a=a9_0x32a269;return configuration_1[_0x5d748a(0x9d)];}});var decorator_1=require('@midwayjs/decorator');Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x8d),{'enumerable':!![],'get':function(){var _0x471b1a=a9_0x32a269;return decorator_1[_0x471b1a(0x8d)];}}),Object[a9_0x32a269(0xb7)](exports,'Files',{'enumerable':!![],'get':function(){var _0x1af88e=a9_0x32a269;return decorator_1[_0x1af88e(0xb3)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x92),{'enumerable':!![],'get':function(){var _0x450359=a9_0x32a269;return decorator_1[_0x450359(0x92)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x89),{'enumerable':!![],'get':function(){var _0x13e69f=a9_0x32a269;return decorator_1[_0x13e69f(0x89)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x9a),{'enumerable':!![],'get':function(){var _0x36808d=a9_0x32a269;return decorator_1[_0x36808d(0x9a)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xa5),{'enumerable':!![],'get':function(){var _0x54cc51=a9_0x32a269;return decorator_1[_0x54cc51(0xa5)];}}),Object[a9_0x32a269(0xb7)](exports,'Headers',{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object['defineProperty'](exports,a9_0x32a269(0xaa),{'enumerable':!![],'get':function(){var _0x18dea2=a9_0x32a269;return decorator_1[_0x18dea2(0xaa)];}});var decorator_2=require(a9_0x32a269(0xae));Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x9f),{'enumerable':!![],'get':function(){var _0x148d31=a9_0x32a269;return decorator_2[_0x148d31(0x9f)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xb8),{'enumerable':!![],'get':function(){var _0x427595=a9_0x32a269;return decorator_2[_0x427595(0xb8)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0x9b),{'enumerable':!![],'get':function(){var _0x5f1d72=a9_0x32a269;return decorator_2[_0x5f1d72(0x9b)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xb5),{'enumerable':!![],'get':function(){var _0x410521=a9_0x32a269;return decorator_2[_0x410521(0xb5)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xad),{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object['defineProperty'](exports,a9_0x32a269(0xa2),{'enumerable':!![],'get':function(){var _0x83e51c=a9_0x32a269;return decorator_2[_0x83e51c(0xa2)];}}),Object[a9_0x32a269(0xb7)](exports,a9_0x32a269(0xa6),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}}),global[a9_0x32a269(0x88)]=getAppsConfig_1[a9_0x32a269(0x88)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x1a8131=a10_0x29c0;(function(_0x11968e,_0x5453b3){var _0x17c24b=a10_0x29c0,_0x3be299=_0x11968e();while(!![]){try{var _0x22acc2=parseInt(_0x17c24b(0x195))/0x1*(-parseInt(_0x17c24b(0x197))/0x2)+-parseInt(_0x17c24b(0x198))/0x3*(parseInt(_0x17c24b(0x1a9))/0x4)+parseInt(_0x17c24b(0x17a))/0x5+parseInt(_0x17c24b(0x1ae))/0x6+-parseInt(_0x17c24b(0x17d))/0x7+-parseInt(_0x17c24b(0x1a1))/0x8+-parseInt(_0x17c24b(0x18f))/0x9*(-parseInt(_0x17c24b(0x1b3))/0xa);if(_0x22acc2===_0x5453b3)break;else _0x3be299['push'](_0x3be299['shift']());}catch(_0x390758){_0x3be299['push'](_0x3be299['shift']());}}}(a10_0x7842,0x98366));var __decorate=this&&this[a10_0x1a8131(0x17b)]||function(_0x38bec5,_0x139e17,_0x27ede2,_0x3ade06){var _0x4624d4=a10_0x1a8131,_0x42a34a=arguments['length'],_0x4415c2=_0x42a34a<0x3?_0x139e17:_0x3ade06===null?_0x3ade06=Object[_0x4624d4(0x1a2)](_0x139e17,_0x27ede2):_0x3ade06,_0x57eb5b;if(typeof Reflect===_0x4624d4(0x184)&&typeof Reflect[_0x4624d4(0x185)]===_0x4624d4(0x192))_0x4415c2=Reflect['decorate'](_0x38bec5,_0x139e17,_0x27ede2,_0x3ade06);else{for(var _0x32c929=_0x38bec5['length']-0x1;_0x32c929>=0x0;_0x32c929--)if(_0x57eb5b=_0x38bec5[_0x32c929])_0x4415c2=(_0x42a34a<0x3?_0x57eb5b(_0x4415c2):_0x42a34a>0x3?_0x57eb5b(_0x139e17,_0x27ede2,_0x4415c2):_0x57eb5b(_0x139e17,_0x27ede2))||_0x4415c2;}return _0x42a34a>0x3&&_0x4415c2&&Object[_0x4624d4(0x191)](_0x139e17,_0x27ede2,_0x4415c2),_0x4415c2;},__metadata=this&&this['__metadata']||function(_0x875336,_0x424701){var _0x1a1671=a10_0x1a8131;if(typeof Reflect===_0x1a1671(0x184)&&typeof Reflect[_0x1a1671(0x1ab)]===_0x1a1671(0x192))return Reflect['metadata'](_0x875336,_0x424701);};function a10_0x7842(){var _0x51134d=['HEADERS_LACK','../exception/ApiError','fromEntries','map','36DaHjhS','HEADERS_DEVICE','metadata','checkcode','devices','3372360ovQpsl','requesttime','token','Scope','缺少头信息:signature','60KjEJxz','5975290nUZdgN','__decorate','logintime','8713992tkITlx','@midwayjs/decorator','Singleton','Config','getcheck','ApiService','entries','object','decorate','ApiError','toString','now','ScopeEnum','MD5','undefined','HEADERS_CHECKCODE','HEADERS_SIGNATURE','push','1393002oGCOAi','design:type','defineProperty','function','password','prototype','2gofFZy','toLowerCase','182480ePdsmD','100821ZtFbhX','getsign','sort','TIMEOUT','缺少头信息:','abs','config','secret','signature','2660200jFjKNE','getOwnPropertyDescriptor','__esModule','device'];a10_0x7842=function(){return _0x51134d;};return a10_0x7842();}Object[a10_0x1a8131(0x191)](exports,a10_0x1a8131(0x1a3),{'value':!![]}),exports[a10_0x1a8131(0x182)]=void 0x0;function a10_0x29c0(_0x414de8,_0x135360){var _0x7842eb=a10_0x7842();return a10_0x29c0=function(_0x29c073,_0x28d3f4){_0x29c073=_0x29c073-0x17a;var _0x3f9d7d=_0x7842eb[_0x29c073];return _0x3f9d7d;},a10_0x29c0(_0x414de8,_0x135360);}const crypto_js_1=require('crypto-js'),decorator_1=require(a10_0x1a8131(0x17e)),ApiError_1=require(a10_0x1a8131(0x1a6));let ApiService=class ApiService{[a10_0x1a8131(0x193)](_0x1c076d){var _0x24afd2=a10_0x1a8131,_0xd1ec3;return _0x1c076d?(0x0,crypto_js_1['MD5'])(_0x1c076d+(0x0,crypto_js_1[_0x24afd2(0x18a)])((0x0,crypto_js_1[_0x24afd2(0x18a)])(_0x1c076d)[_0x24afd2(0x187)]()+((_0xd1ec3=this[_0x24afd2(0x19e)])===null||_0xd1ec3===void 0x0?void 0x0:_0xd1ec3[_0x24afd2(0x193)]))[_0x24afd2(0x187)]())[_0x24afd2(0x187)]():'';}[a10_0x1a8131(0x181)](_0x175647,_0xa284ad,_0x2a05ab=Date['now']()){return{'Token':_0x175647,'Logintime':_0x2a05ab,'Checkcode':this['checkcode'](_0x175647,_0xa284ad,_0x2a05ab)};}['getsign'](_0x4d39ee={}){var _0x204a6e=a10_0x1a8131;const _0x254857=[],_0x54e65e=Object[_0x204a6e(0x1a7)](Object[_0x204a6e(0x183)](_0x4d39ee)[_0x204a6e(0x1a8)](_0x39b39d=>[_0x39b39d[0x0][_0x204a6e(0x196)](),_0x39b39d[0x1]]));for(let _0x34238d of[_0x204a6e(0x1a4),_0x204a6e(0x1af),_0x204a6e(0x1b0),_0x204a6e(0x17c),'checkcode']){if(typeof _0x54e65e[_0x34238d]==_0x204a6e(0x18b))throw new AnnError(ApiError_1[_0x204a6e(0x186)][_0x204a6e(0x1a5)],{'message':_0x204a6e(0x19c)+_0x34238d});_0x254857[_0x204a6e(0x18e)](_0x34238d+'='+_0x54e65e[_0x34238d]);}if(Math[_0x204a6e(0x19d)](_0x54e65e['requesttime'])-Date[_0x204a6e(0x188)]()>this['config']['timeout'])throw new AnnError(ApiError_1[_0x204a6e(0x186)][_0x204a6e(0x19b)]);if(!this[_0x204a6e(0x19e)][_0x204a6e(0x1ad)][_0x54e65e[_0x204a6e(0x1a4)]]||!this[_0x204a6e(0x19e)][_0x204a6e(0x1ad)][_0x54e65e[_0x204a6e(0x1a4)]][_0x204a6e(0x19f)]||!this[_0x204a6e(0x19e)]['devices'][_0x54e65e[_0x204a6e(0x1a4)]][_0x204a6e(0x1ac)])throw new AnnError(ApiError_1[_0x204a6e(0x186)]['HEADERS_DEVICE']);if(_0x54e65e[_0x204a6e(0x1b0)]&&_0x54e65e[_0x204a6e(0x1ac)]!=this[_0x204a6e(0x1ac)](_0x54e65e[_0x204a6e(0x1b0)],_0x54e65e[_0x204a6e(0x1a4)],_0x54e65e[_0x204a6e(0x17c)]))throw new AnnError(ApiError_1['ApiError'][_0x204a6e(0x18c)]);return _0x254857[_0x204a6e(0x18e)]('secret='+this[_0x204a6e(0x19e)][_0x204a6e(0x1ad)][_0x54e65e[_0x204a6e(0x1a4)]][_0x204a6e(0x19f)]),(0x0,crypto_js_1['MD5'])(_0x254857[_0x204a6e(0x19a)]()['join'](''))[_0x204a6e(0x187)]();}[a10_0x1a8131(0x1ac)](_0x157ef6,_0x205b06,_0x4aaef8=Date[a10_0x1a8131(0x188)]()){var _0x4ff787=a10_0x1a8131,_0x33f0a6,_0x56ca2d,_0x19ac3b;if(!((_0x33f0a6=this[_0x4ff787(0x19e)])===null||_0x33f0a6===void 0x0?void 0x0:_0x33f0a6[_0x4ff787(0x1ad)][_0x205b06])||!((_0x19ac3b=(_0x56ca2d=this[_0x4ff787(0x19e)])===null||_0x56ca2d===void 0x0?void 0x0:_0x56ca2d['devices'][_0x205b06])===null||_0x19ac3b===void 0x0?void 0x0:_0x19ac3b[_0x4ff787(0x1ac)]))throw new AnnError(ApiError_1[_0x4ff787(0x186)][_0x4ff787(0x1aa)]);return(0x0,crypto_js_1[_0x4ff787(0x18a)])(_0x157ef6+(0x0,crypto_js_1[_0x4ff787(0x18a)])(_0x4aaef8+this[_0x4ff787(0x19e)][_0x4ff787(0x1ad)][_0x205b06]['checkcode'])[_0x4ff787(0x187)]())[_0x4ff787(0x187)]();}['checksign'](_0x9d21eb={}){var _0x2643ec=a10_0x1a8131;const _0x1f3916=Object[_0x2643ec(0x1a7)](Object[_0x2643ec(0x183)](_0x9d21eb)[_0x2643ec(0x1a8)](_0x1d970b=>[_0x1d970b[0x0][_0x2643ec(0x196)](),_0x1d970b[0x1]]));if(!(_0x1f3916===null||_0x1f3916===void 0x0?void 0x0:_0x1f3916[_0x2643ec(0x1a0)]))throw new AnnError(ApiError_1[_0x2643ec(0x186)]['HEADERS_LACK'],{'message':_0x2643ec(0x1b2)});if((_0x1f3916===null||_0x1f3916===void 0x0?void 0x0:_0x1f3916[_0x2643ec(0x1a0)])!=this[_0x2643ec(0x199)](_0x1f3916))throw new AnnError(ApiError_1[_0x2643ec(0x186)][_0x2643ec(0x18d)]);return!![];}};__decorate([(0x0,decorator_1[a10_0x1a8131(0x180)])('anncicapi'),__metadata(a10_0x1a8131(0x190),Object)],ApiService[a10_0x1a8131(0x194)],a10_0x1a8131(0x19e),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a10_0x1a8131(0x1b1)])(decorator_1[a10_0x1a8131(0x189)][a10_0x1a8131(0x17f)])],ApiService),exports[a10_0x1a8131(0x182)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x4e1edf=a11_0x255f;(function(_0x466e1b,_0x336d41){const _0x352cfb=a11_0x255f,_0x23fba5=_0x466e1b();while(!![]){try{const _0x5eb6e1=parseInt(_0x352cfb(0x1d0))/0x1*(-parseInt(_0x352cfb(0x206))/0x2)+-parseInt(_0x352cfb(0x1d5))/0x3+parseInt(_0x352cfb(0x1e2))/0x4*(-parseInt(_0x352cfb(0x1fe))/0x5)+-parseInt(_0x352cfb(0x1d8))/0x6+parseInt(_0x352cfb(0x20b))/0x7+-parseInt(_0x352cfb(0x1e1))/0x8+parseInt(_0x352cfb(0x1d1))/0x9;if(_0x5eb6e1===_0x336d41)break;else _0x23fba5['push'](_0x23fba5['shift']());}catch(_0x5dcbef){_0x23fba5['push'](_0x23fba5['shift']());}}}(a11_0x4ee2,0xc5946));function a11_0x4ee2(){const _0x269761=['utf-8','extname','path','public,\x20max-age=604800','design:paramtypes','apiteststatic','Config','Provide','__apiList__','route','design:type','/apiteststatic/','filepath','__decorate','ApitestService','content-type','request','../helper/getRoutes','Controller','anncicapi','Inject','Environment','2795lanxGV','ctx','push','__esModule','prefix','design:returntype','../../public/','existsSync','138140qpCspJ','Scope','application/javascript;\x20charset=utf-8','apidoc','method','9673160TgYaXW','readFileSync','module','url','routes','__devices__','ApitestStaticController','join','@midwayjs/core','__param','@midwayjs/decorator','metadata','summary','function','replace','prototype','description','cache-control','decorate','19piIgCQ','28915794nWwRxA','devices','apitesthtml','stringify','1186536yWMKPw','set','.css','6630324dOxALe','/index.html','apitestmodule','config','MidwayEnvironmentService','getRoutes','isDevelopmentEnvironment','.js','getOwnPropertyDescriptor','1255864lzkhYj','5836dPgtrc','apitest','object','defineProperty','Get','Singleton'];a11_0x4ee2=function(){return _0x269761;};return a11_0x4ee2();}var __decorate=this&&this[a11_0x4e1edf(0x1f5)]||function(_0x415e87,_0x4b5bbf,_0x401ae8,_0x5cff09){const _0x12136e=a11_0x4e1edf;var _0x535a05=arguments['length'],_0x9191a1=_0x535a05<0x3?_0x4b5bbf:_0x5cff09===null?_0x5cff09=Object[_0x12136e(0x1e0)](_0x4b5bbf,_0x401ae8):_0x5cff09,_0x136676;if(typeof Reflect===_0x12136e(0x1e4)&&typeof Reflect[_0x12136e(0x1cf)]==='function')_0x9191a1=Reflect['decorate'](_0x415e87,_0x4b5bbf,_0x401ae8,_0x5cff09);else{for(var _0x10bd57=_0x415e87['length']-0x1;_0x10bd57>=0x0;_0x10bd57--)if(_0x136676=_0x415e87[_0x10bd57])_0x9191a1=(_0x535a05<0x3?_0x136676(_0x9191a1):_0x535a05>0x3?_0x136676(_0x4b5bbf,_0x401ae8,_0x9191a1):_0x136676(_0x4b5bbf,_0x401ae8))||_0x9191a1;}return _0x535a05>0x3&&_0x9191a1&&Object[_0x12136e(0x1e5)](_0x4b5bbf,_0x401ae8,_0x9191a1),_0x9191a1;},__metadata=this&&this['__metadata']||function(_0x3c2152,_0x4e04a5){const _0xaa54b4=a11_0x4e1edf;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0xaa54b4(0x218))return Reflect[_0xaa54b4(0x216)](_0x3c2152,_0x4e04a5);},__param=this&&this[a11_0x4e1edf(0x214)]||function(_0x53c1ce,_0x110ede){return function(_0x166259,_0x27a3d5){_0x110ede(_0x166259,_0x27a3d5,_0x53c1ce);};};Object['defineProperty'](exports,a11_0x4e1edf(0x201),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x4e1edf(0x1f6)]=void 0x0;const path_1=require(a11_0x4e1edf(0x1ea)),fs_1=require('fs'),core_1=require(a11_0x4e1edf(0x213)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a11_0x4e1edf(0x215)),getRoutes_1=require(a11_0x4e1edf(0x1f9));function a11_0x255f(_0x5c155f,_0x1f5887){const _0x4ee2cb=a11_0x4ee2();return a11_0x255f=function(_0x255ffb,_0x1a0d4a){_0x255ffb=_0x255ffb-0x1cf;let _0x10b5df=_0x4ee2cb[_0x255ffb];return _0x10b5df;},a11_0x255f(_0x5c155f,_0x1f5887);}let ApitestService=class ApitestService{async[a11_0x4e1edf(0x209)](_0x37350b){const _0x214758=a11_0x4e1edf,_0x3c937c=(0x0,getRoutes_1[_0x214758(0x1dd)])(_0x37350b),_0x314d65=[];for(let _0x5705d9 in _0x3c937c){for(let _0x58286f in _0x3c937c[_0x5705d9]['routes']){let _0x41ec45=_0x3c937c[_0x5705d9][_0x214758(0x20f)][_0x58286f],_0x21d75d=[];for(let _0x5cb1de in _0x41ec45['request']){_0x21d75d[_0x214758(0x200)](_0x41ec45[_0x214758(0x1f8)][_0x5cb1de]);}_0x314d65['push']({'title':_0x3c937c[_0x5705d9][_0x214758(0x217)]+':'+_0x41ec45['summary'],'prefix':_0x3c937c[_0x5705d9][_0x214758(0x202)],'router':_0x41ec45[_0x214758(0x1f1)],'method':_0x41ec45[_0x214758(0x20a)],'describe':_0x41ec45[_0x214758(0x21b)]||'','filepath':_0x3c937c[_0x5705d9][_0x214758(0x1f4)]||'','request':_0x21d75d});}}const _0x1656c8=(0x0,path_1[_0x214758(0x212)])(__dirname,'../../public/index.html');return(0x0,fs_1['readFileSync'])(_0x1656c8,{'encoding':_0x214758(0x1e8)})['replace'](/__res__/g,_0x214758(0x1f3))[_0x214758(0x219)](_0x214758(0x1f0),JSON[_0x214758(0x1d4)](_0x314d65))[_0x214758(0x219)](_0x214758(0x210),JSON['stringify'](this['config'][_0x214758(0x1d2)]));}};__decorate([(0x0,decorator_2[a11_0x4e1edf(0x1ee)])('anncicapi'),__metadata(a11_0x4e1edf(0x1f2),Object)],ApitestService[a11_0x4e1edf(0x21a)],a11_0x4e1edf(0x1db),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x4e1edf(0x1ef)])(a11_0x4e1edf(0x1e3)),(0x0,decorator_2[a11_0x4e1edf(0x207)])(decorator_2['ScopeEnum'][a11_0x4e1edf(0x1e7)])],ApitestService),exports[a11_0x4e1edf(0x1f6)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x4e1edf(0x1d3)](){const _0x365aaf=a11_0x4e1edf;if(this[_0x365aaf(0x1e3)]){const _0x925916={'module':![]};return this[_0x365aaf(0x1fd)][_0x365aaf(0x1de)]()&&(_0x925916[_0x365aaf(0x1f4)]=!![]),await this[_0x365aaf(0x1f6)][_0x365aaf(0x209)](_0x925916);}return'';}async[a11_0x4e1edf(0x1da)](_0x57339a){const _0x220b81=a11_0x4e1edf;if(this['apitest']){const _0x4e340a={'module':_0x57339a};return this[_0x220b81(0x1fd)][_0x220b81(0x1de)]()&&(_0x4e340a[_0x220b81(0x1f4)]=!![]),await this['ApitestService'][_0x220b81(0x209)](_0x4e340a);}return'';}async[a11_0x4e1edf(0x1ed)](){const _0xad1777=a11_0x4e1edf;if((0x0,path_1[_0xad1777(0x1e9)])(this['ctx']['request'][_0xad1777(0x20e)])){var _0x2e7bab=(0x0,path_1[_0xad1777(0x212)])(__dirname,_0xad1777(0x204)+this[_0xad1777(0x1ff)][_0xad1777(0x1f8)][_0xad1777(0x20e)][_0xad1777(0x219)]('/apiteststatic/','/'));if(_0x2e7bab['substring'](_0x2e7bab['length']-0xb)!=_0xad1777(0x1d9)){this[_0xad1777(0x1ff)][_0xad1777(0x1d6)](_0xad1777(0x21c),_0xad1777(0x1eb));if((0x0,path_1['extname'])(this[_0xad1777(0x1ff)]['request']['url'])==_0xad1777(0x1df))this['ctx'][_0xad1777(0x1d6)](_0xad1777(0x1f7),_0xad1777(0x208));else(0x0,path_1[_0xad1777(0x1e9)])(this[_0xad1777(0x1ff)][_0xad1777(0x1f8)]['url'])==_0xad1777(0x1d7)&&this[_0xad1777(0x1ff)]['set'](_0xad1777(0x1f7),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0xad1777(0x205)])(_0x2e7bab)&&(0x0,fs_1[_0xad1777(0x20c)])(_0x2e7bab,{'encoding':_0xad1777(0x1e8)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x4e1edf(0x1fc)])(),__metadata(a11_0x4e1edf(0x1f2),Object)],ApitestStaticController[a11_0x4e1edf(0x21a)],a11_0x4e1edf(0x1ff),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x4e1edf(0x1f2),core_1[a11_0x4e1edf(0x1dc)])],ApitestStaticController[a11_0x4e1edf(0x21a)],a11_0x4e1edf(0x1fd),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x4e1edf(0x1f2),ApitestService)],ApitestStaticController[a11_0x4e1edf(0x21a)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2['Config'])(a11_0x4e1edf(0x1e3)),__metadata(a11_0x4e1edf(0x1f2),Boolean)],ApitestStaticController['prototype'],a11_0x4e1edf(0x1e3),void 0x0),__decorate([(0x0,decorator_2['Config'])(a11_0x4e1edf(0x1fb)),__metadata(a11_0x4e1edf(0x1f2),Object)],ApitestStaticController[a11_0x4e1edf(0x21a)],a11_0x4e1edf(0x1db),void 0x0),__decorate([(0x0,decorator_1[a11_0x4e1edf(0x1e6)])('/apitest'),__metadata(a11_0x4e1edf(0x1f2),Function),__metadata(a11_0x4e1edf(0x1ec),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x4e1edf(0x21a)],a11_0x4e1edf(0x1d3),null),__decorate([(0x0,decorator_1['Get'])('/apitest-:module'),__param(0x0,(0x0,decorator_1['Param'])(a11_0x4e1edf(0x20d))),__metadata(a11_0x4e1edf(0x1f2),Function),__metadata(a11_0x4e1edf(0x1ec),[String]),__metadata(a11_0x4e1edf(0x203),Promise)],ApitestStaticController['prototype'],a11_0x4e1edf(0x1da),null),__decorate([(0x0,decorator_1[a11_0x4e1edf(0x1e6)])('/apiteststatic/*'),__metadata(a11_0x4e1edf(0x1f2),Function),__metadata(a11_0x4e1edf(0x1ec),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x4e1edf(0x21a)],a11_0x4e1edf(0x1ed),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x4e1edf(0x1fa)])('/'),(0x0,decorator_2['Scope'])(decorator_2['ScopeEnum']['Request'])],ApitestStaticController),exports[a11_0x4e1edf(0x211)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x307cf8=a12_0x4b38;(function(_0x1a04c9,_0x592390){const _0x3ed530=a12_0x4b38,_0x2fff6f=_0x1a04c9();while(!![]){try{const _0x493905=parseInt(_0x3ed530(0x186))/0x1*(-parseInt(_0x3ed530(0x195))/0x2)+parseInt(_0x3ed530(0x17d))/0x3+parseInt(_0x3ed530(0x178))/0x4*(-parseInt(_0x3ed530(0x189))/0x5)+parseInt(_0x3ed530(0x19a))/0x6*(parseInt(_0x3ed530(0x185))/0x7)+parseInt(_0x3ed530(0x175))/0x8*(parseInt(_0x3ed530(0x182))/0x9)+-parseInt(_0x3ed530(0x1a0))/0xa*(parseInt(_0x3ed530(0x179))/0xb)+parseInt(_0x3ed530(0x173))/0xc*(parseInt(_0x3ed530(0x1aa))/0xd);if(_0x493905===_0x592390)break;else _0x2fff6f['push'](_0x2fff6f['shift']());}catch(_0x1469dc){_0x2fff6f['push'](_0x2fff6f['shift']());}}}(a12_0x3d95,0x7e89d));var __decorate=this&&this[a12_0x307cf8(0x172)]||function(_0x2bd276,_0x39dd37,_0x1aa39,_0x40d1d2){const _0x4684a1=a12_0x307cf8;var _0x2cb7b9=arguments[_0x4684a1(0x1a2)],_0x37961e=_0x2cb7b9<0x3?_0x39dd37:_0x40d1d2===null?_0x40d1d2=Object[_0x4684a1(0x183)](_0x39dd37,_0x1aa39):_0x40d1d2,_0x12ba9c;if(typeof Reflect===_0x4684a1(0x17c)&&typeof Reflect[_0x4684a1(0x177)]===_0x4684a1(0x18b))_0x37961e=Reflect[_0x4684a1(0x177)](_0x2bd276,_0x39dd37,_0x1aa39,_0x40d1d2);else{for(var _0x3818a5=_0x2bd276[_0x4684a1(0x1a2)]-0x1;_0x3818a5>=0x0;_0x3818a5--)if(_0x12ba9c=_0x2bd276[_0x3818a5])_0x37961e=(_0x2cb7b9<0x3?_0x12ba9c(_0x37961e):_0x2cb7b9>0x3?_0x12ba9c(_0x39dd37,_0x1aa39,_0x37961e):_0x12ba9c(_0x39dd37,_0x1aa39))||_0x37961e;}return _0x2cb7b9>0x3&&_0x37961e&&Object['defineProperty'](_0x39dd37,_0x1aa39,_0x37961e),_0x37961e;},__metadata=this&&this[a12_0x307cf8(0x19b)]||function(_0x8513f0,_0x1124bc){const _0x2c832a=a12_0x307cf8;if(typeof Reflect==='object'&&typeof Reflect[_0x2c832a(0x1b0)]===_0x2c832a(0x18b))return Reflect['metadata'](_0x8513f0,_0x1124bc);};function a12_0x3d95(){const _0x43ecbb=['getAppDir','length','ScopeEnum','columns','design:type','push','key','getWorksheet','get','26pQyhqX','header','ExcelService','frozen','worksheets','substring','metadata','parse','isNumber','value','writeFile','public/xlsx','__decorate','4828008mnTAsY','__esModule','219464umcvXx','cellCount','decorate','804LZiTyz','501017WECxfs','xlsx','/public/xlsx','object','689352EoqhXK','keys','eachCell','Singleton','toString','153OkuVkD','getOwnPropertyDescriptor','app','2115288qNQRtr','98866kkrqyu','readFile','prototype','9935mcvSjp','replace','function','getCell','addRow','log','download','App','random','handler','endsWith','trim','20KiCmNH','findRows','export','startsWith','mkdirSync','18RWdlAy','__metadata','Provide','rowCount','\x20is\x20read\x20fail','col','110LlosZc'];a12_0x3d95=function(){return _0x43ecbb;};return a12_0x3d95();}Object['defineProperty'](exports,a12_0x307cf8(0x174),{'value':!![]}),exports[a12_0x307cf8(0x1ac)]=void 0x0;function a12_0x4b38(_0x1d0b97,_0x5acc92){const _0x3d9551=a12_0x3d95();return a12_0x4b38=function(_0x4b386c,_0x302ad7){_0x4b386c=_0x4b386c-0x16d;let _0xd57989=_0x3d9551[_0x4b386c];return _0xd57989;},a12_0x4b38(_0x1d0b97,_0x5acc92);}const fs=require('fs'),exceljs=require('exceljs'),koasend=require('koa-send'),decorator_1=require('@midwayjs/decorator');let ExcelService=class ExcelService{async[a12_0x307cf8(0x16d)](_0x5d70d7,_0x38239c,_0xf86906=[0x0]){const _0x4a93d9=a12_0x307cf8;var _0x4bbb66,_0x2963c9;const _0x5d097c=new exceljs['Workbook'](),_0x2d24a8=[];let _0x390e19=_0x5d70d7[_0x4a93d9(0x18a)](/(\\|\/)/g,'/')[_0x4a93d9(0x18a)](/\/{2,}/g,'/');!(_0x390e19===null||_0x390e19===void 0x0?void 0x0:_0x390e19['startsWith']('/'))&&(_0x390e19=this['app'][_0x4a93d9(0x1a1)]()+'/'+_0x390e19);try{await _0x5d097c[_0x4a93d9(0x17a)][_0x4a93d9(0x187)](_0x390e19);}catch(_0x24858c){return console[_0x4a93d9(0x18e)]('Api\x20Excel\x20Error:\x20'+_0x390e19+_0x4a93d9(0x19e)),_0x2d24a8;}for(const _0x53288f of _0xf86906){const _0xe262b8=lodash[_0x4a93d9(0x16e)](_0x53288f)?((_0x4bbb66=_0x5d097c[_0x4a93d9(0x1ae)])===null||_0x4bbb66===void 0x0?void 0x0:_0x4bbb66[_0x53288f])||undefined:_0x5d097c[_0x4a93d9(0x1a8)](_0x53288f);if(_0xe262b8){var _0x377887=0x1;const _0x176346=_0xe262b8['getRow'](0x1),_0x3180b1=await new Promise(_0x266e1e=>{const _0x43a2e=_0x4a93d9,_0x1f2dfb={};_0x176346[_0x43a2e(0x17f)]((_0x46cbed,_0x323b2b)=>{const _0x177e77=_0x43a2e;for(const _0x57e4a5 of _0x38239c){if(_0x46cbed[_0x177e77(0x16f)]==_0x57e4a5[_0x177e77(0x1ab)])_0x377887=0x2,_0x1f2dfb[_0x57e4a5[_0x177e77(0x1a7)]]={'header':_0x46cbed[_0x177e77(0x19f)],'handler':_0x57e4a5[_0x177e77(0x192)]};else{if(!_0x1f2dfb[_0x57e4a5[_0x177e77(0x1a7)]])try{const _0x18f9bd=_0x176346[_0x177e77(0x18c)](_0x57e4a5[_0x177e77(0x1ab)]);_0x18f9bd&&(_0x1f2dfb[_0x57e4a5[_0x177e77(0x1a7)]]={'header':_0x18f9bd[_0x177e77(0x19f)],'handler':_0x57e4a5[_0x177e77(0x192)]});}catch{}}}_0x176346[_0x177e77(0x176)]==_0x323b2b&&_0x266e1e(_0x1f2dfb);});});for(const _0x394471 of _0xe262b8[_0x4a93d9(0x196)](_0x377887,_0xe262b8[_0x4a93d9(0x19d)])){const _0x1dfaa8={};for(const _0x71e86d in _0x3180b1){_0x3180b1[_0x71e86d][_0x4a93d9(0x1ab)]&&(typeof((_0x2963c9=_0x3180b1[_0x71e86d])===null||_0x2963c9===void 0x0?void 0x0:_0x2963c9['handler'])==_0x4a93d9(0x18b)?_0x1dfaa8[_0x71e86d]=_0x3180b1[_0x71e86d][_0x4a93d9(0x192)](_0x394471[_0x4a93d9(0x18c)](lodash[_0x4a93d9(0x194)](''+_0x3180b1[_0x71e86d]['header'],'\x20'))[_0x4a93d9(0x181)]()):_0x1dfaa8[_0x71e86d]=_0x394471[_0x4a93d9(0x18c)](_0x3180b1[_0x71e86d][_0x4a93d9(0x1ab)])[_0x4a93d9(0x181)]());}Object[_0x4a93d9(0x17e)](_0x1dfaa8)[_0x4a93d9(0x1a2)]>0x0&&_0x2d24a8['push'](_0x1dfaa8);}}}return _0x2d24a8;}async[a12_0x307cf8(0x197)](_0x3132da,_0x1786fa,_0x5a2967,_0x5c4275=a12_0x307cf8(0x171)){const _0x3e5e83=a12_0x307cf8;var _0x316576,_0x5ec84a;const _0x2e26bb=new exceljs['Workbook'](),_0x2d8e0b={},_0x3db153=[],_0x396887=_0x2e26bb['addWorksheet']('Sheet\x201',{'views':[{'state':_0x3e5e83(0x1ad),'xSplit':0x1}]});for(const _0x20131e in _0x1786fa){_0x2d8e0b[_0x1786fa[_0x20131e][_0x3e5e83(0x1a7)]]=_0x1786fa[_0x20131e]['header'],_0x3db153[_0x3e5e83(0x1a6)]({'header':_0x1786fa[_0x20131e]['header'],'key':(_0x316576=_0x1786fa[_0x20131e])===null||_0x316576===void 0x0?void 0x0:_0x316576[_0x3e5e83(0x1a7)][_0x3e5e83(0x18a)](/\./g,'_')});}_0x396887[_0x3e5e83(0x1a4)]=_0x3db153;for(const _0x3cfeab of _0x5a2967){const _0x4f1b74={};for(const _0xaed4aa in _0x1786fa){typeof((_0x5ec84a=_0x1786fa[_0xaed4aa])===null||_0x5ec84a===void 0x0?void 0x0:_0x5ec84a[_0x3e5e83(0x192)])=='function'?_0x4f1b74[_0x1786fa[_0xaed4aa][_0x3e5e83(0x1a7)][_0x3e5e83(0x18a)](/\./g,'_')]=await _0x1786fa[_0xaed4aa][_0x3e5e83(0x192)](_0x3cfeab):_0x4f1b74[_0x1786fa[_0xaed4aa][_0x3e5e83(0x1a7)][_0x3e5e83(0x18a)](/\./g,'_')]=lodash[_0x3e5e83(0x1a9)](_0x3cfeab,_0x1786fa[_0xaed4aa][_0x3e5e83(0x1a7)],'');}_0x396887[_0x3e5e83(0x18d)](_0x4f1b74);}let _0xf9c676='';const _0x3bac47=_0x3132da+'-'+lodash[_0x3e5e83(0x191)](0x2710,0x1869f)+'.xlsx';if(_0x5c4275&&_0x5c4275['startsWith']('/'))_0xf9c676=''+_0x5c4275;else _0x5c4275&&!_0x5c4275[_0x3e5e83(0x198)]('/')&&!_0x5c4275[_0x3e5e83(0x198)]('\x5c')?_0xf9c676=this[_0x3e5e83(0x184)][_0x3e5e83(0x1a1)]()+'/'+_0x5c4275:_0xf9c676=this[_0x3e5e83(0x184)][_0x3e5e83(0x1a1)]()+_0x3e5e83(0x17b);return(_0xf9c676['endsWith']('/')||_0xf9c676[_0x3e5e83(0x193)]('\x5c'))&&(_0xf9c676=_0xf9c676[_0x3e5e83(0x1af)](0x0,_0xf9c676[_0x3e5e83(0x1a2)]-0x1)),_0xf9c676=_0xf9c676[_0x3e5e83(0x18a)](/(\\|\/)/g,'/')[_0x3e5e83(0x18a)](/\/{2,}/g,'/'),!fs['existsSync'](_0xf9c676)&&fs[_0x3e5e83(0x199)](_0xf9c676,{'recursive':!![]}),await _0x2e26bb[_0x3e5e83(0x17a)][_0x3e5e83(0x170)]((_0xf9c676+'/'+_0x3bac47)[_0x3e5e83(0x18a)](/(\\|\/)/g,'/')[_0x3e5e83(0x18a)](/\/{2,}/g,'/')),{'filename':_0x3bac47,'filepath':(_0xf9c676[_0x3e5e83(0x1af)]((''+this[_0x3e5e83(0x184)]['getAppDir']())['length'])+'/'+_0x3bac47)['replace'](/(\\|\/)/g,'/')[_0x3e5e83(0x18a)](/\/{2,}/g,'/')};}async[a12_0x307cf8(0x18f)](_0x470081,_0x56282b){return await koasend(_0x470081,''+_0x56282b);}};__decorate([(0x0,decorator_1[a12_0x307cf8(0x190)])(),__metadata(a12_0x307cf8(0x1a5),Object)],ExcelService[a12_0x307cf8(0x188)],a12_0x307cf8(0x184),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x307cf8(0x19c)])(),(0x0,decorator_1['Scope'])(decorator_1[a12_0x307cf8(0x1a3)][a12_0x307cf8(0x180)])],ExcelService),exports[a12_0x307cf8(0x1ac)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0xebc514=a13_0x2795;function a13_0x2795(_0x48eae2,_0x42a09b){var _0x381d74=a13_0x381d();return a13_0x2795=function(_0x2795ad,_0x4c3ef7){_0x2795ad=_0x2795ad-0x1e4;var _0x1479a2=_0x381d74[_0x2795ad];return _0x1479a2;},a13_0x2795(_0x48eae2,_0x42a09b);}(function(_0xe40f37,_0x2f5ad5){var _0x3c0b5e=a13_0x2795,_0x137335=_0xe40f37();while(!![]){try{var _0x22c0ce=parseInt(_0x3c0b5e(0x1f1))/0x1*(-parseInt(_0x3c0b5e(0x1e7))/0x2)+parseInt(_0x3c0b5e(0x1f4))/0x3+parseInt(_0x3c0b5e(0x1e5))/0x4*(-parseInt(_0x3c0b5e(0x1ee))/0x5)+-parseInt(_0x3c0b5e(0x1eb))/0x6*(parseInt(_0x3c0b5e(0x1ed))/0x7)+parseInt(_0x3c0b5e(0x1f5))/0x8+parseInt(_0x3c0b5e(0x1f2))/0x9*(parseInt(_0x3c0b5e(0x1e4))/0xa)+-parseInt(_0x3c0b5e(0x1f3))/0xb*(-parseInt(_0x3c0b5e(0x1e8))/0xc);if(_0x22c0ce===_0x2f5ad5)break;else _0x137335['push'](_0x137335['shift']());}catch(_0x3b01b1){_0x137335['push'](_0x137335['shift']());}}}(a13_0x381d,0xe4469));Object['defineProperty'](exports,a13_0xebc514(0x1e6),{'value':!![]}),exports[a13_0xebc514(0x1e9)]=exports[a13_0xebc514(0x1ea)]=exports[a13_0xebc514(0x1ec)]=exports['ACTION_KEY']=void 0x0,exports[a13_0xebc514(0x1ef)]='anncic-api:action',exports[a13_0xebc514(0x1ec)]=a13_0xebc514(0x1f0),exports[a13_0xebc514(0x1ea)]='anncic-api:apps:config';class AppsConfigTmp{}function a13_0x381d(){var _0x1a9b45=['ACTION_KEY','anncic-api:action:route','295898LslSsH','9YeZGJr','120230BhypPb','1297647stqJJM','12376632rkwnTS','16811740xwiypr','5983508qKAFYo','__esModule','2YDMYRl','684cGMhmO','AppsConfigTmp','APPSCONFIG_KEY','60LniVur','ACTION_ROUTE_KEY','1089914rxDXyP','5WUKHJb'];a13_0x381d=function(){return _0x1a9b45;};return a13_0x381d();}exports[a13_0xebc514(0x1e9)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a14_0x36a5(_0x59f8a6,_0x3f9836){var _0x46cac3=a14_0x46ca();return a14_0x36a5=function(_0x36a532,_0x4ce43c){_0x36a532=_0x36a532-0x16d;var _0x873b10=_0x46cac3[_0x36a532];return _0x873b10;},a14_0x36a5(_0x59f8a6,_0x3f9836);}function a14_0x46ca(){var _0xfa279b=['83432IvYCus','getOwnPropertyDescriptor','96ZIIvnA','是否倒序','_isreverse','分页数量','trim','number','defineProperty','valid','object','Rule','_order','__decorate','decorate','2453910ZXOoLz','10geXNYA','_size','min','RuleType','_page','metadata','1:是;0:否','1462988WPyeBc','第一页为1,第二页为2','prototype','222426MzuRvd','design:type','@anncic-api/validator','2306801SDRtFo','length','integer','814140KmlRdX','排序方式','679368ZJFmYE','function','PageDTO'];a14_0x46ca=function(){return _0xfa279b;};return a14_0x46ca();}var a14_0x7c77be=a14_0x36a5;(function(_0x2fe7b9,_0x4ba7ee){var _0x451b05=a14_0x36a5,_0x2593a8=_0x2fe7b9();while(!![]){try{var _0x395b02=parseInt(_0x451b05(0x177))/0x1*(parseInt(_0x451b05(0x187))/0x2)+parseInt(_0x451b05(0x174))/0x3+-parseInt(_0x451b05(0x18e))/0x4+parseInt(_0x451b05(0x172))/0x5+parseInt(_0x451b05(0x186))/0x6+-parseInt(_0x451b05(0x16f))/0x7+-parseInt(_0x451b05(0x179))/0x8*(parseInt(_0x451b05(0x191))/0x9);if(_0x395b02===_0x4ba7ee)break;else _0x2593a8['push'](_0x2593a8['shift']());}catch(_0x263fd2){_0x2593a8['push'](_0x2593a8['shift']());}}}(a14_0x46ca,0x36953));var __decorate=this&&this[a14_0x7c77be(0x184)]||function(_0x31acf7,_0x48e118,_0x3b2c3a,_0x2be3a2){var _0x3b5e98=a14_0x7c77be,_0x11f666=arguments[_0x3b5e98(0x170)],_0x2c52e9=_0x11f666<0x3?_0x48e118:_0x2be3a2===null?_0x2be3a2=Object[_0x3b5e98(0x178)](_0x48e118,_0x3b2c3a):_0x2be3a2,_0xe8a3cb;if(typeof Reflect===_0x3b5e98(0x181)&&typeof Reflect[_0x3b5e98(0x185)]===_0x3b5e98(0x175))_0x2c52e9=Reflect[_0x3b5e98(0x185)](_0x31acf7,_0x48e118,_0x3b2c3a,_0x2be3a2);else{for(var _0x46d660=_0x31acf7[_0x3b5e98(0x170)]-0x1;_0x46d660>=0x0;_0x46d660--)if(_0xe8a3cb=_0x31acf7[_0x46d660])_0x2c52e9=(_0x11f666<0x3?_0xe8a3cb(_0x2c52e9):_0x11f666>0x3?_0xe8a3cb(_0x48e118,_0x3b2c3a,_0x2c52e9):_0xe8a3cb(_0x48e118,_0x3b2c3a))||_0x2c52e9;}return _0x11f666>0x3&&_0x2c52e9&&Object[_0x3b5e98(0x17f)](_0x48e118,_0x3b2c3a,_0x2c52e9),_0x2c52e9;},__metadata=this&&this['__metadata']||function(_0x1fdf64,_0x150bdc){var _0x58d41c=a14_0x7c77be;if(typeof Reflect==='object'&&typeof Reflect[_0x58d41c(0x18c)]==='function')return Reflect[_0x58d41c(0x18c)](_0x1fdf64,_0x150bdc);};Object[a14_0x7c77be(0x17f)](exports,'__esModule',{'value':!![]}),exports[a14_0x7c77be(0x176)]=void 0x0;const validator_1=require(a14_0x7c77be(0x16e));class PageDTO{}__decorate([(0x0,validator_1[a14_0x7c77be(0x182)])('分页',validator_1[a14_0x7c77be(0x18a)][a14_0x7c77be(0x17e)]()[a14_0x7c77be(0x171)]()[a14_0x7c77be(0x189)](0x1),a14_0x7c77be(0x18f)),__metadata(a14_0x7c77be(0x16d),Number)],PageDTO[a14_0x7c77be(0x190)],a14_0x7c77be(0x18b),void 0x0),__decorate([(0x0,validator_1[a14_0x7c77be(0x182)])(a14_0x7c77be(0x17c),validator_1[a14_0x7c77be(0x18a)][a14_0x7c77be(0x17e)]()[a14_0x7c77be(0x171)]()[a14_0x7c77be(0x189)](0x1)),__metadata(a14_0x7c77be(0x16d),Number)],PageDTO[a14_0x7c77be(0x190)],a14_0x7c77be(0x188),void 0x0),__decorate([(0x0,validator_1[a14_0x7c77be(0x182)])(a14_0x7c77be(0x173),validator_1['RuleType']['string']()[a14_0x7c77be(0x17d)]()),__metadata('design:type',String)],PageDTO['prototype'],a14_0x7c77be(0x183),void 0x0),__decorate([(0x0,validator_1[a14_0x7c77be(0x182)])(a14_0x7c77be(0x17a),validator_1[a14_0x7c77be(0x18a)][a14_0x7c77be(0x17e)]()[a14_0x7c77be(0x171)]()[a14_0x7c77be(0x180)](0x0,0x1),a14_0x7c77be(0x18d)),__metadata(a14_0x7c77be(0x16d),Number)],PageDTO['prototype'],a14_0x7c77be(0x17b),void 0x0),exports[a14_0x7c77be(0x176)]=PageDTO;
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare module '@midwayjs/koa/dist/interface' {
|
|
|
10
10
|
input(key?: string, defval?: any): any | { [key: string]: any } | any[];
|
|
11
11
|
|
|
12
12
|
ok(data?: any, extra?: any, code?: number): { code: number, data: any, extra: any };
|
|
13
|
-
err(
|
|
13
|
+
err(message: string, extra?: any, code?: number): { code: number, extra: any, message: string };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.38",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.38",
|
|
21
|
+
"@anncic-api/core": "^1.1.38",
|
|
22
|
+
"@anncic-api/event": "^1.1.38",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.38",
|
|
24
|
+
"@anncic-api/validator": "^1.1.38",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.38",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "6e544beb53cd608565097e8c6ce0c273a9c59b6e"
|
|
43
43
|
}
|