|
@@ -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) {
|
|
|
|
|
|
-
|
|
|
+ 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);
|
|
|
}
|