Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response 返回18位数字精度不准确 #4

Open
C3F opened this issue Mar 13, 2019 · 2 comments
Open

response 返回18位数字精度不准确 #4

C3F opened this issue Mar 13, 2019 · 2 comments

Comments

@C3F
Copy link

C3F commented Mar 13, 2019

问题重现:
image
message 字符串中返回的dynamic ID 与dynamic_id 字段类型为number的数据不一致

看了下postman请求的结果是正常的:
image
麻烦大佬确认下是不是number类型的数据精度有问题?蟹蟹

@xiuxiuing
Copy link

js 不支持long类型的数据类型,所以在转换过程中,精度丢失了。

@hellosean1025
Copy link
Member

转换为字符串吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants