wugg 1 vuosi sitten
vanhempi
commit
6435f65bd5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/command/SplitSale.php

+ 2 - 2
app/command/SplitSale.php

@@ -188,7 +188,7 @@ class SplitSale extends Command
                     if($this->cgd_insert) Db::name('cgd_caixiao')->insertAll($this->cgd_insert);
                     $this->cgd_insert = [];
                     $this->cgd_key = 0;
-                    $commonOrder[]= $tempOrder;
+                    if(strtotime($sale['addtime']) >= strtotime('2024-02-01 00:00:00'))$commonOrder[]= $tempOrder;
                 }
 
 //                if ($cgd_insert_tmp_data) Db::name('cgd_caixiao')->insertAll($cgd_insert_tmp_data);
@@ -198,7 +198,7 @@ class SplitSale extends Command
 				$this->OrderSave($commonOrder);
 //                $output->writeln('处理完成');
 
-            } catch (\Exception $e) {
+            }catch (\Exception $e) {
                 Db::rollback();
                 $output->writeln('事务回滚:' . $e->getMessage() . '||' . $e->getFile() . '||' . $e->getLine());
             }