Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
郭成尧
9 years ago
Commit
03238005bd65e46cf219fb6ea83ab981c4e79665
1 parent
5b451702
'channel处理'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
yohobuy/www.yohobuy.com/application/modules/Home/controllers/Index.php
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
0323800
...
...
@@ -436,7 +436,25 @@ class CartModel
break
;
}
$together
=
UserData
::
newPreference
(
$channel
,
$uid
,
$udid
,
'100003'
,
30
);
$channelNum
=
1
;
switch
(
$channel
)
{
case
'boys'
:
$channelNum
=
1
;
break
;
case
'girls'
:
$channelNum
=
2
;
break
;
case
'kids'
:
$channelNum
=
3
;
break
;
case
'lifestyle'
:
$channelNum
=
4
;
break
;
default
:
break
;
}
$together
=
UserData
::
newPreference
(
$channelNum
,
$uid
,
$udid
,
'100003'
,
30
);
if
(
empty
(
$together
[
'data'
][
'product_list'
]))
{
break
;
}
...
...
yohobuy/www.yohobuy.com/application/modules/Home/controllers/Index.php
View file @
0323800
...
...
@@ -35,8 +35,25 @@ class IndexController extends WebAction
$data
=
IndexModel
::
homeData
();
$udid
=
$uid
.
$this
->
getUdid
();
$channelNum
=
1
;
switch
(
$channel
)
{
case
'boys'
:
$channelNum
=
1
;
break
;
case
'girls'
:
$channelNum
=
2
;
break
;
case
'kids'
:
$channelNum
=
3
;
break
;
case
'lifestyle'
:
$channelNum
=
4
;
break
;
default
:
break
;
}
// 为你优选 tar add 160701
$data
[
'recommend'
]
=
IndexModel
::
preferenceData
(
$channel
,
$uid
,
$udid
,
'100004'
,
30
);
$data
[
'recommend'
]
=
IndexModel
::
preferenceData
(
$channel
Num
,
$uid
,
$udid
,
'100004'
,
30
);
//取消订单原因列表
$resons
=
OrderData
::
closeReasons
();
...
...
Please
register
or
login
to post a comment