...
|
...
|
@@ -70,7 +70,6 @@ class MemberController extends CommentController |
|
|
$data['httpimgurls'] = cmf_get_image_preview_url($data['imgurls']);
|
|
|
$this->apiResponse(1,'上传成功',$data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 根据media_id下载微信图片
|
|
|
* @param $access_token
|
...
|
...
|
@@ -78,8 +77,10 @@ class MemberController extends CommentController |
|
|
* @param $foldername
|
|
|
* @return string
|
|
|
*/
|
|
|
|
|
|
private function getmedia($access_token,$media_id,$foldername){
|
|
|
$url = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=".$access_token."&media_id=".$media_id;
|
|
|
// $url = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=".$access_token."&media_id=".$media_id;
|
|
|
$url = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=15_LUlpJJuAYp_0MRxQUFVAArKQOcZJAZdPMVGxan_7HokxpAPod7vgAF1r6-BGSyUTDl0LCambzkP_zkaxaR6OooomZp5J1xeVrC1tr_9tDQ1B6H0IAlooBpumWUMkBaDPA9nxJg7Yl188SEMvRDLjAEAIUC&media_id=rwtg-ADWOiYiE-cGA9FNpPoze0JLN7VCotJWURFMoGnYDID2pGIqM0s_pcSA4zM4";
|
|
|
if (!file_exists("./upload/".$foldername)) {
|
|
|
mkdir("./upload/".$foldername, 0777, true);
|
|
|
}
|
...
|
...
|
|