Files
finance_app/app/Console/Commands/DebugGmailJob.php
henry yo 85972f950c feat: 前端分離+功能api化
1. 新增資產管理CRUD、googleOAuth登入
2. 更改原記帳controller
2026-06-25 14:19:07 +08:00

24 lines
612 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\User;
use Google\Client as GoogleClient;
use App\Jobs\FetchAndParseGmailInvoices;
class DebugGmailJob extends Command
{
protected $signature = 'gmail:debug-job';
protected $description = '繞過Job快取直接在終端機打印最新未讀信件';
public function handle()
{
$this->info("🔄 正在讀取 User ID 1 的 Google 憑證...");
$user = User::find(1);
app(FetchAndParseGmailInvoices::class, ['user' => $user])->handle(new \App\Services\GmailParserService());
}
}