bugfix
This commit is contained in:
parent
357eb3f725
commit
e636fbd81b
@ -75,6 +75,7 @@ async def get_userapikey(sor, upappid, callerid):
|
||||
'secretkey':None if r.secretkey is None else password_decode(r.secretkey),
|
||||
'baseurl':r.baseurl,
|
||||
'appownerid': r.appownerid,
|
||||
'dynamic_func_name': r.dynamic_func,
|
||||
'myappid': r.myappid
|
||||
})
|
||||
|
||||
@ -238,6 +239,18 @@ class UAPI:
|
||||
if _params:
|
||||
_params = json.loads(_params)
|
||||
debug(f'{headers=}, {body=}. {method=}, {url=}')
|
||||
if self.env.dynamic_func_name:
|
||||
f = RegisterFunction()
|
||||
opts = {
|
||||
'apikey': self.env.apikey,
|
||||
'secretkey': self.env.secretkey,
|
||||
'method':method,
|
||||
'path':path,
|
||||
'headers': headers,
|
||||
'params':params,
|
||||
'body':body
|
||||
}
|
||||
await f.exe(self.env.dynamic_func, opts)
|
||||
shc = StreamHttpClient()
|
||||
gen = shc(method, url,
|
||||
headers=headers,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user