<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                如果插件需要使用到配置功能,我們需要在插件目錄`根目錄/addons/mydemo`創建一個`config.php`配置文件。 ## config.php 插件配置 `config.php`需要返回一個多維數組,例如: ``` <?php return [ [ //配置名稱,該值在當前數組配置中確保唯一 'name' => 'yourname', //配置標題 'title' => '配置標題', 'type' => 'text', 'options' => [ '1' => '顯示', '0' => '不顯示' ], //配置值 'value' => '1', 'tip' => '字段填寫幫助', ], [ 'name' => 'yourname2', 'title' => '配置標題2', 'type' => 'radio', //當配置1值為1時才顯示,為其它值不顯示 'visible' => 'yourname1=1', 'options' => [ '1' => '顯示', '0' => '不顯示' ], 'value' => '1', 'tip' => '字段填寫幫助', ], [ 'name' => '__tips__', 'title' => '溫馨提示', 'type' => 'string', 'value' => '該提示將出現的插件配置頭部,通常用于提示和說明', 'tip' => '', ], ]; ``` ## 參數說明 | ?名稱 | 類型 ? | 說明 | | --- | --- | --- | | name ? | string? | 配置名稱,配置的唯一標識,僅支持英文、數字、下劃線 | | title ? | string? | 配置標題,用于顯示在插件配置中的值 | | type | string | 類型,可用值:text/textarea/password/array/select/image/images/file/files/checkbox/radio| | visible | string | 動態可見條件,僅1.1.4+版本支持 | | options | array | 內容,當`type`為`checkbox/radio/select`值時的配置項 | | value | mixed | 配置值,用戶輸入或選擇的值 | | tip | string | 驗證獲得焦點時的提示消息 | ## config.html 自定義配置頁面 自動生成的配置有時候不能滿足我們需求,可以在插件目錄下創建一個`config.html` ,同時里面的字段要和`config.php`對應。 我們可以參考`application/admin/view/addons/config.html`的視圖模板來復制到`插件目錄/config.html`中來個性化我們的配置展示。
                  <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>

                              哎呀哎呀视频在线观看