#!/usr/bin/env php config('getselfandchildrenlist')->gen(6); /** title=测试programplanModel->getSelfAndChildrenList(); cid=1 pid=1 测试id为2时获取自己的状态 >> doing 测试id为2时获取自己某一个后代的状态 >> 2 */ $plan = new programplanTest(); $topPlan = $plan->getSelfAndChildrenListTest(2); $topPlanCount = count($topPlan[2]); r($topPlan[2][2]) && p('status') && e('doing'); // 测试id为2时获取自己的状态 r($topPlanCount - 1) && p('') && e(3); // 测试id为2时获取自己后代的个数