Skip to content

Commit

Permalink
修复 mention 消息 json 错误; 修复更新用户信息参数错误; 发布 3.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringDRen committed Aug 20, 2021
1 parent 9a4b5e2 commit 581f5ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sdk/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ type MentionedInfo struct {
// MentionMsgContent MentionMsgContent
type MentionMsgContent struct {
Content string `json:"content"`
MentionedInfo MentionedInfo `json:"mentionedinfo"`
MentionedInfo MentionedInfo `json:"mentionedInfo"`
}

// History History
Expand Down
2 changes: 1 addition & 1 deletion sdk/rongcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const (
// ReqType body类型
ReqType = "json"
// USERAGENT sdk 名称
USERAGENT = "rc-go-sdk/3.2.4"
USERAGENT = "rc-go-sdk/3.2.5"
// DEFAULTTIMEOUT 默认超时时间,10秒
DEFAULTTIMEOUT = 10
// DEFAULT_KEEPALIVE http 默认保活时间,30秒
Expand Down
6 changes: 0 additions & 6 deletions sdk/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,6 @@ func (rc *RongCloud) UserUpdate(userID, name, portraitURI string) error {
if userID == "" {
return RCErrorNew(1002, "Paramer 'userID' is required")
}
if name == "" {
return RCErrorNew(1002, "Paramer 'name' is required")
}
if portraitURI == "" {
return RCErrorNew(1002, "Paramer 'portraitURI' is required")
}

req := httplib.Post(rc.rongCloudURI + "/user/refresh." + ReqType)
req.SetTimeout(time.Second*rc.timeout, time.Second*rc.timeout)
Expand Down

0 comments on commit 581f5ab

Please sign in to comment.