sunhao 5 years ago
parent
commit
ae5970b8b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/SyncCustSaler.php

+ 1 - 1
app/Console/Commands/SyncCustSaler.php

@@ -35,7 +35,7 @@ class SyncCustSaler extends Command {
35 35
             if($order_count>1){
36 36
                 //是复购
37 37
                 DB::table('customers')->where('id', $v['id'])->update(['is_fugou'=>1]);
38
-                //DB::table('order')->where('id', '!=', $first_order->id)->where('receiverMobile', $v['phone'])->where('is_del',0)->update(['is_fugou'=>1]);
38
+                DB::table('order')->where('id', '!=', $first_order->id)->where('receiverMobile', $v['phone'])->where('is_del',0)->update(['is_fugou'=>1]);
39 39
             }else{
40 40
                 DB::table('customers')->where('id', $v['id'])->update(['is_fugou'=>0]);
41 41
             }