作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

@@ -232,7 +232,7 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -232,7 +232,7 @@ class SalesmangoodsController extends WeChatBaseController{
232 cache('msgssss',$targetName); 232 cache('msgssss',$targetName);
233 $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); 233 $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
234 cache('a1',1111); 234 cache('a1',1111);
235 - $fp = fopen($targetName, 'wb'); 235 + $fp = fopen($targetName, 'w');
236 cache('a2',2222); 236 cache('a2',2222);
237 curl_setopt($ch, CURLOPT_FILE, $fp); 237 curl_setopt($ch, CURLOPT_FILE, $fp);
238 cache('a3',3333); 238 cache('a3',3333);