mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
feat: 前端分離+功能api化
1. 新增資產管理CRUD、googleOAuth登入 2. 更改原記帳controller
This commit is contained in:
23
app/Console/Commands/DebugGmailJob.php
Normal file
23
app/Console/Commands/DebugGmailJob.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user