From 02897d1474442647709069af5389356c288a999f Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 18 Dec 2020 13:50:08 +0800 Subject: [PATCH] Update Login.php --- app/wechat/controller/api/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wechat/controller/api/Login.php b/app/wechat/controller/api/Login.php index a3e3cd7b0..1ed82913c 100644 --- a/app/wechat/controller/api/Login.php +++ b/app/wechat/controller/api/Login.php @@ -54,7 +54,7 @@ class Login extends Controller $qrcode = new \Endroid\QrCode\QrCode(); $qrcode->setText($text)->setSize(300)->setPadding(20); $content = base64_encode($qrcode->setImageType('png')->get()); - $this->success('获取二维码成功', ['code' => $code, 'image' => "data:image/jpg;base64,{$content}"]); + $this->success('获取二维码成功', ['code' => $code, 'image' => "data:image/png;base64,{$content}"]); } /**