diff --git a/app/svc/advertising/svc_list.go b/app/svc/advertising/svc_list.go index 1225c1a..270305b 100644 --- a/app/svc/advertising/svc_list.go +++ b/app/svc/advertising/svc_list.go @@ -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, " ", "")