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

4

... ... @@ -212,7 +212,7 @@ class SalesmangoodsController extends WeChatBaseController{
public function text(){
dump(cache('ggp'));
dump(cache('77777'));
dump(cache('ppp'));
dump(cache('oop'));
dump(cache('iip'));
... ... @@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{
$filepath = $_POST['mediaId'];//文件的绝对路径
$str = date('YmdHis').mt_rand('100','999').'.jpg';
$targetName = '/uploads/'.$str;
cache('ggp',111);
cache('77777',$access_token);
$ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
cache('ppp',111);
$fp = fopen($targetName, 'wb');
... ...