maxiaoshan 3 年之前
父节点
当前提交
e25e8cbfad
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/front/front.go

+ 2 - 1
src/front/front.go

@@ -878,7 +878,8 @@ func (f *Front) UpdateESP() {
 	} else if w == "platform" {
 		set["platform"] = val
 		if val != "golua平台" { //由lua平台切换到其他平台,删除爬虫spider_heart心跳
-			mgu.Update("spider_heart", "spider", "spider", map[string]interface{}{"code": code}, map[string]interface{}{"$set": map[string]interface{}{"del": true}}, false, true)
+			b := mgu.Update("spider_heart", "spider", "spider", map[string]interface{}{"code": code}, map[string]interface{}{"$set": map[string]interface{}{"del": true}}, false, true)
+			qu.Debug("Del Heart:", b)
 		}
 	} else { //修改节点
 		event, _ := strconv.Atoi(val)