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
hf
9 years ago
Commit
9a276e9bd146c6ad493cb9077d9effc7b58330f5
1 parent
158a47c8
code review by hf: do add analysis code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
library/Plugin/UnionTrans.php
library/Plugin/UnionTrans.php
View file @
9a276e9
...
...
@@ -97,15 +97,17 @@ class UnionTrans
}
/* 通过用户下单量判断新老客户 (有下单1, 没有0) */
$is_old_user
=
0
;
try
{
$orderList
=
OrderData
::
getOrderData
(
1
,
1
,
2
,
'1,2,3'
,
1
,
$uid
);
if
(
!
empty
(
$orderList
[
'data'
][
'total'
])
&&
intval
(
$orderList
[
'data'
][
'total'
])
>
1
)
{
$is_old_user
=
1
;
}
}
catch
(
Exception
$e
)
{
// do nothing
}
// $is_old_user = 0;
// try {
// $orderList = OrderData::getOrderData(1, 1, 2, '1,2,3', 1, $uid);
// if (!empty($orderList['data']['total']) && intval($orderList['data']['total']) > 1) {
// $is_old_user = 1;
// }
// } catch (Exception $e) {
// // do nothing
// }
$is_old_user
=
(
isset
(
$_COOKIE
[
'_isOldUser'
])
&&
$_COOKIE
[
'_isOldUser'
]
==
'4'
)
?
1
:
0
;
$clientId
=
intval
(
$unionInfo
[
'client_id'
]);
$append
=
isset
(
$unionInfo
[
'append'
])
?
$unionInfo
[
'append'
]
:
''
;
...
...
@@ -341,10 +343,10 @@ class UnionTrans
foreach
(
$orderDetail
[
'order_goods'
]
as
$val
)
{
$goodsName
.=
str_replace
(
array
(
"&"
,
"<"
,
">"
,
"'"
,
'"'
,
" "
,
"|"
),
array
(
"&"
,
"<"
,
">"
,
"""
,
"'"
,
"%20"
,
"%20"
),
$val
[
'product_name'
])
.
'|'
;
$goodsIds
=
$val
[
'product_sku'
]
.
'|'
;
$goodsPrice
=
$val
[
'goods_price'
]
.
'|'
;
$goodsTotalPrice
=
$val
[
'goods_amount'
]
.
'|'
;
$goodsNum
=
$val
[
'buy_number'
]
.
'|'
;
$goodsIds
.=
$val
[
'product_sku'
]
.
'|'
;
$goodsPrice
.=
$val
[
'goods_price'
]
.
'|'
;
$goodsTotalPrice
.=
$val
[
'goods_amount'
]
.
'|'
;
$goodsNum
.=
$val
[
'buy_number'
]
.
'|'
;
}
$orderStatus
=
$orderDetail
[
'status_str'
];
...
...
Please
register
or
login
to post a comment