This commit is contained in:
2026-02-26 11:06:31 +08:00
parent f7fa768da1
commit 114b1fbf92
+3 -3
View File
@@ -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);