浏览代码

修改客资获取

cqp 1 月之前
父节点
当前提交
6adcc7f42c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Console/Commands/CustomerFromThreePlatForm.php

+ 2 - 1
app/Console/Commands/CustomerFromThreePlatForm.php

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