天眼日志添加
parent
d5dc87e1cd
commit
0b0f021bf5
|
@ -487,14 +487,13 @@ public class MessageUtil {
|
||||||
v3.setFrom(buildChatUser(me));
|
v3.setFrom(buildChatUser(me));
|
||||||
v3.setContent(msg);
|
v3.setContent(msg);
|
||||||
|
|
||||||
if (skyEyeExtraMap.isEmpty()){
|
JSONObject object = new JSONObject();
|
||||||
String url = Optional.ofNullable(ConfigurableApplicationContextManager.getBean(SkyEyeAutoConfigration.class))
|
String url = Optional.ofNullable(ConfigurableApplicationContextManager.getBean(SkyEyeAutoConfigration.class))
|
||||||
.map(SkyEyeAutoConfigration::getSkyEyeProperties)
|
.map(SkyEyeAutoConfigration::getSkyEyeProperties)
|
||||||
.map(SkyEyeProperties::getGmAddress)
|
.map(SkyEyeProperties::getGmAddress)
|
||||||
.orElse("");
|
.orElse("");
|
||||||
skyEyeExtraMap.put("url",url);
|
object.put("url",url);
|
||||||
}
|
v3.setExtra(object.toJSONString());
|
||||||
v3.setExtra(JSONObject.toJSONString(skyEyeExtraMap));
|
|
||||||
|
|
||||||
ISession iSession = OnlineUserManager.getSessionByUid(me.getId());
|
ISession iSession = OnlineUserManager.getSessionByUid(me.getId());
|
||||||
String ip = Optional.ofNullable(iSession).map(v->v.getChannel().getLocalAddress().getHostString()).orElse("");
|
String ip = Optional.ofNullable(iSession).map(v->v.getChannel().getLocalAddress().getHostString()).orElse("");
|
||||||
|
@ -524,6 +523,7 @@ public class MessageUtil {
|
||||||
* @param chatV3
|
* @param chatV3
|
||||||
*/
|
*/
|
||||||
private static void skyEyeSendMsg(ChatProto.ChatV3 chatV3){
|
private static void skyEyeSendMsg(ChatProto.ChatV3 chatV3){
|
||||||
|
LOGGER.info("天眼上报,参数:【{}】",chatV3.toBuilder().toString());
|
||||||
SkyEyeAutoConfigration netServerConfig = ConfigurableApplicationContextManager.getBean(SkyEyeAutoConfigration.class);
|
SkyEyeAutoConfigration netServerConfig = ConfigurableApplicationContextManager.getBean(SkyEyeAutoConfigration.class);
|
||||||
SkyEyeProperties properties = netServerConfig.getSkyEyeProperties();
|
SkyEyeProperties properties = netServerConfig.getSkyEyeProperties();
|
||||||
if(properties == null){
|
if(properties == null){
|
||||||
|
|
Loading…
Reference in New Issue