# uploadFilesWithSucceCallBack
上传成功后回调
# 调用方式
uploadFilesWithSucceCallBack(index = 7)
1
返回 Promise,使用 then/catch 或 await 处理结果。
# 请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| index | Number | N | 7 | 上传日志的天数;向原生传递为 days |
# 接口调用示例
this.$bridge.uploadFilesWithSucceCallBack(7)
.then(res => {
console.log(res)
})
.catch(error => {
console.error(error)
})
1
2
3
4
5
6
7
2
3
4
5
6
7
# 返回参数
返回 Promise,成功时返回原生回调的原始内容。上传通知事件与该 Promise 的结果不是同一返回方式。
# 注意事项
如需监听 receiveOSSUploadCallback 通知,应另行订阅 receiveMessageFromApp,不能把消息事件字段当作本方法直接返回值。