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
8fd5aa1b7efe01174e754e385017d7f6bf6c9331
1 parent
cf0df6ae
修改调用的接口地址
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
library/Api/Yohobuy.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
library/Api/Yohobuy.php
View file @
8fd5aa1
...
...
@@ -24,8 +24,8 @@ class Yohobuy
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
/* 测试环境 */
const
API_URL
=
'http://devapi.yoho.cn:58078/'
;
const
SERVICE_URL
=
'http://devservice.yoho.cn:58077/'
;
const
API_URL
=
'http://test2.open.yohobuy.com/'
;
const
SERVICE_URL
=
'http://test.service.api.yohobuy.com/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
YOHOBUY_ORDER
=
'http://192.168.102.205:8084/order/'
;
//我的订单
const
API_URL_MYCENTER
=
'http://192.168.102.205:8081/users/'
;
// 我的个人中心接口URL
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
8fd5aa1
...
...
@@ -177,7 +177,7 @@ class UserModel
foreach
(
$favProduct
[
'data'
][
'product_list'
]
as
$val
)
{
$product
=
array
();
$product
[
'fav_id'
]
=
$val
[
'product_id'
];
$product
[
'link'
]
=
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_skn'
]
.
'_'
.
$val
[
'goodsId'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
;
$product
[
'link'
]
=
isset
(
$val
[
'goodsId'
])
?
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_skn'
]
.
'_'
.
$val
[
'goodsId'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'imgUrl'
]
=
Helpers
::
getImageUrl
(
$val
[
'image'
],
447
,
596
);;
$product
[
'title'
]
=
$val
[
'product_name'
];
$product
[
'price'
]
=
!
empty
(
$val
[
'market_price'
])
?
'¥'
.
$val
[
'market_price'
]
.
'.00'
:
0
;
...
...
@@ -226,7 +226,7 @@ class UserModel
foreach
(
$favBrand
[
'data'
][
'brand_list'
]
as
$val
)
{
$brand
=
array
();
$brand
[
'id'
]
=
$val
[
'brand_id'
];
$brand
[
'brandImg'
]
=
!
empty
(
$val
[
'brand_ico'
])
?
Images
::
getImageUrl
(
$val
[
'brand_ico'
],
235
,
314
)
:
''
;
$brand
[
'brandImg'
]
=
!
empty
(
$val
[
'brand_ico'
])
?
Images
::
getImageUrl
(
$val
[
'brand_ico'
],
47
,
47
)
:
''
;
$brand
[
'brandName'
]
=
$val
[
'brand_name'
];
$brand
[
'update'
]
=
$val
[
'new_product_num'
];
$brand
[
'discount'
]
=
$val
[
'product_discount_num'
];
...
...
Please
register
or
login
to post a comment