sync: soul-api 接口逻辑 | 原因: 后端接口逻辑修改
This commit is contained in:
@@ -266,7 +266,5 @@ func DBUserRFMSingle(c *gin.Context) {
|
|||||||
|
|
||||||
// parseInt 辅助函数
|
// parseInt 辅助函数
|
||||||
func parseInt(s string) (int, error) {
|
func parseInt(s string) (int, error) {
|
||||||
var n int
|
return strconv.Atoi(strings.TrimSpace(s))
|
||||||
_, err := fmt.Sscanf(s, "%d", &n)
|
|
||||||
return n, err
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user