NeverGiveUpT

Results 1 comments of NeverGiveUpT

> 上传了文件了才会返回media_id呀,你这个逻辑搞错了。 不是media_id,可查看我写的注释 我的意思是: 你这里导出了4个快捷方法。那调用这4个快捷方法时,如果filepath是传递的buffer,那么就缺失了filename这个参数。 ```js if (Buffer.isBuffer(filepath)) { form.buffer('media', filepath, filename, mime); // 需要filename这个参数 } ``` ```js ['image', 'voice', 'video', 'thumb'].forEach(function (type) { var method = 'upload' + type[0].toUpperCase()...