Forráskód Böngészése

更改密码获取形式

Eric412V 2 éve
szülő
commit
5aa27c8634

+ 2 - 2
LIB/MIDDLE/SaftyCenter/DataDiag_Static/SC_BMSUploadError.py

@@ -18,7 +18,7 @@ from sqlalchemy import create_engine
 from sqlalchemy.orm import sessionmaker
 from urllib import parse
 import pymysql
-
+from urllib import parse
 class BMSReportError:
     def __init__(self):
         pass
@@ -98,7 +98,7 @@ class BMSReportError:
                             port=3306
                             db='qx_cas'
                             user='qx_algo_readonly'
-                            password='qx@123456'                   
+                            password = parse.quote_plus('qx@123456')                   
                             db_engine_1 = create_engine("mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8".format(user, password, host, port, db))
                             df_fidinfo = pd.read_sql("select * from fid_info ", db_engine_1)
                             faltinfo=df_fidinfo[df_fidinfo['errCode']==platform_code.values[0]]['errChinese'].values[0]