diff --git a/internal/api/third/rtc.go b/internal/api/third/rtc.go index eaa1a1959..8fed4c845 100644 --- a/internal/api/third/rtc.go +++ b/internal/api/third/rtc.go @@ -47,6 +47,7 @@ func GetRTCInvitationInfo(c *gin.Context) { resp.Data.Invitation.InviteeUserIDList = invitationInfo.Invitation.InviteeUserIDList resp.Data.Invitation.MediaType = invitationInfo.Invitation.MediaType resp.Data.Invitation.Timeout = invitationInfo.Invitation.Timeout + resp.Data.Invitation.InitiateTime = invitationInfo.Invitation.InitiateTime c.JSON(http.StatusOK, resp) } @@ -85,6 +86,7 @@ func GetRTCInvitationInfoStartApp(c *gin.Context) { resp.Data.Invitation.InviteeUserIDList = invitationInfo.Invitation.InviteeUserIDList resp.Data.Invitation.MediaType = invitationInfo.Invitation.MediaType resp.Data.Invitation.Timeout = invitationInfo.Invitation.Timeout + resp.Data.Invitation.InitiateTime = invitationInfo.Invitation.InitiateTime c.JSON(http.StatusOK, resp) } diff --git a/pkg/base_info/third_api_struct.go b/pkg/base_info/third_api_struct.go index 758c3494c..b02ce9260 100644 --- a/pkg/base_info/third_api_struct.go +++ b/pkg/base_info/third_api_struct.go @@ -75,6 +75,7 @@ type GetRTCInvitationInfoResp struct { Timeout int32 `json:"timeout"` MediaType string `json:"mediaType"` SessionType int32 `json:"sessionType"` + InitiateTime int32 `json:"initiateTime"` } `json:"invitation"` OfflinePushInfo struct{} `json:"offlinePushInfo"` } `json:"data"`