1
This commit is contained in:
@@ -110,14 +110,15 @@ public class WPS365OAuthServiceImpl implements IWPS365OAuthService {
|
||||
// - kso.file.readwrite (文件读写)
|
||||
// - kso.doclib.readwrite (文档库读写)
|
||||
// - kso.wiki.readwrite (知识库读写)
|
||||
// - 对于在线表格(AirSheet/KSheet),可能需要 kso.file.readwrite
|
||||
// - 对于在线表格(KSheet),可能需要 kso.file.readwrite
|
||||
// - 对于智能表格(AirSheet)读写,需要 kso.airsheet.readwrite
|
||||
//
|
||||
// 如果报错invalid_scope,请:
|
||||
// 1. 登录WPS365开放平台:https://open.wps.cn/
|
||||
// 2. 进入"开发配置" > "权限管理"
|
||||
// 3. 查看已申请权限的准确名称(必须以 kso. 开头)
|
||||
// 4. 在application.yml中配置scope参数,使用逗号分隔
|
||||
scope = "kso.file.readwrite"; // 默认使用文件读写权限(支持在线表格操作)
|
||||
scope = "kso.file.readwrite,kso.airsheet.readwrite"; // 文件读写 + 智能表格读写(后端写入智能表格必须含 kso.airsheet.readwrite)
|
||||
}
|
||||
scope = scope.trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user