移动端回调

This commit is contained in:
2026-01-04 16:27:20 +08:00
parent 725710abcb
commit ca757e67dd
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -91,11 +91,11 @@ class Feishu
/**
* 授权
*/
public function authorize($certificate, $url = 'authen/v1/authorize')
public function authorize($certificate,$mobile, $url = 'authen/v1/authorize')
{
$arr = [
'app_id' => $certificate['app_id'],
'redirect_uri' => $certificate['r_url'],
'redirect_uri' => $mobile == 1 ? $certificate['m_url'] : $certificate['r_url'],
'scope' => $certificate['scope'],
'state' => $certificate['state']
];