|
@@ -1009,7 +1009,7 @@ func (b MessaggeService) AppraiseMessage(in *messagecenter.AppraiseReq) error {
|
|
/*
|
|
/*
|
|
入参 appid,title,content,sendid,link,item,messagetype,receiverIds,groupIds
|
|
入参 appid,title,content,sendid,link,item,messagetype,receiverIds,groupIds
|
|
*/
|
|
*/
|
|
-func (this *MessaggeService) Chat(in *messagecenter.MessageSaveReq) (fool bool, errorMsg string, content string, messageId, nowInt int64) {
|
|
|
|
|
|
+func (this *MessaggeService) Chat(in *messagecenter.MessageEntity) (fool bool, errorMsg string, content string, messageId, nowInt int64) {
|
|
now := time.Now()
|
|
now := time.Now()
|
|
nowTime := now.Format(date.Date_Full_Layout)
|
|
nowTime := now.Format(date.Date_Full_Layout)
|
|
messageId = int64(0)
|
|
messageId = int64(0)
|
|
@@ -1017,7 +1017,7 @@ func (this *MessaggeService) Chat(in *messagecenter.MessageSaveReq) (fool bool,
|
|
isGroup := len(in.GroupIds) > 0
|
|
isGroup := len(in.GroupIds) > 0
|
|
isOneToOne := len(in.ReceiverIds) > 0
|
|
isOneToOne := len(in.ReceiverIds) > 0
|
|
createperson := strconv.Itoa(int(in.SendId))
|
|
createperson := strconv.Itoa(int(in.SendId))
|
|
- messageId = MessageAdd(tx, in.Appid, in.Title, in.Content, createperson, in.Link, in.Item, in.MessageType)
|
|
|
|
|
|
+ messageId = MessageAdd(tx, in.Appid, in.Title, in.Content, createperson, in.Link, in.Item, in.Type)
|
|
//是否客服介入
|
|
//是否客服介入
|
|
isCustomerServiceAccess := 0
|
|
isCustomerServiceAccess := 0
|
|
|
|
|