fix: 修复飞书通知模块API路径和卡片格式

- 修改API路径为 /open-apis/im/v1/messages (message/v4已废弃)
- 添加卡片config配置
- 修复content格式(直接传卡片对象,不需要包裹)
- 添加测试接口 /api/v1/test/notification

测试结果: 成功发送通知到李佳博(feishu_user_id: 481g947d)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-26 15:27:54 +08:00
parent 2e5f570b40
commit 04947ae52d
5 changed files with 378 additions and 72 deletions
+3
View File
@@ -12,6 +12,9 @@ Route::group('/api/v1', function () {
Route::post('/auth/feishu-login', [app\controller\AuthController::class, 'feishuLogin']);
Route::post('/auth/qrcode-login', [app\controller\AuthController::class, 'qrcodeLogin']);
Route::get('/auth/qrcode-login/status', [app\controller\AuthController::class, 'qrcodeLoginStatus']);
// 测试接口
Route::get('/test/notification', [app\controller\TestController::class, 'testNotification']);
})->middleware($apiMiddleware);
// 飞书登录回调(不在 /api/v1 下,供飞书重定向使用)