mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2026-04-29 22:44:31 +08:00
一些小优化
This commit is contained in:
@@ -1 +1 @@
|
||||
'use strict';function _0x281a(_0x5cca32,_0x313042){const _0xcb59f1=_0xcb59();return _0x281a=function(_0x281aaa,_0x567144){_0x281aaa=_0x281aaa-0x16f;let _0x4a424d=_0xcb59f1[_0x281aaa];return _0x4a424d;},_0x281a(_0x5cca32,_0x313042);}const _0x2df808=_0x281a;(function(_0x299560,_0x609fca){const _0x4eb3d4=_0x281a,_0x1f374b=_0x299560();while(!![]){try{const _0x156a25=parseInt(_0x4eb3d4(0x179))/0x1+parseInt(_0x4eb3d4(0x172))/0x2+parseInt(_0x4eb3d4(0x186))/0x3+-parseInt(_0x4eb3d4(0x181))/0x4*(-parseInt(_0x4eb3d4(0x176))/0x5)+parseInt(_0x4eb3d4(0x173))/0x6+-parseInt(_0x4eb3d4(0x17d))/0x7+parseInt(_0x4eb3d4(0x178))/0x8*(-parseInt(_0x4eb3d4(0x175))/0x9);if(_0x156a25===_0x609fca)break;else _0x1f374b['push'](_0x1f374b['shift']());}catch(_0x1b22cc){_0x1f374b['push'](_0x1f374b['shift']());}}}(_0xcb59,0xed981));function _0xcb59(){const _0x404fd0=['1989256wtZoCI','__decorate','非法操作、非超级管理员无权操作!','decorate','super','779529MZSBLv','getOwnPropertyDescriptor','canActivate','role','./jwtAuth.guard','defineProperty','__esModule','Injectable','length','2057388bkXsDj','6703632pxjNtj','UnauthorizedException','13415085hyMMcO','5LJHbWE','user','8whwYbO','474737tRYIWk','function','object','SuperAuthGuard','6398770cguHXV','getRequest','@nestjs/common','switchToHttp'];_0xcb59=function(){return _0x404fd0;};return _0xcb59();}var __decorate=this&&this[_0x2df808(0x182)]||function(_0x496b00,_0x540d9a,_0x4eca00,_0x2f8459){const _0x4a0581=_0x2df808;var _0x298600=arguments[_0x4a0581(0x171)],_0x170af2=_0x298600<0x3?_0x540d9a:_0x2f8459===null?_0x2f8459=Object[_0x4a0581(0x187)](_0x540d9a,_0x4eca00):_0x2f8459,_0xd78bf7;if(typeof Reflect===_0x4a0581(0x17b)&&typeof Reflect[_0x4a0581(0x184)]===_0x4a0581(0x17a))_0x170af2=Reflect['decorate'](_0x496b00,_0x540d9a,_0x4eca00,_0x2f8459);else{for(var _0xf48d19=_0x496b00[_0x4a0581(0x171)]-0x1;_0xf48d19>=0x0;_0xf48d19--)if(_0xd78bf7=_0x496b00[_0xf48d19])_0x170af2=(_0x298600<0x3?_0xd78bf7(_0x170af2):_0x298600>0x3?_0xd78bf7(_0x540d9a,_0x4eca00,_0x170af2):_0xd78bf7(_0x540d9a,_0x4eca00))||_0x170af2;}return _0x298600>0x3&&_0x170af2&&Object[_0x4a0581(0x18b)](_0x540d9a,_0x4eca00,_0x170af2),_0x170af2;};Object['defineProperty'](exports,_0x2df808(0x16f),{'value':!![]}),exports[_0x2df808(0x17c)]=void 0x0;const common_1=require(_0x2df808(0x17f)),jwtAuth_guard_1=require(_0x2df808(0x18a));let SuperAuthGuard=class SuperAuthGuard extends jwtAuth_guard_1['JwtAuthGuard']{async['canActivate'](_0x52ec01){const _0x2b8a2b=_0x2df808,_0x1218b7=await super[_0x2b8a2b(0x188)](_0x52ec01);if(!_0x1218b7)return![];const _0x3205ad=_0x52ec01[_0x2b8a2b(0x180)]()[_0x2b8a2b(0x17e)](),_0x307bb8=_0x3205ad[_0x2b8a2b(0x177)];if(_0x307bb8&&_0x307bb8[_0x2b8a2b(0x189)]===_0x2b8a2b(0x185))return!![];else throw new common_1[(_0x2b8a2b(0x174))](_0x2b8a2b(0x183));}};SuperAuthGuard=__decorate([(0x0,common_1[_0x2df808(0x170)])()],SuperAuthGuard),exports[_0x2df808(0x17c)]=SuperAuthGuard;
|
||||
'use strict';const _0x316cc9=_0xc2ca;(function(_0x472e7c,_0xc70de4){const _0x56cff2=_0xc2ca,_0x2dc0e8=_0x472e7c();while(!![]){try{const _0x1476bb=parseInt(_0x56cff2(0xf2))/0x1+parseInt(_0x56cff2(0x102))/0x2+parseInt(_0x56cff2(0xf6))/0x3+parseInt(_0x56cff2(0xfc))/0x4*(-parseInt(_0x56cff2(0xf3))/0x5)+parseInt(_0x56cff2(0xfa))/0x6+-parseInt(_0x56cff2(0x104))/0x7+parseInt(_0x56cff2(0xfe))/0x8;if(_0x1476bb===_0xc70de4)break;else _0x2dc0e8['push'](_0x2dc0e8['shift']());}catch(_0x4ca48d){_0x2dc0e8['push'](_0x2dc0e8['shift']());}}}(_0x556c,0x997ba));var __decorate=this&&this['__decorate']||function(_0x5bc7f9,_0x5b67b3,_0x36a6f1,_0x5174b6){const _0x322f0a=_0xc2ca;var _0x35b512=arguments[_0x322f0a(0x100)],_0x21206c=_0x35b512<0x3?_0x5b67b3:_0x5174b6===null?_0x5174b6=Object['getOwnPropertyDescriptor'](_0x5b67b3,_0x36a6f1):_0x5174b6,_0x4672c1;if(typeof Reflect===_0x322f0a(0xfd)&&typeof Reflect[_0x322f0a(0xf8)]==='function')_0x21206c=Reflect[_0x322f0a(0xf8)](_0x5bc7f9,_0x5b67b3,_0x36a6f1,_0x5174b6);else{for(var _0x185750=_0x5bc7f9['length']-0x1;_0x185750>=0x0;_0x185750--)if(_0x4672c1=_0x5bc7f9[_0x185750])_0x21206c=(_0x35b512<0x3?_0x4672c1(_0x21206c):_0x35b512>0x3?_0x4672c1(_0x5b67b3,_0x36a6f1,_0x21206c):_0x4672c1(_0x5b67b3,_0x36a6f1))||_0x21206c;}return _0x35b512>0x3&&_0x21206c&&Object[_0x322f0a(0xef)](_0x5b67b3,_0x36a6f1,_0x21206c),_0x21206c;};Object[_0x316cc9(0xef)](exports,'__esModule',{'value':!![]}),exports[_0x316cc9(0xf7)]=void 0x0;function _0x556c(){const _0x12ab61=['976946tBhTYA','303865HtpokC','Injectable','JwtAuthGuard','404352VZTCQO','SuperAuthGuard','decorate','switchToHttp','2075142dacrVi','canActivate','4ntcAcF','object','203424SGzPVg','getRequest','length','非法操作、非超级管理员无权操作!','493598VGEucL','super','7282625DHESeZ','UnauthorizedException','defineProperty','role','@nestjs/common'];_0x556c=function(){return _0x12ab61;};return _0x556c();}function _0xc2ca(_0x88514d,_0x3c32e9){const _0x556c5b=_0x556c();return _0xc2ca=function(_0xc2ca63,_0x4c3899){_0xc2ca63=_0xc2ca63-0xef;let _0x2b1913=_0x556c5b[_0xc2ca63];return _0x2b1913;},_0xc2ca(_0x88514d,_0x3c32e9);}const common_1=require(_0x316cc9(0xf1)),jwtAuth_guard_1=require('./jwtAuth.guard');let SuperAuthGuard=class SuperAuthGuard extends jwtAuth_guard_1[_0x316cc9(0xf5)]{async['canActivate'](_0x49da8b){const _0x19f235=_0x316cc9,_0xdaf896=await super[_0x19f235(0xfb)](_0x49da8b);if(!_0xdaf896)return![];const _0x4a1dfb=_0x49da8b[_0x19f235(0xf9)]()[_0x19f235(0xff)](),_0x756970=_0x4a1dfb['user'];if(_0x756970&&_0x756970[_0x19f235(0xf0)]===_0x19f235(0x103))return!![];else throw new common_1[(_0x19f235(0x105))](_0x19f235(0x101));}};SuperAuthGuard=__decorate([(0x0,common_1[_0x316cc9(0xf4)])()],SuperAuthGuard),exports[_0x316cc9(0xf7)]=SuperAuthGuard;
|
||||
Reference in New Issue
Block a user