...
 
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.11(2023-06-12)
- 修复 当引用的内容较长且包含换行符时,引用内容会盖住输入框的问题 - 修复 当引用的内容较长且包含换行符时,引用内容会盖住输入框的问题
## 2.0.10(2023-05-25) ## 2.0.10(2023-05-25)
......
{ {
"id": "uni-im", "id": "uni-im",
"displayName": "uni-im", "displayName": "uni-im",
"version": "2.0.10", "version": "3.0.0",
"description": "uni-im是云端一体的、全平台的、免费的、开源即时通讯系统", "description": "uni-im是云端一体的、全平台的、免费的、开源即时通讯系统",
"keywords": [ "keywords": [
"im,即时通讯,客服,聊天" "im,即时通讯,客服,聊天"
], ],
"repository": "https://gitcode.net/dcloud/hello-uni-im", "repository": "https://gitcode.net/dcloud/hello-uni-im",
"engines": { "engines": {
"HBuilderX": "^3.8.5" "HBuilderX": "^4.08"
}, },
"dcloudext": { "dcloudext": {
"sale": { "sale": {
...@@ -44,11 +44,12 @@ ...@@ -44,11 +44,12 @@
"platforms": { "platforms": {
"cloud": { "cloud": {
"tcb": "y", "tcb": "y",
"aliyun": "y" "aliyun": "y",
"alipay": "y"
}, },
"client": { "client": {
"Vue": { "Vue": {
"vue2": "y", "vue2": "n",
"vue3": "y" "vue3": "y"
}, },
"App": { "App": {
...@@ -56,10 +57,10 @@ ...@@ -56,10 +57,10 @@
"app-nvue": "y" "app-nvue": "y"
}, },
"H5-mobile": { "H5-mobile": {
"Safari": "n", "Safari": "y",
"Android Browser": "y", "Android Browser": "u",
"微信浏览器(Android)": "y", "微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y" "QQ浏览器(Android)": "u"
}, },
"H5-pc": { "H5-pc": {
"Chrome": "y", "Chrome": "y",
......
...@@ -1246,6 +1246,13 @@ ...@@ -1246,6 +1246,13 @@
let index = this.conversation.msgList.findIndex(i => i.unique_id == msg.unique_id) let index = this.conversation.msgList.findIndex(i => i.unique_id == msg.unique_id)
// 生成新对象,否则不触发更新 // 生成新对象,否则不触发更新
msg = Object.assign({}, msg) msg = Object.assign({}, msg)
// 检查内容不是包含 个推 两个字,有则 改成 个 + 零宽字符 + 推
let tmpBody = JSON.stringify(msg.body)
if(tmpBody.includes('个推')){
msg.body = JSON.parse(tmpBody.replace(/个推/g,'个\u200b推'))
}
uniImCo.sendMsg(msg) uniImCo.sendMsg(msg)
.then(async e => { .then(async e => {
// console.log('uniImCo.sendMsg',{e,msg}); // console.log('uniImCo.sendMsg',{e,msg});
......
...@@ -58,7 +58,7 @@ module.exports = { ...@@ -58,7 +58,7 @@ module.exports = {
async _after(error, result) { async _after(error, result) {
// 请求完成时间 // 请求完成时间
console.error('请求完成时间', Date.now() - this.requestStartTime, 'ms') // console.error('请求完成时间', Date.now() - this.requestStartTime, 'ms')
if (error) { if (error) {
// console.log({ // console.log({
...@@ -77,6 +77,8 @@ module.exports = { ...@@ -77,6 +77,8 @@ module.exports = {
if (this._promises.length > 0) { if (this._promises.length > 0) {
await Promise.all(this._promises) await Promise.all(this._promises)
} }
// console.error('云函数结束时间', Date.now() - this.requestStartTime, 'ms')
return result || { errCode: 0 } return result || { errCode: 0 }
}, },
......
...@@ -80,7 +80,7 @@ async function sendPushMsg(param, appId) { ...@@ -80,7 +80,7 @@ async function sendPushMsg(param, appId) {
} }
} }
if (noPushOffline) { if (noPushOffline) {
console.error('uni-im特殊消息,默认不走厂商通道,只走个推通道') // console.error('uni-im特殊消息,默认不走厂商通道,只走个推通道')
pushParam.settings.strategy = { pushParam.settings.strategy = {
"default": 3 "default": 3
} }
......