This commit is contained in:
cdle
2021-09-17 19:46:01 +08:00
parent 57e032668a
commit 00884f198b
+4 -1
View File
@@ -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