Commit 9a8b8d6d by 冷斌

fix bug

parent f468f627
...@@ -565,6 +565,7 @@ class PassportModel extends Model ...@@ -565,6 +565,7 @@ class PassportModel extends Model
private function cookie($name, $value = false, $timeout = null) private function cookie($name, $value = false, $timeout = null)
{ {
$timeout = 86400 * 7;
if ($this->is_weixin) { if ($this->is_weixin) {
if ($value !== false) { if ($value !== false) {
$_SESSION[$name] = $value; $_SESSION[$name] = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment