update
This commit is contained in:
parent
f9015a5391
commit
afa8551a03
9
chat.js
9
chat.js
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user