Commit e276ad43 by 蒋勇

d

parents e60499cf be9d9a5b
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
import pymysql
MYSQL_HOST = '47.95.76.74' # 外网地址
MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
USER = 'bp'
PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data'
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]
dbhost=47.95.76.74
dbhost=rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com
dbport=3306
dbname=ent_data
dbuser=root
dbpassword=Gongsibao2018
dbuser=bp
dbpassword=M0TaGe4f3kNnXanO%r
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
from common.crm_change_standard import getStandardName
MYSQL_HOST = '47.95.76.74' # 外网地址
MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
USER = 'bp'
PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data'
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
import pymysql,json
from flask import request
MYSQL_HOST = '47.95.76.74' # 外网地址
MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
USER = 'bp'
PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data'
pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
......
......@@ -11,10 +11,10 @@ import json
"""读取tj_hx_type_connect表,获取大类"""
"""返回格式:["基本标签", "产品标签", "风险标签", "经营标签", "偏好标签"]"""
MYSQL_HOST = '47.95.76.74' # 外网地址
MYSQL_HOST = 'rm-2zexiblg7bi3hs165.mysql.rds.aliyuncs.com' # 外网地址
PORT = 3306 # 外网端口
USER = 'root'
PASSWORD = 'Gongsibao2018'
USER = 'bp'
PASSWORD = 'M0TaGe4f3kNnXanO%r'
DB = 'ent_data'
pool = PooledDB(pymysql, 8, host=MYSQL_HOST, user=USER, passwd=PASSWORD, db=DB, port=PORT)
......
......@@ -26,9 +26,10 @@ esport1 = 7200
es1 = Elasticsearch([esip], http_auth=(esuser, espassword), port=7200)
# conn = pymysql.connect(host='er.es.gongsibao.com', port=9187, user='nice', passwd='Niceee@2020#@', db='ent_data')
# 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')
# 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')
# conn = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
......@@ -47,7 +48,7 @@ def strQ2B(ustring):
return rstring
def moneyTest(mycompanyname):
connection = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
connection = pymysql.connect(host='rm-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
result={}
result["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
from flask_cors import CORS
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-2zey194899z131ouf.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
cur.execute(sql)
......@@ -17,7 +18,8 @@ def getName(recommendId):
return s
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-2zey194899z131ouf.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
print(name)
......@@ -37,7 +39,8 @@ def getSource(name):
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-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
try:
list_test=[]
......@@ -96,7 +99,8 @@ def talk(recommendId,source):
return False,{}
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-2zey194899z131ouf.mysql.rds.aliyuncs.com', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
try:
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