|
@@ -614,7 +614,7 @@ class Upload extends Base
|
|
|
unset($producIds);
|
|
|
$where = [
|
|
|
'email' => $v[2],
|
|
|
- 'company' => $v[1],
|
|
|
+// 'company' => $v[1],
|
|
|
'website' => $v[3],
|
|
|
'spread_id' => session('uid'),
|
|
|
];
|
|
@@ -655,13 +655,13 @@ class Upload extends Base
|
|
|
$num['success_num'] = count($success);
|
|
|
$num['zong'] = count($excel_array);
|
|
|
if ($num['success_num'] > 0) {
|
|
|
- Db::name('serialize')->insert(['text' => $serialize, 'uni' => $uni, 'status' => 2, 'admin_id' => session('uid'), 'excel_name' => $fileName, 'time' => $serializeTime]);
|
|
|
+ Db::name('serialize')->insert(['text' => $serialize, 'uni' => $uni, 'status' => 2, 'admin_id' => session('uid'), 'excel_name' => $fileName, 'time' => $serializeTime,'now_status' => 2]);
|
|
|
$customer = new CustomerModel();
|
|
|
$customer->add_all($success,session('uid')); // 保存处理所有数据;
|
|
|
Db::name("import_success")->insertAll($import_success);
|
|
|
}
|
|
|
if ($num['error_num'] > 0) {
|
|
|
- Db::name('serialize')->insert(['text' => $serialize, 'uni' => $uni, 'status' => 3, 'admin_id' => session('uid'), 'excel_name' => $fileName, 'time' => $serializeTime]);
|
|
|
+ Db::name('serialize')->insert(['text' => $serialize, 'uni' => $uni, 'status' => 3, 'admin_id' => session('uid'), 'excel_name' => $fileName, 'time' => $serializeTime,'now_status' => 2]);
|
|
|
Db::name('import_error')->insertAll($error);
|
|
|
}
|
|
|
$tableSerialize = Db::name('serialize')->where('admin_id',session('uid'))->select();
|