mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
set webapi optional
This commit is contained in:
parent
03f3d37fb8
commit
4769d17281
@ -411,6 +411,9 @@ func (c *PanConfig) ActiveUser() *PanUser {
|
||||
u.panClient = user.panClient
|
||||
u.Nickname = user.Nickname
|
||||
|
||||
if u.ActiveDriveId == "" {
|
||||
u.ActiveDriveId = user.DriveList.GetFileDriveId()
|
||||
}
|
||||
u.DriveList = user.DriveList
|
||||
// check workdir valid or not
|
||||
if user.IsFileDriveActive() {
|
||||
|
@ -119,9 +119,9 @@ func SetupUserByCookie(openapiToken, webapiToken *PanClientToken, ticketId, user
|
||||
if openapiToken == nil {
|
||||
return nil, apierror.NewFailedApiError("openapi token is empty")
|
||||
}
|
||||
if webapiToken == nil {
|
||||
return nil, apierror.NewFailedApiError("webapi token is empty")
|
||||
}
|
||||
//if webapiToken == nil {
|
||||
// return nil, apierror.NewFailedApiError("webapi token is empty")
|
||||
//}
|
||||
|
||||
doOpenLoginAct:
|
||||
// setup openapi client
|
||||
|
Loading…
Reference in New Issue
Block a user