Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
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
0
Merge Requests
0
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
pengguangpu
doublescreen-front
Commits
c2b59d6f
Commit
c2b59d6f
authored
Feb 13, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付bugfix
parent
96a7b480
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
balance.js
pages/balance/balance.js
+3
-2
payUtils.js
utils/payUtils.js
+1
-1
No files found.
pages/balance/balance.js
View file @
c2b59d6f
var
api
=
require
(
"../../utils/api.js"
);
var
payUtils
=
require
(
"../../utils/payUtils.js"
);
var
payUtils
=
require
(
"../../utils/payUtils.js"
);
Page
({
Page
({
...
@@ -97,11 +98,11 @@ Page({
...
@@ -97,11 +98,11 @@ Page({
});
});
// }
// }
}
else
{
}
else
{
console
.
log
(
"支付回调失败
,toast提示 "
);
console
.
log
(
"支付回调失败
===》 "
+
res
.
message
);
my
.
ix
.
offCashierEventReceive
();
my
.
ix
.
offCashierEventReceive
();
my
.
showToast
({
my
.
showToast
({
type
:
'fail'
,
type
:
'fail'
,
content
:
res
.
data
,
content
:
res
.
message
,
duration
:
2000
duration
:
2000
});
});
}
}
...
...
utils/payUtils.js
View file @
c2b59d6f
...
@@ -235,7 +235,7 @@ function retryOrFailed(tradeNo, payCode, payPrice, list, callback, retryCount){
...
@@ -235,7 +235,7 @@ function retryOrFailed(tradeNo, payCode, payPrice, list, callback, retryCount){
pay
(
tradeNo
,
payCode
,
payPrice
,
list
,
callback
,
++
retryCount
);
pay
(
tradeNo
,
payCode
,
payPrice
,
list
,
callback
,
++
retryCount
);
}
else
{
}
else
{
console
.
log
(
"支付接口重试超限,支付失败"
);
console
.
log
(
"支付接口重试超限,支付失败"
);
var
response
=
{
resultCode
:
-
1
,
message
:
"支付失败"
};
var
response
=
{
resultCode
:
-
1
,
message
:
"支付
接口重试超限,支付
失败"
};
callback
(
response
);
callback
(
response
);
}
}
}
}
...
...
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