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

[doc] 希望文档做相应变更 #103

Closed
ronething-bot opened this issue Jun 8, 2022 · 3 comments
Closed

[doc] 希望文档做相应变更 #103

ronething-bot opened this issue Jun 8, 2022 · 3 comments

Comments

@ronething-bot
Copy link

昨天直接使用官方文档 demo 直接 panic,改成 v2 版本才解决。

import "github.com/ArtisanCloud/PowerWeChat/src/work/message/request" // 需要改为 v2 版本

messages := &request.RequestMessageSendText{
  RequestMessageSend: request.RequestMessageSend{
    ToUser:                 "UserID1|UserID2|UserID3",
    ToParty:                "PartyID1|PartyID2",
    ToTag:                  "TagID1 | TagID2",
    MsgType:                "text",
    AgentID:                1,
    Safe:                   0,
    EnableIDTrans:          0,
    EnableDuplicateCheck:   0,
    DuplicateCheckInterval: 1800,
  },
  Text: &request.RequestText{
    Content: "你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看<a href=\"http://work.weixin.qq.com\">邮件中心视频实况</a>,聪明避开排队。",
  },
}
WeComApp.Message.SendText(messages)

https://powerwechat.artisan-cloud.com/zh/wecom/message.html#%E5%8F%91%E9%80%81%E5%BA%94%E7%94%A8%E6%B6%88%E6%81%AF

@Matrix-X
Copy link
Contributor

Matrix-X commented Jun 8, 2022

感谢你发现的问题,我们会尽快修复文档

@WalleV
Copy link
Contributor

WalleV commented Jun 8, 2022

@ronething-bot 我们这边文档已经更新。

顺便企业微信下面的模块都增加了一个使用示例链接到PowerWeChatTutorial对应的文件,PowerWeChatTutorial里面的都是经过测试可以正常运行的,如果遇到引用方面的问题可以供参考。

https://powerwechat.artisan-cloud.com/zh/wecom/message.html#%E6%92%A4%E5%9B%9E%E5%BA%94%E7%94%A8%E6%B6%88%E6%81%AF

image

@ronething-bot
Copy link
Author

了解了,谢谢。

@Matrix-X Matrix-X pinned this issue Jun 8, 2022
@Matrix-X Matrix-X unpinned this issue May 19, 2023
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

3 participants