del 删除注释
This commit is contained in:
@@ -20,7 +20,6 @@ function seep(time) {
|
|||||||
async function uploadImg(filePath) {
|
async function uploadImg(filePath) {
|
||||||
let data = createReadStream(filePath)
|
let data = createReadStream(filePath)
|
||||||
console.log(data)
|
console.log(data)
|
||||||
// readFile(filePath, function (err, data) {
|
|
||||||
try {
|
try {
|
||||||
let res = await post('https://image.zmpt.cc/upload/localhost', {
|
let res = await post('https://image.zmpt.cc/upload/localhost', {
|
||||||
file:data
|
file:data
|
||||||
@@ -36,9 +35,6 @@ async function uploadImg(filePath) {
|
|||||||
console.error(err)
|
console.error(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// })
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user