Skip to content

Commit 066c989

Browse files
committed
Update leither_api.py
1 parent d9cade5 commit 066c989

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

leither_api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ def register_in_db(user: UserInDB):
3737
print(user)
3838
u = get_user(user.username)
3939
if not u:
40-
ip = get_user_session().node_ip
41-
print(ip)
42-
43-
user_client = hprose.HttpClient("http://"+ip+"/webapi/")
40+
user_client = hprose.HttpClient("http://"+ get_user_session()["node_ip"] +"/webapi/")
4441
result = user_client.Login("aj", "123456", "byname")
4542
print(result)
4643
ppt = user_client.SignPPT(result.sid, {

0 commit comments

Comments
 (0)