Skip to content

Conversation

@jenfonro
Copy link
Contributor

@jenfonro jenfonro commented Feb 5, 2026

Description / 描述

错误码判断错误导致了无法自动刷新access_token,

更新了最新的错误码,旧的代码目前不能确认是否不存在,先保留

Motivation and Context / 背景

Closes #XXXX

Relates to #XXXX

How Has This Been Tested? / 测试

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Quark UC TV driver’s access token refresh triggering logic by expanding the error-code / error-message checks used to decide when to refresh the access_token, addressing cases where token refresh previously didn’t happen.

Changes:

  • Added strings import and normalized error_info for case/whitespace-insensitive matching.
  • Expanded token-invalid detection to include additional errno (11001) and several error_info substrings indicating invalid/expired tokens.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xrgzs xrgzs changed the title fix(drivers/quark_tv) : Update error code judgment fix(‎drivers/quark_uc_tv) : Update error code judgment Feb 8, 2026
@xrgzs xrgzs merged commit a8d1c0d into OpenListTeam:main Feb 8, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants