提交修改

This commit is contained in:
daihh
2022-10-23 13:52:12 +08:00
parent ed40682db3
commit 6d21d00ce6
2 changed files with 30 additions and 8 deletions

View File

@@ -348,11 +348,18 @@ export default {
this.$store.dispatch("unicomPraises",false)
}
//自己给自己点赞不算
if(this.userInfo.aid!=this.data.sysCreateAid){
let authorId=this.data.sysCreateAid;
if(this.type==3){ //案例取作者id
authorId=this.data.authorId;
}else if(this.type==1){ //课程取老师的id
// 目前页面上没有点赞的地方,课程有多个老师,也要给每个老师加吗?
//console.log(this.data,'点赞中课程的传的数据')
}
if(this.userInfo.aid!=authorId){
let event = {
key: "CancelPraise",//
title: "取消点赞",//事件的标题
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
parameters:"author:"+authorId,//用户自定义参数 name:value,name:value
content: "取消点赞"+postData.title,//事件的内容
objId: this.data.id,//关联的id
objType: this.type,//关联的类型