rabin 2 年之前
父节点
当前提交
988f3887d1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lib/Relation.php

+ 3 - 1
lib/Relation.php

@@ -44,6 +44,8 @@ class Relation
         if ($child) {
             foreach ($child as $k => $v) {
 
+                $this->resetParent($v['to_uid'], $uid);
+                /*
                 $child_parent = $this->getParentAll($v['to_uid']);
                 if ($child_parent) {
                     foreach ($child_parent as $k1 => $v1) {
@@ -51,7 +53,7 @@ class Relation
                             Dever::db('invite/relation')->update(array('where_id' => $v['id'], 'uid' => $parent));
                         }
                     }
-                }
+                }*/
             }
         }
         return true;