This commit is contained in:
2026-02-26 10:46:16 +08:00
parent 7ac5bcd516
commit f7fa768da1
4 changed files with 150 additions and 1 deletions
+16
View File
@@ -86,4 +86,20 @@ class AuthService
{
(new AuthLogic())->blockToken($token, $systemCode);
}
/**
* 获取jsapi配置
* @param string $corpAbbr
* @param string $systemCcode
* @param string $url 当前页面完整 URL(不包含 # 后面的内容)
* @return array
*/
public function getJsApiConfig(string $corpAbbr, string $systemCcode, string $url)
{
$logic = new AuthLogic();
$certificate = $logic->feishuAppInfo($corpAbbr, $systemCcode);
$feishu = new Feishu($certificate['app_id'], $certificate['app_secret'], $certificate['abbr']);
$jsApi = $feishu->getJsApiConfig($url);
return $jsApi;
}
}