|
@@ -17,6 +17,7 @@ import java.io.Serializable;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
+import java.util.Locale;
|
|
|
|
|
|
/**
|
|
|
* Description
|
|
@@ -56,7 +57,8 @@ public class TencentData {
|
|
|
CallbackAfterMemberExit res = new CallbackAfterMemberExit();
|
|
|
|
|
|
JSONObject jsonObject = JSON.parseObject(jsonString);
|
|
|
- res.setCallbackCommand(ETencentImCallbackCommand.valueOf(jsonObject.getString("CallbackCommand")));
|
|
|
+ res.setCallbackCommand(ETencentImCallbackCommand.valueOf(jsonObject.getString("CallbackCommand").replace(".","_").toUpperCase(
|
|
|
+ Locale.ROOT)));
|
|
|
res.setGroupId(jsonObject.getString("GroupId"));
|
|
|
res.setType(jsonObject.getObject("Type",ETencentGroupType.class));
|
|
|
res.setExitType(jsonObject.getString("ExitType"));
|
|
@@ -113,7 +115,8 @@ public class TencentData {
|
|
|
CallbackOnMemberStateChange res = new CallbackOnMemberStateChange();
|
|
|
|
|
|
JSONObject jsonObject = JSON.parseObject(jsonString);
|
|
|
- res.setCallbackCommand(ETencentImCallbackCommand.valueOf(jsonObject.getString("CallbackCommand")));
|
|
|
+ res.setCallbackCommand(ETencentImCallbackCommand.valueOf(jsonObject.getString("CallbackCommand").replace(".","_").toUpperCase(
|
|
|
+ Locale.ROOT)));
|
|
|
res.setGroupId(jsonObject.getString("GroupId"));
|
|
|
|
|
|
JSONArray exitMemberList = jsonObject.getJSONArray("MemberList");
|
|
@@ -162,7 +165,8 @@ public class TencentData {
|
|
|
CallbackAfterNewMemberJoin res = new CallbackAfterNewMemberJoin();
|
|
|
|
|
|
JSONObject jsonObject = JSON.parseObject(jsonString);
|
|
|
- res.setCallbackCommand(ETencentImCallbackCommand.valueOf(jsonObject.getString("CallbackCommand")));
|
|
|
+ res.setCallbackCommand(ETencentImCallbackCommand.valueOf(jsonObject.getString("CallbackCommand").replace(".","_").toUpperCase(
|
|
|
+ Locale.ROOT)));
|
|
|
res.setGroupId(jsonObject.getString("GroupId"));
|
|
|
res.setType(jsonObject.getObject("Type",ETencentGroupType.class));
|
|
|
res.setJoinType(jsonObject.getString("JoinType"));
|