2025-04-30 14:28:07 +08:00
|
|
|
|
/**
|
|
|
|
|
* @description 文本内容审核
|
|
|
|
|
* AuditName:1600080789_1745821176_amtwGf
|
|
|
|
|
* ContentType:Text|Image|Audio|Video
|
|
|
|
|
* Content:需要审核的文本内容
|
|
|
|
|
* ExtSender:im的id,这里对应的是用户手机号
|
|
|
|
|
* ExtReceiver:接收方的信息,选填
|
|
|
|
|
*/
|
|
|
|
|
import {
|
|
|
|
|
http,
|
|
|
|
|
Method
|
|
|
|
|
} from "@/utils/request.js";
|
|
|
|
|
|
|
|
|
|
export function checkText({
|
|
|
|
|
ExtSender,
|
|
|
|
|
Content,
|
|
|
|
|
}) {
|
|
|
|
|
return http.request({
|
2025-05-14 04:25:36 +08:00
|
|
|
|
url: 'https://console.tim.qq.com/v4/im_msg_audit/content_moderation',
|
2025-04-30 14:28:07 +08:00
|
|
|
|
method: Method.POST,
|
|
|
|
|
params: {
|
|
|
|
|
sdkappid: '1600080789',
|
|
|
|
|
identifier: 'administrator',
|
|
|
|
|
usersig: 'eJwtjEELgjAYhv-LroV9zi2n0CU6VBSRJV28jLbiK7SxjRxE-z1Tj*-zvDwfct6dore2JCc0AjLtNyrdeLxhj6WqsUHnrfQvOx6cekpjUJE8ngOAgFRkg9HBoNUd55zTTg3UY-1nKeOCJomIxwreu76BMnv4TcGXZTVrgMVMFm6795NQH8OateqK7CBbu7oYWJDvD4AYNPU_',
|
|
|
|
|
random: Math.floor(Math.random() * (4294967295 + 1)),
|
|
|
|
|
contenttype: 'json'
|
|
|
|
|
},
|
|
|
|
|
data: {
|
2025-05-14 04:25:36 +08:00
|
|
|
|
AuditName: '1600080789_1745821176_amtwGf',
|
2025-04-30 14:28:07 +08:00
|
|
|
|
ContentType: 'Text',
|
|
|
|
|
Content,
|
|
|
|
|
ExtSender
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|