From ba78af64aae97bbdbbfe06279069ea2c6bac0419 Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Fri, 15 Aug 2025 13:41:55 +0800 Subject: [PATCH] updsate --- b/account/email_info.dspy | 2 +- b/baiduc/baidu_confirm_auto_renew_order.dspy | 5 ++- b/product/get_firstpage_net_detail.dspy | 47 -------------------- 3 files changed, 4 insertions(+), 50 deletions(-) diff --git a/b/account/email_info.dspy b/b/account/email_info.dspy index af6b3eb..c4a6e4b 100644 --- a/b/account/email_info.dspy +++ b/b/account/email_info.dspy @@ -90,7 +90,7 @@ async def email_info(msg, indent=0): index = find_data.index("<") name = find_data[:index] if price and name: - mail_code_sql = """SELECT * FROM mail_code WHERE LOCATE(mailcode, name) > 0 and del_flg = '0';""" + mail_code_sql = """SELECT * FROM mail_code WHERE LOCATE(mailcode, '%s') > 0 and del_flg = '0';""" % name mail_code = await sor.sqlExe(mail_code_sql, {}) # mail_code = await sor.R('mail_code',{'mailcode':name,'del_flg':'0'}) date = await get_business_date(sor=None) diff --git a/b/baiduc/baidu_confirm_auto_renew_order.dspy b/b/baiduc/baidu_confirm_auto_renew_order.dspy index dfac1a8..518af55 100644 --- a/b/baiduc/baidu_confirm_auto_renew_order.dspy +++ b/b/baiduc/baidu_confirm_auto_renew_order.dspy @@ -720,11 +720,13 @@ async def baidu_confirm_auto_renew_order(ns={}): # 读取baidu_orders表格 确定状态是renew的订单ID renew_results = [] + return {'1': 2} db = DBPools() async with db.sqlorContext('kboss') as sor: renew_sql = """"SELECT bo.*, bs.user_id FROM baidu_orders AS bo LEFT JOIN baidu_users AS bs ON bo.accountid = bs.baidu_id WHERE bo.ordertype = 'RENEW' AND bo.status = 'NEED_CONFIRM' AND bo.del_flg = '0';""" + return {'1': renew_sql} renew_results = await sor.sqlExe(renew_sql, {}) - + renew_status_count = 0 # 执行 get_baidu_orderlist sor分开运行 for renew_res in renew_results: @@ -746,7 +748,6 @@ async def baidu_confirm_auto_renew_order(ns={}): 'renew_status_count': renew_status_count, 'update_msg': update_msg, } - } ret = await baidu_confirm_auto_renew_order(params_kw) diff --git a/b/product/get_firstpage_net_detail.dspy b/b/product/get_firstpage_net_detail.dspy index 77987ca..4e9f9fa 100644 --- a/b/product/get_firstpage_net_detail.dspy +++ b/b/product/get_firstpage_net_detail.dspy @@ -875,53 +875,6 @@ detailDataLJS = { } ], "products": [ - { - "title": "NVIDIA-4090", - "description": "配备GPU的云端服务器,可以为机器学习、高性能计算、图形图像渲染等计算密集型应用提供加速处理能力。根据需求场景的不同,既可提供弹性的GPU云服务器,也可提供高性能的GPU裸金属服务器,助力您的业务创新,提升竞争优势。", - "price": "6000", - "pre_price": "7143", - "price_unit": "台/月", - "discount": 8.4, - "bgImgUrl": "https://www.kaiyuancloud.cn/idfile?path=firstpagebg/1.png", - "list": [ - { - "id": 1, - "name": "CPU", - "content": "AMD EPYC 7542 32 C * 2", - "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/ssc2x.png" - }, - { - "id": 2, - "name": "内存", - "content": "64G DDR4-3200 * 8", - "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/cpu2x.png" - }, - { - "id": 3, - "name": "GPU", - "content": "NVIDIA-4090-24GB * 8", - "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/sdcard2x.png" - }, - { - "id": 4, - "name": "系统盘", - "content": "960G SATA SSD * 2 (Raid)", - "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/servermini2x.png" - }, - { - "id": 5, - "name": "数据盘", - "content": "3.84T U.2 NVMe SSD * 1", - "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/serverpath2x.png" - }, - { - "id": 6, - "name": "网卡", - "content": "Mellanox Connect4 25G SFP28 2-port * 1", - "icon": "https://www.kaiyuancloud.cn/idfile?path=firstpagehot/ssdr2x.png" - } - ] - }, { "title": "NVIDIA-4090", "description": "轻量应用服务器(Light server)是一种内置应用型镜像或系统型镜像的小规格云服务器, 绑定适配大小的磁盘和带宽,为中小型企业和个人用户提供官网搭建、web应用搭建、云上学习和测试等场景的服务。",