ziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
5fc318ba65
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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