From 82040982d3180a4dc85c978ea33314886e4d5a47 Mon Sep 17 00:00:00 2001 From: ONEXIN Date: Sun, 11 Jul 2021 03:15:33 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=A4=B4=E5=83=8F=E6=9C=AA=E4=BC=A0=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=A4=B4=E5=83=8F=E7=8A=B6=E6=80=81BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/plugin/wechat/wechat.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/source/plugin/wechat/wechat.class.php b/upload/source/plugin/wechat/wechat.class.php index 1c6ba635c..888fb1fbe 100644 --- a/upload/source/plugin/wechat/wechat.class.php +++ b/upload/source/plugin/wechat/wechat.class.php @@ -461,7 +461,7 @@ class WeChat { $result = uploadUcAvatar::upload($uid, $tmpFile); unlink($tmpFile); - C::t('common_member')->update($uid, array('avatarstatus'=>'1')); + if($result) C::t('common_member')->update($uid, array('avatarstatus'=>'1')); return $result; } -- Gitee