Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Feb 13, 2015
1 parent 8f3e57f commit f32ad1a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Wechat/Messages/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Image extends BaseMessage
*/
public function media($path)
{
$this->attributes['media_id'] = Wechat::media()->image($path);
$this->setAttribute('media_id', Wechat::media()->image($path));

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Wechat/Messages/Music.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Music extends BaseMessage
*/
public function thumb($path)
{
$this->attributes['thumb_media_id'] = Wechat::media()->thumb($path);
$this->setAttribute('thumb_media_id', Wechat::media()->thumb($path));

return $this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Wechat/Messages/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Video extends BaseMessage
*/
public function media($path)
{
$this->attributes['media_id'] = Wechat::media()->video($path);
$this->setAttribute('media_id', Wechat::media()->video($path));

return $this;
}
Expand All @@ -39,7 +39,7 @@ public function media($path)
*/
public function thumb($path)
{
$this->attributes['thumb_media_id'] = Wechat::media()->thumb($path);
$this->setAttribute('thumb_media_id', Wechat::media()->thumb($path));

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Wechat/Messages/Voice.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Voice extends BaseMessage
*/
public function media($path)
{
$this->attributes['media_id'] = Wechat::media()->voice($path);
$this->setAttribute('media_id', Wechat::media()->voice($path));

return $this;
}
Expand Down

0 comments on commit f32ad1a

Please sign in to comment.