* Fix the php type of branch.

This commit is contained in:
dingguodong
2023-06-08 13:16:57 +08:00
parent 203f16201e
commit 00d11dbb30
+1 -1
View File
@@ -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;
}
/**