|
@@ -77,8 +77,9 @@ class CustomerFromThreePlatForm extends Command
|
|
|
if(! empty($insert_detail)) CustomerInfo::insert($insert_detail);
|
|
|
if(! empty($fail)) {
|
|
|
foreach ($fail as $update){
|
|
|
+ $customer_id = $map[$c_third_platform_id] ?? 0;
|
|
|
\App\Model\CustomerFromThreePlatForm::where('id', $update['id'])
|
|
|
- ->update(['del_time' => $update['result']]);
|
|
|
+ ->update(['del_time' => $update['result'] , 'customer_id' => $customer_id]);
|
|
|
}
|
|
|
}
|
|
|
echo '更新完成' . PHP_EOL;
|