scanner: Disable frame upload
This needs to go to a different domain name to avoid congestion.
This commit is contained in:
parent
689571b260
commit
4f6f97a784
@ -365,6 +365,7 @@ Page({
|
||||
}
|
||||
},
|
||||
handle_image_data_url(data_url) {
|
||||
return;
|
||||
const now = Date.now();
|
||||
const interval_ms = 2000;
|
||||
if (now - this.data.last_frame_upload_time < interval_ms) {
|
||||
@ -374,10 +375,11 @@ Page({
|
||||
last_frame_upload_time: now,
|
||||
frame_upload_seq_num: this.data.frame_upload_seq_num + 1,
|
||||
});
|
||||
var seq_num = this.data.frame_upload_seq_num.toString().padStart(3, '0');
|
||||
var fd = {
|
||||
session_id: getApp().globalData.session_id,
|
||||
phone_model: getApp().globalData.phone_model,
|
||||
seq_num: this.data.frame_upload_seq_num,
|
||||
seq_num: seq_num,
|
||||
image_data_url: data_url,
|
||||
}
|
||||
wx.request({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user