|
|
@ -144,7 +144,7 @@ class Server |
|
|
|
if ($access_token) { |
|
|
|
if ($access_token) { |
|
|
|
$savePath = root_path() . "public/wxserve/experience"; |
|
|
|
$savePath = root_path() . "public/wxserve/experience"; |
|
|
|
!is_dir($savePath) && mkdir($savePath, 0755, true); |
|
|
|
!is_dir($savePath) && mkdir($savePath, 0755, true); |
|
|
|
$savePath .= '/' . $appid . 'jpg'; //Client |
|
|
|
$savePath .= '/' . $appid . '.jpg'; //Client |
|
|
|
$url = 'https://api.weixin.qq.com/wxa/get_qrcode?access_token=' . $access_token; |
|
|
|
$url = 'https://api.weixin.qq.com/wxa/get_qrcode?access_token=' . $access_token; |
|
|
|
$client = new \Qiniu\Http\Client(); |
|
|
|
$client = new \Qiniu\Http\Client(); |
|
|
|
$response = $client->get($url); |
|
|
|
$response = $client->get($url); |
|
|
|