langren

微信调用扫码接口设置阻止跳转 为什么有的时候还是会默认跳转

  •  1
     
  •   langren · Aug 11, 2016 · 3914 views
    This topic created in 3587 days ago, the information mentioned may be changed or developed.

    V 友们有没有遇到过类似的问题?

    wx.scanQRCode({
            	needResult: 1, // 默认为 0 ,扫描结果由微信处理, 1 则直接返回扫描结果,
            	scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
            	success: function (res) {
            		//成功后执行的操作
            	}
           	});
    

    大概扫 20 次会出现一次不能阻止跳转的情况,通常是出现两声扫描的音效。怀疑是扫描了两次

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:31 · PVG 02:31 · LAX 11:31 · JFK 14:31
    ♥ Do have faith in what you're doing.