feat(安全): 实现反欺诈检测和强制打卡功能
- 添加反欺诈服务,定期检查设备上的黑名单应用 - 检测到黑名单应用时自动强制用户打卡下班 - 在登录后启动反欺诈检查,每5分钟执行一次 - 更新后端API支持强制打卡事件 - 调整Android最低SDK版本至24 - 添加全局事件监听处理强制打卡事件
This commit is contained in:
@@ -64,6 +64,7 @@ import { useI18n } from 'vue-i18n'
|
||||
import { ArrowRightOnRectangleIcon } from '@heroicons/vue/24/outline'
|
||||
import { authService } from '@/services/authService.js'
|
||||
import { nativeServicesManager } from '@/services/nativeServicesManager.js'
|
||||
import { antiSpoofingService } from '@/services/antiSpoofingService.js'
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
@@ -103,6 +104,8 @@ const handleLogin = async () => {
|
||||
try {
|
||||
await nativeServicesManager.onUserLogin()
|
||||
console.log('✅ NATIVE SERVICES STARTED')
|
||||
// Start anti-spoofing checks after native services are ready
|
||||
antiSpoofingService.startSecurityChecks();
|
||||
} catch (serviceError) {
|
||||
console.error('❌ NATIVE SERVICES FAILED:', serviceError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user