Commit 00085fd1 by 蒋勇

d

parent bd750d15
[database]
dbhost=rm-2zey194899z131ouf.mysql.rds.aliyuncs.com
dbhost=rm-2zey194899z131oufao.mysql.rds.aliyuncs.com
dbport=3306
dbname=ent_data
dbuser=root
......
......@@ -4,7 +4,7 @@ from DBUtils.PooledDB import PooledDB
from common.crm_change_standard import getStandardName
MYSQL_HOST = 'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com' # 外网地址
MYSQL_HOST = 'rm-2zey194899z131oufao.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
......
......@@ -2,7 +2,7 @@ from DBUtils.PooledDB import PooledDB
import pymysql,json
from flask import request
MYSQL_HOST = 'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com' # 外网地址
MYSQL_HOST = 'rm-2zey194899z131oufao.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
......
......@@ -11,7 +11,7 @@ import json
"""读取tj_hx_type_connect表,获取大类"""
"""返回格式:["基本标签", "产品标签", "风险标签", "经营标签", "偏好标签"]"""
MYSQL_HOST = 'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com' # 外网地址
MYSQL_HOST = 'rm-2zey194899z131oufao.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
......
......@@ -29,7 +29,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')
# connection = pymysql.connect(host='43.247.184.94', port=9187, user='nice', passwd='Niceee@2020#@', db='test')
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131oufao.mysql.rds.aliyuncs.com', 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')
......@@ -48,7 +48,7 @@ def strQ2B(ustring):
return rstring
def moneyTest(mycompanyname):
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131oufao.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
result={}
result["data"]=[]
......
......@@ -6,7 +6,7 @@ from flask import Flask, render_template, request
from flask_cors import CORS
def getName(recommendId):
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131oufao.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
sql='select company_name from tj_recommend_do_status where recommend_id = "%s"' %recommendId
......@@ -18,7 +18,7 @@ def getName(recommendId):
return s
def getSource(name):
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131oufao.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
sql='select preference_label from tj_label_depth_all where company_name = "%s"'%name
......@@ -39,7 +39,7 @@ def getSource(name):
def talk(recommendId,source):
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131oufao.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
try:
......@@ -99,7 +99,7 @@ def talk(recommendId,source):
return False,{}
def talkName(recommend_product):
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131oufao.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
try:
......
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