dever 4 年之前
父节点
当前提交
ed97b61043
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      lib/Pay.php

+ 5 - 0
lib/Pay.php

@@ -130,6 +130,11 @@ class Pay
                 } else {
                     $uid = $order['uid'];
                 }
+
+                # 榜单更新
+                if (Dever::project('collection')) {
+                    Dever::load('collection/lib/ranking')->up($order['uid'], $order['type_id'], 2, $order['num']);
+                }
                 Dever::score($uid, 'buy_my_goods', '购买自营商品', false, $order['reward'], false, $order['type'], $order['type_id']);
 
                 # 发消息