dever 4 years ago
parent
commit
5fd03e1705
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/Client.php

+ 2 - 1
lib/Client.php

@@ -63,6 +63,7 @@ class Client extends Base
 	private function initPassport()
 	{
 		$this->passport = Dever::load('passport/lib/base');
+		$this->uid = $this->passport->check(false);
 	}
 
 	private function initSave()
@@ -301,7 +302,7 @@ class Client extends Base
             $user['country'] = $userinfo['country'];
         }
 
-    	$user = $this->passport->wechat($data, $user, $this->account, $this->system, $this->source_type, $this->system_source, $this->source, $this->invite);
+    	$user = $this->passport->wechat($data, $user, $this->account, $this->system, $this->source_type, $this->system_source, $this->source, $this->invite, $this->uid);
 
         return $user;
 	}