Skip to content

Commit

Permalink
fix: update t from unix time to unix milli
Browse files Browse the repository at this point in the history
  • Loading branch information
SheltonZhu committed Sep 18, 2024
1 parent 1ed6feb commit 116d578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (c *Pan115Client) RapidUpload(fileSize int64, fileName, dirID, preID, fileI

signKey, signVal := "", ""
for retry := true; retry; {
t := Now()
t := NowMilli()

if encodedToken, err = ecdhCipher.EncodeToken(t.ToInt64()); err != nil {
return nil, err
Expand Down

0 comments on commit 116d578

Please sign in to comment.