main #6

Merged
charles merged 24 commits from main into prod 2025-08-12 19:58:39 +08:00
Showing only changes of commit 6ce0ebc210 - Show all commits

View File

@ -90,7 +90,9 @@ async def email_info(msg, indent=0):
index = find_data.index("<")
name = find_data[:index]
if price and name:
mail_code = await sor.R('mail_code',{'mailcode':name,'del_flg':'0'})
mail_code_sql = """SELECT * FROM mail_code WHERE LOCATE(mailcode, name) > 0 and del_flg = '0';"""
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)
recharge_log = {'customerid': mail_code[0]['customer_id'], 'recharge_amt': price,
'action': 'RECHARGE', 'recharge_path': '2', 'recharge_date': date}