|
@@ -170,6 +170,8 @@ class perfectUserInfoView(TemplateView):
|
|
|
config=botocore.client.Config(signature_version='s3v4'),
|
|
|
)
|
|
|
Key = userID + '/' + userIcon.name
|
|
|
+ aws_s3_client.put_object(Bucket=AVATAR_BUCKET, Key=Key, Body=userIcon)
|
|
|
+ userIconPath = userID + '/' + userIcon.name
|
|
|
|
|
|
# 测试/国内服,验证头像是否合规
|
|
|
if CONFIG_INFO == CONFIG_CN or CONFIG_INFO == CONFIG_TEST:
|
|
@@ -182,9 +184,6 @@ class perfectUserInfoView(TemplateView):
|
|
|
if not legal:
|
|
|
return response.json(106)
|
|
|
|
|
|
- aws_s3_client.put_object(Bucket=AVATAR_BUCKET, Key=Key, Body=userIcon)
|
|
|
- userIconPath = userID + '/' + userIcon.name
|
|
|
-
|
|
|
if userContent:
|
|
|
dataValid = json.loads(userContent)
|
|
|
if 'userID' and 'password' and 'is_superuser' in dataValid.keys():
|