This commit is contained in:
2023-04-08 17:21:40 +08:00
parent 68ea4e0810
commit 7910df8f18
2 changed files with 14 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ func (m *MysqlConnection) GetImageContent(group string, id string) (content stri
err = m.db.QueryRow("SELECT image FROM web_article_attribute WHERE id=" + id).Scan(&content)
case "ad":
err = m.db.QueryRow("SELECT image FROM web_ad WHERE id=" + id).Scan(&content)
case "user":
case "avatar":
err = m.db.QueryRow("SELECT avatar FROM web_member WHERE id=" + id).Scan(&content)
case "image":
err = m.db.QueryRow("SELECT content FROM web_images WHERE id=" + id).Scan(&content)