Skip to content

Commit a6d613f

Browse files
authored
Merge pull request #1038 from haoxiuwen/doc-v2
Modify IM Docs
2 parents e87f3f7 + c026569 commit a6d613f

File tree

12 files changed

+40
-1
lines changed

12 files changed

+40
-1
lines changed

docs/document/android/message_send_receive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,3 +664,7 @@ EMClient.getInstance().chatManager().sendMessage(message);
664664
message.getStringAttribute("attribute1",null);
665665
message.getBooleanAttribute("attribute2", false)
666666
```
667+
668+
## 注意事项
669+
670+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。

docs/document/applet/message_send_receive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,3 +825,7 @@ function sendTextMessage() {
825825
});
826826
}
827827
```
828+
829+
## 注意事项
830+
831+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。

docs/document/flutter/message_send_receive.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,4 +652,8 @@ try {
652652
msg.attributes = {'k': 'v'};
653653
EMClient.getInstance.chatManager.sendMessage(msg);
654654
} on EMError catch (e) {}
655-
```
655+
```
656+
657+
## 注意事项
658+
659+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。

docs/document/harmonyos/message_send_receive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,3 +549,7 @@ let exts = message.ext();
549549
let attr1 = exts.get("attribute1") as string;
550550
let attr2 = exts.get("attribute2") as boolean;
551551
```
552+
553+
## 注意事项
554+
555+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。

docs/document/ios/message_send_receive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,3 +589,7 @@ message.chatType = EMChatTypeChat;
589589
NSString *value = [message.ext objectForKey:@"attribute"]; }
590590
}
591591
```
592+
593+
## 注意事项
594+
595+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。

docs/document/react-native/message_send_receive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,3 +535,7 @@ msg.attributes = {
535535
};
536536
EMClient.getInstance().chatManager().sendMessage(msg, callback).then().catch();
537537
```
538+
539+
## 注意事项
540+
541+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。

docs/document/server-side/message_chatroom.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
1. 接口调用过程中,请求体和扩展字段的总长度不能超过 5 KB。
99
2. 聊天室中发消息时,不会同步给发送方。
1010
3. 通过 RESTful 接口发送的消息默认不写入会话列表,若需要此类消息写入会话列表,需在[环信即时通讯控制台开通](/product/enable_and_configure_IM.html#设置通过-restful-api-发送的消息写入会话列表)
11+
4. [内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。
1112
:::
1213

1314
**发送频率**:对于单个 app,该 REST API 存在以下三个限制:

docs/document/server-side/message_group.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
1. 接口调用过程中,请求体和扩展字段的总长度不能超过 5 KB。
1111
2. 群组中发送的消息均同步给发送方。
1212
3. 通过 RESTful 接口发送的消息默认不写入会话列表,若需要此类消息写入会话列表,需在[环信即时通讯控制台开通](/product/enable_and_configure_IM.html#设置通过-restful-api-发送的消息写入会话列表)
13+
4. [内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。
1314
:::
1415

1516
**发送频率**:对于单个 app,该 REST API 存在以下三个限制:

docs/document/server-side/message_single.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
:::tip
5050
1. 接口调用过程中,请求体和扩展字段的总长度不能超过 5 KB。
5151
2. 通过 RESTful 接口发送的消息默认不写入会话列表,若需要此类消息写入会话列表,需在[环信即时通讯控制台开通](/product/enable_and_configure_IM.html#设置通过-restful-api-发送的消息写入会话列表)
52+
3. [内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。
5253
:::
5354

5455
**发送频率**:对于单个 app,该 REST API 存在以下三个限制:

docs/document/unity/message_send_receive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,3 +643,7 @@ if (found) {
643643
}
644644
```
645645

646+
## 注意事项
647+
648+
[内容审核服务会关注消息 body 中指定字段的内容,不同类型的消息审核不同的字段](/product/moderation/moderation_mechanism.html),若创建消息时在这些字段中传入了很多业务信息,可能会影响审核效果。因此,创建消息时需要注意内容审核的字段不涉及业务信息,建议业务信息放在扩展字段中。
649+

0 commit comments

Comments
 (0)