浏览代码

no message

xingzai 9 月之前
父节点
当前提交
ff439e819a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      services/product_interior.go

+ 3 - 0
services/product_interior.go

@@ -250,6 +250,9 @@ func GetCygxProductInteriorHistoryListPvMap(productInteriorIs []int) (mapPv map[
 
 // 用户产品内测阅读,模板消息推送
 func ProductInteriorHistoryUserRmind(user *models.WxUserItem, productInteriorId int) (err error) {
+	if user.UserId == 0 {
+		return
+	}
 	//30秒内阅读同一篇报告不做重复推送
 	key := "CYGX_" + utils.CYGX_OBJ_PRODUCTINTERIOR + "_READ" + strconv.Itoa(productInteriorId) + "_" + strconv.Itoa(user.UserId)
 	if utils.Rc.IsExist(key) {