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

7

@@ -242,7 +242,7 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -242,7 +242,7 @@ class SalesmangoodsController extends WeChatBaseController{
242 copy('20190618181700945.png','/uploads/'); 242 copy('20190618181700945.png','/uploads/');
243 243
244 244
245 - $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); 245 + /* $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
246 cache('pppp',$ch); 246 cache('pppp',$ch);
247 $fp = fopen($targetName, 'w'); 247 $fp = fopen($targetName, 'w');
248 cache('oop',111); 248 cache('oop',111);
@@ -250,10 +250,10 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -250,10 +250,10 @@ class SalesmangoodsController extends WeChatBaseController{
250 cache('iip',111); 250 cache('iip',111);
251 curl_setopt($ch, CURLOPT_HEADER, 0); 251 curl_setopt($ch, CURLOPT_HEADER, 0);
252 cache('uup',111); 252 cache('uup',111);
253 - $msg["status"] = curl_exec($ch); 253 + $msg["status"] = curl_exec($ch);*/
254 $msg["filename"] = $str; 254 $msg["filename"] = $str;
255 - curl_close($ch);  
256 - fclose($fp); 255 + /*curl_close($ch);
  256 + fclose($fp);*/
257 257
258 return json_encode($msg); 258 return json_encode($msg);
259 259