This commit is contained in:
yumoqing 2026-04-29 21:45:26 +08:00
parent 80126a9058
commit e237ee550d

View File

@ -1,15 +1,19 @@
ppid = 'sF2gcl7UeANKtnZv8hfvL'
data = {
'action': 't2v',
'model': 'viduq3-pro',
'resolution': '1024p',
'duration': 10,
'off_peak': False
}
db = DBPools()
dbname = get_module_dbname('pricing')
async with db.sqlorContext(dbname) as sor:
x = await pricing_program_charging(sor, ppid, data)
return x
return f'Except:{db.e_except},{format_exc()}'
ppid = params_kw.ppid
data = params_kw.data
try:
x = buffered_charging(ppid, data)
return {
"status": "ok",
"data": {
"ppid": ppid,
"data": data,
"result": x
}
}
except Exception as e:
return {
"status": "error",
"data": {
"message": f'{ppid=}, {data=}, {e}'
}
}