sjkhsl / study_xxqg

GNU Affero General Public License v3.0
438 stars 209 forks source link

貌似没有配置转换登录的页面? #4

Closed xiazhenhua closed 1 year ago

xiazhenhua commented 1 year ago

https://johlanse.github.io/study_xxqg/scheme.html?https%3A%2F%2Flogin.xuexi.cn%2Flogin%2Fqrcommit%3Fshowmenu%3Dfalse%26code%3Dqr%3A55AC40E6-3706-412F-A902-8C7E7CA1F8B4%26appId%3Ddingoankubyrfkttorhpou

二维码无法生成,登录链接如上,github页面404

hackenfu commented 1 year ago

你这个还是删库老作者的跳板,肯定失效了

hackenfu commented 1 year ago

自己搭建,看这个页面 https://github.com/sjkhsl/study_xxqg#%E6%90%AD%E5%BB%BA%E6%96%B9%E6%B3%95 用你自己的IP

xiazhenhua commented 1 year ago

你这个还是删库老作者的跳板,肯定失效了

你好,登录跳板配置完了,但是有个新问题, 我搭建在服务器上就没有edg google浏览器,看日志似乎必须要本机有浏览器才能执行程序,

==============日志开始==========================

[GIN] 2023/01/04 - 09:14:48 | 200 | 81.0547ms | 221.2.35.195 | GET "/user" [2023-01-04 09:16:04] [info] PING DATABASE [sqlite] [2023-01-04 09:16:04] [info] [SQL][ SELECT nick, uid, token, login_time, push_id, status FROM user WHERE (status=?) [%!s(int=1)]] %!s(MISSING) %!v(MISSING) [2023-01-04 09:16:04] [info] { "data": { "userId": 151158118813, "scoreTypeId": 0, "scoreTypeName": "总积分", "score": 10507.0, "time": 0, "scoreV2": "0" }, "message": "OK", "code": 200, "error": null, "ok": true } [GIN] 2023/01/04 - 09:16:25 | 200 | 327.1484ms | 221.2.35.195 | GET "/score?token=fdd74e4b3dcb4209bd63f8f943569c6d" [2023-01-04 09:19:05] [info] [SQL][ SELECT nick, uid, token, login_time, push_id, status FROM user WHERE (uid=?) LIMIT 1 [151158118813] 976.5µs] %!s(MISSING) %!v(MISSING) - %!v(MISSING) [2023-01-04 09:19:05] [warn] 检测到edge浏览器不存在并且未配置edge_path,将再次运行时自动下载chrome浏览器 [2023-01-04 09:19:05] [erro] [core] 安装playwright失败 [2023-01-04 09:19:05] [erro] [core] could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 0xc0000139 [GIN] 2023/01/04 - 09:19:05 | 200 | 21.4844ms | 221.2.35.195 | POST "/study?uid=151158118813" [2023-01-04 09:19:05] [erro] 文章学习模块异常结束 [2023-01-04 09:19:05] [erro] runtime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] [erro] 视频学习模块异常结束 [2023-01-04 09:19:05] [erro] runtime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] [erro] 答题模块异常结束或答题已完成 [2023-01-04 09:19:05] [erro] runtime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] [erro] 答题模块异常结束或答题已完成 [2023-01-04 09:19:05] [erro] runtime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] [erro] 答题模块异常结束或答题已完成 [2023-01-04 09:19:05] [erro] runtime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] [info] PING DATABASE [sqlite] [2023-01-04 09:19:05] [info] [SQL][ SELECT nick, uid, token, login_time, push_id, status FROM user WHERE (status=?) [%!s(int=1)]] %!s(MISSING) %!v(MISSING) [2023-01-04 09:19:05] [info] {

==============日志结束========================== 但是配置到本机又没法在手机浏览器访问登录,因为没法暴露在外网,想问问您是怎么操作的

hackenfu commented 1 year ago

你这个还是删库老作者的跳板,肯定失效了

你好,登录跳板配置完了,但是有个新问题, 我搭建在服务器上就没有edg google浏览器,看日志似乎必须要本机有浏览器才能执行程序,

==============日志开始==========================

[GIN] 2023/01/04 - 09:14:48 | 200 | 81.0547ms | 221.2.35.195 | GET "/user" [2023-01-04 09:16:04] �[36m[info] �[0mPING DATABASE [sqlite] [2023-01-04 09:16:04] �[36m[info] �[0m[SQL][ SELECT nick, uid, token, login_time, push_id, status FROM user WHERE (status=?) [%!s(int=1)]] %!s(MISSING) %!v(MISSING) [2023-01-04 09:16:04] �[36m[info] �[0m{ "data": { "userId": 151158118813, "scoreTypeId": 0, "scoreTypeName": "总积分", "score": 10507.0, "time": 0, "scoreV2": "0" }, "message": "OK", "code": 200, "error": null, "ok": true } [GIN] 2023/01/04 - 09:16:25 | 200 | 327.1484ms | 221.2.35.195 | GET "/score?token=fdd74e4b3dcb4209bd63f8f943569c6d" [2023-01-04 09:19:05] �[36m[info] �[0m[SQL][ SELECT nick, uid, token, login_time, push_id, status FROM user WHERE (uid=?) LIMIT 1 [151158118813] 976.5µs] %!s(MISSING) %!v(MISSING) - %!v(MISSING) [2023-01-04 09:19:05] �[33m[warn] �[0m检测到edge浏览器不存在并且未配置edge_path,将再次运行时自动下载chrome浏览器 [2023-01-04 09:19:05] �[31m[erro] �[0m[core] 安装playwright失败 [2023-01-04 09:19:05] �[31m[erro] �[0m[core] could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 0xc0000139 [GIN] 2023/01/04 - 09:19:05 | 200 | 21.4844ms | 221.2.35.195 | POST "/study?uid=151158118813" [2023-01-04 09:19:05] �[31m[erro] �[0m文章学习模块异常结束 [2023-01-04 09:19:05] �[31m[erro] �[0mruntime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] �[31m[erro] �[0m视频学习模块异常结束 [2023-01-04 09:19:05] �[31m[erro] �[0mruntime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] �[31m[erro] �[0m答题模块异常结束或答题已完成 [2023-01-04 09:19:05] �[31m[erro] �[0mruntime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] �[31m[erro] �[0m答题模块异常结束或答题已完成 [2023-01-04 09:19:05] �[31m[erro] �[0mruntime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] �[31m[erro] �[0m答题模块异常结束或答题已完成 [2023-01-04 09:19:05] �[31m[erro] �[0mruntime error: invalid memory address or nil pointer dereference [2023-01-04 09:19:05] �[36m[info] �[0mPING DATABASE [sqlite] [2023-01-04 09:19:05] �[36m[info] �[0m[SQL][ SELECT nick, uid, token, login_time, push_id, status FROM user WHERE (status=?) [%!s(int=1)]] %!s(MISSING) %!v(MISSING) [2023-01-04 09:19:05] �[36m[info] �[0m{

==============日志结束========================== 但是配置到本机又没法在手机浏览器访问登录,因为没法暴露在外网,想问问您是怎么操作的

我没那么复杂,也没搞过什么浏览器 1、https://raw.githubusercontent.com/sjkhsl/study_xxqg/main/docker-compose.yml,下载下来放在/root/study_xxqg 2、新建/root/study_xxqg/config,把config.yml放进去,注意里面跳板设置为http://你的DDNS:你的端口转发/dist/scheme.html? 3、新建/root/study_xxqg/config/dist,把https://raw.githubusercontent.com/sjkhsl/study_xxqg/main/docs/qrcode.js和https://raw.githubusercontent.com/sjkhsl/study_xxqg/main/docs/scheme.html下载下来放进去 4、SSH,cd /root/study_xxqg,docker compose up -d 我其他什么都没干,网页端直接用http://你的DDNS:你的端口转发,手机端根据你config.yml设置情况操作

hackenfu commented 1 year ago

群里有人提到你这个错误,你可以看看 https://t.me/techxuexi/136992

adamnb1 commented 1 year ago

我用群晖建的DOCKER容器,端口映射到外网(公网IP),稳稳的。现在单位里六个人在使用。