@@ -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
-}
+}