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

服务端Server模块回复音乐消息出错 #533

Closed
bzp2010 opened this issue Dec 1, 2016 · 3 comments
Closed

服务端Server模块回复音乐消息出错 #533

bzp2010 opened this issue Dec 1, 2016 · 3 comments

Comments

@bzp2010
Copy link

bzp2010 commented Dec 1, 2016

我用的环境

overtrue/wechat 版本:3.1

问题及现象

该问题与Bug无关
经过流程跟踪
应在Server\Transformer类中加入音乐消息XML转换方法

下例:
public function transformMusic(AbstractMessage $message) { $response = [ 'Music' => [ 'Title' => $message->get('title'), 'Description' => $message->get('description'), 'MusicUrl' => $message->get('url'), 'HQMusicUrl' => $message->get('hq_url'), 'ThumbMediaId' => $message->get('thumb_media_id'), ], ]; return $response; }

@overtrue
Copy link
Collaborator

overtrue commented Dec 1, 2016

抱歉没看到哪里有报错

@overtrue overtrue closed this as completed Dec 1, 2016
@bzp2010
Copy link
Author

bzp2010 commented Dec 2, 2016

抱歉是我描述出了一些问题
框架的消息回复模块无法正确拼装音乐消息,这个可以通过log看出来
因为在Transformer类中没有xml的拼装方法

@overtrue
Copy link
Collaborator

overtrue commented Dec 2, 2016

如果你不明白我的 issue 模板里说的:“报错截图” 与 “报错日志” 是什么的话,一定要用你自己的描述来说明问题,其实我觉得你已经具备解决问题的能力了,就不应该需要来这里提问啊。反正我说的让贴错误日志与截图你都觉得没必要。

@w7corp w7corp locked and limited conversation to collaborators Dec 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants