Skip to content
New issue

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

建议给个服务器地址填写示例,并捕获处理一下异常提示 #3

Open
rslywhj opened this issue Jan 12, 2025 · 10 comments
Labels
bug Something isn't working

Comments

@rslywhj
Copy link

rslywhj commented Jan 12, 2025

复现步骤

小米运动健康3.35.4版本
已添加自定义服务器地址并重启
开始运动后,几秒钟(获取心率后)闪退,非APPP应用闪退,弹出“小米运动健康意外退出,是否继续运动”

预期行为

不应闪退
能正常推送

实际行为

闪退且不能正常推送

LSPosed 版本

7249

Android 版本

13

模块 版本

1.0.1

起点 版本

小米运动健康3.35.4

Logs/日志

LSPosed_2025-01-13T06_17_36.287281.zip

@rslywhj rslywhj added the bug Something isn't working label Jan 12, 2025
@rslywhj rslywhj changed the title [Bug] 小米运动健康3.35.4版本进入运动模式后异常退出 小米运动健康3.35.4版本进入运动模式后异常退出,烦请适配,感激! Jan 12, 2025
@rslywhj
Copy link
Author

rslywhj commented Jan 12, 2025

降级为小米运动健康-3.32.0,故障依旧

@rslywhj
Copy link
Author

rslywhj commented Jan 12, 2025

分析了下日志,原来是服务器地址的问题,建议给个填写示例,并捕获处理一下异常提示

@rslywhj rslywhj changed the title 小米运动健康3.35.4版本进入运动模式后异常退出,烦请适配,感激! 建议给个服务器地址填写示例,并捕获处理一下异常提示 Jan 12, 2025
@xihan123
Copy link
Owner

xihan123 commented Jan 13, 2025

(⊙﹏⊙) 这个服务器示例不好给的啊,闪退的话确实可以搞个容错吐司提示

@ywtll
Copy link

ywtll commented Feb 4, 2025

我在本地部署了miband-heart-rate-bot
服务器地址,我尝试了

访问结果的都是0
curl -X GET "http://localhost:8000/latest-heart-rate"
{"timestamp":0,"heartRate":0}

所以服务器地址应该怎么写?

@rslywhj
Copy link
Author

rslywhj commented Feb 4, 2025

@ywtll
我看日志报错分析的
需要写成
https://ip:port/
或者
https://domain/

@ywtll
Copy link

ywtll commented Feb 4, 2025

@rslywhj
您好,我用nginx做了转发,服务器地址改写成了: https://192.168.0.100:8001
/latest-heart-rate 访问该api,结果还是{"timestamp":0,"heartRate":0}
手环开启了运动
手环版本:8nfc
小米运动健康:3.37.3
lsp:1.9.2
安卓:14
型号:小米pad5pro 12.4

LSPosed_2025-02-04T16_49_46.598669.zip
详细日志

LSPosed_2025-02-04T16_49_30.776995.zip
模块日志

@xihan123
Copy link
Owner

xihan123 commented Feb 4, 2025

@rslywhj
您好,我用nginx做了转发,服务器地址改写成了: https://192.168.0.100:8001
/latest-heart-rate 访问该api,结果还是{"timestamp":0,"heartRate":0}
手环开启了运动
手环版本:8nfc
小米运动健康:3.37.3
lsp:1.9.2
安卓:14
型号:小米pad5pro 12.4

LSPosed_2025-02-04T16_49_46.598669.zip
详细日志

LSPosed_2025-02-04T16_49_30.776995.zip
模块日志

服务器地址填入https://192.168.0.100:8001/,更改完地址需要重启运动app

@xihan123
Copy link
Owner

xihan123 commented Feb 4, 2025

我在本地部署了miband-heart-rate-bot
服务器地址,我尝试了

访问结果的都是0
curl -X GET "http://localhost:8000/latest-heart-rate"
{"timestamp":0,"heartRate":0}

所以服务器地址应该怎么写?

没有post数据肯定获取不到数据啊

@TheBug233
Copy link

为啥客户端用https,服务端用的http。。。

服务端反代之后客户端又报错证书不受信任。。。

@xihan123
Copy link
Owner

xihan123 commented Feb 7, 2025

为啥客户端用https,服务端用的http。。。

服务端反代之后客户端又报错证书不受信任。。。

这个需要你自己处理反代或者证书相关啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants