接口报错显示具体信息
This commit is contained in:
@@ -323,10 +323,10 @@ class ReceiptViewModel @Inject constructor(
|
||||
// }
|
||||
// }
|
||||
|
||||
fun confirmReceipt(uploadInfo: UploadInfo, callback: (Boolean) -> Unit) {
|
||||
fun confirmReceipt(uploadInfo: UploadInfo, callback: (Boolean, String) -> Unit) {
|
||||
launchWithLoading {
|
||||
val resp = repository.confirmReceipt(uploadInfo)
|
||||
callback(resp.isSuccess())
|
||||
callback(resp.isSuccess(), resp.msg?:"")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user