Browse Source

同步订单运费脚本过滤有问题订单

shensong 5 years ago
parent
commit
35d194bb41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Console/Commands/freightCost.php

+ 2 - 2
app/Console/Commands/freightCost.php

@@ -181,10 +181,10 @@ class freightCost extends Command {
181 181
         }
182 182
     }
183 183
 
184
-    //更新近日C仓订单
184
+    //更新近日C仓订单
185 185
     public function updateFiveDaysOrder( $data ) {
186 186
         foreach( $data as $value ) {
187
-            if( $value['logisticsCost'] > 0 ){
187
+            if( $value['logisticsCost'] > 0 && $value['expressCode'] != '288839495613'){
188 188
                 $freightCost = $value['logisticsCost'];
189 189
                 $re = DB::table('order')->where('logistics_id',$value['expressCode'])->where('is_del',0)->where('warehouse',3)
190 190
                     ->update(['freight_cost'=>$freightCost]);