Skip to content
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

发视频消息总返回 -1 #143

Closed
linb opened this issue Nov 1, 2015 · 3 comments
Closed

发视频消息总返回 -1 #143

linb opened this issue Nov 1, 2015 · 3 comments

Comments

@linb
Copy link

linb commented Nov 1, 2015

微信抽风还是怎么着?

发视频消息有时候返回 -1,10月以前从来没有发生过。现在是时好时坏。

错误:
[29-Oct-2015 18:24:48 Asia/Shanghai] [Wechat][-1] system error hint: [ZpmEGA0343ent1]
[29-Oct-2015 18:25:35 Asia/Shanghai] [Wechat][-1] system error hint: [7_r0390ent2]
[29-Oct-2015 18:26:04 Asia/Shanghai] [Wechat][-1] system error hint: [PYgQJa0419ent3]

代码:

// 给用户发视频消息
// 这里 $uploadedMediaId 已经上传视频成功了, 用户 $openId 刚刚给本公众号发过视频消息
try{
      $userService = new Staff(WECHAT_APPID, WECHAT_SECRET);
      $message = Message::make("video")->media_id($uploadedMediaId)
            //->thumb_media_id($thumbnialMediaId)
             ->title("视频表情")
             ->description("人人来原创");
      $userService->send($message)->to($openId);
}catch(Exception $e){
      $errMsg = $e->getMessage();
}
@pgyf
Copy link

pgyf commented Nov 4, 2015

我想问个问题,微信素材能直接上传到第三方存储不? 比如把微信的临时图片不经过下载到服务器直接上传到七牛。

@linb
Copy link
Author

linb commented Nov 4, 2015

想知道发视频消息总返回 -1 是微信的问题还是库的问题?

@overtrue
Copy link
Collaborator

@linb 微信的问题

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

No branches or pull requests

3 participants