Commit 3f876040 authored by litaolemo's avatar litaolemo

update_test

parent 4cbd0143
...@@ -138,6 +138,9 @@ def push_data_to_user(res_data: Dict) -> Dict: ...@@ -138,6 +138,9 @@ def push_data_to_user(res_data: Dict) -> Dict:
if res_data["img_list"]: if res_data["img_list"]:
for img_url in res_data["img_list"]: for img_url in res_data["img_list"]:
try: try:
if img_url[0:4] != "http":
res_data["content"] = res_data["content"].replace(img_url,"")
continue
img_wb = retry_get_url(img_url).content img_wb = retry_get_url(img_url).content
res = upload(img_wb) res = upload(img_wb)
print(res) print(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