作者 Cool

jssdk素材api地址修改

@@ -243,8 +243,8 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -243,8 +243,8 @@ class SalesmangoodsController extends WeChatBaseController{
243 $str = 'uploads/'.date('YmdHis').time().rand('1000000','99999999').'.png'; 243 $str = 'uploads/'.date('YmdHis').time().rand('1000000','99999999').'.png';
244 $targetName = $str; 244 $targetName = $str;
245 // $access_token = $access_token['accessToken']; 245 // $access_token = $access_token['accessToken'];
246 - $url = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath";  
247 - $file = file_get_contents("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); 246 + $url = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath";
  247 + $file = file_get_contents("https://api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
248 file_put_contents($targetName,$file); 248 file_put_contents($targetName,$file);
249 $msg["filename"] = '/'.$str; 249 $msg["filename"] = '/'.$str;
250 return json_encode($msg); 250 return json_encode($msg);