voucher/wwwroot/api/instance/voucher_invalidate.dspy

6 lines
473 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# voucher_invalidate.dspy — 作废券unused → void 原子条件 UPDATE已用/过期/已作废拒绝)
r = await invalidate_voucher_api(request, params_kw)
if r.get('success'):
return {"widgettype": "Message", "options": {"title": "已作废", "message": '券已作废', "timeout": 3, "cwidth": 16, "cheight": 9}}
return {"widgettype": "Error", "options": {"title": "Error", "message": r.get('message') or 'failed', "timeout": 3, "cwidth": 16, "cheight": 9}}