Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
e60499cf
Commit
e60499cf
authored
May 24, 2021
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c9ed246a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
entprofile/db/configure.conf
+1
-1
entprofile/service/change_message.py
+1
-1
entprofile/service/moneyAPI.py
+4
-4
entprofile/service/potential.py
+1
-1
entprofile/service/select_es_result.py
+1
-1
No files found.
entprofile/db/configure.conf
View file @
e60499cf
...
@@ -9,7 +9,7 @@ dbcharset=utf8
...
@@ -9,7 +9,7 @@ dbcharset=utf8
[
es
]
[
es
]
eshost
=
43
.
247
.
184
.
94
eshost
=
er
.
es
.
gongsibao
.
com
esport
=
9200
esport
=
9200
esuser
=
admines
esuser
=
admines
espassword
=
adminGSB
.
espassword
=
adminGSB
.
...
...
entprofile/service/change_message.py
View file @
e60499cf
...
@@ -16,7 +16,7 @@ from common.crm_change_standard import getStandardName
...
@@ -16,7 +16,7 @@ from common.crm_change_standard import getStandardName
# esip = "172.16.18.110"
# esip = "172.16.18.110"
# esprot = "9201"
# esprot = "9201"
# esip = "
43.247.184.94
"
# esip = "
er.es.gongsibao.com
"
# esprot = "9200"
# esprot = "9200"
# esuser = "admines"
# esuser = "admines"
# espassword = "adminGSB."
# espassword = "adminGSB."
...
...
entprofile/service/moneyAPI.py
View file @
e60499cf
...
@@ -16,18 +16,18 @@ import pymysql
...
@@ -16,18 +16,18 @@ import pymysql
# esport1 = 9200
# esport1 = 9200
# es = Elasticsearch([esip], http_auth=(esuser, espassword), port=esport)
# es = Elasticsearch([esip], http_auth=(esuser, espassword), port=esport)
# es1 = Elasticsearch([esip1], http_auth=(esuser, espassword), port=esport1)
# es1 = Elasticsearch([esip1], http_auth=(esuser, espassword), port=esport1)
esip
=
"
43.247.184.94
"
esip
=
"
er.es.gongsibao.com
"
esport
=
9200
esport
=
9200
esuser
=
"admines"
esuser
=
"admines"
espassword
=
"adminGSBes"
espassword
=
"adminGSBes"
es
=
Elasticsearch
([
esip
],
http_auth
=
(
esuser
,
espassword
),
port
=
esport
)
es
=
Elasticsearch
([
esip
],
http_auth
=
(
esuser
,
espassword
),
port
=
esport
)
esip1
=
"
43.247.184.94
"
esip1
=
"
er.es.gongsibao.com
"
esport1
=
7200
esport1
=
7200
es1
=
Elasticsearch
([
esip
],
http_auth
=
(
esuser
,
espassword
),
port
=
7200
)
es1
=
Elasticsearch
([
esip
],
http_auth
=
(
esuser
,
espassword
),
port
=
7200
)
# conn = pymysql.connect(host='
43.247.184.94
', port=9187, user='nice', passwd='Niceee@2020#@', db='ent_data')
# conn = pymysql.connect(host='
er.es.gongsibao.com
', port=9187, user='nice', passwd='Niceee@2020#@', db='ent_data')
# connection = pymysql.connect(host='
43.247.184.94
', port=9187, user='nice', passwd='Niceee@2020#@', db='test')
# connection = pymysql.connect(host='
er.es.gongsibao.com
', port=9187, user='nice', passwd='Niceee@2020#@', db='test')
connection
=
pymysql
.
connect
(
host
=
'47.95.76.74'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'47.95.76.74'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
# conn = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
# conn = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
...
...
entprofile/service/potential.py
View file @
e60499cf
...
@@ -28,7 +28,7 @@ PASSWORD = '123456.a'
...
@@ -28,7 +28,7 @@ PASSWORD = '123456.a'
DB
=
'wandoujia'
DB
=
'wandoujia'
pool_app
=
PooledDB
(
pymysql
,
8
,
host
=
MYSQL_HOST
,
user
=
USER
,
passwd
=
PASSWORD
,
db
=
DB
,
port
=
PORT
)
pool_app
=
PooledDB
(
pymysql
,
8
,
host
=
MYSQL_HOST
,
user
=
USER
,
passwd
=
PASSWORD
,
db
=
DB
,
port
=
PORT
)
MYSQL_HOST
=
'
43.247.184.94
'
# 外网地址
MYSQL_HOST
=
'
er.es.gongsibao.com
'
# 外网地址
PORT
=
7800
# 外网端口
PORT
=
7800
# 外网端口
USER
=
'nice'
USER
=
'nice'
PASSWORD
=
'Niceee@2020'
PASSWORD
=
'Niceee@2020'
...
...
entprofile/service/select_es_result.py
View file @
e60499cf
...
@@ -20,7 +20,7 @@ companybase = CompanyBase()
...
@@ -20,7 +20,7 @@ companybase = CompanyBase()
class
HX
:
class
HX
:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
esip
=
"
43.247.184.94
"
self
.
esip
=
"
er.es.gongsibao.com
"
self
.
esport
=
9200
self
.
esport
=
9200
self
.
index_name
=
"bigdata_ic_gsb_label_op"
self
.
index_name
=
"bigdata_ic_gsb_label_op"
self
.
index_type
=
"_doc"
self
.
index_type
=
"_doc"
...
...
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