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
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
2679a55d0d068b02a7399a9b34f36d605f9953d0
2 parents
c1a8c223
e5380d4c
Merge branch 'master' of git.yoho.cn:fe/YOHOBUYWAP
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
library/Api/Yohobuy.php
library/Api/Yohobuy.php
View file @
2679a55
...
...
@@ -141,10 +141,10 @@ class Yohobuy
$urlBack
=
$url
;
if
(
USE_INTER_FACE_SHUNT
)
{
if
(
strpos
(
$url
,
'api'
))
{
if
(
strpos
(
$url
,
API_URL
))
{
$isApi
=
true
;
$url
=
self
::
_getUrl
(
$url
,
$data
);
}
else
if
(
strpos
(
$url
,
'service'
))
{
}
else
if
(
strpos
(
$url
,
SERVICE_URL
))
{
$isService
=
true
;
$url
=
self
::
_getUrl
(
$url
,
$data
);
}
...
...
@@ -293,10 +293,10 @@ class Yohobuy
$urlBack
=
$url
;
if
(
USE_INTER_FACE_SHUNT
)
{
if
(
strpos
(
$url
,
'api'
))
{
if
(
strpos
(
$url
,
API_URL
))
{
$isApi
=
true
;
$url
=
self
::
_getUrl
(
$url
,
$data
);
}
else
if
(
strpos
(
$url
,
'service'
))
{
}
else
if
(
strpos
(
$url
,
SERVICE_URL
))
{
$isService
=
true
;
$url
=
self
::
_getUrl
(
$url
,
$data
);
}
...
...
@@ -731,7 +731,7 @@ class Yohobuy
}
$paseUrl
=
parse_url
(
$url
);
if
(
strpos
(
$url
,
'api'
))
{
if
(
strpos
(
$url
,
API_URL
))
{
if
(
empty
(
$ips
[
'api.yoho.cn'
]))
{
return
false
;
...
...
@@ -745,7 +745,7 @@ class Yohobuy
$url
=
'http://'
.
$ips
[
'api.yoho.cn'
][
$num
][
'ip'
]
.
rtrim
(
$paseUrl
[
'path'
],
'/'
)
.
'/'
;
}
else
if
(
strpos
(
$url
,
'service'
))
{
}
else
if
(
strpos
(
$url
,
SERVICE_URL
))
{
if
(
empty
(
$ips
[
'service.yoho.cn'
]))
{
return
false
;
...
...
Please
register
or
login
to post a comment