Prechádzať zdrojové kódy

命令统计使用流量

程旭源 4 rokov pred
rodič
commit
50f3b9e6b8

+ 1 - 1
application/command.php

@@ -17,5 +17,5 @@ return [
     'app\admin\command\Min',
     'app\admin\command\Addon',
     'app\admin\command\Api',
-    'app\'
+    'app\common\command\SettlementTraffic'
 ];

+ 9 - 1
application/common/command/SettlementTraffic.php

@@ -13,6 +13,14 @@ class SettlementTraffic extends Command
     protected function configure()
     {
 //        parent::configure(); // TODO: Change the autogenerated stub
-        $this->setName('SettlementTraffic')->setDescription('后台统计用户流量使用, 并扣除相关流量')
+        $this->setName('settlement')->setDescription('后台统计用户流量使用, 并扣除相关流量');
+    }
+
+    protected function execute(Input $input, Output $output)
+    {
+//        parent::execute($input, $output); // TODO: Change the autogenerated stub
+//        $output->writeln("TestCommand");
+
+        
     }
 }