Browse Source

Merge pull request #186 from woshizoufeng/patch-1

Update auth.php
dodge 10 years ago
parent
commit
9fa0a9d8a1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/auth.php

+ 2 - 1
test/auth.php

@@ -23,6 +23,7 @@ class wxauth {
 			if (!$this->wxuser) {
 				$this->wxuser = $_SESSION['wxuser'];
 			}
+			$this->open_id = $_SESSION['open_id'];
 			return $this->open_id;
 		}
 		else
@@ -95,4 +96,4 @@ $options = array(
 		'appsecret'=>'xxxxxxxxxxxxxxxxxxx', //填写高级调用功能的密钥
 );
 $auth = new wxauth($options);
-var_dump($auth->wxuser);
+var_dump($auth->wxuser);