|
@@ -1608,7 +1608,7 @@ class Customer extends Base
|
|
|
$status = 0; // 设置为0标识此行有错误
|
|
|
} else {
|
|
|
if (!empty($v[2])) {
|
|
|
- $ckeckWebsiteCompany = Db::name('customer')->wehre('company',$v[1])->wehre('website',$v[3])->where('status',0)->where('email','')->find();
|
|
|
+ $ckeckWebsiteCompany = Db::name('customer')->where('company',$v[1])->where('website',$v[3])->where('status',0)->where('email','')->find();
|
|
|
if ($ckeckWebsiteCompany) {
|
|
|
Db::name('customer')->where('id',$ckeckWebsiteCompany['id'])->update(['spread_id'=>session('uid'),'emial' => $v[2]]);
|
|
|
Db::name('customer')->where('emial',$v[2])->setInc('people',1);
|