wangchuanjin 2 år sedan
förälder
incheckning
d10db22db0
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/jfw/front/websocket.go

+ 2 - 2
src/jfw/front/websocket.go

@@ -356,10 +356,10 @@ func GetBuoyMsg(conn *websocket.Conn) {
 		if err == nil && timeA.After(timeB) {
 			createtime = qutil.FormatDate(&timeA, qutil.Date_Full_Layout)
 		}
-		list := public.BaseMysql.SelectBySql(`select id,title,link,content,show_content,pc_tip from `+dbName+`.message where receive_userid=? and isdel=1 and appid=? and isRead=0 and createtime>? order by createtime desc limit ?`, userid, appid, createtime, limitCount)
+		list := public.BaseMysql.SelectBySql(`select id,title,link,content,show_content,pc_tip,isRead from `+dbName+`.message where receive_userid=? and isdel=1 and appid=? and createtime>? order by createtime desc limit ?`, userid, appid, createtime, limitCount)
 		if list != nil {
 			for _, v := range *list {
-				if qutil.IntAll(v["pc_tip"]) == 1 {
+				if qutil.IntAll(v["pc_tip"]) == 1 || qutil.IntAll(v["isRead"]) == 1 {
 					continue
 				}
 				id := qutil.Int64All(v["id"])