Преглед на файлове

更改密码获取形式

Eric412V преди 2 години
родител
ревизия
5aa27c8634
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      LIB/MIDDLE/SaftyCenter/DataDiag_Static/SC_BMSUploadError.py

+ 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]