mt sku
This commit is contained in:
@@ -79,17 +79,17 @@ func (a *API) MsgSend(pushContent string) (interface{}, error) {
|
||||
}
|
||||
|
||||
// GetConnectionToken 获取长连接的token https://developer.waimai.meituan.com/home/docDetail/461
|
||||
func (a *API) GetConnectionToken() (retVal interface{}, err error) {
|
||||
retVal, err = a.AccessAPI("wm/IM/getConnectionToken", false, nil)
|
||||
return retVal, err
|
||||
}
|
||||
//func (a *API) GetConnectionToken() (retVal interface{}, err error) {
|
||||
// retVal, err = a.AccessAPI("wm/IM/getConnectionToken", false, nil)
|
||||
// return retVal, err
|
||||
//}
|
||||
|
||||
// MsgRead 设置消息已读 https://open-shangou.meituan.com/home/docDetail/465
|
||||
func (a *API) MsgRead(appPoiCode string, msgID, openUserID int) error {
|
||||
_, err := a.AccessAPI("/wm/IM/msgRead", false, map[string]interface{}{
|
||||
"app_poi_code": appPoiCode,
|
||||
"msg_id": msgID,
|
||||
"open_user_id": openUserID,
|
||||
})
|
||||
return err
|
||||
}
|
||||
//func (a *API) MsgRead(appPoiCode string, msgID, openUserID int) error {
|
||||
// _, err := a.AccessAPI("/wm/IM/msgRead", false, map[string]interface{}{
|
||||
// "app_poi_code": appPoiCode,
|
||||
// "msg_id": msgID,
|
||||
// "open_user_id": openUserID,
|
||||
// })
|
||||
// return err
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user