anncic-api 1.4.5 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x542d(){var _0x4dcfc3=['2ghiVfx','1878250IkwKWB','dhauo1234420123gg3234901','390856SaGRih','63puofBb','text','577881TQuVzD','defineProperty','default','xml','1156960Nupgna','json','168280ZkatyT','118956yAetxF','appDir','10TalVqs','name','zhiulanuiy7892387985hnoi','659814AxUovk','form','20mb'];a0_0x542d=function(){return _0x4dcfc3;};return a0_0x542d();}var a0_0x3156a4=a0_0xd324;function a0_0xd324(_0x337358,_0x400195){var _0x542d3b=a0_0x542d();return a0_0xd324=function(_0xd324fe,_0x2029dc){_0xd324fe=_0xd324fe-0x11f;var _0x19e317=_0x542d3b[_0xd324fe];return _0x19e317;},a0_0xd324(_0x337358,_0x400195);}(function(_0x2c03de,_0x39e35a){var _0x23d0e0=a0_0xd324,_0x45663a=_0x2c03de();while(!![]){try{var _0x463d14=parseInt(_0x23d0e0(0x124))/0x1+-parseInt(_0x23d0e0(0x12c))/0x2*(parseInt(_0x23d0e0(0x132))/0x3)+-parseInt(_0x23d0e0(0x12f))/0x4*(parseInt(_0x23d0e0(0x126))/0x5)+-parseInt(_0x23d0e0(0x129))/0x6+parseInt(_0x23d0e0(0x121))/0x7+-parseInt(_0x23d0e0(0x123))/0x8*(-parseInt(_0x23d0e0(0x130))/0x9)+parseInt(_0x23d0e0(0x12d))/0xa;if(_0x463d14===_0x39e35a)break;else _0x45663a['push'](_0x45663a['shift']());}catch(_0x4398ff){_0x45663a['push'](_0x45663a['shift']());}}}(a0_0x542d,0x1d9c2));Object[a0_0x3156a4(0x133)](exports,'__esModule',{'value':!![]}),exports[a0_0x3156a4(0x11f)]=_0x5c535b=>{var _0x5a7f51=a0_0x3156a4;return{'apitest':!![],'keys':_0x5c535b[_0x5a7f51(0x127)],'anncicapi':{'timeout':0x1388,'password':_0x5a7f51(0x128),'devices':{'DEFAULT':{'secret':_0x5a7f51(0x12e),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x5a7f51(0x122),_0x5a7f51(0x12a),_0x5a7f51(0x131),_0x5a7f51(0x120)],'formLimit':_0x5a7f51(0x12b),'jsonLimit':_0x5a7f51(0x12b),'textLimit':'20mb','xmlLimit':'20mb'},'upload':{'tmpdir':_0x5c535b[_0x5a7f51(0x125)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x1bc541=a1_0x244c;function a1_0x244c(_0x5724b3,_0x3fe82b){var _0x1c258f=a1_0x1c25();return a1_0x244c=function(_0x244c69,_0x1157ed){_0x244c69=_0x244c69-0x187;var _0x38fc61=_0x1c258f[_0x244c69];return _0x38fc61;},a1_0x244c(_0x5724b3,_0x3fe82b);}function a1_0x1c25(){var _0x401371=['1077645YZEEat','1434834DXowCT','16294vtsZvM','30IlIZxV','3188660TbuWcX','32MKuiOW','4EBUztU','1331628YsuKZI','202350tvZtUS','1377178gwbwmb','57EOLqqF','7OWEawJ','__esModule','default'];a1_0x1c25=function(){return _0x401371;};return a1_0x1c25();}(function(_0xb46458,_0x314d97){var _0x1e5b4c=a1_0x244c,_0x34a170=_0xb46458();while(!![]){try{var _0x4bd638=-parseInt(_0x1e5b4c(0x18d))/0x1*(-parseInt(_0x1e5b4c(0x193))/0x2)+parseInt(_0x1e5b4c(0x191))/0x3*(-parseInt(_0x1e5b4c(0x189))/0x4)+-parseInt(_0x1e5b4c(0x187))/0x5+-parseInt(_0x1e5b4c(0x18b))/0x6*(parseInt(_0x1e5b4c(0x18e))/0x7)+-parseInt(_0x1e5b4c(0x188))/0x8*(-parseInt(_0x1e5b4c(0x192))/0x9)+parseInt(_0x1e5b4c(0x194))/0xa*(parseInt(_0x1e5b4c(0x18c))/0xb)+-parseInt(_0x1e5b4c(0x18a))/0xc;if(_0x4bd638===_0x314d97)break;else _0x34a170['push'](_0x34a170['shift']());}catch(_0xaa9cc6){_0x34a170['push'](_0x34a170['shift']());}}}(a1_0x1c25,0x520a4));Object['defineProperty'](exports,a1_0x1bc541(0x18f),{'value':!![]}),exports[a1_0x1bc541(0x190)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x2ff0f4=a2_0x1458;(function(_0xdc987d,_0x1d2e1e){const _0x21eeaa=a2_0x1458,_0x347d6c=_0xdc987d();while(!![]){try{const _0x1404a6=parseInt(_0x21eeaa(0xb8))/0x1*(parseInt(_0x21eeaa(0x94))/0x2)+-parseInt(_0x21eeaa(0xdd))/0x3+-parseInt(_0x21eeaa(0x9b))/0x4*(-parseInt(_0x21eeaa(0xb0))/0x5)+parseInt(_0x21eeaa(0xe1))/0x6+parseInt(_0x21eeaa(0xb3))/0x7*(parseInt(_0x21eeaa(0xbc))/0x8)+-parseInt(_0x21eeaa(0x88))/0x9*(-parseInt(_0x21eeaa(0xa0))/0xa)+-parseInt(_0x21eeaa(0xa3))/0xb*(parseInt(_0x21eeaa(0x8a))/0xc);if(_0x1404a6===_0x1d2e1e)break;else _0x347d6c['push'](_0x347d6c['shift']());}catch(_0x2da862){_0x347d6c['push'](_0x347d6c['shift']());}}}(a2_0x344d,0x4e504));var __decorate=this&&this['__decorate']||function(_0x212008,_0x7108e,_0x300d2e,_0x1a190f){const _0x1abf91=a2_0x1458;var _0x22f06c=arguments['length'],_0x1d1c9f=_0x22f06c<0x3?_0x7108e:_0x1a190f===null?_0x1a190f=Object[_0x1abf91(0x8f)](_0x7108e,_0x300d2e):_0x1a190f,_0x4824c6;if(typeof Reflect==='object'&&typeof Reflect[_0x1abf91(0xab)]==='function')_0x1d1c9f=Reflect[_0x1abf91(0xab)](_0x212008,_0x7108e,_0x300d2e,_0x1a190f);else{for(var _0x2a061a=_0x212008[_0x1abf91(0xcf)]-0x1;_0x2a061a>=0x0;_0x2a061a--)if(_0x4824c6=_0x212008[_0x2a061a])_0x1d1c9f=(_0x22f06c<0x3?_0x4824c6(_0x1d1c9f):_0x22f06c>0x3?_0x4824c6(_0x7108e,_0x300d2e,_0x1d1c9f):_0x4824c6(_0x7108e,_0x300d2e))||_0x1d1c9f;}return _0x22f06c>0x3&&_0x1d1c9f&&Object[_0x1abf91(0xd2)](_0x7108e,_0x300d2e,_0x1d1c9f),_0x1d1c9f;},__metadata=this&&this[a2_0x2ff0f4(0x85)]||function(_0x10905e,_0x328229){const _0x49d6be=a2_0x2ff0f4;if(typeof Reflect===_0x49d6be(0xaa)&&typeof Reflect['metadata']===_0x49d6be(0xd7))return Reflect['metadata'](_0x10905e,_0x328229);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x2ff0f4(0x98)]=void 0x0;const core_1=require(a2_0x2ff0f4(0x87)),core_2=require(a2_0x2ff0f4(0x87)),ApiError_1=require(a2_0x2ff0f4(0x83)),ApiService_1=require(a2_0x2ff0f4(0xc6)),action_1=require(a2_0x2ff0f4(0xc1)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x2ff0f4(0x92)),upload=require(a2_0x2ff0f4(0xd4)),staticFile=require(a2_0x2ff0f4(0xb1)),crossDomain=require(a2_0x2ff0f4(0xbe)),ConfigDefault=require(a2_0x2ff0f4(0xb7)),ConfigProduction=require(a2_0x2ff0f4(0xa8)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x2ff0f4(0xdc)),anncicValidator=require(a2_0x2ff0f4(0xbf)),anncicHelper=require(a2_0x2ff0f4(0xa6));function a2_0x1458(_0x135479,_0x1599af){const _0x344d40=a2_0x344d();return a2_0x1458=function(_0x1458df,_0x2e3c12){_0x1458df=_0x1458df-0x81;let _0x322af8=_0x344d40[_0x1458df];return _0x322af8;},a2_0x1458(_0x135479,_0x1599af);}let CustomConfiguration=class CustomConfiguration{async[a2_0x2ff0f4(0xbb)](){const _0x422532=a2_0x2ff0f4;await this[_0x422532(0xbd)](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x422532(0x9a)]();}async[a2_0x2ff0f4(0xa1)](){}async[a2_0x2ff0f4(0xa7)](){const _0x2ba9f3=a2_0x2ff0f4,_0x9043aa=this[_0x2ba9f3(0xd0)]['getConfiguration']();this['decorator']['registerMethodHandler'](action_1[_0x2ba9f3(0xca)],_0x42af4e=>{const _0x51d68a=_0x2ba9f3,_0x27864d=_0x42af4e[_0x51d68a(0xac)];return{'before':async _0xc2c2fb=>{const _0x56e442=_0x51d68a;var _0x31addc,_0x59eec6;const _0x48517a=(_0x31addc=_0xc2c2fb===null||_0xc2c2fb===void 0x0?void 0x0:_0xc2c2fb['target'])===null||_0x31addc===void 0x0?void 0x0:_0x31addc[core_2[_0x56e442(0xc5)]];if(_0x48517a&&(_0x27864d===null||_0x27864d===void 0x0?void 0x0:_0x27864d[_0x56e442(0xb5)])){if(!this[_0x56e442(0xb6)][_0x56e442(0xda)]((_0x59eec6=_0x48517a===null||_0x48517a===void 0x0?void 0x0:_0x48517a[_0x56e442(0x95)])===null||_0x59eec6===void 0x0?void 0x0:_0x59eec6[_0x56e442(0xce)]))throw new AnnError(ApiError_1[_0x56e442(0xdf)][_0x56e442(0xc4)]);}},'around':async _0x4da51b=>{const _0x40ba0b=_0x51d68a;var _0x575713,_0x417855,_0x505df5,_0x8c1e89,_0x19bcf3;const _0x1c4b5b=(_0x575713=_0x4da51b===null||_0x4da51b===void 0x0?void 0x0:_0x4da51b['target'])===null||_0x575713===void 0x0?void 0x0:_0x575713[core_2[_0x40ba0b(0xc5)]];if(_0x1c4b5b&&(_0x27864d===null||_0x27864d===void 0x0?void 0x0:_0x27864d[_0x40ba0b(0xb5)])){if(((_0x417855=_0x1c4b5b[_0x40ba0b(0xce)])===null||_0x417855===void 0x0?void 0x0:_0x417855['device'])&&((_0x19bcf3=(_0x8c1e89=(_0x505df5=_0x9043aa===null||_0x9043aa===void 0x0?void 0x0:_0x9043aa['anncicapi'])===null||_0x505df5===void 0x0?void 0x0:_0x505df5['devices'])===null||_0x8c1e89===void 0x0?void 0x0:_0x8c1e89[_0x1c4b5b[_0x40ba0b(0xce)][_0x40ba0b(0x8c)]])===null||_0x19bcf3===void 0x0?void 0x0:_0x19bcf3[_0x40ba0b(0x91)])){const _0x11427c=Array[_0x40ba0b(0x89)](_0x9043aa[_0x40ba0b(0xba)][_0x40ba0b(0xaf)][_0x1c4b5b['headers'][_0x40ba0b(0x8c)]][_0x40ba0b(0x91)])?_0x9043aa[_0x40ba0b(0xba)][_0x40ba0b(0xaf)][_0x1c4b5b[_0x40ba0b(0xce)][_0x40ba0b(0x8c)]][_0x40ba0b(0x91)]:[_0x9043aa[_0x40ba0b(0xba)][_0x40ba0b(0xaf)][_0x1c4b5b['headers']['device']][_0x40ba0b(0x91)]];for(const _0x4a746b of _0x11427c){if(core_1[_0x40ba0b(0x9f)]['isClass'](_0x4a746b)||typeof _0x4a746b=='string'){const _0x2a4ca1=await _0x1c4b5b[_0x40ba0b(0xe2)][_0x40ba0b(0x90)](_0x4a746b);typeof(_0x2a4ca1===null||_0x2a4ca1===void 0x0?void 0x0:_0x2a4ca1[_0x40ba0b(0x8d)])==_0x40ba0b(0xd7)&&await _0x2a4ca1[_0x40ba0b(0x8d)](typeof(_0x1c4b5b===null||_0x1c4b5b===void 0x0?void 0x0:_0x1c4b5b[_0x40ba0b(0xb9)])=='string'&&(_0x1c4b5b===null||_0x1c4b5b===void 0x0?void 0x0:_0x1c4b5b[_0x40ba0b(0x86)])?_0x1c4b5b[_0x40ba0b(0xb9)][_0x40ba0b(0xae)]()+'@'+(_0x1c4b5b===null||_0x1c4b5b===void 0x0?void 0x0:_0x1c4b5b[_0x40ba0b(0x86)]):undefined,_0x1c4b5b,_0x27864d);}else core_1[_0x40ba0b(0x9f)][_0x40ba0b(0x93)](_0x4a746b)&&await _0x4a746b(typeof(_0x1c4b5b===null||_0x1c4b5b===void 0x0?void 0x0:_0x1c4b5b[_0x40ba0b(0xb9)])==_0x40ba0b(0xb4)&&(_0x1c4b5b===null||_0x1c4b5b===void 0x0?void 0x0:_0x1c4b5b[_0x40ba0b(0x86)])?_0x1c4b5b[_0x40ba0b(0xb9)]['toLowerCase']()+'@'+(_0x1c4b5b===null||_0x1c4b5b===void 0x0?void 0x0:_0x1c4b5b['_matchedRoute']):undefined,_0x1c4b5b,_0x27864d);}}}return await _0x4da51b[_0x40ba0b(0xd3)](..._0x4da51b['args']);},'afterThrow':(_0x1d3421,_0x2cd7cd)=>{throw _0x2cd7cd;}};});}async[a2_0x2ff0f4(0x9a)](){const _0x297caf=a2_0x2ff0f4;this[_0x297caf(0x8e)][_0x297caf(0x84)](['koa'])['forEach'](_0x25701f=>{const _0x1bd4bc=_0x297caf;(_0x25701f===null||_0x25701f===void 0x0?void 0x0:_0x25701f[_0x1bd4bc(0xc0)])&&Object['defineProperties'](_0x25701f[_0x1bd4bc(0xc0)],{'ok':{'value':function(_0x4e7020,_0x1602d3,_0x5a9f6a=0x0){return{'code':_0x5a9f6a,'data':_0x4e7020,'extra':_0x1602d3};}},'input':{'value':function(_0x167657,_0x58caf6){const _0x380eaa=_0x1bd4bc;var _0x232495;const _0x42a59d=lodash[_0x380eaa(0x9e)]({},this[_0x380eaa(0x95)][_0x380eaa(0x97)]||this['request'][((_0x232495=config===null||config===void 0x0?void 0x0:config[_0x380eaa(0xd9)])===null||_0x232495===void 0x0?void 0x0:_0x232495[_0x380eaa(0x82)])||_0x380eaa(0x97)]||{},this[_0x380eaa(0x95)][_0x380eaa(0xcc)]||{});return _0x167657?lodash[_0x380eaa(0xb2)](_0x42a59d,_0x167657,_0x58caf6):_0x42a59d;}},'when':{'value':async function(_0x79eb4e,_0x5c4109){const _0x4445c3=_0x1bd4bc,_0xbea77=this[_0x4445c3(0xa2)](_0x79eb4e,null);if(!lodash[_0x4445c3(0xa4)](_0xbea77))return await _0x5c4109(_0xbea77);}},'only':{'value':function(_0x4740ef){const _0x20b93c=_0x1bd4bc,_0x5e97c5={};for(let _0xc782a0=0x0;_0xc782a0<_0x4740ef[_0x20b93c(0xcf)];_0xc782a0++){lodash[_0x20b93c(0x89)](_0x4740ef[_0xc782a0])&&_0x4740ef[_0xc782a0][_0x20b93c(0xcf)]>0x0&&lodash['isString'](_0x4740ef[_0xc782a0][0x0])&&(_0x5e97c5[_0x4740ef[_0xc782a0][0x0]]=this[_0x20b93c(0xa2)](_0x4740ef[_0xc782a0][0x0],_0x4740ef[_0xc782a0][_0x20b93c(0xcf)]>0x1?_0x4740ef[_0xc782a0][0x1]:null));}return _0x5e97c5;}}});});}async[a2_0x2ff0f4(0xbd)](){const _0x1e969b=a2_0x2ff0f4;var _0x6f4b62,_0x5c1bcf,_0x10655f,_0x3ff7b3,_0x3b0c83,_0x4b031c;const _0x53b2ce=this[_0x1e969b(0xd0)][_0x1e969b(0xcd)]();((_0x5c1bcf=(_0x6f4b62=_0x53b2ce===null||_0x53b2ce===void 0x0?void 0x0:_0x53b2ce[_0x1e969b(0xba)])===null||_0x6f4b62===void 0x0?void 0x0:_0x6f4b62[_0x1e969b(0xaf)])===null||_0x5c1bcf===void 0x0?void 0x0:_0x5c1bcf[_0x1e969b(0xd1)])&&Object[_0x1e969b(0xe0)](_0x53b2ce[_0x1e969b(0xba)][_0x1e969b(0xaf)])[_0x1e969b(0xcf)]>0x1&&delete _0x53b2ce[_0x1e969b(0xba)][_0x1e969b(0xaf)][_0x1e969b(0xd1)];if((_0x10655f=_0x53b2ce===null||_0x53b2ce===void 0x0?void 0x0:_0x53b2ce[_0x1e969b(0x8b)])===null||_0x10655f===void 0x0?void 0x0:_0x10655f[_0x1e969b(0xa5)])for(const _0x10d415 in _0x53b2ce['staticFile'][_0x1e969b(0xa5)]){((_0x3ff7b3=_0x53b2ce[_0x1e969b(0x8b)][_0x1e969b(0xa5)][_0x10d415])===null||_0x3ff7b3===void 0x0?void 0x0:_0x3ff7b3[_0x1e969b(0xc3)])&&typeof((_0x3b0c83=_0x53b2ce['staticFile'][_0x1e969b(0xa5)][_0x10d415])===null||_0x3b0c83===void 0x0?void 0x0:_0x3b0c83[_0x1e969b(0xc3)])=='string'&&!fs[_0x1e969b(0xcb)](_0x53b2ce[_0x1e969b(0x8b)][_0x1e969b(0xa5)][_0x10d415][_0x1e969b(0xc3)])&&(fs['mkdirSync'](_0x53b2ce['staticFile'][_0x1e969b(0xa5)][_0x10d415][_0x1e969b(0xc3)],{'recursive':!![]}),console[_0x1e969b(0xdb)](_0x1e969b(0xc2)+_0x53b2ce['staticFile'][_0x1e969b(0xa5)][_0x10d415][_0x1e969b(0xc3)]));}((_0x4b031c=_0x53b2ce===null||_0x53b2ce===void 0x0?void 0x0:_0x53b2ce[_0x1e969b(0xd6)])===null||_0x4b031c===void 0x0?void 0x0:_0x4b031c[_0x1e969b(0xd8)])&&!fs[_0x1e969b(0xcb)](_0x53b2ce['upload'][_0x1e969b(0xd8)])&&(fs[_0x1e969b(0xde)](_0x53b2ce[_0x1e969b(0xd6)]['tmpdir'],{'recursive':!![]}),console[_0x1e969b(0xdb)](_0x1e969b(0x9c)+_0x53b2ce[_0x1e969b(0xd6)]['tmpdir'])),this[_0x1e969b(0xd0)][_0x1e969b(0xc9)](_0x53b2ce);}};__decorate([(0x0,core_1[a2_0x2ff0f4(0xa9)])(),__metadata(a2_0x2ff0f4(0xc7),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x2ff0f4(0xd0),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2ff0f4(0xc7),core_2[a2_0x2ff0f4(0xad)])],CustomConfiguration[a2_0x2ff0f4(0x99)],a2_0x2ff0f4(0x81),void 0x0),__decorate([(0x0,core_1[a2_0x2ff0f4(0xa9)])(),__metadata(a2_0x2ff0f4(0xc7),core_2[a2_0x2ff0f4(0xc8)])],CustomConfiguration['prototype'],a2_0x2ff0f4(0x8e),void 0x0),__decorate([(0x0,core_1[a2_0x2ff0f4(0xa9)])(),__metadata(a2_0x2ff0f4(0xc7),core_2[a2_0x2ff0f4(0xd5)])],CustomConfiguration[a2_0x2ff0f4(0x99)],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',ApiService_1[a2_0x2ff0f4(0xb6)])],CustomConfiguration[a2_0x2ff0f4(0x99)],a2_0x2ff0f4(0xb6),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2ff0f4(0x96)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2ff0f4(0x9d),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;function a2_0x344d(){const _0x1823f0=['string','apimit','ApiService','./config/config.default','6cHzzKQ','method','anncicapi','onReady','48EsHoZY','filterConfig','@midwayjs/cross-domain','@anncic-api/validator','context','./types/action','Anncic-api\x20static-file\x20:\x20mkdir\x20','dir','HEADERS_SIGNATURE','REQUEST_OBJ_CTX_KEY','./service/ApiService','design:type','MidwayApplicationManager','addObject','ACTION_ROUTE_KEY','existsSync','query','getConfiguration','headers','length','config','DEFAULT','defineProperty','proceed','@midwayjs/upload','MidwayEnvironmentService','upload','function','tmpdir','bodyXml','checksign','log','@anncic-api/typeorm','1550937lpoHmK','mkdirSync','ApiError','keys','2445042TkFuSn','requestContext','decorator','key','./exception/ApiError','getApplications','__metadata','_matchedRoute','@midwayjs/core','855NozMfJ','isArray','10392vCerBY','staticFile','device','handler','application','getOwnPropertyDescriptor','getAsync','intercept','@midwayjs/i18n','isFunction','84674itLNDx','request','Configuration','body','CustomConfiguration','prototype','hanlderApplications','933304xVTria','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','anncic-api','defaultsDeep','Types','49040OsKEKf','checkConfigKeys','input','12034mxtjEC','isNull','dirs','anncic-apihelper','handlerActionRoute','./config/config.production','Inject','object','decorate','metadata','MidwayDecoratorService','toLowerCase','devices','10ErMkPG','@midwayjs/static-file','get','222943UAUMFi'];a2_0x344d=function(){return _0x1823f0;};return a2_0x344d();}
|
|
1
|
+
'use strict';const a2_0xa87d2d=a2_0x2cfe;(function(_0x5d4c0c,_0x1c9ffe){const _0x44ee13=a2_0x2cfe,_0x31e2e1=_0x5d4c0c();while(!![]){try{const _0x5ef1de=parseInt(_0x44ee13(0x1c2))/0x1+parseInt(_0x44ee13(0x1f7))/0x2*(-parseInt(_0x44ee13(0x1ce))/0x3)+parseInt(_0x44ee13(0x1e6))/0x4+-parseInt(_0x44ee13(0x1bc))/0x5*(-parseInt(_0x44ee13(0x1e5))/0x6)+-parseInt(_0x44ee13(0x1e0))/0x7+parseInt(_0x44ee13(0x201))/0x8*(-parseInt(_0x44ee13(0x1c8))/0x9)+-parseInt(_0x44ee13(0x1c4))/0xa;if(_0x5ef1de===_0x1c9ffe)break;else _0x31e2e1['push'](_0x31e2e1['shift']());}catch(_0x305324){_0x31e2e1['push'](_0x31e2e1['shift']());}}}(a2_0x19b7,0xe68f6));var __decorate=this&&this[a2_0xa87d2d(0x1be)]||function(_0x60d60e,_0x103fa9,_0x5681d9,_0x2c5fb9){const _0x226f7c=a2_0xa87d2d;var _0x359e9b=arguments[_0x226f7c(0x1f0)],_0x66cf3e=_0x359e9b<0x3?_0x103fa9:_0x2c5fb9===null?_0x2c5fb9=Object['getOwnPropertyDescriptor'](_0x103fa9,_0x5681d9):_0x2c5fb9,_0xed1655;if(typeof Reflect==='object'&&typeof Reflect[_0x226f7c(0x1dd)]==='function')_0x66cf3e=Reflect['decorate'](_0x60d60e,_0x103fa9,_0x5681d9,_0x2c5fb9);else{for(var _0x4d0705=_0x60d60e['length']-0x1;_0x4d0705>=0x0;_0x4d0705--)if(_0xed1655=_0x60d60e[_0x4d0705])_0x66cf3e=(_0x359e9b<0x3?_0xed1655(_0x66cf3e):_0x359e9b>0x3?_0xed1655(_0x103fa9,_0x5681d9,_0x66cf3e):_0xed1655(_0x103fa9,_0x5681d9))||_0x66cf3e;}return _0x359e9b>0x3&&_0x66cf3e&&Object['defineProperty'](_0x103fa9,_0x5681d9,_0x66cf3e),_0x66cf3e;},__metadata=this&&this[a2_0xa87d2d(0x1eb)]||function(_0x21d165,_0x34e852){const _0x4d0a70=a2_0xa87d2d;if(typeof Reflect===_0x4d0a70(0x1b7)&&typeof Reflect['metadata']==='function')return Reflect[_0x4d0a70(0x1b9)](_0x21d165,_0x34e852);};Object[a2_0xa87d2d(0x1d0)](exports,a2_0xa87d2d(0x207),{'value':!![]}),exports[a2_0xa87d2d(0x1ad)]=void 0x0;const core_1=require(a2_0xa87d2d(0x1d2)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0xa87d2d(0x1c0)),ApiService_1=require(a2_0xa87d2d(0x1ed)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0xa87d2d(0x1ea)),i18n=require('@midwayjs/i18n'),upload=require(a2_0xa87d2d(0x1de)),staticFile=require(a2_0xa87d2d(0x1db)),crossDomain=require(a2_0xa87d2d(0x1f5)),ConfigDefault=require(a2_0xa87d2d(0x1f9)),ConfigProduction=require(a2_0xa87d2d(0x1ec)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0xa87d2d(0x1da)),anncicEvent=require(a2_0xa87d2d(0x200)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0xa87d2d(0x1d6)),anncicHelper=require(a2_0xa87d2d(0x1e1));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x14cadd=a2_0xa87d2d;await this[_0x14cadd(0x1ab)](),await this[_0x14cadd(0x1e3)](),await this[_0x14cadd(0x1d3)](),await this[_0x14cadd(0x1ba)]();}async[a2_0xa87d2d(0x1e3)](){}async[a2_0xa87d2d(0x1d3)](){const _0x4ff533=a2_0xa87d2d,_0x3ce8db=this[_0x4ff533(0x1b3)]['getConfiguration']();this['decorator'][_0x4ff533(0x1ff)](action_1[_0x4ff533(0x203)],_0x2373c3=>{const _0x1b2082=_0x2373c3['metadata'];return{'before':async _0x17e69a=>{const _0x51f571=a2_0x2cfe;var _0x140b33,_0x42d329;const _0x541385=(_0x140b33=_0x17e69a===null||_0x17e69a===void 0x0?void 0x0:_0x17e69a[_0x51f571(0x1fa)])===null||_0x140b33===void 0x0?void 0x0:_0x140b33[core_2[_0x51f571(0x1ae)]];if(_0x541385&&(_0x1b2082===null||_0x1b2082===void 0x0?void 0x0:_0x1b2082[_0x51f571(0x1c3)])){if(!this['ApiService'][_0x51f571(0x205)]((_0x42d329=_0x541385===null||_0x541385===void 0x0?void 0x0:_0x541385[_0x51f571(0x1bf)])===null||_0x42d329===void 0x0?void 0x0:_0x42d329[_0x51f571(0x1d5)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x5220bd=>{const _0x36d318=a2_0x2cfe;var _0x14d417,_0x21d4f6,_0xc11a52,_0x2284de,_0x33ddb4;const _0x441c80=(_0x14d417=_0x5220bd===null||_0x5220bd===void 0x0?void 0x0:_0x5220bd['target'])===null||_0x14d417===void 0x0?void 0x0:_0x14d417[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x441c80&&(_0x1b2082===null||_0x1b2082===void 0x0?void 0x0:_0x1b2082[_0x36d318(0x1c3)])){if(((_0x21d4f6=_0x441c80[_0x36d318(0x1d5)])===null||_0x21d4f6===void 0x0?void 0x0:_0x21d4f6['device'])&&((_0x33ddb4=(_0x2284de=(_0xc11a52=_0x3ce8db===null||_0x3ce8db===void 0x0?void 0x0:_0x3ce8db[_0x36d318(0x1e2)])===null||_0xc11a52===void 0x0?void 0x0:_0xc11a52[_0x36d318(0x204)])===null||_0x2284de===void 0x0?void 0x0:_0x2284de[_0x441c80['headers'][_0x36d318(0x1b1)]])===null||_0x33ddb4===void 0x0?void 0x0:_0x33ddb4[_0x36d318(0x1dc)])){const _0x16a89d=Array[_0x36d318(0x1c9)](_0x3ce8db['anncicapi'][_0x36d318(0x204)][_0x441c80[_0x36d318(0x1d5)]['device']][_0x36d318(0x1dc)])?_0x3ce8db[_0x36d318(0x1e2)]['devices'][_0x441c80[_0x36d318(0x1d5)][_0x36d318(0x1b1)]][_0x36d318(0x1dc)]:[_0x3ce8db[_0x36d318(0x1e2)][_0x36d318(0x204)][_0x441c80[_0x36d318(0x1d5)][_0x36d318(0x1b1)]][_0x36d318(0x1dc)]];for(const _0x54bd79 of _0x16a89d){if(core_1['Types'][_0x36d318(0x1cd)](_0x54bd79)||typeof _0x54bd79==_0x36d318(0x1bd)){const _0x486649=await _0x441c80['requestContext'][_0x36d318(0x1c1)](_0x54bd79);typeof(_0x486649===null||_0x486649===void 0x0?void 0x0:_0x486649['handler'])==_0x36d318(0x1b6)&&await _0x486649['handler'](typeof(_0x441c80===null||_0x441c80===void 0x0?void 0x0:_0x441c80[_0x36d318(0x1ca)])=='string'&&(_0x441c80===null||_0x441c80===void 0x0?void 0x0:_0x441c80[_0x36d318(0x1fc)])?_0x441c80[_0x36d318(0x1ca)][_0x36d318(0x1f6)]()+'@'+(_0x441c80===null||_0x441c80===void 0x0?void 0x0:_0x441c80['_matchedRoute']):undefined,_0x441c80,_0x1b2082);}else core_1[_0x36d318(0x1e8)][_0x36d318(0x1d8)](_0x54bd79)&&await _0x54bd79(typeof(_0x441c80===null||_0x441c80===void 0x0?void 0x0:_0x441c80[_0x36d318(0x1ca)])==_0x36d318(0x1bd)&&(_0x441c80===null||_0x441c80===void 0x0?void 0x0:_0x441c80[_0x36d318(0x1fc)])?_0x441c80[_0x36d318(0x1ca)][_0x36d318(0x1f6)]()+'@'+(_0x441c80===null||_0x441c80===void 0x0?void 0x0:_0x441c80['_matchedRoute']):undefined,_0x441c80,_0x1b2082);}}}return await _0x5220bd[_0x36d318(0x1c6)](..._0x5220bd[_0x36d318(0x1cf)]);},'afterThrow':(_0xe77306,_0x57582b)=>{throw _0x57582b;}};});}async[a2_0xa87d2d(0x1ba)](){const _0x2e4565=a2_0xa87d2d;this[_0x2e4565(0x1cb)]['getApplications']([_0x2e4565(0x1bb)])[_0x2e4565(0x1fb)](_0x274748=>{const _0x36f94b=_0x2e4565;(_0x274748===null||_0x274748===void 0x0?void 0x0:_0x274748['context'])&&Object[_0x36f94b(0x1af)](_0x274748[_0x36f94b(0x1e7)],{'ok':{'value':function(_0x2bbdcc,_0x16c825,_0x2ea149=0x0){return{'code':_0x2ea149,'data':_0x2bbdcc,'extra':_0x16c825};}},'input':{'value':function(_0x281012,_0x1dae5b){const _0x16e12e=_0x36f94b;var _0x43f0e6;const _0x1566ce=lodash[_0x16e12e(0x1c5)]({},this[_0x16e12e(0x1bf)][_0x16e12e(0x1cc)]||this[_0x16e12e(0x1bf)][((_0x43f0e6=config===null||config===void 0x0?void 0x0:config[_0x16e12e(0x1e4)])===null||_0x43f0e6===void 0x0?void 0x0:_0x43f0e6[_0x16e12e(0x1b2)])||_0x16e12e(0x1cc)]||{},this[_0x16e12e(0x1bf)]['query']||{});return _0x281012?lodash[_0x16e12e(0x1f1)](_0x1566ce,_0x281012,_0x1dae5b):_0x1566ce;}},'when':{'value':async function(_0x557436,_0x37be68){const _0xd9d1b4=_0x36f94b,_0x2af745=this[_0xd9d1b4(0x1aa)](_0x557436,null);if(!lodash[_0xd9d1b4(0x1f4)](_0x2af745))return await _0x37be68(_0x2af745);}},'only':{'value':function(_0x19f49c){const _0x287dae=_0x36f94b,_0x3a7f8b={};for(let _0x564300=0x0;_0x564300<_0x19f49c[_0x287dae(0x1f0)];_0x564300++){lodash['isArray'](_0x19f49c[_0x564300])&&_0x19f49c[_0x564300]['length']>0x0&&lodash[_0x287dae(0x1b5)](_0x19f49c[_0x564300][0x0])&&(_0x3a7f8b[_0x19f49c[_0x564300][0x0]]=this['input'](_0x19f49c[_0x564300][0x0],_0x19f49c[_0x564300][_0x287dae(0x1f0)]>0x1?_0x19f49c[_0x564300][0x1]:null));}return _0x3a7f8b;}}});});}async[a2_0xa87d2d(0x1ab)](){const _0x3b8dda=a2_0xa87d2d;var _0x1a5972,_0x5a5997,_0x1446d7,_0x373ba6,_0x5c6228,_0x2adde2;const _0x26a898=this[_0x3b8dda(0x1b3)][_0x3b8dda(0x1fe)]();((_0x5a5997=(_0x1a5972=_0x26a898===null||_0x26a898===void 0x0?void 0x0:_0x26a898[_0x3b8dda(0x1e2)])===null||_0x1a5972===void 0x0?void 0x0:_0x1a5972[_0x3b8dda(0x204)])===null||_0x5a5997===void 0x0?void 0x0:_0x5a5997[_0x3b8dda(0x1a9)])&&Object[_0x3b8dda(0x1f8)](_0x26a898[_0x3b8dda(0x1e2)][_0x3b8dda(0x204)])[_0x3b8dda(0x1f0)]>0x1&&delete _0x26a898[_0x3b8dda(0x1e2)][_0x3b8dda(0x204)][_0x3b8dda(0x1a9)];if((_0x1446d7=_0x26a898===null||_0x26a898===void 0x0?void 0x0:_0x26a898[_0x3b8dda(0x1ef)])===null||_0x1446d7===void 0x0?void 0x0:_0x1446d7['dirs'])for(const _0x3fe05a in _0x26a898['staticFile'][_0x3b8dda(0x206)]){((_0x373ba6=_0x26a898[_0x3b8dda(0x1ef)]['dirs'][_0x3fe05a])===null||_0x373ba6===void 0x0?void 0x0:_0x373ba6['dir'])&&typeof((_0x5c6228=_0x26a898[_0x3b8dda(0x1ef)][_0x3b8dda(0x206)][_0x3fe05a])===null||_0x5c6228===void 0x0?void 0x0:_0x5c6228[_0x3b8dda(0x1b4)])=='string'&&!fs[_0x3b8dda(0x1ee)](_0x26a898[_0x3b8dda(0x1ef)][_0x3b8dda(0x206)][_0x3fe05a][_0x3b8dda(0x1b4)])&&(fs[_0x3b8dda(0x1d9)](_0x26a898[_0x3b8dda(0x1ef)][_0x3b8dda(0x206)][_0x3fe05a][_0x3b8dda(0x1b4)],{'recursive':!![]}),console['log'](_0x3b8dda(0x1b0)+_0x26a898[_0x3b8dda(0x1ef)][_0x3b8dda(0x206)][_0x3fe05a]['dir']));}((_0x2adde2=_0x26a898===null||_0x26a898===void 0x0?void 0x0:_0x26a898[_0x3b8dda(0x1e9)])===null||_0x2adde2===void 0x0?void 0x0:_0x2adde2[_0x3b8dda(0x1f2)])&&!fs[_0x3b8dda(0x1ee)](_0x26a898[_0x3b8dda(0x1e9)][_0x3b8dda(0x1f2)])&&(fs['mkdirSync'](_0x26a898[_0x3b8dda(0x1e9)][_0x3b8dda(0x1f2)],{'recursive':!![]}),console[_0x3b8dda(0x1d1)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x26a898[_0x3b8dda(0x1e9)][_0x3b8dda(0x1f2)])),this[_0x3b8dda(0x1b3)][_0x3b8dda(0x1df)](_0x26a898);}};__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0xa87d2d(0x1fd),core_2[a2_0xa87d2d(0x1d4)])],CustomConfiguration[a2_0xa87d2d(0x1f3)],a2_0xa87d2d(0x1b3),void 0x0),__decorate([(0x0,core_1[a2_0xa87d2d(0x1d7)])(),__metadata(a2_0xa87d2d(0x1fd),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0xa87d2d(0x1f3)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0xa87d2d(0x1d7)])(),__metadata(a2_0xa87d2d(0x1fd),core_2[a2_0xa87d2d(0x1c7)])],CustomConfiguration[a2_0xa87d2d(0x1f3)],a2_0xa87d2d(0x1cb),void 0x0),__decorate([(0x0,core_1[a2_0xa87d2d(0x1d7)])(),__metadata(a2_0xa87d2d(0x1fd),core_2[a2_0xa87d2d(0x1b8)])],CustomConfiguration[a2_0xa87d2d(0x1f3)],a2_0xa87d2d(0x1ac),void 0x0),__decorate([(0x0,core_1[a2_0xa87d2d(0x1d7)])(),__metadata('design:type',ApiService_1[a2_0xa87d2d(0x1a8)])],CustomConfiguration[a2_0xa87d2d(0x1f3)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0xa87d2d(0x202)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xa87d2d(0x1ad)]=CustomConfiguration;function a2_0x2cfe(_0x3ef045,_0x54690f){const _0x19b72c=a2_0x19b7();return a2_0x2cfe=function(_0x2cfe43,_0x529215){_0x2cfe43=_0x2cfe43-0x1a8;let _0x5d1a52=_0x19b72c[_0x2cfe43];return _0x5d1a52;},a2_0x2cfe(_0x3ef045,_0x54690f);}function a2_0x19b7(){const _0x115368=['devices','checksign','dirs','__esModule','ApiService','DEFAULT','input','filterConfig','environment','CustomConfiguration','REQUEST_OBJ_CTX_KEY','defineProperties','Anncic-api\x20static-file\x20:\x20mkdir\x20','device','key','config','dir','isString','function','object','MidwayEnvironmentService','metadata','hanlderApplications','koa','160355mCGwUp','string','__decorate','request','./exception/ApiError','getAsync','803806xyhzdb','apimit','17632790mSySIe','defaultsDeep','proceed','MidwayApplicationManager','2052ufTEon','isArray','method','application','body','isClass','9Gfpxwv','args','defineProperty','log','@midwayjs/core','handlerActionRoute','MidwayConfigService','headers','@anncic-api/validator','Inject','isFunction','mkdirSync','@anncic-api/cache','@midwayjs/static-file','intercept','decorate','@midwayjs/upload','addObject','1466990aTQJuC','anncic-apihelper','anncicapi','checkConfigKeys','bodyXml','174KVBwxC','6044144DqEfFx','context','Types','upload','@midwayjs/koa','__metadata','./config/config.production','./service/ApiService','existsSync','staticFile','length','get','tmpdir','prototype','isNull','@midwayjs/cross-domain','toLowerCase','100500WTXmDd','keys','./config/config.default','target','forEach','_matchedRoute','design:type','getConfiguration','registerMethodHandler','@anncic-api/event','6208aCGpkD','Configuration','ACTION_ROUTE_KEY'];a2_0x19b7=function(){return _0x115368;};return a2_0x19b7();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a3_0x4f9f(_0x764f98,_0x3b05a8){const _0x3f3d1e=a3_0x3f3d();return a3_0x4f9f=function(_0x4f9f34,_0x489a65){_0x4f9f34=_0x4f9f34-0x66;let _0x123774=_0x3f3d1e[_0x4f9f34];return _0x123774;},a3_0x4f9f(_0x764f98,_0x3b05a8);}const a3_0x5e12d4=a3_0x4f9f;(function(_0x5b35d2,_0x4256f3){const _0x4a3402=a3_0x4f9f,_0x2ef804=_0x5b35d2();while(!![]){try{const _0x4ab2e5=-parseInt(_0x4a3402(0x82))/0x1+-parseInt(_0x4a3402(0x8e))/0x2*(-parseInt(_0x4a3402(0x6f))/0x3)+-parseInt(_0x4a3402(0x7c))/0x4+parseInt(_0x4a3402(0x77))/0x5*(parseInt(_0x4a3402(0x9a))/0x6)+parseInt(_0x4a3402(0x76))/0x7+-parseInt(_0x4a3402(0x97))/0x8+parseInt(_0x4a3402(0x86))/0x9;if(_0x4ab2e5===_0x4256f3)break;else _0x2ef804['push'](_0x2ef804['shift']());}catch(_0xbe5e71){_0x2ef804['push'](_0x2ef804['shift']());}}}(a3_0x3f3d,0xc73a7));function a3_0x3f3d(){const _0x4670a2=['module','1122607TWiSfK','filepath','cwd','AppsConfigTmp','18082053FjWcuc','existsSync','join','parseRoute','APPSCONFIG_KEY','splice','prefix','saveClassMetadata','60558YdbGTt','getClassMetadata','match','Action','/config.','apps/','\x20文件请放在apps/','filter','defineProperty','8161120yCqQnz','trim','split','12HYyYQU','ACTION_KEY','\x20文件请放在app/controller/文件下','/apps/','middleware','rootpath','startsWith','endsWith','route','length','isArray','app/controller/','6WHQeft','/controller/文件下','replace','/controller/','substring','-controller','tagName','4837742CGnkay','1015075HEeblb','-action','saveModule','middlewareIgnore','Controller','832100AfkKIp','toLowerCase','push','indexOf','__esModule'];a3_0x3f3d=function(){return _0x4670a2;};return a3_0x3f3d();}Object[a3_0x5e12d4(0x96)](exports,a3_0x5e12d4(0x80),{'value':!![]}),exports[a3_0x5e12d4(0x89)]=exports[a3_0x5e12d4(0x91)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Action(_0x4479cc,_0x44919d,_0x4bd02={'middleware':[],'sensitive':!![]}){return _0x22ba63=>{const _0x430cdf=a3_0x4f9f;var _0x32912b;_0x4bd02[_0x430cdf(0x75)]=_0x44919d;const _0x4adb79=parseRoute(_0x4479cc);if(_0x4adb79[_0x430cdf(0x81)]){_0x4bd02[_0x430cdf(0x8c)]=_0x4bd02[_0x430cdf(0x8c)]?'/'+_0x4adb79[_0x430cdf(0x81)]+'/'+_0x4bd02[_0x430cdf(0x8c)]:'/'+_0x4adb79['route'];_0x4adb79[_0x430cdf(0x8c)]&&(_0x4bd02[_0x430cdf(0x8c)]='/'+_0x4adb79[_0x430cdf(0x8c)]+'/'+_0x4bd02[_0x430cdf(0x8c)]);if(fs[_0x430cdf(0x87)](_0x4adb79[_0x430cdf(0x68)]+_0x430cdf(0x66)+_0x4adb79[_0x430cdf(0x81)]+_0x430cdf(0x92)+(lodash[_0x430cdf(0x6a)](_0x4adb79[_0x430cdf(0x83)],'ts')?'ts':'js'))){const _0x15c5e0=include(_0x4adb79[_0x430cdf(0x68)]+_0x430cdf(0x66)+_0x4adb79[_0x430cdf(0x81)]+_0x430cdf(0x92)+(lodash[_0x430cdf(0x6a)](_0x4adb79[_0x430cdf(0x83)],'ts')?'ts':'js'));if(_0x15c5e0['middleware']&&lodash[_0x430cdf(0x6d)](_0x15c5e0[_0x430cdf(0x67)])&&_0x15c5e0[_0x430cdf(0x67)][_0x430cdf(0x6c)]>0x0)for(let _0x4d7216 in _0x15c5e0[_0x430cdf(0x67)]){if(((_0x32912b=_0x15c5e0===null||_0x15c5e0===void 0x0?void 0x0:_0x15c5e0[_0x430cdf(0x7a)])===null||_0x32912b===void 0x0?void 0x0:_0x32912b[_0x430cdf(0x6c)])>0x0&&_0x15c5e0[_0x430cdf(0x7a)]['indexOf'](_0x15c5e0[_0x430cdf(0x67)][_0x4d7216])!=-0x1)continue;_0x4bd02[_0x430cdf(0x67)][_0x430cdf(0x7e)](_0x15c5e0[_0x430cdf(0x67)][_0x4d7216]);}const _0x51dab5=(0x0,core_1[_0x430cdf(0x8f)])(action_1[_0x430cdf(0x8a)],action_1[_0x430cdf(0x85)])||{};_0x51dab5[''+_0x4adb79[_0x430cdf(0x81)]]=_0x15c5e0,(0x0,core_1['saveClassMetadata'])(action_1[_0x430cdf(0x8a)],_0x51dab5,action_1[_0x430cdf(0x85)]);}_0x4bd02[_0x430cdf(0x8c)]=_0x4bd02[_0x430cdf(0x8c)][_0x430cdf(0x7d)]()[_0x430cdf(0x71)](/\/{2,}/g,'/'),(0x0,core_1[_0x430cdf(0x79)])(action_1['ACTION_KEY'],_0x22ba63),(0x0,core_1[_0x430cdf(0x7b)])(_0x4bd02[_0x430cdf(0x8c)],_0x4bd02)(_0x22ba63),(0x0,core_1[_0x430cdf(0x8d)])(action_1[_0x430cdf(0x9b)],{'prefix':_0x4bd02[_0x430cdf(0x8c)],'pprefix':_0x4adb79[_0x430cdf(0x8c)],'module':_0x4adb79[_0x430cdf(0x81)],'filepath':_0x4adb79[_0x430cdf(0x83)],'routerOptions':_0x4bd02},_0x22ba63);}else _0x4bd02[_0x430cdf(0x8c)]=_0x4bd02['prefix']?'/'+_0x4bd02[_0x430cdf(0x8c)]:'/'+_0x4adb79[_0x430cdf(0x6b)],_0x4adb79['prefix']&&(_0x4bd02['prefix']='/'+_0x4adb79[_0x430cdf(0x8c)]+'/'+_0x4bd02[_0x430cdf(0x8c)]),_0x4bd02[_0x430cdf(0x8c)]=_0x4bd02[_0x430cdf(0x8c)][_0x430cdf(0x7d)]()[_0x430cdf(0x71)](/\/{2,}/g,'/'),(0x0,core_1[_0x430cdf(0x79)])(action_1['ACTION_KEY'],_0x22ba63),(0x0,core_1[_0x430cdf(0x7b)])(_0x4bd02[_0x430cdf(0x8c)],_0x4bd02)(_0x22ba63),(0x0,core_1['saveClassMetadata'])(action_1[_0x430cdf(0x9b)],{'prefix':_0x4bd02[_0x430cdf(0x8c)],'module':_0x4adb79['module'],'pprefix':_0x4adb79[_0x430cdf(0x8c)],'filepath':_0x4adb79[_0x430cdf(0x83)],'routerOptions':_0x4bd02},_0x22ba63);};}exports[a3_0x5e12d4(0x91)]=Action;function parseRoute(_0x2cf72d){const _0x33a2b0=a3_0x5e12d4;_0x2cf72d=_0x2cf72d[_0x33a2b0(0x71)](/(\\|\/)/g,'/');const _0x110786=process[_0x33a2b0(0x84)]()[_0x33a2b0(0x71)](/(\\|\/)/g,'/'),_0x208ba=_0x2cf72d[_0x33a2b0(0x73)](0x0,_0x110786[_0x33a2b0(0x6c)]+_0x2cf72d[_0x33a2b0(0x73)](_0x110786[_0x33a2b0(0x6c)]+0x1)[_0x33a2b0(0x7f)]('/')+0x1),_0x213cad=_0x2cf72d[_0x33a2b0(0x73)](_0x208ba[_0x33a2b0(0x6c)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x257389={'route':'','prefix':![],'module':![],'rootpath':_0x208ba,'filepath':_0x213cad};if(_0x213cad[_0x33a2b0(0x69)]('app/controller/')){const _0x2ea654=_0x213cad[_0x33a2b0(0x73)](_0x33a2b0(0x6e)['length'])[_0x33a2b0(0x99)]('/')[_0x33a2b0(0x95)](_0x4799b4=>_0x4799b4&&_0x4799b4[_0x33a2b0(0x98)]());return _0x2ea654[_0x33a2b0(0x6c)]>0x1&&(_0x257389[_0x33a2b0(0x8c)]=_0x2ea654[0x0][_0x33a2b0(0x7d)](),_0x2ea654[_0x33a2b0(0x8b)](0x0,0x1)),_0x257389[_0x33a2b0(0x6b)]=('/'+_0x2ea654['join']('/'))[_0x33a2b0(0x71)](/(\.ts|\.js)$/,'')[_0x33a2b0(0x71)](/\/{2,}/g,'/')[_0x33a2b0(0x90)](/[\/|A-Z]*[^A-Z]+/g)[_0x33a2b0(0x88)]('-')[_0x33a2b0(0x7d)]()[_0x33a2b0(0x71)](/\/\-/g,'/'),_0x257389['route']['endsWith'](_0x33a2b0(0x78))&&(_0x257389[_0x33a2b0(0x6b)]=_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x73)](0x0,_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x6c)]-0x7)),_0x257389['route'][_0x33a2b0(0x6a)](_0x33a2b0(0x74))&&(_0x257389[_0x33a2b0(0x6b)]=_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x73)](0x0,_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x6c)]-0xb)),_0x257389;}else{if(_0x213cad[_0x33a2b0(0x69)](_0x33a2b0(0x93))){const _0x2d5db5=_0x213cad[_0x33a2b0(0x73)](0x0,_0x213cad[_0x33a2b0(0x7f)](_0x33a2b0(0x66))+0x5),_0x142f62=_0x213cad['substring'](_0x2d5db5[_0x33a2b0(0x6c)]+0x1)[_0x33a2b0(0x71)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x213cad[_0x33a2b0(0x69)](_0x33a2b0(0x93)+_0x142f62+_0x33a2b0(0x72))){const _0x4e906d=_0x213cad[_0x33a2b0(0x73)]((_0x2d5db5+'/'+_0x142f62+_0x33a2b0(0x72))['length'])[_0x33a2b0(0x99)]('/')[_0x33a2b0(0x95)](_0x2cc5c5=>_0x2cc5c5&&_0x2cc5c5['trim']());return _0x4e906d[_0x33a2b0(0x6c)]>0x1&&(_0x257389['prefix']=_0x4e906d[0x0]['toLowerCase'](),_0x4e906d[_0x33a2b0(0x8b)](0x0,0x1)),_0x257389[_0x33a2b0(0x81)]=_0x142f62,_0x257389[_0x33a2b0(0x6b)]=('/'+_0x142f62+'/'+_0x4e906d[_0x33a2b0(0x88)]('/'))[_0x33a2b0(0x71)](/(\.ts|\.js)$/,'')[_0x33a2b0(0x71)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x33a2b0(0x88)]('-')[_0x33a2b0(0x7d)]()[_0x33a2b0(0x71)](/\/\-/g,'/'),_0x257389['route'][_0x33a2b0(0x6a)](_0x33a2b0(0x78))&&(_0x257389[_0x33a2b0(0x6b)]=_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x73)](0x0,_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x6c)]-0x7)),_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x6a)](_0x33a2b0(0x74))&&(_0x257389[_0x33a2b0(0x6b)]=_0x257389[_0x33a2b0(0x6b)][_0x33a2b0(0x73)](0x0,_0x257389['route']['length']-0xb)),_0x257389;}throw new Error(_0x213cad+_0x33a2b0(0x94)+_0x142f62+_0x33a2b0(0x70));}}throw new Error(_0x213cad+_0x33a2b0(0x9c));}exports[a3_0x5e12d4(0x89)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x229ddb=a4_0x5308;function a4_0x5308(_0x22f510,_0x55595f){const _0x1d7650=a4_0x1d76();return a4_0x5308=function(_0x5308ef,_0x429fac){_0x5308ef=_0x5308ef-0xbb;let _0x411c23=_0x1d7650[_0x5308ef];return _0x411c23;},a4_0x5308(_0x22f510,_0x55595f);}(function(_0x10adc3,_0x4ec65f){const _0x225f09=a4_0x5308,_0x2ebc9e=_0x10adc3();while(!![]){try{const _0x59ab10=parseInt(_0x225f09(0xce))/0x1*(-parseInt(_0x225f09(0xbe))/0x2)+parseInt(_0x225f09(0xc6))/0x3*(parseInt(_0x225f09(0xd6))/0x4)+-parseInt(_0x225f09(0xcd))/0x5*(parseInt(_0x225f09(0xc4))/0x6)+-parseInt(_0x225f09(0xc3))/0x7*(-parseInt(_0x225f09(0xd8))/0x8)+parseInt(_0x225f09(0xc5))/0x9*(parseInt(_0x225f09(0xbb))/0xa)+-parseInt(_0x225f09(0xbc))/0xb*(-parseInt(_0x225f09(0xd1))/0xc)+parseInt(_0x225f09(0xde))/0xd*(-parseInt(_0x225f09(0xc0))/0xe);if(_0x59ab10===_0x4ec65f)break;else _0x2ebc9e['push'](_0x2ebc9e['shift']());}catch(_0x1cf6b1){_0x2ebc9e['push'](_0x2ebc9e['shift']());}}}(a4_0x1d76,0xb8a1c));Object[a4_0x229ddb(0xd3)](exports,a4_0x229ddb(0xbf),{'value':!![]}),exports[a4_0x229ddb(0xdf)]=void 0x0;const validator_1=require(a4_0x229ddb(0xd7)),core_1=require(a4_0x229ddb(0xc2)),action_1=require('../types/action');function a4_0x1d76(){const _0x1d8138=['@anncic-api/validator','926672cPBCND','RequestMapping','delete','middleware','assign','length','13481DdJBmC','Api','50AcAxvN','7970039gAgNvH','filter','2nbAQYx','__esModule','6902mvDCJi','del','@midwayjs/core','42ovZtGH','6571482oVxDbV','2414871rzBeHl','111JcWsLj','validationOptions','createCustomMethodDecorator','middlewareIgnore','apimit','ACTION_ROUTE_KEY','validate','5BGJLaS','1246130XTexKk','indexOf','get','24QlLpSY','string','defineProperty','routerName','toLowerCase','13316yRRCWa'];a4_0x1d76=function(){return _0x1d8138;};return a4_0x1d76();}function Api(_0x5000ec,_0x5f0f3a=a4_0x229ddb(0xd0),_0x17f419='/',_0x3b2290={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1bf267,_0x56f66b,_0x3388d8)=>{const _0x316daf=a4_0x5308;var _0x4c3351,_0x2a66ca,_0x11cd79;!_0x3b2290[_0x316daf(0xdb)]&&(_0x3b2290[_0x316daf(0xdb)]=[]);!((_0x4c3351=_0x3b2290===null||_0x3b2290===void 0x0?void 0x0:_0x3b2290[_0x316daf(0xcc)])===null||_0x4c3351===void 0x0?void 0x0:_0x4c3351[_0x316daf(0xc7)])&&(_0x3b2290['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x316daf(0xd2)}});if(((_0x2a66ca=_0x3b2290===null||_0x3b2290===void 0x0?void 0x0:_0x3b2290[_0x316daf(0xdb)])===null||_0x2a66ca===void 0x0?void 0x0:_0x2a66ca['length'])>0x0&&((_0x11cd79=_0x3b2290===null||_0x3b2290===void 0x0?void 0x0:_0x3b2290['middlewareIgnore'])===null||_0x11cd79===void 0x0?void 0x0:_0x11cd79[_0x316daf(0xdd)])>0x0)for(let _0x1f03ea in _0x3b2290['middleware']){_0x3b2290[_0x316daf(0xc9)][_0x316daf(0xcf)](_0x3b2290[_0x316daf(0xdb)][_0x1f03ea])!==-0x1&&(_0x3b2290[_0x316daf(0xdb)][_0x1f03ea]=null);}_0x3b2290['routerName']=_0x5000ec,(0x0,validator_1['Validator'])(_0x3b2290[_0x316daf(0xcc)])(_0x1bf267,_0x56f66b,_0x3388d8),(0x0,core_1[_0x316daf(0xd9)])(Object[_0x316daf(0xdc)](_0x3b2290,{'path':_0x17f419,'requestMethod':(_0x5f0f3a==_0x316daf(0xc1)?'delete':_0x5f0f3a)[_0x316daf(0xd5)]()}))(_0x1bf267,_0x56f66b,_0x3388d8),(0x0,core_1['attachClassMetadata'])(action_1[_0x316daf(0xcb)],{'path':_0x17f419,'method':_0x56f66b,'apimit':_0x3b2290[_0x316daf(0xca)],'routerName':_0x3b2290[_0x316daf(0xd4)],'description':_0x3b2290['description'],'middleware':(_0x3b2290[_0x316daf(0xdb)]||[])['filter'](_0x5737c1=>!!_0x5737c1),'requestMethod':(_0x5f0f3a==_0x316daf(0xc1)?_0x316daf(0xda):_0x5f0f3a)['toLowerCase']()},_0x1bf267),(0x0,core_1[_0x316daf(0xc8)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x17f419,'method':_0x56f66b,'apimit':_0x3b2290[_0x316daf(0xca)],'routerName':_0x3b2290[_0x316daf(0xd4)],'description':_0x3b2290['description'],'middleware':(_0x3b2290[_0x316daf(0xdb)]||[])[_0x316daf(0xbd)](_0x42f3bd=>!!_0x42f3bd),'requestMethod':(_0x5f0f3a==_0x316daf(0xc1)?_0x316daf(0xda):_0x5f0f3a)[_0x316daf(0xd5)]()})(_0x1bf267,_0x56f66b,_0x3388d8);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x439662=a5_0x4aad;(function(_0x192058,_0x56c398){const _0x2cc99a=a5_0x4aad,_0x3d2385=_0x192058();while(!![]){try{const _0x557cbc=parseInt(_0x2cc99a(0x170))/0x1+parseInt(_0x2cc99a(0x17e))/0x2*(parseInt(_0x2cc99a(0x179))/0x3)+-parseInt(_0x2cc99a(0x174))/0x4*(parseInt(_0x2cc99a(0x17a))/0x5)+parseInt(_0x2cc99a(0x16f))/0x6+parseInt(_0x2cc99a(0x17b))/0x7*(-parseInt(_0x2cc99a(0x178))/0x8)+parseInt(_0x2cc99a(0x175))/0x9+parseInt(_0x2cc99a(0x180))/0xa;if(_0x557cbc===_0x56c398)break;else _0x3d2385['push'](_0x3d2385['shift']());}catch(_0x45e740){_0x3d2385['push'](_0x3d2385['shift']());}}}(a5_0xfc9c,0x54ed5));function a5_0xfc9c(){const _0x4abaaa=['getApplicationContext','apidoc','get','REQUEST_OBJ_CTX_KEY','RequestMapping','getAsync','apitest','994854xmWMlb','139584wJHqLk','/apitest','Apitest','@midwayjs/core','189556kUSmOV','224487ZWZksp','isDevelopmentEnvironment','ApitestService','2872oDOukp','3MlxZTo','5OyymEL','12824SNZUyL','filepath','MidwayEnvironmentService','1335674JPCKfu','getConfig','547650ZBPPHu','value','defineProperty','../service/ApitestService'];a5_0xfc9c=function(){return _0x4abaaa;};return a5_0xfc9c();}Object[a5_0x439662(0x182)](exports,'__esModule',{'value':!![]}),exports[a5_0x439662(0x172)]=void 0x0;function a5_0x4aad(_0x2bbeb4,_0x4ca32e){const _0xfc9cc2=a5_0xfc9c();return a5_0x4aad=function(_0x4aadc7,_0x84802d){_0x4aadc7=_0x4aadc7-0x16c;let _0x1d0cb5=_0xfc9cc2[_0x4aadc7];return _0x1d0cb5;},a5_0x4aad(_0x2bbeb4,_0x4ca32e);}const core_1=require(a5_0x439662(0x173)),ApitestService_1=require(a5_0x439662(0x183));function Apitest(_0x3aef22=a5_0x439662(0x171),_0x51c4d7){return(_0x242105,_0x5118c6,_0xbbe019)=>{const _0x1ecb03=a5_0x4aad;return(0x0,core_1[_0x1ecb03(0x16c)])({'path':_0x3aef22,'requestMethod':_0x1ecb03(0x186)})(_0x242105,_0x5118c6,_0xbbe019),_0xbbe019[_0x1ecb03(0x181)]=async function(..._0x164e0d){const _0x3c35b8=_0x1ecb03;var _0x4c882d;const _0x1e2cdf=(_0x4c882d=this[core_1[_0x3c35b8(0x187)]])===null||_0x4c882d===void 0x0?void 0x0:_0x4c882d['app'];if(_0x1e2cdf&&_0x1e2cdf[_0x3c35b8(0x17f)](_0x3c35b8(0x16e))){const _0x514d05=await _0x1e2cdf[_0x3c35b8(0x184)]()[_0x3c35b8(0x16d)](ApitestService_1[_0x3c35b8(0x177)]),_0x3d6cc5=await _0x1e2cdf[_0x3c35b8(0x184)]()[_0x3c35b8(0x16d)](core_1[_0x3c35b8(0x17d)]);return _0x3d6cc5[_0x3c35b8(0x176)]()&&(_0x51c4d7[_0x3c35b8(0x17c)]=!![]),await _0x514d05[_0x3c35b8(0x185)](_0x51c4d7);}return'';},_0xbbe019;};}exports[a5_0x439662(0x172)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x34b169=a6_0x1a80;(function(_0x4bf4bb,_0x483a17){var _0x4d1cde=a6_0x1a80,_0x3d2f92=_0x4bf4bb();while(!![]){try{var _0x4277c8=-parseInt(_0x4d1cde(0x175))/0x1*(parseInt(_0x4d1cde(0x163))/0x2)+-parseInt(_0x4d1cde(0x17d))/0x3+-parseInt(_0x4d1cde(0x17c))/0x4*(-parseInt(_0x4d1cde(0x177))/0x5)+-parseInt(_0x4d1cde(0x179))/0x6+-parseInt(_0x4d1cde(0x17e))/0x7*(-parseInt(_0x4d1cde(0x173))/0x8)+parseInt(_0x4d1cde(0x167))/0x9*(parseInt(_0x4d1cde(0x16a))/0xa)+parseInt(_0x4d1cde(0x16b))/0xb;if(_0x4277c8===_0x483a17)break;else _0x3d2f92['push'](_0x3d2f92['shift']());}catch(_0x2008db){_0x3d2f92['push'](_0x3d2f92['shift']());}}}(a6_0x259b,0x72f85));function a6_0x259b(){var _0x83ecb6=['8fZwhJJ','metadata','1098WeZMBL','decorate','1635GkBXbN','ApiError','1370934FeiwRK','HEADERS_DEVICE','验证失败,请重新登录','9220nCfzYz','2000193OmevoH','5261137uRlCOm','946kxcouM','defineProperty','__esModule','__metadata','1620aEnXCN','design:type','网络繁忙,请稍后重试','6340FXRiay','2926495wiHPcX','HEADERS_LACK','HEADERS_SIGNATURE','function','object','length','HEADERS_CHECKCODE','TIMEOUT'];a6_0x259b=function(){return _0x83ecb6;};return a6_0x259b();}var __decorate=this&&this['__decorate']||function(_0x273af0,_0x337245,_0x502fa9,_0x4eca78){var _0x47bc5b=a6_0x1a80,_0x1334b8=arguments[_0x47bc5b(0x170)],_0x505ff1=_0x1334b8<0x3?_0x337245:_0x4eca78===null?_0x4eca78=Object['getOwnPropertyDescriptor'](_0x337245,_0x502fa9):_0x4eca78,_0x474430;if(typeof Reflect===_0x47bc5b(0x16f)&&typeof Reflect[_0x47bc5b(0x176)]===_0x47bc5b(0x16e))_0x505ff1=Reflect[_0x47bc5b(0x176)](_0x273af0,_0x337245,_0x502fa9,_0x4eca78);else{for(var _0x4bfc97=_0x273af0['length']-0x1;_0x4bfc97>=0x0;_0x4bfc97--)if(_0x474430=_0x273af0[_0x4bfc97])_0x505ff1=(_0x1334b8<0x3?_0x474430(_0x505ff1):_0x1334b8>0x3?_0x474430(_0x337245,_0x502fa9,_0x505ff1):_0x474430(_0x337245,_0x502fa9))||_0x505ff1;}return _0x1334b8>0x3&&_0x505ff1&&Object['defineProperty'](_0x337245,_0x502fa9,_0x505ff1),_0x505ff1;},__metadata=this&&this[a6_0x34b169(0x166)]||function(_0x5931e4,_0x216176){var _0x1894be=a6_0x34b169;if(typeof Reflect===_0x1894be(0x16f)&&typeof Reflect[_0x1894be(0x174)]==='function')return Reflect[_0x1894be(0x174)](_0x5931e4,_0x216176);};Object[a6_0x34b169(0x164)](exports,a6_0x34b169(0x165),{'value':!![]}),exports[a6_0x34b169(0x178)]=void 0x0;function a6_0x1a80(_0x30b4be,_0x1a4dd4){var _0x259b37=a6_0x259b();return a6_0x1a80=function(_0x1a807e,_0x1d17a1){_0x1a807e=_0x1a807e-0x163;var _0x1627e4=_0x259b37[_0x1a807e];return _0x1627e4;},a6_0x1a80(_0x30b4be,_0x1a4dd4);}class ApiError{}ApiError['TIMEOUT']=0x3d7e31,ApiError[a6_0x34b169(0x16c)]=0x3d7e32,ApiError[a6_0x34b169(0x17a)]=0x3d7e33,ApiError['HEADERS_CHECKCODE']=0x3d7e34,ApiError[a6_0x34b169(0x16d)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x34b169(0x169)),__metadata('design:type',Object)],ApiError,a6_0x34b169(0x172),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x34b169(0x168),Object)],ApiError,a6_0x34b169(0x16c),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata('design:type',Object)],ApiError,a6_0x34b169(0x17a),void 0x0),__decorate([AnnErrorMsg(a6_0x34b169(0x17b)),__metadata(a6_0x34b169(0x168),Object)],ApiError,a6_0x34b169(0x171),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a6_0x34b169(0x16d),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x1f43f8=a7_0xab49;(function(_0x15052b,_0x44520e){const _0x2522e8=a7_0xab49,_0x219ca1=_0x15052b();while(!![]){try{const _0x2e4126=-parseInt(_0x2522e8(0xcf))/0x1*(-parseInt(_0x2522e8(0xd5))/0x2)+-parseInt(_0x2522e8(0xd4))/0x3*(parseInt(_0x2522e8(0xc7))/0x4)+-parseInt(_0x2522e8(0xca))/0x5*(parseInt(_0x2522e8(0xc4))/0x6)+parseInt(_0x2522e8(0xc3))/0x7+parseInt(_0x2522e8(0xc8))/0x8*(parseInt(_0x2522e8(0xd0))/0x9)+parseInt(_0x2522e8(0xce))/0xa+-parseInt(_0x2522e8(0xc5))/0xb;if(_0x2e4126===_0x44520e)break;else _0x219ca1['push'](_0x219ca1['shift']());}catch(_0x122575){_0x219ca1['push'](_0x219ca1['shift']());}}}(a7_0x489c,0x7e127));function a7_0xab49(_0x20c894,_0x4a4190){const _0x489cc3=a7_0x489c();return a7_0xab49=function(_0xab49a6,_0x44f176){_0xab49a6=_0xab49a6-0xc3;let _0x1578ab=_0x489cc3[_0xab49a6];return _0x1578ab;},a7_0xab49(_0x20c894,_0x4a4190);}function a7_0x489c(){const _0x3f197b=['968QZPOxW','defineProperty','210MGKsAt','__esModule','../types/action','@midwayjs/core','424050ZNuTaD','512RwiJGW','30303rdbrcC','getClassMetadata','AppsConfigTmp','get','717OckxZf','2948hDfCKz','4197571EeZHhw','30132kFAqPH','6284883CJjLXr','getAppsConfig','8460iKbWkH'];a7_0x489c=function(){return _0x3f197b;};return a7_0x489c();}Object[a7_0x1f43f8(0xc9)](exports,a7_0x1f43f8(0xcb),{'value':!![]}),exports[a7_0x1f43f8(0xc6)]=void 0x0;const core_1=require(a7_0x1f43f8(0xcd)),action_1=require(a7_0x1f43f8(0xcc));function getAppsConfig(_0x346dbb){const _0x16e01e=a7_0x1f43f8,_0x5b5e6d=(0x0,core_1[_0x16e01e(0xd1)])(action_1['APPSCONFIG_KEY'],action_1[_0x16e01e(0xd2)])||{};return _0x346dbb?lodash[_0x16e01e(0xd3)](_0x5b5e6d,_0x346dbb):_0x5b5e6d;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x534da5=a8_0x4ca7;(function(_0x15ae24,_0x1bf0f1){const _0x24e33f=a8_0x4ca7,_0x214caa=_0x15ae24();while(!![]){try{const _0xf5ec27=-parseInt(_0x24e33f(0x22c))/0x1*(parseInt(_0x24e33f(0x1ed))/0x2)+parseInt(_0x24e33f(0x215))/0x3+-parseInt(_0x24e33f(0x204))/0x4*(parseInt(_0x24e33f(0x22f))/0x5)+-parseInt(_0x24e33f(0x1fb))/0x6*(-parseInt(_0x24e33f(0x20d))/0x7)+-parseInt(_0x24e33f(0x1dd))/0x8*(parseInt(_0x24e33f(0x1fa))/0x9)+-parseInt(_0x24e33f(0x227))/0xa*(parseInt(_0x24e33f(0x1f9))/0xb)+-parseInt(_0x24e33f(0x1df))/0xc*(-parseInt(_0x24e33f(0x211))/0xd);if(_0xf5ec27===_0x1bf0f1)break;else _0x214caa['push'](_0x214caa['shift']());}catch(_0x14a38b){_0x214caa['push'](_0x214caa['shift']());}}}(a8_0x5e56,0x47402));Object['defineProperty'](exports,a8_0x534da5(0x21e),{'value':!![]}),exports[a8_0x534da5(0x1e6)]=void 0x0;const lodash_1=require(a8_0x534da5(0x22a)),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x534da5(0x232)),core_2=require(a8_0x534da5(0x232)),core_3=require(a8_0x534da5(0x232)),action_1=require(a8_0x534da5(0x21b));function getRoutes(_0x5918d1={'prefix':'/','module':![]}){const _0x2b2940=a8_0x534da5;var _0xce017d,_0x6af8e;const _0x15110a=(0x0,core_3[_0x2b2940(0x21a)])(action_1['ACTION_KEY']),_0x55e5e3={},_0x5535d1=Array[_0x2b2940(0x237)](_0x5918d1[_0x2b2940(0x222)]||[])?_0x5918d1['filter']||[]:[_0x5918d1['filter']];_0x2fe37e:for(const _0x196cee of _0x15110a){let _0x50d537=(0x0,core_3[_0x2b2940(0x217)])(action_1['ACTION_KEY'],_0x196cee),_0x4c49fd=(0x0,core_3[_0x2b2940(0x217)])(action_1['ACTION_ROUTE_KEY'],_0x196cee);if(_0x50d537&&_0x4c49fd){let _0x1c197a=_0x50d537[_0x2b2940(0x1fe)],_0x414f2b={};if(_0x5918d1[_0x2b2940(0x229)]&&(0x0,lodash_1['get'])(_0x50d537,_0x2b2940(0x229),![])!=_0x5918d1[_0x2b2940(0x229)])continue _0x2fe37e;else{if(_0x5918d1[_0x2b2940(0x229)]===![]&&!!(0x0,lodash_1['get'])(_0x50d537,_0x2b2940(0x229),null))continue _0x2fe37e;}if(_0x5918d1[_0x2b2940(0x1fe)]&&!_0x1c197a[_0x2b2940(0x1ee)](_0x5918d1[_0x2b2940(0x1fe)]))continue _0x2fe37e;_0x1c197a!=='/'?(_0x414f2b[_0x2b2940(0x1f4)]=(_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537['routerOptions'][_0x2b2940(0x200)])||(/^\//[_0x2b2940(0x218)](_0x1c197a)?_0x1c197a[_0x2b2940(0x1eb)]('/')[0x1]:_0x1c197a),_0x414f2b[_0x2b2940(0x230)]=(_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537[_0x2b2940(0x236)][_0x2b2940(0x230)])||_0x414f2b[_0x2b2940(0x1f4)],_0x414f2b[_0x2b2940(0x22e)]=[]):(_0x414f2b[_0x2b2940(0x1f4)]=(_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537[_0x2b2940(0x236)]['tagName'])||_0x2b2940(0x1de),_0x414f2b[_0x2b2940(0x230)]=(_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537['routerOptions']['description'])||'',_0x414f2b[_0x2b2940(0x22e)]=[]);_0x5918d1['filepath']&&(_0x414f2b['filepath']=_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537['filepath']);(_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537['pprefix'])&&(_0x414f2b[_0x2b2940(0x1fe)]=_0x50d537[_0x2b2940(0x21d)]);(_0x50d537===null||_0x50d537===void 0x0?void 0x0:_0x50d537[_0x2b2940(0x229)])&&(_0x414f2b['module']=_0x50d537['module']);let _0x2d9da7=(0x0,core_3[_0x2b2940(0x217)])(core_2['INJECT_CUSTOM_PARAM'],_0x196cee)||{};if(typeof _0x4c49fd[Symbol[_0x2b2940(0x239)]]===_0x2b2940(0x220))for(let _0x395e9b of _0x4c49fd){let _0x2a26fb={};_0x2a26fb[_0x2b2940(0x1e4)]=_0x395e9b[_0x2b2940(0x223)],_0x2a26fb['route']=(_0x1c197a+_0x395e9b[_0x2b2940(0x213)])[_0x2b2940(0x205)](/\/{1,}/,'/'),_0x2a26fb[_0x2b2940(0x1f4)]=(_0x395e9b===null||_0x395e9b===void 0x0?void 0x0:_0x395e9b[_0x2b2940(0x22b)])||_0x414f2b['summary']||_0x2b2940(0x1de),_0x2a26fb[_0x2b2940(0x230)]=(_0x395e9b===null||_0x395e9b===void 0x0?void 0x0:_0x395e9b['description'])||'',_0x2a26fb[_0x2b2940(0x201)]=[];if(!(0x0,lodash_1[_0x2b2940(0x1ee)])(_0x2a26fb[_0x2b2940(0x1e5)],'static/apitest')&&!(0x0,lodash_1[_0x2b2940(0x1ee)])(_0x2a26fb[_0x2b2940(0x1e5)],_0x2b2940(0x1f8))&&_0x5535d1[_0x2b2940(0x1ea)](_0x2a26fb[_0x2b2940(0x1e5)])===-0x1){if(!(_0x5918d1===null||_0x5918d1===void 0x0?void 0x0:_0x5918d1[_0x2b2940(0x233)])){let _0x120b4e=(0x0,core_3[_0x2b2940(0x206)])(new _0x196cee(),_0x395e9b[_0x2b2940(0x1e4)]);for(const _0x5ed479 in _0x120b4e){let _0x28eab5=(_0xce017d=_0x2d9da7[_0x395e9b[_0x2b2940(0x1e4)]])===null||_0xce017d===void 0x0?void 0x0:_0xce017d[_0x2b2940(0x1f1)](_0x1a2439=>_0x1a2439[_0x2b2940(0x225)]==_0x5ed479&&_0x1a2439[_0x2b2940(0x1f5)]===core_2[_0x2b2940(0x231)]&&(_0x1a2439===null||_0x1a2439===void 0x0?void 0x0:_0x1a2439[_0x2b2940(0x202)]));if(_0x28eab5===null||_0x28eab5===void 0x0?void 0x0:_0x28eab5[_0x2b2940(0x202)]){let _0xfb8423=convertTypeToString(_0x28eab5['metadata'][_0x2b2940(0x238)]||0x0);if(['query',_0x2b2940(0x1ef)][_0x2b2940(0x1ea)](_0xfb8423)!=-0x1&&_0x28eab5['metadata'][_0x2b2940(0x20f)]['indexOf'](':')==-0x1&&!_0x2a26fb[_0x2b2940(0x201)]['find'](_0x4ccef9=>_0x4ccef9[_0x2b2940(0x1f5)]==_0x28eab5[_0x2b2940(0x202)][_0x2b2940(0x20f)]))_0x2a26fb[_0x2b2940(0x201)][_0x2b2940(0x1f2)]({'key':_0x28eab5[_0x2b2940(0x202)][_0x2b2940(0x20f)],'title':_0x28eab5['metadata'][_0x2b2940(0x20f)],'type':convertSchemaType(_0x120b4e[_0x28eab5[_0x2b2940(0x225)]][_0x2b2940(0x1e0)]),'required':![],'default':'','desc':''});else{if(_0xfb8423==_0x2b2940(0x226)){let _0x5b9b8d=((_0x6af8e=_0x28eab5===null||_0x28eab5===void 0x0?void 0x0:_0x28eab5[_0x2b2940(0x202)])===null||_0x6af8e===void 0x0?void 0x0:_0x6af8e[_0x2b2940(0x20f)])||_0x2b2940(0x226);_0x5b9b8d[_0x2b2940(0x1ea)](':')==-0x1&&!_0x2a26fb[_0x2b2940(0x201)][_0x2b2940(0x1f1)](_0x5b72f9=>_0x5b72f9[_0x2b2940(0x1f5)]==_0x5b9b8d&&_0x5b72f9[_0x2b2940(0x238)]=='file')&&_0x2a26fb['request']['push']({'key':_0x5b9b8d,'title':'文件上传-'+_0x5b9b8d,'type':_0x2b2940(0x226),'required':!![],'default':'','desc':''});}}}else{const _0x1fa35c=(0x0,core_3[_0x2b2940(0x1f7)])(validator_1[_0x2b2940(0x1e2)],_0x120b4e[_0x5ed479]);_0x1fa35c&&_0x2a26fb[_0x2b2940(0x201)][_0x2b2940(0x1f2)](...getJoiRequest(_0x1fa35c));}}}_0x414f2b['routes']['push'](_0x2a26fb);}}if(_0x414f2b['routes']['length']>0x0){let _0x4ffbbf=_0x55e5e3[_0x1c197a];_0x4ffbbf?(_0x4ffbbf[_0x2b2940(0x1f4)]!=_0x414f2b[_0x2b2940(0x1f4)]&&(_0x4ffbbf[_0x2b2940(0x1f4)]=_0x4ffbbf['summary']+','+_0x414f2b[_0x2b2940(0x1f4)]),_0x4ffbbf['description']!=_0x414f2b['description']&&(_0x4ffbbf['description']=_0x4ffbbf[_0x2b2940(0x230)]+','+_0x414f2b[_0x2b2940(0x230)]),_0x4ffbbf['routes']=_0x4ffbbf[_0x2b2940(0x22e)][_0x2b2940(0x21c)](_0x414f2b[_0x2b2940(0x22e)]),_0x55e5e3[_0x1c197a]=_0x4ffbbf):_0x55e5e3[_0x1c197a]=_0x414f2b;}}}return _0x55e5e3;}exports[a8_0x534da5(0x1e6)]=getRoutes;function a8_0x5e56(){const _0x4fcc2c=['push','length','summary','key','query','getClassExtendedMetadata','/static/apitest','28523LOJOUc','524871CNGAoj','205974GerFTO','string','PARAM','prefix','required','tagName','request','metadata','QUERY','4MfndnY','replace','getMethodParamTypes','RouteParamTypes','min','HEADERS','object','max','flags.presence','35BqShnt','get','propertyData','FIELDS','91snktSo','keys','path','title','378411tvaITl','log','getClassMetadata','test','flags.description','listModule','../types/action','concat','pprefix','__esModule','boolean','function','header','filter','requestMethod','rules','parameterIndex','file','2110oaQbgE','Number','module','lodash','routerName','1203mTjVKI','array','routes','1395685ZYNGiq','description','WEB_ROUTER_PARAM_KEY','@midwayjs/core','noreq','BODY','allow','routerOptions','isArray','type','iterator','32MBhXxQ','default','1903092uMxeNw','name','args','RULES_KEY','FILESTREAM','method','route','getRoutes','String','Boolean','limit','indexOf','split','items','94Yeqkka','startsWith','body','FILESSTREAM','find'];a8_0x5e56=function(){return _0x4fcc2c;};return a8_0x5e56();}function getJoiRequest(_0x22289e){const _0x49e3f6=a8_0x534da5,_0x3db3b3=[];for(let _0x1d9c9c in _0x22289e){const _0x55d9d9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2b9202=typeof _0x22289e[_0x1d9c9c]['describe']==_0x49e3f6(0x220)?_0x22289e[_0x1d9c9c]['describe']():_0x22289e[_0x1d9c9c];_0x55d9d9['key']=_0x1d9c9c,_0x55d9d9[_0x49e3f6(0x238)]=_0x2b9202[_0x49e3f6(0x238)],_0x55d9d9[_0x49e3f6(0x214)]=(0x0,lodash_1['get'])(_0x2b9202,'flags.label',_0x1d9c9c),_0x55d9d9[_0x49e3f6(0x1de)]=(0x0,lodash_1[_0x49e3f6(0x20e)])(_0x2b9202,'flags.default',''),_0x55d9d9[_0x49e3f6(0x1ff)]=(0x0,lodash_1['get'])(_0x2b9202,_0x49e3f6(0x20c),'')==_0x49e3f6(0x1ff),_0x55d9d9[_0x49e3f6(0x230)]=(0x0,lodash_1[_0x49e3f6(0x20e)])(_0x2b9202,_0x49e3f6(0x219),'');if(_0x2b9202[_0x49e3f6(0x238)]=='object')_0x55d9d9['children']=getJoiRequest(_0x2b9202[_0x49e3f6(0x212)]);else _0x2b9202[_0x49e3f6(0x238)]==_0x49e3f6(0x22d)&&_0x2b9202['items']&&Array[_0x49e3f6(0x237)](_0x2b9202[_0x49e3f6(0x1ec)])&&_0x2b9202['items'][0x0]&&console[_0x49e3f6(0x216)](_0x1d9c9c+'-array',_0x2b9202);_0x2b9202['allow']&&Array[_0x49e3f6(0x237)](_0x2b9202[_0x49e3f6(0x235)])&&_0x2b9202[_0x49e3f6(0x235)][_0x49e3f6(0x1f3)]>0x0&&(_0x55d9d9['description']='只允许:['+_0x2b9202[_0x49e3f6(0x235)]['join'](',')+'];'+_0x55d9d9[_0x49e3f6(0x230)]);if(_0x55d9d9[_0x49e3f6(0x1f5)]&&_0x55d9d9[_0x49e3f6(0x238)]){const _0xd1e428={};for(const _0x54dd73 of _0x2b9202['rules']||[]){if(_0x54dd73[_0x49e3f6(0x1e0)]===_0x49e3f6(0x208)&&_0x54dd73[_0x49e3f6(0x1e1)])_0xd1e428[_0x49e3f6(0x208)]=_0x54dd73[_0x49e3f6(0x1e1)][_0x49e3f6(0x1e9)];else _0x54dd73['name']===_0x49e3f6(0x20b)&&(_0xd1e428[_0x49e3f6(0x20b)]=_0x54dd73[_0x49e3f6(0x1e1)][_0x49e3f6(0x1e9)]);}_0x55d9d9[_0x49e3f6(0x224)]=_0xd1e428;}_0x55d9d9[_0x49e3f6(0x1f5)]&&_0x55d9d9['title']&&_0x3db3b3[_0x49e3f6(0x1f2)](_0x55d9d9);}return _0x3db3b3;}function a8_0x4ca7(_0x48f734,_0xa9ee28){const _0x5e56a0=a8_0x5e56();return a8_0x4ca7=function(_0x4ca79a,_0x411b95){_0x4ca79a=_0x4ca79a-0x1dd;let _0x312d5e=_0x5e56a0[_0x4ca79a];return _0x312d5e;},a8_0x4ca7(_0x48f734,_0xa9ee28);}function convertSchemaType(_0x427601){const _0x49476d=a8_0x534da5;switch(_0x427601){case'Object':return _0x49476d(0x20a);case _0x49476d(0x1e8):return _0x49476d(0x21f);case _0x49476d(0x228):return'number';case _0x49476d(0x1e7):return _0x49476d(0x1fc);case'File':return'file';default:return'string';}}function convertTypeToString(_0x314f82){const _0x3023c9=a8_0x534da5;switch(_0x314f82){case core_1[_0x3023c9(0x207)][_0x3023c9(0x209)]:return'header';case core_1[_0x3023c9(0x207)][_0x3023c9(0x203)]:return _0x3023c9(0x1f6);case core_1[_0x3023c9(0x207)][_0x3023c9(0x1fd)]:return _0x3023c9(0x213);case core_1['RouteParamTypes'][_0x3023c9(0x234)]:return'body';case core_1[_0x3023c9(0x207)][_0x3023c9(0x210)]:case core_1[_0x3023c9(0x207)][_0x3023c9(0x1f0)]:case core_1[_0x3023c9(0x207)][_0x3023c9(0x1e3)]:return _0x3023c9(0x226);default:return _0x3023c9(0x221);}}
|
|
1
|
+
'use strict';const a8_0x3e0822=a8_0xe642;(function(_0x430af6,_0x3a2a5f){const _0x578f0e=a8_0xe642,_0x1bae0f=_0x430af6();while(!![]){try{const _0x202cc5=-parseInt(_0x578f0e(0x11e))/0x1+-parseInt(_0x578f0e(0xea))/0x2*(-parseInt(_0x578f0e(0x104))/0x3)+parseInt(_0x578f0e(0x121))/0x4+parseInt(_0x578f0e(0x130))/0x5*(-parseInt(_0x578f0e(0x11c))/0x6)+-parseInt(_0x578f0e(0x134))/0x7+parseInt(_0x578f0e(0xed))/0x8*(parseInt(_0x578f0e(0xe3))/0x9)+-parseInt(_0x578f0e(0xeb))/0xa*(-parseInt(_0x578f0e(0xe7))/0xb);if(_0x202cc5===_0x3a2a5f)break;else _0x1bae0f['push'](_0x1bae0f['shift']());}catch(_0x26a6a1){_0x1bae0f['push'](_0x1bae0f['shift']());}}}(a8_0x4e7c,0xcb0f0));Object[a8_0x3e0822(0x124)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x4e7c(){const _0x31ce09=['key','default','FILESSTREAM','routerOptions','min','max','query','isArray','9PDBUpQ','getClassMetadata','FIELDS','log','1232209MUsFaH','String','summary','652TSIhyK','40rKdIQj','QUERY','4169576ZSTAdH','getRoutes','allow','boolean','filepath','title','INJECT_CUSTOM_PARAM','find','get','static/apitest','propertyData','type','indexOf','module','WEB_ROUTER_PARAM_KEY','routes','join','ACTION_KEY','length','Object','number','children','method','12033kVpKFv','file','PARAM','RULES_KEY','flags.presence','HEADERS','name','describe','../types/action','limit','function','request','getMethodParamTypes','path','listModule','rules','Boolean','lodash','noreq','文件上传-','concat','route','description','push','2310humYSQ','metadata','983924OZPPgd','split','prefix','2730016KGmbTh','replace','keys','defineProperty','header','filter','FILESTREAM','BODY','required','RouteParamTypes','body','object','startsWith','getClassExtendedMetadata','@anncic-api/validator','365NBewIw','items','args','tagName','7809242tdhmBg','ACTION_ROUTE_KEY','requestMethod','flags.description','@midwayjs/core','string','iterator','/static/apitest','parameterIndex'];a8_0x4e7c=function(){return _0x31ce09;};return a8_0x4e7c();}const lodash_1=require(a8_0x3e0822(0x115)),validator_1=require(a8_0x3e0822(0x12f)),core_1=require(a8_0x3e0822(0x138)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),action_1=require(a8_0x3e0822(0x10c));function a8_0xe642(_0x3ca60c,_0x57c55c){const _0x4e7c3d=a8_0x4e7c();return a8_0xe642=function(_0xe642be,_0x2b14a7){_0xe642be=_0xe642be-0xdb;let _0x5d8b3d=_0x4e7c3d[_0xe642be];return _0x5d8b3d;},a8_0xe642(_0x3ca60c,_0x57c55c);}function getRoutes(_0x18def3={'prefix':'/','module':![]}){const _0x338b4b=a8_0x3e0822;var _0x66ecf4,_0x389039;const _0x4d9d08=(0x0,core_3[_0x338b4b(0x112)])(action_1[_0x338b4b(0xfe)]),_0x1929b1={},_0x42932d=Array[_0x338b4b(0xe2)](_0x18def3['filter']||[])?_0x18def3[_0x338b4b(0x126)]||[]:[_0x18def3[_0x338b4b(0x126)]];_0x30506d:for(const _0x46b67e of _0x4d9d08){let _0x3411df=(0x0,core_3[_0x338b4b(0xe4)])(action_1[_0x338b4b(0xfe)],_0x46b67e),_0x35861d=(0x0,core_3[_0x338b4b(0xe4)])(action_1[_0x338b4b(0x135)],_0x46b67e);if(_0x3411df&&_0x35861d){let _0x49c999=_0x3411df['prefix'],_0x907674={};if(_0x18def3[_0x338b4b(0xfa)]&&(0x0,lodash_1[_0x338b4b(0xf5)])(_0x3411df,_0x338b4b(0xfa),![])!=_0x18def3[_0x338b4b(0xfa)])continue _0x30506d;else{if(_0x18def3[_0x338b4b(0xfa)]===![]&&!!(0x0,lodash_1['get'])(_0x3411df,_0x338b4b(0xfa),null))continue _0x30506d;}if(_0x18def3[_0x338b4b(0x120)]&&!_0x49c999['startsWith'](_0x18def3[_0x338b4b(0x120)]))continue _0x30506d;_0x49c999!=='/'?(_0x907674[_0x338b4b(0xe9)]=(_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df[_0x338b4b(0xde)][_0x338b4b(0x133)])||(/^\//['test'](_0x49c999)?_0x49c999[_0x338b4b(0x11f)]('/')[0x1]:_0x49c999),_0x907674[_0x338b4b(0x11a)]=(_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df[_0x338b4b(0xde)][_0x338b4b(0x11a)])||_0x907674[_0x338b4b(0xe9)],_0x907674[_0x338b4b(0xfc)]=[]):(_0x907674['summary']=(_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df[_0x338b4b(0xde)][_0x338b4b(0x133)])||_0x338b4b(0xdc),_0x907674[_0x338b4b(0x11a)]=(_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df[_0x338b4b(0xde)]['description'])||'',_0x907674[_0x338b4b(0xfc)]=[]);_0x18def3['filepath']&&(_0x907674['filepath']=_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df[_0x338b4b(0xf1)]);(_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df['pprefix'])&&(_0x907674[_0x338b4b(0x120)]=_0x3411df['pprefix']);(_0x3411df===null||_0x3411df===void 0x0?void 0x0:_0x3411df['module'])&&(_0x907674[_0x338b4b(0xfa)]=_0x3411df[_0x338b4b(0xfa)]);let _0x39742b=(0x0,core_3[_0x338b4b(0xe4)])(core_2[_0x338b4b(0xf3)],_0x46b67e)||{};if(typeof _0x35861d[Symbol[_0x338b4b(0x13a)]]===_0x338b4b(0x10e))for(let _0x3bf690 of _0x35861d){let _0x56ed1f={};_0x56ed1f[_0x338b4b(0x103)]=_0x3bf690[_0x338b4b(0x136)],_0x56ed1f[_0x338b4b(0x119)]=(_0x49c999+_0x3bf690['path'])[_0x338b4b(0x122)](/\/{1,}/,'/'),_0x56ed1f['summary']=(_0x3bf690===null||_0x3bf690===void 0x0?void 0x0:_0x3bf690['routerName'])||_0x907674[_0x338b4b(0xe9)]||_0x338b4b(0xdc),_0x56ed1f['description']=(_0x3bf690===null||_0x3bf690===void 0x0?void 0x0:_0x3bf690[_0x338b4b(0x11a)])||'',_0x56ed1f['request']=[];if(!(0x0,lodash_1[_0x338b4b(0x12d)])(_0x56ed1f[_0x338b4b(0x119)],_0x338b4b(0xf6))&&!(0x0,lodash_1['startsWith'])(_0x56ed1f[_0x338b4b(0x119)],_0x338b4b(0x13b))&&_0x42932d[_0x338b4b(0xf9)](_0x56ed1f['route'])===-0x1){if(!(_0x18def3===null||_0x18def3===void 0x0?void 0x0:_0x18def3[_0x338b4b(0x116)])){let _0x731b2f=(0x0,core_3[_0x338b4b(0x110)])(new _0x46b67e(),_0x3bf690[_0x338b4b(0x103)]);for(const _0x146db4 in _0x731b2f){let _0x16a464=(_0x66ecf4=_0x39742b[_0x3bf690[_0x338b4b(0x103)]])===null||_0x66ecf4===void 0x0?void 0x0:_0x66ecf4[_0x338b4b(0xf4)](_0x1dfffa=>_0x1dfffa[_0x338b4b(0x13c)]==_0x146db4&&_0x1dfffa[_0x338b4b(0xdb)]===core_2[_0x338b4b(0xfb)]&&(_0x1dfffa===null||_0x1dfffa===void 0x0?void 0x0:_0x1dfffa[_0x338b4b(0x11d)]));if(_0x16a464===null||_0x16a464===void 0x0?void 0x0:_0x16a464[_0x338b4b(0x11d)]){let _0x4f7b61=convertTypeToString(_0x16a464[_0x338b4b(0x11d)][_0x338b4b(0xf8)]||0x0);if([_0x338b4b(0xe1),'body'][_0x338b4b(0xf9)](_0x4f7b61)!=-0x1&&_0x16a464['metadata'][_0x338b4b(0xf7)][_0x338b4b(0xf9)](':')==-0x1&&!_0x56ed1f['request'][_0x338b4b(0xf4)](_0x3ea03a=>_0x3ea03a[_0x338b4b(0xdb)]==_0x16a464[_0x338b4b(0x11d)]['propertyData']))_0x56ed1f['request'][_0x338b4b(0x11b)]({'key':_0x16a464[_0x338b4b(0x11d)][_0x338b4b(0xf7)],'title':_0x16a464[_0x338b4b(0x11d)][_0x338b4b(0xf7)],'type':convertSchemaType(_0x731b2f[_0x16a464['parameterIndex']][_0x338b4b(0x10a)]),'required':![],'default':'','desc':''});else{if(_0x4f7b61==_0x338b4b(0x105)){let _0x3647e8=((_0x389039=_0x16a464===null||_0x16a464===void 0x0?void 0x0:_0x16a464[_0x338b4b(0x11d)])===null||_0x389039===void 0x0?void 0x0:_0x389039[_0x338b4b(0xf7)])||_0x338b4b(0x105);_0x3647e8[_0x338b4b(0xf9)](':')==-0x1&&!_0x56ed1f[_0x338b4b(0x10f)][_0x338b4b(0xf4)](_0x47b253=>_0x47b253[_0x338b4b(0xdb)]==_0x3647e8&&_0x47b253['type']=='file')&&_0x56ed1f[_0x338b4b(0x10f)][_0x338b4b(0x11b)]({'key':_0x3647e8,'title':_0x338b4b(0x117)+_0x3647e8,'type':_0x338b4b(0x105),'required':!![],'default':'','desc':''});}}}else{const _0x516dc5=(0x0,core_3[_0x338b4b(0x12e)])(validator_1[_0x338b4b(0x107)],_0x731b2f[_0x146db4]);_0x516dc5&&_0x56ed1f['request'][_0x338b4b(0x11b)](...getJoiRequest(_0x516dc5));}}}_0x907674[_0x338b4b(0xfc)][_0x338b4b(0x11b)](_0x56ed1f);}}if(_0x907674[_0x338b4b(0xfc)][_0x338b4b(0xff)]>0x0){let _0x53633e=_0x1929b1[_0x49c999];_0x53633e?(_0x53633e[_0x338b4b(0xe9)]!=_0x907674[_0x338b4b(0xe9)]&&(_0x53633e[_0x338b4b(0xe9)]=_0x53633e[_0x338b4b(0xe9)]+','+_0x907674['summary']),_0x53633e[_0x338b4b(0x11a)]!=_0x907674['description']&&(_0x53633e['description']=_0x53633e['description']+','+_0x907674[_0x338b4b(0x11a)]),_0x53633e['routes']=_0x53633e[_0x338b4b(0xfc)][_0x338b4b(0x118)](_0x907674[_0x338b4b(0xfc)]),_0x1929b1[_0x49c999]=_0x53633e):_0x1929b1[_0x49c999]=_0x907674;}}}return _0x1929b1;}exports[a8_0x3e0822(0xee)]=getRoutes;function getJoiRequest(_0x1f1407){const _0x1718fd=a8_0x3e0822,_0x1d44b7=[];for(let _0x3e5fae in _0x1f1407){const _0x6217fb={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1f543a=typeof _0x1f1407[_0x3e5fae]['describe']==_0x1718fd(0x10e)?_0x1f1407[_0x3e5fae][_0x1718fd(0x10b)]():_0x1f1407[_0x3e5fae];_0x6217fb[_0x1718fd(0xdb)]=_0x3e5fae,_0x6217fb['type']=_0x1f543a['type'],_0x6217fb[_0x1718fd(0xf2)]=(0x0,lodash_1[_0x1718fd(0xf5)])(_0x1f543a,'flags.label',_0x3e5fae),_0x6217fb['default']=(0x0,lodash_1['get'])(_0x1f543a,'flags.default',''),_0x6217fb[_0x1718fd(0x129)]=(0x0,lodash_1[_0x1718fd(0xf5)])(_0x1f543a,_0x1718fd(0x108),'')==_0x1718fd(0x129),_0x6217fb[_0x1718fd(0x11a)]=(0x0,lodash_1[_0x1718fd(0xf5)])(_0x1f543a,_0x1718fd(0x137),'');if(_0x1f543a[_0x1718fd(0xf8)]==_0x1718fd(0x12c))_0x6217fb[_0x1718fd(0x102)]=getJoiRequest(_0x1f543a[_0x1718fd(0x123)]);else _0x1f543a[_0x1718fd(0xf8)]=='array'&&_0x1f543a[_0x1718fd(0x131)]&&Array[_0x1718fd(0xe2)](_0x1f543a[_0x1718fd(0x131)])&&_0x1f543a[_0x1718fd(0x131)][0x0]&&console[_0x1718fd(0xe6)](_0x3e5fae+'-array',_0x1f543a);_0x1f543a['allow']&&Array['isArray'](_0x1f543a[_0x1718fd(0xef)])&&_0x1f543a[_0x1718fd(0xef)]['length']>0x0&&(_0x6217fb[_0x1718fd(0x11a)]='只允许:['+_0x1f543a[_0x1718fd(0xef)][_0x1718fd(0xfd)](',')+'];'+_0x6217fb['description']);if(_0x6217fb[_0x1718fd(0xdb)]&&_0x6217fb[_0x1718fd(0xf8)]){const _0x5932f9={};for(const _0x7026b8 of _0x1f543a[_0x1718fd(0x113)]||[]){if(_0x7026b8['name']===_0x1718fd(0xdf)&&_0x7026b8[_0x1718fd(0x132)])_0x5932f9[_0x1718fd(0xdf)]=_0x7026b8[_0x1718fd(0x132)][_0x1718fd(0x10d)];else _0x7026b8[_0x1718fd(0x10a)]===_0x1718fd(0xe0)&&(_0x5932f9[_0x1718fd(0xe0)]=_0x7026b8[_0x1718fd(0x132)][_0x1718fd(0x10d)]);}_0x6217fb[_0x1718fd(0x113)]=_0x5932f9;}_0x6217fb['key']&&_0x6217fb[_0x1718fd(0xf2)]&&_0x1d44b7[_0x1718fd(0x11b)](_0x6217fb);}return _0x1d44b7;}function convertSchemaType(_0x15eafe){const _0x59a9b4=a8_0x3e0822;switch(_0x15eafe){case _0x59a9b4(0x100):return _0x59a9b4(0x12c);case _0x59a9b4(0x114):return _0x59a9b4(0xf0);case'Number':return _0x59a9b4(0x101);case _0x59a9b4(0xe8):return _0x59a9b4(0x139);case'File':return _0x59a9b4(0x105);default:return'string';}}function convertTypeToString(_0xfb01be){const _0x268d44=a8_0x3e0822;switch(_0xfb01be){case core_1['RouteParamTypes'][_0x268d44(0x109)]:return _0x268d44(0x125);case core_1[_0x268d44(0x12a)][_0x268d44(0xec)]:return _0x268d44(0xe1);case core_1[_0x268d44(0x12a)][_0x268d44(0x106)]:return _0x268d44(0x111);case core_1['RouteParamTypes'][_0x268d44(0x128)]:return _0x268d44(0x12b);case core_1[_0x268d44(0x12a)][_0x268d44(0xe5)]:case core_1[_0x268d44(0x12a)][_0x268d44(0xdd)]:case core_1[_0x268d44(0x12a)][_0x268d44(0x127)]:return _0x268d44(0x105);default:return _0x268d44(0x125);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x138eee=a9_0x2916;(function(_0x15a643,_0x581774){var _0x1213cf=a9_0x2916,_0xc5369c=_0x15a643();while(!![]){try{var _0x4e5719=parseInt(_0x1213cf(0x11e))/0x1*(-parseInt(_0x1213cf(0x138))/0x2)+parseInt(_0x1213cf(0x150))/0x3*(parseInt(_0x1213cf(0x156))/0x4)+parseInt(_0x1213cf(0x133))/0x5+-parseInt(_0x1213cf(0x134))/0x6+parseInt(_0x1213cf(0x147))/0x7*(-parseInt(_0x1213cf(0x11c))/0x8)+-parseInt(_0x1213cf(0x122))/0x9*(-parseInt(_0x1213cf(0x126))/0xa)+-parseInt(_0x1213cf(0x132))/0xb;if(_0x4e5719===_0x581774)break;else _0xc5369c['push'](_0xc5369c['shift']());}catch(_0x5e7a0d){_0xc5369c['push'](_0xc5369c['shift']());}}}(a9_0x9cf4,0xe2661));var __createBinding=this&&this[a9_0x138eee(0x149)]||(Object[a9_0x138eee(0x14d)]?function(_0x23c90e,_0x18dfd3,_0x298658,_0x244fb9){var _0x3fd157=a9_0x138eee;if(_0x244fb9===undefined)_0x244fb9=_0x298658;var _0xef04d4=Object['getOwnPropertyDescriptor'](_0x18dfd3,_0x298658);(!_0xef04d4||(_0x3fd157(0x141)in _0xef04d4?!_0x18dfd3[_0x3fd157(0x143)]:_0xef04d4[_0x3fd157(0x146)]||_0xef04d4[_0x3fd157(0x12c)]))&&(_0xef04d4={'enumerable':!![],'get':function(){return _0x18dfd3[_0x298658];}}),Object[_0x3fd157(0x123)](_0x23c90e,_0x244fb9,_0xef04d4);}:function(_0x300e80,_0x1f97c7,_0x4a0e47,_0x488d9c){if(_0x488d9c===undefined)_0x488d9c=_0x4a0e47;_0x300e80[_0x488d9c]=_0x1f97c7[_0x4a0e47];}),__exportStar=this&&this['__exportStar']||function(_0xd04ed0,_0x446fe4){var _0x872ef8=a9_0x138eee;for(var _0x1d42eb in _0xd04ed0)if(_0x1d42eb!==_0x872ef8(0x152)&&!Object[_0x872ef8(0x11b)][_0x872ef8(0x135)]['call'](_0x446fe4,_0x1d42eb))__createBinding(_0x446fe4,_0xd04ed0,_0x1d42eb);};Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x143),{'value':!![]}),exports['getAppsConfig']=exports[a9_0x138eee(0x13c)]=exports[a9_0x138eee(0x136)]=exports[a9_0x138eee(0x154)]=exports[a9_0x138eee(0x125)]=exports[a9_0x138eee(0x131)]=exports['Config']=exports[a9_0x138eee(0x145)]=exports[a9_0x138eee(0x14a)]=exports[a9_0x138eee(0x13f)]=exports['Query']=exports[a9_0x138eee(0x121)]=exports[a9_0x138eee(0x12e)]=exports[a9_0x138eee(0x144)]=exports[a9_0x138eee(0x151)]=exports[a9_0x138eee(0x14e)]=exports[a9_0x138eee(0x14b)]=exports['ValidatorService']=exports[a9_0x138eee(0x13e)]=exports[a9_0x138eee(0x12f)]=exports['ApiService']=exports['EventService']=exports['CacheService']=exports['ApiError']=exports[a9_0x138eee(0x130)]=exports[a9_0x138eee(0x12a)]=exports[a9_0x138eee(0x14c)]=exports[a9_0x138eee(0x142)]=void 0x0;const getAppsConfig_1=require(a9_0x138eee(0x11f));Object[a9_0x138eee(0x123)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x4f63d9=a9_0x138eee;return getAppsConfig_1[_0x4f63d9(0x13d)];}}),__exportStar(require(a9_0x138eee(0x13b)),exports),__exportStar(require(a9_0x138eee(0x137)),exports);var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,a9_0x138eee(0x142),{'enumerable':!![],'get':function(){var _0x1cdce3=a9_0x138eee;return ActionApi_1[_0x1cdce3(0x142)];}});var Action_1=require(a9_0x138eee(0x155));Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x14c),{'enumerable':!![],'get':function(){var _0x162aca=a9_0x138eee;return Action_1[_0x162aca(0x14c)];}});var ActionApitest_1=require(a9_0x138eee(0x128));function a9_0x9cf4(){var _0x25cb47=['prototype','680752KwINst','./helper/getRoutes','9461KMCGTR','./helper/getAppsConfig','CustomConfiguration','Param','4526649FMogGP','defineProperty','./service/ExcelService','Provide','20aLSMws','./exception/ApiError','./decorator/ActionApitest','CacheService','Apitest','Config','configurable','ApiService','Body','ExcelService','getRoutes','Logger','3547632BKfsGe','5042290MtcZwm','2469978VoYMOC','hasOwnProperty','Scope','./service/ApitestService','138uyJgUj','EventService','ApiError','./types/common','ScopeEnum','getAppsConfig','ValidatorError','Headers','@midwayjs/core','get','Api','__esModule','Fields','App','writable','14YTIxPr','@anncic-api/cache','__createBinding','Init','Configuration','Action','create','File','@anncic-api/validator','9qRwxtb','Files','default','@anncic-api/event','Inject','./decorator/Action','626828kIxYpf','Query'];a9_0x9cf4=function(){return _0x25cb47;};return a9_0x9cf4();}Object['defineProperty'](exports,a9_0x138eee(0x12a),{'enumerable':!![],'get':function(){var _0x4439d7=a9_0x138eee;return ActionApitest_1[_0x4439d7(0x12a)];}});var getRoutes_1=require(a9_0x138eee(0x11d));Object[a9_0x138eee(0x123)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x20ca16=a9_0x138eee;return getRoutes_1[_0x20ca16(0x130)];}});var ApiError_1=require(a9_0x138eee(0x127));Object[a9_0x138eee(0x123)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x13ed14=a9_0x138eee;return ApiError_1[_0x13ed14(0x13a)];}});var cache_1=require(a9_0x138eee(0x148));Object[a9_0x138eee(0x123)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x2671d2=a9_0x138eee;return cache_1[_0x2671d2(0x129)];}});var event_1=require(a9_0x138eee(0x153));Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x139),{'enumerable':!![],'get':function(){var _0x36ddda=a9_0x138eee;return event_1[_0x36ddda(0x139)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x12d),{'enumerable':!![],'get':function(){var _0x1b033a=a9_0x138eee;return ApiService_1[_0x1b033a(0x12d)];}});var ExcelService_1=require(a9_0x138eee(0x124));Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x12f),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});function a9_0x2916(_0x477bff,_0x5cbaed){var _0x9cf4a9=a9_0x9cf4();return a9_0x2916=function(_0x2916e4,_0x3dc1d3){_0x2916e4=_0x2916e4-0x11a;var _0x2be411=_0x9cf4a9[_0x2916e4];return _0x2be411;},a9_0x2916(_0x477bff,_0x5cbaed);}var validator_1=require(a9_0x138eee(0x14f));Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x13e),{'enumerable':!![],'get':function(){var _0x3606db=a9_0x138eee;return validator_1[_0x3606db(0x13e)];}}),Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require('./configuration');Object[a9_0x138eee(0x123)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x474a32=a9_0x138eee;return configuration_1[_0x474a32(0x120)];}});var core_1=require('@midwayjs/core');Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x14e),{'enumerable':!![],'get':function(){var _0x3c6806=a9_0x138eee;return core_1[_0x3c6806(0x14e)];}}),Object['defineProperty'](exports,a9_0x138eee(0x151),{'enumerable':!![],'get':function(){var _0x115c6d=a9_0x138eee;return core_1[_0x115c6d(0x151)];}}),Object[a9_0x138eee(0x123)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x34ccb7=a9_0x138eee;return core_1[_0x34ccb7(0x144)];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x12e),{'enumerable':!![],'get':function(){var _0x2a8d1=a9_0x138eee;return core_1[_0x2a8d1(0x12e)];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x121),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x11a),{'enumerable':!![],'get':function(){var _0x44ab04=a9_0x138eee;return core_1[_0x44ab04(0x11a)];}}),Object['defineProperty'](exports,a9_0x138eee(0x13f),{'enumerable':!![],'get':function(){var _0x544363=a9_0x138eee;return core_1[_0x544363(0x13f)];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x14a),{'enumerable':!![],'get':function(){var _0x301022=a9_0x138eee;return core_1[_0x301022(0x14a)];}});var core_2=require(a9_0x138eee(0x140));Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x145),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x12b),{'enumerable':!![],'get':function(){var _0x51bbac=a9_0x138eee;return core_2[_0x51bbac(0x12b)];}}),Object['defineProperty'](exports,'Logger',{'enumerable':!![],'get':function(){var _0xe049ad=a9_0x138eee;return core_2[_0xe049ad(0x131)];}}),Object['defineProperty'](exports,a9_0x138eee(0x125),{'enumerable':!![],'get':function(){var _0x6dab10=a9_0x138eee;return core_2[_0x6dab10(0x125)];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x154),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x138eee(0x123)](exports,'Scope',{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x138eee(0x123)](exports,a9_0x138eee(0x13c),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x138eee(0x13d)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a10_0x3c39(_0x3103fe,_0x49e5fe){var _0x56df10=a10_0x56df();return a10_0x3c39=function(_0x3c39d8,_0x1c1ff9){_0x3c39d8=_0x3c39d8-0x1f3;var _0x4f8730=_0x56df10[_0x3c39d8];return _0x4f8730;},a10_0x3c39(_0x3103fe,_0x49e5fe);}function a10_0x56df(){var _0x28fa0c=['6142717lumknt','toLowerCase','getsign','getOwnPropertyDescriptor','requesttime','@midwayjs/core','secret','HEADERS_LACK','../exception/ApiError','prototype','checkcode','8ywSvfl','password','function','anncicapi','timeout','__decorate','TIMEOUT','ScopeEnum','16287953ftxhnf','config','__esModule','4EQIGCu','getcheck','ApiService','__metadata','18tMEMYf','crypto-js','undefined','push','815098FqiVCv','HEADERS_SIGNATURE','secret=','fromEntries','defineProperty','entries','缺少头信息:signature','devices','abs','MD5','metadata','length','663270tNZcpC','toString','1144167fpWsgr','5178835AQMPXZ','ApiError','map','HEADERS_DEVICE','HEADERS_CHECKCODE','decorate','1077790bXQHqi','join','now','signature','logintime','Singleton','Scope','device','token','1xrvRER','object'];a10_0x56df=function(){return _0x28fa0c;};return a10_0x56df();}var a10_0x1c2387=a10_0x3c39;(function(_0x5fdd60,_0x5779e0){var _0x1e968b=a10_0x3c39,_0x19d9f3=_0x5fdd60();while(!![]){try{var _0x59f2f6=parseInt(_0x1e968b(0x20b))/0x1*(-parseInt(_0x1e968b(0x22b))/0x2)+-parseInt(_0x1e968b(0x1fb))/0x3*(parseInt(_0x1e968b(0x223))/0x4)+parseInt(_0x1e968b(0x1fc))/0x5+-parseInt(_0x1e968b(0x1f9))/0x6+parseInt(_0x1e968b(0x20d))/0x7*(-parseInt(_0x1e968b(0x218))/0x8)+-parseInt(_0x1e968b(0x227))/0x9*(parseInt(_0x1e968b(0x202))/0xa)+parseInt(_0x1e968b(0x220))/0xb;if(_0x59f2f6===_0x5779e0)break;else _0x19d9f3['push'](_0x19d9f3['shift']());}catch(_0x340a8d){_0x19d9f3['push'](_0x19d9f3['shift']());}}}(a10_0x56df,0x7fe8e));var __decorate=this&&this[a10_0x1c2387(0x21d)]||function(_0x1f5f5f,_0x4f9f19,_0x5407bf,_0x45ba81){var _0x24929e=a10_0x1c2387,_0x1b954f=arguments['length'],_0x474838=_0x1b954f<0x3?_0x4f9f19:_0x45ba81===null?_0x45ba81=Object[_0x24929e(0x210)](_0x4f9f19,_0x5407bf):_0x45ba81,_0x1bb616;if(typeof Reflect===_0x24929e(0x20c)&&typeof Reflect[_0x24929e(0x201)]==='function')_0x474838=Reflect[_0x24929e(0x201)](_0x1f5f5f,_0x4f9f19,_0x5407bf,_0x45ba81);else{for(var _0x2434ea=_0x1f5f5f[_0x24929e(0x1f8)]-0x1;_0x2434ea>=0x0;_0x2434ea--)if(_0x1bb616=_0x1f5f5f[_0x2434ea])_0x474838=(_0x1b954f<0x3?_0x1bb616(_0x474838):_0x1b954f>0x3?_0x1bb616(_0x4f9f19,_0x5407bf,_0x474838):_0x1bb616(_0x4f9f19,_0x5407bf))||_0x474838;}return _0x1b954f>0x3&&_0x474838&&Object[_0x24929e(0x22f)](_0x4f9f19,_0x5407bf,_0x474838),_0x474838;},__metadata=this&&this[a10_0x1c2387(0x226)]||function(_0x354098,_0x50f97a){var _0x20dbdf=a10_0x1c2387;if(typeof Reflect===_0x20dbdf(0x20c)&&typeof Reflect[_0x20dbdf(0x1f7)]===_0x20dbdf(0x21a))return Reflect['metadata'](_0x354098,_0x50f97a);};Object[a10_0x1c2387(0x22f)](exports,a10_0x1c2387(0x222),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x1c2387(0x228)),core_1=require(a10_0x1c2387(0x212)),ApiError_1=require(a10_0x1c2387(0x215));let ApiService=class ApiService{[a10_0x1c2387(0x219)](_0x3f3894){var _0x1799b7=a10_0x1c2387,_0x4b4929;return _0x3f3894?(0x0,crypto_js_1[_0x1799b7(0x1f6)])(_0x3f3894+(0x0,crypto_js_1[_0x1799b7(0x1f6)])((0x0,crypto_js_1['MD5'])(_0x3f3894)['toString']()+((_0x4b4929=this[_0x1799b7(0x221)])===null||_0x4b4929===void 0x0?void 0x0:_0x4b4929['password']))[_0x1799b7(0x1fa)]())[_0x1799b7(0x1fa)]():'';}[a10_0x1c2387(0x224)](_0x4f3ef2,_0x3dd70b,_0x60d09d=Date['now']()){return{'Token':_0x4f3ef2,'Logintime':_0x60d09d,'Checkcode':this['checkcode'](_0x4f3ef2,_0x3dd70b,_0x60d09d)};}[a10_0x1c2387(0x20f)](_0x1a5a72={}){var _0x5148b7=a10_0x1c2387;const _0x39c89a=[],_0x524f81=Object[_0x5148b7(0x22e)](Object['entries'](_0x1a5a72)['map'](_0x42fea0=>[_0x42fea0[0x0][_0x5148b7(0x20e)](),_0x42fea0[0x1]]));for(let _0xf3b840 of[_0x5148b7(0x209),'requesttime','token',_0x5148b7(0x206),_0x5148b7(0x217)]){if(typeof _0x524f81[_0xf3b840]==_0x5148b7(0x229))throw new AnnError(ApiError_1[_0x5148b7(0x1fd)]['HEADERS_LACK'],{'message':'缺少头信息:'+_0xf3b840});_0x39c89a[_0x5148b7(0x22a)](_0xf3b840+'='+_0x524f81[_0xf3b840]);}if(Math[_0x5148b7(0x1f5)](_0x524f81[_0x5148b7(0x211)])-Date[_0x5148b7(0x204)]()>this[_0x5148b7(0x221)][_0x5148b7(0x21c)])throw new AnnError(ApiError_1[_0x5148b7(0x1fd)][_0x5148b7(0x21e)]);if(!this[_0x5148b7(0x221)][_0x5148b7(0x1f4)][_0x524f81[_0x5148b7(0x209)]]||!this[_0x5148b7(0x221)]['devices'][_0x524f81[_0x5148b7(0x209)]]['secret']||!this[_0x5148b7(0x221)]['devices'][_0x524f81[_0x5148b7(0x209)]][_0x5148b7(0x217)])throw new AnnError(ApiError_1[_0x5148b7(0x1fd)][_0x5148b7(0x1ff)]);if(_0x524f81[_0x5148b7(0x20a)]&&_0x524f81['checkcode']!=this[_0x5148b7(0x217)](_0x524f81[_0x5148b7(0x20a)],_0x524f81[_0x5148b7(0x209)],_0x524f81[_0x5148b7(0x206)]))throw new AnnError(ApiError_1[_0x5148b7(0x1fd)][_0x5148b7(0x200)]);return _0x39c89a[_0x5148b7(0x22a)](_0x5148b7(0x22d)+this[_0x5148b7(0x221)][_0x5148b7(0x1f4)][_0x524f81['device']][_0x5148b7(0x213)]),(0x0,crypto_js_1[_0x5148b7(0x1f6)])(_0x39c89a['sort']()[_0x5148b7(0x203)](''))[_0x5148b7(0x1fa)]();}['checkcode'](_0x9a64d,_0x3e1764,_0x2b0b7a=Date['now']()){var _0x29f182=a10_0x1c2387,_0x38501c,_0x3c3910,_0x3e7d70;if(!((_0x38501c=this[_0x29f182(0x221)])===null||_0x38501c===void 0x0?void 0x0:_0x38501c[_0x29f182(0x1f4)][_0x3e1764])||!((_0x3e7d70=(_0x3c3910=this[_0x29f182(0x221)])===null||_0x3c3910===void 0x0?void 0x0:_0x3c3910[_0x29f182(0x1f4)][_0x3e1764])===null||_0x3e7d70===void 0x0?void 0x0:_0x3e7d70[_0x29f182(0x217)]))throw new AnnError(ApiError_1[_0x29f182(0x1fd)][_0x29f182(0x1ff)]);return(0x0,crypto_js_1[_0x29f182(0x1f6)])(_0x9a64d+(0x0,crypto_js_1[_0x29f182(0x1f6)])(_0x2b0b7a+this[_0x29f182(0x221)]['devices'][_0x3e1764][_0x29f182(0x217)])[_0x29f182(0x1fa)]())['toString']();}['checksign'](_0x44f8b2={}){var _0x4cfaa7=a10_0x1c2387;const _0x4d65b5=Object[_0x4cfaa7(0x22e)](Object[_0x4cfaa7(0x230)](_0x44f8b2)[_0x4cfaa7(0x1fe)](_0x38e4b3=>[_0x38e4b3[0x0][_0x4cfaa7(0x20e)](),_0x38e4b3[0x1]]));if(!(_0x4d65b5===null||_0x4d65b5===void 0x0?void 0x0:_0x4d65b5[_0x4cfaa7(0x205)]))throw new AnnError(ApiError_1['ApiError'][_0x4cfaa7(0x214)],{'message':_0x4cfaa7(0x1f3)});if((_0x4d65b5===null||_0x4d65b5===void 0x0?void 0x0:_0x4d65b5[_0x4cfaa7(0x205)])!=this['getsign'](_0x4d65b5))throw new AnnError(ApiError_1[_0x4cfaa7(0x1fd)][_0x4cfaa7(0x22c)]);return!![];}};__decorate([(0x0,core_1['Config'])(a10_0x1c2387(0x21b)),__metadata('design:type',Object)],ApiService[a10_0x1c2387(0x216)],'config',void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x1c2387(0x208)])(core_1[a10_0x1c2387(0x21f)][a10_0x1c2387(0x207)])],ApiService),exports[a10_0x1c2387(0x225)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x4fcaf5=a11_0x11e4;(function(_0x4b51c5,_0x5406cf){const _0x407627=a11_0x11e4,_0x39f0ed=_0x4b51c5();while(!![]){try{const _0x17c182=-parseInt(_0x407627(0xcb))/0x1*(parseInt(_0x407627(0xe6))/0x2)+-parseInt(_0x407627(0xca))/0x3*(parseInt(_0x407627(0xe7))/0x4)+-parseInt(_0x407627(0xa0))/0x5+-parseInt(_0x407627(0xd8))/0x6*(parseInt(_0x407627(0xe4))/0x7)+-parseInt(_0x407627(0xd6))/0x8*(parseInt(_0x407627(0x9c))/0x9)+-parseInt(_0x407627(0xa3))/0xa*(parseInt(_0x407627(0xa4))/0xb)+parseInt(_0x407627(0xb7))/0xc*(parseInt(_0x407627(0xa1))/0xd);if(_0x17c182===_0x5406cf)break;else _0x39f0ed['push'](_0x39f0ed['shift']());}catch(_0x571d6d){_0x39f0ed['push'](_0x39f0ed['shift']());}}}(a11_0x3c05,0xed3c6));var __decorate=this&&this[a11_0x4fcaf5(0xc1)]||function(_0x5ebbc3,_0x2c4347,_0x24bf84,_0x12eaf3){const _0x134d0c=a11_0x4fcaf5;var _0xda9f91=arguments[_0x134d0c(0xc4)],_0x1e48b6=_0xda9f91<0x3?_0x2c4347:_0x12eaf3===null?_0x12eaf3=Object[_0x134d0c(0xd7)](_0x2c4347,_0x24bf84):_0x12eaf3,_0x307461;if(typeof Reflect==='object'&&typeof Reflect[_0x134d0c(0xce)]===_0x134d0c(0xbb))_0x1e48b6=Reflect[_0x134d0c(0xce)](_0x5ebbc3,_0x2c4347,_0x24bf84,_0x12eaf3);else{for(var _0x480448=_0x5ebbc3['length']-0x1;_0x480448>=0x0;_0x480448--)if(_0x307461=_0x5ebbc3[_0x480448])_0x1e48b6=(_0xda9f91<0x3?_0x307461(_0x1e48b6):_0xda9f91>0x3?_0x307461(_0x2c4347,_0x24bf84,_0x1e48b6):_0x307461(_0x2c4347,_0x24bf84))||_0x1e48b6;}return _0xda9f91>0x3&&_0x1e48b6&&Object[_0x134d0c(0xc0)](_0x2c4347,_0x24bf84,_0x1e48b6),_0x1e48b6;},__metadata=this&&this[a11_0x4fcaf5(0xcc)]||function(_0x557188,_0xf19945){const _0x4223e1=a11_0x4fcaf5;if(typeof Reflect===_0x4223e1(0xa6)&&typeof Reflect[_0x4223e1(0xdd)]==='function')return Reflect['metadata'](_0x557188,_0xf19945);},__param=this&&this[a11_0x4fcaf5(0xda)]||function(_0x214603,_0x4fe2c2){return function(_0x393b63,_0x2d6955){_0x4fe2c2(_0x393b63,_0x2d6955,_0x214603);};};Object[a11_0x4fcaf5(0xc0)](exports,a11_0x4fcaf5(0xe2),{'value':!![]}),exports[a11_0x4fcaf5(0xad)]=exports[a11_0x4fcaf5(0xd1)]=void 0x0;const path_1=require(a11_0x4fcaf5(0xb9)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x4fcaf5(0xe8)),core_3=require('@midwayjs/core'),getRoutes_1=require(a11_0x4fcaf5(0x9f));let ApitestService=class ApitestService{async[a11_0x4fcaf5(0xe3)](_0x5f591b){const _0x545bfa=a11_0x4fcaf5,_0x422f73=(0x0,getRoutes_1[_0x545bfa(0xb2)])(_0x5f591b),_0x44507a=[];for(let _0x5cb038 in _0x422f73){for(let _0x39a742 in _0x422f73[_0x5cb038]['routes']){let _0x1a3a4d=_0x422f73[_0x5cb038][_0x545bfa(0xea)][_0x39a742],_0x2ee995=[];for(let _0x95fe9 in _0x1a3a4d[_0x545bfa(0xa7)]){_0x2ee995[_0x545bfa(0xd3)](_0x1a3a4d[_0x545bfa(0xa7)][_0x95fe9]);}_0x44507a[_0x545bfa(0xd3)]({'title':_0x422f73[_0x5cb038]['summary']+':'+_0x1a3a4d['summary'],'prefix':_0x422f73[_0x5cb038][_0x545bfa(0xde)],'router':_0x1a3a4d[_0x545bfa(0xab)],'method':_0x1a3a4d['method'],'describe':_0x1a3a4d['description']||'','filepath':_0x422f73[_0x5cb038][_0x545bfa(0xba)]||'','request':_0x2ee995});}}const _0x58767c=(0x0,path_1[_0x545bfa(0xb5)])(__dirname,_0x545bfa(0xbe));return(0x0,fs_1[_0x545bfa(0xb4)])(_0x58767c,{'encoding':'utf-8'})['replace'](/__res__/g,_0x545bfa(0x9b))[_0x545bfa(0xa5)](_0x545bfa(0xc2),JSON[_0x545bfa(0xae)](_0x44507a))[_0x545bfa(0xa5)](_0x545bfa(0xbd),JSON[_0x545bfa(0xae)](this[_0x545bfa(0xd9)][_0x545bfa(0xd4)]));}};__decorate([(0x0,core_3[a11_0x4fcaf5(0xa9)])('anncicapi'),__metadata(a11_0x4fcaf5(0xb1),Object)],ApitestService[a11_0x4fcaf5(0x9e)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x4fcaf5(0xe5)])(a11_0x4fcaf5(0xaa)),(0x0,core_3[a11_0x4fcaf5(0xd0)])(core_3[a11_0x4fcaf5(0x9a)][a11_0x4fcaf5(0xbc)])],ApitestService),exports[a11_0x4fcaf5(0xd1)]=ApitestService;function a11_0x11e4(_0x3008cd,_0x38e98b){const _0x3c0502=a11_0x3c05();return a11_0x11e4=function(_0x11e491,_0x377e14){_0x11e491=_0x11e491-0x99;let _0x86562f=_0x3c0502[_0x11e491];return _0x86562f;},a11_0x11e4(_0x3008cd,_0x38e98b);}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x34dad5=a11_0x4fcaf5;if(this[_0x34dad5(0xaa)]){const _0xcdb1f0={'module':![]};return this[_0x34dad5(0x9d)]['isDevelopmentEnvironment']()&&(_0xcdb1f0[_0x34dad5(0xba)]=!![]),await this[_0x34dad5(0xd1)][_0x34dad5(0xe3)](_0xcdb1f0);}return'';}async[a11_0x4fcaf5(0xc7)](_0xd14955){const _0x44152a=a11_0x4fcaf5;if(this[_0x44152a(0xaa)]){const _0x126fcc={'module':_0xd14955};return this[_0x44152a(0x9d)][_0x44152a(0xeb)]()&&(_0x126fcc[_0x44152a(0xba)]=!![]),await this[_0x44152a(0xd1)]['apidoc'](_0x126fcc);}return'';}async[a11_0x4fcaf5(0xc6)](){const _0xf07355=a11_0x4fcaf5;if((0x0,path_1['extname'])(this['ctx'][_0xf07355(0xa7)][_0xf07355(0xb0)])){var _0x7a36f3=(0x0,path_1[_0xf07355(0xb5)])(__dirname,_0xf07355(0xb6)+this['ctx'][_0xf07355(0xa7)][_0xf07355(0xb0)][_0xf07355(0xa5)](_0xf07355(0x9b),'/'));if(_0x7a36f3[_0xf07355(0xc5)](_0x7a36f3['length']-0xb)!='/index.html'){this[_0xf07355(0x99)][_0xf07355(0xdb)](_0xf07355(0xac),_0xf07355(0xc9));if((0x0,path_1[_0xf07355(0xcf)])(this['ctx'][_0xf07355(0xa7)]['url'])==_0xf07355(0xa2))this[_0xf07355(0x99)]['set'](_0xf07355(0xdc),_0xf07355(0xcd));else(0x0,path_1[_0xf07355(0xcf)])(this['ctx'][_0xf07355(0xa7)][_0xf07355(0xb0)])==_0xf07355(0xe9)&&this[_0xf07355(0x99)][_0xf07355(0xdb)]('content-type',_0xf07355(0xb3));return(0x0,fs_1[_0xf07355(0xaf)])(_0x7a36f3)&&(0x0,fs_1['readFileSync'])(_0x7a36f3,{'encoding':_0xf07355(0xe0)});}}return'';}};function a11_0x3c05(){const _0x520ebe=['function','Singleton','__devices__','../../public/index.html','Get','defineProperty','__decorate','__apiList__','Inject','length','substring','apiteststatic','apitestmodule','Controller','public,\x20max-age=604800','1143NipGhq','136027pLiGYL','__metadata','application/javascript;\x20charset=utf-8','decorate','extname','Scope','ApitestService','Request','push','devices','/apitest','1544kZuDGc','getOwnPropertyDescriptor','8969892wnYPnk','config','__param','set','content-type','metadata','prefix','/apiteststatic/*','utf-8','design:paramtypes','__esModule','apidoc','7xafGIZ','Provide','28cLWGFW','9864uhsWwH','@midwayjs/core','.css','routes','isDevelopmentEnvironment','ctx','ScopeEnum','/apiteststatic/','89469xgqeZG','Environment','prototype','../helper/getRoutes','1157950cVXXUQ','110340854oOgNgR','.js','10zEhIzx','11296241exzqEd','replace','object','request','anncicapi','Config','apitest','route','cache-control','ApitestStaticController','stringify','existsSync','url','design:type','getRoutes','text/css;\x20charset=utf-8','readFileSync','join','../../public/','12CavvXp','design:returntype','path','filepath'];a11_0x3c05=function(){return _0x520ebe;};return a11_0x3c05();}__decorate([(0x0,core_3[a11_0x4fcaf5(0xc3)])(),__metadata(a11_0x4fcaf5(0xb1),Object)],ApitestStaticController[a11_0x4fcaf5(0x9e)],a11_0x4fcaf5(0x99),void 0x0),__decorate([(0x0,core_3[a11_0x4fcaf5(0xc3)])(),__metadata(a11_0x4fcaf5(0xb1),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x4fcaf5(0x9e)],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x4fcaf5(0xc3)])(),__metadata(a11_0x4fcaf5(0xb1),ApitestService)],ApitestStaticController[a11_0x4fcaf5(0x9e)],a11_0x4fcaf5(0xd1),void 0x0),__decorate([(0x0,core_3[a11_0x4fcaf5(0xa9)])(a11_0x4fcaf5(0xaa)),__metadata(a11_0x4fcaf5(0xb1),Boolean)],ApitestStaticController[a11_0x4fcaf5(0x9e)],a11_0x4fcaf5(0xaa),void 0x0),__decorate([(0x0,core_3[a11_0x4fcaf5(0xa9)])(a11_0x4fcaf5(0xa8)),__metadata('design:type',Object)],ApitestStaticController[a11_0x4fcaf5(0x9e)],a11_0x4fcaf5(0xd9),void 0x0),__decorate([(0x0,core_2[a11_0x4fcaf5(0xbf)])(a11_0x4fcaf5(0xd5)),__metadata(a11_0x4fcaf5(0xb1),Function),__metadata(a11_0x4fcaf5(0xe1),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x4fcaf5(0xbf)])('/apitest-:module'),__param(0x0,(0x0,core_2['Param'])('module')),__metadata('design:type',Function),__metadata(a11_0x4fcaf5(0xe1),[String]),__metadata(a11_0x4fcaf5(0xb8),Promise)],ApitestStaticController[a11_0x4fcaf5(0x9e)],a11_0x4fcaf5(0xc7),null),__decorate([(0x0,core_2['Get'])(a11_0x4fcaf5(0xdf)),__metadata(a11_0x4fcaf5(0xb1),Function),__metadata(a11_0x4fcaf5(0xe1),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x4fcaf5(0x9e)],a11_0x4fcaf5(0xc6),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x4fcaf5(0xc8)])('/'),(0x0,core_3['Scope'])(core_3[a11_0x4fcaf5(0x9a)][a11_0x4fcaf5(0xd2)])],ApitestStaticController),exports[a11_0x4fcaf5(0xad)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a12_0x47d913=a12_0x4207;(function(_0x7bb547,_0xe2a92a){const _0x19b386=a12_0x4207,_0x3fcb1c=_0x7bb547();while(!![]){try{const _0x3e165f=-parseInt(_0x19b386(0x16a))/0x1*(parseInt(_0x19b386(0x18e))/0x2)+parseInt(_0x19b386(0x19b))/0x3*(-parseInt(_0x19b386(0x1ab))/0x4)+parseInt(_0x19b386(0x1af))/0x5*(parseInt(_0x19b386(0x19a))/0x6)+-parseInt(_0x19b386(0x17f))/0x7*(parseInt(_0x19b386(0x16f))/0x8)+-parseInt(_0x19b386(0x188))/0x9*(-parseInt(_0x19b386(0x16c))/0xa)+parseInt(_0x19b386(0x169))/0xb+parseInt(_0x19b386(0x18b))/0xc*(parseInt(_0x19b386(0x181))/0xd);if(_0x3e165f===_0xe2a92a)break;else _0x3fcb1c['push'](_0x3fcb1c['shift']());}catch(_0x4db5e7){_0x3fcb1c['push'](_0x3fcb1c['shift']());}}}(a12_0x56f8,0x4a51f));function a12_0x4207(_0x276b62,_0x2036c8){const _0x56f8bf=a12_0x56f8();return a12_0x4207=function(_0x42073b,_0x535520){_0x42073b=_0x42073b-0x169;let _0x189d80=_0x56f8bf[_0x42073b];return _0x189d80;},a12_0x4207(_0x276b62,_0x2036c8);}function a12_0x56f8(){const _0x4fa716=['16975jqlemP','getAppDir','275834LdXrof','substring','defineProperty','startsWith','@midwayjs/core','parse','columns','1314513CSgOPz','col','object','216bKGxqH','xlsx','writeFile','10jMcKBR','log','\x20is\x20read\x20fail','decorate','isNumber','cellCount','app','model','getWorksheet','function','value','rowCount','11058oNPUDq','12AoJTfa','Workbook','Scope','findRows','header','keys','eachCell','__metadata','worksheets','key','handler','getOwnPropertyDescriptor','/public/xlsx','__esModule','download','prototype','443304ovOxfi','getRow','Sheet\x201','push','1405KJqaea','2374031Gjllws','108836oEaOWu','export','30CSYNZS','endsWith','Provide','864LlDoTq','random','ScopeEnum','ExcelService','readFile','__decorate','Singleton','replace','public/xlsx','metadata','length','exceljs','addRow','toString','getCell','.xlsx'];a12_0x56f8=function(){return _0x4fa716;};return a12_0x56f8();}var __decorate=this&&this[a12_0x47d913(0x174)]||function(_0x584ed6,_0x1459f3,_0x2dfeb0,_0x567d78){const _0xf67bbf=a12_0x47d913;var _0x445acd=arguments[_0xf67bbf(0x179)],_0x444dd5=_0x445acd<0x3?_0x1459f3:_0x567d78===null?_0x567d78=Object[_0xf67bbf(0x1a6)](_0x1459f3,_0x2dfeb0):_0x567d78,_0x43504c;if(typeof Reflect===_0xf67bbf(0x18a)&&typeof Reflect[_0xf67bbf(0x191)]==='function')_0x444dd5=Reflect['decorate'](_0x584ed6,_0x1459f3,_0x2dfeb0,_0x567d78);else{for(var _0x3b38c4=_0x584ed6['length']-0x1;_0x3b38c4>=0x0;_0x3b38c4--)if(_0x43504c=_0x584ed6[_0x3b38c4])_0x444dd5=(_0x445acd<0x3?_0x43504c(_0x444dd5):_0x445acd>0x3?_0x43504c(_0x1459f3,_0x2dfeb0,_0x444dd5):_0x43504c(_0x1459f3,_0x2dfeb0))||_0x444dd5;}return _0x445acd>0x3&&_0x444dd5&&Object['defineProperty'](_0x1459f3,_0x2dfeb0,_0x444dd5),_0x444dd5;},__metadata=this&&this[a12_0x47d913(0x1a2)]||function(_0x376ba8,_0x19effb){const _0x1e1e8c=a12_0x47d913;if(typeof Reflect==='object'&&typeof Reflect[_0x1e1e8c(0x178)]===_0x1e1e8c(0x197))return Reflect['metadata'](_0x376ba8,_0x19effb);};Object[a12_0x47d913(0x183)](exports,a12_0x47d913(0x1a8),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x47d913(0x17a)),koasend=require('koa-send'),core_1=require(a12_0x47d913(0x185));let ExcelService=class ExcelService{async[a12_0x47d913(0x186)](_0x4b547a,_0x4f57b7,_0x52f9fb=[0x0]){const _0x5cc29f=a12_0x47d913;var _0x5777eb,_0x8b5284;const _0x1791ea=new exceljs[(_0x5cc29f(0x19c))](),_0x2274d2=[];let _0x2a0f9c=_0x4b547a[_0x5cc29f(0x176)](/(\\|\/)/g,'/')[_0x5cc29f(0x176)](/\/{2,}/g,'/');!(_0x2a0f9c===null||_0x2a0f9c===void 0x0?void 0x0:_0x2a0f9c['startsWith']('/'))&&(_0x2a0f9c=this[_0x5cc29f(0x194)][_0x5cc29f(0x180)]()+'/'+_0x2a0f9c);try{await _0x1791ea[_0x5cc29f(0x18c)][_0x5cc29f(0x173)](_0x2a0f9c);}catch(_0x39bc88){return console[_0x5cc29f(0x18f)]('Api\x20Excel\x20Error:\x20'+_0x2a0f9c+_0x5cc29f(0x190)),_0x2274d2;}for(const _0x4f9fac of _0x52f9fb){const _0x331b98=lodash[_0x5cc29f(0x192)](_0x4f9fac)?((_0x5777eb=_0x1791ea[_0x5cc29f(0x1a3)])===null||_0x5777eb===void 0x0?void 0x0:_0x5777eb[_0x4f9fac])||undefined:_0x1791ea[_0x5cc29f(0x196)](_0x4f9fac);if(_0x331b98){var _0xd9b9e2=0x1;const _0xa0a789=_0x331b98[_0x5cc29f(0x1ac)](0x1),_0x4f0fd8=await new Promise(_0x211966=>{const _0x1bf1b5=_0x5cc29f,_0x5c5dda={};_0xa0a789[_0x1bf1b5(0x1a1)]((_0x3d78f4,_0x2d7b89)=>{const _0x4256ff=_0x1bf1b5;for(const _0x3c2fac of _0x4f57b7){if(_0x3d78f4[_0x4256ff(0x198)]==_0x3c2fac[_0x4256ff(0x19f)])_0xd9b9e2=0x2,_0x5c5dda[_0x3c2fac[_0x4256ff(0x1a4)]]={'header':_0x3d78f4['col'],'handler':_0x3c2fac[_0x4256ff(0x1a5)]};else{if(!_0x5c5dda[_0x3c2fac[_0x4256ff(0x1a4)]])try{const _0x52bf47=_0xa0a789[_0x4256ff(0x17d)](_0x3c2fac[_0x4256ff(0x19f)]);_0x52bf47&&(_0x5c5dda[_0x3c2fac[_0x4256ff(0x1a4)]]={'header':_0x52bf47[_0x4256ff(0x189)],'handler':_0x3c2fac[_0x4256ff(0x1a5)]});}catch{}}}_0xa0a789[_0x4256ff(0x193)]==_0x2d7b89&&_0x211966(_0x5c5dda);});});for(const _0x1a3638 of _0x331b98[_0x5cc29f(0x19e)](_0xd9b9e2,_0x331b98[_0x5cc29f(0x199)])){const _0x4bb366={};for(const _0x2b6c8f in _0x4f0fd8){if(_0x4f0fd8[_0x2b6c8f][_0x5cc29f(0x19f)]){const _0x1daf65=_0x1a3638['getCell'](_0x4f0fd8[_0x2b6c8f][_0x5cc29f(0x19f)]);typeof((_0x8b5284=_0x4f0fd8[_0x2b6c8f])===null||_0x8b5284===void 0x0?void 0x0:_0x8b5284[_0x5cc29f(0x1a5)])==_0x5cc29f(0x197)?_0x4bb366[_0x2b6c8f]=await _0x4f0fd8[_0x2b6c8f][_0x5cc29f(0x1a5)]((_0x1daf65===null||_0x1daf65===void 0x0?void 0x0:_0x1daf65[_0x5cc29f(0x17c)]())||'',_0x1daf65[_0x5cc29f(0x195)]):_0x4bb366[_0x2b6c8f]=(_0x1daf65===null||_0x1daf65===void 0x0?void 0x0:_0x1daf65[_0x5cc29f(0x17c)]())||'';}}Object[_0x5cc29f(0x1a0)](_0x4bb366)[_0x5cc29f(0x179)]>0x0&&_0x2274d2[_0x5cc29f(0x1ae)](_0x4bb366);}}}return _0x2274d2;}async[a12_0x47d913(0x16b)](_0x5da6d4,_0x13c8cb,_0x896130,_0x16c338=a12_0x47d913(0x177)){const _0x448554=a12_0x47d913;var _0x17aa60,_0x12c630;const _0x43c0ea=new exceljs[(_0x448554(0x19c))](),_0x54fbf2={},_0x1641f7=[],_0x1c0141=_0x43c0ea['addWorksheet'](_0x448554(0x1ad),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x519a30 in _0x13c8cb){_0x54fbf2[_0x13c8cb[_0x519a30][_0x448554(0x1a4)]]=_0x13c8cb[_0x519a30]['header'],_0x1641f7[_0x448554(0x1ae)]({'header':_0x13c8cb[_0x519a30][_0x448554(0x19f)],'key':(_0x17aa60=_0x13c8cb[_0x519a30])===null||_0x17aa60===void 0x0?void 0x0:_0x17aa60[_0x448554(0x1a4)][_0x448554(0x176)](/\./g,'_')});}_0x1c0141[_0x448554(0x187)]=_0x1641f7;for(const _0x76a298 of _0x896130){const _0x6eb22d={};for(const _0x1bef8b in _0x13c8cb){typeof((_0x12c630=_0x13c8cb[_0x1bef8b])===null||_0x12c630===void 0x0?void 0x0:_0x12c630[_0x448554(0x1a5)])==_0x448554(0x197)?_0x6eb22d[_0x13c8cb[_0x1bef8b][_0x448554(0x1a4)][_0x448554(0x176)](/\./g,'_')]=await _0x13c8cb[_0x1bef8b][_0x448554(0x1a5)](_0x76a298):_0x6eb22d[_0x13c8cb[_0x1bef8b]['key'][_0x448554(0x176)](/\./g,'_')]=lodash['get'](_0x76a298,_0x13c8cb[_0x1bef8b][_0x448554(0x1a4)],'');}_0x1c0141[_0x448554(0x17b)](_0x6eb22d);}let _0x3b3b0b='';const _0x32dce7=_0x5da6d4+'-'+lodash[_0x448554(0x170)](0x2710,0x1869f)+_0x448554(0x17e);if(_0x16c338&&_0x16c338[_0x448554(0x184)]('/'))_0x3b3b0b=''+_0x16c338;else _0x16c338&&!_0x16c338[_0x448554(0x184)]('/')&&!_0x16c338[_0x448554(0x184)]('\x5c')?_0x3b3b0b=this[_0x448554(0x194)][_0x448554(0x180)]()+'/'+_0x16c338:_0x3b3b0b=this[_0x448554(0x194)][_0x448554(0x180)]()+_0x448554(0x1a7);return(_0x3b3b0b[_0x448554(0x16d)]('/')||_0x3b3b0b[_0x448554(0x16d)]('\x5c'))&&(_0x3b3b0b=_0x3b3b0b[_0x448554(0x182)](0x0,_0x3b3b0b[_0x448554(0x179)]-0x1)),_0x3b3b0b=_0x3b3b0b[_0x448554(0x176)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x3b3b0b)&&fs['mkdirSync'](_0x3b3b0b,{'recursive':!![]}),await _0x43c0ea[_0x448554(0x18c)][_0x448554(0x18d)]((_0x3b3b0b+'/'+_0x32dce7)['replace'](/(\\|\/)/g,'/')[_0x448554(0x176)](/\/{2,}/g,'/')),{'filename':_0x32dce7,'filepath':(_0x3b3b0b[_0x448554(0x182)]((''+this[_0x448554(0x194)][_0x448554(0x180)]())[_0x448554(0x179)])+'/'+_0x32dce7)[_0x448554(0x176)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0x47d913(0x1a9)](_0x5923ad,_0x1a73df){return await koasend(_0x5923ad,''+_0x1a73df);}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService[a12_0x47d913(0x1aa)],a12_0x47d913(0x194),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x47d913(0x16e)])(),(0x0,core_1[a12_0x47d913(0x19d)])(core_1[a12_0x47d913(0x171)][a12_0x47d913(0x175)])],ExcelService),exports[a12_0x47d913(0x172)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x44e803=a13_0x2ad3;(function(_0x5d7969,_0x3d20e8){var _0x5e5ebc=a13_0x2ad3,_0x4275ea=_0x5d7969();while(!![]){try{var _0x3ee5d2=-parseInt(_0x5e5ebc(0x164))/0x1*(parseInt(_0x5e5ebc(0x166))/0x2)+parseInt(_0x5e5ebc(0x173))/0x3*(parseInt(_0x5e5ebc(0x16f))/0x4)+-parseInt(_0x5e5ebc(0x16e))/0x5+-parseInt(_0x5e5ebc(0x16b))/0x6+-parseInt(_0x5e5ebc(0x167))/0x7+-parseInt(_0x5e5ebc(0x165))/0x8*(parseInt(_0x5e5ebc(0x16a))/0x9)+parseInt(_0x5e5ebc(0x16d))/0xa;if(_0x3ee5d2===_0x3d20e8)break;else _0x4275ea['push'](_0x4275ea['shift']());}catch(_0x4b2cdb){_0x4275ea['push'](_0x4275ea['shift']());}}}(a13_0x3fd3,0x76a35));function a13_0x2ad3(_0x10f43f,_0x58045e){var _0x3fd33d=a13_0x3fd3();return a13_0x2ad3=function(_0x2ad36e,_0x584e9a){_0x2ad36e=_0x2ad36e-0x163;var _0x590d1e=_0x3fd33d[_0x2ad36e];return _0x590d1e;},a13_0x2ad3(_0x10f43f,_0x58045e);}function a13_0x3fd3(){var _0x5e1c92=['7572DSiwKN','ACTION_KEY','anncic-api:action','APPSCONFIG_KEY','1497XQaTNJ','anncic-api:action:route','AppsConfigTmp','136OoZhTQ','8giMzUt','2914HJPodK','3059168JDiBwl','anncic-api:apps:config','__esModule','555561fPzSlb','2098554QzGBnE','ACTION_ROUTE_KEY','12559340YGTDVb','3339680usgvhl'];a13_0x3fd3=function(){return _0x5e1c92;};return a13_0x3fd3();}Object['defineProperty'](exports,a13_0x44e803(0x169),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x44e803(0x172)]=exports[a13_0x44e803(0x16c)]=exports[a13_0x44e803(0x170)]=void 0x0,exports[a13_0x44e803(0x170)]=a13_0x44e803(0x171),exports['ACTION_ROUTE_KEY']=a13_0x44e803(0x174),exports[a13_0x44e803(0x172)]=a13_0x44e803(0x168);class AppsConfigTmp{}exports[a13_0x44e803(0x163)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a14_0x58f6(){var _0x911a90=['RuleType','排序方式','_isreverse','integer','function','getOwnPropertyDescriptor','design:type','__esModule','decorate','prototype','第一页为1,第二页为2','metadata','length','__metadata','319CXxNMC','12pBeSaL','312980KUsZai','19200142xjCizI','9ahYSjR','108oVhYMa','min','number','1964775dvenLT','_size','分页数量','21zJkMBO','5154uMotlB','104gslyir','11087272fDYnjt','defineProperty','Rule','__decorate','object','是否倒序','@anncic-api/validator','1407222ZjuSuF','PageDTO','1:是;0:否','22143pqllzL','trim'];a14_0x58f6=function(){return _0x911a90;};return a14_0x58f6();}var a14_0x29e4d7=a14_0x18d9;(function(_0x4a8939,_0x49f126){var _0x51280b=a14_0x18d9,_0x3bb6f0=_0x4a8939();while(!![]){try{var _0x37aba7=-parseInt(_0x51280b(0x99))/0x1*(parseInt(_0x51280b(0xa0))/0x2)+-parseInt(_0x51280b(0x84))/0x3*(parseInt(_0x51280b(0xa1))/0x4)+-parseInt(_0x51280b(0x9c))/0x5+parseInt(_0x51280b(0xa9))/0x6*(parseInt(_0x51280b(0x9f))/0x7)+parseInt(_0x51280b(0xa2))/0x8*(-parseInt(_0x51280b(0x98))/0x9)+parseInt(_0x51280b(0x96))/0xa*(parseInt(_0x51280b(0x94))/0xb)+-parseInt(_0x51280b(0x95))/0xc*(-parseInt(_0x51280b(0x97))/0xd);if(_0x37aba7===_0x49f126)break;else _0x3bb6f0['push'](_0x3bb6f0['shift']());}catch(_0x43d835){_0x3bb6f0['push'](_0x3bb6f0['shift']());}}}(a14_0x58f6,0xccdbd));var __decorate=this&&this[a14_0x29e4d7(0xa5)]||function(_0x2c66d9,_0x2f13fa,_0x489c90,_0x520e40){var _0x179c65=a14_0x29e4d7,_0xa89a9a=arguments[_0x179c65(0x92)],_0x7b9858=_0xa89a9a<0x3?_0x2f13fa:_0x520e40===null?_0x520e40=Object[_0x179c65(0x8b)](_0x2f13fa,_0x489c90):_0x520e40,_0x296727;if(typeof Reflect===_0x179c65(0xa6)&&typeof Reflect[_0x179c65(0x8e)]===_0x179c65(0x8a))_0x7b9858=Reflect[_0x179c65(0x8e)](_0x2c66d9,_0x2f13fa,_0x489c90,_0x520e40);else{for(var _0x16174a=_0x2c66d9[_0x179c65(0x92)]-0x1;_0x16174a>=0x0;_0x16174a--)if(_0x296727=_0x2c66d9[_0x16174a])_0x7b9858=(_0xa89a9a<0x3?_0x296727(_0x7b9858):_0xa89a9a>0x3?_0x296727(_0x2f13fa,_0x489c90,_0x7b9858):_0x296727(_0x2f13fa,_0x489c90))||_0x7b9858;}return _0xa89a9a>0x3&&_0x7b9858&&Object['defineProperty'](_0x2f13fa,_0x489c90,_0x7b9858),_0x7b9858;},__metadata=this&&this[a14_0x29e4d7(0x93)]||function(_0x429e35,_0x200f76){var _0x4cbf75=a14_0x29e4d7;if(typeof Reflect===_0x4cbf75(0xa6)&&typeof Reflect[_0x4cbf75(0x91)]===_0x4cbf75(0x8a))return Reflect[_0x4cbf75(0x91)](_0x429e35,_0x200f76);};function a14_0x18d9(_0x3745e4,_0x4ad0af){var _0x58f66b=a14_0x58f6();return a14_0x18d9=function(_0x18d9c5,_0x2d6e15){_0x18d9c5=_0x18d9c5-0x82;var _0x267948=_0x58f66b[_0x18d9c5];return _0x267948;},a14_0x18d9(_0x3745e4,_0x4ad0af);}Object[a14_0x29e4d7(0xa3)](exports,a14_0x29e4d7(0x8d),{'value':!![]}),exports[a14_0x29e4d7(0x82)]=void 0x0;const validator_1=require(a14_0x29e4d7(0xa8));class PageDTO{}__decorate([(0x0,validator_1[a14_0x29e4d7(0xa4)])('分页',validator_1[a14_0x29e4d7(0x86)]['number']()[a14_0x29e4d7(0x89)]()['min'](0x1),a14_0x29e4d7(0x90)),__metadata('design:type',Number)],PageDTO[a14_0x29e4d7(0x8f)],'_page',void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x29e4d7(0x9e),validator_1[a14_0x29e4d7(0x86)][a14_0x29e4d7(0x9b)]()[a14_0x29e4d7(0x89)]()[a14_0x29e4d7(0x9a)](0x1)),__metadata(a14_0x29e4d7(0x8c),Number)],PageDTO[a14_0x29e4d7(0x8f)],a14_0x29e4d7(0x9d),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x29e4d7(0x87),validator_1[a14_0x29e4d7(0x86)]['string']()[a14_0x29e4d7(0x85)]()),__metadata(a14_0x29e4d7(0x8c),String)],PageDTO[a14_0x29e4d7(0x8f)],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x29e4d7(0xa4)])(a14_0x29e4d7(0xa7),validator_1[a14_0x29e4d7(0x86)]['number']()['integer']()['valid'](0x0,0x1),a14_0x29e4d7(0x83)),__metadata(a14_0x29e4d7(0x8c),Number)],PageDTO['prototype'],a14_0x29e4d7(0x88),void 0x0),exports[a14_0x29e4d7(0x82)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.7",
|
|
21
|
+
"@anncic-api/core": "^1.4.7",
|
|
22
|
+
"@anncic-api/event": "^1.4.7",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.7",
|
|
24
|
+
"@anncic-api/validator": "^1.4.7",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.7",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "03205fcee78cac4dab2e0de47407bb2ee45f4c6b"
|
|
43
43
|
}
|