Ezsw

val file = LCFile(filePathAndName,byteArray) file.saveInBackground().subscribe(object : Observer<LCFile> { override fun onSubscribe(disposable: Disposable) {} override fun onNext(file: LCFile) { Log.d(TAG,"上传成功") } override fun onError(throwable: Throwable) {} override fun onComplete() {} }) }…

我将之后的逻辑写在了onNext里面,是因为状态码是201才没能够执行之后的请求么 D/LoggingInterceptor: Request: curl -X POST -H Accept: application/json -H Content-Type: application/json -H User-Agent: LeanCloud-Java-SDK/8.2.5 -H X-LC-Id: nSW8hR93nInXSEVQsyfmDhQu-MdYXbMMI -H X-LC-Prod: 1 -H X-LC-Session: {your_session} -H X-LC-Sign: {you…

上传的文件file.saveInBackground().subscribe之后是有两次状态码201 然后是200 但我正常传一次数据是只有201的状态码,然后再传一次相同的文件会返回一个201 和两个200 让我执行两次相同的onNext逻辑