diff --git a/module/product/zen.php b/module/product/zen.php index 4391494a35..a784e75037 100644 --- a/module/product/zen.php +++ b/module/product/zen.php @@ -867,7 +867,7 @@ class productZen extends product /* 获取分支和分支ID。*/ $branchPairs = $this->loadModel('branch')->getPairs($product->id, 'all'); - return ($this->cookie->preBranch !== '' and $branch === '' and isset($branchPairs[$this->cookie->preBranch])) ? $this->cookie->preBranch : $branch; + return ($this->cookie->preBranch !== '' and $branch === '' and isset($branchPairs[$this->cookie->preBranch])) ? (string)$this->cookie->preBranch : $branch; } /**