6
0
Fork 0
release
panliang 2022-06-10 14:54:57 +08:00
parent 48bbcb73a2
commit 8571603baa
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ class UserClear extends Command
{
$user = User::query()->findOrFail($this->argument('id'));
$user->update(['phone' => null]);
$user->socialites()->where('socialite_type', SocialiteType::WechatMiniProgram->value)->delete();
$count = $user->socialites()->where('socialite_type', SocialiteType::WechatMiniProgram->value)->delete();
$this->info($count);
return 0;
}
}