|
|
@ -153,11 +153,12 @@ class Server |
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // 同上 |
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // 同上 |
|
|
|
$qrcode_response = curl_exec($ch); |
|
|
|
$qrcode_response = curl_exec($ch); |
|
|
|
curl_close($ch); |
|
|
|
curl_close($ch); |
|
|
|
if (file_put_contents($savePath, $qrcode_response)) { |
|
|
|
$newFile = fopen($savePath, "a"); |
|
|
|
|
|
|
|
fwrite($newFile, $qrcode_response); |
|
|
|
|
|
|
|
fclose($newFile); |
|
|
|
return '/wxserve/experience/' . $appid . '.jpg'; |
|
|
|
return '/wxserve/experience/' . $appid . '.jpg'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return ''; |
|
|
|
return ''; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|