Skip to content

Commit

Permalink
Merge pull request #312 from see365/master
Browse files Browse the repository at this point in the history
发现无法上传bug!
  • Loading branch information
dodgepudding committed Aug 26, 2016
2 parents b30f9dd + 192d2f6 commit 558cf5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qywechat.class.php
Expand Up @@ -272,10 +272,11 @@ private function http_post($url,$param,$post_file=false){
curl_setopt($oCurl, CURLOPT_URL, $url);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($oCurl, CURLOPT_POST,true);
curl_setopt($oCurl, CURLOPT_POSTFIELDS,$strPOST);
if(PHP_VERSION_ID >= 50500){
curl_setopt($oCurl, CURLOPT_SAFE_UPLOAD, FALSE);
}
curl_setopt($oCurl, CURLOPT_POSTFIELDS,$strPOST);

$sContent = curl_exec($oCurl);
$aStatus = curl_getinfo($oCurl);
curl_close($oCurl);
Expand Down

0 comments on commit 558cf5d

Please sign in to comment.