Commit 82869c04 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent ebde3761
...@@ -15,8 +15,8 @@ import json ...@@ -15,8 +15,8 @@ import json
module = "cmdc_special_version" module = "cmdc_special_version"
# 第一步登录后台运营系统获取token # 第一步登录后台运营系统获取token
username = commonFuc().get_business_data(module, "username_admin") username = commonFuc().get_business_data(module, "username_admin2")
password = commonFuc().get_business_data(module, "password_admin") password = commonFuc().get_business_data(module, "password_admin2")
# 获取登录后Cmdc_access_token # 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token() cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
......
...@@ -51,7 +51,7 @@ mysql_handle = mySql() ...@@ -51,7 +51,7 @@ mysql_handle = mySql()
host, port, user, pwd = mysql_handle.getConf(db="cmdc_db_be") host, port, user, pwd = mysql_handle.getConf(db="cmdc_db_be")
# 在数据库中此站点对应的产品线信息 # 在数据库中此站点对应的产品线信息
sql = "SELECT count(1) FROM `cmdc-order`.tc_report_productline t WHERE companyCode = 00102" sql = "SELECT count(1) FROM `cmdc-order`.tc_report_productline t WHERE companyCode = 00102 and status = 0"
total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0] total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0]
# 获取预期结果 # 获取预期结果
......
Supports Markdown
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