diff --git a/routers/reverse.py b/routers/reverse.py index 2c04fec..8731141 100644 --- a/routers/reverse.py +++ b/routers/reverse.py @@ -42,7 +42,7 @@ async def rewrite_image(image_id: int): with pool.connection() as conn: with conn.cursor() as cursor: print('START', image_id, '重建向量') - cursor.execute(f"SELECT content FROM `web_images` WHERE id={image_id}") + cursor.execute(f"SELECT content,article_id FROM `web_images` WHERE id={image_id}") img = cursor.fetchone() if img is None: print('mysql中原始图片不存在:', image_id)