<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 通過自定義命令快速創建類文件 --- >[danger] 1. 創建一個自定義命令類文件 (以邏輯層類文件為例) + 生成 `app\command\make\Logic.php` 文件 ``` php think make:command make/Logic ``` >[danger] 2. 復制創建模型類的命令定義文件內容 + 復制以下文件內容, 粘貼到 `app\command\make\Logic.php` 文件中 ``` vendor\topthink\framework\src\think\console\command\make\Model.php ``` **修改內容如下圖** ![](https://img.itqaq.com/art/content/5df92ec53c4b417e083f4a49a832d3cb.png) >[danger] 3. 拷貝命令行生成模型類的模板 + 拷貝文件 ``` vendor\topthink\framework\src\think\console\command\make\stubs\model.stub ``` + 粘貼到 ``` app\command\make\stubs\logic.stub ``` + 文件內容 ``` <?php declare (strict_types = 1); namespace {%namespace%}; class {%className%} { /** * 邏輯層靜態方法 */ public static function demo() { } } ``` >[danger] 4. 將自定義命令添加到指令配置文件 `config\console.php` ``` return [ // 指令定義 'commands' => [ 'make:logic' => app\command\make\Logic::class, ], ]; ``` >[danger] 5. 執行自定義命令, 創建邏輯層類文件 ``` php think make:logic api@User ```
                  <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>

                              哎呀哎呀视频在线观看