bugfix
This commit is contained in:
parent
80126a9058
commit
e237ee550d
@ -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}'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user