thinkphp のダウンロードは Http
<br /> public static function Download($Download){<br /> import("Com.Buyback.QueryAmazon"); <br /> import("ORG.Net.Http"); <br /> $bookInformModel =M("admin"); <br /> $result = $bookInformModel->where("Download='$Download'")->select();<br /> if($result[0]['image'] == ""){<br /> $data['id'] = $result[0]['id'];<br /> $remoteUrl = QueryAmazon::getImage($Download); <br /> if(!empty($remoteUrl['ImageURL'])){<br /> $localUrl = "oa/Tpl/Public/Upload/".$Download.".jpg";<br /> Http::curl_download($remoteUrl['ImageURL'], "./".$localUrl);<br /> }else{<br /> $localUrl = "oa/Tpl/Public/Upload/";<br /> }<br /> $data['image'] = $localUrl;<br /> $bookInformModel->save($data);<br /> return $localUrl;<br /> } <br /> return $result[0]['image'];<br /> } <br /> <br /> 点击下载的时候<br /> <td align="center" colspan="2"><a href="oa/Tpl/Public/Upload/{$vo.Download}">下载</a></td><br /> 不能下载 求解释<br />