Commit 074299f7 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 20f28714
......@@ -16,8 +16,8 @@ module = "cmdc_commodity_activity"
# 第一步登录后台运营平台获取cmdc_access_token
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username1")
password = commonFuc().get_business_data(module, "password1")
username = commonFuc().get_business_data(module, "username30")
password = commonFuc().get_business_data(module, "password30")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
......
......@@ -18,8 +18,8 @@ module = "cmdc_commodity_activity"
# 第一步登录后台运营平台获取cmdc_access_token
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username1")
password = commonFuc().get_business_data(module, "password1")
username = commonFuc().get_business_data(module, "username30")
password = commonFuc().get_business_data(module, "password30")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
......@@ -50,7 +50,7 @@ mysql_handle = mySql()
host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 查询数据库中促销活动数量
sql = "SELECT count(t.activityBasicId) FROM `cmdc-order`.tc_activity_basic t WHERE companyCode = 00111"
sql = "SELECT count(t.activityBasicId) FROM `cmdc-order`.tc_activity_basic t WHERE companyCode = 00102"
total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0]
# 获取预期结果
......
......@@ -2,6 +2,9 @@
"username": "BJ0621"
"password": "Aa123456"
"username4": "GL1000086"
"password4": "Aa123456"
#后台运营管理系统登录信息(子公司)
"username1": "Admin00111"
"password1": "Aa123456"
......@@ -10,6 +13,10 @@
"username2": "admin"
"password2": "Aa123456"
#后台运营管理系统登录信息(国联公司)
"username30": "Admin00102"
"password30": "Aa123456"
#后台管理系统headers
json_headers: {
"Content-Type": "application/json",
......
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