正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -78,11 +78,13 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin | @@ -78,11 +78,13 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin | ||
78 | chanceType *models.ChanceType | 78 | chanceType *models.ChanceType |
79 | format string | 79 | format string |
80 | ) | 80 | ) |
81 | + jsonData := common.AssertJson(data) | ||
81 | switch reviewStatus { | 82 | switch reviewStatus { |
82 | case protocol.ReviewStatusAuditging: | 83 | case protocol.ReviewStatusAuditging: |
83 | format = MessageApproving | 84 | format = MessageApproving |
84 | break | 85 | break |
85 | case protocol.ReviewStatusReturn: | 86 | case protocol.ReviewStatusReturn: |
87 | + jsonData = "" | ||
86 | format = MessageApproveReject | 88 | format = MessageApproveReject |
87 | break | 89 | break |
88 | case protocol.ReviewStatusPass: | 90 | case protocol.ReviewStatusPass: |
@@ -109,8 +111,9 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin | @@ -109,8 +111,9 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin | ||
109 | IsPublic: 0, | 111 | IsPublic: 0, |
110 | CreateAt: time.Now(), | 112 | CreateAt: time.Now(), |
111 | ChanceId: chanceId, | 113 | ChanceId: chanceId, |
112 | - Data: common.AssertJson(data), | 114 | + //Data: jsonData, , |
113 | } | 115 | } |
116 | + userMsg.Data = jsonData | ||
114 | if header != nil { | 117 | if header != nil { |
115 | userMsg.SenderUserId = header.UserId | 118 | userMsg.SenderUserId = header.UserId |
116 | } | 119 | } |
-
请 注册 或 登录 后发表评论