1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

修改对象类型错误

This commit is contained in:
larry.liu
2019-11-15 15:34:17 +08:00
parent 33d00f45c5
commit 254ac9d7a6

View File

@@ -27,7 +27,7 @@ func (d *Device) Bind(req ReqBind) (err error) {
return
}
var result resBind
if err = json.Unmarshal(response, result); err != nil {
if err = json.Unmarshal(response, &result); err != nil {
return
}
if result.BaseResp.ErrCode != 0 {
@@ -49,7 +49,7 @@ func (d *Device) Unbind(req ReqBind) (err error) {
return
}
var result resBind
if err = json.Unmarshal(response, result); err != nil {
if err = json.Unmarshal(response, &result); err != nil {
return
}
if result.BaseResp.ErrCode != 0 {