<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                >數據表設計 |序號|字段名|必選|備注| |:-|-|-|-| |1|id|*|primary key| |2|name|*|項目名| |3|level|*|級別| |4|type||級別類型| |5|status||當前級別狀態| |6|pid|*|當前級別夫類| >示例參數數據 ![](https://img.kancloud.cn/2d/81/2d81f0c9f14a3de92d425b7c5c0743f2_1678x571.png) >示例源碼 ```php <?php namespace app\\index\\model; use think\Model; class Rule extends Model{ public function getPlevel($pid){ $data = [ 'id' =>$pid ]; return $this->where($data)->column('level'); } public function getPid($id){ $data = [ 'id' =>$id ]; return $this->where($data)->column('pid'); } public function getdatas($id){ $data = [ 'id' => $id ]; return $this->where($data)->select(); } public function tree(){ $rule = [ 'status' => 1, 'type' =>1 ]; $data=$this->where($rule)->select(); return $this->sort($data); } public function sort($data,$pid=0){ static $arr=array(); foreach ($data as $k => $v) { if($v['pid']==$pid){ $arr[]=$v; $this->sort($data,$v['id']); } } return $arr; } } ```
                  <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>

                              哎呀哎呀视频在线观看