Commit be9d9a5b by 宋毅

fh0422

parent c9ed246a
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -9,10 +9,10 @@ from DBUtils.PooledDB import PooledDB ...@@ -9,10 +9,10 @@ from DBUtils.PooledDB import PooledDB
import pymysql import pymysql
MYSQL_HOST = '47.95.76.74' # 外网地址 MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口 PORT = 3306 # 外网端口
USER = 'root' USER = 'bp'
PASSWORD = 'Gongsibao2018' PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data' DB = 'ent_data'
pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT) pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
[database] [database]
dbhost=47.95.76.74 dbhost=rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com
dbport=3306 dbport=3306
dbname=ent_data dbname=ent_data
dbuser=root dbuser=bp
dbpassword=Gongsibao2018 dbpassword=M0TaGe4f3kNnXanO%r
dbcharset=utf8 dbcharset=utf8
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -4,10 +4,10 @@ from DBUtils.PooledDB import PooledDB ...@@ -4,10 +4,10 @@ from DBUtils.PooledDB import PooledDB
from common.crm_change_standard import getStandardName from common.crm_change_standard import getStandardName
MYSQL_HOST = '47.95.76.74' # 外网地址 MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口 PORT = 3306 # 外网端口
USER = 'root' USER = 'bp'
PASSWORD = 'Gongsibao2018' PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data' DB = 'ent_data'
pool = PooledDB(pymysql,8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT) pool = PooledDB(pymysql,8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -2,10 +2,10 @@ from DBUtils.PooledDB import PooledDB ...@@ -2,10 +2,10 @@ from DBUtils.PooledDB import PooledDB
import pymysql,json import pymysql,json
from flask import request from flask import request
MYSQL_HOST = '47.95.76.74' # 外网地址 MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口 PORT = 3306 # 外网端口
USER = 'root' USER = 'bp'
PASSWORD = 'Gongsibao2018' PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data' DB = 'ent_data'
pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT) pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
......
...@@ -11,10 +11,10 @@ import json ...@@ -11,10 +11,10 @@ import json
"""读取tj_hx_type_connect表,获取大类""" """读取tj_hx_type_connect表,获取大类"""
"""返回格式:["基本标签", "产品标签", "风险标签", "经营标签", "偏好标签"]""" """返回格式:["基本标签", "产品标签", "风险标签", "经营标签", "偏好标签"]"""
MYSQL_HOST = '47.95.76.74' # 外网地址 MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口 PORT = 3306 # 外网端口
USER = 'root' USER = 'bp'
PASSWORD = 'Gongsibao2018' PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data' DB = 'ent_data'
pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT) pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
......
...@@ -28,7 +28,7 @@ es1 = Elasticsearch([esip], http_auth=(esuser, espassword), port=7200) ...@@ -28,7 +28,7 @@ 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='43.247.184.94', 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='43.247.184.94', 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='rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com', port=3306, user='bp', passwd='M0TaGe4f3kNnXanO%r', 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')
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -6,7 +6,8 @@ from flask import Flask, render_template, request ...@@ -6,7 +6,8 @@ from flask import Flask, render_template, request
from flask_cors import CORS from flask_cors import CORS
def getName(recommendId): def getName(recommendId):
connection = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data') connection = pymysql.connect(host='rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com', port=3306, user='bp',
passwd='M0TaGe4f3kNnXanO%r', db='ent_data')
cur = connection.cursor() cur = connection.cursor()
sql='select company_name from tj_recommend_do_status where recommend_id = "%s"' %recommendId sql='select company_name from tj_recommend_do_status where recommend_id = "%s"' %recommendId
cur.execute(sql) cur.execute(sql)
...@@ -17,7 +18,8 @@ def getName(recommendId): ...@@ -17,7 +18,8 @@ def getName(recommendId):
return s return s
def getSource(name): def getSource(name):
connection = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data') connection = pymysql.connect(host='rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com', port=3306, user='bp',
passwd='M0TaGe4f3kNnXanO%r', db='ent_data')
cur = connection.cursor() cur = connection.cursor()
sql='select preference_label from tj_label_depth_all where company_name = "%s"'%name sql='select preference_label from tj_label_depth_all where company_name = "%s"'%name
print(name) print(name)
...@@ -37,7 +39,8 @@ def getSource(name): ...@@ -37,7 +39,8 @@ def getSource(name):
def talk(recommendId,source): def talk(recommendId,source):
connection = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data') connection = pymysql.connect(host='rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com', port=3306, user='bp',
passwd='M0TaGe4f3kNnXanO%r', db='ent_data')
cur = connection.cursor() cur = connection.cursor()
try: try:
list_test=[] list_test=[]
...@@ -96,7 +99,8 @@ def talk(recommendId,source): ...@@ -96,7 +99,8 @@ def talk(recommendId,source):
return False,{} return False,{}
def talkName(recommend_product): def talkName(recommend_product):
connection = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data') connection = pymysql.connect(host='rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com', port=3306, user='bp',
passwd='M0TaGe4f3kNnXanO%r', db='ent_data')
cur = connection.cursor() cur = connection.cursor()
try: try:
list_test=[] list_test=[]
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment