dever há 3 anos atrás
pai
commit
f382392222
2 ficheiros alterados com 2 adições e 1 exclusões
  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']) {
                         Dever::alert('身份证已被绑定');
                     }
-                    Dever::db('option/member')->update(array('where_id' => $user['id'], 'idcard_bind' => 1));
                 }
 
                 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['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) {