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
3476fefb902d433fd8dffb8d52d4fcf806585d1b
1 parent
b24499b6
h5 支付方式,默认第一个
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
3476fef
...
...
@@ -487,6 +487,7 @@ class CartModel
// 支付方式
if
(
isset
(
$payReturn
[
'payment_way'
]))
{
$onePay
=
array
();
$isPaymentType
=
true
;
foreach
(
$payReturn
[
'payment_way'
]
as
$pay
)
{
if
(
$pay
[
'is_support'
]
!==
'Y'
)
{
continue
;
...
...
@@ -500,10 +501,16 @@ class CartModel
// $onePay['default'] = ($pay['default'] === 'Y');
if
(
isset
(
$orderInfo
[
'paymentType'
])
&&
$onePay
[
'paymentType'
]
===
$orderInfo
[
'paymentType'
])
{
$onePay
[
'recommend'
]
=
true
;
$isPaymentType
=
false
;
}
$result
[
'paymentWay'
][]
=
$onePay
;
}
//默认第一个
if
(
$isPaymentType
)
{
$result
[
'paymentWay'
][
0
][
'recommend'
]
=
true
;
}
}
// 有货币
...
...
Please
register
or
login
to post a comment