sunhao 5 vuotta sitten
vanhempi
commit
c39fddb86b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Console/Commands/SyncCustSaler.php

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

17
 
17
 
18
     public function handle()
18
     public function handle()
19
     {
19
     {
20
-        $this->syncFugou();
20
+        $this->SyncCustSaler();
21
     }
21
     }
22
 
22
 
23
     
23
     
46
         $customers = DB::table('customers')->select('id', 'phone')->where('phone','>','')->get();
46
         $customers = DB::table('customers')->select('id', 'phone')->where('phone','>','')->get();
47
         $customers = json_decode(json_encode($customers), true);
47
         $customers = json_decode(json_encode($customers), true);
48
         foreach($customers as $k=>$v){
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
             if(empty($order)){
50
             if(empty($order)){
51
                 echo "\n".$v['phone']." 失败,未找到订单:";
51
                 echo "\n".$v['phone']." 失败,未找到订单:";
52
                 continue;
52
                 continue;