|
@ -295,3 +295,13 @@ func TrimHtml(src string) string { |
|
|
src = re.ReplaceAllString(src, "\n") |
|
|
src = re.ReplaceAllString(src, "\n") |
|
|
return strings.TrimSpace(src) |
|
|
return strings.TrimSpace(src) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 腾讯云图片压缩 |
|
|
|
|
|
* @2021/11/19 |
|
|
|
|
|
* @linsen |
|
|
|
|
|
*/ |
|
|
|
|
|
func TencentCloudImageCompress(imgUrl,ratio string)string{ |
|
|
|
|
|
return imgUrl + "?imageMogr2/thumbnail/"+ ratio +"x/interlace/1" |
|
|
|
|
|
} |