|
|
|
@ -28,7 +28,8 @@ class Wxserve extends Controller |
|
|
|
|
!is_dir($savePath) && mkdir($savePath, 0755, true); |
|
|
|
|
$savePath .= '/auth_qrcode.png'; |
|
|
|
|
QRcode::png($jumUrl, $savePath, 'L', 8, 1); |
|
|
|
|
return $this->renderSuccess(['img_url' => $this->request->domain(true) . '/wxserve/auth_qrcode.png?time=' . time()]); |
|
|
|
|
//return $this->renderSuccess(['img_url' => $this->request->domain(true) . '/wxserve/auth_qrcode.png?time=' . time()]); |
|
|
|
|
return $this->renderSuccess(['url' => $jumUrl]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|