IOS php 授权登陆
SDK 下载地址 https://gitee.com/uw/php-apple-signin/tree/master/
$openId = I('post.user',''); $identityToken = I('post.identityToken',''); $auth_type = I('post.auth_type',''); vendor('Apple.src.AppleLogin'); $apple = new AppleLogin(); $appleSignInPayload = $apple->getAppleSignInPayload($identityToken); $isValid = $appleSignInPayload->verifyUser($openId); if ($isValid){ 你的处理逻辑 }else{ 验证不通过}