...
|
...
|
@@ -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'];
|
...
|
...
|
|