dever 3 years ago
parent
commit
f382392222
2 changed files with 2 additions and 1 deletions
  1. 0 1
      service/option/src/Auth.php
  2. 2 0
      service/option/src/My.php

+ 0 - 1
service/option/src/Auth.php

@@ -69,7 +69,6 @@ class Auth
                     if ($find && $find['id'] != $user['id']) {
                     if ($find && $find['id'] != $user['id']) {
                         Dever::alert('身份证已被绑定');
                         Dever::alert('身份证已被绑定');
                     }
                     }
-                    Dever::db('option/member')->update(array('where_id' => $user['id'], 'idcard_bind' => 1));
                 }
                 }
 
 
                 Dever::load('option/lib/account')->checkMcode($mobile);
                 Dever::load('option/lib/account')->checkMcode($mobile);

+ 2 - 0
service/option/src/My.php

@@ -228,6 +228,8 @@ class My extends Core
             $where['status'] = 2;
             $where['status'] = 2;
             $where['is_idcard'] = 1;
             $where['is_idcard'] = 1;
             Dever::db('option/account')->update($where);
             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) {
         if (isset($where['is_email']) && $where['is_email'] == 2) {