buggix
This commit is contained in:
parent
dfe961e4c9
commit
408f8acadc
@ -32,7 +32,7 @@ async def get_user_tpac(userid):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
async def get_tpac_balance(tpac, userid):
|
async def get_tpac_balance(tpac, userid):
|
||||||
url = tpac.get_user_balance_url
|
url = tpac.get_tpac_balance_url
|
||||||
hc = StreamHttpClient()
|
hc = StreamHttpClient()
|
||||||
try:
|
try:
|
||||||
b = await hc.request('GET', url, params={'userid': userid})
|
b = await hc.request('GET', url, params={'userid': userid})
|
||||||
@ -47,7 +47,7 @@ async def get_tpac_balance(tpac, userid):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
async def tpac_accounting(tpac, userid, llmid, amount, usage, luid):
|
async def tpac_accounting(tpac, userid, llmid, amount, usage, luid):
|
||||||
url = tpac.accounting_url
|
url = tpac.tpac_accounting_url
|
||||||
hc = StreamHttpClient()
|
hc = StreamHttpClient()
|
||||||
d = {
|
d = {
|
||||||
'userid': userid,
|
'userid': userid,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user