123
This commit is contained in:
@@ -16,6 +16,7 @@ import com.ruoyi.cai.ws.bean.Room;
|
||||
import com.ruoyi.cai.ws.dto.WsRMsgGen;
|
||||
import com.ruoyi.cai.ws.handler.IMessageHandler;
|
||||
import com.ruoyi.cai.ws.handler.AbstractMessageHandle;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -65,6 +66,10 @@ public class GiftMessageHandler extends AbstractMessageHandle implements IMessag
|
||||
sendToCurrent(fdCtxData,WsRMsgGen.sysNotice("赠送失败,请重试"));
|
||||
return;
|
||||
}
|
||||
} catch (ServiceException e){
|
||||
log.error("直播送礼物失败!req={}", JSON.toJSONString(giveGiftReq),e);
|
||||
sendToCurrent(fdCtxData,WsRMsgGen.sysNotice(e.getMessage()));
|
||||
return;
|
||||
} catch (Exception e){
|
||||
log.error("直播送礼物失败!req={}", JSON.toJSONString(giveGiftReq),e);
|
||||
sendToCurrent(fdCtxData,WsRMsgGen.sysNotice("赠送失败,请重试"));
|
||||
|
||||
Reference in New Issue
Block a user