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] SMS 请求数据序列化错误未处理 #31

Open
shuqingzai opened this issue Aug 18, 2024 · 0 comments
Open

[BUG] SMS 请求数据序列化错误未处理 #31

shuqingzai opened this issue Aug 18, 2024 · 0 comments

Comments

@shuqingzai
Copy link

在序列化 req 参数时,未对错误进行处理

func (p *SMS) smsHandler(api string, req interface{}, resp interface{}) (int, error) {
reqJ, err := json.Marshal(req)
respBody, statusCode, err := p.Client.Json(api, nil, string(reqJ))

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

1 participant