updsate
This commit is contained in:
parent
a21262bced
commit
ba78af64aa
@ -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)
|
||||
|
||||
@ -720,9 +720,11 @@ 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
|
||||
@ -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)
|
||||
|
||||
@ -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应用搭建、云上学习和测试等场景的服务。",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user