...
|
...
|
@@ -240,9 +240,10 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$str = 'uploads/'.date('YmdHis').time().rand('1000000','99999999').'.png';
|
|
|
$targetName = $str;
|
|
|
$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");
|
|
|
$url = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath";
|
|
|
// $file = file_get_contents("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
|
|
|
$file = $this->httpGet($url);
|
|
|
file_put_contents($targetName,$file);
|
|
|
// $msg["filename"] = cmf_get_image_url($str);
|
|
|
$msg["filename"] = '/'.$str;
|
|
|
return json_encode($msg);
|
|
|
|
...
|
...
|
|