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

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

@@ -17,7 +17,7 @@ class SyncCustSaler extends Command {
17 17
 
18 18
     public function handle()
19 19
     {
20
-        $this->syncFugou();
20
+        $this->SyncCustSaler();
21 21
     }
22 22
 
23 23
     
@@ -46,7 +46,7 @@ class SyncCustSaler extends Command {
46 46
         $customers = DB::table('customers')->select('id', 'phone')->where('phone','>','')->get();
47 47
         $customers = json_decode(json_encode($customers), true);
48 48
         foreach($customers as $k=>$v){
49
-            $order = DB::table('order')->select('admin_id')->where('receiverMobile', $v['phone'])->orderBy('id', 'asc')->first();
49
+            $order = DB::table('order')->select('admin_id')->where('receiverMobile', $v['phone'])->where('is_del', 0)->orderBy('id', 'asc')->first();
50 50
             if(empty($order)){
51 51
                 echo "\n".$v['phone']." 失败,未找到订单:";
52 52
                 continue;