提交 cdf07ed8 authored 作者: 祁增奎's avatar 祁增奎

优化公告提醒

上级 7f36f823
...@@ -63,12 +63,13 @@ abstract class BaseMessageConfig ...@@ -63,12 +63,13 @@ abstract class BaseMessageConfig
} }
// 处理socket消息 // 处理socket消息
void _handleMessage(dynamic data, context) { void _handleMessage(dynamic data, context) async {
var mBizType = data?['bizType']; var mBizType = data?['bizType'];
if (mBizType == bizType) { if (mBizType == bizType) {
var body = MessageData.fromJson(data?['body']); var body = MessageData.fromJson(data?['body']);
if (body.showType == '1') { if (body.showType == '1') {
if (onShowAnnouncementMessage(body.toJson()) == null) { final result = await onShowAnnouncementMessage(body.toJson());
if (result == null) {
/// 首页公告 /// 首页公告
insertNotice(body); insertNotice(body);
} }
......
name: clx_flutter_message name: clx_flutter_message
description: An in-app messaging plugin description: An in-app messaging plugin
version: 0.0.3 version: 0.0.4
homepage: homepage:
environment: environment:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论