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
d5e03ef5
Commit
d5e03ef5
authored
Jul 30, 2020
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库
parent
1b2eab83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
database.php
new_admincp/applications/zsb/config/database.php
+8
-1
No files found.
new_admincp/applications/zsb/config/database.php
View file @
d5e03ef5
...
...
@@ -616,10 +616,17 @@ else
//$db_rand = $nowtime > 12 ? rand(0,1) : ($nowm == 1 ? 1 : 3);
//$db_rand = $nowtime > 12 ? 1 : rand(1,2);
//master_nj_esf_back = 172.17.1.95
$dbback_hostname
=
'172.17.1.31'
;
$db_rand
=
rand
(
1
,
2
);
switch
(
$db_rand
)
{
case
1
:
$dbback_hostname
=
'172.17.1.31'
;
break
;
case
2
:
$dbback_hostname
=
'172.17.1.54'
;
break
;
default
:
$dbback_hostname
=
'172.17.1.31'
;
break
;
}
//从库
$db
[
'dbback'
][
'hostname'
]
=
$dbback_hostname
;
$db
[
'dbback'
][
'username'
]
=
'root'
;
...
...
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