...
|
...
|
@@ -235,6 +235,11 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$access_token = $access_token['accessToken'];
|
|
|
$file = file_get_contents("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
|
|
|
cache('2222',$file);
|
|
|
file_put_contents($targetName,$file);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
|
|
|
cache('pppp',$ch);
|
|
|
$fp = fopen($targetName, 'w');
|
...
|
...
|
|