dever 7 years ago
parent
commit
199c16ded5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      component/src/Auth.php

+ 2 - 1
component/src/Auth.php

@@ -49,10 +49,11 @@ class Auth
      */
 	public function applet_login_api()
 	{
+		$project = $this->wechat->project();
 		$param['js_code'] = Dever::input('code');
 		$param['appid'] = Dever::input('appid');
 		$param['component_access_token'] = $this->wechat->token();
-		$param['component_appid'] = $this->wechat->project['id'];
+		$param['component_appid'] = $project['id'];
 		$data = $this->wechat->curl('applet_login', $param);
 
 		echo $data;die;