From 9bbe01a4b81c358dcda7a8b25f1e082bdcd25568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 18 Oct 2022 13:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/command/OrderClean.php | 13 +++++++------ app/data/command/UserAgent.php | 4 ++-- app/data/command/UserAmount.php | 8 ++++---- app/data/command/UserTransfer.php | 5 +++-- app/data/command/UserUpgrade.php | 6 +++--- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/app/data/command/OrderClean.php b/app/data/command/OrderClean.php index 03a237b19..78a267584 100644 --- a/app/data/command/OrderClean.php +++ b/app/data/command/OrderClean.php @@ -6,7 +6,6 @@ use app\data\model\ShopOrder; use app\data\model\ShopOrderItem; use app\data\service\OrderService; use think\admin\Command; -use think\admin\Exception; use think\console\Input; use think\console\Output; use think\Model; @@ -26,10 +25,10 @@ class OrderClean extends Command /** * 业务指令执行 - * @param Input $input - * @param Output $output + * @param \think\console\Input $input + * @param \think\console\Output $output * @return void - * @throws Exception + * @throws \think\admin\Exception */ protected function execute(Input $input, Output $output) { @@ -39,7 +38,8 @@ class OrderClean extends Command /** * 自动取消30分钟未支付的订单 - * @throws Exception + * @return void + * @throws \think\admin\Exception */ private function _autoCancelOrder() { @@ -60,7 +60,8 @@ class OrderClean extends Command /** * 自动清理已经取消的订单 - * @throws Exception + * @return void + * @throws \think\admin\Exception */ private function _autoRemoveOrder() { diff --git a/app/data/command/UserAgent.php b/app/data/command/UserAgent.php index fd18ac27d..5c4ac539b 100644 --- a/app/data/command/UserAgent.php +++ b/app/data/command/UserAgent.php @@ -25,8 +25,8 @@ class UserAgent extends Command } /** - * @param Input $input - * @param Output $output + * @param \think\console\Input $input + * @param \think\console\Output $output * @return void * @throws \think\admin\Exception * @throws \think\db\exception\DataNotFoundException diff --git a/app/data/command/UserAmount.php b/app/data/command/UserAmount.php index 3bfa15ef5..106e68d6d 100644 --- a/app/data/command/UserAmount.php +++ b/app/data/command/UserAmount.php @@ -6,7 +6,6 @@ use app\data\model\DataUser; use app\data\service\UserBalanceService; use app\data\service\UserRebateService; use think\admin\Command; -use think\admin\Exception; use think\console\Input; use think\console\Output; @@ -24,10 +23,11 @@ class UserAmount extends Command } /** - * @param Input $input - * @param Output $output + * @param \think\console\Input $input + * @param \think\console\Output $output * @return void - * @throws Exception + * @throws \think\admin\Exception + * @throws \think\db\exception\DbException */ protected function execute(Input $input, Output $output) { diff --git a/app/data/command/UserTransfer.php b/app/data/command/UserTransfer.php index da5c36071..d932c8a3c 100644 --- a/app/data/command/UserTransfer.php +++ b/app/data/command/UserTransfer.php @@ -28,10 +28,11 @@ class UserTransfer extends Command /** * 执行微信提现操作 - * @param Input $input - * @param Output $output + * @param \think\console\Input $input + * @param \think\console\Output $output * @return void * @throws \think\admin\Exception + * @throws \think\db\exception\DbException */ protected function execute(Input $input, Output $output) { diff --git a/app/data/command/UserUpgrade.php b/app/data/command/UserUpgrade.php index c2ceac0c6..30779265c 100644 --- a/app/data/command/UserUpgrade.php +++ b/app/data/command/UserUpgrade.php @@ -23,10 +23,10 @@ class UserUpgrade extends Command } /** - * @param Input $input - * @param Output $output + * @param \think\console\Input $input + * @param \think\console\Output $output * @return void - * @throws Exception + * @throws \think\admin\Exception */ protected function execute(Input $input, Output $output) {