| 
					
				 | 
			
			
				@@ -10,8 +10,14 @@ class My extends Core 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public function test()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # 1000 邀请 1001 1001 邀请 1002
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //return Dever::load('invite/api')->getChild(1000); 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever::load('invite/api')->setRelation(1001, 1000); 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $pid = Dever::input('pid', 1000);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $cid = Dever::input('cid');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($cid) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return Dever::load('invite/api')->setRelation($cid, $pid); 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever::load('invite/api')->getParentAll(1007, false); 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public function addtest()
 
			 |