From 55a11b0d45ae6e8aa82956efd9e77a4e9f76c720 Mon Sep 17 00:00:00 2001 From: heshupeng <hsp@bronet.cn> Date: Tue, 15 Dec 2020 17:10:23 +0800 Subject: [PATCH] 恢复 --- application/api/controller/User.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/application/api/controller/User.php b/application/api/controller/User.php index df62368..08b1819 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -692,6 +692,7 @@ class User extends Api // 用户小程序码 $qrcode = $dir.'/qrcode_'.$user['id'].'.png'; + if(!file_exists($qrcode)){ $response = Wechat::miniProgram()->app_code->getUnlimit($user['id'], [ 'page' => 'pages/indexone/indexone', 'width' => 169, @@ -699,6 +700,7 @@ class User extends Api if ($response instanceof \EasyWeChat\Kernel\Http\StreamResponse) { $response->saveAs($dir, str_replace($dir.'/','',$qrcode)); } + } //将用户头像保存到本地 $avatar = $dir.'/avatar_'.$user['id'].'.png'; -- libgit2 0.24.0