Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
3302db10
Commit
3302db10
authored
Feb 05, 2024
by
liguangyu06
Browse files
优化
parent
3085d0d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_rebate/返利审核列表获取验证.air/返利审核列表获取验证.py
View file @
3302db10
...
...
@@ -16,8 +16,8 @@ module = "cmdc_rebate"
# 第一步登录后台运营平台获取cmdc_access_token
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
2
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
2
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
...
...
@@ -53,7 +53,8 @@ mysql_handle = mySql()
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db"
)
# 数据库查询待审核返利规则数量
sql
=
"SELECT t.rebateId FROM `cmdc-order`.tc_rebate t WHERE deleteSign = 0 and isAudit = 1 and auditLevel =2"
sql
=
"SELECT t.rebateId FROM `cmdc-order`.tc_rebate t "
\
"WHERE deleteSign = 0 and isAudit = 1 and auditLevel =2 and filialeCode = 00102"
result
=
{
"total"
:
len
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
))}
result
[
"api_time"
]
=
api_time
# print(result)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment