|
|
|
@ -28,8 +28,7 @@ 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(['url' => $jumUrl]); |
|
|
|
|
return $this->renderSuccess(['img_url' => $this->request->domain(true) . '/wxserve/auth_qrcode.png?time=' . time()]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|