From 1f45a54dc8e149548d3a61d1228741627aa4f23e Mon Sep 17 00:00:00 2001 From: lmw <125975490@qq.com> Date: 星期二, 18 六月 2024 23:05:42 +0800 Subject: [PATCH] save --- app/src/main/java/com/dollearn/student/ui/shop/ExchangeActivity.kt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/dollearn/student/ui/shop/ExchangeActivity.kt b/app/src/main/java/com/dollearn/student/ui/shop/ExchangeActivity.kt index 3d99499..b533963 100644 --- a/app/src/main/java/com/dollearn/student/ui/shop/ExchangeActivity.kt +++ b/app/src/main/java/com/dollearn/student/ui/shop/ExchangeActivity.kt @@ -96,11 +96,11 @@ tv_goods_count.text = "1" tv_total_score.text = good.integral.toString() tv_score.text = good.integral.toString() - if (recipient.id.isNullOrEmpty()){ + if (recipient?.id.isNullOrEmpty()){ tv_empty.visible() }else{ - tv_address.text = recipient.province+recipient.city+recipient.address - tv_user.text = "%s | %s".format(recipient.recipient,recipient.recipientPhone) + tv_address.text = recipient?.province+recipient?.city+recipient?.address + tv_user.text = "%s | %s".format(recipient?.recipient,recipient?.recipientPhone) } } } -- Gitblit v1.7.1