-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0] 永久素材上传视频无法上传问题 #304
Comments
请尝试在 为: $params = [
'description' => json_encode(
[
'title' => $title,
'introduction' => $description,
]
, JSON_UNESCAPED_UNICODE),
]; 再看看结果。 |
@overtrue 这样中文没问题了. |
@yanqing6628780 OK,就是说这样还是不返回 我再想想是否有其它原因。 |
请问这个问题解决了吗? |
@stan415 你遇到啥问题了 |
@overtrue 跟上面一样的,上传视频素材微信那边不返回media_id,checkAndThrow会报这个错 |
@stan415 超时了吧? |
Http.php这个类的upload函数.要在$this->request的options参数加上'stream' => true才能上传成功
不过,这样会造成两个问题.
1.就是视频标题和视频描述的中文会转成unicode
2.微信那边没有返回media_id.虽然没有media_id但是素材是上传成功的
从微信提供的调用示例看:
curl "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=ACCESS_TOKEN" -F [email protected] -F description='{"title":VIDEO_TITLE, "introduction":INTRODUCTION}'
造成这个原因可能是因为那个@字符?
这条命令提交视频文件是能正确返回的media_id的.
The text was updated successfully, but these errors were encountered: