From cdcd6c96d0f9dcd0cfa14efbd6002ceeb45de6bb Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 07 五月 2024 16:07:06 +0800 Subject: [PATCH] 打印比对结果 --- cache/cache.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/cache.go b/cache/cache.go index aee3708..0ff7be2 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -90,7 +90,7 @@ logger.Error(err) return } - logger.Debugf("鑾峰彇%d鏉′汉鍛樹俊鎭�", len(dbPersons)) + logger.Debugf(" eachNum:%d, 鑾峰彇%d鏉′汉鍛樹俊鎭�", queryEachNum, len(dbPersons)) CacheMap.Lock() areaId := "" @@ -130,7 +130,7 @@ logger.Error(err) return } - if info.AreaId != "" { + if info != nil && info.AreaId != "" { CacheMap.Lock() defer CacheMap.Unlock() if _, ok := CacheMap.Area[info.AreaId]; !ok { -- Gitblit v1.8.0