del 删除注释
This commit is contained in:
		
							parent
							
								
									55d45c0b1e
								
							
						
					
					
						commit
						85825c67a1
					
				@ -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
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    // })
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user