agollo icon indicating copy to clipboard operation
agollo copied to clipboard

[BUG] GetBoolValue error

Open leoyox opened this issue 3 years ago • 1 comments

请简单描述bug的场景 properties中配置了bool、int值,客户端调用GetBoolValue、GetIntValue来取,结果总是得到默认值

期望 期望GetBoolValue返回对应的bool值

截图 如有

Agollo 版本 :

  • Version 4

leoyox avatar Aug 08 '22 06:08 leoyox

我也碰到了这个问题. 原因是在 repository.go 中 GetIntValue 里 getConfigValue返回的interface{}是string类型的.没法直接通过.(int)转换回来. 要尝试parseInt之类的方法

JhouXerox avatar Aug 11 '22 02:08 JhouXerox

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 10 '22 21:10 stale[bot]