* Fix the problem that cookic is not updated in time.

This commit is contained in:
tianshujie
2021-12-02 16:43:15 +08:00
parent ebf78059e8
commit 1c3c07e6e0
+1
View File
@@ -161,6 +161,7 @@ class productModel extends model
if($this->cookie->preProductID != $this->session->product)
{
$this->cookie->set('preBranch', 0);
setcookie('preBranch', 0, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true);
}
return $this->session->product;