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

临时素材下载,文件名和扩展名之间会有2个[.] #389

Closed
yunchunw opened this issue Apr 12, 2016 · 0 comments
Closed

临时素材下载,文件名和扩展名之间会有2个[.] #389

yunchunw opened this issue Apr 12, 2016 · 0 comments
Assignees

Comments

@yunchunw
Copy link

我用的环境

laravel 5.2

PHP 版本:7.0
overtrue/wechat 版本:~3.0

问题及现象

调用代码段

EasyWechat::material_temporary(); $temporary->download($mediaId, config('setting.media'));

有问题的代码

\EasyWeChat\Material\Temporary@61

`

    $stream = $this->getStream($mediaId);

    $ext = File::getStreamExt($stream); //这里返回的扩展名已经带[.]了

    file_put_contents($directory.'/'.$filename.'.'.$ext, $stream);

    return $filename.'.'.$ext; //这里又再拼接文件名的时候加了一个.,导致保存的时候文件名和扩展名之间有2个[.]

`

overtrue added a commit that referenced this issue Apr 12, 2016
@overtrue overtrue self-assigned this Apr 16, 2016
overtrue added a commit that referenced this issue Apr 16, 2016
* Bugfix close #389

* Fix tests.
overtrue added a commit that referenced this issue Apr 19, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393
overtrue added a commit that referenced this issue Apr 20, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.
overtrue added a commit that referenced this issue Apr 20, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
overtrue added a commit that referenced this issue Apr 22, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Filter the empty params. #402
overtrue added a commit that referenced this issue May 4, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Filter the empty params. #402

* Add User Tag service.

* Applied fixes from StyleCI (#409)

* Typo.
overtrue added a commit that referenced this issue May 17, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Filter the empty params. #402

* Add User Tag service.

* Applied fixes from StyleCI (#409)

* Typo.

* CS.

* Support guzzle basic options. #415

* En comment.
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

2 participants