@@ -296,7 +296,7 @@ func push(fid, sname, userId string, res *[]map[string]interface{}) {
}
setMap["a_relationinfo"] = relationinfoTemp
} else { //追加
- (*updateMap)["$pushAll"] = bson.M{"a_relationinfo": pushArray}
+ (*updateMap)["$push"] = bson.M{"a_relationinfo": bson.M{"$each": pushArray}}
updateFlag = tools.MQFW.UpdateById(FOLLOW_COLLECTION, fid, updateMap)
@@ -394,7 +394,7 @@ func push(fid interface{}, sname, scode, title, userId string, res *[]map[string
updateFlag = tools.MQFW.Update(FOLLOW_COLLECTION, &bson.M{"_id": fid}, updateMap, false, false)