request->param()); $i++) { if ($obj = $this->request->param($i)) { $code = $obj["code"]; $dict = \app\common\model\Dict::where("code", $code)->findOrEmpty()->toArray(); $childs = \app\common\model\Dict::where("pid", $dict["id"])->order("num")->select(); $result[$obj["name"]] = $childs; } } return json(["code" => "200", "msg" => "", "obj" => $result]); } }