From 1ab3eb8bdaf82b485c5450e4a609d95ae9c329e1 Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Sat, 13 Jan 2018 14:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E6=9B=B4=E6=96=B0=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index 27842ac..0550d4e 100644 --- a/db.go +++ b/db.go @@ -111,8 +111,9 @@ func MergeQuestions(fs ...string) { //三方包的时间 q := DecodeQuestionCols(v) //数据库中的时间 - q.Update = max(FetchQuestionTime(string(k)), q.Update) - b.Put(k, q.GetData()) + if q.Update > FetchQuestionTime(string(k)) { + b.Put(k, q.GetData()) + } return nil }) }