mirror of
https://github.com/silenceper/wechat.git
synced 2026-03-01 00:35:26 +08:00
addNews return error (#401)
Co-authored-by: p_biaolan <biao.lan@qingteng.cn>
This commit is contained in:
1 parent
0e8fc3f88b
commit
7a513080a8
1 file changed
+3
@@ -119,6 +119,9 @@ func (material *Material) AddNews(articles []*Article) (mediaID string, err erro
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if res.ErrCode != 0 {
|
||||||
|
return "", fmt.Errorf("errcode=%d,errmsg=%s", res.ErrCode, res.ErrMsg)
|
||||||
|
}
|
||||||
mediaID = res.MediaID
|
mediaID = res.MediaID
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user