From 9e0b95388e370d7a26999f7158f117d9ca0a615a Mon Sep 17 00:00:00 2001 From: zhyale Date: Thu, 9 Sep 2021 19:12:49 +0800 Subject: [PATCH 1/2] add check server time --- data/setting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/setting.go b/data/setting.go index 37735c5..0dcaab8 100644 --- a/data/setting.go +++ b/data/setting.go @@ -607,7 +607,8 @@ func RPCGetNodeSetting() *models.NodeShareSetting { if rpcObject.Object == nil { rpcObject.Object = &models.NodeShareSetting{ SyncInterval: time.Duration(120) * time.Second, - } + } + utils.DebugPrintln("RPCGetNodeSetting failed, please check the network and server time") } return rpcObject.Object } From 128cb092fa6fac60ab1fcaf6daa929b7b0c097f4 Mon Sep 17 00:00:00 2001 From: zhyale Date: Thu, 9 Sep 2021 19:13:03 +0800 Subject: [PATCH 2/2] add check server time --- data/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/setting.go b/data/setting.go index 0dcaab8..84a6db6 100644 --- a/data/setting.go +++ b/data/setting.go @@ -608,7 +608,7 @@ func RPCGetNodeSetting() *models.NodeShareSetting { rpcObject.Object = &models.NodeShareSetting{ SyncInterval: time.Duration(120) * time.Second, } - utils.DebugPrintln("RPCGetNodeSetting failed, please check the network and server time") + utils.DebugPrintln("RPCGetNodeSetting failed, please check config.json and server time") } return rpcObject.Object }