Skip to content

下载临时素材接口(无法获取到文件名)异常被吃掉了 #869

@shirenchuang

Description

@shirenchuang

下载临时素材接口:
WxMpConfiguration.getMpServices().get(appid).getMaterialService().mediaDownload(mediaId);

输入的mediaId如果存在的话 能够正常的下载
如果随意输入的mediaId;这个时候返回了null;

debug看下 返回的异常信息
me.chanjar.weixin.common.error.WxErrorException: 错误: Code=0, Msg=无法获取到文件名

code = 0 导致异常没有抛出来;
是否考虑往外面抛出来?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions