Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Commit c714f31

Browse files
committed
Update auth.php
$this->open_id = $_SESSION['open_id']; 增加这一行,否则返回的open_id是空的。
1 parent 76a4cd0 commit c714f31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/auth.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function wxoauth(){
2323
if (!$this->wxuser) {
2424
$this->wxuser = $_SESSION['wxuser'];
2525
}
26+
$this->open_id = $_SESSION['open_id'];
2627
return $this->open_id;
2728
}
2829
else
@@ -95,4 +96,4 @@ public function wxoauth(){
9596
'appsecret'=>'xxxxxxxxxxxxxxxxxxx', //填写高级调用功能的密钥
9697
);
9798
$auth = new wxauth($options);
98-
var_dump($auth->wxuser);
99+
var_dump($auth->wxuser);

0 commit comments

Comments
 (0)