We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello 这里是电子科大的
在未登录的情况下,bitsrun 登录报错 result cannot found from response,原因是请求用户信息的时候返回了
bitsrun
result cannot found from response
{ "client_ip": "113.54.155.x", "ecode": 0, "error": "not_online_error", "error_msg": "", "online_ip": "113.54.155.x", "res": "not_online_error", "srun_ver": "SRunCGIAuthIntfSvr V1.18 B20181212", "st": 1730530275 }
根据代码
BitSrunLoginGo/pkg/srun/srun.go
Lines 49 to 78 in e4193b4
执行到 74 时 online 是 nil,ip 为 113.54.155.x,抛出错误 ErrResultCannotFound 是否是有意的?
online
nil
ip
113.54.155.x
ErrResultCannotFound
另外,在上面的函数和后续处理中 online 从未被赋值为 false(的指针),代表 if *online { ... } else { ... } 中 else 的代码永远不会执行,也就是从来不会登录
false
if *online { ... } else { ... }
else
BitSrunLoginGo/internal/login/login.go
Lines 183 to 229 in e4193b4
我这里只针对我自己的环境做了测试,将
Line 74 in e4193b4
条件从或改为和。将
Line 207 in e4193b4
条件改为 online != nil && *online 可以正常登录
online != nil && *online
我不太清楚其他学校是否有这个问题,如果其他学校是正常的我后面有空的话花时间提个 pr 适配下我们学校的环境(
The text was updated successfully, but these errors were encountered:
是 bug
Sorry, something went wrong.
33c7e93
请尝试 1.6.5
No branches or pull requests
hello 这里是电子科大的
在未登录的情况下,
bitsrun
登录报错result cannot found from response
,原因是请求用户信息的时候返回了根据代码
BitSrunLoginGo/pkg/srun/srun.go
Lines 49 to 78 in e4193b4
执行到 74 时
online
是nil
,ip
为113.54.155.x
,抛出错误ErrResultCannotFound
是否是有意的?另外,在上面的函数和后续处理中
online
从未被赋值为false
(的指针),代表if *online { ... } else { ... }
中else
的代码永远不会执行,也就是从来不会登录BitSrunLoginGo/internal/login/login.go
Lines 183 to 229 in e4193b4
我这里只针对我自己的环境做了测试,将
BitSrunLoginGo/pkg/srun/srun.go
Line 74 in e4193b4
条件从或改为和。将
BitSrunLoginGo/internal/login/login.go
Line 207 in e4193b4
条件改为
online != nil && *online
可以正常登录我不太清楚其他学校是否有这个问题,如果其他学校是正常的我后面有空的话花时间提个 pr 适配下我们学校的环境(
The text was updated successfully, but these errors were encountered: