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
2505a334582996add1aaee3bc7e029c2983cc463
1 parent
43a673e1
add favorite shop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
library/LibModels/Wap/Product/ShopData.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
library/LibModels/Wap/Product/ShopData.php
View file @
2505a33
...
...
@@ -122,7 +122,9 @@ class ShopData
$param
[
'gender'
]
=
$gender
;
}
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
);
//TODO
// return Yohobuy::get(Yohobuy::API_URL, $param);
return
Yohobuy
::
get
(
'http://192.168.102.218:8080/gateway/'
,
$param
);
}
/**
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
2505a33
...
...
@@ -490,7 +490,7 @@ class IndexController extends AbstractAction
public
function
shopFavAction
()
{
$data
=
array
();
$shopId
=
$this
->
ge
t
(
'shop_id'
,
0
);
$shopId
=
$this
->
pos
t
(
'shop_id'
,
0
);
$uid
=
$this
->
getUid
();
do
{
if
(
!
$this
->
isAjax
())
{
...
...
@@ -498,7 +498,9 @@ class IndexController extends AbstractAction
}
if
(
empty
(
$uid
))
{
$data
[
'code'
]
=
401
;
//TODO app登陆地址
$data
[
'url'
]
=
Helpers
::
url
(
'/signin.html'
);
break
;
}
if
(
!
empty
(
$shopId
)
&&
!
empty
(
$uid
))
{
$data
=
ShopData
::
shopFav
(
$uid
,
$shopId
);
...
...
@@ -515,7 +517,7 @@ class IndexController extends AbstractAction
{
$data
=
array
();
$shopId
=
$this
->
ge
t
(
'shop_id'
,
0
);
$shopId
=
$this
->
pos
t
(
'shop_id'
,
0
);
$uid
=
$this
->
getUid
();
do
{
if
(
!
$this
->
isAjax
())
{
...
...
Please
register
or
login
to post a comment