bugfix
This commit is contained in:
parent
2aa3185f2e
commit
c0bb34fc02
@ -197,11 +197,12 @@ async def query_task_status(request, upappid, apiname, luid, userid, taskid):
|
|||||||
if charging:
|
if charging:
|
||||||
changed.amount = charging.amount
|
changed.amount = charging.amount
|
||||||
changed.cost = charging.cost
|
changed.cost = charging.cost
|
||||||
|
debug(f'{changed=},{charging=}')
|
||||||
else:
|
else:
|
||||||
changed.amount = cost = 0.0
|
changed.amount = cost = 0.0
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
e1 = Exception(f'{llm.ppid} charging error{e}, {llm.ppid}, {llmusage=}')
|
e1 = Exception(f'{llm.ppid} charging error{e}, {llm.ppid}, {llmusage=}')
|
||||||
exception(f'{e1}')
|
exception(f'{e}')
|
||||||
changed.amount = changed.cost = 0
|
changed.amount = changed.cost = 0
|
||||||
else:
|
else:
|
||||||
changed.amount = 0
|
changed.amount = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user