mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 12:52:27 +08:00
addNews return error (#401)
Co-authored-by: p_biaolan <biao.lan@qingteng.cn>
This commit is contained in:
@@ -119,6 +119,9 @@ func (material *Material) AddNews(articles []*Article) (mediaID string, err erro
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if res.ErrCode != 0 {
|
||||
return "", fmt.Errorf("errcode=%d,errmsg=%s", res.ErrCode, res.ErrMsg)
|
||||
}
|
||||
mediaID = res.MediaID
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user