Authored by 周少峰

union data

... ... @@ -1078,7 +1078,7 @@ class CartModel
}
/* 检查联盟参数是否有效 */
$unionInfo = empty($unionKey) ? array() : json_decode($unionKey, true);
if (empty($unionKey) && empty($_COOKIE['union_data'])){
if (empty($unionKey) && !empty($_COOKIE['union_data'])){
$unionKey = $_COOKIE['union_data'];
}
/* 模拟APP的User-Agent */
... ...