Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

上传永久素材时无返回信息,上传临时素材时返回buffer #26

Open
cloudray8580 opened this issue May 24, 2016 · 4 comments

Comments

@cloudray8580
Copy link

调用 uploadMaterial(filepath, 'TYPE) 时,无反应,即无成功result,也无errmsg,程序也无报错。
调用 uploadMedia(filename, TYPE)时, 返回buffer,如下,即非腾讯返回示例里的四种类型。

mediaresult: {"type":"Buffer","data":[123,34,118,111,105,99,101,95,99,111,117,11
0,116,34,58,49,44,34,118,105,100,101,111,95,99,111,117,110,116,34,58,48,44,34,10
5,109,97,103,101,95,99,111,117,110,116,34,58,51,44,34,110,101,119,115,95,99,111,
117,110,116,34,58,50,125]}

@cloudray8580
Copy link
Author

用了 @logerzhu 提供的重写request的方法,可以用了

@vimer
Copy link

vimer commented Dec 1, 2016

@cloudray8580 哪个方法 我也遇到你这个情况

@cloudray8580
Copy link
Author

@vimer 你看下最后一个issue,里面有

@charmer1989
Copy link

把api_material.js的39行 stream改成data就好了 估计作者笔误了

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants