Your Name 3 years ago
parent
commit
b82f6ac2f6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      learn/active/src/User.php

+ 1 - 0
learn/active/src/User.php

@@ -283,6 +283,7 @@ Class User extends Core
             if ($data['user']['birthday']) {
                 $data['user']['birthday'] = date('Y-m-d',$data['user']['birthday']);
             }
+            $data['user']['mid'] = -1;
             $member = Dever::load('active/lib/user')->agent($data['user']);
     		if ($member) {
     			$data['user']['mid'] = $member['id'];