From 581f5ab13541c69ad2c118ef2cecc412c35122ca Mon Sep 17 00:00:00 2001 From: SpringDRen Date: Fri, 20 Aug 2021 15:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20mention=20=E6=B6=88?= =?UTF-8?q?=E6=81=AF=20json=20=E9=94=99=E8=AF=AF;=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=94=99=E8=AF=AF;=20=E5=8F=91=E5=B8=83=203.2.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/message.go | 2 +- sdk/rongcloud.go | 2 +- sdk/user.go | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sdk/message.go b/sdk/message.go index c98a02d..8b3944b 100644 --- a/sdk/message.go +++ b/sdk/message.go @@ -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 diff --git a/sdk/rongcloud.go b/sdk/rongcloud.go index fa80ab4..852cd7d 100644 --- a/sdk/rongcloud.go +++ b/sdk/rongcloud.go @@ -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秒 diff --git a/sdk/user.go b/sdk/user.go index e0cb6e2..3e91ba8 100644 --- a/sdk/user.go +++ b/sdk/user.go @@ -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)