whitefang 1 rok temu
rodzic
commit
9756cc1785
2 zmienionych plików z 1 dodań i 27 usunięć
  1. 0 26
      app/command/query_refund.php
  2. 1 1
      app/common/command/QueryRefund.php

+ 0 - 26
app/command/query_refund.php

@@ -1,26 +0,0 @@
-<?php
-declare (strict_types = 1);
-
-namespace app\command;
-
-use think\console\Command;
-use think\console\Input;
-use think\console\input\Argument;
-use think\console\input\Option;
-use think\console\Output;
-
-class query_refund extends Command
-{
-    protected function configure()
-    {
-        // 指令配置
-        $this->setName('query_refund')
-            ->setDescription('the query_refund command');
-    }
-
-    protected function execute(Input $input, Output $output)
-    {
-        // 指令输出
-        $output->writeln('query_refund');
-    }
-}

+ 1 - 1
app/common/command/QueryRefund.php

@@ -54,7 +54,7 @@ class QueryRefund extends Command
 
             // 分别处理各个类型订单
             $rechargeRecords = array_filter($refundRecords, function ($item) {
-                return $item['order_type'] == RefundEnum::ORDER_TYPE_RECHARGE;
+                return $item['order_type'] == RefundEnum::ORDER_TYPE_ORDER;
             });
 
             if (!empty($rechargeRecords)) {