Commit c54af9b9 authored by zhaopengxiang's avatar zhaopengxiang

退款超上限话术修改

parent d3cc17ee
...@@ -211,9 +211,14 @@ class PriceInputActivity : BaseActivity() { ...@@ -211,9 +211,14 @@ class PriceInputActivity : BaseActivity() {
payResult.onFailure { payResult.onFailure {
dismissProgressDialog() dismissProgressDialog()
it.message?.let { it1 -> it.message?.let { it1 ->
if(it1.contains("大于可退金额")){
CenterToasty.error(this, "本次退款金额大于可退金额!", Toast.LENGTH_LONG).show()
}else{
CenterToasty.error(this, it1, Toast.LENGTH_LONG).show() CenterToasty.error(this, it1, Toast.LENGTH_LONG).show()
} }
} }
}
payResult.onSuccess { payResult.onSuccess {
dismissProgressDialog() dismissProgressDialog()
CenterToasty.success(this, "退款成功!!", Toast.LENGTH_LONG).show() CenterToasty.success(this, "退款成功!!", Toast.LENGTH_LONG).show()
......
...@@ -47,7 +47,7 @@ class RefundActivity : BaseActivity() { ...@@ -47,7 +47,7 @@ class RefundActivity : BaseActivity() {
dismissProgressDialog() dismissProgressDialog()
PriceInputActivity.start( PriceInputActivity.start(
this@RefundActivity, this@RefundActivity,
PriceInputActivity.Companion.PRICEINPUT_TYPE_CREFUND, PriceInputActivity.PRICEINPUT_TYPE_CREFUND,
payServiceResponse payServiceResponse
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment