Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
c54af9b9
Commit
c54af9b9
authored
Apr 20, 2022
by
zhaopengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款超上限话术修改
parent
d3cc17ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
PriceInputActivity.kt
...c/main/java/com/miya/fastcashier/ui/PriceInputActivity.kt
+6
-1
RefundActivity.kt
app/src/main/java/com/miya/fastcashier/ui/RefundActivity.kt
+1
-1
No files found.
app/src/main/java/com/miya/fastcashier/ui/PriceInputActivity.kt
View file @
c54af9b9
...
@@ -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
()
...
...
app/src/main/java/com/miya/fastcashier/ui/RefundActivity.kt
View file @
c54af9b9
...
@@ -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
)
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment