mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-11-15 05:33:45 +08:00
一些小优化
This commit is contained in:
@@ -1 +1 @@
|
||||
'use strict';const _0x3ae73f=_0x257e;(function(_0x1db9ef,_0x40fa64){const _0x5b30b2=_0x257e,_0x4903c6=_0x1db9ef();while(!![]){try{const _0x1ec4d9=parseInt(_0x5b30b2(0x104))/0x1*(parseInt(_0x5b30b2(0xf9))/0x2)+-parseInt(_0x5b30b2(0x109))/0x3*(parseInt(_0x5b30b2(0x10c))/0x4)+parseInt(_0x5b30b2(0xf6))/0x5+parseInt(_0x5b30b2(0xf5))/0x6+-parseInt(_0x5b30b2(0xff))/0x7*(parseInt(_0x5b30b2(0xf7))/0x8)+parseInt(_0x5b30b2(0xf3))/0x9+parseInt(_0x5b30b2(0xfa))/0xa;if(_0x1ec4d9===_0x40fa64)break;else _0x4903c6['push'](_0x4903c6['shift']());}catch(_0x160643){_0x4903c6['push'](_0x4903c6['shift']());}}}(_0x5de2,0x9b3c3));var __decorate=this&&this[_0x3ae73f(0x100)]||function(_0x208e41,_0x37284f,_0x1bfe4a,_0x18b1ec){const _0x2d912a=_0x3ae73f;var _0x27eb58=arguments[_0x2d912a(0xfb)],_0x2be8c3=_0x27eb58<0x3?_0x37284f:_0x18b1ec===null?_0x18b1ec=Object[_0x2d912a(0xf2)](_0x37284f,_0x1bfe4a):_0x18b1ec,_0x2beef8;if(typeof Reflect==='object'&&typeof Reflect[_0x2d912a(0x103)]===_0x2d912a(0x10d))_0x2be8c3=Reflect[_0x2d912a(0x103)](_0x208e41,_0x37284f,_0x1bfe4a,_0x18b1ec);else{for(var _0x28320b=_0x208e41[_0x2d912a(0xfb)]-0x1;_0x28320b>=0x0;_0x28320b--)if(_0x2beef8=_0x208e41[_0x28320b])_0x2be8c3=(_0x27eb58<0x3?_0x2beef8(_0x2be8c3):_0x27eb58>0x3?_0x2beef8(_0x37284f,_0x1bfe4a,_0x2be8c3):_0x2beef8(_0x37284f,_0x1bfe4a))||_0x2be8c3;}return _0x27eb58>0x3&&_0x2be8c3&&Object['defineProperty'](_0x37284f,_0x1bfe4a,_0x2be8c3),_0x2be8c3;};Object[_0x3ae73f(0x10a)](exports,_0x3ae73f(0xfe),{'value':!![]}),exports['AdminAuthGuard']=void 0x0;const common_1=require('@nestjs/common'),jwtAuth_guard_1=require(_0x3ae73f(0x105));function _0x257e(_0x207d8d,_0x1a719b){const _0x5de2bf=_0x5de2();return _0x257e=function(_0x257e14,_0x4e1083){_0x257e14=_0x257e14-0xf1;let _0x524d61=_0x5de2bf[_0x257e14];return _0x524d61;},_0x257e(_0x207d8d,_0x1a719b);}let AdminAuthGuard=class AdminAuthGuard extends jwtAuth_guard_1[_0x3ae73f(0xf8)]{async[_0x3ae73f(0x101)](_0x3052ca){const _0x17e986=_0x3ae73f,_0x246e6b=await super['canActivate'](_0x3052ca);if(!_0x246e6b)return![];const _0x43e924=_0x3052ca[_0x17e986(0xfc)]()[_0x17e986(0xf1)](),_0x4c440e=_0x43e924['user'];if(_0x4c440e&&[_0x17e986(0x108),'super'][_0x17e986(0x102)](_0x4c440e[_0x17e986(0xfd)]))return!![];else throw new common_1[(_0x17e986(0x10b))](_0x17e986(0x106));}};function _0x5de2(){const _0x40f72c=['63106eoWiah','8246380WbnGMk','length','switchToHttp','role','__esModule','3102995zXYcXF','__decorate','canActivate','includes','decorate','14zsDPOG','./jwtAuth.guard','非法操作、您的权限等级不足、无法执行当前请求!','AdminAuthGuard','admin','182955inBhHd','defineProperty','UnauthorizedException','56iPBPGX','function','getRequest','getOwnPropertyDescriptor','4813389VWnRVR','Injectable','721776goOkXl','57105qDYrio','8paMfFU','JwtAuthGuard'];_0x5de2=function(){return _0x40f72c;};return _0x5de2();}AdminAuthGuard=__decorate([(0x0,common_1[_0x3ae73f(0xf4)])()],AdminAuthGuard),exports[_0x3ae73f(0x107)]=AdminAuthGuard;
|
||||
'use strict';const _0x469eff=_0x30a6;(function(_0x35a55a,_0x4f4b36){const _0x22087d=_0x30a6,_0x4f0434=_0x35a55a();while(!![]){try{const _0x2beff9=-parseInt(_0x22087d(0xdd))/0x1+parseInt(_0x22087d(0xdc))/0x2*(-parseInt(_0x22087d(0xe0))/0x3)+parseInt(_0x22087d(0xe3))/0x4*(parseInt(_0x22087d(0xe5))/0x5)+-parseInt(_0x22087d(0xe8))/0x6*(-parseInt(_0x22087d(0xf2))/0x7)+parseInt(_0x22087d(0xed))/0x8+parseInt(_0x22087d(0xeb))/0x9+parseInt(_0x22087d(0xea))/0xa;if(_0x2beff9===_0x4f4b36)break;else _0x4f0434['push'](_0x4f0434['shift']());}catch(_0x1aae6c){_0x4f0434['push'](_0x4f0434['shift']());}}}(_0x1d4f,0xb0a69));var __decorate=this&&this[_0x469eff(0xf0)]||function(_0x1a2991,_0x2c2632,_0x418f4f,_0x208e58){const _0x441871=_0x469eff;var _0x268690=arguments['length'],_0x1119c5=_0x268690<0x3?_0x2c2632:_0x208e58===null?_0x208e58=Object[_0x441871(0xe4)](_0x2c2632,_0x418f4f):_0x208e58,_0x16a6ff;if(typeof Reflect===_0x441871(0xee)&&typeof Reflect['decorate']==='function')_0x1119c5=Reflect[_0x441871(0xe1)](_0x1a2991,_0x2c2632,_0x418f4f,_0x208e58);else{for(var _0x4429d0=_0x1a2991[_0x441871(0xda)]-0x1;_0x4429d0>=0x0;_0x4429d0--)if(_0x16a6ff=_0x1a2991[_0x4429d0])_0x1119c5=(_0x268690<0x3?_0x16a6ff(_0x1119c5):_0x268690>0x3?_0x16a6ff(_0x2c2632,_0x418f4f,_0x1119c5):_0x16a6ff(_0x2c2632,_0x418f4f))||_0x1119c5;}return _0x268690>0x3&&_0x1119c5&&Object[_0x441871(0xe2)](_0x2c2632,_0x418f4f,_0x1119c5),_0x1119c5;};Object['defineProperty'](exports,_0x469eff(0xe9),{'value':!![]}),exports[_0x469eff(0xd7)]=void 0x0;function _0x1d4f(){const _0x556b2f=['canActivate','length','admin','1754462mpQHkm','1397185YoPCVG','UnauthorizedException','super','3nGcDid','decorate','defineProperty','60848zcEcag','getOwnPropertyDescriptor','230mzZKwX','switchToHttp','非法操作、您的权限等级不足、无法执行当前请求!','26538klzWJS','__esModule','12321950SuUTHz','1102977hfWhaz','role','3549424WjmMok','object','includes','__decorate','getRequest','791ckbIyO','AdminAuthGuard','./jwtAuth.guard'];_0x1d4f=function(){return _0x556b2f;};return _0x1d4f();}function _0x30a6(_0x4dc177,_0x386642){const _0x1d4fc7=_0x1d4f();return _0x30a6=function(_0x30a682,_0x2df7df){_0x30a682=_0x30a682-0xd7;let _0x2454fe=_0x1d4fc7[_0x30a682];return _0x2454fe;},_0x30a6(_0x4dc177,_0x386642);}const common_1=require('@nestjs/common'),jwtAuth_guard_1=require(_0x469eff(0xd8));let AdminAuthGuard=class AdminAuthGuard extends jwtAuth_guard_1['JwtAuthGuard']{async[_0x469eff(0xd9)](_0x8b311a){const _0xb30160=_0x469eff,_0x5f5256=await super[_0xb30160(0xd9)](_0x8b311a);if(!_0x5f5256)return![];const _0x561a4d=_0x8b311a[_0xb30160(0xe6)]()[_0xb30160(0xf1)](),_0x530cad=_0x561a4d['user'];if(_0x530cad&&[_0xb30160(0xdb),_0xb30160(0xdf)][_0xb30160(0xef)](_0x530cad[_0xb30160(0xec)]))return!![];else throw new common_1[(_0xb30160(0xde))](_0xb30160(0xe7));}};AdminAuthGuard=__decorate([(0x0,common_1['Injectable'])()],AdminAuthGuard),exports[_0x469eff(0xd7)]=AdminAuthGuard;
|
||||
@@ -1 +1 @@
|
||||
'use strict';var _0x23a630=_0x5a97;(function(_0x4d3ac4,_0x4788b7){var _0x8e9e61=_0x5a97,_0x14157d=_0x4d3ac4();while(!![]){try{var _0x31ae66=parseInt(_0x8e9e61(0x1dc))/0x1*(parseInt(_0x8e9e61(0x1d9))/0x2)+-parseInt(_0x8e9e61(0x1c6))/0x3+parseInt(_0x8e9e61(0x1cf))/0x4+-parseInt(_0x8e9e61(0x1d4))/0x5*(-parseInt(_0x8e9e61(0x1db))/0x6)+-parseInt(_0x8e9e61(0x1d7))/0x7*(-parseInt(_0x8e9e61(0x1d2))/0x8)+parseInt(_0x8e9e61(0x1c0))/0x9+parseInt(_0x8e9e61(0x1c5))/0xa*(-parseInt(_0x8e9e61(0x1be))/0xb);if(_0x31ae66===_0x4788b7)break;else _0x14157d['push'](_0x14157d['shift']());}catch(_0x13faf5){_0x14157d['push'](_0x14157d['shift']());}}}(_0x5c8b,0xdd0e4));var __decorate=this&&this['__decorate']||function(_0x54d8fa,_0x1ae15d,_0x2d21d5,_0x1ebaae){var _0x1128a7=_0x5a97,_0x5901e0=arguments['length'],_0x17a822=_0x5901e0<0x3?_0x1ae15d:_0x1ebaae===null?_0x1ebaae=Object[_0x1128a7(0x1bc)](_0x1ae15d,_0x2d21d5):_0x1ebaae,_0x5a658f;if(typeof Reflect===_0x1128a7(0x1c8)&&typeof Reflect[_0x1128a7(0x1c9)]==='function')_0x17a822=Reflect[_0x1128a7(0x1c9)](_0x54d8fa,_0x1ae15d,_0x2d21d5,_0x1ebaae);else{for(var _0xd2fb0c=_0x54d8fa['length']-0x1;_0xd2fb0c>=0x0;_0xd2fb0c--)if(_0x5a658f=_0x54d8fa[_0xd2fb0c])_0x17a822=(_0x5901e0<0x3?_0x5a658f(_0x17a822):_0x5901e0>0x3?_0x5a658f(_0x1ae15d,_0x2d21d5,_0x17a822):_0x5a658f(_0x1ae15d,_0x2d21d5))||_0x17a822;}return _0x5901e0>0x3&&_0x17a822&&Object['defineProperty'](_0x1ae15d,_0x2d21d5,_0x17a822),_0x17a822;},__metadata=this&&this[_0x23a630(0x1bf)]||function(_0x5545a5,_0x2757cc){var _0x1070d5=_0x23a630;if(typeof Reflect===_0x1070d5(0x1c8)&&typeof Reflect[_0x1070d5(0x1d6)]==='function')return Reflect[_0x1070d5(0x1d6)](_0x5545a5,_0x2757cc);};Object[_0x23a630(0x1bd)](exports,_0x23a630(0x1cb),{'value':!![]}),exports['JwtStrategy']=void 0x0;function _0x5c8b(){var _0xac2354=['decorate','get','__esModule','design:paramtypes','Strategy','secret','1417256wSfZQx','validate','passport-jwt','24gznDeI','Injectable','10xgjBDv','jwt','metadata','3586345HkVXqB','@nestjs/passport','42ybUgUy','PassportStrategy','2147220kknQOj','79528kwpQHd','getOwnPropertyDescriptor','defineProperty','35984971nvxqdS','__metadata','9194301lKMbyt','@nestjs/common','fromAuthHeaderAsBearerToken','configService','ConfigService','10qEOwhM','3365793vyBLpj','ExtractJwt','object'];_0x5c8b=function(){return _0xac2354;};return _0x5c8b();}function _0x5a97(_0x11b171,_0x1a0a10){var _0x5c8bac=_0x5c8b();return _0x5a97=function(_0x5a9788,_0xafd3e7){_0x5a9788=_0x5a9788-0x1bc;var _0x106200=_0x5c8bac[_0x5a9788];return _0x106200;},_0x5a97(_0x11b171,_0x1a0a10);}const nestjs_config_1=require('nestjs-config'),passport_jwt_1=require(_0x23a630(0x1d1)),passport_1=require(_0x23a630(0x1d8)),common_1=require(_0x23a630(0x1c1));let JwtStrategy=class JwtStrategy extends(0x0,passport_1[_0x23a630(0x1da)])(passport_jwt_1[_0x23a630(0x1cd)]){constructor(_0x180202){var _0x434dcb=_0x23a630;super({'jwtFromRequest':passport_jwt_1[_0x434dcb(0x1c7)][_0x434dcb(0x1c2)](),'secretOrKey':_0x180202[_0x434dcb(0x1ca)](_0x434dcb(0x1d5))[_0x434dcb(0x1ce)]}),this[_0x434dcb(0x1c3)]=_0x180202;}async[_0x23a630(0x1d0)](_0x3e6834){return _0x3e6834;}};JwtStrategy=__decorate([(0x0,common_1[_0x23a630(0x1d3)])(),__metadata(_0x23a630(0x1cc),[nestjs_config_1[_0x23a630(0x1c4)]])],JwtStrategy),exports['JwtStrategy']=JwtStrategy;
|
||||
'use strict';function _0x16c2(_0x31e8e7,_0x3adf83){var _0x5a0c36=_0x5a0c();return _0x16c2=function(_0x16c20b,_0xd6600f){_0x16c20b=_0x16c20b-0xa2;var _0x1adc19=_0x5a0c36[_0x16c20b];return _0x1adc19;},_0x16c2(_0x31e8e7,_0x3adf83);}var _0x3690fe=_0x16c2;(function(_0x2d6e04,_0x2c03b0){var _0xefabef=_0x16c2,_0xea1205=_0x2d6e04();while(!![]){try{var _0x43ff2d=parseInt(_0xefabef(0xb6))/0x1+-parseInt(_0xefabef(0xa6))/0x2*(parseInt(_0xefabef(0xac))/0x3)+parseInt(_0xefabef(0xa7))/0x4*(parseInt(_0xefabef(0xba))/0x5)+parseInt(_0xefabef(0xb4))/0x6+-parseInt(_0xefabef(0xae))/0x7*(-parseInt(_0xefabef(0xb5))/0x8)+parseInt(_0xefabef(0xa2))/0x9*(-parseInt(_0xefabef(0xc0))/0xa)+-parseInt(_0xefabef(0xb7))/0xb;if(_0x43ff2d===_0x2c03b0)break;else _0xea1205['push'](_0xea1205['shift']());}catch(_0x1943f4){_0xea1205['push'](_0xea1205['shift']());}}}(_0x5a0c,0x5c79c));var __decorate=this&&this[_0x3690fe(0xbb)]||function(_0x332dae,_0xb65dd0,_0xcea6ed,_0x2a23d8){var _0x31241e=_0x3690fe,_0x31a506=arguments[_0x31241e(0xbd)],_0x4253dd=_0x31a506<0x3?_0xb65dd0:_0x2a23d8===null?_0x2a23d8=Object[_0x31241e(0xb3)](_0xb65dd0,_0xcea6ed):_0x2a23d8,_0x42ebe4;if(typeof Reflect===_0x31241e(0xa9)&&typeof Reflect[_0x31241e(0xb9)]===_0x31241e(0xa8))_0x4253dd=Reflect[_0x31241e(0xb9)](_0x332dae,_0xb65dd0,_0xcea6ed,_0x2a23d8);else{for(var _0x33e7e8=_0x332dae[_0x31241e(0xbd)]-0x1;_0x33e7e8>=0x0;_0x33e7e8--)if(_0x42ebe4=_0x332dae[_0x33e7e8])_0x4253dd=(_0x31a506<0x3?_0x42ebe4(_0x4253dd):_0x31a506>0x3?_0x42ebe4(_0xb65dd0,_0xcea6ed,_0x4253dd):_0x42ebe4(_0xb65dd0,_0xcea6ed))||_0x4253dd;}return _0x31a506>0x3&&_0x4253dd&&Object[_0x31241e(0xc2)](_0xb65dd0,_0xcea6ed,_0x4253dd),_0x4253dd;},__metadata=this&&this[_0x3690fe(0xa3)]||function(_0x3ac332,_0x138a50){var _0x450208=_0x3690fe;if(typeof Reflect===_0x450208(0xa9)&&typeof Reflect[_0x450208(0xc3)]===_0x450208(0xa8))return Reflect[_0x450208(0xc3)](_0x3ac332,_0x138a50);};Object[_0x3690fe(0xc2)](exports,_0x3690fe(0xa4),{'value':!![]}),exports[_0x3690fe(0xb1)]=void 0x0;const nestjs_config_1=require('nestjs-config'),passport_jwt_1=require(_0x3690fe(0xa5)),passport_1=require(_0x3690fe(0xb0)),common_1=require('@nestjs/common');function _0x5a0c(){var _0x538b5e=['__metadata','__esModule','passport-jwt','4EKRWxt','9844IPNnRj','function','object','ConfigService','jwt','407178qCiwwh','Injectable','609iuQIan','ExtractJwt','@nestjs/passport','JwtStrategy','design:paramtypes','getOwnPropertyDescriptor','320490TqUAPU','25960IavTqJ','465817ZJCiWq','3996729asjQVQ','validate','decorate','525YswbVO','__decorate','configService','length','get','secret','10HOcNqC','fromAuthHeaderAsBearerToken','defineProperty','metadata','417429iFXWcz'];_0x5a0c=function(){return _0x538b5e;};return _0x5a0c();}let JwtStrategy=class JwtStrategy extends(0x0,passport_1['PassportStrategy'])(passport_jwt_1['Strategy']){constructor(_0x34feb4){var _0x3af542=_0x3690fe;super({'jwtFromRequest':passport_jwt_1[_0x3af542(0xaf)][_0x3af542(0xc1)](),'secretOrKey':_0x34feb4[_0x3af542(0xbe)](_0x3af542(0xab))[_0x3af542(0xbf)]}),this[_0x3af542(0xbc)]=_0x34feb4;}async[_0x3690fe(0xb8)](_0x2e4701){return _0x2e4701;}};JwtStrategy=__decorate([(0x0,common_1[_0x3690fe(0xad)])(),__metadata(_0x3690fe(0xb2),[nestjs_config_1[_0x3690fe(0xaa)]])],JwtStrategy),exports[_0x3690fe(0xb1)]=JwtStrategy;
|
||||
File diff suppressed because one or more lines are too long
@@ -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