WxOpen icon indicating copy to clipboard operation
WxOpen copied to clipboard

WxAppApi.GetWxaCode接口实现未判断本地文件是否存在

Open DonnotRain opened this issue 6 years ago • 1 comments

[ApiBind(Senparc.NeuChar.PlatformType.WeChat_MiniProgram, "WxAppApi.GetWxaCode", true)] public static WxJsonResult GetWxaCode( string accessTokenOrAppId, string filePath, string path, int width = 430, bool auto_color = false, LineColor lineColor = null, bool isHyaline = false, int timeOut = 10000) 未判断filePath文件是否存在,直接调用删除,导致异常

DonnotRain avatar Aug 05 '19 03:08 DonnotRain

是的,所有下载文件接口调用之后,都需要手动判断一下文件情况,因为还可能存在文件内部存储了异常信息的可能,我们会在未来完善这个功能,目前请手动处理。

JeffreySu avatar Apr 16 '20 11:04 JeffreySu