This commit is contained in:
tursom 2024-10-14 13:51:50 +08:00
parent f9015a5391
commit afa8551a03

View File

@ -61,7 +61,14 @@ async function sendImg(req, res) {
let requests = JSON.parse(body);
console.log(requests)
if (requests.img) {
console.log({
id: requests.id,
img: requests.img.length,
});
} else {
console.log(requests);
}
if (requests.url) {
img = await readUrlAsBuffer(requests.url)