From 00884f198b776c25e62aa3f8cb92ee0bd3e885b5 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 17 Sep 2021 19:46:01 +0800 Subject: [PATCH] update --- core/store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/store.go b/core/store.go index 58a69de..8aa454f 100644 --- a/core/store.go +++ b/core/store.go @@ -71,7 +71,10 @@ func (bucket Bucket) GetInt(key string, vs ...int) int { if b == nil { return nil } - value = Int(string(b.Get([]byte(key)))) + v := Int(string(b.Get([]byte(key)))) + if v != 0 { + value = v + } return nil }) return value