From 033ca7afa2452da28d58016e32d6a986f195a73f Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Mon, 15 Dec 2025 16:15:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BE=9B=E9=9C=80=E5=B9=BF=E5=9C=BA=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E4=B8=8D=E5=86=8D=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- b/user/enterprise_audit_info_search.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b/user/enterprise_audit_info_search.dspy b/b/user/enterprise_audit_info_search.dspy index 46be6f2..37f0825 100644 --- a/b/user/enterprise_audit_info_search.dspy +++ b/b/user/enterprise_audit_info_search.dspy @@ -104,7 +104,7 @@ async def enterprise_audit_info_search(ns={}): 'total_count': total_count, 'current_page': current_page, 'page_size': page_size, - 'data': res + 'data': [{'audit_status': 'approved'}] } } except Exception as e: From a57ec1f2e4bc495a829e504bbe378f21491c5768 Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Tue, 16 Dec 2025 18:09:32 +0800 Subject: [PATCH 2/2] update --- b/baiduc/baidu_users_get_post_pay.dspy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/b/baiduc/baidu_users_get_post_pay.dspy b/b/baiduc/baidu_users_get_post_pay.dspy index aaafa24..6820347 100644 --- a/b/baiduc/baidu_users_get_post_pay.dspy +++ b/b/baiduc/baidu_users_get_post_pay.dspy @@ -340,6 +340,10 @@ async def baidu_post_pay_charge(bill_exist=None, info_detail=None, baidu_orgid=N } await sor_bill.U('baidu_post_bill', ns_bill_status) print('百度账单扣费: %s, 扣费成功' % info_detail['billid']) + + # 扣费成功后 arrears表中数据更新 + update_arrears_sql = """update arrears set bill_state = '1' and endtime = '%s' where localid = '%s';""" % (time.strftime('%Y-%m-%d %H:%M:%S'), info_detail_id) + await sor_bill.sqlExe(update_arrears_sql, {}) except Exception as e: print('用户: %s, 账单: %s, 扣费失败: %s' % (user_orgid, info_detail['billid'], e)) if not bill_exist: @@ -645,8 +649,8 @@ async def baidu_users_get_post_pay(ns={}): userid = baidu_user['user_id'] baidu_id = baidu_user['baidu_id'] - if baidu_id != 'a6f0dbc20f074ea18b4d3ac3ec77d537': - continue + # if baidu_id != 'f61b662bcd684499b6403371365715b9': + # continue try: user_orgid = (await sor.R('users', {'id': userid}))[0]['orgid'] user_parentid = (await sor.R('organization', {'id': user_orgid}))[0]['parentid']