fix: change config
All checks were successful
Laravel-Oracle-Deploy / redeploy (push) Successful in 6s

This commit is contained in:
2026-06-30 17:15:59 +08:00
parent 436047c1e8
commit 0941d2bbb9
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -30,3 +30,4 @@ Homestead.json
.env.production .env.production
.phpactor.json .phpactor.json
auth.json auth.json
logs/laravel.log

View File

@@ -46,6 +46,6 @@ class GoogleAuthController extends Controller
$token = $user->createToken('auth_token')->plainTextToken; $token = $user->createToken('auth_token')->plainTextToken;
// 把 token 帶回前端 // 把 token 帶回前端
return redirect(env('APP_URL') . "/#/auth/callback?token={$token}&name=" . urlencode($user->name)); return redirect(config('app.url') . "/#/auth/callback?token={$token}&name=" . urlencode($user->name));
} }
} }