正在显示
1 个修改的文件
包含
8 行增加
和
6 行删除
@@ -69,8 +69,8 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc | @@ -69,8 +69,8 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc | ||
69 | incre int = 1 | 69 | incre int = 1 |
70 | table string = "comment" | 70 | table string = "comment" |
71 | message string = protocol.MessageZanComment | 71 | message string = protocol.MessageZanComment |
72 | - sourceId int64 | ||
73 | - userId int64 | 72 | + //sourceId int64 |
73 | + userId int64 | ||
74 | ) | 74 | ) |
75 | rsp = &protocol.SympathyActionResponse{} | 75 | rsp = &protocol.SympathyActionResponse{} |
76 | if chanceFavoirte, err = models.GetChanceFavorite(header.UserId, header.CompanyId, request.Id, request.SourceType); err != nil && err != orm.ErrNoRows { | 76 | if chanceFavoirte, err = models.GetChanceFavorite(header.UserId, header.CompanyId, request.Id, request.SourceType); err != nil && err != orm.ErrNoRows { |
@@ -89,7 +89,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc | @@ -89,7 +89,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc | ||
89 | // err = protocol.NewErrWithMessage(5101) | 89 | // err = protocol.NewErrWithMessage(5101) |
90 | // return | 90 | // return |
91 | //} | 91 | //} |
92 | - sourceId = chance.Id | 92 | + //sourceId = chance.Id |
93 | userId = chance.UserId | 93 | userId = chance.UserId |
94 | chanceType = chance.ChanceTypeId | 94 | chanceType = chance.ChanceTypeId |
95 | table = "chance" | 95 | table = "chance" |
@@ -99,7 +99,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc | @@ -99,7 +99,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc | ||
99 | err = protocol.NewErrWithMessage(5601) | 99 | err = protocol.NewErrWithMessage(5601) |
100 | return | 100 | return |
101 | } | 101 | } |
102 | - sourceId = comment.Id | 102 | + //sourceId = comment.Id |
103 | userId = comment.UserId | 103 | userId = comment.UserId |
104 | } else { | 104 | } else { |
105 | log.Error(request.SourceType, "type error") | 105 | log.Error(request.SourceType, "type error") |
@@ -164,7 +164,7 @@ END: | @@ -164,7 +164,7 @@ END: | ||
164 | if request.SympathyType == protocol.UnMarkFlag { | 164 | if request.SympathyType == protocol.UnMarkFlag { |
165 | incre = -1 | 165 | incre = -1 |
166 | //删除点赞消息 | 166 | //删除点赞消息 |
167 | - agg.DeleteSendedMsg(sourceId, request.SourceType, userId, protocol.MsgTypeThumbUp) | 167 | + //agg.DeleteSendedMsg(sourceId, request.SourceType, userId, protocol.MsgTypeThumbUp) |
168 | } else { | 168 | } else { |
169 | //发送点赞消息 | 169 | //发送点赞消息 |
170 | if header.UserId != userId { | 170 | if header.UserId != userId { |
@@ -527,7 +527,9 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate | @@ -527,7 +527,9 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate | ||
527 | //} | 527 | //} |
528 | if _, e := models.GetAuditFlowProcessByReview(request.Id, 0, protocol.ReviewStatusWait); e == nil { | 528 | if _, e := models.GetAuditFlowProcessByReview(request.Id, 0, protocol.ReviewStatusWait); e == nil { |
529 | request.IsPublish = true | 529 | request.IsPublish = true |
530 | - updateMap["DepartmentId"] = request.RelatedDepartment | 530 | + if request.RelatedDepartment > 0 { |
531 | + updateMap["DepartmentId"] = request.RelatedDepartment | ||
532 | + } | ||
531 | //log.Info(fmt.Sprintf("机会编辑 is_publish:%v chance.review_status:%v 是否是本人:%v",request.IsPublish,chance.ReviewStatus,chance.UserId==header.UserId)) | 533 | //log.Info(fmt.Sprintf("机会编辑 is_publish:%v chance.review_status:%v 是否是本人:%v",request.IsPublish,chance.ReviewStatus,chance.UserId==header.UserId)) |
532 | } else { | 534 | } else { |
533 | log.Info(fmt.Sprintf("机会编辑 chance_id:%v chance.review_status:%v 无待处理 审核数据", request.Id, chance.ReviewStatus)) | 535 | log.Info(fmt.Sprintf("机会编辑 chance_id:%v chance.review_status:%v 无待处理 审核数据", request.Id, chance.ReviewStatus)) |
-
请 注册 或 登录 后发表评论