You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
['image','voice','video','thumb'].forEach(function(type){varmethod='upload'+type[0].toUpperCase()+type.substring(1);varnewMethod=method+'Media';exports[method]=util.deprecate(asyncfunction(filepath){returnthis.uploadMedia(filepath,type);},`${method}: Use ${newMethod} instead`);exports[newMethod]=asyncfunction(filepath){// 未接受filename参数returnthis.uploadMedia(filepath,type);// 调用uploadMedia方法};});``
xuwenliu
changed the title
uploadImageMedia(filepath) 方法少了media参数
uploadImageMedia(filepath) 方法如果filepath传递的是buffer类型,调用该快捷方法则少了filename参数
Jan 18, 2021
uploadImageMedia(filepath)
uploadVoiceMedia(filepath)
uploadVideoMedia(filepath)
uploadThumbMedia(filepath)
以上4个快捷方法少了filename参数
看了源码:
The text was updated successfully, but these errors were encountered: