Skip to content

Commit

Permalink
online fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshijiang committed Mar 15, 2024
1 parent b2939b5 commit d281305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/airdrop/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def submit_invite_info(request):
invite_user = AirdropUser.objects.filter(invite_code=invite_code).first()
if invite_user is None:
return error_json("This user is not exist", 4000)
address_user = AirdropUser.objects.filter(address__icontains=address).first()
if address_user is not None:
return error_json("address exist in system", 4000)
AirdropUser.objects.create(
invite_code=uuid.uuid4(),
invite_me_uuid=invite_user.uuid,
Expand Down

0 comments on commit d281305

Please sign in to comment.