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
郝肖肖
9 years ago
Commit
d281c11c2bd33c34204a02440b0c9875785c8b9c
1 parent
ca66de89
savePrePayInfo 接口修复
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
23 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 @
d281c11
...
...
@@ -169,25 +169,4 @@ function main() {
loading
.
showLoadingMask
();
$
(
document
).
ready
(
main
);
$
(
'.box'
).
on
(
'click'
,
function
()
{
var
url
=
$
(
'.payapp-list a'
).
data
(
'href'
),
theRequest
=
[],
orderCode
,
payment
;
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
theRequest
=
url
.
split
(
'?'
)[
1
].
split
(
"&"
);
orderCode
=
theRequest
[
0
].
split
(
'='
)[
1
];
payment
=
theRequest
[
1
].
split
(
'='
)[
1
];
}
$
.
ajax
({
url
:
'/shopping/pay/addPaymentInterval?orderCode='
+
orderCode
+
'&payment='
+
payment
,
method
:
'get'
}).
then
(
function
()
{
location
.
href
=
url
;
});
});
$
(
document
).
ready
(
main
);
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/index/home/pay.phtml
View file @
d281c11
...
...
@@ -6,7 +6,7 @@
<div
class=
"payapp-list"
>
{
{#
payAppInfo
}
}
{
{#if
payLink
}
}
<a
href=
"
javascript:;"
data-href=
"
{{payLink}}"
>
<a
href=
"{{payLink}}"
>
{
{/if
}
}
<div
class=
"box"
id=
"{{appId}}"
>
<div
class=
"icon"
>
...
...
yohobuy/m.yohobuy.com/application/modules/Shopping/controllers/Pay.php
View file @
d281c11
...
...
@@ -58,6 +58,10 @@ class PayController extends AbstractAction
$this
->
helpJsRedirect
(
'订单已经取消'
,
'window.location="'
.
Helpers
::
url
(
'/home/orders/detail'
,
array
(
'order_code'
=>
$orderCode
))
.
'";'
);
break
;
}
$paymentId
=
$this
->
get
(
'payment_type'
,
0
);
$prePayInfo
=
CartData
::
savePrePayInfo
(
$uid
,
$orderCode
,
$paymentId
);
UdpLog
::
info
(
"【锁订单接口】,orderCode:
{
$orderCode
}
"
,
array
(
'orderDetail'
=>
$orderDetail
,
'prePayInfo'
=>
$prePayInfo
));
$totalFee
=
$orderDetail
[
'data'
][
'payment_amount'
]
*
100
;
$reqParams
=
new
AliwapReqparams
(
$orderCode
,
$totalFee
,
'有货订单号:'
.
$orderCode
,
''
,
$orderDetail
[
'data'
][
'create_time'
],
''
,
false
);
...
...
Please
register
or
login
to post a comment