@@ -140,7 +140,7 @@ func (wsRouter *WsFuncRouter) GetOneConversation(input string, operationID strin
140
140
}
141
141
142
142
userWorker := open_im_sdk .GetUserWorker (wsRouter .uId )
143
- userWorker .GetOneConversation (m ["sourceID" ].(string ), m ["sessionType" ].(int ), & BaseSuccFailed {runFuncName (), operationID , wsRouter .uId })
143
+ userWorker .GetOneConversation (m ["sourceID" ].(string ), int ( m ["sessionType" ].(float64 ) ), & BaseSuccFailed {runFuncName (), operationID , wsRouter .uId })
144
144
}
145
145
146
146
func (wsRouter * WsFuncRouter ) GetMultipleConversation (conversationIDList string , operationID string ) {
@@ -256,7 +256,7 @@ func (wsRouter *WsFuncRouter) CreateVideoMessageFromFullPath(input string, opera
256
256
if ! wsRouter .checkKeysIn (input , operationID , runFuncName (), m , "videoFullPath" , "videoType" , "duration" , "snapshotFullPath" ) {
257
257
return
258
258
}
259
- msg := userWorker .CreateVideoMessageFromFullPath (m ["videoFullPath" ].(string ), m ["videoType" ].(string ), m ["duration" ].(int64 ), m ["snapshotFullPath" ].(string ))
259
+ msg := userWorker .CreateVideoMessageFromFullPath (m ["videoFullPath" ].(string ), m ["videoType" ].(string ), int64 ( m ["duration" ].(float64 ) ), m ["snapshotFullPath" ].(string ))
260
260
wsRouter .GlobalSendMessage (EventData {cleanUpfuncName (runFuncName ()), 0 , "" , msg , operationID })
261
261
}
262
262
@@ -286,7 +286,7 @@ func (wsRouter *WsFuncRouter) CreateSoundMessageFromFullPath(input string, opera
286
286
if ! wsRouter .checkKeysIn (input , operationID , runFuncName (), m , "soundPath" , "duration" ) {
287
287
return
288
288
}
289
- msg := userWorker .CreateSoundMessageFromFullPath (m ["soundPath" ].(string ), m ["duration" ].(int64 ))
289
+ msg := userWorker .CreateSoundMessageFromFullPath (m ["soundPath" ].(string ), int64 ( m ["duration" ].(float64 ) ))
290
290
wsRouter .GlobalSendMessage (EventData {cleanUpfuncName (runFuncName ()), 0 , "" , msg , operationID })
291
291
}
292
292
0 commit comments