Commit d351ecd1 by Aeolus

update

parent 6d8e2e19
...@@ -112,7 +112,6 @@ def add_user(): ...@@ -112,7 +112,6 @@ def add_user():
parent_id = json_data.get("parent_id", 0) parent_id = json_data.get("parent_id", 0)
draw = json_data.get("draw", 0) draw = json_data.get("draw", 0)
rate = json_data.get("rate", 0) rate = json_data.get("rate", 0)
machine_list = json_data.get("machine_list", [])
account = AdminAccount.query.filter_by(phone=phone).first() account = AdminAccount.query.filter_by(phone=phone).first()
if account: if account:
...@@ -141,18 +140,6 @@ def add_user(): ...@@ -141,18 +140,6 @@ def add_user():
db.session.add(account) db.session.add(account)
db.session.commit() db.session.commit()
if not machine_list:
return BaseResponse()
for i in machine_list:
model = AdminMachine()
model.user_id = account.id
model.user_no = account.user_no
model.machine_no = i
model.status = 1
db.session.add(model)
db.session.commit()
return BaseResponse() return BaseResponse()
......
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