Fix messages

- WebcastSocialMessage
  - ImDeleteMessage
This commit is contained in:
JW
2023-08-22 20:47:27 +02:00
parent 6254443755
commit 26c7db8f99
15 changed files with 70 additions and 30 deletions

View File

@@ -119,7 +119,7 @@ public class WebResponseHandler extends WebResponseHandlerBase {
var message = WebcastSocialMessage.parseFrom(msg.getBinary());
String type = message.getHeader().getSocialData().getType();
Pattern pattern = Pattern.compile("pm_mt_guidance_viewer_([0-9]+)_share");
Pattern pattern = Pattern.compile("\\d+");
Matcher matcher = pattern.matcher(type);
if (matcher.find()) {
var value = matcher.group(0);

View File

@@ -78,7 +78,7 @@ public abstract class WebResponseHandlerBase {
}
}
private void handleSingleMessage(WebcastResponse.Message message) throws Exception {
public void handleSingleMessage(WebcastResponse.Message message) throws Exception {
if (!handlers.containsKey(message.getType())) {
tikTokEventHandler.publish(new TikTokUnhandledEvent(message));
return;