|
|
|
|
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;
|