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
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
8e22d5f4f3ee7af926be341a155a882639c15f4c
1 parent
46a6100e
修复逛品牌列表页收藏错误的bug
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
library/LibModels/Wap/Guang/PlusstarData.php
library/LibModels/Wap/Guang/PlusstarData.php
View file @
8e22d5f
...
...
@@ -198,12 +198,18 @@ class PlusstarData
$result
[
'getArticleByBrand'
]
=
empty
(
$article
[
'data'
])
?
array
()
:
$article
[
'data'
];
// file_put_contents('../../../../../../Desktop/app/n/getArticleByBrand.txt', var_export($result['getArticleByBrand'], true));
// // 是否收藏店铺
// if ($isUidOk) {
// Yohobuy::yarConcurrentCall(Yohobuy::SERVICE_URL . self::URI_BRANDINFO_FAVORITE, 'getUidBrandFav', array($uid, $brandInfo['data']['brand_id']), function($retval) use(&$result) {
// $result['getUidBrandFav'] = (isset($retval['message']) && $retval['message'] == 'favorite') ? true : false;
// });
// }
// 是否收藏店铺
$param
=
Yohobuy
::
param
();
$param
[
'uid'
]
=
$uid
;
$param
[
'brandId'
]
=
$brandInfo
[
'data'
][
'brand_id'
];
$param
[
'client_type'
]
=
$clientType
;
$param
[
'private_key'
]
=
Yohobuy
::
$privateKeyList
[
$clientType
];
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
$uidBrandFavRes
=
Yohobuy
::
get
(
Yohobuy
::
SERVICE_URL
.
self
::
URI_BRANDINFO_FAVORITE
.
'getUidBrandFav'
,
$param
);
if
(
isset
(
$uidBrandFavRes
[
'code'
])
&&
$uidBrandFavRes
[
'code'
]
==
200
)
{
$result
[
'getUidBrandFav'
]
=
true
;
}
// 相关资讯列表 (3篇)
// $result['getArticleByBrand'] = array();
// Yohobuy::yarConcurrentCall(Yohobuy::PRD_SERVICE_URL . self::URI_BRANDINFO_ARTICLE, 'getArticleByBrand', array($brandInfo['data']['brand_id'], 3, $udid), function($retval) use(&$result) {
...
...
Please
register
or
login
to post a comment