After Wechat's official account scans the QR code, some Android will flash the code flow. Should there be no problem? is there a solution?

  wx.ready(function() {
    wx.scanQRCode({
      desc: "scanQRCode desc",
      needResult: 1, // 01
      scanType: ["qrCode","barCode"], // 
      success: function (res) {
        httpService.post(httpServiceUrl.scanBundOrder, {
          user_id: window.wxUserData.user_id,
          package_num: res.resultStr,
          order_id: self.scannerOrderId
        }).then(res => {
          Toast("");
          // 
          setTimeout(() => {
            self.initData();
          }, 1000);
        }).catch(err => {
          Toast(err.msg || "")
        })
      },
      error: function(res){
        if(res.errMsg.indexOf("function_not_exist") > 0){
          alert("")
        }
      }
    });
  });
Mar.10,2021
Menu