Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
68e2e4b000115bffc057b40ef88daf0690c61b19
1 parent
1600d606
订单统计接口返回变量修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php
yohobuy/www.yohobuy.com/application/models/Shopping/Payment.php
yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php
View file @
68e2e4b
...
...
@@ -169,9 +169,10 @@ class PayModel
$orderCount
=
0
;
$orders
=
PayData
::
getOrderCountByUid
(
$uid
);
if
(
isset
(
$orders
[
'data'
])
&&
!
empty
(
$orders
[
'data'
]))
{
$orderCount
=
$orders
[
'data'
][
'total'
];
if
(
!
empty
(
$orders
[
'data'
][
'count'
]))
{
$orderCount
=
$orders
[
'data'
][
'count'
];
}
$result
[
'isOldUser'
]
=
(
intval
(
$orderCount
)
>
self
::
OLD_USER_LIMIT
)
?
true
:
false
;
// 订单数(用于订单统计)
$result
[
'orderCount'
]
=
$orderCount
;
...
...
yohobuy/www.yohobuy.com/application/models/Shopping/Payment.php
View file @
68e2e4b
...
...
@@ -173,9 +173,10 @@ class PaymentModel
//查询用户订单数接口
$orders
=
PayData
::
getOrderCountByUid
(
$uid
);
if
(
isset
(
$orders
[
'data'
])
&&
!
empty
(
$orders
[
'data'
]))
{
$orderCount
=
$orders
[
'data'
][
'total'
];
if
(
!
empty
(
$orders
[
'data'
][
'count'
]))
{
$orderCount
=
$orders
[
'data'
][
'count'
];
}
$result
[
'isOldUser'
]
=
(
intval
(
$orderCount
)
>
self
::
OLD_USER_LIMIT
)
?
true
:
false
;
// 订单数(用于订单统计)
$result
[
'orderCount'
]
=
$orderCount
;
...
...
Please
register
or
login
to post a comment