mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
refactor create session
This commit is contained in:
parent
45877a4408
commit
ab215736a9
@ -169,7 +169,6 @@ func RefreshTokenInNeed(activeUser *config.PanUser, deviceName string) bool {
|
||||
}
|
||||
|
||||
// create new signature
|
||||
activeUser.PanClient().CalcSignature()
|
||||
_, e := activeUser.PanClient().CreateSession(&aliyunpan.CreateSessionParam{
|
||||
DeviceName: deviceName,
|
||||
ModelName: "Windows网页版",
|
||||
|
@ -137,7 +137,6 @@ doLoginAct:
|
||||
// create session
|
||||
appConfig.UserId = u.UserId
|
||||
panClient.UpdateAppConfig(appConfig)
|
||||
panClient.CalcSignature()
|
||||
r, e := panClient.CreateSession(&aliyunpan.CreateSessionParam{
|
||||
DeviceName: deviceName,
|
||||
ModelName: "Windows网页版",
|
||||
|
Loading…
Reference in New Issue
Block a user