main #58

Merged
charles merged 2 commits from main into prod 2026-01-13 11:13:37 +08:00
Showing only changes of commit d090a624de - Show all commits

View File

@ -92,8 +92,8 @@ async def email_info(msg, indent=0):
if price and name:
mail_code_sql = """SELECT * FROM mail_code WHERE mailcode= ${mailcode}$ and del_flg = '0';"""
mail_code = await sor.sqlExe(mail_code_sql, {'mailcode': name})
if len(mail_code) < 1:
raise Exception(f'{name}不是合法的编码,数据库中没有找到')
if len(mail_code) < 1:
raise Exception(f'{name}不是合法的编码,数据库中没有找到')
# mail_code = await sor.R('mail_code',{'mailcode':name,'del_flg':'0'})
date = await get_business_date(sor=None)
recharge_log = {'customerid': mail_code[0]['customer_id'], 'recharge_amt': price,