|
@@ -105,9 +105,12 @@ func GetBannerUrlBody(url string) (itemResp *models.BannerUrlResp) {
|
|
|
}
|
|
|
|
|
|
func AddCygxBannerHistory(user *models.WxUserItem, bannerId int) (err error) {
|
|
|
+ if user.UserId == 0 {
|
|
|
+ return
|
|
|
+ }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg("产品内测用户浏览信息记录失败"+err.Error(), 2)
|
|
|
+ go utils.SendAlarmMsg("banner点击信息记录失败"+err.Error()+"bannerId"+strconv.Itoa(bannerId)+"userId:"+strconv.Itoa(user.UserId), 2)
|
|
|
}
|
|
|
}()
|
|
|
historyRecord := new(models.CygxBannerHistory)
|