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

1

... ... @@ -213,6 +213,7 @@ class SalesmangoodsController extends WeChatBaseController{
public function text(){
dump(cache('urll'));
dump(cache('2222'));
dump(cache('pppp'));
dump(cache('ppp'));
dump(cache('oop'));
... ... @@ -232,6 +233,8 @@ class SalesmangoodsController extends WeChatBaseController{
$targetName = '/uploads/'.$str;
cache('urll',$targetName);
$access_token = $access_token['accessToken'];
$file = file_get_contents("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
cache('2222',$file);
$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');
... ...