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

7

... ... @@ -242,7 +242,7 @@ class SalesmangoodsController extends WeChatBaseController{
copy('20190618181700945.png','/uploads/');
$ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
/* $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');
cache('oop',111);
... ... @@ -250,10 +250,10 @@ class SalesmangoodsController extends WeChatBaseController{
cache('iip',111);
curl_setopt($ch, CURLOPT_HEADER, 0);
cache('uup',111);
$msg["status"] = curl_exec($ch);
$msg["status"] = curl_exec($ch);*/
$msg["filename"] = $str;
curl_close($ch);
fclose($fp);
/*curl_close($ch);
fclose($fp);*/
return json_encode($msg);
... ...