<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 代碼 ``` <?php namespace app\agent\model; use think\Model; class AgentCategoryModel extends Model { public function editCategory($data) { $result = true; $id = intval($data['id']); $parentId = intval($data['parent_id']); $oldCategory = $this->where('id', $id)->find(); if (empty($parentId)) { $newPath = '0-' . $id; } else { $parentPath = $this->where('id', intval($data['parent_id']))->value('path'); if ($parentPath === false) { $newPath = false; } else { $newPath = "$parentPath-$id"; } } if (empty($oldCategory) || empty($newPath)) { $result = false; } else { $data['path'] = $newPath; $this->isUpdate(true)->allowField(true)->save($data, ['id' => $id]); $children = $this->field('id,path')->where('path', 'like', "%-$id-%")->select(); if (!empty($children)) { foreach ($children as $child) { $childPath = str_replace($oldCategory['path'] . '-', $newPath . '-', $child['path']); $this->isUpdate(true)->save(['path' => $childPath], ['id' => $child['id']]); } } } return $result; } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看