This commit is contained in:
ping 2025-08-15 13:41:55 +08:00
parent a21262bced
commit ba78af64aa
3 changed files with 4 additions and 50 deletions

View File

@ -90,7 +90,7 @@ async def email_info(msg, indent=0):
index = find_data.index("<") index = find_data.index("<")
name = find_data[:index] name = find_data[:index]
if price and name: 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.sqlExe(mail_code_sql, {})
# mail_code = await sor.R('mail_code',{'mailcode':name,'del_flg':'0'}) # mail_code = await sor.R('mail_code',{'mailcode':name,'del_flg':'0'})
date = await get_business_date(sor=None) date = await get_business_date(sor=None)

View File

@ -720,9 +720,11 @@ async def baidu_confirm_auto_renew_order(ns={}):
# 读取baidu_orders表格 确定状态是renew的订单ID # 读取baidu_orders表格 确定状态是renew的订单ID
renew_results = [] renew_results = []
return {'1': 2}
db = DBPools() db = DBPools()
async with db.sqlorContext('kboss') as sor: 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';""" 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_results = await sor.sqlExe(renew_sql, {})
renew_status_count = 0 renew_status_count = 0
@ -746,7 +748,6 @@ async def baidu_confirm_auto_renew_order(ns={}):
'renew_status_count': renew_status_count, 'renew_status_count': renew_status_count,
'update_msg': update_msg, 'update_msg': update_msg,
} }
} }
ret = await baidu_confirm_auto_renew_order(params_kw) ret = await baidu_confirm_auto_renew_order(params_kw)

View File

@ -875,53 +875,6 @@ detailDataLJS = {
} }
], ],
"products": [ "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", "title": "NVIDIA-4090",
"description": "轻量应用服务器Light server是一种内置应用型镜像或系统型镜像的小规格云服务器 绑定适配大小的磁盘和带宽为中小型企业和个人用户提供官网搭建、web应用搭建、云上学习和测试等场景的服务。", "description": "轻量应用服务器Light server是一种内置应用型镜像或系统型镜像的小规格云服务器 绑定适配大小的磁盘和带宽为中小型企业和个人用户提供官网搭建、web应用搭建、云上学习和测试等场景的服务。",