tilents
commited on
Commit
·
3fe1178
1
Parent(s):
869c384
user complete1
Browse files- AppPub/User/Bean/UserInfo.py +2 -2
- README.md +1 -0
AppPub/User/Bean/UserInfo.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import requests
|
2 |
import json
|
|
|
3 |
from AppPub.User.Bean.User_Data import User_Data
|
4 |
|
5 |
|
@@ -46,13 +47,12 @@ class UserInfo:
|
|
46 |
print(f'Failed to fetch data. Status code: {response.status_code}')
|
47 |
return None
|
48 |
|
49 |
-
|
50 |
def GetUserInfo(self):
|
51 |
data = self.HttpGetUserData()
|
52 |
if not data or "Failed to fetch data" in data or "null" in data:
|
53 |
person = User_Data(self.name, self.picture)
|
54 |
json_string = json.dumps(person.to_json())
|
55 |
-
print("新用戶:"+json_string) # 註冊一個用戶
|
56 |
result = self.HttpPostUserData(json_string)
|
57 |
# 处理获取到的数据
|
58 |
if result is not None:
|
|
|
1 |
import requests
|
2 |
import json
|
3 |
+
|
4 |
from AppPub.User.Bean.User_Data import User_Data
|
5 |
|
6 |
|
|
|
47 |
print(f'Failed to fetch data. Status code: {response.status_code}')
|
48 |
return None
|
49 |
|
|
|
50 |
def GetUserInfo(self):
|
51 |
data = self.HttpGetUserData()
|
52 |
if not data or "Failed to fetch data" in data or "null" in data:
|
53 |
person = User_Data(self.name, self.picture)
|
54 |
json_string = json.dumps(person.to_json())
|
55 |
+
print("新用戶:" + json_string) # 註冊一個用戶
|
56 |
result = self.HttpPostUserData(json_string)
|
57 |
# 处理获取到的数据
|
58 |
if result is not None:
|
README.md
CHANGED
@@ -8,6 +8,7 @@ sdk_version: 3.42.0
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: openrail
|
|
|
11 |
---
|
12 |
|
13 |
ifey
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: openrail
|
11 |
+
hf_oauth: true
|
12 |
---
|
13 |
|
14 |
ifey
|