From 757b9ecf718f453d2ecde836bb7c19e2fed09527 Mon Sep 17 00:00:00 2001 From: pengjiangxiu Date: Thu, 15 Jun 2017 09:48:51 +0800 Subject: [PATCH] * Adjust for framework. --- framework/base/router.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index e3307f8ffc..b5d957a5c8 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -929,6 +929,8 @@ class baseRouter setcookie('device', $this->clientDevice, $this->config->cookieLife, $this->config->webRoot); if(!isset($_COOKIE['device'])) $_COOKIE['device'] = $this->clientDevice; + + return $this->clientDevice; } /**