Showing
1 changed file
with
2 additions
and
4 deletions
@@ -692,7 +692,8 @@ class IndexController extends AbstractAction | @@ -692,7 +692,8 @@ class IndexController extends AbstractAction | ||
692 | $unionKey = AuthCode::decode($_COOKIE['_QYH_UNION'], 'q_union_yohobuy'); | 692 | $unionKey = AuthCode::decode($_COOKIE['_QYH_UNION'], 'q_union_yohobuy'); |
693 | } | 693 | } |
694 | } else { | 694 | } else { |
695 | - $unionKey = '{"client_id":' . $_COOKIE['mkt_code'] . '}'; | 695 | + $unionKey = '{"client_id":' . $_COOKIE['mkt_code'] . |
696 | + (empty($_COOKIE['union_data']) ? '' : ',:"union_data":' . $_COOKIE['union_data']) . '}'; | ||
696 | } | 697 | } |
697 | 698 | ||
698 | /* 检查联盟参数是否有效 */ | 699 | /* 检查联盟参数是否有效 */ |
@@ -700,9 +701,6 @@ class IndexController extends AbstractAction | @@ -700,9 +701,6 @@ class IndexController extends AbstractAction | ||
700 | /* 模拟APP的User-Agent */ | 701 | /* 模拟APP的User-Agent */ |
701 | $userAgent = isset($unionInfo['client_id']) ? 'YOHO!Buy/3.8.2.259(Model/PC;Channel/' . $unionInfo['client_id'] . ';uid/' . $uid . ')' : null; | 702 | $userAgent = isset($unionInfo['client_id']) ? 'YOHO!Buy/3.8.2.259(Model/PC;Channel/' . $unionInfo['client_id'] . ';uid/' . $uid . ')' : null; |
702 | 703 | ||
703 | - if (empty($unionKey) && !empty($_COOKIE['union_data'])) { | ||
704 | - $unionKey = $_COOKIE['union_data']; | ||
705 | - } | ||
706 | } | 704 | } |
707 | 705 | ||
708 | /* tar modified 161206 套餐 */ | 706 | /* tar modified 161206 套餐 */ |
-
Please register or login to post a comment