video 封面
This commit is contained in:
		@@ -32,6 +32,8 @@ func (m *MysqlConnection) Init() (err error) {
 | 
			
		||||
// 根据图片 id 获取图片的 content
 | 
			
		||||
func (m *MysqlConnection) GetImageContent(group string, id string) (content string, err error) {
 | 
			
		||||
	switch group {
 | 
			
		||||
	case "video":
 | 
			
		||||
		err = m.Database.QueryRow("SELECT image FROM web_sort_video WHERE id=" + id).Scan(&content)
 | 
			
		||||
	case "article":
 | 
			
		||||
		err = m.Database.QueryRow("SELECT image FROM web_article WHERE id=" + id).Scan(&content)
 | 
			
		||||
	case "article_attribute":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user