wangchuanjin 3 years ago
parent
commit
2d834f0ffd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mongodb/mongodb.go

+ 2 - 2
src/mongodb/mongodb.go

@@ -793,7 +793,7 @@ func ToObjectIds(ids []string) []primitive.ObjectID {
 
 //自动添加更新时间
 func autoUpdateTime(db, coll string, ue *bson.M) {
-	if db == "qfw" && coll == "user" {
+	if coll == "user" {
 		set := ObjToM((*ue)["$set"])
 		if *set == nil {
 			set = &bson.M{}
@@ -809,4 +809,4 @@ func IsObjectIdHex(hex string) bool {
 		return false
 	}
 	return true
-}
+}