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
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
487033b2ad286094b9e9764bb92665abdb0d2e52
2 parents
1b8894eb
f2320144
Merge branch 'master' of git.yoho.cn:fe/YOHOBUYPC
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 @
487033b
...
...
@@ -155,10 +155,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
);
}
...
...
@@ -319,10 +319,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
);
}
...
...
@@ -761,7 +761,7 @@ class Yohobuy
}
$paseUrl
=
parse_url
(
$url
);
if
(
strpos
(
$url
,
'api'
))
{
if
(
strpos
(
$url
,
API_URL
))
{
if
(
empty
(
$ips
[
'api.yoho.cn'
]))
{
return
false
;
...
...
@@ -775,7 +775,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