|
@@ -60,8 +60,9 @@ func SetLikeOrTease(userId uint64, communityQuestionId uint32, opType, enable, s
|
|
|
} else {
|
|
|
ybCommunityQuestionLikeTease.OpType = opType
|
|
|
ybCommunityQuestionLikeTease.Enabled = enable
|
|
|
+ ybCommunityQuestionLikeTease.SourceAgent = sourceAgent
|
|
|
ybCommunityQuestionLikeTease.ModifyTime = now
|
|
|
- updates := []string{"op_type", "enabled", "modify_time"}
|
|
|
+ updates := []string{"op_type", "enabled", "source_agent", "modify_time"}
|
|
|
err = ybCommunityQuestionLikeTease.Update(updates)
|
|
|
if err != nil {
|
|
|
errMsg = "更新点赞记录出错"
|