|
@@ -241,7 +241,7 @@ class UserService
|
|
|
|
|
|
// 检查是否有正在审核的申请
|
|
|
$hasActiveApplication = CoachUser::where('user_id', $user->id)
|
|
|
- ->whereHas('info', function ($query) {
|
|
|
+ ->whereHas('infoRecords', function ($query) {
|
|
|
$query->where('state', TechnicianAuthStatus::AUDITING->value);
|
|
|
})
|
|
|
->exists();
|
|
@@ -455,7 +455,7 @@ class UserService
|
|
|
*/
|
|
|
private function generateInviteUrl(string $inviteCode): string
|
|
|
{
|
|
|
- return config('app.url').'/invite?'.http_build_query(['invite_code' => $inviteCode]);
|
|
|
+ return config('app.url') . '/invite?' . http_build_query(['invite_code' => $inviteCode]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -477,7 +477,7 @@ class UserService
|
|
|
->encoding('UTF-8')
|
|
|
->generate($content);
|
|
|
|
|
|
- return 'data:image/svg+xml;base64,'.base64_encode($qrImage);
|
|
|
+ return 'data:image/svg+xml;base64,' . base64_encode($qrImage);
|
|
|
}
|
|
|
|
|
|
/**
|