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
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
611dc66e144a47f3aac67271f801dec480fba523
1 parent
41b2b0a6
union data to json
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
611dc66
...
...
@@ -695,11 +695,16 @@ class IndexController extends AbstractAction
/* 检查联盟参数是否有效 */
$unionInfo
=
empty
(
$unionKey
)
?
array
()
:
json_decode
(
$unionKey
,
true
);
}
else
{
$unionKey
=
'{"client_id":'
.
$_COOKIE
[
'mkt_code'
]
.
(
empty
(
$_COOKIE
[
'union_data'
])
?
''
:
',"union_data":'
.
$_COOKIE
[
'union_data'
])
.
'}'
;
$unionObj
=
[
"client_id"
:
$_COOKIE
[
'mkt_code'
]];
if
(
!
empty
(
$_COOKIE
[
'union_data'
]))
{
$unionObj
=
array_merge
(
$unionObj
,
[
"union_data"
:
$_COOKIE
[
'union_data'
]]);
}
$unionKey
=
json_encode
(
$unionObj
);
/* 检查联盟参数是否有效 */
$unionInfo
=
json_decode
(
'{"client_id":'
.
$_COOKIE
[
'mkt_code'
]
.
'}'
,
true
)
;
$unionInfo
=
[
"client_id"
:
$_COOKIE
[
'mkt_code'
]]
;
}
/* 模拟APP的User-Agent */
...
...
Please
register
or
login
to post a comment