From ec04d423d6408ed8591ed0bf0c7022493f171191 Mon Sep 17 00:00:00 2001
From: heshupeng <hsp@bronet.cn>
Date: Tue, 15 Dec 2020 17:07:46 +0800
Subject: [PATCH] 测试

---
 application/api/controller/User.php | 2 --
 1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/application/api/controller/User.php b/application/api/controller/User.php
index 08b1819..df62368 100644
--- a/application/api/controller/User.php
+++ b/application/api/controller/User.php
@@ -692,7 +692,6 @@ 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,
@@ -700,7 +699,6 @@ 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