forked from mirror/MrDoc
[修复] 上传URL图片总是失败的bug
This commit is contained in:
parent
a438b16cfa
commit
4373e08529
@ -350,7 +350,7 @@ def upload_img_url(request):
|
||||
try:
|
||||
# 验证Token
|
||||
token = UserToken.objects.get(token=token)
|
||||
if token.user.is_writer:
|
||||
if token.user:
|
||||
# 上传图片
|
||||
if url_img.startswith("data:image"): # 以URL形式上传的BASE64编码图片
|
||||
result = base_img_upload(url_img, '', token.user)
|
||||
|
Loading…
x
Reference in New Issue
Block a user