This commit is contained in:
mzl
2025-07-09 17:58:30 +08:00
parent 4ddf4921b2
commit 396e92ac1b
22 changed files with 1120 additions and 1068 deletions
+4 -1
View File
@@ -15,7 +15,10 @@ class AuthService
*/
public function feishuAuthorize(string $corpAbbr, string $systemCcode)
{
return (new AuthLogic())->feishuAppInfo($corpAbbr, $systemCcode);
$logic = new AuthLogic();
$certificate = $logic->feishuAppInfo($corpAbbr, $systemCcode);
$feishu = new Feishu($certificate['app_id'], $certificate['app_secret'], $certificate['abbr']);
return ['auth_url' => $feishu->authorize($certificate)];
}
/**