正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
@@ -235,6 +235,11 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -235,6 +235,11 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
235 | $access_token = $access_token['accessToken']; | 235 | $access_token = $access_token['accessToken']; |
236 | $file = file_get_contents("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); | 236 | $file = file_get_contents("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); |
237 | cache('2222',$file); | 237 | cache('2222',$file); |
238 | + file_put_contents($targetName,$file); | ||
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | ||
238 | $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); | 243 | $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); |
239 | cache('pppp',$ch); | 244 | cache('pppp',$ch); |
240 | $fp = fopen($targetName, 'w'); | 245 | $fp = fopen($targetName, 'w'); |
-
请 注册 或 登录 后发表评论