瀏覽代碼

fix visit list nil point

master
shenjiachi 3 天之前
父節點
當前提交
19456506a0
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      app/svc/advertising/svc_list.go

+ 3
- 1
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, " ", "")


Loading…
取消
儲存