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

4

... ... @@ -214,9 +214,9 @@ class SalesmangoodsController extends WeChatBaseController{
dump(cache('msgssss'));
dump(cache('a1'));
dump(cache('a2'));
dump(cache('a3'));
dump(cache('a4'));
dump(cache('a100'));
dump(cache('a200'));
dump(cache('a300'));
}
... ... @@ -233,11 +233,11 @@ class SalesmangoodsController extends WeChatBaseController{
$ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
cache('a1',1111);
$fp = fopen($targetName, 'w');
cache('a2',2222);
cache('a100',2222);
curl_setopt($ch, CURLOPT_FILE, $fp);
cache('a3',3333);
cache('a200',3333);
curl_setopt($ch, CURLOPT_HEADER, 0);
cache('a4',4444);
cache('a300',4444);
$msg["status"] = curl_exec($ch);
$msg["filename"] = $str;
curl_close($ch);
... ...