scanner: Fix frame image_data_url

This commit is contained in:
Fam Zheng 2025-04-11 22:20:37 +08:00
parent 8ade734e87
commit a586f03376

View File

@ -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",