From 114b1fbf927f95d908761f32412de6e6963fdbf3 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 26 Feb 2026 11:06:31 +0800 Subject: [PATCH] jsApi --- app/common/utils/Feishu.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/common/utils/Feishu.php b/app/common/utils/Feishu.php index c5d188e..cdd6d16 100644 --- a/app/common/utils/Feishu.php +++ b/app/common/utils/Feishu.php @@ -269,7 +269,7 @@ class Feishu return $cachedTicket; } - $url = $this->baseUri . '/open-apis/jssdk/ticket/get'; + $url = $this->baseUri . '/jssdk/ticket/get'; $headers = [ 'Authorization: Bearer ' . $accessToken, @@ -282,8 +282,8 @@ class Feishu throw new BusinessException('获取 jsapi_ticket 失败: ' . json_encode($result)); } - $ticket = $result['ticket']; - $expire = $result['expire_in'] - 300; // 提前5分钟过期 + $ticket = $result['data']['ticket']; + $expire = $result['data']['expire_in'] - 300; // 提前5分钟过期 // 缓存 ticket Cache::set($this->abbr.'-feishu:jsapi_ticket', $ticket, $expire);