Commit 48bd0359 by jscat

nyx weapp: 功能更新

1. 每次进入直播大厅,都需要系统进行提示, refer 微信游戏-王者

  // 2. (自己登陆,不需要重复发送), jscat20201127: 也需要
  //  app.globalData.onOpenOp.key!=true: 初次登陆
  //  _this.data.chatUserInfo.userid != app.globalData.nyxCode 非自己
parent 73dea9dc
...@@ -823,17 +823,12 @@ Page({ ...@@ -823,17 +823,12 @@ Page({
//jscat 20200314 most important! //jscat 20200314 most important!
// 判断内容是否显示 // 判断内容是否显示
// 1. 发送data,同时非自己 // 1. 发送data,同时非自己
// 2. (自己登陆,不需要重复发送), // 2. (自己登陆,不需要重复发送), jscat20201127: 也需要
// app.globalData.onOpenOp.key!=true: 初次登陆
// _this.data.chatUserInfo.userid != app.globalData.nyxCode 非自己
// 3. (竞答完成后,需要发送内容) // 3. (竞答完成后,需要发送内容)
// 4. (别人登陆, 需要发送) // 4. (别人登陆, 需要发送)
if (
(app.globalData.onOpenOp.key!=true)
|| (_this.data.chatUserInfo.userid != app.globalData.nyxCode)
)
{
messageArr.push(objL); messageArr.push(objL);
}
app.globalData.onOpenOp.key = true;
let newMessageArr = _this.data.messageList.concat(messageArr); let newMessageArr = _this.data.messageList.concat(messageArr);
......
...@@ -808,14 +808,7 @@ Page({ ...@@ -808,14 +808,7 @@ Page({
// 2. (自己登陆,不需要重复发送), // 2. (自己登陆,不需要重复发送),
// 3. (竞答完成后,需要发送内容) // 3. (竞答完成后,需要发送内容)
// 4. (别人登陆, 需要发送) // 4. (别人登陆, 需要发送)
if (
(app.globalData.onOpenOp.key!=true)
|| (_this.data.chatUserInfo.userid != app.globalData.nyxCode)
)
{
messageArr.push(objL); messageArr.push(objL);
}
app.globalData.onOpenOp.key = true;
let newMessageArr = _this.data.messageList.concat(messageArr); let newMessageArr = _this.data.messageList.concat(messageArr);
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"postcss": true, "postcss": true,
"preloadBackgroundData": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"coverView": true, "coverView": true,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论