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

关于public final static String ACCESS_MSG_ADDRESS = "http://139.199.153.119:8080/msg_server"; #7

Open
haoqYang opened this issue Dec 2, 2018 · 17 comments

Comments

@haoqYang
Copy link

haoqYang commented Dec 2, 2018

public final static String ACCESS_MSG_ADDRESS = "http://139.199.153.119:8080/msg_server";
这个是自己写的服务端吗?通过网络访问不了啊

@haoqYang
Copy link
Author

haoqYang commented Dec 3, 2018

请问能不能提供一份服务端的代码

@DLTech21
Copy link
Owner

DLTech21 commented Dec 3, 2018

请认真阅读readme

@haoqYang
Copy link
Author

haoqYang commented Dec 3, 2018

您好,您在readme中说了要在UrlConstant.java更改两个常量,具体是要改成什么?115.159.211.199我也试了,还是访问不了,另外我在用真机调试app时,发现一个问题,notification没有对Android8.0进行适配:

Builder builder = new NotificationCompat.Builder(ctx)不再适用于Android8.0以上

当android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O时,应声明一个NotificationChannel,更改为Builder builder = new NotificationCompat.Builder(ctx,channelId)

@DLTech21
Copy link
Owner

DLTech21 commented Dec 3, 2018

public final static String BASE_API = "http://139.199.153.119:88";
public final static String ACCESS_MSG_ADDRESS = "http://139.199.153.119:8080/msg_server";

@haoqYang
Copy link
Author

haoqYang commented Dec 3, 2018

failed to connect to /139.199.153.119 (port 8080) from /192.168.1.100 (port 39672) after 60000ms: isConnected failed: ECONNREFUSED (Connection refused)

@DLTech21
Copy link
Owner

DLTech21 commented Dec 3, 2018

刚开了服务,在试试

@haoqYang
Copy link
Author

haoqYang commented Dec 3, 2018

好了,能不能提供一份服务器的代码,让我学习一下

@DLTech21
Copy link
Owner

DLTech21 commented Dec 3, 2018

请认真阅读readme,不是有服务器部署吗

@haoqYang
Copy link
Author

haoqYang commented Jan 4, 2019

再次请教一下,您这个public final static String BASE_API = "http://139.199.153.119:88"地址是自己又搭的服务器,还是用的teamtalk的?
我自己搭了一个teamtalk服务器,访问这个路径时,报这个错unexpected end of stream on Connection{192.168.182.130:88, proxy=DIRECT hostAddress=/192.168.182.130:88 cipherSuite=none protocol=http/1.1}

@haoqYang
Copy link
Author

haoqYang commented Jan 5, 2019

能不能请您加我qq602125621,我想向您请教一下

@DLTech21
Copy link
Owner

DLTech21 commented Jan 6, 2019

服务重启了,忘记开im的db服务

@haoqYang
Copy link
Author

haoqYang commented Jan 6, 2019

嗯,好的,您看能不能把注册登录那块的服务器给我一份,我在本地部署一下,省的每次都得麻烦你

@haoqYang
Copy link
Author

haoqYang commented Jan 6, 2019

现在登录连上服务器后,验证密码还是返回这个REFUSE_REASON_DB_VALIDATE_FAILED

@haoqYang
Copy link
Author

haoqYang commented Jan 7, 2019

老师,您好,请您看到了回复我一下,您看能不能把注册那块的服务器代码给我一份,我现在用您的服务器登录,您的辅助服务器验证通过了,也获取了用户信息,但是在请求teamtalk服务器时,验证失败了,说账号密码错误

@haoqYang
Copy link
Author

老师,您好,看到消息的话能不能把辅助服务端代码发到我邮箱[email protected]

@DLTech21
Copy link
Owner

是我的服务器数据库的编码类型更换导致没法校验的问题

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

No branches or pull requests

2 participants