Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
bed2ec580bede10bad3966f2b78ff3d662af21c7
2 parents
b2bbde65
84fdb95c
Merge branch 'hotfix/unionData' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
bed2ec5
...
...
@@ -703,7 +703,8 @@ class IndexController extends AbstractAction
$unionKey
=
AuthCode
::
decode
(
$_COOKIE
[
'_QYH_UNION'
],
'q_union_yohobuy'
);
}
}
else
{
$unionKey
=
'{"client_id":'
.
$_COOKIE
[
'mkt_code'
]
.
'}'
;
$unionKey
=
'{"client_id":'
.
$_COOKIE
[
'mkt_code'
]
.
(
empty
(
$_COOKIE
[
'union_data'
])
?
''
:
',:"union_data":'
.
$_COOKIE
[
'union_data'
])
.
'}'
;
}
/* 检查联盟参数是否有效 */
...
...
@@ -711,9 +712,6 @@ class IndexController extends AbstractAction
/* 模拟APP的User-Agent */
$userAgent
=
isset
(
$unionInfo
[
'client_id'
])
?
'YOHO!Buy/3.8.2.259(Model/PC;Channel/'
.
$unionInfo
[
'client_id'
]
.
';uid/'
.
$uid
.
')'
:
null
;
if
(
empty
(
$unionKey
)
&&
!
empty
(
$_COOKIE
[
'union_data'
]))
{
$unionKey
=
$_COOKIE
[
'union_data'
];
}
}
/* tar modified 161206 套餐 */
...
...
Please
register
or
login
to post a comment