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

文档对 desp 参数描述不正确 #138

Open
4 tasks done
wzxjohn opened this issue Mar 23, 2024 · 0 comments
Open
4 tasks done

文档对 desp 参数描述不正确 #138

wzxjohn opened this issue Mar 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wzxjohn
Copy link

wzxjohn commented Mar 23, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
文档描述错误,desp 参数并不等同于 description,而是 content。实际 short 参数才是。
复现步骤

// controller/message.go:16
func keepCompatible(message *model.Message) {
	// Keep compatible with ServerChan: https://sct.ftqq.com/sendkey
	if message.Description == "" {
		message.Description = message.Short
	}
	if message.Content == "" {
		message.Content = message.Desp
	}
	if message.To == "" {
		message.To = message.OpenId
	}
}

预期结果
文档应与代码匹配。

@wzxjohn wzxjohn added the bug Something isn't working label Mar 23, 2024
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

1 participant