Browse Source

fix visit list nil point

master
shenjiachi 3 days ago
parent
commit
19456506a0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/svc/advertising/svc_list.go

+ 3
- 1
app/svc/advertising/svc_list.go View File

@@ -67,7 +67,9 @@ func VisitList(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
uid = utils.Int64ToStr(user.Id)
if user != nil {
uid = utils.Int64ToStr(user.Id)
}
}
req.Platform = strings.ReplaceAll(req.Platform, " ", "")
req.Type = strings.ReplaceAll(req.Type, " ", "")


Loading…
Cancel
Save