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