|
@@ -251,9 +251,10 @@ func hookfn(line []byte) {
|
|
} else {
|
|
} else {
|
|
tmp["_id"] = util.IntAll(tmp["id"])
|
|
tmp["_id"] = util.IntAll(tmp["id"])
|
|
tmp["id"] = fmt.Sprintf("%d", util.IntAll(tmp["id"]))
|
|
tmp["id"] = fmt.Sprintf("%d", util.IntAll(tmp["id"]))
|
|
- if CurrentColl == "company_change" {
|
|
|
|
- tmp["jy_updatetime"] = jyUpdatetime
|
|
|
|
- }
|
|
|
|
|
|
+ tmp["jy_updatetime"] = time.Now().Unix()
|
|
|
|
+ //if CurrentColl == "company_change" {
|
|
|
|
+ // tmp["jy_updatetime"] = jyUpdatetime
|
|
|
|
+ //}
|
|
|
|
|
|
saveInfo := []map[string]interface{}{map[string]interface{}{"_id": tmp["_id"]}, map[string]interface{}{"$set": tmp}}
|
|
saveInfo := []map[string]interface{}{map[string]interface{}{"_id": tmp["_id"]}, map[string]interface{}{"$set": tmp}}
|
|
tmpArr := [][]map[string]interface{}{saveInfo}
|
|
tmpArr := [][]map[string]interface{}{saveInfo}
|