wang hou sheng 10 months ago
parent af5977255f
commit cfc7bd405c
  1. 2
      app/admin/controller/Wxserve.php

@ -27,7 +27,7 @@ class Wxserve extends Controller
$savePath = root_path() . "public/wxserve"; $savePath = root_path() . "public/wxserve";
!is_dir($savePath) && mkdir($savePath, 0755, true); !is_dir($savePath) && mkdir($savePath, 0755, true);
$savePath .= '/auth_qrcode.png'; $savePath .= '/auth_qrcode.png';
QRcode::png($jumUrl, $savePath, 'L', 15, 1); 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()]);
} }

Loading…
Cancel
Save