|
|
|
@ -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());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|