stanley-king 1 year ago
parent
commit
1091ac7da3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      test/TestRefund.php

+ 3 - 3
test/TestRefund.php

@@ -264,6 +264,7 @@ class TestRefund extends TestCase
         $count = 0;
         foreach ($gen as $item)
         {
+            Log::record("order_sn={$item['order_sn']}", Log::DEBUG);
             $count += 1;
             $chname = $item['channel_name'];
             $provider = $this->getProvider($chname);
@@ -274,7 +275,6 @@ class TestRefund extends TestCase
                 $db_state = intval($item['order_state']);
                 if($order_state !== $db_state)
                 {
-
                     if($order_state == ORDER_STATE_SUCCESS) {
                         fwrite($fsucc,"{$item['order_sn']} {$order_state} {$db_state}\r\n");
                     }
@@ -299,8 +299,8 @@ class TestRefund extends TestCase
     //docker-compose run -d phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefund::testCheckZY)( .*)?$/" --test-suffix TestRefund.php /var/www/html/test
     public function testCheckZY()
     {
-        $cond['refill_order.order_time'] = [['egt', strtotime('2023-06-07')], ['lt', strtotime('2023-06-09')], 'and'];
-        $cond['vr_order.add_time'] = [['egt', strtotime('2023-06-07')], ['lt', strtotime('2023-06-09')], 'and'];
+        $cond['refill_order.order_time'] = [['egt', strtotime('2023-06-01')], ['lt', strtotime('2023-06-09')], 'and'];
+        $cond['vr_order.add_time'] = [['egt', strtotime('2023-06-01')], ['lt', strtotime('2023-06-09')], 'and'];
         $cond['inner_status'] = 0;
         $cond['vr_order.order_state'] = 0;
         $cond['vr_order.store_id'] = ['in',[33,45]];