Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
徐祁xuqi
9 years ago
Commit
5b4bc85330a7f3053cb593ffcd76f32fcfb272e7
1 parent
eb9322f0
pay interval bug fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
static/js/me/pay.js
template/m.yohobuy.com/actions/index/home/pay.phtml
yohobuy/m.yohobuy.com/application/modules/Shopping/controllers/Pay.php
static/js/me/pay.js
View file @
5b4bc85
...
...
@@ -172,7 +172,7 @@ loading.showLoadingMask();
$
(
document
).
ready
(
main
);
$
(
'.box'
).
on
(
'click'
,
function
()
{
var
url
=
$
(
'.payapp-list a'
).
attr
(
'href'
),
var
url
=
$
(
'.payapp-list a'
).
data
(
'href'
),
theRequest
=
[],
orderCode
,
payment
;
...
...
@@ -186,6 +186,8 @@ $('.box').on('click', function () {
$
.
ajax
({
url
:
'/shopping/pay/addPaymentInterval?orderCode='
+
orderCode
+
'&payment='
+
payment
,
method
:
'get'
}).
then
(
function
()
{
location
.
href
=
url
;
});
});
...
...
template/m.yohobuy.com/actions/index/home/pay.phtml
View file @
5b4bc85
...
...
@@ -6,7 +6,7 @@
<div
class=
"payapp-list"
>
{
{#
payAppInfo
}
}
{
{#if
payLink
}
}
<a
href=
"{{payLink}}"
>
<a
href=
"
javascript:;"
data-href=
"
{{payLink}}"
>
{
{/if
}
}
<div
class=
"box"
id=
"{{appId}}"
>
<div
class=
"icon"
>
...
...
yohobuy/m.yohobuy.com/application/modules/Shopping/controllers/Pay.php
View file @
5b4bc85
...
...
@@ -162,9 +162,8 @@ class PayController extends AbstractAction
UdpLog
::
info
(
'【支付时间校验】参数校验'
,
'orderCode:'
.
$orderCode
.
'uid:'
.
$uid
.
'payment:'
.
$payment
);
break
;
}
UdpLog
::
info
(
'【支付校验】支付间隔入参校验'
,
'uid:'
.
$uid
.
'orderCode:'
.
$orderCode
.
'payment:'
.
$payment
);
$res
=
CartData
::
savePrePayInfo
(
$uid
,
$orderCode
,
$payment
);
UdpLog
::
info
(
'【支付校验】支付间隔出参校验'
,
'code:'
.
$res
[
'code'
]
.
'message:'
.
$res
[
'message'
]
.
'data:'
.
$res
[
'data'
]);
$data
=
array
(
'code'
=>
$res
[
'code'
],
'message'
=>
$res
[
'message'
],
'data'
=>
$res
[
'data'
]);
}
while
(
false
);
...
...
Please
register
or
login
to post a comment