wps对接报错
NoAuthPrivilege 是没有授权,解决:
https://openapi.wps.cn/view/company/authorize?app_id=AK20231021OGLXQL&scope=corp_contacts.read,corp_contacts.write,corp_contacts.user_phone.read,contact_access_control,corp_contacts.user_email.read,corp_group,corp_normal_group_all,corp_files_synerg_mgr,corp_space.all,admin_corp_groups.all,calendar.write,corp_files_synerg_mgr,corp_contacts_mgr&cb=https://www.baidu.com
去后台申请权限: open.wps.cn/app-info/AK20231021OGLXQL/permission
获取不到code,原因可能是拼接错误,上图url有两个?,所以正确的拼接是:
$url = $_REQUEST['redirect_url']; header("Location:".$url."&state=345c45bed5dc46e08196a9be04891921&code=123");