Commit a91ada19 authored by 蔡闯's avatar 蔡闯

2020-1-7

parent b55a73a4
...@@ -199,11 +199,12 @@ class Common extends BaseController ...@@ -199,11 +199,12 @@ class Common extends BaseController
} }
$name = $dataAll[$j][1];//业主名字 $name = $dataAll[$j][1];//业主名字
$id_card = $dataAll[$j][2];//布局;//身份证id $id_card = $dataAll[$j][2];//布局;//身份证id
if(!isCreditNo($id_card)) {
if($id_card && !isCreditNo($id_card)) {
$msg .= "身份证id不符合!"; $msg .= "身份证id不符合!";
} }
$phone = $dataAll[$j][3];//布局;//手机号 $phone = $dataAll[$j][3];//布局;//手机号
if(!isPhoneNo($phone)) { if($phone && !isPhoneNo($phone)) {
$msg .="手机号不符合!"; $msg .="手机号不符合!";
} }
$area = $dataAll[$j][4];//面积 $area = $dataAll[$j][4];//面积
...@@ -245,7 +246,9 @@ class Common extends BaseController ...@@ -245,7 +246,9 @@ class Common extends BaseController
//导入到userbind表中 //导入到userbind表中
$bind['type'] = 0; $bind['type'] = 0;
$bind['status'] = 1; $bind['status'] = 1;
Db::name('house_user_bind')->save($bind); if($bind){
Db::name('house_user_bind')->save($bind);
}
} else { } else {
$dataAll[$j][] = $msg; $dataAll[$j][] = $msg;
$errorData[] = $dataAll[$j]; $errorData[] = $dataAll[$j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment