<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                * **tp5 model模型操作** ```php //設置自動完成的字段,支持鍵值對數組和索引數組 //新增和更新時都會使用 //如:['name'=>'zhangsan','sex'=>'男'] // ['name','sex'] protected $auto = []; //新增 自動完成列表 //只在新增數據的時候使用 protected $insert = []; //更新 自動完成列表 //只在更新數據的時候使用 protected $update = []; //用來標記當前操作被修改的字段 //如 ['name','sex'] protected $change = []; //依賴方法,model類會自動調用解析auto數組 //我們只需配置auto數組即可 protected function autoCompleteData($auto = []){} ``` * * * * * * **belongsTo 對應的是 hasOne** ```php module namespace app\admin\model; public function ApplyList() { return $this->belongsTo("ApplyListModel",'apply_gid','gid'); } ``` * **with 方法里面對應的是 model方法 ApplyList** ```php controller namespace app\admin\controller; use app\admin\model\CaseManagementModel; public function CaseList() { $case_lists = CaseManagementModel::with('ApplyList')->paginate(10); // 獲取分頁顯示 $page = $case_lists->render(); $this->assign('case_lists',$case_lists); $this->assign('page',$page); return $this->fetch("case_list"); } ``` * * * * * * **修改器** ```php //這個name 是要修改的 字段 比如 CreateTime public function setNameAttr($value) { return strtotime($value); } ``` * **獲取器** ```php //這個name 是要修改的 字段 比如 CreateTime public function setNameAttr($value) { return strtotime($value); } ``` * * * * *
                  <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>

                              哎呀哎呀视频在线观看