pull/4/head
3y 3 years ago
parent 9482c87198
commit 7b0736fc20

@ -22,6 +22,8 @@ public enum AnchorState {
WHITE_LIST(50, "白名单过滤"),
SEND_SUCCESS(60, "消息下发成功"),
SEND_FAIL(70, "消息下发失败"),
CLICK(0100, "消息被点击"),
;

@ -33,10 +33,11 @@ public abstract class Handler {
}
public void doHandler(TaskInfo taskInfo) {
if (!handler(taskInfo)) {
LogUtils.print(AnchorInfo.builder().state(AnchorState.SEND_FAIL.getCode()).businessId(taskInfo.getBusinessId()).ids(taskInfo.getReceiver()).build());
if (handler(taskInfo)) {
LogUtils.print(AnchorInfo.builder().state(AnchorState.SEND_SUCCESS.getCode()).businessId(taskInfo.getBusinessId()).ids(taskInfo.getReceiver()).build());
return;
}
LogUtils.print(AnchorInfo.builder().state(AnchorState.SEND_SUCCESS.getCode()).businessId(taskInfo.getBusinessId()).ids(taskInfo.getReceiver()).build());
LogUtils.print(AnchorInfo.builder().state(AnchorState.SEND_FAIL.getCode()).businessId(taskInfo.getBusinessId()).ids(taskInfo.getReceiver()).build());
}
/**

Loading…
Cancel
Save