mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-26 13:16:39 +08:00
1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
'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; |