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'); }