...
|
...
|
@@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$filepath = $_POST['mediaId'];//文件的绝对路径
|
|
|
$str = date('YmdHis').mt_rand('100','999').'.jpg';
|
|
|
$targetName = '/uploads/'.$str;
|
|
|
cache('77777',$access_token);
|
|
|
$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);
|
|
|
$fp = fopen($targetName, 'wb');
|
...
|
...
|
|