diff --git a/pages/API/unicloud-database/unicloud-database.uvue b/pages/API/unicloud-database/unicloud-database.uvue index ce321e79a22008df1e4338955a7c17eb10183af6..0a26e0f7126137fe84bc376d083e1f163002c2f5 100644 --- a/pages/API/unicloud-database/unicloud-database.uvue +++ b/pages/API/unicloud-database/unicloud-database.uvue @@ -293,9 +293,16 @@ db.multiSend(temp1, temp2) .then(res => { uni.hideLoading() - const successCount = res.dataList.filter((item: UniCloudDBMultiSendResultItem) : boolean => { - return item.errCode == 0 - }).length + let successCount = 0 + for (let i = 0; i < res.dataList.length; i++) { + const item = res.dataList[i] + if(item.errCode == 0) { + console.log(`第${i}个请求查询到${item.data!.length}条数据`) + successCount++ + } else { + console.error(`第${i}个请求查询失败,错误信息:${item.data!.length}`) + } + } this.multiSendSuccessCount = successCount this.notify(`合并查询成功,成功查询的语句条数为:${successCount}`, '提示') })