Commit 25423a3d by Aeolus

update

parent 73ca437f
......@@ -19,7 +19,7 @@ XX_PAY_CONFIG = {
"key_path": os.getenv("XX_PAY_SSL_KEY_PATH"),
'callback_url': '/rent/wx_pay_callback',
'refund_callback_url': '/rent/refund_callback',
'domain': 'https://autemat.ssw-htzn.com/sukang'
'domain': 'https://automat.ssw-htzn.com/sukang'
}
pay_config_list = ["", "xx"]
......
......@@ -66,7 +66,7 @@ def get_my_cards():
]
total_count = NfcCard.query.filter(*filter_list).count()
if not total_count:
return BaseResponse(data=[], total=total_count, page=page, pageSize=page_size)
return BaseResponse(data=[], total=0, page=page, pageSize=page_size)
cards = NfcCard.query.filter(*filter_list).offset((page - 1) * page_size).limit(page_size).all()
if not cards:
return jsonify(NO_NFC_CARD_ERROR)
......
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