ziwen 2 lat temu
rodzic
commit
5fc318ba65
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      controllers/advice.go

+ 2 - 0
controllers/advice.go

@@ -4,6 +4,7 @@ import (
 	"encoding/json"
 	"hongze/hongze_clpt/models"
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -57,6 +58,7 @@ func (this *AdviceController) ApplyApprove() {
 	for _, s := range req.AdviceImgUrl {
 		adviceImgUrl += "#"+s
 	}
+	adviceImgUrl = strings.TrimLeft(adviceImgUrl, "#")
 	item := new(models.CygxAdvice)
 	item.UserId = user.UserId
 	item.UserRealName = user.RealName