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

建议不要强转json,判断下类型 #29

Open
qiweiyu opened this issue Dec 7, 2023 · 1 comment
Open

建议不要强转json,判断下类型 #29

qiweiyu opened this issue Dec 7, 2023 · 1 comment

Comments

@qiweiyu
Copy link

qiweiyu commented Dec 7, 2023

responseBytes, err := json.Marshal(response)

case:
B站的支付回调需要返回 success 字符串,而如果我在函数返回 success 字符串, 到最后出来的是 "success", 然后那边就过不去了

@Mr-Ao-Dragon
Copy link
Contributor

你可以直接返回json对应结构体

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

2 participants