|
|
@ -153,9 +153,11 @@ 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); |
|
|
|
$newFile = fopen($savePath, "a"); |
|
|
|
dump($qrcode_response); |
|
|
|
fwrite($newFile, $qrcode_response); |
|
|
|
exit(); |
|
|
|
fclose($newFile); |
|
|
|
// $newFile = fopen($savePath, "a"); |
|
|
|
|
|
|
|
// fwrite($newFile, $qrcode_response); |
|
|
|
|
|
|
|
// fclose($newFile); |
|
|
|
return '/wxserve/experience/' . $appid . '.jpg'; |
|
|
|
return '/wxserve/experience/' . $appid . '.jpg'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|