@@ -69,7 +69,6 @@ class Auth
if ($find && $find['id'] != $user['id']) {
Dever::alert('身份证已被绑定');
}
- Dever::db('option/member')->update(array('where_id' => $user['id'], 'idcard_bind' => 1));
Dever::load('option/lib/account')->checkMcode($mobile);
@@ -228,6 +228,8 @@ class My extends Core
$where['status'] = 2;
$where['is_idcard'] = 1;
Dever::db('option/account')->update($where);
+
+ Dever::db('option/member')->update(array('where_id' => $this->user['mid'], 'idcard_bind' => 1));
if (isset($where['is_email']) && $where['is_email'] == 2) {