From 8049a21c27f966d95d1e4e6e90dad2c2d4e06e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 18 Mar 2022 22:31:06 +0800 Subject: [PATCH] Update FansService.php --- app/wechat/service/FansService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/wechat/service/FansService.php b/app/wechat/service/FansService.php index f92138395..4150bb3b6 100644 --- a/app/wechat/service/FansService.php +++ b/app/wechat/service/FansService.php @@ -47,6 +47,7 @@ class FansService extends Service if ($appid !== '') $user['appid'] = $appid; unset($user['privilege'], $user['groupid']); $this->app->event->trigger('WechatFansUpdate', $user); + foreach ($user as $k => $v) if ($v === '') unset($user[$k]); return !!data_save(WechatFans::class, $user, 'openid'); }