diff --git a/app/Console/Commands/PatientRecordNotify.php b/app/Console/Commands/PatientRecordNotify.php index 6f3eaaf..4102649 100644 --- a/app/Console/Commands/PatientRecordNotify.php +++ b/app/Console/Commands/PatientRecordNotify.php @@ -50,7 +50,7 @@ class PatientRecordNotify extends Command ->where('type', SocialiteType::WxOfficial) ->whereIn('user_id', $list->pluck('notify_user_id')) ->get(); - $users = UserSocialite::where('user_type', (new AdminUser)->getMorphClass()) + $users = UserSocialite::where('user_type', (new User())->getMorphClass()) ->where('type', SocialiteType::WxOfficial) ->whereIn('user_id', $list->pluck('user_id')) ->get();