rabin 3 年之前
父節點
當前提交
a2d0ed0062
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      learn/active/src/Home.php

+ 4 - 1
learn/active/src/Home.php

@@ -66,7 +66,10 @@ Class Home extends Core
 		if ($uid) {
 			$where['where_id'] = $uid;
 			$where['name'] = $data['name'];
-			$where['idcard'] = $data['idcard'];
+			if ($data['idcard']) {
+				$where['idcard'] = $data['idcard'];
+			}
+			
 			Dever::db('active/user')->update($where); 
 		}
 		$result = array();