Skip to content

Commit 680b020

Browse files
committed
docs: 修订文档和注释
1 parent 3654e0b commit 680b020

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ wecombot 是[企业微信群机器人](https://developer.work.weixin.qq.com/docu
77

88
## 安装
99
```sehll
10-
$ go get -u -v github.com/voidint/wecombot@latest
10+
$ go get github.com/voidint/wecombot@latest
1111
```
1212

1313

@@ -157,7 +157,7 @@ func main() {
157157
msg.TemplateCard.MainTitle.Desc = takePointer("您的好友正在邀请您加入企业微信")
158158
msg.TemplateCard.CardAction.Type = 1
159159
msg.TemplateCard.CardAction.URL = takePointer("https://work.weixin.qq.com/?from=openApi")
160-
// 参数较多,详见文档。
160+
// 参数较多,详见文档。
161161

162162
wecombot.NewBot("YOUR_KEY").SendTextNoticeTemplateCardMessage(&msg)
163163
}

template_card.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ type Jump struct {
132132
type CardAction struct {
133133
// Type 卡片跳转类型,1 代表跳转url,2 代表打开小程序。
134134
Type uint8 `json:"type"`
135-
// URL 跳转事件的url,card_action.type是1时必填。
135+
// URL 跳转事件的url,type是1时必填。
136136
URL *string `json:"url"`
137-
// AppID 跳转事件的小程序的appid,card_action.type是2时必填。
137+
// AppID 跳转事件的小程序的appid,type是2时必填。
138138
AppID *string `json:"appid"`
139139
// PagePath 跳转事件的小程序的pagepath,type是2时选填。
140140
PagePath *string `json:"pagepath"`

0 commit comments

Comments
 (0)