调试优化
This commit is contained in:
@@ -194,8 +194,8 @@ class PayActivity : BaseActivity<ActivityPayBinding>() {
|
||||
hidePayTab()
|
||||
}
|
||||
|
||||
fun getQrCodeImg(orderId: String, userId: String? = null, block: (String?) -> Unit) {
|
||||
userViewModel.getQrCodeImg(orderId = orderId, userId = userId) { qrCodeImg ->
|
||||
fun getQrCodeImg(orderId: String, userId: String? = null, totalFee: String?=null, block: (String?) -> Unit) {
|
||||
userViewModel.getQrCodeImg(orderId = orderId, userId = userId, totalFee = totalFee) { qrCodeImg ->
|
||||
runOnUiThread {
|
||||
if (qrCodeImg.isNullOrBlank()) {
|
||||
ToastUtils.showToast("获取二维码失败")
|
||||
@@ -226,11 +226,10 @@ class PayActivity : BaseActivity<ActivityPayBinding>() {
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun queryOrderState(isVip: Boolean, block: (Boolean) -> Unit) {
|
||||
suspend fun queryOrderState(block: (Boolean) -> Unit) {
|
||||
userViewModel.queryOrderState(orderId = foodOrderId) { payResult ->
|
||||
runOnUiThread {
|
||||
if (payResult) {
|
||||
showPaySuccess(isVip)
|
||||
block(true)
|
||||
} else {
|
||||
block(false)
|
||||
|
||||
Reference in New Issue
Block a user