Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
52fd58200276506aa422d31c054b8f30e6c485d7
2 parents
c1c2dcc4
29d2b17a
Merge branch 'hotfix/unionData' into release/5.4.1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
52fd582
...
...
@@ -1074,13 +1074,10 @@ class CartModel
$unionKey
=
AuthCode
::
decode
(
$_COOKIE
[
'_QYH_UNION'
],
'q_union_yohobuy'
);
}
}
else
{
$unionKey
=
'{"client_id":'
.
$_COOKIE
[
'mkt_code'
]
.
'}'
;
$unionKey
=
'{"client_id":'
.
$_COOKIE
[
'mkt_code'
]
.
$_COOKIE
[
'union_data'
]
?
', union_data: '
.
$_COOKIE
[
'union_data'
]
:
''
.
'}'
;
}
/* 检查联盟参数是否有效 */
$unionInfo
=
empty
(
$unionKey
)
?
array
()
:
json_decode
(
$unionKey
,
true
);
if
(
empty
(
$unionKey
)
&&
!
empty
(
$_COOKIE
[
'union_data'
])){
$unionKey
=
$_COOKIE
[
'union_data'
];
}
/* 模拟APP的User-Agent */
$userAgent
=
isset
(
$unionInfo
[
'client_id'
])
?
'YOHO!Buy/3.8.2.259(Model/PC;Channel/'
.
$unionInfo
[
'client_id'
]
.
';uid/'
.
$uid
.
')'
:
null
;
}
...
...
Please
register
or
login
to post a comment