|
@@ -25,7 +25,8 @@ def shop_infos(profile_id):
|
|
|
resp_rel = requests.get("http://192.168.1.225/api/ad_manage/profiles/",headers={"X-Token": "da4ab6bc5cbf1dfa"})
|
|
|
data = resp_rel.json().get("data")
|
|
|
except Exception as e:
|
|
|
- data = [{'id': 2,
|
|
|
+ print(resp_rel.text)
|
|
|
+ data = {'id': 2,
|
|
|
'modifier_name': None,
|
|
|
'creator_name': None,
|
|
|
'create_datetime': '2023-10-23 10:14:28',
|
|
@@ -43,7 +44,7 @@ def shop_infos(profile_id):
|
|
|
'marketplace_str_id': 'ATVPDKIKX0DER',
|
|
|
'time_zone': 'America/Los_Angeles',
|
|
|
'creator': None,
|
|
|
- 'ad_auth': 1}]
|
|
|
+ 'ad_auth': 1}
|
|
|
|
|
|
profile_info = {}
|
|
|
for info in data:
|
|
@@ -56,7 +57,7 @@ def shop_infos(profile_id):
|
|
|
profile_info["marketplace_str_id"] =info.get("marketplace_str_id")
|
|
|
profile_info["time_zone"] = info.get("time_zone")
|
|
|
return profile_info
|
|
|
- return resp_rel.text
|
|
|
+ # return resp_rel.text
|
|
|
|
|
|
class RateLimitError(Exception):
|
|
|
def __init__(self, retry_after: str = None):
|