mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix mod date panic
This commit is contained in:
@@ -213,7 +213,7 @@ func generateTopic() {
|
|||||||
Author: setting.Conf.Account.Username,
|
Author: setting.Conf.Account.Username,
|
||||||
Title: "关于",
|
Title: "关于",
|
||||||
Slug: "about",
|
Slug: "about",
|
||||||
CreateTime: time.Now(),
|
CreateTime: time.Time{},
|
||||||
UpdateTime: time.Time{},
|
UpdateTime: time.Time{},
|
||||||
}
|
}
|
||||||
blogroll := &Article{
|
blogroll := &Article{
|
||||||
@@ -221,7 +221,7 @@ func generateTopic() {
|
|||||||
Author: setting.Conf.Account.Username,
|
Author: setting.Conf.Account.Username,
|
||||||
Title: "友情链接",
|
Title: "友情链接",
|
||||||
Slug: "blogroll",
|
Slug: "blogroll",
|
||||||
CreateTime: time.Now(),
|
CreateTime: time.Time{},
|
||||||
UpdateTime: time.Time{},
|
UpdateTime: time.Time{},
|
||||||
}
|
}
|
||||||
err := db.Insert(DB, COLLECTION_ARTICLE, blogroll)
|
err := db.Insert(DB, COLLECTION_ARTICLE, blogroll)
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ func TestPingRPC(t *testing.T) {
|
|||||||
}
|
}
|
||||||
pr.Params.Param = [4]rpcValue{
|
pr.Params.Param = [4]rpcValue{
|
||||||
rpcValue{Value: Ei.BTitle},
|
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/post/gdb-debug.html"},
|
||||||
rpcValue{Value: "https://deepzz.com/rss.html"},
|
rpcValue{Value: "https://deepzz.com/rss.html"},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user