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
hf
9 years ago
Commit
af75b7de7320f1115be74fa54df7d8becd13c67e
1 parent
96365f4a
code review by fei.hong : fixes bug tomy browse history udid param refresh goods data
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
library/Api/Yohobuy.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
library/Api/Yohobuy.php
View file @
af75b7d
...
...
@@ -18,17 +18,17 @@ class Yohobuy
{
/* 正式环境 */
// php API
const
API_URL
=
'http://api2.open.yohobuy.com/'
;
const
API_URL2
=
'http://api.open.yohobuy.com/'
;
const
SERVICE_URL
=
'http://service.api.yohobuy.com/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
// const API_URL = 'http://api2.open.yohobuy.com/';
// const API_URL2 = 'http://api.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
//java API
// const API_URL = 'http://apih5.yoho.cn/';
// const API_URL2 = 'http://apih5.yoho.cn/';
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
const
API_URL
=
'http://apih5.yoho.cn/'
;
const
API_URL2
=
'http://apih5.yoho.cn/'
;
const
SERVICE_URL
=
'http://serviceh5.yoho.cn/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_OLD
=
'http://api2.open.yohobuy.com/'
;
/* 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
af75b7d
...
...
@@ -58,7 +58,7 @@ class HomeController extends AbstractAction
$uid
=
$this
->
getUid
(
true
);
if
(
$uid
)
{
$data
[
'isLogin'
]
=
true
;
$udid
=
$this
->
getUdid
();
$udid
=
$
uid
.
$
this
->
getUdid
();
$data
+=
UserModel
::
getUserProfileData
(
$uid
);
$data
+=
UserModel
::
getInfoNumData
(
$uid
,
$udid
);
}
...
...
@@ -203,7 +203,7 @@ class HomeController extends AbstractAction
if
(
$this
->
isAjax
())
{
$uid
=
$this
->
getUid
(
true
);
$udid
=
$this
->
getUdid
();
$udid
=
$
uid
.
$
this
->
getUdid
();
$page
=
$this
->
get
(
'page'
,
1
);
$result
=
UserModel
::
browserRecord
(
$uid
,
$udid
,
$page
,
100
);
}
...
...
Please
register
or
login
to post a comment