|
@@ -17,7 +17,7 @@ class SyncCustSaler extends Command {
|
17
|
17
|
|
18
|
18
|
public function handle()
|
19
|
19
|
{
|
20
|
|
- $this->SyncCustSaler();
|
|
20
|
+ $this->syncFugou();
|
21
|
21
|
}
|
22
|
22
|
|
23
|
23
|
|
|
@@ -27,6 +27,7 @@ class SyncCustSaler extends Command {
|
27
|
27
|
foreach($customers as $k=>$v){
|
28
|
28
|
//更新第一单为非复购
|
29
|
29
|
$first_order = DB::table('order')->select('id')->where('receiverMobile', $v['phone'])->where('is_del',0)->orderBy('id', 'asc')->first();
|
|
30
|
+ if(empty($first_order)) continue;
|
30
|
31
|
DB::table('order')->where('id', $first_order->id)->update(['is_fugou'=>0]);
|
31
|
32
|
|
32
|
33
|
//单数
|