Browse Source

优化图片导出

lifei6671 7 years ago
parent
commit
2169d401e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/BookResult.go

+ 1 - 1
models/BookResult.go

@@ -394,7 +394,7 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
 					}
 				}
 				if encodeString != "" {
-					src = "data:image/" + strings.TrimSuffix(filepath.Ext(src),".") + ";base64," + encodeString
+					src = "data:image/" + strings.TrimPrefix(filepath.Ext(src),".") + ";base64," + encodeString
 
 					contentSelection.SetAttr("src", src)
 				}