Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esf
fenzhan_zsb
Commits
fdc38eb5
Commit
fdc38eb5
authored
Jul 09, 2020
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VR申请
parent
6ff6d91d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+7
-0
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
fdc38eb5
...
@@ -7,6 +7,7 @@ class zsb_api_model extends MY_Model{
...
@@ -7,6 +7,7 @@ class zsb_api_model extends MY_Model{
private
$apiSource
=
'PC'
;
// 访问API使用的公用source
private
$apiSource
=
'PC'
;
// 访问API使用的公用source
private
$apiVersion
=
'1.0.0'
;
// 访问API使用的公用版本号
private
$apiVersion
=
'1.0.0'
;
// 访问API使用的公用版本号
private
$token
=
'ZSB_API'
;
private
$token
=
'ZSB_API'
;
private
$host_preview
=
'http://newrenttest.house365.com'
;
private
$apiUrl
=
array
(
private
$apiUrl
=
array
(
...
@@ -31,6 +32,12 @@ class zsb_api_model extends MY_Model{
...
@@ -31,6 +32,12 @@ class zsb_api_model extends MY_Model{
parent
::
__construct
(
1
,
1
,
1
);
parent
::
__construct
(
1
,
1
,
1
);
$this
->
load
->
model
(
'broker_model'
);
$this
->
load
->
model
(
'broker_model'
);
$this
->
user_arr
=
$this
->
broker_model
->
get_user_session
();
$this
->
user_arr
=
$this
->
broker_model
->
get_user_session
();
//预发布环境,更改请求域名
$user_agent
=
empty
(
$_SERVER
[
'HTTP_USER_AGENT'
])
?
''
:
$_SERVER
[
'HTTP_USER_AGENT'
];
if
(
$user_agent
==
'preview_release'
){
$this
->
host
=
$this
->
host_preview
;
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment