Ejemplo n.º 1
0
func (logic *PlateResultLogic) transferPlateInfoToPlateCacheStruct(pinfo *PlateNumberInfo, pcache *PlateCacheTemp) {
	pcache.Last_plate_No = pinfo.PlateNo
	pcache.Using_plate_No = pinfo.PlateNo
	pcache.Using_plate_province = strconv.Itoa(pinfo.ProvinceCode)
	pcache.Using_plate_city = pinfo.CityCode
	pcache.Like_count = "0"
	pcache.Updatetime = nfutil.GetNowString()
}
Ejemplo n.º 2
0
func (logic *PlateResultLogic) clearPlateCacheTempStruct(pcache *PlateCacheTemp) (ret *PlateCacheTemp) {
	pcache.Last_plate_No = ""
	pcache.Last_plate_img = ""
	pcache.Using_plate_No = ""
	pcache.Using_plate_province = ""
	pcache.Using_plate_city = ""
	pcache.Using_plate_img = ""
	pcache.Crop_img = ""
	pcache.Like_count = "0"
	pcache.Updatetime = nfutil.GetNowString()
	return pcache
}
Ejemplo n.º 3
0
// 更新时间
func (logic *PlateResultLogic) updateCacheTime(serial string, bid int, nid int, c *PlateCacheTemp) {
	c.Updatetime = nfutil.GetNowString()
	addOrUpdatePlateTempCache(serial, bid, nid, c)
}