瀏覽代碼

Merge pull request #186 from woshizoufeng/patch-1

Update auth.php
dodge 10 年之前
父節點
當前提交
9fa0a9d8a1
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);