bugfix
This commit is contained in:
parent
9b5e6395ad
commit
efcf922e5b
@ -18,6 +18,7 @@ async def checkCustomerBalance(llmid, userorgid):
|
|||||||
if llms[0].ownerid == userorgid:
|
if llms[0].ownerid == userorgid:
|
||||||
return True
|
return True
|
||||||
balance = await getCustomerBalance(sor, userorgid)
|
balance = await getCustomerBalance(sor, userorgid)
|
||||||
|
if balance is None: balance = 0.00
|
||||||
return llms[0].ppid and llms[0].min_balance < balance
|
return llms[0].ppid and llms[0].min_balance < balance
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user