diff --git "a/air_case/cmdc_rebate/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.air/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.py" "b/air_case/cmdc_rebate/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.air/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.py" index 43cf347d5a43812571fbe88fa317a598d39bd7d3..e581f46768394ee8b5c97b5a7f4c8b14b8956234 100644 --- "a/air_case/cmdc_rebate/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.air/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_rebate/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.air/\350\277\224\345\210\251\345\256\241\346\240\270\345\210\227\350\241\250\350\216\267\345\217\226\351\252\214\350\257\201.py" @@ -16,8 +16,8 @@ module = "cmdc_rebate" # 第一步登录后台运营平台获取cmdc_access_token # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后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)