Browse Source

add error code

ChrisFuck 5 years ago
parent
commit
f7a8618cf7
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      README.md

+ 8
- 0
README.md View File

43
 uploadSdk.onUpdateProgress( progress => {
43
 uploadSdk.onUpdateProgress( progress => {
44
       console.log(progress)
44
       console.log(progress)
45
 })
45
 })
46
+```
47
+
48
+### 返回的 error 在 catch里面捕捉
49
+```
50
+IMAGE_TYPE_ERROR: 101,
51
+VIDOE_TYPE_ERROR: 102,
52
+UPLOAD_SUCCESS_CODE: 200,
53
+UPLOAD_FAILED_CODE: 400
46
 ```
54
 ```