Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
company_app
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
company_app
Commits
00afd8bc
提交
00afd8bc
authored
6月 06, 2025
作者:
毛细亚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发送游戏成功
上级
6eb7fa02
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
6 行删除
+10
-6
main.js
src/main.js
+2
-1
gameLogMixin.js
src/mixins/gameLogMixin.js
+7
-4
createChannel.vue
...views/components/quickSendGame/sendGame/createChannel.vue
+1
-1
没有找到文件。
src/main.js
浏览文件 @
00afd8bc
...
...
@@ -14,7 +14,7 @@ import moment from 'moment'
import
VConsole
from
'vconsole'
;
import
uploading
from
'@/utils/cos-upload'
import
errorHandle
from
'@/utils/errorHandle'
import
{
getParams
}
from
'@/utils/index'
import
{
getParams
,
deepClone
}
from
'@/utils/index'
import
*
as
ww
from
'@wecom/jssdk'
import
globalComponent
from
'@/components/register.js'
import
loadmore
from
'@/directive/loadmore/index.js'
// 加载更多
...
...
@@ -37,6 +37,7 @@ Vue.prototype.$cookies = Cookies;
Vue
.
prototype
.
$lodash
=
_
;
Vue
.
prototype
.
$moment
=
moment
;
Vue
.
prototype
.
$ww
=
ww
;
Vue
.
prototype
.
$clone
=
deepClone
// vue原型挂载递归拷贝方法
new
Vue
({
router
,
store
,
...
...
src/mixins/gameLogMixin.js
浏览文件 @
00afd8bc
...
...
@@ -41,10 +41,12 @@ export default {
* @param {*} type 消息类型
*/
async
sendChatMessage
(
content
,
type
)
{
// 开始发送
console
.
log
(
content
,
type
,
'content,type'
,
this
.
pendingGameLog
,
this
.
isLoggingEnabled
)
try
{
// 调用原始的sendChatMessage方法
const
result
=
await
originalSendChatMessage
(
content
,
type
)
console
.
log
(
result
,
'发送成功的回调'
)
// 如果有待记录的游戏日志,则记录
if
(
this
.
pendingGameLog
&&
this
.
isLoggingEnabled
)
{
await
this
.
recordGameLog
(
result
,
content
,
type
)
...
...
@@ -64,13 +66,15 @@ export default {
* @param {String} type 消息类型
*/
async
recordGameLog
(
messageInfo
,
content
,
type
)
{
console
.
log
(
messageInfo
,
content
,
type
,
'进入记日志方法'
)
if
(
!
this
.
pendingGameLog
)
{
return
}
try
{
const
chatUser
=
this
.
chatUserForLog
console
.
log
(
this
.
pendingGameLog
,
'pendingGameLog'
)
// 构建日志数据
const
logData
=
{
game_id
:
this
.
pendingGameLog
.
game_id
,
...
...
@@ -78,7 +82,7 @@ export default {
game_type
:
this
.
pendingGameLog
.
game_type
||
''
,
main_game_id
:
this
.
pendingGameLog
.
main_game_id
||
''
,
weixin_blongs_id
:
this
.
pendingGameLog
.
weixin_blongs_id
||
''
,
content
:
this
.
formatLogContent
(
messageInfo
?.
message
||
content
,
type
)
,
content
:
[
this
.
formatLogContent
(
messageInfo
?.
message
||
content
,
type
)]
,
type
:
this
.
pendingGameLog
.
type
||
2
,
frontend_message_id
:
messageInfo
?.
frontend_message_id
||
''
,
session_id
:
messageInfo
?.
session_id
||
''
,
...
...
@@ -96,7 +100,6 @@ export default {
}
else
{
console
.
warn
(
'游戏日志记录失败:'
,
response
.
msg
)
}
// 清空待记录的日志信息
this
.
pendingGameLog
=
null
this
.
set_send_game_log
(
null
)
...
...
src/views/components/quickSendGame/sendGame/createChannel.vue
浏览文件 @
00afd8bc
...
...
@@ -3,7 +3,7 @@
title=
"新建渠道链接"
:visible=
"show"
@
close=
'close'
size=
"36
0px"
width=
"32
0px"
>
<div
class=
"channelContent"
>
<el-form
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论