[Fix] The type of the formal parameters of the callback function related to uploading files.

This commit is contained in:
std-s 2023-07-19 18:39:35 +08:00
parent 96e90d3c0a
commit 7894327b2c
2 changed files with 5 additions and 7 deletions

View File

@ -52,6 +52,5 @@ android {
dependencies { dependencies {
// aar复制到libs/io/openim/core-sdk/0.0.1/ core-sdk-0.0.1.aar // aar复制到libs/io/openim/core-sdk/0.0.1/ core-sdk-0.0.1.aar
// implementation 'io.openim:core-sdk:0.0.1@aar' // implementation 'io.openim:core-sdk:0.0.1@aar'
// api 'io.openim:core-sdk:2.3.5-t44@aar' implementation 'io.openim:core-sdk:3.0.1@aar'
implementation 'io.openim:core-sdk:3.0.0@aar'
} }

View File

@ -129,8 +129,7 @@ public class UploadFileListener: NSObject, Open_im_sdk_callbackUploadFileCallbac
self.channel = channel self.channel = channel
self.id = id self.id = id
} }
public func complete(_ size: Int64, url: String?, typ: Int) {
public func complete(_ size: Int64, url: String?, typ: Int32) {
var values: [String: Any] = [:] var values: [String: Any] = [:]
values["id"] = id values["id"] = id
values["size"] = size values["size"] = size
@ -147,7 +146,7 @@ public class UploadFileListener: NSObject, Open_im_sdk_callbackUploadFileCallbac
CommonUtil.emitEvent(channel: channel, method: "uploadFileListener", type: "hashPartComplete", errCode: nil, errMsg: nil, data: values) CommonUtil.emitEvent(channel: channel, method: "uploadFileListener", type: "hashPartComplete", errCode: nil, errMsg: nil, data: values)
} }
public func hashPartProgress(_ index: Int32, size: Int64, partHash: String?) { public func hashPartProgress(_ index: Int, size: Int64, partHash: String?) {
var values: [String: Any] = [:] var values: [String: Any] = [:]
values["id"] = id values["id"] = id
values["index"] = index values["index"] = index
@ -163,7 +162,7 @@ public class UploadFileListener: NSObject, Open_im_sdk_callbackUploadFileCallbac
CommonUtil.emitEvent(channel: channel, method: "uploadFileListener", type: "open", errCode: nil, errMsg: nil, data: values) CommonUtil.emitEvent(channel: channel, method: "uploadFileListener", type: "open", errCode: nil, errMsg: nil, data: values)
} }
public func partSize(_ partSize: Int64, num: Int32) { public func partSize(_ partSize: Int64, num: Int) {
var values: [String: Any] = [:] var values: [String: Any] = [:]
values["id"] = id values["id"] = id
values["partSize"] = partSize values["partSize"] = partSize
@ -187,7 +186,7 @@ public class UploadFileListener: NSObject, Open_im_sdk_callbackUploadFileCallbac
CommonUtil.emitEvent(channel: channel, method: "uploadFileListener", type: "uploadID", errCode: nil, errMsg: nil, data: values) CommonUtil.emitEvent(channel: channel, method: "uploadFileListener", type: "uploadID", errCode: nil, errMsg: nil, data: values)
} }
public func uploadPartComplete(_ index: Int32, partSize: Int64, partHash: String?) { public func uploadPartComplete(_ index: Int, partSize: Int64, partHash: String?) {
var values: [String: Any] = [:] var values: [String: Any] = [:]
values["id"] = id values["id"] = id
values["index"] = index values["index"] = index