<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # tp5任務命令 ![](https://img.kancloud.cn/35/9e/359ea9794b5c37200f2ee80a26989345_978x483.png) ## 執行規則 ``` ~~~ <?php namespace app\common\command; // +---------------------------------------------------------------------- // | 社群團購電商Saas系統 [ E-commerce Froup Purchase Saas System ] // +---------------------------------------------------------------------- // | Copyright (c) 2022 https://www.bancou.com All rights reserved. // +---------------------------------------------------------------------- // | Author: 鄭坦強 @希泛科技 <https://www.bancou.com> // +---------------------------------------------------------------------- use think\Config; use think\console\input\Option; class TestJob extends \think\console\Command { protected function configure() { $site = Config::get('site'); $this->setName("TestJobTp5") ->addOption("param_name",'',Option::VALUE_OPTIONAL,'指定ID后數據') ->addOption("param_age",'',Option::VALUE_OPTIONAL,'指定ID后數據') ->setDescription('這個是測試tp5的異步任務'); } protected function execute(\think\console\Input $input, \think\console\Output $output) { $param_name = $input->getOption("param_name"); $param_age = $input->getOption("param_age"); $output->writeln(sprintf("---成功名稱:%s,年紀:%s,",$param_name,$param_age)); $output->writeln("延遲2秒執行...."); //parent::execute($input, $output); // TODO: Change the autogenerated stub } } ~~~ ``` ![](https://img.kancloud.cn/ab/e9/abe9c44a16ae69bcfd6d9d0fd8300c59_1340x783.png) ## 命令行執行命令 ``` php think TestJobTp5 --param_name=zheng --param_age=15 ``` ![](https://img.kancloud.cn/07/df/07df5cf123ab7afb91814ba036939598_1126x239.png)
                  <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>

                              哎呀哎呀视频在线观看