V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
icandoallthings

小程序考试防作弊咋更好地优化?

  •  
  •   icandoallthings · Jan 5, 2024 · 1826 views
    This topic created in 848 days ago, the information mentioned may be changed or developed.
    公司开发的考试功能。
    一般来说,小程序切屏其他软件的话,可以通过小程序的 onHide 函数监听到。
    但是安卓手机有小窗模式,可以直接开小窗搜索答案。
    问下各位大佬,针对这种情况怎么处理?
    6 replies    2024-01-05 23:12:22 +08:00
    chiron688
        1
    chiron688  
       Jan 5, 2024
    你就是万恶的学习通的员工是吧!
    wvD98ys9PyO2xEdV
        2
    wvD98ys9PyO2xEdV  
       Jan 5, 2024
    如果我有两个手机呢
    BeforeTooLate
        3
    BeforeTooLate  
       Jan 5, 2024
    @ljt990218 物理 bug 无法修复
    28Sv0ngQfIE7Yloe
        4
    28Sv0ngQfIE7Yloe  
       Jan 5, 2024
    使用自有设备是杜绝不了作弊的。你看哪个正规考试的上机是允许上自己的机器的。。
    BeforeTooLate
        5
    BeforeTooLate  
       Jan 5, 2024
    @Morii 是的,如果是重要考试参考软考高项。肯定是机房+监考这种模式
    zhangk23
        6
    zhangk23  
       Jan 5, 2024
    没开发过小程序,但我思路是挂一个实时监听 window innerWidth 的监听器,一般情况下 innerWidth 是固定的,然后但凡有变化说明用户切出去或者打开了画中画,这时候写逻辑判断
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   828 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 19:43 · PVG 03:43 · LAX 12:43 · JFK 15:43
    ♥ Do have faith in what you're doing.