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
郝肖肖
9 years ago
Commit
df1ba6026b0dfeef13de1e345a15bd2fa4ac716d
1 parent
87df8437
你可能喜欢的 get请求
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
library/LibModels/Wap/Product/RecomData.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Recom.php
library/LibModels/Wap/Product/RecomData.php
View file @
df1ba60
...
...
@@ -94,7 +94,7 @@ class RecomData
$param
[
'limit'
]
=
$limit
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
pos
t
(
Yohobuy
::
SERVICE_URL
.
'operations/api/v5/activitytemplate/getProduct'
,
$param
,
300
);
return
Yohobuy
::
ge
t
(
Yohobuy
::
SERVICE_URL
.
'operations/api/v5/activitytemplate/getProduct'
,
$param
,
300
);
}
}
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Recom.php
View file @
df1ba60
...
...
@@ -186,7 +186,7 @@ class RecomController extends AbstractAction
}
/* 取可能喜欢的数据 */
$recom
=
json_decode
(
RecomData
::
newPreference
(
$templateId
),
true
);
$recom
=
RecomData
::
newPreference
(
$templateId
);
/* 构建人气单品数据 */
if
(
empty
(
$recom
)
||
empty
(
$recom
[
'data'
][
'product_list'
]))
{
...
...
Please
register
or
login
to post a comment