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

5

... ... @@ -213,7 +213,7 @@ class SalesmangoodsController extends WeChatBaseController{
public function text(){
dump(cache('urll'));
dump(cache('77777'));
dump(cache('pppp'));
dump(cache('ppp'));
dump(cache('oop'));
dump(cache('iip'));
... ... @@ -233,7 +233,7 @@ class SalesmangoodsController extends WeChatBaseController{
cache('urll',$targetName);
$access_token = $access_token['accessToken'];
$ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
cache('ppp',111);
cache('pppp',$ch);
$fp = fopen($targetName, 'w');
cache('oop',111);
curl_setopt($ch, CURLOPT_FILE, $fp);
... ...