From 41daaa322efc78e9ad8459d63519c61f16c4156d Mon Sep 17 00:00:00 2001 From: deepzz0 Date: Thu, 19 Oct 2017 20:23:36 +0800 Subject: [PATCH] fix mod date panic --- db.go | 4 ++-- ping_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db.go b/db.go index e5ecacd..1f4ca56 100644 --- a/db.go +++ b/db.go @@ -213,7 +213,7 @@ func generateTopic() { Author: setting.Conf.Account.Username, Title: "关于", Slug: "about", - CreateTime: time.Now(), + CreateTime: time.Time{}, UpdateTime: time.Time{}, } blogroll := &Article{ @@ -221,7 +221,7 @@ func generateTopic() { Author: setting.Conf.Account.Username, Title: "友情链接", Slug: "blogroll", - CreateTime: time.Now(), + CreateTime: time.Time{}, UpdateTime: time.Time{}, } err := db.Insert(DB, COLLECTION_ARTICLE, blogroll) diff --git a/ping_test.go b/ping_test.go index 984896e..f4137eb 100644 --- a/ping_test.go +++ b/ping_test.go @@ -18,7 +18,7 @@ func TestPingRPC(t *testing.T) { } pr.Params.Param = [4]rpcValue{ rpcValue{Value: Ei.BTitle}, - rpcValue{Value: "https://" + setting.Conf.Mode.Domains[0]}, + rpcValue{Value: "https://" + setting.Conf.Mode.Domain}, rpcValue{Value: "https://deepzz.com/post/gdb-debug.html"}, rpcValue{Value: "https://deepzz.com/rss.html"}, }