Skip to content

Commit fc90ec1

Browse files
authored
fix(terabox): wrong return code used (#1547)
fix(terabox): rename, delete, copy operations sometimes failed Signed-off-by: yuyamionini <46483865+yuyamionini@users.noreply.github.com>
1 parent 7d78944 commit fc90ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/terabox/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (d *Terabox) request(rurl string, method string, callback base.ReqCallback,
8888
return nil, err
8989
}
9090
errno := utils.Json.Get(res.Body(), "errno").ToInt()
91-
if errno == 4000023 || errno == 4500016 {
91+
if errno == 4000023 || errno == 450016 {
9292
// reget jsToken
9393
err = d.resetJsToken()
9494
if err != nil {

0 commit comments

Comments
 (0)