正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -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); |
-
请 注册 或 登录 后发表评论