...
|
...
|
@@ -54,7 +54,7 @@ func SendApproveMsg(receiverId int64, name string, companyId int64, chanceId int |
|
|
Message: fmt.Sprintf(format, chanceType.Name),
|
|
|
SourceId: chanceId,
|
|
|
SourceType: protocol.SourceTypeChance,
|
|
|
IsPublic: 0,
|
|
|
IsPublic: 1,
|
|
|
CreateAt: time.Now(),
|
|
|
ChanceId: chanceId,
|
|
|
Data: common.AssertJson(data),
|
...
|
...
|
@@ -108,7 +108,7 @@ func sendApproveMsg(header *protocol.RequestHeader, receiverId int64, name strin |
|
|
Message: fmt.Sprintf(format, chanceType.Name),
|
|
|
SourceId: chanceId,
|
|
|
SourceType: protocol.SourceTypeChance,
|
|
|
IsPublic: 0,
|
|
|
IsPublic: 1,
|
|
|
CreateAt: time.Now(),
|
|
|
ChanceId: chanceId,
|
|
|
//Data: jsonData, ,
|
...
|
...
|
@@ -141,7 +141,7 @@ func SendApproveMsgByFormat(header *protocol.RequestHeader, receiverId int64, ch |
|
|
Message: message, //fmt.Sprintf(message, chanceType.Name),
|
|
|
SourceId: chanceId,
|
|
|
SourceType: protocol.SourceTypeChance,
|
|
|
IsPublic: 0,
|
|
|
IsPublic: 1,
|
|
|
CreateAt: time.Now(),
|
|
|
Data: common.AssertJson(data),
|
|
|
SenderUserId: header.UserId,
|
...
|
...
|
@@ -194,7 +194,7 @@ func SendMsg(receiverId int64, name string, companyId int64, sourceId int64, sou |
|
|
Message: message,
|
|
|
SourceId: sourceId,
|
|
|
SourceType: sourceType,
|
|
|
IsPublic: 0,
|
|
|
IsPublic: 1,
|
|
|
CreateAt: time.Now(),
|
|
|
ChanceId: chanceId,
|
|
|
}
|
...
|
...
|
@@ -218,7 +218,7 @@ func SendMsgWithData(receiverId int64, name string, companyId int64, sourceId in |
|
|
Message: message,
|
|
|
SourceId: sourceId,
|
|
|
SourceType: sourceType,
|
|
|
IsPublic: 0,
|
|
|
IsPublic: 1,
|
|
|
CreateAt: time.Now(),
|
|
|
ChanceId: chanceId,
|
|
|
Data: common.AssertJson(msgData),
|
...
|
...
|
@@ -244,7 +244,7 @@ func SendMsgWithHeader(header *protocol.RequestHeader, receiverId int64, name st |
|
|
Message: message,
|
|
|
SourceId: sourceId,
|
|
|
SourceType: sourceType,
|
|
|
IsPublic: 0,
|
|
|
IsPublic: 1,
|
|
|
CreateAt: time.Now(),
|
|
|
ChanceId: chanceId,
|
|
|
}
|
...
|
...
|
|