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
|
// create new signature
|
||||||
activeUser.PanClient().CalcSignature()
|
|
||||||
_, e := activeUser.PanClient().CreateSession(&aliyunpan.CreateSessionParam{
|
_, e := activeUser.PanClient().CreateSession(&aliyunpan.CreateSessionParam{
|
||||||
DeviceName: deviceName,
|
DeviceName: deviceName,
|
||||||
ModelName: "Windows网页版",
|
ModelName: "Windows网页版",
|
||||||
|
@ -137,7 +137,6 @@ doLoginAct:
|
|||||||
// create session
|
// create session
|
||||||
appConfig.UserId = u.UserId
|
appConfig.UserId = u.UserId
|
||||||
panClient.UpdateAppConfig(appConfig)
|
panClient.UpdateAppConfig(appConfig)
|
||||||
panClient.CalcSignature()
|
|
||||||
r, e := panClient.CreateSession(&aliyunpan.CreateSessionParam{
|
r, e := panClient.CreateSession(&aliyunpan.CreateSessionParam{
|
||||||
DeviceName: deviceName,
|
DeviceName: deviceName,
|
||||||
ModelName: "Windows网页版",
|
ModelName: "Windows网页版",
|
||||||
|
Loading…
Reference in New Issue
Block a user