From b9cc986bd683d60aaa3597b055233565c005c539 Mon Sep 17 00:00:00 2001 From: macbook <418170129@qq.com> Date: Sun, 7 Feb 2021 20:24:00 +0800 Subject: [PATCH] 1 --- application/api/controller/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 20d2930..c12c3b5 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -596,14 +596,14 @@ class User extends Base $avatar_url = !empty($user['avatar']) ? cdnurl($user['avatar']) : ''; empty($avatar_url) && $this->error('请先上传头像'); !url_exists($avatar_url) && $this->error('头像失效,请更新头像'); - // 本地路径 + // // 本地路径 $dir = 'uploads/user'; if (!file_exists($dir)){ mkdir($dir,0777,true); } // 用户小程序码 - $qrcode = $dir.'/qrcode_'.$user['id'].'.png'; + $qrcode = $dir.'/qrcode_'.$user['id'].'.jpg'; if(!file_exists($qrcode)){ $wechat = new Wechat('wxMiniProgram'); $response = $wechat->getApp()->app_code->getUnlimit($user['id'], [ -- libgit2 0.24.0