同步PD问题:
修复游戏房发言重复/不显示问题 修复贵族不显示英文问题
This commit is contained in:
parent
c263e3543c
commit
d7ea130f86
@ -323,14 +323,14 @@ public class AppContext extends CommonAppContext {
|
|||||||
JSONObject map = received.getMsg().getJSONObject(0);
|
JSONObject map = received.getMsg().getJSONObject(0);
|
||||||
sendStartAnchorLive(map);
|
sendStartAnchorLive(map);
|
||||||
} else if (message.getTargetId().contains("v")) {
|
} else if (message.getTargetId().contains("v")) {
|
||||||
String contentJson = ((TextMessage) message.getContent()).getContent();
|
/*String contentJson = ((TextMessage) message.getContent()).getContent();
|
||||||
Log.e("wewe", contentJson);
|
Log.e("wewe", contentJson);
|
||||||
SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class);
|
SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class);
|
||||||
if (sudGameSocketImEvent.getMsg().isEmpty()) {
|
if (sudGameSocketImEvent.getMsg().isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sudGameSocketImEvent.getMsg().get(0).setTime(time);
|
sudGameSocketImEvent.getMsg().get(0).setTime(time);
|
||||||
Bus.get().post(sudGameSocketImEvent);
|
Bus.get().post(sudGameSocketImEvent);*/
|
||||||
}
|
}
|
||||||
//主播页面
|
//主播页面
|
||||||
if (TextUtils.isEmpty(PortraitLiveManager.liveID) && SocketSwClient.mSocketHandler != null) {
|
if (TextUtils.isEmpty(PortraitLiveManager.liveID) && SocketSwClient.mSocketHandler != null) {
|
||||||
|
@ -433,7 +433,6 @@ public class GameSwMicManager {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
String lastTime = "";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理游戏房Im消息
|
* 处理游戏房Im消息
|
||||||
@ -444,10 +443,7 @@ public class GameSwMicManager {
|
|||||||
if (msgDTOS.isEmpty()) return;
|
if (msgDTOS.isEmpty()) return;
|
||||||
SudGameSocketImEvent.MsgDTO msgDTO = msgDTOS.get(0);
|
SudGameSocketImEvent.MsgDTO msgDTO = msgDTOS.get(0);
|
||||||
|
|
||||||
if(lastTime.equals(msgDTO.getTime())){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
lastTime = msgDTO.getTime();
|
|
||||||
//正常文字消息
|
//正常文字消息
|
||||||
if (TextUtils.equals(msgDTO.getMethod(), "SendMsg")) {
|
if (TextUtils.equals(msgDTO.getMethod(), "SendMsg")) {
|
||||||
getView().insertItem(new SudGameChatImModel().setWelcomMessage(false).setNickname(msgDTO.getUname()).setTextMessage(msgDTO.getCt()));
|
getView().insertItem(new SudGameChatImModel().setWelcomMessage(false).setNickname(msgDTO.getUname()).setTextMessage(msgDTO.getCt()));
|
||||||
|
@ -86,7 +86,7 @@ public class SocketRyChatUtil {
|
|||||||
if (u == null) {
|
if (u == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
System.out.println("融云发言:" + u.getDress().getMedal_new_en());
|
||||||
final SocketSendBean msg =
|
final SocketSendBean msg =
|
||||||
new SocketSendBean()
|
new SocketSendBean()
|
||||||
.param("_method_", Constants.SOCKET_SEND_MSG)
|
.param("_method_", Constants.SOCKET_SEND_MSG)
|
||||||
|
@ -1007,6 +1007,7 @@ public class SocketRyClient {
|
|||||||
try {
|
try {
|
||||||
//增加粉丝徽章信息
|
//增加粉丝徽章信息
|
||||||
chatBean.setMedalNmae(map.getString("medal_name"));
|
chatBean.setMedalNmae(map.getString("medal_name"));
|
||||||
|
chatBean.setMedal_new_en(map.getString("medal_new_en"));
|
||||||
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
||||||
if (fansMedalBean != null)
|
if (fansMedalBean != null)
|
||||||
chatBean.setMedalLevelImageUrl(fansMedalBean.getThumb());
|
chatBean.setMedalLevelImageUrl(fansMedalBean.getThumb());
|
||||||
@ -1048,7 +1049,7 @@ public class SocketRyClient {
|
|||||||
chatBean.setBubble(obj.getString("bubble"));
|
chatBean.setBubble(obj.getString("bubble"));
|
||||||
chatBean.setMedal(obj.getString("medal"));
|
chatBean.setMedal(obj.getString("medal"));
|
||||||
chatBean.setMedal_new(obj.getString("medal_new"));
|
chatBean.setMedal_new(obj.getString("medal_new"));
|
||||||
chatBean.setMedal_new_en(map.getString("medal_new_en"));
|
chatBean.setMedal_new_en(obj.getString("medal_new_en"));
|
||||||
chatBean.setHot_num(obj.getString("hot_num"));
|
chatBean.setHot_num(obj.getString("hot_num"));
|
||||||
UserBean.DressBean dressBean = new UserBean.DressBean();
|
UserBean.DressBean dressBean = new UserBean.DressBean();
|
||||||
dressBean.setAvatar_frame(obj.getString("avatar_frame"));
|
dressBean.setAvatar_frame(obj.getString("avatar_frame"));
|
||||||
@ -1069,6 +1070,7 @@ public class SocketRyClient {
|
|||||||
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
||||||
u.setFansLevel(obj.getIntValue("medal_level"));
|
u.setFansLevel(obj.getIntValue("medal_level"));
|
||||||
u.setFansEnterRoomUrl(obj.getString("medal_backgroup_thumb"));
|
u.setFansEnterRoomUrl(obj.getString("medal_backgroup_thumb"));
|
||||||
|
CommonAppConfig.getInstance().getUserBean().getDress().setMedal_new_en(obj.getString("medal_new_en"));
|
||||||
if (fansMedalBean != null)
|
if (fansMedalBean != null)
|
||||||
chatBean.setMedalLevelImageUrl(fansMedalBean.getThumb());
|
chatBean.setMedalLevelImageUrl(fansMedalBean.getThumb());
|
||||||
mListener.onEnterRoom(new LiveEnterRoomBean(u, chatBean));
|
mListener.onEnterRoom(new LiveEnterRoomBean(u, chatBean));
|
||||||
|
@ -85,7 +85,7 @@ public class SocketSwChatUtil {
|
|||||||
if (u == null) {
|
if (u == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
System.out.println("声网发言:" + u.getDress().getMedal_new_en());
|
||||||
final SocketSendBean msg =
|
final SocketSendBean msg =
|
||||||
new SocketSendBean()
|
new SocketSendBean()
|
||||||
.param("_method_", Constants.SOCKET_SEND_MSG)
|
.param("_method_", Constants.SOCKET_SEND_MSG)
|
||||||
@ -99,6 +99,7 @@ public class SocketSwChatUtil {
|
|||||||
.param("medal_honor", u.getMedal_no_display_src())
|
.param("medal_honor", u.getMedal_no_display_src())
|
||||||
.param("medal", u.getDress().getMedal())
|
.param("medal", u.getDress().getMedal())
|
||||||
.param("medal_new", u.getDress().getMedal_new())
|
.param("medal_new", u.getDress().getMedal_new())
|
||||||
|
.param("medal_new_en", u.getDress().getMedal_new_en())
|
||||||
.param("uid", u.getId())
|
.param("uid", u.getId())
|
||||||
.param("liangname", u.getGoodName())
|
.param("liangname", u.getGoodName())
|
||||||
.param("vip_type", u.getVip().getType())
|
.param("vip_type", u.getVip().getType())
|
||||||
@ -180,6 +181,7 @@ public class SocketSwChatUtil {
|
|||||||
.param("bubble", u.getDress().getBubble())
|
.param("bubble", u.getDress().getBubble())
|
||||||
.param("medal", u.getDress().getMedal())
|
.param("medal", u.getDress().getMedal())
|
||||||
.param("medal_new", u.getDress().getMedal_new())
|
.param("medal_new", u.getDress().getMedal_new())
|
||||||
|
.param("medal_new_en", u.getDress().getMedal_new_en())
|
||||||
.param("guard_type", IMLoginManager.get(CommonAppContext.sInstance.getApplicationContext()).getGuardType())
|
.param("guard_type", IMLoginManager.get(CommonAppContext.sInstance.getApplicationContext()).getGuardType())
|
||||||
.param("medal_name", u.getMedalName())
|
.param("medal_name", u.getMedalName())
|
||||||
.param("medal_level", u.getMedalLevel())
|
.param("medal_level", u.getMedalLevel())
|
||||||
|
@ -913,6 +913,7 @@ public class SocketSwClient {
|
|||||||
try {
|
try {
|
||||||
//增加粉丝徽章信息
|
//增加粉丝徽章信息
|
||||||
chatBean.setMedalNmae(map.getString("medal_name"));
|
chatBean.setMedalNmae(map.getString("medal_name"));
|
||||||
|
chatBean.setMedal_new_en(map.getString("medal_new_en"));
|
||||||
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
||||||
if (fansMedalBean != null)
|
if (fansMedalBean != null)
|
||||||
chatBean.setMedalLevelImageUrl(fansMedalBean.getThumb());
|
chatBean.setMedalLevelImageUrl(fansMedalBean.getThumb());
|
||||||
@ -954,6 +955,7 @@ public class SocketSwClient {
|
|||||||
chatBean.setBubble(obj.getString("bubble"));
|
chatBean.setBubble(obj.getString("bubble"));
|
||||||
chatBean.setMedal(obj.getString("medal"));
|
chatBean.setMedal(obj.getString("medal"));
|
||||||
chatBean.setMedal_new(obj.getString("medal_new"));
|
chatBean.setMedal_new(obj.getString("medal_new"));
|
||||||
|
chatBean.setMedal_new_en(obj.getString("medal_new_en"));
|
||||||
chatBean.setHot_num(obj.getString("hot_num"));
|
chatBean.setHot_num(obj.getString("hot_num"));
|
||||||
UserBean.DressBean dressBean = new UserBean.DressBean();
|
UserBean.DressBean dressBean = new UserBean.DressBean();
|
||||||
dressBean.setAvatar_frame(obj.getString("avatar_frame"));
|
dressBean.setAvatar_frame(obj.getString("avatar_frame"));
|
||||||
@ -971,6 +973,7 @@ public class SocketSwClient {
|
|||||||
//增加粉丝徽章信息
|
//增加粉丝徽章信息
|
||||||
chatBean.setMedalNmae(obj.getString("medal_name"));
|
chatBean.setMedalNmae(obj.getString("medal_name"));
|
||||||
chatBean.setUserNiceName(obj.getString("user_nicename"));//名字
|
chatBean.setUserNiceName(obj.getString("user_nicename"));//名字
|
||||||
|
CommonAppConfig.getInstance().getUserBean().getDress().setMedal_new_en(obj.getString("medal_new_en"));
|
||||||
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(map.getIntValue("medal_level"));
|
||||||
u.setFansLevel(obj.getIntValue("medal_level"));
|
u.setFansLevel(obj.getIntValue("medal_level"));
|
||||||
u.setFansEnterRoomUrl(obj.getString("medal_backgroup_thumb"));
|
u.setFansEnterRoomUrl(obj.getString("medal_backgroup_thumb"));
|
||||||
|
Loading…
Reference in New Issue
Block a user