Skip to content

Commit

Permalink
Update Media.php
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jul 30, 2015
1 parent 1f38704 commit 605c319
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Wechat/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ protected function upload($type, $path, $params = array())
$response = $this->http->post($url, $params, $options);

$this->forever = false;

if ($type == 'image') {
return $response;
}

$response = Arr::only($response, array('media_id', 'thumb_media_id'));

Expand Down

0 comments on commit 605c319

Please sign in to comment.