scanner: Fix frame image_data_url
This commit is contained in:
parent
8ade734e87
commit
a586f03376
@ -122,7 +122,10 @@ Page({
|
||||
uploading: true,
|
||||
});
|
||||
const url = `https://themblem.com/api/v5/frame/${session_id}/${frame_id}`;
|
||||
const image_data_url = data_url_from_frame(res.width, res.height, res.data);
|
||||
var uca1 = new Uint8ClampedArray(res.data);
|
||||
var uca = new Uint8ClampedArray(uca1);
|
||||
|
||||
const image_data_url = data_url_from_frame(res.width, res.height, uca);
|
||||
wx.request({
|
||||
url,
|
||||
method: "POST",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user