...
 
Commits (4)
    https://gitcode.net/dcloud/uni-im/-/commit/5ca774b6fff8b05c55c408bdca2cd6f6c48e3ebf 3.0.0 2024-05-06T15:53:30+08:00 DCloud_JSON linju@dcloud.io https://gitcode.net/dcloud/uni-im/-/commit/21ebf6043514c24ea6a0711c32b600c9177e90c1 更新 解决消息内容包含关键词“个推”时会被拦截的问题 2024-05-07T15:28:03+08:00 DCloud_JSON linju@dcloud.io https://gitcode.net/dcloud/uni-im/-/commit/5157a2b18b6bc8f118c0cf86c8d6871f0242d6c1 Update index.obj.js 2024-05-07T17:27:54+08:00 DCloud_JSON linju@dcloud.io https://gitcode.net/dcloud/uni-im/-/commit/403ca61550a57a6d5e6925cddf276f513894e754 Update push.js 2024-05-07T17:28:59+08:00 DCloud_JSON linju@dcloud.io
## 3.0.0(2024-05-06)
【重要】更新整体架构,支持子插件
## 2.0.11(2023-06-12)
- 修复 当引用的内容较长且包含换行符时,引用内容会盖住输入框的问题
## 2.0.10(2023-05-25)
......
{
"id": "uni-im",
"displayName": "uni-im",
"version": "2.0.10",
"version": "3.0.0",
"description": "uni-im是云端一体的、全平台的、免费的、开源即时通讯系统",
"keywords": [
"im,即时通讯,客服,聊天"
],
"repository": "https://gitcode.net/dcloud/hello-uni-im",
"engines": {
"HBuilderX": "^3.8.5"
"HBuilderX": "^4.08"
},
"dcloudext": {
"sale": {
......@@ -44,11 +44,12 @@
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
"aliyun": "y",
"alipay": "y"
},
"client": {
"Vue": {
"vue2": "y",
"vue2": "n",
"vue3": "y"
},
"App": {
......@@ -56,10 +57,10 @@
"app-nvue": "y"
},
"H5-mobile": {
"Safari": "n",
"Android Browser": "y",
"Safari": "y",
"Android Browser": "u",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
"QQ浏览器(Android)": "u"
},
"H5-pc": {
"Chrome": "y",
......
......@@ -1246,6 +1246,13 @@
let index = this.conversation.msgList.findIndex(i => i.unique_id == msg.unique_id)
// 生成新对象,否则不触发更新
msg = Object.assign({}, msg)
// 检查内容不是包含 个推 两个字,有则 改成 个 + 零宽字符 + 推
let tmpBody = JSON.stringify(msg.body)
if(tmpBody.includes('个推')){
msg.body = JSON.parse(tmpBody.replace(/个推/g,'个\u200b推'))
}
uniImCo.sendMsg(msg)
.then(async e => {
// console.log('uniImCo.sendMsg',{e,msg});
......
......@@ -58,7 +58,7 @@ module.exports = {
async _after(error, result) {
// 请求完成时间
console.error('请求完成时间', Date.now() - this.requestStartTime, 'ms')
// console.error('请求完成时间', Date.now() - this.requestStartTime, 'ms')
if (error) {
// console.log({
......@@ -78,6 +78,8 @@ module.exports = {
await Promise.all(this._promises)
}
// console.error('云函数结束时间', Date.now() - this.requestStartTime, 'ms')
return result || { errCode: 0 }
},
......
......@@ -80,7 +80,7 @@ async function sendPushMsg(param, appId) {
}
}
if (noPushOffline) {
console.error('uni-im特殊消息,默认不走厂商通道,只走个推通道')
// console.error('uni-im特殊消息,默认不走厂商通道,只走个推通道')
pushParam.settings.strategy = {
"default": 3
}
......