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
梁志锋
9 years ago
Commit
06ed6355ca540ea32095f46a8012411eb18c7313
1 parent
9aee4129
错误代码
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
31 deletions
library/Api/Yohobuy.php
library/LibModels/Web/Home/UserData.php
library/Api/Yohobuy.php
View file @
06ed635
...
...
@@ -14,36 +14,6 @@ namespace Api;
use
Plugin\Cache
;
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/';
//java API
// const API_URL = 'http://api.yoho.yohoops.org/';//
// const API_URL2 = 'http://api.yoho.yohoops.org/';//
// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
// 支付回调地址
// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// 测试环境 */
const
API_URL
=
'http://testapi.yoho.cn:28078/'
;
// http://testapi.yoho.cn:28078/ http://devapi.yoho.cn:58078/
const
SERVICE_URL
=
'http://testservice.yoho.cn:28077/'
;
// http://testservice.yoho.cn:28077/ http://devservice.yoho.cn:58077/
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_OLD
=
'http://test2.open.yohobuy.com/'
;
// 支付回调地址
const
SERVICE_NOTIFY
=
'http://testservice.yoho.cn:28077/'
;
/* 预览环境 */
// const API_URL = 'http://preapi.yoho.cn/';
// const API_URL2 = 'http://preapi.yoho.cn/';
// const SERVICE_URL = 'http://preservice.yoho.cn/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
/**
* 登录老接口Api配置
...
...
library/LibModels/Web/Home/UserData.php
View file @
06ed635
...
...
@@ -70,7 +70,7 @@ class UserData
$param
[
'uid'
]
=
$uid
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
post
(
Yohobuy
::
API_URL
,
$param
);
return
Yohobuy
::
post
(
API_URL
,
$param
);
}
/**
...
...
Please
register
or
login
to post a comment