Showing
2 changed files
with
6 additions
and
4 deletions
@@ -169,9 +169,10 @@ class PayModel | @@ -169,9 +169,10 @@ class PayModel | ||
169 | $orderCount = 0; | 169 | $orderCount = 0; |
170 | $orders = PayData::getOrderCountByUid($uid); | 170 | $orders = PayData::getOrderCountByUid($uid); |
171 | 171 | ||
172 | - if (isset($orders['data']) && !empty($orders['data'])) { | ||
173 | - $orderCount = $orders['data']['total']; | 172 | + if (!empty($orders['data']['count'])) { |
173 | + $orderCount = $orders['data']['count']; | ||
174 | } | 174 | } |
175 | + | ||
175 | $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false; | 176 | $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false; |
176 | // 订单数(用于订单统计) | 177 | // 订单数(用于订单统计) |
177 | $result['orderCount'] = $orderCount; | 178 | $result['orderCount'] = $orderCount; |
@@ -173,9 +173,10 @@ class PaymentModel | @@ -173,9 +173,10 @@ class PaymentModel | ||
173 | //查询用户订单数接口 | 173 | //查询用户订单数接口 |
174 | $orders = PayData::getOrderCountByUid($uid); | 174 | $orders = PayData::getOrderCountByUid($uid); |
175 | 175 | ||
176 | - if (isset($orders['data']) && !empty($orders['data'])) { | ||
177 | - $orderCount = $orders['data']['total']; | 176 | + if (!empty($orders['data']['count'])) { |
177 | + $orderCount = $orders['data']['count']; | ||
178 | } | 178 | } |
179 | + | ||
179 | $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false; | 180 | $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false; |
180 | // 订单数(用于订单统计) | 181 | // 订单数(用于订单统计) |
181 | $result['orderCount'] = $orderCount; | 182 | $result['orderCount'] = $orderCount; |
-
Please register or login to post a comment