Commit 2a0c4808 authored by litaolemo's avatar litaolemo

update

parent 4986ac0b
...@@ -8,8 +8,9 @@ import requests ...@@ -8,8 +8,9 @@ import requests
import typing import typing
import asyncio import asyncio
from gm_client.rpc import create_default_invoker # from gm_client.rpc import create_default_invoker
from gm_client.rpc.internal.context import ClientContext # from gm_client.rpc.internal.context import ClientContext
from helios.rpc import create_default_invoker
""" """
https://www.yuque.com/docs/share/f4abe44b-6593-46b4-b280-5c87e4db2c85?# https://www.yuque.com/docs/share/f4abe44b-6593-46b4-b280-5c87e4db2c85?#
...@@ -44,13 +45,13 @@ def post_data(data_dict:typing.Dict,rpc_type:str) -> typing.Dict: ...@@ -44,13 +45,13 @@ def post_data(data_dict:typing.Dict,rpc_type:str) -> typing.Dict:
if key not in data_type_dict[rpc_type]: if key not in data_type_dict[rpc_type]:
data_dict.pop(key) data_dict.pop(key)
print(data_dict) print(data_dict)
invoker = create_default_invoker(debug=True).with_config(dump_curl=True) invoker = create_default_invoker()
res = invoker[rpc_type](**data_dict).unwrap() res = invoker[rpc_type](**data_dict)
# print(res.) # print(res.)
print(res) print(res)
# print(res) print(res.unwrap())
return res return res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment