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

Update larkim.MessageText #96

Open
wants to merge 2 commits into
base: v3_main
Choose a base branch
from
Open

Conversation

Nomango
Copy link

@Nomango Nomango commented Mar 29, 2023

MessageText 直接用 strings.Builder 构造 json 内容,结果可能是无效的json内容,尤其是当 text 内容包含双引号、换行符、unicode的时候,必须用 \\\"\\\n 才可以。

所以 MessageText.Build() 也应该和其他类型一样,序列化为 json 并返回 (string, error),才更合理。

@CLAassistant
Copy link

CLAassistant commented Nov 3, 2023

CLA assistant check
All committers have signed the CLA.

@Nomango
Copy link
Author

Nomango commented Nov 6, 2023

Signed CLA.

service/im/v1/ext_model.go Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

3 participants