You need to sign in or sign up before continuing.
Commit 3caa622f by Aeolus

update

parent fc513bfb
......@@ -426,3 +426,15 @@ def get_user_rent_detail():
detail_data.append(tmp_data)
return BaseResponse(data=detail_data)
@rent_route.route("/rent_is_pay", methods=["POST"])
def get_rent_is_pay():
json_data = request.get_json()
rent_no = json_data["rent_no"]
rent_info = Rent.query.filter_by(rent_no=rent_no).first()
if not rent_info:
return jsonify(NO_RENT_RECORD)
return BaseResponse(data={"is_pay": rent_info.is_pay})
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