From 3302db10eb88467c88c331a11aa0c361774d0701 Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Mon, 5 Feb 2024 16:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...250\350\216\267\345\217\226\351\252\214\350\257\201.py" | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 43cf347d..e581f467 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) -- GitLab