|
@@ -213,7 +213,7 @@ class Customer extends Base
|
|
|
$query->whereOr('company',$company);
|
|
|
})
|
|
|
->column('id');
|
|
|
- Db::name('customer')->where('id','in',implode(',',$res))->update(['spread_id' => $param['id'], 'status' => 2, 'follow_time' => time()]);
|
|
|
+// Db::name('customer')->where('id','in',implode(',',$res))->update(['spread_id' => $param['id'], 'status' => 2, 'follow_time' => time()]);
|
|
|
} else {
|
|
|
$res = CustomerModel::where(function ($query) use ($websiteArr) {
|
|
|
foreach ($websiteArr as $v) {
|
|
@@ -221,7 +221,8 @@ class Customer extends Base
|
|
|
}
|
|
|
})
|
|
|
->column('id');
|
|
|
- Db::name('customer')->where('id', 'in', implode(',', $res))->update(['spread_id' => $param['id'], 'status' => 2, 'follow_time' => time()]);
|
|
|
+// var_dump($res);
|
|
|
+// Db::name('customer')->where('id', 'in', implode(',', $res))->update(['spread_id' => $param['id'], 'status' => 2, 'follow_time' => time()]);
|
|
|
}
|
|
|
unset($websiteArr);
|
|
|
$ranking = new RankingModel();
|