Commit e52c69cf by 郭倩芳

common 发包,修改登录接口text

parent 4972db66
...@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) { ...@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext { ext {
PUBLISH_GROUP_ID = "com.sobot.library" //项目包名 PUBLISH_GROUP_ID = "com.sobot.library" //项目包名
PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名 PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名
PUBLISH_VERSION = '1.7.7.2' //版本号 PUBLISH_VERSION = '1.7.7.3' //版本号
} }
......
...@@ -95,7 +95,7 @@ public class SobotLoginTools { ...@@ -95,7 +95,7 @@ public class SobotLoginTools {
public void setHostModel(HostModel newHostModel) { public void setHostModel(HostModel newHostModel) {
HostManager.getInstance().deleteAll(); HostManager.getInstance().deleteAll();
if (newHostModel != null) { if (newHostModel != null) {
if ((newHostModel.getHost().contains("test-branche1")) || (newHostModel.getHost().contains("api-c.sobot.com") || newHostModel.getHost().contains("api-c.soboten.com")) && (!newHostModel.getHost().contains("api-c.sobot.com/text") && !newHostModel.getHost().contains("api-c.soboten.com/text"))) { if ((newHostModel.getHost().contains("api-c")) && (!newHostModel.getHost().contains("api-c.sobot.com/text") && !newHostModel.getHost().contains("api-c.soboten.com/text"))) {
if (!newHostModel.getHost().endsWith("/")) { if (!newHostModel.getHost().endsWith("/")) {
newHostModel.setHost(newHostModel.getHost() + "/text/"); newHostModel.setHost(newHostModel.getHost() + "/text/");
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment