package main import ( qu "qfw/util" ) func getCheckDataPublishtime(tmp map[string]interface{},update_check *map[string]interface{}) { publishtime := qu.IntAll(tmp["publishtime"]) bidopentime := qu.IntAll(tmp["bidopentime"]) bidendtime := qu.IntAll(tmp["bidendtime"]) if (bidopentime > 0 || bidendtime > 0) && publishtime > 0 { //验证-是否超过周期16天 bid_time := 0 if bidopentime>0 { bid_time = bidopentime }else { bid_time = bidendtime } if bidendtime0 && bidopentime>0 { bid_time = bidendtime } if publishtime-bid_time>16*86400 && publishtime>0 && bid_time>0{ //需要修复-异常时间数据 (*update_check)["dataging"] = 1 (*update_check)["publishtime"] = bid_time (*update_check)["pt_modify"] = publishtime } } }