Ver Fonte

no message

xingzai há 8 meses atrás
pai
commit
5d2928068c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      services/config.go

+ 2 - 1
services/config.go

@@ -5,6 +5,7 @@ import (
 	"fmt"
 	"hongze/hongze_clpt/models"
 	"hongze/hongze_clpt/utils"
+	"html"
 	"strconv"
 	"strings"
 	"time"
@@ -146,6 +147,6 @@ func GetConfigCodeDisclaimer() (configValue string) {
 		err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
 		return
 	}
-	configValue = cnf.ConfigValue
+	configValue = html.UnescapeString(cnf.ConfigValue)
 	return
 }