|
@@ -10,8 +10,14 @@ class My extends Core
|
|
|
public function test()
|
|
|
{
|
|
|
|
|
|
-
|
|
|
- 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()
|