|
@@ -142,6 +142,10 @@ class Ticket
|
|
|
Dever::load('collection/lib/ranking')->up($order['uid'], $order['info_id'], 1, $order['buy_num']);
|
|
|
}
|
|
|
|
|
|
+ # 更新购买数
|
|
|
+ $total = Dever::db('user/ticket')->total(array('info_id' => $order['info_id']));
|
|
|
+ Dever::db('collection/info')->update(array('num_buy' => $total['total'], 'where_id' => $order['info_id']));
|
|
|
+
|
|
|
# 增加积分
|
|
|
if ($order['parent_uid'] > 0) {
|
|
|
$uid = $order['parent_uid'] . '_' . $order['uid'];
|