Authored by 周少峰

union data

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