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

视频号小店接口获取售后单,请求数据格式异常bug问题的修复 #90

Closed
zupu8 opened this issue Mar 31, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@zupu8
Copy link

zupu8 commented Mar 31, 2023

KGX%N (RLP`T$M86OB 5URO
请求的数据类型错误,要将long的数据格式修改为string的数据格式即可;

原始的属性类型:
public long AftersaleOrderId { get; set; }
修改后的属性类型:
public string AftersaleOrderId { get; set; } = string.Empty;

修改完请求就正常了。

@zupu8 zupu8 added the bug Something isn't working label Mar 31, 2023
@fudiwei
Copy link
Owner

fudiwei commented Mar 31, 2023

我先确认一下这个字段实际是否是一个 int64、只是是字符串形式的吗?

我没有实际调用过视频号相关的接口,但我看它基本是照搬了小程序小商店的那套字段,在小商店里售后单号是数值类型的。

@zupu8
Copy link
Author

zupu8 commented Mar 31, 2023

我测试过了,如果类型是int64就是long类型的话,会报data format error,修改成string类型的话就能正常请求了。

@fudiwei
Copy link
Owner

fudiwei commented Mar 31, 2023

我的意思是是否实际是一个 int64.ToString()?没有其他字符构成吧?

@fudiwei
Copy link
Owner

fudiwei commented Apr 4, 2023

Fix this on release v2.26.1.

@fudiwei fudiwei closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants