rabin 2 anos atrás
pai
commit
7611384440
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      service/agent/lib/Import.php

+ 4 - 2
service/agent/lib/Import.php

@@ -348,7 +348,7 @@ class Import
     {
         # 获取已审核通过、权益已发放的用户
         $index = $index - 1;
-        $limit = 1000;
+        $limit = 500;
         
         $data = Dever::db('invite/relation')->fetchAll('select * from {table} where level = 1 order by id desc limit ' . $index . ', ' . $limit);
 
@@ -381,7 +381,9 @@ class Import
             $state = Dever::load('invite/lib/relation')->add($info['uid'], $cur, $level, $order);
             if ($state) {
                 # 新增团队业绩
-                //Dever::load('bill/lib/sell')->up($info['uid'], 2, $order['f_price'], $order['role'], $order['id'], '邀请' . $order['name'] . '['.$order['mobile'].']新增团队业绩', 3, $order['cdate']);
+                if ($this->state == 2) {
+                    Dever::load('bill/lib/sell')->up($info['uid'], 2, $order['f_price'], $order['role'], $order['id'], '邀请' . $order['name'] . '['.$order['mobile'].']新增团队业绩', 3, $order['cdate']);
+                }
             } else {
                 return $this->addRelation($cur, $parent, $level, $order);
             }