mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-11-15 13:43:46 +08:00
整合包
This commit is contained in:
1
YiAiQuickDeploy/dist/common/auth/adminAuth.guard.js
vendored
Normal file
1
YiAiQuickDeploy/dist/common/auth/adminAuth.guard.js
vendored
Normal file
@@ -0,0 +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;
|
||||
1
YiAiQuickDeploy/dist/common/auth/jwt.strategy.js
vendored
Normal file
1
YiAiQuickDeploy/dist/common/auth/jwt.strategy.js
vendored
Normal file
@@ -0,0 +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;
|
||||
1
YiAiQuickDeploy/dist/common/auth/jwtAuth.guard.js
vendored
Normal file
1
YiAiQuickDeploy/dist/common/auth/jwtAuth.guard.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
YiAiQuickDeploy/dist/common/auth/superAuth.guard.js
vendored
Normal file
1
YiAiQuickDeploy/dist/common/auth/superAuth.guard.js
vendored
Normal file
@@ -0,0 +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;
|
||||
Reference in New Issue
Block a user